@goauthentik/api 2023.1.2-1675005330 → 2023.1.2-1675529778

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.
@@ -37,6 +37,14 @@ export declare class AdminApi extends runtime.BaseAPI {
37
37
  * Login Metrics per 1h
38
38
  */
39
39
  adminMetricsRetrieve(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<LoginMetrics>;
40
+ /**
41
+ * Get system information.
42
+ */
43
+ adminSystemCreateRaw(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<System>>;
44
+ /**
45
+ * Get system information.
46
+ */
47
+ adminSystemCreate(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<System>;
40
48
  /**
41
49
  * Get system information.
42
50
  */
@@ -85,6 +85,34 @@ class AdminApi extends runtime.BaseAPI {
85
85
  return yield response.value();
86
86
  });
87
87
  }
88
+ /**
89
+ * Get system information.
90
+ */
91
+ adminSystemCreateRaw(initOverrides) {
92
+ return __awaiter(this, void 0, void 0, function* () {
93
+ const queryParameters = {};
94
+ const headerParameters = {};
95
+ if (this.configuration && this.configuration.apiKey) {
96
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
97
+ }
98
+ const response = yield this.request({
99
+ path: `/admin/system/`,
100
+ method: 'POST',
101
+ headers: headerParameters,
102
+ query: queryParameters,
103
+ }, initOverrides);
104
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.SystemFromJSON)(jsonValue));
105
+ });
106
+ }
107
+ /**
108
+ * Get system information.
109
+ */
110
+ adminSystemCreate(initOverrides) {
111
+ return __awaiter(this, void 0, void 0, function* () {
112
+ const response = yield this.adminSystemCreateRaw(initOverrides);
113
+ return yield response.value();
114
+ });
115
+ }
88
116
  /**
89
117
  * Get system information.
90
118
  */
@@ -37,6 +37,14 @@ export declare class AdminApi extends runtime.BaseAPI {
37
37
  * Login Metrics per 1h
38
38
  */
39
39
  adminMetricsRetrieve(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<LoginMetrics>;
40
+ /**
41
+ * Get system information.
42
+ */
43
+ adminSystemCreateRaw(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<System>>;
44
+ /**
45
+ * Get system information.
46
+ */
47
+ adminSystemCreate(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<System>;
40
48
  /**
41
49
  * Get system information.
42
50
  */
@@ -82,6 +82,34 @@ export class AdminApi extends runtime.BaseAPI {
82
82
  return yield response.value();
83
83
  });
84
84
  }
85
+ /**
86
+ * Get system information.
87
+ */
88
+ adminSystemCreateRaw(initOverrides) {
89
+ return __awaiter(this, void 0, void 0, function* () {
90
+ const queryParameters = {};
91
+ const headerParameters = {};
92
+ if (this.configuration && this.configuration.apiKey) {
93
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
94
+ }
95
+ const response = yield this.request({
96
+ path: `/admin/system/`,
97
+ method: 'POST',
98
+ headers: headerParameters,
99
+ query: queryParameters,
100
+ }, initOverrides);
101
+ return new runtime.JSONApiResponse(response, (jsonValue) => SystemFromJSON(jsonValue));
102
+ });
103
+ }
104
+ /**
105
+ * Get system information.
106
+ */
107
+ adminSystemCreate(initOverrides) {
108
+ return __awaiter(this, void 0, void 0, function* () {
109
+ const response = yield this.adminSystemCreateRaw(initOverrides);
110
+ return yield response.value();
111
+ });
112
+ }
85
113
  /**
86
114
  * Get system information.
87
115
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2023.1.2-1675005330",
3
+ "version": "2023.1.2-1675529778",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -114,6 +114,36 @@ export class AdminApi extends runtime.BaseAPI {
114
114
  return await response.value();
115
115
  }
116
116
 
117
+ /**
118
+ * Get system information.
119
+ */
120
+ async adminSystemCreateRaw(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<System>> {
121
+ const queryParameters: any = {};
122
+
123
+ const headerParameters: runtime.HTTPHeaders = {};
124
+
125
+ if (this.configuration && this.configuration.apiKey) {
126
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
127
+ }
128
+
129
+ const response = await this.request({
130
+ path: `/admin/system/`,
131
+ method: 'POST',
132
+ headers: headerParameters,
133
+ query: queryParameters,
134
+ }, initOverrides);
135
+
136
+ return new runtime.JSONApiResponse(response, (jsonValue) => SystemFromJSON(jsonValue));
137
+ }
138
+
139
+ /**
140
+ * Get system information.
141
+ */
142
+ async adminSystemCreate(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<System> {
143
+ const response = await this.adminSystemCreateRaw(initOverrides);
144
+ return await response.value();
145
+ }
146
+
117
147
  /**
118
148
  * Get system information.
119
149
  */