diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-12-22 09:17:07 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-12-22 09:17:07 -0600 |
commit | 4913a07e3365d2004e67e9131dd4b4c15094dd33 (patch) | |
tree | 6247f7fe52fdc8a6b29143f1d2f247b4e28987ec /src | |
parent | 7f4a54ff0d83983460e787fde21707405acc38b0 (diff) | |
download | voidsky-4913a07e3365d2004e67e9131dd4b4c15094dd33.tar.zst |
Unvendor the api and switch to @atproto/api
Diffstat (limited to 'src')
107 files changed, 86 insertions, 13781 deletions
diff --git a/src/lib/strings.ts b/src/lib/strings.ts index bfa8848bd..c665c0b07 100644 --- a/src/lib/strings.ts +++ b/src/lib/strings.ts @@ -1,5 +1,6 @@ import {AtUri} from '../third-party/uri' -import {Entity} from '../third-party/api/src/client/types/app/bsky/feed/post' +import {AppBskyFeedPost} from '@atproto/api' +type Entity = AppBskyFeedPost.Entity import {PROD_SERVICE} from '../state' import {isNetworkError} from './errors' import TLDs from 'tlds' diff --git a/src/state/index.ts b/src/state/index.ts index 9634e1d26..aa24eb27e 100644 --- a/src/state/index.ts +++ b/src/state/index.ts @@ -1,7 +1,6 @@ import {autorun} from 'mobx' import {Platform} from 'react-native' -import {sessionClient as AtpApi} from '../third-party/api' -import type {SessionServiceClient} from '../third-party/api/src/index' +import {sessionClient as AtpApi, SessionServiceClient} from '@atproto/api' import {RootStoreModel} from './models/root-store' import * as libapi from './lib/api' import * as storage from './lib/storage' diff --git a/src/state/lib/api.ts b/src/state/lib/api.ts index ec4338b73..f0f33d134 100644 --- a/src/state/lib/api.ts +++ b/src/state/lib/api.ts @@ -4,11 +4,13 @@ */ // import {ReactNativeStore} from './auth' -import {sessionClient as AtpApi} from '../../third-party/api' +import { + sessionClient as AtpApi, + APP_BSKY_GRAPH, + AppBskyEmbedImages, + AppBskyEmbedExternal, +} from '@atproto/api' import {AtUri} from '../../third-party/uri' -import {APP_BSKY_GRAPH} from '../../third-party/api' -import * as AppBskyEmbedImages from '../../third-party/api/src/client/types/app/bsky/embed/images' -import * as AppBskyEmbedExternal from '../../third-party/api/src/client/types/app/bsky/embed/External' import {RootStoreModel} from '../models/root-store' import {extractEntities} from '../../lib/strings' import {isNetworkError} from '../../lib/errors' diff --git a/src/state/models/feed-view.ts b/src/state/models/feed-view.ts index ca00d5e2b..2c205d7c0 100644 --- a/src/state/models/feed-view.ts +++ b/src/state/models/feed-view.ts @@ -1,12 +1,14 @@ import {makeAutoObservable, runInAction} from 'mobx' -import * as GetTimeline from '../../third-party/api/src/client/types/app/bsky/feed/getTimeline' import { - Main as FeedViewPost, - ReasonTrend, - ReasonRepost, -} from '../../third-party/api/src/client/types/app/bsky/feed/feedViewPost' -import {View as PostView} from '../../third-party/api/src/client/types/app/bsky/feed/post' -import * as GetAuthorFeed from '../../third-party/api/src/client/types/app/bsky/feed/getAuthorFeed' + AppBskyFeedGetTimeline as GetTimeline, + AppBskyFeedFeedViewPost, + AppBskyFeedPost, + AppBskyFeedGetAuthorFeed as GetAuthorFeed, +} from '@atproto/api' +type FeedViewPost = AppBskyFeedFeedViewPost.Main +type ReasonTrend = AppBskyFeedFeedViewPost.ReasonTrend +type ReasonRepost = AppBskyFeedFeedViewPost.ReasonRepost +type PostView = AppBskyFeedPost.View import {AtUri} from '../../third-party/uri' import {RootStoreModel} from './root-store' import * as apilib from '../lib/api' diff --git a/src/state/models/get-assertions-view.ts b/src/state/models/get-assertions-view.ts index f9e78f383..4778ef132 100644 --- a/src/state/models/get-assertions-view.ts +++ b/src/state/models/get-assertions-view.ts @@ -1,9 +1,8 @@ import {makeAutoObservable} from 'mobx' -import * as GetAssertions from '../../third-party/api/src/client/types/app/bsky/graph/getAssertions' +import {AppBskyGraphGetAssertions as GetAssertions} from '@atproto/api' import {RootStoreModel} from './root-store' -type ResponseAssertion = GetAssertions.OutputSchema['assertions'][number] -export type Assertion = ResponseAssertion & { +export type Assertion = GetAssertions.Assertion & { _reactKey: string } diff --git a/src/state/models/members-view.ts b/src/state/models/members-view.ts index 98d3368ac..35eafb583 100644 --- a/src/state/models/members-view.ts +++ b/src/state/models/members-view.ts @@ -1,7 +1,9 @@ import {makeAutoObservable, runInAction} from 'mobx' -import * as GetMembers from '../../third-party/api/src/client/types/app/bsky/graph/getMembers' -import * as ActorRef from '../../third-party/api/src/client/types/app/bsky/actor/ref' -import {APP_BSKY_GRAPH} from '../../third-party/api' +import { + AppBskyGraphGetMembers as GetMembers, + AppBskyActorRef as ActorRef, + APP_BSKY_GRAPH, +} from '@atproto/api' import {AtUri} from '../../third-party/uri' import {RootStoreModel} from './root-store' diff --git a/src/state/models/memberships-view.ts b/src/state/models/memberships-view.ts index 57b2fd193..99bb25645 100644 --- a/src/state/models/memberships-view.ts +++ b/src/state/models/memberships-view.ts @@ -1,6 +1,8 @@ import {makeAutoObservable} from 'mobx' -import * as GetMemberships from '../../third-party/api/src/client/types/app/bsky/graph/getMemberships' -import * as ActorRef from '../../third-party/api/src/client/types/app/bsky/actor/ref' +import { + AppBskyGraphGetMemberships as GetMemberships, + AppBskyActorRef as ActorRef, +} from '@atproto/api' import {RootStoreModel} from './root-store' export type MembershipItem = GetMemberships.Membership & { diff --git a/src/state/models/notifications-view.ts b/src/state/models/notifications-view.ts index fec646b9a..c1ee78d41 100644 --- a/src/state/models/notifications-view.ts +++ b/src/state/models/notifications-view.ts @@ -1,10 +1,12 @@ import {makeAutoObservable, runInAction} from 'mobx' -import * as ListNotifications from '../../third-party/api/src/client/types/app/bsky/notification/list' -import * as ActorRef from '../../third-party/api/src/client/types/app/bsky/actor/ref' +import { + AppBskyNotificationList as ListNotifications, + AppBskyActorRef as ActorRef, + APP_BSKY_GRAPH, +} from '@atproto/api' import {RootStoreModel} from './root-store' import {PostThreadViewModel} from './post-thread-view' import {hasProp} from '../lib/type-guards' -import {APP_BSKY_GRAPH} from '../../third-party/api' import {cleanError} from '../../lib/strings' const UNGROUPABLE_REASONS = ['trend', 'assertion'] diff --git a/src/state/models/post-thread-view.ts b/src/state/models/post-thread-view.ts index 0c8e9c5fd..f0f0d5ef3 100644 --- a/src/state/models/post-thread-view.ts +++ b/src/state/models/post-thread-view.ts @@ -1,6 +1,5 @@ import {makeAutoObservable, runInAction} from 'mobx' -import {AppBskyFeedGetPostThread as GPT} from '../../third-party/api' -import type * as GetPostThread from '../../third-party/api/src/client/types/app/bsky/feed/getPostThread' +import {AppBskyFeedGetPostThread as GetPostThread} from '@atproto/api' import {AtUri} from '../../third-party/uri' import {RootStoreModel} from './root-store' import * as apilib from '../lib/api' @@ -297,7 +296,7 @@ export class PostThreadViewModel { this.isRefreshing = false this.hasLoaded = true this.error = err ? err.toString() : '' - this.notFound = err instanceof GPT.NotFoundError + this.notFound = err instanceof GetPostThread.NotFoundError } // loader functions diff --git a/src/state/models/post.ts b/src/state/models/post.ts index a3ed83e49..1c49e32f2 100644 --- a/src/state/models/post.ts +++ b/src/state/models/post.ts @@ -1,5 +1,5 @@ import {makeAutoObservable} from 'mobx' -import * as Post from '../../third-party/api/src/client/types/app/bsky/feed/post' +import {AppBskyFeedPost as Post} from '@atproto/api' import {AtUri} from '../../third-party/uri' import {RootStoreModel} from './root-store' import {cleanError} from '../../lib/strings' diff --git a/src/state/models/profile-view.ts b/src/state/models/profile-view.ts index 9b32c8744..ce70867ae 100644 --- a/src/state/models/profile-view.ts +++ b/src/state/models/profile-view.ts @@ -1,9 +1,13 @@ import {makeAutoObservable, runInAction} from 'mobx' import {Image as PickedImage} from 'react-native-image-crop-picker' -import * as GetProfile from '../../third-party/api/src/client/types/app/bsky/actor/getProfile' -import * as Profile from '../../third-party/api/src/client/types/app/bsky/actor/profile' -import {Main as DeclRef} from '../../third-party/api/src/client/types/app/bsky/system/declRef' -import {Entity} from '../../third-party/api/src/client/types/app/bsky/feed/post' +import { + AppBskyActorGetProfile as GetProfile, + AppBskyActorProfile as Profile, + AppBskySystemDeclRef, + AppBskyFeedPost, +} from '@atproto/api' +type DeclRef = AppBskySystemDeclRef.Main +type Entity = AppBskyFeedPost.Entity import {extractEntities} from '../../lib/strings' import {RootStoreModel} from './root-store' import * as apilib from '../lib/api' diff --git a/src/state/models/profiles-view.ts b/src/state/models/profiles-view.ts index d9fe98b3f..804491c8b 100644 --- a/src/state/models/profiles-view.ts +++ b/src/state/models/profiles-view.ts @@ -1,7 +1,7 @@ import {makeAutoObservable} from 'mobx' import {LRUMap} from 'lru_map' import {RootStoreModel} from './root-store' -import * as GetProfile from '../../third-party/api/src/client/types/app/bsky/actor/getProfile' +import {AppBskyActorGetProfile as GetProfile} from '@atproto/api' type CacheValue = Promise<GetProfile.Response> | GetProfile.Response export class ProfilesViewModel { diff --git a/src/state/models/reposted-by-view.ts b/src/state/models/reposted-by-view.ts index 9e9146899..624d86ec0 100644 --- a/src/state/models/reposted-by-view.ts +++ b/src/state/models/reposted-by-view.ts @@ -1,7 +1,10 @@ import {makeAutoObservable, runInAction} from 'mobx' import {AtUri} from '../../third-party/uri' -import * as GetRepostedBy from '../../third-party/api/src/client/types/app/bsky/feed/getRepostedBy' -import {Main as DeclRef} from '../../third-party/api/src/client/types/app/bsky/system/declRef' +import { + AppBskyFeedGetRepostedBy as GetRepostedBy, + AppBskySystemDeclRef, +} from '@atproto/api' +type DeclRef = AppBskySystemDeclRef.Main import {RootStoreModel} from './root-store' export class RepostedByViewItemModel implements GetRepostedBy.RepostedBy { diff --git a/src/state/models/root-store.ts b/src/state/models/root-store.ts index ad306ee9f..26f947c56 100644 --- a/src/state/models/root-store.ts +++ b/src/state/models/root-store.ts @@ -3,8 +3,7 @@ */ import {makeAutoObservable} from 'mobx' -import {sessionClient as AtpApi} from '../../third-party/api' -import type {SessionServiceClient} from '../../third-party/api/src/index' +import {sessionClient as AtpApi, SessionServiceClient} from '@atproto/api' import {createContext, useContext} from 'react' import {isObj, hasProp} from '../lib/type-guards' import {SessionModel} from './session' diff --git a/src/state/models/session.ts b/src/state/models/session.ts index eef6808ce..febffcec3 100644 --- a/src/state/models/session.ts +++ b/src/state/models/session.ts @@ -1,10 +1,10 @@ import {makeAutoObservable} from 'mobx' -import {sessionClient as AtpApi} from '../../third-party/api/index' -import type { - SessionServiceClient, +import { + sessionClient as AtpApi, Session, -} from '../../third-party/api/src/index' -import type * as GetAccountsConfig from '../../third-party/api/src/client/types/com/atproto/server/getAccountsConfig' + SessionServiceClient, + ComAtprotoServerGetAccountsConfig as GetAccountsConfig, +} from '@atproto/api' import {isObj, hasProp} from '../lib/type-guards' import {RootStoreModel} from './root-store' import {isNetworkError} from '../../lib/errors' diff --git a/src/state/models/suggested-actors-view.ts b/src/state/models/suggested-actors-view.ts index 0901d5ecc..f52830cfd 100644 --- a/src/state/models/suggested-actors-view.ts +++ b/src/state/models/suggested-actors-view.ts @@ -1,5 +1,5 @@ import {makeAutoObservable} from 'mobx' -import * as GetSuggestions from '../../third-party/api/src/client/types/app/bsky/actor/getSuggestions' +import {AppBskyActorGetSuggestions as GetSuggestions} from '@atproto/api' import {RootStoreModel} from './root-store' export type SuggestedActor = GetSuggestions.Actor & { diff --git a/src/state/models/suggested-invites-view.ts b/src/state/models/suggested-invites-view.ts index 260ec6817..33ca7396e 100644 --- a/src/state/models/suggested-invites-view.ts +++ b/src/state/models/suggested-invites-view.ts @@ -2,7 +2,7 @@ import {makeAutoObservable, runInAction} from 'mobx' import {RootStoreModel} from './root-store' import {UserFollowsViewModel, FollowItem} from './user-follows-view' import {GetAssertionsView} from './get-assertions-view' -import {APP_BSKY_SYSTEM, APP_BSKY_GRAPH} from '../../third-party/api' +import {APP_BSKY_SYSTEM, APP_BSKY_GRAPH} from '@atproto/api' export interface SuggestedInvitesViewParams { sceneDid: string diff --git a/src/state/models/user-autocomplete-view.ts b/src/state/models/user-autocomplete-view.ts index b6afa40b2..8f467da69 100644 --- a/src/state/models/user-autocomplete-view.ts +++ b/src/state/models/user-autocomplete-view.ts @@ -1,6 +1,8 @@ import {makeAutoObservable, runInAction} from 'mobx' -import * as GetFollows from '../../third-party/api/src/client/types/app/bsky/graph/getFollows' -import * as SearchTypeahead from '../../third-party/api/src/client/types/app/bsky/actor/searchTypeahead' +import { + AppBskyGraphGetFollows as GetFollows, + AppBskyActorSearchTypeahead as SearchTypeahead, +} from '@atproto/api' import {RootStoreModel} from './root-store' export class UserAutocompleteViewModel { diff --git a/src/state/models/user-followers-view.ts b/src/state/models/user-followers-view.ts index 831dfc689..2d8d7cf13 100644 --- a/src/state/models/user-followers-view.ts +++ b/src/state/models/user-followers-view.ts @@ -1,6 +1,8 @@ import {makeAutoObservable} from 'mobx' -import * as GetFollowers from '../../third-party/api/src/client/types/app/bsky/graph/getFollowers' -import * as ActorRef from '../../third-party/api/src/client/types/app/bsky/actor/ref' +import { + AppBskyGraphGetFollowers as GetFollowers, + AppBskyActorRef as ActorRef, +} from '@atproto/api' import {RootStoreModel} from './root-store' export type FollowerItem = GetFollowers.Follower & { diff --git a/src/state/models/user-follows-view.ts b/src/state/models/user-follows-view.ts index 15af6abc5..8cbafddf9 100644 --- a/src/state/models/user-follows-view.ts +++ b/src/state/models/user-follows-view.ts @@ -1,6 +1,8 @@ import {makeAutoObservable} from 'mobx' -import * as GetFollows from '../../third-party/api/src/client/types/app/bsky/graph/getFollows' -import * as ActorRef from '../../third-party/api/src/client/types/app/bsky/actor/ref' +import { + AppBskyGraphGetFollows as GetFollows, + AppBskyActorRef as ActorRef, +} from '@atproto/api' import {RootStoreModel} from './root-store' export type FollowItem = GetFollows.Follow & { diff --git a/src/state/models/votes-view.ts b/src/state/models/votes-view.ts index 64da6b227..c92d8ae22 100644 --- a/src/state/models/votes-view.ts +++ b/src/state/models/votes-view.ts @@ -1,7 +1,9 @@ import {makeAutoObservable, runInAction} from 'mobx' import {AtUri} from '../../third-party/uri' -import * as GetVotes from '../../third-party/api/src/client/types/app/bsky/feed/getVotes' -import * as ActorRef from '../../third-party/api/src/client/types/app/bsky/actor/ref' +import { + AppBskyFeedGetVotes as GetVotes, + AppBskyActorRef as ActorRef, +} from '@atproto/api' import {RootStoreModel} from './root-store' export class VotesViewItemModel implements GetVotes.Vote { diff --git a/src/third-party/api/index.js b/src/third-party/api/index.js deleted file mode 100644 index 5f183cc47..000000000 --- a/src/third-party/api/index.js +++ /dev/null @@ -1,8724 +0,0 @@ -"use strict"; -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM = (mod2, isNodeMode, target) => (target = mod2 != null ? __create(__getProtoOf(mod2)) : {}, __copyProps( - isNodeMode || !mod2 || !mod2.__esModule ? __defProp(target, "default", { value: mod2, enumerable: true }) : target, - mod2 -)); -var __toCommonJS = (mod2) => __copyProps(__defProp({}, "__esModule", { value: true }), mod2); - -// src/index.ts -var src_exports = {}; -__export(src_exports, { - APP_BSKY_GRAPH: () => APP_BSKY_GRAPH, - APP_BSKY_SYSTEM: () => APP_BSKY_SYSTEM, - AccountNS: () => AccountNS, - ActorNS: () => ActorNS, - AppBskyActorCreateScene: () => createScene_exports, - AppBskyActorGetProfile: () => getProfile_exports, - AppBskyActorGetSuggestions: () => getSuggestions_exports, - AppBskyActorProfile: () => profile_exports, - AppBskyActorRef: () => ref_exports, - AppBskyActorSearch: () => search_exports, - AppBskyActorSearchTypeahead: () => searchTypeahead_exports, - AppBskyActorUpdateProfile: () => updateProfile_exports, - AppBskyEmbedExternal: () => external_exports, - AppBskyEmbedImages: () => images_exports, - AppBskyFeedFeedViewPost: () => feedViewPost_exports, - AppBskyFeedGetAuthorFeed: () => getAuthorFeed_exports, - AppBskyFeedGetPostThread: () => getPostThread_exports, - AppBskyFeedGetRepostedBy: () => getRepostedBy_exports, - AppBskyFeedGetTimeline: () => getTimeline_exports, - AppBskyFeedGetVotes: () => getVotes_exports, - AppBskyFeedPost: () => post_exports, - AppBskyFeedRepost: () => repost_exports, - AppBskyFeedSetVote: () => setVote_exports, - AppBskyFeedTrend: () => trend_exports, - AppBskyFeedVote: () => vote_exports, - AppBskyGraphAssertCreator: () => assertCreator_exports, - AppBskyGraphAssertMember: () => assertMember_exports, - AppBskyGraphAssertion: () => assertion_exports, - AppBskyGraphConfirmation: () => confirmation_exports, - AppBskyGraphFollow: () => follow_exports, - AppBskyGraphGetAssertions: () => getAssertions_exports, - AppBskyGraphGetFollowers: () => getFollowers_exports, - AppBskyGraphGetFollows: () => getFollows_exports, - AppBskyGraphGetMembers: () => getMembers_exports, - AppBskyGraphGetMemberships: () => getMemberships_exports, - AppBskyNotificationGetCount: () => getCount_exports, - AppBskyNotificationList: () => list_exports, - AppBskyNotificationUpdateSeen: () => updateSeen_exports, - AppBskySystemActorScene: () => actorScene_exports, - AppBskySystemActorUser: () => actorUser_exports, - AppBskySystemDeclRef: () => declRef_exports, - AppBskySystemDeclaration: () => declaration_exports, - AppNS: () => AppNS, - AssertionRecord: () => AssertionRecord, - AtprotoNS: () => AtprotoNS, - BlobNS: () => BlobNS, - BskyNS: () => BskyNS, - Client: () => Client2, - ComAtprotoAccountCreate: () => create_exports, - ComAtprotoAccountCreateInviteCode: () => createInviteCode_exports, - ComAtprotoAccountDelete: () => delete_exports, - ComAtprotoAccountGet: () => get_exports, - ComAtprotoAccountRequestPasswordReset: () => requestPasswordReset_exports, - ComAtprotoAccountResetPassword: () => resetPassword_exports, - ComAtprotoBlobUpload: () => upload_exports, - ComAtprotoHandleResolve: () => resolve_exports, - ComAtprotoRepoBatchWrite: () => batchWrite_exports, - ComAtprotoRepoCreateRecord: () => createRecord_exports, - ComAtprotoRepoDeleteRecord: () => deleteRecord_exports, - ComAtprotoRepoDescribe: () => describe_exports, - ComAtprotoRepoGetRecord: () => getRecord_exports, - ComAtprotoRepoListRecords: () => listRecords_exports, - ComAtprotoRepoPutRecord: () => putRecord_exports, - ComAtprotoRepoStrongRef: () => strongRef_exports, - ComAtprotoServerGetAccountsConfig: () => getAccountsConfig_exports, - ComAtprotoSessionCreate: () => create_exports2, - ComAtprotoSessionDelete: () => delete_exports2, - ComAtprotoSessionGet: () => get_exports2, - ComAtprotoSessionRefresh: () => refresh_exports, - ComAtprotoSyncGetRepo: () => getRepo_exports, - ComAtprotoSyncGetRoot: () => getRoot_exports, - ComAtprotoSyncUpdateRepo: () => updateRepo_exports, - ComNS: () => ComNS, - ConfirmationRecord: () => ConfirmationRecord, - DeclarationRecord: () => DeclarationRecord, - EmbedNS: () => EmbedNS, - FeedNS: () => FeedNS, - FollowRecord: () => FollowRecord, - GraphNS: () => GraphNS, - HandleNS: () => HandleNS, - NotificationNS: () => NotificationNS, - PostRecord: () => PostRecord, - ProfileRecord: () => ProfileRecord, - RepoNS: () => RepoNS, - RepostRecord: () => RepostRecord, - ServerNS: () => ServerNS, - ServiceClient: () => ServiceClient2, - SessionClient: () => SessionClient, - SessionManager: () => SessionManager, - SessionNS: () => SessionNS, - SessionServiceClient: () => SessionServiceClient, - SessionXrpcServiceClient: () => SessionXrpcServiceClient, - SyncNS: () => SyncNS, - SystemNS: () => SystemNS, - TrendRecord: () => TrendRecord, - VoteRecord: () => VoteRecord, - default: () => client_default, - sessionClient: () => session_default -}); -module.exports = __toCommonJS(src_exports); - -// ../../node_modules/zod/lib/index.mjs -var util; -(function(util2) { - util2.assertEqual = (val) => val; - function assertIs(_arg) { - } - util2.assertIs = assertIs; - function assertNever(_x) { - throw new Error(); - } - util2.assertNever = assertNever; - util2.arrayToEnum = (items) => { - const obj = {}; - for (const item of items) { - obj[item] = item; - } - return obj; - }; - util2.getValidEnumValues = (obj) => { - const validKeys = util2.objectKeys(obj).filter((k) => typeof obj[obj[k]] !== "number"); - const filtered = {}; - for (const k of validKeys) { - filtered[k] = obj[k]; - } - return util2.objectValues(filtered); - }; - util2.objectValues = (obj) => { - return util2.objectKeys(obj).map(function(e) { - return obj[e]; - }); - }; - util2.objectKeys = typeof Object.keys === "function" ? (obj) => Object.keys(obj) : (object2) => { - const keys = []; - for (const key in object2) { - if (Object.prototype.hasOwnProperty.call(object2, key)) { - keys.push(key); - } - } - return keys; - }; - util2.find = (arr, checker) => { - for (const item of arr) { - if (checker(item)) - return item; - } - return void 0; - }; - util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && isFinite(val) && Math.floor(val) === val; - function joinValues(array2, separator = " | ") { - return array2.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator); - } - util2.joinValues = joinValues; - util2.jsonStringifyReplacer = (_, value) => { - if (typeof value === "bigint") { - return value.toString(); - } - return value; - }; -})(util || (util = {})); -var ZodParsedType = util.arrayToEnum([ - "string", - "nan", - "number", - "integer", - "float", - "boolean", - "date", - "bigint", - "symbol", - "function", - "undefined", - "null", - "array", - "object", - "unknown", - "promise", - "void", - "never", - "map", - "set" -]); -var getParsedType = (data) => { - const t = typeof data; - switch (t) { - case "undefined": - return ZodParsedType.undefined; - case "string": - return ZodParsedType.string; - case "number": - return isNaN(data) ? ZodParsedType.nan : ZodParsedType.number; - case "boolean": - return ZodParsedType.boolean; - case "function": - return ZodParsedType.function; - case "bigint": - return ZodParsedType.bigint; - case "object": - if (Array.isArray(data)) { - return ZodParsedType.array; - } - if (data === null) { - return ZodParsedType.null; - } - if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") { - return ZodParsedType.promise; - } - if (typeof Map !== "undefined" && data instanceof Map) { - return ZodParsedType.map; - } - if (typeof Set !== "undefined" && data instanceof Set) { - return ZodParsedType.set; - } - if (typeof Date !== "undefined" && data instanceof Date) { - return ZodParsedType.date; - } - return ZodParsedType.object; - default: - return ZodParsedType.unknown; - } -}; -var ZodIssueCode = util.arrayToEnum([ - "invalid_type", - "invalid_literal", - "custom", - "invalid_union", - "invalid_union_discriminator", - "invalid_enum_value", - "unrecognized_keys", - "invalid_arguments", - "invalid_return_type", - "invalid_date", - "invalid_string", - "too_small", - "too_big", - "invalid_intersection_types", - "not_multiple_of" -]); -var quotelessJson = (obj) => { - const json = JSON.stringify(obj, null, 2); - return json.replace(/"([^"]+)":/g, "$1:"); -}; -var ZodError = class extends Error { - constructor(issues) { - super(); - this.issues = []; - this.addIssue = (sub) => { - this.issues = [...this.issues, sub]; - }; - this.addIssues = (subs = []) => { - this.issues = [...this.issues, ...subs]; - }; - const actualProto = new.target.prototype; - if (Object.setPrototypeOf) { - Object.setPrototypeOf(this, actualProto); - } else { - this.__proto__ = actualProto; - } - this.name = "ZodError"; - this.issues = issues; - } - get errors() { - return this.issues; - } - format(_mapper) { - const mapper = _mapper || function(issue) { - return issue.message; - }; - const fieldErrors = { _errors: [] }; - const processError = (error) => { - for (const issue of error.issues) { - if (issue.code === "invalid_union") { - issue.unionErrors.map(processError); - } else if (issue.code === "invalid_return_type") { - processError(issue.returnTypeError); - } else if (issue.code === "invalid_arguments") { - processError(issue.argumentsError); - } else if (issue.path.length === 0) { - fieldErrors._errors.push(mapper(issue)); - } else { - let curr = fieldErrors; - let i = 0; - while (i < issue.path.length) { - const el = issue.path[i]; - const terminal = i === issue.path.length - 1; - if (!terminal) { - curr[el] = curr[el] || { _errors: [] }; - } else { - curr[el] = curr[el] || { _errors: [] }; - curr[el]._errors.push(mapper(issue)); - } - curr = curr[el]; - i++; - } - } - } - }; - processError(this); - return fieldErrors; - } - toString() { - return this.message; - } - get message() { - return JSON.stringify(this.issues, util.jsonStringifyReplacer, 2); - } - get isEmpty() { - return this.issues.length === 0; - } - flatten(mapper = (issue) => issue.message) { - const fieldErrors = {}; - const formErrors = []; - for (const sub of this.issues) { - if (sub.path.length > 0) { - fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || []; - fieldErrors[sub.path[0]].push(mapper(sub)); - } else { - formErrors.push(mapper(sub)); - } - } - return { formErrors, fieldErrors }; - } - get formErrors() { - return this.flatten(); - } -}; -ZodError.create = (issues) => { - const error = new ZodError(issues); - return error; -}; -var errorMap = (issue, _ctx) => { - let message; - switch (issue.code) { - case ZodIssueCode.invalid_type: - if (issue.received === ZodParsedType.undefined) { - message = "Required"; - } else { - message = `Expected ${issue.expected}, received ${issue.received}`; - } - break; - case ZodIssueCode.invalid_literal: - message = `Invalid literal value, expected ${JSON.stringify(issue.expected, util.jsonStringifyReplacer)}`; - break; - case ZodIssueCode.unrecognized_keys: - message = `Unrecognized key(s) in object: ${util.joinValues(issue.keys, ", ")}`; - break; - case ZodIssueCode.invalid_union: - message = `Invalid input`; - break; - case ZodIssueCode.invalid_union_discriminator: - message = `Invalid discriminator value. Expected ${util.joinValues(issue.options)}`; - break; - case ZodIssueCode.invalid_enum_value: - message = `Invalid enum value. Expected ${util.joinValues(issue.options)}, received '${issue.received}'`; - break; - case ZodIssueCode.invalid_arguments: - message = `Invalid function arguments`; - break; - case ZodIssueCode.invalid_return_type: - message = `Invalid function return type`; - break; - case ZodIssueCode.invalid_date: - message = `Invalid date`; - break; - case ZodIssueCode.invalid_string: - if (typeof issue.validation === "object") { - if ("startsWith" in issue.validation) { - message = `Invalid input: must start with "${issue.validation.startsWith}"`; - } else if ("endsWith" in issue.validation) { - message = `Invalid input: must end with "${issue.validation.endsWith}"`; - } else { - util.assertNever(issue.validation); - } - } else if (issue.validation !== "regex") { - message = `Invalid ${issue.validation}`; - } else { - message = "Invalid"; - } - break; - case ZodIssueCode.too_small: - if (issue.type === "array") - message = `Array must contain ${issue.inclusive ? `at least` : `more than`} ${issue.minimum} element(s)`; - else if (issue.type === "string") - message = `String must contain ${issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`; - else if (issue.type === "number") - message = `Number must be greater than ${issue.inclusive ? `or equal to ` : ``}${issue.minimum}`; - else if (issue.type === "date") - message = `Date must be greater than ${issue.inclusive ? `or equal to ` : ``}${new Date(issue.minimum)}`; - else - message = "Invalid input"; - break; - case ZodIssueCode.too_big: - if (issue.type === "array") - message = `Array must contain ${issue.inclusive ? `at most` : `less than`} ${issue.maximum} element(s)`; - else if (issue.type === "string") - message = `String must contain ${issue.inclusive ? `at most` : `under`} ${issue.maximum} character(s)`; - else if (issue.type === "number") - message = `Number must be less than ${issue.inclusive ? `or equal to ` : ``}${issue.maximum}`; - else if (issue.type === "date") - message = `Date must be smaller than ${issue.inclusive ? `or equal to ` : ``}${new Date(issue.maximum)}`; - else - message = "Invalid input"; - break; - case ZodIssueCode.custom: - message = `Invalid input`; - break; - case ZodIssueCode.invalid_intersection_types: - message = `Intersection results could not be merged`; - break; - case ZodIssueCode.not_multiple_of: - message = `Number must be a multiple of ${issue.multipleOf}`; - break; - default: - message = _ctx.defaultError; - util.assertNever(issue); - } - return { message }; -}; -var overrideErrorMap = errorMap; -function setErrorMap(map) { - overrideErrorMap = map; -} -function getErrorMap() { - return overrideErrorMap; -} -var makeIssue = (params2) => { - const { data, path, errorMaps, issueData } = params2; - const fullPath = [...path, ...issueData.path || []]; - const fullIssue = { - ...issueData, - path: fullPath - }; - let errorMessage = ""; - const maps = errorMaps.filter((m) => !!m).slice().reverse(); - for (const map of maps) { - errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message; - } - return { - ...issueData, - path: fullPath, - message: issueData.message || errorMessage - }; -}; -var EMPTY_PATH = []; -function addIssueToContext(ctx, issueData) { - const issue = makeIssue({ - issueData, - data: ctx.data, - path: ctx.path, - errorMaps: [ - ctx.common.contextualErrorMap, - ctx.schemaErrorMap, - getErrorMap(), - errorMap - ].filter((x) => !!x) - }); - ctx.common.issues.push(issue); -} -var ParseStatus = class { - constructor() { - this.value = "valid"; - } - dirty() { - if (this.value === "valid") - this.value = "dirty"; - } - abort() { - if (this.value !== "aborted") - this.value = "aborted"; - } - static mergeArray(status, results) { - const arrayValue = []; - for (const s of results) { - if (s.status === "aborted") - return INVALID; - if (s.status === "dirty") - status.dirty(); - arrayValue.push(s.value); - } - return { status: status.value, value: arrayValue }; - } - static async mergeObjectAsync(status, pairs) { - const syncPairs = []; - for (const pair of pairs) { - syncPairs.push({ - key: await pair.key, - value: await pair.value - }); - } - return ParseStatus.mergeObjectSync(status, syncPairs); - } - static mergeObjectSync(status, pairs) { - const finalObject = {}; - for (const pair of pairs) { - const { key, value } = pair; - if (key.status === "aborted") - return INVALID; - if (value.status === "aborted") - return INVALID; - if (key.status === "dirty") - status.dirty(); - if (value.status === "dirty") - status.dirty(); - if (typeof value.value !== "undefined" || pair.alwaysSet) { - finalObject[key.value] = value.value; - } - } - return { status: status.value, value: finalObject }; - } -}; -var INVALID = Object.freeze({ - status: "aborted" -}); -var DIRTY = (value) => ({ status: "dirty", value }); -var OK = (value) => ({ status: "valid", value }); -var isAborted = (x) => x.status === "aborted"; -var isDirty = (x) => x.status === "dirty"; -var isValid = (x) => x.status === "valid"; -var isAsync = (x) => typeof Promise !== void 0 && x instanceof Promise; -var errorUtil; -(function(errorUtil2) { - errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {}; - errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message; -})(errorUtil || (errorUtil = {})); -var ParseInputLazyPath = class { - constructor(parent, value, path, key) { - this.parent = parent; - this.data = value; - this._path = path; - this._key = key; - } - get path() { - return this._path.concat(this._key); - } -}; -var handleResult = (ctx, result) => { - if (isValid(result)) { - return { success: true, data: result.value }; - } else { - if (!ctx.common.issues.length) { - throw new Error("Validation failed but no issues detected."); - } - const error = new ZodError(ctx.common.issues); - return { success: false, error }; - } -}; -function processCreateParams(params2) { - if (!params2) - return {}; - const { errorMap: errorMap2, invalid_type_error, required_error, description } = params2; - if (errorMap2 && (invalid_type_error || required_error)) { - throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`); - } - if (errorMap2) - return { errorMap: errorMap2, description }; - const customMap = (iss, ctx) => { - if (iss.code !== "invalid_type") - return { message: ctx.defaultError }; - if (typeof ctx.data === "undefined") { - return { message: required_error !== null && required_error !== void 0 ? required_error : ctx.defaultError }; - } - return { message: invalid_type_error !== null && invalid_type_error !== void 0 ? invalid_type_error : ctx.defaultError }; - }; - return { errorMap: customMap, description }; -} -var ZodType = class { - constructor(def) { - this.spa = this.safeParseAsync; - this.superRefine = this._refinement; - this._def = def; - this.parse = this.parse.bind(this); - this.safeParse = this.safeParse.bind(this); - this.parseAsync = this.parseAsync.bind(this); - this.safeParseAsync = this.safeParseAsync.bind(this); - this.spa = this.spa.bind(this); - this.refine = this.refine.bind(this); - this.refinement = this.refinement.bind(this); - this.superRefine = this.superRefine.bind(this); - this.optional = this.optional.bind(this); - this.nullable = this.nullable.bind(this); - this.nullish = this.nullish.bind(this); - this.array = this.array.bind(this); - this.promise = this.promise.bind(this); - this.or = this.or.bind(this); - this.and = this.and.bind(this); - this.transform = this.transform.bind(this); - this.default = this.default.bind(this); - this.describe = this.describe.bind(this); - this.isNullable = this.isNullable.bind(this); - this.isOptional = this.isOptional.bind(this); - } - get description() { - return this._def.description; - } - _getType(input) { - return getParsedType(input.data); - } - _getOrReturnCtx(input, ctx) { - return ctx || { - common: input.parent.common, - data: input.data, - parsedType: getParsedType(input.data), - schemaErrorMap: this._def.errorMap, - path: input.path, - parent: input.parent - }; - } - _processInputParams(input) { - return { - status: new ParseStatus(), - ctx: { - common: input.parent.common, - data: input.data, - parsedType: getParsedType(input.data), - schemaErrorMap: this._def.errorMap, - path: input.path, - parent: input.parent - } - }; - } - _parseSync(input) { - const result = this._parse(input); - if (isAsync(result)) { - throw new Error("Synchronous parse encountered promise."); - } - return result; - } - _parseAsync(input) { - const result = this._parse(input); - return Promise.resolve(result); - } - parse(data, params2) { - const result = this.safeParse(data, params2); - if (result.success) - return result.data; - throw result.error; - } - safeParse(data, params2) { - var _a; - const ctx = { - common: { - issues: [], - async: (_a = params2 === null || params2 === void 0 ? void 0 : params2.async) !== null && _a !== void 0 ? _a : false, - contextualErrorMap: params2 === null || params2 === void 0 ? void 0 : params2.errorMap - }, - path: (params2 === null || params2 === void 0 ? void 0 : params2.path) || [], - schemaErrorMap: this._def.errorMap, - parent: null, - data, - parsedType: getParsedType(data) - }; - const result = this._parseSync({ data, path: ctx.path, parent: ctx }); - return handleResult(ctx, result); - } - async parseAsync(data, params2) { - const result = await this.safeParseAsync(data, params2); - if (result.success) - return result.data; - throw result.error; - } - async safeParseAsync(data, params2) { - const ctx = { - common: { - issues: [], - contextualErrorMap: params2 === null || params2 === void 0 ? void 0 : params2.errorMap, - async: true - }, - path: (params2 === null || params2 === void 0 ? void 0 : params2.path) || [], - schemaErrorMap: this._def.errorMap, - parent: null, - data, - parsedType: getParsedType(data) - }; - const maybeAsyncResult = this._parse({ data, path: [], parent: ctx }); - const result = await (isAsync(maybeAsyncResult) ? maybeAsyncResult : Promise.resolve(maybeAsyncResult)); - return handleResult(ctx, result); - } - refine(check, message) { - const getIssueProperties = (val) => { - if (typeof message === "string" || typeof message === "undefined") { - return { message }; - } else if (typeof message === "function") { - return message(val); - } else { - return message; - } - }; - return this._refinement((val, ctx) => { - const result = check(val); - const setError = () => ctx.addIssue({ - code: ZodIssueCode.custom, - ...getIssueProperties(val) - }); - if (typeof Promise !== "undefined" && result instanceof Promise) { - return result.then((data) => { - if (!data) { - setError(); - return false; - } else { - return true; - } - }); - } - if (!result) { - setError(); - return false; - } else { - return true; - } - }); - } - refinement(check, refinementData) { - return this._refinement((val, ctx) => { - if (!check(val)) { - ctx.addIssue(typeof refinementData === "function" ? refinementData(val, ctx) : refinementData); - return false; - } else { - return true; - } - }); - } - _refinement(refinement) { - return new ZodEffects({ - schema: this, - typeName: ZodFirstPartyTypeKind.ZodEffects, - effect: { type: "refinement", refinement } - }); - } - optional() { - return ZodOptional.create(this); - } - nullable() { - return ZodNullable.create(this); - } - nullish() { - return this.optional().nullable(); - } - array() { - return ZodArray.create(this); - } - promise() { - return ZodPromise.create(this); - } - or(option) { - return ZodUnion.create([this, option]); - } - and(incoming) { - return ZodIntersection.create(this, incoming); - } - transform(transform) { - return new ZodEffects({ - schema: this, - typeName: ZodFirstPartyTypeKind.ZodEffects, - effect: { type: "transform", transform } - }); - } - default(def) { - const defaultValueFunc = typeof def === "function" ? def : () => def; - return new ZodDefault({ - innerType: this, - defaultValue: defaultValueFunc, - typeName: ZodFirstPartyTypeKind.ZodDefault - }); - } - brand() { - return new ZodBranded({ - typeName: ZodFirstPartyTypeKind.ZodBranded, - type: this, - ...processCreateParams(void 0) - }); - } - describe(description) { - const This = this.constructor; - return new This({ - ...this._def, - description - }); - } - isOptional() { - return this.safeParse(void 0).success; - } - isNullable() { - return this.safeParse(null).success; - } -}; -var cuidRegex = /^c[^\s-]{8,}$/i; -var uuidRegex = /^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i; -var emailRegex = /^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i; -var ZodString = class extends ZodType { - constructor() { - super(...arguments); - this._regex = (regex, validation, message) => this.refinement((data) => regex.test(data), { - validation, - code: ZodIssueCode.invalid_string, - ...errorUtil.errToObj(message) - }); - this.nonempty = (message) => this.min(1, errorUtil.errToObj(message)); - this.trim = () => new ZodString({ - ...this._def, - checks: [...this._def.checks, { kind: "trim" }] - }); - } - _parse(input) { - const parsedType = this._getType(input); - if (parsedType !== ZodParsedType.string) { - const ctx2 = this._getOrReturnCtx(input); - addIssueToContext( - ctx2, - { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.string, - received: ctx2.parsedType - } - ); - return INVALID; - } - const status = new ParseStatus(); - let ctx = void 0; - for (const check of this._def.checks) { - if (check.kind === "min") { - if (input.data.length < check.value) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.too_small, - minimum: check.value, - type: "string", - inclusive: true, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "max") { - if (input.data.length > check.value) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.too_big, - maximum: check.value, - type: "string", - inclusive: true, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "email") { - if (!emailRegex.test(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - validation: "email", - code: ZodIssueCode.invalid_string, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "uuid") { - if (!uuidRegex.test(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - validation: "uuid", - code: ZodIssueCode.invalid_string, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "cuid") { - if (!cuidRegex.test(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - validation: "cuid", - code: ZodIssueCode.invalid_string, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "url") { - try { - new URL(input.data); - } catch (_a) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - validation: "url", - code: ZodIssueCode.invalid_string, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "regex") { - check.regex.lastIndex = 0; - const testResult = check.regex.test(input.data); - if (!testResult) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - validation: "regex", - code: ZodIssueCode.invalid_string, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "trim") { - input.data = input.data.trim(); - } else if (check.kind === "startsWith") { - if (!input.data.startsWith(check.value)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_string, - validation: { startsWith: check.value }, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "endsWith") { - if (!input.data.endsWith(check.value)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_string, - validation: { endsWith: check.value }, - message: check.message - }); - status.dirty(); - } - } else { - util.assertNever(check); - } - } - return { status: status.value, value: input.data }; - } - _addCheck(check) { - return new ZodString({ - ...this._def, - checks: [...this._def.checks, check] - }); - } - email(message) { - return this._addCheck({ kind: "email", ...errorUtil.errToObj(message) }); - } - url(message) { - return this._addCheck({ kind: "url", ...errorUtil.errToObj(message) }); - } - uuid(message) { - return this._addCheck({ kind: "uuid", ...errorUtil.errToObj(message) }); - } - cuid(message) { - return this._addCheck({ kind: "cuid", ...errorUtil.errToObj(message) }); - } - regex(regex, message) { - return this._addCheck({ - kind: "regex", - regex, - ...errorUtil.errToObj(message) - }); - } - startsWith(value, message) { - return this._addCheck({ - kind: "startsWith", - value, - ...errorUtil.errToObj(message) - }); - } - endsWith(value, message) { - return this._addCheck({ - kind: "endsWith", - value, - ...errorUtil.errToObj(message) - }); - } - min(minLength, message) { - return this._addCheck({ - kind: "min", - value: minLength, - ...errorUtil.errToObj(message) - }); - } - max(maxLength, message) { - return this._addCheck({ - kind: "max", - value: maxLength, - ...errorUtil.errToObj(message) - }); - } - length(len, message) { - return this.min(len, message).max(len, message); - } - get isEmail() { - return !!this._def.checks.find((ch) => ch.kind === "email"); - } - get isURL() { - return !!this._def.checks.find((ch) => ch.kind === "url"); - } - get isUUID() { - return !!this._def.checks.find((ch) => ch.kind === "uuid"); - } - get isCUID() { - return !!this._def.checks.find((ch) => ch.kind === "cuid"); - } - get minLength() { - let min = null; - for (const ch of this._def.checks) { - if (ch.kind === "min") { - if (min === null || ch.value > min) - min = ch.value; - } - } - return min; - } - get maxLength() { - let max = null; - for (const ch of this._def.checks) { - if (ch.kind === "max") { - if (max === null || ch.value < max) - max = ch.value; - } - } - return max; - } -}; -ZodString.create = (params2) => { - return new ZodString({ - checks: [], - typeName: ZodFirstPartyTypeKind.ZodString, - ...processCreateParams(params2) - }); -}; -function floatSafeRemainder(val, step) { - const valDecCount = (val.toString().split(".")[1] || "").length; - const stepDecCount = (step.toString().split(".")[1] || "").length; - const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount; - const valInt = parseInt(val.toFixed(decCount).replace(".", "")); - const stepInt = parseInt(step.toFixed(decCount).replace(".", "")); - return valInt % stepInt / Math.pow(10, decCount); -} -var ZodNumber = class extends ZodType { - constructor() { - super(...arguments); - this.min = this.gte; - this.max = this.lte; - this.step = this.multipleOf; - } - _parse(input) { - const parsedType = this._getType(input); - if (parsedType !== ZodParsedType.number) { - const ctx2 = this._getOrReturnCtx(input); - addIssueToContext(ctx2, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.number, - received: ctx2.parsedType - }); - return INVALID; - } - let ctx = void 0; - const status = new ParseStatus(); - for (const check of this._def.checks) { - if (check.kind === "int") { - if (!util.isInteger(input.data)) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: "integer", - received: "float", - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "min") { - const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value; - if (tooSmall) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.too_small, - minimum: check.value, - type: "number", - inclusive: check.inclusive, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "max") { - const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value; - if (tooBig) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.too_big, - maximum: check.value, - type: "number", - inclusive: check.inclusive, - message: check.message - }); - status.dirty(); - } - } else if (check.kind === "multipleOf") { - if (floatSafeRemainder(input.data, check.value) !== 0) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.not_multiple_of, - multipleOf: check.value, - message: check.message - }); - status.dirty(); - } - } else { - util.assertNever(check); - } - } - return { status: status.value, value: input.data }; - } - gte(value, message) { - return this.setLimit("min", value, true, errorUtil.toString(message)); - } - gt(value, message) { - return this.setLimit("min", value, false, errorUtil.toString(message)); - } - lte(value, message) { - return this.setLimit("max", value, true, errorUtil.toString(message)); - } - lt(value, message) { - return this.setLimit("max", value, false, errorUtil.toString(message)); - } - setLimit(kind, value, inclusive, message) { - return new ZodNumber({ - ...this._def, - checks: [ - ...this._def.checks, - { - kind, - value, - inclusive, - message: errorUtil.toString(message) - } - ] - }); - } - _addCheck(check) { - return new ZodNumber({ - ...this._def, - checks: [...this._def.checks, check] - }); - } - int(message) { - return this._addCheck({ - kind: "int", - message: errorUtil.toString(message) - }); - } - positive(message) { - return this._addCheck({ - kind: "min", - value: 0, - inclusive: false, - message: errorUtil.toString(message) - }); - } - negative(message) { - return this._addCheck({ - kind: "max", - value: 0, - inclusive: false, - message: errorUtil.toString(message) - }); - } - nonpositive(message) { - return this._addCheck({ - kind: "max", - value: 0, - inclusive: true, - message: errorUtil.toString(message) - }); - } - nonnegative(message) { - return this._addCheck({ - kind: "min", - value: 0, - inclusive: true, - message: errorUtil.toString(message) - }); - } - multipleOf(value, message) { - return this._addCheck({ - kind: "multipleOf", - value, - message: errorUtil.toString(message) - }); - } - get minValue() { - let min = null; - for (const ch of this._def.checks) { - if (ch.kind === "min") { - if (min === null || ch.value > min) - min = ch.value; - } - } - return min; - } - get maxValue() { - let max = null; - for (const ch of this._def.checks) { - if (ch.kind === "max") { - if (max === null || ch.value < max) - max = ch.value; - } - } - return max; - } - get isInt() { - return !!this._def.checks.find((ch) => ch.kind === "int"); - } -}; -ZodNumber.create = (params2) => { - return new ZodNumber({ - checks: [], - typeName: ZodFirstPartyTypeKind.ZodNumber, - ...processCreateParams(params2) - }); -}; -var ZodBigInt = class extends ZodType { - _parse(input) { - const parsedType = this._getType(input); - if (parsedType !== ZodParsedType.bigint) { - const ctx = this._getOrReturnCtx(input); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.bigint, - received: ctx.parsedType - }); - return INVALID; - } - return OK(input.data); - } -}; -ZodBigInt.create = (params2) => { - return new ZodBigInt({ - typeName: ZodFirstPartyTypeKind.ZodBigInt, - ...processCreateParams(params2) - }); -}; -var ZodBoolean = class extends ZodType { - _parse(input) { - const parsedType = this._getType(input); - if (parsedType !== ZodParsedType.boolean) { - const ctx = this._getOrReturnCtx(input); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.boolean, - received: ctx.parsedType - }); - return INVALID; - } - return OK(input.data); - } -}; -ZodBoolean.create = (params2) => { - return new ZodBoolean({ - typeName: ZodFirstPartyTypeKind.ZodBoolean, - ...processCreateParams(params2) - }); -}; -var ZodDate = class extends ZodType { - _parse(input) { - const parsedType = this._getType(input); - if (parsedType !== ZodParsedType.date) { - const ctx2 = this._getOrReturnCtx(input); - addIssueToContext(ctx2, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.date, - received: ctx2.parsedType - }); - return INVALID; - } - if (isNaN(input.data.getTime())) { - const ctx2 = this._getOrReturnCtx(input); - addIssueToContext(ctx2, { - code: ZodIssueCode.invalid_date - }); - return INVALID; - } - const status = new ParseStatus(); - let ctx = void 0; - for (const check of this._def.checks) { - if (check.kind === "min") { - if (input.data.getTime() < check.value) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.too_small, - message: check.message, - inclusive: true, - minimum: check.value, - type: "date" - }); - status.dirty(); - } - } else if (check.kind === "max") { - if (input.data.getTime() > check.value) { - ctx = this._getOrReturnCtx(input, ctx); - addIssueToContext(ctx, { - code: ZodIssueCode.too_big, - message: check.message, - inclusive: true, - maximum: check.value, - type: "date" - }); - status.dirty(); - } - } else { - util.assertNever(check); - } - } - return { - status: status.value, - value: new Date(input.data.getTime()) - }; - } - _addCheck(check) { - return new ZodDate({ - ...this._def, - checks: [...this._def.checks, check] - }); - } - min(minDate, message) { - return this._addCheck({ - kind: "min", - value: minDate.getTime(), - message: errorUtil.toString(message) - }); - } - max(maxDate, message) { - return this._addCheck({ - kind: "max", - value: maxDate.getTime(), - message: errorUtil.toString(message) - }); - } - get minDate() { - let min = null; - for (const ch of this._def.checks) { - if (ch.kind === "min") { - if (min === null || ch.value > min) - min = ch.value; - } - } - return min != null ? new Date(min) : null; - } - get maxDate() { - let max = null; - for (const ch of this._def.checks) { - if (ch.kind === "max") { - if (max === null || ch.value < max) - max = ch.value; - } - } - return max != null ? new Date(max) : null; - } -}; -ZodDate.create = (params2) => { - return new ZodDate({ - checks: [], - typeName: ZodFirstPartyTypeKind.ZodDate, - ...processCreateParams(params2) - }); -}; -var ZodUndefined = class extends ZodType { - _parse(input) { - const parsedType = this._getType(input); - if (parsedType !== ZodParsedType.undefined) { - const ctx = this._getOrReturnCtx(input); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.undefined, - received: ctx.parsedType - }); - return INVALID; - } - return OK(input.data); - } -}; -ZodUndefined.create = (params2) => { - return new ZodUndefined({ - typeName: ZodFirstPartyTypeKind.ZodUndefined, - ...processCreateParams(params2) - }); -}; -var ZodNull = class extends ZodType { - _parse(input) { - const parsedType = this._getType(input); - if (parsedType !== ZodParsedType.null) { - const ctx = this._getOrReturnCtx(input); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.null, - received: ctx.parsedType - }); - return INVALID; - } - return OK(input.data); - } -}; -ZodNull.create = (params2) => { - return new ZodNull({ - typeName: ZodFirstPartyTypeKind.ZodNull, - ...processCreateParams(params2) - }); -}; -var ZodAny = class extends ZodType { - constructor() { - super(...arguments); - this._any = true; - } - _parse(input) { - return OK(input.data); - } -}; -ZodAny.create = (params2) => { - return new ZodAny({ - typeName: ZodFirstPartyTypeKind.ZodAny, - ...processCreateParams(params2) - }); -}; -var ZodUnknown = class extends ZodType { - constructor() { - super(...arguments); - this._unknown = true; - } - _parse(input) { - return OK(input.data); - } -}; -ZodUnknown.create = (params2) => { - return new ZodUnknown({ - typeName: ZodFirstPartyTypeKind.ZodUnknown, - ...processCreateParams(params2) - }); -}; -var ZodNever = class extends ZodType { - _parse(input) { - const ctx = this._getOrReturnCtx(input); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.never, - received: ctx.parsedType - }); - return INVALID; - } -}; -ZodNever.create = (params2) => { - return new ZodNever({ - typeName: ZodFirstPartyTypeKind.ZodNever, - ...processCreateParams(params2) - }); -}; -var ZodVoid = class extends ZodType { - _parse(input) { - const parsedType = this._getType(input); - if (parsedType !== ZodParsedType.undefined) { - const ctx = this._getOrReturnCtx(input); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.void, - received: ctx.parsedType - }); - return INVALID; - } - return OK(input.data); - } -}; -ZodVoid.create = (params2) => { - return new ZodVoid({ - typeName: ZodFirstPartyTypeKind.ZodVoid, - ...processCreateParams(params2) - }); -}; -var ZodArray = class extends ZodType { - _parse(input) { - const { ctx, status } = this._processInputParams(input); - const def = this._def; - if (ctx.parsedType !== ZodParsedType.array) { - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.array, - received: ctx.parsedType - }); - return INVALID; - } - if (def.minLength !== null) { - if (ctx.data.length < def.minLength.value) { - addIssueToContext(ctx, { - code: ZodIssueCode.too_small, - minimum: def.minLength.value, - type: "array", - inclusive: true, - message: def.minLength.message - }); - status.dirty(); - } - } - if (def.maxLength !== null) { - if (ctx.data.length > def.maxLength.value) { - addIssueToContext(ctx, { - code: ZodIssueCode.too_big, - maximum: def.maxLength.value, - type: "array", - inclusive: true, - message: def.maxLength.message - }); - status.dirty(); - } - } - if (ctx.common.async) { - return Promise.all(ctx.data.map((item, i) => { - return def.type._parseAsync(new ParseInputLazyPath(ctx, item, ctx.path, i)); - })).then((result2) => { - return ParseStatus.mergeArray(status, result2); - }); - } - const result = ctx.data.map((item, i) => { - return def.type._parseSync(new ParseInputLazyPath(ctx, item, ctx.path, i)); - }); - return ParseStatus.mergeArray(status, result); - } - get element() { - return this._def.type; - } - min(minLength, message) { - return new ZodArray({ - ...this._def, - minLength: { value: minLength, message: errorUtil.toString(message) } - }); - } - max(maxLength, message) { - return new ZodArray({ - ...this._def, - maxLength: { value: maxLength, message: errorUtil.toString(message) } - }); - } - length(len, message) { - return this.min(len, message).max(len, message); - } - nonempty(message) { - return this.min(1, message); - } -}; -ZodArray.create = (schema, params2) => { - return new ZodArray({ - type: schema, - minLength: null, - maxLength: null, - typeName: ZodFirstPartyTypeKind.ZodArray, - ...processCreateParams(params2) - }); -}; -var objectUtil; -(function(objectUtil2) { - objectUtil2.mergeShapes = (first, second) => { - return { - ...first, - ...second - }; - }; -})(objectUtil || (objectUtil = {})); -var AugmentFactory = (def) => (augmentation) => { - return new ZodObject({ - ...def, - shape: () => ({ - ...def.shape(), - ...augmentation - }) - }); -}; -function deepPartialify(schema) { - if (schema instanceof ZodObject) { - const newShape = {}; - for (const key in schema.shape) { - const fieldSchema = schema.shape[key]; - newShape[key] = ZodOptional.create(deepPartialify(fieldSchema)); - } - return new ZodObject({ - ...schema._def, - shape: () => newShape - }); - } else if (schema instanceof ZodArray) { - return ZodArray.create(deepPartialify(schema.element)); - } else if (schema instanceof ZodOptional) { - return ZodOptional.create(deepPartialify(schema.unwrap())); - } else if (schema instanceof ZodNullable) { - return ZodNullable.create(deepPartialify(schema.unwrap())); - } else if (schema instanceof ZodTuple) { - return ZodTuple.create(schema.items.map((item) => deepPartialify(item))); - } else { - return schema; - } -} -var ZodObject = class extends ZodType { - constructor() { - super(...arguments); - this._cached = null; - this.nonstrict = this.passthrough; - this.augment = AugmentFactory(this._def); - this.extend = AugmentFactory(this._def); - } - _getCached() { - if (this._cached !== null) - return this._cached; - const shape = this._def.shape(); - const keys = util.objectKeys(shape); - return this._cached = { shape, keys }; - } - _parse(input) { - const parsedType = this._getType(input); - if (parsedType !== ZodParsedType.object) { - const ctx2 = this._getOrReturnCtx(input); - addIssueToContext(ctx2, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.object, - received: ctx2.parsedType - }); - return INVALID; - } - const { status, ctx } = this._processInputParams(input); - const { shape, keys: shapeKeys } = this._getCached(); - const extraKeys = []; - if (!(this._def.catchall instanceof ZodNever && this._def.unknownKeys === "strip")) { - for (const key in ctx.data) { - if (!shapeKeys.includes(key)) { - extraKeys.push(key); - } - } - } - const pairs = []; - for (const key of shapeKeys) { - const keyValidator = shape[key]; - const value = ctx.data[key]; - pairs.push({ - key: { status: "valid", value: key }, - value: keyValidator._parse(new ParseInputLazyPath(ctx, value, ctx.path, key)), - alwaysSet: key in ctx.data - }); - } - if (this._def.catchall instanceof ZodNever) { - const unknownKeys = this._def.unknownKeys; - if (unknownKeys === "passthrough") { - for (const key of extraKeys) { - pairs.push({ - key: { status: "valid", value: key }, - value: { status: "valid", value: ctx.data[key] } - }); - } - } else if (unknownKeys === "strict") { - if (extraKeys.length > 0) { - addIssueToContext(ctx, { - code: ZodIssueCode.unrecognized_keys, - keys: extraKeys - }); - status.dirty(); - } - } else if (unknownKeys === "strip") - ; - else { - throw new Error(`Internal ZodObject error: invalid unknownKeys value.`); - } - } else { - const catchall = this._def.catchall; - for (const key of extraKeys) { - const value = ctx.data[key]; - pairs.push({ - key: { status: "valid", value: key }, - value: catchall._parse( - new ParseInputLazyPath(ctx, value, ctx.path, key) - ), - alwaysSet: key in ctx.data - }); - } - } - if (ctx.common.async) { - return Promise.resolve().then(async () => { - const syncPairs = []; - for (const pair of pairs) { - const key = await pair.key; - syncPairs.push({ - key, - value: await pair.value, - alwaysSet: pair.alwaysSet - }); - } - return syncPairs; - }).then((syncPairs) => { - return ParseStatus.mergeObjectSync(status, syncPairs); - }); - } else { - return ParseStatus.mergeObjectSync(status, pairs); - } - } - get shape() { - return this._def.shape(); - } - strict(message) { - errorUtil.errToObj; - return new ZodObject({ - ...this._def, - unknownKeys: "strict", - ...message !== void 0 ? { - errorMap: (issue, ctx) => { - var _a, _b, _c, _d; - const defaultError = (_c = (_b = (_a = this._def).errorMap) === null || _b === void 0 ? void 0 : _b.call(_a, issue, ctx).message) !== null && _c !== void 0 ? _c : ctx.defaultError; - if (issue.code === "unrecognized_keys") - return { - message: (_d = errorUtil.errToObj(message).message) !== null && _d !== void 0 ? _d : defaultError - }; - return { - message: defaultError - }; - } - } : {} - }); - } - strip() { - return new ZodObject({ - ...this._def, - unknownKeys: "strip" - }); - } - passthrough() { - return new ZodObject({ - ...this._def, - unknownKeys: "passthrough" - }); - } - setKey(key, schema) { - return this.augment({ [key]: schema }); - } - merge(merging) { - const merged = new ZodObject({ - unknownKeys: merging._def.unknownKeys, - catchall: merging._def.catchall, - shape: () => objectUtil.mergeShapes(this._def.shape(), merging._def.shape()), - typeName: ZodFirstPartyTypeKind.ZodObject - }); - return merged; - } - catchall(index) { - return new ZodObject({ - ...this._def, - catchall: index - }); - } - pick(mask) { - const shape = {}; - util.objectKeys(mask).map((key) => { - if (this.shape[key]) - shape[key] = this.shape[key]; - }); - return new ZodObject({ - ...this._def, - shape: () => shape - }); - } - omit(mask) { - const shape = {}; - util.objectKeys(this.shape).map((key) => { - if (util.objectKeys(mask).indexOf(key) === -1) { - shape[key] = this.shape[key]; - } - }); - return new ZodObject({ - ...this._def, - shape: () => shape - }); - } - deepPartial() { - return deepPartialify(this); - } - partial(mask) { - const newShape = {}; - if (mask) { - util.objectKeys(this.shape).map((key) => { - if (util.objectKeys(mask).indexOf(key) === -1) { - newShape[key] = this.shape[key]; - } else { - newShape[key] = this.shape[key].optional(); - } - }); - return new ZodObject({ - ...this._def, - shape: () => newShape - }); - } else { - for (const key in this.shape) { - const fieldSchema = this.shape[key]; - newShape[key] = fieldSchema.optional(); - } - } - return new ZodObject({ - ...this._def, - shape: () => newShape - }); - } - required() { - const newShape = {}; - for (const key in this.shape) { - const fieldSchema = this.shape[key]; - let newField = fieldSchema; - while (newField instanceof ZodOptional) { - newField = newField._def.innerType; - } - newShape[key] = newField; - } - return new ZodObject({ - ...this._def, - shape: () => newShape - }); - } - keyof() { - return createZodEnum(util.objectKeys(this.shape)); - } -}; -ZodObject.create = (shape, params2) => { - return new ZodObject({ - shape: () => shape, - unknownKeys: "strip", - catchall: ZodNever.create(), - typeName: ZodFirstPartyTypeKind.ZodObject, - ...processCreateParams(params2) - }); -}; -ZodObject.strictCreate = (shape, params2) => { - return new ZodObject({ - shape: () => shape, - unknownKeys: "strict", - catchall: ZodNever.create(), - typeName: ZodFirstPartyTypeKind.ZodObject, - ...processCreateParams(params2) - }); -}; -ZodObject.lazycreate = (shape, params2) => { - return new ZodObject({ - shape, - unknownKeys: "strip", - catchall: ZodNever.create(), - typeName: ZodFirstPartyTypeKind.ZodObject, - ...processCreateParams(params2) - }); -}; -var ZodUnion = class extends ZodType { - _parse(input) { - const { ctx } = this._processInputParams(input); - const options = this._def.options; - function handleResults(results) { - for (const result of results) { - if (result.result.status === "valid") { - return result.result; - } - } - for (const result of results) { - if (result.result.status === "dirty") { - ctx.common.issues.push(...result.ctx.common.issues); - return result.result; - } - } - const unionErrors = results.map((result) => new ZodError(result.ctx.common.issues)); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_union, - unionErrors - }); - return INVALID; - } - if (ctx.common.async) { - return Promise.all(options.map(async (option) => { - const childCtx = { - ...ctx, - common: { - ...ctx.common, - issues: [] - }, - parent: null - }; - return { - result: await option._parseAsync({ - data: ctx.data, - path: ctx.path, - parent: childCtx - }), - ctx: childCtx - }; - })).then(handleResults); - } else { - let dirty = void 0; - const issues = []; - for (const option of options) { - const childCtx = { - ...ctx, - common: { - ...ctx.common, - issues: [] - }, - parent: null - }; - const result = option._parseSync({ - data: ctx.data, - path: ctx.path, - parent: childCtx - }); - if (result.status === "valid") { - return result; - } else if (result.status === "dirty" && !dirty) { - dirty = { result, ctx: childCtx }; - } - if (childCtx.common.issues.length) { - issues.push(childCtx.common.issues); - } - } - if (dirty) { - ctx.common.issues.push(...dirty.ctx.common.issues); - return dirty.result; - } - const unionErrors = issues.map((issues2) => new ZodError(issues2)); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_union, - unionErrors - }); - return INVALID; - } - } - get options() { - return this._def.options; - } -}; -ZodUnion.create = (types, params2) => { - return new ZodUnion({ - options: types, - typeName: ZodFirstPartyTypeKind.ZodUnion, - ...processCreateParams(params2) - }); -}; -var ZodDiscriminatedUnion = class extends ZodType { - _parse(input) { - const { ctx } = this._processInputParams(input); - if (ctx.parsedType !== ZodParsedType.object) { - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.object, - received: ctx.parsedType - }); - return INVALID; - } - const discriminator = this.discriminator; - const discriminatorValue = ctx.data[discriminator]; - const option = this.options.get(discriminatorValue); - if (!option) { - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_union_discriminator, - options: this.validDiscriminatorValues, - path: [discriminator] - }); - return INVALID; - } - if (ctx.common.async) { - return option._parseAsync({ - data: ctx.data, - path: ctx.path, - parent: ctx - }); - } else { - return option._parseSync({ - data: ctx.data, - path: ctx.path, - parent: ctx - }); - } - } - get discriminator() { - return this._def.discriminator; - } - get validDiscriminatorValues() { - return Array.from(this.options.keys()); - } - get options() { - return this._def.options; - } - static create(discriminator, types, params2) { - const options = /* @__PURE__ */ new Map(); - try { - types.forEach((type) => { - const discriminatorValue = type.shape[discriminator].value; - options.set(discriminatorValue, type); - }); - } catch (e) { - throw new Error("The discriminator value could not be extracted from all the provided schemas"); - } - if (options.size !== types.length) { - throw new Error("Some of the discriminator values are not unique"); - } - return new ZodDiscriminatedUnion({ - typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion, - discriminator, - options, - ...processCreateParams(params2) - }); - } -}; -function mergeValues(a, b) { - const aType = getParsedType(a); - const bType = getParsedType(b); - if (a === b) { - return { valid: true, data: a }; - } else if (aType === ZodParsedType.object && bType === ZodParsedType.object) { - const bKeys = util.objectKeys(b); - const sharedKeys = util.objectKeys(a).filter((key) => bKeys.indexOf(key) !== -1); - const newObj = { ...a, ...b }; - for (const key of sharedKeys) { - const sharedValue = mergeValues(a[key], b[key]); - if (!sharedValue.valid) { - return { valid: false }; - } - newObj[key] = sharedValue.data; - } - return { valid: true, data: newObj }; - } else if (aType === ZodParsedType.array && bType === ZodParsedType.array) { - if (a.length !== b.length) { - return { valid: false }; - } - const newArray = []; - for (let index = 0; index < a.length; index++) { - const itemA = a[index]; - const itemB = b[index]; - const sharedValue = mergeValues(itemA, itemB); - if (!sharedValue.valid) { - return { valid: false }; - } - newArray.push(sharedValue.data); - } - return { valid: true, data: newArray }; - } else if (aType === ZodParsedType.date && bType === ZodParsedType.date && +a === +b) { - return { valid: true, data: a }; - } else { - return { valid: false }; - } -} -var ZodIntersection = class extends ZodType { - _parse(input) { - const { status, ctx } = this._processInputParams(input); - const handleParsed = (parsedLeft, parsedRight) => { - if (isAborted(parsedLeft) || isAborted(parsedRight)) { - return INVALID; - } - const merged = mergeValues(parsedLeft.value, parsedRight.value); - if (!merged.valid) { - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_intersection_types - }); - return INVALID; - } - if (isDirty(parsedLeft) || isDirty(parsedRight)) { - status.dirty(); - } - return { status: status.value, value: merged.data }; - }; - if (ctx.common.async) { - return Promise.all([ - this._def.left._parseAsync({ - data: ctx.data, - path: ctx.path, - parent: ctx - }), - this._def.right._parseAsync({ - data: ctx.data, - path: ctx.path, - parent: ctx - }) - ]).then(([left, right]) => handleParsed(left, right)); - } else { - return handleParsed(this._def.left._parseSync({ - data: ctx.data, - path: ctx.path, - parent: ctx - }), this._def.right._parseSync({ - data: ctx.data, - path: ctx.path, - parent: ctx - })); - } - } -}; -ZodIntersection.create = (left, right, params2) => { - return new ZodIntersection({ - left, - right, - typeName: ZodFirstPartyTypeKind.ZodIntersection, - ...processCreateParams(params2) - }); -}; -var ZodTuple = class extends ZodType { - _parse(input) { - const { status, ctx } = this._processInputParams(input); - if (ctx.parsedType !== ZodParsedType.array) { - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.array, - received: ctx.parsedType - }); - return INVALID; - } - if (ctx.data.length < this._def.items.length) { - addIssueToContext(ctx, { - code: ZodIssueCode.too_small, - minimum: this._def.items.length, - inclusive: true, - type: "array" - }); - return INVALID; - } - const rest = this._def.rest; - if (!rest && ctx.data.length > this._def.items.length) { - addIssueToContext(ctx, { - code: ZodIssueCode.too_big, - maximum: this._def.items.length, - inclusive: true, - type: "array" - }); - status.dirty(); - } - const items = ctx.data.map((item, itemIndex) => { - const schema = this._def.items[itemIndex] || this._def.rest; - if (!schema) - return null; - return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex)); - }).filter((x) => !!x); - if (ctx.common.async) { - return Promise.all(items).then((results) => { - return ParseStatus.mergeArray(status, results); - }); - } else { - return ParseStatus.mergeArray(status, items); - } - } - get items() { - return this._def.items; - } - rest(rest) { - return new ZodTuple({ - ...this._def, - rest - }); - } -}; -ZodTuple.create = (schemas2, params2) => { - if (!Array.isArray(schemas2)) { - throw new Error("You must pass an array of schemas to z.tuple([ ... ])"); - } - return new ZodTuple({ - items: schemas2, - typeName: ZodFirstPartyTypeKind.ZodTuple, - rest: null, - ...processCreateParams(params2) - }); -}; -var ZodRecord = class extends ZodType { - get keySchema() { - return this._def.keyType; - } - get valueSchema() { - return this._def.valueType; - } - _parse(input) { - const { status, ctx } = this._processInputParams(input); - if (ctx.parsedType !== ZodParsedType.object) { - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.object, - received: ctx.parsedType - }); - return INVALID; - } - const pairs = []; - const keyType = this._def.keyType; - const valueType = this._def.valueType; - for (const key in ctx.data) { - pairs.push({ - key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, key)), - value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key], ctx.path, key)) - }); - } - if (ctx.common.async) { - return ParseStatus.mergeObjectAsync(status, pairs); - } else { - return ParseStatus.mergeObjectSync(status, pairs); - } - } - get element() { - return this._def.valueType; - } - static create(first, second, third) { - if (second instanceof ZodType) { - return new ZodRecord({ - keyType: first, - valueType: second, - typeName: ZodFirstPartyTypeKind.ZodRecord, - ...processCreateParams(third) - }); - } - return new ZodRecord({ - keyType: ZodString.create(), - valueType: first, - typeName: ZodFirstPartyTypeKind.ZodRecord, - ...processCreateParams(second) - }); - } -}; -var ZodMap = class extends ZodType { - _parse(input) { - const { status, ctx } = this._processInputParams(input); - if (ctx.parsedType !== ZodParsedType.map) { - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.map, - received: ctx.parsedType - }); - return INVALID; - } - const keyType = this._def.keyType; - const valueType = this._def.valueType; - const pairs = [...ctx.data.entries()].map(([key, value], index) => { - return { - key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, [index, "key"])), - value: valueType._parse(new ParseInputLazyPath(ctx, value, ctx.path, [index, "value"])) - }; - }); - if (ctx.common.async) { - const finalMap = /* @__PURE__ */ new Map(); - return Promise.resolve().then(async () => { - for (const pair of pairs) { - const key = await pair.key; - const value = await pair.value; - if (key.status === "aborted" || value.status === "aborted") { - return INVALID; - } - if (key.status === "dirty" || value.status === "dirty") { - status.dirty(); - } - finalMap.set(key.value, value.value); - } - return { status: status.value, value: finalMap }; - }); - } else { - const finalMap = /* @__PURE__ */ new Map(); - for (const pair of pairs) { - const key = pair.key; - const value = pair.value; - if (key.status === "aborted" || value.status === "aborted") { - return INVALID; - } - if (key.status === "dirty" || value.status === "dirty") { - status.dirty(); - } - finalMap.set(key.value, value.value); - } - return { status: status.value, value: finalMap }; - } - } -}; -ZodMap.create = (keyType, valueType, params2) => { - return new ZodMap({ - valueType, - keyType, - typeName: ZodFirstPartyTypeKind.ZodMap, - ...processCreateParams(params2) - }); -}; -var ZodSet = class extends ZodType { - _parse(input) { - const { status, ctx } = this._processInputParams(input); - if (ctx.parsedType !== ZodParsedType.set) { - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.set, - received: ctx.parsedType - }); - return INVALID; - } - const def = this._def; - if (def.minSize !== null) { - if (ctx.data.size < def.minSize.value) { - addIssueToContext(ctx, { - code: ZodIssueCode.too_small, - minimum: def.minSize.value, - type: "set", - inclusive: true, - message: def.minSize.message - }); - status.dirty(); - } - } - if (def.maxSize !== null) { - if (ctx.data.size > def.maxSize.value) { - addIssueToContext(ctx, { - code: ZodIssueCode.too_big, - maximum: def.maxSize.value, - type: "set", - inclusive: true, - message: def.maxSize.message - }); - status.dirty(); - } - } - const valueType = this._def.valueType; - function finalizeSet(elements2) { - const parsedSet = /* @__PURE__ */ new Set(); - for (const element of elements2) { - if (element.status === "aborted") - return INVALID; - if (element.status === "dirty") - status.dirty(); - parsedSet.add(element.value); - } - return { status: status.value, value: parsedSet }; - } - const elements = [...ctx.data.values()].map((item, i) => valueType._parse(new ParseInputLazyPath(ctx, item, ctx.path, i))); - if (ctx.common.async) { - return Promise.all(elements).then((elements2) => finalizeSet(elements2)); - } else { - return finalizeSet(elements); - } - } - min(minSize, message) { - return new ZodSet({ - ...this._def, - minSize: { value: minSize, message: errorUtil.toString(message) } - }); - } - max(maxSize, message) { - return new ZodSet({ - ...this._def, - maxSize: { value: maxSize, message: errorUtil.toString(message) } - }); - } - size(size, message) { - return this.min(size, message).max(size, message); - } - nonempty(message) { - return this.min(1, message); - } -}; -ZodSet.create = (valueType, params2) => { - return new ZodSet({ - valueType, - minSize: null, - maxSize: null, - typeName: ZodFirstPartyTypeKind.ZodSet, - ...processCreateParams(params2) - }); -}; -var ZodFunction = class extends ZodType { - constructor() { - super(...arguments); - this.validate = this.implement; - } - _parse(input) { - const { ctx } = this._processInputParams(input); - if (ctx.parsedType !== ZodParsedType.function) { - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.function, - received: ctx.parsedType - }); - return INVALID; - } - function makeArgsIssue(args, error) { - return makeIssue({ - data: args, - path: ctx.path, - errorMaps: [ - ctx.common.contextualErrorMap, - ctx.schemaErrorMap, - getErrorMap(), - errorMap - ].filter((x) => !!x), - issueData: { - code: ZodIssueCode.invalid_arguments, - argumentsError: error - } - }); - } - function makeReturnsIssue(returns, error) { - return makeIssue({ - data: returns, - path: ctx.path, - errorMaps: [ - ctx.common.contextualErrorMap, - ctx.schemaErrorMap, - getErrorMap(), - errorMap - ].filter((x) => !!x), - issueData: { - code: ZodIssueCode.invalid_return_type, - returnTypeError: error - } - }); - } - const params2 = { errorMap: ctx.common.contextualErrorMap }; - const fn = ctx.data; - if (this._def.returns instanceof ZodPromise) { - return OK(async (...args) => { - const error = new ZodError([]); - const parsedArgs = await this._def.args.parseAsync(args, params2).catch((e) => { - error.addIssue(makeArgsIssue(args, e)); - throw error; - }); - const result = await fn(...parsedArgs); - const parsedReturns = await this._def.returns._def.type.parseAsync(result, params2).catch((e) => { - error.addIssue(makeReturnsIssue(result, e)); - throw error; - }); - return parsedReturns; - }); - } else { - return OK((...args) => { - const parsedArgs = this._def.args.safeParse(args, params2); - if (!parsedArgs.success) { - throw new ZodError([makeArgsIssue(args, parsedArgs.error)]); - } - const result = fn(...parsedArgs.data); - const parsedReturns = this._def.returns.safeParse(result, params2); - if (!parsedReturns.success) { - throw new ZodError([makeReturnsIssue(result, parsedReturns.error)]); - } - return parsedReturns.data; - }); - } - } - parameters() { - return this._def.args; - } - returnType() { - return this._def.returns; - } - args(...items) { - return new ZodFunction({ - ...this._def, - args: ZodTuple.create(items).rest(ZodUnknown.create()) - }); - } - returns(returnType) { - return new ZodFunction({ - ...this._def, - returns: returnType - }); - } - implement(func) { - const validatedFunc = this.parse(func); - return validatedFunc; - } - strictImplement(func) { - const validatedFunc = this.parse(func); - return validatedFunc; - } - static create(args, returns, params2) { - return new ZodFunction({ - args: args ? args : ZodTuple.create([]).rest(ZodUnknown.create()), - returns: returns || ZodUnknown.create(), - typeName: ZodFirstPartyTypeKind.ZodFunction, - ...processCreateParams(params2) - }); - } -}; -var ZodLazy = class extends ZodType { - get schema() { - return this._def.getter(); - } - _parse(input) { - const { ctx } = this._processInputParams(input); - const lazySchema = this._def.getter(); - return lazySchema._parse({ data: ctx.data, path: ctx.path, parent: ctx }); - } -}; -ZodLazy.create = (getter, params2) => { - return new ZodLazy({ - getter, - typeName: ZodFirstPartyTypeKind.ZodLazy, - ...processCreateParams(params2) - }); -}; -var ZodLiteral = class extends ZodType { - _parse(input) { - if (input.data !== this._def.value) { - const ctx = this._getOrReturnCtx(input); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_literal, - expected: this._def.value - }); - return INVALID; - } - return { status: "valid", value: input.data }; - } - get value() { - return this._def.value; - } -}; -ZodLiteral.create = (value, params2) => { - return new ZodLiteral({ - value, - typeName: ZodFirstPartyTypeKind.ZodLiteral, - ...processCreateParams(params2) - }); -}; -function createZodEnum(values, params2) { - return new ZodEnum({ - values, - typeName: ZodFirstPartyTypeKind.ZodEnum, - ...processCreateParams(params2) - }); -} -var ZodEnum = class extends ZodType { - _parse(input) { - if (typeof input.data !== "string") { - const ctx = this._getOrReturnCtx(input); - const expectedValues = this._def.values; - addIssueToContext(ctx, { - expected: util.joinValues(expectedValues), - received: ctx.parsedType, - code: ZodIssueCode.invalid_type - }); - return INVALID; - } - if (this._def.values.indexOf(input.data) === -1) { - const ctx = this._getOrReturnCtx(input); - const expectedValues = this._def.values; - addIssueToContext(ctx, { - received: ctx.data, - code: ZodIssueCode.invalid_enum_value, - options: expectedValues - }); - return INVALID; - } - return OK(input.data); - } - get options() { - return this._def.values; - } - get enum() { - const enumValues = {}; - for (const val of this._def.values) { - enumValues[val] = val; - } - return enumValues; - } - get Values() { - const enumValues = {}; - for (const val of this._def.values) { - enumValues[val] = val; - } - return enumValues; - } - get Enum() { - const enumValues = {}; - for (const val of this._def.values) { - enumValues[val] = val; - } - return enumValues; - } -}; -ZodEnum.create = createZodEnum; -var ZodNativeEnum = class extends ZodType { - _parse(input) { - const nativeEnumValues = util.getValidEnumValues(this._def.values); - const ctx = this._getOrReturnCtx(input); - if (ctx.parsedType !== ZodParsedType.string && ctx.parsedType !== ZodParsedType.number) { - const expectedValues = util.objectValues(nativeEnumValues); - addIssueToContext(ctx, { - expected: util.joinValues(expectedValues), - received: ctx.parsedType, - code: ZodIssueCode.invalid_type - }); - return INVALID; - } - if (nativeEnumValues.indexOf(input.data) === -1) { - const expectedValues = util.objectValues(nativeEnumValues); - addIssueToContext(ctx, { - received: ctx.data, - code: ZodIssueCode.invalid_enum_value, - options: expectedValues - }); - return INVALID; - } - return OK(input.data); - } - get enum() { - return this._def.values; - } -}; -ZodNativeEnum.create = (values, params2) => { - return new ZodNativeEnum({ - values, - typeName: ZodFirstPartyTypeKind.ZodNativeEnum, - ...processCreateParams(params2) - }); -}; -var ZodPromise = class extends ZodType { - _parse(input) { - const { ctx } = this._processInputParams(input); - if (ctx.parsedType !== ZodParsedType.promise && ctx.common.async === false) { - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.promise, - received: ctx.parsedType - }); - return INVALID; - } - const promisified = ctx.parsedType === ZodParsedType.promise ? ctx.data : Promise.resolve(ctx.data); - return OK(promisified.then((data) => { - return this._def.type.parseAsync(data, { - path: ctx.path, - errorMap: ctx.common.contextualErrorMap - }); - })); - } -}; -ZodPromise.create = (schema, params2) => { - return new ZodPromise({ - type: schema, - typeName: ZodFirstPartyTypeKind.ZodPromise, - ...processCreateParams(params2) - }); -}; -var ZodEffects = class extends ZodType { - innerType() { - return this._def.schema; - } - _parse(input) { - const { status, ctx } = this._processInputParams(input); - const effect = this._def.effect || null; - if (effect.type === "preprocess") { - const processed = effect.transform(ctx.data); - if (ctx.common.async) { - return Promise.resolve(processed).then((processed2) => { - return this._def.schema._parseAsync({ - data: processed2, - path: ctx.path, - parent: ctx - }); - }); - } else { - return this._def.schema._parseSync({ - data: processed, - path: ctx.path, - parent: ctx - }); - } - } - const checkCtx = { - addIssue: (arg) => { - addIssueToContext(ctx, arg); - if (arg.fatal) { - status.abort(); - } else { - status.dirty(); - } - }, - get path() { - return ctx.path; - } - }; - checkCtx.addIssue = checkCtx.addIssue.bind(checkCtx); - if (effect.type === "refinement") { - const executeRefinement = (acc) => { - const result = effect.refinement(acc, checkCtx); - if (ctx.common.async) { - return Promise.resolve(result); - } - if (result instanceof Promise) { - throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead."); - } - return acc; - }; - if (ctx.common.async === false) { - const inner = this._def.schema._parseSync({ - data: ctx.data, - path: ctx.path, - parent: ctx - }); - if (inner.status === "aborted") - return INVALID; - if (inner.status === "dirty") - status.dirty(); - executeRefinement(inner.value); - return { status: status.value, value: inner.value }; - } else { - return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((inner) => { - if (inner.status === "aborted") - return INVALID; - if (inner.status === "dirty") - status.dirty(); - return executeRefinement(inner.value).then(() => { - return { status: status.value, value: inner.value }; - }); - }); - } - } - if (effect.type === "transform") { - if (ctx.common.async === false) { - const base = this._def.schema._parseSync({ - data: ctx.data, - path: ctx.path, - parent: ctx - }); - if (!isValid(base)) - return base; - const result = effect.transform(base.value, checkCtx); - if (result instanceof Promise) { - throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`); - } - return { status: status.value, value: result }; - } else { - return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => { - if (!isValid(base)) - return base; - return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({ status: status.value, value: result })); - }); - } - } - util.assertNever(effect); - } -}; -ZodEffects.create = (schema, effect, params2) => { - return new ZodEffects({ - schema, - typeName: ZodFirstPartyTypeKind.ZodEffects, - effect, - ...processCreateParams(params2) - }); -}; -ZodEffects.createWithPreprocess = (preprocess, schema, params2) => { - return new ZodEffects({ - schema, - effect: { type: "preprocess", transform: preprocess }, - typeName: ZodFirstPartyTypeKind.ZodEffects, - ...processCreateParams(params2) - }); -}; -var ZodOptional = class extends ZodType { - _parse(input) { - const parsedType = this._getType(input); - if (parsedType === ZodParsedType.undefined) { - return OK(void 0); - } - return this._def.innerType._parse(input); - } - unwrap() { - return this._def.innerType; - } -}; -ZodOptional.create = (type, params2) => { - return new ZodOptional({ - innerType: type, - typeName: ZodFirstPartyTypeKind.ZodOptional, - ...processCreateParams(params2) - }); -}; -var ZodNullable = class extends ZodType { - _parse(input) { - const parsedType = this._getType(input); - if (parsedType === ZodParsedType.null) { - return OK(null); - } - return this._def.innerType._parse(input); - } - unwrap() { - return this._def.innerType; - } -}; -ZodNullable.create = (type, params2) => { - return new ZodNullable({ - innerType: type, - typeName: ZodFirstPartyTypeKind.ZodNullable, - ...processCreateParams(params2) - }); -}; -var ZodDefault = class extends ZodType { - _parse(input) { - const { ctx } = this._processInputParams(input); - let data = ctx.data; - if (ctx.parsedType === ZodParsedType.undefined) { - data = this._def.defaultValue(); - } - return this._def.innerType._parse({ - data, - path: ctx.path, - parent: ctx - }); - } - removeDefault() { - return this._def.innerType; - } -}; -ZodDefault.create = (type, params2) => { - return new ZodOptional({ - innerType: type, - typeName: ZodFirstPartyTypeKind.ZodOptional, - ...processCreateParams(params2) - }); -}; -var ZodNaN = class extends ZodType { - _parse(input) { - const parsedType = this._getType(input); - if (parsedType !== ZodParsedType.nan) { - const ctx = this._getOrReturnCtx(input); - addIssueToContext(ctx, { - code: ZodIssueCode.invalid_type, - expected: ZodParsedType.nan, - received: ctx.parsedType - }); - return INVALID; - } - return { status: "valid", value: input.data }; - } -}; -ZodNaN.create = (params2) => { - return new ZodNaN({ - typeName: ZodFirstPartyTypeKind.ZodNaN, - ...processCreateParams(params2) - }); -}; -var BRAND = Symbol("zod_brand"); -var ZodBranded = class extends ZodType { - _parse(input) { - const { ctx } = this._processInputParams(input); - const data = ctx.data; - return this._def.type._parse({ - data, - path: ctx.path, - parent: ctx - }); - } - unwrap() { - return this._def.type; - } -}; -var custom = (check, params2 = {}, fatal) => { - if (check) - return ZodAny.create().superRefine((data, ctx) => { - if (!check(data)) { - const p = typeof params2 === "function" ? params2(data) : params2; - const p2 = typeof p === "string" ? { message: p } : p; - ctx.addIssue({ code: "custom", ...p2, fatal }); - } - }); - return ZodAny.create(); -}; -var late = { - object: ZodObject.lazycreate -}; -var ZodFirstPartyTypeKind; -(function(ZodFirstPartyTypeKind2) { - ZodFirstPartyTypeKind2["ZodString"] = "ZodString"; - ZodFirstPartyTypeKind2["ZodNumber"] = "ZodNumber"; - ZodFirstPartyTypeKind2["ZodNaN"] = "ZodNaN"; - ZodFirstPartyTypeKind2["ZodBigInt"] = "ZodBigInt"; - ZodFirstPartyTypeKind2["ZodBoolean"] = "ZodBoolean"; - ZodFirstPartyTypeKind2["ZodDate"] = "ZodDate"; - ZodFirstPartyTypeKind2["ZodUndefined"] = "ZodUndefined"; - ZodFirstPartyTypeKind2["ZodNull"] = "ZodNull"; - ZodFirstPartyTypeKind2["ZodAny"] = "ZodAny"; - ZodFirstPartyTypeKind2["ZodUnknown"] = "ZodUnknown"; - ZodFirstPartyTypeKind2["ZodNever"] = "ZodNever"; - ZodFirstPartyTypeKind2["ZodVoid"] = "ZodVoid"; - ZodFirstPartyTypeKind2["ZodArray"] = "ZodArray"; - ZodFirstPartyTypeKind2["ZodObject"] = "ZodObject"; - ZodFirstPartyTypeKind2["ZodUnion"] = "ZodUnion"; - ZodFirstPartyTypeKind2["ZodDiscriminatedUnion"] = "ZodDiscriminatedUnion"; - ZodFirstPartyTypeKind2["ZodIntersection"] = "ZodIntersection"; - ZodFirstPartyTypeKind2["ZodTuple"] = "ZodTuple"; - ZodFirstPartyTypeKind2["ZodRecord"] = "ZodRecord"; - ZodFirstPartyTypeKind2["ZodMap"] = "ZodMap"; - ZodFirstPartyTypeKind2["ZodSet"] = "ZodSet"; - ZodFirstPartyTypeKind2["ZodFunction"] = "ZodFunction"; - ZodFirstPartyTypeKind2["ZodLazy"] = "ZodLazy"; - ZodFirstPartyTypeKind2["ZodLiteral"] = "ZodLiteral"; - ZodFirstPartyTypeKind2["ZodEnum"] = "ZodEnum"; - ZodFirstPartyTypeKind2["ZodEffects"] = "ZodEffects"; - ZodFirstPartyTypeKind2["ZodNativeEnum"] = "ZodNativeEnum"; - ZodFirstPartyTypeKind2["ZodOptional"] = "ZodOptional"; - ZodFirstPartyTypeKind2["ZodNullable"] = "ZodNullable"; - ZodFirstPartyTypeKind2["ZodDefault"] = "ZodDefault"; - ZodFirstPartyTypeKind2["ZodPromise"] = "ZodPromise"; - ZodFirstPartyTypeKind2["ZodBranded"] = "ZodBranded"; -})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {})); -var instanceOfType = (cls, params2 = { - message: `Input not instance of ${cls.name}` -}) => custom((data) => data instanceof cls, params2, true); -var stringType = ZodString.create; -var numberType = ZodNumber.create; -var nanType = ZodNaN.create; -var bigIntType = ZodBigInt.create; -var booleanType = ZodBoolean.create; -var dateType = ZodDate.create; -var undefinedType = ZodUndefined.create; -var nullType = ZodNull.create; -var anyType = ZodAny.create; -var unknownType = ZodUnknown.create; -var neverType = ZodNever.create; -var voidType = ZodVoid.create; -var arrayType = ZodArray.create; -var objectType = ZodObject.create; -var strictObjectType = ZodObject.strictCreate; -var unionType = ZodUnion.create; -var discriminatedUnionType = ZodDiscriminatedUnion.create; -var intersectionType = ZodIntersection.create; -var tupleType = ZodTuple.create; -var recordType = ZodRecord.create; -var mapType = ZodMap.create; -var setType = ZodSet.create; -var functionType = ZodFunction.create; -var lazyType = ZodLazy.create; -var literalType = ZodLiteral.create; -var enumType = ZodEnum.create; -var nativeEnumType = ZodNativeEnum.create; -var promiseType = ZodPromise.create; -var effectsType = ZodEffects.create; -var optionalType = ZodOptional.create; -var nullableType = ZodNullable.create; -var preprocessType = ZodEffects.createWithPreprocess; -var ostring = () => stringType().optional(); -var onumber = () => numberType().optional(); -var oboolean = () => booleanType().optional(); -var NEVER = INVALID; -var mod = /* @__PURE__ */ Object.freeze({ - __proto__: null, - getParsedType, - ZodParsedType, - defaultErrorMap: errorMap, - setErrorMap, - getErrorMap, - makeIssue, - EMPTY_PATH, - addIssueToContext, - ParseStatus, - INVALID, - DIRTY, - OK, - isAborted, - isDirty, - isValid, - isAsync, - ZodType, - ZodString, - ZodNumber, - ZodBigInt, - ZodBoolean, - ZodDate, - ZodUndefined, - ZodNull, - ZodAny, - ZodUnknown, - ZodNever, - ZodVoid, - ZodArray, - get objectUtil() { - return objectUtil; - }, - ZodObject, - ZodUnion, - ZodDiscriminatedUnion, - ZodIntersection, - ZodTuple, - ZodRecord, - ZodMap, - ZodSet, - ZodFunction, - ZodLazy, - ZodLiteral, - ZodEnum, - ZodNativeEnum, - ZodPromise, - ZodEffects, - ZodTransformer: ZodEffects, - ZodOptional, - ZodNullable, - ZodDefault, - ZodNaN, - BRAND, - ZodBranded, - custom, - Schema: ZodType, - ZodSchema: ZodType, - late, - get ZodFirstPartyTypeKind() { - return ZodFirstPartyTypeKind; - }, - any: anyType, - array: arrayType, - bigint: bigIntType, - boolean: booleanType, - date: dateType, - discriminatedUnion: discriminatedUnionType, - effect: effectsType, - "enum": enumType, - "function": functionType, - "instanceof": instanceOfType, - intersection: intersectionType, - lazy: lazyType, - literal: literalType, - map: mapType, - nan: nanType, - nativeEnum: nativeEnumType, - never: neverType, - "null": nullType, - nullable: nullableType, - number: numberType, - object: objectType, - oboolean, - onumber, - optional: optionalType, - ostring, - preprocess: preprocessType, - promise: promiseType, - record: recordType, - set: setType, - strictObject: strictObjectType, - string: stringType, - transformer: effectsType, - tuple: tupleType, - "undefined": undefinedType, - union: unionType, - unknown: unknownType, - "void": voidType, - NEVER, - ZodIssueCode, - quotelessJson, - ZodError -}); - -// ../xrpc/src/types.ts -var errorResponseBody = mod.object({ - error: mod.string().optional(), - message: mod.string().optional() -}); -var ResponseType = /* @__PURE__ */ ((ResponseType2) => { - ResponseType2[ResponseType2["Unknown"] = 1] = "Unknown"; - ResponseType2[ResponseType2["InvalidResponse"] = 2] = "InvalidResponse"; - ResponseType2[ResponseType2["Success"] = 200] = "Success"; - ResponseType2[ResponseType2["InvalidRequest"] = 400] = "InvalidRequest"; - ResponseType2[ResponseType2["AuthRequired"] = 401] = "AuthRequired"; - ResponseType2[ResponseType2["Forbidden"] = 403] = "Forbidden"; - ResponseType2[ResponseType2["XRPCNotSupported"] = 404] = "XRPCNotSupported"; - ResponseType2[ResponseType2["PayloadTooLarge"] = 413] = "PayloadTooLarge"; - ResponseType2[ResponseType2["RateLimitExceeded"] = 429] = "RateLimitExceeded"; - ResponseType2[ResponseType2["InternalServerError"] = 500] = "InternalServerError"; - ResponseType2[ResponseType2["MethodNotImplemented"] = 501] = "MethodNotImplemented"; - ResponseType2[ResponseType2["UpstreamFailure"] = 502] = "UpstreamFailure"; - ResponseType2[ResponseType2["NotEnoughResouces"] = 503] = "NotEnoughResouces"; - ResponseType2[ResponseType2["UpstreamTimeout"] = 504] = "UpstreamTimeout"; - return ResponseType2; -})(ResponseType || {}); -var ResponseTypeNames = { - [2 /* InvalidResponse */]: "InvalidResponse", - [200 /* Success */]: "Success", - [400 /* InvalidRequest */]: "InvalidRequest", - [401 /* AuthRequired */]: "AuthenticationRequired", - [403 /* Forbidden */]: "Forbidden", - [404 /* XRPCNotSupported */]: "XRPCNotSupported", - [413 /* PayloadTooLarge */]: "PayloadTooLarge", - [429 /* RateLimitExceeded */]: "RateLimitExceeded", - [500 /* InternalServerError */]: "InternalServerError", - [501 /* MethodNotImplemented */]: "MethodNotImplemented", - [502 /* UpstreamFailure */]: "UpstreamFailure", - [503 /* NotEnoughResouces */]: "NotEnoughResouces", - [504 /* UpstreamTimeout */]: "UpstreamTimeout" -}; -var ResponseTypeStrings = { - [2 /* InvalidResponse */]: "Invalid Response", - [200 /* Success */]: "Success", - [400 /* InvalidRequest */]: "Invalid Request", - [401 /* AuthRequired */]: "Authentication Required", - [403 /* Forbidden */]: "Forbidden", - [404 /* XRPCNotSupported */]: "XRPC Not Supported", - [413 /* PayloadTooLarge */]: "Payload Too Large", - [429 /* RateLimitExceeded */]: "Rate Limit Exceeded", - [500 /* InternalServerError */]: "Internal Server Error", - [501 /* MethodNotImplemented */]: "Method Not Implemented", - [502 /* UpstreamFailure */]: "Upstream Failure", - [503 /* NotEnoughResouces */]: "Not Enough Resouces", - [504 /* UpstreamTimeout */]: "Upstream Timeout" -}; -var XRPCResponse = class { - constructor(data, headers) { - this.data = data; - this.headers = headers; - this.success = true; - } -}; -var XRPCError = class extends Error { - constructor(status, error, message) { - super(message || error || ResponseTypeStrings[status]); - this.status = status; - this.error = error; - this.success = false; - if (!this.error) { - this.error = ResponseTypeNames[status]; - } - } -}; - -// ../nsid/src/index.ts -var SEGMENT_RE = /^[a-zA-Z]([a-zA-Z0-9-])*$/; -var NSID = class { - constructor(nsid) { - this.segments = []; - const segments = nsid.split("."); - if (segments.length <= 2) { - throw new Error(`Invalid NSID: ${nsid}`); - } - for (let i = 0; i < segments.length; i++) { - const segment = segments[i]; - if (SEGMENT_RE.test(segment)) { - continue; - } - if (i === segments.length - 1 && segment === "*") { - continue; - } - throw new Error(`Invalid NSID: invalid character in segment "${segment}"`); - } - this.segments = segments; - } - static parse(nsid) { - return new NSID(nsid); - } - static create(authority, name) { - const segments = [...authority.split(".").reverse(), name].join("."); - return new NSID(segments); - } - static isValid(nsid) { - try { - NSID.parse(nsid); - return true; - } catch (e) { - return false; - } - } - get authority() { - return this.segments.slice(0, this.segments.length - 1).reverse().join("."); - } - get name() { - return this.segments.at(this.segments.length - 1); - } - toString() { - return this.segments.join("."); - } -}; - -// ../lexicon/src/types.ts -var lexBoolean = mod.object({ - type: mod.literal("boolean"), - description: mod.string().optional(), - default: mod.boolean().optional(), - const: mod.boolean().optional() -}); -var lexNumber = mod.object({ - type: mod.literal("number"), - description: mod.string().optional(), - default: mod.number().optional(), - minimum: mod.number().optional(), - maximum: mod.number().optional(), - enum: mod.number().array().optional(), - const: mod.number().optional() -}); -var lexInteger = mod.object({ - type: mod.literal("integer"), - description: mod.string().optional(), - default: mod.number().int().optional(), - minimum: mod.number().int().optional(), - maximum: mod.number().int().optional(), - enum: mod.number().int().array().optional(), - const: mod.number().int().optional() -}); -var lexString = mod.object({ - type: mod.literal("string"), - description: mod.string().optional(), - default: mod.string().optional(), - minLength: mod.number().int().optional(), - maxLength: mod.number().int().optional(), - enum: mod.string().array().optional(), - const: mod.string().optional(), - knownValues: mod.string().array().optional() -}); -var lexDatetime = mod.object({ - type: mod.literal("datetime"), - description: mod.string().optional() -}); -var lexUnknown = mod.object({ - type: mod.literal("unknown"), - description: mod.string().optional() -}); -var lexPrimitive = mod.union([ - lexBoolean, - lexNumber, - lexInteger, - lexString, - lexDatetime, - lexUnknown -]); -var lexRef = mod.object({ - type: mod.literal("ref"), - description: mod.string().optional(), - ref: mod.string() -}); -var lexRefUnion = mod.object({ - type: mod.literal("union"), - description: mod.string().optional(), - refs: mod.string().array(), - closed: mod.boolean().optional() -}); -var lexRefVariant = mod.union([lexRef, lexRefUnion]); -var lexBlob = mod.object({ - type: mod.literal("blob"), - description: mod.string().optional(), - accept: mod.string().array().optional(), - maxSize: mod.number().optional() -}); -var lexImage = mod.object({ - type: mod.literal("image"), - description: mod.string().optional(), - accept: mod.string().array().optional(), - maxSize: mod.number().optional(), - maxWidth: mod.number().int().optional(), - maxHeight: mod.number().int().optional() -}); -var lexVideo = mod.object({ - type: mod.literal("video"), - description: mod.string().optional(), - accept: mod.string().array().optional(), - maxSize: mod.number().optional(), - maxWidth: mod.number().int().optional(), - maxHeight: mod.number().int().optional(), - maxLength: mod.number().int().optional() -}); -var lexAudio = mod.object({ - type: mod.literal("audio"), - description: mod.string().optional(), - accept: mod.string().array().optional(), - maxSize: mod.number().optional(), - maxLength: mod.number().int().optional() -}); -var lexBlobVariant = mod.union([lexBlob, lexImage, lexVideo, lexAudio]); -var lexArray = mod.object({ - type: mod.literal("array"), - description: mod.string().optional(), - items: mod.union([lexPrimitive, lexBlobVariant, lexRefVariant]), - minLength: mod.number().int().optional(), - maxLength: mod.number().int().optional() -}); -var lexToken = mod.object({ - type: mod.literal("token"), - description: mod.string().optional() -}); -var lexObject = mod.object({ - type: mod.literal("object"), - description: mod.string().optional(), - required: mod.string().array().optional(), - properties: mod.record(mod.union([lexRefVariant, lexArray, lexBlobVariant, lexPrimitive])).optional() -}); -var lexXrpcParameters = mod.object({ - type: mod.literal("params"), - description: mod.string().optional(), - required: mod.string().array().optional(), - properties: mod.record(lexPrimitive) -}); -var lexXrpcBody = mod.object({ - description: mod.string().optional(), - encoding: mod.string(), - schema: mod.union([lexRefVariant, lexObject]).optional() -}); -var lexXrpcError = mod.object({ - name: mod.string(), - description: mod.string().optional() -}); -var lexXrpcQuery = mod.object({ - type: mod.literal("query"), - description: mod.string().optional(), - parameters: lexXrpcParameters.optional(), - output: lexXrpcBody.optional(), - errors: lexXrpcError.array().optional() -}); -var lexXrpcProcedure = mod.object({ - type: mod.literal("procedure"), - description: mod.string().optional(), - parameters: lexXrpcParameters.optional(), - input: lexXrpcBody.optional(), - output: lexXrpcBody.optional(), - errors: lexXrpcError.array().optional() -}); -var lexRecord = mod.object({ - type: mod.literal("record"), - description: mod.string().optional(), - key: mod.string().optional(), - record: lexObject -}); -var lexUserType = mod.union([ - lexRecord, - lexXrpcQuery, - lexXrpcProcedure, - lexBlob, - lexImage, - lexVideo, - lexAudio, - lexArray, - lexToken, - lexObject, - lexBoolean, - lexNumber, - lexInteger, - lexString, - lexDatetime, - lexUnknown -]); -var lexiconDoc = mod.object({ - lexicon: mod.literal(1), - id: mod.string().refine((v) => NSID.isValid(v), { - message: "Must be a valid NSID" - }), - revision: mod.number().optional(), - description: mod.string().optional(), - defs: mod.record(lexUserType) -}).superRefine((doc, ctx) => { - for (const defId in doc.defs) { - const def = doc.defs[defId]; - if (defId !== "main" && (def.type === "record" || def.type === "procedure" || def.type === "query")) { - ctx.addIssue({ - code: mod.ZodIssueCode.custom, - message: `Records, procedures, and queries must be the main definition.` - }); - } - } -}); -function isObj(obj) { - return !!obj && typeof obj === "object"; -} -function hasProp(data, prop) { - return prop in data; -} -var discriminatedObject = mod.object({ $type: mod.string() }); -function isDiscriminatedObject(value) { - return discriminatedObject.safeParse(value).success; -} -var LexiconDocMalformedError = class extends Error { - constructor(message, schemaDef, issues) { - super(message); - this.schemaDef = schemaDef; - this.issues = issues; - this.schemaDef = schemaDef; - this.issues = issues; - } -}; -var ValidationError = class extends Error { -}; -var InvalidLexiconError = class extends Error { -}; -var LexiconDefNotFoundError = class extends Error { -}; - -// ../lexicon/src/validators/primitives.ts -function validate(lexicons2, path, def, value) { - switch (def.type) { - case "boolean": - return boolean(lexicons2, path, def, value); - case "number": - return number(lexicons2, path, def, value); - case "integer": - return integer(lexicons2, path, def, value); - case "string": - return string(lexicons2, path, def, value); - case "datetime": - return datetime(lexicons2, path, def, value); - case "unknown": - return unknown(lexicons2, path, def, value); - default: - return { - success: false, - error: new ValidationError(`Unexpected lexicon type: ${def.type}`) - }; - } -} -function boolean(lexicons2, path, def, value) { - def = def; - const type = typeof value; - if (type == "undefined") { - if (typeof def.default === "boolean") { - return { success: true }; - } - return { - success: false, - error: new ValidationError(`${path} must be a boolean`) - }; - } else if (type !== "boolean") { - return { - success: false, - error: new ValidationError(`${path} must be a boolean`) - }; - } - if (typeof def.const === "boolean") { - if (value !== def.const) { - return { - success: false, - error: new ValidationError(`${path} must be ${def.const}`) - }; - } - } - return { success: true }; -} -function number(lexicons2, path, def, value) { - def = def; - const type = typeof value; - if (type == "undefined") { - if (typeof def.default === "number") { - return { success: true }; - } - return { - success: false, - error: new ValidationError(`${path} must be a number`) - }; - } else if (type !== "number") { - return { - success: false, - error: new ValidationError(`${path} must be a number`) - }; - } - if (typeof def.const === "number") { - if (value !== def.const) { - return { - success: false, - error: new ValidationError(`${path} must be ${def.const}`) - }; - } - } - if (Array.isArray(def.enum)) { - if (!def.enum.includes(value)) { - return { - success: false, - error: new ValidationError( - `${path} must be one of (${def.enum.join("|")})` - ) - }; - } - } - if (typeof def.maximum === "number") { - if (value > def.maximum) { - return { - success: false, - error: new ValidationError( - `${path} can not be greater than ${def.maximum}` - ) - }; - } - } - if (typeof def.minimum === "number") { - if (value < def.minimum) { - return { - success: false, - error: new ValidationError( - `${path} can not be less than ${def.minimum}` - ) - }; - } - } - return { success: true }; -} -function integer(lexicons2, path, def, value) { - def = def; - const numRes = number(lexicons2, path, def, value); - if (!numRes.success) { - return numRes; - } - if (!Number.isInteger(value)) { - return { - success: false, - error: new ValidationError(`${path} must be an integer`) - }; - } - return { success: true }; -} -function string(lexicons2, path, def, value) { - def = def; - const type = typeof value; - if (type == "undefined") { - if (typeof def.default === "string") { - return { success: true }; - } - return { - success: false, - error: new ValidationError(`${path} must be a string`) - }; - } else if (type !== "string") { - return { - success: false, - error: new ValidationError(`${path} must be a string`) - }; - } - if (typeof def.const === "string") { - if (value !== def.const) { - return { - success: false, - error: new ValidationError(`${path} must be ${def.const}`) - }; - } - } - if (Array.isArray(def.enum)) { - if (!def.enum.includes(value)) { - return { - success: false, - error: new ValidationError( - `${path} must be one of (${def.enum.join("|")})` - ) - }; - } - } - if (typeof def.maxLength === "number") { - if (value.length > def.maxLength) { - return { - success: false, - error: new ValidationError( - `${path} must not be longer than ${def.maxLength} characters` - ) - }; - } - } - if (typeof def.minLength === "number") { - if (value.length < def.minLength) { - return { - success: false, - error: new ValidationError( - `${path} must not be shorter than ${def.minLength} characters` - ) - }; - } - } - return { success: true }; -} -function datetime(lexicons2, path, def, value) { - def = def; - const type = typeof value; - if (type !== "string") { - return { - success: false, - error: new ValidationError(`${path} must be a string`) - }; - } - { - try { - const date = new Date(Date.parse(value)); - if (value !== date.toISOString()) { - throw new ValidationError( - `${path} must be an iso8601 formatted datetime` - ); - } - } catch { - throw new ValidationError(`${path} must be an iso8601 formatted datetime`); - } - } - return { success: true }; -} -function unknown(lexicons2, path, def, value) { - if (!value || typeof value !== "object") { - return { - success: false, - error: new ValidationError(`${path} must be an object`) - }; - } - return { success: true }; -} - -// ../lexicon/src/validators/blob.ts -function blob(lexicons2, path, def, value) { - if (!isObj(value)) { - return { - success: false, - error: new ValidationError(`${path} should be an object`) - }; - } - if (!hasProp(value, "cid") || typeof value.cid !== "string") { - return { - success: false, - error: new ValidationError(`${path}/cid should be a string`) - }; - } - if (!hasProp(value, "mimeType") || typeof value.mimeType !== "string") { - return { - success: false, - error: new ValidationError(`${path}/mimeType should be a string`) - }; - } - return { success: true }; -} -function image(lexicons2, path, def, value) { - return blob(lexicons2, path, def, value); -} -function video(lexicons2, path, def, value) { - return blob(lexicons2, path, def, value); -} -function audio(lexicons2, path, def, value) { - return blob(lexicons2, path, def, value); -} - -// ../lexicon/src/validators/complex.ts -function validate2(lexicons2, path, def, value) { - switch (def.type) { - case "boolean": - return boolean(lexicons2, path, def, value); - case "number": - return number(lexicons2, path, def, value); - case "integer": - return integer(lexicons2, path, def, value); - case "string": - return string(lexicons2, path, def, value); - case "datetime": - return datetime(lexicons2, path, def, value); - case "unknown": - return unknown(lexicons2, path, def, value); - case "object": - return object(lexicons2, path, def, value); - case "array": - return array(lexicons2, path, def, value); - case "blob": - return blob(lexicons2, path, def, value); - case "image": - return image(lexicons2, path, def, value); - case "video": - return video(lexicons2, path, def, value); - case "audio": - return audio(lexicons2, path, def, value); - default: - return { - success: false, - error: new ValidationError(`Unexpected lexicon type: ${def.type}`) - }; - } -} -function array(lexicons2, path, def, value) { - def = def; - if (!Array.isArray(value)) { - return { - success: false, - error: new ValidationError(`${path} must be an array`) - }; - } - if (typeof def.maxLength === "number") { - if (value.length > def.maxLength) { - return { - success: false, - error: new ValidationError( - `${path} must not have more than ${def.maxLength} elements` - ) - }; - } - } - if (typeof def.minLength === "number") { - if (value.length < def.minLength) { - return { - success: false, - error: new ValidationError( - `${path} must not have fewer than ${def.minLength} elements` - ) - }; - } - } - const itemsDef = def.items; - for (let i = 0; i < value.length; i++) { - const itemValue = value[i]; - const itemPath = `${path}/${i}`; - const res = validateOneOf(lexicons2, itemPath, itemsDef, itemValue); - if (!res.success) { - return res; - } - } - return { success: true }; -} -function object(lexicons2, path, def, value) { - def = def; - if (!value || typeof value !== "object") { - return { - success: false, - error: new ValidationError(`${path} must be an object`) - }; - } - if (Array.isArray(def.required)) { - for (const key of def.required) { - if (!(key in value)) { - return { - success: false, - error: new ValidationError(`${path} must have the property "${key}"`) - }; - } - } - } - if (typeof def.properties === "object") { - for (const key in def.properties) { - const propValue = value[key]; - if (typeof propValue === "undefined") { - continue; - } - const propDef = def.properties[key]; - const propPath = `${path}/${key}`; - const res = validateOneOf(lexicons2, propPath, propDef, propValue); - if (!res.success) { - return res; - } - } - } - return { success: true }; -} - -// ../lexicon/src/util.ts -function toLexUri(str, baseUri) { - if (str.startsWith("lex:")) { - return str; - } - if (str.startsWith("#")) { - if (!baseUri) { - throw new Error(`Unable to resolve uri without anchor: ${str}`); - } - return `${baseUri}${str}`; - } - return `lex:${str}`; -} -function validateOneOf(lexicons2, path, def, value, mustBeObj = false) { - let error; - let concreteDefs; - if (def.type === "union") { - if (!isDiscriminatedObject(value)) { - return { - success: false, - error: new ValidationError( - `${path} must be an object which includes the "$type" property` - ) - }; - } - if (!def.refs.includes(toLexUri(value.$type))) { - if (def.closed) { - return { - success: false, - error: new ValidationError( - `${path} $type must be one of ${def.refs.join(", ")}` - ) - }; - } - return { success: true }; - } else { - concreteDefs = toConcreteTypes(lexicons2, { - type: "ref", - ref: value.$type - }); - } - } else { - concreteDefs = toConcreteTypes(lexicons2, def); - } - for (const concreteDef of concreteDefs) { - const result = mustBeObj ? object(lexicons2, path, concreteDef, value) : validate2(lexicons2, path, concreteDef, value); - if (result.success) { - return result; - } - error ?? (error = result.error); - } - if (concreteDefs.length > 1) { - return { - success: false, - error: new ValidationError( - `${path} did not match any of the expected definitions` - ) - }; - } - return { success: false, error }; -} -function assertValidOneOf(lexicons2, path, def, value, mustBeObj = false) { - const res = validateOneOf(lexicons2, path, def, value, mustBeObj); - if (!res.success) { - throw res.error; - } -} -function toConcreteTypes(lexicons2, def) { - if (def.type === "ref") { - return [lexicons2.getDefOrThrow(def.ref)]; - } else if (def.type === "union") { - return def.refs.map((ref) => lexicons2.getDefOrThrow(ref)).flat(); - } else { - return [def]; - } -} - -// ../lexicon/src/validators/xrpc.ts -function params(lexicons2, path, def, value) { - def = def; - if (!value || typeof value !== "object") { - value = {}; - } - if (Array.isArray(def.required)) { - for (const key of def.required) { - if (!(key in value)) { - return { - success: false, - error: new ValidationError(`${path} must have the property "${key}"`) - }; - } - } - } - for (const key in def.properties) { - if (typeof value[key] === "undefined") { - continue; - } - const paramDef = def.properties[key]; - const res = validate( - lexicons2, - key, - paramDef, - value[key] - ); - if (!res.success) { - return res; - } - } - return { success: true }; -} - -// ../lexicon/src/validation.ts -function assertValidRecord(lexicons2, def, value) { - const res = object(lexicons2, "Record", def.record, value); - if (!res.success) - throw res.error; -} -function assertValidXrpcParams(lexicons2, def, value) { - if (def.parameters) { - const res = params(lexicons2, "Params", def.parameters, value); - if (!res.success) - throw res.error; - } -} -function assertValidXrpcInput(lexicons2, def, value) { - if (def.input?.schema) { - assertValidOneOf(lexicons2, "Input", def.input.schema, value, true); - } -} -function assertValidXrpcOutput(lexicons2, def, value) { - if (def.output?.schema) { - assertValidOneOf(lexicons2, "Output", def.output.schema, value, true); - } -} - -// ../lexicon/src/lexicons.ts -var Lexicons = class { - constructor(docs) { - this.docs = /* @__PURE__ */ new Map(); - this.defs = /* @__PURE__ */ new Map(); - if (docs?.length) { - for (const doc of docs) { - this.add(doc); - } - } - } - add(doc) { - try { - lexiconDoc.parse(doc); - } catch (e) { - if (e instanceof ZodError) { - throw new LexiconDocMalformedError( - `Failed to parse schema definition ${doc.id}`, - doc, - e.issues - ); - } else { - throw e; - } - } - const validatedDoc = doc; - const uri = toLexUri(validatedDoc.id); - if (this.docs.has(uri)) { - throw new Error(`${uri} has already been registered`); - } - resolveRefUris(validatedDoc, uri); - this.docs.set(uri, validatedDoc); - for (const [defUri, def] of iterDefs(validatedDoc)) { - this.defs.set(defUri, def); - } - } - remove(uri) { - uri = toLexUri(uri); - const doc = this.docs.get(uri); - if (!doc) { - throw new Error(`Unable to remove "${uri}": does not exist`); - } - for (const [defUri, _def] of iterDefs(doc)) { - this.defs.delete(defUri); - } - this.docs.delete(uri); - } - get(uri) { - uri = toLexUri(uri); - return this.docs.get(uri); - } - getDef(uri) { - uri = toLexUri(uri); - return this.defs.get(uri); - } - getDefOrThrow(uri, types) { - const def = this.getDef(uri); - if (!def) { - throw new LexiconDefNotFoundError(`Lexicon not found: ${uri}`); - } - if (types && !types.includes(def.type)) { - throw new InvalidLexiconError( - `Not a ${types.join(" or ")} lexicon: ${uri}` - ); - } - return def; - } - assertValidRecord(lexUri, value) { - lexUri = toLexUri(lexUri); - const def = this.getDefOrThrow(lexUri, ["record"]); - if (!isObj(value)) { - throw new ValidationError(`Record must be an object`); - } - if (!hasProp(value, "$type") || typeof value.$type !== "string") { - throw new ValidationError(`Record/$type must be a string`); - } - const $type = value.$type || ""; - if (toLexUri($type) !== lexUri) { - throw new ValidationError( - `Invalid $type: must be ${lexUri}, got ${$type}` - ); - } - assertValidRecord(this, def, value); - } - assertValidXrpcParams(lexUri, value) { - lexUri = toLexUri(lexUri); - const def = this.getDefOrThrow(lexUri, ["query", "procedure"]); - assertValidXrpcParams(this, def, value); - } - assertValidXrpcInput(lexUri, value) { - lexUri = toLexUri(lexUri); - const def = this.getDefOrThrow(lexUri, ["procedure"]); - assertValidXrpcInput(this, def, value); - } - assertValidXrpcOutput(lexUri, value) { - lexUri = toLexUri(lexUri); - const def = this.getDefOrThrow(lexUri, ["query", "procedure"]); - assertValidXrpcOutput(this, def, value); - } -}; -function* iterDefs(doc) { - for (const defId in doc.defs) { - yield [`lex:${doc.id}#${defId}`, doc.defs[defId]]; - if (defId === "main") { - yield [`lex:${doc.id}`, doc.defs[defId]]; - } - } -} -function resolveRefUris(obj, baseUri) { - for (const k in obj) { - if (obj.type === "ref") { - obj.ref = toLexUri(obj.ref, baseUri); - } else if (obj.type === "union") { - obj.refs = obj.refs.map((ref) => toLexUri(ref, baseUri)); - } else if (Array.isArray(obj[k])) { - obj[k] = obj[k].map((item) => { - if (typeof item === "string") { - return item.startsWith("#") ? toLexUri(item, baseUri) : item; - } else if (item && typeof item === "object") { - return resolveRefUris(item, baseUri); - } - return item; - }); - } else if (obj[k] && typeof obj[k] === "object") { - obj[k] = resolveRefUris(obj[k], baseUri); - } - } - return obj; -} - -// ../xrpc/src/util.ts -function getMethodSchemaHTTPMethod(schema) { - if (schema.type === "procedure") { - return "post"; - } - return "get"; -} -function constructMethodCallUri(nsid, schema, serviceUri, params2) { - const uri = new URL(serviceUri); - uri.pathname = `/xrpc/${nsid}`; - if (params2) { - for (const [key, value] of Object.entries(params2)) { - const paramSchema = schema.parameters?.properties?.[key]; - if (!paramSchema) { - throw new Error(`Invalid query parameter: ${key}`); - } - if (value !== void 0) { - uri.searchParams.set(key, encodeQueryParam(paramSchema.type, value)); - } - } - } - return uri.toString(); -} -function encodeQueryParam(type, value) { - if (type === "string" || type === "unknown") { - return String(value); - } - if (type === "number") { - return String(Number(value)); - } else if (type === "integer") { - return String(Number(value) | 0); - } else if (type === "boolean") { - return value ? "true" : "false"; - } else if (type === "datetime") { - if (value instanceof Date) { - return value.toISOString(); - } - return String(value); - } - throw new Error(`Unsupported query param type: ${type}`); -} -function constructMethodCallHeaders(schema, data, opts) { - const headers = opts?.headers || {}; - if (schema.type === "procedure") { - if (opts?.encoding) { - headers["Content-Type"] = opts.encoding; - } - if (data && typeof data === "object") { - if (!headers["Content-Type"]) { - headers["Content-Type"] = "application/json"; - } - } - } - return headers; -} -function encodeMethodCallBody(headers, data) { - if (!headers["Content-Type"] || typeof data === "undefined") { - return void 0; - } - if (data instanceof ArrayBuffer) { - return data; - } - if (headers["Content-Type"].startsWith("text/")) { - return new TextEncoder().encode(data.toString()); - } - if (headers["Content-Type"].startsWith("application/json")) { - return new TextEncoder().encode(JSON.stringify(data)); - } - return data; -} -function httpResponseCodeToEnum(status) { - let resCode; - if (status in ResponseType) { - resCode = status; - } else if (status >= 100 && status < 200) { - resCode = 404 /* XRPCNotSupported */; - } else if (status >= 200 && status < 300) { - resCode = 200 /* Success */; - } else if (status >= 300 && status < 400) { - resCode = 404 /* XRPCNotSupported */; - } else if (status >= 400 && status < 500) { - resCode = 400 /* InvalidRequest */; - } else { - resCode = 500 /* InternalServerError */; - } - return resCode; -} -function httpResponseBodyParse(mimeType, data) { - if (mimeType) { - if (mimeType.includes("application/json") && data?.byteLength) { - try { - const str = new TextDecoder().decode(data); - return JSON.parse(str); - } catch (e) { - throw new XRPCError( - 2 /* InvalidResponse */, - `Failed to parse response body: ${String(e)}` - ); - } - } - if (mimeType.startsWith("text/") && data?.byteLength) { - try { - return new TextDecoder().decode(data); - } catch (e) { - throw new XRPCError( - 2 /* InvalidResponse */, - `Failed to parse response body: ${String(e)}` - ); - } - } - } - return data; -} - -// ../xrpc/src/client.ts -var Client = class { - constructor() { - this.fetch = defaultFetchHandler; - this.lex = new Lexicons(); - } - async call(serviceUri, methodNsid, params2, data, opts) { - return this.service(serviceUri).call(methodNsid, params2, data, opts); - } - service(serviceUri) { - return new ServiceClient(this, serviceUri); - } - addLexicon(doc) { - this.lex.add(doc); - } - addLexicons(docs) { - for (const doc of docs) { - this.addLexicon(doc); - } - } - removeLexicon(uri) { - this.lex.remove(uri); - } -}; -var ServiceClient = class { - constructor(baseClient, serviceUri) { - this.headers = {}; - this.baseClient = baseClient; - this.uri = typeof serviceUri === "string" ? new URL(serviceUri) : serviceUri; - } - setHeader(key, value) { - this.headers[key] = value; - } - unsetHeader(key) { - delete this.headers[key]; - } - async call(methodNsid, params2, data, opts) { - const def = this.baseClient.lex.getDefOrThrow(methodNsid); - if (!def || def.type !== "query" && def.type !== "procedure") { - throw new Error( - `Invalid lexicon: ${methodNsid}. Must be a query or procedure.` - ); - } - const httpMethod = getMethodSchemaHTTPMethod(def); - const httpUri = constructMethodCallUri(methodNsid, def, this.uri, params2); - const httpHeaders = constructMethodCallHeaders(def, data, { - headers: { - ...this.headers, - ...opts?.headers - }, - encoding: opts?.encoding - }); - const res = await this.baseClient.fetch( - httpUri, - httpMethod, - httpHeaders, - data - ); - const resCode = httpResponseCodeToEnum(res.status); - if (resCode === 200 /* Success */) { - return new XRPCResponse(res.body, res.headers); - } else { - if (res.body && isErrorResponseBody(res.body)) { - throw new XRPCError(resCode, res.body.error, res.body.message); - } else { - throw new XRPCError(resCode); - } - } - } -}; -async function defaultFetchHandler(httpUri, httpMethod, httpHeaders, httpReqBody) { - try { - const res = await fetch(httpUri, { - method: httpMethod, - headers: httpHeaders, - body: encodeMethodCallBody(httpHeaders, httpReqBody) - }); - const resBody = await res.arrayBuffer(); - return { - status: res.status, - headers: Object.fromEntries(res.headers.entries()), - body: httpResponseBodyParse(res.headers.get("content-type"), resBody) - }; - } catch (e) { - throw new XRPCError(1 /* Unknown */, String(e)); - } -} -function isErrorResponseBody(v) { - return errorResponseBody.safeParse(v).success; -} - -// ../xrpc/src/index.ts -var defaultInst = new Client(); - -// src/client/lexicons.ts -var schemaDict = { - ComAtprotoAccountCreate: { - lexicon: 1, - id: "com.atproto.account.create", - defs: { - main: { - type: "procedure", - description: "Create an account.", - input: { - encoding: "application/json", - schema: { - type: "object", - required: ["handle", "email", "password"], - properties: { - email: { - type: "string" - }, - handle: { - type: "string" - }, - inviteCode: { - type: "string" - }, - password: { - type: "string" - }, - recoveryKey: { - type: "string" - } - } - } - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["accessJwt", "refreshJwt", "handle", "did"], - properties: { - accessJwt: { - type: "string" - }, - refreshJwt: { - type: "string" - }, - handle: { - type: "string" - }, - did: { - type: "string" - } - } - } - }, - errors: [ - { - name: "InvalidHandle" - }, - { - name: "InvalidPassword" - }, - { - name: "InvalidInviteCode" - }, - { - name: "HandleNotAvailable" - } - ] - } - } - }, - ComAtprotoAccountCreateInviteCode: { - lexicon: 1, - id: "com.atproto.account.createInviteCode", - defs: { - main: { - type: "procedure", - description: "Create an invite code.", - input: { - encoding: "application/json", - schema: { - type: "object", - required: ["useCount"], - properties: { - useCount: { - type: "integer" - } - } - } - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["code"], - properties: { - code: { - type: "string" - } - } - } - } - } - } - }, - ComAtprotoAccountDelete: { - lexicon: 1, - id: "com.atproto.account.delete", - defs: { - main: { - type: "procedure", - description: "Delete an account." - } - } - }, - ComAtprotoAccountGet: { - lexicon: 1, - id: "com.atproto.account.get", - defs: { - main: { - type: "query", - description: "Get information about an account." - } - } - }, - ComAtprotoAccountRequestPasswordReset: { - lexicon: 1, - id: "com.atproto.account.requestPasswordReset", - defs: { - main: { - type: "procedure", - description: "Initiate a user account password reset via email.", - input: { - encoding: "application/json", - schema: { - type: "object", - required: ["email"], - properties: { - email: { - type: "string" - } - } - } - } - } - } - }, - ComAtprotoAccountResetPassword: { - lexicon: 1, - id: "com.atproto.account.resetPassword", - defs: { - main: { - type: "procedure", - description: "Reset a user account password using a token.", - input: { - encoding: "application/json", - schema: { - type: "object", - required: ["token", "password"], - properties: { - token: { - type: "string" - }, - password: { - type: "string" - } - } - } - }, - errors: [ - { - name: "ExpiredToken" - }, - { - name: "InvalidToken" - } - ] - } - } - }, - ComAtprotoBlobUpload: { - lexicon: 1, - id: "com.atproto.blob.upload", - defs: { - main: { - type: "procedure", - description: "Upload a new blob to be added to repo in a later request.", - input: { - encoding: "*/*" - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["cid"], - properties: { - cid: { - type: "string" - } - } - } - } - } - } - }, - ComAtprotoHandleResolve: { - lexicon: 1, - id: "com.atproto.handle.resolve", - defs: { - main: { - type: "query", - description: "Provides the DID of a repo.", - parameters: { - type: "params", - properties: { - handle: { - type: "string", - description: "The handle to resolve. If not supplied, will resolve the host's own handle." - } - } - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["did"], - properties: { - did: { - type: "string" - } - } - } - } - } - } - }, - ComAtprotoRepoBatchWrite: { - lexicon: 1, - id: "com.atproto.repo.batchWrite", - defs: { - main: { - type: "procedure", - description: "Apply a batch transaction of creates, puts, and deletes.", - input: { - encoding: "application/json", - schema: { - type: "object", - required: ["did", "writes"], - properties: { - did: { - type: "string", - description: "The DID of the repo." - }, - validate: { - type: "boolean", - default: true, - description: "Validate the records?" - }, - writes: { - type: "array", - items: { - type: "union", - refs: [ - "lex:com.atproto.repo.batchWrite#create", - "lex:com.atproto.repo.batchWrite#update", - "lex:com.atproto.repo.batchWrite#delete" - ], - closed: true - } - } - } - } - } - }, - create: { - type: "object", - required: ["action", "collection", "value"], - properties: { - action: { - type: "string", - const: "create" - }, - collection: { - type: "string" - }, - rkey: { - type: "string" - }, - value: { - type: "unknown" - } - } - }, - update: { - type: "object", - required: ["action", "collection", "rkey", "value"], - properties: { - action: { - type: "string", - const: "update" - }, - collection: { - type: "string" - }, - rkey: { - type: "string" - }, - value: { - type: "unknown" - } - } - }, - delete: { - type: "object", - required: ["action", "collection", "rkey"], - properties: { - action: { - type: "string", - const: "delete" - }, - collection: { - type: "string" - }, - rkey: { - type: "string" - } - } - } - } - }, - ComAtprotoRepoCreateRecord: { - lexicon: 1, - id: "com.atproto.repo.createRecord", - defs: { - main: { - type: "procedure", - description: "Create a new record.", - input: { - encoding: "application/json", - schema: { - type: "object", - required: ["did", "collection", "record"], - properties: { - did: { - type: "string", - description: "The DID of the repo." - }, - collection: { - type: "string", - description: "The NSID of the record collection." - }, - validate: { - type: "boolean", - default: true, - description: "Validate the record?" - }, - record: { - type: "unknown", - description: "The record to create." - } - } - } - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["uri", "cid"], - properties: { - uri: { - type: "string" - }, - cid: { - type: "string" - } - } - } - } - } - } - }, - ComAtprotoRepoDeleteRecord: { - lexicon: 1, - id: "com.atproto.repo.deleteRecord", - defs: { - main: { - type: "procedure", - description: "Delete a record.", - input: { - encoding: "application/json", - schema: { - type: "object", - required: ["did", "collection", "rkey"], - properties: { - did: { - type: "string", - description: "The DID of the repo." - }, - collection: { - type: "string", - description: "The NSID of the record collection." - }, - rkey: { - type: "string", - description: "The key of the record." - } - } - } - } - } - } - }, - ComAtprotoRepoDescribe: { - lexicon: 1, - id: "com.atproto.repo.describe", - defs: { - main: { - type: "query", - description: "Get information about the repo, including the list of collections.", - parameters: { - type: "params", - required: ["user"], - properties: { - user: { - type: "string", - description: "The handle or DID of the repo." - } - } - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: [ - "handle", - "did", - "didDoc", - "collections", - "handleIsCorrect" - ], - properties: { - handle: { - type: "string" - }, - did: { - type: "string" - }, - didDoc: { - type: "unknown" - }, - collections: { - type: "array", - items: { - type: "string" - } - }, - handleIsCorrect: { - type: "boolean" - } - } - } - } - } - } - }, - ComAtprotoRepoGetRecord: { - lexicon: 1, - id: "com.atproto.repo.getRecord", - defs: { - main: { - type: "query", - description: "Fetch a record.", - parameters: { - type: "params", - required: ["user", "collection", "rkey"], - properties: { - user: { - type: "string", - description: "The handle or DID of the repo." - }, - collection: { - type: "string", - description: "The NSID of the collection." - }, - rkey: { - type: "string", - description: "The key of the record." - }, - cid: { - type: "string", - description: "The CID of the version of the record. If not specified, then return the most recent version." - } - } - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["uri", "value"], - properties: { - uri: { - type: "string" - }, - cid: { - type: "string" - }, - value: { - type: "unknown" - } - } - } - } - } - } - }, - ComAtprotoRepoListRecords: { - lexicon: 1, - id: "com.atproto.repo.listRecords", - defs: { - main: { - type: "query", - description: "List a range of records in a collection.", - parameters: { - type: "params", - required: ["user", "collection"], - properties: { - user: { - type: "string", - description: "The handle or DID of the repo." - }, - collection: { - type: "string", - description: "The NSID of the record type." - }, - limit: { - type: "integer", - minimum: 1, - maximum: 100, - default: 50, - description: "The number of records to return." - }, - before: { - type: "string", - description: "A TID to filter the range of records returned." - }, - after: { - type: "string", - description: "A TID to filter the range of records returned." - }, - reverse: { - type: "boolean", - description: "Reverse the order of the returned records?" - } - } - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["records"], - properties: { - cursor: { - type: "string" - }, - records: { - type: "array", - items: { - type: "ref", - ref: "lex:com.atproto.repo.listRecords#record" - } - } - } - } - } - }, - record: { - type: "object", - required: ["uri", "cid", "value"], - properties: { - uri: { - type: "string" - }, - cid: { - type: "string" - }, - value: { - type: "unknown" - } - } - } - } - }, - ComAtprotoRepoPutRecord: { - lexicon: 1, - id: "com.atproto.repo.putRecord", - defs: { - main: { - type: "procedure", - description: "Write a record.", - input: { - encoding: "application/json", - schema: { - type: "object", - required: ["did", "collection", "rkey", "record"], - properties: { - did: { - type: "string", - description: "The DID of the repo." - }, - collection: { - type: "string", - description: "The NSID of the record type." - }, - rkey: { - type: "string", - description: "The TID of the record." - }, - validate: { - type: "boolean", - default: true, - description: "Validate the record?" - }, - record: { - type: "unknown", - description: "The record to create." - } - } - } - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["uri", "cid"], - properties: { - uri: { - type: "string" - }, - cid: { - type: "string" - } - } - } - } - } - } - }, - ComAtprotoRepoStrongRef: { - lexicon: 1, - id: "com.atproto.repo.strongRef", - description: "A URI with a content-hash fingerprint.", - defs: { - main: { - type: "object", - required: ["uri", "cid"], - properties: { - uri: { - type: "string" - }, - cid: { - type: "string" - } - } - } - } - }, - ComAtprotoServerGetAccountsConfig: { - lexicon: 1, - id: "com.atproto.server.getAccountsConfig", - defs: { - main: { - type: "query", - description: "Get a document describing the service's accounts configuration.", - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["availableUserDomains"], - properties: { - inviteCodeRequired: { - type: "boolean" - }, - availableUserDomains: { - type: "array", - items: { - type: "string" - } - }, - links: { - type: "ref", - ref: "lex:com.atproto.server.getAccountsConfig#links" - } - } - } - } - }, - links: { - type: "object", - properties: { - privacyPolicy: { - type: "string" - }, - termsOfService: { - type: "string" - } - } - } - } - }, - ComAtprotoSessionCreate: { - lexicon: 1, - id: "com.atproto.session.create", - defs: { - main: { - type: "procedure", - description: "Create an authentication session.", - input: { - encoding: "application/json", - schema: { - type: "object", - required: ["handle", "password"], - properties: { - handle: { - type: "string" - }, - password: { - type: "string" - } - } - } - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["accessJwt", "refreshJwt", "handle", "did"], - properties: { - accessJwt: { - type: "string" - }, - refreshJwt: { - type: "string" - }, - handle: { - type: "string" - }, - did: { - type: "string" - } - } - } - } - } - } - }, - ComAtprotoSessionDelete: { - lexicon: 1, - id: "com.atproto.session.delete", - defs: { - main: { - type: "procedure", - description: "Delete the current session." - } - } - }, - ComAtprotoSessionGet: { - lexicon: 1, - id: "com.atproto.session.get", - defs: { - main: { - type: "query", - description: "Get information about the current session.", - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["handle", "did"], - properties: { - handle: { - type: "string" - }, - did: { - type: "string" - } - } - } - } - } - } - }, - ComAtprotoSessionRefresh: { - lexicon: 1, - id: "com.atproto.session.refresh", - defs: { - main: { - type: "procedure", - description: "Refresh an authentication session.", - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["accessJwt", "refreshJwt", "handle", "did"], - properties: { - accessJwt: { - type: "string" - }, - refreshJwt: { - type: "string" - }, - handle: { - type: "string" - }, - did: { - type: "string" - } - } - } - } - } - } - }, - ComAtprotoSyncGetRepo: { - lexicon: 1, - id: "com.atproto.sync.getRepo", - defs: { - main: { - type: "query", - description: "Gets the repo state.", - parameters: { - type: "params", - required: ["did"], - properties: { - did: { - type: "string", - description: "The DID of the repo." - }, - from: { - type: "string", - description: "A past commit CID." - } - } - }, - output: { - encoding: "application/cbor" - } - } - } - }, - ComAtprotoSyncGetRoot: { - lexicon: 1, - id: "com.atproto.sync.getRoot", - defs: { - main: { - type: "query", - description: "Gets the current root CID of a repo.", - parameters: { - type: "params", - required: ["did"], - properties: { - did: { - type: "string", - description: "The DID of the repo." - } - } - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["root"], - properties: { - root: { - type: "string" - } - } - } - } - } - } - }, - ComAtprotoSyncUpdateRepo: { - lexicon: 1, - id: "com.atproto.sync.updateRepo", - defs: { - main: { - type: "procedure", - description: "Writes commits to a repo.", - parameters: { - type: "params", - required: ["did"], - properties: { - did: { - type: "string", - description: "The DID of the repo." - } - } - }, - input: { - encoding: "application/cbor" - } - } - } - }, - AppBskyActorCreateScene: { - lexicon: 1, - id: "app.bsky.actor.createScene", - defs: { - main: { - type: "procedure", - description: "Create a scene.", - input: { - encoding: "application/json", - schema: { - type: "object", - required: ["handle"], - properties: { - handle: { - type: "string" - }, - recoveryKey: { - type: "string" - } - } - } - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["handle", "did", "declaration"], - properties: { - handle: { - type: "string" - }, - did: { - type: "string" - }, - declaration: { - type: "ref", - ref: "lex:app.bsky.system.declRef" - } - } - } - }, - errors: [ - { - name: "InvalidHandle" - }, - { - name: "HandleNotAvailable" - } - ] - } - } - }, - AppBskyActorGetProfile: { - lexicon: 1, - id: "app.bsky.actor.getProfile", - defs: { - main: { - type: "query", - parameters: { - type: "params", - required: ["actor"], - properties: { - actor: { - type: "string" - } - } - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: [ - "did", - "declaration", - "handle", - "creator", - "followersCount", - "followsCount", - "membersCount", - "postsCount" - ], - properties: { - did: { - type: "string" - }, - declaration: { - type: "ref", - ref: "lex:app.bsky.system.declRef" - }, - handle: { - type: "string" - }, - creator: { - type: "string" - }, - displayName: { - type: "string", - maxLength: 64 - }, - description: { - type: "string", - maxLength: 256 - }, - avatar: { - type: "string" - }, - banner: { - type: "string" - }, - followersCount: { - type: "integer" - }, - followsCount: { - type: "integer" - }, - membersCount: { - type: "integer" - }, - postsCount: { - type: "integer" - }, - myState: { - type: "ref", - ref: "lex:app.bsky.actor.getProfile#myState" - } - } - } - } - }, - myState: { - type: "object", - properties: { - follow: { - type: "string" - }, - member: { - type: "string" - } - } - } - } - }, - AppBskyActorGetSuggestions: { - lexicon: 1, - id: "app.bsky.actor.getSuggestions", - defs: { - main: { - type: "query", - description: "Get a list of actors suggested for following. Used in discovery UIs.", - parameters: { - type: "params", - properties: { - limit: { - type: "integer", - minimum: 1, - maximum: 100, - default: 50 - }, - cursor: { - type: "string" - } - } - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["actors"], - properties: { - cursor: { - type: "string" - }, - actors: { - type: "array", - items: { - type: "ref", - ref: "lex:app.bsky.actor.getSuggestions#actor" - } - } - } - } - } - }, - actor: { - type: "object", - required: ["did", "declaration", "handle"], - properties: { - did: { - type: "string" - }, - declaration: { - type: "ref", - ref: "lex:app.bsky.system.declRef" - }, - handle: { - type: "string" - }, - displayName: { - type: "string", - maxLength: 64 - }, - description: { - type: "string" - }, - avatar: { - type: "string" - }, - indexedAt: { - type: "datetime" - }, - myState: { - type: "ref", - ref: "lex:app.bsky.actor.getSuggestions#myState" - } - } - }, - myState: { - type: "object", - properties: { - follow: { - type: "string" - } - } - } - } - }, - AppBskyActorProfile: { - lexicon: 1, - id: "app.bsky.actor.profile", - defs: { - main: { - type: "record", - key: "literal:self", - record: { - type: "object", - required: ["displayName"], - properties: { - displayName: { - type: "string", - maxLength: 64 - }, - description: { - type: "string", - maxLength: 256 - }, - avatar: { - type: "image", - accept: ["image/png", "image/jpeg"], - maxWidth: 500, - maxHeight: 500, - maxSize: 3e5 - }, - banner: { - type: "image", - accept: ["image/png", "image/jpeg"], - maxWidth: 1500, - maxHeight: 500, - maxSize: 5e5 - } - } - } - } - } - }, - AppBskyActorRef: { - lexicon: 1, - id: "app.bsky.actor.ref", - description: "A reference to an actor in the network.", - defs: { - main: { - type: "object", - required: ["did", "declarationCid"], - properties: { - did: { - type: "string" - }, - declarationCid: { - type: "string" - } - } - }, - withInfo: { - type: "object", - required: ["did", "declaration", "handle"], - properties: { - did: { - type: "string" - }, - declaration: { - type: "ref", - ref: "lex:app.bsky.system.declRef" - }, - handle: { - type: "string" - }, - displayName: { - type: "string", - maxLength: 64 - }, - avatar: { - type: "string" - } - } - } - } - }, - AppBskyActorSearch: { - lexicon: 1, - id: "app.bsky.actor.search", - defs: { - main: { - type: "query", - description: "Find users matching search criteria.", - parameters: { - type: "params", - required: ["term"], - properties: { - term: { - type: "string" - }, - limit: { - type: "integer", - minimum: 1, - maximum: 100, - default: 50 - }, - before: { - type: "string" - } - } - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["users"], - properties: { - cursor: { - type: "string" - }, - users: { - type: "array", - items: { - type: "ref", - ref: "lex:app.bsky.actor.search#user" - } - } - } - } - } - }, - user: { - type: "object", - required: ["did", "declaration", "handle"], - properties: { - did: { - type: "string" - }, - declaration: { - type: "ref", - ref: "lex:app.bsky.system.declRef" - }, - handle: { - type: "string" - }, - displayName: { - type: "string", - maxLength: 64 - }, - avatar: { - type: "string" - }, - description: { - type: "string" - }, - indexedAt: { - type: "datetime" - } - } - } - } - }, - AppBskyActorSearchTypeahead: { - lexicon: 1, - id: "app.bsky.actor.searchTypeahead", - defs: { - main: { - type: "query", - description: "Find user suggestions for a search term.", - parameters: { - type: "params", - required: ["term"], - properties: { - term: { - type: "string" - }, - limit: { - type: "integer", - minimum: 1, - maximum: 100, - default: 50 - } - } - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["users"], - properties: { - users: { - type: "array", - items: { - type: "ref", - ref: "lex:app.bsky.actor.searchTypeahead#user" - } - } - } - } - } - }, - user: { - type: "object", - required: ["did", "declaration", "handle"], - properties: { - did: { - type: "string" - }, - declaration: { - type: "ref", - ref: "lex:app.bsky.system.declRef" - }, - handle: { - type: "string" - }, - displayName: { - type: "string", - maxLength: 64 - }, - avatar: { - type: "string" - } - } - } - } - }, - AppBskyActorUpdateProfile: { - lexicon: 1, - id: "app.bsky.actor.updateProfile", - defs: { - main: { - type: "procedure", - description: "Notify server that the user has seen notifications.", - input: { - encoding: "application/json", - schema: { - type: "object", - properties: { - did: { - type: "string" - }, - displayName: { - type: "string", - maxLength: 64 - }, - description: { - type: "string", - maxLength: 256 - }, - avatar: { - type: "image", - accept: ["image/png", "image/jpeg"], - maxWidth: 500, - maxHeight: 500, - maxSize: 1e5 - }, - banner: { - type: "image", - accept: ["image/png", "image/jpeg"], - maxWidth: 1500, - maxHeight: 500, - maxSize: 5e5 - } - } - } - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["uri", "cid", "record"], - properties: { - uri: { - type: "string" - }, - cid: { - type: "string" - }, - record: { - type: "unknown" - } - } - } - }, - errors: [ - { - name: "InvalidBlob" - }, - { - name: "BlobTooLarge" - }, - { - name: "InvalidMimeType" - }, - { - name: "InvalidImageDimensions" - } - ] - } - } - }, - AppBskyEmbedExternal: { - lexicon: 1, - id: "app.bsky.embed.external", - description: "An representation of some externally linked content, embedded in another form of content", - defs: { - main: { - type: "object", - required: ["external"], - properties: { - external: { - type: "ref", - ref: "lex:app.bsky.embed.external#external" - } - } - }, - external: { - type: "object", - required: ["uri", "title", "description"], - properties: { - uri: { - type: "string" - }, - title: { - type: "string" - }, - description: { - type: "string" - }, - thumb: { - type: "image", - accept: ["image/*"], - maxWidth: 250, - maxHeight: 250, - maxSize: 1e5 - } - } - }, - presented: { - type: "object", - required: ["external"], - properties: { - external: { - type: "ref", - ref: "lex:app.bsky.embed.external#presentedExternal" - } - } - }, - presentedExternal: { - type: "object", - required: ["uri", "title", "description"], - properties: { - uri: { - type: "string" - }, - title: { - type: "string" - }, - description: { - type: "string" - }, - thumb: { - type: "string" - } - } - } - } - }, - AppBskyEmbedImages: { - lexicon: 1, - id: "app.bsky.embed.images", - description: "A set of images embedded in some other form of content", - defs: { - main: { - type: "object", - required: ["images"], - properties: { - images: { - type: "array", - items: { - type: "ref", - ref: "lex:app.bsky.embed.images#image" - }, - maxLength: 4 - } - } - }, - image: { - type: "object", - required: ["image", "alt"], - properties: { - image: { - type: "image", - accept: ["image/*"], - maxWidth: 500, - maxHeight: 500, - maxSize: 3e5 - }, - alt: { - type: "string" - } - } - }, - presented: { - type: "object", - required: ["images"], - properties: { - images: { - type: "array", - items: { - type: "ref", - ref: "lex:app.bsky.embed.images#presentedImage" - }, - maxLength: 4 - } - } - }, - presentedImage: { - type: "object", - required: ["thumb", "fullsize", "alt"], - properties: { - thumb: { - type: "string" - }, - fullsize: { - type: "string" - }, - alt: { - type: "string" - } - } - } - } - }, - AppBskyFeedFeedViewPost: { - lexicon: 1, - id: "app.bsky.feed.feedViewPost", - defs: { - main: { - type: "object", - required: ["post"], - properties: { - post: { - type: "ref", - ref: "lex:app.bsky.feed.post#view" - }, - reply: { - type: "ref", - ref: "lex:app.bsky.feed.feedViewPost#replyRef" - }, - reason: { - type: "union", - refs: [ - "lex:app.bsky.feed.feedViewPost#reasonTrend", - "lex:app.bsky.feed.feedViewPost#reasonRepost" - ] - } - } - }, - replyRef: { - type: "object", - required: ["root", "parent"], - properties: { - root: { - type: "ref", - ref: "lex:app.bsky.feed.post#view" - }, - parent: { - type: "ref", - ref: "lex:app.bsky.feed.post#view" - } - } - }, - reasonTrend: { - type: "object", - required: ["by", "indexedAt"], - properties: { - by: { - type: "ref", - ref: "lex:app.bsky.actor.ref#withInfo" - }, - indexedAt: { - type: "datetime" - } - } - }, - reasonRepost: { - type: "object", - required: ["by", "indexedAt"], - properties: { - by: { - type: "ref", - ref: "lex:app.bsky.actor.ref#withInfo" - }, - indexedAt: { - type: "datetime" - } - } - } - } - }, - AppBskyFeedGetAuthorFeed: { - lexicon: 1, - id: "app.bsky.feed.getAuthorFeed", - defs: { - main: { - type: "query", - description: "A view of a user's feed.", - parameters: { - type: "params", - required: ["author"], - properties: { - author: { - type: "string" - }, - limit: { - type: "integer", - minimum: 1, - maximum: 100, - default: 50 - }, - before: { - type: "string" - } - } - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["feed"], - properties: { - cursor: { - type: "string" - }, - feed: { - type: "array", - items: { - type: "ref", - ref: "lex:app.bsky.feed.feedViewPost" - } - } - } - } - } - } - } - }, - AppBskyFeedGetPostThread: { - lexicon: 1, - id: "app.bsky.feed.getPostThread", - defs: { - main: { - type: "query", - parameters: { - type: "params", - required: ["uri"], - properties: { - uri: { - type: "string" - }, - depth: { - type: "integer" - } - } - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["thread"], - properties: { - thread: { - type: "union", - refs: [ - "lex:app.bsky.feed.getPostThread#threadViewPost", - "lex:app.bsky.feed.getPostThread#notFoundPost" - ] - } - } - } - }, - errors: [ - { - name: "NotFound" - } - ] - }, - threadViewPost: { - type: "object", - required: ["post"], - properties: { - post: { - type: "ref", - ref: "lex:app.bsky.feed.post#view" - }, - parent: { - type: "union", - refs: [ - "lex:app.bsky.feed.getPostThread#threadViewPost", - "lex:app.bsky.feed.getPostThread#notFoundPost" - ] - }, - replies: { - type: "array", - items: { - type: "union", - refs: [ - "lex:app.bsky.feed.getPostThread#threadViewPost", - "lex:app.bsky.feed.getPostThread#notFoundPost" - ] - } - } - } - }, - notFoundPost: { - type: "object", - required: ["uri", "notFound"], - properties: { - uri: { - type: "string" - }, - notFound: { - type: "boolean", - const: true - } - } - } - } - }, - AppBskyFeedGetRepostedBy: { - lexicon: 1, - id: "app.bsky.feed.getRepostedBy", - defs: { - main: { - type: "query", - parameters: { - type: "params", - required: ["uri"], - properties: { - uri: { - type: "string" - }, - cid: { - type: "string" - }, - limit: { - type: "integer", - minimum: 1, - maximum: 100, - default: 50 - }, - before: { - type: "string" - } - } - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["uri", "repostedBy"], - properties: { - uri: { - type: "string" - }, - cid: { - type: "string" - }, - cursor: { - type: "string" - }, - repostedBy: { - type: "array", - items: { - type: "ref", - ref: "lex:app.bsky.feed.getRepostedBy#repostedBy" - } - } - } - } - } - }, - repostedBy: { - type: "object", - required: ["did", "declaration", "handle", "indexedAt"], - properties: { - did: { - type: "string" - }, - declaration: { - type: "ref", - ref: "lex:app.bsky.system.declRef" - }, - handle: { - type: "string" - }, - displayName: { - type: "string", - maxLength: 64 - }, - avatar: { - type: "string" - }, - createdAt: { - type: "datetime" - }, - indexedAt: { - type: "datetime" - } - } - } - } - }, - AppBskyFeedGetTimeline: { - lexicon: 1, - id: "app.bsky.feed.getTimeline", - defs: { - main: { - type: "query", - description: "A view of the user's home timeline.", - parameters: { - type: "params", - properties: { - algorithm: { - type: "string" - }, - limit: { - type: "integer", - minimum: 1, - maximum: 100, - default: 50 - }, - before: { - type: "string" - } - } - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["feed"], - properties: { - cursor: { - type: "string" - }, - feed: { - type: "array", - items: { - type: "ref", - ref: "lex:app.bsky.feed.feedViewPost" - } - } - } - } - } - } - } - }, - AppBskyFeedGetVotes: { - lexicon: 1, - id: "app.bsky.feed.getVotes", - defs: { - main: { - type: "query", - parameters: { - type: "params", - required: ["uri"], - properties: { - uri: { - type: "string" - }, - cid: { - type: "string" - }, - direction: { - type: "string", - enum: ["up", "down"] - }, - limit: { - type: "integer", - minimum: 1, - maximum: 100, - default: 50 - }, - before: { - type: "string" - } - } - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["uri", "votes"], - properties: { - uri: { - type: "string" - }, - cid: { - type: "string" - }, - cursor: { - type: "string" - }, - votes: { - type: "array", - items: { - type: "ref", - ref: "lex:app.bsky.feed.getVotes#vote" - } - } - } - } - } - }, - vote: { - type: "object", - required: ["direction", "indexedAt", "createdAt", "actor"], - properties: { - direction: { - type: "string", - enum: ["up", "down"] - }, - indexedAt: { - type: "datetime" - }, - createdAt: { - type: "datetime" - }, - actor: { - type: "ref", - ref: "lex:app.bsky.actor.ref#withInfo" - } - } - } - } - }, - AppBskyFeedPost: { - lexicon: 1, - id: "app.bsky.feed.post", - defs: { - main: { - type: "record", - key: "tid", - record: { - type: "object", - required: ["text", "createdAt"], - properties: { - text: { - type: "string", - maxLength: 256 - }, - entities: { - type: "array", - items: { - type: "ref", - ref: "lex:app.bsky.feed.post#entity" - } - }, - reply: { - type: "ref", - ref: "lex:app.bsky.feed.post#replyRef" - }, - embed: { - type: "union", - refs: [ - "lex:app.bsky.embed.images", - "lex:app.bsky.embed.external" - ] - }, - createdAt: { - type: "datetime" - } - } - } - }, - replyRef: { - type: "object", - required: ["root", "parent"], - properties: { - root: { - type: "ref", - ref: "lex:com.atproto.repo.strongRef" - }, - parent: { - type: "ref", - ref: "lex:com.atproto.repo.strongRef" - } - } - }, - entity: { - type: "object", - required: ["index", "type", "value"], - properties: { - index: { - type: "ref", - ref: "lex:app.bsky.feed.post#textSlice" - }, - type: { - type: "string", - description: "Expected values are 'mention', 'hashtag', and 'link'." - }, - value: { - type: "string" - } - } - }, - textSlice: { - type: "object", - required: ["start", "end"], - properties: { - start: { - type: "integer", - minimum: 0 - }, - end: { - type: "integer", - minimum: 0 - } - } - }, - view: { - type: "object", - required: [ - "uri", - "cid", - "author", - "record", - "replyCount", - "repostCount", - "upvoteCount", - "downvoteCount", - "indexedAt", - "viewer" - ], - properties: { - uri: { - type: "string" - }, - cid: { - type: "string" - }, - author: { - type: "ref", - ref: "lex:app.bsky.actor.ref#withInfo" - }, - record: { - type: "unknown" - }, - embed: { - type: "union", - refs: [ - "lex:app.bsky.embed.images#presented", - "lex:app.bsky.embed.external#presented" - ] - }, - replyCount: { - type: "integer" - }, - repostCount: { - type: "integer" - }, - upvoteCount: { - type: "integer" - }, - downvoteCount: { - type: "integer" - }, - indexedAt: { - type: "datetime" - }, - viewer: { - type: "ref", - ref: "lex:app.bsky.feed.post#viewerState" - } - } - }, - viewerState: { - type: "object", - properties: { - repost: { - type: "string" - }, - upvote: { - type: "string" - }, - downvote: { - type: "string" - } - } - } - } - }, - AppBskyFeedRepost: { - lexicon: 1, - id: "app.bsky.feed.repost", - defs: { - main: { - type: "record", - key: "tid", - record: { - type: "object", - required: ["subject", "createdAt"], - properties: { - subject: { - type: "ref", - ref: "lex:com.atproto.repo.strongRef" - }, - createdAt: { - type: "datetime" - } - } - } - } - } - }, - AppBskyFeedSetVote: { - lexicon: 1, - id: "app.bsky.feed.setVote", - defs: { - main: { - type: "procedure", - description: "Upvote, downvote, or clear the user's vote for a post.", - input: { - encoding: "application/json", - schema: { - type: "object", - required: ["subject", "direction"], - properties: { - subject: { - type: "ref", - ref: "lex:com.atproto.repo.strongRef" - }, - direction: { - type: "string", - enum: ["up", "down", "none"] - } - } - } - }, - output: { - encoding: "application/json", - schema: { - type: "object", - properties: { - upvote: { - type: "string" - }, - downvote: { - type: "string" - } - } - } - } - } - } - }, - AppBskyFeedTrend: { - lexicon: 1, - id: "app.bsky.feed.trend", - defs: { - main: { - type: "record", - key: "tid", - record: { - type: "object", - required: ["subject", "createdAt"], - properties: { - subject: { - type: "ref", - ref: "lex:com.atproto.repo.strongRef" - }, - createdAt: { - type: "datetime" - } - } - } - } - } - }, - AppBskyFeedVote: { - lexicon: 1, - id: "app.bsky.feed.vote", - defs: { - main: { - type: "record", - key: "tid", - record: { - type: "object", - required: ["subject", "direction", "createdAt"], - properties: { - subject: { - type: "ref", - ref: "lex:com.atproto.repo.strongRef" - }, - direction: { - type: "string", - enum: ["up", "down"] - }, - createdAt: { - type: "datetime" - } - } - } - } - } - }, - AppBskyGraphAssertCreator: { - lexicon: 1, - id: "app.bsky.graph.assertCreator", - defs: { - main: { - type: "token", - description: "Assertion type: Creator. Defined for app.bsky.graph.assertions's assertion." - } - } - }, - AppBskyGraphAssertMember: { - lexicon: 1, - id: "app.bsky.graph.assertMember", - defs: { - main: { - type: "token", - description: "Assertion type: Member. Defined for app.bsky.graph.assertions's assertion." - } - } - }, - AppBskyGraphAssertion: { - lexicon: 1, - id: "app.bsky.graph.assertion", - defs: { - main: { - type: "record", - key: "tid", - record: { - type: "object", - required: ["assertion", "subject", "createdAt"], - properties: { - assertion: { - type: "string" - }, - subject: { - type: "ref", - ref: "lex:app.bsky.actor.ref" - }, - createdAt: { - type: "datetime" - } - } - } - } - } - }, - AppBskyGraphConfirmation: { - lexicon: 1, - id: "app.bsky.graph.confirmation", - defs: { - main: { - type: "record", - key: "tid", - record: { - type: "object", - required: ["originator", "assertion", "createdAt"], - properties: { - originator: { - type: "ref", - ref: "lex:app.bsky.actor.ref" - }, - assertion: { - type: "ref", - ref: "lex:com.atproto.repo.strongRef" - }, - createdAt: { - type: "datetime" - } - } - } - } - } - }, - AppBskyGraphFollow: { - lexicon: 1, - id: "app.bsky.graph.follow", - defs: { - main: { - type: "record", - description: "A social follow.", - key: "tid", - record: { - type: "object", - required: ["subject", "createdAt"], - properties: { - subject: { - type: "ref", - ref: "lex:app.bsky.actor.ref" - }, - createdAt: { - type: "datetime" - } - } - } - } - } - }, - AppBskyGraphGetAssertions: { - lexicon: 1, - id: "app.bsky.graph.getAssertions", - defs: { - main: { - type: "query", - description: "General-purpose query for assertions.", - parameters: { - type: "params", - properties: { - author: { - type: "string" - }, - subject: { - type: "string" - }, - assertion: { - type: "string" - }, - confirmed: { - type: "boolean" - }, - limit: { - type: "integer", - minimum: 1, - maximum: 100, - default: 50 - }, - before: { - type: "string" - } - } - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["assertions"], - properties: { - cursor: { - type: "string" - }, - assertions: { - type: "array", - items: { - type: "ref", - ref: "lex:app.bsky.graph.getAssertions#assertion" - } - } - } - } - } - }, - assertion: { - type: "object", - required: [ - "uri", - "cid", - "assertion", - "author", - "subject", - "indexedAt", - "createdAt" - ], - properties: { - uri: { - type: "string" - }, - cid: { - type: "string" - }, - assertion: { - type: "string" - }, - confirmation: { - type: "ref", - ref: "lex:app.bsky.graph.getAssertions#confirmation" - }, - author: { - type: "ref", - ref: "lex:app.bsky.actor.ref#withInfo" - }, - subject: { - type: "ref", - ref: "lex:app.bsky.actor.ref#withInfo" - }, - indexedAt: { - type: "datetime" - }, - createdAt: { - type: "datetime" - } - } - }, - confirmation: { - type: "object", - required: ["uri", "cid", "indexedAt", "createdAt"], - properties: { - uri: { - type: "string" - }, - cid: { - type: "string" - }, - indexedAt: { - type: "datetime" - }, - createdAt: { - type: "datetime" - } - } - } - } - }, - AppBskyGraphGetFollowers: { - lexicon: 1, - id: "app.bsky.graph.getFollowers", - defs: { - main: { - type: "query", - description: "Who is following a user?", - parameters: { - type: "params", - required: ["user"], - properties: { - user: { - type: "string" - }, - limit: { - type: "integer", - minimum: 1, - maximum: 100, - default: 50 - }, - before: { - type: "string" - } - } - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["subject", "followers"], - properties: { - subject: { - type: "ref", - ref: "lex:app.bsky.actor.ref#withInfo" - }, - cursor: { - type: "string" - }, - followers: { - type: "array", - items: { - type: "ref", - ref: "lex:app.bsky.graph.getFollowers#follower" - } - } - } - } - } - }, - follower: { - type: "object", - required: ["did", "declaration", "handle", "indexedAt"], - properties: { - did: { - type: "string" - }, - declaration: { - type: "ref", - ref: "lex:app.bsky.system.declRef" - }, - handle: { - type: "string" - }, - displayName: { - type: "string", - maxLength: 64 - }, - avatar: { - type: "string" - }, - createdAt: { - type: "datetime" - }, - indexedAt: { - type: "datetime" - } - } - } - } - }, - AppBskyGraphGetFollows: { - lexicon: 1, - id: "app.bsky.graph.getFollows", - defs: { - main: { - type: "query", - description: "Who is a user following?", - parameters: { - type: "params", - required: ["user"], - properties: { - user: { - type: "string" - }, - limit: { - type: "integer", - minimum: 1, - maximum: 100, - default: 50 - }, - before: { - type: "string" - } - } - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["subject", "follows"], - properties: { - subject: { - type: "ref", - ref: "lex:app.bsky.actor.ref#withInfo" - }, - cursor: { - type: "string" - }, - follows: { - type: "array", - items: { - type: "ref", - ref: "lex:app.bsky.graph.getFollows#follow" - } - } - } - } - } - }, - follow: { - type: "object", - required: ["did", "declaration", "handle", "indexedAt"], - properties: { - did: { - type: "string" - }, - declaration: { - type: "ref", - ref: "lex:app.bsky.system.declRef" - }, - handle: { - type: "string" - }, - displayName: { - type: "string", - maxLength: 64 - }, - createdAt: { - type: "datetime" - }, - indexedAt: { - type: "datetime" - } - } - } - } - }, - AppBskyGraphGetMembers: { - lexicon: 1, - id: "app.bsky.graph.getMembers", - defs: { - main: { - type: "query", - description: "Who is a member of the group?", - parameters: { - type: "params", - required: ["actor"], - properties: { - actor: { - type: "string" - }, - limit: { - type: "integer", - minimum: 1, - maximum: 100, - default: 50 - }, - before: { - type: "string" - } - } - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["subject", "members"], - properties: { - subject: { - type: "ref", - ref: "lex:app.bsky.actor.ref#withInfo" - }, - cursor: { - type: "string" - }, - members: { - type: "array", - items: { - type: "ref", - ref: "lex:app.bsky.graph.getMembers#member" - } - } - } - } - } - }, - member: { - type: "object", - required: ["did", "declaration", "handle", "indexedAt"], - properties: { - did: { - type: "string" - }, - declaration: { - type: "ref", - ref: "lex:app.bsky.system.declRef" - }, - handle: { - type: "string" - }, - displayName: { - type: "string", - maxLength: 64 - }, - createdAt: { - type: "datetime" - }, - indexedAt: { - type: "datetime" - } - } - } - } - }, - AppBskyGraphGetMemberships: { - lexicon: 1, - id: "app.bsky.graph.getMemberships", - defs: { - main: { - type: "query", - description: "Which groups is the actor a member of?", - parameters: { - type: "params", - required: ["actor"], - properties: { - actor: { - type: "string" - }, - limit: { - type: "integer", - minimum: 1, - maximum: 100, - default: 50 - }, - before: { - type: "string" - } - } - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["subject", "memberships"], - properties: { - subject: { - type: "ref", - ref: "lex:app.bsky.actor.ref#withInfo" - }, - cursor: { - type: "string" - }, - memberships: { - type: "array", - items: { - type: "ref", - ref: "lex:app.bsky.graph.getMemberships#membership" - } - } - } - } - } - }, - membership: { - type: "object", - required: ["did", "declaration", "handle", "indexedAt"], - properties: { - did: { - type: "string" - }, - declaration: { - type: "ref", - ref: "lex:app.bsky.system.declRef" - }, - handle: { - type: "string" - }, - displayName: { - type: "string", - maxLength: 64 - }, - createdAt: { - type: "datetime" - }, - indexedAt: { - type: "datetime" - } - } - } - } - }, - AppBskyNotificationGetCount: { - lexicon: 1, - id: "app.bsky.notification.getCount", - defs: { - main: { - type: "query", - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["count"], - properties: { - count: { - type: "integer" - } - } - } - } - } - } - }, - AppBskyNotificationList: { - lexicon: 1, - id: "app.bsky.notification.list", - defs: { - main: { - type: "query", - parameters: { - type: "params", - properties: { - limit: { - type: "integer", - minimum: 1, - maximum: 100, - default: 50 - }, - before: { - type: "string" - } - } - }, - output: { - encoding: "application/json", - schema: { - type: "object", - required: ["notifications"], - properties: { - cursor: { - type: "string" - }, - notifications: { - type: "array", - items: { - type: "ref", - ref: "lex:app.bsky.notification.list#notification" - } - } - } - } - } - }, - notification: { - type: "object", - required: [ - "uri", - "cid", - "author", - "reason", - "record", - "isRead", - "indexedAt" - ], - properties: { - uri: { - type: "string" - }, - cid: { - type: "string" - }, - author: { - type: "ref", - ref: "lex:app.bsky.actor.ref#withInfo" - }, - reason: { - type: "string", - description: "Expected values are 'vote', 'repost', 'trend', 'follow', 'invite', 'mention' and 'reply'.", - knownValues: [ - "vote", - "repost", - "trend", - "follow", - "invite", - "mention", - "reply" - ] - }, - reasonSubject: { - type: "string" - }, - record: { - type: "unknown" - }, - isRead: { - type: "boolean" - }, - indexedAt: { - type: "datetime" - } - } - } - } - }, - AppBskyNotificationUpdateSeen: { - lexicon: 1, - id: "app.bsky.notification.updateSeen", - defs: { - main: { - type: "procedure", - description: "Notify server that the user has seen notifications.", - input: { - encoding: "application/json", - schema: { - type: "object", - required: ["seenAt"], - properties: { - seenAt: { - type: "datetime" - } - } - } - } - } - } - }, - AppBskySystemActorScene: { - lexicon: 1, - id: "app.bsky.system.actorScene", - defs: { - main: { - type: "token", - description: "Actor type: Scene. Defined for app.bsky.system.declaration's actorType." - } - } - }, - AppBskySystemActorUser: { - lexicon: 1, - id: "app.bsky.system.actorUser", - defs: { - main: { - type: "token", - description: "Actor type: User. Defined for app.bsky.system.declaration's actorType." - } - } - }, - AppBskySystemDeclRef: { - lexicon: 1, - id: "app.bsky.system.declRef", - defs: { - main: { - description: "A reference to a app.bsky.system.declaration record.", - type: "object", - required: ["cid", "actorType"], - properties: { - cid: { - type: "string" - }, - actorType: { - type: "string", - knownValues: [ - "app.bsky.system.actorUser", - "app.bsky.system.actorScene" - ] - } - } - } - } - }, - AppBskySystemDeclaration: { - lexicon: 1, - id: "app.bsky.system.declaration", - defs: { - main: { - description: "Context for an account that is considered intrinsic to it and alters the fundamental understanding of an account of changed. A declaration should be treated as immutable.", - type: "record", - key: "literal:self", - record: { - type: "object", - required: ["actorType"], - properties: { - actorType: { - type: "string", - knownValues: [ - "app.bsky.system.actorUser", - "app.bsky.system.actorScene" - ] - } - } - } - } - } - } -}; -var schemas = Object.values(schemaDict); -var lexicons = new Lexicons(schemas); - -// src/client/types/com/atproto/account/create.ts -var create_exports = {}; -__export(create_exports, { - HandleNotAvailableError: () => HandleNotAvailableError, - InvalidHandleError: () => InvalidHandleError, - InvalidInviteCodeError: () => InvalidInviteCodeError, - InvalidPasswordError: () => InvalidPasswordError, - toKnownErr: () => toKnownErr -}); -var InvalidHandleError = class extends XRPCError { - constructor(src) { - super(src.status, src.error, src.message); - } -}; -var InvalidPasswordError = class extends XRPCError { - constructor(src) { - super(src.status, src.error, src.message); - } -}; -var InvalidInviteCodeError = class extends XRPCError { - constructor(src) { - super(src.status, src.error, src.message); - } -}; -var HandleNotAvailableError = class extends XRPCError { - constructor(src) { - super(src.status, src.error, src.message); - } -}; -function toKnownErr(e) { - if (e instanceof XRPCError) { - if (e.error === "InvalidHandle") - return new InvalidHandleError(e); - if (e.error === "InvalidPassword") - return new InvalidPasswordError(e); - if (e.error === "InvalidInviteCode") - return new InvalidInviteCodeError(e); - if (e.error === "HandleNotAvailable") - return new HandleNotAvailableError(e); - } - return e; -} - -// src/client/types/com/atproto/account/createInviteCode.ts -var createInviteCode_exports = {}; -__export(createInviteCode_exports, { - toKnownErr: () => toKnownErr2 -}); -function toKnownErr2(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/com/atproto/account/delete.ts -var delete_exports = {}; -__export(delete_exports, { - toKnownErr: () => toKnownErr3 -}); -function toKnownErr3(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/com/atproto/account/get.ts -var get_exports = {}; -__export(get_exports, { - toKnownErr: () => toKnownErr4 -}); -function toKnownErr4(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/com/atproto/account/requestPasswordReset.ts -var requestPasswordReset_exports = {}; -__export(requestPasswordReset_exports, { - toKnownErr: () => toKnownErr5 -}); -function toKnownErr5(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/com/atproto/account/resetPassword.ts -var resetPassword_exports = {}; -__export(resetPassword_exports, { - ExpiredTokenError: () => ExpiredTokenError, - InvalidTokenError: () => InvalidTokenError, - toKnownErr: () => toKnownErr6 -}); -var ExpiredTokenError = class extends XRPCError { - constructor(src) { - super(src.status, src.error, src.message); - } -}; -var InvalidTokenError = class extends XRPCError { - constructor(src) { - super(src.status, src.error, src.message); - } -}; -function toKnownErr6(e) { - if (e instanceof XRPCError) { - if (e.error === "ExpiredToken") - return new ExpiredTokenError(e); - if (e.error === "InvalidToken") - return new InvalidTokenError(e); - } - return e; -} - -// src/client/types/com/atproto/blob/upload.ts -var upload_exports = {}; -__export(upload_exports, { - toKnownErr: () => toKnownErr7 -}); -function toKnownErr7(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/com/atproto/handle/resolve.ts -var resolve_exports = {}; -__export(resolve_exports, { - toKnownErr: () => toKnownErr8 -}); -function toKnownErr8(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/com/atproto/repo/batchWrite.ts -var batchWrite_exports = {}; -__export(batchWrite_exports, { - toKnownErr: () => toKnownErr9 -}); -function toKnownErr9(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/com/atproto/repo/createRecord.ts -var createRecord_exports = {}; -__export(createRecord_exports, { - toKnownErr: () => toKnownErr10 -}); -function toKnownErr10(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/com/atproto/repo/deleteRecord.ts -var deleteRecord_exports = {}; -__export(deleteRecord_exports, { - toKnownErr: () => toKnownErr11 -}); -function toKnownErr11(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/com/atproto/repo/describe.ts -var describe_exports = {}; -__export(describe_exports, { - toKnownErr: () => toKnownErr12 -}); -function toKnownErr12(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/com/atproto/repo/getRecord.ts -var getRecord_exports = {}; -__export(getRecord_exports, { - toKnownErr: () => toKnownErr13 -}); -function toKnownErr13(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/com/atproto/repo/listRecords.ts -var listRecords_exports = {}; -__export(listRecords_exports, { - toKnownErr: () => toKnownErr14 -}); -function toKnownErr14(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/com/atproto/repo/putRecord.ts -var putRecord_exports = {}; -__export(putRecord_exports, { - toKnownErr: () => toKnownErr15 -}); -function toKnownErr15(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/com/atproto/server/getAccountsConfig.ts -var getAccountsConfig_exports = {}; -__export(getAccountsConfig_exports, { - toKnownErr: () => toKnownErr16 -}); -function toKnownErr16(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/com/atproto/session/create.ts -var create_exports2 = {}; -__export(create_exports2, { - toKnownErr: () => toKnownErr17 -}); -function toKnownErr17(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/com/atproto/session/delete.ts -var delete_exports2 = {}; -__export(delete_exports2, { - toKnownErr: () => toKnownErr18 -}); -function toKnownErr18(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/com/atproto/session/get.ts -var get_exports2 = {}; -__export(get_exports2, { - toKnownErr: () => toKnownErr19 -}); -function toKnownErr19(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/com/atproto/session/refresh.ts -var refresh_exports = {}; -__export(refresh_exports, { - toKnownErr: () => toKnownErr20 -}); -function toKnownErr20(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/com/atproto/sync/getRepo.ts -var getRepo_exports = {}; -__export(getRepo_exports, { - toKnownErr: () => toKnownErr21 -}); -function toKnownErr21(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/com/atproto/sync/getRoot.ts -var getRoot_exports = {}; -__export(getRoot_exports, { - toKnownErr: () => toKnownErr22 -}); -function toKnownErr22(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/com/atproto/sync/updateRepo.ts -var updateRepo_exports = {}; -__export(updateRepo_exports, { - toKnownErr: () => toKnownErr23 -}); -function toKnownErr23(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/app/bsky/actor/createScene.ts -var createScene_exports = {}; -__export(createScene_exports, { - HandleNotAvailableError: () => HandleNotAvailableError2, - InvalidHandleError: () => InvalidHandleError2, - toKnownErr: () => toKnownErr24 -}); -var InvalidHandleError2 = class extends XRPCError { - constructor(src) { - super(src.status, src.error, src.message); - } -}; -var HandleNotAvailableError2 = class extends XRPCError { - constructor(src) { - super(src.status, src.error, src.message); - } -}; -function toKnownErr24(e) { - if (e instanceof XRPCError) { - if (e.error === "InvalidHandle") - return new InvalidHandleError2(e); - if (e.error === "HandleNotAvailable") - return new HandleNotAvailableError2(e); - } - return e; -} - -// src/client/types/app/bsky/actor/getProfile.ts -var getProfile_exports = {}; -__export(getProfile_exports, { - toKnownErr: () => toKnownErr25 -}); -function toKnownErr25(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/app/bsky/actor/getSuggestions.ts -var getSuggestions_exports = {}; -__export(getSuggestions_exports, { - toKnownErr: () => toKnownErr26 -}); -function toKnownErr26(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/app/bsky/actor/search.ts -var search_exports = {}; -__export(search_exports, { - toKnownErr: () => toKnownErr27 -}); -function toKnownErr27(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/app/bsky/actor/searchTypeahead.ts -var searchTypeahead_exports = {}; -__export(searchTypeahead_exports, { - toKnownErr: () => toKnownErr28 -}); -function toKnownErr28(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/app/bsky/actor/updateProfile.ts -var updateProfile_exports = {}; -__export(updateProfile_exports, { - BlobTooLargeError: () => BlobTooLargeError, - InvalidBlobError: () => InvalidBlobError, - InvalidImageDimensionsError: () => InvalidImageDimensionsError, - InvalidMimeTypeError: () => InvalidMimeTypeError, - toKnownErr: () => toKnownErr29 -}); -var InvalidBlobError = class extends XRPCError { - constructor(src) { - super(src.status, src.error, src.message); - } -}; -var BlobTooLargeError = class extends XRPCError { - constructor(src) { - super(src.status, src.error, src.message); - } -}; -var InvalidMimeTypeError = class extends XRPCError { - constructor(src) { - super(src.status, src.error, src.message); - } -}; -var InvalidImageDimensionsError = class extends XRPCError { - constructor(src) { - super(src.status, src.error, src.message); - } -}; -function toKnownErr29(e) { - if (e instanceof XRPCError) { - if (e.error === "InvalidBlob") - return new InvalidBlobError(e); - if (e.error === "BlobTooLarge") - return new BlobTooLargeError(e); - if (e.error === "InvalidMimeType") - return new InvalidMimeTypeError(e); - if (e.error === "InvalidImageDimensions") - return new InvalidImageDimensionsError(e); - } - return e; -} - -// src/client/types/app/bsky/feed/getAuthorFeed.ts -var getAuthorFeed_exports = {}; -__export(getAuthorFeed_exports, { - toKnownErr: () => toKnownErr30 -}); -function toKnownErr30(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/app/bsky/feed/getPostThread.ts -var getPostThread_exports = {}; -__export(getPostThread_exports, { - NotFoundError: () => NotFoundError, - toKnownErr: () => toKnownErr31 -}); -var NotFoundError = class extends XRPCError { - constructor(src) { - super(src.status, src.error, src.message); - } -}; -function toKnownErr31(e) { - if (e instanceof XRPCError) { - if (e.error === "NotFound") - return new NotFoundError(e); - } - return e; -} - -// src/client/types/app/bsky/feed/getRepostedBy.ts -var getRepostedBy_exports = {}; -__export(getRepostedBy_exports, { - toKnownErr: () => toKnownErr32 -}); -function toKnownErr32(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/app/bsky/feed/getTimeline.ts -var getTimeline_exports = {}; -__export(getTimeline_exports, { - toKnownErr: () => toKnownErr33 -}); -function toKnownErr33(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/app/bsky/feed/getVotes.ts -var getVotes_exports = {}; -__export(getVotes_exports, { - toKnownErr: () => toKnownErr34 -}); -function toKnownErr34(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/app/bsky/feed/setVote.ts -var setVote_exports = {}; -__export(setVote_exports, { - toKnownErr: () => toKnownErr35 -}); -function toKnownErr35(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/app/bsky/graph/getAssertions.ts -var getAssertions_exports = {}; -__export(getAssertions_exports, { - toKnownErr: () => toKnownErr36 -}); -function toKnownErr36(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/app/bsky/graph/getFollowers.ts -var getFollowers_exports = {}; -__export(getFollowers_exports, { - toKnownErr: () => toKnownErr37 -}); -function toKnownErr37(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/app/bsky/graph/getFollows.ts -var getFollows_exports = {}; -__export(getFollows_exports, { - toKnownErr: () => toKnownErr38 -}); -function toKnownErr38(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/app/bsky/graph/getMembers.ts -var getMembers_exports = {}; -__export(getMembers_exports, { - toKnownErr: () => toKnownErr39 -}); -function toKnownErr39(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/app/bsky/graph/getMemberships.ts -var getMemberships_exports = {}; -__export(getMemberships_exports, { - toKnownErr: () => toKnownErr40 -}); -function toKnownErr40(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/app/bsky/notification/getCount.ts -var getCount_exports = {}; -__export(getCount_exports, { - toKnownErr: () => toKnownErr41 -}); -function toKnownErr41(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/app/bsky/notification/list.ts -var list_exports = {}; -__export(list_exports, { - toKnownErr: () => toKnownErr42 -}); -function toKnownErr42(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/app/bsky/notification/updateSeen.ts -var updateSeen_exports = {}; -__export(updateSeen_exports, { - toKnownErr: () => toKnownErr43 -}); -function toKnownErr43(e) { - if (e instanceof XRPCError) { - } - return e; -} - -// src/client/types/com/atproto/repo/strongRef.ts -var strongRef_exports = {}; - -// src/client/types/app/bsky/actor/profile.ts -var profile_exports = {}; - -// src/client/types/app/bsky/actor/ref.ts -var ref_exports = {}; - -// src/client/types/app/bsky/embed/external.ts -var external_exports = {}; - -// src/client/types/app/bsky/embed/images.ts -var images_exports = {}; - -// src/client/types/app/bsky/feed/feedViewPost.ts -var feedViewPost_exports = {}; - -// src/client/types/app/bsky/feed/post.ts -var post_exports = {}; - -// src/client/types/app/bsky/feed/repost.ts -var repost_exports = {}; - -// src/client/types/app/bsky/feed/trend.ts -var trend_exports = {}; - -// src/client/types/app/bsky/feed/vote.ts -var vote_exports = {}; - -// src/client/types/app/bsky/graph/assertCreator.ts -var assertCreator_exports = {}; -__export(assertCreator_exports, { - MAIN: () => MAIN -}); -var MAIN = "app.bsky.graph.assertCreator#main"; - -// src/client/types/app/bsky/graph/assertMember.ts -var assertMember_exports = {}; -__export(assertMember_exports, { - MAIN: () => MAIN2 -}); -var MAIN2 = "app.bsky.graph.assertMember#main"; - -// src/client/types/app/bsky/graph/assertion.ts -var assertion_exports = {}; - -// src/client/types/app/bsky/graph/confirmation.ts -var confirmation_exports = {}; - -// src/client/types/app/bsky/graph/follow.ts -var follow_exports = {}; - -// src/client/types/app/bsky/system/actorScene.ts -var actorScene_exports = {}; -__export(actorScene_exports, { - MAIN: () => MAIN3 -}); -var MAIN3 = "app.bsky.system.actorScene#main"; - -// src/client/types/app/bsky/system/actorUser.ts -var actorUser_exports = {}; -__export(actorUser_exports, { - MAIN: () => MAIN4 -}); -var MAIN4 = "app.bsky.system.actorUser#main"; - -// src/client/types/app/bsky/system/declRef.ts -var declRef_exports = {}; - -// src/client/types/app/bsky/system/declaration.ts -var declaration_exports = {}; - -// src/client/index.ts -var APP_BSKY_GRAPH = { - AssertCreator: "app.bsky.graph.assertCreator", - AssertMember: "app.bsky.graph.assertMember" -}; -var APP_BSKY_SYSTEM = { - ActorScene: "app.bsky.system.actorScene", - ActorUser: "app.bsky.system.actorUser" -}; -var Client2 = class { - constructor() { - this.xrpc = new Client(); - this.xrpc.addLexicons(schemas); - } - service(serviceUri) { - return new ServiceClient2(this, this.xrpc.service(serviceUri)); - } -}; -var defaultInst2 = new Client2(); -var client_default = defaultInst2; -var ServiceClient2 = class { - constructor(baseClient, xrpcService) { - this._baseClient = baseClient; - this.xrpc = xrpcService; - this.com = new ComNS(this); - this.app = new AppNS(this); - } - setHeader(key, value) { - this.xrpc.setHeader(key, value); - } -}; -var ComNS = class { - constructor(service) { - this._service = service; - this.atproto = new AtprotoNS(service); - } -}; -var AtprotoNS = class { - constructor(service) { - this._service = service; - this.account = new AccountNS(service); - this.blob = new BlobNS(service); - this.handle = new HandleNS(service); - this.repo = new RepoNS(service); - this.server = new ServerNS(service); - this.session = new SessionNS(service); - this.sync = new SyncNS(service); - } -}; -var AccountNS = class { - constructor(service) { - this._service = service; - } - create(data, opts) { - return this._service.xrpc.call("com.atproto.account.create", opts?.qp, data, opts).catch((e) => { - throw toKnownErr(e); - }); - } - createInviteCode(data, opts) { - return this._service.xrpc.call("com.atproto.account.createInviteCode", opts?.qp, data, opts).catch((e) => { - throw toKnownErr2(e); - }); - } - delete(data, opts) { - return this._service.xrpc.call("com.atproto.account.delete", opts?.qp, data, opts).catch((e) => { - throw toKnownErr3(e); - }); - } - get(params2, opts) { - return this._service.xrpc.call("com.atproto.account.get", params2, void 0, opts).catch((e) => { - throw toKnownErr4(e); - }); - } - requestPasswordReset(data, opts) { - return this._service.xrpc.call("com.atproto.account.requestPasswordReset", opts?.qp, data, opts).catch((e) => { - throw toKnownErr5(e); - }); - } - resetPassword(data, opts) { - return this._service.xrpc.call("com.atproto.account.resetPassword", opts?.qp, data, opts).catch((e) => { - throw toKnownErr6(e); - }); - } -}; -var BlobNS = class { - constructor(service) { - this._service = service; - } - upload(data, opts) { - return this._service.xrpc.call("com.atproto.blob.upload", opts?.qp, data, opts).catch((e) => { - throw toKnownErr7(e); - }); - } -}; -var HandleNS = class { - constructor(service) { - this._service = service; - } - resolve(params2, opts) { - return this._service.xrpc.call("com.atproto.handle.resolve", params2, void 0, opts).catch((e) => { - throw toKnownErr8(e); - }); - } -}; -var RepoNS = class { - constructor(service) { - this._service = service; - } - batchWrite(data, opts) { - return this._service.xrpc.call("com.atproto.repo.batchWrite", opts?.qp, data, opts).catch((e) => { - throw toKnownErr9(e); - }); - } - createRecord(data, opts) { - return this._service.xrpc.call("com.atproto.repo.createRecord", opts?.qp, data, opts).catch((e) => { - throw toKnownErr10(e); - }); - } - deleteRecord(data, opts) { - return this._service.xrpc.call("com.atproto.repo.deleteRecord", opts?.qp, data, opts).catch((e) => { - throw toKnownErr11(e); - }); - } - describe(params2, opts) { - return this._service.xrpc.call("com.atproto.repo.describe", params2, void 0, opts).catch((e) => { - throw toKnownErr12(e); - }); - } - getRecord(params2, opts) { - return this._service.xrpc.call("com.atproto.repo.getRecord", params2, void 0, opts).catch((e) => { - throw toKnownErr13(e); - }); - } - listRecords(params2, opts) { - return this._service.xrpc.call("com.atproto.repo.listRecords", params2, void 0, opts).catch((e) => { - throw toKnownErr14(e); - }); - } - putRecord(data, opts) { - return this._service.xrpc.call("com.atproto.repo.putRecord", opts?.qp, data, opts).catch((e) => { - throw toKnownErr15(e); - }); - } -}; -var ServerNS = class { - constructor(service) { - this._service = service; - } - getAccountsConfig(params2, opts) { - return this._service.xrpc.call("com.atproto.server.getAccountsConfig", params2, void 0, opts).catch((e) => { - throw toKnownErr16(e); - }); - } -}; -var SessionNS = class { - constructor(service) { - this._service = service; - } - create(data, opts) { - return this._service.xrpc.call("com.atproto.session.create", opts?.qp, data, opts).catch((e) => { - throw toKnownErr17(e); - }); - } - delete(data, opts) { - return this._service.xrpc.call("com.atproto.session.delete", opts?.qp, data, opts).catch((e) => { - throw toKnownErr18(e); - }); - } - get(params2, opts) { - return this._service.xrpc.call("com.atproto.session.get", params2, void 0, opts).catch((e) => { - throw toKnownErr19(e); - }); - } - refresh(data, opts) { - return this._service.xrpc.call("com.atproto.session.refresh", opts?.qp, data, opts).catch((e) => { - throw toKnownErr20(e); - }); - } -}; -var SyncNS = class { - constructor(service) { - this._service = service; - } - getRepo(params2, opts) { - return this._service.xrpc.call("com.atproto.sync.getRepo", params2, void 0, opts).catch((e) => { - throw toKnownErr21(e); - }); - } - getRoot(params2, opts) { - return this._service.xrpc.call("com.atproto.sync.getRoot", params2, void 0, opts).catch((e) => { - throw toKnownErr22(e); - }); - } - updateRepo(data, opts) { - return this._service.xrpc.call("com.atproto.sync.updateRepo", opts?.qp, data, opts).catch((e) => { - throw toKnownErr23(e); - }); - } -}; -var AppNS = class { - constructor(service) { - this._service = service; - this.bsky = new BskyNS(service); - } -}; -var BskyNS = class { - constructor(service) { - this._service = service; - this.actor = new ActorNS(service); - this.embed = new EmbedNS(service); - this.feed = new FeedNS(service); - this.graph = new GraphNS(service); - this.notification = new NotificationNS(service); - this.system = new SystemNS(service); - } -}; -var ActorNS = class { - constructor(service) { - this._service = service; - this.profile = new ProfileRecord(service); - } - createScene(data, opts) { - return this._service.xrpc.call("app.bsky.actor.createScene", opts?.qp, data, opts).catch((e) => { - throw toKnownErr24(e); - }); - } - getProfile(params2, opts) { - return this._service.xrpc.call("app.bsky.actor.getProfile", params2, void 0, opts).catch((e) => { - throw toKnownErr25(e); - }); - } - getSuggestions(params2, opts) { - return this._service.xrpc.call("app.bsky.actor.getSuggestions", params2, void 0, opts).catch((e) => { - throw toKnownErr26(e); - }); - } - search(params2, opts) { - return this._service.xrpc.call("app.bsky.actor.search", params2, void 0, opts).catch((e) => { - throw toKnownErr27(e); - }); - } - searchTypeahead(params2, opts) { - return this._service.xrpc.call("app.bsky.actor.searchTypeahead", params2, void 0, opts).catch((e) => { - throw toKnownErr28(e); - }); - } - updateProfile(data, opts) { - return this._service.xrpc.call("app.bsky.actor.updateProfile", opts?.qp, data, opts).catch((e) => { - throw toKnownErr29(e); - }); - } -}; -var ProfileRecord = class { - constructor(service) { - this._service = service; - } - async list(params2) { - const res = await this._service.xrpc.call("com.atproto.repo.listRecords", { - collection: "app.bsky.actor.profile", - ...params2 - }); - return res.data; - } - async get(params2) { - const res = await this._service.xrpc.call("com.atproto.repo.getRecord", { - collection: "app.bsky.actor.profile", - ...params2 - }); - return res.data; - } - async create(params2, record, headers) { - record.$type = "app.bsky.actor.profile"; - const res = await this._service.xrpc.call( - "com.atproto.repo.createRecord", - void 0, - { collection: "app.bsky.actor.profile", ...params2, record }, - { encoding: "application/json", headers } - ); - return res.data; - } - async delete(params2, headers) { - await this._service.xrpc.call( - "com.atproto.repo.deleteRecord", - void 0, - { collection: "app.bsky.actor.profile", ...params2 }, - { headers } - ); - } -}; -var EmbedNS = class { - constructor(service) { - this._service = service; - } -}; -var FeedNS = class { - constructor(service) { - this._service = service; - this.post = new PostRecord(service); - this.repost = new RepostRecord(service); - this.trend = new TrendRecord(service); - this.vote = new VoteRecord(service); - } - getAuthorFeed(params2, opts) { - return this._service.xrpc.call("app.bsky.feed.getAuthorFeed", params2, void 0, opts).catch((e) => { - throw toKnownErr30(e); - }); - } - getPostThread(params2, opts) { - return this._service.xrpc.call("app.bsky.feed.getPostThread", params2, void 0, opts).catch((e) => { - throw toKnownErr31(e); - }); - } - getRepostedBy(params2, opts) { - return this._service.xrpc.call("app.bsky.feed.getRepostedBy", params2, void 0, opts).catch((e) => { - throw toKnownErr32(e); - }); - } - getTimeline(params2, opts) { - return this._service.xrpc.call("app.bsky.feed.getTimeline", params2, void 0, opts).catch((e) => { - throw toKnownErr33(e); - }); - } - getVotes(params2, opts) { - return this._service.xrpc.call("app.bsky.feed.getVotes", params2, void 0, opts).catch((e) => { - throw toKnownErr34(e); - }); - } - setVote(data, opts) { - return this._service.xrpc.call("app.bsky.feed.setVote", opts?.qp, data, opts).catch((e) => { - throw toKnownErr35(e); - }); - } -}; -var PostRecord = class { - constructor(service) { - this._service = service; - } - async list(params2) { - const res = await this._service.xrpc.call("com.atproto.repo.listRecords", { - collection: "app.bsky.feed.post", - ...params2 - }); - return res.data; - } - async get(params2) { - const res = await this._service.xrpc.call("com.atproto.repo.getRecord", { - collection: "app.bsky.feed.post", - ...params2 - }); - return res.data; - } - async create(params2, record, headers) { - record.$type = "app.bsky.feed.post"; - const res = await this._service.xrpc.call( - "com.atproto.repo.createRecord", - void 0, - { collection: "app.bsky.feed.post", ...params2, record }, - { encoding: "application/json", headers } - ); - return res.data; - } - async delete(params2, headers) { - await this._service.xrpc.call( - "com.atproto.repo.deleteRecord", - void 0, - { collection: "app.bsky.feed.post", ...params2 }, - { headers } - ); - } -}; -var RepostRecord = class { - constructor(service) { - this._service = service; - } - async list(params2) { - const res = await this._service.xrpc.call("com.atproto.repo.listRecords", { - collection: "app.bsky.feed.repost", - ...params2 - }); - return res.data; - } - async get(params2) { - const res = await this._service.xrpc.call("com.atproto.repo.getRecord", { - collection: "app.bsky.feed.repost", - ...params2 - }); - return res.data; - } - async create(params2, record, headers) { - record.$type = "app.bsky.feed.repost"; - const res = await this._service.xrpc.call( - "com.atproto.repo.createRecord", - void 0, - { collection: "app.bsky.feed.repost", ...params2, record }, - { encoding: "application/json", headers } - ); - return res.data; - } - async delete(params2, headers) { - await this._service.xrpc.call( - "com.atproto.repo.deleteRecord", - void 0, - { collection: "app.bsky.feed.repost", ...params2 }, - { headers } - ); - } -}; -var TrendRecord = class { - constructor(service) { - this._service = service; - } - async list(params2) { - const res = await this._service.xrpc.call("com.atproto.repo.listRecords", { - collection: "app.bsky.feed.trend", - ...params2 - }); - return res.data; - } - async get(params2) { - const res = await this._service.xrpc.call("com.atproto.repo.getRecord", { - collection: "app.bsky.feed.trend", - ...params2 - }); - return res.data; - } - async create(params2, record, headers) { - record.$type = "app.bsky.feed.trend"; - const res = await this._service.xrpc.call( - "com.atproto.repo.createRecord", - void 0, - { collection: "app.bsky.feed.trend", ...params2, record }, - { encoding: "application/json", headers } - ); - return res.data; - } - async delete(params2, headers) { - await this._service.xrpc.call( - "com.atproto.repo.deleteRecord", - void 0, - { collection: "app.bsky.feed.trend", ...params2 }, - { headers } - ); - } -}; -var VoteRecord = class { - constructor(service) { - this._service = service; - } - async list(params2) { - const res = await this._service.xrpc.call("com.atproto.repo.listRecords", { - collection: "app.bsky.feed.vote", - ...params2 - }); - return res.data; - } - async get(params2) { - const res = await this._service.xrpc.call("com.atproto.repo.getRecord", { - collection: "app.bsky.feed.vote", - ...params2 - }); - return res.data; - } - async create(params2, record, headers) { - record.$type = "app.bsky.feed.vote"; - const res = await this._service.xrpc.call( - "com.atproto.repo.createRecord", - void 0, - { collection: "app.bsky.feed.vote", ...params2, record }, - { encoding: "application/json", headers } - ); - return res.data; - } - async delete(params2, headers) { - await this._service.xrpc.call( - "com.atproto.repo.deleteRecord", - void 0, - { collection: "app.bsky.feed.vote", ...params2 }, - { headers } - ); - } -}; -var GraphNS = class { - constructor(service) { - this._service = service; - this.assertion = new AssertionRecord(service); - this.confirmation = new ConfirmationRecord(service); - this.follow = new FollowRecord(service); - } - getAssertions(params2, opts) { - return this._service.xrpc.call("app.bsky.graph.getAssertions", params2, void 0, opts).catch((e) => { - throw toKnownErr36(e); - }); - } - getFollowers(params2, opts) { - return this._service.xrpc.call("app.bsky.graph.getFollowers", params2, void 0, opts).catch((e) => { - throw toKnownErr37(e); - }); - } - getFollows(params2, opts) { - return this._service.xrpc.call("app.bsky.graph.getFollows", params2, void 0, opts).catch((e) => { - throw toKnownErr38(e); - }); - } - getMembers(params2, opts) { - return this._service.xrpc.call("app.bsky.graph.getMembers", params2, void 0, opts).catch((e) => { - throw toKnownErr39(e); - }); - } - getMemberships(params2, opts) { - return this._service.xrpc.call("app.bsky.graph.getMemberships", params2, void 0, opts).catch((e) => { - throw toKnownErr40(e); - }); - } -}; -var AssertionRecord = class { - constructor(service) { - this._service = service; - } - async list(params2) { - const res = await this._service.xrpc.call("com.atproto.repo.listRecords", { - collection: "app.bsky.graph.assertion", - ...params2 - }); - return res.data; - } - async get(params2) { - const res = await this._service.xrpc.call("com.atproto.repo.getRecord", { - collection: "app.bsky.graph.assertion", - ...params2 - }); - return res.data; - } - async create(params2, record, headers) { - record.$type = "app.bsky.graph.assertion"; - const res = await this._service.xrpc.call( - "com.atproto.repo.createRecord", - void 0, - { collection: "app.bsky.graph.assertion", ...params2, record }, - { encoding: "application/json", headers } - ); - return res.data; - } - async delete(params2, headers) { - await this._service.xrpc.call( - "com.atproto.repo.deleteRecord", - void 0, - { collection: "app.bsky.graph.assertion", ...params2 }, - { headers } - ); - } -}; -var ConfirmationRecord = class { - constructor(service) { - this._service = service; - } - async list(params2) { - const res = await this._service.xrpc.call("com.atproto.repo.listRecords", { - collection: "app.bsky.graph.confirmation", - ...params2 - }); - return res.data; - } - async get(params2) { - const res = await this._service.xrpc.call("com.atproto.repo.getRecord", { - collection: "app.bsky.graph.confirmation", - ...params2 - }); - return res.data; - } - async create(params2, record, headers) { - record.$type = "app.bsky.graph.confirmation"; - const res = await this._service.xrpc.call( - "com.atproto.repo.createRecord", - void 0, - { collection: "app.bsky.graph.confirmation", ...params2, record }, - { encoding: "application/json", headers } - ); - return res.data; - } - async delete(params2, headers) { - await this._service.xrpc.call( - "com.atproto.repo.deleteRecord", - void 0, - { collection: "app.bsky.graph.confirmation", ...params2 }, - { headers } - ); - } -}; -var FollowRecord = class { - constructor(service) { - this._service = service; - } - async list(params2) { - const res = await this._service.xrpc.call("com.atproto.repo.listRecords", { - collection: "app.bsky.graph.follow", - ...params2 - }); - return res.data; - } - async get(params2) { - const res = await this._service.xrpc.call("com.atproto.repo.getRecord", { - collection: "app.bsky.graph.follow", - ...params2 - }); - return res.data; - } - async create(params2, record, headers) { - record.$type = "app.bsky.graph.follow"; - const res = await this._service.xrpc.call( - "com.atproto.repo.createRecord", - void 0, - { collection: "app.bsky.graph.follow", ...params2, record }, - { encoding: "application/json", headers } - ); - return res.data; - } - async delete(params2, headers) { - await this._service.xrpc.call( - "com.atproto.repo.deleteRecord", - void 0, - { collection: "app.bsky.graph.follow", ...params2 }, - { headers } - ); - } -}; -var NotificationNS = class { - constructor(service) { - this._service = service; - } - getCount(params2, opts) { - return this._service.xrpc.call("app.bsky.notification.getCount", params2, void 0, opts).catch((e) => { - throw toKnownErr41(e); - }); - } - list(params2, opts) { - return this._service.xrpc.call("app.bsky.notification.list", params2, void 0, opts).catch((e) => { - throw toKnownErr42(e); - }); - } - updateSeen(data, opts) { - return this._service.xrpc.call("app.bsky.notification.updateSeen", opts?.qp, data, opts).catch((e) => { - throw toKnownErr43(e); - }); - } -}; -var SystemNS = class { - constructor(service) { - this._service = service; - this.declaration = new DeclarationRecord(service); - } -}; -var DeclarationRecord = class { - constructor(service) { - this._service = service; - } - async list(params2) { - const res = await this._service.xrpc.call("com.atproto.repo.listRecords", { - collection: "app.bsky.system.declaration", - ...params2 - }); - return res.data; - } - async get(params2) { - const res = await this._service.xrpc.call("com.atproto.repo.getRecord", { - collection: "app.bsky.system.declaration", - ...params2 - }); - return res.data; - } - async create(params2, record, headers) { - record.$type = "app.bsky.system.declaration"; - const res = await this._service.xrpc.call( - "com.atproto.repo.createRecord", - void 0, - { collection: "app.bsky.system.declaration", ...params2, record }, - { encoding: "application/json", headers } - ); - return res.data; - } - async delete(params2, headers) { - await this._service.xrpc.call( - "com.atproto.repo.deleteRecord", - void 0, - { collection: "app.bsky.system.declaration", ...params2 }, - { headers } - ); - } -}; - -// src/session.ts -var import_events = __toESM(require("events")); -var CREATE_SESSION = "com.atproto.session.create"; -var REFRESH_SESSION = "com.atproto.session.refresh"; -var DELETE_SESSION = "com.atproto.session.delete"; -var CREATE_ACCOUNT = "com.atproto.account.create"; -var SessionClient = class extends Client2 { - service(serviceUri) { - const xrpcService = new SessionXrpcServiceClient(this.xrpc, serviceUri); - return new SessionServiceClient(this, xrpcService); - } -}; -var defaultInst3 = new SessionClient(); -var session_default = defaultInst3; -var SessionServiceClient = class extends ServiceClient2 { - constructor(baseClient, xrpcService) { - super(baseClient, xrpcService); - this.sessionManager = this.xrpc.sessionManager; - } -}; -var SessionXrpcServiceClient = class extends ServiceClient { - constructor(baseClient, serviceUri) { - super(baseClient, serviceUri); - this.sessionManager = new SessionManager(); - this.sessionManager.on("session", () => { - const accessHeaders = this.sessionManager.accessHeaders(); - if (accessHeaders) { - this.setHeader("authorization", accessHeaders.authorization); - } else { - this.unsetHeader("authorization"); - } - }); - } - async call(methodNsid, params2, data, opts) { - const original = (overrideOpts) => super.call(methodNsid, params2, data, overrideOpts ?? opts); - if (opts?.headers?.authorization) { - return await original(); - } - if (methodNsid === REFRESH_SESSION) { - return await this.refresh(opts); - } - await this.refreshing; - if (methodNsid === CREATE_SESSION || methodNsid === CREATE_ACCOUNT) { - const result = await original(); - const { accessJwt, refreshJwt } = result.data; - this.sessionManager.set({ accessJwt, refreshJwt }); - return result; - } - if (methodNsid === DELETE_SESSION) { - const result = await original({ - ...opts, - headers: { - ...opts?.headers, - ...this.sessionManager.refreshHeaders() - } - }); - this.sessionManager.unset(); - return result; - } - try { - return await original(); - } catch (err) { - if (err instanceof XRPCError && err.status === 400 /* InvalidRequest */ && err.error === "ExpiredToken" && this.sessionManager.active()) { - await this.refresh(opts); - return await original(); - } - throw err; - } - } - async refresh(opts) { - this.refreshing ?? (this.refreshing = this._refresh(opts)); - try { - return await this.refreshing; - } finally { - this.refreshing = void 0; - } - } - async _refresh(opts) { - try { - const result = await super.call(REFRESH_SESSION, void 0, void 0, { - ...opts, - headers: { - ...opts?.headers, - ...this.sessionManager.refreshHeaders() - } - }); - const { accessJwt, refreshJwt } = result.data; - this.sessionManager.set({ accessJwt, refreshJwt }); - return result; - } catch (err) { - if (err instanceof XRPCError && err.status === 400 /* InvalidRequest */ && (err.error === "ExpiredToken" || err.error === "InvalidToken")) { - this.sessionManager.unset(); - } - throw err; - } - } -}; -var SessionManager = class extends import_events.default { - get() { - return this.session; - } - set(session) { - this.session = session; - this.emit("session", session); - } - unset() { - this.session = void 0; - this.emit("session", void 0); - } - active() { - return !!this.session; - } - accessHeaders() { - return this.session && { - authorization: `Bearer ${this.session.accessJwt}` - }; - } - refreshHeaders() { - return this.session && { - authorization: `Bearer ${this.session.refreshJwt}` - }; - } -}; -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - APP_BSKY_GRAPH, - APP_BSKY_SYSTEM, - AccountNS, - ActorNS, - AppBskyActorCreateScene, - AppBskyActorGetProfile, - AppBskyActorGetSuggestions, - AppBskyActorProfile, - AppBskyActorRef, - AppBskyActorSearch, - AppBskyActorSearchTypeahead, - AppBskyActorUpdateProfile, - AppBskyEmbedExternal, - AppBskyEmbedImages, - AppBskyFeedFeedViewPost, - AppBskyFeedGetAuthorFeed, - AppBskyFeedGetPostThread, - AppBskyFeedGetRepostedBy, - AppBskyFeedGetTimeline, - AppBskyFeedGetVotes, - AppBskyFeedPost, - AppBskyFeedRepost, - AppBskyFeedSetVote, - AppBskyFeedTrend, - AppBskyFeedVote, - AppBskyGraphAssertCreator, - AppBskyGraphAssertMember, - AppBskyGraphAssertion, - AppBskyGraphConfirmation, - AppBskyGraphFollow, - AppBskyGraphGetAssertions, - AppBskyGraphGetFollowers, - AppBskyGraphGetFollows, - AppBskyGraphGetMembers, - AppBskyGraphGetMemberships, - AppBskyNotificationGetCount, - AppBskyNotificationList, - AppBskyNotificationUpdateSeen, - AppBskySystemActorScene, - AppBskySystemActorUser, - AppBskySystemDeclRef, - AppBskySystemDeclaration, - AppNS, - AssertionRecord, - AtprotoNS, - BlobNS, - BskyNS, - Client, - ComAtprotoAccountCreate, - ComAtprotoAccountCreateInviteCode, - ComAtprotoAccountDelete, - ComAtprotoAccountGet, - ComAtprotoAccountRequestPasswordReset, - ComAtprotoAccountResetPassword, - ComAtprotoBlobUpload, - ComAtprotoHandleResolve, - ComAtprotoRepoBatchWrite, - ComAtprotoRepoCreateRecord, - ComAtprotoRepoDeleteRecord, - ComAtprotoRepoDescribe, - ComAtprotoRepoGetRecord, - ComAtprotoRepoListRecords, - ComAtprotoRepoPutRecord, - ComAtprotoRepoStrongRef, - ComAtprotoServerGetAccountsConfig, - ComAtprotoSessionCreate, - ComAtprotoSessionDelete, - ComAtprotoSessionGet, - ComAtprotoSessionRefresh, - ComAtprotoSyncGetRepo, - ComAtprotoSyncGetRoot, - ComAtprotoSyncUpdateRepo, - ComNS, - ConfirmationRecord, - DeclarationRecord, - EmbedNS, - FeedNS, - FollowRecord, - GraphNS, - HandleNS, - NotificationNS, - PostRecord, - ProfileRecord, - RepoNS, - RepostRecord, - ServerNS, - ServiceClient, - SessionClient, - SessionManager, - SessionNS, - SessionServiceClient, - SessionXrpcServiceClient, - SyncNS, - SystemNS, - TrendRecord, - VoteRecord, - sessionClient -}); -//# sourceMappingURL=index.js.map diff --git a/src/third-party/api/index.js.map b/src/third-party/api/index.js.map deleted file mode 100644 index 5176f26d2..000000000 --- a/src/third-party/api/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../src/index.ts", "../../../node_modules/zod/lib/index.mjs", "../../xrpc/src/types.ts", "../../nsid/src/index.ts", "../../lexicon/src/types.ts", "../../lexicon/src/validators/primitives.ts", "../../lexicon/src/validators/blob.ts", "../../lexicon/src/validators/complex.ts", "../../lexicon/src/util.ts", "../../lexicon/src/validators/xrpc.ts", "../../lexicon/src/validation.ts", "../../lexicon/src/lexicons.ts", "../../xrpc/src/util.ts", "../../xrpc/src/client.ts", "../../xrpc/src/index.ts", "../src/client/lexicons.ts", "../src/client/types/com/atproto/account/create.ts", "../src/client/types/com/atproto/account/createInviteCode.ts", "../src/client/types/com/atproto/account/delete.ts", "../src/client/types/com/atproto/account/get.ts", "../src/client/types/com/atproto/account/requestPasswordReset.ts", "../src/client/types/com/atproto/account/resetPassword.ts", "../src/client/types/com/atproto/blob/upload.ts", "../src/client/types/com/atproto/handle/resolve.ts", "../src/client/types/com/atproto/repo/batchWrite.ts", "../src/client/types/com/atproto/repo/createRecord.ts", "../src/client/types/com/atproto/repo/deleteRecord.ts", "../src/client/types/com/atproto/repo/describe.ts", "../src/client/types/com/atproto/repo/getRecord.ts", "../src/client/types/com/atproto/repo/listRecords.ts", "../src/client/types/com/atproto/repo/putRecord.ts", "../src/client/types/com/atproto/server/getAccountsConfig.ts", "../src/client/types/com/atproto/session/create.ts", "../src/client/types/com/atproto/session/delete.ts", "../src/client/types/com/atproto/session/get.ts", "../src/client/types/com/atproto/session/refresh.ts", "../src/client/types/com/atproto/sync/getRepo.ts", "../src/client/types/com/atproto/sync/getRoot.ts", "../src/client/types/com/atproto/sync/updateRepo.ts", "../src/client/types/app/bsky/actor/createScene.ts", "../src/client/types/app/bsky/actor/getProfile.ts", "../src/client/types/app/bsky/actor/getSuggestions.ts", "../src/client/types/app/bsky/actor/search.ts", "../src/client/types/app/bsky/actor/searchTypeahead.ts", "../src/client/types/app/bsky/actor/updateProfile.ts", "../src/client/types/app/bsky/feed/getAuthorFeed.ts", "../src/client/types/app/bsky/feed/getPostThread.ts", "../src/client/types/app/bsky/feed/getRepostedBy.ts", "../src/client/types/app/bsky/feed/getTimeline.ts", "../src/client/types/app/bsky/feed/getVotes.ts", "../src/client/types/app/bsky/feed/setVote.ts", "../src/client/types/app/bsky/graph/getAssertions.ts", "../src/client/types/app/bsky/graph/getFollowers.ts", "../src/client/types/app/bsky/graph/getFollows.ts", "../src/client/types/app/bsky/graph/getMembers.ts", "../src/client/types/app/bsky/graph/getMemberships.ts", "../src/client/types/app/bsky/notification/getCount.ts", "../src/client/types/app/bsky/notification/list.ts", "../src/client/types/app/bsky/notification/updateSeen.ts", "../src/client/types/com/atproto/repo/strongRef.ts", "../src/client/types/app/bsky/actor/profile.ts", "../src/client/types/app/bsky/actor/ref.ts", "../src/client/types/app/bsky/embed/external.ts", "../src/client/types/app/bsky/embed/images.ts", "../src/client/types/app/bsky/feed/feedViewPost.ts", "../src/client/types/app/bsky/feed/post.ts", "../src/client/types/app/bsky/feed/repost.ts", "../src/client/types/app/bsky/feed/trend.ts", "../src/client/types/app/bsky/feed/vote.ts", "../src/client/types/app/bsky/graph/assertCreator.ts", "../src/client/types/app/bsky/graph/assertMember.ts", "../src/client/types/app/bsky/graph/assertion.ts", "../src/client/types/app/bsky/graph/confirmation.ts", "../src/client/types/app/bsky/graph/follow.ts", "../src/client/types/app/bsky/system/actorScene.ts", "../src/client/types/app/bsky/system/actorUser.ts", "../src/client/types/app/bsky/system/declRef.ts", "../src/client/types/app/bsky/system/declaration.ts", "../src/client/index.ts", "../src/session.ts"], - "sourcesContent": ["export * from './client'\nexport { default } from './client'\nexport * from './session'\nexport { default as sessionClient } from './session'\n", "var util;\n(function (util) {\n util.assertEqual = (val) => val;\n function assertIs(_arg) { }\n util.assertIs = assertIs;\n function assertNever(_x) {\n throw new Error();\n }\n util.assertNever = assertNever;\n util.arrayToEnum = (items) => {\n const obj = {};\n for (const item of items) {\n obj[item] = item;\n }\n return obj;\n };\n util.getValidEnumValues = (obj) => {\n const validKeys = util.objectKeys(obj).filter((k) => typeof obj[obj[k]] !== \"number\");\n const filtered = {};\n for (const k of validKeys) {\n filtered[k] = obj[k];\n }\n return util.objectValues(filtered);\n };\n util.objectValues = (obj) => {\n return util.objectKeys(obj).map(function (e) {\n return obj[e];\n });\n };\n util.objectKeys = typeof Object.keys === \"function\" // eslint-disable-line ban/ban\n ? (obj) => Object.keys(obj) // eslint-disable-line ban/ban\n : (object) => {\n const keys = [];\n for (const key in object) {\n if (Object.prototype.hasOwnProperty.call(object, key)) {\n keys.push(key);\n }\n }\n return keys;\n };\n util.find = (arr, checker) => {\n for (const item of arr) {\n if (checker(item))\n return item;\n }\n return undefined;\n };\n util.isInteger = typeof Number.isInteger === \"function\"\n ? (val) => Number.isInteger(val) // eslint-disable-line ban/ban\n : (val) => typeof val === \"number\" && isFinite(val) && Math.floor(val) === val;\n function joinValues(array, separator = \" | \") {\n return array\n .map((val) => (typeof val === \"string\" ? `'${val}'` : val))\n .join(separator);\n }\n util.joinValues = joinValues;\n util.jsonStringifyReplacer = (_, value) => {\n if (typeof value === \"bigint\") {\n return value.toString();\n }\n return value;\n };\n})(util || (util = {}));\nconst ZodParsedType = util.arrayToEnum([\n \"string\",\n \"nan\",\n \"number\",\n \"integer\",\n \"float\",\n \"boolean\",\n \"date\",\n \"bigint\",\n \"symbol\",\n \"function\",\n \"undefined\",\n \"null\",\n \"array\",\n \"object\",\n \"unknown\",\n \"promise\",\n \"void\",\n \"never\",\n \"map\",\n \"set\",\n]);\nconst getParsedType = (data) => {\n const t = typeof data;\n switch (t) {\n case \"undefined\":\n return ZodParsedType.undefined;\n case \"string\":\n return ZodParsedType.string;\n case \"number\":\n return isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;\n case \"boolean\":\n return ZodParsedType.boolean;\n case \"function\":\n return ZodParsedType.function;\n case \"bigint\":\n return ZodParsedType.bigint;\n case \"object\":\n if (Array.isArray(data)) {\n return ZodParsedType.array;\n }\n if (data === null) {\n return ZodParsedType.null;\n }\n if (data.then &&\n typeof data.then === \"function\" &&\n data.catch &&\n typeof data.catch === \"function\") {\n return ZodParsedType.promise;\n }\n if (typeof Map !== \"undefined\" && data instanceof Map) {\n return ZodParsedType.map;\n }\n if (typeof Set !== \"undefined\" && data instanceof Set) {\n return ZodParsedType.set;\n }\n if (typeof Date !== \"undefined\" && data instanceof Date) {\n return ZodParsedType.date;\n }\n return ZodParsedType.object;\n default:\n return ZodParsedType.unknown;\n }\n};\n\nconst ZodIssueCode = util.arrayToEnum([\n \"invalid_type\",\n \"invalid_literal\",\n \"custom\",\n \"invalid_union\",\n \"invalid_union_discriminator\",\n \"invalid_enum_value\",\n \"unrecognized_keys\",\n \"invalid_arguments\",\n \"invalid_return_type\",\n \"invalid_date\",\n \"invalid_string\",\n \"too_small\",\n \"too_big\",\n \"invalid_intersection_types\",\n \"not_multiple_of\",\n]);\nconst quotelessJson = (obj) => {\n const json = JSON.stringify(obj, null, 2);\n return json.replace(/\"([^\"]+)\":/g, \"$1:\");\n};\nclass ZodError extends Error {\n constructor(issues) {\n super();\n this.issues = [];\n this.addIssue = (sub) => {\n this.issues = [...this.issues, sub];\n };\n this.addIssues = (subs = []) => {\n this.issues = [...this.issues, ...subs];\n };\n const actualProto = new.target.prototype;\n if (Object.setPrototypeOf) {\n // eslint-disable-next-line ban/ban\n Object.setPrototypeOf(this, actualProto);\n }\n else {\n this.__proto__ = actualProto;\n }\n this.name = \"ZodError\";\n this.issues = issues;\n }\n get errors() {\n return this.issues;\n }\n format(_mapper) {\n const mapper = _mapper ||\n function (issue) {\n return issue.message;\n };\n const fieldErrors = { _errors: [] };\n const processError = (error) => {\n for (const issue of error.issues) {\n if (issue.code === \"invalid_union\") {\n issue.unionErrors.map(processError);\n }\n else if (issue.code === \"invalid_return_type\") {\n processError(issue.returnTypeError);\n }\n else if (issue.code === \"invalid_arguments\") {\n processError(issue.argumentsError);\n }\n else if (issue.path.length === 0) {\n fieldErrors._errors.push(mapper(issue));\n }\n else {\n let curr = fieldErrors;\n let i = 0;\n while (i < issue.path.length) {\n const el = issue.path[i];\n const terminal = i === issue.path.length - 1;\n if (!terminal) {\n curr[el] = curr[el] || { _errors: [] };\n // if (typeof el === \"string\") {\n // curr[el] = curr[el] || { _errors: [] };\n // } else if (typeof el === \"number\") {\n // const errorArray: any = [];\n // errorArray._errors = [];\n // curr[el] = curr[el] || errorArray;\n // }\n }\n else {\n curr[el] = curr[el] || { _errors: [] };\n curr[el]._errors.push(mapper(issue));\n }\n curr = curr[el];\n i++;\n }\n }\n }\n };\n processError(this);\n return fieldErrors;\n }\n toString() {\n return this.message;\n }\n get message() {\n return JSON.stringify(this.issues, util.jsonStringifyReplacer, 2);\n }\n get isEmpty() {\n return this.issues.length === 0;\n }\n flatten(mapper = (issue) => issue.message) {\n const fieldErrors = {};\n const formErrors = [];\n for (const sub of this.issues) {\n if (sub.path.length > 0) {\n fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];\n fieldErrors[sub.path[0]].push(mapper(sub));\n }\n else {\n formErrors.push(mapper(sub));\n }\n }\n return { formErrors, fieldErrors };\n }\n get formErrors() {\n return this.flatten();\n }\n}\nZodError.create = (issues) => {\n const error = new ZodError(issues);\n return error;\n};\n\nconst errorMap = (issue, _ctx) => {\n let message;\n switch (issue.code) {\n case ZodIssueCode.invalid_type:\n if (issue.received === ZodParsedType.undefined) {\n message = \"Required\";\n }\n else {\n message = `Expected ${issue.expected}, received ${issue.received}`;\n }\n break;\n case ZodIssueCode.invalid_literal:\n message = `Invalid literal value, expected ${JSON.stringify(issue.expected, util.jsonStringifyReplacer)}`;\n break;\n case ZodIssueCode.unrecognized_keys:\n message = `Unrecognized key(s) in object: ${util.joinValues(issue.keys, \", \")}`;\n break;\n case ZodIssueCode.invalid_union:\n message = `Invalid input`;\n break;\n case ZodIssueCode.invalid_union_discriminator:\n message = `Invalid discriminator value. Expected ${util.joinValues(issue.options)}`;\n break;\n case ZodIssueCode.invalid_enum_value:\n message = `Invalid enum value. Expected ${util.joinValues(issue.options)}, received '${issue.received}'`;\n break;\n case ZodIssueCode.invalid_arguments:\n message = `Invalid function arguments`;\n break;\n case ZodIssueCode.invalid_return_type:\n message = `Invalid function return type`;\n break;\n case ZodIssueCode.invalid_date:\n message = `Invalid date`;\n break;\n case ZodIssueCode.invalid_string:\n if (typeof issue.validation === \"object\") {\n if (\"startsWith\" in issue.validation) {\n message = `Invalid input: must start with \"${issue.validation.startsWith}\"`;\n }\n else if (\"endsWith\" in issue.validation) {\n message = `Invalid input: must end with \"${issue.validation.endsWith}\"`;\n }\n else {\n util.assertNever(issue.validation);\n }\n }\n else if (issue.validation !== \"regex\") {\n message = `Invalid ${issue.validation}`;\n }\n else {\n message = \"Invalid\";\n }\n break;\n case ZodIssueCode.too_small:\n if (issue.type === \"array\")\n message = `Array must contain ${issue.inclusive ? `at least` : `more than`} ${issue.minimum} element(s)`;\n else if (issue.type === \"string\")\n message = `String must contain ${issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;\n else if (issue.type === \"number\")\n message = `Number must be greater than ${issue.inclusive ? `or equal to ` : ``}${issue.minimum}`;\n else if (issue.type === \"date\")\n message = `Date must be greater than ${issue.inclusive ? `or equal to ` : ``}${new Date(issue.minimum)}`;\n else\n message = \"Invalid input\";\n break;\n case ZodIssueCode.too_big:\n if (issue.type === \"array\")\n message = `Array must contain ${issue.inclusive ? `at most` : `less than`} ${issue.maximum} element(s)`;\n else if (issue.type === \"string\")\n message = `String must contain ${issue.inclusive ? `at most` : `under`} ${issue.maximum} character(s)`;\n else if (issue.type === \"number\")\n message = `Number must be less than ${issue.inclusive ? `or equal to ` : ``}${issue.maximum}`;\n else if (issue.type === \"date\")\n message = `Date must be smaller than ${issue.inclusive ? `or equal to ` : ``}${new Date(issue.maximum)}`;\n else\n message = \"Invalid input\";\n break;\n case ZodIssueCode.custom:\n message = `Invalid input`;\n break;\n case ZodIssueCode.invalid_intersection_types:\n message = `Intersection results could not be merged`;\n break;\n case ZodIssueCode.not_multiple_of:\n message = `Number must be a multiple of ${issue.multipleOf}`;\n break;\n default:\n message = _ctx.defaultError;\n util.assertNever(issue);\n }\n return { message };\n};\n\nlet overrideErrorMap = errorMap;\nfunction setErrorMap(map) {\n overrideErrorMap = map;\n}\nfunction getErrorMap() {\n return overrideErrorMap;\n}\n\nconst makeIssue = (params) => {\n const { data, path, errorMaps, issueData } = params;\n const fullPath = [...path, ...(issueData.path || [])];\n const fullIssue = {\n ...issueData,\n path: fullPath,\n };\n let errorMessage = \"\";\n const maps = errorMaps\n .filter((m) => !!m)\n .slice()\n .reverse();\n for (const map of maps) {\n errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message;\n }\n return {\n ...issueData,\n path: fullPath,\n message: issueData.message || errorMessage,\n };\n};\nconst EMPTY_PATH = [];\nfunction addIssueToContext(ctx, issueData) {\n const issue = makeIssue({\n issueData: issueData,\n data: ctx.data,\n path: ctx.path,\n errorMaps: [\n ctx.common.contextualErrorMap,\n ctx.schemaErrorMap,\n getErrorMap(),\n errorMap,\n ].filter((x) => !!x),\n });\n ctx.common.issues.push(issue);\n}\nclass ParseStatus {\n constructor() {\n this.value = \"valid\";\n }\n dirty() {\n if (this.value === \"valid\")\n this.value = \"dirty\";\n }\n abort() {\n if (this.value !== \"aborted\")\n this.value = \"aborted\";\n }\n static mergeArray(status, results) {\n const arrayValue = [];\n for (const s of results) {\n if (s.status === \"aborted\")\n return INVALID;\n if (s.status === \"dirty\")\n status.dirty();\n arrayValue.push(s.value);\n }\n return { status: status.value, value: arrayValue };\n }\n static async mergeObjectAsync(status, pairs) {\n const syncPairs = [];\n for (const pair of pairs) {\n syncPairs.push({\n key: await pair.key,\n value: await pair.value,\n });\n }\n return ParseStatus.mergeObjectSync(status, syncPairs);\n }\n static mergeObjectSync(status, pairs) {\n const finalObject = {};\n for (const pair of pairs) {\n const { key, value } = pair;\n if (key.status === \"aborted\")\n return INVALID;\n if (value.status === \"aborted\")\n return INVALID;\n if (key.status === \"dirty\")\n status.dirty();\n if (value.status === \"dirty\")\n status.dirty();\n if (typeof value.value !== \"undefined\" || pair.alwaysSet) {\n finalObject[key.value] = value.value;\n }\n }\n return { status: status.value, value: finalObject };\n }\n}\nconst INVALID = Object.freeze({\n status: \"aborted\",\n});\nconst DIRTY = (value) => ({ status: \"dirty\", value });\nconst OK = (value) => ({ status: \"valid\", value });\nconst isAborted = (x) => x.status === \"aborted\";\nconst isDirty = (x) => x.status === \"dirty\";\nconst isValid = (x) => x.status === \"valid\";\nconst isAsync = (x) => typeof Promise !== undefined && x instanceof Promise;\n\nvar errorUtil;\n(function (errorUtil) {\n errorUtil.errToObj = (message) => typeof message === \"string\" ? { message } : message || {};\n errorUtil.toString = (message) => typeof message === \"string\" ? message : message === null || message === void 0 ? void 0 : message.message;\n})(errorUtil || (errorUtil = {}));\n\nclass ParseInputLazyPath {\n constructor(parent, value, path, key) {\n this.parent = parent;\n this.data = value;\n this._path = path;\n this._key = key;\n }\n get path() {\n return this._path.concat(this._key);\n }\n}\nconst handleResult = (ctx, result) => {\n if (isValid(result)) {\n return { success: true, data: result.value };\n }\n else {\n if (!ctx.common.issues.length) {\n throw new Error(\"Validation failed but no issues detected.\");\n }\n const error = new ZodError(ctx.common.issues);\n return { success: false, error };\n }\n};\nfunction processCreateParams(params) {\n if (!params)\n return {};\n const { errorMap, invalid_type_error, required_error, description } = params;\n if (errorMap && (invalid_type_error || required_error)) {\n throw new Error(`Can't use \"invalid_type_error\" or \"required_error\" in conjunction with custom error map.`);\n }\n if (errorMap)\n return { errorMap: errorMap, description };\n const customMap = (iss, ctx) => {\n if (iss.code !== \"invalid_type\")\n return { message: ctx.defaultError };\n if (typeof ctx.data === \"undefined\") {\n return { message: required_error !== null && required_error !== void 0 ? required_error : ctx.defaultError };\n }\n return { message: invalid_type_error !== null && invalid_type_error !== void 0 ? invalid_type_error : ctx.defaultError };\n };\n return { errorMap: customMap, description };\n}\nclass ZodType {\n constructor(def) {\n /** Alias of safeParseAsync */\n this.spa = this.safeParseAsync;\n this.superRefine = this._refinement;\n this._def = def;\n this.parse = this.parse.bind(this);\n this.safeParse = this.safeParse.bind(this);\n this.parseAsync = this.parseAsync.bind(this);\n this.safeParseAsync = this.safeParseAsync.bind(this);\n this.spa = this.spa.bind(this);\n this.refine = this.refine.bind(this);\n this.refinement = this.refinement.bind(this);\n this.superRefine = this.superRefine.bind(this);\n this.optional = this.optional.bind(this);\n this.nullable = this.nullable.bind(this);\n this.nullish = this.nullish.bind(this);\n this.array = this.array.bind(this);\n this.promise = this.promise.bind(this);\n this.or = this.or.bind(this);\n this.and = this.and.bind(this);\n this.transform = this.transform.bind(this);\n this.default = this.default.bind(this);\n this.describe = this.describe.bind(this);\n this.isNullable = this.isNullable.bind(this);\n this.isOptional = this.isOptional.bind(this);\n }\n get description() {\n return this._def.description;\n }\n _getType(input) {\n return getParsedType(input.data);\n }\n _getOrReturnCtx(input, ctx) {\n return (ctx || {\n common: input.parent.common,\n data: input.data,\n parsedType: getParsedType(input.data),\n schemaErrorMap: this._def.errorMap,\n path: input.path,\n parent: input.parent,\n });\n }\n _processInputParams(input) {\n return {\n status: new ParseStatus(),\n ctx: {\n common: input.parent.common,\n data: input.data,\n parsedType: getParsedType(input.data),\n schemaErrorMap: this._def.errorMap,\n path: input.path,\n parent: input.parent,\n },\n };\n }\n _parseSync(input) {\n const result = this._parse(input);\n if (isAsync(result)) {\n throw new Error(\"Synchronous parse encountered promise.\");\n }\n return result;\n }\n _parseAsync(input) {\n const result = this._parse(input);\n return Promise.resolve(result);\n }\n parse(data, params) {\n const result = this.safeParse(data, params);\n if (result.success)\n return result.data;\n throw result.error;\n }\n safeParse(data, params) {\n var _a;\n const ctx = {\n common: {\n issues: [],\n async: (_a = params === null || params === void 0 ? void 0 : params.async) !== null && _a !== void 0 ? _a : false,\n contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap,\n },\n path: (params === null || params === void 0 ? void 0 : params.path) || [],\n schemaErrorMap: this._def.errorMap,\n parent: null,\n data,\n parsedType: getParsedType(data),\n };\n const result = this._parseSync({ data, path: ctx.path, parent: ctx });\n return handleResult(ctx, result);\n }\n async parseAsync(data, params) {\n const result = await this.safeParseAsync(data, params);\n if (result.success)\n return result.data;\n throw result.error;\n }\n async safeParseAsync(data, params) {\n const ctx = {\n common: {\n issues: [],\n contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap,\n async: true,\n },\n path: (params === null || params === void 0 ? void 0 : params.path) || [],\n schemaErrorMap: this._def.errorMap,\n parent: null,\n data,\n parsedType: getParsedType(data),\n };\n const maybeAsyncResult = this._parse({ data, path: [], parent: ctx });\n const result = await (isAsync(maybeAsyncResult)\n ? maybeAsyncResult\n : Promise.resolve(maybeAsyncResult));\n return handleResult(ctx, result);\n }\n refine(check, message) {\n const getIssueProperties = (val) => {\n if (typeof message === \"string\" || typeof message === \"undefined\") {\n return { message };\n }\n else if (typeof message === \"function\") {\n return message(val);\n }\n else {\n return message;\n }\n };\n return this._refinement((val, ctx) => {\n const result = check(val);\n const setError = () => ctx.addIssue({\n code: ZodIssueCode.custom,\n ...getIssueProperties(val),\n });\n if (typeof Promise !== \"undefined\" && result instanceof Promise) {\n return result.then((data) => {\n if (!data) {\n setError();\n return false;\n }\n else {\n return true;\n }\n });\n }\n if (!result) {\n setError();\n return false;\n }\n else {\n return true;\n }\n });\n }\n refinement(check, refinementData) {\n return this._refinement((val, ctx) => {\n if (!check(val)) {\n ctx.addIssue(typeof refinementData === \"function\"\n ? refinementData(val, ctx)\n : refinementData);\n return false;\n }\n else {\n return true;\n }\n });\n }\n _refinement(refinement) {\n return new ZodEffects({\n schema: this,\n typeName: ZodFirstPartyTypeKind.ZodEffects,\n effect: { type: \"refinement\", refinement },\n });\n }\n optional() {\n return ZodOptional.create(this);\n }\n nullable() {\n return ZodNullable.create(this);\n }\n nullish() {\n return this.optional().nullable();\n }\n array() {\n return ZodArray.create(this);\n }\n promise() {\n return ZodPromise.create(this);\n }\n or(option) {\n return ZodUnion.create([this, option]);\n }\n and(incoming) {\n return ZodIntersection.create(this, incoming);\n }\n transform(transform) {\n return new ZodEffects({\n schema: this,\n typeName: ZodFirstPartyTypeKind.ZodEffects,\n effect: { type: \"transform\", transform },\n });\n }\n default(def) {\n const defaultValueFunc = typeof def === \"function\" ? def : () => def;\n return new ZodDefault({\n innerType: this,\n defaultValue: defaultValueFunc,\n typeName: ZodFirstPartyTypeKind.ZodDefault,\n });\n }\n brand() {\n return new ZodBranded({\n typeName: ZodFirstPartyTypeKind.ZodBranded,\n type: this,\n ...processCreateParams(undefined),\n });\n }\n describe(description) {\n const This = this.constructor;\n return new This({\n ...this._def,\n description,\n });\n }\n isOptional() {\n return this.safeParse(undefined).success;\n }\n isNullable() {\n return this.safeParse(null).success;\n }\n}\nconst cuidRegex = /^c[^\\s-]{8,}$/i;\nconst uuidRegex = /^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i;\n// from https://stackoverflow.com/a/46181/1550155\n// old version: too slow, didn't support unicode\n// const emailRegex = /^((([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+(\\.([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+)*)|((\\x22)((((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(([\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f]|\\x21|[\\x23-\\x5b]|[\\x5d-\\x7e]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(\\\\([\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))))*(((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(\\x22)))@((([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)+(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))$/i;\n// eslint-disable-next-line\nconst emailRegex = /^(([^<>()[\\]\\.,;:\\s@\\\"]+(\\.[^<>()[\\]\\.,;:\\s@\\\"]+)*)|(\\\".+\\\"))@(([^<>()[\\]\\.,;:\\s@\\\"]+\\.)+[^<>()[\\]\\.,;:\\s@\\\"]{2,})$/i;\nclass ZodString extends ZodType {\n constructor() {\n super(...arguments);\n this._regex = (regex, validation, message) => this.refinement((data) => regex.test(data), {\n validation,\n code: ZodIssueCode.invalid_string,\n ...errorUtil.errToObj(message),\n });\n /**\n * @deprecated Use z.string().min(1) instead.\n * @see {@link ZodString.min}\n */\n this.nonempty = (message) => this.min(1, errorUtil.errToObj(message));\n this.trim = () => new ZodString({\n ...this._def,\n checks: [...this._def.checks, { kind: \"trim\" }],\n });\n }\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== ZodParsedType.string) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.string,\n received: ctx.parsedType,\n }\n //\n );\n return INVALID;\n }\n const status = new ParseStatus();\n let ctx = undefined;\n for (const check of this._def.checks) {\n if (check.kind === \"min\") {\n if (input.data.length < check.value) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_small,\n minimum: check.value,\n type: \"string\",\n inclusive: true,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"max\") {\n if (input.data.length > check.value) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_big,\n maximum: check.value,\n type: \"string\",\n inclusive: true,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"email\") {\n if (!emailRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: \"email\",\n code: ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"uuid\") {\n if (!uuidRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: \"uuid\",\n code: ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"cuid\") {\n if (!cuidRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: \"cuid\",\n code: ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"url\") {\n try {\n new URL(input.data);\n }\n catch (_a) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: \"url\",\n code: ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"regex\") {\n check.regex.lastIndex = 0;\n const testResult = check.regex.test(input.data);\n if (!testResult) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: \"regex\",\n code: ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"trim\") {\n input.data = input.data.trim();\n }\n else if (check.kind === \"startsWith\") {\n if (!input.data.startsWith(check.value)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_string,\n validation: { startsWith: check.value },\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"endsWith\") {\n if (!input.data.endsWith(check.value)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_string,\n validation: { endsWith: check.value },\n message: check.message,\n });\n status.dirty();\n }\n }\n else {\n util.assertNever(check);\n }\n }\n return { status: status.value, value: input.data };\n }\n _addCheck(check) {\n return new ZodString({\n ...this._def,\n checks: [...this._def.checks, check],\n });\n }\n email(message) {\n return this._addCheck({ kind: \"email\", ...errorUtil.errToObj(message) });\n }\n url(message) {\n return this._addCheck({ kind: \"url\", ...errorUtil.errToObj(message) });\n }\n uuid(message) {\n return this._addCheck({ kind: \"uuid\", ...errorUtil.errToObj(message) });\n }\n cuid(message) {\n return this._addCheck({ kind: \"cuid\", ...errorUtil.errToObj(message) });\n }\n regex(regex, message) {\n return this._addCheck({\n kind: \"regex\",\n regex: regex,\n ...errorUtil.errToObj(message),\n });\n }\n startsWith(value, message) {\n return this._addCheck({\n kind: \"startsWith\",\n value: value,\n ...errorUtil.errToObj(message),\n });\n }\n endsWith(value, message) {\n return this._addCheck({\n kind: \"endsWith\",\n value: value,\n ...errorUtil.errToObj(message),\n });\n }\n min(minLength, message) {\n return this._addCheck({\n kind: \"min\",\n value: minLength,\n ...errorUtil.errToObj(message),\n });\n }\n max(maxLength, message) {\n return this._addCheck({\n kind: \"max\",\n value: maxLength,\n ...errorUtil.errToObj(message),\n });\n }\n length(len, message) {\n return this.min(len, message).max(len, message);\n }\n get isEmail() {\n return !!this._def.checks.find((ch) => ch.kind === \"email\");\n }\n get isURL() {\n return !!this._def.checks.find((ch) => ch.kind === \"url\");\n }\n get isUUID() {\n return !!this._def.checks.find((ch) => ch.kind === \"uuid\");\n }\n get isCUID() {\n return !!this._def.checks.find((ch) => ch.kind === \"cuid\");\n }\n get minLength() {\n let min = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"min\") {\n if (min === null || ch.value > min)\n min = ch.value;\n }\n }\n return min;\n }\n get maxLength() {\n let max = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"max\") {\n if (max === null || ch.value < max)\n max = ch.value;\n }\n }\n return max;\n }\n}\nZodString.create = (params) => {\n return new ZodString({\n checks: [],\n typeName: ZodFirstPartyTypeKind.ZodString,\n ...processCreateParams(params),\n });\n};\n// https://stackoverflow.com/questions/3966484/why-does-modulus-operator-return-fractional-number-in-javascript/31711034#31711034\nfunction floatSafeRemainder(val, step) {\n const valDecCount = (val.toString().split(\".\")[1] || \"\").length;\n const stepDecCount = (step.toString().split(\".\")[1] || \"\").length;\n const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;\n const valInt = parseInt(val.toFixed(decCount).replace(\".\", \"\"));\n const stepInt = parseInt(step.toFixed(decCount).replace(\".\", \"\"));\n return (valInt % stepInt) / Math.pow(10, decCount);\n}\nclass ZodNumber extends ZodType {\n constructor() {\n super(...arguments);\n this.min = this.gte;\n this.max = this.lte;\n this.step = this.multipleOf;\n }\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== ZodParsedType.number) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.number,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n let ctx = undefined;\n const status = new ParseStatus();\n for (const check of this._def.checks) {\n if (check.kind === \"int\") {\n if (!util.isInteger(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: \"integer\",\n received: \"float\",\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"min\") {\n const tooSmall = check.inclusive\n ? input.data < check.value\n : input.data <= check.value;\n if (tooSmall) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_small,\n minimum: check.value,\n type: \"number\",\n inclusive: check.inclusive,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"max\") {\n const tooBig = check.inclusive\n ? input.data > check.value\n : input.data >= check.value;\n if (tooBig) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_big,\n maximum: check.value,\n type: \"number\",\n inclusive: check.inclusive,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"multipleOf\") {\n if (floatSafeRemainder(input.data, check.value) !== 0) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.not_multiple_of,\n multipleOf: check.value,\n message: check.message,\n });\n status.dirty();\n }\n }\n else {\n util.assertNever(check);\n }\n }\n return { status: status.value, value: input.data };\n }\n gte(value, message) {\n return this.setLimit(\"min\", value, true, errorUtil.toString(message));\n }\n gt(value, message) {\n return this.setLimit(\"min\", value, false, errorUtil.toString(message));\n }\n lte(value, message) {\n return this.setLimit(\"max\", value, true, errorUtil.toString(message));\n }\n lt(value, message) {\n return this.setLimit(\"max\", value, false, errorUtil.toString(message));\n }\n setLimit(kind, value, inclusive, message) {\n return new ZodNumber({\n ...this._def,\n checks: [\n ...this._def.checks,\n {\n kind,\n value,\n inclusive,\n message: errorUtil.toString(message),\n },\n ],\n });\n }\n _addCheck(check) {\n return new ZodNumber({\n ...this._def,\n checks: [...this._def.checks, check],\n });\n }\n int(message) {\n return this._addCheck({\n kind: \"int\",\n message: errorUtil.toString(message),\n });\n }\n positive(message) {\n return this._addCheck({\n kind: \"min\",\n value: 0,\n inclusive: false,\n message: errorUtil.toString(message),\n });\n }\n negative(message) {\n return this._addCheck({\n kind: \"max\",\n value: 0,\n inclusive: false,\n message: errorUtil.toString(message),\n });\n }\n nonpositive(message) {\n return this._addCheck({\n kind: \"max\",\n value: 0,\n inclusive: true,\n message: errorUtil.toString(message),\n });\n }\n nonnegative(message) {\n return this._addCheck({\n kind: \"min\",\n value: 0,\n inclusive: true,\n message: errorUtil.toString(message),\n });\n }\n multipleOf(value, message) {\n return this._addCheck({\n kind: \"multipleOf\",\n value: value,\n message: errorUtil.toString(message),\n });\n }\n get minValue() {\n let min = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"min\") {\n if (min === null || ch.value > min)\n min = ch.value;\n }\n }\n return min;\n }\n get maxValue() {\n let max = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"max\") {\n if (max === null || ch.value < max)\n max = ch.value;\n }\n }\n return max;\n }\n get isInt() {\n return !!this._def.checks.find((ch) => ch.kind === \"int\");\n }\n}\nZodNumber.create = (params) => {\n return new ZodNumber({\n checks: [],\n typeName: ZodFirstPartyTypeKind.ZodNumber,\n ...processCreateParams(params),\n });\n};\nclass ZodBigInt extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== ZodParsedType.bigint) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.bigint,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n return OK(input.data);\n }\n}\nZodBigInt.create = (params) => {\n return new ZodBigInt({\n typeName: ZodFirstPartyTypeKind.ZodBigInt,\n ...processCreateParams(params),\n });\n};\nclass ZodBoolean extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== ZodParsedType.boolean) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.boolean,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n return OK(input.data);\n }\n}\nZodBoolean.create = (params) => {\n return new ZodBoolean({\n typeName: ZodFirstPartyTypeKind.ZodBoolean,\n ...processCreateParams(params),\n });\n};\nclass ZodDate extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== ZodParsedType.date) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.date,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n if (isNaN(input.data.getTime())) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_date,\n });\n return INVALID;\n }\n const status = new ParseStatus();\n let ctx = undefined;\n for (const check of this._def.checks) {\n if (check.kind === \"min\") {\n if (input.data.getTime() < check.value) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_small,\n message: check.message,\n inclusive: true,\n minimum: check.value,\n type: \"date\",\n });\n status.dirty();\n }\n }\n else if (check.kind === \"max\") {\n if (input.data.getTime() > check.value) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_big,\n message: check.message,\n inclusive: true,\n maximum: check.value,\n type: \"date\",\n });\n status.dirty();\n }\n }\n else {\n util.assertNever(check);\n }\n }\n return {\n status: status.value,\n value: new Date(input.data.getTime()),\n };\n }\n _addCheck(check) {\n return new ZodDate({\n ...this._def,\n checks: [...this._def.checks, check],\n });\n }\n min(minDate, message) {\n return this._addCheck({\n kind: \"min\",\n value: minDate.getTime(),\n message: errorUtil.toString(message),\n });\n }\n max(maxDate, message) {\n return this._addCheck({\n kind: \"max\",\n value: maxDate.getTime(),\n message: errorUtil.toString(message),\n });\n }\n get minDate() {\n let min = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"min\") {\n if (min === null || ch.value > min)\n min = ch.value;\n }\n }\n return min != null ? new Date(min) : null;\n }\n get maxDate() {\n let max = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"max\") {\n if (max === null || ch.value < max)\n max = ch.value;\n }\n }\n return max != null ? new Date(max) : null;\n }\n}\nZodDate.create = (params) => {\n return new ZodDate({\n checks: [],\n typeName: ZodFirstPartyTypeKind.ZodDate,\n ...processCreateParams(params),\n });\n};\nclass ZodUndefined extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== ZodParsedType.undefined) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.undefined,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n return OK(input.data);\n }\n}\nZodUndefined.create = (params) => {\n return new ZodUndefined({\n typeName: ZodFirstPartyTypeKind.ZodUndefined,\n ...processCreateParams(params),\n });\n};\nclass ZodNull extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== ZodParsedType.null) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.null,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n return OK(input.data);\n }\n}\nZodNull.create = (params) => {\n return new ZodNull({\n typeName: ZodFirstPartyTypeKind.ZodNull,\n ...processCreateParams(params),\n });\n};\nclass ZodAny extends ZodType {\n constructor() {\n super(...arguments);\n // to prevent instances of other classes from extending ZodAny. this causes issues with catchall in ZodObject.\n this._any = true;\n }\n _parse(input) {\n return OK(input.data);\n }\n}\nZodAny.create = (params) => {\n return new ZodAny({\n typeName: ZodFirstPartyTypeKind.ZodAny,\n ...processCreateParams(params),\n });\n};\nclass ZodUnknown extends ZodType {\n constructor() {\n super(...arguments);\n // required\n this._unknown = true;\n }\n _parse(input) {\n return OK(input.data);\n }\n}\nZodUnknown.create = (params) => {\n return new ZodUnknown({\n typeName: ZodFirstPartyTypeKind.ZodUnknown,\n ...processCreateParams(params),\n });\n};\nclass ZodNever extends ZodType {\n _parse(input) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.never,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n}\nZodNever.create = (params) => {\n return new ZodNever({\n typeName: ZodFirstPartyTypeKind.ZodNever,\n ...processCreateParams(params),\n });\n};\nclass ZodVoid extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== ZodParsedType.undefined) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.void,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n return OK(input.data);\n }\n}\nZodVoid.create = (params) => {\n return new ZodVoid({\n typeName: ZodFirstPartyTypeKind.ZodVoid,\n ...processCreateParams(params),\n });\n};\nclass ZodArray extends ZodType {\n _parse(input) {\n const { ctx, status } = this._processInputParams(input);\n const def = this._def;\n if (ctx.parsedType !== ZodParsedType.array) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.array,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n if (def.minLength !== null) {\n if (ctx.data.length < def.minLength.value) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_small,\n minimum: def.minLength.value,\n type: \"array\",\n inclusive: true,\n message: def.minLength.message,\n });\n status.dirty();\n }\n }\n if (def.maxLength !== null) {\n if (ctx.data.length > def.maxLength.value) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_big,\n maximum: def.maxLength.value,\n type: \"array\",\n inclusive: true,\n message: def.maxLength.message,\n });\n status.dirty();\n }\n }\n if (ctx.common.async) {\n return Promise.all(ctx.data.map((item, i) => {\n return def.type._parseAsync(new ParseInputLazyPath(ctx, item, ctx.path, i));\n })).then((result) => {\n return ParseStatus.mergeArray(status, result);\n });\n }\n const result = ctx.data.map((item, i) => {\n return def.type._parseSync(new ParseInputLazyPath(ctx, item, ctx.path, i));\n });\n return ParseStatus.mergeArray(status, result);\n }\n get element() {\n return this._def.type;\n }\n min(minLength, message) {\n return new ZodArray({\n ...this._def,\n minLength: { value: minLength, message: errorUtil.toString(message) },\n });\n }\n max(maxLength, message) {\n return new ZodArray({\n ...this._def,\n maxLength: { value: maxLength, message: errorUtil.toString(message) },\n });\n }\n length(len, message) {\n return this.min(len, message).max(len, message);\n }\n nonempty(message) {\n return this.min(1, message);\n }\n}\nZodArray.create = (schema, params) => {\n return new ZodArray({\n type: schema,\n minLength: null,\n maxLength: null,\n typeName: ZodFirstPartyTypeKind.ZodArray,\n ...processCreateParams(params),\n });\n};\n/////////////////////////////////////////\n/////////////////////////////////////////\n////////// //////////\n////////// ZodObject //////////\n////////// //////////\n/////////////////////////////////////////\n/////////////////////////////////////////\nvar objectUtil;\n(function (objectUtil) {\n objectUtil.mergeShapes = (first, second) => {\n return {\n ...first,\n ...second,\n };\n };\n})(objectUtil || (objectUtil = {}));\nconst AugmentFactory = (def) => (augmentation) => {\n return new ZodObject({\n ...def,\n shape: () => ({\n ...def.shape(),\n ...augmentation,\n }),\n });\n};\nfunction deepPartialify(schema) {\n if (schema instanceof ZodObject) {\n const newShape = {};\n for (const key in schema.shape) {\n const fieldSchema = schema.shape[key];\n newShape[key] = ZodOptional.create(deepPartialify(fieldSchema));\n }\n return new ZodObject({\n ...schema._def,\n shape: () => newShape,\n });\n }\n else if (schema instanceof ZodArray) {\n return ZodArray.create(deepPartialify(schema.element));\n }\n else if (schema instanceof ZodOptional) {\n return ZodOptional.create(deepPartialify(schema.unwrap()));\n }\n else if (schema instanceof ZodNullable) {\n return ZodNullable.create(deepPartialify(schema.unwrap()));\n }\n else if (schema instanceof ZodTuple) {\n return ZodTuple.create(schema.items.map((item) => deepPartialify(item)));\n }\n else {\n return schema;\n }\n}\nclass ZodObject extends ZodType {\n constructor() {\n super(...arguments);\n this._cached = null;\n /**\n * @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped.\n * If you want to pass through unknown properties, use `.passthrough()` instead.\n */\n this.nonstrict = this.passthrough;\n this.augment = AugmentFactory(this._def);\n this.extend = AugmentFactory(this._def);\n }\n _getCached() {\n if (this._cached !== null)\n return this._cached;\n const shape = this._def.shape();\n const keys = util.objectKeys(shape);\n return (this._cached = { shape, keys });\n }\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== ZodParsedType.object) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.object,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n const { status, ctx } = this._processInputParams(input);\n const { shape, keys: shapeKeys } = this._getCached();\n const extraKeys = [];\n if (!(this._def.catchall instanceof ZodNever &&\n this._def.unknownKeys === \"strip\")) {\n for (const key in ctx.data) {\n if (!shapeKeys.includes(key)) {\n extraKeys.push(key);\n }\n }\n }\n const pairs = [];\n for (const key of shapeKeys) {\n const keyValidator = shape[key];\n const value = ctx.data[key];\n pairs.push({\n key: { status: \"valid\", value: key },\n value: keyValidator._parse(new ParseInputLazyPath(ctx, value, ctx.path, key)),\n alwaysSet: key in ctx.data,\n });\n }\n if (this._def.catchall instanceof ZodNever) {\n const unknownKeys = this._def.unknownKeys;\n if (unknownKeys === \"passthrough\") {\n for (const key of extraKeys) {\n pairs.push({\n key: { status: \"valid\", value: key },\n value: { status: \"valid\", value: ctx.data[key] },\n });\n }\n }\n else if (unknownKeys === \"strict\") {\n if (extraKeys.length > 0) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.unrecognized_keys,\n keys: extraKeys,\n });\n status.dirty();\n }\n }\n else if (unknownKeys === \"strip\") ;\n else {\n throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);\n }\n }\n else {\n // run catchall validation\n const catchall = this._def.catchall;\n for (const key of extraKeys) {\n const value = ctx.data[key];\n pairs.push({\n key: { status: \"valid\", value: key },\n value: catchall._parse(new ParseInputLazyPath(ctx, value, ctx.path, key) //, ctx.child(key), value, getParsedType(value)\n ),\n alwaysSet: key in ctx.data,\n });\n }\n }\n if (ctx.common.async) {\n return Promise.resolve()\n .then(async () => {\n const syncPairs = [];\n for (const pair of pairs) {\n const key = await pair.key;\n syncPairs.push({\n key,\n value: await pair.value,\n alwaysSet: pair.alwaysSet,\n });\n }\n return syncPairs;\n })\n .then((syncPairs) => {\n return ParseStatus.mergeObjectSync(status, syncPairs);\n });\n }\n else {\n return ParseStatus.mergeObjectSync(status, pairs);\n }\n }\n get shape() {\n return this._def.shape();\n }\n strict(message) {\n errorUtil.errToObj;\n return new ZodObject({\n ...this._def,\n unknownKeys: \"strict\",\n ...(message !== undefined\n ? {\n errorMap: (issue, ctx) => {\n var _a, _b, _c, _d;\n const defaultError = (_c = (_b = (_a = this._def).errorMap) === null || _b === void 0 ? void 0 : _b.call(_a, issue, ctx).message) !== null && _c !== void 0 ? _c : ctx.defaultError;\n if (issue.code === \"unrecognized_keys\")\n return {\n message: (_d = errorUtil.errToObj(message).message) !== null && _d !== void 0 ? _d : defaultError,\n };\n return {\n message: defaultError,\n };\n },\n }\n : {}),\n });\n }\n strip() {\n return new ZodObject({\n ...this._def,\n unknownKeys: \"strip\",\n });\n }\n passthrough() {\n return new ZodObject({\n ...this._def,\n unknownKeys: \"passthrough\",\n });\n }\n setKey(key, schema) {\n return this.augment({ [key]: schema });\n }\n /**\n * Prior to zod@1.0.12 there was a bug in the\n * inferred type of merged objects. Please\n * upgrade if you are experiencing issues.\n */\n merge(merging) {\n // const mergedShape = objectUtil.mergeShapes(\n // this._def.shape(),\n // merging._def.shape()\n // );\n const merged = new ZodObject({\n unknownKeys: merging._def.unknownKeys,\n catchall: merging._def.catchall,\n shape: () => objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),\n typeName: ZodFirstPartyTypeKind.ZodObject,\n });\n return merged;\n }\n catchall(index) {\n return new ZodObject({\n ...this._def,\n catchall: index,\n });\n }\n pick(mask) {\n const shape = {};\n util.objectKeys(mask).map((key) => {\n // only add to shape if key corresponds to an element of the current shape\n if (this.shape[key])\n shape[key] = this.shape[key];\n });\n return new ZodObject({\n ...this._def,\n shape: () => shape,\n });\n }\n omit(mask) {\n const shape = {};\n util.objectKeys(this.shape).map((key) => {\n if (util.objectKeys(mask).indexOf(key) === -1) {\n shape[key] = this.shape[key];\n }\n });\n return new ZodObject({\n ...this._def,\n shape: () => shape,\n });\n }\n deepPartial() {\n return deepPartialify(this);\n }\n partial(mask) {\n const newShape = {};\n if (mask) {\n util.objectKeys(this.shape).map((key) => {\n if (util.objectKeys(mask).indexOf(key) === -1) {\n newShape[key] = this.shape[key];\n }\n else {\n newShape[key] = this.shape[key].optional();\n }\n });\n return new ZodObject({\n ...this._def,\n shape: () => newShape,\n });\n }\n else {\n for (const key in this.shape) {\n const fieldSchema = this.shape[key];\n newShape[key] = fieldSchema.optional();\n }\n }\n return new ZodObject({\n ...this._def,\n shape: () => newShape,\n });\n }\n required() {\n const newShape = {};\n for (const key in this.shape) {\n const fieldSchema = this.shape[key];\n let newField = fieldSchema;\n while (newField instanceof ZodOptional) {\n newField = newField._def.innerType;\n }\n newShape[key] = newField;\n }\n return new ZodObject({\n ...this._def,\n shape: () => newShape,\n });\n }\n keyof() {\n return createZodEnum(util.objectKeys(this.shape));\n }\n}\nZodObject.create = (shape, params) => {\n return new ZodObject({\n shape: () => shape,\n unknownKeys: \"strip\",\n catchall: ZodNever.create(),\n typeName: ZodFirstPartyTypeKind.ZodObject,\n ...processCreateParams(params),\n });\n};\nZodObject.strictCreate = (shape, params) => {\n return new ZodObject({\n shape: () => shape,\n unknownKeys: \"strict\",\n catchall: ZodNever.create(),\n typeName: ZodFirstPartyTypeKind.ZodObject,\n ...processCreateParams(params),\n });\n};\nZodObject.lazycreate = (shape, params) => {\n return new ZodObject({\n shape,\n unknownKeys: \"strip\",\n catchall: ZodNever.create(),\n typeName: ZodFirstPartyTypeKind.ZodObject,\n ...processCreateParams(params),\n });\n};\nclass ZodUnion extends ZodType {\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n const options = this._def.options;\n function handleResults(results) {\n // return first issue-free validation if it exists\n for (const result of results) {\n if (result.result.status === \"valid\") {\n return result.result;\n }\n }\n for (const result of results) {\n if (result.result.status === \"dirty\") {\n // add issues from dirty option\n ctx.common.issues.push(...result.ctx.common.issues);\n return result.result;\n }\n }\n // return invalid\n const unionErrors = results.map((result) => new ZodError(result.ctx.common.issues));\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_union,\n unionErrors,\n });\n return INVALID;\n }\n if (ctx.common.async) {\n return Promise.all(options.map(async (option) => {\n const childCtx = {\n ...ctx,\n common: {\n ...ctx.common,\n issues: [],\n },\n parent: null,\n };\n return {\n result: await option._parseAsync({\n data: ctx.data,\n path: ctx.path,\n parent: childCtx,\n }),\n ctx: childCtx,\n };\n })).then(handleResults);\n }\n else {\n let dirty = undefined;\n const issues = [];\n for (const option of options) {\n const childCtx = {\n ...ctx,\n common: {\n ...ctx.common,\n issues: [],\n },\n parent: null,\n };\n const result = option._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: childCtx,\n });\n if (result.status === \"valid\") {\n return result;\n }\n else if (result.status === \"dirty\" && !dirty) {\n dirty = { result, ctx: childCtx };\n }\n if (childCtx.common.issues.length) {\n issues.push(childCtx.common.issues);\n }\n }\n if (dirty) {\n ctx.common.issues.push(...dirty.ctx.common.issues);\n return dirty.result;\n }\n const unionErrors = issues.map((issues) => new ZodError(issues));\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_union,\n unionErrors,\n });\n return INVALID;\n }\n }\n get options() {\n return this._def.options;\n }\n}\nZodUnion.create = (types, params) => {\n return new ZodUnion({\n options: types,\n typeName: ZodFirstPartyTypeKind.ZodUnion,\n ...processCreateParams(params),\n });\n};\nclass ZodDiscriminatedUnion extends ZodType {\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n if (ctx.parsedType !== ZodParsedType.object) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.object,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n const discriminator = this.discriminator;\n const discriminatorValue = ctx.data[discriminator];\n const option = this.options.get(discriminatorValue);\n if (!option) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_union_discriminator,\n options: this.validDiscriminatorValues,\n path: [discriminator],\n });\n return INVALID;\n }\n if (ctx.common.async) {\n return option._parseAsync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n });\n }\n else {\n return option._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n });\n }\n }\n get discriminator() {\n return this._def.discriminator;\n }\n get validDiscriminatorValues() {\n return Array.from(this.options.keys());\n }\n get options() {\n return this._def.options;\n }\n /**\n * The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.\n * However, it only allows a union of objects, all of which need to share a discriminator property. This property must\n * have a different value for each object in the union.\n * @param discriminator the name of the discriminator property\n * @param types an array of object schemas\n * @param params\n */\n static create(discriminator, types, params) {\n // Get all the valid discriminator values\n const options = new Map();\n try {\n types.forEach((type) => {\n const discriminatorValue = type.shape[discriminator].value;\n options.set(discriminatorValue, type);\n });\n }\n catch (e) {\n throw new Error(\"The discriminator value could not be extracted from all the provided schemas\");\n }\n // Assert that all the discriminator values are unique\n if (options.size !== types.length) {\n throw new Error(\"Some of the discriminator values are not unique\");\n }\n return new ZodDiscriminatedUnion({\n typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion,\n discriminator,\n options,\n ...processCreateParams(params),\n });\n }\n}\nfunction mergeValues(a, b) {\n const aType = getParsedType(a);\n const bType = getParsedType(b);\n if (a === b) {\n return { valid: true, data: a };\n }\n else if (aType === ZodParsedType.object && bType === ZodParsedType.object) {\n const bKeys = util.objectKeys(b);\n const sharedKeys = util\n .objectKeys(a)\n .filter((key) => bKeys.indexOf(key) !== -1);\n const newObj = { ...a, ...b };\n for (const key of sharedKeys) {\n const sharedValue = mergeValues(a[key], b[key]);\n if (!sharedValue.valid) {\n return { valid: false };\n }\n newObj[key] = sharedValue.data;\n }\n return { valid: true, data: newObj };\n }\n else if (aType === ZodParsedType.array && bType === ZodParsedType.array) {\n if (a.length !== b.length) {\n return { valid: false };\n }\n const newArray = [];\n for (let index = 0; index < a.length; index++) {\n const itemA = a[index];\n const itemB = b[index];\n const sharedValue = mergeValues(itemA, itemB);\n if (!sharedValue.valid) {\n return { valid: false };\n }\n newArray.push(sharedValue.data);\n }\n return { valid: true, data: newArray };\n }\n else if (aType === ZodParsedType.date &&\n bType === ZodParsedType.date &&\n +a === +b) {\n return { valid: true, data: a };\n }\n else {\n return { valid: false };\n }\n}\nclass ZodIntersection extends ZodType {\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n const handleParsed = (parsedLeft, parsedRight) => {\n if (isAborted(parsedLeft) || isAborted(parsedRight)) {\n return INVALID;\n }\n const merged = mergeValues(parsedLeft.value, parsedRight.value);\n if (!merged.valid) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_intersection_types,\n });\n return INVALID;\n }\n if (isDirty(parsedLeft) || isDirty(parsedRight)) {\n status.dirty();\n }\n return { status: status.value, value: merged.data };\n };\n if (ctx.common.async) {\n return Promise.all([\n this._def.left._parseAsync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n }),\n this._def.right._parseAsync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n }),\n ]).then(([left, right]) => handleParsed(left, right));\n }\n else {\n return handleParsed(this._def.left._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n }), this._def.right._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n }));\n }\n }\n}\nZodIntersection.create = (left, right, params) => {\n return new ZodIntersection({\n left: left,\n right: right,\n typeName: ZodFirstPartyTypeKind.ZodIntersection,\n ...processCreateParams(params),\n });\n};\nclass ZodTuple extends ZodType {\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n if (ctx.parsedType !== ZodParsedType.array) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.array,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n if (ctx.data.length < this._def.items.length) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_small,\n minimum: this._def.items.length,\n inclusive: true,\n type: \"array\",\n });\n return INVALID;\n }\n const rest = this._def.rest;\n if (!rest && ctx.data.length > this._def.items.length) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_big,\n maximum: this._def.items.length,\n inclusive: true,\n type: \"array\",\n });\n status.dirty();\n }\n const items = ctx.data\n .map((item, itemIndex) => {\n const schema = this._def.items[itemIndex] || this._def.rest;\n if (!schema)\n return null;\n return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));\n })\n .filter((x) => !!x); // filter nulls\n if (ctx.common.async) {\n return Promise.all(items).then((results) => {\n return ParseStatus.mergeArray(status, results);\n });\n }\n else {\n return ParseStatus.mergeArray(status, items);\n }\n }\n get items() {\n return this._def.items;\n }\n rest(rest) {\n return new ZodTuple({\n ...this._def,\n rest,\n });\n }\n}\nZodTuple.create = (schemas, params) => {\n if (!Array.isArray(schemas)) {\n throw new Error(\"You must pass an array of schemas to z.tuple([ ... ])\");\n }\n return new ZodTuple({\n items: schemas,\n typeName: ZodFirstPartyTypeKind.ZodTuple,\n rest: null,\n ...processCreateParams(params),\n });\n};\nclass ZodRecord extends ZodType {\n get keySchema() {\n return this._def.keyType;\n }\n get valueSchema() {\n return this._def.valueType;\n }\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n if (ctx.parsedType !== ZodParsedType.object) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.object,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n const pairs = [];\n const keyType = this._def.keyType;\n const valueType = this._def.valueType;\n for (const key in ctx.data) {\n pairs.push({\n key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, key)),\n value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key], ctx.path, key)),\n });\n }\n if (ctx.common.async) {\n return ParseStatus.mergeObjectAsync(status, pairs);\n }\n else {\n return ParseStatus.mergeObjectSync(status, pairs);\n }\n }\n get element() {\n return this._def.valueType;\n }\n static create(first, second, third) {\n if (second instanceof ZodType) {\n return new ZodRecord({\n keyType: first,\n valueType: second,\n typeName: ZodFirstPartyTypeKind.ZodRecord,\n ...processCreateParams(third),\n });\n }\n return new ZodRecord({\n keyType: ZodString.create(),\n valueType: first,\n typeName: ZodFirstPartyTypeKind.ZodRecord,\n ...processCreateParams(second),\n });\n }\n}\nclass ZodMap extends ZodType {\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n if (ctx.parsedType !== ZodParsedType.map) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.map,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n const keyType = this._def.keyType;\n const valueType = this._def.valueType;\n const pairs = [...ctx.data.entries()].map(([key, value], index) => {\n return {\n key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, [index, \"key\"])),\n value: valueType._parse(new ParseInputLazyPath(ctx, value, ctx.path, [index, \"value\"])),\n };\n });\n if (ctx.common.async) {\n const finalMap = new Map();\n return Promise.resolve().then(async () => {\n for (const pair of pairs) {\n const key = await pair.key;\n const value = await pair.value;\n if (key.status === \"aborted\" || value.status === \"aborted\") {\n return INVALID;\n }\n if (key.status === \"dirty\" || value.status === \"dirty\") {\n status.dirty();\n }\n finalMap.set(key.value, value.value);\n }\n return { status: status.value, value: finalMap };\n });\n }\n else {\n const finalMap = new Map();\n for (const pair of pairs) {\n const key = pair.key;\n const value = pair.value;\n if (key.status === \"aborted\" || value.status === \"aborted\") {\n return INVALID;\n }\n if (key.status === \"dirty\" || value.status === \"dirty\") {\n status.dirty();\n }\n finalMap.set(key.value, value.value);\n }\n return { status: status.value, value: finalMap };\n }\n }\n}\nZodMap.create = (keyType, valueType, params) => {\n return new ZodMap({\n valueType,\n keyType,\n typeName: ZodFirstPartyTypeKind.ZodMap,\n ...processCreateParams(params),\n });\n};\nclass ZodSet extends ZodType {\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n if (ctx.parsedType !== ZodParsedType.set) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.set,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n const def = this._def;\n if (def.minSize !== null) {\n if (ctx.data.size < def.minSize.value) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_small,\n minimum: def.minSize.value,\n type: \"set\",\n inclusive: true,\n message: def.minSize.message,\n });\n status.dirty();\n }\n }\n if (def.maxSize !== null) {\n if (ctx.data.size > def.maxSize.value) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_big,\n maximum: def.maxSize.value,\n type: \"set\",\n inclusive: true,\n message: def.maxSize.message,\n });\n status.dirty();\n }\n }\n const valueType = this._def.valueType;\n function finalizeSet(elements) {\n const parsedSet = new Set();\n for (const element of elements) {\n if (element.status === \"aborted\")\n return INVALID;\n if (element.status === \"dirty\")\n status.dirty();\n parsedSet.add(element.value);\n }\n return { status: status.value, value: parsedSet };\n }\n const elements = [...ctx.data.values()].map((item, i) => valueType._parse(new ParseInputLazyPath(ctx, item, ctx.path, i)));\n if (ctx.common.async) {\n return Promise.all(elements).then((elements) => finalizeSet(elements));\n }\n else {\n return finalizeSet(elements);\n }\n }\n min(minSize, message) {\n return new ZodSet({\n ...this._def,\n minSize: { value: minSize, message: errorUtil.toString(message) },\n });\n }\n max(maxSize, message) {\n return new ZodSet({\n ...this._def,\n maxSize: { value: maxSize, message: errorUtil.toString(message) },\n });\n }\n size(size, message) {\n return this.min(size, message).max(size, message);\n }\n nonempty(message) {\n return this.min(1, message);\n }\n}\nZodSet.create = (valueType, params) => {\n return new ZodSet({\n valueType,\n minSize: null,\n maxSize: null,\n typeName: ZodFirstPartyTypeKind.ZodSet,\n ...processCreateParams(params),\n });\n};\nclass ZodFunction extends ZodType {\n constructor() {\n super(...arguments);\n this.validate = this.implement;\n }\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n if (ctx.parsedType !== ZodParsedType.function) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.function,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n function makeArgsIssue(args, error) {\n return makeIssue({\n data: args,\n path: ctx.path,\n errorMaps: [\n ctx.common.contextualErrorMap,\n ctx.schemaErrorMap,\n getErrorMap(),\n errorMap,\n ].filter((x) => !!x),\n issueData: {\n code: ZodIssueCode.invalid_arguments,\n argumentsError: error,\n },\n });\n }\n function makeReturnsIssue(returns, error) {\n return makeIssue({\n data: returns,\n path: ctx.path,\n errorMaps: [\n ctx.common.contextualErrorMap,\n ctx.schemaErrorMap,\n getErrorMap(),\n errorMap,\n ].filter((x) => !!x),\n issueData: {\n code: ZodIssueCode.invalid_return_type,\n returnTypeError: error,\n },\n });\n }\n const params = { errorMap: ctx.common.contextualErrorMap };\n const fn = ctx.data;\n if (this._def.returns instanceof ZodPromise) {\n return OK(async (...args) => {\n const error = new ZodError([]);\n const parsedArgs = await this._def.args\n .parseAsync(args, params)\n .catch((e) => {\n error.addIssue(makeArgsIssue(args, e));\n throw error;\n });\n const result = await fn(...parsedArgs);\n const parsedReturns = await this._def.returns._def.type\n .parseAsync(result, params)\n .catch((e) => {\n error.addIssue(makeReturnsIssue(result, e));\n throw error;\n });\n return parsedReturns;\n });\n }\n else {\n return OK((...args) => {\n const parsedArgs = this._def.args.safeParse(args, params);\n if (!parsedArgs.success) {\n throw new ZodError([makeArgsIssue(args, parsedArgs.error)]);\n }\n const result = fn(...parsedArgs.data);\n const parsedReturns = this._def.returns.safeParse(result, params);\n if (!parsedReturns.success) {\n throw new ZodError([makeReturnsIssue(result, parsedReturns.error)]);\n }\n return parsedReturns.data;\n });\n }\n }\n parameters() {\n return this._def.args;\n }\n returnType() {\n return this._def.returns;\n }\n args(...items) {\n return new ZodFunction({\n ...this._def,\n args: ZodTuple.create(items).rest(ZodUnknown.create()),\n });\n }\n returns(returnType) {\n return new ZodFunction({\n ...this._def,\n returns: returnType,\n });\n }\n implement(func) {\n const validatedFunc = this.parse(func);\n return validatedFunc;\n }\n strictImplement(func) {\n const validatedFunc = this.parse(func);\n return validatedFunc;\n }\n static create(args, returns, params) {\n return new ZodFunction({\n args: (args\n ? args\n : ZodTuple.create([]).rest(ZodUnknown.create())),\n returns: returns || ZodUnknown.create(),\n typeName: ZodFirstPartyTypeKind.ZodFunction,\n ...processCreateParams(params),\n });\n }\n}\nclass ZodLazy extends ZodType {\n get schema() {\n return this._def.getter();\n }\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n const lazySchema = this._def.getter();\n return lazySchema._parse({ data: ctx.data, path: ctx.path, parent: ctx });\n }\n}\nZodLazy.create = (getter, params) => {\n return new ZodLazy({\n getter: getter,\n typeName: ZodFirstPartyTypeKind.ZodLazy,\n ...processCreateParams(params),\n });\n};\nclass ZodLiteral extends ZodType {\n _parse(input) {\n if (input.data !== this._def.value) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_literal,\n expected: this._def.value,\n });\n return INVALID;\n }\n return { status: \"valid\", value: input.data };\n }\n get value() {\n return this._def.value;\n }\n}\nZodLiteral.create = (value, params) => {\n return new ZodLiteral({\n value: value,\n typeName: ZodFirstPartyTypeKind.ZodLiteral,\n ...processCreateParams(params),\n });\n};\nfunction createZodEnum(values, params) {\n return new ZodEnum({\n values: values,\n typeName: ZodFirstPartyTypeKind.ZodEnum,\n ...processCreateParams(params),\n });\n}\nclass ZodEnum extends ZodType {\n _parse(input) {\n if (typeof input.data !== \"string\") {\n const ctx = this._getOrReturnCtx(input);\n const expectedValues = this._def.values;\n addIssueToContext(ctx, {\n expected: util.joinValues(expectedValues),\n received: ctx.parsedType,\n code: ZodIssueCode.invalid_type,\n });\n return INVALID;\n }\n if (this._def.values.indexOf(input.data) === -1) {\n const ctx = this._getOrReturnCtx(input);\n const expectedValues = this._def.values;\n addIssueToContext(ctx, {\n received: ctx.data,\n code: ZodIssueCode.invalid_enum_value,\n options: expectedValues,\n });\n return INVALID;\n }\n return OK(input.data);\n }\n get options() {\n return this._def.values;\n }\n get enum() {\n const enumValues = {};\n for (const val of this._def.values) {\n enumValues[val] = val;\n }\n return enumValues;\n }\n get Values() {\n const enumValues = {};\n for (const val of this._def.values) {\n enumValues[val] = val;\n }\n return enumValues;\n }\n get Enum() {\n const enumValues = {};\n for (const val of this._def.values) {\n enumValues[val] = val;\n }\n return enumValues;\n }\n}\nZodEnum.create = createZodEnum;\nclass ZodNativeEnum extends ZodType {\n _parse(input) {\n const nativeEnumValues = util.getValidEnumValues(this._def.values);\n const ctx = this._getOrReturnCtx(input);\n if (ctx.parsedType !== ZodParsedType.string &&\n ctx.parsedType !== ZodParsedType.number) {\n const expectedValues = util.objectValues(nativeEnumValues);\n addIssueToContext(ctx, {\n expected: util.joinValues(expectedValues),\n received: ctx.parsedType,\n code: ZodIssueCode.invalid_type,\n });\n return INVALID;\n }\n if (nativeEnumValues.indexOf(input.data) === -1) {\n const expectedValues = util.objectValues(nativeEnumValues);\n addIssueToContext(ctx, {\n received: ctx.data,\n code: ZodIssueCode.invalid_enum_value,\n options: expectedValues,\n });\n return INVALID;\n }\n return OK(input.data);\n }\n get enum() {\n return this._def.values;\n }\n}\nZodNativeEnum.create = (values, params) => {\n return new ZodNativeEnum({\n values: values,\n typeName: ZodFirstPartyTypeKind.ZodNativeEnum,\n ...processCreateParams(params),\n });\n};\nclass ZodPromise extends ZodType {\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n if (ctx.parsedType !== ZodParsedType.promise &&\n ctx.common.async === false) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.promise,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n const promisified = ctx.parsedType === ZodParsedType.promise\n ? ctx.data\n : Promise.resolve(ctx.data);\n return OK(promisified.then((data) => {\n return this._def.type.parseAsync(data, {\n path: ctx.path,\n errorMap: ctx.common.contextualErrorMap,\n });\n }));\n }\n}\nZodPromise.create = (schema, params) => {\n return new ZodPromise({\n type: schema,\n typeName: ZodFirstPartyTypeKind.ZodPromise,\n ...processCreateParams(params),\n });\n};\nclass ZodEffects extends ZodType {\n innerType() {\n return this._def.schema;\n }\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n const effect = this._def.effect || null;\n if (effect.type === \"preprocess\") {\n const processed = effect.transform(ctx.data);\n if (ctx.common.async) {\n return Promise.resolve(processed).then((processed) => {\n return this._def.schema._parseAsync({\n data: processed,\n path: ctx.path,\n parent: ctx,\n });\n });\n }\n else {\n return this._def.schema._parseSync({\n data: processed,\n path: ctx.path,\n parent: ctx,\n });\n }\n }\n const checkCtx = {\n addIssue: (arg) => {\n addIssueToContext(ctx, arg);\n if (arg.fatal) {\n status.abort();\n }\n else {\n status.dirty();\n }\n },\n get path() {\n return ctx.path;\n },\n };\n checkCtx.addIssue = checkCtx.addIssue.bind(checkCtx);\n if (effect.type === \"refinement\") {\n const executeRefinement = (acc\n // effect: RefinementEffect<any>\n ) => {\n const result = effect.refinement(acc, checkCtx);\n if (ctx.common.async) {\n return Promise.resolve(result);\n }\n if (result instanceof Promise) {\n throw new Error(\"Async refinement encountered during synchronous parse operation. Use .parseAsync instead.\");\n }\n return acc;\n };\n if (ctx.common.async === false) {\n const inner = this._def.schema._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n });\n if (inner.status === \"aborted\")\n return INVALID;\n if (inner.status === \"dirty\")\n status.dirty();\n // return value is ignored\n executeRefinement(inner.value);\n return { status: status.value, value: inner.value };\n }\n else {\n return this._def.schema\n ._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx })\n .then((inner) => {\n if (inner.status === \"aborted\")\n return INVALID;\n if (inner.status === \"dirty\")\n status.dirty();\n return executeRefinement(inner.value).then(() => {\n return { status: status.value, value: inner.value };\n });\n });\n }\n }\n if (effect.type === \"transform\") {\n if (ctx.common.async === false) {\n const base = this._def.schema._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n });\n // if (base.status === \"aborted\") return INVALID;\n // if (base.status === \"dirty\") {\n // return { status: \"dirty\", value: base.value };\n // }\n if (!isValid(base))\n return base;\n const result = effect.transform(base.value, checkCtx);\n if (result instanceof Promise) {\n throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);\n }\n return { status: status.value, value: result };\n }\n else {\n return this._def.schema\n ._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx })\n .then((base) => {\n if (!isValid(base))\n return base;\n // if (base.status === \"aborted\") return INVALID;\n // if (base.status === \"dirty\") {\n // return { status: \"dirty\", value: base.value };\n // }\n return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({ status: status.value, value: result }));\n });\n }\n }\n util.assertNever(effect);\n }\n}\nZodEffects.create = (schema, effect, params) => {\n return new ZodEffects({\n schema,\n typeName: ZodFirstPartyTypeKind.ZodEffects,\n effect,\n ...processCreateParams(params),\n });\n};\nZodEffects.createWithPreprocess = (preprocess, schema, params) => {\n return new ZodEffects({\n schema,\n effect: { type: \"preprocess\", transform: preprocess },\n typeName: ZodFirstPartyTypeKind.ZodEffects,\n ...processCreateParams(params),\n });\n};\nclass ZodOptional extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType === ZodParsedType.undefined) {\n return OK(undefined);\n }\n return this._def.innerType._parse(input);\n }\n unwrap() {\n return this._def.innerType;\n }\n}\nZodOptional.create = (type, params) => {\n return new ZodOptional({\n innerType: type,\n typeName: ZodFirstPartyTypeKind.ZodOptional,\n ...processCreateParams(params),\n });\n};\nclass ZodNullable extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType === ZodParsedType.null) {\n return OK(null);\n }\n return this._def.innerType._parse(input);\n }\n unwrap() {\n return this._def.innerType;\n }\n}\nZodNullable.create = (type, params) => {\n return new ZodNullable({\n innerType: type,\n typeName: ZodFirstPartyTypeKind.ZodNullable,\n ...processCreateParams(params),\n });\n};\nclass ZodDefault extends ZodType {\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n let data = ctx.data;\n if (ctx.parsedType === ZodParsedType.undefined) {\n data = this._def.defaultValue();\n }\n return this._def.innerType._parse({\n data,\n path: ctx.path,\n parent: ctx,\n });\n }\n removeDefault() {\n return this._def.innerType;\n }\n}\nZodDefault.create = (type, params) => {\n return new ZodOptional({\n innerType: type,\n typeName: ZodFirstPartyTypeKind.ZodOptional,\n ...processCreateParams(params),\n });\n};\nclass ZodNaN extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== ZodParsedType.nan) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.nan,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n return { status: \"valid\", value: input.data };\n }\n}\nZodNaN.create = (params) => {\n return new ZodNaN({\n typeName: ZodFirstPartyTypeKind.ZodNaN,\n ...processCreateParams(params),\n });\n};\nconst BRAND = Symbol(\"zod_brand\");\nclass ZodBranded extends ZodType {\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n const data = ctx.data;\n return this._def.type._parse({\n data,\n path: ctx.path,\n parent: ctx,\n });\n }\n unwrap() {\n return this._def.type;\n }\n}\nconst custom = (check, params = {}, fatal) => {\n if (check)\n return ZodAny.create().superRefine((data, ctx) => {\n if (!check(data)) {\n const p = typeof params === \"function\" ? params(data) : params;\n const p2 = typeof p === \"string\" ? { message: p } : p;\n ctx.addIssue({ code: \"custom\", ...p2, fatal });\n }\n });\n return ZodAny.create();\n};\nconst late = {\n object: ZodObject.lazycreate,\n};\nvar ZodFirstPartyTypeKind;\n(function (ZodFirstPartyTypeKind) {\n ZodFirstPartyTypeKind[\"ZodString\"] = \"ZodString\";\n ZodFirstPartyTypeKind[\"ZodNumber\"] = \"ZodNumber\";\n ZodFirstPartyTypeKind[\"ZodNaN\"] = \"ZodNaN\";\n ZodFirstPartyTypeKind[\"ZodBigInt\"] = \"ZodBigInt\";\n ZodFirstPartyTypeKind[\"ZodBoolean\"] = \"ZodBoolean\";\n ZodFirstPartyTypeKind[\"ZodDate\"] = \"ZodDate\";\n ZodFirstPartyTypeKind[\"ZodUndefined\"] = \"ZodUndefined\";\n ZodFirstPartyTypeKind[\"ZodNull\"] = \"ZodNull\";\n ZodFirstPartyTypeKind[\"ZodAny\"] = \"ZodAny\";\n ZodFirstPartyTypeKind[\"ZodUnknown\"] = \"ZodUnknown\";\n ZodFirstPartyTypeKind[\"ZodNever\"] = \"ZodNever\";\n ZodFirstPartyTypeKind[\"ZodVoid\"] = \"ZodVoid\";\n ZodFirstPartyTypeKind[\"ZodArray\"] = \"ZodArray\";\n ZodFirstPartyTypeKind[\"ZodObject\"] = \"ZodObject\";\n ZodFirstPartyTypeKind[\"ZodUnion\"] = \"ZodUnion\";\n ZodFirstPartyTypeKind[\"ZodDiscriminatedUnion\"] = \"ZodDiscriminatedUnion\";\n ZodFirstPartyTypeKind[\"ZodIntersection\"] = \"ZodIntersection\";\n ZodFirstPartyTypeKind[\"ZodTuple\"] = \"ZodTuple\";\n ZodFirstPartyTypeKind[\"ZodRecord\"] = \"ZodRecord\";\n ZodFirstPartyTypeKind[\"ZodMap\"] = \"ZodMap\";\n ZodFirstPartyTypeKind[\"ZodSet\"] = \"ZodSet\";\n ZodFirstPartyTypeKind[\"ZodFunction\"] = \"ZodFunction\";\n ZodFirstPartyTypeKind[\"ZodLazy\"] = \"ZodLazy\";\n ZodFirstPartyTypeKind[\"ZodLiteral\"] = \"ZodLiteral\";\n ZodFirstPartyTypeKind[\"ZodEnum\"] = \"ZodEnum\";\n ZodFirstPartyTypeKind[\"ZodEffects\"] = \"ZodEffects\";\n ZodFirstPartyTypeKind[\"ZodNativeEnum\"] = \"ZodNativeEnum\";\n ZodFirstPartyTypeKind[\"ZodOptional\"] = \"ZodOptional\";\n ZodFirstPartyTypeKind[\"ZodNullable\"] = \"ZodNullable\";\n ZodFirstPartyTypeKind[\"ZodDefault\"] = \"ZodDefault\";\n ZodFirstPartyTypeKind[\"ZodPromise\"] = \"ZodPromise\";\n ZodFirstPartyTypeKind[\"ZodBranded\"] = \"ZodBranded\";\n})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));\n// new approach that works for abstract classes\n// but required TS 4.4+\n// abstract class Class {\n// constructor(..._: any[]) {}\n// }\n// const instanceOfType = <T extends typeof Class>(\nconst instanceOfType = (cls, params = {\n message: `Input not instance of ${cls.name}`,\n}) => custom((data) => data instanceof cls, params, true);\nconst stringType = ZodString.create;\nconst numberType = ZodNumber.create;\nconst nanType = ZodNaN.create;\nconst bigIntType = ZodBigInt.create;\nconst booleanType = ZodBoolean.create;\nconst dateType = ZodDate.create;\nconst undefinedType = ZodUndefined.create;\nconst nullType = ZodNull.create;\nconst anyType = ZodAny.create;\nconst unknownType = ZodUnknown.create;\nconst neverType = ZodNever.create;\nconst voidType = ZodVoid.create;\nconst arrayType = ZodArray.create;\nconst objectType = ZodObject.create;\nconst strictObjectType = ZodObject.strictCreate;\nconst unionType = ZodUnion.create;\nconst discriminatedUnionType = ZodDiscriminatedUnion.create;\nconst intersectionType = ZodIntersection.create;\nconst tupleType = ZodTuple.create;\nconst recordType = ZodRecord.create;\nconst mapType = ZodMap.create;\nconst setType = ZodSet.create;\nconst functionType = ZodFunction.create;\nconst lazyType = ZodLazy.create;\nconst literalType = ZodLiteral.create;\nconst enumType = ZodEnum.create;\nconst nativeEnumType = ZodNativeEnum.create;\nconst promiseType = ZodPromise.create;\nconst effectsType = ZodEffects.create;\nconst optionalType = ZodOptional.create;\nconst nullableType = ZodNullable.create;\nconst preprocessType = ZodEffects.createWithPreprocess;\nconst ostring = () => stringType().optional();\nconst onumber = () => numberType().optional();\nconst oboolean = () => booleanType().optional();\nconst NEVER = INVALID;\n\nvar mod = /*#__PURE__*/Object.freeze({\n __proto__: null,\n getParsedType: getParsedType,\n ZodParsedType: ZodParsedType,\n defaultErrorMap: errorMap,\n setErrorMap: setErrorMap,\n getErrorMap: getErrorMap,\n makeIssue: makeIssue,\n EMPTY_PATH: EMPTY_PATH,\n addIssueToContext: addIssueToContext,\n ParseStatus: ParseStatus,\n INVALID: INVALID,\n DIRTY: DIRTY,\n OK: OK,\n isAborted: isAborted,\n isDirty: isDirty,\n isValid: isValid,\n isAsync: isAsync,\n ZodType: ZodType,\n ZodString: ZodString,\n ZodNumber: ZodNumber,\n ZodBigInt: ZodBigInt,\n ZodBoolean: ZodBoolean,\n ZodDate: ZodDate,\n ZodUndefined: ZodUndefined,\n ZodNull: ZodNull,\n ZodAny: ZodAny,\n ZodUnknown: ZodUnknown,\n ZodNever: ZodNever,\n ZodVoid: ZodVoid,\n ZodArray: ZodArray,\n get objectUtil () { return objectUtil; },\n ZodObject: ZodObject,\n ZodUnion: ZodUnion,\n ZodDiscriminatedUnion: ZodDiscriminatedUnion,\n ZodIntersection: ZodIntersection,\n ZodTuple: ZodTuple,\n ZodRecord: ZodRecord,\n ZodMap: ZodMap,\n ZodSet: ZodSet,\n ZodFunction: ZodFunction,\n ZodLazy: ZodLazy,\n ZodLiteral: ZodLiteral,\n ZodEnum: ZodEnum,\n ZodNativeEnum: ZodNativeEnum,\n ZodPromise: ZodPromise,\n ZodEffects: ZodEffects,\n ZodTransformer: ZodEffects,\n ZodOptional: ZodOptional,\n ZodNullable: ZodNullable,\n ZodDefault: ZodDefault,\n ZodNaN: ZodNaN,\n BRAND: BRAND,\n ZodBranded: ZodBranded,\n custom: custom,\n Schema: ZodType,\n ZodSchema: ZodType,\n late: late,\n get ZodFirstPartyTypeKind () { return ZodFirstPartyTypeKind; },\n any: anyType,\n array: arrayType,\n bigint: bigIntType,\n boolean: booleanType,\n date: dateType,\n discriminatedUnion: discriminatedUnionType,\n effect: effectsType,\n 'enum': enumType,\n 'function': functionType,\n 'instanceof': instanceOfType,\n intersection: intersectionType,\n lazy: lazyType,\n literal: literalType,\n map: mapType,\n nan: nanType,\n nativeEnum: nativeEnumType,\n never: neverType,\n 'null': nullType,\n nullable: nullableType,\n number: numberType,\n object: objectType,\n oboolean: oboolean,\n onumber: onumber,\n optional: optionalType,\n ostring: ostring,\n preprocess: preprocessType,\n promise: promiseType,\n record: recordType,\n set: setType,\n strictObject: strictObjectType,\n string: stringType,\n transformer: effectsType,\n tuple: tupleType,\n 'undefined': undefinedType,\n union: unionType,\n unknown: unknownType,\n 'void': voidType,\n NEVER: NEVER,\n ZodIssueCode: ZodIssueCode,\n quotelessJson: quotelessJson,\n ZodError: ZodError\n});\n\nexport { BRAND, DIRTY, EMPTY_PATH, INVALID, NEVER, OK, ParseStatus, ZodType as Schema, ZodAny, ZodArray, ZodBigInt, ZodBoolean, ZodBranded, ZodDate, ZodDefault, ZodDiscriminatedUnion, ZodEffects, ZodEnum, ZodError, ZodFirstPartyTypeKind, ZodFunction, ZodIntersection, ZodIssueCode, ZodLazy, ZodLiteral, ZodMap, ZodNaN, ZodNativeEnum, ZodNever, ZodNull, ZodNullable, ZodNumber, ZodObject, ZodOptional, ZodParsedType, ZodPromise, ZodRecord, ZodType as ZodSchema, ZodSet, ZodString, ZodEffects as ZodTransformer, ZodTuple, ZodType, ZodUndefined, ZodUnion, ZodUnknown, ZodVoid, addIssueToContext, anyType as any, arrayType as array, bigIntType as bigint, booleanType as boolean, custom, dateType as date, mod as default, errorMap as defaultErrorMap, discriminatedUnionType as discriminatedUnion, effectsType as effect, enumType as enum, functionType as function, getErrorMap, getParsedType, instanceOfType as instanceof, intersectionType as intersection, isAborted, isAsync, isDirty, isValid, late, lazyType as lazy, literalType as literal, makeIssue, mapType as map, nanType as nan, nativeEnumType as nativeEnum, neverType as never, nullType as null, nullableType as nullable, numberType as number, objectType as object, objectUtil, oboolean, onumber, optionalType as optional, ostring, preprocessType as preprocess, promiseType as promise, quotelessJson, recordType as record, setType as set, setErrorMap, strictObjectType as strictObject, stringType as string, effectsType as transformer, tupleType as tuple, undefinedType as undefined, unionType as union, unknownType as unknown, voidType as void, mod as z };\n", "import { z } from 'zod'\n\nexport type QueryParams = Record<string, any>\nexport type Headers = Record<string, string>\n\nexport interface CallOptions {\n encoding?: string\n headers?: Headers\n}\n\nexport interface FetchHandlerResponse {\n status: number\n headers: Headers\n body: ArrayBuffer | undefined\n}\n\nexport type FetchHandler = (\n httpUri: string,\n httpMethod: string,\n httpHeaders: Headers,\n httpReqBody: any,\n) => Promise<FetchHandlerResponse>\n\nexport const errorResponseBody = z.object({\n error: z.string().optional(),\n message: z.string().optional(),\n})\nexport type ErrorResponseBody = z.infer<typeof errorResponseBody>\n\nexport enum ResponseType {\n Unknown = 1,\n InvalidResponse = 2,\n Success = 200,\n InvalidRequest = 400,\n AuthRequired = 401,\n Forbidden = 403,\n XRPCNotSupported = 404,\n PayloadTooLarge = 413,\n RateLimitExceeded = 429,\n InternalServerError = 500,\n MethodNotImplemented = 501,\n UpstreamFailure = 502,\n NotEnoughResouces = 503,\n UpstreamTimeout = 504,\n}\n\nexport const ResponseTypeNames = {\n [ResponseType.InvalidResponse]: 'InvalidResponse',\n [ResponseType.Success]: 'Success',\n [ResponseType.InvalidRequest]: 'InvalidRequest',\n [ResponseType.AuthRequired]: 'AuthenticationRequired',\n [ResponseType.Forbidden]: 'Forbidden',\n [ResponseType.XRPCNotSupported]: 'XRPCNotSupported',\n [ResponseType.PayloadTooLarge]: 'PayloadTooLarge',\n [ResponseType.RateLimitExceeded]: 'RateLimitExceeded',\n [ResponseType.InternalServerError]: 'InternalServerError',\n [ResponseType.MethodNotImplemented]: 'MethodNotImplemented',\n [ResponseType.UpstreamFailure]: 'UpstreamFailure',\n [ResponseType.NotEnoughResouces]: 'NotEnoughResouces',\n [ResponseType.UpstreamTimeout]: 'UpstreamTimeout',\n}\n\nexport const ResponseTypeStrings = {\n [ResponseType.InvalidResponse]: 'Invalid Response',\n [ResponseType.Success]: 'Success',\n [ResponseType.InvalidRequest]: 'Invalid Request',\n [ResponseType.AuthRequired]: 'Authentication Required',\n [ResponseType.Forbidden]: 'Forbidden',\n [ResponseType.XRPCNotSupported]: 'XRPC Not Supported',\n [ResponseType.PayloadTooLarge]: 'Payload Too Large',\n [ResponseType.RateLimitExceeded]: 'Rate Limit Exceeded',\n [ResponseType.InternalServerError]: 'Internal Server Error',\n [ResponseType.MethodNotImplemented]: 'Method Not Implemented',\n [ResponseType.UpstreamFailure]: 'Upstream Failure',\n [ResponseType.NotEnoughResouces]: 'Not Enough Resouces',\n [ResponseType.UpstreamTimeout]: 'Upstream Timeout',\n}\n\nexport class XRPCResponse {\n success = true\n\n constructor(public data: any, public headers: Headers) {}\n}\n\nexport class XRPCError extends Error {\n success = false\n\n constructor(\n public status: ResponseType,\n public error?: string,\n message?: string,\n ) {\n super(message || error || ResponseTypeStrings[status])\n if (!this.error) {\n this.error = ResponseTypeNames[status]\n }\n }\n}\n", "/*\nGrammar:\n\nalpha = \"a\" / \"b\" / \"c\" / \"d\" / \"e\" / \"f\" / \"g\" / \"h\" / \"i\" / \"j\" / \"k\" / \"l\" / \"m\" / \"n\" / \"o\" / \"p\" / \"q\" / \"r\" / \"s\" / \"t\" / \"u\" / \"v\" / \"w\" / \"x\" / \"y\" / \"z\" / \"A\" / \"B\" / \"C\" / \"D\" / \"E\" / \"F\" / \"G\" / \"H\" / \"I\" / \"J\" / \"K\" / \"L\" / \"M\" / \"N\" / \"O\" / \"P\" / \"Q\" / \"R\" / \"S\" / \"T\" / \"U\" / \"V\" / \"W\" / \"X\" / \"Y\" / \"Z\"\nnumber = \"1\" / \"2\" / \"3\" / \"4\" / \"5\" / \"6\" / \"7\" / \"8\" / \"9\" / \"0\"\ndelim = \".\"\nsegment = alpha *( alpha / number / \"-\" )\nauthority = segment *( delim segment )\nname = segment\nnsid = authority delim name\nnsid-ns = authority delim \"*\"\n\n*/\n\nconst SEGMENT_RE = /^[a-zA-Z]([a-zA-Z0-9-])*$/\n\nexport class NSID {\n segments: string[] = []\n\n static parse(nsid: string): NSID {\n return new NSID(nsid)\n }\n\n static create(authority: string, name: string): NSID {\n const segments = [...authority.split('.').reverse(), name].join('.')\n return new NSID(segments)\n }\n\n static isValid(nsid: string): boolean {\n try {\n NSID.parse(nsid)\n return true\n } catch (e) {\n return false\n }\n }\n\n constructor(nsid: string) {\n const segments = nsid.split('.')\n if (segments.length <= 2) {\n throw new Error(`Invalid NSID: ${nsid}`)\n }\n for (let i = 0; i < segments.length; i++) {\n const segment = segments[i]\n if (SEGMENT_RE.test(segment)) {\n continue\n }\n if (i === segments.length - 1 && segment === '*') {\n continue\n }\n throw new Error(`Invalid NSID: invalid character in segment \"${segment}\"`)\n }\n this.segments = segments\n }\n\n get authority() {\n return this.segments\n .slice(0, this.segments.length - 1)\n .reverse()\n .join('.')\n }\n\n get name() {\n return this.segments.at(this.segments.length - 1)\n }\n\n toString() {\n return this.segments.join('.')\n }\n}\n", "import { z } from 'zod'\nimport { NSID } from '@atproto/nsid'\n\n// primitives\n// =\n\nexport const lexBoolean = z.object({\n type: z.literal('boolean'),\n description: z.string().optional(),\n default: z.boolean().optional(),\n const: z.boolean().optional(),\n})\nexport type LexBoolean = z.infer<typeof lexBoolean>\n\nexport const lexNumber = z.object({\n type: z.literal('number'),\n description: z.string().optional(),\n default: z.number().optional(),\n minimum: z.number().optional(),\n maximum: z.number().optional(),\n enum: z.number().array().optional(),\n const: z.number().optional(),\n})\nexport type LexNumber = z.infer<typeof lexNumber>\n\nexport const lexInteger = z.object({\n type: z.literal('integer'),\n description: z.string().optional(),\n default: z.number().int().optional(),\n minimum: z.number().int().optional(),\n maximum: z.number().int().optional(),\n enum: z.number().int().array().optional(),\n const: z.number().int().optional(),\n})\nexport type LexInteger = z.infer<typeof lexInteger>\n\nexport const lexString = z.object({\n type: z.literal('string'),\n description: z.string().optional(),\n default: z.string().optional(),\n minLength: z.number().int().optional(),\n maxLength: z.number().int().optional(),\n enum: z.string().array().optional(),\n const: z.string().optional(),\n knownValues: z.string().array().optional(),\n})\nexport type LexString = z.infer<typeof lexString>\n\nexport const lexDatetime = z.object({\n type: z.literal('datetime'),\n description: z.string().optional(),\n})\nexport type LexDatetime = z.infer<typeof lexDatetime>\n\nexport const lexUnknown = z.object({\n type: z.literal('unknown'),\n description: z.string().optional(),\n})\nexport type LexUnknown = z.infer<typeof lexUnknown>\n\nexport const lexPrimitive = z.union([\n lexBoolean,\n lexNumber,\n lexInteger,\n lexString,\n lexDatetime,\n lexUnknown,\n])\nexport type LexPrimitive = z.infer<typeof lexPrimitive>\n\n// references\n// =\n\nexport const lexRef = z.object({\n type: z.literal('ref'),\n description: z.string().optional(),\n ref: z.string(),\n})\nexport type LexRef = z.infer<typeof lexRef>\n\nexport const lexRefUnion = z.object({\n type: z.literal('union'),\n description: z.string().optional(),\n refs: z.string().array(),\n closed: z.boolean().optional(),\n})\nexport type LexRefUnion = z.infer<typeof lexRefUnion>\n\nexport const lexRefVariant = z.union([lexRef, lexRefUnion])\nexport type LexRefVariant = z.infer<typeof lexRefVariant>\n\n// blobs\n// =\n\nexport const lexBlob = z.object({\n type: z.literal('blob'),\n description: z.string().optional(),\n accept: z.string().array().optional(),\n maxSize: z.number().optional(),\n})\nexport type LexBlob = z.infer<typeof lexBlob>\n\nexport const lexImage = z.object({\n type: z.literal('image'),\n description: z.string().optional(),\n accept: z.string().array().optional(),\n maxSize: z.number().optional(),\n maxWidth: z.number().int().optional(),\n maxHeight: z.number().int().optional(),\n})\nexport type LexImage = z.infer<typeof lexImage>\n\nexport const lexVideo = z.object({\n type: z.literal('video'),\n description: z.string().optional(),\n accept: z.string().array().optional(),\n maxSize: z.number().optional(),\n maxWidth: z.number().int().optional(),\n maxHeight: z.number().int().optional(),\n maxLength: z.number().int().optional(),\n})\nexport type LexVideo = z.infer<typeof lexVideo>\n\nexport const lexAudio = z.object({\n type: z.literal('audio'),\n description: z.string().optional(),\n accept: z.string().array().optional(),\n maxSize: z.number().optional(),\n maxLength: z.number().int().optional(),\n})\nexport type LexAudio = z.infer<typeof lexAudio>\n\nexport const lexBlobVariant = z.union([lexBlob, lexImage, lexVideo, lexAudio])\nexport type LexBlobVariant = z.infer<typeof lexBlobVariant>\n\n// complex types\n// =\n\nexport const lexArray = z.object({\n type: z.literal('array'),\n description: z.string().optional(),\n items: z.union([lexPrimitive, lexBlobVariant, lexRefVariant]),\n minLength: z.number().int().optional(),\n maxLength: z.number().int().optional(),\n})\nexport type LexArray = z.infer<typeof lexArray>\n\nexport const lexToken = z.object({\n type: z.literal('token'),\n description: z.string().optional(),\n})\nexport type LexToken = z.infer<typeof lexToken>\n\nexport const lexObject = z.object({\n type: z.literal('object'),\n description: z.string().optional(),\n required: z.string().array().optional(),\n properties: z\n .record(z.union([lexRefVariant, lexArray, lexBlobVariant, lexPrimitive]))\n .optional(),\n})\nexport type LexObject = z.infer<typeof lexObject>\n\n// xrpc\n// =\n\nexport const lexXrpcParameters = z.object({\n type: z.literal('params'),\n description: z.string().optional(),\n required: z.string().array().optional(),\n properties: z.record(lexPrimitive),\n})\nexport type LexXrpcParameters = z.infer<typeof lexXrpcParameters>\n\nexport const lexXrpcBody = z.object({\n description: z.string().optional(),\n encoding: z.string(),\n schema: z.union([lexRefVariant, lexObject]).optional(),\n})\nexport type LexXrpcBody = z.infer<typeof lexXrpcBody>\n\nexport const lexXrpcError = z.object({\n name: z.string(),\n description: z.string().optional(),\n})\nexport type LexXrpcError = z.infer<typeof lexXrpcError>\n\nexport const lexXrpcQuery = z.object({\n type: z.literal('query'),\n description: z.string().optional(),\n parameters: lexXrpcParameters.optional(),\n output: lexXrpcBody.optional(),\n errors: lexXrpcError.array().optional(),\n})\nexport type LexXrpcQuery = z.infer<typeof lexXrpcQuery>\n\nexport const lexXrpcProcedure = z.object({\n type: z.literal('procedure'),\n description: z.string().optional(),\n parameters: lexXrpcParameters.optional(),\n input: lexXrpcBody.optional(),\n output: lexXrpcBody.optional(),\n errors: lexXrpcError.array().optional(),\n})\nexport type LexXrpcProcedure = z.infer<typeof lexXrpcProcedure>\n\n// database\n// =\n\nexport const lexRecord = z.object({\n type: z.literal('record'),\n description: z.string().optional(),\n key: z.string().optional(),\n record: lexObject,\n})\nexport type LexRecord = z.infer<typeof lexRecord>\n\n// core\n// =\n\nexport const lexUserType = z.union([\n lexRecord,\n\n lexXrpcQuery,\n lexXrpcProcedure,\n\n lexBlob,\n lexImage,\n lexVideo,\n lexAudio,\n\n lexArray,\n lexToken,\n lexObject,\n\n lexBoolean,\n lexNumber,\n lexInteger,\n lexString,\n lexDatetime,\n lexUnknown,\n])\nexport type LexUserType = z.infer<typeof lexUserType>\n\nexport const lexiconDoc = z\n .object({\n lexicon: z.literal(1),\n id: z.string().refine((v: string) => NSID.isValid(v), {\n message: 'Must be a valid NSID',\n }),\n revision: z.number().optional(),\n description: z.string().optional(),\n defs: z.record(lexUserType),\n })\n .superRefine((doc: LexiconDoc, ctx) => {\n for (const defId in doc.defs) {\n const def = doc.defs[defId]\n if (\n defId !== 'main' &&\n (def.type === 'record' ||\n def.type === 'procedure' ||\n def.type === 'query')\n ) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: `Records, procedures, and queries must be the main definition.`,\n })\n }\n }\n })\nexport type LexiconDoc = z.infer<typeof lexiconDoc>\n\n// helpers\n// =\n\nexport function isValidLexiconDoc(v: unknown): v is LexiconDoc {\n return lexiconDoc.safeParse(v).success\n}\n\nexport function isObj(obj: unknown): obj is Record<string, unknown> {\n return !!obj && typeof obj === 'object'\n}\n\nexport function hasProp<K extends PropertyKey>(\n data: object,\n prop: K,\n): data is Record<K, unknown> {\n return prop in data\n}\n\nexport const discriminatedObject = z.object({ $type: z.string() })\nexport type DiscriminatedObject = z.infer<typeof discriminatedObject>\nexport function isDiscriminatedObject(\n value: unknown,\n): value is DiscriminatedObject {\n return discriminatedObject.safeParse(value).success\n}\n\nexport class LexiconDocMalformedError extends Error {\n constructor(\n message: string,\n public schemaDef: unknown,\n public issues?: z.ZodIssue[],\n ) {\n super(message)\n this.schemaDef = schemaDef\n this.issues = issues\n }\n}\n\nexport interface ValidationResult {\n success: boolean\n error?: ValidationError\n}\n\nexport class ValidationError extends Error {}\nexport class InvalidLexiconError extends Error {}\nexport class LexiconDefNotFoundError extends Error {}\n", "import { Lexicons } from '../lexicons'\nimport {\n LexUserType,\n LexBoolean,\n LexNumber,\n LexInteger,\n LexString,\n LexDatetime,\n ValidationResult,\n ValidationError,\n} from '../types'\n\nexport function validate(\n lexicons: Lexicons,\n path: string,\n def: LexUserType,\n value: unknown,\n): ValidationResult {\n switch (def.type) {\n case 'boolean':\n return boolean(lexicons, path, def, value)\n case 'number':\n return number(lexicons, path, def, value)\n case 'integer':\n return integer(lexicons, path, def, value)\n case 'string':\n return string(lexicons, path, def, value)\n case 'datetime':\n return datetime(lexicons, path, def, value)\n case 'unknown':\n return unknown(lexicons, path, def, value)\n default:\n return {\n success: false,\n error: new ValidationError(`Unexpected lexicon type: ${def.type}`),\n }\n }\n}\n\nexport function boolean(\n lexicons: Lexicons,\n path: string,\n def: LexUserType,\n value: unknown,\n): ValidationResult {\n def = def as LexBoolean\n\n // type\n const type = typeof value\n if (type == 'undefined') {\n if (typeof def.default === 'boolean') {\n return { success: true }\n }\n return {\n success: false,\n error: new ValidationError(`${path} must be a boolean`),\n }\n } else if (type !== 'boolean') {\n return {\n success: false,\n error: new ValidationError(`${path} must be a boolean`),\n }\n }\n\n // const\n if (typeof def.const === 'boolean') {\n if (value !== def.const) {\n return {\n success: false,\n error: new ValidationError(`${path} must be ${def.const}`),\n }\n }\n }\n\n return { success: true }\n}\n\nexport function number(\n lexicons: Lexicons,\n path: string,\n def: LexUserType,\n value: unknown,\n): ValidationResult {\n def = def as LexNumber\n\n // type\n const type = typeof value\n if (type == 'undefined') {\n if (typeof def.default === 'number') {\n return { success: true }\n }\n return {\n success: false,\n error: new ValidationError(`${path} must be a number`),\n }\n } else if (type !== 'number') {\n return {\n success: false,\n error: new ValidationError(`${path} must be a number`),\n }\n }\n\n // const\n if (typeof def.const === 'number') {\n if (value !== def.const) {\n return {\n success: false,\n error: new ValidationError(`${path} must be ${def.const}`),\n }\n }\n }\n\n // enum\n if (Array.isArray(def.enum)) {\n if (!def.enum.includes(value as number)) {\n return {\n success: false,\n error: new ValidationError(\n `${path} must be one of (${def.enum.join('|')})`,\n ),\n }\n }\n }\n\n // maximum\n if (typeof def.maximum === 'number') {\n if ((value as number) > def.maximum) {\n return {\n success: false,\n error: new ValidationError(\n `${path} can not be greater than ${def.maximum}`,\n ),\n }\n }\n }\n\n // minimum\n if (typeof def.minimum === 'number') {\n if ((value as number) < def.minimum) {\n return {\n success: false,\n error: new ValidationError(\n `${path} can not be less than ${def.minimum}`,\n ),\n }\n }\n }\n\n return { success: true }\n}\n\nexport function integer(\n lexicons: Lexicons,\n path: string,\n def: LexUserType,\n value: unknown,\n): ValidationResult {\n def = def as LexInteger\n\n // run number validation\n const numRes = number(lexicons, path, def, value)\n if (!numRes.success) {\n return numRes\n }\n\n // whole numbers only\n if (!Number.isInteger(value)) {\n return {\n success: false,\n error: new ValidationError(`${path} must be an integer`),\n }\n }\n\n return { success: true }\n}\n\nexport function string(\n lexicons: Lexicons,\n path: string,\n def: LexUserType,\n value: unknown,\n): ValidationResult {\n def = def as LexString\n\n // type\n const type = typeof value\n if (type == 'undefined') {\n if (typeof def.default === 'string') {\n return { success: true }\n }\n return {\n success: false,\n error: new ValidationError(`${path} must be a string`),\n }\n } else if (type !== 'string') {\n return {\n success: false,\n error: new ValidationError(`${path} must be a string`),\n }\n }\n\n // const\n if (typeof def.const === 'string') {\n if (value !== def.const) {\n return {\n success: false,\n error: new ValidationError(`${path} must be ${def.const}`),\n }\n }\n }\n\n // enum\n if (Array.isArray(def.enum)) {\n if (!def.enum.includes(value as string)) {\n return {\n success: false,\n error: new ValidationError(\n `${path} must be one of (${def.enum.join('|')})`,\n ),\n }\n }\n }\n\n // maxLength\n if (typeof def.maxLength === 'number') {\n if ((value as string).length > def.maxLength) {\n return {\n success: false,\n error: new ValidationError(\n `${path} must not be longer than ${def.maxLength} characters`,\n ),\n }\n }\n }\n\n // minLength\n if (typeof def.minLength === 'number') {\n if ((value as string).length < def.minLength) {\n return {\n success: false,\n error: new ValidationError(\n `${path} must not be shorter than ${def.minLength} characters`,\n ),\n }\n }\n }\n\n return { success: true }\n}\n\nexport function datetime(\n lexicons: Lexicons,\n path: string,\n def: LexUserType,\n value: unknown,\n): ValidationResult {\n def = def as LexDatetime\n\n // type\n const type = typeof value\n if (type !== 'string') {\n return {\n success: false,\n error: new ValidationError(`${path} must be a string`),\n }\n }\n\n // valid iso-8601\n {\n try {\n const date = new Date(Date.parse(value as string))\n if (value !== date.toISOString()) {\n throw new ValidationError(\n `${path} must be an iso8601 formatted datetime`,\n )\n }\n } catch {\n throw new ValidationError(`${path} must be an iso8601 formatted datetime`)\n }\n }\n\n return { success: true }\n}\n\nexport function unknown(\n lexicons: Lexicons,\n path: string,\n def: LexUserType,\n value: unknown,\n): ValidationResult {\n // type\n if (!value || typeof value !== 'object') {\n return {\n success: false,\n error: new ValidationError(`${path} must be an object`),\n }\n }\n\n return { success: true }\n}\n", "import { Lexicons } from '../lexicons'\nimport { LexUserType, ValidationResult, ValidationError } from '../types'\nimport { isObj, hasProp } from '../types'\n\nexport function blob(\n lexicons: Lexicons,\n path: string,\n def: LexUserType,\n value: unknown,\n): ValidationResult {\n if (!isObj(value)) {\n return {\n success: false,\n error: new ValidationError(`${path} should be an object`),\n }\n }\n if (!hasProp(value, 'cid') || typeof value.cid !== 'string') {\n return {\n success: false,\n error: new ValidationError(`${path}/cid should be a string`),\n }\n }\n if (!hasProp(value, 'mimeType') || typeof value.mimeType !== 'string') {\n return {\n success: false,\n error: new ValidationError(`${path}/mimeType should be a string`),\n }\n }\n return { success: true }\n}\n\nexport function image(\n lexicons: Lexicons,\n path: string,\n def: LexUserType,\n value: unknown,\n): ValidationResult {\n return blob(lexicons, path, def, value)\n}\n\nexport function video(\n lexicons: Lexicons,\n path: string,\n def: LexUserType,\n value: unknown,\n): ValidationResult {\n return blob(lexicons, path, def, value)\n}\n\nexport function audio(\n lexicons: Lexicons,\n path: string,\n def: LexUserType,\n value: unknown,\n): ValidationResult {\n return blob(lexicons, path, def, value)\n}\n", "import { Lexicons } from '../lexicons'\nimport {\n LexArray,\n LexObject,\n LexUserType,\n ValidationResult,\n ValidationError,\n} from '../types'\nimport { validateOneOf } from '../util'\n\nimport * as Primitives from './primitives'\nimport * as Blob from './blob'\n\nexport function validate(\n lexicons: Lexicons,\n path: string,\n def: LexUserType,\n value: unknown,\n): ValidationResult {\n switch (def.type) {\n case 'boolean':\n return Primitives.boolean(lexicons, path, def, value)\n case 'number':\n return Primitives.number(lexicons, path, def, value)\n case 'integer':\n return Primitives.integer(lexicons, path, def, value)\n case 'string':\n return Primitives.string(lexicons, path, def, value)\n case 'datetime':\n return Primitives.datetime(lexicons, path, def, value)\n case 'unknown':\n return Primitives.unknown(lexicons, path, def, value)\n case 'object':\n return object(lexicons, path, def, value)\n case 'array':\n return array(lexicons, path, def, value)\n case 'blob':\n return Blob.blob(lexicons, path, def, value)\n case 'image':\n return Blob.image(lexicons, path, def, value)\n case 'video':\n return Blob.video(lexicons, path, def, value)\n case 'audio':\n return Blob.audio(lexicons, path, def, value)\n default:\n return {\n success: false,\n error: new ValidationError(`Unexpected lexicon type: ${def.type}`),\n }\n }\n}\n\nexport function array(\n lexicons: Lexicons,\n path: string,\n def: LexUserType,\n value: unknown,\n): ValidationResult {\n def = def as LexArray\n\n // type\n if (!Array.isArray(value)) {\n return {\n success: false,\n error: new ValidationError(`${path} must be an array`),\n }\n }\n\n // maxLength\n if (typeof def.maxLength === 'number') {\n if ((value as Array<unknown>).length > def.maxLength) {\n return {\n success: false,\n error: new ValidationError(\n `${path} must not have more than ${def.maxLength} elements`,\n ),\n }\n }\n }\n\n // minLength\n if (typeof def.minLength === 'number') {\n if ((value as Array<unknown>).length < def.minLength) {\n return {\n success: false,\n error: new ValidationError(\n `${path} must not have fewer than ${def.minLength} elements`,\n ),\n }\n }\n }\n\n // items\n const itemsDef = def.items\n for (let i = 0; i < (value as Array<unknown>).length; i++) {\n const itemValue = value[i]\n const itemPath = `${path}/${i}`\n const res = validateOneOf(lexicons, itemPath, itemsDef, itemValue)\n if (!res.success) {\n return res\n }\n }\n\n return { success: true }\n}\n\nexport function object(\n lexicons: Lexicons,\n path: string,\n def: LexUserType,\n value: unknown,\n): ValidationResult {\n def = def as LexObject\n\n // type\n if (!value || typeof value !== 'object') {\n return {\n success: false,\n error: new ValidationError(`${path} must be an object`),\n }\n }\n\n // required\n if (Array.isArray(def.required)) {\n for (const key of def.required) {\n if (!(key in value)) {\n return {\n success: false,\n error: new ValidationError(`${path} must have the property \"${key}\"`),\n }\n }\n }\n }\n\n // properties\n if (typeof def.properties === 'object') {\n for (const key in def.properties) {\n const propValue = value[key]\n if (typeof propValue === 'undefined') {\n continue // skip- if required, will have already failed\n }\n const propDef = def.properties[key]\n const propPath = `${path}/${key}`\n const res = validateOneOf(lexicons, propPath, propDef, propValue)\n if (!res.success) {\n return res\n }\n }\n }\n\n return { success: true }\n}\n", "import { Lexicons } from './lexicons'\nimport * as ComplexValidators from './validators/complex'\nimport {\n LexUserType,\n LexRefVariant,\n ValidationError,\n ValidationResult,\n isDiscriminatedObject,\n} from './types'\n\nexport function toLexUri(str: string, baseUri?: string): string {\n if (str.startsWith('lex:')) {\n return str\n }\n if (str.startsWith('#')) {\n if (!baseUri) {\n throw new Error(`Unable to resolve uri without anchor: ${str}`)\n }\n return `${baseUri}${str}`\n }\n return `lex:${str}`\n}\n\nexport function validateOneOf(\n lexicons: Lexicons,\n path: string,\n def: LexRefVariant | LexUserType,\n value: unknown,\n mustBeObj = false, // this is the only type constraint we need currently (used by xrpc body schema validators)\n): ValidationResult {\n let error\n\n let concreteDefs\n if (def.type === 'union') {\n if (!isDiscriminatedObject(value)) {\n return {\n success: false,\n error: new ValidationError(\n `${path} must be an object which includes the \"$type\" property`,\n ),\n }\n }\n if (!def.refs.includes(toLexUri(value.$type))) {\n if (def.closed) {\n return {\n success: false,\n error: new ValidationError(\n `${path} $type must be one of ${def.refs.join(', ')}`,\n ),\n }\n }\n return { success: true }\n } else {\n concreteDefs = toConcreteTypes(lexicons, {\n type: 'ref',\n ref: value.$type,\n })\n }\n } else {\n concreteDefs = toConcreteTypes(lexicons, def)\n }\n\n for (const concreteDef of concreteDefs) {\n const result = mustBeObj\n ? ComplexValidators.object(lexicons, path, concreteDef, value)\n : ComplexValidators.validate(lexicons, path, concreteDef, value)\n if (result.success) {\n return result\n }\n error ??= result.error\n }\n if (concreteDefs.length > 1) {\n return {\n success: false,\n error: new ValidationError(\n `${path} did not match any of the expected definitions`,\n ),\n }\n }\n return { success: false, error }\n}\n\nexport function assertValidOneOf(\n lexicons: Lexicons,\n path: string,\n def: LexRefVariant | LexUserType,\n value: unknown,\n mustBeObj = false,\n) {\n const res = validateOneOf(lexicons, path, def, value, mustBeObj)\n if (!res.success) {\n throw res.error\n }\n}\n\nexport function toConcreteTypes(\n lexicons: Lexicons,\n def: LexRefVariant | LexUserType,\n): LexUserType[] {\n if (def.type === 'ref') {\n return [lexicons.getDefOrThrow(def.ref)]\n } else if (def.type === 'union') {\n return def.refs.map((ref) => lexicons.getDefOrThrow(ref)).flat()\n } else {\n return [def]\n }\n}\n", "import { Lexicons } from '../lexicons'\nimport { LexXrpcParameters, ValidationResult, ValidationError } from '../types'\n\nimport * as PrimitiveValidators from './primitives'\n\nexport function params(\n lexicons: Lexicons,\n path: string,\n def: LexXrpcParameters,\n value: unknown,\n): ValidationResult {\n def = def as LexXrpcParameters\n\n // type\n if (!value || typeof value !== 'object') {\n // in this case, we just fall back to an object\n value = {}\n }\n\n // required\n if (Array.isArray(def.required)) {\n for (const key of def.required) {\n if (!(key in (value as Record<string, unknown>))) {\n return {\n success: false,\n error: new ValidationError(`${path} must have the property \"${key}\"`),\n }\n }\n }\n }\n\n // properties\n for (const key in def.properties) {\n if (typeof (value as Record<string, unknown>)[key] === 'undefined') {\n continue // skip- if required, will have already failed\n }\n const paramDef = def.properties[key]\n const res = PrimitiveValidators.validate(\n lexicons,\n key,\n paramDef,\n (value as Record<string, unknown>)[key],\n )\n if (!res.success) {\n return res\n }\n }\n\n return { success: true }\n}\n", "import { Lexicons } from './lexicons'\nimport { LexRecord, LexXrpcProcedure, LexXrpcQuery } from './types'\nimport { assertValidOneOf } from './util'\n\nimport * as ComplexValidators from './validators/complex'\nimport * as XrpcValidators from './validators/xrpc'\n\nexport function assertValidRecord(\n lexicons: Lexicons,\n def: LexRecord,\n value: unknown,\n) {\n const res = ComplexValidators.object(lexicons, 'Record', def.record, value)\n if (!res.success) throw res.error\n}\n\nexport function assertValidXrpcParams(\n lexicons: Lexicons,\n def: LexXrpcProcedure | LexXrpcQuery,\n value: unknown,\n) {\n if (def.parameters) {\n const res = XrpcValidators.params(lexicons, 'Params', def.parameters, value)\n if (!res.success) throw res.error\n }\n}\n\nexport function assertValidXrpcInput(\n lexicons: Lexicons,\n def: LexXrpcProcedure,\n value: unknown,\n) {\n if (def.input?.schema) {\n // loop: all input schema definitions\n assertValidOneOf(lexicons, 'Input', def.input.schema, value, true)\n }\n}\n\nexport function assertValidXrpcOutput(\n lexicons: Lexicons,\n def: LexXrpcProcedure | LexXrpcQuery,\n value: unknown,\n) {\n if (def.output?.schema) {\n // loop: all output schema definitions\n assertValidOneOf(lexicons, 'Output', def.output.schema, value, true)\n }\n}\n", "import { ZodError } from 'zod'\nimport {\n LexiconDoc,\n lexiconDoc,\n LexRecord,\n LexXrpcProcedure,\n LexXrpcQuery,\n LexUserType,\n LexiconDocMalformedError,\n LexiconDefNotFoundError,\n InvalidLexiconError,\n ValidationError,\n isObj,\n hasProp,\n} from './types'\nimport {\n assertValidRecord,\n assertValidXrpcParams,\n assertValidXrpcInput,\n assertValidXrpcOutput,\n} from './validation'\nimport { toLexUri } from './util'\n\n/**\n * A collection of compiled lexicons.\n */\nexport class Lexicons {\n docs: Map<string, LexiconDoc> = new Map()\n defs: Map<string, LexUserType> = new Map()\n\n constructor(docs?: unknown[]) {\n if (docs?.length) {\n for (const doc of docs) {\n this.add(doc)\n }\n }\n }\n\n /**\n * Add a lexicon doc.\n */\n add(doc: unknown): void {\n try {\n lexiconDoc.parse(doc)\n } catch (e) {\n if (e instanceof ZodError) {\n throw new LexiconDocMalformedError(\n `Failed to parse schema definition ${\n (doc as Record<string, string>).id\n }`,\n doc,\n e.issues,\n )\n } else {\n throw e\n }\n }\n const validatedDoc = doc as LexiconDoc\n const uri = toLexUri(validatedDoc.id)\n if (this.docs.has(uri)) {\n throw new Error(`${uri} has already been registered`)\n }\n\n // WARNING\n // mutates the object\n // -prf\n resolveRefUris(validatedDoc, uri)\n\n this.docs.set(uri, validatedDoc)\n for (const [defUri, def] of iterDefs(validatedDoc)) {\n this.defs.set(defUri, def)\n }\n }\n\n /**\n * Remove a lexicon doc.\n */\n remove(uri: string) {\n uri = toLexUri(uri)\n const doc = this.docs.get(uri)\n if (!doc) {\n throw new Error(`Unable to remove \"${uri}\": does not exist`)\n }\n for (const [defUri, _def] of iterDefs(doc)) {\n this.defs.delete(defUri)\n }\n this.docs.delete(uri)\n }\n\n /**\n * Get a lexicon doc.\n */\n get(uri: string): LexiconDoc | undefined {\n uri = toLexUri(uri)\n return this.docs.get(uri)\n }\n\n /**\n * Get a definition.\n */\n getDef(uri: string): LexUserType | undefined {\n uri = toLexUri(uri)\n return this.defs.get(uri)\n }\n\n /**\n * Get a def, throw if not found. Throws on not found.\n */\n getDefOrThrow(uri: string, types?: string[]): LexUserType {\n const def = this.getDef(uri)\n if (!def) {\n throw new LexiconDefNotFoundError(`Lexicon not found: ${uri}`)\n }\n if (types && !types.includes(def.type)) {\n throw new InvalidLexiconError(\n `Not a ${types.join(' or ')} lexicon: ${uri}`,\n )\n }\n return def\n }\n\n /**\n * Validate a record and throw on any error.\n */\n assertValidRecord(lexUri: string, value: unknown) {\n lexUri = toLexUri(lexUri)\n const def = this.getDefOrThrow(lexUri, ['record'])\n if (!isObj(value)) {\n throw new ValidationError(`Record must be an object`)\n }\n if (!hasProp(value, '$type') || typeof value.$type !== 'string') {\n throw new ValidationError(`Record/$type must be a string`)\n }\n const $type = (value as Record<string, string>).$type || ''\n if (toLexUri($type) !== lexUri) {\n throw new ValidationError(\n `Invalid $type: must be ${lexUri}, got ${$type}`,\n )\n }\n assertValidRecord(this, def as LexRecord, value)\n }\n\n /**\n * Validate xrpc query params and throw on any error.\n */\n assertValidXrpcParams(lexUri: string, value: unknown) {\n lexUri = toLexUri(lexUri)\n const def = this.getDefOrThrow(lexUri, ['query', 'procedure'])\n assertValidXrpcParams(this, def as LexXrpcProcedure | LexXrpcQuery, value)\n }\n\n /**\n * Validate xrpc input body and throw on any error.\n */\n assertValidXrpcInput(lexUri: string, value: unknown) {\n lexUri = toLexUri(lexUri)\n const def = this.getDefOrThrow(lexUri, ['procedure'])\n assertValidXrpcInput(this, def as LexXrpcProcedure, value)\n }\n\n /**\n * Validate xrpc output body and throw on any error.\n */\n assertValidXrpcOutput(lexUri: string, value: unknown) {\n lexUri = toLexUri(lexUri)\n const def = this.getDefOrThrow(lexUri, ['query', 'procedure'])\n assertValidXrpcOutput(this, def as LexXrpcProcedure | LexXrpcQuery, value)\n }\n}\n\nfunction* iterDefs(doc: LexiconDoc): Generator<[string, LexUserType]> {\n for (const defId in doc.defs) {\n yield [`lex:${doc.id}#${defId}`, doc.defs[defId]]\n if (defId === 'main') {\n yield [`lex:${doc.id}`, doc.defs[defId]]\n }\n }\n}\n\n// WARNING\n// this method mutates objects\n// -prf\nfunction resolveRefUris(obj: any, baseUri: string): any {\n for (const k in obj) {\n if (obj.type === 'ref') {\n obj.ref = toLexUri(obj.ref, baseUri)\n } else if (obj.type === 'union') {\n obj.refs = obj.refs.map((ref) => toLexUri(ref, baseUri))\n } else if (Array.isArray(obj[k])) {\n obj[k] = obj[k].map((item: any) => {\n if (typeof item === 'string') {\n return item.startsWith('#') ? toLexUri(item, baseUri) : item\n } else if (item && typeof item === 'object') {\n return resolveRefUris(item, baseUri)\n }\n return item\n })\n } else if (obj[k] && typeof obj[k] === 'object') {\n obj[k] = resolveRefUris(obj[k], baseUri)\n }\n }\n return obj\n}\n", "import { LexXrpcProcedure, LexXrpcQuery } from '@atproto/lexicon'\nimport {\n CallOptions,\n Headers,\n QueryParams,\n ResponseType,\n XRPCError,\n} from './types'\n\nexport function getMethodSchemaHTTPMethod(\n schema: LexXrpcProcedure | LexXrpcQuery,\n) {\n if (schema.type === 'procedure') {\n return 'post'\n }\n return 'get'\n}\n\nexport function constructMethodCallUri(\n nsid: string,\n schema: LexXrpcProcedure | LexXrpcQuery,\n serviceUri: URL,\n params?: QueryParams,\n): string {\n const uri = new URL(serviceUri)\n uri.pathname = `/xrpc/${nsid}`\n\n // given parameters\n if (params) {\n for (const [key, value] of Object.entries(params)) {\n const paramSchema = schema.parameters?.properties?.[key]\n if (!paramSchema) {\n throw new Error(`Invalid query parameter: ${key}`)\n }\n if (value !== undefined) {\n uri.searchParams.set(key, encodeQueryParam(paramSchema.type, value))\n }\n }\n }\n\n return uri.toString()\n}\n\nexport function encodeQueryParam(\n type: 'string' | 'number' | 'integer' | 'boolean' | 'datetime' | 'unknown',\n value: any,\n): string {\n if (type === 'string' || type === 'unknown') {\n return String(value)\n }\n if (type === 'number') {\n return String(Number(value))\n } else if (type === 'integer') {\n return String(Number(value) | 0)\n } else if (type === 'boolean') {\n return value ? 'true' : 'false'\n } else if (type === 'datetime') {\n if (value instanceof Date) {\n return value.toISOString()\n }\n return String(value)\n }\n throw new Error(`Unsupported query param type: ${type}`)\n}\n\nexport function constructMethodCallHeaders(\n schema: LexXrpcProcedure | LexXrpcQuery,\n data?: any,\n opts?: CallOptions,\n): Headers {\n const headers: Headers = opts?.headers || {}\n if (schema.type === 'procedure') {\n if (opts?.encoding) {\n headers['Content-Type'] = opts.encoding\n }\n if (data && typeof data === 'object') {\n if (!headers['Content-Type']) {\n headers['Content-Type'] = 'application/json'\n }\n }\n }\n return headers\n}\n\nexport function encodeMethodCallBody(\n headers: Headers,\n data?: any,\n): ArrayBuffer | undefined {\n if (!headers['Content-Type'] || typeof data === 'undefined') {\n return undefined\n }\n if (data instanceof ArrayBuffer) {\n return data\n }\n if (headers['Content-Type'].startsWith('text/')) {\n return new TextEncoder().encode(data.toString())\n }\n if (headers['Content-Type'].startsWith('application/json')) {\n return new TextEncoder().encode(JSON.stringify(data))\n }\n return data\n}\n\nexport function httpResponseCodeToEnum(status: number): ResponseType {\n let resCode: ResponseType\n if (status in ResponseType) {\n resCode = status\n } else if (status >= 100 && status < 200) {\n resCode = ResponseType.XRPCNotSupported\n } else if (status >= 200 && status < 300) {\n resCode = ResponseType.Success\n } else if (status >= 300 && status < 400) {\n resCode = ResponseType.XRPCNotSupported\n } else if (status >= 400 && status < 500) {\n resCode = ResponseType.InvalidRequest\n } else {\n resCode = ResponseType.InternalServerError\n }\n return resCode\n}\n\nexport function httpResponseBodyParse(\n mimeType: string | null,\n data: ArrayBuffer | undefined,\n): any {\n if (mimeType) {\n if (mimeType.includes('application/json') && data?.byteLength) {\n try {\n const str = new TextDecoder().decode(data)\n return JSON.parse(str)\n } catch (e) {\n throw new XRPCError(\n ResponseType.InvalidResponse,\n `Failed to parse response body: ${String(e)}`,\n )\n }\n }\n if (mimeType.startsWith('text/') && data?.byteLength) {\n try {\n return new TextDecoder().decode(data)\n } catch (e) {\n throw new XRPCError(\n ResponseType.InvalidResponse,\n `Failed to parse response body: ${String(e)}`,\n )\n }\n }\n }\n return data\n}\n", "import { Lexicons } from '@atproto/lexicon'\nimport {\n getMethodSchemaHTTPMethod,\n constructMethodCallUri,\n constructMethodCallHeaders,\n encodeMethodCallBody,\n httpResponseCodeToEnum,\n httpResponseBodyParse,\n} from './util'\nimport {\n FetchHandler,\n FetchHandlerResponse,\n Headers,\n CallOptions,\n QueryParams,\n ResponseType,\n errorResponseBody,\n ErrorResponseBody,\n XRPCResponse,\n XRPCError,\n} from './types'\n\nexport class Client {\n fetch: FetchHandler = defaultFetchHandler\n lex = new Lexicons()\n\n // method calls\n //\n\n async call(\n serviceUri: string | URL,\n methodNsid: string,\n params?: QueryParams,\n data?: unknown,\n opts?: CallOptions,\n ) {\n return this.service(serviceUri).call(methodNsid, params, data, opts)\n }\n\n service(serviceUri: string | URL) {\n return new ServiceClient(this, serviceUri)\n }\n\n // schemas\n // =\n\n addLexicon(doc: unknown) {\n this.lex.add(doc)\n }\n\n addLexicons(docs: unknown[]) {\n for (const doc of docs) {\n this.addLexicon(doc)\n }\n }\n\n removeLexicon(uri: string) {\n this.lex.remove(uri)\n }\n}\n\nexport class ServiceClient {\n baseClient: Client\n uri: URL\n headers: Record<string, string> = {}\n\n constructor(baseClient: Client, serviceUri: string | URL) {\n this.baseClient = baseClient\n this.uri = typeof serviceUri === 'string' ? new URL(serviceUri) : serviceUri\n }\n\n setHeader(key: string, value: string): void {\n this.headers[key] = value\n }\n\n unsetHeader(key: string): void {\n delete this.headers[key]\n }\n\n async call(\n methodNsid: string,\n params?: QueryParams,\n data?: unknown,\n opts?: CallOptions,\n ) {\n const def = this.baseClient.lex.getDefOrThrow(methodNsid)\n if (!def || (def.type !== 'query' && def.type !== 'procedure')) {\n throw new Error(\n `Invalid lexicon: ${methodNsid}. Must be a query or procedure.`,\n )\n }\n\n const httpMethod = getMethodSchemaHTTPMethod(def)\n const httpUri = constructMethodCallUri(methodNsid, def, this.uri, params)\n const httpHeaders = constructMethodCallHeaders(def, data, {\n headers: {\n ...this.headers,\n ...opts?.headers,\n },\n encoding: opts?.encoding,\n })\n\n const res = await this.baseClient.fetch(\n httpUri,\n httpMethod,\n httpHeaders,\n data,\n )\n\n const resCode = httpResponseCodeToEnum(res.status)\n if (resCode === ResponseType.Success) {\n return new XRPCResponse(res.body, res.headers)\n } else {\n if (res.body && isErrorResponseBody(res.body)) {\n throw new XRPCError(resCode, res.body.error, res.body.message)\n } else {\n throw new XRPCError(resCode)\n }\n }\n }\n}\n\nasync function defaultFetchHandler(\n httpUri: string,\n httpMethod: string,\n httpHeaders: Headers,\n httpReqBody: unknown,\n): Promise<FetchHandlerResponse> {\n try {\n const res = await fetch(httpUri, {\n method: httpMethod,\n headers: httpHeaders,\n body: encodeMethodCallBody(httpHeaders, httpReqBody),\n })\n const resBody = await res.arrayBuffer()\n return {\n status: res.status,\n headers: Object.fromEntries(res.headers.entries()),\n body: httpResponseBodyParse(res.headers.get('content-type'), resBody),\n }\n } catch (e) {\n throw new XRPCError(ResponseType.Unknown, String(e))\n }\n}\n\nfunction isErrorResponseBody(v: unknown): v is ErrorResponseBody {\n return errorResponseBody.safeParse(v).success\n}\n", "export * from './types'\nexport * from './client'\n\nimport { Client } from './client'\nconst defaultInst = new Client()\nexport default defaultInst\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { LexiconDoc, Lexicons } from '@atproto/lexicon'\n\nexport const schemaDict = {\n ComAtprotoAccountCreate: {\n lexicon: 1,\n id: 'com.atproto.account.create',\n defs: {\n main: {\n type: 'procedure',\n description: 'Create an account.',\n input: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['handle', 'email', 'password'],\n properties: {\n email: {\n type: 'string',\n },\n handle: {\n type: 'string',\n },\n inviteCode: {\n type: 'string',\n },\n password: {\n type: 'string',\n },\n recoveryKey: {\n type: 'string',\n },\n },\n },\n },\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['accessJwt', 'refreshJwt', 'handle', 'did'],\n properties: {\n accessJwt: {\n type: 'string',\n },\n refreshJwt: {\n type: 'string',\n },\n handle: {\n type: 'string',\n },\n did: {\n type: 'string',\n },\n },\n },\n },\n errors: [\n {\n name: 'InvalidHandle',\n },\n {\n name: 'InvalidPassword',\n },\n {\n name: 'InvalidInviteCode',\n },\n {\n name: 'HandleNotAvailable',\n },\n ],\n },\n },\n },\n ComAtprotoAccountCreateInviteCode: {\n lexicon: 1,\n id: 'com.atproto.account.createInviteCode',\n defs: {\n main: {\n type: 'procedure',\n description: 'Create an invite code.',\n input: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['useCount'],\n properties: {\n useCount: {\n type: 'integer',\n },\n },\n },\n },\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['code'],\n properties: {\n code: {\n type: 'string',\n },\n },\n },\n },\n },\n },\n },\n ComAtprotoAccountDelete: {\n lexicon: 1,\n id: 'com.atproto.account.delete',\n defs: {\n main: {\n type: 'procedure',\n description: 'Delete an account.',\n },\n },\n },\n ComAtprotoAccountGet: {\n lexicon: 1,\n id: 'com.atproto.account.get',\n defs: {\n main: {\n type: 'query',\n description: 'Get information about an account.',\n },\n },\n },\n ComAtprotoAccountRequestPasswordReset: {\n lexicon: 1,\n id: 'com.atproto.account.requestPasswordReset',\n defs: {\n main: {\n type: 'procedure',\n description: 'Initiate a user account password reset via email.',\n input: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['email'],\n properties: {\n email: {\n type: 'string',\n },\n },\n },\n },\n },\n },\n },\n ComAtprotoAccountResetPassword: {\n lexicon: 1,\n id: 'com.atproto.account.resetPassword',\n defs: {\n main: {\n type: 'procedure',\n description: 'Reset a user account password using a token.',\n input: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['token', 'password'],\n properties: {\n token: {\n type: 'string',\n },\n password: {\n type: 'string',\n },\n },\n },\n },\n errors: [\n {\n name: 'ExpiredToken',\n },\n {\n name: 'InvalidToken',\n },\n ],\n },\n },\n },\n ComAtprotoBlobUpload: {\n lexicon: 1,\n id: 'com.atproto.blob.upload',\n defs: {\n main: {\n type: 'procedure',\n description:\n 'Upload a new blob to be added to repo in a later request.',\n input: {\n encoding: '*/*',\n },\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['cid'],\n properties: {\n cid: {\n type: 'string',\n },\n },\n },\n },\n },\n },\n },\n ComAtprotoHandleResolve: {\n lexicon: 1,\n id: 'com.atproto.handle.resolve',\n defs: {\n main: {\n type: 'query',\n description: 'Provides the DID of a repo.',\n parameters: {\n type: 'params',\n properties: {\n handle: {\n type: 'string',\n description:\n \"The handle to resolve. If not supplied, will resolve the host's own handle.\",\n },\n },\n },\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['did'],\n properties: {\n did: {\n type: 'string',\n },\n },\n },\n },\n },\n },\n },\n ComAtprotoRepoBatchWrite: {\n lexicon: 1,\n id: 'com.atproto.repo.batchWrite',\n defs: {\n main: {\n type: 'procedure',\n description: 'Apply a batch transaction of creates, puts, and deletes.',\n input: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['did', 'writes'],\n properties: {\n did: {\n type: 'string',\n description: 'The DID of the repo.',\n },\n validate: {\n type: 'boolean',\n default: true,\n description: 'Validate the records?',\n },\n writes: {\n type: 'array',\n items: {\n type: 'union',\n refs: [\n 'lex:com.atproto.repo.batchWrite#create',\n 'lex:com.atproto.repo.batchWrite#update',\n 'lex:com.atproto.repo.batchWrite#delete',\n ],\n closed: true,\n },\n },\n },\n },\n },\n },\n create: {\n type: 'object',\n required: ['action', 'collection', 'value'],\n properties: {\n action: {\n type: 'string',\n const: 'create',\n },\n collection: {\n type: 'string',\n },\n rkey: {\n type: 'string',\n },\n value: {\n type: 'unknown',\n },\n },\n },\n update: {\n type: 'object',\n required: ['action', 'collection', 'rkey', 'value'],\n properties: {\n action: {\n type: 'string',\n const: 'update',\n },\n collection: {\n type: 'string',\n },\n rkey: {\n type: 'string',\n },\n value: {\n type: 'unknown',\n },\n },\n },\n delete: {\n type: 'object',\n required: ['action', 'collection', 'rkey'],\n properties: {\n action: {\n type: 'string',\n const: 'delete',\n },\n collection: {\n type: 'string',\n },\n rkey: {\n type: 'string',\n },\n },\n },\n },\n },\n ComAtprotoRepoCreateRecord: {\n lexicon: 1,\n id: 'com.atproto.repo.createRecord',\n defs: {\n main: {\n type: 'procedure',\n description: 'Create a new record.',\n input: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['did', 'collection', 'record'],\n properties: {\n did: {\n type: 'string',\n description: 'The DID of the repo.',\n },\n collection: {\n type: 'string',\n description: 'The NSID of the record collection.',\n },\n validate: {\n type: 'boolean',\n default: true,\n description: 'Validate the record?',\n },\n record: {\n type: 'unknown',\n description: 'The record to create.',\n },\n },\n },\n },\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['uri', 'cid'],\n properties: {\n uri: {\n type: 'string',\n },\n cid: {\n type: 'string',\n },\n },\n },\n },\n },\n },\n },\n ComAtprotoRepoDeleteRecord: {\n lexicon: 1,\n id: 'com.atproto.repo.deleteRecord',\n defs: {\n main: {\n type: 'procedure',\n description: 'Delete a record.',\n input: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['did', 'collection', 'rkey'],\n properties: {\n did: {\n type: 'string',\n description: 'The DID of the repo.',\n },\n collection: {\n type: 'string',\n description: 'The NSID of the record collection.',\n },\n rkey: {\n type: 'string',\n description: 'The key of the record.',\n },\n },\n },\n },\n },\n },\n },\n ComAtprotoRepoDescribe: {\n lexicon: 1,\n id: 'com.atproto.repo.describe',\n defs: {\n main: {\n type: 'query',\n description:\n 'Get information about the repo, including the list of collections.',\n parameters: {\n type: 'params',\n required: ['user'],\n properties: {\n user: {\n type: 'string',\n description: 'The handle or DID of the repo.',\n },\n },\n },\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: [\n 'handle',\n 'did',\n 'didDoc',\n 'collections',\n 'handleIsCorrect',\n ],\n properties: {\n handle: {\n type: 'string',\n },\n did: {\n type: 'string',\n },\n didDoc: {\n type: 'unknown',\n },\n collections: {\n type: 'array',\n items: {\n type: 'string',\n },\n },\n handleIsCorrect: {\n type: 'boolean',\n },\n },\n },\n },\n },\n },\n },\n ComAtprotoRepoGetRecord: {\n lexicon: 1,\n id: 'com.atproto.repo.getRecord',\n defs: {\n main: {\n type: 'query',\n description: 'Fetch a record.',\n parameters: {\n type: 'params',\n required: ['user', 'collection', 'rkey'],\n properties: {\n user: {\n type: 'string',\n description: 'The handle or DID of the repo.',\n },\n collection: {\n type: 'string',\n description: 'The NSID of the collection.',\n },\n rkey: {\n type: 'string',\n description: 'The key of the record.',\n },\n cid: {\n type: 'string',\n description:\n 'The CID of the version of the record. If not specified, then return the most recent version.',\n },\n },\n },\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['uri', 'value'],\n properties: {\n uri: {\n type: 'string',\n },\n cid: {\n type: 'string',\n },\n value: {\n type: 'unknown',\n },\n },\n },\n },\n },\n },\n },\n ComAtprotoRepoListRecords: {\n lexicon: 1,\n id: 'com.atproto.repo.listRecords',\n defs: {\n main: {\n type: 'query',\n description: 'List a range of records in a collection.',\n parameters: {\n type: 'params',\n required: ['user', 'collection'],\n properties: {\n user: {\n type: 'string',\n description: 'The handle or DID of the repo.',\n },\n collection: {\n type: 'string',\n description: 'The NSID of the record type.',\n },\n limit: {\n type: 'integer',\n minimum: 1,\n maximum: 100,\n default: 50,\n description: 'The number of records to return.',\n },\n before: {\n type: 'string',\n description: 'A TID to filter the range of records returned.',\n },\n after: {\n type: 'string',\n description: 'A TID to filter the range of records returned.',\n },\n reverse: {\n type: 'boolean',\n description: 'Reverse the order of the returned records?',\n },\n },\n },\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['records'],\n properties: {\n cursor: {\n type: 'string',\n },\n records: {\n type: 'array',\n items: {\n type: 'ref',\n ref: 'lex:com.atproto.repo.listRecords#record',\n },\n },\n },\n },\n },\n },\n record: {\n type: 'object',\n required: ['uri', 'cid', 'value'],\n properties: {\n uri: {\n type: 'string',\n },\n cid: {\n type: 'string',\n },\n value: {\n type: 'unknown',\n },\n },\n },\n },\n },\n ComAtprotoRepoPutRecord: {\n lexicon: 1,\n id: 'com.atproto.repo.putRecord',\n defs: {\n main: {\n type: 'procedure',\n description: 'Write a record.',\n input: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['did', 'collection', 'rkey', 'record'],\n properties: {\n did: {\n type: 'string',\n description: 'The DID of the repo.',\n },\n collection: {\n type: 'string',\n description: 'The NSID of the record type.',\n },\n rkey: {\n type: 'string',\n description: 'The TID of the record.',\n },\n validate: {\n type: 'boolean',\n default: true,\n description: 'Validate the record?',\n },\n record: {\n type: 'unknown',\n description: 'The record to create.',\n },\n },\n },\n },\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['uri', 'cid'],\n properties: {\n uri: {\n type: 'string',\n },\n cid: {\n type: 'string',\n },\n },\n },\n },\n },\n },\n },\n ComAtprotoRepoStrongRef: {\n lexicon: 1,\n id: 'com.atproto.repo.strongRef',\n description: 'A URI with a content-hash fingerprint.',\n defs: {\n main: {\n type: 'object',\n required: ['uri', 'cid'],\n properties: {\n uri: {\n type: 'string',\n },\n cid: {\n type: 'string',\n },\n },\n },\n },\n },\n ComAtprotoServerGetAccountsConfig: {\n lexicon: 1,\n id: 'com.atproto.server.getAccountsConfig',\n defs: {\n main: {\n type: 'query',\n description:\n \"Get a document describing the service's accounts configuration.\",\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['availableUserDomains'],\n properties: {\n inviteCodeRequired: {\n type: 'boolean',\n },\n availableUserDomains: {\n type: 'array',\n items: {\n type: 'string',\n },\n },\n links: {\n type: 'ref',\n ref: 'lex:com.atproto.server.getAccountsConfig#links',\n },\n },\n },\n },\n },\n links: {\n type: 'object',\n properties: {\n privacyPolicy: {\n type: 'string',\n },\n termsOfService: {\n type: 'string',\n },\n },\n },\n },\n },\n ComAtprotoSessionCreate: {\n lexicon: 1,\n id: 'com.atproto.session.create',\n defs: {\n main: {\n type: 'procedure',\n description: 'Create an authentication session.',\n input: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['handle', 'password'],\n properties: {\n handle: {\n type: 'string',\n },\n password: {\n type: 'string',\n },\n },\n },\n },\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['accessJwt', 'refreshJwt', 'handle', 'did'],\n properties: {\n accessJwt: {\n type: 'string',\n },\n refreshJwt: {\n type: 'string',\n },\n handle: {\n type: 'string',\n },\n did: {\n type: 'string',\n },\n },\n },\n },\n },\n },\n },\n ComAtprotoSessionDelete: {\n lexicon: 1,\n id: 'com.atproto.session.delete',\n defs: {\n main: {\n type: 'procedure',\n description: 'Delete the current session.',\n },\n },\n },\n ComAtprotoSessionGet: {\n lexicon: 1,\n id: 'com.atproto.session.get',\n defs: {\n main: {\n type: 'query',\n description: 'Get information about the current session.',\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['handle', 'did'],\n properties: {\n handle: {\n type: 'string',\n },\n did: {\n type: 'string',\n },\n },\n },\n },\n },\n },\n },\n ComAtprotoSessionRefresh: {\n lexicon: 1,\n id: 'com.atproto.session.refresh',\n defs: {\n main: {\n type: 'procedure',\n description: 'Refresh an authentication session.',\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['accessJwt', 'refreshJwt', 'handle', 'did'],\n properties: {\n accessJwt: {\n type: 'string',\n },\n refreshJwt: {\n type: 'string',\n },\n handle: {\n type: 'string',\n },\n did: {\n type: 'string',\n },\n },\n },\n },\n },\n },\n },\n ComAtprotoSyncGetRepo: {\n lexicon: 1,\n id: 'com.atproto.sync.getRepo',\n defs: {\n main: {\n type: 'query',\n description: 'Gets the repo state.',\n parameters: {\n type: 'params',\n required: ['did'],\n properties: {\n did: {\n type: 'string',\n description: 'The DID of the repo.',\n },\n from: {\n type: 'string',\n description: 'A past commit CID.',\n },\n },\n },\n output: {\n encoding: 'application/cbor',\n },\n },\n },\n },\n ComAtprotoSyncGetRoot: {\n lexicon: 1,\n id: 'com.atproto.sync.getRoot',\n defs: {\n main: {\n type: 'query',\n description: 'Gets the current root CID of a repo.',\n parameters: {\n type: 'params',\n required: ['did'],\n properties: {\n did: {\n type: 'string',\n description: 'The DID of the repo.',\n },\n },\n },\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['root'],\n properties: {\n root: {\n type: 'string',\n },\n },\n },\n },\n },\n },\n },\n ComAtprotoSyncUpdateRepo: {\n lexicon: 1,\n id: 'com.atproto.sync.updateRepo',\n defs: {\n main: {\n type: 'procedure',\n description: 'Writes commits to a repo.',\n parameters: {\n type: 'params',\n required: ['did'],\n properties: {\n did: {\n type: 'string',\n description: 'The DID of the repo.',\n },\n },\n },\n input: {\n encoding: 'application/cbor',\n },\n },\n },\n },\n AppBskyActorCreateScene: {\n lexicon: 1,\n id: 'app.bsky.actor.createScene',\n defs: {\n main: {\n type: 'procedure',\n description: 'Create a scene.',\n input: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['handle'],\n properties: {\n handle: {\n type: 'string',\n },\n recoveryKey: {\n type: 'string',\n },\n },\n },\n },\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['handle', 'did', 'declaration'],\n properties: {\n handle: {\n type: 'string',\n },\n did: {\n type: 'string',\n },\n declaration: {\n type: 'ref',\n ref: 'lex:app.bsky.system.declRef',\n },\n },\n },\n },\n errors: [\n {\n name: 'InvalidHandle',\n },\n {\n name: 'HandleNotAvailable',\n },\n ],\n },\n },\n },\n AppBskyActorGetProfile: {\n lexicon: 1,\n id: 'app.bsky.actor.getProfile',\n defs: {\n main: {\n type: 'query',\n parameters: {\n type: 'params',\n required: ['actor'],\n properties: {\n actor: {\n type: 'string',\n },\n },\n },\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: [\n 'did',\n 'declaration',\n 'handle',\n 'creator',\n 'followersCount',\n 'followsCount',\n 'membersCount',\n 'postsCount',\n ],\n properties: {\n did: {\n type: 'string',\n },\n declaration: {\n type: 'ref',\n ref: 'lex:app.bsky.system.declRef',\n },\n handle: {\n type: 'string',\n },\n creator: {\n type: 'string',\n },\n displayName: {\n type: 'string',\n maxLength: 64,\n },\n description: {\n type: 'string',\n maxLength: 256,\n },\n avatar: {\n type: 'string',\n },\n banner: {\n type: 'string',\n },\n followersCount: {\n type: 'integer',\n },\n followsCount: {\n type: 'integer',\n },\n membersCount: {\n type: 'integer',\n },\n postsCount: {\n type: 'integer',\n },\n myState: {\n type: 'ref',\n ref: 'lex:app.bsky.actor.getProfile#myState',\n },\n },\n },\n },\n },\n myState: {\n type: 'object',\n properties: {\n follow: {\n type: 'string',\n },\n member: {\n type: 'string',\n },\n },\n },\n },\n },\n AppBskyActorGetSuggestions: {\n lexicon: 1,\n id: 'app.bsky.actor.getSuggestions',\n defs: {\n main: {\n type: 'query',\n description:\n 'Get a list of actors suggested for following. Used in discovery UIs.',\n parameters: {\n type: 'params',\n properties: {\n limit: {\n type: 'integer',\n minimum: 1,\n maximum: 100,\n default: 50,\n },\n cursor: {\n type: 'string',\n },\n },\n },\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['actors'],\n properties: {\n cursor: {\n type: 'string',\n },\n actors: {\n type: 'array',\n items: {\n type: 'ref',\n ref: 'lex:app.bsky.actor.getSuggestions#actor',\n },\n },\n },\n },\n },\n },\n actor: {\n type: 'object',\n required: ['did', 'declaration', 'handle'],\n properties: {\n did: {\n type: 'string',\n },\n declaration: {\n type: 'ref',\n ref: 'lex:app.bsky.system.declRef',\n },\n handle: {\n type: 'string',\n },\n displayName: {\n type: 'string',\n maxLength: 64,\n },\n description: {\n type: 'string',\n },\n avatar: {\n type: 'string',\n },\n indexedAt: {\n type: 'datetime',\n },\n myState: {\n type: 'ref',\n ref: 'lex:app.bsky.actor.getSuggestions#myState',\n },\n },\n },\n myState: {\n type: 'object',\n properties: {\n follow: {\n type: 'string',\n },\n },\n },\n },\n },\n AppBskyActorProfile: {\n lexicon: 1,\n id: 'app.bsky.actor.profile',\n defs: {\n main: {\n type: 'record',\n key: 'literal:self',\n record: {\n type: 'object',\n required: ['displayName'],\n properties: {\n displayName: {\n type: 'string',\n maxLength: 64,\n },\n description: {\n type: 'string',\n maxLength: 256,\n },\n avatar: {\n type: 'image',\n accept: ['image/png', 'image/jpeg'],\n maxWidth: 500,\n maxHeight: 500,\n maxSize: 300000,\n },\n banner: {\n type: 'image',\n accept: ['image/png', 'image/jpeg'],\n maxWidth: 1500,\n maxHeight: 500,\n maxSize: 500000,\n },\n },\n },\n },\n },\n },\n AppBskyActorRef: {\n lexicon: 1,\n id: 'app.bsky.actor.ref',\n description: 'A reference to an actor in the network.',\n defs: {\n main: {\n type: 'object',\n required: ['did', 'declarationCid'],\n properties: {\n did: {\n type: 'string',\n },\n declarationCid: {\n type: 'string',\n },\n },\n },\n withInfo: {\n type: 'object',\n required: ['did', 'declaration', 'handle'],\n properties: {\n did: {\n type: 'string',\n },\n declaration: {\n type: 'ref',\n ref: 'lex:app.bsky.system.declRef',\n },\n handle: {\n type: 'string',\n },\n displayName: {\n type: 'string',\n maxLength: 64,\n },\n avatar: {\n type: 'string',\n },\n },\n },\n },\n },\n AppBskyActorSearch: {\n lexicon: 1,\n id: 'app.bsky.actor.search',\n defs: {\n main: {\n type: 'query',\n description: 'Find users matching search criteria.',\n parameters: {\n type: 'params',\n required: ['term'],\n properties: {\n term: {\n type: 'string',\n },\n limit: {\n type: 'integer',\n minimum: 1,\n maximum: 100,\n default: 50,\n },\n before: {\n type: 'string',\n },\n },\n },\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['users'],\n properties: {\n cursor: {\n type: 'string',\n },\n users: {\n type: 'array',\n items: {\n type: 'ref',\n ref: 'lex:app.bsky.actor.search#user',\n },\n },\n },\n },\n },\n },\n user: {\n type: 'object',\n required: ['did', 'declaration', 'handle'],\n properties: {\n did: {\n type: 'string',\n },\n declaration: {\n type: 'ref',\n ref: 'lex:app.bsky.system.declRef',\n },\n handle: {\n type: 'string',\n },\n displayName: {\n type: 'string',\n maxLength: 64,\n },\n avatar: {\n type: 'string',\n },\n description: {\n type: 'string',\n },\n indexedAt: {\n type: 'datetime',\n },\n },\n },\n },\n },\n AppBskyActorSearchTypeahead: {\n lexicon: 1,\n id: 'app.bsky.actor.searchTypeahead',\n defs: {\n main: {\n type: 'query',\n description: 'Find user suggestions for a search term.',\n parameters: {\n type: 'params',\n required: ['term'],\n properties: {\n term: {\n type: 'string',\n },\n limit: {\n type: 'integer',\n minimum: 1,\n maximum: 100,\n default: 50,\n },\n },\n },\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['users'],\n properties: {\n users: {\n type: 'array',\n items: {\n type: 'ref',\n ref: 'lex:app.bsky.actor.searchTypeahead#user',\n },\n },\n },\n },\n },\n },\n user: {\n type: 'object',\n required: ['did', 'declaration', 'handle'],\n properties: {\n did: {\n type: 'string',\n },\n declaration: {\n type: 'ref',\n ref: 'lex:app.bsky.system.declRef',\n },\n handle: {\n type: 'string',\n },\n displayName: {\n type: 'string',\n maxLength: 64,\n },\n avatar: {\n type: 'string',\n },\n },\n },\n },\n },\n AppBskyActorUpdateProfile: {\n lexicon: 1,\n id: 'app.bsky.actor.updateProfile',\n defs: {\n main: {\n type: 'procedure',\n description: 'Notify server that the user has seen notifications.',\n input: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n properties: {\n did: {\n type: 'string',\n },\n displayName: {\n type: 'string',\n maxLength: 64,\n },\n description: {\n type: 'string',\n maxLength: 256,\n },\n avatar: {\n type: 'image',\n accept: ['image/png', 'image/jpeg'],\n maxWidth: 500,\n maxHeight: 500,\n maxSize: 100000,\n },\n banner: {\n type: 'image',\n accept: ['image/png', 'image/jpeg'],\n maxWidth: 1500,\n maxHeight: 500,\n maxSize: 500000,\n },\n },\n },\n },\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['uri', 'cid', 'record'],\n properties: {\n uri: {\n type: 'string',\n },\n cid: {\n type: 'string',\n },\n record: {\n type: 'unknown',\n },\n },\n },\n },\n errors: [\n {\n name: 'InvalidBlob',\n },\n {\n name: 'BlobTooLarge',\n },\n {\n name: 'InvalidMimeType',\n },\n {\n name: 'InvalidImageDimensions',\n },\n ],\n },\n },\n },\n AppBskyEmbedExternal: {\n lexicon: 1,\n id: 'app.bsky.embed.external',\n description:\n 'An representation of some externally linked content, embedded in another form of content',\n defs: {\n main: {\n type: 'object',\n required: ['external'],\n properties: {\n external: {\n type: 'ref',\n ref: 'lex:app.bsky.embed.external#external',\n },\n },\n },\n external: {\n type: 'object',\n required: ['uri', 'title', 'description'],\n properties: {\n uri: {\n type: 'string',\n },\n title: {\n type: 'string',\n },\n description: {\n type: 'string',\n },\n thumb: {\n type: 'image',\n accept: ['image/*'],\n maxWidth: 250,\n maxHeight: 250,\n maxSize: 100000,\n },\n },\n },\n presented: {\n type: 'object',\n required: ['external'],\n properties: {\n external: {\n type: 'ref',\n ref: 'lex:app.bsky.embed.external#presentedExternal',\n },\n },\n },\n presentedExternal: {\n type: 'object',\n required: ['uri', 'title', 'description'],\n properties: {\n uri: {\n type: 'string',\n },\n title: {\n type: 'string',\n },\n description: {\n type: 'string',\n },\n thumb: {\n type: 'string',\n },\n },\n },\n },\n },\n AppBskyEmbedImages: {\n lexicon: 1,\n id: 'app.bsky.embed.images',\n description: 'A set of images embedded in some other form of content',\n defs: {\n main: {\n type: 'object',\n required: ['images'],\n properties: {\n images: {\n type: 'array',\n items: {\n type: 'ref',\n ref: 'lex:app.bsky.embed.images#image',\n },\n maxLength: 4,\n },\n },\n },\n image: {\n type: 'object',\n required: ['image', 'alt'],\n properties: {\n image: {\n type: 'image',\n accept: ['image/*'],\n maxWidth: 500,\n maxHeight: 500,\n maxSize: 300000,\n },\n alt: {\n type: 'string',\n },\n },\n },\n presented: {\n type: 'object',\n required: ['images'],\n properties: {\n images: {\n type: 'array',\n items: {\n type: 'ref',\n ref: 'lex:app.bsky.embed.images#presentedImage',\n },\n maxLength: 4,\n },\n },\n },\n presentedImage: {\n type: 'object',\n required: ['thumb', 'fullsize', 'alt'],\n properties: {\n thumb: {\n type: 'string',\n },\n fullsize: {\n type: 'string',\n },\n alt: {\n type: 'string',\n },\n },\n },\n },\n },\n AppBskyFeedFeedViewPost: {\n lexicon: 1,\n id: 'app.bsky.feed.feedViewPost',\n defs: {\n main: {\n type: 'object',\n required: ['post'],\n properties: {\n post: {\n type: 'ref',\n ref: 'lex:app.bsky.feed.post#view',\n },\n reply: {\n type: 'ref',\n ref: 'lex:app.bsky.feed.feedViewPost#replyRef',\n },\n reason: {\n type: 'union',\n refs: [\n 'lex:app.bsky.feed.feedViewPost#reasonTrend',\n 'lex:app.bsky.feed.feedViewPost#reasonRepost',\n ],\n },\n },\n },\n replyRef: {\n type: 'object',\n required: ['root', 'parent'],\n properties: {\n root: {\n type: 'ref',\n ref: 'lex:app.bsky.feed.post#view',\n },\n parent: {\n type: 'ref',\n ref: 'lex:app.bsky.feed.post#view',\n },\n },\n },\n reasonTrend: {\n type: 'object',\n required: ['by', 'indexedAt'],\n properties: {\n by: {\n type: 'ref',\n ref: 'lex:app.bsky.actor.ref#withInfo',\n },\n indexedAt: {\n type: 'datetime',\n },\n },\n },\n reasonRepost: {\n type: 'object',\n required: ['by', 'indexedAt'],\n properties: {\n by: {\n type: 'ref',\n ref: 'lex:app.bsky.actor.ref#withInfo',\n },\n indexedAt: {\n type: 'datetime',\n },\n },\n },\n },\n },\n AppBskyFeedGetAuthorFeed: {\n lexicon: 1,\n id: 'app.bsky.feed.getAuthorFeed',\n defs: {\n main: {\n type: 'query',\n description: \"A view of a user's feed.\",\n parameters: {\n type: 'params',\n required: ['author'],\n properties: {\n author: {\n type: 'string',\n },\n limit: {\n type: 'integer',\n minimum: 1,\n maximum: 100,\n default: 50,\n },\n before: {\n type: 'string',\n },\n },\n },\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['feed'],\n properties: {\n cursor: {\n type: 'string',\n },\n feed: {\n type: 'array',\n items: {\n type: 'ref',\n ref: 'lex:app.bsky.feed.feedViewPost',\n },\n },\n },\n },\n },\n },\n },\n },\n AppBskyFeedGetPostThread: {\n lexicon: 1,\n id: 'app.bsky.feed.getPostThread',\n defs: {\n main: {\n type: 'query',\n parameters: {\n type: 'params',\n required: ['uri'],\n properties: {\n uri: {\n type: 'string',\n },\n depth: {\n type: 'integer',\n },\n },\n },\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['thread'],\n properties: {\n thread: {\n type: 'union',\n refs: [\n 'lex:app.bsky.feed.getPostThread#threadViewPost',\n 'lex:app.bsky.feed.getPostThread#notFoundPost',\n ],\n },\n },\n },\n },\n errors: [\n {\n name: 'NotFound',\n },\n ],\n },\n threadViewPost: {\n type: 'object',\n required: ['post'],\n properties: {\n post: {\n type: 'ref',\n ref: 'lex:app.bsky.feed.post#view',\n },\n parent: {\n type: 'union',\n refs: [\n 'lex:app.bsky.feed.getPostThread#threadViewPost',\n 'lex:app.bsky.feed.getPostThread#notFoundPost',\n ],\n },\n replies: {\n type: 'array',\n items: {\n type: 'union',\n refs: [\n 'lex:app.bsky.feed.getPostThread#threadViewPost',\n 'lex:app.bsky.feed.getPostThread#notFoundPost',\n ],\n },\n },\n },\n },\n notFoundPost: {\n type: 'object',\n required: ['uri', 'notFound'],\n properties: {\n uri: {\n type: 'string',\n },\n notFound: {\n type: 'boolean',\n const: true,\n },\n },\n },\n },\n },\n AppBskyFeedGetRepostedBy: {\n lexicon: 1,\n id: 'app.bsky.feed.getRepostedBy',\n defs: {\n main: {\n type: 'query',\n parameters: {\n type: 'params',\n required: ['uri'],\n properties: {\n uri: {\n type: 'string',\n },\n cid: {\n type: 'string',\n },\n limit: {\n type: 'integer',\n minimum: 1,\n maximum: 100,\n default: 50,\n },\n before: {\n type: 'string',\n },\n },\n },\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['uri', 'repostedBy'],\n properties: {\n uri: {\n type: 'string',\n },\n cid: {\n type: 'string',\n },\n cursor: {\n type: 'string',\n },\n repostedBy: {\n type: 'array',\n items: {\n type: 'ref',\n ref: 'lex:app.bsky.feed.getRepostedBy#repostedBy',\n },\n },\n },\n },\n },\n },\n repostedBy: {\n type: 'object',\n required: ['did', 'declaration', 'handle', 'indexedAt'],\n properties: {\n did: {\n type: 'string',\n },\n declaration: {\n type: 'ref',\n ref: 'lex:app.bsky.system.declRef',\n },\n handle: {\n type: 'string',\n },\n displayName: {\n type: 'string',\n maxLength: 64,\n },\n avatar: {\n type: 'string',\n },\n createdAt: {\n type: 'datetime',\n },\n indexedAt: {\n type: 'datetime',\n },\n },\n },\n },\n },\n AppBskyFeedGetTimeline: {\n lexicon: 1,\n id: 'app.bsky.feed.getTimeline',\n defs: {\n main: {\n type: 'query',\n description: \"A view of the user's home timeline.\",\n parameters: {\n type: 'params',\n properties: {\n algorithm: {\n type: 'string',\n },\n limit: {\n type: 'integer',\n minimum: 1,\n maximum: 100,\n default: 50,\n },\n before: {\n type: 'string',\n },\n },\n },\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['feed'],\n properties: {\n cursor: {\n type: 'string',\n },\n feed: {\n type: 'array',\n items: {\n type: 'ref',\n ref: 'lex:app.bsky.feed.feedViewPost',\n },\n },\n },\n },\n },\n },\n },\n },\n AppBskyFeedGetVotes: {\n lexicon: 1,\n id: 'app.bsky.feed.getVotes',\n defs: {\n main: {\n type: 'query',\n parameters: {\n type: 'params',\n required: ['uri'],\n properties: {\n uri: {\n type: 'string',\n },\n cid: {\n type: 'string',\n },\n direction: {\n type: 'string',\n enum: ['up', 'down'],\n },\n limit: {\n type: 'integer',\n minimum: 1,\n maximum: 100,\n default: 50,\n },\n before: {\n type: 'string',\n },\n },\n },\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['uri', 'votes'],\n properties: {\n uri: {\n type: 'string',\n },\n cid: {\n type: 'string',\n },\n cursor: {\n type: 'string',\n },\n votes: {\n type: 'array',\n items: {\n type: 'ref',\n ref: 'lex:app.bsky.feed.getVotes#vote',\n },\n },\n },\n },\n },\n },\n vote: {\n type: 'object',\n required: ['direction', 'indexedAt', 'createdAt', 'actor'],\n properties: {\n direction: {\n type: 'string',\n enum: ['up', 'down'],\n },\n indexedAt: {\n type: 'datetime',\n },\n createdAt: {\n type: 'datetime',\n },\n actor: {\n type: 'ref',\n ref: 'lex:app.bsky.actor.ref#withInfo',\n },\n },\n },\n },\n },\n AppBskyFeedPost: {\n lexicon: 1,\n id: 'app.bsky.feed.post',\n defs: {\n main: {\n type: 'record',\n key: 'tid',\n record: {\n type: 'object',\n required: ['text', 'createdAt'],\n properties: {\n text: {\n type: 'string',\n maxLength: 256,\n },\n entities: {\n type: 'array',\n items: {\n type: 'ref',\n ref: 'lex:app.bsky.feed.post#entity',\n },\n },\n reply: {\n type: 'ref',\n ref: 'lex:app.bsky.feed.post#replyRef',\n },\n embed: {\n type: 'union',\n refs: [\n 'lex:app.bsky.embed.images',\n 'lex:app.bsky.embed.external',\n ],\n },\n createdAt: {\n type: 'datetime',\n },\n },\n },\n },\n replyRef: {\n type: 'object',\n required: ['root', 'parent'],\n properties: {\n root: {\n type: 'ref',\n ref: 'lex:com.atproto.repo.strongRef',\n },\n parent: {\n type: 'ref',\n ref: 'lex:com.atproto.repo.strongRef',\n },\n },\n },\n entity: {\n type: 'object',\n required: ['index', 'type', 'value'],\n properties: {\n index: {\n type: 'ref',\n ref: 'lex:app.bsky.feed.post#textSlice',\n },\n type: {\n type: 'string',\n description:\n \"Expected values are 'mention', 'hashtag', and 'link'.\",\n },\n value: {\n type: 'string',\n },\n },\n },\n textSlice: {\n type: 'object',\n required: ['start', 'end'],\n properties: {\n start: {\n type: 'integer',\n minimum: 0,\n },\n end: {\n type: 'integer',\n minimum: 0,\n },\n },\n },\n view: {\n type: 'object',\n required: [\n 'uri',\n 'cid',\n 'author',\n 'record',\n 'replyCount',\n 'repostCount',\n 'upvoteCount',\n 'downvoteCount',\n 'indexedAt',\n 'viewer',\n ],\n properties: {\n uri: {\n type: 'string',\n },\n cid: {\n type: 'string',\n },\n author: {\n type: 'ref',\n ref: 'lex:app.bsky.actor.ref#withInfo',\n },\n record: {\n type: 'unknown',\n },\n embed: {\n type: 'union',\n refs: [\n 'lex:app.bsky.embed.images#presented',\n 'lex:app.bsky.embed.external#presented',\n ],\n },\n replyCount: {\n type: 'integer',\n },\n repostCount: {\n type: 'integer',\n },\n upvoteCount: {\n type: 'integer',\n },\n downvoteCount: {\n type: 'integer',\n },\n indexedAt: {\n type: 'datetime',\n },\n viewer: {\n type: 'ref',\n ref: 'lex:app.bsky.feed.post#viewerState',\n },\n },\n },\n viewerState: {\n type: 'object',\n properties: {\n repost: {\n type: 'string',\n },\n upvote: {\n type: 'string',\n },\n downvote: {\n type: 'string',\n },\n },\n },\n },\n },\n AppBskyFeedRepost: {\n lexicon: 1,\n id: 'app.bsky.feed.repost',\n defs: {\n main: {\n type: 'record',\n key: 'tid',\n record: {\n type: 'object',\n required: ['subject', 'createdAt'],\n properties: {\n subject: {\n type: 'ref',\n ref: 'lex:com.atproto.repo.strongRef',\n },\n createdAt: {\n type: 'datetime',\n },\n },\n },\n },\n },\n },\n AppBskyFeedSetVote: {\n lexicon: 1,\n id: 'app.bsky.feed.setVote',\n defs: {\n main: {\n type: 'procedure',\n description: \"Upvote, downvote, or clear the user's vote for a post.\",\n input: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['subject', 'direction'],\n properties: {\n subject: {\n type: 'ref',\n ref: 'lex:com.atproto.repo.strongRef',\n },\n direction: {\n type: 'string',\n enum: ['up', 'down', 'none'],\n },\n },\n },\n },\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n properties: {\n upvote: {\n type: 'string',\n },\n downvote: {\n type: 'string',\n },\n },\n },\n },\n },\n },\n },\n AppBskyFeedTrend: {\n lexicon: 1,\n id: 'app.bsky.feed.trend',\n defs: {\n main: {\n type: 'record',\n key: 'tid',\n record: {\n type: 'object',\n required: ['subject', 'createdAt'],\n properties: {\n subject: {\n type: 'ref',\n ref: 'lex:com.atproto.repo.strongRef',\n },\n createdAt: {\n type: 'datetime',\n },\n },\n },\n },\n },\n },\n AppBskyFeedVote: {\n lexicon: 1,\n id: 'app.bsky.feed.vote',\n defs: {\n main: {\n type: 'record',\n key: 'tid',\n record: {\n type: 'object',\n required: ['subject', 'direction', 'createdAt'],\n properties: {\n subject: {\n type: 'ref',\n ref: 'lex:com.atproto.repo.strongRef',\n },\n direction: {\n type: 'string',\n enum: ['up', 'down'],\n },\n createdAt: {\n type: 'datetime',\n },\n },\n },\n },\n },\n },\n AppBskyGraphAssertCreator: {\n lexicon: 1,\n id: 'app.bsky.graph.assertCreator',\n defs: {\n main: {\n type: 'token',\n description:\n \"Assertion type: Creator. Defined for app.bsky.graph.assertions's assertion.\",\n },\n },\n },\n AppBskyGraphAssertMember: {\n lexicon: 1,\n id: 'app.bsky.graph.assertMember',\n defs: {\n main: {\n type: 'token',\n description:\n \"Assertion type: Member. Defined for app.bsky.graph.assertions's assertion.\",\n },\n },\n },\n AppBskyGraphAssertion: {\n lexicon: 1,\n id: 'app.bsky.graph.assertion',\n defs: {\n main: {\n type: 'record',\n key: 'tid',\n record: {\n type: 'object',\n required: ['assertion', 'subject', 'createdAt'],\n properties: {\n assertion: {\n type: 'string',\n },\n subject: {\n type: 'ref',\n ref: 'lex:app.bsky.actor.ref',\n },\n createdAt: {\n type: 'datetime',\n },\n },\n },\n },\n },\n },\n AppBskyGraphConfirmation: {\n lexicon: 1,\n id: 'app.bsky.graph.confirmation',\n defs: {\n main: {\n type: 'record',\n key: 'tid',\n record: {\n type: 'object',\n required: ['originator', 'assertion', 'createdAt'],\n properties: {\n originator: {\n type: 'ref',\n ref: 'lex:app.bsky.actor.ref',\n },\n assertion: {\n type: 'ref',\n ref: 'lex:com.atproto.repo.strongRef',\n },\n createdAt: {\n type: 'datetime',\n },\n },\n },\n },\n },\n },\n AppBskyGraphFollow: {\n lexicon: 1,\n id: 'app.bsky.graph.follow',\n defs: {\n main: {\n type: 'record',\n description: 'A social follow.',\n key: 'tid',\n record: {\n type: 'object',\n required: ['subject', 'createdAt'],\n properties: {\n subject: {\n type: 'ref',\n ref: 'lex:app.bsky.actor.ref',\n },\n createdAt: {\n type: 'datetime',\n },\n },\n },\n },\n },\n },\n AppBskyGraphGetAssertions: {\n lexicon: 1,\n id: 'app.bsky.graph.getAssertions',\n defs: {\n main: {\n type: 'query',\n description: 'General-purpose query for assertions.',\n parameters: {\n type: 'params',\n properties: {\n author: {\n type: 'string',\n },\n subject: {\n type: 'string',\n },\n assertion: {\n type: 'string',\n },\n confirmed: {\n type: 'boolean',\n },\n limit: {\n type: 'integer',\n minimum: 1,\n maximum: 100,\n default: 50,\n },\n before: {\n type: 'string',\n },\n },\n },\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['assertions'],\n properties: {\n cursor: {\n type: 'string',\n },\n assertions: {\n type: 'array',\n items: {\n type: 'ref',\n ref: 'lex:app.bsky.graph.getAssertions#assertion',\n },\n },\n },\n },\n },\n },\n assertion: {\n type: 'object',\n required: [\n 'uri',\n 'cid',\n 'assertion',\n 'author',\n 'subject',\n 'indexedAt',\n 'createdAt',\n ],\n properties: {\n uri: {\n type: 'string',\n },\n cid: {\n type: 'string',\n },\n assertion: {\n type: 'string',\n },\n confirmation: {\n type: 'ref',\n ref: 'lex:app.bsky.graph.getAssertions#confirmation',\n },\n author: {\n type: 'ref',\n ref: 'lex:app.bsky.actor.ref#withInfo',\n },\n subject: {\n type: 'ref',\n ref: 'lex:app.bsky.actor.ref#withInfo',\n },\n indexedAt: {\n type: 'datetime',\n },\n createdAt: {\n type: 'datetime',\n },\n },\n },\n confirmation: {\n type: 'object',\n required: ['uri', 'cid', 'indexedAt', 'createdAt'],\n properties: {\n uri: {\n type: 'string',\n },\n cid: {\n type: 'string',\n },\n indexedAt: {\n type: 'datetime',\n },\n createdAt: {\n type: 'datetime',\n },\n },\n },\n },\n },\n AppBskyGraphGetFollowers: {\n lexicon: 1,\n id: 'app.bsky.graph.getFollowers',\n defs: {\n main: {\n type: 'query',\n description: 'Who is following a user?',\n parameters: {\n type: 'params',\n required: ['user'],\n properties: {\n user: {\n type: 'string',\n },\n limit: {\n type: 'integer',\n minimum: 1,\n maximum: 100,\n default: 50,\n },\n before: {\n type: 'string',\n },\n },\n },\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['subject', 'followers'],\n properties: {\n subject: {\n type: 'ref',\n ref: 'lex:app.bsky.actor.ref#withInfo',\n },\n cursor: {\n type: 'string',\n },\n followers: {\n type: 'array',\n items: {\n type: 'ref',\n ref: 'lex:app.bsky.graph.getFollowers#follower',\n },\n },\n },\n },\n },\n },\n follower: {\n type: 'object',\n required: ['did', 'declaration', 'handle', 'indexedAt'],\n properties: {\n did: {\n type: 'string',\n },\n declaration: {\n type: 'ref',\n ref: 'lex:app.bsky.system.declRef',\n },\n handle: {\n type: 'string',\n },\n displayName: {\n type: 'string',\n maxLength: 64,\n },\n avatar: {\n type: 'string',\n },\n createdAt: {\n type: 'datetime',\n },\n indexedAt: {\n type: 'datetime',\n },\n },\n },\n },\n },\n AppBskyGraphGetFollows: {\n lexicon: 1,\n id: 'app.bsky.graph.getFollows',\n defs: {\n main: {\n type: 'query',\n description: 'Who is a user following?',\n parameters: {\n type: 'params',\n required: ['user'],\n properties: {\n user: {\n type: 'string',\n },\n limit: {\n type: 'integer',\n minimum: 1,\n maximum: 100,\n default: 50,\n },\n before: {\n type: 'string',\n },\n },\n },\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['subject', 'follows'],\n properties: {\n subject: {\n type: 'ref',\n ref: 'lex:app.bsky.actor.ref#withInfo',\n },\n cursor: {\n type: 'string',\n },\n follows: {\n type: 'array',\n items: {\n type: 'ref',\n ref: 'lex:app.bsky.graph.getFollows#follow',\n },\n },\n },\n },\n },\n },\n follow: {\n type: 'object',\n required: ['did', 'declaration', 'handle', 'indexedAt'],\n properties: {\n did: {\n type: 'string',\n },\n declaration: {\n type: 'ref',\n ref: 'lex:app.bsky.system.declRef',\n },\n handle: {\n type: 'string',\n },\n displayName: {\n type: 'string',\n maxLength: 64,\n },\n createdAt: {\n type: 'datetime',\n },\n indexedAt: {\n type: 'datetime',\n },\n },\n },\n },\n },\n AppBskyGraphGetMembers: {\n lexicon: 1,\n id: 'app.bsky.graph.getMembers',\n defs: {\n main: {\n type: 'query',\n description: 'Who is a member of the group?',\n parameters: {\n type: 'params',\n required: ['actor'],\n properties: {\n actor: {\n type: 'string',\n },\n limit: {\n type: 'integer',\n minimum: 1,\n maximum: 100,\n default: 50,\n },\n before: {\n type: 'string',\n },\n },\n },\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['subject', 'members'],\n properties: {\n subject: {\n type: 'ref',\n ref: 'lex:app.bsky.actor.ref#withInfo',\n },\n cursor: {\n type: 'string',\n },\n members: {\n type: 'array',\n items: {\n type: 'ref',\n ref: 'lex:app.bsky.graph.getMembers#member',\n },\n },\n },\n },\n },\n },\n member: {\n type: 'object',\n required: ['did', 'declaration', 'handle', 'indexedAt'],\n properties: {\n did: {\n type: 'string',\n },\n declaration: {\n type: 'ref',\n ref: 'lex:app.bsky.system.declRef',\n },\n handle: {\n type: 'string',\n },\n displayName: {\n type: 'string',\n maxLength: 64,\n },\n createdAt: {\n type: 'datetime',\n },\n indexedAt: {\n type: 'datetime',\n },\n },\n },\n },\n },\n AppBskyGraphGetMemberships: {\n lexicon: 1,\n id: 'app.bsky.graph.getMemberships',\n defs: {\n main: {\n type: 'query',\n description: 'Which groups is the actor a member of?',\n parameters: {\n type: 'params',\n required: ['actor'],\n properties: {\n actor: {\n type: 'string',\n },\n limit: {\n type: 'integer',\n minimum: 1,\n maximum: 100,\n default: 50,\n },\n before: {\n type: 'string',\n },\n },\n },\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['subject', 'memberships'],\n properties: {\n subject: {\n type: 'ref',\n ref: 'lex:app.bsky.actor.ref#withInfo',\n },\n cursor: {\n type: 'string',\n },\n memberships: {\n type: 'array',\n items: {\n type: 'ref',\n ref: 'lex:app.bsky.graph.getMemberships#membership',\n },\n },\n },\n },\n },\n },\n membership: {\n type: 'object',\n required: ['did', 'declaration', 'handle', 'indexedAt'],\n properties: {\n did: {\n type: 'string',\n },\n declaration: {\n type: 'ref',\n ref: 'lex:app.bsky.system.declRef',\n },\n handle: {\n type: 'string',\n },\n displayName: {\n type: 'string',\n maxLength: 64,\n },\n createdAt: {\n type: 'datetime',\n },\n indexedAt: {\n type: 'datetime',\n },\n },\n },\n },\n },\n AppBskyNotificationGetCount: {\n lexicon: 1,\n id: 'app.bsky.notification.getCount',\n defs: {\n main: {\n type: 'query',\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['count'],\n properties: {\n count: {\n type: 'integer',\n },\n },\n },\n },\n },\n },\n },\n AppBskyNotificationList: {\n lexicon: 1,\n id: 'app.bsky.notification.list',\n defs: {\n main: {\n type: 'query',\n parameters: {\n type: 'params',\n properties: {\n limit: {\n type: 'integer',\n minimum: 1,\n maximum: 100,\n default: 50,\n },\n before: {\n type: 'string',\n },\n },\n },\n output: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['notifications'],\n properties: {\n cursor: {\n type: 'string',\n },\n notifications: {\n type: 'array',\n items: {\n type: 'ref',\n ref: 'lex:app.bsky.notification.list#notification',\n },\n },\n },\n },\n },\n },\n notification: {\n type: 'object',\n required: [\n 'uri',\n 'cid',\n 'author',\n 'reason',\n 'record',\n 'isRead',\n 'indexedAt',\n ],\n properties: {\n uri: {\n type: 'string',\n },\n cid: {\n type: 'string',\n },\n author: {\n type: 'ref',\n ref: 'lex:app.bsky.actor.ref#withInfo',\n },\n reason: {\n type: 'string',\n description:\n \"Expected values are 'vote', 'repost', 'trend', 'follow', 'invite', 'mention' and 'reply'.\",\n knownValues: [\n 'vote',\n 'repost',\n 'trend',\n 'follow',\n 'invite',\n 'mention',\n 'reply',\n ],\n },\n reasonSubject: {\n type: 'string',\n },\n record: {\n type: 'unknown',\n },\n isRead: {\n type: 'boolean',\n },\n indexedAt: {\n type: 'datetime',\n },\n },\n },\n },\n },\n AppBskyNotificationUpdateSeen: {\n lexicon: 1,\n id: 'app.bsky.notification.updateSeen',\n defs: {\n main: {\n type: 'procedure',\n description: 'Notify server that the user has seen notifications.',\n input: {\n encoding: 'application/json',\n schema: {\n type: 'object',\n required: ['seenAt'],\n properties: {\n seenAt: {\n type: 'datetime',\n },\n },\n },\n },\n },\n },\n },\n AppBskySystemActorScene: {\n lexicon: 1,\n id: 'app.bsky.system.actorScene',\n defs: {\n main: {\n type: 'token',\n description:\n \"Actor type: Scene. Defined for app.bsky.system.declaration's actorType.\",\n },\n },\n },\n AppBskySystemActorUser: {\n lexicon: 1,\n id: 'app.bsky.system.actorUser',\n defs: {\n main: {\n type: 'token',\n description:\n \"Actor type: User. Defined for app.bsky.system.declaration's actorType.\",\n },\n },\n },\n AppBskySystemDeclRef: {\n lexicon: 1,\n id: 'app.bsky.system.declRef',\n defs: {\n main: {\n description: 'A reference to a app.bsky.system.declaration record.',\n type: 'object',\n required: ['cid', 'actorType'],\n properties: {\n cid: {\n type: 'string',\n },\n actorType: {\n type: 'string',\n knownValues: [\n 'app.bsky.system.actorUser',\n 'app.bsky.system.actorScene',\n ],\n },\n },\n },\n },\n },\n AppBskySystemDeclaration: {\n lexicon: 1,\n id: 'app.bsky.system.declaration',\n defs: {\n main: {\n description:\n 'Context for an account that is considered intrinsic to it and alters the fundamental understanding of an account of changed. A declaration should be treated as immutable.',\n type: 'record',\n key: 'literal:self',\n record: {\n type: 'object',\n required: ['actorType'],\n properties: {\n actorType: {\n type: 'string',\n knownValues: [\n 'app.bsky.system.actorUser',\n 'app.bsky.system.actorScene',\n ],\n },\n },\n },\n },\n },\n },\n}\nexport const schemas: LexiconDoc[] = Object.values(schemaDict) as LexiconDoc[]\nexport const lexicons: Lexicons = new Lexicons(schemas)\nexport const ids = {\n ComAtprotoAccountCreate: 'com.atproto.account.create',\n ComAtprotoAccountCreateInviteCode: 'com.atproto.account.createInviteCode',\n ComAtprotoAccountDelete: 'com.atproto.account.delete',\n ComAtprotoAccountGet: 'com.atproto.account.get',\n ComAtprotoAccountRequestPasswordReset:\n 'com.atproto.account.requestPasswordReset',\n ComAtprotoAccountResetPassword: 'com.atproto.account.resetPassword',\n ComAtprotoBlobUpload: 'com.atproto.blob.upload',\n ComAtprotoHandleResolve: 'com.atproto.handle.resolve',\n ComAtprotoRepoBatchWrite: 'com.atproto.repo.batchWrite',\n ComAtprotoRepoCreateRecord: 'com.atproto.repo.createRecord',\n ComAtprotoRepoDeleteRecord: 'com.atproto.repo.deleteRecord',\n ComAtprotoRepoDescribe: 'com.atproto.repo.describe',\n ComAtprotoRepoGetRecord: 'com.atproto.repo.getRecord',\n ComAtprotoRepoListRecords: 'com.atproto.repo.listRecords',\n ComAtprotoRepoPutRecord: 'com.atproto.repo.putRecord',\n ComAtprotoRepoStrongRef: 'com.atproto.repo.strongRef',\n ComAtprotoServerGetAccountsConfig: 'com.atproto.server.getAccountsConfig',\n ComAtprotoSessionCreate: 'com.atproto.session.create',\n ComAtprotoSessionDelete: 'com.atproto.session.delete',\n ComAtprotoSessionGet: 'com.atproto.session.get',\n ComAtprotoSessionRefresh: 'com.atproto.session.refresh',\n ComAtprotoSyncGetRepo: 'com.atproto.sync.getRepo',\n ComAtprotoSyncGetRoot: 'com.atproto.sync.getRoot',\n ComAtprotoSyncUpdateRepo: 'com.atproto.sync.updateRepo',\n AppBskyActorCreateScene: 'app.bsky.actor.createScene',\n AppBskyActorGetProfile: 'app.bsky.actor.getProfile',\n AppBskyActorGetSuggestions: 'app.bsky.actor.getSuggestions',\n AppBskyActorProfile: 'app.bsky.actor.profile',\n AppBskyActorRef: 'app.bsky.actor.ref',\n AppBskyActorSearch: 'app.bsky.actor.search',\n AppBskyActorSearchTypeahead: 'app.bsky.actor.searchTypeahead',\n AppBskyActorUpdateProfile: 'app.bsky.actor.updateProfile',\n AppBskyEmbedExternal: 'app.bsky.embed.external',\n AppBskyEmbedImages: 'app.bsky.embed.images',\n AppBskyFeedFeedViewPost: 'app.bsky.feed.feedViewPost',\n AppBskyFeedGetAuthorFeed: 'app.bsky.feed.getAuthorFeed',\n AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread',\n AppBskyFeedGetRepostedBy: 'app.bsky.feed.getRepostedBy',\n AppBskyFeedGetTimeline: 'app.bsky.feed.getTimeline',\n AppBskyFeedGetVotes: 'app.bsky.feed.getVotes',\n AppBskyFeedPost: 'app.bsky.feed.post',\n AppBskyFeedRepost: 'app.bsky.feed.repost',\n AppBskyFeedSetVote: 'app.bsky.feed.setVote',\n AppBskyFeedTrend: 'app.bsky.feed.trend',\n AppBskyFeedVote: 'app.bsky.feed.vote',\n AppBskyGraphAssertCreator: 'app.bsky.graph.assertCreator',\n AppBskyGraphAssertMember: 'app.bsky.graph.assertMember',\n AppBskyGraphAssertion: 'app.bsky.graph.assertion',\n AppBskyGraphConfirmation: 'app.bsky.graph.confirmation',\n AppBskyGraphFollow: 'app.bsky.graph.follow',\n AppBskyGraphGetAssertions: 'app.bsky.graph.getAssertions',\n AppBskyGraphGetFollowers: 'app.bsky.graph.getFollowers',\n AppBskyGraphGetFollows: 'app.bsky.graph.getFollows',\n AppBskyGraphGetMembers: 'app.bsky.graph.getMembers',\n AppBskyGraphGetMemberships: 'app.bsky.graph.getMemberships',\n AppBskyNotificationGetCount: 'app.bsky.notification.getCount',\n AppBskyNotificationList: 'app.bsky.notification.list',\n AppBskyNotificationUpdateSeen: 'app.bsky.notification.updateSeen',\n AppBskySystemActorScene: 'app.bsky.system.actorScene',\n AppBskySystemActorUser: 'app.bsky.system.actorUser',\n AppBskySystemDeclRef: 'app.bsky.system.declRef',\n AppBskySystemDeclaration: 'app.bsky.system.declaration',\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\n\nexport interface QueryParams {}\n\nexport interface InputSchema {\n email: string\n handle: string\n inviteCode?: string\n password: string\n recoveryKey?: string\n [k: string]: unknown\n}\n\nexport interface OutputSchema {\n accessJwt: string\n refreshJwt: string\n handle: string\n did: string\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n qp?: QueryParams\n encoding: 'application/json'\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport class InvalidHandleError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message)\n }\n}\n\nexport class InvalidPasswordError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message)\n }\n}\n\nexport class InvalidInviteCodeError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message)\n }\n}\n\nexport class HandleNotAvailableError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message)\n }\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'InvalidHandle') return new InvalidHandleError(e)\n if (e.error === 'InvalidPassword') return new InvalidPasswordError(e)\n if (e.error === 'InvalidInviteCode') return new InvalidInviteCodeError(e)\n if (e.error === 'HandleNotAvailable') return new HandleNotAvailableError(e)\n }\n return e\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\n\nexport interface QueryParams {}\n\nexport interface InputSchema {\n useCount: number\n [k: string]: unknown\n}\n\nexport interface OutputSchema {\n code: string\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n qp?: QueryParams\n encoding: 'application/json'\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\n\nexport interface QueryParams {}\n\nexport type InputSchema = undefined\n\nexport interface CallOptions {\n headers?: Headers\n qp?: QueryParams\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\n\nexport interface QueryParams {}\n\nexport type InputSchema = undefined\n\nexport interface CallOptions {\n headers?: Headers\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\n\nexport interface QueryParams {}\n\nexport interface InputSchema {\n email: string\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n qp?: QueryParams\n encoding: 'application/json'\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\n\nexport interface QueryParams {}\n\nexport interface InputSchema {\n token: string\n password: string\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n qp?: QueryParams\n encoding: 'application/json'\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n}\n\nexport class ExpiredTokenError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message)\n }\n}\n\nexport class InvalidTokenError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message)\n }\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'ExpiredToken') return new ExpiredTokenError(e)\n if (e.error === 'InvalidToken') return new InvalidTokenError(e)\n }\n return e\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\n\nexport interface QueryParams {}\n\nexport type InputSchema = string | Uint8Array\n\nexport interface OutputSchema {\n cid: string\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n qp?: QueryParams\n encoding: string\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\n\nexport interface QueryParams {\n /** The handle to resolve. If not supplied, will resolve the host's own handle. */\n handle?: string\n}\n\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n did: string\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\n\nexport interface QueryParams {}\n\nexport interface InputSchema {\n /** The DID of the repo. */\n did: string\n /** Validate the records? */\n validate?: boolean\n writes: (Create | Update | Delete)[]\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n qp?: QueryParams\n encoding: 'application/json'\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n\nexport interface Create {\n action: 'create'\n collection: string\n rkey?: string\n value: {}\n [k: string]: unknown\n}\n\nexport interface Update {\n action: 'update'\n collection: string\n rkey: string\n value: {}\n [k: string]: unknown\n}\n\nexport interface Delete {\n action: 'delete'\n collection: string\n rkey: string\n [k: string]: unknown\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\n\nexport interface QueryParams {}\n\nexport interface InputSchema {\n /** The DID of the repo. */\n did: string\n /** The NSID of the record collection. */\n collection: string\n /** Validate the record? */\n validate?: boolean\n /** The record to create. */\n record: {}\n [k: string]: unknown\n}\n\nexport interface OutputSchema {\n uri: string\n cid: string\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n qp?: QueryParams\n encoding: 'application/json'\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\n\nexport interface QueryParams {}\n\nexport interface InputSchema {\n /** The DID of the repo. */\n did: string\n /** The NSID of the record collection. */\n collection: string\n /** The key of the record. */\n rkey: string\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n qp?: QueryParams\n encoding: 'application/json'\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\n\nexport interface QueryParams {\n /** The handle or DID of the repo. */\n user: string\n}\n\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n handle: string\n did: string\n didDoc: {}\n collections: string[]\n handleIsCorrect: boolean\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\n\nexport interface QueryParams {\n /** The handle or DID of the repo. */\n user: string\n /** The NSID of the collection. */\n collection: string\n /** The key of the record. */\n rkey: string\n /** The CID of the version of the record. If not specified, then return the most recent version. */\n cid?: string\n}\n\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n uri: string\n cid?: string\n value: {}\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\n\nexport interface QueryParams {\n /** The handle or DID of the repo. */\n user: string\n /** The NSID of the record type. */\n collection: string\n /** The number of records to return. */\n limit?: number\n /** A TID to filter the range of records returned. */\n before?: string\n /** A TID to filter the range of records returned. */\n after?: string\n /** Reverse the order of the returned records? */\n reverse?: boolean\n}\n\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n records: Record[]\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n\nexport interface Record {\n uri: string\n cid: string\n value: {}\n [k: string]: unknown\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\n\nexport interface QueryParams {}\n\nexport interface InputSchema {\n /** The DID of the repo. */\n did: string\n /** The NSID of the record type. */\n collection: string\n /** The TID of the record. */\n rkey: string\n /** Validate the record? */\n validate?: boolean\n /** The record to create. */\n record: {}\n [k: string]: unknown\n}\n\nexport interface OutputSchema {\n uri: string\n cid: string\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n qp?: QueryParams\n encoding: 'application/json'\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\n\nexport interface QueryParams {}\n\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n inviteCodeRequired?: boolean\n availableUserDomains: string[]\n links?: Links\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n\nexport interface Links {\n privacyPolicy?: string\n termsOfService?: string\n [k: string]: unknown\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\n\nexport interface QueryParams {}\n\nexport interface InputSchema {\n handle: string\n password: string\n [k: string]: unknown\n}\n\nexport interface OutputSchema {\n accessJwt: string\n refreshJwt: string\n handle: string\n did: string\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n qp?: QueryParams\n encoding: 'application/json'\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\n\nexport interface QueryParams {}\n\nexport type InputSchema = undefined\n\nexport interface CallOptions {\n headers?: Headers\n qp?: QueryParams\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\n\nexport interface QueryParams {}\n\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n handle: string\n did: string\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\n\nexport interface QueryParams {}\n\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n accessJwt: string\n refreshJwt: string\n handle: string\n did: string\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n qp?: QueryParams\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\n\nexport interface QueryParams {\n /** The DID of the repo. */\n did: string\n /** A past commit CID. */\n from?: string\n}\n\nexport type InputSchema = undefined\n\nexport interface CallOptions {\n headers?: Headers\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: Uint8Array\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\n\nexport interface QueryParams {\n /** The DID of the repo. */\n did: string\n}\n\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n root: string\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\n\nexport interface QueryParams {\n /** The DID of the repo. */\n did: string\n}\n\nexport type InputSchema = string | Uint8Array\n\nexport interface CallOptions {\n headers?: Headers\n qp?: QueryParams\n encoding: 'application/cbor'\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\nimport * as AppBskySystemDeclRef from '../system/declRef'\n\nexport interface QueryParams {}\n\nexport interface InputSchema {\n handle: string\n recoveryKey?: string\n [k: string]: unknown\n}\n\nexport interface OutputSchema {\n handle: string\n did: string\n declaration: AppBskySystemDeclRef.Main\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n qp?: QueryParams\n encoding: 'application/json'\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport class InvalidHandleError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message)\n }\n}\n\nexport class HandleNotAvailableError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message)\n }\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'InvalidHandle') return new InvalidHandleError(e)\n if (e.error === 'HandleNotAvailable') return new HandleNotAvailableError(e)\n }\n return e\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\nimport * as AppBskySystemDeclRef from '../system/declRef'\n\nexport interface QueryParams {\n actor: string\n}\n\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n did: string\n declaration: AppBskySystemDeclRef.Main\n handle: string\n creator: string\n displayName?: string\n description?: string\n avatar?: string\n banner?: string\n followersCount: number\n followsCount: number\n membersCount: number\n postsCount: number\n myState?: MyState\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n\nexport interface MyState {\n follow?: string\n member?: string\n [k: string]: unknown\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\nimport * as AppBskySystemDeclRef from '../system/declRef'\n\nexport interface QueryParams {\n limit?: number\n cursor?: string\n}\n\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n actors: Actor[]\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n\nexport interface Actor {\n did: string\n declaration: AppBskySystemDeclRef.Main\n handle: string\n displayName?: string\n description?: string\n avatar?: string\n indexedAt?: string\n myState?: MyState\n [k: string]: unknown\n}\n\nexport interface MyState {\n follow?: string\n [k: string]: unknown\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\nimport * as AppBskySystemDeclRef from '../system/declRef'\n\nexport interface QueryParams {\n term: string\n limit?: number\n before?: string\n}\n\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n users: User[]\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n\nexport interface User {\n did: string\n declaration: AppBskySystemDeclRef.Main\n handle: string\n displayName?: string\n avatar?: string\n description?: string\n indexedAt?: string\n [k: string]: unknown\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\nimport * as AppBskySystemDeclRef from '../system/declRef'\n\nexport interface QueryParams {\n term: string\n limit?: number\n}\n\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n users: User[]\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n\nexport interface User {\n did: string\n declaration: AppBskySystemDeclRef.Main\n handle: string\n displayName?: string\n avatar?: string\n [k: string]: unknown\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\n\nexport interface QueryParams {}\n\nexport interface InputSchema {\n did?: string\n displayName?: string\n description?: string\n avatar?: { cid: string; mimeType: string; [k: string]: unknown }\n banner?: { cid: string; mimeType: string; [k: string]: unknown }\n [k: string]: unknown\n}\n\nexport interface OutputSchema {\n uri: string\n cid: string\n record: {}\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n qp?: QueryParams\n encoding: 'application/json'\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport class InvalidBlobError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message)\n }\n}\n\nexport class BlobTooLargeError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message)\n }\n}\n\nexport class InvalidMimeTypeError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message)\n }\n}\n\nexport class InvalidImageDimensionsError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message)\n }\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'InvalidBlob') return new InvalidBlobError(e)\n if (e.error === 'BlobTooLarge') return new BlobTooLargeError(e)\n if (e.error === 'InvalidMimeType') return new InvalidMimeTypeError(e)\n if (e.error === 'InvalidImageDimensions')\n return new InvalidImageDimensionsError(e)\n }\n return e\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\nimport * as AppBskyFeedFeedViewPost from './feedViewPost'\n\nexport interface QueryParams {\n author: string\n limit?: number\n before?: string\n}\n\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n feed: AppBskyFeedFeedViewPost.Main[]\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\nimport * as AppBskyFeedPost from './post'\n\nexport interface QueryParams {\n uri: string\n depth?: number\n}\n\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n thread:\n | ThreadViewPost\n | NotFoundPost\n | { $type: string; [k: string]: unknown }\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport class NotFoundError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message)\n }\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'NotFound') return new NotFoundError(e)\n }\n return e\n}\n\nexport interface ThreadViewPost {\n post: AppBskyFeedPost.View\n parent?:\n | ThreadViewPost\n | NotFoundPost\n | { $type: string; [k: string]: unknown }\n replies?: (\n | ThreadViewPost\n | NotFoundPost\n | { $type: string; [k: string]: unknown }\n )[]\n [k: string]: unknown\n}\n\nexport interface NotFoundPost {\n uri: string\n notFound: true\n [k: string]: unknown\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\nimport * as AppBskySystemDeclRef from '../system/declRef'\n\nexport interface QueryParams {\n uri: string\n cid?: string\n limit?: number\n before?: string\n}\n\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n uri: string\n cid?: string\n cursor?: string\n repostedBy: RepostedBy[]\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n\nexport interface RepostedBy {\n did: string\n declaration: AppBskySystemDeclRef.Main\n handle: string\n displayName?: string\n avatar?: string\n createdAt?: string\n indexedAt: string\n [k: string]: unknown\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\nimport * as AppBskyFeedFeedViewPost from './feedViewPost'\n\nexport interface QueryParams {\n algorithm?: string\n limit?: number\n before?: string\n}\n\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n feed: AppBskyFeedFeedViewPost.Main[]\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\nimport * as AppBskyActorRef from '../actor/ref'\n\nexport interface QueryParams {\n uri: string\n cid?: string\n direction?: 'up' | 'down'\n limit?: number\n before?: string\n}\n\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n uri: string\n cid?: string\n cursor?: string\n votes: Vote[]\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n\nexport interface Vote {\n direction: 'up' | 'down'\n indexedAt: string\n createdAt: string\n actor: AppBskyActorRef.WithInfo\n [k: string]: unknown\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\nimport * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'\n\nexport interface QueryParams {}\n\nexport interface InputSchema {\n subject: ComAtprotoRepoStrongRef.Main\n direction: 'up' | 'down' | 'none'\n [k: string]: unknown\n}\n\nexport interface OutputSchema {\n upvote?: string\n downvote?: string\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n qp?: QueryParams\n encoding: 'application/json'\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\nimport * as AppBskyActorRef from '../actor/ref'\n\nexport interface QueryParams {\n author?: string\n subject?: string\n assertion?: string\n confirmed?: boolean\n limit?: number\n before?: string\n}\n\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n assertions: Assertion[]\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n\nexport interface Assertion {\n uri: string\n cid: string\n assertion: string\n confirmation?: Confirmation\n author: AppBskyActorRef.WithInfo\n subject: AppBskyActorRef.WithInfo\n indexedAt: string\n createdAt: string\n [k: string]: unknown\n}\n\nexport interface Confirmation {\n uri: string\n cid: string\n indexedAt: string\n createdAt: string\n [k: string]: unknown\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\nimport * as AppBskyActorRef from '../actor/ref'\nimport * as AppBskySystemDeclRef from '../system/declRef'\n\nexport interface QueryParams {\n user: string\n limit?: number\n before?: string\n}\n\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n subject: AppBskyActorRef.WithInfo\n cursor?: string\n followers: Follower[]\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n\nexport interface Follower {\n did: string\n declaration: AppBskySystemDeclRef.Main\n handle: string\n displayName?: string\n avatar?: string\n createdAt?: string\n indexedAt: string\n [k: string]: unknown\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\nimport * as AppBskyActorRef from '../actor/ref'\nimport * as AppBskySystemDeclRef from '../system/declRef'\n\nexport interface QueryParams {\n user: string\n limit?: number\n before?: string\n}\n\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n subject: AppBskyActorRef.WithInfo\n cursor?: string\n follows: Follow[]\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n\nexport interface Follow {\n did: string\n declaration: AppBskySystemDeclRef.Main\n handle: string\n displayName?: string\n createdAt?: string\n indexedAt: string\n [k: string]: unknown\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\nimport * as AppBskyActorRef from '../actor/ref'\nimport * as AppBskySystemDeclRef from '../system/declRef'\n\nexport interface QueryParams {\n actor: string\n limit?: number\n before?: string\n}\n\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n subject: AppBskyActorRef.WithInfo\n cursor?: string\n members: Member[]\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n\nexport interface Member {\n did: string\n declaration: AppBskySystemDeclRef.Main\n handle: string\n displayName?: string\n createdAt?: string\n indexedAt: string\n [k: string]: unknown\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\nimport * as AppBskyActorRef from '../actor/ref'\nimport * as AppBskySystemDeclRef from '../system/declRef'\n\nexport interface QueryParams {\n actor: string\n limit?: number\n before?: string\n}\n\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n subject: AppBskyActorRef.WithInfo\n cursor?: string\n memberships: Membership[]\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n\nexport interface Membership {\n did: string\n declaration: AppBskySystemDeclRef.Main\n handle: string\n displayName?: string\n createdAt?: string\n indexedAt: string\n [k: string]: unknown\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\n\nexport interface QueryParams {}\n\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n count: number\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\nimport * as AppBskyActorRef from '../actor/ref'\n\nexport interface QueryParams {\n limit?: number\n before?: string\n}\n\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n notifications: Notification[]\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n\nexport interface Notification {\n uri: string\n cid: string\n author: AppBskyActorRef.WithInfo\n /** Expected values are 'vote', 'repost', 'trend', 'follow', 'invite', 'mention' and 'reply'. */\n reason:\n | 'vote'\n | 'repost'\n | 'trend'\n | 'follow'\n | 'invite'\n | 'mention'\n | 'reply'\n | (string & {})\n reasonSubject?: string\n record: {}\n isRead: boolean\n indexedAt: string\n [k: string]: unknown\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { Headers, XRPCError } from '@atproto/xrpc'\n\nexport interface QueryParams {}\n\nexport interface InputSchema {\n seenAt: string\n [k: string]: unknown\n}\n\nexport interface CallOptions {\n headers?: Headers\n qp?: QueryParams\n encoding: 'application/json'\n}\n\nexport interface Response {\n success: boolean\n headers: Headers\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n }\n return e\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nexport interface Main {\n uri: string\n cid: string\n [k: string]: unknown\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nexport interface Record {\n displayName: string\n description?: string\n avatar?: { cid: string; mimeType: string; [k: string]: unknown }\n banner?: { cid: string; mimeType: string; [k: string]: unknown }\n [k: string]: unknown\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport * as AppBskySystemDeclRef from '../system/declRef'\n\nexport interface Main {\n did: string\n declarationCid: string\n [k: string]: unknown\n}\n\nexport interface WithInfo {\n did: string\n declaration: AppBskySystemDeclRef.Main\n handle: string\n displayName?: string\n avatar?: string\n [k: string]: unknown\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nexport interface Main {\n external: External\n [k: string]: unknown\n}\n\nexport interface External {\n uri: string\n title: string\n description: string\n thumb?: { cid: string; mimeType: string; [k: string]: unknown }\n [k: string]: unknown\n}\n\nexport interface Presented {\n external: PresentedExternal\n [k: string]: unknown\n}\n\nexport interface PresentedExternal {\n uri: string\n title: string\n description: string\n thumb?: string\n [k: string]: unknown\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nexport interface Main {\n images: Image[]\n [k: string]: unknown\n}\n\nexport interface Image {\n image: { cid: string; mimeType: string; [k: string]: unknown }\n alt: string\n [k: string]: unknown\n}\n\nexport interface Presented {\n images: PresentedImage[]\n [k: string]: unknown\n}\n\nexport interface PresentedImage {\n thumb: string\n fullsize: string\n alt: string\n [k: string]: unknown\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport * as AppBskyFeedPost from './post'\nimport * as AppBskyActorRef from '../actor/ref'\n\nexport interface Main {\n post: AppBskyFeedPost.View\n reply?: ReplyRef\n reason?: ReasonTrend | ReasonRepost | { $type: string; [k: string]: unknown }\n [k: string]: unknown\n}\n\nexport interface ReplyRef {\n root: AppBskyFeedPost.View\n parent: AppBskyFeedPost.View\n [k: string]: unknown\n}\n\nexport interface ReasonTrend {\n by: AppBskyActorRef.WithInfo\n indexedAt: string\n [k: string]: unknown\n}\n\nexport interface ReasonRepost {\n by: AppBskyActorRef.WithInfo\n indexedAt: string\n [k: string]: unknown\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport * as AppBskyEmbedImages from '../embed/images'\nimport * as AppBskyEmbedExternal from '../embed/external'\nimport * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'\nimport * as AppBskyActorRef from '../actor/ref'\n\nexport interface Record {\n text: string\n entities?: Entity[]\n reply?: ReplyRef\n embed?:\n | AppBskyEmbedImages.Main\n | AppBskyEmbedExternal.Main\n | { $type: string; [k: string]: unknown }\n createdAt: string\n [k: string]: unknown\n}\n\nexport interface ReplyRef {\n root: ComAtprotoRepoStrongRef.Main\n parent: ComAtprotoRepoStrongRef.Main\n [k: string]: unknown\n}\n\nexport interface Entity {\n index: TextSlice\n /** Expected values are 'mention', 'hashtag', and 'link'. */\n type: string\n value: string\n [k: string]: unknown\n}\n\nexport interface TextSlice {\n start: number\n end: number\n [k: string]: unknown\n}\n\nexport interface View {\n uri: string\n cid: string\n author: AppBskyActorRef.WithInfo\n record: {}\n embed?:\n | AppBskyEmbedImages.Presented\n | AppBskyEmbedExternal.Presented\n | { $type: string; [k: string]: unknown }\n replyCount: number\n repostCount: number\n upvoteCount: number\n downvoteCount: number\n indexedAt: string\n viewer: ViewerState\n [k: string]: unknown\n}\n\nexport interface ViewerState {\n repost?: string\n upvote?: string\n downvote?: string\n [k: string]: unknown\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'\n\nexport interface Record {\n subject: ComAtprotoRepoStrongRef.Main\n createdAt: string\n [k: string]: unknown\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'\n\nexport interface Record {\n subject: ComAtprotoRepoStrongRef.Main\n createdAt: string\n [k: string]: unknown\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'\n\nexport interface Record {\n subject: ComAtprotoRepoStrongRef.Main\n direction: 'up' | 'down'\n createdAt: string\n [k: string]: unknown\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\n/** Assertion type: Creator. Defined for app.bsky.graph.assertions's assertion. */\nexport const MAIN = 'app.bsky.graph.assertCreator#main'\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\n/** Assertion type: Member. Defined for app.bsky.graph.assertions's assertion. */\nexport const MAIN = 'app.bsky.graph.assertMember#main'\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport * as AppBskyActorRef from '../actor/ref'\n\nexport interface Record {\n assertion: string\n subject: AppBskyActorRef.Main\n createdAt: string\n [k: string]: unknown\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport * as AppBskyActorRef from '../actor/ref'\nimport * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'\n\nexport interface Record {\n originator: AppBskyActorRef.Main\n assertion: ComAtprotoRepoStrongRef.Main\n createdAt: string\n [k: string]: unknown\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport * as AppBskyActorRef from '../actor/ref'\n\nexport interface Record {\n subject: AppBskyActorRef.Main\n createdAt: string\n [k: string]: unknown\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\n/** Actor type: Scene. Defined for app.bsky.system.declaration's actorType. */\nexport const MAIN = 'app.bsky.system.actorScene#main'\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\n/** Actor type: User. Defined for app.bsky.system.declaration's actorType. */\nexport const MAIN = 'app.bsky.system.actorUser#main'\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\n/** A reference to a app.bsky.system.declaration record. */\nexport interface Main {\n cid: string\n actorType:\n | 'app.bsky.system.actorUser'\n | 'app.bsky.system.actorScene'\n | (string & {})\n [k: string]: unknown\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nexport interface Record {\n actorType:\n | 'app.bsky.system.actorUser'\n | 'app.bsky.system.actorScene'\n | (string & {})\n [k: string]: unknown\n}\n", "/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport {\n Client as XrpcClient,\n ServiceClient as XrpcServiceClient,\n} from '@atproto/xrpc'\nimport { schemas } from './lexicons'\nimport * as ComAtprotoAccountCreate from './types/com/atproto/account/create'\nimport * as ComAtprotoAccountCreateInviteCode from './types/com/atproto/account/createInviteCode'\nimport * as ComAtprotoAccountDelete from './types/com/atproto/account/delete'\nimport * as ComAtprotoAccountGet from './types/com/atproto/account/get'\nimport * as ComAtprotoAccountRequestPasswordReset from './types/com/atproto/account/requestPasswordReset'\nimport * as ComAtprotoAccountResetPassword from './types/com/atproto/account/resetPassword'\nimport * as ComAtprotoBlobUpload from './types/com/atproto/blob/upload'\nimport * as ComAtprotoHandleResolve from './types/com/atproto/handle/resolve'\nimport * as ComAtprotoRepoBatchWrite from './types/com/atproto/repo/batchWrite'\nimport * as ComAtprotoRepoCreateRecord from './types/com/atproto/repo/createRecord'\nimport * as ComAtprotoRepoDeleteRecord from './types/com/atproto/repo/deleteRecord'\nimport * as ComAtprotoRepoDescribe from './types/com/atproto/repo/describe'\nimport * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord'\nimport * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords'\nimport * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord'\nimport * as ComAtprotoRepoStrongRef from './types/com/atproto/repo/strongRef'\nimport * as ComAtprotoServerGetAccountsConfig from './types/com/atproto/server/getAccountsConfig'\nimport * as ComAtprotoSessionCreate from './types/com/atproto/session/create'\nimport * as ComAtprotoSessionDelete from './types/com/atproto/session/delete'\nimport * as ComAtprotoSessionGet from './types/com/atproto/session/get'\nimport * as ComAtprotoSessionRefresh from './types/com/atproto/session/refresh'\nimport * as ComAtprotoSyncGetRepo from './types/com/atproto/sync/getRepo'\nimport * as ComAtprotoSyncGetRoot from './types/com/atproto/sync/getRoot'\nimport * as ComAtprotoSyncUpdateRepo from './types/com/atproto/sync/updateRepo'\nimport * as AppBskyActorCreateScene from './types/app/bsky/actor/createScene'\nimport * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile'\nimport * as AppBskyActorGetSuggestions from './types/app/bsky/actor/getSuggestions'\nimport * as AppBskyActorProfile from './types/app/bsky/actor/profile'\nimport * as AppBskyActorRef from './types/app/bsky/actor/ref'\nimport * as AppBskyActorSearch from './types/app/bsky/actor/search'\nimport * as AppBskyActorSearchTypeahead from './types/app/bsky/actor/searchTypeahead'\nimport * as AppBskyActorUpdateProfile from './types/app/bsky/actor/updateProfile'\nimport * as AppBskyEmbedExternal from './types/app/bsky/embed/external'\nimport * as AppBskyEmbedImages from './types/app/bsky/embed/images'\nimport * as AppBskyFeedFeedViewPost from './types/app/bsky/feed/feedViewPost'\nimport * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed'\nimport * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread'\nimport * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy'\nimport * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline'\nimport * as AppBskyFeedGetVotes from './types/app/bsky/feed/getVotes'\nimport * as AppBskyFeedPost from './types/app/bsky/feed/post'\nimport * as AppBskyFeedRepost from './types/app/bsky/feed/repost'\nimport * as AppBskyFeedSetVote from './types/app/bsky/feed/setVote'\nimport * as AppBskyFeedTrend from './types/app/bsky/feed/trend'\nimport * as AppBskyFeedVote from './types/app/bsky/feed/vote'\nimport * as AppBskyGraphAssertCreator from './types/app/bsky/graph/assertCreator'\nimport * as AppBskyGraphAssertMember from './types/app/bsky/graph/assertMember'\nimport * as AppBskyGraphAssertion from './types/app/bsky/graph/assertion'\nimport * as AppBskyGraphConfirmation from './types/app/bsky/graph/confirmation'\nimport * as AppBskyGraphFollow from './types/app/bsky/graph/follow'\nimport * as AppBskyGraphGetAssertions from './types/app/bsky/graph/getAssertions'\nimport * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers'\nimport * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows'\nimport * as AppBskyGraphGetMembers from './types/app/bsky/graph/getMembers'\nimport * as AppBskyGraphGetMemberships from './types/app/bsky/graph/getMemberships'\nimport * as AppBskyNotificationGetCount from './types/app/bsky/notification/getCount'\nimport * as AppBskyNotificationList from './types/app/bsky/notification/list'\nimport * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen'\nimport * as AppBskySystemActorScene from './types/app/bsky/system/actorScene'\nimport * as AppBskySystemActorUser from './types/app/bsky/system/actorUser'\nimport * as AppBskySystemDeclRef from './types/app/bsky/system/declRef'\nimport * as AppBskySystemDeclaration from './types/app/bsky/system/declaration'\n\nexport * as ComAtprotoAccountCreate from './types/com/atproto/account/create'\nexport * as ComAtprotoAccountCreateInviteCode from './types/com/atproto/account/createInviteCode'\nexport * as ComAtprotoAccountDelete from './types/com/atproto/account/delete'\nexport * as ComAtprotoAccountGet from './types/com/atproto/account/get'\nexport * as ComAtprotoAccountRequestPasswordReset from './types/com/atproto/account/requestPasswordReset'\nexport * as ComAtprotoAccountResetPassword from './types/com/atproto/account/resetPassword'\nexport * as ComAtprotoBlobUpload from './types/com/atproto/blob/upload'\nexport * as ComAtprotoHandleResolve from './types/com/atproto/handle/resolve'\nexport * as ComAtprotoRepoBatchWrite from './types/com/atproto/repo/batchWrite'\nexport * as ComAtprotoRepoCreateRecord from './types/com/atproto/repo/createRecord'\nexport * as ComAtprotoRepoDeleteRecord from './types/com/atproto/repo/deleteRecord'\nexport * as ComAtprotoRepoDescribe from './types/com/atproto/repo/describe'\nexport * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord'\nexport * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords'\nexport * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord'\nexport * as ComAtprotoRepoStrongRef from './types/com/atproto/repo/strongRef'\nexport * as ComAtprotoServerGetAccountsConfig from './types/com/atproto/server/getAccountsConfig'\nexport * as ComAtprotoSessionCreate from './types/com/atproto/session/create'\nexport * as ComAtprotoSessionDelete from './types/com/atproto/session/delete'\nexport * as ComAtprotoSessionGet from './types/com/atproto/session/get'\nexport * as ComAtprotoSessionRefresh from './types/com/atproto/session/refresh'\nexport * as ComAtprotoSyncGetRepo from './types/com/atproto/sync/getRepo'\nexport * as ComAtprotoSyncGetRoot from './types/com/atproto/sync/getRoot'\nexport * as ComAtprotoSyncUpdateRepo from './types/com/atproto/sync/updateRepo'\nexport * as AppBskyActorCreateScene from './types/app/bsky/actor/createScene'\nexport * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile'\nexport * as AppBskyActorGetSuggestions from './types/app/bsky/actor/getSuggestions'\nexport * as AppBskyActorProfile from './types/app/bsky/actor/profile'\nexport * as AppBskyActorRef from './types/app/bsky/actor/ref'\nexport * as AppBskyActorSearch from './types/app/bsky/actor/search'\nexport * as AppBskyActorSearchTypeahead from './types/app/bsky/actor/searchTypeahead'\nexport * as AppBskyActorUpdateProfile from './types/app/bsky/actor/updateProfile'\nexport * as AppBskyEmbedExternal from './types/app/bsky/embed/external'\nexport * as AppBskyEmbedImages from './types/app/bsky/embed/images'\nexport * as AppBskyFeedFeedViewPost from './types/app/bsky/feed/feedViewPost'\nexport * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed'\nexport * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread'\nexport * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy'\nexport * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline'\nexport * as AppBskyFeedGetVotes from './types/app/bsky/feed/getVotes'\nexport * as AppBskyFeedPost from './types/app/bsky/feed/post'\nexport * as AppBskyFeedRepost from './types/app/bsky/feed/repost'\nexport * as AppBskyFeedSetVote from './types/app/bsky/feed/setVote'\nexport * as AppBskyFeedTrend from './types/app/bsky/feed/trend'\nexport * as AppBskyFeedVote from './types/app/bsky/feed/vote'\nexport * as AppBskyGraphAssertCreator from './types/app/bsky/graph/assertCreator'\nexport * as AppBskyGraphAssertMember from './types/app/bsky/graph/assertMember'\nexport * as AppBskyGraphAssertion from './types/app/bsky/graph/assertion'\nexport * as AppBskyGraphConfirmation from './types/app/bsky/graph/confirmation'\nexport * as AppBskyGraphFollow from './types/app/bsky/graph/follow'\nexport * as AppBskyGraphGetAssertions from './types/app/bsky/graph/getAssertions'\nexport * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers'\nexport * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows'\nexport * as AppBskyGraphGetMembers from './types/app/bsky/graph/getMembers'\nexport * as AppBskyGraphGetMemberships from './types/app/bsky/graph/getMemberships'\nexport * as AppBskyNotificationGetCount from './types/app/bsky/notification/getCount'\nexport * as AppBskyNotificationList from './types/app/bsky/notification/list'\nexport * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen'\nexport * as AppBskySystemActorScene from './types/app/bsky/system/actorScene'\nexport * as AppBskySystemActorUser from './types/app/bsky/system/actorUser'\nexport * as AppBskySystemDeclRef from './types/app/bsky/system/declRef'\nexport * as AppBskySystemDeclaration from './types/app/bsky/system/declaration'\n\nexport const APP_BSKY_GRAPH = {\n AssertCreator: 'app.bsky.graph.assertCreator',\n AssertMember: 'app.bsky.graph.assertMember',\n}\nexport const APP_BSKY_SYSTEM = {\n ActorScene: 'app.bsky.system.actorScene',\n ActorUser: 'app.bsky.system.actorUser',\n}\n\nexport class Client {\n xrpc: XrpcClient = new XrpcClient()\n\n constructor() {\n this.xrpc.addLexicons(schemas)\n }\n\n service(serviceUri: string | URL): ServiceClient {\n return new ServiceClient(this, this.xrpc.service(serviceUri))\n }\n}\n\nconst defaultInst = new Client()\nexport default defaultInst\n\nexport class ServiceClient {\n _baseClient: Client\n xrpc: XrpcServiceClient\n com: ComNS\n app: AppNS\n\n constructor(baseClient: Client, xrpcService: XrpcServiceClient) {\n this._baseClient = baseClient\n this.xrpc = xrpcService\n this.com = new ComNS(this)\n this.app = new AppNS(this)\n }\n\n setHeader(key: string, value: string): void {\n this.xrpc.setHeader(key, value)\n }\n}\n\nexport class ComNS {\n _service: ServiceClient\n atproto: AtprotoNS\n\n constructor(service: ServiceClient) {\n this._service = service\n this.atproto = new AtprotoNS(service)\n }\n}\n\nexport class AtprotoNS {\n _service: ServiceClient\n account: AccountNS\n blob: BlobNS\n handle: HandleNS\n repo: RepoNS\n server: ServerNS\n session: SessionNS\n sync: SyncNS\n\n constructor(service: ServiceClient) {\n this._service = service\n this.account = new AccountNS(service)\n this.blob = new BlobNS(service)\n this.handle = new HandleNS(service)\n this.repo = new RepoNS(service)\n this.server = new ServerNS(service)\n this.session = new SessionNS(service)\n this.sync = new SyncNS(service)\n }\n}\n\nexport class AccountNS {\n _service: ServiceClient\n\n constructor(service: ServiceClient) {\n this._service = service\n }\n\n create(\n data?: ComAtprotoAccountCreate.InputSchema,\n opts?: ComAtprotoAccountCreate.CallOptions,\n ): Promise<ComAtprotoAccountCreate.Response> {\n return this._service.xrpc\n .call('com.atproto.account.create', opts?.qp, data, opts)\n .catch((e) => {\n throw ComAtprotoAccountCreate.toKnownErr(e)\n })\n }\n\n createInviteCode(\n data?: ComAtprotoAccountCreateInviteCode.InputSchema,\n opts?: ComAtprotoAccountCreateInviteCode.CallOptions,\n ): Promise<ComAtprotoAccountCreateInviteCode.Response> {\n return this._service.xrpc\n .call('com.atproto.account.createInviteCode', opts?.qp, data, opts)\n .catch((e) => {\n throw ComAtprotoAccountCreateInviteCode.toKnownErr(e)\n })\n }\n\n delete(\n data?: ComAtprotoAccountDelete.InputSchema,\n opts?: ComAtprotoAccountDelete.CallOptions,\n ): Promise<ComAtprotoAccountDelete.Response> {\n return this._service.xrpc\n .call('com.atproto.account.delete', opts?.qp, data, opts)\n .catch((e) => {\n throw ComAtprotoAccountDelete.toKnownErr(e)\n })\n }\n\n get(\n params?: ComAtprotoAccountGet.QueryParams,\n opts?: ComAtprotoAccountGet.CallOptions,\n ): Promise<ComAtprotoAccountGet.Response> {\n return this._service.xrpc\n .call('com.atproto.account.get', params, undefined, opts)\n .catch((e) => {\n throw ComAtprotoAccountGet.toKnownErr(e)\n })\n }\n\n requestPasswordReset(\n data?: ComAtprotoAccountRequestPasswordReset.InputSchema,\n opts?: ComAtprotoAccountRequestPasswordReset.CallOptions,\n ): Promise<ComAtprotoAccountRequestPasswordReset.Response> {\n return this._service.xrpc\n .call('com.atproto.account.requestPasswordReset', opts?.qp, data, opts)\n .catch((e) => {\n throw ComAtprotoAccountRequestPasswordReset.toKnownErr(e)\n })\n }\n\n resetPassword(\n data?: ComAtprotoAccountResetPassword.InputSchema,\n opts?: ComAtprotoAccountResetPassword.CallOptions,\n ): Promise<ComAtprotoAccountResetPassword.Response> {\n return this._service.xrpc\n .call('com.atproto.account.resetPassword', opts?.qp, data, opts)\n .catch((e) => {\n throw ComAtprotoAccountResetPassword.toKnownErr(e)\n })\n }\n}\n\nexport class BlobNS {\n _service: ServiceClient\n\n constructor(service: ServiceClient) {\n this._service = service\n }\n\n upload(\n data?: ComAtprotoBlobUpload.InputSchema,\n opts?: ComAtprotoBlobUpload.CallOptions,\n ): Promise<ComAtprotoBlobUpload.Response> {\n return this._service.xrpc\n .call('com.atproto.blob.upload', opts?.qp, data, opts)\n .catch((e) => {\n throw ComAtprotoBlobUpload.toKnownErr(e)\n })\n }\n}\n\nexport class HandleNS {\n _service: ServiceClient\n\n constructor(service: ServiceClient) {\n this._service = service\n }\n\n resolve(\n params?: ComAtprotoHandleResolve.QueryParams,\n opts?: ComAtprotoHandleResolve.CallOptions,\n ): Promise<ComAtprotoHandleResolve.Response> {\n return this._service.xrpc\n .call('com.atproto.handle.resolve', params, undefined, opts)\n .catch((e) => {\n throw ComAtprotoHandleResolve.toKnownErr(e)\n })\n }\n}\n\nexport class RepoNS {\n _service: ServiceClient\n\n constructor(service: ServiceClient) {\n this._service = service\n }\n\n batchWrite(\n data?: ComAtprotoRepoBatchWrite.InputSchema,\n opts?: ComAtprotoRepoBatchWrite.CallOptions,\n ): Promise<ComAtprotoRepoBatchWrite.Response> {\n return this._service.xrpc\n .call('com.atproto.repo.batchWrite', opts?.qp, data, opts)\n .catch((e) => {\n throw ComAtprotoRepoBatchWrite.toKnownErr(e)\n })\n }\n\n createRecord(\n data?: ComAtprotoRepoCreateRecord.InputSchema,\n opts?: ComAtprotoRepoCreateRecord.CallOptions,\n ): Promise<ComAtprotoRepoCreateRecord.Response> {\n return this._service.xrpc\n .call('com.atproto.repo.createRecord', opts?.qp, data, opts)\n .catch((e) => {\n throw ComAtprotoRepoCreateRecord.toKnownErr(e)\n })\n }\n\n deleteRecord(\n data?: ComAtprotoRepoDeleteRecord.InputSchema,\n opts?: ComAtprotoRepoDeleteRecord.CallOptions,\n ): Promise<ComAtprotoRepoDeleteRecord.Response> {\n return this._service.xrpc\n .call('com.atproto.repo.deleteRecord', opts?.qp, data, opts)\n .catch((e) => {\n throw ComAtprotoRepoDeleteRecord.toKnownErr(e)\n })\n }\n\n describe(\n params?: ComAtprotoRepoDescribe.QueryParams,\n opts?: ComAtprotoRepoDescribe.CallOptions,\n ): Promise<ComAtprotoRepoDescribe.Response> {\n return this._service.xrpc\n .call('com.atproto.repo.describe', params, undefined, opts)\n .catch((e) => {\n throw ComAtprotoRepoDescribe.toKnownErr(e)\n })\n }\n\n getRecord(\n params?: ComAtprotoRepoGetRecord.QueryParams,\n opts?: ComAtprotoRepoGetRecord.CallOptions,\n ): Promise<ComAtprotoRepoGetRecord.Response> {\n return this._service.xrpc\n .call('com.atproto.repo.getRecord', params, undefined, opts)\n .catch((e) => {\n throw ComAtprotoRepoGetRecord.toKnownErr(e)\n })\n }\n\n listRecords(\n params?: ComAtprotoRepoListRecords.QueryParams,\n opts?: ComAtprotoRepoListRecords.CallOptions,\n ): Promise<ComAtprotoRepoListRecords.Response> {\n return this._service.xrpc\n .call('com.atproto.repo.listRecords', params, undefined, opts)\n .catch((e) => {\n throw ComAtprotoRepoListRecords.toKnownErr(e)\n })\n }\n\n putRecord(\n data?: ComAtprotoRepoPutRecord.InputSchema,\n opts?: ComAtprotoRepoPutRecord.CallOptions,\n ): Promise<ComAtprotoRepoPutRecord.Response> {\n return this._service.xrpc\n .call('com.atproto.repo.putRecord', opts?.qp, data, opts)\n .catch((e) => {\n throw ComAtprotoRepoPutRecord.toKnownErr(e)\n })\n }\n}\n\nexport class ServerNS {\n _service: ServiceClient\n\n constructor(service: ServiceClient) {\n this._service = service\n }\n\n getAccountsConfig(\n params?: ComAtprotoServerGetAccountsConfig.QueryParams,\n opts?: ComAtprotoServerGetAccountsConfig.CallOptions,\n ): Promise<ComAtprotoServerGetAccountsConfig.Response> {\n return this._service.xrpc\n .call('com.atproto.server.getAccountsConfig', params, undefined, opts)\n .catch((e) => {\n throw ComAtprotoServerGetAccountsConfig.toKnownErr(e)\n })\n }\n}\n\nexport class SessionNS {\n _service: ServiceClient\n\n constructor(service: ServiceClient) {\n this._service = service\n }\n\n create(\n data?: ComAtprotoSessionCreate.InputSchema,\n opts?: ComAtprotoSessionCreate.CallOptions,\n ): Promise<ComAtprotoSessionCreate.Response> {\n return this._service.xrpc\n .call('com.atproto.session.create', opts?.qp, data, opts)\n .catch((e) => {\n throw ComAtprotoSessionCreate.toKnownErr(e)\n })\n }\n\n delete(\n data?: ComAtprotoSessionDelete.InputSchema,\n opts?: ComAtprotoSessionDelete.CallOptions,\n ): Promise<ComAtprotoSessionDelete.Response> {\n return this._service.xrpc\n .call('com.atproto.session.delete', opts?.qp, data, opts)\n .catch((e) => {\n throw ComAtprotoSessionDelete.toKnownErr(e)\n })\n }\n\n get(\n params?: ComAtprotoSessionGet.QueryParams,\n opts?: ComAtprotoSessionGet.CallOptions,\n ): Promise<ComAtprotoSessionGet.Response> {\n return this._service.xrpc\n .call('com.atproto.session.get', params, undefined, opts)\n .catch((e) => {\n throw ComAtprotoSessionGet.toKnownErr(e)\n })\n }\n\n refresh(\n data?: ComAtprotoSessionRefresh.InputSchema,\n opts?: ComAtprotoSessionRefresh.CallOptions,\n ): Promise<ComAtprotoSessionRefresh.Response> {\n return this._service.xrpc\n .call('com.atproto.session.refresh', opts?.qp, data, opts)\n .catch((e) => {\n throw ComAtprotoSessionRefresh.toKnownErr(e)\n })\n }\n}\n\nexport class SyncNS {\n _service: ServiceClient\n\n constructor(service: ServiceClient) {\n this._service = service\n }\n\n getRepo(\n params?: ComAtprotoSyncGetRepo.QueryParams,\n opts?: ComAtprotoSyncGetRepo.CallOptions,\n ): Promise<ComAtprotoSyncGetRepo.Response> {\n return this._service.xrpc\n .call('com.atproto.sync.getRepo', params, undefined, opts)\n .catch((e) => {\n throw ComAtprotoSyncGetRepo.toKnownErr(e)\n })\n }\n\n getRoot(\n params?: ComAtprotoSyncGetRoot.QueryParams,\n opts?: ComAtprotoSyncGetRoot.CallOptions,\n ): Promise<ComAtprotoSyncGetRoot.Response> {\n return this._service.xrpc\n .call('com.atproto.sync.getRoot', params, undefined, opts)\n .catch((e) => {\n throw ComAtprotoSyncGetRoot.toKnownErr(e)\n })\n }\n\n updateRepo(\n data?: ComAtprotoSyncUpdateRepo.InputSchema,\n opts?: ComAtprotoSyncUpdateRepo.CallOptions,\n ): Promise<ComAtprotoSyncUpdateRepo.Response> {\n return this._service.xrpc\n .call('com.atproto.sync.updateRepo', opts?.qp, data, opts)\n .catch((e) => {\n throw ComAtprotoSyncUpdateRepo.toKnownErr(e)\n })\n }\n}\n\nexport class AppNS {\n _service: ServiceClient\n bsky: BskyNS\n\n constructor(service: ServiceClient) {\n this._service = service\n this.bsky = new BskyNS(service)\n }\n}\n\nexport class BskyNS {\n _service: ServiceClient\n actor: ActorNS\n embed: EmbedNS\n feed: FeedNS\n graph: GraphNS\n notification: NotificationNS\n system: SystemNS\n\n constructor(service: ServiceClient) {\n this._service = service\n this.actor = new ActorNS(service)\n this.embed = new EmbedNS(service)\n this.feed = new FeedNS(service)\n this.graph = new GraphNS(service)\n this.notification = new NotificationNS(service)\n this.system = new SystemNS(service)\n }\n}\n\nexport class ActorNS {\n _service: ServiceClient\n profile: ProfileRecord\n\n constructor(service: ServiceClient) {\n this._service = service\n this.profile = new ProfileRecord(service)\n }\n\n createScene(\n data?: AppBskyActorCreateScene.InputSchema,\n opts?: AppBskyActorCreateScene.CallOptions,\n ): Promise<AppBskyActorCreateScene.Response> {\n return this._service.xrpc\n .call('app.bsky.actor.createScene', opts?.qp, data, opts)\n .catch((e) => {\n throw AppBskyActorCreateScene.toKnownErr(e)\n })\n }\n\n getProfile(\n params?: AppBskyActorGetProfile.QueryParams,\n opts?: AppBskyActorGetProfile.CallOptions,\n ): Promise<AppBskyActorGetProfile.Response> {\n return this._service.xrpc\n .call('app.bsky.actor.getProfile', params, undefined, opts)\n .catch((e) => {\n throw AppBskyActorGetProfile.toKnownErr(e)\n })\n }\n\n getSuggestions(\n params?: AppBskyActorGetSuggestions.QueryParams,\n opts?: AppBskyActorGetSuggestions.CallOptions,\n ): Promise<AppBskyActorGetSuggestions.Response> {\n return this._service.xrpc\n .call('app.bsky.actor.getSuggestions', params, undefined, opts)\n .catch((e) => {\n throw AppBskyActorGetSuggestions.toKnownErr(e)\n })\n }\n\n search(\n params?: AppBskyActorSearch.QueryParams,\n opts?: AppBskyActorSearch.CallOptions,\n ): Promise<AppBskyActorSearch.Response> {\n return this._service.xrpc\n .call('app.bsky.actor.search', params, undefined, opts)\n .catch((e) => {\n throw AppBskyActorSearch.toKnownErr(e)\n })\n }\n\n searchTypeahead(\n params?: AppBskyActorSearchTypeahead.QueryParams,\n opts?: AppBskyActorSearchTypeahead.CallOptions,\n ): Promise<AppBskyActorSearchTypeahead.Response> {\n return this._service.xrpc\n .call('app.bsky.actor.searchTypeahead', params, undefined, opts)\n .catch((e) => {\n throw AppBskyActorSearchTypeahead.toKnownErr(e)\n })\n }\n\n updateProfile(\n data?: AppBskyActorUpdateProfile.InputSchema,\n opts?: AppBskyActorUpdateProfile.CallOptions,\n ): Promise<AppBskyActorUpdateProfile.Response> {\n return this._service.xrpc\n .call('app.bsky.actor.updateProfile', opts?.qp, data, opts)\n .catch((e) => {\n throw AppBskyActorUpdateProfile.toKnownErr(e)\n })\n }\n}\n\nexport class ProfileRecord {\n _service: ServiceClient\n\n constructor(service: ServiceClient) {\n this._service = service\n }\n\n async list(\n params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>,\n ): Promise<{\n cursor?: string\n records: { uri: string; value: AppBskyActorProfile.Record }[]\n }> {\n const res = await this._service.xrpc.call('com.atproto.repo.listRecords', {\n collection: 'app.bsky.actor.profile',\n ...params,\n })\n return res.data\n }\n\n async get(\n params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,\n ): Promise<{ uri: string; cid: string; value: AppBskyActorProfile.Record }> {\n const res = await this._service.xrpc.call('com.atproto.repo.getRecord', {\n collection: 'app.bsky.actor.profile',\n ...params,\n })\n return res.data\n }\n\n async create(\n params: Omit<\n ComAtprotoRepoCreateRecord.InputSchema,\n 'collection' | 'record'\n >,\n record: AppBskyActorProfile.Record,\n headers?: Record<string, string>,\n ): Promise<{ uri: string; cid: string }> {\n record.$type = 'app.bsky.actor.profile'\n const res = await this._service.xrpc.call(\n 'com.atproto.repo.createRecord',\n undefined,\n { collection: 'app.bsky.actor.profile', ...params, record },\n { encoding: 'application/json', headers },\n )\n return res.data\n }\n\n async delete(\n params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,\n headers?: Record<string, string>,\n ): Promise<void> {\n await this._service.xrpc.call(\n 'com.atproto.repo.deleteRecord',\n undefined,\n { collection: 'app.bsky.actor.profile', ...params },\n { headers },\n )\n }\n}\n\nexport class EmbedNS {\n _service: ServiceClient\n\n constructor(service: ServiceClient) {\n this._service = service\n }\n}\n\nexport class FeedNS {\n _service: ServiceClient\n post: PostRecord\n repost: RepostRecord\n trend: TrendRecord\n vote: VoteRecord\n\n constructor(service: ServiceClient) {\n this._service = service\n this.post = new PostRecord(service)\n this.repost = new RepostRecord(service)\n this.trend = new TrendRecord(service)\n this.vote = new VoteRecord(service)\n }\n\n getAuthorFeed(\n params?: AppBskyFeedGetAuthorFeed.QueryParams,\n opts?: AppBskyFeedGetAuthorFeed.CallOptions,\n ): Promise<AppBskyFeedGetAuthorFeed.Response> {\n return this._service.xrpc\n .call('app.bsky.feed.getAuthorFeed', params, undefined, opts)\n .catch((e) => {\n throw AppBskyFeedGetAuthorFeed.toKnownErr(e)\n })\n }\n\n getPostThread(\n params?: AppBskyFeedGetPostThread.QueryParams,\n opts?: AppBskyFeedGetPostThread.CallOptions,\n ): Promise<AppBskyFeedGetPostThread.Response> {\n return this._service.xrpc\n .call('app.bsky.feed.getPostThread', params, undefined, opts)\n .catch((e) => {\n throw AppBskyFeedGetPostThread.toKnownErr(e)\n })\n }\n\n getRepostedBy(\n params?: AppBskyFeedGetRepostedBy.QueryParams,\n opts?: AppBskyFeedGetRepostedBy.CallOptions,\n ): Promise<AppBskyFeedGetRepostedBy.Response> {\n return this._service.xrpc\n .call('app.bsky.feed.getRepostedBy', params, undefined, opts)\n .catch((e) => {\n throw AppBskyFeedGetRepostedBy.toKnownErr(e)\n })\n }\n\n getTimeline(\n params?: AppBskyFeedGetTimeline.QueryParams,\n opts?: AppBskyFeedGetTimeline.CallOptions,\n ): Promise<AppBskyFeedGetTimeline.Response> {\n return this._service.xrpc\n .call('app.bsky.feed.getTimeline', params, undefined, opts)\n .catch((e) => {\n throw AppBskyFeedGetTimeline.toKnownErr(e)\n })\n }\n\n getVotes(\n params?: AppBskyFeedGetVotes.QueryParams,\n opts?: AppBskyFeedGetVotes.CallOptions,\n ): Promise<AppBskyFeedGetVotes.Response> {\n return this._service.xrpc\n .call('app.bsky.feed.getVotes', params, undefined, opts)\n .catch((e) => {\n throw AppBskyFeedGetVotes.toKnownErr(e)\n })\n }\n\n setVote(\n data?: AppBskyFeedSetVote.InputSchema,\n opts?: AppBskyFeedSetVote.CallOptions,\n ): Promise<AppBskyFeedSetVote.Response> {\n return this._service.xrpc\n .call('app.bsky.feed.setVote', opts?.qp, data, opts)\n .catch((e) => {\n throw AppBskyFeedSetVote.toKnownErr(e)\n })\n }\n}\n\nexport class PostRecord {\n _service: ServiceClient\n\n constructor(service: ServiceClient) {\n this._service = service\n }\n\n async list(\n params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>,\n ): Promise<{\n cursor?: string\n records: { uri: string; value: AppBskyFeedPost.Record }[]\n }> {\n const res = await this._service.xrpc.call('com.atproto.repo.listRecords', {\n collection: 'app.bsky.feed.post',\n ...params,\n })\n return res.data\n }\n\n async get(\n params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,\n ): Promise<{ uri: string; cid: string; value: AppBskyFeedPost.Record }> {\n const res = await this._service.xrpc.call('com.atproto.repo.getRecord', {\n collection: 'app.bsky.feed.post',\n ...params,\n })\n return res.data\n }\n\n async create(\n params: Omit<\n ComAtprotoRepoCreateRecord.InputSchema,\n 'collection' | 'record'\n >,\n record: AppBskyFeedPost.Record,\n headers?: Record<string, string>,\n ): Promise<{ uri: string; cid: string }> {\n record.$type = 'app.bsky.feed.post'\n const res = await this._service.xrpc.call(\n 'com.atproto.repo.createRecord',\n undefined,\n { collection: 'app.bsky.feed.post', ...params, record },\n { encoding: 'application/json', headers },\n )\n return res.data\n }\n\n async delete(\n params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,\n headers?: Record<string, string>,\n ): Promise<void> {\n await this._service.xrpc.call(\n 'com.atproto.repo.deleteRecord',\n undefined,\n { collection: 'app.bsky.feed.post', ...params },\n { headers },\n )\n }\n}\n\nexport class RepostRecord {\n _service: ServiceClient\n\n constructor(service: ServiceClient) {\n this._service = service\n }\n\n async list(\n params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>,\n ): Promise<{\n cursor?: string\n records: { uri: string; value: AppBskyFeedRepost.Record }[]\n }> {\n const res = await this._service.xrpc.call('com.atproto.repo.listRecords', {\n collection: 'app.bsky.feed.repost',\n ...params,\n })\n return res.data\n }\n\n async get(\n params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,\n ): Promise<{ uri: string; cid: string; value: AppBskyFeedRepost.Record }> {\n const res = await this._service.xrpc.call('com.atproto.repo.getRecord', {\n collection: 'app.bsky.feed.repost',\n ...params,\n })\n return res.data\n }\n\n async create(\n params: Omit<\n ComAtprotoRepoCreateRecord.InputSchema,\n 'collection' | 'record'\n >,\n record: AppBskyFeedRepost.Record,\n headers?: Record<string, string>,\n ): Promise<{ uri: string; cid: string }> {\n record.$type = 'app.bsky.feed.repost'\n const res = await this._service.xrpc.call(\n 'com.atproto.repo.createRecord',\n undefined,\n { collection: 'app.bsky.feed.repost', ...params, record },\n { encoding: 'application/json', headers },\n )\n return res.data\n }\n\n async delete(\n params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,\n headers?: Record<string, string>,\n ): Promise<void> {\n await this._service.xrpc.call(\n 'com.atproto.repo.deleteRecord',\n undefined,\n { collection: 'app.bsky.feed.repost', ...params },\n { headers },\n )\n }\n}\n\nexport class TrendRecord {\n _service: ServiceClient\n\n constructor(service: ServiceClient) {\n this._service = service\n }\n\n async list(\n params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>,\n ): Promise<{\n cursor?: string\n records: { uri: string; value: AppBskyFeedTrend.Record }[]\n }> {\n const res = await this._service.xrpc.call('com.atproto.repo.listRecords', {\n collection: 'app.bsky.feed.trend',\n ...params,\n })\n return res.data\n }\n\n async get(\n params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,\n ): Promise<{ uri: string; cid: string; value: AppBskyFeedTrend.Record }> {\n const res = await this._service.xrpc.call('com.atproto.repo.getRecord', {\n collection: 'app.bsky.feed.trend',\n ...params,\n })\n return res.data\n }\n\n async create(\n params: Omit<\n ComAtprotoRepoCreateRecord.InputSchema,\n 'collection' | 'record'\n >,\n record: AppBskyFeedTrend.Record,\n headers?: Record<string, string>,\n ): Promise<{ uri: string; cid: string }> {\n record.$type = 'app.bsky.feed.trend'\n const res = await this._service.xrpc.call(\n 'com.atproto.repo.createRecord',\n undefined,\n { collection: 'app.bsky.feed.trend', ...params, record },\n { encoding: 'application/json', headers },\n )\n return res.data\n }\n\n async delete(\n params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,\n headers?: Record<string, string>,\n ): Promise<void> {\n await this._service.xrpc.call(\n 'com.atproto.repo.deleteRecord',\n undefined,\n { collection: 'app.bsky.feed.trend', ...params },\n { headers },\n )\n }\n}\n\nexport class VoteRecord {\n _service: ServiceClient\n\n constructor(service: ServiceClient) {\n this._service = service\n }\n\n async list(\n params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>,\n ): Promise<{\n cursor?: string\n records: { uri: string; value: AppBskyFeedVote.Record }[]\n }> {\n const res = await this._service.xrpc.call('com.atproto.repo.listRecords', {\n collection: 'app.bsky.feed.vote',\n ...params,\n })\n return res.data\n }\n\n async get(\n params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,\n ): Promise<{ uri: string; cid: string; value: AppBskyFeedVote.Record }> {\n const res = await this._service.xrpc.call('com.atproto.repo.getRecord', {\n collection: 'app.bsky.feed.vote',\n ...params,\n })\n return res.data\n }\n\n async create(\n params: Omit<\n ComAtprotoRepoCreateRecord.InputSchema,\n 'collection' | 'record'\n >,\n record: AppBskyFeedVote.Record,\n headers?: Record<string, string>,\n ): Promise<{ uri: string; cid: string }> {\n record.$type = 'app.bsky.feed.vote'\n const res = await this._service.xrpc.call(\n 'com.atproto.repo.createRecord',\n undefined,\n { collection: 'app.bsky.feed.vote', ...params, record },\n { encoding: 'application/json', headers },\n )\n return res.data\n }\n\n async delete(\n params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,\n headers?: Record<string, string>,\n ): Promise<void> {\n await this._service.xrpc.call(\n 'com.atproto.repo.deleteRecord',\n undefined,\n { collection: 'app.bsky.feed.vote', ...params },\n { headers },\n )\n }\n}\n\nexport class GraphNS {\n _service: ServiceClient\n assertion: AssertionRecord\n confirmation: ConfirmationRecord\n follow: FollowRecord\n\n constructor(service: ServiceClient) {\n this._service = service\n this.assertion = new AssertionRecord(service)\n this.confirmation = new ConfirmationRecord(service)\n this.follow = new FollowRecord(service)\n }\n\n getAssertions(\n params?: AppBskyGraphGetAssertions.QueryParams,\n opts?: AppBskyGraphGetAssertions.CallOptions,\n ): Promise<AppBskyGraphGetAssertions.Response> {\n return this._service.xrpc\n .call('app.bsky.graph.getAssertions', params, undefined, opts)\n .catch((e) => {\n throw AppBskyGraphGetAssertions.toKnownErr(e)\n })\n }\n\n getFollowers(\n params?: AppBskyGraphGetFollowers.QueryParams,\n opts?: AppBskyGraphGetFollowers.CallOptions,\n ): Promise<AppBskyGraphGetFollowers.Response> {\n return this._service.xrpc\n .call('app.bsky.graph.getFollowers', params, undefined, opts)\n .catch((e) => {\n throw AppBskyGraphGetFollowers.toKnownErr(e)\n })\n }\n\n getFollows(\n params?: AppBskyGraphGetFollows.QueryParams,\n opts?: AppBskyGraphGetFollows.CallOptions,\n ): Promise<AppBskyGraphGetFollows.Response> {\n return this._service.xrpc\n .call('app.bsky.graph.getFollows', params, undefined, opts)\n .catch((e) => {\n throw AppBskyGraphGetFollows.toKnownErr(e)\n })\n }\n\n getMembers(\n params?: AppBskyGraphGetMembers.QueryParams,\n opts?: AppBskyGraphGetMembers.CallOptions,\n ): Promise<AppBskyGraphGetMembers.Response> {\n return this._service.xrpc\n .call('app.bsky.graph.getMembers', params, undefined, opts)\n .catch((e) => {\n throw AppBskyGraphGetMembers.toKnownErr(e)\n })\n }\n\n getMemberships(\n params?: AppBskyGraphGetMemberships.QueryParams,\n opts?: AppBskyGraphGetMemberships.CallOptions,\n ): Promise<AppBskyGraphGetMemberships.Response> {\n return this._service.xrpc\n .call('app.bsky.graph.getMemberships', params, undefined, opts)\n .catch((e) => {\n throw AppBskyGraphGetMemberships.toKnownErr(e)\n })\n }\n}\n\nexport class AssertionRecord {\n _service: ServiceClient\n\n constructor(service: ServiceClient) {\n this._service = service\n }\n\n async list(\n params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>,\n ): Promise<{\n cursor?: string\n records: { uri: string; value: AppBskyGraphAssertion.Record }[]\n }> {\n const res = await this._service.xrpc.call('com.atproto.repo.listRecords', {\n collection: 'app.bsky.graph.assertion',\n ...params,\n })\n return res.data\n }\n\n async get(\n params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,\n ): Promise<{\n uri: string\n cid: string\n value: AppBskyGraphAssertion.Record\n }> {\n const res = await this._service.xrpc.call('com.atproto.repo.getRecord', {\n collection: 'app.bsky.graph.assertion',\n ...params,\n })\n return res.data\n }\n\n async create(\n params: Omit<\n ComAtprotoRepoCreateRecord.InputSchema,\n 'collection' | 'record'\n >,\n record: AppBskyGraphAssertion.Record,\n headers?: Record<string, string>,\n ): Promise<{ uri: string; cid: string }> {\n record.$type = 'app.bsky.graph.assertion'\n const res = await this._service.xrpc.call(\n 'com.atproto.repo.createRecord',\n undefined,\n { collection: 'app.bsky.graph.assertion', ...params, record },\n { encoding: 'application/json', headers },\n )\n return res.data\n }\n\n async delete(\n params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,\n headers?: Record<string, string>,\n ): Promise<void> {\n await this._service.xrpc.call(\n 'com.atproto.repo.deleteRecord',\n undefined,\n { collection: 'app.bsky.graph.assertion', ...params },\n { headers },\n )\n }\n}\n\nexport class ConfirmationRecord {\n _service: ServiceClient\n\n constructor(service: ServiceClient) {\n this._service = service\n }\n\n async list(\n params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>,\n ): Promise<{\n cursor?: string\n records: { uri: string; value: AppBskyGraphConfirmation.Record }[]\n }> {\n const res = await this._service.xrpc.call('com.atproto.repo.listRecords', {\n collection: 'app.bsky.graph.confirmation',\n ...params,\n })\n return res.data\n }\n\n async get(\n params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,\n ): Promise<{\n uri: string\n cid: string\n value: AppBskyGraphConfirmation.Record\n }> {\n const res = await this._service.xrpc.call('com.atproto.repo.getRecord', {\n collection: 'app.bsky.graph.confirmation',\n ...params,\n })\n return res.data\n }\n\n async create(\n params: Omit<\n ComAtprotoRepoCreateRecord.InputSchema,\n 'collection' | 'record'\n >,\n record: AppBskyGraphConfirmation.Record,\n headers?: Record<string, string>,\n ): Promise<{ uri: string; cid: string }> {\n record.$type = 'app.bsky.graph.confirmation'\n const res = await this._service.xrpc.call(\n 'com.atproto.repo.createRecord',\n undefined,\n { collection: 'app.bsky.graph.confirmation', ...params, record },\n { encoding: 'application/json', headers },\n )\n return res.data\n }\n\n async delete(\n params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,\n headers?: Record<string, string>,\n ): Promise<void> {\n await this._service.xrpc.call(\n 'com.atproto.repo.deleteRecord',\n undefined,\n { collection: 'app.bsky.graph.confirmation', ...params },\n { headers },\n )\n }\n}\n\nexport class FollowRecord {\n _service: ServiceClient\n\n constructor(service: ServiceClient) {\n this._service = service\n }\n\n async list(\n params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>,\n ): Promise<{\n cursor?: string\n records: { uri: string; value: AppBskyGraphFollow.Record }[]\n }> {\n const res = await this._service.xrpc.call('com.atproto.repo.listRecords', {\n collection: 'app.bsky.graph.follow',\n ...params,\n })\n return res.data\n }\n\n async get(\n params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,\n ): Promise<{ uri: string; cid: string; value: AppBskyGraphFollow.Record }> {\n const res = await this._service.xrpc.call('com.atproto.repo.getRecord', {\n collection: 'app.bsky.graph.follow',\n ...params,\n })\n return res.data\n }\n\n async create(\n params: Omit<\n ComAtprotoRepoCreateRecord.InputSchema,\n 'collection' | 'record'\n >,\n record: AppBskyGraphFollow.Record,\n headers?: Record<string, string>,\n ): Promise<{ uri: string; cid: string }> {\n record.$type = 'app.bsky.graph.follow'\n const res = await this._service.xrpc.call(\n 'com.atproto.repo.createRecord',\n undefined,\n { collection: 'app.bsky.graph.follow', ...params, record },\n { encoding: 'application/json', headers },\n )\n return res.data\n }\n\n async delete(\n params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,\n headers?: Record<string, string>,\n ): Promise<void> {\n await this._service.xrpc.call(\n 'com.atproto.repo.deleteRecord',\n undefined,\n { collection: 'app.bsky.graph.follow', ...params },\n { headers },\n )\n }\n}\n\nexport class NotificationNS {\n _service: ServiceClient\n\n constructor(service: ServiceClient) {\n this._service = service\n }\n\n getCount(\n params?: AppBskyNotificationGetCount.QueryParams,\n opts?: AppBskyNotificationGetCount.CallOptions,\n ): Promise<AppBskyNotificationGetCount.Response> {\n return this._service.xrpc\n .call('app.bsky.notification.getCount', params, undefined, opts)\n .catch((e) => {\n throw AppBskyNotificationGetCount.toKnownErr(e)\n })\n }\n\n list(\n params?: AppBskyNotificationList.QueryParams,\n opts?: AppBskyNotificationList.CallOptions,\n ): Promise<AppBskyNotificationList.Response> {\n return this._service.xrpc\n .call('app.bsky.notification.list', params, undefined, opts)\n .catch((e) => {\n throw AppBskyNotificationList.toKnownErr(e)\n })\n }\n\n updateSeen(\n data?: AppBskyNotificationUpdateSeen.InputSchema,\n opts?: AppBskyNotificationUpdateSeen.CallOptions,\n ): Promise<AppBskyNotificationUpdateSeen.Response> {\n return this._service.xrpc\n .call('app.bsky.notification.updateSeen', opts?.qp, data, opts)\n .catch((e) => {\n throw AppBskyNotificationUpdateSeen.toKnownErr(e)\n })\n }\n}\n\nexport class SystemNS {\n _service: ServiceClient\n declaration: DeclarationRecord\n\n constructor(service: ServiceClient) {\n this._service = service\n this.declaration = new DeclarationRecord(service)\n }\n}\n\nexport class DeclarationRecord {\n _service: ServiceClient\n\n constructor(service: ServiceClient) {\n this._service = service\n }\n\n async list(\n params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>,\n ): Promise<{\n cursor?: string\n records: { uri: string; value: AppBskySystemDeclaration.Record }[]\n }> {\n const res = await this._service.xrpc.call('com.atproto.repo.listRecords', {\n collection: 'app.bsky.system.declaration',\n ...params,\n })\n return res.data\n }\n\n async get(\n params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,\n ): Promise<{\n uri: string\n cid: string\n value: AppBskySystemDeclaration.Record\n }> {\n const res = await this._service.xrpc.call('com.atproto.repo.getRecord', {\n collection: 'app.bsky.system.declaration',\n ...params,\n })\n return res.data\n }\n\n async create(\n params: Omit<\n ComAtprotoRepoCreateRecord.InputSchema,\n 'collection' | 'record'\n >,\n record: AppBskySystemDeclaration.Record,\n headers?: Record<string, string>,\n ): Promise<{ uri: string; cid: string }> {\n record.$type = 'app.bsky.system.declaration'\n const res = await this._service.xrpc.call(\n 'com.atproto.repo.createRecord',\n undefined,\n { collection: 'app.bsky.system.declaration', ...params, record },\n { encoding: 'application/json', headers },\n )\n return res.data\n }\n\n async delete(\n params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,\n headers?: Record<string, string>,\n ): Promise<void> {\n await this._service.xrpc.call(\n 'com.atproto.repo.deleteRecord',\n undefined,\n { collection: 'app.bsky.system.declaration', ...params },\n { headers },\n )\n }\n}\n", "import {\n CallOptions,\n Client as XrpcClient,\n ServiceClient as XrpcServiceClient,\n QueryParams,\n ResponseType,\n XRPCError,\n XRPCResponse,\n} from '@atproto/xrpc'\nimport EventEmitter from 'events'\nimport TypedEmitter from 'typed-emitter'\nimport { Client, ServiceClient } from './client'\nimport * as CreateSession from './client/types/com/atproto/session/create'\nimport * as RefreshSession from './client/types/com/atproto/session/refresh'\nimport * as CreateAccount from './client/types/com/atproto/session/create'\n\nconst CREATE_SESSION = 'com.atproto.session.create'\nconst REFRESH_SESSION = 'com.atproto.session.refresh'\nconst DELETE_SESSION = 'com.atproto.session.delete'\nconst CREATE_ACCOUNT = 'com.atproto.account.create'\n\nexport class SessionClient extends Client {\n service(serviceUri: string | URL): SessionServiceClient {\n const xrpcService = new SessionXrpcServiceClient(this.xrpc, serviceUri)\n return new SessionServiceClient(this, xrpcService)\n }\n}\n\nconst defaultInst = new SessionClient()\nexport default defaultInst\n\nexport class SessionServiceClient extends ServiceClient {\n xrpc: SessionXrpcServiceClient\n sessionManager: SessionManager\n constructor(baseClient: Client, xrpcService: SessionXrpcServiceClient) {\n super(baseClient, xrpcService)\n this.sessionManager = this.xrpc.sessionManager\n }\n}\n\nexport class SessionXrpcServiceClient extends XrpcServiceClient {\n sessionManager = new SessionManager()\n refreshing?: Promise<XRPCResponse>\n\n constructor(baseClient: XrpcClient, serviceUri: string | URL) {\n super(baseClient, serviceUri)\n this.sessionManager.on('session', () => {\n // Maintain access token headers when session changes\n const accessHeaders = this.sessionManager.accessHeaders()\n if (accessHeaders) {\n this.setHeader('authorization', accessHeaders.authorization)\n } else {\n this.unsetHeader('authorization')\n }\n })\n }\n\n async call(\n methodNsid: string,\n params?: QueryParams,\n data?: unknown,\n opts?: CallOptions,\n ) {\n const original = (overrideOpts?: CallOptions) =>\n super.call(methodNsid, params, data, overrideOpts ?? opts)\n\n // If someone is setting credentials manually, pass through as an escape hatch\n if (opts?.headers?.authorization) {\n return await original()\n }\n\n // Manage concurrent refreshes on session refresh\n if (methodNsid === REFRESH_SESSION) {\n return await this.refresh(opts)\n }\n\n // Complete any pending session refresh and then continue onto the original request with fresh credentials\n await this.refreshing\n\n // Setup session on session or account creation\n if (methodNsid === CREATE_SESSION || methodNsid === CREATE_ACCOUNT) {\n const result = await original()\n const { accessJwt, refreshJwt } =\n result.data as CreateSession.OutputSchema & CreateAccount.OutputSchema\n this.sessionManager.set({ accessJwt, refreshJwt })\n return result\n }\n\n // Clear session on session deletion\n if (methodNsid === DELETE_SESSION) {\n const result = await original({\n ...opts,\n headers: {\n ...opts?.headers,\n ...this.sessionManager.refreshHeaders(),\n },\n })\n this.sessionManager.unset()\n return result\n }\n\n // For all other requests, if failed due to an expired token, refresh and retry with fresh credentials\n try {\n return await original()\n } catch (err) {\n if (\n err instanceof XRPCError &&\n err.status === ResponseType.InvalidRequest &&\n err.error === 'ExpiredToken' &&\n this.sessionManager.active()\n ) {\n await this.refresh(opts)\n return await original()\n }\n throw err\n }\n }\n\n // Ensures a single refresh request at a time, deduping concurrent requests.\n async refresh(opts?: CallOptions) {\n this.refreshing ??= this._refresh(opts)\n try {\n return await this.refreshing\n } finally {\n this.refreshing = undefined\n }\n }\n\n private async _refresh(opts?: CallOptions) {\n try {\n const result = await super.call(REFRESH_SESSION, undefined, undefined, {\n ...opts,\n headers: {\n ...opts?.headers,\n ...this.sessionManager.refreshHeaders(),\n },\n })\n const { accessJwt, refreshJwt } =\n result.data as RefreshSession.OutputSchema\n this.sessionManager.set({ accessJwt, refreshJwt })\n return result\n } catch (err) {\n if (\n err instanceof XRPCError &&\n err.status === ResponseType.InvalidRequest &&\n (err.error === 'ExpiredToken' || err.error === 'InvalidToken')\n ) {\n this.sessionManager.unset()\n }\n throw err\n }\n }\n}\n\nexport class SessionManager extends (EventEmitter as new () => TypedEmitter<SessionEvents>) {\n session?: Session\n get() {\n return this.session\n }\n set(session: Session) {\n this.session = session\n this.emit('session', session)\n }\n unset() {\n this.session = undefined\n this.emit('session', undefined)\n }\n active() {\n return !!this.session\n }\n accessHeaders() {\n return (\n this.session && {\n authorization: `Bearer ${this.session.accessJwt}`,\n }\n )\n }\n refreshHeaders() {\n return (\n this.session && {\n authorization: `Bearer ${this.session.refreshJwt}`,\n }\n )\n }\n}\n\nexport type Session = {\n refreshJwt: string\n accessJwt: string\n}\n\ntype SessionEvents = {\n session: (session?: Session) => void\n}\n"], - "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAAAA;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iCAAAC;AAAA,EAAA,+BAAAC;AAAA,EAAA,4BAAAC;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA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AAAA,EACd;AAAA,EACA,IAAI,SAAkB;AACpB,SAAK,UAAU;AACf,SAAK,KAAK,WAAW,OAAO;AAAA,EAC9B;AAAA,EACA,QAAQ;AACN,SAAK,UAAU;AACf,SAAK,KAAK,WAAW,MAAS;AAAA,EAChC;AAAA,EACA,SAAS;AACP,WAAO,CAAC,CAAC,KAAK;AAAA,EAChB;AAAA,EACA,gBAAgB;AACd,WACE,KAAK,WAAW;AAAA,MACd,eAAe,UAAU,KAAK,QAAQ;AAAA,IACxC;AAAA,EAEJ;AAAA,EACA,iBAAiB;AACf,WACE,KAAK,WAAW;AAAA,MACd,eAAe,UAAU,KAAK,QAAQ;AAAA,IACxC;AAAA,EAEJ;AACF;", - "names": ["Client", "create_exports", "delete_exports", "get_exports", "ServiceClient", "util", "object", "array", "params", "errorUtil", "errorMap", "ctx", "result", "objectUtil", "issues", "schemas", "elements", "processed", "ZodFirstPartyTypeKind", "ResponseType", "lexicons", "lexicons", "validate", "lexicons", "lexicons", "validate", "lexicons", "lexicons", "params", "params", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "create_exports", "toKnownErr", "toKnownErr", "delete_exports", "toKnownErr", "toKnownErr", "get_exports", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "HandleNotAvailableError", "InvalidHandleError", "toKnownErr", "InvalidHandleError", "HandleNotAvailableError", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "toKnownErr", "MAIN", "MAIN", "MAIN", "Client", "ServiceClient", "defaultInst", "toKnownErr", "params", "Client", "defaultInst", "ServiceClient", "params", "EventEmitter"] -} diff --git a/src/third-party/api/src/client/index.d.ts b/src/third-party/api/src/client/index.d.ts deleted file mode 100644 index f9e846d59..000000000 --- a/src/third-party/api/src/client/index.d.ts +++ /dev/null @@ -1,462 +0,0 @@ -import { Client as XrpcClient, ServiceClient as XrpcServiceClient } from '@atproto/xrpc'; -import * as ComAtprotoAccountCreate from './types/com/atproto/account/create'; -import * as ComAtprotoAccountCreateInviteCode from './types/com/atproto/account/createInviteCode'; -import * as ComAtprotoAccountDelete from './types/com/atproto/account/delete'; -import * as ComAtprotoAccountGet from './types/com/atproto/account/get'; -import * as ComAtprotoAccountRequestPasswordReset from './types/com/atproto/account/requestPasswordReset'; -import * as ComAtprotoAccountResetPassword from './types/com/atproto/account/resetPassword'; -import * as ComAtprotoBlobUpload from './types/com/atproto/blob/upload'; -import * as ComAtprotoHandleResolve from './types/com/atproto/handle/resolve'; -import * as ComAtprotoRepoBatchWrite from './types/com/atproto/repo/batchWrite'; -import * as ComAtprotoRepoCreateRecord from './types/com/atproto/repo/createRecord'; -import * as ComAtprotoRepoDeleteRecord from './types/com/atproto/repo/deleteRecord'; -import * as ComAtprotoRepoDescribe from './types/com/atproto/repo/describe'; -import * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord'; -import * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords'; -import * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord'; -import * as ComAtprotoServerGetAccountsConfig from './types/com/atproto/server/getAccountsConfig'; -import * as ComAtprotoSessionCreate from './types/com/atproto/session/create'; -import * as ComAtprotoSessionDelete from './types/com/atproto/session/delete'; -import * as ComAtprotoSessionGet from './types/com/atproto/session/get'; -import * as ComAtprotoSessionRefresh from './types/com/atproto/session/refresh'; -import * as ComAtprotoSyncGetRepo from './types/com/atproto/sync/getRepo'; -import * as ComAtprotoSyncGetRoot from './types/com/atproto/sync/getRoot'; -import * as ComAtprotoSyncUpdateRepo from './types/com/atproto/sync/updateRepo'; -import * as AppBskyActorCreateScene from './types/app/bsky/actor/createScene'; -import * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile'; -import * as AppBskyActorGetSuggestions from './types/app/bsky/actor/getSuggestions'; -import * as AppBskyActorProfile from './types/app/bsky/actor/profile'; -import * as AppBskyActorSearch from './types/app/bsky/actor/search'; -import * as AppBskyActorSearchTypeahead from './types/app/bsky/actor/searchTypeahead'; -import * as AppBskyActorUpdateProfile from './types/app/bsky/actor/updateProfile'; -import * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed'; -import * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread'; -import * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy'; -import * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline'; -import * as AppBskyFeedGetVotes from './types/app/bsky/feed/getVotes'; -import * as AppBskyFeedPost from './types/app/bsky/feed/post'; -import * as AppBskyFeedRepost from './types/app/bsky/feed/repost'; -import * as AppBskyFeedSetVote from './types/app/bsky/feed/setVote'; -import * as AppBskyFeedTrend from './types/app/bsky/feed/trend'; -import * as AppBskyFeedVote from './types/app/bsky/feed/vote'; -import * as AppBskyGraphAssertion from './types/app/bsky/graph/assertion'; -import * as AppBskyGraphConfirmation from './types/app/bsky/graph/confirmation'; -import * as AppBskyGraphFollow from './types/app/bsky/graph/follow'; -import * as AppBskyGraphGetAssertions from './types/app/bsky/graph/getAssertions'; -import * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers'; -import * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows'; -import * as AppBskyGraphGetMembers from './types/app/bsky/graph/getMembers'; -import * as AppBskyGraphGetMemberships from './types/app/bsky/graph/getMemberships'; -import * as AppBskyNotificationGetCount from './types/app/bsky/notification/getCount'; -import * as AppBskyNotificationList from './types/app/bsky/notification/list'; -import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen'; -import * as AppBskySystemDeclaration from './types/app/bsky/system/declaration'; -export * as ComAtprotoAccountCreate from './types/com/atproto/account/create'; -export * as ComAtprotoAccountCreateInviteCode from './types/com/atproto/account/createInviteCode'; -export * as ComAtprotoAccountDelete from './types/com/atproto/account/delete'; -export * as ComAtprotoAccountGet from './types/com/atproto/account/get'; -export * as ComAtprotoAccountRequestPasswordReset from './types/com/atproto/account/requestPasswordReset'; -export * as ComAtprotoAccountResetPassword from './types/com/atproto/account/resetPassword'; -export * as ComAtprotoBlobUpload from './types/com/atproto/blob/upload'; -export * as ComAtprotoHandleResolve from './types/com/atproto/handle/resolve'; -export * as ComAtprotoRepoBatchWrite from './types/com/atproto/repo/batchWrite'; -export * as ComAtprotoRepoCreateRecord from './types/com/atproto/repo/createRecord'; -export * as ComAtprotoRepoDeleteRecord from './types/com/atproto/repo/deleteRecord'; -export * as ComAtprotoRepoDescribe from './types/com/atproto/repo/describe'; -export * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord'; -export * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords'; -export * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord'; -export * as ComAtprotoRepoStrongRef from './types/com/atproto/repo/strongRef'; -export * as ComAtprotoServerGetAccountsConfig from './types/com/atproto/server/getAccountsConfig'; -export * as ComAtprotoSessionCreate from './types/com/atproto/session/create'; -export * as ComAtprotoSessionDelete from './types/com/atproto/session/delete'; -export * as ComAtprotoSessionGet from './types/com/atproto/session/get'; -export * as ComAtprotoSessionRefresh from './types/com/atproto/session/refresh'; -export * as ComAtprotoSyncGetRepo from './types/com/atproto/sync/getRepo'; -export * as ComAtprotoSyncGetRoot from './types/com/atproto/sync/getRoot'; -export * as ComAtprotoSyncUpdateRepo from './types/com/atproto/sync/updateRepo'; -export * as AppBskyActorCreateScene from './types/app/bsky/actor/createScene'; -export * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile'; -export * as AppBskyActorGetSuggestions from './types/app/bsky/actor/getSuggestions'; -export * as AppBskyActorProfile from './types/app/bsky/actor/profile'; -export * as AppBskyActorRef from './types/app/bsky/actor/ref'; -export * as AppBskyActorSearch from './types/app/bsky/actor/search'; -export * as AppBskyActorSearchTypeahead from './types/app/bsky/actor/searchTypeahead'; -export * as AppBskyActorUpdateProfile from './types/app/bsky/actor/updateProfile'; -export * as AppBskyEmbedExternal from './types/app/bsky/embed/external'; -export * as AppBskyEmbedImages from './types/app/bsky/embed/images'; -export * as AppBskyFeedFeedViewPost from './types/app/bsky/feed/feedViewPost'; -export * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed'; -export * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread'; -export * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy'; -export * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline'; -export * as AppBskyFeedGetVotes from './types/app/bsky/feed/getVotes'; -export * as AppBskyFeedPost from './types/app/bsky/feed/post'; -export * as AppBskyFeedRepost from './types/app/bsky/feed/repost'; -export * as AppBskyFeedSetVote from './types/app/bsky/feed/setVote'; -export * as AppBskyFeedTrend from './types/app/bsky/feed/trend'; -export * as AppBskyFeedVote from './types/app/bsky/feed/vote'; -export * as AppBskyGraphAssertCreator from './types/app/bsky/graph/assertCreator'; -export * as AppBskyGraphAssertMember from './types/app/bsky/graph/assertMember'; -export * as AppBskyGraphAssertion from './types/app/bsky/graph/assertion'; -export * as AppBskyGraphConfirmation from './types/app/bsky/graph/confirmation'; -export * as AppBskyGraphFollow from './types/app/bsky/graph/follow'; -export * as AppBskyGraphGetAssertions from './types/app/bsky/graph/getAssertions'; -export * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers'; -export * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows'; -export * as AppBskyGraphGetMembers from './types/app/bsky/graph/getMembers'; -export * as AppBskyGraphGetMemberships from './types/app/bsky/graph/getMemberships'; -export * as AppBskyNotificationGetCount from './types/app/bsky/notification/getCount'; -export * as AppBskyNotificationList from './types/app/bsky/notification/list'; -export * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen'; -export * as AppBskySystemActorScene from './types/app/bsky/system/actorScene'; -export * as AppBskySystemActorUser from './types/app/bsky/system/actorUser'; -export * as AppBskySystemDeclRef from './types/app/bsky/system/declRef'; -export * as AppBskySystemDeclaration from './types/app/bsky/system/declaration'; -export declare const APP_BSKY_GRAPH: { - AssertCreator: string; - AssertMember: string; -}; -export declare const APP_BSKY_SYSTEM: { - ActorScene: string; - ActorUser: string; -}; -export declare class Client { - xrpc: XrpcClient; - constructor(); - service(serviceUri: string | URL): ServiceClient; -} -declare const defaultInst: Client; -export default defaultInst; -export declare class ServiceClient { - _baseClient: Client; - xrpc: XrpcServiceClient; - com: ComNS; - app: AppNS; - constructor(baseClient: Client, xrpcService: XrpcServiceClient); - setHeader(key: string, value: string): void; -} -export declare class ComNS { - _service: ServiceClient; - atproto: AtprotoNS; - constructor(service: ServiceClient); -} -export declare class AtprotoNS { - _service: ServiceClient; - account: AccountNS; - blob: BlobNS; - handle: HandleNS; - repo: RepoNS; - server: ServerNS; - session: SessionNS; - sync: SyncNS; - constructor(service: ServiceClient); -} -export declare class AccountNS { - _service: ServiceClient; - constructor(service: ServiceClient); - create(data?: ComAtprotoAccountCreate.InputSchema, opts?: ComAtprotoAccountCreate.CallOptions): Promise<ComAtprotoAccountCreate.Response>; - createInviteCode(data?: ComAtprotoAccountCreateInviteCode.InputSchema, opts?: ComAtprotoAccountCreateInviteCode.CallOptions): Promise<ComAtprotoAccountCreateInviteCode.Response>; - delete(data?: ComAtprotoAccountDelete.InputSchema, opts?: ComAtprotoAccountDelete.CallOptions): Promise<ComAtprotoAccountDelete.Response>; - get(params?: ComAtprotoAccountGet.QueryParams, opts?: ComAtprotoAccountGet.CallOptions): Promise<ComAtprotoAccountGet.Response>; - requestPasswordReset(data?: ComAtprotoAccountRequestPasswordReset.InputSchema, opts?: ComAtprotoAccountRequestPasswordReset.CallOptions): Promise<ComAtprotoAccountRequestPasswordReset.Response>; - resetPassword(data?: ComAtprotoAccountResetPassword.InputSchema, opts?: ComAtprotoAccountResetPassword.CallOptions): Promise<ComAtprotoAccountResetPassword.Response>; -} -export declare class BlobNS { - _service: ServiceClient; - constructor(service: ServiceClient); - upload(data?: ComAtprotoBlobUpload.InputSchema, opts?: ComAtprotoBlobUpload.CallOptions): Promise<ComAtprotoBlobUpload.Response>; -} -export declare class HandleNS { - _service: ServiceClient; - constructor(service: ServiceClient); - resolve(params?: ComAtprotoHandleResolve.QueryParams, opts?: ComAtprotoHandleResolve.CallOptions): Promise<ComAtprotoHandleResolve.Response>; -} -export declare class RepoNS { - _service: ServiceClient; - constructor(service: ServiceClient); - batchWrite(data?: ComAtprotoRepoBatchWrite.InputSchema, opts?: ComAtprotoRepoBatchWrite.CallOptions): Promise<ComAtprotoRepoBatchWrite.Response>; - createRecord(data?: ComAtprotoRepoCreateRecord.InputSchema, opts?: ComAtprotoRepoCreateRecord.CallOptions): Promise<ComAtprotoRepoCreateRecord.Response>; - deleteRecord(data?: ComAtprotoRepoDeleteRecord.InputSchema, opts?: ComAtprotoRepoDeleteRecord.CallOptions): Promise<ComAtprotoRepoDeleteRecord.Response>; - describe(params?: ComAtprotoRepoDescribe.QueryParams, opts?: ComAtprotoRepoDescribe.CallOptions): Promise<ComAtprotoRepoDescribe.Response>; - getRecord(params?: ComAtprotoRepoGetRecord.QueryParams, opts?: ComAtprotoRepoGetRecord.CallOptions): Promise<ComAtprotoRepoGetRecord.Response>; - listRecords(params?: ComAtprotoRepoListRecords.QueryParams, opts?: ComAtprotoRepoListRecords.CallOptions): Promise<ComAtprotoRepoListRecords.Response>; - putRecord(data?: ComAtprotoRepoPutRecord.InputSchema, opts?: ComAtprotoRepoPutRecord.CallOptions): Promise<ComAtprotoRepoPutRecord.Response>; -} -export declare class ServerNS { - _service: ServiceClient; - constructor(service: ServiceClient); - getAccountsConfig(params?: ComAtprotoServerGetAccountsConfig.QueryParams, opts?: ComAtprotoServerGetAccountsConfig.CallOptions): Promise<ComAtprotoServerGetAccountsConfig.Response>; -} -export declare class SessionNS { - _service: ServiceClient; - constructor(service: ServiceClient); - create(data?: ComAtprotoSessionCreate.InputSchema, opts?: ComAtprotoSessionCreate.CallOptions): Promise<ComAtprotoSessionCreate.Response>; - delete(data?: ComAtprotoSessionDelete.InputSchema, opts?: ComAtprotoSessionDelete.CallOptions): Promise<ComAtprotoSessionDelete.Response>; - get(params?: ComAtprotoSessionGet.QueryParams, opts?: ComAtprotoSessionGet.CallOptions): Promise<ComAtprotoSessionGet.Response>; - refresh(data?: ComAtprotoSessionRefresh.InputSchema, opts?: ComAtprotoSessionRefresh.CallOptions): Promise<ComAtprotoSessionRefresh.Response>; -} -export declare class SyncNS { - _service: ServiceClient; - constructor(service: ServiceClient); - getRepo(params?: ComAtprotoSyncGetRepo.QueryParams, opts?: ComAtprotoSyncGetRepo.CallOptions): Promise<ComAtprotoSyncGetRepo.Response>; - getRoot(params?: ComAtprotoSyncGetRoot.QueryParams, opts?: ComAtprotoSyncGetRoot.CallOptions): Promise<ComAtprotoSyncGetRoot.Response>; - updateRepo(data?: ComAtprotoSyncUpdateRepo.InputSchema, opts?: ComAtprotoSyncUpdateRepo.CallOptions): Promise<ComAtprotoSyncUpdateRepo.Response>; -} -export declare class AppNS { - _service: ServiceClient; - bsky: BskyNS; - constructor(service: ServiceClient); -} -export declare class BskyNS { - _service: ServiceClient; - actor: ActorNS; - embed: EmbedNS; - feed: FeedNS; - graph: GraphNS; - notification: NotificationNS; - system: SystemNS; - constructor(service: ServiceClient); -} -export declare class ActorNS { - _service: ServiceClient; - profile: ProfileRecord; - constructor(service: ServiceClient); - createScene(data?: AppBskyActorCreateScene.InputSchema, opts?: AppBskyActorCreateScene.CallOptions): Promise<AppBskyActorCreateScene.Response>; - getProfile(params?: AppBskyActorGetProfile.QueryParams, opts?: AppBskyActorGetProfile.CallOptions): Promise<AppBskyActorGetProfile.Response>; - getSuggestions(params?: AppBskyActorGetSuggestions.QueryParams, opts?: AppBskyActorGetSuggestions.CallOptions): Promise<AppBskyActorGetSuggestions.Response>; - search(params?: AppBskyActorSearch.QueryParams, opts?: AppBskyActorSearch.CallOptions): Promise<AppBskyActorSearch.Response>; - searchTypeahead(params?: AppBskyActorSearchTypeahead.QueryParams, opts?: AppBskyActorSearchTypeahead.CallOptions): Promise<AppBskyActorSearchTypeahead.Response>; - updateProfile(data?: AppBskyActorUpdateProfile.InputSchema, opts?: AppBskyActorUpdateProfile.CallOptions): Promise<AppBskyActorUpdateProfile.Response>; -} -export declare class ProfileRecord { - _service: ServiceClient; - constructor(service: ServiceClient); - list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{ - cursor?: string; - records: { - uri: string; - value: AppBskyActorProfile.Record; - }[]; - }>; - get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{ - uri: string; - cid: string; - value: AppBskyActorProfile.Record; - }>; - create(params: Omit<ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record'>, record: AppBskyActorProfile.Record, headers?: Record<string, string>): Promise<{ - uri: string; - cid: string; - }>; - delete(params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>; -} -export declare class EmbedNS { - _service: ServiceClient; - constructor(service: ServiceClient); -} -export declare class FeedNS { - _service: ServiceClient; - post: PostRecord; - repost: RepostRecord; - trend: TrendRecord; - vote: VoteRecord; - constructor(service: ServiceClient); - getAuthorFeed(params?: AppBskyFeedGetAuthorFeed.QueryParams, opts?: AppBskyFeedGetAuthorFeed.CallOptions): Promise<AppBskyFeedGetAuthorFeed.Response>; - getPostThread(params?: AppBskyFeedGetPostThread.QueryParams, opts?: AppBskyFeedGetPostThread.CallOptions): Promise<AppBskyFeedGetPostThread.Response>; - getRepostedBy(params?: AppBskyFeedGetRepostedBy.QueryParams, opts?: AppBskyFeedGetRepostedBy.CallOptions): Promise<AppBskyFeedGetRepostedBy.Response>; - getTimeline(params?: AppBskyFeedGetTimeline.QueryParams, opts?: AppBskyFeedGetTimeline.CallOptions): Promise<AppBskyFeedGetTimeline.Response>; - getVotes(params?: AppBskyFeedGetVotes.QueryParams, opts?: AppBskyFeedGetVotes.CallOptions): Promise<AppBskyFeedGetVotes.Response>; - setVote(data?: AppBskyFeedSetVote.InputSchema, opts?: AppBskyFeedSetVote.CallOptions): Promise<AppBskyFeedSetVote.Response>; -} -export declare class PostRecord { - _service: ServiceClient; - constructor(service: ServiceClient); - list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{ - cursor?: string; - records: { - uri: string; - value: AppBskyFeedPost.Record; - }[]; - }>; - get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{ - uri: string; - cid: string; - value: AppBskyFeedPost.Record; - }>; - create(params: Omit<ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record'>, record: AppBskyFeedPost.Record, headers?: Record<string, string>): Promise<{ - uri: string; - cid: string; - }>; - delete(params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>; -} -export declare class RepostRecord { - _service: ServiceClient; - constructor(service: ServiceClient); - list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{ - cursor?: string; - records: { - uri: string; - value: AppBskyFeedRepost.Record; - }[]; - }>; - get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{ - uri: string; - cid: string; - value: AppBskyFeedRepost.Record; - }>; - create(params: Omit<ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record'>, record: AppBskyFeedRepost.Record, headers?: Record<string, string>): Promise<{ - uri: string; - cid: string; - }>; - delete(params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>; -} -export declare class TrendRecord { - _service: ServiceClient; - constructor(service: ServiceClient); - list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{ - cursor?: string; - records: { - uri: string; - value: AppBskyFeedTrend.Record; - }[]; - }>; - get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{ - uri: string; - cid: string; - value: AppBskyFeedTrend.Record; - }>; - create(params: Omit<ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record'>, record: AppBskyFeedTrend.Record, headers?: Record<string, string>): Promise<{ - uri: string; - cid: string; - }>; - delete(params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>; -} -export declare class VoteRecord { - _service: ServiceClient; - constructor(service: ServiceClient); - list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{ - cursor?: string; - records: { - uri: string; - value: AppBskyFeedVote.Record; - }[]; - }>; - get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{ - uri: string; - cid: string; - value: AppBskyFeedVote.Record; - }>; - create(params: Omit<ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record'>, record: AppBskyFeedVote.Record, headers?: Record<string, string>): Promise<{ - uri: string; - cid: string; - }>; - delete(params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>; -} -export declare class GraphNS { - _service: ServiceClient; - assertion: AssertionRecord; - confirmation: ConfirmationRecord; - follow: FollowRecord; - constructor(service: ServiceClient); - getAssertions(params?: AppBskyGraphGetAssertions.QueryParams, opts?: AppBskyGraphGetAssertions.CallOptions): Promise<AppBskyGraphGetAssertions.Response>; - getFollowers(params?: AppBskyGraphGetFollowers.QueryParams, opts?: AppBskyGraphGetFollowers.CallOptions): Promise<AppBskyGraphGetFollowers.Response>; - getFollows(params?: AppBskyGraphGetFollows.QueryParams, opts?: AppBskyGraphGetFollows.CallOptions): Promise<AppBskyGraphGetFollows.Response>; - getMembers(params?: AppBskyGraphGetMembers.QueryParams, opts?: AppBskyGraphGetMembers.CallOptions): Promise<AppBskyGraphGetMembers.Response>; - getMemberships(params?: AppBskyGraphGetMemberships.QueryParams, opts?: AppBskyGraphGetMemberships.CallOptions): Promise<AppBskyGraphGetMemberships.Response>; -} -export declare class AssertionRecord { - _service: ServiceClient; - constructor(service: ServiceClient); - list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{ - cursor?: string; - records: { - uri: string; - value: AppBskyGraphAssertion.Record; - }[]; - }>; - get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{ - uri: string; - cid: string; - value: AppBskyGraphAssertion.Record; - }>; - create(params: Omit<ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record'>, record: AppBskyGraphAssertion.Record, headers?: Record<string, string>): Promise<{ - uri: string; - cid: string; - }>; - delete(params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>; -} -export declare class ConfirmationRecord { - _service: ServiceClient; - constructor(service: ServiceClient); - list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{ - cursor?: string; - records: { - uri: string; - value: AppBskyGraphConfirmation.Record; - }[]; - }>; - get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{ - uri: string; - cid: string; - value: AppBskyGraphConfirmation.Record; - }>; - create(params: Omit<ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record'>, record: AppBskyGraphConfirmation.Record, headers?: Record<string, string>): Promise<{ - uri: string; - cid: string; - }>; - delete(params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>; -} -export declare class FollowRecord { - _service: ServiceClient; - constructor(service: ServiceClient); - list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{ - cursor?: string; - records: { - uri: string; - value: AppBskyGraphFollow.Record; - }[]; - }>; - get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{ - uri: string; - cid: string; - value: AppBskyGraphFollow.Record; - }>; - create(params: Omit<ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record'>, record: AppBskyGraphFollow.Record, headers?: Record<string, string>): Promise<{ - uri: string; - cid: string; - }>; - delete(params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>; -} -export declare class NotificationNS { - _service: ServiceClient; - constructor(service: ServiceClient); - getCount(params?: AppBskyNotificationGetCount.QueryParams, opts?: AppBskyNotificationGetCount.CallOptions): Promise<AppBskyNotificationGetCount.Response>; - list(params?: AppBskyNotificationList.QueryParams, opts?: AppBskyNotificationList.CallOptions): Promise<AppBskyNotificationList.Response>; - updateSeen(data?: AppBskyNotificationUpdateSeen.InputSchema, opts?: AppBskyNotificationUpdateSeen.CallOptions): Promise<AppBskyNotificationUpdateSeen.Response>; -} -export declare class SystemNS { - _service: ServiceClient; - declaration: DeclarationRecord; - constructor(service: ServiceClient); -} -export declare class DeclarationRecord { - _service: ServiceClient; - constructor(service: ServiceClient); - list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{ - cursor?: string; - records: { - uri: string; - value: AppBskySystemDeclaration.Record; - }[]; - }>; - get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{ - uri: string; - cid: string; - value: AppBskySystemDeclaration.Record; - }>; - create(params: Omit<ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record'>, record: AppBskySystemDeclaration.Record, headers?: Record<string, string>): Promise<{ - uri: string; - cid: string; - }>; - delete(params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>; -} diff --git a/src/third-party/api/src/client/lexicons.d.ts b/src/third-party/api/src/client/lexicons.d.ts deleted file mode 100644 index cd51af468..000000000 --- a/src/third-party/api/src/client/lexicons.d.ts +++ /dev/null @@ -1,2910 +0,0 @@ -import { LexiconDoc, Lexicons } from '@atproto/lexicon'; -export declare const schemaDict: { - ComAtprotoAccountCreate: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - input: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - email: { - type: string; - }; - handle: { - type: string; - }; - inviteCode: { - type: string; - }; - password: { - type: string; - }; - recoveryKey: { - type: string; - }; - }; - }; - }; - output: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - accessJwt: { - type: string; - }; - refreshJwt: { - type: string; - }; - handle: { - type: string; - }; - did: { - type: string; - }; - }; - }; - }; - errors: { - name: string; - }[]; - }; - }; - }; - ComAtprotoAccountCreateInviteCode: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - input: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - useCount: { - type: string; - }; - }; - }; - }; - output: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - code: { - type: string; - }; - }; - }; - }; - }; - }; - }; - ComAtprotoAccountDelete: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - }; - }; - }; - ComAtprotoAccountGet: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - }; - }; - }; - ComAtprotoAccountRequestPasswordReset: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - input: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - email: { - type: string; - }; - }; - }; - }; - }; - }; - }; - ComAtprotoAccountResetPassword: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - input: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - token: { - type: string; - }; - password: { - type: string; - }; - }; - }; - }; - errors: { - name: string; - }[]; - }; - }; - }; - ComAtprotoBlobUpload: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - input: { - encoding: string; - }; - output: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - cid: { - type: string; - }; - }; - }; - }; - }; - }; - }; - ComAtprotoHandleResolve: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - parameters: { - type: string; - properties: { - handle: { - type: string; - description: string; - }; - }; - }; - output: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - did: { - type: string; - }; - }; - }; - }; - }; - }; - }; - ComAtprotoRepoBatchWrite: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - input: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - did: { - type: string; - description: string; - }; - validate: { - type: string; - default: boolean; - description: string; - }; - writes: { - type: string; - items: { - type: string; - refs: string[]; - closed: boolean; - }; - }; - }; - }; - }; - }; - create: { - type: string; - required: string[]; - properties: { - action: { - type: string; - const: string; - }; - collection: { - type: string; - }; - rkey: { - type: string; - }; - value: { - type: string; - }; - }; - }; - update: { - type: string; - required: string[]; - properties: { - action: { - type: string; - const: string; - }; - collection: { - type: string; - }; - rkey: { - type: string; - }; - value: { - type: string; - }; - }; - }; - delete: { - type: string; - required: string[]; - properties: { - action: { - type: string; - const: string; - }; - collection: { - type: string; - }; - rkey: { - type: string; - }; - }; - }; - }; - }; - ComAtprotoRepoCreateRecord: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - input: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - did: { - type: string; - description: string; - }; - collection: { - type: string; - description: string; - }; - validate: { - type: string; - default: boolean; - description: string; - }; - record: { - type: string; - description: string; - }; - }; - }; - }; - output: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - uri: { - type: string; - }; - cid: { - type: string; - }; - }; - }; - }; - }; - }; - }; - ComAtprotoRepoDeleteRecord: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - input: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - did: { - type: string; - description: string; - }; - collection: { - type: string; - description: string; - }; - rkey: { - type: string; - description: string; - }; - }; - }; - }; - }; - }; - }; - ComAtprotoRepoDescribe: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - parameters: { - type: string; - required: string[]; - properties: { - user: { - type: string; - description: string; - }; - }; - }; - output: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - handle: { - type: string; - }; - did: { - type: string; - }; - didDoc: { - type: string; - }; - collections: { - type: string; - items: { - type: string; - }; - }; - handleIsCorrect: { - type: string; - }; - }; - }; - }; - }; - }; - }; - ComAtprotoRepoGetRecord: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - parameters: { - type: string; - required: string[]; - properties: { - user: { - type: string; - description: string; - }; - collection: { - type: string; - description: string; - }; - rkey: { - type: string; - description: string; - }; - cid: { - type: string; - description: string; - }; - }; - }; - output: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - uri: { - type: string; - }; - cid: { - type: string; - }; - value: { - type: string; - }; - }; - }; - }; - }; - }; - }; - ComAtprotoRepoListRecords: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - parameters: { - type: string; - required: string[]; - properties: { - user: { - type: string; - description: string; - }; - collection: { - type: string; - description: string; - }; - limit: { - type: string; - minimum: number; - maximum: number; - default: number; - description: string; - }; - before: { - type: string; - description: string; - }; - after: { - type: string; - description: string; - }; - reverse: { - type: string; - description: string; - }; - }; - }; - output: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - cursor: { - type: string; - }; - records: { - type: string; - items: { - type: string; - ref: string; - }; - }; - }; - }; - }; - }; - record: { - type: string; - required: string[]; - properties: { - uri: { - type: string; - }; - cid: { - type: string; - }; - value: { - type: string; - }; - }; - }; - }; - }; - ComAtprotoRepoPutRecord: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - input: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - did: { - type: string; - description: string; - }; - collection: { - type: string; - description: string; - }; - rkey: { - type: string; - description: string; - }; - validate: { - type: string; - default: boolean; - description: string; - }; - record: { - type: string; - description: string; - }; - }; - }; - }; - output: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - uri: { - type: string; - }; - cid: { - type: string; - }; - }; - }; - }; - }; - }; - }; - ComAtprotoRepoStrongRef: { - lexicon: number; - id: string; - description: string; - defs: { - main: { - type: string; - required: string[]; - properties: { - uri: { - type: string; - }; - cid: { - type: string; - }; - }; - }; - }; - }; - ComAtprotoServerGetAccountsConfig: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - output: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - inviteCodeRequired: { - type: string; - }; - availableUserDomains: { - type: string; - items: { - type: string; - }; - }; - links: { - type: string; - ref: string; - }; - }; - }; - }; - }; - links: { - type: string; - properties: { - privacyPolicy: { - type: string; - }; - termsOfService: { - type: string; - }; - }; - }; - }; - }; - ComAtprotoSessionCreate: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - input: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - handle: { - type: string; - }; - password: { - type: string; - }; - }; - }; - }; - output: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - accessJwt: { - type: string; - }; - refreshJwt: { - type: string; - }; - handle: { - type: string; - }; - did: { - type: string; - }; - }; - }; - }; - }; - }; - }; - ComAtprotoSessionDelete: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - }; - }; - }; - ComAtprotoSessionGet: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - output: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - handle: { - type: string; - }; - did: { - type: string; - }; - }; - }; - }; - }; - }; - }; - ComAtprotoSessionRefresh: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - output: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - accessJwt: { - type: string; - }; - refreshJwt: { - type: string; - }; - handle: { - type: string; - }; - did: { - type: string; - }; - }; - }; - }; - }; - }; - }; - ComAtprotoSyncGetRepo: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - parameters: { - type: string; - required: string[]; - properties: { - did: { - type: string; - description: string; - }; - from: { - type: string; - description: string; - }; - }; - }; - output: { - encoding: string; - }; - }; - }; - }; - ComAtprotoSyncGetRoot: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - parameters: { - type: string; - required: string[]; - properties: { - did: { - type: string; - description: string; - }; - }; - }; - output: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - root: { - type: string; - }; - }; - }; - }; - }; - }; - }; - ComAtprotoSyncUpdateRepo: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - parameters: { - type: string; - required: string[]; - properties: { - did: { - type: string; - description: string; - }; - }; - }; - input: { - encoding: string; - }; - }; - }; - }; - AppBskyActorCreateScene: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - input: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - handle: { - type: string; - }; - recoveryKey: { - type: string; - }; - }; - }; - }; - output: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - handle: { - type: string; - }; - did: { - type: string; - }; - declaration: { - type: string; - ref: string; - }; - }; - }; - }; - errors: { - name: string; - }[]; - }; - }; - }; - AppBskyActorGetProfile: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - parameters: { - type: string; - required: string[]; - properties: { - actor: { - type: string; - }; - }; - }; - output: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - did: { - type: string; - }; - declaration: { - type: string; - ref: string; - }; - handle: { - type: string; - }; - creator: { - type: string; - }; - displayName: { - type: string; - maxLength: number; - }; - description: { - type: string; - maxLength: number; - }; - avatar: { - type: string; - }; - banner: { - type: string; - }; - followersCount: { - type: string; - }; - followsCount: { - type: string; - }; - membersCount: { - type: string; - }; - postsCount: { - type: string; - }; - myState: { - type: string; - ref: string; - }; - }; - }; - }; - }; - myState: { - type: string; - properties: { - follow: { - type: string; - }; - member: { - type: string; - }; - }; - }; - }; - }; - AppBskyActorGetSuggestions: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - parameters: { - type: string; - properties: { - limit: { - type: string; - minimum: number; - maximum: number; - default: number; - }; - cursor: { - type: string; - }; - }; - }; - output: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - cursor: { - type: string; - }; - actors: { - type: string; - items: { - type: string; - ref: string; - }; - }; - }; - }; - }; - }; - actor: { - type: string; - required: string[]; - properties: { - did: { - type: string; - }; - declaration: { - type: string; - ref: string; - }; - handle: { - type: string; - }; - displayName: { - type: string; - maxLength: number; - }; - description: { - type: string; - }; - avatar: { - type: string; - }; - indexedAt: { - type: string; - }; - myState: { - type: string; - ref: string; - }; - }; - }; - myState: { - type: string; - properties: { - follow: { - type: string; - }; - }; - }; - }; - }; - AppBskyActorProfile: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - key: string; - record: { - type: string; - required: string[]; - properties: { - displayName: { - type: string; - maxLength: number; - }; - description: { - type: string; - maxLength: number; - }; - avatar: { - type: string; - accept: string[]; - maxWidth: number; - maxHeight: number; - maxSize: number; - }; - banner: { - type: string; - accept: string[]; - maxWidth: number; - maxHeight: number; - maxSize: number; - }; - }; - }; - }; - }; - }; - AppBskyActorRef: { - lexicon: number; - id: string; - description: string; - defs: { - main: { - type: string; - required: string[]; - properties: { - did: { - type: string; - }; - declarationCid: { - type: string; - }; - }; - }; - withInfo: { - type: string; - required: string[]; - properties: { - did: { - type: string; - }; - declaration: { - type: string; - ref: string; - }; - handle: { - type: string; - }; - displayName: { - type: string; - maxLength: number; - }; - avatar: { - type: string; - }; - }; - }; - }; - }; - AppBskyActorSearch: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - parameters: { - type: string; - required: string[]; - properties: { - term: { - type: string; - }; - limit: { - type: string; - minimum: number; - maximum: number; - default: number; - }; - before: { - type: string; - }; - }; - }; - output: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - cursor: { - type: string; - }; - users: { - type: string; - items: { - type: string; - ref: string; - }; - }; - }; - }; - }; - }; - user: { - type: string; - required: string[]; - properties: { - did: { - type: string; - }; - declaration: { - type: string; - ref: string; - }; - handle: { - type: string; - }; - displayName: { - type: string; - maxLength: number; - }; - avatar: { - type: string; - }; - description: { - type: string; - }; - indexedAt: { - type: string; - }; - }; - }; - }; - }; - AppBskyActorSearchTypeahead: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - parameters: { - type: string; - required: string[]; - properties: { - term: { - type: string; - }; - limit: { - type: string; - minimum: number; - maximum: number; - default: number; - }; - }; - }; - output: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - users: { - type: string; - items: { - type: string; - ref: string; - }; - }; - }; - }; - }; - }; - user: { - type: string; - required: string[]; - properties: { - did: { - type: string; - }; - declaration: { - type: string; - ref: string; - }; - handle: { - type: string; - }; - displayName: { - type: string; - maxLength: number; - }; - avatar: { - type: string; - }; - }; - }; - }; - }; - AppBskyActorUpdateProfile: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - input: { - encoding: string; - schema: { - type: string; - properties: { - did: { - type: string; - }; - displayName: { - type: string; - maxLength: number; - }; - description: { - type: string; - maxLength: number; - }; - avatar: { - type: string; - accept: string[]; - maxWidth: number; - maxHeight: number; - maxSize: number; - }; - banner: { - type: string; - accept: string[]; - maxWidth: number; - maxHeight: number; - maxSize: number; - }; - }; - }; - }; - output: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - uri: { - type: string; - }; - cid: { - type: string; - }; - record: { - type: string; - }; - }; - }; - }; - errors: { - name: string; - }[]; - }; - }; - }; - AppBskyEmbedExternal: { - lexicon: number; - id: string; - description: string; - defs: { - main: { - type: string; - required: string[]; - properties: { - external: { - type: string; - ref: string; - }; - }; - }; - external: { - type: string; - required: string[]; - properties: { - uri: { - type: string; - }; - title: { - type: string; - }; - description: { - type: string; - }; - thumb: { - type: string; - accept: string[]; - maxWidth: number; - maxHeight: number; - maxSize: number; - }; - }; - }; - presented: { - type: string; - required: string[]; - properties: { - external: { - type: string; - ref: string; - }; - }; - }; - presentedExternal: { - type: string; - required: string[]; - properties: { - uri: { - type: string; - }; - title: { - type: string; - }; - description: { - type: string; - }; - thumb: { - type: string; - }; - }; - }; - }; - }; - AppBskyEmbedImages: { - lexicon: number; - id: string; - description: string; - defs: { - main: { - type: string; - required: string[]; - properties: { - images: { - type: string; - items: { - type: string; - ref: string; - }; - maxLength: number; - }; - }; - }; - image: { - type: string; - required: string[]; - properties: { - image: { - type: string; - accept: string[]; - maxWidth: number; - maxHeight: number; - maxSize: number; - }; - alt: { - type: string; - }; - }; - }; - presented: { - type: string; - required: string[]; - properties: { - images: { - type: string; - items: { - type: string; - ref: string; - }; - maxLength: number; - }; - }; - }; - presentedImage: { - type: string; - required: string[]; - properties: { - thumb: { - type: string; - }; - fullsize: { - type: string; - }; - alt: { - type: string; - }; - }; - }; - }; - }; - AppBskyFeedFeedViewPost: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - required: string[]; - properties: { - post: { - type: string; - ref: string; - }; - reply: { - type: string; - ref: string; - }; - reason: { - type: string; - refs: string[]; - }; - }; - }; - replyRef: { - type: string; - required: string[]; - properties: { - root: { - type: string; - ref: string; - }; - parent: { - type: string; - ref: string; - }; - }; - }; - reasonTrend: { - type: string; - required: string[]; - properties: { - by: { - type: string; - ref: string; - }; - indexedAt: { - type: string; - }; - }; - }; - reasonRepost: { - type: string; - required: string[]; - properties: { - by: { - type: string; - ref: string; - }; - indexedAt: { - type: string; - }; - }; - }; - }; - }; - AppBskyFeedGetAuthorFeed: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - parameters: { - type: string; - required: string[]; - properties: { - author: { - type: string; - }; - limit: { - type: string; - minimum: number; - maximum: number; - default: number; - }; - before: { - type: string; - }; - }; - }; - output: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - cursor: { - type: string; - }; - feed: { - type: string; - items: { - type: string; - ref: string; - }; - }; - }; - }; - }; - }; - }; - }; - AppBskyFeedGetPostThread: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - parameters: { - type: string; - required: string[]; - properties: { - uri: { - type: string; - }; - depth: { - type: string; - }; - }; - }; - output: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - thread: { - type: string; - refs: string[]; - }; - }; - }; - }; - errors: { - name: string; - }[]; - }; - threadViewPost: { - type: string; - required: string[]; - properties: { - post: { - type: string; - ref: string; - }; - parent: { - type: string; - refs: string[]; - }; - replies: { - type: string; - items: { - type: string; - refs: string[]; - }; - }; - }; - }; - notFoundPost: { - type: string; - required: string[]; - properties: { - uri: { - type: string; - }; - notFound: { - type: string; - const: boolean; - }; - }; - }; - }; - }; - AppBskyFeedGetRepostedBy: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - parameters: { - type: string; - required: string[]; - properties: { - uri: { - type: string; - }; - cid: { - type: string; - }; - limit: { - type: string; - minimum: number; - maximum: number; - default: number; - }; - before: { - type: string; - }; - }; - }; - output: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - uri: { - type: string; - }; - cid: { - type: string; - }; - cursor: { - type: string; - }; - repostedBy: { - type: string; - items: { - type: string; - ref: string; - }; - }; - }; - }; - }; - }; - repostedBy: { - type: string; - required: string[]; - properties: { - did: { - type: string; - }; - declaration: { - type: string; - ref: string; - }; - handle: { - type: string; - }; - displayName: { - type: string; - maxLength: number; - }; - avatar: { - type: string; - }; - createdAt: { - type: string; - }; - indexedAt: { - type: string; - }; - }; - }; - }; - }; - AppBskyFeedGetTimeline: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - parameters: { - type: string; - properties: { - algorithm: { - type: string; - }; - limit: { - type: string; - minimum: number; - maximum: number; - default: number; - }; - before: { - type: string; - }; - }; - }; - output: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - cursor: { - type: string; - }; - feed: { - type: string; - items: { - type: string; - ref: string; - }; - }; - }; - }; - }; - }; - }; - }; - AppBskyFeedGetVotes: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - parameters: { - type: string; - required: string[]; - properties: { - uri: { - type: string; - }; - cid: { - type: string; - }; - direction: { - type: string; - enum: string[]; - }; - limit: { - type: string; - minimum: number; - maximum: number; - default: number; - }; - before: { - type: string; - }; - }; - }; - output: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - uri: { - type: string; - }; - cid: { - type: string; - }; - cursor: { - type: string; - }; - votes: { - type: string; - items: { - type: string; - ref: string; - }; - }; - }; - }; - }; - }; - vote: { - type: string; - required: string[]; - properties: { - direction: { - type: string; - enum: string[]; - }; - indexedAt: { - type: string; - }; - createdAt: { - type: string; - }; - actor: { - type: string; - ref: string; - }; - }; - }; - }; - }; - AppBskyFeedPost: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - key: string; - record: { - type: string; - required: string[]; - properties: { - text: { - type: string; - maxLength: number; - }; - entities: { - type: string; - items: { - type: string; - ref: string; - }; - }; - reply: { - type: string; - ref: string; - }; - embed: { - type: string; - refs: string[]; - }; - createdAt: { - type: string; - }; - }; - }; - }; - replyRef: { - type: string; - required: string[]; - properties: { - root: { - type: string; - ref: string; - }; - parent: { - type: string; - ref: string; - }; - }; - }; - entity: { - type: string; - required: string[]; - properties: { - index: { - type: string; - ref: string; - }; - type: { - type: string; - description: string; - }; - value: { - type: string; - }; - }; - }; - textSlice: { - type: string; - required: string[]; - properties: { - start: { - type: string; - minimum: number; - }; - end: { - type: string; - minimum: number; - }; - }; - }; - view: { - type: string; - required: string[]; - properties: { - uri: { - type: string; - }; - cid: { - type: string; - }; - author: { - type: string; - ref: string; - }; - record: { - type: string; - }; - embed: { - type: string; - refs: string[]; - }; - replyCount: { - type: string; - }; - repostCount: { - type: string; - }; - upvoteCount: { - type: string; - }; - downvoteCount: { - type: string; - }; - indexedAt: { - type: string; - }; - viewer: { - type: string; - ref: string; - }; - }; - }; - viewerState: { - type: string; - properties: { - repost: { - type: string; - }; - upvote: { - type: string; - }; - downvote: { - type: string; - }; - }; - }; - }; - }; - AppBskyFeedRepost: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - key: string; - record: { - type: string; - required: string[]; - properties: { - subject: { - type: string; - ref: string; - }; - createdAt: { - type: string; - }; - }; - }; - }; - }; - }; - AppBskyFeedSetVote: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - input: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - subject: { - type: string; - ref: string; - }; - direction: { - type: string; - enum: string[]; - }; - }; - }; - }; - output: { - encoding: string; - schema: { - type: string; - properties: { - upvote: { - type: string; - }; - downvote: { - type: string; - }; - }; - }; - }; - }; - }; - }; - AppBskyFeedTrend: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - key: string; - record: { - type: string; - required: string[]; - properties: { - subject: { - type: string; - ref: string; - }; - createdAt: { - type: string; - }; - }; - }; - }; - }; - }; - AppBskyFeedVote: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - key: string; - record: { - type: string; - required: string[]; - properties: { - subject: { - type: string; - ref: string; - }; - direction: { - type: string; - enum: string[]; - }; - createdAt: { - type: string; - }; - }; - }; - }; - }; - }; - AppBskyGraphAssertCreator: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - }; - }; - }; - AppBskyGraphAssertMember: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - }; - }; - }; - AppBskyGraphAssertion: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - key: string; - record: { - type: string; - required: string[]; - properties: { - assertion: { - type: string; - }; - subject: { - type: string; - ref: string; - }; - createdAt: { - type: string; - }; - }; - }; - }; - }; - }; - AppBskyGraphConfirmation: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - key: string; - record: { - type: string; - required: string[]; - properties: { - originator: { - type: string; - ref: string; - }; - assertion: { - type: string; - ref: string; - }; - createdAt: { - type: string; - }; - }; - }; - }; - }; - }; - AppBskyGraphFollow: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - key: string; - record: { - type: string; - required: string[]; - properties: { - subject: { - type: string; - ref: string; - }; - createdAt: { - type: string; - }; - }; - }; - }; - }; - }; - AppBskyGraphGetAssertions: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - parameters: { - type: string; - properties: { - author: { - type: string; - }; - subject: { - type: string; - }; - assertion: { - type: string; - }; - confirmed: { - type: string; - }; - limit: { - type: string; - minimum: number; - maximum: number; - default: number; - }; - before: { - type: string; - }; - }; - }; - output: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - cursor: { - type: string; - }; - assertions: { - type: string; - items: { - type: string; - ref: string; - }; - }; - }; - }; - }; - }; - assertion: { - type: string; - required: string[]; - properties: { - uri: { - type: string; - }; - cid: { - type: string; - }; - assertion: { - type: string; - }; - confirmation: { - type: string; - ref: string; - }; - author: { - type: string; - ref: string; - }; - subject: { - type: string; - ref: string; - }; - indexedAt: { - type: string; - }; - createdAt: { - type: string; - }; - }; - }; - confirmation: { - type: string; - required: string[]; - properties: { - uri: { - type: string; - }; - cid: { - type: string; - }; - indexedAt: { - type: string; - }; - createdAt: { - type: string; - }; - }; - }; - }; - }; - AppBskyGraphGetFollowers: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - parameters: { - type: string; - required: string[]; - properties: { - user: { - type: string; - }; - limit: { - type: string; - minimum: number; - maximum: number; - default: number; - }; - before: { - type: string; - }; - }; - }; - output: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - subject: { - type: string; - ref: string; - }; - cursor: { - type: string; - }; - followers: { - type: string; - items: { - type: string; - ref: string; - }; - }; - }; - }; - }; - }; - follower: { - type: string; - required: string[]; - properties: { - did: { - type: string; - }; - declaration: { - type: string; - ref: string; - }; - handle: { - type: string; - }; - displayName: { - type: string; - maxLength: number; - }; - avatar: { - type: string; - }; - createdAt: { - type: string; - }; - indexedAt: { - type: string; - }; - }; - }; - }; - }; - AppBskyGraphGetFollows: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - parameters: { - type: string; - required: string[]; - properties: { - user: { - type: string; - }; - limit: { - type: string; - minimum: number; - maximum: number; - default: number; - }; - before: { - type: string; - }; - }; - }; - output: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - subject: { - type: string; - ref: string; - }; - cursor: { - type: string; - }; - follows: { - type: string; - items: { - type: string; - ref: string; - }; - }; - }; - }; - }; - }; - follow: { - type: string; - required: string[]; - properties: { - did: { - type: string; - }; - declaration: { - type: string; - ref: string; - }; - handle: { - type: string; - }; - displayName: { - type: string; - maxLength: number; - }; - createdAt: { - type: string; - }; - indexedAt: { - type: string; - }; - }; - }; - }; - }; - AppBskyGraphGetMembers: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - parameters: { - type: string; - required: string[]; - properties: { - actor: { - type: string; - }; - limit: { - type: string; - minimum: number; - maximum: number; - default: number; - }; - before: { - type: string; - }; - }; - }; - output: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - subject: { - type: string; - ref: string; - }; - cursor: { - type: string; - }; - members: { - type: string; - items: { - type: string; - ref: string; - }; - }; - }; - }; - }; - }; - member: { - type: string; - required: string[]; - properties: { - did: { - type: string; - }; - declaration: { - type: string; - ref: string; - }; - handle: { - type: string; - }; - displayName: { - type: string; - maxLength: number; - }; - createdAt: { - type: string; - }; - indexedAt: { - type: string; - }; - }; - }; - }; - }; - AppBskyGraphGetMemberships: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - parameters: { - type: string; - required: string[]; - properties: { - actor: { - type: string; - }; - limit: { - type: string; - minimum: number; - maximum: number; - default: number; - }; - before: { - type: string; - }; - }; - }; - output: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - subject: { - type: string; - ref: string; - }; - cursor: { - type: string; - }; - memberships: { - type: string; - items: { - type: string; - ref: string; - }; - }; - }; - }; - }; - }; - membership: { - type: string; - required: string[]; - properties: { - did: { - type: string; - }; - declaration: { - type: string; - ref: string; - }; - handle: { - type: string; - }; - displayName: { - type: string; - maxLength: number; - }; - createdAt: { - type: string; - }; - indexedAt: { - type: string; - }; - }; - }; - }; - }; - AppBskyNotificationGetCount: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - output: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - count: { - type: string; - }; - }; - }; - }; - }; - }; - }; - AppBskyNotificationList: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - parameters: { - type: string; - properties: { - limit: { - type: string; - minimum: number; - maximum: number; - default: number; - }; - before: { - type: string; - }; - }; - }; - output: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - cursor: { - type: string; - }; - notifications: { - type: string; - items: { - type: string; - ref: string; - }; - }; - }; - }; - }; - }; - notification: { - type: string; - required: string[]; - properties: { - uri: { - type: string; - }; - cid: { - type: string; - }; - author: { - type: string; - ref: string; - }; - reason: { - type: string; - description: string; - knownValues: string[]; - }; - reasonSubject: { - type: string; - }; - record: { - type: string; - }; - isRead: { - type: string; - }; - indexedAt: { - type: string; - }; - }; - }; - }; - }; - AppBskyNotificationUpdateSeen: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - input: { - encoding: string; - schema: { - type: string; - required: string[]; - properties: { - seenAt: { - type: string; - }; - }; - }; - }; - }; - }; - }; - AppBskySystemActorScene: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - }; - }; - }; - AppBskySystemActorUser: { - lexicon: number; - id: string; - defs: { - main: { - type: string; - description: string; - }; - }; - }; - AppBskySystemDeclRef: { - lexicon: number; - id: string; - defs: { - main: { - description: string; - type: string; - required: string[]; - properties: { - cid: { - type: string; - }; - actorType: { - type: string; - knownValues: string[]; - }; - }; - }; - }; - }; - AppBskySystemDeclaration: { - lexicon: number; - id: string; - defs: { - main: { - description: string; - type: string; - key: string; - record: { - type: string; - required: string[]; - properties: { - actorType: { - type: string; - knownValues: string[]; - }; - }; - }; - }; - }; - }; -}; -export declare const schemas: LexiconDoc[]; -export declare const lexicons: Lexicons; -export declare const ids: { - ComAtprotoAccountCreate: string; - ComAtprotoAccountCreateInviteCode: string; - ComAtprotoAccountDelete: string; - ComAtprotoAccountGet: string; - ComAtprotoAccountRequestPasswordReset: string; - ComAtprotoAccountResetPassword: string; - ComAtprotoBlobUpload: string; - ComAtprotoHandleResolve: string; - ComAtprotoRepoBatchWrite: string; - ComAtprotoRepoCreateRecord: string; - ComAtprotoRepoDeleteRecord: string; - ComAtprotoRepoDescribe: string; - ComAtprotoRepoGetRecord: string; - ComAtprotoRepoListRecords: string; - ComAtprotoRepoPutRecord: string; - ComAtprotoRepoStrongRef: string; - ComAtprotoServerGetAccountsConfig: string; - ComAtprotoSessionCreate: string; - ComAtprotoSessionDelete: string; - ComAtprotoSessionGet: string; - ComAtprotoSessionRefresh: string; - ComAtprotoSyncGetRepo: string; - ComAtprotoSyncGetRoot: string; - ComAtprotoSyncUpdateRepo: string; - AppBskyActorCreateScene: string; - AppBskyActorGetProfile: string; - AppBskyActorGetSuggestions: string; - AppBskyActorProfile: string; - AppBskyActorRef: string; - AppBskyActorSearch: string; - AppBskyActorSearchTypeahead: string; - AppBskyActorUpdateProfile: string; - AppBskyEmbedExternal: string; - AppBskyEmbedImages: string; - AppBskyFeedFeedViewPost: string; - AppBskyFeedGetAuthorFeed: string; - AppBskyFeedGetPostThread: string; - AppBskyFeedGetRepostedBy: string; - AppBskyFeedGetTimeline: string; - AppBskyFeedGetVotes: string; - AppBskyFeedPost: string; - AppBskyFeedRepost: string; - AppBskyFeedSetVote: string; - AppBskyFeedTrend: string; - AppBskyFeedVote: string; - AppBskyGraphAssertCreator: string; - AppBskyGraphAssertMember: string; - AppBskyGraphAssertion: string; - AppBskyGraphConfirmation: string; - AppBskyGraphFollow: string; - AppBskyGraphGetAssertions: string; - AppBskyGraphGetFollowers: string; - AppBskyGraphGetFollows: string; - AppBskyGraphGetMembers: string; - AppBskyGraphGetMemberships: string; - AppBskyNotificationGetCount: string; - AppBskyNotificationList: string; - AppBskyNotificationUpdateSeen: string; - AppBskySystemActorScene: string; - AppBskySystemActorUser: string; - AppBskySystemDeclRef: string; - AppBskySystemDeclaration: string; -}; diff --git a/src/third-party/api/src/client/schemas.d.ts b/src/third-party/api/src/client/schemas.d.ts deleted file mode 100644 index 9275a2ce4..000000000 --- a/src/third-party/api/src/client/schemas.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { MethodSchema, RecordSchema } from '@atproto/lexicon'; -export declare const methodSchemaDict: Record<string, MethodSchema>; -export declare const methodSchemas: MethodSchema[]; -export declare const ids: { - AppBskyActorProfile: string; - AppBskyFeedMediaEmbed: string; - AppBskyFeedPost: string; - AppBskyFeedRepost: string; - AppBskyFeedTrend: string; - AppBskyFeedVote: string; - AppBskyGraphAssertion: string; - AppBskyGraphConfirmation: string; - AppBskyGraphFollow: string; - AppBskySystemDeclaration: string; -}; -export declare const recordSchemaDict: Record<string, RecordSchema>; -export declare const recordSchemas: RecordSchema[]; diff --git a/src/third-party/api/src/client/types/app/bsky/actor/createScene.d.ts b/src/third-party/api/src/client/types/app/bsky/actor/createScene.d.ts deleted file mode 100644 index 99eb5a4b9..000000000 --- a/src/third-party/api/src/client/types/app/bsky/actor/createScene.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { Headers, XRPCError } from '@atproto/xrpc'; -import * as AppBskySystemDeclRef from '../system/declRef'; -export interface QueryParams { -} -export interface InputSchema { - handle: string; - recoveryKey?: string; - [k: string]: unknown; -} -export interface OutputSchema { - handle: string; - did: string; - declaration: AppBskySystemDeclRef.Main; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; - qp?: QueryParams; - encoding: 'application/json'; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare class InvalidHandleError extends XRPCError { - constructor(src: XRPCError); -} -export declare class HandleNotAvailableError extends XRPCError { - constructor(src: XRPCError); -} -export declare function toKnownErr(e: any): any; diff --git a/src/third-party/api/src/client/types/app/bsky/actor/getProfile.d.ts b/src/third-party/api/src/client/types/app/bsky/actor/getProfile.d.ts deleted file mode 100644 index 2cb4e3d2b..000000000 --- a/src/third-party/api/src/client/types/app/bsky/actor/getProfile.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -import * as AppBskySystemDeclRef from '../system/declRef'; -export interface QueryParams { - actor: string; -} -export declare type InputSchema = undefined; -export interface OutputSchema { - did: string; - declaration: AppBskySystemDeclRef.Main; - handle: string; - creator: string; - displayName?: string; - description?: string; - avatar?: string; - banner?: string; - followersCount: number; - followsCount: number; - membersCount: number; - postsCount: number; - myState?: MyState; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare function toKnownErr(e: any): any; -export interface MyState { - follow?: string; - member?: string; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/app/bsky/actor/getSuggestions.d.ts b/src/third-party/api/src/client/types/app/bsky/actor/getSuggestions.d.ts deleted file mode 100644 index 0d9524a76..000000000 --- a/src/third-party/api/src/client/types/app/bsky/actor/getSuggestions.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -import * as AppBskySystemDeclRef from '../system/declRef'; -export interface QueryParams { - limit?: number; - cursor?: string; -} -export declare type InputSchema = undefined; -export interface OutputSchema { - cursor?: string; - actors: Actor[]; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare function toKnownErr(e: any): any; -export interface Actor { - did: string; - declaration: AppBskySystemDeclRef.Main; - handle: string; - displayName?: string; - description?: string; - avatar?: string; - indexedAt?: string; - myState?: MyState; - [k: string]: unknown; -} -export interface MyState { - follow?: string; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/app/bsky/actor/profile.d.ts b/src/third-party/api/src/client/types/app/bsky/actor/profile.d.ts deleted file mode 100644 index 527903783..000000000 --- a/src/third-party/api/src/client/types/app/bsky/actor/profile.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -export interface Record { - displayName: string; - description?: string; - avatar?: { - cid: string; - mimeType: string; - [k: string]: unknown; - }; - banner?: { - cid: string; - mimeType: string; - [k: string]: unknown; - }; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/app/bsky/actor/ref.d.ts b/src/third-party/api/src/client/types/app/bsky/actor/ref.d.ts deleted file mode 100644 index 5234b1bf0..000000000 --- a/src/third-party/api/src/client/types/app/bsky/actor/ref.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import * as AppBskySystemDeclRef from '../system/declRef'; -export interface Main { - did: string; - declarationCid: string; - [k: string]: unknown; -} -export interface WithInfo { - did: string; - declaration: AppBskySystemDeclRef.Main; - handle: string; - displayName?: string; - avatar?: string; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/app/bsky/actor/search.d.ts b/src/third-party/api/src/client/types/app/bsky/actor/search.d.ts deleted file mode 100644 index 115649b30..000000000 --- a/src/third-party/api/src/client/types/app/bsky/actor/search.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -import * as AppBskySystemDeclRef from '../system/declRef'; -export interface QueryParams { - term: string; - limit?: number; - before?: string; -} -export declare type InputSchema = undefined; -export interface OutputSchema { - cursor?: string; - users: User[]; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare function toKnownErr(e: any): any; -export interface User { - did: string; - declaration: AppBskySystemDeclRef.Main; - handle: string; - displayName?: string; - avatar?: string; - description?: string; - indexedAt?: string; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/app/bsky/actor/searchTypeahead.d.ts b/src/third-party/api/src/client/types/app/bsky/actor/searchTypeahead.d.ts deleted file mode 100644 index 9ee49ef9e..000000000 --- a/src/third-party/api/src/client/types/app/bsky/actor/searchTypeahead.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -import * as AppBskySystemDeclRef from '../system/declRef'; -export interface QueryParams { - term: string; - limit?: number; -} -export declare type InputSchema = undefined; -export interface OutputSchema { - users: User[]; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare function toKnownErr(e: any): any; -export interface User { - did: string; - declaration: AppBskySystemDeclRef.Main; - handle: string; - displayName?: string; - avatar?: string; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/app/bsky/actor/updateProfile.d.ts b/src/third-party/api/src/client/types/app/bsky/actor/updateProfile.d.ts deleted file mode 100644 index 7ae890714..000000000 --- a/src/third-party/api/src/client/types/app/bsky/actor/updateProfile.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { Headers, XRPCError } from '@atproto/xrpc'; -export interface QueryParams { -} -export interface InputSchema { - did?: string; - displayName?: string; - description?: string; - avatar?: { - cid: string; - mimeType: string; - [k: string]: unknown; - }; - banner?: { - cid: string; - mimeType: string; - [k: string]: unknown; - }; - [k: string]: unknown; -} -export interface OutputSchema { - uri: string; - cid: string; - record: {}; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; - qp?: QueryParams; - encoding: 'application/json'; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare class InvalidBlobError extends XRPCError { - constructor(src: XRPCError); -} -export declare class BlobTooLargeError extends XRPCError { - constructor(src: XRPCError); -} -export declare class InvalidMimeTypeError extends XRPCError { - constructor(src: XRPCError); -} -export declare class InvalidImageDimensionsError extends XRPCError { - constructor(src: XRPCError); -} -export declare function toKnownErr(e: any): any; diff --git a/src/third-party/api/src/client/types/app/bsky/embed/external.d.ts b/src/third-party/api/src/client/types/app/bsky/embed/external.d.ts deleted file mode 100644 index 81f701b36..000000000 --- a/src/third-party/api/src/client/types/app/bsky/embed/external.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -export interface Main { - external: External; - [k: string]: unknown; -} -export interface External { - uri: string; - title: string; - description: string; - thumb?: { - cid: string; - mimeType: string; - [k: string]: unknown; - }; - [k: string]: unknown; -} -export interface Presented { - external: PresentedExternal; - [k: string]: unknown; -} -export interface PresentedExternal { - uri: string; - title: string; - description: string; - thumb?: string; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/app/bsky/embed/images.d.ts b/src/third-party/api/src/client/types/app/bsky/embed/images.d.ts deleted file mode 100644 index f09ac0067..000000000 --- a/src/third-party/api/src/client/types/app/bsky/embed/images.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -export interface Main { - images: Image[]; - [k: string]: unknown; -} -export interface Image { - image: { - cid: string; - mimeType: string; - [k: string]: unknown; - }; - alt: string; - [k: string]: unknown; -} -export interface Presented { - images: PresentedImage[]; - [k: string]: unknown; -} -export interface PresentedImage { - thumb: string; - fullsize: string; - alt: string; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/app/bsky/feed/debug.d.ts b/src/third-party/api/src/client/types/app/bsky/feed/debug.d.ts deleted file mode 100644 index 7fb79cb32..000000000 --- a/src/third-party/api/src/client/types/app/bsky/feed/debug.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -export interface Record { - text: string; - entities?: Entity[]; - reply?: Reply; - createdAt: string; - [k: string]: unknown; -} -export declare const SOMETOKEN = "app.bsky.feed.debug#someToken"; -export declare type Unknown = {}; -export declare type Boolean = boolean; -export declare type Number = number; -export declare type Integer = number; -export declare type String = string; -export declare type Blob = { - cid: string; - mimeType: string; - [k: string]: unknown; -}; -export declare type Image = { - cid: string; - mimeType: string; - [k: string]: unknown; -}; -export declare type Video = { - cid: string; - mimeType: string; - [k: string]: unknown; -}; -export declare type Audio = { - cid: string; - mimeType: string; - [k: string]: unknown; -}; -export declare type StringArr = string[]; -export declare type ReplyArr = Reply[]; -export declare type MultiArr = (Reply | PostRef | Entity)[]; -export interface Reply { - root: PostRef; - parent: PostRef; - [k: string]: unknown; -} -export interface PostRef { - uri: string; - cid: string; - [k: string]: unknown; -} -export interface Entity { - index: TextSlice; - type: string; - value: string; - [k: string]: unknown; -} -export interface TextSlice { - start: number; - end: number; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/app/bsky/feed/embed.d.ts b/src/third-party/api/src/client/types/app/bsky/feed/embed.d.ts deleted file mode 100644 index 96a3dae6e..000000000 --- a/src/third-party/api/src/client/types/app/bsky/feed/embed.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import * as AppBskyActorRef from '../actor/ref'; -export interface Main { - items?: (Media | Record | External | { - $type: string; - [k: string]: unknown; - })[]; - [k: string]: unknown; -} -export interface Media { - alt?: string; - thumb?: { - cid: string; - mimeType: string; - [k: string]: unknown; - }; - original: { - cid: string; - mimeType: string; - [k: string]: unknown; - }; - [k: string]: unknown; -} -export interface Record { - type: 'record'; - author: AppBskyActorRef.WithInfo; - record: {}; - [k: string]: unknown; -} -export interface External { - type: 'external'; - uri: string; - title: string; - description: string; - imageUri: string; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/app/bsky/feed/feedViewPost.d.ts b/src/third-party/api/src/client/types/app/bsky/feed/feedViewPost.d.ts deleted file mode 100644 index 3a948ae1d..000000000 --- a/src/third-party/api/src/client/types/app/bsky/feed/feedViewPost.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import * as AppBskyFeedPost from './post'; -import * as AppBskyActorRef from '../actor/ref'; -export interface Main { - post: AppBskyFeedPost.View; - reply?: ReplyRef; - reason?: ReasonTrend | ReasonRepost | { - $type: string; - [k: string]: unknown; - }; - [k: string]: unknown; -} -export interface ReplyRef { - root: AppBskyFeedPost.View; - parent: AppBskyFeedPost.View; - [k: string]: unknown; -} -export interface ReasonTrend { - by: AppBskyActorRef.WithInfo; - indexedAt: string; - [k: string]: unknown; -} -export interface ReasonRepost { - by: AppBskyActorRef.WithInfo; - indexedAt: string; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/app/bsky/feed/getAuthorFeed.d.ts b/src/third-party/api/src/client/types/app/bsky/feed/getAuthorFeed.d.ts deleted file mode 100644 index 1a8273a6e..000000000 --- a/src/third-party/api/src/client/types/app/bsky/feed/getAuthorFeed.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -import * as AppBskyFeedFeedViewPost from './feedViewPost'; -export interface QueryParams { - author: string; - limit?: number; - before?: string; -} -export declare type InputSchema = undefined; -export interface OutputSchema { - cursor?: string; - feed: AppBskyFeedFeedViewPost.Main[]; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare function toKnownErr(e: any): any; diff --git a/src/third-party/api/src/client/types/app/bsky/feed/getLikedBy.d.ts b/src/third-party/api/src/client/types/app/bsky/feed/getLikedBy.d.ts deleted file mode 100644 index 1ae8fe81f..000000000 --- a/src/third-party/api/src/client/types/app/bsky/feed/getLikedBy.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -export interface QueryParams { - uri: string; - cid?: string; - limit?: number; - before?: string; -} -export interface CallOptions { - headers?: Headers; -} -export declare type InputSchema = undefined; -export interface OutputSchema { - uri: string; - cid?: string; - cursor?: string; - likedBy: { - did: string; - handle: string; - displayName?: string; - createdAt?: string; - indexedAt: string; - }[]; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare function toKnownErr(e: any): any; diff --git a/src/third-party/api/src/client/types/app/bsky/feed/getPostThread.d.ts b/src/third-party/api/src/client/types/app/bsky/feed/getPostThread.d.ts deleted file mode 100644 index a09e7bd3c..000000000 --- a/src/third-party/api/src/client/types/app/bsky/feed/getPostThread.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { Headers, XRPCError } from '@atproto/xrpc'; -import * as AppBskyFeedPost from './post'; -export interface QueryParams { - uri: string; - depth?: number; -} -export declare type InputSchema = undefined; -export interface OutputSchema { - thread: ThreadViewPost | NotFoundPost | { - $type: string; - [k: string]: unknown; - }; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare class NotFoundError extends XRPCError { - constructor(src: XRPCError); -} -export declare function toKnownErr(e: any): any; -export interface ThreadViewPost { - post: AppBskyFeedPost.View; - parent?: ThreadViewPost | NotFoundPost | { - $type: string; - [k: string]: unknown; - }; - replies?: (ThreadViewPost | NotFoundPost | { - $type: string; - [k: string]: unknown; - })[]; - [k: string]: unknown; -} -export interface NotFoundPost { - uri: string; - notFound: true; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/app/bsky/feed/getRepostedBy.d.ts b/src/third-party/api/src/client/types/app/bsky/feed/getRepostedBy.d.ts deleted file mode 100644 index 4f64ef9d7..000000000 --- a/src/third-party/api/src/client/types/app/bsky/feed/getRepostedBy.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -import * as AppBskySystemDeclRef from '../system/declRef'; -export interface QueryParams { - uri: string; - cid?: string; - limit?: number; - before?: string; -} -export declare type InputSchema = undefined; -export interface OutputSchema { - uri: string; - cid?: string; - cursor?: string; - repostedBy: RepostedBy[]; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare function toKnownErr(e: any): any; -export interface RepostedBy { - did: string; - declaration: AppBskySystemDeclRef.Main; - handle: string; - displayName?: string; - avatar?: string; - createdAt?: string; - indexedAt: string; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/app/bsky/feed/getTimeline.d.ts b/src/third-party/api/src/client/types/app/bsky/feed/getTimeline.d.ts deleted file mode 100644 index d446bc5b6..000000000 --- a/src/third-party/api/src/client/types/app/bsky/feed/getTimeline.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -import * as AppBskyFeedFeedViewPost from './feedViewPost'; -export interface QueryParams { - algorithm?: string; - limit?: number; - before?: string; -} -export declare type InputSchema = undefined; -export interface OutputSchema { - cursor?: string; - feed: AppBskyFeedFeedViewPost.Main[]; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare function toKnownErr(e: any): any; diff --git a/src/third-party/api/src/client/types/app/bsky/feed/getVotes.d.ts b/src/third-party/api/src/client/types/app/bsky/feed/getVotes.d.ts deleted file mode 100644 index 23fabecb6..000000000 --- a/src/third-party/api/src/client/types/app/bsky/feed/getVotes.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -import * as AppBskyActorRef from '../actor/ref'; -export interface QueryParams { - uri: string; - cid?: string; - direction?: 'up' | 'down'; - limit?: number; - before?: string; -} -export declare type InputSchema = undefined; -export interface OutputSchema { - uri: string; - cid?: string; - cursor?: string; - votes: Vote[]; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare function toKnownErr(e: any): any; -export interface Vote { - direction: 'up' | 'down'; - indexedAt: string; - createdAt: string; - actor: AppBskyActorRef.WithInfo; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/app/bsky/feed/like.d.ts b/src/third-party/api/src/client/types/app/bsky/feed/like.d.ts deleted file mode 100644 index ec9aca58e..000000000 --- a/src/third-party/api/src/client/types/app/bsky/feed/like.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export interface Record { - subject: Subject; - createdAt: string; - [k: string]: unknown; -} -export interface Subject { - uri: string; - cid: string; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/app/bsky/feed/mediaEmbed.d.ts b/src/third-party/api/src/client/types/app/bsky/feed/mediaEmbed.d.ts deleted file mode 100644 index 4315abaab..000000000 --- a/src/third-party/api/src/client/types/app/bsky/feed/mediaEmbed.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -export interface Main { - media: MediaEmbed[]; - [k: string]: unknown; -} -export interface MediaEmbed { - alt?: string; - thumb?: { - cid: string; - mimeType: string; - [k: string]: unknown; - }; - original: { - cid: string; - mimeType: string; - [k: string]: unknown; - }; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/app/bsky/feed/post.d.ts b/src/third-party/api/src/client/types/app/bsky/feed/post.d.ts deleted file mode 100644 index 16271af14..000000000 --- a/src/third-party/api/src/client/types/app/bsky/feed/post.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -import * as AppBskyEmbedImages from '../embed/images'; -import * as AppBskyEmbedExternal from '../embed/external'; -import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'; -import * as AppBskyActorRef from '../actor/ref'; -export interface Record { - text: string; - entities?: Entity[]; - reply?: ReplyRef; - embed?: AppBskyEmbedImages.Main | AppBskyEmbedExternal.Main | { - $type: string; - [k: string]: unknown; - }; - createdAt: string; - [k: string]: unknown; -} -export interface ReplyRef { - root: ComAtprotoRepoStrongRef.Main; - parent: ComAtprotoRepoStrongRef.Main; - [k: string]: unknown; -} -export interface Entity { - index: TextSlice; - type: string; - value: string; - [k: string]: unknown; -} -export interface TextSlice { - start: number; - end: number; - [k: string]: unknown; -} -export interface View { - uri: string; - cid: string; - author: AppBskyActorRef.WithInfo; - record: {}; - embed?: AppBskyEmbedImages.Presented | AppBskyEmbedExternal.Presented | { - $type: string; - [k: string]: unknown; - }; - replyCount: number; - repostCount: number; - upvoteCount: number; - downvoteCount: number; - indexedAt: string; - viewer: ViewerState; - [k: string]: unknown; -} -export interface ViewerState { - repost?: string; - upvote?: string; - downvote?: string; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/app/bsky/feed/repost.d.ts b/src/third-party/api/src/client/types/app/bsky/feed/repost.d.ts deleted file mode 100644 index 4712ae51d..000000000 --- a/src/third-party/api/src/client/types/app/bsky/feed/repost.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'; -export interface Record { - subject: ComAtprotoRepoStrongRef.Main; - createdAt: string; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/app/bsky/feed/setVote.d.ts b/src/third-party/api/src/client/types/app/bsky/feed/setVote.d.ts deleted file mode 100644 index 8b59250ec..000000000 --- a/src/third-party/api/src/client/types/app/bsky/feed/setVote.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'; -export interface QueryParams { -} -export interface InputSchema { - subject: ComAtprotoRepoStrongRef.Main; - direction: 'up' | 'down' | 'none'; - [k: string]: unknown; -} -export interface OutputSchema { - upvote?: string; - downvote?: string; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; - qp?: QueryParams; - encoding: 'application/json'; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare function toKnownErr(e: any): any; diff --git a/src/third-party/api/src/client/types/app/bsky/feed/trend.d.ts b/src/third-party/api/src/client/types/app/bsky/feed/trend.d.ts deleted file mode 100644 index 4712ae51d..000000000 --- a/src/third-party/api/src/client/types/app/bsky/feed/trend.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'; -export interface Record { - subject: ComAtprotoRepoStrongRef.Main; - createdAt: string; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/app/bsky/feed/vote.d.ts b/src/third-party/api/src/client/types/app/bsky/feed/vote.d.ts deleted file mode 100644 index 678708e37..000000000 --- a/src/third-party/api/src/client/types/app/bsky/feed/vote.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'; -export interface Record { - subject: ComAtprotoRepoStrongRef.Main; - direction: 'up' | 'down'; - createdAt: string; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/app/bsky/graph/assertCreator.d.ts b/src/third-party/api/src/client/types/app/bsky/graph/assertCreator.d.ts deleted file mode 100644 index 165c6eea0..000000000 --- a/src/third-party/api/src/client/types/app/bsky/graph/assertCreator.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const MAIN = "app.bsky.graph.assertCreator#main"; diff --git a/src/third-party/api/src/client/types/app/bsky/graph/assertMember.d.ts b/src/third-party/api/src/client/types/app/bsky/graph/assertMember.d.ts deleted file mode 100644 index 9602b9b52..000000000 --- a/src/third-party/api/src/client/types/app/bsky/graph/assertMember.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const MAIN = "app.bsky.graph.assertMember#main"; diff --git a/src/third-party/api/src/client/types/app/bsky/graph/assertion.d.ts b/src/third-party/api/src/client/types/app/bsky/graph/assertion.d.ts deleted file mode 100644 index 95beb7cda..000000000 --- a/src/third-party/api/src/client/types/app/bsky/graph/assertion.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import * as AppBskyActorRef from '../actor/ref'; -export interface Record { - assertion: string; - subject: AppBskyActorRef.Main; - createdAt: string; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/app/bsky/graph/confirmation.d.ts b/src/third-party/api/src/client/types/app/bsky/graph/confirmation.d.ts deleted file mode 100644 index 58fdbcfa0..000000000 --- a/src/third-party/api/src/client/types/app/bsky/graph/confirmation.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import * as AppBskyActorRef from '../actor/ref'; -import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'; -export interface Record { - originator: AppBskyActorRef.Main; - assertion: ComAtprotoRepoStrongRef.Main; - createdAt: string; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/app/bsky/graph/follow.d.ts b/src/third-party/api/src/client/types/app/bsky/graph/follow.d.ts deleted file mode 100644 index ae77d2302..000000000 --- a/src/third-party/api/src/client/types/app/bsky/graph/follow.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import * as AppBskyActorRef from '../actor/ref'; -export interface Record { - subject: AppBskyActorRef.Main; - createdAt: string; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/app/bsky/graph/getAssertions.d.ts b/src/third-party/api/src/client/types/app/bsky/graph/getAssertions.d.ts deleted file mode 100644 index 62d0fc1de..000000000 --- a/src/third-party/api/src/client/types/app/bsky/graph/getAssertions.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -import * as AppBskyActorRef from '../actor/ref'; -export interface QueryParams { - author?: string; - subject?: string; - assertion?: string; - confirmed?: boolean; - limit?: number; - before?: string; -} -export declare type InputSchema = undefined; -export interface OutputSchema { - cursor?: string; - assertions: Assertion[]; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare function toKnownErr(e: any): any; -export interface Assertion { - uri: string; - cid: string; - assertion: string; - confirmation?: Confirmation; - author: AppBskyActorRef.WithInfo; - subject: AppBskyActorRef.WithInfo; - indexedAt: string; - createdAt: string; - [k: string]: unknown; -} -export interface Confirmation { - uri: string; - cid: string; - indexedAt: string; - createdAt: string; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/app/bsky/graph/getFollowers.d.ts b/src/third-party/api/src/client/types/app/bsky/graph/getFollowers.d.ts deleted file mode 100644 index c479d3498..000000000 --- a/src/third-party/api/src/client/types/app/bsky/graph/getFollowers.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -import * as AppBskyActorRef from '../actor/ref'; -import * as AppBskySystemDeclRef from '../system/declRef'; -export interface QueryParams { - user: string; - limit?: number; - before?: string; -} -export declare type InputSchema = undefined; -export interface OutputSchema { - subject: AppBskyActorRef.WithInfo; - cursor?: string; - followers: Follower[]; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare function toKnownErr(e: any): any; -export interface Follower { - did: string; - declaration: AppBskySystemDeclRef.Main; - handle: string; - displayName?: string; - avatar?: string; - createdAt?: string; - indexedAt: string; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/app/bsky/graph/getFollows.d.ts b/src/third-party/api/src/client/types/app/bsky/graph/getFollows.d.ts deleted file mode 100644 index a3b2488dc..000000000 --- a/src/third-party/api/src/client/types/app/bsky/graph/getFollows.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -import * as AppBskyActorRef from '../actor/ref'; -import * as AppBskySystemDeclRef from '../system/declRef'; -export interface QueryParams { - user: string; - limit?: number; - before?: string; -} -export declare type InputSchema = undefined; -export interface OutputSchema { - subject: AppBskyActorRef.WithInfo; - cursor?: string; - follows: Follow[]; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare function toKnownErr(e: any): any; -export interface Follow { - did: string; - declaration: AppBskySystemDeclRef.Main; - handle: string; - displayName?: string; - createdAt?: string; - indexedAt: string; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/app/bsky/graph/getMembers.d.ts b/src/third-party/api/src/client/types/app/bsky/graph/getMembers.d.ts deleted file mode 100644 index 34d321744..000000000 --- a/src/third-party/api/src/client/types/app/bsky/graph/getMembers.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -import * as AppBskyActorRef from '../actor/ref'; -import * as AppBskySystemDeclRef from '../system/declRef'; -export interface QueryParams { - actor: string; - limit?: number; - before?: string; -} -export declare type InputSchema = undefined; -export interface OutputSchema { - subject: AppBskyActorRef.WithInfo; - cursor?: string; - members: Member[]; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare function toKnownErr(e: any): any; -export interface Member { - did: string; - declaration: AppBskySystemDeclRef.Main; - handle: string; - displayName?: string; - createdAt?: string; - indexedAt: string; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/app/bsky/graph/getMemberships.d.ts b/src/third-party/api/src/client/types/app/bsky/graph/getMemberships.d.ts deleted file mode 100644 index 5b26dd478..000000000 --- a/src/third-party/api/src/client/types/app/bsky/graph/getMemberships.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -import * as AppBskyActorRef from '../actor/ref'; -import * as AppBskySystemDeclRef from '../system/declRef'; -export interface QueryParams { - actor: string; - limit?: number; - before?: string; -} -export declare type InputSchema = undefined; -export interface OutputSchema { - subject: AppBskyActorRef.WithInfo; - cursor?: string; - memberships: Membership[]; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare function toKnownErr(e: any): any; -export interface Membership { - did: string; - declaration: AppBskySystemDeclRef.Main; - handle: string; - displayName?: string; - createdAt?: string; - indexedAt: string; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/app/bsky/graph/invite.d.ts b/src/third-party/api/src/client/types/app/bsky/graph/invite.d.ts deleted file mode 100644 index f179c5d5f..000000000 --- a/src/third-party/api/src/client/types/app/bsky/graph/invite.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export interface Record { - group: string; - subject: { - did: string; - declarationCid: string; - [k: string]: unknown; - }; - createdAt: string; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/app/bsky/graph/inviteAccept.d.ts b/src/third-party/api/src/client/types/app/bsky/graph/inviteAccept.d.ts deleted file mode 100644 index d8747d305..000000000 --- a/src/third-party/api/src/client/types/app/bsky/graph/inviteAccept.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -export interface Record { - group: { - did: string; - declarationCid: string; - [k: string]: unknown; - }; - invite: { - uri: string; - cid: string; - [k: string]: unknown; - }; - createdAt: string; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/app/bsky/notification/getCount.d.ts b/src/third-party/api/src/client/types/app/bsky/notification/getCount.d.ts deleted file mode 100644 index 26459d28e..000000000 --- a/src/third-party/api/src/client/types/app/bsky/notification/getCount.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -export interface QueryParams { -} -export declare type InputSchema = undefined; -export interface OutputSchema { - count: number; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare function toKnownErr(e: any): any; diff --git a/src/third-party/api/src/client/types/app/bsky/notification/list.d.ts b/src/third-party/api/src/client/types/app/bsky/notification/list.d.ts deleted file mode 100644 index 9dd9edff0..000000000 --- a/src/third-party/api/src/client/types/app/bsky/notification/list.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -import * as AppBskyActorRef from '../actor/ref'; -export interface QueryParams { - limit?: number; - before?: string; -} -export declare type InputSchema = undefined; -export interface OutputSchema { - cursor?: string; - notifications: Notification[]; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare function toKnownErr(e: any): any; -export interface Notification { - uri: string; - cid: string; - author: AppBskyActorRef.WithInfo; - reason: 'vote' | 'repost' | 'trend' | 'follow' | 'invite' | 'mention' | 'reply' | (string & {}); - reasonSubject?: string; - record: {}; - isRead: boolean; - indexedAt: string; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/app/bsky/notification/updateSeen.d.ts b/src/third-party/api/src/client/types/app/bsky/notification/updateSeen.d.ts deleted file mode 100644 index 3cf8309ac..000000000 --- a/src/third-party/api/src/client/types/app/bsky/notification/updateSeen.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -export interface QueryParams { -} -export interface InputSchema { - seenAt: string; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; - qp?: QueryParams; - encoding: 'application/json'; -} -export interface Response { - success: boolean; - headers: Headers; -} -export declare function toKnownErr(e: any): any; diff --git a/src/third-party/api/src/client/types/app/bsky/system/actorScene.d.ts b/src/third-party/api/src/client/types/app/bsky/system/actorScene.d.ts deleted file mode 100644 index 35200c2fb..000000000 --- a/src/third-party/api/src/client/types/app/bsky/system/actorScene.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const MAIN = "app.bsky.system.actorScene#main"; diff --git a/src/third-party/api/src/client/types/app/bsky/system/actorUser.d.ts b/src/third-party/api/src/client/types/app/bsky/system/actorUser.d.ts deleted file mode 100644 index 1cc5b5545..000000000 --- a/src/third-party/api/src/client/types/app/bsky/system/actorUser.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const MAIN = "app.bsky.system.actorUser#main"; diff --git a/src/third-party/api/src/client/types/app/bsky/system/declRef.d.ts b/src/third-party/api/src/client/types/app/bsky/system/declRef.d.ts deleted file mode 100644 index 2e0d6e3ed..000000000 --- a/src/third-party/api/src/client/types/app/bsky/system/declRef.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export interface Main { - cid: string; - actorType: 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene' | (string & {}); - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/app/bsky/system/declaration.d.ts b/src/third-party/api/src/client/types/app/bsky/system/declaration.d.ts deleted file mode 100644 index 40fe6ad77..000000000 --- a/src/third-party/api/src/client/types/app/bsky/system/declaration.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export interface Record { - actorType: 'app.bsky.system.actorUser' | 'app.bsky.system.actorScene' | (string & {}); - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/com/atproto/account/create.d.ts b/src/third-party/api/src/client/types/com/atproto/account/create.d.ts deleted file mode 100644 index b93f51ac0..000000000 --- a/src/third-party/api/src/client/types/com/atproto/account/create.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { Headers, XRPCError } from '@atproto/xrpc'; -export interface QueryParams { -} -export interface InputSchema { - email: string; - handle: string; - inviteCode?: string; - password: string; - recoveryKey?: string; - [k: string]: unknown; -} -export interface OutputSchema { - accessJwt: string; - refreshJwt: string; - handle: string; - did: string; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; - qp?: QueryParams; - encoding: 'application/json'; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare class InvalidHandleError extends XRPCError { - constructor(src: XRPCError); -} -export declare class InvalidPasswordError extends XRPCError { - constructor(src: XRPCError); -} -export declare class InvalidInviteCodeError extends XRPCError { - constructor(src: XRPCError); -} -export declare class HandleNotAvailableError extends XRPCError { - constructor(src: XRPCError); -} -export declare function toKnownErr(e: any): any; diff --git a/src/third-party/api/src/client/types/com/atproto/account/createInviteCode.d.ts b/src/third-party/api/src/client/types/com/atproto/account/createInviteCode.d.ts deleted file mode 100644 index 71a3ef5fc..000000000 --- a/src/third-party/api/src/client/types/com/atproto/account/createInviteCode.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -export interface QueryParams { -} -export interface InputSchema { - useCount: number; - [k: string]: unknown; -} -export interface OutputSchema { - code: string; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; - qp?: QueryParams; - encoding: 'application/json'; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare function toKnownErr(e: any): any; diff --git a/src/third-party/api/src/client/types/com/atproto/account/delete.d.ts b/src/third-party/api/src/client/types/com/atproto/account/delete.d.ts deleted file mode 100644 index bb13f32b5..000000000 --- a/src/third-party/api/src/client/types/com/atproto/account/delete.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -export interface QueryParams { -} -export declare type InputSchema = undefined; -export interface CallOptions { - headers?: Headers; - qp?: QueryParams; -} -export interface Response { - success: boolean; - headers: Headers; -} -export declare function toKnownErr(e: any): any; diff --git a/src/third-party/api/src/client/types/com/atproto/account/get.d.ts b/src/third-party/api/src/client/types/com/atproto/account/get.d.ts deleted file mode 100644 index 344b6acdf..000000000 --- a/src/third-party/api/src/client/types/com/atproto/account/get.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -export interface QueryParams { -} -export declare type InputSchema = undefined; -export interface CallOptions { - headers?: Headers; -} -export interface Response { - success: boolean; - headers: Headers; -} -export declare function toKnownErr(e: any): any; diff --git a/src/third-party/api/src/client/types/com/atproto/account/requestPasswordReset.d.ts b/src/third-party/api/src/client/types/com/atproto/account/requestPasswordReset.d.ts deleted file mode 100644 index 5149d41ff..000000000 --- a/src/third-party/api/src/client/types/com/atproto/account/requestPasswordReset.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -export interface QueryParams { -} -export interface InputSchema { - email: string; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; - qp?: QueryParams; - encoding: 'application/json'; -} -export interface Response { - success: boolean; - headers: Headers; -} -export declare function toKnownErr(e: any): any; diff --git a/src/third-party/api/src/client/types/com/atproto/account/resetPassword.d.ts b/src/third-party/api/src/client/types/com/atproto/account/resetPassword.d.ts deleted file mode 100644 index 7dce293ff..000000000 --- a/src/third-party/api/src/client/types/com/atproto/account/resetPassword.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { Headers, XRPCError } from '@atproto/xrpc'; -export interface QueryParams { -} -export interface InputSchema { - token: string; - password: string; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; - qp?: QueryParams; - encoding: 'application/json'; -} -export interface Response { - success: boolean; - headers: Headers; -} -export declare class ExpiredTokenError extends XRPCError { - constructor(src: XRPCError); -} -export declare class InvalidTokenError extends XRPCError { - constructor(src: XRPCError); -} -export declare function toKnownErr(e: any): any; diff --git a/src/third-party/api/src/client/types/com/atproto/blob/upload.d.ts b/src/third-party/api/src/client/types/com/atproto/blob/upload.d.ts deleted file mode 100644 index aadc64f54..000000000 --- a/src/third-party/api/src/client/types/com/atproto/blob/upload.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -export interface QueryParams { -} -export declare type InputSchema = string | Uint8Array; -export interface OutputSchema { - cid: string; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; - qp?: QueryParams; - encoding: string; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare function toKnownErr(e: any): any; diff --git a/src/third-party/api/src/client/types/com/atproto/data/uploadFile.d.ts b/src/third-party/api/src/client/types/com/atproto/data/uploadFile.d.ts deleted file mode 100644 index ccfb194f6..000000000 --- a/src/third-party/api/src/client/types/com/atproto/data/uploadFile.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { Headers, XRPCError } from '@atproto/xrpc'; -export interface QueryParams { -} -export declare type InputSchema = string | Uint8Array; -export interface OutputSchema { - cid: string; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; - qp?: QueryParams; - encoding: '*/*'; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare class InvalidBlobError extends XRPCError { - constructor(src: XRPCError); -} -export declare function toKnownErr(e: any): any; diff --git a/src/third-party/api/src/client/types/com/atproto/handle/resolve.d.ts b/src/third-party/api/src/client/types/com/atproto/handle/resolve.d.ts deleted file mode 100644 index 17d65d3b3..000000000 --- a/src/third-party/api/src/client/types/com/atproto/handle/resolve.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -export interface QueryParams { - handle?: string; -} -export declare type InputSchema = undefined; -export interface OutputSchema { - did: string; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare function toKnownErr(e: any): any; diff --git a/src/third-party/api/src/client/types/com/atproto/repo/batchWrite.d.ts b/src/third-party/api/src/client/types/com/atproto/repo/batchWrite.d.ts deleted file mode 100644 index 5e740e9c2..000000000 --- a/src/third-party/api/src/client/types/com/atproto/repo/batchWrite.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -export interface QueryParams { -} -export interface InputSchema { - did: string; - validate?: boolean; - writes: (Create | Update | Delete)[]; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; - qp?: QueryParams; - encoding: 'application/json'; -} -export interface Response { - success: boolean; - headers: Headers; -} -export declare function toKnownErr(e: any): any; -export interface Create { - action: 'create'; - collection: string; - rkey?: string; - value: {}; - [k: string]: unknown; -} -export interface Update { - action: 'update'; - collection: string; - rkey: string; - value: {}; - [k: string]: unknown; -} -export interface Delete { - action: 'delete'; - collection: string; - rkey: string; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/com/atproto/repo/createRecord.d.ts b/src/third-party/api/src/client/types/com/atproto/repo/createRecord.d.ts deleted file mode 100644 index 97d8b640d..000000000 --- a/src/third-party/api/src/client/types/com/atproto/repo/createRecord.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -export interface QueryParams { -} -export interface InputSchema { - did: string; - collection: string; - validate?: boolean; - record: {}; - [k: string]: unknown; -} -export interface OutputSchema { - uri: string; - cid: string; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; - qp?: QueryParams; - encoding: 'application/json'; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare function toKnownErr(e: any): any; diff --git a/src/third-party/api/src/client/types/com/atproto/repo/deleteRecord.d.ts b/src/third-party/api/src/client/types/com/atproto/repo/deleteRecord.d.ts deleted file mode 100644 index 95318846f..000000000 --- a/src/third-party/api/src/client/types/com/atproto/repo/deleteRecord.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -export interface QueryParams { -} -export interface InputSchema { - did: string; - collection: string; - rkey: string; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; - qp?: QueryParams; - encoding: 'application/json'; -} -export interface Response { - success: boolean; - headers: Headers; -} -export declare function toKnownErr(e: any): any; diff --git a/src/third-party/api/src/client/types/com/atproto/repo/describe.d.ts b/src/third-party/api/src/client/types/com/atproto/repo/describe.d.ts deleted file mode 100644 index 0ac43029a..000000000 --- a/src/third-party/api/src/client/types/com/atproto/repo/describe.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -export interface QueryParams { - user: string; -} -export declare type InputSchema = undefined; -export interface OutputSchema { - handle: string; - did: string; - didDoc: {}; - collections: string[]; - handleIsCorrect: boolean; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare function toKnownErr(e: any): any; diff --git a/src/third-party/api/src/client/types/com/atproto/repo/getRecord.d.ts b/src/third-party/api/src/client/types/com/atproto/repo/getRecord.d.ts deleted file mode 100644 index ab39e64ac..000000000 --- a/src/third-party/api/src/client/types/com/atproto/repo/getRecord.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -export interface QueryParams { - user: string; - collection: string; - rkey: string; - cid?: string; -} -export declare type InputSchema = undefined; -export interface OutputSchema { - uri: string; - cid?: string; - value: {}; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare function toKnownErr(e: any): any; diff --git a/src/third-party/api/src/client/types/com/atproto/repo/listRecords.d.ts b/src/third-party/api/src/client/types/com/atproto/repo/listRecords.d.ts deleted file mode 100644 index 710cd3ba4..000000000 --- a/src/third-party/api/src/client/types/com/atproto/repo/listRecords.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -export interface QueryParams { - user: string; - collection: string; - limit?: number; - before?: string; - after?: string; - reverse?: boolean; -} -export declare type InputSchema = undefined; -export interface OutputSchema { - cursor?: string; - records: Record[]; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare function toKnownErr(e: any): any; -export interface Record { - uri: string; - cid: string; - value: {}; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/com/atproto/repo/putRecord.d.ts b/src/third-party/api/src/client/types/com/atproto/repo/putRecord.d.ts deleted file mode 100644 index 93b87c73f..000000000 --- a/src/third-party/api/src/client/types/com/atproto/repo/putRecord.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -export interface QueryParams { -} -export interface InputSchema { - did: string; - collection: string; - rkey: string; - validate?: boolean; - record: {}; - [k: string]: unknown; -} -export interface OutputSchema { - uri: string; - cid: string; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; - qp?: QueryParams; - encoding: 'application/json'; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare function toKnownErr(e: any): any; diff --git a/src/third-party/api/src/client/types/com/atproto/repo/strongRef.d.ts b/src/third-party/api/src/client/types/com/atproto/repo/strongRef.d.ts deleted file mode 100644 index 4904603a5..000000000 --- a/src/third-party/api/src/client/types/com/atproto/repo/strongRef.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export interface Main { - uri: string; - cid: string; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/com/atproto/server/getAccountsConfig.d.ts b/src/third-party/api/src/client/types/com/atproto/server/getAccountsConfig.d.ts deleted file mode 100644 index 8523c6b86..000000000 --- a/src/third-party/api/src/client/types/com/atproto/server/getAccountsConfig.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -export interface QueryParams { -} -export declare type InputSchema = undefined; -export interface OutputSchema { - inviteCodeRequired?: boolean; - availableUserDomains: string[]; - links?: Links; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare function toKnownErr(e: any): any; -export interface Links { - privacyPolicy?: string; - termsOfService?: string; - [k: string]: unknown; -} diff --git a/src/third-party/api/src/client/types/com/atproto/session/create.d.ts b/src/third-party/api/src/client/types/com/atproto/session/create.d.ts deleted file mode 100644 index a5b138f9e..000000000 --- a/src/third-party/api/src/client/types/com/atproto/session/create.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -export interface QueryParams { -} -export interface InputSchema { - handle: string; - password: string; - [k: string]: unknown; -} -export interface OutputSchema { - accessJwt: string; - refreshJwt: string; - handle: string; - did: string; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; - qp?: QueryParams; - encoding: 'application/json'; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare function toKnownErr(e: any): any; diff --git a/src/third-party/api/src/client/types/com/atproto/session/delete.d.ts b/src/third-party/api/src/client/types/com/atproto/session/delete.d.ts deleted file mode 100644 index bb13f32b5..000000000 --- a/src/third-party/api/src/client/types/com/atproto/session/delete.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -export interface QueryParams { -} -export declare type InputSchema = undefined; -export interface CallOptions { - headers?: Headers; - qp?: QueryParams; -} -export interface Response { - success: boolean; - headers: Headers; -} -export declare function toKnownErr(e: any): any; diff --git a/src/third-party/api/src/client/types/com/atproto/session/get.d.ts b/src/third-party/api/src/client/types/com/atproto/session/get.d.ts deleted file mode 100644 index 0355a9da7..000000000 --- a/src/third-party/api/src/client/types/com/atproto/session/get.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -export interface QueryParams { -} -export declare type InputSchema = undefined; -export interface OutputSchema { - handle: string; - did: string; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare function toKnownErr(e: any): any; diff --git a/src/third-party/api/src/client/types/com/atproto/session/refresh.d.ts b/src/third-party/api/src/client/types/com/atproto/session/refresh.d.ts deleted file mode 100644 index 8d450546e..000000000 --- a/src/third-party/api/src/client/types/com/atproto/session/refresh.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -export interface QueryParams { -} -export declare type InputSchema = undefined; -export interface OutputSchema { - accessJwt: string; - refreshJwt: string; - handle: string; - did: string; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; - qp?: QueryParams; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare function toKnownErr(e: any): any; diff --git a/src/third-party/api/src/client/types/com/atproto/sync/getRepo.d.ts b/src/third-party/api/src/client/types/com/atproto/sync/getRepo.d.ts deleted file mode 100644 index fa9d6acd1..000000000 --- a/src/third-party/api/src/client/types/com/atproto/sync/getRepo.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -export interface QueryParams { - did: string; - from?: string; -} -export declare type InputSchema = undefined; -export interface CallOptions { - headers?: Headers; -} -export interface Response { - success: boolean; - headers: Headers; - data: Uint8Array; -} -export declare function toKnownErr(e: any): any; diff --git a/src/third-party/api/src/client/types/com/atproto/sync/getRoot.d.ts b/src/third-party/api/src/client/types/com/atproto/sync/getRoot.d.ts deleted file mode 100644 index 2a2b6c177..000000000 --- a/src/third-party/api/src/client/types/com/atproto/sync/getRoot.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -export interface QueryParams { - did: string; -} -export declare type InputSchema = undefined; -export interface OutputSchema { - root: string; - [k: string]: unknown; -} -export interface CallOptions { - headers?: Headers; -} -export interface Response { - success: boolean; - headers: Headers; - data: OutputSchema; -} -export declare function toKnownErr(e: any): any; diff --git a/src/third-party/api/src/client/types/com/atproto/sync/updateRepo.d.ts b/src/third-party/api/src/client/types/com/atproto/sync/updateRepo.d.ts deleted file mode 100644 index dfd3bd3f9..000000000 --- a/src/third-party/api/src/client/types/com/atproto/sync/updateRepo.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Headers } from '@atproto/xrpc'; -export interface QueryParams { - did: string; -} -export declare type InputSchema = string | Uint8Array; -export interface CallOptions { - headers?: Headers; - qp?: QueryParams; - encoding: 'application/cbor'; -} -export interface Response { - success: boolean; - headers: Headers; -} -export declare function toKnownErr(e: any): any; diff --git a/src/third-party/api/src/index.d.ts b/src/third-party/api/src/index.d.ts deleted file mode 100644 index fa8c5edb4..000000000 --- a/src/third-party/api/src/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from './client'; -export { default } from './client'; -export * from './session'; -export { default as sessionClient } from './session'; diff --git a/src/third-party/api/src/session.d.ts b/src/third-party/api/src/session.d.ts deleted file mode 100644 index 30351057d..000000000 --- a/src/third-party/api/src/session.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { CallOptions, Client as XrpcClient, ServiceClient as XrpcServiceClient, QueryParams, XRPCResponse } from '@atproto/xrpc'; -import TypedEmitter from 'typed-emitter'; -import { Client, ServiceClient } from './client'; -export declare class SessionClient extends Client { - service(serviceUri: string | URL): SessionServiceClient; -} -declare const defaultInst: SessionClient; -export default defaultInst; -export declare class SessionServiceClient extends ServiceClient { - xrpc: SessionXrpcServiceClient; - sessionManager: SessionManager; - constructor(baseClient: Client, xrpcService: SessionXrpcServiceClient); -} -export declare class SessionXrpcServiceClient extends XrpcServiceClient { - sessionManager: SessionManager; - refreshing?: Promise<XRPCResponse>; - constructor(baseClient: XrpcClient, serviceUri: string | URL); - call(methodNsid: string, params?: QueryParams, data?: unknown, opts?: CallOptions): Promise<XRPCResponse>; - refresh(opts?: CallOptions): Promise<XRPCResponse>; - private _refresh; -} -declare const SessionManager_base: new () => TypedEmitter<SessionEvents>; -export declare class SessionManager extends SessionManager_base { - session?: Session; - get(): Session | undefined; - set(session: Session): void; - unset(): void; - active(): boolean; - accessHeaders(): { - authorization: string; - } | undefined; - refreshHeaders(): { - authorization: string; - } | undefined; -} -export declare type Session = { - refreshJwt: string; - accessJwt: string; -}; -declare type SessionEvents = { - session: (session?: Session) => void; -}; diff --git a/src/third-party/api/tsconfig.build.tsbuildinfo b/src/third-party/api/tsconfig.build.tsbuildinfo deleted file mode 100644 index f300811aa..000000000 --- a/src/third-party/api/tsconfig.build.tsbuildinfo +++ /dev/null @@ -1 +0,0 @@ -{"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.esnext.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.webworker.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/zod/lib/helpers/typealiases.d.ts","../../../node_modules/zod/lib/helpers/util.d.ts","../../../node_modules/zod/lib/zoderror.d.ts","../../../node_modules/zod/lib/locales/en.d.ts","../../../node_modules/zod/lib/errors.d.ts","../../../node_modules/zod/lib/helpers/parseutil.d.ts","../../../node_modules/zod/lib/helpers/enumutil.d.ts","../../../node_modules/zod/lib/helpers/errorutil.d.ts","../../../node_modules/zod/lib/helpers/partialutil.d.ts","../../../node_modules/zod/lib/types.d.ts","../../../node_modules/zod/lib/external.d.ts","../../../node_modules/zod/lib/index.d.ts","../../../node_modules/zod/index.d.ts","../../xrpc/src/types.ts","../../nsid/src/index.ts","../../lexicon/src/types.ts","../../lexicon/src/validators/primitives.ts","../../lexicon/src/validators/blob.ts","../../lexicon/src/validators/complex.ts","../../lexicon/src/util.ts","../../lexicon/src/validators/xrpc.ts","../../lexicon/src/validation.ts","../../lexicon/src/lexicons.ts","../../lexicon/src/index.ts","../../xrpc/src/util.ts","../../xrpc/src/client.ts","../../xrpc/src/index.ts","../src/client/lexicons.ts","../src/client/types/com/atproto/account/create.ts","../src/client/types/com/atproto/account/createinvitecode.ts","../src/client/types/com/atproto/account/delete.ts","../src/client/types/com/atproto/account/get.ts","../src/client/types/com/atproto/account/requestpasswordreset.ts","../src/client/types/com/atproto/account/resetpassword.ts","../src/client/types/com/atproto/blob/upload.ts","../src/client/types/com/atproto/handle/resolve.ts","../src/client/types/com/atproto/repo/batchwrite.ts","../src/client/types/com/atproto/repo/createrecord.ts","../src/client/types/com/atproto/repo/deleterecord.ts","../src/client/types/com/atproto/repo/describe.ts","../src/client/types/com/atproto/repo/getrecord.ts","../src/client/types/com/atproto/repo/listrecords.ts","../src/client/types/com/atproto/repo/putrecord.ts","../src/client/types/com/atproto/repo/strongref.ts","../src/client/types/com/atproto/server/getaccountsconfig.ts","../src/client/types/com/atproto/session/create.ts","../src/client/types/com/atproto/session/delete.ts","../src/client/types/com/atproto/session/get.ts","../src/client/types/com/atproto/session/refresh.ts","../src/client/types/com/atproto/sync/getrepo.ts","../src/client/types/com/atproto/sync/getroot.ts","../src/client/types/com/atproto/sync/updaterepo.ts","../src/client/types/app/bsky/system/declref.ts","../src/client/types/app/bsky/actor/createscene.ts","../src/client/types/app/bsky/actor/getprofile.ts","../src/client/types/app/bsky/actor/getsuggestions.ts","../src/client/types/app/bsky/actor/profile.ts","../src/client/types/app/bsky/actor/ref.ts","../src/client/types/app/bsky/actor/search.ts","../src/client/types/app/bsky/actor/searchtypeahead.ts","../src/client/types/app/bsky/actor/updateprofile.ts","../src/client/types/app/bsky/embed/external.ts","../src/client/types/app/bsky/embed/images.ts","../src/client/types/app/bsky/feed/post.ts","../src/client/types/app/bsky/feed/feedviewpost.ts","../src/client/types/app/bsky/feed/getauthorfeed.ts","../src/client/types/app/bsky/feed/getpostthread.ts","../src/client/types/app/bsky/feed/getrepostedby.ts","../src/client/types/app/bsky/feed/gettimeline.ts","../src/client/types/app/bsky/feed/getvotes.ts","../src/client/types/app/bsky/feed/repost.ts","../src/client/types/app/bsky/feed/setvote.ts","../src/client/types/app/bsky/feed/trend.ts","../src/client/types/app/bsky/feed/vote.ts","../src/client/types/app/bsky/graph/assertcreator.ts","../src/client/types/app/bsky/graph/assertmember.ts","../src/client/types/app/bsky/graph/assertion.ts","../src/client/types/app/bsky/graph/confirmation.ts","../src/client/types/app/bsky/graph/follow.ts","../src/client/types/app/bsky/graph/getassertions.ts","../src/client/types/app/bsky/graph/getfollowers.ts","../src/client/types/app/bsky/graph/getfollows.ts","../src/client/types/app/bsky/graph/getmembers.ts","../src/client/types/app/bsky/graph/getmemberships.ts","../src/client/types/app/bsky/notification/getcount.ts","../src/client/types/app/bsky/notification/list.ts","../src/client/types/app/bsky/notification/updateseen.ts","../src/client/types/app/bsky/system/actorscene.ts","../src/client/types/app/bsky/system/actoruser.ts","../src/client/types/app/bsky/system/declaration.ts","../src/client/index.ts","../../../node_modules/typed-emitter/index.d.ts","../src/session.ts","../src/index.ts","../../../node_modules/@babel/types/lib/index.d.ts","../../../node_modules/@types/babel__generator/index.d.ts","../../../node_modules/@babel/parser/typings/babel-parser.d.ts","../../../node_modules/@types/babel__template/index.d.ts","../../../node_modules/@types/babel__traverse/index.d.ts","../../../node_modules/@types/babel__core/index.d.ts","../../../node_modules/@types/node/ts4.8/assert.d.ts","../../../node_modules/@types/node/ts4.8/assert/strict.d.ts","../../../node_modules/@types/node/ts4.8/globals.d.ts","../../../node_modules/@types/node/ts4.8/async_hooks.d.ts","../../../node_modules/@types/node/ts4.8/buffer.d.ts","../../../node_modules/@types/node/ts4.8/child_process.d.ts","../../../node_modules/@types/node/ts4.8/cluster.d.ts","../../../node_modules/@types/node/ts4.8/console.d.ts","../../../node_modules/@types/node/ts4.8/constants.d.ts","../../../node_modules/@types/node/ts4.8/crypto.d.ts","../../../node_modules/@types/node/ts4.8/dgram.d.ts","../../../node_modules/@types/node/ts4.8/diagnostics_channel.d.ts","../../../node_modules/@types/node/ts4.8/dns.d.ts","../../../node_modules/@types/node/ts4.8/dns/promises.d.ts","../../../node_modules/@types/node/ts4.8/domain.d.ts","../../../node_modules/@types/node/ts4.8/dom-events.d.ts","../../../node_modules/@types/node/ts4.8/events.d.ts","../../../node_modules/@types/node/ts4.8/fs.d.ts","../../../node_modules/@types/node/ts4.8/fs/promises.d.ts","../../../node_modules/@types/node/ts4.8/http.d.ts","../../../node_modules/@types/node/ts4.8/http2.d.ts","../../../node_modules/@types/node/ts4.8/https.d.ts","../../../node_modules/@types/node/ts4.8/inspector.d.ts","../../../node_modules/@types/node/ts4.8/module.d.ts","../../../node_modules/@types/node/ts4.8/net.d.ts","../../../node_modules/@types/node/ts4.8/os.d.ts","../../../node_modules/@types/node/ts4.8/path.d.ts","../../../node_modules/@types/node/ts4.8/perf_hooks.d.ts","../../../node_modules/@types/node/ts4.8/process.d.ts","../../../node_modules/@types/node/ts4.8/punycode.d.ts","../../../node_modules/@types/node/ts4.8/querystring.d.ts","../../../node_modules/@types/node/ts4.8/readline.d.ts","../../../node_modules/@types/node/ts4.8/readline/promises.d.ts","../../../node_modules/@types/node/ts4.8/repl.d.ts","../../../node_modules/@types/node/ts4.8/stream.d.ts","../../../node_modules/@types/node/ts4.8/stream/promises.d.ts","../../../node_modules/@types/node/ts4.8/stream/consumers.d.ts","../../../node_modules/@types/node/ts4.8/stream/web.d.ts","../../../node_modules/@types/node/ts4.8/string_decoder.d.ts","../../../node_modules/@types/node/ts4.8/test.d.ts","../../../node_modules/@types/node/ts4.8/timers.d.ts","../../../node_modules/@types/node/ts4.8/timers/promises.d.ts","../../../node_modules/@types/node/ts4.8/tls.d.ts","../../../node_modules/@types/node/ts4.8/trace_events.d.ts","../../../node_modules/@types/node/ts4.8/tty.d.ts","../../../node_modules/@types/node/ts4.8/url.d.ts","../../../node_modules/@types/node/ts4.8/util.d.ts","../../../node_modules/@types/node/ts4.8/v8.d.ts","../../../node_modules/@types/node/ts4.8/vm.d.ts","../../../node_modules/@types/node/ts4.8/wasi.d.ts","../../../node_modules/@types/node/ts4.8/worker_threads.d.ts","../../../node_modules/@types/node/ts4.8/zlib.d.ts","../../../node_modules/@types/node/ts4.8/globals.global.d.ts","../../../node_modules/@types/node/ts4.8/index.d.ts","../../../node_modules/@types/bn.js/index.d.ts","../../../node_modules/@types/connect/index.d.ts","../../../node_modules/@types/body-parser/index.d.ts","../../../node_modules/@types/cors/index.d.ts","../../../node_modules/@types/elliptic/index.d.ts","../../../node_modules/@types/range-parser/index.d.ts","../../../node_modules/@types/qs/index.d.ts","../../../node_modules/@types/express-serve-static-core/index.d.ts","../../../node_modules/@types/mime/mime.d.ts","../../../node_modules/@types/mime/index.d.ts","../../../node_modules/@types/serve-static/index.d.ts","../../../node_modules/@types/express/index.d.ts","../../../node_modules/@types/graceful-fs/index.d.ts","../../../node_modules/@types/http-errors/index.d.ts","../../../node_modules/@types/istanbul-lib-coverage/index.d.ts","../../../node_modules/@types/istanbul-lib-report/index.d.ts","../../../node_modules/@types/istanbul-reports/index.d.ts","../../../node_modules/@jest/expect-utils/build/index.d.ts","../../../node_modules/chalk/index.d.ts","../../../node_modules/@sinclair/typebox/typebox.d.ts","../../../node_modules/@jest/schemas/build/index.d.ts","../../../node_modules/pretty-format/build/index.d.ts","../../../node_modules/jest-diff/build/index.d.ts","../../../node_modules/jest-matcher-utils/build/index.d.ts","../../../node_modules/expect/build/index.d.ts","../../../node_modules/@types/jest/index.d.ts","../../../node_modules/@types/json-schema/index.d.ts","../../../node_modules/@types/jsonwebtoken/index.d.ts","../../../node_modules/@types/minimatch/index.d.ts","../../../node_modules/@types/minimist/index.d.ts","../../../node_modules/@types/nodemailer/lib/dkim/index.d.ts","../../../node_modules/@types/nodemailer/lib/mailer/mail-message.d.ts","../../../node_modules/@types/nodemailer/lib/xoauth2/index.d.ts","../../../node_modules/@types/nodemailer/lib/mailer/index.d.ts","../../../node_modules/@types/nodemailer/lib/mime-node/index.d.ts","../../../node_modules/@types/nodemailer/lib/smtp-connection/index.d.ts","../../../node_modules/@types/nodemailer/lib/shared/index.d.ts","../../../node_modules/@types/nodemailer/lib/json-transport/index.d.ts","../../../node_modules/@types/nodemailer/lib/sendmail-transport/index.d.ts","../../../node_modules/@types/nodemailer/lib/ses-transport/index.d.ts","../../../node_modules/@types/nodemailer/lib/smtp-pool/index.d.ts","../../../node_modules/@types/nodemailer/lib/smtp-transport/index.d.ts","../../../node_modules/@types/nodemailer/lib/stream-transport/index.d.ts","../../../node_modules/@types/nodemailer/index.d.ts","../../../node_modules/@types/normalize-package-data/index.d.ts","../../../node_modules/@types/parse-json/index.d.ts","../../../node_modules/pg-types/index.d.ts","../../../node_modules/pg-protocol/dist/messages.d.ts","../../../node_modules/pg-protocol/dist/serializer.d.ts","../../../node_modules/pg-protocol/dist/parser.d.ts","../../../node_modules/pg-protocol/dist/index.d.ts","../../../node_modules/@types/pg/index.d.ts","../../../node_modules/@types/prettier/index.d.ts","../../../node_modules/@types/sharp/index.d.ts","../../../node_modules/@types/stack-utils/index.d.ts","../../../node_modules/@types/yargs-parser/index.d.ts","../../../node_modules/@types/yargs/index.d.ts","../../../node_modules/@types/node/index.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/util.d.ts"],"fileInfos":[{"version":"f20c05dbfe50a208301d2a1da37b9931bce0466eb5a1f4fe240971b4ecc82b67","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","d11a03592451da2d1065e09e61f4e2a9bf68f780f4f6623c18b57816a9679d17","aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c",{"version":"9b087de7268e4efc5f215347a62656663933d63c0b1d7b624913240367b999ea","affectsGlobalScope":true},{"version":"3260e3386d9535b804205bdddb5618a9a27735bd22927f48ad54363abcd23d45","affectsGlobalScope":true},{"version":"adb09ec0a64fc17dbbc4a228b3b18aa5f01db3440a6b0cbb02354df58674d584","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"55f400eec64d17e888e278f4def2f254b41b89515d3b88ad75d5e05f019daddd","affectsGlobalScope":true},{"version":"181f1784c6c10b751631b24ce60c7f78b20665db4550b335be179217bacc0d5f","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"775d9c9fd150d5de79e0450f35bc8b8f94ae64e3eb5da12725ff2a649dccc777","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"34c839eaaa6d78c8674ae2c37af2236dee6831b13db7b4ef4df3ec889a04d4f2","affectsGlobalScope":true},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true},{"version":"ab7d58e6161a550ff92e5aff755dc37fe896245348332cd5f1e1203479fe0ed1","affectsGlobalScope":true},{"version":"6bda95ea27a59a276e46043b7065b55bd4b316c25e70e29b572958fa77565d43","affectsGlobalScope":true},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true},{"version":"a4da0551fd39b90ca7ce5f68fb55d4dc0c1396d589b612e1902f68ee090aaada","affectsGlobalScope":true},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"9afae14803f3b7343ed6d193173008715c1fa3421a353a818c805244ed737a84","bb98c05ae5cb9bd7cb7ad76fe517251a661787a6f24337b842f47faf393f79c7","a93bf95f7009c90e7d1edb092560d4052e3ebbe9b9ad2d796bcd95dc4306825c","8485b6da53ec35637d072e516631d25dae53984500de70a6989058f24354666f","ebe80346928736532e4a822154eb77f57ef3389dbe2b3ba4e571366a15448ef2","c2cb3c8ff388781258ea9ddbcd8a947f751bddd6886e1d3b3ea09ddaa895df80","f672c876c1a04a223cf2023b3d91e8a52bb1544c576b81bf64a8fec82be9969c","014b34d4c2ef27191fdf3feabb6557ec92127f813910725b6e79ed9a49e466b6","72efc3e8cee3cb13144cb63bb8aacf28f918439a2ff222de89e0e5d7ba9c7170","b61efb129c7011068cb4ccbbd86d5741ac82653476b09f46d3d06dd99b5b687e","2b7961486503fa279a4f1a52928d8c31fc6558c335b750878721467210552dd7","d1f62988c7e8e8650f7ed39520a766648155abbf75dd89f60e24f069433301d4","5568d7c32e5cf5f35e092649f4e5e168c3114c800b1d7545b7ae5e0415704802","156b9be8718e5157c84f4ca2163a48f9a8334e4477b945694c882ab89fd3382d","14e6f51486f4234e46f1b2c09c852989754de877fda7b2afdd709627e24b9882","207dbf55dfe32ef1298e5945f196911bb7fb75a2ebd15e3606c65535ad8f474d","3d20a183069527c92a7d6cb79ca521fa4f8cc9d36b56cb269db4088c220d0ac9","4c8aa3b64e4973c8d22231943bc8ebbecdc3c2d8c6aaac829151c3dbc0bfc7c8","4f5e1e2785adc88653b1888a315532329a4b615a09a422c2bc1cb2f49df33740","906dd0e8fa586117f9ed4dd86573c68b1a1080adc63221429f8b29975d357714","2861e0a8090f7ebd61dd1fa9970b04a5a2afe911ab4baca19cdc21a8e6ed9b28","0966a4236c1616d428cf4615cffb6fcd8bc16c0f4852a8146610ec3cb48af913","8859c7be12542da46ae05d00f5e9eccd8aba56ad687852b3565bf40e94a5924e","b4e1ab9692322413a0095065c5a5e8a4f433e2b082d02635b82fae7e17a8fc6a","eb978dd055b9ce273d159e691fd0e5245724e93fe1bf6f6a7ac52b2a2c5afcde","c951a82134ce7545a7469d0b34c7cf61a968a2fd180c7b0761e09ffddc769996","dc8bd2d3fdede21907b93d1b962354779cdae08f83205f4507b639f0f69a29a2",{"version":"56d66270100dcf3d0167d52cb85b90d5859b86266c6dce364d3bbf5069a208ef","signature":"60d5974d05acd8039a46d95c56b81f6337b157e4312aae568e92c7efc3d46169"},{"version":"38e89ed53adbb64433e74157c093654332b19aa74220b4a8f2c04b29d9b0bdd5","signature":"6d2bba1860095de82f4f2bd67ceb6c0eb2d8ec739581a30c3009b956d1037901"},{"version":"e0b3ad55cffaa95991cce4e3bc78384e7733e2477b217d2cd24da31e87291f8a","signature":"f160348d30169b0c2499990fe76d8e15cfbb6e8463be2b1869c53d133b936dfc"},{"version":"363b51b18cfdf213b990a45ffe6225793cd370ed38b54b42ba057f37cd8c4c34","signature":"5d999925e847ad23c8657074fda9a5559113c4156c89e668322505a243907449"},{"version":"b29740c6188e84ebd81cc27caa59b19fbfef6983f9cdcb14c7796eb8d57d8908","signature":"5abb501b865b7f33f9846da9aadef7b964a35bcf68276524e249096c23460b43"},{"version":"fd5349347ac67bffb31bec34ea44364bd0ffb1780e2728de74b216178daafb34","signature":"eedbd1cfb0884d3b46a133fe9243c1b9d0c4037b96fed382c749a0dd415098d8"},{"version":"ede18a50b3ce627b4d31dccb014ef4ddb8d0293ec29d74cfd00273b51682a1ee","signature":"954595352af7c28235d5ead40be59503033fdb672a062865a5421a448c031154"},{"version":"a56480018a76569b89126619673dbeccaba23bb5beb553ef955c16794ce9bbdc","signature":"5e5c401c9d312b37378e4b1cf43651143acdc0ae835e70a5439e186ca4f8c20e"},{"version":"a883472081fb34e9f38b67c5cb1c284c86da101b263fa480886be177b2340d53","signature":"fe06006d74387cf01b9686789ef46b8c3ddefbac667fa8c1999a55da295c0873"},{"version":"014b809041f801ef09e11460852ddb8e60daa804549f9ce62863cfe3223dced7","signature":"b96c5dcf2c7dc76fe56927605f29eeb09b08fb36b7c983c130a13d933ae83247"},{"version":"a17e7bb60c8a7763103e26dd51ec843aacee5e9d0d7b43d7e66e2cc2e47a0421","signature":"ba3c01853dde109bd23af1426806cffe120dad5e728f7db115342e78bf02d805"},{"version":"537944d7ee8932a8686eec85604841faa82fed688f145bac775f968824464f97","signature":"030488d5760d79dfc46d733b07c6fdfbc773bfc9c5290cf8bd1fcd9b9ef20c7a"},{"version":"bc46ec4bc7954727837ad4aebc6500bd15b6ba5ecfa68ddc989b779f36e0a3b5","signature":"c2449b4b23ca7fffd902e7e0dbc6fd1e493fc622e34e73e9b7f64bb8195bf4bd"},{"version":"8fef4039a121e04b88f69cb30287ee57d8acad5dd2571e13dc3b9de61cbcbc26","signature":"4b0a859871faf72ea6f481019c0384a2a1b3d1caf4462779f2b12556d76a550a"},{"version":"1eb0698de47ff6530a18610f2030c22743fc7d7f4299ce1189abe25f13606926","signature":"5b55701ecc7431d1af6729f10fe493ef5eb38ede59e5d82dd7cabdc50a083a9c"},{"version":"3e98c53fb0813dd664ab24754f8ea50b67bf027caf78d9bbe76a66f9e47e6d37","signature":"e16edd7b5e640457f4959a47b837833089df0baa2b0d91b6f604b3eda7145b4f"},{"version":"b4376fb73ecd3ad0449eb55bbaf44a58115edf5664c5c4f53fa830c211dc022d","signature":"b90ee86a7b55f699519c13b7e50d7b3cce5756bf62b3da0b0a9238ed83b93d04"},{"version":"e7cf20ea84b54af49e025925fe485f9419d97dcfccb7ece55d89860660dc54cc","signature":"9e9f9b5ad0922a7f172eaa2e0444d5298670e80e6b092bdd1f7a4d9abe12391a"},{"version":"a14722fb5c2adb2c338d7155c5e70bd3290bc3935a740ce1b291700915559be5","signature":"24dcb20e81830d1e14dcbfb4f54097a6201ac850e5e3d32ad98f8ec2e366acad"},{"version":"363b51b18cfdf213b990a45ffe6225793cd370ed38b54b42ba057f37cd8c4c34","signature":"5d999925e847ad23c8657074fda9a5559113c4156c89e668322505a243907449"},{"version":"81d363282ea148ae7b5b68bb0f7bc10f56f8c043c74ae1538b19f831816670b1","signature":"afda0409fddfcda8a53326dc8c5c79c4ff26218402529a4858f6141a31303960"},{"version":"fc25931907a5b86b4a58c9c8dcd1bf0e40afb8cda0a3da07389ea04462398766","signature":"ac5c1191c3d4470d58db7c0ed081b2f638f6b7cc91df7b670ff3317987e4326f"},{"version":"676d32222d79f25153430eca53541ff6ab411f36b2b46e3ce26d6d642e8aaa8f","signature":"9dea0e20ae109cffb6ed9c1f6c80f27731d59075092ee73e390a08402bc575c1"},{"version":"e7cf7858020dd7939dbc9351690a5c9dbcf0f7e455a576ae0fe94bc9f2e45c73","signature":"d2fb24212524dceaae883198dab7e0c31ddf30ea61ca0d326b7c87df6e12b51f"},{"version":"321dda8e00109f534c0336c94eefc2dafc4b78e12c5c09b4c8e1dfc430dc3233","signature":"04942cf19474c37c7b3300e4a916889fe64de4ecf14673000eab7f0980025e93"},{"version":"e485a6d2b76553f36a4012b9a6d965dd9a957f07daa5ccd7fc86adabc6224c38","signature":"3043f46820ae3d97134378e2cbbea4795b8b8af9faf1d93c6e3863de25604760"},{"version":"1e661c5647265cf361ca057dd9bcc749bf9e7580b1b7925972e2bd7f78ef0484","signature":"22a8f90c30ac847439de1e1bf7a7d082838ca007f19f3f64c70f3e3050c41818"},{"version":"c373b6c53f49131399afd6edb7d1d7fb4b67ab6389cb64959669b81065ada0b7","signature":"486af43b7fcc52d41a0417ecd2af092427e92576a9838b2c492d2aeebec4b46e"},{"version":"1ff96ed2ba881c32e79206c6351120e5982b3c3b101a4b3db5d669f5ee875880","signature":"9285a11d74282bc87cc42eb49bc568a7ae64c01976847c695fbbcb010e04f095"},{"version":"09075588e1e3a93a522ee983e4e1f33df636a21da6184b34281b04a4bee42031","signature":"1848cbb2fe093dfd3b6943863a908640c775386918cc553c4efd157a6e76d611"},{"version":"f0514756f04f3f3029aa1d045f49759d547674c09991b4d2e903f8bb1141d673","signature":"e3c2ec59f8043229f0833b26ba5505a4f6376fa7f79d8bf648a62b22dddf4012"},{"version":"e8d059fb2fc4dd11a0db213f7b8c333f6606b096b312fba7bb1ba813a6558d8a","signature":"b486316cd620151cd230197a3ea21cf02c1ab34b3bfa57bfa36df03764643f9a"},{"version":"e4070b2e6dec09370be84f436d0ecc3d96c7e76b5a829c3119d7290c957a3b43","signature":"d67837989e43a17172fd6b2c8d35e0f4ec113b93b4e38c7d9e043583bb243a2e"},{"version":"69d54a3222a5b70aa832987c6a0f93e5e607deaf16e966f7eaf4e1a1478bfac2","signature":"61b7f1a8a4b263a377c98eed16662ae2bef8f477d1b0c3b2a77879dcf2662d77"},{"version":"415fb80aa72396e3ac46476733be00fe3dc77ab04856661e185c81433db2d01a","signature":"9d608e34e7f154e44e1ea22d061751a4701f1e6886e41ac65f6fe656023a99d6"},{"version":"1ae77f627681b422090f8bdc04b5b4ab09f3aded0dbf06c5f48f0047f5d5706a","signature":"70bf61441a5592f1e4f288044cf33e83db99cd5c739a76530a540c1406756a00"},{"version":"053219eefb0777709957ec370824d1570951988125a07fac068e569c45053918","signature":"a2f2de49faf40170bff259d79db0f78e98f00cd7c820e49be15e75a1b987ee28"},{"version":"dac0fcd011902b2cbf13f94df85cd0fff3ecf00f7974f045b9258de26926f686","signature":"1aaad7c6a640476477479547e60203ce4180412aafa7cbc56e5dd68b8f6057aa"},{"version":"7771445b331dbd63e01d3e2ff0a413ce01c75beb2deec7f9b088bf2c2f9b19f5","signature":"3fdf7288d9ed9d9f29fccae42c33729fb5efcbb18c15271b78423f2b61a0b170"},{"version":"deef5760367fe27e6ba2e0e6274c2e4aa71a6a8723977057d9293f44c321c114","signature":"e27ec2713f828636d35729e44fd9cc4985833d569553e2b2a3cf01101acd4ec9"},{"version":"a87129855a6898b5ca3cc4f46697be40be1900e642694bcdc59dbedcf05dfd5c","signature":"c2ed7248f573304683b5de07eff2e57415d264ee7bd14f5f3d398915a26c6167"},{"version":"e9ac903a51f3dc918e05e301d7507aff2509c2db8e29d85fd73a756b3b0412ac","signature":"1ed78972624bafbf10bb1f81ba4cc63bf36bb156f351046d5d407fa055b75dce"},{"version":"2f133be0f7197273001fdcb24563b2951ef9b1694a9b7489013f7af9f47c38b5","signature":"4145d8b6a1abd1fd7dbf3ad2fcc70120e555cf029c4fa6d8477e30753aae7266"},{"version":"2e762ce2704dabbed305b7182da56c419dba3bd8a65f0f52d8a25b99d3673137","signature":"af9da8a546b60b31496ed251ae53cc72bc3d41f7b47694393dfa65a51280f908"},{"version":"e69c0b65fdfcc284bddc62aa4b514f21c574cc903f52b93bc9a36b23d8d86228","signature":"498f51f807f57d06b29b47c30ed131aa8dc67cdc6d3efd5fae63cc93b591c444"},{"version":"2e762ce2704dabbed305b7182da56c419dba3bd8a65f0f52d8a25b99d3673137","signature":"af9da8a546b60b31496ed251ae53cc72bc3d41f7b47694393dfa65a51280f908"},{"version":"411020f596b80e58fe37f7b627c1332a97741ba57420a3109f538f8a05ca4ca8","signature":"855d6732b5d77e501a6367ff9726b6fc02e5a36ec31181dd8ae165567a7a38b4"},{"version":"efff7ade1541a8a2eb0ba4ef4e37e41a26e0c984f1b01cd14983dff11f6da5b5","signature":"2c20cc7238cbd19319210cf5855138d104e9e3ba267c3d20aeaf279a9af47c42"},{"version":"81ad8984e9880613c4e057d65176597acd7e4ff0610f6b44d20d1ab97b53e1d1","signature":"3013de7e95be2b01e5f8d187e8de22c5313a47030eb26d17897153b1101405a5"},{"version":"c939aed41531096d26a08cf3cca5ecf3c05c24b030af84e1cb1ba0307c119ce9","signature":"43b644698d12b39f153baa6ad3a180e44ba7c54269fab60b52bd549fddc15476"},{"version":"ad21ca8687e59e302bd87273c4b9d0e180cfe18499e2f6b9421725764549d960","signature":"a22e4cd16c8f73a978225092138442f1879da5672da984ea40ce35f0e06a427e"},{"version":"4e81e21175876dd5159ac6d43f4ca7b457f11170decf2dc539efacb2fad0d72a","signature":"6e557f2433a75d20ba296fccaecd20796e7a66ce88ac4620c587ba909ac2eb1f"},{"version":"67355ca6d610f664bdb24743b9cc6d35547ed1e7c2adbe53f46a1a1e2238505b","signature":"bedf23c1c94c3a4bfdb5249f78d29242762285f4adfddbbcda52f098b4d025cf"},{"version":"8a21f93651233b29efd855bb3abdd924e722208f1717753a6dcaf2420cdda46b","signature":"d87f08972ad9cc5f7bd9277308741f225722d74a1a49c93778951a07ef1edc49"},{"version":"88585e1d70cd4f0fac0f0bf3108c7fa33eb0ed482debd437bc13d751b2cbf902","signature":"cf9023853abdc876cdbe234c35bee87f8fcfe1975af839c77f987676a5070c14"},{"version":"02f008f69fdef4a2b1eff41907acb6dffadaf2e3707f2fc1839d83177cd0757c","signature":"adeb007dd90e76a73f4b070139a964cdb3159560e6f359c53791ec8dfff73b5e"},{"version":"2e868b4f7b6ff80207152a12025136a1b654144af15097c26fd261eb940f805c","signature":"7cdaa38ab075300328647b62916089b9380c010e04d20b9d66671d99564dd286"},{"version":"ac67ccaa9e21896d07dba6e76075a6e56e5a773b6b0241231daaccf029132aad","signature":"209e9e58dd4eb70a91262c65d4be7b544d825fafbcdc9dd3dbadb4cae334c82c"},{"version":"38d77c1e4d11780dbc03ff0b6b3fab908fd94747cdd70a93c8cf16a8e823554c","signature":"5035b339f67ec94577421c650110c612b192e40ab6e3c7c24cfdd5e0d7695f72"},{"version":"421b1a5f751b0135df9e0ae4f8fbadda26b0a28bbd02e402669844959b49f132","signature":"5fb0f9a1e35016120a2bfb2735b12de00912f399949e8e8f8813d2faecd98a0f"},{"version":"115d9bfdd156fa6b2d9affe5cd8feb81344b9aa19481a3f5bde1b8008a114299","signature":"719eaa179d953b043795fd6fc3e97cc51bda454e8bad55fcb31e58a1ba03ae10"},{"version":"3226a1b3524f1c07d8379f9d9b445943f36131e5fbde8d777b7cb2cef3f56a82","signature":"0df8815fca8b165f461723833493def462844cf11722ef1cced82e52b3b8d881"},{"version":"8d41619dda215df9b5cb439c19f7e7d810f0fb2712ba43f3c11ba175b80311f0","signature":"1892494c78bbe8c8c4bb08d7eb71e945c8a6a740a7790da48d0c2d4123713750"},{"version":"42d3c38255abea91c99f21da2e3063e5a0731a4af69b79e8cc2f8dfa050bac51","signature":"c9b56f9184f07672a8c8aa49825d76830b4ca78537cf5ac8e158e23dd64df234"},"6c27d4b5ba01295ef334456d9af4366aca789f228eee70fcb874b903a59b0e5b",{"version":"d2917c1370f3d1859c884ba3726d63c14fa3086a0c8671d311b08810e557dd22","signature":"18f168653a953e3bf0ed315e79413969de4c6fcff7add51c8b2005eda2a07cb2"},{"version":"a0f41c123f2d733f503fa755bb2d029aa461364ba103b87f27685ff447835d34","signature":"914fc0941912b62e2f6a03a59ab61b2eae9d4c5a9d5f2728ad47a5b5021b5d6f"},"c561efdf5ba0b62619745d4761fe2d9756f23db972e039367d15922fed67fd2f","cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb","7ec238b220ea991b6643e24191b1f552a65956d5f6de4c6144e700b9985265d8","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","dae3d1adc67ac3dbd1cd471889301339ec439837b5df565982345be20c8fca9a","5426e62886b7be7806312d31a00e8f7dccd6fe63ba9bbefe99ee2eab29cc48a3","7e771891adaa85b690266bc37bd6eb43bc57eecc4b54693ead36467e7369952a","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"02873d070f9cb79f50833fbf4a9a27ac578a2edf8ddb8421eba1b37faba83bfb","affectsGlobalScope":true},"21a167fec8f933752fb8157f06d28fab6817af3ad9b0bdb1908a10762391eab9",{"version":"c0db280fa6b09d7b8d6720a19a47f485956a41ee0e6914f1b704033eb69c6058","affectsGlobalScope":true},"0c0cee62cb619aed81133b904f644515ba3064487002a7da83fd8aa07b1b4abd","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","afcc1c426b76db7ec80e563d4fb0ba9e6bcc6e63c2d7e9342e649dc56d26347f","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","489532ff54b714f0e0939947a1c560e516d3ae93d51d639ab02e907a0e950114","f30bb836526d930a74593f7b0f5c1c46d10856415a8f69e5e2fc3db80371e362","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"816ad2e607a96de5bcac7d437f843f5afd8957f1fa5eefa6bba8e4ed7ca8fd84","affectsGlobalScope":true},"cec36af22f514322f870e81d30675c78df82ae8bf4863f5fd4e4424c040c678d","d903fafe96674bc0b2ac38a5be4a8fc07b14c2548d1cdb165a80ea24c44c0c54","b01a80007e448d035a16c74b5c95a5405b2e81b12fabcf18b75aa9eb9ef28990","04eb6578a588d6a46f50299b55f30e3a04ef27d0c5a46c57d8fcc211cd530faa","dbe5aa5a5dd8bd1c6a8d11b1310c3f0cdabaacc78a37b394a8c7b14faeb5fb84","2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"d4ac44f01d42f541631c5fc88d0ed8efac29a3a3ad9a745d9fd58f8b61ed132e","7c013aa892414a7fdcfd861ae524a668eaa3ede8c7c0acafaf611948122c8d93","b0973c3cbcdc59b37bf477731d468696ecaf442593ec51bab497a613a580fe30",{"version":"4989e92ba5b69b182d2caaea6295af52b7dc73a4f7a2e336a676722884e7139d","affectsGlobalScope":true},{"version":"b3624aed92dab6da8484280d3cb3e2f4130ec3f4ef3f8201c95144ae9e898bb6","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","210d54cd652ec0fec8c8916e4af59bb341065576ecda039842f9ffb2e908507c","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","3163f47436da41706c6e2b3c1511f3b7cce9f9f3905b2f3e01246c48b4ba7d14","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","213fc4f2b172d8beb74b77d7c1b41488d67348066d185e4263470cbb010cd6e8",{"version":"970a90f76d4d219ad60819d61f5994514087ba94c985647a3474a5a3d12714ed","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","4c8525f256873c7ba3135338c647eaf0ca7115a1a2805ae2d0056629461186ce","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"f0900cd5d00fe1263ff41201fb8073dbeb984397e4af3b8002a5c207a30bdc33","affectsGlobalScope":true},{"version":"f7db71191aa7aac5d6bc927ed6e7075c2763d22c7238227ec0c63c8cf5cb6a8b","affectsGlobalScope":true},"06d7c42d256f0ce6afe1b2b6cfbc97ab391f29dadb00dd0ae8e8f23f5bc916c3","ec4bd1b200670fb567920db572d6701ed42a9641d09c4ff6869768c8f81b404c","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa",{"version":"da26af7362f53d122283bc69fed862b9a9fe27e01bc6a69d1d682e0e5a4df3e6","affectsGlobalScope":true},"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"652ee9c5103e89102d87bc20d167a02a0e3e5e53665674466c8cfea8a9e418c7","01f7828047b5c6703d3c601473618b448f5506a88fcac852638b0715c3abf4eb","6d829824ead8999f87b6df21200df3c6150391b894b4e80662caa462bd48d073","afc559c1b93df37c25aef6b3dfa2d64325b0e112e887ee18bf7e6f4ec383fc90","6fbd58e4015b9ae31ea977d4d549eb24a1102cc798b57ec5d70868b542c06612","b8a427b9fe88504a6fb092e21adfe272d144394a2ced7f9e4adc3de7efa6e216","16d51f964ec125ad2024cf03f0af444b3bc3ec3614d9345cc54d09bab45c9a4c","ba601641fac98c229ccd4a303f747de376d761babb33229bb7153bed9356c9cc",{"version":"ae3fe461989bbd951344efc1f1fe932360ce7392e6126bdb225a82a1bbaf15ee","affectsGlobalScope":true},"5b9ecf7da4d71cf3832dbb8336150fa924631811f488ad4690c2dfec2b4fb1d7","951c85f75aac041dddbedfedf565886a7b494e29ec1532e2a9b4a6180560b50e","f47887b61c6cf2f48746980390d6cb5b8013518951d912cfb37fe748071942be","15c88bfd1b8dc7231ff828ae8df5d955bae5ebca4cf2bcb417af5821e52299ae","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba","f463d61cf39c3a6a5f96cdf7adfdb72a0b1d663f7b5d5b6dd042adba835430c2","8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","763e521cf114b80e0dd0e21ca49b9f8ae62e8999555a5e7bade8ce36b33001c2","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","3e6bbb0883148627ca0854a9f62d820aaf1a0f1842f5568176721fef156b8f23","ffcc5500e77223169833fc6eb59b3a507944a1f89574e0a1276b0ea7fc22c4a4","22f13de9e2fe5f0f4724797abd3d34a1cdd6e47ef81fc4933fea3b8bf4ad524b","e3ba509d3dce019b3190ceb2f3fc88e2610ab717122dabd91a9efaa37804040d","cda0cb09b995489b7f4c57f168cd31b83dcbaa7aad49612734fb3c9c73f6e4f2","f72f8428f3c1caa22e9c247d046603b85b442c0dae7b77a7a0bc092c18867cb7",{"version":"195f63105abc03e72b6a176e3e34dfb5ac932b55db378fdc7874b1617e24b465","affectsGlobalScope":true},"f3e604694b624fa3f83f6684185452992088f5efb2cf136b62474aa106d6f1b6","bb4ed283cfb3db7ec1d4bb79c37f5e96d39b340f1f4de995c4b0b836c8d5fa05","8841e2aa774b89bd23302dede20663306dc1b9902431ac64b24be8b8d0e3f649","209e814e8e71aec74f69686a9506dd7610b97ab59dcee9446266446f72a76d05","bb654d426b82e0846cd4bd7de91d637039ecdfd63c94447373490178f80846fe","db90f54098b237753ac9c846e39cd49aa538dcad07a2e1c68a138f3c0f8e621d","92ad68795c32309fb43576cacb38bd2677deeed38f5730dcd4a8c5e65463ae15","4b16417aab5a4b276fd4a7db95120a8c7b4d49a6d68ddfe075e9f46dcbf22f00","eecb2ea10a1500dcc6bdeff14be1fb43806f63a9b8562e16e1b4fc8baa8dfa8d","221a6ab66d611349faaf80af49c7a34d95623787610fd153fed4da0811abdcae","f3d84d6f83cf131e4db335dc8100898adbeb01dd4cf4e2fe695ab220eac98be4","6521aaade4e1d23cbc4b665083b004aeaca23f3347ba2422f88d1828968a0056","e79130cf2ba010f2b79747bf43b086252ad041b130768331a1144c0a86185877","e9709ed827c40789c669736fc78e2ab603605e8e81325d1e6d7a5eb451810dd0","dafce7a7b279977940b6b4b50017625e4f922f73094433d2875994bdc0b27e87","6fc76efbb61d3336833ef44ff3f37552667f26c2a73b368f3b4b259f19f2c234","479496e5bb48f2f5e981ef646665bc09fd9ab080e86e9ea882ca4369411604af","6c559dee3c6251c261b67df08e01d4cbc89cbd7a63300150c636705733cebfff","6fa0008bf91a4cc9c8963bace4bba0bd6865cbfa29c3e3ccc461155660fb113a","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","f60e3e3060207ac982da13363181fd7ee4beecc19a7c569f0d6bb034331066c2","17230b34bb564a3a2e36f9d3985372ccab4ad1722df2c43f7c5c2b553f68e5db","87ed0f84f0691d5c724b23159db96342e6b04ac69201b02c65936f4281ce1fbe","13868c5792808236b17dfe2803eafce911ea4d09d3b2fda95391891a494f988f","0dfe35191a04e8f9dc7caeb9f52f2ee07402736563d12cbccd15fb5f31ac877f","fa5c2d3fcd8e227e180815df0a0903ed4b116400452af8a75ac5b68e5e1de9da","93c4fc5b5237c09bc9ed65cb8f0dc1d89034406ab40500b89701341994897142","9adb78bae51a473d33f40da9bdb50c0e491d1cc7a5db776665853effa0cd3374","b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298","70e9a18da08294f75bf23e46c7d69e67634c0765d355887b9b41f0d959e1426e","28288f5e5f8b7b895ed2abe6359c1da3e0d14a64b5aef985071285671f347c01"],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"emitDeclarationOnly":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"jsx":1,"module":1,"noImplicitAny":false,"outDir":"./","removeComments":true,"skipLibCheck":true,"sourceMap":true,"strict":true,"strictPropertyInitialization":false,"target":7},"fileIdsList":[[151,203],[203],[203,230],[151,152,153,154,155,203],[151,153,203],[203,210],[176,203,210,212],[176,203,210],[176,203],[203,211],[173,176,203,210,216,217],[203,213,217,218,221],[174,203,210],[203,225],[203,226],[203,232,235],[203,219],[203,220],[157,203],[160,203],[161,166,194,203],[162,173,174,181,191,202,203],[162,163,173,181,203],[164,203],[165,166,174,182,203],[166,191,199,203],[167,169,173,181,203],[168,203],[169,170,203],[173,203],[171,173,203],[173,174,175,191,202,203],[173,174,175,188,191,194,203],[203,207],[176,181,191,202,203],[173,174,176,177,181,191,199,202,203],[176,178,191,199,202,203],[157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209],[173,179,203],[180,202,203],[169,173,181,191,203],[182,203],[183,203],[160,184,203],[185,201,203,207],[186,203],[187,203],[173,188,189,203],[188,190,203,205],[161,173,191,192,193,194,203],[161,191,193,203],[191,192,203],[194,203],[195,203],[173,197,198,203],[197,198,203],[166,181,191,199,203],[200,203],[181,201,203],[161,176,187,202,203],[166,203],[191,203,204],[203,205],[203,206],[161,166,173,175,184,191,202,203,205,207],[191,203,208],[203,210,242,244,248,249,250,251,252,253],[191,203,210],[173,203,210,242,244,245,247,254],[173,181,191,202,203,210,241,242,243,245,246,247,254],[191,203,210,244,245],[191,203,210,244,246],[203,210,242,244,245,247,254],[191,203,210,246],[173,181,191,199,203,210,243,245,247],[173,203,210,242,244,245,246,247,254],[173,191,203,210,242,243,244,245,246,247,254],[173,191,203,210,242,244,245,247,254],[176,191,203,210,247],[173,191,199,203,210,257,258,261,262],[176,203,210,220],[203,266],[203,228,234],[203,232],[203,229,233],[203,210,258,259,260],[191,203,210,258],[203,231],[68,203],[59,60,203],[57,58,59,61,62,66,203],[58,59,203],[67,203],[59,203],[57,58,59,62,63,64,65,203],[57,58,68,203],[83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,203],[80,203],[83,109,203],[109,203],[83,203],[114,120,203],[83,121,203],[83,120,203],[83,114,203],[100,114,118,119,203],[100,203],[83,100,203],[114,203],[100,114,203],[83,109,114,203],[147,149,203],[83,102,105,147,148,173,203],[72,79,203],[69,72,76,78,203],[69,71,203],[72,75,79,203],[72,75,76,77,79,203],[72,73,74,76,79,203],[72,73,79,203],[70,80,81,203],[70,82,203],[69,203],[70,80,203],[151],[230],[151,152,153,154,155],[151,153],[268],[212,268,269],[268,269],[269],[211],[216,217,268,269,270],[213,217,218,221],[268,271],[225],[226],[232,235],[219],[220],[242,244,248,249,250,251,252,253,268],[268,272],[242,244,245,247,254,268,270],[241,242,243,245,246,247,254,268,270,272,273,274],[244,245,268,272],[244,246,268,272],[242,244,245,247,254,268],[246,268,272],[243,245,247,268,270,272,273,275],[242,244,245,246,247,254,268,270],[242,243,244,245,246,247,254,268,270,272],[242,244,245,247,254,268,270,272],[247,268,269,272],[257,258,261,262,268,270,272,275],[220,268,269],[266],[228,234],[232],[229,233],[258,259,260,268],[258,268,272],[231],[68],[59,60],[57,58,59,61,62,66],[58,59],[67],[59],[57,58,59,62,63,64,65],[57,58,68],[83,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146],[80],[83,109],[109],[83],[114,120],[83,121],[83,120],[83,114],[100,114,118,119],[100],[83,100],[114],[100,114],[83,109,114],[147,149],[83,147,148],[72,79],[69,72,76,78,276],[69,71,276],[72,75,79,276],[72,75,76,77,79,276],[72,73,74,76,79,276],[72,73,79],[70,80,81],[70,82],[69],[70,80,276]],"referencedMap":[[153,1],[151,2],[228,2],[231,3],[230,2],[156,4],[152,1],[154,5],[155,1],[211,6],[213,7],[212,8],[214,9],[215,10],[218,11],[222,12],[223,13],[224,2],[225,2],[226,14],[227,15],[236,16],[237,2],[238,6],[220,17],[219,18],[239,2],[240,2],[157,19],[158,19],[160,20],[161,21],[162,22],[163,23],[164,24],[165,25],[166,26],[167,27],[168,28],[169,29],[170,29],[172,30],[171,31],[173,30],[174,32],[175,33],[159,34],[209,2],[176,35],[177,36],[178,37],[210,38],[179,39],[180,40],[181,41],[182,42],[183,43],[184,44],[185,45],[186,46],[187,47],[188,48],[189,48],[190,49],[191,50],[193,51],[192,52],[194,53],[195,54],[196,2],[197,55],[198,56],[199,57],[200,58],[201,59],[202,60],[203,61],[204,62],[205,63],[206,64],[207,65],[208,66],[254,67],[241,68],[248,69],[244,70],[242,71],[245,72],[249,73],[250,69],[247,74],[246,75],[251,76],[252,77],[253,78],[243,79],[255,2],[256,2],[262,80],[263,2],[217,2],[216,2],[221,81],[264,68],[265,2],[266,2],[267,82],[229,2],[235,83],[233,84],[234,85],[261,86],[258,6],[260,87],[259,6],[257,2],[232,88],[148,2],[11,2],[12,2],[15,2],[14,2],[2,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[22,2],[23,2],[3,2],[4,2],[27,2],[24,2],[25,2],[26,2],[28,2],[29,2],[30,2],[5,2],[31,2],[32,2],[33,2],[34,2],[6,2],[35,2],[36,2],[37,2],[38,2],[7,2],[39,2],[44,2],[45,2],[40,2],[41,2],[42,2],[43,2],[8,2],[49,2],[46,2],[47,2],[48,2],[50,2],[9,2],[51,2],[52,2],[53,2],[54,2],[55,2],[1,2],[10,2],[56,2],[13,2],[69,89],[61,90],[67,91],[63,2],[64,2],[62,92],[65,89],[57,2],[58,2],[68,93],[60,94],[66,95],[59,96],[147,97],[84,98],[110,99],[111,99],[112,99],[113,2],[114,100],[115,99],[116,99],[117,101],[118,2],[119,2],[121,102],[122,103],[123,104],[124,99],[125,103],[126,105],[120,106],[127,107],[128,108],[129,107],[130,107],[131,2],[133,109],[132,2],[134,110],[135,109],[136,105],[137,111],[138,111],[139,111],[140,111],[141,101],[142,105],[143,101],[144,2],[145,2],[146,2],[109,2],[85,101],[86,101],[87,101],[88,101],[89,101],[90,101],[91,101],[92,101],[93,101],[94,101],[95,101],[96,101],[97,101],[98,101],[99,101],[100,2],[101,101],[102,101],[103,101],[104,101],[105,101],[106,101],[107,101],[108,101],[150,112],[149,113],[80,114],[79,115],[72,116],[76,117],[78,118],[74,114],[75,119],[73,114],[77,120],[71,2],[82,121],[83,122],[70,123],[81,124]],"exportedModulesMap":[[153,125],[231,126],[156,127],[152,125],[154,128],[155,125],[211,129],[213,130],[212,131],[214,132],[215,133],[218,134],[222,135],[223,136],[226,137],[227,138],[236,139],[238,129],[220,140],[219,141],[157,19],[158,19],[160,20],[161,21],[162,22],[163,23],[164,24],[165,25],[166,26],[167,27],[168,28],[169,29],[170,29],[172,30],[171,31],[173,30],[174,32],[175,33],[159,34],[209,2],[176,35],[177,36],[178,37],[210,38],[179,39],[180,40],[181,41],[182,42],[183,43],[184,44],[185,45],[186,46],[187,47],[188,48],[189,48],[190,49],[191,50],[193,51],[192,52],[194,53],[195,54],[196,2],[197,55],[198,56],[199,57],[200,58],[201,59],[202,60],[203,61],[204,62],[205,63],[206,64],[207,65],[208,66],[254,142],[241,143],[248,144],[244,145],[242,146],[245,147],[249,148],[250,144],[247,149],[246,150],[251,151],[252,152],[253,153],[243,154],[262,155],[221,156],[264,68],[267,157],[235,158],[233,159],[234,160],[261,161],[258,129],[260,162],[259,129],[232,163],[69,164],[61,165],[67,166],[62,167],[65,164],[68,168],[60,169],[66,170],[59,171],[147,172],[84,173],[110,174],[111,174],[112,174],[114,175],[115,174],[116,174],[117,176],[121,177],[122,178],[123,179],[124,174],[125,178],[126,180],[120,181],[127,182],[128,183],[129,182],[130,182],[133,184],[134,185],[135,184],[136,180],[137,186],[138,186],[139,186],[140,186],[141,176],[142,180],[143,176],[85,176],[86,176],[87,176],[88,176],[89,176],[90,176],[91,176],[92,176],[93,176],[94,176],[95,176],[96,176],[97,176],[98,176],[99,176],[101,176],[102,176],[103,176],[104,176],[105,176],[106,176],[107,176],[108,176],[150,187],[149,188],[80,189],[79,190],[72,191],[76,192],[78,193],[74,189],[75,194],[73,189],[77,195],[82,196],[83,197],[70,198],[81,199]],"semanticDiagnosticsPerFile":[153,151,228,231,230,156,152,154,155,211,213,212,214,215,218,222,223,224,225,226,227,236,237,238,220,219,239,240,157,158,160,161,162,163,164,165,166,167,168,169,170,172,171,173,174,175,159,209,176,177,178,210,179,180,181,182,183,184,185,186,187,188,189,190,191,193,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,254,241,248,244,242,245,249,250,247,246,251,252,253,243,255,256,262,263,217,216,221,264,265,266,267,229,235,233,234,261,258,260,259,257,232,148,11,12,15,14,2,16,17,18,19,20,21,22,23,3,4,27,24,25,26,28,29,30,5,31,32,33,34,6,35,36,37,38,7,39,44,45,40,41,42,43,8,49,46,47,48,50,9,51,52,53,54,55,1,10,56,13,69,61,67,63,64,62,65,57,58,68,60,66,59,147,84,110,111,112,113,114,115,116,117,118,119,121,122,123,124,125,126,120,127,128,129,130,131,133,132,134,135,136,137,138,139,140,141,142,143,144,145,146,109,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,150,149,80,79,72,76,78,74,75,73,77,71,82,83,70,81],"latestChangedDtsFile":"./src/client/index.d.ts"},"version":"4.8.4"} \ No newline at end of file diff --git a/src/view/com/login/CreateAccount.tsx b/src/view/com/login/CreateAccount.tsx index 4614098db..f97eb7a0f 100644 --- a/src/view/com/login/CreateAccount.tsx +++ b/src/view/com/login/CreateAccount.tsx @@ -10,6 +10,7 @@ import { View, } from 'react-native' import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' +import {ComAtprotoAccountCreate} from '@atproto/api' import * as EmailValidator from 'email-validator' import {Logo} from './Logo' import {Picker} from '../util/Picker' @@ -24,7 +25,6 @@ import { import {useStores, DEFAULT_SERVICE} from '../../../state' import {ServiceDescription} from '../../../state/models/session' import {ServerInputModal} from '../../../state/models/shell-ui' -import {ComAtprotoAccountCreate} from '../../../third-party/api/index' export const CreateAccount = ({onPressBack}: {onPressBack: () => void}) => { const store = useStores() diff --git a/src/view/com/login/Signin.tsx b/src/view/com/login/Signin.tsx index a6ecd7f79..45728d3b3 100644 --- a/src/view/com/login/Signin.tsx +++ b/src/view/com/login/Signin.tsx @@ -10,6 +10,7 @@ import { } from 'react-native' import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' import * as EmailValidator from 'email-validator' +import {sessionClient as AtpApi, SessionServiceClient} from '@atproto/api' import {Logo} from './Logo' import {Text} from '../util/Text' import {s, colors} from '../../lib/styles' @@ -18,8 +19,6 @@ import {useStores, RootStoreModel, DEFAULT_SERVICE} from '../../../state' import {ServiceDescription} from '../../../state/models/session' import {ServerInputModal} from '../../../state/models/shell-ui' import {isNetworkError} from '../../../lib/errors' -import {sessionClient as AtpApi} from '../../../third-party/api/index' -import type {SessionServiceClient} from '../../../third-party/api/src/index' enum Forms { Login, diff --git a/src/view/com/modals/CreateScene.tsx b/src/view/com/modals/CreateScene.tsx index 760880382..0d47aa4bd 100644 --- a/src/view/com/modals/CreateScene.tsx +++ b/src/view/com/modals/CreateScene.tsx @@ -8,6 +8,7 @@ import { } from 'react-native' import LinearGradient from 'react-native-linear-gradient' import {BottomSheetScrollView, BottomSheetTextInput} from '@gorhom/bottom-sheet' +import {AppBskyActorCreateScene} from '@atproto/api' import {ErrorMessage} from '../util/ErrorMessage' import {Text} from '../util/Text' import {useStores} from '../../../state' @@ -19,7 +20,6 @@ import { MAX_DISPLAY_NAME, MAX_DESCRIPTION, } from '../../../lib/strings' -import {AppBskyActorCreateScene} from '../../../third-party/api/index' export const snapPoints = ['60%'] diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx index c45de2cb0..1a0b0ff87 100644 --- a/src/view/com/post-thread/PostThreadItem.tsx +++ b/src/view/com/post-thread/PostThreadItem.tsx @@ -3,7 +3,7 @@ import {observer} from 'mobx-react-lite' import {StyleSheet, View} from 'react-native' import Clipboard from '@react-native-clipboard/clipboard' import {AtUri} from '../../../third-party/uri' -import * as PostType from '../../../third-party/api/src/client/types/app/bsky/feed/post' +import {AppBskyFeedPost} from '@atproto/api' import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' import {PostThreadViewPostModel} from '../../../state/models/post-thread-view' import {Link} from '../util/Link' @@ -32,7 +32,7 @@ export const PostThreadItem = observer(function PostThreadItem({ }) { const store = useStores() const [deleted, setDeleted] = useState(false) - const record = item.post.record as unknown as PostType.Record + const record = item.post.record as unknown as AppBskyFeedPost.Record const hasEngagement = item.post.upvoteCount || item.post.repostCount const itemHref = useMemo(() => { diff --git a/src/view/com/post/Post.tsx b/src/view/com/post/Post.tsx index e324b21db..d9cc94315 100644 --- a/src/view/com/post/Post.tsx +++ b/src/view/com/post/Post.tsx @@ -9,7 +9,7 @@ import { import {observer} from 'mobx-react-lite' import Clipboard from '@react-native-clipboard/clipboard' import {AtUri} from '../../../third-party/uri' -import * as PostType from '../../../third-party/api/src/client/types/app/bsky/feed/post' +import {AppBskyFeedPost} from '@atproto/api' import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' import {PostThreadViewModel} from '../../../state/models/post-thread-view' import {Link} from '../util/Link' @@ -77,7 +77,7 @@ export const Post = observer(function Post({ // loaded // = const item = view.thread - const record = view.thread?.post.record as unknown as PostType.Record + const record = view.thread?.post.record as unknown as AppBskyFeedPost.Record const itemUrip = new AtUri(item.post.uri) const itemHref = `/profile/${item.post.author.handle}/post/${itemUrip.rkey}` diff --git a/src/view/com/posts/FeedItem.tsx b/src/view/com/posts/FeedItem.tsx index 1766cca4e..9fd9d46b2 100644 --- a/src/view/com/posts/FeedItem.tsx +++ b/src/view/com/posts/FeedItem.tsx @@ -4,7 +4,7 @@ import {StyleSheet, View} from 'react-native' import Clipboard from '@react-native-clipboard/clipboard' import Svg, {Circle, Line} from 'react-native-svg' import {AtUri} from '../../../third-party/uri' -import * as PostType from '../../../third-party/api/src/client/types/app/bsky/feed/post' +import {AppBskyFeedPost} from '@atproto/api' import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' import {FeedItemModel} from '../../../state/models/feed-view' import {Link} from '../util/Link' @@ -28,7 +28,7 @@ export const FeedItem = observer(function ({ }) { const store = useStores() const [deleted, setDeleted] = useState(false) - const record = item.post.record as unknown as PostType.Record + const record = item.post.record as unknown as AppBskyFeedPost.Record const itemHref = useMemo(() => { const urip = new AtUri(item.post.uri) return `/profile/${item.post.author.handle}/post/${urip.rkey}` diff --git a/src/view/com/util/PostEmbeds.tsx b/src/view/com/util/PostEmbeds.tsx index fa88bbdb1..1c980465a 100644 --- a/src/view/com/util/PostEmbeds.tsx +++ b/src/view/com/util/PostEmbeds.tsx @@ -1,7 +1,6 @@ import React from 'react' import {ImageStyle, StyleSheet, StyleProp, View, ViewStyle} from 'react-native' -import * as AppBskyEmbedImages from '../../../third-party/api/src/client/types/app/bsky/embed/images' -import * as AppBskyEmbedExternal from '../../../third-party/api/src/client/types/app/bsky/embed/external' +import {AppBskyEmbedImages, AppBskyEmbedExternal} from '@atproto/api' import {Link} from '../util/Link' import {Text} from '../util/Text' import {colors} from '../../lib/styles' diff --git a/src/view/com/util/UserInfoText.tsx b/src/view/com/util/UserInfoText.tsx index 51d130ca5..cdd1f4d91 100644 --- a/src/view/com/util/UserInfoText.tsx +++ b/src/view/com/util/UserInfoText.tsx @@ -1,5 +1,5 @@ import React, {useState, useEffect} from 'react' -import * as GetProfile from '../../../third-party/api/src/client/types/app/bsky/actor/getProfile' +import {AppBskyActorGetProfile as GetProfile} from '@atproto/api' import {StyleProp, TextStyle} from 'react-native' import {Link} from './Link' import {Text} from './Text' |