@goauthentik/api 2024.6.1-1721909829 → 2024.6.1-1721927330

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. package/.openapi-generator/FILES +9 -4
  2. package/dist/apis/OutpostsApi.d.ts +7 -28
  3. package/dist/apis/OutpostsApi.js +11 -78
  4. package/dist/apis/PropertymappingsApi.d.ts +173 -87
  5. package/dist/apis/PropertymappingsApi.js +575 -301
  6. package/dist/apis/RbacApi.d.ts +4 -2
  7. package/dist/apis/RbacApi.js +4 -2
  8. package/dist/esm/apis/OutpostsApi.d.ts +7 -28
  9. package/dist/esm/apis/OutpostsApi.js +12 -79
  10. package/dist/esm/apis/PropertymappingsApi.d.ts +173 -87
  11. package/dist/esm/apis/PropertymappingsApi.js +576 -302
  12. package/dist/esm/apis/RbacApi.d.ts +4 -2
  13. package/dist/esm/apis/RbacApi.js +4 -2
  14. package/dist/esm/models/{LDAPPropertyMapping.d.ts → LDAPSourcePropertyMapping.d.ts} +15 -15
  15. package/dist/esm/models/{LDAPPropertyMapping.js → LDAPSourcePropertyMapping.js} +6 -6
  16. package/dist/{models/LDAPPropertyMappingRequest.d.ts → esm/models/LDAPSourcePropertyMappingRequest.d.ts} +10 -10
  17. package/dist/esm/models/{LDAPPropertyMappingRequest.js → LDAPSourcePropertyMappingRequest.js} +6 -6
  18. package/dist/esm/models/ModelEnum.d.ts +2 -1
  19. package/dist/esm/models/ModelEnum.js +2 -1
  20. package/dist/esm/models/PaginatedLDAPSourcePropertyMappingList.d.ts +39 -0
  21. package/dist/esm/models/{PaginatedLDAPPropertyMappingList.js → PaginatedLDAPSourcePropertyMappingList.js} +9 -9
  22. package/dist/esm/models/PaginatedRadiusProviderPropertyMappingList.d.ts +39 -0
  23. package/dist/esm/models/PaginatedRadiusProviderPropertyMappingList.js +48 -0
  24. package/dist/esm/models/PatchedLDAPSourcePropertyMappingRequest.d.ts +43 -0
  25. package/dist/esm/models/{PatchedLDAPPropertyMappingRequest.js → PatchedLDAPSourcePropertyMappingRequest.js} +6 -6
  26. package/dist/esm/models/PatchedRadiusProviderPropertyMappingRequest.d.ts +43 -0
  27. package/dist/esm/models/PatchedRadiusProviderPropertyMappingRequest.js +47 -0
  28. package/dist/esm/models/RadiusCheckAccess.d.ts +38 -0
  29. package/dist/esm/models/RadiusCheckAccess.js +47 -0
  30. package/dist/esm/models/RadiusProviderPropertyMapping.d.ts +73 -0
  31. package/dist/esm/models/RadiusProviderPropertyMapping.js +59 -0
  32. package/dist/esm/models/RadiusProviderPropertyMappingRequest.d.ts +43 -0
  33. package/dist/esm/models/RadiusProviderPropertyMappingRequest.js +49 -0
  34. package/dist/esm/models/index.d.ts +9 -4
  35. package/dist/esm/models/index.js +9 -4
  36. package/dist/models/{LDAPPropertyMapping.d.ts → LDAPSourcePropertyMapping.d.ts} +15 -15
  37. package/dist/models/{LDAPPropertyMapping.js → LDAPSourcePropertyMapping.js} +11 -11
  38. package/dist/{esm/models/LDAPPropertyMappingRequest.d.ts → models/LDAPSourcePropertyMappingRequest.d.ts} +10 -10
  39. package/dist/models/{LDAPPropertyMappingRequest.js → LDAPSourcePropertyMappingRequest.js} +11 -11
  40. package/dist/models/ModelEnum.d.ts +2 -1
  41. package/dist/models/ModelEnum.js +2 -1
  42. package/dist/models/PaginatedLDAPSourcePropertyMappingList.d.ts +39 -0
  43. package/dist/models/PaginatedLDAPSourcePropertyMappingList.js +55 -0
  44. package/dist/models/PaginatedRadiusProviderPropertyMappingList.d.ts +39 -0
  45. package/dist/models/PaginatedRadiusProviderPropertyMappingList.js +55 -0
  46. package/dist/models/PatchedLDAPSourcePropertyMappingRequest.d.ts +43 -0
  47. package/dist/models/PatchedLDAPSourcePropertyMappingRequest.js +54 -0
  48. package/dist/models/PatchedRadiusProviderPropertyMappingRequest.d.ts +43 -0
  49. package/dist/models/PatchedRadiusProviderPropertyMappingRequest.js +54 -0
  50. package/dist/models/RadiusCheckAccess.d.ts +38 -0
  51. package/dist/models/RadiusCheckAccess.js +54 -0
  52. package/dist/models/RadiusProviderPropertyMapping.d.ts +73 -0
  53. package/dist/models/RadiusProviderPropertyMapping.js +66 -0
  54. package/dist/models/RadiusProviderPropertyMappingRequest.d.ts +43 -0
  55. package/dist/models/RadiusProviderPropertyMappingRequest.js +56 -0
  56. package/dist/models/index.d.ts +9 -4
  57. package/dist/models/index.js +9 -4
  58. package/package.json +1 -1
  59. package/src/apis/OutpostsApi.ts +17 -102
  60. package/src/apis/PropertymappingsApi.ts +888 -533
  61. package/src/apis/RbacApi.ts +4 -2
  62. package/src/models/{LDAPPropertyMapping.ts → LDAPSourcePropertyMapping.ts} +16 -16
  63. package/src/models/{LDAPPropertyMappingRequest.ts → LDAPSourcePropertyMappingRequest.ts} +11 -11
  64. package/src/models/ModelEnum.ts +2 -1
  65. package/src/models/PaginatedLDAPSourcePropertyMappingList.ts +88 -0
  66. package/src/models/PaginatedRadiusProviderPropertyMappingList.ts +88 -0
  67. package/src/models/{PatchedLDAPPropertyMappingRequest.ts → PatchedLDAPSourcePropertyMappingRequest.ts} +11 -11
  68. package/src/models/PatchedRadiusProviderPropertyMappingRequest.ts +81 -0
  69. package/src/models/RadiusCheckAccess.ts +81 -0
  70. package/src/models/RadiusProviderPropertyMapping.ts +123 -0
  71. package/src/models/RadiusProviderPropertyMappingRequest.ts +83 -0
  72. package/src/models/index.ts +9 -4
  73. package/dist/esm/models/PaginatedLDAPPropertyMappingList.d.ts +0 -39
  74. package/dist/esm/models/PatchedLDAPPropertyMappingRequest.d.ts +0 -43
  75. package/dist/models/PaginatedLDAPPropertyMappingList.d.ts +0 -39
  76. package/dist/models/PaginatedLDAPPropertyMappingList.js +0 -55
  77. package/dist/models/PatchedLDAPPropertyMappingRequest.d.ts +0 -43
  78. package/dist/models/PatchedLDAPPropertyMappingRequest.js +0 -54
  79. package/src/models/PaginatedLDAPPropertyMappingList.ts +0 -88
@@ -0,0 +1,123 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.6.1
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 { exists, mapValues } from '../runtime';
16
+ /**
17
+ * RadiusProviderPropertyMapping Serializer
18
+ * @export
19
+ * @interface RadiusProviderPropertyMapping
20
+ */
21
+ export interface RadiusProviderPropertyMapping {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof RadiusProviderPropertyMapping
26
+ */
27
+ readonly pk: string;
28
+ /**
29
+ * Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
30
+ * @type {string}
31
+ * @memberof RadiusProviderPropertyMapping
32
+ */
33
+ managed?: string | null;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof RadiusProviderPropertyMapping
38
+ */
39
+ name: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof RadiusProviderPropertyMapping
44
+ */
45
+ expression: string;
46
+ /**
47
+ * Get object's component so that we know how to edit the object
48
+ * @type {string}
49
+ * @memberof RadiusProviderPropertyMapping
50
+ */
51
+ readonly component: string;
52
+ /**
53
+ * Return object's verbose_name
54
+ * @type {string}
55
+ * @memberof RadiusProviderPropertyMapping
56
+ */
57
+ readonly verboseName: string;
58
+ /**
59
+ * Return object's plural verbose_name
60
+ * @type {string}
61
+ * @memberof RadiusProviderPropertyMapping
62
+ */
63
+ readonly verboseNamePlural: string;
64
+ /**
65
+ * Return internal model name
66
+ * @type {string}
67
+ * @memberof RadiusProviderPropertyMapping
68
+ */
69
+ readonly metaModelName: string;
70
+ }
71
+
72
+ /**
73
+ * Check if a given object implements the RadiusProviderPropertyMapping interface.
74
+ */
75
+ export function instanceOfRadiusProviderPropertyMapping(value: object): boolean {
76
+ let isInstance = true;
77
+ isInstance = isInstance && "pk" in value;
78
+ isInstance = isInstance && "name" in value;
79
+ isInstance = isInstance && "expression" in value;
80
+ isInstance = isInstance && "component" in value;
81
+ isInstance = isInstance && "verboseName" in value;
82
+ isInstance = isInstance && "verboseNamePlural" in value;
83
+ isInstance = isInstance && "metaModelName" in value;
84
+
85
+ return isInstance;
86
+ }
87
+
88
+ export function RadiusProviderPropertyMappingFromJSON(json: any): RadiusProviderPropertyMapping {
89
+ return RadiusProviderPropertyMappingFromJSONTyped(json, false);
90
+ }
91
+
92
+ export function RadiusProviderPropertyMappingFromJSONTyped(json: any, ignoreDiscriminator: boolean): RadiusProviderPropertyMapping {
93
+ if ((json === undefined) || (json === null)) {
94
+ return json;
95
+ }
96
+ return {
97
+
98
+ 'pk': json['pk'],
99
+ 'managed': !exists(json, 'managed') ? undefined : json['managed'],
100
+ 'name': json['name'],
101
+ 'expression': json['expression'],
102
+ 'component': json['component'],
103
+ 'verboseName': json['verbose_name'],
104
+ 'verboseNamePlural': json['verbose_name_plural'],
105
+ 'metaModelName': json['meta_model_name'],
106
+ };
107
+ }
108
+
109
+ export function RadiusProviderPropertyMappingToJSON(value?: RadiusProviderPropertyMapping | null): any {
110
+ if (value === undefined) {
111
+ return undefined;
112
+ }
113
+ if (value === null) {
114
+ return null;
115
+ }
116
+ return {
117
+
118
+ 'managed': value.managed,
119
+ 'name': value.name,
120
+ 'expression': value.expression,
121
+ };
122
+ }
123
+
@@ -0,0 +1,83 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.6.1
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 { exists, mapValues } from '../runtime';
16
+ /**
17
+ * RadiusProviderPropertyMapping Serializer
18
+ * @export
19
+ * @interface RadiusProviderPropertyMappingRequest
20
+ */
21
+ export interface RadiusProviderPropertyMappingRequest {
22
+ /**
23
+ * Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
24
+ * @type {string}
25
+ * @memberof RadiusProviderPropertyMappingRequest
26
+ */
27
+ managed?: string | null;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof RadiusProviderPropertyMappingRequest
32
+ */
33
+ name: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof RadiusProviderPropertyMappingRequest
38
+ */
39
+ expression: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the RadiusProviderPropertyMappingRequest interface.
44
+ */
45
+ export function instanceOfRadiusProviderPropertyMappingRequest(value: object): boolean {
46
+ let isInstance = true;
47
+ isInstance = isInstance && "name" in value;
48
+ isInstance = isInstance && "expression" in value;
49
+
50
+ return isInstance;
51
+ }
52
+
53
+ export function RadiusProviderPropertyMappingRequestFromJSON(json: any): RadiusProviderPropertyMappingRequest {
54
+ return RadiusProviderPropertyMappingRequestFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function RadiusProviderPropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RadiusProviderPropertyMappingRequest {
58
+ if ((json === undefined) || (json === null)) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'managed': !exists(json, 'managed') ? undefined : json['managed'],
64
+ 'name': json['name'],
65
+ 'expression': json['expression'],
66
+ };
67
+ }
68
+
69
+ export function RadiusProviderPropertyMappingRequestToJSON(value?: RadiusProviderPropertyMappingRequest | null): any {
70
+ if (value === undefined) {
71
+ return undefined;
72
+ }
73
+ if (value === null) {
74
+ return null;
75
+ }
76
+ return {
77
+
78
+ 'managed': value.managed,
79
+ 'name': value.name,
80
+ 'expression': value.expression,
81
+ };
82
+ }
83
+
@@ -169,11 +169,11 @@ export * from './KubernetesServiceConnectionRequest';
169
169
  export * from './LDAPAPIAccessMode';
170
170
  export * from './LDAPDebug';
171
171
  export * from './LDAPOutpostConfig';
172
- export * from './LDAPPropertyMapping';
173
- export * from './LDAPPropertyMappingRequest';
174
172
  export * from './LDAPProvider';
175
173
  export * from './LDAPProviderRequest';
176
174
  export * from './LDAPSource';
175
+ export * from './LDAPSourcePropertyMapping';
176
+ export * from './LDAPSourcePropertyMappingRequest';
177
177
  export * from './LDAPSourceRequest';
178
178
  export * from './License';
179
179
  export * from './LicenseForecast';
@@ -265,9 +265,9 @@ export * from './PaginatedInvitationList';
265
265
  export * from './PaginatedInvitationStageList';
266
266
  export * from './PaginatedKubernetesServiceConnectionList';
267
267
  export * from './PaginatedLDAPOutpostConfigList';
268
- export * from './PaginatedLDAPPropertyMappingList';
269
268
  export * from './PaginatedLDAPProviderList';
270
269
  export * from './PaginatedLDAPSourceList';
270
+ export * from './PaginatedLDAPSourcePropertyMappingList';
271
271
  export * from './PaginatedLicenseList';
272
272
  export * from './PaginatedMicrosoftEntraProviderGroupList';
273
273
  export * from './PaginatedMicrosoftEntraProviderList';
@@ -298,6 +298,7 @@ export * from './PaginatedRACPropertyMappingList';
298
298
  export * from './PaginatedRACProviderList';
299
299
  export * from './PaginatedRadiusOutpostConfigList';
300
300
  export * from './PaginatedRadiusProviderList';
301
+ export * from './PaginatedRadiusProviderPropertyMappingList';
301
302
  export * from './PaginatedReputationList';
302
303
  export * from './PaginatedReputationPolicyList';
303
304
  export * from './PaginatedRoleAssignedObjectPermissionList';
@@ -378,8 +379,8 @@ export * from './PatchedIdentificationStageRequest';
378
379
  export * from './PatchedInvitationRequest';
379
380
  export * from './PatchedInvitationStageRequest';
380
381
  export * from './PatchedKubernetesServiceConnectionRequest';
381
- export * from './PatchedLDAPPropertyMappingRequest';
382
382
  export * from './PatchedLDAPProviderRequest';
383
+ export * from './PatchedLDAPSourcePropertyMappingRequest';
383
384
  export * from './PatchedLDAPSourceRequest';
384
385
  export * from './PatchedLicenseRequest';
385
386
  export * from './PatchedMicrosoftEntraProviderMappingRequest';
@@ -403,6 +404,7 @@ export * from './PatchedPromptStageRequest';
403
404
  export * from './PatchedProxyProviderRequest';
404
405
  export * from './PatchedRACPropertyMappingRequest';
405
406
  export * from './PatchedRACProviderRequest';
407
+ export * from './PatchedRadiusProviderPropertyMappingRequest';
406
408
  export * from './PatchedRadiusProviderRequest';
407
409
  export * from './PatchedReputationPolicyRequest';
408
410
  export * from './PatchedRoleRequest';
@@ -471,8 +473,11 @@ export * from './RACPropertyMapping';
471
473
  export * from './RACPropertyMappingRequest';
472
474
  export * from './RACProvider';
473
475
  export * from './RACProviderRequest';
476
+ export * from './RadiusCheckAccess';
474
477
  export * from './RadiusOutpostConfig';
475
478
  export * from './RadiusProvider';
479
+ export * from './RadiusProviderPropertyMapping';
480
+ export * from './RadiusProviderPropertyMappingRequest';
476
481
  export * from './RadiusProviderRequest';
477
482
  export * from './RedirectChallenge';
478
483
  export * from './Reputation';
@@ -1,39 +0,0 @@
1
- /**
2
- * authentik
3
- * Making authentication simple.
4
- *
5
- * The version of the OpenAPI document: 2024.6.1
6
- * Contact: hello@goauthentik.io
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { LDAPPropertyMapping } from './LDAPPropertyMapping';
13
- import type { Pagination } from './Pagination';
14
- /**
15
- *
16
- * @export
17
- * @interface PaginatedLDAPPropertyMappingList
18
- */
19
- export interface PaginatedLDAPPropertyMappingList {
20
- /**
21
- *
22
- * @type {Pagination}
23
- * @memberof PaginatedLDAPPropertyMappingList
24
- */
25
- pagination: Pagination;
26
- /**
27
- *
28
- * @type {Array<LDAPPropertyMapping>}
29
- * @memberof PaginatedLDAPPropertyMappingList
30
- */
31
- results: Array<LDAPPropertyMapping>;
32
- }
33
- /**
34
- * Check if a given object implements the PaginatedLDAPPropertyMappingList interface.
35
- */
36
- export declare function instanceOfPaginatedLDAPPropertyMappingList(value: object): boolean;
37
- export declare function PaginatedLDAPPropertyMappingListFromJSON(json: any): PaginatedLDAPPropertyMappingList;
38
- export declare function PaginatedLDAPPropertyMappingListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedLDAPPropertyMappingList;
39
- export declare function PaginatedLDAPPropertyMappingListToJSON(value?: PaginatedLDAPPropertyMappingList | null): any;
@@ -1,43 +0,0 @@
1
- /**
2
- * authentik
3
- * Making authentication simple.
4
- *
5
- * The version of the OpenAPI document: 2024.6.1
6
- * Contact: hello@goauthentik.io
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- * LDAP PropertyMapping Serializer
14
- * @export
15
- * @interface PatchedLDAPPropertyMappingRequest
16
- */
17
- export interface PatchedLDAPPropertyMappingRequest {
18
- /**
19
- * Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
20
- * @type {string}
21
- * @memberof PatchedLDAPPropertyMappingRequest
22
- */
23
- managed?: string | null;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof PatchedLDAPPropertyMappingRequest
28
- */
29
- name?: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof PatchedLDAPPropertyMappingRequest
34
- */
35
- expression?: string;
36
- }
37
- /**
38
- * Check if a given object implements the PatchedLDAPPropertyMappingRequest interface.
39
- */
40
- export declare function instanceOfPatchedLDAPPropertyMappingRequest(value: object): boolean;
41
- export declare function PatchedLDAPPropertyMappingRequestFromJSON(json: any): PatchedLDAPPropertyMappingRequest;
42
- export declare function PatchedLDAPPropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedLDAPPropertyMappingRequest;
43
- export declare function PatchedLDAPPropertyMappingRequestToJSON(value?: PatchedLDAPPropertyMappingRequest | null): any;
@@ -1,39 +0,0 @@
1
- /**
2
- * authentik
3
- * Making authentication simple.
4
- *
5
- * The version of the OpenAPI document: 2024.6.1
6
- * Contact: hello@goauthentik.io
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { LDAPPropertyMapping } from './LDAPPropertyMapping';
13
- import type { Pagination } from './Pagination';
14
- /**
15
- *
16
- * @export
17
- * @interface PaginatedLDAPPropertyMappingList
18
- */
19
- export interface PaginatedLDAPPropertyMappingList {
20
- /**
21
- *
22
- * @type {Pagination}
23
- * @memberof PaginatedLDAPPropertyMappingList
24
- */
25
- pagination: Pagination;
26
- /**
27
- *
28
- * @type {Array<LDAPPropertyMapping>}
29
- * @memberof PaginatedLDAPPropertyMappingList
30
- */
31
- results: Array<LDAPPropertyMapping>;
32
- }
33
- /**
34
- * Check if a given object implements the PaginatedLDAPPropertyMappingList interface.
35
- */
36
- export declare function instanceOfPaginatedLDAPPropertyMappingList(value: object): boolean;
37
- export declare function PaginatedLDAPPropertyMappingListFromJSON(json: any): PaginatedLDAPPropertyMappingList;
38
- export declare function PaginatedLDAPPropertyMappingListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedLDAPPropertyMappingList;
39
- export declare function PaginatedLDAPPropertyMappingListToJSON(value?: PaginatedLDAPPropertyMappingList | null): any;
@@ -1,55 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * authentik
6
- * Making authentication simple.
7
- *
8
- * The version of the OpenAPI document: 2024.6.1
9
- * Contact: hello@goauthentik.io
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.PaginatedLDAPPropertyMappingListToJSON = exports.PaginatedLDAPPropertyMappingListFromJSONTyped = exports.PaginatedLDAPPropertyMappingListFromJSON = exports.instanceOfPaginatedLDAPPropertyMappingList = void 0;
17
- const LDAPPropertyMapping_1 = require("./LDAPPropertyMapping");
18
- const Pagination_1 = require("./Pagination");
19
- /**
20
- * Check if a given object implements the PaginatedLDAPPropertyMappingList interface.
21
- */
22
- function instanceOfPaginatedLDAPPropertyMappingList(value) {
23
- let isInstance = true;
24
- isInstance = isInstance && "pagination" in value;
25
- isInstance = isInstance && "results" in value;
26
- return isInstance;
27
- }
28
- exports.instanceOfPaginatedLDAPPropertyMappingList = instanceOfPaginatedLDAPPropertyMappingList;
29
- function PaginatedLDAPPropertyMappingListFromJSON(json) {
30
- return PaginatedLDAPPropertyMappingListFromJSONTyped(json, false);
31
- }
32
- exports.PaginatedLDAPPropertyMappingListFromJSON = PaginatedLDAPPropertyMappingListFromJSON;
33
- function PaginatedLDAPPropertyMappingListFromJSONTyped(json, ignoreDiscriminator) {
34
- if ((json === undefined) || (json === null)) {
35
- return json;
36
- }
37
- return {
38
- 'pagination': (0, Pagination_1.PaginationFromJSON)(json['pagination']),
39
- 'results': (json['results'].map(LDAPPropertyMapping_1.LDAPPropertyMappingFromJSON)),
40
- };
41
- }
42
- exports.PaginatedLDAPPropertyMappingListFromJSONTyped = PaginatedLDAPPropertyMappingListFromJSONTyped;
43
- function PaginatedLDAPPropertyMappingListToJSON(value) {
44
- if (value === undefined) {
45
- return undefined;
46
- }
47
- if (value === null) {
48
- return null;
49
- }
50
- return {
51
- 'pagination': (0, Pagination_1.PaginationToJSON)(value.pagination),
52
- 'results': (value.results.map(LDAPPropertyMapping_1.LDAPPropertyMappingToJSON)),
53
- };
54
- }
55
- exports.PaginatedLDAPPropertyMappingListToJSON = PaginatedLDAPPropertyMappingListToJSON;
@@ -1,43 +0,0 @@
1
- /**
2
- * authentik
3
- * Making authentication simple.
4
- *
5
- * The version of the OpenAPI document: 2024.6.1
6
- * Contact: hello@goauthentik.io
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- * LDAP PropertyMapping Serializer
14
- * @export
15
- * @interface PatchedLDAPPropertyMappingRequest
16
- */
17
- export interface PatchedLDAPPropertyMappingRequest {
18
- /**
19
- * Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
20
- * @type {string}
21
- * @memberof PatchedLDAPPropertyMappingRequest
22
- */
23
- managed?: string | null;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof PatchedLDAPPropertyMappingRequest
28
- */
29
- name?: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof PatchedLDAPPropertyMappingRequest
34
- */
35
- expression?: string;
36
- }
37
- /**
38
- * Check if a given object implements the PatchedLDAPPropertyMappingRequest interface.
39
- */
40
- export declare function instanceOfPatchedLDAPPropertyMappingRequest(value: object): boolean;
41
- export declare function PatchedLDAPPropertyMappingRequestFromJSON(json: any): PatchedLDAPPropertyMappingRequest;
42
- export declare function PatchedLDAPPropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedLDAPPropertyMappingRequest;
43
- export declare function PatchedLDAPPropertyMappingRequestToJSON(value?: PatchedLDAPPropertyMappingRequest | null): any;
@@ -1,54 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * authentik
6
- * Making authentication simple.
7
- *
8
- * The version of the OpenAPI document: 2024.6.1
9
- * Contact: hello@goauthentik.io
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.PatchedLDAPPropertyMappingRequestToJSON = exports.PatchedLDAPPropertyMappingRequestFromJSONTyped = exports.PatchedLDAPPropertyMappingRequestFromJSON = exports.instanceOfPatchedLDAPPropertyMappingRequest = void 0;
17
- const runtime_1 = require("../runtime");
18
- /**
19
- * Check if a given object implements the PatchedLDAPPropertyMappingRequest interface.
20
- */
21
- function instanceOfPatchedLDAPPropertyMappingRequest(value) {
22
- let isInstance = true;
23
- return isInstance;
24
- }
25
- exports.instanceOfPatchedLDAPPropertyMappingRequest = instanceOfPatchedLDAPPropertyMappingRequest;
26
- function PatchedLDAPPropertyMappingRequestFromJSON(json) {
27
- return PatchedLDAPPropertyMappingRequestFromJSONTyped(json, false);
28
- }
29
- exports.PatchedLDAPPropertyMappingRequestFromJSON = PatchedLDAPPropertyMappingRequestFromJSON;
30
- function PatchedLDAPPropertyMappingRequestFromJSONTyped(json, ignoreDiscriminator) {
31
- if ((json === undefined) || (json === null)) {
32
- return json;
33
- }
34
- return {
35
- 'managed': !(0, runtime_1.exists)(json, 'managed') ? undefined : json['managed'],
36
- 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
37
- 'expression': !(0, runtime_1.exists)(json, 'expression') ? undefined : json['expression'],
38
- };
39
- }
40
- exports.PatchedLDAPPropertyMappingRequestFromJSONTyped = PatchedLDAPPropertyMappingRequestFromJSONTyped;
41
- function PatchedLDAPPropertyMappingRequestToJSON(value) {
42
- if (value === undefined) {
43
- return undefined;
44
- }
45
- if (value === null) {
46
- return null;
47
- }
48
- return {
49
- 'managed': value.managed,
50
- 'name': value.name,
51
- 'expression': value.expression,
52
- };
53
- }
54
- exports.PatchedLDAPPropertyMappingRequestToJSON = PatchedLDAPPropertyMappingRequestToJSON;
@@ -1,88 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * authentik
5
- * Making authentication simple.
6
- *
7
- * The version of the OpenAPI document: 2024.6.1
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 { exists, mapValues } from '../runtime';
16
- import type { LDAPPropertyMapping } from './LDAPPropertyMapping';
17
- import {
18
- LDAPPropertyMappingFromJSON,
19
- LDAPPropertyMappingFromJSONTyped,
20
- LDAPPropertyMappingToJSON,
21
- } from './LDAPPropertyMapping';
22
- import type { Pagination } from './Pagination';
23
- import {
24
- PaginationFromJSON,
25
- PaginationFromJSONTyped,
26
- PaginationToJSON,
27
- } from './Pagination';
28
-
29
- /**
30
- *
31
- * @export
32
- * @interface PaginatedLDAPPropertyMappingList
33
- */
34
- export interface PaginatedLDAPPropertyMappingList {
35
- /**
36
- *
37
- * @type {Pagination}
38
- * @memberof PaginatedLDAPPropertyMappingList
39
- */
40
- pagination: Pagination;
41
- /**
42
- *
43
- * @type {Array<LDAPPropertyMapping>}
44
- * @memberof PaginatedLDAPPropertyMappingList
45
- */
46
- results: Array<LDAPPropertyMapping>;
47
- }
48
-
49
- /**
50
- * Check if a given object implements the PaginatedLDAPPropertyMappingList interface.
51
- */
52
- export function instanceOfPaginatedLDAPPropertyMappingList(value: object): boolean {
53
- let isInstance = true;
54
- isInstance = isInstance && "pagination" in value;
55
- isInstance = isInstance && "results" in value;
56
-
57
- return isInstance;
58
- }
59
-
60
- export function PaginatedLDAPPropertyMappingListFromJSON(json: any): PaginatedLDAPPropertyMappingList {
61
- return PaginatedLDAPPropertyMappingListFromJSONTyped(json, false);
62
- }
63
-
64
- export function PaginatedLDAPPropertyMappingListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedLDAPPropertyMappingList {
65
- if ((json === undefined) || (json === null)) {
66
- return json;
67
- }
68
- return {
69
-
70
- 'pagination': PaginationFromJSON(json['pagination']),
71
- 'results': ((json['results'] as Array<any>).map(LDAPPropertyMappingFromJSON)),
72
- };
73
- }
74
-
75
- export function PaginatedLDAPPropertyMappingListToJSON(value?: PaginatedLDAPPropertyMappingList | null): any {
76
- if (value === undefined) {
77
- return undefined;
78
- }
79
- if (value === null) {
80
- return null;
81
- }
82
- return {
83
-
84
- 'pagination': PaginationToJSON(value.pagination),
85
- 'results': ((value.results as Array<any>).map(LDAPPropertyMappingToJSON)),
86
- };
87
- }
88
-