You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
1.3 KiB
84 lines
1.3 KiB
import { LdoJsonldContext, LdSet } from "@ldo/ldo";
|
|
|
|
/**
|
|
* =============================================================================
|
|
* Typescript Typings for solid
|
|
* =============================================================================
|
|
*/
|
|
|
|
/**
|
|
* Container Type
|
|
*/
|
|
export interface Container {
|
|
"@id"?: string;
|
|
"@context"?: LdoJsonldContext;
|
|
/**
|
|
* A container on a Solid server
|
|
*/
|
|
type?: LdSet<
|
|
| {
|
|
"@id": "Container";
|
|
}
|
|
| {
|
|
"@id": "Resource";
|
|
}
|
|
>;
|
|
/**
|
|
* Date modified
|
|
*/
|
|
modified?: string;
|
|
/**
|
|
* Defines a Solid Resource
|
|
*/
|
|
contains?: LdSet<Resource>;
|
|
/**
|
|
* ?
|
|
*/
|
|
mtime?: number;
|
|
/**
|
|
* size of this container
|
|
*/
|
|
size?: number;
|
|
}
|
|
|
|
/**
|
|
* Resource Type
|
|
*/
|
|
export interface Resource {
|
|
"@id"?: string;
|
|
"@context"?: LdoJsonldContext;
|
|
/**
|
|
* Any resource on a Solid server
|
|
*/
|
|
type?: LdSet<
|
|
| {
|
|
"@id": "Resource";
|
|
}
|
|
| {
|
|
"@id": "Resource2";
|
|
}
|
|
>;
|
|
/**
|
|
* Date modified
|
|
*/
|
|
modified?: string;
|
|
/**
|
|
* ?
|
|
*/
|
|
mtime?: number;
|
|
/**
|
|
* size of this container
|
|
*/
|
|
size?: number;
|
|
}
|
|
|
|
/**
|
|
* ProfileWithStorage Type
|
|
*/
|
|
export interface ProfileWithStorage {
|
|
"@id"?: string;
|
|
"@context"?: LdoJsonldContext;
|
|
storage?: LdSet<{
|
|
"@id": string;
|
|
}>;
|
|
}
|
|
|