Skip to content

Commit 67fd4a8

Browse files
authored
Or attempt to at least! It's in dev code so dependabot seems incapable of handling it...
1 parent a980872 commit 67fd4a8

File tree

10 files changed

+176
-306
lines changed

10 files changed

+176
-306
lines changed

package-lock.json

Lines changed: 68 additions & 273 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"type": "module",
5555
"dependencies": {
5656
"@floating-ui/dom": "^1.6.8",
57-
"@openapitools/openapi-generator-cli": "^2.23.1",
57+
"@openapitools/openapi-generator-cli": "^2.25.2",
5858
"@opentelemetry/api": "^1.8.0",
5959
"@opentelemetry/core": "^1.22.0",
6060
"@opentelemetry/resources": "^1.22.0",

src/lib/openapi/compute/models/ModelError.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,13 @@ export interface ModelError {
3939
*/
4040
export const ModelErrorErrorEnum = {
4141
InvalidRequest: 'invalid_request',
42-
UnauthorizedClient: 'unauthorized_client',
43-
AccessDenied: 'access_denied',
44-
UnsupportedResponseType: 'unsupported_response_type',
45-
InvalidScope: 'invalid_scope',
4642
ServerError: 'server_error',
47-
TemporarilyUnavailable: 'temporarily_unavailable',
48-
InvalidClient: 'invalid_client',
49-
InvalidGrant: 'invalid_grant',
50-
UnsupportedGrantType: 'unsupported_grant_type',
43+
AccessDenied: 'access_denied',
5144
NotFound: 'not_found',
5245
Conflict: 'conflict',
5346
MethodNotAllowed: 'method_not_allowed',
5447
UnsupportedMediaType: 'unsupported_media_type',
48+
RequestEntityTooLarge: 'request_entity_too_large',
5549
Forbidden: 'forbidden'
5650
} as const;
5751
export type ModelErrorErrorEnum = typeof ModelErrorErrorEnum[keyof typeof ModelErrorErrorEnum];

src/lib/openapi/identity/.openapi-generator/FILES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ models/GroupWrite.ts
2020
models/JsonWebKeySet.ts
2121
models/LoginRequestOptions.ts
2222
models/ModelError.ts
23+
models/Oauth2Error.ts
2324
models/Oauth2ProviderRead.ts
2425
models/Oauth2ProviderSpec.ts
2526
models/Oauth2ProviderType.ts

src/lib/openapi/identity/apis/DefaultApi.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import type {
2424
JsonWebKeySet,
2525
LoginRequestOptions,
2626
ModelError,
27+
Oauth2Error,
2728
Oauth2ProviderRead,
2829
Oauth2ProviderWrite,
2930
OnboardRequestOptions,
@@ -64,6 +65,8 @@ import {
6465
LoginRequestOptionsToJSON,
6566
ModelErrorFromJSON,
6667
ModelErrorToJSON,
68+
Oauth2ErrorFromJSON,
69+
Oauth2ErrorToJSON,
6770
Oauth2ProviderReadFromJSON,
6871
Oauth2ProviderReadToJSON,
6972
Oauth2ProviderWriteFromJSON,

src/lib/openapi/identity/models/ModelError.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,13 @@ export interface ModelError {
3939
*/
4040
export const ModelErrorErrorEnum = {
4141
InvalidRequest: 'invalid_request',
42-
UnauthorizedClient: 'unauthorized_client',
43-
AccessDenied: 'access_denied',
44-
UnsupportedResponseType: 'unsupported_response_type',
45-
InvalidScope: 'invalid_scope',
4642
ServerError: 'server_error',
47-
TemporarilyUnavailable: 'temporarily_unavailable',
48-
InvalidClient: 'invalid_client',
49-
InvalidGrant: 'invalid_grant',
50-
UnsupportedGrantType: 'unsupported_grant_type',
43+
AccessDenied: 'access_denied',
5144
NotFound: 'not_found',
5245
Conflict: 'conflict',
5346
MethodNotAllowed: 'method_not_allowed',
5447
UnsupportedMediaType: 'unsupported_media_type',
48+
RequestEntityTooLarge: 'request_entity_too_large',
5549
Forbidden: 'forbidden'
5650
} as const;
5751
export type ModelErrorErrorEnum = typeof ModelErrorErrorEnum[keyof typeof ModelErrorErrorEnum];
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* Identity API
5+
* The Identity API provides an OIDC compliant interface for use with all official and 3rd party services and proxies. As its intended use is for multi-tenant cloud deployments, it acts as an aggregation layer for other 3rd party OIDC services, dispatching login requests to the required OIDC backend. Token introspection forms the basis of role based access control across all APIs. For security purposes, access tokens and refresh tokens are limited to a single session per client, thus if they are being consumed by a horizontally scalable platform care must be taken to ensure token rotation is handled atomically by a single process, and the tokens are distributed to each service instance synchronously.
6+
*
7+
* The version of the OpenAPI document: 1.11.0
8+
*
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
import { exists, mapValues } from '../runtime';
16+
/**
17+
* Generic error message, compatible with oauth2.
18+
* @export
19+
* @interface Oauth2Error
20+
*/
21+
export interface Oauth2Error {
22+
/**
23+
* A terse error string expanding on the HTTP error code. Errors are based on the OAuth 2.02 specification, but are expanded with proprietary status codes for APIs other than those specified by OAuth 2.02.
24+
* @type {string}
25+
* @memberof Oauth2Error
26+
*/
27+
error: Oauth2ErrorErrorEnum;
28+
/**
29+
* Verbose message describing the error.
30+
* @type {string}
31+
* @memberof Oauth2Error
32+
*/
33+
errorDescription: string;
34+
}
35+
36+
37+
/**
38+
* @export
39+
*/
40+
export const Oauth2ErrorErrorEnum = {
41+
InvalidRequest: 'invalid_request',
42+
UnauthorizedClient: 'unauthorized_client',
43+
AccessDenied: 'access_denied',
44+
UnsupportedResponseType: 'unsupported_response_type',
45+
InvalidScope: 'invalid_scope',
46+
ServerError: 'server_error',
47+
TemporarilyUnavailable: 'temporarily_unavailable',
48+
InvalidClient: 'invalid_client',
49+
InvalidGrant: 'invalid_grant',
50+
UnsupportedGrantType: 'unsupported_grant_type'
51+
} as const;
52+
export type Oauth2ErrorErrorEnum = typeof Oauth2ErrorErrorEnum[keyof typeof Oauth2ErrorErrorEnum];
53+
54+
55+
/**
56+
* Check if a given object implements the Oauth2Error interface.
57+
*/
58+
export function instanceOfOauth2Error(value: object): boolean {
59+
let isInstance = true;
60+
isInstance = isInstance && "error" in value;
61+
isInstance = isInstance && "errorDescription" in value;
62+
63+
return isInstance;
64+
}
65+
66+
export function Oauth2ErrorFromJSON(json: any): Oauth2Error {
67+
return Oauth2ErrorFromJSONTyped(json, false);
68+
}
69+
70+
export function Oauth2ErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): Oauth2Error {
71+
if ((json === undefined) || (json === null)) {
72+
return json;
73+
}
74+
return {
75+
76+
'error': json['error'],
77+
'errorDescription': json['error_description'],
78+
};
79+
}
80+
81+
export function Oauth2ErrorToJSON(value?: Oauth2Error | null): any {
82+
if (value === undefined) {
83+
return undefined;
84+
}
85+
if (value === null) {
86+
return null;
87+
}
88+
return {
89+
90+
'error': value.error,
91+
'error_description': value.errorDescription,
92+
};
93+
}
94+

src/lib/openapi/identity/models/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export * from './GroupWrite';
1919
export * from './JsonWebKeySet';
2020
export * from './LoginRequestOptions';
2121
export * from './ModelError';
22+
export * from './Oauth2Error';
2223
export * from './Oauth2ProviderRead';
2324
export * from './Oauth2ProviderSpec';
2425
export * from './Oauth2ProviderType';

src/lib/openapi/kubernetes/models/ModelError.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,13 @@ export interface ModelError {
3939
*/
4040
export const ModelErrorErrorEnum = {
4141
InvalidRequest: 'invalid_request',
42-
UnauthorizedClient: 'unauthorized_client',
43-
AccessDenied: 'access_denied',
44-
UnsupportedResponseType: 'unsupported_response_type',
45-
InvalidScope: 'invalid_scope',
4642
ServerError: 'server_error',
47-
TemporarilyUnavailable: 'temporarily_unavailable',
48-
InvalidClient: 'invalid_client',
49-
InvalidGrant: 'invalid_grant',
50-
UnsupportedGrantType: 'unsupported_grant_type',
43+
AccessDenied: 'access_denied',
5144
NotFound: 'not_found',
5245
Conflict: 'conflict',
5346
MethodNotAllowed: 'method_not_allowed',
5447
UnsupportedMediaType: 'unsupported_media_type',
48+
RequestEntityTooLarge: 'request_entity_too_large',
5549
Forbidden: 'forbidden'
5650
} as const;
5751
export type ModelErrorErrorEnum = typeof ModelErrorErrorEnum[keyof typeof ModelErrorErrorEnum];

src/lib/openapi/region/models/ModelError.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,13 @@ export interface ModelError {
3939
*/
4040
export const ModelErrorErrorEnum = {
4141
InvalidRequest: 'invalid_request',
42-
UnauthorizedClient: 'unauthorized_client',
43-
AccessDenied: 'access_denied',
44-
UnsupportedResponseType: 'unsupported_response_type',
45-
InvalidScope: 'invalid_scope',
4642
ServerError: 'server_error',
47-
TemporarilyUnavailable: 'temporarily_unavailable',
48-
InvalidClient: 'invalid_client',
49-
InvalidGrant: 'invalid_grant',
50-
UnsupportedGrantType: 'unsupported_grant_type',
43+
AccessDenied: 'access_denied',
5144
NotFound: 'not_found',
5245
Conflict: 'conflict',
5346
MethodNotAllowed: 'method_not_allowed',
5447
UnsupportedMediaType: 'unsupported_media_type',
48+
RequestEntityTooLarge: 'request_entity_too_large',
5549
Forbidden: 'forbidden'
5650
} as const;
5751
export type ModelErrorErrorEnum = typeof ModelErrorErrorEnum[keyof typeof ModelErrorErrorEnum];

0 commit comments

Comments
 (0)