mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-16 10:41:52 +02:00
Compare commits
49 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3fb36c1434 | |||
| 29f91e8276 | |||
| 4d9e38d022 | |||
| d7d31b78f0 | |||
| e8ed8fc7e9 | |||
| 5ee406c92e | |||
| 89f4f4ba6f | |||
| 4e5fd2f2b0 | |||
| 22a5743817 | |||
| 40e05f903a | |||
| 6c1e1bc0ca | |||
| cebbf9ca65 | |||
| e6646e5833 | |||
| 00f7510195 | |||
| 8d1f5e1096 | |||
| e497fcc3b9 | |||
| a7010b2788 | |||
| abf58a70ee | |||
| d4c602cf91 | |||
| d1b0bbb6d9 | |||
| ae0be3a4bc | |||
| a8f3f71021 | |||
| 933ca71c16 | |||
| 591cb9cdc1 | |||
| 34b18bdb53 | |||
| 7d475f5e91 | |||
| 39c35fa539 | |||
| bada1fdb97 | |||
| d9303f87c8 | |||
| e1bc0b7efd | |||
| 5ef068c8dc | |||
| 14680df160 | |||
| 94c01a23a9 | |||
| 609fb357bb | |||
| cf9a17cc2e | |||
| 538b57941c | |||
| f4bee6406a | |||
| 0b2693a317 | |||
| 3be2d928f6 | |||
| d38f9ac2bb | |||
| 8d018fe47d | |||
| 34d5c9535d | |||
| dc60ef712f | |||
| 2fe85ebda2 | |||
| 3d13e9105c | |||
| 289be30e6b | |||
| a74c0c227c | |||
| 05bf77da29 | |||
| bb4deb1ae9 |
@@ -41,7 +41,7 @@
|
|||||||
</strong>
|
</strong>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
Pangolin is an open-source, identity-based remote access platform built on WireGuard® that enables secure, seamless connectivity to private and public resources. Pangolin combines reverse proxy and VPN capabilities into one platform, providing browser-based access to web applications and client-based access to any private resources with NAT traversal, all with granular access controls.
|
Pangolin is an open-source, identity-based remote access platform built on WireGuard® that enables secure connectivity to infrastructure anywhere. It combines reverse-proxy and VPN capabilities into one platform, providing browser-based access to web applications and client-based access to private resources with NAT traversal, all with granular access control.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
@@ -63,11 +63,26 @@ Pangolin is an open-source, identity-based remote access platform built on WireG
|
|||||||
|
|
||||||
Pangolin's site connectors provide gateways into networks so you can access any networked resources. Sites use outbound tunnels and intelligent NAT traversal to make networks behind restrictive firewalls available for authorized access without public IPs or open ports. Easily deploy a site as a binary or container on any platform.
|
Pangolin's site connectors provide gateways into networks so you can access any networked resources. Sites use outbound tunnels and intelligent NAT traversal to make networks behind restrictive firewalls available for authorized access without public IPs or open ports. Easily deploy a site as a binary or container on any platform.
|
||||||
|
|
||||||
|
* Lightweight user-space connector runs anywhere
|
||||||
|
* Punches through any firewall
|
||||||
|
* Doesn't require open ports or a public IP
|
||||||
|
* Strict network segmentation
|
||||||
|
* WireGuard-based
|
||||||
|
* Get alerts when a device or network resource goes down
|
||||||
|
|
||||||
<img src="public/screenshots/sites.png" alt="Sites" width="100%" />
|
<img src="public/screenshots/sites.png" alt="Sites" width="100%" />
|
||||||
|
|
||||||
### Browser-based reverse proxy access
|
### Browser-based reverse proxy access
|
||||||
|
|
||||||
Expose web applications through identity and context-aware tunneled reverse proxies. Users access applications through any web browser with authentication and granular access control without installing a client. Pangolin handles routing, load balancing, health checking, and automatic SSL certificates without exposing your network directly to the internet.
|
Expose HTTPS web applications and connect to VNC, RDP, and SSH entirely in the browser through identity and context-aware tunneled reverse proxies. Users access resources with authentication and granular access control without installing a client. Pangolin handles routing, load balancing, health checking, and automatic SSL certificates without exposing your network directly to the internet.
|
||||||
|
|
||||||
|
* Expose a web panel anywhere
|
||||||
|
* Access via any web browser
|
||||||
|
* Single sign-on across all resources
|
||||||
|
* HTTPS resources
|
||||||
|
* Remote desktop in the browser with VNC and RDP
|
||||||
|
* In-browser SSH terminal with privileged access management (PAM)
|
||||||
|
* PIN codes, passcodes, email OTP, geoblocking, allow-lists, and more
|
||||||
|
|
||||||
<img src="public/clip.gif" alt="Reverse proxy access" width="100%" />
|
<img src="public/clip.gif" alt="Reverse proxy access" width="100%" />
|
||||||
|
|
||||||
@@ -75,14 +90,35 @@ Expose web applications through identity and context-aware tunneled reverse prox
|
|||||||
|
|
||||||
Access private resources like SSH servers, databases, RDP, and entire network ranges through Pangolin clients. Intelligent NAT traversal enables connections even through restrictive firewalls, while DNS aliases provide friendly names and fast connections to resources across all your sites. Add redundancy by routing traffic through multiple connectors in your network.
|
Access private resources like SSH servers, databases, RDP, and entire network ranges through Pangolin clients. Intelligent NAT traversal enables connections even through restrictive firewalls, while DNS aliases provide friendly names and fast connections to resources across all your sites. Add redundancy by routing traffic through multiple connectors in your network.
|
||||||
|
|
||||||
|
* Peer-to-peer with intelligent NAT traversal
|
||||||
|
* Hosts/IPs and port ranges
|
||||||
|
* Network ranges/CIDRs
|
||||||
|
* Friendly DNS aliases for network addresses
|
||||||
|
* Privileged access management (PAM) with SSH resources
|
||||||
|
* Private HTTPS resources only accessible on the private network
|
||||||
|
|
||||||
<img src="public/screenshots/private-resources.png" alt="Private resources" width="100%" />
|
<img src="public/screenshots/private-resources.png" alt="Private resources" width="100%" />
|
||||||
|
|
||||||
### Give users and roles access to resources
|
### Give users and roles access to resources
|
||||||
|
|
||||||
Use Pangolin's built in users or bring your own identity provider and set up role based access control (RBAC). Grant users access to specific resources, not entire networks. Unlike traditional VPNs that expose full network access, Pangolin's zero-trust model ensures users can only reach the applications, services, and routes you explicitly define.
|
Use Pangolin's built-in users or bring your own identity provider and set up role-based access control (RBAC). Grant users access to specific resources, not entire networks. Unlike traditional VPNs that expose full network access, Pangolin's zero-trust model ensures users can only reach the applications, services, and routes you explicitly define.
|
||||||
|
|
||||||
|
* Bring your existing identity provider (IdP) or use Pangolin identities
|
||||||
|
* Sync users and roles from your IdP
|
||||||
|
* User- and role-based access control
|
||||||
|
* Full network audit and access logs
|
||||||
|
|
||||||
<img src="public/screenshots/users.png" alt="Users from identity provider with roles" width="100%" />
|
<img src="public/screenshots/users.png" alt="Users from identity provider with roles" width="100%" />
|
||||||
|
|
||||||
|
### Find and launch resources from a personalized home page
|
||||||
|
|
||||||
|
Give users a landing page to quickly find and open the resources they can access. Resources are grouped by site or label, searchable, and filterable, with grid or list views. Saved views capture filters, grouping, and layout as personal or organization-wide defaults.
|
||||||
|
|
||||||
|
* Single place for admins and non-admins to see accessible resources
|
||||||
|
* Create reusable views for common access patterns
|
||||||
|
|
||||||
|
<img src="public/screenshots/resource-launcher.png" alt="Resource Launcher" width="100%" />
|
||||||
|
|
||||||
## Download Clients
|
## Download Clients
|
||||||
|
|
||||||
Download the Pangolin client for your platform:
|
Download the Pangolin client for your platform:
|
||||||
|
|||||||
+14
-4
@@ -449,8 +449,14 @@
|
|||||||
"provisioningManage": "Осигуряване",
|
"provisioningManage": "Осигуряване",
|
||||||
"provisioningDescription": "Управление на ключовете за осигуряване и преглед на чаканещите сайтове за одобрение.",
|
"provisioningDescription": "Управление на ключовете за осигуряване и преглед на чаканещите сайтове за одобрение.",
|
||||||
"pendingSites": "Чаканещи сайтове",
|
"pendingSites": "Чаканещи сайтове",
|
||||||
"siteApproveSuccess": "Сайтът е одобрен успешно",
|
"siteApproveSuccess": "Сайтът и свързаните ресурси са одобрени успешно",
|
||||||
"siteApproveError": "Грешка при одобряването на сайта",
|
"siteApproveError": "Грешка при одобряването на сайта",
|
||||||
|
"siteReject": "Отказ на сайт",
|
||||||
|
"siteQuestionReject": "Сигурни ли сте, че искате да откажете този сайт?",
|
||||||
|
"siteMessageReject": "Това ще изтрие окончателно сайта и всички свързани ресурси, които все още са на изчакване.",
|
||||||
|
"siteConfirmReject": "Потвърдете отказ на сайт",
|
||||||
|
"siteRejectSuccess": "Сайтът беше успешно отхвърлен",
|
||||||
|
"siteRejectError": "Грешка при отхвърляне на сайта",
|
||||||
"provisioningKeys": "Ключове за осигуряване",
|
"provisioningKeys": "Ключове за осигуряване",
|
||||||
"searchProvisioningKeys": "Търсене на ключове за осигуряване...",
|
"searchProvisioningKeys": "Търсене на ключове за осигуряване...",
|
||||||
"provisioningKeysAdd": "Генериране на ключ за осигуряване",
|
"provisioningKeysAdd": "Генериране на ключ за осигуряване",
|
||||||
@@ -466,8 +472,8 @@
|
|||||||
"provisioningKeysSave": "Запазете ключа за осигуряване",
|
"provisioningKeysSave": "Запазете ключа за осигуряване",
|
||||||
"provisioningKeysSaveDescription": "Ще можете да видите това само веднъж. Копирайте го на сигурно място.",
|
"provisioningKeysSaveDescription": "Ще можете да видите това само веднъж. Копирайте го на сигурно място.",
|
||||||
"provisioningKeysErrorCreate": "Грешка при създаване на ключ за осигуряване",
|
"provisioningKeysErrorCreate": "Грешка при създаване на ключ за осигуряване",
|
||||||
"provisioningKeysList": "Нов ключ за осигуряване",
|
"provisioningKeysList": "Нов ключ за разпределяне",
|
||||||
"provisioningKeysMaxBatchSize": "Максимален размер на пакет",
|
"provisioningKeysMaxBatchSize": "Максимален размер на пакета",
|
||||||
"provisioningKeysUnlimitedBatchSize": "Неограничен размер на партида (без лимит)",
|
"provisioningKeysUnlimitedBatchSize": "Неограничен размер на партида (без лимит)",
|
||||||
"provisioningKeysMaxBatchUnlimited": "Неограничено",
|
"provisioningKeysMaxBatchUnlimited": "Неограничено",
|
||||||
"provisioningKeysMaxBatchSizeInvalid": "Въведете валиден максимален размер на партида (1–1,000,000).",
|
"provisioningKeysMaxBatchSizeInvalid": "Въведете валиден максимален размер на партида (1–1,000,000).",
|
||||||
@@ -480,7 +486,7 @@
|
|||||||
"provisioningKeysNeverUsed": "Никога",
|
"provisioningKeysNeverUsed": "Никога",
|
||||||
"provisioningKeysEdit": "Редактиране на ключ за осигуряване",
|
"provisioningKeysEdit": "Редактиране на ключ за осигуряване",
|
||||||
"provisioningKeysEditDescription": "Актуализирайте максималния размер на партида и времето на изтичане за този ключ.",
|
"provisioningKeysEditDescription": "Актуализирайте максималния размер на партида и времето на изтичане за този ключ.",
|
||||||
"provisioningKeysApproveNewSites": "Одобрете нови сайтове",
|
"provisioningKeysApproveNewSites": "Одобряване на нови сайтове",
|
||||||
"provisioningKeysApproveNewSitesDescription": "Автоматично одобряване на сайтове, които се регистрират с този ключ.",
|
"provisioningKeysApproveNewSitesDescription": "Автоматично одобряване на сайтове, които се регистрират с този ключ.",
|
||||||
"provisioningKeysUpdateError": "Грешка при актуализирането на ключа за осигуряване",
|
"provisioningKeysUpdateError": "Грешка при актуализирането на ключа за осигуряване",
|
||||||
"provisioningKeysUpdated": "Ключът за осигуряване е актуализиран",
|
"provisioningKeysUpdated": "Ключът за осигуряване е актуализиран",
|
||||||
@@ -1397,6 +1403,7 @@
|
|||||||
"createOrgUser": "Създаване на Организационна Потребител",
|
"createOrgUser": "Създаване на Организационна Потребител",
|
||||||
"actionUpdateOrg": "Актуализиране на организацията",
|
"actionUpdateOrg": "Актуализиране на организацията",
|
||||||
"actionRemoveInvitation": "Премахване на поканата.",
|
"actionRemoveInvitation": "Премахване на поканата.",
|
||||||
|
"actionRemoveUserRole": "Премахване на роля на потребител",
|
||||||
"actionUpdateUser": "Актуализиране на потребител",
|
"actionUpdateUser": "Актуализиране на потребител",
|
||||||
"actionGetUser": "Получаване на потребител",
|
"actionGetUser": "Получаване на потребител",
|
||||||
"actionGetOrgUser": "Вземете потребител на организация",
|
"actionGetOrgUser": "Вземете потребител на организация",
|
||||||
@@ -1419,6 +1426,8 @@
|
|||||||
"setupTokenDescription": "Въведете конфигурационния токен от сървърната конзола.",
|
"setupTokenDescription": "Въведете конфигурационния токен от сървърната конзола.",
|
||||||
"setupTokenRequired": "Необходим е конфигурационен токен",
|
"setupTokenRequired": "Необходим е конфигурационен токен",
|
||||||
"actionUpdateSite": "Актуализиране на сайт",
|
"actionUpdateSite": "Актуализиране на сайт",
|
||||||
|
"actionApproveSite": "Одобряване на сайт",
|
||||||
|
"actionRejectSite": "Отказ на сайт",
|
||||||
"actionResetSiteBandwidth": "Нулиране на честотната лента на организацията",
|
"actionResetSiteBandwidth": "Нулиране на честотната лента на организацията",
|
||||||
"actionListSiteRoles": "Изброяване на позволените роли за сайта",
|
"actionListSiteRoles": "Изброяване на позволените роли за сайта",
|
||||||
"actionCreateResource": "Създаване на ресурс",
|
"actionCreateResource": "Създаване на ресурс",
|
||||||
@@ -1516,6 +1525,7 @@
|
|||||||
"otpAuthDescription": "Въведете кода от приложението за удостоверяване или един от вашите резервни кодове за еднократна употреба.",
|
"otpAuthDescription": "Въведете кода от приложението за удостоверяване или един от вашите резервни кодове за еднократна употреба.",
|
||||||
"otpAuthSubmit": "Изпрати код",
|
"otpAuthSubmit": "Изпрати код",
|
||||||
"idpContinue": "Или продължете със",
|
"idpContinue": "Или продължете със",
|
||||||
|
"idpLastUsed": "Последно използвано",
|
||||||
"otpAuthBack": "Назад към парола",
|
"otpAuthBack": "Назад към парола",
|
||||||
"navbar": "Навигационно меню",
|
"navbar": "Навигационно меню",
|
||||||
"navbarDescription": "Главно навигационно меню за приложението",
|
"navbarDescription": "Главно навигационно меню за приложението",
|
||||||
|
|||||||
+13
-3
@@ -449,8 +449,14 @@
|
|||||||
"provisioningManage": "Zajištění",
|
"provisioningManage": "Zajištění",
|
||||||
"provisioningDescription": "Spravovat klíče pro nastavení a zkontrolovat čekající stránky čekající na schválení.",
|
"provisioningDescription": "Spravovat klíče pro nastavení a zkontrolovat čekající stránky čekající na schválení.",
|
||||||
"pendingSites": "Nevyřízené weby",
|
"pendingSites": "Nevyřízené weby",
|
||||||
"siteApproveSuccess": "Web byl úspěšně schválen",
|
"siteApproveSuccess": "Stránka a přidružené zdroje byly úspěšně schváleny",
|
||||||
"siteApproveError": "Chyba při schvalování webu",
|
"siteApproveError": "Chyba při schvalování webu",
|
||||||
|
"siteReject": "Odmítnout stránku",
|
||||||
|
"siteQuestionReject": "Opravdu chcete tuto stránku odmítnout?",
|
||||||
|
"siteMessageReject": "Toto trvale odstraní stránku a všechny přidružené zdroje, které jsou stále nevyřízené.",
|
||||||
|
"siteConfirmReject": "Potvrdit odmítnutí stránky",
|
||||||
|
"siteRejectSuccess": "Stránka byla úspěšně odmítnuta",
|
||||||
|
"siteRejectError": "Chyba při odmítání stránky",
|
||||||
"provisioningKeys": "Poskytovací klíče",
|
"provisioningKeys": "Poskytovací klíče",
|
||||||
"searchProvisioningKeys": "Hledat klíče k zajišťování...",
|
"searchProvisioningKeys": "Hledat klíče k zajišťování...",
|
||||||
"provisioningKeysAdd": "Generovat zajišťovací klíč",
|
"provisioningKeysAdd": "Generovat zajišťovací klíč",
|
||||||
@@ -466,12 +472,12 @@
|
|||||||
"provisioningKeysSave": "Uložit konfigurační klíč",
|
"provisioningKeysSave": "Uložit konfigurační klíč",
|
||||||
"provisioningKeysSaveDescription": "Toto můžete vidět pouze jednou. Zkopírujte ho na bezpečné místo.",
|
"provisioningKeysSaveDescription": "Toto můžete vidět pouze jednou. Zkopírujte ho na bezpečné místo.",
|
||||||
"provisioningKeysErrorCreate": "Chyba při vytváření doplňovacího klíče",
|
"provisioningKeysErrorCreate": "Chyba při vytváření doplňovacího klíče",
|
||||||
"provisioningKeysList": "Nový klíč pro poskytování informací",
|
"provisioningKeysList": "Nový provisioning klíč",
|
||||||
"provisioningKeysMaxBatchSize": "Maximální velikost dávky",
|
"provisioningKeysMaxBatchSize": "Maximální velikost dávky",
|
||||||
"provisioningKeysUnlimitedBatchSize": "Neomezená velikost šarže (bez omezení)",
|
"provisioningKeysUnlimitedBatchSize": "Neomezená velikost šarže (bez omezení)",
|
||||||
"provisioningKeysMaxBatchUnlimited": "Bez omezení",
|
"provisioningKeysMaxBatchUnlimited": "Bez omezení",
|
||||||
"provisioningKeysMaxBatchSizeInvalid": "Zadejte platnou maximální velikost šarže (1–1,000,000).",
|
"provisioningKeysMaxBatchSizeInvalid": "Zadejte platnou maximální velikost šarže (1–1,000,000).",
|
||||||
"provisioningKeysValidUntil": "Platné do",
|
"provisioningKeysValidUntil": "Platná do",
|
||||||
"provisioningKeysValidUntilHint": "Ponechte prázdné, pokud vyprší platnost.",
|
"provisioningKeysValidUntilHint": "Ponechte prázdné, pokud vyprší platnost.",
|
||||||
"provisioningKeysValidUntilInvalid": "Zadejte platné datum a čas.",
|
"provisioningKeysValidUntilInvalid": "Zadejte platné datum a čas.",
|
||||||
"provisioningKeysNumUsed": "Časy použití",
|
"provisioningKeysNumUsed": "Časy použití",
|
||||||
@@ -1397,6 +1403,7 @@
|
|||||||
"createOrgUser": "Vytvořit Org uživatele",
|
"createOrgUser": "Vytvořit Org uživatele",
|
||||||
"actionUpdateOrg": "Aktualizovat organizaci",
|
"actionUpdateOrg": "Aktualizovat organizaci",
|
||||||
"actionRemoveInvitation": "Odstranit pozvání",
|
"actionRemoveInvitation": "Odstranit pozvání",
|
||||||
|
"actionRemoveUserRole": "Odstranit uživatelskou roli",
|
||||||
"actionUpdateUser": "Aktualizovat uživatele",
|
"actionUpdateUser": "Aktualizovat uživatele",
|
||||||
"actionGetUser": "Získat uživatele",
|
"actionGetUser": "Získat uživatele",
|
||||||
"actionGetOrgUser": "Získat uživatele organizace",
|
"actionGetOrgUser": "Získat uživatele organizace",
|
||||||
@@ -1419,6 +1426,8 @@
|
|||||||
"setupTokenDescription": "Zadejte nastavovací token z konzole serveru.",
|
"setupTokenDescription": "Zadejte nastavovací token z konzole serveru.",
|
||||||
"setupTokenRequired": "Je vyžadován token nastavení",
|
"setupTokenRequired": "Je vyžadován token nastavení",
|
||||||
"actionUpdateSite": "Aktualizovat stránku",
|
"actionUpdateSite": "Aktualizovat stránku",
|
||||||
|
"actionApproveSite": "Schválit stránku",
|
||||||
|
"actionRejectSite": "Odmítnout stránku",
|
||||||
"actionResetSiteBandwidth": "Resetovat šířku pásma organizace",
|
"actionResetSiteBandwidth": "Resetovat šířku pásma organizace",
|
||||||
"actionListSiteRoles": "Seznam povolených rolí webu",
|
"actionListSiteRoles": "Seznam povolených rolí webu",
|
||||||
"actionCreateResource": "Vytvořit zdroj",
|
"actionCreateResource": "Vytvořit zdroj",
|
||||||
@@ -1516,6 +1525,7 @@
|
|||||||
"otpAuthDescription": "Zadejte kód z vaší autentizační aplikace nebo jeden z vlastních záložních kódů.",
|
"otpAuthDescription": "Zadejte kód z vaší autentizační aplikace nebo jeden z vlastních záložních kódů.",
|
||||||
"otpAuthSubmit": "Odeslat kód",
|
"otpAuthSubmit": "Odeslat kód",
|
||||||
"idpContinue": "Nebo pokračovat s",
|
"idpContinue": "Nebo pokračovat s",
|
||||||
|
"idpLastUsed": "Naposled použito",
|
||||||
"otpAuthBack": "Zpět na heslo",
|
"otpAuthBack": "Zpět na heslo",
|
||||||
"navbar": "Navigation Menu",
|
"navbar": "Navigation Menu",
|
||||||
"navbarDescription": "Hlavní navigační menu aplikace",
|
"navbarDescription": "Hlavní navigační menu aplikace",
|
||||||
|
|||||||
+12
-2
@@ -449,8 +449,14 @@
|
|||||||
"provisioningManage": "Provisionering",
|
"provisioningManage": "Provisionering",
|
||||||
"provisioningDescription": "Administrer provisioneringsnøgler og gennemgå ventende sites som venter på godkendelse.",
|
"provisioningDescription": "Administrer provisioneringsnøgler og gennemgå ventende sites som venter på godkendelse.",
|
||||||
"pendingSites": "Ventende sites",
|
"pendingSites": "Ventende sites",
|
||||||
"siteApproveSuccess": "Med succes godkendelse af site",
|
"siteApproveSuccess": "Site og tilknyttede ressourcer godkendt med succes",
|
||||||
"siteApproveError": "Fejl ved godkendelse af side",
|
"siteApproveError": "Fejl ved godkendelse af side",
|
||||||
|
"siteReject": "Afvis Site",
|
||||||
|
"siteQuestionReject": "Er du sikker på, at du vil afvise dette site?",
|
||||||
|
"siteMessageReject": "Dette vil permanent slette sitet og enhver tilknyttet ressource, der stadig er i afventning.",
|
||||||
|
"siteConfirmReject": "Bekræft Afvis Site",
|
||||||
|
"siteRejectSuccess": "Site afvist med succes",
|
||||||
|
"siteRejectError": "Fejl ved afvisning af sitet",
|
||||||
"provisioningKeys": "Provisioneringsnøgler",
|
"provisioningKeys": "Provisioneringsnøgler",
|
||||||
"searchProvisioningKeys": "Søg varer i provisioneringsnøgler...",
|
"searchProvisioningKeys": "Søg varer i provisioneringsnøgler...",
|
||||||
"provisioningKeysAdd": "Generer provisioneringsnøgle",
|
"provisioningKeysAdd": "Generer provisioneringsnøgle",
|
||||||
@@ -467,7 +473,7 @@
|
|||||||
"provisioningKeysSaveDescription": "Du kan kun se denne én gang. Kopiér det til et sikkert sted.",
|
"provisioningKeysSaveDescription": "Du kan kun se denne én gang. Kopiér det til et sikkert sted.",
|
||||||
"provisioningKeysErrorCreate": "Fejl under oprettelse af provisioneringsnøgle",
|
"provisioningKeysErrorCreate": "Fejl under oprettelse af provisioneringsnøgle",
|
||||||
"provisioningKeysList": "Ny provisioneringsnøgle",
|
"provisioningKeysList": "Ny provisioneringsnøgle",
|
||||||
"provisioningKeysMaxBatchSize": "Maks størrelse på bunt",
|
"provisioningKeysMaxBatchSize": "Maksimum Batch Størrelse",
|
||||||
"provisioningKeysUnlimitedBatchSize": "Ubegrænset mengde bunt (ingen begrænsning)",
|
"provisioningKeysUnlimitedBatchSize": "Ubegrænset mengde bunt (ingen begrænsning)",
|
||||||
"provisioningKeysMaxBatchUnlimited": "Ubegrænset",
|
"provisioningKeysMaxBatchUnlimited": "Ubegrænset",
|
||||||
"provisioningKeysMaxBatchSizeInvalid": "Angiv en gyldig sjakkstørrelse (1–1 000.000).",
|
"provisioningKeysMaxBatchSizeInvalid": "Angiv en gyldig sjakkstørrelse (1–1 000.000).",
|
||||||
@@ -1397,6 +1403,7 @@
|
|||||||
"createOrgUser": "Opret organisationsbruger",
|
"createOrgUser": "Opret organisationsbruger",
|
||||||
"actionUpdateOrg": "Opdater organisation",
|
"actionUpdateOrg": "Opdater organisation",
|
||||||
"actionRemoveInvitation": "Fjern invitation",
|
"actionRemoveInvitation": "Fjern invitation",
|
||||||
|
"actionRemoveUserRole": "Fjern Brugers Rolle",
|
||||||
"actionUpdateUser": "Opdater bruger",
|
"actionUpdateUser": "Opdater bruger",
|
||||||
"actionGetUser": "Hent bruger",
|
"actionGetUser": "Hent bruger",
|
||||||
"actionGetOrgUser": "Hent organisationsbruger",
|
"actionGetOrgUser": "Hent organisationsbruger",
|
||||||
@@ -1419,6 +1426,8 @@
|
|||||||
"setupTokenDescription": "Indtast opsætningstoken fra serverkonsollen.",
|
"setupTokenDescription": "Indtast opsætningstoken fra serverkonsollen.",
|
||||||
"setupTokenRequired": "Opsætningstoken er nødvendig",
|
"setupTokenRequired": "Opsætningstoken er nødvendig",
|
||||||
"actionUpdateSite": "Opdater site",
|
"actionUpdateSite": "Opdater site",
|
||||||
|
"actionApproveSite": "Godkend Site",
|
||||||
|
"actionRejectSite": "Afvis Site",
|
||||||
"actionResetSiteBandwidth": "Nulstil organisationsbåndbredde",
|
"actionResetSiteBandwidth": "Nulstil organisationsbåndbredde",
|
||||||
"actionListSiteRoles": "Vis tilladte områderoller",
|
"actionListSiteRoles": "Vis tilladte områderoller",
|
||||||
"actionCreateResource": "Opret ressource",
|
"actionCreateResource": "Opret ressource",
|
||||||
@@ -1516,6 +1525,7 @@
|
|||||||
"otpAuthDescription": "Indtast koden fra autentiseringsappen din eller en af dine engangs reservekoder.",
|
"otpAuthDescription": "Indtast koden fra autentiseringsappen din eller en af dine engangs reservekoder.",
|
||||||
"otpAuthSubmit": "Send kode",
|
"otpAuthSubmit": "Send kode",
|
||||||
"idpContinue": "Eller fortsæt med",
|
"idpContinue": "Eller fortsæt med",
|
||||||
|
"idpLastUsed": "Sidst brugt",
|
||||||
"otpAuthBack": "Tilbage til adgangskode",
|
"otpAuthBack": "Tilbage til adgangskode",
|
||||||
"navbar": "Navigationsmenu",
|
"navbar": "Navigationsmenu",
|
||||||
"navbarDescription": "Hovednavigasjonsmeny for applikationen",
|
"navbarDescription": "Hovednavigasjonsmeny for applikationen",
|
||||||
|
|||||||
+13
-3
@@ -449,8 +449,14 @@
|
|||||||
"provisioningManage": "Bereitstellung",
|
"provisioningManage": "Bereitstellung",
|
||||||
"provisioningDescription": "Bereitstellungsschlüssel verwalten und ausstehende Standorte prüfen, die noch auf Genehmigung warten.",
|
"provisioningDescription": "Bereitstellungsschlüssel verwalten und ausstehende Standorte prüfen, die noch auf Genehmigung warten.",
|
||||||
"pendingSites": "Ausstehende Standorte",
|
"pendingSites": "Ausstehende Standorte",
|
||||||
"siteApproveSuccess": "Standort erfolgreich freigegeben",
|
"siteApproveSuccess": "Site und zugehörige Ressourcen erfolgreich genehmigt",
|
||||||
"siteApproveError": "Fehler beim Genehmigen des Standorts",
|
"siteApproveError": "Fehler beim Genehmigen des Standorts",
|
||||||
|
"siteReject": "Site ablehnen",
|
||||||
|
"siteQuestionReject": "Sind Sie sicher, dass Sie diese Site ablehnen möchten?",
|
||||||
|
"siteMessageReject": "Dies wird die Site und alle damit verbundenen, noch ausstehenden Ressourcen dauerhaft löschen.",
|
||||||
|
"siteConfirmReject": "Ablehnung der Site bestätigen",
|
||||||
|
"siteRejectSuccess": "Site erfolgreich abgelehnt",
|
||||||
|
"siteRejectError": "Fehler beim Ablehnen der Site",
|
||||||
"provisioningKeys": "Bereitstellungsschlüssel",
|
"provisioningKeys": "Bereitstellungsschlüssel",
|
||||||
"searchProvisioningKeys": "Bereitstellungsschlüssel suchen...",
|
"searchProvisioningKeys": "Bereitstellungsschlüssel suchen...",
|
||||||
"provisioningKeysAdd": "Bereitstellungsschlüssel generieren",
|
"provisioningKeysAdd": "Bereitstellungsschlüssel generieren",
|
||||||
@@ -467,7 +473,7 @@
|
|||||||
"provisioningKeysSaveDescription": "Sie können dies nur einmal sehen. Kopieren Sie es an einen sicheren Ort.",
|
"provisioningKeysSaveDescription": "Sie können dies nur einmal sehen. Kopieren Sie es an einen sicheren Ort.",
|
||||||
"provisioningKeysErrorCreate": "Fehler beim Erstellen des Bereitstellungsschlüssels",
|
"provisioningKeysErrorCreate": "Fehler beim Erstellen des Bereitstellungsschlüssels",
|
||||||
"provisioningKeysList": "Neuer Bereitstellungsschlüssel",
|
"provisioningKeysList": "Neuer Bereitstellungsschlüssel",
|
||||||
"provisioningKeysMaxBatchSize": "Max. Batch-Größe",
|
"provisioningKeysMaxBatchSize": "Maximale Batch-Größe",
|
||||||
"provisioningKeysUnlimitedBatchSize": "Unbegrenzte Batch-Größe (kein Limit)",
|
"provisioningKeysUnlimitedBatchSize": "Unbegrenzte Batch-Größe (kein Limit)",
|
||||||
"provisioningKeysMaxBatchUnlimited": "Unbegrenzt",
|
"provisioningKeysMaxBatchUnlimited": "Unbegrenzt",
|
||||||
"provisioningKeysMaxBatchSizeInvalid": "Geben Sie eine gültige maximale Batchgröße ein (1–1.000.000).",
|
"provisioningKeysMaxBatchSizeInvalid": "Geben Sie eine gültige maximale Batchgröße ein (1–1.000.000).",
|
||||||
@@ -480,7 +486,7 @@
|
|||||||
"provisioningKeysNeverUsed": "Nie",
|
"provisioningKeysNeverUsed": "Nie",
|
||||||
"provisioningKeysEdit": "Bereitstellungsschlüssel bearbeiten",
|
"provisioningKeysEdit": "Bereitstellungsschlüssel bearbeiten",
|
||||||
"provisioningKeysEditDescription": "Aktualisieren Sie die maximale Batch-Größe und Ablaufzeit für diesen Schlüssel.",
|
"provisioningKeysEditDescription": "Aktualisieren Sie die maximale Batch-Größe und Ablaufzeit für diesen Schlüssel.",
|
||||||
"provisioningKeysApproveNewSites": "Neuen Standort genehmigen",
|
"provisioningKeysApproveNewSites": "Neue Sites genehmigen",
|
||||||
"provisioningKeysApproveNewSitesDescription": "Sites, die sich mit diesem Schlüssel registrieren, automatisch freigeben.",
|
"provisioningKeysApproveNewSitesDescription": "Sites, die sich mit diesem Schlüssel registrieren, automatisch freigeben.",
|
||||||
"provisioningKeysUpdateError": "Fehler beim Aktualisieren des Bereitstellungsschlüssels",
|
"provisioningKeysUpdateError": "Fehler beim Aktualisieren des Bereitstellungsschlüssels",
|
||||||
"provisioningKeysUpdated": "Bereitstellungsschlüssel aktualisiert",
|
"provisioningKeysUpdated": "Bereitstellungsschlüssel aktualisiert",
|
||||||
@@ -1397,6 +1403,7 @@
|
|||||||
"createOrgUser": "Org Benutzer erstellen",
|
"createOrgUser": "Org Benutzer erstellen",
|
||||||
"actionUpdateOrg": "Organisation aktualisieren",
|
"actionUpdateOrg": "Organisation aktualisieren",
|
||||||
"actionRemoveInvitation": "Einladung entfernen",
|
"actionRemoveInvitation": "Einladung entfernen",
|
||||||
|
"actionRemoveUserRole": "Benutzerrolle entfernen",
|
||||||
"actionUpdateUser": "Benutzer aktualisieren",
|
"actionUpdateUser": "Benutzer aktualisieren",
|
||||||
"actionGetUser": "Benutzer abrufen",
|
"actionGetUser": "Benutzer abrufen",
|
||||||
"actionGetOrgUser": "Organisationsbenutzer abrufen",
|
"actionGetOrgUser": "Organisationsbenutzer abrufen",
|
||||||
@@ -1419,6 +1426,8 @@
|
|||||||
"setupTokenDescription": "Geben Sie das Setup-Token von der Serverkonsole ein.",
|
"setupTokenDescription": "Geben Sie das Setup-Token von der Serverkonsole ein.",
|
||||||
"setupTokenRequired": "Setup-Token ist erforderlich",
|
"setupTokenRequired": "Setup-Token ist erforderlich",
|
||||||
"actionUpdateSite": "Standorte aktualisieren",
|
"actionUpdateSite": "Standorte aktualisieren",
|
||||||
|
"actionApproveSite": "Site genehmigen",
|
||||||
|
"actionRejectSite": "Site ablehnen",
|
||||||
"actionResetSiteBandwidth": "Organisations-Bandbreite zurücksetzen",
|
"actionResetSiteBandwidth": "Organisations-Bandbreite zurücksetzen",
|
||||||
"actionListSiteRoles": "Erlaubte Standort-Rollen auflisten",
|
"actionListSiteRoles": "Erlaubte Standort-Rollen auflisten",
|
||||||
"actionCreateResource": "Ressource erstellen",
|
"actionCreateResource": "Ressource erstellen",
|
||||||
@@ -1516,6 +1525,7 @@
|
|||||||
"otpAuthDescription": "Geben Sie den Code aus Ihrer Authenticator-App oder einen Ihrer einmaligen Backup-Codes ein.",
|
"otpAuthDescription": "Geben Sie den Code aus Ihrer Authenticator-App oder einen Ihrer einmaligen Backup-Codes ein.",
|
||||||
"otpAuthSubmit": "Code absenden",
|
"otpAuthSubmit": "Code absenden",
|
||||||
"idpContinue": "Oder weiter mit",
|
"idpContinue": "Oder weiter mit",
|
||||||
|
"idpLastUsed": "Zuletzt verwendet",
|
||||||
"otpAuthBack": "Zurück zum Passwort",
|
"otpAuthBack": "Zurück zum Passwort",
|
||||||
"navbar": "Navigationsmenü",
|
"navbar": "Navigationsmenü",
|
||||||
"navbarDescription": "Hauptnavigationsmenü für die Anwendung",
|
"navbarDescription": "Hauptnavigationsmenü für die Anwendung",
|
||||||
|
|||||||
+16
-6
@@ -449,8 +449,14 @@
|
|||||||
"provisioningManage": "Provisioning",
|
"provisioningManage": "Provisioning",
|
||||||
"provisioningDescription": "Manage provisioning keys and review pending sites awaiting approval.",
|
"provisioningDescription": "Manage provisioning keys and review pending sites awaiting approval.",
|
||||||
"pendingSites": "Pending Sites",
|
"pendingSites": "Pending Sites",
|
||||||
"siteApproveSuccess": "Site approved successfully",
|
"siteApproveSuccess": "Site and associated resources approved successfully",
|
||||||
"siteApproveError": "Error approving site",
|
"siteApproveError": "Error approving site",
|
||||||
|
"siteReject": "Reject Site",
|
||||||
|
"siteQuestionReject": "Are you sure you want to reject this site?",
|
||||||
|
"siteMessageReject": "This will permanently delete the site and any associated resources that are still pending.",
|
||||||
|
"siteConfirmReject": "Confirm Reject Site",
|
||||||
|
"siteRejectSuccess": "Site rejected successfully",
|
||||||
|
"siteRejectError": "Error rejecting site",
|
||||||
"provisioningKeys": "Provisioning Keys",
|
"provisioningKeys": "Provisioning Keys",
|
||||||
"searchProvisioningKeys": "Search provisioning keys...",
|
"searchProvisioningKeys": "Search provisioning keys...",
|
||||||
"provisioningKeysAdd": "Generate Provisioning Key",
|
"provisioningKeysAdd": "Generate Provisioning Key",
|
||||||
@@ -466,12 +472,12 @@
|
|||||||
"provisioningKeysSave": "Save the provisioning key",
|
"provisioningKeysSave": "Save the provisioning key",
|
||||||
"provisioningKeysSaveDescription": "You will only be able to see this once. Copy it to a secure place.",
|
"provisioningKeysSaveDescription": "You will only be able to see this once. Copy it to a secure place.",
|
||||||
"provisioningKeysErrorCreate": "Error creating provisioning key",
|
"provisioningKeysErrorCreate": "Error creating provisioning key",
|
||||||
"provisioningKeysList": "New provisioning key",
|
"provisioningKeysList": "New Provisioning Key",
|
||||||
"provisioningKeysMaxBatchSize": "Max batch size",
|
"provisioningKeysMaxBatchSize": "Max Batch Size",
|
||||||
"provisioningKeysUnlimitedBatchSize": "Unlimited batch size (no limit)",
|
"provisioningKeysUnlimitedBatchSize": "Unlimited batch size (no limit)",
|
||||||
"provisioningKeysMaxBatchUnlimited": "Unlimited",
|
"provisioningKeysMaxBatchUnlimited": "Unlimited",
|
||||||
"provisioningKeysMaxBatchSizeInvalid": "Enter a valid max batch size (1–1,000,000).",
|
"provisioningKeysMaxBatchSizeInvalid": "Enter a valid max batch size (1–1,000,000).",
|
||||||
"provisioningKeysValidUntil": "Valid until",
|
"provisioningKeysValidUntil": "Valid Until",
|
||||||
"provisioningKeysValidUntilHint": "Leave empty for no expiration.",
|
"provisioningKeysValidUntilHint": "Leave empty for no expiration.",
|
||||||
"provisioningKeysValidUntilInvalid": "Enter a valid date and time.",
|
"provisioningKeysValidUntilInvalid": "Enter a valid date and time.",
|
||||||
"provisioningKeysNumUsed": "Times used",
|
"provisioningKeysNumUsed": "Times used",
|
||||||
@@ -480,7 +486,7 @@
|
|||||||
"provisioningKeysNeverUsed": "Never",
|
"provisioningKeysNeverUsed": "Never",
|
||||||
"provisioningKeysEdit": "Edit Provisioning Key",
|
"provisioningKeysEdit": "Edit Provisioning Key",
|
||||||
"provisioningKeysEditDescription": "Update the max batch size and expiration time for this key.",
|
"provisioningKeysEditDescription": "Update the max batch size and expiration time for this key.",
|
||||||
"provisioningKeysApproveNewSites": "Approve new sites",
|
"provisioningKeysApproveNewSites": "Approve New Sites",
|
||||||
"provisioningKeysApproveNewSitesDescription": "Automatically approve sites that register with this key.",
|
"provisioningKeysApproveNewSitesDescription": "Automatically approve sites that register with this key.",
|
||||||
"provisioningKeysUpdateError": "Error updating provisioning key",
|
"provisioningKeysUpdateError": "Error updating provisioning key",
|
||||||
"provisioningKeysUpdated": "Provisioning key updated",
|
"provisioningKeysUpdated": "Provisioning key updated",
|
||||||
@@ -1420,6 +1426,8 @@
|
|||||||
"setupTokenDescription": "Enter the setup token from the server console.",
|
"setupTokenDescription": "Enter the setup token from the server console.",
|
||||||
"setupTokenRequired": "Setup token is required",
|
"setupTokenRequired": "Setup token is required",
|
||||||
"actionUpdateSite": "Update Site",
|
"actionUpdateSite": "Update Site",
|
||||||
|
"actionApproveSite": "Approve Site",
|
||||||
|
"actionRejectSite": "Reject Site",
|
||||||
"actionResetSiteBandwidth": "Reset Organization Bandwidth",
|
"actionResetSiteBandwidth": "Reset Organization Bandwidth",
|
||||||
"actionListSiteRoles": "List Allowed Site Roles",
|
"actionListSiteRoles": "List Allowed Site Roles",
|
||||||
"actionCreateResource": "Create Resource",
|
"actionCreateResource": "Create Resource",
|
||||||
@@ -1517,6 +1525,7 @@
|
|||||||
"otpAuthDescription": "Enter the code from your authenticator app or one of your single-use backup codes.",
|
"otpAuthDescription": "Enter the code from your authenticator app or one of your single-use backup codes.",
|
||||||
"otpAuthSubmit": "Submit Code",
|
"otpAuthSubmit": "Submit Code",
|
||||||
"idpContinue": "Or continue with",
|
"idpContinue": "Or continue with",
|
||||||
|
"idpLastUsed": "Last Used",
|
||||||
"otpAuthBack": "Back to Password",
|
"otpAuthBack": "Back to Password",
|
||||||
"navbar": "Navigation Menu",
|
"navbar": "Navigation Menu",
|
||||||
"navbarDescription": "Main navigation menu for the application",
|
"navbarDescription": "Main navigation menu for the application",
|
||||||
@@ -3802,5 +3811,6 @@
|
|||||||
"rdpUploadFailed": "Upload failed",
|
"rdpUploadFailed": "Upload failed",
|
||||||
"rdpUnicodeKeyboardMode": "Unicode keyboard mode",
|
"rdpUnicodeKeyboardMode": "Unicode keyboard mode",
|
||||||
"sessionToolbarShow": "Show toolbar",
|
"sessionToolbarShow": "Show toolbar",
|
||||||
"sessionToolbarHide": "Hide toolbar"
|
"sessionToolbarHide": "Hide toolbar",
|
||||||
|
"actionUpdateSiteApprovals": "Update Site Approvals"
|
||||||
}
|
}
|
||||||
|
|||||||
+15
-5
@@ -449,8 +449,14 @@
|
|||||||
"provisioningManage": "Aprovisionamiento",
|
"provisioningManage": "Aprovisionamiento",
|
||||||
"provisioningDescription": "Administrar las claves de aprovisionamiento y revisar los sitios pendientes de aprobación.",
|
"provisioningDescription": "Administrar las claves de aprovisionamiento y revisar los sitios pendientes de aprobación.",
|
||||||
"pendingSites": "Sitios pendientes",
|
"pendingSites": "Sitios pendientes",
|
||||||
"siteApproveSuccess": "Sitio aprobado con éxito",
|
"siteApproveSuccess": "Sitio y recursos asociados aprobados correctamente",
|
||||||
"siteApproveError": "Error al aprobar el sitio",
|
"siteApproveError": "Error al aprobar el sitio",
|
||||||
|
"siteReject": "Rechazar Sitio",
|
||||||
|
"siteQuestionReject": "¿Está seguro de que desea rechazar este sitio?",
|
||||||
|
"siteMessageReject": "Esto eliminará permanentemente el sitio y cualquier recurso asociado que aún esté pendiente.",
|
||||||
|
"siteConfirmReject": "Confirmar Rechazo del Sitio",
|
||||||
|
"siteRejectSuccess": "Sitio rechazado correctamente",
|
||||||
|
"siteRejectError": "Error al rechazar el sitio",
|
||||||
"provisioningKeys": "Claves de aprovisionamiento",
|
"provisioningKeys": "Claves de aprovisionamiento",
|
||||||
"searchProvisioningKeys": "Buscar claves de suministro...",
|
"searchProvisioningKeys": "Buscar claves de suministro...",
|
||||||
"provisioningKeysAdd": "Generar clave de aprovisionamiento",
|
"provisioningKeysAdd": "Generar clave de aprovisionamiento",
|
||||||
@@ -466,12 +472,12 @@
|
|||||||
"provisioningKeysSave": "Guardar la clave de aprovisionamiento",
|
"provisioningKeysSave": "Guardar la clave de aprovisionamiento",
|
||||||
"provisioningKeysSaveDescription": "Sólo podrás verlo una vez. Copítalo a un lugar seguro.",
|
"provisioningKeysSaveDescription": "Sólo podrás verlo una vez. Copítalo a un lugar seguro.",
|
||||||
"provisioningKeysErrorCreate": "Error al crear la clave de provisioning",
|
"provisioningKeysErrorCreate": "Error al crear la clave de provisioning",
|
||||||
"provisioningKeysList": "Nueva clave de aprovisionamiento",
|
"provisioningKeysList": "Nueva Clave de Provisión",
|
||||||
"provisioningKeysMaxBatchSize": "Tamaño máximo de lote",
|
"provisioningKeysMaxBatchSize": "Tamaño Máximo del Lote",
|
||||||
"provisioningKeysUnlimitedBatchSize": "Tamaño ilimitado del lote (sin límite)",
|
"provisioningKeysUnlimitedBatchSize": "Tamaño ilimitado del lote (sin límite)",
|
||||||
"provisioningKeysMaxBatchUnlimited": "Ilimitado",
|
"provisioningKeysMaxBatchUnlimited": "Ilimitado",
|
||||||
"provisioningKeysMaxBatchSizeInvalid": "Introduzca un tamaño máximo de lote válido (1–1,000,000).",
|
"provisioningKeysMaxBatchSizeInvalid": "Introduzca un tamaño máximo de lote válido (1–1,000,000).",
|
||||||
"provisioningKeysValidUntil": "Válido hasta",
|
"provisioningKeysValidUntil": "Válido Hasta",
|
||||||
"provisioningKeysValidUntilHint": "Dejar vacío para no expirar.",
|
"provisioningKeysValidUntilHint": "Dejar vacío para no expirar.",
|
||||||
"provisioningKeysValidUntilInvalid": "Introduzca una fecha y hora válidas.",
|
"provisioningKeysValidUntilInvalid": "Introduzca una fecha y hora válidas.",
|
||||||
"provisioningKeysNumUsed": "Tiempos usados",
|
"provisioningKeysNumUsed": "Tiempos usados",
|
||||||
@@ -480,7 +486,7 @@
|
|||||||
"provisioningKeysNeverUsed": "Nunca",
|
"provisioningKeysNeverUsed": "Nunca",
|
||||||
"provisioningKeysEdit": "Editar clave de aprovisionamiento",
|
"provisioningKeysEdit": "Editar clave de aprovisionamiento",
|
||||||
"provisioningKeysEditDescription": "Actualizar el tamaño máximo de lote y el tiempo de caducidad para esta clave.",
|
"provisioningKeysEditDescription": "Actualizar el tamaño máximo de lote y el tiempo de caducidad para esta clave.",
|
||||||
"provisioningKeysApproveNewSites": "Aprobar nuevos sitios",
|
"provisioningKeysApproveNewSites": "Aprobar Nuevos Sitios",
|
||||||
"provisioningKeysApproveNewSitesDescription": "Aprobar automáticamente los sitios que se registran con esta clave.",
|
"provisioningKeysApproveNewSitesDescription": "Aprobar automáticamente los sitios que se registran con esta clave.",
|
||||||
"provisioningKeysUpdateError": "Error al actualizar la clave de aprovisionamiento",
|
"provisioningKeysUpdateError": "Error al actualizar la clave de aprovisionamiento",
|
||||||
"provisioningKeysUpdated": "Clave de aprovisionamiento actualizada",
|
"provisioningKeysUpdated": "Clave de aprovisionamiento actualizada",
|
||||||
@@ -1397,6 +1403,7 @@
|
|||||||
"createOrgUser": "Crear usuario Org",
|
"createOrgUser": "Crear usuario Org",
|
||||||
"actionUpdateOrg": "Actualizar organización",
|
"actionUpdateOrg": "Actualizar organización",
|
||||||
"actionRemoveInvitation": "Eliminar invitación",
|
"actionRemoveInvitation": "Eliminar invitación",
|
||||||
|
"actionRemoveUserRole": "Quitar Rol de Usuario",
|
||||||
"actionUpdateUser": "Actualizar usuario",
|
"actionUpdateUser": "Actualizar usuario",
|
||||||
"actionGetUser": "Obtener usuario",
|
"actionGetUser": "Obtener usuario",
|
||||||
"actionGetOrgUser": "Obtener usuario de la organización",
|
"actionGetOrgUser": "Obtener usuario de la organización",
|
||||||
@@ -1419,6 +1426,8 @@
|
|||||||
"setupTokenDescription": "Ingrese el token de configuración desde la consola del servidor.",
|
"setupTokenDescription": "Ingrese el token de configuración desde la consola del servidor.",
|
||||||
"setupTokenRequired": "Se requiere el token de configuración",
|
"setupTokenRequired": "Se requiere el token de configuración",
|
||||||
"actionUpdateSite": "Actualizar sitio",
|
"actionUpdateSite": "Actualizar sitio",
|
||||||
|
"actionApproveSite": "Aprobar Sitio",
|
||||||
|
"actionRejectSite": "Rechazar Sitio",
|
||||||
"actionResetSiteBandwidth": "Restablecer ancho de banda de la organización",
|
"actionResetSiteBandwidth": "Restablecer ancho de banda de la organización",
|
||||||
"actionListSiteRoles": "Lista de roles permitidos del sitio",
|
"actionListSiteRoles": "Lista de roles permitidos del sitio",
|
||||||
"actionCreateResource": "Crear Recurso",
|
"actionCreateResource": "Crear Recurso",
|
||||||
@@ -1516,6 +1525,7 @@
|
|||||||
"otpAuthDescription": "Introduzca el código de su aplicación de autenticación o uno de sus códigos de copia de seguridad de un solo uso.",
|
"otpAuthDescription": "Introduzca el código de su aplicación de autenticación o uno de sus códigos de copia de seguridad de un solo uso.",
|
||||||
"otpAuthSubmit": "Enviar código",
|
"otpAuthSubmit": "Enviar código",
|
||||||
"idpContinue": "O continuar con",
|
"idpContinue": "O continuar con",
|
||||||
|
"idpLastUsed": "Último Uso",
|
||||||
"otpAuthBack": "Volver a la contraseña",
|
"otpAuthBack": "Volver a la contraseña",
|
||||||
"navbar": "Menú de navegación",
|
"navbar": "Menú de navegación",
|
||||||
"navbarDescription": "Menú de navegación principal para la aplicación",
|
"navbarDescription": "Menú de navegación principal para la aplicación",
|
||||||
|
|||||||
+13
-3
@@ -449,8 +449,14 @@
|
|||||||
"provisioningManage": "Mise en place",
|
"provisioningManage": "Mise en place",
|
||||||
"provisioningDescription": "Gérer les clés de provisioning et examiner les sites en attente d'approbation.",
|
"provisioningDescription": "Gérer les clés de provisioning et examiner les sites en attente d'approbation.",
|
||||||
"pendingSites": "Sites en attente",
|
"pendingSites": "Sites en attente",
|
||||||
"siteApproveSuccess": "Site approuvé avec succès",
|
"siteApproveSuccess": "Site et ressources associées approuvés avec succès",
|
||||||
"siteApproveError": "Erreur lors de l'approbation du site",
|
"siteApproveError": "Erreur lors de l'approbation du site",
|
||||||
|
"siteReject": "Rejeter le site",
|
||||||
|
"siteQuestionReject": "Êtes-vous sûr de vouloir rejeter ce site ?",
|
||||||
|
"siteMessageReject": "Cela supprimera définitivement le site et toutes les ressources associées qui sont encore en attente.",
|
||||||
|
"siteConfirmReject": "Confirmer le rejet du site",
|
||||||
|
"siteRejectSuccess": "Site rejeté avec succès",
|
||||||
|
"siteRejectError": "Erreur lors du rejet du site",
|
||||||
"provisioningKeys": "Clés de provisionnement",
|
"provisioningKeys": "Clés de provisionnement",
|
||||||
"searchProvisioningKeys": "Recherche des clés de provision...",
|
"searchProvisioningKeys": "Recherche des clés de provision...",
|
||||||
"provisioningKeysAdd": "Générer une clé de provisioning",
|
"provisioningKeysAdd": "Générer une clé de provisioning",
|
||||||
@@ -466,12 +472,12 @@
|
|||||||
"provisioningKeysSave": "Enregistrer la clé de provisioning",
|
"provisioningKeysSave": "Enregistrer la clé de provisioning",
|
||||||
"provisioningKeysSaveDescription": "Vous ne pourrez voir cela qu'une seule fois. Copiez-le dans un endroit sécurisé.",
|
"provisioningKeysSaveDescription": "Vous ne pourrez voir cela qu'une seule fois. Copiez-le dans un endroit sécurisé.",
|
||||||
"provisioningKeysErrorCreate": "Erreur lors de la création de la clé de provisioning",
|
"provisioningKeysErrorCreate": "Erreur lors de la création de la clé de provisioning",
|
||||||
"provisioningKeysList": "Nouvelle clé de provisioning",
|
"provisioningKeysList": "Nouvelle clé d'approvisionnement",
|
||||||
"provisioningKeysMaxBatchSize": "Taille maximale du lot",
|
"provisioningKeysMaxBatchSize": "Taille maximale du lot",
|
||||||
"provisioningKeysUnlimitedBatchSize": "Taille de lot illimitée (sans limite)",
|
"provisioningKeysUnlimitedBatchSize": "Taille de lot illimitée (sans limite)",
|
||||||
"provisioningKeysMaxBatchUnlimited": "Illimité",
|
"provisioningKeysMaxBatchUnlimited": "Illimité",
|
||||||
"provisioningKeysMaxBatchSizeInvalid": "Entrez une taille de lot maximale valide (1–1 000 000).",
|
"provisioningKeysMaxBatchSizeInvalid": "Entrez une taille de lot maximale valide (1–1 000 000).",
|
||||||
"provisioningKeysValidUntil": "Valable jusqu'au",
|
"provisioningKeysValidUntil": "Valable jusqu'à",
|
||||||
"provisioningKeysValidUntilHint": "Laisser vide pour ne pas expirer.",
|
"provisioningKeysValidUntilHint": "Laisser vide pour ne pas expirer.",
|
||||||
"provisioningKeysValidUntilInvalid": "Entrez une date et une heure valides.",
|
"provisioningKeysValidUntilInvalid": "Entrez une date et une heure valides.",
|
||||||
"provisioningKeysNumUsed": "Nombre de fois utilisées",
|
"provisioningKeysNumUsed": "Nombre de fois utilisées",
|
||||||
@@ -1397,6 +1403,7 @@
|
|||||||
"createOrgUser": "Créer un utilisateur Org",
|
"createOrgUser": "Créer un utilisateur Org",
|
||||||
"actionUpdateOrg": "Mettre à jour l'organisation",
|
"actionUpdateOrg": "Mettre à jour l'organisation",
|
||||||
"actionRemoveInvitation": "Supprimer l'invitation",
|
"actionRemoveInvitation": "Supprimer l'invitation",
|
||||||
|
"actionRemoveUserRole": "Supprimer le rôle d'utilisateur",
|
||||||
"actionUpdateUser": "Mettre à jour l'utilisateur",
|
"actionUpdateUser": "Mettre à jour l'utilisateur",
|
||||||
"actionGetUser": "Obtenir l'utilisateur",
|
"actionGetUser": "Obtenir l'utilisateur",
|
||||||
"actionGetOrgUser": "Obtenir l'utilisateur de l'organisation",
|
"actionGetOrgUser": "Obtenir l'utilisateur de l'organisation",
|
||||||
@@ -1419,6 +1426,8 @@
|
|||||||
"setupTokenDescription": "Entrez le jeton de configuration depuis la console du serveur.",
|
"setupTokenDescription": "Entrez le jeton de configuration depuis la console du serveur.",
|
||||||
"setupTokenRequired": "Le jeton de configuration est requis.",
|
"setupTokenRequired": "Le jeton de configuration est requis.",
|
||||||
"actionUpdateSite": "Mettre à jour un site",
|
"actionUpdateSite": "Mettre à jour un site",
|
||||||
|
"actionApproveSite": "Approuver le site",
|
||||||
|
"actionRejectSite": "Rejeter le site",
|
||||||
"actionResetSiteBandwidth": "Réinitialiser la bande passante de l'organisation",
|
"actionResetSiteBandwidth": "Réinitialiser la bande passante de l'organisation",
|
||||||
"actionListSiteRoles": "Lister les rôles autorisés du site",
|
"actionListSiteRoles": "Lister les rôles autorisés du site",
|
||||||
"actionCreateResource": "Créer une ressource",
|
"actionCreateResource": "Créer une ressource",
|
||||||
@@ -1516,6 +1525,7 @@
|
|||||||
"otpAuthDescription": "Entrez le code de votre application d'authentification ou l'un de vos codes de secours à usage unique.",
|
"otpAuthDescription": "Entrez le code de votre application d'authentification ou l'un de vos codes de secours à usage unique.",
|
||||||
"otpAuthSubmit": "Soumettre le code",
|
"otpAuthSubmit": "Soumettre le code",
|
||||||
"idpContinue": "Ou continuer avec",
|
"idpContinue": "Ou continuer avec",
|
||||||
|
"idpLastUsed": "Dernière utilisation",
|
||||||
"otpAuthBack": "Retour au mot de passe",
|
"otpAuthBack": "Retour au mot de passe",
|
||||||
"navbar": "Menu de navigation",
|
"navbar": "Menu de navigation",
|
||||||
"navbarDescription": "Menu de navigation principal de l'application",
|
"navbarDescription": "Menu de navigation principal de l'application",
|
||||||
|
|||||||
+15
-5
@@ -449,8 +449,14 @@
|
|||||||
"provisioningManage": "Accantonamento",
|
"provisioningManage": "Accantonamento",
|
||||||
"provisioningDescription": "Gestire le chiavi di provisioning e rivedere i siti in attesa di approvazione.",
|
"provisioningDescription": "Gestire le chiavi di provisioning e rivedere i siti in attesa di approvazione.",
|
||||||
"pendingSites": "Siti In Attesa",
|
"pendingSites": "Siti In Attesa",
|
||||||
"siteApproveSuccess": "Sito approvato con successo",
|
"siteApproveSuccess": "Sito e risorse associate approvate con successo",
|
||||||
"siteApproveError": "Errore nell'approvazione del sito",
|
"siteApproveError": "Errore nell'approvazione del sito",
|
||||||
|
"siteReject": "Rifiuta Sito",
|
||||||
|
"siteQuestionReject": "Sei sicuro di voler rifiutare questo sito?",
|
||||||
|
"siteMessageReject": "Questo eliminerà permanentemente il sito e tutte le risorse associate ancora in sospeso.",
|
||||||
|
"siteConfirmReject": "Conferma Rifiuto Sito",
|
||||||
|
"siteRejectSuccess": "Sito rifiutato con successo",
|
||||||
|
"siteRejectError": "Errore nel rifiutare il sito",
|
||||||
"provisioningKeys": "Chiavi Di Provvedimento",
|
"provisioningKeys": "Chiavi Di Provvedimento",
|
||||||
"searchProvisioningKeys": "Cerca le chiavi di provisioning...",
|
"searchProvisioningKeys": "Cerca le chiavi di provisioning...",
|
||||||
"provisioningKeysAdd": "Genera Chiave di provisioning",
|
"provisioningKeysAdd": "Genera Chiave di provisioning",
|
||||||
@@ -466,12 +472,12 @@
|
|||||||
"provisioningKeysSave": "Salva la chiave di provisioning",
|
"provisioningKeysSave": "Salva la chiave di provisioning",
|
||||||
"provisioningKeysSaveDescription": "Sarai in grado di vedere solo una volta. Copiarlo in un posto sicuro.",
|
"provisioningKeysSaveDescription": "Sarai in grado di vedere solo una volta. Copiarlo in un posto sicuro.",
|
||||||
"provisioningKeysErrorCreate": "Errore nella creazione della chiave di provisioning",
|
"provisioningKeysErrorCreate": "Errore nella creazione della chiave di provisioning",
|
||||||
"provisioningKeysList": "Nuova chiave di provisioning",
|
"provisioningKeysList": "Nuova Chiave di Provisioning",
|
||||||
"provisioningKeysMaxBatchSize": "Dimensione massima batch",
|
"provisioningKeysMaxBatchSize": "Dimensione Massima Batch",
|
||||||
"provisioningKeysUnlimitedBatchSize": "Dimensione illimitata del batch (nessun limite)",
|
"provisioningKeysUnlimitedBatchSize": "Dimensione illimitata del batch (nessun limite)",
|
||||||
"provisioningKeysMaxBatchUnlimited": "Illimitato",
|
"provisioningKeysMaxBatchUnlimited": "Illimitato",
|
||||||
"provisioningKeysMaxBatchSizeInvalid": "Inserisci una dimensione massima valida del batch (1–1.000.000).",
|
"provisioningKeysMaxBatchSizeInvalid": "Inserisci una dimensione massima valida del batch (1–1.000.000).",
|
||||||
"provisioningKeysValidUntil": "Valido fino al",
|
"provisioningKeysValidUntil": "Valido Fino a",
|
||||||
"provisioningKeysValidUntilHint": "Lasciare vuoto per nessuna scadenza.",
|
"provisioningKeysValidUntilHint": "Lasciare vuoto per nessuna scadenza.",
|
||||||
"provisioningKeysValidUntilInvalid": "Inserisci una data e ora valide.",
|
"provisioningKeysValidUntilInvalid": "Inserisci una data e ora valide.",
|
||||||
"provisioningKeysNumUsed": "Volte usate",
|
"provisioningKeysNumUsed": "Volte usate",
|
||||||
@@ -480,7 +486,7 @@
|
|||||||
"provisioningKeysNeverUsed": "Mai",
|
"provisioningKeysNeverUsed": "Mai",
|
||||||
"provisioningKeysEdit": "Modifica Chiave di provisioning",
|
"provisioningKeysEdit": "Modifica Chiave di provisioning",
|
||||||
"provisioningKeysEditDescription": "Aggiorna la dimensione massima del batch e il tempo di scadenza per questa chiave.",
|
"provisioningKeysEditDescription": "Aggiorna la dimensione massima del batch e il tempo di scadenza per questa chiave.",
|
||||||
"provisioningKeysApproveNewSites": "Approva nuovi siti",
|
"provisioningKeysApproveNewSites": "Approva Nuovi Siti",
|
||||||
"provisioningKeysApproveNewSitesDescription": "Approvare automaticamente i siti che si registrano con questa chiave.",
|
"provisioningKeysApproveNewSitesDescription": "Approvare automaticamente i siti che si registrano con questa chiave.",
|
||||||
"provisioningKeysUpdateError": "Errore nell'aggiornamento della chiave di provisioning",
|
"provisioningKeysUpdateError": "Errore nell'aggiornamento della chiave di provisioning",
|
||||||
"provisioningKeysUpdated": "Chiave di provisioning aggiornata",
|
"provisioningKeysUpdated": "Chiave di provisioning aggiornata",
|
||||||
@@ -1397,6 +1403,7 @@
|
|||||||
"createOrgUser": "Crea Utente Org",
|
"createOrgUser": "Crea Utente Org",
|
||||||
"actionUpdateOrg": "Aggiorna Organizzazione",
|
"actionUpdateOrg": "Aggiorna Organizzazione",
|
||||||
"actionRemoveInvitation": "Rimuovi Invito",
|
"actionRemoveInvitation": "Rimuovi Invito",
|
||||||
|
"actionRemoveUserRole": "Rimuovi Ruolo Utente",
|
||||||
"actionUpdateUser": "Aggiorna Utente",
|
"actionUpdateUser": "Aggiorna Utente",
|
||||||
"actionGetUser": "Ottieni Utente",
|
"actionGetUser": "Ottieni Utente",
|
||||||
"actionGetOrgUser": "Ottieni Utente Organizzazione",
|
"actionGetOrgUser": "Ottieni Utente Organizzazione",
|
||||||
@@ -1419,6 +1426,8 @@
|
|||||||
"setupTokenDescription": "Inserisci il token di configurazione dalla console del server.",
|
"setupTokenDescription": "Inserisci il token di configurazione dalla console del server.",
|
||||||
"setupTokenRequired": "Il token di configurazione è richiesto",
|
"setupTokenRequired": "Il token di configurazione è richiesto",
|
||||||
"actionUpdateSite": "Aggiorna Sito",
|
"actionUpdateSite": "Aggiorna Sito",
|
||||||
|
"actionApproveSite": "Approva Sito",
|
||||||
|
"actionRejectSite": "Rifiuta Sito",
|
||||||
"actionResetSiteBandwidth": "Reimposta Larghezza Banda Dell'Organizzazione",
|
"actionResetSiteBandwidth": "Reimposta Larghezza Banda Dell'Organizzazione",
|
||||||
"actionListSiteRoles": "Elenca Ruoli Sito Consentiti",
|
"actionListSiteRoles": "Elenca Ruoli Sito Consentiti",
|
||||||
"actionCreateResource": "Crea Risorsa",
|
"actionCreateResource": "Crea Risorsa",
|
||||||
@@ -1516,6 +1525,7 @@
|
|||||||
"otpAuthDescription": "Inserisci il codice dalla tua app di autenticazione o uno dei tuoi codici di backup monouso.",
|
"otpAuthDescription": "Inserisci il codice dalla tua app di autenticazione o uno dei tuoi codici di backup monouso.",
|
||||||
"otpAuthSubmit": "Invia Codice",
|
"otpAuthSubmit": "Invia Codice",
|
||||||
"idpContinue": "O continua con",
|
"idpContinue": "O continua con",
|
||||||
|
"idpLastUsed": "Ultimo Utilizzo",
|
||||||
"otpAuthBack": "Torna alla Password",
|
"otpAuthBack": "Torna alla Password",
|
||||||
"navbar": "Menu di Navigazione",
|
"navbar": "Menu di Navigazione",
|
||||||
"navbarDescription": "Menu di navigazione principale dell'applicazione",
|
"navbarDescription": "Menu di navigazione principale dell'applicazione",
|
||||||
|
|||||||
+12
-2
@@ -449,8 +449,14 @@
|
|||||||
"provisioningManage": "프로비저닝",
|
"provisioningManage": "프로비저닝",
|
||||||
"provisioningDescription": "프로비저닝 키를 관리하고 승인을 기다리는 사이트를 검토합니다.",
|
"provisioningDescription": "프로비저닝 키를 관리하고 승인을 기다리는 사이트를 검토합니다.",
|
||||||
"pendingSites": "대기중인 사이트",
|
"pendingSites": "대기중인 사이트",
|
||||||
"siteApproveSuccess": "사이트가 성공적으로 승인되었습니다",
|
"siteApproveSuccess": "사이트 및 관련 리소스가 성공적으로 승인되었습니다",
|
||||||
"siteApproveError": "사이트 승인 오류",
|
"siteApproveError": "사이트 승인 오류",
|
||||||
|
"siteReject": "사이트 거부",
|
||||||
|
"siteQuestionReject": "이 사이트를 거부하시겠습니까?",
|
||||||
|
"siteMessageReject": "이렇게 하면 펜딩 중인 사이트 및 관련 리소스가 영구적으로 삭제됩니다.",
|
||||||
|
"siteConfirmReject": "사이트 거부 확인",
|
||||||
|
"siteRejectSuccess": "사이트가 성공적으로 거부되었습니다",
|
||||||
|
"siteRejectError": "사이트 거부 오류",
|
||||||
"provisioningKeys": "프로비저닝 키",
|
"provisioningKeys": "프로비저닝 키",
|
||||||
"searchProvisioningKeys": "프로비저닝 키 검색...",
|
"searchProvisioningKeys": "프로비저닝 키 검색...",
|
||||||
"provisioningKeysAdd": "프로비저닝 키 생성",
|
"provisioningKeysAdd": "프로비저닝 키 생성",
|
||||||
@@ -480,7 +486,7 @@
|
|||||||
"provisioningKeysNeverUsed": "절대",
|
"provisioningKeysNeverUsed": "절대",
|
||||||
"provisioningKeysEdit": "프로비저닝 키 수정",
|
"provisioningKeysEdit": "프로비저닝 키 수정",
|
||||||
"provisioningKeysEditDescription": "이 키의 최대 배치 크기 및 만료 시간을 업데이트하세요.",
|
"provisioningKeysEditDescription": "이 키의 최대 배치 크기 및 만료 시간을 업데이트하세요.",
|
||||||
"provisioningKeysApproveNewSites": "새로운 사이트 승인",
|
"provisioningKeysApproveNewSites": "새 사이트 승인",
|
||||||
"provisioningKeysApproveNewSitesDescription": "이 키를 등록하는 사이트를 자동으로 승인합니다.",
|
"provisioningKeysApproveNewSitesDescription": "이 키를 등록하는 사이트를 자동으로 승인합니다.",
|
||||||
"provisioningKeysUpdateError": "프로비저닝 키 업데이트 오류",
|
"provisioningKeysUpdateError": "프로비저닝 키 업데이트 오류",
|
||||||
"provisioningKeysUpdated": "프로비저닝 키가 업데이트되었습니다",
|
"provisioningKeysUpdated": "프로비저닝 키가 업데이트되었습니다",
|
||||||
@@ -1397,6 +1403,7 @@
|
|||||||
"createOrgUser": "조직 사용자 생성",
|
"createOrgUser": "조직 사용자 생성",
|
||||||
"actionUpdateOrg": "조직 업데이트",
|
"actionUpdateOrg": "조직 업데이트",
|
||||||
"actionRemoveInvitation": "초대 제거",
|
"actionRemoveInvitation": "초대 제거",
|
||||||
|
"actionRemoveUserRole": "사용자 역할 제거",
|
||||||
"actionUpdateUser": "사용자 업데이트",
|
"actionUpdateUser": "사용자 업데이트",
|
||||||
"actionGetUser": "사용자 조회",
|
"actionGetUser": "사용자 조회",
|
||||||
"actionGetOrgUser": "조직 사용자 가져오기",
|
"actionGetOrgUser": "조직 사용자 가져오기",
|
||||||
@@ -1419,6 +1426,8 @@
|
|||||||
"setupTokenDescription": "서버 콘솔에서 설정 토큰 입력.",
|
"setupTokenDescription": "서버 콘솔에서 설정 토큰 입력.",
|
||||||
"setupTokenRequired": "설정 토큰이 필요합니다",
|
"setupTokenRequired": "설정 토큰이 필요합니다",
|
||||||
"actionUpdateSite": "사이트 업데이트",
|
"actionUpdateSite": "사이트 업데이트",
|
||||||
|
"actionApproveSite": "사이트 승인",
|
||||||
|
"actionRejectSite": "사이트 거부",
|
||||||
"actionResetSiteBandwidth": "조직 대역폭 재설정",
|
"actionResetSiteBandwidth": "조직 대역폭 재설정",
|
||||||
"actionListSiteRoles": "허용된 사이트 역할 목록",
|
"actionListSiteRoles": "허용된 사이트 역할 목록",
|
||||||
"actionCreateResource": "리소스 생성",
|
"actionCreateResource": "리소스 생성",
|
||||||
@@ -1516,6 +1525,7 @@
|
|||||||
"otpAuthDescription": "인증 앱에서 코드를 입력하거나 단일 사용 백업 코드 중 하나를 입력하세요.",
|
"otpAuthDescription": "인증 앱에서 코드를 입력하거나 단일 사용 백업 코드 중 하나를 입력하세요.",
|
||||||
"otpAuthSubmit": "코드 제출",
|
"otpAuthSubmit": "코드 제출",
|
||||||
"idpContinue": "또는 계속 진행하십시오.",
|
"idpContinue": "또는 계속 진행하십시오.",
|
||||||
|
"idpLastUsed": "마지막 사용",
|
||||||
"otpAuthBack": "비밀번호로 돌아가기",
|
"otpAuthBack": "비밀번호로 돌아가기",
|
||||||
"navbar": "탐색 메뉴",
|
"navbar": "탐색 메뉴",
|
||||||
"navbarDescription": "애플리케이션의 주요 탐색 메뉴",
|
"navbarDescription": "애플리케이션의 주요 탐색 메뉴",
|
||||||
|
|||||||
+15
-5
@@ -449,8 +449,14 @@
|
|||||||
"provisioningManage": "Levering",
|
"provisioningManage": "Levering",
|
||||||
"provisioningDescription": "Administrer foreløpig nøkler og gjennomgå ventende nettsteder som venter på godkjenning.",
|
"provisioningDescription": "Administrer foreløpig nøkler og gjennomgå ventende nettsteder som venter på godkjenning.",
|
||||||
"pendingSites": "Ventende nettsteder",
|
"pendingSites": "Ventende nettsteder",
|
||||||
"siteApproveSuccess": "Vellykket godkjenning av nettsted",
|
"siteApproveSuccess": "Område og tilknyttede ressurser godkjent",
|
||||||
"siteApproveError": "Feil ved godkjenning av side",
|
"siteApproveError": "Feil ved godkjenning av side",
|
||||||
|
"siteReject": "Avvis Område",
|
||||||
|
"siteQuestionReject": "Er du sikker på at du vil avvise dette området?",
|
||||||
|
"siteMessageReject": "Dette vil permanent slette området og eventuelle tilknyttede ressurser som fortsatt venter.",
|
||||||
|
"siteConfirmReject": "Bekreft Avvisning av Område",
|
||||||
|
"siteRejectSuccess": "Område avvist",
|
||||||
|
"siteRejectError": "Feil ved avvisning av området",
|
||||||
"provisioningKeys": "Foreløpig nøkler",
|
"provisioningKeys": "Foreløpig nøkler",
|
||||||
"searchProvisioningKeys": "Søk varer i lagrings nøkler...",
|
"searchProvisioningKeys": "Søk varer i lagrings nøkler...",
|
||||||
"provisioningKeysAdd": "Generer fremvisende nøkkel",
|
"provisioningKeysAdd": "Generer fremvisende nøkkel",
|
||||||
@@ -466,12 +472,12 @@
|
|||||||
"provisioningKeysSave": "Lagre den midlertidig nøkkelen",
|
"provisioningKeysSave": "Lagre den midlertidig nøkkelen",
|
||||||
"provisioningKeysSaveDescription": "Du kan bare se denne én gang. Kopier det til et sikkert sted.",
|
"provisioningKeysSaveDescription": "Du kan bare se denne én gang. Kopier det til et sikkert sted.",
|
||||||
"provisioningKeysErrorCreate": "Feil under oppretting av foreløpig nøkkel",
|
"provisioningKeysErrorCreate": "Feil under oppretting av foreløpig nøkkel",
|
||||||
"provisioningKeysList": "Ny provisorisk nøkkel",
|
"provisioningKeysList": "Ny Forsyningsnøkkel",
|
||||||
"provisioningKeysMaxBatchSize": "Maks størrelse på bunt",
|
"provisioningKeysMaxBatchSize": "Maks Batch Størrelse",
|
||||||
"provisioningKeysUnlimitedBatchSize": "Ubegrenset mengde bunt (ingen begrensning)",
|
"provisioningKeysUnlimitedBatchSize": "Ubegrenset mengde bunt (ingen begrensning)",
|
||||||
"provisioningKeysMaxBatchUnlimited": "Ubegrenset",
|
"provisioningKeysMaxBatchUnlimited": "Ubegrenset",
|
||||||
"provisioningKeysMaxBatchSizeInvalid": "Angi en gyldig sjakkstørrelse (1–1 000.000).",
|
"provisioningKeysMaxBatchSizeInvalid": "Angi en gyldig sjakkstørrelse (1–1 000.000).",
|
||||||
"provisioningKeysValidUntil": "Gyldig til",
|
"provisioningKeysValidUntil": "Gyldig Til",
|
||||||
"provisioningKeysValidUntilHint": "La stå tomt for ingen utløp.",
|
"provisioningKeysValidUntilHint": "La stå tomt for ingen utløp.",
|
||||||
"provisioningKeysValidUntilInvalid": "Angi en gyldig dato og klokkeslett.",
|
"provisioningKeysValidUntilInvalid": "Angi en gyldig dato og klokkeslett.",
|
||||||
"provisioningKeysNumUsed": "Antall ganger brukt",
|
"provisioningKeysNumUsed": "Antall ganger brukt",
|
||||||
@@ -480,7 +486,7 @@
|
|||||||
"provisioningKeysNeverUsed": "Aldri",
|
"provisioningKeysNeverUsed": "Aldri",
|
||||||
"provisioningKeysEdit": "Rediger bestemmelsesnøkkel",
|
"provisioningKeysEdit": "Rediger bestemmelsesnøkkel",
|
||||||
"provisioningKeysEditDescription": "Oppdater maksimal størrelse for bunt og utløpstid for denne nøkkelen.",
|
"provisioningKeysEditDescription": "Oppdater maksimal størrelse for bunt og utløpstid for denne nøkkelen.",
|
||||||
"provisioningKeysApproveNewSites": "Godkjenn nye nettsteder",
|
"provisioningKeysApproveNewSites": "Godkjenn Nye Områder",
|
||||||
"provisioningKeysApproveNewSitesDescription": "Godkjenn automatisk nettsteder som registrerer deg med denne nøkkelen.",
|
"provisioningKeysApproveNewSitesDescription": "Godkjenn automatisk nettsteder som registrerer deg med denne nøkkelen.",
|
||||||
"provisioningKeysUpdateError": "Feil under oppdatering av foreløpig nøkkel",
|
"provisioningKeysUpdateError": "Feil under oppdatering av foreløpig nøkkel",
|
||||||
"provisioningKeysUpdated": "Foreslå nøkkel oppdatert",
|
"provisioningKeysUpdated": "Foreslå nøkkel oppdatert",
|
||||||
@@ -1397,6 +1403,7 @@
|
|||||||
"createOrgUser": "Opprett Org bruker",
|
"createOrgUser": "Opprett Org bruker",
|
||||||
"actionUpdateOrg": "Oppdater organisasjon",
|
"actionUpdateOrg": "Oppdater organisasjon",
|
||||||
"actionRemoveInvitation": "Fjern invitasjon",
|
"actionRemoveInvitation": "Fjern invitasjon",
|
||||||
|
"actionRemoveUserRole": "Fjern Brukerrolle",
|
||||||
"actionUpdateUser": "Oppdater bruker",
|
"actionUpdateUser": "Oppdater bruker",
|
||||||
"actionGetUser": "Hent bruker",
|
"actionGetUser": "Hent bruker",
|
||||||
"actionGetOrgUser": "Hent organisasjonsbruker",
|
"actionGetOrgUser": "Hent organisasjonsbruker",
|
||||||
@@ -1419,6 +1426,8 @@
|
|||||||
"setupTokenDescription": "Skriv inn oppsetttoken fra serverkonsollen.",
|
"setupTokenDescription": "Skriv inn oppsetttoken fra serverkonsollen.",
|
||||||
"setupTokenRequired": "Oppsetttoken er nødvendig",
|
"setupTokenRequired": "Oppsetttoken er nødvendig",
|
||||||
"actionUpdateSite": "Oppdater område",
|
"actionUpdateSite": "Oppdater område",
|
||||||
|
"actionApproveSite": "Godkjenn Område",
|
||||||
|
"actionRejectSite": "Avvis Område",
|
||||||
"actionResetSiteBandwidth": "Tilbakestill organisasjons-båndbredde",
|
"actionResetSiteBandwidth": "Tilbakestill organisasjons-båndbredde",
|
||||||
"actionListSiteRoles": "List opp tillatte områderoller",
|
"actionListSiteRoles": "List opp tillatte områderoller",
|
||||||
"actionCreateResource": "Opprett ressurs",
|
"actionCreateResource": "Opprett ressurs",
|
||||||
@@ -1516,6 +1525,7 @@
|
|||||||
"otpAuthDescription": "Skriv inn koden fra autentiseringsappen din eller en av dine engangs reservekoder.",
|
"otpAuthDescription": "Skriv inn koden fra autentiseringsappen din eller en av dine engangs reservekoder.",
|
||||||
"otpAuthSubmit": "Send inn kode",
|
"otpAuthSubmit": "Send inn kode",
|
||||||
"idpContinue": "Eller fortsett med",
|
"idpContinue": "Eller fortsett med",
|
||||||
|
"idpLastUsed": "Sist brukt",
|
||||||
"otpAuthBack": "Tilbake til passord",
|
"otpAuthBack": "Tilbake til passord",
|
||||||
"navbar": "Navigasjonsmeny",
|
"navbar": "Navigasjonsmeny",
|
||||||
"navbarDescription": "Hovednavigasjonsmeny for applikasjonen",
|
"navbarDescription": "Hovednavigasjonsmeny for applikasjonen",
|
||||||
|
|||||||
+13
-3
@@ -449,8 +449,14 @@
|
|||||||
"provisioningManage": "Provisie",
|
"provisioningManage": "Provisie",
|
||||||
"provisioningDescription": "Voorzieningssleutels beheren en sites beoordelen in afwachting van goedkeuring.",
|
"provisioningDescription": "Voorzieningssleutels beheren en sites beoordelen in afwachting van goedkeuring.",
|
||||||
"pendingSites": "Openstaande sites",
|
"pendingSites": "Openstaande sites",
|
||||||
"siteApproveSuccess": "Site succesvol goedgekeurd",
|
"siteApproveSuccess": "Site en bijbehorende middelen succesvol goedgekeurd",
|
||||||
"siteApproveError": "Fout bij goedkeuren website",
|
"siteApproveError": "Fout bij goedkeuren website",
|
||||||
|
"siteReject": "Afwijzen Site",
|
||||||
|
"siteQuestionReject": "Weet u zeker dat u deze site wilt afwijzen?",
|
||||||
|
"siteMessageReject": "Hiermee wordt de site en alle bijbehorende middelen die nog in behandeling zijn permanent verwijderd.",
|
||||||
|
"siteConfirmReject": "Afwijzing van site bevestigen",
|
||||||
|
"siteRejectSuccess": "Site succesvol afgewezen",
|
||||||
|
"siteRejectError": "Fout bij het afwijzen van site",
|
||||||
"provisioningKeys": "Verhelderende sleutels",
|
"provisioningKeys": "Verhelderende sleutels",
|
||||||
"searchProvisioningKeys": "Zoek provisioningsleutels ...",
|
"searchProvisioningKeys": "Zoek provisioningsleutels ...",
|
||||||
"provisioningKeysAdd": "Genereer Provisioning Sleutel",
|
"provisioningKeysAdd": "Genereer Provisioning Sleutel",
|
||||||
@@ -466,7 +472,7 @@
|
|||||||
"provisioningKeysSave": "Sla de provisioning sleutel op",
|
"provisioningKeysSave": "Sla de provisioning sleutel op",
|
||||||
"provisioningKeysSaveDescription": "Je kunt dit slechts één keer zien. Kopieer het naar een veilige plaats.",
|
"provisioningKeysSaveDescription": "Je kunt dit slechts één keer zien. Kopieer het naar een veilige plaats.",
|
||||||
"provisioningKeysErrorCreate": "Fout bij aanmaken provisioning sleutel",
|
"provisioningKeysErrorCreate": "Fout bij aanmaken provisioning sleutel",
|
||||||
"provisioningKeysList": "Nieuwe provisioning sleutel",
|
"provisioningKeysList": "Nieuwe provisioning-sleutel",
|
||||||
"provisioningKeysMaxBatchSize": "Maximale batchgrootte",
|
"provisioningKeysMaxBatchSize": "Maximale batchgrootte",
|
||||||
"provisioningKeysUnlimitedBatchSize": "Onbeperkte batchgrootte (geen limiet)",
|
"provisioningKeysUnlimitedBatchSize": "Onbeperkte batchgrootte (geen limiet)",
|
||||||
"provisioningKeysMaxBatchUnlimited": "Onbeperkt",
|
"provisioningKeysMaxBatchUnlimited": "Onbeperkt",
|
||||||
@@ -480,7 +486,7 @@
|
|||||||
"provisioningKeysNeverUsed": "Nooit",
|
"provisioningKeysNeverUsed": "Nooit",
|
||||||
"provisioningKeysEdit": "Wijzig Provisioning Sleutel",
|
"provisioningKeysEdit": "Wijzig Provisioning Sleutel",
|
||||||
"provisioningKeysEditDescription": "Werk de maximale batchgrootte en verlooptijd voor deze sleutel bij.",
|
"provisioningKeysEditDescription": "Werk de maximale batchgrootte en verlooptijd voor deze sleutel bij.",
|
||||||
"provisioningKeysApproveNewSites": "Goedkeuren van nieuwe sites",
|
"provisioningKeysApproveNewSites": "Nieuwe sites goedkeuren",
|
||||||
"provisioningKeysApproveNewSitesDescription": "Automatisch sites goedkeuren die zich registreren met deze sleutel.",
|
"provisioningKeysApproveNewSitesDescription": "Automatisch sites goedkeuren die zich registreren met deze sleutel.",
|
||||||
"provisioningKeysUpdateError": "Fout tijdens bijwerken provisioning sleutel",
|
"provisioningKeysUpdateError": "Fout tijdens bijwerken provisioning sleutel",
|
||||||
"provisioningKeysUpdated": "Provisie sleutel bijgewerkt",
|
"provisioningKeysUpdated": "Provisie sleutel bijgewerkt",
|
||||||
@@ -1397,6 +1403,7 @@
|
|||||||
"createOrgUser": "Org gebruiker aanmaken",
|
"createOrgUser": "Org gebruiker aanmaken",
|
||||||
"actionUpdateOrg": "Organisatie bijwerken",
|
"actionUpdateOrg": "Organisatie bijwerken",
|
||||||
"actionRemoveInvitation": "Verwijder uitnodiging",
|
"actionRemoveInvitation": "Verwijder uitnodiging",
|
||||||
|
"actionRemoveUserRole": "Gebruikersrol verwijderen",
|
||||||
"actionUpdateUser": "Gebruiker bijwerken",
|
"actionUpdateUser": "Gebruiker bijwerken",
|
||||||
"actionGetUser": "Gebruiker ophalen",
|
"actionGetUser": "Gebruiker ophalen",
|
||||||
"actionGetOrgUser": "Krijg organisatie-gebruiker",
|
"actionGetOrgUser": "Krijg organisatie-gebruiker",
|
||||||
@@ -1419,6 +1426,8 @@
|
|||||||
"setupTokenDescription": "Voer het setup-token in vanaf de serverconsole.",
|
"setupTokenDescription": "Voer het setup-token in vanaf de serverconsole.",
|
||||||
"setupTokenRequired": "Setup-token is vereist",
|
"setupTokenRequired": "Setup-token is vereist",
|
||||||
"actionUpdateSite": "Site bijwerken",
|
"actionUpdateSite": "Site bijwerken",
|
||||||
|
"actionApproveSite": "Verleen site goedkeuring",
|
||||||
|
"actionRejectSite": "Afwijzen Site",
|
||||||
"actionResetSiteBandwidth": "Reset organisatieschandbreedte",
|
"actionResetSiteBandwidth": "Reset organisatieschandbreedte",
|
||||||
"actionListSiteRoles": "Toon toegestane sitenollen",
|
"actionListSiteRoles": "Toon toegestane sitenollen",
|
||||||
"actionCreateResource": "Bron maken",
|
"actionCreateResource": "Bron maken",
|
||||||
@@ -1516,6 +1525,7 @@
|
|||||||
"otpAuthDescription": "Voer de code van je authenticator-app of een van je reservekopiecodes voor het eenmalig gebruik in.",
|
"otpAuthDescription": "Voer de code van je authenticator-app of een van je reservekopiecodes voor het eenmalig gebruik in.",
|
||||||
"otpAuthSubmit": "Code indienen",
|
"otpAuthSubmit": "Code indienen",
|
||||||
"idpContinue": "Of ga verder met",
|
"idpContinue": "Of ga verder met",
|
||||||
|
"idpLastUsed": "Laatst gebruikt",
|
||||||
"otpAuthBack": "Terug naar wachtwoord",
|
"otpAuthBack": "Terug naar wachtwoord",
|
||||||
"navbar": "Navigatiemenu",
|
"navbar": "Navigatiemenu",
|
||||||
"navbarDescription": "Hoofd navigatie menu voor de applicatie",
|
"navbarDescription": "Hoofd navigatie menu voor de applicatie",
|
||||||
|
|||||||
+12
-2
@@ -449,8 +449,14 @@
|
|||||||
"provisioningManage": "Dostarczanie",
|
"provisioningManage": "Dostarczanie",
|
||||||
"provisioningDescription": "Zarządzaj kluczami rezerwacji i sprawdzaj oczekujące strony oczekujące na zatwierdzenie.",
|
"provisioningDescription": "Zarządzaj kluczami rezerwacji i sprawdzaj oczekujące strony oczekujące na zatwierdzenie.",
|
||||||
"pendingSites": "Witryny oczekujące",
|
"pendingSites": "Witryny oczekujące",
|
||||||
"siteApproveSuccess": "Witryna została pomyślnie zatwierdzona",
|
"siteApproveSuccess": "Witryna i powiązane zasoby zostały zatwierdzone pomyślnie",
|
||||||
"siteApproveError": "Błąd zatwierdzania witryny",
|
"siteApproveError": "Błąd zatwierdzania witryny",
|
||||||
|
"siteReject": "Odrzuć witrynę",
|
||||||
|
"siteQuestionReject": "Czy na pewno chcesz odrzucić tę witrynę?",
|
||||||
|
"siteMessageReject": "Spowoduje to trwałe usunięcie witryny i wszelkich powiązanych, nadal oczekujących zasobów.",
|
||||||
|
"siteConfirmReject": "Potwierdź odrzucenie witryny",
|
||||||
|
"siteRejectSuccess": "Witryna została odrzucona pomyślnie",
|
||||||
|
"siteRejectError": "Błąd podczas odrzucania witryny",
|
||||||
"provisioningKeys": "Klucze Zaopatrzenia",
|
"provisioningKeys": "Klucze Zaopatrzenia",
|
||||||
"searchProvisioningKeys": "Szukaj kluczy zaopatrzenia...",
|
"searchProvisioningKeys": "Szukaj kluczy zaopatrzenia...",
|
||||||
"provisioningKeysAdd": "Wygeneruj klucz zaopatrzenia",
|
"provisioningKeysAdd": "Wygeneruj klucz zaopatrzenia",
|
||||||
@@ -466,7 +472,7 @@
|
|||||||
"provisioningKeysSave": "Zapisz klucz zaopatrzenia",
|
"provisioningKeysSave": "Zapisz klucz zaopatrzenia",
|
||||||
"provisioningKeysSaveDescription": "Możesz to zobaczyć tylko raz. Skopiuj je do bezpiecznego miejsca.",
|
"provisioningKeysSaveDescription": "Możesz to zobaczyć tylko raz. Skopiuj je do bezpiecznego miejsca.",
|
||||||
"provisioningKeysErrorCreate": "Błąd podczas tworzenia klucza zaopatrzenia",
|
"provisioningKeysErrorCreate": "Błąd podczas tworzenia klucza zaopatrzenia",
|
||||||
"provisioningKeysList": "Nowy klucz rezerwacji",
|
"provisioningKeysList": "Nowy klucz aprowizacyjny",
|
||||||
"provisioningKeysMaxBatchSize": "Maksymalny rozmiar partii",
|
"provisioningKeysMaxBatchSize": "Maksymalny rozmiar partii",
|
||||||
"provisioningKeysUnlimitedBatchSize": "Nieograniczony rozmiar partii (bez limitu)",
|
"provisioningKeysUnlimitedBatchSize": "Nieograniczony rozmiar partii (bez limitu)",
|
||||||
"provisioningKeysMaxBatchUnlimited": "Nieograniczona",
|
"provisioningKeysMaxBatchUnlimited": "Nieograniczona",
|
||||||
@@ -1397,6 +1403,7 @@
|
|||||||
"createOrgUser": "Utwórz użytkownika Org",
|
"createOrgUser": "Utwórz użytkownika Org",
|
||||||
"actionUpdateOrg": "Aktualizuj organizację",
|
"actionUpdateOrg": "Aktualizuj organizację",
|
||||||
"actionRemoveInvitation": "Usuń zaproszenie",
|
"actionRemoveInvitation": "Usuń zaproszenie",
|
||||||
|
"actionRemoveUserRole": "Usuń rolę użytkownika",
|
||||||
"actionUpdateUser": "Zaktualizuj użytkownika",
|
"actionUpdateUser": "Zaktualizuj użytkownika",
|
||||||
"actionGetUser": "Pobierz użytkownika",
|
"actionGetUser": "Pobierz użytkownika",
|
||||||
"actionGetOrgUser": "Pobierz użytkownika organizacji",
|
"actionGetOrgUser": "Pobierz użytkownika organizacji",
|
||||||
@@ -1419,6 +1426,8 @@
|
|||||||
"setupTokenDescription": "Wprowadź token konfiguracji z konsoli serwera.",
|
"setupTokenDescription": "Wprowadź token konfiguracji z konsoli serwera.",
|
||||||
"setupTokenRequired": "Wymagany jest token konfiguracji",
|
"setupTokenRequired": "Wymagany jest token konfiguracji",
|
||||||
"actionUpdateSite": "Aktualizuj witrynę",
|
"actionUpdateSite": "Aktualizuj witrynę",
|
||||||
|
"actionApproveSite": "Zatwierdź witrynę",
|
||||||
|
"actionRejectSite": "Odrzuć witrynę",
|
||||||
"actionResetSiteBandwidth": "Zresetuj przepustowość organizacji",
|
"actionResetSiteBandwidth": "Zresetuj przepustowość organizacji",
|
||||||
"actionListSiteRoles": "Lista dozwolonych ról witryny",
|
"actionListSiteRoles": "Lista dozwolonych ról witryny",
|
||||||
"actionCreateResource": "Utwórz zasób",
|
"actionCreateResource": "Utwórz zasób",
|
||||||
@@ -1516,6 +1525,7 @@
|
|||||||
"otpAuthDescription": "Wprowadź kod z aplikacji uwierzytelniającej lub jeden z jednorazowych kodów zapasowych.",
|
"otpAuthDescription": "Wprowadź kod z aplikacji uwierzytelniającej lub jeden z jednorazowych kodów zapasowych.",
|
||||||
"otpAuthSubmit": "Wyślij kod",
|
"otpAuthSubmit": "Wyślij kod",
|
||||||
"idpContinue": "Lub kontynuuj z",
|
"idpContinue": "Lub kontynuuj z",
|
||||||
|
"idpLastUsed": "Ostatnio używany",
|
||||||
"otpAuthBack": "Powrót do hasła",
|
"otpAuthBack": "Powrót do hasła",
|
||||||
"navbar": "Menu nawigacyjne",
|
"navbar": "Menu nawigacyjne",
|
||||||
"navbarDescription": "Główne menu nawigacyjne aplikacji",
|
"navbarDescription": "Główne menu nawigacyjne aplikacji",
|
||||||
|
|||||||
+15
-5
@@ -449,8 +449,14 @@
|
|||||||
"provisioningManage": "Provisionamento",
|
"provisioningManage": "Provisionamento",
|
||||||
"provisioningDescription": "Gerenciar chaves de provisionamento e revisar sites pendentes aguardando aprovação.",
|
"provisioningDescription": "Gerenciar chaves de provisionamento e revisar sites pendentes aguardando aprovação.",
|
||||||
"pendingSites": "Sites pendentes",
|
"pendingSites": "Sites pendentes",
|
||||||
"siteApproveSuccess": "Site aprovado com sucesso",
|
"siteApproveSuccess": "Site e recursos associados aprovados com sucesso",
|
||||||
"siteApproveError": "Erro ao aprovar site",
|
"siteApproveError": "Erro ao aprovar site",
|
||||||
|
"siteReject": "Rejeitar Site",
|
||||||
|
"siteQuestionReject": "Tem certeza de que deseja rejeitar este site?",
|
||||||
|
"siteMessageReject": "Isto eliminará permanentemente o site e quaisquer recursos associados que ainda estejam pendentes.",
|
||||||
|
"siteConfirmReject": "Confirmar Rejeição de Site",
|
||||||
|
"siteRejectSuccess": "Site rejeitado com sucesso",
|
||||||
|
"siteRejectError": "Erro ao rejeitar site",
|
||||||
"provisioningKeys": "Posicionando chaves",
|
"provisioningKeys": "Posicionando chaves",
|
||||||
"searchProvisioningKeys": "Pesquisar chaves de provisionamento...",
|
"searchProvisioningKeys": "Pesquisar chaves de provisionamento...",
|
||||||
"provisioningKeysAdd": "Gerar chave de provisionamento",
|
"provisioningKeysAdd": "Gerar chave de provisionamento",
|
||||||
@@ -466,12 +472,12 @@
|
|||||||
"provisioningKeysSave": "Salvar a chave de provisionamento",
|
"provisioningKeysSave": "Salvar a chave de provisionamento",
|
||||||
"provisioningKeysSaveDescription": "Você só será capaz de ver esta vez. Copiá-lo para um lugar seguro.",
|
"provisioningKeysSaveDescription": "Você só será capaz de ver esta vez. Copiá-lo para um lugar seguro.",
|
||||||
"provisioningKeysErrorCreate": "Erro ao criar chave de provisionamento",
|
"provisioningKeysErrorCreate": "Erro ao criar chave de provisionamento",
|
||||||
"provisioningKeysList": "Nova chave de aprovisionamento",
|
"provisioningKeysList": "Nova Chave de Provisionamento",
|
||||||
"provisioningKeysMaxBatchSize": "Tamanho máximo do lote",
|
"provisioningKeysMaxBatchSize": "Tamanho Máximo do Lote",
|
||||||
"provisioningKeysUnlimitedBatchSize": "Tamanho ilimitado em lote (sem limite)",
|
"provisioningKeysUnlimitedBatchSize": "Tamanho ilimitado em lote (sem limite)",
|
||||||
"provisioningKeysMaxBatchUnlimited": "Ilimitado",
|
"provisioningKeysMaxBatchUnlimited": "Ilimitado",
|
||||||
"provisioningKeysMaxBatchSizeInvalid": "Informe um tamanho máximo válido em lote (1–1,000,000).",
|
"provisioningKeysMaxBatchSizeInvalid": "Informe um tamanho máximo válido em lote (1–1,000,000).",
|
||||||
"provisioningKeysValidUntil": "Valido ate",
|
"provisioningKeysValidUntil": "Válido Até",
|
||||||
"provisioningKeysValidUntilHint": "Deixe em branco para nenhuma expiração.",
|
"provisioningKeysValidUntilHint": "Deixe em branco para nenhuma expiração.",
|
||||||
"provisioningKeysValidUntilInvalid": "Informe uma data e hora válidas.",
|
"provisioningKeysValidUntilInvalid": "Informe uma data e hora válidas.",
|
||||||
"provisioningKeysNumUsed": "Use percentual",
|
"provisioningKeysNumUsed": "Use percentual",
|
||||||
@@ -480,7 +486,7 @@
|
|||||||
"provisioningKeysNeverUsed": "nunca",
|
"provisioningKeysNeverUsed": "nunca",
|
||||||
"provisioningKeysEdit": "Editar chave de provisionamento",
|
"provisioningKeysEdit": "Editar chave de provisionamento",
|
||||||
"provisioningKeysEditDescription": "Atualizar o tamanho máximo do lote e tempo de expiração para esta chave.",
|
"provisioningKeysEditDescription": "Atualizar o tamanho máximo do lote e tempo de expiração para esta chave.",
|
||||||
"provisioningKeysApproveNewSites": "Aprovar novos sites",
|
"provisioningKeysApproveNewSites": "Aprovar Novos Sites",
|
||||||
"provisioningKeysApproveNewSitesDescription": "Aprovar automaticamente sites que se registram com esta chave.",
|
"provisioningKeysApproveNewSitesDescription": "Aprovar automaticamente sites que se registram com esta chave.",
|
||||||
"provisioningKeysUpdateError": "Erro ao atualizar chave de provisionamento",
|
"provisioningKeysUpdateError": "Erro ao atualizar chave de provisionamento",
|
||||||
"provisioningKeysUpdated": "Chave de provisionamento atualizada",
|
"provisioningKeysUpdated": "Chave de provisionamento atualizada",
|
||||||
@@ -1397,6 +1403,7 @@
|
|||||||
"createOrgUser": "Criar utilizador Org",
|
"createOrgUser": "Criar utilizador Org",
|
||||||
"actionUpdateOrg": "Atualizar Organização",
|
"actionUpdateOrg": "Atualizar Organização",
|
||||||
"actionRemoveInvitation": "Remover Convite",
|
"actionRemoveInvitation": "Remover Convite",
|
||||||
|
"actionRemoveUserRole": "Remover Função de Utilizador",
|
||||||
"actionUpdateUser": "Atualizar Usuário",
|
"actionUpdateUser": "Atualizar Usuário",
|
||||||
"actionGetUser": "Obter Usuário",
|
"actionGetUser": "Obter Usuário",
|
||||||
"actionGetOrgUser": "Obter Utilizador da Organização",
|
"actionGetOrgUser": "Obter Utilizador da Organização",
|
||||||
@@ -1419,6 +1426,8 @@
|
|||||||
"setupTokenDescription": "Digite o token de configuração do console do servidor.",
|
"setupTokenDescription": "Digite o token de configuração do console do servidor.",
|
||||||
"setupTokenRequired": "Token de configuração é necessário",
|
"setupTokenRequired": "Token de configuração é necessário",
|
||||||
"actionUpdateSite": "Atualizar Site",
|
"actionUpdateSite": "Atualizar Site",
|
||||||
|
"actionApproveSite": "Aprovar Site",
|
||||||
|
"actionRejectSite": "Rejeitar Site",
|
||||||
"actionResetSiteBandwidth": "Redefinir banda da organização",
|
"actionResetSiteBandwidth": "Redefinir banda da organização",
|
||||||
"actionListSiteRoles": "Listar Funções Permitidas do Site",
|
"actionListSiteRoles": "Listar Funções Permitidas do Site",
|
||||||
"actionCreateResource": "Criar Recurso",
|
"actionCreateResource": "Criar Recurso",
|
||||||
@@ -1516,6 +1525,7 @@
|
|||||||
"otpAuthDescription": "Insira o código da sua aplicação de autenticação ou um dos seus códigos de backup de uso único.",
|
"otpAuthDescription": "Insira o código da sua aplicação de autenticação ou um dos seus códigos de backup de uso único.",
|
||||||
"otpAuthSubmit": "Submeter Código",
|
"otpAuthSubmit": "Submeter Código",
|
||||||
"idpContinue": "Ou continuar com",
|
"idpContinue": "Ou continuar com",
|
||||||
|
"idpLastUsed": "Última Utilização",
|
||||||
"otpAuthBack": "Voltar à Palavra-passe",
|
"otpAuthBack": "Voltar à Palavra-passe",
|
||||||
"navbar": "Menu de Navegação",
|
"navbar": "Menu de Navegação",
|
||||||
"navbarDescription": "Menu de navegação principal da aplicação",
|
"navbarDescription": "Menu de navegação principal da aplicação",
|
||||||
|
|||||||
+13
-3
@@ -449,8 +449,14 @@
|
|||||||
"provisioningManage": "Подготовка",
|
"provisioningManage": "Подготовка",
|
||||||
"provisioningDescription": "Управляйте предоставленными ключами и проверять непроверенные сайты, ожидающие утверждения.",
|
"provisioningDescription": "Управляйте предоставленными ключами и проверять непроверенные сайты, ожидающие утверждения.",
|
||||||
"pendingSites": "Ожидающие сайты",
|
"pendingSites": "Ожидающие сайты",
|
||||||
"siteApproveSuccess": "Сайт успешно утвержден",
|
"siteApproveSuccess": "Сайт и связанные ресурсы успешно одобрены",
|
||||||
"siteApproveError": "Ошибка при утверждении сайта",
|
"siteApproveError": "Ошибка при утверждении сайта",
|
||||||
|
"siteReject": "Отклонить сайт",
|
||||||
|
"siteQuestionReject": "Вы уверены, что хотите отклонить этот сайт?",
|
||||||
|
"siteMessageReject": "Этот процесс окончательно удалит сайт и все связанные с ним ресурсы, которые еще ожидают.",
|
||||||
|
"siteConfirmReject": "Подтвердите отклонение сайта",
|
||||||
|
"siteRejectSuccess": "Сайт успешно отклонен",
|
||||||
|
"siteRejectError": "Ошибка при отклонении сайта",
|
||||||
"provisioningKeys": "Ключи подготовки",
|
"provisioningKeys": "Ключи подготовки",
|
||||||
"searchProvisioningKeys": "Поиск подготовительных ключей...",
|
"searchProvisioningKeys": "Поиск подготовительных ключей...",
|
||||||
"provisioningKeysAdd": "Сгенерировать ключ подготовки",
|
"provisioningKeysAdd": "Сгенерировать ключ подготовки",
|
||||||
@@ -466,8 +472,8 @@
|
|||||||
"provisioningKeysSave": "Сохранить ключ подготовки",
|
"provisioningKeysSave": "Сохранить ключ подготовки",
|
||||||
"provisioningKeysSaveDescription": "Вы сможете увидеть это только один раз. Скопируйте его в безопасное место.",
|
"provisioningKeysSaveDescription": "Вы сможете увидеть это только один раз. Скопируйте его в безопасное место.",
|
||||||
"provisioningKeysErrorCreate": "Ошибка при создании ключа подготовки",
|
"provisioningKeysErrorCreate": "Ошибка при создании ключа подготовки",
|
||||||
"provisioningKeysList": "Новый подготовительный ключ",
|
"provisioningKeysList": "Новый ключ для подготовки",
|
||||||
"provisioningKeysMaxBatchSize": "Макс. размер партии",
|
"provisioningKeysMaxBatchSize": "Максимальный размер партии",
|
||||||
"provisioningKeysUnlimitedBatchSize": "Неограниченный размер партии (без ограничений)",
|
"provisioningKeysUnlimitedBatchSize": "Неограниченный размер партии (без ограничений)",
|
||||||
"provisioningKeysMaxBatchUnlimited": "Неограниченный",
|
"provisioningKeysMaxBatchUnlimited": "Неограниченный",
|
||||||
"provisioningKeysMaxBatchSizeInvalid": "Введите максимальный размер пакета (1–1,000,000).",
|
"provisioningKeysMaxBatchSizeInvalid": "Введите максимальный размер пакета (1–1,000,000).",
|
||||||
@@ -1397,6 +1403,7 @@
|
|||||||
"createOrgUser": "Создать пользователя Org",
|
"createOrgUser": "Создать пользователя Org",
|
||||||
"actionUpdateOrg": "Обновить организацию",
|
"actionUpdateOrg": "Обновить организацию",
|
||||||
"actionRemoveInvitation": "Удалить приглашение",
|
"actionRemoveInvitation": "Удалить приглашение",
|
||||||
|
"actionRemoveUserRole": "Удалить роль пользователя",
|
||||||
"actionUpdateUser": "Обновить пользователя",
|
"actionUpdateUser": "Обновить пользователя",
|
||||||
"actionGetUser": "Получить пользователя",
|
"actionGetUser": "Получить пользователя",
|
||||||
"actionGetOrgUser": "Получить пользователя организации",
|
"actionGetOrgUser": "Получить пользователя организации",
|
||||||
@@ -1419,6 +1426,8 @@
|
|||||||
"setupTokenDescription": "Введите токен настройки из консоли сервера.",
|
"setupTokenDescription": "Введите токен настройки из консоли сервера.",
|
||||||
"setupTokenRequired": "Токен настройки обязателен",
|
"setupTokenRequired": "Токен настройки обязателен",
|
||||||
"actionUpdateSite": "Обновить сайт",
|
"actionUpdateSite": "Обновить сайт",
|
||||||
|
"actionApproveSite": "Одобрить сайт",
|
||||||
|
"actionRejectSite": "Отклонить сайт",
|
||||||
"actionResetSiteBandwidth": "Сброс пропускной способности организации",
|
"actionResetSiteBandwidth": "Сброс пропускной способности организации",
|
||||||
"actionListSiteRoles": "Список разрешенных ролей сайта",
|
"actionListSiteRoles": "Список разрешенных ролей сайта",
|
||||||
"actionCreateResource": "Создать ресурс",
|
"actionCreateResource": "Создать ресурс",
|
||||||
@@ -1516,6 +1525,7 @@
|
|||||||
"otpAuthDescription": "Введите код из вашего приложения-аутентификатора или один из ваших одноразовых резервных кодов.",
|
"otpAuthDescription": "Введите код из вашего приложения-аутентификатора или один из ваших одноразовых резервных кодов.",
|
||||||
"otpAuthSubmit": "Отправить код",
|
"otpAuthSubmit": "Отправить код",
|
||||||
"idpContinue": "Или продолжить с",
|
"idpContinue": "Или продолжить с",
|
||||||
|
"idpLastUsed": "Последнее использование",
|
||||||
"otpAuthBack": "Назад к паролю",
|
"otpAuthBack": "Назад к паролю",
|
||||||
"navbar": "Навигационное меню",
|
"navbar": "Навигационное меню",
|
||||||
"navbarDescription": "Главное навигационное меню приложения",
|
"navbarDescription": "Главное навигационное меню приложения",
|
||||||
|
|||||||
+15
-5
@@ -449,8 +449,14 @@
|
|||||||
"provisioningManage": "Tedarik",
|
"provisioningManage": "Tedarik",
|
||||||
"provisioningDescription": "Tedarik anahtarlarını yönetin ve onay bekleyen siteleri gözden geçirin.",
|
"provisioningDescription": "Tedarik anahtarlarını yönetin ve onay bekleyen siteleri gözden geçirin.",
|
||||||
"pendingSites": "Bekleyen Siteler",
|
"pendingSites": "Bekleyen Siteler",
|
||||||
"siteApproveSuccess": "Site başarıyla onaylandı",
|
"siteApproveSuccess": "Site ve ilgili kaynaklar başarıyla onaylandı",
|
||||||
"siteApproveError": "Site onaylanırken hata oluştu",
|
"siteApproveError": "Site onaylanırken hata oluştu",
|
||||||
|
"siteReject": "Siteyi Reddet",
|
||||||
|
"siteQuestionReject": "Bu siteyi reddetmek istediğinizden emin misiniz?",
|
||||||
|
"siteMessageReject": "Bu işlem, siteyi ve hala beklemede olan herhangi bir ilgili kaynağı kalıcı olarak silecektir.",
|
||||||
|
"siteConfirmReject": "Site Reddetmeyi Onayla",
|
||||||
|
"siteRejectSuccess": "Site başarıyla reddedildi",
|
||||||
|
"siteRejectError": "Site reddedilirken hata oluştu",
|
||||||
"provisioningKeys": "Tedarik Anahtarları",
|
"provisioningKeys": "Tedarik Anahtarları",
|
||||||
"searchProvisioningKeys": "Tedarik anahtarlarını ara...",
|
"searchProvisioningKeys": "Tedarik anahtarlarını ara...",
|
||||||
"provisioningKeysAdd": "Tedarik Anahtarı Üret",
|
"provisioningKeysAdd": "Tedarik Anahtarı Üret",
|
||||||
@@ -466,12 +472,12 @@
|
|||||||
"provisioningKeysSave": "Tedarik anahtarını kaydet",
|
"provisioningKeysSave": "Tedarik anahtarını kaydet",
|
||||||
"provisioningKeysSaveDescription": "Bunu yalnızca bir kez görebileceksiniz. Güvenli bir yere kopyalayın.",
|
"provisioningKeysSaveDescription": "Bunu yalnızca bir kez görebileceksiniz. Güvenli bir yere kopyalayın.",
|
||||||
"provisioningKeysErrorCreate": "Tedarik anahtarı oluşturulurken hata oluştu",
|
"provisioningKeysErrorCreate": "Tedarik anahtarı oluşturulurken hata oluştu",
|
||||||
"provisioningKeysList": "Yeni tedarik anahtarı",
|
"provisioningKeysList": "Yeni Sağlama Anahtarı",
|
||||||
"provisioningKeysMaxBatchSize": "Maksimum toplu iş boyutu",
|
"provisioningKeysMaxBatchSize": "Maksimum Toplu İş Boyutu",
|
||||||
"provisioningKeysUnlimitedBatchSize": "Sınırsız toplu iş boyutu (sınırlama yok)",
|
"provisioningKeysUnlimitedBatchSize": "Sınırsız toplu iş boyutu (sınırlama yok)",
|
||||||
"provisioningKeysMaxBatchUnlimited": "Sınırsız",
|
"provisioningKeysMaxBatchUnlimited": "Sınırsız",
|
||||||
"provisioningKeysMaxBatchSizeInvalid": "Geçerli bir maksimum toplu iş boyutu girin (1–1,000,000).",
|
"provisioningKeysMaxBatchSizeInvalid": "Geçerli bir maksimum toplu iş boyutu girin (1–1,000,000).",
|
||||||
"provisioningKeysValidUntil": "Geçerlilik tarihi",
|
"provisioningKeysValidUntil": "Geçerli Olma Süresi",
|
||||||
"provisioningKeysValidUntilHint": "Son kullanım tarihi için boş bırakın.",
|
"provisioningKeysValidUntilHint": "Son kullanım tarihi için boş bırakın.",
|
||||||
"provisioningKeysValidUntilInvalid": "Geçerli bir tarih ve saat girin.",
|
"provisioningKeysValidUntilInvalid": "Geçerli bir tarih ve saat girin.",
|
||||||
"provisioningKeysNumUsed": "Kullanım Sayısı",
|
"provisioningKeysNumUsed": "Kullanım Sayısı",
|
||||||
@@ -480,7 +486,7 @@
|
|||||||
"provisioningKeysNeverUsed": "Asla",
|
"provisioningKeysNeverUsed": "Asla",
|
||||||
"provisioningKeysEdit": "Tedarik Anahtarını Düzenle",
|
"provisioningKeysEdit": "Tedarik Anahtarını Düzenle",
|
||||||
"provisioningKeysEditDescription": "Bu anahtar için maksimum toplu iş boyutunu ve son kullanma zamanını güncelleyin.",
|
"provisioningKeysEditDescription": "Bu anahtar için maksimum toplu iş boyutunu ve son kullanma zamanını güncelleyin.",
|
||||||
"provisioningKeysApproveNewSites": "Yeni siteleri onayla",
|
"provisioningKeysApproveNewSites": "Yeni Siteleri Onayla",
|
||||||
"provisioningKeysApproveNewSitesDescription": "Bu anahtar ile kayıt olan siteleri otomatik olarak onayla.",
|
"provisioningKeysApproveNewSitesDescription": "Bu anahtar ile kayıt olan siteleri otomatik olarak onayla.",
|
||||||
"provisioningKeysUpdateError": "Tedarik anahtarı güncellenirken hata oluştu",
|
"provisioningKeysUpdateError": "Tedarik anahtarı güncellenirken hata oluştu",
|
||||||
"provisioningKeysUpdated": "Tedarik anahtarı güncellendi",
|
"provisioningKeysUpdated": "Tedarik anahtarı güncellendi",
|
||||||
@@ -1397,6 +1403,7 @@
|
|||||||
"createOrgUser": "Organizasyon Kullanıcısı Oluştur",
|
"createOrgUser": "Organizasyon Kullanıcısı Oluştur",
|
||||||
"actionUpdateOrg": "Kuruluşu Güncelle",
|
"actionUpdateOrg": "Kuruluşu Güncelle",
|
||||||
"actionRemoveInvitation": "Daveti Kaldır",
|
"actionRemoveInvitation": "Daveti Kaldır",
|
||||||
|
"actionRemoveUserRole": "Kullanıcı Rolünü Kaldır",
|
||||||
"actionUpdateUser": "Kullanıcıyı Güncelle",
|
"actionUpdateUser": "Kullanıcıyı Güncelle",
|
||||||
"actionGetUser": "Kullanıcıyı Getir",
|
"actionGetUser": "Kullanıcıyı Getir",
|
||||||
"actionGetOrgUser": "Kuruluş Kullanıcısını Al",
|
"actionGetOrgUser": "Kuruluş Kullanıcısını Al",
|
||||||
@@ -1419,6 +1426,8 @@
|
|||||||
"setupTokenDescription": "Sunucu konsolundan kurulum simgesini girin.",
|
"setupTokenDescription": "Sunucu konsolundan kurulum simgesini girin.",
|
||||||
"setupTokenRequired": "Kurulum simgesi gerekli",
|
"setupTokenRequired": "Kurulum simgesi gerekli",
|
||||||
"actionUpdateSite": "Siteyi Güncelle",
|
"actionUpdateSite": "Siteyi Güncelle",
|
||||||
|
"actionApproveSite": "Siteyi Onayla",
|
||||||
|
"actionRejectSite": "Siteyi Reddet",
|
||||||
"actionResetSiteBandwidth": "Organizasyon Bant Genişliğini Sıfırla",
|
"actionResetSiteBandwidth": "Organizasyon Bant Genişliğini Sıfırla",
|
||||||
"actionListSiteRoles": "İzin Verilen Site Rolleri Listele",
|
"actionListSiteRoles": "İzin Verilen Site Rolleri Listele",
|
||||||
"actionCreateResource": "Kaynak Oluştur",
|
"actionCreateResource": "Kaynak Oluştur",
|
||||||
@@ -1516,6 +1525,7 @@
|
|||||||
"otpAuthDescription": "Authenticator uygulamanızdan veya tek kullanımlık yedek kodlarınızdan birini girin.",
|
"otpAuthDescription": "Authenticator uygulamanızdan veya tek kullanımlık yedek kodlarınızdan birini girin.",
|
||||||
"otpAuthSubmit": "Kodu Gönder",
|
"otpAuthSubmit": "Kodu Gönder",
|
||||||
"idpContinue": "Veya devam et:",
|
"idpContinue": "Veya devam et:",
|
||||||
|
"idpLastUsed": "Son Kullanılan",
|
||||||
"otpAuthBack": "Şifreye Geri Dön",
|
"otpAuthBack": "Şifreye Geri Dön",
|
||||||
"navbar": "Navigasyon Menüsü",
|
"navbar": "Navigasyon Menüsü",
|
||||||
"navbarDescription": "Uygulamanın ana navigasyon menüsü",
|
"navbarDescription": "Uygulamanın ana navigasyon menüsü",
|
||||||
|
|||||||
+14
-4
@@ -449,8 +449,14 @@
|
|||||||
"provisioningManage": "预配",
|
"provisioningManage": "预配",
|
||||||
"provisioningDescription": "管理预配密钥,并审核待批准的站点。",
|
"provisioningDescription": "管理预配密钥,并审核待批准的站点。",
|
||||||
"pendingSites": "待审批站点",
|
"pendingSites": "待审批站点",
|
||||||
"siteApproveSuccess": "站点批准成功",
|
"siteApproveSuccess": "站点及相关资源已成功审批",
|
||||||
"siteApproveError": "批准站点出错",
|
"siteApproveError": "批准站点出错",
|
||||||
|
"siteReject": "拒绝站点",
|
||||||
|
"siteQuestionReject": "您确定要拒绝此站点吗?",
|
||||||
|
"siteMessageReject": "这将永久删除站点及所有尚未处理的相关资源。",
|
||||||
|
"siteConfirmReject": "确认拒绝站点",
|
||||||
|
"siteRejectSuccess": "站点已被成功拒绝",
|
||||||
|
"siteRejectError": "拒绝站点时出错",
|
||||||
"provisioningKeys": "置备键",
|
"provisioningKeys": "置备键",
|
||||||
"searchProvisioningKeys": "搜索配备密钥...",
|
"searchProvisioningKeys": "搜索配备密钥...",
|
||||||
"provisioningKeysAdd": "生成预配密钥",
|
"provisioningKeysAdd": "生成预配密钥",
|
||||||
@@ -466,8 +472,8 @@
|
|||||||
"provisioningKeysSave": "保存预配键",
|
"provisioningKeysSave": "保存预配键",
|
||||||
"provisioningKeysSaveDescription": "您只能看到一次。复制它到一个安全的地方。",
|
"provisioningKeysSaveDescription": "您只能看到一次。复制它到一个安全的地方。",
|
||||||
"provisioningKeysErrorCreate": "创建预配键时出错",
|
"provisioningKeysErrorCreate": "创建预配键时出错",
|
||||||
"provisioningKeysList": "新建预配键",
|
"provisioningKeysList": "新预配密钥",
|
||||||
"provisioningKeysMaxBatchSize": "最大批量大小",
|
"provisioningKeysMaxBatchSize": "最大批次大小",
|
||||||
"provisioningKeysUnlimitedBatchSize": "无限批量大小(无限制)",
|
"provisioningKeysUnlimitedBatchSize": "无限批量大小(无限制)",
|
||||||
"provisioningKeysMaxBatchUnlimited": "无限制",
|
"provisioningKeysMaxBatchUnlimited": "无限制",
|
||||||
"provisioningKeysMaxBatchSizeInvalid": "输入一个有效的最大批处理大小(1-1,000,000)。",
|
"provisioningKeysMaxBatchSizeInvalid": "输入一个有效的最大批处理大小(1-1,000,000)。",
|
||||||
@@ -480,7 +486,7 @@
|
|||||||
"provisioningKeysNeverUsed": "永不过期",
|
"provisioningKeysNeverUsed": "永不过期",
|
||||||
"provisioningKeysEdit": "编辑置备键",
|
"provisioningKeysEdit": "编辑置备键",
|
||||||
"provisioningKeysEditDescription": "更新此密钥的最大批量大小和过期时间。",
|
"provisioningKeysEditDescription": "更新此密钥的最大批量大小和过期时间。",
|
||||||
"provisioningKeysApproveNewSites": "批准新节点",
|
"provisioningKeysApproveNewSites": "批准新站点",
|
||||||
"provisioningKeysApproveNewSitesDescription": "自动批准使用此密钥注册的节点。",
|
"provisioningKeysApproveNewSitesDescription": "自动批准使用此密钥注册的节点。",
|
||||||
"provisioningKeysUpdateError": "更新预配键时出错",
|
"provisioningKeysUpdateError": "更新预配键时出错",
|
||||||
"provisioningKeysUpdated": "置备密钥已更新",
|
"provisioningKeysUpdated": "置备密钥已更新",
|
||||||
@@ -1397,6 +1403,7 @@
|
|||||||
"createOrgUser": "创建组织用户",
|
"createOrgUser": "创建组织用户",
|
||||||
"actionUpdateOrg": "更新组织",
|
"actionUpdateOrg": "更新组织",
|
||||||
"actionRemoveInvitation": "移除邀请",
|
"actionRemoveInvitation": "移除邀请",
|
||||||
|
"actionRemoveUserRole": "移除用户角色",
|
||||||
"actionUpdateUser": "更新用户",
|
"actionUpdateUser": "更新用户",
|
||||||
"actionGetUser": "获取用户",
|
"actionGetUser": "获取用户",
|
||||||
"actionGetOrgUser": "获取组织用户",
|
"actionGetOrgUser": "获取组织用户",
|
||||||
@@ -1419,6 +1426,8 @@
|
|||||||
"setupTokenDescription": "从服务器控制台输入设置令牌。",
|
"setupTokenDescription": "从服务器控制台输入设置令牌。",
|
||||||
"setupTokenRequired": "需要设置令牌",
|
"setupTokenRequired": "需要设置令牌",
|
||||||
"actionUpdateSite": "更新站点",
|
"actionUpdateSite": "更新站点",
|
||||||
|
"actionApproveSite": "批准站点",
|
||||||
|
"actionRejectSite": "拒绝站点",
|
||||||
"actionResetSiteBandwidth": "重置组织带宽",
|
"actionResetSiteBandwidth": "重置组织带宽",
|
||||||
"actionListSiteRoles": "允许站点角色列表",
|
"actionListSiteRoles": "允许站点角色列表",
|
||||||
"actionCreateResource": "创建资源",
|
"actionCreateResource": "创建资源",
|
||||||
@@ -1516,6 +1525,7 @@
|
|||||||
"otpAuthDescription": "从您的身份验证程序中输入代码或您的单次备份代码。",
|
"otpAuthDescription": "从您的身份验证程序中输入代码或您的单次备份代码。",
|
||||||
"otpAuthSubmit": "提交代码",
|
"otpAuthSubmit": "提交代码",
|
||||||
"idpContinue": "或者继续",
|
"idpContinue": "或者继续",
|
||||||
|
"idpLastUsed": "上次使用",
|
||||||
"otpAuthBack": "回到密码",
|
"otpAuthBack": "回到密码",
|
||||||
"navbar": "导航菜单",
|
"navbar": "导航菜单",
|
||||||
"navbarDescription": "应用程序的主导航菜单",
|
"navbarDescription": "应用程序的主导航菜单",
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 556 KiB |
@@ -21,6 +21,7 @@ export enum ActionsEnum {
|
|||||||
getSite = "getSite",
|
getSite = "getSite",
|
||||||
listSites = "listSites",
|
listSites = "listSites",
|
||||||
updateSite = "updateSite",
|
updateSite = "updateSite",
|
||||||
|
updateSiteApprovals = "updateSiteApprovals",
|
||||||
restartSite = "restartSite",
|
restartSite = "restartSite",
|
||||||
resetSiteBandwidth = "resetSiteBandwidth",
|
resetSiteBandwidth = "resetSiteBandwidth",
|
||||||
reGenerateSecret = "reGenerateSecret",
|
reGenerateSecret = "reGenerateSecret",
|
||||||
|
|||||||
@@ -200,7 +200,10 @@ export const resources = pgTable(
|
|||||||
authDaemonMode: varchar("authDaemonMode", { length: 32 })
|
authDaemonMode: varchar("authDaemonMode", { length: 32 })
|
||||||
.$type<"site" | "remote" | "native">()
|
.$type<"site" | "remote" | "native">()
|
||||||
.default("site"),
|
.default("site"),
|
||||||
authDaemonPort: integer("authDaemonPort").default(22123)
|
authDaemonPort: integer("authDaemonPort").default(22123),
|
||||||
|
status: varchar("status")
|
||||||
|
.$type<"pending" | "approved">()
|
||||||
|
.default("approved")
|
||||||
},
|
},
|
||||||
(t) => [
|
(t) => [
|
||||||
index("idx_resources_fulldomain")
|
index("idx_resources_fulldomain")
|
||||||
@@ -451,7 +454,10 @@ export const siteResources = pgTable(
|
|||||||
onDelete: "set null"
|
onDelete: "set null"
|
||||||
}),
|
}),
|
||||||
subdomain: varchar("subdomain"),
|
subdomain: varchar("subdomain"),
|
||||||
fullDomain: varchar("fullDomain")
|
fullDomain: varchar("fullDomain"),
|
||||||
|
status: varchar("status")
|
||||||
|
.$type<"pending" | "approved">()
|
||||||
|
.default("approved")
|
||||||
},
|
},
|
||||||
(t) => [index("idx_siteresources_orgid_niceid").on(t.orgId, t.niceId)]
|
(t) => [index("idx_siteresources_orgid_niceid").on(t.orgId, t.niceId)]
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -209,7 +209,8 @@ export const resources = sqliteTable("resources", {
|
|||||||
authDaemonMode: text("authDaemonMode")
|
authDaemonMode: text("authDaemonMode")
|
||||||
.$type<"site" | "remote" | "native">()
|
.$type<"site" | "remote" | "native">()
|
||||||
.default("site"),
|
.default("site"),
|
||||||
authDaemonPort: integer("authDaemonPort").default(22123)
|
authDaemonPort: integer("authDaemonPort").default(22123),
|
||||||
|
status: text("status").$type<"pending" | "approved">().default("approved")
|
||||||
});
|
});
|
||||||
|
|
||||||
export const labels = sqliteTable("labels", {
|
export const labels = sqliteTable("labels", {
|
||||||
@@ -447,7 +448,8 @@ export const siteResources = sqliteTable("siteResources", {
|
|||||||
onDelete: "set null"
|
onDelete: "set null"
|
||||||
}),
|
}),
|
||||||
subdomain: text("subdomain"),
|
subdomain: text("subdomain"),
|
||||||
fullDomain: text("fullDomain")
|
fullDomain: text("fullDomain"),
|
||||||
|
status: text("status").$type<"pending" | "approved">().default("approved")
|
||||||
});
|
});
|
||||||
|
|
||||||
export const networks = sqliteTable("networks", {
|
export const networks = sqliteTable("networks", {
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import { logIncomingMiddleware } from "./middlewares/logIncoming";
|
|||||||
import helmet from "helmet";
|
import helmet from "helmet";
|
||||||
import swaggerUi from "swagger-ui-express";
|
import swaggerUi from "swagger-ui-express";
|
||||||
import { OpenApiGeneratorV3 } from "@asteasolutions/zod-to-openapi";
|
import { OpenApiGeneratorV3 } from "@asteasolutions/zod-to-openapi";
|
||||||
import { registry, openApiTags } from "./openApi";
|
import { registry } from "./openApi";
|
||||||
import fs from "fs";
|
import fs from "fs";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import { APP_PATH } from "./lib/consts";
|
import { APP_PATH } from "./lib/consts";
|
||||||
@@ -181,8 +181,7 @@ function getOpenApiDocumentation() {
|
|||||||
version: "v1",
|
version: "v1",
|
||||||
title: "Pangolin Integration API"
|
title: "Pangolin Integration API"
|
||||||
},
|
},
|
||||||
servers: [{ url: "/v1" }],
|
servers: [{ url: "/v1" }]
|
||||||
tags: openApiTags
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!process.env.DISABLE_GEN_OPENAPI) {
|
if (!process.env.DISABLE_GEN_OPENAPI) {
|
||||||
|
|||||||
@@ -34,12 +34,6 @@ import {
|
|||||||
rebuildClientAssociationsFromSiteResource,
|
rebuildClientAssociationsFromSiteResource,
|
||||||
waitForSiteResourceRebuildIdle
|
waitForSiteResourceRebuildIdle
|
||||||
} from "../rebuildClientAssociations";
|
} from "../rebuildClientAssociations";
|
||||||
import { build } from "@server/build";
|
|
||||||
import HttpCode from "@server/types/HttpCode";
|
|
||||||
import createHttpError from "http-errors";
|
|
||||||
import next from "next";
|
|
||||||
import { LimitId } from "../billing";
|
|
||||||
import { usageService } from "../billing/usageService";
|
|
||||||
|
|
||||||
type ApplyBlueprintArgs = {
|
type ApplyBlueprintArgs = {
|
||||||
orgId: string;
|
orgId: string;
|
||||||
|
|||||||
@@ -26,9 +26,6 @@ import { createCertificate } from "#dynamic/routers/certificates/createCertifica
|
|||||||
import { isLicensedOrSubscribed } from "#dynamic/lib/isLicencedOrSubscribed";
|
import { isLicensedOrSubscribed } from "#dynamic/lib/isLicencedOrSubscribed";
|
||||||
import { tierMatrix } from "../billing/tierMatrix";
|
import { tierMatrix } from "../billing/tierMatrix";
|
||||||
import { build } from "@server/build";
|
import { build } from "@server/build";
|
||||||
import HttpCode from "@server/types/HttpCode";
|
|
||||||
import createHttpError from "http-errors";
|
|
||||||
import next from "next";
|
|
||||||
import { LimitId } from "../billing";
|
import { LimitId } from "../billing";
|
||||||
import { usageService } from "../billing/usageService";
|
import { usageService } from "../billing/usageService";
|
||||||
|
|
||||||
@@ -201,17 +198,19 @@ export async function updatePrivateResources(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let resourceStatusFromSite: "approved" | "pending" = "approved";
|
||||||
if (siteId && allSites.length === 0) {
|
if (siteId && allSites.length === 0) {
|
||||||
// only add if there are not provided sites
|
// only add if there are not provided sites
|
||||||
// Use the provided siteId directly, but verify it belongs to the org
|
// Use the provided siteId directly, but verify it belongs to the org
|
||||||
const [siteSingle] = await trx
|
const [siteSingle] = await trx
|
||||||
.select({ siteId: sites.siteId })
|
.select({ siteId: sites.siteId, status: sites.status })
|
||||||
.from(sites)
|
.from(sites)
|
||||||
.where(and(eq(sites.siteId, siteId), eq(sites.orgId, orgId)))
|
.where(and(eq(sites.siteId, siteId), eq(sites.orgId, orgId)))
|
||||||
.limit(1);
|
.limit(1);
|
||||||
if (siteSingle) {
|
if (siteSingle) {
|
||||||
allSites.push(siteSingle);
|
allSites.push(siteSingle);
|
||||||
}
|
}
|
||||||
|
resourceStatusFromSite = siteSingle.status ?? "approved";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (allSites.length === 0) {
|
if (allSites.length === 0) {
|
||||||
@@ -220,6 +219,13 @@ export async function updatePrivateResources(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const resourceEnabled =
|
||||||
|
resourceData.enabled == undefined || resourceData.enabled == null
|
||||||
|
? true
|
||||||
|
: resourceStatusFromSite === "pending"
|
||||||
|
? false
|
||||||
|
: resourceData.enabled;
|
||||||
|
|
||||||
if (existingResource) {
|
if (existingResource) {
|
||||||
let domainInfo:
|
let domainInfo:
|
||||||
| { subdomain: string | null; domainId: string }
|
| { subdomain: string | null; domainId: string }
|
||||||
@@ -243,8 +249,7 @@ export async function updatePrivateResources(
|
|||||||
scheme: resourceData.scheme,
|
scheme: resourceData.scheme,
|
||||||
destination: resourceData.destination,
|
destination: resourceData.destination,
|
||||||
destinationPort: resourceData["destination-port"],
|
destinationPort: resourceData["destination-port"],
|
||||||
enabled: true, // hardcoded for now
|
enabled: resourceEnabled,
|
||||||
// enabled: resourceData.enabled ?? true,
|
|
||||||
alias: resourceData.alias || null,
|
alias: resourceData.alias || null,
|
||||||
disableIcmp:
|
disableIcmp:
|
||||||
resourceData["disable-icmp"] ||
|
resourceData["disable-icmp"] ||
|
||||||
@@ -263,7 +268,8 @@ export async function updatePrivateResources(
|
|||||||
pamMode: resourceData["auth-daemon"]?.pam || "passthrough",
|
pamMode: resourceData["auth-daemon"]?.pam || "passthrough",
|
||||||
authDaemonMode:
|
authDaemonMode:
|
||||||
resourceData["auth-daemon"]?.mode || "native",
|
resourceData["auth-daemon"]?.mode || "native",
|
||||||
authDaemonPort: resourceData["auth-daemon"]?.port || 22123
|
authDaemonPort: resourceData["auth-daemon"]?.port || 22123,
|
||||||
|
status: resourceStatusFromSite
|
||||||
})
|
})
|
||||||
.where(
|
.where(
|
||||||
eq(
|
eq(
|
||||||
@@ -496,8 +502,7 @@ export async function updatePrivateResources(
|
|||||||
scheme: resourceData.scheme,
|
scheme: resourceData.scheme,
|
||||||
destination: resourceData.destination,
|
destination: resourceData.destination,
|
||||||
destinationPort: resourceData["destination-port"],
|
destinationPort: resourceData["destination-port"],
|
||||||
enabled: true, // hardcoded for now
|
enabled: resourceEnabled,
|
||||||
// enabled: resourceData.enabled ?? true,
|
|
||||||
alias: resourceData.alias || null,
|
alias: resourceData.alias || null,
|
||||||
aliasAddress: aliasAddress,
|
aliasAddress: aliasAddress,
|
||||||
disableIcmp:
|
disableIcmp:
|
||||||
@@ -517,7 +522,8 @@ export async function updatePrivateResources(
|
|||||||
pamMode: resourceData["auth-daemon"]?.pam || "passthrough",
|
pamMode: resourceData["auth-daemon"]?.pam || "passthrough",
|
||||||
authDaemonMode:
|
authDaemonMode:
|
||||||
resourceData["auth-daemon"]?.mode || "native",
|
resourceData["auth-daemon"]?.mode || "native",
|
||||||
authDaemonPort: resourceData["auth-daemon"]?.port || 22123
|
authDaemonPort: resourceData["auth-daemon"]?.port || 22123,
|
||||||
|
status: resourceStatusFromSite
|
||||||
})
|
})
|
||||||
.returning();
|
.returning();
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ import {
|
|||||||
rolePolicies,
|
rolePolicies,
|
||||||
roleResources,
|
roleResources,
|
||||||
roles,
|
roles,
|
||||||
|
Site,
|
||||||
sites,
|
sites,
|
||||||
Target,
|
Target,
|
||||||
TargetHealthCheck,
|
TargetHealthCheck,
|
||||||
@@ -74,19 +75,40 @@ export async function updatePublicResources(
|
|||||||
)) {
|
)) {
|
||||||
const targetsToUpdate: Target[] = [];
|
const targetsToUpdate: Target[] = [];
|
||||||
const healthchecksToUpdate: TargetHealthCheck[] = [];
|
const healthchecksToUpdate: TargetHealthCheck[] = [];
|
||||||
|
|
||||||
let resource: Resource;
|
let resource: Resource;
|
||||||
|
let resourceStatusFromSite: "approved" | "pending" = "approved";
|
||||||
|
let providedSite: Partial<Site> | undefined;
|
||||||
|
if (siteId) {
|
||||||
|
// Use the provided siteId directly, but verify it belongs to the org
|
||||||
|
[providedSite] = await trx
|
||||||
|
.select({
|
||||||
|
siteId: sites.siteId,
|
||||||
|
type: sites.type,
|
||||||
|
status: sites.status
|
||||||
|
})
|
||||||
|
.from(sites)
|
||||||
|
.where(and(eq(sites.siteId, siteId), eq(sites.orgId, orgId)))
|
||||||
|
.limit(1);
|
||||||
|
|
||||||
|
resourceStatusFromSite = providedSite?.status ?? "approved";
|
||||||
|
}
|
||||||
|
|
||||||
async function createTarget( // reusable function to create a target
|
async function createTarget( // reusable function to create a target
|
||||||
resourceId: number,
|
resourceId: number,
|
||||||
targetData: TargetData
|
targetData: TargetData
|
||||||
) {
|
) {
|
||||||
const targetSiteId = targetData.site;
|
const targetSiteId = targetData.site;
|
||||||
let site;
|
let site: Partial<Site> | undefined;
|
||||||
|
|
||||||
if (targetSiteId) {
|
if (targetSiteId) {
|
||||||
// Look up site by niceId
|
// Look up site by niceId
|
||||||
[site] = await trx
|
[site] = await trx
|
||||||
.select({ siteId: sites.siteId, type: sites.type })
|
.select({
|
||||||
|
siteId: sites.siteId,
|
||||||
|
type: sites.type,
|
||||||
|
status: sites.status
|
||||||
|
})
|
||||||
.from(sites)
|
.from(sites)
|
||||||
.where(
|
.where(
|
||||||
and(
|
and(
|
||||||
@@ -95,15 +117,9 @@ export async function updatePublicResources(
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
.limit(1);
|
.limit(1);
|
||||||
} else if (siteId) {
|
} else if (siteId && providedSite) {
|
||||||
// Use the provided siteId directly, but verify it belongs to the org
|
// Use the provided siteId directly, but verify it belongs to the org
|
||||||
[site] = await trx
|
site = providedSite;
|
||||||
.select({ siteId: sites.siteId, type: sites.type })
|
|
||||||
.from(sites)
|
|
||||||
.where(
|
|
||||||
and(eq(sites.siteId, siteId), eq(sites.orgId, orgId))
|
|
||||||
)
|
|
||||||
.limit(1);
|
|
||||||
} else {
|
} else {
|
||||||
throw new Error(`Target site is required`);
|
throw new Error(`Target site is required`);
|
||||||
}
|
}
|
||||||
@@ -139,7 +155,7 @@ export async function updatePublicResources(
|
|||||||
.insert(targets)
|
.insert(targets)
|
||||||
.values({
|
.values({
|
||||||
resourceId: resourceId,
|
resourceId: resourceId,
|
||||||
siteId: site.siteId,
|
siteId: site.siteId!,
|
||||||
ip: targetData.hostname,
|
ip: targetData.hostname,
|
||||||
mode: resourceData.mode as Target["mode"],
|
mode: resourceData.mode as Target["mode"],
|
||||||
method: targetData.method,
|
method: targetData.method,
|
||||||
@@ -172,7 +188,7 @@ export async function updatePublicResources(
|
|||||||
.insert(targetHealthCheck)
|
.insert(targetHealthCheck)
|
||||||
.values({
|
.values({
|
||||||
name: `${targetData.hostname}:${targetData.port}`,
|
name: `${targetData.hostname}:${targetData.port}`,
|
||||||
siteId: site.siteId,
|
siteId: site.siteId!,
|
||||||
targetId: newTarget.targetId,
|
targetId: newTarget.targetId,
|
||||||
orgId: orgId,
|
orgId: orgId,
|
||||||
hcEnabled: healthcheckData?.enabled || false,
|
hcEnabled: healthcheckData?.enabled || false,
|
||||||
@@ -230,7 +246,10 @@ export async function updatePublicResources(
|
|||||||
const resourceEnabled =
|
const resourceEnabled =
|
||||||
resourceData.enabled == undefined || resourceData.enabled == null
|
resourceData.enabled == undefined || resourceData.enabled == null
|
||||||
? true
|
? true
|
||||||
|
: resourceStatusFromSite === "pending"
|
||||||
|
? false
|
||||||
: resourceData.enabled;
|
: resourceData.enabled;
|
||||||
|
|
||||||
const resourceSsl =
|
const resourceSsl =
|
||||||
resourceData.ssl == undefined || resourceData.ssl == null
|
resourceData.ssl == undefined || resourceData.ssl == null
|
||||||
? true
|
? true
|
||||||
@@ -406,7 +425,8 @@ export async function updatePublicResources(
|
|||||||
? (resourceData["proxy-protocol-version"] ??
|
? (resourceData["proxy-protocol-version"] ??
|
||||||
1)
|
1)
|
||||||
: 1,
|
: 1,
|
||||||
resourcePolicyId: sharedPolicy.resourcePolicyId
|
resourcePolicyId: sharedPolicy.resourcePolicyId,
|
||||||
|
status: resourceStatusFromSite
|
||||||
})
|
})
|
||||||
.where(
|
.where(
|
||||||
eq(
|
eq(
|
||||||
@@ -590,7 +610,8 @@ export async function updatePublicResources(
|
|||||||
authDaemonPort:
|
authDaemonPort:
|
||||||
resourceData["auth-daemon"]?.port || 22123,
|
resourceData["auth-daemon"]?.port || 22123,
|
||||||
resourcePolicyId: null,
|
resourcePolicyId: null,
|
||||||
defaultResourcePolicyId: inlinePolicyId
|
defaultResourcePolicyId: inlinePolicyId,
|
||||||
|
status: resourceStatusFromSite
|
||||||
})
|
})
|
||||||
.where(
|
.where(
|
||||||
eq(
|
eq(
|
||||||
@@ -1131,6 +1152,7 @@ export async function updatePublicResources(
|
|||||||
.values({
|
.values({
|
||||||
orgId,
|
orgId,
|
||||||
niceId: resourceNiceId,
|
niceId: resourceNiceId,
|
||||||
|
status: resourceStatusFromSite,
|
||||||
name: resourceData.name || "Unnamed Resource",
|
name: resourceData.name || "Unnamed Resource",
|
||||||
mode: resourceData.mode,
|
mode: resourceData.mode,
|
||||||
proxyPort: ["http", "ssh", "rdp", "vnc"].includes(
|
proxyPort: ["http", "ssh", "rdp", "vnc"].includes(
|
||||||
|
|||||||
@@ -470,7 +470,7 @@ export const PrivateResourceSchema = z
|
|||||||
// proxyPort: z.int().positive().optional(),
|
// proxyPort: z.int().positive().optional(),
|
||||||
"destination-port": z.int().positive().optional(),
|
"destination-port": z.int().positive().optional(),
|
||||||
destination: z.string().min(1).optional(),
|
destination: z.string().min(1).optional(),
|
||||||
// enabled: z.boolean().default(true),
|
enabled: z.boolean().default(true),
|
||||||
"tcp-ports": portRangeStringSchema.optional().default("*"),
|
"tcp-ports": portRangeStringSchema.optional().default("*"),
|
||||||
"udp-ports": portRangeStringSchema.optional().default("*"),
|
"udp-ports": portRangeStringSchema.optional().default("*"),
|
||||||
"disable-icmp": z.boolean().optional().default(false),
|
"disable-icmp": z.boolean().optional().default(false),
|
||||||
|
|||||||
@@ -14,8 +14,6 @@ import {
|
|||||||
} from "@server/db";
|
} from "@server/db";
|
||||||
import logger from "@server/logger";
|
import logger from "@server/logger";
|
||||||
import { removeTargets } from "@server/routers/newt/targets";
|
import { removeTargets } from "@server/routers/newt/targets";
|
||||||
import createHttpError from "http-errors";
|
|
||||||
import HttpCode from "@server/types/HttpCode";
|
|
||||||
|
|
||||||
export type DeleteResourceResult = {
|
export type DeleteResourceResult = {
|
||||||
deletedResource: Resource;
|
deletedResource: Resource;
|
||||||
@@ -117,10 +115,10 @@ export async function runResourceDeleteSideEffects(
|
|||||||
.limit(1);
|
.limit(1);
|
||||||
|
|
||||||
if (!site) {
|
if (!site) {
|
||||||
throw createHttpError(
|
logger.debug(
|
||||||
HttpCode.NOT_FOUND,
|
`Site with ID ${target.siteId} not found during resource delete side effects; skipping target removal`
|
||||||
`Site with ID ${target.siteId} not found`
|
|
||||||
);
|
);
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (site.pubKey && site.type === "newt") {
|
if (site.pubKey && site.type === "newt") {
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { and, eq, sql } from "drizzle-orm";
|
import { and, eq, inArray, sql } from "drizzle-orm";
|
||||||
import {
|
import {
|
||||||
db,
|
db,
|
||||||
|
resources,
|
||||||
siteNetworks,
|
siteNetworks,
|
||||||
siteResources,
|
siteResources,
|
||||||
targets,
|
targets,
|
||||||
@@ -97,6 +98,64 @@ export function exceedsSiteAssociatedResourceDeleteLimit(
|
|||||||
return resourceCount > MAX_SITE_ASSOCIATED_RESOURCES_FOR_BULK_DELETE;
|
return resourceCount > MAX_SITE_ASSOCIATED_RESOURCES_FOR_BULK_DELETE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export async function getPendingResourceIdsForSite(
|
||||||
|
siteId: number,
|
||||||
|
trx: Transaction | typeof db = db
|
||||||
|
): Promise<number[]> {
|
||||||
|
const resourceIds = await getResourceIdsForSite(siteId, trx);
|
||||||
|
if (resourceIds.length === 0) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
const rows = await trx
|
||||||
|
.select({ resourceId: resources.resourceId })
|
||||||
|
.from(resources)
|
||||||
|
.where(
|
||||||
|
and(
|
||||||
|
inArray(resources.resourceId, resourceIds),
|
||||||
|
eq(resources.status, "pending")
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
return rows.map((row) => row.resourceId);
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function getPendingSiteResourceIdsForSite(
|
||||||
|
siteId: number,
|
||||||
|
orgId: string,
|
||||||
|
trx: Transaction | typeof db = db
|
||||||
|
): Promise<number[]> {
|
||||||
|
const siteResourceIds = await getSiteResourceIdsForSite(siteId, orgId, trx);
|
||||||
|
if (siteResourceIds.length === 0) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
const rows = await trx
|
||||||
|
.select({ siteResourceId: siteResources.siteResourceId })
|
||||||
|
.from(siteResources)
|
||||||
|
.where(
|
||||||
|
and(
|
||||||
|
inArray(siteResources.siteResourceId, siteResourceIds),
|
||||||
|
eq(siteResources.status, "pending")
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
return rows.map((row) => row.siteResourceId);
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function getPendingAssociatedResourceCountForSite(
|
||||||
|
siteId: number,
|
||||||
|
orgId: string,
|
||||||
|
trx: Transaction | typeof db = db
|
||||||
|
): Promise<number> {
|
||||||
|
const [resourceIds, siteResourceIds] = await Promise.all([
|
||||||
|
getPendingResourceIdsForSite(siteId, trx),
|
||||||
|
getPendingSiteResourceIdsForSite(siteId, orgId, trx)
|
||||||
|
]);
|
||||||
|
|
||||||
|
return resourceIds.length + siteResourceIds.length;
|
||||||
|
}
|
||||||
|
|
||||||
export async function deleteAssociatedResourcesForSite(
|
export async function deleteAssociatedResourcesForSite(
|
||||||
siteId: number,
|
siteId: number,
|
||||||
orgId: string,
|
orgId: string,
|
||||||
@@ -105,12 +164,32 @@ export async function deleteAssociatedResourcesForSite(
|
|||||||
const resourceIds = await getResourceIdsForSite(siteId, trx);
|
const resourceIds = await getResourceIdsForSite(siteId, trx);
|
||||||
const siteResourceIds = await getSiteResourceIdsForSite(siteId, orgId, trx);
|
const siteResourceIds = await getSiteResourceIdsForSite(siteId, orgId, trx);
|
||||||
|
|
||||||
const [resources, siteResourcesDeleted] = await Promise.all([
|
const [deletedResources, siteResourcesDeleted] = await Promise.all([
|
||||||
performDeleteResources(resourceIds, trx),
|
performDeleteResources(resourceIds, trx),
|
||||||
performDeleteSiteResources(siteResourceIds, trx)
|
performDeleteSiteResources(siteResourceIds, trx)
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return { resources, siteResources: siteResourcesDeleted };
|
return { resources: deletedResources, siteResources: siteResourcesDeleted };
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function deletePendingAssociatedResourcesForSite(
|
||||||
|
siteId: number,
|
||||||
|
orgId: string,
|
||||||
|
trx: Transaction | typeof db = db
|
||||||
|
): Promise<DeleteSiteAssociatedResourcesSideEffects> {
|
||||||
|
const resourceIds = await getPendingResourceIdsForSite(siteId, trx);
|
||||||
|
const siteResourceIds = await getPendingSiteResourceIdsForSite(
|
||||||
|
siteId,
|
||||||
|
orgId,
|
||||||
|
trx
|
||||||
|
);
|
||||||
|
|
||||||
|
const [deletedResources, siteResourcesDeleted] = await Promise.all([
|
||||||
|
performDeleteResources(resourceIds, trx),
|
||||||
|
performDeleteSiteResources(siteResourceIds, trx)
|
||||||
|
]);
|
||||||
|
|
||||||
|
return { resources: deletedResources, siteResources: siteResourcesDeleted };
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function runDeleteSiteAssociatedResourcesSideEffects(
|
export async function runDeleteSiteAssociatedResourcesSideEffects(
|
||||||
|
|||||||
@@ -496,6 +496,7 @@ export function generateRemoteSubnets(
|
|||||||
): string[] {
|
): string[] {
|
||||||
const remoteSubnets = allSiteResources
|
const remoteSubnets = allSiteResources
|
||||||
.filter((sr) => {
|
.filter((sr) => {
|
||||||
|
if (!sr.enabled) return false;
|
||||||
if (!sr.destination) return false;
|
if (!sr.destination) return false;
|
||||||
|
|
||||||
if (sr.mode === "cidr") {
|
if (sr.mode === "cidr") {
|
||||||
@@ -530,6 +531,7 @@ export function generateAliasConfig(allSiteResources: SiteResource[]): Alias[] {
|
|||||||
return allSiteResources
|
return allSiteResources
|
||||||
.filter(
|
.filter(
|
||||||
(sr) =>
|
(sr) =>
|
||||||
|
sr.enabled &&
|
||||||
sr.aliasAddress &&
|
sr.aliasAddress &&
|
||||||
((sr.alias && (sr.mode == "host" || sr.mode == "ssh")) ||
|
((sr.alias && (sr.mode == "host" || sr.mode == "ssh")) ||
|
||||||
(sr.fullDomain && sr.mode == "http"))
|
(sr.fullDomain && sr.mode == "http"))
|
||||||
@@ -662,6 +664,13 @@ export async function generateSubnetProxyTargetV2(
|
|||||||
subnet: string | null;
|
subnet: string | null;
|
||||||
}[]
|
}[]
|
||||||
): Promise<SubnetProxyTargetV2[] | undefined> {
|
): Promise<SubnetProxyTargetV2[] | undefined> {
|
||||||
|
if (!siteResource.enabled) {
|
||||||
|
logger.debug(
|
||||||
|
`Site resource ${siteResource.siteResourceId} is disabled, skipping target generation.`
|
||||||
|
);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (clients.length === 0) {
|
if (clients.length === 0) {
|
||||||
logger.debug(
|
logger.debug(
|
||||||
`No clients have access to site resource ${siteResource.siteResourceId}, skipping target generation.`
|
`No clients have access to site resource ${siteResource.siteResourceId}, skipping target generation.`
|
||||||
|
|||||||
@@ -1561,9 +1561,19 @@ export async function handleMessagingForUpdatedSiteResource(
|
|||||||
updatedSiteResource.udpPortRangeString ||
|
updatedSiteResource.udpPortRangeString ||
|
||||||
existingSiteResource.disableIcmp !==
|
existingSiteResource.disableIcmp !==
|
||||||
updatedSiteResource.disableIcmp);
|
updatedSiteResource.disableIcmp);
|
||||||
|
// Toggling enabled on/off doesn't change any of the fields above, but it
|
||||||
|
// does change whether targets/peer data should exist at all, so it needs
|
||||||
|
// to drive the same old->new diff machinery: going enabled->disabled
|
||||||
|
// diffs "real data" against "nothing" (a remove), and disabled->enabled
|
||||||
|
// diffs "nothing" against "real data" (an add). generateSubnetProxyTargetV2/
|
||||||
|
// generateRemoteSubnets/generateAliasConfig already return nothing for a
|
||||||
|
// disabled resource, so no other changes are needed here.
|
||||||
|
const enabledChanged =
|
||||||
|
existingSiteResource &&
|
||||||
|
existingSiteResource.enabled !== updatedSiteResource.enabled;
|
||||||
|
|
||||||
logger.debug(
|
logger.debug(
|
||||||
`handleMessagingForUpdatedSiteResource: change flags destinationChanged=${Boolean(destinationChanged)} destinationPortChanged=${Boolean(destinationPortChanged)} aliasChanged=${Boolean(aliasChanged)} fullDomainChanged=${Boolean(fullDomainChanged)} sslChanged=${Boolean(sslChanged)} portRangesChanged=${Boolean(portRangesChanged)}`
|
`handleMessagingForUpdatedSiteResource: change flags destinationChanged=${Boolean(destinationChanged)} destinationPortChanged=${Boolean(destinationPortChanged)} aliasChanged=${Boolean(aliasChanged)} fullDomainChanged=${Boolean(fullDomainChanged)} sslChanged=${Boolean(sslChanged)} portRangesChanged=${Boolean(portRangesChanged)} enabledChanged=${Boolean(enabledChanged)}`
|
||||||
);
|
);
|
||||||
|
|
||||||
// if the existingSiteResource is undefined (new resource) we don't need to do anything here, the rebuild above handled it all
|
// if the existingSiteResource is undefined (new resource) we don't need to do anything here, the rebuild above handled it all
|
||||||
@@ -1574,14 +1584,16 @@ export async function handleMessagingForUpdatedSiteResource(
|
|||||||
fullDomainChanged ||
|
fullDomainChanged ||
|
||||||
sslChanged ||
|
sslChanged ||
|
||||||
portRangesChanged ||
|
portRangesChanged ||
|
||||||
destinationPortChanged
|
destinationPortChanged ||
|
||||||
|
enabledChanged
|
||||||
) {
|
) {
|
||||||
const shouldUpdateTargets =
|
const shouldUpdateTargets =
|
||||||
destinationChanged ||
|
destinationChanged ||
|
||||||
sslChanged ||
|
sslChanged ||
|
||||||
portRangesChanged ||
|
portRangesChanged ||
|
||||||
fullDomainChanged ||
|
fullDomainChanged ||
|
||||||
destinationPortChanged;
|
destinationPortChanged ||
|
||||||
|
enabledChanged;
|
||||||
|
|
||||||
logger.debug(
|
logger.debug(
|
||||||
`handleMessagingForUpdatedSiteResource: entering unchanged-site update path shouldUpdateTargets=${shouldUpdateTargets}`
|
`handleMessagingForUpdatedSiteResource: entering unchanged-site update path shouldUpdateTargets=${shouldUpdateTargets}`
|
||||||
@@ -1657,9 +1669,11 @@ export async function handleMessagingForUpdatedSiteResource(
|
|||||||
peerDataUpdateBatch.push({
|
peerDataUpdateBatch.push({
|
||||||
clientId: client.clientId,
|
clientId: client.clientId,
|
||||||
siteId,
|
siteId,
|
||||||
remoteSubnets: destinationChanged
|
remoteSubnets:
|
||||||
|
destinationChanged || enabledChanged
|
||||||
? {
|
? {
|
||||||
oldRemoteSubnets: !oldDestinationStillInUseBySite
|
oldRemoteSubnets:
|
||||||
|
!oldDestinationStillInUseBySite
|
||||||
? generateRemoteSubnets([
|
? generateRemoteSubnets([
|
||||||
existingSiteResource
|
existingSiteResource
|
||||||
])
|
])
|
||||||
@@ -1670,7 +1684,7 @@ export async function handleMessagingForUpdatedSiteResource(
|
|||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
aliases:
|
aliases:
|
||||||
aliasChanged || fullDomainChanged // the full domain is sent down as an alias
|
aliasChanged || fullDomainChanged || enabledChanged // the full domain is sent down as an alias
|
||||||
? {
|
? {
|
||||||
oldAliases: generateAliasConfig([
|
oldAliases: generateAliasConfig([
|
||||||
existingSiteResource
|
existingSiteResource
|
||||||
|
|||||||
+8
-19
@@ -4,33 +4,22 @@ export const registry = new OpenAPIRegistry();
|
|||||||
|
|
||||||
export enum OpenAPITags {
|
export enum OpenAPITags {
|
||||||
Site = "Site",
|
Site = "Site",
|
||||||
PublicResource = "Public Resource",
|
|
||||||
Target = "Resource Target",
|
|
||||||
PrivateResource = "Private Resource",
|
|
||||||
Client = "Client",
|
|
||||||
Org = "Organization",
|
Org = "Organization",
|
||||||
Domain = "Domain",
|
PublicResource = "Public Resource",
|
||||||
PublicResourcePolicy = "Public Resource Policy",
|
PrivateResource = "Private Resource",
|
||||||
|
Policy = "Policy",
|
||||||
Role = "Role",
|
Role = "Role",
|
||||||
User = "User",
|
User = "User",
|
||||||
Rule = "Rule",
|
|
||||||
Invitation = "User Invitation",
|
Invitation = "User Invitation",
|
||||||
|
Target = "Resource Target",
|
||||||
|
Rule = "Rule",
|
||||||
AccessToken = "Access Token",
|
AccessToken = "Access Token",
|
||||||
GlobalIdp = "Identity Provider (Global)",
|
GlobalIdp = "Identity Provider (Global)",
|
||||||
OrgIdp = "Identity Provider (Organization Only)",
|
OrgIdp = "Identity Provider (Organization Only)",
|
||||||
|
Client = "Client",
|
||||||
ApiKey = "API Key",
|
ApiKey = "API Key",
|
||||||
|
Domain = "Domain",
|
||||||
Blueprint = "Blueprint",
|
Blueprint = "Blueprint",
|
||||||
Ssh = "SSH",
|
Ssh = "SSH",
|
||||||
Logs = "Logs",
|
Logs = "Logs"
|
||||||
EventStreamingDestination = "Event Streaming Destination",
|
|
||||||
AlertRule = "Alert Rule",
|
|
||||||
HealthCheck = "Health Check",
|
|
||||||
PublicResourcePolicyLegacy = "Public Resource Policy (Legacy)",
|
|
||||||
PublicResourceLegacy = "Public Resource (Legacy)",
|
|
||||||
PrivateResourceLegacy = "Private Resource (Legacy)"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Order here controls the order tags are displayed in Swagger UI
|
|
||||||
export const openApiTags = Object.values(OpenAPITags).map((name) => ({
|
|
||||||
name
|
|
||||||
}));
|
|
||||||
|
|||||||
@@ -191,7 +191,7 @@ registry.registerPath({
|
|||||||
method: "put",
|
method: "put",
|
||||||
path: "/org/{orgId}/alert-rule",
|
path: "/org/{orgId}/alert-rule",
|
||||||
description: "Create an alert rule for a specific organization.",
|
description: "Create an alert rule for a specific organization.",
|
||||||
tags: [OpenAPITags.AlertRule],
|
tags: [OpenAPITags.Org],
|
||||||
request: {
|
request: {
|
||||||
params: paramsSchema,
|
params: paramsSchema,
|
||||||
body: {
|
body: {
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ registry.registerPath({
|
|||||||
method: "delete",
|
method: "delete",
|
||||||
path: "/org/{orgId}/alert-rule/{alertRuleId}",
|
path: "/org/{orgId}/alert-rule/{alertRuleId}",
|
||||||
description: "Delete an alert rule for a specific organization.",
|
description: "Delete an alert rule for a specific organization.",
|
||||||
tags: [OpenAPITags.AlertRule],
|
tags: [OpenAPITags.Org],
|
||||||
request: {
|
request: {
|
||||||
params: paramsSchema
|
params: paramsSchema
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ registry.registerPath({
|
|||||||
method: "get",
|
method: "get",
|
||||||
path: "/org/{orgId}/alert-rule/{alertRuleId}",
|
path: "/org/{orgId}/alert-rule/{alertRuleId}",
|
||||||
description: "Get a specific alert rule for an organization.",
|
description: "Get a specific alert rule for an organization.",
|
||||||
tags: [OpenAPITags.AlertRule],
|
tags: [OpenAPITags.Org],
|
||||||
request: {
|
request: {
|
||||||
params: paramsSchema
|
params: paramsSchema
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ registry.registerPath({
|
|||||||
method: "get",
|
method: "get",
|
||||||
path: "/org/{orgId}/alert-rules",
|
path: "/org/{orgId}/alert-rules",
|
||||||
description: "List all alert rules for a specific organization.",
|
description: "List all alert rules for a specific organization.",
|
||||||
tags: [OpenAPITags.AlertRule],
|
tags: [OpenAPITags.Org],
|
||||||
request: {
|
request: {
|
||||||
query: querySchema,
|
query: querySchema,
|
||||||
params: paramsSchema
|
params: paramsSchema
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ registry.registerPath({
|
|||||||
method: "post",
|
method: "post",
|
||||||
path: "/org/{orgId}/alert-rule/{alertRuleId}",
|
path: "/org/{orgId}/alert-rule/{alertRuleId}",
|
||||||
description: "Update an alert rule for a specific organization.",
|
description: "Update an alert rule for a specific organization.",
|
||||||
tags: [OpenAPITags.AlertRule],
|
tags: [OpenAPITags.Org],
|
||||||
request: {
|
request: {
|
||||||
params: paramsSchema,
|
params: paramsSchema,
|
||||||
body: {
|
body: {
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ registry.registerPath({
|
|||||||
method: "put",
|
method: "put",
|
||||||
path: "/org/{orgId}/event-streaming-destination",
|
path: "/org/{orgId}/event-streaming-destination",
|
||||||
description: "Create an event streaming destination for a specific organization.",
|
description: "Create an event streaming destination for a specific organization.",
|
||||||
tags: [OpenAPITags.EventStreamingDestination],
|
tags: [OpenAPITags.Org],
|
||||||
request: {
|
request: {
|
||||||
params: paramsSchema,
|
params: paramsSchema,
|
||||||
body: {
|
body: {
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ registry.registerPath({
|
|||||||
path: "/org/{orgId}/event-streaming-destination/{destinationId}",
|
path: "/org/{orgId}/event-streaming-destination/{destinationId}",
|
||||||
description:
|
description:
|
||||||
"Delete an event streaming destination for a specific organization.",
|
"Delete an event streaming destination for a specific organization.",
|
||||||
tags: [OpenAPITags.EventStreamingDestination],
|
tags: [OpenAPITags.Org],
|
||||||
request: {
|
request: {
|
||||||
params: paramsSchema
|
params: paramsSchema
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ registry.registerPath({
|
|||||||
path: "/org/{orgId}/event-streaming-destination",
|
path: "/org/{orgId}/event-streaming-destination",
|
||||||
description:
|
description:
|
||||||
"List all event streaming destinations for a specific organization.",
|
"List all event streaming destinations for a specific organization.",
|
||||||
tags: [OpenAPITags.EventStreamingDestination],
|
tags: [OpenAPITags.Org],
|
||||||
request: {
|
request: {
|
||||||
query: querySchema,
|
query: querySchema,
|
||||||
params: paramsSchema
|
params: paramsSchema
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ registry.registerPath({
|
|||||||
method: "post",
|
method: "post",
|
||||||
path: "/org/{orgId}/event-streaming-destination/{destinationId}",
|
path: "/org/{orgId}/event-streaming-destination/{destinationId}",
|
||||||
description: "Update an event streaming destination for a specific organization.",
|
description: "Update an event streaming destination for a specific organization.",
|
||||||
tags: [OpenAPITags.EventStreamingDestination],
|
tags: [OpenAPITags.Org],
|
||||||
request: {
|
request: {
|
||||||
params: paramsSchema,
|
params: paramsSchema,
|
||||||
body: {
|
body: {
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ registry.registerPath({
|
|||||||
method: "put",
|
method: "put",
|
||||||
path: "/org/{orgId}/health-check",
|
path: "/org/{orgId}/health-check",
|
||||||
description: "Create a health check for a specific organization.",
|
description: "Create a health check for a specific organization.",
|
||||||
tags: [OpenAPITags.HealthCheck],
|
tags: [OpenAPITags.Org],
|
||||||
request: {
|
request: {
|
||||||
params: paramsSchema,
|
params: paramsSchema,
|
||||||
body: {
|
body: {
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ registry.registerPath({
|
|||||||
method: "delete",
|
method: "delete",
|
||||||
path: "/org/{orgId}/health-check/{healthCheckId}",
|
path: "/org/{orgId}/health-check/{healthCheckId}",
|
||||||
description: "Delete a health check for a specific organization.",
|
description: "Delete a health check for a specific organization.",
|
||||||
tags: [OpenAPITags.HealthCheck],
|
tags: [OpenAPITags.Org],
|
||||||
request: {
|
request: {
|
||||||
params: paramsSchema
|
params: paramsSchema
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ registry.registerPath({
|
|||||||
method: "get",
|
method: "get",
|
||||||
path: "/org/{orgId}/health-checks",
|
path: "/org/{orgId}/health-checks",
|
||||||
description: "List health checks for an organization.",
|
description: "List health checks for an organization.",
|
||||||
tags: [OpenAPITags.HealthCheck],
|
tags: [OpenAPITags.Org],
|
||||||
request: {
|
request: {
|
||||||
params: paramsSchema,
|
params: paramsSchema,
|
||||||
query: querySchema
|
query: querySchema
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ registry.registerPath({
|
|||||||
method: "post",
|
method: "post",
|
||||||
path: "/org/{orgId}/health-check/{healthCheckId}",
|
path: "/org/{orgId}/health-check/{healthCheckId}",
|
||||||
description: "Update a health check for a specific organization.",
|
description: "Update a health check for a specific organization.",
|
||||||
tags: [OpenAPITags.HealthCheck],
|
tags: [OpenAPITags.Org],
|
||||||
request: {
|
request: {
|
||||||
params: paramsSchema,
|
params: paramsSchema,
|
||||||
body: {
|
body: {
|
||||||
|
|||||||
@@ -16,10 +16,6 @@ import * as org from "#private/routers/org";
|
|||||||
import * as logs from "#private/routers/auditLogs";
|
import * as logs from "#private/routers/auditLogs";
|
||||||
import * as alertEvents from "#private/routers/alertEvents";
|
import * as alertEvents from "#private/routers/alertEvents";
|
||||||
import * as certificates from "#private/routers/certificates";
|
import * as certificates from "#private/routers/certificates";
|
||||||
import * as policy from "#private/routers/policy";
|
|
||||||
import * as eventStreamingDestination from "#private/routers/eventStreamingDestination";
|
|
||||||
import * as alertRule from "#private/routers/alertRule";
|
|
||||||
import * as healthChecks from "#private/routers/healthChecks";
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
verifyApiKeyHasAction,
|
verifyApiKeyHasAction,
|
||||||
@@ -28,7 +24,6 @@ import {
|
|||||||
verifyApiKeyIdpAccess,
|
verifyApiKeyIdpAccess,
|
||||||
verifyApiKeyRoleAccess,
|
verifyApiKeyRoleAccess,
|
||||||
verifyApiKeyUserAccess,
|
verifyApiKeyUserAccess,
|
||||||
verifyApiKeyResourcePolicyAccess,
|
|
||||||
verifyLimits
|
verifyLimits
|
||||||
} from "@server/middlewares";
|
} from "@server/middlewares";
|
||||||
import * as user from "#private/routers/user";
|
import * as user from "#private/routers/user";
|
||||||
@@ -220,147 +215,3 @@ authenticated.delete(
|
|||||||
logActionAudit(ActionsEnum.removeUserRole),
|
logActionAudit(ActionsEnum.removeUserRole),
|
||||||
user.removeUserRole
|
user.removeUserRole
|
||||||
);
|
);
|
||||||
|
|
||||||
authenticated.get(
|
|
||||||
["/org/:orgId/resource-policies", "/org/:orgId/public-resource-policies"],
|
|
||||||
verifyValidLicense,
|
|
||||||
verifyValidSubscription(tierMatrix.resourcePolicies),
|
|
||||||
verifyApiKeyOrgAccess,
|
|
||||||
verifyLimits,
|
|
||||||
verifyApiKeyHasAction(ActionsEnum.listResourcePolicies),
|
|
||||||
logActionAudit(ActionsEnum.listResourcePolicies),
|
|
||||||
policy.listResourcePolicies
|
|
||||||
);
|
|
||||||
|
|
||||||
authenticated.post(
|
|
||||||
["/org/:orgId/resource-policy", "/org/:orgId/public-resource-policy"],
|
|
||||||
verifyValidLicense,
|
|
||||||
verifyValidSubscription(tierMatrix.resourcePolicies),
|
|
||||||
verifyApiKeyOrgAccess,
|
|
||||||
verifyLimits,
|
|
||||||
verifyApiKeyHasAction(ActionsEnum.createResourcePolicy),
|
|
||||||
logActionAudit(ActionsEnum.createResourcePolicy),
|
|
||||||
policy.createResourcePolicy
|
|
||||||
);
|
|
||||||
|
|
||||||
authenticated.delete(
|
|
||||||
["/resource-policy/:resourcePolicyId", "/public-resource-policy/:resourcePolicyId"],
|
|
||||||
verifyApiKeyResourcePolicyAccess,
|
|
||||||
verifyValidLicense,
|
|
||||||
verifyValidSubscription(tierMatrix.resourcePolicies),
|
|
||||||
verifyLimits,
|
|
||||||
verifyApiKeyHasAction(ActionsEnum.deleteResourcePolicy),
|
|
||||||
logActionAudit(ActionsEnum.deleteResourcePolicy),
|
|
||||||
policy.deleteResourcePolicy
|
|
||||||
);
|
|
||||||
|
|
||||||
authenticated.put(
|
|
||||||
"/org/:orgId/event-streaming-destination",
|
|
||||||
verifyApiKeyOrgAccess,
|
|
||||||
verifyLimits,
|
|
||||||
verifyApiKeyHasAction(ActionsEnum.createEventStreamingDestination),
|
|
||||||
logActionAudit(ActionsEnum.createEventStreamingDestination),
|
|
||||||
eventStreamingDestination.createEventStreamingDestination
|
|
||||||
);
|
|
||||||
|
|
||||||
authenticated.post(
|
|
||||||
"/org/:orgId/event-streaming-destination/:destinationId",
|
|
||||||
verifyApiKeyOrgAccess,
|
|
||||||
verifyLimits,
|
|
||||||
verifyApiKeyHasAction(ActionsEnum.updateEventStreamingDestination),
|
|
||||||
logActionAudit(ActionsEnum.updateEventStreamingDestination),
|
|
||||||
eventStreamingDestination.updateEventStreamingDestination
|
|
||||||
);
|
|
||||||
|
|
||||||
authenticated.delete(
|
|
||||||
"/org/:orgId/event-streaming-destination/:destinationId",
|
|
||||||
verifyApiKeyOrgAccess,
|
|
||||||
verifyApiKeyHasAction(ActionsEnum.deleteEventStreamingDestination),
|
|
||||||
logActionAudit(ActionsEnum.deleteEventStreamingDestination),
|
|
||||||
eventStreamingDestination.deleteEventStreamingDestination
|
|
||||||
);
|
|
||||||
|
|
||||||
authenticated.get(
|
|
||||||
"/org/:orgId/event-streaming-destinations",
|
|
||||||
verifyApiKeyOrgAccess,
|
|
||||||
verifyApiKeyHasAction(ActionsEnum.listEventStreamingDestinations),
|
|
||||||
eventStreamingDestination.listEventStreamingDestinations
|
|
||||||
);
|
|
||||||
|
|
||||||
authenticated.put(
|
|
||||||
"/org/:orgId/alert-rule",
|
|
||||||
verifyApiKeyOrgAccess,
|
|
||||||
verifyLimits,
|
|
||||||
verifyApiKeyHasAction(ActionsEnum.createAlertRule),
|
|
||||||
logActionAudit(ActionsEnum.createAlertRule),
|
|
||||||
alertRule.createAlertRule
|
|
||||||
);
|
|
||||||
|
|
||||||
authenticated.post(
|
|
||||||
"/org/:orgId/alert-rule/:alertRuleId",
|
|
||||||
verifyApiKeyOrgAccess,
|
|
||||||
verifyApiKeyHasAction(ActionsEnum.updateAlertRule),
|
|
||||||
logActionAudit(ActionsEnum.updateAlertRule),
|
|
||||||
alertRule.updateAlertRule
|
|
||||||
);
|
|
||||||
|
|
||||||
authenticated.delete(
|
|
||||||
"/org/:orgId/alert-rule/:alertRuleId",
|
|
||||||
verifyApiKeyOrgAccess,
|
|
||||||
verifyApiKeyHasAction(ActionsEnum.deleteAlertRule),
|
|
||||||
logActionAudit(ActionsEnum.deleteAlertRule),
|
|
||||||
alertRule.deleteAlertRule
|
|
||||||
);
|
|
||||||
|
|
||||||
authenticated.get(
|
|
||||||
"/org/:orgId/alert-rules",
|
|
||||||
verifyApiKeyOrgAccess,
|
|
||||||
verifyApiKeyHasAction(ActionsEnum.listAlertRules),
|
|
||||||
alertRule.listAlertRules
|
|
||||||
);
|
|
||||||
|
|
||||||
authenticated.get(
|
|
||||||
"/org/:orgId/alert-rule/:alertRuleId",
|
|
||||||
verifyApiKeyOrgAccess,
|
|
||||||
verifyApiKeyHasAction(ActionsEnum.getAlertRule),
|
|
||||||
alertRule.getAlertRule
|
|
||||||
);
|
|
||||||
|
|
||||||
authenticated.get(
|
|
||||||
"/org/:orgId/health-checks",
|
|
||||||
verifyApiKeyOrgAccess,
|
|
||||||
verifyApiKeyHasAction(ActionsEnum.listHealthChecks),
|
|
||||||
healthChecks.listHealthChecks
|
|
||||||
);
|
|
||||||
|
|
||||||
authenticated.put(
|
|
||||||
"/org/:orgId/health-check",
|
|
||||||
verifyApiKeyOrgAccess,
|
|
||||||
verifyLimits,
|
|
||||||
verifyApiKeyHasAction(ActionsEnum.createHealthCheck),
|
|
||||||
logActionAudit(ActionsEnum.createHealthCheck),
|
|
||||||
healthChecks.createHealthCheck
|
|
||||||
);
|
|
||||||
|
|
||||||
authenticated.post(
|
|
||||||
"/org/:orgId/health-check/:healthCheckId",
|
|
||||||
verifyApiKeyOrgAccess,
|
|
||||||
verifyApiKeyHasAction(ActionsEnum.updateHealthCheck),
|
|
||||||
logActionAudit(ActionsEnum.updateHealthCheck),
|
|
||||||
healthChecks.updateHealthCheck
|
|
||||||
);
|
|
||||||
|
|
||||||
authenticated.delete(
|
|
||||||
"/org/:orgId/health-check/:healthCheckId",
|
|
||||||
verifyApiKeyOrgAccess,
|
|
||||||
verifyApiKeyHasAction(ActionsEnum.deleteHealthCheck),
|
|
||||||
logActionAudit(ActionsEnum.deleteHealthCheck),
|
|
||||||
healthChecks.deleteHealthCheck
|
|
||||||
);
|
|
||||||
|
|
||||||
authenticated.get(
|
|
||||||
"/org/:orgId/health-check/:healthCheckId/status-history",
|
|
||||||
verifyApiKeyOrgAccess,
|
|
||||||
verifyApiKeyHasAction(ActionsEnum.getTarget),
|
|
||||||
healthChecks.getHealthCheckStatusHistory
|
|
||||||
);
|
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ registry.registerPath({
|
|||||||
method: "post",
|
method: "post",
|
||||||
path: "/org/{orgId}/resource-policy",
|
path: "/org/{orgId}/resource-policy",
|
||||||
description: "Create a resource policy.",
|
description: "Create a resource policy.",
|
||||||
tags: [OpenAPITags.PublicResourcePolicy],
|
tags: [OpenAPITags.Org, OpenAPITags.Policy],
|
||||||
request: {
|
request: {
|
||||||
params: createResourcePolicyParamsSchema,
|
params: createResourcePolicyParamsSchema,
|
||||||
body: {
|
body: {
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ registry.registerPath({
|
|||||||
method: "delete",
|
method: "delete",
|
||||||
path: "/resource-policy/{resourcePolicyId}",
|
path: "/resource-policy/{resourcePolicyId}",
|
||||||
description: "Delete a resource policy.",
|
description: "Delete a resource policy.",
|
||||||
tags: [OpenAPITags.PublicResourcePolicy],
|
tags: [OpenAPITags.Policy],
|
||||||
request: {
|
request: {
|
||||||
params: deleteResourcePolicySchema
|
params: deleteResourcePolicySchema
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ registry.registerPath({
|
|||||||
method: "get",
|
method: "get",
|
||||||
path: "/org/{orgId}/resource-policies",
|
path: "/org/{orgId}/resource-policies",
|
||||||
description: "List resource policies for an organization.",
|
description: "List resource policies for an organization.",
|
||||||
tags: [OpenAPITags.PublicResourcePolicy],
|
tags: [OpenAPITags.Org, OpenAPITags.Policy],
|
||||||
request: {
|
request: {
|
||||||
params: z.object({
|
params: z.object({
|
||||||
orgId: z.string()
|
orgId: z.string()
|
||||||
|
|||||||
@@ -44,39 +44,6 @@ registry.registerPath({
|
|||||||
method: "post",
|
method: "post",
|
||||||
path: "/resource/{resourceId}/access-token",
|
path: "/resource/{resourceId}/access-token",
|
||||||
description: "Generate a new access token for a resource.",
|
description: "Generate a new access token for a resource.",
|
||||||
tags: [OpenAPITags.PublicResourceLegacy],
|
|
||||||
request: {
|
|
||||||
params: generateAccssTokenParamsSchema,
|
|
||||||
body: {
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: generateAccessTokenBodySchema
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
responses: {
|
|
||||||
200: {
|
|
||||||
description: "Successful response",
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: z.object({
|
|
||||||
data: z.record(z.string(), z.any()).nullable(),
|
|
||||||
success: z.boolean(),
|
|
||||||
error: z.boolean(),
|
|
||||||
message: z.string(),
|
|
||||||
status: z.number()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "post",
|
|
||||||
path: "/public-resource/{resourceId}/access-token",
|
|
||||||
description: "Generate a new access token for a resource.",
|
|
||||||
tags: [OpenAPITags.PublicResource, OpenAPITags.AccessToken],
|
tags: [OpenAPITags.PublicResource, OpenAPITags.AccessToken],
|
||||||
request: {
|
request: {
|
||||||
params: generateAccssTokenParamsSchema,
|
params: generateAccssTokenParamsSchema,
|
||||||
|
|||||||
@@ -151,35 +151,6 @@ registry.registerPath({
|
|||||||
method: "get",
|
method: "get",
|
||||||
path: "/resource/{resourceId}/access-tokens",
|
path: "/resource/{resourceId}/access-tokens",
|
||||||
description: "List all access tokens for a resource.",
|
description: "List all access tokens for a resource.",
|
||||||
tags: [OpenAPITags.PublicResourceLegacy],
|
|
||||||
request: {
|
|
||||||
params: z.object({
|
|
||||||
resourceId: z.number()
|
|
||||||
}),
|
|
||||||
query: listAccessTokensSchema
|
|
||||||
},
|
|
||||||
responses: {
|
|
||||||
200: {
|
|
||||||
description: "Successful response",
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: z.object({
|
|
||||||
data: z.record(z.string(), z.any()).nullable(),
|
|
||||||
success: z.boolean(),
|
|
||||||
error: z.boolean(),
|
|
||||||
message: z.string(),
|
|
||||||
status: z.number()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "get",
|
|
||||||
path: "/public-resource/{resourceId}/access-tokens",
|
|
||||||
description: "List all access tokens for a resource.",
|
|
||||||
tags: [OpenAPITags.PublicResource, OpenAPITags.AccessToken],
|
tags: [OpenAPITags.PublicResource, OpenAPITags.AccessToken],
|
||||||
request: {
|
request: {
|
||||||
params: z.object({
|
params: z.object({
|
||||||
|
|||||||
@@ -248,6 +248,22 @@ authenticated.post(
|
|||||||
site.updateSite
|
site.updateSite
|
||||||
);
|
);
|
||||||
|
|
||||||
|
authenticated.post(
|
||||||
|
"/site/:siteId/approve",
|
||||||
|
verifySiteAccess,
|
||||||
|
verifyUserHasAction(ActionsEnum.updateSiteApprovals),
|
||||||
|
logActionAudit(ActionsEnum.updateSiteApprovals),
|
||||||
|
site.approveSite
|
||||||
|
);
|
||||||
|
|
||||||
|
authenticated.post(
|
||||||
|
"/site/:siteId/reject",
|
||||||
|
verifySiteAccess,
|
||||||
|
verifyUserHasAction(ActionsEnum.updateSiteApprovals),
|
||||||
|
logActionAudit(ActionsEnum.updateSiteApprovals),
|
||||||
|
site.rejectSite
|
||||||
|
);
|
||||||
|
|
||||||
authenticated.delete(
|
authenticated.delete(
|
||||||
"/site/:siteId",
|
"/site/:siteId",
|
||||||
verifySiteAccess,
|
verifySiteAccess,
|
||||||
|
|||||||
+25
-132
@@ -138,6 +138,7 @@ authenticated.post(
|
|||||||
logActionAudit(ActionsEnum.updateSite),
|
logActionAudit(ActionsEnum.updateSite),
|
||||||
site.updateSite
|
site.updateSite
|
||||||
);
|
);
|
||||||
|
|
||||||
authenticated.post(
|
authenticated.post(
|
||||||
"/org/:orgId/reset-bandwidth",
|
"/org/:orgId/reset-bandwidth",
|
||||||
verifyApiKeyOrgAccess,
|
verifyApiKeyOrgAccess,
|
||||||
@@ -162,7 +163,7 @@ authenticated.get(
|
|||||||
|
|
||||||
// Site Resource endpoints
|
// Site Resource endpoints
|
||||||
authenticated.put(
|
authenticated.put(
|
||||||
["/org/:orgId/site-resource", "/org/:orgId/private-resource"],
|
"/org/:orgId/site-resource",
|
||||||
verifyApiKeyOrgAccess,
|
verifyApiKeyOrgAccess,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
verifyApiKeyHasAction(ActionsEnum.createSiteResource),
|
verifyApiKeyHasAction(ActionsEnum.createSiteResource),
|
||||||
@@ -171,10 +172,7 @@ authenticated.put(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.get(
|
authenticated.get(
|
||||||
[
|
|
||||||
"/org/:orgId/site/:siteId/resources",
|
"/org/:orgId/site/:siteId/resources",
|
||||||
"/org/:orgId/site/:siteId/private-resources"
|
|
||||||
],
|
|
||||||
verifyApiKeyOrgAccess,
|
verifyApiKeyOrgAccess,
|
||||||
verifyApiKeySiteAccess,
|
verifyApiKeySiteAccess,
|
||||||
verifyApiKeyHasAction(ActionsEnum.listSiteResources),
|
verifyApiKeyHasAction(ActionsEnum.listSiteResources),
|
||||||
@@ -182,21 +180,21 @@ authenticated.get(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.get(
|
authenticated.get(
|
||||||
["/org/:orgId/site-resources", "/org/:orgId/private-resources"],
|
"/org/:orgId/site-resources",
|
||||||
verifyApiKeyOrgAccess,
|
verifyApiKeyOrgAccess,
|
||||||
verifyApiKeyHasAction(ActionsEnum.listSiteResources),
|
verifyApiKeyHasAction(ActionsEnum.listSiteResources),
|
||||||
siteResource.listAllSiteResourcesByOrg
|
siteResource.listAllSiteResourcesByOrg
|
||||||
);
|
);
|
||||||
|
|
||||||
authenticated.get(
|
authenticated.get(
|
||||||
["/site-resource/:siteResourceId", "/private-resource/:siteResourceId"],
|
"/site-resource/:siteResourceId",
|
||||||
verifyApiKeySiteResourceAccess,
|
verifyApiKeySiteResourceAccess,
|
||||||
verifyApiKeyHasAction(ActionsEnum.getSiteResource),
|
verifyApiKeyHasAction(ActionsEnum.getSiteResource),
|
||||||
siteResource.getSiteResource
|
siteResource.getSiteResource
|
||||||
);
|
);
|
||||||
|
|
||||||
authenticated.post(
|
authenticated.post(
|
||||||
["/site-resource/:siteResourceId", "/private-resource/:siteResourceId"],
|
"/site-resource/:siteResourceId",
|
||||||
verifyApiKeySiteResourceAccess,
|
verifyApiKeySiteResourceAccess,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
verifyApiKeyHasAction(ActionsEnum.updateSiteResource),
|
verifyApiKeyHasAction(ActionsEnum.updateSiteResource),
|
||||||
@@ -205,7 +203,7 @@ authenticated.post(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.delete(
|
authenticated.delete(
|
||||||
["/site-resource/:siteResourceId", "/private-resource/:siteResourceId"],
|
"/site-resource/:siteResourceId",
|
||||||
verifyApiKeySiteResourceAccess,
|
verifyApiKeySiteResourceAccess,
|
||||||
verifyApiKeyHasAction(ActionsEnum.deleteSiteResource),
|
verifyApiKeyHasAction(ActionsEnum.deleteSiteResource),
|
||||||
logActionAudit(ActionsEnum.deleteSiteResource),
|
logActionAudit(ActionsEnum.deleteSiteResource),
|
||||||
@@ -213,40 +211,28 @@ authenticated.delete(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.get(
|
authenticated.get(
|
||||||
[
|
|
||||||
"/site-resource/:siteResourceId/roles",
|
"/site-resource/:siteResourceId/roles",
|
||||||
"/private-resource/:siteResourceId/roles"
|
|
||||||
],
|
|
||||||
verifyApiKeySiteResourceAccess,
|
verifyApiKeySiteResourceAccess,
|
||||||
verifyApiKeyHasAction(ActionsEnum.listResourceRoles),
|
verifyApiKeyHasAction(ActionsEnum.listResourceRoles),
|
||||||
siteResource.listSiteResourceRoles
|
siteResource.listSiteResourceRoles
|
||||||
);
|
);
|
||||||
|
|
||||||
authenticated.get(
|
authenticated.get(
|
||||||
[
|
|
||||||
"/site-resource/:siteResourceId/users",
|
"/site-resource/:siteResourceId/users",
|
||||||
"/private-resource/:siteResourceId/users"
|
|
||||||
],
|
|
||||||
verifyApiKeySiteResourceAccess,
|
verifyApiKeySiteResourceAccess,
|
||||||
verifyApiKeyHasAction(ActionsEnum.listResourceUsers),
|
verifyApiKeyHasAction(ActionsEnum.listResourceUsers),
|
||||||
siteResource.listSiteResourceUsers
|
siteResource.listSiteResourceUsers
|
||||||
);
|
);
|
||||||
|
|
||||||
authenticated.get(
|
authenticated.get(
|
||||||
[
|
|
||||||
"/site-resource/:siteResourceId/clients",
|
"/site-resource/:siteResourceId/clients",
|
||||||
"/private-resource/:siteResourceId/clients"
|
|
||||||
],
|
|
||||||
verifyApiKeySiteResourceAccess,
|
verifyApiKeySiteResourceAccess,
|
||||||
verifyApiKeyHasAction(ActionsEnum.listResourceUsers),
|
verifyApiKeyHasAction(ActionsEnum.listResourceUsers),
|
||||||
siteResource.listSiteResourceClients
|
siteResource.listSiteResourceClients
|
||||||
);
|
);
|
||||||
|
|
||||||
authenticated.post(
|
authenticated.post(
|
||||||
[
|
|
||||||
"/site-resource/:siteResourceId/roles",
|
"/site-resource/:siteResourceId/roles",
|
||||||
"/private-resource/:siteResourceId/roles"
|
|
||||||
],
|
|
||||||
verifyApiKeySiteResourceAccess,
|
verifyApiKeySiteResourceAccess,
|
||||||
verifyApiKeyRoleAccess,
|
verifyApiKeyRoleAccess,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
@@ -256,10 +242,7 @@ authenticated.post(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.post(
|
authenticated.post(
|
||||||
[
|
|
||||||
"/site-resource/:siteResourceId/users",
|
"/site-resource/:siteResourceId/users",
|
||||||
"/private-resource/:siteResourceId/users"
|
|
||||||
],
|
|
||||||
verifyApiKeySiteResourceAccess,
|
verifyApiKeySiteResourceAccess,
|
||||||
verifyApiKeySetResourceUsers,
|
verifyApiKeySetResourceUsers,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
@@ -269,10 +252,7 @@ authenticated.post(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.post(
|
authenticated.post(
|
||||||
[
|
|
||||||
"/site-resource/:siteResourceId/roles/add",
|
"/site-resource/:siteResourceId/roles/add",
|
||||||
"/private-resource/:siteResourceId/roles/add"
|
|
||||||
],
|
|
||||||
verifyApiKeySiteResourceAccess,
|
verifyApiKeySiteResourceAccess,
|
||||||
verifyApiKeyRoleAccess,
|
verifyApiKeyRoleAccess,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
@@ -282,10 +262,7 @@ authenticated.post(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.post(
|
authenticated.post(
|
||||||
[
|
|
||||||
"/site-resource/:siteResourceId/roles/remove",
|
"/site-resource/:siteResourceId/roles/remove",
|
||||||
"/private-resource/:siteResourceId/roles/remove"
|
|
||||||
],
|
|
||||||
verifyApiKeySiteResourceAccess,
|
verifyApiKeySiteResourceAccess,
|
||||||
verifyApiKeyRoleAccess,
|
verifyApiKeyRoleAccess,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
@@ -295,10 +272,7 @@ authenticated.post(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.post(
|
authenticated.post(
|
||||||
[
|
|
||||||
"/site-resource/:siteResourceId/users/add",
|
"/site-resource/:siteResourceId/users/add",
|
||||||
"/private-resource/:siteResourceId/users/add"
|
|
||||||
],
|
|
||||||
verifyApiKeySiteResourceAccess,
|
verifyApiKeySiteResourceAccess,
|
||||||
verifyApiKeySetResourceUsers,
|
verifyApiKeySetResourceUsers,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
@@ -308,10 +282,7 @@ authenticated.post(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.post(
|
authenticated.post(
|
||||||
[
|
|
||||||
"/site-resource/:siteResourceId/users/remove",
|
"/site-resource/:siteResourceId/users/remove",
|
||||||
"/private-resource/:siteResourceId/users/remove"
|
|
||||||
],
|
|
||||||
verifyApiKeySiteResourceAccess,
|
verifyApiKeySiteResourceAccess,
|
||||||
verifyApiKeySetResourceUsers,
|
verifyApiKeySetResourceUsers,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
@@ -321,10 +292,7 @@ authenticated.post(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.post(
|
authenticated.post(
|
||||||
[
|
|
||||||
"/site-resource/:siteResourceId/clients",
|
"/site-resource/:siteResourceId/clients",
|
||||||
"/private-resource/:siteResourceId/clients"
|
|
||||||
],
|
|
||||||
verifyApiKeySiteResourceAccess,
|
verifyApiKeySiteResourceAccess,
|
||||||
verifyApiKeySetResourceClients,
|
verifyApiKeySetResourceClients,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
@@ -334,10 +302,7 @@ authenticated.post(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.post(
|
authenticated.post(
|
||||||
[
|
|
||||||
"/site-resource/:siteResourceId/clients/add",
|
"/site-resource/:siteResourceId/clients/add",
|
||||||
"/private-resource/:siteResourceId/clients/add"
|
|
||||||
],
|
|
||||||
verifyApiKeySiteResourceAccess,
|
verifyApiKeySiteResourceAccess,
|
||||||
verifyApiKeySetResourceClients,
|
verifyApiKeySetResourceClients,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
@@ -347,10 +312,7 @@ authenticated.post(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.post(
|
authenticated.post(
|
||||||
[
|
|
||||||
"/site-resource/:siteResourceId/clients/remove",
|
"/site-resource/:siteResourceId/clients/remove",
|
||||||
"/private-resource/:siteResourceId/clients/remove"
|
|
||||||
],
|
|
||||||
verifyApiKeySiteResourceAccess,
|
verifyApiKeySiteResourceAccess,
|
||||||
verifyApiKeySetResourceClients,
|
verifyApiKeySetResourceClients,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
@@ -360,7 +322,7 @@ authenticated.post(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.post(
|
authenticated.post(
|
||||||
["/client/:clientId/site-resources", "/client/:clientId/private-resources"],
|
"/client/:clientId/site-resources",
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
verifyApiKeyHasAction(ActionsEnum.setResourceUsers),
|
verifyApiKeyHasAction(ActionsEnum.setResourceUsers),
|
||||||
logActionAudit(ActionsEnum.setResourceUsers),
|
logActionAudit(ActionsEnum.setResourceUsers),
|
||||||
@@ -368,7 +330,7 @@ authenticated.post(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.put(
|
authenticated.put(
|
||||||
["/org/:orgId/resource", "/org/:orgId/public-resource"],
|
"/org/:orgId/resource",
|
||||||
verifyApiKeyOrgAccess,
|
verifyApiKeyOrgAccess,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
verifyApiKeyHasAction(ActionsEnum.createResource),
|
verifyApiKeyHasAction(ActionsEnum.createResource),
|
||||||
@@ -377,10 +339,7 @@ authenticated.put(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.put(
|
authenticated.put(
|
||||||
[
|
|
||||||
"/org/:orgId/site/:siteId/resource",
|
"/org/:orgId/site/:siteId/resource",
|
||||||
"/org/:orgId/site/:siteId/public-resource"
|
|
||||||
],
|
|
||||||
verifyApiKeyOrgAccess,
|
verifyApiKeyOrgAccess,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
verifyApiKeyHasAction(ActionsEnum.createResource),
|
verifyApiKeyHasAction(ActionsEnum.createResource),
|
||||||
@@ -389,14 +348,14 @@ authenticated.put(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.get(
|
authenticated.get(
|
||||||
["/site/:siteId/resources", "/site/:siteId/public-resources"],
|
"/site/:siteId/resources",
|
||||||
verifyApiKeySiteAccess,
|
verifyApiKeySiteAccess,
|
||||||
verifyApiKeyHasAction(ActionsEnum.listResources),
|
verifyApiKeyHasAction(ActionsEnum.listResources),
|
||||||
resource.listResources
|
resource.listResources
|
||||||
);
|
);
|
||||||
|
|
||||||
authenticated.get(
|
authenticated.get(
|
||||||
["/org/:orgId/resources", "/org/:orgId/public-resources"],
|
"/org/:orgId/resources",
|
||||||
verifyApiKeyOrgAccess,
|
verifyApiKeyOrgAccess,
|
||||||
verifyApiKeyHasAction(ActionsEnum.listResources),
|
verifyApiKeyHasAction(ActionsEnum.listResources),
|
||||||
resource.listResources
|
resource.listResources
|
||||||
@@ -484,45 +443,42 @@ authenticated.delete(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.get(
|
authenticated.get(
|
||||||
["/resource/:resourceId/roles", "/public-resource/:resourceId/roles"],
|
"/resource/:resourceId/roles",
|
||||||
verifyApiKeyResourceAccess,
|
verifyApiKeyResourceAccess,
|
||||||
verifyApiKeyHasAction(ActionsEnum.listResourceRoles),
|
verifyApiKeyHasAction(ActionsEnum.listResourceRoles),
|
||||||
resource.listResourceRoles
|
resource.listResourceRoles
|
||||||
);
|
);
|
||||||
|
|
||||||
authenticated.get(
|
authenticated.get(
|
||||||
["/resource/:resourceId/users", "/public-resource/:resourceId/users"],
|
"/resource/:resourceId/users",
|
||||||
verifyApiKeyResourceAccess,
|
verifyApiKeyResourceAccess,
|
||||||
verifyApiKeyHasAction(ActionsEnum.listResourceUsers),
|
verifyApiKeyHasAction(ActionsEnum.listResourceUsers),
|
||||||
resource.listResourceUsers
|
resource.listResourceUsers
|
||||||
);
|
);
|
||||||
|
|
||||||
authenticated.get(
|
authenticated.get(
|
||||||
["/resource/:resourceId", "/public-resource/:resourceId"],
|
"/resource/:resourceId",
|
||||||
verifyApiKeyResourceAccess,
|
verifyApiKeyResourceAccess,
|
||||||
verifyApiKeyHasAction(ActionsEnum.getResource),
|
verifyApiKeyHasAction(ActionsEnum.getResource),
|
||||||
resource.getResource
|
resource.getResource
|
||||||
);
|
);
|
||||||
|
|
||||||
authenticated.get(
|
authenticated.get(
|
||||||
[
|
|
||||||
"/resource-policy/:resourcePolicyId",
|
"/resource-policy/:resourcePolicyId",
|
||||||
"/public-resource-policy/:resourcePolicyId"
|
|
||||||
],
|
|
||||||
verifyApiKeyResourcePolicyAccess,
|
verifyApiKeyResourcePolicyAccess,
|
||||||
verifyApiKeyHasAction(ActionsEnum.getResourcePolicy),
|
verifyApiKeyHasAction(ActionsEnum.getResourcePolicy),
|
||||||
policy.getResourcePolicy
|
policy.getResourcePolicy
|
||||||
);
|
);
|
||||||
|
|
||||||
authenticated.get(
|
authenticated.get(
|
||||||
["/resource/:resourceId/policies", "/public-resource/:resourceId/policies"],
|
"/resource/:resourceId/policies",
|
||||||
verifyApiKeyResourceAccess,
|
verifyApiKeyResourceAccess,
|
||||||
verifyApiKeyHasAction(ActionsEnum.getResourcePolicy),
|
verifyApiKeyHasAction(ActionsEnum.getResourcePolicy),
|
||||||
resource.getResourcePolicies
|
resource.getResourcePolicies
|
||||||
);
|
);
|
||||||
|
|
||||||
authenticated.post(
|
authenticated.post(
|
||||||
["/resource/:resourceId", "/public-resource/:resourceId"],
|
"/resource/:resourceId",
|
||||||
verifyApiKeyResourceAccess,
|
verifyApiKeyResourceAccess,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
verifyApiKeyHasAction(ActionsEnum.updateResource),
|
verifyApiKeyHasAction(ActionsEnum.updateResource),
|
||||||
@@ -531,17 +487,14 @@ authenticated.post(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.put(
|
authenticated.put(
|
||||||
[
|
|
||||||
"/resource-policy/:resourcePolicyId",
|
"/resource-policy/:resourcePolicyId",
|
||||||
"/public-resource-policy/:resourcePolicyId"
|
|
||||||
],
|
|
||||||
verifyApiKeyResourcePolicyAccess,
|
verifyApiKeyResourcePolicyAccess,
|
||||||
verifyApiKeyHasAction(ActionsEnum.updateResourcePolicy),
|
verifyApiKeyHasAction(ActionsEnum.updateResourcePolicy),
|
||||||
policy.updateResourcePolicy
|
policy.updateResourcePolicy
|
||||||
);
|
);
|
||||||
|
|
||||||
authenticated.delete(
|
authenticated.delete(
|
||||||
["/resource/:resourceId", "/public-resource/:resourceId"],
|
"/resource/:resourceId",
|
||||||
verifyApiKeyResourceAccess,
|
verifyApiKeyResourceAccess,
|
||||||
verifyApiKeyHasAction(ActionsEnum.deleteResource),
|
verifyApiKeyHasAction(ActionsEnum.deleteResource),
|
||||||
logActionAudit(ActionsEnum.deleteResource),
|
logActionAudit(ActionsEnum.deleteResource),
|
||||||
@@ -549,7 +502,7 @@ authenticated.delete(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.put(
|
authenticated.put(
|
||||||
["/resource/:resourceId/target", "/public-resource/:resourceId/target"],
|
"/resource/:resourceId/target",
|
||||||
verifyApiKeyResourceAccess,
|
verifyApiKeyResourceAccess,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
verifyApiKeyHasAction(ActionsEnum.createTarget),
|
verifyApiKeyHasAction(ActionsEnum.createTarget),
|
||||||
@@ -558,14 +511,14 @@ authenticated.put(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.get(
|
authenticated.get(
|
||||||
["/resource/:resourceId/targets", "/public-resource/:resourceId/targets"],
|
"/resource/:resourceId/targets",
|
||||||
verifyApiKeyResourceAccess,
|
verifyApiKeyResourceAccess,
|
||||||
verifyApiKeyHasAction(ActionsEnum.listTargets),
|
verifyApiKeyHasAction(ActionsEnum.listTargets),
|
||||||
target.listTargets
|
target.listTargets
|
||||||
);
|
);
|
||||||
|
|
||||||
authenticated.put(
|
authenticated.put(
|
||||||
["/resource/:resourceId/rule", "/public-resource/:resourceId/rule"],
|
"/resource/:resourceId/rule",
|
||||||
verifyApiKeyResourceAccess,
|
verifyApiKeyResourceAccess,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
verifyApiKeyHasAction(ActionsEnum.createResourceRule),
|
verifyApiKeyHasAction(ActionsEnum.createResourceRule),
|
||||||
@@ -574,17 +527,14 @@ authenticated.put(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.get(
|
authenticated.get(
|
||||||
["/resource/:resourceId/rules", "/public-resource/:resourceId/rules"],
|
"/resource/:resourceId/rules",
|
||||||
verifyApiKeyResourceAccess,
|
verifyApiKeyResourceAccess,
|
||||||
verifyApiKeyHasAction(ActionsEnum.listResourceRules),
|
verifyApiKeyHasAction(ActionsEnum.listResourceRules),
|
||||||
resource.listResourceRules
|
resource.listResourceRules
|
||||||
);
|
);
|
||||||
|
|
||||||
authenticated.post(
|
authenticated.post(
|
||||||
[
|
|
||||||
"/resource/:resourceId/rule/:ruleId",
|
"/resource/:resourceId/rule/:ruleId",
|
||||||
"/public-resource/:resourceId/rule/:ruleId"
|
|
||||||
],
|
|
||||||
verifyApiKeyResourceAccess,
|
verifyApiKeyResourceAccess,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
verifyApiKeyHasAction(ActionsEnum.updateResourceRule),
|
verifyApiKeyHasAction(ActionsEnum.updateResourceRule),
|
||||||
@@ -593,10 +543,7 @@ authenticated.post(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.delete(
|
authenticated.delete(
|
||||||
[
|
|
||||||
"/resource/:resourceId/rule/:ruleId",
|
"/resource/:resourceId/rule/:ruleId",
|
||||||
"/public-resource/:resourceId/rule/:ruleId"
|
|
||||||
],
|
|
||||||
verifyApiKeyResourceAccess,
|
verifyApiKeyResourceAccess,
|
||||||
verifyApiKeyHasAction(ActionsEnum.deleteResourceRule),
|
verifyApiKeyHasAction(ActionsEnum.deleteResourceRule),
|
||||||
logActionAudit(ActionsEnum.deleteResourceRule),
|
logActionAudit(ActionsEnum.deleteResourceRule),
|
||||||
@@ -678,7 +625,7 @@ authenticated.post(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.post(
|
authenticated.post(
|
||||||
["/resource/:resourceId/roles", "/public-resource/:resourceId/roles"],
|
"/resource/:resourceId/roles",
|
||||||
verifyApiKeyResourceAccess,
|
verifyApiKeyResourceAccess,
|
||||||
verifyApiKeyRoleAccess,
|
verifyApiKeyRoleAccess,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
@@ -688,7 +635,7 @@ authenticated.post(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.post(
|
authenticated.post(
|
||||||
["/resource/:resourceId/users", "/public-resource/:resourceId/users"],
|
"/resource/:resourceId/users",
|
||||||
verifyApiKeyResourceAccess,
|
verifyApiKeyResourceAccess,
|
||||||
verifyApiKeySetResourceUsers,
|
verifyApiKeySetResourceUsers,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
@@ -698,10 +645,7 @@ authenticated.post(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.put(
|
authenticated.put(
|
||||||
[
|
|
||||||
"/resource-policy/:resourcePolicyId/access-control",
|
"/resource-policy/:resourcePolicyId/access-control",
|
||||||
"/public-resource-policy/:resourcePolicyId/access-control"
|
|
||||||
],
|
|
||||||
verifyApiKeyResourcePolicyAccess,
|
verifyApiKeyResourcePolicyAccess,
|
||||||
verifyApiKeyRoleAccess,
|
verifyApiKeyRoleAccess,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
@@ -713,10 +657,7 @@ authenticated.put(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.put(
|
authenticated.put(
|
||||||
[
|
|
||||||
"/resource-policy/:resourcePolicyId/password",
|
"/resource-policy/:resourcePolicyId/password",
|
||||||
"/public-resource-policy/:resourcePolicyId/password"
|
|
||||||
],
|
|
||||||
verifyApiKeyResourcePolicyAccess,
|
verifyApiKeyResourcePolicyAccess,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
verifyApiKeyHasAction(ActionsEnum.setResourcePolicyPassword),
|
verifyApiKeyHasAction(ActionsEnum.setResourcePolicyPassword),
|
||||||
@@ -725,10 +666,7 @@ authenticated.put(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.put(
|
authenticated.put(
|
||||||
[
|
|
||||||
"/resource-policy/:resourcePolicyId/pincode",
|
"/resource-policy/:resourcePolicyId/pincode",
|
||||||
"/public-resource-policy/:resourcePolicyId/pincode"
|
|
||||||
],
|
|
||||||
verifyApiKeyResourcePolicyAccess,
|
verifyApiKeyResourcePolicyAccess,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
verifyApiKeyHasAction(ActionsEnum.setResourcePolicyPincode),
|
verifyApiKeyHasAction(ActionsEnum.setResourcePolicyPincode),
|
||||||
@@ -737,10 +675,7 @@ authenticated.put(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.put(
|
authenticated.put(
|
||||||
[
|
|
||||||
"/resource-policy/:resourcePolicyId/header-auth",
|
"/resource-policy/:resourcePolicyId/header-auth",
|
||||||
"/public-resource-policy/:resourcePolicyId/header-auth"
|
|
||||||
],
|
|
||||||
verifyApiKeyResourcePolicyAccess,
|
verifyApiKeyResourcePolicyAccess,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
verifyApiKeyHasAction(ActionsEnum.setResourcePolicyHeaderAuth),
|
verifyApiKeyHasAction(ActionsEnum.setResourcePolicyHeaderAuth),
|
||||||
@@ -749,10 +684,7 @@ authenticated.put(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.put(
|
authenticated.put(
|
||||||
[
|
|
||||||
"/resource-policy/:resourcePolicyId/whitelist",
|
"/resource-policy/:resourcePolicyId/whitelist",
|
||||||
"/public-resource-policy/:resourcePolicyId/whitelist"
|
|
||||||
],
|
|
||||||
verifyApiKeyResourcePolicyAccess,
|
verifyApiKeyResourcePolicyAccess,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
verifyApiKeyHasAction(ActionsEnum.setResourcePolicyWhitelist),
|
verifyApiKeyHasAction(ActionsEnum.setResourcePolicyWhitelist),
|
||||||
@@ -761,10 +693,7 @@ authenticated.put(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.put(
|
authenticated.put(
|
||||||
[
|
|
||||||
"/resource-policy/:resourcePolicyId/rules",
|
"/resource-policy/:resourcePolicyId/rules",
|
||||||
"/public-resource-policy/:resourcePolicyId/rules"
|
|
||||||
],
|
|
||||||
verifyApiKeyResourcePolicyAccess,
|
verifyApiKeyResourcePolicyAccess,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
verifyApiKeyHasAction(ActionsEnum.setResourcePolicyRules),
|
verifyApiKeyHasAction(ActionsEnum.setResourcePolicyRules),
|
||||||
@@ -773,10 +702,7 @@ authenticated.put(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.post(
|
authenticated.post(
|
||||||
[
|
|
||||||
"/resource/:resourceId/roles/add",
|
"/resource/:resourceId/roles/add",
|
||||||
"/public-resource/:resourceId/roles/add"
|
|
||||||
],
|
|
||||||
verifyApiKeyResourceAccess,
|
verifyApiKeyResourceAccess,
|
||||||
verifyApiKeyRoleAccess,
|
verifyApiKeyRoleAccess,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
@@ -786,10 +712,7 @@ authenticated.post(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.post(
|
authenticated.post(
|
||||||
[
|
|
||||||
"/resource/:resourceId/roles/remove",
|
"/resource/:resourceId/roles/remove",
|
||||||
"/public-resource/:resourceId/roles/remove"
|
|
||||||
],
|
|
||||||
verifyApiKeyResourceAccess,
|
verifyApiKeyResourceAccess,
|
||||||
verifyApiKeyRoleAccess,
|
verifyApiKeyRoleAccess,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
@@ -799,10 +722,7 @@ authenticated.post(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.post(
|
authenticated.post(
|
||||||
[
|
|
||||||
"/resource/:resourceId/users/add",
|
"/resource/:resourceId/users/add",
|
||||||
"/public-resource/:resourceId/users/add"
|
|
||||||
],
|
|
||||||
verifyApiKeyResourceAccess,
|
verifyApiKeyResourceAccess,
|
||||||
verifyApiKeySetResourceUsers,
|
verifyApiKeySetResourceUsers,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
@@ -812,10 +732,7 @@ authenticated.post(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.post(
|
authenticated.post(
|
||||||
[
|
|
||||||
"/resource/:resourceId/users/remove",
|
"/resource/:resourceId/users/remove",
|
||||||
"/public-resource/:resourceId/users/remove"
|
|
||||||
],
|
|
||||||
verifyApiKeyResourceAccess,
|
verifyApiKeyResourceAccess,
|
||||||
verifyApiKeySetResourceUsers,
|
verifyApiKeySetResourceUsers,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
@@ -825,7 +742,7 @@ authenticated.post(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.post(
|
authenticated.post(
|
||||||
[`/resource/:resourceId/password`, `/public-resource/:resourceId/password`],
|
`/resource/:resourceId/password`,
|
||||||
verifyApiKeyResourceAccess,
|
verifyApiKeyResourceAccess,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
verifyApiKeyHasAction(ActionsEnum.setResourcePassword),
|
verifyApiKeyHasAction(ActionsEnum.setResourcePassword),
|
||||||
@@ -834,7 +751,7 @@ authenticated.post(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.post(
|
authenticated.post(
|
||||||
[`/resource/:resourceId/pincode`, `/public-resource/:resourceId/pincode`],
|
`/resource/:resourceId/pincode`,
|
||||||
verifyApiKeyResourceAccess,
|
verifyApiKeyResourceAccess,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
verifyApiKeyHasAction(ActionsEnum.setResourcePincode),
|
verifyApiKeyHasAction(ActionsEnum.setResourcePincode),
|
||||||
@@ -843,10 +760,7 @@ authenticated.post(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.post(
|
authenticated.post(
|
||||||
[
|
|
||||||
`/resource/:resourceId/header-auth`,
|
`/resource/:resourceId/header-auth`,
|
||||||
`/public-resource/:resourceId/header-auth`
|
|
||||||
],
|
|
||||||
verifyApiKeyResourceAccess,
|
verifyApiKeyResourceAccess,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
verifyApiKeyHasAction(ActionsEnum.setResourceHeaderAuth),
|
verifyApiKeyHasAction(ActionsEnum.setResourceHeaderAuth),
|
||||||
@@ -855,10 +769,7 @@ authenticated.post(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.post(
|
authenticated.post(
|
||||||
[
|
|
||||||
`/resource/:resourceId/whitelist`,
|
`/resource/:resourceId/whitelist`,
|
||||||
`/public-resource/:resourceId/whitelist`
|
|
||||||
],
|
|
||||||
verifyApiKeyResourceAccess,
|
verifyApiKeyResourceAccess,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
verifyApiKeyHasAction(ActionsEnum.setResourceWhitelist),
|
verifyApiKeyHasAction(ActionsEnum.setResourceWhitelist),
|
||||||
@@ -867,10 +778,7 @@ authenticated.post(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.post(
|
authenticated.post(
|
||||||
[
|
|
||||||
`/resource/:resourceId/whitelist/add`,
|
`/resource/:resourceId/whitelist/add`,
|
||||||
`/public-resource/:resourceId/whitelist/add`
|
|
||||||
],
|
|
||||||
verifyApiKeyResourceAccess,
|
verifyApiKeyResourceAccess,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
verifyApiKeyHasAction(ActionsEnum.setResourceWhitelist),
|
verifyApiKeyHasAction(ActionsEnum.setResourceWhitelist),
|
||||||
@@ -878,10 +786,7 @@ authenticated.post(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.post(
|
authenticated.post(
|
||||||
[
|
|
||||||
`/resource/:resourceId/whitelist/remove`,
|
`/resource/:resourceId/whitelist/remove`,
|
||||||
`/public-resource/:resourceId/whitelist/remove`
|
|
||||||
],
|
|
||||||
verifyApiKeyResourceAccess,
|
verifyApiKeyResourceAccess,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
verifyApiKeyHasAction(ActionsEnum.setResourceWhitelist),
|
verifyApiKeyHasAction(ActionsEnum.setResourceWhitelist),
|
||||||
@@ -889,20 +794,14 @@ authenticated.post(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.get(
|
authenticated.get(
|
||||||
[
|
|
||||||
`/resource/:resourceId/whitelist`,
|
`/resource/:resourceId/whitelist`,
|
||||||
`/public-resource/:resourceId/whitelist`
|
|
||||||
],
|
|
||||||
verifyApiKeyResourceAccess,
|
verifyApiKeyResourceAccess,
|
||||||
verifyApiKeyHasAction(ActionsEnum.getResourceWhitelist),
|
verifyApiKeyHasAction(ActionsEnum.getResourceWhitelist),
|
||||||
resource.getResourceWhitelist
|
resource.getResourceWhitelist
|
||||||
);
|
);
|
||||||
|
|
||||||
authenticated.post(
|
authenticated.post(
|
||||||
[
|
|
||||||
`/resource/:resourceId/access-token`,
|
`/resource/:resourceId/access-token`,
|
||||||
`/public-resource/:resourceId/access-token`
|
|
||||||
],
|
|
||||||
verifyApiKeyResourceAccess,
|
verifyApiKeyResourceAccess,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
verifyApiKeyHasAction(ActionsEnum.generateAccessToken),
|
verifyApiKeyHasAction(ActionsEnum.generateAccessToken),
|
||||||
@@ -911,10 +810,7 @@ authenticated.post(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.post(
|
authenticated.post(
|
||||||
[
|
|
||||||
`/resource/:resourceId/session-token`,
|
`/resource/:resourceId/session-token`,
|
||||||
`/public-resource/:resourceId/session-token`
|
|
||||||
],
|
|
||||||
verifyApiKeyResourceAccess,
|
verifyApiKeyResourceAccess,
|
||||||
verifyApiKeyUserAccess,
|
verifyApiKeyUserAccess,
|
||||||
verifyLimits,
|
verifyLimits,
|
||||||
@@ -939,10 +835,7 @@ authenticated.get(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.get(
|
authenticated.get(
|
||||||
[
|
|
||||||
`/resource/:resourceId/access-tokens`,
|
`/resource/:resourceId/access-tokens`,
|
||||||
`/public-resource/:resourceId/access-tokens`
|
|
||||||
],
|
|
||||||
verifyApiKeyResourceAccess,
|
verifyApiKeyResourceAccess,
|
||||||
verifyApiKeyHasAction(ActionsEnum.listAccessTokens),
|
verifyApiKeyHasAction(ActionsEnum.listAccessTokens),
|
||||||
accessToken.listAccessTokens
|
accessToken.listAccessTokens
|
||||||
@@ -1272,7 +1165,7 @@ authenticated.get(
|
|||||||
);
|
);
|
||||||
|
|
||||||
authenticated.get(
|
authenticated.get(
|
||||||
["/org/:orgId/resource-names", "/org/:orgId/public-resource-names"],
|
"/org/:orgId/resource-names",
|
||||||
verifyApiKeyOrgAccess,
|
verifyApiKeyOrgAccess,
|
||||||
verifyApiKeyHasAction(ActionsEnum.listResources),
|
verifyApiKeyHasAction(ActionsEnum.listResources),
|
||||||
resource.listAllResourceNames
|
resource.listAllResourceNames
|
||||||
|
|||||||
@@ -157,7 +157,8 @@ async function resolveAccessibleIdsUncached(
|
|||||||
.where(
|
.where(
|
||||||
and(
|
and(
|
||||||
eq(userResources.userId, userId),
|
eq(userResources.userId, userId),
|
||||||
eq(resources.orgId, orgId)
|
eq(resources.orgId, orgId),
|
||||||
|
eq(resources.status, "approved")
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
userRoleIds.length > 0
|
userRoleIds.length > 0
|
||||||
@@ -171,7 +172,8 @@ async function resolveAccessibleIdsUncached(
|
|||||||
.where(
|
.where(
|
||||||
and(
|
and(
|
||||||
inArray(roleResources.roleId, userRoleIds),
|
inArray(roleResources.roleId, userRoleIds),
|
||||||
eq(resources.orgId, orgId)
|
eq(resources.orgId, orgId),
|
||||||
|
eq(resources.status, "approved")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
: Promise.resolve([]),
|
: Promise.resolve([]),
|
||||||
@@ -183,7 +185,11 @@ async function resolveAccessibleIdsUncached(
|
|||||||
eq(effectiveResourcePolicyId, userPolicies.resourcePolicyId)
|
eq(effectiveResourcePolicyId, userPolicies.resourcePolicyId)
|
||||||
)
|
)
|
||||||
.where(
|
.where(
|
||||||
and(eq(userPolicies.userId, userId), eq(resources.orgId, orgId))
|
and(
|
||||||
|
eq(userPolicies.userId, userId),
|
||||||
|
eq(resources.orgId, orgId),
|
||||||
|
eq(resources.status, "approved")
|
||||||
|
)
|
||||||
),
|
),
|
||||||
userRoleIds.length > 0
|
userRoleIds.length > 0
|
||||||
? db
|
? db
|
||||||
@@ -199,21 +205,48 @@ async function resolveAccessibleIdsUncached(
|
|||||||
.where(
|
.where(
|
||||||
and(
|
and(
|
||||||
inArray(rolePolicies.roleId, userRoleIds),
|
inArray(rolePolicies.roleId, userRoleIds),
|
||||||
eq(resources.orgId, orgId)
|
eq(resources.orgId, orgId),
|
||||||
|
eq(resources.status, "approved")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
: Promise.resolve([]),
|
: Promise.resolve([]),
|
||||||
db
|
db
|
||||||
.select({ siteResourceId: userSiteResources.siteResourceId })
|
.select({ siteResourceId: userSiteResources.siteResourceId })
|
||||||
.from(userSiteResources)
|
.from(userSiteResources)
|
||||||
.where(eq(userSiteResources.userId, userId)),
|
.innerJoin(
|
||||||
|
siteResources,
|
||||||
|
eq(
|
||||||
|
userSiteResources.siteResourceId,
|
||||||
|
siteResources.siteResourceId
|
||||||
|
)
|
||||||
|
)
|
||||||
|
.where(
|
||||||
|
and(
|
||||||
|
eq(userSiteResources.userId, userId),
|
||||||
|
eq(siteResources.orgId, orgId),
|
||||||
|
eq(siteResources.status, "approved")
|
||||||
|
)
|
||||||
|
),
|
||||||
userRoleIds.length > 0
|
userRoleIds.length > 0
|
||||||
? db
|
? db
|
||||||
.select({
|
.select({
|
||||||
siteResourceId: roleSiteResources.siteResourceId
|
siteResourceId: roleSiteResources.siteResourceId
|
||||||
})
|
})
|
||||||
.from(roleSiteResources)
|
.from(roleSiteResources)
|
||||||
.where(inArray(roleSiteResources.roleId, userRoleIds))
|
.innerJoin(
|
||||||
|
siteResources,
|
||||||
|
eq(
|
||||||
|
roleSiteResources.siteResourceId,
|
||||||
|
siteResources.siteResourceId
|
||||||
|
)
|
||||||
|
)
|
||||||
|
.where(
|
||||||
|
and(
|
||||||
|
inArray(roleSiteResources.roleId, userRoleIds),
|
||||||
|
eq(siteResources.orgId, orgId),
|
||||||
|
eq(siteResources.status, "approved")
|
||||||
|
)
|
||||||
|
)
|
||||||
: Promise.resolve([])
|
: Promise.resolve([])
|
||||||
]);
|
]);
|
||||||
|
|
||||||
@@ -365,6 +398,7 @@ async function filterPublicResourceIdsByTextSearch(
|
|||||||
inArray(resources.resourceId, resourceIds),
|
inArray(resources.resourceId, resourceIds),
|
||||||
eq(resources.orgId, orgId),
|
eq(resources.orgId, orgId),
|
||||||
eq(resources.enabled, true),
|
eq(resources.enabled, true),
|
||||||
|
eq(resources.status, "approved"),
|
||||||
textMatch
|
textMatch
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@@ -402,6 +436,7 @@ async function filterSiteResourceIdsByTextSearch(
|
|||||||
inArray(siteResources.siteResourceId, siteResourceIds),
|
inArray(siteResources.siteResourceId, siteResourceIds),
|
||||||
eq(siteResources.orgId, orgId),
|
eq(siteResources.orgId, orgId),
|
||||||
eq(siteResources.enabled, true),
|
eq(siteResources.enabled, true),
|
||||||
|
eq(siteResources.status, "approved"),
|
||||||
textMatch
|
textMatch
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@@ -503,7 +538,8 @@ async function listSiteGroups(
|
|||||||
const publicConditions = [
|
const publicConditions = [
|
||||||
inArray(resources.resourceId, accessible.resourceIds),
|
inArray(resources.resourceId, accessible.resourceIds),
|
||||||
eq(resources.orgId, orgId),
|
eq(resources.orgId, orgId),
|
||||||
eq(resources.enabled, true)
|
eq(resources.enabled, true),
|
||||||
|
eq(resources.status, "approved")
|
||||||
];
|
];
|
||||||
if (searchPublic) {
|
if (searchPublic) {
|
||||||
publicConditions.push(searchPublic);
|
publicConditions.push(searchPublic);
|
||||||
@@ -558,7 +594,8 @@ async function listSiteGroups(
|
|||||||
const siteConditions = [
|
const siteConditions = [
|
||||||
inArray(siteResources.siteResourceId, accessible.siteResourceIds),
|
inArray(siteResources.siteResourceId, accessible.siteResourceIds),
|
||||||
eq(siteResources.orgId, orgId),
|
eq(siteResources.orgId, orgId),
|
||||||
eq(siteResources.enabled, true)
|
eq(siteResources.enabled, true),
|
||||||
|
eq(siteResources.status, "approved")
|
||||||
];
|
];
|
||||||
if (searchSite) {
|
if (searchSite) {
|
||||||
siteConditions.push(searchSite);
|
siteConditions.push(searchSite);
|
||||||
@@ -621,7 +658,8 @@ async function listSiteGroups(
|
|||||||
const noSitePublicConditions = [
|
const noSitePublicConditions = [
|
||||||
inArray(resources.resourceId, accessible.resourceIds),
|
inArray(resources.resourceId, accessible.resourceIds),
|
||||||
eq(resources.orgId, orgId),
|
eq(resources.orgId, orgId),
|
||||||
eq(resources.enabled, true)
|
eq(resources.enabled, true),
|
||||||
|
eq(resources.status, "approved")
|
||||||
];
|
];
|
||||||
if (searchPublic) {
|
if (searchPublic) {
|
||||||
noSitePublicConditions.push(searchPublic);
|
noSitePublicConditions.push(searchPublic);
|
||||||
@@ -655,7 +693,8 @@ async function listSiteGroups(
|
|||||||
const noSiteSiteConditions = [
|
const noSiteSiteConditions = [
|
||||||
inArray(siteResources.siteResourceId, accessible.siteResourceIds),
|
inArray(siteResources.siteResourceId, accessible.siteResourceIds),
|
||||||
eq(siteResources.orgId, orgId),
|
eq(siteResources.orgId, orgId),
|
||||||
eq(siteResources.enabled, true)
|
eq(siteResources.enabled, true),
|
||||||
|
eq(siteResources.status, "approved")
|
||||||
];
|
];
|
||||||
if (searchSite) {
|
if (searchSite) {
|
||||||
noSiteSiteConditions.push(searchSite);
|
noSiteSiteConditions.push(searchSite);
|
||||||
@@ -746,7 +785,8 @@ async function listLabelGroups(
|
|||||||
const publicConditions = [
|
const publicConditions = [
|
||||||
inArray(resources.resourceId, accessible.resourceIds),
|
inArray(resources.resourceId, accessible.resourceIds),
|
||||||
eq(resources.orgId, orgId),
|
eq(resources.orgId, orgId),
|
||||||
eq(resources.enabled, true)
|
eq(resources.enabled, true),
|
||||||
|
eq(resources.status, "approved")
|
||||||
];
|
];
|
||||||
const searchPublic = buildSearchConditionForPublic(query.query);
|
const searchPublic = buildSearchConditionForPublic(query.query);
|
||||||
if (searchPublic) {
|
if (searchPublic) {
|
||||||
@@ -810,7 +850,8 @@ async function listLabelGroups(
|
|||||||
const siteConditions = [
|
const siteConditions = [
|
||||||
inArray(siteResources.siteResourceId, accessible.siteResourceIds),
|
inArray(siteResources.siteResourceId, accessible.siteResourceIds),
|
||||||
eq(siteResources.orgId, orgId),
|
eq(siteResources.orgId, orgId),
|
||||||
eq(siteResources.enabled, true)
|
eq(siteResources.enabled, true),
|
||||||
|
eq(siteResources.status, "approved")
|
||||||
];
|
];
|
||||||
const searchSite = buildSearchConditionForSiteResource(query.query);
|
const searchSite = buildSearchConditionForSiteResource(query.query);
|
||||||
if (searchSite) {
|
if (searchSite) {
|
||||||
@@ -997,6 +1038,7 @@ async function mapPublicResources(
|
|||||||
inArray(resources.resourceId, resourceIds),
|
inArray(resources.resourceId, resourceIds),
|
||||||
eq(resources.orgId, orgId),
|
eq(resources.orgId, orgId),
|
||||||
eq(resources.enabled, true),
|
eq(resources.enabled, true),
|
||||||
|
eq(resources.status, "approved"),
|
||||||
siteIdFilter != null
|
siteIdFilter != null
|
||||||
? eq(sites.siteId, siteIdFilter)
|
? eq(sites.siteId, siteIdFilter)
|
||||||
: undefined
|
: undefined
|
||||||
@@ -1088,6 +1130,7 @@ async function mapSiteResources(
|
|||||||
inArray(siteResources.siteResourceId, siteResourceIds),
|
inArray(siteResources.siteResourceId, siteResourceIds),
|
||||||
eq(siteResources.orgId, orgId),
|
eq(siteResources.orgId, orgId),
|
||||||
eq(siteResources.enabled, true),
|
eq(siteResources.enabled, true),
|
||||||
|
eq(siteResources.status, "approved"),
|
||||||
siteIdFilter != null
|
siteIdFilter != null
|
||||||
? eq(sites.siteId, siteIdFilter)
|
? eq(sites.siteId, siteIdFilter)
|
||||||
: undefined
|
: undefined
|
||||||
@@ -1382,7 +1425,8 @@ async function collectAccessibleSites(
|
|||||||
const publicConditions = [
|
const publicConditions = [
|
||||||
inArray(resources.resourceId, accessible.resourceIds),
|
inArray(resources.resourceId, accessible.resourceIds),
|
||||||
eq(resources.orgId, orgId),
|
eq(resources.orgId, orgId),
|
||||||
eq(resources.enabled, true)
|
eq(resources.enabled, true),
|
||||||
|
eq(resources.status, "approved")
|
||||||
];
|
];
|
||||||
if (siteNameSearch) {
|
if (siteNameSearch) {
|
||||||
publicConditions.push(siteNameSearch);
|
publicConditions.push(siteNameSearch);
|
||||||
@@ -1422,7 +1466,8 @@ async function collectAccessibleSites(
|
|||||||
const siteConditions = [
|
const siteConditions = [
|
||||||
inArray(siteResources.siteResourceId, accessible.siteResourceIds),
|
inArray(siteResources.siteResourceId, accessible.siteResourceIds),
|
||||||
eq(siteResources.orgId, orgId),
|
eq(siteResources.orgId, orgId),
|
||||||
eq(siteResources.enabled, true)
|
eq(siteResources.enabled, true),
|
||||||
|
eq(siteResources.status, "approved")
|
||||||
];
|
];
|
||||||
if (siteNameSearch) {
|
if (siteNameSearch) {
|
||||||
siteConditions.push(siteNameSearch);
|
siteConditions.push(siteNameSearch);
|
||||||
@@ -1476,6 +1521,7 @@ async function collectAccessibleLabels(
|
|||||||
inArray(resources.resourceId, accessible.resourceIds),
|
inArray(resources.resourceId, accessible.resourceIds),
|
||||||
eq(resources.orgId, orgId),
|
eq(resources.orgId, orgId),
|
||||||
eq(resources.enabled, true),
|
eq(resources.enabled, true),
|
||||||
|
eq(resources.status, "approved"),
|
||||||
eq(labels.orgId, orgId)
|
eq(labels.orgId, orgId)
|
||||||
];
|
];
|
||||||
if (labelNameSearch) {
|
if (labelNameSearch) {
|
||||||
@@ -1511,6 +1557,7 @@ async function collectAccessibleLabels(
|
|||||||
inArray(siteResources.siteResourceId, accessible.siteResourceIds),
|
inArray(siteResources.siteResourceId, accessible.siteResourceIds),
|
||||||
eq(siteResources.orgId, orgId),
|
eq(siteResources.orgId, orgId),
|
||||||
eq(siteResources.enabled, true),
|
eq(siteResources.enabled, true),
|
||||||
|
eq(siteResources.status, "approved"),
|
||||||
eq(labels.orgId, orgId)
|
eq(labels.orgId, orgId)
|
||||||
];
|
];
|
||||||
if (labelNameSearch) {
|
if (labelNameSearch) {
|
||||||
|
|||||||
@@ -148,7 +148,12 @@ export async function buildClientConfigurationForNewtClient(
|
|||||||
.from(siteResources)
|
.from(siteResources)
|
||||||
.innerJoin(networks, eq(siteResources.networkId, networks.networkId))
|
.innerJoin(networks, eq(siteResources.networkId, networks.networkId))
|
||||||
.innerJoin(siteNetworks, eq(networks.networkId, siteNetworks.networkId))
|
.innerJoin(siteNetworks, eq(networks.networkId, siteNetworks.networkId))
|
||||||
.where(eq(siteNetworks.siteId, siteId))
|
.where(
|
||||||
|
and(
|
||||||
|
eq(siteNetworks.siteId, siteId),
|
||||||
|
eq(siteResources.enabled, true)
|
||||||
|
)
|
||||||
|
)
|
||||||
.then((rows) => rows.map((r) => r.siteResources));
|
.then((rows) => rows.map((r) => r.siteResources));
|
||||||
|
|
||||||
const targetsToSend: SubnetProxyTargetV2[] = [];
|
const targetsToSend: SubnetProxyTargetV2[] = [];
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import {
|
|||||||
generateRemoteSubnets
|
generateRemoteSubnets
|
||||||
} from "@server/lib/ip";
|
} from "@server/lib/ip";
|
||||||
import logger from "@server/logger";
|
import logger from "@server/logger";
|
||||||
import { eq, inArray } from "drizzle-orm";
|
import { and, eq, inArray } from "drizzle-orm";
|
||||||
import { addPeer, deletePeer } from "../newt/peers";
|
import { addPeer, deletePeer } from "../newt/peers";
|
||||||
import config from "@server/lib/config";
|
import config from "@server/lib/config";
|
||||||
|
|
||||||
@@ -70,7 +70,13 @@ export async function buildSiteConfigurationForOlmClient(
|
|||||||
.innerJoin(networks, eq(siteResources.networkId, networks.networkId))
|
.innerJoin(networks, eq(siteResources.networkId, networks.networkId))
|
||||||
.innerJoin(siteNetworks, eq(networks.networkId, siteNetworks.networkId))
|
.innerJoin(siteNetworks, eq(networks.networkId, siteNetworks.networkId))
|
||||||
.where(
|
.where(
|
||||||
eq(clientSiteResourcesAssociationsCache.clientId, client.clientId)
|
and(
|
||||||
|
eq(
|
||||||
|
clientSiteResourcesAssociationsCache.clientId,
|
||||||
|
client.clientId
|
||||||
|
),
|
||||||
|
eq(siteResources.enabled, true)
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
const siteResourcesBySiteId = new Map<number, SiteResource[]>();
|
const siteResourcesBySiteId = new Map<number, SiteResource[]>();
|
||||||
|
|||||||
@@ -168,7 +168,7 @@ registry.registerPath({
|
|||||||
path: "/org/{orgId}/resource-policy/{niceId}",
|
path: "/org/{orgId}/resource-policy/{niceId}",
|
||||||
description:
|
description:
|
||||||
"Get a resource policy by orgId and niceId. NiceId is a readable ID for the resource and unique on a per org basis.",
|
"Get a resource policy by orgId and niceId. NiceId is a readable ID for the resource and unique on a per org basis.",
|
||||||
tags: [OpenAPITags.PublicResourcePolicy],
|
tags: [OpenAPITags.Org, OpenAPITags.Policy],
|
||||||
request: {
|
request: {
|
||||||
params: z.object({
|
params: z.object({
|
||||||
orgId: z.string(),
|
orgId: z.string(),
|
||||||
@@ -182,20 +182,7 @@ registry.registerPath({
|
|||||||
method: "get",
|
method: "get",
|
||||||
path: "/resource-policy/{resourcePolicyId}",
|
path: "/resource-policy/{resourcePolicyId}",
|
||||||
description: "Get a resource policy by its resourcePolicyId.",
|
description: "Get a resource policy by its resourcePolicyId.",
|
||||||
tags: [OpenAPITags.PublicResourcePolicyLegacy],
|
tags: [OpenAPITags.Policy],
|
||||||
request: {
|
|
||||||
params: z.object({
|
|
||||||
resourcePolicyId: z.number()
|
|
||||||
})
|
|
||||||
},
|
|
||||||
responses: {}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "get",
|
|
||||||
path: "/public-resource-policy/{resourcePolicyId}",
|
|
||||||
description: "Get a resource policy by its resourcePolicyId.",
|
|
||||||
tags: [OpenAPITags.PublicResourcePolicy],
|
|
||||||
request: {
|
request: {
|
||||||
params: z.object({
|
params: z.object({
|
||||||
resourcePolicyId: z.number()
|
resourcePolicyId: z.number()
|
||||||
|
|||||||
@@ -40,26 +40,7 @@ registry.registerPath({
|
|||||||
path: "/resource-policy/{resourceId}/access-control",
|
path: "/resource-policy/{resourceId}/access-control",
|
||||||
description:
|
description:
|
||||||
"Set access control users for a resource policy, including SSO, users, roles, Identity provider.",
|
"Set access control users for a resource policy, including SSO, users, roles, Identity provider.",
|
||||||
tags: [OpenAPITags.PublicResourcePolicyLegacy],
|
tags: [OpenAPITags.Policy, OpenAPITags.User],
|
||||||
request: {
|
|
||||||
params: setResourcePolicyAccessControlParamsSchema,
|
|
||||||
body: {
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: setResourcePolicyAcccessControlBodySchema
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
responses: {}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "post",
|
|
||||||
path: "/public-resource-policy/{resourceId}/access-control",
|
|
||||||
description:
|
|
||||||
"Set access control users for a resource policy, including SSO, users, roles, Identity provider.",
|
|
||||||
tags: [OpenAPITags.PublicResourcePolicy, OpenAPITags.User],
|
|
||||||
request: {
|
request: {
|
||||||
params: setResourcePolicyAccessControlParamsSchema,
|
params: setResourcePolicyAccessControlParamsSchema,
|
||||||
body: {
|
body: {
|
||||||
|
|||||||
@@ -29,26 +29,7 @@ registry.registerPath({
|
|||||||
path: "/resource-policy/{resourcePolicyId}/header-auth",
|
path: "/resource-policy/{resourcePolicyId}/header-auth",
|
||||||
description:
|
description:
|
||||||
"Set or update the header authentication for a resource policy. If user and password is not provided, it will remove the header authentication.",
|
"Set or update the header authentication for a resource policy. If user and password is not provided, it will remove the header authentication.",
|
||||||
tags: [OpenAPITags.PublicResourcePolicyLegacy],
|
tags: [OpenAPITags.Policy],
|
||||||
request: {
|
|
||||||
params: setResourcePolicyHeaderAuthParamsSchema,
|
|
||||||
body: {
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: setResourcePolicyHeaderAuthBodySchema
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
responses: {}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "put",
|
|
||||||
path: "/public-resource-policy/{resourcePolicyId}/header-auth",
|
|
||||||
description:
|
|
||||||
"Set or update the header authentication for a resource policy. If user and password is not provided, it will remove the header authentication.",
|
|
||||||
tags: [OpenAPITags.PublicResourcePolicy],
|
|
||||||
request: {
|
request: {
|
||||||
params: setResourcePolicyHeaderAuthParamsSchema,
|
params: setResourcePolicyHeaderAuthParamsSchema,
|
||||||
body: {
|
body: {
|
||||||
|
|||||||
@@ -24,26 +24,7 @@ registry.registerPath({
|
|||||||
path: "/resource-policy/{resourcePolicyId}/password",
|
path: "/resource-policy/{resourcePolicyId}/password",
|
||||||
description:
|
description:
|
||||||
"Set the password for a resource policy. Setting the password to null will remove it.",
|
"Set the password for a resource policy. Setting the password to null will remove it.",
|
||||||
tags: [OpenAPITags.PublicResourcePolicyLegacy],
|
tags: [OpenAPITags.Policy],
|
||||||
request: {
|
|
||||||
params: setResourcePolicyPasswordParamsSchema,
|
|
||||||
body: {
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: setResourcePolicyPasswordBodySchema
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
responses: {}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "put",
|
|
||||||
path: "/public-resource-policy/{resourcePolicyId}/password",
|
|
||||||
description:
|
|
||||||
"Set the password for a resource policy. Setting the password to null will remove it.",
|
|
||||||
tags: [OpenAPITags.PublicResourcePolicy],
|
|
||||||
request: {
|
request: {
|
||||||
params: setResourcePolicyPasswordParamsSchema,
|
params: setResourcePolicyPasswordParamsSchema,
|
||||||
body: {
|
body: {
|
||||||
|
|||||||
@@ -27,26 +27,7 @@ registry.registerPath({
|
|||||||
path: "/resource-policy/{resourcePolicyId}/pincode",
|
path: "/resource-policy/{resourcePolicyId}/pincode",
|
||||||
description:
|
description:
|
||||||
"Set the PIN code for a resource policy. Setting the PIN code to null will remove it.",
|
"Set the PIN code for a resource policy. Setting the PIN code to null will remove it.",
|
||||||
tags: [OpenAPITags.PublicResourcePolicyLegacy],
|
tags: [OpenAPITags.Policy],
|
||||||
request: {
|
|
||||||
params: setResourcePolicyPincodeParamsSchema,
|
|
||||||
body: {
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: setResourcePolicyPincodeBodySchema
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
responses: {}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "put",
|
|
||||||
path: "/public-resource-policy/{resourcePolicyId}/pincode",
|
|
||||||
description:
|
|
||||||
"Set the PIN code for a resource policy. Setting the PIN code to null will remove it.",
|
|
||||||
tags: [OpenAPITags.PublicResourcePolicy],
|
|
||||||
request: {
|
request: {
|
||||||
params: setResourcePolicyPincodeParamsSchema,
|
params: setResourcePolicyPincodeParamsSchema,
|
||||||
body: {
|
body: {
|
||||||
|
|||||||
@@ -47,26 +47,7 @@ registry.registerPath({
|
|||||||
path: "/resource-policy/{resourcePolicyId}/rules",
|
path: "/resource-policy/{resourcePolicyId}/rules",
|
||||||
description:
|
description:
|
||||||
"Set all rules for a resource policy at once. This will replace all existing rules.",
|
"Set all rules for a resource policy at once. This will replace all existing rules.",
|
||||||
tags: [OpenAPITags.PublicResourcePolicyLegacy],
|
tags: [OpenAPITags.Policy],
|
||||||
request: {
|
|
||||||
params: setResourcePolicyRulesParamsSchema,
|
|
||||||
body: {
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: setResourcePolicyRulesBodySchema
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
responses: {}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "put",
|
|
||||||
path: "/public-resource-policy/{resourcePolicyId}/rules",
|
|
||||||
description:
|
|
||||||
"Set all rules for a resource policy at once. This will replace all existing rules.",
|
|
||||||
tags: [OpenAPITags.PublicResourcePolicy],
|
|
||||||
request: {
|
request: {
|
||||||
params: setResourcePolicyRulesParamsSchema,
|
params: setResourcePolicyRulesParamsSchema,
|
||||||
body: {
|
body: {
|
||||||
|
|||||||
@@ -32,26 +32,7 @@ registry.registerPath({
|
|||||||
path: "/resource-policy/{resourcePolicyId}/whitelist",
|
path: "/resource-policy/{resourcePolicyId}/whitelist",
|
||||||
description:
|
description:
|
||||||
"Set email whitelist for a resource policy. This will replace all existing emails.",
|
"Set email whitelist for a resource policy. This will replace all existing emails.",
|
||||||
tags: [OpenAPITags.PublicResourcePolicyLegacy],
|
tags: [OpenAPITags.Policy],
|
||||||
request: {
|
|
||||||
params: setResourcePolicyWhitelistParamsSchema,
|
|
||||||
body: {
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: setResourcePolicyWhitelistBodySchema
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
responses: {}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "put",
|
|
||||||
path: "/public-resource-policy/{resourcePolicyId}/whitelist",
|
|
||||||
description:
|
|
||||||
"Set email whitelist for a resource policy. This will replace all existing emails.",
|
|
||||||
tags: [OpenAPITags.PublicResourcePolicy],
|
|
||||||
request: {
|
request: {
|
||||||
params: setResourcePolicyWhitelistParamsSchema,
|
params: setResourcePolicyWhitelistParamsSchema,
|
||||||
body: {
|
body: {
|
||||||
|
|||||||
@@ -22,25 +22,7 @@ registry.registerPath({
|
|||||||
method: "put",
|
method: "put",
|
||||||
path: "/resource-policy/{resourcePolicyId}",
|
path: "/resource-policy/{resourcePolicyId}",
|
||||||
description: "Update a resource policy.",
|
description: "Update a resource policy.",
|
||||||
tags: [OpenAPITags.PublicResourcePolicy],
|
tags: [OpenAPITags.Org, OpenAPITags.Policy],
|
||||||
request: {
|
|
||||||
params: updateResourcePolicyParamsSchema,
|
|
||||||
body: {
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: updateResourcePolicyBodySchema
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
responses: {}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "put",
|
|
||||||
path: "/public-resource-policy/{resourcePolicyId}",
|
|
||||||
description: "Update a resource policy.",
|
|
||||||
tags: [OpenAPITags.PublicResourcePolicy],
|
|
||||||
request: {
|
request: {
|
||||||
params: updateResourcePolicyParamsSchema,
|
params: updateResourcePolicyParamsSchema,
|
||||||
body: {
|
body: {
|
||||||
|
|||||||
@@ -34,39 +34,6 @@ registry.registerPath({
|
|||||||
method: "post",
|
method: "post",
|
||||||
path: "/resource/{resourceId}/whitelist/add",
|
path: "/resource/{resourceId}/whitelist/add",
|
||||||
description: "Add a single email to the resource whitelist.",
|
description: "Add a single email to the resource whitelist.",
|
||||||
tags: [OpenAPITags.PublicResourceLegacy],
|
|
||||||
request: {
|
|
||||||
params: addEmailToResourceWhitelistParamsSchema,
|
|
||||||
body: {
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: addEmailToResourceWhitelistBodySchema
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
responses: {
|
|
||||||
200: {
|
|
||||||
description: "Successful response",
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: z.object({
|
|
||||||
data: z.record(z.string(), z.any()).nullable(),
|
|
||||||
success: z.boolean(),
|
|
||||||
error: z.boolean(),
|
|
||||||
message: z.string(),
|
|
||||||
status: z.number()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "post",
|
|
||||||
path: "/public-resource/{resourceId}/whitelist/add",
|
|
||||||
description: "Add a single email to the resource whitelist.",
|
|
||||||
tags: [OpenAPITags.PublicResource],
|
tags: [OpenAPITags.PublicResource],
|
||||||
request: {
|
request: {
|
||||||
params: addEmailToResourceWhitelistParamsSchema,
|
params: addEmailToResourceWhitelistParamsSchema,
|
||||||
@@ -177,7 +144,10 @@ export async function addEmailToResourceWhitelist(
|
|||||||
.from(resourcePolicyWhiteList)
|
.from(resourcePolicyWhiteList)
|
||||||
.where(
|
.where(
|
||||||
and(
|
and(
|
||||||
eq(resourcePolicyWhiteList.resourcePolicyId, policyId),
|
eq(
|
||||||
|
resourcePolicyWhiteList.resourcePolicyId,
|
||||||
|
policyId
|
||||||
|
),
|
||||||
eq(resourcePolicyWhiteList.email, email)
|
eq(resourcePolicyWhiteList.email, email)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -28,40 +28,6 @@ const addRoleToResourceParamsSchema = z
|
|||||||
registry.registerPath({
|
registry.registerPath({
|
||||||
method: "post",
|
method: "post",
|
||||||
path: "/resource/{resourceId}/roles/add",
|
path: "/resource/{resourceId}/roles/add",
|
||||||
description:
|
|
||||||
"Add a single role to a resource. When the resource has an inline policy defined (no shared resource policy assigned), the role is added to the inline policy instead of directly to the resource.",
|
|
||||||
tags: [OpenAPITags.PublicResourceLegacy],
|
|
||||||
request: {
|
|
||||||
params: addRoleToResourceParamsSchema,
|
|
||||||
body: {
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: addRoleToResourceBodySchema
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
responses: {
|
|
||||||
200: {
|
|
||||||
description: "Successful response",
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: z.object({
|
|
||||||
data: z.record(z.string(), z.any()).nullable(),
|
|
||||||
success: z.boolean(),
|
|
||||||
error: z.boolean(),
|
|
||||||
message: z.string(),
|
|
||||||
status: z.number()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "post",
|
|
||||||
path: "/public-resource/{resourceId}/roles/add",
|
|
||||||
description:
|
description:
|
||||||
"Add a single role to a resource. When the resource has an inline policy defined (no shared resource policy assigned), the role is added to the inline policy instead of directly to the resource.",
|
"Add a single role to a resource. When the resource has an inline policy defined (no shared resource policy assigned), the role is added to the inline policy instead of directly to the resource.",
|
||||||
tags: [OpenAPITags.PublicResource, OpenAPITags.Role],
|
tags: [OpenAPITags.PublicResource, OpenAPITags.Role],
|
||||||
|
|||||||
@@ -28,40 +28,6 @@ const addUserToResourceParamsSchema = z
|
|||||||
registry.registerPath({
|
registry.registerPath({
|
||||||
method: "post",
|
method: "post",
|
||||||
path: "/resource/{resourceId}/users/add",
|
path: "/resource/{resourceId}/users/add",
|
||||||
description:
|
|
||||||
"Add a single user to a resource. When the resource has an inline policy defined (no shared resource policy assigned), the user is added to the inline policy instead of directly to the resource.",
|
|
||||||
tags: [OpenAPITags.PublicResourceLegacy],
|
|
||||||
request: {
|
|
||||||
params: addUserToResourceParamsSchema,
|
|
||||||
body: {
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: addUserToResourceBodySchema
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
responses: {
|
|
||||||
200: {
|
|
||||||
description: "Successful response",
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: z.object({
|
|
||||||
data: z.record(z.string(), z.any()).nullable(),
|
|
||||||
success: z.boolean(),
|
|
||||||
error: z.boolean(),
|
|
||||||
message: z.string(),
|
|
||||||
status: z.number()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "post",
|
|
||||||
path: "/public-resource/{resourceId}/users/add",
|
|
||||||
description:
|
description:
|
||||||
"Add a single user to a resource. When the resource has an inline policy defined (no shared resource policy assigned), the user is added to the inline policy instead of directly to the resource.",
|
"Add a single user to a resource. When the resource has an inline policy defined (no shared resource policy assigned), the user is added to the inline policy instead of directly to the resource.",
|
||||||
tags: [OpenAPITags.PublicResource, OpenAPITags.User],
|
tags: [OpenAPITags.PublicResource, OpenAPITags.User],
|
||||||
|
|||||||
@@ -153,39 +153,6 @@ registry.registerPath({
|
|||||||
method: "put",
|
method: "put",
|
||||||
path: "/org/{orgId}/resource",
|
path: "/org/{orgId}/resource",
|
||||||
description: "Create a resource.",
|
description: "Create a resource.",
|
||||||
tags: [OpenAPITags.PublicResourceLegacy],
|
|
||||||
request: {
|
|
||||||
params: createResourceParamsSchema,
|
|
||||||
body: {
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: createHttpResourceSchema.or(createRawResourceSchema)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
responses: {
|
|
||||||
200: {
|
|
||||||
description: "Successful response",
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: z.object({
|
|
||||||
data: z.record(z.string(), z.any()).nullable(),
|
|
||||||
success: z.boolean(),
|
|
||||||
error: z.boolean(),
|
|
||||||
message: z.string(),
|
|
||||||
status: z.number()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "put",
|
|
||||||
path: "/org/{orgId}/public-resource",
|
|
||||||
description: "Create a resource.",
|
|
||||||
tags: [OpenAPITags.PublicResource],
|
tags: [OpenAPITags.PublicResource],
|
||||||
request: {
|
request: {
|
||||||
params: createResourceParamsSchema,
|
params: createResourceParamsSchema,
|
||||||
|
|||||||
@@ -32,39 +32,6 @@ registry.registerPath({
|
|||||||
method: "put",
|
method: "put",
|
||||||
path: "/resource/{resourceId}/rule",
|
path: "/resource/{resourceId}/rule",
|
||||||
description: "Create a resource rule.",
|
description: "Create a resource rule.",
|
||||||
tags: [OpenAPITags.PublicResourceLegacy],
|
|
||||||
request: {
|
|
||||||
params: createResourceRuleParamsSchema,
|
|
||||||
body: {
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: createResourceRuleSchema
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
responses: {
|
|
||||||
200: {
|
|
||||||
description: "Successful response",
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: z.object({
|
|
||||||
data: z.record(z.string(), z.any()).nullable(),
|
|
||||||
success: z.boolean(),
|
|
||||||
error: z.boolean(),
|
|
||||||
message: z.string(),
|
|
||||||
status: z.number()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "put",
|
|
||||||
path: "/public-resource/{resourceId}/rule",
|
|
||||||
description: "Create a resource rule.",
|
|
||||||
tags: [OpenAPITags.PublicResource, OpenAPITags.Rule],
|
tags: [OpenAPITags.PublicResource, OpenAPITags.Rule],
|
||||||
request: {
|
request: {
|
||||||
params: createResourceRuleParamsSchema,
|
params: createResourceRuleParamsSchema,
|
||||||
|
|||||||
@@ -22,32 +22,6 @@ registry.registerPath({
|
|||||||
method: "delete",
|
method: "delete",
|
||||||
path: "/resource/{resourceId}",
|
path: "/resource/{resourceId}",
|
||||||
description: "Delete a resource.",
|
description: "Delete a resource.",
|
||||||
tags: [OpenAPITags.PublicResourceLegacy],
|
|
||||||
request: {
|
|
||||||
params: deleteResourceSchema
|
|
||||||
},
|
|
||||||
responses: {
|
|
||||||
200: {
|
|
||||||
description: "Successful response",
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: z.object({
|
|
||||||
data: z.record(z.string(), z.any()).nullable(),
|
|
||||||
success: z.boolean(),
|
|
||||||
error: z.boolean(),
|
|
||||||
message: z.string(),
|
|
||||||
status: z.number()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "delete",
|
|
||||||
path: "/public-resource/{resourceId}",
|
|
||||||
description: "Delete a resource.",
|
|
||||||
tags: [OpenAPITags.PublicResource],
|
tags: [OpenAPITags.PublicResource],
|
||||||
request: {
|
request: {
|
||||||
params: deleteResourceSchema
|
params: deleteResourceSchema
|
||||||
|
|||||||
@@ -19,32 +19,6 @@ registry.registerPath({
|
|||||||
method: "delete",
|
method: "delete",
|
||||||
path: "/resource/{resourceId}/rule/{ruleId}",
|
path: "/resource/{resourceId}/rule/{ruleId}",
|
||||||
description: "Delete a resource rule.",
|
description: "Delete a resource rule.",
|
||||||
tags: [OpenAPITags.PublicResourceLegacy],
|
|
||||||
request: {
|
|
||||||
params: deleteResourceRuleSchema
|
|
||||||
},
|
|
||||||
responses: {
|
|
||||||
200: {
|
|
||||||
description: "Successful response",
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: z.object({
|
|
||||||
data: z.record(z.string(), z.any()).nullable(),
|
|
||||||
success: z.boolean(),
|
|
||||||
error: z.boolean(),
|
|
||||||
message: z.string(),
|
|
||||||
status: z.number()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "delete",
|
|
||||||
path: "/public-resource/{resourceId}/rule/{ruleId}",
|
|
||||||
description: "Delete a resource rule.",
|
|
||||||
tags: [OpenAPITags.PublicResource, OpenAPITags.Rule],
|
tags: [OpenAPITags.PublicResource, OpenAPITags.Rule],
|
||||||
request: {
|
request: {
|
||||||
params: deleteResourceRuleSchema
|
params: deleteResourceRuleSchema
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ registry.registerPath({
|
|||||||
path: "/org/{orgId}/resource/{niceId}",
|
path: "/org/{orgId}/resource/{niceId}",
|
||||||
description:
|
description:
|
||||||
"Get a resource by orgId and niceId. NiceId is a readable ID for the resource and unique on a per org basis.",
|
"Get a resource by orgId and niceId. NiceId is a readable ID for the resource and unique on a per org basis.",
|
||||||
tags: [OpenAPITags.PublicResourceLegacy],
|
tags: [OpenAPITags.PublicResource],
|
||||||
request: {
|
request: {
|
||||||
params: z.object({
|
params: z.object({
|
||||||
orgId: z.string(),
|
orgId: z.string(),
|
||||||
@@ -92,34 +92,6 @@ registry.registerPath({
|
|||||||
method: "get",
|
method: "get",
|
||||||
path: "/resource/{resourceId}",
|
path: "/resource/{resourceId}",
|
||||||
description: "Get a resource by resourceId.",
|
description: "Get a resource by resourceId.",
|
||||||
tags: [OpenAPITags.PublicResourceLegacy],
|
|
||||||
request: {
|
|
||||||
params: z.object({
|
|
||||||
resourceId: z.number()
|
|
||||||
})
|
|
||||||
},
|
|
||||||
responses: {
|
|
||||||
200: {
|
|
||||||
description: "Successful response",
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: z.object({
|
|
||||||
data: z.record(z.string(), z.any()).nullable(),
|
|
||||||
success: z.boolean(),
|
|
||||||
error: z.boolean(),
|
|
||||||
message: z.string(),
|
|
||||||
status: z.number()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "get",
|
|
||||||
path: "/public-resource/{resourceId}",
|
|
||||||
description: "Get a resource by resourceId.",
|
|
||||||
tags: [OpenAPITags.PublicResource],
|
tags: [OpenAPITags.PublicResource],
|
||||||
request: {
|
request: {
|
||||||
params: z.object({
|
params: z.object({
|
||||||
|
|||||||
@@ -25,21 +25,8 @@ export type GetResourcePoliciesResponse = {
|
|||||||
registry.registerPath({
|
registry.registerPath({
|
||||||
method: "get",
|
method: "get",
|
||||||
path: "/resource/{resourceId}/policies",
|
path: "/resource/{resourceId}/policies",
|
||||||
description:
|
description: "Get the inline and shared policies associated with a resource.",
|
||||||
"Get the inline and shared policies associated with a resource.",
|
tags: [OpenAPITags.PublicResource, OpenAPITags.Policy],
|
||||||
tags: [OpenAPITags.PublicResourceLegacy],
|
|
||||||
request: {
|
|
||||||
params: getResourcePoliciesParamsSchema
|
|
||||||
},
|
|
||||||
responses: {}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "get",
|
|
||||||
path: "/public-resource/{resourceId}/policies",
|
|
||||||
description:
|
|
||||||
"Get the inline and shared policies associated with a resource.",
|
|
||||||
tags: [OpenAPITags.PublicResource, OpenAPITags.PublicResourcePolicy],
|
|
||||||
request: {
|
request: {
|
||||||
params: getResourcePoliciesParamsSchema
|
params: getResourcePoliciesParamsSchema
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -44,32 +44,6 @@ registry.registerPath({
|
|||||||
method: "get",
|
method: "get",
|
||||||
path: "/resource/{resourceId}/whitelist",
|
path: "/resource/{resourceId}/whitelist",
|
||||||
description: "Get the whitelist of emails for a specific resource.",
|
description: "Get the whitelist of emails for a specific resource.",
|
||||||
tags: [OpenAPITags.PublicResourceLegacy],
|
|
||||||
request: {
|
|
||||||
params: getResourceWhitelistSchema
|
|
||||||
},
|
|
||||||
responses: {
|
|
||||||
200: {
|
|
||||||
description: "Successful response",
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: z.object({
|
|
||||||
data: z.record(z.string(), z.any()).nullable(),
|
|
||||||
success: z.boolean(),
|
|
||||||
error: z.boolean(),
|
|
||||||
message: z.string(),
|
|
||||||
status: z.number()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "get",
|
|
||||||
path: "/public-resource/{resourceId}/whitelist",
|
|
||||||
description: "Get the whitelist of emails for a specific resource.",
|
|
||||||
tags: [OpenAPITags.PublicResource],
|
tags: [OpenAPITags.PublicResource],
|
||||||
request: {
|
request: {
|
||||||
params: getResourceWhitelistSchema
|
params: getResourceWhitelistSchema
|
||||||
|
|||||||
@@ -33,34 +33,6 @@ registry.registerPath({
|
|||||||
method: "get",
|
method: "get",
|
||||||
path: "/org/{orgId}/resources-names",
|
path: "/org/{orgId}/resources-names",
|
||||||
description: "List all resource names for an organization.",
|
description: "List all resource names for an organization.",
|
||||||
tags: [OpenAPITags.PublicResourceLegacy],
|
|
||||||
request: {
|
|
||||||
params: z.object({
|
|
||||||
orgId: z.string()
|
|
||||||
})
|
|
||||||
},
|
|
||||||
responses: {
|
|
||||||
200: {
|
|
||||||
description: "Successful response",
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: z.object({
|
|
||||||
data: z.record(z.string(), z.any()).nullable(),
|
|
||||||
success: z.boolean(),
|
|
||||||
error: z.boolean(),
|
|
||||||
message: z.string(),
|
|
||||||
status: z.number()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "get",
|
|
||||||
path: "/org/{orgId}/public-resource-names",
|
|
||||||
description: "List all resource names for an organization.",
|
|
||||||
tags: [OpenAPITags.PublicResource],
|
tags: [OpenAPITags.PublicResource],
|
||||||
request: {
|
request: {
|
||||||
params: z.object({
|
params: z.object({
|
||||||
|
|||||||
@@ -48,32 +48,6 @@ registry.registerPath({
|
|||||||
method: "get",
|
method: "get",
|
||||||
path: "/resource/{resourceId}/roles",
|
path: "/resource/{resourceId}/roles",
|
||||||
description: "List all roles for a resource.",
|
description: "List all roles for a resource.",
|
||||||
tags: [OpenAPITags.PublicResourceLegacy],
|
|
||||||
request: {
|
|
||||||
params: listResourceRolesSchema
|
|
||||||
},
|
|
||||||
responses: {
|
|
||||||
200: {
|
|
||||||
description: "Successful response",
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: z.object({
|
|
||||||
data: z.record(z.string(), z.any()).nullable(),
|
|
||||||
success: z.boolean(),
|
|
||||||
error: z.boolean(),
|
|
||||||
message: z.string(),
|
|
||||||
status: z.number()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "get",
|
|
||||||
path: "/public-resource/{resourceId}/roles",
|
|
||||||
description: "List all roles for a resource.",
|
|
||||||
tags: [OpenAPITags.PublicResource, OpenAPITags.Role],
|
tags: [OpenAPITags.PublicResource, OpenAPITags.Role],
|
||||||
request: {
|
request: {
|
||||||
params: listResourceRolesSchema
|
params: listResourceRolesSchema
|
||||||
|
|||||||
@@ -71,33 +71,6 @@ registry.registerPath({
|
|||||||
method: "get",
|
method: "get",
|
||||||
path: "/resource/{resourceId}/rules",
|
path: "/resource/{resourceId}/rules",
|
||||||
description: "List rules for a resource.",
|
description: "List rules for a resource.",
|
||||||
tags: [OpenAPITags.PublicResourceLegacy],
|
|
||||||
request: {
|
|
||||||
params: listResourceRulesParamsSchema,
|
|
||||||
query: listResourceRulesSchema
|
|
||||||
},
|
|
||||||
responses: {
|
|
||||||
200: {
|
|
||||||
description: "Successful response",
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: z.object({
|
|
||||||
data: z.record(z.string(), z.any()).nullable(),
|
|
||||||
success: z.boolean(),
|
|
||||||
error: z.boolean(),
|
|
||||||
message: z.string(),
|
|
||||||
status: z.number()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "get",
|
|
||||||
path: "/public-resource/{resourceId}/rules",
|
|
||||||
description: "List rules for a resource.",
|
|
||||||
tags: [OpenAPITags.PublicResource, OpenAPITags.Rule],
|
tags: [OpenAPITags.PublicResource, OpenAPITags.Rule],
|
||||||
request: {
|
request: {
|
||||||
params: listResourceRulesParamsSchema,
|
params: listResourceRulesParamsSchema,
|
||||||
|
|||||||
@@ -38,32 +38,6 @@ registry.registerPath({
|
|||||||
method: "get",
|
method: "get",
|
||||||
path: "/resource/{resourceId}/users",
|
path: "/resource/{resourceId}/users",
|
||||||
description: "List all users for a resource.",
|
description: "List all users for a resource.",
|
||||||
tags: [OpenAPITags.PublicResourceLegacy],
|
|
||||||
request: {
|
|
||||||
params: listResourceUsersSchema
|
|
||||||
},
|
|
||||||
responses: {
|
|
||||||
200: {
|
|
||||||
description: "Successful response",
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: z.object({
|
|
||||||
data: z.record(z.string(), z.any()).nullable(),
|
|
||||||
success: z.boolean(),
|
|
||||||
error: z.boolean(),
|
|
||||||
message: z.string(),
|
|
||||||
status: z.number()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "get",
|
|
||||||
path: "/public-resource/{resourceId}/users",
|
|
||||||
description: "List all users for a resource.",
|
|
||||||
tags: [OpenAPITags.PublicResource, OpenAPITags.User],
|
tags: [OpenAPITags.PublicResource, OpenAPITags.User],
|
||||||
request: {
|
request: {
|
||||||
params: listResourceUsersSchema
|
params: listResourceUsersSchema
|
||||||
|
|||||||
@@ -138,6 +138,15 @@ const listResourcesSchema = z.strictObject({
|
|||||||
description:
|
description:
|
||||||
"When set, only resources that have at least one target on this site are returned"
|
"When set, only resources that have at least one target on this site are returned"
|
||||||
}),
|
}),
|
||||||
|
status: z
|
||||||
|
.enum(["pending", "approved"])
|
||||||
|
.optional()
|
||||||
|
.catch(undefined)
|
||||||
|
.openapi({
|
||||||
|
type: "string",
|
||||||
|
enum: ["pending", "approved"],
|
||||||
|
description: "Filter by resource status"
|
||||||
|
}),
|
||||||
labels: z
|
labels: z
|
||||||
.preprocess((val) => {
|
.preprocess((val) => {
|
||||||
if (val === undefined || val === null || val === "") {
|
if (val === undefined || val === null || val === "") {
|
||||||
@@ -400,35 +409,6 @@ registry.registerPath({
|
|||||||
method: "get",
|
method: "get",
|
||||||
path: "/org/{orgId}/resources",
|
path: "/org/{orgId}/resources",
|
||||||
description: "List resources for an organization.",
|
description: "List resources for an organization.",
|
||||||
tags: [OpenAPITags.PublicResourceLegacy],
|
|
||||||
request: {
|
|
||||||
params: z.object({
|
|
||||||
orgId: z.string()
|
|
||||||
}),
|
|
||||||
query: listResourcesSchema
|
|
||||||
},
|
|
||||||
responses: {
|
|
||||||
200: {
|
|
||||||
description: "Successful response",
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: z.object({
|
|
||||||
data: z.record(z.string(), z.any()).nullable(),
|
|
||||||
success: z.boolean(),
|
|
||||||
error: z.boolean(),
|
|
||||||
message: z.string(),
|
|
||||||
status: z.number()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "get",
|
|
||||||
path: "/org/{orgId}/public-resources",
|
|
||||||
description: "List resources for an organization.",
|
|
||||||
tags: [OpenAPITags.PublicResource],
|
tags: [OpenAPITags.PublicResource],
|
||||||
request: {
|
request: {
|
||||||
params: z.object({
|
params: z.object({
|
||||||
@@ -480,6 +460,7 @@ export async function listResources(
|
|||||||
sort_by,
|
sort_by,
|
||||||
order,
|
order,
|
||||||
siteId,
|
siteId,
|
||||||
|
status,
|
||||||
labels: labelFilter
|
labels: labelFilter
|
||||||
} = parsedQuery.data;
|
} = parsedQuery.data;
|
||||||
|
|
||||||
@@ -689,6 +670,10 @@ export async function listResources(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof status !== "undefined") {
|
||||||
|
conditions.push(eq(resources.status, status));
|
||||||
|
}
|
||||||
|
|
||||||
if (siteId != null) {
|
if (siteId != null) {
|
||||||
const resourcesWithSite = db
|
const resourcesWithSite = db
|
||||||
.select({ resourceId: targets.resourceId })
|
.select({ resourceId: targets.resourceId })
|
||||||
|
|||||||
@@ -45,18 +45,19 @@ function userResourceAliasesCacheKey(
|
|||||||
page: number,
|
page: number,
|
||||||
pageSize: number,
|
pageSize: number,
|
||||||
includeLabels: boolean,
|
includeLabels: boolean,
|
||||||
labelFilter: string[]
|
labelFilter: string[],
|
||||||
|
status?: "pending" | "approved"
|
||||||
) {
|
) {
|
||||||
const labelsKey =
|
const labelsKey =
|
||||||
labelFilter.length > 0 ? labelFilter.slice().sort().join(",") : "all";
|
labelFilter.length > 0 ? labelFilter.slice().sort().join(",") : "all";
|
||||||
return `userResourceAliases:${orgId}:${userId}:${page}:${pageSize}:${includeLabels ? "labels" : "plain"}:${labelsKey}`;
|
return `userResourceAliases:${orgId}:${userId}:${page}:${pageSize}:${includeLabels ? "labels" : "plain"}:${labelsKey}:${status ?? "all"}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
const listUserResourceAliasesParamsSchema = z.strictObject({
|
const listUserResourceAliasesParamsSchema = z.strictObject({
|
||||||
orgId: z.string()
|
orgId: z.string()
|
||||||
});
|
});
|
||||||
|
|
||||||
const listUserResourceAliasesQuerySchema = z.strictObject({
|
const listUserResourceAliasesQuerySchema = z.object({
|
||||||
pageSize: z.coerce
|
pageSize: z.coerce
|
||||||
.number<string>()
|
.number<string>()
|
||||||
.int()
|
.int()
|
||||||
@@ -96,6 +97,15 @@ const listUserResourceAliasesQuerySchema = z.strictObject({
|
|||||||
type: "array",
|
type: "array",
|
||||||
description:
|
description:
|
||||||
"Filter by resource labels. A resource matches when it has any of the given labels (OR)."
|
"Filter by resource labels. A resource matches when it has any of the given labels (OR)."
|
||||||
|
}),
|
||||||
|
status: z
|
||||||
|
.enum(["pending", "approved"])
|
||||||
|
.optional()
|
||||||
|
.catch(undefined)
|
||||||
|
.openapi({
|
||||||
|
type: "string",
|
||||||
|
enum: ["pending", "approved"],
|
||||||
|
description: "Filter by site resource status"
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -130,7 +140,8 @@ export async function listUserResourceAliases(
|
|||||||
page,
|
page,
|
||||||
pageSize,
|
pageSize,
|
||||||
includeLabels,
|
includeLabels,
|
||||||
labels: labelFilter
|
labels: labelFilter,
|
||||||
|
status
|
||||||
} = parsedQuery.data;
|
} = parsedQuery.data;
|
||||||
|
|
||||||
const parsedParams = listUserResourceAliasesParamsSchema.safeParse(
|
const parsedParams = listUserResourceAliasesParamsSchema.safeParse(
|
||||||
@@ -172,7 +183,8 @@ export async function listUserResourceAliases(
|
|||||||
page,
|
page,
|
||||||
pageSize,
|
pageSize,
|
||||||
includeLabels,
|
includeLabels,
|
||||||
labelFilter ?? []
|
labelFilter ?? [],
|
||||||
|
status
|
||||||
);
|
);
|
||||||
const cachedData: ListUserResourceAliasesResponse | undefined =
|
const cachedData: ListUserResourceAliasesResponse | undefined =
|
||||||
await cache.get(cacheKey);
|
await cache.get(cacheKey);
|
||||||
@@ -257,6 +269,10 @@ export async function listUserResourceAliases(
|
|||||||
inArray(siteResources.siteResourceId, accessibleSiteResourceIds)
|
inArray(siteResources.siteResourceId, accessibleSiteResourceIds)
|
||||||
];
|
];
|
||||||
|
|
||||||
|
if (typeof status !== "undefined") {
|
||||||
|
whereConditions.push(eq(siteResources.status, status));
|
||||||
|
}
|
||||||
|
|
||||||
if (labelFilter && labelFilter.length > 0) {
|
if (labelFilter && labelFilter.length > 0) {
|
||||||
whereConditions.push(
|
whereConditions.push(
|
||||||
inArray(
|
inArray(
|
||||||
|
|||||||
@@ -34,39 +34,6 @@ registry.registerPath({
|
|||||||
method: "post",
|
method: "post",
|
||||||
path: "/resource/{resourceId}/whitelist/remove",
|
path: "/resource/{resourceId}/whitelist/remove",
|
||||||
description: "Remove a single email from the resource whitelist.",
|
description: "Remove a single email from the resource whitelist.",
|
||||||
tags: [OpenAPITags.PublicResourceLegacy],
|
|
||||||
request: {
|
|
||||||
params: removeEmailFromResourceWhitelistParamsSchema,
|
|
||||||
body: {
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: removeEmailFromResourceWhitelistBodySchema
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
responses: {
|
|
||||||
200: {
|
|
||||||
description: "Successful response",
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: z.object({
|
|
||||||
data: z.record(z.string(), z.any()).nullable(),
|
|
||||||
success: z.boolean(),
|
|
||||||
error: z.boolean(),
|
|
||||||
message: z.string(),
|
|
||||||
status: z.number()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "post",
|
|
||||||
path: "/public-resource/{resourceId}/whitelist/remove",
|
|
||||||
description: "Remove a single email from the resource whitelist.",
|
|
||||||
tags: [OpenAPITags.PublicResource],
|
tags: [OpenAPITags.PublicResource],
|
||||||
request: {
|
request: {
|
||||||
params: removeEmailFromResourceWhitelistParamsSchema,
|
params: removeEmailFromResourceWhitelistParamsSchema,
|
||||||
@@ -176,7 +143,10 @@ export async function removeEmailFromResourceWhitelist(
|
|||||||
.from(resourcePolicyWhiteList)
|
.from(resourcePolicyWhiteList)
|
||||||
.where(
|
.where(
|
||||||
and(
|
and(
|
||||||
eq(resourcePolicyWhiteList.resourcePolicyId, policyId),
|
eq(
|
||||||
|
resourcePolicyWhiteList.resourcePolicyId,
|
||||||
|
policyId
|
||||||
|
),
|
||||||
eq(resourcePolicyWhiteList.email, email)
|
eq(resourcePolicyWhiteList.email, email)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@@ -194,7 +164,10 @@ export async function removeEmailFromResourceWhitelist(
|
|||||||
.delete(resourcePolicyWhiteList)
|
.delete(resourcePolicyWhiteList)
|
||||||
.where(
|
.where(
|
||||||
and(
|
and(
|
||||||
eq(resourcePolicyWhiteList.resourcePolicyId, policyId),
|
eq(
|
||||||
|
resourcePolicyWhiteList.resourcePolicyId,
|
||||||
|
policyId
|
||||||
|
),
|
||||||
eq(resourcePolicyWhiteList.email, email)
|
eq(resourcePolicyWhiteList.email, email)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -29,39 +29,6 @@ registry.registerPath({
|
|||||||
method: "post",
|
method: "post",
|
||||||
path: "/resource/{resourceId}/roles/remove",
|
path: "/resource/{resourceId}/roles/remove",
|
||||||
description: "Remove a single role from a resource.",
|
description: "Remove a single role from a resource.",
|
||||||
tags: [OpenAPITags.PublicResourceLegacy],
|
|
||||||
request: {
|
|
||||||
params: removeRoleFromResourceParamsSchema,
|
|
||||||
body: {
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: removeRoleFromResourceBodySchema
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
responses: {
|
|
||||||
200: {
|
|
||||||
description: "Successful response",
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: z.object({
|
|
||||||
data: z.record(z.string(), z.any()).nullable(),
|
|
||||||
success: z.boolean(),
|
|
||||||
error: z.boolean(),
|
|
||||||
message: z.string(),
|
|
||||||
status: z.number()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "post",
|
|
||||||
path: "/public-resource/{resourceId}/roles/remove",
|
|
||||||
description: "Remove a single role from a resource.",
|
|
||||||
tags: [OpenAPITags.PublicResource, OpenAPITags.Role],
|
tags: [OpenAPITags.PublicResource, OpenAPITags.Role],
|
||||||
request: {
|
request: {
|
||||||
params: removeRoleFromResourceParamsSchema,
|
params: removeRoleFromResourceParamsSchema,
|
||||||
|
|||||||
@@ -29,39 +29,6 @@ registry.registerPath({
|
|||||||
method: "post",
|
method: "post",
|
||||||
path: "/resource/{resourceId}/users/remove",
|
path: "/resource/{resourceId}/users/remove",
|
||||||
description: "Remove a single user from a resource.",
|
description: "Remove a single user from a resource.",
|
||||||
tags: [OpenAPITags.PublicResourceLegacy],
|
|
||||||
request: {
|
|
||||||
params: removeUserFromResourceParamsSchema,
|
|
||||||
body: {
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: removeUserFromResourceBodySchema
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
responses: {
|
|
||||||
200: {
|
|
||||||
description: "Successful response",
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: z.object({
|
|
||||||
data: z.record(z.string(), z.any()).nullable(),
|
|
||||||
success: z.boolean(),
|
|
||||||
error: z.boolean(),
|
|
||||||
message: z.string(),
|
|
||||||
status: z.number()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "post",
|
|
||||||
path: "/public-resource/{resourceId}/users/remove",
|
|
||||||
description: "Remove a single user from a resource.",
|
|
||||||
tags: [OpenAPITags.PublicResource, OpenAPITags.User],
|
tags: [OpenAPITags.PublicResource, OpenAPITags.User],
|
||||||
request: {
|
request: {
|
||||||
params: removeUserFromResourceParamsSchema,
|
params: removeUserFromResourceParamsSchema,
|
||||||
|
|||||||
@@ -29,40 +29,6 @@ const setResourceAuthMethodsBodySchema = z.strictObject({
|
|||||||
registry.registerPath({
|
registry.registerPath({
|
||||||
method: "post",
|
method: "post",
|
||||||
path: "/resource/{resourceId}/header-auth",
|
path: "/resource/{resourceId}/header-auth",
|
||||||
description:
|
|
||||||
"Set or update the header authentication for a resource. If user and password is not provided, it will remove the header authentication.",
|
|
||||||
tags: [OpenAPITags.PublicResourceLegacy],
|
|
||||||
request: {
|
|
||||||
params: setResourceAuthMethodsParamsSchema,
|
|
||||||
body: {
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: setResourceAuthMethodsBodySchema
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
responses: {
|
|
||||||
200: {
|
|
||||||
description: "Successful response",
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: z.object({
|
|
||||||
data: z.record(z.string(), z.any()).nullable(),
|
|
||||||
success: z.boolean(),
|
|
||||||
error: z.boolean(),
|
|
||||||
message: z.string(),
|
|
||||||
status: z.number()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "post",
|
|
||||||
path: "/public-resource/{resourceId}/header-auth",
|
|
||||||
description:
|
description:
|
||||||
"Set or update the header authentication for a resource. If user and password is not provided, it will remove the header authentication.",
|
"Set or update the header authentication for a resource. If user and password is not provided, it will remove the header authentication.",
|
||||||
tags: [OpenAPITags.PublicResource],
|
tags: [OpenAPITags.PublicResource],
|
||||||
|
|||||||
@@ -27,40 +27,6 @@ const setResourceAuthMethodsBodySchema = z.strictObject({
|
|||||||
registry.registerPath({
|
registry.registerPath({
|
||||||
method: "post",
|
method: "post",
|
||||||
path: "/resource/{resourceId}/password",
|
path: "/resource/{resourceId}/password",
|
||||||
description:
|
|
||||||
"Set the password for a resource. Setting the password to null will remove it.",
|
|
||||||
tags: [OpenAPITags.PublicResourceLegacy],
|
|
||||||
request: {
|
|
||||||
params: setResourceAuthMethodsParamsSchema,
|
|
||||||
body: {
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: setResourceAuthMethodsBodySchema
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
responses: {
|
|
||||||
200: {
|
|
||||||
description: "Successful response",
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: z.object({
|
|
||||||
data: z.record(z.string(), z.any()).nullable(),
|
|
||||||
success: z.boolean(),
|
|
||||||
error: z.boolean(),
|
|
||||||
message: z.string(),
|
|
||||||
status: z.number()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "post",
|
|
||||||
path: "/public-resource/{resourceId}/password",
|
|
||||||
description:
|
description:
|
||||||
"Set the password for a resource. Setting the password to null will remove it.",
|
"Set the password for a resource. Setting the password to null will remove it.",
|
||||||
tags: [OpenAPITags.PublicResource],
|
tags: [OpenAPITags.PublicResource],
|
||||||
|
|||||||
@@ -27,40 +27,6 @@ const setResourceAuthMethodsBodySchema = z.strictObject({
|
|||||||
registry.registerPath({
|
registry.registerPath({
|
||||||
method: "post",
|
method: "post",
|
||||||
path: "/resource/{resourceId}/pincode",
|
path: "/resource/{resourceId}/pincode",
|
||||||
description:
|
|
||||||
"Set the PIN code for a resource. Setting the PIN code to null will remove it.",
|
|
||||||
tags: [OpenAPITags.PublicResourceLegacy],
|
|
||||||
request: {
|
|
||||||
params: setResourceAuthMethodsParamsSchema,
|
|
||||||
body: {
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: setResourceAuthMethodsBodySchema
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
responses: {
|
|
||||||
200: {
|
|
||||||
description: "Successful response",
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: z.object({
|
|
||||||
data: z.record(z.string(), z.any()).nullable(),
|
|
||||||
success: z.boolean(),
|
|
||||||
error: z.boolean(),
|
|
||||||
message: z.string(),
|
|
||||||
status: z.number()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "post",
|
|
||||||
path: "/public-resource/{resourceId}/pincode",
|
|
||||||
description:
|
description:
|
||||||
"Set the PIN code for a resource. Setting the PIN code to null will remove it.",
|
"Set the PIN code for a resource. Setting the PIN code to null will remove it.",
|
||||||
tags: [OpenAPITags.PublicResource],
|
tags: [OpenAPITags.PublicResource],
|
||||||
|
|||||||
@@ -21,40 +21,6 @@ const setResourceRolesParamsSchema = z.strictObject({
|
|||||||
registry.registerPath({
|
registry.registerPath({
|
||||||
method: "post",
|
method: "post",
|
||||||
path: "/resource/{resourceId}/roles",
|
path: "/resource/{resourceId}/roles",
|
||||||
description:
|
|
||||||
"Set roles for a resource. This will replace all existing roles. When the resource has an inline policy defined (no shared resource policy assigned), roles are set on the inline policy instead of directly on the resource.",
|
|
||||||
tags: [OpenAPITags.PublicResourceLegacy],
|
|
||||||
request: {
|
|
||||||
params: setResourceRolesParamsSchema,
|
|
||||||
body: {
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: setResourceRolesBodySchema
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
responses: {
|
|
||||||
200: {
|
|
||||||
description: "Successful response",
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: z.object({
|
|
||||||
data: z.record(z.string(), z.any()).nullable(),
|
|
||||||
success: z.boolean(),
|
|
||||||
error: z.boolean(),
|
|
||||||
message: z.string(),
|
|
||||||
status: z.number()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "post",
|
|
||||||
path: "/public-resource/{resourceId}/roles",
|
|
||||||
description:
|
description:
|
||||||
"Set roles for a resource. This will replace all existing roles. When the resource has an inline policy defined (no shared resource policy assigned), roles are set on the inline policy instead of directly on the resource.",
|
"Set roles for a resource. This will replace all existing roles. When the resource has an inline policy defined (no shared resource policy assigned), roles are set on the inline policy instead of directly on the resource.",
|
||||||
tags: [OpenAPITags.PublicResource, OpenAPITags.Role],
|
tags: [OpenAPITags.PublicResource, OpenAPITags.Role],
|
||||||
|
|||||||
@@ -21,40 +21,6 @@ const setUserResourcesParamsSchema = z.strictObject({
|
|||||||
registry.registerPath({
|
registry.registerPath({
|
||||||
method: "post",
|
method: "post",
|
||||||
path: "/resource/{resourceId}/users",
|
path: "/resource/{resourceId}/users",
|
||||||
description:
|
|
||||||
"Set users for a resource. This will replace all existing users. When the resource has an inline policy defined (no shared resource policy assigned), users are set on the inline policy instead of directly on the resource.",
|
|
||||||
tags: [OpenAPITags.PublicResourceLegacy],
|
|
||||||
request: {
|
|
||||||
params: setUserResourcesParamsSchema,
|
|
||||||
body: {
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: setUserResourcesBodySchema
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
responses: {
|
|
||||||
200: {
|
|
||||||
description: "Successful response",
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: z.object({
|
|
||||||
data: z.record(z.string(), z.any()).nullable(),
|
|
||||||
success: z.boolean(),
|
|
||||||
error: z.boolean(),
|
|
||||||
message: z.string(),
|
|
||||||
status: z.number()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "post",
|
|
||||||
path: "/public-resource/{resourceId}/users",
|
|
||||||
description:
|
description:
|
||||||
"Set users for a resource. This will replace all existing users. When the resource has an inline policy defined (no shared resource policy assigned), users are set on the inline policy instead of directly on the resource.",
|
"Set users for a resource. This will replace all existing users. When the resource has an inline policy defined (no shared resource policy assigned), users are set on the inline policy instead of directly on the resource.",
|
||||||
tags: [OpenAPITags.PublicResource, OpenAPITags.User],
|
tags: [OpenAPITags.PublicResource, OpenAPITags.User],
|
||||||
|
|||||||
@@ -35,40 +35,6 @@ const setResourceWhitelistParamsSchema = z.strictObject({
|
|||||||
registry.registerPath({
|
registry.registerPath({
|
||||||
method: "post",
|
method: "post",
|
||||||
path: "/resource/{resourceId}/whitelist",
|
path: "/resource/{resourceId}/whitelist",
|
||||||
description:
|
|
||||||
"Set email whitelist for a resource. This will replace all existing emails.",
|
|
||||||
tags: [OpenAPITags.PublicResourceLegacy],
|
|
||||||
request: {
|
|
||||||
params: setResourceWhitelistParamsSchema,
|
|
||||||
body: {
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: setResourceWhitelistBodySchema
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
responses: {
|
|
||||||
200: {
|
|
||||||
description: "Successful response",
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: z.object({
|
|
||||||
data: z.record(z.string(), z.any()).nullable(),
|
|
||||||
success: z.boolean(),
|
|
||||||
error: z.boolean(),
|
|
||||||
message: z.string(),
|
|
||||||
status: z.number()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "post",
|
|
||||||
path: "/public-resource/{resourceId}/whitelist",
|
|
||||||
description:
|
description:
|
||||||
"Set email whitelist for a resource. This will replace all existing emails.",
|
"Set email whitelist for a resource. This will replace all existing emails.",
|
||||||
tags: [OpenAPITags.PublicResource],
|
tags: [OpenAPITags.PublicResource],
|
||||||
|
|||||||
@@ -240,42 +240,6 @@ const updateRawResourceBodySchema = z
|
|||||||
registry.registerPath({
|
registry.registerPath({
|
||||||
method: "post",
|
method: "post",
|
||||||
path: "/resource/{resourceId}",
|
path: "/resource/{resourceId}",
|
||||||
description:
|
|
||||||
"Update a resource. Policy fields (sso, mfa, pincode, password, whitelist) update the inline policy when no shared resource policy is assigned; when a shared policy is assigned those fields override the shared policy for this resource only.",
|
|
||||||
tags: [OpenAPITags.PublicResourceLegacy],
|
|
||||||
request: {
|
|
||||||
params: updateResourceParamsSchema,
|
|
||||||
body: {
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: updateHttpResourceBodySchema.and(
|
|
||||||
updateRawResourceBodySchema
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
responses: {
|
|
||||||
200: {
|
|
||||||
description: "Successful response",
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: z.object({
|
|
||||||
data: z.record(z.string(), z.any()).nullable(),
|
|
||||||
success: z.boolean(),
|
|
||||||
error: z.boolean(),
|
|
||||||
message: z.string(),
|
|
||||||
status: z.number()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "post",
|
|
||||||
path: "/public-resource/{resourceId}",
|
|
||||||
description:
|
description:
|
||||||
"Update a resource. Policy fields (sso, mfa, pincode, password, whitelist) update the inline policy when no shared resource policy is assigned; when a shared policy is assigned those fields override the shared policy for this resource only.",
|
"Update a resource. Policy fields (sso, mfa, pincode, password, whitelist) update the inline policy when no shared resource policy is assigned; when a shared policy is assigned those fields override the shared policy for this resource only.",
|
||||||
tags: [OpenAPITags.PublicResource],
|
tags: [OpenAPITags.PublicResource],
|
||||||
|
|||||||
@@ -49,39 +49,6 @@ registry.registerPath({
|
|||||||
method: "post",
|
method: "post",
|
||||||
path: "/resource/{resourceId}/rule/{ruleId}",
|
path: "/resource/{resourceId}/rule/{ruleId}",
|
||||||
description: "Update a resource rule.",
|
description: "Update a resource rule.",
|
||||||
tags: [OpenAPITags.PublicResourceLegacy],
|
|
||||||
request: {
|
|
||||||
params: updateResourceRuleParamsSchema,
|
|
||||||
body: {
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: updateResourceRuleSchema
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
responses: {
|
|
||||||
200: {
|
|
||||||
description: "Successful response",
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: z.object({
|
|
||||||
data: z.record(z.string(), z.any()).nullable(),
|
|
||||||
success: z.boolean(),
|
|
||||||
error: z.boolean(),
|
|
||||||
message: z.string(),
|
|
||||||
status: z.number()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "post",
|
|
||||||
path: "/public-resource/{resourceId}/rule/{ruleId}",
|
|
||||||
description: "Update a resource rule.",
|
|
||||||
tags: [OpenAPITags.PublicResource, OpenAPITags.Rule],
|
tags: [OpenAPITags.PublicResource, OpenAPITags.Rule],
|
||||||
request: {
|
request: {
|
||||||
params: updateResourceRuleParamsSchema,
|
params: updateResourceRuleParamsSchema,
|
||||||
|
|||||||
@@ -0,0 +1,251 @@
|
|||||||
|
import { Request, Response, NextFunction } from "express";
|
||||||
|
import { z } from "zod";
|
||||||
|
import {
|
||||||
|
db,
|
||||||
|
resources,
|
||||||
|
siteNetworks,
|
||||||
|
siteResources,
|
||||||
|
sites,
|
||||||
|
type Site,
|
||||||
|
type SiteResource
|
||||||
|
} from "@server/db";
|
||||||
|
import { and, eq, inArray } from "drizzle-orm";
|
||||||
|
import response from "@server/lib/response";
|
||||||
|
import HttpCode from "@server/types/HttpCode";
|
||||||
|
import createHttpError from "http-errors";
|
||||||
|
import logger from "@server/logger";
|
||||||
|
import { fromError } from "zod-validation-error";
|
||||||
|
import { OpenAPITags, registry } from "@server/openApi";
|
||||||
|
import {
|
||||||
|
getResourceIdsForSite,
|
||||||
|
getSiteResourceIdsForSite
|
||||||
|
} from "@server/lib/deleteSiteAssociatedResources";
|
||||||
|
import {
|
||||||
|
handleMessagingForUpdatedSiteResource,
|
||||||
|
rebuildClientAssociationsFromSiteResource,
|
||||||
|
waitForSiteResourceRebuildIdle
|
||||||
|
} from "@server/lib/rebuildClientAssociations";
|
||||||
|
|
||||||
|
const approveSiteParamsSchema = z.strictObject({
|
||||||
|
siteId: z.coerce.number().int().positive()
|
||||||
|
});
|
||||||
|
|
||||||
|
registry.registerPath({
|
||||||
|
method: "post",
|
||||||
|
path: "/site/{siteId}/approve",
|
||||||
|
description:
|
||||||
|
"Approve a pending site and approve (and enable when needed) its associated resources.",
|
||||||
|
tags: [OpenAPITags.Site],
|
||||||
|
request: {
|
||||||
|
params: approveSiteParamsSchema
|
||||||
|
},
|
||||||
|
responses: {
|
||||||
|
200: {
|
||||||
|
description: "Successful response",
|
||||||
|
content: {
|
||||||
|
"application/json": {
|
||||||
|
schema: z.object({
|
||||||
|
data: z.record(z.string(), z.any()).nullable(),
|
||||||
|
success: z.boolean(),
|
||||||
|
error: z.boolean(),
|
||||||
|
message: z.string(),
|
||||||
|
status: z.number()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
type SiteResourceEnableSideEffect = {
|
||||||
|
existing: SiteResource;
|
||||||
|
updated: SiteResource;
|
||||||
|
siteIds: number[];
|
||||||
|
};
|
||||||
|
|
||||||
|
export async function approveSite(
|
||||||
|
req: Request,
|
||||||
|
res: Response,
|
||||||
|
next: NextFunction
|
||||||
|
): Promise<any> {
|
||||||
|
try {
|
||||||
|
const parsedParams = approveSiteParamsSchema.safeParse(req.params);
|
||||||
|
if (!parsedParams.success) {
|
||||||
|
return next(
|
||||||
|
createHttpError(
|
||||||
|
HttpCode.BAD_REQUEST,
|
||||||
|
fromError(parsedParams.error).toString()
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const { siteId } = parsedParams.data;
|
||||||
|
|
||||||
|
const [existingSite] = await db
|
||||||
|
.select()
|
||||||
|
.from(sites)
|
||||||
|
.where(eq(sites.siteId, siteId))
|
||||||
|
.limit(1);
|
||||||
|
|
||||||
|
if (!existingSite) {
|
||||||
|
return next(
|
||||||
|
createHttpError(
|
||||||
|
HttpCode.NOT_FOUND,
|
||||||
|
`Site with ID ${siteId} not found`
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!existingSite.orgId) {
|
||||||
|
return next(
|
||||||
|
createHttpError(
|
||||||
|
HttpCode.BAD_REQUEST,
|
||||||
|
`Site with ID ${siteId} has no organization`
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const orgId = existingSite.orgId;
|
||||||
|
let updatedSite: Site | undefined;
|
||||||
|
const siteResourceEnableSideEffects: SiteResourceEnableSideEffect[] =
|
||||||
|
[];
|
||||||
|
|
||||||
|
await db.transaction(async (trx) => {
|
||||||
|
[updatedSite] = await trx
|
||||||
|
.update(sites)
|
||||||
|
.set({ status: "approved" })
|
||||||
|
.where(eq(sites.siteId, siteId))
|
||||||
|
.returning();
|
||||||
|
|
||||||
|
const resourceIds = await getResourceIdsForSite(siteId, trx);
|
||||||
|
const siteResourceIds = await getSiteResourceIdsForSite(
|
||||||
|
siteId,
|
||||||
|
orgId,
|
||||||
|
trx
|
||||||
|
);
|
||||||
|
|
||||||
|
if (resourceIds.length > 0) {
|
||||||
|
const pendingDisabledResources = await trx
|
||||||
|
.select({ resourceId: resources.resourceId })
|
||||||
|
.from(resources)
|
||||||
|
.where(
|
||||||
|
and(
|
||||||
|
inArray(resources.resourceId, resourceIds),
|
||||||
|
eq(resources.status, "pending"),
|
||||||
|
eq(resources.enabled, false)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
await trx
|
||||||
|
.update(resources)
|
||||||
|
.set({ status: "approved" })
|
||||||
|
.where(inArray(resources.resourceId, resourceIds));
|
||||||
|
|
||||||
|
if (pendingDisabledResources.length > 0) {
|
||||||
|
await trx
|
||||||
|
.update(resources)
|
||||||
|
.set({ enabled: true })
|
||||||
|
.where(
|
||||||
|
inArray(
|
||||||
|
resources.resourceId,
|
||||||
|
pendingDisabledResources.map(
|
||||||
|
(r) => r.resourceId
|
||||||
|
)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (siteResourceIds.length > 0) {
|
||||||
|
const existingSiteResources = await trx
|
||||||
|
.select()
|
||||||
|
.from(siteResources)
|
||||||
|
.where(
|
||||||
|
inArray(siteResources.siteResourceId, siteResourceIds)
|
||||||
|
);
|
||||||
|
|
||||||
|
const pendingDisabledSiteResources =
|
||||||
|
existingSiteResources.filter(
|
||||||
|
(sr) => sr.status === "pending" && !sr.enabled
|
||||||
|
);
|
||||||
|
|
||||||
|
await trx
|
||||||
|
.update(siteResources)
|
||||||
|
.set({ status: "approved" })
|
||||||
|
.where(
|
||||||
|
inArray(siteResources.siteResourceId, siteResourceIds)
|
||||||
|
);
|
||||||
|
|
||||||
|
if (pendingDisabledSiteResources.length > 0) {
|
||||||
|
const enableIds = pendingDisabledSiteResources.map(
|
||||||
|
(sr) => sr.siteResourceId
|
||||||
|
);
|
||||||
|
|
||||||
|
const updatedEnabledSiteResources = await trx
|
||||||
|
.update(siteResources)
|
||||||
|
.set({ enabled: true })
|
||||||
|
.where(inArray(siteResources.siteResourceId, enableIds))
|
||||||
|
.returning();
|
||||||
|
|
||||||
|
for (const updated of updatedEnabledSiteResources) {
|
||||||
|
const existing = pendingDisabledSiteResources.find(
|
||||||
|
(sr) => sr.siteResourceId === updated.siteResourceId
|
||||||
|
);
|
||||||
|
if (!existing || !updated.networkId) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
const networkSites = await trx
|
||||||
|
.select({ siteId: siteNetworks.siteId })
|
||||||
|
.from(siteNetworks)
|
||||||
|
.where(
|
||||||
|
eq(siteNetworks.networkId, updated.networkId)
|
||||||
|
);
|
||||||
|
|
||||||
|
siteResourceEnableSideEffects.push({
|
||||||
|
existing,
|
||||||
|
updated,
|
||||||
|
siteIds: networkSites.map((s) => s.siteId)
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
for (const sideEffect of siteResourceEnableSideEffects) {
|
||||||
|
rebuildClientAssociationsFromSiteResource(sideEffect.updated)
|
||||||
|
.then(() =>
|
||||||
|
waitForSiteResourceRebuildIdle(
|
||||||
|
sideEffect.updated.siteResourceId
|
||||||
|
)
|
||||||
|
)
|
||||||
|
.then(() =>
|
||||||
|
handleMessagingForUpdatedSiteResource(
|
||||||
|
sideEffect.existing,
|
||||||
|
sideEffect.updated,
|
||||||
|
sideEffect.siteIds,
|
||||||
|
sideEffect.siteIds
|
||||||
|
)
|
||||||
|
)
|
||||||
|
.catch((e) => {
|
||||||
|
logger.error(
|
||||||
|
`Failed to rebuild and handle messaging for site resource ${sideEffect.updated.siteResourceId} after site approval:`,
|
||||||
|
e
|
||||||
|
);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
return response(res, {
|
||||||
|
data: updatedSite ?? null,
|
||||||
|
success: true,
|
||||||
|
error: false,
|
||||||
|
message: "Site approved successfully",
|
||||||
|
status: HttpCode.OK
|
||||||
|
});
|
||||||
|
} catch (error) {
|
||||||
|
logger.error(error);
|
||||||
|
return next(
|
||||||
|
createHttpError(HttpCode.INTERNAL_SERVER_ERROR, "An error occurred")
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -159,15 +159,39 @@ export async function deleteSite(
|
|||||||
siteResources: []
|
siteResources: []
|
||||||
};
|
};
|
||||||
|
|
||||||
await db.transaction(async (trx) => {
|
|
||||||
if (deleteResources) {
|
if (deleteResources) {
|
||||||
|
await db.transaction(async (trx) => {
|
||||||
resourceSideEffects = await deleteAssociatedResourcesForSite(
|
resourceSideEffects = await deleteAssociatedResourcesForSite(
|
||||||
siteId,
|
siteId,
|
||||||
site.orgId,
|
site.orgId,
|
||||||
trx
|
trx
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (resourceSideEffects.resources.length > 0) {
|
||||||
|
await usageService.add(
|
||||||
|
site.orgId,
|
||||||
|
LimitId.PUBLIC_RESOURCES,
|
||||||
|
-resourceSideEffects.resources.length,
|
||||||
|
trx
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (resourceSideEffects.siteResources.length > 0) {
|
||||||
|
await usageService.add(
|
||||||
|
site.orgId,
|
||||||
|
LimitId.PRIVATE_RESOURCES,
|
||||||
|
-resourceSideEffects.siteResources.length,
|
||||||
|
trx
|
||||||
|
);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
await runDeleteSiteAssociatedResourcesSideEffects(
|
||||||
|
resourceSideEffects
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
await db.transaction(async (trx) => {
|
||||||
if (site.type == "wireguard") {
|
if (site.type == "wireguard") {
|
||||||
if (site.pubKey) {
|
if (site.pubKey) {
|
||||||
await deletePeer(site.exitNodeId!, site.pubKey);
|
await deletePeer(site.exitNodeId!, site.pubKey);
|
||||||
@@ -180,12 +204,6 @@ export async function deleteSite(
|
|||||||
await usageService.add(site.orgId, LimitId.SITES, -1, trx);
|
await usageService.add(site.orgId, LimitId.SITES, -1, trx);
|
||||||
});
|
});
|
||||||
|
|
||||||
if (deleteResources) {
|
|
||||||
await runDeleteSiteAssociatedResourcesSideEffects(
|
|
||||||
resourceSideEffects
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (deletedNewt) {
|
if (deletedNewt) {
|
||||||
const payload = {
|
const payload = {
|
||||||
type: `newt/wg/terminate`,
|
type: `newt/wg/terminate`,
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ export * from "./getStatusHistory";
|
|||||||
export * from "./createSite";
|
export * from "./createSite";
|
||||||
export * from "./deleteSite";
|
export * from "./deleteSite";
|
||||||
export * from "./updateSite";
|
export * from "./updateSite";
|
||||||
|
export * from "./approveSite";
|
||||||
|
export * from "./rejectSite";
|
||||||
export * from "./listSites";
|
export * from "./listSites";
|
||||||
export * from "./listSiteRoles";
|
export * from "./listSiteRoles";
|
||||||
export * from "./pickSiteDefaults";
|
export * from "./pickSiteDefaults";
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ registry.registerPath({
|
|||||||
method: "get",
|
method: "get",
|
||||||
path: "/org/{orgId}/sites",
|
path: "/org/{orgId}/sites",
|
||||||
description: "List all sites in an organization",
|
description: "List all sites in an organization",
|
||||||
tags: [OpenAPITags.Site],
|
tags: [OpenAPITags.Org, OpenAPITags.Site],
|
||||||
request: {
|
request: {
|
||||||
params: listSitesParamsSchema,
|
params: listSitesParamsSchema,
|
||||||
query: listSitesSchema
|
query: listSitesSchema
|
||||||
|
|||||||
@@ -0,0 +1,196 @@
|
|||||||
|
import { Request, Response, NextFunction } from "express";
|
||||||
|
import { z } from "zod";
|
||||||
|
import { db } from "@server/db";
|
||||||
|
import { newts, sites } from "@server/db";
|
||||||
|
import { eq } from "drizzle-orm";
|
||||||
|
import response from "@server/lib/response";
|
||||||
|
import HttpCode from "@server/types/HttpCode";
|
||||||
|
import createHttpError from "http-errors";
|
||||||
|
import logger from "@server/logger";
|
||||||
|
import { deletePeer } from "../gerbil/peers";
|
||||||
|
import { fromError } from "zod-validation-error";
|
||||||
|
import { sendToClient } from "#dynamic/routers/ws";
|
||||||
|
import { OpenAPITags, registry } from "@server/openApi";
|
||||||
|
import { cleanupSiteAssociations } from "@server/lib/rebuildClientAssociations";
|
||||||
|
import { usageService } from "@server/lib/billing/usageService";
|
||||||
|
import { LimitId } from "@server/lib/billing";
|
||||||
|
import {
|
||||||
|
deletePendingAssociatedResourcesForSite,
|
||||||
|
exceedsSiteAssociatedResourceDeleteLimit,
|
||||||
|
getPendingAssociatedResourceCountForSite,
|
||||||
|
runDeleteSiteAssociatedResourcesSideEffects,
|
||||||
|
MAX_SITE_ASSOCIATED_RESOURCES_FOR_BULK_DELETE,
|
||||||
|
type DeleteSiteAssociatedResourcesSideEffects
|
||||||
|
} from "@server/lib/deleteSiteAssociatedResources";
|
||||||
|
|
||||||
|
const rejectSiteParamsSchema = z.strictObject({
|
||||||
|
siteId: z.coerce.number().int().positive()
|
||||||
|
});
|
||||||
|
|
||||||
|
registry.registerPath({
|
||||||
|
method: "post",
|
||||||
|
path: "/site/{siteId}/reject",
|
||||||
|
description:
|
||||||
|
"Reject a pending site by deleting it and any associated resources that are still pending.",
|
||||||
|
tags: [OpenAPITags.Site],
|
||||||
|
request: {
|
||||||
|
params: rejectSiteParamsSchema
|
||||||
|
},
|
||||||
|
responses: {
|
||||||
|
200: {
|
||||||
|
description: "Successful response",
|
||||||
|
content: {
|
||||||
|
"application/json": {
|
||||||
|
schema: z.object({
|
||||||
|
data: z.record(z.string(), z.any()).nullable(),
|
||||||
|
success: z.boolean(),
|
||||||
|
error: z.boolean(),
|
||||||
|
message: z.string(),
|
||||||
|
status: z.number()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
export async function rejectSite(
|
||||||
|
req: Request,
|
||||||
|
res: Response,
|
||||||
|
next: NextFunction
|
||||||
|
): Promise<any> {
|
||||||
|
try {
|
||||||
|
const parsedParams = rejectSiteParamsSchema.safeParse(req.params);
|
||||||
|
if (!parsedParams.success) {
|
||||||
|
return next(
|
||||||
|
createHttpError(
|
||||||
|
HttpCode.BAD_REQUEST,
|
||||||
|
fromError(parsedParams.error).toString()
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const { siteId } = parsedParams.data;
|
||||||
|
|
||||||
|
const [site] = await db
|
||||||
|
.select()
|
||||||
|
.from(sites)
|
||||||
|
.where(eq(sites.siteId, siteId))
|
||||||
|
.limit(1);
|
||||||
|
|
||||||
|
if (!site) {
|
||||||
|
return next(
|
||||||
|
createHttpError(
|
||||||
|
HttpCode.NOT_FOUND,
|
||||||
|
`Site with ID ${siteId} not found`
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!site.orgId) {
|
||||||
|
return next(
|
||||||
|
createHttpError(
|
||||||
|
HttpCode.BAD_REQUEST,
|
||||||
|
`Site with ID ${siteId} has no organization`
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const pendingAssociatedResourceCount =
|
||||||
|
await getPendingAssociatedResourceCountForSite(siteId, site.orgId);
|
||||||
|
|
||||||
|
if (
|
||||||
|
exceedsSiteAssociatedResourceDeleteLimit(
|
||||||
|
pendingAssociatedResourceCount
|
||||||
|
)
|
||||||
|
) {
|
||||||
|
return next(
|
||||||
|
createHttpError(
|
||||||
|
HttpCode.BAD_REQUEST,
|
||||||
|
`Cannot reject site and associated pending resources when the site has more than ${MAX_SITE_ASSOCIATED_RESOURCES_FOR_BULK_DELETE} pending resources`
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const [deletedNewt] = await db
|
||||||
|
.select()
|
||||||
|
.from(newts)
|
||||||
|
.where(eq(newts.siteId, siteId))
|
||||||
|
.limit(1);
|
||||||
|
|
||||||
|
let resourceSideEffects: DeleteSiteAssociatedResourcesSideEffects = {
|
||||||
|
resources: [],
|
||||||
|
siteResources: []
|
||||||
|
};
|
||||||
|
|
||||||
|
await db.transaction(async (trx) => {
|
||||||
|
resourceSideEffects = await deletePendingAssociatedResourcesForSite(
|
||||||
|
siteId,
|
||||||
|
site.orgId,
|
||||||
|
trx
|
||||||
|
);
|
||||||
|
|
||||||
|
if (resourceSideEffects.resources.length > 0) {
|
||||||
|
await usageService.add(
|
||||||
|
site.orgId,
|
||||||
|
LimitId.PUBLIC_RESOURCES,
|
||||||
|
-resourceSideEffects.resources.length,
|
||||||
|
trx
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (resourceSideEffects.siteResources.length > 0) {
|
||||||
|
await usageService.add(
|
||||||
|
site.orgId,
|
||||||
|
LimitId.PRIVATE_RESOURCES,
|
||||||
|
-resourceSideEffects.siteResources.length,
|
||||||
|
trx
|
||||||
|
);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
await runDeleteSiteAssociatedResourcesSideEffects(resourceSideEffects);
|
||||||
|
|
||||||
|
await db.transaction(async (trx) => {
|
||||||
|
if (site.type == "wireguard") {
|
||||||
|
if (site.pubKey) {
|
||||||
|
await deletePeer(site.exitNodeId!, site.pubKey);
|
||||||
|
}
|
||||||
|
} else if (site.type == "newt") {
|
||||||
|
await cleanupSiteAssociations(site, trx);
|
||||||
|
}
|
||||||
|
|
||||||
|
await trx.delete(sites).where(eq(sites.siteId, siteId));
|
||||||
|
await usageService.add(site.orgId, LimitId.SITES, -1, trx);
|
||||||
|
});
|
||||||
|
|
||||||
|
if (deletedNewt) {
|
||||||
|
const payload = {
|
||||||
|
type: `newt/wg/terminate`,
|
||||||
|
data: {}
|
||||||
|
};
|
||||||
|
sendToClient(deletedNewt.newtId, payload).catch((error) => {
|
||||||
|
logger.error(
|
||||||
|
"Failed to send termination message to newt:",
|
||||||
|
error
|
||||||
|
);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
return response(res, {
|
||||||
|
data: null,
|
||||||
|
success: true,
|
||||||
|
error: false,
|
||||||
|
message: "Site rejected successfully",
|
||||||
|
status: HttpCode.OK
|
||||||
|
});
|
||||||
|
} catch (error) {
|
||||||
|
logger.error(error);
|
||||||
|
if (createHttpError.isHttpError(error)) {
|
||||||
|
return next(error);
|
||||||
|
}
|
||||||
|
return next(
|
||||||
|
createHttpError(HttpCode.INTERNAL_SERVER_ERROR, "An error occurred")
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -21,7 +21,6 @@ const updateSiteBodySchema = z
|
|||||||
name: z.string().min(1).max(255).optional(),
|
name: z.string().min(1).max(255).optional(),
|
||||||
niceId: z.string().min(1).max(255).optional(),
|
niceId: z.string().min(1).max(255).optional(),
|
||||||
dockerSocketEnabled: z.boolean().optional(),
|
dockerSocketEnabled: z.boolean().optional(),
|
||||||
status: z.enum(["pending", "approved"]).optional(),
|
|
||||||
autoUpdateEnabled: z.boolean().optional(),
|
autoUpdateEnabled: z.boolean().optional(),
|
||||||
autoUpdateOverrideOrg: z.boolean().optional()
|
autoUpdateOverrideOrg: z.boolean().optional()
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -31,40 +31,6 @@ const addClientToSiteResourceParamsSchema = z
|
|||||||
registry.registerPath({
|
registry.registerPath({
|
||||||
method: "post",
|
method: "post",
|
||||||
path: "/site-resource/{siteResourceId}/clients/add",
|
path: "/site-resource/{siteResourceId}/clients/add",
|
||||||
description:
|
|
||||||
"Add a single client to a site resource. Clients with a userId cannot be added.",
|
|
||||||
tags: [OpenAPITags.PrivateResourceLegacy],
|
|
||||||
request: {
|
|
||||||
params: addClientToSiteResourceParamsSchema,
|
|
||||||
body: {
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: addClientToSiteResourceBodySchema
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
responses: {
|
|
||||||
200: {
|
|
||||||
description: "Successful response",
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: z.object({
|
|
||||||
data: z.record(z.string(), z.any()).nullable(),
|
|
||||||
success: z.boolean(),
|
|
||||||
error: z.boolean(),
|
|
||||||
message: z.string(),
|
|
||||||
status: z.number()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "post",
|
|
||||||
path: "/private-resource/{siteResourceId}/clients/add",
|
|
||||||
description:
|
description:
|
||||||
"Add a single client to a site resource. Clients with a userId cannot be added.",
|
"Add a single client to a site resource. Clients with a userId cannot be added.",
|
||||||
tags: [OpenAPITags.PrivateResource, OpenAPITags.Client],
|
tags: [OpenAPITags.PrivateResource, OpenAPITags.Client],
|
||||||
|
|||||||
@@ -33,39 +33,6 @@ registry.registerPath({
|
|||||||
method: "post",
|
method: "post",
|
||||||
path: "/site-resource/{siteResourceId}/roles/add",
|
path: "/site-resource/{siteResourceId}/roles/add",
|
||||||
description: "Add a single role to a site resource.",
|
description: "Add a single role to a site resource.",
|
||||||
tags: [OpenAPITags.PrivateResourceLegacy],
|
|
||||||
request: {
|
|
||||||
params: addRoleToSiteResourceParamsSchema,
|
|
||||||
body: {
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: addRoleToSiteResourceBodySchema
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
responses: {
|
|
||||||
200: {
|
|
||||||
description: "Successful response",
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: z.object({
|
|
||||||
data: z.record(z.string(), z.any()).nullable(),
|
|
||||||
success: z.boolean(),
|
|
||||||
error: z.boolean(),
|
|
||||||
message: z.string(),
|
|
||||||
status: z.number()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "post",
|
|
||||||
path: "/private-resource/{siteResourceId}/roles/add",
|
|
||||||
description: "Add a single role to a site resource.",
|
|
||||||
tags: [OpenAPITags.PrivateResource, OpenAPITags.Role],
|
tags: [OpenAPITags.PrivateResource, OpenAPITags.Role],
|
||||||
request: {
|
request: {
|
||||||
params: addRoleToSiteResourceParamsSchema,
|
params: addRoleToSiteResourceParamsSchema,
|
||||||
|
|||||||
@@ -33,39 +33,6 @@ registry.registerPath({
|
|||||||
method: "post",
|
method: "post",
|
||||||
path: "/site-resource/{siteResourceId}/users/add",
|
path: "/site-resource/{siteResourceId}/users/add",
|
||||||
description: "Add a single user to a site resource.",
|
description: "Add a single user to a site resource.",
|
||||||
tags: [OpenAPITags.PrivateResourceLegacy],
|
|
||||||
request: {
|
|
||||||
params: addUserToSiteResourceParamsSchema,
|
|
||||||
body: {
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: addUserToSiteResourceBodySchema
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
responses: {
|
|
||||||
200: {
|
|
||||||
description: "Successful response",
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: z.object({
|
|
||||||
data: z.record(z.string(), z.any()).nullable(),
|
|
||||||
success: z.boolean(),
|
|
||||||
error: z.boolean(),
|
|
||||||
message: z.string(),
|
|
||||||
status: z.number()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "post",
|
|
||||||
path: "/private-resource/{siteResourceId}/users/add",
|
|
||||||
description: "Add a single user to a site resource.",
|
|
||||||
tags: [OpenAPITags.PrivateResource, OpenAPITags.User],
|
tags: [OpenAPITags.PrivateResource, OpenAPITags.User],
|
||||||
request: {
|
request: {
|
||||||
params: addUserToSiteResourceParamsSchema,
|
params: addUserToSiteResourceParamsSchema,
|
||||||
|
|||||||
@@ -38,39 +38,6 @@ registry.registerPath({
|
|||||||
method: "post",
|
method: "post",
|
||||||
path: "/client/{clientId}/site-resources",
|
path: "/client/{clientId}/site-resources",
|
||||||
description: "Add a machine client to multiple site resources at once.",
|
description: "Add a machine client to multiple site resources at once.",
|
||||||
tags: [OpenAPITags.PrivateResourceLegacy],
|
|
||||||
request: {
|
|
||||||
params: batchAddClientToSiteResourcesParamsSchema,
|
|
||||||
body: {
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: batchAddClientToSiteResourcesBodySchema
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
responses: {
|
|
||||||
200: {
|
|
||||||
description: "Successful response",
|
|
||||||
content: {
|
|
||||||
"application/json": {
|
|
||||||
schema: z.object({
|
|
||||||
data: z.record(z.string(), z.any()).nullable(),
|
|
||||||
success: z.boolean(),
|
|
||||||
error: z.boolean(),
|
|
||||||
message: z.string(),
|
|
||||||
status: z.number()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
registry.registerPath({
|
|
||||||
method: "post",
|
|
||||||
path: "/client/{clientId}/private-resources",
|
|
||||||
description: "Add a machine client to multiple site resources at once.",
|
|
||||||
tags: [OpenAPITags.Client],
|
tags: [OpenAPITags.Client],
|
||||||
request: {
|
request: {
|
||||||
params: batchAddClientToSiteResourcesParamsSchema,
|
params: batchAddClientToSiteResourcesParamsSchema,
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user