@goauthentik/api 2022.9.0-1665755308 → 2022.9.0-1666123490

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 (42) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/dist/apis/FlowsApi.d.ts +4 -4
  3. package/dist/apis/FlowsApi.js +6 -5
  4. package/dist/apis/SourcesApi.d.ts +84 -1
  5. package/dist/apis/SourcesApi.js +237 -0
  6. package/dist/esm/apis/FlowsApi.d.ts +4 -4
  7. package/dist/esm/apis/FlowsApi.js +7 -6
  8. package/dist/esm/apis/SourcesApi.d.ts +84 -1
  9. package/dist/esm/apis/SourcesApi.js +238 -1
  10. package/dist/esm/models/FlowImportResult.d.ts +35 -0
  11. package/dist/esm/models/FlowImportResult.js +34 -0
  12. package/dist/esm/models/PaginatedUserSAMLSourceConnectionList.d.ts +35 -0
  13. package/dist/esm/models/PaginatedUserSAMLSourceConnectionList.js +39 -0
  14. package/dist/esm/models/PatchedUserSAMLSourceConnectionRequest.d.ts +33 -0
  15. package/dist/esm/models/PatchedUserSAMLSourceConnectionRequest.js +38 -0
  16. package/dist/esm/models/UserSAMLSourceConnection.d.ts +46 -0
  17. package/dist/esm/models/UserSAMLSourceConnection.js +41 -0
  18. package/dist/esm/models/UserSAMLSourceConnectionRequest.d.ts +33 -0
  19. package/dist/esm/models/UserSAMLSourceConnectionRequest.js +37 -0
  20. package/dist/esm/models/index.d.ts +5 -0
  21. package/dist/esm/models/index.js +5 -0
  22. package/dist/models/FlowImportResult.d.ts +35 -0
  23. package/dist/models/FlowImportResult.js +40 -0
  24. package/dist/models/PaginatedUserSAMLSourceConnectionList.d.ts +35 -0
  25. package/dist/models/PaginatedUserSAMLSourceConnectionList.js +45 -0
  26. package/dist/models/PatchedUserSAMLSourceConnectionRequest.d.ts +33 -0
  27. package/dist/models/PatchedUserSAMLSourceConnectionRequest.js +44 -0
  28. package/dist/models/UserSAMLSourceConnection.d.ts +46 -0
  29. package/dist/models/UserSAMLSourceConnection.js +47 -0
  30. package/dist/models/UserSAMLSourceConnectionRequest.d.ts +33 -0
  31. package/dist/models/UserSAMLSourceConnectionRequest.js +43 -0
  32. package/dist/models/index.d.ts +5 -0
  33. package/dist/models/index.js +5 -0
  34. package/package.json +1 -1
  35. package/src/apis/FlowsApi.ts +10 -6
  36. package/src/apis/SourcesApi.ts +312 -0
  37. package/src/models/FlowImportResult.ts +62 -0
  38. package/src/models/PaginatedUserSAMLSourceConnectionList.ts +77 -0
  39. package/src/models/PatchedUserSAMLSourceConnectionRequest.ts +64 -0
  40. package/src/models/UserSAMLSourceConnection.ts +86 -0
  41. package/src/models/UserSAMLSourceConnectionRequest.ts +64 -0
  42. package/src/models/index.ts +5 -0
@@ -136,6 +136,7 @@ src/models/FlowChallengeResponseRequest.ts
136
136
  src/models/FlowDesignationEnum.ts
137
137
  src/models/FlowDiagram.ts
138
138
  src/models/FlowErrorChallenge.ts
139
+ src/models/FlowImportResult.ts
139
140
  src/models/FlowInspection.ts
140
141
  src/models/FlowInspectorPlan.ts
141
142
  src/models/FlowInspectorPlanCurrentStage.ts
@@ -285,6 +286,7 @@ src/models/PaginatedUserList.ts
285
286
  src/models/PaginatedUserLoginStageList.ts
286
287
  src/models/PaginatedUserLogoutStageList.ts
287
288
  src/models/PaginatedUserOAuthSourceConnectionList.ts
289
+ src/models/PaginatedUserSAMLSourceConnectionList.ts
288
290
  src/models/PaginatedUserSourceConnectionList.ts
289
291
  src/models/PaginatedUserWriteStageList.ts
290
292
  src/models/PaginatedWebAuthnDeviceList.ts
@@ -358,6 +360,7 @@ src/models/PatchedUserLoginStageRequest.ts
358
360
  src/models/PatchedUserLogoutStageRequest.ts
359
361
  src/models/PatchedUserOAuthSourceConnectionRequest.ts
360
362
  src/models/PatchedUserRequest.ts
363
+ src/models/PatchedUserSAMLSourceConnectionRequest.ts
361
364
  src/models/PatchedUserWriteStageRequest.ts
362
365
  src/models/PatchedWebAuthnDeviceRequest.ts
363
366
  src/models/Permission.ts
@@ -464,6 +467,8 @@ src/models/UserOAuthSourceConnectionRequest.ts
464
467
  src/models/UserPasswordSetRequest.ts
465
468
  src/models/UserPath.ts
466
469
  src/models/UserRequest.ts
470
+ src/models/UserSAMLSourceConnection.ts
471
+ src/models/UserSAMLSourceConnectionRequest.ts
467
472
  src/models/UserSelf.ts
468
473
  src/models/UserSelfGroups.ts
469
474
  src/models/UserServiceAccountRequest.ts
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { Cache, ChallengeTypes, FilePathRequest, Flow, FlowChallengeResponseRequest, FlowDiagram, FlowInspection, FlowRequest, FlowStageBinding, FlowStageBindingRequest, Link, PaginatedFlowList, PaginatedFlowStageBindingList, PatchedFlowRequest, PatchedFlowStageBindingRequest, UsedBy } from '../models';
13
+ import { Cache, ChallengeTypes, FilePathRequest, Flow, FlowChallengeResponseRequest, FlowDiagram, FlowImportResult, FlowInspection, FlowRequest, FlowStageBinding, FlowStageBindingRequest, Link, PaginatedFlowList, PaginatedFlowStageBindingList, PatchedFlowRequest, PatchedFlowStageBindingRequest, UsedBy } from '../models';
14
14
  export interface FlowsBindingsCreateRequest {
15
15
  flowStageBindingRequest: FlowStageBindingRequest;
16
16
  }
@@ -74,7 +74,7 @@ export interface FlowsInstancesExecuteRetrieveRequest {
74
74
  export interface FlowsInstancesExportRetrieveRequest {
75
75
  slug: string;
76
76
  }
77
- export interface FlowsInstancesImportFlowCreateRequest {
77
+ export interface FlowsInstancesImportCreateRequest {
78
78
  file?: Blob;
79
79
  clear?: boolean;
80
80
  }
@@ -255,11 +255,11 @@ export declare class FlowsApi extends runtime.BaseAPI {
255
255
  /**
256
256
  * Import flow from .yaml file
257
257
  */
258
- flowsInstancesImportFlowCreateRaw(requestParameters: FlowsInstancesImportFlowCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<void>>;
258
+ flowsInstancesImportCreateRaw(requestParameters: FlowsInstancesImportCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<FlowImportResult>>;
259
259
  /**
260
260
  * Import flow from .yaml file
261
261
  */
262
- flowsInstancesImportFlowCreate(requestParameters?: FlowsInstancesImportFlowCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<void>;
262
+ flowsInstancesImportCreate(requestParameters?: FlowsInstancesImportCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<FlowImportResult>;
263
263
  /**
264
264
  * Flow Viewset
265
265
  */
@@ -614,7 +614,7 @@ class FlowsApi extends runtime.BaseAPI {
614
614
  /**
615
615
  * Import flow from .yaml file
616
616
  */
617
- flowsInstancesImportFlowCreateRaw(requestParameters, initOverrides) {
617
+ flowsInstancesImportCreateRaw(requestParameters, initOverrides) {
618
618
  return __awaiter(this, void 0, void 0, function* () {
619
619
  const queryParameters = {};
620
620
  const headerParameters = {};
@@ -643,21 +643,22 @@ class FlowsApi extends runtime.BaseAPI {
643
643
  formParams.append('clear', requestParameters.clear);
644
644
  }
645
645
  const response = yield this.request({
646
- path: `/flows/instances/import_flow/`,
646
+ path: `/flows/instances/import/`,
647
647
  method: 'POST',
648
648
  headers: headerParameters,
649
649
  query: queryParameters,
650
650
  body: formParams,
651
651
  }, initOverrides);
652
- return new runtime.VoidApiResponse(response);
652
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.FlowImportResultFromJSON)(jsonValue));
653
653
  });
654
654
  }
655
655
  /**
656
656
  * Import flow from .yaml file
657
657
  */
658
- flowsInstancesImportFlowCreate(requestParameters = {}, initOverrides) {
658
+ flowsInstancesImportCreate(requestParameters = {}, initOverrides) {
659
659
  return __awaiter(this, void 0, void 0, function* () {
660
- yield this.flowsInstancesImportFlowCreateRaw(requestParameters, initOverrides);
660
+ const response = yield this.flowsInstancesImportCreateRaw(requestParameters, initOverrides);
661
+ return yield response.value();
661
662
  });
662
663
  }
663
664
  /**
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { LDAPSource, LDAPSourceRequest, OAuthSource, OAuthSourceRequest, PaginatedLDAPSourceList, PaginatedOAuthSourceList, PaginatedPlexSourceConnectionList, PaginatedPlexSourceList, PaginatedSAMLSourceList, PaginatedSourceList, PaginatedUserOAuthSourceConnectionList, PaginatedUserSourceConnectionList, PatchedLDAPSourceRequest, PatchedOAuthSourceRequest, PatchedPlexSourceConnectionRequest, PatchedPlexSourceRequest, PatchedSAMLSourceRequest, PatchedUserOAuthSourceConnectionRequest, PlexSource, PlexSourceConnection, PlexSourceConnectionRequest, PlexSourceRequest, PlexTokenRedeemRequest, RedirectChallenge, SAMLMetadata, SAMLSource, SAMLSourceRequest, Source, SourceType, Task, TypeCreate, UsedBy, UserOAuthSourceConnection, UserOAuthSourceConnectionRequest, UserSetting, UserSourceConnection } from '../models';
13
+ import { LDAPSource, LDAPSourceRequest, OAuthSource, OAuthSourceRequest, PaginatedLDAPSourceList, PaginatedOAuthSourceList, PaginatedPlexSourceConnectionList, PaginatedPlexSourceList, PaginatedSAMLSourceList, PaginatedSourceList, PaginatedUserOAuthSourceConnectionList, PaginatedUserSAMLSourceConnectionList, PaginatedUserSourceConnectionList, PatchedLDAPSourceRequest, PatchedOAuthSourceRequest, PatchedPlexSourceConnectionRequest, PatchedPlexSourceRequest, PatchedSAMLSourceRequest, PatchedUserOAuthSourceConnectionRequest, PatchedUserSAMLSourceConnectionRequest, PlexSource, PlexSourceConnection, PlexSourceConnectionRequest, PlexSourceRequest, PlexTokenRedeemRequest, RedirectChallenge, SAMLMetadata, SAMLSource, SAMLSourceRequest, Source, SourceType, Task, TypeCreate, UsedBy, UserOAuthSourceConnection, UserOAuthSourceConnectionRequest, UserSAMLSourceConnection, UserSAMLSourceConnectionRequest, UserSetting, UserSourceConnection } from '../models';
14
14
  export interface SourcesAllDestroyRequest {
15
15
  slug: string;
16
16
  }
@@ -291,6 +291,33 @@ export interface SourcesUserConnectionsPlexUpdateRequest {
291
291
  export interface SourcesUserConnectionsPlexUsedByListRequest {
292
292
  id: number;
293
293
  }
294
+ export interface SourcesUserConnectionsSamlCreateRequest {
295
+ userSAMLSourceConnectionRequest: UserSAMLSourceConnectionRequest;
296
+ }
297
+ export interface SourcesUserConnectionsSamlDestroyRequest {
298
+ id: number;
299
+ }
300
+ export interface SourcesUserConnectionsSamlListRequest {
301
+ ordering?: string;
302
+ page?: number;
303
+ pageSize?: number;
304
+ search?: string;
305
+ sourceSlug?: string;
306
+ }
307
+ export interface SourcesUserConnectionsSamlPartialUpdateRequest {
308
+ id: number;
309
+ patchedUserSAMLSourceConnectionRequest?: PatchedUserSAMLSourceConnectionRequest;
310
+ }
311
+ export interface SourcesUserConnectionsSamlRetrieveRequest {
312
+ id: number;
313
+ }
314
+ export interface SourcesUserConnectionsSamlUpdateRequest {
315
+ id: number;
316
+ userSAMLSourceConnectionRequest: UserSAMLSourceConnectionRequest;
317
+ }
318
+ export interface SourcesUserConnectionsSamlUsedByListRequest {
319
+ id: number;
320
+ }
294
321
  /**
295
322
  *
296
323
  */
@@ -767,6 +794,62 @@ export declare class SourcesApi extends runtime.BaseAPI {
767
794
  * Get a list of all objects that use this object
768
795
  */
769
796
  sourcesUserConnectionsPlexUsedByList(requestParameters: SourcesUserConnectionsPlexUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<Array<UsedBy>>;
797
+ /**
798
+ * Source Viewset
799
+ */
800
+ sourcesUserConnectionsSamlCreateRaw(requestParameters: SourcesUserConnectionsSamlCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<UserSAMLSourceConnection>>;
801
+ /**
802
+ * Source Viewset
803
+ */
804
+ sourcesUserConnectionsSamlCreate(requestParameters: SourcesUserConnectionsSamlCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<UserSAMLSourceConnection>;
805
+ /**
806
+ * Source Viewset
807
+ */
808
+ sourcesUserConnectionsSamlDestroyRaw(requestParameters: SourcesUserConnectionsSamlDestroyRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<void>>;
809
+ /**
810
+ * Source Viewset
811
+ */
812
+ sourcesUserConnectionsSamlDestroy(requestParameters: SourcesUserConnectionsSamlDestroyRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<void>;
813
+ /**
814
+ * Source Viewset
815
+ */
816
+ sourcesUserConnectionsSamlListRaw(requestParameters: SourcesUserConnectionsSamlListRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<PaginatedUserSAMLSourceConnectionList>>;
817
+ /**
818
+ * Source Viewset
819
+ */
820
+ sourcesUserConnectionsSamlList(requestParameters?: SourcesUserConnectionsSamlListRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<PaginatedUserSAMLSourceConnectionList>;
821
+ /**
822
+ * Source Viewset
823
+ */
824
+ sourcesUserConnectionsSamlPartialUpdateRaw(requestParameters: SourcesUserConnectionsSamlPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<UserSAMLSourceConnection>>;
825
+ /**
826
+ * Source Viewset
827
+ */
828
+ sourcesUserConnectionsSamlPartialUpdate(requestParameters: SourcesUserConnectionsSamlPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<UserSAMLSourceConnection>;
829
+ /**
830
+ * Source Viewset
831
+ */
832
+ sourcesUserConnectionsSamlRetrieveRaw(requestParameters: SourcesUserConnectionsSamlRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<UserSAMLSourceConnection>>;
833
+ /**
834
+ * Source Viewset
835
+ */
836
+ sourcesUserConnectionsSamlRetrieve(requestParameters: SourcesUserConnectionsSamlRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<UserSAMLSourceConnection>;
837
+ /**
838
+ * Source Viewset
839
+ */
840
+ sourcesUserConnectionsSamlUpdateRaw(requestParameters: SourcesUserConnectionsSamlUpdateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<UserSAMLSourceConnection>>;
841
+ /**
842
+ * Source Viewset
843
+ */
844
+ sourcesUserConnectionsSamlUpdate(requestParameters: SourcesUserConnectionsSamlUpdateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<UserSAMLSourceConnection>;
845
+ /**
846
+ * Get a list of all objects that use this object
847
+ */
848
+ sourcesUserConnectionsSamlUsedByListRaw(requestParameters: SourcesUserConnectionsSamlUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>>;
849
+ /**
850
+ * Get a list of all objects that use this object
851
+ */
852
+ sourcesUserConnectionsSamlUsedByList(requestParameters: SourcesUserConnectionsSamlUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<Array<UsedBy>>;
770
853
  }
771
854
  /**
772
855
  * @export
@@ -2192,6 +2192,243 @@ class SourcesApi extends runtime.BaseAPI {
2192
2192
  return yield response.value();
2193
2193
  });
2194
2194
  }
2195
+ /**
2196
+ * Source Viewset
2197
+ */
2198
+ sourcesUserConnectionsSamlCreateRaw(requestParameters, initOverrides) {
2199
+ return __awaiter(this, void 0, void 0, function* () {
2200
+ if (requestParameters.userSAMLSourceConnectionRequest === null || requestParameters.userSAMLSourceConnectionRequest === undefined) {
2201
+ throw new runtime.RequiredError('userSAMLSourceConnectionRequest', 'Required parameter requestParameters.userSAMLSourceConnectionRequest was null or undefined when calling sourcesUserConnectionsSamlCreate.');
2202
+ }
2203
+ const queryParameters = {};
2204
+ const headerParameters = {};
2205
+ headerParameters['Content-Type'] = 'application/json';
2206
+ if (this.configuration && this.configuration.apiKey) {
2207
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2208
+ }
2209
+ const response = yield this.request({
2210
+ path: `/sources/user_connections/saml/`,
2211
+ method: 'POST',
2212
+ headers: headerParameters,
2213
+ query: queryParameters,
2214
+ body: (0, models_1.UserSAMLSourceConnectionRequestToJSON)(requestParameters.userSAMLSourceConnectionRequest),
2215
+ }, initOverrides);
2216
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UserSAMLSourceConnectionFromJSON)(jsonValue));
2217
+ });
2218
+ }
2219
+ /**
2220
+ * Source Viewset
2221
+ */
2222
+ sourcesUserConnectionsSamlCreate(requestParameters, initOverrides) {
2223
+ return __awaiter(this, void 0, void 0, function* () {
2224
+ const response = yield this.sourcesUserConnectionsSamlCreateRaw(requestParameters, initOverrides);
2225
+ return yield response.value();
2226
+ });
2227
+ }
2228
+ /**
2229
+ * Source Viewset
2230
+ */
2231
+ sourcesUserConnectionsSamlDestroyRaw(requestParameters, initOverrides) {
2232
+ return __awaiter(this, void 0, void 0, function* () {
2233
+ if (requestParameters.id === null || requestParameters.id === undefined) {
2234
+ throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling sourcesUserConnectionsSamlDestroy.');
2235
+ }
2236
+ const queryParameters = {};
2237
+ const headerParameters = {};
2238
+ if (this.configuration && this.configuration.apiKey) {
2239
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2240
+ }
2241
+ const response = yield this.request({
2242
+ path: `/sources/user_connections/saml/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2243
+ method: 'DELETE',
2244
+ headers: headerParameters,
2245
+ query: queryParameters,
2246
+ }, initOverrides);
2247
+ return new runtime.VoidApiResponse(response);
2248
+ });
2249
+ }
2250
+ /**
2251
+ * Source Viewset
2252
+ */
2253
+ sourcesUserConnectionsSamlDestroy(requestParameters, initOverrides) {
2254
+ return __awaiter(this, void 0, void 0, function* () {
2255
+ yield this.sourcesUserConnectionsSamlDestroyRaw(requestParameters, initOverrides);
2256
+ });
2257
+ }
2258
+ /**
2259
+ * Source Viewset
2260
+ */
2261
+ sourcesUserConnectionsSamlListRaw(requestParameters, initOverrides) {
2262
+ return __awaiter(this, void 0, void 0, function* () {
2263
+ const queryParameters = {};
2264
+ if (requestParameters.ordering !== undefined) {
2265
+ queryParameters['ordering'] = requestParameters.ordering;
2266
+ }
2267
+ if (requestParameters.page !== undefined) {
2268
+ queryParameters['page'] = requestParameters.page;
2269
+ }
2270
+ if (requestParameters.pageSize !== undefined) {
2271
+ queryParameters['page_size'] = requestParameters.pageSize;
2272
+ }
2273
+ if (requestParameters.search !== undefined) {
2274
+ queryParameters['search'] = requestParameters.search;
2275
+ }
2276
+ if (requestParameters.sourceSlug !== undefined) {
2277
+ queryParameters['source__slug'] = requestParameters.sourceSlug;
2278
+ }
2279
+ const headerParameters = {};
2280
+ if (this.configuration && this.configuration.apiKey) {
2281
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2282
+ }
2283
+ const response = yield this.request({
2284
+ path: `/sources/user_connections/saml/`,
2285
+ method: 'GET',
2286
+ headers: headerParameters,
2287
+ query: queryParameters,
2288
+ }, initOverrides);
2289
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.PaginatedUserSAMLSourceConnectionListFromJSON)(jsonValue));
2290
+ });
2291
+ }
2292
+ /**
2293
+ * Source Viewset
2294
+ */
2295
+ sourcesUserConnectionsSamlList(requestParameters = {}, initOverrides) {
2296
+ return __awaiter(this, void 0, void 0, function* () {
2297
+ const response = yield this.sourcesUserConnectionsSamlListRaw(requestParameters, initOverrides);
2298
+ return yield response.value();
2299
+ });
2300
+ }
2301
+ /**
2302
+ * Source Viewset
2303
+ */
2304
+ sourcesUserConnectionsSamlPartialUpdateRaw(requestParameters, initOverrides) {
2305
+ return __awaiter(this, void 0, void 0, function* () {
2306
+ if (requestParameters.id === null || requestParameters.id === undefined) {
2307
+ throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling sourcesUserConnectionsSamlPartialUpdate.');
2308
+ }
2309
+ const queryParameters = {};
2310
+ const headerParameters = {};
2311
+ headerParameters['Content-Type'] = 'application/json';
2312
+ if (this.configuration && this.configuration.apiKey) {
2313
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2314
+ }
2315
+ const response = yield this.request({
2316
+ path: `/sources/user_connections/saml/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2317
+ method: 'PATCH',
2318
+ headers: headerParameters,
2319
+ query: queryParameters,
2320
+ body: (0, models_1.PatchedUserSAMLSourceConnectionRequestToJSON)(requestParameters.patchedUserSAMLSourceConnectionRequest),
2321
+ }, initOverrides);
2322
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UserSAMLSourceConnectionFromJSON)(jsonValue));
2323
+ });
2324
+ }
2325
+ /**
2326
+ * Source Viewset
2327
+ */
2328
+ sourcesUserConnectionsSamlPartialUpdate(requestParameters, initOverrides) {
2329
+ return __awaiter(this, void 0, void 0, function* () {
2330
+ const response = yield this.sourcesUserConnectionsSamlPartialUpdateRaw(requestParameters, initOverrides);
2331
+ return yield response.value();
2332
+ });
2333
+ }
2334
+ /**
2335
+ * Source Viewset
2336
+ */
2337
+ sourcesUserConnectionsSamlRetrieveRaw(requestParameters, initOverrides) {
2338
+ return __awaiter(this, void 0, void 0, function* () {
2339
+ if (requestParameters.id === null || requestParameters.id === undefined) {
2340
+ throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling sourcesUserConnectionsSamlRetrieve.');
2341
+ }
2342
+ const queryParameters = {};
2343
+ const headerParameters = {};
2344
+ if (this.configuration && this.configuration.apiKey) {
2345
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2346
+ }
2347
+ const response = yield this.request({
2348
+ path: `/sources/user_connections/saml/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2349
+ method: 'GET',
2350
+ headers: headerParameters,
2351
+ query: queryParameters,
2352
+ }, initOverrides);
2353
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UserSAMLSourceConnectionFromJSON)(jsonValue));
2354
+ });
2355
+ }
2356
+ /**
2357
+ * Source Viewset
2358
+ */
2359
+ sourcesUserConnectionsSamlRetrieve(requestParameters, initOverrides) {
2360
+ return __awaiter(this, void 0, void 0, function* () {
2361
+ const response = yield this.sourcesUserConnectionsSamlRetrieveRaw(requestParameters, initOverrides);
2362
+ return yield response.value();
2363
+ });
2364
+ }
2365
+ /**
2366
+ * Source Viewset
2367
+ */
2368
+ sourcesUserConnectionsSamlUpdateRaw(requestParameters, initOverrides) {
2369
+ return __awaiter(this, void 0, void 0, function* () {
2370
+ if (requestParameters.id === null || requestParameters.id === undefined) {
2371
+ throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling sourcesUserConnectionsSamlUpdate.');
2372
+ }
2373
+ if (requestParameters.userSAMLSourceConnectionRequest === null || requestParameters.userSAMLSourceConnectionRequest === undefined) {
2374
+ throw new runtime.RequiredError('userSAMLSourceConnectionRequest', 'Required parameter requestParameters.userSAMLSourceConnectionRequest was null or undefined when calling sourcesUserConnectionsSamlUpdate.');
2375
+ }
2376
+ const queryParameters = {};
2377
+ const headerParameters = {};
2378
+ headerParameters['Content-Type'] = 'application/json';
2379
+ if (this.configuration && this.configuration.apiKey) {
2380
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2381
+ }
2382
+ const response = yield this.request({
2383
+ path: `/sources/user_connections/saml/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2384
+ method: 'PUT',
2385
+ headers: headerParameters,
2386
+ query: queryParameters,
2387
+ body: (0, models_1.UserSAMLSourceConnectionRequestToJSON)(requestParameters.userSAMLSourceConnectionRequest),
2388
+ }, initOverrides);
2389
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UserSAMLSourceConnectionFromJSON)(jsonValue));
2390
+ });
2391
+ }
2392
+ /**
2393
+ * Source Viewset
2394
+ */
2395
+ sourcesUserConnectionsSamlUpdate(requestParameters, initOverrides) {
2396
+ return __awaiter(this, void 0, void 0, function* () {
2397
+ const response = yield this.sourcesUserConnectionsSamlUpdateRaw(requestParameters, initOverrides);
2398
+ return yield response.value();
2399
+ });
2400
+ }
2401
+ /**
2402
+ * Get a list of all objects that use this object
2403
+ */
2404
+ sourcesUserConnectionsSamlUsedByListRaw(requestParameters, initOverrides) {
2405
+ return __awaiter(this, void 0, void 0, function* () {
2406
+ if (requestParameters.id === null || requestParameters.id === undefined) {
2407
+ throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling sourcesUserConnectionsSamlUsedByList.');
2408
+ }
2409
+ const queryParameters = {};
2410
+ const headerParameters = {};
2411
+ if (this.configuration && this.configuration.apiKey) {
2412
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2413
+ }
2414
+ const response = yield this.request({
2415
+ path: `/sources/user_connections/saml/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2416
+ method: 'GET',
2417
+ headers: headerParameters,
2418
+ query: queryParameters,
2419
+ }, initOverrides);
2420
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(models_1.UsedByFromJSON));
2421
+ });
2422
+ }
2423
+ /**
2424
+ * Get a list of all objects that use this object
2425
+ */
2426
+ sourcesUserConnectionsSamlUsedByList(requestParameters, initOverrides) {
2427
+ return __awaiter(this, void 0, void 0, function* () {
2428
+ const response = yield this.sourcesUserConnectionsSamlUsedByListRaw(requestParameters, initOverrides);
2429
+ return yield response.value();
2430
+ });
2431
+ }
2195
2432
  }
2196
2433
  exports.SourcesApi = SourcesApi;
2197
2434
  /**
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { Cache, ChallengeTypes, FilePathRequest, Flow, FlowChallengeResponseRequest, FlowDiagram, FlowInspection, FlowRequest, FlowStageBinding, FlowStageBindingRequest, Link, PaginatedFlowList, PaginatedFlowStageBindingList, PatchedFlowRequest, PatchedFlowStageBindingRequest, UsedBy } from '../models';
13
+ import { Cache, ChallengeTypes, FilePathRequest, Flow, FlowChallengeResponseRequest, FlowDiagram, FlowImportResult, FlowInspection, FlowRequest, FlowStageBinding, FlowStageBindingRequest, Link, PaginatedFlowList, PaginatedFlowStageBindingList, PatchedFlowRequest, PatchedFlowStageBindingRequest, UsedBy } from '../models';
14
14
  export interface FlowsBindingsCreateRequest {
15
15
  flowStageBindingRequest: FlowStageBindingRequest;
16
16
  }
@@ -74,7 +74,7 @@ export interface FlowsInstancesExecuteRetrieveRequest {
74
74
  export interface FlowsInstancesExportRetrieveRequest {
75
75
  slug: string;
76
76
  }
77
- export interface FlowsInstancesImportFlowCreateRequest {
77
+ export interface FlowsInstancesImportCreateRequest {
78
78
  file?: Blob;
79
79
  clear?: boolean;
80
80
  }
@@ -255,11 +255,11 @@ export declare class FlowsApi extends runtime.BaseAPI {
255
255
  /**
256
256
  * Import flow from .yaml file
257
257
  */
258
- flowsInstancesImportFlowCreateRaw(requestParameters: FlowsInstancesImportFlowCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<void>>;
258
+ flowsInstancesImportCreateRaw(requestParameters: FlowsInstancesImportCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<FlowImportResult>>;
259
259
  /**
260
260
  * Import flow from .yaml file
261
261
  */
262
- flowsInstancesImportFlowCreate(requestParameters?: FlowsInstancesImportFlowCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<void>;
262
+ flowsInstancesImportCreate(requestParameters?: FlowsInstancesImportCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<FlowImportResult>;
263
263
  /**
264
264
  * Flow Viewset
265
265
  */
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { CacheFromJSON, ChallengeTypesFromJSON, FilePathRequestToJSON, FlowFromJSON, FlowChallengeResponseRequestToJSON, FlowDiagramFromJSON, FlowInspectionFromJSON, FlowRequestToJSON, FlowStageBindingFromJSON, FlowStageBindingRequestToJSON, LinkFromJSON, PaginatedFlowListFromJSON, PaginatedFlowStageBindingListFromJSON, PatchedFlowRequestToJSON, PatchedFlowStageBindingRequestToJSON, UsedByFromJSON, } from '../models';
24
+ import { CacheFromJSON, ChallengeTypesFromJSON, FilePathRequestToJSON, FlowFromJSON, FlowChallengeResponseRequestToJSON, FlowDiagramFromJSON, FlowImportResultFromJSON, FlowInspectionFromJSON, FlowRequestToJSON, FlowStageBindingFromJSON, FlowStageBindingRequestToJSON, LinkFromJSON, PaginatedFlowListFromJSON, PaginatedFlowStageBindingListFromJSON, PatchedFlowRequestToJSON, PatchedFlowStageBindingRequestToJSON, UsedByFromJSON, } from '../models';
25
25
  /**
26
26
  *
27
27
  */
@@ -611,7 +611,7 @@ export class FlowsApi extends runtime.BaseAPI {
611
611
  /**
612
612
  * Import flow from .yaml file
613
613
  */
614
- flowsInstancesImportFlowCreateRaw(requestParameters, initOverrides) {
614
+ flowsInstancesImportCreateRaw(requestParameters, initOverrides) {
615
615
  return __awaiter(this, void 0, void 0, function* () {
616
616
  const queryParameters = {};
617
617
  const headerParameters = {};
@@ -640,21 +640,22 @@ export class FlowsApi extends runtime.BaseAPI {
640
640
  formParams.append('clear', requestParameters.clear);
641
641
  }
642
642
  const response = yield this.request({
643
- path: `/flows/instances/import_flow/`,
643
+ path: `/flows/instances/import/`,
644
644
  method: 'POST',
645
645
  headers: headerParameters,
646
646
  query: queryParameters,
647
647
  body: formParams,
648
648
  }, initOverrides);
649
- return new runtime.VoidApiResponse(response);
649
+ return new runtime.JSONApiResponse(response, (jsonValue) => FlowImportResultFromJSON(jsonValue));
650
650
  });
651
651
  }
652
652
  /**
653
653
  * Import flow from .yaml file
654
654
  */
655
- flowsInstancesImportFlowCreate(requestParameters = {}, initOverrides) {
655
+ flowsInstancesImportCreate(requestParameters = {}, initOverrides) {
656
656
  return __awaiter(this, void 0, void 0, function* () {
657
- yield this.flowsInstancesImportFlowCreateRaw(requestParameters, initOverrides);
657
+ const response = yield this.flowsInstancesImportCreateRaw(requestParameters, initOverrides);
658
+ return yield response.value();
658
659
  });
659
660
  }
660
661
  /**
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { LDAPSource, LDAPSourceRequest, OAuthSource, OAuthSourceRequest, PaginatedLDAPSourceList, PaginatedOAuthSourceList, PaginatedPlexSourceConnectionList, PaginatedPlexSourceList, PaginatedSAMLSourceList, PaginatedSourceList, PaginatedUserOAuthSourceConnectionList, PaginatedUserSourceConnectionList, PatchedLDAPSourceRequest, PatchedOAuthSourceRequest, PatchedPlexSourceConnectionRequest, PatchedPlexSourceRequest, PatchedSAMLSourceRequest, PatchedUserOAuthSourceConnectionRequest, PlexSource, PlexSourceConnection, PlexSourceConnectionRequest, PlexSourceRequest, PlexTokenRedeemRequest, RedirectChallenge, SAMLMetadata, SAMLSource, SAMLSourceRequest, Source, SourceType, Task, TypeCreate, UsedBy, UserOAuthSourceConnection, UserOAuthSourceConnectionRequest, UserSetting, UserSourceConnection } from '../models';
13
+ import { LDAPSource, LDAPSourceRequest, OAuthSource, OAuthSourceRequest, PaginatedLDAPSourceList, PaginatedOAuthSourceList, PaginatedPlexSourceConnectionList, PaginatedPlexSourceList, PaginatedSAMLSourceList, PaginatedSourceList, PaginatedUserOAuthSourceConnectionList, PaginatedUserSAMLSourceConnectionList, PaginatedUserSourceConnectionList, PatchedLDAPSourceRequest, PatchedOAuthSourceRequest, PatchedPlexSourceConnectionRequest, PatchedPlexSourceRequest, PatchedSAMLSourceRequest, PatchedUserOAuthSourceConnectionRequest, PatchedUserSAMLSourceConnectionRequest, PlexSource, PlexSourceConnection, PlexSourceConnectionRequest, PlexSourceRequest, PlexTokenRedeemRequest, RedirectChallenge, SAMLMetadata, SAMLSource, SAMLSourceRequest, Source, SourceType, Task, TypeCreate, UsedBy, UserOAuthSourceConnection, UserOAuthSourceConnectionRequest, UserSAMLSourceConnection, UserSAMLSourceConnectionRequest, UserSetting, UserSourceConnection } from '../models';
14
14
  export interface SourcesAllDestroyRequest {
15
15
  slug: string;
16
16
  }
@@ -291,6 +291,33 @@ export interface SourcesUserConnectionsPlexUpdateRequest {
291
291
  export interface SourcesUserConnectionsPlexUsedByListRequest {
292
292
  id: number;
293
293
  }
294
+ export interface SourcesUserConnectionsSamlCreateRequest {
295
+ userSAMLSourceConnectionRequest: UserSAMLSourceConnectionRequest;
296
+ }
297
+ export interface SourcesUserConnectionsSamlDestroyRequest {
298
+ id: number;
299
+ }
300
+ export interface SourcesUserConnectionsSamlListRequest {
301
+ ordering?: string;
302
+ page?: number;
303
+ pageSize?: number;
304
+ search?: string;
305
+ sourceSlug?: string;
306
+ }
307
+ export interface SourcesUserConnectionsSamlPartialUpdateRequest {
308
+ id: number;
309
+ patchedUserSAMLSourceConnectionRequest?: PatchedUserSAMLSourceConnectionRequest;
310
+ }
311
+ export interface SourcesUserConnectionsSamlRetrieveRequest {
312
+ id: number;
313
+ }
314
+ export interface SourcesUserConnectionsSamlUpdateRequest {
315
+ id: number;
316
+ userSAMLSourceConnectionRequest: UserSAMLSourceConnectionRequest;
317
+ }
318
+ export interface SourcesUserConnectionsSamlUsedByListRequest {
319
+ id: number;
320
+ }
294
321
  /**
295
322
  *
296
323
  */
@@ -767,6 +794,62 @@ export declare class SourcesApi extends runtime.BaseAPI {
767
794
  * Get a list of all objects that use this object
768
795
  */
769
796
  sourcesUserConnectionsPlexUsedByList(requestParameters: SourcesUserConnectionsPlexUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<Array<UsedBy>>;
797
+ /**
798
+ * Source Viewset
799
+ */
800
+ sourcesUserConnectionsSamlCreateRaw(requestParameters: SourcesUserConnectionsSamlCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<UserSAMLSourceConnection>>;
801
+ /**
802
+ * Source Viewset
803
+ */
804
+ sourcesUserConnectionsSamlCreate(requestParameters: SourcesUserConnectionsSamlCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<UserSAMLSourceConnection>;
805
+ /**
806
+ * Source Viewset
807
+ */
808
+ sourcesUserConnectionsSamlDestroyRaw(requestParameters: SourcesUserConnectionsSamlDestroyRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<void>>;
809
+ /**
810
+ * Source Viewset
811
+ */
812
+ sourcesUserConnectionsSamlDestroy(requestParameters: SourcesUserConnectionsSamlDestroyRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<void>;
813
+ /**
814
+ * Source Viewset
815
+ */
816
+ sourcesUserConnectionsSamlListRaw(requestParameters: SourcesUserConnectionsSamlListRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<PaginatedUserSAMLSourceConnectionList>>;
817
+ /**
818
+ * Source Viewset
819
+ */
820
+ sourcesUserConnectionsSamlList(requestParameters?: SourcesUserConnectionsSamlListRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<PaginatedUserSAMLSourceConnectionList>;
821
+ /**
822
+ * Source Viewset
823
+ */
824
+ sourcesUserConnectionsSamlPartialUpdateRaw(requestParameters: SourcesUserConnectionsSamlPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<UserSAMLSourceConnection>>;
825
+ /**
826
+ * Source Viewset
827
+ */
828
+ sourcesUserConnectionsSamlPartialUpdate(requestParameters: SourcesUserConnectionsSamlPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<UserSAMLSourceConnection>;
829
+ /**
830
+ * Source Viewset
831
+ */
832
+ sourcesUserConnectionsSamlRetrieveRaw(requestParameters: SourcesUserConnectionsSamlRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<UserSAMLSourceConnection>>;
833
+ /**
834
+ * Source Viewset
835
+ */
836
+ sourcesUserConnectionsSamlRetrieve(requestParameters: SourcesUserConnectionsSamlRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<UserSAMLSourceConnection>;
837
+ /**
838
+ * Source Viewset
839
+ */
840
+ sourcesUserConnectionsSamlUpdateRaw(requestParameters: SourcesUserConnectionsSamlUpdateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<UserSAMLSourceConnection>>;
841
+ /**
842
+ * Source Viewset
843
+ */
844
+ sourcesUserConnectionsSamlUpdate(requestParameters: SourcesUserConnectionsSamlUpdateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<UserSAMLSourceConnection>;
845
+ /**
846
+ * Get a list of all objects that use this object
847
+ */
848
+ sourcesUserConnectionsSamlUsedByListRaw(requestParameters: SourcesUserConnectionsSamlUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>>;
849
+ /**
850
+ * Get a list of all objects that use this object
851
+ */
852
+ sourcesUserConnectionsSamlUsedByList(requestParameters: SourcesUserConnectionsSamlUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<Array<UsedBy>>;
770
853
  }
771
854
  /**
772
855
  * @export