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