@goauthentik/api 2025.10.0-rc1-1760458823 → 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.
Files changed (67) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/dist/esm/models/OAuthSource.d.ts +7 -0
  3. package/dist/esm/models/OAuthSource.d.ts.map +1 -1
  4. package/dist/esm/models/OAuthSource.js +3 -0
  5. package/dist/esm/models/OAuthSource.js.map +1 -1
  6. package/dist/esm/models/OAuthSourceRequest.d.ts +7 -0
  7. package/dist/esm/models/OAuthSourceRequest.d.ts.map +1 -1
  8. package/dist/esm/models/OAuthSourceRequest.js +3 -0
  9. package/dist/esm/models/OAuthSourceRequest.js.map +1 -1
  10. package/dist/esm/models/PKCEMethodEnum.d.ts +28 -0
  11. package/dist/esm/models/PKCEMethodEnum.d.ts.map +1 -0
  12. package/dist/esm/models/PKCEMethodEnum.js +54 -0
  13. package/dist/esm/models/PKCEMethodEnum.js.map +1 -0
  14. package/dist/esm/models/PatchedOAuthSourceRequest.d.ts +7 -0
  15. package/dist/esm/models/PatchedOAuthSourceRequest.d.ts.map +1 -1
  16. package/dist/esm/models/PatchedOAuthSourceRequest.js +3 -0
  17. package/dist/esm/models/PatchedOAuthSourceRequest.js.map +1 -1
  18. package/dist/esm/models/PromptChoice.d.ts +39 -0
  19. package/dist/esm/models/PromptChoice.d.ts.map +1 -0
  20. package/dist/esm/models/PromptChoice.js +55 -0
  21. package/dist/esm/models/PromptChoice.js.map +1 -0
  22. package/dist/esm/models/StagePrompt.d.ts +3 -2
  23. package/dist/esm/models/StagePrompt.d.ts.map +1 -1
  24. package/dist/esm/models/StagePrompt.js +3 -2
  25. package/dist/esm/models/StagePrompt.js.map +1 -1
  26. package/dist/esm/models/index.d.ts +2 -0
  27. package/dist/esm/models/index.d.ts.map +1 -1
  28. package/dist/esm/models/index.js +2 -0
  29. package/dist/esm/models/index.js.map +1 -1
  30. package/dist/models/OAuthSource.d.ts +7 -0
  31. package/dist/models/OAuthSource.d.ts.map +1 -1
  32. package/dist/models/OAuthSource.js +3 -0
  33. package/dist/models/OAuthSource.js.map +1 -1
  34. package/dist/models/OAuthSourceRequest.d.ts +7 -0
  35. package/dist/models/OAuthSourceRequest.d.ts.map +1 -1
  36. package/dist/models/OAuthSourceRequest.js +3 -0
  37. package/dist/models/OAuthSourceRequest.js.map +1 -1
  38. package/dist/models/PKCEMethodEnum.d.ts +28 -0
  39. package/dist/models/PKCEMethodEnum.d.ts.map +1 -0
  40. package/dist/models/PKCEMethodEnum.js +54 -0
  41. package/dist/models/PKCEMethodEnum.js.map +1 -0
  42. package/dist/models/PatchedOAuthSourceRequest.d.ts +7 -0
  43. package/dist/models/PatchedOAuthSourceRequest.d.ts.map +1 -1
  44. package/dist/models/PatchedOAuthSourceRequest.js +3 -0
  45. package/dist/models/PatchedOAuthSourceRequest.js.map +1 -1
  46. package/dist/models/PromptChoice.d.ts +39 -0
  47. package/dist/models/PromptChoice.d.ts.map +1 -0
  48. package/dist/models/PromptChoice.js +55 -0
  49. package/dist/models/PromptChoice.js.map +1 -0
  50. package/dist/models/StagePrompt.d.ts +3 -2
  51. package/dist/models/StagePrompt.d.ts.map +1 -1
  52. package/dist/models/StagePrompt.js +3 -2
  53. package/dist/models/StagePrompt.js.map +1 -1
  54. package/dist/models/index.d.ts +2 -0
  55. package/dist/models/index.d.ts.map +1 -1
  56. package/dist/models/index.js +2 -0
  57. package/dist/models/index.js.map +1 -1
  58. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  59. package/package.json +1 -1
  60. package/src/models/OAuthSource.ts +15 -0
  61. package/src/models/OAuthSourceRequest.ts +15 -0
  62. package/src/models/PKCEMethodEnum.ts +55 -0
  63. package/src/models/PatchedOAuthSourceRequest.ts +15 -0
  64. package/src/models/PromptChoice.ts +75 -0
  65. package/src/models/StagePrompt.ts +11 -4
  66. package/src/models/index.ts +2 -0
  67. package/tsconfig.tsbuildinfo +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2025.10.0-rc1-1760458823",
3
+ "version": "2025.10.0-rc1-1760614339",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -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'],
@@ -0,0 +1,75 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ * Serializer for a single Choice field
18
+ * @export
19
+ * @interface PromptChoice
20
+ */
21
+ export interface PromptChoice {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PromptChoice
26
+ */
27
+ value: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PromptChoice
32
+ */
33
+ label: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the PromptChoice interface.
38
+ */
39
+ export function instanceOfPromptChoice(value: object): value is PromptChoice {
40
+ if (!('value' in value) || value['value'] === undefined) return false;
41
+ if (!('label' in value) || value['label'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function PromptChoiceFromJSON(json: any): PromptChoice {
46
+ return PromptChoiceFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function PromptChoiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PromptChoice {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'value': json['value'],
56
+ 'label': json['label'],
57
+ };
58
+ }
59
+
60
+ export function PromptChoiceToJSON(json: any): PromptChoice {
61
+ return PromptChoiceToJSONTyped(json, false);
62
+ }
63
+
64
+ export function PromptChoiceToJSONTyped(value?: PromptChoice | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'value': value['value'],
72
+ 'label': value['label'],
73
+ };
74
+ }
75
+
@@ -20,6 +20,13 @@ import {
20
20
  PromptTypeEnumToJSON,
21
21
  PromptTypeEnumToJSONTyped,
22
22
  } from './PromptTypeEnum';
23
+ import type { PromptChoice } from './PromptChoice';
24
+ import {
25
+ PromptChoiceFromJSON,
26
+ PromptChoiceFromJSONTyped,
27
+ PromptChoiceToJSON,
28
+ PromptChoiceToJSONTyped,
29
+ } from './PromptChoice';
23
30
 
24
31
  /**
25
32
  * Serializer for a single Prompt field
@@ -77,10 +84,10 @@ export interface StagePrompt {
77
84
  subText: string;
78
85
  /**
79
86
  *
80
- * @type {Array<string>}
87
+ * @type {Array<PromptChoice>}
81
88
  * @memberof StagePrompt
82
89
  */
83
- choices: Array<string> | null;
90
+ choices: Array<PromptChoice> | null;
84
91
  }
85
92
 
86
93
 
@@ -119,7 +126,7 @@ export function StagePromptFromJSONTyped(json: any, ignoreDiscriminator: boolean
119
126
  'initialValue': json['initial_value'],
120
127
  'order': json['order'],
121
128
  'subText': json['sub_text'],
122
- 'choices': json['choices'] == null ? null : json['choices'],
129
+ 'choices': (json['choices'] == null ? null : (json['choices'] as Array<any>).map(PromptChoiceFromJSON)),
123
130
  };
124
131
  }
125
132
 
@@ -142,7 +149,7 @@ export function StagePromptToJSONTyped(value?: StagePrompt | null, ignoreDiscrim
142
149
  'initial_value': value['initialValue'],
143
150
  'order': value['order'],
144
151
  'sub_text': value['subText'],
145
- 'choices': value['choices'],
152
+ 'choices': (value['choices'] == null ? null : (value['choices'] as Array<any>).map(PromptChoiceToJSON)),
146
153
  };
147
154
  }
148
155
 
@@ -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';
@@ -582,6 +583,7 @@ export * from './PolicyTestResult';
582
583
  export * from './Prompt';
583
584
  export * from './PromptChallenge';
584
585
  export * from './PromptChallengeResponseRequest';
586
+ export * from './PromptChoice';
585
587
  export * from './PromptRequest';
586
588
  export * from './PromptStage';
587
589
  export * from './PromptStageRequest';