api.fluff4.me 1.0.1077 → 1.0.1080
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 +21 -0
- package/openapi.json +159 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1122,6 +1122,21 @@ export interface EmbedSearch {
|
|
|
1122
1122
|
url: string
|
|
1123
1123
|
}
|
|
1124
1124
|
|
|
1125
|
+
export interface Recommendations {
|
|
1126
|
+
recommendations: Recommendation[]
|
|
1127
|
+
works: WorkMetadata[]
|
|
1128
|
+
authors: AuthorMetadata[]
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
export interface RecommendationsSearchSchema {
|
|
1132
|
+
following_only?: boolean | null
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
export interface Recommendation {
|
|
1136
|
+
recommendation: Comment
|
|
1137
|
+
work: WorkReference
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1125
1140
|
export interface ErrorResponse {
|
|
1126
1141
|
code: number
|
|
1127
1142
|
detail?: string | null
|
|
@@ -2310,4 +2325,10 @@ export interface Paths {
|
|
|
2310
2325
|
search: EmbedSearch
|
|
2311
2326
|
response: void | ErrorResponse
|
|
2312
2327
|
},
|
|
2328
|
+
"/recommendations": {
|
|
2329
|
+
method: "get"
|
|
2330
|
+
body?: undefined
|
|
2331
|
+
search: RecommendationsSearchSchema & PaginationSearch
|
|
2332
|
+
response: PaginatedResponse<Recommendations> | ErrorResponse
|
|
2333
|
+
},
|
|
2313
2334
|
}
|
package/openapi.json
CHANGED
|
@@ -6609,6 +6609,64 @@
|
|
|
6609
6609
|
"url"
|
|
6610
6610
|
]
|
|
6611
6611
|
},
|
|
6612
|
+
"Recommendations": {
|
|
6613
|
+
"type": "object",
|
|
6614
|
+
"properties": {
|
|
6615
|
+
"recommendations": {
|
|
6616
|
+
"type": "array",
|
|
6617
|
+
"items": {
|
|
6618
|
+
"$ref": "#/components/schema/Recommendation"
|
|
6619
|
+
}
|
|
6620
|
+
},
|
|
6621
|
+
"works": {
|
|
6622
|
+
"type": "array",
|
|
6623
|
+
"items": {
|
|
6624
|
+
"$ref": "#/components/schema/WorkMetadata"
|
|
6625
|
+
}
|
|
6626
|
+
},
|
|
6627
|
+
"authors": {
|
|
6628
|
+
"type": "array",
|
|
6629
|
+
"items": {
|
|
6630
|
+
"$ref": "#/components/schema/AuthorMetadata"
|
|
6631
|
+
}
|
|
6632
|
+
}
|
|
6633
|
+
},
|
|
6634
|
+
"required": [
|
|
6635
|
+
"recommendations",
|
|
6636
|
+
"works",
|
|
6637
|
+
"authors"
|
|
6638
|
+
]
|
|
6639
|
+
},
|
|
6640
|
+
"RecommendationsSearchSchema": {
|
|
6641
|
+
"type": "object",
|
|
6642
|
+
"properties": {
|
|
6643
|
+
"following_only": {
|
|
6644
|
+
"anyOf": [
|
|
6645
|
+
{
|
|
6646
|
+
"type": "boolean"
|
|
6647
|
+
},
|
|
6648
|
+
{
|
|
6649
|
+
"type": "null"
|
|
6650
|
+
}
|
|
6651
|
+
]
|
|
6652
|
+
}
|
|
6653
|
+
}
|
|
6654
|
+
},
|
|
6655
|
+
"Recommendation": {
|
|
6656
|
+
"type": "object",
|
|
6657
|
+
"properties": {
|
|
6658
|
+
"recommendation": {
|
|
6659
|
+
"$ref": "#/components/schema/Comment"
|
|
6660
|
+
},
|
|
6661
|
+
"work": {
|
|
6662
|
+
"$ref": "#/components/schema/WorkReference"
|
|
6663
|
+
}
|
|
6664
|
+
},
|
|
6665
|
+
"required": [
|
|
6666
|
+
"recommendation",
|
|
6667
|
+
"work"
|
|
6668
|
+
]
|
|
6669
|
+
},
|
|
6612
6670
|
"ErrorResponse": {
|
|
6613
6671
|
"type": "object",
|
|
6614
6672
|
"properties": {
|
|
@@ -15240,6 +15298,107 @@
|
|
|
15240
15298
|
}
|
|
15241
15299
|
}
|
|
15242
15300
|
}
|
|
15301
|
+
},
|
|
15302
|
+
"/recommendations": {
|
|
15303
|
+
"get": {
|
|
15304
|
+
"parameters": [
|
|
15305
|
+
{
|
|
15306
|
+
"name": "page",
|
|
15307
|
+
"in": "query",
|
|
15308
|
+
"description": "The page of data to query from. This endpoint uses a page size of 25 by default.",
|
|
15309
|
+
"schema": {
|
|
15310
|
+
"type": "integer",
|
|
15311
|
+
"minimum": 0
|
|
15312
|
+
}
|
|
15313
|
+
},
|
|
15314
|
+
{
|
|
15315
|
+
"name": "page_size",
|
|
15316
|
+
"in": "query",
|
|
15317
|
+
"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.",
|
|
15318
|
+
"schema": {
|
|
15319
|
+
"type": "integer",
|
|
15320
|
+
"minimum": 1,
|
|
15321
|
+
"maximum": 25
|
|
15322
|
+
}
|
|
15323
|
+
},
|
|
15324
|
+
{
|
|
15325
|
+
"name": "following_only",
|
|
15326
|
+
"in": "query",
|
|
15327
|
+
"required": false,
|
|
15328
|
+
"schema": {
|
|
15329
|
+
"anyOf": [
|
|
15330
|
+
{
|
|
15331
|
+
"type": "boolean"
|
|
15332
|
+
},
|
|
15333
|
+
{
|
|
15334
|
+
"type": "null"
|
|
15335
|
+
}
|
|
15336
|
+
]
|
|
15337
|
+
}
|
|
15338
|
+
}
|
|
15339
|
+
],
|
|
15340
|
+
"responses": {
|
|
15341
|
+
"200": {
|
|
15342
|
+
"description": "200 response",
|
|
15343
|
+
"content": {
|
|
15344
|
+
"application/json": {
|
|
15345
|
+
"schema": {
|
|
15346
|
+
"type": "object",
|
|
15347
|
+
"properties": {
|
|
15348
|
+
"data": {
|
|
15349
|
+
"$ref": "#/components/schemas/Recommendations"
|
|
15350
|
+
},
|
|
15351
|
+
"has_more": {
|
|
15352
|
+
"type": "boolean"
|
|
15353
|
+
},
|
|
15354
|
+
"page": {
|
|
15355
|
+
"type": "number",
|
|
15356
|
+
"minimum": 0
|
|
15357
|
+
},
|
|
15358
|
+
"page_count": {
|
|
15359
|
+
"type": [
|
|
15360
|
+
"boolean",
|
|
15361
|
+
"number"
|
|
15362
|
+
],
|
|
15363
|
+
"anyOf": [
|
|
15364
|
+
{
|
|
15365
|
+
"type": "boolean",
|
|
15366
|
+
"enum": [
|
|
15367
|
+
true
|
|
15368
|
+
]
|
|
15369
|
+
},
|
|
15370
|
+
{
|
|
15371
|
+
"type": "number",
|
|
15372
|
+
"minimum": 0
|
|
15373
|
+
}
|
|
15374
|
+
]
|
|
15375
|
+
}
|
|
15376
|
+
},
|
|
15377
|
+
"required": [
|
|
15378
|
+
"data",
|
|
15379
|
+
"has_more",
|
|
15380
|
+
"page",
|
|
15381
|
+
"page_count"
|
|
15382
|
+
]
|
|
15383
|
+
}
|
|
15384
|
+
}
|
|
15385
|
+
}
|
|
15386
|
+
},
|
|
15387
|
+
"304": {
|
|
15388
|
+
"description": "304 response"
|
|
15389
|
+
},
|
|
15390
|
+
"default": {
|
|
15391
|
+
"description": "Error",
|
|
15392
|
+
"content": {
|
|
15393
|
+
"application/json": {
|
|
15394
|
+
"schema": {
|
|
15395
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
15396
|
+
}
|
|
15397
|
+
}
|
|
15398
|
+
}
|
|
15399
|
+
}
|
|
15400
|
+
}
|
|
15401
|
+
}
|
|
15243
15402
|
}
|
|
15244
15403
|
}
|
|
15245
15404
|
}
|
package/package.json
CHANGED