···99 "properties": {
1010 "video": {
1111 "type": "blob",
1212+ "description": "The mp4 video file. May be up to 100mb, formerly limited to 50mb.",
1213 "accept": ["video/mp4"],
1313- "maxSize": 50000000
1414+ "maxSize": 100000000
1415 },
1516 "captions": {
1617 "type": "array",
+21
lexicons/app/bsky/labeler/defs.json
···3535 "labels": {
3636 "type": "array",
3737 "items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
3838+ },
3939+ "reasonTypes": {
4040+ "description": "The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed.",
4141+ "type": "array",
4242+ "items": {
4343+ "type": "ref",
4444+ "ref": "com.atproto.moderation.defs#reasonType"
4545+ }
4646+ },
4747+ "subjectTypes": {
4848+ "description": "The set of subject types (account, record, etc) this service accepts reports on.",
4949+ "type": "array",
5050+ "items": {
5151+ "type": "ref",
5252+ "ref": "com.atproto.moderation.defs#subjectType"
5353+ }
5454+ },
5555+ "subjectCollections": {
5656+ "type": "array",
5757+ "description": "Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type.",
5858+ "items": { "type": "string", "format": "nsid" }
3859 }
3960 }
4061 },
+22-1
lexicons/app/bsky/labeler/service.json
···1818 "type": "union",
1919 "refs": ["com.atproto.label.defs#selfLabels"]
2020 },
2121- "createdAt": { "type": "string", "format": "datetime" }
2121+ "createdAt": { "type": "string", "format": "datetime" },
2222+ "reasonTypes": {
2323+ "description": "The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed.",
2424+ "type": "array",
2525+ "items": {
2626+ "type": "ref",
2727+ "ref": "com.atproto.moderation.defs#reasonType"
2828+ }
2929+ },
3030+ "subjectTypes": {
3131+ "description": "The set of subject types (account, record, etc) this service accepts reports on.",
3232+ "type": "array",
3333+ "items": {
3434+ "type": "ref",
3535+ "ref": "com.atproto.moderation.defs#subjectType"
3636+ }
3737+ },
3838+ "subjectCollections": {
3939+ "type": "array",
4040+ "description": "Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type.",
4141+ "items": { "type": "string", "format": "nsid" }
4242+ }
2243 }
2344 }
2445 }
+22
lexicons/com/atproto/identity/defs.json
···11+{
22+ "lexicon": 1,
33+ "id": "com.atproto.identity.defs",
44+ "defs": {
55+ "identityInfo": {
66+ "type": "object",
77+ "required": ["did", "handle", "didDoc"],
88+ "properties": {
99+ "did": { "type": "string", "format": "did" },
1010+ "handle": {
1111+ "type": "string",
1212+ "format": "handle",
1313+ "description": "The validated handle of the account; or 'handle.invalid' if the handle did not bi-directionally match the DID document."
1414+ },
1515+ "didDoc": {
1616+ "type": "unknown",
1717+ "description": "The complete DID document for the identity."
1818+ }
1919+ }
2020+ }
2121+ }
2222+}
···11+{
22+ "lexicon": 1,
33+ "id": "com.atproto.identity.refreshIdentity",
44+ "defs": {
55+ "main": {
66+ "type": "procedure",
77+ "description": "Request that the server re-resolve an identity (DID and handle). The server may ignore this request, or require authentication, depending on the role, implementation, and policy of the server.",
88+ "input": {
99+ "encoding": "application/json",
1010+ "schema": {
1111+ "type": "object",
1212+ "required": ["identifier"],
1313+ "properties": {
1414+ "identifier": {
1515+ "type": "string",
1616+ "format": "at-identifier"
1717+ }
1818+ }
1919+ }
2020+ },
2121+ "output": {
2222+ "encoding": "application/json",
2323+ "schema": {
2424+ "type": "ref",
2525+ "ref": "com.atproto.identity.defs#identityInfo"
2626+ }
2727+ },
2828+ "errors": [
2929+ {
3030+ "name": "HandleNotFound",
3131+ "description": "The resolution process confirmed that the handle does not resolve to any DID."
3232+ },
3333+ {
3434+ "name": "DidNotFound",
3535+ "description": "The DID resolution process confirmed that there is no current DID."
3636+ },
3737+ {
3838+ "name": "DidDeactivated",
3939+ "description": "The DID previously existed, but has been deactivated."
4040+ }
4141+ ]
4242+ }
4343+ }
4444+}
+44
lexicons/com/atproto/identity/resolveDid.json
···11+{
22+ "lexicon": 1,
33+ "id": "com.atproto.identity.resolveDid",
44+ "defs": {
55+ "main": {
66+ "type": "query",
77+ "description": "Resolves DID to DID document. Does not bi-directionally verify handle.",
88+ "parameters": {
99+ "type": "params",
1010+ "required": ["did"],
1111+ "properties": {
1212+ "did": {
1313+ "type": "string",
1414+ "format": "did",
1515+ "description": "DID to resolve."
1616+ }
1717+ }
1818+ },
1919+ "output": {
2020+ "encoding": "application/json",
2121+ "schema": {
2222+ "type": "object",
2323+ "required": ["didDoc"],
2424+ "properties": {
2525+ "didDoc": {
2626+ "type": "unknown",
2727+ "description": "The complete DID document for the identity."
2828+ }
2929+ }
3030+ }
3131+ },
3232+ "errors": [
3333+ {
3434+ "name": "DidNotFound",
3535+ "description": "The DID resolution process confirmed that there is no current DID."
3636+ },
3737+ {
3838+ "name": "DidDeactivated",
3939+ "description": "The DID previously existed, but has been deactivated."
4040+ }
4141+ ]
4242+ }
4343+ }
4444+}
+8-2
lexicons/com/atproto/identity/resolveHandle.json
···44 "defs": {
55 "main": {
66 "type": "query",
77- "description": "Resolves a handle (domain name) to a DID.",
77+ "description": "Resolves an atproto handle (hostname) to a DID. Does not necessarily bi-directionally verify against the the DID document.",
88 "parameters": {
99 "type": "params",
1010 "required": ["handle"],
···2525 "did": { "type": "string", "format": "did" }
2626 }
2727 }
2828- }
2828+ },
2929+ "errors": [
3030+ {
3131+ "name": "HandleNotFound",
3232+ "description": "The resolution process confirmed that the handle does not resolve to any DID."
3333+ }
3434+ ]
2935 }
3036 }
3137}
···11+{
22+ "lexicon": 1,
33+ "id": "com.atproto.identity.resolveIdentity",
44+ "defs": {
55+ "main": {
66+ "type": "query",
77+ "description": "Resolves an identity (DID or Handle) to a full identity (DID document and verified handle).",
88+ "parameters": {
99+ "type": "params",
1010+ "required": ["identifier"],
1111+ "properties": {
1212+ "identifier": {
1313+ "type": "string",
1414+ "format": "at-identifier",
1515+ "description": "Handle or DID to resolve."
1616+ }
1717+ }
1818+ },
1919+ "output": {
2020+ "encoding": "application/json",
2121+ "schema": {
2222+ "type": "ref",
2323+ "ref": "com.atproto.identity.defs#identityInfo"
2424+ }
2525+ },
2626+ "errors": [
2727+ {
2828+ "name": "HandleNotFound",
2929+ "description": "The resolution process confirmed that the handle does not resolve to any DID."
3030+ },
3131+ {
3232+ "name": "DidNotFound",
3333+ "description": "The DID resolution process confirmed that there is no current DID."
3434+ },
3535+ {
3636+ "name": "DidDeactivated",
3737+ "description": "The DID previously existed, but has been deactivated."
3838+ }
3939+ ]
4040+ }
4141+ }
4242+}
+5
lexicons/com/atproto/moderation/defs.json
···4141 "reasonAppeal": {
4242 "type": "token",
4343 "description": "Appeal: appeal a previously taken moderation action"
4444+ },
4545+ "subjectType": {
4646+ "type": "string",
4747+ "description": "Tag describing a type of subject that might be reported.",
4848+ "knownValues": ["account", "record", "chat"]
4449 }
4550 }
4651}
-8
lexicons/com/atproto/repo/listRecords.json
···2727 "description": "The number of records to return."
2828 },
2929 "cursor": { "type": "string" },
3030- "rkeyStart": {
3131- "type": "string",
3232- "description": "DEPRECATED: The lowest sort-ordered rkey to start from (exclusive)"
3333- },
3434- "rkeyEnd": {
3535- "type": "string",
3636- "description": "DEPRECATED: The highest sort-ordered rkey to stop at (exclusive)"
3737- },
3830 "reverse": {
3931 "type": "boolean",
4032 "description": "Flag to reverse the order of the returned records."
-5
lexicons/com/atproto/sync/getRecord.json
···1919 "type": "string",
2020 "description": "Record Key",
2121 "format": "record-key"
2222- },
2323- "commit": {
2424- "type": "string",
2525- "format": "cid",
2626- "description": "DEPRECATED: referenced a repo commit by CID, and retrieved record as of that commit"
2722 }
2823 }
2924 },
+1-1
lexicons/com/atproto/sync/notifyOfUpdate.json
···44 "defs": {
55 "main": {
66 "type": "procedure",
77- "description": "Notify a crawling service of a recent update, and that crawling should resume. Intended use is after a gap between repo stream events caused the crawling service to disconnect. Does not require auth; implemented by Relay.",
77+ "description": "Notify a crawling service of a recent update, and that crawling should resume. Intended use is after a gap between repo stream events caused the crawling service to disconnect. Does not require auth; implemented by Relay. DEPRECATED: just use com.atproto.sync.requestCrawl",
88 "input": {
99 "encoding": "application/json",
1010 "schema": {
···277277 }
278278}
279279280280+export declare namespace ComAtprotoIdentityDefs {
281281+ interface IdentityInfo {
282282+ [Brand.Type]?: 'com.atproto.identity.defs#identityInfo';
283283+ did: At.DID;
284284+ /** The complete DID document for the identity. */
285285+ didDoc: unknown;
286286+ /** The validated handle of the account; or 'handle.invalid' if the handle did not bi-directionally match the DID document. */
287287+ handle: At.Handle;
288288+ }
289289+}
290290+280291/** Describe the credentials that should be included in the DID doc of an account that is migrating to this service. */
281292export declare namespace ComAtprotoIdentityGetRecommendedDidCredentials {
282293 interface Params {}
···290301 }
291302}
292303304304+/** Request that the server re-resolve an identity (DID and handle). The server may ignore this request, or require authentication, depending on the role, implementation, and policy of the server. */
305305+export declare namespace ComAtprotoIdentityRefreshIdentity {
306306+ interface Params {}
307307+ interface Input {
308308+ identifier: string;
309309+ }
310310+ type Output = ComAtprotoIdentityDefs.IdentityInfo;
311311+ interface Errors {
312312+ HandleNotFound: {};
313313+ DidNotFound: {};
314314+ DidDeactivated: {};
315315+ }
316316+}
317317+293318/** Request an email with a code to in order to request a signed PLC operation. Requires Auth. */
294319export declare namespace ComAtprotoIdentityRequestPlcOperationSignature {
295320 interface Params {}
···297322 type Output = undefined;
298323}
299324300300-/** Resolves a handle (domain name) to a DID. */
325325+/** Resolves DID to DID document. Does not bi-directionally verify handle. */
326326+export declare namespace ComAtprotoIdentityResolveDid {
327327+ interface Params {
328328+ /** DID to resolve. */
329329+ did: At.DID;
330330+ }
331331+ type Input = undefined;
332332+ interface Output {
333333+ /** The complete DID document for the identity. */
334334+ didDoc: unknown;
335335+ }
336336+ interface Errors {
337337+ DidNotFound: {};
338338+ DidDeactivated: {};
339339+ }
340340+}
341341+342342+/** Resolves an atproto handle (hostname) to a DID. Does not necessarily bi-directionally verify against the the DID document. */
301343export declare namespace ComAtprotoIdentityResolveHandle {
302344 interface Params {
303345 /** The handle to resolve. */
···306348 type Input = undefined;
307349 interface Output {
308350 did: At.DID;
351351+ }
352352+ interface Errors {
353353+ HandleNotFound: {};
354354+ }
355355+}
356356+357357+/** Resolves an identity (DID or Handle) to a full identity (DID document and verified handle). */
358358+export declare namespace ComAtprotoIdentityResolveIdentity {
359359+ interface Params {
360360+ /** Handle or DID to resolve. */
361361+ identifier: string;
362362+ }
363363+ type Input = undefined;
364364+ type Output = ComAtprotoIdentityDefs.IdentityInfo;
365365+ interface Errors {
366366+ HandleNotFound: {};
367367+ DidNotFound: {};
368368+ DidDeactivated: {};
309369 }
310370}
311371···530590 | 'com.atproto.moderation.defs#reasonViolation'
531591 | (string & {});
532592 type ReasonViolation = 'com.atproto.moderation.defs#reasonViolation';
593593+ /** Tag describing a type of subject that might be reported. */
594594+ type SubjectType = 'account' | 'chat' | 'record' | (string & {});
533595}
534596535597/** Apply a batch transaction of repository creates, updates, and deletes. Requires auth, implemented by PDS. */
···737799 limit?: number;
738800 /** Flag to reverse the order of the returned records. */
739801 reverse?: boolean;
740740- /**
741741- * DEPRECATED: The highest sort-ordered rkey to stop at (exclusive)
742742- * @deprecated
743743- */
744744- rkeyEnd?: string;
745745- /**
746746- * DEPRECATED: The lowest sort-ordered rkey to start from (exclusive)
747747- * @deprecated
748748- */
749749- rkeyStart?: string;
750802 }
751803 type Input = undefined;
752804 interface Output {
···13221374 did: At.DID;
13231375 /** Record Key */
13241376 rkey: string;
13251325- /**
13261326- * DEPRECATED: referenced a repo commit by CID, and retrieved record as of that commit
13271327- * @deprecated
13281328- */
13291329- commit?: At.CID;
13301377 }
13311378 type Input = undefined;
13321379 type Output = Uint8Array;
···14711518 }
14721519}
1473152014741474-/** Notify a crawling service of a recent update, and that crawling should resume. Intended use is after a gap between repo stream events caused the crawling service to disconnect. Does not require auth; implemented by Relay. */
15211521+/** Notify a crawling service of a recent update, and that crawling should resume. Intended use is after a gap between repo stream events caused the crawling service to disconnect. Does not require auth; implemented by Relay. DEPRECATED: just use com.atproto.sync.requestCrawl */
14751522export declare namespace ComAtprotoSyncNotifyOfUpdate {
14761523 interface Params {}
14771524 interface Input {
···15501597 /** The root CID of the MST tree for the previous commit from this repo (indicated by the 'since' revision field in this message). Corresponds to the 'data' field in the repo commit object. NOTE: this field is effectively required for the 'inductive' version of firehose. */
15511598 prevData?: At.CIDLink;
15521599 }
15531553- /**
15541554- * DEPRECATED -- Use #identity event instead
15551555- * @deprecated
15561556- */
15571557- interface Handle {
15581558- [Brand.Type]?: 'com.atproto.sync.subscribeRepos#handle';
15591559- did: At.DID;
15601560- handle: At.Handle;
15611561- seq: number;
15621562- time: string;
15631563- }
15641600 /** Represents a change to an account's identity. Could be an updated handle, signing key, or pds hosting endpoint. Serves as a prod to all downstream services to refresh their identity cache. */
15651601 interface Identity {
15661602 [Brand.Type]?: 'com.atproto.sync.subscribeRepos#identity';
···15751611 name: 'OutdatedCursor' | (string & {});
15761612 message?: string;
15771613 }
15781578- /**
15791579- * DEPRECATED -- Use #account event instead
15801580- * @deprecated
15811581- */
15821582- interface Migrate {
15831583- [Brand.Type]?: 'com.atproto.sync.subscribeRepos#migrate';
15841584- did: At.DID;
15851585- migrateTo: string | null;
15861586- seq: number;
15871587- time: string;
15881588- }
15891614 /** A repo operation, ie a mutation of a single record. */
15901615 interface RepoOp {
15911616 [Brand.Type]?: 'com.atproto.sync.subscribeRepos#repoOp';
···16101635 /** Timestamp of when this message was originally broadcast. */
16111636 time: string;
16121637 }
16131613- /**
16141614- * DEPRECATED -- Use #account event instead
16151615- * @deprecated
16161616- */
16171617- interface Tombstone {
16181618- [Brand.Type]?: 'com.atproto.sync.subscribeRepos#tombstone';
16191619- did: At.DID;
16201620- seq: number;
16211621- time: string;
16221622- }
16231638}
1624163916251640/** Add a handle to the set of reserved handles. */
···16991714 'com.atproto.identity.getRecommendedDidCredentials': {
17001715 output: ComAtprotoIdentityGetRecommendedDidCredentials.Output;
17011716 };
17171717+ 'com.atproto.identity.resolveDid': {
17181718+ params: ComAtprotoIdentityResolveDid.Params;
17191719+ output: ComAtprotoIdentityResolveDid.Output;
17201720+ };
17021721 'com.atproto.identity.resolveHandle': {
17031722 params: ComAtprotoIdentityResolveHandle.Params;
17041723 output: ComAtprotoIdentityResolveHandle.Output;
17241724+ };
17251725+ 'com.atproto.identity.resolveIdentity': {
17261726+ params: ComAtprotoIdentityResolveIdentity.Params;
17271727+ output: ComAtprotoIdentityResolveIdentity.Output;
17051728 };
17061729 'com.atproto.label.queryLabels': {
17071730 params: ComAtprotoLabelQueryLabels.Params;
···18251848 'com.atproto.admin.updateSubjectStatus': {
18261849 input: ComAtprotoAdminUpdateSubjectStatus.Input;
18271850 output: ComAtprotoAdminUpdateSubjectStatus.Output;
18511851+ };
18521852+ 'com.atproto.identity.refreshIdentity': {
18531853+ input: ComAtprotoIdentityRefreshIdentity.Input;
18541854+ output: ComAtprotoIdentityRefreshIdentity.Output;
18281855 };
18291856 'com.atproto.identity.requestPlcOperationSignature': {};
18301857 'com.atproto.identity.signPlcOperation': {
+13
packages/definitions/bluesky/lib/lexicons.ts
···567567 namespace AppBskyEmbedVideo {
568568 interface Main {
569569 [Brand.Type]?: 'app.bsky.embed.video';
570570+ /** The mp4 video file. May be up to 100mb, formerly limited to 50mb. */
570571 video: At.Blob;
571572 /**
572573 * Alt text description of the video, for accessibility. \
···19331934 labels?: ComAtprotoLabelDefs.Label[];
19341935 /** Minimum: 0 */
19351936 likeCount?: number;
19371937+ /** The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed. */
19381938+ reasonTypes?: ComAtprotoModerationDefs.ReasonType[];
19391939+ /** Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type. */
19401940+ subjectCollections?: string[];
19411941+ /** The set of subject types (account, record, etc) this service accepts reports on. */
19421942+ subjectTypes?: ComAtprotoModerationDefs.SubjectType[];
19361943 viewer?: LabelerViewerState;
19371944 }
19381945 interface LabelerViewerState {
···19611968 createdAt: string;
19621969 policies: AppBskyLabelerDefs.LabelerPolicies;
19631970 labels?: Brand.Union<ComAtprotoLabelDefs.SelfLabels>;
19711971+ /** The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed. */
19721972+ reasonTypes?: ComAtprotoModerationDefs.ReasonType[];
19731973+ /** Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type. */
19741974+ subjectCollections?: string[];
19751975+ /** The set of subject types (account, record, etc) this service accepts reports on. */
19761976+ subjectTypes?: ComAtprotoModerationDefs.SubjectType[];
19641977 }
19651978 }
19661979