a collection of lightweight TypeScript packages for AT Protocol, the protocol powering Bluesky
0
fork

Configure Feed

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

chore: pull latest Bluesky lexicons

mary.my.id 66ea1a97 5e4e0dd9

verified
+234 -2
+6
.changeset/wild-suits-fetch.md
··· 1 + --- 2 + '@atcute/bluesky': patch 3 + '@atcute/ozone': patch 4 + --- 5 + 6 + pull latest Bluesky lexicons
+1 -1
lexdocs/bluesky/README.md
··· 1 - https://github.com/bluesky-social/atproto/tree/88c136427451a20d21812a1aa88a70cf21904138/lexicons/ 1 + https://github.com/bluesky-social/atproto/tree/8787fd9dea769716412c9883e355cd496664bc6e/lexicons/
+26
lexdocs/bluesky/app/bsky/notification/unregisterPush.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "app.bsky.notification.unregisterPush", 4 + "defs": { 5 + "main": { 6 + "type": "procedure", 7 + "description": "The inverse of registerPush - inform a specified service that push notifications should no longer be sent to the given token for the requesting account. Requires auth.", 8 + "input": { 9 + "encoding": "application/json", 10 + "schema": { 11 + "type": "object", 12 + "required": ["serviceDid", "token", "platform", "appId"], 13 + "properties": { 14 + "serviceDid": { "type": "string", "format": "did" }, 15 + "token": { "type": "string" }, 16 + "platform": { 17 + "type": "string", 18 + "knownValues": ["ios", "android", "web"] 19 + }, 20 + "appId": { "type": "string" } 21 + } 22 + } 23 + } 24 + } 25 + } 26 + }
+88
lexdocs/bluesky/app/bsky/unspecced/checkHandleAvailability.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "app.bsky.unspecced.checkHandleAvailability", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "description": "Checks whether the provided handle is available. If the handle is not available, available suggestions will be returned. Optional inputs will be used to generate suggestions.", 8 + "parameters": { 9 + "type": "params", 10 + "required": ["handle"], 11 + "properties": { 12 + "handle": { 13 + "type": "string", 14 + "format": "handle", 15 + "description": "Tentative handle. Will be checked for availability or used to build handle suggestions." 16 + }, 17 + "email": { 18 + "type": "string", 19 + "description": "User-provided email. Might be used to build handle suggestions." 20 + }, 21 + "birthDate": { 22 + "type": "string", 23 + "format": "datetime", 24 + "description": "User-provided birth date. Might be used to build handle suggestions." 25 + } 26 + } 27 + }, 28 + "output": { 29 + "encoding": "application/json", 30 + "schema": { 31 + "type": "object", 32 + "required": ["handle", "result"], 33 + "properties": { 34 + "handle": { 35 + "type": "string", 36 + "format": "handle", 37 + "description": "Echo of the input handle." 38 + }, 39 + "result": { 40 + "type": "union", 41 + "refs": ["#resultAvailable", "#resultUnavailable"] 42 + } 43 + } 44 + } 45 + }, 46 + "errors": [ 47 + { 48 + "name": "InvalidEmail", 49 + "description": "An invalid email was provided." 50 + } 51 + ] 52 + }, 53 + "resultAvailable": { 54 + "type": "object", 55 + "description": "Indicates the provided handle is available.", 56 + "properties": {} 57 + }, 58 + "resultUnavailable": { 59 + "type": "object", 60 + "description": "Indicates the provided handle is unavailable and gives suggestions of available handles.", 61 + "required": ["suggestions"], 62 + "properties": { 63 + "suggestions": { 64 + "type": "array", 65 + "description": "List of suggested handles based on the provided inputs.", 66 + "items": { 67 + "type": "ref", 68 + "ref": "#suggestion" 69 + } 70 + } 71 + } 72 + }, 73 + "suggestion": { 74 + "type": "object", 75 + "required": ["handle", "method"], 76 + "properties": { 77 + "handle": { 78 + "type": "string", 79 + "format": "handle" 80 + }, 81 + "method": { 82 + "type": "string", 83 + "description": "Method used to build this suggestion. Should be considered opaque to clients. Can be used for metrics." 84 + } 85 + } 86 + } 87 + } 88 + }
+2 -1
lexdocs/bluesky/app/bsky/unspecced/initAgeAssurance.json
··· 32 32 "type": "ref", 33 33 "ref": "app.bsky.unspecced.defs#ageAssuranceState" 34 34 } 35 - } 35 + }, 36 + "errors": [{ "name": "InvalidEmail" }, { "name": "DidTooLong" }, { "name": "InvalidInitiation" }] 36 37 } 37 38 } 38 39 }
+8
lexdocs/bluesky/tools/ozone/moderation/emitEvent.json
··· 55 55 "modTool": { 56 56 "type": "ref", 57 57 "ref": "tools.ozone.moderation.defs#modTool" 58 + }, 59 + "externalId": { 60 + "type": "string", 61 + "description": "An optional external ID for the event, used to deduplicate events from external systems. Fails when an event of same type with the same external ID exists for the same subject." 58 62 } 59 63 } 60 64 } ··· 69 73 "errors": [ 70 74 { 71 75 "name": "SubjectHasAction" 76 + }, 77 + { 78 + "name": "DuplicateExternalId", 79 + "description": "An event with the same external ID already exists for the subject." 72 80 } 73 81 ] 74 82 }
+2
packages/definitions/bluesky/lib/lexicons/index.ts
··· 81 81 export * as AppBskyNotificationPutPreferences from './types/app/bsky/notification/putPreferences.js'; 82 82 export * as AppBskyNotificationPutPreferencesV2 from './types/app/bsky/notification/putPreferencesV2.js'; 83 83 export * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/registerPush.js'; 84 + export * as AppBskyNotificationUnregisterPush from './types/app/bsky/notification/unregisterPush.js'; 84 85 export * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen.js'; 85 86 export * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet.js'; 87 + export * as AppBskyUnspeccedCheckHandleAvailability from './types/app/bsky/unspecced/checkHandleAvailability.js'; 86 88 export * as AppBskyUnspeccedDefs from './types/app/bsky/unspecced/defs.js'; 87 89 export * as AppBskyUnspeccedGetAgeAssuranceState from './types/app/bsky/unspecced/getAgeAssuranceState.js'; 88 90 export * as AppBskyUnspeccedGetConfig from './types/app/bsky/unspecced/getConfig.js';
+32
packages/definitions/bluesky/lib/lexicons/types/app/bsky/notification/unregisterPush.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import * as v from '@atcute/lexicons/validations'; 3 + import type {} from '@atcute/lexicons/ambient'; 4 + 5 + const _mainSchema = /*#__PURE__*/ v.procedure('app.bsky.notification.unregisterPush', { 6 + params: null, 7 + input: { 8 + type: 'lex', 9 + schema: /*#__PURE__*/ v.object({ 10 + appId: /*#__PURE__*/ v.string(), 11 + platform: /*#__PURE__*/ v.string<'android' | 'ios' | 'web' | (string & {})>(), 12 + serviceDid: /*#__PURE__*/ v.didString(), 13 + token: /*#__PURE__*/ v.string(), 14 + }), 15 + }, 16 + output: null, 17 + }); 18 + 19 + type main$schematype = typeof _mainSchema; 20 + 21 + export interface mainSchema extends main$schematype {} 22 + 23 + export const mainSchema = _mainSchema as mainSchema; 24 + 25 + export interface $params {} 26 + export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {} 27 + 28 + declare module '@atcute/lexicons/ambient' { 29 + interface XRPCProcedures { 30 + 'app.bsky.notification.unregisterPush': mainSchema; 31 + } 32 + }
+68
packages/definitions/bluesky/lib/lexicons/types/app/bsky/unspecced/checkHandleAvailability.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import * as v from '@atcute/lexicons/validations'; 3 + import type {} from '@atcute/lexicons/ambient'; 4 + 5 + const _mainSchema = /*#__PURE__*/ v.query('app.bsky.unspecced.checkHandleAvailability', { 6 + params: /*#__PURE__*/ v.object({ 7 + birthDate: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 8 + email: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 9 + handle: /*#__PURE__*/ v.handleString(), 10 + }), 11 + output: { 12 + type: 'lex', 13 + schema: /*#__PURE__*/ v.object({ 14 + handle: /*#__PURE__*/ v.handleString(), 15 + get result() { 16 + return /*#__PURE__*/ v.variant([resultAvailableSchema, resultUnavailableSchema]); 17 + }, 18 + }), 19 + }, 20 + }); 21 + const _resultAvailableSchema = /*#__PURE__*/ v.object({ 22 + $type: /*#__PURE__*/ v.optional( 23 + /*#__PURE__*/ v.literal('app.bsky.unspecced.checkHandleAvailability#resultAvailable'), 24 + ), 25 + }); 26 + const _resultUnavailableSchema = /*#__PURE__*/ v.object({ 27 + $type: /*#__PURE__*/ v.optional( 28 + /*#__PURE__*/ v.literal('app.bsky.unspecced.checkHandleAvailability#resultUnavailable'), 29 + ), 30 + get suggestions() { 31 + return /*#__PURE__*/ v.array(suggestionSchema); 32 + }, 33 + }); 34 + const _suggestionSchema = /*#__PURE__*/ v.object({ 35 + $type: /*#__PURE__*/ v.optional( 36 + /*#__PURE__*/ v.literal('app.bsky.unspecced.checkHandleAvailability#suggestion'), 37 + ), 38 + handle: /*#__PURE__*/ v.handleString(), 39 + method: /*#__PURE__*/ v.string(), 40 + }); 41 + 42 + type main$schematype = typeof _mainSchema; 43 + type resultAvailable$schematype = typeof _resultAvailableSchema; 44 + type resultUnavailable$schematype = typeof _resultUnavailableSchema; 45 + type suggestion$schematype = typeof _suggestionSchema; 46 + 47 + export interface mainSchema extends main$schematype {} 48 + export interface resultAvailableSchema extends resultAvailable$schematype {} 49 + export interface resultUnavailableSchema extends resultUnavailable$schematype {} 50 + export interface suggestionSchema extends suggestion$schematype {} 51 + 52 + export const mainSchema = _mainSchema as mainSchema; 53 + export const resultAvailableSchema = _resultAvailableSchema as resultAvailableSchema; 54 + export const resultUnavailableSchema = _resultUnavailableSchema as resultUnavailableSchema; 55 + export const suggestionSchema = _suggestionSchema as suggestionSchema; 56 + 57 + export interface ResultAvailable extends v.InferInput<typeof resultAvailableSchema> {} 58 + export interface ResultUnavailable extends v.InferInput<typeof resultUnavailableSchema> {} 59 + export interface Suggestion extends v.InferInput<typeof suggestionSchema> {} 60 + 61 + export interface $params extends v.InferInput<mainSchema['params']> {} 62 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 63 + 64 + declare module '@atcute/lexicons/ambient' { 65 + interface XRPCQueries { 66 + 'app.bsky.unspecced.checkHandleAvailability': mainSchema; 67 + } 68 + }
+1
packages/definitions/ozone/lib/lexicons/types/tools/ozone/moderation/emitEvent.ts
··· 36 36 ToolsOzoneModerationDefs.recordEventSchema, 37 37 ]); 38 38 }, 39 + externalId: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 39 40 get modTool() { 40 41 return /*#__PURE__*/ v.optional(ToolsOzoneModerationDefs.modToolSchema); 41 42 },