Skip to content

Commit 006eaca

Browse files
chore: Update lexicons (#72)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 2a303b8 commit 006eaca

File tree

1 file changed

+128
-38
lines changed

1 file changed

+128
-38
lines changed

packages/lexicons/src/lib/lexicons.ts

+128-38
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
* @module
66
* Contains type declarations for Bluesky lexicons
77
* @generated
8-
* Generated on: 2025-02-19T09:17:40.945Z
8+
* Generated on: 2025-02-23T09:41:54.872Z
99
* Version: main
10-
* Source: https://github.com/bluesky-social/atproto/tree/7449f8607c1be948a0b55611c21075757c3d7261/lexicons
10+
* Source: https://github.com/bluesky-social/atproto/tree/6e382f67aa73532efadfea80ff96a27b526cb178/lexicons
1111
*/
1212

1313
/** Base type with optional type field */
@@ -57,6 +57,12 @@ export declare namespace At {
5757
/** URI string */
5858
type Uri = string;
5959

60+
/** TID string */
61+
type TID = string;
62+
63+
/** RKEY string */
64+
type RKEY = string;
65+
6066
/** Object containing a CID string */
6167
interface CIDLink {
6268
$link: CID;
@@ -2383,6 +2389,17 @@ export declare namespace ChatBskyActorExportAccountData {
23832389
type Output = Uint8Array;
23842390
}
23852391

2392+
export declare namespace ChatBskyConvoAcceptConvo {
2393+
interface Params extends TypedBase {}
2394+
interface Input extends TypedBase {
2395+
convoId: string;
2396+
}
2397+
interface Output extends TypedBase {
2398+
/** Rev when the convo was accepted. If not present, the convo was already accepted. */
2399+
rev?: string;
2400+
}
2401+
}
2402+
23862403
export declare namespace ChatBskyConvoDefs {
23872404
interface ConvoView extends TypedBase {
23882405
id: string;
@@ -2391,14 +2408,18 @@ export declare namespace ChatBskyConvoDefs {
23912408
rev: string;
23922409
unreadCount: number;
23932410
lastMessage?: TypeUnion<DeletedMessageView | MessageView>;
2394-
opened?: boolean;
2411+
status?: "accepted" | "request" | (string & {});
23952412
}
23962413
interface DeletedMessageView extends TypedBase {
23972414
id: string;
23982415
rev: string;
23992416
sender: MessageViewSender;
24002417
sentAt: string;
24012418
}
2419+
interface LogAcceptConvo extends TypedBase {
2420+
convoId: string;
2421+
rev: string;
2422+
}
24022423
interface LogBeginConvo extends TypedBase {
24032424
convoId: string;
24042425
rev: string;
@@ -2417,6 +2438,19 @@ export declare namespace ChatBskyConvoDefs {
24172438
convoId: string;
24182439
rev: string;
24192440
}
2441+
interface LogMuteConvo extends TypedBase {
2442+
convoId: string;
2443+
rev: string;
2444+
}
2445+
interface LogReadMessage extends TypedBase {
2446+
convoId: string;
2447+
message: TypeUnion<DeletedMessageView | MessageView>;
2448+
rev: string;
2449+
}
2450+
interface LogUnmuteConvo extends TypedBase {
2451+
convoId: string;
2452+
rev: string;
2453+
}
24202454
interface MessageInput extends TypedBase {
24212455
/**
24222456
* Maximum string length: 10000
@@ -2470,6 +2504,22 @@ export declare namespace ChatBskyConvoGetConvo {
24702504
}
24712505
}
24722506

2507+
/** Get whether the requester and the other members can chat. If an existing convo is found for these members, it is returned. */
2508+
export declare namespace ChatBskyConvoGetConvoAvailability {
2509+
interface Params extends TypedBase {
2510+
/**
2511+
* Minimum array length: 1
2512+
* Maximum array length: 10
2513+
*/
2514+
members: At.DID[];
2515+
}
2516+
type Input = undefined;
2517+
interface Output extends TypedBase {
2518+
canChat: boolean;
2519+
convo?: ChatBskyConvoDefs.ConvoView;
2520+
}
2521+
}
2522+
24732523
export declare namespace ChatBskyConvoGetConvoForMembers {
24742524
interface Params extends TypedBase {
24752525
/**
@@ -2491,6 +2541,7 @@ export declare namespace ChatBskyConvoGetLog {
24912541
type Input = undefined;
24922542
interface Output extends TypedBase {
24932543
logs: TypeUnion<
2544+
| ChatBskyConvoDefs.LogAcceptConvo
24942545
| ChatBskyConvoDefs.LogBeginConvo
24952546
| ChatBskyConvoDefs.LogCreateMessage
24962547
| ChatBskyConvoDefs.LogDeleteMessage
@@ -2540,6 +2591,8 @@ export declare namespace ChatBskyConvoListConvos {
25402591
* \@default 50
25412592
*/
25422593
limit?: number;
2594+
readState?: "unread" | (string & {});
2595+
status?: "accepted" | "request" | (string & {});
25432596
}
25442597
type Input = undefined;
25452598
interface Output extends TypedBase {
@@ -3153,8 +3206,8 @@ export declare namespace ComAtprotoRepoApplyWrites {
31533206
interface Create extends TypedBase {
31543207
collection: string;
31553208
value: unknown;
3156-
/** Maximum string length: 512 */
3157-
rkey?: string;
3209+
/** NOTE: maxLength is redundant with record-key format. Keeping it temporarily to ensure backwards compatibility. */
3210+
rkey?: At.RKEY;
31583211
}
31593212
interface CreateResult extends TypedBase {
31603213
cid: At.CID;
@@ -3164,13 +3217,13 @@ export declare namespace ComAtprotoRepoApplyWrites {
31643217
/** Operation which deletes an existing record. */
31653218
interface Delete extends TypedBase {
31663219
collection: string;
3167-
rkey: string;
3220+
rkey: At.RKEY;
31683221
}
31693222
interface DeleteResult extends TypedBase {}
31703223
/** Operation which updates an existing record. */
31713224
interface Update extends TypedBase {
31723225
collection: string;
3173-
rkey: string;
3226+
rkey: At.RKEY;
31743227
value: unknown;
31753228
}
31763229
interface UpdateResult extends TypedBase {
@@ -3190,11 +3243,8 @@ export declare namespace ComAtprotoRepoCreateRecord {
31903243
record: unknown;
31913244
/** The handle or DID of the repo (aka, current account). */
31923245
repo: string;
3193-
/**
3194-
* The Record Key.
3195-
* Maximum string length: 512
3196-
*/
3197-
rkey?: string;
3246+
/** The Record Key. */
3247+
rkey?: At.RKEY;
31983248
/** Compare and swap with the previous commit by CID. */
31993249
swapCommit?: At.CID;
32003250
/** Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons. */
@@ -3214,7 +3264,7 @@ export declare namespace ComAtprotoRepoCreateRecord {
32143264
export declare namespace ComAtprotoRepoDefs {
32153265
interface CommitMeta extends TypedBase {
32163266
cid: At.CID;
3217-
rev: string;
3267+
rev: At.TID;
32183268
}
32193269
}
32203270

@@ -3227,7 +3277,7 @@ export declare namespace ComAtprotoRepoDeleteRecord {
32273277
/** The handle or DID of the repo (aka, current account). */
32283278
repo: string;
32293279
/** The Record Key. */
3230-
rkey: string;
3280+
rkey: At.RKEY;
32313281
/** Compare and swap with the previous commit by CID. */
32323282
swapCommit?: At.CID;
32333283
/** Compare and swap with the previous record by CID. */
@@ -3268,7 +3318,7 @@ export declare namespace ComAtprotoRepoGetRecord {
32683318
/** The handle or DID of the repo. */
32693319
repo: string;
32703320
/** The Record Key. */
3271-
rkey: string;
3321+
rkey: At.RKEY;
32723322
/** The CID of the version of the record. If not specified, then return the most recent version. */
32733323
cid?: At.CID;
32743324
}
@@ -3362,11 +3412,8 @@ export declare namespace ComAtprotoRepoPutRecord {
33623412
record: unknown;
33633413
/** The handle or DID of the repo (aka, current account). */
33643414
repo: string;
3365-
/**
3366-
* The Record Key.
3367-
* Maximum string length: 512
3368-
*/
3369-
rkey: string;
3415+
/** The Record Key. */
3416+
rkey: At.RKEY;
33703417
/** Compare and swap with the previous commit by CID. */
33713418
swapCommit?: At.CID;
33723419
/** Compare and swap with the previous record by CID. WARNING: nullable and optional field; may cause problems with golang implementation */
@@ -3890,7 +3937,7 @@ export declare namespace ComAtprotoSyncGetLatestCommit {
38903937
type Input = undefined;
38913938
interface Output extends TypedBase {
38923939
cid: At.CID;
3893-
rev: string;
3940+
rev: At.TID;
38943941
}
38953942
interface Errors extends TypedBase {
38963943
RepoNotFound: {};
@@ -3907,7 +3954,7 @@ export declare namespace ComAtprotoSyncGetRecord {
39073954
/** The DID of the repo. */
39083955
did: At.DID;
39093956
/** Record Key */
3910-
rkey: string;
3957+
rkey: At.RKEY;
39113958
/**
39123959
* DEPRECATED: referenced a repo commit by CID, and retrieved record as of that commit
39133960
* \@deprecated
@@ -3931,7 +3978,7 @@ export declare namespace ComAtprotoSyncGetRepo {
39313978
/** The DID of the repo. */
39323979
did: At.DID;
39333980
/** The revision ('rev') of the repo to create a diff from. */
3934-
since?: string;
3981+
since?: At.TID;
39353982
}
39363983
type Input = undefined;
39373984
type Output = Uint8Array;
@@ -3954,9 +4001,16 @@ export declare namespace ComAtprotoSyncGetRepoStatus {
39544001
active: boolean;
39554002
did: At.DID;
39564003
/** Optional field, the current rev of the repo, if active=true */
3957-
rev?: string;
4004+
rev?: At.TID;
39584005
/** If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted. */
3959-
status?: "deactivated" | "suspended" | "takendown" | (string & {});
4006+
status?:
4007+
| "deactivated"
4008+
| "deleted"
4009+
| "desynchronized"
4010+
| "suspended"
4011+
| "takendown"
4012+
| "throttled"
4013+
| (string & {});
39604014
}
39614015
interface Errors extends TypedBase {
39624016
RepoNotFound: {};
@@ -3976,7 +4030,7 @@ export declare namespace ComAtprotoSyncListBlobs {
39764030
*/
39774031
limit?: number;
39784032
/** Optional revision of the repo to list blobs since. */
3979-
since?: string;
4033+
since?: At.TID;
39804034
}
39814035
type Input = undefined;
39824036
interface Output extends TypedBase {
@@ -4011,10 +4065,17 @@ export declare namespace ComAtprotoSyncListRepos {
40114065
did: At.DID;
40124066
/** Current repo commit CID */
40134067
head: At.CID;
4014-
rev: string;
4068+
rev: At.TID;
40154069
active?: boolean;
40164070
/** If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted. */
4017-
status?: "deactivated" | "suspended" | "takendown" | (string & {});
4071+
status?:
4072+
| "deactivated"
4073+
| "deleted"
4074+
| "desynchronized"
4075+
| "suspended"
4076+
| "takendown"
4077+
| "throttled"
4078+
| (string & {});
40184079
}
40194080
}
40204081

@@ -4067,7 +4128,7 @@ export declare namespace ComAtprotoSyncSubscribeRepos {
40674128
cursor?: number;
40684129
}
40694130
type Message = TypeUnion<
4070-
Account | Commit | Handle | Identity | Info | Migrate | Tombstone
4131+
Account | Commit | Handle | Identity | Info | Migrate | Sync | Tombstone
40714132
>;
40724133
interface Errors extends TypedBase {
40734134
FutureCursor: {};
@@ -4084,15 +4145,20 @@ export declare namespace ComAtprotoSyncSubscribeRepos {
40844145
status?:
40854146
| "deactivated"
40864147
| "deleted"
4148+
| "desynchronized"
40874149
| "suspended"
40884150
| "takendown"
4151+
| "throttled"
40894152
| (string & {});
40904153
}
40914154
/** Represents an update of repository state. Note that empty commits are allowed, which include no repo data changes, but an update to rev and signature. */
40924155
interface Commit extends TypedBase {
4093-
/** List of new blobs (by CID) referenced by records in this commit. */
4156+
/**
4157+
* DEPRECATED -- will soon always be empty. List of new blobs (by CID) referenced by records in this commit.
4158+
* \@deprecated
4159+
*/
40944160
blobs: At.CIDLink[];
4095-
/** CAR file containing relevant blocks, as a diff since the previous repo state. */
4161+
/** CAR file containing relevant blocks, as a diff since the previous repo state. The commit must be included as a block, and the commit block CID must be the first entry in the CAR header 'roots' list. */
40964162
blocks: At.Bytes;
40974163
/** Repo commit object CID. */
40984164
commit: At.CIDLink;
@@ -4106,23 +4172,23 @@ export declare namespace ComAtprotoSyncSubscribeRepos {
41064172
* \@deprecated
41074173
*/
41084174
rebase: boolean;
4109-
/** The repo this event comes from. */
4175+
/** The repo this event comes from. Note that all other message types name this field 'did'. */
41104176
repo: At.DID;
41114177
/** The rev of the emitted commit. Note that this information is also in the commit object included in blocks, unless this is a tooBig event. */
4112-
rev: string;
4178+
rev: At.TID;
41134179
/** The stream sequence number of this message. */
41144180
seq: number;
41154181
/** The rev of the last emitted commit from this repo (if any). */
4116-
since: string | null;
4182+
since: At.TID | null;
41174183
/** Timestamp of when this message was originally broadcast. */
41184184
time: string;
4119-
/** Indicates that this commit contained too many ops, or data size was too large. Consumers will need to make a separate request to get missing data. */
4120-
tooBig: boolean;
41214185
/**
4122-
* DEPRECATED -- unused. WARNING -- nullable and optional; stick with optional to ensure golang interoperability.
4186+
* DEPRECATED -- replaced by #sync event and data limits. Indicates that this commit contained too many ops, or data size was too large. Consumers will need to make a separate request to get missing data.
41234187
* \@deprecated
41244188
*/
4125-
prev?: At.CIDLink | null;
4189+
tooBig: boolean;
4190+
/** 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. */
4191+
prevData?: At.CIDLink;
41264192
}
41274193
/**
41284194
* DEPRECATED -- Use #identity event instead
@@ -4162,6 +4228,21 @@ export declare namespace ComAtprotoSyncSubscribeRepos {
41624228
/** For creates and updates, the new record CID. For deletions, null. */
41634229
cid: At.CIDLink | null;
41644230
path: string;
4231+
/** For updates and deletes, the previous record CID (required for inductive firehose). For creations, field should not be defined. */
4232+
prev?: At.CIDLink;
4233+
}
4234+
/** Updates the repo to a new state, without necessarily including that state on the firehose. Used to recover from broken commit streams, data loss incidents, or in situations where upstream host does not know recent state of the repository. */
4235+
interface Sync extends TypedBase {
4236+
/** CAR file containing the commit, as a block. The CAR header must include the commit block CID as the first 'root'. */
4237+
blocks: At.Bytes;
4238+
/** The account this repo event corresponds to. Must match that in the commit object. */
4239+
did: At.DID;
4240+
/** The rev of the commit. This value must match that in the commit object. */
4241+
rev: string;
4242+
/** The stream sequence number of this message. */
4243+
seq: number;
4244+
/** Timestamp of when this message was originally broadcast. */
4245+
time: string;
41654246
}
41664247
/**
41674248
* DEPRECATED -- Use #account event instead
@@ -4713,6 +4794,7 @@ export declare namespace ToolsOzoneModerationEmitEvent {
47134794
| ToolsOzoneModerationDefs.IdentityEvent
47144795
| ToolsOzoneModerationDefs.ModEventAcknowledge
47154796
| ToolsOzoneModerationDefs.ModEventComment
4797+
| ToolsOzoneModerationDefs.ModEventDivert
47164798
| ToolsOzoneModerationDefs.ModEventEmail
47174799
| ToolsOzoneModerationDefs.ModEventEscalate
47184800
| ToolsOzoneModerationDefs.ModEventLabel
@@ -5601,6 +5683,10 @@ export declare interface Queries {
56015683
params: ChatBskyConvoGetConvo.Params;
56025684
output: ChatBskyConvoGetConvo.Output;
56035685
};
5686+
"chat.bsky.convo.getConvoAvailability": {
5687+
params: ChatBskyConvoGetConvoAvailability.Params;
5688+
output: ChatBskyConvoGetConvoAvailability.Output;
5689+
};
56045690
"chat.bsky.convo.getConvoForMembers": {
56055691
params: ChatBskyConvoGetConvoForMembers.Params;
56065692
output: ChatBskyConvoGetConvoForMembers.Output;
@@ -5857,6 +5943,10 @@ export declare interface Procedures {
58575943
"chat.bsky.actor.deleteAccount": {
58585944
output: ChatBskyActorDeleteAccount.Output;
58595945
};
5946+
"chat.bsky.convo.acceptConvo": {
5947+
input: ChatBskyConvoAcceptConvo.Input;
5948+
output: ChatBskyConvoAcceptConvo.Output;
5949+
};
58605950
"chat.bsky.convo.deleteMessageForSelf": {
58615951
input: ChatBskyConvoDeleteMessageForSelf.Input;
58625952
output: ChatBskyConvoDeleteMessageForSelf.Output;

0 commit comments

Comments
 (0)