@goauthentik/api 2023.10.4-1702933698 → 2023.10.4-1703107046

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 (35) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/dist/esm/models/AuthenticatedSession.d.ts +7 -0
  3. package/dist/esm/models/AuthenticatedSession.js +4 -0
  4. package/dist/esm/models/AuthenticatedSessionAsn.d.ts +43 -0
  5. package/dist/esm/models/AuthenticatedSessionAsn.js +49 -0
  6. package/dist/esm/models/AuthenticatedSessionGeoIp.d.ts +1 -1
  7. package/dist/esm/models/AuthenticationEnum.d.ts +2 -0
  8. package/dist/esm/models/AuthenticationEnum.js +2 -0
  9. package/dist/esm/models/CapabilitiesEnum.d.ts +2 -0
  10. package/dist/esm/models/CapabilitiesEnum.js +2 -0
  11. package/dist/esm/models/Reputation.d.ts +6 -0
  12. package/dist/esm/models/Reputation.js +2 -0
  13. package/dist/esm/models/index.d.ts +1 -0
  14. package/dist/esm/models/index.js +1 -0
  15. package/dist/models/AuthenticatedSession.d.ts +7 -0
  16. package/dist/models/AuthenticatedSession.js +4 -0
  17. package/dist/models/AuthenticatedSessionAsn.d.ts +43 -0
  18. package/dist/models/AuthenticatedSessionAsn.js +56 -0
  19. package/dist/models/AuthenticatedSessionGeoIp.d.ts +1 -1
  20. package/dist/models/AuthenticationEnum.d.ts +2 -0
  21. package/dist/models/AuthenticationEnum.js +2 -0
  22. package/dist/models/CapabilitiesEnum.d.ts +2 -0
  23. package/dist/models/CapabilitiesEnum.js +2 -0
  24. package/dist/models/Reputation.d.ts +6 -0
  25. package/dist/models/Reputation.js +2 -0
  26. package/dist/models/index.d.ts +1 -0
  27. package/dist/models/index.js +1 -0
  28. package/package.json +1 -1
  29. package/src/models/AuthenticatedSession.ts +15 -0
  30. package/src/models/AuthenticatedSessionAsn.ts +84 -0
  31. package/src/models/AuthenticatedSessionGeoIp.ts +1 -1
  32. package/src/models/AuthenticationEnum.ts +2 -0
  33. package/src/models/CapabilitiesEnum.ts +2 -0
  34. package/src/models/Reputation.ts +8 -0
  35. package/src/models/index.ts +1 -0
@@ -34,6 +34,7 @@ src/models/AuthTypeEnum.ts
34
34
  src/models/AuthenticateWebAuthnStage.ts
35
35
  src/models/AuthenticateWebAuthnStageRequest.ts
36
36
  src/models/AuthenticatedSession.ts
37
+ src/models/AuthenticatedSessionAsn.ts
37
38
  src/models/AuthenticatedSessionGeoIp.ts
38
39
  src/models/AuthenticatedSessionUserAgent.ts
39
40
  src/models/AuthenticatedSessionUserAgentDevice.ts
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { AuthenticatedSessionAsn } from './AuthenticatedSessionAsn';
12
13
  import type { AuthenticatedSessionGeoIp } from './AuthenticatedSessionGeoIp';
13
14
  import type { AuthenticatedSessionUserAgent } from './AuthenticatedSessionUserAgent';
14
15
  /**
@@ -41,6 +42,12 @@ export interface AuthenticatedSession {
41
42
  * @memberof AuthenticatedSession
42
43
  */
43
44
  geoIp: AuthenticatedSessionGeoIp | null;
45
+ /**
46
+ *
47
+ * @type {AuthenticatedSessionAsn}
48
+ * @memberof AuthenticatedSession
49
+ */
50
+ asn: AuthenticatedSessionAsn | null;
44
51
  /**
45
52
  *
46
53
  * @type {number}
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { exists } from '../runtime';
15
+ import { AuthenticatedSessionAsnFromJSON, AuthenticatedSessionAsnToJSON, } from './AuthenticatedSessionAsn';
15
16
  import { AuthenticatedSessionGeoIpFromJSON, AuthenticatedSessionGeoIpToJSON, } from './AuthenticatedSessionGeoIp';
16
17
  import { AuthenticatedSessionUserAgentFromJSON, AuthenticatedSessionUserAgentToJSON, } from './AuthenticatedSessionUserAgent';
17
18
  /**
@@ -22,6 +23,7 @@ export function instanceOfAuthenticatedSession(value) {
22
23
  isInstance = isInstance && "current" in value;
23
24
  isInstance = isInstance && "userAgent" in value;
24
25
  isInstance = isInstance && "geoIp" in value;
26
+ isInstance = isInstance && "asn" in value;
25
27
  isInstance = isInstance && "user" in value;
26
28
  isInstance = isInstance && "lastIp" in value;
27
29
  isInstance = isInstance && "lastUsed" in value;
@@ -39,6 +41,7 @@ export function AuthenticatedSessionFromJSONTyped(json, ignoreDiscriminator) {
39
41
  'current': json['current'],
40
42
  'userAgent': AuthenticatedSessionUserAgentFromJSON(json['user_agent']),
41
43
  'geoIp': AuthenticatedSessionGeoIpFromJSON(json['geo_ip']),
44
+ 'asn': AuthenticatedSessionAsnFromJSON(json['asn']),
42
45
  'user': json['user'],
43
46
  'lastIp': json['last_ip'],
44
47
  'lastUserAgent': !exists(json, 'last_user_agent') ? undefined : json['last_user_agent'],
@@ -57,6 +60,7 @@ export function AuthenticatedSessionToJSON(value) {
57
60
  'uuid': value.uuid,
58
61
  'user_agent': AuthenticatedSessionUserAgentToJSON(value.userAgent),
59
62
  'geo_ip': AuthenticatedSessionGeoIpToJSON(value.geoIp),
63
+ 'asn': AuthenticatedSessionAsnToJSON(value.asn),
60
64
  'user': value.user,
61
65
  'last_ip': value.lastIp,
62
66
  'last_user_agent': value.lastUserAgent,
@@ -0,0 +1,43 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2023.10.4
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
+ * Get ASN Data
14
+ * @export
15
+ * @interface AuthenticatedSessionAsn
16
+ */
17
+ export interface AuthenticatedSessionAsn {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof AuthenticatedSessionAsn
22
+ */
23
+ asn: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AuthenticatedSessionAsn
28
+ */
29
+ asOrg: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AuthenticatedSessionAsn
34
+ */
35
+ network: string | null;
36
+ }
37
+ /**
38
+ * Check if a given object implements the AuthenticatedSessionAsn interface.
39
+ */
40
+ export declare function instanceOfAuthenticatedSessionAsn(value: object): boolean;
41
+ export declare function AuthenticatedSessionAsnFromJSON(json: any): AuthenticatedSessionAsn;
42
+ export declare function AuthenticatedSessionAsnFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatedSessionAsn;
43
+ export declare function AuthenticatedSessionAsnToJSON(value?: AuthenticatedSessionAsn | 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: 2023.10.4
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
+ * Check if a given object implements the AuthenticatedSessionAsn interface.
16
+ */
17
+ export function instanceOfAuthenticatedSessionAsn(value) {
18
+ let isInstance = true;
19
+ isInstance = isInstance && "asn" in value;
20
+ isInstance = isInstance && "asOrg" in value;
21
+ isInstance = isInstance && "network" in value;
22
+ return isInstance;
23
+ }
24
+ export function AuthenticatedSessionAsnFromJSON(json) {
25
+ return AuthenticatedSessionAsnFromJSONTyped(json, false);
26
+ }
27
+ export function AuthenticatedSessionAsnFromJSONTyped(json, ignoreDiscriminator) {
28
+ if ((json === undefined) || (json === null)) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'asn': json['asn'],
33
+ 'asOrg': json['as_org'],
34
+ 'network': json['network'],
35
+ };
36
+ }
37
+ export function AuthenticatedSessionAsnToJSON(value) {
38
+ if (value === undefined) {
39
+ return undefined;
40
+ }
41
+ if (value === null) {
42
+ return null;
43
+ }
44
+ return {
45
+ 'asn': value.asn,
46
+ 'as_org': value.asOrg,
47
+ 'network': value.network,
48
+ };
49
+ }
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Get parsed user agent
13
+ * Get GeoIP Data
14
14
  * @export
15
15
  * @interface AuthenticatedSessionGeoIp
16
16
  */
@@ -14,6 +14,7 @@
14
14
  * * `require_authenticated` - Require Authenticated
15
15
  * * `require_unauthenticated` - Require Unauthenticated
16
16
  * * `require_superuser` - Require Superuser
17
+ * * `require_outpost` - Require Outpost
17
18
  * @export
18
19
  */
19
20
  export declare const AuthenticationEnum: {
@@ -21,6 +22,7 @@ export declare const AuthenticationEnum: {
21
22
  readonly RequireAuthenticated: "require_authenticated";
22
23
  readonly RequireUnauthenticated: "require_unauthenticated";
23
24
  readonly RequireSuperuser: "require_superuser";
25
+ readonly RequireOutpost: "require_outpost";
24
26
  readonly UnknownDefaultOpenApi: "11184809";
25
27
  };
26
28
  export type AuthenticationEnum = typeof AuthenticationEnum[keyof typeof AuthenticationEnum];
@@ -16,6 +16,7 @@
16
16
  * * `require_authenticated` - Require Authenticated
17
17
  * * `require_unauthenticated` - Require Unauthenticated
18
18
  * * `require_superuser` - Require Superuser
19
+ * * `require_outpost` - Require Outpost
19
20
  * @export
20
21
  */
21
22
  export const AuthenticationEnum = {
@@ -23,6 +24,7 @@ export const AuthenticationEnum = {
23
24
  RequireAuthenticated: 'require_authenticated',
24
25
  RequireUnauthenticated: 'require_unauthenticated',
25
26
  RequireSuperuser: 'require_superuser',
27
+ RequireOutpost: 'require_outpost',
26
28
  UnknownDefaultOpenApi: '11184809'
27
29
  };
28
30
  export function AuthenticationEnumFromJSON(json) {
@@ -12,6 +12,7 @@
12
12
  /**
13
13
  * * `can_save_media` - Can Save Media
14
14
  * * `can_geo_ip` - Can Geo Ip
15
+ * * `can_asn` - Can Asn
15
16
  * * `can_impersonate` - Can Impersonate
16
17
  * * `can_debug` - Can Debug
17
18
  * * `is_enterprise` - Is Enterprise
@@ -20,6 +21,7 @@
20
21
  export declare const CapabilitiesEnum: {
21
22
  readonly CanSaveMedia: "can_save_media";
22
23
  readonly CanGeoIp: "can_geo_ip";
24
+ readonly CanAsn: "can_asn";
23
25
  readonly CanImpersonate: "can_impersonate";
24
26
  readonly CanDebug: "can_debug";
25
27
  readonly IsEnterprise: "is_enterprise";
@@ -14,6 +14,7 @@
14
14
  /**
15
15
  * * `can_save_media` - Can Save Media
16
16
  * * `can_geo_ip` - Can Geo Ip
17
+ * * `can_asn` - Can Asn
17
18
  * * `can_impersonate` - Can Impersonate
18
19
  * * `can_debug` - Can Debug
19
20
  * * `is_enterprise` - Is Enterprise
@@ -22,6 +23,7 @@
22
23
  export const CapabilitiesEnum = {
23
24
  CanSaveMedia: 'can_save_media',
24
25
  CanGeoIp: 'can_geo_ip',
26
+ CanAsn: 'can_asn',
25
27
  CanImpersonate: 'can_impersonate',
26
28
  CanDebug: 'can_debug',
27
29
  IsEnterprise: 'is_enterprise',
@@ -39,6 +39,12 @@ export interface Reputation {
39
39
  * @memberof Reputation
40
40
  */
41
41
  ipGeoData?: any | null;
42
+ /**
43
+ *
44
+ * @type {any}
45
+ * @memberof Reputation
46
+ */
47
+ ipAsnData?: any | null;
42
48
  /**
43
49
  *
44
50
  * @type {number}
@@ -34,6 +34,7 @@ export function ReputationFromJSONTyped(json, ignoreDiscriminator) {
34
34
  'identifier': json['identifier'],
35
35
  'ip': json['ip'],
36
36
  'ipGeoData': !exists(json, 'ip_geo_data') ? undefined : json['ip_geo_data'],
37
+ 'ipAsnData': !exists(json, 'ip_asn_data') ? undefined : json['ip_asn_data'],
37
38
  'score': !exists(json, 'score') ? undefined : json['score'],
38
39
  'updated': (new Date(json['updated'])),
39
40
  };
@@ -50,6 +51,7 @@ export function ReputationToJSON(value) {
50
51
  'identifier': value.identifier,
51
52
  'ip': value.ip,
52
53
  'ip_geo_data': value.ipGeoData,
54
+ 'ip_asn_data': value.ipAsnData,
53
55
  'score': value.score,
54
56
  };
55
57
  }
@@ -9,6 +9,7 @@ export * from './AuthTypeEnum';
9
9
  export * from './AuthenticateWebAuthnStage';
10
10
  export * from './AuthenticateWebAuthnStageRequest';
11
11
  export * from './AuthenticatedSession';
12
+ export * from './AuthenticatedSessionAsn';
12
13
  export * from './AuthenticatedSessionGeoIp';
13
14
  export * from './AuthenticatedSessionUserAgent';
14
15
  export * from './AuthenticatedSessionUserAgentDevice';
@@ -11,6 +11,7 @@ export * from './AuthTypeEnum';
11
11
  export * from './AuthenticateWebAuthnStage';
12
12
  export * from './AuthenticateWebAuthnStageRequest';
13
13
  export * from './AuthenticatedSession';
14
+ export * from './AuthenticatedSessionAsn';
14
15
  export * from './AuthenticatedSessionGeoIp';
15
16
  export * from './AuthenticatedSessionUserAgent';
16
17
  export * from './AuthenticatedSessionUserAgentDevice';
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { AuthenticatedSessionAsn } from './AuthenticatedSessionAsn';
12
13
  import type { AuthenticatedSessionGeoIp } from './AuthenticatedSessionGeoIp';
13
14
  import type { AuthenticatedSessionUserAgent } from './AuthenticatedSessionUserAgent';
14
15
  /**
@@ -41,6 +42,12 @@ export interface AuthenticatedSession {
41
42
  * @memberof AuthenticatedSession
42
43
  */
43
44
  geoIp: AuthenticatedSessionGeoIp | null;
45
+ /**
46
+ *
47
+ * @type {AuthenticatedSessionAsn}
48
+ * @memberof AuthenticatedSession
49
+ */
50
+ asn: AuthenticatedSessionAsn | null;
44
51
  /**
45
52
  *
46
53
  * @type {number}
@@ -15,6 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.AuthenticatedSessionToJSON = exports.AuthenticatedSessionFromJSONTyped = exports.AuthenticatedSessionFromJSON = exports.instanceOfAuthenticatedSession = void 0;
17
17
  const runtime_1 = require("../runtime");
18
+ const AuthenticatedSessionAsn_1 = require("./AuthenticatedSessionAsn");
18
19
  const AuthenticatedSessionGeoIp_1 = require("./AuthenticatedSessionGeoIp");
19
20
  const AuthenticatedSessionUserAgent_1 = require("./AuthenticatedSessionUserAgent");
20
21
  /**
@@ -25,6 +26,7 @@ function instanceOfAuthenticatedSession(value) {
25
26
  isInstance = isInstance && "current" in value;
26
27
  isInstance = isInstance && "userAgent" in value;
27
28
  isInstance = isInstance && "geoIp" in value;
29
+ isInstance = isInstance && "asn" in value;
28
30
  isInstance = isInstance && "user" in value;
29
31
  isInstance = isInstance && "lastIp" in value;
30
32
  isInstance = isInstance && "lastUsed" in value;
@@ -44,6 +46,7 @@ function AuthenticatedSessionFromJSONTyped(json, ignoreDiscriminator) {
44
46
  'current': json['current'],
45
47
  'userAgent': (0, AuthenticatedSessionUserAgent_1.AuthenticatedSessionUserAgentFromJSON)(json['user_agent']),
46
48
  'geoIp': (0, AuthenticatedSessionGeoIp_1.AuthenticatedSessionGeoIpFromJSON)(json['geo_ip']),
49
+ 'asn': (0, AuthenticatedSessionAsn_1.AuthenticatedSessionAsnFromJSON)(json['asn']),
47
50
  'user': json['user'],
48
51
  'lastIp': json['last_ip'],
49
52
  'lastUserAgent': !(0, runtime_1.exists)(json, 'last_user_agent') ? undefined : json['last_user_agent'],
@@ -63,6 +66,7 @@ function AuthenticatedSessionToJSON(value) {
63
66
  'uuid': value.uuid,
64
67
  'user_agent': (0, AuthenticatedSessionUserAgent_1.AuthenticatedSessionUserAgentToJSON)(value.userAgent),
65
68
  'geo_ip': (0, AuthenticatedSessionGeoIp_1.AuthenticatedSessionGeoIpToJSON)(value.geoIp),
69
+ 'asn': (0, AuthenticatedSessionAsn_1.AuthenticatedSessionAsnToJSON)(value.asn),
66
70
  'user': value.user,
67
71
  'last_ip': value.lastIp,
68
72
  'last_user_agent': value.lastUserAgent,
@@ -0,0 +1,43 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2023.10.4
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
+ * Get ASN Data
14
+ * @export
15
+ * @interface AuthenticatedSessionAsn
16
+ */
17
+ export interface AuthenticatedSessionAsn {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof AuthenticatedSessionAsn
22
+ */
23
+ asn: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AuthenticatedSessionAsn
28
+ */
29
+ asOrg: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AuthenticatedSessionAsn
34
+ */
35
+ network: string | null;
36
+ }
37
+ /**
38
+ * Check if a given object implements the AuthenticatedSessionAsn interface.
39
+ */
40
+ export declare function instanceOfAuthenticatedSessionAsn(value: object): boolean;
41
+ export declare function AuthenticatedSessionAsnFromJSON(json: any): AuthenticatedSessionAsn;
42
+ export declare function AuthenticatedSessionAsnFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatedSessionAsn;
43
+ export declare function AuthenticatedSessionAsnToJSON(value?: AuthenticatedSessionAsn | null): any;
@@ -0,0 +1,56 @@
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.10.4
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.AuthenticatedSessionAsnToJSON = exports.AuthenticatedSessionAsnFromJSONTyped = exports.AuthenticatedSessionAsnFromJSON = exports.instanceOfAuthenticatedSessionAsn = void 0;
17
+ /**
18
+ * Check if a given object implements the AuthenticatedSessionAsn interface.
19
+ */
20
+ function instanceOfAuthenticatedSessionAsn(value) {
21
+ let isInstance = true;
22
+ isInstance = isInstance && "asn" in value;
23
+ isInstance = isInstance && "asOrg" in value;
24
+ isInstance = isInstance && "network" in value;
25
+ return isInstance;
26
+ }
27
+ exports.instanceOfAuthenticatedSessionAsn = instanceOfAuthenticatedSessionAsn;
28
+ function AuthenticatedSessionAsnFromJSON(json) {
29
+ return AuthenticatedSessionAsnFromJSONTyped(json, false);
30
+ }
31
+ exports.AuthenticatedSessionAsnFromJSON = AuthenticatedSessionAsnFromJSON;
32
+ function AuthenticatedSessionAsnFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'asn': json['asn'],
38
+ 'asOrg': json['as_org'],
39
+ 'network': json['network'],
40
+ };
41
+ }
42
+ exports.AuthenticatedSessionAsnFromJSONTyped = AuthenticatedSessionAsnFromJSONTyped;
43
+ function AuthenticatedSessionAsnToJSON(value) {
44
+ if (value === undefined) {
45
+ return undefined;
46
+ }
47
+ if (value === null) {
48
+ return null;
49
+ }
50
+ return {
51
+ 'asn': value.asn,
52
+ 'as_org': value.asOrg,
53
+ 'network': value.network,
54
+ };
55
+ }
56
+ exports.AuthenticatedSessionAsnToJSON = AuthenticatedSessionAsnToJSON;
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Get parsed user agent
13
+ * Get GeoIP Data
14
14
  * @export
15
15
  * @interface AuthenticatedSessionGeoIp
16
16
  */
@@ -14,6 +14,7 @@
14
14
  * * `require_authenticated` - Require Authenticated
15
15
  * * `require_unauthenticated` - Require Unauthenticated
16
16
  * * `require_superuser` - Require Superuser
17
+ * * `require_outpost` - Require Outpost
17
18
  * @export
18
19
  */
19
20
  export declare const AuthenticationEnum: {
@@ -21,6 +22,7 @@ export declare const AuthenticationEnum: {
21
22
  readonly RequireAuthenticated: "require_authenticated";
22
23
  readonly RequireUnauthenticated: "require_unauthenticated";
23
24
  readonly RequireSuperuser: "require_superuser";
25
+ readonly RequireOutpost: "require_outpost";
24
26
  readonly UnknownDefaultOpenApi: "11184809";
25
27
  };
26
28
  export type AuthenticationEnum = typeof AuthenticationEnum[keyof typeof AuthenticationEnum];
@@ -19,6 +19,7 @@ exports.AuthenticationEnumToJSON = exports.AuthenticationEnumFromJSONTyped = exp
19
19
  * * `require_authenticated` - Require Authenticated
20
20
  * * `require_unauthenticated` - Require Unauthenticated
21
21
  * * `require_superuser` - Require Superuser
22
+ * * `require_outpost` - Require Outpost
22
23
  * @export
23
24
  */
24
25
  exports.AuthenticationEnum = {
@@ -26,6 +27,7 @@ exports.AuthenticationEnum = {
26
27
  RequireAuthenticated: 'require_authenticated',
27
28
  RequireUnauthenticated: 'require_unauthenticated',
28
29
  RequireSuperuser: 'require_superuser',
30
+ RequireOutpost: 'require_outpost',
29
31
  UnknownDefaultOpenApi: '11184809'
30
32
  };
31
33
  function AuthenticationEnumFromJSON(json) {
@@ -12,6 +12,7 @@
12
12
  /**
13
13
  * * `can_save_media` - Can Save Media
14
14
  * * `can_geo_ip` - Can Geo Ip
15
+ * * `can_asn` - Can Asn
15
16
  * * `can_impersonate` - Can Impersonate
16
17
  * * `can_debug` - Can Debug
17
18
  * * `is_enterprise` - Is Enterprise
@@ -20,6 +21,7 @@
20
21
  export declare const CapabilitiesEnum: {
21
22
  readonly CanSaveMedia: "can_save_media";
22
23
  readonly CanGeoIp: "can_geo_ip";
24
+ readonly CanAsn: "can_asn";
23
25
  readonly CanImpersonate: "can_impersonate";
24
26
  readonly CanDebug: "can_debug";
25
27
  readonly IsEnterprise: "is_enterprise";
@@ -17,6 +17,7 @@ exports.CapabilitiesEnumToJSON = exports.CapabilitiesEnumFromJSONTyped = exports
17
17
  /**
18
18
  * * `can_save_media` - Can Save Media
19
19
  * * `can_geo_ip` - Can Geo Ip
20
+ * * `can_asn` - Can Asn
20
21
  * * `can_impersonate` - Can Impersonate
21
22
  * * `can_debug` - Can Debug
22
23
  * * `is_enterprise` - Is Enterprise
@@ -25,6 +26,7 @@ exports.CapabilitiesEnumToJSON = exports.CapabilitiesEnumFromJSONTyped = exports
25
26
  exports.CapabilitiesEnum = {
26
27
  CanSaveMedia: 'can_save_media',
27
28
  CanGeoIp: 'can_geo_ip',
29
+ CanAsn: 'can_asn',
28
30
  CanImpersonate: 'can_impersonate',
29
31
  CanDebug: 'can_debug',
30
32
  IsEnterprise: 'is_enterprise',
@@ -39,6 +39,12 @@ export interface Reputation {
39
39
  * @memberof Reputation
40
40
  */
41
41
  ipGeoData?: any | null;
42
+ /**
43
+ *
44
+ * @type {any}
45
+ * @memberof Reputation
46
+ */
47
+ ipAsnData?: any | null;
42
48
  /**
43
49
  *
44
50
  * @type {number}
@@ -39,6 +39,7 @@ function ReputationFromJSONTyped(json, ignoreDiscriminator) {
39
39
  'identifier': json['identifier'],
40
40
  'ip': json['ip'],
41
41
  'ipGeoData': !(0, runtime_1.exists)(json, 'ip_geo_data') ? undefined : json['ip_geo_data'],
42
+ 'ipAsnData': !(0, runtime_1.exists)(json, 'ip_asn_data') ? undefined : json['ip_asn_data'],
42
43
  'score': !(0, runtime_1.exists)(json, 'score') ? undefined : json['score'],
43
44
  'updated': (new Date(json['updated'])),
44
45
  };
@@ -56,6 +57,7 @@ function ReputationToJSON(value) {
56
57
  'identifier': value.identifier,
57
58
  'ip': value.ip,
58
59
  'ip_geo_data': value.ipGeoData,
60
+ 'ip_asn_data': value.ipAsnData,
59
61
  'score': value.score,
60
62
  };
61
63
  }
@@ -9,6 +9,7 @@ export * from './AuthTypeEnum';
9
9
  export * from './AuthenticateWebAuthnStage';
10
10
  export * from './AuthenticateWebAuthnStageRequest';
11
11
  export * from './AuthenticatedSession';
12
+ export * from './AuthenticatedSessionAsn';
12
13
  export * from './AuthenticatedSessionGeoIp';
13
14
  export * from './AuthenticatedSessionUserAgent';
14
15
  export * from './AuthenticatedSessionUserAgentDevice';
@@ -27,6 +27,7 @@ __exportStar(require("./AuthTypeEnum"), exports);
27
27
  __exportStar(require("./AuthenticateWebAuthnStage"), exports);
28
28
  __exportStar(require("./AuthenticateWebAuthnStageRequest"), exports);
29
29
  __exportStar(require("./AuthenticatedSession"), exports);
30
+ __exportStar(require("./AuthenticatedSessionAsn"), exports);
30
31
  __exportStar(require("./AuthenticatedSessionGeoIp"), exports);
31
32
  __exportStar(require("./AuthenticatedSessionUserAgent"), exports);
32
33
  __exportStar(require("./AuthenticatedSessionUserAgentDevice"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2023.10.4-1702933698",
3
+ "version": "2023.10.4-1703107046",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -13,6 +13,12 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { AuthenticatedSessionAsn } from './AuthenticatedSessionAsn';
17
+ import {
18
+ AuthenticatedSessionAsnFromJSON,
19
+ AuthenticatedSessionAsnFromJSONTyped,
20
+ AuthenticatedSessionAsnToJSON,
21
+ } from './AuthenticatedSessionAsn';
16
22
  import type { AuthenticatedSessionGeoIp } from './AuthenticatedSessionGeoIp';
17
23
  import {
18
24
  AuthenticatedSessionGeoIpFromJSON,
@@ -56,6 +62,12 @@ export interface AuthenticatedSession {
56
62
  * @memberof AuthenticatedSession
57
63
  */
58
64
  geoIp: AuthenticatedSessionGeoIp | null;
65
+ /**
66
+ *
67
+ * @type {AuthenticatedSessionAsn}
68
+ * @memberof AuthenticatedSession
69
+ */
70
+ asn: AuthenticatedSessionAsn | null;
59
71
  /**
60
72
  *
61
73
  * @type {number}
@@ -96,6 +108,7 @@ export function instanceOfAuthenticatedSession(value: object): boolean {
96
108
  isInstance = isInstance && "current" in value;
97
109
  isInstance = isInstance && "userAgent" in value;
98
110
  isInstance = isInstance && "geoIp" in value;
111
+ isInstance = isInstance && "asn" in value;
99
112
  isInstance = isInstance && "user" in value;
100
113
  isInstance = isInstance && "lastIp" in value;
101
114
  isInstance = isInstance && "lastUsed" in value;
@@ -117,6 +130,7 @@ export function AuthenticatedSessionFromJSONTyped(json: any, ignoreDiscriminator
117
130
  'current': json['current'],
118
131
  'userAgent': AuthenticatedSessionUserAgentFromJSON(json['user_agent']),
119
132
  'geoIp': AuthenticatedSessionGeoIpFromJSON(json['geo_ip']),
133
+ 'asn': AuthenticatedSessionAsnFromJSON(json['asn']),
120
134
  'user': json['user'],
121
135
  'lastIp': json['last_ip'],
122
136
  'lastUserAgent': !exists(json, 'last_user_agent') ? undefined : json['last_user_agent'],
@@ -137,6 +151,7 @@ export function AuthenticatedSessionToJSON(value?: AuthenticatedSession | null):
137
151
  'uuid': value.uuid,
138
152
  'user_agent': AuthenticatedSessionUserAgentToJSON(value.userAgent),
139
153
  'geo_ip': AuthenticatedSessionGeoIpToJSON(value.geoIp),
154
+ 'asn': AuthenticatedSessionAsnToJSON(value.asn),
140
155
  'user': value.user,
141
156
  'last_ip': value.lastIp,
142
157
  'last_user_agent': value.lastUserAgent,
@@ -0,0 +1,84 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2023.10.4
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
+ * Get ASN Data
18
+ * @export
19
+ * @interface AuthenticatedSessionAsn
20
+ */
21
+ export interface AuthenticatedSessionAsn {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof AuthenticatedSessionAsn
26
+ */
27
+ asn: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof AuthenticatedSessionAsn
32
+ */
33
+ asOrg: string | null;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof AuthenticatedSessionAsn
38
+ */
39
+ network: string | null;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the AuthenticatedSessionAsn interface.
44
+ */
45
+ export function instanceOfAuthenticatedSessionAsn(value: object): boolean {
46
+ let isInstance = true;
47
+ isInstance = isInstance && "asn" in value;
48
+ isInstance = isInstance && "asOrg" in value;
49
+ isInstance = isInstance && "network" in value;
50
+
51
+ return isInstance;
52
+ }
53
+
54
+ export function AuthenticatedSessionAsnFromJSON(json: any): AuthenticatedSessionAsn {
55
+ return AuthenticatedSessionAsnFromJSONTyped(json, false);
56
+ }
57
+
58
+ export function AuthenticatedSessionAsnFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatedSessionAsn {
59
+ if ((json === undefined) || (json === null)) {
60
+ return json;
61
+ }
62
+ return {
63
+
64
+ 'asn': json['asn'],
65
+ 'asOrg': json['as_org'],
66
+ 'network': json['network'],
67
+ };
68
+ }
69
+
70
+ export function AuthenticatedSessionAsnToJSON(value?: AuthenticatedSessionAsn | null): any {
71
+ if (value === undefined) {
72
+ return undefined;
73
+ }
74
+ if (value === null) {
75
+ return null;
76
+ }
77
+ return {
78
+
79
+ 'asn': value.asn,
80
+ 'as_org': value.asOrg,
81
+ 'network': value.network,
82
+ };
83
+ }
84
+
@@ -14,7 +14,7 @@
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
16
  /**
17
- * Get parsed user agent
17
+ * Get GeoIP Data
18
18
  * @export
19
19
  * @interface AuthenticatedSessionGeoIp
20
20
  */
@@ -18,6 +18,7 @@
18
18
  * * `require_authenticated` - Require Authenticated
19
19
  * * `require_unauthenticated` - Require Unauthenticated
20
20
  * * `require_superuser` - Require Superuser
21
+ * * `require_outpost` - Require Outpost
21
22
  * @export
22
23
  */
23
24
  export const AuthenticationEnum = {
@@ -25,6 +26,7 @@ export const AuthenticationEnum = {
25
26
  RequireAuthenticated: 'require_authenticated',
26
27
  RequireUnauthenticated: 'require_unauthenticated',
27
28
  RequireSuperuser: 'require_superuser',
29
+ RequireOutpost: 'require_outpost',
28
30
  UnknownDefaultOpenApi: '11184809'
29
31
  } as const;
30
32
  export type AuthenticationEnum = typeof AuthenticationEnum[keyof typeof AuthenticationEnum];
@@ -16,6 +16,7 @@
16
16
  /**
17
17
  * * `can_save_media` - Can Save Media
18
18
  * * `can_geo_ip` - Can Geo Ip
19
+ * * `can_asn` - Can Asn
19
20
  * * `can_impersonate` - Can Impersonate
20
21
  * * `can_debug` - Can Debug
21
22
  * * `is_enterprise` - Is Enterprise
@@ -24,6 +25,7 @@
24
25
  export const CapabilitiesEnum = {
25
26
  CanSaveMedia: 'can_save_media',
26
27
  CanGeoIp: 'can_geo_ip',
28
+ CanAsn: 'can_asn',
27
29
  CanImpersonate: 'can_impersonate',
28
30
  CanDebug: 'can_debug',
29
31
  IsEnterprise: 'is_enterprise',
@@ -43,6 +43,12 @@ export interface Reputation {
43
43
  * @memberof Reputation
44
44
  */
45
45
  ipGeoData?: any | null;
46
+ /**
47
+ *
48
+ * @type {any}
49
+ * @memberof Reputation
50
+ */
51
+ ipAsnData?: any | null;
46
52
  /**
47
53
  *
48
54
  * @type {number}
@@ -83,6 +89,7 @@ export function ReputationFromJSONTyped(json: any, ignoreDiscriminator: boolean)
83
89
  'identifier': json['identifier'],
84
90
  'ip': json['ip'],
85
91
  'ipGeoData': !exists(json, 'ip_geo_data') ? undefined : json['ip_geo_data'],
92
+ 'ipAsnData': !exists(json, 'ip_asn_data') ? undefined : json['ip_asn_data'],
86
93
  'score': !exists(json, 'score') ? undefined : json['score'],
87
94
  'updated': (new Date(json['updated'])),
88
95
  };
@@ -101,6 +108,7 @@ export function ReputationToJSON(value?: Reputation | null): any {
101
108
  'identifier': value.identifier,
102
109
  'ip': value.ip,
103
110
  'ip_geo_data': value.ipGeoData,
111
+ 'ip_asn_data': value.ipAsnData,
104
112
  'score': value.score,
105
113
  };
106
114
  }
@@ -11,6 +11,7 @@ export * from './AuthTypeEnum';
11
11
  export * from './AuthenticateWebAuthnStage';
12
12
  export * from './AuthenticateWebAuthnStageRequest';
13
13
  export * from './AuthenticatedSession';
14
+ export * from './AuthenticatedSessionAsn';
14
15
  export * from './AuthenticatedSessionGeoIp';
15
16
  export * from './AuthenticatedSessionUserAgent';
16
17
  export * from './AuthenticatedSessionUserAgentDevice';