@goauthentik/api 2023.10.7-1707429127 → 2023.10.7-1707933453

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/dist/apis/RacApi.d.ts +75 -1
  3. package/dist/apis/RacApi.js +210 -0
  4. package/dist/esm/apis/RacApi.d.ts +75 -1
  5. package/dist/esm/apis/RacApi.js +211 -1
  6. package/dist/esm/models/ConnectionToken.d.ts +64 -0
  7. package/dist/esm/models/ConnectionToken.js +56 -0
  8. package/dist/esm/models/ConnectionTokenRequest.d.ts +31 -0
  9. package/dist/esm/models/ConnectionTokenRequest.js +43 -0
  10. package/dist/esm/models/PaginatedConnectionTokenList.d.ts +39 -0
  11. package/dist/esm/models/PaginatedConnectionTokenList.js +48 -0
  12. package/dist/esm/models/PatchedConnectionTokenRequest.d.ts +31 -0
  13. package/dist/esm/models/PatchedConnectionTokenRequest.js +43 -0
  14. package/dist/esm/models/PatchedRACProviderRequest.d.ts +6 -0
  15. package/dist/esm/models/PatchedRACProviderRequest.js +2 -0
  16. package/dist/esm/models/RACProvider.d.ts +6 -0
  17. package/dist/esm/models/RACProvider.js +2 -0
  18. package/dist/esm/models/RACProviderRequest.d.ts +6 -0
  19. package/dist/esm/models/RACProviderRequest.js +2 -0
  20. package/dist/esm/models/index.d.ts +4 -0
  21. package/dist/esm/models/index.js +4 -0
  22. package/dist/models/ConnectionToken.d.ts +64 -0
  23. package/dist/models/ConnectionToken.js +63 -0
  24. package/dist/models/ConnectionTokenRequest.d.ts +31 -0
  25. package/dist/models/ConnectionTokenRequest.js +50 -0
  26. package/dist/models/PaginatedConnectionTokenList.d.ts +39 -0
  27. package/dist/models/PaginatedConnectionTokenList.js +55 -0
  28. package/dist/models/PatchedConnectionTokenRequest.d.ts +31 -0
  29. package/dist/models/PatchedConnectionTokenRequest.js +50 -0
  30. package/dist/models/PatchedRACProviderRequest.d.ts +6 -0
  31. package/dist/models/PatchedRACProviderRequest.js +2 -0
  32. package/dist/models/RACProvider.d.ts +6 -0
  33. package/dist/models/RACProvider.js +2 -0
  34. package/dist/models/RACProviderRequest.d.ts +6 -0
  35. package/dist/models/RACProviderRequest.js +2 -0
  36. package/dist/models/index.d.ts +4 -0
  37. package/dist/models/index.js +4 -0
  38. package/package.json +1 -1
  39. package/src/apis/RacApi.ts +281 -0
  40. package/src/models/ConnectionToken.ts +125 -0
  41. package/src/models/ConnectionTokenRequest.ts +66 -0
  42. package/src/models/PaginatedConnectionTokenList.ts +88 -0
  43. package/src/models/PatchedConnectionTokenRequest.ts +65 -0
  44. package/src/models/PatchedRACProviderRequest.ts +8 -0
  45. package/src/models/RACProvider.ts +8 -0
  46. package/src/models/RACProviderRequest.ts +8 -0
  47. package/src/models/index.ts +4 -0
@@ -0,0 +1,50 @@
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.7
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.ConnectionTokenRequestToJSON = exports.ConnectionTokenRequestFromJSONTyped = exports.ConnectionTokenRequestFromJSON = exports.instanceOfConnectionTokenRequest = void 0;
17
+ /**
18
+ * Check if a given object implements the ConnectionTokenRequest interface.
19
+ */
20
+ function instanceOfConnectionTokenRequest(value) {
21
+ let isInstance = true;
22
+ isInstance = isInstance && "provider" in value;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfConnectionTokenRequest = instanceOfConnectionTokenRequest;
26
+ function ConnectionTokenRequestFromJSON(json) {
27
+ return ConnectionTokenRequestFromJSONTyped(json, false);
28
+ }
29
+ exports.ConnectionTokenRequestFromJSON = ConnectionTokenRequestFromJSON;
30
+ function ConnectionTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'provider': json['provider'],
36
+ };
37
+ }
38
+ exports.ConnectionTokenRequestFromJSONTyped = ConnectionTokenRequestFromJSONTyped;
39
+ function ConnectionTokenRequestToJSON(value) {
40
+ if (value === undefined) {
41
+ return undefined;
42
+ }
43
+ if (value === null) {
44
+ return null;
45
+ }
46
+ return {
47
+ 'provider': value.provider,
48
+ };
49
+ }
50
+ exports.ConnectionTokenRequestToJSON = ConnectionTokenRequestToJSON;
@@ -0,0 +1,39 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2023.10.7
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 { ConnectionToken } from './ConnectionToken';
13
+ import type { Pagination } from './Pagination';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedConnectionTokenList
18
+ */
19
+ export interface PaginatedConnectionTokenList {
20
+ /**
21
+ *
22
+ * @type {Pagination}
23
+ * @memberof PaginatedConnectionTokenList
24
+ */
25
+ pagination: Pagination;
26
+ /**
27
+ *
28
+ * @type {Array<ConnectionToken>}
29
+ * @memberof PaginatedConnectionTokenList
30
+ */
31
+ results: Array<ConnectionToken>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedConnectionTokenList interface.
35
+ */
36
+ export declare function instanceOfPaginatedConnectionTokenList(value: object): boolean;
37
+ export declare function PaginatedConnectionTokenListFromJSON(json: any): PaginatedConnectionTokenList;
38
+ export declare function PaginatedConnectionTokenListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedConnectionTokenList;
39
+ export declare function PaginatedConnectionTokenListToJSON(value?: PaginatedConnectionTokenList | null): any;
@@ -0,0 +1,55 @@
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.7
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.PaginatedConnectionTokenListToJSON = exports.PaginatedConnectionTokenListFromJSONTyped = exports.PaginatedConnectionTokenListFromJSON = exports.instanceOfPaginatedConnectionTokenList = void 0;
17
+ const ConnectionToken_1 = require("./ConnectionToken");
18
+ const Pagination_1 = require("./Pagination");
19
+ /**
20
+ * Check if a given object implements the PaginatedConnectionTokenList interface.
21
+ */
22
+ function instanceOfPaginatedConnectionTokenList(value) {
23
+ let isInstance = true;
24
+ isInstance = isInstance && "pagination" in value;
25
+ isInstance = isInstance && "results" in value;
26
+ return isInstance;
27
+ }
28
+ exports.instanceOfPaginatedConnectionTokenList = instanceOfPaginatedConnectionTokenList;
29
+ function PaginatedConnectionTokenListFromJSON(json) {
30
+ return PaginatedConnectionTokenListFromJSONTyped(json, false);
31
+ }
32
+ exports.PaginatedConnectionTokenListFromJSON = PaginatedConnectionTokenListFromJSON;
33
+ function PaginatedConnectionTokenListFromJSONTyped(json, ignoreDiscriminator) {
34
+ if ((json === undefined) || (json === null)) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'pagination': (0, Pagination_1.PaginationFromJSON)(json['pagination']),
39
+ 'results': (json['results'].map(ConnectionToken_1.ConnectionTokenFromJSON)),
40
+ };
41
+ }
42
+ exports.PaginatedConnectionTokenListFromJSONTyped = PaginatedConnectionTokenListFromJSONTyped;
43
+ function PaginatedConnectionTokenListToJSON(value) {
44
+ if (value === undefined) {
45
+ return undefined;
46
+ }
47
+ if (value === null) {
48
+ return null;
49
+ }
50
+ return {
51
+ 'pagination': (0, Pagination_1.PaginationToJSON)(value.pagination),
52
+ 'results': (value.results.map(ConnectionToken_1.ConnectionTokenToJSON)),
53
+ };
54
+ }
55
+ exports.PaginatedConnectionTokenListToJSON = PaginatedConnectionTokenListToJSON;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2023.10.7
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
+ * ConnectionToken Serializer
14
+ * @export
15
+ * @interface PatchedConnectionTokenRequest
16
+ */
17
+ export interface PatchedConnectionTokenRequest {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof PatchedConnectionTokenRequest
22
+ */
23
+ provider?: number;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PatchedConnectionTokenRequest interface.
27
+ */
28
+ export declare function instanceOfPatchedConnectionTokenRequest(value: object): boolean;
29
+ export declare function PatchedConnectionTokenRequestFromJSON(json: any): PatchedConnectionTokenRequest;
30
+ export declare function PatchedConnectionTokenRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedConnectionTokenRequest;
31
+ export declare function PatchedConnectionTokenRequestToJSON(value?: PatchedConnectionTokenRequest | null): any;
@@ -0,0 +1,50 @@
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.7
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.PatchedConnectionTokenRequestToJSON = exports.PatchedConnectionTokenRequestFromJSONTyped = exports.PatchedConnectionTokenRequestFromJSON = exports.instanceOfPatchedConnectionTokenRequest = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the PatchedConnectionTokenRequest interface.
20
+ */
21
+ function instanceOfPatchedConnectionTokenRequest(value) {
22
+ let isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfPatchedConnectionTokenRequest = instanceOfPatchedConnectionTokenRequest;
26
+ function PatchedConnectionTokenRequestFromJSON(json) {
27
+ return PatchedConnectionTokenRequestFromJSONTyped(json, false);
28
+ }
29
+ exports.PatchedConnectionTokenRequestFromJSON = PatchedConnectionTokenRequestFromJSON;
30
+ function PatchedConnectionTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'provider': !(0, runtime_1.exists)(json, 'provider') ? undefined : json['provider'],
36
+ };
37
+ }
38
+ exports.PatchedConnectionTokenRequestFromJSONTyped = PatchedConnectionTokenRequestFromJSONTyped;
39
+ function PatchedConnectionTokenRequestToJSON(value) {
40
+ if (value === undefined) {
41
+ return undefined;
42
+ }
43
+ if (value === null) {
44
+ return null;
45
+ }
46
+ return {
47
+ 'provider': value.provider,
48
+ };
49
+ }
50
+ exports.PatchedConnectionTokenRequestToJSON = PatchedConnectionTokenRequestToJSON;
@@ -51,6 +51,12 @@ export interface PatchedRACProviderRequest {
51
51
  * @memberof PatchedRACProviderRequest
52
52
  */
53
53
  connectionExpiry?: string;
54
+ /**
55
+ * When set to true, connection tokens will be deleted upon disconnect.
56
+ * @type {boolean}
57
+ * @memberof PatchedRACProviderRequest
58
+ */
59
+ deleteTokenOnDisconnect?: boolean;
54
60
  }
55
61
  /**
56
62
  * Check if a given object implements the PatchedRACProviderRequest interface.
@@ -38,6 +38,7 @@ function PatchedRACProviderRequestFromJSONTyped(json, ignoreDiscriminator) {
38
38
  'propertyMappings': !(0, runtime_1.exists)(json, 'property_mappings') ? undefined : json['property_mappings'],
39
39
  'settings': !(0, runtime_1.exists)(json, 'settings') ? undefined : json['settings'],
40
40
  'connectionExpiry': !(0, runtime_1.exists)(json, 'connection_expiry') ? undefined : json['connection_expiry'],
41
+ 'deleteTokenOnDisconnect': !(0, runtime_1.exists)(json, 'delete_token_on_disconnect') ? undefined : json['delete_token_on_disconnect'],
41
42
  };
42
43
  }
43
44
  exports.PatchedRACProviderRequestFromJSONTyped = PatchedRACProviderRequestFromJSONTyped;
@@ -55,6 +56,7 @@ function PatchedRACProviderRequestToJSON(value) {
55
56
  'property_mappings': value.propertyMappings,
56
57
  'settings': value.settings,
57
58
  'connection_expiry': value.connectionExpiry,
59
+ 'delete_token_on_disconnect': value.deleteTokenOnDisconnect,
58
60
  };
59
61
  }
60
62
  exports.PatchedRACProviderRequestToJSON = PatchedRACProviderRequestToJSON;
@@ -111,6 +111,12 @@ export interface RACProvider {
111
111
  * @memberof RACProvider
112
112
  */
113
113
  connectionExpiry?: string;
114
+ /**
115
+ * When set to true, connection tokens will be deleted upon disconnect.
116
+ * @type {boolean}
117
+ * @memberof RACProvider
118
+ */
119
+ deleteTokenOnDisconnect?: boolean;
114
120
  }
115
121
  /**
116
122
  * Check if a given object implements the RACProvider interface.
@@ -60,6 +60,7 @@ function RACProviderFromJSONTyped(json, ignoreDiscriminator) {
60
60
  'settings': !(0, runtime_1.exists)(json, 'settings') ? undefined : json['settings'],
61
61
  'outpostSet': json['outpost_set'],
62
62
  'connectionExpiry': !(0, runtime_1.exists)(json, 'connection_expiry') ? undefined : json['connection_expiry'],
63
+ 'deleteTokenOnDisconnect': !(0, runtime_1.exists)(json, 'delete_token_on_disconnect') ? undefined : json['delete_token_on_disconnect'],
63
64
  };
64
65
  }
65
66
  exports.RACProviderFromJSONTyped = RACProviderFromJSONTyped;
@@ -77,6 +78,7 @@ function RACProviderToJSON(value) {
77
78
  'property_mappings': value.propertyMappings,
78
79
  'settings': value.settings,
79
80
  'connection_expiry': value.connectionExpiry,
81
+ 'delete_token_on_disconnect': value.deleteTokenOnDisconnect,
80
82
  };
81
83
  }
82
84
  exports.RACProviderToJSON = RACProviderToJSON;
@@ -51,6 +51,12 @@ export interface RACProviderRequest {
51
51
  * @memberof RACProviderRequest
52
52
  */
53
53
  connectionExpiry?: string;
54
+ /**
55
+ * When set to true, connection tokens will be deleted upon disconnect.
56
+ * @type {boolean}
57
+ * @memberof RACProviderRequest
58
+ */
59
+ deleteTokenOnDisconnect?: boolean;
54
60
  }
55
61
  /**
56
62
  * Check if a given object implements the RACProviderRequest interface.
@@ -40,6 +40,7 @@ function RACProviderRequestFromJSONTyped(json, ignoreDiscriminator) {
40
40
  'propertyMappings': !(0, runtime_1.exists)(json, 'property_mappings') ? undefined : json['property_mappings'],
41
41
  'settings': !(0, runtime_1.exists)(json, 'settings') ? undefined : json['settings'],
42
42
  'connectionExpiry': !(0, runtime_1.exists)(json, 'connection_expiry') ? undefined : json['connection_expiry'],
43
+ 'deleteTokenOnDisconnect': !(0, runtime_1.exists)(json, 'delete_token_on_disconnect') ? undefined : json['delete_token_on_disconnect'],
43
44
  };
44
45
  }
45
46
  exports.RACProviderRequestFromJSONTyped = RACProviderRequestFromJSONTyped;
@@ -57,6 +58,7 @@ function RACProviderRequestToJSON(value) {
57
58
  'property_mappings': value.propertyMappings,
58
59
  'settings': value.settings,
59
60
  'connection_expiry': value.connectionExpiry,
61
+ 'delete_token_on_disconnect': value.deleteTokenOnDisconnect,
60
62
  };
61
63
  }
62
64
  exports.RACProviderRequestToJSON = RACProviderRequestToJSON;
@@ -66,6 +66,8 @@ export * from './ChallengeChoices';
66
66
  export * from './ChallengeTypes';
67
67
  export * from './ClientTypeEnum';
68
68
  export * from './Config';
69
+ export * from './ConnectionToken';
70
+ export * from './ConnectionTokenRequest';
69
71
  export * from './ConsentChallenge';
70
72
  export * from './ConsentChallengeResponseRequest';
71
73
  export * from './ConsentPermission';
@@ -215,6 +217,7 @@ export * from './PaginatedBlueprintInstanceList';
215
217
  export * from './PaginatedBrandList';
216
218
  export * from './PaginatedCaptchaStageList';
217
219
  export * from './PaginatedCertificateKeyPairList';
220
+ export * from './PaginatedConnectionTokenList';
218
221
  export * from './PaginatedConsentStageList';
219
222
  export * from './PaginatedDenyStageList';
220
223
  export * from './PaginatedDockerServiceConnectionList';
@@ -318,6 +321,7 @@ export * from './PatchedBlueprintInstanceRequest';
318
321
  export * from './PatchedBrandRequest';
319
322
  export * from './PatchedCaptchaStageRequest';
320
323
  export * from './PatchedCertificateKeyPairRequest';
324
+ export * from './PatchedConnectionTokenRequest';
321
325
  export * from './PatchedConsentStageRequest';
322
326
  export * from './PatchedDenyStageRequest';
323
327
  export * from './PatchedDockerServiceConnectionRequest';
@@ -84,6 +84,8 @@ __exportStar(require("./ChallengeChoices"), exports);
84
84
  __exportStar(require("./ChallengeTypes"), exports);
85
85
  __exportStar(require("./ClientTypeEnum"), exports);
86
86
  __exportStar(require("./Config"), exports);
87
+ __exportStar(require("./ConnectionToken"), exports);
88
+ __exportStar(require("./ConnectionTokenRequest"), exports);
87
89
  __exportStar(require("./ConsentChallenge"), exports);
88
90
  __exportStar(require("./ConsentChallengeResponseRequest"), exports);
89
91
  __exportStar(require("./ConsentPermission"), exports);
@@ -233,6 +235,7 @@ __exportStar(require("./PaginatedBlueprintInstanceList"), exports);
233
235
  __exportStar(require("./PaginatedBrandList"), exports);
234
236
  __exportStar(require("./PaginatedCaptchaStageList"), exports);
235
237
  __exportStar(require("./PaginatedCertificateKeyPairList"), exports);
238
+ __exportStar(require("./PaginatedConnectionTokenList"), exports);
236
239
  __exportStar(require("./PaginatedConsentStageList"), exports);
237
240
  __exportStar(require("./PaginatedDenyStageList"), exports);
238
241
  __exportStar(require("./PaginatedDockerServiceConnectionList"), exports);
@@ -336,6 +339,7 @@ __exportStar(require("./PatchedBlueprintInstanceRequest"), exports);
336
339
  __exportStar(require("./PatchedBrandRequest"), exports);
337
340
  __exportStar(require("./PatchedCaptchaStageRequest"), exports);
338
341
  __exportStar(require("./PatchedCertificateKeyPairRequest"), exports);
342
+ __exportStar(require("./PatchedConnectionTokenRequest"), exports);
339
343
  __exportStar(require("./PatchedConsentStageRequest"), exports);
340
344
  __exportStar(require("./PatchedDenyStageRequest"), exports);
341
345
  __exportStar(require("./PatchedDockerServiceConnectionRequest"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2023.10.7-1707429127",
3
+ "version": "2023.10.7-1707933453",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {