a collection of lightweight TypeScript packages for AT Protocol, the protocol powering Bluesky
atproto bluesky typescript npm
101
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore(tangled): pull latest Tangled lexicons

Mary e0454e26 e3696f10

+55 -38
+5
.changeset/khaki-chefs-shine.md
··· 1 + --- 2 + '@atcute/tangled': patch 3 + --- 4 + 5 + pull latest Tangled lexicons
+1 -1
packages/definitions/tangled/lexicons/README.md
··· 3 3 this directory contains lexicon documents pulled from the following sources: 4 4 5 5 - https://tangled.org/tangled.org/core.git 6 - - commit: 163733560fc9d85baaa0facbba531c1bab78eb20 6 + - commit: 7ef0e37220e456e23b12e112a2608b6585966d2e
+31 -19
packages/definitions/tangled/lexicons/sh/tangled/repo/pull.json
··· 9 9 "key": "tid", 10 10 "record": { 11 11 "type": "object", 12 - "required": ["target", "title", "patchBlob", "createdAt"], 12 + "required": ["target", "title", "createdAt", "rounds"], 13 13 "properties": { 14 - "target": { 15 - "type": "ref", 16 - "ref": "#target" 17 - }, 18 14 "title": { 19 15 "type": "string" 20 16 }, 21 17 "body": { 22 18 "type": "string" 23 19 }, 24 - "patch": { 25 - "type": "string", 26 - "description": "(deprecated) use patchBlob instead" 27 - }, 28 - "patchBlob": { 29 - "type": "blob", 30 - "accept": ["text/x-patch"], 31 - "description": "patch content" 20 + "rounds": { 21 + "type": "array", 22 + "items": { 23 + "type": "ref", 24 + "ref": "#round" 25 + } 32 26 }, 33 27 "source": { 34 28 "type": "ref", 35 29 "ref": "#source" 30 + }, 31 + "target": { 32 + "type": "ref", 33 + "ref": "#target" 36 34 }, 37 35 "createdAt": { 38 36 "type": "string", ··· 51 49 "type": "string", 52 50 "format": "at-uri" 53 51 } 52 + }, 53 + "dependentOn": { 54 + "type": "string", 55 + "format": "at-uri" 54 56 } 55 57 } 56 58 } ··· 74 76 }, 75 77 "source": { 76 78 "type": "object", 77 - "required": ["branch", "sha"], 79 + "required": ["branch"], 78 80 "properties": { 79 81 "branch": { 80 82 "type": "string" 81 83 }, 82 - "sha": { 83 - "type": "string", 84 - "minLength": 40, 85 - "maxLength": 40 86 - }, 87 84 "repo": { 88 85 "type": "string", 89 86 "format": "at-uri" ··· 91 88 "repoDid": { 92 89 "type": "string", 93 90 "format": "did" 91 + } 92 + } 93 + }, 94 + "round": { 95 + "type": "object", 96 + "required": ["patchBlob", "createdAt"], 97 + "description": "revisions of this pull request, newer rounds are appended to this array. appviews may reject records do not treat this field as append-only. the blob format is gzipped text-based git-format-patches.", 98 + "properties": { 99 + "createdAt": { 100 + "type": "string", 101 + "format": "datetime" 102 + }, 103 + "patchBlob": { 104 + "type": "blob", 105 + "accept": ["application/gzip"] 94 106 } 95 107 } 96 108 }
-1
packages/definitions/tangled/lib/lexicons/types/sh/tangled/repo/artifact.ts
··· 8 8 $type: /*#__PURE__*/ v.literal('sh.tangled.repo.artifact'), 9 9 /** 10 10 * the artifact 11 - * @accept *\/* 12 11 * @maxSize 52428800 13 12 */ 14 13 artifact: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [/*#__PURE__*/ v.blobSize(52428800)]),
+18 -17
packages/definitions/tangled/lib/lexicons/types/sh/tangled/repo/pull.ts
··· 8 8 $type: /*#__PURE__*/ v.literal('sh.tangled.repo.pull'), 9 9 body: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 10 10 createdAt: /*#__PURE__*/ v.datetimeString(), 11 + dependentOn: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 11 12 mentions: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.didString())), 12 - /** 13 - * (deprecated) use patchBlob instead 14 - * @deprecated 15 - */ 16 - patch: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 17 - /** 18 - * patch content 19 - * @accept text/x-patch 20 - */ 21 - patchBlob: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [ 22 - /*#__PURE__*/ v.blobAccept(['text/x-patch']), 23 - ]), 24 13 references: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString())), 14 + get rounds() { 15 + return /*#__PURE__*/ v.array(roundSchema); 16 + }, 25 17 get source() { 26 18 return /*#__PURE__*/ v.optional(sourceSchema); 27 19 }, ··· 31 23 title: /*#__PURE__*/ v.string(), 32 24 }), 33 25 ); 26 + const _roundSchema = /*#__PURE__*/ v.object({ 27 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.repo.pull#round')), 28 + createdAt: /*#__PURE__*/ v.datetimeString(), 29 + /** 30 + * @accept application/gzip 31 + */ 32 + patchBlob: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.blob(), [ 33 + /*#__PURE__*/ v.blobAccept(['application/gzip']), 34 + ]), 35 + }); 34 36 const _sourceSchema = /*#__PURE__*/ v.object({ 35 37 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.repo.pull#source')), 36 38 branch: /*#__PURE__*/ v.string(), 37 39 repo: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 38 40 repoDid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 39 - /** 40 - * @minLength 40 41 - * @maxLength 40 42 - */ 43 - sha: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(40, 40)]), 44 41 }); 45 42 const _targetSchema = /*#__PURE__*/ v.object({ 46 43 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.repo.pull#target')), ··· 50 47 }); 51 48 52 49 type main$schematype = typeof _mainSchema; 50 + type round$schematype = typeof _roundSchema; 53 51 type source$schematype = typeof _sourceSchema; 54 52 type target$schematype = typeof _targetSchema; 55 53 56 54 export interface mainSchema extends main$schematype {} 55 + export interface roundSchema extends round$schematype {} 57 56 export interface sourceSchema extends source$schematype {} 58 57 export interface targetSchema extends target$schematype {} 59 58 60 59 export const mainSchema = _mainSchema as mainSchema; 60 + export const roundSchema = _roundSchema as roundSchema; 61 61 export const sourceSchema = _sourceSchema as sourceSchema; 62 62 export const targetSchema = _targetSchema as targetSchema; 63 63 64 64 export interface Main extends v.InferInput<typeof mainSchema> {} 65 + export interface Round extends v.InferInput<typeof roundSchema> {} 65 66 export interface Source extends v.InferInput<typeof sourceSchema> {} 66 67 export interface Target extends v.InferInput<typeof targetSchema> {} 67 68