this repo has no description

update codegen

+32 -1377
+32 -1377
src/generated_client.ts
··· 1 1 // Generated TypeScript client for AT Protocol records 2 - // Generated at: 2025-10-02 12:52:22 UTC 3 - // Lexicons: 18 2 + // Generated at: 2025-10-02 13:48:07 UTC 3 + // Lexicons: 2 4 4 5 5 /** 6 6 * @example Usage ··· 12 12 * 'at://did:plc:ovreo3dlfroo4ztkep3kjlle/network.slices.slice/3m25liqjjnh2o' 13 13 * ); 14 14 * 15 - * // Get records from the app.bsky.feed.postgate collection 16 - * const records = await client.app.bsky.feed.postgate.getRecords(); 15 + * // Get records from the run.smallweb.server collection 16 + * const records = await client.run.smallweb.server.getRecords(); 17 17 * 18 18 * // Get a specific record 19 - * const record = await client.app.bsky.feed.postgate.getRecord({ 20 - * uri: 'at://did:plc:example/app.bsky.feed.postgate/3abc123' 19 + * const record = await client.run.smallweb.server.getRecord({ 20 + * uri: 'at://did:plc:example/run.smallweb.server/3abc123' 21 21 * }); 22 22 * 23 23 * // Get records with filtering and search 24 - * const filteredRecords = await client.app.bsky.feed.postgate.getRecords({ 24 + * const filteredRecords = await client.run.smallweb.server.getRecords({ 25 25 * where: { 26 26 * text: { contains: "example search term" } 27 27 * } 28 28 * }); 29 29 * 30 30 * // Use slice-level methods for cross-collection queries with type safety 31 - * const sliceRecords = await client.network.slices.slice.getSliceRecords<AppBskyFeedPostgate>({ 31 + * const sliceRecords = await client.network.slices.slice.getSliceRecords<RunSmallwebServer>({ 32 32 * where: { 33 - * collection: { eq: 'app.bsky.feed.postgate' } 33 + * collection: { eq: 'run.smallweb.server' } 34 34 * } 35 35 * }); 36 36 * 37 37 * // Search across multiple collections using union types 38 - * const multiCollectionRecords = await client.network.slices.slice.getSliceRecords<AppBskyFeedPostgate | AppBskyActorProfile>({ 38 + * const multiCollectionRecords = await client.network.slices.slice.getSliceRecords<RunSmallwebServer | AppBskyActorProfile>({ 39 39 * where: { 40 - * collection: { in: ['app.bsky.feed.postgate', 'app.bsky.actor.profile'] }, 40 + * collection: { in: ['run.smallweb.server', 'app.bsky.actor.profile'] }, 41 41 * text: { contains: 'example search term' }, 42 42 * did: { in: ['did:plc:user1', 'did:plc:user2'] } 43 43 * }, ··· 63 63 } from "@slices/client"; 64 64 import type { OAuthClient } from "@slices/oauth"; 65 65 66 - export type AppBskyGraphDefsListPurpose = 67 - | "app.bsky.graph.defs#modlist" 68 - | "app.bsky.graph.defs#curatelist" 69 - | "app.bsky.graph.defs#referencelist" 70 - | (string & Record<string, never>); 71 - 72 - export type AppBskyFeedDefsEvent = 73 - | "app.bsky.feed.defs#requestLess" 74 - | "app.bsky.feed.defs#requestMore" 75 - | "app.bsky.feed.defs#clickthroughItem" 76 - | "app.bsky.feed.defs#clickthroughAuthor" 77 - | "app.bsky.feed.defs#clickthroughReposter" 78 - | "app.bsky.feed.defs#clickthroughEmbed" 79 - | "app.bsky.feed.defs#interactionSeen" 80 - | "app.bsky.feed.defs#interactionLike" 81 - | "app.bsky.feed.defs#interactionRepost" 82 - | "app.bsky.feed.defs#interactionReply" 83 - | "app.bsky.feed.defs#interactionQuote" 84 - | "app.bsky.feed.defs#interactionShare" 85 - | (string & Record<string, never>); 86 - 87 - export type AppBskyFeedDefsContentMode = 88 - | "app.bsky.feed.defs#contentModeUnspecified" 89 - | "app.bsky.feed.defs#contentModeVideo" 90 - | (string & Record<string, never>); 91 - 92 - export type AppBskyActorDefsActorTarget = 93 - | "all" 94 - | "exclude-following" 95 - | (string & Record<string, never>); 96 - 97 - export type AppBskyActorDefsType = 98 - | "feed" 99 - | "list" 100 - | "timeline" 101 - | (string & Record<string, never>); 102 - 103 - export type AppBskyActorDefsSort = 104 - | "oldest" 105 - | "newest" 106 - | "most-likes" 107 - | "random" 108 - | "hotness" 109 - | (string & Record<string, never>); 110 - 111 - export type AppBskyActorDefsMutedWordTarget = 112 - | "content" 113 - | "tag" 114 - | (string & Record<string, never>); 115 - 116 - export type AppBskyActorDefsVisibility = 117 - | "ignore" 118 - | "show" 119 - | "warn" 120 - | "hide" 121 - | (string & Record<string, never>); 122 - 123 - export type AppBskyActorDefsAllowIncoming = 124 - | "all" 125 - | "none" 126 - | "following" 127 - | (string & Record<string, never>); 128 - 129 - export type ComAtprotoLabelDefsLabelValue = 130 - | "!hide" 131 - | "!no-promote" 132 - | "!warn" 133 - | "!no-unauthenticated" 134 - | "dmca-violation" 135 - | "doxxing" 136 - | "porn" 137 - | "sexual" 138 - | "nudity" 139 - | "nsfl" 140 - | "gore" 141 - | (string & Record<string, never>); 142 - 143 - export type ComAtprotoLabelDefsBlurs = 144 - | "content" 145 - | "media" 146 - | "none" 147 - | (string & Record<string, never>); 148 - 149 - export type ComAtprotoLabelDefsSeverity = 150 - | "inform" 151 - | "alert" 152 - | "none" 153 - | (string & Record<string, never>); 154 - 155 - export type ComAtprotoLabelDefsDefaultSetting = 156 - | "ignore" 157 - | "warn" 158 - | "hide" 159 - | (string & Record<string, never>); 160 - 161 - export interface AppBskyEmbedDefsAspectRatio { 162 - width: number; 163 - height: number; 164 - } 165 - 166 - export interface AppBskyEmbedRecordMain { 167 - record: ComAtprotoRepoStrongRef; 168 - } 169 - 170 - export interface AppBskyEmbedRecordView { 171 - record: 172 - | AppBskyEmbedRecord["ViewRecord"] 173 - | AppBskyEmbedRecord["ViewNotFound"] 174 - | AppBskyEmbedRecord["ViewBlocked"] 175 - | AppBskyEmbedRecord["ViewDetached"] 176 - | AppBskyFeedDefs["GeneratorView"] 177 - | AppBskyGraphDefs["ListView"] 178 - | AppBskyLabelerDefs["LabelerView"] 179 - | AppBskyGraphDefs["StarterPackViewBasic"] 180 - | { $type: string; [key: string]: unknown }; 181 - } 182 - 183 - export interface AppBskyEmbedRecordViewRecord { 184 - cid: string; 185 - uri: string; 186 - /** The record data itself. */ 187 - value: unknown; 188 - author: AppBskyActorDefs["ProfileViewBasic"]; 189 - embeds?: 190 - | AppBskyEmbedImages["View"] 191 - | AppBskyEmbedVideo["View"] 192 - | AppBskyEmbedExternal["View"] 193 - | AppBskyEmbedRecord["View"] 194 - | AppBskyEmbedRecordWithMedia["View"] 195 - | { $type: string; [key: string]: unknown }[]; 196 - labels?: ComAtprotoLabelDefs["Label"][]; 197 - indexedAt: string; 198 - likeCount?: number; 199 - quoteCount?: number; 200 - replyCount?: number; 201 - repostCount?: number; 202 - } 203 - 204 - export interface AppBskyEmbedRecordViewBlocked { 205 - uri: string; 206 - author: AppBskyFeedDefs["BlockedAuthor"]; 207 - blocked: boolean; 208 - } 209 - 210 - export interface AppBskyEmbedRecordViewDetached { 211 - uri: string; 212 - detached: boolean; 213 - } 214 - 215 - export interface AppBskyEmbedRecordViewNotFound { 216 - uri: string; 217 - notFound: boolean; 218 - } 219 - 220 - export interface AppBskyEmbedImagesMain { 221 - images: AppBskyEmbedImages["Image"][]; 222 - } 223 - 224 - export interface AppBskyEmbedImagesView { 225 - images: AppBskyEmbedImages["ViewImage"][]; 226 - } 227 - 228 - export interface AppBskyEmbedImagesImage { 229 - /** Alt text description of the image, for accessibility. */ 230 - alt: string; 231 - image: BlobRef; 232 - aspectRatio?: AppBskyEmbedDefs["AspectRatio"]; 233 - } 234 - 235 - export interface AppBskyEmbedImagesViewImage { 236 - /** Alt text description of the image, for accessibility. */ 237 - alt: string; 238 - /** Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View. */ 239 - thumb: string; 240 - /** Fully-qualified URL where a large version of the image can be fetched. May or may not be the exact original blob. For example, CDN location provided by the App View. */ 241 - fullsize: string; 242 - aspectRatio?: AppBskyEmbedDefs["AspectRatio"]; 243 - } 244 - 245 - export interface AppBskyEmbedRecordWithMediaMain { 246 - media: 247 - | AppBskyEmbedImages["Main"] 248 - | AppBskyEmbedVideo["Main"] 249 - | AppBskyEmbedExternal["Main"] 250 - | { $type: string; [key: string]: unknown }; 251 - record: AppBskyEmbedRecord["Main"]; 252 - } 253 - 254 - export interface AppBskyEmbedRecordWithMediaView { 255 - media: 256 - | AppBskyEmbedImages["View"] 257 - | AppBskyEmbedVideo["View"] 258 - | AppBskyEmbedExternal["View"] 259 - | { $type: string; [key: string]: unknown }; 260 - record: AppBskyEmbedRecord["View"]; 261 - } 262 - 263 - export interface AppBskyEmbedVideoMain { 264 - /** Alt text description of the video, for accessibility. */ 265 - alt?: string; 266 - video: BlobRef; 267 - captions?: AppBskyEmbedVideo["Caption"][]; 268 - aspectRatio?: AppBskyEmbedDefs["AspectRatio"]; 269 - } 270 - 271 - export interface AppBskyEmbedVideoView { 272 - alt?: string; 273 - cid: string; 274 - playlist: string; 275 - thumbnail?: string; 276 - aspectRatio?: AppBskyEmbedDefs["AspectRatio"]; 277 - } 278 - 279 - export interface AppBskyEmbedVideoCaption { 280 - file: BlobRef; 281 - lang: string; 282 - } 283 - 284 - export interface AppBskyEmbedExternalMain { 285 - external: AppBskyEmbedExternal["External"]; 286 - } 287 - 288 - export interface AppBskyEmbedExternalView { 289 - external: AppBskyEmbedExternal["ViewExternal"]; 290 - } 291 - 292 - export interface AppBskyEmbedExternalExternal { 293 - uri: string; 294 - thumb?: BlobRef; 295 - title: string; 296 - description: string; 297 - } 298 - 299 - export interface AppBskyEmbedExternalViewExternal { 300 - uri: string; 301 - thumb?: string; 302 - title: string; 303 - description: string; 304 - } 305 - 306 - export type AppBskyGraphDefsModlist = "app.bsky.graph.defs#modlist"; 307 - 308 - export interface AppBskyGraphDefsListView { 309 - cid: string; 310 - uri: string; 311 - name: string; 312 - avatar?: string; 313 - labels?: ComAtprotoLabelDefs["Label"][]; 314 - viewer?: AppBskyGraphDefs["ListViewerState"]; 315 - creator: AppBskyActorDefs["ProfileView"]; 316 - purpose: AppBskyGraphDefs["ListPurpose"]; 317 - indexedAt: string; 318 - description?: string; 319 - listItemCount?: number; 320 - descriptionFacets?: AppBskyRichtextFacet["Main"][]; 321 - } 322 - 323 - export type AppBskyGraphDefsCuratelist = "app.bsky.graph.defs#curatelist"; 324 - 325 - export interface AppBskyGraphDefsListItemView { 326 - uri: string; 327 - subject: AppBskyActorDefs["ProfileView"]; 328 - } 329 - 330 - export interface AppBskyGraphDefsRelationship { 331 - did: string; 332 - /** if the actor follows this DID, this is the AT-URI of the follow record */ 333 - following?: string; 334 - /** if the actor is followed by this DID, contains the AT-URI of the follow record */ 335 - followedBy?: string; 336 - } 337 - 338 - export interface AppBskyGraphDefsListViewBasic { 339 - cid: string; 340 - uri: string; 341 - name: string; 342 - avatar?: string; 343 - labels?: ComAtprotoLabelDefs["Label"][]; 344 - viewer?: AppBskyGraphDefs["ListViewerState"]; 345 - purpose: AppBskyGraphDefs["ListPurpose"]; 346 - indexedAt?: string; 347 - listItemCount?: number; 348 - } 349 - 350 - export interface AppBskyGraphDefsNotFoundActor { 351 - actor: string; 352 - notFound: boolean; 353 - } 354 - 355 - export type AppBskyGraphDefsReferencelist = "app.bsky.graph.defs#referencelist"; 356 - 357 - export interface AppBskyGraphDefsListViewerState { 358 - muted?: boolean; 359 - blocked?: string; 360 - } 361 - 362 - export interface AppBskyGraphDefsStarterPackView { 363 - cid: string; 364 - uri: string; 365 - list?: AppBskyGraphDefs["ListViewBasic"]; 366 - feeds?: AppBskyFeedDefs["GeneratorView"][]; 367 - labels?: ComAtprotoLabelDefs["Label"][]; 368 - record: unknown; 369 - creator: AppBskyActorDefs["ProfileViewBasic"]; 370 - indexedAt: string; 371 - joinedWeekCount?: number; 372 - listItemsSample?: AppBskyGraphDefs["ListItemView"][]; 373 - joinedAllTimeCount?: number; 374 - } 375 - 376 - export interface AppBskyGraphDefsStarterPackViewBasic { 377 - cid: string; 378 - uri: string; 379 - labels?: ComAtprotoLabelDefs["Label"][]; 380 - record: unknown; 381 - creator: AppBskyActorDefs["ProfileViewBasic"]; 382 - indexedAt: string; 383 - listItemCount?: number; 384 - joinedWeekCount?: number; 385 - joinedAllTimeCount?: number; 386 - } 387 - 388 - export interface AppBskyFeedDefsPostView { 389 - cid: string; 390 - uri: string; 391 - embed?: 392 - | AppBskyEmbedImages["View"] 393 - | AppBskyEmbedVideo["View"] 394 - | AppBskyEmbedExternal["View"] 395 - | AppBskyEmbedRecord["View"] 396 - | AppBskyEmbedRecordWithMedia["View"] 397 - | { $type: string; [key: string]: unknown }; 398 - author: AppBskyActorDefs["ProfileViewBasic"]; 399 - labels?: ComAtprotoLabelDefs["Label"][]; 400 - record: unknown; 401 - viewer?: AppBskyFeedDefs["ViewerState"]; 402 - indexedAt: string; 403 - likeCount?: number; 404 - quoteCount?: number; 405 - replyCount?: number; 406 - threadgate?: AppBskyFeedDefs["ThreadgateView"]; 407 - repostCount?: number; 408 - } 409 - 410 - export interface AppBskyFeedDefsReplyRef { 411 - root: 412 - | AppBskyFeedDefs["PostView"] 413 - | AppBskyFeedDefs["NotFoundPost"] 414 - | AppBskyFeedDefs["BlockedPost"] 415 - | { $type: string; [key: string]: unknown }; 416 - parent: 417 - | AppBskyFeedDefs["PostView"] 418 - | AppBskyFeedDefs["NotFoundPost"] 419 - | AppBskyFeedDefs["BlockedPost"] 420 - | { $type: string; [key: string]: unknown }; 421 - /** When parent is a reply to another post, this is the author of that post. */ 422 - grandparentAuthor?: AppBskyActorDefs["ProfileViewBasic"]; 423 - } 424 - 425 - export type AppBskyFeedDefsReasonPin = Record<string, never>; 426 - 427 - export interface AppBskyFeedDefsBlockedPost { 428 - uri: string; 429 - author: AppBskyFeedDefs["BlockedAuthor"]; 430 - blocked: boolean; 431 - } 432 - 433 - export interface AppBskyFeedDefsInteraction { 434 - item?: string; 435 - event?: AppBskyFeedDefsEvent; 436 - /** Context on a feed item that was originally supplied by the feed generator on getFeedSkeleton. */ 437 - feedContext?: string; 438 - } 439 - 440 - export type AppBskyFeedDefsRequestLess = "app.bsky.feed.defs#requestLess"; 441 - export type AppBskyFeedDefsRequestMore = "app.bsky.feed.defs#requestMore"; 442 - 443 - export interface AppBskyFeedDefsViewerState { 444 - like?: string; 445 - pinned?: boolean; 446 - repost?: string; 447 - threadMuted?: boolean; 448 - replyDisabled?: boolean; 449 - embeddingDisabled?: boolean; 450 - } 451 - 452 - export interface AppBskyFeedDefsFeedViewPost { 453 - post: AppBskyFeedDefs["PostView"]; 454 - reply?: AppBskyFeedDefs["ReplyRef"]; 455 - reason?: AppBskyFeedDefs["ReasonRepost"] | AppBskyFeedDefs["ReasonPin"] | { 456 - $type: string; 457 - [key: string]: unknown; 458 - }; 459 - /** Context provided by feed generator that may be passed back alongside interactions. */ 460 - feedContext?: string; 461 - } 462 - 463 - export interface AppBskyFeedDefsNotFoundPost { 464 - uri: string; 465 - notFound: boolean; 466 - } 467 - 468 - export interface AppBskyFeedDefsReasonRepost { 469 - by: AppBskyActorDefs["ProfileViewBasic"]; 470 - indexedAt: string; 471 - } 472 - 473 - export interface AppBskyFeedDefsBlockedAuthor { 474 - did: string; 475 - viewer?: AppBskyActorDefs["ViewerState"]; 476 - } 477 - 478 - export interface AppBskyFeedDefsGeneratorView { 479 - cid: string; 480 - did: string; 481 - uri: string; 482 - avatar?: string; 483 - labels?: ComAtprotoLabelDefs["Label"][]; 484 - viewer?: AppBskyFeedDefs["GeneratorViewerState"]; 485 - creator: AppBskyActorDefs["ProfileView"]; 486 - indexedAt: string; 487 - likeCount?: number; 488 - contentMode?: AppBskyFeedDefsContentMode; 489 - description?: string; 490 - displayName: string; 491 - descriptionFacets?: AppBskyRichtextFacet["Main"][]; 492 - acceptsInteractions?: boolean; 493 - } 494 - 495 - export interface AppBskyFeedDefsThreadContext { 496 - rootAuthorLike?: string; 497 - } 498 - 499 - export interface AppBskyFeedDefsThreadViewPost { 500 - post: AppBskyFeedDefs["PostView"]; 501 - parent?: 502 - | AppBskyFeedDefs["ThreadViewPost"] 503 - | AppBskyFeedDefs["NotFoundPost"] 504 - | AppBskyFeedDefs["BlockedPost"] 505 - | { $type: string; [key: string]: unknown }; 506 - replies?: 507 - | AppBskyFeedDefs["ThreadViewPost"] 508 - | AppBskyFeedDefs["NotFoundPost"] 509 - | AppBskyFeedDefs["BlockedPost"] 510 - | { $type: string; [key: string]: unknown }[]; 511 - threadContext?: AppBskyFeedDefs["ThreadContext"]; 512 - } 513 - 514 - export interface AppBskyFeedDefsThreadgateView { 515 - cid?: string; 516 - uri?: string; 517 - lists?: AppBskyGraphDefs["ListViewBasic"][]; 518 - record?: unknown; 519 - } 520 - 521 - export type AppBskyFeedDefsInteractionLike = 522 - "app.bsky.feed.defs#interactionLike"; 523 - export type AppBskyFeedDefsInteractionSeen = 524 - "app.bsky.feed.defs#interactionSeen"; 525 - export type AppBskyFeedDefsClickthroughItem = 526 - "app.bsky.feed.defs#clickthroughItem"; 527 - export type AppBskyFeedDefsContentModeVideo = 528 - "app.bsky.feed.defs#contentModeVideo"; 529 - export type AppBskyFeedDefsInteractionQuote = 530 - "app.bsky.feed.defs#interactionQuote"; 531 - export type AppBskyFeedDefsInteractionReply = 532 - "app.bsky.feed.defs#interactionReply"; 533 - export type AppBskyFeedDefsInteractionShare = 534 - "app.bsky.feed.defs#interactionShare"; 535 - 536 - export interface AppBskyFeedDefsSkeletonFeedPost { 537 - post: string; 538 - reason?: 539 - | AppBskyFeedDefs["SkeletonReasonRepost"] 540 - | AppBskyFeedDefs["SkeletonReasonPin"] 541 - | { $type: string; [key: string]: unknown }; 542 - /** Context that will be passed through to client and may be passed to feed generator back alongside interactions. */ 543 - feedContext?: string; 544 - } 545 - 546 - export type AppBskyFeedDefsClickthroughEmbed = 547 - "app.bsky.feed.defs#clickthroughEmbed"; 548 - export type AppBskyFeedDefsInteractionRepost = 549 - "app.bsky.feed.defs#interactionRepost"; 550 - export type AppBskyFeedDefsSkeletonReasonPin = Record<string, never>; 551 - export type AppBskyFeedDefsClickthroughAuthor = 552 - "app.bsky.feed.defs#clickthroughAuthor"; 553 - export type AppBskyFeedDefsClickthroughReposter = 554 - "app.bsky.feed.defs#clickthroughReposter"; 555 - 556 - export interface AppBskyFeedDefsGeneratorViewerState { 557 - like?: string; 558 - } 559 - 560 - export interface AppBskyFeedDefsSkeletonReasonRepost { 561 - repost: string; 562 - } 563 - 564 - export type AppBskyFeedDefsContentModeUnspecified = 565 - "app.bsky.feed.defs#contentModeUnspecified"; 566 - 567 - export interface AppBskyFeedPostgate { 568 - /** Reference (AT-URI) to the post record. */ 569 - post: string; 570 - createdAt: string; 571 - /** List of rules defining who can embed this post. If value is an empty array or is undefined, no particular rules apply and anyone can embed. */ 572 - embeddingRules?: AppBskyFeedPostgate["DisableRule"] | { 573 - $type: string; 574 - [key: string]: unknown; 575 - }[]; 576 - /** List of AT-URIs embedding this post that the author has detached from. */ 577 - detachedEmbeddingUris?: string[]; 578 - } 579 - 580 - export type AppBskyFeedPostgateSortFields = "post" | "createdAt"; 581 - export type AppBskyFeedPostgateDisableRule = Record<string, never>; 582 - 583 - export interface AppBskyFeedThreadgate { 584 - /** Reference (AT-URI) to the post record. */ 585 - post: string; 586 - /** List of rules defining who can reply to this post. If value is an empty array, no one can reply. If value is undefined, anyone can reply. */ 587 - allow?: 588 - | AppBskyFeedThreadgate["MentionRule"] 589 - | AppBskyFeedThreadgate["FollowerRule"] 590 - | AppBskyFeedThreadgate["FollowingRule"] 591 - | AppBskyFeedThreadgate["ListRule"] 592 - | { $type: string; [key: string]: unknown }[]; 593 - createdAt: string; 594 - /** List of hidden reply URIs. */ 595 - hiddenReplies?: string[]; 596 - } 597 - 598 - export type AppBskyFeedThreadgateSortFields = "post" | "createdAt"; 599 - 600 - export interface AppBskyFeedThreadgateListRule { 601 - list: string; 602 - } 603 - 604 - export type AppBskyFeedThreadgateMentionRule = Record<string, never>; 605 - export type AppBskyFeedThreadgateFollowerRule = Record<string, never>; 606 - export type AppBskyFeedThreadgateFollowingRule = Record<string, never>; 607 - 608 - export interface AppBskyRichtextFacetTag { 609 - tag: string; 610 - } 611 - 612 - export interface AppBskyRichtextFacetLink { 613 - uri: string; 614 - } 615 - 616 - export interface AppBskyRichtextFacetMain { 617 - index: AppBskyRichtextFacet["ByteSlice"]; 618 - features: 619 - | AppBskyRichtextFacet["Mention"] 620 - | AppBskyRichtextFacet["Link"] 621 - | AppBskyRichtextFacet["Tag"] 622 - | { $type: string; [key: string]: unknown }[]; 623 - } 624 - 625 - export interface AppBskyRichtextFacetMention { 626 - did: string; 627 - } 628 - 629 - export interface AppBskyRichtextFacetByteSlice { 630 - byteEnd: number; 631 - byteStart: number; 632 - } 633 - 634 - export interface AppBskyActorDefsNux { 635 - id: string; 636 - /** Arbitrary data for the NUX. The structure is defined by the NUX itself. Limited to 300 characters. */ 637 - data?: string; 638 - completed: boolean; 639 - /** The date and time at which the NUX will expire and should be considered completed. */ 640 - expiresAt?: string; 641 - } 642 - 643 - export interface AppBskyActorDefsMutedWord { 644 - id?: string; 645 - /** The muted word itself. */ 646 - value: string; 647 - /** The intended targets of the muted word. */ 648 - targets: AppBskyActorDefs["MutedWordTarget"][]; 649 - /** The date and time at which the muted word will expire and no longer be applied. */ 650 - expiresAt?: string; 651 - /** Groups of users to apply the muted word to. If undefined, applies to all users. */ 652 - actorTarget?: AppBskyActorDefsActorTarget; 653 - } 654 - 655 - export interface AppBskyActorDefsSavedFeed { 656 - id: string; 657 - type: AppBskyActorDefsType; 658 - value: string; 659 - pinned: boolean; 660 - } 661 - 662 - export type AppBskyActorDefsPreferences = 663 - | AppBskyActorDefs["AdultContentPref"] 664 - | AppBskyActorDefs["ContentLabelPref"] 665 - | AppBskyActorDefs["SavedFeedsPref"] 666 - | AppBskyActorDefs["SavedFeedsPrefV2"] 667 - | AppBskyActorDefs["PersonalDetailsPref"] 668 - | AppBskyActorDefs["FeedViewPref"] 669 - | AppBskyActorDefs["ThreadViewPref"] 670 - | AppBskyActorDefs["InterestsPref"] 671 - | AppBskyActorDefs["MutedWordsPref"] 672 - | AppBskyActorDefs["HiddenPostsPref"] 673 - | AppBskyActorDefs["BskyAppStatePref"] 674 - | AppBskyActorDefs["LabelersPref"] 675 - | AppBskyActorDefs["PostInteractionSettingsPref"] 676 - | { $type: string; [key: string]: unknown }[]; 677 - 678 - export interface AppBskyActorDefsProfileView { 679 - did: string; 680 - avatar?: string; 681 - handle: string; 682 - labels?: ComAtprotoLabelDefs["Label"][]; 683 - viewer?: AppBskyActorDefs["ViewerState"]; 684 - createdAt?: string; 685 - indexedAt?: string; 686 - associated?: AppBskyActorDefs["ProfileAssociated"]; 687 - description?: string; 688 - displayName?: string; 689 - } 690 - 691 - export interface AppBskyActorDefsViewerState { 692 - muted?: boolean; 693 - blocking?: string; 694 - blockedBy?: boolean; 695 - following?: string; 696 - followedBy?: string; 697 - mutedByList?: AppBskyGraphDefs["ListViewBasic"]; 698 - blockingByList?: AppBskyGraphDefs["ListViewBasic"]; 699 - knownFollowers?: AppBskyActorDefs["KnownFollowers"]; 700 - } 701 - 702 - export interface AppBskyActorDefsFeedViewPref { 703 - /** The URI of the feed, or an identifier which describes the feed. */ 704 - feed: string; 705 - /** Hide replies in the feed. */ 706 - hideReplies?: boolean; 707 - /** Hide reposts in the feed. */ 708 - hideReposts?: boolean; 709 - /** Hide quote posts in the feed. */ 710 - hideQuotePosts?: boolean; 711 - /** Hide replies in the feed if they do not have this number of likes. */ 712 - hideRepliesByLikeCount?: number; 713 - /** Hide replies in the feed if they are not by followed users. */ 714 - hideRepliesByUnfollowed?: boolean; 715 - } 716 - 717 - export interface AppBskyActorDefsLabelersPref { 718 - labelers: AppBskyActorDefs["LabelerPrefItem"][]; 719 - } 720 - 721 - export interface AppBskyActorDefsInterestsPref { 722 - /** A list of tags which describe the account owner's interests gathered during onboarding. */ 723 - tags: string[]; 724 - } 725 - 726 - export interface AppBskyActorDefsKnownFollowers { 727 - count: number; 728 - followers: AppBskyActorDefs["ProfileViewBasic"][]; 729 - } 730 - 731 - export interface AppBskyActorDefsMutedWordsPref { 732 - /** A list of words the account owner has muted. */ 733 - items: AppBskyActorDefs["MutedWord"][]; 734 - } 735 - 736 - export interface AppBskyActorDefsSavedFeedsPref { 737 - saved: string[]; 738 - pinned: string[]; 739 - timelineIndex?: number; 740 - } 741 - 742 - export interface AppBskyActorDefsThreadViewPref { 743 - /** Sorting mode for threads. */ 744 - sort?: AppBskyActorDefsSort; 745 - /** Show followed users at the top of all replies. */ 746 - prioritizeFollowedUsers?: boolean; 747 - } 748 - 749 - export interface AppBskyActorDefsHiddenPostsPref { 750 - /** A list of URIs of posts the account owner has hidden. */ 751 - items: string[]; 752 - } 753 - 754 - export interface AppBskyActorDefsLabelerPrefItem { 755 - did: string; 756 - } 757 - 758 - export interface AppBskyActorDefsAdultContentPref { 759 - enabled: boolean; 760 - } 761 - 762 - export interface AppBskyActorDefsBskyAppStatePref { 763 - /** Storage for NUXs the user has encountered. */ 764 - nuxs?: AppBskyActorDefs["Nux"][]; 765 - /** An array of tokens which identify nudges (modals, popups, tours, highlight dots) that should be shown to the user. */ 766 - queuedNudges?: string[]; 767 - activeProgressGuide?: AppBskyActorDefs["BskyAppProgressGuide"]; 768 - } 769 - 770 - export interface AppBskyActorDefsContentLabelPref { 771 - label: string; 772 - /** Which labeler does this preference apply to? If undefined, applies globally. */ 773 - labelerDid?: string; 774 - visibility: AppBskyActorDefsVisibility; 775 - } 776 - 777 - export interface AppBskyActorDefsProfileViewBasic { 778 - did: string; 779 - avatar?: string; 780 - handle: string; 781 - labels?: ComAtprotoLabelDefs["Label"][]; 782 - viewer?: AppBskyActorDefs["ViewerState"]; 783 - createdAt?: string; 784 - associated?: AppBskyActorDefs["ProfileAssociated"]; 785 - displayName?: string; 786 - } 787 - 788 - export interface AppBskyActorDefsSavedFeedsPrefV2 { 789 - items: AppBskyActorDefs["SavedFeed"][]; 790 - } 791 - 792 - export interface AppBskyActorDefsProfileAssociated { 793 - chat?: AppBskyActorDefs["ProfileAssociatedChat"]; 794 - lists?: number; 795 - labeler?: boolean; 796 - feedgens?: number; 797 - starterPacks?: number; 798 - } 799 - 800 - export interface AppBskyActorDefsPersonalDetailsPref { 801 - /** The birth date of account owner. */ 802 - birthDate?: string; 803 - } 804 - 805 - export interface AppBskyActorDefsProfileViewDetailed { 806 - did: string; 807 - avatar?: string; 808 - banner?: string; 809 - handle: string; 810 - labels?: ComAtprotoLabelDefs["Label"][]; 811 - viewer?: AppBskyActorDefs["ViewerState"]; 812 - createdAt?: string; 813 - indexedAt?: string; 814 - associated?: AppBskyActorDefs["ProfileAssociated"]; 815 - pinnedPost?: ComAtprotoRepoStrongRef; 816 - postsCount?: number; 817 - description?: string; 818 - displayName?: string; 819 - followsCount?: number; 820 - followersCount?: number; 821 - joinedViaStarterPack?: AppBskyGraphDefs["StarterPackViewBasic"]; 822 - } 823 - 824 - export interface AppBskyActorDefsBskyAppProgressGuide { 825 - guide: string; 826 - } 827 - 828 - export interface AppBskyActorDefsProfileAssociatedChat { 829 - allowIncoming: AppBskyActorDefsAllowIncoming; 830 - } 831 - 832 - export interface AppBskyActorDefsPostInteractionSettingsPref { 833 - /** Matches threadgate record. List of rules defining who can reply to this users posts. If value is an empty array, no one can reply. If value is undefined, anyone can reply. */ 834 - threadgateAllowRules?: 835 - | AppBskyFeedThreadgate["MentionRule"] 836 - | AppBskyFeedThreadgate["FollowerRule"] 837 - | AppBskyFeedThreadgate["FollowingRule"] 838 - | AppBskyFeedThreadgate["ListRule"] 839 - | { $type: string; [key: string]: unknown }[]; 840 - /** Matches postgate record. List of rules defining who can embed this users posts. If value is an empty array or is undefined, no particular rules apply and anyone can embed. */ 841 - postgateEmbeddingRules?: AppBskyFeedPostgate["DisableRule"] | { 842 - $type: string; 843 - [key: string]: unknown; 844 - }[]; 845 - } 846 - 847 - export interface AppBskyActorProfile { 848 - /** Small image to be displayed next to posts from account. AKA, 'profile picture' */ 849 - avatar?: BlobRef; 850 - /** Larger horizontal image to display behind profile view. */ 851 - banner?: BlobRef; 852 - /** Self-label values, specific to the Bluesky application, on the overall account. */ 853 - labels?: ComAtprotoLabelDefs["SelfLabels"] | { 854 - $type: string; 855 - [key: string]: unknown; 856 - }; 857 - createdAt?: string; 858 - pinnedPost?: ComAtprotoRepoStrongRef; 859 - /** Free-form profile description text. */ 860 - description?: string; 861 - displayName?: string; 862 - joinedViaStarterPack?: ComAtprotoRepoStrongRef; 863 - } 864 - 865 - export type AppBskyActorProfileSortFields = 866 - | "createdAt" 867 - | "description" 868 - | "displayName"; 869 - 870 - export interface AppBskyLabelerDefsLabelerView { 871 - cid: string; 872 - uri: string; 873 - labels?: ComAtprotoLabelDefs["Label"][]; 874 - viewer?: AppBskyLabelerDefs["LabelerViewerState"]; 875 - creator: AppBskyActorDefs["ProfileView"]; 876 - indexedAt: string; 877 - likeCount?: number; 878 - } 879 - 880 - export interface AppBskyLabelerDefsLabelerPolicies { 881 - /** The label values which this labeler publishes. May include global or custom labels. */ 882 - labelValues: ComAtprotoLabelDefs["LabelValue"][]; 883 - /** Label values created by this labeler and scoped exclusively to it. Labels defined here will override global label definitions for this labeler. */ 884 - labelValueDefinitions?: ComAtprotoLabelDefs["LabelValueDefinition"][]; 885 - } 886 - 887 - export interface AppBskyLabelerDefsLabelerViewerState { 888 - like?: string; 889 - } 890 - 891 - export interface AppBskyLabelerDefsLabelerViewDetailed { 892 - cid: string; 893 - uri: string; 894 - labels?: ComAtprotoLabelDefs["Label"][]; 895 - viewer?: AppBskyLabelerDefs["LabelerViewerState"]; 896 - creator: AppBskyActorDefs["ProfileView"]; 897 - policies: AppBskyLabelerDefs["LabelerPolicies"]; 898 - indexedAt: string; 899 - likeCount?: number; 900 - } 901 - 902 - export interface SmallwebRunServer { 66 + export interface RunSmallwebServer { 903 67 /** The DID of the server owner */ 904 68 owner: string; 905 69 /** The domain name of the server */ ··· 908 72 createdAt: string; 909 73 } 910 74 911 - export type SmallwebRunServerSortFields = "owner" | "domain" | "createdAt"; 75 + export type RunSmallwebServerSortFields = "owner" | "domain" | "createdAt"; 912 76 913 77 export interface RunSmallwebApp { 914 78 /** Name of the app */ ··· 930 94 | "owner" 931 95 | "createdAt"; 932 96 933 - export interface ComAtprotoLabelDefsLabel { 934 - /** Optionally, CID specifying the specific version of 'uri' resource this label applies to. */ 935 - cid?: string; 936 - /** Timestamp when this label was created. */ 937 - cts?: string; 938 - /** Timestamp at which this label expires (no longer applies). */ 939 - exp?: string; 940 - /** If true, this is a negation label, overwriting a previous label. */ 941 - neg?: boolean; 942 - /** Signature of dag-cbor encoded label. */ 943 - sig?: string; 944 - /** DID of the actor who created this label. */ 945 - src: string; 946 - /** AT URI of the record, repository (account), or other resource that this label applies to. */ 947 - uri: string; 948 - /** The short string name of the value or type of this label. */ 949 - val: string; 950 - /** The AT Protocol version of the label object. */ 951 - ver?: number; 952 - } 953 - 954 - export interface ComAtprotoLabelDefsSelfLabel { 955 - /** The short string name of the value or type of this label. */ 956 - val: string; 957 - } 958 - 959 - export interface ComAtprotoLabelDefsSelfLabels { 960 - values: ComAtprotoLabelDefs["SelfLabel"][]; 961 - } 962 - 963 - export interface ComAtprotoLabelDefsLabelValueDefinition { 964 - /** What should this label hide in the UI, if applied? 'content' hides all of the target; 'media' hides the images/video/audio; 'none' hides nothing. */ 965 - blurs: ComAtprotoLabelDefsBlurs; 966 - locales: ComAtprotoLabelDefs["LabelValueDefinitionStrings"][]; 967 - /** How should a client visually convey this label? 'inform' means neutral and informational; 'alert' means negative and warning; 'none' means show nothing. */ 968 - severity: ComAtprotoLabelDefsSeverity; 969 - /** Does the user need to have adult content enabled in order to configure this label? */ 970 - adultOnly?: boolean; 971 - /** The value of the label being defined. Must only include lowercase ascii and the '-' character ([a-z-]+). */ 972 - identifier: string; 973 - /** The default setting for this label. */ 974 - defaultSetting?: ComAtprotoLabelDefsDefaultSetting; 975 - } 976 - 977 - export interface ComAtprotoLabelDefsLabelValueDefinitionStrings { 978 - /** The code of the language these strings are written in. */ 979 - lang: string; 980 - /** A short human-readable name for the label. */ 981 - name: string; 982 - /** A longer description of what the label means and why it might be applied. */ 983 - description: string; 984 - } 985 - 986 - export interface ComAtprotoRepoStrongRef { 987 - cid: string; 988 - uri: string; 989 - } 990 - 991 - export interface AppBskyEmbedDefs { 992 - readonly AspectRatio: AppBskyEmbedDefsAspectRatio; 993 - } 994 - 995 - export interface AppBskyEmbedRecord { 996 - readonly Main: AppBskyEmbedRecordMain; 997 - readonly View: AppBskyEmbedRecordView; 998 - readonly ViewRecord: AppBskyEmbedRecordViewRecord; 999 - readonly ViewBlocked: AppBskyEmbedRecordViewBlocked; 1000 - readonly ViewDetached: AppBskyEmbedRecordViewDetached; 1001 - readonly ViewNotFound: AppBskyEmbedRecordViewNotFound; 1002 - } 1003 - 1004 - export interface AppBskyEmbedImages { 1005 - readonly Main: AppBskyEmbedImagesMain; 1006 - readonly View: AppBskyEmbedImagesView; 1007 - readonly Image: AppBskyEmbedImagesImage; 1008 - readonly ViewImage: AppBskyEmbedImagesViewImage; 1009 - } 1010 - 1011 - export interface AppBskyEmbedRecordWithMedia { 1012 - readonly Main: AppBskyEmbedRecordWithMediaMain; 1013 - readonly View: AppBskyEmbedRecordWithMediaView; 1014 - } 1015 - 1016 - export interface AppBskyEmbedVideo { 1017 - readonly Main: AppBskyEmbedVideoMain; 1018 - readonly View: AppBskyEmbedVideoView; 1019 - readonly Caption: AppBskyEmbedVideoCaption; 1020 - } 1021 - 1022 - export interface AppBskyEmbedExternal { 1023 - readonly Main: AppBskyEmbedExternalMain; 1024 - readonly View: AppBskyEmbedExternalView; 1025 - readonly External: AppBskyEmbedExternalExternal; 1026 - readonly ViewExternal: AppBskyEmbedExternalViewExternal; 1027 - } 1028 - 1029 - export interface AppBskyGraphDefs { 1030 - readonly Modlist: AppBskyGraphDefsModlist; 1031 - readonly ListView: AppBskyGraphDefsListView; 1032 - readonly Curatelist: AppBskyGraphDefsCuratelist; 1033 - readonly ListPurpose: AppBskyGraphDefsListPurpose; 1034 - readonly ListItemView: AppBskyGraphDefsListItemView; 1035 - readonly Relationship: AppBskyGraphDefsRelationship; 1036 - readonly ListViewBasic: AppBskyGraphDefsListViewBasic; 1037 - readonly NotFoundActor: AppBskyGraphDefsNotFoundActor; 1038 - readonly Referencelist: AppBskyGraphDefsReferencelist; 1039 - readonly ListViewerState: AppBskyGraphDefsListViewerState; 1040 - readonly StarterPackView: AppBskyGraphDefsStarterPackView; 1041 - readonly StarterPackViewBasic: AppBskyGraphDefsStarterPackViewBasic; 1042 - } 1043 - 1044 - export interface AppBskyFeedDefs { 1045 - readonly PostView: AppBskyFeedDefsPostView; 1046 - readonly ReplyRef: AppBskyFeedDefsReplyRef; 1047 - readonly ReasonPin: AppBskyFeedDefsReasonPin; 1048 - readonly BlockedPost: AppBskyFeedDefsBlockedPost; 1049 - readonly Interaction: AppBskyFeedDefsInteraction; 1050 - readonly RequestLess: AppBskyFeedDefsRequestLess; 1051 - readonly RequestMore: AppBskyFeedDefsRequestMore; 1052 - readonly ViewerState: AppBskyFeedDefsViewerState; 1053 - readonly FeedViewPost: AppBskyFeedDefsFeedViewPost; 1054 - readonly NotFoundPost: AppBskyFeedDefsNotFoundPost; 1055 - readonly ReasonRepost: AppBskyFeedDefsReasonRepost; 1056 - readonly BlockedAuthor: AppBskyFeedDefsBlockedAuthor; 1057 - readonly GeneratorView: AppBskyFeedDefsGeneratorView; 1058 - readonly ThreadContext: AppBskyFeedDefsThreadContext; 1059 - readonly ThreadViewPost: AppBskyFeedDefsThreadViewPost; 1060 - readonly ThreadgateView: AppBskyFeedDefsThreadgateView; 1061 - readonly InteractionLike: AppBskyFeedDefsInteractionLike; 1062 - readonly InteractionSeen: AppBskyFeedDefsInteractionSeen; 1063 - readonly ClickthroughItem: AppBskyFeedDefsClickthroughItem; 1064 - readonly ContentModeVideo: AppBskyFeedDefsContentModeVideo; 1065 - readonly InteractionQuote: AppBskyFeedDefsInteractionQuote; 1066 - readonly InteractionReply: AppBskyFeedDefsInteractionReply; 1067 - readonly InteractionShare: AppBskyFeedDefsInteractionShare; 1068 - readonly SkeletonFeedPost: AppBskyFeedDefsSkeletonFeedPost; 1069 - readonly ClickthroughEmbed: AppBskyFeedDefsClickthroughEmbed; 1070 - readonly InteractionRepost: AppBskyFeedDefsInteractionRepost; 1071 - readonly SkeletonReasonPin: AppBskyFeedDefsSkeletonReasonPin; 1072 - readonly ClickthroughAuthor: AppBskyFeedDefsClickthroughAuthor; 1073 - readonly ClickthroughReposter: AppBskyFeedDefsClickthroughReposter; 1074 - readonly GeneratorViewerState: AppBskyFeedDefsGeneratorViewerState; 1075 - readonly SkeletonReasonRepost: AppBskyFeedDefsSkeletonReasonRepost; 1076 - readonly ContentModeUnspecified: AppBskyFeedDefsContentModeUnspecified; 1077 - } 1078 - 1079 - export interface AppBskyFeedPostgate { 1080 - readonly Main: AppBskyFeedPostgate; 1081 - readonly DisableRule: AppBskyFeedPostgateDisableRule; 1082 - } 1083 - 1084 - export interface AppBskyFeedThreadgate { 1085 - readonly Main: AppBskyFeedThreadgate; 1086 - readonly ListRule: AppBskyFeedThreadgateListRule; 1087 - readonly MentionRule: AppBskyFeedThreadgateMentionRule; 1088 - readonly FollowerRule: AppBskyFeedThreadgateFollowerRule; 1089 - readonly FollowingRule: AppBskyFeedThreadgateFollowingRule; 1090 - } 1091 - 1092 - export interface AppBskyRichtextFacet { 1093 - readonly Tag: AppBskyRichtextFacetTag; 1094 - readonly Link: AppBskyRichtextFacetLink; 1095 - readonly Main: AppBskyRichtextFacetMain; 1096 - readonly Mention: AppBskyRichtextFacetMention; 1097 - readonly ByteSlice: AppBskyRichtextFacetByteSlice; 1098 - } 1099 - 1100 - export interface AppBskyActorDefs { 1101 - readonly Nux: AppBskyActorDefsNux; 1102 - readonly MutedWord: AppBskyActorDefsMutedWord; 1103 - readonly SavedFeed: AppBskyActorDefsSavedFeed; 1104 - readonly Preferences: AppBskyActorDefsPreferences; 1105 - readonly ProfileView: AppBskyActorDefsProfileView; 1106 - readonly ViewerState: AppBskyActorDefsViewerState; 1107 - readonly FeedViewPref: AppBskyActorDefsFeedViewPref; 1108 - readonly LabelersPref: AppBskyActorDefsLabelersPref; 1109 - readonly InterestsPref: AppBskyActorDefsInterestsPref; 1110 - readonly KnownFollowers: AppBskyActorDefsKnownFollowers; 1111 - readonly MutedWordsPref: AppBskyActorDefsMutedWordsPref; 1112 - readonly SavedFeedsPref: AppBskyActorDefsSavedFeedsPref; 1113 - readonly ThreadViewPref: AppBskyActorDefsThreadViewPref; 1114 - readonly HiddenPostsPref: AppBskyActorDefsHiddenPostsPref; 1115 - readonly LabelerPrefItem: AppBskyActorDefsLabelerPrefItem; 1116 - readonly MutedWordTarget: AppBskyActorDefsMutedWordTarget; 1117 - readonly AdultContentPref: AppBskyActorDefsAdultContentPref; 1118 - readonly BskyAppStatePref: AppBskyActorDefsBskyAppStatePref; 1119 - readonly ContentLabelPref: AppBskyActorDefsContentLabelPref; 1120 - readonly ProfileViewBasic: AppBskyActorDefsProfileViewBasic; 1121 - readonly SavedFeedsPrefV2: AppBskyActorDefsSavedFeedsPrefV2; 1122 - readonly ProfileAssociated: AppBskyActorDefsProfileAssociated; 1123 - readonly PersonalDetailsPref: AppBskyActorDefsPersonalDetailsPref; 1124 - readonly ProfileViewDetailed: AppBskyActorDefsProfileViewDetailed; 1125 - readonly BskyAppProgressGuide: AppBskyActorDefsBskyAppProgressGuide; 1126 - readonly ProfileAssociatedChat: AppBskyActorDefsProfileAssociatedChat; 1127 - readonly PostInteractionSettingsPref: 1128 - AppBskyActorDefsPostInteractionSettingsPref; 1129 - } 1130 - 1131 - export interface AppBskyLabelerDefs { 1132 - readonly LabelerView: AppBskyLabelerDefsLabelerView; 1133 - readonly LabelerPolicies: AppBskyLabelerDefsLabelerPolicies; 1134 - readonly LabelerViewerState: AppBskyLabelerDefsLabelerViewerState; 1135 - readonly LabelerViewDetailed: AppBskyLabelerDefsLabelerViewDetailed; 1136 - } 1137 - 1138 - export interface ComAtprotoLabelDefs { 1139 - readonly Label: ComAtprotoLabelDefsLabel; 1140 - readonly SelfLabel: ComAtprotoLabelDefsSelfLabel; 1141 - readonly LabelValue: ComAtprotoLabelDefsLabelValue; 1142 - readonly SelfLabels: ComAtprotoLabelDefsSelfLabels; 1143 - readonly LabelValueDefinition: ComAtprotoLabelDefsLabelValueDefinition; 1144 - readonly LabelValueDefinitionStrings: 1145 - ComAtprotoLabelDefsLabelValueDefinitionStrings; 1146 - } 1147 - 1148 - class PostgateFeedBskyAppClient { 1149 - private readonly client: SlicesClient; 1150 - 1151 - constructor(client: SlicesClient) { 1152 - this.client = client; 1153 - } 1154 - 1155 - async getRecords( 1156 - params?: { 1157 - limit?: number; 1158 - cursor?: string; 1159 - where?: { 1160 - [K in AppBskyFeedPostgateSortFields | IndexedRecordFields]?: 1161 - WhereCondition; 1162 - }; 1163 - orWhere?: { 1164 - [K in AppBskyFeedPostgateSortFields | IndexedRecordFields]?: 1165 - WhereCondition; 1166 - }; 1167 - sortBy?: SortField<AppBskyFeedPostgateSortFields>[]; 1168 - }, 1169 - ): Promise<GetRecordsResponse<AppBskyFeedPostgate>> { 1170 - return await this.client.getRecords("app.bsky.feed.postgate", params); 1171 - } 1172 - 1173 - async getRecord( 1174 - params: GetRecordParams, 1175 - ): Promise<RecordResponse<AppBskyFeedPostgate>> { 1176 - return await this.client.getRecord("app.bsky.feed.postgate", params); 1177 - } 1178 - 1179 - async countRecords( 1180 - params?: { 1181 - limit?: number; 1182 - cursor?: string; 1183 - where?: { 1184 - [K in AppBskyFeedPostgateSortFields | IndexedRecordFields]?: 1185 - WhereCondition; 1186 - }; 1187 - orWhere?: { 1188 - [K in AppBskyFeedPostgateSortFields | IndexedRecordFields]?: 1189 - WhereCondition; 1190 - }; 1191 - sortBy?: SortField<AppBskyFeedPostgateSortFields>[]; 1192 - }, 1193 - ): Promise<CountRecordsResponse> { 1194 - return await this.client.countRecords("app.bsky.feed.postgate", params); 1195 - } 1196 - 1197 - async createRecord( 1198 - record: AppBskyFeedPostgate, 1199 - useSelfRkey?: boolean, 1200 - ): Promise<{ uri: string; cid: string }> { 1201 - return await this.client.createRecord( 1202 - "app.bsky.feed.postgate", 1203 - record, 1204 - useSelfRkey, 1205 - ); 1206 - } 1207 - 1208 - async updateRecord( 1209 - rkey: string, 1210 - record: AppBskyFeedPostgate, 1211 - ): Promise<{ uri: string; cid: string }> { 1212 - return await this.client.updateRecord( 1213 - "app.bsky.feed.postgate", 1214 - rkey, 1215 - record, 1216 - ); 1217 - } 1218 - 1219 - async deleteRecord(rkey: string): Promise<void> { 1220 - return await this.client.deleteRecord("app.bsky.feed.postgate", rkey); 1221 - } 1222 - } 1223 - 1224 - class ThreadgateFeedBskyAppClient { 1225 - private readonly client: SlicesClient; 1226 - 1227 - constructor(client: SlicesClient) { 1228 - this.client = client; 1229 - } 1230 - 1231 - async getRecords( 1232 - params?: { 1233 - limit?: number; 1234 - cursor?: string; 1235 - where?: { 1236 - [K in AppBskyFeedThreadgateSortFields | IndexedRecordFields]?: 1237 - WhereCondition; 1238 - }; 1239 - orWhere?: { 1240 - [K in AppBskyFeedThreadgateSortFields | IndexedRecordFields]?: 1241 - WhereCondition; 1242 - }; 1243 - sortBy?: SortField<AppBskyFeedThreadgateSortFields>[]; 1244 - }, 1245 - ): Promise<GetRecordsResponse<AppBskyFeedThreadgate>> { 1246 - return await this.client.getRecords("app.bsky.feed.threadgate", params); 1247 - } 1248 - 1249 - async getRecord( 1250 - params: GetRecordParams, 1251 - ): Promise<RecordResponse<AppBskyFeedThreadgate>> { 1252 - return await this.client.getRecord("app.bsky.feed.threadgate", params); 1253 - } 1254 - 1255 - async countRecords( 1256 - params?: { 1257 - limit?: number; 1258 - cursor?: string; 1259 - where?: { 1260 - [K in AppBskyFeedThreadgateSortFields | IndexedRecordFields]?: 1261 - WhereCondition; 1262 - }; 1263 - orWhere?: { 1264 - [K in AppBskyFeedThreadgateSortFields | IndexedRecordFields]?: 1265 - WhereCondition; 1266 - }; 1267 - sortBy?: SortField<AppBskyFeedThreadgateSortFields>[]; 1268 - }, 1269 - ): Promise<CountRecordsResponse> { 1270 - return await this.client.countRecords("app.bsky.feed.threadgate", params); 1271 - } 1272 - 1273 - async createRecord( 1274 - record: AppBskyFeedThreadgate, 1275 - useSelfRkey?: boolean, 1276 - ): Promise<{ uri: string; cid: string }> { 1277 - return await this.client.createRecord( 1278 - "app.bsky.feed.threadgate", 1279 - record, 1280 - useSelfRkey, 1281 - ); 1282 - } 1283 - 1284 - async updateRecord( 1285 - rkey: string, 1286 - record: AppBskyFeedThreadgate, 1287 - ): Promise<{ uri: string; cid: string }> { 1288 - return await this.client.updateRecord( 1289 - "app.bsky.feed.threadgate", 1290 - rkey, 1291 - record, 1292 - ); 1293 - } 1294 - 1295 - async deleteRecord(rkey: string): Promise<void> { 1296 - return await this.client.deleteRecord("app.bsky.feed.threadgate", rkey); 1297 - } 1298 - } 1299 - 1300 - class FeedBskyAppClient { 1301 - readonly postgate: PostgateFeedBskyAppClient; 1302 - readonly threadgate: ThreadgateFeedBskyAppClient; 1303 - private readonly client: SlicesClient; 1304 - 1305 - constructor(client: SlicesClient) { 1306 - this.client = client; 1307 - this.postgate = new PostgateFeedBskyAppClient(client); 1308 - this.threadgate = new ThreadgateFeedBskyAppClient(client); 1309 - } 1310 - } 1311 - 1312 - class ProfileActorBskyAppClient { 1313 - private readonly client: SlicesClient; 1314 - 1315 - constructor(client: SlicesClient) { 1316 - this.client = client; 1317 - } 1318 - 1319 - async getRecords( 1320 - params?: { 1321 - limit?: number; 1322 - cursor?: string; 1323 - where?: { 1324 - [K in AppBskyActorProfileSortFields | IndexedRecordFields]?: 1325 - WhereCondition; 1326 - }; 1327 - orWhere?: { 1328 - [K in AppBskyActorProfileSortFields | IndexedRecordFields]?: 1329 - WhereCondition; 1330 - }; 1331 - sortBy?: SortField<AppBskyActorProfileSortFields>[]; 1332 - }, 1333 - ): Promise<GetRecordsResponse<AppBskyActorProfile>> { 1334 - return await this.client.getRecords("app.bsky.actor.profile", params); 1335 - } 1336 - 1337 - async getRecord( 1338 - params: GetRecordParams, 1339 - ): Promise<RecordResponse<AppBskyActorProfile>> { 1340 - return await this.client.getRecord("app.bsky.actor.profile", params); 1341 - } 1342 - 1343 - async countRecords( 1344 - params?: { 1345 - limit?: number; 1346 - cursor?: string; 1347 - where?: { 1348 - [K in AppBskyActorProfileSortFields | IndexedRecordFields]?: 1349 - WhereCondition; 1350 - }; 1351 - orWhere?: { 1352 - [K in AppBskyActorProfileSortFields | IndexedRecordFields]?: 1353 - WhereCondition; 1354 - }; 1355 - sortBy?: SortField<AppBskyActorProfileSortFields>[]; 1356 - }, 1357 - ): Promise<CountRecordsResponse> { 1358 - return await this.client.countRecords("app.bsky.actor.profile", params); 1359 - } 1360 - 1361 - async createRecord( 1362 - record: AppBskyActorProfile, 1363 - useSelfRkey?: boolean, 1364 - ): Promise<{ uri: string; cid: string }> { 1365 - return await this.client.createRecord( 1366 - "app.bsky.actor.profile", 1367 - record, 1368 - useSelfRkey, 1369 - ); 1370 - } 1371 - 1372 - async updateRecord( 1373 - rkey: string, 1374 - record: AppBskyActorProfile, 1375 - ): Promise<{ uri: string; cid: string }> { 1376 - return await this.client.updateRecord( 1377 - "app.bsky.actor.profile", 1378 - rkey, 1379 - record, 1380 - ); 1381 - } 1382 - 1383 - async deleteRecord(rkey: string): Promise<void> { 1384 - return await this.client.deleteRecord("app.bsky.actor.profile", rkey); 1385 - } 1386 - } 1387 - 1388 - class ActorBskyAppClient { 1389 - readonly profile: ProfileActorBskyAppClient; 1390 - private readonly client: SlicesClient; 1391 - 1392 - constructor(client: SlicesClient) { 1393 - this.client = client; 1394 - this.profile = new ProfileActorBskyAppClient(client); 1395 - } 1396 - } 1397 - 1398 - class BskyAppClient { 1399 - readonly feed: FeedBskyAppClient; 1400 - readonly actor: ActorBskyAppClient; 1401 - private readonly client: SlicesClient; 1402 - 1403 - constructor(client: SlicesClient) { 1404 - this.client = client; 1405 - this.feed = new FeedBskyAppClient(client); 1406 - this.actor = new ActorBskyAppClient(client); 1407 - } 1408 - } 1409 - 1410 - class AppClient { 1411 - readonly bsky: BskyAppClient; 1412 - private readonly client: SlicesClient; 1413 - 1414 - constructor(client: SlicesClient) { 1415 - this.client = client; 1416 - this.bsky = new BskyAppClient(client); 1417 - } 1418 - } 1419 - 1420 - class ServerRunSmallwebClient { 97 + class ServerSmallwebRunClient { 1421 98 private readonly client: SlicesClient; 1422 99 1423 100 constructor(client: SlicesClient) { ··· 1429 106 limit?: number; 1430 107 cursor?: string; 1431 108 where?: { 1432 - [K in SmallwebRunServerSortFields | IndexedRecordFields]?: 109 + [K in RunSmallwebServerSortFields | IndexedRecordFields]?: 1433 110 WhereCondition; 1434 111 }; 1435 112 orWhere?: { 1436 - [K in SmallwebRunServerSortFields | IndexedRecordFields]?: 113 + [K in RunSmallwebServerSortFields | IndexedRecordFields]?: 1437 114 WhereCondition; 1438 115 }; 1439 - sortBy?: SortField<SmallwebRunServerSortFields>[]; 116 + sortBy?: SortField<RunSmallwebServerSortFields>[]; 1440 117 }, 1441 - ): Promise<GetRecordsResponse<SmallwebRunServer>> { 1442 - return await this.client.getRecords("smallweb.run.server", params); 118 + ): Promise<GetRecordsResponse<RunSmallwebServer>> { 119 + return await this.client.getRecords("run.smallweb.server", params); 1443 120 } 1444 121 1445 122 async getRecord( 1446 123 params: GetRecordParams, 1447 - ): Promise<RecordResponse<SmallwebRunServer>> { 1448 - return await this.client.getRecord("smallweb.run.server", params); 124 + ): Promise<RecordResponse<RunSmallwebServer>> { 125 + return await this.client.getRecord("run.smallweb.server", params); 1449 126 } 1450 127 1451 128 async countRecords( ··· 1453 130 limit?: number; 1454 131 cursor?: string; 1455 132 where?: { 1456 - [K in SmallwebRunServerSortFields | IndexedRecordFields]?: 133 + [K in RunSmallwebServerSortFields | IndexedRecordFields]?: 1457 134 WhereCondition; 1458 135 }; 1459 136 orWhere?: { 1460 - [K in SmallwebRunServerSortFields | IndexedRecordFields]?: 137 + [K in RunSmallwebServerSortFields | IndexedRecordFields]?: 1461 138 WhereCondition; 1462 139 }; 1463 - sortBy?: SortField<SmallwebRunServerSortFields>[]; 140 + sortBy?: SortField<RunSmallwebServerSortFields>[]; 1464 141 }, 1465 142 ): Promise<CountRecordsResponse> { 1466 - return await this.client.countRecords("smallweb.run.server", params); 143 + return await this.client.countRecords("run.smallweb.server", params); 1467 144 } 1468 145 1469 146 async createRecord( 1470 - record: SmallwebRunServer, 147 + record: RunSmallwebServer, 1471 148 useSelfRkey?: boolean, 1472 149 ): Promise<{ uri: string; cid: string }> { 1473 150 return await this.client.createRecord( 1474 - "smallweb.run.server", 151 + "run.smallweb.server", 1475 152 record, 1476 153 useSelfRkey, 1477 154 ); ··· 1479 156 1480 157 async updateRecord( 1481 158 rkey: string, 1482 - record: SmallwebRunServer, 159 + record: RunSmallwebServer, 1483 160 ): Promise<{ uri: string; cid: string }> { 1484 - return await this.client.updateRecord("smallweb.run.server", rkey, record); 161 + return await this.client.updateRecord("run.smallweb.server", rkey, record); 1485 162 } 1486 163 1487 164 async deleteRecord(rkey: string): Promise<void> { 1488 - return await this.client.deleteRecord("smallweb.run.server", rkey); 1489 - } 1490 - } 1491 - 1492 - class RunSmallwebClient { 1493 - readonly server: ServerRunSmallwebClient; 1494 - private readonly client: SlicesClient; 1495 - 1496 - constructor(client: SlicesClient) { 1497 - this.client = client; 1498 - this.server = new ServerRunSmallwebClient(client); 1499 - } 1500 - } 1501 - 1502 - class SmallwebClient { 1503 - readonly run: RunSmallwebClient; 1504 - private readonly client: SlicesClient; 1505 - 1506 - constructor(client: SlicesClient) { 1507 - this.client = client; 1508 - this.run = new RunSmallwebClient(client); 165 + return await this.client.deleteRecord("run.smallweb.server", rkey); 1509 166 } 1510 167 } 1511 168 ··· 1578 235 } 1579 236 1580 237 class SmallwebRunClient { 238 + readonly server: ServerSmallwebRunClient; 1581 239 readonly app: AppSmallwebRunClient; 1582 240 private readonly client: SlicesClient; 1583 241 1584 242 constructor(client: SlicesClient) { 1585 243 this.client = client; 244 + this.server = new ServerSmallwebRunClient(client); 1586 245 this.app = new AppSmallwebRunClient(client); 1587 246 } 1588 247 } ··· 1598 257 } 1599 258 1600 259 export class AtProtoClient extends SlicesClient { 1601 - readonly app: AppClient; 1602 - readonly smallweb: SmallwebClient; 1603 260 readonly run: RunClient; 1604 261 readonly oauth?: OAuthClient | AuthProvider; 1605 262 ··· 1609 266 oauthClient?: OAuthClient | AuthProvider, 1610 267 ) { 1611 268 super(baseUrl, sliceUri, oauthClient); 1612 - this.app = new AppClient(this); 1613 - this.smallweb = new SmallwebClient(this); 1614 269 this.run = new RunClient(this); 1615 270 this.oauth = oauthClient; 1616 271 }