@goauthentik/api 2025.2.2-1742245839 → 2025.2.2-1742395408

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 (36) hide show
  1. package/dist/apis/ProvidersApi.d.ts +1 -0
  2. package/dist/apis/ProvidersApi.js +3 -0
  3. package/dist/apis/SourcesApi.d.ts +2 -2
  4. package/dist/apis/SourcesApi.js +2 -2
  5. package/dist/esm/apis/ProvidersApi.d.ts +1 -0
  6. package/dist/esm/apis/ProvidersApi.js +3 -0
  7. package/dist/esm/apis/SourcesApi.d.ts +2 -2
  8. package/dist/esm/apis/SourcesApi.js +2 -2
  9. package/dist/esm/models/PatchedSAMLProviderRequest.d.ts +6 -0
  10. package/dist/esm/models/PatchedSAMLProviderRequest.js +2 -0
  11. package/dist/esm/models/SAMLProvider.d.ts +6 -0
  12. package/dist/esm/models/SAMLProvider.js +2 -0
  13. package/dist/esm/models/SAMLProviderRequest.d.ts +6 -0
  14. package/dist/esm/models/SAMLProviderRequest.js +2 -0
  15. package/dist/esm/models/SCIMProviderGroup.d.ts +7 -1
  16. package/dist/esm/models/SCIMProviderGroup.js +3 -0
  17. package/dist/esm/models/SCIMProviderUser.d.ts +7 -1
  18. package/dist/esm/models/SCIMProviderUser.js +3 -0
  19. package/dist/models/PatchedSAMLProviderRequest.d.ts +6 -0
  20. package/dist/models/PatchedSAMLProviderRequest.js +2 -0
  21. package/dist/models/SAMLProvider.d.ts +6 -0
  22. package/dist/models/SAMLProvider.js +2 -0
  23. package/dist/models/SAMLProviderRequest.d.ts +6 -0
  24. package/dist/models/SAMLProviderRequest.js +2 -0
  25. package/dist/models/SCIMProviderGroup.d.ts +7 -1
  26. package/dist/models/SCIMProviderGroup.js +3 -0
  27. package/dist/models/SCIMProviderUser.d.ts +7 -1
  28. package/dist/models/SCIMProviderUser.js +3 -0
  29. package/package.json +1 -1
  30. package/src/apis/ProvidersApi.ts +5 -0
  31. package/src/apis/SourcesApi.ts +2 -2
  32. package/src/models/PatchedSAMLProviderRequest.ts +8 -0
  33. package/src/models/SAMLProvider.ts +8 -0
  34. package/src/models/SAMLProviderRequest.ts +8 -0
  35. package/src/models/SCIMProviderGroup.ts +9 -1
  36. package/src/models/SCIMProviderUser.ts +9 -1
@@ -383,6 +383,7 @@ export interface ProvidersSamlListRequest {
383
383
  assertionValidNotOnOrAfter?: string;
384
384
  audience?: string;
385
385
  authenticationFlow?: string;
386
+ authnContextClassRefMapping?: string;
386
387
  authorizationFlow?: string;
387
388
  backchannelApplication?: string;
388
389
  defaultRelayState?: string;
@@ -3361,6 +3361,9 @@ class ProvidersApi extends runtime.BaseAPI {
3361
3361
  if (requestParameters['authenticationFlow'] != null) {
3362
3362
  queryParameters['authentication_flow'] = requestParameters['authenticationFlow'];
3363
3363
  }
3364
+ if (requestParameters['authnContextClassRefMapping'] != null) {
3365
+ queryParameters['authn_context_class_ref_mapping'] = requestParameters['authnContextClassRefMapping'];
3366
+ }
3364
3367
  if (requestParameters['authorizationFlow'] != null) {
3365
3368
  queryParameters['authorization_flow'] = requestParameters['authorizationFlow'];
3366
3369
  }
@@ -610,11 +610,11 @@ export interface SourcesUserConnectionsSamlUsedByListRequest {
610
610
  */
611
611
  export declare class SourcesApi extends runtime.BaseAPI {
612
612
  /**
613
- * Source Viewset
613
+ * Prevent deletion of built-in sources
614
614
  */
615
615
  sourcesAllDestroyRaw(requestParameters: SourcesAllDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
616
616
  /**
617
- * Source Viewset
617
+ * Prevent deletion of built-in sources
618
618
  */
619
619
  sourcesAllDestroy(requestParameters: SourcesAllDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
620
620
  /**
@@ -30,7 +30,7 @@ const index_1 = require("../models/index");
30
30
  */
31
31
  class SourcesApi extends runtime.BaseAPI {
32
32
  /**
33
- * Source Viewset
33
+ * Prevent deletion of built-in sources
34
34
  */
35
35
  sourcesAllDestroyRaw(requestParameters, initOverrides) {
36
36
  return __awaiter(this, void 0, void 0, function* () {
@@ -56,7 +56,7 @@ class SourcesApi extends runtime.BaseAPI {
56
56
  });
57
57
  }
58
58
  /**
59
- * Source Viewset
59
+ * Prevent deletion of built-in sources
60
60
  */
61
61
  sourcesAllDestroy(requestParameters, initOverrides) {
62
62
  return __awaiter(this, void 0, void 0, function* () {
@@ -383,6 +383,7 @@ export interface ProvidersSamlListRequest {
383
383
  assertionValidNotOnOrAfter?: string;
384
384
  audience?: string;
385
385
  authenticationFlow?: string;
386
+ authnContextClassRefMapping?: string;
386
387
  authorizationFlow?: string;
387
388
  backchannelApplication?: string;
388
389
  defaultRelayState?: string;
@@ -3358,6 +3358,9 @@ export class ProvidersApi extends runtime.BaseAPI {
3358
3358
  if (requestParameters['authenticationFlow'] != null) {
3359
3359
  queryParameters['authentication_flow'] = requestParameters['authenticationFlow'];
3360
3360
  }
3361
+ if (requestParameters['authnContextClassRefMapping'] != null) {
3362
+ queryParameters['authn_context_class_ref_mapping'] = requestParameters['authnContextClassRefMapping'];
3363
+ }
3361
3364
  if (requestParameters['authorizationFlow'] != null) {
3362
3365
  queryParameters['authorization_flow'] = requestParameters['authorizationFlow'];
3363
3366
  }
@@ -610,11 +610,11 @@ export interface SourcesUserConnectionsSamlUsedByListRequest {
610
610
  */
611
611
  export declare class SourcesApi extends runtime.BaseAPI {
612
612
  /**
613
- * Source Viewset
613
+ * Prevent deletion of built-in sources
614
614
  */
615
615
  sourcesAllDestroyRaw(requestParameters: SourcesAllDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
616
616
  /**
617
- * Source Viewset
617
+ * Prevent deletion of built-in sources
618
618
  */
619
619
  sourcesAllDestroy(requestParameters: SourcesAllDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
620
620
  /**
@@ -27,7 +27,7 @@ import { FilePathRequestToJSON, GroupKerberosSourceConnectionFromJSON, GroupKerb
27
27
  */
28
28
  export class SourcesApi extends runtime.BaseAPI {
29
29
  /**
30
- * Source Viewset
30
+ * Prevent deletion of built-in sources
31
31
  */
32
32
  sourcesAllDestroyRaw(requestParameters, initOverrides) {
33
33
  return __awaiter(this, void 0, void 0, function* () {
@@ -53,7 +53,7 @@ export class SourcesApi extends runtime.BaseAPI {
53
53
  });
54
54
  }
55
55
  /**
56
- * Source Viewset
56
+ * Prevent deletion of built-in sources
57
57
  */
58
58
  sourcesAllDestroy(requestParameters, initOverrides) {
59
59
  return __awaiter(this, void 0, void 0, function* () {
@@ -90,6 +90,12 @@ export interface PatchedSAMLProviderRequest {
90
90
  * @memberof PatchedSAMLProviderRequest
91
91
  */
92
92
  nameIdMapping?: string | null;
93
+ /**
94
+ * Configure how the AuthnContextClassRef value will be created. When left empty, the AuthnContextClassRef will be set based on which authentication methods the user used to authenticate.
95
+ * @type {string}
96
+ * @memberof PatchedSAMLProviderRequest
97
+ */
98
+ authnContextClassRefMapping?: string | null;
93
99
  /**
94
100
  *
95
101
  * @type {DigestAlgorithmEnum}
@@ -40,6 +40,7 @@ export function PatchedSAMLProviderRequestFromJSONTyped(json, ignoreDiscriminato
40
40
  'assertionValidNotOnOrAfter': json['assertion_valid_not_on_or_after'] == null ? undefined : json['assertion_valid_not_on_or_after'],
41
41
  'sessionValidNotOnOrAfter': json['session_valid_not_on_or_after'] == null ? undefined : json['session_valid_not_on_or_after'],
42
42
  'nameIdMapping': json['name_id_mapping'] == null ? undefined : json['name_id_mapping'],
43
+ 'authnContextClassRefMapping': json['authn_context_class_ref_mapping'] == null ? undefined : json['authn_context_class_ref_mapping'],
43
44
  'digestAlgorithm': json['digest_algorithm'] == null ? undefined : DigestAlgorithmEnumFromJSON(json['digest_algorithm']),
44
45
  'signatureAlgorithm': json['signature_algorithm'] == null ? undefined : SignatureAlgorithmEnumFromJSON(json['signature_algorithm']),
45
46
  'signingKp': json['signing_kp'] == null ? undefined : json['signing_kp'],
@@ -71,6 +72,7 @@ export function PatchedSAMLProviderRequestToJSONTyped(value, ignoreDiscriminator
71
72
  'assertion_valid_not_on_or_after': value['assertionValidNotOnOrAfter'],
72
73
  'session_valid_not_on_or_after': value['sessionValidNotOnOrAfter'],
73
74
  'name_id_mapping': value['nameIdMapping'],
75
+ 'authn_context_class_ref_mapping': value['authnContextClassRefMapping'],
74
76
  'digest_algorithm': DigestAlgorithmEnumToJSON(value['digestAlgorithm']),
75
77
  'signature_algorithm': SignatureAlgorithmEnumToJSON(value['signatureAlgorithm']),
76
78
  'signing_kp': value['signingKp'],
@@ -144,6 +144,12 @@ export interface SAMLProvider {
144
144
  * @memberof SAMLProvider
145
145
  */
146
146
  nameIdMapping?: string | null;
147
+ /**
148
+ * Configure how the AuthnContextClassRef value will be created. When left empty, the AuthnContextClassRef will be set based on which authentication methods the user used to authenticate.
149
+ * @type {string}
150
+ * @memberof SAMLProvider
151
+ */
152
+ authnContextClassRefMapping?: string | null;
147
153
  /**
148
154
  *
149
155
  * @type {DigestAlgorithmEnum}
@@ -87,6 +87,7 @@ export function SAMLProviderFromJSONTyped(json, ignoreDiscriminator) {
87
87
  'assertionValidNotOnOrAfter': json['assertion_valid_not_on_or_after'] == null ? undefined : json['assertion_valid_not_on_or_after'],
88
88
  'sessionValidNotOnOrAfter': json['session_valid_not_on_or_after'] == null ? undefined : json['session_valid_not_on_or_after'],
89
89
  'nameIdMapping': json['name_id_mapping'] == null ? undefined : json['name_id_mapping'],
90
+ 'authnContextClassRefMapping': json['authn_context_class_ref_mapping'] == null ? undefined : json['authn_context_class_ref_mapping'],
90
91
  'digestAlgorithm': json['digest_algorithm'] == null ? undefined : DigestAlgorithmEnumFromJSON(json['digest_algorithm']),
91
92
  'signatureAlgorithm': json['signature_algorithm'] == null ? undefined : SignatureAlgorithmEnumFromJSON(json['signature_algorithm']),
92
93
  'signingKp': json['signing_kp'] == null ? undefined : json['signing_kp'],
@@ -124,6 +125,7 @@ export function SAMLProviderToJSONTyped(value, ignoreDiscriminator = false) {
124
125
  'assertion_valid_not_on_or_after': value['assertionValidNotOnOrAfter'],
125
126
  'session_valid_not_on_or_after': value['sessionValidNotOnOrAfter'],
126
127
  'name_id_mapping': value['nameIdMapping'],
128
+ 'authn_context_class_ref_mapping': value['authnContextClassRefMapping'],
127
129
  'digest_algorithm': DigestAlgorithmEnumToJSON(value['digestAlgorithm']),
128
130
  'signature_algorithm': SignatureAlgorithmEnumToJSON(value['signatureAlgorithm']),
129
131
  'signing_kp': value['signingKp'],
@@ -90,6 +90,12 @@ export interface SAMLProviderRequest {
90
90
  * @memberof SAMLProviderRequest
91
91
  */
92
92
  nameIdMapping?: string | null;
93
+ /**
94
+ * Configure how the AuthnContextClassRef value will be created. When left empty, the AuthnContextClassRef will be set based on which authentication methods the user used to authenticate.
95
+ * @type {string}
96
+ * @memberof SAMLProviderRequest
97
+ */
98
+ authnContextClassRefMapping?: string | null;
93
99
  /**
94
100
  *
95
101
  * @type {DigestAlgorithmEnum}
@@ -48,6 +48,7 @@ export function SAMLProviderRequestFromJSONTyped(json, ignoreDiscriminator) {
48
48
  'assertionValidNotOnOrAfter': json['assertion_valid_not_on_or_after'] == null ? undefined : json['assertion_valid_not_on_or_after'],
49
49
  'sessionValidNotOnOrAfter': json['session_valid_not_on_or_after'] == null ? undefined : json['session_valid_not_on_or_after'],
50
50
  'nameIdMapping': json['name_id_mapping'] == null ? undefined : json['name_id_mapping'],
51
+ 'authnContextClassRefMapping': json['authn_context_class_ref_mapping'] == null ? undefined : json['authn_context_class_ref_mapping'],
51
52
  'digestAlgorithm': json['digest_algorithm'] == null ? undefined : DigestAlgorithmEnumFromJSON(json['digest_algorithm']),
52
53
  'signatureAlgorithm': json['signature_algorithm'] == null ? undefined : SignatureAlgorithmEnumFromJSON(json['signature_algorithm']),
53
54
  'signingKp': json['signing_kp'] == null ? undefined : json['signing_kp'],
@@ -79,6 +80,7 @@ export function SAMLProviderRequestToJSONTyped(value, ignoreDiscriminator = fals
79
80
  'assertion_valid_not_on_or_after': value['assertionValidNotOnOrAfter'],
80
81
  'session_valid_not_on_or_after': value['sessionValidNotOnOrAfter'],
81
82
  'name_id_mapping': value['nameIdMapping'],
83
+ 'authn_context_class_ref_mapping': value['authnContextClassRefMapping'],
82
84
  'digest_algorithm': DigestAlgorithmEnumToJSON(value['digestAlgorithm']),
83
85
  'signature_algorithm': SignatureAlgorithmEnumToJSON(value['signatureAlgorithm']),
84
86
  'signing_kp': value['signingKp'],
@@ -46,6 +46,12 @@ export interface SCIMProviderGroup {
46
46
  * @memberof SCIMProviderGroup
47
47
  */
48
48
  provider: number;
49
+ /**
50
+ *
51
+ * @type {any}
52
+ * @memberof SCIMProviderGroup
53
+ */
54
+ readonly attributes: any | null;
49
55
  }
50
56
  /**
51
57
  * Check if a given object implements the SCIMProviderGroup interface.
@@ -54,4 +60,4 @@ export declare function instanceOfSCIMProviderGroup(value: object): value is SCI
54
60
  export declare function SCIMProviderGroupFromJSON(json: any): SCIMProviderGroup;
55
61
  export declare function SCIMProviderGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): SCIMProviderGroup;
56
62
  export declare function SCIMProviderGroupToJSON(json: any): SCIMProviderGroup;
57
- export declare function SCIMProviderGroupToJSONTyped(value?: Omit<SCIMProviderGroup, 'id' | 'group_obj'> | null, ignoreDiscriminator?: boolean): any;
63
+ export declare function SCIMProviderGroupToJSONTyped(value?: Omit<SCIMProviderGroup, 'id' | 'group_obj' | 'attributes'> | null, ignoreDiscriminator?: boolean): any;
@@ -26,6 +26,8 @@ export function instanceOfSCIMProviderGroup(value) {
26
26
  return false;
27
27
  if (!('provider' in value) || value['provider'] === undefined)
28
28
  return false;
29
+ if (!('attributes' in value) || value['attributes'] === undefined)
30
+ return false;
29
31
  return true;
30
32
  }
31
33
  export function SCIMProviderGroupFromJSON(json) {
@@ -41,6 +43,7 @@ export function SCIMProviderGroupFromJSONTyped(json, ignoreDiscriminator) {
41
43
  'group': json['group'],
42
44
  'groupObj': UserGroupFromJSON(json['group_obj']),
43
45
  'provider': json['provider'],
46
+ 'attributes': json['attributes'],
44
47
  };
45
48
  }
46
49
  export function SCIMProviderGroupToJSON(json) {
@@ -46,6 +46,12 @@ export interface SCIMProviderUser {
46
46
  * @memberof SCIMProviderUser
47
47
  */
48
48
  provider: number;
49
+ /**
50
+ *
51
+ * @type {any}
52
+ * @memberof SCIMProviderUser
53
+ */
54
+ readonly attributes: any | null;
49
55
  }
50
56
  /**
51
57
  * Check if a given object implements the SCIMProviderUser interface.
@@ -54,4 +60,4 @@ export declare function instanceOfSCIMProviderUser(value: object): value is SCIM
54
60
  export declare function SCIMProviderUserFromJSON(json: any): SCIMProviderUser;
55
61
  export declare function SCIMProviderUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): SCIMProviderUser;
56
62
  export declare function SCIMProviderUserToJSON(json: any): SCIMProviderUser;
57
- export declare function SCIMProviderUserToJSONTyped(value?: Omit<SCIMProviderUser, 'id' | 'user_obj'> | null, ignoreDiscriminator?: boolean): any;
63
+ export declare function SCIMProviderUserToJSONTyped(value?: Omit<SCIMProviderUser, 'id' | 'user_obj' | 'attributes'> | null, ignoreDiscriminator?: boolean): any;
@@ -26,6 +26,8 @@ export function instanceOfSCIMProviderUser(value) {
26
26
  return false;
27
27
  if (!('provider' in value) || value['provider'] === undefined)
28
28
  return false;
29
+ if (!('attributes' in value) || value['attributes'] === undefined)
30
+ return false;
29
31
  return true;
30
32
  }
31
33
  export function SCIMProviderUserFromJSON(json) {
@@ -41,6 +43,7 @@ export function SCIMProviderUserFromJSONTyped(json, ignoreDiscriminator) {
41
43
  'user': json['user'],
42
44
  'userObj': GroupMemberFromJSON(json['user_obj']),
43
45
  'provider': json['provider'],
46
+ 'attributes': json['attributes'],
44
47
  };
45
48
  }
46
49
  export function SCIMProviderUserToJSON(json) {
@@ -90,6 +90,12 @@ export interface PatchedSAMLProviderRequest {
90
90
  * @memberof PatchedSAMLProviderRequest
91
91
  */
92
92
  nameIdMapping?: string | null;
93
+ /**
94
+ * Configure how the AuthnContextClassRef value will be created. When left empty, the AuthnContextClassRef will be set based on which authentication methods the user used to authenticate.
95
+ * @type {string}
96
+ * @memberof PatchedSAMLProviderRequest
97
+ */
98
+ authnContextClassRefMapping?: string | null;
93
99
  /**
94
100
  *
95
101
  * @type {DigestAlgorithmEnum}
@@ -47,6 +47,7 @@ function PatchedSAMLProviderRequestFromJSONTyped(json, ignoreDiscriminator) {
47
47
  'assertionValidNotOnOrAfter': json['assertion_valid_not_on_or_after'] == null ? undefined : json['assertion_valid_not_on_or_after'],
48
48
  'sessionValidNotOnOrAfter': json['session_valid_not_on_or_after'] == null ? undefined : json['session_valid_not_on_or_after'],
49
49
  'nameIdMapping': json['name_id_mapping'] == null ? undefined : json['name_id_mapping'],
50
+ 'authnContextClassRefMapping': json['authn_context_class_ref_mapping'] == null ? undefined : json['authn_context_class_ref_mapping'],
50
51
  'digestAlgorithm': json['digest_algorithm'] == null ? undefined : (0, DigestAlgorithmEnum_1.DigestAlgorithmEnumFromJSON)(json['digest_algorithm']),
51
52
  'signatureAlgorithm': json['signature_algorithm'] == null ? undefined : (0, SignatureAlgorithmEnum_1.SignatureAlgorithmEnumFromJSON)(json['signature_algorithm']),
52
53
  'signingKp': json['signing_kp'] == null ? undefined : json['signing_kp'],
@@ -78,6 +79,7 @@ function PatchedSAMLProviderRequestToJSONTyped(value, ignoreDiscriminator = fals
78
79
  'assertion_valid_not_on_or_after': value['assertionValidNotOnOrAfter'],
79
80
  'session_valid_not_on_or_after': value['sessionValidNotOnOrAfter'],
80
81
  'name_id_mapping': value['nameIdMapping'],
82
+ 'authn_context_class_ref_mapping': value['authnContextClassRefMapping'],
81
83
  'digest_algorithm': (0, DigestAlgorithmEnum_1.DigestAlgorithmEnumToJSON)(value['digestAlgorithm']),
82
84
  'signature_algorithm': (0, SignatureAlgorithmEnum_1.SignatureAlgorithmEnumToJSON)(value['signatureAlgorithm']),
83
85
  'signing_kp': value['signingKp'],
@@ -144,6 +144,12 @@ export interface SAMLProvider {
144
144
  * @memberof SAMLProvider
145
145
  */
146
146
  nameIdMapping?: string | null;
147
+ /**
148
+ * Configure how the AuthnContextClassRef value will be created. When left empty, the AuthnContextClassRef will be set based on which authentication methods the user used to authenticate.
149
+ * @type {string}
150
+ * @memberof SAMLProvider
151
+ */
152
+ authnContextClassRefMapping?: string | null;
147
153
  /**
148
154
  *
149
155
  * @type {DigestAlgorithmEnum}
@@ -94,6 +94,7 @@ function SAMLProviderFromJSONTyped(json, ignoreDiscriminator) {
94
94
  'assertionValidNotOnOrAfter': json['assertion_valid_not_on_or_after'] == null ? undefined : json['assertion_valid_not_on_or_after'],
95
95
  'sessionValidNotOnOrAfter': json['session_valid_not_on_or_after'] == null ? undefined : json['session_valid_not_on_or_after'],
96
96
  'nameIdMapping': json['name_id_mapping'] == null ? undefined : json['name_id_mapping'],
97
+ 'authnContextClassRefMapping': json['authn_context_class_ref_mapping'] == null ? undefined : json['authn_context_class_ref_mapping'],
97
98
  'digestAlgorithm': json['digest_algorithm'] == null ? undefined : (0, DigestAlgorithmEnum_1.DigestAlgorithmEnumFromJSON)(json['digest_algorithm']),
98
99
  'signatureAlgorithm': json['signature_algorithm'] == null ? undefined : (0, SignatureAlgorithmEnum_1.SignatureAlgorithmEnumFromJSON)(json['signature_algorithm']),
99
100
  'signingKp': json['signing_kp'] == null ? undefined : json['signing_kp'],
@@ -131,6 +132,7 @@ function SAMLProviderToJSONTyped(value, ignoreDiscriminator = false) {
131
132
  'assertion_valid_not_on_or_after': value['assertionValidNotOnOrAfter'],
132
133
  'session_valid_not_on_or_after': value['sessionValidNotOnOrAfter'],
133
134
  'name_id_mapping': value['nameIdMapping'],
135
+ 'authn_context_class_ref_mapping': value['authnContextClassRefMapping'],
134
136
  'digest_algorithm': (0, DigestAlgorithmEnum_1.DigestAlgorithmEnumToJSON)(value['digestAlgorithm']),
135
137
  'signature_algorithm': (0, SignatureAlgorithmEnum_1.SignatureAlgorithmEnumToJSON)(value['signatureAlgorithm']),
136
138
  'signing_kp': value['signingKp'],
@@ -90,6 +90,12 @@ export interface SAMLProviderRequest {
90
90
  * @memberof SAMLProviderRequest
91
91
  */
92
92
  nameIdMapping?: string | null;
93
+ /**
94
+ * Configure how the AuthnContextClassRef value will be created. When left empty, the AuthnContextClassRef will be set based on which authentication methods the user used to authenticate.
95
+ * @type {string}
96
+ * @memberof SAMLProviderRequest
97
+ */
98
+ authnContextClassRefMapping?: string | null;
93
99
  /**
94
100
  *
95
101
  * @type {DigestAlgorithmEnum}
@@ -55,6 +55,7 @@ function SAMLProviderRequestFromJSONTyped(json, ignoreDiscriminator) {
55
55
  'assertionValidNotOnOrAfter': json['assertion_valid_not_on_or_after'] == null ? undefined : json['assertion_valid_not_on_or_after'],
56
56
  'sessionValidNotOnOrAfter': json['session_valid_not_on_or_after'] == null ? undefined : json['session_valid_not_on_or_after'],
57
57
  'nameIdMapping': json['name_id_mapping'] == null ? undefined : json['name_id_mapping'],
58
+ 'authnContextClassRefMapping': json['authn_context_class_ref_mapping'] == null ? undefined : json['authn_context_class_ref_mapping'],
58
59
  'digestAlgorithm': json['digest_algorithm'] == null ? undefined : (0, DigestAlgorithmEnum_1.DigestAlgorithmEnumFromJSON)(json['digest_algorithm']),
59
60
  'signatureAlgorithm': json['signature_algorithm'] == null ? undefined : (0, SignatureAlgorithmEnum_1.SignatureAlgorithmEnumFromJSON)(json['signature_algorithm']),
60
61
  'signingKp': json['signing_kp'] == null ? undefined : json['signing_kp'],
@@ -86,6 +87,7 @@ function SAMLProviderRequestToJSONTyped(value, ignoreDiscriminator = false) {
86
87
  'assertion_valid_not_on_or_after': value['assertionValidNotOnOrAfter'],
87
88
  'session_valid_not_on_or_after': value['sessionValidNotOnOrAfter'],
88
89
  'name_id_mapping': value['nameIdMapping'],
90
+ 'authn_context_class_ref_mapping': value['authnContextClassRefMapping'],
89
91
  'digest_algorithm': (0, DigestAlgorithmEnum_1.DigestAlgorithmEnumToJSON)(value['digestAlgorithm']),
90
92
  'signature_algorithm': (0, SignatureAlgorithmEnum_1.SignatureAlgorithmEnumToJSON)(value['signatureAlgorithm']),
91
93
  'signing_kp': value['signingKp'],
@@ -46,6 +46,12 @@ export interface SCIMProviderGroup {
46
46
  * @memberof SCIMProviderGroup
47
47
  */
48
48
  provider: number;
49
+ /**
50
+ *
51
+ * @type {any}
52
+ * @memberof SCIMProviderGroup
53
+ */
54
+ readonly attributes: any | null;
49
55
  }
50
56
  /**
51
57
  * Check if a given object implements the SCIMProviderGroup interface.
@@ -54,4 +60,4 @@ export declare function instanceOfSCIMProviderGroup(value: object): value is SCI
54
60
  export declare function SCIMProviderGroupFromJSON(json: any): SCIMProviderGroup;
55
61
  export declare function SCIMProviderGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): SCIMProviderGroup;
56
62
  export declare function SCIMProviderGroupToJSON(json: any): SCIMProviderGroup;
57
- export declare function SCIMProviderGroupToJSONTyped(value?: Omit<SCIMProviderGroup, 'id' | 'group_obj'> | null, ignoreDiscriminator?: boolean): any;
63
+ export declare function SCIMProviderGroupToJSONTyped(value?: Omit<SCIMProviderGroup, 'id' | 'group_obj' | 'attributes'> | null, ignoreDiscriminator?: boolean): any;
@@ -33,6 +33,8 @@ function instanceOfSCIMProviderGroup(value) {
33
33
  return false;
34
34
  if (!('provider' in value) || value['provider'] === undefined)
35
35
  return false;
36
+ if (!('attributes' in value) || value['attributes'] === undefined)
37
+ return false;
36
38
  return true;
37
39
  }
38
40
  function SCIMProviderGroupFromJSON(json) {
@@ -48,6 +50,7 @@ function SCIMProviderGroupFromJSONTyped(json, ignoreDiscriminator) {
48
50
  'group': json['group'],
49
51
  'groupObj': (0, UserGroup_1.UserGroupFromJSON)(json['group_obj']),
50
52
  'provider': json['provider'],
53
+ 'attributes': json['attributes'],
51
54
  };
52
55
  }
53
56
  function SCIMProviderGroupToJSON(json) {
@@ -46,6 +46,12 @@ export interface SCIMProviderUser {
46
46
  * @memberof SCIMProviderUser
47
47
  */
48
48
  provider: number;
49
+ /**
50
+ *
51
+ * @type {any}
52
+ * @memberof SCIMProviderUser
53
+ */
54
+ readonly attributes: any | null;
49
55
  }
50
56
  /**
51
57
  * Check if a given object implements the SCIMProviderUser interface.
@@ -54,4 +60,4 @@ export declare function instanceOfSCIMProviderUser(value: object): value is SCIM
54
60
  export declare function SCIMProviderUserFromJSON(json: any): SCIMProviderUser;
55
61
  export declare function SCIMProviderUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): SCIMProviderUser;
56
62
  export declare function SCIMProviderUserToJSON(json: any): SCIMProviderUser;
57
- export declare function SCIMProviderUserToJSONTyped(value?: Omit<SCIMProviderUser, 'id' | 'user_obj'> | null, ignoreDiscriminator?: boolean): any;
63
+ export declare function SCIMProviderUserToJSONTyped(value?: Omit<SCIMProviderUser, 'id' | 'user_obj' | 'attributes'> | null, ignoreDiscriminator?: boolean): any;
@@ -33,6 +33,8 @@ function instanceOfSCIMProviderUser(value) {
33
33
  return false;
34
34
  if (!('provider' in value) || value['provider'] === undefined)
35
35
  return false;
36
+ if (!('attributes' in value) || value['attributes'] === undefined)
37
+ return false;
36
38
  return true;
37
39
  }
38
40
  function SCIMProviderUserFromJSON(json) {
@@ -48,6 +50,7 @@ function SCIMProviderUserFromJSONTyped(json, ignoreDiscriminator) {
48
50
  'user': json['user'],
49
51
  'userObj': (0, GroupMember_1.GroupMemberFromJSON)(json['user_obj']),
50
52
  'provider': json['provider'],
53
+ 'attributes': json['attributes'],
51
54
  };
52
55
  }
53
56
  function SCIMProviderUserToJSON(json) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2025.2.2-1742245839",
3
+ "version": "2025.2.2-1742395408",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -683,6 +683,7 @@ export interface ProvidersSamlListRequest {
683
683
  assertionValidNotOnOrAfter?: string;
684
684
  audience?: string;
685
685
  authenticationFlow?: string;
686
+ authnContextClassRefMapping?: string;
686
687
  authorizationFlow?: string;
687
688
  backchannelApplication?: string;
688
689
  defaultRelayState?: string;
@@ -4851,6 +4852,10 @@ export class ProvidersApi extends runtime.BaseAPI {
4851
4852
  queryParameters['authentication_flow'] = requestParameters['authenticationFlow'];
4852
4853
  }
4853
4854
 
4855
+ if (requestParameters['authnContextClassRefMapping'] != null) {
4856
+ queryParameters['authn_context_class_ref_mapping'] = requestParameters['authnContextClassRefMapping'];
4857
+ }
4858
+
4854
4859
  if (requestParameters['authorizationFlow'] != null) {
4855
4860
  queryParameters['authorization_flow'] = requestParameters['authorizationFlow'];
4856
4861
  }
@@ -997,7 +997,7 @@ export interface SourcesUserConnectionsSamlUsedByListRequest {
997
997
  export class SourcesApi extends runtime.BaseAPI {
998
998
 
999
999
  /**
1000
- * Source Viewset
1000
+ * Prevent deletion of built-in sources
1001
1001
  */
1002
1002
  async sourcesAllDestroyRaw(requestParameters: SourcesAllDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
1003
1003
  if (requestParameters['slug'] == null) {
@@ -1030,7 +1030,7 @@ export class SourcesApi extends runtime.BaseAPI {
1030
1030
  }
1031
1031
 
1032
1032
  /**
1033
- * Source Viewset
1033
+ * Prevent deletion of built-in sources
1034
1034
  */
1035
1035
  async sourcesAllDestroy(requestParameters: SourcesAllDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
1036
1036
  await this.sourcesAllDestroyRaw(requestParameters, initOverrides);
@@ -113,6 +113,12 @@ export interface PatchedSAMLProviderRequest {
113
113
  * @memberof PatchedSAMLProviderRequest
114
114
  */
115
115
  nameIdMapping?: string | null;
116
+ /**
117
+ * Configure how the AuthnContextClassRef value will be created. When left empty, the AuthnContextClassRef will be set based on which authentication methods the user used to authenticate.
118
+ * @type {string}
119
+ * @memberof PatchedSAMLProviderRequest
120
+ */
121
+ authnContextClassRefMapping?: string | null;
116
122
  /**
117
123
  *
118
124
  * @type {DigestAlgorithmEnum}
@@ -200,6 +206,7 @@ export function PatchedSAMLProviderRequestFromJSONTyped(json: any, ignoreDiscrim
200
206
  'assertionValidNotOnOrAfter': json['assertion_valid_not_on_or_after'] == null ? undefined : json['assertion_valid_not_on_or_after'],
201
207
  'sessionValidNotOnOrAfter': json['session_valid_not_on_or_after'] == null ? undefined : json['session_valid_not_on_or_after'],
202
208
  'nameIdMapping': json['name_id_mapping'] == null ? undefined : json['name_id_mapping'],
209
+ 'authnContextClassRefMapping': json['authn_context_class_ref_mapping'] == null ? undefined : json['authn_context_class_ref_mapping'],
203
210
  'digestAlgorithm': json['digest_algorithm'] == null ? undefined : DigestAlgorithmEnumFromJSON(json['digest_algorithm']),
204
211
  'signatureAlgorithm': json['signature_algorithm'] == null ? undefined : SignatureAlgorithmEnumFromJSON(json['signature_algorithm']),
205
212
  'signingKp': json['signing_kp'] == null ? undefined : json['signing_kp'],
@@ -235,6 +242,7 @@ export function PatchedSAMLProviderRequestToJSONTyped(value?: PatchedSAMLProvide
235
242
  'assertion_valid_not_on_or_after': value['assertionValidNotOnOrAfter'],
236
243
  'session_valid_not_on_or_after': value['sessionValidNotOnOrAfter'],
237
244
  'name_id_mapping': value['nameIdMapping'],
245
+ 'authn_context_class_ref_mapping': value['authnContextClassRefMapping'],
238
246
  'digest_algorithm': DigestAlgorithmEnumToJSON(value['digestAlgorithm']),
239
247
  'signature_algorithm': SignatureAlgorithmEnumToJSON(value['signatureAlgorithm']),
240
248
  'signing_kp': value['signingKp'],
@@ -167,6 +167,12 @@ export interface SAMLProvider {
167
167
  * @memberof SAMLProvider
168
168
  */
169
169
  nameIdMapping?: string | null;
170
+ /**
171
+ * Configure how the AuthnContextClassRef value will be created. When left empty, the AuthnContextClassRef will be set based on which authentication methods the user used to authenticate.
172
+ * @type {string}
173
+ * @memberof SAMLProvider
174
+ */
175
+ authnContextClassRefMapping?: string | null;
170
176
  /**
171
177
  *
172
178
  * @type {DigestAlgorithmEnum}
@@ -318,6 +324,7 @@ export function SAMLProviderFromJSONTyped(json: any, ignoreDiscriminator: boolea
318
324
  'assertionValidNotOnOrAfter': json['assertion_valid_not_on_or_after'] == null ? undefined : json['assertion_valid_not_on_or_after'],
319
325
  'sessionValidNotOnOrAfter': json['session_valid_not_on_or_after'] == null ? undefined : json['session_valid_not_on_or_after'],
320
326
  'nameIdMapping': json['name_id_mapping'] == null ? undefined : json['name_id_mapping'],
327
+ 'authnContextClassRefMapping': json['authn_context_class_ref_mapping'] == null ? undefined : json['authn_context_class_ref_mapping'],
321
328
  'digestAlgorithm': json['digest_algorithm'] == null ? undefined : DigestAlgorithmEnumFromJSON(json['digest_algorithm']),
322
329
  'signatureAlgorithm': json['signature_algorithm'] == null ? undefined : SignatureAlgorithmEnumFromJSON(json['signature_algorithm']),
323
330
  'signingKp': json['signing_kp'] == null ? undefined : json['signing_kp'],
@@ -359,6 +366,7 @@ export function SAMLProviderToJSONTyped(value?: Omit<SAMLProvider, 'pk'|'compone
359
366
  'assertion_valid_not_on_or_after': value['assertionValidNotOnOrAfter'],
360
367
  'session_valid_not_on_or_after': value['sessionValidNotOnOrAfter'],
361
368
  'name_id_mapping': value['nameIdMapping'],
369
+ 'authn_context_class_ref_mapping': value['authnContextClassRefMapping'],
362
370
  'digest_algorithm': DigestAlgorithmEnumToJSON(value['digestAlgorithm']),
363
371
  'signature_algorithm': SignatureAlgorithmEnumToJSON(value['signatureAlgorithm']),
364
372
  'signing_kp': value['signingKp'],
@@ -113,6 +113,12 @@ export interface SAMLProviderRequest {
113
113
  * @memberof SAMLProviderRequest
114
114
  */
115
115
  nameIdMapping?: string | null;
116
+ /**
117
+ * Configure how the AuthnContextClassRef value will be created. When left empty, the AuthnContextClassRef will be set based on which authentication methods the user used to authenticate.
118
+ * @type {string}
119
+ * @memberof SAMLProviderRequest
120
+ */
121
+ authnContextClassRefMapping?: string | null;
116
122
  /**
117
123
  *
118
124
  * @type {DigestAlgorithmEnum}
@@ -204,6 +210,7 @@ export function SAMLProviderRequestFromJSONTyped(json: any, ignoreDiscriminator:
204
210
  'assertionValidNotOnOrAfter': json['assertion_valid_not_on_or_after'] == null ? undefined : json['assertion_valid_not_on_or_after'],
205
211
  'sessionValidNotOnOrAfter': json['session_valid_not_on_or_after'] == null ? undefined : json['session_valid_not_on_or_after'],
206
212
  'nameIdMapping': json['name_id_mapping'] == null ? undefined : json['name_id_mapping'],
213
+ 'authnContextClassRefMapping': json['authn_context_class_ref_mapping'] == null ? undefined : json['authn_context_class_ref_mapping'],
207
214
  'digestAlgorithm': json['digest_algorithm'] == null ? undefined : DigestAlgorithmEnumFromJSON(json['digest_algorithm']),
208
215
  'signatureAlgorithm': json['signature_algorithm'] == null ? undefined : SignatureAlgorithmEnumFromJSON(json['signature_algorithm']),
209
216
  'signingKp': json['signing_kp'] == null ? undefined : json['signing_kp'],
@@ -239,6 +246,7 @@ export function SAMLProviderRequestToJSONTyped(value?: SAMLProviderRequest | nul
239
246
  'assertion_valid_not_on_or_after': value['assertionValidNotOnOrAfter'],
240
247
  'session_valid_not_on_or_after': value['sessionValidNotOnOrAfter'],
241
248
  'name_id_mapping': value['nameIdMapping'],
249
+ 'authn_context_class_ref_mapping': value['authnContextClassRefMapping'],
242
250
  'digest_algorithm': DigestAlgorithmEnumToJSON(value['digestAlgorithm']),
243
251
  'signature_algorithm': SignatureAlgorithmEnumToJSON(value['signatureAlgorithm']),
244
252
  'signing_kp': value['signingKp'],
@@ -57,6 +57,12 @@ export interface SCIMProviderGroup {
57
57
  * @memberof SCIMProviderGroup
58
58
  */
59
59
  provider: number;
60
+ /**
61
+ *
62
+ * @type {any}
63
+ * @memberof SCIMProviderGroup
64
+ */
65
+ readonly attributes: any | null;
60
66
  }
61
67
 
62
68
  /**
@@ -68,6 +74,7 @@ export function instanceOfSCIMProviderGroup(value: object): value is SCIMProvide
68
74
  if (!('group' in value) || value['group'] === undefined) return false;
69
75
  if (!('groupObj' in value) || value['groupObj'] === undefined) return false;
70
76
  if (!('provider' in value) || value['provider'] === undefined) return false;
77
+ if (!('attributes' in value) || value['attributes'] === undefined) return false;
71
78
  return true;
72
79
  }
73
80
 
@@ -86,6 +93,7 @@ export function SCIMProviderGroupFromJSONTyped(json: any, ignoreDiscriminator: b
86
93
  'group': json['group'],
87
94
  'groupObj': UserGroupFromJSON(json['group_obj']),
88
95
  'provider': json['provider'],
96
+ 'attributes': json['attributes'],
89
97
  };
90
98
  }
91
99
 
@@ -93,7 +101,7 @@ export function SCIMProviderGroupToJSON(json: any): SCIMProviderGroup {
93
101
  return SCIMProviderGroupToJSONTyped(json, false);
94
102
  }
95
103
 
96
- export function SCIMProviderGroupToJSONTyped(value?: Omit<SCIMProviderGroup, 'id'|'group_obj'> | null, ignoreDiscriminator: boolean = false): any {
104
+ export function SCIMProviderGroupToJSONTyped(value?: Omit<SCIMProviderGroup, 'id'|'group_obj'|'attributes'> | null, ignoreDiscriminator: boolean = false): any {
97
105
  if (value == null) {
98
106
  return value;
99
107
  }
@@ -57,6 +57,12 @@ export interface SCIMProviderUser {
57
57
  * @memberof SCIMProviderUser
58
58
  */
59
59
  provider: number;
60
+ /**
61
+ *
62
+ * @type {any}
63
+ * @memberof SCIMProviderUser
64
+ */
65
+ readonly attributes: any | null;
60
66
  }
61
67
 
62
68
  /**
@@ -68,6 +74,7 @@ export function instanceOfSCIMProviderUser(value: object): value is SCIMProvider
68
74
  if (!('user' in value) || value['user'] === undefined) return false;
69
75
  if (!('userObj' in value) || value['userObj'] === undefined) return false;
70
76
  if (!('provider' in value) || value['provider'] === undefined) return false;
77
+ if (!('attributes' in value) || value['attributes'] === undefined) return false;
71
78
  return true;
72
79
  }
73
80
 
@@ -86,6 +93,7 @@ export function SCIMProviderUserFromJSONTyped(json: any, ignoreDiscriminator: bo
86
93
  'user': json['user'],
87
94
  'userObj': GroupMemberFromJSON(json['user_obj']),
88
95
  'provider': json['provider'],
96
+ 'attributes': json['attributes'],
89
97
  };
90
98
  }
91
99
 
@@ -93,7 +101,7 @@ export function SCIMProviderUserToJSON(json: any): SCIMProviderUser {
93
101
  return SCIMProviderUserToJSONTyped(json, false);
94
102
  }
95
103
 
96
- export function SCIMProviderUserToJSONTyped(value?: Omit<SCIMProviderUser, 'id'|'user_obj'> | null, ignoreDiscriminator: boolean = false): any {
104
+ export function SCIMProviderUserToJSONTyped(value?: Omit<SCIMProviderUser, 'id'|'user_obj'|'attributes'> | null, ignoreDiscriminator: boolean = false): any {
97
105
  if (value == null) {
98
106
  return value;
99
107
  }