@fedify/vocab 2.2.0-dev.635 → 2.2.0-dev.731
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/deno.json +1 -1
- package/dist/mod.cjs +1080 -1
- package/dist/mod.d.cts +422 -2
- package/dist/mod.d.ts +422 -2
- package/dist/mod.js +1079 -3
- package/dist-tests/actor.test.mjs +2 -2
- package/dist-tests/{deno-BFydpyWl.mjs → deno-D3oW1uY5.mjs} +2 -2
- package/dist-tests/intent.yaml +72 -0
- package/dist-tests/lookup.test.mjs +2 -2
- package/dist-tests/measure.yaml +32 -0
- package/dist-tests/proposal.yaml +90 -0
- package/dist-tests/type.test.mjs +1 -1
- package/dist-tests/{vocab-ZNOT6nzY.mjs → vocab-CGZuHaxe.mjs} +1080 -1
- package/dist-tests/vocab.test.mjs +3 -2
- package/package.json +4 -4
- package/src/__snapshots__/vocab.test.ts.snap +198 -0
- package/src/intent.yaml +72 -0
- package/src/measure.yaml +32 -0
- package/src/proposal.yaml +90 -0
- package/src/vocab.test.ts +6 -1
package/dist/mod.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { Span, TracerProvider } from "@opentelemetry/api";
|
|
3
|
-
import { DocumentLoader, DocumentLoader as DocumentLoader$1, GetUserAgentOptions, GetUserAgentOptions as GetUserAgentOptions$1, LanguageString, LanguageString as LanguageString$1, RemoteDocument } from "@fedify/vocab-runtime";
|
|
3
|
+
import { Decimal, DocumentLoader, DocumentLoader as DocumentLoader$1, GetUserAgentOptions, GetUserAgentOptions as GetUserAgentOptions$1, LanguageString, LanguageString as LanguageString$1, RemoteDocument } from "@fedify/vocab-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/vocab.d.ts
|
|
6
6
|
/** Describes an object of any kind. The Object type serves as the base type for
|
|
@@ -1960,6 +1960,102 @@ declare class PropertyValue {
|
|
|
1960
1960
|
}): Promise<PropertyValue>;
|
|
1961
1961
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
|
1962
1962
|
}
|
|
1963
|
+
/** A quantity with a unit of measure.
|
|
1964
|
+
*/
|
|
1965
|
+
declare class Measure {
|
|
1966
|
+
#private;
|
|
1967
|
+
readonly id: URL | null;
|
|
1968
|
+
protected get _documentLoader(): DocumentLoader$1 | undefined;
|
|
1969
|
+
protected get _contextLoader(): DocumentLoader$1 | undefined;
|
|
1970
|
+
protected get _tracerProvider(): TracerProvider | undefined;
|
|
1971
|
+
protected get _warning(): {
|
|
1972
|
+
category: string[];
|
|
1973
|
+
message: string;
|
|
1974
|
+
values?: Record<string, unknown>;
|
|
1975
|
+
} | undefined;
|
|
1976
|
+
protected get _cachedJsonLd(): unknown | undefined;
|
|
1977
|
+
protected set _cachedJsonLd(value: unknown | undefined);
|
|
1978
|
+
/**
|
|
1979
|
+
* The type URI of {@link Measure}: `http://www.ontology-of-units-of-measure.org/resource/om-2/Measure`.
|
|
1980
|
+
*/
|
|
1981
|
+
static get typeId(): URL;
|
|
1982
|
+
/**
|
|
1983
|
+
* Constructs a new instance of Measure with the given values.
|
|
1984
|
+
* @param values The values to initialize the instance with.
|
|
1985
|
+
* @param options The options to use for initialization.
|
|
1986
|
+
*/
|
|
1987
|
+
constructor(values: {
|
|
1988
|
+
id?: URL | null;
|
|
1989
|
+
unit?: string | null;
|
|
1990
|
+
numericalValue?: Decimal | null;
|
|
1991
|
+
}, options?: {
|
|
1992
|
+
documentLoader?: DocumentLoader$1;
|
|
1993
|
+
contextLoader?: DocumentLoader$1;
|
|
1994
|
+
tracerProvider?: TracerProvider;
|
|
1995
|
+
});
|
|
1996
|
+
/**
|
|
1997
|
+
* Clones this instance, optionally updating it with the given values.
|
|
1998
|
+
* @param values The values to update the clone with.
|
|
1999
|
+
* @param options The options to use for cloning.
|
|
2000
|
+
* @returns The cloned instance.
|
|
2001
|
+
*/
|
|
2002
|
+
clone(values?: {
|
|
2003
|
+
id?: URL | null;
|
|
2004
|
+
unit?: string | null;
|
|
2005
|
+
numericalValue?: Decimal | null;
|
|
2006
|
+
}, options?: {
|
|
2007
|
+
documentLoader?: DocumentLoader$1;
|
|
2008
|
+
contextLoader?: DocumentLoader$1;
|
|
2009
|
+
}): Measure;
|
|
2010
|
+
/** The name of the unit, according to the Ontology of units of Measure
|
|
2011
|
+
* classification. The recommended unit for countable items is `"one"`.
|
|
2012
|
+
*/
|
|
2013
|
+
get unit(): string | null;
|
|
2014
|
+
/** The amount of the resource. If not specified, arbitrary amounts can be
|
|
2015
|
+
* used when responding to the proposal.
|
|
2016
|
+
*/
|
|
2017
|
+
get numericalValue(): Decimal | null;
|
|
2018
|
+
/**
|
|
2019
|
+
* Converts this object to a JSON-LD structure.
|
|
2020
|
+
* @param options The options to use.
|
|
2021
|
+
* - `format`: The format of the output: `compact` or
|
|
2022
|
+
`expand`.
|
|
2023
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
|
2024
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
|
2025
|
+
when `format` is set to `'expand'`.
|
|
2026
|
+
* @returns The JSON-LD representation of this object.
|
|
2027
|
+
*/
|
|
2028
|
+
toJsonLd(options?: {
|
|
2029
|
+
format?: "compact" | "expand";
|
|
2030
|
+
contextLoader?: DocumentLoader$1;
|
|
2031
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
|
2032
|
+
}): Promise<unknown>;
|
|
2033
|
+
protected isCompactable(): boolean;
|
|
2034
|
+
/**
|
|
2035
|
+
* Converts a JSON-LD structure to an object of this type.
|
|
2036
|
+
* @param json The JSON-LD structure to convert.
|
|
2037
|
+
* @param options The options to use.
|
|
2038
|
+
* - `documentLoader`: The loader for remote JSON-LD documents.
|
|
2039
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
|
2040
|
+
* - `tracerProvider`: The OpenTelemetry tracer provider to use.
|
|
2041
|
+
* If omitted, the global tracer provider is used.
|
|
2042
|
+
* @returns The object of this type.
|
|
2043
|
+
* @throws {TypeError} If the given `json` is invalid.
|
|
2044
|
+
*/
|
|
2045
|
+
static fromJsonLd(json: unknown, options?: {
|
|
2046
|
+
documentLoader?: DocumentLoader$1;
|
|
2047
|
+
contextLoader?: DocumentLoader$1;
|
|
2048
|
+
tracerProvider?: TracerProvider;
|
|
2049
|
+
baseUrl?: URL;
|
|
2050
|
+
}): Promise<Measure>;
|
|
2051
|
+
protected static __fromJsonLd__Measure__(json: unknown, span: Span, options?: {
|
|
2052
|
+
documentLoader?: DocumentLoader$1;
|
|
2053
|
+
contextLoader?: DocumentLoader$1;
|
|
2054
|
+
tracerProvider?: TracerProvider;
|
|
2055
|
+
baseUrl?: URL;
|
|
2056
|
+
}): Promise<Measure>;
|
|
2057
|
+
protected _getCustomInspectProxy(): Record<string, unknown>;
|
|
2058
|
+
}
|
|
1963
2059
|
/** Proves that an {@link Announce} interaction has been approved by
|
|
1964
2060
|
* the post author.
|
|
1965
2061
|
*
|
|
@@ -4022,6 +4118,330 @@ declare class Multikey {
|
|
|
4022
4118
|
}): Promise<Multikey>;
|
|
4023
4119
|
protected _getCustomInspectProxy(): Record<string, unknown>;
|
|
4024
4120
|
}
|
|
4121
|
+
/** A proposed economic transaction describing what is being offered or requested
|
|
4122
|
+
* in a {@link Proposal}.
|
|
4123
|
+
*/
|
|
4124
|
+
declare class Intent {
|
|
4125
|
+
#private;
|
|
4126
|
+
readonly id: URL | null;
|
|
4127
|
+
protected get _documentLoader(): DocumentLoader$1 | undefined;
|
|
4128
|
+
protected get _contextLoader(): DocumentLoader$1 | undefined;
|
|
4129
|
+
protected get _tracerProvider(): TracerProvider | undefined;
|
|
4130
|
+
protected get _warning(): {
|
|
4131
|
+
category: string[];
|
|
4132
|
+
message: string;
|
|
4133
|
+
values?: Record<string, unknown>;
|
|
4134
|
+
} | undefined;
|
|
4135
|
+
protected get _cachedJsonLd(): unknown | undefined;
|
|
4136
|
+
protected set _cachedJsonLd(value: unknown | undefined);
|
|
4137
|
+
/**
|
|
4138
|
+
* The type URI of {@link Intent}: `https://w3id.org/valueflows/ont/vf#Intent`.
|
|
4139
|
+
*/
|
|
4140
|
+
static get typeId(): URL;
|
|
4141
|
+
/**
|
|
4142
|
+
* Constructs a new instance of Intent with the given values.
|
|
4143
|
+
* @param values The values to initialize the instance with.
|
|
4144
|
+
* @param options The options to use for initialization.
|
|
4145
|
+
*/
|
|
4146
|
+
constructor(values: {
|
|
4147
|
+
id?: URL | null;
|
|
4148
|
+
action?: string | null;
|
|
4149
|
+
resourceConformsTo?: URL | null;
|
|
4150
|
+
resourceQuantity?: Measure | null;
|
|
4151
|
+
availableQuantity?: Measure | null;
|
|
4152
|
+
minimumQuantity?: Measure | null;
|
|
4153
|
+
}, options?: {
|
|
4154
|
+
documentLoader?: DocumentLoader$1;
|
|
4155
|
+
contextLoader?: DocumentLoader$1;
|
|
4156
|
+
tracerProvider?: TracerProvider;
|
|
4157
|
+
});
|
|
4158
|
+
/**
|
|
4159
|
+
* Clones this instance, optionally updating it with the given values.
|
|
4160
|
+
* @param values The values to update the clone with.
|
|
4161
|
+
* @param options The options to use for cloning.
|
|
4162
|
+
* @returns The cloned instance.
|
|
4163
|
+
*/
|
|
4164
|
+
clone(values?: {
|
|
4165
|
+
id?: URL | null;
|
|
4166
|
+
action?: string | null;
|
|
4167
|
+
resourceConformsTo?: URL | null;
|
|
4168
|
+
resourceQuantity?: Measure | null;
|
|
4169
|
+
availableQuantity?: Measure | null;
|
|
4170
|
+
minimumQuantity?: Measure | null;
|
|
4171
|
+
}, options?: {
|
|
4172
|
+
documentLoader?: DocumentLoader$1;
|
|
4173
|
+
contextLoader?: DocumentLoader$1;
|
|
4174
|
+
}): Intent;
|
|
4175
|
+
/** The type of economic transaction. The value of this property should be
|
|
4176
|
+
* either `"deliverService"` or `"transfer"`.
|
|
4177
|
+
*/
|
|
4178
|
+
get action(): string | null;
|
|
4179
|
+
/** The type of an economic resource. Could be any URI.
|
|
4180
|
+
*/
|
|
4181
|
+
get resourceConformsTo(): URL | null;
|
|
4182
|
+
/** The amount and unit of the economic resource.
|
|
4183
|
+
*/
|
|
4184
|
+
get resourceQuantity(): Measure | null;
|
|
4185
|
+
/** The quantity of the offered resource currently available.
|
|
4186
|
+
*/
|
|
4187
|
+
get availableQuantity(): Measure | null;
|
|
4188
|
+
/** The minimum possible quantity of the resource.
|
|
4189
|
+
*/
|
|
4190
|
+
get minimumQuantity(): Measure | null;
|
|
4191
|
+
/**
|
|
4192
|
+
* Converts this object to a JSON-LD structure.
|
|
4193
|
+
* @param options The options to use.
|
|
4194
|
+
* - `format`: The format of the output: `compact` or
|
|
4195
|
+
`expand`.
|
|
4196
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
|
4197
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
|
4198
|
+
when `format` is set to `'expand'`.
|
|
4199
|
+
* @returns The JSON-LD representation of this object.
|
|
4200
|
+
*/
|
|
4201
|
+
toJsonLd(options?: {
|
|
4202
|
+
format?: "compact" | "expand";
|
|
4203
|
+
contextLoader?: DocumentLoader$1;
|
|
4204
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
|
4205
|
+
}): Promise<unknown>;
|
|
4206
|
+
protected isCompactable(): boolean;
|
|
4207
|
+
/**
|
|
4208
|
+
* Converts a JSON-LD structure to an object of this type.
|
|
4209
|
+
* @param json The JSON-LD structure to convert.
|
|
4210
|
+
* @param options The options to use.
|
|
4211
|
+
* - `documentLoader`: The loader for remote JSON-LD documents.
|
|
4212
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
|
4213
|
+
* - `tracerProvider`: The OpenTelemetry tracer provider to use.
|
|
4214
|
+
* If omitted, the global tracer provider is used.
|
|
4215
|
+
* @returns The object of this type.
|
|
4216
|
+
* @throws {TypeError} If the given `json` is invalid.
|
|
4217
|
+
*/
|
|
4218
|
+
static fromJsonLd(json: unknown, options?: {
|
|
4219
|
+
documentLoader?: DocumentLoader$1;
|
|
4220
|
+
contextLoader?: DocumentLoader$1;
|
|
4221
|
+
tracerProvider?: TracerProvider;
|
|
4222
|
+
baseUrl?: URL;
|
|
4223
|
+
}): Promise<Intent>;
|
|
4224
|
+
protected static __fromJsonLd__Intent__(json: unknown, span: Span, options?: {
|
|
4225
|
+
documentLoader?: DocumentLoader$1;
|
|
4226
|
+
contextLoader?: DocumentLoader$1;
|
|
4227
|
+
tracerProvider?: TracerProvider;
|
|
4228
|
+
baseUrl?: URL;
|
|
4229
|
+
}): Promise<Intent>;
|
|
4230
|
+
protected _getCustomInspectProxy(): Record<string, unknown>;
|
|
4231
|
+
}
|
|
4232
|
+
/** A published request or offer, sometimes with what is expected in return.
|
|
4233
|
+
*
|
|
4234
|
+
* Proposals contain a primary {@link Intent} (via `publishes`) describing
|
|
4235
|
+
* what is being offered or requested, and optionally a reciprocal
|
|
4236
|
+
* {@link Intent} describing what is expected or offered in return.
|
|
4237
|
+
*
|
|
4238
|
+
* Note: This type extends ActivityStreams `Object` for practical
|
|
4239
|
+
* interoperability within ActivityPub federation, even though FEP-0837
|
|
4240
|
+
* defines `Proposal` as a pure ValueFlows type. Extending `Object`
|
|
4241
|
+
* provides useful inherited properties such as `name`, `content`,
|
|
4242
|
+
* `attributedTo`, `published`, `to`, and `location` without needing to
|
|
4243
|
+
* redefine them.
|
|
4244
|
+
*/
|
|
4245
|
+
declare class Proposal extends Object$1 {
|
|
4246
|
+
#private;
|
|
4247
|
+
/**
|
|
4248
|
+
* The type URI of {@link Proposal}: `https://w3id.org/valueflows/ont/vf#Proposal`.
|
|
4249
|
+
*/
|
|
4250
|
+
static override get typeId(): URL;
|
|
4251
|
+
/**
|
|
4252
|
+
* Constructs a new instance of Proposal with the given values.
|
|
4253
|
+
* @param values The values to initialize the instance with.
|
|
4254
|
+
* @param options The options to use for initialization.
|
|
4255
|
+
*/
|
|
4256
|
+
constructor(values: {
|
|
4257
|
+
id?: URL | null;
|
|
4258
|
+
attachments?: (Object$1 | Link | PropertyValue | URL)[];
|
|
4259
|
+
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
|
4260
|
+
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
|
4261
|
+
audience?: Object$1 | URL | null;
|
|
4262
|
+
audiences?: (Object$1 | URL)[];
|
|
4263
|
+
content?: string | LanguageString$1 | null;
|
|
4264
|
+
contents?: ((string | LanguageString$1))[];
|
|
4265
|
+
contexts?: (Object$1 | Link | URL)[];
|
|
4266
|
+
name?: string | LanguageString$1 | null;
|
|
4267
|
+
names?: ((string | LanguageString$1))[];
|
|
4268
|
+
endTime?: Temporal.Instant | null;
|
|
4269
|
+
generators?: (Object$1 | Link | URL)[];
|
|
4270
|
+
icon?: Image | URL | null;
|
|
4271
|
+
icons?: (Image | URL)[];
|
|
4272
|
+
image?: Image | URL | null;
|
|
4273
|
+
images?: (Image | URL)[];
|
|
4274
|
+
replyTarget?: Object$1 | Link | URL | null;
|
|
4275
|
+
replyTargets?: (Object$1 | Link | URL)[];
|
|
4276
|
+
location?: Object$1 | Link | URL | null;
|
|
4277
|
+
locations?: (Object$1 | Link | URL)[];
|
|
4278
|
+
preview?: Link | Object$1 | URL | null;
|
|
4279
|
+
previews?: (Link | Object$1 | URL)[];
|
|
4280
|
+
published?: Temporal.Instant | null;
|
|
4281
|
+
replies?: Collection | URL | null;
|
|
4282
|
+
shares?: Collection | URL | null;
|
|
4283
|
+
likes?: Collection | URL | null;
|
|
4284
|
+
emojiReactions?: Collection | URL | null;
|
|
4285
|
+
startTime?: Temporal.Instant | null;
|
|
4286
|
+
summary?: string | LanguageString$1 | null;
|
|
4287
|
+
summaries?: ((string | LanguageString$1))[];
|
|
4288
|
+
tags?: (Object$1 | Link | URL)[];
|
|
4289
|
+
updated?: Temporal.Instant | null;
|
|
4290
|
+
url?: URL | Link | null;
|
|
4291
|
+
urls?: ((URL | Link))[];
|
|
4292
|
+
to?: Object$1 | URL | null;
|
|
4293
|
+
tos?: (Object$1 | URL)[];
|
|
4294
|
+
bto?: Object$1 | URL | null;
|
|
4295
|
+
btos?: (Object$1 | URL)[];
|
|
4296
|
+
cc?: Object$1 | URL | null;
|
|
4297
|
+
ccs?: (Object$1 | URL)[];
|
|
4298
|
+
bcc?: Object$1 | URL | null;
|
|
4299
|
+
bccs?: (Object$1 | URL)[];
|
|
4300
|
+
mediaType?: string | null;
|
|
4301
|
+
duration?: Temporal.Duration | null;
|
|
4302
|
+
sensitive?: boolean | null;
|
|
4303
|
+
source?: Source | null;
|
|
4304
|
+
proof?: DataIntegrityProof | URL | null;
|
|
4305
|
+
proofs?: (DataIntegrityProof | URL)[];
|
|
4306
|
+
interactionPolicy?: InteractionPolicy | null;
|
|
4307
|
+
approvedBy?: URL | null;
|
|
4308
|
+
likeAuthorization?: LikeAuthorization | URL | null;
|
|
4309
|
+
replyAuthorization?: ReplyAuthorization | URL | null;
|
|
4310
|
+
announceAuthorization?: AnnounceAuthorization | URL | null;
|
|
4311
|
+
purpose?: string | null;
|
|
4312
|
+
publishes?: Intent | null;
|
|
4313
|
+
reciprocal?: Intent | null;
|
|
4314
|
+
unitBased?: boolean | null;
|
|
4315
|
+
}, options?: {
|
|
4316
|
+
documentLoader?: DocumentLoader$1;
|
|
4317
|
+
contextLoader?: DocumentLoader$1;
|
|
4318
|
+
tracerProvider?: TracerProvider;
|
|
4319
|
+
});
|
|
4320
|
+
/**
|
|
4321
|
+
* Clones this instance, optionally updating it with the given values.
|
|
4322
|
+
* @param values The values to update the clone with.
|
|
4323
|
+
* @param options The options to use for cloning.
|
|
4324
|
+
* @returns The cloned instance.
|
|
4325
|
+
*/
|
|
4326
|
+
override clone(values?: {
|
|
4327
|
+
id?: URL | null;
|
|
4328
|
+
attachments?: (Object$1 | Link | PropertyValue | URL)[];
|
|
4329
|
+
attribution?: Application | Group | Organization | Person | Service | URL | null;
|
|
4330
|
+
attributions?: (Application | Group | Organization | Person | Service | URL)[];
|
|
4331
|
+
audience?: Object$1 | URL | null;
|
|
4332
|
+
audiences?: (Object$1 | URL)[];
|
|
4333
|
+
content?: string | LanguageString$1 | null;
|
|
4334
|
+
contents?: ((string | LanguageString$1))[];
|
|
4335
|
+
contexts?: (Object$1 | Link | URL)[];
|
|
4336
|
+
name?: string | LanguageString$1 | null;
|
|
4337
|
+
names?: ((string | LanguageString$1))[];
|
|
4338
|
+
endTime?: Temporal.Instant | null;
|
|
4339
|
+
generators?: (Object$1 | Link | URL)[];
|
|
4340
|
+
icon?: Image | URL | null;
|
|
4341
|
+
icons?: (Image | URL)[];
|
|
4342
|
+
image?: Image | URL | null;
|
|
4343
|
+
images?: (Image | URL)[];
|
|
4344
|
+
replyTarget?: Object$1 | Link | URL | null;
|
|
4345
|
+
replyTargets?: (Object$1 | Link | URL)[];
|
|
4346
|
+
location?: Object$1 | Link | URL | null;
|
|
4347
|
+
locations?: (Object$1 | Link | URL)[];
|
|
4348
|
+
preview?: Link | Object$1 | URL | null;
|
|
4349
|
+
previews?: (Link | Object$1 | URL)[];
|
|
4350
|
+
published?: Temporal.Instant | null;
|
|
4351
|
+
replies?: Collection | URL | null;
|
|
4352
|
+
shares?: Collection | URL | null;
|
|
4353
|
+
likes?: Collection | URL | null;
|
|
4354
|
+
emojiReactions?: Collection | URL | null;
|
|
4355
|
+
startTime?: Temporal.Instant | null;
|
|
4356
|
+
summary?: string | LanguageString$1 | null;
|
|
4357
|
+
summaries?: ((string | LanguageString$1))[];
|
|
4358
|
+
tags?: (Object$1 | Link | URL)[];
|
|
4359
|
+
updated?: Temporal.Instant | null;
|
|
4360
|
+
url?: URL | Link | null;
|
|
4361
|
+
urls?: ((URL | Link))[];
|
|
4362
|
+
to?: Object$1 | URL | null;
|
|
4363
|
+
tos?: (Object$1 | URL)[];
|
|
4364
|
+
bto?: Object$1 | URL | null;
|
|
4365
|
+
btos?: (Object$1 | URL)[];
|
|
4366
|
+
cc?: Object$1 | URL | null;
|
|
4367
|
+
ccs?: (Object$1 | URL)[];
|
|
4368
|
+
bcc?: Object$1 | URL | null;
|
|
4369
|
+
bccs?: (Object$1 | URL)[];
|
|
4370
|
+
mediaType?: string | null;
|
|
4371
|
+
duration?: Temporal.Duration | null;
|
|
4372
|
+
sensitive?: boolean | null;
|
|
4373
|
+
source?: Source | null;
|
|
4374
|
+
proof?: DataIntegrityProof | URL | null;
|
|
4375
|
+
proofs?: (DataIntegrityProof | URL)[];
|
|
4376
|
+
interactionPolicy?: InteractionPolicy | null;
|
|
4377
|
+
approvedBy?: URL | null;
|
|
4378
|
+
likeAuthorization?: LikeAuthorization | URL | null;
|
|
4379
|
+
replyAuthorization?: ReplyAuthorization | URL | null;
|
|
4380
|
+
announceAuthorization?: AnnounceAuthorization | URL | null;
|
|
4381
|
+
purpose?: string | null;
|
|
4382
|
+
publishes?: Intent | null;
|
|
4383
|
+
reciprocal?: Intent | null;
|
|
4384
|
+
unitBased?: boolean | null;
|
|
4385
|
+
}, options?: {
|
|
4386
|
+
documentLoader?: DocumentLoader$1;
|
|
4387
|
+
contextLoader?: DocumentLoader$1;
|
|
4388
|
+
}): Proposal;
|
|
4389
|
+
/** The type of proposal. Possible values are `"offer"` and `"request"`.
|
|
4390
|
+
*/
|
|
4391
|
+
get purpose(): string | null;
|
|
4392
|
+
/** The primary intent of this proposal, describing what is being offered
|
|
4393
|
+
* or requested.
|
|
4394
|
+
*/
|
|
4395
|
+
get publishes(): Intent | null;
|
|
4396
|
+
/** The reciprocal intent of this proposal, describing what is expected
|
|
4397
|
+
* or offered in return.
|
|
4398
|
+
*/
|
|
4399
|
+
get reciprocal(): Intent | null;
|
|
4400
|
+
/** Indicates whether the quantities expressed in the proposal can be
|
|
4401
|
+
* multiplied or not. The default is `false`.
|
|
4402
|
+
*/
|
|
4403
|
+
get unitBased(): boolean | null;
|
|
4404
|
+
/**
|
|
4405
|
+
* Converts this object to a JSON-LD structure.
|
|
4406
|
+
* @param options The options to use.
|
|
4407
|
+
* - `format`: The format of the output: `compact` or
|
|
4408
|
+
`expand`.
|
|
4409
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
|
4410
|
+
* - `context`: The JSON-LD context to use. Not applicable
|
|
4411
|
+
when `format` is set to `'expand'`.
|
|
4412
|
+
* @returns The JSON-LD representation of this object.
|
|
4413
|
+
*/
|
|
4414
|
+
override toJsonLd(options?: {
|
|
4415
|
+
format?: "compact" | "expand";
|
|
4416
|
+
contextLoader?: DocumentLoader$1;
|
|
4417
|
+
context?: string | Record<string, string> | (string | Record<string, string>)[];
|
|
4418
|
+
}): Promise<unknown>;
|
|
4419
|
+
protected override isCompactable(): boolean;
|
|
4420
|
+
/**
|
|
4421
|
+
* Converts a JSON-LD structure to an object of this type.
|
|
4422
|
+
* @param json The JSON-LD structure to convert.
|
|
4423
|
+
* @param options The options to use.
|
|
4424
|
+
* - `documentLoader`: The loader for remote JSON-LD documents.
|
|
4425
|
+
* - `contextLoader`: The loader for remote JSON-LD contexts.
|
|
4426
|
+
* - `tracerProvider`: The OpenTelemetry tracer provider to use.
|
|
4427
|
+
* If omitted, the global tracer provider is used.
|
|
4428
|
+
* @returns The object of this type.
|
|
4429
|
+
* @throws {TypeError} If the given `json` is invalid.
|
|
4430
|
+
*/
|
|
4431
|
+
static override fromJsonLd(json: unknown, options?: {
|
|
4432
|
+
documentLoader?: DocumentLoader$1;
|
|
4433
|
+
contextLoader?: DocumentLoader$1;
|
|
4434
|
+
tracerProvider?: TracerProvider;
|
|
4435
|
+
baseUrl?: URL;
|
|
4436
|
+
}): Promise<Proposal>;
|
|
4437
|
+
protected static __fromJsonLd__Proposal__(json: unknown, span: Span, options?: {
|
|
4438
|
+
documentLoader?: DocumentLoader$1;
|
|
4439
|
+
contextLoader?: DocumentLoader$1;
|
|
4440
|
+
tracerProvider?: TracerProvider;
|
|
4441
|
+
baseUrl?: URL;
|
|
4442
|
+
}): Promise<Proposal>;
|
|
4443
|
+
protected override _getCustomInspectProxy(): Record<string, unknown>;
|
|
4444
|
+
}
|
|
4025
4445
|
/** Indicates that the `actor` accepts the `object`. The `target` property can be
|
|
4026
4446
|
* used in certain circumstances to indicate the context into which the `object`
|
|
4027
4447
|
* has been accepted.
|
|
@@ -17479,4 +17899,4 @@ declare function getTypeId(object: Object$1 | Link | null): URL | null;
|
|
|
17479
17899
|
*/
|
|
17480
17900
|
declare function getTypeId(object: Object$1 | Link | null | undefined): URL | null | undefined;
|
|
17481
17901
|
//#endregion
|
|
17482
|
-
export { Accept, Activity, Actor, ActorTypeName, Add, Announce, AnnounceAuthorization, AnnounceRequest, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, type DocumentLoader, Emoji, EmojiReact, Endpoints, Event, Export, FediverseHandle, Flag, Follow, GetActorHandleOptions, type GetUserAgentOptions, Group, Hashtag, Ignore, Image, InteractionPolicy, InteractionRule, IntransitiveActivity, Invite, Join, LanguageString, Leave, Like, LikeAuthorization, LikeRequest, Link, Listen, LookupObjectOptions, Mention, Move, Multikey, NormalizeActorHandleOptions, Note, Object$1 as Object, Offer, OrderedCollection, OrderedCollectionPage, Organization, PUBLIC_COLLECTION, Page, Person, Place, Profile, PropertyValue, Question, Read, Recipient, Reject, Relationship, type RemoteDocument, Remove, ReplyAuthorization, ReplyRequest, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, TraverseCollectionOptions, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, isFediverseHandle, lookupObject, normalizeActorHandle, parseFediverseHandle, toAcctUrl, traverseCollection };
|
|
17902
|
+
export { Accept, Activity, Actor, ActorTypeName, Add, Announce, AnnounceAuthorization, AnnounceRequest, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, type DocumentLoader, Emoji, EmojiReact, Endpoints, Event, Export, FediverseHandle, Flag, Follow, GetActorHandleOptions, type GetUserAgentOptions, Group, Hashtag, Ignore, Image, Intent, InteractionPolicy, InteractionRule, IntransitiveActivity, Invite, Join, LanguageString, Leave, Like, LikeAuthorization, LikeRequest, Link, Listen, LookupObjectOptions, Measure, Mention, Move, Multikey, NormalizeActorHandleOptions, Note, Object$1 as Object, Offer, OrderedCollection, OrderedCollectionPage, Organization, PUBLIC_COLLECTION, Page, Person, Place, Profile, PropertyValue, Proposal, Question, Read, Recipient, Reject, Relationship, type RemoteDocument, Remove, ReplyAuthorization, ReplyRequest, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, TraverseCollectionOptions, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, isFediverseHandle, lookupObject, normalizeActorHandle, parseFediverseHandle, toAcctUrl, traverseCollection };
|