@eduzz/miau-client 0.0.3 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/MiauClient.d.ts +22 -0
- package/dist/MiauMiddleware.d.ts +3 -0
- package/dist/index.cjs.js +16690 -0
- package/dist/index.cjs.js.map +1 -0
- package/{src/index.ts → dist/index.d.ts} +1 -1
- package/dist/index.esm.js +16681 -0
- package/dist/index.esm.js.map +1 -0
- package/package.json +22 -8
- package/.prettierrc.js +0 -3
- package/.turbo/turbo-build.log +0 -13
- package/.turbo/turbo-lint.log +0 -4
- package/dist/index.js +0 -11828
- package/dist/index.js.map +0 -7
- package/eslint.config.js +0 -3
- package/src/MiauClient.ts +0 -81
- package/src/MiauMiddleware.ts +0 -60
- package/src/types/index.d.ts +0 -9
- package/tsconfig.json +0 -14
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type Permission } from '@eduzz/miau-types';
|
|
2
|
+
type MiauClientConfig = {
|
|
3
|
+
apiUrl: string;
|
|
4
|
+
appSecret: string;
|
|
5
|
+
};
|
|
6
|
+
export declare class MiauClient {
|
|
7
|
+
private apiUrl;
|
|
8
|
+
private jwtToken;
|
|
9
|
+
private jwksClient;
|
|
10
|
+
private basicAuthToken;
|
|
11
|
+
private permissionsCache;
|
|
12
|
+
private permissionsRequests;
|
|
13
|
+
constructor(props: MiauClientConfig);
|
|
14
|
+
getPublicKey(kid: string): Promise<string>;
|
|
15
|
+
getToken(): Promise<string | undefined>;
|
|
16
|
+
getPermissions(targetAppId: string): Promise<Permission>;
|
|
17
|
+
private requestPermissions;
|
|
18
|
+
private getApiJwtUrl;
|
|
19
|
+
private getPermissionsUrl;
|
|
20
|
+
private getJwksUrl;
|
|
21
|
+
}
|
|
22
|
+
export {};
|