@drfed/models 0.2.0-dev.716 → 0.2.0-dev.718
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-CcbUSnp2.d.mts → db-Al_MT-L_.d.mts} +132 -3
- package/dist/{db-CcbUSnp2.d.mts.map → db-Al_MT-L_.d.mts.map} +1 -1
- package/dist/db.d.mts +1 -1
- package/dist/document.d.mts +14 -2
- package/dist/document.d.mts.map +1 -1
- package/dist/document.mjs +115 -26
- package/dist/document.mjs.map +1 -1
- package/dist/expansion-p4BoMDVd.d.mts +90 -0
- package/dist/expansion-p4BoMDVd.d.mts.map +1 -0
- package/dist/expansion.d.mts +2 -0
- package/dist/expansion.mjs +131 -0
- package/dist/expansion.mjs.map +1 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +2 -2
- package/dist/instance.d.mts +1 -1
- package/dist/key.d.mts +1 -1
- package/dist/login.d.mts +1 -1
- package/dist/migrations-manifest.json +4 -0
- package/dist/relations.d.mts +1 -1
- package/dist/{resource-revision-rDmHhNCj.d.mts → resource-revision-BbXciRsu.d.mts} +117 -4
- package/dist/resource-revision-BbXciRsu.d.mts.map +1 -0
- package/dist/{resource-revision-bTQyJ7aw.mjs → resource-revision-DGsz8fnS.mjs} +338 -42
- package/dist/resource-revision-DGsz8fnS.mjs.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 +55 -1
- package/dist/schema.mjs.map +1 -1
- package/drizzle/20261125051505_revision_expansions/migration.sql +31 -0
- package/drizzle/20261125051505_revision_expansions/snapshot.json +4806 -0
- package/package.json +12 -7
- package/dist/resource-revision-bTQyJ7aw.mjs.map +0 -1
- package/dist/resource-revision-rDmHhNCj.d.mts.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-Al_MT-L_.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, 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 };
|
|
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, NewRevisionExpansion, NewSession, ObjectType, Resource, ResourceHead, ResourceRevision, RevisionAddressing, RevisionEmbedding, RevisionExpansion, 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, revisionExpansionOutcomeEnum, revisionExpansions, revisionReceiptRoleEnum, revisionReceipts, revisionRelationRepresentationEnum, revisionRelations, sessions };
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* The database table to represent accounts.
|
|
@@ -3437,6 +3437,133 @@ declare const revisionEmbeddings: import("drizzle-orm/pg-core").PgTableWithColum
|
|
|
3437
3437
|
};
|
|
3438
3438
|
dialect: 'pg';
|
|
3439
3439
|
}>;
|
|
3440
|
+
declare const revisionExpansionOutcomeEnum: import("drizzle-orm/pg-core").PgEnum<["expanded", "failed", "no_document"]>;
|
|
3441
|
+
/**
|
|
3442
|
+
* The JSON-LD expanded form of a revision's document, written with the
|
|
3443
|
+
* revision. Unlike the other revision projections, rows are derived data: an
|
|
3444
|
+
* incorrect expansion is a bug, fixed by recomputing the rows of the affected
|
|
3445
|
+
* revisions, so the table has no immutability guard. A revision without a row
|
|
3446
|
+
* has not been expanded yet. An object embedded in a received activity is
|
|
3447
|
+
* expanded from that activity's document, recorded as `sourceRevisionId`.
|
|
3448
|
+
*
|
|
3449
|
+
* Unlike revision documents, expanded documents are `jsonb` so that they can
|
|
3450
|
+
* be indexed and queried with containment. Being derived, they are stored
|
|
3451
|
+
* normalized: U+0000 and unpaired surrogates in strings and keys become
|
|
3452
|
+
* U+FFFD, and negative zero becomes zero. The stored document holds the exact
|
|
3453
|
+
* values.
|
|
3454
|
+
*/
|
|
3455
|
+
declare const revisionExpansions: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
3456
|
+
name: "revision_expansions";
|
|
3457
|
+
schema: undefined;
|
|
3458
|
+
columns: {
|
|
3459
|
+
revisionId: import("drizzle-orm/pg-core").PgBuildColumn<"revision_expansions", import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgUUIDBuilder, `${string}-${string}-${string}-${string}-${string}`>>, {
|
|
3460
|
+
name: string;
|
|
3461
|
+
tableName: "revision_expansions";
|
|
3462
|
+
dataType: "string uuid";
|
|
3463
|
+
data: `${string}-${string}-${string}-${string}-${string}`;
|
|
3464
|
+
driverParam: string;
|
|
3465
|
+
notNull: true;
|
|
3466
|
+
hasDefault: false;
|
|
3467
|
+
isPrimaryKey: false;
|
|
3468
|
+
isAutoincrement: false;
|
|
3469
|
+
hasRuntimeDefault: false;
|
|
3470
|
+
enumValues: undefined;
|
|
3471
|
+
identity: undefined;
|
|
3472
|
+
generated: undefined;
|
|
3473
|
+
}>;
|
|
3474
|
+
outcome: import("drizzle-orm/pg-core").PgBuildColumn<"revision_expansions", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgEnumColumnBuilder<["expanded", "failed", "no_document"]>>, {
|
|
3475
|
+
name: string;
|
|
3476
|
+
tableName: "revision_expansions";
|
|
3477
|
+
dataType: "string enum";
|
|
3478
|
+
data: "expanded" | "failed" | "no_document";
|
|
3479
|
+
driverParam: string;
|
|
3480
|
+
notNull: true;
|
|
3481
|
+
hasDefault: false;
|
|
3482
|
+
isPrimaryKey: false;
|
|
3483
|
+
isAutoincrement: false;
|
|
3484
|
+
hasRuntimeDefault: false;
|
|
3485
|
+
enumValues: ["expanded", "failed", "no_document"];
|
|
3486
|
+
identity: undefined;
|
|
3487
|
+
generated: undefined;
|
|
3488
|
+
}>;
|
|
3489
|
+
document: import("drizzle-orm/pg-core").PgBuildColumn<"revision_expansions", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, readonly unknown[]>, {
|
|
3490
|
+
name: string;
|
|
3491
|
+
tableName: "revision_expansions";
|
|
3492
|
+
dataType: "object json";
|
|
3493
|
+
data: readonly unknown[];
|
|
3494
|
+
driverParam: unknown;
|
|
3495
|
+
notNull: false;
|
|
3496
|
+
hasDefault: false;
|
|
3497
|
+
isPrimaryKey: false;
|
|
3498
|
+
isAutoincrement: false;
|
|
3499
|
+
hasRuntimeDefault: false;
|
|
3500
|
+
enumValues: undefined;
|
|
3501
|
+
identity: undefined;
|
|
3502
|
+
generated: undefined;
|
|
3503
|
+
}>;
|
|
3504
|
+
droppedTerms: import("drizzle-orm/pg-core").PgBuildColumn<"revision_expansions", import("drizzle-orm/pg-core").SetDimensions<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, 1>, {
|
|
3505
|
+
name: string;
|
|
3506
|
+
tableName: "revision_expansions";
|
|
3507
|
+
dataType: "string";
|
|
3508
|
+
data: string[];
|
|
3509
|
+
driverParam: string | string[];
|
|
3510
|
+
notNull: false;
|
|
3511
|
+
hasDefault: false;
|
|
3512
|
+
isPrimaryKey: false;
|
|
3513
|
+
isAutoincrement: false;
|
|
3514
|
+
hasRuntimeDefault: false;
|
|
3515
|
+
enumValues: undefined;
|
|
3516
|
+
identity: undefined;
|
|
3517
|
+
generated: undefined;
|
|
3518
|
+
}>;
|
|
3519
|
+
undefinedTerms: import("drizzle-orm/pg-core").PgBuildColumn<"revision_expansions", import("drizzle-orm/pg-core").SetDimensions<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, 1>, {
|
|
3520
|
+
name: string;
|
|
3521
|
+
tableName: "revision_expansions";
|
|
3522
|
+
dataType: "string";
|
|
3523
|
+
data: string[];
|
|
3524
|
+
driverParam: string | string[];
|
|
3525
|
+
notNull: false;
|
|
3526
|
+
hasDefault: false;
|
|
3527
|
+
isPrimaryKey: false;
|
|
3528
|
+
isAutoincrement: false;
|
|
3529
|
+
hasRuntimeDefault: false;
|
|
3530
|
+
enumValues: undefined;
|
|
3531
|
+
identity: undefined;
|
|
3532
|
+
generated: undefined;
|
|
3533
|
+
}>;
|
|
3534
|
+
failure: import("drizzle-orm/pg-core").PgBuildColumn<"revision_expansions", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
|
|
3535
|
+
name: string;
|
|
3536
|
+
tableName: "revision_expansions";
|
|
3537
|
+
dataType: "string";
|
|
3538
|
+
data: string;
|
|
3539
|
+
driverParam: string;
|
|
3540
|
+
notNull: false;
|
|
3541
|
+
hasDefault: false;
|
|
3542
|
+
isPrimaryKey: false;
|
|
3543
|
+
isAutoincrement: false;
|
|
3544
|
+
hasRuntimeDefault: false;
|
|
3545
|
+
enumValues: undefined;
|
|
3546
|
+
identity: undefined;
|
|
3547
|
+
generated: undefined;
|
|
3548
|
+
}>;
|
|
3549
|
+
sourceRevisionId: import("drizzle-orm/pg-core").PgBuildColumn<"revision_expansions", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgUUIDBuilder, `${string}-${string}-${string}-${string}-${string}`>, {
|
|
3550
|
+
name: string;
|
|
3551
|
+
tableName: "revision_expansions";
|
|
3552
|
+
dataType: "string uuid";
|
|
3553
|
+
data: `${string}-${string}-${string}-${string}-${string}`;
|
|
3554
|
+
driverParam: string;
|
|
3555
|
+
notNull: false;
|
|
3556
|
+
hasDefault: false;
|
|
3557
|
+
isPrimaryKey: false;
|
|
3558
|
+
isAutoincrement: false;
|
|
3559
|
+
hasRuntimeDefault: false;
|
|
3560
|
+
enumValues: undefined;
|
|
3561
|
+
identity: undefined;
|
|
3562
|
+
generated: undefined;
|
|
3563
|
+
}>;
|
|
3564
|
+
};
|
|
3565
|
+
dialect: 'pg';
|
|
3566
|
+
}>;
|
|
3440
3567
|
declare const revisionReceiptRoleEnum: import("drizzle-orm/pg-core").PgEnum<["activity", "object"]>;
|
|
3441
3568
|
/** Mutable index of delivery evidence, not part of immutable document history. */
|
|
3442
3569
|
declare const revisionReceipts: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
@@ -3498,6 +3625,8 @@ type RevisionAddressing = typeof revisionAddressing.$inferSelect;
|
|
|
3498
3625
|
type RevisionRelation = typeof revisionRelations.$inferSelect;
|
|
3499
3626
|
type RevisionReceipt = typeof revisionReceipts.$inferSelect;
|
|
3500
3627
|
type RevisionEmbedding = typeof revisionEmbeddings.$inferSelect;
|
|
3628
|
+
type RevisionExpansion = typeof revisionExpansions.$inferSelect;
|
|
3629
|
+
type NewRevisionExpansion = typeof revisionExpansions.$inferInsert;
|
|
3501
3630
|
//#endregion
|
|
3502
3631
|
//#region src/relations.d.ts
|
|
3503
3632
|
declare const relations: import("drizzle-orm").ExtractTablesWithRelations<{
|
|
@@ -3647,5 +3776,5 @@ type Transaction = PgAsyncTransaction<PgQueryResultHKT, typeof schema_d_exports,
|
|
|
3647
3776
|
*/
|
|
3648
3777
|
type RelationsFilter$1<T extends keyof typeof relations> = RelationsFilter<(typeof relations)[T], typeof relations>;
|
|
3649
3778
|
//#endregion
|
|
3650
|
-
export {
|
|
3651
|
-
//# sourceMappingURL=db-
|
|
3779
|
+
export { RevisionRelation as $, observeKeyVersion as $t, LoginChallenge as A, loginChallenges as At, NewLocalInstance as B, revisionAddressing as Bt, Key as C, instances as Ct, LocalActorKey as D, localActorKeys as Dt, LocalActor as E, localActorKeyTypeEnum as Et, NewActor as F, resourceRevisionCaptureEnum as Ft, ObjectType as G, revisionReceiptRoleEnum as Gt, NewResourceRevision as H, revisionEmbeddings as Ht, NewInstance as I, resourceRevisionKindEnum as It, ResourceRevision as J, revisionRelations as Jt, Resource as K, revisionReceipts as Kt, NewInstanceMember as L, resourceRevisionProjectionEnum as Lt, NewActivityDelivery as M, objects as Mt, NewActivityDeliveryActor as N, resourceHeads as Nt, LocalActorKeyType as O, localActors as Ot, NewActivityPubObject as P, resourceKindEnum as Pt, RevisionReceipt as Q, jwkThumbprint as Qt, NewLocalActor as R, resourceRevisions as Rt, InstanceMember as S, instanceMembers as St, LOGIN_CHALLENGE_CODE_LENGTH as T, keys as Tt, NewRevisionExpansion as U, revisionExpansionOutcomeEnum as Ut, NewLoginChallenge as V, revisionEmbeddingRelationEnum as Vt, NewSession as W, revisionExpansions as Wt, RevisionEmbedding as X, sessions as Xt, RevisionAddressing as Y, schema_d_exports as Yt, RevisionExpansion as Z, PublicJwk as Zt, Addressing as _, addressingPropertyEnum as _t, Account as a, activityDeliveryActorCollections as at, CollectionRole as b, collectionTypeEnum as bt, ActivityDeliveryActorCollection as c, activityDeliveryDirectionEnum as ct, ActivityDeliveryStatus as d, activityDeliveryVerificationResultEnum as dt, thumbprintInput as en, Session as et, ActivityDeliveryVerificationMechanism as f, activityTypeEnum as ft, ActorType as g, addressing as gt, Actor as h, actors as ht, relations as i, activityDeliveries as it, NewAccount as j, objectTypeEnum as jt, LocalInstance as k, localInstances as kt, ActivityDeliveryAttempt as l, activityDeliveryStatusEnum as lt, ActivityPubObject as m, actorTypeEnum as mt, RelationsFilter$1 as n, accounts as nt, ActivityDelivery as o, activityDeliveryActors as ot, ActivityDeliveryVerificationResult as p, actorCollectionReferences as pt, ResourceHead as q, revisionRelationRepresentationEnum as qt, Transaction as r, activities as rt, ActivityDeliveryActor as s, activityDeliveryAttempts as st, Database as t, toPublicJwk as tn, StoredActivity as tt, ActivityDeliveryDirection as u, activityDeliveryVerificationMechanismEnum as ut, AddressingProperty as v, collectionItems as vt, KeyVersion as w, keyVersions as wt, Instance as x, collections as xt, Collection as y, collectionRoleEnum as yt, NewLocalActorKey as z, resources as zt };
|
|
3780
|
+
//# sourceMappingURL=db-Al_MT-L_.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"db-
|
|
1
|
+
{"version":3,"file":"db-Al_MT-L_.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,iBAAiB,SAAS;KAC1B,oBAAoB,SAAS;;;;cAK5B,yCAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAAT,SAAA;;;;;;YAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAoBD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IAIV,uCAAe;IAIf,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-Al_MT-L_.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";
|
|
@@ -93,6 +97,14 @@ declare const DIAGNOSTIC_REASONS: {
|
|
|
93
97
|
readonly category: "compatibility";
|
|
94
98
|
readonly severity: "warning";
|
|
95
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
|
+
};
|
|
96
108
|
};
|
|
97
109
|
type DiagnosticReason = keyof typeof DIAGNOSTIC_REASONS;
|
|
98
110
|
interface Diagnostic {
|
|
@@ -159,8 +171,8 @@ declare const ADDRESSING_PROPERTIES: readonly ["to", "cc", "bto", "bcc", "audien
|
|
|
159
171
|
* Checks the implemented Activity Vocabulary types, including nested
|
|
160
172
|
* activity objects, without network access or writes. Embedded objects inherit
|
|
161
173
|
* the parent's context. Collections add member, count, and navigation checks.
|
|
162
|
-
* Question
|
|
163
|
-
*
|
|
174
|
+
* Question adds exclusive/inclusive choices and boolean/date-time closing
|
|
175
|
+
* conditions to shared intransitive rules.
|
|
164
176
|
*
|
|
165
177
|
* Supports allowlisted bundled contexts and simple inline aliases/prefixes,
|
|
166
178
|
* single types, id, string content,
|
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;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