Skip to content

Commit

Permalink
codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieusieben committed Aug 22, 2024
1 parent 45770bb commit 5fef534
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 14 deletions.
6 changes: 1 addition & 5 deletions packages/api/src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1749,11 +1749,7 @@ export class AppBskyFeedNS {
params?: AppBskyFeedGetQuotes.QueryParams,
opts?: AppBskyFeedGetQuotes.CallOptions,
): Promise<AppBskyFeedGetQuotes.Response> {
return this._client
.call('app.bsky.feed.getQuotes', params, undefined, opts)
.catch((e) => {
throw AppBskyFeedGetQuotes.toKnownErr(e)
})
return this._client.call('app.bsky.feed.getQuotes', params, undefined, opts)
}

getRepostedBy(
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/client/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5749,7 +5749,7 @@ export const schemaDict = {
main: {
type: 'query',
description:
'Get a list of posts liked by an actor. Does not require auth.',
'Get a list of posts liked by an actor. Requires auth, actor must be the requesting account.',
parameters: {
type: 'params',
required: ['actor'],
Expand Down
9 changes: 4 additions & 5 deletions packages/api/src/client/types/app/bsky/feed/getQuotes.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* GENERATED CODE - DO NOT MODIFY
*/
import { Headers, XRPCError } from '@atproto/xrpc'
import { HeadersMap, XRPCError } from '@atproto/xrpc'
import { ValidationResult, BlobRef } from '@atproto/lexicon'
import { isObj, hasProp } from '../../../../util'
import { lexicons } from '../../../../lexicons'
Expand All @@ -28,17 +28,16 @@ export interface OutputSchema {
}

export interface CallOptions {
headers?: Headers
signal?: AbortSignal
headers?: HeadersMap
}

export interface Response {
success: boolean
headers: Headers
headers: HeadersMap
data: OutputSchema
}

export function toKnownErr(e: any) {
if (e instanceof XRPCError) {
}
return e
}
2 changes: 1 addition & 1 deletion packages/bsky/src/lexicon/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5749,7 +5749,7 @@ export const schemaDict = {
main: {
type: 'query',
description:
'Get a list of posts liked by an actor. Does not require auth.',
'Get a list of posts liked by an actor. Requires auth, actor must be the requesting account.',
parameters: {
type: 'params',
required: ['actor'],
Expand Down
2 changes: 1 addition & 1 deletion packages/ozone/src/lexicon/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5749,7 +5749,7 @@ export const schemaDict = {
main: {
type: 'query',
description:
'Get a list of posts liked by an actor. Does not require auth.',
'Get a list of posts liked by an actor. Requires auth, actor must be the requesting account.',
parameters: {
type: 'params',
required: ['actor'],
Expand Down
2 changes: 1 addition & 1 deletion packages/pds/src/lexicon/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5749,7 +5749,7 @@ export const schemaDict = {
main: {
type: 'query',
description:
'Get a list of posts liked by an actor. Does not require auth.',
'Get a list of posts liked by an actor. Requires auth, actor must be the requesting account.',
parameters: {
type: 'params',
required: ['actor'],
Expand Down

0 comments on commit 5fef534

Please sign in to comment.