@authyon/server 0.2.0-beta.32 → 0.2.0-beta.34
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/{authorization-TbK43K94.d.ts → authorization-CF352ynn.d.ts} +1 -1
- package/dist/{authorization-CGex2N6O.d.cts → authorization-DlGXQXIW.d.cts} +1 -1
- package/dist/{authyonServerClient-DqY5OtxL.d.cts → authyonServerClient-CpTMX1GH.d.cts} +14 -0
- package/dist/{authyonServerClient-DqY5OtxL.d.ts → authyonServerClient-CpTMX1GH.d.ts} +14 -0
- package/dist/bff.cjs +81 -4
- package/dist/bff.d.cts +33 -2
- package/dist/bff.d.ts +33 -2
- package/dist/bff.js +77 -4
- package/dist/{chunk-SUL2HLRR.js → chunk-CSQJSNU7.js} +5 -1
- package/dist/index.cjs +429 -1
- package/dist/index.d.cts +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.js +423 -1
- package/dist/next.d.cts +2 -2
- package/dist/next.d.ts +2 -2
- package/dist/preferences-CPQEbdxV.d.cts +447 -0
- package/dist/preferences-CPQEbdxV.d.ts +447 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -37,6 +37,7 @@ __export(index_exports, {
|
|
|
37
37
|
ErrorCodes: () => ErrorCodes,
|
|
38
38
|
FetchHttpAdapter: () => FetchHttpAdapter,
|
|
39
39
|
JwksTokenVerifier: () => JwksTokenVerifier,
|
|
40
|
+
Locales: () => Locales,
|
|
40
41
|
LoggingHttpAdapter: () => LoggingHttpAdapter,
|
|
41
42
|
SubtenantPermissions: () => SubtenantPermissions,
|
|
42
43
|
TENANT_FILTER_MAX_DEPTH: () => TENANT_FILTER_MAX_DEPTH,
|
|
@@ -44,6 +45,7 @@ __export(index_exports, {
|
|
|
44
45
|
TENANT_FILTER_MAX_VALUE_LENGTH: () => TENANT_FILTER_MAX_VALUE_LENGTH,
|
|
45
46
|
TenantPermissions: () => TenantPermissions,
|
|
46
47
|
TenantScopedClient: () => TenantScopedClient,
|
|
48
|
+
TimeZones: () => TimeZones,
|
|
47
49
|
TokenVerificationError: () => TokenVerificationError,
|
|
48
50
|
UserScopedClient: () => UserScopedClient,
|
|
49
51
|
authorizeRequest: () => authorizeRequest,
|
|
@@ -377,6 +379,11 @@ var UserScopedClient = class {
|
|
|
377
379
|
list: (tenantId, options = {}) => __privateGet(this, _request).call(this, `/auth/tenants/${segment(tenantId)}/members`, {
|
|
378
380
|
query: memberQuery(options)
|
|
379
381
|
}),
|
|
382
|
+
/**
|
|
383
|
+
* One member, in the shape of a `list` row. A user who is not a direct
|
|
384
|
+
* member fails with `tenant.member.not_found` (404).
|
|
385
|
+
*/
|
|
386
|
+
get: (tenantId, userId) => __privateGet(this, _request).call(this, `/auth/tenants/${segment(tenantId)}/members/${segment(userId)}`),
|
|
380
387
|
/** Adds an existing environment user by email; does not send an invitation email. */
|
|
381
388
|
invite: (tenantId, input) => __privateGet(this, _request).call(this, `/auth/tenants/${segment(tenantId)}/members`, {
|
|
382
389
|
method: "POST",
|
|
@@ -506,7 +513,11 @@ var ErrorCodes = {
|
|
|
506
513
|
CredentialThrottled: "credential_throttled",
|
|
507
514
|
ApprovalNotFound: "authorization_not_found",
|
|
508
515
|
SessionRevoked: "session_revoked",
|
|
509
|
-
TwoFactorTooManyFailures: "user.2fa.too_many_failures"
|
|
516
|
+
TwoFactorTooManyFailures: "user.2fa.too_many_failures",
|
|
517
|
+
/** Not an IANA time zone the API knows. See `TimeZones`. */
|
|
518
|
+
PreferencesTimeZoneInvalid: "preferences.time_zone.invalid",
|
|
519
|
+
/** Not a well-formed BCP 47 tag. See `Locales`. */
|
|
520
|
+
PreferencesLocaleInvalid: "preferences.locale.invalid"
|
|
510
521
|
};
|
|
511
522
|
var STANDARD_ERROR_FIELDS = /* @__PURE__ */ new Set([
|
|
512
523
|
"type",
|
|
@@ -2325,6 +2336,421 @@ var SubtenantPermissions = {
|
|
|
2325
2336
|
*/
|
|
2326
2337
|
TreeSwitch: "subtenants:tree:switch"
|
|
2327
2338
|
};
|
|
2339
|
+
|
|
2340
|
+
// ../../internal/core/contracts/preferences.ts
|
|
2341
|
+
var TimeZones = {
|
|
2342
|
+
Utc: "UTC",
|
|
2343
|
+
AfricaAbidjan: "Africa/Abidjan",
|
|
2344
|
+
AfricaAlgiers: "Africa/Algiers",
|
|
2345
|
+
AfricaBissau: "Africa/Bissau",
|
|
2346
|
+
AfricaCairo: "Africa/Cairo",
|
|
2347
|
+
AfricaCasablanca: "Africa/Casablanca",
|
|
2348
|
+
AfricaCeuta: "Africa/Ceuta",
|
|
2349
|
+
AfricaElAaiun: "Africa/El_Aaiun",
|
|
2350
|
+
AfricaJohannesburg: "Africa/Johannesburg",
|
|
2351
|
+
AfricaJuba: "Africa/Juba",
|
|
2352
|
+
AfricaKhartoum: "Africa/Khartoum",
|
|
2353
|
+
AfricaLagos: "Africa/Lagos",
|
|
2354
|
+
AfricaMaputo: "Africa/Maputo",
|
|
2355
|
+
AfricaMonrovia: "Africa/Monrovia",
|
|
2356
|
+
AfricaNairobi: "Africa/Nairobi",
|
|
2357
|
+
AfricaNdjamena: "Africa/Ndjamena",
|
|
2358
|
+
AfricaSaoTome: "Africa/Sao_Tome",
|
|
2359
|
+
AfricaTripoli: "Africa/Tripoli",
|
|
2360
|
+
AfricaTunis: "Africa/Tunis",
|
|
2361
|
+
AfricaWindhoek: "Africa/Windhoek",
|
|
2362
|
+
AmericaAdak: "America/Adak",
|
|
2363
|
+
AmericaAnchorage: "America/Anchorage",
|
|
2364
|
+
AmericaAraguaina: "America/Araguaina",
|
|
2365
|
+
AmericaArgentinaBuenosAires: "America/Argentina/Buenos_Aires",
|
|
2366
|
+
AmericaArgentinaCatamarca: "America/Argentina/Catamarca",
|
|
2367
|
+
AmericaArgentinaCordoba: "America/Argentina/Cordoba",
|
|
2368
|
+
AmericaArgentinaJujuy: "America/Argentina/Jujuy",
|
|
2369
|
+
AmericaArgentinaLaRioja: "America/Argentina/La_Rioja",
|
|
2370
|
+
AmericaArgentinaMendoza: "America/Argentina/Mendoza",
|
|
2371
|
+
AmericaArgentinaRioGallegos: "America/Argentina/Rio_Gallegos",
|
|
2372
|
+
AmericaArgentinaSalta: "America/Argentina/Salta",
|
|
2373
|
+
AmericaArgentinaSanJuan: "America/Argentina/San_Juan",
|
|
2374
|
+
AmericaArgentinaSanLuis: "America/Argentina/San_Luis",
|
|
2375
|
+
AmericaArgentinaTucuman: "America/Argentina/Tucuman",
|
|
2376
|
+
AmericaArgentinaUshuaia: "America/Argentina/Ushuaia",
|
|
2377
|
+
AmericaAsuncion: "America/Asuncion",
|
|
2378
|
+
AmericaBahia: "America/Bahia",
|
|
2379
|
+
AmericaBahiaBanderas: "America/Bahia_Banderas",
|
|
2380
|
+
AmericaBarbados: "America/Barbados",
|
|
2381
|
+
AmericaBelem: "America/Belem",
|
|
2382
|
+
AmericaBelize: "America/Belize",
|
|
2383
|
+
AmericaBoaVista: "America/Boa_Vista",
|
|
2384
|
+
AmericaBogota: "America/Bogota",
|
|
2385
|
+
AmericaBoise: "America/Boise",
|
|
2386
|
+
AmericaCambridgeBay: "America/Cambridge_Bay",
|
|
2387
|
+
AmericaCampoGrande: "America/Campo_Grande",
|
|
2388
|
+
AmericaCancun: "America/Cancun",
|
|
2389
|
+
AmericaCaracas: "America/Caracas",
|
|
2390
|
+
AmericaCayenne: "America/Cayenne",
|
|
2391
|
+
AmericaChicago: "America/Chicago",
|
|
2392
|
+
AmericaChihuahua: "America/Chihuahua",
|
|
2393
|
+
AmericaCiudadJuarez: "America/Ciudad_Juarez",
|
|
2394
|
+
AmericaCostaRica: "America/Costa_Rica",
|
|
2395
|
+
AmericaCoyhaique: "America/Coyhaique",
|
|
2396
|
+
AmericaCuiaba: "America/Cuiaba",
|
|
2397
|
+
AmericaDanmarkshavn: "America/Danmarkshavn",
|
|
2398
|
+
AmericaDawson: "America/Dawson",
|
|
2399
|
+
AmericaDawsonCreek: "America/Dawson_Creek",
|
|
2400
|
+
AmericaDenver: "America/Denver",
|
|
2401
|
+
AmericaDetroit: "America/Detroit",
|
|
2402
|
+
AmericaEdmonton: "America/Edmonton",
|
|
2403
|
+
AmericaEirunepe: "America/Eirunepe",
|
|
2404
|
+
AmericaElSalvador: "America/El_Salvador",
|
|
2405
|
+
AmericaFortNelson: "America/Fort_Nelson",
|
|
2406
|
+
AmericaFortaleza: "America/Fortaleza",
|
|
2407
|
+
AmericaGlaceBay: "America/Glace_Bay",
|
|
2408
|
+
AmericaGooseBay: "America/Goose_Bay",
|
|
2409
|
+
AmericaGrandTurk: "America/Grand_Turk",
|
|
2410
|
+
AmericaGuatemala: "America/Guatemala",
|
|
2411
|
+
AmericaGuayaquil: "America/Guayaquil",
|
|
2412
|
+
AmericaGuyana: "America/Guyana",
|
|
2413
|
+
AmericaHalifax: "America/Halifax",
|
|
2414
|
+
AmericaHavana: "America/Havana",
|
|
2415
|
+
AmericaHermosillo: "America/Hermosillo",
|
|
2416
|
+
AmericaIndianaIndianapolis: "America/Indiana/Indianapolis",
|
|
2417
|
+
AmericaIndianaKnox: "America/Indiana/Knox",
|
|
2418
|
+
AmericaIndianaMarengo: "America/Indiana/Marengo",
|
|
2419
|
+
AmericaIndianaPetersburg: "America/Indiana/Petersburg",
|
|
2420
|
+
AmericaIndianaTellCity: "America/Indiana/Tell_City",
|
|
2421
|
+
AmericaIndianaVevay: "America/Indiana/Vevay",
|
|
2422
|
+
AmericaIndianaVincennes: "America/Indiana/Vincennes",
|
|
2423
|
+
AmericaIndianaWinamac: "America/Indiana/Winamac",
|
|
2424
|
+
AmericaInuvik: "America/Inuvik",
|
|
2425
|
+
AmericaIqaluit: "America/Iqaluit",
|
|
2426
|
+
AmericaJamaica: "America/Jamaica",
|
|
2427
|
+
AmericaJuneau: "America/Juneau",
|
|
2428
|
+
AmericaKentuckyLouisville: "America/Kentucky/Louisville",
|
|
2429
|
+
AmericaKentuckyMonticello: "America/Kentucky/Monticello",
|
|
2430
|
+
AmericaLaPaz: "America/La_Paz",
|
|
2431
|
+
AmericaLima: "America/Lima",
|
|
2432
|
+
AmericaLosAngeles: "America/Los_Angeles",
|
|
2433
|
+
AmericaMaceio: "America/Maceio",
|
|
2434
|
+
AmericaManagua: "America/Managua",
|
|
2435
|
+
AmericaManaus: "America/Manaus",
|
|
2436
|
+
AmericaMartinique: "America/Martinique",
|
|
2437
|
+
AmericaMatamoros: "America/Matamoros",
|
|
2438
|
+
AmericaMazatlan: "America/Mazatlan",
|
|
2439
|
+
AmericaMenominee: "America/Menominee",
|
|
2440
|
+
AmericaMerida: "America/Merida",
|
|
2441
|
+
AmericaMetlakatla: "America/Metlakatla",
|
|
2442
|
+
AmericaMexicoCity: "America/Mexico_City",
|
|
2443
|
+
AmericaMiquelon: "America/Miquelon",
|
|
2444
|
+
AmericaMoncton: "America/Moncton",
|
|
2445
|
+
AmericaMonterrey: "America/Monterrey",
|
|
2446
|
+
AmericaMontevideo: "America/Montevideo",
|
|
2447
|
+
AmericaNewYork: "America/New_York",
|
|
2448
|
+
AmericaNome: "America/Nome",
|
|
2449
|
+
AmericaNoronha: "America/Noronha",
|
|
2450
|
+
AmericaNorthDakotaBeulah: "America/North_Dakota/Beulah",
|
|
2451
|
+
AmericaNorthDakotaCenter: "America/North_Dakota/Center",
|
|
2452
|
+
AmericaNorthDakotaNewSalem: "America/North_Dakota/New_Salem",
|
|
2453
|
+
AmericaNuuk: "America/Nuuk",
|
|
2454
|
+
AmericaOjinaga: "America/Ojinaga",
|
|
2455
|
+
AmericaPanama: "America/Panama",
|
|
2456
|
+
AmericaParamaribo: "America/Paramaribo",
|
|
2457
|
+
AmericaPhoenix: "America/Phoenix",
|
|
2458
|
+
AmericaPortAuPrince: "America/Port-au-Prince",
|
|
2459
|
+
AmericaPortoVelho: "America/Porto_Velho",
|
|
2460
|
+
AmericaPuertoRico: "America/Puerto_Rico",
|
|
2461
|
+
AmericaPuntaArenas: "America/Punta_Arenas",
|
|
2462
|
+
AmericaRankinInlet: "America/Rankin_Inlet",
|
|
2463
|
+
AmericaRecife: "America/Recife",
|
|
2464
|
+
AmericaRegina: "America/Regina",
|
|
2465
|
+
AmericaResolute: "America/Resolute",
|
|
2466
|
+
AmericaRioBranco: "America/Rio_Branco",
|
|
2467
|
+
AmericaSantarem: "America/Santarem",
|
|
2468
|
+
AmericaSantiago: "America/Santiago",
|
|
2469
|
+
AmericaSantoDomingo: "America/Santo_Domingo",
|
|
2470
|
+
AmericaSaoPaulo: "America/Sao_Paulo",
|
|
2471
|
+
AmericaScoresbysund: "America/Scoresbysund",
|
|
2472
|
+
AmericaSitka: "America/Sitka",
|
|
2473
|
+
AmericaStJohns: "America/St_Johns",
|
|
2474
|
+
AmericaSwiftCurrent: "America/Swift_Current",
|
|
2475
|
+
AmericaTegucigalpa: "America/Tegucigalpa",
|
|
2476
|
+
AmericaThule: "America/Thule",
|
|
2477
|
+
AmericaTijuana: "America/Tijuana",
|
|
2478
|
+
AmericaToronto: "America/Toronto",
|
|
2479
|
+
AmericaVancouver: "America/Vancouver",
|
|
2480
|
+
AmericaWhitehorse: "America/Whitehorse",
|
|
2481
|
+
AmericaWinnipeg: "America/Winnipeg",
|
|
2482
|
+
AmericaYakutat: "America/Yakutat",
|
|
2483
|
+
AntarcticaCasey: "Antarctica/Casey",
|
|
2484
|
+
AntarcticaDavis: "Antarctica/Davis",
|
|
2485
|
+
AntarcticaMacquarie: "Antarctica/Macquarie",
|
|
2486
|
+
AntarcticaMawson: "Antarctica/Mawson",
|
|
2487
|
+
AntarcticaPalmer: "Antarctica/Palmer",
|
|
2488
|
+
AntarcticaRothera: "Antarctica/Rothera",
|
|
2489
|
+
AntarcticaTroll: "Antarctica/Troll",
|
|
2490
|
+
AntarcticaVostok: "Antarctica/Vostok",
|
|
2491
|
+
AsiaAlmaty: "Asia/Almaty",
|
|
2492
|
+
AsiaAmman: "Asia/Amman",
|
|
2493
|
+
AsiaAnadyr: "Asia/Anadyr",
|
|
2494
|
+
AsiaAqtau: "Asia/Aqtau",
|
|
2495
|
+
AsiaAqtobe: "Asia/Aqtobe",
|
|
2496
|
+
AsiaAshgabat: "Asia/Ashgabat",
|
|
2497
|
+
AsiaAtyrau: "Asia/Atyrau",
|
|
2498
|
+
AsiaBaghdad: "Asia/Baghdad",
|
|
2499
|
+
AsiaBaku: "Asia/Baku",
|
|
2500
|
+
AsiaBangkok: "Asia/Bangkok",
|
|
2501
|
+
AsiaBarnaul: "Asia/Barnaul",
|
|
2502
|
+
AsiaBeirut: "Asia/Beirut",
|
|
2503
|
+
AsiaBishkek: "Asia/Bishkek",
|
|
2504
|
+
AsiaChita: "Asia/Chita",
|
|
2505
|
+
AsiaColombo: "Asia/Colombo",
|
|
2506
|
+
AsiaDamascus: "Asia/Damascus",
|
|
2507
|
+
AsiaDhaka: "Asia/Dhaka",
|
|
2508
|
+
AsiaDili: "Asia/Dili",
|
|
2509
|
+
AsiaDubai: "Asia/Dubai",
|
|
2510
|
+
AsiaDushanbe: "Asia/Dushanbe",
|
|
2511
|
+
AsiaFamagusta: "Asia/Famagusta",
|
|
2512
|
+
AsiaGaza: "Asia/Gaza",
|
|
2513
|
+
AsiaHebron: "Asia/Hebron",
|
|
2514
|
+
AsiaHoChiMinh: "Asia/Ho_Chi_Minh",
|
|
2515
|
+
AsiaHongKong: "Asia/Hong_Kong",
|
|
2516
|
+
AsiaHovd: "Asia/Hovd",
|
|
2517
|
+
AsiaIrkutsk: "Asia/Irkutsk",
|
|
2518
|
+
AsiaJakarta: "Asia/Jakarta",
|
|
2519
|
+
AsiaJayapura: "Asia/Jayapura",
|
|
2520
|
+
AsiaJerusalem: "Asia/Jerusalem",
|
|
2521
|
+
AsiaKabul: "Asia/Kabul",
|
|
2522
|
+
AsiaKamchatka: "Asia/Kamchatka",
|
|
2523
|
+
AsiaKarachi: "Asia/Karachi",
|
|
2524
|
+
AsiaKathmandu: "Asia/Kathmandu",
|
|
2525
|
+
AsiaKhandyga: "Asia/Khandyga",
|
|
2526
|
+
AsiaKolkata: "Asia/Kolkata",
|
|
2527
|
+
AsiaKrasnoyarsk: "Asia/Krasnoyarsk",
|
|
2528
|
+
AsiaKuching: "Asia/Kuching",
|
|
2529
|
+
AsiaMacau: "Asia/Macau",
|
|
2530
|
+
AsiaMagadan: "Asia/Magadan",
|
|
2531
|
+
AsiaMakassar: "Asia/Makassar",
|
|
2532
|
+
AsiaManila: "Asia/Manila",
|
|
2533
|
+
AsiaNicosia: "Asia/Nicosia",
|
|
2534
|
+
AsiaNovokuznetsk: "Asia/Novokuznetsk",
|
|
2535
|
+
AsiaNovosibirsk: "Asia/Novosibirsk",
|
|
2536
|
+
AsiaOmsk: "Asia/Omsk",
|
|
2537
|
+
AsiaOral: "Asia/Oral",
|
|
2538
|
+
AsiaPontianak: "Asia/Pontianak",
|
|
2539
|
+
AsiaPyongyang: "Asia/Pyongyang",
|
|
2540
|
+
AsiaQatar: "Asia/Qatar",
|
|
2541
|
+
AsiaQostanay: "Asia/Qostanay",
|
|
2542
|
+
AsiaQyzylorda: "Asia/Qyzylorda",
|
|
2543
|
+
AsiaRiyadh: "Asia/Riyadh",
|
|
2544
|
+
AsiaSakhalin: "Asia/Sakhalin",
|
|
2545
|
+
AsiaSamarkand: "Asia/Samarkand",
|
|
2546
|
+
AsiaSeoul: "Asia/Seoul",
|
|
2547
|
+
AsiaShanghai: "Asia/Shanghai",
|
|
2548
|
+
AsiaSingapore: "Asia/Singapore",
|
|
2549
|
+
AsiaSrednekolymsk: "Asia/Srednekolymsk",
|
|
2550
|
+
AsiaTaipei: "Asia/Taipei",
|
|
2551
|
+
AsiaTashkent: "Asia/Tashkent",
|
|
2552
|
+
AsiaTbilisi: "Asia/Tbilisi",
|
|
2553
|
+
AsiaTehran: "Asia/Tehran",
|
|
2554
|
+
AsiaThimphu: "Asia/Thimphu",
|
|
2555
|
+
AsiaTokyo: "Asia/Tokyo",
|
|
2556
|
+
AsiaTomsk: "Asia/Tomsk",
|
|
2557
|
+
AsiaUlaanbaatar: "Asia/Ulaanbaatar",
|
|
2558
|
+
AsiaUrumqi: "Asia/Urumqi",
|
|
2559
|
+
AsiaUstNera: "Asia/Ust-Nera",
|
|
2560
|
+
AsiaVladivostok: "Asia/Vladivostok",
|
|
2561
|
+
AsiaYakutsk: "Asia/Yakutsk",
|
|
2562
|
+
AsiaYangon: "Asia/Yangon",
|
|
2563
|
+
AsiaYekaterinburg: "Asia/Yekaterinburg",
|
|
2564
|
+
AsiaYerevan: "Asia/Yerevan",
|
|
2565
|
+
AtlanticAzores: "Atlantic/Azores",
|
|
2566
|
+
AtlanticBermuda: "Atlantic/Bermuda",
|
|
2567
|
+
AtlanticCanary: "Atlantic/Canary",
|
|
2568
|
+
AtlanticCapeVerde: "Atlantic/Cape_Verde",
|
|
2569
|
+
AtlanticFaroe: "Atlantic/Faroe",
|
|
2570
|
+
AtlanticMadeira: "Atlantic/Madeira",
|
|
2571
|
+
AtlanticSouthGeorgia: "Atlantic/South_Georgia",
|
|
2572
|
+
AtlanticStanley: "Atlantic/Stanley",
|
|
2573
|
+
AustraliaAdelaide: "Australia/Adelaide",
|
|
2574
|
+
AustraliaBrisbane: "Australia/Brisbane",
|
|
2575
|
+
AustraliaBrokenHill: "Australia/Broken_Hill",
|
|
2576
|
+
AustraliaDarwin: "Australia/Darwin",
|
|
2577
|
+
AustraliaEucla: "Australia/Eucla",
|
|
2578
|
+
AustraliaHobart: "Australia/Hobart",
|
|
2579
|
+
AustraliaLindeman: "Australia/Lindeman",
|
|
2580
|
+
AustraliaLordHowe: "Australia/Lord_Howe",
|
|
2581
|
+
AustraliaMelbourne: "Australia/Melbourne",
|
|
2582
|
+
AustraliaPerth: "Australia/Perth",
|
|
2583
|
+
AustraliaSydney: "Australia/Sydney",
|
|
2584
|
+
EuropeAndorra: "Europe/Andorra",
|
|
2585
|
+
EuropeAstrakhan: "Europe/Astrakhan",
|
|
2586
|
+
EuropeAthens: "Europe/Athens",
|
|
2587
|
+
EuropeBelgrade: "Europe/Belgrade",
|
|
2588
|
+
EuropeBerlin: "Europe/Berlin",
|
|
2589
|
+
EuropeBrussels: "Europe/Brussels",
|
|
2590
|
+
EuropeBucharest: "Europe/Bucharest",
|
|
2591
|
+
EuropeBudapest: "Europe/Budapest",
|
|
2592
|
+
EuropeChisinau: "Europe/Chisinau",
|
|
2593
|
+
EuropeDublin: "Europe/Dublin",
|
|
2594
|
+
EuropeGibraltar: "Europe/Gibraltar",
|
|
2595
|
+
EuropeHelsinki: "Europe/Helsinki",
|
|
2596
|
+
EuropeIstanbul: "Europe/Istanbul",
|
|
2597
|
+
EuropeKaliningrad: "Europe/Kaliningrad",
|
|
2598
|
+
EuropeKirov: "Europe/Kirov",
|
|
2599
|
+
EuropeKyiv: "Europe/Kyiv",
|
|
2600
|
+
EuropeLisbon: "Europe/Lisbon",
|
|
2601
|
+
EuropeLondon: "Europe/London",
|
|
2602
|
+
EuropeMadrid: "Europe/Madrid",
|
|
2603
|
+
EuropeMalta: "Europe/Malta",
|
|
2604
|
+
EuropeMinsk: "Europe/Minsk",
|
|
2605
|
+
EuropeMoscow: "Europe/Moscow",
|
|
2606
|
+
EuropeParis: "Europe/Paris",
|
|
2607
|
+
EuropePrague: "Europe/Prague",
|
|
2608
|
+
EuropeRiga: "Europe/Riga",
|
|
2609
|
+
EuropeRome: "Europe/Rome",
|
|
2610
|
+
EuropeSamara: "Europe/Samara",
|
|
2611
|
+
EuropeSaratov: "Europe/Saratov",
|
|
2612
|
+
EuropeSimferopol: "Europe/Simferopol",
|
|
2613
|
+
EuropeSofia: "Europe/Sofia",
|
|
2614
|
+
EuropeTallinn: "Europe/Tallinn",
|
|
2615
|
+
EuropeTirane: "Europe/Tirane",
|
|
2616
|
+
EuropeUlyanovsk: "Europe/Ulyanovsk",
|
|
2617
|
+
EuropeVienna: "Europe/Vienna",
|
|
2618
|
+
EuropeVilnius: "Europe/Vilnius",
|
|
2619
|
+
EuropeVolgograd: "Europe/Volgograd",
|
|
2620
|
+
EuropeWarsaw: "Europe/Warsaw",
|
|
2621
|
+
EuropeZurich: "Europe/Zurich",
|
|
2622
|
+
IndianChagos: "Indian/Chagos",
|
|
2623
|
+
IndianMaldives: "Indian/Maldives",
|
|
2624
|
+
IndianMauritius: "Indian/Mauritius",
|
|
2625
|
+
PacificApia: "Pacific/Apia",
|
|
2626
|
+
PacificAuckland: "Pacific/Auckland",
|
|
2627
|
+
PacificBougainville: "Pacific/Bougainville",
|
|
2628
|
+
PacificChatham: "Pacific/Chatham",
|
|
2629
|
+
PacificEaster: "Pacific/Easter",
|
|
2630
|
+
PacificEfate: "Pacific/Efate",
|
|
2631
|
+
PacificFakaofo: "Pacific/Fakaofo",
|
|
2632
|
+
PacificFiji: "Pacific/Fiji",
|
|
2633
|
+
PacificGalapagos: "Pacific/Galapagos",
|
|
2634
|
+
PacificGambier: "Pacific/Gambier",
|
|
2635
|
+
PacificGuadalcanal: "Pacific/Guadalcanal",
|
|
2636
|
+
PacificGuam: "Pacific/Guam",
|
|
2637
|
+
PacificHonolulu: "Pacific/Honolulu",
|
|
2638
|
+
PacificKanton: "Pacific/Kanton",
|
|
2639
|
+
PacificKiritimati: "Pacific/Kiritimati",
|
|
2640
|
+
PacificKosrae: "Pacific/Kosrae",
|
|
2641
|
+
PacificKwajalein: "Pacific/Kwajalein",
|
|
2642
|
+
PacificMarquesas: "Pacific/Marquesas",
|
|
2643
|
+
PacificNauru: "Pacific/Nauru",
|
|
2644
|
+
PacificNiue: "Pacific/Niue",
|
|
2645
|
+
PacificNorfolk: "Pacific/Norfolk",
|
|
2646
|
+
PacificNoumea: "Pacific/Noumea",
|
|
2647
|
+
PacificPagoPago: "Pacific/Pago_Pago",
|
|
2648
|
+
PacificPalau: "Pacific/Palau",
|
|
2649
|
+
PacificPitcairn: "Pacific/Pitcairn",
|
|
2650
|
+
PacificPortMoresby: "Pacific/Port_Moresby",
|
|
2651
|
+
PacificRarotonga: "Pacific/Rarotonga",
|
|
2652
|
+
PacificTahiti: "Pacific/Tahiti",
|
|
2653
|
+
PacificTarawa: "Pacific/Tarawa",
|
|
2654
|
+
PacificTongatapu: "Pacific/Tongatapu"
|
|
2655
|
+
};
|
|
2656
|
+
var Locales = {
|
|
2657
|
+
/** Portuguese */
|
|
2658
|
+
Pt: "pt",
|
|
2659
|
+
/** Portuguese (Brazil) */
|
|
2660
|
+
PtBR: "pt-BR",
|
|
2661
|
+
/** Portuguese (Portugal) */
|
|
2662
|
+
PtPT: "pt-PT",
|
|
2663
|
+
/** English */
|
|
2664
|
+
En: "en",
|
|
2665
|
+
/** English (United States) */
|
|
2666
|
+
EnUS: "en-US",
|
|
2667
|
+
/** English (United Kingdom) */
|
|
2668
|
+
EnGB: "en-GB",
|
|
2669
|
+
/** English (Canada) */
|
|
2670
|
+
EnCA: "en-CA",
|
|
2671
|
+
/** English (Australia) */
|
|
2672
|
+
EnAU: "en-AU",
|
|
2673
|
+
/** English (India) */
|
|
2674
|
+
EnIN: "en-IN",
|
|
2675
|
+
/** Spanish */
|
|
2676
|
+
Es: "es",
|
|
2677
|
+
/** Spanish (Spain) */
|
|
2678
|
+
EsES: "es-ES",
|
|
2679
|
+
/** Spanish (Mexico) */
|
|
2680
|
+
EsMX: "es-MX",
|
|
2681
|
+
/** Spanish (Argentina) */
|
|
2682
|
+
EsAR: "es-AR",
|
|
2683
|
+
/** Spanish (Colombia) */
|
|
2684
|
+
EsCO: "es-CO",
|
|
2685
|
+
/** Spanish (Chile) */
|
|
2686
|
+
EsCL: "es-CL",
|
|
2687
|
+
/** Spanish (Latin America) */
|
|
2688
|
+
Es419: "es-419",
|
|
2689
|
+
/** French */
|
|
2690
|
+
Fr: "fr",
|
|
2691
|
+
/** French (France) */
|
|
2692
|
+
FrFR: "fr-FR",
|
|
2693
|
+
/** French (Canada) */
|
|
2694
|
+
FrCA: "fr-CA",
|
|
2695
|
+
/** German */
|
|
2696
|
+
De: "de",
|
|
2697
|
+
/** German (Germany) */
|
|
2698
|
+
DeDE: "de-DE",
|
|
2699
|
+
/** Italian */
|
|
2700
|
+
It: "it",
|
|
2701
|
+
/** Dutch */
|
|
2702
|
+
Nl: "nl",
|
|
2703
|
+
/** Polish */
|
|
2704
|
+
Pl: "pl",
|
|
2705
|
+
/** Russian */
|
|
2706
|
+
Ru: "ru",
|
|
2707
|
+
/** Ukrainian */
|
|
2708
|
+
Uk: "uk",
|
|
2709
|
+
/** Turkish */
|
|
2710
|
+
Tr: "tr",
|
|
2711
|
+
/** Arabic */
|
|
2712
|
+
Ar: "ar",
|
|
2713
|
+
/** Hebrew */
|
|
2714
|
+
He: "he",
|
|
2715
|
+
/** Hindi */
|
|
2716
|
+
Hi: "hi",
|
|
2717
|
+
/** Japanese */
|
|
2718
|
+
Ja: "ja",
|
|
2719
|
+
/** Korean */
|
|
2720
|
+
Ko: "ko",
|
|
2721
|
+
/** Chinese */
|
|
2722
|
+
Zh: "zh",
|
|
2723
|
+
/** Chinese (China) */
|
|
2724
|
+
ZhCN: "zh-CN",
|
|
2725
|
+
/** Chinese (Taiwan) */
|
|
2726
|
+
ZhTW: "zh-TW",
|
|
2727
|
+
/** Chinese (Simplified) */
|
|
2728
|
+
ZhHans: "zh-Hans",
|
|
2729
|
+
/** Chinese (Traditional) */
|
|
2730
|
+
ZhHant: "zh-Hant",
|
|
2731
|
+
/** Indonesian */
|
|
2732
|
+
Id: "id",
|
|
2733
|
+
/** Vietnamese */
|
|
2734
|
+
Vi: "vi",
|
|
2735
|
+
/** Thai */
|
|
2736
|
+
Th: "th",
|
|
2737
|
+
/** Swedish */
|
|
2738
|
+
Sv: "sv",
|
|
2739
|
+
/** Danish */
|
|
2740
|
+
Da: "da",
|
|
2741
|
+
/** Norwegian Bokmål */
|
|
2742
|
+
Nb: "nb",
|
|
2743
|
+
/** Finnish */
|
|
2744
|
+
Fi: "fi",
|
|
2745
|
+
/** Czech */
|
|
2746
|
+
Cs: "cs",
|
|
2747
|
+
/** Greek */
|
|
2748
|
+
El: "el",
|
|
2749
|
+
/** Romanian */
|
|
2750
|
+
Ro: "ro",
|
|
2751
|
+
/** Hungarian */
|
|
2752
|
+
Hu: "hu"
|
|
2753
|
+
};
|
|
2328
2754
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2329
2755
|
0 && (module.exports = {
|
|
2330
2756
|
AuthorizationError,
|
|
@@ -2337,6 +2763,7 @@ var SubtenantPermissions = {
|
|
|
2337
2763
|
ErrorCodes,
|
|
2338
2764
|
FetchHttpAdapter,
|
|
2339
2765
|
JwksTokenVerifier,
|
|
2766
|
+
Locales,
|
|
2340
2767
|
LoggingHttpAdapter,
|
|
2341
2768
|
SubtenantPermissions,
|
|
2342
2769
|
TENANT_FILTER_MAX_DEPTH,
|
|
@@ -2344,6 +2771,7 @@ var SubtenantPermissions = {
|
|
|
2344
2771
|
TENANT_FILTER_MAX_VALUE_LENGTH,
|
|
2345
2772
|
TenantPermissions,
|
|
2346
2773
|
TenantScopedClient,
|
|
2774
|
+
TimeZones,
|
|
2347
2775
|
TokenVerificationError,
|
|
2348
2776
|
UserScopedClient,
|
|
2349
2777
|
authorizeRequest,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { H as HttpAdapter, a as HttpLoggerOptions, A as AuthyonServerClient } from './authyonServerClient-
|
|
2
|
-
export { b as AcceptTenantInviteInput, c as AccessTokenSource, d as Approval, e as ApprovalAssurance, f as ApprovalPayload, g as ApprovalStatus, h as ApprovalWebAuthnOptions, i as AuditEvent, j as AuthyonJwksDiscoveryOptions, k as AuthyonJwtClaims, l as AuthyonServerClientOptions, m as AuthyonTenantClaim, B as BuiltInPermission, C as CLIENT_IP_HEADER, n as ClientCredentials, o as ClientRequestContext, p as ConfirmApprovalInput, q as ConsumedApproval, r as CreateApprovalInput, s as CreateCredentialInput, t as CreateOrganizationInput, u as CreatePermissionInput, v as CreateTenantCredentialInput, w as CreateTenantInput, x as CreateUserInput, y as CredentialCreator, z as CredentialDetail, D as CredentialListOptions, E as CredentialPermissionsInput, F as EnvironmentUser, G as FetchHttpAdapter, I as HttpAdapterRequest, K as HttpLogEvent, L as HttpLogger, M as IntrospectResult, N as InviteTenantMemberInput, O as IssuePasswordResetInput, P as JsonWebKeySet, J as JwksTokenVerifier, Q as JwksTokenVerifierOptions, R as LoggingHttpAdapter, S as LoginActivity, T as MemberListOptions, U as MyTenant, V as OpenIdConfiguration, W as Organization, X as OtpCheckResult, Y as Paged, Z as PaginationOptions, _ as PasswordResetCompleted, $ as PasswordResetIssued, a0 as PasswordResetPreview, a1 as Permission, a2 as PermissionFilterOptions, a3 as PermissionsByRole, a4 as ReservedPermissions, a5 as Role, a6 as RoleGrant, a7 as RoleInput, a8 as RoleList, a9 as RolePermissions, aa as SafeJwtAlgorithm, ab as SecurityMethods, ac as SubTenant, ad as SubTenantListOptions, ae as SubjectApprovals, af as SubjectSecurity, ag as TENANT_FILTER_MAX_DEPTH, ah as TENANT_FILTER_MAX_VALUES, ai as TENANT_FILTER_MAX_VALUE_LENGTH, aj as Tenant, ak as TenantAncestor, al as TenantClientValidationResult, am as TenantCredentialIssued, an as TenantCredentialSummary, ao as TenantFilterExpression, ap as TenantFilterValue, aq as TenantInvite, ar as TenantInviteAccepted, as as TenantInviteInput, at as TenantInviteIssued, au as TenantInviteListOptions, av as TenantInvitePreview, aw as TenantInviteStatus, ax as TenantListOptions, ay as TenantMember, az as TenantMemberPage, aA as TenantMembership, aB as TenantOrder, aC as TenantOrderField, aD as TenantParent, aE as TenantScopedClient, aF as TokenResult, aG as TokenVerificationError, aH as TokenVerificationErrorCode, aI as UpdateOrganizationInput, aJ as UpdateTenantInput, aK as User, aL as UserScopedClient, aM as ValidateResult, aN as VerifiedAccessToken, aO as createClient, aP as normalizeClientIp, aQ as tenantFilter } from './authyonServerClient-
|
|
3
|
-
export { b as AbilityConditions, c as AbilityEvent, d as AbilityListener, e as AbilityRequirement, f as AbilityRule, A as AbilitySubject, g as AuthorizationContext, a as AuthorizationError, h as AuthorizationOptions, i as AuthyonAbility, j as AuthyonAbilityBuilder, k as AuthyonAbilityOptions, l as AuthyonPermissionSource, E as ExpressAuthorizationMiddlewareOptions, m as ExpressNext, n as ExpressRequestLike, o as ExpressResponseLike, P as PermissionGroup, R as RequestAuthorizationOptions, p as authorizeRequest, q as authorizeToken, r as createAuthorizationErrorResponse, s as createAuthyonAbility, t as createAuthyonRules, u as createExpressAuthorizationMiddleware, v as hasPermission, w as hasPermissionGroup } from './authorization-
|
|
1
|
+
import { H as HttpAdapter, a as HttpLoggerOptions, A as AuthyonServerClient } from './authyonServerClient-CpTMX1GH.cjs';
|
|
2
|
+
export { b as AcceptTenantInviteInput, c as AccessTokenSource, d as Approval, e as ApprovalAssurance, f as ApprovalPayload, g as ApprovalStatus, h as ApprovalWebAuthnOptions, i as AuditEvent, j as AuthyonJwksDiscoveryOptions, k as AuthyonJwtClaims, l as AuthyonServerClientOptions, m as AuthyonTenantClaim, B as BuiltInPermission, C as CLIENT_IP_HEADER, n as ClientCredentials, o as ClientRequestContext, p as ConfirmApprovalInput, q as ConsumedApproval, r as CreateApprovalInput, s as CreateCredentialInput, t as CreateOrganizationInput, u as CreatePermissionInput, v as CreateTenantCredentialInput, w as CreateTenantInput, x as CreateUserInput, y as CredentialCreator, z as CredentialDetail, D as CredentialListOptions, E as CredentialPermissionsInput, F as EnvironmentUser, G as FetchHttpAdapter, I as HttpAdapterRequest, K as HttpLogEvent, L as HttpLogger, M as IntrospectResult, N as InviteTenantMemberInput, O as IssuePasswordResetInput, P as JsonWebKeySet, J as JwksTokenVerifier, Q as JwksTokenVerifierOptions, R as LoggingHttpAdapter, S as LoginActivity, T as MemberListOptions, U as MyTenant, V as OpenIdConfiguration, W as Organization, X as OtpCheckResult, Y as Paged, Z as PaginationOptions, _ as PasswordResetCompleted, $ as PasswordResetIssued, a0 as PasswordResetPreview, a1 as Permission, a2 as PermissionFilterOptions, a3 as PermissionsByRole, a4 as ReservedPermissions, a5 as Role, a6 as RoleGrant, a7 as RoleInput, a8 as RoleList, a9 as RolePermissions, aa as SafeJwtAlgorithm, ab as SecurityMethods, ac as SubTenant, ad as SubTenantListOptions, ae as SubjectApprovals, af as SubjectSecurity, ag as TENANT_FILTER_MAX_DEPTH, ah as TENANT_FILTER_MAX_VALUES, ai as TENANT_FILTER_MAX_VALUE_LENGTH, aj as Tenant, ak as TenantAncestor, al as TenantClientValidationResult, am as TenantCredentialIssued, an as TenantCredentialSummary, ao as TenantFilterExpression, ap as TenantFilterValue, aq as TenantInvite, ar as TenantInviteAccepted, as as TenantInviteInput, at as TenantInviteIssued, au as TenantInviteListOptions, av as TenantInvitePreview, aw as TenantInviteStatus, ax as TenantListOptions, ay as TenantMember, az as TenantMemberPage, aA as TenantMembership, aB as TenantOrder, aC as TenantOrderField, aD as TenantParent, aE as TenantScopedClient, aF as TokenResult, aG as TokenVerificationError, aH as TokenVerificationErrorCode, aI as UpdateOrganizationInput, aJ as UpdateTenantInput, aK as User, aL as UserScopedClient, aM as ValidateResult, aN as VerifiedAccessToken, aO as createClient, aP as normalizeClientIp, aQ as tenantFilter } from './authyonServerClient-CpTMX1GH.cjs';
|
|
3
|
+
export { b as AbilityConditions, c as AbilityEvent, d as AbilityListener, e as AbilityRequirement, f as AbilityRule, A as AbilitySubject, g as AuthorizationContext, a as AuthorizationError, h as AuthorizationOptions, i as AuthyonAbility, j as AuthyonAbilityBuilder, k as AuthyonAbilityOptions, l as AuthyonPermissionSource, E as ExpressAuthorizationMiddlewareOptions, m as ExpressNext, n as ExpressRequestLike, o as ExpressResponseLike, P as PermissionGroup, R as RequestAuthorizationOptions, p as authorizeRequest, q as authorizeToken, r as createAuthorizationErrorResponse, s as createAuthyonAbility, t as createAuthyonRules, u as createExpressAuthorizationMiddleware, v as hasPermission, w as hasPermissionGroup } from './authorization-DlGXQXIW.cjs';
|
|
4
|
+
export { L as Locale, a as Locales, T as TimeZone, b as TimeZones } from './preferences-CPQEbdxV.cjs';
|
|
4
5
|
import 'jose';
|
|
5
6
|
|
|
6
7
|
declare const ErrorCodes: {
|
|
@@ -31,6 +32,10 @@ declare const ErrorCodes: {
|
|
|
31
32
|
readonly ApprovalNotFound: "authorization_not_found";
|
|
32
33
|
readonly SessionRevoked: "session_revoked";
|
|
33
34
|
readonly TwoFactorTooManyFailures: "user.2fa.too_many_failures";
|
|
35
|
+
/** Not an IANA time zone the API knows. See `TimeZones`. */
|
|
36
|
+
readonly PreferencesTimeZoneInvalid: "preferences.time_zone.invalid";
|
|
37
|
+
/** Not a well-formed BCP 47 tag. See `Locales`. */
|
|
38
|
+
readonly PreferencesLocaleInvalid: "preferences.locale.invalid";
|
|
34
39
|
};
|
|
35
40
|
type KnownErrorCode = (typeof ErrorCodes)[keyof typeof ErrorCodes];
|
|
36
41
|
type AuthyonErrorCategory = "network" | "timeout" | "authentication" | "authorization" | "validation" | "not_found" | "conflict" | "rate_limit" | "server" | "unknown";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { H as HttpAdapter, a as HttpLoggerOptions, A as AuthyonServerClient } from './authyonServerClient-
|
|
2
|
-
export { b as AcceptTenantInviteInput, c as AccessTokenSource, d as Approval, e as ApprovalAssurance, f as ApprovalPayload, g as ApprovalStatus, h as ApprovalWebAuthnOptions, i as AuditEvent, j as AuthyonJwksDiscoveryOptions, k as AuthyonJwtClaims, l as AuthyonServerClientOptions, m as AuthyonTenantClaim, B as BuiltInPermission, C as CLIENT_IP_HEADER, n as ClientCredentials, o as ClientRequestContext, p as ConfirmApprovalInput, q as ConsumedApproval, r as CreateApprovalInput, s as CreateCredentialInput, t as CreateOrganizationInput, u as CreatePermissionInput, v as CreateTenantCredentialInput, w as CreateTenantInput, x as CreateUserInput, y as CredentialCreator, z as CredentialDetail, D as CredentialListOptions, E as CredentialPermissionsInput, F as EnvironmentUser, G as FetchHttpAdapter, I as HttpAdapterRequest, K as HttpLogEvent, L as HttpLogger, M as IntrospectResult, N as InviteTenantMemberInput, O as IssuePasswordResetInput, P as JsonWebKeySet, J as JwksTokenVerifier, Q as JwksTokenVerifierOptions, R as LoggingHttpAdapter, S as LoginActivity, T as MemberListOptions, U as MyTenant, V as OpenIdConfiguration, W as Organization, X as OtpCheckResult, Y as Paged, Z as PaginationOptions, _ as PasswordResetCompleted, $ as PasswordResetIssued, a0 as PasswordResetPreview, a1 as Permission, a2 as PermissionFilterOptions, a3 as PermissionsByRole, a4 as ReservedPermissions, a5 as Role, a6 as RoleGrant, a7 as RoleInput, a8 as RoleList, a9 as RolePermissions, aa as SafeJwtAlgorithm, ab as SecurityMethods, ac as SubTenant, ad as SubTenantListOptions, ae as SubjectApprovals, af as SubjectSecurity, ag as TENANT_FILTER_MAX_DEPTH, ah as TENANT_FILTER_MAX_VALUES, ai as TENANT_FILTER_MAX_VALUE_LENGTH, aj as Tenant, ak as TenantAncestor, al as TenantClientValidationResult, am as TenantCredentialIssued, an as TenantCredentialSummary, ao as TenantFilterExpression, ap as TenantFilterValue, aq as TenantInvite, ar as TenantInviteAccepted, as as TenantInviteInput, at as TenantInviteIssued, au as TenantInviteListOptions, av as TenantInvitePreview, aw as TenantInviteStatus, ax as TenantListOptions, ay as TenantMember, az as TenantMemberPage, aA as TenantMembership, aB as TenantOrder, aC as TenantOrderField, aD as TenantParent, aE as TenantScopedClient, aF as TokenResult, aG as TokenVerificationError, aH as TokenVerificationErrorCode, aI as UpdateOrganizationInput, aJ as UpdateTenantInput, aK as User, aL as UserScopedClient, aM as ValidateResult, aN as VerifiedAccessToken, aO as createClient, aP as normalizeClientIp, aQ as tenantFilter } from './authyonServerClient-
|
|
3
|
-
export { b as AbilityConditions, c as AbilityEvent, d as AbilityListener, e as AbilityRequirement, f as AbilityRule, A as AbilitySubject, g as AuthorizationContext, a as AuthorizationError, h as AuthorizationOptions, i as AuthyonAbility, j as AuthyonAbilityBuilder, k as AuthyonAbilityOptions, l as AuthyonPermissionSource, E as ExpressAuthorizationMiddlewareOptions, m as ExpressNext, n as ExpressRequestLike, o as ExpressResponseLike, P as PermissionGroup, R as RequestAuthorizationOptions, p as authorizeRequest, q as authorizeToken, r as createAuthorizationErrorResponse, s as createAuthyonAbility, t as createAuthyonRules, u as createExpressAuthorizationMiddleware, v as hasPermission, w as hasPermissionGroup } from './authorization-
|
|
1
|
+
import { H as HttpAdapter, a as HttpLoggerOptions, A as AuthyonServerClient } from './authyonServerClient-CpTMX1GH.js';
|
|
2
|
+
export { b as AcceptTenantInviteInput, c as AccessTokenSource, d as Approval, e as ApprovalAssurance, f as ApprovalPayload, g as ApprovalStatus, h as ApprovalWebAuthnOptions, i as AuditEvent, j as AuthyonJwksDiscoveryOptions, k as AuthyonJwtClaims, l as AuthyonServerClientOptions, m as AuthyonTenantClaim, B as BuiltInPermission, C as CLIENT_IP_HEADER, n as ClientCredentials, o as ClientRequestContext, p as ConfirmApprovalInput, q as ConsumedApproval, r as CreateApprovalInput, s as CreateCredentialInput, t as CreateOrganizationInput, u as CreatePermissionInput, v as CreateTenantCredentialInput, w as CreateTenantInput, x as CreateUserInput, y as CredentialCreator, z as CredentialDetail, D as CredentialListOptions, E as CredentialPermissionsInput, F as EnvironmentUser, G as FetchHttpAdapter, I as HttpAdapterRequest, K as HttpLogEvent, L as HttpLogger, M as IntrospectResult, N as InviteTenantMemberInput, O as IssuePasswordResetInput, P as JsonWebKeySet, J as JwksTokenVerifier, Q as JwksTokenVerifierOptions, R as LoggingHttpAdapter, S as LoginActivity, T as MemberListOptions, U as MyTenant, V as OpenIdConfiguration, W as Organization, X as OtpCheckResult, Y as Paged, Z as PaginationOptions, _ as PasswordResetCompleted, $ as PasswordResetIssued, a0 as PasswordResetPreview, a1 as Permission, a2 as PermissionFilterOptions, a3 as PermissionsByRole, a4 as ReservedPermissions, a5 as Role, a6 as RoleGrant, a7 as RoleInput, a8 as RoleList, a9 as RolePermissions, aa as SafeJwtAlgorithm, ab as SecurityMethods, ac as SubTenant, ad as SubTenantListOptions, ae as SubjectApprovals, af as SubjectSecurity, ag as TENANT_FILTER_MAX_DEPTH, ah as TENANT_FILTER_MAX_VALUES, ai as TENANT_FILTER_MAX_VALUE_LENGTH, aj as Tenant, ak as TenantAncestor, al as TenantClientValidationResult, am as TenantCredentialIssued, an as TenantCredentialSummary, ao as TenantFilterExpression, ap as TenantFilterValue, aq as TenantInvite, ar as TenantInviteAccepted, as as TenantInviteInput, at as TenantInviteIssued, au as TenantInviteListOptions, av as TenantInvitePreview, aw as TenantInviteStatus, ax as TenantListOptions, ay as TenantMember, az as TenantMemberPage, aA as TenantMembership, aB as TenantOrder, aC as TenantOrderField, aD as TenantParent, aE as TenantScopedClient, aF as TokenResult, aG as TokenVerificationError, aH as TokenVerificationErrorCode, aI as UpdateOrganizationInput, aJ as UpdateTenantInput, aK as User, aL as UserScopedClient, aM as ValidateResult, aN as VerifiedAccessToken, aO as createClient, aP as normalizeClientIp, aQ as tenantFilter } from './authyonServerClient-CpTMX1GH.js';
|
|
3
|
+
export { b as AbilityConditions, c as AbilityEvent, d as AbilityListener, e as AbilityRequirement, f as AbilityRule, A as AbilitySubject, g as AuthorizationContext, a as AuthorizationError, h as AuthorizationOptions, i as AuthyonAbility, j as AuthyonAbilityBuilder, k as AuthyonAbilityOptions, l as AuthyonPermissionSource, E as ExpressAuthorizationMiddlewareOptions, m as ExpressNext, n as ExpressRequestLike, o as ExpressResponseLike, P as PermissionGroup, R as RequestAuthorizationOptions, p as authorizeRequest, q as authorizeToken, r as createAuthorizationErrorResponse, s as createAuthyonAbility, t as createAuthyonRules, u as createExpressAuthorizationMiddleware, v as hasPermission, w as hasPermissionGroup } from './authorization-CF352ynn.js';
|
|
4
|
+
export { L as Locale, a as Locales, T as TimeZone, b as TimeZones } from './preferences-CPQEbdxV.js';
|
|
4
5
|
import 'jose';
|
|
5
6
|
|
|
6
7
|
declare const ErrorCodes: {
|
|
@@ -31,6 +32,10 @@ declare const ErrorCodes: {
|
|
|
31
32
|
readonly ApprovalNotFound: "authorization_not_found";
|
|
32
33
|
readonly SessionRevoked: "session_revoked";
|
|
33
34
|
readonly TwoFactorTooManyFailures: "user.2fa.too_many_failures";
|
|
35
|
+
/** Not an IANA time zone the API knows. See `TimeZones`. */
|
|
36
|
+
readonly PreferencesTimeZoneInvalid: "preferences.time_zone.invalid";
|
|
37
|
+
/** Not a well-formed BCP 47 tag. See `Locales`. */
|
|
38
|
+
readonly PreferencesLocaleInvalid: "preferences.locale.invalid";
|
|
34
39
|
};
|
|
35
40
|
type KnownErrorCode = (typeof ErrorCodes)[keyof typeof ErrorCodes];
|
|
36
41
|
type AuthyonErrorCategory = "network" | "timeout" | "authentication" | "authorization" | "validation" | "not_found" | "conflict" | "rate_limit" | "server" | "unknown";
|