diff --git a/lexicons/org/tangled/shTombstone.json b/lexicons/org/tangled/shTombstone.json new file mode 100644 index 000000000..f8cb7a44c --- /dev/null +++ b/lexicons/org/tangled/shTombstone.json @@ -0,0 +1,21 @@ +{ + "lexicon": 1, + "id": "org.tangled.shTombstone", + "defs": { + "main": { + "type": "record", + "description": "Written to an account's own repo once its org.tangled records have been copied over from the liar pds.", + "key": "literal:self", + "record": { + "type": "object", + "required": ["createdAt"], + "properties": { + "createdAt": { + "type": "string", + "format": "datetime" + } + } + } + } + } +} diff --git a/web/lex.config.ts b/web/lex.config.ts index 9c27e31c0..88d3faf70 100644 --- a/web/lex.config.ts +++ b/web/lex.config.ts @@ -22,6 +22,7 @@ export default defineLexiconConfig({ "../lexicons/knot/**/*.json", "../lexicons/label/**/*.json", "../lexicons/markup/**/*.json", + "../lexicons/org/tangled/*.json", "../lexicons/org/tangled/actor/*.json", "../lexicons/org/tangled/ci/*.json", "../lexicons/org/tangled/ci/trigger/*.json", diff --git a/web/src/lib/api/lexicons/index.ts b/web/src/lib/api/lexicons/index.ts index 066ee610d..77a914931 100644 --- a/web/src/lib/api/lexicons/index.ts +++ b/web/src/lib/api/lexicons/index.ts @@ -43,6 +43,7 @@ export * as OrgTangledReviewPatch from "./types/org/tangled/review/patch.js"; export * as OrgTangledSecretAddSecret from "./types/org/tangled/secret/addSecret.js"; export * as OrgTangledSecretListSecrets from "./types/org/tangled/secret/listSecrets.js"; export * as OrgTangledSecretRemoveSecret from "./types/org/tangled/secret/removeSecret.js"; +export * as OrgTangledShTombstone from "./types/org/tangled/shTombstone.js"; export * as OrgTangledSnippetString from "./types/org/tangled/snippet/string.js"; export * as OrgTangledTempAccountAddEmail from "./types/org/tangled/temp/account/addEmail.js"; export * as OrgTangledTempAccountBeginSignup from "./types/org/tangled/temp/account/beginSignup.js"; diff --git a/web/src/lib/api/lexicons/types/org/tangled/shTombstone.ts b/web/src/lib/api/lexicons/types/org/tangled/shTombstone.ts new file mode 100644 index 000000000..a4d47bdad --- /dev/null +++ b/web/src/lib/api/lexicons/types/org/tangled/shTombstone.ts @@ -0,0 +1,25 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.record( + /*#__PURE__*/ v.literal("self"), + /*#__PURE__*/ v.object({ + $type: /*#__PURE__*/ v.literal("org.tangled.shTombstone"), + createdAt: /*#__PURE__*/ v.datetimeString(), + }), +); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface Main extends v.InferInput {} + +declare module "@atcute/lexicons/ambient" { + interface Records { + "org.tangled.shTombstone": mainSchema; + } +}