UNPKG

@fntio/infra-client

Version:

Self-hosted AWS access portal: credential vending, target-account trust, and grant-driven private networking as CDK stacks and constructs.

2 lines (1 loc) • 708 B
import{F as n,I as o,Kb as i,k as t}from"./chunk-FYA6QUPZ.js";var a=class r{http=o(i);list(){return this.http.get("/api/tokens").pipe(t(e=>e.tokens))}create(e){return this.http.post("/api/tokens",e)}revoke(e){return this.http.delete(`/api/tokens/${encodeURIComponent(e)}`)}expiryFeed(){return this.http.get("/api/tokens/expiry")}markExpirySeen(){return this.http.post("/api/tokens/expiry/seen",{}).pipe(t(e=>e.cleared))}adminList(){return this.http.get("/api/admin/tokens").pipe(t(e=>e.tokens))}adminRevoke(e){return this.http.delete(`/api/admin/tokens/${encodeURIComponent(e)}`)}static \u0275fac=function(p){return new(p||r)};static \u0275prov=n({token:r,factory:r.\u0275fac,providedIn:"root"})};export{a};