UNPKG

@archon-inc/sdk

Version:

Integrate easily to our government platform using this SDK. More info on https://archon.inc/sdk

25 lines 806 B
import { AxiosResponse } from 'axios'; import { RoleName } from "./types/policy.js"; import { UserId } from "./types/user.js"; declare class Archon { private static instance; private serviceToken?; private userId?; private roleName?; private rootUrl; private publicUrl; private componentName; private sessionId?; constructor(); setServiceToken(token: string): void; setUserUuid(uuid: UserId): void; setRoleName(role: RoleName): void; setComponentName(name: string): void; getComponentName(): string; getPublicUrl(): string; private authenticate; request(route: string, method: string, body?: object): Promise<AxiosResponse>; } declare const archonInstance: Archon; export { archonInstance as Archon }; //# sourceMappingURL=Archon.d.ts.map