@fedify/fedify 0.10.0-dev.213 → 0.10.0-dev.219

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.
@@ -10,9 +10,10 @@ import type { KvKey, KvStore } from "./kv.js";
10
10
  import type { MessageQueue } from "./mq.js";
11
11
  import { type SenderKeyPair } from "./send.js";
12
12
  /**
13
- * Parameters for initializing a {@link Federation} instance.
13
+ * Options for {@link createFederation} function.
14
+ * @since 0.10.0
14
15
  */
15
- export interface FederationParameters {
16
+ export interface CreateFederationOptions {
16
17
  /**
17
18
  * The key-value store used for caching, outbox queues, and inbox idempotence.
18
19
  */
@@ -26,7 +27,6 @@ export interface FederationParameters {
26
27
  * The message queue for sending activities to recipients' inboxes.
27
28
  * If not provided, activities will not be queued and will be sent
28
29
  * immediately.
29
- * @since 0.5.0
30
30
  */
31
31
  queue?: MessageQueue;
32
32
  /**
@@ -37,31 +37,56 @@ export interface FederationParameters {
37
37
  /**
38
38
  * A custom JSON-LD context loader. By default, this uses the same loader
39
39
  * as the document loader.
40
- * @since 0.8.0
41
40
  */
42
41
  contextLoader?: DocumentLoader;
43
42
  /**
44
43
  * A factory function that creates an authenticated document loader for a
45
44
  * given identity. This is used for fetching documents that require
46
45
  * authentication.
47
- *
48
- * @since 0.4.0
49
46
  */
50
47
  authenticatedDocumentLoaderFactory?: AuthenticatedDocumentLoaderFactory;
51
48
  /**
52
- * Whether to treat HTTP requests as HTTPS. This is useful for testing and
53
- * local development. However, it must be disabled in production.
54
- * Turned off by default.
55
- *
56
- * Note that this option is deprecated and will be removed in a future
57
- * release. Instead, use the [x-forwarded-fetch] library to recognize
58
- * the `X-Forwarded-Host` and `X-Forwarded-Proto` headers.
49
+ * A callback that handles errors during outbox processing. Note that this
50
+ * callback can be called multiple times for the same activity, because
51
+ * the delivery is retried according to the backoff schedule until it
52
+ * succeeds or reaches the maximum retry count.
59
53
  *
60
- * [x-forwarded-fetch]: https://github.com/dahlia/x-forwarded-fetch
54
+ * If any errors are thrown in this callback, they are ignored.
55
+ */
56
+ onOutboxError?: OutboxErrorHandler;
57
+ /**
58
+ * The time window for verifying the signature of incoming requests. If the
59
+ * request is older or newer than this window, it is rejected. By default,
60
+ * the window is a minute.
61
+ */
62
+ signatureTimeWindow?: dntShim.Temporal.DurationLike;
63
+ }
64
+ /**
65
+ * Parameters for initializing a {@link Federation} instance.
66
+ * @deprecated
67
+ */
68
+ export interface FederationParameters extends CreateFederationOptions {
69
+ /**
70
+ * The message queue for sending activities to recipients' inboxes.
71
+ * If not provided, activities will not be queued and will be sent
72
+ * immediately.
73
+ * @since 0.5.0
74
+ */
75
+ queue?: MessageQueue;
76
+ /**
77
+ * A custom JSON-LD context loader. By default, this uses the same loader
78
+ * as the document loader.
79
+ * @since 0.8.0
80
+ */
81
+ contextLoader?: DocumentLoader;
82
+ /**
83
+ * A factory function that creates an authenticated document loader for a
84
+ * given identity. This is used for fetching documents that require
85
+ * authentication.
61
86
  *
62
- * @deprecated
87
+ * @since 0.4.0
63
88
  */
64
- treatHttps?: boolean;
89
+ authenticatedDocumentLoaderFactory?: AuthenticatedDocumentLoaderFactory;
65
90
  /**
66
91
  * A callback that handles errors during outbox processing. Note that this
67
92
  * callback can be called multiple times for the same activity, because
@@ -77,10 +102,22 @@ export interface FederationParameters {
77
102
  * The time window for verifying the signature of incoming requests. If the
78
103
  * request is older or newer than this window, it is rejected. By default,
79
104
  * the window is a minute.
80
- *
81
- * @since 0.9.0
82
105
  */
83
106
  signatureTimeWindow?: dntShim.Temporal.DurationLike;
107
+ /**
108
+ * Whether to treat HTTP requests as HTTPS. This is useful for testing and
109
+ * local development. However, it must be disabled in production.
110
+ * Turned off by default.
111
+ *
112
+ * Note that this option is deprecated and will be removed in a future
113
+ * release. Instead, use the [x-forwarded-fetch] library to recognize
114
+ * the `X-Forwarded-Host` and `X-Forwarded-Proto` headers.
115
+ *
116
+ * [x-forwarded-fetch]: https://github.com/dahlia/x-forwarded-fetch
117
+ *
118
+ * @deprecated
119
+ */
120
+ treatHttps?: boolean;
84
121
  backoffSchedule?: dntShim.Temporal.Duration[];
85
122
  }
86
123
  /**
@@ -98,6 +135,13 @@ export interface FederationKvPrefixes {
98
135
  */
99
136
  remoteDocument: KvKey;
100
137
  }
138
+ /**
139
+ * Create a new {@link Federation} instance.
140
+ * @param parameters Parameters for initializing the instance.
141
+ * @returns A new {@link Federation} instance.
142
+ * @since 0.10.0
143
+ */
144
+ export declare function createFederation<TContextData>(options: CreateFederationOptions): Federation<TContextData>;
101
145
  /**
102
146
  * An object that registers federation-related business logic and dispatches
103
147
  * requests to the appropriate handlers.
@@ -110,8 +154,9 @@ export declare class Federation<TContextData> {
110
154
  /**
111
155
  * Create a new {@link Federation} instance.
112
156
  * @param parameters Parameters for initializing the instance.
157
+ * @deprecated Use {@link createFederation} method instead.
113
158
  */
114
- constructor({ kv, kvPrefixes, queue, documentLoader, contextLoader, authenticatedDocumentLoaderFactory, treatHttps, onOutboxError, signatureTimeWindow, backoffSchedule, }: FederationParameters);
159
+ constructor(options: FederationParameters);
115
160
  /**
116
161
  * Create a new context.
117
162
  * @param baseUrl The base URL of the server. The `pathname` remains root,
@@ -407,7 +452,7 @@ export interface FederationFetchOptions<TContextData> {
407
452
  * Additional settings for the actor dispatcher.
408
453
  *
409
454
  * ``` typescript
410
- * const federation = new Federation<void>({ ... });
455
+ * const federation = createFederation<void>({ ... });
411
456
  * federation.setActorDispatcher("/users/{handle}", async (ctx, handle, key) => {
412
457
  * ...
413
458
  * })
@@ -1 +1 @@
1
- {"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../src/federation/middleware.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAG5C,OAAO,EACL,KAAK,kCAAkC,EACvC,KAAK,cAAc,EAIpB,MAAM,yBAAyB,CAAC;AAIjC,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAA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pD;;;;OAIG;IACH,cAAc,CACZ,MAAM,EAAE,gBAAgB,CAAC,YAAY,EAAE,OAAO,CAAC,GAC9C,yBAAyB,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IAEpD;;;;OAIG;IACH,aAAa,CACX,MAAM,EAAE,gBAAgB,CAAC,YAAY,EAAE,OAAO,CAAC,GAC9C,yBAAyB,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IAEpD;;;;;OAKG;IACH,SAAS,CACP,SAAS,EAAE,kBAAkB,CAAC,YAAY,CAAC,GAC1C,yBAAyB,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;CACrD;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB,CAAC,YAAY;IAC/C;;;;;;OAMG;IACH,EAAE,CAAC,SAAS,SAAS,QAAQ,EAE3B,IAAI,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,SAAS,EACvC,QAAQ,EAAE,aAAa,CAAC,YAAY,EAAE,SAAS,CAAC,GAC/C,mBAAmB,CAAC,YAAY,CAAC,CAAC;IAErC;;;;;;OAMG;IACH,OAAO,CACL,OAAO,EAAE,iBAAiB,CAAC,YAAY,CAAC,GACvC,mBAAmB,CAAC,YAAY,CAAC,CAAC;CACtC;AAED,UAAU,2BAA4B,SAAQ,mBAAmB;IAC/D,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
package/types/mod.d.ts CHANGED
@@ -14,6 +14,7 @@
14
14
  * extensions)
15
15
  * - [WebFinger] client and server
16
16
  * - [HTTP Signatures]
17
+ * - [Object Integrity Proofs][FEP-8b32]
17
18
  * - Middlewares for handling webhooks
18
19
  * - [NodeInfo] protocol
19
20
  * - Special touch for interoperability with Mastodon and few other popular
@@ -32,6 +33,7 @@
32
33
  * [Activity Vocabulary]: https://www.w3.org/TR/activitystreams-vocabulary/
33
34
  * [WebFinger]: https://datatracker.ietf.org/doc/html/rfc7033
34
35
  * [HTTP Signatures]: https://tools.ietf.org/html/draft-cavage-http-signatures-12
36
+ * [FEP-8b32]: https://codeberg.org/fediverse/fep/src/branch/main/fep/8b32/fep-8b32.md
35
37
  * [NodeInfo]: https://nodeinfo.diaspora.software/
36
38
  *
37
39
  * @module
@@ -1 +1 @@
1
- {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACpE,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACpE,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -2097,6 +2097,304 @@ export declare class Application extends Object {
2097
2097
  }): Promise<Application>;
2098
2098
  protected _getCustomInspectProxy(): Record<string, unknown>;
2099
2099
  }
2100
+ /** Instances of `IntransitiveActivity` are a subtype of {@link Activity}
2101
+ * representing intransitive actions. The `object` property is therefore
2102
+ * inappropriate for these activities.
2103
+ */
2104
+ export declare class IntransitiveActivity extends Activity {
2105
+ /**
2106
+ * The type URI of {@link IntransitiveActivity}: `https://www.w3.org/ns/activitystreams#IntransitiveActivity`.
2107
+ */
2108
+ static get typeId(): URL;
2109
+ /**
2110
+ * Constructs a new instance of IntransitiveActivity with the given values.
2111
+ * @param values The values to initialize the instance with.
2112
+ * @param options The options to use for initialization.
2113
+ */
2114
+ constructor(values: {
2115
+ id?: URL | null;
2116
+ attachments?: (Object | Link | PropertyValue | URL)[];
2117
+ attribution?: Application | Group | Organization | Person | Service | URL | null;
2118
+ attributions?: (Application | Group | Organization | Person | Service | URL)[];
2119
+ audience?: Object | URL | null;
2120
+ audiences?: (Object | URL)[];
2121
+ content?: string | LanguageString | null;
2122
+ contents?: (string | LanguageString)[];
2123
+ contexts?: (Object | Link | URL)[];
2124
+ name?: string | LanguageString | null;
2125
+ names?: (string | LanguageString)[];
2126
+ endTime?: dntShim.Temporal.Instant | null;
2127
+ generators?: (Object | Link | URL)[];
2128
+ icon?: Image | URL | null;
2129
+ icons?: (Image | URL)[];
2130
+ image?: Image | URL | null;
2131
+ images?: (Image | URL)[];
2132
+ replyTarget?: Object | Link | URL | null;
2133
+ replyTargets?: (Object | Link | URL)[];
2134
+ location?: Object | Link | URL | null;
2135
+ locations?: (Object | Link | URL)[];
2136
+ preview?: Link | Object | URL | null;
2137
+ previews?: (Link | Object | URL)[];
2138
+ published?: dntShim.Temporal.Instant | null;
2139
+ replies?: Collection | URL | null;
2140
+ startTime?: dntShim.Temporal.Instant | null;
2141
+ summary?: string | LanguageString | null;
2142
+ summaries?: (string | LanguageString)[];
2143
+ tags?: (Object | Link | URL)[];
2144
+ updated?: dntShim.Temporal.Instant | null;
2145
+ url?: URL | Link | null;
2146
+ urls?: (URL | Link)[];
2147
+ to?: Object | URL | null;
2148
+ tos?: (Object | URL)[];
2149
+ bto?: Object | URL | null;
2150
+ btos?: (Object | URL)[];
2151
+ cc?: Object | URL | null;
2152
+ ccs?: (Object | URL)[];
2153
+ bcc?: Object | URL | null;
2154
+ bccs?: (Object | URL)[];
2155
+ mediaType?: string | null;
2156
+ duration?: dntShim.Temporal.Duration | null;
2157
+ sensitive?: boolean | null;
2158
+ proof?: DataIntegrityProof | URL | null;
2159
+ proofs?: (DataIntegrityProof | URL)[];
2160
+ actor?: Application | Group | Organization | Person | Service | URL | null;
2161
+ actors?: (Application | Group | Organization | Person | Service | URL)[];
2162
+ object?: Object | URL | null;
2163
+ objects?: (Object | URL)[];
2164
+ }, { documentLoader, contextLoader, }?: {
2165
+ documentLoader?: DocumentLoader;
2166
+ contextLoader?: DocumentLoader;
2167
+ });
2168
+ /**
2169
+ * Clones this instance, optionally updating it with the given values.
2170
+ * @param values The values to update the clone with.
2171
+ * @options The options to use for cloning.
2172
+ * @returns The cloned instance.
2173
+ */
2174
+ clone(values?: {
2175
+ id?: URL | null;
2176
+ attachments?: (Object | Link | PropertyValue | URL)[];
2177
+ attribution?: Application | Group | Organization | Person | Service | URL | null;
2178
+ attributions?: (Application | Group | Organization | Person | Service | URL)[];
2179
+ audience?: Object | URL | null;
2180
+ audiences?: (Object | URL)[];
2181
+ content?: string | LanguageString | null;
2182
+ contents?: (string | LanguageString)[];
2183
+ contexts?: (Object | Link | URL)[];
2184
+ name?: string | LanguageString | null;
2185
+ names?: (string | LanguageString)[];
2186
+ endTime?: dntShim.Temporal.Instant | null;
2187
+ generators?: (Object | Link | URL)[];
2188
+ icon?: Image | URL | null;
2189
+ icons?: (Image | URL)[];
2190
+ image?: Image | URL | null;
2191
+ images?: (Image | URL)[];
2192
+ replyTarget?: Object | Link | URL | null;
2193
+ replyTargets?: (Object | Link | URL)[];
2194
+ location?: Object | Link | URL | null;
2195
+ locations?: (Object | Link | URL)[];
2196
+ preview?: Link | Object | URL | null;
2197
+ previews?: (Link | Object | URL)[];
2198
+ published?: dntShim.Temporal.Instant | null;
2199
+ replies?: Collection | URL | null;
2200
+ startTime?: dntShim.Temporal.Instant | null;
2201
+ summary?: string | LanguageString | null;
2202
+ summaries?: (string | LanguageString)[];
2203
+ tags?: (Object | Link | URL)[];
2204
+ updated?: dntShim.Temporal.Instant | null;
2205
+ url?: URL | Link | null;
2206
+ urls?: (URL | Link)[];
2207
+ to?: Object | URL | null;
2208
+ tos?: (Object | URL)[];
2209
+ bto?: Object | URL | null;
2210
+ btos?: (Object | URL)[];
2211
+ cc?: Object | URL | null;
2212
+ ccs?: (Object | URL)[];
2213
+ bcc?: Object | URL | null;
2214
+ bccs?: (Object | URL)[];
2215
+ mediaType?: string | null;
2216
+ duration?: dntShim.Temporal.Duration | null;
2217
+ sensitive?: boolean | null;
2218
+ proof?: DataIntegrityProof | URL | null;
2219
+ proofs?: (DataIntegrityProof | URL)[];
2220
+ actor?: Application | Group | Organization | Person | Service | URL | null;
2221
+ actors?: (Application | Group | Organization | Person | Service | URL)[];
2222
+ object?: Object | URL | null;
2223
+ objects?: (Object | URL)[];
2224
+ }, options?: {
2225
+ documentLoader?: DocumentLoader;
2226
+ contextLoader?: DocumentLoader;
2227
+ }): IntransitiveActivity;
2228
+ /**
2229
+ * Converts this object to a JSON-LD structure.
2230
+ * @returns The JSON-LD representation of this object.
2231
+ */
2232
+ toJsonLd(options?: {
2233
+ expand?: boolean;
2234
+ contextLoader?: DocumentLoader;
2235
+ context?: string | Record<string, string> | (string | Record<string, string>)[];
2236
+ }): Promise<unknown>;
2237
+ /**
2238
+ * Converts a JSON-LD structure to an object of this type.
2239
+ * @param json The JSON-LD structure to convert.
2240
+ * @returns The object of this type.
2241
+ * @throws {TypeError} If the given `json` is invalid.
2242
+ */
2243
+ static fromJsonLd(json: unknown, options?: {
2244
+ documentLoader?: DocumentLoader;
2245
+ contextLoader?: DocumentLoader;
2246
+ }): Promise<IntransitiveActivity>;
2247
+ protected _getCustomInspectProxy(): Record<string, unknown>;
2248
+ }
2249
+ /** An `IntransitiveActivity` that indicates that the `actor` has arrived at the `location`.
2250
+ * The `origin` can be used to identify the context from which the `actor` originated.
2251
+ * The `target` typically has no defined meaning.
2252
+ */
2253
+ export declare class Arrive extends IntransitiveActivity {
2254
+ /**
2255
+ * The type URI of {@link Arrive}: `https://www.w3.org/ns/activitystreams#Arrive`.
2256
+ */
2257
+ static get typeId(): URL;
2258
+ /**
2259
+ * Constructs a new instance of Arrive with the given values.
2260
+ * @param values The values to initialize the instance with.
2261
+ * @param options The options to use for initialization.
2262
+ */
2263
+ constructor(values: {
2264
+ id?: URL | null;
2265
+ attachments?: (Object | Link | PropertyValue | URL)[];
2266
+ attribution?: Application | Group | Organization | Person | Service | URL | null;
2267
+ attributions?: (Application | Group | Organization | Person | Service | URL)[];
2268
+ audience?: Object | URL | null;
2269
+ audiences?: (Object | URL)[];
2270
+ content?: string | LanguageString | null;
2271
+ contents?: (string | LanguageString)[];
2272
+ contexts?: (Object | Link | URL)[];
2273
+ name?: string | LanguageString | null;
2274
+ names?: (string | LanguageString)[];
2275
+ endTime?: dntShim.Temporal.Instant | null;
2276
+ generators?: (Object | Link | URL)[];
2277
+ icon?: Image | URL | null;
2278
+ icons?: (Image | URL)[];
2279
+ image?: Image | URL | null;
2280
+ images?: (Image | URL)[];
2281
+ replyTarget?: Object | Link | URL | null;
2282
+ replyTargets?: (Object | Link | URL)[];
2283
+ location?: Object | Link | URL | null;
2284
+ locations?: (Object | Link | URL)[];
2285
+ preview?: Link | Object | URL | null;
2286
+ previews?: (Link | Object | URL)[];
2287
+ published?: dntShim.Temporal.Instant | null;
2288
+ replies?: Collection | URL | null;
2289
+ startTime?: dntShim.Temporal.Instant | null;
2290
+ summary?: string | LanguageString | null;
2291
+ summaries?: (string | LanguageString)[];
2292
+ tags?: (Object | Link | URL)[];
2293
+ updated?: dntShim.Temporal.Instant | null;
2294
+ url?: URL | Link | null;
2295
+ urls?: (URL | Link)[];
2296
+ to?: Object | URL | null;
2297
+ tos?: (Object | URL)[];
2298
+ bto?: Object | URL | null;
2299
+ btos?: (Object | URL)[];
2300
+ cc?: Object | URL | null;
2301
+ ccs?: (Object | URL)[];
2302
+ bcc?: Object | URL | null;
2303
+ bccs?: (Object | URL)[];
2304
+ mediaType?: string | null;
2305
+ duration?: dntShim.Temporal.Duration | null;
2306
+ sensitive?: boolean | null;
2307
+ proof?: DataIntegrityProof | URL | null;
2308
+ proofs?: (DataIntegrityProof | URL)[];
2309
+ actor?: Application | Group | Organization | Person | Service | URL | null;
2310
+ actors?: (Application | Group | Organization | Person | Service | URL)[];
2311
+ object?: Object | URL | null;
2312
+ objects?: (Object | URL)[];
2313
+ }, { documentLoader, contextLoader, }?: {
2314
+ documentLoader?: DocumentLoader;
2315
+ contextLoader?: DocumentLoader;
2316
+ });
2317
+ /**
2318
+ * Clones this instance, optionally updating it with the given values.
2319
+ * @param values The values to update the clone with.
2320
+ * @options The options to use for cloning.
2321
+ * @returns The cloned instance.
2322
+ */
2323
+ clone(values?: {
2324
+ id?: URL | null;
2325
+ attachments?: (Object | Link | PropertyValue | URL)[];
2326
+ attribution?: Application | Group | Organization | Person | Service | URL | null;
2327
+ attributions?: (Application | Group | Organization | Person | Service | URL)[];
2328
+ audience?: Object | URL | null;
2329
+ audiences?: (Object | URL)[];
2330
+ content?: string | LanguageString | null;
2331
+ contents?: (string | LanguageString)[];
2332
+ contexts?: (Object | Link | URL)[];
2333
+ name?: string | LanguageString | null;
2334
+ names?: (string | LanguageString)[];
2335
+ endTime?: dntShim.Temporal.Instant | null;
2336
+ generators?: (Object | Link | URL)[];
2337
+ icon?: Image | URL | null;
2338
+ icons?: (Image | URL)[];
2339
+ image?: Image | URL | null;
2340
+ images?: (Image | URL)[];
2341
+ replyTarget?: Object | Link | URL | null;
2342
+ replyTargets?: (Object | Link | URL)[];
2343
+ location?: Object | Link | URL | null;
2344
+ locations?: (Object | Link | URL)[];
2345
+ preview?: Link | Object | URL | null;
2346
+ previews?: (Link | Object | URL)[];
2347
+ published?: dntShim.Temporal.Instant | null;
2348
+ replies?: Collection | URL | null;
2349
+ startTime?: dntShim.Temporal.Instant | null;
2350
+ summary?: string | LanguageString | null;
2351
+ summaries?: (string | LanguageString)[];
2352
+ tags?: (Object | Link | URL)[];
2353
+ updated?: dntShim.Temporal.Instant | null;
2354
+ url?: URL | Link | null;
2355
+ urls?: (URL | Link)[];
2356
+ to?: Object | URL | null;
2357
+ tos?: (Object | URL)[];
2358
+ bto?: Object | URL | null;
2359
+ btos?: (Object | URL)[];
2360
+ cc?: Object | URL | null;
2361
+ ccs?: (Object | URL)[];
2362
+ bcc?: Object | URL | null;
2363
+ bccs?: (Object | URL)[];
2364
+ mediaType?: string | null;
2365
+ duration?: dntShim.Temporal.Duration | null;
2366
+ sensitive?: boolean | null;
2367
+ proof?: DataIntegrityProof | URL | null;
2368
+ proofs?: (DataIntegrityProof | URL)[];
2369
+ actor?: Application | Group | Organization | Person | Service | URL | null;
2370
+ actors?: (Application | Group | Organization | Person | Service | URL)[];
2371
+ object?: Object | URL | null;
2372
+ objects?: (Object | URL)[];
2373
+ }, options?: {
2374
+ documentLoader?: DocumentLoader;
2375
+ contextLoader?: DocumentLoader;
2376
+ }): Arrive;
2377
+ /**
2378
+ * Converts this object to a JSON-LD structure.
2379
+ * @returns The JSON-LD representation of this object.
2380
+ */
2381
+ toJsonLd(options?: {
2382
+ expand?: boolean;
2383
+ contextLoader?: DocumentLoader;
2384
+ context?: string | Record<string, string> | (string | Record<string, string>)[];
2385
+ }): Promise<unknown>;
2386
+ /**
2387
+ * Converts a JSON-LD structure to an object of this type.
2388
+ * @param json The JSON-LD structure to convert.
2389
+ * @returns The object of this type.
2390
+ * @throws {TypeError} If the given `json` is invalid.
2391
+ */
2392
+ static fromJsonLd(json: unknown, options?: {
2393
+ documentLoader?: DocumentLoader;
2394
+ contextLoader?: DocumentLoader;
2395
+ }): Promise<Arrive>;
2396
+ protected _getCustomInspectProxy(): Record<string, unknown>;
2397
+ }
2100
2398
  /** Represents any kind of multi-paragraph written work.
2101
2399
  */
2102
2400
  export declare class Article extends Object {
@@ -4955,155 +5253,6 @@ export declare class Image extends Document {
4955
5253
  }): Promise<Image>;
4956
5254
  protected _getCustomInspectProxy(): Record<string, unknown>;
4957
5255
  }
4958
- /** Instances of `IntransitiveActivity` are a subtype of {@link Activity}
4959
- * representing intransitive actions. The `object` property is therefore
4960
- * inappropriate for these activities.
4961
- */
4962
- export declare class IntransitiveActivity extends Activity {
4963
- /**
4964
- * The type URI of {@link IntransitiveActivity}: `https://www.w3.org/ns/activitystreams#IntransitiveActivity`.
4965
- */
4966
- static get typeId(): URL;
4967
- /**
4968
- * Constructs a new instance of IntransitiveActivity with the given values.
4969
- * @param values The values to initialize the instance with.
4970
- * @param options The options to use for initialization.
4971
- */
4972
- constructor(values: {
4973
- id?: URL | null;
4974
- attachments?: (Object | Link | PropertyValue | URL)[];
4975
- attribution?: Application | Group | Organization | Person | Service | URL | null;
4976
- attributions?: (Application | Group | Organization | Person | Service | URL)[];
4977
- audience?: Object | URL | null;
4978
- audiences?: (Object | URL)[];
4979
- content?: string | LanguageString | null;
4980
- contents?: (string | LanguageString)[];
4981
- contexts?: (Object | Link | URL)[];
4982
- name?: string | LanguageString | null;
4983
- names?: (string | LanguageString)[];
4984
- endTime?: dntShim.Temporal.Instant | null;
4985
- generators?: (Object | Link | URL)[];
4986
- icon?: Image | URL | null;
4987
- icons?: (Image | URL)[];
4988
- image?: Image | URL | null;
4989
- images?: (Image | URL)[];
4990
- replyTarget?: Object | Link | URL | null;
4991
- replyTargets?: (Object | Link | URL)[];
4992
- location?: Object | Link | URL | null;
4993
- locations?: (Object | Link | URL)[];
4994
- preview?: Link | Object | URL | null;
4995
- previews?: (Link | Object | URL)[];
4996
- published?: dntShim.Temporal.Instant | null;
4997
- replies?: Collection | URL | null;
4998
- startTime?: dntShim.Temporal.Instant | null;
4999
- summary?: string | LanguageString | null;
5000
- summaries?: (string | LanguageString)[];
5001
- tags?: (Object | Link | URL)[];
5002
- updated?: dntShim.Temporal.Instant | null;
5003
- url?: URL | Link | null;
5004
- urls?: (URL | Link)[];
5005
- to?: Object | URL | null;
5006
- tos?: (Object | URL)[];
5007
- bto?: Object | URL | null;
5008
- btos?: (Object | URL)[];
5009
- cc?: Object | URL | null;
5010
- ccs?: (Object | URL)[];
5011
- bcc?: Object | URL | null;
5012
- bccs?: (Object | URL)[];
5013
- mediaType?: string | null;
5014
- duration?: dntShim.Temporal.Duration | null;
5015
- sensitive?: boolean | null;
5016
- proof?: DataIntegrityProof | URL | null;
5017
- proofs?: (DataIntegrityProof | URL)[];
5018
- actor?: Application | Group | Organization | Person | Service | URL | null;
5019
- actors?: (Application | Group | Organization | Person | Service | URL)[];
5020
- object?: Object | URL | null;
5021
- objects?: (Object | URL)[];
5022
- }, { documentLoader, contextLoader, }?: {
5023
- documentLoader?: DocumentLoader;
5024
- contextLoader?: DocumentLoader;
5025
- });
5026
- /**
5027
- * Clones this instance, optionally updating it with the given values.
5028
- * @param values The values to update the clone with.
5029
- * @options The options to use for cloning.
5030
- * @returns The cloned instance.
5031
- */
5032
- clone(values?: {
5033
- id?: URL | null;
5034
- attachments?: (Object | Link | PropertyValue | URL)[];
5035
- attribution?: Application | Group | Organization | Person | Service | URL | null;
5036
- attributions?: (Application | Group | Organization | Person | Service | URL)[];
5037
- audience?: Object | URL | null;
5038
- audiences?: (Object | URL)[];
5039
- content?: string | LanguageString | null;
5040
- contents?: (string | LanguageString)[];
5041
- contexts?: (Object | Link | URL)[];
5042
- name?: string | LanguageString | null;
5043
- names?: (string | LanguageString)[];
5044
- endTime?: dntShim.Temporal.Instant | null;
5045
- generators?: (Object | Link | URL)[];
5046
- icon?: Image | URL | null;
5047
- icons?: (Image | URL)[];
5048
- image?: Image | URL | null;
5049
- images?: (Image | URL)[];
5050
- replyTarget?: Object | Link | URL | null;
5051
- replyTargets?: (Object | Link | URL)[];
5052
- location?: Object | Link | URL | null;
5053
- locations?: (Object | Link | URL)[];
5054
- preview?: Link | Object | URL | null;
5055
- previews?: (Link | Object | URL)[];
5056
- published?: dntShim.Temporal.Instant | null;
5057
- replies?: Collection | URL | null;
5058
- startTime?: dntShim.Temporal.Instant | null;
5059
- summary?: string | LanguageString | null;
5060
- summaries?: (string | LanguageString)[];
5061
- tags?: (Object | Link | URL)[];
5062
- updated?: dntShim.Temporal.Instant | null;
5063
- url?: URL | Link | null;
5064
- urls?: (URL | Link)[];
5065
- to?: Object | URL | null;
5066
- tos?: (Object | URL)[];
5067
- bto?: Object | URL | null;
5068
- btos?: (Object | URL)[];
5069
- cc?: Object | URL | null;
5070
- ccs?: (Object | URL)[];
5071
- bcc?: Object | URL | null;
5072
- bccs?: (Object | URL)[];
5073
- mediaType?: string | null;
5074
- duration?: dntShim.Temporal.Duration | null;
5075
- sensitive?: boolean | null;
5076
- proof?: DataIntegrityProof | URL | null;
5077
- proofs?: (DataIntegrityProof | URL)[];
5078
- actor?: Application | Group | Organization | Person | Service | URL | null;
5079
- actors?: (Application | Group | Organization | Person | Service | URL)[];
5080
- object?: Object | URL | null;
5081
- objects?: (Object | URL)[];
5082
- }, options?: {
5083
- documentLoader?: DocumentLoader;
5084
- contextLoader?: DocumentLoader;
5085
- }): IntransitiveActivity;
5086
- /**
5087
- * Converts this object to a JSON-LD structure.
5088
- * @returns The JSON-LD representation of this object.
5089
- */
5090
- toJsonLd(options?: {
5091
- expand?: boolean;
5092
- contextLoader?: DocumentLoader;
5093
- context?: string | Record<string, string> | (string | Record<string, string>)[];
5094
- }): Promise<unknown>;
5095
- /**
5096
- * Converts a JSON-LD structure to an object of this type.
5097
- * @param json The JSON-LD structure to convert.
5098
- * @returns The object of this type.
5099
- * @throws {TypeError} If the given `json` is invalid.
5100
- */
5101
- static fromJsonLd(json: unknown, options?: {
5102
- documentLoader?: DocumentLoader;
5103
- contextLoader?: DocumentLoader;
5104
- }): Promise<IntransitiveActivity>;
5105
- protected _getCustomInspectProxy(): Record<string, unknown>;
5106
- }
5107
5256
  /** Indicates that the `actor` likes, recommends or endorses the `object`.
5108
5257
  * The `target` and `origin` typically have no defined meaning.
5109
5258
  */