@goauthentik/api 2024.6.3-1722881330 → 2024.6.3-1722940666

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 (67) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/dist/apis/PoliciesApi.d.ts +92 -1
  3. package/dist/apis/PoliciesApi.js +297 -0
  4. package/dist/apis/RbacApi.d.ts +2 -0
  5. package/dist/apis/RbacApi.js +2 -0
  6. package/dist/esm/apis/PoliciesApi.d.ts +92 -1
  7. package/dist/esm/apis/PoliciesApi.js +298 -1
  8. package/dist/esm/apis/RbacApi.d.ts +2 -0
  9. package/dist/esm/apis/RbacApi.js +2 -0
  10. package/dist/esm/models/AppEnum.d.ts +1 -0
  11. package/dist/esm/models/AppEnum.js +1 -0
  12. package/dist/esm/models/CountryCodeEnum.d.ts +271 -0
  13. package/dist/esm/models/CountryCodeEnum.js +278 -0
  14. package/dist/esm/models/DetailedCountry.d.ts +38 -0
  15. package/dist/esm/models/DetailedCountry.js +47 -0
  16. package/dist/esm/models/DetailedCountryField.d.ts +38 -0
  17. package/dist/esm/models/DetailedCountryField.js +47 -0
  18. package/dist/esm/models/DetailedCountryFieldRequest.d.ts +38 -0
  19. package/dist/esm/models/DetailedCountryFieldRequest.js +47 -0
  20. package/dist/esm/models/GeoIPPolicy.d.ts +93 -0
  21. package/dist/esm/models/GeoIPPolicy.js +67 -0
  22. package/dist/esm/models/GeoIPPolicyRequest.d.ts +50 -0
  23. package/dist/esm/models/GeoIPPolicyRequest.js +52 -0
  24. package/dist/esm/models/ModelEnum.d.ts +1 -0
  25. package/dist/esm/models/ModelEnum.js +1 -0
  26. package/dist/esm/models/PaginatedGeoIPPolicyList.d.ts +39 -0
  27. package/dist/esm/models/PaginatedGeoIPPolicyList.js +48 -0
  28. package/dist/esm/models/PatchedGeoIPPolicyRequest.d.ts +50 -0
  29. package/dist/esm/models/PatchedGeoIPPolicyRequest.js +50 -0
  30. package/dist/esm/models/index.d.ts +8 -0
  31. package/dist/esm/models/index.js +8 -0
  32. package/dist/models/AppEnum.d.ts +1 -0
  33. package/dist/models/AppEnum.js +1 -0
  34. package/dist/models/CountryCodeEnum.d.ts +271 -0
  35. package/dist/models/CountryCodeEnum.js +284 -0
  36. package/dist/models/DetailedCountry.d.ts +38 -0
  37. package/dist/models/DetailedCountry.js +54 -0
  38. package/dist/models/DetailedCountryField.d.ts +38 -0
  39. package/dist/models/DetailedCountryField.js +54 -0
  40. package/dist/models/DetailedCountryFieldRequest.d.ts +38 -0
  41. package/dist/models/DetailedCountryFieldRequest.js +54 -0
  42. package/dist/models/GeoIPPolicy.d.ts +93 -0
  43. package/dist/models/GeoIPPolicy.js +74 -0
  44. package/dist/models/GeoIPPolicyRequest.d.ts +50 -0
  45. package/dist/models/GeoIPPolicyRequest.js +59 -0
  46. package/dist/models/ModelEnum.d.ts +1 -0
  47. package/dist/models/ModelEnum.js +1 -0
  48. package/dist/models/PaginatedGeoIPPolicyList.d.ts +39 -0
  49. package/dist/models/PaginatedGeoIPPolicyList.js +55 -0
  50. package/dist/models/PatchedGeoIPPolicyRequest.d.ts +50 -0
  51. package/dist/models/PatchedGeoIPPolicyRequest.js +57 -0
  52. package/dist/models/index.d.ts +8 -0
  53. package/dist/models/index.js +8 -0
  54. package/package.json +1 -1
  55. package/src/apis/PoliciesApi.ts +377 -0
  56. package/src/apis/RbacApi.ts +2 -0
  57. package/src/models/AppEnum.ts +1 -0
  58. package/src/models/CountryCodeEnum.ts +286 -0
  59. package/src/models/DetailedCountry.ts +82 -0
  60. package/src/models/DetailedCountryField.ts +82 -0
  61. package/src/models/DetailedCountryFieldRequest.ts +82 -0
  62. package/src/models/GeoIPPolicy.ts +160 -0
  63. package/src/models/GeoIPPolicyRequest.ts +98 -0
  64. package/src/models/ModelEnum.ts +1 -0
  65. package/src/models/PaginatedGeoIPPolicyList.ts +88 -0
  66. package/src/models/PatchedGeoIPPolicyRequest.ts +96 -0
  67. package/src/models/index.ts +8 -0
@@ -0,0 +1,284 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2024.6.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.CountryCodeEnumToJSON = exports.CountryCodeEnumFromJSONTyped = exports.CountryCodeEnumFromJSON = exports.CountryCodeEnum = void 0;
17
+ /**
18
+ *
19
+ * @export
20
+ */
21
+ exports.CountryCodeEnum = {
22
+ Af: 'AF',
23
+ Ax: 'AX',
24
+ Al: 'AL',
25
+ Dz: 'DZ',
26
+ As: 'AS',
27
+ Ad: 'AD',
28
+ Ao: 'AO',
29
+ Ai: 'AI',
30
+ Aq: 'AQ',
31
+ Ag: 'AG',
32
+ Ar: 'AR',
33
+ Am: 'AM',
34
+ Aw: 'AW',
35
+ Au: 'AU',
36
+ At: 'AT',
37
+ Az: 'AZ',
38
+ Bs: 'BS',
39
+ Bh: 'BH',
40
+ Bd: 'BD',
41
+ Bb: 'BB',
42
+ By: 'BY',
43
+ Be: 'BE',
44
+ Bz: 'BZ',
45
+ Bj: 'BJ',
46
+ Bm: 'BM',
47
+ Bt: 'BT',
48
+ Bo: 'BO',
49
+ Bq: 'BQ',
50
+ Ba: 'BA',
51
+ Bw: 'BW',
52
+ Bv: 'BV',
53
+ Br: 'BR',
54
+ Io: 'IO',
55
+ Bn: 'BN',
56
+ Bg: 'BG',
57
+ Bf: 'BF',
58
+ Bi: 'BI',
59
+ Cv: 'CV',
60
+ Kh: 'KH',
61
+ Cm: 'CM',
62
+ Ca: 'CA',
63
+ Ky: 'KY',
64
+ Cf: 'CF',
65
+ Td: 'TD',
66
+ Cl: 'CL',
67
+ Cn: 'CN',
68
+ Cx: 'CX',
69
+ Cc: 'CC',
70
+ Co: 'CO',
71
+ Km: 'KM',
72
+ Cg: 'CG',
73
+ Cd: 'CD',
74
+ Ck: 'CK',
75
+ Cr: 'CR',
76
+ Ci: 'CI',
77
+ Hr: 'HR',
78
+ Cu: 'CU',
79
+ Cw: 'CW',
80
+ Cy: 'CY',
81
+ Cz: 'CZ',
82
+ Dk: 'DK',
83
+ Dj: 'DJ',
84
+ Dm: 'DM',
85
+ Do: 'DO',
86
+ Ec: 'EC',
87
+ Eg: 'EG',
88
+ Sv: 'SV',
89
+ Gq: 'GQ',
90
+ Er: 'ER',
91
+ Ee: 'EE',
92
+ Sz: 'SZ',
93
+ Et: 'ET',
94
+ Fk: 'FK',
95
+ Fo: 'FO',
96
+ Fj: 'FJ',
97
+ Fi: 'FI',
98
+ Fr: 'FR',
99
+ Gf: 'GF',
100
+ Pf: 'PF',
101
+ Tf: 'TF',
102
+ Ga: 'GA',
103
+ Gm: 'GM',
104
+ Ge: 'GE',
105
+ De: 'DE',
106
+ Gh: 'GH',
107
+ Gi: 'GI',
108
+ Gr: 'GR',
109
+ Gl: 'GL',
110
+ Gd: 'GD',
111
+ Gp: 'GP',
112
+ Gu: 'GU',
113
+ Gt: 'GT',
114
+ Gg: 'GG',
115
+ Gn: 'GN',
116
+ Gw: 'GW',
117
+ Gy: 'GY',
118
+ Ht: 'HT',
119
+ Hm: 'HM',
120
+ Va: 'VA',
121
+ Hn: 'HN',
122
+ Hk: 'HK',
123
+ Hu: 'HU',
124
+ Is: 'IS',
125
+ In: 'IN',
126
+ Id: 'ID',
127
+ Ir: 'IR',
128
+ Iq: 'IQ',
129
+ Ie: 'IE',
130
+ Im: 'IM',
131
+ Il: 'IL',
132
+ It: 'IT',
133
+ Jm: 'JM',
134
+ Jp: 'JP',
135
+ Je: 'JE',
136
+ Jo: 'JO',
137
+ Kz: 'KZ',
138
+ Ke: 'KE',
139
+ Ki: 'KI',
140
+ Kw: 'KW',
141
+ Kg: 'KG',
142
+ La: 'LA',
143
+ Lv: 'LV',
144
+ Lb: 'LB',
145
+ Ls: 'LS',
146
+ Lr: 'LR',
147
+ Ly: 'LY',
148
+ Li: 'LI',
149
+ Lt: 'LT',
150
+ Lu: 'LU',
151
+ Mo: 'MO',
152
+ Mg: 'MG',
153
+ Mw: 'MW',
154
+ My: 'MY',
155
+ Mv: 'MV',
156
+ Ml: 'ML',
157
+ Mt: 'MT',
158
+ Mh: 'MH',
159
+ Mq: 'MQ',
160
+ Mr: 'MR',
161
+ Mu: 'MU',
162
+ Yt: 'YT',
163
+ Mx: 'MX',
164
+ Fm: 'FM',
165
+ Md: 'MD',
166
+ Mc: 'MC',
167
+ Mn: 'MN',
168
+ Me: 'ME',
169
+ Ms: 'MS',
170
+ Ma: 'MA',
171
+ Mz: 'MZ',
172
+ Mm: 'MM',
173
+ Na: 'NA',
174
+ Nr: 'NR',
175
+ Np: 'NP',
176
+ Nl: 'NL',
177
+ Nc: 'NC',
178
+ Nz: 'NZ',
179
+ Ni: 'NI',
180
+ Ne: 'NE',
181
+ Ng: 'NG',
182
+ Nu: 'NU',
183
+ Nf: 'NF',
184
+ Kp: 'KP',
185
+ Mk: 'MK',
186
+ Mp: 'MP',
187
+ No: 'NO',
188
+ Om: 'OM',
189
+ Pk: 'PK',
190
+ Pw: 'PW',
191
+ Ps: 'PS',
192
+ Pa: 'PA',
193
+ Pg: 'PG',
194
+ Py: 'PY',
195
+ Pe: 'PE',
196
+ Ph: 'PH',
197
+ Pn: 'PN',
198
+ Pl: 'PL',
199
+ Pt: 'PT',
200
+ Pr: 'PR',
201
+ Qa: 'QA',
202
+ Re: 'RE',
203
+ Ro: 'RO',
204
+ Ru: 'RU',
205
+ Rw: 'RW',
206
+ Bl: 'BL',
207
+ Sh: 'SH',
208
+ Kn: 'KN',
209
+ Lc: 'LC',
210
+ Mf: 'MF',
211
+ Pm: 'PM',
212
+ Vc: 'VC',
213
+ Ws: 'WS',
214
+ Sm: 'SM',
215
+ St: 'ST',
216
+ Sa: 'SA',
217
+ Sn: 'SN',
218
+ Rs: 'RS',
219
+ Sc: 'SC',
220
+ Sl: 'SL',
221
+ Sg: 'SG',
222
+ Sx: 'SX',
223
+ Sk: 'SK',
224
+ Si: 'SI',
225
+ Sb: 'SB',
226
+ So: 'SO',
227
+ Za: 'ZA',
228
+ Gs: 'GS',
229
+ Kr: 'KR',
230
+ Ss: 'SS',
231
+ Es: 'ES',
232
+ Lk: 'LK',
233
+ Sd: 'SD',
234
+ Sr: 'SR',
235
+ Sj: 'SJ',
236
+ Se: 'SE',
237
+ Ch: 'CH',
238
+ Sy: 'SY',
239
+ Tw: 'TW',
240
+ Tj: 'TJ',
241
+ Tz: 'TZ',
242
+ Th: 'TH',
243
+ Tl: 'TL',
244
+ Tg: 'TG',
245
+ Tk: 'TK',
246
+ To: 'TO',
247
+ Tt: 'TT',
248
+ Tn: 'TN',
249
+ Tr: 'TR',
250
+ Tm: 'TM',
251
+ Tc: 'TC',
252
+ Tv: 'TV',
253
+ Ug: 'UG',
254
+ Ua: 'UA',
255
+ Ae: 'AE',
256
+ Gb: 'GB',
257
+ Um: 'UM',
258
+ Us: 'US',
259
+ Uy: 'UY',
260
+ Uz: 'UZ',
261
+ Vu: 'VU',
262
+ Ve: 'VE',
263
+ Vn: 'VN',
264
+ Vg: 'VG',
265
+ Vi: 'VI',
266
+ Wf: 'WF',
267
+ Eh: 'EH',
268
+ Ye: 'YE',
269
+ Zm: 'ZM',
270
+ Zw: 'ZW',
271
+ UnknownDefaultOpenApi: '11184809'
272
+ };
273
+ function CountryCodeEnumFromJSON(json) {
274
+ return CountryCodeEnumFromJSONTyped(json, false);
275
+ }
276
+ exports.CountryCodeEnumFromJSON = CountryCodeEnumFromJSON;
277
+ function CountryCodeEnumFromJSONTyped(json, ignoreDiscriminator) {
278
+ return json;
279
+ }
280
+ exports.CountryCodeEnumFromJSONTyped = CountryCodeEnumFromJSONTyped;
281
+ function CountryCodeEnumToJSON(value) {
282
+ return value;
283
+ }
284
+ exports.CountryCodeEnumToJSON = CountryCodeEnumToJSON;
@@ -0,0 +1,38 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.6.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 { CountryCodeEnum } from './CountryCodeEnum';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface DetailedCountry
17
+ */
18
+ export interface DetailedCountry {
19
+ /**
20
+ *
21
+ * @type {CountryCodeEnum}
22
+ * @memberof DetailedCountry
23
+ */
24
+ code: CountryCodeEnum;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof DetailedCountry
29
+ */
30
+ name: string;
31
+ }
32
+ /**
33
+ * Check if a given object implements the DetailedCountry interface.
34
+ */
35
+ export declare function instanceOfDetailedCountry(value: object): boolean;
36
+ export declare function DetailedCountryFromJSON(json: any): DetailedCountry;
37
+ export declare function DetailedCountryFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetailedCountry;
38
+ export declare function DetailedCountryToJSON(value?: DetailedCountry | null): any;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2024.6.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.DetailedCountryToJSON = exports.DetailedCountryFromJSONTyped = exports.DetailedCountryFromJSON = exports.instanceOfDetailedCountry = void 0;
17
+ const CountryCodeEnum_1 = require("./CountryCodeEnum");
18
+ /**
19
+ * Check if a given object implements the DetailedCountry interface.
20
+ */
21
+ function instanceOfDetailedCountry(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "code" in value;
24
+ isInstance = isInstance && "name" in value;
25
+ return isInstance;
26
+ }
27
+ exports.instanceOfDetailedCountry = instanceOfDetailedCountry;
28
+ function DetailedCountryFromJSON(json) {
29
+ return DetailedCountryFromJSONTyped(json, false);
30
+ }
31
+ exports.DetailedCountryFromJSON = DetailedCountryFromJSON;
32
+ function DetailedCountryFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'code': (0, CountryCodeEnum_1.CountryCodeEnumFromJSON)(json['code']),
38
+ 'name': json['name'],
39
+ };
40
+ }
41
+ exports.DetailedCountryFromJSONTyped = DetailedCountryFromJSONTyped;
42
+ function DetailedCountryToJSON(value) {
43
+ if (value === undefined) {
44
+ return undefined;
45
+ }
46
+ if (value === null) {
47
+ return null;
48
+ }
49
+ return {
50
+ 'code': (0, CountryCodeEnum_1.CountryCodeEnumToJSON)(value.code),
51
+ 'name': value.name,
52
+ };
53
+ }
54
+ exports.DetailedCountryToJSON = DetailedCountryToJSON;
@@ -0,0 +1,38 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.6.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 { CountryCodeEnum } from './CountryCodeEnum';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface DetailedCountryField
17
+ */
18
+ export interface DetailedCountryField {
19
+ /**
20
+ *
21
+ * @type {CountryCodeEnum}
22
+ * @memberof DetailedCountryField
23
+ */
24
+ code: CountryCodeEnum;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof DetailedCountryField
29
+ */
30
+ name: string;
31
+ }
32
+ /**
33
+ * Check if a given object implements the DetailedCountryField interface.
34
+ */
35
+ export declare function instanceOfDetailedCountryField(value: object): boolean;
36
+ export declare function DetailedCountryFieldFromJSON(json: any): DetailedCountryField;
37
+ export declare function DetailedCountryFieldFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetailedCountryField;
38
+ export declare function DetailedCountryFieldToJSON(value?: DetailedCountryField | null): any;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2024.6.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.DetailedCountryFieldToJSON = exports.DetailedCountryFieldFromJSONTyped = exports.DetailedCountryFieldFromJSON = exports.instanceOfDetailedCountryField = void 0;
17
+ const CountryCodeEnum_1 = require("./CountryCodeEnum");
18
+ /**
19
+ * Check if a given object implements the DetailedCountryField interface.
20
+ */
21
+ function instanceOfDetailedCountryField(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "code" in value;
24
+ isInstance = isInstance && "name" in value;
25
+ return isInstance;
26
+ }
27
+ exports.instanceOfDetailedCountryField = instanceOfDetailedCountryField;
28
+ function DetailedCountryFieldFromJSON(json) {
29
+ return DetailedCountryFieldFromJSONTyped(json, false);
30
+ }
31
+ exports.DetailedCountryFieldFromJSON = DetailedCountryFieldFromJSON;
32
+ function DetailedCountryFieldFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'code': (0, CountryCodeEnum_1.CountryCodeEnumFromJSON)(json['code']),
38
+ 'name': json['name'],
39
+ };
40
+ }
41
+ exports.DetailedCountryFieldFromJSONTyped = DetailedCountryFieldFromJSONTyped;
42
+ function DetailedCountryFieldToJSON(value) {
43
+ if (value === undefined) {
44
+ return undefined;
45
+ }
46
+ if (value === null) {
47
+ return null;
48
+ }
49
+ return {
50
+ 'code': (0, CountryCodeEnum_1.CountryCodeEnumToJSON)(value.code),
51
+ 'name': value.name,
52
+ };
53
+ }
54
+ exports.DetailedCountryFieldToJSON = DetailedCountryFieldToJSON;
@@ -0,0 +1,38 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.6.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 { CountryCodeEnum } from './CountryCodeEnum';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface DetailedCountryFieldRequest
17
+ */
18
+ export interface DetailedCountryFieldRequest {
19
+ /**
20
+ *
21
+ * @type {CountryCodeEnum}
22
+ * @memberof DetailedCountryFieldRequest
23
+ */
24
+ code: CountryCodeEnum;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof DetailedCountryFieldRequest
29
+ */
30
+ name: string;
31
+ }
32
+ /**
33
+ * Check if a given object implements the DetailedCountryFieldRequest interface.
34
+ */
35
+ export declare function instanceOfDetailedCountryFieldRequest(value: object): boolean;
36
+ export declare function DetailedCountryFieldRequestFromJSON(json: any): DetailedCountryFieldRequest;
37
+ export declare function DetailedCountryFieldRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetailedCountryFieldRequest;
38
+ export declare function DetailedCountryFieldRequestToJSON(value?: DetailedCountryFieldRequest | null): any;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2024.6.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.DetailedCountryFieldRequestToJSON = exports.DetailedCountryFieldRequestFromJSONTyped = exports.DetailedCountryFieldRequestFromJSON = exports.instanceOfDetailedCountryFieldRequest = void 0;
17
+ const CountryCodeEnum_1 = require("./CountryCodeEnum");
18
+ /**
19
+ * Check if a given object implements the DetailedCountryFieldRequest interface.
20
+ */
21
+ function instanceOfDetailedCountryFieldRequest(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "code" in value;
24
+ isInstance = isInstance && "name" in value;
25
+ return isInstance;
26
+ }
27
+ exports.instanceOfDetailedCountryFieldRequest = instanceOfDetailedCountryFieldRequest;
28
+ function DetailedCountryFieldRequestFromJSON(json) {
29
+ return DetailedCountryFieldRequestFromJSONTyped(json, false);
30
+ }
31
+ exports.DetailedCountryFieldRequestFromJSON = DetailedCountryFieldRequestFromJSON;
32
+ function DetailedCountryFieldRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'code': (0, CountryCodeEnum_1.CountryCodeEnumFromJSON)(json['code']),
38
+ 'name': json['name'],
39
+ };
40
+ }
41
+ exports.DetailedCountryFieldRequestFromJSONTyped = DetailedCountryFieldRequestFromJSONTyped;
42
+ function DetailedCountryFieldRequestToJSON(value) {
43
+ if (value === undefined) {
44
+ return undefined;
45
+ }
46
+ if (value === null) {
47
+ return null;
48
+ }
49
+ return {
50
+ 'code': (0, CountryCodeEnum_1.CountryCodeEnumToJSON)(value.code),
51
+ 'name': value.name,
52
+ };
53
+ }
54
+ exports.DetailedCountryFieldRequestToJSON = DetailedCountryFieldRequestToJSON;
@@ -0,0 +1,93 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.6.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 { CountryCodeEnum } from './CountryCodeEnum';
13
+ import type { DetailedCountryField } from './DetailedCountryField';
14
+ /**
15
+ * GeoIP Policy Serializer
16
+ * @export
17
+ * @interface GeoIPPolicy
18
+ */
19
+ export interface GeoIPPolicy {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof GeoIPPolicy
24
+ */
25
+ readonly pk: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof GeoIPPolicy
30
+ */
31
+ name: string;
32
+ /**
33
+ * When this option is enabled, all executions of this policy will be logged. By default, only execution errors are logged.
34
+ * @type {boolean}
35
+ * @memberof GeoIPPolicy
36
+ */
37
+ executionLogging?: boolean;
38
+ /**
39
+ * Get object component so that we know how to edit the object
40
+ * @type {string}
41
+ * @memberof GeoIPPolicy
42
+ */
43
+ readonly component: string;
44
+ /**
45
+ * Return object's verbose_name
46
+ * @type {string}
47
+ * @memberof GeoIPPolicy
48
+ */
49
+ readonly verboseName: string;
50
+ /**
51
+ * Return object's plural verbose_name
52
+ * @type {string}
53
+ * @memberof GeoIPPolicy
54
+ */
55
+ readonly verboseNamePlural: string;
56
+ /**
57
+ * Return internal model name
58
+ * @type {string}
59
+ * @memberof GeoIPPolicy
60
+ */
61
+ readonly metaModelName: string;
62
+ /**
63
+ * Return objects policy is bound to
64
+ * @type {number}
65
+ * @memberof GeoIPPolicy
66
+ */
67
+ readonly boundTo: number;
68
+ /**
69
+ *
70
+ * @type {Array<number>}
71
+ * @memberof GeoIPPolicy
72
+ */
73
+ asns?: Array<number>;
74
+ /**
75
+ *
76
+ * @type {Array<CountryCodeEnum>}
77
+ * @memberof GeoIPPolicy
78
+ */
79
+ countries: Array<CountryCodeEnum>;
80
+ /**
81
+ *
82
+ * @type {Array<DetailedCountryField>}
83
+ * @memberof GeoIPPolicy
84
+ */
85
+ readonly countriesObj: Array<DetailedCountryField>;
86
+ }
87
+ /**
88
+ * Check if a given object implements the GeoIPPolicy interface.
89
+ */
90
+ export declare function instanceOfGeoIPPolicy(value: object): boolean;
91
+ export declare function GeoIPPolicyFromJSON(json: any): GeoIPPolicy;
92
+ export declare function GeoIPPolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): GeoIPPolicy;
93
+ export declare function GeoIPPolicyToJSON(value?: GeoIPPolicy | null): any;