@goauthentik/api 2023.8.3-1694462695 → 2023.8.3-1694987749

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 (47) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/dist/apis/CoreApi.d.ts +12 -1
  3. package/dist/apis/CoreApi.js +33 -0
  4. package/dist/esm/apis/CoreApi.d.ts +12 -1
  5. package/dist/esm/apis/CoreApi.js +34 -1
  6. package/dist/esm/models/ModelRequest.d.ts +38 -0
  7. package/dist/esm/models/ModelRequest.js +67 -0
  8. package/dist/esm/models/PatchedPolicyBindingRequest.d.ts +6 -0
  9. package/dist/esm/models/PatchedPolicyBindingRequest.js +2 -0
  10. package/dist/esm/models/PolicyBinding.d.ts +6 -0
  11. package/dist/esm/models/PolicyBinding.js +2 -0
  12. package/dist/esm/models/PolicyBindingRequest.d.ts +6 -0
  13. package/dist/esm/models/PolicyBindingRequest.js +2 -0
  14. package/dist/esm/models/ProviderModelEnum.d.ts +33 -0
  15. package/dist/esm/models/ProviderModelEnum.js +40 -0
  16. package/dist/esm/models/TransactionApplicationRequest.d.ts +46 -0
  17. package/dist/esm/models/TransactionApplicationRequest.js +52 -0
  18. package/dist/esm/models/TransactionApplicationResponse.d.ts +37 -0
  19. package/dist/esm/models/TransactionApplicationResponse.js +46 -0
  20. package/dist/esm/models/index.d.ts +4 -0
  21. package/dist/esm/models/index.js +4 -0
  22. package/dist/models/ModelRequest.d.ts +38 -0
  23. package/dist/models/ModelRequest.js +73 -0
  24. package/dist/models/PatchedPolicyBindingRequest.d.ts +6 -0
  25. package/dist/models/PatchedPolicyBindingRequest.js +2 -0
  26. package/dist/models/PolicyBinding.d.ts +6 -0
  27. package/dist/models/PolicyBinding.js +2 -0
  28. package/dist/models/PolicyBindingRequest.d.ts +6 -0
  29. package/dist/models/PolicyBindingRequest.js +2 -0
  30. package/dist/models/ProviderModelEnum.d.ts +33 -0
  31. package/dist/models/ProviderModelEnum.js +46 -0
  32. package/dist/models/TransactionApplicationRequest.d.ts +46 -0
  33. package/dist/models/TransactionApplicationRequest.js +59 -0
  34. package/dist/models/TransactionApplicationResponse.d.ts +37 -0
  35. package/dist/models/TransactionApplicationResponse.js +53 -0
  36. package/dist/models/index.d.ts +4 -0
  37. package/dist/models/index.js +4 -0
  38. package/package.json +1 -1
  39. package/src/apis/CoreApi.ts +47 -0
  40. package/src/models/ModelRequest.ts +116 -0
  41. package/src/models/PatchedPolicyBindingRequest.ts +8 -0
  42. package/src/models/PolicyBinding.ts +8 -0
  43. package/src/models/PolicyBindingRequest.ts +8 -0
  44. package/src/models/ProviderModelEnum.ts +48 -0
  45. package/src/models/TransactionApplicationRequest.ts +103 -0
  46. package/src/models/TransactionApplicationResponse.ts +75 -0
  47. package/src/models/index.ts +4 -0
@@ -160,6 +160,7 @@ export * from './LoginMetrics';
160
160
  export * from './LoginSource';
161
161
  export * from './Metadata';
162
162
  export * from './ModelEnum';
163
+ export * from './ModelRequest';
163
164
  export * from './NameIdPolicyEnum';
164
165
  export * from './NotConfiguredActionEnum';
165
166
  export * from './Notification';
@@ -374,6 +375,7 @@ export * from './PropertyMappingPreview';
374
375
  export * from './PropertyMappingTestResult';
375
376
  export * from './Provider';
376
377
  export * from './ProviderEnum';
378
+ export * from './ProviderModelEnum';
377
379
  export * from './ProviderRequest';
378
380
  export * from './ProviderTypeEnum';
379
381
  export * from './ProxyMode';
@@ -436,6 +438,8 @@ export * from './TokenModel';
436
438
  export * from './TokenRequest';
437
439
  export * from './TokenSetKeyRequest';
438
440
  export * from './TokenView';
441
+ export * from './TransactionApplicationRequest';
442
+ export * from './TransactionApplicationResponse';
439
443
  export * from './TypeCreate';
440
444
  export * from './UiThemeEnum';
441
445
  export * from './UsedBy';
@@ -162,6 +162,7 @@ export * from './LoginMetrics';
162
162
  export * from './LoginSource';
163
163
  export * from './Metadata';
164
164
  export * from './ModelEnum';
165
+ export * from './ModelRequest';
165
166
  export * from './NameIdPolicyEnum';
166
167
  export * from './NotConfiguredActionEnum';
167
168
  export * from './Notification';
@@ -376,6 +377,7 @@ export * from './PropertyMappingPreview';
376
377
  export * from './PropertyMappingTestResult';
377
378
  export * from './Provider';
378
379
  export * from './ProviderEnum';
380
+ export * from './ProviderModelEnum';
379
381
  export * from './ProviderRequest';
380
382
  export * from './ProviderTypeEnum';
381
383
  export * from './ProxyMode';
@@ -438,6 +440,8 @@ export * from './TokenModel';
438
440
  export * from './TokenRequest';
439
441
  export * from './TokenSetKeyRequest';
440
442
  export * from './TokenView';
443
+ export * from './TransactionApplicationRequest';
444
+ export * from './TransactionApplicationResponse';
441
445
  export * from './TypeCreate';
442
446
  export * from './UiThemeEnum';
443
447
  export * from './UsedBy';
@@ -0,0 +1,38 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2023.8.3
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 { LDAPProviderRequest } from './LDAPProviderRequest';
13
+ import { OAuth2ProviderRequest } from './OAuth2ProviderRequest';
14
+ import { ProxyProviderRequest } from './ProxyProviderRequest';
15
+ import { RadiusProviderRequest } from './RadiusProviderRequest';
16
+ import { SAMLProviderRequest } from './SAMLProviderRequest';
17
+ import { SCIMProviderRequest } from './SCIMProviderRequest';
18
+ /**
19
+ * @type ModelRequest
20
+ *
21
+ * @export
22
+ */
23
+ export type ModelRequest = {
24
+ providerModel: 'authentik_providers_ldap.ldapprovider';
25
+ } & LDAPProviderRequest | {
26
+ providerModel: 'authentik_providers_oauth2.oauth2provider';
27
+ } & OAuth2ProviderRequest | {
28
+ providerModel: 'authentik_providers_proxy.proxyprovider';
29
+ } & ProxyProviderRequest | {
30
+ providerModel: 'authentik_providers_radius.radiusprovider';
31
+ } & RadiusProviderRequest | {
32
+ providerModel: 'authentik_providers_saml.samlprovider';
33
+ } & SAMLProviderRequest | {
34
+ providerModel: 'authentik_providers_scim.scimprovider';
35
+ } & SCIMProviderRequest;
36
+ export declare function ModelRequestFromJSON(json: any): ModelRequest;
37
+ export declare function ModelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelRequest;
38
+ export declare function ModelRequestToJSON(value?: ModelRequest | null): any;
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2023.8.3
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.ModelRequestToJSON = exports.ModelRequestFromJSONTyped = exports.ModelRequestFromJSON = void 0;
17
+ const LDAPProviderRequest_1 = require("./LDAPProviderRequest");
18
+ const OAuth2ProviderRequest_1 = require("./OAuth2ProviderRequest");
19
+ const ProxyProviderRequest_1 = require("./ProxyProviderRequest");
20
+ const RadiusProviderRequest_1 = require("./RadiusProviderRequest");
21
+ const SAMLProviderRequest_1 = require("./SAMLProviderRequest");
22
+ const SCIMProviderRequest_1 = require("./SCIMProviderRequest");
23
+ function ModelRequestFromJSON(json) {
24
+ return ModelRequestFromJSONTyped(json, false);
25
+ }
26
+ exports.ModelRequestFromJSON = ModelRequestFromJSON;
27
+ function ModelRequestFromJSONTyped(json, ignoreDiscriminator) {
28
+ if ((json === undefined) || (json === null)) {
29
+ return json;
30
+ }
31
+ switch (json['providerModel']) {
32
+ case 'authentik_providers_ldap.ldapprovider':
33
+ return Object.assign(Object.assign({}, (0, LDAPProviderRequest_1.LDAPProviderRequestFromJSONTyped)(json, true)), { providerModel: 'authentik_providers_ldap.ldapprovider' });
34
+ case 'authentik_providers_oauth2.oauth2provider':
35
+ return Object.assign(Object.assign({}, (0, OAuth2ProviderRequest_1.OAuth2ProviderRequestFromJSONTyped)(json, true)), { providerModel: 'authentik_providers_oauth2.oauth2provider' });
36
+ case 'authentik_providers_proxy.proxyprovider':
37
+ return Object.assign(Object.assign({}, (0, ProxyProviderRequest_1.ProxyProviderRequestFromJSONTyped)(json, true)), { providerModel: 'authentik_providers_proxy.proxyprovider' });
38
+ case 'authentik_providers_radius.radiusprovider':
39
+ return Object.assign(Object.assign({}, (0, RadiusProviderRequest_1.RadiusProviderRequestFromJSONTyped)(json, true)), { providerModel: 'authentik_providers_radius.radiusprovider' });
40
+ case 'authentik_providers_saml.samlprovider':
41
+ return Object.assign(Object.assign({}, (0, SAMLProviderRequest_1.SAMLProviderRequestFromJSONTyped)(json, true)), { providerModel: 'authentik_providers_saml.samlprovider' });
42
+ case 'authentik_providers_scim.scimprovider':
43
+ return Object.assign(Object.assign({}, (0, SCIMProviderRequest_1.SCIMProviderRequestFromJSONTyped)(json, true)), { providerModel: 'authentik_providers_scim.scimprovider' });
44
+ default:
45
+ throw new Error(`No variant of ModelRequest exists with 'providerModel=${json['providerModel']}'`);
46
+ }
47
+ }
48
+ exports.ModelRequestFromJSONTyped = ModelRequestFromJSONTyped;
49
+ function ModelRequestToJSON(value) {
50
+ if (value === undefined) {
51
+ return undefined;
52
+ }
53
+ if (value === null) {
54
+ return null;
55
+ }
56
+ switch (value['providerModel']) {
57
+ case 'authentik_providers_ldap.ldapprovider':
58
+ return (0, LDAPProviderRequest_1.LDAPProviderRequestToJSON)(value);
59
+ case 'authentik_providers_oauth2.oauth2provider':
60
+ return (0, OAuth2ProviderRequest_1.OAuth2ProviderRequestToJSON)(value);
61
+ case 'authentik_providers_proxy.proxyprovider':
62
+ return (0, ProxyProviderRequest_1.ProxyProviderRequestToJSON)(value);
63
+ case 'authentik_providers_radius.radiusprovider':
64
+ return (0, RadiusProviderRequest_1.RadiusProviderRequestToJSON)(value);
65
+ case 'authentik_providers_saml.samlprovider':
66
+ return (0, SAMLProviderRequest_1.SAMLProviderRequestToJSON)(value);
67
+ case 'authentik_providers_scim.scimprovider':
68
+ return (0, SCIMProviderRequest_1.SCIMProviderRequestToJSON)(value);
69
+ default:
70
+ throw new Error(`No variant of ModelRequest exists with 'providerModel=${value['providerModel']}'`);
71
+ }
72
+ }
73
+ exports.ModelRequestToJSON = ModelRequestToJSON;
@@ -63,6 +63,12 @@ export interface PatchedPolicyBindingRequest {
63
63
  * @memberof PatchedPolicyBindingRequest
64
64
  */
65
65
  timeout?: number;
66
+ /**
67
+ * Result if the Policy execution fails.
68
+ * @type {boolean}
69
+ * @memberof PatchedPolicyBindingRequest
70
+ */
71
+ failureResult?: boolean;
66
72
  }
67
73
  /**
68
74
  * Check if a given object implements the PatchedPolicyBindingRequest interface.
@@ -40,6 +40,7 @@ function PatchedPolicyBindingRequestFromJSONTyped(json, ignoreDiscriminator) {
40
40
  'enabled': !(0, runtime_1.exists)(json, 'enabled') ? undefined : json['enabled'],
41
41
  'order': !(0, runtime_1.exists)(json, 'order') ? undefined : json['order'],
42
42
  'timeout': !(0, runtime_1.exists)(json, 'timeout') ? undefined : json['timeout'],
43
+ 'failureResult': !(0, runtime_1.exists)(json, 'failure_result') ? undefined : json['failure_result'],
43
44
  };
44
45
  }
45
46
  exports.PatchedPolicyBindingRequestFromJSONTyped = PatchedPolicyBindingRequestFromJSONTyped;
@@ -59,6 +60,7 @@ function PatchedPolicyBindingRequestToJSON(value) {
59
60
  'enabled': value.enabled,
60
61
  'order': value.order,
61
62
  'timeout': value.timeout,
63
+ 'failure_result': value.failureResult,
62
64
  };
63
65
  }
64
66
  exports.PatchedPolicyBindingRequestToJSON = PatchedPolicyBindingRequestToJSON;
@@ -90,6 +90,12 @@ export interface PolicyBinding {
90
90
  * @memberof PolicyBinding
91
91
  */
92
92
  timeout?: number;
93
+ /**
94
+ * Result if the Policy execution fails.
95
+ * @type {boolean}
96
+ * @memberof PolicyBinding
97
+ */
98
+ failureResult?: boolean;
93
99
  }
94
100
  /**
95
101
  * Check if a given object implements the PolicyBinding interface.
@@ -53,6 +53,7 @@ function PolicyBindingFromJSONTyped(json, ignoreDiscriminator) {
53
53
  'enabled': !(0, runtime_1.exists)(json, 'enabled') ? undefined : json['enabled'],
54
54
  'order': json['order'],
55
55
  'timeout': !(0, runtime_1.exists)(json, 'timeout') ? undefined : json['timeout'],
56
+ 'failureResult': !(0, runtime_1.exists)(json, 'failure_result') ? undefined : json['failure_result'],
56
57
  };
57
58
  }
58
59
  exports.PolicyBindingFromJSONTyped = PolicyBindingFromJSONTyped;
@@ -72,6 +73,7 @@ function PolicyBindingToJSON(value) {
72
73
  'enabled': value.enabled,
73
74
  'order': value.order,
74
75
  'timeout': value.timeout,
76
+ 'failure_result': value.failureResult,
75
77
  };
76
78
  }
77
79
  exports.PolicyBindingToJSON = PolicyBindingToJSON;
@@ -63,6 +63,12 @@ export interface PolicyBindingRequest {
63
63
  * @memberof PolicyBindingRequest
64
64
  */
65
65
  timeout?: number;
66
+ /**
67
+ * Result if the Policy execution fails.
68
+ * @type {boolean}
69
+ * @memberof PolicyBindingRequest
70
+ */
71
+ failureResult?: boolean;
66
72
  }
67
73
  /**
68
74
  * Check if a given object implements the PolicyBindingRequest interface.
@@ -42,6 +42,7 @@ function PolicyBindingRequestFromJSONTyped(json, ignoreDiscriminator) {
42
42
  'enabled': !(0, runtime_1.exists)(json, 'enabled') ? undefined : json['enabled'],
43
43
  'order': json['order'],
44
44
  'timeout': !(0, runtime_1.exists)(json, 'timeout') ? undefined : json['timeout'],
45
+ 'failureResult': !(0, runtime_1.exists)(json, 'failure_result') ? undefined : json['failure_result'],
45
46
  };
46
47
  }
47
48
  exports.PolicyBindingRequestFromJSONTyped = PolicyBindingRequestFromJSONTyped;
@@ -61,6 +62,7 @@ function PolicyBindingRequestToJSON(value) {
61
62
  'enabled': value.enabled,
62
63
  'order': value.order,
63
64
  'timeout': value.timeout,
65
+ 'failure_result': value.failureResult,
64
66
  };
65
67
  }
66
68
  exports.PolicyBindingRequestToJSON = PolicyBindingRequestToJSON;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2023.8.3
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
+ * * `authentik_providers_ldap.ldapprovider` - authentik_providers_ldap.ldapprovider
14
+ * * `authentik_providers_oauth2.oauth2provider` - authentik_providers_oauth2.oauth2provider
15
+ * * `authentik_providers_proxy.proxyprovider` - authentik_providers_proxy.proxyprovider
16
+ * * `authentik_providers_radius.radiusprovider` - authentik_providers_radius.radiusprovider
17
+ * * `authentik_providers_saml.samlprovider` - authentik_providers_saml.samlprovider
18
+ * * `authentik_providers_scim.scimprovider` - authentik_providers_scim.scimprovider
19
+ * @export
20
+ */
21
+ export declare const ProviderModelEnum: {
22
+ readonly LdapLdapprovider: "authentik_providers_ldap.ldapprovider";
23
+ readonly Oauth2Oauth2provider: "authentik_providers_oauth2.oauth2provider";
24
+ readonly ProxyProxyprovider: "authentik_providers_proxy.proxyprovider";
25
+ readonly RadiusRadiusprovider: "authentik_providers_radius.radiusprovider";
26
+ readonly SamlSamlprovider: "authentik_providers_saml.samlprovider";
27
+ readonly ScimScimprovider: "authentik_providers_scim.scimprovider";
28
+ readonly UnknownDefaultOpenApi: "11184809";
29
+ };
30
+ export type ProviderModelEnum = typeof ProviderModelEnum[keyof typeof ProviderModelEnum];
31
+ export declare function ProviderModelEnumFromJSON(json: any): ProviderModelEnum;
32
+ export declare function ProviderModelEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderModelEnum;
33
+ export declare function ProviderModelEnumToJSON(value?: ProviderModelEnum | null): any;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2023.8.3
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.ProviderModelEnumToJSON = exports.ProviderModelEnumFromJSONTyped = exports.ProviderModelEnumFromJSON = exports.ProviderModelEnum = void 0;
17
+ /**
18
+ * * `authentik_providers_ldap.ldapprovider` - authentik_providers_ldap.ldapprovider
19
+ * * `authentik_providers_oauth2.oauth2provider` - authentik_providers_oauth2.oauth2provider
20
+ * * `authentik_providers_proxy.proxyprovider` - authentik_providers_proxy.proxyprovider
21
+ * * `authentik_providers_radius.radiusprovider` - authentik_providers_radius.radiusprovider
22
+ * * `authentik_providers_saml.samlprovider` - authentik_providers_saml.samlprovider
23
+ * * `authentik_providers_scim.scimprovider` - authentik_providers_scim.scimprovider
24
+ * @export
25
+ */
26
+ exports.ProviderModelEnum = {
27
+ LdapLdapprovider: 'authentik_providers_ldap.ldapprovider',
28
+ Oauth2Oauth2provider: 'authentik_providers_oauth2.oauth2provider',
29
+ ProxyProxyprovider: 'authentik_providers_proxy.proxyprovider',
30
+ RadiusRadiusprovider: 'authentik_providers_radius.radiusprovider',
31
+ SamlSamlprovider: 'authentik_providers_saml.samlprovider',
32
+ ScimScimprovider: 'authentik_providers_scim.scimprovider',
33
+ UnknownDefaultOpenApi: '11184809'
34
+ };
35
+ function ProviderModelEnumFromJSON(json) {
36
+ return ProviderModelEnumFromJSONTyped(json, false);
37
+ }
38
+ exports.ProviderModelEnumFromJSON = ProviderModelEnumFromJSON;
39
+ function ProviderModelEnumFromJSONTyped(json, ignoreDiscriminator) {
40
+ return json;
41
+ }
42
+ exports.ProviderModelEnumFromJSONTyped = ProviderModelEnumFromJSONTyped;
43
+ function ProviderModelEnumToJSON(value) {
44
+ return value;
45
+ }
46
+ exports.ProviderModelEnumToJSON = ProviderModelEnumToJSON;
@@ -0,0 +1,46 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2023.8.3
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 { ApplicationRequest } from './ApplicationRequest';
13
+ import type { ModelRequest } from './ModelRequest';
14
+ import type { ProviderModelEnum } from './ProviderModelEnum';
15
+ /**
16
+ * Serializer for creating a provider and an application in one transaction
17
+ * @export
18
+ * @interface TransactionApplicationRequest
19
+ */
20
+ export interface TransactionApplicationRequest {
21
+ /**
22
+ *
23
+ * @type {ApplicationRequest}
24
+ * @memberof TransactionApplicationRequest
25
+ */
26
+ app: ApplicationRequest;
27
+ /**
28
+ *
29
+ * @type {ProviderModelEnum}
30
+ * @memberof TransactionApplicationRequest
31
+ */
32
+ providerModel: ProviderModelEnum;
33
+ /**
34
+ *
35
+ * @type {ModelRequest}
36
+ * @memberof TransactionApplicationRequest
37
+ */
38
+ provider: ModelRequest;
39
+ }
40
+ /**
41
+ * Check if a given object implements the TransactionApplicationRequest interface.
42
+ */
43
+ export declare function instanceOfTransactionApplicationRequest(value: object): boolean;
44
+ export declare function TransactionApplicationRequestFromJSON(json: any): TransactionApplicationRequest;
45
+ export declare function TransactionApplicationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionApplicationRequest;
46
+ export declare function TransactionApplicationRequestToJSON(value?: TransactionApplicationRequest | null): any;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2023.8.3
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.TransactionApplicationRequestToJSON = exports.TransactionApplicationRequestFromJSONTyped = exports.TransactionApplicationRequestFromJSON = exports.instanceOfTransactionApplicationRequest = void 0;
17
+ const ApplicationRequest_1 = require("./ApplicationRequest");
18
+ const ModelRequest_1 = require("./ModelRequest");
19
+ const ProviderModelEnum_1 = require("./ProviderModelEnum");
20
+ /**
21
+ * Check if a given object implements the TransactionApplicationRequest interface.
22
+ */
23
+ function instanceOfTransactionApplicationRequest(value) {
24
+ let isInstance = true;
25
+ isInstance = isInstance && "app" in value;
26
+ isInstance = isInstance && "providerModel" in value;
27
+ isInstance = isInstance && "provider" in value;
28
+ return isInstance;
29
+ }
30
+ exports.instanceOfTransactionApplicationRequest = instanceOfTransactionApplicationRequest;
31
+ function TransactionApplicationRequestFromJSON(json) {
32
+ return TransactionApplicationRequestFromJSONTyped(json, false);
33
+ }
34
+ exports.TransactionApplicationRequestFromJSON = TransactionApplicationRequestFromJSON;
35
+ function TransactionApplicationRequestFromJSONTyped(json, ignoreDiscriminator) {
36
+ if ((json === undefined) || (json === null)) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'app': (0, ApplicationRequest_1.ApplicationRequestFromJSON)(json['app']),
41
+ 'providerModel': (0, ProviderModelEnum_1.ProviderModelEnumFromJSON)(json['provider_model']),
42
+ 'provider': (0, ModelRequest_1.ModelRequestFromJSON)(json['provider']),
43
+ };
44
+ }
45
+ exports.TransactionApplicationRequestFromJSONTyped = TransactionApplicationRequestFromJSONTyped;
46
+ function TransactionApplicationRequestToJSON(value) {
47
+ if (value === undefined) {
48
+ return undefined;
49
+ }
50
+ if (value === null) {
51
+ return null;
52
+ }
53
+ return {
54
+ 'app': (0, ApplicationRequest_1.ApplicationRequestToJSON)(value.app),
55
+ 'provider_model': (0, ProviderModelEnum_1.ProviderModelEnumToJSON)(value.providerModel),
56
+ 'provider': (0, ModelRequest_1.ModelRequestToJSON)(value.provider),
57
+ };
58
+ }
59
+ exports.TransactionApplicationRequestToJSON = TransactionApplicationRequestToJSON;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2023.8.3
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
+ * Transactional creation response
14
+ * @export
15
+ * @interface TransactionApplicationResponse
16
+ */
17
+ export interface TransactionApplicationResponse {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof TransactionApplicationResponse
22
+ */
23
+ applied: boolean;
24
+ /**
25
+ *
26
+ * @type {Array<string>}
27
+ * @memberof TransactionApplicationResponse
28
+ */
29
+ logs: Array<string>;
30
+ }
31
+ /**
32
+ * Check if a given object implements the TransactionApplicationResponse interface.
33
+ */
34
+ export declare function instanceOfTransactionApplicationResponse(value: object): boolean;
35
+ export declare function TransactionApplicationResponseFromJSON(json: any): TransactionApplicationResponse;
36
+ export declare function TransactionApplicationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionApplicationResponse;
37
+ export declare function TransactionApplicationResponseToJSON(value?: TransactionApplicationResponse | null): any;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2023.8.3
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.TransactionApplicationResponseToJSON = exports.TransactionApplicationResponseFromJSONTyped = exports.TransactionApplicationResponseFromJSON = exports.instanceOfTransactionApplicationResponse = void 0;
17
+ /**
18
+ * Check if a given object implements the TransactionApplicationResponse interface.
19
+ */
20
+ function instanceOfTransactionApplicationResponse(value) {
21
+ let isInstance = true;
22
+ isInstance = isInstance && "applied" in value;
23
+ isInstance = isInstance && "logs" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfTransactionApplicationResponse = instanceOfTransactionApplicationResponse;
27
+ function TransactionApplicationResponseFromJSON(json) {
28
+ return TransactionApplicationResponseFromJSONTyped(json, false);
29
+ }
30
+ exports.TransactionApplicationResponseFromJSON = TransactionApplicationResponseFromJSON;
31
+ function TransactionApplicationResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'applied': json['applied'],
37
+ 'logs': json['logs'],
38
+ };
39
+ }
40
+ exports.TransactionApplicationResponseFromJSONTyped = TransactionApplicationResponseFromJSONTyped;
41
+ function TransactionApplicationResponseToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'applied': value.applied,
50
+ 'logs': value.logs,
51
+ };
52
+ }
53
+ exports.TransactionApplicationResponseToJSON = TransactionApplicationResponseToJSON;
@@ -160,6 +160,7 @@ export * from './LoginMetrics';
160
160
  export * from './LoginSource';
161
161
  export * from './Metadata';
162
162
  export * from './ModelEnum';
163
+ export * from './ModelRequest';
163
164
  export * from './NameIdPolicyEnum';
164
165
  export * from './NotConfiguredActionEnum';
165
166
  export * from './Notification';
@@ -374,6 +375,7 @@ export * from './PropertyMappingPreview';
374
375
  export * from './PropertyMappingTestResult';
375
376
  export * from './Provider';
376
377
  export * from './ProviderEnum';
378
+ export * from './ProviderModelEnum';
377
379
  export * from './ProviderRequest';
378
380
  export * from './ProviderTypeEnum';
379
381
  export * from './ProxyMode';
@@ -436,6 +438,8 @@ export * from './TokenModel';
436
438
  export * from './TokenRequest';
437
439
  export * from './TokenSetKeyRequest';
438
440
  export * from './TokenView';
441
+ export * from './TransactionApplicationRequest';
442
+ export * from './TransactionApplicationResponse';
439
443
  export * from './TypeCreate';
440
444
  export * from './UiThemeEnum';
441
445
  export * from './UsedBy';
@@ -178,6 +178,7 @@ __exportStar(require("./LoginMetrics"), exports);
178
178
  __exportStar(require("./LoginSource"), exports);
179
179
  __exportStar(require("./Metadata"), exports);
180
180
  __exportStar(require("./ModelEnum"), exports);
181
+ __exportStar(require("./ModelRequest"), exports);
181
182
  __exportStar(require("./NameIdPolicyEnum"), exports);
182
183
  __exportStar(require("./NotConfiguredActionEnum"), exports);
183
184
  __exportStar(require("./Notification"), exports);
@@ -392,6 +393,7 @@ __exportStar(require("./PropertyMappingPreview"), exports);
392
393
  __exportStar(require("./PropertyMappingTestResult"), exports);
393
394
  __exportStar(require("./Provider"), exports);
394
395
  __exportStar(require("./ProviderEnum"), exports);
396
+ __exportStar(require("./ProviderModelEnum"), exports);
395
397
  __exportStar(require("./ProviderRequest"), exports);
396
398
  __exportStar(require("./ProviderTypeEnum"), exports);
397
399
  __exportStar(require("./ProxyMode"), exports);
@@ -454,6 +456,8 @@ __exportStar(require("./TokenModel"), exports);
454
456
  __exportStar(require("./TokenRequest"), exports);
455
457
  __exportStar(require("./TokenSetKeyRequest"), exports);
456
458
  __exportStar(require("./TokenView"), exports);
459
+ __exportStar(require("./TransactionApplicationRequest"), exports);
460
+ __exportStar(require("./TransactionApplicationResponse"), exports);
457
461
  __exportStar(require("./TypeCreate"), exports);
458
462
  __exportStar(require("./UiThemeEnum"), exports);
459
463
  __exportStar(require("./UsedBy"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2023.8.3-1694462695",
3
+ "version": "2023.8.3-1694987749",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {