@goauthentik/api 2023.8.3-1694716726 → 2023.8.3-1696335052

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 (41) 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/AuthenticatorSMSStage.d.ts +1 -1
  7. package/dist/esm/models/AuthenticatorSMSStageRequest.d.ts +1 -1
  8. package/dist/esm/models/ModelRequest.d.ts +38 -0
  9. package/dist/esm/models/ModelRequest.js +67 -0
  10. package/dist/esm/models/PatchedAuthenticatorSMSStageRequest.d.ts +1 -1
  11. package/dist/esm/models/ProviderModelEnum.d.ts +33 -0
  12. package/dist/esm/models/ProviderModelEnum.js +40 -0
  13. package/dist/esm/models/TransactionApplicationRequest.d.ts +46 -0
  14. package/dist/esm/models/TransactionApplicationRequest.js +52 -0
  15. package/dist/esm/models/TransactionApplicationResponse.d.ts +37 -0
  16. package/dist/esm/models/TransactionApplicationResponse.js +46 -0
  17. package/dist/esm/models/index.d.ts +4 -0
  18. package/dist/esm/models/index.js +4 -0
  19. package/dist/models/AuthenticatorSMSStage.d.ts +1 -1
  20. package/dist/models/AuthenticatorSMSStageRequest.d.ts +1 -1
  21. package/dist/models/ModelRequest.d.ts +38 -0
  22. package/dist/models/ModelRequest.js +73 -0
  23. package/dist/models/PatchedAuthenticatorSMSStageRequest.d.ts +1 -1
  24. package/dist/models/ProviderModelEnum.d.ts +33 -0
  25. package/dist/models/ProviderModelEnum.js +46 -0
  26. package/dist/models/TransactionApplicationRequest.d.ts +46 -0
  27. package/dist/models/TransactionApplicationRequest.js +59 -0
  28. package/dist/models/TransactionApplicationResponse.d.ts +37 -0
  29. package/dist/models/TransactionApplicationResponse.js +53 -0
  30. package/dist/models/index.d.ts +4 -0
  31. package/dist/models/index.js +4 -0
  32. package/package.json +1 -1
  33. package/src/apis/CoreApi.ts +47 -0
  34. package/src/models/AuthenticatorSMSStage.ts +1 -1
  35. package/src/models/AuthenticatorSMSStageRequest.ts +1 -1
  36. package/src/models/ModelRequest.ts +116 -0
  37. package/src/models/PatchedAuthenticatorSMSStageRequest.ts +1 -1
  38. package/src/models/ProviderModelEnum.ts +48 -0
  39. package/src/models/TransactionApplicationRequest.ts +103 -0
  40. package/src/models/TransactionApplicationResponse.ts +75 -0
  41. package/src/models/index.ts +4 -0
@@ -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;
@@ -79,7 +79,7 @@ export interface PatchedAuthenticatorSMSStageRequest {
79
79
  */
80
80
  authType?: AuthTypeEnum;
81
81
  /**
82
- * When enabled, the Phone number is only used during enrollment to verify the users authenticity. Only a hash of the phone number is saved to ensure it is not re-used in the future.
82
+ * When enabled, the Phone number is only used during enrollment to verify the users authenticity. Only a hash of the phone number is saved to ensure it is not reused in the future.
83
83
  * @type {boolean}
84
84
  * @memberof PatchedAuthenticatorSMSStageRequest
85
85
  */
@@ -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-1694716726",
3
+ "version": "2023.8.3-1696335052",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -45,6 +45,8 @@ import type {
45
45
  TokenRequest,
46
46
  TokenSetKeyRequest,
47
47
  TokenView,
48
+ TransactionApplicationRequest,
49
+ TransactionApplicationResponse,
48
50
  UsedBy,
49
51
  User,
50
52
  UserAccountRequest,
@@ -118,6 +120,10 @@ import {
118
120
  TokenSetKeyRequestToJSON,
119
121
  TokenViewFromJSON,
120
122
  TokenViewToJSON,
123
+ TransactionApplicationRequestFromJSON,
124
+ TransactionApplicationRequestToJSON,
125
+ TransactionApplicationResponseFromJSON,
126
+ TransactionApplicationResponseToJSON,
121
127
  UsedByFromJSON,
122
128
  UsedByToJSON,
123
129
  UserFromJSON,
@@ -368,6 +374,10 @@ export interface CoreTokensViewKeyRetrieveRequest {
368
374
  identifier: string;
369
375
  }
370
376
 
377
+ export interface CoreTransactionalApplicationsUpdateRequest {
378
+ transactionApplicationRequest: TransactionApplicationRequest;
379
+ }
380
+
371
381
  export interface CoreUserConsentDestroyRequest {
372
382
  id: number;
373
383
  }
@@ -2162,6 +2172,43 @@ export class CoreApi extends runtime.BaseAPI {
2162
2172
  return await response.value();
2163
2173
  }
2164
2174
 
2175
+ /**
2176
+ * Convert data into a blueprint, validate it and apply it
2177
+ */
2178
+ async coreTransactionalApplicationsUpdateRaw(requestParameters: CoreTransactionalApplicationsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TransactionApplicationResponse>> {
2179
+ if (requestParameters.transactionApplicationRequest === null || requestParameters.transactionApplicationRequest === undefined) {
2180
+ throw new runtime.RequiredError('transactionApplicationRequest','Required parameter requestParameters.transactionApplicationRequest was null or undefined when calling coreTransactionalApplicationsUpdate.');
2181
+ }
2182
+
2183
+ const queryParameters: any = {};
2184
+
2185
+ const headerParameters: runtime.HTTPHeaders = {};
2186
+
2187
+ headerParameters['Content-Type'] = 'application/json';
2188
+
2189
+ if (this.configuration && this.configuration.apiKey) {
2190
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2191
+ }
2192
+
2193
+ const response = await this.request({
2194
+ path: `/core/transactional/applications/`,
2195
+ method: 'PUT',
2196
+ headers: headerParameters,
2197
+ query: queryParameters,
2198
+ body: TransactionApplicationRequestToJSON(requestParameters.transactionApplicationRequest),
2199
+ }, initOverrides);
2200
+
2201
+ return new runtime.JSONApiResponse(response, (jsonValue) => TransactionApplicationResponseFromJSON(jsonValue));
2202
+ }
2203
+
2204
+ /**
2205
+ * Convert data into a blueprint, validate it and apply it
2206
+ */
2207
+ async coreTransactionalApplicationsUpdate(requestParameters: CoreTransactionalApplicationsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TransactionApplicationResponse> {
2208
+ const response = await this.coreTransactionalApplicationsUpdateRaw(requestParameters, initOverrides);
2209
+ return await response.value();
2210
+ }
2211
+
2165
2212
  /**
2166
2213
  * UserConsent Viewset
2167
2214
  */
@@ -129,7 +129,7 @@ export interface AuthenticatorSMSStage {
129
129
  */
130
130
  authType?: AuthTypeEnum;
131
131
  /**
132
- * When enabled, the Phone number is only used during enrollment to verify the users authenticity. Only a hash of the phone number is saved to ensure it is not re-used in the future.
132
+ * When enabled, the Phone number is only used during enrollment to verify the users authenticity. Only a hash of the phone number is saved to ensure it is not reused in the future.
133
133
  * @type {boolean}
134
134
  * @memberof AuthenticatorSMSStage
135
135
  */
@@ -99,7 +99,7 @@ export interface AuthenticatorSMSStageRequest {
99
99
  */
100
100
  authType?: AuthTypeEnum;
101
101
  /**
102
- * When enabled, the Phone number is only used during enrollment to verify the users authenticity. Only a hash of the phone number is saved to ensure it is not re-used in the future.
102
+ * When enabled, the Phone number is only used during enrollment to verify the users authenticity. Only a hash of the phone number is saved to ensure it is not reused in the future.
103
103
  * @type {boolean}
104
104
  * @memberof AuthenticatorSMSStageRequest
105
105
  */