@drfed/models 0.2.0-dev.608 → 0.2.0-dev.651
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 +32 -188
- package/dist/activity-delivery.d.mts +1 -1
- package/dist/activity-delivery.d.mts.map +1 -1
- package/dist/activity-delivery.mjs +34 -9
- package/dist/activity-delivery.mjs.map +1 -1
- package/dist/{db-DtcLuISw.d.mts → db-BBw4F4HU.d.mts} +478 -6
- package/dist/{db-DtcLuISw.d.mts.map → db-BBw4F4HU.d.mts.map} +1 -1
- package/dist/db.d.mts +1 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +2 -1
- 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 +12 -0
- package/dist/relations.d.mts +1 -1
- package/dist/relations.mjs +65 -0
- package/dist/relations.mjs.map +1 -1
- package/dist/resource-revision-BuG5kUlA.d.mts +103 -0
- package/dist/resource-revision-BuG5kUlA.d.mts.map +1 -0
- package/dist/resource-revision-DWg6et77.mjs +313 -0
- package/dist/resource-revision-DWg6et77.mjs.map +1 -0
- package/dist/resource-revision.d.mts +2 -0
- package/dist/resource-revision.mjs +3 -0
- package/dist/resource.d.mts +1 -1
- package/dist/schema.d.mts +2 -2
- package/dist/schema.mjs +104 -5
- package/dist/schema.mjs.map +1 -1
- package/drizzle/20261026181201_resource_revision_storage/migration.sql +72 -0
- package/drizzle/20261026181201_resource_revision_storage/snapshot.json +4501 -0
- package/drizzle/20261026181206_guard_resource_revisions/migration.sql +175 -0
- package/drizzle/20261026181206_guard_resource_revisions/snapshot.json +4501 -0
- package/drizzle/20261026192411_capture_legacy_resource_revisions/migration.sql +249 -0
- package/drizzle/20261026192411_capture_legacy_resource_revisions/snapshot.json +4501 -0
- package/package.json +12 -7
|
@@ -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, NewSession, ObjectType, Resource, 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, resourceKindEnum, resources, 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, 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 };
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* The database table to represent accounts.
|
|
@@ -648,9 +648,9 @@ declare const actorTypeEnum: import("drizzle-orm/pg-core").PgEnum<["Application"
|
|
|
648
648
|
type ActorType = (typeof actorTypeEnum.enumValues)[number];
|
|
649
649
|
declare const resourceKindEnum: import("drizzle-orm/pg-core").PgEnum<["actor", "object", "activity", "collection", "unknown"]>;
|
|
650
650
|
/**
|
|
651
|
-
* Canonical IRI registry.
|
|
652
|
-
*
|
|
653
|
-
*
|
|
651
|
+
* Canonical IRI registry. Retained revisions keep their resource identity
|
|
652
|
+
* even after a current typed row is deleted. Other references may also
|
|
653
|
+
* intentionally restrict physical removal of the resource.
|
|
654
654
|
*/
|
|
655
655
|
declare const resources: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
656
656
|
name: "resources";
|
|
@@ -2973,9 +2973,478 @@ type ActivityDeliveryDirection = (typeof activityDeliveryDirectionEnum.enumValue
|
|
|
2973
2973
|
type ActivityDeliveryStatus = (typeof activityDeliveryStatusEnum.enumValues)[number];
|
|
2974
2974
|
type ActivityDeliveryVerificationMechanism = (typeof activityDeliveryVerificationMechanismEnum.enumValues)[number];
|
|
2975
2975
|
type ActivityDeliveryVerificationResult = (typeof activityDeliveryVerificationResultEnum.enumValues)[number];
|
|
2976
|
+
declare const resourceRevisionKindEnum: import("drizzle-orm/pg-core").PgEnum<["snapshot", "unavailable", "whiteout"]>;
|
|
2977
|
+
declare const resourceRevisionCaptureEnum: import("drizzle-orm/pg-core").PgEnum<["local", "received", "embedded", "fetched"]>;
|
|
2978
|
+
declare const resourceRevisionProjectionEnum: import("drizzle-orm/pg-core").PgEnum<["partial", "complete"]>;
|
|
2979
|
+
/** Immutable parsed documents, independently of current typed rows. */
|
|
2980
|
+
declare const resourceRevisions: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
2981
|
+
name: "resource_revisions";
|
|
2982
|
+
schema: undefined;
|
|
2983
|
+
columns: {
|
|
2984
|
+
id: import("drizzle-orm/pg-core").PgBuildColumn<"resource_revisions", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgUUIDBuilder, `${string}-${string}-${string}-${string}-${string}`>>>, {
|
|
2985
|
+
name: string;
|
|
2986
|
+
tableName: "resource_revisions";
|
|
2987
|
+
dataType: "string uuid";
|
|
2988
|
+
data: `${string}-${string}-${string}-${string}-${string}`;
|
|
2989
|
+
driverParam: string;
|
|
2990
|
+
notNull: true;
|
|
2991
|
+
hasDefault: true;
|
|
2992
|
+
isPrimaryKey: false;
|
|
2993
|
+
isAutoincrement: false;
|
|
2994
|
+
hasRuntimeDefault: false;
|
|
2995
|
+
enumValues: undefined;
|
|
2996
|
+
identity: undefined;
|
|
2997
|
+
generated: undefined;
|
|
2998
|
+
}>;
|
|
2999
|
+
resourceId: import("drizzle-orm/pg-core").PgBuildColumn<"resource_revisions", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgUUIDBuilder, `${string}-${string}-${string}-${string}-${string}`>>, {
|
|
3000
|
+
name: string;
|
|
3001
|
+
tableName: "resource_revisions";
|
|
3002
|
+
dataType: "string uuid";
|
|
3003
|
+
data: `${string}-${string}-${string}-${string}-${string}`;
|
|
3004
|
+
driverParam: string;
|
|
3005
|
+
notNull: true;
|
|
3006
|
+
hasDefault: false;
|
|
3007
|
+
isPrimaryKey: false;
|
|
3008
|
+
isAutoincrement: false;
|
|
3009
|
+
hasRuntimeDefault: false;
|
|
3010
|
+
enumValues: undefined;
|
|
3011
|
+
identity: undefined;
|
|
3012
|
+
generated: undefined;
|
|
3013
|
+
}>;
|
|
3014
|
+
sequence: import("drizzle-orm/pg-core").PgBuildColumn<"resource_revisions", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgIntegerBuilder>, {
|
|
3015
|
+
name: string;
|
|
3016
|
+
tableName: "resource_revisions";
|
|
3017
|
+
dataType: "number int32";
|
|
3018
|
+
data: number;
|
|
3019
|
+
driverParam: string | number;
|
|
3020
|
+
notNull: true;
|
|
3021
|
+
hasDefault: false;
|
|
3022
|
+
isPrimaryKey: false;
|
|
3023
|
+
isAutoincrement: false;
|
|
3024
|
+
hasRuntimeDefault: false;
|
|
3025
|
+
enumValues: undefined;
|
|
3026
|
+
identity: undefined;
|
|
3027
|
+
generated: undefined;
|
|
3028
|
+
}>;
|
|
3029
|
+
kind: import("drizzle-orm/pg-core").PgBuildColumn<"resource_revisions", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgEnumColumnBuilder<["snapshot", "unavailable", "whiteout"]>>, {
|
|
3030
|
+
name: string;
|
|
3031
|
+
tableName: "resource_revisions";
|
|
3032
|
+
dataType: "string enum";
|
|
3033
|
+
data: "snapshot" | "unavailable" | "whiteout";
|
|
3034
|
+
driverParam: string;
|
|
3035
|
+
notNull: true;
|
|
3036
|
+
hasDefault: false;
|
|
3037
|
+
isPrimaryKey: false;
|
|
3038
|
+
isAutoincrement: false;
|
|
3039
|
+
hasRuntimeDefault: false;
|
|
3040
|
+
enumValues: ["snapshot", "unavailable", "whiteout"];
|
|
3041
|
+
identity: undefined;
|
|
3042
|
+
generated: undefined;
|
|
3043
|
+
}>;
|
|
3044
|
+
capture: import("drizzle-orm/pg-core").PgBuildColumn<"resource_revisions", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgEnumColumnBuilder<["local", "received", "embedded", "fetched"]>>, {
|
|
3045
|
+
name: string;
|
|
3046
|
+
tableName: "resource_revisions";
|
|
3047
|
+
dataType: "string enum";
|
|
3048
|
+
data: "embedded" | "fetched" | "local" | "received";
|
|
3049
|
+
driverParam: string;
|
|
3050
|
+
notNull: true;
|
|
3051
|
+
hasDefault: false;
|
|
3052
|
+
isPrimaryKey: false;
|
|
3053
|
+
isAutoincrement: false;
|
|
3054
|
+
hasRuntimeDefault: false;
|
|
3055
|
+
enumValues: ["local", "received", "embedded", "fetched"];
|
|
3056
|
+
identity: undefined;
|
|
3057
|
+
generated: undefined;
|
|
3058
|
+
}>;
|
|
3059
|
+
backfilled: import("drizzle-orm/pg-core").PgBuildColumn<"resource_revisions", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBooleanBuilder>>, {
|
|
3060
|
+
name: string;
|
|
3061
|
+
tableName: "resource_revisions";
|
|
3062
|
+
dataType: "boolean";
|
|
3063
|
+
data: boolean;
|
|
3064
|
+
driverParam: boolean;
|
|
3065
|
+
notNull: true;
|
|
3066
|
+
hasDefault: true;
|
|
3067
|
+
isPrimaryKey: false;
|
|
3068
|
+
isAutoincrement: false;
|
|
3069
|
+
hasRuntimeDefault: false;
|
|
3070
|
+
enumValues: undefined;
|
|
3071
|
+
identity: undefined;
|
|
3072
|
+
generated: undefined;
|
|
3073
|
+
}>;
|
|
3074
|
+
document: import("drizzle-orm/pg-core").PgBuildColumn<"resource_revisions", import("drizzle-orm/pg-core").PgJsonBuilder, {
|
|
3075
|
+
name: string;
|
|
3076
|
+
tableName: "resource_revisions";
|
|
3077
|
+
dataType: "object json";
|
|
3078
|
+
data: unknown;
|
|
3079
|
+
driverParam: unknown;
|
|
3080
|
+
notNull: false;
|
|
3081
|
+
hasDefault: false;
|
|
3082
|
+
isPrimaryKey: false;
|
|
3083
|
+
isAutoincrement: false;
|
|
3084
|
+
hasRuntimeDefault: false;
|
|
3085
|
+
enumValues: undefined;
|
|
3086
|
+
identity: undefined;
|
|
3087
|
+
generated: undefined;
|
|
3088
|
+
}>;
|
|
3089
|
+
formerTypes: import("drizzle-orm/pg-core").PgBuildColumn<"resource_revisions", import("drizzle-orm/pg-core").SetDimensions<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, 1>, {
|
|
3090
|
+
name: string;
|
|
3091
|
+
tableName: "resource_revisions";
|
|
3092
|
+
dataType: "string";
|
|
3093
|
+
data: string[];
|
|
3094
|
+
driverParam: string | string[];
|
|
3095
|
+
notNull: false;
|
|
3096
|
+
hasDefault: false;
|
|
3097
|
+
isPrimaryKey: false;
|
|
3098
|
+
isAutoincrement: false;
|
|
3099
|
+
hasRuntimeDefault: false;
|
|
3100
|
+
enumValues: undefined;
|
|
3101
|
+
identity: undefined;
|
|
3102
|
+
generated: undefined;
|
|
3103
|
+
}>;
|
|
3104
|
+
deleted: import("drizzle-orm/pg-core").PgBuildColumn<"resource_revisions", import("drizzle-orm/pg-core").PgCustomColumnBuilder<{
|
|
3105
|
+
dataType: 'custom';
|
|
3106
|
+
data: Temporal.Instant;
|
|
3107
|
+
driverParam: string;
|
|
3108
|
+
}>, {
|
|
3109
|
+
name: string;
|
|
3110
|
+
tableName: "resource_revisions";
|
|
3111
|
+
dataType: "custom";
|
|
3112
|
+
data: Temporal.Instant;
|
|
3113
|
+
driverParam: string;
|
|
3114
|
+
notNull: false;
|
|
3115
|
+
hasDefault: false;
|
|
3116
|
+
isPrimaryKey: false;
|
|
3117
|
+
isAutoincrement: false;
|
|
3118
|
+
hasRuntimeDefault: false;
|
|
3119
|
+
enumValues: undefined;
|
|
3120
|
+
identity: undefined;
|
|
3121
|
+
generated: undefined;
|
|
3122
|
+
}>;
|
|
3123
|
+
projection: import("drizzle-orm/pg-core").PgBuildColumn<"resource_revisions", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgEnumColumnBuilder<["partial", "complete"]>>>, {
|
|
3124
|
+
name: string;
|
|
3125
|
+
tableName: "resource_revisions";
|
|
3126
|
+
dataType: "string enum";
|
|
3127
|
+
data: "complete" | "partial";
|
|
3128
|
+
driverParam: string;
|
|
3129
|
+
notNull: true;
|
|
3130
|
+
hasDefault: true;
|
|
3131
|
+
isPrimaryKey: false;
|
|
3132
|
+
isAutoincrement: false;
|
|
3133
|
+
hasRuntimeDefault: false;
|
|
3134
|
+
enumValues: ["partial", "complete"];
|
|
3135
|
+
identity: undefined;
|
|
3136
|
+
generated: undefined;
|
|
3137
|
+
}>;
|
|
3138
|
+
created: import("drizzle-orm/pg-core").PgBuildColumn<"resource_revisions", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgCustomColumnBuilder<{
|
|
3139
|
+
dataType: 'custom';
|
|
3140
|
+
data: Temporal.Instant;
|
|
3141
|
+
driverParam: string;
|
|
3142
|
+
}>>>, {
|
|
3143
|
+
name: string;
|
|
3144
|
+
tableName: "resource_revisions";
|
|
3145
|
+
dataType: "custom";
|
|
3146
|
+
data: Temporal.Instant;
|
|
3147
|
+
driverParam: string;
|
|
3148
|
+
notNull: true;
|
|
3149
|
+
hasDefault: true;
|
|
3150
|
+
isPrimaryKey: false;
|
|
3151
|
+
isAutoincrement: false;
|
|
3152
|
+
hasRuntimeDefault: false;
|
|
3153
|
+
enumValues: undefined;
|
|
3154
|
+
identity: undefined;
|
|
3155
|
+
generated: undefined;
|
|
3156
|
+
}>;
|
|
3157
|
+
};
|
|
3158
|
+
dialect: 'pg';
|
|
3159
|
+
}>;
|
|
3160
|
+
/** The current revision of one canonical resource. */
|
|
3161
|
+
declare const resourceHeads: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
3162
|
+
name: "resource_heads";
|
|
3163
|
+
schema: undefined;
|
|
3164
|
+
columns: {
|
|
3165
|
+
resourceId: import("drizzle-orm/pg-core").PgBuildColumn<"resource_heads", import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgUUIDBuilder, `${string}-${string}-${string}-${string}-${string}`>>, {
|
|
3166
|
+
name: string;
|
|
3167
|
+
tableName: "resource_heads";
|
|
3168
|
+
dataType: "string uuid";
|
|
3169
|
+
data: `${string}-${string}-${string}-${string}-${string}`;
|
|
3170
|
+
driverParam: string;
|
|
3171
|
+
notNull: true;
|
|
3172
|
+
hasDefault: false;
|
|
3173
|
+
isPrimaryKey: false;
|
|
3174
|
+
isAutoincrement: false;
|
|
3175
|
+
hasRuntimeDefault: false;
|
|
3176
|
+
enumValues: undefined;
|
|
3177
|
+
identity: undefined;
|
|
3178
|
+
generated: undefined;
|
|
3179
|
+
}>;
|
|
3180
|
+
revisionId: import("drizzle-orm/pg-core").PgBuildColumn<"resource_heads", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgUUIDBuilder, `${string}-${string}-${string}-${string}-${string}`>>, {
|
|
3181
|
+
name: string;
|
|
3182
|
+
tableName: "resource_heads";
|
|
3183
|
+
dataType: "string uuid";
|
|
3184
|
+
data: `${string}-${string}-${string}-${string}-${string}`;
|
|
3185
|
+
driverParam: string;
|
|
3186
|
+
notNull: true;
|
|
3187
|
+
hasDefault: false;
|
|
3188
|
+
isPrimaryKey: false;
|
|
3189
|
+
isAutoincrement: false;
|
|
3190
|
+
hasRuntimeDefault: false;
|
|
3191
|
+
enumValues: undefined;
|
|
3192
|
+
identity: undefined;
|
|
3193
|
+
generated: undefined;
|
|
3194
|
+
}>;
|
|
3195
|
+
};
|
|
3196
|
+
dialect: 'pg';
|
|
3197
|
+
}>;
|
|
3198
|
+
/** Root addressing occurrences, including blind recipients and duplicates. */
|
|
3199
|
+
declare const revisionAddressing: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
3200
|
+
name: "revision_addressing";
|
|
3201
|
+
schema: undefined;
|
|
3202
|
+
columns: {
|
|
3203
|
+
revisionId: import("drizzle-orm/pg-core").PgBuildColumn<"revision_addressing", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgUUIDBuilder, `${string}-${string}-${string}-${string}-${string}`>>, {
|
|
3204
|
+
name: string;
|
|
3205
|
+
tableName: "revision_addressing";
|
|
3206
|
+
dataType: "string uuid";
|
|
3207
|
+
data: `${string}-${string}-${string}-${string}-${string}`;
|
|
3208
|
+
driverParam: string;
|
|
3209
|
+
notNull: true;
|
|
3210
|
+
hasDefault: false;
|
|
3211
|
+
isPrimaryKey: false;
|
|
3212
|
+
isAutoincrement: false;
|
|
3213
|
+
hasRuntimeDefault: false;
|
|
3214
|
+
enumValues: undefined;
|
|
3215
|
+
identity: undefined;
|
|
3216
|
+
generated: undefined;
|
|
3217
|
+
}>;
|
|
3218
|
+
property: import("drizzle-orm/pg-core").PgBuildColumn<"revision_addressing", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgEnumColumnBuilder<["to", "cc", "bto", "bcc", "audience"]>>, {
|
|
3219
|
+
name: string;
|
|
3220
|
+
tableName: "revision_addressing";
|
|
3221
|
+
dataType: "string enum";
|
|
3222
|
+
data: "audience" | "bcc" | "bto" | "cc" | "to";
|
|
3223
|
+
driverParam: string;
|
|
3224
|
+
notNull: true;
|
|
3225
|
+
hasDefault: false;
|
|
3226
|
+
isPrimaryKey: false;
|
|
3227
|
+
isAutoincrement: false;
|
|
3228
|
+
hasRuntimeDefault: false;
|
|
3229
|
+
enumValues: ["to", "cc", "bto", "bcc", "audience"];
|
|
3230
|
+
identity: undefined;
|
|
3231
|
+
generated: undefined;
|
|
3232
|
+
}>;
|
|
3233
|
+
position: import("drizzle-orm/pg-core").PgBuildColumn<"revision_addressing", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgIntegerBuilder>, {
|
|
3234
|
+
name: string;
|
|
3235
|
+
tableName: "revision_addressing";
|
|
3236
|
+
dataType: "number int32";
|
|
3237
|
+
data: number;
|
|
3238
|
+
driverParam: string | number;
|
|
3239
|
+
notNull: true;
|
|
3240
|
+
hasDefault: false;
|
|
3241
|
+
isPrimaryKey: false;
|
|
3242
|
+
isAutoincrement: false;
|
|
3243
|
+
hasRuntimeDefault: false;
|
|
3244
|
+
enumValues: undefined;
|
|
3245
|
+
identity: undefined;
|
|
3246
|
+
generated: undefined;
|
|
3247
|
+
}>;
|
|
3248
|
+
iri: import("drizzle-orm/pg-core").PgBuildColumn<"revision_addressing", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
|
|
3249
|
+
name: string;
|
|
3250
|
+
tableName: "revision_addressing";
|
|
3251
|
+
dataType: "string";
|
|
3252
|
+
data: string;
|
|
3253
|
+
driverParam: string;
|
|
3254
|
+
notNull: true;
|
|
3255
|
+
hasDefault: false;
|
|
3256
|
+
isPrimaryKey: false;
|
|
3257
|
+
isAutoincrement: false;
|
|
3258
|
+
hasRuntimeDefault: false;
|
|
3259
|
+
enumValues: undefined;
|
|
3260
|
+
identity: undefined;
|
|
3261
|
+
generated: undefined;
|
|
3262
|
+
}>;
|
|
3263
|
+
};
|
|
3264
|
+
dialect: 'pg';
|
|
3265
|
+
}>;
|
|
3266
|
+
declare const revisionRelationRepresentationEnum: import("drizzle-orm/pg-core").PgEnum<["reference", "embedded", "link"]>;
|
|
3267
|
+
/** Caller-supplied relation occurrences; the saved JSON remains authoritative. */
|
|
3268
|
+
declare const revisionRelations: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
3269
|
+
name: "revision_relations";
|
|
3270
|
+
schema: undefined;
|
|
3271
|
+
columns: {
|
|
3272
|
+
revisionId: import("drizzle-orm/pg-core").PgBuildColumn<"revision_relations", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgUUIDBuilder, `${string}-${string}-${string}-${string}-${string}`>>, {
|
|
3273
|
+
name: string;
|
|
3274
|
+
tableName: "revision_relations";
|
|
3275
|
+
dataType: "string uuid";
|
|
3276
|
+
data: `${string}-${string}-${string}-${string}-${string}`;
|
|
3277
|
+
driverParam: string;
|
|
3278
|
+
notNull: true;
|
|
3279
|
+
hasDefault: false;
|
|
3280
|
+
isPrimaryKey: false;
|
|
3281
|
+
isAutoincrement: false;
|
|
3282
|
+
hasRuntimeDefault: false;
|
|
3283
|
+
enumValues: undefined;
|
|
3284
|
+
identity: undefined;
|
|
3285
|
+
generated: undefined;
|
|
3286
|
+
}>;
|
|
3287
|
+
occurrence: import("drizzle-orm/pg-core").PgBuildColumn<"revision_relations", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgIntegerBuilder>, {
|
|
3288
|
+
name: string;
|
|
3289
|
+
tableName: "revision_relations";
|
|
3290
|
+
dataType: "number int32";
|
|
3291
|
+
data: number;
|
|
3292
|
+
driverParam: string | number;
|
|
3293
|
+
notNull: true;
|
|
3294
|
+
hasDefault: false;
|
|
3295
|
+
isPrimaryKey: false;
|
|
3296
|
+
isAutoincrement: false;
|
|
3297
|
+
hasRuntimeDefault: false;
|
|
3298
|
+
enumValues: undefined;
|
|
3299
|
+
identity: undefined;
|
|
3300
|
+
generated: undefined;
|
|
3301
|
+
}>;
|
|
3302
|
+
property: import("drizzle-orm/pg-core").PgBuildColumn<"revision_relations", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
|
|
3303
|
+
name: string;
|
|
3304
|
+
tableName: "revision_relations";
|
|
3305
|
+
dataType: "string";
|
|
3306
|
+
data: string;
|
|
3307
|
+
driverParam: string;
|
|
3308
|
+
notNull: true;
|
|
3309
|
+
hasDefault: false;
|
|
3310
|
+
isPrimaryKey: false;
|
|
3311
|
+
isAutoincrement: false;
|
|
3312
|
+
hasRuntimeDefault: false;
|
|
3313
|
+
enumValues: undefined;
|
|
3314
|
+
identity: undefined;
|
|
3315
|
+
generated: undefined;
|
|
3316
|
+
}>;
|
|
3317
|
+
path: import("drizzle-orm/pg-core").PgBuildColumn<"revision_relations", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonBuilder, readonly (string | number)[]>, {
|
|
3318
|
+
name: string;
|
|
3319
|
+
tableName: "revision_relations";
|
|
3320
|
+
dataType: "object json";
|
|
3321
|
+
data: readonly (string | number)[];
|
|
3322
|
+
driverParam: unknown;
|
|
3323
|
+
notNull: false;
|
|
3324
|
+
hasDefault: false;
|
|
3325
|
+
isPrimaryKey: false;
|
|
3326
|
+
isAutoincrement: false;
|
|
3327
|
+
hasRuntimeDefault: false;
|
|
3328
|
+
enumValues: undefined;
|
|
3329
|
+
identity: undefined;
|
|
3330
|
+
generated: undefined;
|
|
3331
|
+
}>;
|
|
3332
|
+
representation: import("drizzle-orm/pg-core").PgBuildColumn<"revision_relations", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgEnumColumnBuilder<["reference", "embedded", "link"]>>, {
|
|
3333
|
+
name: string;
|
|
3334
|
+
tableName: "revision_relations";
|
|
3335
|
+
dataType: "string enum";
|
|
3336
|
+
data: "embedded" | "link" | "reference";
|
|
3337
|
+
driverParam: string;
|
|
3338
|
+
notNull: true;
|
|
3339
|
+
hasDefault: false;
|
|
3340
|
+
isPrimaryKey: false;
|
|
3341
|
+
isAutoincrement: false;
|
|
3342
|
+
hasRuntimeDefault: false;
|
|
3343
|
+
enumValues: ["reference", "embedded", "link"];
|
|
3344
|
+
identity: undefined;
|
|
3345
|
+
generated: undefined;
|
|
3346
|
+
}>;
|
|
3347
|
+
targetIri: import("drizzle-orm/pg-core").PgBuildColumn<"revision_relations", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
|
|
3348
|
+
name: string;
|
|
3349
|
+
tableName: "revision_relations";
|
|
3350
|
+
dataType: "string";
|
|
3351
|
+
data: string;
|
|
3352
|
+
driverParam: string;
|
|
3353
|
+
notNull: false;
|
|
3354
|
+
hasDefault: false;
|
|
3355
|
+
isPrimaryKey: false;
|
|
3356
|
+
isAutoincrement: false;
|
|
3357
|
+
hasRuntimeDefault: false;
|
|
3358
|
+
enumValues: undefined;
|
|
3359
|
+
identity: undefined;
|
|
3360
|
+
generated: undefined;
|
|
3361
|
+
}>;
|
|
3362
|
+
};
|
|
3363
|
+
dialect: 'pg';
|
|
3364
|
+
}>;
|
|
3365
|
+
declare const revisionReceiptRoleEnum: import("drizzle-orm/pg-core").PgEnum<["activity", "object"]>;
|
|
3366
|
+
/** Mutable index of delivery evidence, not part of immutable document history. */
|
|
3367
|
+
declare const revisionReceipts: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
3368
|
+
name: "revision_receipts";
|
|
3369
|
+
schema: undefined;
|
|
3370
|
+
columns: {
|
|
3371
|
+
deliveryId: import("drizzle-orm/pg-core").PgBuildColumn<"revision_receipts", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgUUIDBuilder, `${string}-${string}-${string}-${string}-${string}`>>, {
|
|
3372
|
+
name: string;
|
|
3373
|
+
tableName: "revision_receipts";
|
|
3374
|
+
dataType: "string uuid";
|
|
3375
|
+
data: `${string}-${string}-${string}-${string}-${string}`;
|
|
3376
|
+
driverParam: string;
|
|
3377
|
+
notNull: true;
|
|
3378
|
+
hasDefault: false;
|
|
3379
|
+
isPrimaryKey: false;
|
|
3380
|
+
isAutoincrement: false;
|
|
3381
|
+
hasRuntimeDefault: false;
|
|
3382
|
+
enumValues: undefined;
|
|
3383
|
+
identity: undefined;
|
|
3384
|
+
generated: undefined;
|
|
3385
|
+
}>;
|
|
3386
|
+
revisionId: import("drizzle-orm/pg-core").PgBuildColumn<"revision_receipts", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgUUIDBuilder, `${string}-${string}-${string}-${string}-${string}`>>, {
|
|
3387
|
+
name: string;
|
|
3388
|
+
tableName: "revision_receipts";
|
|
3389
|
+
dataType: "string uuid";
|
|
3390
|
+
data: `${string}-${string}-${string}-${string}-${string}`;
|
|
3391
|
+
driverParam: string;
|
|
3392
|
+
notNull: true;
|
|
3393
|
+
hasDefault: false;
|
|
3394
|
+
isPrimaryKey: false;
|
|
3395
|
+
isAutoincrement: false;
|
|
3396
|
+
hasRuntimeDefault: false;
|
|
3397
|
+
enumValues: undefined;
|
|
3398
|
+
identity: undefined;
|
|
3399
|
+
generated: undefined;
|
|
3400
|
+
}>;
|
|
3401
|
+
role: import("drizzle-orm/pg-core").PgBuildColumn<"revision_receipts", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgEnumColumnBuilder<["activity", "object"]>>, {
|
|
3402
|
+
name: string;
|
|
3403
|
+
tableName: "revision_receipts";
|
|
3404
|
+
dataType: "string enum";
|
|
3405
|
+
data: "activity" | "object";
|
|
3406
|
+
driverParam: string;
|
|
3407
|
+
notNull: true;
|
|
3408
|
+
hasDefault: false;
|
|
3409
|
+
isPrimaryKey: false;
|
|
3410
|
+
isAutoincrement: false;
|
|
3411
|
+
hasRuntimeDefault: false;
|
|
3412
|
+
enumValues: ["activity", "object"];
|
|
3413
|
+
identity: undefined;
|
|
3414
|
+
generated: undefined;
|
|
3415
|
+
}>;
|
|
3416
|
+
};
|
|
3417
|
+
dialect: 'pg';
|
|
3418
|
+
}>;
|
|
3419
|
+
type ResourceRevision = typeof resourceRevisions.$inferSelect;
|
|
3420
|
+
type NewResourceRevision = typeof resourceRevisions.$inferInsert;
|
|
3421
|
+
type ResourceHead = typeof resourceHeads.$inferSelect;
|
|
3422
|
+
type RevisionAddressing = typeof revisionAddressing.$inferSelect;
|
|
3423
|
+
type RevisionRelation = typeof revisionRelations.$inferSelect;
|
|
3424
|
+
type RevisionReceipt = typeof revisionReceipts.$inferSelect;
|
|
2976
3425
|
//#endregion
|
|
2977
3426
|
//#region src/relations.d.ts
|
|
2978
3427
|
declare const relations: import("drizzle-orm").ExtractTablesWithRelations<{
|
|
3428
|
+
resourceRevisions: {
|
|
3429
|
+
resource: import("drizzle-orm").One<"resources", false>;
|
|
3430
|
+
addressing: import("drizzle-orm").Many<"revisionAddressing">;
|
|
3431
|
+
relations: import("drizzle-orm").Many<"revisionRelations">;
|
|
3432
|
+
receipts: import("drizzle-orm").Many<"revisionReceipts">;
|
|
3433
|
+
};
|
|
3434
|
+
resourceHeads: {
|
|
3435
|
+
resource: import("drizzle-orm").One<"resources", false>;
|
|
3436
|
+
revision: import("drizzle-orm").One<"resourceRevisions", false>;
|
|
3437
|
+
};
|
|
3438
|
+
revisionAddressing: {
|
|
3439
|
+
revision: import("drizzle-orm").One<"resourceRevisions", false>;
|
|
3440
|
+
};
|
|
3441
|
+
revisionRelations: {
|
|
3442
|
+
revision: import("drizzle-orm").One<"resourceRevisions", false>;
|
|
3443
|
+
};
|
|
3444
|
+
revisionReceipts: {
|
|
3445
|
+
revision: import("drizzle-orm").One<"resourceRevisions", false>;
|
|
3446
|
+
delivery: import("drizzle-orm").One<"activityDeliveries", false>;
|
|
3447
|
+
};
|
|
2979
3448
|
keys: {
|
|
2980
3449
|
versions: import("drizzle-orm").Many<"keyVersions">;
|
|
2981
3450
|
};
|
|
@@ -2984,6 +3453,7 @@ declare const relations: import("drizzle-orm").ExtractTablesWithRelations<{
|
|
|
2984
3453
|
activityDeliveries: import("drizzle-orm").Many<"activityDeliveries">;
|
|
2985
3454
|
};
|
|
2986
3455
|
activityDeliveries: {
|
|
3456
|
+
revisionReceipts: import("drizzle-orm").Many<"revisionReceipts">;
|
|
2987
3457
|
instance: import("drizzle-orm").One<"instances", false>;
|
|
2988
3458
|
actor: import("drizzle-orm").One<"actors", true>;
|
|
2989
3459
|
actorLinks: import("drizzle-orm").Many<"activityDeliveryActors">;
|
|
@@ -3029,6 +3499,8 @@ declare const relations: import("drizzle-orm").ExtractTablesWithRelations<{
|
|
|
3029
3499
|
account: import("drizzle-orm").One<"accounts", false>;
|
|
3030
3500
|
};
|
|
3031
3501
|
resources: {
|
|
3502
|
+
revisions: import("drizzle-orm").Many<"resourceRevisions">;
|
|
3503
|
+
head: import("drizzle-orm").One<"resourceHeads", true>;
|
|
3032
3504
|
actor: import("drizzle-orm").One<"actors", true>;
|
|
3033
3505
|
object: import("drizzle-orm").One<"objects", true>;
|
|
3034
3506
|
activity: import("drizzle-orm").One<"activities", true>;
|
|
@@ -3094,5 +3566,5 @@ type Transaction = PgAsyncTransaction<PgQueryResultHKT, typeof schema_d_exports,
|
|
|
3094
3566
|
*/
|
|
3095
3567
|
type RelationsFilter$1<T extends keyof typeof relations> = RelationsFilter<(typeof relations)[T], typeof relations>;
|
|
3096
3568
|
//#endregion
|
|
3097
|
-
export {
|
|
3098
|
-
//# sourceMappingURL=db-
|
|
3569
|
+
export { accounts as $, LoginChallenge as A, resourceHeads as At, NewLocalInstance as B, revisionRelationRepresentationEnum as Bt, Key as C, localActorKeyTypeEnum as Ct, LocalActorKey as D, loginChallenges as Dt, LocalActor as E, localInstances as Et, NewActor as F, resourceRevisions as Ft, Resource as G, jwkThumbprint as Gt, NewResourceRevision as H, schema_d_exports as Ht, NewInstance as I, resources as It, RevisionAddressing as J, toPublicJwk as Jt, ResourceHead as K, observeKeyVersion as Kt, NewInstanceMember as L, revisionAddressing as Lt, NewActivityDelivery as M, resourceRevisionCaptureEnum as Mt, NewActivityDeliveryActor as N, resourceRevisionKindEnum as Nt, LocalActorKeyType as O, objectTypeEnum as Ot, NewActivityPubObject as P, resourceRevisionProjectionEnum as Pt, StoredActivity as Q, NewLocalActor as R, revisionReceiptRoleEnum as Rt, InstanceMember as S, keys as St, LOGIN_CHALLENGE_CODE_LENGTH as T, localActors as Tt, NewSession as U, sessions as Ut, NewLoginChallenge as V, revisionRelations as Vt, ObjectType as W, PublicJwk as Wt, RevisionRelation as X, RevisionReceipt as Y, Session as Z, Addressing as _, collectionTypeEnum as _t, Account as a, activityDeliveryDirectionEnum as at, CollectionRole as b, instances as bt, ActivityDeliveryActorCollection as c, activityDeliveryVerificationResultEnum as ct, ActivityDeliveryStatus as d, actorTypeEnum as dt, activities as et, ActivityDeliveryVerificationMechanism as f, actors as ft, ActorType as g, collectionRoleEnum as gt, Actor as h, collectionItems as ht, relations as i, activityDeliveryAttempts as it, NewAccount as j, resourceKindEnum as jt, LocalInstance as k, objects as kt, ActivityDeliveryAttempt as l, activityTypeEnum as lt, ActivityPubObject as m, addressingPropertyEnum as mt, RelationsFilter$1 as n, activityDeliveryActorCollections as nt, ActivityDelivery as o, activityDeliveryStatusEnum as ot, ActivityDeliveryVerificationResult as p, addressing as pt, ResourceRevision as q, thumbprintInput as qt, Transaction as r, activityDeliveryActors as rt, ActivityDeliveryActor as s, activityDeliveryVerificationMechanismEnum as st, Database as t, activityDeliveries as tt, ActivityDeliveryDirection as u, actorCollectionReferences as ut, AddressingProperty as v, collections as vt, KeyVersion as w, localActorKeys as wt, Instance as x, keyVersions as xt, Collection as y, instanceMembers as yt, NewLocalActorKey as z, revisionReceipts as zt };
|
|
3570
|
+
//# sourceMappingURL=db-BBw4F4HU.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"db-
|
|
1
|
+
{"version":3,"file":"db-BBw4F4HU.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;;;;;iBA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|
export { Database, RelationsFilter, Transaction };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Gt as jwkThumbprint, Ht as schema_d_exports, Jt as toPublicJwk, Kt as observeKeyVersion, Wt as PublicJwk, i as relations, n as RelationsFilter, qt as thumbprintInput, r as Transaction, t as Database } from "./db-BBw4F4HU.mjs";
|
|
2
2
|
import { AddressedActor, InboundDeliveryEntry, OutboundDeliveryEntry, OutboundSettlement, inboundActorRows, linkInboundActivity, receiveInbound, recordFetchedObject, recordInbound, recordOutbound, settleOutbound } from "./activity-delivery.mjs";
|
|
3
3
|
import { normalizeEmail } from "./email.mjs";
|
|
4
4
|
import { MigrateCredentials, MigrateOptions, PGliteMigrateCredentials, PostgresMigrateCredentials, migrate } from "./migrate.mjs";
|
|
@@ -11,4 +11,5 @@ import { InspectMigrationStateOptions, MigrationHistoryFormat, MigrationQueryCli
|
|
|
11
11
|
import { a as preparePostgresDatabase, i as migrationLockKey, n as PostgresPreparationCredentials, o as MigrationPreparationCode, r as PreparePostgresOptions, s as MigrationPreparationError, t as MigrationClientFactory } from "./migration-session-B4xHeU_a.mjs";
|
|
12
12
|
import { PersistentPgliteStore, PgliteStoreCode, PgliteStoreError, openPersistentPglite } from "./pglite-store.mjs";
|
|
13
13
|
import { PreparePgliteOptions, preparePgliteDatabase } from "./pglite-preparation.mjs";
|
|
14
|
-
|
|
14
|
+
import { a as StoredResourceRevision, c as loadCurrentResourceRevision, d as ResourceRevisionStateError, f as LegacyResourceRevisionError, i as RevisionRelationInput, l as loadResourceRevision, n as JsonObject, o as appendResourceRevision, p as RevisionConflictError, r as JsonValue, s as listResourceRevisions, t as AppendResourceRevisionInput, u as captureLegacyResourceRevision } from "./resource-revision-BuG5kUlA.mjs";
|
|
15
|
+
export { AddressedActor, AddressingInput, AppendResourceRevisionInput, Database, InboundDeliveryEntry, InspectMigrationStateOptions, JsonObject, JsonValue, LegacyResourceRevisionError, LoginChallengeConsumptionError, LoginChallengeError, LoginChallengeNotFoundError, MigrateCredentials, MigrateOptions, MigrationClientFactory, MigrationHistoryFormat, MigrationIdentity, MigrationManifest, MigrationManifestPaths, type MigrationPreparationCode, MigrationPreparationError, MigrationQueryClient, MigrationState, MigrationStatus, OutboundDeliveryEntry, OutboundSettlement, PGliteMigrateCredentials, PUBLIC_IRI, PUBLIC_RESOURCE_ID, PersistentPgliteStore, PgliteStoreCode, PgliteStoreError, PostgresMigrateCredentials, PostgresPreparationCredentials, PreparePgliteOptions, PreparePostgresOptions, PublicJwk, RelationsFilter, ResourceKindConflictError, ResourceRevisionStateError, RevisionConflictError, RevisionRelationInput, StoredResourceRevision, Transaction, addActorCollectionItem, appendResourceRevision, assertMigrationManifestPrefix, captureLegacyResourceRevision, classifyMigrationHistory, consumeLoginChallenge, ensureRemoteInstance, ensureResource, findLoginChallenge, inboundActorRows, inspectMigrationState, jwkThumbprint, linkInboundActivity, listResourceRevisions, loadCurrentResourceRevision, loadResourceRevision, lockActorCollection, lockResources, migrate, migrationLockKey, migrationTimestamp, normalizeEmail, observeKeyVersion, openPersistentPglite, parseMigrationManifest, preparePgliteDatabase, preparePostgresDatabase, promoteResource, receiveInbound, recordFetchedObject, recordInbound, recordOutbound, relations, schema_d_exports as schema, settleOutbound, storableText, storeAddressing, thumbprintInput, toPublicJwk, verifyMigrationManifest };
|
package/dist/index.mjs
CHANGED
|
@@ -15,4 +15,5 @@ import { n as MigrationPreparationError } from "./migration-snapshot-OM5jQN1-.mj
|
|
|
15
15
|
import { migrationLockKey, preparePostgresDatabase } from "./migration-session.mjs";
|
|
16
16
|
import { PgliteStoreError, openPersistentPglite } from "./pglite-store.mjs";
|
|
17
17
|
import { preparePgliteDatabase } from "./pglite-preparation.mjs";
|
|
18
|
-
|
|
18
|
+
import { a as captureLegacyResourceRevision, c as LegacyResourceRevisionError, i as loadResourceRevision, n as listResourceRevisions, o as RevisionConflictError, r as loadCurrentResourceRevision, s as ResourceRevisionStateError, t as appendResourceRevision } from "./resource-revision-DWg6et77.mjs";
|
|
19
|
+
export { LegacyResourceRevisionError, LoginChallengeConsumptionError, LoginChallengeError, LoginChallengeNotFoundError, MigrationPreparationError, PUBLIC_IRI, PUBLIC_RESOURCE_ID, PgliteStoreError, ResourceKindConflictError, ResourceRevisionStateError, RevisionConflictError, addActorCollectionItem, appendResourceRevision, assertMigrationManifestPrefix, captureLegacyResourceRevision, classifyMigrationHistory, consumeLoginChallenge, ensureRemoteInstance, ensureResource, findLoginChallenge, inboundActorRows, inspectMigrationState, jwkThumbprint, linkInboundActivity, listResourceRevisions, loadCurrentResourceRevision, loadResourceRevision, lockActorCollection, lockResources, migrate, migrationLockKey, migrationTimestamp, normalizeEmail, observeKeyVersion, openPersistentPglite, parseMigrationManifest, preparePgliteDatabase, preparePostgresDatabase, promoteResource, receiveInbound, recordFetchedObject, recordInbound, recordOutbound, relations, schema_exports as schema, settleOutbound, storableText, storeAddressing, thumbprintInput, toPublicJwk, verifyMigrationManifest };
|
package/dist/instance.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as Transaction, t as Database, x as Instance } from "./db-
|
|
1
|
+
import { r as Transaction, t as Database, x as Instance } from "./db-BBw4F4HU.mjs";
|
|
2
2
|
//#region src/instance.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Returns the remote instance of a host, registering it if it is new. The
|
package/dist/key.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Gt as jwkThumbprint, Jt as toPublicJwk, Kt as observeKeyVersion, Wt as PublicJwk, qt as thumbprintInput } from "./db-BBw4F4HU.mjs";
|
|
2
2
|
export { PublicJwk, jwkThumbprint, observeKeyVersion, thumbprintInput, toPublicJwk };
|
package/dist/login.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as LoginChallenge, r as Transaction, t as Database } from "./db-
|
|
1
|
+
import { A as LoginChallenge, r as Transaction, t as Database } from "./db-BBw4F4HU.mjs";
|
|
2
2
|
import { t as Uuid } from "./uuid-CKMzlIND.mjs";
|
|
3
3
|
import { SQL } from "drizzle-orm/sql";
|
|
4
4
|
//#region src/login.d.ts
|
|
@@ -104,6 +104,18 @@
|
|
|
104
104
|
{
|
|
105
105
|
"name": "20261011192718_record_actor_followers",
|
|
106
106
|
"sha256": "7ad5dafd71aae445354315e4bec4466196228dabd081bb76171874817cb38ff4"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "20261026181201_resource_revision_storage",
|
|
110
|
+
"sha256": "9732dae475a6fa9cf6aafc4b5335a4b49949e34b630bcd1645da3a048d866458"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "20261026181206_guard_resource_revisions",
|
|
114
|
+
"sha256": "f14d53654677fc3150a6bed8b0093dc6d2d6dc02c62e3be1e29c85074a3f1e9b"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "20261026192411_capture_legacy_resource_revisions",
|
|
118
|
+
"sha256": "25deff8bc6684620fb679c1d339c8803cdcb1b5a8c5f9a9771c95411a185eee3"
|
|
107
119
|
}
|
|
108
120
|
]
|
|
109
121
|
}
|