@pod-os/core 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.
- package/lib/Store.d.ts +10 -0
- package/lib/Store.spec.d.ts +1 -0
- package/lib/authentication/index.d.ts +11 -0
- package/lib/index.d.ts +13 -0
- package/lib/index.js +35312 -0
- package/lib/thing/Thing.anyValue.spec.d.ts +1 -0
- package/lib/thing/Thing.d.ts +17 -0
- package/lib/thing/Thing.description.spec.d.ts +1 -0
- package/lib/thing/Thing.label.spec.d.ts +1 -0
- package/lib/thing/Thing.literals.spec.d.ts +1 -0
- package/lib/thing/Thing.relations.spec.d.ts +1 -0
- package/lib/thing/index.d.ts +1 -0
- package/package.json +40 -0
package/lib/Store.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Fetcher, IndexedFormula } from "rdflib";
|
|
2
|
+
import { BrowserSession } from "./authentication";
|
|
3
|
+
import { Thing } from "./thing";
|
|
4
|
+
export declare class Store {
|
|
5
|
+
fetcher: Fetcher;
|
|
6
|
+
graph: IndexedFormula;
|
|
7
|
+
constructor(session: BrowserSession);
|
|
8
|
+
fetch(uri: string): Promise<Response>;
|
|
9
|
+
get(uri: string): Thing;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ISessionInfo } from "@inrupt/solid-client-authn-browser";
|
|
2
|
+
export declare class BrowserSession {
|
|
3
|
+
private readonly session;
|
|
4
|
+
private readonly _authenticatedFetch;
|
|
5
|
+
get authenticatedFetch(): (url: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
|
|
6
|
+
constructor();
|
|
7
|
+
handleIncomingRedirect(): Promise<ISessionInfo | undefined>;
|
|
8
|
+
login(oidcIssuer: string): Promise<void>;
|
|
9
|
+
logout(): Promise<void>;
|
|
10
|
+
trackSession(callback: (session: ISessionInfo) => unknown): Promise<void>;
|
|
11
|
+
}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ISessionInfo } from "@inrupt/solid-client-authn-browser";
|
|
2
|
+
import { Store } from "./Store";
|
|
3
|
+
export * from "./authentication";
|
|
4
|
+
export declare class PodOS {
|
|
5
|
+
private readonly session;
|
|
6
|
+
readonly store: Store;
|
|
7
|
+
constructor();
|
|
8
|
+
handleIncomingRedirect(): void;
|
|
9
|
+
fetch(uri: string): Promise<Response>;
|
|
10
|
+
trackSession(callback: (session: ISessionInfo) => unknown): Promise<void>;
|
|
11
|
+
logout(): Promise<void>;
|
|
12
|
+
login(oidcIssuer?: string): Promise<void>;
|
|
13
|
+
}
|