@fluido/dreno-core
Advanced tools
Comparing version 0.0.1-alpha-1 to 0.0.1-alpha-2
@@ -18,1 +18,9 @@ export const URLS = { | ||
}; | ||
export const ENV_KEYS = { | ||
KEY: 'DRENO_KEY', | ||
}; | ||
export const RESERVED_PATHNAMES = { | ||
PREFIX: '/____dreno', | ||
PUBLIC_ACCESS: '/____dreno/public-access', | ||
AUTH_CALLBACK: '/____dreno/callback', | ||
}; |
@@ -5,3 +5,13 @@ export declare class DrenoClient { | ||
get isAuthorized(): boolean; | ||
get user(): any; | ||
get user(): { | ||
id: string; | ||
createdAt: Date; | ||
name: string; | ||
status: "active" | "suspended" | "deleted" | "banished"; | ||
updatedAt: Date; | ||
lastSignInAt: Date; | ||
imageURL?: string | undefined; | ||
externalId?: string | undefined; | ||
description?: string | undefined; | ||
} | null; | ||
get authorizationKeys(): Record<string, string | undefined> | null; | ||
@@ -8,0 +18,0 @@ get projectId(): string; |
@@ -15,1 +15,9 @@ export declare const URLS: { | ||
}; | ||
export declare const ENV_KEYS: { | ||
KEY: string; | ||
}; | ||
export declare const RESERVED_PATHNAMES: { | ||
PREFIX: string; | ||
PUBLIC_ACCESS: string; | ||
AUTH_CALLBACK: string; | ||
}; |
@@ -18,1 +18,9 @@ export const URLS = { | ||
}; | ||
export const ENV_KEYS = { | ||
KEY: 'DRENO_KEY', | ||
}; | ||
export const RESERVED_PATHNAMES = { | ||
PREFIX: '/____dreno', | ||
PUBLIC_ACCESS: '/____dreno/public-access', | ||
AUTH_CALLBACK: '/____dreno/callback', | ||
}; |
@@ -15,6 +15,6 @@ import { type Output } from 'valibot'; | ||
}, { | ||
name: string; | ||
id: string; | ||
type: "personal" | "business"; | ||
createdAt: Date; | ||
name: string; | ||
updatedAt: Date; | ||
@@ -21,0 +21,0 @@ ownerId: string; |
@@ -15,6 +15,6 @@ import { type Output } from 'valibot'; | ||
}, { | ||
name: string; | ||
id: string; | ||
type: "personal" | "business"; | ||
createdAt: Date; | ||
name: string; | ||
status: "active" | "suspended" | "deleted"; | ||
@@ -41,5 +41,5 @@ updatedAt: Date; | ||
}, { | ||
name: string; | ||
id: string; | ||
createdAt: Date; | ||
name: string; | ||
status: "active" | "suspended" | "deleted"; | ||
@@ -46,0 +46,0 @@ updatedAt: Date; |
@@ -13,5 +13,5 @@ import { type Output } from 'valibot'; | ||
}, { | ||
name: string; | ||
id: string; | ||
createdAt: Date; | ||
name: string; | ||
status: "active" | "suspended" | "deleted" | "banished"; | ||
@@ -18,0 +18,0 @@ updatedAt: Date; |
{ | ||
"name": "@fluido/dreno-core", | ||
"version": "0.0.1-alpha-1", | ||
"version": "0.0.1-alpha-2", | ||
"description": "Dreno library", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
import Cookies from 'js-cookie' | ||
import { assertAuthorizationsKeys } from './assertions' | ||
import { COOKIES_KEYS, HEADER_KEYS, URLS } from './constants' | ||
import type { UserData } from './schemas' | ||
@@ -12,3 +13,3 @@ export class DrenoClient { | ||
#authorized: boolean | null = null | ||
#user: any | null = null | ||
#user: UserData | null = null | ||
@@ -15,0 +16,0 @@ #lock: Promise<void> | null = null |
@@ -23,1 +23,11 @@ export const URLS = { | ||
} | ||
export const ENV_KEYS = { | ||
KEY: 'DRENO_KEY', | ||
} | ||
export const RESERVED_PATHNAMES = { | ||
PREFIX: '/____dreno', | ||
PUBLIC_ACCESS: '/____dreno/public-access', | ||
AUTH_CALLBACK: '/____dreno/callback', | ||
} |
58367
1438