@goauthentik/api 2025.10.0-rc1-1760538644 → 2025.10.0-rc1-1760614339
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -0
- package/dist/esm/models/OAuthSource.d.ts +7 -0
- package/dist/esm/models/OAuthSource.d.ts.map +1 -1
- package/dist/esm/models/OAuthSource.js +3 -0
- package/dist/esm/models/OAuthSource.js.map +1 -1
- package/dist/esm/models/OAuthSourceRequest.d.ts +7 -0
- package/dist/esm/models/OAuthSourceRequest.d.ts.map +1 -1
- package/dist/esm/models/OAuthSourceRequest.js +3 -0
- package/dist/esm/models/OAuthSourceRequest.js.map +1 -1
- package/dist/esm/models/PKCEMethodEnum.d.ts +28 -0
- package/dist/esm/models/PKCEMethodEnum.d.ts.map +1 -0
- package/dist/esm/models/PKCEMethodEnum.js +54 -0
- package/dist/esm/models/PKCEMethodEnum.js.map +1 -0
- package/dist/esm/models/PatchedOAuthSourceRequest.d.ts +7 -0
- package/dist/esm/models/PatchedOAuthSourceRequest.d.ts.map +1 -1
- package/dist/esm/models/PatchedOAuthSourceRequest.js +3 -0
- package/dist/esm/models/PatchedOAuthSourceRequest.js.map +1 -1
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +1 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/models/OAuthSource.d.ts +7 -0
- package/dist/models/OAuthSource.d.ts.map +1 -1
- package/dist/models/OAuthSource.js +3 -0
- package/dist/models/OAuthSource.js.map +1 -1
- package/dist/models/OAuthSourceRequest.d.ts +7 -0
- package/dist/models/OAuthSourceRequest.d.ts.map +1 -1
- package/dist/models/OAuthSourceRequest.js +3 -0
- package/dist/models/OAuthSourceRequest.js.map +1 -1
- package/dist/models/PKCEMethodEnum.d.ts +28 -0
- package/dist/models/PKCEMethodEnum.d.ts.map +1 -0
- package/dist/models/PKCEMethodEnum.js +54 -0
- package/dist/models/PKCEMethodEnum.js.map +1 -0
- package/dist/models/PatchedOAuthSourceRequest.d.ts +7 -0
- package/dist/models/PatchedOAuthSourceRequest.d.ts.map +1 -1
- package/dist/models/PatchedOAuthSourceRequest.js +3 -0
- package/dist/models/PatchedOAuthSourceRequest.js.map +1 -1
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +1 -0
- package/dist/models/index.js.map +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/models/OAuthSource.ts +15 -0
- package/src/models/OAuthSourceRequest.ts +15 -0
- package/src/models/PKCEMethodEnum.ts +55 -0
- package/src/models/PatchedOAuthSourceRequest.ts +15 -0
- package/src/models/index.ts +1 -0
- package/tsconfig.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -34,6 +34,13 @@ import {
|
|
|
34
34
|
SourceTypeToJSON,
|
|
35
35
|
SourceTypeToJSONTyped,
|
|
36
36
|
} from './SourceType';
|
|
37
|
+
import type { PKCEMethodEnum } from './PKCEMethodEnum';
|
|
38
|
+
import {
|
|
39
|
+
PKCEMethodEnumFromJSON,
|
|
40
|
+
PKCEMethodEnumFromJSONTyped,
|
|
41
|
+
PKCEMethodEnumToJSON,
|
|
42
|
+
PKCEMethodEnumToJSONTyped,
|
|
43
|
+
} from './PKCEMethodEnum';
|
|
37
44
|
import type { GroupMatchingModeEnum } from './GroupMatchingModeEnum';
|
|
38
45
|
import {
|
|
39
46
|
GroupMatchingModeEnumFromJSON,
|
|
@@ -200,6 +207,12 @@ export interface OAuthSource {
|
|
|
200
207
|
* @memberof OAuthSource
|
|
201
208
|
*/
|
|
202
209
|
profileUrl?: string | null;
|
|
210
|
+
/**
|
|
211
|
+
*
|
|
212
|
+
* @type {PKCEMethodEnum}
|
|
213
|
+
* @memberof OAuthSource
|
|
214
|
+
*/
|
|
215
|
+
pkce?: PKCEMethodEnum;
|
|
203
216
|
/**
|
|
204
217
|
*
|
|
205
218
|
* @type {string}
|
|
@@ -305,6 +318,7 @@ export function OAuthSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
305
318
|
'authorizationUrl': json['authorization_url'] == null ? undefined : json['authorization_url'],
|
|
306
319
|
'accessTokenUrl': json['access_token_url'] == null ? undefined : json['access_token_url'],
|
|
307
320
|
'profileUrl': json['profile_url'] == null ? undefined : json['profile_url'],
|
|
321
|
+
'pkce': json['pkce'] == null ? undefined : PKCEMethodEnumFromJSON(json['pkce']),
|
|
308
322
|
'consumerKey': json['consumer_key'],
|
|
309
323
|
'callbackUrl': json['callback_url'],
|
|
310
324
|
'additionalScopes': json['additional_scopes'] == null ? undefined : json['additional_scopes'],
|
|
@@ -343,6 +357,7 @@ export function OAuthSourceToJSONTyped(value?: Omit<OAuthSource, 'pk'|'component
|
|
|
343
357
|
'authorization_url': value['authorizationUrl'],
|
|
344
358
|
'access_token_url': value['accessTokenUrl'],
|
|
345
359
|
'profile_url': value['profileUrl'],
|
|
360
|
+
'pkce': PKCEMethodEnumToJSON(value['pkce']),
|
|
346
361
|
'consumer_key': value['consumerKey'],
|
|
347
362
|
'additional_scopes': value['additionalScopes'],
|
|
348
363
|
'oidc_well_known_url': value['oidcWellKnownUrl'],
|
|
@@ -27,6 +27,13 @@ import {
|
|
|
27
27
|
UserMatchingModeEnumToJSON,
|
|
28
28
|
UserMatchingModeEnumToJSONTyped,
|
|
29
29
|
} from './UserMatchingModeEnum';
|
|
30
|
+
import type { PKCEMethodEnum } from './PKCEMethodEnum';
|
|
31
|
+
import {
|
|
32
|
+
PKCEMethodEnumFromJSON,
|
|
33
|
+
PKCEMethodEnumFromJSONTyped,
|
|
34
|
+
PKCEMethodEnumToJSON,
|
|
35
|
+
PKCEMethodEnumToJSONTyped,
|
|
36
|
+
} from './PKCEMethodEnum';
|
|
30
37
|
import type { GroupMatchingModeEnum } from './GroupMatchingModeEnum';
|
|
31
38
|
import {
|
|
32
39
|
GroupMatchingModeEnumFromJSON,
|
|
@@ -151,6 +158,12 @@ export interface OAuthSourceRequest {
|
|
|
151
158
|
* @memberof OAuthSourceRequest
|
|
152
159
|
*/
|
|
153
160
|
profileUrl?: string | null;
|
|
161
|
+
/**
|
|
162
|
+
*
|
|
163
|
+
* @type {PKCEMethodEnum}
|
|
164
|
+
* @memberof OAuthSourceRequest
|
|
165
|
+
*/
|
|
166
|
+
pkce?: PKCEMethodEnum;
|
|
154
167
|
/**
|
|
155
168
|
*
|
|
156
169
|
* @type {string}
|
|
@@ -235,6 +248,7 @@ export function OAuthSourceRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
235
248
|
'authorizationUrl': json['authorization_url'] == null ? undefined : json['authorization_url'],
|
|
236
249
|
'accessTokenUrl': json['access_token_url'] == null ? undefined : json['access_token_url'],
|
|
237
250
|
'profileUrl': json['profile_url'] == null ? undefined : json['profile_url'],
|
|
251
|
+
'pkce': json['pkce'] == null ? undefined : PKCEMethodEnumFromJSON(json['pkce']),
|
|
238
252
|
'consumerKey': json['consumer_key'],
|
|
239
253
|
'consumerSecret': json['consumer_secret'],
|
|
240
254
|
'additionalScopes': json['additional_scopes'] == null ? undefined : json['additional_scopes'],
|
|
@@ -272,6 +286,7 @@ export function OAuthSourceRequestToJSONTyped(value?: OAuthSourceRequest | null,
|
|
|
272
286
|
'authorization_url': value['authorizationUrl'],
|
|
273
287
|
'access_token_url': value['accessTokenUrl'],
|
|
274
288
|
'profile_url': value['profileUrl'],
|
|
289
|
+
'pkce': PKCEMethodEnumToJSON(value['pkce']),
|
|
275
290
|
'consumer_key': value['consumerKey'],
|
|
276
291
|
'consumer_secret': value['consumerSecret'],
|
|
277
292
|
'additional_scopes': value['additionalScopes'],
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2025.10.0-rc1
|
|
8
|
+
* Contact: hello@goauthentik.io
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const PKCEMethodEnum = {
|
|
21
|
+
None: 'none',
|
|
22
|
+
Plain: 'plain',
|
|
23
|
+
S256: 'S256',
|
|
24
|
+
UnknownDefaultOpenApi: '11184809'
|
|
25
|
+
} as const;
|
|
26
|
+
export type PKCEMethodEnum = typeof PKCEMethodEnum[keyof typeof PKCEMethodEnum];
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
export function instanceOfPKCEMethodEnum(value: any): boolean {
|
|
30
|
+
for (const key in PKCEMethodEnum) {
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(PKCEMethodEnum, key)) {
|
|
32
|
+
if (PKCEMethodEnum[key as keyof typeof PKCEMethodEnum] === value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function PKCEMethodEnumFromJSON(json: any): PKCEMethodEnum {
|
|
41
|
+
return PKCEMethodEnumFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function PKCEMethodEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): PKCEMethodEnum {
|
|
45
|
+
return json as PKCEMethodEnum;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function PKCEMethodEnumToJSON(value?: PKCEMethodEnum | null): any {
|
|
49
|
+
return value as any;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function PKCEMethodEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): PKCEMethodEnum {
|
|
53
|
+
return value as PKCEMethodEnum;
|
|
54
|
+
}
|
|
55
|
+
|
|
@@ -27,6 +27,13 @@ import {
|
|
|
27
27
|
UserMatchingModeEnumToJSON,
|
|
28
28
|
UserMatchingModeEnumToJSONTyped,
|
|
29
29
|
} from './UserMatchingModeEnum';
|
|
30
|
+
import type { PKCEMethodEnum } from './PKCEMethodEnum';
|
|
31
|
+
import {
|
|
32
|
+
PKCEMethodEnumFromJSON,
|
|
33
|
+
PKCEMethodEnumFromJSONTyped,
|
|
34
|
+
PKCEMethodEnumToJSON,
|
|
35
|
+
PKCEMethodEnumToJSONTyped,
|
|
36
|
+
} from './PKCEMethodEnum';
|
|
30
37
|
import type { GroupMatchingModeEnum } from './GroupMatchingModeEnum';
|
|
31
38
|
import {
|
|
32
39
|
GroupMatchingModeEnumFromJSON,
|
|
@@ -151,6 +158,12 @@ export interface PatchedOAuthSourceRequest {
|
|
|
151
158
|
* @memberof PatchedOAuthSourceRequest
|
|
152
159
|
*/
|
|
153
160
|
profileUrl?: string | null;
|
|
161
|
+
/**
|
|
162
|
+
*
|
|
163
|
+
* @type {PKCEMethodEnum}
|
|
164
|
+
* @memberof PatchedOAuthSourceRequest
|
|
165
|
+
*/
|
|
166
|
+
pkce?: PKCEMethodEnum;
|
|
154
167
|
/**
|
|
155
168
|
*
|
|
156
169
|
* @type {string}
|
|
@@ -230,6 +243,7 @@ export function PatchedOAuthSourceRequestFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
230
243
|
'authorizationUrl': json['authorization_url'] == null ? undefined : json['authorization_url'],
|
|
231
244
|
'accessTokenUrl': json['access_token_url'] == null ? undefined : json['access_token_url'],
|
|
232
245
|
'profileUrl': json['profile_url'] == null ? undefined : json['profile_url'],
|
|
246
|
+
'pkce': json['pkce'] == null ? undefined : PKCEMethodEnumFromJSON(json['pkce']),
|
|
233
247
|
'consumerKey': json['consumer_key'] == null ? undefined : json['consumer_key'],
|
|
234
248
|
'consumerSecret': json['consumer_secret'] == null ? undefined : json['consumer_secret'],
|
|
235
249
|
'additionalScopes': json['additional_scopes'] == null ? undefined : json['additional_scopes'],
|
|
@@ -267,6 +281,7 @@ export function PatchedOAuthSourceRequestToJSONTyped(value?: PatchedOAuthSourceR
|
|
|
267
281
|
'authorization_url': value['authorizationUrl'],
|
|
268
282
|
'access_token_url': value['accessTokenUrl'],
|
|
269
283
|
'profile_url': value['profileUrl'],
|
|
284
|
+
'pkce': PKCEMethodEnumToJSON(value['pkce']),
|
|
270
285
|
'consumer_key': value['consumerKey'],
|
|
271
286
|
'consumer_secret': value['consumerSecret'],
|
|
272
287
|
'additional_scopes': value['additionalScopes'],
|
package/src/models/index.ts
CHANGED
|
@@ -289,6 +289,7 @@ export * from './OutpostDefaultConfig';
|
|
|
289
289
|
export * from './OutpostHealth';
|
|
290
290
|
export * from './OutpostRequest';
|
|
291
291
|
export * from './OutpostTypeEnum';
|
|
292
|
+
export * from './PKCEMethodEnum';
|
|
292
293
|
export * from './PaginatedApplicationEntitlementList';
|
|
293
294
|
export * from './PaginatedApplicationList';
|
|
294
295
|
export * from './PaginatedAuthenticatedSessionList';
|