api.fluff4.me 1.0.921 → 1.0.926

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.d.ts +63 -0
  2. package/openapi.json +521 -1
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -704,6 +704,10 @@ export interface ManifestFormInputLengths {
704
704
  name: number
705
705
  link: number
706
706
  }
707
+ shelf: {
708
+ name: number
709
+ description: number
710
+ }
707
711
  }
708
712
 
709
713
  export interface ManifestReactionTypes {
@@ -787,6 +791,8 @@ export interface FeedSearch {
787
791
  blacklistTagCategories?: string[] | null
788
792
  whitelistAuthors?: string[] | null
789
793
  blacklistAuthors?: string[] | null
794
+ whitelistWorks?: string[] | null
795
+ blacklistWorks?: string[] | null
790
796
  }
791
797
 
792
798
  export interface HistoryResponse {
@@ -914,6 +920,38 @@ export interface ReportCommentBody {
914
920
  reason_body: string
915
921
  }
916
922
 
923
+ export interface ShelfCreateBody {
924
+ name?: string | null
925
+ description?: string | null
926
+ whitelisted_authors?: string[] | null
927
+ blacklisted_authors?: string[] | null
928
+ whitelisted_works?: WorkReference[] | null
929
+ blacklisted_works?: WorkReference[] | null
930
+ whitelisted_tags?: string[] | null
931
+ blacklisted_tags?: string[] | null
932
+ whitelisted_tag_categories?: string[] | null
933
+ blacklisted_tag_categories?: string[] | null
934
+ following_only: boolean
935
+ recently_completed_only: boolean
936
+ }
937
+
938
+ export interface Shelf {
939
+ name?: string | null
940
+ description?: string | null
941
+ filters: ShelfFilters
942
+ }
943
+
944
+ export interface ShelfFilters {
945
+ whitelisted_authors: AuthorMetadata[]
946
+ blacklisted_authors: AuthorMetadata[]
947
+ whitelisted_works: WorkMetadata[]
948
+ blacklisted_works: WorkMetadata[]
949
+ whitelisted_tags: string[]
950
+ blacklisted_tags: string[]
951
+ whitelisted_tag_categories: string[]
952
+ blacklisted_tag_categories: string[]
953
+ }
954
+
917
955
  export interface ErrorResponse {
918
956
  code: number
919
957
  detail?: string | null
@@ -1774,6 +1812,8 @@ export interface Paths {
1774
1812
  blacklistTagCategories?: string[] | null
1775
1813
  whitelistAuthors?: string[] | null
1776
1814
  blacklistAuthors?: string[] | null
1815
+ whitelistWorks?: string[] | null
1816
+ blacklistWorks?: string[] | null
1777
1817
  }
1778
1818
  response: PaginatedResponse<FeedResponse> | ErrorResponse
1779
1819
  },
@@ -1789,6 +1829,8 @@ export interface Paths {
1789
1829
  blacklistTagCategories?: string[] | null
1790
1830
  whitelistAuthors?: string[] | null
1791
1831
  blacklistAuthors?: string[] | null
1832
+ whitelistWorks?: string[] | null
1833
+ blacklistWorks?: string[] | null
1792
1834
  }
1793
1835
  response: PaginatedResponse<FeedResponse> | ErrorResponse
1794
1836
  },
@@ -1945,4 +1987,25 @@ export interface Paths {
1945
1987
  search?: undefined
1946
1988
  response: void | ErrorResponse
1947
1989
  },
1990
+ "/shelf/create": {
1991
+ method: "post"
1992
+ body: ShelfCreateBody
1993
+ search?: undefined
1994
+ response: void | ErrorResponse
1995
+ },
1996
+ "/shelf/{id}": {
1997
+ method: "get"
1998
+ body?: undefined
1999
+ search: {
2000
+ page?: number
2001
+ page_size?: number
2002
+ }
2003
+ response: PaginatedResponse<FeedResponse> | ErrorResponse
2004
+ },
2005
+ "/shelf/{id}/details": {
2006
+ method: "get"
2007
+ body?: undefined
2008
+ search?: undefined
2009
+ response: Response<Shelf> | ErrorResponse
2010
+ },
1948
2011
  }
package/openapi.json CHANGED
@@ -4063,6 +4063,21 @@
4063
4063
  "name",
4064
4064
  "link"
4065
4065
  ]
4066
+ },
4067
+ "shelf": {
4068
+ "type": "object",
4069
+ "properties": {
4070
+ "name": {
4071
+ "type": "number"
4072
+ },
4073
+ "description": {
4074
+ "type": "number"
4075
+ }
4076
+ },
4077
+ "required": [
4078
+ "name",
4079
+ "description"
4080
+ ]
4066
4081
  }
4067
4082
  },
4068
4083
  "required": [
@@ -4078,7 +4093,8 @@
4078
4093
  "changelog",
4079
4094
  "report",
4080
4095
  "moderation",
4081
- "license"
4096
+ "license",
4097
+ "shelf"
4082
4098
  ]
4083
4099
  },
4084
4100
  "ManifestReactionTypes": {
@@ -4468,6 +4484,32 @@
4468
4484
  "type": "null"
4469
4485
  }
4470
4486
  ]
4487
+ },
4488
+ "whitelistWorks": {
4489
+ "anyOf": [
4490
+ {
4491
+ "type": "array",
4492
+ "items": {
4493
+ "type": "string"
4494
+ }
4495
+ },
4496
+ {
4497
+ "type": "null"
4498
+ }
4499
+ ]
4500
+ },
4501
+ "blacklistWorks": {
4502
+ "anyOf": [
4503
+ {
4504
+ "type": "array",
4505
+ "items": {
4506
+ "type": "string"
4507
+ }
4508
+ },
4509
+ {
4510
+ "type": "null"
4511
+ }
4512
+ ]
4471
4513
  }
4472
4514
  }
4473
4515
  },
@@ -5159,6 +5201,239 @@
5159
5201
  "reason_body"
5160
5202
  ]
5161
5203
  },
5204
+ "ShelfCreateBody": {
5205
+ "type": "object",
5206
+ "properties": {
5207
+ "name": {
5208
+ "anyOf": [
5209
+ {
5210
+ "type": "string"
5211
+ },
5212
+ {
5213
+ "type": "null"
5214
+ }
5215
+ ]
5216
+ },
5217
+ "description": {
5218
+ "anyOf": [
5219
+ {
5220
+ "type": "string"
5221
+ },
5222
+ {
5223
+ "type": "null"
5224
+ }
5225
+ ]
5226
+ },
5227
+ "whitelisted_authors": {
5228
+ "anyOf": [
5229
+ {
5230
+ "type": "array",
5231
+ "items": {
5232
+ "type": "string"
5233
+ }
5234
+ },
5235
+ {
5236
+ "type": "null"
5237
+ }
5238
+ ]
5239
+ },
5240
+ "blacklisted_authors": {
5241
+ "anyOf": [
5242
+ {
5243
+ "type": "array",
5244
+ "items": {
5245
+ "type": "string"
5246
+ }
5247
+ },
5248
+ {
5249
+ "type": "null"
5250
+ }
5251
+ ]
5252
+ },
5253
+ "whitelisted_works": {
5254
+ "anyOf": [
5255
+ {
5256
+ "type": "array",
5257
+ "items": {
5258
+ "$ref": "#/components/schema/WorkReference"
5259
+ }
5260
+ },
5261
+ {
5262
+ "type": "null"
5263
+ }
5264
+ ]
5265
+ },
5266
+ "blacklisted_works": {
5267
+ "anyOf": [
5268
+ {
5269
+ "type": "array",
5270
+ "items": {
5271
+ "$ref": "#/components/schema/WorkReference"
5272
+ }
5273
+ },
5274
+ {
5275
+ "type": "null"
5276
+ }
5277
+ ]
5278
+ },
5279
+ "whitelisted_tags": {
5280
+ "anyOf": [
5281
+ {
5282
+ "type": "array",
5283
+ "items": {
5284
+ "type": "string"
5285
+ }
5286
+ },
5287
+ {
5288
+ "type": "null"
5289
+ }
5290
+ ]
5291
+ },
5292
+ "blacklisted_tags": {
5293
+ "anyOf": [
5294
+ {
5295
+ "type": "array",
5296
+ "items": {
5297
+ "type": "string"
5298
+ }
5299
+ },
5300
+ {
5301
+ "type": "null"
5302
+ }
5303
+ ]
5304
+ },
5305
+ "whitelisted_tag_categories": {
5306
+ "anyOf": [
5307
+ {
5308
+ "type": "array",
5309
+ "items": {
5310
+ "type": "string"
5311
+ }
5312
+ },
5313
+ {
5314
+ "type": "null"
5315
+ }
5316
+ ]
5317
+ },
5318
+ "blacklisted_tag_categories": {
5319
+ "anyOf": [
5320
+ {
5321
+ "type": "array",
5322
+ "items": {
5323
+ "type": "string"
5324
+ }
5325
+ },
5326
+ {
5327
+ "type": "null"
5328
+ }
5329
+ ]
5330
+ },
5331
+ "following_only": {
5332
+ "type": "boolean"
5333
+ },
5334
+ "recently_completed_only": {
5335
+ "type": "boolean"
5336
+ }
5337
+ },
5338
+ "required": [
5339
+ "following_only",
5340
+ "recently_completed_only"
5341
+ ]
5342
+ },
5343
+ "Shelf": {
5344
+ "type": "object",
5345
+ "properties": {
5346
+ "name": {
5347
+ "anyOf": [
5348
+ {
5349
+ "type": "string"
5350
+ },
5351
+ {
5352
+ "type": "null"
5353
+ }
5354
+ ]
5355
+ },
5356
+ "description": {
5357
+ "anyOf": [
5358
+ {
5359
+ "type": "string"
5360
+ },
5361
+ {
5362
+ "type": "null"
5363
+ }
5364
+ ]
5365
+ },
5366
+ "filters": {
5367
+ "$ref": "#/components/schema/ShelfFilters"
5368
+ }
5369
+ },
5370
+ "required": [
5371
+ "filters"
5372
+ ]
5373
+ },
5374
+ "ShelfFilters": {
5375
+ "type": "object",
5376
+ "properties": {
5377
+ "whitelisted_authors": {
5378
+ "type": "array",
5379
+ "items": {
5380
+ "$ref": "#/components/schema/AuthorMetadata"
5381
+ }
5382
+ },
5383
+ "blacklisted_authors": {
5384
+ "type": "array",
5385
+ "items": {
5386
+ "$ref": "#/components/schema/AuthorMetadata"
5387
+ }
5388
+ },
5389
+ "whitelisted_works": {
5390
+ "type": "array",
5391
+ "items": {
5392
+ "$ref": "#/components/schema/WorkMetadata"
5393
+ }
5394
+ },
5395
+ "blacklisted_works": {
5396
+ "type": "array",
5397
+ "items": {
5398
+ "$ref": "#/components/schema/WorkMetadata"
5399
+ }
5400
+ },
5401
+ "whitelisted_tags": {
5402
+ "type": "array",
5403
+ "items": {
5404
+ "type": "string"
5405
+ }
5406
+ },
5407
+ "blacklisted_tags": {
5408
+ "type": "array",
5409
+ "items": {
5410
+ "type": "string"
5411
+ }
5412
+ },
5413
+ "whitelisted_tag_categories": {
5414
+ "type": "array",
5415
+ "items": {
5416
+ "type": "string"
5417
+ }
5418
+ },
5419
+ "blacklisted_tag_categories": {
5420
+ "type": "array",
5421
+ "items": {
5422
+ "type": "string"
5423
+ }
5424
+ }
5425
+ },
5426
+ "required": [
5427
+ "whitelisted_authors",
5428
+ "blacklisted_authors",
5429
+ "whitelisted_works",
5430
+ "blacklisted_works",
5431
+ "whitelisted_tags",
5432
+ "blacklisted_tags",
5433
+ "whitelisted_tag_categories",
5434
+ "blacklisted_tag_categories"
5435
+ ]
5436
+ },
5162
5437
  "ErrorResponse": {
5163
5438
  "type": "object",
5164
5439
  "properties": {
@@ -10740,6 +11015,50 @@
10740
11015
  }
10741
11016
  }
10742
11017
  }
11018
+ },
11019
+ {
11020
+ "name": "whitelistWorks",
11021
+ "in": "query",
11022
+ "required": false,
11023
+ "content": {
11024
+ "application/json": {
11025
+ "schema": {
11026
+ "anyOf": [
11027
+ {
11028
+ "type": "array",
11029
+ "items": {
11030
+ "type": "string"
11031
+ }
11032
+ },
11033
+ {
11034
+ "type": "null"
11035
+ }
11036
+ ]
11037
+ }
11038
+ }
11039
+ }
11040
+ },
11041
+ {
11042
+ "name": "blacklistWorks",
11043
+ "in": "query",
11044
+ "required": false,
11045
+ "content": {
11046
+ "application/json": {
11047
+ "schema": {
11048
+ "anyOf": [
11049
+ {
11050
+ "type": "array",
11051
+ "items": {
11052
+ "type": "string"
11053
+ }
11054
+ },
11055
+ {
11056
+ "type": "null"
11057
+ }
11058
+ ]
11059
+ }
11060
+ }
11061
+ }
10743
11062
  }
10744
11063
  ],
10745
11064
  "responses": {
@@ -10958,6 +11277,50 @@
10958
11277
  }
10959
11278
  }
10960
11279
  }
11280
+ },
11281
+ {
11282
+ "name": "whitelistWorks",
11283
+ "in": "query",
11284
+ "required": false,
11285
+ "content": {
11286
+ "application/json": {
11287
+ "schema": {
11288
+ "anyOf": [
11289
+ {
11290
+ "type": "array",
11291
+ "items": {
11292
+ "type": "string"
11293
+ }
11294
+ },
11295
+ {
11296
+ "type": "null"
11297
+ }
11298
+ ]
11299
+ }
11300
+ }
11301
+ }
11302
+ },
11303
+ {
11304
+ "name": "blacklistWorks",
11305
+ "in": "query",
11306
+ "required": false,
11307
+ "content": {
11308
+ "application/json": {
11309
+ "schema": {
11310
+ "anyOf": [
11311
+ {
11312
+ "type": "array",
11313
+ "items": {
11314
+ "type": "string"
11315
+ }
11316
+ },
11317
+ {
11318
+ "type": "null"
11319
+ }
11320
+ ]
11321
+ }
11322
+ }
11323
+ }
10961
11324
  }
10962
11325
  ],
10963
11326
  "responses": {
@@ -11966,6 +12329,163 @@
11966
12329
  }
11967
12330
  }
11968
12331
  }
12332
+ },
12333
+ "/shelf/create": {
12334
+ "post": {
12335
+ "requestBody": {
12336
+ "content": {
12337
+ "application/json": {
12338
+ "schema": {
12339
+ "$ref": "#/components/schemas/ShelfCreateBody"
12340
+ }
12341
+ }
12342
+ }
12343
+ },
12344
+ "responses": {
12345
+ "200": {
12346
+ "description": "200 response"
12347
+ },
12348
+ "default": {
12349
+ "description": "Error",
12350
+ "content": {
12351
+ "application/json": {
12352
+ "schema": {
12353
+ "$ref": "#/components/schemas/ErrorResponse"
12354
+ }
12355
+ }
12356
+ }
12357
+ }
12358
+ }
12359
+ }
12360
+ },
12361
+ "/shelf/{id}": {
12362
+ "parameters": [
12363
+ {
12364
+ "name": "id",
12365
+ "in": "path"
12366
+ }
12367
+ ],
12368
+ "get": {
12369
+ "parameters": [
12370
+ {
12371
+ "name": "page",
12372
+ "in": "query",
12373
+ "description": "The page of data to query from. This endpoint uses a page size of 25 by default.",
12374
+ "schema": {
12375
+ "type": "integer",
12376
+ "minimum": 0
12377
+ }
12378
+ },
12379
+ {
12380
+ "name": "page_size",
12381
+ "in": "query",
12382
+ "description": "The custom page size to return. This endpoint uses a page size of 25 by default. The custom page size cannot be raised above the default.",
12383
+ "schema": {
12384
+ "type": "integer",
12385
+ "minimum": 1,
12386
+ "maximum": 25
12387
+ }
12388
+ }
12389
+ ],
12390
+ "responses": {
12391
+ "200": {
12392
+ "description": "200 response",
12393
+ "content": {
12394
+ "application/json": {
12395
+ "schema": {
12396
+ "type": "object",
12397
+ "properties": {
12398
+ "data": {
12399
+ "$ref": "#/components/schemas/FeedResponse"
12400
+ },
12401
+ "has_more": {
12402
+ "type": "boolean"
12403
+ },
12404
+ "page": {
12405
+ "type": "number",
12406
+ "minimum": 0
12407
+ },
12408
+ "page_count": {
12409
+ "type": [
12410
+ "boolean",
12411
+ "number"
12412
+ ],
12413
+ "anyOf": [
12414
+ {
12415
+ "type": "boolean",
12416
+ "enum": [
12417
+ true
12418
+ ]
12419
+ },
12420
+ {
12421
+ "type": "number",
12422
+ "minimum": 0
12423
+ }
12424
+ ]
12425
+ }
12426
+ },
12427
+ "required": [
12428
+ "data",
12429
+ "has_more",
12430
+ "page",
12431
+ "page_count"
12432
+ ]
12433
+ }
12434
+ }
12435
+ }
12436
+ },
12437
+ "default": {
12438
+ "description": "Error",
12439
+ "content": {
12440
+ "application/json": {
12441
+ "schema": {
12442
+ "$ref": "#/components/schemas/ErrorResponse"
12443
+ }
12444
+ }
12445
+ }
12446
+ }
12447
+ }
12448
+ }
12449
+ },
12450
+ "/shelf/{id}/details": {
12451
+ "parameters": [
12452
+ {
12453
+ "name": "id",
12454
+ "in": "path"
12455
+ }
12456
+ ],
12457
+ "get": {
12458
+ "responses": {
12459
+ "200": {
12460
+ "description": "200 response",
12461
+ "content": {
12462
+ "application/json": {
12463
+ "schema": {
12464
+ "type": "object",
12465
+ "properties": {
12466
+ "data": {
12467
+ "$ref": "#/components/schemas/Shelf"
12468
+ }
12469
+ },
12470
+ "required": [
12471
+ "data"
12472
+ ]
12473
+ }
12474
+ }
12475
+ }
12476
+ },
12477
+ "default": {
12478
+ "description": "Error",
12479
+ "content": {
12480
+ "application/json": {
12481
+ "schema": {
12482
+ "$ref": "#/components/schemas/ErrorResponse"
12483
+ }
12484
+ }
12485
+ }
12486
+ }
12487
+ }
12488
+ }
11969
12489
  }
11970
12490
  }
11971
12491
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.921",
3
+ "version": "1.0.926",
4
4
  "types": "index.d.ts"
5
5
  }