root: misc API client and web typing fixes (#21388)

* fix relObjId type

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* fix slot comments

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* sigh

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* use prettier on generated ts code

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L.
2026-04-05 12:46:08 +01:00
committed by GitHub
parent d5ee53feb2
commit f38584b343
907 changed files with 59878 additions and 45624 deletions

View File

@@ -2,3 +2,4 @@
.npmignore
docs/**
README.md
package.json

View File

@@ -15,3 +15,4 @@ build:
--git-repo-id authentik \
--git-user-id goauthentik
rm -rf "${PWD}/.openapi-generator"
npx prettier --cache --write -u "${PWD}"

View File

@@ -1,9 +1,9 @@
---
templateDir: /local/templates/
additionalProperties:
typescriptThreePlus: true
supportsES6: true
npmName: "@goauthentik/api"
fileContentDataType: Blob
enumUnknownDefaultCase: true
useObjectParameters: true
typescriptThreePlus: true
supportsES6: true
npmName: "@goauthentik/api"
fileContentDataType: Blob
enumUnknownDefaultCase: true
useObjectParameters: true

View File

@@ -1,21 +1,24 @@
{
"name": "@goauthentik/api",
"version": "0.0.0",
"description": "OpenAPI client for @goauthentik/api",
"author": "OpenAPI-Generator",
"repository": {
"type": "git",
"url": "https://github.com/goauthentik/authentik.git"
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"module": "./dist/esm/index.js",
"sideEffects": false,
"scripts": {
"build": "tsc && tsc -p tsconfig.esm.json",
"prepare": "npm run build"
},
"devDependencies": {
"typescript": "^4.0 || ^5.0"
}
"name": "@goauthentik/api",
"version": "0.0.0",
"description": "OpenAPI client for @goauthentik/api",
"author": "OpenAPI-Generator",
"repository": {
"type": "git",
"url": "https://github.com/goauthentik/authentik.git"
},
"scripts": {
"build": "tsc && tsc -p tsconfig.esm.json",
"prepare": "npm run build"
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"devDependencies": {
"@goauthentik/prettier-config": "^3.5.0",
"prettier": "^3.8.1",
"typescript": "^4.0 || ^5.0"
},
"prettier": "@goauthentik/prettier-config",
"sideEffects": false,
"module": "./dist/esm/index.js"
}

View File

@@ -12,48 +12,30 @@
* Do not edit the class manually.
*/
import * as runtime from '../runtime';
import type {
App,
FileList,
GenericError,
PatchedSettingsRequest,
Settings,
SettingsRequest,
SystemInfo,
UsageEnum,
UsedBy,
ValidationError,
Version,
VersionHistory,
} from '../models/index';
App,
FileList,
PatchedSettingsRequest,
Settings,
SettingsRequest,
SystemInfo,
UsageEnum,
UsedBy,
Version,
VersionHistory,
} from "../models/index";
import {
AppFromJSON,
AppToJSON,
FileListFromJSON,
FileListToJSON,
GenericErrorFromJSON,
GenericErrorToJSON,
PatchedSettingsRequestFromJSON,
PatchedSettingsRequestToJSON,
SettingsFromJSON,
SettingsToJSON,
SettingsRequestFromJSON,
SettingsRequestToJSON,
SystemInfoFromJSON,
SystemInfoToJSON,
UsageEnumFromJSON,
UsageEnumToJSON,
UsedByFromJSON,
UsedByToJSON,
ValidationErrorFromJSON,
ValidationErrorToJSON,
VersionFromJSON,
VersionToJSON,
VersionHistoryFromJSON,
VersionHistoryToJSON,
} from '../models/index';
} from "../models/index";
import * as runtime from "../runtime";
export interface AdminFileCreateRequest {
file: Blob;
@@ -96,10 +78,9 @@ export interface AdminVersionHistoryRetrieveRequest {
}
/**
*
*
*/
export class AdminApi extends runtime.BaseAPI {
/**
* Creates request options for adminAppsList without sending the request
*/
@@ -121,7 +102,7 @@ export class AdminApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -130,7 +111,9 @@ export class AdminApi extends runtime.BaseAPI {
/**
* Read-only view list all installed apps
*/
async adminAppsListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<App>>> {
async adminAppsListRaw(
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<Array<App>>> {
const requestOptions = await this.adminAppsListRequestOpts();
const response = await this.request(requestOptions, initOverrides);
@@ -140,7 +123,9 @@ export class AdminApi extends runtime.BaseAPI {
/**
* Read-only view list all installed apps
*/
async adminAppsList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<App>> {
async adminAppsList(
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<Array<App>> {
const response = await this.adminAppsListRaw(initOverrides);
return await response.value();
}
@@ -148,11 +133,13 @@ export class AdminApi extends runtime.BaseAPI {
/**
* Creates request options for adminFileCreate without sending the request
*/
async adminFileCreateRequestOpts(requestParameters: AdminFileCreateRequest): Promise<runtime.RequestOpts> {
if (requestParameters['file'] == null) {
async adminFileCreateRequestOpts(
requestParameters: AdminFileCreateRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["file"] == null) {
throw new runtime.RequiredError(
'file',
'Required parameter "file" was null or undefined when calling adminFileCreate().'
"file",
'Required parameter "file" was null or undefined when calling adminFileCreate().',
);
}
@@ -168,9 +155,7 @@ export class AdminApi extends runtime.BaseAPI {
headerParameters["Authorization"] = `Bearer ${tokenString}`;
}
}
const consumes: runtime.Consume[] = [
{ contentType: 'multipart/form-data' },
];
const consumes: runtime.Consume[] = [{ contentType: "multipart/form-data" }];
// @ts-ignore: canConsumeForm may be unused
const canConsumeForm = runtime.canConsumeForm(consumes);
@@ -184,24 +169,23 @@ export class AdminApi extends runtime.BaseAPI {
formParams = new URLSearchParams();
}
if (requestParameters['file'] != null) {
formParams.append('file', requestParameters['file'] as any);
if (requestParameters["file"] != null) {
formParams.append("file", requestParameters["file"] as any);
}
if (requestParameters['name'] != null) {
formParams.append('name', requestParameters['name'] as any);
if (requestParameters["name"] != null) {
formParams.append("name", requestParameters["name"] as any);
}
if (requestParameters['usage'] != null) {
formParams.append('usage', requestParameters['usage'] as any);
if (requestParameters["usage"] != null) {
formParams.append("usage", requestParameters["usage"] as any);
}
let urlPath = `/admin/file/`;
return {
path: urlPath,
method: 'POST',
method: "POST",
headers: headerParameters,
query: queryParameters,
body: formParams,
@@ -211,7 +195,10 @@ export class AdminApi extends runtime.BaseAPI {
/**
* Upload file to storage backend.
*/
async adminFileCreateRaw(requestParameters: AdminFileCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
async adminFileCreateRaw(
requestParameters: AdminFileCreateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<void>> {
const requestOptions = await this.adminFileCreateRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -221,22 +208,27 @@ export class AdminApi extends runtime.BaseAPI {
/**
* Upload file to storage backend.
*/
async adminFileCreate(requestParameters: AdminFileCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
async adminFileCreate(
requestParameters: AdminFileCreateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<void> {
await this.adminFileCreateRaw(requestParameters, initOverrides);
}
/**
* Creates request options for adminFileDestroy without sending the request
*/
async adminFileDestroyRequestOpts(requestParameters: AdminFileDestroyRequest): Promise<runtime.RequestOpts> {
async adminFileDestroyRequestOpts(
requestParameters: AdminFileDestroyRequest,
): Promise<runtime.RequestOpts> {
const queryParameters: any = {};
if (requestParameters['name'] != null) {
queryParameters['name'] = requestParameters['name'];
if (requestParameters["name"] != null) {
queryParameters["name"] = requestParameters["name"];
}
if (requestParameters['usage'] != null) {
queryParameters['usage'] = requestParameters['usage'];
if (requestParameters["usage"] != null) {
queryParameters["usage"] = requestParameters["usage"];
}
const headerParameters: runtime.HTTPHeaders = {};
@@ -254,7 +246,7 @@ export class AdminApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'DELETE',
method: "DELETE",
headers: headerParameters,
query: queryParameters,
};
@@ -263,7 +255,10 @@ export class AdminApi extends runtime.BaseAPI {
/**
* Delete file from storage backend.
*/
async adminFileDestroyRaw(requestParameters: AdminFileDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
async adminFileDestroyRaw(
requestParameters: AdminFileDestroyRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<void>> {
const requestOptions = await this.adminFileDestroyRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -273,26 +268,31 @@ export class AdminApi extends runtime.BaseAPI {
/**
* Delete file from storage backend.
*/
async adminFileDestroy(requestParameters: AdminFileDestroyRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
async adminFileDestroy(
requestParameters: AdminFileDestroyRequest = {},
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<void> {
await this.adminFileDestroyRaw(requestParameters, initOverrides);
}
/**
* Creates request options for adminFileList without sending the request
*/
async adminFileListRequestOpts(requestParameters: AdminFileListRequest): Promise<runtime.RequestOpts> {
async adminFileListRequestOpts(
requestParameters: AdminFileListRequest,
): Promise<runtime.RequestOpts> {
const queryParameters: any = {};
if (requestParameters['manageableOnly'] != null) {
queryParameters['manageable_only'] = requestParameters['manageableOnly'];
if (requestParameters["manageableOnly"] != null) {
queryParameters["manageable_only"] = requestParameters["manageableOnly"];
}
if (requestParameters['search'] != null) {
queryParameters['search'] = requestParameters['search'];
if (requestParameters["search"] != null) {
queryParameters["search"] = requestParameters["search"];
}
if (requestParameters['usage'] != null) {
queryParameters['usage'] = requestParameters['usage'];
if (requestParameters["usage"] != null) {
queryParameters["usage"] = requestParameters["usage"];
}
const headerParameters: runtime.HTTPHeaders = {};
@@ -310,7 +310,7 @@ export class AdminApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -319,17 +319,25 @@ export class AdminApi extends runtime.BaseAPI {
/**
* List files from storage backend.
*/
async adminFileListRaw(requestParameters: AdminFileListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<FileList>>> {
async adminFileListRaw(
requestParameters: AdminFileListRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<Array<FileList>>> {
const requestOptions = await this.adminFileListRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(FileListFromJSON));
return new runtime.JSONApiResponse(response, (jsonValue) =>
jsonValue.map(FileListFromJSON),
);
}
/**
* List files from storage backend.
*/
async adminFileList(requestParameters: AdminFileListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<FileList>> {
async adminFileList(
requestParameters: AdminFileListRequest = {},
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<Array<FileList>> {
const response = await this.adminFileListRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -337,11 +345,13 @@ export class AdminApi extends runtime.BaseAPI {
/**
* Creates request options for adminFileUsedByList without sending the request
*/
async adminFileUsedByListRequestOpts(requestParameters: AdminFileUsedByListRequest): Promise<runtime.RequestOpts> {
async adminFileUsedByListRequestOpts(
requestParameters: AdminFileUsedByListRequest,
): Promise<runtime.RequestOpts> {
const queryParameters: any = {};
if (requestParameters['name'] != null) {
queryParameters['name'] = requestParameters['name'];
if (requestParameters["name"] != null) {
queryParameters["name"] = requestParameters["name"];
}
const headerParameters: runtime.HTTPHeaders = {};
@@ -359,7 +369,7 @@ export class AdminApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -367,7 +377,10 @@ export class AdminApi extends runtime.BaseAPI {
/**
*/
async adminFileUsedByListRaw(requestParameters: AdminFileUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>> {
async adminFileUsedByListRaw(
requestParameters: AdminFileUsedByListRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<Array<UsedBy>>> {
const requestOptions = await this.adminFileUsedByListRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -376,7 +389,10 @@ export class AdminApi extends runtime.BaseAPI {
/**
*/
async adminFileUsedByList(requestParameters: AdminFileUsedByListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UsedBy>> {
async adminFileUsedByList(
requestParameters: AdminFileUsedByListRequest = {},
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<Array<UsedBy>> {
const response = await this.adminFileUsedByListRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -402,7 +418,7 @@ export class AdminApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -411,7 +427,9 @@ export class AdminApi extends runtime.BaseAPI {
/**
* Read-only view list all installed models
*/
async adminModelsListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<App>>> {
async adminModelsListRaw(
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<Array<App>>> {
const requestOptions = await this.adminModelsListRequestOpts();
const response = await this.request(requestOptions, initOverrides);
@@ -421,7 +439,9 @@ export class AdminApi extends runtime.BaseAPI {
/**
* Read-only view list all installed models
*/
async adminModelsList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<App>> {
async adminModelsList(
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<Array<App>> {
const response = await this.adminModelsListRaw(initOverrides);
return await response.value();
}
@@ -429,12 +449,14 @@ export class AdminApi extends runtime.BaseAPI {
/**
* Creates request options for adminSettingsPartialUpdate without sending the request
*/
async adminSettingsPartialUpdateRequestOpts(requestParameters: AdminSettingsPartialUpdateRequest): Promise<runtime.RequestOpts> {
async adminSettingsPartialUpdateRequestOpts(
requestParameters: AdminSettingsPartialUpdateRequest,
): Promise<runtime.RequestOpts> {
const queryParameters: any = {};
const headerParameters: runtime.HTTPHeaders = {};
headerParameters['Content-Type'] = 'application/json';
headerParameters["Content-Type"] = "application/json";
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
@@ -449,17 +471,20 @@ export class AdminApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'PATCH',
method: "PATCH",
headers: headerParameters,
query: queryParameters,
body: PatchedSettingsRequestToJSON(requestParameters['patchedSettingsRequest']),
body: PatchedSettingsRequestToJSON(requestParameters["patchedSettingsRequest"]),
};
}
/**
* Settings view
*/
async adminSettingsPartialUpdateRaw(requestParameters: AdminSettingsPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Settings>> {
async adminSettingsPartialUpdateRaw(
requestParameters: AdminSettingsPartialUpdateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<Settings>> {
const requestOptions = await this.adminSettingsPartialUpdateRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -469,7 +494,10 @@ export class AdminApi extends runtime.BaseAPI {
/**
* Settings view
*/
async adminSettingsPartialUpdate(requestParameters: AdminSettingsPartialUpdateRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Settings> {
async adminSettingsPartialUpdate(
requestParameters: AdminSettingsPartialUpdateRequest = {},
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<Settings> {
const response = await this.adminSettingsPartialUpdateRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -495,7 +523,7 @@ export class AdminApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -504,7 +532,9 @@ export class AdminApi extends runtime.BaseAPI {
/**
* Settings view
*/
async adminSettingsRetrieveRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Settings>> {
async adminSettingsRetrieveRaw(
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<Settings>> {
const requestOptions = await this.adminSettingsRetrieveRequestOpts();
const response = await this.request(requestOptions, initOverrides);
@@ -514,7 +544,9 @@ export class AdminApi extends runtime.BaseAPI {
/**
* Settings view
*/
async adminSettingsRetrieve(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Settings> {
async adminSettingsRetrieve(
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<Settings> {
const response = await this.adminSettingsRetrieveRaw(initOverrides);
return await response.value();
}
@@ -522,11 +554,13 @@ export class AdminApi extends runtime.BaseAPI {
/**
* Creates request options for adminSettingsUpdate without sending the request
*/
async adminSettingsUpdateRequestOpts(requestParameters: AdminSettingsUpdateRequest): Promise<runtime.RequestOpts> {
if (requestParameters['settingsRequest'] == null) {
async adminSettingsUpdateRequestOpts(
requestParameters: AdminSettingsUpdateRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["settingsRequest"] == null) {
throw new runtime.RequiredError(
'settingsRequest',
'Required parameter "settingsRequest" was null or undefined when calling adminSettingsUpdate().'
"settingsRequest",
'Required parameter "settingsRequest" was null or undefined when calling adminSettingsUpdate().',
);
}
@@ -534,7 +568,7 @@ export class AdminApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
headerParameters['Content-Type'] = 'application/json';
headerParameters["Content-Type"] = "application/json";
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
@@ -549,17 +583,20 @@ export class AdminApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'PUT',
method: "PUT",
headers: headerParameters,
query: queryParameters,
body: SettingsRequestToJSON(requestParameters['settingsRequest']),
body: SettingsRequestToJSON(requestParameters["settingsRequest"]),
};
}
/**
* Settings view
*/
async adminSettingsUpdateRaw(requestParameters: AdminSettingsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Settings>> {
async adminSettingsUpdateRaw(
requestParameters: AdminSettingsUpdateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<Settings>> {
const requestOptions = await this.adminSettingsUpdateRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -569,7 +606,10 @@ export class AdminApi extends runtime.BaseAPI {
/**
* Settings view
*/
async adminSettingsUpdate(requestParameters: AdminSettingsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Settings> {
async adminSettingsUpdate(
requestParameters: AdminSettingsUpdateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<Settings> {
const response = await this.adminSettingsUpdateRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -595,7 +635,7 @@ export class AdminApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'POST',
method: "POST",
headers: headerParameters,
query: queryParameters,
};
@@ -604,7 +644,9 @@ export class AdminApi extends runtime.BaseAPI {
/**
* Get system information.
*/
async adminSystemCreateRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SystemInfo>> {
async adminSystemCreateRaw(
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<SystemInfo>> {
const requestOptions = await this.adminSystemCreateRequestOpts();
const response = await this.request(requestOptions, initOverrides);
@@ -614,7 +656,9 @@ export class AdminApi extends runtime.BaseAPI {
/**
* Get system information.
*/
async adminSystemCreate(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemInfo> {
async adminSystemCreate(
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<SystemInfo> {
const response = await this.adminSystemCreateRaw(initOverrides);
return await response.value();
}
@@ -640,7 +684,7 @@ export class AdminApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -649,7 +693,9 @@ export class AdminApi extends runtime.BaseAPI {
/**
* Get system information.
*/
async adminSystemRetrieveRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SystemInfo>> {
async adminSystemRetrieveRaw(
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<SystemInfo>> {
const requestOptions = await this.adminSystemRetrieveRequestOpts();
const response = await this.request(requestOptions, initOverrides);
@@ -659,7 +705,9 @@ export class AdminApi extends runtime.BaseAPI {
/**
* Get system information.
*/
async adminSystemRetrieve(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemInfo> {
async adminSystemRetrieve(
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<SystemInfo> {
const response = await this.adminSystemRetrieveRaw(initOverrides);
return await response.value();
}
@@ -667,23 +715,25 @@ export class AdminApi extends runtime.BaseAPI {
/**
* Creates request options for adminVersionHistoryList without sending the request
*/
async adminVersionHistoryListRequestOpts(requestParameters: AdminVersionHistoryListRequest): Promise<runtime.RequestOpts> {
async adminVersionHistoryListRequestOpts(
requestParameters: AdminVersionHistoryListRequest,
): Promise<runtime.RequestOpts> {
const queryParameters: any = {};
if (requestParameters['build'] != null) {
queryParameters['build'] = requestParameters['build'];
if (requestParameters["build"] != null) {
queryParameters["build"] = requestParameters["build"];
}
if (requestParameters['ordering'] != null) {
queryParameters['ordering'] = requestParameters['ordering'];
if (requestParameters["ordering"] != null) {
queryParameters["ordering"] = requestParameters["ordering"];
}
if (requestParameters['search'] != null) {
queryParameters['search'] = requestParameters['search'];
if (requestParameters["search"] != null) {
queryParameters["search"] = requestParameters["search"];
}
if (requestParameters['version'] != null) {
queryParameters['version'] = requestParameters['version'];
if (requestParameters["version"] != null) {
queryParameters["version"] = requestParameters["version"];
}
const headerParameters: runtime.HTTPHeaders = {};
@@ -701,7 +751,7 @@ export class AdminApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -710,17 +760,25 @@ export class AdminApi extends runtime.BaseAPI {
/**
* VersionHistory Viewset
*/
async adminVersionHistoryListRaw(requestParameters: AdminVersionHistoryListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<VersionHistory>>> {
async adminVersionHistoryListRaw(
requestParameters: AdminVersionHistoryListRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<Array<VersionHistory>>> {
const requestOptions = await this.adminVersionHistoryListRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(VersionHistoryFromJSON));
return new runtime.JSONApiResponse(response, (jsonValue) =>
jsonValue.map(VersionHistoryFromJSON),
);
}
/**
* VersionHistory Viewset
*/
async adminVersionHistoryList(requestParameters: AdminVersionHistoryListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<VersionHistory>> {
async adminVersionHistoryList(
requestParameters: AdminVersionHistoryListRequest = {},
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<Array<VersionHistory>> {
const response = await this.adminVersionHistoryListRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -728,11 +786,13 @@ export class AdminApi extends runtime.BaseAPI {
/**
* Creates request options for adminVersionHistoryRetrieve without sending the request
*/
async adminVersionHistoryRetrieveRequestOpts(requestParameters: AdminVersionHistoryRetrieveRequest): Promise<runtime.RequestOpts> {
if (requestParameters['id'] == null) {
async adminVersionHistoryRetrieveRequestOpts(
requestParameters: AdminVersionHistoryRetrieveRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["id"] == null) {
throw new runtime.RequiredError(
'id',
'Required parameter "id" was null or undefined when calling adminVersionHistoryRetrieve().'
"id",
'Required parameter "id" was null or undefined when calling adminVersionHistoryRetrieve().',
);
}
@@ -750,11 +810,11 @@ export class AdminApi extends runtime.BaseAPI {
}
let urlPath = `/admin/version/history/{id}/`;
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"])));
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -763,18 +823,29 @@ export class AdminApi extends runtime.BaseAPI {
/**
* VersionHistory Viewset
*/
async adminVersionHistoryRetrieveRaw(requestParameters: AdminVersionHistoryRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VersionHistory>> {
async adminVersionHistoryRetrieveRaw(
requestParameters: AdminVersionHistoryRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<VersionHistory>> {
const requestOptions = await this.adminVersionHistoryRetrieveRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => VersionHistoryFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
VersionHistoryFromJSON(jsonValue),
);
}
/**
* VersionHistory Viewset
*/
async adminVersionHistoryRetrieve(requestParameters: AdminVersionHistoryRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VersionHistory> {
const response = await this.adminVersionHistoryRetrieveRaw(requestParameters, initOverrides);
async adminVersionHistoryRetrieve(
requestParameters: AdminVersionHistoryRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<VersionHistory> {
const response = await this.adminVersionHistoryRetrieveRaw(
requestParameters,
initOverrides,
);
return await response.value();
}
@@ -799,7 +870,7 @@ export class AdminApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -808,7 +879,9 @@ export class AdminApi extends runtime.BaseAPI {
/**
* Get running and latest version.
*/
async adminVersionRetrieveRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Version>> {
async adminVersionRetrieveRaw(
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<Version>> {
const requestOptions = await this.adminVersionRetrieveRequestOpts();
const response = await this.request(requestOptions, initOverrides);
@@ -818,9 +891,10 @@ export class AdminApi extends runtime.BaseAPI {
/**
* Get running and latest version.
*/
async adminVersionRetrieve(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Version> {
async adminVersionRetrieve(
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<Version> {
const response = await this.adminVersionRetrieveRaw(initOverrides);
return await response.value();
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -12,42 +12,26 @@
* Do not edit the class manually.
*/
import * as runtime from '../runtime';
import type {
CertificateData,
CertificateGenerationRequest,
CertificateKeyPair,
CertificateKeyPairRequest,
GenericError,
KeyTypeEnum,
PaginatedCertificateKeyPairList,
PatchedCertificateKeyPairRequest,
UsedBy,
ValidationError,
} from '../models/index';
CertificateData,
CertificateGenerationRequest,
CertificateKeyPair,
CertificateKeyPairRequest,
KeyTypeEnum,
PaginatedCertificateKeyPairList,
PatchedCertificateKeyPairRequest,
UsedBy,
} from "../models/index";
import {
CertificateDataFromJSON,
CertificateDataToJSON,
CertificateGenerationRequestFromJSON,
CertificateGenerationRequestToJSON,
CertificateKeyPairFromJSON,
CertificateKeyPairToJSON,
CertificateKeyPairRequestFromJSON,
CertificateKeyPairRequestToJSON,
GenericErrorFromJSON,
GenericErrorToJSON,
KeyTypeEnumFromJSON,
KeyTypeEnumToJSON,
PaginatedCertificateKeyPairListFromJSON,
PaginatedCertificateKeyPairListToJSON,
PatchedCertificateKeyPairRequestFromJSON,
PatchedCertificateKeyPairRequestToJSON,
UsedByFromJSON,
UsedByToJSON,
ValidationErrorFromJSON,
ValidationErrorToJSON,
} from '../models/index';
} from "../models/index";
import * as runtime from "../runtime";
export interface CryptoCertificatekeypairsCreateRequest {
certificateKeyPairRequest: CertificateKeyPairRequest;
@@ -101,18 +85,19 @@ export interface CryptoCertificatekeypairsViewPrivateKeyRetrieveRequest {
}
/**
*
*
*/
export class CryptoApi extends runtime.BaseAPI {
/**
* Creates request options for cryptoCertificatekeypairsCreate without sending the request
*/
async cryptoCertificatekeypairsCreateRequestOpts(requestParameters: CryptoCertificatekeypairsCreateRequest): Promise<runtime.RequestOpts> {
if (requestParameters['certificateKeyPairRequest'] == null) {
async cryptoCertificatekeypairsCreateRequestOpts(
requestParameters: CryptoCertificatekeypairsCreateRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["certificateKeyPairRequest"] == null) {
throw new runtime.RequiredError(
'certificateKeyPairRequest',
'Required parameter "certificateKeyPairRequest" was null or undefined when calling cryptoCertificatekeypairsCreate().'
"certificateKeyPairRequest",
'Required parameter "certificateKeyPairRequest" was null or undefined when calling cryptoCertificatekeypairsCreate().',
);
}
@@ -120,7 +105,7 @@ export class CryptoApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
headerParameters['Content-Type'] = 'application/json';
headerParameters["Content-Type"] = "application/json";
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
@@ -135,39 +120,53 @@ export class CryptoApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'POST',
method: "POST",
headers: headerParameters,
query: queryParameters,
body: CertificateKeyPairRequestToJSON(requestParameters['certificateKeyPairRequest']),
body: CertificateKeyPairRequestToJSON(requestParameters["certificateKeyPairRequest"]),
};
}
/**
* CertificateKeyPair Viewset
*/
async cryptoCertificatekeypairsCreateRaw(requestParameters: CryptoCertificatekeypairsCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CertificateKeyPair>> {
const requestOptions = await this.cryptoCertificatekeypairsCreateRequestOpts(requestParameters);
async cryptoCertificatekeypairsCreateRaw(
requestParameters: CryptoCertificatekeypairsCreateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<CertificateKeyPair>> {
const requestOptions =
await this.cryptoCertificatekeypairsCreateRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => CertificateKeyPairFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
CertificateKeyPairFromJSON(jsonValue),
);
}
/**
* CertificateKeyPair Viewset
*/
async cryptoCertificatekeypairsCreate(requestParameters: CryptoCertificatekeypairsCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CertificateKeyPair> {
const response = await this.cryptoCertificatekeypairsCreateRaw(requestParameters, initOverrides);
async cryptoCertificatekeypairsCreate(
requestParameters: CryptoCertificatekeypairsCreateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<CertificateKeyPair> {
const response = await this.cryptoCertificatekeypairsCreateRaw(
requestParameters,
initOverrides,
);
return await response.value();
}
/**
* Creates request options for cryptoCertificatekeypairsDestroy without sending the request
*/
async cryptoCertificatekeypairsDestroyRequestOpts(requestParameters: CryptoCertificatekeypairsDestroyRequest): Promise<runtime.RequestOpts> {
if (requestParameters['kpUuid'] == null) {
async cryptoCertificatekeypairsDestroyRequestOpts(
requestParameters: CryptoCertificatekeypairsDestroyRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["kpUuid"] == null) {
throw new runtime.RequiredError(
'kpUuid',
'Required parameter "kpUuid" was null or undefined when calling cryptoCertificatekeypairsDestroy().'
"kpUuid",
'Required parameter "kpUuid" was null or undefined when calling cryptoCertificatekeypairsDestroy().',
);
}
@@ -185,11 +184,14 @@ export class CryptoApi extends runtime.BaseAPI {
}
let urlPath = `/crypto/certificatekeypairs/{kp_uuid}/`;
urlPath = urlPath.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters['kpUuid'])));
urlPath = urlPath.replace(
`{${"kp_uuid"}}`,
encodeURIComponent(String(requestParameters["kpUuid"])),
);
return {
path: urlPath,
method: 'DELETE',
method: "DELETE",
headers: headerParameters,
query: queryParameters,
};
@@ -198,8 +200,12 @@ export class CryptoApi extends runtime.BaseAPI {
/**
* CertificateKeyPair Viewset
*/
async cryptoCertificatekeypairsDestroyRaw(requestParameters: CryptoCertificatekeypairsDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
const requestOptions = await this.cryptoCertificatekeypairsDestroyRequestOpts(requestParameters);
async cryptoCertificatekeypairsDestroyRaw(
requestParameters: CryptoCertificatekeypairsDestroyRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<void>> {
const requestOptions =
await this.cryptoCertificatekeypairsDestroyRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.VoidApiResponse(response);
@@ -208,18 +214,23 @@ export class CryptoApi extends runtime.BaseAPI {
/**
* CertificateKeyPair Viewset
*/
async cryptoCertificatekeypairsDestroy(requestParameters: CryptoCertificatekeypairsDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
async cryptoCertificatekeypairsDestroy(
requestParameters: CryptoCertificatekeypairsDestroyRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<void> {
await this.cryptoCertificatekeypairsDestroyRaw(requestParameters, initOverrides);
}
/**
* Creates request options for cryptoCertificatekeypairsGenerateCreate without sending the request
*/
async cryptoCertificatekeypairsGenerateCreateRequestOpts(requestParameters: CryptoCertificatekeypairsGenerateCreateRequest): Promise<runtime.RequestOpts> {
if (requestParameters['certificateGenerationRequest'] == null) {
async cryptoCertificatekeypairsGenerateCreateRequestOpts(
requestParameters: CryptoCertificatekeypairsGenerateCreateRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["certificateGenerationRequest"] == null) {
throw new runtime.RequiredError(
'certificateGenerationRequest',
'Required parameter "certificateGenerationRequest" was null or undefined when calling cryptoCertificatekeypairsGenerateCreate().'
"certificateGenerationRequest",
'Required parameter "certificateGenerationRequest" was null or undefined when calling cryptoCertificatekeypairsGenerateCreate().',
);
}
@@ -227,7 +238,7 @@ export class CryptoApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
headerParameters['Content-Type'] = 'application/json';
headerParameters["Content-Type"] = "application/json";
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
@@ -242,67 +253,83 @@ export class CryptoApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'POST',
method: "POST",
headers: headerParameters,
query: queryParameters,
body: CertificateGenerationRequestToJSON(requestParameters['certificateGenerationRequest']),
body: CertificateGenerationRequestToJSON(
requestParameters["certificateGenerationRequest"],
),
};
}
/**
* Generate a new, self-signed certificate-key pair
*/
async cryptoCertificatekeypairsGenerateCreateRaw(requestParameters: CryptoCertificatekeypairsGenerateCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CertificateKeyPair>> {
const requestOptions = await this.cryptoCertificatekeypairsGenerateCreateRequestOpts(requestParameters);
async cryptoCertificatekeypairsGenerateCreateRaw(
requestParameters: CryptoCertificatekeypairsGenerateCreateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<CertificateKeyPair>> {
const requestOptions =
await this.cryptoCertificatekeypairsGenerateCreateRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => CertificateKeyPairFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
CertificateKeyPairFromJSON(jsonValue),
);
}
/**
* Generate a new, self-signed certificate-key pair
*/
async cryptoCertificatekeypairsGenerateCreate(requestParameters: CryptoCertificatekeypairsGenerateCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CertificateKeyPair> {
const response = await this.cryptoCertificatekeypairsGenerateCreateRaw(requestParameters, initOverrides);
async cryptoCertificatekeypairsGenerateCreate(
requestParameters: CryptoCertificatekeypairsGenerateCreateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<CertificateKeyPair> {
const response = await this.cryptoCertificatekeypairsGenerateCreateRaw(
requestParameters,
initOverrides,
);
return await response.value();
}
/**
* Creates request options for cryptoCertificatekeypairsList without sending the request
*/
async cryptoCertificatekeypairsListRequestOpts(requestParameters: CryptoCertificatekeypairsListRequest): Promise<runtime.RequestOpts> {
async cryptoCertificatekeypairsListRequestOpts(
requestParameters: CryptoCertificatekeypairsListRequest,
): Promise<runtime.RequestOpts> {
const queryParameters: any = {};
if (requestParameters['hasKey'] != null) {
queryParameters['has_key'] = requestParameters['hasKey'];
if (requestParameters["hasKey"] != null) {
queryParameters["has_key"] = requestParameters["hasKey"];
}
if (requestParameters['keyType'] != null) {
queryParameters['key_type'] = requestParameters['keyType'];
if (requestParameters["keyType"] != null) {
queryParameters["key_type"] = requestParameters["keyType"];
}
if (requestParameters['managed'] != null) {
queryParameters['managed'] = requestParameters['managed'];
if (requestParameters["managed"] != null) {
queryParameters["managed"] = requestParameters["managed"];
}
if (requestParameters['name'] != null) {
queryParameters['name'] = requestParameters['name'];
if (requestParameters["name"] != null) {
queryParameters["name"] = requestParameters["name"];
}
if (requestParameters['ordering'] != null) {
queryParameters['ordering'] = requestParameters['ordering'];
if (requestParameters["ordering"] != null) {
queryParameters["ordering"] = requestParameters["ordering"];
}
if (requestParameters['page'] != null) {
queryParameters['page'] = requestParameters['page'];
if (requestParameters["page"] != null) {
queryParameters["page"] = requestParameters["page"];
}
if (requestParameters['pageSize'] != null) {
queryParameters['page_size'] = requestParameters['pageSize'];
if (requestParameters["pageSize"] != null) {
queryParameters["page_size"] = requestParameters["pageSize"];
}
if (requestParameters['search'] != null) {
queryParameters['search'] = requestParameters['search'];
if (requestParameters["search"] != null) {
queryParameters["search"] = requestParameters["search"];
}
const headerParameters: runtime.HTTPHeaders = {};
@@ -320,7 +347,7 @@ export class CryptoApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -329,29 +356,43 @@ export class CryptoApi extends runtime.BaseAPI {
/**
* CertificateKeyPair Viewset
*/
async cryptoCertificatekeypairsListRaw(requestParameters: CryptoCertificatekeypairsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedCertificateKeyPairList>> {
const requestOptions = await this.cryptoCertificatekeypairsListRequestOpts(requestParameters);
async cryptoCertificatekeypairsListRaw(
requestParameters: CryptoCertificatekeypairsListRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<PaginatedCertificateKeyPairList>> {
const requestOptions =
await this.cryptoCertificatekeypairsListRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedCertificateKeyPairListFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
PaginatedCertificateKeyPairListFromJSON(jsonValue),
);
}
/**
* CertificateKeyPair Viewset
*/
async cryptoCertificatekeypairsList(requestParameters: CryptoCertificatekeypairsListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedCertificateKeyPairList> {
const response = await this.cryptoCertificatekeypairsListRaw(requestParameters, initOverrides);
async cryptoCertificatekeypairsList(
requestParameters: CryptoCertificatekeypairsListRequest = {},
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<PaginatedCertificateKeyPairList> {
const response = await this.cryptoCertificatekeypairsListRaw(
requestParameters,
initOverrides,
);
return await response.value();
}
/**
* Creates request options for cryptoCertificatekeypairsPartialUpdate without sending the request
*/
async cryptoCertificatekeypairsPartialUpdateRequestOpts(requestParameters: CryptoCertificatekeypairsPartialUpdateRequest): Promise<runtime.RequestOpts> {
if (requestParameters['kpUuid'] == null) {
async cryptoCertificatekeypairsPartialUpdateRequestOpts(
requestParameters: CryptoCertificatekeypairsPartialUpdateRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["kpUuid"] == null) {
throw new runtime.RequiredError(
'kpUuid',
'Required parameter "kpUuid" was null or undefined when calling cryptoCertificatekeypairsPartialUpdate().'
"kpUuid",
'Required parameter "kpUuid" was null or undefined when calling cryptoCertificatekeypairsPartialUpdate().',
);
}
@@ -359,7 +400,7 @@ export class CryptoApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
headerParameters['Content-Type'] = 'application/json';
headerParameters["Content-Type"] = "application/json";
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
@@ -371,43 +412,62 @@ export class CryptoApi extends runtime.BaseAPI {
}
let urlPath = `/crypto/certificatekeypairs/{kp_uuid}/`;
urlPath = urlPath.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters['kpUuid'])));
urlPath = urlPath.replace(
`{${"kp_uuid"}}`,
encodeURIComponent(String(requestParameters["kpUuid"])),
);
return {
path: urlPath,
method: 'PATCH',
method: "PATCH",
headers: headerParameters,
query: queryParameters,
body: PatchedCertificateKeyPairRequestToJSON(requestParameters['patchedCertificateKeyPairRequest']),
body: PatchedCertificateKeyPairRequestToJSON(
requestParameters["patchedCertificateKeyPairRequest"],
),
};
}
/**
* CertificateKeyPair Viewset
*/
async cryptoCertificatekeypairsPartialUpdateRaw(requestParameters: CryptoCertificatekeypairsPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CertificateKeyPair>> {
const requestOptions = await this.cryptoCertificatekeypairsPartialUpdateRequestOpts(requestParameters);
async cryptoCertificatekeypairsPartialUpdateRaw(
requestParameters: CryptoCertificatekeypairsPartialUpdateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<CertificateKeyPair>> {
const requestOptions =
await this.cryptoCertificatekeypairsPartialUpdateRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => CertificateKeyPairFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
CertificateKeyPairFromJSON(jsonValue),
);
}
/**
* CertificateKeyPair Viewset
*/
async cryptoCertificatekeypairsPartialUpdate(requestParameters: CryptoCertificatekeypairsPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CertificateKeyPair> {
const response = await this.cryptoCertificatekeypairsPartialUpdateRaw(requestParameters, initOverrides);
async cryptoCertificatekeypairsPartialUpdate(
requestParameters: CryptoCertificatekeypairsPartialUpdateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<CertificateKeyPair> {
const response = await this.cryptoCertificatekeypairsPartialUpdateRaw(
requestParameters,
initOverrides,
);
return await response.value();
}
/**
* Creates request options for cryptoCertificatekeypairsRetrieve without sending the request
*/
async cryptoCertificatekeypairsRetrieveRequestOpts(requestParameters: CryptoCertificatekeypairsRetrieveRequest): Promise<runtime.RequestOpts> {
if (requestParameters['kpUuid'] == null) {
async cryptoCertificatekeypairsRetrieveRequestOpts(
requestParameters: CryptoCertificatekeypairsRetrieveRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["kpUuid"] == null) {
throw new runtime.RequiredError(
'kpUuid',
'Required parameter "kpUuid" was null or undefined when calling cryptoCertificatekeypairsRetrieve().'
"kpUuid",
'Required parameter "kpUuid" was null or undefined when calling cryptoCertificatekeypairsRetrieve().',
);
}
@@ -425,11 +485,14 @@ export class CryptoApi extends runtime.BaseAPI {
}
let urlPath = `/crypto/certificatekeypairs/{kp_uuid}/`;
urlPath = urlPath.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters['kpUuid'])));
urlPath = urlPath.replace(
`{${"kp_uuid"}}`,
encodeURIComponent(String(requestParameters["kpUuid"])),
);
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -438,36 +501,50 @@ export class CryptoApi extends runtime.BaseAPI {
/**
* CertificateKeyPair Viewset
*/
async cryptoCertificatekeypairsRetrieveRaw(requestParameters: CryptoCertificatekeypairsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CertificateKeyPair>> {
const requestOptions = await this.cryptoCertificatekeypairsRetrieveRequestOpts(requestParameters);
async cryptoCertificatekeypairsRetrieveRaw(
requestParameters: CryptoCertificatekeypairsRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<CertificateKeyPair>> {
const requestOptions =
await this.cryptoCertificatekeypairsRetrieveRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => CertificateKeyPairFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
CertificateKeyPairFromJSON(jsonValue),
);
}
/**
* CertificateKeyPair Viewset
*/
async cryptoCertificatekeypairsRetrieve(requestParameters: CryptoCertificatekeypairsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CertificateKeyPair> {
const response = await this.cryptoCertificatekeypairsRetrieveRaw(requestParameters, initOverrides);
async cryptoCertificatekeypairsRetrieve(
requestParameters: CryptoCertificatekeypairsRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<CertificateKeyPair> {
const response = await this.cryptoCertificatekeypairsRetrieveRaw(
requestParameters,
initOverrides,
);
return await response.value();
}
/**
* Creates request options for cryptoCertificatekeypairsUpdate without sending the request
*/
async cryptoCertificatekeypairsUpdateRequestOpts(requestParameters: CryptoCertificatekeypairsUpdateRequest): Promise<runtime.RequestOpts> {
if (requestParameters['kpUuid'] == null) {
async cryptoCertificatekeypairsUpdateRequestOpts(
requestParameters: CryptoCertificatekeypairsUpdateRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["kpUuid"] == null) {
throw new runtime.RequiredError(
'kpUuid',
'Required parameter "kpUuid" was null or undefined when calling cryptoCertificatekeypairsUpdate().'
"kpUuid",
'Required parameter "kpUuid" was null or undefined when calling cryptoCertificatekeypairsUpdate().',
);
}
if (requestParameters['certificateKeyPairRequest'] == null) {
if (requestParameters["certificateKeyPairRequest"] == null) {
throw new runtime.RequiredError(
'certificateKeyPairRequest',
'Required parameter "certificateKeyPairRequest" was null or undefined when calling cryptoCertificatekeypairsUpdate().'
"certificateKeyPairRequest",
'Required parameter "certificateKeyPairRequest" was null or undefined when calling cryptoCertificatekeypairsUpdate().',
);
}
@@ -475,7 +552,7 @@ export class CryptoApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
headerParameters['Content-Type'] = 'application/json';
headerParameters["Content-Type"] = "application/json";
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
@@ -487,43 +564,60 @@ export class CryptoApi extends runtime.BaseAPI {
}
let urlPath = `/crypto/certificatekeypairs/{kp_uuid}/`;
urlPath = urlPath.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters['kpUuid'])));
urlPath = urlPath.replace(
`{${"kp_uuid"}}`,
encodeURIComponent(String(requestParameters["kpUuid"])),
);
return {
path: urlPath,
method: 'PUT',
method: "PUT",
headers: headerParameters,
query: queryParameters,
body: CertificateKeyPairRequestToJSON(requestParameters['certificateKeyPairRequest']),
body: CertificateKeyPairRequestToJSON(requestParameters["certificateKeyPairRequest"]),
};
}
/**
* CertificateKeyPair Viewset
*/
async cryptoCertificatekeypairsUpdateRaw(requestParameters: CryptoCertificatekeypairsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CertificateKeyPair>> {
const requestOptions = await this.cryptoCertificatekeypairsUpdateRequestOpts(requestParameters);
async cryptoCertificatekeypairsUpdateRaw(
requestParameters: CryptoCertificatekeypairsUpdateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<CertificateKeyPair>> {
const requestOptions =
await this.cryptoCertificatekeypairsUpdateRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => CertificateKeyPairFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
CertificateKeyPairFromJSON(jsonValue),
);
}
/**
* CertificateKeyPair Viewset
*/
async cryptoCertificatekeypairsUpdate(requestParameters: CryptoCertificatekeypairsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CertificateKeyPair> {
const response = await this.cryptoCertificatekeypairsUpdateRaw(requestParameters, initOverrides);
async cryptoCertificatekeypairsUpdate(
requestParameters: CryptoCertificatekeypairsUpdateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<CertificateKeyPair> {
const response = await this.cryptoCertificatekeypairsUpdateRaw(
requestParameters,
initOverrides,
);
return await response.value();
}
/**
* Creates request options for cryptoCertificatekeypairsUsedByList without sending the request
*/
async cryptoCertificatekeypairsUsedByListRequestOpts(requestParameters: CryptoCertificatekeypairsUsedByListRequest): Promise<runtime.RequestOpts> {
if (requestParameters['kpUuid'] == null) {
async cryptoCertificatekeypairsUsedByListRequestOpts(
requestParameters: CryptoCertificatekeypairsUsedByListRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["kpUuid"] == null) {
throw new runtime.RequiredError(
'kpUuid',
'Required parameter "kpUuid" was null or undefined when calling cryptoCertificatekeypairsUsedByList().'
"kpUuid",
'Required parameter "kpUuid" was null or undefined when calling cryptoCertificatekeypairsUsedByList().',
);
}
@@ -541,11 +635,14 @@ export class CryptoApi extends runtime.BaseAPI {
}
let urlPath = `/crypto/certificatekeypairs/{kp_uuid}/used_by/`;
urlPath = urlPath.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters['kpUuid'])));
urlPath = urlPath.replace(
`{${"kp_uuid"}}`,
encodeURIComponent(String(requestParameters["kpUuid"])),
);
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -554,8 +651,12 @@ export class CryptoApi extends runtime.BaseAPI {
/**
* Get a list of all objects that use this object
*/
async cryptoCertificatekeypairsUsedByListRaw(requestParameters: CryptoCertificatekeypairsUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>> {
const requestOptions = await this.cryptoCertificatekeypairsUsedByListRequestOpts(requestParameters);
async cryptoCertificatekeypairsUsedByListRaw(
requestParameters: CryptoCertificatekeypairsUsedByListRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<Array<UsedBy>>> {
const requestOptions =
await this.cryptoCertificatekeypairsUsedByListRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
@@ -564,26 +665,34 @@ export class CryptoApi extends runtime.BaseAPI {
/**
* Get a list of all objects that use this object
*/
async cryptoCertificatekeypairsUsedByList(requestParameters: CryptoCertificatekeypairsUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UsedBy>> {
const response = await this.cryptoCertificatekeypairsUsedByListRaw(requestParameters, initOverrides);
async cryptoCertificatekeypairsUsedByList(
requestParameters: CryptoCertificatekeypairsUsedByListRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<Array<UsedBy>> {
const response = await this.cryptoCertificatekeypairsUsedByListRaw(
requestParameters,
initOverrides,
);
return await response.value();
}
/**
* Creates request options for cryptoCertificatekeypairsViewCertificateRetrieve without sending the request
*/
async cryptoCertificatekeypairsViewCertificateRetrieveRequestOpts(requestParameters: CryptoCertificatekeypairsViewCertificateRetrieveRequest): Promise<runtime.RequestOpts> {
if (requestParameters['kpUuid'] == null) {
async cryptoCertificatekeypairsViewCertificateRetrieveRequestOpts(
requestParameters: CryptoCertificatekeypairsViewCertificateRetrieveRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["kpUuid"] == null) {
throw new runtime.RequiredError(
'kpUuid',
'Required parameter "kpUuid" was null or undefined when calling cryptoCertificatekeypairsViewCertificateRetrieve().'
"kpUuid",
'Required parameter "kpUuid" was null or undefined when calling cryptoCertificatekeypairsViewCertificateRetrieve().',
);
}
const queryParameters: any = {};
if (requestParameters['download'] != null) {
queryParameters['download'] = requestParameters['download'];
if (requestParameters["download"] != null) {
queryParameters["download"] = requestParameters["download"];
}
const headerParameters: runtime.HTTPHeaders = {};
@@ -598,11 +707,14 @@ export class CryptoApi extends runtime.BaseAPI {
}
let urlPath = `/crypto/certificatekeypairs/{kp_uuid}/view_certificate/`;
urlPath = urlPath.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters['kpUuid'])));
urlPath = urlPath.replace(
`{${"kp_uuid"}}`,
encodeURIComponent(String(requestParameters["kpUuid"])),
);
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -611,36 +723,52 @@ export class CryptoApi extends runtime.BaseAPI {
/**
* Return certificate-key pairs certificate and log access
*/
async cryptoCertificatekeypairsViewCertificateRetrieveRaw(requestParameters: CryptoCertificatekeypairsViewCertificateRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CertificateData>> {
const requestOptions = await this.cryptoCertificatekeypairsViewCertificateRetrieveRequestOpts(requestParameters);
async cryptoCertificatekeypairsViewCertificateRetrieveRaw(
requestParameters: CryptoCertificatekeypairsViewCertificateRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<CertificateData>> {
const requestOptions =
await this.cryptoCertificatekeypairsViewCertificateRetrieveRequestOpts(
requestParameters,
);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => CertificateDataFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
CertificateDataFromJSON(jsonValue),
);
}
/**
* Return certificate-key pairs certificate and log access
*/
async cryptoCertificatekeypairsViewCertificateRetrieve(requestParameters: CryptoCertificatekeypairsViewCertificateRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CertificateData> {
const response = await this.cryptoCertificatekeypairsViewCertificateRetrieveRaw(requestParameters, initOverrides);
async cryptoCertificatekeypairsViewCertificateRetrieve(
requestParameters: CryptoCertificatekeypairsViewCertificateRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<CertificateData> {
const response = await this.cryptoCertificatekeypairsViewCertificateRetrieveRaw(
requestParameters,
initOverrides,
);
return await response.value();
}
/**
* Creates request options for cryptoCertificatekeypairsViewPrivateKeyRetrieve without sending the request
*/
async cryptoCertificatekeypairsViewPrivateKeyRetrieveRequestOpts(requestParameters: CryptoCertificatekeypairsViewPrivateKeyRetrieveRequest): Promise<runtime.RequestOpts> {
if (requestParameters['kpUuid'] == null) {
async cryptoCertificatekeypairsViewPrivateKeyRetrieveRequestOpts(
requestParameters: CryptoCertificatekeypairsViewPrivateKeyRetrieveRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["kpUuid"] == null) {
throw new runtime.RequiredError(
'kpUuid',
'Required parameter "kpUuid" was null or undefined when calling cryptoCertificatekeypairsViewPrivateKeyRetrieve().'
"kpUuid",
'Required parameter "kpUuid" was null or undefined when calling cryptoCertificatekeypairsViewPrivateKeyRetrieve().',
);
}
const queryParameters: any = {};
if (requestParameters['download'] != null) {
queryParameters['download'] = requestParameters['download'];
if (requestParameters["download"] != null) {
queryParameters["download"] = requestParameters["download"];
}
const headerParameters: runtime.HTTPHeaders = {};
@@ -655,11 +783,14 @@ export class CryptoApi extends runtime.BaseAPI {
}
let urlPath = `/crypto/certificatekeypairs/{kp_uuid}/view_private_key/`;
urlPath = urlPath.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters['kpUuid'])));
urlPath = urlPath.replace(
`{${"kp_uuid"}}`,
encodeURIComponent(String(requestParameters["kpUuid"])),
);
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -668,19 +799,32 @@ export class CryptoApi extends runtime.BaseAPI {
/**
* Return certificate-key pairs private key and log access
*/
async cryptoCertificatekeypairsViewPrivateKeyRetrieveRaw(requestParameters: CryptoCertificatekeypairsViewPrivateKeyRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CertificateData>> {
const requestOptions = await this.cryptoCertificatekeypairsViewPrivateKeyRetrieveRequestOpts(requestParameters);
async cryptoCertificatekeypairsViewPrivateKeyRetrieveRaw(
requestParameters: CryptoCertificatekeypairsViewPrivateKeyRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<CertificateData>> {
const requestOptions =
await this.cryptoCertificatekeypairsViewPrivateKeyRetrieveRequestOpts(
requestParameters,
);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => CertificateDataFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
CertificateDataFromJSON(jsonValue),
);
}
/**
* Return certificate-key pairs private key and log access
*/
async cryptoCertificatekeypairsViewPrivateKeyRetrieve(requestParameters: CryptoCertificatekeypairsViewPrivateKeyRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CertificateData> {
const response = await this.cryptoCertificatekeypairsViewPrivateKeyRetrieveRaw(requestParameters, initOverrides);
async cryptoCertificatekeypairsViewPrivateKeyRetrieve(
requestParameters: CryptoCertificatekeypairsViewPrivateKeyRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<CertificateData> {
const response = await this.cryptoCertificatekeypairsViewPrivateKeyRetrieveRaw(
requestParameters,
initOverrides,
);
return await response.value();
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -12,42 +12,27 @@
* Do not edit the class manually.
*/
import * as runtime from '../runtime';
import type {
GenericError,
InstallID,
License,
LicenseForecast,
LicenseRequest,
LicenseSummary,
PaginatedLicenseList,
PatchedLicenseRequest,
UsedBy,
ValidationError,
} from '../models/index';
InstallID,
License,
LicenseForecast,
LicenseRequest,
LicenseSummary,
PaginatedLicenseList,
PatchedLicenseRequest,
UsedBy,
} from "../models/index";
import {
GenericErrorFromJSON,
GenericErrorToJSON,
InstallIDFromJSON,
InstallIDToJSON,
LicenseFromJSON,
LicenseToJSON,
LicenseForecastFromJSON,
LicenseForecastToJSON,
LicenseRequestFromJSON,
LicenseFromJSON,
LicenseRequestToJSON,
LicenseSummaryFromJSON,
LicenseSummaryToJSON,
PaginatedLicenseListFromJSON,
PaginatedLicenseListToJSON,
PatchedLicenseRequestFromJSON,
PatchedLicenseRequestToJSON,
UsedByFromJSON,
UsedByToJSON,
ValidationErrorFromJSON,
ValidationErrorToJSON,
} from '../models/index';
} from "../models/index";
import * as runtime from "../runtime";
export interface EnterpriseLicenseCreateRequest {
licenseRequest: LicenseRequest;
@@ -88,18 +73,19 @@ export interface EnterpriseLicenseUsedByListRequest {
}
/**
*
*
*/
export class EnterpriseApi extends runtime.BaseAPI {
/**
* Creates request options for enterpriseLicenseCreate without sending the request
*/
async enterpriseLicenseCreateRequestOpts(requestParameters: EnterpriseLicenseCreateRequest): Promise<runtime.RequestOpts> {
if (requestParameters['licenseRequest'] == null) {
async enterpriseLicenseCreateRequestOpts(
requestParameters: EnterpriseLicenseCreateRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["licenseRequest"] == null) {
throw new runtime.RequiredError(
'licenseRequest',
'Required parameter "licenseRequest" was null or undefined when calling enterpriseLicenseCreate().'
"licenseRequest",
'Required parameter "licenseRequest" was null or undefined when calling enterpriseLicenseCreate().',
);
}
@@ -107,7 +93,7 @@ export class EnterpriseApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
headerParameters['Content-Type'] = 'application/json';
headerParameters["Content-Type"] = "application/json";
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
@@ -122,17 +108,20 @@ export class EnterpriseApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'POST',
method: "POST",
headers: headerParameters,
query: queryParameters,
body: LicenseRequestToJSON(requestParameters['licenseRequest']),
body: LicenseRequestToJSON(requestParameters["licenseRequest"]),
};
}
/**
* License Viewset
*/
async enterpriseLicenseCreateRaw(requestParameters: EnterpriseLicenseCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<License>> {
async enterpriseLicenseCreateRaw(
requestParameters: EnterpriseLicenseCreateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<License>> {
const requestOptions = await this.enterpriseLicenseCreateRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -142,7 +131,10 @@ export class EnterpriseApi extends runtime.BaseAPI {
/**
* License Viewset
*/
async enterpriseLicenseCreate(requestParameters: EnterpriseLicenseCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<License> {
async enterpriseLicenseCreate(
requestParameters: EnterpriseLicenseCreateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<License> {
const response = await this.enterpriseLicenseCreateRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -150,11 +142,13 @@ export class EnterpriseApi extends runtime.BaseAPI {
/**
* Creates request options for enterpriseLicenseDestroy without sending the request
*/
async enterpriseLicenseDestroyRequestOpts(requestParameters: EnterpriseLicenseDestroyRequest): Promise<runtime.RequestOpts> {
if (requestParameters['licenseUuid'] == null) {
async enterpriseLicenseDestroyRequestOpts(
requestParameters: EnterpriseLicenseDestroyRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["licenseUuid"] == null) {
throw new runtime.RequiredError(
'licenseUuid',
'Required parameter "licenseUuid" was null or undefined when calling enterpriseLicenseDestroy().'
"licenseUuid",
'Required parameter "licenseUuid" was null or undefined when calling enterpriseLicenseDestroy().',
);
}
@@ -172,11 +166,14 @@ export class EnterpriseApi extends runtime.BaseAPI {
}
let urlPath = `/enterprise/license/{license_uuid}/`;
urlPath = urlPath.replace(`{${"license_uuid"}}`, encodeURIComponent(String(requestParameters['licenseUuid'])));
urlPath = urlPath.replace(
`{${"license_uuid"}}`,
encodeURIComponent(String(requestParameters["licenseUuid"])),
);
return {
path: urlPath,
method: 'DELETE',
method: "DELETE",
headers: headerParameters,
query: queryParameters,
};
@@ -185,7 +182,10 @@ export class EnterpriseApi extends runtime.BaseAPI {
/**
* License Viewset
*/
async enterpriseLicenseDestroyRaw(requestParameters: EnterpriseLicenseDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
async enterpriseLicenseDestroyRaw(
requestParameters: EnterpriseLicenseDestroyRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<void>> {
const requestOptions = await this.enterpriseLicenseDestroyRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -195,7 +195,10 @@ export class EnterpriseApi extends runtime.BaseAPI {
/**
* License Viewset
*/
async enterpriseLicenseDestroy(requestParameters: EnterpriseLicenseDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
async enterpriseLicenseDestroy(
requestParameters: EnterpriseLicenseDestroyRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<void> {
await this.enterpriseLicenseDestroyRaw(requestParameters, initOverrides);
}
@@ -220,7 +223,7 @@ export class EnterpriseApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -229,17 +232,23 @@ export class EnterpriseApi extends runtime.BaseAPI {
/**
* Forecast how many users will be required in a year
*/
async enterpriseLicenseForecastRetrieveRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LicenseForecast>> {
async enterpriseLicenseForecastRetrieveRaw(
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<LicenseForecast>> {
const requestOptions = await this.enterpriseLicenseForecastRetrieveRequestOpts();
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => LicenseForecastFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
LicenseForecastFromJSON(jsonValue),
);
}
/**
* Forecast how many users will be required in a year
*/
async enterpriseLicenseForecastRetrieve(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LicenseForecast> {
async enterpriseLicenseForecastRetrieve(
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<LicenseForecast> {
const response = await this.enterpriseLicenseForecastRetrieveRaw(initOverrides);
return await response.value();
}
@@ -265,7 +274,7 @@ export class EnterpriseApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -274,7 +283,9 @@ export class EnterpriseApi extends runtime.BaseAPI {
/**
* Get install_id
*/
async enterpriseLicenseInstallIdRetrieveRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InstallID>> {
async enterpriseLicenseInstallIdRetrieveRaw(
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<InstallID>> {
const requestOptions = await this.enterpriseLicenseInstallIdRetrieveRequestOpts();
const response = await this.request(requestOptions, initOverrides);
@@ -284,7 +295,9 @@ export class EnterpriseApi extends runtime.BaseAPI {
/**
* Get install_id
*/
async enterpriseLicenseInstallIdRetrieve(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InstallID> {
async enterpriseLicenseInstallIdRetrieve(
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<InstallID> {
const response = await this.enterpriseLicenseInstallIdRetrieveRaw(initOverrides);
return await response.value();
}
@@ -292,27 +305,29 @@ export class EnterpriseApi extends runtime.BaseAPI {
/**
* Creates request options for enterpriseLicenseList without sending the request
*/
async enterpriseLicenseListRequestOpts(requestParameters: EnterpriseLicenseListRequest): Promise<runtime.RequestOpts> {
async enterpriseLicenseListRequestOpts(
requestParameters: EnterpriseLicenseListRequest,
): Promise<runtime.RequestOpts> {
const queryParameters: any = {};
if (requestParameters['name'] != null) {
queryParameters['name'] = requestParameters['name'];
if (requestParameters["name"] != null) {
queryParameters["name"] = requestParameters["name"];
}
if (requestParameters['ordering'] != null) {
queryParameters['ordering'] = requestParameters['ordering'];
if (requestParameters["ordering"] != null) {
queryParameters["ordering"] = requestParameters["ordering"];
}
if (requestParameters['page'] != null) {
queryParameters['page'] = requestParameters['page'];
if (requestParameters["page"] != null) {
queryParameters["page"] = requestParameters["page"];
}
if (requestParameters['pageSize'] != null) {
queryParameters['page_size'] = requestParameters['pageSize'];
if (requestParameters["pageSize"] != null) {
queryParameters["page_size"] = requestParameters["pageSize"];
}
if (requestParameters['search'] != null) {
queryParameters['search'] = requestParameters['search'];
if (requestParameters["search"] != null) {
queryParameters["search"] = requestParameters["search"];
}
const headerParameters: runtime.HTTPHeaders = {};
@@ -330,7 +345,7 @@ export class EnterpriseApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -339,17 +354,25 @@ export class EnterpriseApi extends runtime.BaseAPI {
/**
* License Viewset
*/
async enterpriseLicenseListRaw(requestParameters: EnterpriseLicenseListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedLicenseList>> {
async enterpriseLicenseListRaw(
requestParameters: EnterpriseLicenseListRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<PaginatedLicenseList>> {
const requestOptions = await this.enterpriseLicenseListRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedLicenseListFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
PaginatedLicenseListFromJSON(jsonValue),
);
}
/**
* License Viewset
*/
async enterpriseLicenseList(requestParameters: EnterpriseLicenseListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedLicenseList> {
async enterpriseLicenseList(
requestParameters: EnterpriseLicenseListRequest = {},
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<PaginatedLicenseList> {
const response = await this.enterpriseLicenseListRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -357,11 +380,13 @@ export class EnterpriseApi extends runtime.BaseAPI {
/**
* Creates request options for enterpriseLicensePartialUpdate without sending the request
*/
async enterpriseLicensePartialUpdateRequestOpts(requestParameters: EnterpriseLicensePartialUpdateRequest): Promise<runtime.RequestOpts> {
if (requestParameters['licenseUuid'] == null) {
async enterpriseLicensePartialUpdateRequestOpts(
requestParameters: EnterpriseLicensePartialUpdateRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["licenseUuid"] == null) {
throw new runtime.RequiredError(
'licenseUuid',
'Required parameter "licenseUuid" was null or undefined when calling enterpriseLicensePartialUpdate().'
"licenseUuid",
'Required parameter "licenseUuid" was null or undefined when calling enterpriseLicensePartialUpdate().',
);
}
@@ -369,7 +394,7 @@ export class EnterpriseApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
headerParameters['Content-Type'] = 'application/json';
headerParameters["Content-Type"] = "application/json";
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
@@ -381,22 +406,29 @@ export class EnterpriseApi extends runtime.BaseAPI {
}
let urlPath = `/enterprise/license/{license_uuid}/`;
urlPath = urlPath.replace(`{${"license_uuid"}}`, encodeURIComponent(String(requestParameters['licenseUuid'])));
urlPath = urlPath.replace(
`{${"license_uuid"}}`,
encodeURIComponent(String(requestParameters["licenseUuid"])),
);
return {
path: urlPath,
method: 'PATCH',
method: "PATCH",
headers: headerParameters,
query: queryParameters,
body: PatchedLicenseRequestToJSON(requestParameters['patchedLicenseRequest']),
body: PatchedLicenseRequestToJSON(requestParameters["patchedLicenseRequest"]),
};
}
/**
* License Viewset
*/
async enterpriseLicensePartialUpdateRaw(requestParameters: EnterpriseLicensePartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<License>> {
const requestOptions = await this.enterpriseLicensePartialUpdateRequestOpts(requestParameters);
async enterpriseLicensePartialUpdateRaw(
requestParameters: EnterpriseLicensePartialUpdateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<License>> {
const requestOptions =
await this.enterpriseLicensePartialUpdateRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => LicenseFromJSON(jsonValue));
@@ -405,19 +437,27 @@ export class EnterpriseApi extends runtime.BaseAPI {
/**
* License Viewset
*/
async enterpriseLicensePartialUpdate(requestParameters: EnterpriseLicensePartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<License> {
const response = await this.enterpriseLicensePartialUpdateRaw(requestParameters, initOverrides);
async enterpriseLicensePartialUpdate(
requestParameters: EnterpriseLicensePartialUpdateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<License> {
const response = await this.enterpriseLicensePartialUpdateRaw(
requestParameters,
initOverrides,
);
return await response.value();
}
/**
* Creates request options for enterpriseLicenseRetrieve without sending the request
*/
async enterpriseLicenseRetrieveRequestOpts(requestParameters: EnterpriseLicenseRetrieveRequest): Promise<runtime.RequestOpts> {
if (requestParameters['licenseUuid'] == null) {
async enterpriseLicenseRetrieveRequestOpts(
requestParameters: EnterpriseLicenseRetrieveRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["licenseUuid"] == null) {
throw new runtime.RequiredError(
'licenseUuid',
'Required parameter "licenseUuid" was null or undefined when calling enterpriseLicenseRetrieve().'
"licenseUuid",
'Required parameter "licenseUuid" was null or undefined when calling enterpriseLicenseRetrieve().',
);
}
@@ -435,11 +475,14 @@ export class EnterpriseApi extends runtime.BaseAPI {
}
let urlPath = `/enterprise/license/{license_uuid}/`;
urlPath = urlPath.replace(`{${"license_uuid"}}`, encodeURIComponent(String(requestParameters['licenseUuid'])));
urlPath = urlPath.replace(
`{${"license_uuid"}}`,
encodeURIComponent(String(requestParameters["licenseUuid"])),
);
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -448,7 +491,10 @@ export class EnterpriseApi extends runtime.BaseAPI {
/**
* License Viewset
*/
async enterpriseLicenseRetrieveRaw(requestParameters: EnterpriseLicenseRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<License>> {
async enterpriseLicenseRetrieveRaw(
requestParameters: EnterpriseLicenseRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<License>> {
const requestOptions = await this.enterpriseLicenseRetrieveRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -458,7 +504,10 @@ export class EnterpriseApi extends runtime.BaseAPI {
/**
* License Viewset
*/
async enterpriseLicenseRetrieve(requestParameters: EnterpriseLicenseRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<License> {
async enterpriseLicenseRetrieve(
requestParameters: EnterpriseLicenseRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<License> {
const response = await this.enterpriseLicenseRetrieveRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -466,11 +515,13 @@ export class EnterpriseApi extends runtime.BaseAPI {
/**
* Creates request options for enterpriseLicenseSummaryRetrieve without sending the request
*/
async enterpriseLicenseSummaryRetrieveRequestOpts(requestParameters: EnterpriseLicenseSummaryRetrieveRequest): Promise<runtime.RequestOpts> {
async enterpriseLicenseSummaryRetrieveRequestOpts(
requestParameters: EnterpriseLicenseSummaryRetrieveRequest,
): Promise<runtime.RequestOpts> {
const queryParameters: any = {};
if (requestParameters['cached'] != null) {
queryParameters['cached'] = requestParameters['cached'];
if (requestParameters["cached"] != null) {
queryParameters["cached"] = requestParameters["cached"];
}
const headerParameters: runtime.HTTPHeaders = {};
@@ -488,7 +539,7 @@ export class EnterpriseApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -497,36 +548,50 @@ export class EnterpriseApi extends runtime.BaseAPI {
/**
* Get the total license status
*/
async enterpriseLicenseSummaryRetrieveRaw(requestParameters: EnterpriseLicenseSummaryRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LicenseSummary>> {
const requestOptions = await this.enterpriseLicenseSummaryRetrieveRequestOpts(requestParameters);
async enterpriseLicenseSummaryRetrieveRaw(
requestParameters: EnterpriseLicenseSummaryRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<LicenseSummary>> {
const requestOptions =
await this.enterpriseLicenseSummaryRetrieveRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => LicenseSummaryFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
LicenseSummaryFromJSON(jsonValue),
);
}
/**
* Get the total license status
*/
async enterpriseLicenseSummaryRetrieve(requestParameters: EnterpriseLicenseSummaryRetrieveRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LicenseSummary> {
const response = await this.enterpriseLicenseSummaryRetrieveRaw(requestParameters, initOverrides);
async enterpriseLicenseSummaryRetrieve(
requestParameters: EnterpriseLicenseSummaryRetrieveRequest = {},
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<LicenseSummary> {
const response = await this.enterpriseLicenseSummaryRetrieveRaw(
requestParameters,
initOverrides,
);
return await response.value();
}
/**
* Creates request options for enterpriseLicenseUpdate without sending the request
*/
async enterpriseLicenseUpdateRequestOpts(requestParameters: EnterpriseLicenseUpdateRequest): Promise<runtime.RequestOpts> {
if (requestParameters['licenseUuid'] == null) {
async enterpriseLicenseUpdateRequestOpts(
requestParameters: EnterpriseLicenseUpdateRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["licenseUuid"] == null) {
throw new runtime.RequiredError(
'licenseUuid',
'Required parameter "licenseUuid" was null or undefined when calling enterpriseLicenseUpdate().'
"licenseUuid",
'Required parameter "licenseUuid" was null or undefined when calling enterpriseLicenseUpdate().',
);
}
if (requestParameters['licenseRequest'] == null) {
if (requestParameters["licenseRequest"] == null) {
throw new runtime.RequiredError(
'licenseRequest',
'Required parameter "licenseRequest" was null or undefined when calling enterpriseLicenseUpdate().'
"licenseRequest",
'Required parameter "licenseRequest" was null or undefined when calling enterpriseLicenseUpdate().',
);
}
@@ -534,7 +599,7 @@ export class EnterpriseApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
headerParameters['Content-Type'] = 'application/json';
headerParameters["Content-Type"] = "application/json";
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
@@ -546,21 +611,27 @@ export class EnterpriseApi extends runtime.BaseAPI {
}
let urlPath = `/enterprise/license/{license_uuid}/`;
urlPath = urlPath.replace(`{${"license_uuid"}}`, encodeURIComponent(String(requestParameters['licenseUuid'])));
urlPath = urlPath.replace(
`{${"license_uuid"}}`,
encodeURIComponent(String(requestParameters["licenseUuid"])),
);
return {
path: urlPath,
method: 'PUT',
method: "PUT",
headers: headerParameters,
query: queryParameters,
body: LicenseRequestToJSON(requestParameters['licenseRequest']),
body: LicenseRequestToJSON(requestParameters["licenseRequest"]),
};
}
/**
* License Viewset
*/
async enterpriseLicenseUpdateRaw(requestParameters: EnterpriseLicenseUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<License>> {
async enterpriseLicenseUpdateRaw(
requestParameters: EnterpriseLicenseUpdateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<License>> {
const requestOptions = await this.enterpriseLicenseUpdateRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -570,7 +641,10 @@ export class EnterpriseApi extends runtime.BaseAPI {
/**
* License Viewset
*/
async enterpriseLicenseUpdate(requestParameters: EnterpriseLicenseUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<License> {
async enterpriseLicenseUpdate(
requestParameters: EnterpriseLicenseUpdateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<License> {
const response = await this.enterpriseLicenseUpdateRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -578,11 +652,13 @@ export class EnterpriseApi extends runtime.BaseAPI {
/**
* Creates request options for enterpriseLicenseUsedByList without sending the request
*/
async enterpriseLicenseUsedByListRequestOpts(requestParameters: EnterpriseLicenseUsedByListRequest): Promise<runtime.RequestOpts> {
if (requestParameters['licenseUuid'] == null) {
async enterpriseLicenseUsedByListRequestOpts(
requestParameters: EnterpriseLicenseUsedByListRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["licenseUuid"] == null) {
throw new runtime.RequiredError(
'licenseUuid',
'Required parameter "licenseUuid" was null or undefined when calling enterpriseLicenseUsedByList().'
"licenseUuid",
'Required parameter "licenseUuid" was null or undefined when calling enterpriseLicenseUsedByList().',
);
}
@@ -600,11 +676,14 @@ export class EnterpriseApi extends runtime.BaseAPI {
}
let urlPath = `/enterprise/license/{license_uuid}/used_by/`;
urlPath = urlPath.replace(`{${"license_uuid"}}`, encodeURIComponent(String(requestParameters['licenseUuid'])));
urlPath = urlPath.replace(
`{${"license_uuid"}}`,
encodeURIComponent(String(requestParameters["licenseUuid"])),
);
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -613,7 +692,10 @@ export class EnterpriseApi extends runtime.BaseAPI {
/**
* Get a list of all objects that use this object
*/
async enterpriseLicenseUsedByListRaw(requestParameters: EnterpriseLicenseUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>> {
async enterpriseLicenseUsedByListRaw(
requestParameters: EnterpriseLicenseUsedByListRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<Array<UsedBy>>> {
const requestOptions = await this.enterpriseLicenseUsedByListRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -623,9 +705,14 @@ export class EnterpriseApi extends runtime.BaseAPI {
/**
* Get a list of all objects that use this object
*/
async enterpriseLicenseUsedByList(requestParameters: EnterpriseLicenseUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UsedBy>> {
const response = await this.enterpriseLicenseUsedByListRaw(requestParameters, initOverrides);
async enterpriseLicenseUsedByList(
requestParameters: EnterpriseLicenseUsedByListRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<Array<UsedBy>> {
const response = await this.enterpriseLicenseUsedByListRaw(
requestParameters,
initOverrides,
);
return await response.value();
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -12,45 +12,29 @@
* Do not edit the class manually.
*/
import * as runtime from '../runtime';
import type {
GenericError,
LifecycleIteration,
LifecycleIterationRequest,
LifecycleRule,
LifecycleRuleRequest,
PaginatedLifecycleIterationList,
PaginatedLifecycleRuleList,
PatchedLifecycleRuleRequest,
Review,
ReviewRequest,
ValidationError,
} from '../models/index';
LifecycleIteration,
LifecycleIterationRequest,
LifecycleRule,
LifecycleRuleRequest,
PaginatedLifecycleIterationList,
PaginatedLifecycleRuleList,
PatchedLifecycleRuleRequest,
Review,
ReviewRequest,
} from "../models/index";
import {
GenericErrorFromJSON,
GenericErrorToJSON,
LifecycleIterationFromJSON,
LifecycleIterationToJSON,
LifecycleIterationRequestFromJSON,
LifecycleIterationRequestToJSON,
LifecycleRuleFromJSON,
LifecycleRuleToJSON,
LifecycleRuleRequestFromJSON,
LifecycleRuleRequestToJSON,
PaginatedLifecycleIterationListFromJSON,
PaginatedLifecycleIterationListToJSON,
PaginatedLifecycleRuleListFromJSON,
PaginatedLifecycleRuleListToJSON,
PatchedLifecycleRuleRequestFromJSON,
PatchedLifecycleRuleRequestToJSON,
ReviewFromJSON,
ReviewToJSON,
ReviewRequestFromJSON,
ReviewRequestToJSON,
ValidationErrorFromJSON,
ValidationErrorToJSON,
} from '../models/index';
} from "../models/index";
import * as runtime from "../runtime";
export interface LifecycleIterationsCreateRequest {
lifecycleIterationRequest: LifecycleIterationRequest;
@@ -104,18 +88,19 @@ export interface LifecycleRulesUpdateRequest {
}
/**
*
*
*/
export class LifecycleApi extends runtime.BaseAPI {
/**
* Creates request options for lifecycleIterationsCreate without sending the request
*/
async lifecycleIterationsCreateRequestOpts(requestParameters: LifecycleIterationsCreateRequest): Promise<runtime.RequestOpts> {
if (requestParameters['lifecycleIterationRequest'] == null) {
async lifecycleIterationsCreateRequestOpts(
requestParameters: LifecycleIterationsCreateRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["lifecycleIterationRequest"] == null) {
throw new runtime.RequiredError(
'lifecycleIterationRequest',
'Required parameter "lifecycleIterationRequest" was null or undefined when calling lifecycleIterationsCreate().'
"lifecycleIterationRequest",
'Required parameter "lifecycleIterationRequest" was null or undefined when calling lifecycleIterationsCreate().',
);
}
@@ -123,7 +108,7 @@ export class LifecycleApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
headerParameters['Content-Type'] = 'application/json';
headerParameters["Content-Type"] = "application/json";
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
@@ -138,27 +123,35 @@ export class LifecycleApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'POST',
method: "POST",
headers: headerParameters,
query: queryParameters,
body: LifecycleIterationRequestToJSON(requestParameters['lifecycleIterationRequest']),
body: LifecycleIterationRequestToJSON(requestParameters["lifecycleIterationRequest"]),
};
}
/**
* Mixin to validate that a valid enterprise license exists before allowing to save the object
*/
async lifecycleIterationsCreateRaw(requestParameters: LifecycleIterationsCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LifecycleIteration>> {
async lifecycleIterationsCreateRaw(
requestParameters: LifecycleIterationsCreateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<LifecycleIteration>> {
const requestOptions = await this.lifecycleIterationsCreateRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => LifecycleIterationFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
LifecycleIterationFromJSON(jsonValue),
);
}
/**
* Mixin to validate that a valid enterprise license exists before allowing to save the object
*/
async lifecycleIterationsCreate(requestParameters: LifecycleIterationsCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LifecycleIteration> {
async lifecycleIterationsCreate(
requestParameters: LifecycleIterationsCreateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<LifecycleIteration> {
const response = await this.lifecycleIterationsCreateRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -166,18 +159,20 @@ export class LifecycleApi extends runtime.BaseAPI {
/**
* Creates request options for lifecycleIterationsLatestRetrieve without sending the request
*/
async lifecycleIterationsLatestRetrieveRequestOpts(requestParameters: LifecycleIterationsLatestRetrieveRequest): Promise<runtime.RequestOpts> {
if (requestParameters['contentType'] == null) {
async lifecycleIterationsLatestRetrieveRequestOpts(
requestParameters: LifecycleIterationsLatestRetrieveRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["contentType"] == null) {
throw new runtime.RequiredError(
'contentType',
'Required parameter "contentType" was null or undefined when calling lifecycleIterationsLatestRetrieve().'
"contentType",
'Required parameter "contentType" was null or undefined when calling lifecycleIterationsLatestRetrieve().',
);
}
if (requestParameters['objectId'] == null) {
if (requestParameters["objectId"] == null) {
throw new runtime.RequiredError(
'objectId',
'Required parameter "objectId" was null or undefined when calling lifecycleIterationsLatestRetrieve().'
"objectId",
'Required parameter "objectId" was null or undefined when calling lifecycleIterationsLatestRetrieve().',
);
}
@@ -195,12 +190,18 @@ export class LifecycleApi extends runtime.BaseAPI {
}
let urlPath = `/lifecycle/iterations/latest/{content_type}/{object_id}/`;
urlPath = urlPath.replace(`{${"content_type"}}`, encodeURIComponent(String(requestParameters['contentType'])));
urlPath = urlPath.replace(`{${"object_id"}}`, encodeURIComponent(String(requestParameters['objectId'])));
urlPath = urlPath.replace(
`{${"content_type"}}`,
encodeURIComponent(String(requestParameters["contentType"])),
);
urlPath = urlPath.replace(
`{${"object_id"}}`,
encodeURIComponent(String(requestParameters["objectId"])),
);
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -209,45 +210,59 @@ export class LifecycleApi extends runtime.BaseAPI {
/**
* Mixin to validate that a valid enterprise license exists before allowing to save the object
*/
async lifecycleIterationsLatestRetrieveRaw(requestParameters: LifecycleIterationsLatestRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LifecycleIteration>> {
const requestOptions = await this.lifecycleIterationsLatestRetrieveRequestOpts(requestParameters);
async lifecycleIterationsLatestRetrieveRaw(
requestParameters: LifecycleIterationsLatestRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<LifecycleIteration>> {
const requestOptions =
await this.lifecycleIterationsLatestRetrieveRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => LifecycleIterationFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
LifecycleIterationFromJSON(jsonValue),
);
}
/**
* Mixin to validate that a valid enterprise license exists before allowing to save the object
*/
async lifecycleIterationsLatestRetrieve(requestParameters: LifecycleIterationsLatestRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LifecycleIteration> {
const response = await this.lifecycleIterationsLatestRetrieveRaw(requestParameters, initOverrides);
async lifecycleIterationsLatestRetrieve(
requestParameters: LifecycleIterationsLatestRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<LifecycleIteration> {
const response = await this.lifecycleIterationsLatestRetrieveRaw(
requestParameters,
initOverrides,
);
return await response.value();
}
/**
* Creates request options for lifecycleIterationsListOpen without sending the request
*/
async lifecycleIterationsListOpenRequestOpts(requestParameters: LifecycleIterationsListOpenRequest): Promise<runtime.RequestOpts> {
async lifecycleIterationsListOpenRequestOpts(
requestParameters: LifecycleIterationsListOpenRequest,
): Promise<runtime.RequestOpts> {
const queryParameters: any = {};
if (requestParameters['ordering'] != null) {
queryParameters['ordering'] = requestParameters['ordering'];
if (requestParameters["ordering"] != null) {
queryParameters["ordering"] = requestParameters["ordering"];
}
if (requestParameters['page'] != null) {
queryParameters['page'] = requestParameters['page'];
if (requestParameters["page"] != null) {
queryParameters["page"] = requestParameters["page"];
}
if (requestParameters['pageSize'] != null) {
queryParameters['page_size'] = requestParameters['pageSize'];
if (requestParameters["pageSize"] != null) {
queryParameters["page_size"] = requestParameters["pageSize"];
}
if (requestParameters['search'] != null) {
queryParameters['search'] = requestParameters['search'];
if (requestParameters["search"] != null) {
queryParameters["search"] = requestParameters["search"];
}
if (requestParameters['userIsReviewer'] != null) {
queryParameters['user_is_reviewer'] = requestParameters['userIsReviewer'];
if (requestParameters["userIsReviewer"] != null) {
queryParameters["user_is_reviewer"] = requestParameters["userIsReviewer"];
}
const headerParameters: runtime.HTTPHeaders = {};
@@ -265,7 +280,7 @@ export class LifecycleApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -274,29 +289,42 @@ export class LifecycleApi extends runtime.BaseAPI {
/**
* Mixin to validate that a valid enterprise license exists before allowing to save the object
*/
async lifecycleIterationsListOpenRaw(requestParameters: LifecycleIterationsListOpenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedLifecycleIterationList>> {
async lifecycleIterationsListOpenRaw(
requestParameters: LifecycleIterationsListOpenRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<PaginatedLifecycleIterationList>> {
const requestOptions = await this.lifecycleIterationsListOpenRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedLifecycleIterationListFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
PaginatedLifecycleIterationListFromJSON(jsonValue),
);
}
/**
* Mixin to validate that a valid enterprise license exists before allowing to save the object
*/
async lifecycleIterationsListOpen(requestParameters: LifecycleIterationsListOpenRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedLifecycleIterationList> {
const response = await this.lifecycleIterationsListOpenRaw(requestParameters, initOverrides);
async lifecycleIterationsListOpen(
requestParameters: LifecycleIterationsListOpenRequest = {},
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<PaginatedLifecycleIterationList> {
const response = await this.lifecycleIterationsListOpenRaw(
requestParameters,
initOverrides,
);
return await response.value();
}
/**
* Creates request options for lifecycleReviewsCreate without sending the request
*/
async lifecycleReviewsCreateRequestOpts(requestParameters: LifecycleReviewsCreateRequest): Promise<runtime.RequestOpts> {
if (requestParameters['reviewRequest'] == null) {
async lifecycleReviewsCreateRequestOpts(
requestParameters: LifecycleReviewsCreateRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["reviewRequest"] == null) {
throw new runtime.RequiredError(
'reviewRequest',
'Required parameter "reviewRequest" was null or undefined when calling lifecycleReviewsCreate().'
"reviewRequest",
'Required parameter "reviewRequest" was null or undefined when calling lifecycleReviewsCreate().',
);
}
@@ -304,7 +332,7 @@ export class LifecycleApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
headerParameters['Content-Type'] = 'application/json';
headerParameters["Content-Type"] = "application/json";
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
@@ -319,17 +347,20 @@ export class LifecycleApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'POST',
method: "POST",
headers: headerParameters,
query: queryParameters,
body: ReviewRequestToJSON(requestParameters['reviewRequest']),
body: ReviewRequestToJSON(requestParameters["reviewRequest"]),
};
}
/**
* Mixin to validate that a valid enterprise license exists before allowing to save the object
*/
async lifecycleReviewsCreateRaw(requestParameters: LifecycleReviewsCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Review>> {
async lifecycleReviewsCreateRaw(
requestParameters: LifecycleReviewsCreateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<Review>> {
const requestOptions = await this.lifecycleReviewsCreateRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -339,7 +370,10 @@ export class LifecycleApi extends runtime.BaseAPI {
/**
* Mixin to validate that a valid enterprise license exists before allowing to save the object
*/
async lifecycleReviewsCreate(requestParameters: LifecycleReviewsCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Review> {
async lifecycleReviewsCreate(
requestParameters: LifecycleReviewsCreateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<Review> {
const response = await this.lifecycleReviewsCreateRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -347,11 +381,13 @@ export class LifecycleApi extends runtime.BaseAPI {
/**
* Creates request options for lifecycleRulesCreate without sending the request
*/
async lifecycleRulesCreateRequestOpts(requestParameters: LifecycleRulesCreateRequest): Promise<runtime.RequestOpts> {
if (requestParameters['lifecycleRuleRequest'] == null) {
async lifecycleRulesCreateRequestOpts(
requestParameters: LifecycleRulesCreateRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["lifecycleRuleRequest"] == null) {
throw new runtime.RequiredError(
'lifecycleRuleRequest',
'Required parameter "lifecycleRuleRequest" was null or undefined when calling lifecycleRulesCreate().'
"lifecycleRuleRequest",
'Required parameter "lifecycleRuleRequest" was null or undefined when calling lifecycleRulesCreate().',
);
}
@@ -359,7 +395,7 @@ export class LifecycleApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
headerParameters['Content-Type'] = 'application/json';
headerParameters["Content-Type"] = "application/json";
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
@@ -374,25 +410,33 @@ export class LifecycleApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'POST',
method: "POST",
headers: headerParameters,
query: queryParameters,
body: LifecycleRuleRequestToJSON(requestParameters['lifecycleRuleRequest']),
body: LifecycleRuleRequestToJSON(requestParameters["lifecycleRuleRequest"]),
};
}
/**
*/
async lifecycleRulesCreateRaw(requestParameters: LifecycleRulesCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LifecycleRule>> {
async lifecycleRulesCreateRaw(
requestParameters: LifecycleRulesCreateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<LifecycleRule>> {
const requestOptions = await this.lifecycleRulesCreateRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => LifecycleRuleFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
LifecycleRuleFromJSON(jsonValue),
);
}
/**
*/
async lifecycleRulesCreate(requestParameters: LifecycleRulesCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LifecycleRule> {
async lifecycleRulesCreate(
requestParameters: LifecycleRulesCreateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<LifecycleRule> {
const response = await this.lifecycleRulesCreateRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -400,11 +444,13 @@ export class LifecycleApi extends runtime.BaseAPI {
/**
* Creates request options for lifecycleRulesDestroy without sending the request
*/
async lifecycleRulesDestroyRequestOpts(requestParameters: LifecycleRulesDestroyRequest): Promise<runtime.RequestOpts> {
if (requestParameters['id'] == null) {
async lifecycleRulesDestroyRequestOpts(
requestParameters: LifecycleRulesDestroyRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["id"] == null) {
throw new runtime.RequiredError(
'id',
'Required parameter "id" was null or undefined when calling lifecycleRulesDestroy().'
"id",
'Required parameter "id" was null or undefined when calling lifecycleRulesDestroy().',
);
}
@@ -422,11 +468,11 @@ export class LifecycleApi extends runtime.BaseAPI {
}
let urlPath = `/lifecycle/rules/{id}/`;
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"])));
return {
path: urlPath,
method: 'DELETE',
method: "DELETE",
headers: headerParameters,
query: queryParameters,
};
@@ -434,7 +480,10 @@ export class LifecycleApi extends runtime.BaseAPI {
/**
*/
async lifecycleRulesDestroyRaw(requestParameters: LifecycleRulesDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
async lifecycleRulesDestroyRaw(
requestParameters: LifecycleRulesDestroyRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<void>> {
const requestOptions = await this.lifecycleRulesDestroyRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -443,34 +492,39 @@ export class LifecycleApi extends runtime.BaseAPI {
/**
*/
async lifecycleRulesDestroy(requestParameters: LifecycleRulesDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
async lifecycleRulesDestroy(
requestParameters: LifecycleRulesDestroyRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<void> {
await this.lifecycleRulesDestroyRaw(requestParameters, initOverrides);
}
/**
* Creates request options for lifecycleRulesList without sending the request
*/
async lifecycleRulesListRequestOpts(requestParameters: LifecycleRulesListRequest): Promise<runtime.RequestOpts> {
async lifecycleRulesListRequestOpts(
requestParameters: LifecycleRulesListRequest,
): Promise<runtime.RequestOpts> {
const queryParameters: any = {};
if (requestParameters['contentTypeModel'] != null) {
queryParameters['content_type__model'] = requestParameters['contentTypeModel'];
if (requestParameters["contentTypeModel"] != null) {
queryParameters["content_type__model"] = requestParameters["contentTypeModel"];
}
if (requestParameters['ordering'] != null) {
queryParameters['ordering'] = requestParameters['ordering'];
if (requestParameters["ordering"] != null) {
queryParameters["ordering"] = requestParameters["ordering"];
}
if (requestParameters['page'] != null) {
queryParameters['page'] = requestParameters['page'];
if (requestParameters["page"] != null) {
queryParameters["page"] = requestParameters["page"];
}
if (requestParameters['pageSize'] != null) {
queryParameters['page_size'] = requestParameters['pageSize'];
if (requestParameters["pageSize"] != null) {
queryParameters["page_size"] = requestParameters["pageSize"];
}
if (requestParameters['search'] != null) {
queryParameters['search'] = requestParameters['search'];
if (requestParameters["search"] != null) {
queryParameters["search"] = requestParameters["search"];
}
const headerParameters: runtime.HTTPHeaders = {};
@@ -488,7 +542,7 @@ export class LifecycleApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -496,16 +550,24 @@ export class LifecycleApi extends runtime.BaseAPI {
/**
*/
async lifecycleRulesListRaw(requestParameters: LifecycleRulesListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedLifecycleRuleList>> {
async lifecycleRulesListRaw(
requestParameters: LifecycleRulesListRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<PaginatedLifecycleRuleList>> {
const requestOptions = await this.lifecycleRulesListRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedLifecycleRuleListFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
PaginatedLifecycleRuleListFromJSON(jsonValue),
);
}
/**
*/
async lifecycleRulesList(requestParameters: LifecycleRulesListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedLifecycleRuleList> {
async lifecycleRulesList(
requestParameters: LifecycleRulesListRequest = {},
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<PaginatedLifecycleRuleList> {
const response = await this.lifecycleRulesListRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -513,11 +575,13 @@ export class LifecycleApi extends runtime.BaseAPI {
/**
* Creates request options for lifecycleRulesPartialUpdate without sending the request
*/
async lifecycleRulesPartialUpdateRequestOpts(requestParameters: LifecycleRulesPartialUpdateRequest): Promise<runtime.RequestOpts> {
if (requestParameters['id'] == null) {
async lifecycleRulesPartialUpdateRequestOpts(
requestParameters: LifecycleRulesPartialUpdateRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["id"] == null) {
throw new runtime.RequiredError(
'id',
'Required parameter "id" was null or undefined when calling lifecycleRulesPartialUpdate().'
"id",
'Required parameter "id" was null or undefined when calling lifecycleRulesPartialUpdate().',
);
}
@@ -525,7 +589,7 @@ export class LifecycleApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
headerParameters['Content-Type'] = 'application/json';
headerParameters["Content-Type"] = "application/json";
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
@@ -537,41 +601,56 @@ export class LifecycleApi extends runtime.BaseAPI {
}
let urlPath = `/lifecycle/rules/{id}/`;
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"])));
return {
path: urlPath,
method: 'PATCH',
method: "PATCH",
headers: headerParameters,
query: queryParameters,
body: PatchedLifecycleRuleRequestToJSON(requestParameters['patchedLifecycleRuleRequest']),
body: PatchedLifecycleRuleRequestToJSON(
requestParameters["patchedLifecycleRuleRequest"],
),
};
}
/**
*/
async lifecycleRulesPartialUpdateRaw(requestParameters: LifecycleRulesPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LifecycleRule>> {
async lifecycleRulesPartialUpdateRaw(
requestParameters: LifecycleRulesPartialUpdateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<LifecycleRule>> {
const requestOptions = await this.lifecycleRulesPartialUpdateRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => LifecycleRuleFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
LifecycleRuleFromJSON(jsonValue),
);
}
/**
*/
async lifecycleRulesPartialUpdate(requestParameters: LifecycleRulesPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LifecycleRule> {
const response = await this.lifecycleRulesPartialUpdateRaw(requestParameters, initOverrides);
async lifecycleRulesPartialUpdate(
requestParameters: LifecycleRulesPartialUpdateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<LifecycleRule> {
const response = await this.lifecycleRulesPartialUpdateRaw(
requestParameters,
initOverrides,
);
return await response.value();
}
/**
* Creates request options for lifecycleRulesRetrieve without sending the request
*/
async lifecycleRulesRetrieveRequestOpts(requestParameters: LifecycleRulesRetrieveRequest): Promise<runtime.RequestOpts> {
if (requestParameters['id'] == null) {
async lifecycleRulesRetrieveRequestOpts(
requestParameters: LifecycleRulesRetrieveRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["id"] == null) {
throw new runtime.RequiredError(
'id',
'Required parameter "id" was null or undefined when calling lifecycleRulesRetrieve().'
"id",
'Required parameter "id" was null or undefined when calling lifecycleRulesRetrieve().',
);
}
@@ -589,11 +668,11 @@ export class LifecycleApi extends runtime.BaseAPI {
}
let urlPath = `/lifecycle/rules/{id}/`;
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"])));
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -601,16 +680,24 @@ export class LifecycleApi extends runtime.BaseAPI {
/**
*/
async lifecycleRulesRetrieveRaw(requestParameters: LifecycleRulesRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LifecycleRule>> {
async lifecycleRulesRetrieveRaw(
requestParameters: LifecycleRulesRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<LifecycleRule>> {
const requestOptions = await this.lifecycleRulesRetrieveRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => LifecycleRuleFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
LifecycleRuleFromJSON(jsonValue),
);
}
/**
*/
async lifecycleRulesRetrieve(requestParameters: LifecycleRulesRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LifecycleRule> {
async lifecycleRulesRetrieve(
requestParameters: LifecycleRulesRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<LifecycleRule> {
const response = await this.lifecycleRulesRetrieveRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -618,18 +705,20 @@ export class LifecycleApi extends runtime.BaseAPI {
/**
* Creates request options for lifecycleRulesUpdate without sending the request
*/
async lifecycleRulesUpdateRequestOpts(requestParameters: LifecycleRulesUpdateRequest): Promise<runtime.RequestOpts> {
if (requestParameters['id'] == null) {
async lifecycleRulesUpdateRequestOpts(
requestParameters: LifecycleRulesUpdateRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["id"] == null) {
throw new runtime.RequiredError(
'id',
'Required parameter "id" was null or undefined when calling lifecycleRulesUpdate().'
"id",
'Required parameter "id" was null or undefined when calling lifecycleRulesUpdate().',
);
}
if (requestParameters['lifecycleRuleRequest'] == null) {
if (requestParameters["lifecycleRuleRequest"] == null) {
throw new runtime.RequiredError(
'lifecycleRuleRequest',
'Required parameter "lifecycleRuleRequest" was null or undefined when calling lifecycleRulesUpdate().'
"lifecycleRuleRequest",
'Required parameter "lifecycleRuleRequest" was null or undefined when calling lifecycleRulesUpdate().',
);
}
@@ -637,7 +726,7 @@ export class LifecycleApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
headerParameters['Content-Type'] = 'application/json';
headerParameters["Content-Type"] = "application/json";
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
@@ -649,31 +738,38 @@ export class LifecycleApi extends runtime.BaseAPI {
}
let urlPath = `/lifecycle/rules/{id}/`;
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"])));
return {
path: urlPath,
method: 'PUT',
method: "PUT",
headers: headerParameters,
query: queryParameters,
body: LifecycleRuleRequestToJSON(requestParameters['lifecycleRuleRequest']),
body: LifecycleRuleRequestToJSON(requestParameters["lifecycleRuleRequest"]),
};
}
/**
*/
async lifecycleRulesUpdateRaw(requestParameters: LifecycleRulesUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LifecycleRule>> {
async lifecycleRulesUpdateRaw(
requestParameters: LifecycleRulesUpdateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<LifecycleRule>> {
const requestOptions = await this.lifecycleRulesUpdateRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => LifecycleRuleFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
LifecycleRuleFromJSON(jsonValue),
);
}
/**
*/
async lifecycleRulesUpdate(requestParameters: LifecycleRulesUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LifecycleRule> {
async lifecycleRulesUpdate(
requestParameters: LifecycleRulesUpdateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<LifecycleRule> {
const response = await this.lifecycleRulesUpdateRaw(requestParameters, initOverrides);
return await response.value();
}
}

View File

@@ -12,39 +12,25 @@
* Do not edit the class manually.
*/
import * as runtime from '../runtime';
import type {
BlueprintFile,
BlueprintImportResult,
BlueprintInstance,
BlueprintInstanceRequest,
GenericError,
PaginatedBlueprintInstanceList,
PatchedBlueprintInstanceRequest,
UsedBy,
ValidationError,
} from '../models/index';
BlueprintFile,
BlueprintImportResult,
BlueprintInstance,
BlueprintInstanceRequest,
PaginatedBlueprintInstanceList,
PatchedBlueprintInstanceRequest,
UsedBy,
} from "../models/index";
import {
BlueprintFileFromJSON,
BlueprintFileToJSON,
BlueprintImportResultFromJSON,
BlueprintImportResultToJSON,
BlueprintInstanceFromJSON,
BlueprintInstanceToJSON,
BlueprintInstanceRequestFromJSON,
BlueprintInstanceRequestToJSON,
GenericErrorFromJSON,
GenericErrorToJSON,
PaginatedBlueprintInstanceListFromJSON,
PaginatedBlueprintInstanceListToJSON,
PatchedBlueprintInstanceRequestFromJSON,
PatchedBlueprintInstanceRequestToJSON,
UsedByFromJSON,
UsedByToJSON,
ValidationErrorFromJSON,
ValidationErrorToJSON,
} from '../models/index';
} from "../models/index";
import * as runtime from "../runtime";
export interface ManagedBlueprintsApplyCreateRequest {
instanceUuid: string;
@@ -91,18 +77,19 @@ export interface ManagedBlueprintsUsedByListRequest {
}
/**
*
*
*/
export class ManagedApi extends runtime.BaseAPI {
/**
* Creates request options for managedBlueprintsApplyCreate without sending the request
*/
async managedBlueprintsApplyCreateRequestOpts(requestParameters: ManagedBlueprintsApplyCreateRequest): Promise<runtime.RequestOpts> {
if (requestParameters['instanceUuid'] == null) {
async managedBlueprintsApplyCreateRequestOpts(
requestParameters: ManagedBlueprintsApplyCreateRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["instanceUuid"] == null) {
throw new runtime.RequiredError(
'instanceUuid',
'Required parameter "instanceUuid" was null or undefined when calling managedBlueprintsApplyCreate().'
"instanceUuid",
'Required parameter "instanceUuid" was null or undefined when calling managedBlueprintsApplyCreate().',
);
}
@@ -120,11 +107,14 @@ export class ManagedApi extends runtime.BaseAPI {
}
let urlPath = `/managed/blueprints/{instance_uuid}/apply/`;
urlPath = urlPath.replace(`{${"instance_uuid"}}`, encodeURIComponent(String(requestParameters['instanceUuid'])));
urlPath = urlPath.replace(
`{${"instance_uuid"}}`,
encodeURIComponent(String(requestParameters["instanceUuid"])),
);
return {
path: urlPath,
method: 'POST',
method: "POST",
headers: headerParameters,
query: queryParameters,
};
@@ -133,18 +123,30 @@ export class ManagedApi extends runtime.BaseAPI {
/**
* Apply a blueprint
*/
async managedBlueprintsApplyCreateRaw(requestParameters: ManagedBlueprintsApplyCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BlueprintInstance>> {
const requestOptions = await this.managedBlueprintsApplyCreateRequestOpts(requestParameters);
async managedBlueprintsApplyCreateRaw(
requestParameters: ManagedBlueprintsApplyCreateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<BlueprintInstance>> {
const requestOptions =
await this.managedBlueprintsApplyCreateRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => BlueprintInstanceFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
BlueprintInstanceFromJSON(jsonValue),
);
}
/**
* Apply a blueprint
*/
async managedBlueprintsApplyCreate(requestParameters: ManagedBlueprintsApplyCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BlueprintInstance> {
const response = await this.managedBlueprintsApplyCreateRaw(requestParameters, initOverrides);
async managedBlueprintsApplyCreate(
requestParameters: ManagedBlueprintsApplyCreateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<BlueprintInstance> {
const response = await this.managedBlueprintsApplyCreateRaw(
requestParameters,
initOverrides,
);
return await response.value();
}
@@ -169,7 +171,7 @@ export class ManagedApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -178,17 +180,23 @@ export class ManagedApi extends runtime.BaseAPI {
/**
* Get blueprints
*/
async managedBlueprintsAvailableListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<BlueprintFile>>> {
async managedBlueprintsAvailableListRaw(
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<Array<BlueprintFile>>> {
const requestOptions = await this.managedBlueprintsAvailableListRequestOpts();
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(BlueprintFileFromJSON));
return new runtime.JSONApiResponse(response, (jsonValue) =>
jsonValue.map(BlueprintFileFromJSON),
);
}
/**
* Get blueprints
*/
async managedBlueprintsAvailableList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<BlueprintFile>> {
async managedBlueprintsAvailableList(
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<Array<BlueprintFile>> {
const response = await this.managedBlueprintsAvailableListRaw(initOverrides);
return await response.value();
}
@@ -196,11 +204,13 @@ export class ManagedApi extends runtime.BaseAPI {
/**
* Creates request options for managedBlueprintsCreate without sending the request
*/
async managedBlueprintsCreateRequestOpts(requestParameters: ManagedBlueprintsCreateRequest): Promise<runtime.RequestOpts> {
if (requestParameters['blueprintInstanceRequest'] == null) {
async managedBlueprintsCreateRequestOpts(
requestParameters: ManagedBlueprintsCreateRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["blueprintInstanceRequest"] == null) {
throw new runtime.RequiredError(
'blueprintInstanceRequest',
'Required parameter "blueprintInstanceRequest" was null or undefined when calling managedBlueprintsCreate().'
"blueprintInstanceRequest",
'Required parameter "blueprintInstanceRequest" was null or undefined when calling managedBlueprintsCreate().',
);
}
@@ -208,7 +218,7 @@ export class ManagedApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
headerParameters['Content-Type'] = 'application/json';
headerParameters["Content-Type"] = "application/json";
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
@@ -223,27 +233,35 @@ export class ManagedApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'POST',
method: "POST",
headers: headerParameters,
query: queryParameters,
body: BlueprintInstanceRequestToJSON(requestParameters['blueprintInstanceRequest']),
body: BlueprintInstanceRequestToJSON(requestParameters["blueprintInstanceRequest"]),
};
}
/**
* Blueprint instances
*/
async managedBlueprintsCreateRaw(requestParameters: ManagedBlueprintsCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BlueprintInstance>> {
async managedBlueprintsCreateRaw(
requestParameters: ManagedBlueprintsCreateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<BlueprintInstance>> {
const requestOptions = await this.managedBlueprintsCreateRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => BlueprintInstanceFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
BlueprintInstanceFromJSON(jsonValue),
);
}
/**
* Blueprint instances
*/
async managedBlueprintsCreate(requestParameters: ManagedBlueprintsCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BlueprintInstance> {
async managedBlueprintsCreate(
requestParameters: ManagedBlueprintsCreateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<BlueprintInstance> {
const response = await this.managedBlueprintsCreateRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -251,11 +269,13 @@ export class ManagedApi extends runtime.BaseAPI {
/**
* Creates request options for managedBlueprintsDestroy without sending the request
*/
async managedBlueprintsDestroyRequestOpts(requestParameters: ManagedBlueprintsDestroyRequest): Promise<runtime.RequestOpts> {
if (requestParameters['instanceUuid'] == null) {
async managedBlueprintsDestroyRequestOpts(
requestParameters: ManagedBlueprintsDestroyRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["instanceUuid"] == null) {
throw new runtime.RequiredError(
'instanceUuid',
'Required parameter "instanceUuid" was null or undefined when calling managedBlueprintsDestroy().'
"instanceUuid",
'Required parameter "instanceUuid" was null or undefined when calling managedBlueprintsDestroy().',
);
}
@@ -273,11 +293,14 @@ export class ManagedApi extends runtime.BaseAPI {
}
let urlPath = `/managed/blueprints/{instance_uuid}/`;
urlPath = urlPath.replace(`{${"instance_uuid"}}`, encodeURIComponent(String(requestParameters['instanceUuid'])));
urlPath = urlPath.replace(
`{${"instance_uuid"}}`,
encodeURIComponent(String(requestParameters["instanceUuid"])),
);
return {
path: urlPath,
method: 'DELETE',
method: "DELETE",
headers: headerParameters,
query: queryParameters,
};
@@ -286,7 +309,10 @@ export class ManagedApi extends runtime.BaseAPI {
/**
* Blueprint instances
*/
async managedBlueprintsDestroyRaw(requestParameters: ManagedBlueprintsDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
async managedBlueprintsDestroyRaw(
requestParameters: ManagedBlueprintsDestroyRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<void>> {
const requestOptions = await this.managedBlueprintsDestroyRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -296,14 +322,19 @@ export class ManagedApi extends runtime.BaseAPI {
/**
* Blueprint instances
*/
async managedBlueprintsDestroy(requestParameters: ManagedBlueprintsDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
async managedBlueprintsDestroy(
requestParameters: ManagedBlueprintsDestroyRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<void> {
await this.managedBlueprintsDestroyRaw(requestParameters, initOverrides);
}
/**
* Creates request options for managedBlueprintsImportCreate without sending the request
*/
async managedBlueprintsImportCreateRequestOpts(requestParameters: ManagedBlueprintsImportCreateRequest): Promise<runtime.RequestOpts> {
async managedBlueprintsImportCreateRequestOpts(
requestParameters: ManagedBlueprintsImportCreateRequest,
): Promise<runtime.RequestOpts> {
const queryParameters: any = {};
const headerParameters: runtime.HTTPHeaders = {};
@@ -316,9 +347,7 @@ export class ManagedApi extends runtime.BaseAPI {
headerParameters["Authorization"] = `Bearer ${tokenString}`;
}
}
const consumes: runtime.Consume[] = [
{ contentType: 'multipart/form-data' },
];
const consumes: runtime.Consume[] = [{ contentType: "multipart/form-data" }];
// @ts-ignore: canConsumeForm may be unused
const canConsumeForm = runtime.canConsumeForm(consumes);
@@ -332,20 +361,19 @@ export class ManagedApi extends runtime.BaseAPI {
formParams = new URLSearchParams();
}
if (requestParameters['file'] != null) {
formParams.append('file', requestParameters['file'] as any);
if (requestParameters["file"] != null) {
formParams.append("file", requestParameters["file"] as any);
}
if (requestParameters['path'] != null) {
formParams.append('path', requestParameters['path'] as any);
if (requestParameters["path"] != null) {
formParams.append("path", requestParameters["path"] as any);
}
let urlPath = `/managed/blueprints/import/`;
return {
path: urlPath,
method: 'POST',
method: "POST",
headers: headerParameters,
query: queryParameters,
body: formParams,
@@ -355,49 +383,63 @@ export class ManagedApi extends runtime.BaseAPI {
/**
* Import blueprint from .yaml file and apply it once, without creating an instance
*/
async managedBlueprintsImportCreateRaw(requestParameters: ManagedBlueprintsImportCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BlueprintImportResult>> {
const requestOptions = await this.managedBlueprintsImportCreateRequestOpts(requestParameters);
async managedBlueprintsImportCreateRaw(
requestParameters: ManagedBlueprintsImportCreateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<BlueprintImportResult>> {
const requestOptions =
await this.managedBlueprintsImportCreateRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => BlueprintImportResultFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
BlueprintImportResultFromJSON(jsonValue),
);
}
/**
* Import blueprint from .yaml file and apply it once, without creating an instance
*/
async managedBlueprintsImportCreate(requestParameters: ManagedBlueprintsImportCreateRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BlueprintImportResult> {
const response = await this.managedBlueprintsImportCreateRaw(requestParameters, initOverrides);
async managedBlueprintsImportCreate(
requestParameters: ManagedBlueprintsImportCreateRequest = {},
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<BlueprintImportResult> {
const response = await this.managedBlueprintsImportCreateRaw(
requestParameters,
initOverrides,
);
return await response.value();
}
/**
* Creates request options for managedBlueprintsList without sending the request
*/
async managedBlueprintsListRequestOpts(requestParameters: ManagedBlueprintsListRequest): Promise<runtime.RequestOpts> {
async managedBlueprintsListRequestOpts(
requestParameters: ManagedBlueprintsListRequest,
): Promise<runtime.RequestOpts> {
const queryParameters: any = {};
if (requestParameters['name'] != null) {
queryParameters['name'] = requestParameters['name'];
if (requestParameters["name"] != null) {
queryParameters["name"] = requestParameters["name"];
}
if (requestParameters['ordering'] != null) {
queryParameters['ordering'] = requestParameters['ordering'];
if (requestParameters["ordering"] != null) {
queryParameters["ordering"] = requestParameters["ordering"];
}
if (requestParameters['page'] != null) {
queryParameters['page'] = requestParameters['page'];
if (requestParameters["page"] != null) {
queryParameters["page"] = requestParameters["page"];
}
if (requestParameters['pageSize'] != null) {
queryParameters['page_size'] = requestParameters['pageSize'];
if (requestParameters["pageSize"] != null) {
queryParameters["page_size"] = requestParameters["pageSize"];
}
if (requestParameters['path'] != null) {
queryParameters['path'] = requestParameters['path'];
if (requestParameters["path"] != null) {
queryParameters["path"] = requestParameters["path"];
}
if (requestParameters['search'] != null) {
queryParameters['search'] = requestParameters['search'];
if (requestParameters["search"] != null) {
queryParameters["search"] = requestParameters["search"];
}
const headerParameters: runtime.HTTPHeaders = {};
@@ -415,7 +457,7 @@ export class ManagedApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -424,17 +466,25 @@ export class ManagedApi extends runtime.BaseAPI {
/**
* Blueprint instances
*/
async managedBlueprintsListRaw(requestParameters: ManagedBlueprintsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedBlueprintInstanceList>> {
async managedBlueprintsListRaw(
requestParameters: ManagedBlueprintsListRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<PaginatedBlueprintInstanceList>> {
const requestOptions = await this.managedBlueprintsListRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedBlueprintInstanceListFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
PaginatedBlueprintInstanceListFromJSON(jsonValue),
);
}
/**
* Blueprint instances
*/
async managedBlueprintsList(requestParameters: ManagedBlueprintsListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedBlueprintInstanceList> {
async managedBlueprintsList(
requestParameters: ManagedBlueprintsListRequest = {},
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<PaginatedBlueprintInstanceList> {
const response = await this.managedBlueprintsListRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -442,11 +492,13 @@ export class ManagedApi extends runtime.BaseAPI {
/**
* Creates request options for managedBlueprintsPartialUpdate without sending the request
*/
async managedBlueprintsPartialUpdateRequestOpts(requestParameters: ManagedBlueprintsPartialUpdateRequest): Promise<runtime.RequestOpts> {
if (requestParameters['instanceUuid'] == null) {
async managedBlueprintsPartialUpdateRequestOpts(
requestParameters: ManagedBlueprintsPartialUpdateRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["instanceUuid"] == null) {
throw new runtime.RequiredError(
'instanceUuid',
'Required parameter "instanceUuid" was null or undefined when calling managedBlueprintsPartialUpdate().'
"instanceUuid",
'Required parameter "instanceUuid" was null or undefined when calling managedBlueprintsPartialUpdate().',
);
}
@@ -454,7 +506,7 @@ export class ManagedApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
headerParameters['Content-Type'] = 'application/json';
headerParameters["Content-Type"] = "application/json";
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
@@ -466,43 +518,62 @@ export class ManagedApi extends runtime.BaseAPI {
}
let urlPath = `/managed/blueprints/{instance_uuid}/`;
urlPath = urlPath.replace(`{${"instance_uuid"}}`, encodeURIComponent(String(requestParameters['instanceUuid'])));
urlPath = urlPath.replace(
`{${"instance_uuid"}}`,
encodeURIComponent(String(requestParameters["instanceUuid"])),
);
return {
path: urlPath,
method: 'PATCH',
method: "PATCH",
headers: headerParameters,
query: queryParameters,
body: PatchedBlueprintInstanceRequestToJSON(requestParameters['patchedBlueprintInstanceRequest']),
body: PatchedBlueprintInstanceRequestToJSON(
requestParameters["patchedBlueprintInstanceRequest"],
),
};
}
/**
* Blueprint instances
*/
async managedBlueprintsPartialUpdateRaw(requestParameters: ManagedBlueprintsPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BlueprintInstance>> {
const requestOptions = await this.managedBlueprintsPartialUpdateRequestOpts(requestParameters);
async managedBlueprintsPartialUpdateRaw(
requestParameters: ManagedBlueprintsPartialUpdateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<BlueprintInstance>> {
const requestOptions =
await this.managedBlueprintsPartialUpdateRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => BlueprintInstanceFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
BlueprintInstanceFromJSON(jsonValue),
);
}
/**
* Blueprint instances
*/
async managedBlueprintsPartialUpdate(requestParameters: ManagedBlueprintsPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BlueprintInstance> {
const response = await this.managedBlueprintsPartialUpdateRaw(requestParameters, initOverrides);
async managedBlueprintsPartialUpdate(
requestParameters: ManagedBlueprintsPartialUpdateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<BlueprintInstance> {
const response = await this.managedBlueprintsPartialUpdateRaw(
requestParameters,
initOverrides,
);
return await response.value();
}
/**
* Creates request options for managedBlueprintsRetrieve without sending the request
*/
async managedBlueprintsRetrieveRequestOpts(requestParameters: ManagedBlueprintsRetrieveRequest): Promise<runtime.RequestOpts> {
if (requestParameters['instanceUuid'] == null) {
async managedBlueprintsRetrieveRequestOpts(
requestParameters: ManagedBlueprintsRetrieveRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["instanceUuid"] == null) {
throw new runtime.RequiredError(
'instanceUuid',
'Required parameter "instanceUuid" was null or undefined when calling managedBlueprintsRetrieve().'
"instanceUuid",
'Required parameter "instanceUuid" was null or undefined when calling managedBlueprintsRetrieve().',
);
}
@@ -520,11 +591,14 @@ export class ManagedApi extends runtime.BaseAPI {
}
let urlPath = `/managed/blueprints/{instance_uuid}/`;
urlPath = urlPath.replace(`{${"instance_uuid"}}`, encodeURIComponent(String(requestParameters['instanceUuid'])));
urlPath = urlPath.replace(
`{${"instance_uuid"}}`,
encodeURIComponent(String(requestParameters["instanceUuid"])),
);
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -533,17 +607,25 @@ export class ManagedApi extends runtime.BaseAPI {
/**
* Blueprint instances
*/
async managedBlueprintsRetrieveRaw(requestParameters: ManagedBlueprintsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BlueprintInstance>> {
async managedBlueprintsRetrieveRaw(
requestParameters: ManagedBlueprintsRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<BlueprintInstance>> {
const requestOptions = await this.managedBlueprintsRetrieveRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => BlueprintInstanceFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
BlueprintInstanceFromJSON(jsonValue),
);
}
/**
* Blueprint instances
*/
async managedBlueprintsRetrieve(requestParameters: ManagedBlueprintsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BlueprintInstance> {
async managedBlueprintsRetrieve(
requestParameters: ManagedBlueprintsRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<BlueprintInstance> {
const response = await this.managedBlueprintsRetrieveRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -551,18 +633,20 @@ export class ManagedApi extends runtime.BaseAPI {
/**
* Creates request options for managedBlueprintsUpdate without sending the request
*/
async managedBlueprintsUpdateRequestOpts(requestParameters: ManagedBlueprintsUpdateRequest): Promise<runtime.RequestOpts> {
if (requestParameters['instanceUuid'] == null) {
async managedBlueprintsUpdateRequestOpts(
requestParameters: ManagedBlueprintsUpdateRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["instanceUuid"] == null) {
throw new runtime.RequiredError(
'instanceUuid',
'Required parameter "instanceUuid" was null or undefined when calling managedBlueprintsUpdate().'
"instanceUuid",
'Required parameter "instanceUuid" was null or undefined when calling managedBlueprintsUpdate().',
);
}
if (requestParameters['blueprintInstanceRequest'] == null) {
if (requestParameters["blueprintInstanceRequest"] == null) {
throw new runtime.RequiredError(
'blueprintInstanceRequest',
'Required parameter "blueprintInstanceRequest" was null or undefined when calling managedBlueprintsUpdate().'
"blueprintInstanceRequest",
'Required parameter "blueprintInstanceRequest" was null or undefined when calling managedBlueprintsUpdate().',
);
}
@@ -570,7 +654,7 @@ export class ManagedApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
headerParameters['Content-Type'] = 'application/json';
headerParameters["Content-Type"] = "application/json";
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
@@ -582,31 +666,42 @@ export class ManagedApi extends runtime.BaseAPI {
}
let urlPath = `/managed/blueprints/{instance_uuid}/`;
urlPath = urlPath.replace(`{${"instance_uuid"}}`, encodeURIComponent(String(requestParameters['instanceUuid'])));
urlPath = urlPath.replace(
`{${"instance_uuid"}}`,
encodeURIComponent(String(requestParameters["instanceUuid"])),
);
return {
path: urlPath,
method: 'PUT',
method: "PUT",
headers: headerParameters,
query: queryParameters,
body: BlueprintInstanceRequestToJSON(requestParameters['blueprintInstanceRequest']),
body: BlueprintInstanceRequestToJSON(requestParameters["blueprintInstanceRequest"]),
};
}
/**
* Blueprint instances
*/
async managedBlueprintsUpdateRaw(requestParameters: ManagedBlueprintsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BlueprintInstance>> {
async managedBlueprintsUpdateRaw(
requestParameters: ManagedBlueprintsUpdateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<BlueprintInstance>> {
const requestOptions = await this.managedBlueprintsUpdateRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => BlueprintInstanceFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
BlueprintInstanceFromJSON(jsonValue),
);
}
/**
* Blueprint instances
*/
async managedBlueprintsUpdate(requestParameters: ManagedBlueprintsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BlueprintInstance> {
async managedBlueprintsUpdate(
requestParameters: ManagedBlueprintsUpdateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<BlueprintInstance> {
const response = await this.managedBlueprintsUpdateRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -614,11 +709,13 @@ export class ManagedApi extends runtime.BaseAPI {
/**
* Creates request options for managedBlueprintsUsedByList without sending the request
*/
async managedBlueprintsUsedByListRequestOpts(requestParameters: ManagedBlueprintsUsedByListRequest): Promise<runtime.RequestOpts> {
if (requestParameters['instanceUuid'] == null) {
async managedBlueprintsUsedByListRequestOpts(
requestParameters: ManagedBlueprintsUsedByListRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["instanceUuid"] == null) {
throw new runtime.RequiredError(
'instanceUuid',
'Required parameter "instanceUuid" was null or undefined when calling managedBlueprintsUsedByList().'
"instanceUuid",
'Required parameter "instanceUuid" was null or undefined when calling managedBlueprintsUsedByList().',
);
}
@@ -636,11 +733,14 @@ export class ManagedApi extends runtime.BaseAPI {
}
let urlPath = `/managed/blueprints/{instance_uuid}/used_by/`;
urlPath = urlPath.replace(`{${"instance_uuid"}}`, encodeURIComponent(String(requestParameters['instanceUuid'])));
urlPath = urlPath.replace(
`{${"instance_uuid"}}`,
encodeURIComponent(String(requestParameters["instanceUuid"])),
);
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -649,7 +749,10 @@ export class ManagedApi extends runtime.BaseAPI {
/**
* Get a list of all objects that use this object
*/
async managedBlueprintsUsedByListRaw(requestParameters: ManagedBlueprintsUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>> {
async managedBlueprintsUsedByListRaw(
requestParameters: ManagedBlueprintsUsedByListRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<Array<UsedBy>>> {
const requestOptions = await this.managedBlueprintsUsedByListRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -659,9 +762,14 @@ export class ManagedApi extends runtime.BaseAPI {
/**
* Get a list of all objects that use this object
*/
async managedBlueprintsUsedByList(requestParameters: ManagedBlueprintsUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UsedBy>> {
const response = await this.managedBlueprintsUsedByListRaw(requestParameters, initOverrides);
async managedBlueprintsUsedByList(
requestParameters: ManagedBlueprintsUsedByListRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<Array<UsedBy>> {
const response = await this.managedBlueprintsUsedByListRaw(
requestParameters,
initOverrides,
);
return await response.value();
}
}

View File

@@ -12,33 +12,21 @@
* Do not edit the class manually.
*/
import * as runtime from '../runtime';
import type {
ExpiringBaseGrantModel,
GenericError,
PaginatedExpiringBaseGrantModelList,
PaginatedTokenModelList,
TokenModel,
UsedBy,
ValidationError,
} from '../models/index';
ExpiringBaseGrantModel,
PaginatedExpiringBaseGrantModelList,
PaginatedTokenModelList,
TokenModel,
UsedBy,
} from "../models/index";
import {
ExpiringBaseGrantModelFromJSON,
ExpiringBaseGrantModelToJSON,
GenericErrorFromJSON,
GenericErrorToJSON,
PaginatedExpiringBaseGrantModelListFromJSON,
PaginatedExpiringBaseGrantModelListToJSON,
PaginatedTokenModelListFromJSON,
PaginatedTokenModelListToJSON,
TokenModelFromJSON,
TokenModelToJSON,
UsedByFromJSON,
UsedByToJSON,
ValidationErrorFromJSON,
ValidationErrorToJSON,
} from '../models/index';
} from "../models/index";
import * as runtime from "../runtime";
export interface Oauth2AccessTokensDestroyRequest {
id: number;
@@ -104,18 +92,19 @@ export interface Oauth2RefreshTokensUsedByListRequest {
}
/**
*
*
*/
export class Oauth2Api extends runtime.BaseAPI {
/**
* Creates request options for oauth2AccessTokensDestroy without sending the request
*/
async oauth2AccessTokensDestroyRequestOpts(requestParameters: Oauth2AccessTokensDestroyRequest): Promise<runtime.RequestOpts> {
if (requestParameters['id'] == null) {
async oauth2AccessTokensDestroyRequestOpts(
requestParameters: Oauth2AccessTokensDestroyRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["id"] == null) {
throw new runtime.RequiredError(
'id',
'Required parameter "id" was null or undefined when calling oauth2AccessTokensDestroy().'
"id",
'Required parameter "id" was null or undefined when calling oauth2AccessTokensDestroy().',
);
}
@@ -133,11 +122,11 @@ export class Oauth2Api extends runtime.BaseAPI {
}
let urlPath = `/oauth2/access_tokens/{id}/`;
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"])));
return {
path: urlPath,
method: 'DELETE',
method: "DELETE",
headers: headerParameters,
query: queryParameters,
};
@@ -146,7 +135,10 @@ export class Oauth2Api extends runtime.BaseAPI {
/**
* AccessToken Viewset
*/
async oauth2AccessTokensDestroyRaw(requestParameters: Oauth2AccessTokensDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
async oauth2AccessTokensDestroyRaw(
requestParameters: Oauth2AccessTokensDestroyRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<void>> {
const requestOptions = await this.oauth2AccessTokensDestroyRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -156,38 +148,43 @@ export class Oauth2Api extends runtime.BaseAPI {
/**
* AccessToken Viewset
*/
async oauth2AccessTokensDestroy(requestParameters: Oauth2AccessTokensDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
async oauth2AccessTokensDestroy(
requestParameters: Oauth2AccessTokensDestroyRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<void> {
await this.oauth2AccessTokensDestroyRaw(requestParameters, initOverrides);
}
/**
* Creates request options for oauth2AccessTokensList without sending the request
*/
async oauth2AccessTokensListRequestOpts(requestParameters: Oauth2AccessTokensListRequest): Promise<runtime.RequestOpts> {
async oauth2AccessTokensListRequestOpts(
requestParameters: Oauth2AccessTokensListRequest,
): Promise<runtime.RequestOpts> {
const queryParameters: any = {};
if (requestParameters['ordering'] != null) {
queryParameters['ordering'] = requestParameters['ordering'];
if (requestParameters["ordering"] != null) {
queryParameters["ordering"] = requestParameters["ordering"];
}
if (requestParameters['page'] != null) {
queryParameters['page'] = requestParameters['page'];
if (requestParameters["page"] != null) {
queryParameters["page"] = requestParameters["page"];
}
if (requestParameters['pageSize'] != null) {
queryParameters['page_size'] = requestParameters['pageSize'];
if (requestParameters["pageSize"] != null) {
queryParameters["page_size"] = requestParameters["pageSize"];
}
if (requestParameters['provider'] != null) {
queryParameters['provider'] = requestParameters['provider'];
if (requestParameters["provider"] != null) {
queryParameters["provider"] = requestParameters["provider"];
}
if (requestParameters['search'] != null) {
queryParameters['search'] = requestParameters['search'];
if (requestParameters["search"] != null) {
queryParameters["search"] = requestParameters["search"];
}
if (requestParameters['user'] != null) {
queryParameters['user'] = requestParameters['user'];
if (requestParameters["user"] != null) {
queryParameters["user"] = requestParameters["user"];
}
const headerParameters: runtime.HTTPHeaders = {};
@@ -205,7 +202,7 @@ export class Oauth2Api extends runtime.BaseAPI {
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -214,17 +211,25 @@ export class Oauth2Api extends runtime.BaseAPI {
/**
* AccessToken Viewset
*/
async oauth2AccessTokensListRaw(requestParameters: Oauth2AccessTokensListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedTokenModelList>> {
async oauth2AccessTokensListRaw(
requestParameters: Oauth2AccessTokensListRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<PaginatedTokenModelList>> {
const requestOptions = await this.oauth2AccessTokensListRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedTokenModelListFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
PaginatedTokenModelListFromJSON(jsonValue),
);
}
/**
* AccessToken Viewset
*/
async oauth2AccessTokensList(requestParameters: Oauth2AccessTokensListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedTokenModelList> {
async oauth2AccessTokensList(
requestParameters: Oauth2AccessTokensListRequest = {},
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<PaginatedTokenModelList> {
const response = await this.oauth2AccessTokensListRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -232,11 +237,13 @@ export class Oauth2Api extends runtime.BaseAPI {
/**
* Creates request options for oauth2AccessTokensRetrieve without sending the request
*/
async oauth2AccessTokensRetrieveRequestOpts(requestParameters: Oauth2AccessTokensRetrieveRequest): Promise<runtime.RequestOpts> {
if (requestParameters['id'] == null) {
async oauth2AccessTokensRetrieveRequestOpts(
requestParameters: Oauth2AccessTokensRetrieveRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["id"] == null) {
throw new runtime.RequiredError(
'id',
'Required parameter "id" was null or undefined when calling oauth2AccessTokensRetrieve().'
"id",
'Required parameter "id" was null or undefined when calling oauth2AccessTokensRetrieve().',
);
}
@@ -254,11 +261,11 @@ export class Oauth2Api extends runtime.BaseAPI {
}
let urlPath = `/oauth2/access_tokens/{id}/`;
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"])));
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -267,7 +274,10 @@ export class Oauth2Api extends runtime.BaseAPI {
/**
* AccessToken Viewset
*/
async oauth2AccessTokensRetrieveRaw(requestParameters: Oauth2AccessTokensRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TokenModel>> {
async oauth2AccessTokensRetrieveRaw(
requestParameters: Oauth2AccessTokensRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<TokenModel>> {
const requestOptions = await this.oauth2AccessTokensRetrieveRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -277,7 +287,10 @@ export class Oauth2Api extends runtime.BaseAPI {
/**
* AccessToken Viewset
*/
async oauth2AccessTokensRetrieve(requestParameters: Oauth2AccessTokensRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TokenModel> {
async oauth2AccessTokensRetrieve(
requestParameters: Oauth2AccessTokensRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<TokenModel> {
const response = await this.oauth2AccessTokensRetrieveRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -285,11 +298,13 @@ export class Oauth2Api extends runtime.BaseAPI {
/**
* Creates request options for oauth2AccessTokensUsedByList without sending the request
*/
async oauth2AccessTokensUsedByListRequestOpts(requestParameters: Oauth2AccessTokensUsedByListRequest): Promise<runtime.RequestOpts> {
if (requestParameters['id'] == null) {
async oauth2AccessTokensUsedByListRequestOpts(
requestParameters: Oauth2AccessTokensUsedByListRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["id"] == null) {
throw new runtime.RequiredError(
'id',
'Required parameter "id" was null or undefined when calling oauth2AccessTokensUsedByList().'
"id",
'Required parameter "id" was null or undefined when calling oauth2AccessTokensUsedByList().',
);
}
@@ -307,11 +322,11 @@ export class Oauth2Api extends runtime.BaseAPI {
}
let urlPath = `/oauth2/access_tokens/{id}/used_by/`;
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"])));
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -320,8 +335,12 @@ export class Oauth2Api extends runtime.BaseAPI {
/**
* Get a list of all objects that use this object
*/
async oauth2AccessTokensUsedByListRaw(requestParameters: Oauth2AccessTokensUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>> {
const requestOptions = await this.oauth2AccessTokensUsedByListRequestOpts(requestParameters);
async oauth2AccessTokensUsedByListRaw(
requestParameters: Oauth2AccessTokensUsedByListRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<Array<UsedBy>>> {
const requestOptions =
await this.oauth2AccessTokensUsedByListRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
@@ -330,19 +349,27 @@ export class Oauth2Api extends runtime.BaseAPI {
/**
* Get a list of all objects that use this object
*/
async oauth2AccessTokensUsedByList(requestParameters: Oauth2AccessTokensUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UsedBy>> {
const response = await this.oauth2AccessTokensUsedByListRaw(requestParameters, initOverrides);
async oauth2AccessTokensUsedByList(
requestParameters: Oauth2AccessTokensUsedByListRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<Array<UsedBy>> {
const response = await this.oauth2AccessTokensUsedByListRaw(
requestParameters,
initOverrides,
);
return await response.value();
}
/**
* Creates request options for oauth2AuthorizationCodesDestroy without sending the request
*/
async oauth2AuthorizationCodesDestroyRequestOpts(requestParameters: Oauth2AuthorizationCodesDestroyRequest): Promise<runtime.RequestOpts> {
if (requestParameters['id'] == null) {
async oauth2AuthorizationCodesDestroyRequestOpts(
requestParameters: Oauth2AuthorizationCodesDestroyRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["id"] == null) {
throw new runtime.RequiredError(
'id',
'Required parameter "id" was null or undefined when calling oauth2AuthorizationCodesDestroy().'
"id",
'Required parameter "id" was null or undefined when calling oauth2AuthorizationCodesDestroy().',
);
}
@@ -360,11 +387,11 @@ export class Oauth2Api extends runtime.BaseAPI {
}
let urlPath = `/oauth2/authorization_codes/{id}/`;
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"])));
return {
path: urlPath,
method: 'DELETE',
method: "DELETE",
headers: headerParameters,
query: queryParameters,
};
@@ -373,8 +400,12 @@ export class Oauth2Api extends runtime.BaseAPI {
/**
* AuthorizationCode Viewset
*/
async oauth2AuthorizationCodesDestroyRaw(requestParameters: Oauth2AuthorizationCodesDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
const requestOptions = await this.oauth2AuthorizationCodesDestroyRequestOpts(requestParameters);
async oauth2AuthorizationCodesDestroyRaw(
requestParameters: Oauth2AuthorizationCodesDestroyRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<void>> {
const requestOptions =
await this.oauth2AuthorizationCodesDestroyRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.VoidApiResponse(response);
@@ -383,38 +414,43 @@ export class Oauth2Api extends runtime.BaseAPI {
/**
* AuthorizationCode Viewset
*/
async oauth2AuthorizationCodesDestroy(requestParameters: Oauth2AuthorizationCodesDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
async oauth2AuthorizationCodesDestroy(
requestParameters: Oauth2AuthorizationCodesDestroyRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<void> {
await this.oauth2AuthorizationCodesDestroyRaw(requestParameters, initOverrides);
}
/**
* Creates request options for oauth2AuthorizationCodesList without sending the request
*/
async oauth2AuthorizationCodesListRequestOpts(requestParameters: Oauth2AuthorizationCodesListRequest): Promise<runtime.RequestOpts> {
async oauth2AuthorizationCodesListRequestOpts(
requestParameters: Oauth2AuthorizationCodesListRequest,
): Promise<runtime.RequestOpts> {
const queryParameters: any = {};
if (requestParameters['ordering'] != null) {
queryParameters['ordering'] = requestParameters['ordering'];
if (requestParameters["ordering"] != null) {
queryParameters["ordering"] = requestParameters["ordering"];
}
if (requestParameters['page'] != null) {
queryParameters['page'] = requestParameters['page'];
if (requestParameters["page"] != null) {
queryParameters["page"] = requestParameters["page"];
}
if (requestParameters['pageSize'] != null) {
queryParameters['page_size'] = requestParameters['pageSize'];
if (requestParameters["pageSize"] != null) {
queryParameters["page_size"] = requestParameters["pageSize"];
}
if (requestParameters['provider'] != null) {
queryParameters['provider'] = requestParameters['provider'];
if (requestParameters["provider"] != null) {
queryParameters["provider"] = requestParameters["provider"];
}
if (requestParameters['search'] != null) {
queryParameters['search'] = requestParameters['search'];
if (requestParameters["search"] != null) {
queryParameters["search"] = requestParameters["search"];
}
if (requestParameters['user'] != null) {
queryParameters['user'] = requestParameters['user'];
if (requestParameters["user"] != null) {
queryParameters["user"] = requestParameters["user"];
}
const headerParameters: runtime.HTTPHeaders = {};
@@ -432,7 +468,7 @@ export class Oauth2Api extends runtime.BaseAPI {
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -441,29 +477,43 @@ export class Oauth2Api extends runtime.BaseAPI {
/**
* AuthorizationCode Viewset
*/
async oauth2AuthorizationCodesListRaw(requestParameters: Oauth2AuthorizationCodesListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedExpiringBaseGrantModelList>> {
const requestOptions = await this.oauth2AuthorizationCodesListRequestOpts(requestParameters);
async oauth2AuthorizationCodesListRaw(
requestParameters: Oauth2AuthorizationCodesListRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<PaginatedExpiringBaseGrantModelList>> {
const requestOptions =
await this.oauth2AuthorizationCodesListRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedExpiringBaseGrantModelListFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
PaginatedExpiringBaseGrantModelListFromJSON(jsonValue),
);
}
/**
* AuthorizationCode Viewset
*/
async oauth2AuthorizationCodesList(requestParameters: Oauth2AuthorizationCodesListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedExpiringBaseGrantModelList> {
const response = await this.oauth2AuthorizationCodesListRaw(requestParameters, initOverrides);
async oauth2AuthorizationCodesList(
requestParameters: Oauth2AuthorizationCodesListRequest = {},
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<PaginatedExpiringBaseGrantModelList> {
const response = await this.oauth2AuthorizationCodesListRaw(
requestParameters,
initOverrides,
);
return await response.value();
}
/**
* Creates request options for oauth2AuthorizationCodesRetrieve without sending the request
*/
async oauth2AuthorizationCodesRetrieveRequestOpts(requestParameters: Oauth2AuthorizationCodesRetrieveRequest): Promise<runtime.RequestOpts> {
if (requestParameters['id'] == null) {
async oauth2AuthorizationCodesRetrieveRequestOpts(
requestParameters: Oauth2AuthorizationCodesRetrieveRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["id"] == null) {
throw new runtime.RequiredError(
'id',
'Required parameter "id" was null or undefined when calling oauth2AuthorizationCodesRetrieve().'
"id",
'Required parameter "id" was null or undefined when calling oauth2AuthorizationCodesRetrieve().',
);
}
@@ -481,11 +531,11 @@ export class Oauth2Api extends runtime.BaseAPI {
}
let urlPath = `/oauth2/authorization_codes/{id}/`;
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"])));
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -494,29 +544,43 @@ export class Oauth2Api extends runtime.BaseAPI {
/**
* AuthorizationCode Viewset
*/
async oauth2AuthorizationCodesRetrieveRaw(requestParameters: Oauth2AuthorizationCodesRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ExpiringBaseGrantModel>> {
const requestOptions = await this.oauth2AuthorizationCodesRetrieveRequestOpts(requestParameters);
async oauth2AuthorizationCodesRetrieveRaw(
requestParameters: Oauth2AuthorizationCodesRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<ExpiringBaseGrantModel>> {
const requestOptions =
await this.oauth2AuthorizationCodesRetrieveRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => ExpiringBaseGrantModelFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
ExpiringBaseGrantModelFromJSON(jsonValue),
);
}
/**
* AuthorizationCode Viewset
*/
async oauth2AuthorizationCodesRetrieve(requestParameters: Oauth2AuthorizationCodesRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ExpiringBaseGrantModel> {
const response = await this.oauth2AuthorizationCodesRetrieveRaw(requestParameters, initOverrides);
async oauth2AuthorizationCodesRetrieve(
requestParameters: Oauth2AuthorizationCodesRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<ExpiringBaseGrantModel> {
const response = await this.oauth2AuthorizationCodesRetrieveRaw(
requestParameters,
initOverrides,
);
return await response.value();
}
/**
* Creates request options for oauth2AuthorizationCodesUsedByList without sending the request
*/
async oauth2AuthorizationCodesUsedByListRequestOpts(requestParameters: Oauth2AuthorizationCodesUsedByListRequest): Promise<runtime.RequestOpts> {
if (requestParameters['id'] == null) {
async oauth2AuthorizationCodesUsedByListRequestOpts(
requestParameters: Oauth2AuthorizationCodesUsedByListRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["id"] == null) {
throw new runtime.RequiredError(
'id',
'Required parameter "id" was null or undefined when calling oauth2AuthorizationCodesUsedByList().'
"id",
'Required parameter "id" was null or undefined when calling oauth2AuthorizationCodesUsedByList().',
);
}
@@ -534,11 +598,11 @@ export class Oauth2Api extends runtime.BaseAPI {
}
let urlPath = `/oauth2/authorization_codes/{id}/used_by/`;
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"])));
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -547,8 +611,12 @@ export class Oauth2Api extends runtime.BaseAPI {
/**
* Get a list of all objects that use this object
*/
async oauth2AuthorizationCodesUsedByListRaw(requestParameters: Oauth2AuthorizationCodesUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>> {
const requestOptions = await this.oauth2AuthorizationCodesUsedByListRequestOpts(requestParameters);
async oauth2AuthorizationCodesUsedByListRaw(
requestParameters: Oauth2AuthorizationCodesUsedByListRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<Array<UsedBy>>> {
const requestOptions =
await this.oauth2AuthorizationCodesUsedByListRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
@@ -557,19 +625,27 @@ export class Oauth2Api extends runtime.BaseAPI {
/**
* Get a list of all objects that use this object
*/
async oauth2AuthorizationCodesUsedByList(requestParameters: Oauth2AuthorizationCodesUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UsedBy>> {
const response = await this.oauth2AuthorizationCodesUsedByListRaw(requestParameters, initOverrides);
async oauth2AuthorizationCodesUsedByList(
requestParameters: Oauth2AuthorizationCodesUsedByListRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<Array<UsedBy>> {
const response = await this.oauth2AuthorizationCodesUsedByListRaw(
requestParameters,
initOverrides,
);
return await response.value();
}
/**
* Creates request options for oauth2RefreshTokensDestroy without sending the request
*/
async oauth2RefreshTokensDestroyRequestOpts(requestParameters: Oauth2RefreshTokensDestroyRequest): Promise<runtime.RequestOpts> {
if (requestParameters['id'] == null) {
async oauth2RefreshTokensDestroyRequestOpts(
requestParameters: Oauth2RefreshTokensDestroyRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["id"] == null) {
throw new runtime.RequiredError(
'id',
'Required parameter "id" was null or undefined when calling oauth2RefreshTokensDestroy().'
"id",
'Required parameter "id" was null or undefined when calling oauth2RefreshTokensDestroy().',
);
}
@@ -587,11 +663,11 @@ export class Oauth2Api extends runtime.BaseAPI {
}
let urlPath = `/oauth2/refresh_tokens/{id}/`;
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"])));
return {
path: urlPath,
method: 'DELETE',
method: "DELETE",
headers: headerParameters,
query: queryParameters,
};
@@ -600,7 +676,10 @@ export class Oauth2Api extends runtime.BaseAPI {
/**
* RefreshToken Viewset
*/
async oauth2RefreshTokensDestroyRaw(requestParameters: Oauth2RefreshTokensDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
async oauth2RefreshTokensDestroyRaw(
requestParameters: Oauth2RefreshTokensDestroyRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<void>> {
const requestOptions = await this.oauth2RefreshTokensDestroyRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -610,38 +689,43 @@ export class Oauth2Api extends runtime.BaseAPI {
/**
* RefreshToken Viewset
*/
async oauth2RefreshTokensDestroy(requestParameters: Oauth2RefreshTokensDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
async oauth2RefreshTokensDestroy(
requestParameters: Oauth2RefreshTokensDestroyRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<void> {
await this.oauth2RefreshTokensDestroyRaw(requestParameters, initOverrides);
}
/**
* Creates request options for oauth2RefreshTokensList without sending the request
*/
async oauth2RefreshTokensListRequestOpts(requestParameters: Oauth2RefreshTokensListRequest): Promise<runtime.RequestOpts> {
async oauth2RefreshTokensListRequestOpts(
requestParameters: Oauth2RefreshTokensListRequest,
): Promise<runtime.RequestOpts> {
const queryParameters: any = {};
if (requestParameters['ordering'] != null) {
queryParameters['ordering'] = requestParameters['ordering'];
if (requestParameters["ordering"] != null) {
queryParameters["ordering"] = requestParameters["ordering"];
}
if (requestParameters['page'] != null) {
queryParameters['page'] = requestParameters['page'];
if (requestParameters["page"] != null) {
queryParameters["page"] = requestParameters["page"];
}
if (requestParameters['pageSize'] != null) {
queryParameters['page_size'] = requestParameters['pageSize'];
if (requestParameters["pageSize"] != null) {
queryParameters["page_size"] = requestParameters["pageSize"];
}
if (requestParameters['provider'] != null) {
queryParameters['provider'] = requestParameters['provider'];
if (requestParameters["provider"] != null) {
queryParameters["provider"] = requestParameters["provider"];
}
if (requestParameters['search'] != null) {
queryParameters['search'] = requestParameters['search'];
if (requestParameters["search"] != null) {
queryParameters["search"] = requestParameters["search"];
}
if (requestParameters['user'] != null) {
queryParameters['user'] = requestParameters['user'];
if (requestParameters["user"] != null) {
queryParameters["user"] = requestParameters["user"];
}
const headerParameters: runtime.HTTPHeaders = {};
@@ -659,7 +743,7 @@ export class Oauth2Api extends runtime.BaseAPI {
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -668,17 +752,25 @@ export class Oauth2Api extends runtime.BaseAPI {
/**
* RefreshToken Viewset
*/
async oauth2RefreshTokensListRaw(requestParameters: Oauth2RefreshTokensListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedTokenModelList>> {
async oauth2RefreshTokensListRaw(
requestParameters: Oauth2RefreshTokensListRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<PaginatedTokenModelList>> {
const requestOptions = await this.oauth2RefreshTokensListRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedTokenModelListFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
PaginatedTokenModelListFromJSON(jsonValue),
);
}
/**
* RefreshToken Viewset
*/
async oauth2RefreshTokensList(requestParameters: Oauth2RefreshTokensListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedTokenModelList> {
async oauth2RefreshTokensList(
requestParameters: Oauth2RefreshTokensListRequest = {},
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<PaginatedTokenModelList> {
const response = await this.oauth2RefreshTokensListRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -686,11 +778,13 @@ export class Oauth2Api extends runtime.BaseAPI {
/**
* Creates request options for oauth2RefreshTokensRetrieve without sending the request
*/
async oauth2RefreshTokensRetrieveRequestOpts(requestParameters: Oauth2RefreshTokensRetrieveRequest): Promise<runtime.RequestOpts> {
if (requestParameters['id'] == null) {
async oauth2RefreshTokensRetrieveRequestOpts(
requestParameters: Oauth2RefreshTokensRetrieveRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["id"] == null) {
throw new runtime.RequiredError(
'id',
'Required parameter "id" was null or undefined when calling oauth2RefreshTokensRetrieve().'
"id",
'Required parameter "id" was null or undefined when calling oauth2RefreshTokensRetrieve().',
);
}
@@ -708,11 +802,11 @@ export class Oauth2Api extends runtime.BaseAPI {
}
let urlPath = `/oauth2/refresh_tokens/{id}/`;
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"])));
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -721,7 +815,10 @@ export class Oauth2Api extends runtime.BaseAPI {
/**
* RefreshToken Viewset
*/
async oauth2RefreshTokensRetrieveRaw(requestParameters: Oauth2RefreshTokensRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TokenModel>> {
async oauth2RefreshTokensRetrieveRaw(
requestParameters: Oauth2RefreshTokensRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<TokenModel>> {
const requestOptions = await this.oauth2RefreshTokensRetrieveRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -731,19 +828,27 @@ export class Oauth2Api extends runtime.BaseAPI {
/**
* RefreshToken Viewset
*/
async oauth2RefreshTokensRetrieve(requestParameters: Oauth2RefreshTokensRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TokenModel> {
const response = await this.oauth2RefreshTokensRetrieveRaw(requestParameters, initOverrides);
async oauth2RefreshTokensRetrieve(
requestParameters: Oauth2RefreshTokensRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<TokenModel> {
const response = await this.oauth2RefreshTokensRetrieveRaw(
requestParameters,
initOverrides,
);
return await response.value();
}
/**
* Creates request options for oauth2RefreshTokensUsedByList without sending the request
*/
async oauth2RefreshTokensUsedByListRequestOpts(requestParameters: Oauth2RefreshTokensUsedByListRequest): Promise<runtime.RequestOpts> {
if (requestParameters['id'] == null) {
async oauth2RefreshTokensUsedByListRequestOpts(
requestParameters: Oauth2RefreshTokensUsedByListRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["id"] == null) {
throw new runtime.RequiredError(
'id',
'Required parameter "id" was null or undefined when calling oauth2RefreshTokensUsedByList().'
"id",
'Required parameter "id" was null or undefined when calling oauth2RefreshTokensUsedByList().',
);
}
@@ -761,11 +866,11 @@ export class Oauth2Api extends runtime.BaseAPI {
}
let urlPath = `/oauth2/refresh_tokens/{id}/used_by/`;
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"])));
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -774,8 +879,12 @@ export class Oauth2Api extends runtime.BaseAPI {
/**
* Get a list of all objects that use this object
*/
async oauth2RefreshTokensUsedByListRaw(requestParameters: Oauth2RefreshTokensUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>> {
const requestOptions = await this.oauth2RefreshTokensUsedByListRequestOpts(requestParameters);
async oauth2RefreshTokensUsedByListRaw(
requestParameters: Oauth2RefreshTokensUsedByListRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<Array<UsedBy>>> {
const requestOptions =
await this.oauth2RefreshTokensUsedByListRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
@@ -784,9 +893,14 @@ export class Oauth2Api extends runtime.BaseAPI {
/**
* Get a list of all objects that use this object
*/
async oauth2RefreshTokensUsedByList(requestParameters: Oauth2RefreshTokensUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UsedBy>> {
const response = await this.oauth2RefreshTokensUsedByListRaw(requestParameters, initOverrides);
async oauth2RefreshTokensUsedByList(
requestParameters: Oauth2RefreshTokensUsedByListRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<Array<UsedBy>> {
const response = await this.oauth2RefreshTokensUsedByListRaw(
requestParameters,
initOverrides,
);
return await response.value();
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -12,45 +12,29 @@
* Do not edit the class manually.
*/
import * as runtime from '../runtime';
import type {
ConnectionToken,
ConnectionTokenRequest,
Endpoint,
EndpointRequest,
GenericError,
PaginatedConnectionTokenList,
PaginatedEndpointList,
PatchedConnectionTokenRequest,
PatchedEndpointRequest,
UsedBy,
ValidationError,
} from '../models/index';
ConnectionToken,
ConnectionTokenRequest,
Endpoint,
EndpointRequest,
PaginatedConnectionTokenList,
PaginatedEndpointList,
PatchedConnectionTokenRequest,
PatchedEndpointRequest,
UsedBy,
} from "../models/index";
import {
ConnectionTokenFromJSON,
ConnectionTokenToJSON,
ConnectionTokenRequestFromJSON,
ConnectionTokenRequestToJSON,
EndpointFromJSON,
EndpointToJSON,
EndpointRequestFromJSON,
EndpointRequestToJSON,
GenericErrorFromJSON,
GenericErrorToJSON,
PaginatedConnectionTokenListFromJSON,
PaginatedConnectionTokenListToJSON,
PaginatedEndpointListFromJSON,
PaginatedEndpointListToJSON,
PatchedConnectionTokenRequestFromJSON,
PatchedConnectionTokenRequestToJSON,
PatchedEndpointRequestFromJSON,
PatchedEndpointRequestToJSON,
UsedByFromJSON,
UsedByToJSON,
ValidationErrorFromJSON,
ValidationErrorToJSON,
} from '../models/index';
} from "../models/index";
import * as runtime from "../runtime";
export interface RacConnectionTokensDestroyRequest {
connectionTokenUuid: string;
@@ -121,18 +105,19 @@ export interface RacEndpointsUsedByListRequest {
}
/**
*
*
*/
export class RacApi extends runtime.BaseAPI {
/**
* Creates request options for racConnectionTokensDestroy without sending the request
*/
async racConnectionTokensDestroyRequestOpts(requestParameters: RacConnectionTokensDestroyRequest): Promise<runtime.RequestOpts> {
if (requestParameters['connectionTokenUuid'] == null) {
async racConnectionTokensDestroyRequestOpts(
requestParameters: RacConnectionTokensDestroyRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["connectionTokenUuid"] == null) {
throw new runtime.RequiredError(
'connectionTokenUuid',
'Required parameter "connectionTokenUuid" was null or undefined when calling racConnectionTokensDestroy().'
"connectionTokenUuid",
'Required parameter "connectionTokenUuid" was null or undefined when calling racConnectionTokensDestroy().',
);
}
@@ -150,11 +135,14 @@ export class RacApi extends runtime.BaseAPI {
}
let urlPath = `/rac/connection_tokens/{connection_token_uuid}/`;
urlPath = urlPath.replace(`{${"connection_token_uuid"}}`, encodeURIComponent(String(requestParameters['connectionTokenUuid'])));
urlPath = urlPath.replace(
`{${"connection_token_uuid"}}`,
encodeURIComponent(String(requestParameters["connectionTokenUuid"])),
);
return {
path: urlPath,
method: 'DELETE',
method: "DELETE",
headers: headerParameters,
query: queryParameters,
};
@@ -163,7 +151,10 @@ export class RacApi extends runtime.BaseAPI {
/**
* ConnectionToken Viewset
*/
async racConnectionTokensDestroyRaw(requestParameters: RacConnectionTokensDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
async racConnectionTokensDestroyRaw(
requestParameters: RacConnectionTokensDestroyRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<void>> {
const requestOptions = await this.racConnectionTokensDestroyRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -173,42 +164,47 @@ export class RacApi extends runtime.BaseAPI {
/**
* ConnectionToken Viewset
*/
async racConnectionTokensDestroy(requestParameters: RacConnectionTokensDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
async racConnectionTokensDestroy(
requestParameters: RacConnectionTokensDestroyRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<void> {
await this.racConnectionTokensDestroyRaw(requestParameters, initOverrides);
}
/**
* Creates request options for racConnectionTokensList without sending the request
*/
async racConnectionTokensListRequestOpts(requestParameters: RacConnectionTokensListRequest): Promise<runtime.RequestOpts> {
async racConnectionTokensListRequestOpts(
requestParameters: RacConnectionTokensListRequest,
): Promise<runtime.RequestOpts> {
const queryParameters: any = {};
if (requestParameters['endpoint'] != null) {
queryParameters['endpoint'] = requestParameters['endpoint'];
if (requestParameters["endpoint"] != null) {
queryParameters["endpoint"] = requestParameters["endpoint"];
}
if (requestParameters['ordering'] != null) {
queryParameters['ordering'] = requestParameters['ordering'];
if (requestParameters["ordering"] != null) {
queryParameters["ordering"] = requestParameters["ordering"];
}
if (requestParameters['page'] != null) {
queryParameters['page'] = requestParameters['page'];
if (requestParameters["page"] != null) {
queryParameters["page"] = requestParameters["page"];
}
if (requestParameters['pageSize'] != null) {
queryParameters['page_size'] = requestParameters['pageSize'];
if (requestParameters["pageSize"] != null) {
queryParameters["page_size"] = requestParameters["pageSize"];
}
if (requestParameters['provider'] != null) {
queryParameters['provider'] = requestParameters['provider'];
if (requestParameters["provider"] != null) {
queryParameters["provider"] = requestParameters["provider"];
}
if (requestParameters['search'] != null) {
queryParameters['search'] = requestParameters['search'];
if (requestParameters["search"] != null) {
queryParameters["search"] = requestParameters["search"];
}
if (requestParameters['sessionUser'] != null) {
queryParameters['session__user'] = requestParameters['sessionUser'];
if (requestParameters["sessionUser"] != null) {
queryParameters["session__user"] = requestParameters["sessionUser"];
}
const headerParameters: runtime.HTTPHeaders = {};
@@ -226,7 +222,7 @@ export class RacApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -235,17 +231,25 @@ export class RacApi extends runtime.BaseAPI {
/**
* ConnectionToken Viewset
*/
async racConnectionTokensListRaw(requestParameters: RacConnectionTokensListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedConnectionTokenList>> {
async racConnectionTokensListRaw(
requestParameters: RacConnectionTokensListRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<PaginatedConnectionTokenList>> {
const requestOptions = await this.racConnectionTokensListRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedConnectionTokenListFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
PaginatedConnectionTokenListFromJSON(jsonValue),
);
}
/**
* ConnectionToken Viewset
*/
async racConnectionTokensList(requestParameters: RacConnectionTokensListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedConnectionTokenList> {
async racConnectionTokensList(
requestParameters: RacConnectionTokensListRequest = {},
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<PaginatedConnectionTokenList> {
const response = await this.racConnectionTokensListRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -253,11 +257,13 @@ export class RacApi extends runtime.BaseAPI {
/**
* Creates request options for racConnectionTokensPartialUpdate without sending the request
*/
async racConnectionTokensPartialUpdateRequestOpts(requestParameters: RacConnectionTokensPartialUpdateRequest): Promise<runtime.RequestOpts> {
if (requestParameters['connectionTokenUuid'] == null) {
async racConnectionTokensPartialUpdateRequestOpts(
requestParameters: RacConnectionTokensPartialUpdateRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["connectionTokenUuid"] == null) {
throw new runtime.RequiredError(
'connectionTokenUuid',
'Required parameter "connectionTokenUuid" was null or undefined when calling racConnectionTokensPartialUpdate().'
"connectionTokenUuid",
'Required parameter "connectionTokenUuid" was null or undefined when calling racConnectionTokensPartialUpdate().',
);
}
@@ -265,7 +271,7 @@ export class RacApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
headerParameters['Content-Type'] = 'application/json';
headerParameters["Content-Type"] = "application/json";
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
@@ -277,43 +283,62 @@ export class RacApi extends runtime.BaseAPI {
}
let urlPath = `/rac/connection_tokens/{connection_token_uuid}/`;
urlPath = urlPath.replace(`{${"connection_token_uuid"}}`, encodeURIComponent(String(requestParameters['connectionTokenUuid'])));
urlPath = urlPath.replace(
`{${"connection_token_uuid"}}`,
encodeURIComponent(String(requestParameters["connectionTokenUuid"])),
);
return {
path: urlPath,
method: 'PATCH',
method: "PATCH",
headers: headerParameters,
query: queryParameters,
body: PatchedConnectionTokenRequestToJSON(requestParameters['patchedConnectionTokenRequest']),
body: PatchedConnectionTokenRequestToJSON(
requestParameters["patchedConnectionTokenRequest"],
),
};
}
/**
* ConnectionToken Viewset
*/
async racConnectionTokensPartialUpdateRaw(requestParameters: RacConnectionTokensPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConnectionToken>> {
const requestOptions = await this.racConnectionTokensPartialUpdateRequestOpts(requestParameters);
async racConnectionTokensPartialUpdateRaw(
requestParameters: RacConnectionTokensPartialUpdateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<ConnectionToken>> {
const requestOptions =
await this.racConnectionTokensPartialUpdateRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => ConnectionTokenFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
ConnectionTokenFromJSON(jsonValue),
);
}
/**
* ConnectionToken Viewset
*/
async racConnectionTokensPartialUpdate(requestParameters: RacConnectionTokensPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConnectionToken> {
const response = await this.racConnectionTokensPartialUpdateRaw(requestParameters, initOverrides);
async racConnectionTokensPartialUpdate(
requestParameters: RacConnectionTokensPartialUpdateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<ConnectionToken> {
const response = await this.racConnectionTokensPartialUpdateRaw(
requestParameters,
initOverrides,
);
return await response.value();
}
/**
* Creates request options for racConnectionTokensRetrieve without sending the request
*/
async racConnectionTokensRetrieveRequestOpts(requestParameters: RacConnectionTokensRetrieveRequest): Promise<runtime.RequestOpts> {
if (requestParameters['connectionTokenUuid'] == null) {
async racConnectionTokensRetrieveRequestOpts(
requestParameters: RacConnectionTokensRetrieveRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["connectionTokenUuid"] == null) {
throw new runtime.RequiredError(
'connectionTokenUuid',
'Required parameter "connectionTokenUuid" was null or undefined when calling racConnectionTokensRetrieve().'
"connectionTokenUuid",
'Required parameter "connectionTokenUuid" was null or undefined when calling racConnectionTokensRetrieve().',
);
}
@@ -331,11 +356,14 @@ export class RacApi extends runtime.BaseAPI {
}
let urlPath = `/rac/connection_tokens/{connection_token_uuid}/`;
urlPath = urlPath.replace(`{${"connection_token_uuid"}}`, encodeURIComponent(String(requestParameters['connectionTokenUuid'])));
urlPath = urlPath.replace(
`{${"connection_token_uuid"}}`,
encodeURIComponent(String(requestParameters["connectionTokenUuid"])),
);
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -344,36 +372,49 @@ export class RacApi extends runtime.BaseAPI {
/**
* ConnectionToken Viewset
*/
async racConnectionTokensRetrieveRaw(requestParameters: RacConnectionTokensRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConnectionToken>> {
async racConnectionTokensRetrieveRaw(
requestParameters: RacConnectionTokensRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<ConnectionToken>> {
const requestOptions = await this.racConnectionTokensRetrieveRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => ConnectionTokenFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
ConnectionTokenFromJSON(jsonValue),
);
}
/**
* ConnectionToken Viewset
*/
async racConnectionTokensRetrieve(requestParameters: RacConnectionTokensRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConnectionToken> {
const response = await this.racConnectionTokensRetrieveRaw(requestParameters, initOverrides);
async racConnectionTokensRetrieve(
requestParameters: RacConnectionTokensRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<ConnectionToken> {
const response = await this.racConnectionTokensRetrieveRaw(
requestParameters,
initOverrides,
);
return await response.value();
}
/**
* Creates request options for racConnectionTokensUpdate without sending the request
*/
async racConnectionTokensUpdateRequestOpts(requestParameters: RacConnectionTokensUpdateRequest): Promise<runtime.RequestOpts> {
if (requestParameters['connectionTokenUuid'] == null) {
async racConnectionTokensUpdateRequestOpts(
requestParameters: RacConnectionTokensUpdateRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["connectionTokenUuid"] == null) {
throw new runtime.RequiredError(
'connectionTokenUuid',
'Required parameter "connectionTokenUuid" was null or undefined when calling racConnectionTokensUpdate().'
"connectionTokenUuid",
'Required parameter "connectionTokenUuid" was null or undefined when calling racConnectionTokensUpdate().',
);
}
if (requestParameters['connectionTokenRequest'] == null) {
if (requestParameters["connectionTokenRequest"] == null) {
throw new runtime.RequiredError(
'connectionTokenRequest',
'Required parameter "connectionTokenRequest" was null or undefined when calling racConnectionTokensUpdate().'
"connectionTokenRequest",
'Required parameter "connectionTokenRequest" was null or undefined when calling racConnectionTokensUpdate().',
);
}
@@ -381,7 +422,7 @@ export class RacApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
headerParameters['Content-Type'] = 'application/json';
headerParameters["Content-Type"] = "application/json";
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
@@ -393,31 +434,42 @@ export class RacApi extends runtime.BaseAPI {
}
let urlPath = `/rac/connection_tokens/{connection_token_uuid}/`;
urlPath = urlPath.replace(`{${"connection_token_uuid"}}`, encodeURIComponent(String(requestParameters['connectionTokenUuid'])));
urlPath = urlPath.replace(
`{${"connection_token_uuid"}}`,
encodeURIComponent(String(requestParameters["connectionTokenUuid"])),
);
return {
path: urlPath,
method: 'PUT',
method: "PUT",
headers: headerParameters,
query: queryParameters,
body: ConnectionTokenRequestToJSON(requestParameters['connectionTokenRequest']),
body: ConnectionTokenRequestToJSON(requestParameters["connectionTokenRequest"]),
};
}
/**
* ConnectionToken Viewset
*/
async racConnectionTokensUpdateRaw(requestParameters: RacConnectionTokensUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConnectionToken>> {
async racConnectionTokensUpdateRaw(
requestParameters: RacConnectionTokensUpdateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<ConnectionToken>> {
const requestOptions = await this.racConnectionTokensUpdateRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => ConnectionTokenFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
ConnectionTokenFromJSON(jsonValue),
);
}
/**
* ConnectionToken Viewset
*/
async racConnectionTokensUpdate(requestParameters: RacConnectionTokensUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConnectionToken> {
async racConnectionTokensUpdate(
requestParameters: RacConnectionTokensUpdateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<ConnectionToken> {
const response = await this.racConnectionTokensUpdateRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -425,11 +477,13 @@ export class RacApi extends runtime.BaseAPI {
/**
* Creates request options for racConnectionTokensUsedByList without sending the request
*/
async racConnectionTokensUsedByListRequestOpts(requestParameters: RacConnectionTokensUsedByListRequest): Promise<runtime.RequestOpts> {
if (requestParameters['connectionTokenUuid'] == null) {
async racConnectionTokensUsedByListRequestOpts(
requestParameters: RacConnectionTokensUsedByListRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["connectionTokenUuid"] == null) {
throw new runtime.RequiredError(
'connectionTokenUuid',
'Required parameter "connectionTokenUuid" was null or undefined when calling racConnectionTokensUsedByList().'
"connectionTokenUuid",
'Required parameter "connectionTokenUuid" was null or undefined when calling racConnectionTokensUsedByList().',
);
}
@@ -447,11 +501,14 @@ export class RacApi extends runtime.BaseAPI {
}
let urlPath = `/rac/connection_tokens/{connection_token_uuid}/used_by/`;
urlPath = urlPath.replace(`{${"connection_token_uuid"}}`, encodeURIComponent(String(requestParameters['connectionTokenUuid'])));
urlPath = urlPath.replace(
`{${"connection_token_uuid"}}`,
encodeURIComponent(String(requestParameters["connectionTokenUuid"])),
);
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -460,8 +517,12 @@ export class RacApi extends runtime.BaseAPI {
/**
* Get a list of all objects that use this object
*/
async racConnectionTokensUsedByListRaw(requestParameters: RacConnectionTokensUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>> {
const requestOptions = await this.racConnectionTokensUsedByListRequestOpts(requestParameters);
async racConnectionTokensUsedByListRaw(
requestParameters: RacConnectionTokensUsedByListRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<Array<UsedBy>>> {
const requestOptions =
await this.racConnectionTokensUsedByListRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
@@ -470,19 +531,27 @@ export class RacApi extends runtime.BaseAPI {
/**
* Get a list of all objects that use this object
*/
async racConnectionTokensUsedByList(requestParameters: RacConnectionTokensUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UsedBy>> {
const response = await this.racConnectionTokensUsedByListRaw(requestParameters, initOverrides);
async racConnectionTokensUsedByList(
requestParameters: RacConnectionTokensUsedByListRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<Array<UsedBy>> {
const response = await this.racConnectionTokensUsedByListRaw(
requestParameters,
initOverrides,
);
return await response.value();
}
/**
* Creates request options for racEndpointsCreate without sending the request
*/
async racEndpointsCreateRequestOpts(requestParameters: RacEndpointsCreateRequest): Promise<runtime.RequestOpts> {
if (requestParameters['endpointRequest'] == null) {
async racEndpointsCreateRequestOpts(
requestParameters: RacEndpointsCreateRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["endpointRequest"] == null) {
throw new runtime.RequiredError(
'endpointRequest',
'Required parameter "endpointRequest" was null or undefined when calling racEndpointsCreate().'
"endpointRequest",
'Required parameter "endpointRequest" was null or undefined when calling racEndpointsCreate().',
);
}
@@ -490,7 +559,7 @@ export class RacApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
headerParameters['Content-Type'] = 'application/json';
headerParameters["Content-Type"] = "application/json";
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
@@ -505,17 +574,20 @@ export class RacApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'POST',
method: "POST",
headers: headerParameters,
query: queryParameters,
body: EndpointRequestToJSON(requestParameters['endpointRequest']),
body: EndpointRequestToJSON(requestParameters["endpointRequest"]),
};
}
/**
* Endpoint Viewset
*/
async racEndpointsCreateRaw(requestParameters: RacEndpointsCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Endpoint>> {
async racEndpointsCreateRaw(
requestParameters: RacEndpointsCreateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<Endpoint>> {
const requestOptions = await this.racEndpointsCreateRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -525,7 +597,10 @@ export class RacApi extends runtime.BaseAPI {
/**
* Endpoint Viewset
*/
async racEndpointsCreate(requestParameters: RacEndpointsCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Endpoint> {
async racEndpointsCreate(
requestParameters: RacEndpointsCreateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<Endpoint> {
const response = await this.racEndpointsCreateRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -533,11 +608,13 @@ export class RacApi extends runtime.BaseAPI {
/**
* Creates request options for racEndpointsDestroy without sending the request
*/
async racEndpointsDestroyRequestOpts(requestParameters: RacEndpointsDestroyRequest): Promise<runtime.RequestOpts> {
if (requestParameters['pbmUuid'] == null) {
async racEndpointsDestroyRequestOpts(
requestParameters: RacEndpointsDestroyRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["pbmUuid"] == null) {
throw new runtime.RequiredError(
'pbmUuid',
'Required parameter "pbmUuid" was null or undefined when calling racEndpointsDestroy().'
"pbmUuid",
'Required parameter "pbmUuid" was null or undefined when calling racEndpointsDestroy().',
);
}
@@ -555,11 +632,14 @@ export class RacApi extends runtime.BaseAPI {
}
let urlPath = `/rac/endpoints/{pbm_uuid}/`;
urlPath = urlPath.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters['pbmUuid'])));
urlPath = urlPath.replace(
`{${"pbm_uuid"}}`,
encodeURIComponent(String(requestParameters["pbmUuid"])),
);
return {
path: urlPath,
method: 'DELETE',
method: "DELETE",
headers: headerParameters,
query: queryParameters,
};
@@ -568,7 +648,10 @@ export class RacApi extends runtime.BaseAPI {
/**
* Endpoint Viewset
*/
async racEndpointsDestroyRaw(requestParameters: RacEndpointsDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
async racEndpointsDestroyRaw(
requestParameters: RacEndpointsDestroyRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<void>> {
const requestOptions = await this.racEndpointsDestroyRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -578,42 +661,47 @@ export class RacApi extends runtime.BaseAPI {
/**
* Endpoint Viewset
*/
async racEndpointsDestroy(requestParameters: RacEndpointsDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
async racEndpointsDestroy(
requestParameters: RacEndpointsDestroyRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<void> {
await this.racEndpointsDestroyRaw(requestParameters, initOverrides);
}
/**
* Creates request options for racEndpointsList without sending the request
*/
async racEndpointsListRequestOpts(requestParameters: RacEndpointsListRequest): Promise<runtime.RequestOpts> {
async racEndpointsListRequestOpts(
requestParameters: RacEndpointsListRequest,
): Promise<runtime.RequestOpts> {
const queryParameters: any = {};
if (requestParameters['name'] != null) {
queryParameters['name'] = requestParameters['name'];
if (requestParameters["name"] != null) {
queryParameters["name"] = requestParameters["name"];
}
if (requestParameters['ordering'] != null) {
queryParameters['ordering'] = requestParameters['ordering'];
if (requestParameters["ordering"] != null) {
queryParameters["ordering"] = requestParameters["ordering"];
}
if (requestParameters['page'] != null) {
queryParameters['page'] = requestParameters['page'];
if (requestParameters["page"] != null) {
queryParameters["page"] = requestParameters["page"];
}
if (requestParameters['pageSize'] != null) {
queryParameters['page_size'] = requestParameters['pageSize'];
if (requestParameters["pageSize"] != null) {
queryParameters["page_size"] = requestParameters["pageSize"];
}
if (requestParameters['provider'] != null) {
queryParameters['provider'] = requestParameters['provider'];
if (requestParameters["provider"] != null) {
queryParameters["provider"] = requestParameters["provider"];
}
if (requestParameters['search'] != null) {
queryParameters['search'] = requestParameters['search'];
if (requestParameters["search"] != null) {
queryParameters["search"] = requestParameters["search"];
}
if (requestParameters['superuserFullList'] != null) {
queryParameters['superuser_full_list'] = requestParameters['superuserFullList'];
if (requestParameters["superuserFullList"] != null) {
queryParameters["superuser_full_list"] = requestParameters["superuserFullList"];
}
const headerParameters: runtime.HTTPHeaders = {};
@@ -631,7 +719,7 @@ export class RacApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -640,17 +728,25 @@ export class RacApi extends runtime.BaseAPI {
/**
* List accessible endpoints
*/
async racEndpointsListRaw(requestParameters: RacEndpointsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedEndpointList>> {
async racEndpointsListRaw(
requestParameters: RacEndpointsListRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<PaginatedEndpointList>> {
const requestOptions = await this.racEndpointsListRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedEndpointListFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
PaginatedEndpointListFromJSON(jsonValue),
);
}
/**
* List accessible endpoints
*/
async racEndpointsList(requestParameters: RacEndpointsListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedEndpointList> {
async racEndpointsList(
requestParameters: RacEndpointsListRequest = {},
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<PaginatedEndpointList> {
const response = await this.racEndpointsListRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -658,11 +754,13 @@ export class RacApi extends runtime.BaseAPI {
/**
* Creates request options for racEndpointsPartialUpdate without sending the request
*/
async racEndpointsPartialUpdateRequestOpts(requestParameters: RacEndpointsPartialUpdateRequest): Promise<runtime.RequestOpts> {
if (requestParameters['pbmUuid'] == null) {
async racEndpointsPartialUpdateRequestOpts(
requestParameters: RacEndpointsPartialUpdateRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["pbmUuid"] == null) {
throw new runtime.RequiredError(
'pbmUuid',
'Required parameter "pbmUuid" was null or undefined when calling racEndpointsPartialUpdate().'
"pbmUuid",
'Required parameter "pbmUuid" was null or undefined when calling racEndpointsPartialUpdate().',
);
}
@@ -670,7 +768,7 @@ export class RacApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
headerParameters['Content-Type'] = 'application/json';
headerParameters["Content-Type"] = "application/json";
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
@@ -682,21 +780,27 @@ export class RacApi extends runtime.BaseAPI {
}
let urlPath = `/rac/endpoints/{pbm_uuid}/`;
urlPath = urlPath.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters['pbmUuid'])));
urlPath = urlPath.replace(
`{${"pbm_uuid"}}`,
encodeURIComponent(String(requestParameters["pbmUuid"])),
);
return {
path: urlPath,
method: 'PATCH',
method: "PATCH",
headers: headerParameters,
query: queryParameters,
body: PatchedEndpointRequestToJSON(requestParameters['patchedEndpointRequest']),
body: PatchedEndpointRequestToJSON(requestParameters["patchedEndpointRequest"]),
};
}
/**
* Endpoint Viewset
*/
async racEndpointsPartialUpdateRaw(requestParameters: RacEndpointsPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Endpoint>> {
async racEndpointsPartialUpdateRaw(
requestParameters: RacEndpointsPartialUpdateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<Endpoint>> {
const requestOptions = await this.racEndpointsPartialUpdateRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -706,7 +810,10 @@ export class RacApi extends runtime.BaseAPI {
/**
* Endpoint Viewset
*/
async racEndpointsPartialUpdate(requestParameters: RacEndpointsPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Endpoint> {
async racEndpointsPartialUpdate(
requestParameters: RacEndpointsPartialUpdateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<Endpoint> {
const response = await this.racEndpointsPartialUpdateRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -714,11 +821,13 @@ export class RacApi extends runtime.BaseAPI {
/**
* Creates request options for racEndpointsRetrieve without sending the request
*/
async racEndpointsRetrieveRequestOpts(requestParameters: RacEndpointsRetrieveRequest): Promise<runtime.RequestOpts> {
if (requestParameters['pbmUuid'] == null) {
async racEndpointsRetrieveRequestOpts(
requestParameters: RacEndpointsRetrieveRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["pbmUuid"] == null) {
throw new runtime.RequiredError(
'pbmUuid',
'Required parameter "pbmUuid" was null or undefined when calling racEndpointsRetrieve().'
"pbmUuid",
'Required parameter "pbmUuid" was null or undefined when calling racEndpointsRetrieve().',
);
}
@@ -736,11 +845,14 @@ export class RacApi extends runtime.BaseAPI {
}
let urlPath = `/rac/endpoints/{pbm_uuid}/`;
urlPath = urlPath.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters['pbmUuid'])));
urlPath = urlPath.replace(
`{${"pbm_uuid"}}`,
encodeURIComponent(String(requestParameters["pbmUuid"])),
);
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -749,7 +861,10 @@ export class RacApi extends runtime.BaseAPI {
/**
* Endpoint Viewset
*/
async racEndpointsRetrieveRaw(requestParameters: RacEndpointsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Endpoint>> {
async racEndpointsRetrieveRaw(
requestParameters: RacEndpointsRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<Endpoint>> {
const requestOptions = await this.racEndpointsRetrieveRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -759,7 +874,10 @@ export class RacApi extends runtime.BaseAPI {
/**
* Endpoint Viewset
*/
async racEndpointsRetrieve(requestParameters: RacEndpointsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Endpoint> {
async racEndpointsRetrieve(
requestParameters: RacEndpointsRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<Endpoint> {
const response = await this.racEndpointsRetrieveRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -767,18 +885,20 @@ export class RacApi extends runtime.BaseAPI {
/**
* Creates request options for racEndpointsUpdate without sending the request
*/
async racEndpointsUpdateRequestOpts(requestParameters: RacEndpointsUpdateRequest): Promise<runtime.RequestOpts> {
if (requestParameters['pbmUuid'] == null) {
async racEndpointsUpdateRequestOpts(
requestParameters: RacEndpointsUpdateRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["pbmUuid"] == null) {
throw new runtime.RequiredError(
'pbmUuid',
'Required parameter "pbmUuid" was null or undefined when calling racEndpointsUpdate().'
"pbmUuid",
'Required parameter "pbmUuid" was null or undefined when calling racEndpointsUpdate().',
);
}
if (requestParameters['endpointRequest'] == null) {
if (requestParameters["endpointRequest"] == null) {
throw new runtime.RequiredError(
'endpointRequest',
'Required parameter "endpointRequest" was null or undefined when calling racEndpointsUpdate().'
"endpointRequest",
'Required parameter "endpointRequest" was null or undefined when calling racEndpointsUpdate().',
);
}
@@ -786,7 +906,7 @@ export class RacApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
headerParameters['Content-Type'] = 'application/json';
headerParameters["Content-Type"] = "application/json";
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
@@ -798,21 +918,27 @@ export class RacApi extends runtime.BaseAPI {
}
let urlPath = `/rac/endpoints/{pbm_uuid}/`;
urlPath = urlPath.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters['pbmUuid'])));
urlPath = urlPath.replace(
`{${"pbm_uuid"}}`,
encodeURIComponent(String(requestParameters["pbmUuid"])),
);
return {
path: urlPath,
method: 'PUT',
method: "PUT",
headers: headerParameters,
query: queryParameters,
body: EndpointRequestToJSON(requestParameters['endpointRequest']),
body: EndpointRequestToJSON(requestParameters["endpointRequest"]),
};
}
/**
* Endpoint Viewset
*/
async racEndpointsUpdateRaw(requestParameters: RacEndpointsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Endpoint>> {
async racEndpointsUpdateRaw(
requestParameters: RacEndpointsUpdateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<Endpoint>> {
const requestOptions = await this.racEndpointsUpdateRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -822,7 +948,10 @@ export class RacApi extends runtime.BaseAPI {
/**
* Endpoint Viewset
*/
async racEndpointsUpdate(requestParameters: RacEndpointsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Endpoint> {
async racEndpointsUpdate(
requestParameters: RacEndpointsUpdateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<Endpoint> {
const response = await this.racEndpointsUpdateRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -830,11 +959,13 @@ export class RacApi extends runtime.BaseAPI {
/**
* Creates request options for racEndpointsUsedByList without sending the request
*/
async racEndpointsUsedByListRequestOpts(requestParameters: RacEndpointsUsedByListRequest): Promise<runtime.RequestOpts> {
if (requestParameters['pbmUuid'] == null) {
async racEndpointsUsedByListRequestOpts(
requestParameters: RacEndpointsUsedByListRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["pbmUuid"] == null) {
throw new runtime.RequiredError(
'pbmUuid',
'Required parameter "pbmUuid" was null or undefined when calling racEndpointsUsedByList().'
"pbmUuid",
'Required parameter "pbmUuid" was null or undefined when calling racEndpointsUsedByList().',
);
}
@@ -852,11 +983,14 @@ export class RacApi extends runtime.BaseAPI {
}
let urlPath = `/rac/endpoints/{pbm_uuid}/used_by/`;
urlPath = urlPath.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters['pbmUuid'])));
urlPath = urlPath.replace(
`{${"pbm_uuid"}}`,
encodeURIComponent(String(requestParameters["pbmUuid"])),
);
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -865,7 +999,10 @@ export class RacApi extends runtime.BaseAPI {
/**
* Get a list of all objects that use this object
*/
async racEndpointsUsedByListRaw(requestParameters: RacEndpointsUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>> {
async racEndpointsUsedByListRaw(
requestParameters: RacEndpointsUsedByListRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<Array<UsedBy>>> {
const requestOptions = await this.racEndpointsUsedByListRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -875,9 +1012,11 @@ export class RacApi extends runtime.BaseAPI {
/**
* Get a list of all objects that use this object
*/
async racEndpointsUsedByList(requestParameters: RacEndpointsUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UsedBy>> {
async racEndpointsUsedByList(
requestParameters: RacEndpointsUsedByListRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<Array<UsedBy>> {
const response = await this.racEndpointsUsedByListRaw(requestParameters, initOverrides);
return await response.value();
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -12,24 +12,9 @@
* Do not edit the class manually.
*/
import * as runtime from '../runtime';
import type {
DataExport,
GenericError,
PaginatedDataExportList,
ValidationError,
} from '../models/index';
import {
DataExportFromJSON,
DataExportToJSON,
GenericErrorFromJSON,
GenericErrorToJSON,
PaginatedDataExportListFromJSON,
PaginatedDataExportListToJSON,
ValidationErrorFromJSON,
ValidationErrorToJSON,
} from '../models/index';
import type { DataExport, PaginatedDataExportList } from "../models/index";
import { DataExportFromJSON, PaginatedDataExportListFromJSON } from "../models/index";
import * as runtime from "../runtime";
export interface ReportsExportsDestroyRequest {
id: string;
@@ -47,18 +32,19 @@ export interface ReportsExportsRetrieveRequest {
}
/**
*
*
*/
export class ReportsApi extends runtime.BaseAPI {
/**
* Creates request options for reportsExportsDestroy without sending the request
*/
async reportsExportsDestroyRequestOpts(requestParameters: ReportsExportsDestroyRequest): Promise<runtime.RequestOpts> {
if (requestParameters['id'] == null) {
async reportsExportsDestroyRequestOpts(
requestParameters: ReportsExportsDestroyRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["id"] == null) {
throw new runtime.RequiredError(
'id',
'Required parameter "id" was null or undefined when calling reportsExportsDestroy().'
"id",
'Required parameter "id" was null or undefined when calling reportsExportsDestroy().',
);
}
@@ -76,11 +62,11 @@ export class ReportsApi extends runtime.BaseAPI {
}
let urlPath = `/reports/exports/{id}/`;
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"])));
return {
path: urlPath,
method: 'DELETE',
method: "DELETE",
headers: headerParameters,
query: queryParameters,
};
@@ -88,7 +74,10 @@ export class ReportsApi extends runtime.BaseAPI {
/**
*/
async reportsExportsDestroyRaw(requestParameters: ReportsExportsDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
async reportsExportsDestroyRaw(
requestParameters: ReportsExportsDestroyRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<void>> {
const requestOptions = await this.reportsExportsDestroyRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -97,30 +86,35 @@ export class ReportsApi extends runtime.BaseAPI {
/**
*/
async reportsExportsDestroy(requestParameters: ReportsExportsDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
async reportsExportsDestroy(
requestParameters: ReportsExportsDestroyRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<void> {
await this.reportsExportsDestroyRaw(requestParameters, initOverrides);
}
/**
* Creates request options for reportsExportsList without sending the request
*/
async reportsExportsListRequestOpts(requestParameters: ReportsExportsListRequest): Promise<runtime.RequestOpts> {
async reportsExportsListRequestOpts(
requestParameters: ReportsExportsListRequest,
): Promise<runtime.RequestOpts> {
const queryParameters: any = {};
if (requestParameters['ordering'] != null) {
queryParameters['ordering'] = requestParameters['ordering'];
if (requestParameters["ordering"] != null) {
queryParameters["ordering"] = requestParameters["ordering"];
}
if (requestParameters['page'] != null) {
queryParameters['page'] = requestParameters['page'];
if (requestParameters["page"] != null) {
queryParameters["page"] = requestParameters["page"];
}
if (requestParameters['pageSize'] != null) {
queryParameters['page_size'] = requestParameters['pageSize'];
if (requestParameters["pageSize"] != null) {
queryParameters["page_size"] = requestParameters["pageSize"];
}
if (requestParameters['search'] != null) {
queryParameters['search'] = requestParameters['search'];
if (requestParameters["search"] != null) {
queryParameters["search"] = requestParameters["search"];
}
const headerParameters: runtime.HTTPHeaders = {};
@@ -138,7 +132,7 @@ export class ReportsApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -146,16 +140,24 @@ export class ReportsApi extends runtime.BaseAPI {
/**
*/
async reportsExportsListRaw(requestParameters: ReportsExportsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedDataExportList>> {
async reportsExportsListRaw(
requestParameters: ReportsExportsListRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<PaginatedDataExportList>> {
const requestOptions = await this.reportsExportsListRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedDataExportListFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
PaginatedDataExportListFromJSON(jsonValue),
);
}
/**
*/
async reportsExportsList(requestParameters: ReportsExportsListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedDataExportList> {
async reportsExportsList(
requestParameters: ReportsExportsListRequest = {},
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<PaginatedDataExportList> {
const response = await this.reportsExportsListRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -163,11 +165,13 @@ export class ReportsApi extends runtime.BaseAPI {
/**
* Creates request options for reportsExportsRetrieve without sending the request
*/
async reportsExportsRetrieveRequestOpts(requestParameters: ReportsExportsRetrieveRequest): Promise<runtime.RequestOpts> {
if (requestParameters['id'] == null) {
async reportsExportsRetrieveRequestOpts(
requestParameters: ReportsExportsRetrieveRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["id"] == null) {
throw new runtime.RequiredError(
'id',
'Required parameter "id" was null or undefined when calling reportsExportsRetrieve().'
"id",
'Required parameter "id" was null or undefined when calling reportsExportsRetrieve().',
);
}
@@ -185,11 +189,11 @@ export class ReportsApi extends runtime.BaseAPI {
}
let urlPath = `/reports/exports/{id}/`;
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"])));
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -197,7 +201,10 @@ export class ReportsApi extends runtime.BaseAPI {
/**
*/
async reportsExportsRetrieveRaw(requestParameters: ReportsExportsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataExport>> {
async reportsExportsRetrieveRaw(
requestParameters: ReportsExportsRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<DataExport>> {
const requestOptions = await this.reportsExportsRetrieveRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -206,9 +213,11 @@ export class ReportsApi extends runtime.BaseAPI {
/**
*/
async reportsExportsRetrieve(requestParameters: ReportsExportsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataExport> {
async reportsExportsRetrieve(
requestParameters: ReportsExportsRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<DataExport> {
const response = await this.reportsExportsRetrieveRaw(requestParameters, initOverrides);
return await response.value();
}
}

View File

@@ -12,27 +12,14 @@
* Do not edit the class manually.
*/
import * as runtime from '../runtime';
import type {
Config,
GenericError,
ValidationError,
} from '../models/index';
import {
ConfigFromJSON,
ConfigToJSON,
GenericErrorFromJSON,
GenericErrorToJSON,
ValidationErrorFromJSON,
ValidationErrorToJSON,
} from '../models/index';
import type { Config } from "../models/index";
import { ConfigFromJSON } from "../models/index";
import * as runtime from "../runtime";
/**
*
*
*/
export class RootApi extends runtime.BaseAPI {
/**
* Creates request options for rootConfigRetrieve without sending the request
*/
@@ -54,7 +41,7 @@ export class RootApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -63,7 +50,9 @@ export class RootApi extends runtime.BaseAPI {
/**
* Retrieve public configuration options
*/
async rootConfigRetrieveRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Config>> {
async rootConfigRetrieveRaw(
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<Config>> {
const requestOptions = await this.rootConfigRetrieveRequestOpts();
const response = await this.request(requestOptions, initOverrides);
@@ -73,9 +62,10 @@ export class RootApi extends runtime.BaseAPI {
/**
* Retrieve public configuration options
*/
async rootConfigRetrieve(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Config> {
async rootConfigRetrieve(
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<Config> {
const response = await this.rootConfigRetrieveRaw(initOverrides);
return await response.value();
}
}

View File

@@ -12,24 +12,8 @@
* Do not edit the class manually.
*/
import * as runtime from '../runtime';
import type {
FormatEnum,
GenericError,
LangEnum,
ValidationError,
} from '../models/index';
import {
FormatEnumFromJSON,
FormatEnumToJSON,
GenericErrorFromJSON,
GenericErrorToJSON,
LangEnumFromJSON,
LangEnumToJSON,
ValidationErrorFromJSON,
ValidationErrorToJSON,
} from '../models/index';
import type { FormatEnum, LangEnum } from "../models/index";
import * as runtime from "../runtime";
export interface SchemaRetrieveRequest {
format?: FormatEnum;
@@ -37,22 +21,23 @@ export interface SchemaRetrieveRequest {
}
/**
*
*
*/
export class SchemaApi extends runtime.BaseAPI {
/**
* Creates request options for schemaRetrieve without sending the request
*/
async schemaRetrieveRequestOpts(requestParameters: SchemaRetrieveRequest): Promise<runtime.RequestOpts> {
async schemaRetrieveRequestOpts(
requestParameters: SchemaRetrieveRequest,
): Promise<runtime.RequestOpts> {
const queryParameters: any = {};
if (requestParameters['format'] != null) {
queryParameters['format'] = requestParameters['format'];
if (requestParameters["format"] != null) {
queryParameters["format"] = requestParameters["format"];
}
if (requestParameters['lang'] != null) {
queryParameters['lang'] = requestParameters['lang'];
if (requestParameters["lang"] != null) {
queryParameters["lang"] = requestParameters["lang"];
}
const headerParameters: runtime.HTTPHeaders = {};
@@ -70,7 +55,7 @@ export class SchemaApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -79,7 +64,10 @@ export class SchemaApi extends runtime.BaseAPI {
/**
* OpenApi3 schema for this API. Format can be selected via content negotiation. - YAML: application/vnd.oai.openapi - JSON: application/vnd.oai.openapi+json
*/
async schemaRetrieveRaw(requestParameters: SchemaRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{ [key: string]: any; }>> {
async schemaRetrieveRaw(
requestParameters: SchemaRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<{ [key: string]: any }>> {
const requestOptions = await this.schemaRetrieveRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -89,9 +77,11 @@ export class SchemaApi extends runtime.BaseAPI {
/**
* OpenApi3 schema for this API. Format can be selected via content negotiation. - YAML: application/vnd.oai.openapi - JSON: application/vnd.oai.openapi+json
*/
async schemaRetrieve(requestParameters: SchemaRetrieveRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: any; }> {
async schemaRetrieve(
requestParameters: SchemaRetrieveRequest = {},
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<{ [key: string]: any }> {
const response = await this.schemaRetrieveRaw(requestParameters, initOverrides);
return await response.value();
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -12,27 +12,9 @@
* Do not edit the class manually.
*/
import * as runtime from '../runtime';
import type {
DeliveryMethodEnum,
GenericError,
PaginatedSSFStreamList,
SSFStream,
ValidationError,
} from '../models/index';
import {
DeliveryMethodEnumFromJSON,
DeliveryMethodEnumToJSON,
GenericErrorFromJSON,
GenericErrorToJSON,
PaginatedSSFStreamListFromJSON,
PaginatedSSFStreamListToJSON,
SSFStreamFromJSON,
SSFStreamToJSON,
ValidationErrorFromJSON,
ValidationErrorToJSON,
} from '../models/index';
import type { DeliveryMethodEnum, PaginatedSSFStreamList, SSFStream } from "../models/index";
import { PaginatedSSFStreamListFromJSON, SSFStreamFromJSON } from "../models/index";
import * as runtime from "../runtime";
export interface SsfStreamsListRequest {
deliveryMethod?: DeliveryMethodEnum;
@@ -49,42 +31,43 @@ export interface SsfStreamsRetrieveRequest {
}
/**
*
*
*/
export class SsfApi extends runtime.BaseAPI {
/**
* Creates request options for ssfStreamsList without sending the request
*/
async ssfStreamsListRequestOpts(requestParameters: SsfStreamsListRequest): Promise<runtime.RequestOpts> {
async ssfStreamsListRequestOpts(
requestParameters: SsfStreamsListRequest,
): Promise<runtime.RequestOpts> {
const queryParameters: any = {};
if (requestParameters['deliveryMethod'] != null) {
queryParameters['delivery_method'] = requestParameters['deliveryMethod'];
if (requestParameters["deliveryMethod"] != null) {
queryParameters["delivery_method"] = requestParameters["deliveryMethod"];
}
if (requestParameters['endpointUrl'] != null) {
queryParameters['endpoint_url'] = requestParameters['endpointUrl'];
if (requestParameters["endpointUrl"] != null) {
queryParameters["endpoint_url"] = requestParameters["endpointUrl"];
}
if (requestParameters['ordering'] != null) {
queryParameters['ordering'] = requestParameters['ordering'];
if (requestParameters["ordering"] != null) {
queryParameters["ordering"] = requestParameters["ordering"];
}
if (requestParameters['page'] != null) {
queryParameters['page'] = requestParameters['page'];
if (requestParameters["page"] != null) {
queryParameters["page"] = requestParameters["page"];
}
if (requestParameters['pageSize'] != null) {
queryParameters['page_size'] = requestParameters['pageSize'];
if (requestParameters["pageSize"] != null) {
queryParameters["page_size"] = requestParameters["pageSize"];
}
if (requestParameters['provider'] != null) {
queryParameters['provider'] = requestParameters['provider'];
if (requestParameters["provider"] != null) {
queryParameters["provider"] = requestParameters["provider"];
}
if (requestParameters['search'] != null) {
queryParameters['search'] = requestParameters['search'];
if (requestParameters["search"] != null) {
queryParameters["search"] = requestParameters["search"];
}
const headerParameters: runtime.HTTPHeaders = {};
@@ -102,7 +85,7 @@ export class SsfApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -111,17 +94,25 @@ export class SsfApi extends runtime.BaseAPI {
/**
* SSFStream Viewset
*/
async ssfStreamsListRaw(requestParameters: SsfStreamsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedSSFStreamList>> {
async ssfStreamsListRaw(
requestParameters: SsfStreamsListRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<PaginatedSSFStreamList>> {
const requestOptions = await this.ssfStreamsListRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedSSFStreamListFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
PaginatedSSFStreamListFromJSON(jsonValue),
);
}
/**
* SSFStream Viewset
*/
async ssfStreamsList(requestParameters: SsfStreamsListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedSSFStreamList> {
async ssfStreamsList(
requestParameters: SsfStreamsListRequest = {},
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<PaginatedSSFStreamList> {
const response = await this.ssfStreamsListRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -129,11 +120,13 @@ export class SsfApi extends runtime.BaseAPI {
/**
* Creates request options for ssfStreamsRetrieve without sending the request
*/
async ssfStreamsRetrieveRequestOpts(requestParameters: SsfStreamsRetrieveRequest): Promise<runtime.RequestOpts> {
if (requestParameters['uuid'] == null) {
async ssfStreamsRetrieveRequestOpts(
requestParameters: SsfStreamsRetrieveRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["uuid"] == null) {
throw new runtime.RequiredError(
'uuid',
'Required parameter "uuid" was null or undefined when calling ssfStreamsRetrieve().'
"uuid",
'Required parameter "uuid" was null or undefined when calling ssfStreamsRetrieve().',
);
}
@@ -151,11 +144,14 @@ export class SsfApi extends runtime.BaseAPI {
}
let urlPath = `/ssf/streams/{uuid}/`;
urlPath = urlPath.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters['uuid'])));
urlPath = urlPath.replace(
`{${"uuid"}}`,
encodeURIComponent(String(requestParameters["uuid"])),
);
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -164,7 +160,10 @@ export class SsfApi extends runtime.BaseAPI {
/**
* SSFStream Viewset
*/
async ssfStreamsRetrieveRaw(requestParameters: SsfStreamsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SSFStream>> {
async ssfStreamsRetrieveRaw(
requestParameters: SsfStreamsRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<SSFStream>> {
const requestOptions = await this.ssfStreamsRetrieveRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -174,9 +173,11 @@ export class SsfApi extends runtime.BaseAPI {
/**
* SSFStream Viewset
*/
async ssfStreamsRetrieve(requestParameters: SsfStreamsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SSFStream> {
async ssfStreamsRetrieve(
requestParameters: SsfStreamsRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<SSFStream> {
const response = await this.ssfStreamsRetrieveRaw(requestParameters, initOverrides);
return await response.value();
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -12,48 +12,29 @@
* Do not edit the class manually.
*/
import * as runtime from '../runtime';
import type {
GenericError,
GlobalTaskStatus,
PaginatedScheduleList,
PaginatedTaskList,
PatchedScheduleRequest,
Schedule,
ScheduleRequest,
Task,
TaskAggregatedStatusEnum,
TaskStatusEnum,
ValidationError,
Worker,
} from '../models/index';
GlobalTaskStatus,
PaginatedScheduleList,
PaginatedTaskList,
PatchedScheduleRequest,
Schedule,
ScheduleRequest,
Task,
TaskAggregatedStatusEnum,
TaskStatusEnum,
Worker,
} from "../models/index";
import {
GenericErrorFromJSON,
GenericErrorToJSON,
GlobalTaskStatusFromJSON,
GlobalTaskStatusToJSON,
PaginatedScheduleListFromJSON,
PaginatedScheduleListToJSON,
PaginatedTaskListFromJSON,
PaginatedTaskListToJSON,
PatchedScheduleRequestFromJSON,
PatchedScheduleRequestToJSON,
ScheduleFromJSON,
ScheduleToJSON,
ScheduleRequestFromJSON,
ScheduleRequestToJSON,
TaskFromJSON,
TaskToJSON,
TaskAggregatedStatusEnumFromJSON,
TaskAggregatedStatusEnumToJSON,
TaskStatusEnumFromJSON,
TaskStatusEnumToJSON,
ValidationErrorFromJSON,
ValidationErrorToJSON,
WorkerFromJSON,
WorkerToJSON,
} from '../models/index';
} from "../models/index";
import * as runtime from "../runtime";
export interface TasksSchedulesListRequest {
actorName?: string;
@@ -110,54 +91,57 @@ export interface TasksTasksRetryCreateRequest {
}
/**
*
*
*/
export class TasksApi extends runtime.BaseAPI {
/**
* Creates request options for tasksSchedulesList without sending the request
*/
async tasksSchedulesListRequestOpts(requestParameters: TasksSchedulesListRequest): Promise<runtime.RequestOpts> {
async tasksSchedulesListRequestOpts(
requestParameters: TasksSchedulesListRequest,
): Promise<runtime.RequestOpts> {
const queryParameters: any = {};
if (requestParameters['actorName'] != null) {
queryParameters['actor_name'] = requestParameters['actorName'];
if (requestParameters["actorName"] != null) {
queryParameters["actor_name"] = requestParameters["actorName"];
}
if (requestParameters['ordering'] != null) {
queryParameters['ordering'] = requestParameters['ordering'];
if (requestParameters["ordering"] != null) {
queryParameters["ordering"] = requestParameters["ordering"];
}
if (requestParameters['page'] != null) {
queryParameters['page'] = requestParameters['page'];
if (requestParameters["page"] != null) {
queryParameters["page"] = requestParameters["page"];
}
if (requestParameters['pageSize'] != null) {
queryParameters['page_size'] = requestParameters['pageSize'];
if (requestParameters["pageSize"] != null) {
queryParameters["page_size"] = requestParameters["pageSize"];
}
if (requestParameters['paused'] != null) {
queryParameters['paused'] = requestParameters['paused'];
if (requestParameters["paused"] != null) {
queryParameters["paused"] = requestParameters["paused"];
}
if (requestParameters['relObjContentTypeAppLabel'] != null) {
queryParameters['rel_obj_content_type__app_label'] = requestParameters['relObjContentTypeAppLabel'];
if (requestParameters["relObjContentTypeAppLabel"] != null) {
queryParameters["rel_obj_content_type__app_label"] =
requestParameters["relObjContentTypeAppLabel"];
}
if (requestParameters['relObjContentTypeModel'] != null) {
queryParameters['rel_obj_content_type__model'] = requestParameters['relObjContentTypeModel'];
if (requestParameters["relObjContentTypeModel"] != null) {
queryParameters["rel_obj_content_type__model"] =
requestParameters["relObjContentTypeModel"];
}
if (requestParameters['relObjId'] != null) {
queryParameters['rel_obj_id'] = requestParameters['relObjId'];
if (requestParameters["relObjId"] != null) {
queryParameters["rel_obj_id"] = requestParameters["relObjId"];
}
if (requestParameters['relObjIdIsnull'] != null) {
queryParameters['rel_obj_id__isnull'] = requestParameters['relObjIdIsnull'];
if (requestParameters["relObjIdIsnull"] != null) {
queryParameters["rel_obj_id__isnull"] = requestParameters["relObjIdIsnull"];
}
if (requestParameters['search'] != null) {
queryParameters['search'] = requestParameters['search'];
if (requestParameters["search"] != null) {
queryParameters["search"] = requestParameters["search"];
}
const headerParameters: runtime.HTTPHeaders = {};
@@ -175,7 +159,7 @@ export class TasksApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -183,16 +167,24 @@ export class TasksApi extends runtime.BaseAPI {
/**
*/
async tasksSchedulesListRaw(requestParameters: TasksSchedulesListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedScheduleList>> {
async tasksSchedulesListRaw(
requestParameters: TasksSchedulesListRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<PaginatedScheduleList>> {
const requestOptions = await this.tasksSchedulesListRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedScheduleListFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
PaginatedScheduleListFromJSON(jsonValue),
);
}
/**
*/
async tasksSchedulesList(requestParameters: TasksSchedulesListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedScheduleList> {
async tasksSchedulesList(
requestParameters: TasksSchedulesListRequest = {},
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<PaginatedScheduleList> {
const response = await this.tasksSchedulesListRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -200,11 +192,13 @@ export class TasksApi extends runtime.BaseAPI {
/**
* Creates request options for tasksSchedulesPartialUpdate without sending the request
*/
async tasksSchedulesPartialUpdateRequestOpts(requestParameters: TasksSchedulesPartialUpdateRequest): Promise<runtime.RequestOpts> {
if (requestParameters['id'] == null) {
async tasksSchedulesPartialUpdateRequestOpts(
requestParameters: TasksSchedulesPartialUpdateRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["id"] == null) {
throw new runtime.RequiredError(
'id',
'Required parameter "id" was null or undefined when calling tasksSchedulesPartialUpdate().'
"id",
'Required parameter "id" was null or undefined when calling tasksSchedulesPartialUpdate().',
);
}
@@ -212,7 +206,7 @@ export class TasksApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
headerParameters['Content-Type'] = 'application/json';
headerParameters["Content-Type"] = "application/json";
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
@@ -224,20 +218,23 @@ export class TasksApi extends runtime.BaseAPI {
}
let urlPath = `/tasks/schedules/{id}/`;
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"])));
return {
path: urlPath,
method: 'PATCH',
method: "PATCH",
headers: headerParameters,
query: queryParameters,
body: PatchedScheduleRequestToJSON(requestParameters['patchedScheduleRequest']),
body: PatchedScheduleRequestToJSON(requestParameters["patchedScheduleRequest"]),
};
}
/**
*/
async tasksSchedulesPartialUpdateRaw(requestParameters: TasksSchedulesPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Schedule>> {
async tasksSchedulesPartialUpdateRaw(
requestParameters: TasksSchedulesPartialUpdateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<Schedule>> {
const requestOptions = await this.tasksSchedulesPartialUpdateRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -246,19 +243,27 @@ export class TasksApi extends runtime.BaseAPI {
/**
*/
async tasksSchedulesPartialUpdate(requestParameters: TasksSchedulesPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Schedule> {
const response = await this.tasksSchedulesPartialUpdateRaw(requestParameters, initOverrides);
async tasksSchedulesPartialUpdate(
requestParameters: TasksSchedulesPartialUpdateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<Schedule> {
const response = await this.tasksSchedulesPartialUpdateRaw(
requestParameters,
initOverrides,
);
return await response.value();
}
/**
* Creates request options for tasksSchedulesRetrieve without sending the request
*/
async tasksSchedulesRetrieveRequestOpts(requestParameters: TasksSchedulesRetrieveRequest): Promise<runtime.RequestOpts> {
if (requestParameters['id'] == null) {
async tasksSchedulesRetrieveRequestOpts(
requestParameters: TasksSchedulesRetrieveRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["id"] == null) {
throw new runtime.RequiredError(
'id',
'Required parameter "id" was null or undefined when calling tasksSchedulesRetrieve().'
"id",
'Required parameter "id" was null or undefined when calling tasksSchedulesRetrieve().',
);
}
@@ -276,11 +281,11 @@ export class TasksApi extends runtime.BaseAPI {
}
let urlPath = `/tasks/schedules/{id}/`;
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"])));
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -288,7 +293,10 @@ export class TasksApi extends runtime.BaseAPI {
/**
*/
async tasksSchedulesRetrieveRaw(requestParameters: TasksSchedulesRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Schedule>> {
async tasksSchedulesRetrieveRaw(
requestParameters: TasksSchedulesRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<Schedule>> {
const requestOptions = await this.tasksSchedulesRetrieveRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -297,7 +305,10 @@ export class TasksApi extends runtime.BaseAPI {
/**
*/
async tasksSchedulesRetrieve(requestParameters: TasksSchedulesRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Schedule> {
async tasksSchedulesRetrieve(
requestParameters: TasksSchedulesRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<Schedule> {
const response = await this.tasksSchedulesRetrieveRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -305,11 +316,13 @@ export class TasksApi extends runtime.BaseAPI {
/**
* Creates request options for tasksSchedulesSendCreate without sending the request
*/
async tasksSchedulesSendCreateRequestOpts(requestParameters: TasksSchedulesSendCreateRequest): Promise<runtime.RequestOpts> {
if (requestParameters['id'] == null) {
async tasksSchedulesSendCreateRequestOpts(
requestParameters: TasksSchedulesSendCreateRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["id"] == null) {
throw new runtime.RequiredError(
'id',
'Required parameter "id" was null or undefined when calling tasksSchedulesSendCreate().'
"id",
'Required parameter "id" was null or undefined when calling tasksSchedulesSendCreate().',
);
}
@@ -327,11 +340,11 @@ export class TasksApi extends runtime.BaseAPI {
}
let urlPath = `/tasks/schedules/{id}/send/`;
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"])));
return {
path: urlPath,
method: 'POST',
method: "POST",
headers: headerParameters,
query: queryParameters,
};
@@ -340,7 +353,10 @@ export class TasksApi extends runtime.BaseAPI {
/**
* Trigger this schedule now
*/
async tasksSchedulesSendCreateRaw(requestParameters: TasksSchedulesSendCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
async tasksSchedulesSendCreateRaw(
requestParameters: TasksSchedulesSendCreateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<void>> {
const requestOptions = await this.tasksSchedulesSendCreateRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -350,25 +366,30 @@ export class TasksApi extends runtime.BaseAPI {
/**
* Trigger this schedule now
*/
async tasksSchedulesSendCreate(requestParameters: TasksSchedulesSendCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
async tasksSchedulesSendCreate(
requestParameters: TasksSchedulesSendCreateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<void> {
await this.tasksSchedulesSendCreateRaw(requestParameters, initOverrides);
}
/**
* Creates request options for tasksSchedulesUpdate without sending the request
*/
async tasksSchedulesUpdateRequestOpts(requestParameters: TasksSchedulesUpdateRequest): Promise<runtime.RequestOpts> {
if (requestParameters['id'] == null) {
async tasksSchedulesUpdateRequestOpts(
requestParameters: TasksSchedulesUpdateRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["id"] == null) {
throw new runtime.RequiredError(
'id',
'Required parameter "id" was null or undefined when calling tasksSchedulesUpdate().'
"id",
'Required parameter "id" was null or undefined when calling tasksSchedulesUpdate().',
);
}
if (requestParameters['scheduleRequest'] == null) {
if (requestParameters["scheduleRequest"] == null) {
throw new runtime.RequiredError(
'scheduleRequest',
'Required parameter "scheduleRequest" was null or undefined when calling tasksSchedulesUpdate().'
"scheduleRequest",
'Required parameter "scheduleRequest" was null or undefined when calling tasksSchedulesUpdate().',
);
}
@@ -376,7 +397,7 @@ export class TasksApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {};
headerParameters['Content-Type'] = 'application/json';
headerParameters["Content-Type"] = "application/json";
if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
@@ -388,20 +409,23 @@ export class TasksApi extends runtime.BaseAPI {
}
let urlPath = `/tasks/schedules/{id}/`;
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"])));
return {
path: urlPath,
method: 'PUT',
method: "PUT",
headers: headerParameters,
query: queryParameters,
body: ScheduleRequestToJSON(requestParameters['scheduleRequest']),
body: ScheduleRequestToJSON(requestParameters["scheduleRequest"]),
};
}
/**
*/
async tasksSchedulesUpdateRaw(requestParameters: TasksSchedulesUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Schedule>> {
async tasksSchedulesUpdateRaw(
requestParameters: TasksSchedulesUpdateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<Schedule>> {
const requestOptions = await this.tasksSchedulesUpdateRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -410,7 +434,10 @@ export class TasksApi extends runtime.BaseAPI {
/**
*/
async tasksSchedulesUpdate(requestParameters: TasksSchedulesUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Schedule> {
async tasksSchedulesUpdate(
requestParameters: TasksSchedulesUpdateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<Schedule> {
const response = await this.tasksSchedulesUpdateRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -418,55 +445,59 @@ export class TasksApi extends runtime.BaseAPI {
/**
* Creates request options for tasksTasksList without sending the request
*/
async tasksTasksListRequestOpts(requestParameters: TasksTasksListRequest): Promise<runtime.RequestOpts> {
async tasksTasksListRequestOpts(
requestParameters: TasksTasksListRequest,
): Promise<runtime.RequestOpts> {
const queryParameters: any = {};
if (requestParameters['actorName'] != null) {
queryParameters['actor_name'] = requestParameters['actorName'];
if (requestParameters["actorName"] != null) {
queryParameters["actor_name"] = requestParameters["actorName"];
}
if (requestParameters['aggregatedStatus'] != null) {
queryParameters['aggregated_status'] = requestParameters['aggregatedStatus'];
if (requestParameters["aggregatedStatus"] != null) {
queryParameters["aggregated_status"] = requestParameters["aggregatedStatus"];
}
if (requestParameters['ordering'] != null) {
queryParameters['ordering'] = requestParameters['ordering'];
if (requestParameters["ordering"] != null) {
queryParameters["ordering"] = requestParameters["ordering"];
}
if (requestParameters['page'] != null) {
queryParameters['page'] = requestParameters['page'];
if (requestParameters["page"] != null) {
queryParameters["page"] = requestParameters["page"];
}
if (requestParameters['pageSize'] != null) {
queryParameters['page_size'] = requestParameters['pageSize'];
if (requestParameters["pageSize"] != null) {
queryParameters["page_size"] = requestParameters["pageSize"];
}
if (requestParameters['queueName'] != null) {
queryParameters['queue_name'] = requestParameters['queueName'];
if (requestParameters["queueName"] != null) {
queryParameters["queue_name"] = requestParameters["queueName"];
}
if (requestParameters['relObjContentTypeAppLabel'] != null) {
queryParameters['rel_obj_content_type__app_label'] = requestParameters['relObjContentTypeAppLabel'];
if (requestParameters["relObjContentTypeAppLabel"] != null) {
queryParameters["rel_obj_content_type__app_label"] =
requestParameters["relObjContentTypeAppLabel"];
}
if (requestParameters['relObjContentTypeModel'] != null) {
queryParameters['rel_obj_content_type__model'] = requestParameters['relObjContentTypeModel'];
if (requestParameters["relObjContentTypeModel"] != null) {
queryParameters["rel_obj_content_type__model"] =
requestParameters["relObjContentTypeModel"];
}
if (requestParameters['relObjId'] != null) {
queryParameters['rel_obj_id'] = requestParameters['relObjId'];
if (requestParameters["relObjId"] != null) {
queryParameters["rel_obj_id"] = requestParameters["relObjId"];
}
if (requestParameters['relObjIdIsnull'] != null) {
queryParameters['rel_obj_id__isnull'] = requestParameters['relObjIdIsnull'];
if (requestParameters["relObjIdIsnull"] != null) {
queryParameters["rel_obj_id__isnull"] = requestParameters["relObjIdIsnull"];
}
if (requestParameters['search'] != null) {
queryParameters['search'] = requestParameters['search'];
if (requestParameters["search"] != null) {
queryParameters["search"] = requestParameters["search"];
}
if (requestParameters['state'] != null) {
queryParameters['state'] = requestParameters['state'];
if (requestParameters["state"] != null) {
queryParameters["state"] = requestParameters["state"];
}
const headerParameters: runtime.HTTPHeaders = {};
@@ -484,7 +515,7 @@ export class TasksApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -492,16 +523,24 @@ export class TasksApi extends runtime.BaseAPI {
/**
*/
async tasksTasksListRaw(requestParameters: TasksTasksListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedTaskList>> {
async tasksTasksListRaw(
requestParameters: TasksTasksListRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<PaginatedTaskList>> {
const requestOptions = await this.tasksTasksListRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedTaskListFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
PaginatedTaskListFromJSON(jsonValue),
);
}
/**
*/
async tasksTasksList(requestParameters: TasksTasksListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedTaskList> {
async tasksTasksList(
requestParameters: TasksTasksListRequest = {},
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<PaginatedTaskList> {
const response = await this.tasksTasksListRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -509,11 +548,13 @@ export class TasksApi extends runtime.BaseAPI {
/**
* Creates request options for tasksTasksRetrieve without sending the request
*/
async tasksTasksRetrieveRequestOpts(requestParameters: TasksTasksRetrieveRequest): Promise<runtime.RequestOpts> {
if (requestParameters['messageId'] == null) {
async tasksTasksRetrieveRequestOpts(
requestParameters: TasksTasksRetrieveRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["messageId"] == null) {
throw new runtime.RequiredError(
'messageId',
'Required parameter "messageId" was null or undefined when calling tasksTasksRetrieve().'
"messageId",
'Required parameter "messageId" was null or undefined when calling tasksTasksRetrieve().',
);
}
@@ -531,11 +572,14 @@ export class TasksApi extends runtime.BaseAPI {
}
let urlPath = `/tasks/tasks/{message_id}/`;
urlPath = urlPath.replace(`{${"message_id"}}`, encodeURIComponent(String(requestParameters['messageId'])));
urlPath = urlPath.replace(
`{${"message_id"}}`,
encodeURIComponent(String(requestParameters["messageId"])),
);
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -543,7 +587,10 @@ export class TasksApi extends runtime.BaseAPI {
/**
*/
async tasksTasksRetrieveRaw(requestParameters: TasksTasksRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Task>> {
async tasksTasksRetrieveRaw(
requestParameters: TasksTasksRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<Task>> {
const requestOptions = await this.tasksTasksRetrieveRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -552,7 +599,10 @@ export class TasksApi extends runtime.BaseAPI {
/**
*/
async tasksTasksRetrieve(requestParameters: TasksTasksRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Task> {
async tasksTasksRetrieve(
requestParameters: TasksTasksRetrieveRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<Task> {
const response = await this.tasksTasksRetrieveRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -560,11 +610,13 @@ export class TasksApi extends runtime.BaseAPI {
/**
* Creates request options for tasksTasksRetryCreate without sending the request
*/
async tasksTasksRetryCreateRequestOpts(requestParameters: TasksTasksRetryCreateRequest): Promise<runtime.RequestOpts> {
if (requestParameters['messageId'] == null) {
async tasksTasksRetryCreateRequestOpts(
requestParameters: TasksTasksRetryCreateRequest,
): Promise<runtime.RequestOpts> {
if (requestParameters["messageId"] == null) {
throw new runtime.RequiredError(
'messageId',
'Required parameter "messageId" was null or undefined when calling tasksTasksRetryCreate().'
"messageId",
'Required parameter "messageId" was null or undefined when calling tasksTasksRetryCreate().',
);
}
@@ -582,11 +634,14 @@ export class TasksApi extends runtime.BaseAPI {
}
let urlPath = `/tasks/tasks/{message_id}/retry/`;
urlPath = urlPath.replace(`{${"message_id"}}`, encodeURIComponent(String(requestParameters['messageId'])));
urlPath = urlPath.replace(
`{${"message_id"}}`,
encodeURIComponent(String(requestParameters["messageId"])),
);
return {
path: urlPath,
method: 'POST',
method: "POST",
headers: headerParameters,
query: queryParameters,
};
@@ -595,7 +650,10 @@ export class TasksApi extends runtime.BaseAPI {
/**
* Retry task
*/
async tasksTasksRetryCreateRaw(requestParameters: TasksTasksRetryCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
async tasksTasksRetryCreateRaw(
requestParameters: TasksTasksRetryCreateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<void>> {
const requestOptions = await this.tasksTasksRetryCreateRequestOpts(requestParameters);
const response = await this.request(requestOptions, initOverrides);
@@ -605,7 +663,10 @@ export class TasksApi extends runtime.BaseAPI {
/**
* Retry task
*/
async tasksTasksRetryCreate(requestParameters: TasksTasksRetryCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
async tasksTasksRetryCreate(
requestParameters: TasksTasksRetryCreateRequest,
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<void> {
await this.tasksTasksRetryCreateRaw(requestParameters, initOverrides);
}
@@ -630,7 +691,7 @@ export class TasksApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -639,17 +700,23 @@ export class TasksApi extends runtime.BaseAPI {
/**
* Global status summary for all tasks
*/
async tasksTasksStatusRetrieveRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GlobalTaskStatus>> {
async tasksTasksStatusRetrieveRaw(
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<GlobalTaskStatus>> {
const requestOptions = await this.tasksTasksStatusRetrieveRequestOpts();
const response = await this.request(requestOptions, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => GlobalTaskStatusFromJSON(jsonValue));
return new runtime.JSONApiResponse(response, (jsonValue) =>
GlobalTaskStatusFromJSON(jsonValue),
);
}
/**
* Global status summary for all tasks
*/
async tasksTasksStatusRetrieve(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GlobalTaskStatus> {
async tasksTasksStatusRetrieve(
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<GlobalTaskStatus> {
const response = await this.tasksTasksStatusRetrieveRaw(initOverrides);
return await response.value();
}
@@ -675,7 +742,7 @@ export class TasksApi extends runtime.BaseAPI {
return {
path: urlPath,
method: 'GET',
method: "GET",
headers: headerParameters,
query: queryParameters,
};
@@ -684,7 +751,9 @@ export class TasksApi extends runtime.BaseAPI {
/**
* Get currently connected worker count.
*/
async tasksWorkersListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Worker>>> {
async tasksWorkersListRaw(
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<Array<Worker>>> {
const requestOptions = await this.tasksWorkersListRequestOpts();
const response = await this.request(requestOptions, initOverrides);
@@ -694,9 +763,10 @@ export class TasksApi extends runtime.BaseAPI {
/**
* Get currently connected worker count.
*/
async tasksWorkersList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Worker>> {
async tasksWorkersList(
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<Array<Worker>> {
const response = await this.tasksWorkersListRaw(initOverrides);
return await response.value();
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,27 +1,27 @@
/* tslint:disable */
/* eslint-disable */
export * from './AdminApi';
export * from './AuthenticatorsApi';
export * from './CoreApi';
export * from './CryptoApi';
export * from './EndpointsApi';
export * from './EnterpriseApi';
export * from './EventsApi';
export * from './FlowsApi';
export * from './LifecycleApi';
export * from './ManagedApi';
export * from './Oauth2Api';
export * from './OutpostsApi';
export * from './PoliciesApi';
export * from './PropertymappingsApi';
export * from './ProvidersApi';
export * from './RacApi';
export * from './RbacApi';
export * from './ReportsApi';
export * from './RootApi';
export * from './SchemaApi';
export * from './SourcesApi';
export * from './SsfApi';
export * from './StagesApi';
export * from './TasksApi';
export * from './TenantsApi';
export * from "./AdminApi";
export * from "./AuthenticatorsApi";
export * from "./CoreApi";
export * from "./CryptoApi";
export * from "./EndpointsApi";
export * from "./EnterpriseApi";
export * from "./EventsApi";
export * from "./FlowsApi";
export * from "./LifecycleApi";
export * from "./ManagedApi";
export * from "./Oauth2Api";
export * from "./OutpostsApi";
export * from "./PoliciesApi";
export * from "./PropertymappingsApi";
export * from "./ProvidersApi";
export * from "./RacApi";
export * from "./RbacApi";
export * from "./ReportsApi";
export * from "./RootApi";
export * from "./SchemaApi";
export * from "./SourcesApi";
export * from "./SsfApi";
export * from "./StagesApi";
export * from "./TasksApi";
export * from "./TenantsApi";

View File

@@ -1,5 +1,5 @@
/* tslint:disable */
/* eslint-disable */
export * from './runtime';
export * from './apis/index';
export * from './models/index';
export * from "./runtime";
export * from "./apis/index";
export * from "./models/index";

View File

@@ -12,21 +12,9 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { ErrorDetail } from './ErrorDetail';
import {
ErrorDetailFromJSON,
ErrorDetailFromJSONTyped,
ErrorDetailToJSON,
ErrorDetailToJSONTyped,
} from './ErrorDetail';
import type { ContextualFlowInfo } from './ContextualFlowInfo';
import {
ContextualFlowInfoFromJSON,
ContextualFlowInfoFromJSONTyped,
ContextualFlowInfoToJSON,
ContextualFlowInfoToJSONTyped,
} from './ContextualFlowInfo';
import type { ContextualFlowInfo } from "./ContextualFlowInfo";
import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON } from "./ContextualFlowInfo";
import type { ErrorDetail } from "./ErrorDetail";
/**
* Challenge when a flow's active stage calls `stage_invalid()`.
@@ -35,37 +23,37 @@ import {
*/
export interface AccessDeniedChallenge {
/**
*
*
* @type {ContextualFlowInfo}
* @memberof AccessDeniedChallenge
*/
flowInfo?: ContextualFlowInfo;
/**
*
*
* @type {string}
* @memberof AccessDeniedChallenge
*/
component?: string;
/**
*
*
* @type {{ [key: string]: Array<ErrorDetail>; }}
* @memberof AccessDeniedChallenge
*/
responseErrors?: { [key: string]: Array<ErrorDetail>; };
responseErrors?: { [key: string]: Array<ErrorDetail> };
/**
*
*
* @type {string}
* @memberof AccessDeniedChallenge
*/
pendingUser: string;
/**
*
*
* @type {string}
* @memberof AccessDeniedChallenge
*/
pendingUserAvatar: string;
/**
*
*
* @type {string}
* @memberof AccessDeniedChallenge
*/
@@ -76,8 +64,8 @@ export interface AccessDeniedChallenge {
* Check if a given object implements the AccessDeniedChallenge interface.
*/
export function instanceOfAccessDeniedChallenge(value: object): value is AccessDeniedChallenge {
if (!('pendingUser' in value) || value['pendingUser'] === undefined) return false;
if (!('pendingUserAvatar' in value) || value['pendingUserAvatar'] === undefined) return false;
if (!("pendingUser" in value) || value["pendingUser"] === undefined) return false;
if (!("pendingUserAvatar" in value) || value["pendingUserAvatar"] === undefined) return false;
return true;
}
@@ -85,18 +73,21 @@ export function AccessDeniedChallengeFromJSON(json: any): AccessDeniedChallenge
return AccessDeniedChallengeFromJSONTyped(json, false);
}
export function AccessDeniedChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccessDeniedChallenge {
export function AccessDeniedChallengeFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AccessDeniedChallenge {
if (json == null) {
return json;
}
return {
'flowInfo': json['flow_info'] == null ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
'component': json['component'] == null ? undefined : json['component'],
'responseErrors': json['response_errors'] == null ? undefined : json['response_errors'],
'pendingUser': json['pending_user'],
'pendingUserAvatar': json['pending_user_avatar'],
'errorMessage': json['error_message'] == null ? undefined : json['error_message'],
flowInfo:
json["flow_info"] == null ? undefined : ContextualFlowInfoFromJSON(json["flow_info"]),
component: json["component"] == null ? undefined : json["component"],
responseErrors: json["response_errors"] == null ? undefined : json["response_errors"],
pendingUser: json["pending_user"],
pendingUserAvatar: json["pending_user_avatar"],
errorMessage: json["error_message"] == null ? undefined : json["error_message"],
};
}
@@ -104,19 +95,20 @@ export function AccessDeniedChallengeToJSON(json: any): AccessDeniedChallenge {
return AccessDeniedChallengeToJSONTyped(json, false);
}
export function AccessDeniedChallengeToJSONTyped(value?: AccessDeniedChallenge | null, ignoreDiscriminator: boolean = false): any {
export function AccessDeniedChallengeToJSONTyped(
value?: AccessDeniedChallenge | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'flow_info': ContextualFlowInfoToJSON(value['flowInfo']),
'component': value['component'],
'response_errors': value['responseErrors'],
'pending_user': value['pendingUser'],
'pending_user_avatar': value['pendingUserAvatar'],
'error_message': value['errorMessage'],
flow_info: ContextualFlowInfoToJSON(value["flowInfo"]),
component: value["component"],
response_errors: value["responseErrors"],
pending_user: value["pendingUser"],
pending_user_avatar: value["pendingUserAvatar"],
error_message: value["errorMessage"],
};
}

View File

@@ -12,7 +12,6 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
* Base serializer class which doesn't implement create/update methods
* @export
@@ -20,7 +19,7 @@ import { mapValues } from '../runtime';
*/
export interface AgentAuthenticationResponse {
/**
*
*
* @type {string}
* @memberof AgentAuthenticationResponse
*/
@@ -30,8 +29,10 @@ export interface AgentAuthenticationResponse {
/**
* Check if a given object implements the AgentAuthenticationResponse interface.
*/
export function instanceOfAgentAuthenticationResponse(value: object): value is AgentAuthenticationResponse {
if (!('url' in value) || value['url'] === undefined) return false;
export function instanceOfAgentAuthenticationResponse(
value: object,
): value is AgentAuthenticationResponse {
if (!("url" in value) || value["url"] === undefined) return false;
return true;
}
@@ -39,13 +40,15 @@ export function AgentAuthenticationResponseFromJSON(json: any): AgentAuthenticat
return AgentAuthenticationResponseFromJSONTyped(json, false);
}
export function AgentAuthenticationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentAuthenticationResponse {
export function AgentAuthenticationResponseFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AgentAuthenticationResponse {
if (json == null) {
return json;
}
return {
'url': json['url'],
url: json["url"],
};
}
@@ -53,14 +56,15 @@ export function AgentAuthenticationResponseToJSON(json: any): AgentAuthenticatio
return AgentAuthenticationResponseToJSONTyped(json, false);
}
export function AgentAuthenticationResponseToJSONTyped(value?: AgentAuthenticationResponse | null, ignoreDiscriminator: boolean = false): any {
export function AgentAuthenticationResponseToJSONTyped(
value?: AgentAuthenticationResponse | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'url': value['url'],
url: value["url"],
};
}

View File

@@ -12,21 +12,10 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { LicenseStatusEnum } from './LicenseStatusEnum';
import {
LicenseStatusEnumFromJSON,
LicenseStatusEnumFromJSONTyped,
LicenseStatusEnumToJSON,
LicenseStatusEnumToJSONTyped,
} from './LicenseStatusEnum';
import type { Config } from './Config';
import {
ConfigFromJSON,
ConfigFromJSONTyped,
ConfigToJSON,
ConfigToJSONTyped,
} from './Config';
import type { Config } from "./Config";
import { ConfigFromJSON } from "./Config";
import type { LicenseStatusEnum } from "./LicenseStatusEnum";
import { LicenseStatusEnumFromJSON } from "./LicenseStatusEnum";
/**
* Base serializer class which doesn't implement create/update methods
@@ -35,83 +24,85 @@ import {
*/
export interface AgentConfig {
/**
*
*
* @type {string}
* @memberof AgentConfig
*/
readonly deviceId: string;
/**
*
*
* @type {number}
* @memberof AgentConfig
*/
readonly refreshInterval: number;
/**
*
*
* @type {string}
* @memberof AgentConfig
*/
readonly authorizationFlow: string | null;
/**
*
*
* @type {{ [key: string]: any; }}
* @memberof AgentConfig
*/
readonly jwksAuth: { [key: string]: any; };
readonly jwksAuth: { [key: string]: any };
/**
*
*
* @type {{ [key: string]: any; }}
* @memberof AgentConfig
*/
readonly jwksChallenge: { [key: string]: any; } | null;
readonly jwksChallenge: { [key: string]: any } | null;
/**
*
*
* @type {number}
* @memberof AgentConfig
*/
nssUidOffset: number;
/**
*
*
* @type {number}
* @memberof AgentConfig
*/
nssGidOffset: number;
/**
*
*
* @type {boolean}
* @memberof AgentConfig
*/
authTerminateSessionOnExpiry: boolean;
/**
*
*
* @type {Config}
* @memberof AgentConfig
*/
readonly systemConfig: Config;
/**
*
*
* @type {LicenseStatusEnum}
* @memberof AgentConfig
*/
readonly licenseStatus: LicenseStatusEnum | null;
}
/**
* Check if a given object implements the AgentConfig interface.
*/
export function instanceOfAgentConfig(value: object): value is AgentConfig {
if (!('deviceId' in value) || value['deviceId'] === undefined) return false;
if (!('refreshInterval' in value) || value['refreshInterval'] === undefined) return false;
if (!('authorizationFlow' in value) || value['authorizationFlow'] === undefined) return false;
if (!('jwksAuth' in value) || value['jwksAuth'] === undefined) return false;
if (!('jwksChallenge' in value) || value['jwksChallenge'] === undefined) return false;
if (!('nssUidOffset' in value) || value['nssUidOffset'] === undefined) return false;
if (!('nssGidOffset' in value) || value['nssGidOffset'] === undefined) return false;
if (!('authTerminateSessionOnExpiry' in value) || value['authTerminateSessionOnExpiry'] === undefined) return false;
if (!('systemConfig' in value) || value['systemConfig'] === undefined) return false;
if (!('licenseStatus' in value) || value['licenseStatus'] === undefined) return false;
if (!("deviceId" in value) || value["deviceId"] === undefined) return false;
if (!("refreshInterval" in value) || value["refreshInterval"] === undefined) return false;
if (!("authorizationFlow" in value) || value["authorizationFlow"] === undefined) return false;
if (!("jwksAuth" in value) || value["jwksAuth"] === undefined) return false;
if (!("jwksChallenge" in value) || value["jwksChallenge"] === undefined) return false;
if (!("nssUidOffset" in value) || value["nssUidOffset"] === undefined) return false;
if (!("nssGidOffset" in value) || value["nssGidOffset"] === undefined) return false;
if (
!("authTerminateSessionOnExpiry" in value) ||
value["authTerminateSessionOnExpiry"] === undefined
)
return false;
if (!("systemConfig" in value) || value["systemConfig"] === undefined) return false;
if (!("licenseStatus" in value) || value["licenseStatus"] === undefined) return false;
return true;
}
@@ -124,17 +115,16 @@ export function AgentConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean
return json;
}
return {
'deviceId': json['device_id'],
'refreshInterval': json['refresh_interval'],
'authorizationFlow': json['authorization_flow'],
'jwksAuth': json['jwks_auth'],
'jwksChallenge': json['jwks_challenge'],
'nssUidOffset': json['nss_uid_offset'],
'nssGidOffset': json['nss_gid_offset'],
'authTerminateSessionOnExpiry': json['auth_terminate_session_on_expiry'],
'systemConfig': ConfigFromJSON(json['system_config']),
'licenseStatus': LicenseStatusEnumFromJSON(json['license_status']),
deviceId: json["device_id"],
refreshInterval: json["refresh_interval"],
authorizationFlow: json["authorization_flow"],
jwksAuth: json["jwks_auth"],
jwksChallenge: json["jwks_challenge"],
nssUidOffset: json["nss_uid_offset"],
nssGidOffset: json["nss_gid_offset"],
authTerminateSessionOnExpiry: json["auth_terminate_session_on_expiry"],
systemConfig: ConfigFromJSON(json["system_config"]),
licenseStatus: LicenseStatusEnumFromJSON(json["license_status"]),
};
}
@@ -142,16 +132,26 @@ export function AgentConfigToJSON(json: any): AgentConfig {
return AgentConfigToJSONTyped(json, false);
}
export function AgentConfigToJSONTyped(value?: Omit<AgentConfig, 'device_id'|'refresh_interval'|'authorization_flow'|'jwks_auth'|'jwks_challenge'|'system_config'|'license_status'> | null, ignoreDiscriminator: boolean = false): any {
export function AgentConfigToJSONTyped(
value?: Omit<
AgentConfig,
| "device_id"
| "refresh_interval"
| "authorization_flow"
| "jwks_auth"
| "jwks_challenge"
| "system_config"
| "license_status"
> | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'nss_uid_offset': value['nssUidOffset'],
'nss_gid_offset': value['nssGidOffset'],
'auth_terminate_session_on_expiry': value['authTerminateSessionOnExpiry'],
nss_uid_offset: value["nssUidOffset"],
nss_gid_offset: value["nssGidOffset"],
auth_terminate_session_on_expiry: value["authTerminateSessionOnExpiry"],
};
}

View File

@@ -12,27 +12,26 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
*
* @export
* @interface AgentConnector
*/
export interface AgentConnector {
/**
*
*
* @type {string}
* @memberof AgentConnector
*/
connectorUuid?: string;
/**
*
*
* @type {string}
* @memberof AgentConnector
*/
name: string;
/**
*
*
* @type {boolean}
* @memberof AgentConnector
*/
@@ -62,67 +61,67 @@ export interface AgentConnector {
*/
readonly metaModelName: string;
/**
*
*
* @type {string}
* @memberof AgentConnector
*/
snapshotExpiry?: string;
/**
*
*
* @type {string}
* @memberof AgentConnector
*/
authSessionDuration?: string;
/**
*
*
* @type {boolean}
* @memberof AgentConnector
*/
authTerminateSessionOnExpiry?: boolean;
/**
*
*
* @type {string}
* @memberof AgentConnector
*/
refreshInterval?: string;
/**
*
*
* @type {string}
* @memberof AgentConnector
*/
authorizationFlow?: string | null;
/**
*
*
* @type {number}
* @memberof AgentConnector
*/
nssUidOffset?: number;
/**
*
*
* @type {number}
* @memberof AgentConnector
*/
nssGidOffset?: number;
/**
*
*
* @type {string}
* @memberof AgentConnector
*/
challengeKey?: string | null;
/**
*
*
* @type {string}
* @memberof AgentConnector
*/
challengeIdleTimeout?: string;
/**
*
*
* @type {boolean}
* @memberof AgentConnector
*/
challengeTriggerCheckIn?: boolean;
/**
*
*
* @type {Array<number>}
* @memberof AgentConnector
*/
@@ -133,11 +132,11 @@ export interface AgentConnector {
* Check if a given object implements the AgentConnector interface.
*/
export function instanceOfAgentConnector(value: object): value is AgentConnector {
if (!('name' in value) || value['name'] === undefined) return false;
if (!('component' in value) || value['component'] === undefined) return false;
if (!('verboseName' in value) || value['verboseName'] === undefined) return false;
if (!('verboseNamePlural' in value) || value['verboseNamePlural'] === undefined) return false;
if (!('metaModelName' in value) || value['metaModelName'] === undefined) return false;
if (!("name" in value) || value["name"] === undefined) return false;
if (!("component" in value) || value["component"] === undefined) return false;
if (!("verboseName" in value) || value["verboseName"] === undefined) return false;
if (!("verboseNamePlural" in value) || value["verboseNamePlural"] === undefined) return false;
if (!("metaModelName" in value) || value["metaModelName"] === undefined) return false;
return true;
}
@@ -145,30 +144,42 @@ export function AgentConnectorFromJSON(json: any): AgentConnector {
return AgentConnectorFromJSONTyped(json, false);
}
export function AgentConnectorFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentConnector {
export function AgentConnectorFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AgentConnector {
if (json == null) {
return json;
}
return {
'connectorUuid': json['connector_uuid'] == null ? undefined : json['connector_uuid'],
'name': json['name'],
'enabled': json['enabled'] == null ? undefined : json['enabled'],
'component': json['component'],
'verboseName': json['verbose_name'],
'verboseNamePlural': json['verbose_name_plural'],
'metaModelName': json['meta_model_name'],
'snapshotExpiry': json['snapshot_expiry'] == null ? undefined : json['snapshot_expiry'],
'authSessionDuration': json['auth_session_duration'] == null ? undefined : json['auth_session_duration'],
'authTerminateSessionOnExpiry': json['auth_terminate_session_on_expiry'] == null ? undefined : json['auth_terminate_session_on_expiry'],
'refreshInterval': json['refresh_interval'] == null ? undefined : json['refresh_interval'],
'authorizationFlow': json['authorization_flow'] == null ? undefined : json['authorization_flow'],
'nssUidOffset': json['nss_uid_offset'] == null ? undefined : json['nss_uid_offset'],
'nssGidOffset': json['nss_gid_offset'] == null ? undefined : json['nss_gid_offset'],
'challengeKey': json['challenge_key'] == null ? undefined : json['challenge_key'],
'challengeIdleTimeout': json['challenge_idle_timeout'] == null ? undefined : json['challenge_idle_timeout'],
'challengeTriggerCheckIn': json['challenge_trigger_check_in'] == null ? undefined : json['challenge_trigger_check_in'],
'jwtFederationProviders': json['jwt_federation_providers'] == null ? undefined : json['jwt_federation_providers'],
connectorUuid: json["connector_uuid"] == null ? undefined : json["connector_uuid"],
name: json["name"],
enabled: json["enabled"] == null ? undefined : json["enabled"],
component: json["component"],
verboseName: json["verbose_name"],
verboseNamePlural: json["verbose_name_plural"],
metaModelName: json["meta_model_name"],
snapshotExpiry: json["snapshot_expiry"] == null ? undefined : json["snapshot_expiry"],
authSessionDuration:
json["auth_session_duration"] == null ? undefined : json["auth_session_duration"],
authTerminateSessionOnExpiry:
json["auth_terminate_session_on_expiry"] == null
? undefined
: json["auth_terminate_session_on_expiry"],
refreshInterval: json["refresh_interval"] == null ? undefined : json["refresh_interval"],
authorizationFlow:
json["authorization_flow"] == null ? undefined : json["authorization_flow"],
nssUidOffset: json["nss_uid_offset"] == null ? undefined : json["nss_uid_offset"],
nssGidOffset: json["nss_gid_offset"] == null ? undefined : json["nss_gid_offset"],
challengeKey: json["challenge_key"] == null ? undefined : json["challenge_key"],
challengeIdleTimeout:
json["challenge_idle_timeout"] == null ? undefined : json["challenge_idle_timeout"],
challengeTriggerCheckIn:
json["challenge_trigger_check_in"] == null
? undefined
: json["challenge_trigger_check_in"],
jwtFederationProviders:
json["jwt_federation_providers"] == null ? undefined : json["jwt_federation_providers"],
};
}
@@ -176,27 +187,31 @@ export function AgentConnectorToJSON(json: any): AgentConnector {
return AgentConnectorToJSONTyped(json, false);
}
export function AgentConnectorToJSONTyped(value?: Omit<AgentConnector, 'component'|'verbose_name'|'verbose_name_plural'|'meta_model_name'> | null, ignoreDiscriminator: boolean = false): any {
export function AgentConnectorToJSONTyped(
value?: Omit<
AgentConnector,
"component" | "verbose_name" | "verbose_name_plural" | "meta_model_name"
> | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'connector_uuid': value['connectorUuid'],
'name': value['name'],
'enabled': value['enabled'],
'snapshot_expiry': value['snapshotExpiry'],
'auth_session_duration': value['authSessionDuration'],
'auth_terminate_session_on_expiry': value['authTerminateSessionOnExpiry'],
'refresh_interval': value['refreshInterval'],
'authorization_flow': value['authorizationFlow'],
'nss_uid_offset': value['nssUidOffset'],
'nss_gid_offset': value['nssGidOffset'],
'challenge_key': value['challengeKey'],
'challenge_idle_timeout': value['challengeIdleTimeout'],
'challenge_trigger_check_in': value['challengeTriggerCheckIn'],
'jwt_federation_providers': value['jwtFederationProviders'],
connector_uuid: value["connectorUuid"],
name: value["name"],
enabled: value["enabled"],
snapshot_expiry: value["snapshotExpiry"],
auth_session_duration: value["authSessionDuration"],
auth_terminate_session_on_expiry: value["authTerminateSessionOnExpiry"],
refresh_interval: value["refreshInterval"],
authorization_flow: value["authorizationFlow"],
nss_uid_offset: value["nssUidOffset"],
nss_gid_offset: value["nssGidOffset"],
challenge_key: value["challengeKey"],
challenge_idle_timeout: value["challengeIdleTimeout"],
challenge_trigger_check_in: value["challengeTriggerCheckIn"],
jwt_federation_providers: value["jwtFederationProviders"],
};
}

View File

@@ -12,93 +12,92 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
*
* @export
* @interface AgentConnectorRequest
*/
export interface AgentConnectorRequest {
/**
*
*
* @type {string}
* @memberof AgentConnectorRequest
*/
connectorUuid?: string;
/**
*
*
* @type {string}
* @memberof AgentConnectorRequest
*/
name: string;
/**
*
*
* @type {boolean}
* @memberof AgentConnectorRequest
*/
enabled?: boolean;
/**
*
*
* @type {string}
* @memberof AgentConnectorRequest
*/
snapshotExpiry?: string;
/**
*
*
* @type {string}
* @memberof AgentConnectorRequest
*/
authSessionDuration?: string;
/**
*
*
* @type {boolean}
* @memberof AgentConnectorRequest
*/
authTerminateSessionOnExpiry?: boolean;
/**
*
*
* @type {string}
* @memberof AgentConnectorRequest
*/
refreshInterval?: string;
/**
*
*
* @type {string}
* @memberof AgentConnectorRequest
*/
authorizationFlow?: string | null;
/**
*
*
* @type {number}
* @memberof AgentConnectorRequest
*/
nssUidOffset?: number;
/**
*
*
* @type {number}
* @memberof AgentConnectorRequest
*/
nssGidOffset?: number;
/**
*
*
* @type {string}
* @memberof AgentConnectorRequest
*/
challengeKey?: string | null;
/**
*
*
* @type {string}
* @memberof AgentConnectorRequest
*/
challengeIdleTimeout?: string;
/**
*
*
* @type {boolean}
* @memberof AgentConnectorRequest
*/
challengeTriggerCheckIn?: boolean;
/**
*
*
* @type {Array<number>}
* @memberof AgentConnectorRequest
*/
@@ -109,7 +108,7 @@ export interface AgentConnectorRequest {
* Check if a given object implements the AgentConnectorRequest interface.
*/
export function instanceOfAgentConnectorRequest(value: object): value is AgentConnectorRequest {
if (!('name' in value) || value['name'] === undefined) return false;
if (!("name" in value) || value["name"] === undefined) return false;
return true;
}
@@ -117,26 +116,38 @@ export function AgentConnectorRequestFromJSON(json: any): AgentConnectorRequest
return AgentConnectorRequestFromJSONTyped(json, false);
}
export function AgentConnectorRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentConnectorRequest {
export function AgentConnectorRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AgentConnectorRequest {
if (json == null) {
return json;
}
return {
'connectorUuid': json['connector_uuid'] == null ? undefined : json['connector_uuid'],
'name': json['name'],
'enabled': json['enabled'] == null ? undefined : json['enabled'],
'snapshotExpiry': json['snapshot_expiry'] == null ? undefined : json['snapshot_expiry'],
'authSessionDuration': json['auth_session_duration'] == null ? undefined : json['auth_session_duration'],
'authTerminateSessionOnExpiry': json['auth_terminate_session_on_expiry'] == null ? undefined : json['auth_terminate_session_on_expiry'],
'refreshInterval': json['refresh_interval'] == null ? undefined : json['refresh_interval'],
'authorizationFlow': json['authorization_flow'] == null ? undefined : json['authorization_flow'],
'nssUidOffset': json['nss_uid_offset'] == null ? undefined : json['nss_uid_offset'],
'nssGidOffset': json['nss_gid_offset'] == null ? undefined : json['nss_gid_offset'],
'challengeKey': json['challenge_key'] == null ? undefined : json['challenge_key'],
'challengeIdleTimeout': json['challenge_idle_timeout'] == null ? undefined : json['challenge_idle_timeout'],
'challengeTriggerCheckIn': json['challenge_trigger_check_in'] == null ? undefined : json['challenge_trigger_check_in'],
'jwtFederationProviders': json['jwt_federation_providers'] == null ? undefined : json['jwt_federation_providers'],
connectorUuid: json["connector_uuid"] == null ? undefined : json["connector_uuid"],
name: json["name"],
enabled: json["enabled"] == null ? undefined : json["enabled"],
snapshotExpiry: json["snapshot_expiry"] == null ? undefined : json["snapshot_expiry"],
authSessionDuration:
json["auth_session_duration"] == null ? undefined : json["auth_session_duration"],
authTerminateSessionOnExpiry:
json["auth_terminate_session_on_expiry"] == null
? undefined
: json["auth_terminate_session_on_expiry"],
refreshInterval: json["refresh_interval"] == null ? undefined : json["refresh_interval"],
authorizationFlow:
json["authorization_flow"] == null ? undefined : json["authorization_flow"],
nssUidOffset: json["nss_uid_offset"] == null ? undefined : json["nss_uid_offset"],
nssGidOffset: json["nss_gid_offset"] == null ? undefined : json["nss_gid_offset"],
challengeKey: json["challenge_key"] == null ? undefined : json["challenge_key"],
challengeIdleTimeout:
json["challenge_idle_timeout"] == null ? undefined : json["challenge_idle_timeout"],
challengeTriggerCheckIn:
json["challenge_trigger_check_in"] == null
? undefined
: json["challenge_trigger_check_in"],
jwtFederationProviders:
json["jwt_federation_providers"] == null ? undefined : json["jwt_federation_providers"],
};
}
@@ -144,27 +155,28 @@ export function AgentConnectorRequestToJSON(json: any): AgentConnectorRequest {
return AgentConnectorRequestToJSONTyped(json, false);
}
export function AgentConnectorRequestToJSONTyped(value?: AgentConnectorRequest | null, ignoreDiscriminator: boolean = false): any {
export function AgentConnectorRequestToJSONTyped(
value?: AgentConnectorRequest | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'connector_uuid': value['connectorUuid'],
'name': value['name'],
'enabled': value['enabled'],
'snapshot_expiry': value['snapshotExpiry'],
'auth_session_duration': value['authSessionDuration'],
'auth_terminate_session_on_expiry': value['authTerminateSessionOnExpiry'],
'refresh_interval': value['refreshInterval'],
'authorization_flow': value['authorizationFlow'],
'nss_uid_offset': value['nssUidOffset'],
'nss_gid_offset': value['nssGidOffset'],
'challenge_key': value['challengeKey'],
'challenge_idle_timeout': value['challengeIdleTimeout'],
'challenge_trigger_check_in': value['challengeTriggerCheckIn'],
'jwt_federation_providers': value['jwtFederationProviders'],
connector_uuid: value["connectorUuid"],
name: value["name"],
enabled: value["enabled"],
snapshot_expiry: value["snapshotExpiry"],
auth_session_duration: value["authSessionDuration"],
auth_terminate_session_on_expiry: value["authTerminateSessionOnExpiry"],
refresh_interval: value["refreshInterval"],
authorization_flow: value["authorizationFlow"],
nss_uid_offset: value["nssUidOffset"],
nss_gid_offset: value["nssGidOffset"],
challenge_key: value["challengeKey"],
challenge_idle_timeout: value["challengeIdleTimeout"],
challenge_trigger_check_in: value["challengeTriggerCheckIn"],
jwt_federation_providers: value["jwtFederationProviders"],
};
}

View File

@@ -12,7 +12,6 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
* Register Apple device via Platform SSO
* @export
@@ -20,25 +19,25 @@ import { mapValues } from '../runtime';
*/
export interface AgentPSSODeviceRegistrationRequest {
/**
*
*
* @type {string}
* @memberof AgentPSSODeviceRegistrationRequest
*/
deviceSigningKey: string;
/**
*
*
* @type {string}
* @memberof AgentPSSODeviceRegistrationRequest
*/
deviceEncryptionKey: string;
/**
*
*
* @type {string}
* @memberof AgentPSSODeviceRegistrationRequest
*/
signKeyId: string;
/**
*
*
* @type {string}
* @memberof AgentPSSODeviceRegistrationRequest
*/
@@ -48,46 +47,56 @@ export interface AgentPSSODeviceRegistrationRequest {
/**
* Check if a given object implements the AgentPSSODeviceRegistrationRequest interface.
*/
export function instanceOfAgentPSSODeviceRegistrationRequest(value: object): value is AgentPSSODeviceRegistrationRequest {
if (!('deviceSigningKey' in value) || value['deviceSigningKey'] === undefined) return false;
if (!('deviceEncryptionKey' in value) || value['deviceEncryptionKey'] === undefined) return false;
if (!('signKeyId' in value) || value['signKeyId'] === undefined) return false;
if (!('encKeyId' in value) || value['encKeyId'] === undefined) return false;
export function instanceOfAgentPSSODeviceRegistrationRequest(
value: object,
): value is AgentPSSODeviceRegistrationRequest {
if (!("deviceSigningKey" in value) || value["deviceSigningKey"] === undefined) return false;
if (!("deviceEncryptionKey" in value) || value["deviceEncryptionKey"] === undefined)
return false;
if (!("signKeyId" in value) || value["signKeyId"] === undefined) return false;
if (!("encKeyId" in value) || value["encKeyId"] === undefined) return false;
return true;
}
export function AgentPSSODeviceRegistrationRequestFromJSON(json: any): AgentPSSODeviceRegistrationRequest {
export function AgentPSSODeviceRegistrationRequestFromJSON(
json: any,
): AgentPSSODeviceRegistrationRequest {
return AgentPSSODeviceRegistrationRequestFromJSONTyped(json, false);
}
export function AgentPSSODeviceRegistrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentPSSODeviceRegistrationRequest {
export function AgentPSSODeviceRegistrationRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AgentPSSODeviceRegistrationRequest {
if (json == null) {
return json;
}
return {
'deviceSigningKey': json['device_signing_key'],
'deviceEncryptionKey': json['device_encryption_key'],
'signKeyId': json['sign_key_id'],
'encKeyId': json['enc_key_id'],
deviceSigningKey: json["device_signing_key"],
deviceEncryptionKey: json["device_encryption_key"],
signKeyId: json["sign_key_id"],
encKeyId: json["enc_key_id"],
};
}
export function AgentPSSODeviceRegistrationRequestToJSON(json: any): AgentPSSODeviceRegistrationRequest {
export function AgentPSSODeviceRegistrationRequestToJSON(
json: any,
): AgentPSSODeviceRegistrationRequest {
return AgentPSSODeviceRegistrationRequestToJSONTyped(json, false);
}
export function AgentPSSODeviceRegistrationRequestToJSONTyped(value?: AgentPSSODeviceRegistrationRequest | null, ignoreDiscriminator: boolean = false): any {
export function AgentPSSODeviceRegistrationRequestToJSONTyped(
value?: AgentPSSODeviceRegistrationRequest | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'device_signing_key': value['deviceSigningKey'],
'device_encryption_key': value['deviceEncryptionKey'],
'sign_key_id': value['signKeyId'],
'enc_key_id': value['encKeyId'],
device_signing_key: value["deviceSigningKey"],
device_encryption_key: value["deviceEncryptionKey"],
sign_key_id: value["signKeyId"],
enc_key_id: value["encKeyId"],
};
}

View File

@@ -12,7 +12,6 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
* authentik settings for Platform SSO tokens
* @export
@@ -20,37 +19,37 @@ import { mapValues } from '../runtime';
*/
export interface AgentPSSODeviceRegistrationResponse {
/**
*
*
* @type {string}
* @memberof AgentPSSODeviceRegistrationResponse
*/
clientId: string;
/**
*
*
* @type {string}
* @memberof AgentPSSODeviceRegistrationResponse
*/
issuer: string;
/**
*
*
* @type {string}
* @memberof AgentPSSODeviceRegistrationResponse
*/
tokenEndpoint: string;
/**
*
*
* @type {string}
* @memberof AgentPSSODeviceRegistrationResponse
*/
jwksEndpoint: string;
/**
*
*
* @type {string}
* @memberof AgentPSSODeviceRegistrationResponse
*/
audience: string;
/**
*
*
* @type {string}
* @memberof AgentPSSODeviceRegistrationResponse
*/
@@ -60,52 +59,61 @@ export interface AgentPSSODeviceRegistrationResponse {
/**
* Check if a given object implements the AgentPSSODeviceRegistrationResponse interface.
*/
export function instanceOfAgentPSSODeviceRegistrationResponse(value: object): value is AgentPSSODeviceRegistrationResponse {
if (!('clientId' in value) || value['clientId'] === undefined) return false;
if (!('issuer' in value) || value['issuer'] === undefined) return false;
if (!('tokenEndpoint' in value) || value['tokenEndpoint'] === undefined) return false;
if (!('jwksEndpoint' in value) || value['jwksEndpoint'] === undefined) return false;
if (!('audience' in value) || value['audience'] === undefined) return false;
if (!('nonceEndpoint' in value) || value['nonceEndpoint'] === undefined) return false;
export function instanceOfAgentPSSODeviceRegistrationResponse(
value: object,
): value is AgentPSSODeviceRegistrationResponse {
if (!("clientId" in value) || value["clientId"] === undefined) return false;
if (!("issuer" in value) || value["issuer"] === undefined) return false;
if (!("tokenEndpoint" in value) || value["tokenEndpoint"] === undefined) return false;
if (!("jwksEndpoint" in value) || value["jwksEndpoint"] === undefined) return false;
if (!("audience" in value) || value["audience"] === undefined) return false;
if (!("nonceEndpoint" in value) || value["nonceEndpoint"] === undefined) return false;
return true;
}
export function AgentPSSODeviceRegistrationResponseFromJSON(json: any): AgentPSSODeviceRegistrationResponse {
export function AgentPSSODeviceRegistrationResponseFromJSON(
json: any,
): AgentPSSODeviceRegistrationResponse {
return AgentPSSODeviceRegistrationResponseFromJSONTyped(json, false);
}
export function AgentPSSODeviceRegistrationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentPSSODeviceRegistrationResponse {
export function AgentPSSODeviceRegistrationResponseFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AgentPSSODeviceRegistrationResponse {
if (json == null) {
return json;
}
return {
'clientId': json['client_id'],
'issuer': json['issuer'],
'tokenEndpoint': json['token_endpoint'],
'jwksEndpoint': json['jwks_endpoint'],
'audience': json['audience'],
'nonceEndpoint': json['nonce_endpoint'],
clientId: json["client_id"],
issuer: json["issuer"],
tokenEndpoint: json["token_endpoint"],
jwksEndpoint: json["jwks_endpoint"],
audience: json["audience"],
nonceEndpoint: json["nonce_endpoint"],
};
}
export function AgentPSSODeviceRegistrationResponseToJSON(json: any): AgentPSSODeviceRegistrationResponse {
export function AgentPSSODeviceRegistrationResponseToJSON(
json: any,
): AgentPSSODeviceRegistrationResponse {
return AgentPSSODeviceRegistrationResponseToJSONTyped(json, false);
}
export function AgentPSSODeviceRegistrationResponseToJSONTyped(value?: AgentPSSODeviceRegistrationResponse | null, ignoreDiscriminator: boolean = false): any {
export function AgentPSSODeviceRegistrationResponseToJSONTyped(
value?: AgentPSSODeviceRegistrationResponse | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'client_id': value['clientId'],
'issuer': value['issuer'],
'token_endpoint': value['tokenEndpoint'],
'jwks_endpoint': value['jwksEndpoint'],
'audience': value['audience'],
'nonce_endpoint': value['nonceEndpoint'],
client_id: value["clientId"],
issuer: value["issuer"],
token_endpoint: value["tokenEndpoint"],
jwks_endpoint: value["jwksEndpoint"],
audience: value["audience"],
nonce_endpoint: value["nonceEndpoint"],
};
}

View File

@@ -12,7 +12,6 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
* Register Apple device user via Platform SSO
* @export
@@ -20,19 +19,19 @@ import { mapValues } from '../runtime';
*/
export interface AgentPSSOUserRegistrationRequest {
/**
*
*
* @type {string}
* @memberof AgentPSSOUserRegistrationRequest
*/
userAuth: string;
/**
*
*
* @type {string}
* @memberof AgentPSSOUserRegistrationRequest
*/
userSecureEnclaveKey: string;
/**
*
*
* @type {string}
* @memberof AgentPSSOUserRegistrationRequest
*/
@@ -42,43 +41,53 @@ export interface AgentPSSOUserRegistrationRequest {
/**
* Check if a given object implements the AgentPSSOUserRegistrationRequest interface.
*/
export function instanceOfAgentPSSOUserRegistrationRequest(value: object): value is AgentPSSOUserRegistrationRequest {
if (!('userAuth' in value) || value['userAuth'] === undefined) return false;
if (!('userSecureEnclaveKey' in value) || value['userSecureEnclaveKey'] === undefined) return false;
if (!('enclaveKeyId' in value) || value['enclaveKeyId'] === undefined) return false;
export function instanceOfAgentPSSOUserRegistrationRequest(
value: object,
): value is AgentPSSOUserRegistrationRequest {
if (!("userAuth" in value) || value["userAuth"] === undefined) return false;
if (!("userSecureEnclaveKey" in value) || value["userSecureEnclaveKey"] === undefined)
return false;
if (!("enclaveKeyId" in value) || value["enclaveKeyId"] === undefined) return false;
return true;
}
export function AgentPSSOUserRegistrationRequestFromJSON(json: any): AgentPSSOUserRegistrationRequest {
export function AgentPSSOUserRegistrationRequestFromJSON(
json: any,
): AgentPSSOUserRegistrationRequest {
return AgentPSSOUserRegistrationRequestFromJSONTyped(json, false);
}
export function AgentPSSOUserRegistrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentPSSOUserRegistrationRequest {
export function AgentPSSOUserRegistrationRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AgentPSSOUserRegistrationRequest {
if (json == null) {
return json;
}
return {
'userAuth': json['user_auth'],
'userSecureEnclaveKey': json['user_secure_enclave_key'],
'enclaveKeyId': json['enclave_key_id'],
userAuth: json["user_auth"],
userSecureEnclaveKey: json["user_secure_enclave_key"],
enclaveKeyId: json["enclave_key_id"],
};
}
export function AgentPSSOUserRegistrationRequestToJSON(json: any): AgentPSSOUserRegistrationRequest {
export function AgentPSSOUserRegistrationRequestToJSON(
json: any,
): AgentPSSOUserRegistrationRequest {
return AgentPSSOUserRegistrationRequestToJSONTyped(json, false);
}
export function AgentPSSOUserRegistrationRequestToJSONTyped(value?: AgentPSSOUserRegistrationRequest | null, ignoreDiscriminator: boolean = false): any {
export function AgentPSSOUserRegistrationRequestToJSONTyped(
value?: AgentPSSOUserRegistrationRequest | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'user_auth': value['userAuth'],
'user_secure_enclave_key': value['userSecureEnclaveKey'],
'enclave_key_id': value['enclaveKeyId'],
user_auth: value["userAuth"],
user_secure_enclave_key: value["userSecureEnclaveKey"],
enclave_key_id: value["enclaveKeyId"],
};
}

View File

@@ -12,7 +12,6 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
* Base serializer class which doesn't implement create/update methods
* @export
@@ -20,13 +19,13 @@ import { mapValues } from '../runtime';
*/
export interface AgentTokenResponse {
/**
*
*
* @type {string}
* @memberof AgentTokenResponse
*/
token: string;
/**
*
*
* @type {number}
* @memberof AgentTokenResponse
*/
@@ -37,7 +36,7 @@ export interface AgentTokenResponse {
* Check if a given object implements the AgentTokenResponse interface.
*/
export function instanceOfAgentTokenResponse(value: object): value is AgentTokenResponse {
if (!('token' in value) || value['token'] === undefined) return false;
if (!("token" in value) || value["token"] === undefined) return false;
return true;
}
@@ -45,14 +44,16 @@ export function AgentTokenResponseFromJSON(json: any): AgentTokenResponse {
return AgentTokenResponseFromJSONTyped(json, false);
}
export function AgentTokenResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentTokenResponse {
export function AgentTokenResponseFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AgentTokenResponse {
if (json == null) {
return json;
}
return {
'token': json['token'],
'expiresIn': json['expires_in'] == null ? undefined : json['expires_in'],
token: json["token"],
expiresIn: json["expires_in"] == null ? undefined : json["expires_in"],
};
}
@@ -60,15 +61,16 @@ export function AgentTokenResponseToJSON(json: any): AgentTokenResponse {
return AgentTokenResponseToJSONTyped(json, false);
}
export function AgentTokenResponseToJSONTyped(value?: AgentTokenResponse | null, ignoreDiscriminator: boolean = false): any {
export function AgentTokenResponseToJSONTyped(
value?: AgentTokenResponse | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'token': value['token'],
'expires_in': value['expiresIn'],
token: value["token"],
expires_in: value["expiresIn"],
};
}

View File

@@ -12,20 +12,18 @@
* Do not edit the class manually.
*/
/**
*
*
* @export
*/
export const AlgEnum = {
Rsa: 'rsa',
Ecdsa: 'ecdsa',
Ed25519: 'ed25519',
Ed448: 'ed448',
UnknownDefaultOpenApi: '11184809'
Rsa: "rsa",
Ecdsa: "ecdsa",
Ed25519: "ed25519",
Ed448: "ed448",
UnknownDefaultOpenApi: "11184809",
} as const;
export type AlgEnum = typeof AlgEnum[keyof typeof AlgEnum];
export type AlgEnum = (typeof AlgEnum)[keyof typeof AlgEnum];
export function instanceOfAlgEnum(value: any): boolean {
for (const key in AlgEnum) {
@@ -53,4 +51,3 @@ export function AlgEnumToJSON(value?: AlgEnum | null): any {
export function AlgEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AlgEnum {
return value as AlgEnum;
}

View File

@@ -12,7 +12,6 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
* Serialize Application info
* @export
@@ -20,13 +19,13 @@ import { mapValues } from '../runtime';
*/
export interface App {
/**
*
*
* @type {string}
* @memberof App
*/
name: string;
/**
*
*
* @type {string}
* @memberof App
*/
@@ -37,8 +36,8 @@ export interface App {
* Check if a given object implements the App interface.
*/
export function instanceOfApp(value: object): value is App {
if (!('name' in value) || value['name'] === undefined) return false;
if (!('label' in value) || value['label'] === undefined) return false;
if (!("name" in value) || value["name"] === undefined) return false;
if (!("label" in value) || value["label"] === undefined) return false;
return true;
}
@@ -51,9 +50,8 @@ export function AppFromJSONTyped(json: any, ignoreDiscriminator: boolean): App {
return json;
}
return {
'name': json['name'],
'label': json['label'],
name: json["name"],
label: json["label"],
};
}
@@ -67,9 +65,7 @@ export function AppToJSONTyped(value?: App | null, ignoreDiscriminator: boolean
}
return {
'name': value['name'],
'label': value['label'],
name: value["name"],
label: value["label"],
};
}

View File

@@ -12,96 +12,96 @@
* Do not edit the class manually.
*/
/**
*
*
* @export
*/
export const AppEnum = {
AuthentikCommands: 'authentik.commands',
AuthentikTenants: 'authentik.tenants',
AuthentikTasks: 'authentik.tasks',
AuthentikAdmin: 'authentik.admin',
AuthentikApi: 'authentik.api',
AuthentikCore: 'authentik.core',
AuthentikCrypto: 'authentik.crypto',
AuthentikEndpoints: 'authentik.endpoints',
AuthentikEndpointsConnectorsAgent: 'authentik.endpoints.connectors.agent',
AuthentikEnterprise: 'authentik.enterprise',
AuthentikEvents: 'authentik.events',
AuthentikAdminFiles: 'authentik.admin.files',
AuthentikFlows: 'authentik.flows',
AuthentikOutposts: 'authentik.outposts',
AuthentikPoliciesDummy: 'authentik.policies.dummy',
AuthentikPoliciesEventMatcher: 'authentik.policies.event_matcher',
AuthentikPoliciesExpiry: 'authentik.policies.expiry',
AuthentikPoliciesExpression: 'authentik.policies.expression',
AuthentikPoliciesGeoip: 'authentik.policies.geoip',
AuthentikPoliciesPassword: 'authentik.policies.password',
AuthentikPoliciesReputation: 'authentik.policies.reputation',
AuthentikPolicies: 'authentik.policies',
AuthentikProvidersLdap: 'authentik.providers.ldap',
AuthentikProvidersOauth2: 'authentik.providers.oauth2',
AuthentikProvidersProxy: 'authentik.providers.proxy',
AuthentikProvidersRac: 'authentik.providers.rac',
AuthentikProvidersRadius: 'authentik.providers.radius',
AuthentikProvidersSaml: 'authentik.providers.saml',
AuthentikProvidersScim: 'authentik.providers.scim',
AuthentikRbac: 'authentik.rbac',
AuthentikRecovery: 'authentik.recovery',
AuthentikSourcesKerberos: 'authentik.sources.kerberos',
AuthentikSourcesLdap: 'authentik.sources.ldap',
AuthentikSourcesOauth: 'authentik.sources.oauth',
AuthentikSourcesPlex: 'authentik.sources.plex',
AuthentikSourcesSaml: 'authentik.sources.saml',
AuthentikSourcesScim: 'authentik.sources.scim',
AuthentikSourcesTelegram: 'authentik.sources.telegram',
AuthentikStagesAuthenticator: 'authentik.stages.authenticator',
AuthentikStagesAuthenticatorDuo: 'authentik.stages.authenticator_duo',
AuthentikStagesAuthenticatorEmail: 'authentik.stages.authenticator_email',
AuthentikStagesAuthenticatorSms: 'authentik.stages.authenticator_sms',
AuthentikStagesAuthenticatorStatic: 'authentik.stages.authenticator_static',
AuthentikStagesAuthenticatorTotp: 'authentik.stages.authenticator_totp',
AuthentikStagesAuthenticatorValidate: 'authentik.stages.authenticator_validate',
AuthentikStagesAuthenticatorWebauthn: 'authentik.stages.authenticator_webauthn',
AuthentikStagesCaptcha: 'authentik.stages.captcha',
AuthentikStagesConsent: 'authentik.stages.consent',
AuthentikStagesDeny: 'authentik.stages.deny',
AuthentikStagesDummy: 'authentik.stages.dummy',
AuthentikStagesEmail: 'authentik.stages.email',
AuthentikStagesIdentification: 'authentik.stages.identification',
AuthentikStagesInvitation: 'authentik.stages.invitation',
AuthentikStagesPassword: 'authentik.stages.password',
AuthentikStagesPrompt: 'authentik.stages.prompt',
AuthentikStagesRedirect: 'authentik.stages.redirect',
AuthentikStagesUserDelete: 'authentik.stages.user_delete',
AuthentikStagesUserLogin: 'authentik.stages.user_login',
AuthentikStagesUserLogout: 'authentik.stages.user_logout',
AuthentikStagesUserWrite: 'authentik.stages.user_write',
AuthentikTasksSchedules: 'authentik.tasks.schedules',
AuthentikBrands: 'authentik.brands',
AuthentikBlueprints: 'authentik.blueprints',
AuthentikEnterpriseAudit: 'authentik.enterprise.audit',
AuthentikEnterpriseEndpointsConnectorsAgent: 'authentik.enterprise.endpoints.connectors.agent',
AuthentikEnterpriseEndpointsConnectorsFleet: 'authentik.enterprise.endpoints.connectors.fleet',
AuthentikEnterpriseEndpointsConnectorsGoogleChrome: 'authentik.enterprise.endpoints.connectors.google_chrome',
AuthentikEnterpriseLifecycle: 'authentik.enterprise.lifecycle',
AuthentikEnterprisePoliciesUniquePassword: 'authentik.enterprise.policies.unique_password',
AuthentikEnterpriseProvidersGoogleWorkspace: 'authentik.enterprise.providers.google_workspace',
AuthentikEnterpriseProvidersMicrosoftEntra: 'authentik.enterprise.providers.microsoft_entra',
AuthentikEnterpriseProvidersRadius: 'authentik.enterprise.providers.radius',
AuthentikEnterpriseProvidersScim: 'authentik.enterprise.providers.scim',
AuthentikEnterpriseProvidersSsf: 'authentik.enterprise.providers.ssf',
AuthentikEnterpriseProvidersWsFederation: 'authentik.enterprise.providers.ws_federation',
AuthentikEnterpriseReports: 'authentik.enterprise.reports',
AuthentikEnterpriseSearch: 'authentik.enterprise.search',
AuthentikEnterpriseStagesAuthenticatorEndpointGdtc: 'authentik.enterprise.stages.authenticator_endpoint_gdtc',
AuthentikEnterpriseStagesMtls: 'authentik.enterprise.stages.mtls',
AuthentikEnterpriseStagesSource: 'authentik.enterprise.stages.source',
UnknownDefaultOpenApi: '11184809'
AuthentikCommands: "authentik.commands",
AuthentikTenants: "authentik.tenants",
AuthentikTasks: "authentik.tasks",
AuthentikAdmin: "authentik.admin",
AuthentikApi: "authentik.api",
AuthentikCore: "authentik.core",
AuthentikCrypto: "authentik.crypto",
AuthentikEndpoints: "authentik.endpoints",
AuthentikEndpointsConnectorsAgent: "authentik.endpoints.connectors.agent",
AuthentikEnterprise: "authentik.enterprise",
AuthentikEvents: "authentik.events",
AuthentikAdminFiles: "authentik.admin.files",
AuthentikFlows: "authentik.flows",
AuthentikOutposts: "authentik.outposts",
AuthentikPoliciesDummy: "authentik.policies.dummy",
AuthentikPoliciesEventMatcher: "authentik.policies.event_matcher",
AuthentikPoliciesExpiry: "authentik.policies.expiry",
AuthentikPoliciesExpression: "authentik.policies.expression",
AuthentikPoliciesGeoip: "authentik.policies.geoip",
AuthentikPoliciesPassword: "authentik.policies.password",
AuthentikPoliciesReputation: "authentik.policies.reputation",
AuthentikPolicies: "authentik.policies",
AuthentikProvidersLdap: "authentik.providers.ldap",
AuthentikProvidersOauth2: "authentik.providers.oauth2",
AuthentikProvidersProxy: "authentik.providers.proxy",
AuthentikProvidersRac: "authentik.providers.rac",
AuthentikProvidersRadius: "authentik.providers.radius",
AuthentikProvidersSaml: "authentik.providers.saml",
AuthentikProvidersScim: "authentik.providers.scim",
AuthentikRbac: "authentik.rbac",
AuthentikRecovery: "authentik.recovery",
AuthentikSourcesKerberos: "authentik.sources.kerberos",
AuthentikSourcesLdap: "authentik.sources.ldap",
AuthentikSourcesOauth: "authentik.sources.oauth",
AuthentikSourcesPlex: "authentik.sources.plex",
AuthentikSourcesSaml: "authentik.sources.saml",
AuthentikSourcesScim: "authentik.sources.scim",
AuthentikSourcesTelegram: "authentik.sources.telegram",
AuthentikStagesAuthenticator: "authentik.stages.authenticator",
AuthentikStagesAuthenticatorDuo: "authentik.stages.authenticator_duo",
AuthentikStagesAuthenticatorEmail: "authentik.stages.authenticator_email",
AuthentikStagesAuthenticatorSms: "authentik.stages.authenticator_sms",
AuthentikStagesAuthenticatorStatic: "authentik.stages.authenticator_static",
AuthentikStagesAuthenticatorTotp: "authentik.stages.authenticator_totp",
AuthentikStagesAuthenticatorValidate: "authentik.stages.authenticator_validate",
AuthentikStagesAuthenticatorWebauthn: "authentik.stages.authenticator_webauthn",
AuthentikStagesCaptcha: "authentik.stages.captcha",
AuthentikStagesConsent: "authentik.stages.consent",
AuthentikStagesDeny: "authentik.stages.deny",
AuthentikStagesDummy: "authentik.stages.dummy",
AuthentikStagesEmail: "authentik.stages.email",
AuthentikStagesIdentification: "authentik.stages.identification",
AuthentikStagesInvitation: "authentik.stages.invitation",
AuthentikStagesPassword: "authentik.stages.password",
AuthentikStagesPrompt: "authentik.stages.prompt",
AuthentikStagesRedirect: "authentik.stages.redirect",
AuthentikStagesUserDelete: "authentik.stages.user_delete",
AuthentikStagesUserLogin: "authentik.stages.user_login",
AuthentikStagesUserLogout: "authentik.stages.user_logout",
AuthentikStagesUserWrite: "authentik.stages.user_write",
AuthentikTasksSchedules: "authentik.tasks.schedules",
AuthentikBrands: "authentik.brands",
AuthentikBlueprints: "authentik.blueprints",
AuthentikEnterpriseAudit: "authentik.enterprise.audit",
AuthentikEnterpriseEndpointsConnectorsAgent: "authentik.enterprise.endpoints.connectors.agent",
AuthentikEnterpriseEndpointsConnectorsFleet: "authentik.enterprise.endpoints.connectors.fleet",
AuthentikEnterpriseEndpointsConnectorsGoogleChrome:
"authentik.enterprise.endpoints.connectors.google_chrome",
AuthentikEnterpriseLifecycle: "authentik.enterprise.lifecycle",
AuthentikEnterprisePoliciesUniquePassword: "authentik.enterprise.policies.unique_password",
AuthentikEnterpriseProvidersGoogleWorkspace: "authentik.enterprise.providers.google_workspace",
AuthentikEnterpriseProvidersMicrosoftEntra: "authentik.enterprise.providers.microsoft_entra",
AuthentikEnterpriseProvidersRadius: "authentik.enterprise.providers.radius",
AuthentikEnterpriseProvidersScim: "authentik.enterprise.providers.scim",
AuthentikEnterpriseProvidersSsf: "authentik.enterprise.providers.ssf",
AuthentikEnterpriseProvidersWsFederation: "authentik.enterprise.providers.ws_federation",
AuthentikEnterpriseReports: "authentik.enterprise.reports",
AuthentikEnterpriseSearch: "authentik.enterprise.search",
AuthentikEnterpriseStagesAuthenticatorEndpointGdtc:
"authentik.enterprise.stages.authenticator_endpoint_gdtc",
AuthentikEnterpriseStagesMtls: "authentik.enterprise.stages.mtls",
AuthentikEnterpriseStagesSource: "authentik.enterprise.stages.source",
UnknownDefaultOpenApi: "11184809",
} as const;
export type AppEnum = typeof AppEnum[keyof typeof AppEnum];
export type AppEnum = (typeof AppEnum)[keyof typeof AppEnum];
export function instanceOfAppEnum(value: any): boolean {
for (const key in AppEnum) {
@@ -129,4 +129,3 @@ export function AppEnumToJSON(value?: AppEnum | null): any {
export function AppEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AppEnum {
return value as AppEnum;
}

View File

@@ -12,7 +12,6 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
* Pseudo class for apple response
* @export
@@ -20,7 +19,7 @@ import { mapValues } from '../runtime';
*/
export interface AppleChallengeResponseRequest {
/**
*
*
* @type {string}
* @memberof AppleChallengeResponseRequest
*/
@@ -30,7 +29,9 @@ export interface AppleChallengeResponseRequest {
/**
* Check if a given object implements the AppleChallengeResponseRequest interface.
*/
export function instanceOfAppleChallengeResponseRequest(value: object): value is AppleChallengeResponseRequest {
export function instanceOfAppleChallengeResponseRequest(
value: object,
): value is AppleChallengeResponseRequest {
return true;
}
@@ -38,13 +39,15 @@ export function AppleChallengeResponseRequestFromJSON(json: any): AppleChallenge
return AppleChallengeResponseRequestFromJSONTyped(json, false);
}
export function AppleChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppleChallengeResponseRequest {
export function AppleChallengeResponseRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AppleChallengeResponseRequest {
if (json == null) {
return json;
}
return {
'component': json['component'] == null ? undefined : json['component'],
component: json["component"] == null ? undefined : json["component"],
};
}
@@ -52,14 +55,15 @@ export function AppleChallengeResponseRequestToJSON(json: any): AppleChallengeRe
return AppleChallengeResponseRequestToJSONTyped(json, false);
}
export function AppleChallengeResponseRequestToJSONTyped(value?: AppleChallengeResponseRequest | null, ignoreDiscriminator: boolean = false): any {
export function AppleChallengeResponseRequestToJSONTyped(
value?: AppleChallengeResponseRequest | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'component': value['component'],
component: value["component"],
};
}

View File

@@ -12,21 +12,9 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { ErrorDetail } from './ErrorDetail';
import {
ErrorDetailFromJSON,
ErrorDetailFromJSONTyped,
ErrorDetailToJSON,
ErrorDetailToJSONTyped,
} from './ErrorDetail';
import type { ContextualFlowInfo } from './ContextualFlowInfo';
import {
ContextualFlowInfoFromJSON,
ContextualFlowInfoFromJSONTyped,
ContextualFlowInfoToJSON,
ContextualFlowInfoToJSONTyped,
} from './ContextualFlowInfo';
import type { ContextualFlowInfo } from "./ContextualFlowInfo";
import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON } from "./ContextualFlowInfo";
import type { ErrorDetail } from "./ErrorDetail";
/**
* Special challenge for apple-native authentication flow, which happens on the client.
@@ -35,43 +23,43 @@ import {
*/
export interface AppleLoginChallenge {
/**
*
*
* @type {ContextualFlowInfo}
* @memberof AppleLoginChallenge
*/
flowInfo?: ContextualFlowInfo;
/**
*
*
* @type {string}
* @memberof AppleLoginChallenge
*/
component?: string;
/**
*
*
* @type {{ [key: string]: Array<ErrorDetail>; }}
* @memberof AppleLoginChallenge
*/
responseErrors?: { [key: string]: Array<ErrorDetail>; };
responseErrors?: { [key: string]: Array<ErrorDetail> };
/**
*
*
* @type {string}
* @memberof AppleLoginChallenge
*/
clientId: string;
/**
*
*
* @type {string}
* @memberof AppleLoginChallenge
*/
scope: string;
/**
*
*
* @type {string}
* @memberof AppleLoginChallenge
*/
redirectUri: string;
/**
*
*
* @type {string}
* @memberof AppleLoginChallenge
*/
@@ -82,10 +70,10 @@ export interface AppleLoginChallenge {
* Check if a given object implements the AppleLoginChallenge interface.
*/
export function instanceOfAppleLoginChallenge(value: object): value is AppleLoginChallenge {
if (!('clientId' in value) || value['clientId'] === undefined) return false;
if (!('scope' in value) || value['scope'] === undefined) return false;
if (!('redirectUri' in value) || value['redirectUri'] === undefined) return false;
if (!('state' in value) || value['state'] === undefined) return false;
if (!("clientId" in value) || value["clientId"] === undefined) return false;
if (!("scope" in value) || value["scope"] === undefined) return false;
if (!("redirectUri" in value) || value["redirectUri"] === undefined) return false;
if (!("state" in value) || value["state"] === undefined) return false;
return true;
}
@@ -93,19 +81,22 @@ export function AppleLoginChallengeFromJSON(json: any): AppleLoginChallenge {
return AppleLoginChallengeFromJSONTyped(json, false);
}
export function AppleLoginChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppleLoginChallenge {
export function AppleLoginChallengeFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AppleLoginChallenge {
if (json == null) {
return json;
}
return {
'flowInfo': json['flow_info'] == null ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
'component': json['component'] == null ? undefined : json['component'],
'responseErrors': json['response_errors'] == null ? undefined : json['response_errors'],
'clientId': json['client_id'],
'scope': json['scope'],
'redirectUri': json['redirect_uri'],
'state': json['state'],
flowInfo:
json["flow_info"] == null ? undefined : ContextualFlowInfoFromJSON(json["flow_info"]),
component: json["component"] == null ? undefined : json["component"],
responseErrors: json["response_errors"] == null ? undefined : json["response_errors"],
clientId: json["client_id"],
scope: json["scope"],
redirectUri: json["redirect_uri"],
state: json["state"],
};
}
@@ -113,20 +104,21 @@ export function AppleLoginChallengeToJSON(json: any): AppleLoginChallenge {
return AppleLoginChallengeToJSONTyped(json, false);
}
export function AppleLoginChallengeToJSONTyped(value?: AppleLoginChallenge | null, ignoreDiscriminator: boolean = false): any {
export function AppleLoginChallengeToJSONTyped(
value?: AppleLoginChallenge | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'flow_info': ContextualFlowInfoToJSON(value['flowInfo']),
'component': value['component'],
'response_errors': value['responseErrors'],
'client_id': value['clientId'],
'scope': value['scope'],
'redirect_uri': value['redirectUri'],
'state': value['state'],
flow_info: ContextualFlowInfoToJSON(value["flowInfo"]),
component: value["component"],
response_errors: value["responseErrors"],
client_id: value["clientId"],
scope: value["scope"],
redirect_uri: value["redirectUri"],
state: value["state"],
};
}

View File

@@ -12,28 +12,12 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { PolicyEngineMode } from './PolicyEngineMode';
import {
PolicyEngineModeFromJSON,
PolicyEngineModeFromJSONTyped,
PolicyEngineModeToJSON,
PolicyEngineModeToJSONTyped,
} from './PolicyEngineMode';
import type { ThemedUrls } from './ThemedUrls';
import {
ThemedUrlsFromJSON,
ThemedUrlsFromJSONTyped,
ThemedUrlsToJSON,
ThemedUrlsToJSONTyped,
} from './ThemedUrls';
import type { Provider } from './Provider';
import {
ProviderFromJSON,
ProviderFromJSONTyped,
ProviderToJSON,
ProviderToJSONTyped,
} from './Provider';
import type { PolicyEngineMode } from "./PolicyEngineMode";
import { PolicyEngineModeFromJSON, PolicyEngineModeToJSON } from "./PolicyEngineMode";
import type { Provider } from "./Provider";
import { ProviderFromJSON } from "./Provider";
import type { ThemedUrls } from "./ThemedUrls";
import { ThemedUrlsFromJSON } from "./ThemedUrls";
/**
* Application Serializer
@@ -42,7 +26,7 @@ import {
*/
export interface Application {
/**
*
*
* @type {string}
* @memberof Application
*/
@@ -60,25 +44,25 @@ export interface Application {
*/
slug: string;
/**
*
*
* @type {number}
* @memberof Application
*/
provider?: number | null;
/**
*
*
* @type {Provider}
* @memberof Application
*/
readonly providerObj: Provider | null;
/**
*
*
* @type {Array<number>}
* @memberof Application
*/
backchannelProviders?: Array<number>;
/**
*
*
* @type {Array<Provider>}
* @memberof Application
*/
@@ -96,13 +80,13 @@ export interface Application {
*/
openInNewTab?: boolean;
/**
*
*
* @type {string}
* @memberof Application
*/
metaLaunchUrl?: string;
/**
*
*
* @type {string}
* @memberof Application
*/
@@ -114,51 +98,50 @@ export interface Application {
*/
readonly metaIconUrl: string | null;
/**
*
*
* @type {ThemedUrls}
* @memberof Application
*/
readonly metaIconThemedUrls: ThemedUrls | null;
/**
*
*
* @type {string}
* @memberof Application
*/
metaDescription?: string;
/**
*
*
* @type {string}
* @memberof Application
*/
metaPublisher?: string;
/**
*
*
* @type {PolicyEngineMode}
* @memberof Application
*/
policyEngineMode?: PolicyEngineMode;
/**
*
*
* @type {string}
* @memberof Application
*/
group?: string;
}
/**
* Check if a given object implements the Application interface.
*/
export function instanceOfApplication(value: object): value is Application {
if (!('pk' in value) || value['pk'] === undefined) return false;
if (!('name' in value) || value['name'] === undefined) return false;
if (!('slug' in value) || value['slug'] === undefined) return false;
if (!('providerObj' in value) || value['providerObj'] === undefined) return false;
if (!('backchannelProvidersObj' in value) || value['backchannelProvidersObj'] === undefined) return false;
if (!('launchUrl' in value) || value['launchUrl'] === undefined) return false;
if (!('metaIconUrl' in value) || value['metaIconUrl'] === undefined) return false;
if (!('metaIconThemedUrls' in value) || value['metaIconThemedUrls'] === undefined) return false;
if (!("pk" in value) || value["pk"] === undefined) return false;
if (!("name" in value) || value["name"] === undefined) return false;
if (!("slug" in value) || value["slug"] === undefined) return false;
if (!("providerObj" in value) || value["providerObj"] === undefined) return false;
if (!("backchannelProvidersObj" in value) || value["backchannelProvidersObj"] === undefined)
return false;
if (!("launchUrl" in value) || value["launchUrl"] === undefined) return false;
if (!("metaIconUrl" in value) || value["metaIconUrl"] === undefined) return false;
if (!("metaIconThemedUrls" in value) || value["metaIconThemedUrls"] === undefined) return false;
return true;
}
@@ -171,24 +154,29 @@ export function ApplicationFromJSONTyped(json: any, ignoreDiscriminator: boolean
return json;
}
return {
'pk': json['pk'],
'name': json['name'],
'slug': json['slug'],
'provider': json['provider'] == null ? undefined : json['provider'],
'providerObj': ProviderFromJSON(json['provider_obj']),
'backchannelProviders': json['backchannel_providers'] == null ? undefined : json['backchannel_providers'],
'backchannelProvidersObj': ((json['backchannel_providers_obj'] as Array<any>).map(ProviderFromJSON)),
'launchUrl': json['launch_url'],
'openInNewTab': json['open_in_new_tab'] == null ? undefined : json['open_in_new_tab'],
'metaLaunchUrl': json['meta_launch_url'] == null ? undefined : json['meta_launch_url'],
'metaIcon': json['meta_icon'] == null ? undefined : json['meta_icon'],
'metaIconUrl': json['meta_icon_url'],
'metaIconThemedUrls': ThemedUrlsFromJSON(json['meta_icon_themed_urls']),
'metaDescription': json['meta_description'] == null ? undefined : json['meta_description'],
'metaPublisher': json['meta_publisher'] == null ? undefined : json['meta_publisher'],
'policyEngineMode': json['policy_engine_mode'] == null ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
'group': json['group'] == null ? undefined : json['group'],
pk: json["pk"],
name: json["name"],
slug: json["slug"],
provider: json["provider"] == null ? undefined : json["provider"],
providerObj: ProviderFromJSON(json["provider_obj"]),
backchannelProviders:
json["backchannel_providers"] == null ? undefined : json["backchannel_providers"],
backchannelProvidersObj: (json["backchannel_providers_obj"] as Array<any>).map(
ProviderFromJSON,
),
launchUrl: json["launch_url"],
openInNewTab: json["open_in_new_tab"] == null ? undefined : json["open_in_new_tab"],
metaLaunchUrl: json["meta_launch_url"] == null ? undefined : json["meta_launch_url"],
metaIcon: json["meta_icon"] == null ? undefined : json["meta_icon"],
metaIconUrl: json["meta_icon_url"],
metaIconThemedUrls: ThemedUrlsFromJSON(json["meta_icon_themed_urls"]),
metaDescription: json["meta_description"] == null ? undefined : json["meta_description"],
metaPublisher: json["meta_publisher"] == null ? undefined : json["meta_publisher"],
policyEngineMode:
json["policy_engine_mode"] == null
? undefined
: PolicyEngineModeFromJSON(json["policy_engine_mode"]),
group: json["group"] == null ? undefined : json["group"],
};
}
@@ -196,24 +184,33 @@ export function ApplicationToJSON(json: any): Application {
return ApplicationToJSONTyped(json, false);
}
export function ApplicationToJSONTyped(value?: Omit<Application, 'pk'|'provider_obj'|'backchannel_providers_obj'|'launch_url'|'meta_icon_url'|'meta_icon_themed_urls'> | null, ignoreDiscriminator: boolean = false): any {
export function ApplicationToJSONTyped(
value?: Omit<
Application,
| "pk"
| "provider_obj"
| "backchannel_providers_obj"
| "launch_url"
| "meta_icon_url"
| "meta_icon_themed_urls"
> | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'slug': value['slug'],
'provider': value['provider'],
'backchannel_providers': value['backchannelProviders'],
'open_in_new_tab': value['openInNewTab'],
'meta_launch_url': value['metaLaunchUrl'],
'meta_icon': value['metaIcon'],
'meta_description': value['metaDescription'],
'meta_publisher': value['metaPublisher'],
'policy_engine_mode': PolicyEngineModeToJSON(value['policyEngineMode']),
'group': value['group'],
name: value["name"],
slug: value["slug"],
provider: value["provider"],
backchannel_providers: value["backchannelProviders"],
open_in_new_tab: value["openInNewTab"],
meta_launch_url: value["metaLaunchUrl"],
meta_icon: value["metaIcon"],
meta_description: value["metaDescription"],
meta_publisher: value["metaPublisher"],
policy_engine_mode: PolicyEngineModeToJSON(value["policyEngineMode"]),
group: value["group"],
};
}

View File

@@ -12,7 +12,6 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
* ApplicationEntitlement Serializer
* @export
@@ -20,38 +19,38 @@ import { mapValues } from '../runtime';
*/
export interface ApplicationEntitlement {
/**
*
*
* @type {string}
* @memberof ApplicationEntitlement
*/
readonly pbmUuid: string;
/**
*
*
* @type {string}
* @memberof ApplicationEntitlement
*/
name: string;
/**
*
*
* @type {string}
* @memberof ApplicationEntitlement
*/
app: string;
/**
*
*
* @type {{ [key: string]: any; }}
* @memberof ApplicationEntitlement
*/
attributes?: { [key: string]: any; };
attributes?: { [key: string]: any };
}
/**
* Check if a given object implements the ApplicationEntitlement interface.
*/
export function instanceOfApplicationEntitlement(value: object): value is ApplicationEntitlement {
if (!('pbmUuid' in value) || value['pbmUuid'] === undefined) return false;
if (!('name' in value) || value['name'] === undefined) return false;
if (!('app' in value) || value['app'] === undefined) return false;
if (!("pbmUuid" in value) || value["pbmUuid"] === undefined) return false;
if (!("name" in value) || value["name"] === undefined) return false;
if (!("app" in value) || value["app"] === undefined) return false;
return true;
}
@@ -59,16 +58,18 @@ export function ApplicationEntitlementFromJSON(json: any): ApplicationEntitlemen
return ApplicationEntitlementFromJSONTyped(json, false);
}
export function ApplicationEntitlementFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationEntitlement {
export function ApplicationEntitlementFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): ApplicationEntitlement {
if (json == null) {
return json;
}
return {
'pbmUuid': json['pbm_uuid'],
'name': json['name'],
'app': json['app'],
'attributes': json['attributes'] == null ? undefined : json['attributes'],
pbmUuid: json["pbm_uuid"],
name: json["name"],
app: json["app"],
attributes: json["attributes"] == null ? undefined : json["attributes"],
};
}
@@ -76,16 +77,17 @@ export function ApplicationEntitlementToJSON(json: any): ApplicationEntitlement
return ApplicationEntitlementToJSONTyped(json, false);
}
export function ApplicationEntitlementToJSONTyped(value?: Omit<ApplicationEntitlement, 'pbm_uuid'> | null, ignoreDiscriminator: boolean = false): any {
export function ApplicationEntitlementToJSONTyped(
value?: Omit<ApplicationEntitlement, "pbm_uuid"> | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'app': value['app'],
'attributes': value['attributes'],
name: value["name"],
app: value["app"],
attributes: value["attributes"],
};
}

View File

@@ -12,7 +12,6 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
* ApplicationEntitlement Serializer
* @export
@@ -20,31 +19,33 @@ import { mapValues } from '../runtime';
*/
export interface ApplicationEntitlementRequest {
/**
*
*
* @type {string}
* @memberof ApplicationEntitlementRequest
*/
name: string;
/**
*
*
* @type {string}
* @memberof ApplicationEntitlementRequest
*/
app: string;
/**
*
*
* @type {{ [key: string]: any; }}
* @memberof ApplicationEntitlementRequest
*/
attributes?: { [key: string]: any; };
attributes?: { [key: string]: any };
}
/**
* Check if a given object implements the ApplicationEntitlementRequest interface.
*/
export function instanceOfApplicationEntitlementRequest(value: object): value is ApplicationEntitlementRequest {
if (!('name' in value) || value['name'] === undefined) return false;
if (!('app' in value) || value['app'] === undefined) return false;
export function instanceOfApplicationEntitlementRequest(
value: object,
): value is ApplicationEntitlementRequest {
if (!("name" in value) || value["name"] === undefined) return false;
if (!("app" in value) || value["app"] === undefined) return false;
return true;
}
@@ -52,15 +53,17 @@ export function ApplicationEntitlementRequestFromJSON(json: any): ApplicationEnt
return ApplicationEntitlementRequestFromJSONTyped(json, false);
}
export function ApplicationEntitlementRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationEntitlementRequest {
export function ApplicationEntitlementRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): ApplicationEntitlementRequest {
if (json == null) {
return json;
}
return {
'name': json['name'],
'app': json['app'],
'attributes': json['attributes'] == null ? undefined : json['attributes'],
name: json["name"],
app: json["app"],
attributes: json["attributes"] == null ? undefined : json["attributes"],
};
}
@@ -68,16 +71,17 @@ export function ApplicationEntitlementRequestToJSON(json: any): ApplicationEntit
return ApplicationEntitlementRequestToJSONTyped(json, false);
}
export function ApplicationEntitlementRequestToJSONTyped(value?: ApplicationEntitlementRequest | null, ignoreDiscriminator: boolean = false): any {
export function ApplicationEntitlementRequestToJSONTyped(
value?: ApplicationEntitlementRequest | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'app': value['app'],
'attributes': value['attributes'],
name: value["name"],
app: value["app"],
attributes: value["attributes"],
};
}

View File

@@ -12,14 +12,8 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { PolicyEngineMode } from './PolicyEngineMode';
import {
PolicyEngineModeFromJSON,
PolicyEngineModeFromJSONTyped,
PolicyEngineModeToJSON,
PolicyEngineModeToJSONTyped,
} from './PolicyEngineMode';
import type { PolicyEngineMode } from "./PolicyEngineMode";
import { PolicyEngineModeFromJSON, PolicyEngineModeToJSON } from "./PolicyEngineMode";
/**
* Application Serializer
@@ -40,13 +34,13 @@ export interface ApplicationRequest {
*/
slug: string;
/**
*
*
* @type {number}
* @memberof ApplicationRequest
*/
provider?: number | null;
/**
*
*
* @type {Array<number>}
* @memberof ApplicationRequest
*/
@@ -58,51 +52,49 @@ export interface ApplicationRequest {
*/
openInNewTab?: boolean;
/**
*
*
* @type {string}
* @memberof ApplicationRequest
*/
metaLaunchUrl?: string;
/**
*
*
* @type {string}
* @memberof ApplicationRequest
*/
metaIcon?: string;
/**
*
*
* @type {string}
* @memberof ApplicationRequest
*/
metaDescription?: string;
/**
*
*
* @type {string}
* @memberof ApplicationRequest
*/
metaPublisher?: string;
/**
*
*
* @type {PolicyEngineMode}
* @memberof ApplicationRequest
*/
policyEngineMode?: PolicyEngineMode;
/**
*
*
* @type {string}
* @memberof ApplicationRequest
*/
group?: string;
}
/**
* Check if a given object implements the ApplicationRequest interface.
*/
export function instanceOfApplicationRequest(value: object): value is ApplicationRequest {
if (!('name' in value) || value['name'] === undefined) return false;
if (!('slug' in value) || value['slug'] === undefined) return false;
if (!("name" in value) || value["name"] === undefined) return false;
if (!("slug" in value) || value["slug"] === undefined) return false;
return true;
}
@@ -110,23 +102,29 @@ export function ApplicationRequestFromJSON(json: any): ApplicationRequest {
return ApplicationRequestFromJSONTyped(json, false);
}
export function ApplicationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationRequest {
export function ApplicationRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): ApplicationRequest {
if (json == null) {
return json;
}
return {
'name': json['name'],
'slug': json['slug'],
'provider': json['provider'] == null ? undefined : json['provider'],
'backchannelProviders': json['backchannel_providers'] == null ? undefined : json['backchannel_providers'],
'openInNewTab': json['open_in_new_tab'] == null ? undefined : json['open_in_new_tab'],
'metaLaunchUrl': json['meta_launch_url'] == null ? undefined : json['meta_launch_url'],
'metaIcon': json['meta_icon'] == null ? undefined : json['meta_icon'],
'metaDescription': json['meta_description'] == null ? undefined : json['meta_description'],
'metaPublisher': json['meta_publisher'] == null ? undefined : json['meta_publisher'],
'policyEngineMode': json['policy_engine_mode'] == null ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
'group': json['group'] == null ? undefined : json['group'],
name: json["name"],
slug: json["slug"],
provider: json["provider"] == null ? undefined : json["provider"],
backchannelProviders:
json["backchannel_providers"] == null ? undefined : json["backchannel_providers"],
openInNewTab: json["open_in_new_tab"] == null ? undefined : json["open_in_new_tab"],
metaLaunchUrl: json["meta_launch_url"] == null ? undefined : json["meta_launch_url"],
metaIcon: json["meta_icon"] == null ? undefined : json["meta_icon"],
metaDescription: json["meta_description"] == null ? undefined : json["meta_description"],
metaPublisher: json["meta_publisher"] == null ? undefined : json["meta_publisher"],
policyEngineMode:
json["policy_engine_mode"] == null
? undefined
: PolicyEngineModeFromJSON(json["policy_engine_mode"]),
group: json["group"] == null ? undefined : json["group"],
};
}
@@ -134,24 +132,25 @@ export function ApplicationRequestToJSON(json: any): ApplicationRequest {
return ApplicationRequestToJSONTyped(json, false);
}
export function ApplicationRequestToJSONTyped(value?: ApplicationRequest | null, ignoreDiscriminator: boolean = false): any {
export function ApplicationRequestToJSONTyped(
value?: ApplicationRequest | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'slug': value['slug'],
'provider': value['provider'],
'backchannel_providers': value['backchannelProviders'],
'open_in_new_tab': value['openInNewTab'],
'meta_launch_url': value['metaLaunchUrl'],
'meta_icon': value['metaIcon'],
'meta_description': value['metaDescription'],
'meta_publisher': value['metaPublisher'],
'policy_engine_mode': PolicyEngineModeToJSON(value['policyEngineMode']),
'group': value['group'],
name: value["name"],
slug: value["slug"],
provider: value["provider"],
backchannel_providers: value["backchannelProviders"],
open_in_new_tab: value["openInNewTab"],
meta_launch_url: value["metaLaunchUrl"],
meta_icon: value["metaIcon"],
meta_description: value["metaDescription"],
meta_publisher: value["metaPublisher"],
policy_engine_mode: PolicyEngineModeToJSON(value["policyEngineMode"]),
group: value["group"],
};
}

View File

@@ -12,18 +12,16 @@
* Do not edit the class manually.
*/
/**
*
*
* @export
*/
export const AuthTypeEnum = {
Basic: 'basic',
Bearer: 'bearer',
UnknownDefaultOpenApi: '11184809'
Basic: "basic",
Bearer: "bearer",
UnknownDefaultOpenApi: "11184809",
} as const;
export type AuthTypeEnum = typeof AuthTypeEnum[keyof typeof AuthTypeEnum];
export type AuthTypeEnum = (typeof AuthTypeEnum)[keyof typeof AuthTypeEnum];
export function instanceOfAuthTypeEnum(value: any): boolean {
for (const key in AuthTypeEnum) {
@@ -51,4 +49,3 @@ export function AuthTypeEnumToJSON(value?: AuthTypeEnum | null): any {
export function AuthTypeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AuthTypeEnum {
return value as AuthTypeEnum;
}

View File

@@ -12,28 +12,21 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { AuthenticatedSessionGeoIp } from './AuthenticatedSessionGeoIp';
import {
AuthenticatedSessionGeoIpFromJSON,
AuthenticatedSessionGeoIpFromJSONTyped,
AuthenticatedSessionGeoIpToJSON,
AuthenticatedSessionGeoIpToJSONTyped,
} from './AuthenticatedSessionGeoIp';
import type { AuthenticatedSessionAsn } from './AuthenticatedSessionAsn';
import type { AuthenticatedSessionAsn } from "./AuthenticatedSessionAsn";
import {
AuthenticatedSessionAsnFromJSON,
AuthenticatedSessionAsnFromJSONTyped,
AuthenticatedSessionAsnToJSON,
AuthenticatedSessionAsnToJSONTyped,
} from './AuthenticatedSessionAsn';
import type { AuthenticatedSessionUserAgent } from './AuthenticatedSessionUserAgent';
} from "./AuthenticatedSessionAsn";
import type { AuthenticatedSessionGeoIp } from "./AuthenticatedSessionGeoIp";
import {
AuthenticatedSessionGeoIpFromJSON,
AuthenticatedSessionGeoIpToJSON,
} from "./AuthenticatedSessionGeoIp";
import type { AuthenticatedSessionUserAgent } from "./AuthenticatedSessionUserAgent";
import {
AuthenticatedSessionUserAgentFromJSON,
AuthenticatedSessionUserAgentFromJSONTyped,
AuthenticatedSessionUserAgentToJSON,
AuthenticatedSessionUserAgentToJSONTyped,
} from './AuthenticatedSessionUserAgent';
} from "./AuthenticatedSessionUserAgent";
/**
* AuthenticatedSession Serializer
@@ -42,7 +35,7 @@ import {
*/
export interface AuthenticatedSession {
/**
*
*
* @type {string}
* @memberof AuthenticatedSession
*/
@@ -54,49 +47,49 @@ export interface AuthenticatedSession {
*/
readonly current: boolean;
/**
*
*
* @type {AuthenticatedSessionUserAgent}
* @memberof AuthenticatedSession
*/
userAgent: AuthenticatedSessionUserAgent;
/**
*
*
* @type {AuthenticatedSessionGeoIp}
* @memberof AuthenticatedSession
*/
geoIp: AuthenticatedSessionGeoIp | null;
/**
*
*
* @type {AuthenticatedSessionAsn}
* @memberof AuthenticatedSession
*/
asn: AuthenticatedSessionAsn | null;
/**
*
*
* @type {number}
* @memberof AuthenticatedSession
*/
user: number;
/**
*
*
* @type {string}
* @memberof AuthenticatedSession
*/
readonly lastIp: string;
/**
*
*
* @type {string}
* @memberof AuthenticatedSession
*/
readonly lastUserAgent: string;
/**
*
*
* @type {Date}
* @memberof AuthenticatedSession
*/
readonly lastUsed: Date;
/**
*
*
* @type {Date}
* @memberof AuthenticatedSession
*/
@@ -107,15 +100,15 @@ export interface AuthenticatedSession {
* Check if a given object implements the AuthenticatedSession interface.
*/
export function instanceOfAuthenticatedSession(value: object): value is AuthenticatedSession {
if (!('current' in value) || value['current'] === undefined) return false;
if (!('userAgent' in value) || value['userAgent'] === undefined) return false;
if (!('geoIp' in value) || value['geoIp'] === undefined) return false;
if (!('asn' in value) || value['asn'] === undefined) return false;
if (!('user' in value) || value['user'] === undefined) return false;
if (!('lastIp' in value) || value['lastIp'] === undefined) return false;
if (!('lastUserAgent' in value) || value['lastUserAgent'] === undefined) return false;
if (!('lastUsed' in value) || value['lastUsed'] === undefined) return false;
if (!('expires' in value) || value['expires'] === undefined) return false;
if (!("current" in value) || value["current"] === undefined) return false;
if (!("userAgent" in value) || value["userAgent"] === undefined) return false;
if (!("geoIp" in value) || value["geoIp"] === undefined) return false;
if (!("asn" in value) || value["asn"] === undefined) return false;
if (!("user" in value) || value["user"] === undefined) return false;
if (!("lastIp" in value) || value["lastIp"] === undefined) return false;
if (!("lastUserAgent" in value) || value["lastUserAgent"] === undefined) return false;
if (!("lastUsed" in value) || value["lastUsed"] === undefined) return false;
if (!("expires" in value) || value["expires"] === undefined) return false;
return true;
}
@@ -123,22 +116,24 @@ export function AuthenticatedSessionFromJSON(json: any): AuthenticatedSession {
return AuthenticatedSessionFromJSONTyped(json, false);
}
export function AuthenticatedSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatedSession {
export function AuthenticatedSessionFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatedSession {
if (json == null) {
return json;
}
return {
'uuid': json['uuid'] == null ? undefined : json['uuid'],
'current': json['current'],
'userAgent': AuthenticatedSessionUserAgentFromJSON(json['user_agent']),
'geoIp': AuthenticatedSessionGeoIpFromJSON(json['geo_ip']),
'asn': AuthenticatedSessionAsnFromJSON(json['asn']),
'user': json['user'],
'lastIp': json['last_ip'],
'lastUserAgent': json['last_user_agent'],
'lastUsed': (new Date(json['last_used'])),
'expires': (new Date(json['expires'])),
uuid: json["uuid"] == null ? undefined : json["uuid"],
current: json["current"],
userAgent: AuthenticatedSessionUserAgentFromJSON(json["user_agent"]),
geoIp: AuthenticatedSessionGeoIpFromJSON(json["geo_ip"]),
asn: AuthenticatedSessionAsnFromJSON(json["asn"]),
user: json["user"],
lastIp: json["last_ip"],
lastUserAgent: json["last_user_agent"],
lastUsed: new Date(json["last_used"]),
expires: new Date(json["expires"]),
};
}
@@ -146,18 +141,22 @@ export function AuthenticatedSessionToJSON(json: any): AuthenticatedSession {
return AuthenticatedSessionToJSONTyped(json, false);
}
export function AuthenticatedSessionToJSONTyped(value?: Omit<AuthenticatedSession, 'current'|'last_ip'|'last_user_agent'|'last_used'|'expires'> | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatedSessionToJSONTyped(
value?: Omit<
AuthenticatedSession,
"current" | "last_ip" | "last_user_agent" | "last_used" | "expires"
> | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'uuid': value['uuid'],
'user_agent': AuthenticatedSessionUserAgentToJSON(value['userAgent']),
'geo_ip': AuthenticatedSessionGeoIpToJSON(value['geoIp']),
'asn': AuthenticatedSessionAsnToJSON(value['asn']),
'user': value['user'],
uuid: value["uuid"],
user_agent: AuthenticatedSessionUserAgentToJSON(value["userAgent"]),
geo_ip: AuthenticatedSessionGeoIpToJSON(value["geoIp"]),
asn: AuthenticatedSessionAsnToJSON(value["asn"]),
user: value["user"],
};
}

View File

@@ -12,7 +12,6 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
* Get ASN Data
* @export
@@ -20,19 +19,19 @@ import { mapValues } from '../runtime';
*/
export interface AuthenticatedSessionAsn {
/**
*
*
* @type {number}
* @memberof AuthenticatedSessionAsn
*/
asn: number | null;
/**
*
*
* @type {string}
* @memberof AuthenticatedSessionAsn
*/
asOrg: string | null;
/**
*
*
* @type {string}
* @memberof AuthenticatedSessionAsn
*/
@@ -43,9 +42,9 @@ export interface AuthenticatedSessionAsn {
* Check if a given object implements the AuthenticatedSessionAsn interface.
*/
export function instanceOfAuthenticatedSessionAsn(value: object): value is AuthenticatedSessionAsn {
if (!('asn' in value) || value['asn'] === undefined) return false;
if (!('asOrg' in value) || value['asOrg'] === undefined) return false;
if (!('network' in value) || value['network'] === undefined) return false;
if (!("asn" in value) || value["asn"] === undefined) return false;
if (!("asOrg" in value) || value["asOrg"] === undefined) return false;
if (!("network" in value) || value["network"] === undefined) return false;
return true;
}
@@ -53,15 +52,17 @@ export function AuthenticatedSessionAsnFromJSON(json: any): AuthenticatedSession
return AuthenticatedSessionAsnFromJSONTyped(json, false);
}
export function AuthenticatedSessionAsnFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatedSessionAsn {
export function AuthenticatedSessionAsnFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatedSessionAsn {
if (json == null) {
return json;
}
return {
'asn': json['asn'],
'asOrg': json['as_org'],
'network': json['network'],
asn: json["asn"],
asOrg: json["as_org"],
network: json["network"],
};
}
@@ -69,16 +70,17 @@ export function AuthenticatedSessionAsnToJSON(json: any): AuthenticatedSessionAs
return AuthenticatedSessionAsnToJSONTyped(json, false);
}
export function AuthenticatedSessionAsnToJSONTyped(value?: AuthenticatedSessionAsn | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatedSessionAsnToJSONTyped(
value?: AuthenticatedSessionAsn | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'asn': value['asn'],
'as_org': value['asOrg'],
'network': value['network'],
asn: value["asn"],
as_org: value["asOrg"],
network: value["network"],
};
}

View File

@@ -12,7 +12,6 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
* Get GeoIP Data
* @export
@@ -20,31 +19,31 @@ import { mapValues } from '../runtime';
*/
export interface AuthenticatedSessionGeoIp {
/**
*
*
* @type {string}
* @memberof AuthenticatedSessionGeoIp
*/
continent: string | null;
/**
*
*
* @type {string}
* @memberof AuthenticatedSessionGeoIp
*/
country: string | null;
/**
*
*
* @type {number}
* @memberof AuthenticatedSessionGeoIp
*/
lat: number | null;
/**
*
*
* @type {number}
* @memberof AuthenticatedSessionGeoIp
*/
_long: number | null;
/**
*
*
* @type {string}
* @memberof AuthenticatedSessionGeoIp
*/
@@ -54,12 +53,14 @@ export interface AuthenticatedSessionGeoIp {
/**
* Check if a given object implements the AuthenticatedSessionGeoIp interface.
*/
export function instanceOfAuthenticatedSessionGeoIp(value: object): value is AuthenticatedSessionGeoIp {
if (!('continent' in value) || value['continent'] === undefined) return false;
if (!('country' in value) || value['country'] === undefined) return false;
if (!('lat' in value) || value['lat'] === undefined) return false;
if (!('_long' in value) || value['_long'] === undefined) return false;
if (!('city' in value) || value['city'] === undefined) return false;
export function instanceOfAuthenticatedSessionGeoIp(
value: object,
): value is AuthenticatedSessionGeoIp {
if (!("continent" in value) || value["continent"] === undefined) return false;
if (!("country" in value) || value["country"] === undefined) return false;
if (!("lat" in value) || value["lat"] === undefined) return false;
if (!("_long" in value) || value["_long"] === undefined) return false;
if (!("city" in value) || value["city"] === undefined) return false;
return true;
}
@@ -67,17 +68,19 @@ export function AuthenticatedSessionGeoIpFromJSON(json: any): AuthenticatedSessi
return AuthenticatedSessionGeoIpFromJSONTyped(json, false);
}
export function AuthenticatedSessionGeoIpFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatedSessionGeoIp {
export function AuthenticatedSessionGeoIpFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatedSessionGeoIp {
if (json == null) {
return json;
}
return {
'continent': json['continent'],
'country': json['country'],
'lat': json['lat'],
'_long': json['long'],
'city': json['city'],
continent: json["continent"],
country: json["country"],
lat: json["lat"],
_long: json["long"],
city: json["city"],
};
}
@@ -85,18 +88,19 @@ export function AuthenticatedSessionGeoIpToJSON(json: any): AuthenticatedSession
return AuthenticatedSessionGeoIpToJSONTyped(json, false);
}
export function AuthenticatedSessionGeoIpToJSONTyped(value?: AuthenticatedSessionGeoIp | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatedSessionGeoIpToJSONTyped(
value?: AuthenticatedSessionGeoIp | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'continent': value['continent'],
'country': value['country'],
'lat': value['lat'],
'long': value['_long'],
'city': value['city'],
continent: value["continent"],
country: value["country"],
lat: value["lat"],
long: value["_long"],
city: value["city"],
};
}

View File

@@ -12,28 +12,21 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { AuthenticatedSessionUserAgentDevice } from './AuthenticatedSessionUserAgentDevice';
import type { AuthenticatedSessionUserAgentDevice } from "./AuthenticatedSessionUserAgentDevice";
import {
AuthenticatedSessionUserAgentDeviceFromJSON,
AuthenticatedSessionUserAgentDeviceFromJSONTyped,
AuthenticatedSessionUserAgentDeviceToJSON,
AuthenticatedSessionUserAgentDeviceToJSONTyped,
} from './AuthenticatedSessionUserAgentDevice';
import type { AuthenticatedSessionUserAgentUserAgent } from './AuthenticatedSessionUserAgentUserAgent';
import {
AuthenticatedSessionUserAgentUserAgentFromJSON,
AuthenticatedSessionUserAgentUserAgentFromJSONTyped,
AuthenticatedSessionUserAgentUserAgentToJSON,
AuthenticatedSessionUserAgentUserAgentToJSONTyped,
} from './AuthenticatedSessionUserAgentUserAgent';
import type { AuthenticatedSessionUserAgentOs } from './AuthenticatedSessionUserAgentOs';
} from "./AuthenticatedSessionUserAgentDevice";
import type { AuthenticatedSessionUserAgentOs } from "./AuthenticatedSessionUserAgentOs";
import {
AuthenticatedSessionUserAgentOsFromJSON,
AuthenticatedSessionUserAgentOsFromJSONTyped,
AuthenticatedSessionUserAgentOsToJSON,
AuthenticatedSessionUserAgentOsToJSONTyped,
} from './AuthenticatedSessionUserAgentOs';
} from "./AuthenticatedSessionUserAgentOs";
import type { AuthenticatedSessionUserAgentUserAgent } from "./AuthenticatedSessionUserAgentUserAgent";
import {
AuthenticatedSessionUserAgentUserAgentFromJSON,
AuthenticatedSessionUserAgentUserAgentToJSON,
} from "./AuthenticatedSessionUserAgentUserAgent";
/**
* Get parsed user agent
@@ -42,25 +35,25 @@ import {
*/
export interface AuthenticatedSessionUserAgent {
/**
*
*
* @type {AuthenticatedSessionUserAgentDevice}
* @memberof AuthenticatedSessionUserAgent
*/
device: AuthenticatedSessionUserAgentDevice;
/**
*
*
* @type {AuthenticatedSessionUserAgentOs}
* @memberof AuthenticatedSessionUserAgent
*/
os: AuthenticatedSessionUserAgentOs;
/**
*
*
* @type {AuthenticatedSessionUserAgentUserAgent}
* @memberof AuthenticatedSessionUserAgent
*/
userAgent: AuthenticatedSessionUserAgentUserAgent;
/**
*
*
* @type {string}
* @memberof AuthenticatedSessionUserAgent
*/
@@ -70,11 +63,13 @@ export interface AuthenticatedSessionUserAgent {
/**
* Check if a given object implements the AuthenticatedSessionUserAgent interface.
*/
export function instanceOfAuthenticatedSessionUserAgent(value: object): value is AuthenticatedSessionUserAgent {
if (!('device' in value) || value['device'] === undefined) return false;
if (!('os' in value) || value['os'] === undefined) return false;
if (!('userAgent' in value) || value['userAgent'] === undefined) return false;
if (!('string' in value) || value['string'] === undefined) return false;
export function instanceOfAuthenticatedSessionUserAgent(
value: object,
): value is AuthenticatedSessionUserAgent {
if (!("device" in value) || value["device"] === undefined) return false;
if (!("os" in value) || value["os"] === undefined) return false;
if (!("userAgent" in value) || value["userAgent"] === undefined) return false;
if (!("string" in value) || value["string"] === undefined) return false;
return true;
}
@@ -82,16 +77,18 @@ export function AuthenticatedSessionUserAgentFromJSON(json: any): AuthenticatedS
return AuthenticatedSessionUserAgentFromJSONTyped(json, false);
}
export function AuthenticatedSessionUserAgentFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatedSessionUserAgent {
export function AuthenticatedSessionUserAgentFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatedSessionUserAgent {
if (json == null) {
return json;
}
return {
'device': AuthenticatedSessionUserAgentDeviceFromJSON(json['device']),
'os': AuthenticatedSessionUserAgentOsFromJSON(json['os']),
'userAgent': AuthenticatedSessionUserAgentUserAgentFromJSON(json['user_agent']),
'string': json['string'],
device: AuthenticatedSessionUserAgentDeviceFromJSON(json["device"]),
os: AuthenticatedSessionUserAgentOsFromJSON(json["os"]),
userAgent: AuthenticatedSessionUserAgentUserAgentFromJSON(json["user_agent"]),
string: json["string"],
};
}
@@ -99,17 +96,18 @@ export function AuthenticatedSessionUserAgentToJSON(json: any): AuthenticatedSes
return AuthenticatedSessionUserAgentToJSONTyped(json, false);
}
export function AuthenticatedSessionUserAgentToJSONTyped(value?: AuthenticatedSessionUserAgent | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatedSessionUserAgentToJSONTyped(
value?: AuthenticatedSessionUserAgent | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'device': AuthenticatedSessionUserAgentDeviceToJSON(value['device']),
'os': AuthenticatedSessionUserAgentOsToJSON(value['os']),
'user_agent': AuthenticatedSessionUserAgentUserAgentToJSON(value['userAgent']),
'string': value['string'],
device: AuthenticatedSessionUserAgentDeviceToJSON(value["device"]),
os: AuthenticatedSessionUserAgentOsToJSON(value["os"]),
user_agent: AuthenticatedSessionUserAgentUserAgentToJSON(value["userAgent"]),
string: value["string"],
};
}

View File

@@ -12,7 +12,6 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
* User agent device
* @export
@@ -20,19 +19,19 @@ import { mapValues } from '../runtime';
*/
export interface AuthenticatedSessionUserAgentDevice {
/**
*
*
* @type {string}
* @memberof AuthenticatedSessionUserAgentDevice
*/
brand: string;
/**
*
*
* @type {string}
* @memberof AuthenticatedSessionUserAgentDevice
*/
family: string;
/**
*
*
* @type {string}
* @memberof AuthenticatedSessionUserAgentDevice
*/
@@ -42,43 +41,52 @@ export interface AuthenticatedSessionUserAgentDevice {
/**
* Check if a given object implements the AuthenticatedSessionUserAgentDevice interface.
*/
export function instanceOfAuthenticatedSessionUserAgentDevice(value: object): value is AuthenticatedSessionUserAgentDevice {
if (!('brand' in value) || value['brand'] === undefined) return false;
if (!('family' in value) || value['family'] === undefined) return false;
if (!('model' in value) || value['model'] === undefined) return false;
export function instanceOfAuthenticatedSessionUserAgentDevice(
value: object,
): value is AuthenticatedSessionUserAgentDevice {
if (!("brand" in value) || value["brand"] === undefined) return false;
if (!("family" in value) || value["family"] === undefined) return false;
if (!("model" in value) || value["model"] === undefined) return false;
return true;
}
export function AuthenticatedSessionUserAgentDeviceFromJSON(json: any): AuthenticatedSessionUserAgentDevice {
export function AuthenticatedSessionUserAgentDeviceFromJSON(
json: any,
): AuthenticatedSessionUserAgentDevice {
return AuthenticatedSessionUserAgentDeviceFromJSONTyped(json, false);
}
export function AuthenticatedSessionUserAgentDeviceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatedSessionUserAgentDevice {
export function AuthenticatedSessionUserAgentDeviceFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatedSessionUserAgentDevice {
if (json == null) {
return json;
}
return {
'brand': json['brand'],
'family': json['family'],
'model': json['model'],
brand: json["brand"],
family: json["family"],
model: json["model"],
};
}
export function AuthenticatedSessionUserAgentDeviceToJSON(json: any): AuthenticatedSessionUserAgentDevice {
export function AuthenticatedSessionUserAgentDeviceToJSON(
json: any,
): AuthenticatedSessionUserAgentDevice {
return AuthenticatedSessionUserAgentDeviceToJSONTyped(json, false);
}
export function AuthenticatedSessionUserAgentDeviceToJSONTyped(value?: AuthenticatedSessionUserAgentDevice | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatedSessionUserAgentDeviceToJSONTyped(
value?: AuthenticatedSessionUserAgentDevice | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'brand': value['brand'],
'family': value['family'],
'model': value['model'],
brand: value["brand"],
family: value["family"],
model: value["model"],
};
}

View File

@@ -12,7 +12,6 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
* User agent os
* @export
@@ -20,31 +19,31 @@ import { mapValues } from '../runtime';
*/
export interface AuthenticatedSessionUserAgentOs {
/**
*
*
* @type {string}
* @memberof AuthenticatedSessionUserAgentOs
*/
family: string;
/**
*
*
* @type {string}
* @memberof AuthenticatedSessionUserAgentOs
*/
major: string;
/**
*
*
* @type {string}
* @memberof AuthenticatedSessionUserAgentOs
*/
minor: string;
/**
*
*
* @type {string}
* @memberof AuthenticatedSessionUserAgentOs
*/
patch: string;
/**
*
*
* @type {string}
* @memberof AuthenticatedSessionUserAgentOs
*/
@@ -54,30 +53,36 @@ export interface AuthenticatedSessionUserAgentOs {
/**
* Check if a given object implements the AuthenticatedSessionUserAgentOs interface.
*/
export function instanceOfAuthenticatedSessionUserAgentOs(value: object): value is AuthenticatedSessionUserAgentOs {
if (!('family' in value) || value['family'] === undefined) return false;
if (!('major' in value) || value['major'] === undefined) return false;
if (!('minor' in value) || value['minor'] === undefined) return false;
if (!('patch' in value) || value['patch'] === undefined) return false;
if (!('patchMinor' in value) || value['patchMinor'] === undefined) return false;
export function instanceOfAuthenticatedSessionUserAgentOs(
value: object,
): value is AuthenticatedSessionUserAgentOs {
if (!("family" in value) || value["family"] === undefined) return false;
if (!("major" in value) || value["major"] === undefined) return false;
if (!("minor" in value) || value["minor"] === undefined) return false;
if (!("patch" in value) || value["patch"] === undefined) return false;
if (!("patchMinor" in value) || value["patchMinor"] === undefined) return false;
return true;
}
export function AuthenticatedSessionUserAgentOsFromJSON(json: any): AuthenticatedSessionUserAgentOs {
export function AuthenticatedSessionUserAgentOsFromJSON(
json: any,
): AuthenticatedSessionUserAgentOs {
return AuthenticatedSessionUserAgentOsFromJSONTyped(json, false);
}
export function AuthenticatedSessionUserAgentOsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatedSessionUserAgentOs {
export function AuthenticatedSessionUserAgentOsFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatedSessionUserAgentOs {
if (json == null) {
return json;
}
return {
'family': json['family'],
'major': json['major'],
'minor': json['minor'],
'patch': json['patch'],
'patchMinor': json['patch_minor'],
family: json["family"],
major: json["major"],
minor: json["minor"],
patch: json["patch"],
patchMinor: json["patch_minor"],
};
}
@@ -85,18 +90,19 @@ export function AuthenticatedSessionUserAgentOsToJSON(json: any): AuthenticatedS
return AuthenticatedSessionUserAgentOsToJSONTyped(json, false);
}
export function AuthenticatedSessionUserAgentOsToJSONTyped(value?: AuthenticatedSessionUserAgentOs | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatedSessionUserAgentOsToJSONTyped(
value?: AuthenticatedSessionUserAgentOs | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'family': value['family'],
'major': value['major'],
'minor': value['minor'],
'patch': value['patch'],
'patch_minor': value['patchMinor'],
family: value["family"],
major: value["major"],
minor: value["minor"],
patch: value["patch"],
patch_minor: value["patchMinor"],
};
}

View File

@@ -12,7 +12,6 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
* User agent browser
* @export
@@ -20,25 +19,25 @@ import { mapValues } from '../runtime';
*/
export interface AuthenticatedSessionUserAgentUserAgent {
/**
*
*
* @type {string}
* @memberof AuthenticatedSessionUserAgentUserAgent
*/
family: string;
/**
*
*
* @type {string}
* @memberof AuthenticatedSessionUserAgentUserAgent
*/
major: string;
/**
*
*
* @type {string}
* @memberof AuthenticatedSessionUserAgentUserAgent
*/
minor: string;
/**
*
*
* @type {string}
* @memberof AuthenticatedSessionUserAgentUserAgent
*/
@@ -48,46 +47,55 @@ export interface AuthenticatedSessionUserAgentUserAgent {
/**
* Check if a given object implements the AuthenticatedSessionUserAgentUserAgent interface.
*/
export function instanceOfAuthenticatedSessionUserAgentUserAgent(value: object): value is AuthenticatedSessionUserAgentUserAgent {
if (!('family' in value) || value['family'] === undefined) return false;
if (!('major' in value) || value['major'] === undefined) return false;
if (!('minor' in value) || value['minor'] === undefined) return false;
if (!('patch' in value) || value['patch'] === undefined) return false;
export function instanceOfAuthenticatedSessionUserAgentUserAgent(
value: object,
): value is AuthenticatedSessionUserAgentUserAgent {
if (!("family" in value) || value["family"] === undefined) return false;
if (!("major" in value) || value["major"] === undefined) return false;
if (!("minor" in value) || value["minor"] === undefined) return false;
if (!("patch" in value) || value["patch"] === undefined) return false;
return true;
}
export function AuthenticatedSessionUserAgentUserAgentFromJSON(json: any): AuthenticatedSessionUserAgentUserAgent {
export function AuthenticatedSessionUserAgentUserAgentFromJSON(
json: any,
): AuthenticatedSessionUserAgentUserAgent {
return AuthenticatedSessionUserAgentUserAgentFromJSONTyped(json, false);
}
export function AuthenticatedSessionUserAgentUserAgentFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatedSessionUserAgentUserAgent {
export function AuthenticatedSessionUserAgentUserAgentFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatedSessionUserAgentUserAgent {
if (json == null) {
return json;
}
return {
'family': json['family'],
'major': json['major'],
'minor': json['minor'],
'patch': json['patch'],
family: json["family"],
major: json["major"],
minor: json["minor"],
patch: json["patch"],
};
}
export function AuthenticatedSessionUserAgentUserAgentToJSON(json: any): AuthenticatedSessionUserAgentUserAgent {
export function AuthenticatedSessionUserAgentUserAgentToJSON(
json: any,
): AuthenticatedSessionUserAgentUserAgent {
return AuthenticatedSessionUserAgentUserAgentToJSONTyped(json, false);
}
export function AuthenticatedSessionUserAgentUserAgentToJSONTyped(value?: AuthenticatedSessionUserAgentUserAgent | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatedSessionUserAgentUserAgentToJSONTyped(
value?: AuthenticatedSessionUserAgentUserAgent | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'family': value['family'],
'major': value['major'],
'minor': value['minor'],
'patch': value['patch'],
family: value["family"],
major: value["major"],
minor: value["minor"],
patch: value["patch"],
};
}

View File

@@ -12,22 +12,20 @@
* Do not edit the class manually.
*/
/**
*
*
* @export
*/
export const AuthenticationEnum = {
None: 'none',
RequireAuthenticated: 'require_authenticated',
RequireUnauthenticated: 'require_unauthenticated',
RequireSuperuser: 'require_superuser',
RequireRedirect: 'require_redirect',
RequireOutpost: 'require_outpost',
UnknownDefaultOpenApi: '11184809'
None: "none",
RequireAuthenticated: "require_authenticated",
RequireUnauthenticated: "require_unauthenticated",
RequireSuperuser: "require_superuser",
RequireRedirect: "require_redirect",
RequireOutpost: "require_outpost",
UnknownDefaultOpenApi: "11184809",
} as const;
export type AuthenticationEnum = typeof AuthenticationEnum[keyof typeof AuthenticationEnum];
export type AuthenticationEnum = (typeof AuthenticationEnum)[keyof typeof AuthenticationEnum];
export function instanceOfAuthenticationEnum(value: any): boolean {
for (const key in AuthenticationEnum) {
@@ -44,7 +42,10 @@ export function AuthenticationEnumFromJSON(json: any): AuthenticationEnum {
return AuthenticationEnumFromJSONTyped(json, false);
}
export function AuthenticationEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticationEnum {
export function AuthenticationEnumFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticationEnum {
return json as AuthenticationEnum;
}
@@ -52,7 +53,9 @@ export function AuthenticationEnumToJSON(value?: AuthenticationEnum | null): any
return value as any;
}
export function AuthenticationEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AuthenticationEnum {
export function AuthenticationEnumToJSONTyped(
value: any,
ignoreDiscriminator: boolean,
): AuthenticationEnum {
return value as AuthenticationEnum;
}

View File

@@ -12,23 +12,25 @@
* Do not edit the class manually.
*/
/**
*
*
* @export
*/
export const AuthenticatorAttachmentEnum = {
Platform: 'platform',
CrossPlatform: 'cross-platform',
UnknownDefaultOpenApi: '11184809'
Platform: "platform",
CrossPlatform: "cross-platform",
UnknownDefaultOpenApi: "11184809",
} as const;
export type AuthenticatorAttachmentEnum = typeof AuthenticatorAttachmentEnum[keyof typeof AuthenticatorAttachmentEnum];
export type AuthenticatorAttachmentEnum =
(typeof AuthenticatorAttachmentEnum)[keyof typeof AuthenticatorAttachmentEnum];
export function instanceOfAuthenticatorAttachmentEnum(value: any): boolean {
for (const key in AuthenticatorAttachmentEnum) {
if (Object.prototype.hasOwnProperty.call(AuthenticatorAttachmentEnum, key)) {
if (AuthenticatorAttachmentEnum[key as keyof typeof AuthenticatorAttachmentEnum] === value) {
if (
AuthenticatorAttachmentEnum[key as keyof typeof AuthenticatorAttachmentEnum] ===
value
) {
return true;
}
}
@@ -40,7 +42,10 @@ export function AuthenticatorAttachmentEnumFromJSON(json: any): AuthenticatorAtt
return AuthenticatorAttachmentEnumFromJSONTyped(json, false);
}
export function AuthenticatorAttachmentEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorAttachmentEnum {
export function AuthenticatorAttachmentEnumFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorAttachmentEnum {
return json as AuthenticatorAttachmentEnum;
}
@@ -48,7 +53,9 @@ export function AuthenticatorAttachmentEnumToJSON(value?: AuthenticatorAttachmen
return value as any;
}
export function AuthenticatorAttachmentEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AuthenticatorAttachmentEnum {
export function AuthenticatorAttachmentEnumToJSONTyped(
value: any,
ignoreDiscriminator: boolean,
): AuthenticatorAttachmentEnum {
return value as AuthenticatorAttachmentEnum;
}

View File

@@ -12,21 +12,9 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { ErrorDetail } from './ErrorDetail';
import {
ErrorDetailFromJSON,
ErrorDetailFromJSONTyped,
ErrorDetailToJSON,
ErrorDetailToJSONTyped,
} from './ErrorDetail';
import type { ContextualFlowInfo } from './ContextualFlowInfo';
import {
ContextualFlowInfoFromJSON,
ContextualFlowInfoFromJSONTyped,
ContextualFlowInfoToJSON,
ContextualFlowInfoToJSONTyped,
} from './ContextualFlowInfo';
import type { ContextualFlowInfo } from "./ContextualFlowInfo";
import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON } from "./ContextualFlowInfo";
import type { ErrorDetail } from "./ErrorDetail";
/**
* Duo Challenge
@@ -35,49 +23,49 @@ import {
*/
export interface AuthenticatorDuoChallenge {
/**
*
*
* @type {ContextualFlowInfo}
* @memberof AuthenticatorDuoChallenge
*/
flowInfo?: ContextualFlowInfo;
/**
*
*
* @type {string}
* @memberof AuthenticatorDuoChallenge
*/
component?: string;
/**
*
*
* @type {{ [key: string]: Array<ErrorDetail>; }}
* @memberof AuthenticatorDuoChallenge
*/
responseErrors?: { [key: string]: Array<ErrorDetail>; };
responseErrors?: { [key: string]: Array<ErrorDetail> };
/**
*
*
* @type {string}
* @memberof AuthenticatorDuoChallenge
*/
pendingUser: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorDuoChallenge
*/
pendingUserAvatar: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorDuoChallenge
*/
activationBarcode: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorDuoChallenge
*/
activationCode: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorDuoChallenge
*/
@@ -87,12 +75,14 @@ export interface AuthenticatorDuoChallenge {
/**
* Check if a given object implements the AuthenticatorDuoChallenge interface.
*/
export function instanceOfAuthenticatorDuoChallenge(value: object): value is AuthenticatorDuoChallenge {
if (!('pendingUser' in value) || value['pendingUser'] === undefined) return false;
if (!('pendingUserAvatar' in value) || value['pendingUserAvatar'] === undefined) return false;
if (!('activationBarcode' in value) || value['activationBarcode'] === undefined) return false;
if (!('activationCode' in value) || value['activationCode'] === undefined) return false;
if (!('stageUuid' in value) || value['stageUuid'] === undefined) return false;
export function instanceOfAuthenticatorDuoChallenge(
value: object,
): value is AuthenticatorDuoChallenge {
if (!("pendingUser" in value) || value["pendingUser"] === undefined) return false;
if (!("pendingUserAvatar" in value) || value["pendingUserAvatar"] === undefined) return false;
if (!("activationBarcode" in value) || value["activationBarcode"] === undefined) return false;
if (!("activationCode" in value) || value["activationCode"] === undefined) return false;
if (!("stageUuid" in value) || value["stageUuid"] === undefined) return false;
return true;
}
@@ -100,20 +90,23 @@ export function AuthenticatorDuoChallengeFromJSON(json: any): AuthenticatorDuoCh
return AuthenticatorDuoChallengeFromJSONTyped(json, false);
}
export function AuthenticatorDuoChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorDuoChallenge {
export function AuthenticatorDuoChallengeFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorDuoChallenge {
if (json == null) {
return json;
}
return {
'flowInfo': json['flow_info'] == null ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
'component': json['component'] == null ? undefined : json['component'],
'responseErrors': json['response_errors'] == null ? undefined : json['response_errors'],
'pendingUser': json['pending_user'],
'pendingUserAvatar': json['pending_user_avatar'],
'activationBarcode': json['activation_barcode'],
'activationCode': json['activation_code'],
'stageUuid': json['stage_uuid'],
flowInfo:
json["flow_info"] == null ? undefined : ContextualFlowInfoFromJSON(json["flow_info"]),
component: json["component"] == null ? undefined : json["component"],
responseErrors: json["response_errors"] == null ? undefined : json["response_errors"],
pendingUser: json["pending_user"],
pendingUserAvatar: json["pending_user_avatar"],
activationBarcode: json["activation_barcode"],
activationCode: json["activation_code"],
stageUuid: json["stage_uuid"],
};
}
@@ -121,21 +114,22 @@ export function AuthenticatorDuoChallengeToJSON(json: any): AuthenticatorDuoChal
return AuthenticatorDuoChallengeToJSONTyped(json, false);
}
export function AuthenticatorDuoChallengeToJSONTyped(value?: AuthenticatorDuoChallenge | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatorDuoChallengeToJSONTyped(
value?: AuthenticatorDuoChallenge | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'flow_info': ContextualFlowInfoToJSON(value['flowInfo']),
'component': value['component'],
'response_errors': value['responseErrors'],
'pending_user': value['pendingUser'],
'pending_user_avatar': value['pendingUserAvatar'],
'activation_barcode': value['activationBarcode'],
'activation_code': value['activationCode'],
'stage_uuid': value['stageUuid'],
flow_info: ContextualFlowInfoToJSON(value["flowInfo"]),
component: value["component"],
response_errors: value["responseErrors"],
pending_user: value["pendingUser"],
pending_user_avatar: value["pendingUserAvatar"],
activation_barcode: value["activationBarcode"],
activation_code: value["activationCode"],
stage_uuid: value["stageUuid"],
};
}

View File

@@ -12,7 +12,6 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
* Pseudo class for duo response
* @export
@@ -20,7 +19,7 @@ import { mapValues } from '../runtime';
*/
export interface AuthenticatorDuoChallengeResponseRequest {
/**
*
*
* @type {string}
* @memberof AuthenticatorDuoChallengeResponseRequest
*/
@@ -30,36 +29,45 @@ export interface AuthenticatorDuoChallengeResponseRequest {
/**
* Check if a given object implements the AuthenticatorDuoChallengeResponseRequest interface.
*/
export function instanceOfAuthenticatorDuoChallengeResponseRequest(value: object): value is AuthenticatorDuoChallengeResponseRequest {
export function instanceOfAuthenticatorDuoChallengeResponseRequest(
value: object,
): value is AuthenticatorDuoChallengeResponseRequest {
return true;
}
export function AuthenticatorDuoChallengeResponseRequestFromJSON(json: any): AuthenticatorDuoChallengeResponseRequest {
export function AuthenticatorDuoChallengeResponseRequestFromJSON(
json: any,
): AuthenticatorDuoChallengeResponseRequest {
return AuthenticatorDuoChallengeResponseRequestFromJSONTyped(json, false);
}
export function AuthenticatorDuoChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorDuoChallengeResponseRequest {
export function AuthenticatorDuoChallengeResponseRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorDuoChallengeResponseRequest {
if (json == null) {
return json;
}
return {
'component': json['component'] == null ? undefined : json['component'],
component: json["component"] == null ? undefined : json["component"],
};
}
export function AuthenticatorDuoChallengeResponseRequestToJSON(json: any): AuthenticatorDuoChallengeResponseRequest {
export function AuthenticatorDuoChallengeResponseRequestToJSON(
json: any,
): AuthenticatorDuoChallengeResponseRequest {
return AuthenticatorDuoChallengeResponseRequestToJSONTyped(json, false);
}
export function AuthenticatorDuoChallengeResponseRequestToJSONTyped(value?: AuthenticatorDuoChallengeResponseRequest | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatorDuoChallengeResponseRequestToJSONTyped(
value?: AuthenticatorDuoChallengeResponseRequest | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'component': value['component'],
component: value["component"],
};
}

View File

@@ -12,14 +12,8 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { FlowSet } from './FlowSet';
import {
FlowSetFromJSON,
FlowSetFromJSONTyped,
FlowSetToJSON,
FlowSetToJSONTyped,
} from './FlowSet';
import type { FlowSet } from "./FlowSet";
import { FlowSetFromJSON } from "./FlowSet";
/**
* AuthenticatorDuoStage Serializer
@@ -28,13 +22,13 @@ import {
*/
export interface AuthenticatorDuoStage {
/**
*
*
* @type {string}
* @memberof AuthenticatorDuoStage
*/
readonly pk: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorDuoStage
*/
@@ -64,7 +58,7 @@ export interface AuthenticatorDuoStage {
*/
readonly metaModelName: string;
/**
*
*
* @type {Array<FlowSet>}
* @memberof AuthenticatorDuoStage
*/
@@ -76,25 +70,25 @@ export interface AuthenticatorDuoStage {
*/
configureFlow?: string | null;
/**
*
*
* @type {string}
* @memberof AuthenticatorDuoStage
*/
friendlyName?: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorDuoStage
*/
clientId: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorDuoStage
*/
apiHostname: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorDuoStage
*/
@@ -105,15 +99,15 @@ export interface AuthenticatorDuoStage {
* Check if a given object implements the AuthenticatorDuoStage interface.
*/
export function instanceOfAuthenticatorDuoStage(value: object): value is AuthenticatorDuoStage {
if (!('pk' in value) || value['pk'] === undefined) return false;
if (!('name' in value) || value['name'] === undefined) return false;
if (!('component' in value) || value['component'] === undefined) return false;
if (!('verboseName' in value) || value['verboseName'] === undefined) return false;
if (!('verboseNamePlural' in value) || value['verboseNamePlural'] === undefined) return false;
if (!('metaModelName' in value) || value['metaModelName'] === undefined) return false;
if (!('flowSet' in value) || value['flowSet'] === undefined) return false;
if (!('clientId' in value) || value['clientId'] === undefined) return false;
if (!('apiHostname' in value) || value['apiHostname'] === undefined) return false;
if (!("pk" in value) || value["pk"] === undefined) return false;
if (!("name" in value) || value["name"] === undefined) return false;
if (!("component" in value) || value["component"] === undefined) return false;
if (!("verboseName" in value) || value["verboseName"] === undefined) return false;
if (!("verboseNamePlural" in value) || value["verboseNamePlural"] === undefined) return false;
if (!("metaModelName" in value) || value["metaModelName"] === undefined) return false;
if (!("flowSet" in value) || value["flowSet"] === undefined) return false;
if (!("clientId" in value) || value["clientId"] === undefined) return false;
if (!("apiHostname" in value) || value["apiHostname"] === undefined) return false;
return true;
}
@@ -121,24 +115,27 @@ export function AuthenticatorDuoStageFromJSON(json: any): AuthenticatorDuoStage
return AuthenticatorDuoStageFromJSONTyped(json, false);
}
export function AuthenticatorDuoStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorDuoStage {
export function AuthenticatorDuoStageFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorDuoStage {
if (json == null) {
return json;
}
return {
'pk': json['pk'],
'name': json['name'],
'component': json['component'],
'verboseName': json['verbose_name'],
'verboseNamePlural': json['verbose_name_plural'],
'metaModelName': json['meta_model_name'],
'flowSet': ((json['flow_set'] as Array<any>).map(FlowSetFromJSON)),
'configureFlow': json['configure_flow'] == null ? undefined : json['configure_flow'],
'friendlyName': json['friendly_name'] == null ? undefined : json['friendly_name'],
'clientId': json['client_id'],
'apiHostname': json['api_hostname'],
'adminIntegrationKey': json['admin_integration_key'] == null ? undefined : json['admin_integration_key'],
pk: json["pk"],
name: json["name"],
component: json["component"],
verboseName: json["verbose_name"],
verboseNamePlural: json["verbose_name_plural"],
metaModelName: json["meta_model_name"],
flowSet: (json["flow_set"] as Array<any>).map(FlowSetFromJSON),
configureFlow: json["configure_flow"] == null ? undefined : json["configure_flow"],
friendlyName: json["friendly_name"] == null ? undefined : json["friendly_name"],
clientId: json["client_id"],
apiHostname: json["api_hostname"],
adminIntegrationKey:
json["admin_integration_key"] == null ? undefined : json["admin_integration_key"],
};
}
@@ -146,19 +143,23 @@ export function AuthenticatorDuoStageToJSON(json: any): AuthenticatorDuoStage {
return AuthenticatorDuoStageToJSONTyped(json, false);
}
export function AuthenticatorDuoStageToJSONTyped(value?: Omit<AuthenticatorDuoStage, 'pk'|'component'|'verbose_name'|'verbose_name_plural'|'meta_model_name'|'flow_set'> | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatorDuoStageToJSONTyped(
value?: Omit<
AuthenticatorDuoStage,
"pk" | "component" | "verbose_name" | "verbose_name_plural" | "meta_model_name" | "flow_set"
> | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'configure_flow': value['configureFlow'],
'friendly_name': value['friendlyName'],
'client_id': value['clientId'],
'api_hostname': value['apiHostname'],
'admin_integration_key': value['adminIntegrationKey'],
name: value["name"],
configure_flow: value["configureFlow"],
friendly_name: value["friendlyName"],
client_id: value["clientId"],
api_hostname: value["apiHostname"],
admin_integration_key: value["adminIntegrationKey"],
};
}

View File

@@ -12,21 +12,20 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
*
* @export
* @interface AuthenticatorDuoStageDeviceImportResponse
*/
export interface AuthenticatorDuoStageDeviceImportResponse {
/**
*
*
* @type {number}
* @memberof AuthenticatorDuoStageDeviceImportResponse
*/
readonly count: number;
/**
*
*
* @type {string}
* @memberof AuthenticatorDuoStageDeviceImportResponse
*/
@@ -36,38 +35,46 @@ export interface AuthenticatorDuoStageDeviceImportResponse {
/**
* Check if a given object implements the AuthenticatorDuoStageDeviceImportResponse interface.
*/
export function instanceOfAuthenticatorDuoStageDeviceImportResponse(value: object): value is AuthenticatorDuoStageDeviceImportResponse {
if (!('count' in value) || value['count'] === undefined) return false;
if (!('error' in value) || value['error'] === undefined) return false;
export function instanceOfAuthenticatorDuoStageDeviceImportResponse(
value: object,
): value is AuthenticatorDuoStageDeviceImportResponse {
if (!("count" in value) || value["count"] === undefined) return false;
if (!("error" in value) || value["error"] === undefined) return false;
return true;
}
export function AuthenticatorDuoStageDeviceImportResponseFromJSON(json: any): AuthenticatorDuoStageDeviceImportResponse {
export function AuthenticatorDuoStageDeviceImportResponseFromJSON(
json: any,
): AuthenticatorDuoStageDeviceImportResponse {
return AuthenticatorDuoStageDeviceImportResponseFromJSONTyped(json, false);
}
export function AuthenticatorDuoStageDeviceImportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorDuoStageDeviceImportResponse {
export function AuthenticatorDuoStageDeviceImportResponseFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorDuoStageDeviceImportResponse {
if (json == null) {
return json;
}
return {
'count': json['count'],
'error': json['error'],
count: json["count"],
error: json["error"],
};
}
export function AuthenticatorDuoStageDeviceImportResponseToJSON(json: any): AuthenticatorDuoStageDeviceImportResponse {
export function AuthenticatorDuoStageDeviceImportResponseToJSON(
json: any,
): AuthenticatorDuoStageDeviceImportResponse {
return AuthenticatorDuoStageDeviceImportResponseToJSONTyped(json, false);
}
export function AuthenticatorDuoStageDeviceImportResponseToJSONTyped(value?: Omit<AuthenticatorDuoStageDeviceImportResponse, 'count'|'error'> | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatorDuoStageDeviceImportResponseToJSONTyped(
value?: Omit<AuthenticatorDuoStageDeviceImportResponse, "count" | "error"> | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
};
return {};
}

View File

@@ -12,21 +12,20 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
*
* @export
* @interface AuthenticatorDuoStageManualDeviceImportRequest
*/
export interface AuthenticatorDuoStageManualDeviceImportRequest {
/**
*
*
* @type {string}
* @memberof AuthenticatorDuoStageManualDeviceImportRequest
*/
duoUserId: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorDuoStageManualDeviceImportRequest
*/
@@ -36,40 +35,49 @@ export interface AuthenticatorDuoStageManualDeviceImportRequest {
/**
* Check if a given object implements the AuthenticatorDuoStageManualDeviceImportRequest interface.
*/
export function instanceOfAuthenticatorDuoStageManualDeviceImportRequest(value: object): value is AuthenticatorDuoStageManualDeviceImportRequest {
if (!('duoUserId' in value) || value['duoUserId'] === undefined) return false;
if (!('username' in value) || value['username'] === undefined) return false;
export function instanceOfAuthenticatorDuoStageManualDeviceImportRequest(
value: object,
): value is AuthenticatorDuoStageManualDeviceImportRequest {
if (!("duoUserId" in value) || value["duoUserId"] === undefined) return false;
if (!("username" in value) || value["username"] === undefined) return false;
return true;
}
export function AuthenticatorDuoStageManualDeviceImportRequestFromJSON(json: any): AuthenticatorDuoStageManualDeviceImportRequest {
export function AuthenticatorDuoStageManualDeviceImportRequestFromJSON(
json: any,
): AuthenticatorDuoStageManualDeviceImportRequest {
return AuthenticatorDuoStageManualDeviceImportRequestFromJSONTyped(json, false);
}
export function AuthenticatorDuoStageManualDeviceImportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorDuoStageManualDeviceImportRequest {
export function AuthenticatorDuoStageManualDeviceImportRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorDuoStageManualDeviceImportRequest {
if (json == null) {
return json;
}
return {
'duoUserId': json['duo_user_id'],
'username': json['username'],
duoUserId: json["duo_user_id"],
username: json["username"],
};
}
export function AuthenticatorDuoStageManualDeviceImportRequestToJSON(json: any): AuthenticatorDuoStageManualDeviceImportRequest {
export function AuthenticatorDuoStageManualDeviceImportRequestToJSON(
json: any,
): AuthenticatorDuoStageManualDeviceImportRequest {
return AuthenticatorDuoStageManualDeviceImportRequestToJSONTyped(json, false);
}
export function AuthenticatorDuoStageManualDeviceImportRequestToJSONTyped(value?: AuthenticatorDuoStageManualDeviceImportRequest | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatorDuoStageManualDeviceImportRequestToJSONTyped(
value?: AuthenticatorDuoStageManualDeviceImportRequest | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'duo_user_id': value['duoUserId'],
'username': value['username'],
duo_user_id: value["duoUserId"],
username: value["username"],
};
}

View File

@@ -12,7 +12,6 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
* AuthenticatorDuoStage Serializer
* @export
@@ -20,7 +19,7 @@ import { mapValues } from '../runtime';
*/
export interface AuthenticatorDuoStageRequest {
/**
*
*
* @type {string}
* @memberof AuthenticatorDuoStageRequest
*/
@@ -32,37 +31,37 @@ export interface AuthenticatorDuoStageRequest {
*/
configureFlow?: string | null;
/**
*
*
* @type {string}
* @memberof AuthenticatorDuoStageRequest
*/
friendlyName?: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorDuoStageRequest
*/
clientId: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorDuoStageRequest
*/
clientSecret: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorDuoStageRequest
*/
apiHostname: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorDuoStageRequest
*/
adminIntegrationKey?: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorDuoStageRequest
*/
@@ -72,11 +71,13 @@ export interface AuthenticatorDuoStageRequest {
/**
* Check if a given object implements the AuthenticatorDuoStageRequest interface.
*/
export function instanceOfAuthenticatorDuoStageRequest(value: object): value is AuthenticatorDuoStageRequest {
if (!('name' in value) || value['name'] === undefined) return false;
if (!('clientId' in value) || value['clientId'] === undefined) return false;
if (!('clientSecret' in value) || value['clientSecret'] === undefined) return false;
if (!('apiHostname' in value) || value['apiHostname'] === undefined) return false;
export function instanceOfAuthenticatorDuoStageRequest(
value: object,
): value is AuthenticatorDuoStageRequest {
if (!("name" in value) || value["name"] === undefined) return false;
if (!("clientId" in value) || value["clientId"] === undefined) return false;
if (!("clientSecret" in value) || value["clientSecret"] === undefined) return false;
if (!("apiHostname" in value) || value["apiHostname"] === undefined) return false;
return true;
}
@@ -84,20 +85,23 @@ export function AuthenticatorDuoStageRequestFromJSON(json: any): AuthenticatorDu
return AuthenticatorDuoStageRequestFromJSONTyped(json, false);
}
export function AuthenticatorDuoStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorDuoStageRequest {
export function AuthenticatorDuoStageRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorDuoStageRequest {
if (json == null) {
return json;
}
return {
'name': json['name'],
'configureFlow': json['configure_flow'] == null ? undefined : json['configure_flow'],
'friendlyName': json['friendly_name'] == null ? undefined : json['friendly_name'],
'clientId': json['client_id'],
'clientSecret': json['client_secret'],
'apiHostname': json['api_hostname'],
'adminIntegrationKey': json['admin_integration_key'] == null ? undefined : json['admin_integration_key'],
'adminSecretKey': json['admin_secret_key'] == null ? undefined : json['admin_secret_key'],
name: json["name"],
configureFlow: json["configure_flow"] == null ? undefined : json["configure_flow"],
friendlyName: json["friendly_name"] == null ? undefined : json["friendly_name"],
clientId: json["client_id"],
clientSecret: json["client_secret"],
apiHostname: json["api_hostname"],
adminIntegrationKey:
json["admin_integration_key"] == null ? undefined : json["admin_integration_key"],
adminSecretKey: json["admin_secret_key"] == null ? undefined : json["admin_secret_key"],
};
}
@@ -105,21 +109,22 @@ export function AuthenticatorDuoStageRequestToJSON(json: any): AuthenticatorDuoS
return AuthenticatorDuoStageRequestToJSONTyped(json, false);
}
export function AuthenticatorDuoStageRequestToJSONTyped(value?: AuthenticatorDuoStageRequest | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatorDuoStageRequestToJSONTyped(
value?: AuthenticatorDuoStageRequest | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'configure_flow': value['configureFlow'],
'friendly_name': value['friendlyName'],
'client_id': value['clientId'],
'client_secret': value['clientSecret'],
'api_hostname': value['apiHostname'],
'admin_integration_key': value['adminIntegrationKey'],
'admin_secret_key': value['adminSecretKey'],
name: value["name"],
configure_flow: value["configureFlow"],
friendly_name: value["friendlyName"],
client_id: value["clientId"],
client_secret: value["clientSecret"],
api_hostname: value["apiHostname"],
admin_integration_key: value["adminIntegrationKey"],
admin_secret_key: value["adminSecretKey"],
};
}

View File

@@ -12,21 +12,9 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { ErrorDetail } from './ErrorDetail';
import {
ErrorDetailFromJSON,
ErrorDetailFromJSONTyped,
ErrorDetailToJSON,
ErrorDetailToJSONTyped,
} from './ErrorDetail';
import type { ContextualFlowInfo } from './ContextualFlowInfo';
import {
ContextualFlowInfoFromJSON,
ContextualFlowInfoFromJSONTyped,
ContextualFlowInfoToJSON,
ContextualFlowInfoToJSONTyped,
} from './ContextualFlowInfo';
import type { ContextualFlowInfo } from "./ContextualFlowInfo";
import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON } from "./ContextualFlowInfo";
import type { ErrorDetail } from "./ErrorDetail";
/**
* Authenticator Email Setup challenge
@@ -35,43 +23,43 @@ import {
*/
export interface AuthenticatorEmailChallenge {
/**
*
*
* @type {ContextualFlowInfo}
* @memberof AuthenticatorEmailChallenge
*/
flowInfo?: ContextualFlowInfo;
/**
*
*
* @type {string}
* @memberof AuthenticatorEmailChallenge
*/
component?: string;
/**
*
*
* @type {{ [key: string]: Array<ErrorDetail>; }}
* @memberof AuthenticatorEmailChallenge
*/
responseErrors?: { [key: string]: Array<ErrorDetail>; };
responseErrors?: { [key: string]: Array<ErrorDetail> };
/**
*
*
* @type {string}
* @memberof AuthenticatorEmailChallenge
*/
pendingUser: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorEmailChallenge
*/
pendingUserAvatar: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorEmailChallenge
*/
email?: string | null;
/**
*
*
* @type {boolean}
* @memberof AuthenticatorEmailChallenge
*/
@@ -81,9 +69,11 @@ export interface AuthenticatorEmailChallenge {
/**
* Check if a given object implements the AuthenticatorEmailChallenge interface.
*/
export function instanceOfAuthenticatorEmailChallenge(value: object): value is AuthenticatorEmailChallenge {
if (!('pendingUser' in value) || value['pendingUser'] === undefined) return false;
if (!('pendingUserAvatar' in value) || value['pendingUserAvatar'] === undefined) return false;
export function instanceOfAuthenticatorEmailChallenge(
value: object,
): value is AuthenticatorEmailChallenge {
if (!("pendingUser" in value) || value["pendingUser"] === undefined) return false;
if (!("pendingUserAvatar" in value) || value["pendingUserAvatar"] === undefined) return false;
return true;
}
@@ -91,19 +81,22 @@ export function AuthenticatorEmailChallengeFromJSON(json: any): AuthenticatorEma
return AuthenticatorEmailChallengeFromJSONTyped(json, false);
}
export function AuthenticatorEmailChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorEmailChallenge {
export function AuthenticatorEmailChallengeFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorEmailChallenge {
if (json == null) {
return json;
}
return {
'flowInfo': json['flow_info'] == null ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
'component': json['component'] == null ? undefined : json['component'],
'responseErrors': json['response_errors'] == null ? undefined : json['response_errors'],
'pendingUser': json['pending_user'],
'pendingUserAvatar': json['pending_user_avatar'],
'email': json['email'] == null ? undefined : json['email'],
'emailRequired': json['email_required'] == null ? undefined : json['email_required'],
flowInfo:
json["flow_info"] == null ? undefined : ContextualFlowInfoFromJSON(json["flow_info"]),
component: json["component"] == null ? undefined : json["component"],
responseErrors: json["response_errors"] == null ? undefined : json["response_errors"],
pendingUser: json["pending_user"],
pendingUserAvatar: json["pending_user_avatar"],
email: json["email"] == null ? undefined : json["email"],
emailRequired: json["email_required"] == null ? undefined : json["email_required"],
};
}
@@ -111,20 +104,21 @@ export function AuthenticatorEmailChallengeToJSON(json: any): AuthenticatorEmail
return AuthenticatorEmailChallengeToJSONTyped(json, false);
}
export function AuthenticatorEmailChallengeToJSONTyped(value?: AuthenticatorEmailChallenge | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatorEmailChallengeToJSONTyped(
value?: AuthenticatorEmailChallenge | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'flow_info': ContextualFlowInfoToJSON(value['flowInfo']),
'component': value['component'],
'response_errors': value['responseErrors'],
'pending_user': value['pendingUser'],
'pending_user_avatar': value['pendingUserAvatar'],
'email': value['email'],
'email_required': value['emailRequired'],
flow_info: ContextualFlowInfoToJSON(value["flowInfo"]),
component: value["component"],
response_errors: value["responseErrors"],
pending_user: value["pendingUser"],
pending_user_avatar: value["pendingUserAvatar"],
email: value["email"],
email_required: value["emailRequired"],
};
}

View File

@@ -12,7 +12,6 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
* Authenticator Email Challenge response, device is set by get_response_instance
* @export
@@ -20,19 +19,19 @@ import { mapValues } from '../runtime';
*/
export interface AuthenticatorEmailChallengeResponseRequest {
/**
*
*
* @type {string}
* @memberof AuthenticatorEmailChallengeResponseRequest
*/
component?: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorEmailChallengeResponseRequest
*/
code?: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorEmailChallengeResponseRequest
*/
@@ -42,40 +41,49 @@ export interface AuthenticatorEmailChallengeResponseRequest {
/**
* Check if a given object implements the AuthenticatorEmailChallengeResponseRequest interface.
*/
export function instanceOfAuthenticatorEmailChallengeResponseRequest(value: object): value is AuthenticatorEmailChallengeResponseRequest {
export function instanceOfAuthenticatorEmailChallengeResponseRequest(
value: object,
): value is AuthenticatorEmailChallengeResponseRequest {
return true;
}
export function AuthenticatorEmailChallengeResponseRequestFromJSON(json: any): AuthenticatorEmailChallengeResponseRequest {
export function AuthenticatorEmailChallengeResponseRequestFromJSON(
json: any,
): AuthenticatorEmailChallengeResponseRequest {
return AuthenticatorEmailChallengeResponseRequestFromJSONTyped(json, false);
}
export function AuthenticatorEmailChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorEmailChallengeResponseRequest {
export function AuthenticatorEmailChallengeResponseRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorEmailChallengeResponseRequest {
if (json == null) {
return json;
}
return {
'component': json['component'] == null ? undefined : json['component'],
'code': json['code'] == null ? undefined : json['code'],
'email': json['email'] == null ? undefined : json['email'],
component: json["component"] == null ? undefined : json["component"],
code: json["code"] == null ? undefined : json["code"],
email: json["email"] == null ? undefined : json["email"],
};
}
export function AuthenticatorEmailChallengeResponseRequestToJSON(json: any): AuthenticatorEmailChallengeResponseRequest {
export function AuthenticatorEmailChallengeResponseRequestToJSON(
json: any,
): AuthenticatorEmailChallengeResponseRequest {
return AuthenticatorEmailChallengeResponseRequestToJSONTyped(json, false);
}
export function AuthenticatorEmailChallengeResponseRequestToJSONTyped(value?: AuthenticatorEmailChallengeResponseRequest | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatorEmailChallengeResponseRequestToJSONTyped(
value?: AuthenticatorEmailChallengeResponseRequest | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'component': value['component'],
'code': value['code'],
'email': value['email'],
component: value["component"],
code: value["code"],
email: value["email"],
};
}

View File

@@ -12,14 +12,8 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { FlowSet } from './FlowSet';
import {
FlowSetFromJSON,
FlowSetFromJSONTyped,
FlowSetToJSON,
FlowSetToJSONTyped,
} from './FlowSet';
import type { FlowSet } from "./FlowSet";
import { FlowSetFromJSON } from "./FlowSet";
/**
* AuthenticatorEmailStage Serializer
@@ -28,13 +22,13 @@ import {
*/
export interface AuthenticatorEmailStage {
/**
*
*
* @type {string}
* @memberof AuthenticatorEmailStage
*/
readonly pk: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorEmailStage
*/
@@ -64,7 +58,7 @@ export interface AuthenticatorEmailStage {
*/
readonly metaModelName: string;
/**
*
*
* @type {Array<FlowSet>}
* @memberof AuthenticatorEmailStage
*/
@@ -76,7 +70,7 @@ export interface AuthenticatorEmailStage {
*/
configureFlow?: string | null;
/**
*
*
* @type {string}
* @memberof AuthenticatorEmailStage
*/
@@ -88,55 +82,55 @@ export interface AuthenticatorEmailStage {
*/
useGlobalSettings?: boolean;
/**
*
*
* @type {string}
* @memberof AuthenticatorEmailStage
*/
host?: string;
/**
*
*
* @type {number}
* @memberof AuthenticatorEmailStage
*/
port?: number;
/**
*
*
* @type {string}
* @memberof AuthenticatorEmailStage
*/
username?: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorEmailStage
*/
password?: string;
/**
*
*
* @type {boolean}
* @memberof AuthenticatorEmailStage
*/
useTls?: boolean;
/**
*
*
* @type {boolean}
* @memberof AuthenticatorEmailStage
*/
useSsl?: boolean;
/**
*
*
* @type {number}
* @memberof AuthenticatorEmailStage
*/
timeout?: number;
/**
*
*
* @type {string}
* @memberof AuthenticatorEmailStage
*/
fromAddress?: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorEmailStage
*/
@@ -148,7 +142,7 @@ export interface AuthenticatorEmailStage {
*/
tokenExpiry?: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorEmailStage
*/
@@ -159,13 +153,13 @@ export interface AuthenticatorEmailStage {
* Check if a given object implements the AuthenticatorEmailStage interface.
*/
export function instanceOfAuthenticatorEmailStage(value: object): value is AuthenticatorEmailStage {
if (!('pk' in value) || value['pk'] === undefined) return false;
if (!('name' in value) || value['name'] === undefined) return false;
if (!('component' in value) || value['component'] === undefined) return false;
if (!('verboseName' in value) || value['verboseName'] === undefined) return false;
if (!('verboseNamePlural' in value) || value['verboseNamePlural'] === undefined) return false;
if (!('metaModelName' in value) || value['metaModelName'] === undefined) return false;
if (!('flowSet' in value) || value['flowSet'] === undefined) return false;
if (!("pk" in value) || value["pk"] === undefined) return false;
if (!("name" in value) || value["name"] === undefined) return false;
if (!("component" in value) || value["component"] === undefined) return false;
if (!("verboseName" in value) || value["verboseName"] === undefined) return false;
if (!("verboseNamePlural" in value) || value["verboseNamePlural"] === undefined) return false;
if (!("metaModelName" in value) || value["metaModelName"] === undefined) return false;
if (!("flowSet" in value) || value["flowSet"] === undefined) return false;
return true;
}
@@ -173,33 +167,36 @@ export function AuthenticatorEmailStageFromJSON(json: any): AuthenticatorEmailSt
return AuthenticatorEmailStageFromJSONTyped(json, false);
}
export function AuthenticatorEmailStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorEmailStage {
export function AuthenticatorEmailStageFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorEmailStage {
if (json == null) {
return json;
}
return {
'pk': json['pk'],
'name': json['name'],
'component': json['component'],
'verboseName': json['verbose_name'],
'verboseNamePlural': json['verbose_name_plural'],
'metaModelName': json['meta_model_name'],
'flowSet': ((json['flow_set'] as Array<any>).map(FlowSetFromJSON)),
'configureFlow': json['configure_flow'] == null ? undefined : json['configure_flow'],
'friendlyName': json['friendly_name'] == null ? undefined : json['friendly_name'],
'useGlobalSettings': json['use_global_settings'] == null ? undefined : json['use_global_settings'],
'host': json['host'] == null ? undefined : json['host'],
'port': json['port'] == null ? undefined : json['port'],
'username': json['username'] == null ? undefined : json['username'],
'password': json['password'] == null ? undefined : json['password'],
'useTls': json['use_tls'] == null ? undefined : json['use_tls'],
'useSsl': json['use_ssl'] == null ? undefined : json['use_ssl'],
'timeout': json['timeout'] == null ? undefined : json['timeout'],
'fromAddress': json['from_address'] == null ? undefined : json['from_address'],
'subject': json['subject'] == null ? undefined : json['subject'],
'tokenExpiry': json['token_expiry'] == null ? undefined : json['token_expiry'],
'template': json['template'] == null ? undefined : json['template'],
pk: json["pk"],
name: json["name"],
component: json["component"],
verboseName: json["verbose_name"],
verboseNamePlural: json["verbose_name_plural"],
metaModelName: json["meta_model_name"],
flowSet: (json["flow_set"] as Array<any>).map(FlowSetFromJSON),
configureFlow: json["configure_flow"] == null ? undefined : json["configure_flow"],
friendlyName: json["friendly_name"] == null ? undefined : json["friendly_name"],
useGlobalSettings:
json["use_global_settings"] == null ? undefined : json["use_global_settings"],
host: json["host"] == null ? undefined : json["host"],
port: json["port"] == null ? undefined : json["port"],
username: json["username"] == null ? undefined : json["username"],
password: json["password"] == null ? undefined : json["password"],
useTls: json["use_tls"] == null ? undefined : json["use_tls"],
useSsl: json["use_ssl"] == null ? undefined : json["use_ssl"],
timeout: json["timeout"] == null ? undefined : json["timeout"],
fromAddress: json["from_address"] == null ? undefined : json["from_address"],
subject: json["subject"] == null ? undefined : json["subject"],
tokenExpiry: json["token_expiry"] == null ? undefined : json["token_expiry"],
template: json["template"] == null ? undefined : json["template"],
};
}
@@ -207,28 +204,32 @@ export function AuthenticatorEmailStageToJSON(json: any): AuthenticatorEmailStag
return AuthenticatorEmailStageToJSONTyped(json, false);
}
export function AuthenticatorEmailStageToJSONTyped(value?: Omit<AuthenticatorEmailStage, 'pk'|'component'|'verbose_name'|'verbose_name_plural'|'meta_model_name'|'flow_set'> | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatorEmailStageToJSONTyped(
value?: Omit<
AuthenticatorEmailStage,
"pk" | "component" | "verbose_name" | "verbose_name_plural" | "meta_model_name" | "flow_set"
> | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'configure_flow': value['configureFlow'],
'friendly_name': value['friendlyName'],
'use_global_settings': value['useGlobalSettings'],
'host': value['host'],
'port': value['port'],
'username': value['username'],
'password': value['password'],
'use_tls': value['useTls'],
'use_ssl': value['useSsl'],
'timeout': value['timeout'],
'from_address': value['fromAddress'],
'subject': value['subject'],
'token_expiry': value['tokenExpiry'],
'template': value['template'],
name: value["name"],
configure_flow: value["configureFlow"],
friendly_name: value["friendlyName"],
use_global_settings: value["useGlobalSettings"],
host: value["host"],
port: value["port"],
username: value["username"],
password: value["password"],
use_tls: value["useTls"],
use_ssl: value["useSsl"],
timeout: value["timeout"],
from_address: value["fromAddress"],
subject: value["subject"],
token_expiry: value["tokenExpiry"],
template: value["template"],
};
}

View File

@@ -12,7 +12,6 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
* AuthenticatorEmailStage Serializer
* @export
@@ -20,7 +19,7 @@ import { mapValues } from '../runtime';
*/
export interface AuthenticatorEmailStageRequest {
/**
*
*
* @type {string}
* @memberof AuthenticatorEmailStageRequest
*/
@@ -32,7 +31,7 @@ export interface AuthenticatorEmailStageRequest {
*/
configureFlow?: string | null;
/**
*
*
* @type {string}
* @memberof AuthenticatorEmailStageRequest
*/
@@ -44,55 +43,55 @@ export interface AuthenticatorEmailStageRequest {
*/
useGlobalSettings?: boolean;
/**
*
*
* @type {string}
* @memberof AuthenticatorEmailStageRequest
*/
host?: string;
/**
*
*
* @type {number}
* @memberof AuthenticatorEmailStageRequest
*/
port?: number;
/**
*
*
* @type {string}
* @memberof AuthenticatorEmailStageRequest
*/
username?: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorEmailStageRequest
*/
password?: string;
/**
*
*
* @type {boolean}
* @memberof AuthenticatorEmailStageRequest
*/
useTls?: boolean;
/**
*
*
* @type {boolean}
* @memberof AuthenticatorEmailStageRequest
*/
useSsl?: boolean;
/**
*
*
* @type {number}
* @memberof AuthenticatorEmailStageRequest
*/
timeout?: number;
/**
*
*
* @type {string}
* @memberof AuthenticatorEmailStageRequest
*/
fromAddress?: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorEmailStageRequest
*/
@@ -104,7 +103,7 @@ export interface AuthenticatorEmailStageRequest {
*/
tokenExpiry?: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorEmailStageRequest
*/
@@ -114,8 +113,10 @@ export interface AuthenticatorEmailStageRequest {
/**
* Check if a given object implements the AuthenticatorEmailStageRequest interface.
*/
export function instanceOfAuthenticatorEmailStageRequest(value: object): value is AuthenticatorEmailStageRequest {
if (!('name' in value) || value['name'] === undefined) return false;
export function instanceOfAuthenticatorEmailStageRequest(
value: object,
): value is AuthenticatorEmailStageRequest {
if (!("name" in value) || value["name"] === undefined) return false;
return true;
}
@@ -123,27 +124,30 @@ export function AuthenticatorEmailStageRequestFromJSON(json: any): Authenticator
return AuthenticatorEmailStageRequestFromJSONTyped(json, false);
}
export function AuthenticatorEmailStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorEmailStageRequest {
export function AuthenticatorEmailStageRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorEmailStageRequest {
if (json == null) {
return json;
}
return {
'name': json['name'],
'configureFlow': json['configure_flow'] == null ? undefined : json['configure_flow'],
'friendlyName': json['friendly_name'] == null ? undefined : json['friendly_name'],
'useGlobalSettings': json['use_global_settings'] == null ? undefined : json['use_global_settings'],
'host': json['host'] == null ? undefined : json['host'],
'port': json['port'] == null ? undefined : json['port'],
'username': json['username'] == null ? undefined : json['username'],
'password': json['password'] == null ? undefined : json['password'],
'useTls': json['use_tls'] == null ? undefined : json['use_tls'],
'useSsl': json['use_ssl'] == null ? undefined : json['use_ssl'],
'timeout': json['timeout'] == null ? undefined : json['timeout'],
'fromAddress': json['from_address'] == null ? undefined : json['from_address'],
'subject': json['subject'] == null ? undefined : json['subject'],
'tokenExpiry': json['token_expiry'] == null ? undefined : json['token_expiry'],
'template': json['template'] == null ? undefined : json['template'],
name: json["name"],
configureFlow: json["configure_flow"] == null ? undefined : json["configure_flow"],
friendlyName: json["friendly_name"] == null ? undefined : json["friendly_name"],
useGlobalSettings:
json["use_global_settings"] == null ? undefined : json["use_global_settings"],
host: json["host"] == null ? undefined : json["host"],
port: json["port"] == null ? undefined : json["port"],
username: json["username"] == null ? undefined : json["username"],
password: json["password"] == null ? undefined : json["password"],
useTls: json["use_tls"] == null ? undefined : json["use_tls"],
useSsl: json["use_ssl"] == null ? undefined : json["use_ssl"],
timeout: json["timeout"] == null ? undefined : json["timeout"],
fromAddress: json["from_address"] == null ? undefined : json["from_address"],
subject: json["subject"] == null ? undefined : json["subject"],
tokenExpiry: json["token_expiry"] == null ? undefined : json["token_expiry"],
template: json["template"] == null ? undefined : json["template"],
};
}
@@ -151,28 +155,29 @@ export function AuthenticatorEmailStageRequestToJSON(json: any): AuthenticatorEm
return AuthenticatorEmailStageRequestToJSONTyped(json, false);
}
export function AuthenticatorEmailStageRequestToJSONTyped(value?: AuthenticatorEmailStageRequest | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatorEmailStageRequestToJSONTyped(
value?: AuthenticatorEmailStageRequest | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'configure_flow': value['configureFlow'],
'friendly_name': value['friendlyName'],
'use_global_settings': value['useGlobalSettings'],
'host': value['host'],
'port': value['port'],
'username': value['username'],
'password': value['password'],
'use_tls': value['useTls'],
'use_ssl': value['useSsl'],
'timeout': value['timeout'],
'from_address': value['fromAddress'],
'subject': value['subject'],
'token_expiry': value['tokenExpiry'],
'template': value['template'],
name: value["name"],
configure_flow: value["configureFlow"],
friendly_name: value["friendlyName"],
use_global_settings: value["useGlobalSettings"],
host: value["host"],
port: value["port"],
username: value["username"],
password: value["password"],
use_tls: value["useTls"],
use_ssl: value["useSsl"],
timeout: value["timeout"],
from_address: value["fromAddress"],
subject: value["subject"],
token_expiry: value["tokenExpiry"],
template: value["template"],
};
}

View File

@@ -12,14 +12,8 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { FlowSet } from './FlowSet';
import {
FlowSetFromJSON,
FlowSetFromJSONTyped,
FlowSetToJSON,
FlowSetToJSONTyped,
} from './FlowSet';
import type { FlowSet } from "./FlowSet";
import { FlowSetFromJSON } from "./FlowSet";
/**
* AuthenticatorEndpointGDTCStage Serializer
@@ -28,13 +22,13 @@ import {
*/
export interface AuthenticatorEndpointGDTCStage {
/**
*
*
* @type {string}
* @memberof AuthenticatorEndpointGDTCStage
*/
readonly pk: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorEndpointGDTCStage
*/
@@ -64,7 +58,7 @@ export interface AuthenticatorEndpointGDTCStage {
*/
readonly metaModelName: string;
/**
*
*
* @type {Array<FlowSet>}
* @memberof AuthenticatorEndpointGDTCStage
*/
@@ -76,31 +70,33 @@ export interface AuthenticatorEndpointGDTCStage {
*/
configureFlow?: string | null;
/**
*
*
* @type {string}
* @memberof AuthenticatorEndpointGDTCStage
*/
friendlyName?: string;
/**
*
*
* @type {{ [key: string]: any; }}
* @memberof AuthenticatorEndpointGDTCStage
*/
credentials: { [key: string]: any; };
credentials: { [key: string]: any };
}
/**
* Check if a given object implements the AuthenticatorEndpointGDTCStage interface.
*/
export function instanceOfAuthenticatorEndpointGDTCStage(value: object): value is AuthenticatorEndpointGDTCStage {
if (!('pk' in value) || value['pk'] === undefined) return false;
if (!('name' in value) || value['name'] === undefined) return false;
if (!('component' in value) || value['component'] === undefined) return false;
if (!('verboseName' in value) || value['verboseName'] === undefined) return false;
if (!('verboseNamePlural' in value) || value['verboseNamePlural'] === undefined) return false;
if (!('metaModelName' in value) || value['metaModelName'] === undefined) return false;
if (!('flowSet' in value) || value['flowSet'] === undefined) return false;
if (!('credentials' in value) || value['credentials'] === undefined) return false;
export function instanceOfAuthenticatorEndpointGDTCStage(
value: object,
): value is AuthenticatorEndpointGDTCStage {
if (!("pk" in value) || value["pk"] === undefined) return false;
if (!("name" in value) || value["name"] === undefined) return false;
if (!("component" in value) || value["component"] === undefined) return false;
if (!("verboseName" in value) || value["verboseName"] === undefined) return false;
if (!("verboseNamePlural" in value) || value["verboseNamePlural"] === undefined) return false;
if (!("metaModelName" in value) || value["metaModelName"] === undefined) return false;
if (!("flowSet" in value) || value["flowSet"] === undefined) return false;
if (!("credentials" in value) || value["credentials"] === undefined) return false;
return true;
}
@@ -108,22 +104,24 @@ export function AuthenticatorEndpointGDTCStageFromJSON(json: any): Authenticator
return AuthenticatorEndpointGDTCStageFromJSONTyped(json, false);
}
export function AuthenticatorEndpointGDTCStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorEndpointGDTCStage {
export function AuthenticatorEndpointGDTCStageFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorEndpointGDTCStage {
if (json == null) {
return json;
}
return {
'pk': json['pk'],
'name': json['name'],
'component': json['component'],
'verboseName': json['verbose_name'],
'verboseNamePlural': json['verbose_name_plural'],
'metaModelName': json['meta_model_name'],
'flowSet': ((json['flow_set'] as Array<any>).map(FlowSetFromJSON)),
'configureFlow': json['configure_flow'] == null ? undefined : json['configure_flow'],
'friendlyName': json['friendly_name'] == null ? undefined : json['friendly_name'],
'credentials': json['credentials'],
pk: json["pk"],
name: json["name"],
component: json["component"],
verboseName: json["verbose_name"],
verboseNamePlural: json["verbose_name_plural"],
metaModelName: json["meta_model_name"],
flowSet: (json["flow_set"] as Array<any>).map(FlowSetFromJSON),
configureFlow: json["configure_flow"] == null ? undefined : json["configure_flow"],
friendlyName: json["friendly_name"] == null ? undefined : json["friendly_name"],
credentials: json["credentials"],
};
}
@@ -131,17 +129,21 @@ export function AuthenticatorEndpointGDTCStageToJSON(json: any): AuthenticatorEn
return AuthenticatorEndpointGDTCStageToJSONTyped(json, false);
}
export function AuthenticatorEndpointGDTCStageToJSONTyped(value?: Omit<AuthenticatorEndpointGDTCStage, 'pk'|'component'|'verbose_name'|'verbose_name_plural'|'meta_model_name'|'flow_set'> | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatorEndpointGDTCStageToJSONTyped(
value?: Omit<
AuthenticatorEndpointGDTCStage,
"pk" | "component" | "verbose_name" | "verbose_name_plural" | "meta_model_name" | "flow_set"
> | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'configure_flow': value['configureFlow'],
'friendly_name': value['friendlyName'],
'credentials': value['credentials'],
name: value["name"],
configure_flow: value["configureFlow"],
friendly_name: value["friendlyName"],
credentials: value["credentials"],
};
}

View File

@@ -12,7 +12,6 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
* AuthenticatorEndpointGDTCStage Serializer
* @export
@@ -20,7 +19,7 @@ import { mapValues } from '../runtime';
*/
export interface AuthenticatorEndpointGDTCStageRequest {
/**
*
*
* @type {string}
* @memberof AuthenticatorEndpointGDTCStageRequest
*/
@@ -32,60 +31,69 @@ export interface AuthenticatorEndpointGDTCStageRequest {
*/
configureFlow?: string | null;
/**
*
*
* @type {string}
* @memberof AuthenticatorEndpointGDTCStageRequest
*/
friendlyName?: string;
/**
*
*
* @type {{ [key: string]: any; }}
* @memberof AuthenticatorEndpointGDTCStageRequest
*/
credentials: { [key: string]: any; };
credentials: { [key: string]: any };
}
/**
* Check if a given object implements the AuthenticatorEndpointGDTCStageRequest interface.
*/
export function instanceOfAuthenticatorEndpointGDTCStageRequest(value: object): value is AuthenticatorEndpointGDTCStageRequest {
if (!('name' in value) || value['name'] === undefined) return false;
if (!('credentials' in value) || value['credentials'] === undefined) return false;
export function instanceOfAuthenticatorEndpointGDTCStageRequest(
value: object,
): value is AuthenticatorEndpointGDTCStageRequest {
if (!("name" in value) || value["name"] === undefined) return false;
if (!("credentials" in value) || value["credentials"] === undefined) return false;
return true;
}
export function AuthenticatorEndpointGDTCStageRequestFromJSON(json: any): AuthenticatorEndpointGDTCStageRequest {
export function AuthenticatorEndpointGDTCStageRequestFromJSON(
json: any,
): AuthenticatorEndpointGDTCStageRequest {
return AuthenticatorEndpointGDTCStageRequestFromJSONTyped(json, false);
}
export function AuthenticatorEndpointGDTCStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorEndpointGDTCStageRequest {
export function AuthenticatorEndpointGDTCStageRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorEndpointGDTCStageRequest {
if (json == null) {
return json;
}
return {
'name': json['name'],
'configureFlow': json['configure_flow'] == null ? undefined : json['configure_flow'],
'friendlyName': json['friendly_name'] == null ? undefined : json['friendly_name'],
'credentials': json['credentials'],
name: json["name"],
configureFlow: json["configure_flow"] == null ? undefined : json["configure_flow"],
friendlyName: json["friendly_name"] == null ? undefined : json["friendly_name"],
credentials: json["credentials"],
};
}
export function AuthenticatorEndpointGDTCStageRequestToJSON(json: any): AuthenticatorEndpointGDTCStageRequest {
export function AuthenticatorEndpointGDTCStageRequestToJSON(
json: any,
): AuthenticatorEndpointGDTCStageRequest {
return AuthenticatorEndpointGDTCStageRequestToJSONTyped(json, false);
}
export function AuthenticatorEndpointGDTCStageRequestToJSONTyped(value?: AuthenticatorEndpointGDTCStageRequest | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatorEndpointGDTCStageRequestToJSONTyped(
value?: AuthenticatorEndpointGDTCStageRequest | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'configure_flow': value['configureFlow'],
'friendly_name': value['friendlyName'],
'credentials': value['credentials'],
name: value["name"],
configure_flow: value["configureFlow"],
friendly_name: value["friendlyName"],
credentials: value["credentials"],
};
}

View File

@@ -12,21 +12,9 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { ErrorDetail } from './ErrorDetail';
import {
ErrorDetailFromJSON,
ErrorDetailFromJSONTyped,
ErrorDetailToJSON,
ErrorDetailToJSONTyped,
} from './ErrorDetail';
import type { ContextualFlowInfo } from './ContextualFlowInfo';
import {
ContextualFlowInfoFromJSON,
ContextualFlowInfoFromJSONTyped,
ContextualFlowInfoToJSON,
ContextualFlowInfoToJSONTyped,
} from './ContextualFlowInfo';
import type { ContextualFlowInfo } from "./ContextualFlowInfo";
import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON } from "./ContextualFlowInfo";
import type { ErrorDetail } from "./ErrorDetail";
/**
* SMS Setup challenge
@@ -35,37 +23,37 @@ import {
*/
export interface AuthenticatorSMSChallenge {
/**
*
*
* @type {ContextualFlowInfo}
* @memberof AuthenticatorSMSChallenge
*/
flowInfo?: ContextualFlowInfo;
/**
*
*
* @type {string}
* @memberof AuthenticatorSMSChallenge
*/
component?: string;
/**
*
*
* @type {{ [key: string]: Array<ErrorDetail>; }}
* @memberof AuthenticatorSMSChallenge
*/
responseErrors?: { [key: string]: Array<ErrorDetail>; };
responseErrors?: { [key: string]: Array<ErrorDetail> };
/**
*
*
* @type {string}
* @memberof AuthenticatorSMSChallenge
*/
pendingUser: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorSMSChallenge
*/
pendingUserAvatar: string;
/**
*
*
* @type {boolean}
* @memberof AuthenticatorSMSChallenge
*/
@@ -75,9 +63,11 @@ export interface AuthenticatorSMSChallenge {
/**
* Check if a given object implements the AuthenticatorSMSChallenge interface.
*/
export function instanceOfAuthenticatorSMSChallenge(value: object): value is AuthenticatorSMSChallenge {
if (!('pendingUser' in value) || value['pendingUser'] === undefined) return false;
if (!('pendingUserAvatar' in value) || value['pendingUserAvatar'] === undefined) return false;
export function instanceOfAuthenticatorSMSChallenge(
value: object,
): value is AuthenticatorSMSChallenge {
if (!("pendingUser" in value) || value["pendingUser"] === undefined) return false;
if (!("pendingUserAvatar" in value) || value["pendingUserAvatar"] === undefined) return false;
return true;
}
@@ -85,18 +75,22 @@ export function AuthenticatorSMSChallengeFromJSON(json: any): AuthenticatorSMSCh
return AuthenticatorSMSChallengeFromJSONTyped(json, false);
}
export function AuthenticatorSMSChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorSMSChallenge {
export function AuthenticatorSMSChallengeFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorSMSChallenge {
if (json == null) {
return json;
}
return {
'flowInfo': json['flow_info'] == null ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
'component': json['component'] == null ? undefined : json['component'],
'responseErrors': json['response_errors'] == null ? undefined : json['response_errors'],
'pendingUser': json['pending_user'],
'pendingUserAvatar': json['pending_user_avatar'],
'phoneNumberRequired': json['phone_number_required'] == null ? undefined : json['phone_number_required'],
flowInfo:
json["flow_info"] == null ? undefined : ContextualFlowInfoFromJSON(json["flow_info"]),
component: json["component"] == null ? undefined : json["component"],
responseErrors: json["response_errors"] == null ? undefined : json["response_errors"],
pendingUser: json["pending_user"],
pendingUserAvatar: json["pending_user_avatar"],
phoneNumberRequired:
json["phone_number_required"] == null ? undefined : json["phone_number_required"],
};
}
@@ -104,19 +98,20 @@ export function AuthenticatorSMSChallengeToJSON(json: any): AuthenticatorSMSChal
return AuthenticatorSMSChallengeToJSONTyped(json, false);
}
export function AuthenticatorSMSChallengeToJSONTyped(value?: AuthenticatorSMSChallenge | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatorSMSChallengeToJSONTyped(
value?: AuthenticatorSMSChallenge | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'flow_info': ContextualFlowInfoToJSON(value['flowInfo']),
'component': value['component'],
'response_errors': value['responseErrors'],
'pending_user': value['pendingUser'],
'pending_user_avatar': value['pendingUserAvatar'],
'phone_number_required': value['phoneNumberRequired'],
flow_info: ContextualFlowInfoToJSON(value["flowInfo"]),
component: value["component"],
response_errors: value["responseErrors"],
pending_user: value["pendingUser"],
pending_user_avatar: value["pendingUserAvatar"],
phone_number_required: value["phoneNumberRequired"],
};
}

View File

@@ -12,7 +12,6 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
* SMS Challenge response, device is set by get_response_instance
* @export
@@ -20,19 +19,19 @@ import { mapValues } from '../runtime';
*/
export interface AuthenticatorSMSChallengeResponseRequest {
/**
*
*
* @type {string}
* @memberof AuthenticatorSMSChallengeResponseRequest
*/
component?: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorSMSChallengeResponseRequest
*/
code?: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorSMSChallengeResponseRequest
*/
@@ -42,40 +41,49 @@ export interface AuthenticatorSMSChallengeResponseRequest {
/**
* Check if a given object implements the AuthenticatorSMSChallengeResponseRequest interface.
*/
export function instanceOfAuthenticatorSMSChallengeResponseRequest(value: object): value is AuthenticatorSMSChallengeResponseRequest {
export function instanceOfAuthenticatorSMSChallengeResponseRequest(
value: object,
): value is AuthenticatorSMSChallengeResponseRequest {
return true;
}
export function AuthenticatorSMSChallengeResponseRequestFromJSON(json: any): AuthenticatorSMSChallengeResponseRequest {
export function AuthenticatorSMSChallengeResponseRequestFromJSON(
json: any,
): AuthenticatorSMSChallengeResponseRequest {
return AuthenticatorSMSChallengeResponseRequestFromJSONTyped(json, false);
}
export function AuthenticatorSMSChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorSMSChallengeResponseRequest {
export function AuthenticatorSMSChallengeResponseRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorSMSChallengeResponseRequest {
if (json == null) {
return json;
}
return {
'component': json['component'] == null ? undefined : json['component'],
'code': json['code'] == null ? undefined : json['code'],
'phoneNumber': json['phone_number'] == null ? undefined : json['phone_number'],
component: json["component"] == null ? undefined : json["component"],
code: json["code"] == null ? undefined : json["code"],
phoneNumber: json["phone_number"] == null ? undefined : json["phone_number"],
};
}
export function AuthenticatorSMSChallengeResponseRequestToJSON(json: any): AuthenticatorSMSChallengeResponseRequest {
export function AuthenticatorSMSChallengeResponseRequestToJSON(
json: any,
): AuthenticatorSMSChallengeResponseRequest {
return AuthenticatorSMSChallengeResponseRequestToJSONTyped(json, false);
}
export function AuthenticatorSMSChallengeResponseRequestToJSONTyped(value?: AuthenticatorSMSChallengeResponseRequest | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatorSMSChallengeResponseRequestToJSONTyped(
value?: AuthenticatorSMSChallengeResponseRequest | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'component': value['component'],
'code': value['code'],
'phone_number': value['phoneNumber'],
component: value["component"],
code: value["code"],
phone_number: value["phoneNumber"],
};
}

View File

@@ -12,28 +12,12 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { FlowSet } from './FlowSet';
import {
FlowSetFromJSON,
FlowSetFromJSONTyped,
FlowSetToJSON,
FlowSetToJSONTyped,
} from './FlowSet';
import type { ProviderEnum } from './ProviderEnum';
import {
ProviderEnumFromJSON,
ProviderEnumFromJSONTyped,
ProviderEnumToJSON,
ProviderEnumToJSONTyped,
} from './ProviderEnum';
import type { AuthTypeEnum } from './AuthTypeEnum';
import {
AuthTypeEnumFromJSON,
AuthTypeEnumFromJSONTyped,
AuthTypeEnumToJSON,
AuthTypeEnumToJSONTyped,
} from './AuthTypeEnum';
import type { AuthTypeEnum } from "./AuthTypeEnum";
import { AuthTypeEnumFromJSON, AuthTypeEnumToJSON } from "./AuthTypeEnum";
import type { FlowSet } from "./FlowSet";
import { FlowSetFromJSON } from "./FlowSet";
import type { ProviderEnum } from "./ProviderEnum";
import { ProviderEnumFromJSON, ProviderEnumToJSON } from "./ProviderEnum";
/**
* AuthenticatorSMSStage Serializer
@@ -42,13 +26,13 @@ import {
*/
export interface AuthenticatorSMSStage {
/**
*
*
* @type {string}
* @memberof AuthenticatorSMSStage
*/
readonly pk: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorSMSStage
*/
@@ -78,7 +62,7 @@ export interface AuthenticatorSMSStage {
*/
readonly metaModelName: string;
/**
*
*
* @type {Array<FlowSet>}
* @memberof AuthenticatorSMSStage
*/
@@ -90,43 +74,43 @@ export interface AuthenticatorSMSStage {
*/
configureFlow?: string | null;
/**
*
*
* @type {string}
* @memberof AuthenticatorSMSStage
*/
friendlyName?: string;
/**
*
*
* @type {ProviderEnum}
* @memberof AuthenticatorSMSStage
*/
provider: ProviderEnum;
/**
*
*
* @type {string}
* @memberof AuthenticatorSMSStage
*/
fromNumber: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorSMSStage
*/
accountSid: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorSMSStage
*/
auth: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorSMSStage
*/
authPassword?: string;
/**
*
*
* @type {AuthTypeEnum}
* @memberof AuthenticatorSMSStage
*/
@@ -145,23 +129,21 @@ export interface AuthenticatorSMSStage {
mapping?: string | null;
}
/**
* Check if a given object implements the AuthenticatorSMSStage interface.
*/
export function instanceOfAuthenticatorSMSStage(value: object): value is AuthenticatorSMSStage {
if (!('pk' in value) || value['pk'] === undefined) return false;
if (!('name' in value) || value['name'] === undefined) return false;
if (!('component' in value) || value['component'] === undefined) return false;
if (!('verboseName' in value) || value['verboseName'] === undefined) return false;
if (!('verboseNamePlural' in value) || value['verboseNamePlural'] === undefined) return false;
if (!('metaModelName' in value) || value['metaModelName'] === undefined) return false;
if (!('flowSet' in value) || value['flowSet'] === undefined) return false;
if (!('provider' in value) || value['provider'] === undefined) return false;
if (!('fromNumber' in value) || value['fromNumber'] === undefined) return false;
if (!('accountSid' in value) || value['accountSid'] === undefined) return false;
if (!('auth' in value) || value['auth'] === undefined) return false;
if (!("pk" in value) || value["pk"] === undefined) return false;
if (!("name" in value) || value["name"] === undefined) return false;
if (!("component" in value) || value["component"] === undefined) return false;
if (!("verboseName" in value) || value["verboseName"] === undefined) return false;
if (!("verboseNamePlural" in value) || value["verboseNamePlural"] === undefined) return false;
if (!("metaModelName" in value) || value["metaModelName"] === undefined) return false;
if (!("flowSet" in value) || value["flowSet"] === undefined) return false;
if (!("provider" in value) || value["provider"] === undefined) return false;
if (!("fromNumber" in value) || value["fromNumber"] === undefined) return false;
if (!("accountSid" in value) || value["accountSid"] === undefined) return false;
if (!("auth" in value) || value["auth"] === undefined) return false;
return true;
}
@@ -169,29 +151,31 @@ export function AuthenticatorSMSStageFromJSON(json: any): AuthenticatorSMSStage
return AuthenticatorSMSStageFromJSONTyped(json, false);
}
export function AuthenticatorSMSStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorSMSStage {
export function AuthenticatorSMSStageFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorSMSStage {
if (json == null) {
return json;
}
return {
'pk': json['pk'],
'name': json['name'],
'component': json['component'],
'verboseName': json['verbose_name'],
'verboseNamePlural': json['verbose_name_plural'],
'metaModelName': json['meta_model_name'],
'flowSet': ((json['flow_set'] as Array<any>).map(FlowSetFromJSON)),
'configureFlow': json['configure_flow'] == null ? undefined : json['configure_flow'],
'friendlyName': json['friendly_name'] == null ? undefined : json['friendly_name'],
'provider': ProviderEnumFromJSON(json['provider']),
'fromNumber': json['from_number'],
'accountSid': json['account_sid'],
'auth': json['auth'],
'authPassword': json['auth_password'] == null ? undefined : json['auth_password'],
'authType': json['auth_type'] == null ? undefined : AuthTypeEnumFromJSON(json['auth_type']),
'verifyOnly': json['verify_only'] == null ? undefined : json['verify_only'],
'mapping': json['mapping'] == null ? undefined : json['mapping'],
pk: json["pk"],
name: json["name"],
component: json["component"],
verboseName: json["verbose_name"],
verboseNamePlural: json["verbose_name_plural"],
metaModelName: json["meta_model_name"],
flowSet: (json["flow_set"] as Array<any>).map(FlowSetFromJSON),
configureFlow: json["configure_flow"] == null ? undefined : json["configure_flow"],
friendlyName: json["friendly_name"] == null ? undefined : json["friendly_name"],
provider: ProviderEnumFromJSON(json["provider"]),
fromNumber: json["from_number"],
accountSid: json["account_sid"],
auth: json["auth"],
authPassword: json["auth_password"] == null ? undefined : json["auth_password"],
authType: json["auth_type"] == null ? undefined : AuthTypeEnumFromJSON(json["auth_type"]),
verifyOnly: json["verify_only"] == null ? undefined : json["verify_only"],
mapping: json["mapping"] == null ? undefined : json["mapping"],
};
}
@@ -199,24 +183,28 @@ export function AuthenticatorSMSStageToJSON(json: any): AuthenticatorSMSStage {
return AuthenticatorSMSStageToJSONTyped(json, false);
}
export function AuthenticatorSMSStageToJSONTyped(value?: Omit<AuthenticatorSMSStage, 'pk'|'component'|'verbose_name'|'verbose_name_plural'|'meta_model_name'|'flow_set'> | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatorSMSStageToJSONTyped(
value?: Omit<
AuthenticatorSMSStage,
"pk" | "component" | "verbose_name" | "verbose_name_plural" | "meta_model_name" | "flow_set"
> | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'configure_flow': value['configureFlow'],
'friendly_name': value['friendlyName'],
'provider': ProviderEnumToJSON(value['provider']),
'from_number': value['fromNumber'],
'account_sid': value['accountSid'],
'auth': value['auth'],
'auth_password': value['authPassword'],
'auth_type': AuthTypeEnumToJSON(value['authType']),
'verify_only': value['verifyOnly'],
'mapping': value['mapping'],
name: value["name"],
configure_flow: value["configureFlow"],
friendly_name: value["friendlyName"],
provider: ProviderEnumToJSON(value["provider"]),
from_number: value["fromNumber"],
account_sid: value["accountSid"],
auth: value["auth"],
auth_password: value["authPassword"],
auth_type: AuthTypeEnumToJSON(value["authType"]),
verify_only: value["verifyOnly"],
mapping: value["mapping"],
};
}

View File

@@ -12,21 +12,10 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { ProviderEnum } from './ProviderEnum';
import {
ProviderEnumFromJSON,
ProviderEnumFromJSONTyped,
ProviderEnumToJSON,
ProviderEnumToJSONTyped,
} from './ProviderEnum';
import type { AuthTypeEnum } from './AuthTypeEnum';
import {
AuthTypeEnumFromJSON,
AuthTypeEnumFromJSONTyped,
AuthTypeEnumToJSON,
AuthTypeEnumToJSONTyped,
} from './AuthTypeEnum';
import type { AuthTypeEnum } from "./AuthTypeEnum";
import { AuthTypeEnumFromJSON, AuthTypeEnumToJSON } from "./AuthTypeEnum";
import type { ProviderEnum } from "./ProviderEnum";
import { ProviderEnumFromJSON, ProviderEnumToJSON } from "./ProviderEnum";
/**
* AuthenticatorSMSStage Serializer
@@ -35,7 +24,7 @@ import {
*/
export interface AuthenticatorSMSStageRequest {
/**
*
*
* @type {string}
* @memberof AuthenticatorSMSStageRequest
*/
@@ -47,43 +36,43 @@ export interface AuthenticatorSMSStageRequest {
*/
configureFlow?: string | null;
/**
*
*
* @type {string}
* @memberof AuthenticatorSMSStageRequest
*/
friendlyName?: string;
/**
*
*
* @type {ProviderEnum}
* @memberof AuthenticatorSMSStageRequest
*/
provider: ProviderEnum;
/**
*
*
* @type {string}
* @memberof AuthenticatorSMSStageRequest
*/
fromNumber: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorSMSStageRequest
*/
accountSid: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorSMSStageRequest
*/
auth: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorSMSStageRequest
*/
authPassword?: string;
/**
*
*
* @type {AuthTypeEnum}
* @memberof AuthenticatorSMSStageRequest
*/
@@ -102,17 +91,17 @@ export interface AuthenticatorSMSStageRequest {
mapping?: string | null;
}
/**
* Check if a given object implements the AuthenticatorSMSStageRequest interface.
*/
export function instanceOfAuthenticatorSMSStageRequest(value: object): value is AuthenticatorSMSStageRequest {
if (!('name' in value) || value['name'] === undefined) return false;
if (!('provider' in value) || value['provider'] === undefined) return false;
if (!('fromNumber' in value) || value['fromNumber'] === undefined) return false;
if (!('accountSid' in value) || value['accountSid'] === undefined) return false;
if (!('auth' in value) || value['auth'] === undefined) return false;
export function instanceOfAuthenticatorSMSStageRequest(
value: object,
): value is AuthenticatorSMSStageRequest {
if (!("name" in value) || value["name"] === undefined) return false;
if (!("provider" in value) || value["provider"] === undefined) return false;
if (!("fromNumber" in value) || value["fromNumber"] === undefined) return false;
if (!("accountSid" in value) || value["accountSid"] === undefined) return false;
if (!("auth" in value) || value["auth"] === undefined) return false;
return true;
}
@@ -120,23 +109,25 @@ export function AuthenticatorSMSStageRequestFromJSON(json: any): AuthenticatorSM
return AuthenticatorSMSStageRequestFromJSONTyped(json, false);
}
export function AuthenticatorSMSStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorSMSStageRequest {
export function AuthenticatorSMSStageRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorSMSStageRequest {
if (json == null) {
return json;
}
return {
'name': json['name'],
'configureFlow': json['configure_flow'] == null ? undefined : json['configure_flow'],
'friendlyName': json['friendly_name'] == null ? undefined : json['friendly_name'],
'provider': ProviderEnumFromJSON(json['provider']),
'fromNumber': json['from_number'],
'accountSid': json['account_sid'],
'auth': json['auth'],
'authPassword': json['auth_password'] == null ? undefined : json['auth_password'],
'authType': json['auth_type'] == null ? undefined : AuthTypeEnumFromJSON(json['auth_type']),
'verifyOnly': json['verify_only'] == null ? undefined : json['verify_only'],
'mapping': json['mapping'] == null ? undefined : json['mapping'],
name: json["name"],
configureFlow: json["configure_flow"] == null ? undefined : json["configure_flow"],
friendlyName: json["friendly_name"] == null ? undefined : json["friendly_name"],
provider: ProviderEnumFromJSON(json["provider"]),
fromNumber: json["from_number"],
accountSid: json["account_sid"],
auth: json["auth"],
authPassword: json["auth_password"] == null ? undefined : json["auth_password"],
authType: json["auth_type"] == null ? undefined : AuthTypeEnumFromJSON(json["auth_type"]),
verifyOnly: json["verify_only"] == null ? undefined : json["verify_only"],
mapping: json["mapping"] == null ? undefined : json["mapping"],
};
}
@@ -144,24 +135,25 @@ export function AuthenticatorSMSStageRequestToJSON(json: any): AuthenticatorSMSS
return AuthenticatorSMSStageRequestToJSONTyped(json, false);
}
export function AuthenticatorSMSStageRequestToJSONTyped(value?: AuthenticatorSMSStageRequest | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatorSMSStageRequestToJSONTyped(
value?: AuthenticatorSMSStageRequest | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'configure_flow': value['configureFlow'],
'friendly_name': value['friendlyName'],
'provider': ProviderEnumToJSON(value['provider']),
'from_number': value['fromNumber'],
'account_sid': value['accountSid'],
'auth': value['auth'],
'auth_password': value['authPassword'],
'auth_type': AuthTypeEnumToJSON(value['authType']),
'verify_only': value['verifyOnly'],
'mapping': value['mapping'],
name: value["name"],
configure_flow: value["configureFlow"],
friendly_name: value["friendlyName"],
provider: ProviderEnumToJSON(value["provider"]),
from_number: value["fromNumber"],
account_sid: value["accountSid"],
auth: value["auth"],
auth_password: value["authPassword"],
auth_type: AuthTypeEnumToJSON(value["authType"]),
verify_only: value["verifyOnly"],
mapping: value["mapping"],
};
}

View File

@@ -12,21 +12,9 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { ErrorDetail } from './ErrorDetail';
import {
ErrorDetailFromJSON,
ErrorDetailFromJSONTyped,
ErrorDetailToJSON,
ErrorDetailToJSONTyped,
} from './ErrorDetail';
import type { ContextualFlowInfo } from './ContextualFlowInfo';
import {
ContextualFlowInfoFromJSON,
ContextualFlowInfoFromJSONTyped,
ContextualFlowInfoToJSON,
ContextualFlowInfoToJSONTyped,
} from './ContextualFlowInfo';
import type { ContextualFlowInfo } from "./ContextualFlowInfo";
import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON } from "./ContextualFlowInfo";
import type { ErrorDetail } from "./ErrorDetail";
/**
* Static authenticator challenge
@@ -35,37 +23,37 @@ import {
*/
export interface AuthenticatorStaticChallenge {
/**
*
*
* @type {ContextualFlowInfo}
* @memberof AuthenticatorStaticChallenge
*/
flowInfo?: ContextualFlowInfo;
/**
*
*
* @type {string}
* @memberof AuthenticatorStaticChallenge
*/
component?: string;
/**
*
*
* @type {{ [key: string]: Array<ErrorDetail>; }}
* @memberof AuthenticatorStaticChallenge
*/
responseErrors?: { [key: string]: Array<ErrorDetail>; };
responseErrors?: { [key: string]: Array<ErrorDetail> };
/**
*
*
* @type {string}
* @memberof AuthenticatorStaticChallenge
*/
pendingUser: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorStaticChallenge
*/
pendingUserAvatar: string;
/**
*
*
* @type {Array<string>}
* @memberof AuthenticatorStaticChallenge
*/
@@ -75,10 +63,12 @@ export interface AuthenticatorStaticChallenge {
/**
* Check if a given object implements the AuthenticatorStaticChallenge interface.
*/
export function instanceOfAuthenticatorStaticChallenge(value: object): value is AuthenticatorStaticChallenge {
if (!('pendingUser' in value) || value['pendingUser'] === undefined) return false;
if (!('pendingUserAvatar' in value) || value['pendingUserAvatar'] === undefined) return false;
if (!('codes' in value) || value['codes'] === undefined) return false;
export function instanceOfAuthenticatorStaticChallenge(
value: object,
): value is AuthenticatorStaticChallenge {
if (!("pendingUser" in value) || value["pendingUser"] === undefined) return false;
if (!("pendingUserAvatar" in value) || value["pendingUserAvatar"] === undefined) return false;
if (!("codes" in value) || value["codes"] === undefined) return false;
return true;
}
@@ -86,18 +76,21 @@ export function AuthenticatorStaticChallengeFromJSON(json: any): AuthenticatorSt
return AuthenticatorStaticChallengeFromJSONTyped(json, false);
}
export function AuthenticatorStaticChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorStaticChallenge {
export function AuthenticatorStaticChallengeFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorStaticChallenge {
if (json == null) {
return json;
}
return {
'flowInfo': json['flow_info'] == null ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
'component': json['component'] == null ? undefined : json['component'],
'responseErrors': json['response_errors'] == null ? undefined : json['response_errors'],
'pendingUser': json['pending_user'],
'pendingUserAvatar': json['pending_user_avatar'],
'codes': json['codes'],
flowInfo:
json["flow_info"] == null ? undefined : ContextualFlowInfoFromJSON(json["flow_info"]),
component: json["component"] == null ? undefined : json["component"],
responseErrors: json["response_errors"] == null ? undefined : json["response_errors"],
pendingUser: json["pending_user"],
pendingUserAvatar: json["pending_user_avatar"],
codes: json["codes"],
};
}
@@ -105,19 +98,20 @@ export function AuthenticatorStaticChallengeToJSON(json: any): AuthenticatorStat
return AuthenticatorStaticChallengeToJSONTyped(json, false);
}
export function AuthenticatorStaticChallengeToJSONTyped(value?: AuthenticatorStaticChallenge | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatorStaticChallengeToJSONTyped(
value?: AuthenticatorStaticChallenge | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'flow_info': ContextualFlowInfoToJSON(value['flowInfo']),
'component': value['component'],
'response_errors': value['responseErrors'],
'pending_user': value['pendingUser'],
'pending_user_avatar': value['pendingUserAvatar'],
'codes': value['codes'],
flow_info: ContextualFlowInfoToJSON(value["flowInfo"]),
component: value["component"],
response_errors: value["responseErrors"],
pending_user: value["pendingUser"],
pending_user_avatar: value["pendingUserAvatar"],
codes: value["codes"],
};
}

View File

@@ -12,7 +12,6 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
* Pseudo class for static response
* @export
@@ -20,7 +19,7 @@ import { mapValues } from '../runtime';
*/
export interface AuthenticatorStaticChallengeResponseRequest {
/**
*
*
* @type {string}
* @memberof AuthenticatorStaticChallengeResponseRequest
*/
@@ -30,36 +29,45 @@ export interface AuthenticatorStaticChallengeResponseRequest {
/**
* Check if a given object implements the AuthenticatorStaticChallengeResponseRequest interface.
*/
export function instanceOfAuthenticatorStaticChallengeResponseRequest(value: object): value is AuthenticatorStaticChallengeResponseRequest {
export function instanceOfAuthenticatorStaticChallengeResponseRequest(
value: object,
): value is AuthenticatorStaticChallengeResponseRequest {
return true;
}
export function AuthenticatorStaticChallengeResponseRequestFromJSON(json: any): AuthenticatorStaticChallengeResponseRequest {
export function AuthenticatorStaticChallengeResponseRequestFromJSON(
json: any,
): AuthenticatorStaticChallengeResponseRequest {
return AuthenticatorStaticChallengeResponseRequestFromJSONTyped(json, false);
}
export function AuthenticatorStaticChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorStaticChallengeResponseRequest {
export function AuthenticatorStaticChallengeResponseRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorStaticChallengeResponseRequest {
if (json == null) {
return json;
}
return {
'component': json['component'] == null ? undefined : json['component'],
component: json["component"] == null ? undefined : json["component"],
};
}
export function AuthenticatorStaticChallengeResponseRequestToJSON(json: any): AuthenticatorStaticChallengeResponseRequest {
export function AuthenticatorStaticChallengeResponseRequestToJSON(
json: any,
): AuthenticatorStaticChallengeResponseRequest {
return AuthenticatorStaticChallengeResponseRequestToJSONTyped(json, false);
}
export function AuthenticatorStaticChallengeResponseRequestToJSONTyped(value?: AuthenticatorStaticChallengeResponseRequest | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatorStaticChallengeResponseRequestToJSONTyped(
value?: AuthenticatorStaticChallengeResponseRequest | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'component': value['component'],
component: value["component"],
};
}

View File

@@ -12,14 +12,8 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { FlowSet } from './FlowSet';
import {
FlowSetFromJSON,
FlowSetFromJSONTyped,
FlowSetToJSON,
FlowSetToJSONTyped,
} from './FlowSet';
import type { FlowSet } from "./FlowSet";
import { FlowSetFromJSON } from "./FlowSet";
/**
* AuthenticatorStaticStage Serializer
@@ -28,13 +22,13 @@ import {
*/
export interface AuthenticatorStaticStage {
/**
*
*
* @type {string}
* @memberof AuthenticatorStaticStage
*/
readonly pk: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorStaticStage
*/
@@ -64,7 +58,7 @@ export interface AuthenticatorStaticStage {
*/
readonly metaModelName: string;
/**
*
*
* @type {Array<FlowSet>}
* @memberof AuthenticatorStaticStage
*/
@@ -76,19 +70,19 @@ export interface AuthenticatorStaticStage {
*/
configureFlow?: string | null;
/**
*
*
* @type {string}
* @memberof AuthenticatorStaticStage
*/
friendlyName?: string;
/**
*
*
* @type {number}
* @memberof AuthenticatorStaticStage
*/
tokenCount?: number;
/**
*
*
* @type {number}
* @memberof AuthenticatorStaticStage
*/
@@ -98,14 +92,16 @@ export interface AuthenticatorStaticStage {
/**
* Check if a given object implements the AuthenticatorStaticStage interface.
*/
export function instanceOfAuthenticatorStaticStage(value: object): value is AuthenticatorStaticStage {
if (!('pk' in value) || value['pk'] === undefined) return false;
if (!('name' in value) || value['name'] === undefined) return false;
if (!('component' in value) || value['component'] === undefined) return false;
if (!('verboseName' in value) || value['verboseName'] === undefined) return false;
if (!('verboseNamePlural' in value) || value['verboseNamePlural'] === undefined) return false;
if (!('metaModelName' in value) || value['metaModelName'] === undefined) return false;
if (!('flowSet' in value) || value['flowSet'] === undefined) return false;
export function instanceOfAuthenticatorStaticStage(
value: object,
): value is AuthenticatorStaticStage {
if (!("pk" in value) || value["pk"] === undefined) return false;
if (!("name" in value) || value["name"] === undefined) return false;
if (!("component" in value) || value["component"] === undefined) return false;
if (!("verboseName" in value) || value["verboseName"] === undefined) return false;
if (!("verboseNamePlural" in value) || value["verboseNamePlural"] === undefined) return false;
if (!("metaModelName" in value) || value["metaModelName"] === undefined) return false;
if (!("flowSet" in value) || value["flowSet"] === undefined) return false;
return true;
}
@@ -113,23 +109,25 @@ export function AuthenticatorStaticStageFromJSON(json: any): AuthenticatorStatic
return AuthenticatorStaticStageFromJSONTyped(json, false);
}
export function AuthenticatorStaticStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorStaticStage {
export function AuthenticatorStaticStageFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorStaticStage {
if (json == null) {
return json;
}
return {
'pk': json['pk'],
'name': json['name'],
'component': json['component'],
'verboseName': json['verbose_name'],
'verboseNamePlural': json['verbose_name_plural'],
'metaModelName': json['meta_model_name'],
'flowSet': ((json['flow_set'] as Array<any>).map(FlowSetFromJSON)),
'configureFlow': json['configure_flow'] == null ? undefined : json['configure_flow'],
'friendlyName': json['friendly_name'] == null ? undefined : json['friendly_name'],
'tokenCount': json['token_count'] == null ? undefined : json['token_count'],
'tokenLength': json['token_length'] == null ? undefined : json['token_length'],
pk: json["pk"],
name: json["name"],
component: json["component"],
verboseName: json["verbose_name"],
verboseNamePlural: json["verbose_name_plural"],
metaModelName: json["meta_model_name"],
flowSet: (json["flow_set"] as Array<any>).map(FlowSetFromJSON),
configureFlow: json["configure_flow"] == null ? undefined : json["configure_flow"],
friendlyName: json["friendly_name"] == null ? undefined : json["friendly_name"],
tokenCount: json["token_count"] == null ? undefined : json["token_count"],
tokenLength: json["token_length"] == null ? undefined : json["token_length"],
};
}
@@ -137,18 +135,22 @@ export function AuthenticatorStaticStageToJSON(json: any): AuthenticatorStaticSt
return AuthenticatorStaticStageToJSONTyped(json, false);
}
export function AuthenticatorStaticStageToJSONTyped(value?: Omit<AuthenticatorStaticStage, 'pk'|'component'|'verbose_name'|'verbose_name_plural'|'meta_model_name'|'flow_set'> | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatorStaticStageToJSONTyped(
value?: Omit<
AuthenticatorStaticStage,
"pk" | "component" | "verbose_name" | "verbose_name_plural" | "meta_model_name" | "flow_set"
> | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'configure_flow': value['configureFlow'],
'friendly_name': value['friendlyName'],
'token_count': value['tokenCount'],
'token_length': value['tokenLength'],
name: value["name"],
configure_flow: value["configureFlow"],
friendly_name: value["friendlyName"],
token_count: value["tokenCount"],
token_length: value["tokenLength"],
};
}

View File

@@ -12,7 +12,6 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
* AuthenticatorStaticStage Serializer
* @export
@@ -20,7 +19,7 @@ import { mapValues } from '../runtime';
*/
export interface AuthenticatorStaticStageRequest {
/**
*
*
* @type {string}
* @memberof AuthenticatorStaticStageRequest
*/
@@ -32,19 +31,19 @@ export interface AuthenticatorStaticStageRequest {
*/
configureFlow?: string | null;
/**
*
*
* @type {string}
* @memberof AuthenticatorStaticStageRequest
*/
friendlyName?: string;
/**
*
*
* @type {number}
* @memberof AuthenticatorStaticStageRequest
*/
tokenCount?: number;
/**
*
*
* @type {number}
* @memberof AuthenticatorStaticStageRequest
*/
@@ -54,26 +53,32 @@ export interface AuthenticatorStaticStageRequest {
/**
* Check if a given object implements the AuthenticatorStaticStageRequest interface.
*/
export function instanceOfAuthenticatorStaticStageRequest(value: object): value is AuthenticatorStaticStageRequest {
if (!('name' in value) || value['name'] === undefined) return false;
export function instanceOfAuthenticatorStaticStageRequest(
value: object,
): value is AuthenticatorStaticStageRequest {
if (!("name" in value) || value["name"] === undefined) return false;
return true;
}
export function AuthenticatorStaticStageRequestFromJSON(json: any): AuthenticatorStaticStageRequest {
export function AuthenticatorStaticStageRequestFromJSON(
json: any,
): AuthenticatorStaticStageRequest {
return AuthenticatorStaticStageRequestFromJSONTyped(json, false);
}
export function AuthenticatorStaticStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorStaticStageRequest {
export function AuthenticatorStaticStageRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorStaticStageRequest {
if (json == null) {
return json;
}
return {
'name': json['name'],
'configureFlow': json['configure_flow'] == null ? undefined : json['configure_flow'],
'friendlyName': json['friendly_name'] == null ? undefined : json['friendly_name'],
'tokenCount': json['token_count'] == null ? undefined : json['token_count'],
'tokenLength': json['token_length'] == null ? undefined : json['token_length'],
name: json["name"],
configureFlow: json["configure_flow"] == null ? undefined : json["configure_flow"],
friendlyName: json["friendly_name"] == null ? undefined : json["friendly_name"],
tokenCount: json["token_count"] == null ? undefined : json["token_count"],
tokenLength: json["token_length"] == null ? undefined : json["token_length"],
};
}
@@ -81,18 +86,19 @@ export function AuthenticatorStaticStageRequestToJSON(json: any): AuthenticatorS
return AuthenticatorStaticStageRequestToJSONTyped(json, false);
}
export function AuthenticatorStaticStageRequestToJSONTyped(value?: AuthenticatorStaticStageRequest | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatorStaticStageRequestToJSONTyped(
value?: AuthenticatorStaticStageRequest | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'configure_flow': value['configureFlow'],
'friendly_name': value['friendlyName'],
'token_count': value['tokenCount'],
'token_length': value['tokenLength'],
name: value["name"],
configure_flow: value["configureFlow"],
friendly_name: value["friendlyName"],
token_count: value["tokenCount"],
token_length: value["tokenLength"],
};
}

View File

@@ -12,21 +12,9 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { ErrorDetail } from './ErrorDetail';
import {
ErrorDetailFromJSON,
ErrorDetailFromJSONTyped,
ErrorDetailToJSON,
ErrorDetailToJSONTyped,
} from './ErrorDetail';
import type { ContextualFlowInfo } from './ContextualFlowInfo';
import {
ContextualFlowInfoFromJSON,
ContextualFlowInfoFromJSONTyped,
ContextualFlowInfoToJSON,
ContextualFlowInfoToJSONTyped,
} from './ContextualFlowInfo';
import type { ContextualFlowInfo } from "./ContextualFlowInfo";
import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON } from "./ContextualFlowInfo";
import type { ErrorDetail } from "./ErrorDetail";
/**
* TOTP Setup challenge
@@ -35,37 +23,37 @@ import {
*/
export interface AuthenticatorTOTPChallenge {
/**
*
*
* @type {ContextualFlowInfo}
* @memberof AuthenticatorTOTPChallenge
*/
flowInfo?: ContextualFlowInfo;
/**
*
*
* @type {string}
* @memberof AuthenticatorTOTPChallenge
*/
component?: string;
/**
*
*
* @type {{ [key: string]: Array<ErrorDetail>; }}
* @memberof AuthenticatorTOTPChallenge
*/
responseErrors?: { [key: string]: Array<ErrorDetail>; };
responseErrors?: { [key: string]: Array<ErrorDetail> };
/**
*
*
* @type {string}
* @memberof AuthenticatorTOTPChallenge
*/
pendingUser: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorTOTPChallenge
*/
pendingUserAvatar: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorTOTPChallenge
*/
@@ -75,10 +63,12 @@ export interface AuthenticatorTOTPChallenge {
/**
* Check if a given object implements the AuthenticatorTOTPChallenge interface.
*/
export function instanceOfAuthenticatorTOTPChallenge(value: object): value is AuthenticatorTOTPChallenge {
if (!('pendingUser' in value) || value['pendingUser'] === undefined) return false;
if (!('pendingUserAvatar' in value) || value['pendingUserAvatar'] === undefined) return false;
if (!('configUrl' in value) || value['configUrl'] === undefined) return false;
export function instanceOfAuthenticatorTOTPChallenge(
value: object,
): value is AuthenticatorTOTPChallenge {
if (!("pendingUser" in value) || value["pendingUser"] === undefined) return false;
if (!("pendingUserAvatar" in value) || value["pendingUserAvatar"] === undefined) return false;
if (!("configUrl" in value) || value["configUrl"] === undefined) return false;
return true;
}
@@ -86,18 +76,21 @@ export function AuthenticatorTOTPChallengeFromJSON(json: any): AuthenticatorTOTP
return AuthenticatorTOTPChallengeFromJSONTyped(json, false);
}
export function AuthenticatorTOTPChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorTOTPChallenge {
export function AuthenticatorTOTPChallengeFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorTOTPChallenge {
if (json == null) {
return json;
}
return {
'flowInfo': json['flow_info'] == null ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
'component': json['component'] == null ? undefined : json['component'],
'responseErrors': json['response_errors'] == null ? undefined : json['response_errors'],
'pendingUser': json['pending_user'],
'pendingUserAvatar': json['pending_user_avatar'],
'configUrl': json['config_url'],
flowInfo:
json["flow_info"] == null ? undefined : ContextualFlowInfoFromJSON(json["flow_info"]),
component: json["component"] == null ? undefined : json["component"],
responseErrors: json["response_errors"] == null ? undefined : json["response_errors"],
pendingUser: json["pending_user"],
pendingUserAvatar: json["pending_user_avatar"],
configUrl: json["config_url"],
};
}
@@ -105,19 +98,20 @@ export function AuthenticatorTOTPChallengeToJSON(json: any): AuthenticatorTOTPCh
return AuthenticatorTOTPChallengeToJSONTyped(json, false);
}
export function AuthenticatorTOTPChallengeToJSONTyped(value?: AuthenticatorTOTPChallenge | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatorTOTPChallengeToJSONTyped(
value?: AuthenticatorTOTPChallenge | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'flow_info': ContextualFlowInfoToJSON(value['flowInfo']),
'component': value['component'],
'response_errors': value['responseErrors'],
'pending_user': value['pendingUser'],
'pending_user_avatar': value['pendingUserAvatar'],
'config_url': value['configUrl'],
flow_info: ContextualFlowInfoToJSON(value["flowInfo"]),
component: value["component"],
response_errors: value["responseErrors"],
pending_user: value["pendingUser"],
pending_user_avatar: value["pendingUserAvatar"],
config_url: value["configUrl"],
};
}

View File

@@ -12,7 +12,6 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
* TOTP Challenge response, device is set by get_response_instance
* @export
@@ -20,13 +19,13 @@ import { mapValues } from '../runtime';
*/
export interface AuthenticatorTOTPChallengeResponseRequest {
/**
*
*
* @type {string}
* @memberof AuthenticatorTOTPChallengeResponseRequest
*/
component?: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorTOTPChallengeResponseRequest
*/
@@ -36,39 +35,48 @@ export interface AuthenticatorTOTPChallengeResponseRequest {
/**
* Check if a given object implements the AuthenticatorTOTPChallengeResponseRequest interface.
*/
export function instanceOfAuthenticatorTOTPChallengeResponseRequest(value: object): value is AuthenticatorTOTPChallengeResponseRequest {
if (!('code' in value) || value['code'] === undefined) return false;
export function instanceOfAuthenticatorTOTPChallengeResponseRequest(
value: object,
): value is AuthenticatorTOTPChallengeResponseRequest {
if (!("code" in value) || value["code"] === undefined) return false;
return true;
}
export function AuthenticatorTOTPChallengeResponseRequestFromJSON(json: any): AuthenticatorTOTPChallengeResponseRequest {
export function AuthenticatorTOTPChallengeResponseRequestFromJSON(
json: any,
): AuthenticatorTOTPChallengeResponseRequest {
return AuthenticatorTOTPChallengeResponseRequestFromJSONTyped(json, false);
}
export function AuthenticatorTOTPChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorTOTPChallengeResponseRequest {
export function AuthenticatorTOTPChallengeResponseRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorTOTPChallengeResponseRequest {
if (json == null) {
return json;
}
return {
'component': json['component'] == null ? undefined : json['component'],
'code': json['code'],
component: json["component"] == null ? undefined : json["component"],
code: json["code"],
};
}
export function AuthenticatorTOTPChallengeResponseRequestToJSON(json: any): AuthenticatorTOTPChallengeResponseRequest {
export function AuthenticatorTOTPChallengeResponseRequestToJSON(
json: any,
): AuthenticatorTOTPChallengeResponseRequest {
return AuthenticatorTOTPChallengeResponseRequestToJSONTyped(json, false);
}
export function AuthenticatorTOTPChallengeResponseRequestToJSONTyped(value?: AuthenticatorTOTPChallengeResponseRequest | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatorTOTPChallengeResponseRequestToJSONTyped(
value?: AuthenticatorTOTPChallengeResponseRequest | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'component': value['component'],
'code': value['code'],
component: value["component"],
code: value["code"],
};
}

View File

@@ -12,21 +12,10 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { DigitsEnum } from './DigitsEnum';
import {
DigitsEnumFromJSON,
DigitsEnumFromJSONTyped,
DigitsEnumToJSON,
DigitsEnumToJSONTyped,
} from './DigitsEnum';
import type { FlowSet } from './FlowSet';
import {
FlowSetFromJSON,
FlowSetFromJSONTyped,
FlowSetToJSON,
FlowSetToJSONTyped,
} from './FlowSet';
import type { DigitsEnum } from "./DigitsEnum";
import { DigitsEnumFromJSON, DigitsEnumToJSON } from "./DigitsEnum";
import type { FlowSet } from "./FlowSet";
import { FlowSetFromJSON } from "./FlowSet";
/**
* AuthenticatorTOTPStage Serializer
@@ -35,13 +24,13 @@ import {
*/
export interface AuthenticatorTOTPStage {
/**
*
*
* @type {string}
* @memberof AuthenticatorTOTPStage
*/
readonly pk: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorTOTPStage
*/
@@ -71,7 +60,7 @@ export interface AuthenticatorTOTPStage {
*/
readonly metaModelName: string;
/**
*
*
* @type {Array<FlowSet>}
* @memberof AuthenticatorTOTPStage
*/
@@ -83,33 +72,31 @@ export interface AuthenticatorTOTPStage {
*/
configureFlow?: string | null;
/**
*
*
* @type {string}
* @memberof AuthenticatorTOTPStage
*/
friendlyName?: string;
/**
*
*
* @type {DigitsEnum}
* @memberof AuthenticatorTOTPStage
*/
digits: DigitsEnum;
}
/**
* Check if a given object implements the AuthenticatorTOTPStage interface.
*/
export function instanceOfAuthenticatorTOTPStage(value: object): value is AuthenticatorTOTPStage {
if (!('pk' in value) || value['pk'] === undefined) return false;
if (!('name' in value) || value['name'] === undefined) return false;
if (!('component' in value) || value['component'] === undefined) return false;
if (!('verboseName' in value) || value['verboseName'] === undefined) return false;
if (!('verboseNamePlural' in value) || value['verboseNamePlural'] === undefined) return false;
if (!('metaModelName' in value) || value['metaModelName'] === undefined) return false;
if (!('flowSet' in value) || value['flowSet'] === undefined) return false;
if (!('digits' in value) || value['digits'] === undefined) return false;
if (!("pk" in value) || value["pk"] === undefined) return false;
if (!("name" in value) || value["name"] === undefined) return false;
if (!("component" in value) || value["component"] === undefined) return false;
if (!("verboseName" in value) || value["verboseName"] === undefined) return false;
if (!("verboseNamePlural" in value) || value["verboseNamePlural"] === undefined) return false;
if (!("metaModelName" in value) || value["metaModelName"] === undefined) return false;
if (!("flowSet" in value) || value["flowSet"] === undefined) return false;
if (!("digits" in value) || value["digits"] === undefined) return false;
return true;
}
@@ -117,22 +104,24 @@ export function AuthenticatorTOTPStageFromJSON(json: any): AuthenticatorTOTPStag
return AuthenticatorTOTPStageFromJSONTyped(json, false);
}
export function AuthenticatorTOTPStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorTOTPStage {
export function AuthenticatorTOTPStageFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorTOTPStage {
if (json == null) {
return json;
}
return {
'pk': json['pk'],
'name': json['name'],
'component': json['component'],
'verboseName': json['verbose_name'],
'verboseNamePlural': json['verbose_name_plural'],
'metaModelName': json['meta_model_name'],
'flowSet': ((json['flow_set'] as Array<any>).map(FlowSetFromJSON)),
'configureFlow': json['configure_flow'] == null ? undefined : json['configure_flow'],
'friendlyName': json['friendly_name'] == null ? undefined : json['friendly_name'],
'digits': DigitsEnumFromJSON(json['digits']),
pk: json["pk"],
name: json["name"],
component: json["component"],
verboseName: json["verbose_name"],
verboseNamePlural: json["verbose_name_plural"],
metaModelName: json["meta_model_name"],
flowSet: (json["flow_set"] as Array<any>).map(FlowSetFromJSON),
configureFlow: json["configure_flow"] == null ? undefined : json["configure_flow"],
friendlyName: json["friendly_name"] == null ? undefined : json["friendly_name"],
digits: DigitsEnumFromJSON(json["digits"]),
};
}
@@ -140,17 +129,21 @@ export function AuthenticatorTOTPStageToJSON(json: any): AuthenticatorTOTPStage
return AuthenticatorTOTPStageToJSONTyped(json, false);
}
export function AuthenticatorTOTPStageToJSONTyped(value?: Omit<AuthenticatorTOTPStage, 'pk'|'component'|'verbose_name'|'verbose_name_plural'|'meta_model_name'|'flow_set'> | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatorTOTPStageToJSONTyped(
value?: Omit<
AuthenticatorTOTPStage,
"pk" | "component" | "verbose_name" | "verbose_name_plural" | "meta_model_name" | "flow_set"
> | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'configure_flow': value['configureFlow'],
'friendly_name': value['friendlyName'],
'digits': DigitsEnumToJSON(value['digits']),
name: value["name"],
configure_flow: value["configureFlow"],
friendly_name: value["friendlyName"],
digits: DigitsEnumToJSON(value["digits"]),
};
}

View File

@@ -12,14 +12,8 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { DigitsEnum } from './DigitsEnum';
import {
DigitsEnumFromJSON,
DigitsEnumFromJSONTyped,
DigitsEnumToJSON,
DigitsEnumToJSONTyped,
} from './DigitsEnum';
import type { DigitsEnum } from "./DigitsEnum";
import { DigitsEnumFromJSON, DigitsEnumToJSON } from "./DigitsEnum";
/**
* AuthenticatorTOTPStage Serializer
@@ -28,7 +22,7 @@ import {
*/
export interface AuthenticatorTOTPStageRequest {
/**
*
*
* @type {string}
* @memberof AuthenticatorTOTPStageRequest
*/
@@ -40,27 +34,27 @@ export interface AuthenticatorTOTPStageRequest {
*/
configureFlow?: string | null;
/**
*
*
* @type {string}
* @memberof AuthenticatorTOTPStageRequest
*/
friendlyName?: string;
/**
*
*
* @type {DigitsEnum}
* @memberof AuthenticatorTOTPStageRequest
*/
digits: DigitsEnum;
}
/**
* Check if a given object implements the AuthenticatorTOTPStageRequest interface.
*/
export function instanceOfAuthenticatorTOTPStageRequest(value: object): value is AuthenticatorTOTPStageRequest {
if (!('name' in value) || value['name'] === undefined) return false;
if (!('digits' in value) || value['digits'] === undefined) return false;
export function instanceOfAuthenticatorTOTPStageRequest(
value: object,
): value is AuthenticatorTOTPStageRequest {
if (!("name" in value) || value["name"] === undefined) return false;
if (!("digits" in value) || value["digits"] === undefined) return false;
return true;
}
@@ -68,16 +62,18 @@ export function AuthenticatorTOTPStageRequestFromJSON(json: any): AuthenticatorT
return AuthenticatorTOTPStageRequestFromJSONTyped(json, false);
}
export function AuthenticatorTOTPStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorTOTPStageRequest {
export function AuthenticatorTOTPStageRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorTOTPStageRequest {
if (json == null) {
return json;
}
return {
'name': json['name'],
'configureFlow': json['configure_flow'] == null ? undefined : json['configure_flow'],
'friendlyName': json['friendly_name'] == null ? undefined : json['friendly_name'],
'digits': DigitsEnumFromJSON(json['digits']),
name: json["name"],
configureFlow: json["configure_flow"] == null ? undefined : json["configure_flow"],
friendlyName: json["friendly_name"] == null ? undefined : json["friendly_name"],
digits: DigitsEnumFromJSON(json["digits"]),
};
}
@@ -85,17 +81,18 @@ export function AuthenticatorTOTPStageRequestToJSON(json: any): AuthenticatorTOT
return AuthenticatorTOTPStageRequestToJSONTyped(json, false);
}
export function AuthenticatorTOTPStageRequestToJSONTyped(value?: AuthenticatorTOTPStageRequest | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatorTOTPStageRequestToJSONTyped(
value?: AuthenticatorTOTPStageRequest | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'configure_flow': value['configureFlow'],
'friendly_name': value['friendlyName'],
'digits': DigitsEnumToJSON(value['digits']),
name: value["name"],
configure_flow: value["configureFlow"],
friendly_name: value["friendlyName"],
digits: DigitsEnumToJSON(value["digits"]),
};
}

View File

@@ -12,49 +12,21 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { WebAuthnHintEnum } from './WebAuthnHintEnum';
import {
WebAuthnHintEnumFromJSON,
WebAuthnHintEnumFromJSONTyped,
WebAuthnHintEnumToJSON,
WebAuthnHintEnumToJSONTyped,
} from './WebAuthnHintEnum';
import type { WebAuthnDeviceType } from './WebAuthnDeviceType';
import {
WebAuthnDeviceTypeFromJSON,
WebAuthnDeviceTypeFromJSONTyped,
WebAuthnDeviceTypeToJSON,
WebAuthnDeviceTypeToJSONTyped,
} from './WebAuthnDeviceType';
import type { UserVerificationEnum } from './UserVerificationEnum';
import {
UserVerificationEnumFromJSON,
UserVerificationEnumFromJSONTyped,
UserVerificationEnumToJSON,
UserVerificationEnumToJSONTyped,
} from './UserVerificationEnum';
import type { NotConfiguredActionEnum } from './NotConfiguredActionEnum';
import type { DeviceClassesEnum } from "./DeviceClassesEnum";
import { DeviceClassesEnumFromJSON, DeviceClassesEnumToJSON } from "./DeviceClassesEnum";
import type { FlowSet } from "./FlowSet";
import { FlowSetFromJSON } from "./FlowSet";
import type { NotConfiguredActionEnum } from "./NotConfiguredActionEnum";
import {
NotConfiguredActionEnumFromJSON,
NotConfiguredActionEnumFromJSONTyped,
NotConfiguredActionEnumToJSON,
NotConfiguredActionEnumToJSONTyped,
} from './NotConfiguredActionEnum';
import type { FlowSet } from './FlowSet';
import {
FlowSetFromJSON,
FlowSetFromJSONTyped,
FlowSetToJSON,
FlowSetToJSONTyped,
} from './FlowSet';
import type { DeviceClassesEnum } from './DeviceClassesEnum';
import {
DeviceClassesEnumFromJSON,
DeviceClassesEnumFromJSONTyped,
DeviceClassesEnumToJSON,
DeviceClassesEnumToJSONTyped,
} from './DeviceClassesEnum';
} from "./NotConfiguredActionEnum";
import type { UserVerificationEnum } from "./UserVerificationEnum";
import { UserVerificationEnumFromJSON, UserVerificationEnumToJSON } from "./UserVerificationEnum";
import type { WebAuthnDeviceType } from "./WebAuthnDeviceType";
import { WebAuthnDeviceTypeFromJSON } from "./WebAuthnDeviceType";
import type { WebAuthnHintEnum } from "./WebAuthnHintEnum";
import { WebAuthnHintEnumFromJSON, WebAuthnHintEnumToJSON } from "./WebAuthnHintEnum";
/**
* AuthenticatorValidateStage Serializer
@@ -63,13 +35,13 @@ import {
*/
export interface AuthenticatorValidateStage {
/**
*
*
* @type {string}
* @memberof AuthenticatorValidateStage
*/
readonly pk: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorValidateStage
*/
@@ -99,13 +71,13 @@ export interface AuthenticatorValidateStage {
*/
readonly metaModelName: string;
/**
*
*
* @type {Array<FlowSet>}
* @memberof AuthenticatorValidateStage
*/
readonly flowSet: Array<FlowSet>;
/**
*
*
* @type {NotConfiguredActionEnum}
* @memberof AuthenticatorValidateStage
*/
@@ -135,39 +107,43 @@ export interface AuthenticatorValidateStage {
*/
webauthnUserVerification?: UserVerificationEnum;
/**
*
*
* @type {Array<WebAuthnHintEnum>}
* @memberof AuthenticatorValidateStage
*/
webauthnHints?: Array<WebAuthnHintEnum>;
/**
*
*
* @type {Array<string>}
* @memberof AuthenticatorValidateStage
*/
webauthnAllowedDeviceTypes?: Array<string>;
/**
*
*
* @type {Array<WebAuthnDeviceType>}
* @memberof AuthenticatorValidateStage
*/
readonly webauthnAllowedDeviceTypesObj: Array<WebAuthnDeviceType>;
}
/**
* Check if a given object implements the AuthenticatorValidateStage interface.
*/
export function instanceOfAuthenticatorValidateStage(value: object): value is AuthenticatorValidateStage {
if (!('pk' in value) || value['pk'] === undefined) return false;
if (!('name' in value) || value['name'] === undefined) return false;
if (!('component' in value) || value['component'] === undefined) return false;
if (!('verboseName' in value) || value['verboseName'] === undefined) return false;
if (!('verboseNamePlural' in value) || value['verboseNamePlural'] === undefined) return false;
if (!('metaModelName' in value) || value['metaModelName'] === undefined) return false;
if (!('flowSet' in value) || value['flowSet'] === undefined) return false;
if (!('webauthnAllowedDeviceTypesObj' in value) || value['webauthnAllowedDeviceTypesObj'] === undefined) return false;
export function instanceOfAuthenticatorValidateStage(
value: object,
): value is AuthenticatorValidateStage {
if (!("pk" in value) || value["pk"] === undefined) return false;
if (!("name" in value) || value["name"] === undefined) return false;
if (!("component" in value) || value["component"] === undefined) return false;
if (!("verboseName" in value) || value["verboseName"] === undefined) return false;
if (!("verboseNamePlural" in value) || value["verboseNamePlural"] === undefined) return false;
if (!("metaModelName" in value) || value["metaModelName"] === undefined) return false;
if (!("flowSet" in value) || value["flowSet"] === undefined) return false;
if (
!("webauthnAllowedDeviceTypesObj" in value) ||
value["webauthnAllowedDeviceTypesObj"] === undefined
)
return false;
return true;
}
@@ -175,27 +151,48 @@ export function AuthenticatorValidateStageFromJSON(json: any): AuthenticatorVali
return AuthenticatorValidateStageFromJSONTyped(json, false);
}
export function AuthenticatorValidateStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorValidateStage {
export function AuthenticatorValidateStageFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorValidateStage {
if (json == null) {
return json;
}
return {
'pk': json['pk'],
'name': json['name'],
'component': json['component'],
'verboseName': json['verbose_name'],
'verboseNamePlural': json['verbose_name_plural'],
'metaModelName': json['meta_model_name'],
'flowSet': ((json['flow_set'] as Array<any>).map(FlowSetFromJSON)),
'notConfiguredAction': json['not_configured_action'] == null ? undefined : NotConfiguredActionEnumFromJSON(json['not_configured_action']),
'deviceClasses': json['device_classes'] == null ? undefined : ((json['device_classes'] as Array<any>).map(DeviceClassesEnumFromJSON)),
'configurationStages': json['configuration_stages'] == null ? undefined : json['configuration_stages'],
'lastAuthThreshold': json['last_auth_threshold'] == null ? undefined : json['last_auth_threshold'],
'webauthnUserVerification': json['webauthn_user_verification'] == null ? undefined : UserVerificationEnumFromJSON(json['webauthn_user_verification']),
'webauthnHints': json['webauthn_hints'] == null ? undefined : ((json['webauthn_hints'] as Array<any>).map(WebAuthnHintEnumFromJSON)),
'webauthnAllowedDeviceTypes': json['webauthn_allowed_device_types'] == null ? undefined : json['webauthn_allowed_device_types'],
'webauthnAllowedDeviceTypesObj': ((json['webauthn_allowed_device_types_obj'] as Array<any>).map(WebAuthnDeviceTypeFromJSON)),
pk: json["pk"],
name: json["name"],
component: json["component"],
verboseName: json["verbose_name"],
verboseNamePlural: json["verbose_name_plural"],
metaModelName: json["meta_model_name"],
flowSet: (json["flow_set"] as Array<any>).map(FlowSetFromJSON),
notConfiguredAction:
json["not_configured_action"] == null
? undefined
: NotConfiguredActionEnumFromJSON(json["not_configured_action"]),
deviceClasses:
json["device_classes"] == null
? undefined
: (json["device_classes"] as Array<any>).map(DeviceClassesEnumFromJSON),
configurationStages:
json["configuration_stages"] == null ? undefined : json["configuration_stages"],
lastAuthThreshold:
json["last_auth_threshold"] == null ? undefined : json["last_auth_threshold"],
webauthnUserVerification:
json["webauthn_user_verification"] == null
? undefined
: UserVerificationEnumFromJSON(json["webauthn_user_verification"]),
webauthnHints:
json["webauthn_hints"] == null
? undefined
: (json["webauthn_hints"] as Array<any>).map(WebAuthnHintEnumFromJSON),
webauthnAllowedDeviceTypes:
json["webauthn_allowed_device_types"] == null
? undefined
: json["webauthn_allowed_device_types"],
webauthnAllowedDeviceTypesObj: (
json["webauthn_allowed_device_types_obj"] as Array<any>
).map(WebAuthnDeviceTypeFromJSON),
};
}
@@ -203,21 +200,37 @@ export function AuthenticatorValidateStageToJSON(json: any): AuthenticatorValida
return AuthenticatorValidateStageToJSONTyped(json, false);
}
export function AuthenticatorValidateStageToJSONTyped(value?: Omit<AuthenticatorValidateStage, 'pk'|'component'|'verbose_name'|'verbose_name_plural'|'meta_model_name'|'flow_set'|'webauthn_allowed_device_types_obj'> | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatorValidateStageToJSONTyped(
value?: Omit<
AuthenticatorValidateStage,
| "pk"
| "component"
| "verbose_name"
| "verbose_name_plural"
| "meta_model_name"
| "flow_set"
| "webauthn_allowed_device_types_obj"
> | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'not_configured_action': NotConfiguredActionEnumToJSON(value['notConfiguredAction']),
'device_classes': value['deviceClasses'] == null ? undefined : ((value['deviceClasses'] as Array<any>).map(DeviceClassesEnumToJSON)),
'configuration_stages': value['configurationStages'],
'last_auth_threshold': value['lastAuthThreshold'],
'webauthn_user_verification': UserVerificationEnumToJSON(value['webauthnUserVerification']),
'webauthn_hints': value['webauthnHints'] == null ? undefined : ((value['webauthnHints'] as Array<any>).map(WebAuthnHintEnumToJSON)),
'webauthn_allowed_device_types': value['webauthnAllowedDeviceTypes'],
name: value["name"],
not_configured_action: NotConfiguredActionEnumToJSON(value["notConfiguredAction"]),
device_classes:
value["deviceClasses"] == null
? undefined
: (value["deviceClasses"] as Array<any>).map(DeviceClassesEnumToJSON),
configuration_stages: value["configurationStages"],
last_auth_threshold: value["lastAuthThreshold"],
webauthn_user_verification: UserVerificationEnumToJSON(value["webauthnUserVerification"]),
webauthn_hints:
value["webauthnHints"] == null
? undefined
: (value["webauthnHints"] as Array<any>).map(WebAuthnHintEnumToJSON),
webauthn_allowed_device_types: value["webauthnAllowedDeviceTypes"],
};
}

View File

@@ -12,35 +12,17 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { WebAuthnHintEnum } from './WebAuthnHintEnum';
import {
WebAuthnHintEnumFromJSON,
WebAuthnHintEnumFromJSONTyped,
WebAuthnHintEnumToJSON,
WebAuthnHintEnumToJSONTyped,
} from './WebAuthnHintEnum';
import type { UserVerificationEnum } from './UserVerificationEnum';
import {
UserVerificationEnumFromJSON,
UserVerificationEnumFromJSONTyped,
UserVerificationEnumToJSON,
UserVerificationEnumToJSONTyped,
} from './UserVerificationEnum';
import type { NotConfiguredActionEnum } from './NotConfiguredActionEnum';
import type { DeviceClassesEnum } from "./DeviceClassesEnum";
import { DeviceClassesEnumFromJSON, DeviceClassesEnumToJSON } from "./DeviceClassesEnum";
import type { NotConfiguredActionEnum } from "./NotConfiguredActionEnum";
import {
NotConfiguredActionEnumFromJSON,
NotConfiguredActionEnumFromJSONTyped,
NotConfiguredActionEnumToJSON,
NotConfiguredActionEnumToJSONTyped,
} from './NotConfiguredActionEnum';
import type { DeviceClassesEnum } from './DeviceClassesEnum';
import {
DeviceClassesEnumFromJSON,
DeviceClassesEnumFromJSONTyped,
DeviceClassesEnumToJSON,
DeviceClassesEnumToJSONTyped,
} from './DeviceClassesEnum';
} from "./NotConfiguredActionEnum";
import type { UserVerificationEnum } from "./UserVerificationEnum";
import { UserVerificationEnumFromJSON, UserVerificationEnumToJSON } from "./UserVerificationEnum";
import type { WebAuthnHintEnum } from "./WebAuthnHintEnum";
import { WebAuthnHintEnumFromJSON, WebAuthnHintEnumToJSON } from "./WebAuthnHintEnum";
/**
* AuthenticatorValidateStage Serializer
@@ -49,13 +31,13 @@ import {
*/
export interface AuthenticatorValidateStageRequest {
/**
*
*
* @type {string}
* @memberof AuthenticatorValidateStageRequest
*/
name: string;
/**
*
*
* @type {NotConfiguredActionEnum}
* @memberof AuthenticatorValidateStageRequest
*/
@@ -85,69 +67,99 @@ export interface AuthenticatorValidateStageRequest {
*/
webauthnUserVerification?: UserVerificationEnum;
/**
*
*
* @type {Array<WebAuthnHintEnum>}
* @memberof AuthenticatorValidateStageRequest
*/
webauthnHints?: Array<WebAuthnHintEnum>;
/**
*
*
* @type {Array<string>}
* @memberof AuthenticatorValidateStageRequest
*/
webauthnAllowedDeviceTypes?: Array<string>;
}
/**
* Check if a given object implements the AuthenticatorValidateStageRequest interface.
*/
export function instanceOfAuthenticatorValidateStageRequest(value: object): value is AuthenticatorValidateStageRequest {
if (!('name' in value) || value['name'] === undefined) return false;
export function instanceOfAuthenticatorValidateStageRequest(
value: object,
): value is AuthenticatorValidateStageRequest {
if (!("name" in value) || value["name"] === undefined) return false;
return true;
}
export function AuthenticatorValidateStageRequestFromJSON(json: any): AuthenticatorValidateStageRequest {
export function AuthenticatorValidateStageRequestFromJSON(
json: any,
): AuthenticatorValidateStageRequest {
return AuthenticatorValidateStageRequestFromJSONTyped(json, false);
}
export function AuthenticatorValidateStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorValidateStageRequest {
export function AuthenticatorValidateStageRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorValidateStageRequest {
if (json == null) {
return json;
}
return {
'name': json['name'],
'notConfiguredAction': json['not_configured_action'] == null ? undefined : NotConfiguredActionEnumFromJSON(json['not_configured_action']),
'deviceClasses': json['device_classes'] == null ? undefined : ((json['device_classes'] as Array<any>).map(DeviceClassesEnumFromJSON)),
'configurationStages': json['configuration_stages'] == null ? undefined : json['configuration_stages'],
'lastAuthThreshold': json['last_auth_threshold'] == null ? undefined : json['last_auth_threshold'],
'webauthnUserVerification': json['webauthn_user_verification'] == null ? undefined : UserVerificationEnumFromJSON(json['webauthn_user_verification']),
'webauthnHints': json['webauthn_hints'] == null ? undefined : ((json['webauthn_hints'] as Array<any>).map(WebAuthnHintEnumFromJSON)),
'webauthnAllowedDeviceTypes': json['webauthn_allowed_device_types'] == null ? undefined : json['webauthn_allowed_device_types'],
name: json["name"],
notConfiguredAction:
json["not_configured_action"] == null
? undefined
: NotConfiguredActionEnumFromJSON(json["not_configured_action"]),
deviceClasses:
json["device_classes"] == null
? undefined
: (json["device_classes"] as Array<any>).map(DeviceClassesEnumFromJSON),
configurationStages:
json["configuration_stages"] == null ? undefined : json["configuration_stages"],
lastAuthThreshold:
json["last_auth_threshold"] == null ? undefined : json["last_auth_threshold"],
webauthnUserVerification:
json["webauthn_user_verification"] == null
? undefined
: UserVerificationEnumFromJSON(json["webauthn_user_verification"]),
webauthnHints:
json["webauthn_hints"] == null
? undefined
: (json["webauthn_hints"] as Array<any>).map(WebAuthnHintEnumFromJSON),
webauthnAllowedDeviceTypes:
json["webauthn_allowed_device_types"] == null
? undefined
: json["webauthn_allowed_device_types"],
};
}
export function AuthenticatorValidateStageRequestToJSON(json: any): AuthenticatorValidateStageRequest {
export function AuthenticatorValidateStageRequestToJSON(
json: any,
): AuthenticatorValidateStageRequest {
return AuthenticatorValidateStageRequestToJSONTyped(json, false);
}
export function AuthenticatorValidateStageRequestToJSONTyped(value?: AuthenticatorValidateStageRequest | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatorValidateStageRequestToJSONTyped(
value?: AuthenticatorValidateStageRequest | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'not_configured_action': NotConfiguredActionEnumToJSON(value['notConfiguredAction']),
'device_classes': value['deviceClasses'] == null ? undefined : ((value['deviceClasses'] as Array<any>).map(DeviceClassesEnumToJSON)),
'configuration_stages': value['configurationStages'],
'last_auth_threshold': value['lastAuthThreshold'],
'webauthn_user_verification': UserVerificationEnumToJSON(value['webauthnUserVerification']),
'webauthn_hints': value['webauthnHints'] == null ? undefined : ((value['webauthnHints'] as Array<any>).map(WebAuthnHintEnumToJSON)),
'webauthn_allowed_device_types': value['webauthnAllowedDeviceTypes'],
name: value["name"],
not_configured_action: NotConfiguredActionEnumToJSON(value["notConfiguredAction"]),
device_classes:
value["deviceClasses"] == null
? undefined
: (value["deviceClasses"] as Array<any>).map(DeviceClassesEnumToJSON),
configuration_stages: value["configurationStages"],
last_auth_threshold: value["lastAuthThreshold"],
webauthn_user_verification: UserVerificationEnumToJSON(value["webauthnUserVerification"]),
webauthn_hints:
value["webauthnHints"] == null
? undefined
: (value["webauthnHints"] as Array<any>).map(WebAuthnHintEnumToJSON),
webauthn_allowed_device_types: value["webauthnAllowedDeviceTypes"],
};
}

View File

@@ -12,35 +12,13 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { ErrorDetail } from './ErrorDetail';
import {
ErrorDetailFromJSON,
ErrorDetailFromJSONTyped,
ErrorDetailToJSON,
ErrorDetailToJSONTyped,
} from './ErrorDetail';
import type { ContextualFlowInfo } from './ContextualFlowInfo';
import {
ContextualFlowInfoFromJSON,
ContextualFlowInfoFromJSONTyped,
ContextualFlowInfoToJSON,
ContextualFlowInfoToJSONTyped,
} from './ContextualFlowInfo';
import type { SelectableStage } from './SelectableStage';
import {
SelectableStageFromJSON,
SelectableStageFromJSONTyped,
SelectableStageToJSON,
SelectableStageToJSONTyped,
} from './SelectableStage';
import type { DeviceChallenge } from './DeviceChallenge';
import {
DeviceChallengeFromJSON,
DeviceChallengeFromJSONTyped,
DeviceChallengeToJSON,
DeviceChallengeToJSONTyped,
} from './DeviceChallenge';
import type { ContextualFlowInfo } from "./ContextualFlowInfo";
import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON } from "./ContextualFlowInfo";
import type { DeviceChallenge } from "./DeviceChallenge";
import { DeviceChallengeFromJSON, DeviceChallengeToJSON } from "./DeviceChallenge";
import type { ErrorDetail } from "./ErrorDetail";
import type { SelectableStage } from "./SelectableStage";
import { SelectableStageFromJSON, SelectableStageToJSON } from "./SelectableStage";
/**
* Authenticator challenge
@@ -49,43 +27,43 @@ import {
*/
export interface AuthenticatorValidationChallenge {
/**
*
*
* @type {ContextualFlowInfo}
* @memberof AuthenticatorValidationChallenge
*/
flowInfo?: ContextualFlowInfo;
/**
*
*
* @type {string}
* @memberof AuthenticatorValidationChallenge
*/
component?: string;
/**
*
*
* @type {{ [key: string]: Array<ErrorDetail>; }}
* @memberof AuthenticatorValidationChallenge
*/
responseErrors?: { [key: string]: Array<ErrorDetail>; };
responseErrors?: { [key: string]: Array<ErrorDetail> };
/**
*
*
* @type {string}
* @memberof AuthenticatorValidationChallenge
*/
pendingUser: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorValidationChallenge
*/
pendingUserAvatar: string;
/**
*
*
* @type {Array<DeviceChallenge>}
* @memberof AuthenticatorValidationChallenge
*/
deviceChallenges: Array<DeviceChallenge>;
/**
*
*
* @type {Array<SelectableStage>}
* @memberof AuthenticatorValidationChallenge
*/
@@ -95,52 +73,67 @@ export interface AuthenticatorValidationChallenge {
/**
* Check if a given object implements the AuthenticatorValidationChallenge interface.
*/
export function instanceOfAuthenticatorValidationChallenge(value: object): value is AuthenticatorValidationChallenge {
if (!('pendingUser' in value) || value['pendingUser'] === undefined) return false;
if (!('pendingUserAvatar' in value) || value['pendingUserAvatar'] === undefined) return false;
if (!('deviceChallenges' in value) || value['deviceChallenges'] === undefined) return false;
if (!('configurationStages' in value) || value['configurationStages'] === undefined) return false;
export function instanceOfAuthenticatorValidationChallenge(
value: object,
): value is AuthenticatorValidationChallenge {
if (!("pendingUser" in value) || value["pendingUser"] === undefined) return false;
if (!("pendingUserAvatar" in value) || value["pendingUserAvatar"] === undefined) return false;
if (!("deviceChallenges" in value) || value["deviceChallenges"] === undefined) return false;
if (!("configurationStages" in value) || value["configurationStages"] === undefined)
return false;
return true;
}
export function AuthenticatorValidationChallengeFromJSON(json: any): AuthenticatorValidationChallenge {
export function AuthenticatorValidationChallengeFromJSON(
json: any,
): AuthenticatorValidationChallenge {
return AuthenticatorValidationChallengeFromJSONTyped(json, false);
}
export function AuthenticatorValidationChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorValidationChallenge {
export function AuthenticatorValidationChallengeFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorValidationChallenge {
if (json == null) {
return json;
}
return {
'flowInfo': json['flow_info'] == null ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
'component': json['component'] == null ? undefined : json['component'],
'responseErrors': json['response_errors'] == null ? undefined : json['response_errors'],
'pendingUser': json['pending_user'],
'pendingUserAvatar': json['pending_user_avatar'],
'deviceChallenges': ((json['device_challenges'] as Array<any>).map(DeviceChallengeFromJSON)),
'configurationStages': ((json['configuration_stages'] as Array<any>).map(SelectableStageFromJSON)),
flowInfo:
json["flow_info"] == null ? undefined : ContextualFlowInfoFromJSON(json["flow_info"]),
component: json["component"] == null ? undefined : json["component"],
responseErrors: json["response_errors"] == null ? undefined : json["response_errors"],
pendingUser: json["pending_user"],
pendingUserAvatar: json["pending_user_avatar"],
deviceChallenges: (json["device_challenges"] as Array<any>).map(DeviceChallengeFromJSON),
configurationStages: (json["configuration_stages"] as Array<any>).map(
SelectableStageFromJSON,
),
};
}
export function AuthenticatorValidationChallengeToJSON(json: any): AuthenticatorValidationChallenge {
export function AuthenticatorValidationChallengeToJSON(
json: any,
): AuthenticatorValidationChallenge {
return AuthenticatorValidationChallengeToJSONTyped(json, false);
}
export function AuthenticatorValidationChallengeToJSONTyped(value?: AuthenticatorValidationChallenge | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatorValidationChallengeToJSONTyped(
value?: AuthenticatorValidationChallenge | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'flow_info': ContextualFlowInfoToJSON(value['flowInfo']),
'component': value['component'],
'response_errors': value['responseErrors'],
'pending_user': value['pendingUser'],
'pending_user_avatar': value['pendingUserAvatar'],
'device_challenges': ((value['deviceChallenges'] as Array<any>).map(DeviceChallengeToJSON)),
'configuration_stages': ((value['configurationStages'] as Array<any>).map(SelectableStageToJSON)),
flow_info: ContextualFlowInfoToJSON(value["flowInfo"]),
component: value["component"],
response_errors: value["responseErrors"],
pending_user: value["pendingUser"],
pending_user_avatar: value["pendingUserAvatar"],
device_challenges: (value["deviceChallenges"] as Array<any>).map(DeviceChallengeToJSON),
configuration_stages: (value["configurationStages"] as Array<any>).map(
SelectableStageToJSON,
),
};
}

View File

@@ -12,14 +12,11 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { DeviceChallengeRequest } from './DeviceChallengeRequest';
import type { DeviceChallengeRequest } from "./DeviceChallengeRequest";
import {
DeviceChallengeRequestFromJSON,
DeviceChallengeRequestFromJSONTyped,
DeviceChallengeRequestToJSON,
DeviceChallengeRequestToJSONTyped,
} from './DeviceChallengeRequest';
} from "./DeviceChallengeRequest";
/**
* Challenge used for Code-based and WebAuthn authenticators
@@ -28,37 +25,37 @@ import {
*/
export interface AuthenticatorValidationChallengeResponseRequest {
/**
*
*
* @type {string}
* @memberof AuthenticatorValidationChallengeResponseRequest
*/
component?: string;
/**
*
*
* @type {DeviceChallengeRequest}
* @memberof AuthenticatorValidationChallengeResponseRequest
*/
selectedChallenge?: DeviceChallengeRequest;
/**
*
*
* @type {string}
* @memberof AuthenticatorValidationChallengeResponseRequest
*/
selectedStage?: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorValidationChallengeResponseRequest
*/
code?: string;
/**
*
*
* @type {{ [key: string]: any; }}
* @memberof AuthenticatorValidationChallengeResponseRequest
*/
webauthn?: { [key: string]: any; };
webauthn?: { [key: string]: any };
/**
*
*
* @type {number}
* @memberof AuthenticatorValidationChallengeResponseRequest
*/
@@ -68,46 +65,58 @@ export interface AuthenticatorValidationChallengeResponseRequest {
/**
* Check if a given object implements the AuthenticatorValidationChallengeResponseRequest interface.
*/
export function instanceOfAuthenticatorValidationChallengeResponseRequest(value: object): value is AuthenticatorValidationChallengeResponseRequest {
export function instanceOfAuthenticatorValidationChallengeResponseRequest(
value: object,
): value is AuthenticatorValidationChallengeResponseRequest {
return true;
}
export function AuthenticatorValidationChallengeResponseRequestFromJSON(json: any): AuthenticatorValidationChallengeResponseRequest {
export function AuthenticatorValidationChallengeResponseRequestFromJSON(
json: any,
): AuthenticatorValidationChallengeResponseRequest {
return AuthenticatorValidationChallengeResponseRequestFromJSONTyped(json, false);
}
export function AuthenticatorValidationChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorValidationChallengeResponseRequest {
export function AuthenticatorValidationChallengeResponseRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorValidationChallengeResponseRequest {
if (json == null) {
return json;
}
return {
'component': json['component'] == null ? undefined : json['component'],
'selectedChallenge': json['selected_challenge'] == null ? undefined : DeviceChallengeRequestFromJSON(json['selected_challenge']),
'selectedStage': json['selected_stage'] == null ? undefined : json['selected_stage'],
'code': json['code'] == null ? undefined : json['code'],
'webauthn': json['webauthn'] == null ? undefined : json['webauthn'],
'duo': json['duo'] == null ? undefined : json['duo'],
component: json["component"] == null ? undefined : json["component"],
selectedChallenge:
json["selected_challenge"] == null
? undefined
: DeviceChallengeRequestFromJSON(json["selected_challenge"]),
selectedStage: json["selected_stage"] == null ? undefined : json["selected_stage"],
code: json["code"] == null ? undefined : json["code"],
webauthn: json["webauthn"] == null ? undefined : json["webauthn"],
duo: json["duo"] == null ? undefined : json["duo"],
};
}
export function AuthenticatorValidationChallengeResponseRequestToJSON(json: any): AuthenticatorValidationChallengeResponseRequest {
export function AuthenticatorValidationChallengeResponseRequestToJSON(
json: any,
): AuthenticatorValidationChallengeResponseRequest {
return AuthenticatorValidationChallengeResponseRequestToJSONTyped(json, false);
}
export function AuthenticatorValidationChallengeResponseRequestToJSONTyped(value?: AuthenticatorValidationChallengeResponseRequest | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatorValidationChallengeResponseRequestToJSONTyped(
value?: AuthenticatorValidationChallengeResponseRequest | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'component': value['component'],
'selected_challenge': DeviceChallengeRequestToJSON(value['selectedChallenge']),
'selected_stage': value['selectedStage'],
'code': value['code'],
'webauthn': value['webauthn'],
'duo': value['duo'],
component: value["component"],
selected_challenge: DeviceChallengeRequestToJSON(value["selectedChallenge"]),
selected_stage: value["selectedStage"],
code: value["code"],
webauthn: value["webauthn"],
duo: value["duo"],
};
}

View File

@@ -12,21 +12,9 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { ErrorDetail } from './ErrorDetail';
import {
ErrorDetailFromJSON,
ErrorDetailFromJSONTyped,
ErrorDetailToJSON,
ErrorDetailToJSONTyped,
} from './ErrorDetail';
import type { ContextualFlowInfo } from './ContextualFlowInfo';
import {
ContextualFlowInfoFromJSON,
ContextualFlowInfoFromJSONTyped,
ContextualFlowInfoToJSON,
ContextualFlowInfoToJSONTyped,
} from './ContextualFlowInfo';
import type { ContextualFlowInfo } from "./ContextualFlowInfo";
import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON } from "./ContextualFlowInfo";
import type { ErrorDetail } from "./ErrorDetail";
/**
* WebAuthn Challenge
@@ -35,50 +23,52 @@ import {
*/
export interface AuthenticatorWebAuthnChallenge {
/**
*
*
* @type {ContextualFlowInfo}
* @memberof AuthenticatorWebAuthnChallenge
*/
flowInfo?: ContextualFlowInfo;
/**
*
*
* @type {string}
* @memberof AuthenticatorWebAuthnChallenge
*/
component?: string;
/**
*
*
* @type {{ [key: string]: Array<ErrorDetail>; }}
* @memberof AuthenticatorWebAuthnChallenge
*/
responseErrors?: { [key: string]: Array<ErrorDetail>; };
responseErrors?: { [key: string]: Array<ErrorDetail> };
/**
*
*
* @type {string}
* @memberof AuthenticatorWebAuthnChallenge
*/
pendingUser: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorWebAuthnChallenge
*/
pendingUserAvatar: string;
/**
*
*
* @type {{ [key: string]: any; }}
* @memberof AuthenticatorWebAuthnChallenge
*/
registration: { [key: string]: any; };
registration: { [key: string]: any };
}
/**
* Check if a given object implements the AuthenticatorWebAuthnChallenge interface.
*/
export function instanceOfAuthenticatorWebAuthnChallenge(value: object): value is AuthenticatorWebAuthnChallenge {
if (!('pendingUser' in value) || value['pendingUser'] === undefined) return false;
if (!('pendingUserAvatar' in value) || value['pendingUserAvatar'] === undefined) return false;
if (!('registration' in value) || value['registration'] === undefined) return false;
export function instanceOfAuthenticatorWebAuthnChallenge(
value: object,
): value is AuthenticatorWebAuthnChallenge {
if (!("pendingUser" in value) || value["pendingUser"] === undefined) return false;
if (!("pendingUserAvatar" in value) || value["pendingUserAvatar"] === undefined) return false;
if (!("registration" in value) || value["registration"] === undefined) return false;
return true;
}
@@ -86,18 +76,21 @@ export function AuthenticatorWebAuthnChallengeFromJSON(json: any): Authenticator
return AuthenticatorWebAuthnChallengeFromJSONTyped(json, false);
}
export function AuthenticatorWebAuthnChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorWebAuthnChallenge {
export function AuthenticatorWebAuthnChallengeFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorWebAuthnChallenge {
if (json == null) {
return json;
}
return {
'flowInfo': json['flow_info'] == null ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
'component': json['component'] == null ? undefined : json['component'],
'responseErrors': json['response_errors'] == null ? undefined : json['response_errors'],
'pendingUser': json['pending_user'],
'pendingUserAvatar': json['pending_user_avatar'],
'registration': json['registration'],
flowInfo:
json["flow_info"] == null ? undefined : ContextualFlowInfoFromJSON(json["flow_info"]),
component: json["component"] == null ? undefined : json["component"],
responseErrors: json["response_errors"] == null ? undefined : json["response_errors"],
pendingUser: json["pending_user"],
pendingUserAvatar: json["pending_user_avatar"],
registration: json["registration"],
};
}
@@ -105,19 +98,20 @@ export function AuthenticatorWebAuthnChallengeToJSON(json: any): AuthenticatorWe
return AuthenticatorWebAuthnChallengeToJSONTyped(json, false);
}
export function AuthenticatorWebAuthnChallengeToJSONTyped(value?: AuthenticatorWebAuthnChallenge | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatorWebAuthnChallengeToJSONTyped(
value?: AuthenticatorWebAuthnChallenge | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'flow_info': ContextualFlowInfoToJSON(value['flowInfo']),
'component': value['component'],
'response_errors': value['responseErrors'],
'pending_user': value['pendingUser'],
'pending_user_avatar': value['pendingUserAvatar'],
'registration': value['registration'],
flow_info: ContextualFlowInfoToJSON(value["flowInfo"]),
component: value["component"],
response_errors: value["responseErrors"],
pending_user: value["pendingUser"],
pending_user_avatar: value["pendingUserAvatar"],
registration: value["registration"],
};
}

View File

@@ -12,7 +12,6 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
* WebAuthn Challenge response
* @export
@@ -20,55 +19,64 @@ import { mapValues } from '../runtime';
*/
export interface AuthenticatorWebAuthnChallengeResponseRequest {
/**
*
*
* @type {string}
* @memberof AuthenticatorWebAuthnChallengeResponseRequest
*/
component?: string;
/**
*
*
* @type {{ [key: string]: any; }}
* @memberof AuthenticatorWebAuthnChallengeResponseRequest
*/
response: { [key: string]: any; };
response: { [key: string]: any };
}
/**
* Check if a given object implements the AuthenticatorWebAuthnChallengeResponseRequest interface.
*/
export function instanceOfAuthenticatorWebAuthnChallengeResponseRequest(value: object): value is AuthenticatorWebAuthnChallengeResponseRequest {
if (!('response' in value) || value['response'] === undefined) return false;
export function instanceOfAuthenticatorWebAuthnChallengeResponseRequest(
value: object,
): value is AuthenticatorWebAuthnChallengeResponseRequest {
if (!("response" in value) || value["response"] === undefined) return false;
return true;
}
export function AuthenticatorWebAuthnChallengeResponseRequestFromJSON(json: any): AuthenticatorWebAuthnChallengeResponseRequest {
export function AuthenticatorWebAuthnChallengeResponseRequestFromJSON(
json: any,
): AuthenticatorWebAuthnChallengeResponseRequest {
return AuthenticatorWebAuthnChallengeResponseRequestFromJSONTyped(json, false);
}
export function AuthenticatorWebAuthnChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorWebAuthnChallengeResponseRequest {
export function AuthenticatorWebAuthnChallengeResponseRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorWebAuthnChallengeResponseRequest {
if (json == null) {
return json;
}
return {
'component': json['component'] == null ? undefined : json['component'],
'response': json['response'],
component: json["component"] == null ? undefined : json["component"],
response: json["response"],
};
}
export function AuthenticatorWebAuthnChallengeResponseRequestToJSON(json: any): AuthenticatorWebAuthnChallengeResponseRequest {
export function AuthenticatorWebAuthnChallengeResponseRequestToJSON(
json: any,
): AuthenticatorWebAuthnChallengeResponseRequest {
return AuthenticatorWebAuthnChallengeResponseRequestToJSONTyped(json, false);
}
export function AuthenticatorWebAuthnChallengeResponseRequestToJSONTyped(value?: AuthenticatorWebAuthnChallengeResponseRequest | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatorWebAuthnChallengeResponseRequestToJSONTyped(
value?: AuthenticatorWebAuthnChallengeResponseRequest | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'component': value['component'],
'response': value['response'],
component: value["component"],
response: value["response"],
};
}

View File

@@ -12,42 +12,19 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { WebAuthnHintEnum } from './WebAuthnHintEnum';
import {
WebAuthnHintEnumFromJSON,
WebAuthnHintEnumFromJSONTyped,
WebAuthnHintEnumToJSON,
WebAuthnHintEnumToJSONTyped,
} from './WebAuthnHintEnum';
import type { WebAuthnDeviceType } from './WebAuthnDeviceType';
import {
WebAuthnDeviceTypeFromJSON,
WebAuthnDeviceTypeFromJSONTyped,
WebAuthnDeviceTypeToJSON,
WebAuthnDeviceTypeToJSONTyped,
} from './WebAuthnDeviceType';
import type { UserVerificationEnum } from './UserVerificationEnum';
import {
UserVerificationEnumFromJSON,
UserVerificationEnumFromJSONTyped,
UserVerificationEnumToJSON,
UserVerificationEnumToJSONTyped,
} from './UserVerificationEnum';
import type { AuthenticatorAttachmentEnum } from './AuthenticatorAttachmentEnum';
import type { AuthenticatorAttachmentEnum } from "./AuthenticatorAttachmentEnum";
import {
AuthenticatorAttachmentEnumFromJSON,
AuthenticatorAttachmentEnumFromJSONTyped,
AuthenticatorAttachmentEnumToJSON,
AuthenticatorAttachmentEnumToJSONTyped,
} from './AuthenticatorAttachmentEnum';
import type { FlowSet } from './FlowSet';
import {
FlowSetFromJSON,
FlowSetFromJSONTyped,
FlowSetToJSON,
FlowSetToJSONTyped,
} from './FlowSet';
} from "./AuthenticatorAttachmentEnum";
import type { FlowSet } from "./FlowSet";
import { FlowSetFromJSON } from "./FlowSet";
import type { UserVerificationEnum } from "./UserVerificationEnum";
import { UserVerificationEnumFromJSON, UserVerificationEnumToJSON } from "./UserVerificationEnum";
import type { WebAuthnDeviceType } from "./WebAuthnDeviceType";
import { WebAuthnDeviceTypeFromJSON } from "./WebAuthnDeviceType";
import type { WebAuthnHintEnum } from "./WebAuthnHintEnum";
import { WebAuthnHintEnumFromJSON, WebAuthnHintEnumToJSON } from "./WebAuthnHintEnum";
/**
* AuthenticatorWebAuthnStage Serializer
@@ -56,13 +33,13 @@ import {
*/
export interface AuthenticatorWebAuthnStage {
/**
*
*
* @type {string}
* @memberof AuthenticatorWebAuthnStage
*/
readonly pk: string;
/**
*
*
* @type {string}
* @memberof AuthenticatorWebAuthnStage
*/
@@ -92,7 +69,7 @@ export interface AuthenticatorWebAuthnStage {
*/
readonly metaModelName: string;
/**
*
*
* @type {Array<FlowSet>}
* @memberof AuthenticatorWebAuthnStage
*/
@@ -104,43 +81,43 @@ export interface AuthenticatorWebAuthnStage {
*/
configureFlow?: string | null;
/**
*
*
* @type {string}
* @memberof AuthenticatorWebAuthnStage
*/
friendlyName?: string;
/**
*
*
* @type {UserVerificationEnum}
* @memberof AuthenticatorWebAuthnStage
*/
userVerification?: UserVerificationEnum;
/**
*
*
* @type {AuthenticatorAttachmentEnum}
* @memberof AuthenticatorWebAuthnStage
*/
authenticatorAttachment?: AuthenticatorAttachmentEnum | null;
/**
*
*
* @type {UserVerificationEnum}
* @memberof AuthenticatorWebAuthnStage
*/
residentKeyRequirement?: UserVerificationEnum;
/**
*
*
* @type {Array<WebAuthnHintEnum>}
* @memberof AuthenticatorWebAuthnStage
*/
hints?: Array<WebAuthnHintEnum>;
/**
*
*
* @type {Array<string>}
* @memberof AuthenticatorWebAuthnStage
*/
deviceTypeRestrictions?: Array<string>;
/**
*
*
* @type {Array<WebAuthnDeviceType>}
* @memberof AuthenticatorWebAuthnStage
*/
@@ -152,27 +129,28 @@ export interface AuthenticatorWebAuthnStage {
*/
preventDuplicateDevices?: boolean;
/**
*
*
* @type {number}
* @memberof AuthenticatorWebAuthnStage
*/
maxAttempts?: number;
}
/**
* Check if a given object implements the AuthenticatorWebAuthnStage interface.
*/
export function instanceOfAuthenticatorWebAuthnStage(value: object): value is AuthenticatorWebAuthnStage {
if (!('pk' in value) || value['pk'] === undefined) return false;
if (!('name' in value) || value['name'] === undefined) return false;
if (!('component' in value) || value['component'] === undefined) return false;
if (!('verboseName' in value) || value['verboseName'] === undefined) return false;
if (!('verboseNamePlural' in value) || value['verboseNamePlural'] === undefined) return false;
if (!('metaModelName' in value) || value['metaModelName'] === undefined) return false;
if (!('flowSet' in value) || value['flowSet'] === undefined) return false;
if (!('deviceTypeRestrictionsObj' in value) || value['deviceTypeRestrictionsObj'] === undefined) return false;
export function instanceOfAuthenticatorWebAuthnStage(
value: object,
): value is AuthenticatorWebAuthnStage {
if (!("pk" in value) || value["pk"] === undefined) return false;
if (!("name" in value) || value["name"] === undefined) return false;
if (!("component" in value) || value["component"] === undefined) return false;
if (!("verboseName" in value) || value["verboseName"] === undefined) return false;
if (!("verboseNamePlural" in value) || value["verboseNamePlural"] === undefined) return false;
if (!("metaModelName" in value) || value["metaModelName"] === undefined) return false;
if (!("flowSet" in value) || value["flowSet"] === undefined) return false;
if (!("deviceTypeRestrictionsObj" in value) || value["deviceTypeRestrictionsObj"] === undefined)
return false;
return true;
}
@@ -180,29 +158,49 @@ export function AuthenticatorWebAuthnStageFromJSON(json: any): AuthenticatorWebA
return AuthenticatorWebAuthnStageFromJSONTyped(json, false);
}
export function AuthenticatorWebAuthnStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorWebAuthnStage {
export function AuthenticatorWebAuthnStageFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorWebAuthnStage {
if (json == null) {
return json;
}
return {
'pk': json['pk'],
'name': json['name'],
'component': json['component'],
'verboseName': json['verbose_name'],
'verboseNamePlural': json['verbose_name_plural'],
'metaModelName': json['meta_model_name'],
'flowSet': ((json['flow_set'] as Array<any>).map(FlowSetFromJSON)),
'configureFlow': json['configure_flow'] == null ? undefined : json['configure_flow'],
'friendlyName': json['friendly_name'] == null ? undefined : json['friendly_name'],
'userVerification': json['user_verification'] == null ? undefined : UserVerificationEnumFromJSON(json['user_verification']),
'authenticatorAttachment': json['authenticator_attachment'] == null ? undefined : AuthenticatorAttachmentEnumFromJSON(json['authenticator_attachment']),
'residentKeyRequirement': json['resident_key_requirement'] == null ? undefined : UserVerificationEnumFromJSON(json['resident_key_requirement']),
'hints': json['hints'] == null ? undefined : ((json['hints'] as Array<any>).map(WebAuthnHintEnumFromJSON)),
'deviceTypeRestrictions': json['device_type_restrictions'] == null ? undefined : json['device_type_restrictions'],
'deviceTypeRestrictionsObj': ((json['device_type_restrictions_obj'] as Array<any>).map(WebAuthnDeviceTypeFromJSON)),
'preventDuplicateDevices': json['prevent_duplicate_devices'] == null ? undefined : json['prevent_duplicate_devices'],
'maxAttempts': json['max_attempts'] == null ? undefined : json['max_attempts'],
pk: json["pk"],
name: json["name"],
component: json["component"],
verboseName: json["verbose_name"],
verboseNamePlural: json["verbose_name_plural"],
metaModelName: json["meta_model_name"],
flowSet: (json["flow_set"] as Array<any>).map(FlowSetFromJSON),
configureFlow: json["configure_flow"] == null ? undefined : json["configure_flow"],
friendlyName: json["friendly_name"] == null ? undefined : json["friendly_name"],
userVerification:
json["user_verification"] == null
? undefined
: UserVerificationEnumFromJSON(json["user_verification"]),
authenticatorAttachment:
json["authenticator_attachment"] == null
? undefined
: AuthenticatorAttachmentEnumFromJSON(json["authenticator_attachment"]),
residentKeyRequirement:
json["resident_key_requirement"] == null
? undefined
: UserVerificationEnumFromJSON(json["resident_key_requirement"]),
hints:
json["hints"] == null
? undefined
: (json["hints"] as Array<any>).map(WebAuthnHintEnumFromJSON),
deviceTypeRestrictions:
json["device_type_restrictions"] == null ? undefined : json["device_type_restrictions"],
deviceTypeRestrictionsObj: (json["device_type_restrictions_obj"] as Array<any>).map(
WebAuthnDeviceTypeFromJSON,
),
preventDuplicateDevices:
json["prevent_duplicate_devices"] == null
? undefined
: json["prevent_duplicate_devices"],
maxAttempts: json["max_attempts"] == null ? undefined : json["max_attempts"],
};
}
@@ -210,23 +208,38 @@ export function AuthenticatorWebAuthnStageToJSON(json: any): AuthenticatorWebAut
return AuthenticatorWebAuthnStageToJSONTyped(json, false);
}
export function AuthenticatorWebAuthnStageToJSONTyped(value?: Omit<AuthenticatorWebAuthnStage, 'pk'|'component'|'verbose_name'|'verbose_name_plural'|'meta_model_name'|'flow_set'|'device_type_restrictions_obj'> | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatorWebAuthnStageToJSONTyped(
value?: Omit<
AuthenticatorWebAuthnStage,
| "pk"
| "component"
| "verbose_name"
| "verbose_name_plural"
| "meta_model_name"
| "flow_set"
| "device_type_restrictions_obj"
> | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'configure_flow': value['configureFlow'],
'friendly_name': value['friendlyName'],
'user_verification': UserVerificationEnumToJSON(value['userVerification']),
'authenticator_attachment': AuthenticatorAttachmentEnumToJSON(value['authenticatorAttachment']),
'resident_key_requirement': UserVerificationEnumToJSON(value['residentKeyRequirement']),
'hints': value['hints'] == null ? undefined : ((value['hints'] as Array<any>).map(WebAuthnHintEnumToJSON)),
'device_type_restrictions': value['deviceTypeRestrictions'],
'prevent_duplicate_devices': value['preventDuplicateDevices'],
'max_attempts': value['maxAttempts'],
name: value["name"],
configure_flow: value["configureFlow"],
friendly_name: value["friendlyName"],
user_verification: UserVerificationEnumToJSON(value["userVerification"]),
authenticator_attachment: AuthenticatorAttachmentEnumToJSON(
value["authenticatorAttachment"],
),
resident_key_requirement: UserVerificationEnumToJSON(value["residentKeyRequirement"]),
hints:
value["hints"] == null
? undefined
: (value["hints"] as Array<any>).map(WebAuthnHintEnumToJSON),
device_type_restrictions: value["deviceTypeRestrictions"],
prevent_duplicate_devices: value["preventDuplicateDevices"],
max_attempts: value["maxAttempts"],
};
}

View File

@@ -12,28 +12,15 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { WebAuthnHintEnum } from './WebAuthnHintEnum';
import {
WebAuthnHintEnumFromJSON,
WebAuthnHintEnumFromJSONTyped,
WebAuthnHintEnumToJSON,
WebAuthnHintEnumToJSONTyped,
} from './WebAuthnHintEnum';
import type { UserVerificationEnum } from './UserVerificationEnum';
import {
UserVerificationEnumFromJSON,
UserVerificationEnumFromJSONTyped,
UserVerificationEnumToJSON,
UserVerificationEnumToJSONTyped,
} from './UserVerificationEnum';
import type { AuthenticatorAttachmentEnum } from './AuthenticatorAttachmentEnum';
import type { AuthenticatorAttachmentEnum } from "./AuthenticatorAttachmentEnum";
import {
AuthenticatorAttachmentEnumFromJSON,
AuthenticatorAttachmentEnumFromJSONTyped,
AuthenticatorAttachmentEnumToJSON,
AuthenticatorAttachmentEnumToJSONTyped,
} from './AuthenticatorAttachmentEnum';
} from "./AuthenticatorAttachmentEnum";
import type { UserVerificationEnum } from "./UserVerificationEnum";
import { UserVerificationEnumFromJSON, UserVerificationEnumToJSON } from "./UserVerificationEnum";
import type { WebAuthnHintEnum } from "./WebAuthnHintEnum";
import { WebAuthnHintEnumFromJSON, WebAuthnHintEnumToJSON } from "./WebAuthnHintEnum";
/**
* AuthenticatorWebAuthnStage Serializer
@@ -42,7 +29,7 @@ import {
*/
export interface AuthenticatorWebAuthnStageRequest {
/**
*
*
* @type {string}
* @memberof AuthenticatorWebAuthnStageRequest
*/
@@ -54,37 +41,37 @@ export interface AuthenticatorWebAuthnStageRequest {
*/
configureFlow?: string | null;
/**
*
*
* @type {string}
* @memberof AuthenticatorWebAuthnStageRequest
*/
friendlyName?: string;
/**
*
*
* @type {UserVerificationEnum}
* @memberof AuthenticatorWebAuthnStageRequest
*/
userVerification?: UserVerificationEnum;
/**
*
*
* @type {AuthenticatorAttachmentEnum}
* @memberof AuthenticatorWebAuthnStageRequest
*/
authenticatorAttachment?: AuthenticatorAttachmentEnum | null;
/**
*
*
* @type {UserVerificationEnum}
* @memberof AuthenticatorWebAuthnStageRequest
*/
residentKeyRequirement?: UserVerificationEnum;
/**
*
*
* @type {Array<WebAuthnHintEnum>}
* @memberof AuthenticatorWebAuthnStageRequest
*/
hints?: Array<WebAuthnHintEnum>;
/**
*
*
* @type {Array<string>}
* @memberof AuthenticatorWebAuthnStageRequest
*/
@@ -96,67 +83,95 @@ export interface AuthenticatorWebAuthnStageRequest {
*/
preventDuplicateDevices?: boolean;
/**
*
*
* @type {number}
* @memberof AuthenticatorWebAuthnStageRequest
*/
maxAttempts?: number;
}
/**
* Check if a given object implements the AuthenticatorWebAuthnStageRequest interface.
*/
export function instanceOfAuthenticatorWebAuthnStageRequest(value: object): value is AuthenticatorWebAuthnStageRequest {
if (!('name' in value) || value['name'] === undefined) return false;
export function instanceOfAuthenticatorWebAuthnStageRequest(
value: object,
): value is AuthenticatorWebAuthnStageRequest {
if (!("name" in value) || value["name"] === undefined) return false;
return true;
}
export function AuthenticatorWebAuthnStageRequestFromJSON(json: any): AuthenticatorWebAuthnStageRequest {
export function AuthenticatorWebAuthnStageRequestFromJSON(
json: any,
): AuthenticatorWebAuthnStageRequest {
return AuthenticatorWebAuthnStageRequestFromJSONTyped(json, false);
}
export function AuthenticatorWebAuthnStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorWebAuthnStageRequest {
export function AuthenticatorWebAuthnStageRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthenticatorWebAuthnStageRequest {
if (json == null) {
return json;
}
return {
'name': json['name'],
'configureFlow': json['configure_flow'] == null ? undefined : json['configure_flow'],
'friendlyName': json['friendly_name'] == null ? undefined : json['friendly_name'],
'userVerification': json['user_verification'] == null ? undefined : UserVerificationEnumFromJSON(json['user_verification']),
'authenticatorAttachment': json['authenticator_attachment'] == null ? undefined : AuthenticatorAttachmentEnumFromJSON(json['authenticator_attachment']),
'residentKeyRequirement': json['resident_key_requirement'] == null ? undefined : UserVerificationEnumFromJSON(json['resident_key_requirement']),
'hints': json['hints'] == null ? undefined : ((json['hints'] as Array<any>).map(WebAuthnHintEnumFromJSON)),
'deviceTypeRestrictions': json['device_type_restrictions'] == null ? undefined : json['device_type_restrictions'],
'preventDuplicateDevices': json['prevent_duplicate_devices'] == null ? undefined : json['prevent_duplicate_devices'],
'maxAttempts': json['max_attempts'] == null ? undefined : json['max_attempts'],
name: json["name"],
configureFlow: json["configure_flow"] == null ? undefined : json["configure_flow"],
friendlyName: json["friendly_name"] == null ? undefined : json["friendly_name"],
userVerification:
json["user_verification"] == null
? undefined
: UserVerificationEnumFromJSON(json["user_verification"]),
authenticatorAttachment:
json["authenticator_attachment"] == null
? undefined
: AuthenticatorAttachmentEnumFromJSON(json["authenticator_attachment"]),
residentKeyRequirement:
json["resident_key_requirement"] == null
? undefined
: UserVerificationEnumFromJSON(json["resident_key_requirement"]),
hints:
json["hints"] == null
? undefined
: (json["hints"] as Array<any>).map(WebAuthnHintEnumFromJSON),
deviceTypeRestrictions:
json["device_type_restrictions"] == null ? undefined : json["device_type_restrictions"],
preventDuplicateDevices:
json["prevent_duplicate_devices"] == null
? undefined
: json["prevent_duplicate_devices"],
maxAttempts: json["max_attempts"] == null ? undefined : json["max_attempts"],
};
}
export function AuthenticatorWebAuthnStageRequestToJSON(json: any): AuthenticatorWebAuthnStageRequest {
export function AuthenticatorWebAuthnStageRequestToJSON(
json: any,
): AuthenticatorWebAuthnStageRequest {
return AuthenticatorWebAuthnStageRequestToJSONTyped(json, false);
}
export function AuthenticatorWebAuthnStageRequestToJSONTyped(value?: AuthenticatorWebAuthnStageRequest | null, ignoreDiscriminator: boolean = false): any {
export function AuthenticatorWebAuthnStageRequestToJSONTyped(
value?: AuthenticatorWebAuthnStageRequest | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'configure_flow': value['configureFlow'],
'friendly_name': value['friendlyName'],
'user_verification': UserVerificationEnumToJSON(value['userVerification']),
'authenticator_attachment': AuthenticatorAttachmentEnumToJSON(value['authenticatorAttachment']),
'resident_key_requirement': UserVerificationEnumToJSON(value['residentKeyRequirement']),
'hints': value['hints'] == null ? undefined : ((value['hints'] as Array<any>).map(WebAuthnHintEnumToJSON)),
'device_type_restrictions': value['deviceTypeRestrictions'],
'prevent_duplicate_devices': value['preventDuplicateDevices'],
'max_attempts': value['maxAttempts'],
name: value["name"],
configure_flow: value["configureFlow"],
friendly_name: value["friendlyName"],
user_verification: UserVerificationEnumToJSON(value["userVerification"]),
authenticator_attachment: AuthenticatorAttachmentEnumToJSON(
value["authenticatorAttachment"],
),
resident_key_requirement: UserVerificationEnumToJSON(value["residentKeyRequirement"]),
hints:
value["hints"] == null
? undefined
: (value["hints"] as Array<any>).map(WebAuthnHintEnumToJSON),
device_type_restrictions: value["deviceTypeRestrictions"],
prevent_duplicate_devices: value["preventDuplicateDevices"],
max_attempts: value["maxAttempts"],
};
}

View File

@@ -12,23 +12,26 @@
* Do not edit the class manually.
*/
/**
*
*
* @export
*/
export const AuthorizationCodeAuthMethodEnum = {
BasicAuth: 'basic_auth',
PostBody: 'post_body',
UnknownDefaultOpenApi: '11184809'
BasicAuth: "basic_auth",
PostBody: "post_body",
UnknownDefaultOpenApi: "11184809",
} as const;
export type AuthorizationCodeAuthMethodEnum = typeof AuthorizationCodeAuthMethodEnum[keyof typeof AuthorizationCodeAuthMethodEnum];
export type AuthorizationCodeAuthMethodEnum =
(typeof AuthorizationCodeAuthMethodEnum)[keyof typeof AuthorizationCodeAuthMethodEnum];
export function instanceOfAuthorizationCodeAuthMethodEnum(value: any): boolean {
for (const key in AuthorizationCodeAuthMethodEnum) {
if (Object.prototype.hasOwnProperty.call(AuthorizationCodeAuthMethodEnum, key)) {
if (AuthorizationCodeAuthMethodEnum[key as keyof typeof AuthorizationCodeAuthMethodEnum] === value) {
if (
AuthorizationCodeAuthMethodEnum[
key as keyof typeof AuthorizationCodeAuthMethodEnum
] === value
) {
return true;
}
}
@@ -36,19 +39,28 @@ export function instanceOfAuthorizationCodeAuthMethodEnum(value: any): boolean {
return false;
}
export function AuthorizationCodeAuthMethodEnumFromJSON(json: any): AuthorizationCodeAuthMethodEnum {
export function AuthorizationCodeAuthMethodEnumFromJSON(
json: any,
): AuthorizationCodeAuthMethodEnum {
return AuthorizationCodeAuthMethodEnumFromJSONTyped(json, false);
}
export function AuthorizationCodeAuthMethodEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthorizationCodeAuthMethodEnum {
export function AuthorizationCodeAuthMethodEnumFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AuthorizationCodeAuthMethodEnum {
return json as AuthorizationCodeAuthMethodEnum;
}
export function AuthorizationCodeAuthMethodEnumToJSON(value?: AuthorizationCodeAuthMethodEnum | null): any {
export function AuthorizationCodeAuthMethodEnumToJSON(
value?: AuthorizationCodeAuthMethodEnum | null,
): any {
return value as any;
}
export function AuthorizationCodeAuthMethodEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AuthorizationCodeAuthMethodEnum {
export function AuthorizationCodeAuthMethodEnumToJSONTyped(
value: any,
ignoreDiscriminator: boolean,
): AuthorizationCodeAuthMethodEnum {
return value as AuthorizationCodeAuthMethodEnum;
}

View File

@@ -12,7 +12,6 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
* Pseudo class for autosubmit response
* @export
@@ -20,7 +19,7 @@ import { mapValues } from '../runtime';
*/
export interface AutoSubmitChallengeResponseRequest {
/**
*
*
* @type {string}
* @memberof AutoSubmitChallengeResponseRequest
*/
@@ -30,36 +29,45 @@ export interface AutoSubmitChallengeResponseRequest {
/**
* Check if a given object implements the AutoSubmitChallengeResponseRequest interface.
*/
export function instanceOfAutoSubmitChallengeResponseRequest(value: object): value is AutoSubmitChallengeResponseRequest {
export function instanceOfAutoSubmitChallengeResponseRequest(
value: object,
): value is AutoSubmitChallengeResponseRequest {
return true;
}
export function AutoSubmitChallengeResponseRequestFromJSON(json: any): AutoSubmitChallengeResponseRequest {
export function AutoSubmitChallengeResponseRequestFromJSON(
json: any,
): AutoSubmitChallengeResponseRequest {
return AutoSubmitChallengeResponseRequestFromJSONTyped(json, false);
}
export function AutoSubmitChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutoSubmitChallengeResponseRequest {
export function AutoSubmitChallengeResponseRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AutoSubmitChallengeResponseRequest {
if (json == null) {
return json;
}
return {
'component': json['component'] == null ? undefined : json['component'],
component: json["component"] == null ? undefined : json["component"],
};
}
export function AutoSubmitChallengeResponseRequestToJSON(json: any): AutoSubmitChallengeResponseRequest {
export function AutoSubmitChallengeResponseRequestToJSON(
json: any,
): AutoSubmitChallengeResponseRequest {
return AutoSubmitChallengeResponseRequestToJSONTyped(json, false);
}
export function AutoSubmitChallengeResponseRequestToJSONTyped(value?: AutoSubmitChallengeResponseRequest | null, ignoreDiscriminator: boolean = false): any {
export function AutoSubmitChallengeResponseRequestToJSONTyped(
value?: AutoSubmitChallengeResponseRequest | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'component': value['component'],
component: value["component"],
};
}

View File

@@ -12,21 +12,9 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { ErrorDetail } from './ErrorDetail';
import {
ErrorDetailFromJSON,
ErrorDetailFromJSONTyped,
ErrorDetailToJSON,
ErrorDetailToJSONTyped,
} from './ErrorDetail';
import type { ContextualFlowInfo } from './ContextualFlowInfo';
import {
ContextualFlowInfoFromJSON,
ContextualFlowInfoFromJSONTyped,
ContextualFlowInfoToJSON,
ContextualFlowInfoToJSONTyped,
} from './ContextualFlowInfo';
import type { ContextualFlowInfo } from "./ContextualFlowInfo";
import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON } from "./ContextualFlowInfo";
import type { ErrorDetail } from "./ErrorDetail";
/**
* Autosubmit challenge used to send and navigate a POST request
@@ -35,37 +23,37 @@ import {
*/
export interface AutosubmitChallenge {
/**
*
*
* @type {ContextualFlowInfo}
* @memberof AutosubmitChallenge
*/
flowInfo?: ContextualFlowInfo;
/**
*
*
* @type {string}
* @memberof AutosubmitChallenge
*/
component?: string;
/**
*
*
* @type {{ [key: string]: Array<ErrorDetail>; }}
* @memberof AutosubmitChallenge
*/
responseErrors?: { [key: string]: Array<ErrorDetail>; };
responseErrors?: { [key: string]: Array<ErrorDetail> };
/**
*
*
* @type {string}
* @memberof AutosubmitChallenge
*/
url: string;
/**
*
*
* @type {{ [key: string]: string; }}
* @memberof AutosubmitChallenge
*/
attrs: { [key: string]: string; };
attrs: { [key: string]: string };
/**
*
*
* @type {string}
* @memberof AutosubmitChallenge
*/
@@ -76,8 +64,8 @@ export interface AutosubmitChallenge {
* Check if a given object implements the AutosubmitChallenge interface.
*/
export function instanceOfAutosubmitChallenge(value: object): value is AutosubmitChallenge {
if (!('url' in value) || value['url'] === undefined) return false;
if (!('attrs' in value) || value['attrs'] === undefined) return false;
if (!("url" in value) || value["url"] === undefined) return false;
if (!("attrs" in value) || value["attrs"] === undefined) return false;
return true;
}
@@ -85,18 +73,21 @@ export function AutosubmitChallengeFromJSON(json: any): AutosubmitChallenge {
return AutosubmitChallengeFromJSONTyped(json, false);
}
export function AutosubmitChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutosubmitChallenge {
export function AutosubmitChallengeFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): AutosubmitChallenge {
if (json == null) {
return json;
}
return {
'flowInfo': json['flow_info'] == null ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
'component': json['component'] == null ? undefined : json['component'],
'responseErrors': json['response_errors'] == null ? undefined : json['response_errors'],
'url': json['url'],
'attrs': json['attrs'],
'title': json['title'] == null ? undefined : json['title'],
flowInfo:
json["flow_info"] == null ? undefined : ContextualFlowInfoFromJSON(json["flow_info"]),
component: json["component"] == null ? undefined : json["component"],
responseErrors: json["response_errors"] == null ? undefined : json["response_errors"],
url: json["url"],
attrs: json["attrs"],
title: json["title"] == null ? undefined : json["title"],
};
}
@@ -104,19 +95,20 @@ export function AutosubmitChallengeToJSON(json: any): AutosubmitChallenge {
return AutosubmitChallengeToJSONTyped(json, false);
}
export function AutosubmitChallengeToJSONTyped(value?: AutosubmitChallenge | null, ignoreDiscriminator: boolean = false): any {
export function AutosubmitChallengeToJSONTyped(
value?: AutosubmitChallenge | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'flow_info': ContextualFlowInfoToJSON(value['flowInfo']),
'component': value['component'],
'response_errors': value['responseErrors'],
'url': value['url'],
'attrs': value['attrs'],
'title': value['title'],
flow_info: ContextualFlowInfoToJSON(value["flowInfo"]),
component: value["component"],
response_errors: value["responseErrors"],
url: value["url"],
attrs: value["attrs"],
title: value["title"],
};
}

View File

@@ -12,20 +12,18 @@
* Do not edit the class manually.
*/
/**
*
*
* @export
*/
export const BackendsEnum = {
AuthentikCoreAuthInbuiltBackend: 'authentik.core.auth.InbuiltBackend',
AuthentikCoreAuthTokenBackend: 'authentik.core.auth.TokenBackend',
AuthentikSourcesLdapAuthLdapBackend: 'authentik.sources.ldap.auth.LDAPBackend',
AuthentikSourcesKerberosAuthKerberosBackend: 'authentik.sources.kerberos.auth.KerberosBackend',
UnknownDefaultOpenApi: '11184809'
AuthentikCoreAuthInbuiltBackend: "authentik.core.auth.InbuiltBackend",
AuthentikCoreAuthTokenBackend: "authentik.core.auth.TokenBackend",
AuthentikSourcesLdapAuthLdapBackend: "authentik.sources.ldap.auth.LDAPBackend",
AuthentikSourcesKerberosAuthKerberosBackend: "authentik.sources.kerberos.auth.KerberosBackend",
UnknownDefaultOpenApi: "11184809",
} as const;
export type BackendsEnum = typeof BackendsEnum[keyof typeof BackendsEnum];
export type BackendsEnum = (typeof BackendsEnum)[keyof typeof BackendsEnum];
export function instanceOfBackendsEnum(value: any): boolean {
for (const key in BackendsEnum) {
@@ -53,4 +51,3 @@ export function BackendsEnumToJSON(value?: BackendsEnum | null): any {
export function BackendsEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): BackendsEnum {
return value as BackendsEnum;
}

View File

@@ -12,19 +12,17 @@
* Do not edit the class manually.
*/
/**
*
*
* @export
*/
export const BindingTypeEnum = {
Redirect: 'REDIRECT',
Post: 'POST',
PostAuto: 'POST_AUTO',
UnknownDefaultOpenApi: '11184809'
Redirect: "REDIRECT",
Post: "POST",
PostAuto: "POST_AUTO",
UnknownDefaultOpenApi: "11184809",
} as const;
export type BindingTypeEnum = typeof BindingTypeEnum[keyof typeof BindingTypeEnum];
export type BindingTypeEnum = (typeof BindingTypeEnum)[keyof typeof BindingTypeEnum];
export function instanceOfBindingTypeEnum(value: any): boolean {
for (const key in BindingTypeEnum) {
@@ -41,7 +39,10 @@ export function BindingTypeEnumFromJSON(json: any): BindingTypeEnum {
return BindingTypeEnumFromJSONTyped(json, false);
}
export function BindingTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): BindingTypeEnum {
export function BindingTypeEnumFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): BindingTypeEnum {
return json as BindingTypeEnum;
}
@@ -49,7 +50,9 @@ export function BindingTypeEnumToJSON(value?: BindingTypeEnum | null): any {
return value as any;
}
export function BindingTypeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): BindingTypeEnum {
export function BindingTypeEnumToJSONTyped(
value: any,
ignoreDiscriminator: boolean,
): BindingTypeEnum {
return value as BindingTypeEnum;
}

View File

@@ -12,41 +12,35 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { Metadata } from './Metadata';
import {
MetadataFromJSON,
MetadataFromJSONTyped,
MetadataToJSON,
MetadataToJSONTyped,
} from './Metadata';
import type { Metadata } from "./Metadata";
import { MetadataFromJSON } from "./Metadata";
/**
*
*
* @export
* @interface BlueprintFile
*/
export interface BlueprintFile {
/**
*
*
* @type {string}
* @memberof BlueprintFile
*/
path: string;
/**
*
*
* @type {Date}
* @memberof BlueprintFile
*/
lastM: Date;
/**
*
*
* @type {string}
* @memberof BlueprintFile
*/
hash: string;
/**
*
*
* @type {Metadata}
* @memberof BlueprintFile
*/
@@ -57,10 +51,10 @@ export interface BlueprintFile {
* Check if a given object implements the BlueprintFile interface.
*/
export function instanceOfBlueprintFile(value: object): value is BlueprintFile {
if (!('path' in value) || value['path'] === undefined) return false;
if (!('lastM' in value) || value['lastM'] === undefined) return false;
if (!('hash' in value) || value['hash'] === undefined) return false;
if (!('meta' in value) || value['meta'] === undefined) return false;
if (!("path" in value) || value["path"] === undefined) return false;
if (!("lastM" in value) || value["lastM"] === undefined) return false;
if (!("hash" in value) || value["hash"] === undefined) return false;
if (!("meta" in value) || value["meta"] === undefined) return false;
return true;
}
@@ -73,11 +67,10 @@ export function BlueprintFileFromJSONTyped(json: any, ignoreDiscriminator: boole
return json;
}
return {
'path': json['path'],
'lastM': (new Date(json['last_m'])),
'hash': json['hash'],
'meta': MetadataFromJSON(json['meta']),
path: json["path"],
lastM: new Date(json["last_m"]),
hash: json["hash"],
meta: MetadataFromJSON(json["meta"]),
};
}
@@ -85,16 +78,17 @@ export function BlueprintFileToJSON(json: any): BlueprintFile {
return BlueprintFileToJSONTyped(json, false);
}
export function BlueprintFileToJSONTyped(value?: Omit<BlueprintFile, 'meta'> | null, ignoreDiscriminator: boolean = false): any {
export function BlueprintFileToJSONTyped(
value?: Omit<BlueprintFile, "meta"> | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'path': value['path'],
'last_m': value['lastM'].toISOString(),
'hash': value['hash'],
path: value["path"],
last_m: value["lastM"].toISOString(),
hash: value["hash"],
};
}

View File

@@ -12,14 +12,8 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { LogEvent } from './LogEvent';
import {
LogEventFromJSON,
LogEventFromJSONTyped,
LogEventToJSON,
LogEventToJSONTyped,
} from './LogEvent';
import type { LogEvent } from "./LogEvent";
import { LogEventFromJSON } from "./LogEvent";
/**
* Logs of an attempted blueprint import
@@ -28,13 +22,13 @@ import {
*/
export interface BlueprintImportResult {
/**
*
*
* @type {Array<LogEvent>}
* @memberof BlueprintImportResult
*/
readonly logs: Array<LogEvent>;
/**
*
*
* @type {boolean}
* @memberof BlueprintImportResult
*/
@@ -45,8 +39,8 @@ export interface BlueprintImportResult {
* Check if a given object implements the BlueprintImportResult interface.
*/
export function instanceOfBlueprintImportResult(value: object): value is BlueprintImportResult {
if (!('logs' in value) || value['logs'] === undefined) return false;
if (!('success' in value) || value['success'] === undefined) return false;
if (!("logs" in value) || value["logs"] === undefined) return false;
if (!("success" in value) || value["success"] === undefined) return false;
return true;
}
@@ -54,14 +48,16 @@ export function BlueprintImportResultFromJSON(json: any): BlueprintImportResult
return BlueprintImportResultFromJSONTyped(json, false);
}
export function BlueprintImportResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlueprintImportResult {
export function BlueprintImportResultFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): BlueprintImportResult {
if (json == null) {
return json;
}
return {
'logs': ((json['logs'] as Array<any>).map(LogEventFromJSON)),
'success': json['success'],
logs: (json["logs"] as Array<any>).map(LogEventFromJSON),
success: json["success"],
};
}
@@ -69,13 +65,13 @@ export function BlueprintImportResultToJSON(json: any): BlueprintImportResult {
return BlueprintImportResultToJSONTyped(json, false);
}
export function BlueprintImportResultToJSONTyped(value?: Omit<BlueprintImportResult, 'logs'|'success'> | null, ignoreDiscriminator: boolean = false): any {
export function BlueprintImportResultToJSONTyped(
value?: Omit<BlueprintImportResult, "logs" | "success"> | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
};
return {};
}

View File

@@ -12,14 +12,8 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { BlueprintInstanceStatusEnum } from './BlueprintInstanceStatusEnum';
import {
BlueprintInstanceStatusEnumFromJSON,
BlueprintInstanceStatusEnumFromJSONTyped,
BlueprintInstanceStatusEnumToJSON,
BlueprintInstanceStatusEnumToJSONTyped,
} from './BlueprintInstanceStatusEnum';
import type { BlueprintInstanceStatusEnum } from "./BlueprintInstanceStatusEnum";
import { BlueprintInstanceStatusEnumFromJSON } from "./BlueprintInstanceStatusEnum";
/**
* Info about a single blueprint instance file
@@ -28,86 +22,84 @@ import {
*/
export interface BlueprintInstance {
/**
*
*
* @type {string}
* @memberof BlueprintInstance
*/
readonly pk: string;
/**
*
*
* @type {string}
* @memberof BlueprintInstance
*/
name: string;
/**
*
*
* @type {string}
* @memberof BlueprintInstance
*/
path?: string;
/**
*
*
* @type {{ [key: string]: any; }}
* @memberof BlueprintInstance
*/
context?: { [key: string]: any; };
context?: { [key: string]: any };
/**
*
*
* @type {Date}
* @memberof BlueprintInstance
*/
readonly lastApplied: Date;
/**
*
*
* @type {string}
* @memberof BlueprintInstance
*/
readonly lastAppliedHash: string;
/**
*
*
* @type {BlueprintInstanceStatusEnum}
* @memberof BlueprintInstance
*/
readonly status: BlueprintInstanceStatusEnum;
/**
*
*
* @type {boolean}
* @memberof BlueprintInstance
*/
enabled?: boolean;
/**
*
*
* @type {Array<string>}
* @memberof BlueprintInstance
*/
readonly managedModels: Array<string>;
/**
*
*
* @type {{ [key: string]: any; }}
* @memberof BlueprintInstance
*/
readonly metadata: { [key: string]: any; };
readonly metadata: { [key: string]: any };
/**
*
*
* @type {string}
* @memberof BlueprintInstance
*/
content?: string;
}
/**
* Check if a given object implements the BlueprintInstance interface.
*/
export function instanceOfBlueprintInstance(value: object): value is BlueprintInstance {
if (!('pk' in value) || value['pk'] === undefined) return false;
if (!('name' in value) || value['name'] === undefined) return false;
if (!('lastApplied' in value) || value['lastApplied'] === undefined) return false;
if (!('lastAppliedHash' in value) || value['lastAppliedHash'] === undefined) return false;
if (!('status' in value) || value['status'] === undefined) return false;
if (!('managedModels' in value) || value['managedModels'] === undefined) return false;
if (!('metadata' in value) || value['metadata'] === undefined) return false;
if (!("pk" in value) || value["pk"] === undefined) return false;
if (!("name" in value) || value["name"] === undefined) return false;
if (!("lastApplied" in value) || value["lastApplied"] === undefined) return false;
if (!("lastAppliedHash" in value) || value["lastAppliedHash"] === undefined) return false;
if (!("status" in value) || value["status"] === undefined) return false;
if (!("managedModels" in value) || value["managedModels"] === undefined) return false;
if (!("metadata" in value) || value["metadata"] === undefined) return false;
return true;
}
@@ -115,23 +107,25 @@ export function BlueprintInstanceFromJSON(json: any): BlueprintInstance {
return BlueprintInstanceFromJSONTyped(json, false);
}
export function BlueprintInstanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlueprintInstance {
export function BlueprintInstanceFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): BlueprintInstance {
if (json == null) {
return json;
}
return {
'pk': json['pk'],
'name': json['name'],
'path': json['path'] == null ? undefined : json['path'],
'context': json['context'] == null ? undefined : json['context'],
'lastApplied': (new Date(json['last_applied'])),
'lastAppliedHash': json['last_applied_hash'],
'status': BlueprintInstanceStatusEnumFromJSON(json['status']),
'enabled': json['enabled'] == null ? undefined : json['enabled'],
'managedModels': json['managed_models'],
'metadata': json['metadata'],
'content': json['content'] == null ? undefined : json['content'],
pk: json["pk"],
name: json["name"],
path: json["path"] == null ? undefined : json["path"],
context: json["context"] == null ? undefined : json["context"],
lastApplied: new Date(json["last_applied"]),
lastAppliedHash: json["last_applied_hash"],
status: BlueprintInstanceStatusEnumFromJSON(json["status"]),
enabled: json["enabled"] == null ? undefined : json["enabled"],
managedModels: json["managed_models"],
metadata: json["metadata"],
content: json["content"] == null ? undefined : json["content"],
};
}
@@ -139,18 +133,22 @@ export function BlueprintInstanceToJSON(json: any): BlueprintInstance {
return BlueprintInstanceToJSONTyped(json, false);
}
export function BlueprintInstanceToJSONTyped(value?: Omit<BlueprintInstance, 'pk'|'last_applied'|'last_applied_hash'|'status'|'managed_models'|'metadata'> | null, ignoreDiscriminator: boolean = false): any {
export function BlueprintInstanceToJSONTyped(
value?: Omit<
BlueprintInstance,
"pk" | "last_applied" | "last_applied_hash" | "status" | "managed_models" | "metadata"
> | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'path': value['path'],
'context': value['context'],
'enabled': value['enabled'],
'content': value['content'],
name: value["name"],
path: value["path"],
context: value["context"],
enabled: value["enabled"],
content: value["content"],
};
}

View File

@@ -12,7 +12,6 @@
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
* Info about a single blueprint instance file
* @export
@@ -20,31 +19,31 @@ import { mapValues } from '../runtime';
*/
export interface BlueprintInstanceRequest {
/**
*
*
* @type {string}
* @memberof BlueprintInstanceRequest
*/
name: string;
/**
*
*
* @type {string}
* @memberof BlueprintInstanceRequest
*/
path?: string;
/**
*
*
* @type {{ [key: string]: any; }}
* @memberof BlueprintInstanceRequest
*/
context?: { [key: string]: any; };
context?: { [key: string]: any };
/**
*
*
* @type {boolean}
* @memberof BlueprintInstanceRequest
*/
enabled?: boolean;
/**
*
*
* @type {string}
* @memberof BlueprintInstanceRequest
*/
@@ -54,8 +53,10 @@ export interface BlueprintInstanceRequest {
/**
* Check if a given object implements the BlueprintInstanceRequest interface.
*/
export function instanceOfBlueprintInstanceRequest(value: object): value is BlueprintInstanceRequest {
if (!('name' in value) || value['name'] === undefined) return false;
export function instanceOfBlueprintInstanceRequest(
value: object,
): value is BlueprintInstanceRequest {
if (!("name" in value) || value["name"] === undefined) return false;
return true;
}
@@ -63,17 +64,19 @@ export function BlueprintInstanceRequestFromJSON(json: any): BlueprintInstanceRe
return BlueprintInstanceRequestFromJSONTyped(json, false);
}
export function BlueprintInstanceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlueprintInstanceRequest {
export function BlueprintInstanceRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): BlueprintInstanceRequest {
if (json == null) {
return json;
}
return {
'name': json['name'],
'path': json['path'] == null ? undefined : json['path'],
'context': json['context'] == null ? undefined : json['context'],
'enabled': json['enabled'] == null ? undefined : json['enabled'],
'content': json['content'] == null ? undefined : json['content'],
name: json["name"],
path: json["path"] == null ? undefined : json["path"],
context: json["context"] == null ? undefined : json["context"],
enabled: json["enabled"] == null ? undefined : json["enabled"],
content: json["content"] == null ? undefined : json["content"],
};
}
@@ -81,18 +84,19 @@ export function BlueprintInstanceRequestToJSON(json: any): BlueprintInstanceRequ
return BlueprintInstanceRequestToJSONTyped(json, false);
}
export function BlueprintInstanceRequestToJSONTyped(value?: BlueprintInstanceRequest | null, ignoreDiscriminator: boolean = false): any {
export function BlueprintInstanceRequestToJSONTyped(
value?: BlueprintInstanceRequest | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'path': value['path'],
'context': value['context'],
'enabled': value['enabled'],
'content': value['content'],
name: value["name"],
path: value["path"],
context: value["context"],
enabled: value["enabled"],
content: value["content"],
};
}

Some files were not shown because too many files have changed in this diff Show More