@goauthentik/api 2022.9.0-1665755308 → 2022.9.0-1665760108
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 +4 -0
- package/dist/apis/SourcesApi.d.ts +84 -1
- package/dist/apis/SourcesApi.js +237 -0
- package/dist/esm/apis/SourcesApi.d.ts +84 -1
- package/dist/esm/apis/SourcesApi.js +238 -1
- package/dist/esm/models/PaginatedUserSAMLSourceConnectionList.d.ts +35 -0
- package/dist/esm/models/PaginatedUserSAMLSourceConnectionList.js +39 -0
- package/dist/esm/models/PatchedUserSAMLSourceConnectionRequest.d.ts +33 -0
- package/dist/esm/models/PatchedUserSAMLSourceConnectionRequest.js +38 -0
- package/dist/esm/models/UserSAMLSourceConnection.d.ts +46 -0
- package/dist/esm/models/UserSAMLSourceConnection.js +41 -0
- package/dist/esm/models/UserSAMLSourceConnectionRequest.d.ts +33 -0
- package/dist/esm/models/UserSAMLSourceConnectionRequest.js +37 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/PaginatedUserSAMLSourceConnectionList.d.ts +35 -0
- package/dist/models/PaginatedUserSAMLSourceConnectionList.js +45 -0
- package/dist/models/PatchedUserSAMLSourceConnectionRequest.d.ts +33 -0
- package/dist/models/PatchedUserSAMLSourceConnectionRequest.js +44 -0
- package/dist/models/UserSAMLSourceConnection.d.ts +46 -0
- package/dist/models/UserSAMLSourceConnection.js +47 -0
- package/dist/models/UserSAMLSourceConnectionRequest.d.ts +33 -0
- package/dist/models/UserSAMLSourceConnectionRequest.js +43 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/SourcesApi.ts +312 -0
- package/src/models/PaginatedUserSAMLSourceConnectionList.ts +77 -0
- package/src/models/PatchedUserSAMLSourceConnectionRequest.ts +64 -0
- package/src/models/UserSAMLSourceConnection.ts +86 -0
- package/src/models/UserSAMLSourceConnectionRequest.ts +64 -0
- package/src/models/index.ts +4 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -285,6 +285,7 @@ src/models/PaginatedUserList.ts
|
|
|
285
285
|
src/models/PaginatedUserLoginStageList.ts
|
|
286
286
|
src/models/PaginatedUserLogoutStageList.ts
|
|
287
287
|
src/models/PaginatedUserOAuthSourceConnectionList.ts
|
|
288
|
+
src/models/PaginatedUserSAMLSourceConnectionList.ts
|
|
288
289
|
src/models/PaginatedUserSourceConnectionList.ts
|
|
289
290
|
src/models/PaginatedUserWriteStageList.ts
|
|
290
291
|
src/models/PaginatedWebAuthnDeviceList.ts
|
|
@@ -358,6 +359,7 @@ src/models/PatchedUserLoginStageRequest.ts
|
|
|
358
359
|
src/models/PatchedUserLogoutStageRequest.ts
|
|
359
360
|
src/models/PatchedUserOAuthSourceConnectionRequest.ts
|
|
360
361
|
src/models/PatchedUserRequest.ts
|
|
362
|
+
src/models/PatchedUserSAMLSourceConnectionRequest.ts
|
|
361
363
|
src/models/PatchedUserWriteStageRequest.ts
|
|
362
364
|
src/models/PatchedWebAuthnDeviceRequest.ts
|
|
363
365
|
src/models/Permission.ts
|
|
@@ -464,6 +466,8 @@ src/models/UserOAuthSourceConnectionRequest.ts
|
|
|
464
466
|
src/models/UserPasswordSetRequest.ts
|
|
465
467
|
src/models/UserPath.ts
|
|
466
468
|
src/models/UserRequest.ts
|
|
469
|
+
src/models/UserSAMLSourceConnection.ts
|
|
470
|
+
src/models/UserSAMLSourceConnectionRequest.ts
|
|
467
471
|
src/models/UserSelf.ts
|
|
468
472
|
src/models/UserSelfGroups.ts
|
|
469
473
|
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 { 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
|
package/dist/apis/SourcesApi.js
CHANGED
|
@@ -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 { 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
|