Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove temp.upgradeRepoVersion #1588

Merged
merged 1 commit into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -192,7 +191,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 @@ -318,7 +316,6 @@ export class AtprotoNS {
repo: RepoNS
server: ServerNS
sync: SyncNS
temp: TempNS

constructor(service: AtpServiceClient) {
this._service = service
Expand All @@ -329,7 +326,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 @@ -1005,25 +1001,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 @@ -3519,32 +3519,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 @@ -6758,7 +6732,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 @@ -162,7 +161,6 @@ export class AtprotoNS {
repo: RepoNS
server: ServerNS
sync: SyncNS
temp: TempNS

constructor(server: Server) {
this._server = server
Expand All @@ -173,7 +171,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 @@ -871,25 +868,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 @@ -3519,32 +3519,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 @@ -6758,7 +6732,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