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.

fix(lex-cli): missing pure annotation on constrained arrays

Mary 480e58bb 69db9c79

+96 -53
+10
.changeset/rare-aliens-fall.md
··· 1 + --- 2 + '@atcute/bluemoji': patch 3 + '@atcute/atproto': patch 4 + '@atcute/bluesky': patch 5 + '@atcute/tangled': patch 6 + '@atcute/ozone': patch 7 + '@atcute/lex-cli': patch 8 + --- 9 + 10 + missing pure annotation on constrained arrays
+3 -1
packages/definitions/atproto/lib/lexicons/types/com/atproto/label/defs.ts
··· 65 65 const _selfLabelsSchema = /*#__PURE__*/ v.object({ 66 66 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.label.defs#selfLabels')), 67 67 get values() { 68 - return /*#__PURE__*/ v.constrain(v.array(selfLabelSchema), [/*#__PURE__*/ v.arrayLength(0, 10)]); 68 + return /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(selfLabelSchema), [ 69 + /*#__PURE__*/ v.arrayLength(0, 10), 70 + ]); 69 71 }, 70 72 }); 71 73
+3 -1
packages/definitions/atproto/lib/lexicons/types/com/atproto/sync/subscribeRepos.ts
··· 25 25 since: /*#__PURE__*/ v.nullable(/*#__PURE__*/ v.tidString()), 26 26 blocks: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.bytes(), [/*#__PURE__*/ v.bytesSize(0, 2000000)]), 27 27 get ops() { 28 - return /*#__PURE__*/ v.constrain(v.array(repoOpSchema), [/*#__PURE__*/ v.arrayLength(0, 200)]); 28 + return /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(repoOpSchema), [ 29 + /*#__PURE__*/ v.arrayLength(0, 200), 30 + ]); 29 31 }, 30 32 blobs: /*#__PURE__*/ v.array(/*#__PURE__*/ v.cidLink()), 31 33 prevData: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidLink()),
+1 -1
packages/definitions/bluemoji/lib/lexicons/types/blue/moji/packs/getPacks.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('blue.moji.packs.getPacks', { 7 7 params: /*#__PURE__*/ v.object({ 8 - uris: /*#__PURE__*/ v.constrain(v.array(/*#__PURE__*/ v.resourceUriString()), [ 8 + uris: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString()), [ 9 9 /*#__PURE__*/ v.arrayLength(0, 25), 10 10 ]), 11 11 }),
+13 -8
packages/definitions/bluesky/lib/lexicons/types/app/bsky/actor/defs.ts
··· 22 22 }, 23 23 queuedNudges: /*#__PURE__*/ v.optional( 24 24 /*#__PURE__*/ v.constrain( 25 - v.array(/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 100)])), 25 + /*#__PURE__*/ v.array( 26 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 100)]), 27 + ), 26 28 [/*#__PURE__*/ v.arrayLength(0, 1000)], 27 29 ), 28 30 ), 29 31 get nuxs() { 30 32 return /*#__PURE__*/ v.optional( 31 - /*#__PURE__*/ v.constrain(v.array(nuxSchema), [/*#__PURE__*/ v.arrayLength(0, 100)]), 33 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(nuxSchema), [/*#__PURE__*/ v.arrayLength(0, 100)]), 32 34 ); 33 35 }, 34 36 }); ··· 54 56 const _interestsPrefSchema = /*#__PURE__*/ v.object({ 55 57 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.actor.defs#interestsPref')), 56 58 tags: /*#__PURE__*/ v.constrain( 57 - v.array( 59 + /*#__PURE__*/ v.array( 58 60 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 59 61 /*#__PURE__*/ v.stringLength(0, 640), 60 62 /*#__PURE__*/ v.stringGraphemes(0, 64), ··· 67 69 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.actor.defs#knownFollowers')), 68 70 count: /*#__PURE__*/ v.integer(), 69 71 get followers() { 70 - return /*#__PURE__*/ v.constrain(v.array(profileViewBasicSchema), [/*#__PURE__*/ v.arrayLength(0, 5)]); 72 + return /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(profileViewBasicSchema), [ 73 + /*#__PURE__*/ v.arrayLength(0, 5), 74 + ]); 71 75 }, 72 76 }); 73 77 const _labelerPrefItemSchema = /*#__PURE__*/ v.object({ ··· 127 131 get threadgateAllowRules() { 128 132 return /*#__PURE__*/ v.optional( 129 133 /*#__PURE__*/ v.constrain( 130 - v.array( 134 + /*#__PURE__*/ v.array( 131 135 /*#__PURE__*/ v.variant([ 132 136 AppBskyFeedThreadgate.mentionRuleSchema, 133 137 AppBskyFeedThreadgate.followerRuleSchema, ··· 141 145 }, 142 146 get postgateEmbeddingRules() { 143 147 return /*#__PURE__*/ v.optional( 144 - /*#__PURE__*/ v.constrain(v.array(/*#__PURE__*/ v.variant([AppBskyFeedPostgate.disableRuleSchema])), [ 145 - /*#__PURE__*/ v.arrayLength(0, 5), 146 - ]), 148 + /*#__PURE__*/ v.constrain( 149 + /*#__PURE__*/ v.array(/*#__PURE__*/ v.variant([AppBskyFeedPostgate.disableRuleSchema])), 150 + [/*#__PURE__*/ v.arrayLength(0, 5)], 151 + ), 147 152 ); 148 153 }, 149 154 });
+1 -1
packages/definitions/bluesky/lib/lexicons/types/app/bsky/actor/getProfiles.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.actor.getProfiles', { 7 7 params: /*#__PURE__*/ v.object({ 8 - actors: /*#__PURE__*/ v.constrain(v.array(/*#__PURE__*/ v.actorIdentifierString()), [ 8 + actors: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.actorIdentifierString()), [ 9 9 /*#__PURE__*/ v.arrayLength(0, 25), 10 10 ]), 11 11 }),
+4 -2
packages/definitions/bluesky/lib/lexicons/types/app/bsky/embed/images.ts
··· 13 13 const _mainSchema = /*#__PURE__*/ v.object({ 14 14 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.embed.images')), 15 15 get images() { 16 - return /*#__PURE__*/ v.constrain(v.array(imageSchema), [/*#__PURE__*/ v.arrayLength(0, 4)]); 16 + return /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(imageSchema), [/*#__PURE__*/ v.arrayLength(0, 4)]); 17 17 }, 18 18 }); 19 19 const _viewSchema = /*#__PURE__*/ v.object({ 20 20 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.embed.images#view')), 21 21 get images() { 22 - return /*#__PURE__*/ v.constrain(v.array(viewImageSchema), [/*#__PURE__*/ v.arrayLength(0, 4)]); 22 + return /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(viewImageSchema), [ 23 + /*#__PURE__*/ v.arrayLength(0, 4), 24 + ]); 23 25 }, 24 26 }); 25 27 const _viewImageSchema = /*#__PURE__*/ v.object({
+1 -1
packages/definitions/bluesky/lib/lexicons/types/app/bsky/embed/video.ts
··· 12 12 video: /*#__PURE__*/ v.blob(), 13 13 get captions() { 14 14 return /*#__PURE__*/ v.optional( 15 - /*#__PURE__*/ v.constrain(v.array(captionSchema), [/*#__PURE__*/ v.arrayLength(0, 20)]), 15 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(captionSchema), [/*#__PURE__*/ v.arrayLength(0, 20)]), 16 16 ); 17 17 }, 18 18 alt: /*#__PURE__*/ v.optional(
+1 -1
packages/definitions/bluesky/lib/lexicons/types/app/bsky/feed/getPosts.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.feed.getPosts', { 7 7 params: /*#__PURE__*/ v.object({ 8 - uris: /*#__PURE__*/ v.constrain(v.array(/*#__PURE__*/ v.resourceUriString()), [ 8 + uris: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString()), [ 9 9 /*#__PURE__*/ v.arrayLength(0, 25), 10 10 ]), 11 11 }),
+2 -2
packages/definitions/bluesky/lib/lexicons/types/app/bsky/feed/post.ts
··· 47 47 ); 48 48 }, 49 49 langs: /*#__PURE__*/ v.optional( 50 - /*#__PURE__*/ v.constrain(v.array(/*#__PURE__*/ v.languageCodeString()), [ 50 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.languageCodeString()), [ 51 51 /*#__PURE__*/ v.arrayLength(0, 3), 52 52 ]), 53 53 ), ··· 56 56 }, 57 57 tags: /*#__PURE__*/ v.optional( 58 58 /*#__PURE__*/ v.constrain( 59 - v.array( 59 + /*#__PURE__*/ v.array( 60 60 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 61 61 /*#__PURE__*/ v.stringLength(0, 640), 62 62 /*#__PURE__*/ v.stringGraphemes(0, 64),
+2 -2
packages/definitions/bluesky/lib/lexicons/types/app/bsky/feed/postgate.ts
··· 12 12 createdAt: /*#__PURE__*/ v.datetimeString(), 13 13 post: /*#__PURE__*/ v.resourceUriString(), 14 14 detachedEmbeddingUris: /*#__PURE__*/ v.optional( 15 - /*#__PURE__*/ v.constrain(v.array(/*#__PURE__*/ v.resourceUriString()), [ 15 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString()), [ 16 16 /*#__PURE__*/ v.arrayLength(0, 50), 17 17 ]), 18 18 ), 19 19 get embeddingRules() { 20 20 return /*#__PURE__*/ v.optional( 21 - /*#__PURE__*/ v.constrain(v.array(/*#__PURE__*/ v.variant([disableRuleSchema])), [ 21 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.variant([disableRuleSchema])), [ 22 22 /*#__PURE__*/ v.arrayLength(0, 5), 23 23 ]), 24 24 );
+2 -2
packages/definitions/bluesky/lib/lexicons/types/app/bsky/feed/threadgate.ts
··· 20 20 get allow() { 21 21 return /*#__PURE__*/ v.optional( 22 22 /*#__PURE__*/ v.constrain( 23 - v.array( 23 + /*#__PURE__*/ v.array( 24 24 /*#__PURE__*/ v.variant([ 25 25 mentionRuleSchema, 26 26 followerRuleSchema, ··· 34 34 }, 35 35 createdAt: /*#__PURE__*/ v.datetimeString(), 36 36 hiddenReplies: /*#__PURE__*/ v.optional( 37 - /*#__PURE__*/ v.constrain(v.array(/*#__PURE__*/ v.resourceUriString()), [ 37 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString()), [ 38 38 /*#__PURE__*/ v.arrayLength(0, 50), 39 39 ]), 40 40 ),
+4 -2
packages/definitions/bluesky/lib/lexicons/types/app/bsky/graph/defs.ts
··· 98 98 }, 99 99 get listItemsSample() { 100 100 return /*#__PURE__*/ v.optional( 101 - /*#__PURE__*/ v.constrain(v.array(listItemViewSchema), [/*#__PURE__*/ v.arrayLength(0, 12)]), 101 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(listItemViewSchema), [ 102 + /*#__PURE__*/ v.arrayLength(0, 12), 103 + ]), 102 104 ); 103 105 }, 104 106 get feeds() { 105 107 return /*#__PURE__*/ v.optional( 106 - /*#__PURE__*/ v.constrain(v.array(AppBskyFeedDefs.generatorViewSchema), [ 108 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(AppBskyFeedDefs.generatorViewSchema), [ 107 109 /*#__PURE__*/ v.arrayLength(0, 3), 108 110 ]), 109 111 );
+1 -1
packages/definitions/bluesky/lib/lexicons/types/app/bsky/graph/getRelationships.ts
··· 7 7 params: /*#__PURE__*/ v.object({ 8 8 actor: /*#__PURE__*/ v.actorIdentifierString(), 9 9 others: /*#__PURE__*/ v.optional( 10 - /*#__PURE__*/ v.constrain(v.array(/*#__PURE__*/ v.actorIdentifierString()), [ 10 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.actorIdentifierString()), [ 11 11 /*#__PURE__*/ v.arrayLength(0, 30), 12 12 ]), 13 13 ),
+1 -1
packages/definitions/bluesky/lib/lexicons/types/app/bsky/graph/getStarterPacks.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.graph.getStarterPacks', { 7 7 params: /*#__PURE__*/ v.object({ 8 - uris: /*#__PURE__*/ v.constrain(v.array(/*#__PURE__*/ v.resourceUriString()), [ 8 + uris: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString()), [ 9 9 /*#__PURE__*/ v.arrayLength(0, 25), 10 10 ]), 11 11 }),
+1 -1
packages/definitions/bluesky/lib/lexicons/types/app/bsky/graph/starterpack.ts
··· 27 27 list: /*#__PURE__*/ v.resourceUriString(), 28 28 get feeds() { 29 29 return /*#__PURE__*/ v.optional( 30 - /*#__PURE__*/ v.constrain(v.array(feedItemSchema), [/*#__PURE__*/ v.arrayLength(0, 3)]), 30 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(feedItemSchema), [/*#__PURE__*/ v.arrayLength(0, 3)]), 31 31 ); 32 32 }, 33 33 createdAt: /*#__PURE__*/ v.datetimeString(),
+1 -1
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/convo/getConvoAvailability.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('chat.bsky.convo.getConvoAvailability', { 7 7 params: /*#__PURE__*/ v.object({ 8 - members: /*#__PURE__*/ v.constrain(v.array(/*#__PURE__*/ v.didString()), [ 8 + members: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.didString()), [ 9 9 /*#__PURE__*/ v.arrayLength(1, 10), 10 10 ]), 11 11 }),
+1 -1
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/convo/getConvoForMembers.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('chat.bsky.convo.getConvoForMembers', { 7 7 params: /*#__PURE__*/ v.object({ 8 - members: /*#__PURE__*/ v.constrain(v.array(/*#__PURE__*/ v.didString()), [ 8 + members: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.didString()), [ 9 9 /*#__PURE__*/ v.arrayLength(1, 10), 10 10 ]), 11 11 }),
+3 -1
packages/definitions/bluesky/lib/lexicons/types/chat/bsky/convo/sendMessageBatch.ts
··· 16 16 type: 'lex', 17 17 schema: /*#__PURE__*/ v.object({ 18 18 get items() { 19 - return /*#__PURE__*/ v.constrain(v.array(batchItemSchema), [/*#__PURE__*/ v.arrayLength(0, 100)]); 19 + return /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(batchItemSchema), [ 20 + /*#__PURE__*/ v.arrayLength(0, 100), 21 + ]); 20 22 }, 21 23 }), 22 24 },
+3 -1
packages/definitions/ozone/lib/lexicons/types/tools/ozone/moderation/defs.ts
··· 145 145 durationInHours: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 146 146 acknowledgeAccountSubjects: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 147 147 policies: /*#__PURE__*/ v.optional( 148 - /*#__PURE__*/ v.constrain(v.array(/*#__PURE__*/ v.string()), [/*#__PURE__*/ v.arrayLength(0, 5)]), 148 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string()), [ 149 + /*#__PURE__*/ v.arrayLength(0, 5), 150 + ]), 149 151 ), 150 152 }); 151 153 const _modEventUnmuteSchema = /*#__PURE__*/ v.object({
+1 -1
packages/definitions/ozone/lib/lexicons/types/tools/ozone/moderation/getRecords.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('tools.ozone.moderation.getRecords', { 7 7 params: /*#__PURE__*/ v.object({ 8 - uris: /*#__PURE__*/ v.constrain(v.array(/*#__PURE__*/ v.resourceUriString()), [ 8 + uris: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString()), [ 9 9 /*#__PURE__*/ v.arrayLength(0, 100), 10 10 ]), 11 11 }),
+1 -1
packages/definitions/ozone/lib/lexicons/types/tools/ozone/moderation/getReporterStats.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('tools.ozone.moderation.getReporterStats', { 7 7 params: /*#__PURE__*/ v.object({ 8 - dids: /*#__PURE__*/ v.constrain(v.array(/*#__PURE__*/ v.didString()), [ 8 + dids: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.didString()), [ 9 9 /*#__PURE__*/ v.arrayLength(0, 100), 10 10 ]), 11 11 }),
+1 -1
packages/definitions/ozone/lib/lexicons/types/tools/ozone/moderation/getRepos.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('tools.ozone.moderation.getRepos', { 7 7 params: /*#__PURE__*/ v.object({ 8 - dids: /*#__PURE__*/ v.constrain(v.array(/*#__PURE__*/ v.didString()), [ 8 + dids: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.didString()), [ 9 9 /*#__PURE__*/ v.arrayLength(0, 100), 10 10 ]), 11 11 }),
+1 -1
packages/definitions/ozone/lib/lexicons/types/tools/ozone/moderation/getSubjects.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('tools.ozone.moderation.getSubjects', { 7 7 params: /*#__PURE__*/ v.object({ 8 - subjects: /*#__PURE__*/ v.constrain(v.array(/*#__PURE__*/ v.string()), [ 8 + subjects: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string()), [ 9 9 /*#__PURE__*/ v.arrayLength(1, 100), 10 10 ]), 11 11 }),
+3 -1
packages/definitions/ozone/lib/lexicons/types/tools/ozone/moderation/queryEvents.ts
··· 12 12 createdBefore: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 13 13 subject: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), 14 14 collections: /*#__PURE__*/ v.optional( 15 - /*#__PURE__*/ v.constrain(v.array(/*#__PURE__*/ v.nsidString()), [/*#__PURE__*/ v.arrayLength(0, 20)]), 15 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.nsidString()), [ 16 + /*#__PURE__*/ v.arrayLength(0, 20), 17 + ]), 16 18 ), 17 19 subjectType: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'account' | 'record' | (string & {})>()), 18 20 includeAllUserRecords: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), false),
+6 -2
packages/definitions/ozone/lib/lexicons/types/tools/ozone/moderation/queryStatuses.ts
··· 40 40 50, 41 41 ), 42 42 tags: /*#__PURE__*/ v.optional( 43 - /*#__PURE__*/ v.constrain(v.array(/*#__PURE__*/ v.string()), [/*#__PURE__*/ v.arrayLength(0, 25)]), 43 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string()), [ 44 + /*#__PURE__*/ v.arrayLength(0, 25), 45 + ]), 44 46 ), 45 47 excludeTags: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 46 48 cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 47 49 collections: /*#__PURE__*/ v.optional( 48 - /*#__PURE__*/ v.constrain(v.array(/*#__PURE__*/ v.nsidString()), [/*#__PURE__*/ v.arrayLength(0, 20)]), 50 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.nsidString()), [ 51 + /*#__PURE__*/ v.arrayLength(0, 20), 52 + ]), 49 53 ), 50 54 subjectType: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'account' | 'record' | (string & {})>()), 51 55 minAccountSuspendCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()),
+1 -1
packages/definitions/ozone/lib/lexicons/types/tools/ozone/set/addValues.ts
··· 8 8 type: 'lex', 9 9 schema: /*#__PURE__*/ v.object({ 10 10 name: /*#__PURE__*/ v.string(), 11 - values: /*#__PURE__*/ v.constrain(v.array(/*#__PURE__*/ v.string()), [ 11 + values: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string()), [ 12 12 /*#__PURE__*/ v.arrayLength(1, 1000), 13 13 ]), 14 14 }),
+3 -1
packages/definitions/ozone/lib/lexicons/types/tools/ozone/set/deleteValues.ts
··· 8 8 type: 'lex', 9 9 schema: /*#__PURE__*/ v.object({ 10 10 name: /*#__PURE__*/ v.string(), 11 - values: /*#__PURE__*/ v.constrain(v.array(/*#__PURE__*/ v.string()), [/*#__PURE__*/ v.arrayLength(1)]), 11 + values: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string()), [ 12 + /*#__PURE__*/ v.arrayLength(1), 13 + ]), 12 14 }), 13 15 }, 14 16 output: null,
+3 -1
packages/definitions/ozone/lib/lexicons/types/tools/ozone/setting/listOptions.ts
··· 16 16 ), 17 17 prefix: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 18 18 keys: /*#__PURE__*/ v.optional( 19 - /*#__PURE__*/ v.constrain(v.array(/*#__PURE__*/ v.nsidString()), [/*#__PURE__*/ v.arrayLength(0, 100)]), 19 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.nsidString()), [ 20 + /*#__PURE__*/ v.arrayLength(0, 100), 21 + ]), 20 22 ), 21 23 }), 22 24 output: {
+1 -1
packages/definitions/ozone/lib/lexicons/types/tools/ozone/setting/removeOptions.ts
··· 7 7 input: { 8 8 type: 'lex', 9 9 schema: /*#__PURE__*/ v.object({ 10 - keys: /*#__PURE__*/ v.constrain(v.array(/*#__PURE__*/ v.nsidString()), [ 10 + keys: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.nsidString()), [ 11 11 /*#__PURE__*/ v.arrayLength(1, 200), 12 12 ]), 13 13 scope: /*#__PURE__*/ v.string<'instance' | 'personal' | (string & {})>(),
+1 -1
packages/definitions/ozone/lib/lexicons/types/tools/ozone/verification/grantVerifications.ts
··· 16 16 type: 'lex', 17 17 schema: /*#__PURE__*/ v.object({ 18 18 get verifications() { 19 - return /*#__PURE__*/ v.constrain(v.array(verificationInputSchema), [ 19 + return /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(verificationInputSchema), [ 20 20 /*#__PURE__*/ v.arrayLength(0, 100), 21 21 ]); 22 22 },
+6 -2
packages/definitions/ozone/lib/lexicons/types/tools/ozone/verification/listVerifications.ts
··· 13 13 createdAfter: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 14 14 createdBefore: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 15 15 issuers: /*#__PURE__*/ v.optional( 16 - /*#__PURE__*/ v.constrain(v.array(/*#__PURE__*/ v.didString()), [/*#__PURE__*/ v.arrayLength(0, 100)]), 16 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.didString()), [ 17 + /*#__PURE__*/ v.arrayLength(0, 100), 18 + ]), 17 19 ), 18 20 subjects: /*#__PURE__*/ v.optional( 19 - /*#__PURE__*/ v.constrain(v.array(/*#__PURE__*/ v.didString()), [/*#__PURE__*/ v.arrayLength(0, 100)]), 21 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.didString()), [ 22 + /*#__PURE__*/ v.arrayLength(0, 100), 23 + ]), 20 24 ), 21 25 sortDirection: /*#__PURE__*/ v.literalEnum(['asc', 'desc']), 22 26 isRevoked: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
+1 -1
packages/definitions/ozone/lib/lexicons/types/tools/ozone/verification/revokeVerifications.ts
··· 7 7 input: { 8 8 type: 'lex', 9 9 schema: /*#__PURE__*/ v.object({ 10 - uris: /*#__PURE__*/ v.constrain(v.array(/*#__PURE__*/ v.resourceUriString()), [ 10 + uris: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString()), [ 11 11 /*#__PURE__*/ v.arrayLength(0, 100), 12 12 ]), 13 13 revokeReason: /*#__PURE__*/ v.optional(
+3 -3
packages/definitions/tangled/lib/lexicons/types/sh/tangled/actor/profile.ts
··· 13 13 ]), 14 14 ), 15 15 links: /*#__PURE__*/ v.optional( 16 - /*#__PURE__*/ v.constrain(v.array(/*#__PURE__*/ v.genericUriString()), [ 16 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.genericUriString()), [ 17 17 /*#__PURE__*/ v.arrayLength(0, 5), 18 18 ]), 19 19 ), 20 20 stats: /*#__PURE__*/ v.optional( 21 21 /*#__PURE__*/ v.constrain( 22 - v.array( 22 + /*#__PURE__*/ v.array( 23 23 /*#__PURE__*/ v.literalEnum([ 24 24 'merged-pull-request-count', 25 25 'closed-pull-request-count', ··· 40 40 ]), 41 41 ), 42 42 pinnedRepositories: /*#__PURE__*/ v.optional( 43 - /*#__PURE__*/ v.constrain(v.array(/*#__PURE__*/ v.resourceUriString()), [ 43 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString()), [ 44 44 /*#__PURE__*/ v.arrayLength(0, 6), 45 45 ]), 46 46 ),
+6 -4
packages/lexicons/lex-cli/src/codegen.ts
··· 530 530 } 531 531 } 532 532 533 - if (pipe.length === 0) { 534 - return `${PURE} v.array(${item})`; 535 - } else { 536 - return `${PURE} v.constrain(v.array(${item}), [ ${pipe.join(', ')} ])`; 533 + let call = `${PURE} v.array(${item})`; 534 + 535 + if (pipe.length !== 0) { 536 + call = `${PURE} v.constrain(${call}, [ ${pipe.join(', ')} ])`; 537 537 } 538 + 539 + return call; 538 540 } 539 541 540 542 // LexPrimitive