Nullable ratelimit calcKey (#3274)
* fix codegen * re-codegen * changeset
This commit is contained in:
parent
85a437800d
commit
672243a9ea
.changeset
packages
5
.changeset/wet-bottles-travel.md
Normal file
5
.changeset/wet-bottles-travel.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@atproto/lex-cli": patch
|
||||
---
|
||||
|
||||
Allow ratelimit calcKey to return null
|
@ -2177,13 +2177,13 @@ export class ChatBskyModerationNS {
|
||||
|
||||
type SharedRateLimitOpts<T> = {
|
||||
name: string
|
||||
calcKey?: (ctx: T) => string
|
||||
calcKey?: (ctx: T) => string | null
|
||||
calcPoints?: (ctx: T) => number
|
||||
}
|
||||
type RouteRateLimitOpts<T> = {
|
||||
durationMs: number
|
||||
points: number
|
||||
calcKey?: (ctx: T) => string
|
||||
calcKey?: (ctx: T) => string | null
|
||||
calcPoints?: (ctx: T) => number
|
||||
}
|
||||
type HandlerOpts = { blobLimit?: number }
|
||||
|
@ -180,7 +180,7 @@ const indexTs = (
|
||||
typeParameters: [{ name: 'T' }],
|
||||
type: `{
|
||||
name: string
|
||||
calcKey?: (ctx: T) => string
|
||||
calcKey?: (ctx: T) => string | null
|
||||
calcPoints?: (ctx: T) => number
|
||||
}`,
|
||||
})
|
||||
@ -191,7 +191,7 @@ const indexTs = (
|
||||
type: `{
|
||||
durationMs: number
|
||||
points: number
|
||||
calcKey?: (ctx: T) => string
|
||||
calcKey?: (ctx: T) => string | null
|
||||
calcPoints?: (ctx: T) => number
|
||||
}`,
|
||||
})
|
||||
|
@ -2638,13 +2638,13 @@ export class ToolsOzoneTeamNS {
|
||||
|
||||
type SharedRateLimitOpts<T> = {
|
||||
name: string
|
||||
calcKey?: (ctx: T) => string
|
||||
calcKey?: (ctx: T) => string | null
|
||||
calcPoints?: (ctx: T) => number
|
||||
}
|
||||
type RouteRateLimitOpts<T> = {
|
||||
durationMs: number
|
||||
points: number
|
||||
calcKey?: (ctx: T) => string
|
||||
calcKey?: (ctx: T) => string | null
|
||||
calcPoints?: (ctx: T) => number
|
||||
}
|
||||
type HandlerOpts = { blobLimit?: number }
|
||||
|
@ -2638,13 +2638,13 @@ export class ToolsOzoneTeamNS {
|
||||
|
||||
type SharedRateLimitOpts<T> = {
|
||||
name: string
|
||||
calcKey?: (ctx: T) => string
|
||||
calcKey?: (ctx: T) => string | null
|
||||
calcPoints?: (ctx: T) => number
|
||||
}
|
||||
type RouteRateLimitOpts<T> = {
|
||||
durationMs: number
|
||||
points: number
|
||||
calcKey?: (ctx: T) => string
|
||||
calcKey?: (ctx: T) => string | null
|
||||
calcPoints?: (ctx: T) => number
|
||||
}
|
||||
type HandlerOpts = { blobLimit?: number }
|
||||
|
Loading…
x
Reference in New Issue
Block a user