···11-export * as AtMarginAnnotation from "./types/at/margin/annotation.js";
22-export * as AtMarginBookmark from "./types/at/margin/bookmark.js";
33-export * as AtMarginCollection from "./types/at/margin/collection.js";
44-export * as AtMarginCollectionItem from "./types/at/margin/collectionItem.js";
55-export * as AtMarginHighlight from "./types/at/margin/highlight.js";
66-export * as AtMarginLike from "./types/at/margin/like.js";
77-export * as AtMarginProfile from "./types/at/margin/profile.js";
88-export * as AtMarginReply from "./types/at/margin/reply.js";
99-export * as ComAtprotoRepoStrongRef from "./types/com/atproto/repo/strongRef.js";
1010-export * as NetworkCosmikCard from "./types/network/cosmik/card.js";
1111-export * as NetworkCosmikCollection from "./types/network/cosmik/collection.js";
1212-export * as NetworkCosmikCollectionLink from "./types/network/cosmik/collectionLink.js";
1313-export * as NetworkCosmikDefs from "./types/network/cosmik/defs.js";
···11-import type {} from "@atcute/lexicons";
22-import * as v from "@atcute/lexicons/validations";
33-import type {} from "@atcute/lexicons/ambient";
44-import * as ComAtprotoRepoStrongRef from "../../com/atproto/repo/strongRef.js";
55-import * as NetworkCosmikDefs from "./defs.js";
66-77-const _mainSchema = /*#__PURE__*/ v.record(
88- /*#__PURE__*/ v.tidString(),
99- /*#__PURE__*/ v.object({
1010- $type: /*#__PURE__*/ v.literal("network.cosmik.collectionLink"),
1111- /**
1212- * Timestamp when the card was added to the collection.
1313- */
1414- addedAt: /*#__PURE__*/ v.datetimeString(),
1515- /**
1616- * DID of the user who added the card to the collection
1717- */
1818- addedBy: /*#__PURE__*/ v.string(),
1919- /**
2020- * Strong reference to the card record in the users library.
2121- */
2222- get card() {
2323- return ComAtprotoRepoStrongRef.mainSchema;
2424- },
2525- /**
2626- * Strong reference to the collection record.
2727- */
2828- get collection() {
2929- return ComAtprotoRepoStrongRef.mainSchema;
3030- },
3131- /**
3232- * Timestamp when this link record was created (usually set by PDS).
3333- */
3434- createdAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()),
3535- /**
3636- * Strong reference to the original card record (may be in another library).
3737- */
3838- get originalCard() {
3939- return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema);
4040- },
4141- /**
4242- * Optional provenance information for this link.
4343- */
4444- get provenance() {
4545- return /*#__PURE__*/ v.optional(NetworkCosmikDefs.provenanceSchema);
4646- },
4747- }),
4848-);
4949-5050-type main$schematype = typeof _mainSchema;
5151-5252-export interface mainSchema extends main$schematype {}
5353-5454-export const mainSchema = _mainSchema as mainSchema;
5555-5656-export interface Main extends v.InferInput<typeof mainSchema> {}
5757-5858-declare module "@atcute/lexicons/ambient" {
5959- interface Records {
6060- "network.cosmik.collectionLink": mainSchema;
6161- }
6262-}
-23
src/lexicons/types/network/cosmik/defs.ts
···11-import type {} from "@atcute/lexicons";
22-import * as v from "@atcute/lexicons/validations";
33-import * as ComAtprotoRepoStrongRef from "../../com/atproto/repo/strongRef.js";
44-55-const _provenanceSchema = /*#__PURE__*/ v.object({
66- $type: /*#__PURE__*/ v.optional(
77- /*#__PURE__*/ v.literal("network.cosmik.defs#provenance"),
88- ),
99- /**
1010- * Strong reference to the card that led to this record.
1111- */
1212- get via() {
1313- return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema);
1414- },
1515-});
1616-1717-type provenance$schematype = typeof _provenanceSchema;
1818-1919-export interface provenanceSchema extends provenance$schematype {}
2020-2121-export const provenanceSchema = _provenanceSchema as provenanceSchema;
2222-2323-export interface Provenance extends v.InferInput<typeof provenanceSchema> {}