@goauthentik/api 2024.4.2-1715100363 → 2024.4.2-1715104360

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. package/.openapi-generator/FILES +10 -2
  2. package/dist/apis/PropertymappingsApi.d.ts +87 -1
  3. package/dist/apis/PropertymappingsApi.js +274 -0
  4. package/dist/apis/ProvidersApi.d.ts +100 -3
  5. package/dist/apis/ProvidersApi.js +311 -2
  6. package/dist/apis/RbacApi.d.ts +4 -0
  7. package/dist/apis/RbacApi.js +4 -0
  8. package/dist/apis/SourcesApi.d.ts +3 -3
  9. package/dist/apis/SourcesApi.js +2 -2
  10. package/dist/esm/apis/PropertymappingsApi.d.ts +87 -1
  11. package/dist/esm/apis/PropertymappingsApi.js +275 -1
  12. package/dist/esm/apis/ProvidersApi.d.ts +100 -3
  13. package/dist/esm/apis/ProvidersApi.js +312 -3
  14. package/dist/esm/apis/RbacApi.d.ts +4 -0
  15. package/dist/esm/apis/RbacApi.js +4 -0
  16. package/dist/esm/apis/SourcesApi.d.ts +3 -3
  17. package/dist/esm/apis/SourcesApi.js +3 -3
  18. package/dist/esm/models/AppEnum.d.ts +1 -0
  19. package/dist/esm/models/AppEnum.js +1 -0
  20. package/dist/esm/models/GoogleProvider.d.ts +134 -0
  21. package/dist/esm/models/GoogleProvider.js +82 -0
  22. package/dist/esm/models/GoogleProviderMapping.d.ts +73 -0
  23. package/dist/esm/models/GoogleProviderMapping.js +59 -0
  24. package/dist/esm/models/GoogleProviderMappingRequest.d.ts +43 -0
  25. package/dist/esm/models/GoogleProviderMappingRequest.js +49 -0
  26. package/dist/esm/models/GoogleProviderRequest.d.ts +92 -0
  27. package/dist/esm/models/GoogleProviderRequest.js +68 -0
  28. package/dist/esm/models/GoogleWorkspaceDeleteAction.d.ts +25 -0
  29. package/dist/esm/models/GoogleWorkspaceDeleteAction.js +32 -0
  30. package/dist/esm/models/ModelEnum.d.ts +2 -0
  31. package/dist/esm/models/ModelEnum.js +2 -0
  32. package/dist/esm/models/ModelRequest.d.ts +3 -0
  33. package/dist/esm/models/ModelRequest.js +5 -0
  34. package/dist/esm/models/PaginatedGoogleProviderList.d.ts +39 -0
  35. package/dist/esm/models/PaginatedGoogleProviderList.js +48 -0
  36. package/dist/esm/models/PaginatedGoogleProviderMappingList.d.ts +39 -0
  37. package/dist/esm/models/PaginatedGoogleProviderMappingList.js +48 -0
  38. package/dist/esm/models/PatchedGoogleProviderMappingRequest.d.ts +43 -0
  39. package/dist/esm/models/PatchedGoogleProviderMappingRequest.js +47 -0
  40. package/dist/esm/models/PatchedGoogleProviderRequest.d.ts +92 -0
  41. package/dist/esm/models/PatchedGoogleProviderRequest.js +64 -0
  42. package/dist/esm/models/ProviderModelEnum.d.ts +1 -0
  43. package/dist/esm/models/ProviderModelEnum.js +1 -0
  44. package/dist/esm/models/SyncStatus.d.ts +38 -0
  45. package/dist/esm/models/{LDAPSyncStatus.js → SyncStatus.js} +6 -6
  46. package/dist/esm/models/index.d.ts +10 -2
  47. package/dist/esm/models/index.js +10 -2
  48. package/dist/models/AppEnum.d.ts +1 -0
  49. package/dist/models/AppEnum.js +1 -0
  50. package/dist/models/GoogleProvider.d.ts +134 -0
  51. package/dist/models/GoogleProvider.js +89 -0
  52. package/dist/models/GoogleProviderMapping.d.ts +73 -0
  53. package/dist/models/GoogleProviderMapping.js +66 -0
  54. package/dist/models/GoogleProviderMappingRequest.d.ts +43 -0
  55. package/dist/models/GoogleProviderMappingRequest.js +56 -0
  56. package/dist/models/GoogleProviderRequest.d.ts +92 -0
  57. package/dist/models/GoogleProviderRequest.js +75 -0
  58. package/dist/models/GoogleWorkspaceDeleteAction.d.ts +25 -0
  59. package/dist/models/GoogleWorkspaceDeleteAction.js +38 -0
  60. package/dist/models/ModelEnum.d.ts +2 -0
  61. package/dist/models/ModelEnum.js +2 -0
  62. package/dist/models/ModelRequest.d.ts +3 -0
  63. package/dist/models/ModelRequest.js +5 -0
  64. package/dist/models/PaginatedGoogleProviderList.d.ts +39 -0
  65. package/dist/models/PaginatedGoogleProviderList.js +55 -0
  66. package/dist/models/PaginatedGoogleProviderMappingList.d.ts +39 -0
  67. package/dist/models/PaginatedGoogleProviderMappingList.js +55 -0
  68. package/dist/models/PatchedGoogleProviderMappingRequest.d.ts +43 -0
  69. package/dist/models/PatchedGoogleProviderMappingRequest.js +54 -0
  70. package/dist/models/PatchedGoogleProviderRequest.d.ts +92 -0
  71. package/dist/models/PatchedGoogleProviderRequest.js +71 -0
  72. package/dist/models/ProviderModelEnum.d.ts +1 -0
  73. package/dist/models/ProviderModelEnum.js +1 -0
  74. package/dist/models/SyncStatus.d.ts +38 -0
  75. package/dist/models/{LDAPSyncStatus.js → SyncStatus.js} +11 -11
  76. package/dist/models/index.d.ts +10 -2
  77. package/dist/models/index.js +10 -2
  78. package/package.json +1 -1
  79. package/src/apis/PropertymappingsApi.ts +355 -0
  80. package/src/apis/ProvidersApi.ts +404 -7
  81. package/src/apis/RbacApi.ts +4 -0
  82. package/src/apis/SourcesApi.ts +7 -7
  83. package/src/models/AppEnum.ts +1 -0
  84. package/src/models/GoogleProvider.ts +212 -0
  85. package/src/models/GoogleProviderMapping.ts +123 -0
  86. package/src/models/GoogleProviderMappingRequest.ts +83 -0
  87. package/src/models/GoogleProviderRequest.ts +156 -0
  88. package/src/models/GoogleWorkspaceDeleteAction.ts +40 -0
  89. package/src/models/ModelEnum.ts +2 -0
  90. package/src/models/ModelRequest.ts +12 -1
  91. package/src/models/PaginatedGoogleProviderList.ts +88 -0
  92. package/src/models/PaginatedGoogleProviderMappingList.ts +88 -0
  93. package/src/models/PatchedGoogleProviderMappingRequest.ts +81 -0
  94. package/src/models/PatchedGoogleProviderRequest.ts +152 -0
  95. package/src/models/ProviderModelEnum.ts +1 -0
  96. package/src/models/{LDAPSyncStatus.ts → SyncStatus.ts} +11 -11
  97. package/src/models/index.ts +10 -2
  98. package/dist/esm/models/LDAPSyncStatus.d.ts +0 -38
  99. package/dist/esm/models/SCIMSyncStatus.d.ts +0 -38
  100. package/dist/esm/models/SCIMSyncStatus.js +0 -44
  101. package/dist/models/LDAPSyncStatus.d.ts +0 -38
  102. package/dist/models/SCIMSyncStatus.d.ts +0 -38
  103. package/dist/models/SCIMSyncStatus.js +0 -51
  104. package/src/models/SCIMSyncStatus.ts +0 -80
@@ -0,0 +1,82 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.4.2
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
+ import { exists } from '../runtime';
15
+ import { GoogleWorkspaceDeleteActionFromJSON, GoogleWorkspaceDeleteActionToJSON, } from './GoogleWorkspaceDeleteAction';
16
+ /**
17
+ * Check if a given object implements the GoogleProvider interface.
18
+ */
19
+ export function instanceOfGoogleProvider(value) {
20
+ let isInstance = true;
21
+ isInstance = isInstance && "pk" in value;
22
+ isInstance = isInstance && "name" in value;
23
+ isInstance = isInstance && "component" in value;
24
+ isInstance = isInstance && "assignedBackchannelApplicationSlug" in value;
25
+ isInstance = isInstance && "assignedBackchannelApplicationName" in value;
26
+ isInstance = isInstance && "verboseName" in value;
27
+ isInstance = isInstance && "verboseNamePlural" in value;
28
+ isInstance = isInstance && "metaModelName" in value;
29
+ isInstance = isInstance && "delegatedSubject" in value;
30
+ isInstance = isInstance && "credentials" in value;
31
+ isInstance = isInstance && "defaultGroupEmailDomain" in value;
32
+ return isInstance;
33
+ }
34
+ export function GoogleProviderFromJSON(json) {
35
+ return GoogleProviderFromJSONTyped(json, false);
36
+ }
37
+ export function GoogleProviderFromJSONTyped(json, ignoreDiscriminator) {
38
+ if ((json === undefined) || (json === null)) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'pk': json['pk'],
43
+ 'name': json['name'],
44
+ 'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
45
+ 'propertyMappingsGroup': !exists(json, 'property_mappings_group') ? undefined : json['property_mappings_group'],
46
+ 'component': json['component'],
47
+ 'assignedBackchannelApplicationSlug': json['assigned_backchannel_application_slug'],
48
+ 'assignedBackchannelApplicationName': json['assigned_backchannel_application_name'],
49
+ 'verboseName': json['verbose_name'],
50
+ 'verboseNamePlural': json['verbose_name_plural'],
51
+ 'metaModelName': json['meta_model_name'],
52
+ 'delegatedSubject': json['delegated_subject'],
53
+ 'credentials': json['credentials'],
54
+ 'scopes': !exists(json, 'scopes') ? undefined : json['scopes'],
55
+ 'excludeUsersServiceAccount': !exists(json, 'exclude_users_service_account') ? undefined : json['exclude_users_service_account'],
56
+ 'filterGroup': !exists(json, 'filter_group') ? undefined : json['filter_group'],
57
+ 'userDeleteAction': !exists(json, 'user_delete_action') ? undefined : GoogleWorkspaceDeleteActionFromJSON(json['user_delete_action']),
58
+ 'groupDeleteAction': !exists(json, 'group_delete_action') ? undefined : GoogleWorkspaceDeleteActionFromJSON(json['group_delete_action']),
59
+ 'defaultGroupEmailDomain': json['default_group_email_domain'],
60
+ };
61
+ }
62
+ export function GoogleProviderToJSON(value) {
63
+ if (value === undefined) {
64
+ return undefined;
65
+ }
66
+ if (value === null) {
67
+ return null;
68
+ }
69
+ return {
70
+ 'name': value.name,
71
+ 'property_mappings': value.propertyMappings,
72
+ 'property_mappings_group': value.propertyMappingsGroup,
73
+ 'delegated_subject': value.delegatedSubject,
74
+ 'credentials': value.credentials,
75
+ 'scopes': value.scopes,
76
+ 'exclude_users_service_account': value.excludeUsersServiceAccount,
77
+ 'filter_group': value.filterGroup,
78
+ 'user_delete_action': GoogleWorkspaceDeleteActionToJSON(value.userDeleteAction),
79
+ 'group_delete_action': GoogleWorkspaceDeleteActionToJSON(value.groupDeleteAction),
80
+ 'default_group_email_domain': value.defaultGroupEmailDomain,
81
+ };
82
+ }
@@ -0,0 +1,73 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.4.2
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
+ * GoogleProviderMapping Serializer
14
+ * @export
15
+ * @interface GoogleProviderMapping
16
+ */
17
+ export interface GoogleProviderMapping {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof GoogleProviderMapping
22
+ */
23
+ readonly pk: string;
24
+ /**
25
+ * 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.
26
+ * @type {string}
27
+ * @memberof GoogleProviderMapping
28
+ */
29
+ managed?: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof GoogleProviderMapping
34
+ */
35
+ name: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof GoogleProviderMapping
40
+ */
41
+ expression: string;
42
+ /**
43
+ * Get object's component so that we know how to edit the object
44
+ * @type {string}
45
+ * @memberof GoogleProviderMapping
46
+ */
47
+ readonly component: string;
48
+ /**
49
+ * Return object's verbose_name
50
+ * @type {string}
51
+ * @memberof GoogleProviderMapping
52
+ */
53
+ readonly verboseName: string;
54
+ /**
55
+ * Return object's plural verbose_name
56
+ * @type {string}
57
+ * @memberof GoogleProviderMapping
58
+ */
59
+ readonly verboseNamePlural: string;
60
+ /**
61
+ * Return internal model name
62
+ * @type {string}
63
+ * @memberof GoogleProviderMapping
64
+ */
65
+ readonly metaModelName: string;
66
+ }
67
+ /**
68
+ * Check if a given object implements the GoogleProviderMapping interface.
69
+ */
70
+ export declare function instanceOfGoogleProviderMapping(value: object): boolean;
71
+ export declare function GoogleProviderMappingFromJSON(json: any): GoogleProviderMapping;
72
+ export declare function GoogleProviderMappingFromJSONTyped(json: any, ignoreDiscriminator: boolean): GoogleProviderMapping;
73
+ export declare function GoogleProviderMappingToJSON(value?: GoogleProviderMapping | null): any;
@@ -0,0 +1,59 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.4.2
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
+ import { exists } from '../runtime';
15
+ /**
16
+ * Check if a given object implements the GoogleProviderMapping interface.
17
+ */
18
+ export function instanceOfGoogleProviderMapping(value) {
19
+ let isInstance = true;
20
+ isInstance = isInstance && "pk" in value;
21
+ isInstance = isInstance && "name" in value;
22
+ isInstance = isInstance && "expression" in value;
23
+ isInstance = isInstance && "component" in value;
24
+ isInstance = isInstance && "verboseName" in value;
25
+ isInstance = isInstance && "verboseNamePlural" in value;
26
+ isInstance = isInstance && "metaModelName" in value;
27
+ return isInstance;
28
+ }
29
+ export function GoogleProviderMappingFromJSON(json) {
30
+ return GoogleProviderMappingFromJSONTyped(json, false);
31
+ }
32
+ export function GoogleProviderMappingFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'pk': json['pk'],
38
+ 'managed': !exists(json, 'managed') ? undefined : json['managed'],
39
+ 'name': json['name'],
40
+ 'expression': json['expression'],
41
+ 'component': json['component'],
42
+ 'verboseName': json['verbose_name'],
43
+ 'verboseNamePlural': json['verbose_name_plural'],
44
+ 'metaModelName': json['meta_model_name'],
45
+ };
46
+ }
47
+ export function GoogleProviderMappingToJSON(value) {
48
+ if (value === undefined) {
49
+ return undefined;
50
+ }
51
+ if (value === null) {
52
+ return null;
53
+ }
54
+ return {
55
+ 'managed': value.managed,
56
+ 'name': value.name,
57
+ 'expression': value.expression,
58
+ };
59
+ }
@@ -0,0 +1,43 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.4.2
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
+ * GoogleProviderMapping Serializer
14
+ * @export
15
+ * @interface GoogleProviderMappingRequest
16
+ */
17
+ export interface GoogleProviderMappingRequest {
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 GoogleProviderMappingRequest
22
+ */
23
+ managed?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof GoogleProviderMappingRequest
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof GoogleProviderMappingRequest
34
+ */
35
+ expression: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the GoogleProviderMappingRequest interface.
39
+ */
40
+ export declare function instanceOfGoogleProviderMappingRequest(value: object): boolean;
41
+ export declare function GoogleProviderMappingRequestFromJSON(json: any): GoogleProviderMappingRequest;
42
+ export declare function GoogleProviderMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GoogleProviderMappingRequest;
43
+ export declare function GoogleProviderMappingRequestToJSON(value?: GoogleProviderMappingRequest | null): any;
@@ -0,0 +1,49 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.4.2
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
+ import { exists } from '../runtime';
15
+ /**
16
+ * Check if a given object implements the GoogleProviderMappingRequest interface.
17
+ */
18
+ export function instanceOfGoogleProviderMappingRequest(value) {
19
+ let isInstance = true;
20
+ isInstance = isInstance && "name" in value;
21
+ isInstance = isInstance && "expression" in value;
22
+ return isInstance;
23
+ }
24
+ export function GoogleProviderMappingRequestFromJSON(json) {
25
+ return GoogleProviderMappingRequestFromJSONTyped(json, false);
26
+ }
27
+ export function GoogleProviderMappingRequestFromJSONTyped(json, ignoreDiscriminator) {
28
+ if ((json === undefined) || (json === null)) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'managed': !exists(json, 'managed') ? undefined : json['managed'],
33
+ 'name': json['name'],
34
+ 'expression': json['expression'],
35
+ };
36
+ }
37
+ export function GoogleProviderMappingRequestToJSON(value) {
38
+ if (value === undefined) {
39
+ return undefined;
40
+ }
41
+ if (value === null) {
42
+ return null;
43
+ }
44
+ return {
45
+ 'managed': value.managed,
46
+ 'name': value.name,
47
+ 'expression': value.expression,
48
+ };
49
+ }
@@ -0,0 +1,92 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.4.2
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 { GoogleWorkspaceDeleteAction } from './GoogleWorkspaceDeleteAction';
13
+ /**
14
+ * GoogleProvider Serializer
15
+ * @export
16
+ * @interface GoogleProviderRequest
17
+ */
18
+ export interface GoogleProviderRequest {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof GoogleProviderRequest
23
+ */
24
+ name: string;
25
+ /**
26
+ *
27
+ * @type {Array<string>}
28
+ * @memberof GoogleProviderRequest
29
+ */
30
+ propertyMappings?: Array<string>;
31
+ /**
32
+ * Property mappings used for group creation/updating.
33
+ * @type {Array<string>}
34
+ * @memberof GoogleProviderRequest
35
+ */
36
+ propertyMappingsGroup?: Array<string>;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof GoogleProviderRequest
41
+ */
42
+ delegatedSubject: string;
43
+ /**
44
+ *
45
+ * @type {any}
46
+ * @memberof GoogleProviderRequest
47
+ */
48
+ credentials: any | null;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof GoogleProviderRequest
53
+ */
54
+ scopes?: string;
55
+ /**
56
+ *
57
+ * @type {boolean}
58
+ * @memberof GoogleProviderRequest
59
+ */
60
+ excludeUsersServiceAccount?: boolean;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof GoogleProviderRequest
65
+ */
66
+ filterGroup?: string | null;
67
+ /**
68
+ *
69
+ * @type {GoogleWorkspaceDeleteAction}
70
+ * @memberof GoogleProviderRequest
71
+ */
72
+ userDeleteAction?: GoogleWorkspaceDeleteAction;
73
+ /**
74
+ *
75
+ * @type {GoogleWorkspaceDeleteAction}
76
+ * @memberof GoogleProviderRequest
77
+ */
78
+ groupDeleteAction?: GoogleWorkspaceDeleteAction;
79
+ /**
80
+ *
81
+ * @type {string}
82
+ * @memberof GoogleProviderRequest
83
+ */
84
+ defaultGroupEmailDomain: string;
85
+ }
86
+ /**
87
+ * Check if a given object implements the GoogleProviderRequest interface.
88
+ */
89
+ export declare function instanceOfGoogleProviderRequest(value: object): boolean;
90
+ export declare function GoogleProviderRequestFromJSON(json: any): GoogleProviderRequest;
91
+ export declare function GoogleProviderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GoogleProviderRequest;
92
+ export declare function GoogleProviderRequestToJSON(value?: GoogleProviderRequest | null): any;
@@ -0,0 +1,68 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.4.2
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
+ import { exists } from '../runtime';
15
+ import { GoogleWorkspaceDeleteActionFromJSON, GoogleWorkspaceDeleteActionToJSON, } from './GoogleWorkspaceDeleteAction';
16
+ /**
17
+ * Check if a given object implements the GoogleProviderRequest interface.
18
+ */
19
+ export function instanceOfGoogleProviderRequest(value) {
20
+ let isInstance = true;
21
+ isInstance = isInstance && "name" in value;
22
+ isInstance = isInstance && "delegatedSubject" in value;
23
+ isInstance = isInstance && "credentials" in value;
24
+ isInstance = isInstance && "defaultGroupEmailDomain" in value;
25
+ return isInstance;
26
+ }
27
+ export function GoogleProviderRequestFromJSON(json) {
28
+ return GoogleProviderRequestFromJSONTyped(json, false);
29
+ }
30
+ export function GoogleProviderRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'name': json['name'],
36
+ 'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
37
+ 'propertyMappingsGroup': !exists(json, 'property_mappings_group') ? undefined : json['property_mappings_group'],
38
+ 'delegatedSubject': json['delegated_subject'],
39
+ 'credentials': json['credentials'],
40
+ 'scopes': !exists(json, 'scopes') ? undefined : json['scopes'],
41
+ 'excludeUsersServiceAccount': !exists(json, 'exclude_users_service_account') ? undefined : json['exclude_users_service_account'],
42
+ 'filterGroup': !exists(json, 'filter_group') ? undefined : json['filter_group'],
43
+ 'userDeleteAction': !exists(json, 'user_delete_action') ? undefined : GoogleWorkspaceDeleteActionFromJSON(json['user_delete_action']),
44
+ 'groupDeleteAction': !exists(json, 'group_delete_action') ? undefined : GoogleWorkspaceDeleteActionFromJSON(json['group_delete_action']),
45
+ 'defaultGroupEmailDomain': json['default_group_email_domain'],
46
+ };
47
+ }
48
+ export function GoogleProviderRequestToJSON(value) {
49
+ if (value === undefined) {
50
+ return undefined;
51
+ }
52
+ if (value === null) {
53
+ return null;
54
+ }
55
+ return {
56
+ 'name': value.name,
57
+ 'property_mappings': value.propertyMappings,
58
+ 'property_mappings_group': value.propertyMappingsGroup,
59
+ 'delegated_subject': value.delegatedSubject,
60
+ 'credentials': value.credentials,
61
+ 'scopes': value.scopes,
62
+ 'exclude_users_service_account': value.excludeUsersServiceAccount,
63
+ 'filter_group': value.filterGroup,
64
+ 'user_delete_action': GoogleWorkspaceDeleteActionToJSON(value.userDeleteAction),
65
+ 'group_delete_action': GoogleWorkspaceDeleteActionToJSON(value.groupDeleteAction),
66
+ 'default_group_email_domain': value.defaultGroupEmailDomain,
67
+ };
68
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.4.2
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
+ *
14
+ * @export
15
+ */
16
+ export declare const GoogleWorkspaceDeleteAction: {
17
+ readonly DoNothing: "do_nothing";
18
+ readonly Delete: "delete";
19
+ readonly Suspend: "suspend";
20
+ readonly UnknownDefaultOpenApi: "11184809";
21
+ };
22
+ export type GoogleWorkspaceDeleteAction = typeof GoogleWorkspaceDeleteAction[keyof typeof GoogleWorkspaceDeleteAction];
23
+ export declare function GoogleWorkspaceDeleteActionFromJSON(json: any): GoogleWorkspaceDeleteAction;
24
+ export declare function GoogleWorkspaceDeleteActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GoogleWorkspaceDeleteAction;
25
+ export declare function GoogleWorkspaceDeleteActionToJSON(value?: GoogleWorkspaceDeleteAction | null): any;
@@ -0,0 +1,32 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.4.2
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
+ * @export
17
+ */
18
+ export const GoogleWorkspaceDeleteAction = {
19
+ DoNothing: 'do_nothing',
20
+ Delete: 'delete',
21
+ Suspend: 'suspend',
22
+ UnknownDefaultOpenApi: '11184809'
23
+ };
24
+ export function GoogleWorkspaceDeleteActionFromJSON(json) {
25
+ return GoogleWorkspaceDeleteActionFromJSONTyped(json, false);
26
+ }
27
+ export function GoogleWorkspaceDeleteActionFromJSONTyped(json, ignoreDiscriminator) {
28
+ return json;
29
+ }
30
+ export function GoogleWorkspaceDeleteActionToJSON(value) {
31
+ return value;
32
+ }
@@ -81,6 +81,8 @@ export declare const ModelEnum: {
81
81
  readonly CoreApplication: "authentik_core.application";
82
82
  readonly CoreToken: "authentik_core.token";
83
83
  readonly EnterpriseLicense: "authentik_enterprise.license";
84
+ readonly ProvidersGoogleWorkspaceGoogleworkspaceprovider: "authentik_providers_google_workspace.googleworkspaceprovider";
85
+ readonly ProvidersGoogleWorkspaceGoogleworkspaceprovidermapping: "authentik_providers_google_workspace.googleworkspaceprovidermapping";
84
86
  readonly ProvidersRacRacprovider: "authentik_providers_rac.racprovider";
85
87
  readonly ProvidersRacEndpoint: "authentik_providers_rac.endpoint";
86
88
  readonly ProvidersRacRacpropertymapping: "authentik_providers_rac.racpropertymapping";
@@ -83,6 +83,8 @@ export const ModelEnum = {
83
83
  CoreApplication: 'authentik_core.application',
84
84
  CoreToken: 'authentik_core.token',
85
85
  EnterpriseLicense: 'authentik_enterprise.license',
86
+ ProvidersGoogleWorkspaceGoogleworkspaceprovider: 'authentik_providers_google_workspace.googleworkspaceprovider',
87
+ ProvidersGoogleWorkspaceGoogleworkspaceprovidermapping: 'authentik_providers_google_workspace.googleworkspaceprovidermapping',
86
88
  ProvidersRacRacprovider: 'authentik_providers_rac.racprovider',
87
89
  ProvidersRacEndpoint: 'authentik_providers_rac.endpoint',
88
90
  ProvidersRacRacpropertymapping: 'authentik_providers_rac.racpropertymapping',
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { GoogleProviderRequest } from './GoogleProviderRequest';
12
13
  import { LDAPProviderRequest } from './LDAPProviderRequest';
13
14
  import { OAuth2ProviderRequest } from './OAuth2ProviderRequest';
14
15
  import { ProxyProviderRequest } from './ProxyProviderRequest';
@@ -22,6 +23,8 @@ import { SCIMProviderRequest } from './SCIMProviderRequest';
22
23
  * @export
23
24
  */
24
25
  export type ModelRequest = {
26
+ providerModel: 'authentik_providers_google_workspace.googleworkspaceprovider';
27
+ } & GoogleProviderRequest | {
25
28
  providerModel: 'authentik_providers_ldap.ldapprovider';
26
29
  } & LDAPProviderRequest | {
27
30
  providerModel: 'authentik_providers_oauth2.oauth2provider';
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { GoogleProviderRequestFromJSONTyped, GoogleProviderRequestToJSON, } from './GoogleProviderRequest';
14
15
  import { LDAPProviderRequestFromJSONTyped, LDAPProviderRequestToJSON, } from './LDAPProviderRequest';
15
16
  import { OAuth2ProviderRequestFromJSONTyped, OAuth2ProviderRequestToJSON, } from './OAuth2ProviderRequest';
16
17
  import { ProxyProviderRequestFromJSONTyped, ProxyProviderRequestToJSON, } from './ProxyProviderRequest';
@@ -26,6 +27,8 @@ export function ModelRequestFromJSONTyped(json, ignoreDiscriminator) {
26
27
  return json;
27
28
  }
28
29
  switch (json['providerModel']) {
30
+ case 'authentik_providers_google_workspace.googleworkspaceprovider':
31
+ return Object.assign(Object.assign({}, GoogleProviderRequestFromJSONTyped(json, true)), { providerModel: 'authentik_providers_google_workspace.googleworkspaceprovider' });
29
32
  case 'authentik_providers_ldap.ldapprovider':
30
33
  return Object.assign(Object.assign({}, LDAPProviderRequestFromJSONTyped(json, true)), { providerModel: 'authentik_providers_ldap.ldapprovider' });
31
34
  case 'authentik_providers_oauth2.oauth2provider':
@@ -52,6 +55,8 @@ export function ModelRequestToJSON(value) {
52
55
  return null;
53
56
  }
54
57
  switch (value['providerModel']) {
58
+ case 'authentik_providers_google_workspace.googleworkspaceprovider':
59
+ return GoogleProviderRequestToJSON(value);
55
60
  case 'authentik_providers_ldap.ldapprovider':
56
61
  return LDAPProviderRequestToJSON(value);
57
62
  case 'authentik_providers_oauth2.oauth2provider':
@@ -0,0 +1,39 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.4.2
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 { GoogleProvider } from './GoogleProvider';
13
+ import type { Pagination } from './Pagination';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedGoogleProviderList
18
+ */
19
+ export interface PaginatedGoogleProviderList {
20
+ /**
21
+ *
22
+ * @type {Pagination}
23
+ * @memberof PaginatedGoogleProviderList
24
+ */
25
+ pagination: Pagination;
26
+ /**
27
+ *
28
+ * @type {Array<GoogleProvider>}
29
+ * @memberof PaginatedGoogleProviderList
30
+ */
31
+ results: Array<GoogleProvider>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedGoogleProviderList interface.
35
+ */
36
+ export declare function instanceOfPaginatedGoogleProviderList(value: object): boolean;
37
+ export declare function PaginatedGoogleProviderListFromJSON(json: any): PaginatedGoogleProviderList;
38
+ export declare function PaginatedGoogleProviderListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedGoogleProviderList;
39
+ export declare function PaginatedGoogleProviderListToJSON(value?: PaginatedGoogleProviderList | null): any;