ai/at
1
0
Clone
2
lexicon
syui edited this page 2026-01-16 08:30:34 +00:00

https://resolve-lexicon.pages.dev/

例えば、ai.syui.log.postを作りたいとして、まずは、syui.aiにdnsを追加します。

_lexicon.log.syui.ai  TXT  "did=did:plc:uqzpqmrjnptsxezjx4xuh2mn"

次に、schemeをcom.atproto.lexicon.schemaにputします。

at://did:plc:uqzpqmrjnptsxezjx4xuh2mn/com.atproto.lexicon.schema/ai.syui.log.post

{
	"repo": "did:plc:uqzpqmrjnptsxezjx4xuh2mn",
		"collection": "com.atproto.lexicon.schema",
		"rkey": "ai.syui.log.post",
		"record": {
			"$type": "com.atproto.lexicon.schema",
			"lexicon": 1,
			"id": "ai.syui.log.post",
			"defs": {
				"main": {
					"type": "record",
					"key": "tid",
					"description": "Record containing a blog post.",
					"record": {
						"type": "object",
						"required": ["title", "content", "createdAt"],
						"properties": {
							"title": { "type": "string", "maxLength": 3000, "maxGraphemes": 300 },
							"content": { "type": "string", "maxLength": 1000000, "maxGraphemes": 100000 },
							"createdAt": { "type": "string", "format": "datetime" },
							"lang": { "type": "string", "maxLength": 10 },
							"translations": { "type": "unknown" }
						}
					}
				}
			}
		}
}
$ curl -X POST "https://bsky.syu.is/xrpc/com.atproto.repo.putRecord" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "repo": "did:plc:uqzpqmrjnptsxezjx4xuh2mn",
    "collection": "com.atproto.lexicon.schema",
    "rkey": "ai.syui.log.post",
    "record": { ... }
  }'