Skip to content

Commit

Permalink
Remove temp.upgradeRepoVersion (#1588)
Browse files Browse the repository at this point in the history
remove temp.upgradeRepoVersion
  • Loading branch information
dholms authored Sep 12, 2023
1 parent 3cdc72a commit 07bb0da
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 595 deletions.
21 changes: 0 additions & 21 deletions lexicons/com/atproto/temp/upgradeRepoVersion.json

This file was deleted.

23 changes: 0 additions & 23 deletions packages/api/src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ import * as ComAtprotoSyncListRepos from './types/com/atproto/sync/listRepos'
import * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOfUpdate'
import * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCrawl'
import * as ComAtprotoSyncSubscribeRepos from './types/com/atproto/sync/subscribeRepos'
import * as ComAtprotoTempUpgradeRepoVersion from './types/com/atproto/temp/upgradeRepoVersion'
import * as AppBskyActorDefs from './types/app/bsky/actor/defs'
import * as AppBskyActorGetPreferences from './types/app/bsky/actor/getPreferences'
import * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile'
Expand Down Expand Up @@ -194,7 +193,6 @@ export * as ComAtprotoSyncListRepos from './types/com/atproto/sync/listRepos'
export * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOfUpdate'
export * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCrawl'
export * as ComAtprotoSyncSubscribeRepos from './types/com/atproto/sync/subscribeRepos'
export * as ComAtprotoTempUpgradeRepoVersion from './types/com/atproto/temp/upgradeRepoVersion'
export * as AppBskyActorDefs from './types/app/bsky/actor/defs'
export * as AppBskyActorGetPreferences from './types/app/bsky/actor/getPreferences'
export * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile'
Expand Down Expand Up @@ -322,7 +320,6 @@ export class AtprotoNS {
repo: RepoNS
server: ServerNS
sync: SyncNS
temp: TempNS

constructor(service: AtpServiceClient) {
this._service = service
Expand All @@ -333,7 +330,6 @@ export class AtprotoNS {
this.repo = new RepoNS(service)
this.server = new ServerNS(service)
this.sync = new SyncNS(service)
this.temp = new TempNS(service)
}
}

Expand Down Expand Up @@ -1009,25 +1005,6 @@ export class SyncNS {
}
}

export class TempNS {
_service: AtpServiceClient

constructor(service: AtpServiceClient) {
this._service = service
}

upgradeRepoVersion(
data?: ComAtprotoTempUpgradeRepoVersion.InputSchema,
opts?: ComAtprotoTempUpgradeRepoVersion.CallOptions,
): Promise<ComAtprotoTempUpgradeRepoVersion.Response> {
return this._service.xrpc
.call('com.atproto.temp.upgradeRepoVersion', opts?.qp, data, opts)
.catch((e) => {
throw ComAtprotoTempUpgradeRepoVersion.toKnownErr(e)
})
}
}

export class AppNS {
_service: AtpServiceClient
bsky: BskyNS
Expand Down
27 changes: 0 additions & 27 deletions packages/api/src/client/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3517,32 +3517,6 @@ export const schemaDict = {
},
},
},
ComAtprotoTempUpgradeRepoVersion: {
lexicon: 1,
id: 'com.atproto.temp.upgradeRepoVersion',
defs: {
main: {
type: 'procedure',
description: 'Upgrade a repo to v3',
input: {
encoding: 'application/json',
schema: {
type: 'object',
required: ['did'],
properties: {
did: {
type: 'string',
format: 'did',
},
force: {
type: 'boolean',
},
},
},
},
},
},
},
AppBskyActorDefs: {
lexicon: 1,
id: 'app.bsky.actor.defs',
Expand Down Expand Up @@ -6828,7 +6802,6 @@ export const ids = {
ComAtprotoSyncNotifyOfUpdate: 'com.atproto.sync.notifyOfUpdate',
ComAtprotoSyncRequestCrawl: 'com.atproto.sync.requestCrawl',
ComAtprotoSyncSubscribeRepos: 'com.atproto.sync.subscribeRepos',
ComAtprotoTempUpgradeRepoVersion: 'com.atproto.temp.upgradeRepoVersion',
AppBskyActorDefs: 'app.bsky.actor.defs',
AppBskyActorGetPreferences: 'app.bsky.actor.getPreferences',
AppBskyActorGetProfile: 'app.bsky.actor.getProfile',
Expand Down

This file was deleted.

22 changes: 0 additions & 22 deletions packages/bsky/src/lexicon/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ import * as ComAtprotoSyncListRepos from './types/com/atproto/sync/listRepos'
import * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOfUpdate'
import * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCrawl'
import * as ComAtprotoSyncSubscribeRepos from './types/com/atproto/sync/subscribeRepos'
import * as ComAtprotoTempUpgradeRepoVersion from './types/com/atproto/temp/upgradeRepoVersion'
import * as AppBskyActorGetPreferences from './types/app/bsky/actor/getPreferences'
import * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile'
import * as AppBskyActorGetProfiles from './types/app/bsky/actor/getProfiles'
Expand Down Expand Up @@ -163,7 +162,6 @@ export class AtprotoNS {
repo: RepoNS
server: ServerNS
sync: SyncNS
temp: TempNS

constructor(server: Server) {
this._server = server
Expand All @@ -174,7 +172,6 @@ export class AtprotoNS {
this.repo = new RepoNS(server)
this.server = new ServerNS(server)
this.sync = new SyncNS(server)
this.temp = new TempNS(server)
}
}

Expand Down Expand Up @@ -872,25 +869,6 @@ export class SyncNS {
}
}

export class TempNS {
_server: Server

constructor(server: Server) {
this._server = server
}

upgradeRepoVersion<AV extends AuthVerifier>(
cfg: ConfigOf<
AV,
ComAtprotoTempUpgradeRepoVersion.Handler<ExtractAuth<AV>>,
ComAtprotoTempUpgradeRepoVersion.HandlerReqCtx<ExtractAuth<AV>>
>,
) {
const nsid = 'com.atproto.temp.upgradeRepoVersion' // @ts-ignore
return this._server.xrpc.method(nsid, cfg)
}
}

export class AppNS {
_server: Server
bsky: BskyNS
Expand Down
27 changes: 0 additions & 27 deletions packages/bsky/src/lexicon/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3517,32 +3517,6 @@ export const schemaDict = {
},
},
},
ComAtprotoTempUpgradeRepoVersion: {
lexicon: 1,
id: 'com.atproto.temp.upgradeRepoVersion',
defs: {
main: {
type: 'procedure',
description: 'Upgrade a repo to v3',
input: {
encoding: 'application/json',
schema: {
type: 'object',
required: ['did'],
properties: {
did: {
type: 'string',
format: 'did',
},
force: {
type: 'boolean',
},
},
},
},
},
},
},
AppBskyActorDefs: {
lexicon: 1,
id: 'app.bsky.actor.defs',
Expand Down Expand Up @@ -6828,7 +6802,6 @@ export const ids = {
ComAtprotoSyncNotifyOfUpdate: 'com.atproto.sync.notifyOfUpdate',
ComAtprotoSyncRequestCrawl: 'com.atproto.sync.requestCrawl',
ComAtprotoSyncSubscribeRepos: 'com.atproto.sync.subscribeRepos',
ComAtprotoTempUpgradeRepoVersion: 'com.atproto.temp.upgradeRepoVersion',
AppBskyActorDefs: 'app.bsky.actor.defs',
AppBskyActorGetPreferences: 'app.bsky.actor.getPreferences',
AppBskyActorGetProfile: 'app.bsky.actor.getProfile',
Expand Down

This file was deleted.

2 changes: 0 additions & 2 deletions packages/pds/src/api/com/atproto/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import moderation from './moderation'
import repo from './repo'
import serverMethods from './server'
import sync from './sync'
import upgradeRepoVersion from './upgradeRepoVersion'

export default function (server: Server, ctx: AppContext) {
admin(server, ctx)
Expand All @@ -15,5 +14,4 @@ export default function (server: Server, ctx: AppContext) {
repo(server, ctx)
serverMethods(server, ctx)
sync(server, ctx)
upgradeRepoVersion(server, ctx)
}
Loading

0 comments on commit 07bb0da

Please sign in to comment.