@atlasauth/vue 0.1.0

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.
@@ -0,0 +1,42 @@
1
+ export interface SessionClaims {
2
+ sub: string;
3
+ sid: string;
4
+ exp: number;
5
+ org_id?: string;
6
+ org_slug?: string;
7
+ org_role?: string;
8
+ org_permissions?: string[];
9
+ mfa?: boolean;
10
+ [claim: string]: unknown;
11
+ }
12
+ export interface AtlasUser {
13
+ id: string;
14
+ first_name: string | null;
15
+ last_name: string | null;
16
+ username: string | null;
17
+ image_url: string | null;
18
+ public_metadata: Record<string, unknown>;
19
+ unsafe_metadata: Record<string, unknown>;
20
+ mfa_enabled: boolean;
21
+ has_password: boolean;
22
+ email_addresses?: Array<{
23
+ id: string;
24
+ email_address: string;
25
+ verified: boolean;
26
+ primary: boolean;
27
+ }>;
28
+ }
29
+ export interface AtlasOrganizationMembership {
30
+ role: string;
31
+ organization: {
32
+ id: string;
33
+ name: string;
34
+ slug: string;
35
+ image_url: string | null;
36
+ };
37
+ }
38
+ export interface AtlasSession {
39
+ id: string;
40
+ status: string;
41
+ last_active_organization_id: string | null;
42
+ }
package/dist/types.js ADDED
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "@atlasauth/vue",
3
+ "version": "0.1.0",
4
+ "main": "./dist/index.js",
5
+ "types": "./dist/index.d.ts",
6
+ "dependencies": {
7
+ "@atlasauth/js": "0.1.0",
8
+ "@atlasauth/authz": "0.1.0"
9
+ },
10
+ "peerDependencies": {
11
+ "vue": ">=3.3"
12
+ },
13
+ "devDependencies": {
14
+ "@vue/test-utils": "^2.4.6",
15
+ "happy-dom": "^15.11.0",
16
+ "typescript": "^5.6.3",
17
+ "vitest": "^2.1.4",
18
+ "vue": "^3.4.0"
19
+ },
20
+ "publishConfig": {
21
+ "access": "public"
22
+ },
23
+ "files": [
24
+ "dist",
25
+ "README.md"
26
+ ],
27
+ "scripts": {
28
+ "build": "tsc -p tsconfig.build.json",
29
+ "typecheck": "tsc -p tsconfig.json --noEmit",
30
+ "test": "vitest run"
31
+ }
32
+ }