@goauthentik/api 2024.4.2-1715100363 → 2024.4.2-1715104360
Sign up to get free protection for your applications and to get access to all the features.
- package/.openapi-generator/FILES +10 -2
- package/dist/apis/PropertymappingsApi.d.ts +87 -1
- package/dist/apis/PropertymappingsApi.js +274 -0
- package/dist/apis/ProvidersApi.d.ts +100 -3
- package/dist/apis/ProvidersApi.js +311 -2
- package/dist/apis/RbacApi.d.ts +4 -0
- package/dist/apis/RbacApi.js +4 -0
- package/dist/apis/SourcesApi.d.ts +3 -3
- package/dist/apis/SourcesApi.js +2 -2
- package/dist/esm/apis/PropertymappingsApi.d.ts +87 -1
- package/dist/esm/apis/PropertymappingsApi.js +275 -1
- package/dist/esm/apis/ProvidersApi.d.ts +100 -3
- package/dist/esm/apis/ProvidersApi.js +312 -3
- package/dist/esm/apis/RbacApi.d.ts +4 -0
- package/dist/esm/apis/RbacApi.js +4 -0
- package/dist/esm/apis/SourcesApi.d.ts +3 -3
- package/dist/esm/apis/SourcesApi.js +3 -3
- package/dist/esm/models/AppEnum.d.ts +1 -0
- package/dist/esm/models/AppEnum.js +1 -0
- package/dist/esm/models/GoogleProvider.d.ts +134 -0
- package/dist/esm/models/GoogleProvider.js +82 -0
- package/dist/esm/models/GoogleProviderMapping.d.ts +73 -0
- package/dist/esm/models/GoogleProviderMapping.js +59 -0
- package/dist/esm/models/GoogleProviderMappingRequest.d.ts +43 -0
- package/dist/esm/models/GoogleProviderMappingRequest.js +49 -0
- package/dist/esm/models/GoogleProviderRequest.d.ts +92 -0
- package/dist/esm/models/GoogleProviderRequest.js +68 -0
- package/dist/esm/models/GoogleWorkspaceDeleteAction.d.ts +25 -0
- package/dist/esm/models/GoogleWorkspaceDeleteAction.js +32 -0
- package/dist/esm/models/ModelEnum.d.ts +2 -0
- package/dist/esm/models/ModelEnum.js +2 -0
- package/dist/esm/models/ModelRequest.d.ts +3 -0
- package/dist/esm/models/ModelRequest.js +5 -0
- package/dist/esm/models/PaginatedGoogleProviderList.d.ts +39 -0
- package/dist/esm/models/PaginatedGoogleProviderList.js +48 -0
- package/dist/esm/models/PaginatedGoogleProviderMappingList.d.ts +39 -0
- package/dist/esm/models/PaginatedGoogleProviderMappingList.js +48 -0
- package/dist/esm/models/PatchedGoogleProviderMappingRequest.d.ts +43 -0
- package/dist/esm/models/PatchedGoogleProviderMappingRequest.js +47 -0
- package/dist/esm/models/PatchedGoogleProviderRequest.d.ts +92 -0
- package/dist/esm/models/PatchedGoogleProviderRequest.js +64 -0
- package/dist/esm/models/ProviderModelEnum.d.ts +1 -0
- package/dist/esm/models/ProviderModelEnum.js +1 -0
- package/dist/esm/models/SyncStatus.d.ts +38 -0
- package/dist/esm/models/{LDAPSyncStatus.js → SyncStatus.js} +6 -6
- package/dist/esm/models/index.d.ts +10 -2
- package/dist/esm/models/index.js +10 -2
- package/dist/models/AppEnum.d.ts +1 -0
- package/dist/models/AppEnum.js +1 -0
- package/dist/models/GoogleProvider.d.ts +134 -0
- package/dist/models/GoogleProvider.js +89 -0
- package/dist/models/GoogleProviderMapping.d.ts +73 -0
- package/dist/models/GoogleProviderMapping.js +66 -0
- package/dist/models/GoogleProviderMappingRequest.d.ts +43 -0
- package/dist/models/GoogleProviderMappingRequest.js +56 -0
- package/dist/models/GoogleProviderRequest.d.ts +92 -0
- package/dist/models/GoogleProviderRequest.js +75 -0
- package/dist/models/GoogleWorkspaceDeleteAction.d.ts +25 -0
- package/dist/models/GoogleWorkspaceDeleteAction.js +38 -0
- package/dist/models/ModelEnum.d.ts +2 -0
- package/dist/models/ModelEnum.js +2 -0
- package/dist/models/ModelRequest.d.ts +3 -0
- package/dist/models/ModelRequest.js +5 -0
- package/dist/models/PaginatedGoogleProviderList.d.ts +39 -0
- package/dist/models/PaginatedGoogleProviderList.js +55 -0
- package/dist/models/PaginatedGoogleProviderMappingList.d.ts +39 -0
- package/dist/models/PaginatedGoogleProviderMappingList.js +55 -0
- package/dist/models/PatchedGoogleProviderMappingRequest.d.ts +43 -0
- package/dist/models/PatchedGoogleProviderMappingRequest.js +54 -0
- package/dist/models/PatchedGoogleProviderRequest.d.ts +92 -0
- package/dist/models/PatchedGoogleProviderRequest.js +71 -0
- package/dist/models/ProviderModelEnum.d.ts +1 -0
- package/dist/models/ProviderModelEnum.js +1 -0
- package/dist/models/SyncStatus.d.ts +38 -0
- package/dist/models/{LDAPSyncStatus.js → SyncStatus.js} +11 -11
- package/dist/models/index.d.ts +10 -2
- package/dist/models/index.js +10 -2
- package/package.json +1 -1
- package/src/apis/PropertymappingsApi.ts +355 -0
- package/src/apis/ProvidersApi.ts +404 -7
- package/src/apis/RbacApi.ts +4 -0
- package/src/apis/SourcesApi.ts +7 -7
- package/src/models/AppEnum.ts +1 -0
- package/src/models/GoogleProvider.ts +212 -0
- package/src/models/GoogleProviderMapping.ts +123 -0
- package/src/models/GoogleProviderMappingRequest.ts +83 -0
- package/src/models/GoogleProviderRequest.ts +156 -0
- package/src/models/GoogleWorkspaceDeleteAction.ts +40 -0
- package/src/models/ModelEnum.ts +2 -0
- package/src/models/ModelRequest.ts +12 -1
- package/src/models/PaginatedGoogleProviderList.ts +88 -0
- package/src/models/PaginatedGoogleProviderMappingList.ts +88 -0
- package/src/models/PatchedGoogleProviderMappingRequest.ts +81 -0
- package/src/models/PatchedGoogleProviderRequest.ts +152 -0
- package/src/models/ProviderModelEnum.ts +1 -0
- package/src/models/{LDAPSyncStatus.ts → SyncStatus.ts} +11 -11
- package/src/models/index.ts +10 -2
- package/dist/esm/models/LDAPSyncStatus.d.ts +0 -38
- package/dist/esm/models/SCIMSyncStatus.d.ts +0 -38
- package/dist/esm/models/SCIMSyncStatus.js +0 -44
- package/dist/models/LDAPSyncStatus.d.ts +0 -38
- package/dist/models/SCIMSyncStatus.d.ts +0 -38
- package/dist/models/SCIMSyncStatus.js +0 -51
- package/src/models/SCIMSyncStatus.ts +0 -80
@@ -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 { LDAPProviderFromJSON, LDAPProviderRequestToJSON, OAuth2ProviderFromJSON, OAuth2ProviderRequestToJSON, OAuth2ProviderSetupURLsFromJSON, PaginatedLDAPProviderListFromJSON, PaginatedOAuth2ProviderListFromJSON, PaginatedProviderListFromJSON, PaginatedProxyProviderListFromJSON, PaginatedRACProviderListFromJSON, PaginatedRadiusProviderListFromJSON, PaginatedSAMLProviderListFromJSON, PaginatedSCIMProviderListFromJSON, PatchedLDAPProviderRequestToJSON, PatchedOAuth2ProviderRequestToJSON, PatchedProxyProviderRequestToJSON, PatchedRACProviderRequestToJSON, PatchedRadiusProviderRequestToJSON, PatchedSAMLProviderRequestToJSON, PatchedSCIMProviderRequestToJSON, PropertyMappingPreviewFromJSON, ProviderFromJSON, ProxyProviderFromJSON, ProxyProviderRequestToJSON, RACProviderFromJSON, RACProviderRequestToJSON, RadiusProviderFromJSON, RadiusProviderRequestToJSON, SAMLMetadataFromJSON, SAMLProviderFromJSON, SAMLProviderRequestToJSON, SCIMProviderFromJSON, SCIMProviderRequestToJSON,
|
24
|
+
import { GoogleProviderFromJSON, GoogleProviderRequestToJSON, LDAPProviderFromJSON, LDAPProviderRequestToJSON, OAuth2ProviderFromJSON, OAuth2ProviderRequestToJSON, OAuth2ProviderSetupURLsFromJSON, PaginatedGoogleProviderListFromJSON, PaginatedLDAPProviderListFromJSON, PaginatedOAuth2ProviderListFromJSON, PaginatedProviderListFromJSON, PaginatedProxyProviderListFromJSON, PaginatedRACProviderListFromJSON, PaginatedRadiusProviderListFromJSON, PaginatedSAMLProviderListFromJSON, PaginatedSCIMProviderListFromJSON, PatchedGoogleProviderRequestToJSON, PatchedLDAPProviderRequestToJSON, PatchedOAuth2ProviderRequestToJSON, PatchedProxyProviderRequestToJSON, PatchedRACProviderRequestToJSON, PatchedRadiusProviderRequestToJSON, PatchedSAMLProviderRequestToJSON, PatchedSCIMProviderRequestToJSON, PropertyMappingPreviewFromJSON, ProviderFromJSON, ProxyProviderFromJSON, ProxyProviderRequestToJSON, RACProviderFromJSON, RACProviderRequestToJSON, RadiusProviderFromJSON, RadiusProviderRequestToJSON, SAMLMetadataFromJSON, SAMLProviderFromJSON, SAMLProviderRequestToJSON, SCIMProviderFromJSON, SCIMProviderRequestToJSON, SyncStatusFromJSON, TypeCreateFromJSON, UsedByFromJSON, } from '../models';
|
25
25
|
/**
|
26
26
|
*
|
27
27
|
*/
|
@@ -212,6 +212,315 @@ export class ProvidersApi extends runtime.BaseAPI {
|
|
212
212
|
return yield response.value();
|
213
213
|
});
|
214
214
|
}
|
215
|
+
/**
|
216
|
+
* GoogleProvider Viewset
|
217
|
+
*/
|
218
|
+
providersGoogleWorkspaceCreateRaw(requestParameters, initOverrides) {
|
219
|
+
return __awaiter(this, void 0, void 0, function* () {
|
220
|
+
if (requestParameters.googleProviderRequest === null || requestParameters.googleProviderRequest === undefined) {
|
221
|
+
throw new runtime.RequiredError('googleProviderRequest', 'Required parameter requestParameters.googleProviderRequest was null or undefined when calling providersGoogleWorkspaceCreate.');
|
222
|
+
}
|
223
|
+
const queryParameters = {};
|
224
|
+
const headerParameters = {};
|
225
|
+
headerParameters['Content-Type'] = 'application/json';
|
226
|
+
if (this.configuration && this.configuration.accessToken) {
|
227
|
+
const token = this.configuration.accessToken;
|
228
|
+
const tokenString = yield token("authentik", []);
|
229
|
+
if (tokenString) {
|
230
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
231
|
+
}
|
232
|
+
}
|
233
|
+
const response = yield this.request({
|
234
|
+
path: `/providers/google_workspace/`,
|
235
|
+
method: 'POST',
|
236
|
+
headers: headerParameters,
|
237
|
+
query: queryParameters,
|
238
|
+
body: GoogleProviderRequestToJSON(requestParameters.googleProviderRequest),
|
239
|
+
}, initOverrides);
|
240
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GoogleProviderFromJSON(jsonValue));
|
241
|
+
});
|
242
|
+
}
|
243
|
+
/**
|
244
|
+
* GoogleProvider Viewset
|
245
|
+
*/
|
246
|
+
providersGoogleWorkspaceCreate(requestParameters, initOverrides) {
|
247
|
+
return __awaiter(this, void 0, void 0, function* () {
|
248
|
+
const response = yield this.providersGoogleWorkspaceCreateRaw(requestParameters, initOverrides);
|
249
|
+
return yield response.value();
|
250
|
+
});
|
251
|
+
}
|
252
|
+
/**
|
253
|
+
* GoogleProvider Viewset
|
254
|
+
*/
|
255
|
+
providersGoogleWorkspaceDestroyRaw(requestParameters, initOverrides) {
|
256
|
+
return __awaiter(this, void 0, void 0, function* () {
|
257
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
258
|
+
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling providersGoogleWorkspaceDestroy.');
|
259
|
+
}
|
260
|
+
const queryParameters = {};
|
261
|
+
const headerParameters = {};
|
262
|
+
if (this.configuration && this.configuration.accessToken) {
|
263
|
+
const token = this.configuration.accessToken;
|
264
|
+
const tokenString = yield token("authentik", []);
|
265
|
+
if (tokenString) {
|
266
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
267
|
+
}
|
268
|
+
}
|
269
|
+
const response = yield this.request({
|
270
|
+
path: `/providers/google_workspace/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
271
|
+
method: 'DELETE',
|
272
|
+
headers: headerParameters,
|
273
|
+
query: queryParameters,
|
274
|
+
}, initOverrides);
|
275
|
+
return new runtime.VoidApiResponse(response);
|
276
|
+
});
|
277
|
+
}
|
278
|
+
/**
|
279
|
+
* GoogleProvider Viewset
|
280
|
+
*/
|
281
|
+
providersGoogleWorkspaceDestroy(requestParameters, initOverrides) {
|
282
|
+
return __awaiter(this, void 0, void 0, function* () {
|
283
|
+
yield this.providersGoogleWorkspaceDestroyRaw(requestParameters, initOverrides);
|
284
|
+
});
|
285
|
+
}
|
286
|
+
/**
|
287
|
+
* GoogleProvider Viewset
|
288
|
+
*/
|
289
|
+
providersGoogleWorkspaceListRaw(requestParameters, initOverrides) {
|
290
|
+
return __awaiter(this, void 0, void 0, function* () {
|
291
|
+
const queryParameters = {};
|
292
|
+
if (requestParameters.delegatedSubject !== undefined) {
|
293
|
+
queryParameters['delegated_subject'] = requestParameters.delegatedSubject;
|
294
|
+
}
|
295
|
+
if (requestParameters.excludeUsersServiceAccount !== undefined) {
|
296
|
+
queryParameters['exclude_users_service_account'] = requestParameters.excludeUsersServiceAccount;
|
297
|
+
}
|
298
|
+
if (requestParameters.filterGroup !== undefined) {
|
299
|
+
queryParameters['filter_group'] = requestParameters.filterGroup;
|
300
|
+
}
|
301
|
+
if (requestParameters.name !== undefined) {
|
302
|
+
queryParameters['name'] = requestParameters.name;
|
303
|
+
}
|
304
|
+
if (requestParameters.ordering !== undefined) {
|
305
|
+
queryParameters['ordering'] = requestParameters.ordering;
|
306
|
+
}
|
307
|
+
if (requestParameters.page !== undefined) {
|
308
|
+
queryParameters['page'] = requestParameters.page;
|
309
|
+
}
|
310
|
+
if (requestParameters.pageSize !== undefined) {
|
311
|
+
queryParameters['page_size'] = requestParameters.pageSize;
|
312
|
+
}
|
313
|
+
if (requestParameters.search !== undefined) {
|
314
|
+
queryParameters['search'] = requestParameters.search;
|
315
|
+
}
|
316
|
+
const headerParameters = {};
|
317
|
+
if (this.configuration && this.configuration.accessToken) {
|
318
|
+
const token = this.configuration.accessToken;
|
319
|
+
const tokenString = yield token("authentik", []);
|
320
|
+
if (tokenString) {
|
321
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
322
|
+
}
|
323
|
+
}
|
324
|
+
const response = yield this.request({
|
325
|
+
path: `/providers/google_workspace/`,
|
326
|
+
method: 'GET',
|
327
|
+
headers: headerParameters,
|
328
|
+
query: queryParameters,
|
329
|
+
}, initOverrides);
|
330
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedGoogleProviderListFromJSON(jsonValue));
|
331
|
+
});
|
332
|
+
}
|
333
|
+
/**
|
334
|
+
* GoogleProvider Viewset
|
335
|
+
*/
|
336
|
+
providersGoogleWorkspaceList(requestParameters = {}, initOverrides) {
|
337
|
+
return __awaiter(this, void 0, void 0, function* () {
|
338
|
+
const response = yield this.providersGoogleWorkspaceListRaw(requestParameters, initOverrides);
|
339
|
+
return yield response.value();
|
340
|
+
});
|
341
|
+
}
|
342
|
+
/**
|
343
|
+
* GoogleProvider Viewset
|
344
|
+
*/
|
345
|
+
providersGoogleWorkspacePartialUpdateRaw(requestParameters, initOverrides) {
|
346
|
+
return __awaiter(this, void 0, void 0, function* () {
|
347
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
348
|
+
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling providersGoogleWorkspacePartialUpdate.');
|
349
|
+
}
|
350
|
+
const queryParameters = {};
|
351
|
+
const headerParameters = {};
|
352
|
+
headerParameters['Content-Type'] = 'application/json';
|
353
|
+
if (this.configuration && this.configuration.accessToken) {
|
354
|
+
const token = this.configuration.accessToken;
|
355
|
+
const tokenString = yield token("authentik", []);
|
356
|
+
if (tokenString) {
|
357
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
358
|
+
}
|
359
|
+
}
|
360
|
+
const response = yield this.request({
|
361
|
+
path: `/providers/google_workspace/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
362
|
+
method: 'PATCH',
|
363
|
+
headers: headerParameters,
|
364
|
+
query: queryParameters,
|
365
|
+
body: PatchedGoogleProviderRequestToJSON(requestParameters.patchedGoogleProviderRequest),
|
366
|
+
}, initOverrides);
|
367
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GoogleProviderFromJSON(jsonValue));
|
368
|
+
});
|
369
|
+
}
|
370
|
+
/**
|
371
|
+
* GoogleProvider Viewset
|
372
|
+
*/
|
373
|
+
providersGoogleWorkspacePartialUpdate(requestParameters, initOverrides) {
|
374
|
+
return __awaiter(this, void 0, void 0, function* () {
|
375
|
+
const response = yield this.providersGoogleWorkspacePartialUpdateRaw(requestParameters, initOverrides);
|
376
|
+
return yield response.value();
|
377
|
+
});
|
378
|
+
}
|
379
|
+
/**
|
380
|
+
* GoogleProvider Viewset
|
381
|
+
*/
|
382
|
+
providersGoogleWorkspaceRetrieveRaw(requestParameters, initOverrides) {
|
383
|
+
return __awaiter(this, void 0, void 0, function* () {
|
384
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
385
|
+
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling providersGoogleWorkspaceRetrieve.');
|
386
|
+
}
|
387
|
+
const queryParameters = {};
|
388
|
+
const headerParameters = {};
|
389
|
+
if (this.configuration && this.configuration.accessToken) {
|
390
|
+
const token = this.configuration.accessToken;
|
391
|
+
const tokenString = yield token("authentik", []);
|
392
|
+
if (tokenString) {
|
393
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
394
|
+
}
|
395
|
+
}
|
396
|
+
const response = yield this.request({
|
397
|
+
path: `/providers/google_workspace/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
398
|
+
method: 'GET',
|
399
|
+
headers: headerParameters,
|
400
|
+
query: queryParameters,
|
401
|
+
}, initOverrides);
|
402
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GoogleProviderFromJSON(jsonValue));
|
403
|
+
});
|
404
|
+
}
|
405
|
+
/**
|
406
|
+
* GoogleProvider Viewset
|
407
|
+
*/
|
408
|
+
providersGoogleWorkspaceRetrieve(requestParameters, initOverrides) {
|
409
|
+
return __awaiter(this, void 0, void 0, function* () {
|
410
|
+
const response = yield this.providersGoogleWorkspaceRetrieveRaw(requestParameters, initOverrides);
|
411
|
+
return yield response.value();
|
412
|
+
});
|
413
|
+
}
|
414
|
+
/**
|
415
|
+
* Get provider\'s sync status
|
416
|
+
*/
|
417
|
+
providersGoogleWorkspaceSyncStatusRetrieveRaw(requestParameters, initOverrides) {
|
418
|
+
return __awaiter(this, void 0, void 0, function* () {
|
419
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
420
|
+
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling providersGoogleWorkspaceSyncStatusRetrieve.');
|
421
|
+
}
|
422
|
+
const queryParameters = {};
|
423
|
+
const headerParameters = {};
|
424
|
+
if (this.configuration && this.configuration.accessToken) {
|
425
|
+
const token = this.configuration.accessToken;
|
426
|
+
const tokenString = yield token("authentik", []);
|
427
|
+
if (tokenString) {
|
428
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
429
|
+
}
|
430
|
+
}
|
431
|
+
const response = yield this.request({
|
432
|
+
path: `/providers/google_workspace/{id}/sync/status/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
433
|
+
method: 'GET',
|
434
|
+
headers: headerParameters,
|
435
|
+
query: queryParameters,
|
436
|
+
}, initOverrides);
|
437
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SyncStatusFromJSON(jsonValue));
|
438
|
+
});
|
439
|
+
}
|
440
|
+
/**
|
441
|
+
* Get provider\'s sync status
|
442
|
+
*/
|
443
|
+
providersGoogleWorkspaceSyncStatusRetrieve(requestParameters, initOverrides) {
|
444
|
+
return __awaiter(this, void 0, void 0, function* () {
|
445
|
+
const response = yield this.providersGoogleWorkspaceSyncStatusRetrieveRaw(requestParameters, initOverrides);
|
446
|
+
return yield response.value();
|
447
|
+
});
|
448
|
+
}
|
449
|
+
/**
|
450
|
+
* GoogleProvider Viewset
|
451
|
+
*/
|
452
|
+
providersGoogleWorkspaceUpdateRaw(requestParameters, initOverrides) {
|
453
|
+
return __awaiter(this, void 0, void 0, function* () {
|
454
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
455
|
+
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling providersGoogleWorkspaceUpdate.');
|
456
|
+
}
|
457
|
+
if (requestParameters.googleProviderRequest === null || requestParameters.googleProviderRequest === undefined) {
|
458
|
+
throw new runtime.RequiredError('googleProviderRequest', 'Required parameter requestParameters.googleProviderRequest was null or undefined when calling providersGoogleWorkspaceUpdate.');
|
459
|
+
}
|
460
|
+
const queryParameters = {};
|
461
|
+
const headerParameters = {};
|
462
|
+
headerParameters['Content-Type'] = 'application/json';
|
463
|
+
if (this.configuration && this.configuration.accessToken) {
|
464
|
+
const token = this.configuration.accessToken;
|
465
|
+
const tokenString = yield token("authentik", []);
|
466
|
+
if (tokenString) {
|
467
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
468
|
+
}
|
469
|
+
}
|
470
|
+
const response = yield this.request({
|
471
|
+
path: `/providers/google_workspace/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
472
|
+
method: 'PUT',
|
473
|
+
headers: headerParameters,
|
474
|
+
query: queryParameters,
|
475
|
+
body: GoogleProviderRequestToJSON(requestParameters.googleProviderRequest),
|
476
|
+
}, initOverrides);
|
477
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GoogleProviderFromJSON(jsonValue));
|
478
|
+
});
|
479
|
+
}
|
480
|
+
/**
|
481
|
+
* GoogleProvider Viewset
|
482
|
+
*/
|
483
|
+
providersGoogleWorkspaceUpdate(requestParameters, initOverrides) {
|
484
|
+
return __awaiter(this, void 0, void 0, function* () {
|
485
|
+
const response = yield this.providersGoogleWorkspaceUpdateRaw(requestParameters, initOverrides);
|
486
|
+
return yield response.value();
|
487
|
+
});
|
488
|
+
}
|
489
|
+
/**
|
490
|
+
* Get a list of all objects that use this object
|
491
|
+
*/
|
492
|
+
providersGoogleWorkspaceUsedByListRaw(requestParameters, initOverrides) {
|
493
|
+
return __awaiter(this, void 0, void 0, function* () {
|
494
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
495
|
+
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling providersGoogleWorkspaceUsedByList.');
|
496
|
+
}
|
497
|
+
const queryParameters = {};
|
498
|
+
const headerParameters = {};
|
499
|
+
if (this.configuration && this.configuration.accessToken) {
|
500
|
+
const token = this.configuration.accessToken;
|
501
|
+
const tokenString = yield token("authentik", []);
|
502
|
+
if (tokenString) {
|
503
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
504
|
+
}
|
505
|
+
}
|
506
|
+
const response = yield this.request({
|
507
|
+
path: `/providers/google_workspace/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
508
|
+
method: 'GET',
|
509
|
+
headers: headerParameters,
|
510
|
+
query: queryParameters,
|
511
|
+
}, initOverrides);
|
512
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
|
513
|
+
});
|
514
|
+
}
|
515
|
+
/**
|
516
|
+
* Get a list of all objects that use this object
|
517
|
+
*/
|
518
|
+
providersGoogleWorkspaceUsedByList(requestParameters, initOverrides) {
|
519
|
+
return __awaiter(this, void 0, void 0, function* () {
|
520
|
+
const response = yield this.providersGoogleWorkspaceUsedByListRaw(requestParameters, initOverrides);
|
521
|
+
return yield response.value();
|
522
|
+
});
|
523
|
+
}
|
215
524
|
/**
|
216
525
|
* LDAPProvider Viewset
|
217
526
|
*/
|
@@ -2416,12 +2725,12 @@ export class ProvidersApi extends runtime.BaseAPI {
|
|
2416
2725
|
}
|
2417
2726
|
}
|
2418
2727
|
const response = yield this.request({
|
2419
|
-
path: `/providers/scim/{id}/
|
2728
|
+
path: `/providers/scim/{id}/sync/status/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
2420
2729
|
method: 'GET',
|
2421
2730
|
headers: headerParameters,
|
2422
2731
|
query: queryParameters,
|
2423
2732
|
}, initOverrides);
|
2424
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
2733
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SyncStatusFromJSON(jsonValue));
|
2425
2734
|
});
|
2426
2735
|
}
|
2427
2736
|
/**
|
@@ -268,6 +268,8 @@ export declare const RbacPermissionsAssignedByRolesListModelEnum: {
|
|
268
268
|
readonly PoliciesExpressionExpressionpolicy: "authentik_policies_expression.expressionpolicy";
|
269
269
|
readonly PoliciesPasswordPasswordpolicy: "authentik_policies_password.passwordpolicy";
|
270
270
|
readonly PoliciesReputationReputationpolicy: "authentik_policies_reputation.reputationpolicy";
|
271
|
+
readonly ProvidersGoogleWorkspaceGoogleworkspaceprovider: "authentik_providers_google_workspace.googleworkspaceprovider";
|
272
|
+
readonly ProvidersGoogleWorkspaceGoogleworkspaceprovidermapping: "authentik_providers_google_workspace.googleworkspaceprovidermapping";
|
271
273
|
readonly ProvidersLdapLdapprovider: "authentik_providers_ldap.ldapprovider";
|
272
274
|
readonly ProvidersOauth2Oauth2provider: "authentik_providers_oauth2.oauth2provider";
|
273
275
|
readonly ProvidersOauth2Scopemapping: "authentik_providers_oauth2.scopemapping";
|
@@ -351,6 +353,8 @@ export declare const RbacPermissionsAssignedByUsersListModelEnum: {
|
|
351
353
|
readonly PoliciesExpressionExpressionpolicy: "authentik_policies_expression.expressionpolicy";
|
352
354
|
readonly PoliciesPasswordPasswordpolicy: "authentik_policies_password.passwordpolicy";
|
353
355
|
readonly PoliciesReputationReputationpolicy: "authentik_policies_reputation.reputationpolicy";
|
356
|
+
readonly ProvidersGoogleWorkspaceGoogleworkspaceprovider: "authentik_providers_google_workspace.googleworkspaceprovider";
|
357
|
+
readonly ProvidersGoogleWorkspaceGoogleworkspaceprovidermapping: "authentik_providers_google_workspace.googleworkspaceprovidermapping";
|
354
358
|
readonly ProvidersLdapLdapprovider: "authentik_providers_ldap.ldapprovider";
|
355
359
|
readonly ProvidersOauth2Oauth2provider: "authentik_providers_oauth2.oauth2provider";
|
356
360
|
readonly ProvidersOauth2Scopemapping: "authentik_providers_oauth2.scopemapping";
|
package/dist/esm/apis/RbacApi.js
CHANGED
@@ -771,6 +771,8 @@ export const RbacPermissionsAssignedByRolesListModelEnum = {
|
|
771
771
|
PoliciesExpressionExpressionpolicy: 'authentik_policies_expression.expressionpolicy',
|
772
772
|
PoliciesPasswordPasswordpolicy: 'authentik_policies_password.passwordpolicy',
|
773
773
|
PoliciesReputationReputationpolicy: 'authentik_policies_reputation.reputationpolicy',
|
774
|
+
ProvidersGoogleWorkspaceGoogleworkspaceprovider: 'authentik_providers_google_workspace.googleworkspaceprovider',
|
775
|
+
ProvidersGoogleWorkspaceGoogleworkspaceprovidermapping: 'authentik_providers_google_workspace.googleworkspaceprovidermapping',
|
774
776
|
ProvidersLdapLdapprovider: 'authentik_providers_ldap.ldapprovider',
|
775
777
|
ProvidersOauth2Oauth2provider: 'authentik_providers_oauth2.oauth2provider',
|
776
778
|
ProvidersOauth2Scopemapping: 'authentik_providers_oauth2.scopemapping',
|
@@ -853,6 +855,8 @@ export const RbacPermissionsAssignedByUsersListModelEnum = {
|
|
853
855
|
PoliciesExpressionExpressionpolicy: 'authentik_policies_expression.expressionpolicy',
|
854
856
|
PoliciesPasswordPasswordpolicy: 'authentik_policies_password.passwordpolicy',
|
855
857
|
PoliciesReputationReputationpolicy: 'authentik_policies_reputation.reputationpolicy',
|
858
|
+
ProvidersGoogleWorkspaceGoogleworkspaceprovider: 'authentik_providers_google_workspace.googleworkspaceprovider',
|
859
|
+
ProvidersGoogleWorkspaceGoogleworkspaceprovidermapping: 'authentik_providers_google_workspace.googleworkspaceprovidermapping',
|
856
860
|
ProvidersLdapLdapprovider: 'authentik_providers_ldap.ldapprovider',
|
857
861
|
ProvidersOauth2Oauth2provider: 'authentik_providers_oauth2.oauth2provider',
|
858
862
|
ProvidersOauth2Scopemapping: 'authentik_providers_oauth2.scopemapping',
|
@@ -10,7 +10,7 @@
|
|
10
10
|
* Do not edit the class manually.
|
11
11
|
*/
|
12
12
|
import * as runtime from '../runtime';
|
13
|
-
import type { FilePathRequest, LDAPDebug, LDAPSource, LDAPSourceRequest,
|
13
|
+
import type { FilePathRequest, LDAPDebug, LDAPSource, LDAPSourceRequest, OAuthSource, OAuthSourceRequest, PaginatedLDAPSourceList, PaginatedOAuthSourceList, PaginatedPlexSourceConnectionList, PaginatedPlexSourceList, PaginatedSAMLSourceList, PaginatedSCIMSourceGroupList, PaginatedSCIMSourceList, PaginatedSCIMSourceUserList, PaginatedSourceList, PaginatedUserOAuthSourceConnectionList, PaginatedUserSAMLSourceConnectionList, PaginatedUserSourceConnectionList, PatchedLDAPSourceRequest, PatchedOAuthSourceRequest, PatchedPlexSourceConnectionRequest, PatchedPlexSourceRequest, PatchedSAMLSourceRequest, PatchedSCIMSourceGroupRequest, PatchedSCIMSourceRequest, PatchedSCIMSourceUserRequest, PatchedUserOAuthSourceConnectionRequest, PatchedUserSAMLSourceConnectionRequest, PlexSource, PlexSourceConnection, PlexSourceConnectionRequest, PlexSourceRequest, PlexTokenRedeemRequest, RedirectChallenge, SAMLMetadata, SAMLSource, SAMLSourceRequest, SCIMSource, SCIMSourceGroup, SCIMSourceGroupRequest, SCIMSourceRequest, SCIMSourceUser, SCIMSourceUserRequest, Source, SourceType, SyncStatus, TypeCreate, UsedBy, UserOAuthSourceConnection, UserOAuthSourceConnectionRequest, UserSAMLSourceConnection, UserSAMLSourceConnectionRequest, UserSetting, UserSourceConnection } from '../models';
|
14
14
|
export interface SourcesAllDestroyRequest {
|
15
15
|
slug: string;
|
16
16
|
}
|
@@ -537,11 +537,11 @@ export declare class SourcesApi extends runtime.BaseAPI {
|
|
537
537
|
/**
|
538
538
|
* Get source\'s sync status
|
539
539
|
*/
|
540
|
-
sourcesLdapSyncStatusRetrieveRaw(requestParameters: SourcesLdapSyncStatusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
540
|
+
sourcesLdapSyncStatusRetrieveRaw(requestParameters: SourcesLdapSyncStatusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SyncStatus>>;
|
541
541
|
/**
|
542
542
|
* Get source\'s sync status
|
543
543
|
*/
|
544
|
-
sourcesLdapSyncStatusRetrieve(requestParameters: SourcesLdapSyncStatusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
544
|
+
sourcesLdapSyncStatusRetrieve(requestParameters: SourcesLdapSyncStatusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SyncStatus>;
|
545
545
|
/**
|
546
546
|
* LDAP Source Viewset
|
547
547
|
*/
|
@@ -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 { FilePathRequestToJSON, LDAPDebugFromJSON, LDAPSourceFromJSON, LDAPSourceRequestToJSON,
|
24
|
+
import { FilePathRequestToJSON, LDAPDebugFromJSON, LDAPSourceFromJSON, LDAPSourceRequestToJSON, OAuthSourceFromJSON, OAuthSourceRequestToJSON, PaginatedLDAPSourceListFromJSON, PaginatedOAuthSourceListFromJSON, PaginatedPlexSourceConnectionListFromJSON, PaginatedPlexSourceListFromJSON, PaginatedSAMLSourceListFromJSON, PaginatedSCIMSourceGroupListFromJSON, PaginatedSCIMSourceListFromJSON, PaginatedSCIMSourceUserListFromJSON, PaginatedSourceListFromJSON, PaginatedUserOAuthSourceConnectionListFromJSON, PaginatedUserSAMLSourceConnectionListFromJSON, PaginatedUserSourceConnectionListFromJSON, PatchedLDAPSourceRequestToJSON, PatchedOAuthSourceRequestToJSON, PatchedPlexSourceConnectionRequestToJSON, PatchedPlexSourceRequestToJSON, PatchedSAMLSourceRequestToJSON, PatchedSCIMSourceGroupRequestToJSON, PatchedSCIMSourceRequestToJSON, PatchedSCIMSourceUserRequestToJSON, PatchedUserOAuthSourceConnectionRequestToJSON, PatchedUserSAMLSourceConnectionRequestToJSON, PlexSourceFromJSON, PlexSourceConnectionFromJSON, PlexSourceConnectionRequestToJSON, PlexSourceRequestToJSON, PlexTokenRedeemRequestToJSON, RedirectChallengeFromJSON, SAMLMetadataFromJSON, SAMLSourceFromJSON, SAMLSourceRequestToJSON, SCIMSourceFromJSON, SCIMSourceGroupFromJSON, SCIMSourceGroupRequestToJSON, SCIMSourceRequestToJSON, SCIMSourceUserFromJSON, SCIMSourceUserRequestToJSON, SourceFromJSON, SourceTypeFromJSON, SyncStatusFromJSON, TypeCreateFromJSON, UsedByFromJSON, UserOAuthSourceConnectionFromJSON, UserOAuthSourceConnectionRequestToJSON, UserSAMLSourceConnectionFromJSON, UserSAMLSourceConnectionRequestToJSON, UserSettingFromJSON, UserSourceConnectionFromJSON, } from '../models';
|
25
25
|
/**
|
26
26
|
*
|
27
27
|
*/
|
@@ -651,12 +651,12 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
651
651
|
}
|
652
652
|
}
|
653
653
|
const response = yield this.request({
|
654
|
-
path: `/sources/ldap/{slug}/
|
654
|
+
path: `/sources/ldap/{slug}/sync/status/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
655
655
|
method: 'GET',
|
656
656
|
headers: headerParameters,
|
657
657
|
query: queryParameters,
|
658
658
|
}, initOverrides);
|
659
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
659
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SyncStatusFromJSON(jsonValue));
|
660
660
|
});
|
661
661
|
}
|
662
662
|
/**
|
@@ -65,6 +65,7 @@ export declare const AppEnum: {
|
|
65
65
|
readonly Core: "authentik.core";
|
66
66
|
readonly Enterprise: "authentik.enterprise";
|
67
67
|
readonly EnterpriseAudit: "authentik.enterprise.audit";
|
68
|
+
readonly EnterpriseProvidersGoogleWorkspace: "authentik.enterprise.providers.google_workspace";
|
68
69
|
readonly EnterpriseProvidersRac: "authentik.enterprise.providers.rac";
|
69
70
|
readonly EnterpriseStagesSource: "authentik.enterprise.stages.source";
|
70
71
|
readonly Events: "authentik.events";
|
@@ -67,6 +67,7 @@ export const AppEnum = {
|
|
67
67
|
Core: 'authentik.core',
|
68
68
|
Enterprise: 'authentik.enterprise',
|
69
69
|
EnterpriseAudit: 'authentik.enterprise.audit',
|
70
|
+
EnterpriseProvidersGoogleWorkspace: 'authentik.enterprise.providers.google_workspace',
|
70
71
|
EnterpriseProvidersRac: 'authentik.enterprise.providers.rac',
|
71
72
|
EnterpriseStagesSource: 'authentik.enterprise.stages.source',
|
72
73
|
Events: 'authentik.events',
|
@@ -0,0 +1,134 @@
|
|
1
|
+
/**
|
2
|
+
* authentik
|
3
|
+
* Making authentication simple.
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 2024.4.2
|
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 { GoogleWorkspaceDeleteAction } from './GoogleWorkspaceDeleteAction';
|
13
|
+
/**
|
14
|
+
* GoogleProvider Serializer
|
15
|
+
* @export
|
16
|
+
* @interface GoogleProvider
|
17
|
+
*/
|
18
|
+
export interface GoogleProvider {
|
19
|
+
/**
|
20
|
+
*
|
21
|
+
* @type {number}
|
22
|
+
* @memberof GoogleProvider
|
23
|
+
*/
|
24
|
+
readonly pk: number;
|
25
|
+
/**
|
26
|
+
*
|
27
|
+
* @type {string}
|
28
|
+
* @memberof GoogleProvider
|
29
|
+
*/
|
30
|
+
name: string;
|
31
|
+
/**
|
32
|
+
*
|
33
|
+
* @type {Array<string>}
|
34
|
+
* @memberof GoogleProvider
|
35
|
+
*/
|
36
|
+
propertyMappings?: Array<string>;
|
37
|
+
/**
|
38
|
+
* Property mappings used for group creation/updating.
|
39
|
+
* @type {Array<string>}
|
40
|
+
* @memberof GoogleProvider
|
41
|
+
*/
|
42
|
+
propertyMappingsGroup?: Array<string>;
|
43
|
+
/**
|
44
|
+
* Get object component so that we know how to edit the object
|
45
|
+
* @type {string}
|
46
|
+
* @memberof GoogleProvider
|
47
|
+
*/
|
48
|
+
readonly component: string;
|
49
|
+
/**
|
50
|
+
* Internal application name, used in URLs.
|
51
|
+
* @type {string}
|
52
|
+
* @memberof GoogleProvider
|
53
|
+
*/
|
54
|
+
readonly assignedBackchannelApplicationSlug: string;
|
55
|
+
/**
|
56
|
+
* Application's display Name.
|
57
|
+
* @type {string}
|
58
|
+
* @memberof GoogleProvider
|
59
|
+
*/
|
60
|
+
readonly assignedBackchannelApplicationName: string;
|
61
|
+
/**
|
62
|
+
* Return object's verbose_name
|
63
|
+
* @type {string}
|
64
|
+
* @memberof GoogleProvider
|
65
|
+
*/
|
66
|
+
readonly verboseName: string;
|
67
|
+
/**
|
68
|
+
* Return object's plural verbose_name
|
69
|
+
* @type {string}
|
70
|
+
* @memberof GoogleProvider
|
71
|
+
*/
|
72
|
+
readonly verboseNamePlural: string;
|
73
|
+
/**
|
74
|
+
* Return internal model name
|
75
|
+
* @type {string}
|
76
|
+
* @memberof GoogleProvider
|
77
|
+
*/
|
78
|
+
readonly metaModelName: string;
|
79
|
+
/**
|
80
|
+
*
|
81
|
+
* @type {string}
|
82
|
+
* @memberof GoogleProvider
|
83
|
+
*/
|
84
|
+
delegatedSubject: string;
|
85
|
+
/**
|
86
|
+
*
|
87
|
+
* @type {any}
|
88
|
+
* @memberof GoogleProvider
|
89
|
+
*/
|
90
|
+
credentials: any | null;
|
91
|
+
/**
|
92
|
+
*
|
93
|
+
* @type {string}
|
94
|
+
* @memberof GoogleProvider
|
95
|
+
*/
|
96
|
+
scopes?: string;
|
97
|
+
/**
|
98
|
+
*
|
99
|
+
* @type {boolean}
|
100
|
+
* @memberof GoogleProvider
|
101
|
+
*/
|
102
|
+
excludeUsersServiceAccount?: boolean;
|
103
|
+
/**
|
104
|
+
*
|
105
|
+
* @type {string}
|
106
|
+
* @memberof GoogleProvider
|
107
|
+
*/
|
108
|
+
filterGroup?: string | null;
|
109
|
+
/**
|
110
|
+
*
|
111
|
+
* @type {GoogleWorkspaceDeleteAction}
|
112
|
+
* @memberof GoogleProvider
|
113
|
+
*/
|
114
|
+
userDeleteAction?: GoogleWorkspaceDeleteAction;
|
115
|
+
/**
|
116
|
+
*
|
117
|
+
* @type {GoogleWorkspaceDeleteAction}
|
118
|
+
* @memberof GoogleProvider
|
119
|
+
*/
|
120
|
+
groupDeleteAction?: GoogleWorkspaceDeleteAction;
|
121
|
+
/**
|
122
|
+
*
|
123
|
+
* @type {string}
|
124
|
+
* @memberof GoogleProvider
|
125
|
+
*/
|
126
|
+
defaultGroupEmailDomain: string;
|
127
|
+
}
|
128
|
+
/**
|
129
|
+
* Check if a given object implements the GoogleProvider interface.
|
130
|
+
*/
|
131
|
+
export declare function instanceOfGoogleProvider(value: object): boolean;
|
132
|
+
export declare function GoogleProviderFromJSON(json: any): GoogleProvider;
|
133
|
+
export declare function GoogleProviderFromJSONTyped(json: any, ignoreDiscriminator: boolean): GoogleProvider;
|
134
|
+
export declare function GoogleProviderToJSON(value?: GoogleProvider | null): any;
|