"use strict";
/*
 * Copyright 2025 Matti Airas
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
    for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.registerOIDCAdminRoutes = exports.validateAndMergeUserinfoClaims = exports.findOrCreateOIDCUser = exports.registerOIDCRoutes = exports.clearJwksCache = exports.fetchJwks = exports.validateIdToken = exports.fetchUserinfo = exports.exchangeAuthorizationCode = exports.clearDiscoveryCache = exports.getDiscoveryDocument = exports.fetchDiscoveryDocument = void 0;
__exportStar(require("./types"), exports);
__exportStar(require("./config"), exports);
__exportStar(require("./pkce"), exports);
__exportStar(require("./state"), exports);
var discovery_1 = require("./discovery");
Object.defineProperty(exports, "fetchDiscoveryDocument", { enumerable: true, get: function () { return discovery_1.fetchDiscoveryDocument; } });
Object.defineProperty(exports, "getDiscoveryDocument", { enumerable: true, get: function () { return discovery_1.getDiscoveryDocument; } });
Object.defineProperty(exports, "clearDiscoveryCache", { enumerable: true, get: function () { return discovery_1.clearDiscoveryCache; } });
__exportStar(require("./authorization"), exports);
var token_exchange_1 = require("./token-exchange");
Object.defineProperty(exports, "exchangeAuthorizationCode", { enumerable: true, get: function () { return token_exchange_1.exchangeAuthorizationCode; } });
Object.defineProperty(exports, "fetchUserinfo", { enumerable: true, get: function () { return token_exchange_1.fetchUserinfo; } });
var id_token_validation_1 = require("./id-token-validation");
Object.defineProperty(exports, "validateIdToken", { enumerable: true, get: function () { return id_token_validation_1.validateIdToken; } });
Object.defineProperty(exports, "fetchJwks", { enumerable: true, get: function () { return id_token_validation_1.fetchJwks; } });
Object.defineProperty(exports, "clearJwksCache", { enumerable: true, get: function () { return id_token_validation_1.clearJwksCache; } });
__exportStar(require("./user-info"), exports);
var oidc_auth_1 = require("./oidc-auth");
Object.defineProperty(exports, "registerOIDCRoutes", { enumerable: true, get: function () { return oidc_auth_1.registerOIDCRoutes; } });
Object.defineProperty(exports, "findOrCreateOIDCUser", { enumerable: true, get: function () { return oidc_auth_1.findOrCreateOIDCUser; } });
Object.defineProperty(exports, "validateAndMergeUserinfoClaims", { enumerable: true, get: function () { return oidc_auth_1.validateAndMergeUserinfoClaims; } });
var oidc_admin_1 = require("./oidc-admin");
Object.defineProperty(exports, "registerOIDCAdminRoutes", { enumerable: true, get: function () { return oidc_admin_1.registerOIDCAdminRoutes; } });
__exportStar(require("./permission-mapping"), exports);
//# sourceMappingURL=index.js.map