@goauthentik/api 2024.6.1-1721916595 → 2024.6.1-1721927330

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/dist/apis/OutpostsApi.d.ts +7 -28
  3. package/dist/apis/OutpostsApi.js +11 -78
  4. package/dist/apis/PropertymappingsApi.d.ts +87 -1
  5. package/dist/apis/PropertymappingsApi.js +274 -0
  6. package/dist/apis/RbacApi.d.ts +2 -0
  7. package/dist/apis/RbacApi.js +2 -0
  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 +87 -1
  11. package/dist/esm/apis/PropertymappingsApi.js +275 -1
  12. package/dist/esm/apis/RbacApi.d.ts +2 -0
  13. package/dist/esm/apis/RbacApi.js +2 -0
  14. package/dist/esm/models/ModelEnum.d.ts +1 -0
  15. package/dist/esm/models/ModelEnum.js +1 -0
  16. package/dist/esm/models/PaginatedRadiusProviderPropertyMappingList.d.ts +39 -0
  17. package/dist/esm/models/PaginatedRadiusProviderPropertyMappingList.js +48 -0
  18. package/dist/esm/models/PatchedRadiusProviderPropertyMappingRequest.d.ts +43 -0
  19. package/dist/esm/models/PatchedRadiusProviderPropertyMappingRequest.js +47 -0
  20. package/dist/esm/models/RadiusCheckAccess.d.ts +38 -0
  21. package/dist/esm/models/RadiusCheckAccess.js +47 -0
  22. package/dist/esm/models/RadiusProviderPropertyMapping.d.ts +73 -0
  23. package/dist/esm/models/RadiusProviderPropertyMapping.js +59 -0
  24. package/dist/esm/models/RadiusProviderPropertyMappingRequest.d.ts +43 -0
  25. package/dist/esm/models/RadiusProviderPropertyMappingRequest.js +49 -0
  26. package/dist/esm/models/index.d.ts +5 -0
  27. package/dist/esm/models/index.js +5 -0
  28. package/dist/models/ModelEnum.d.ts +1 -0
  29. package/dist/models/ModelEnum.js +1 -0
  30. package/dist/models/PaginatedRadiusProviderPropertyMappingList.d.ts +39 -0
  31. package/dist/models/PaginatedRadiusProviderPropertyMappingList.js +55 -0
  32. package/dist/models/PatchedRadiusProviderPropertyMappingRequest.d.ts +43 -0
  33. package/dist/models/PatchedRadiusProviderPropertyMappingRequest.js +54 -0
  34. package/dist/models/RadiusCheckAccess.d.ts +38 -0
  35. package/dist/models/RadiusCheckAccess.js +54 -0
  36. package/dist/models/RadiusProviderPropertyMapping.d.ts +73 -0
  37. package/dist/models/RadiusProviderPropertyMapping.js +66 -0
  38. package/dist/models/RadiusProviderPropertyMappingRequest.d.ts +43 -0
  39. package/dist/models/RadiusProviderPropertyMappingRequest.js +56 -0
  40. package/dist/models/index.d.ts +5 -0
  41. package/dist/models/index.js +5 -0
  42. package/package.json +1 -1
  43. package/src/apis/OutpostsApi.ts +17 -102
  44. package/src/apis/PropertymappingsApi.ts +355 -0
  45. package/src/apis/RbacApi.ts +2 -0
  46. package/src/models/ModelEnum.ts +1 -0
  47. package/src/models/PaginatedRadiusProviderPropertyMappingList.ts +88 -0
  48. package/src/models/PatchedRadiusProviderPropertyMappingRequest.ts +81 -0
  49. package/src/models/RadiusCheckAccess.ts +81 -0
  50. package/src/models/RadiusProviderPropertyMapping.ts +123 -0
  51. package/src/models/RadiusProviderPropertyMappingRequest.ts +83 -0
  52. package/src/models/index.ts +5 -0
@@ -0,0 +1,88 @@
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 { Pagination } from './Pagination';
17
+ import {
18
+ PaginationFromJSON,
19
+ PaginationFromJSONTyped,
20
+ PaginationToJSON,
21
+ } from './Pagination';
22
+ import type { RadiusProviderPropertyMapping } from './RadiusProviderPropertyMapping';
23
+ import {
24
+ RadiusProviderPropertyMappingFromJSON,
25
+ RadiusProviderPropertyMappingFromJSONTyped,
26
+ RadiusProviderPropertyMappingToJSON,
27
+ } from './RadiusProviderPropertyMapping';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface PaginatedRadiusProviderPropertyMappingList
33
+ */
34
+ export interface PaginatedRadiusProviderPropertyMappingList {
35
+ /**
36
+ *
37
+ * @type {Pagination}
38
+ * @memberof PaginatedRadiusProviderPropertyMappingList
39
+ */
40
+ pagination: Pagination;
41
+ /**
42
+ *
43
+ * @type {Array<RadiusProviderPropertyMapping>}
44
+ * @memberof PaginatedRadiusProviderPropertyMappingList
45
+ */
46
+ results: Array<RadiusProviderPropertyMapping>;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the PaginatedRadiusProviderPropertyMappingList interface.
51
+ */
52
+ export function instanceOfPaginatedRadiusProviderPropertyMappingList(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 PaginatedRadiusProviderPropertyMappingListFromJSON(json: any): PaginatedRadiusProviderPropertyMappingList {
61
+ return PaginatedRadiusProviderPropertyMappingListFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedRadiusProviderPropertyMappingListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedRadiusProviderPropertyMappingList {
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(RadiusProviderPropertyMappingFromJSON)),
72
+ };
73
+ }
74
+
75
+ export function PaginatedRadiusProviderPropertyMappingListToJSON(value?: PaginatedRadiusProviderPropertyMappingList | 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(RadiusProviderPropertyMappingToJSON)),
86
+ };
87
+ }
88
+
@@ -0,0 +1,81 @@
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 PatchedRadiusProviderPropertyMappingRequest
20
+ */
21
+ export interface PatchedRadiusProviderPropertyMappingRequest {
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 PatchedRadiusProviderPropertyMappingRequest
26
+ */
27
+ managed?: string | null;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PatchedRadiusProviderPropertyMappingRequest
32
+ */
33
+ name?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof PatchedRadiusProviderPropertyMappingRequest
38
+ */
39
+ expression?: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the PatchedRadiusProviderPropertyMappingRequest interface.
44
+ */
45
+ export function instanceOfPatchedRadiusProviderPropertyMappingRequest(value: object): boolean {
46
+ let isInstance = true;
47
+
48
+ return isInstance;
49
+ }
50
+
51
+ export function PatchedRadiusProviderPropertyMappingRequestFromJSON(json: any): PatchedRadiusProviderPropertyMappingRequest {
52
+ return PatchedRadiusProviderPropertyMappingRequestFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function PatchedRadiusProviderPropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedRadiusProviderPropertyMappingRequest {
56
+ if ((json === undefined) || (json === null)) {
57
+ return json;
58
+ }
59
+ return {
60
+
61
+ 'managed': !exists(json, 'managed') ? undefined : json['managed'],
62
+ 'name': !exists(json, 'name') ? undefined : json['name'],
63
+ 'expression': !exists(json, 'expression') ? undefined : json['expression'],
64
+ };
65
+ }
66
+
67
+ export function PatchedRadiusProviderPropertyMappingRequestToJSON(value?: PatchedRadiusProviderPropertyMappingRequest | null): any {
68
+ if (value === undefined) {
69
+ return undefined;
70
+ }
71
+ if (value === null) {
72
+ return null;
73
+ }
74
+ return {
75
+
76
+ 'managed': value.managed,
77
+ 'name': value.name,
78
+ 'expression': value.expression,
79
+ };
80
+ }
81
+
@@ -0,0 +1,81 @@
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 { PolicyTestResult } from './PolicyTestResult';
17
+ import {
18
+ PolicyTestResultFromJSON,
19
+ PolicyTestResultFromJSONTyped,
20
+ PolicyTestResultToJSON,
21
+ } from './PolicyTestResult';
22
+
23
+ /**
24
+ * Base serializer class which doesn't implement create/update methods
25
+ * @export
26
+ * @interface RadiusCheckAccess
27
+ */
28
+ export interface RadiusCheckAccess {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof RadiusCheckAccess
33
+ */
34
+ attributes?: string;
35
+ /**
36
+ *
37
+ * @type {PolicyTestResult}
38
+ * @memberof RadiusCheckAccess
39
+ */
40
+ access: PolicyTestResult;
41
+ }
42
+
43
+ /**
44
+ * Check if a given object implements the RadiusCheckAccess interface.
45
+ */
46
+ export function instanceOfRadiusCheckAccess(value: object): boolean {
47
+ let isInstance = true;
48
+ isInstance = isInstance && "access" in value;
49
+
50
+ return isInstance;
51
+ }
52
+
53
+ export function RadiusCheckAccessFromJSON(json: any): RadiusCheckAccess {
54
+ return RadiusCheckAccessFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function RadiusCheckAccessFromJSONTyped(json: any, ignoreDiscriminator: boolean): RadiusCheckAccess {
58
+ if ((json === undefined) || (json === null)) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
64
+ 'access': PolicyTestResultFromJSON(json['access']),
65
+ };
66
+ }
67
+
68
+ export function RadiusCheckAccessToJSON(value?: RadiusCheckAccess | null): any {
69
+ if (value === undefined) {
70
+ return undefined;
71
+ }
72
+ if (value === null) {
73
+ return null;
74
+ }
75
+ return {
76
+
77
+ 'attributes': value.attributes,
78
+ 'access': PolicyTestResultToJSON(value.access),
79
+ };
80
+ }
81
+
@@ -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
+
@@ -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';
@@ -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';