ldap-rest 2.0.2 → 2.0.4
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/dist/abstract/ldapFlat.js +1 -1
- package/dist/lib/authz/base.js +1 -1
- package/dist/lib/entitySchema/validator.js +1 -1
- package/dist/lib/utils.js +1 -1
- package/dist/plugins/auth/auth.options.js +1 -1
- package/dist/plugins/auth/authzDynamic.js +1 -1
- package/dist/plugins/auth/openidconnect.js +1 -1
- package/dist/plugins/auth/trustedProxy.js +1 -1
- package/dist/plugins/ldap/departmentSync.js +1 -1
- package/dist/plugins/ldap/organizations.js +1 -1
- package/dist/plugins/scim/baseResolver.js +1 -1
- package/dist/src/abstract/ldapFlat.d.ts +6 -6
- package/dist/src/abstract/plugin.d.ts +11 -11
- package/dist/src/abstract/twakePlugin.d.ts +4 -4
- package/dist/src/bin/index.d.ts +10 -10
- package/dist/src/browser/ldap-browser/LdapBrowser.d.ts +1 -1
- package/dist/src/browser/ldap-browser/api/RawApiClient.d.ts +1 -1
- package/dist/src/browser/ldap-browser/components/EntryTree.d.ts +2 -2
- package/dist/src/browser/ldap-browser/components/EntryView.d.ts +2 -2
- package/dist/src/browser/ldap-browser/index.d.ts +4 -5
- package/dist/src/browser/ldap-browser/schema.d.ts +1 -1
- package/dist/src/browser/ldap-group-editor/LdapGroupEditor.d.ts +2 -2
- package/dist/src/browser/ldap-group-editor/api/GroupApiClient.d.ts +1 -1
- package/dist/src/browser/ldap-group-editor/components/CreateGroupModal.d.ts +2 -2
- package/dist/src/browser/ldap-group-editor/components/GroupPropertyEditor.d.ts +1 -1
- package/dist/src/browser/ldap-group-editor/components/MoveGroupModal.d.ts +1 -1
- package/dist/src/browser/ldap-group-editor/types.d.ts +1 -1
- package/dist/src/browser/ldap-resource-editor/api/ResourceApiClient.d.ts +2 -2
- package/dist/src/browser/ldap-resource-editor/index.d.ts +2 -2
- package/dist/src/browser/ldap-resource-editor/types.d.ts +1 -1
- package/dist/src/browser/ldap-tree-viewer/LdapTreeViewer.d.ts +1 -1
- package/dist/src/browser/ldap-tree-viewer/components/TreeNode.d.ts +2 -2
- package/dist/src/browser/ldap-tree-viewer/components/TreeRoot.d.ts +2 -2
- package/dist/src/browser/ldap-tree-viewer/index.d.ts +2 -3
- package/dist/src/browser/ldap-tree-viewer/store/actions.d.ts +2 -2
- package/dist/src/browser/ldap-tree-viewer/store/reducers.d.ts +2 -2
- package/dist/src/browser/ldap-unit-editor/LdapUnitEditor.d.ts +1 -1
- package/dist/src/browser/ldap-unit-editor/api/UnitApiClient.d.ts +1 -1
- package/dist/src/browser/ldap-unit-editor/components/MoveUnitModal.d.ts +1 -1
- package/dist/src/browser/ldap-unit-editor/components/UnitPropertyEditor.d.ts +1 -1
- package/dist/src/browser/ldap-unit-editor/types.d.ts +1 -1
- package/dist/src/browser/ldap-user-editor/LdapUserEditor.d.ts +2 -2
- package/dist/src/browser/ldap-user-editor/api/UserApiClient.d.ts +2 -2
- package/dist/src/browser/ldap-user-editor/components/MoveUserModal.d.ts +1 -1
- package/dist/src/browser/ldap-user-editor/components/PointerField.d.ts +2 -2
- package/dist/src/browser/ldap-user-editor/components/UserEditor.d.ts +1 -1
- package/dist/src/browser/ldap-user-editor/components/UserList.d.ts +1 -1
- package/dist/src/browser/ldap-user-editor/components/UserTree.d.ts +1 -1
- package/dist/src/browser/ldap-user-editor/index.d.ts +2 -3
- package/dist/src/browser/ldap-user-editor/types.d.ts +1 -1
- package/dist/src/browser/shared/components/Modal.d.ts +1 -1
- package/dist/src/browser/shared/index.d.ts +7 -7
- package/dist/src/browser/shared/utils/form.d.ts +1 -1
- package/dist/src/browser/shared/utils/schema.d.ts +1 -1
- package/dist/src/config/args.d.ts +3 -3
- package/dist/src/config/options.d.ts +2 -2
- package/dist/src/config/schema.d.ts +1 -1
- package/dist/src/hooks.d.ts +5 -5
- package/dist/src/lib/auth/base.d.ts +2 -2
- package/dist/src/lib/authz/base.d.ts +15 -20
- package/dist/src/lib/authz/composition.d.ts +4 -4
- package/dist/src/lib/entitySchema/validator.d.ts +23 -2
- package/dist/src/lib/expressFormatedResponses.d.ts +1 -1
- package/dist/src/lib/health.d.ts +1 -1
- package/dist/src/lib/hookBus.d.ts +1 -1
- package/dist/src/lib/ldap/schema.d.ts +2 -2
- package/dist/src/lib/ldapActions.d.ts +5 -5
- package/dist/src/lib/mailDomains.d.ts +1 -1
- package/dist/src/lib/parseConfig.d.ts +1 -1
- package/dist/src/lib/schemaFile.d.ts +1 -1
- package/dist/src/lib/staticFiles.d.ts +1 -1
- package/dist/src/lib/storage/store.d.ts +1 -1
- package/dist/src/lib/utils.d.ts +3 -3
- package/dist/src/logger/winston.d.ts +1 -1
- package/dist/src/plugins/auth/auth.options.d.ts +39 -38
- package/dist/src/plugins/auth/authzDynamic.d.ts +24 -11
- package/dist/src/plugins/auth/authzLinid1.d.ts +7 -7
- package/dist/src/plugins/auth/authzPerBranch.d.ts +8 -8
- package/dist/src/plugins/auth/authzPerRoute.d.ts +2 -2
- package/dist/src/plugins/auth/authzScope.d.ts +1 -1
- package/dist/src/plugins/auth/crowdsec.d.ts +4 -4
- package/dist/src/plugins/auth/fake.d.ts +3 -3
- package/dist/src/plugins/auth/hmac.d.ts +4 -4
- package/dist/src/plugins/auth/llng.d.ts +20 -5
- package/dist/src/plugins/auth/openidconnect.d.ts +29 -8
- package/dist/src/plugins/auth/rateLimit.d.ts +3 -3
- package/dist/src/plugins/auth/token.d.ts +3 -3
- package/dist/src/plugins/auth/totp.d.ts +5 -5
- package/dist/src/plugins/auth/trustedProxy.d.ts +16 -32
- package/dist/src/plugins/bcl.d.ts +4 -4
- package/dist/src/plugins/bcl.options.d.ts +3 -3
- package/dist/src/plugins/configApi.d.ts +1 -1
- package/dist/src/plugins/demo/helloworld.d.ts +1 -1
- package/dist/src/plugins/ldap/accountLifecycle.d.ts +1 -1
- package/dist/src/plugins/ldap/bulkImport.d.ts +5 -5
- package/dist/src/plugins/ldap/departmentSync.d.ts +14 -3
- package/dist/src/plugins/ldap/enterpriseRules.d.ts +7 -7
- package/dist/src/plugins/ldap/externalUsersInGroups.d.ts +6 -6
- package/dist/src/plugins/ldap/flatGeneric.d.ts +6 -6
- package/dist/src/plugins/ldap/groups.d.ts +8 -8
- package/dist/src/plugins/ldap/ldap.options.d.ts +45 -45
- package/dist/src/plugins/ldap/onChange.d.ts +4 -4
- package/dist/src/plugins/ldap/organization.d.ts +1 -1
- package/dist/src/plugins/ldap/organizations.d.ts +12 -12
- package/dist/src/plugins/ldap/passwordPolicy.d.ts +11 -11
- package/dist/src/plugins/ldap/raw.d.ts +8 -8
- package/dist/src/plugins/ldap/trash.d.ts +6 -6
- package/dist/src/plugins/metrics.d.ts +3 -3
- package/dist/src/plugins/metrics.options.d.ts +3 -3
- package/dist/src/plugins/rabbitmq.d.ts +4 -4
- package/dist/src/plugins/rabbitmq.options.d.ts +3 -3
- package/dist/src/plugins/scim/baseResolver.d.ts +3 -3
- package/dist/src/plugins/scim/bulk.d.ts +7 -7
- package/dist/src/plugins/scim/discovery.d.ts +4 -4
- package/dist/src/plugins/scim/errors.d.ts +3 -3
- package/dist/src/plugins/scim/filter.d.ts +1 -1
- package/dist/src/plugins/scim/groups.d.ts +8 -8
- package/dist/src/plugins/scim/list.d.ts +1 -1
- package/dist/src/plugins/scim/mapping.d.ts +2 -2
- package/dist/src/plugins/scim/patch.d.ts +2 -2
- package/dist/src/plugins/scim/scim.d.ts +30 -30
- package/dist/src/plugins/scim/scim.options.d.ts +27 -27
- package/dist/src/plugins/scim/users.d.ts +6 -6
- package/dist/src/plugins/static.d.ts +6 -6
- package/dist/src/plugins/static.options.d.ts +6 -6
- package/dist/src/plugins/storage/file.d.ts +2 -2
- package/dist/src/plugins/storage/ldap.d.ts +2 -2
- package/dist/src/plugins/storage/postgres.d.ts +2 -2
- package/dist/src/plugins/storage/valkey.d.ts +2 -2
- package/dist/src/plugins/storage.d.ts +13 -13
- package/dist/src/plugins/storage.options.d.ts +11 -11
- package/dist/src/plugins/twake/appAccounts.options.d.ts +6 -6
- package/dist/src/plugins/twake/appAccountsApi.d.ts +7 -7
- package/dist/src/plugins/twake/appAccountsConsistency.d.ts +9 -9
- package/dist/src/plugins/twake/calendar.d.ts +14 -14
- package/dist/src/plugins/twake/calendar.options.d.ts +11 -11
- package/dist/src/plugins/twake/calendarResources.d.ts +1 -1
- package/dist/src/plugins/twake/cloudery.options.d.ts +18 -18
- package/dist/src/plugins/twake/clouderyProvision.d.ts +19 -19
- package/dist/src/plugins/twake/cozy.options.d.ts +14 -14
- package/dist/src/plugins/twake/cozyProvision.d.ts +15 -15
- package/dist/src/plugins/twake/drive.d.ts +9 -9
- package/dist/src/plugins/twake/drive.options.d.ts +7 -7
- package/dist/src/plugins/twake/groups.d.ts +16 -16
- package/dist/src/plugins/twake/instances.d.ts +38 -38
- package/dist/src/plugins/twake/james.d.ts +18 -18
- package/dist/src/plugins/twake/james.options.d.ts +13 -13
- package/dist/src/plugins/twake/lifecycleAttributes.d.ts +2 -2
- package/dist/src/plugins/twake/lifecycleEvents.d.ts +13 -13
- package/dist/src/plugins/twake/migrationProxy.d.ts +11 -11
- package/dist/src/plugins/twake/migrationProxy.options.d.ts +8 -8
- package/dist/src/plugins/twake/spaces.d.ts +12 -12
- package/dist/src/plugins/twake/tombstone.d.ts +10 -10
- package/dist/src/plugins/twake/twakeGroups.options.d.ts +12 -12
- package/dist/src/plugins/twake/twakeInstances.options.d.ts +35 -35
- package/dist/src/plugins/twake/twakeLifecycle.options.d.ts +12 -12
- package/dist/src/plugins/twake/twakeSpaces.options.d.ts +11 -11
- package/dist/src/plugins/twake/twakeTombstone.options.d.ts +9 -9
- package/dist/src/plugins/weblogs.d.ts +1 -1
- package/docs/client-development/schemas/README.md +6 -1
- package/docs/development/contracts.md +22 -0
- package/docs/presentations/en.md +1 -1
- package/docs/presentations/fr.md +1 -1
- package/docs/usage/configuration.md +1 -0
- package/docs/usage/plugins/auth/authz-dynamic.md +3 -1
- package/docs/usage/plugins/auth/authz-linid1.md +10 -5
- package/docs/usage/plugins/auth/oidc.md +11 -0
- package/docs/usage/plugins/auth/trusted-proxy.md +11 -1
- package/docs/usage/upgrading.md +61 -0
- package/package.json +4 -3
- package/static/browser/ldap-user-editor.esm.js.map +1 -1
- package/static/browser/ldap-user-editor.js.map +1 -1
- package/static/browser/ldap-user-editor.min.js.map +1 -1
- package/static/browser/shared/utils/schema.js.map +1 -1
- package/static/browser/shared.esm.js.map +1 -1
- package/static/browser/shared.js.map +1 -1
- package/static/browser/shared.min.js.map +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Config } from '../../config/args';
|
|
2
|
-
import { type DmRequest } from '../../lib/auth/base';
|
|
3
|
-
import { type ScimOptions } from './scim.options';
|
|
1
|
+
import type { Config } from '../../config/args.js';
|
|
2
|
+
import { type DmRequest } from '../../lib/auth/base.js';
|
|
3
|
+
import { type ScimOptions } from './scim.options.js';
|
|
4
4
|
export interface BaseMapEntry {
|
|
5
5
|
userBase?: string;
|
|
6
6
|
groupBase?: string;
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
* dispatch).
|
|
12
12
|
*/
|
|
13
13
|
import type winston from 'winston';
|
|
14
|
-
import type { DmRequest } from '../../lib/auth/base';
|
|
15
|
-
import type HookBus from '../../lib/hookBus';
|
|
16
|
-
import type { ScimUsers } from './users';
|
|
17
|
-
import type { ScimOptions } from './scim.options';
|
|
18
|
-
import type { ScimGroups } from './groups';
|
|
19
|
-
import { type BulkRequest, type BulkResponse } from './types';
|
|
20
|
-
import { writeScimErrorFromException } from './errors';
|
|
14
|
+
import type { DmRequest } from '../../lib/auth/base.js';
|
|
15
|
+
import type HookBus from '../../lib/hookBus.js';
|
|
16
|
+
import type { ScimUsers } from './users.js';
|
|
17
|
+
import type { ScimOptions } from './scim.options.js';
|
|
18
|
+
import type { ScimGroups } from './groups.js';
|
|
19
|
+
import { type BulkRequest, type BulkResponse } from './types.js';
|
|
20
|
+
import { writeScimErrorFromException } from './errors.js';
|
|
21
21
|
export interface ScimBulkOptions {
|
|
22
22
|
options: ScimOptions;
|
|
23
23
|
logger: winston.Logger;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Config } from '../../config/args';
|
|
2
|
-
import type { DmRequest } from '../../lib/auth/base';
|
|
3
|
-
import type { ScimOptions } from './scim.options';
|
|
4
|
-
import { type ResourceTypeDefinition, type ServiceProviderConfig, type SchemaDefinition } from './types';
|
|
1
|
+
import type { Config } from '../../config/args.js';
|
|
2
|
+
import type { DmRequest } from '../../lib/auth/base.js';
|
|
3
|
+
import type { ScimOptions } from './scim.options.js';
|
|
4
|
+
import { type ResourceTypeDefinition, type ServiceProviderConfig, type SchemaDefinition } from './types.js';
|
|
5
5
|
export interface DiscoveryOptions {
|
|
6
6
|
config: Config;
|
|
7
7
|
options: ScimOptions;
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* SCIM 2.0 error envelope (RFC 7644 §3.12) and async handler wrapper.
|
|
6
6
|
*/
|
|
7
7
|
import type { Request, Response, NextFunction, RequestHandler } from 'express';
|
|
8
|
-
import { HttpError } from '../../lib/errors';
|
|
9
|
-
import { extractLdapCode } from '../../lib/ldapCodes';
|
|
8
|
+
import { HttpError } from '../../lib/errors.js';
|
|
9
|
+
import { extractLdapCode } from '../../lib/ldapCodes.js';
|
|
10
10
|
export { extractLdapCode };
|
|
11
|
-
import { type ScimErrorResponse, type ScimErrorType } from './types';
|
|
11
|
+
import { type ScimErrorResponse, type ScimErrorType } from './types.js';
|
|
12
12
|
export declare const SCIM_CONTENT_TYPE = "application/scim+json";
|
|
13
13
|
export declare class ScimError extends HttpError {
|
|
14
14
|
scimType?: ScimErrorType;
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
* SCIM Groups resource handler — direct access via ldapActions.
|
|
6
6
|
*/
|
|
7
7
|
import type winston from 'winston';
|
|
8
|
-
import type ldapActions from '../../lib/ldapActions';
|
|
9
|
-
import type { Config } from '../../config/args';
|
|
10
|
-
import type { DmRequest } from '../../lib/auth/base';
|
|
11
|
-
import type HookBus from '../../lib/hookBus';
|
|
12
|
-
import { BaseResolver } from './baseResolver';
|
|
13
|
-
import { type ResourceMapping, type ScimGroup, type ListResponse, type PatchRequest } from './types';
|
|
14
|
-
import type { ScimUsers } from './users';
|
|
15
|
-
import type { ScimOptions } from './scim.options';
|
|
8
|
+
import type ldapActions from '../../lib/ldapActions.js';
|
|
9
|
+
import type { Config } from '../../config/args.js';
|
|
10
|
+
import type { DmRequest } from '../../lib/auth/base.js';
|
|
11
|
+
import type HookBus from '../../lib/hookBus.js';
|
|
12
|
+
import { BaseResolver } from './baseResolver.js';
|
|
13
|
+
import { type ResourceMapping, type ScimGroup, type ListResponse, type PatchRequest } from './types.js';
|
|
14
|
+
import type { ScimUsers } from './users.js';
|
|
15
|
+
import type { ScimOptions } from './scim.options.js';
|
|
16
16
|
export interface GroupListQuery {
|
|
17
17
|
filter?: string;
|
|
18
18
|
startIndex?: number;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* `tooMany` RFC 7644 §3.12 provides for a filter yielding "many more results
|
|
17
17
|
* than the server is willing to calculate or process".
|
|
18
18
|
*/
|
|
19
|
-
import type { AttributesList, RequestBoundLdap } from '../../lib/ldapActions';
|
|
19
|
+
import type { AttributesList, RequestBoundLdap } from '../../lib/ldapActions.js';
|
|
20
20
|
export interface PagedSearch {
|
|
21
21
|
/** The directory bound to the request, so authorization always applies. */
|
|
22
22
|
directory: RequestBoundLdap;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AttributesList } from '../../lib/ldapActions';
|
|
2
|
-
import { type ScimUser, type ScimGroup, type ResourceMapping, type MultiValued } from './types';
|
|
1
|
+
import type { AttributesList } from '../../lib/ldapActions.js';
|
|
2
|
+
import { type ScimUser, type ScimGroup, type ResourceMapping, type MultiValued } from './types.js';
|
|
3
3
|
export declare const DEFAULT_USER_MAPPING: ResourceMapping;
|
|
4
4
|
/**
|
|
5
5
|
* Group mapping.
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
* member operations for Groups are handled via the caller-provided
|
|
20
20
|
* `resolveMemberRef` hook (SCIM id → LDAP DN lookup).
|
|
21
21
|
*/
|
|
22
|
-
import type { AttributesList, ModifyRequest } from '../../lib/ldapActions';
|
|
23
|
-
import { type ResourceMapping, type PatchRequest } from './types';
|
|
22
|
+
import type { AttributesList, ModifyRequest } from '../../lib/ldapActions.js';
|
|
23
|
+
import { type ResourceMapping, type PatchRequest } from './types.js';
|
|
24
24
|
export interface PatchContext {
|
|
25
25
|
mapping: ResourceMapping;
|
|
26
26
|
/** For Groups: resolve SCIM member value (id or $ref) → LDAP DN. Async. */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Express, RequestHandler } from 'express';
|
|
2
|
-
import DmPlugin, { type Role } from '../../abstract/plugin';
|
|
3
|
-
import type { DM } from '../../bin';
|
|
4
|
-
import type ldapActions from '../../lib/ldapActions';
|
|
5
|
-
import { type ScimOptions } from './scim.options';
|
|
6
|
-
import { writeScimErrorFromException } from './errors';
|
|
2
|
+
import DmPlugin, { type Role } from '../../abstract/plugin.js';
|
|
3
|
+
import type { DM } from '../../bin/index.js';
|
|
4
|
+
import type ldapActions from '../../lib/ldapActions.js';
|
|
5
|
+
import { type ScimOptions } from './scim.options.js';
|
|
6
|
+
import { writeScimErrorFromException } from './errors.js';
|
|
7
7
|
/**
|
|
8
8
|
* Reusable SCIM 2.0 schemas surfaced by this plugin.
|
|
9
9
|
* Picked up by scripts/generate-openapi.ts and merged into `components.schemas`.
|
|
@@ -410,31 +410,31 @@ export declare const ScimNameParams: import("@sinclair/typebox").TObject<{
|
|
|
410
410
|
}>;
|
|
411
411
|
export default class Scim extends DmPlugin {
|
|
412
412
|
static optionDefinitions: {
|
|
413
|
-
scim_prefix: import("../../config/options").StringOption;
|
|
414
|
-
scim_user_base: import("../../config/options").StringOption;
|
|
415
|
-
scim_group_base: import("../../config/options").StringOption;
|
|
416
|
-
scim_user_base_template: import("../../config/options").StringOption;
|
|
417
|
-
scim_group_base_template: import("../../config/options").StringOption;
|
|
418
|
-
scim_base_map: import("../../config/options").StringOption;
|
|
419
|
-
scim_user_base_header: import("../../config/options").StringOption;
|
|
420
|
-
scim_group_base_header: import("../../config/options").StringOption;
|
|
421
|
-
scim_base_header_root: import("../../config/options").StringOption;
|
|
422
|
-
scim_user_object_class: import("../../config/options").ArrayOption;
|
|
423
|
-
scim_user_rdn_attribute: import("../../config/options").StringOption;
|
|
424
|
-
scim_user_lock_attribute: import("../../config/options").StringOption;
|
|
425
|
-
scim_user_lock_value: import("../../config/options").StringOption;
|
|
426
|
-
scim_group_object_class: import("../../config/options").ArrayOption;
|
|
427
|
-
scim_group_rdn_attribute: import("../../config/options").StringOption;
|
|
428
|
-
scim_group_external_id_attribute: import("../../config/options").StringOption;
|
|
429
|
-
scim_id_attribute: import("../../config/options").StringOption;
|
|
430
|
-
scim_user_mapping: import("../../config/options").StringOption;
|
|
431
|
-
scim_group_mapping: import("../../config/options").StringOption;
|
|
432
|
-
scim_max_results: import("../../config/options").NumberOption;
|
|
433
|
-
scim_max_scanned: import("../../config/options").NumberOption;
|
|
434
|
-
scim_bulk_max_operations: import("../../config/options").NumberOption;
|
|
435
|
-
scim_bulk_max_payload_size: import("../../config/options").NumberOption;
|
|
436
|
-
scim_etag: import("../../config/options").BooleanOption;
|
|
437
|
-
scim_base_url: import("../../config/options").StringOption;
|
|
413
|
+
scim_prefix: import("../../config/options.js").StringOption;
|
|
414
|
+
scim_user_base: import("../../config/options.js").StringOption;
|
|
415
|
+
scim_group_base: import("../../config/options.js").StringOption;
|
|
416
|
+
scim_user_base_template: import("../../config/options.js").StringOption;
|
|
417
|
+
scim_group_base_template: import("../../config/options.js").StringOption;
|
|
418
|
+
scim_base_map: import("../../config/options.js").StringOption;
|
|
419
|
+
scim_user_base_header: import("../../config/options.js").StringOption;
|
|
420
|
+
scim_group_base_header: import("../../config/options.js").StringOption;
|
|
421
|
+
scim_base_header_root: import("../../config/options.js").StringOption;
|
|
422
|
+
scim_user_object_class: import("../../config/options.js").ArrayOption;
|
|
423
|
+
scim_user_rdn_attribute: import("../../config/options.js").StringOption;
|
|
424
|
+
scim_user_lock_attribute: import("../../config/options.js").StringOption;
|
|
425
|
+
scim_user_lock_value: import("../../config/options.js").StringOption;
|
|
426
|
+
scim_group_object_class: import("../../config/options.js").ArrayOption;
|
|
427
|
+
scim_group_rdn_attribute: import("../../config/options.js").StringOption;
|
|
428
|
+
scim_group_external_id_attribute: import("../../config/options.js").StringOption;
|
|
429
|
+
scim_id_attribute: import("../../config/options.js").StringOption;
|
|
430
|
+
scim_user_mapping: import("../../config/options.js").StringOption;
|
|
431
|
+
scim_group_mapping: import("../../config/options.js").StringOption;
|
|
432
|
+
scim_max_results: import("../../config/options.js").NumberOption;
|
|
433
|
+
scim_max_scanned: import("../../config/options.js").NumberOption;
|
|
434
|
+
scim_bulk_max_operations: import("../../config/options.js").NumberOption;
|
|
435
|
+
scim_bulk_max_payload_size: import("../../config/options.js").NumberOption;
|
|
436
|
+
scim_etag: import("../../config/options.js").BooleanOption;
|
|
437
|
+
scim_base_url: import("../../config/options.js").StringOption;
|
|
438
438
|
};
|
|
439
439
|
name: string;
|
|
440
440
|
roles: Role[];
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* SCIM 2.0 plugin options, see `docs/plugin-development/options.md`.
|
|
3
3
|
*/
|
|
4
|
-
import type { Config } from '../../config/args';
|
|
5
|
-
import { type OptionsOf } from '../../config/options';
|
|
4
|
+
import type { Config } from '../../config/args.js';
|
|
5
|
+
import { type OptionsOf } from '../../config/options.js';
|
|
6
6
|
export declare const scimOptions: {
|
|
7
|
-
scim_prefix: import("../../config/options").StringOption;
|
|
8
|
-
scim_user_base: import("../../config/options").StringOption;
|
|
9
|
-
scim_group_base: import("../../config/options").StringOption;
|
|
10
|
-
scim_user_base_template: import("../../config/options").StringOption;
|
|
11
|
-
scim_group_base_template: import("../../config/options").StringOption;
|
|
12
|
-
scim_base_map: import("../../config/options").StringOption;
|
|
13
|
-
scim_user_base_header: import("../../config/options").StringOption;
|
|
14
|
-
scim_group_base_header: import("../../config/options").StringOption;
|
|
15
|
-
scim_base_header_root: import("../../config/options").StringOption;
|
|
16
|
-
scim_user_object_class: import("../../config/options").ArrayOption;
|
|
17
|
-
scim_user_rdn_attribute: import("../../config/options").StringOption;
|
|
18
|
-
scim_user_lock_attribute: import("../../config/options").StringOption;
|
|
19
|
-
scim_user_lock_value: import("../../config/options").StringOption;
|
|
20
|
-
scim_group_object_class: import("../../config/options").ArrayOption;
|
|
21
|
-
scim_group_rdn_attribute: import("../../config/options").StringOption;
|
|
22
|
-
scim_group_external_id_attribute: import("../../config/options").StringOption;
|
|
23
|
-
scim_id_attribute: import("../../config/options").StringOption;
|
|
24
|
-
scim_user_mapping: import("../../config/options").StringOption;
|
|
25
|
-
scim_group_mapping: import("../../config/options").StringOption;
|
|
26
|
-
scim_max_results: import("../../config/options").NumberOption;
|
|
27
|
-
scim_max_scanned: import("../../config/options").NumberOption;
|
|
28
|
-
scim_bulk_max_operations: import("../../config/options").NumberOption;
|
|
29
|
-
scim_bulk_max_payload_size: import("../../config/options").NumberOption;
|
|
30
|
-
scim_etag: import("../../config/options").BooleanOption;
|
|
31
|
-
scim_base_url: import("../../config/options").StringOption;
|
|
7
|
+
scim_prefix: import("../../config/options.js").StringOption;
|
|
8
|
+
scim_user_base: import("../../config/options.js").StringOption;
|
|
9
|
+
scim_group_base: import("../../config/options.js").StringOption;
|
|
10
|
+
scim_user_base_template: import("../../config/options.js").StringOption;
|
|
11
|
+
scim_group_base_template: import("../../config/options.js").StringOption;
|
|
12
|
+
scim_base_map: import("../../config/options.js").StringOption;
|
|
13
|
+
scim_user_base_header: import("../../config/options.js").StringOption;
|
|
14
|
+
scim_group_base_header: import("../../config/options.js").StringOption;
|
|
15
|
+
scim_base_header_root: import("../../config/options.js").StringOption;
|
|
16
|
+
scim_user_object_class: import("../../config/options.js").ArrayOption;
|
|
17
|
+
scim_user_rdn_attribute: import("../../config/options.js").StringOption;
|
|
18
|
+
scim_user_lock_attribute: import("../../config/options.js").StringOption;
|
|
19
|
+
scim_user_lock_value: import("../../config/options.js").StringOption;
|
|
20
|
+
scim_group_object_class: import("../../config/options.js").ArrayOption;
|
|
21
|
+
scim_group_rdn_attribute: import("../../config/options.js").StringOption;
|
|
22
|
+
scim_group_external_id_attribute: import("../../config/options.js").StringOption;
|
|
23
|
+
scim_id_attribute: import("../../config/options.js").StringOption;
|
|
24
|
+
scim_user_mapping: import("../../config/options.js").StringOption;
|
|
25
|
+
scim_group_mapping: import("../../config/options.js").StringOption;
|
|
26
|
+
scim_max_results: import("../../config/options.js").NumberOption;
|
|
27
|
+
scim_max_scanned: import("../../config/options.js").NumberOption;
|
|
28
|
+
scim_bulk_max_operations: import("../../config/options.js").NumberOption;
|
|
29
|
+
scim_bulk_max_payload_size: import("../../config/options.js").NumberOption;
|
|
30
|
+
scim_etag: import("../../config/options.js").BooleanOption;
|
|
31
|
+
scim_base_url: import("../../config/options.js").StringOption;
|
|
32
32
|
};
|
|
33
33
|
export type ScimOptions = OptionsOf<typeof scimOptions>;
|
|
34
34
|
/** The checked values for a caller outside the plugin that holds a Config */
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* SCIM Users resource handler — direct access via ldapActions.
|
|
6
6
|
*/
|
|
7
7
|
import type winston from 'winston';
|
|
8
|
-
import type ldapActions from '../../lib/ldapActions';
|
|
9
|
-
import type { DmRequest } from '../../lib/auth/base';
|
|
10
|
-
import type HookBus from '../../lib/hookBus';
|
|
11
|
-
import { BaseResolver } from './baseResolver';
|
|
12
|
-
import type { ScimOptions } from './scim.options';
|
|
13
|
-
import { type ResourceMapping, type ScimUser, type ListResponse, type PatchRequest } from './types';
|
|
8
|
+
import type ldapActions from '../../lib/ldapActions.js';
|
|
9
|
+
import type { DmRequest } from '../../lib/auth/base.js';
|
|
10
|
+
import type HookBus from '../../lib/hookBus.js';
|
|
11
|
+
import { BaseResolver } from './baseResolver.js';
|
|
12
|
+
import type { ScimOptions } from './scim.options.js';
|
|
13
|
+
import { type ResourceMapping, type ScimUser, type ListResponse, type PatchRequest } from './types.js';
|
|
14
14
|
export interface ListQuery {
|
|
15
15
|
filter?: string;
|
|
16
16
|
startIndex?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Express } from 'express';
|
|
2
|
-
import DmPlugin, { type Role } from '../abstract/plugin';
|
|
3
|
-
import type { DM } from '../bin';
|
|
2
|
+
import DmPlugin, { type Role } from '../abstract/plugin.js';
|
|
3
|
+
import type { DM } from '../bin/index.js';
|
|
4
4
|
/**
|
|
5
5
|
* @openapi-component
|
|
6
6
|
* LdapSchema:
|
|
@@ -37,10 +37,10 @@ import type { DM } from '../bin';
|
|
|
37
37
|
*/
|
|
38
38
|
export default class Static extends DmPlugin {
|
|
39
39
|
static optionDefinitions: {
|
|
40
|
-
static_path: import("../config/options").StringOption;
|
|
41
|
-
static_name: import("../config/options").StringOption;
|
|
42
|
-
static_csp: import("../config/options").StringOrFalseOption;
|
|
43
|
-
static_frame_options: import("../config/options").StringOrFalseOption;
|
|
40
|
+
static_path: import("../config/options.js").StringOption;
|
|
41
|
+
static_name: import("../config/options.js").StringOption;
|
|
42
|
+
static_csp: import("../config/options.js").StringOrFalseOption;
|
|
43
|
+
static_frame_options: import("../config/options.js").StringOrFalseOption;
|
|
44
44
|
};
|
|
45
45
|
name: string;
|
|
46
46
|
roles: Role[];
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { Config } from '../config/args';
|
|
2
|
-
import { type OptionsOf } from '../config/options';
|
|
1
|
+
import type { Config } from '../config/args.js';
|
|
2
|
+
import { type OptionsOf } from '../config/options.js';
|
|
3
3
|
/** The headers `core/static` sends unless told otherwise: no framing by another site */
|
|
4
4
|
export declare const STATIC_CSP = "frame-ancestors 'self'";
|
|
5
5
|
export declare const STATIC_FRAME_OPTIONS = "SAMEORIGIN";
|
|
6
6
|
export declare const staticOptions: {
|
|
7
|
-
static_path: import("../config/options").StringOption;
|
|
8
|
-
static_name: import("../config/options").StringOption;
|
|
9
|
-
static_csp: import("../config/options").StringOrFalseOption;
|
|
10
|
-
static_frame_options: import("../config/options").StringOrFalseOption;
|
|
7
|
+
static_path: import("../config/options.js").StringOption;
|
|
8
|
+
static_name: import("../config/options.js").StringOption;
|
|
9
|
+
static_csp: import("../config/options.js").StringOrFalseOption;
|
|
10
|
+
static_frame_options: import("../config/options.js").StringOrFalseOption;
|
|
11
11
|
};
|
|
12
12
|
export type StaticOptions = OptionsOf<typeof staticOptions>;
|
|
13
13
|
export declare function staticOptionsOf(config: Config): StaticOptions;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type winston from 'winston';
|
|
2
|
-
import Store, { type StoredRecord } from '../../lib/storage/store';
|
|
3
|
-
import type { HealthStatus } from '../../lib/health';
|
|
2
|
+
import Store, { type StoredRecord } from '../../lib/storage/store.js';
|
|
3
|
+
import type { HealthStatus } from '../../lib/health.js';
|
|
4
4
|
export default class FileStore extends Store {
|
|
5
5
|
name: string;
|
|
6
6
|
private dir;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Store, { type StoredRecord } from '../../lib/storage/store';
|
|
2
|
-
import type { DM } from '../../bin';
|
|
1
|
+
import Store, { type StoredRecord } from '../../lib/storage/store.js';
|
|
2
|
+
import type { DM } from '../../bin/index.js';
|
|
3
3
|
export default class LdapStore extends Store {
|
|
4
4
|
name: string;
|
|
5
5
|
private server;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type winston from 'winston';
|
|
2
|
-
import Store, { type StoredRecord } from '../../lib/storage/store';
|
|
3
|
-
import { type HealthStatus } from '../../lib/health';
|
|
2
|
+
import Store, { type StoredRecord } from '../../lib/storage/store.js';
|
|
3
|
+
import { type HealthStatus } from '../../lib/health.js';
|
|
4
4
|
type Pg = typeof import('pg');
|
|
5
5
|
export default class PostgresStore extends Store {
|
|
6
6
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type winston from 'winston';
|
|
2
|
-
import Store, { type StoredRecord } from '../../lib/storage/store';
|
|
3
|
-
import type { HealthStatus } from '../../lib/health';
|
|
2
|
+
import Store, { type StoredRecord } from '../../lib/storage/store.js';
|
|
3
|
+
import type { HealthStatus } from '../../lib/health.js';
|
|
4
4
|
type IoValkey = typeof import('iovalkey');
|
|
5
5
|
export default class ValkeyStore extends Store {
|
|
6
6
|
name: string;
|
|
@@ -27,21 +27,21 @@
|
|
|
27
27
|
*
|
|
28
28
|
* @group Plugins
|
|
29
29
|
*/
|
|
30
|
-
import DmPlugin from '../abstract/plugin';
|
|
31
|
-
import type { DM } from '../bin';
|
|
32
|
-
import type { HealthStatus } from '../lib/health';
|
|
33
|
-
import type Store from '../lib/storage/store';
|
|
30
|
+
import DmPlugin from '../abstract/plugin.js';
|
|
31
|
+
import type { DM } from '../bin/index.js';
|
|
32
|
+
import type { HealthStatus } from '../lib/health.js';
|
|
33
|
+
import type Store from '../lib/storage/store.js';
|
|
34
34
|
export default class Storage extends DmPlugin {
|
|
35
35
|
static optionDefinitions: {
|
|
36
|
-
storage_backend: import("../config/options").StringOption;
|
|
37
|
-
storage_sweep_interval: import("../config/options").NumberOption;
|
|
38
|
-
storage_ldap_base: import("../config/options").StringOption;
|
|
39
|
-
storage_ldap_object_class: import("../config/options").StringOption;
|
|
40
|
-
storage_file_directory: import("../config/options").StringOption;
|
|
41
|
-
storage_postgres_url: import("../config/options").StringOption;
|
|
42
|
-
storage_postgres_table: import("../config/options").StringOption;
|
|
43
|
-
storage_valkey_url: import("../config/options").StringOption;
|
|
44
|
-
storage_valkey_prefix: import("../config/options").StringOption;
|
|
36
|
+
storage_backend: import("../config/options.js").StringOption;
|
|
37
|
+
storage_sweep_interval: import("../config/options.js").NumberOption;
|
|
38
|
+
storage_ldap_base: import("../config/options.js").StringOption;
|
|
39
|
+
storage_ldap_object_class: import("../config/options.js").StringOption;
|
|
40
|
+
storage_file_directory: import("../config/options.js").StringOption;
|
|
41
|
+
storage_postgres_url: import("../config/options.js").StringOption;
|
|
42
|
+
storage_postgres_table: import("../config/options.js").StringOption;
|
|
43
|
+
storage_valkey_url: import("../config/options.js").StringOption;
|
|
44
|
+
storage_valkey_prefix: import("../config/options.js").StringOption;
|
|
45
45
|
};
|
|
46
46
|
name: string;
|
|
47
47
|
store: Store;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/** Keyed storage plugin options. */
|
|
2
|
-
import type { Config } from '../config/args';
|
|
3
|
-
import { type OptionsOf } from '../config/options';
|
|
2
|
+
import type { Config } from '../config/args.js';
|
|
3
|
+
import { type OptionsOf } from '../config/options.js';
|
|
4
4
|
export declare const storageOptions: {
|
|
5
|
-
storage_backend: import("../config/options").StringOption;
|
|
6
|
-
storage_sweep_interval: import("../config/options").NumberOption;
|
|
7
|
-
storage_ldap_base: import("../config/options").StringOption;
|
|
8
|
-
storage_ldap_object_class: import("../config/options").StringOption;
|
|
9
|
-
storage_file_directory: import("../config/options").StringOption;
|
|
10
|
-
storage_postgres_url: import("../config/options").StringOption;
|
|
11
|
-
storage_postgres_table: import("../config/options").StringOption;
|
|
12
|
-
storage_valkey_url: import("../config/options").StringOption;
|
|
13
|
-
storage_valkey_prefix: import("../config/options").StringOption;
|
|
5
|
+
storage_backend: import("../config/options.js").StringOption;
|
|
6
|
+
storage_sweep_interval: import("../config/options.js").NumberOption;
|
|
7
|
+
storage_ldap_base: import("../config/options.js").StringOption;
|
|
8
|
+
storage_ldap_object_class: import("../config/options.js").StringOption;
|
|
9
|
+
storage_file_directory: import("../config/options.js").StringOption;
|
|
10
|
+
storage_postgres_url: import("../config/options.js").StringOption;
|
|
11
|
+
storage_postgres_table: import("../config/options.js").StringOption;
|
|
12
|
+
storage_valkey_url: import("../config/options.js").StringOption;
|
|
13
|
+
storage_valkey_prefix: import("../config/options.js").StringOption;
|
|
14
14
|
};
|
|
15
15
|
export type StorageOptions = OptionsOf<typeof storageOptions>;
|
|
16
16
|
export declare function storageOptionsOf(config: Config): StorageOptions;
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* Applicative accounts options, shared by `appAccountsApi` and
|
|
3
3
|
* `appAccountsConsistency`. See `docs/plugin-development/options.md`.
|
|
4
4
|
*/
|
|
5
|
-
import { type OptionsOf } from '../../config/options';
|
|
5
|
+
import { type OptionsOf } from '../../config/options.js';
|
|
6
6
|
export declare const appAccountsOptions: {
|
|
7
|
-
applicative_account_base: import("../../config/options").StringOption;
|
|
8
|
-
max_app_accounts: import("../../config/options").NumberOption;
|
|
9
|
-
app_accounts_user_attribute: import("../../config/options").StringOption;
|
|
10
|
-
applicative_account_attribute: import("../../config/options").ArrayOption;
|
|
11
|
-
ldap_operational_attribute: import("../../config/options").ArrayOption;
|
|
7
|
+
applicative_account_base: import("../../config/options.js").StringOption;
|
|
8
|
+
max_app_accounts: import("../../config/options.js").NumberOption;
|
|
9
|
+
app_accounts_user_attribute: import("../../config/options.js").StringOption;
|
|
10
|
+
applicative_account_attribute: import("../../config/options.js").ArrayOption;
|
|
11
|
+
ldap_operational_attribute: import("../../config/options.js").ArrayOption;
|
|
12
12
|
};
|
|
13
13
|
export type AppAccountsOptions = OptionsOf<typeof appAccountsOptions>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Express } from 'express';
|
|
2
|
-
import DmPlugin, { type Role } from '../../abstract/plugin';
|
|
3
|
-
import type { DM } from '../../bin';
|
|
2
|
+
import DmPlugin, { type Role } from '../../abstract/plugin.js';
|
|
3
|
+
import type { DM } from '../../bin/index.js';
|
|
4
4
|
export declare const AppAccountsParams: import("@sinclair/typebox").TObject<{
|
|
5
5
|
user: import("@sinclair/typebox").TString;
|
|
6
6
|
}>;
|
|
@@ -13,11 +13,11 @@ export declare const AppAccountCreateBody: import("@sinclair/typebox").TObject<{
|
|
|
13
13
|
}>;
|
|
14
14
|
export default class AppAccountsApi extends DmPlugin {
|
|
15
15
|
static optionDefinitions: {
|
|
16
|
-
applicative_account_base: import("../../config/options").StringOption;
|
|
17
|
-
max_app_accounts: import("../../config/options").NumberOption;
|
|
18
|
-
app_accounts_user_attribute: import("../../config/options").StringOption;
|
|
19
|
-
applicative_account_attribute: import("../../config/options").ArrayOption;
|
|
20
|
-
ldap_operational_attribute: import("../../config/options").ArrayOption;
|
|
16
|
+
applicative_account_base: import("../../config/options.js").StringOption;
|
|
17
|
+
max_app_accounts: import("../../config/options.js").NumberOption;
|
|
18
|
+
app_accounts_user_attribute: import("../../config/options.js").StringOption;
|
|
19
|
+
applicative_account_attribute: import("../../config/options.js").ArrayOption;
|
|
20
|
+
ldap_operational_attribute: import("../../config/options.js").ArrayOption;
|
|
21
21
|
};
|
|
22
22
|
name: string;
|
|
23
23
|
roles: Role[];
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
* the app accounts are deleted: every client has to be reconfigured against the
|
|
25
25
|
* new address anyway.
|
|
26
26
|
*/
|
|
27
|
-
import DmPlugin from '../../abstract/plugin';
|
|
28
|
-
import type { Role } from '../../abstract/plugin';
|
|
29
|
-
import type { DM } from '../../bin';
|
|
30
|
-
import { Hooks } from '../../hooks';
|
|
27
|
+
import DmPlugin from '../../abstract/plugin.js';
|
|
28
|
+
import type { Role } from '../../abstract/plugin.js';
|
|
29
|
+
import type { DM } from '../../bin/index.js';
|
|
30
|
+
import { Hooks } from '../../hooks.js';
|
|
31
31
|
export default class AppAccountsConsistency extends DmPlugin {
|
|
32
32
|
static optionDefinitions: {
|
|
33
|
-
applicative_account_base: import("../../config/options").StringOption;
|
|
34
|
-
max_app_accounts: import("../../config/options").NumberOption;
|
|
35
|
-
app_accounts_user_attribute: import("../../config/options").StringOption;
|
|
36
|
-
applicative_account_attribute: import("../../config/options").ArrayOption;
|
|
37
|
-
ldap_operational_attribute: import("../../config/options").ArrayOption;
|
|
33
|
+
applicative_account_base: import("../../config/options.js").StringOption;
|
|
34
|
+
max_app_accounts: import("../../config/options.js").NumberOption;
|
|
35
|
+
app_accounts_user_attribute: import("../../config/options.js").StringOption;
|
|
36
|
+
applicative_account_attribute: import("../../config/options.js").ArrayOption;
|
|
37
|
+
ldap_operational_attribute: import("../../config/options.js").ArrayOption;
|
|
38
38
|
};
|
|
39
39
|
name: string;
|
|
40
40
|
roles: Role[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import TwakePlugin from '../../abstract/twakePlugin';
|
|
2
|
-
import { type Role } from '../../abstract/plugin';
|
|
3
|
-
import type { AttributesList, ModifyRequest } from '../../lib/ldapActions';
|
|
4
|
-
import { Hooks, MaybePromise } from '../../hooks';
|
|
1
|
+
import TwakePlugin from '../../abstract/twakePlugin.js';
|
|
2
|
+
import { type Role } from '../../abstract/plugin.js';
|
|
3
|
+
import type { AttributesList, ModifyRequest } from '../../lib/ldapActions.js';
|
|
4
|
+
import { Hooks, MaybePromise } from '../../hooks.js';
|
|
5
5
|
/**
|
|
6
6
|
* Plugin to sync LDAP resources and users with Twake Calendar
|
|
7
7
|
*
|
|
@@ -23,15 +23,15 @@ type CalendarResourceHooks = {
|
|
|
23
23
|
};
|
|
24
24
|
export default class Calendar extends TwakePlugin {
|
|
25
25
|
static optionDefinitions: {
|
|
26
|
-
calendar_webadmin_url: import("../../config/options").StringOption;
|
|
27
|
-
calendar_webadmin_token: import("../../config/options").StringOption;
|
|
28
|
-
calendar_concurrency: import("../../config/options").NumberOption;
|
|
29
|
-
calendar_resource_base: import("../../config/options").StringOption;
|
|
30
|
-
calendar_resource_objectclass: import("../../config/options").StringOption;
|
|
31
|
-
calendar_resource_creator: import("../../config/options").StringOption;
|
|
32
|
-
calendar_resource_domain: import("../../config/options").StringOption;
|
|
33
|
-
calendar_firstname_attribute: import("../../config/options").StringOption;
|
|
34
|
-
calendar_lastname_attribute: import("../../config/options").StringOption;
|
|
26
|
+
calendar_webadmin_url: import("../../config/options.js").StringOption;
|
|
27
|
+
calendar_webadmin_token: import("../../config/options.js").StringOption;
|
|
28
|
+
calendar_concurrency: import("../../config/options.js").NumberOption;
|
|
29
|
+
calendar_resource_base: import("../../config/options.js").StringOption;
|
|
30
|
+
calendar_resource_objectclass: import("../../config/options.js").StringOption;
|
|
31
|
+
calendar_resource_creator: import("../../config/options.js").StringOption;
|
|
32
|
+
calendar_resource_domain: import("../../config/options.js").StringOption;
|
|
33
|
+
calendar_firstname_attribute: import("../../config/options.js").StringOption;
|
|
34
|
+
calendar_lastname_attribute: import("../../config/options.js").StringOption;
|
|
35
35
|
};
|
|
36
36
|
name: string;
|
|
37
37
|
roles: Role[];
|
|
@@ -44,7 +44,7 @@ export default class Calendar extends TwakePlugin {
|
|
|
44
44
|
private resourceDomain;
|
|
45
45
|
private firstnameAttr;
|
|
46
46
|
private lastnameAttr;
|
|
47
|
-
constructor(server: import('../../bin').DM);
|
|
47
|
+
constructor(server: import('../../bin/index.js').DM);
|
|
48
48
|
hooks: Hooks & CalendarResourceHooks;
|
|
49
49
|
/**
|
|
50
50
|
* Check if a LDAP entry is a calendar resource
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Twake Calendar plugin options, see `docs/plugin-development/options.md`.
|
|
3
3
|
*/
|
|
4
|
-
import type { Config } from '../../config/args';
|
|
5
|
-
import { type OptionsOf } from '../../config/options';
|
|
4
|
+
import type { Config } from '../../config/args.js';
|
|
5
|
+
import { type OptionsOf } from '../../config/options.js';
|
|
6
6
|
export declare const calendarOptions: {
|
|
7
|
-
calendar_webadmin_url: import("../../config/options").StringOption;
|
|
8
|
-
calendar_webadmin_token: import("../../config/options").StringOption;
|
|
9
|
-
calendar_concurrency: import("../../config/options").NumberOption;
|
|
10
|
-
calendar_resource_base: import("../../config/options").StringOption;
|
|
11
|
-
calendar_resource_objectclass: import("../../config/options").StringOption;
|
|
12
|
-
calendar_resource_creator: import("../../config/options").StringOption;
|
|
13
|
-
calendar_resource_domain: import("../../config/options").StringOption;
|
|
14
|
-
calendar_firstname_attribute: import("../../config/options").StringOption;
|
|
15
|
-
calendar_lastname_attribute: import("../../config/options").StringOption;
|
|
7
|
+
calendar_webadmin_url: import("../../config/options.js").StringOption;
|
|
8
|
+
calendar_webadmin_token: import("../../config/options.js").StringOption;
|
|
9
|
+
calendar_concurrency: import("../../config/options.js").NumberOption;
|
|
10
|
+
calendar_resource_base: import("../../config/options.js").StringOption;
|
|
11
|
+
calendar_resource_objectclass: import("../../config/options.js").StringOption;
|
|
12
|
+
calendar_resource_creator: import("../../config/options.js").StringOption;
|
|
13
|
+
calendar_resource_domain: import("../../config/options.js").StringOption;
|
|
14
|
+
calendar_firstname_attribute: import("../../config/options.js").StringOption;
|
|
15
|
+
calendar_lastname_attribute: import("../../config/options.js").StringOption;
|
|
16
16
|
};
|
|
17
17
|
export type CalendarOptions = OptionsOf<typeof calendarOptions>;
|
|
18
18
|
/** The checked values for a caller that holds a Config instead of the plugin */
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* The instance keeps registering as `calendarResources`, so code looking it
|
|
9
9
|
* up by that name keeps finding it.
|
|
10
10
|
*/
|
|
11
|
-
import Calendar from './calendar';
|
|
11
|
+
import Calendar from './calendar.js';
|
|
12
12
|
export default class CalendarResources extends Calendar {
|
|
13
13
|
name: string;
|
|
14
14
|
}
|