api.fluff4.me 1.0.1078 → 1.0.1081
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.
- package/index.d.ts +22 -0
- package/openapi.json +166 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1093,11 +1093,17 @@ export interface Shelves {
|
|
|
1093
1093
|
}
|
|
1094
1094
|
|
|
1095
1095
|
export interface ShelvesPreviewResponse {
|
|
1096
|
+
recommendations: Recommendation[]
|
|
1096
1097
|
shelves: ShelvesPreview[]
|
|
1097
1098
|
authors: AuthorMetadata[]
|
|
1098
1099
|
works: WorkMetadata[]
|
|
1099
1100
|
}
|
|
1100
1101
|
|
|
1102
|
+
export interface Recommendation {
|
|
1103
|
+
recommendation: Comment
|
|
1104
|
+
work: WorkReference
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1101
1107
|
export interface ShelvesPreview {
|
|
1102
1108
|
shelf_id: string
|
|
1103
1109
|
shelf_order: number
|
|
@@ -1122,6 +1128,16 @@ export interface EmbedSearch {
|
|
|
1122
1128
|
url: string
|
|
1123
1129
|
}
|
|
1124
1130
|
|
|
1131
|
+
export interface Recommendations {
|
|
1132
|
+
recommendations: Recommendation[]
|
|
1133
|
+
works: WorkMetadata[]
|
|
1134
|
+
authors: AuthorMetadata[]
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
export interface RecommendationsSearchSchema {
|
|
1138
|
+
following_only?: boolean | null
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1125
1141
|
export interface ErrorResponse {
|
|
1126
1142
|
code: number
|
|
1127
1143
|
detail?: string | null
|
|
@@ -2310,4 +2326,10 @@ export interface Paths {
|
|
|
2310
2326
|
search: EmbedSearch
|
|
2311
2327
|
response: void | ErrorResponse
|
|
2312
2328
|
},
|
|
2329
|
+
"/recommendations": {
|
|
2330
|
+
method: "get"
|
|
2331
|
+
body?: undefined
|
|
2332
|
+
search: RecommendationsSearchSchema & PaginationSearch
|
|
2333
|
+
response: PaginatedResponse<Recommendations> | ErrorResponse
|
|
2334
|
+
},
|
|
2313
2335
|
}
|
package/openapi.json
CHANGED
|
@@ -6479,6 +6479,12 @@
|
|
|
6479
6479
|
"ShelvesPreviewResponse": {
|
|
6480
6480
|
"type": "object",
|
|
6481
6481
|
"properties": {
|
|
6482
|
+
"recommendations": {
|
|
6483
|
+
"type": "array",
|
|
6484
|
+
"items": {
|
|
6485
|
+
"$ref": "#/components/schema/Recommendation"
|
|
6486
|
+
}
|
|
6487
|
+
},
|
|
6482
6488
|
"shelves": {
|
|
6483
6489
|
"type": "array",
|
|
6484
6490
|
"items": {
|
|
@@ -6499,11 +6505,27 @@
|
|
|
6499
6505
|
}
|
|
6500
6506
|
},
|
|
6501
6507
|
"required": [
|
|
6508
|
+
"recommendations",
|
|
6502
6509
|
"shelves",
|
|
6503
6510
|
"authors",
|
|
6504
6511
|
"works"
|
|
6505
6512
|
]
|
|
6506
6513
|
},
|
|
6514
|
+
"Recommendation": {
|
|
6515
|
+
"type": "object",
|
|
6516
|
+
"properties": {
|
|
6517
|
+
"recommendation": {
|
|
6518
|
+
"$ref": "#/components/schema/Comment"
|
|
6519
|
+
},
|
|
6520
|
+
"work": {
|
|
6521
|
+
"$ref": "#/components/schema/WorkReference"
|
|
6522
|
+
}
|
|
6523
|
+
},
|
|
6524
|
+
"required": [
|
|
6525
|
+
"recommendation",
|
|
6526
|
+
"work"
|
|
6527
|
+
]
|
|
6528
|
+
},
|
|
6507
6529
|
"ShelvesPreview": {
|
|
6508
6530
|
"type": "object",
|
|
6509
6531
|
"properties": {
|
|
@@ -6609,6 +6631,49 @@
|
|
|
6609
6631
|
"url"
|
|
6610
6632
|
]
|
|
6611
6633
|
},
|
|
6634
|
+
"Recommendations": {
|
|
6635
|
+
"type": "object",
|
|
6636
|
+
"properties": {
|
|
6637
|
+
"recommendations": {
|
|
6638
|
+
"type": "array",
|
|
6639
|
+
"items": {
|
|
6640
|
+
"$ref": "#/components/schema/Recommendation"
|
|
6641
|
+
}
|
|
6642
|
+
},
|
|
6643
|
+
"works": {
|
|
6644
|
+
"type": "array",
|
|
6645
|
+
"items": {
|
|
6646
|
+
"$ref": "#/components/schema/WorkMetadata"
|
|
6647
|
+
}
|
|
6648
|
+
},
|
|
6649
|
+
"authors": {
|
|
6650
|
+
"type": "array",
|
|
6651
|
+
"items": {
|
|
6652
|
+
"$ref": "#/components/schema/AuthorMetadata"
|
|
6653
|
+
}
|
|
6654
|
+
}
|
|
6655
|
+
},
|
|
6656
|
+
"required": [
|
|
6657
|
+
"recommendations",
|
|
6658
|
+
"works",
|
|
6659
|
+
"authors"
|
|
6660
|
+
]
|
|
6661
|
+
},
|
|
6662
|
+
"RecommendationsSearchSchema": {
|
|
6663
|
+
"type": "object",
|
|
6664
|
+
"properties": {
|
|
6665
|
+
"following_only": {
|
|
6666
|
+
"anyOf": [
|
|
6667
|
+
{
|
|
6668
|
+
"type": "boolean"
|
|
6669
|
+
},
|
|
6670
|
+
{
|
|
6671
|
+
"type": "null"
|
|
6672
|
+
}
|
|
6673
|
+
]
|
|
6674
|
+
}
|
|
6675
|
+
}
|
|
6676
|
+
},
|
|
6612
6677
|
"ErrorResponse": {
|
|
6613
6678
|
"type": "object",
|
|
6614
6679
|
"properties": {
|
|
@@ -15240,6 +15305,107 @@
|
|
|
15240
15305
|
}
|
|
15241
15306
|
}
|
|
15242
15307
|
}
|
|
15308
|
+
},
|
|
15309
|
+
"/recommendations": {
|
|
15310
|
+
"get": {
|
|
15311
|
+
"parameters": [
|
|
15312
|
+
{
|
|
15313
|
+
"name": "page",
|
|
15314
|
+
"in": "query",
|
|
15315
|
+
"description": "The page of data to query from. This endpoint uses a page size of 25 by default.",
|
|
15316
|
+
"schema": {
|
|
15317
|
+
"type": "integer",
|
|
15318
|
+
"minimum": 0
|
|
15319
|
+
}
|
|
15320
|
+
},
|
|
15321
|
+
{
|
|
15322
|
+
"name": "page_size",
|
|
15323
|
+
"in": "query",
|
|
15324
|
+
"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.",
|
|
15325
|
+
"schema": {
|
|
15326
|
+
"type": "integer",
|
|
15327
|
+
"minimum": 1,
|
|
15328
|
+
"maximum": 25
|
|
15329
|
+
}
|
|
15330
|
+
},
|
|
15331
|
+
{
|
|
15332
|
+
"name": "following_only",
|
|
15333
|
+
"in": "query",
|
|
15334
|
+
"required": false,
|
|
15335
|
+
"schema": {
|
|
15336
|
+
"anyOf": [
|
|
15337
|
+
{
|
|
15338
|
+
"type": "boolean"
|
|
15339
|
+
},
|
|
15340
|
+
{
|
|
15341
|
+
"type": "null"
|
|
15342
|
+
}
|
|
15343
|
+
]
|
|
15344
|
+
}
|
|
15345
|
+
}
|
|
15346
|
+
],
|
|
15347
|
+
"responses": {
|
|
15348
|
+
"200": {
|
|
15349
|
+
"description": "200 response",
|
|
15350
|
+
"content": {
|
|
15351
|
+
"application/json": {
|
|
15352
|
+
"schema": {
|
|
15353
|
+
"type": "object",
|
|
15354
|
+
"properties": {
|
|
15355
|
+
"data": {
|
|
15356
|
+
"$ref": "#/components/schemas/Recommendations"
|
|
15357
|
+
},
|
|
15358
|
+
"has_more": {
|
|
15359
|
+
"type": "boolean"
|
|
15360
|
+
},
|
|
15361
|
+
"page": {
|
|
15362
|
+
"type": "number",
|
|
15363
|
+
"minimum": 0
|
|
15364
|
+
},
|
|
15365
|
+
"page_count": {
|
|
15366
|
+
"type": [
|
|
15367
|
+
"boolean",
|
|
15368
|
+
"number"
|
|
15369
|
+
],
|
|
15370
|
+
"anyOf": [
|
|
15371
|
+
{
|
|
15372
|
+
"type": "boolean",
|
|
15373
|
+
"enum": [
|
|
15374
|
+
true
|
|
15375
|
+
]
|
|
15376
|
+
},
|
|
15377
|
+
{
|
|
15378
|
+
"type": "number",
|
|
15379
|
+
"minimum": 0
|
|
15380
|
+
}
|
|
15381
|
+
]
|
|
15382
|
+
}
|
|
15383
|
+
},
|
|
15384
|
+
"required": [
|
|
15385
|
+
"data",
|
|
15386
|
+
"has_more",
|
|
15387
|
+
"page",
|
|
15388
|
+
"page_count"
|
|
15389
|
+
]
|
|
15390
|
+
}
|
|
15391
|
+
}
|
|
15392
|
+
}
|
|
15393
|
+
},
|
|
15394
|
+
"304": {
|
|
15395
|
+
"description": "304 response"
|
|
15396
|
+
},
|
|
15397
|
+
"default": {
|
|
15398
|
+
"description": "Error",
|
|
15399
|
+
"content": {
|
|
15400
|
+
"application/json": {
|
|
15401
|
+
"schema": {
|
|
15402
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
15403
|
+
}
|
|
15404
|
+
}
|
|
15405
|
+
}
|
|
15406
|
+
}
|
|
15407
|
+
}
|
|
15408
|
+
}
|
|
15243
15409
|
}
|
|
15244
15410
|
}
|
|
15245
15411
|
}
|
package/package.json
CHANGED