@drfed/models 0.2.0-dev.714 → 0.2.0-dev.717
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/README.md +58 -4
- package/dist/activity-delivery.d.mts +1 -1
- package/dist/{db-BBw4F4HU.d.mts → db-CcbUSnp2.d.mts} +84 -3
- package/dist/{db-BBw4F4HU.d.mts.map → db-CcbUSnp2.d.mts.map} +1 -1
- package/dist/db.d.mts +1 -1
- package/dist/document.d.mts +24 -2
- package/dist/document.d.mts.map +1 -1
- package/dist/document.mjs +120 -26
- package/dist/document.mjs.map +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +3 -3
- package/dist/instance.d.mts +1 -1
- package/dist/key.d.mts +1 -1
- package/dist/login.d.mts +8 -2
- package/dist/login.d.mts.map +1 -1
- package/dist/login.mjs +8 -1
- package/dist/login.mjs.map +1 -1
- package/dist/migrations-manifest.json +8 -0
- package/dist/relations.d.mts +1 -1
- package/dist/relations.mjs +19 -2
- package/dist/relations.mjs.map +1 -1
- package/dist/{resource-revision-iQ8HZ699.mjs → resource-revision-bTQyJ7aw.mjs} +28 -3
- package/dist/resource-revision-bTQyJ7aw.mjs.map +1 -0
- package/dist/{resource-revision-BauDwFIn.d.mts → resource-revision-rDmHhNCj.d.mts} +19 -3
- package/dist/resource-revision-rDmHhNCj.d.mts.map +1 -0
- package/dist/resource-revision.d.mts +2 -2
- package/dist/resource-revision.mjs +1 -1
- package/dist/resource.d.mts +1 -1
- package/dist/schema.d.mts +2 -2
- package/dist/schema.mjs +27 -1
- package/dist/schema.mjs.map +1 -1
- package/drizzle/20261113080536_revision_embeddings/migration.sql +14 -0
- package/drizzle/20261113080536_revision_embeddings/snapshot.json +4634 -0
- package/drizzle/20261113080537_guard_revision_embeddings/migration.sql +42 -0
- package/drizzle/20261113080537_guard_revision_embeddings/snapshot.json +4634 -0
- package/package.json +6 -6
- package/dist/resource-revision-BauDwFIn.d.mts.map +0 -1
- package/dist/resource-revision-iQ8HZ699.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -280,10 +280,64 @@ unsupported. Validation preserves these values without adding seconds or
|
|
|
280
280
|
truncating precision. Timestamp validation does not establish server ownership
|
|
281
281
|
or ordering between fields.
|
|
282
282
|
|
|
283
|
-
`Question` is supported standalone and inside `Create`/`Update
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
283
|
+
`Question` is supported standalone and inside `Create`/`Update`. It remains an
|
|
284
|
+
intransitive activity: a non-null `object` on the Question itself is invalid.
|
|
285
|
+
Open-ended Questions need no choices, and content may be absent or empty.
|
|
286
|
+
|
|
287
|
+
| Question field | Supported values |
|
|
288
|
+
| -------------- | ------------------------------------------------------------------------------------------------------------------------ |
|
|
289
|
+
| `oneOf` | A single-choice poll accepts IRI references or supported embedded objects, singly or in a flat list. |
|
|
290
|
+
| `anyOf` | Choices for a multiple-choice poll, with the same value shapes as `oneOf`. |
|
|
291
|
+
| `closed` | A boolean or date-time string following the timestamp rules above. DrFed supports one non-null value across all aliases. |
|
|
292
|
+
|
|
293
|
+
Supplying non-null values in both choice modes reports
|
|
294
|
+
`mutually_exclusive_properties` (vocabulary/error) at each contributing source
|
|
295
|
+
field, including aliases inside nested documents. Null and null-only lists
|
|
296
|
+
mean absence. Empty choice lists on `Question` receive the usual omission
|
|
297
|
+
preview. On other types, poll fields with non-null scalar or object values
|
|
298
|
+
receive `property_not_applicable`, including when those values are list
|
|
299
|
+
entries. Empty lists on other types also receive `property_not_applicable`.
|
|
300
|
+
Malformed entries, such as nested lists, receive diagnostics at their own paths.
|
|
301
|
+
|
|
302
|
+
Choices retain supported properties and custom extensions rather than being
|
|
303
|
+
reduced to labels. Embedded choices require an explicit supported type, such
|
|
304
|
+
as `Note` or `Object`, under the checker's shared type policy. Untyped choices
|
|
305
|
+
receive `unsupported_type`. Embedded Link choices, resource-valued `closed`
|
|
306
|
+
conditions, and multiple closing values in a list or across aliases receive
|
|
307
|
+
`unsupported_value_form`. Compact IRIs in choice references and embedded
|
|
308
|
+
choice IDs are checked offline after prefix expansion.
|
|
309
|
+
|
|
310
|
+
An embedded choice outside a list can trigger `poll_choices_not_list`, and a
|
|
311
|
+
valid IRI choice can trigger `poll_choice_reference`. These compatibility
|
|
312
|
+
warnings flag forms that Mastodon may fail to read because it expects a list
|
|
313
|
+
of embedded choices. The validator reports each warning at most once per poll,
|
|
314
|
+
at the first match in source-key order and then list order. It omits both
|
|
315
|
+
warnings when the choice modes conflict. Custom choice extensions receive
|
|
316
|
+
`extension_property_unchecked` warnings; successful validation does not
|
|
317
|
+
guarantee their preservation during serialization or sending.
|
|
318
|
+
|
|
319
|
+
For example, this embedded poll passes validation without requiring HTML
|
|
320
|
+
content or votes:
|
|
321
|
+
|
|
322
|
+
~~~~ json
|
|
323
|
+
{
|
|
324
|
+
"@context": "https://www.w3.org/ns/activitystreams",
|
|
325
|
+
"type": "Create",
|
|
326
|
+
"object": {
|
|
327
|
+
"type": "Question",
|
|
328
|
+
"name": "Which day?",
|
|
329
|
+
"oneOf": [
|
|
330
|
+
{ "type": "Note", "name": "Monday" },
|
|
331
|
+
{ "type": "Note", "name": "Friday" }
|
|
332
|
+
],
|
|
333
|
+
"closed": "2026-11-14T12:00:00Z"
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
~~~~
|
|
337
|
+
|
|
338
|
+
These rules validate document values; they do not schedule poll closure or
|
|
339
|
+
count votes. Other types without implemented rules, such as `Place`, receive
|
|
340
|
+
support findings.
|
|
287
341
|
|
|
288
342
|
For 0.2.0, `Object` property rules for `tag`, `inReplyTo`, `url`, `attachment`,
|
|
289
343
|
`replies`, `icon`, `image`, `context`, `source`, `duration`, and `generator`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as NewActivityDelivery, N as NewActivityDeliveryActor, o as ActivityDelivery, r as Transaction, t as Database } from "./db-
|
|
1
|
+
import { M as NewActivityDelivery, N as NewActivityDeliveryActor, o as ActivityDelivery, r as Transaction, t as Database } from "./db-CcbUSnp2.mjs";
|
|
2
2
|
import { t as Uuid } from "./uuid-CKMzlIND.mjs";
|
|
3
3
|
//#region src/activity-delivery.d.ts
|
|
4
4
|
/** The marks of what a delivery carried are the model's to decide. */
|
|
@@ -32,7 +32,7 @@ declare function observeKeyVersion(db: Database, entry: {
|
|
|
32
32
|
readonly observed?: Temporal.Instant;
|
|
33
33
|
}): Promise<KeyVersion>;
|
|
34
34
|
declare namespace schema_d_exports {
|
|
35
|
-
export { Account, ActivityDelivery, ActivityDeliveryActor, ActivityDeliveryActorCollection, ActivityDeliveryAttempt, ActivityDeliveryDirection, ActivityDeliveryStatus, ActivityDeliveryVerificationMechanism, ActivityDeliveryVerificationResult, ActivityPubObject, Actor, ActorType, Addressing, AddressingProperty, Collection, CollectionRole, Instance, InstanceMember, Key, KeyVersion, LOGIN_CHALLENGE_CODE_LENGTH, LocalActor, LocalActorKey, LocalActorKeyType, LocalInstance, LoginChallenge, NewAccount, NewActivityDelivery, NewActivityDeliveryActor, NewActivityPubObject, NewActor, NewInstance, NewInstanceMember, NewLocalActor, NewLocalActorKey, NewLocalInstance, NewLoginChallenge, NewResourceRevision, NewSession, ObjectType, Resource, ResourceHead, ResourceRevision, RevisionAddressing, RevisionReceipt, RevisionRelation, Session, StoredActivity, accounts, activities, activityDeliveries, activityDeliveryActorCollections, activityDeliveryActors, activityDeliveryAttempts, activityDeliveryDirectionEnum, activityDeliveryStatusEnum, activityDeliveryVerificationMechanismEnum, activityDeliveryVerificationResultEnum, activityTypeEnum, actorCollectionReferences, actorTypeEnum, actors, addressing, addressingPropertyEnum, collectionItems, collectionRoleEnum, collectionTypeEnum, collections, instanceMembers, instances, keyVersions, keys, localActorKeyTypeEnum, localActorKeys, localActors, localInstances, loginChallenges, objectTypeEnum, objects, resourceHeads, resourceKindEnum, resourceRevisionCaptureEnum, resourceRevisionKindEnum, resourceRevisionProjectionEnum, resourceRevisions, resources, revisionAddressing, revisionReceiptRoleEnum, revisionReceipts, revisionRelationRepresentationEnum, revisionRelations, sessions };
|
|
35
|
+
export { Account, ActivityDelivery, ActivityDeliveryActor, ActivityDeliveryActorCollection, ActivityDeliveryAttempt, ActivityDeliveryDirection, ActivityDeliveryStatus, ActivityDeliveryVerificationMechanism, ActivityDeliveryVerificationResult, ActivityPubObject, Actor, ActorType, Addressing, AddressingProperty, Collection, CollectionRole, Instance, InstanceMember, Key, KeyVersion, LOGIN_CHALLENGE_CODE_LENGTH, LocalActor, LocalActorKey, LocalActorKeyType, LocalInstance, LoginChallenge, NewAccount, NewActivityDelivery, NewActivityDeliveryActor, NewActivityPubObject, NewActor, NewInstance, NewInstanceMember, NewLocalActor, NewLocalActorKey, NewLocalInstance, NewLoginChallenge, NewResourceRevision, NewSession, ObjectType, Resource, ResourceHead, ResourceRevision, RevisionAddressing, RevisionEmbedding, RevisionReceipt, RevisionRelation, Session, StoredActivity, accounts, activities, activityDeliveries, activityDeliveryActorCollections, activityDeliveryActors, activityDeliveryAttempts, activityDeliveryDirectionEnum, activityDeliveryStatusEnum, activityDeliveryVerificationMechanismEnum, activityDeliveryVerificationResultEnum, activityTypeEnum, actorCollectionReferences, actorTypeEnum, actors, addressing, addressingPropertyEnum, collectionItems, collectionRoleEnum, collectionTypeEnum, collections, instanceMembers, instances, keyVersions, keys, localActorKeyTypeEnum, localActorKeys, localActors, localInstances, loginChallenges, objectTypeEnum, objects, resourceHeads, resourceKindEnum, resourceRevisionCaptureEnum, resourceRevisionKindEnum, resourceRevisionProjectionEnum, resourceRevisions, resources, revisionAddressing, revisionEmbeddingRelationEnum, revisionEmbeddings, revisionReceiptRoleEnum, revisionReceipts, revisionRelationRepresentationEnum, revisionRelations, sessions };
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* The database table to represent accounts.
|
|
@@ -3362,6 +3362,81 @@ declare const revisionRelations: import("drizzle-orm/pg-core").PgTableWithColumn
|
|
|
3362
3362
|
};
|
|
3363
3363
|
dialect: 'pg';
|
|
3364
3364
|
}>;
|
|
3365
|
+
declare const revisionEmbeddingRelationEnum: import("drizzle-orm/pg-core").PgEnum<["snapshot", "derived"]>;
|
|
3366
|
+
/**
|
|
3367
|
+
* Where an embedded document of a revision came from, recorded when the
|
|
3368
|
+
* revision was saved: the revision of another resource whose contents it
|
|
3369
|
+
* keeps, apart from the context it inherits, or from which it was derived.
|
|
3370
|
+
* An embedded document without a row has an unknown source. Rows are part
|
|
3371
|
+
* of the immutable history of their revision.
|
|
3372
|
+
*/
|
|
3373
|
+
declare const revisionEmbeddings: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
3374
|
+
name: "revision_embeddings";
|
|
3375
|
+
schema: undefined;
|
|
3376
|
+
columns: {
|
|
3377
|
+
revisionId: import("drizzle-orm/pg-core").PgBuildColumn<"revision_embeddings", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgUUIDBuilder, `${string}-${string}-${string}-${string}-${string}`>>, {
|
|
3378
|
+
name: string;
|
|
3379
|
+
tableName: "revision_embeddings";
|
|
3380
|
+
dataType: "string uuid";
|
|
3381
|
+
data: `${string}-${string}-${string}-${string}-${string}`;
|
|
3382
|
+
driverParam: string;
|
|
3383
|
+
notNull: true;
|
|
3384
|
+
hasDefault: false;
|
|
3385
|
+
isPrimaryKey: false;
|
|
3386
|
+
isAutoincrement: false;
|
|
3387
|
+
hasRuntimeDefault: false;
|
|
3388
|
+
enumValues: undefined;
|
|
3389
|
+
identity: undefined;
|
|
3390
|
+
generated: undefined;
|
|
3391
|
+
}>;
|
|
3392
|
+
path: import("drizzle-orm/pg-core").PgBuildColumn<"revision_embeddings", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, readonly (string | number)[]>>, {
|
|
3393
|
+
name: string;
|
|
3394
|
+
tableName: "revision_embeddings";
|
|
3395
|
+
dataType: "object json";
|
|
3396
|
+
data: readonly (string | number)[];
|
|
3397
|
+
driverParam: unknown;
|
|
3398
|
+
notNull: true;
|
|
3399
|
+
hasDefault: false;
|
|
3400
|
+
isPrimaryKey: false;
|
|
3401
|
+
isAutoincrement: false;
|
|
3402
|
+
hasRuntimeDefault: false;
|
|
3403
|
+
enumValues: undefined;
|
|
3404
|
+
identity: undefined;
|
|
3405
|
+
generated: undefined;
|
|
3406
|
+
}>;
|
|
3407
|
+
sourceRevisionId: import("drizzle-orm/pg-core").PgBuildColumn<"revision_embeddings", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgUUIDBuilder, `${string}-${string}-${string}-${string}-${string}`>>, {
|
|
3408
|
+
name: string;
|
|
3409
|
+
tableName: "revision_embeddings";
|
|
3410
|
+
dataType: "string uuid";
|
|
3411
|
+
data: `${string}-${string}-${string}-${string}-${string}`;
|
|
3412
|
+
driverParam: string;
|
|
3413
|
+
notNull: true;
|
|
3414
|
+
hasDefault: false;
|
|
3415
|
+
isPrimaryKey: false;
|
|
3416
|
+
isAutoincrement: false;
|
|
3417
|
+
hasRuntimeDefault: false;
|
|
3418
|
+
enumValues: undefined;
|
|
3419
|
+
identity: undefined;
|
|
3420
|
+
generated: undefined;
|
|
3421
|
+
}>;
|
|
3422
|
+
relation: import("drizzle-orm/pg-core").PgBuildColumn<"revision_embeddings", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgEnumColumnBuilder<["snapshot", "derived"]>>, {
|
|
3423
|
+
name: string;
|
|
3424
|
+
tableName: "revision_embeddings";
|
|
3425
|
+
dataType: "string enum";
|
|
3426
|
+
data: "derived" | "snapshot";
|
|
3427
|
+
driverParam: string;
|
|
3428
|
+
notNull: true;
|
|
3429
|
+
hasDefault: false;
|
|
3430
|
+
isPrimaryKey: false;
|
|
3431
|
+
isAutoincrement: false;
|
|
3432
|
+
hasRuntimeDefault: false;
|
|
3433
|
+
enumValues: ["snapshot", "derived"];
|
|
3434
|
+
identity: undefined;
|
|
3435
|
+
generated: undefined;
|
|
3436
|
+
}>;
|
|
3437
|
+
};
|
|
3438
|
+
dialect: 'pg';
|
|
3439
|
+
}>;
|
|
3365
3440
|
declare const revisionReceiptRoleEnum: import("drizzle-orm/pg-core").PgEnum<["activity", "object"]>;
|
|
3366
3441
|
/** Mutable index of delivery evidence, not part of immutable document history. */
|
|
3367
3442
|
declare const revisionReceipts: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
@@ -3422,6 +3497,7 @@ type ResourceHead = typeof resourceHeads.$inferSelect;
|
|
|
3422
3497
|
type RevisionAddressing = typeof revisionAddressing.$inferSelect;
|
|
3423
3498
|
type RevisionRelation = typeof revisionRelations.$inferSelect;
|
|
3424
3499
|
type RevisionReceipt = typeof revisionReceipts.$inferSelect;
|
|
3500
|
+
type RevisionEmbedding = typeof revisionEmbeddings.$inferSelect;
|
|
3425
3501
|
//#endregion
|
|
3426
3502
|
//#region src/relations.d.ts
|
|
3427
3503
|
declare const relations: import("drizzle-orm").ExtractTablesWithRelations<{
|
|
@@ -3430,6 +3506,7 @@ declare const relations: import("drizzle-orm").ExtractTablesWithRelations<{
|
|
|
3430
3506
|
addressing: import("drizzle-orm").Many<"revisionAddressing">;
|
|
3431
3507
|
relations: import("drizzle-orm").Many<"revisionRelations">;
|
|
3432
3508
|
receipts: import("drizzle-orm").Many<"revisionReceipts">;
|
|
3509
|
+
embeddings: import("drizzle-orm").Many<"revisionEmbeddings">;
|
|
3433
3510
|
};
|
|
3434
3511
|
resourceHeads: {
|
|
3435
3512
|
resource: import("drizzle-orm").One<"resources", false>;
|
|
@@ -3441,6 +3518,10 @@ declare const relations: import("drizzle-orm").ExtractTablesWithRelations<{
|
|
|
3441
3518
|
revisionRelations: {
|
|
3442
3519
|
revision: import("drizzle-orm").One<"resourceRevisions", false>;
|
|
3443
3520
|
};
|
|
3521
|
+
revisionEmbeddings: {
|
|
3522
|
+
revision: import("drizzle-orm").One<"resourceRevisions", false>;
|
|
3523
|
+
source: import("drizzle-orm").One<"resourceRevisions", false>;
|
|
3524
|
+
};
|
|
3444
3525
|
revisionReceipts: {
|
|
3445
3526
|
revision: import("drizzle-orm").One<"resourceRevisions", false>;
|
|
3446
3527
|
delivery: import("drizzle-orm").One<"activityDeliveries", false>;
|
|
@@ -3566,5 +3647,5 @@ type Transaction = PgAsyncTransaction<PgQueryResultHKT, typeof schema_d_exports,
|
|
|
3566
3647
|
*/
|
|
3567
3648
|
type RelationsFilter$1<T extends keyof typeof relations> = RelationsFilter<(typeof relations)[T], typeof relations>;
|
|
3568
3649
|
//#endregion
|
|
3569
|
-
export {
|
|
3570
|
-
//# sourceMappingURL=db-
|
|
3650
|
+
export { StoredActivity as $, LoginChallenge as A, objects as At, NewLocalInstance as B, revisionEmbeddings as Bt, Key as C, keys as Ct, LocalActorKey as D, localInstances as Dt, LocalActor as E, localActors as Et, NewActor as F, resourceRevisionProjectionEnum as Ft, Resource as G, schema_d_exports as Gt, NewResourceRevision as H, revisionReceipts as Ht, NewInstance as I, resourceRevisions as It, RevisionAddressing as J, jwkThumbprint as Jt, ResourceHead as K, sessions as Kt, NewInstanceMember as L, resources as Lt, NewActivityDelivery as M, resourceKindEnum as Mt, NewActivityDeliveryActor as N, resourceRevisionCaptureEnum as Nt, LocalActorKeyType as O, loginChallenges as Ot, NewActivityPubObject as P, resourceRevisionKindEnum as Pt, Session as Q, NewLocalActor as R, revisionAddressing as Rt, InstanceMember as S, keyVersions as St, LOGIN_CHALLENGE_CODE_LENGTH as T, localActorKeys as Tt, NewSession as U, revisionRelationRepresentationEnum as Ut, NewLoginChallenge as V, revisionReceiptRoleEnum as Vt, ObjectType as W, revisionRelations as Wt, RevisionReceipt as X, thumbprintInput as Xt, RevisionEmbedding as Y, observeKeyVersion as Yt, RevisionRelation as Z, toPublicJwk as Zt, Addressing as _, collectionRoleEnum as _t, Account as a, activityDeliveryAttempts as at, CollectionRole as b, instanceMembers as bt, ActivityDeliveryActorCollection as c, activityDeliveryVerificationMechanismEnum as ct, ActivityDeliveryStatus as d, actorCollectionReferences as dt, accounts as et, ActivityDeliveryVerificationMechanism as f, actorTypeEnum as ft, ActorType as g, collectionItems as gt, Actor as h, addressingPropertyEnum as ht, relations as i, activityDeliveryActors as it, NewAccount as j, resourceHeads as jt, LocalInstance as k, objectTypeEnum as kt, ActivityDeliveryAttempt as l, activityDeliveryVerificationResultEnum as lt, ActivityPubObject as m, addressing as mt, RelationsFilter$1 as n, activityDeliveries as nt, ActivityDelivery as o, activityDeliveryDirectionEnum as ot, ActivityDeliveryVerificationResult as p, actors as pt, ResourceRevision as q, PublicJwk as qt, Transaction as r, activityDeliveryActorCollections as rt, ActivityDeliveryActor as s, activityDeliveryStatusEnum as st, Database as t, activities as tt, ActivityDeliveryDirection as u, activityTypeEnum as ut, AddressingProperty as v, collectionTypeEnum as vt, KeyVersion as w, localActorKeyTypeEnum as wt, Instance as x, instances as xt, Collection as y, collections as yt, NewLocalActorKey as z, revisionEmbeddingRelationEnum as zt };
|
|
3651
|
+
//# sourceMappingURL=db-CcbUSnp2.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"db-
|
|
1
|
+
{"version":3,"file":"db-CcbUSnp2.d.mts","names":["schema","schema","RelationsFilter","RelationsFilterImpl"],"sources":["../src/key.ts","../src/schema.ts","../src/relations.ts","../src/db.ts"],"mappings":";;;;;KAuBY,YAAY,QACtB,QAAQ,WAAW,6BACnB;EACI;EAAc;;;;;;iBAiBJ,YAAY,KAAK,YAAY;;;;;iBAY7B,gBAAgB,KAAK;;;;;iBAyBf,cAAc,KAAK,YAAY;;;;;iBAe/B,kBACpB,IAAI,UACJ;WACW;WACA,WAAW;WACX,WAAW,SAAS;IAE9B,QAAQ;;;;;;;cCvCE,wCAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAAR,SAAA;;;;;;YAAA,SAAA;;;;;;;;;;;;;;KAoBD,iBAAi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If,gCAAQ;IAIR,gCAAQ;;;IAMR,gCAAQ;;;IAOR,gCAAQ;IAKR,6BAAK;IAKL,mCAAW;;;IAYX,iCAAS;;;IAaT,iCAAS;IAST,uCAAe;IAOf,gCAAQ;IAIR,uCAAe;;;IAMf,+BAAO;IAIP,gCAAQ;;;IAMR,0CAAkB;IAIlB,+BAAO;IASP,uCAAe;IAOf,8BAAM;IAKN,qCAAa;;;IAMb,gCAAQ;;;IAMR,+BAAO;;;IAOP,+BAAO;;;IAOP,iCAAS;IAIT,4BAAI;IAIJ,6BAAK;IAKL,8BAAM;IAKN,gCAAQ;IAKR,kCAAU;IAKV,mCAAW;;;IAMX,8BAAM;IAKN,sCAAc;;;IAOd,6BAAK;IAKL,kCAAU;;;IAOV,gCAAQ;IAKR,kCAAU;IAIV,6BAAK;;;IAML,kCAAU;IAKV,4BAAI;;;IAOJ,gCAAQ;IAKR,6BAAK;IAKL,8BAAM;IAIN,kCAAU;IAIV,kCAAU;;;IAMV,gCAAQ;IAKR,kCAAU;IAIV,kCAAU;IAIV,6BAAK;;;IAOL,6CAAqB;IAIrB,4CAAoB;IAIpB,gCAAQ;IAKR,mCAAW;IAIX,kCAAU;IAIV,+BAAO;IAIP,gCAAQ;IAKR,kCAAU;;;IAMV,6BAAK;;yBAEN,+BAAAA;;;;;;KC3ZS,WAAW,gBACrB,yBACOC,yBACA;;;;KAMG,cAAc,mBACxB,yBACOA,yBACA;;;;KAMGC,kBAAgB,uBAAuB,aACjDC,wBAA4B,WAAW,WAAW"}
|
package/dist/db.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as RelationsFilter, r as Transaction, t as Database } from "./db-
|
|
1
|
+
import { n as RelationsFilter, r as Transaction, t as Database } from "./db-CcbUSnp2.mjs";
|
|
2
2
|
export { Database, RelationsFilter, Transaction };
|
package/dist/document.d.mts
CHANGED
|
@@ -29,6 +29,10 @@ declare const DIAGNOSTIC_REASONS: {
|
|
|
29
29
|
readonly category: "vocabulary";
|
|
30
30
|
readonly severity: "error";
|
|
31
31
|
};
|
|
32
|
+
readonly mutually_exclusive_properties: {
|
|
33
|
+
readonly category: "vocabulary";
|
|
34
|
+
readonly severity: "error";
|
|
35
|
+
};
|
|
32
36
|
readonly property_not_applicable: {
|
|
33
37
|
readonly category: "vocabulary";
|
|
34
38
|
readonly severity: "error";
|
|
@@ -45,6 +49,10 @@ declare const DIAGNOSTIC_REASONS: {
|
|
|
45
49
|
readonly category: "authority";
|
|
46
50
|
readonly severity: "error";
|
|
47
51
|
};
|
|
52
|
+
readonly source_unavailable: {
|
|
53
|
+
readonly category: "authority";
|
|
54
|
+
readonly severity: "error";
|
|
55
|
+
};
|
|
48
56
|
readonly context_unavailable_offline: {
|
|
49
57
|
readonly category: "support";
|
|
50
58
|
readonly severity: "error";
|
|
@@ -89,6 +97,14 @@ declare const DIAGNOSTIC_REASONS: {
|
|
|
89
97
|
readonly category: "compatibility";
|
|
90
98
|
readonly severity: "warning";
|
|
91
99
|
};
|
|
100
|
+
readonly poll_choices_not_list: {
|
|
101
|
+
readonly category: "compatibility";
|
|
102
|
+
readonly severity: "warning";
|
|
103
|
+
};
|
|
104
|
+
readonly poll_choice_reference: {
|
|
105
|
+
readonly category: "compatibility";
|
|
106
|
+
readonly severity: "warning";
|
|
107
|
+
};
|
|
92
108
|
};
|
|
93
109
|
type DiagnosticReason = keyof typeof DIAGNOSTIC_REASONS;
|
|
94
110
|
interface Diagnostic {
|
|
@@ -155,8 +171,8 @@ declare const ADDRESSING_PROPERTIES: readonly ["to", "cc", "bto", "bcc", "audien
|
|
|
155
171
|
* Checks the implemented Activity Vocabulary types, including nested
|
|
156
172
|
* activity objects, without network access or writes. Embedded objects inherit
|
|
157
173
|
* the parent's context. Collections add member, count, and navigation checks.
|
|
158
|
-
* Question
|
|
159
|
-
*
|
|
174
|
+
* Question adds exclusive/inclusive choices and boolean/date-time closing
|
|
175
|
+
* conditions to shared intransitive rules.
|
|
160
176
|
*
|
|
161
177
|
* Supports allowlisted bundled contexts and simple inline aliases/prefixes,
|
|
162
178
|
* single types, id, string content,
|
|
@@ -217,6 +233,12 @@ interface DocumentNode {
|
|
|
217
233
|
* not listed.
|
|
218
234
|
*/
|
|
219
235
|
readonly properties: ReadonlyMap<string, readonly string[]>;
|
|
236
|
+
/**
|
|
237
|
+
* The source keys of the document's own custom extension properties, whose
|
|
238
|
+
* values are preserved as opaque JSON, sorted by key. Together with
|
|
239
|
+
* the keys in `properties` and `@context`, they are all of its keys.
|
|
240
|
+
*/
|
|
241
|
+
readonly extensionProperties: readonly string[];
|
|
220
242
|
/**
|
|
221
243
|
* String IRI references held by this document's own reference properties
|
|
222
244
|
* (`id`, `actor`, `object`, addressing, `href`, and so on), with compact
|
package/dist/document.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.d.mts","names":[],"sources":["../src/document.ts"],"mappings":";;KAqEY;KAEA;KAMA;;cAGC;;aACc;aAAwB;;;aAC/B;aAAwB;;;aACnB;aAAwB;;;aAChC;aAAwB;;;aACnB;aAAwB;;;aACpB;aAAwB;;;
|
|
1
|
+
{"version":3,"file":"document.d.mts","names":[],"sources":["../src/document.ts"],"mappings":";;KAqEY;KAEA;KAMA;;cAGC;;aACc;aAAwB;;;aAC/B;aAAwB;;;aACnB;aAAwB;;;aAChC;aAAwB;;;aACnB;aAAwB;;;aACpB;aAAwB;;;aACf;aAAwB;;;aAC9B;aAAwB;;;aAChC;aAAwB;;;aACZ;aAAuB;;;aACvB;aAAuB;;;aAChC;aAAuB;;;aACd;aAAqB;;;aACxB;aAAqB;;;aAC7B;aAAqB;;;aACjB;aAAqB;;;aACnB;aAAqB;;;aAClB;aAAqB;;;aACtB;aAAqB;;;aAE/C;aACA;;;aAGA;aACA;;;aAEqB;aAA2B;;;aAC7B;aAA2B;;;aACvB;aAA2B;;;aAC3B;aAA2B;;;KAS1C,gCAAgC;UAE3B;WACN,QAAQ;WACR,UAAU;WACV,UAAU;WACV,MA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