@fedify/fedify 0.10.0-dev.198 → 0.10.0-dev.200
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGES.md +23 -1
- package/esm/codegen/schema.yaml +6 -1
- package/esm/runtime/key.js +1 -1
- package/esm/sig/http.js +10 -61
- package/esm/sig/key.js +85 -0
- package/esm/testing/fixtures/example.com/person2 +20 -3
- package/esm/testing/fixtures/server.example/users/alice +20 -0
- package/esm/testing/fixtures/wizard.casa/users/hongminhee +69 -0
- package/esm/vocab/dataintegrityproof.yaml +1 -1
- package/esm/vocab/object.yaml +1 -0
- package/esm/vocab/vocab.js +780 -480
- package/package.json +3 -2
- package/types/codegen/schema.d.ts.map +1 -1
- package/types/sig/http.d.ts +1 -1
- package/types/sig/http.d.ts.map +1 -1
- package/types/sig/key.d.ts +38 -0
- package/types/sig/key.d.ts.map +1 -1
- package/types/sig/proof.d.ts.map +1 -0
- package/types/sig/proof.test.d.ts.map +1 -0
- package/types/testing/keys.d.ts.map +1 -1
- package/types/vocab/vocab.d.ts +48 -0
- package/types/vocab/vocab.d.ts.map +1 -1
- package/esm/testing/fixtures/example.com/key3 +0 -7
- package/esm/testing/fixtures/example.com/key4 +0 -7
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fedify/fedify",
|
3
|
-
"version": "0.10.0-dev.
|
3
|
+
"version": "0.10.0-dev.200+e581ce37",
|
4
4
|
"description": "An ActivityPub server framework",
|
5
5
|
"keywords": [
|
6
6
|
"ActivityPub",
|
@@ -100,7 +100,8 @@
|
|
100
100
|
"@types/node": "^20.9.0",
|
101
101
|
"picocolors": "^1.0.0",
|
102
102
|
"@cfworker/json-schema": "^1.12.8",
|
103
|
-
"fast-check": "^3.18.0"
|
103
|
+
"fast-check": "^3.18.0",
|
104
|
+
"json-canon": "^1.0.1"
|
104
105
|
},
|
105
106
|
"_generatedBy": "dnt@dev"
|
106
107
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sour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AGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,GACC,kBAAkB,GAAG,oBAAoB,GAAG;IAC5C;;;;OAIG;IACH,UAAU,EAAE,IAAI,CAAC;CAClB,CAAC;AAEJ;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,GAAG,GAAG,eAAe,GAAG,CAAC,GAAG,GAAG,eAAe,CAAC,EAAE,CAAC;AAExE,KAAK,GAAG,GAAG,iBAAiB,GAAG,kBAAkB,CAAC;AAClD,KAAK,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AACtD,KAAK,cAAc,GAAG,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,GAAG,KAAK,CAAC,CAAC;AAExD;;GAEG;AACH,qBAAa,WAAY,SAAQ,KAAK;IACpC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;gBACS,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;CAI3C;AAgCD;;;;;;GAMG;AACH,wBAAsB,eAAe,CACnC,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CA4BrC"}
|
package/types/sig/http.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="node" />
|
2
2
|
/// <reference types="node" />
|
3
3
|
import * as dntShim from "../_dnt.shims.js";
|
4
|
-
import {
|
4
|
+
import type { DocumentLoader } from "../runtime/docloader.js";
|
5
5
|
import { CryptographicKey } from "../vocab/vocab.js";
|
6
6
|
/**
|
7
7
|
* Signs a request using the given private key.
|
package/types/sig/http.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/sig/http.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAI5C,OAAO,
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/sig/http.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAI5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAGrD;;;;;;;;GAQG;AACH,wBAAsB,WAAW,CAC/B,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,OAAO,CAAC,SAAS,EAC7B,KAAK,EAAE,GAAG,GACT,OAAO,CAAC,OAAO,CAAC,CA0ClB;AAQD;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAEhC;;OAEG;IACH,aAAa,CAAC,EAAE,cAAc,CAAC;IAE/B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC;IAE3C;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC;CACxC;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,aAAa,CACjC,OAAO,EAAE,OAAO,EAChB,EAAE,cAAc,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,GACxD,oBAAyB,GAC1B,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAkKlC"}
|
package/types/sig/key.d.ts
CHANGED
@@ -1,4 +1,7 @@
|
|
1
|
+
/// <reference types="node" />
|
1
2
|
import * as dntShim from "../_dnt.shims.js";
|
3
|
+
import { type DocumentLoader } from "../runtime/docloader.js";
|
4
|
+
import { CryptographicKey, type Multikey } from "../vocab/vocab.js";
|
2
5
|
/**
|
3
6
|
* Checks if the given key is valid and supported. No-op if the key is valid,
|
4
7
|
* otherwise throws an error.
|
@@ -32,4 +35,39 @@ export declare function exportJwk(key: dntShim.CryptoKey): Promise<dntShim.JsonW
|
|
32
35
|
* @throws {TypeError} If the key is invalid or unsupported.
|
33
36
|
*/
|
34
37
|
export declare function importJwk(jwk: dntShim.JsonWebKey, type: "public" | "private"): Promise<dntShim.CryptoKey>;
|
38
|
+
/**
|
39
|
+
* Options for {@link fetchKey}.
|
40
|
+
* @since 0.10.0
|
41
|
+
*/
|
42
|
+
export interface FetchKeyOptions {
|
43
|
+
/**
|
44
|
+
* The document loader for loading remote JSON-LD documents.
|
45
|
+
*/
|
46
|
+
documentLoader?: DocumentLoader;
|
47
|
+
/**
|
48
|
+
* The context loader for loading remote JSON-LD contexts.
|
49
|
+
*/
|
50
|
+
contextLoader?: DocumentLoader;
|
51
|
+
}
|
52
|
+
/**
|
53
|
+
* Fetches a {@link CryptographicKey} or {@link Multikey} from the given URL.
|
54
|
+
* If the given URL contains an {@link Actor} object, it tries to find
|
55
|
+
* the corresponding key in the `publicKey` or `assertionMethod` property.
|
56
|
+
* @typeParam T The type of the key to fetch. Either {@link CryptographicKey}
|
57
|
+
* or {@link Multikey}.
|
58
|
+
* @param keyId The URL of the key.
|
59
|
+
* @param cls The class of the key to fetch. Either {@link CryptographicKey}
|
60
|
+
* or {@link Multikey}.
|
61
|
+
* @param options Options for fetching the key. See {@link FetchKeyOptions}.
|
62
|
+
* @returns The fetched key or `null` if the key is not found.
|
63
|
+
* @since 0.10.0
|
64
|
+
*/
|
65
|
+
export declare function fetchKey<T extends CryptographicKey | Multikey>(keyId: URL | string, cls: (new (...args: any[]) => T) & {
|
66
|
+
fromJsonLd(jsonLd: unknown, options: {
|
67
|
+
documentLoader?: DocumentLoader;
|
68
|
+
contextLoader?: DocumentLoader;
|
69
|
+
}): Promise<T>;
|
70
|
+
}, { documentLoader, contextLoader }?: FetchKeyOptions): Promise<T & {
|
71
|
+
publicKey: dntShim.CryptoKey;
|
72
|
+
} | null>;
|
35
73
|
//# sourceMappingURL=key.d.ts.map
|
package/types/sig/key.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"key.d.ts","sourceRoot":"","sources":["../../src/sig/key.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;
|
1
|
+
{"version":3,"file":"key.d.ts","sourceRoot":"","sources":["../../src/sig/key.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,gBAAgB,EAAE,KAAK,QAAQ,EAAU,MAAM,mBAAmB,CAAC;AAE5E;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC/B,GAAG,EAAE,OAAO,CAAC,SAAS,EACtB,IAAI,CAAC,EAAE,QAAQ,GAAG,SAAS,GAC1B,IAAI,CA2BN;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACnC,SAAS,CAAC,EAAE,mBAAmB,GAAG,SAAS,GAC1C,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CA2BhC;AAED;;;;;;GAMG;AACH,wBAAsB,SAAS,CAAC,GAAG,EAAE,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAGnF;AAED;;;;;;GAMG;AACH,wBAAsB,SAAS,CAC7B,GAAG,EAAE,OAAO,CAAC,UAAU,EACvB,IAAI,EAAE,QAAQ,GAAG,SAAS,GACzB,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAuB5B;AAED;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAEhC;;OAEG;IACH,aAAa,CAAC,EAAE,cAAc,CAAC;CAChC;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,QAAQ,CAAC,CAAC,SAAS,gBAAgB,GAAG,QAAQ,EAClE,KAAK,EAAE,GAAG,G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AAO,EAAE,GAAE,kBAAuB,GAC3D,OAAO,CAAC,kBAAkB,CAAC,CA2C7B;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAkB,SAAQ,kBAAkB;IAC3D;;OAEG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAED;;;;;;;;;GASG;AACH,wBAAsB,UAAU,CAAC,CAAC,SAAS,MAAM,EAC/C,MAAM,EAAE,CAAC,EACT,UAAU,EAAE,OAAO,CAAC,SAAS,EAC7B,KAAK,EAAE,GAAG,EACV,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,CAAC,CAAC,CAOZ;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,aAAa,CAAC,EAAE,cAAc,CAAC;IAE/B;;OAEG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAED;;;;;;;;;GASG;AACH,wBAAsB,WAAW,CAC/B,MAAM,EAAE,OAAO,EACf,KAAK,EAAE,kBAAkB,EACzB,OAAO,GAAE,kBAAuB,GAC/B,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CA4D1B;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB;CAC9D;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,YAAY,CAChC,MAAM,EAAE,OAAO,EACf,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAaxB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"proof.test.d.ts","sourceRoot":"","sources":["../../src/sig/proof.test.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../src/testing/keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,eAAO,MAAM,aAAa,kBA2BxB,CAAC;AAEH,eAAO,MAAM,cAAc,mBAyC1B,CAAC;AAEF,eAAO,MAAM,aAAa,kBAuBxB,CAAC;AAEH,eAAO,MAAM,cAAc,mBA6D1B,CAAC;AAEF,eAAO,MAAM,aAAa,kBA6BxB,CAAC;AAEH,eAAO,MAAM,iBAAiB,mBAe7B,CAAC;AAEF,eAAO,MAAM,gBAAgB,kBAkB3B,CAAC"}
|
1
|
+
{"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../src/testing/keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,eAAO,MAAM,aAAa,kBA2BxB,CAAC;AAEH,eAAO,MAAM,cAAc,mBAyC1B,CAAC;AAEF,eAAO,MAAM,aAAa,kBAuBxB,CAAC;AAEH,eAAO,MAAM,cAAc,mBA6D1B,CAAC;AAEF,eAAO,MAAM,aAAa,kBA6BxB,CAAC;AAEH,eAAO,MAAM,YAAY,UAIvB,CAAC;AAEH,eAAO,MAAM,iBAAiB,mBAe7B,CAAC;AAEF,eAAO,MAAM,gBAAgB,kBAkB3B,CAAC;AAEH,eAAO,MAAM,eAAe,UAI1B,CAAC"}
|
package/types/vocab/vocab.d.ts
CHANGED
@@ -593,6 +593,7 @@ export declare class Object {
|
|
593
593
|
toJsonLd(options?: {
|
594
594
|
expand?: boolean;
|
595
595
|
contextLoader?: DocumentLoader;
|
596
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
596
597
|
}): Promise<unknown>;
|
597
598
|
/**
|
598
599
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -731,6 +732,7 @@ export declare class Emoji extends Object {
|
|
731
732
|
toJsonLd(options?: {
|
732
733
|
expand?: boolean;
|
733
734
|
contextLoader?: DocumentLoader;
|
735
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
734
736
|
}): Promise<unknown>;
|
735
737
|
/**
|
736
738
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -795,6 +797,7 @@ export declare class PropertyValue {
|
|
795
797
|
toJsonLd(options?: {
|
796
798
|
expand?: boolean;
|
797
799
|
contextLoader?: DocumentLoader;
|
800
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
798
801
|
}): Promise<unknown>;
|
799
802
|
/**
|
800
803
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -893,6 +896,7 @@ export declare class DataIntegrityProof {
|
|
893
896
|
toJsonLd(options?: {
|
894
897
|
expand?: boolean;
|
895
898
|
contextLoader?: DocumentLoader;
|
899
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
896
900
|
}): Promise<unknown>;
|
897
901
|
/**
|
898
902
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -966,6 +970,7 @@ export declare class CryptographicKey {
|
|
966
970
|
toJsonLd(options?: {
|
967
971
|
expand?: boolean;
|
968
972
|
contextLoader?: DocumentLoader;
|
973
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
969
974
|
}): Promise<unknown>;
|
970
975
|
/**
|
971
976
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -1045,6 +1050,7 @@ export declare class Multikey {
|
|
1045
1050
|
toJsonLd(options?: {
|
1046
1051
|
expand?: boolean;
|
1047
1052
|
contextLoader?: DocumentLoader;
|
1053
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
1048
1054
|
}): Promise<unknown>;
|
1049
1055
|
/**
|
1050
1056
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -1252,6 +1258,7 @@ export declare class Activity extends Object {
|
|
1252
1258
|
toJsonLd(options?: {
|
1253
1259
|
expand?: boolean;
|
1254
1260
|
contextLoader?: DocumentLoader;
|
1261
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
1255
1262
|
}): Promise<unknown>;
|
1256
1263
|
/**
|
1257
1264
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -1400,6 +1407,7 @@ export declare class Accept extends Activity {
|
|
1400
1407
|
toJsonLd(options?: {
|
1401
1408
|
expand?: boolean;
|
1402
1409
|
contextLoader?: DocumentLoader;
|
1410
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
1403
1411
|
}): Promise<unknown>;
|
1404
1412
|
/**
|
1405
1413
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -1549,6 +1557,7 @@ export declare class Add extends Activity {
|
|
1549
1557
|
toJsonLd(options?: {
|
1550
1558
|
expand?: boolean;
|
1551
1559
|
contextLoader?: DocumentLoader;
|
1560
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
1552
1561
|
}): Promise<unknown>;
|
1553
1562
|
/**
|
1554
1563
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -1697,6 +1706,7 @@ export declare class Announce extends Activity {
|
|
1697
1706
|
toJsonLd(options?: {
|
1698
1707
|
expand?: boolean;
|
1699
1708
|
contextLoader?: DocumentLoader;
|
1709
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
1700
1710
|
}): Promise<unknown>;
|
1701
1711
|
/**
|
1702
1712
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -2073,6 +2083,7 @@ export declare class Application extends Object {
|
|
2073
2083
|
toJsonLd(options?: {
|
2074
2084
|
expand?: boolean;
|
2075
2085
|
contextLoader?: DocumentLoader;
|
2086
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
2076
2087
|
}): Promise<unknown>;
|
2077
2088
|
/**
|
2078
2089
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -2211,6 +2222,7 @@ export declare class Article extends Object {
|
|
2211
2222
|
toJsonLd(options?: {
|
2212
2223
|
expand?: boolean;
|
2213
2224
|
contextLoader?: DocumentLoader;
|
2225
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
2214
2226
|
}): Promise<unknown>;
|
2215
2227
|
/**
|
2216
2228
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -2362,6 +2374,7 @@ export declare class Document extends Object {
|
|
2362
2374
|
toJsonLd(options?: {
|
2363
2375
|
expand?: boolean;
|
2364
2376
|
contextLoader?: DocumentLoader;
|
2377
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
2365
2378
|
}): Promise<unknown>;
|
2366
2379
|
/**
|
2367
2380
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -2504,6 +2517,7 @@ export declare class Audio extends Document {
|
|
2504
2517
|
toJsonLd(options?: {
|
2505
2518
|
expand?: boolean;
|
2506
2519
|
contextLoader?: DocumentLoader;
|
2520
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
2507
2521
|
}): Promise<unknown>;
|
2508
2522
|
/**
|
2509
2523
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -2651,6 +2665,7 @@ export declare class Ignore extends Activity {
|
|
2651
2665
|
toJsonLd(options?: {
|
2652
2666
|
expand?: boolean;
|
2653
2667
|
contextLoader?: DocumentLoader;
|
2668
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
2654
2669
|
}): Promise<unknown>;
|
2655
2670
|
/**
|
2656
2671
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -2800,6 +2815,7 @@ export declare class Block extends Ignore {
|
|
2800
2815
|
toJsonLd(options?: {
|
2801
2816
|
expand?: boolean;
|
2802
2817
|
contextLoader?: DocumentLoader;
|
2818
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
2803
2819
|
}): Promise<unknown>;
|
2804
2820
|
/**
|
2805
2821
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -3010,6 +3026,7 @@ export declare class Collection extends Object {
|
|
3010
3026
|
toJsonLd(options?: {
|
3011
3027
|
expand?: boolean;
|
3012
3028
|
contextLoader?: DocumentLoader;
|
3029
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
3013
3030
|
}): Promise<unknown>;
|
3014
3031
|
/**
|
3015
3032
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -3204,6 +3221,7 @@ export declare class CollectionPage extends Collection {
|
|
3204
3221
|
toJsonLd(options?: {
|
3205
3222
|
expand?: boolean;
|
3206
3223
|
contextLoader?: DocumentLoader;
|
3224
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
3207
3225
|
}): Promise<unknown>;
|
3208
3226
|
/**
|
3209
3227
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -3350,6 +3368,7 @@ export declare class Create extends Activity {
|
|
3350
3368
|
toJsonLd(options?: {
|
3351
3369
|
expand?: boolean;
|
3352
3370
|
contextLoader?: DocumentLoader;
|
3371
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
3353
3372
|
}): Promise<unknown>;
|
3354
3373
|
/**
|
3355
3374
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -3497,6 +3516,7 @@ export declare class Delete extends Activity {
|
|
3497
3516
|
toJsonLd(options?: {
|
3498
3517
|
expand?: boolean;
|
3499
3518
|
contextLoader?: DocumentLoader;
|
3519
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
3500
3520
|
}): Promise<unknown>;
|
3501
3521
|
/**
|
3502
3522
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -3643,6 +3663,7 @@ export declare class Dislike extends Activity {
|
|
3643
3663
|
toJsonLd(options?: {
|
3644
3664
|
expand?: boolean;
|
3645
3665
|
contextLoader?: DocumentLoader;
|
3666
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
3646
3667
|
}): Promise<unknown>;
|
3647
3668
|
/**
|
3648
3669
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -3750,6 +3771,7 @@ export declare class Endpoints {
|
|
3750
3771
|
toJsonLd(options?: {
|
3751
3772
|
expand?: boolean;
|
3752
3773
|
contextLoader?: DocumentLoader;
|
3774
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
3753
3775
|
}): Promise<unknown>;
|
3754
3776
|
/**
|
3755
3777
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -3888,6 +3910,7 @@ export declare class Event extends Object {
|
|
3888
3910
|
toJsonLd(options?: {
|
3889
3911
|
expand?: boolean;
|
3890
3912
|
contextLoader?: DocumentLoader;
|
3913
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
3891
3914
|
}): Promise<unknown>;
|
3892
3915
|
/**
|
3893
3916
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -4036,6 +4059,7 @@ export declare class Flag extends Activity {
|
|
4036
4059
|
toJsonLd(options?: {
|
4037
4060
|
expand?: boolean;
|
4038
4061
|
contextLoader?: DocumentLoader;
|
4062
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
4039
4063
|
}): Promise<unknown>;
|
4040
4064
|
/**
|
4041
4065
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -4185,6 +4209,7 @@ export declare class Follow extends Activity {
|
|
4185
4209
|
toJsonLd(options?: {
|
4186
4210
|
expand?: boolean;
|
4187
4211
|
contextLoader?: DocumentLoader;
|
4212
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
4188
4213
|
}): Promise<unknown>;
|
4189
4214
|
/**
|
4190
4215
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -4561,6 +4586,7 @@ export declare class Group extends Object {
|
|
4561
4586
|
toJsonLd(options?: {
|
4562
4587
|
expand?: boolean;
|
4563
4588
|
contextLoader?: DocumentLoader;
|
4589
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
4564
4590
|
}): Promise<unknown>;
|
4565
4591
|
/**
|
4566
4592
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -4699,6 +4725,7 @@ export declare class Link {
|
|
4699
4725
|
toJsonLd(options?: {
|
4700
4726
|
expand?: boolean;
|
4701
4727
|
contextLoader?: DocumentLoader;
|
4728
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
4702
4729
|
}): Promise<unknown>;
|
4703
4730
|
/**
|
4704
4731
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -4771,6 +4798,7 @@ export declare class Hashtag extends Link {
|
|
4771
4798
|
toJsonLd(options?: {
|
4772
4799
|
expand?: boolean;
|
4773
4800
|
contextLoader?: DocumentLoader;
|
4801
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
4774
4802
|
}): Promise<unknown>;
|
4775
4803
|
/**
|
4776
4804
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -4913,6 +4941,7 @@ export declare class Image extends Document {
|
|
4913
4941
|
toJsonLd(options?: {
|
4914
4942
|
expand?: boolean;
|
4915
4943
|
contextLoader?: DocumentLoader;
|
4944
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
4916
4945
|
}): Promise<unknown>;
|
4917
4946
|
/**
|
4918
4947
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -5061,6 +5090,7 @@ export declare class IntransitiveActivity extends Activity {
|
|
5061
5090
|
toJsonLd(options?: {
|
5062
5091
|
expand?: boolean;
|
5063
5092
|
contextLoader?: DocumentLoader;
|
5093
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
5064
5094
|
}): Promise<unknown>;
|
5065
5095
|
/**
|
5066
5096
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -5208,6 +5238,7 @@ export declare class Like extends Activity {
|
|
5208
5238
|
toJsonLd(options?: {
|
5209
5239
|
expand?: boolean;
|
5210
5240
|
contextLoader?: DocumentLoader;
|
5241
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
5211
5242
|
}): Promise<unknown>;
|
5212
5243
|
/**
|
5213
5244
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -5278,6 +5309,7 @@ export declare class Mention extends Link {
|
|
5278
5309
|
toJsonLd(options?: {
|
5279
5310
|
expand?: boolean;
|
5280
5311
|
contextLoader?: DocumentLoader;
|
5312
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
5281
5313
|
}): Promise<unknown>;
|
5282
5314
|
/**
|
5283
5315
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -5417,6 +5449,7 @@ export declare class Note extends Object {
|
|
5417
5449
|
toJsonLd(options?: {
|
5418
5450
|
expand?: boolean;
|
5419
5451
|
contextLoader?: DocumentLoader;
|
5452
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
5420
5453
|
}): Promise<unknown>;
|
5421
5454
|
/**
|
5422
5455
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -5566,6 +5599,7 @@ export declare class OrderedCollection extends Collection {
|
|
5566
5599
|
toJsonLd(options?: {
|
5567
5600
|
expand?: boolean;
|
5568
5601
|
contextLoader?: DocumentLoader;
|
5602
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
5569
5603
|
}): Promise<unknown>;
|
5570
5604
|
/**
|
5571
5605
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -5729,6 +5763,7 @@ export declare class OrderedCollectionPage extends CollectionPage {
|
|
5729
5763
|
toJsonLd(options?: {
|
5730
5764
|
expand?: boolean;
|
5731
5765
|
contextLoader?: DocumentLoader;
|
5766
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
5732
5767
|
}): Promise<unknown>;
|
5733
5768
|
/**
|
5734
5769
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -6105,6 +6140,7 @@ export declare class Organization extends Object {
|
|
6105
6140
|
toJsonLd(options?: {
|
6106
6141
|
expand?: boolean;
|
6107
6142
|
contextLoader?: DocumentLoader;
|
6143
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
6108
6144
|
}): Promise<unknown>;
|
6109
6145
|
/**
|
6110
6146
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -6247,6 +6283,7 @@ export declare class Page extends Document {
|
|
6247
6283
|
toJsonLd(options?: {
|
6248
6284
|
expand?: boolean;
|
6249
6285
|
contextLoader?: DocumentLoader;
|
6286
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
6250
6287
|
}): Promise<unknown>;
|
6251
6288
|
/**
|
6252
6289
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -6623,6 +6660,7 @@ export declare class Person extends Object {
|
|
6623
6660
|
toJsonLd(options?: {
|
6624
6661
|
expand?: boolean;
|
6625
6662
|
contextLoader?: DocumentLoader;
|
6663
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
6626
6664
|
}): Promise<unknown>;
|
6627
6665
|
/**
|
6628
6666
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -6802,6 +6840,7 @@ export declare class Place extends Object {
|
|
6802
6840
|
toJsonLd(options?: {
|
6803
6841
|
expand?: boolean;
|
6804
6842
|
contextLoader?: DocumentLoader;
|
6843
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
6805
6844
|
}): Promise<unknown>;
|
6806
6845
|
/**
|
6807
6846
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -6960,6 +6999,7 @@ export declare class Profile extends Object {
|
|
6960
6999
|
toJsonLd(options?: {
|
6961
7000
|
expand?: boolean;
|
6962
7001
|
contextLoader?: DocumentLoader;
|
7002
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
6963
7003
|
}): Promise<unknown>;
|
6964
7004
|
/**
|
6965
7005
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -7107,6 +7147,7 @@ export declare class Reject extends Activity {
|
|
7107
7147
|
toJsonLd(options?: {
|
7108
7148
|
expand?: boolean;
|
7109
7149
|
contextLoader?: DocumentLoader;
|
7150
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
7110
7151
|
}): Promise<unknown>;
|
7111
7152
|
/**
|
7112
7153
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -7329,6 +7370,7 @@ export declare class Relationship extends Object {
|
|
7329
7370
|
toJsonLd(options?: {
|
7330
7371
|
expand?: boolean;
|
7331
7372
|
contextLoader?: DocumentLoader;
|
7373
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
7332
7374
|
}): Promise<unknown>;
|
7333
7375
|
/**
|
7334
7376
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -7476,6 +7518,7 @@ export declare class Remove extends Activity {
|
|
7476
7518
|
toJsonLd(options?: {
|
7477
7519
|
expand?: boolean;
|
7478
7520
|
contextLoader?: DocumentLoader;
|
7521
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
7479
7522
|
}): Promise<unknown>;
|
7480
7523
|
/**
|
7481
7524
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -7852,6 +7895,7 @@ export declare class Service extends Object {
|
|
7852
7895
|
toJsonLd(options?: {
|
7853
7896
|
expand?: boolean;
|
7854
7897
|
contextLoader?: DocumentLoader;
|
7898
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
7855
7899
|
}): Promise<unknown>;
|
7856
7900
|
/**
|
7857
7901
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -7999,6 +8043,7 @@ export declare class Tombstone extends Object {
|
|
7999
8043
|
toJsonLd(options?: {
|
8000
8044
|
expand?: boolean;
|
8001
8045
|
contextLoader?: DocumentLoader;
|
8046
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
8002
8047
|
}): Promise<unknown>;
|
8003
8048
|
/**
|
8004
8049
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -8151,6 +8196,7 @@ export declare class Undo extends Activity {
|
|
8151
8196
|
toJsonLd(options?: {
|
8152
8197
|
expand?: boolean;
|
8153
8198
|
contextLoader?: DocumentLoader;
|
8199
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
8154
8200
|
}): Promise<unknown>;
|
8155
8201
|
/**
|
8156
8202
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -8301,6 +8347,7 @@ export declare class Update extends Activity {
|
|
8301
8347
|
toJsonLd(options?: {
|
8302
8348
|
expand?: boolean;
|
8303
8349
|
contextLoader?: DocumentLoader;
|
8350
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
8304
8351
|
}): Promise<unknown>;
|
8305
8352
|
/**
|
8306
8353
|
* Converts a JSON-LD structure to an object of this type.
|
@@ -8443,6 +8490,7 @@ export declare class Video extends Document {
|
|
8443
8490
|
toJsonLd(options?: {
|
8444
8491
|
expand?: boolean;
|
8445
8492
|
contextLoader?: DocumentLoader;
|
8493
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
8446
8494
|
}): Promise<unknown>;
|
8447
8495
|
/**
|
8448
8496
|
* Converts a JSON-LD structure to an object of this type.
|