@atproto/pds 0.4.63 → 0.4.65
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +15 -0
- package/dist/lexicon/index.d.ts +17 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +44 -1
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +292 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +298 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/tools/ozone/set/addValues.d.ts +32 -0
- package/dist/lexicon/types/tools/ozone/set/addValues.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/set/addValues.js +3 -0
- package/dist/lexicon/types/tools/ozone/set/addValues.js.map +1 -0
- package/dist/lexicon/types/tools/ozone/set/defs.d.ts +22 -0
- package/dist/lexicon/types/tools/ozone/set/defs.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/set/defs.js +24 -0
- package/dist/lexicon/types/tools/ozone/set/defs.js.map +1 -0
- package/dist/lexicon/types/tools/ozone/set/deleteSet.d.ts +41 -0
- package/dist/lexicon/types/tools/ozone/set/deleteSet.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/set/deleteSet.js +3 -0
- package/dist/lexicon/types/tools/ozone/set/deleteSet.js.map +1 -0
- package/dist/lexicon/types/tools/ozone/set/deleteValues.d.ts +33 -0
- package/dist/lexicon/types/tools/ozone/set/deleteValues.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/set/deleteValues.js +3 -0
- package/dist/lexicon/types/tools/ozone/set/deleteValues.js.map +1 -0
- package/dist/lexicon/types/tools/ozone/set/getValues.d.ts +41 -0
- package/dist/lexicon/types/tools/ozone/set/getValues.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/set/getValues.js +3 -0
- package/dist/lexicon/types/tools/ozone/set/getValues.js.map +1 -0
- package/dist/lexicon/types/tools/ozone/set/querySets.d.ts +42 -0
- package/dist/lexicon/types/tools/ozone/set/querySets.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/set/querySets.js +3 -0
- package/dist/lexicon/types/tools/ozone/set/querySets.js.map +1 -0
- package/dist/lexicon/types/tools/ozone/set/upsertSet.d.ts +35 -0
- package/dist/lexicon/types/tools/ozone/set/upsertSet.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/set/upsertSet.js +3 -0
- package/dist/lexicon/types/tools/ozone/set/upsertSet.js.map +1 -0
- package/package.json +6 -6
- package/src/lexicon/index.ts +82 -0
- package/src/lexicon/lexicons.ts +301 -0
- package/src/lexicon/types/tools/ozone/set/addValues.ts +41 -0
- package/src/lexicon/types/tools/ozone/set/defs.ts +44 -0
- package/src/lexicon/types/tools/ozone/set/deleteSet.ts +50 -0
- package/src/lexicon/types/tools/ozone/set/deleteValues.ts +42 -0
- package/src/lexicon/types/tools/ozone/set/getValues.ts +51 -0
- package/src/lexicon/types/tools/ozone/set/querySets.ts +52 -0
- package/src/lexicon/types/tools/ozone/set/upsertSet.ts +43 -0
package/src/lexicon/lexicons.ts
CHANGED
@@ -12139,6 +12139,300 @@ export const schemaDict = {
|
|
12139
12139
|
},
|
12140
12140
|
},
|
12141
12141
|
},
|
12142
|
+
ToolsOzoneSetAddValues: {
|
12143
|
+
lexicon: 1,
|
12144
|
+
id: 'tools.ozone.set.addValues',
|
12145
|
+
defs: {
|
12146
|
+
main: {
|
12147
|
+
type: 'procedure',
|
12148
|
+
description:
|
12149
|
+
'Add values to a specific set. Attempting to add values to a set that does not exist will result in an error.',
|
12150
|
+
input: {
|
12151
|
+
encoding: 'application/json',
|
12152
|
+
schema: {
|
12153
|
+
type: 'object',
|
12154
|
+
required: ['name', 'values'],
|
12155
|
+
properties: {
|
12156
|
+
name: {
|
12157
|
+
type: 'string',
|
12158
|
+
description: 'Name of the set to add values to',
|
12159
|
+
},
|
12160
|
+
values: {
|
12161
|
+
type: 'array',
|
12162
|
+
minLength: 1,
|
12163
|
+
maxLength: 1000,
|
12164
|
+
items: {
|
12165
|
+
type: 'string',
|
12166
|
+
},
|
12167
|
+
description: 'Array of string values to add to the set',
|
12168
|
+
},
|
12169
|
+
},
|
12170
|
+
},
|
12171
|
+
},
|
12172
|
+
},
|
12173
|
+
},
|
12174
|
+
},
|
12175
|
+
ToolsOzoneSetDefs: {
|
12176
|
+
lexicon: 1,
|
12177
|
+
id: 'tools.ozone.set.defs',
|
12178
|
+
defs: {
|
12179
|
+
set: {
|
12180
|
+
type: 'object',
|
12181
|
+
required: ['name'],
|
12182
|
+
properties: {
|
12183
|
+
name: {
|
12184
|
+
type: 'string',
|
12185
|
+
minLength: 3,
|
12186
|
+
maxLength: 128,
|
12187
|
+
},
|
12188
|
+
description: {
|
12189
|
+
type: 'string',
|
12190
|
+
maxGraphemes: 1024,
|
12191
|
+
maxLength: 10240,
|
12192
|
+
},
|
12193
|
+
},
|
12194
|
+
},
|
12195
|
+
setView: {
|
12196
|
+
type: 'object',
|
12197
|
+
required: ['name', 'setSize', 'createdAt', 'updatedAt'],
|
12198
|
+
properties: {
|
12199
|
+
name: {
|
12200
|
+
type: 'string',
|
12201
|
+
minLength: 3,
|
12202
|
+
maxLength: 128,
|
12203
|
+
},
|
12204
|
+
description: {
|
12205
|
+
type: 'string',
|
12206
|
+
maxGraphemes: 1024,
|
12207
|
+
maxLength: 10240,
|
12208
|
+
},
|
12209
|
+
setSize: {
|
12210
|
+
type: 'integer',
|
12211
|
+
},
|
12212
|
+
createdAt: {
|
12213
|
+
type: 'string',
|
12214
|
+
format: 'datetime',
|
12215
|
+
},
|
12216
|
+
updatedAt: {
|
12217
|
+
type: 'string',
|
12218
|
+
format: 'datetime',
|
12219
|
+
},
|
12220
|
+
},
|
12221
|
+
},
|
12222
|
+
},
|
12223
|
+
},
|
12224
|
+
ToolsOzoneSetDeleteSet: {
|
12225
|
+
lexicon: 1,
|
12226
|
+
id: 'tools.ozone.set.deleteSet',
|
12227
|
+
defs: {
|
12228
|
+
main: {
|
12229
|
+
type: 'procedure',
|
12230
|
+
description:
|
12231
|
+
'Delete an entire set. Attempting to delete a set that does not exist will result in an error.',
|
12232
|
+
input: {
|
12233
|
+
encoding: 'application/json',
|
12234
|
+
schema: {
|
12235
|
+
type: 'object',
|
12236
|
+
required: ['name'],
|
12237
|
+
properties: {
|
12238
|
+
name: {
|
12239
|
+
type: 'string',
|
12240
|
+
description: 'Name of the set to delete',
|
12241
|
+
},
|
12242
|
+
},
|
12243
|
+
},
|
12244
|
+
},
|
12245
|
+
output: {
|
12246
|
+
encoding: 'application/json',
|
12247
|
+
schema: {
|
12248
|
+
type: 'object',
|
12249
|
+
properties: {},
|
12250
|
+
},
|
12251
|
+
},
|
12252
|
+
errors: [
|
12253
|
+
{
|
12254
|
+
name: 'SetNotFound',
|
12255
|
+
description: 'set with the given name does not exist',
|
12256
|
+
},
|
12257
|
+
],
|
12258
|
+
},
|
12259
|
+
},
|
12260
|
+
},
|
12261
|
+
ToolsOzoneSetDeleteValues: {
|
12262
|
+
lexicon: 1,
|
12263
|
+
id: 'tools.ozone.set.deleteValues',
|
12264
|
+
defs: {
|
12265
|
+
main: {
|
12266
|
+
type: 'procedure',
|
12267
|
+
description:
|
12268
|
+
'Delete values from a specific set. Attempting to delete values that are not in the set will not result in an error',
|
12269
|
+
input: {
|
12270
|
+
encoding: 'application/json',
|
12271
|
+
schema: {
|
12272
|
+
type: 'object',
|
12273
|
+
required: ['name', 'values'],
|
12274
|
+
properties: {
|
12275
|
+
name: {
|
12276
|
+
type: 'string',
|
12277
|
+
description: 'Name of the set to delete values from',
|
12278
|
+
},
|
12279
|
+
values: {
|
12280
|
+
type: 'array',
|
12281
|
+
minLength: 1,
|
12282
|
+
items: {
|
12283
|
+
type: 'string',
|
12284
|
+
},
|
12285
|
+
description: 'Array of string values to delete from the set',
|
12286
|
+
},
|
12287
|
+
},
|
12288
|
+
},
|
12289
|
+
},
|
12290
|
+
errors: [
|
12291
|
+
{
|
12292
|
+
name: 'SetNotFound',
|
12293
|
+
description: 'set with the given name does not exist',
|
12294
|
+
},
|
12295
|
+
],
|
12296
|
+
},
|
12297
|
+
},
|
12298
|
+
},
|
12299
|
+
ToolsOzoneSetGetValues: {
|
12300
|
+
lexicon: 1,
|
12301
|
+
id: 'tools.ozone.set.getValues',
|
12302
|
+
defs: {
|
12303
|
+
main: {
|
12304
|
+
type: 'query',
|
12305
|
+
description: 'Get a specific set and its values',
|
12306
|
+
parameters: {
|
12307
|
+
type: 'params',
|
12308
|
+
required: ['name'],
|
12309
|
+
properties: {
|
12310
|
+
name: {
|
12311
|
+
type: 'string',
|
12312
|
+
},
|
12313
|
+
limit: {
|
12314
|
+
type: 'integer',
|
12315
|
+
minimum: 1,
|
12316
|
+
maximum: 1000,
|
12317
|
+
default: 100,
|
12318
|
+
},
|
12319
|
+
cursor: {
|
12320
|
+
type: 'string',
|
12321
|
+
},
|
12322
|
+
},
|
12323
|
+
},
|
12324
|
+
output: {
|
12325
|
+
encoding: 'application/json',
|
12326
|
+
schema: {
|
12327
|
+
type: 'object',
|
12328
|
+
required: ['set', 'values'],
|
12329
|
+
properties: {
|
12330
|
+
set: {
|
12331
|
+
type: 'ref',
|
12332
|
+
ref: 'lex:tools.ozone.set.defs#setView',
|
12333
|
+
},
|
12334
|
+
values: {
|
12335
|
+
type: 'array',
|
12336
|
+
items: {
|
12337
|
+
type: 'string',
|
12338
|
+
},
|
12339
|
+
},
|
12340
|
+
cursor: {
|
12341
|
+
type: 'string',
|
12342
|
+
},
|
12343
|
+
},
|
12344
|
+
},
|
12345
|
+
},
|
12346
|
+
errors: [
|
12347
|
+
{
|
12348
|
+
name: 'SetNotFound',
|
12349
|
+
description: 'set with the given name does not exist',
|
12350
|
+
},
|
12351
|
+
],
|
12352
|
+
},
|
12353
|
+
},
|
12354
|
+
},
|
12355
|
+
ToolsOzoneSetQuerySets: {
|
12356
|
+
lexicon: 1,
|
12357
|
+
id: 'tools.ozone.set.querySets',
|
12358
|
+
defs: {
|
12359
|
+
main: {
|
12360
|
+
type: 'query',
|
12361
|
+
description: 'Query available sets',
|
12362
|
+
parameters: {
|
12363
|
+
type: 'params',
|
12364
|
+
properties: {
|
12365
|
+
limit: {
|
12366
|
+
type: 'integer',
|
12367
|
+
minimum: 1,
|
12368
|
+
maximum: 100,
|
12369
|
+
default: 50,
|
12370
|
+
},
|
12371
|
+
cursor: {
|
12372
|
+
type: 'string',
|
12373
|
+
},
|
12374
|
+
namePrefix: {
|
12375
|
+
type: 'string',
|
12376
|
+
},
|
12377
|
+
sortBy: {
|
12378
|
+
type: 'string',
|
12379
|
+
enum: ['name', 'createdAt', 'updatedAt'],
|
12380
|
+
default: 'name',
|
12381
|
+
},
|
12382
|
+
sortDirection: {
|
12383
|
+
type: 'string',
|
12384
|
+
default: 'asc',
|
12385
|
+
enum: ['asc', 'desc'],
|
12386
|
+
description: 'Defaults to ascending order of name field.',
|
12387
|
+
},
|
12388
|
+
},
|
12389
|
+
},
|
12390
|
+
output: {
|
12391
|
+
encoding: 'application/json',
|
12392
|
+
schema: {
|
12393
|
+
type: 'object',
|
12394
|
+
required: ['sets'],
|
12395
|
+
properties: {
|
12396
|
+
sets: {
|
12397
|
+
type: 'array',
|
12398
|
+
items: {
|
12399
|
+
type: 'ref',
|
12400
|
+
ref: 'lex:tools.ozone.set.defs#setView',
|
12401
|
+
},
|
12402
|
+
},
|
12403
|
+
cursor: {
|
12404
|
+
type: 'string',
|
12405
|
+
},
|
12406
|
+
},
|
12407
|
+
},
|
12408
|
+
},
|
12409
|
+
},
|
12410
|
+
},
|
12411
|
+
},
|
12412
|
+
ToolsOzoneSetUpsertSet: {
|
12413
|
+
lexicon: 1,
|
12414
|
+
id: 'tools.ozone.set.upsertSet',
|
12415
|
+
defs: {
|
12416
|
+
main: {
|
12417
|
+
type: 'procedure',
|
12418
|
+
description: 'Create or update set metadata',
|
12419
|
+
input: {
|
12420
|
+
encoding: 'application/json',
|
12421
|
+
schema: {
|
12422
|
+
type: 'ref',
|
12423
|
+
ref: 'lex:tools.ozone.set.defs#set',
|
12424
|
+
},
|
12425
|
+
},
|
12426
|
+
output: {
|
12427
|
+
encoding: 'application/json',
|
12428
|
+
schema: {
|
12429
|
+
type: 'ref',
|
12430
|
+
ref: 'lex:tools.ozone.set.defs#setView',
|
12431
|
+
},
|
12432
|
+
},
|
12433
|
+
},
|
12434
|
+
},
|
12435
|
+
},
|
12142
12436
|
ToolsOzoneSignatureDefs: {
|
12143
12437
|
lexicon: 1,
|
12144
12438
|
id: 'tools.ozone.signature.defs',
|
@@ -12764,6 +13058,13 @@ export const ids = {
|
|
12764
13058
|
ToolsOzoneModerationQueryStatuses: 'tools.ozone.moderation.queryStatuses',
|
12765
13059
|
ToolsOzoneModerationSearchRepos: 'tools.ozone.moderation.searchRepos',
|
12766
13060
|
ToolsOzoneServerGetConfig: 'tools.ozone.server.getConfig',
|
13061
|
+
ToolsOzoneSetAddValues: 'tools.ozone.set.addValues',
|
13062
|
+
ToolsOzoneSetDefs: 'tools.ozone.set.defs',
|
13063
|
+
ToolsOzoneSetDeleteSet: 'tools.ozone.set.deleteSet',
|
13064
|
+
ToolsOzoneSetDeleteValues: 'tools.ozone.set.deleteValues',
|
13065
|
+
ToolsOzoneSetGetValues: 'tools.ozone.set.getValues',
|
13066
|
+
ToolsOzoneSetQuerySets: 'tools.ozone.set.querySets',
|
13067
|
+
ToolsOzoneSetUpsertSet: 'tools.ozone.set.upsertSet',
|
12767
13068
|
ToolsOzoneSignatureDefs: 'tools.ozone.signature.defs',
|
12768
13069
|
ToolsOzoneSignatureFindCorrelation: 'tools.ozone.signature.findCorrelation',
|
12769
13070
|
ToolsOzoneSignatureFindRelatedAccounts:
|
@@ -0,0 +1,41 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express'
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
6
|
+
import { lexicons } from '../../../../lexicons'
|
7
|
+
import { isObj, hasProp } from '../../../../util'
|
8
|
+
import { CID } from 'multiformats/cid'
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
10
|
+
|
11
|
+
export interface QueryParams {}
|
12
|
+
|
13
|
+
export interface InputSchema {
|
14
|
+
/** Name of the set to add values to */
|
15
|
+
name: string
|
16
|
+
/** Array of string values to add to the set */
|
17
|
+
values: string[]
|
18
|
+
[k: string]: unknown
|
19
|
+
}
|
20
|
+
|
21
|
+
export interface HandlerInput {
|
22
|
+
encoding: 'application/json'
|
23
|
+
body: InputSchema
|
24
|
+
}
|
25
|
+
|
26
|
+
export interface HandlerError {
|
27
|
+
status: number
|
28
|
+
message?: string
|
29
|
+
}
|
30
|
+
|
31
|
+
export type HandlerOutput = HandlerError | void
|
32
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
33
|
+
auth: HA
|
34
|
+
params: QueryParams
|
35
|
+
input: HandlerInput
|
36
|
+
req: express.Request
|
37
|
+
res: express.Response
|
38
|
+
}
|
39
|
+
export type Handler<HA extends HandlerAuth = never> = (
|
40
|
+
ctx: HandlerReqCtx<HA>,
|
41
|
+
) => Promise<HandlerOutput> | HandlerOutput
|
@@ -0,0 +1,44 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
5
|
+
import { lexicons } from '../../../../lexicons'
|
6
|
+
import { isObj, hasProp } from '../../../../util'
|
7
|
+
import { CID } from 'multiformats/cid'
|
8
|
+
|
9
|
+
export interface Set {
|
10
|
+
name: string
|
11
|
+
description?: string
|
12
|
+
[k: string]: unknown
|
13
|
+
}
|
14
|
+
|
15
|
+
export function isSet(v: unknown): v is Set {
|
16
|
+
return (
|
17
|
+
isObj(v) && hasProp(v, '$type') && v.$type === 'tools.ozone.set.defs#set'
|
18
|
+
)
|
19
|
+
}
|
20
|
+
|
21
|
+
export function validateSet(v: unknown): ValidationResult {
|
22
|
+
return lexicons.validate('tools.ozone.set.defs#set', v)
|
23
|
+
}
|
24
|
+
|
25
|
+
export interface SetView {
|
26
|
+
name: string
|
27
|
+
description?: string
|
28
|
+
setSize: number
|
29
|
+
createdAt: string
|
30
|
+
updatedAt: string
|
31
|
+
[k: string]: unknown
|
32
|
+
}
|
33
|
+
|
34
|
+
export function isSetView(v: unknown): v is SetView {
|
35
|
+
return (
|
36
|
+
isObj(v) &&
|
37
|
+
hasProp(v, '$type') &&
|
38
|
+
v.$type === 'tools.ozone.set.defs#setView'
|
39
|
+
)
|
40
|
+
}
|
41
|
+
|
42
|
+
export function validateSetView(v: unknown): ValidationResult {
|
43
|
+
return lexicons.validate('tools.ozone.set.defs#setView', v)
|
44
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express'
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
6
|
+
import { lexicons } from '../../../../lexicons'
|
7
|
+
import { isObj, hasProp } from '../../../../util'
|
8
|
+
import { CID } from 'multiformats/cid'
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
10
|
+
|
11
|
+
export interface QueryParams {}
|
12
|
+
|
13
|
+
export interface InputSchema {
|
14
|
+
/** Name of the set to delete */
|
15
|
+
name: string
|
16
|
+
[k: string]: unknown
|
17
|
+
}
|
18
|
+
|
19
|
+
export interface OutputSchema {
|
20
|
+
[k: string]: unknown
|
21
|
+
}
|
22
|
+
|
23
|
+
export interface HandlerInput {
|
24
|
+
encoding: 'application/json'
|
25
|
+
body: InputSchema
|
26
|
+
}
|
27
|
+
|
28
|
+
export interface HandlerSuccess {
|
29
|
+
encoding: 'application/json'
|
30
|
+
body: OutputSchema
|
31
|
+
headers?: { [key: string]: string }
|
32
|
+
}
|
33
|
+
|
34
|
+
export interface HandlerError {
|
35
|
+
status: number
|
36
|
+
message?: string
|
37
|
+
error?: 'SetNotFound'
|
38
|
+
}
|
39
|
+
|
40
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
41
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
42
|
+
auth: HA
|
43
|
+
params: QueryParams
|
44
|
+
input: HandlerInput
|
45
|
+
req: express.Request
|
46
|
+
res: express.Response
|
47
|
+
}
|
48
|
+
export type Handler<HA extends HandlerAuth = never> = (
|
49
|
+
ctx: HandlerReqCtx<HA>,
|
50
|
+
) => Promise<HandlerOutput> | HandlerOutput
|
@@ -0,0 +1,42 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express'
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
6
|
+
import { lexicons } from '../../../../lexicons'
|
7
|
+
import { isObj, hasProp } from '../../../../util'
|
8
|
+
import { CID } from 'multiformats/cid'
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
10
|
+
|
11
|
+
export interface QueryParams {}
|
12
|
+
|
13
|
+
export interface InputSchema {
|
14
|
+
/** Name of the set to delete values from */
|
15
|
+
name: string
|
16
|
+
/** Array of string values to delete from the set */
|
17
|
+
values: string[]
|
18
|
+
[k: string]: unknown
|
19
|
+
}
|
20
|
+
|
21
|
+
export interface HandlerInput {
|
22
|
+
encoding: 'application/json'
|
23
|
+
body: InputSchema
|
24
|
+
}
|
25
|
+
|
26
|
+
export interface HandlerError {
|
27
|
+
status: number
|
28
|
+
message?: string
|
29
|
+
error?: 'SetNotFound'
|
30
|
+
}
|
31
|
+
|
32
|
+
export type HandlerOutput = HandlerError | void
|
33
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
34
|
+
auth: HA
|
35
|
+
params: QueryParams
|
36
|
+
input: HandlerInput
|
37
|
+
req: express.Request
|
38
|
+
res: express.Response
|
39
|
+
}
|
40
|
+
export type Handler<HA extends HandlerAuth = never> = (
|
41
|
+
ctx: HandlerReqCtx<HA>,
|
42
|
+
) => Promise<HandlerOutput> | HandlerOutput
|
@@ -0,0 +1,51 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express'
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
6
|
+
import { lexicons } from '../../../../lexicons'
|
7
|
+
import { isObj, hasProp } from '../../../../util'
|
8
|
+
import { CID } from 'multiformats/cid'
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
10
|
+
import * as ToolsOzoneSetDefs from './defs'
|
11
|
+
|
12
|
+
export interface QueryParams {
|
13
|
+
name: string
|
14
|
+
limit: number
|
15
|
+
cursor?: string
|
16
|
+
}
|
17
|
+
|
18
|
+
export type InputSchema = undefined
|
19
|
+
|
20
|
+
export interface OutputSchema {
|
21
|
+
set: ToolsOzoneSetDefs.SetView
|
22
|
+
values: string[]
|
23
|
+
cursor?: string
|
24
|
+
[k: string]: unknown
|
25
|
+
}
|
26
|
+
|
27
|
+
export type HandlerInput = undefined
|
28
|
+
|
29
|
+
export interface HandlerSuccess {
|
30
|
+
encoding: 'application/json'
|
31
|
+
body: OutputSchema
|
32
|
+
headers?: { [key: string]: string }
|
33
|
+
}
|
34
|
+
|
35
|
+
export interface HandlerError {
|
36
|
+
status: number
|
37
|
+
message?: string
|
38
|
+
error?: 'SetNotFound'
|
39
|
+
}
|
40
|
+
|
41
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
42
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
43
|
+
auth: HA
|
44
|
+
params: QueryParams
|
45
|
+
input: HandlerInput
|
46
|
+
req: express.Request
|
47
|
+
res: express.Response
|
48
|
+
}
|
49
|
+
export type Handler<HA extends HandlerAuth = never> = (
|
50
|
+
ctx: HandlerReqCtx<HA>,
|
51
|
+
) => Promise<HandlerOutput> | HandlerOutput
|
@@ -0,0 +1,52 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express'
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
6
|
+
import { lexicons } from '../../../../lexicons'
|
7
|
+
import { isObj, hasProp } from '../../../../util'
|
8
|
+
import { CID } from 'multiformats/cid'
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
10
|
+
import * as ToolsOzoneSetDefs from './defs'
|
11
|
+
|
12
|
+
export interface QueryParams {
|
13
|
+
limit: number
|
14
|
+
cursor?: string
|
15
|
+
namePrefix?: string
|
16
|
+
sortBy: 'name' | 'createdAt' | 'updatedAt'
|
17
|
+
/** Defaults to ascending order of name field. */
|
18
|
+
sortDirection: 'asc' | 'desc'
|
19
|
+
}
|
20
|
+
|
21
|
+
export type InputSchema = undefined
|
22
|
+
|
23
|
+
export interface OutputSchema {
|
24
|
+
sets: ToolsOzoneSetDefs.SetView[]
|
25
|
+
cursor?: string
|
26
|
+
[k: string]: unknown
|
27
|
+
}
|
28
|
+
|
29
|
+
export type HandlerInput = undefined
|
30
|
+
|
31
|
+
export interface HandlerSuccess {
|
32
|
+
encoding: 'application/json'
|
33
|
+
body: OutputSchema
|
34
|
+
headers?: { [key: string]: string }
|
35
|
+
}
|
36
|
+
|
37
|
+
export interface HandlerError {
|
38
|
+
status: number
|
39
|
+
message?: string
|
40
|
+
}
|
41
|
+
|
42
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
43
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
44
|
+
auth: HA
|
45
|
+
params: QueryParams
|
46
|
+
input: HandlerInput
|
47
|
+
req: express.Request
|
48
|
+
res: express.Response
|
49
|
+
}
|
50
|
+
export type Handler<HA extends HandlerAuth = never> = (
|
51
|
+
ctx: HandlerReqCtx<HA>,
|
52
|
+
) => Promise<HandlerOutput> | HandlerOutput
|
@@ -0,0 +1,43 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express'
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
6
|
+
import { lexicons } from '../../../../lexicons'
|
7
|
+
import { isObj, hasProp } from '../../../../util'
|
8
|
+
import { CID } from 'multiformats/cid'
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
10
|
+
import * as ToolsOzoneSetDefs from './defs'
|
11
|
+
|
12
|
+
export interface QueryParams {}
|
13
|
+
|
14
|
+
export type InputSchema = ToolsOzoneSetDefs.Set
|
15
|
+
export type OutputSchema = ToolsOzoneSetDefs.SetView
|
16
|
+
|
17
|
+
export interface HandlerInput {
|
18
|
+
encoding: 'application/json'
|
19
|
+
body: InputSchema
|
20
|
+
}
|
21
|
+
|
22
|
+
export interface HandlerSuccess {
|
23
|
+
encoding: 'application/json'
|
24
|
+
body: OutputSchema
|
25
|
+
headers?: { [key: string]: string }
|
26
|
+
}
|
27
|
+
|
28
|
+
export interface HandlerError {
|
29
|
+
status: number
|
30
|
+
message?: string
|
31
|
+
}
|
32
|
+
|
33
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
34
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
35
|
+
auth: HA
|
36
|
+
params: QueryParams
|
37
|
+
input: HandlerInput
|
38
|
+
req: express.Request
|
39
|
+
res: express.Response
|
40
|
+
}
|
41
|
+
export type Handler<HA extends HandlerAuth = never> = (
|
42
|
+
ctx: HandlerReqCtx<HA>,
|
43
|
+
) => Promise<HandlerOutput> | HandlerOutput
|