api.fluff4.me 1.0.1014 → 1.0.1016

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 +47 -17
  2. package/openapi.json +346 -123
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -481,6 +481,27 @@ export interface CampaignTierSetBody {
481
481
  chapters: string[]
482
482
  }
483
483
 
484
+ export interface Comment {
485
+ comment_id: string
486
+ parent_id?: string | null
487
+ created_time?: string | null
488
+ edited_time?: string | null
489
+ author?: string | null
490
+ body?: TextBody | null
491
+ reactions?: number | null
492
+ reacted?: true | null
493
+ author_hearted?: true | null
494
+ }
495
+
496
+ export interface WorkRecommendationBody {
497
+ body: string
498
+ }
499
+
500
+ export interface CommentsResponse {
501
+ comments: Comment[]
502
+ authors: AuthorMetadata[]
503
+ }
504
+
484
505
  export type Works = WorkMetadata[]
485
506
 
486
507
  export interface WorkResolveResponse {
@@ -540,18 +561,6 @@ export interface RoleReorderBody {
540
561
  roles: string[]
541
562
  }
542
563
 
543
- export interface Comment {
544
- comment_id: string
545
- parent_id?: string | null
546
- created_time?: string | null
547
- edited_time?: string | null
548
- author?: string | null
549
- body?: TextBody | null
550
- reactions?: number | null
551
- reacted?: true | null
552
- author_hearted?: true | null
553
- }
554
-
555
564
  export interface CommentCreateBody {
556
565
  body: string
557
566
  parent_id?: string | null
@@ -561,11 +570,6 @@ export interface CommentUpdateBody {
561
570
  body: string
562
571
  }
563
572
 
564
- export interface CommentsResponse {
565
- comments: Comment[]
566
- authors: AuthorMetadata[]
567
- }
568
-
569
573
  export interface Tag {
570
574
  name: string
571
575
  description: TextBody
@@ -764,6 +768,8 @@ export interface ManifestNotificationTypes {
764
768
  "work-censored": NotificationType
765
769
  "chapter-censored": NotificationType
766
770
  "patreon-needs-reauth": NotificationType
771
+ "work-recommendation": NotificationType
772
+ "recommendation-mention": NotificationType
767
773
  }
768
774
 
769
775
  export interface NotificationType {
@@ -1332,6 +1338,18 @@ export interface Paths {
1332
1338
  search?: undefined
1333
1339
  response: void | ErrorResponse
1334
1340
  },
1341
+ "/work/{author}/{vanity}/recommend": {
1342
+ method: "post"
1343
+ body: WorkRecommendationBody
1344
+ search?: undefined
1345
+ response: Response<Comment> | ErrorResponse
1346
+ },
1347
+ "/work/{author}/{vanity}/recommendations": {
1348
+ method: "get"
1349
+ body?: undefined
1350
+ search: PaginationSearch
1351
+ response: PaginatedResponse<CommentsResponse> | ErrorResponse
1352
+ },
1335
1353
  "/works/{author}": {
1336
1354
  method: "get"
1337
1355
  body?: undefined
@@ -1944,6 +1962,18 @@ export interface Paths {
1944
1962
  search?: undefined
1945
1963
  response: Response<Bookmarks> | ErrorResponse
1946
1964
  },
1965
+ "/recommendation/{comment_id}/react/{type}": {
1966
+ method: "post"
1967
+ body?: undefined
1968
+ search?: undefined
1969
+ response: void | ErrorResponse
1970
+ },
1971
+ "/recommendation/{comment_id}/unreact": {
1972
+ method: "post"
1973
+ body?: undefined
1974
+ search?: undefined
1975
+ response: void | ErrorResponse
1976
+ },
1947
1977
  "/supporter/status": {
1948
1978
  method: "get"
1949
1979
  body?: undefined
package/openapi.json CHANGED
@@ -3029,6 +3029,140 @@
3029
3029
  "chapters"
3030
3030
  ]
3031
3031
  },
3032
+ "Comment": {
3033
+ "type": "object",
3034
+ "properties": {
3035
+ "comment_id": {
3036
+ "type": "string",
3037
+ "minLength": 36,
3038
+ "maxLength": 36
3039
+ },
3040
+ "parent_id": {
3041
+ "anyOf": [
3042
+ {
3043
+ "type": "string",
3044
+ "minLength": 36,
3045
+ "maxLength": 36
3046
+ },
3047
+ {
3048
+ "type": "null"
3049
+ }
3050
+ ]
3051
+ },
3052
+ "created_time": {
3053
+ "anyOf": [
3054
+ {
3055
+ "type": "string"
3056
+ },
3057
+ {
3058
+ "type": "null"
3059
+ }
3060
+ ]
3061
+ },
3062
+ "edited_time": {
3063
+ "anyOf": [
3064
+ {
3065
+ "type": "string"
3066
+ },
3067
+ {
3068
+ "type": "null"
3069
+ }
3070
+ ]
3071
+ },
3072
+ "author": {
3073
+ "anyOf": [
3074
+ {
3075
+ "type": "string"
3076
+ },
3077
+ {
3078
+ "type": "null"
3079
+ }
3080
+ ]
3081
+ },
3082
+ "body": {
3083
+ "anyOf": [
3084
+ {
3085
+ "$ref": "#/components/schema/TextBody"
3086
+ },
3087
+ {
3088
+ "type": "null"
3089
+ }
3090
+ ]
3091
+ },
3092
+ "reactions": {
3093
+ "anyOf": [
3094
+ {
3095
+ "type": "number"
3096
+ },
3097
+ {
3098
+ "type": "null"
3099
+ }
3100
+ ]
3101
+ },
3102
+ "reacted": {
3103
+ "anyOf": [
3104
+ {
3105
+ "type": "boolean",
3106
+ "enum": [
3107
+ true
3108
+ ]
3109
+ },
3110
+ {
3111
+ "type": "null"
3112
+ }
3113
+ ]
3114
+ },
3115
+ "author_hearted": {
3116
+ "anyOf": [
3117
+ {
3118
+ "type": "boolean",
3119
+ "enum": [
3120
+ true
3121
+ ]
3122
+ },
3123
+ {
3124
+ "type": "null"
3125
+ }
3126
+ ]
3127
+ }
3128
+ },
3129
+ "required": [
3130
+ "comment_id"
3131
+ ]
3132
+ },
3133
+ "WorkRecommendationBody": {
3134
+ "type": "object",
3135
+ "properties": {
3136
+ "body": {
3137
+ "type": "string",
3138
+ "maxLength": 1024
3139
+ }
3140
+ },
3141
+ "required": [
3142
+ "body"
3143
+ ]
3144
+ },
3145
+ "CommentsResponse": {
3146
+ "type": "object",
3147
+ "properties": {
3148
+ "comments": {
3149
+ "type": "array",
3150
+ "items": {
3151
+ "$ref": "#/components/schema/Comment"
3152
+ }
3153
+ },
3154
+ "authors": {
3155
+ "type": "array",
3156
+ "items": {
3157
+ "$ref": "#/components/schema/AuthorMetadata"
3158
+ }
3159
+ }
3160
+ },
3161
+ "required": [
3162
+ "comments",
3163
+ "authors"
3164
+ ]
3165
+ },
3032
3166
  "Works": {
3033
3167
  "type": "array",
3034
3168
  "items": {
@@ -3312,107 +3446,6 @@
3312
3446
  "roles"
3313
3447
  ]
3314
3448
  },
3315
- "Comment": {
3316
- "type": "object",
3317
- "properties": {
3318
- "comment_id": {
3319
- "type": "string",
3320
- "minLength": 36,
3321
- "maxLength": 36
3322
- },
3323
- "parent_id": {
3324
- "anyOf": [
3325
- {
3326
- "type": "string",
3327
- "minLength": 36,
3328
- "maxLength": 36
3329
- },
3330
- {
3331
- "type": "null"
3332
- }
3333
- ]
3334
- },
3335
- "created_time": {
3336
- "anyOf": [
3337
- {
3338
- "type": "string"
3339
- },
3340
- {
3341
- "type": "null"
3342
- }
3343
- ]
3344
- },
3345
- "edited_time": {
3346
- "anyOf": [
3347
- {
3348
- "type": "string"
3349
- },
3350
- {
3351
- "type": "null"
3352
- }
3353
- ]
3354
- },
3355
- "author": {
3356
- "anyOf": [
3357
- {
3358
- "type": "string"
3359
- },
3360
- {
3361
- "type": "null"
3362
- }
3363
- ]
3364
- },
3365
- "body": {
3366
- "anyOf": [
3367
- {
3368
- "$ref": "#/components/schema/TextBody"
3369
- },
3370
- {
3371
- "type": "null"
3372
- }
3373
- ]
3374
- },
3375
- "reactions": {
3376
- "anyOf": [
3377
- {
3378
- "type": "number"
3379
- },
3380
- {
3381
- "type": "null"
3382
- }
3383
- ]
3384
- },
3385
- "reacted": {
3386
- "anyOf": [
3387
- {
3388
- "type": "boolean",
3389
- "enum": [
3390
- true
3391
- ]
3392
- },
3393
- {
3394
- "type": "null"
3395
- }
3396
- ]
3397
- },
3398
- "author_hearted": {
3399
- "anyOf": [
3400
- {
3401
- "type": "boolean",
3402
- "enum": [
3403
- true
3404
- ]
3405
- },
3406
- {
3407
- "type": "null"
3408
- }
3409
- ]
3410
- }
3411
- },
3412
- "required": [
3413
- "comment_id"
3414
- ]
3415
- },
3416
3449
  "CommentCreateBody": {
3417
3450
  "type": "object",
3418
3451
  "properties": {
@@ -3447,27 +3480,6 @@
3447
3480
  "body"
3448
3481
  ]
3449
3482
  },
3450
- "CommentsResponse": {
3451
- "type": "object",
3452
- "properties": {
3453
- "comments": {
3454
- "type": "array",
3455
- "items": {
3456
- "$ref": "#/components/schema/Comment"
3457
- }
3458
- },
3459
- "authors": {
3460
- "type": "array",
3461
- "items": {
3462
- "$ref": "#/components/schema/AuthorMetadata"
3463
- }
3464
- }
3465
- },
3466
- "required": [
3467
- "comments",
3468
- "authors"
3469
- ]
3470
- },
3471
3483
  "Tag": {
3472
3484
  "type": "object",
3473
3485
  "properties": {
@@ -4362,6 +4374,12 @@
4362
4374
  },
4363
4375
  "patreon-needs-reauth": {
4364
4376
  "$ref": "#/components/schema/NotificationType"
4377
+ },
4378
+ "work-recommendation": {
4379
+ "$ref": "#/components/schema/NotificationType"
4380
+ },
4381
+ "recommendation-mention": {
4382
+ "$ref": "#/components/schema/NotificationType"
4365
4383
  }
4366
4384
  },
4367
4385
  "required": [
@@ -4384,7 +4402,9 @@
4384
4402
  "author-censored",
4385
4403
  "work-censored",
4386
4404
  "chapter-censored",
4387
- "patreon-needs-reauth"
4405
+ "patreon-needs-reauth",
4406
+ "work-recommendation",
4407
+ "recommendation-mention"
4388
4408
  ]
4389
4409
  },
4390
4410
  "NotificationType": {
@@ -7923,6 +7943,155 @@
7923
7943
  }
7924
7944
  }
7925
7945
  },
7946
+ "/work/{author}/{vanity}/recommend": {
7947
+ "parameters": [
7948
+ {
7949
+ "name": "author",
7950
+ "in": "path"
7951
+ },
7952
+ {
7953
+ "name": "vanity",
7954
+ "in": "path"
7955
+ }
7956
+ ],
7957
+ "post": {
7958
+ "requestBody": {
7959
+ "content": {
7960
+ "application/json": {
7961
+ "schema": {
7962
+ "$ref": "#/components/schemas/WorkRecommendationBody"
7963
+ }
7964
+ }
7965
+ }
7966
+ },
7967
+ "responses": {
7968
+ "200": {
7969
+ "description": "200 response",
7970
+ "content": {
7971
+ "application/json": {
7972
+ "schema": {
7973
+ "type": "object",
7974
+ "properties": {
7975
+ "data": {
7976
+ "$ref": "#/components/schemas/Comment"
7977
+ }
7978
+ },
7979
+ "required": [
7980
+ "data"
7981
+ ]
7982
+ }
7983
+ }
7984
+ }
7985
+ },
7986
+ "default": {
7987
+ "description": "Error",
7988
+ "content": {
7989
+ "application/json": {
7990
+ "schema": {
7991
+ "$ref": "#/components/schemas/ErrorResponse"
7992
+ }
7993
+ }
7994
+ }
7995
+ }
7996
+ }
7997
+ }
7998
+ },
7999
+ "/work/{author}/{vanity}/recommendations": {
8000
+ "parameters": [
8001
+ {
8002
+ "name": "author",
8003
+ "in": "path"
8004
+ },
8005
+ {
8006
+ "name": "vanity",
8007
+ "in": "path"
8008
+ }
8009
+ ],
8010
+ "get": {
8011
+ "parameters": [
8012
+ {
8013
+ "name": "page",
8014
+ "in": "query",
8015
+ "description": "The page of data to query from. This endpoint uses a page size of 25 by default.",
8016
+ "schema": {
8017
+ "type": "integer",
8018
+ "minimum": 0
8019
+ }
8020
+ },
8021
+ {
8022
+ "name": "page_size",
8023
+ "in": "query",
8024
+ "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.",
8025
+ "schema": {
8026
+ "type": "integer",
8027
+ "minimum": 1,
8028
+ "maximum": 25
8029
+ }
8030
+ }
8031
+ ],
8032
+ "responses": {
8033
+ "200": {
8034
+ "description": "200 response",
8035
+ "content": {
8036
+ "application/json": {
8037
+ "schema": {
8038
+ "type": "object",
8039
+ "properties": {
8040
+ "data": {
8041
+ "$ref": "#/components/schemas/CommentsResponse"
8042
+ },
8043
+ "has_more": {
8044
+ "type": "boolean"
8045
+ },
8046
+ "page": {
8047
+ "type": "number",
8048
+ "minimum": 0
8049
+ },
8050
+ "page_count": {
8051
+ "type": [
8052
+ "boolean",
8053
+ "number"
8054
+ ],
8055
+ "anyOf": [
8056
+ {
8057
+ "type": "boolean",
8058
+ "enum": [
8059
+ true
8060
+ ]
8061
+ },
8062
+ {
8063
+ "type": "number",
8064
+ "minimum": 0
8065
+ }
8066
+ ]
8067
+ }
8068
+ },
8069
+ "required": [
8070
+ "data",
8071
+ "has_more",
8072
+ "page",
8073
+ "page_count"
8074
+ ]
8075
+ }
8076
+ }
8077
+ }
8078
+ },
8079
+ "304": {
8080
+ "description": "304 response"
8081
+ },
8082
+ "default": {
8083
+ "description": "Error",
8084
+ "content": {
8085
+ "application/json": {
8086
+ "schema": {
8087
+ "$ref": "#/components/schemas/ErrorResponse"
8088
+ }
8089
+ }
8090
+ }
8091
+ }
8092
+ }
8093
+ }
8094
+ },
7926
8095
  "/works/{author}": {
7927
8096
  "parameters": [
7928
8097
  {
@@ -12725,6 +12894,60 @@
12725
12894
  }
12726
12895
  }
12727
12896
  },
12897
+ "/recommendation/{comment_id}/react/{type}": {
12898
+ "parameters": [
12899
+ {
12900
+ "name": "comment_id",
12901
+ "in": "path"
12902
+ },
12903
+ {
12904
+ "name": "type",
12905
+ "in": "path"
12906
+ }
12907
+ ],
12908
+ "post": {
12909
+ "responses": {
12910
+ "200": {
12911
+ "description": "200 response"
12912
+ },
12913
+ "default": {
12914
+ "description": "Error",
12915
+ "content": {
12916
+ "application/json": {
12917
+ "schema": {
12918
+ "$ref": "#/components/schemas/ErrorResponse"
12919
+ }
12920
+ }
12921
+ }
12922
+ }
12923
+ }
12924
+ }
12925
+ },
12926
+ "/recommendation/{comment_id}/unreact": {
12927
+ "parameters": [
12928
+ {
12929
+ "name": "comment_id",
12930
+ "in": "path"
12931
+ }
12932
+ ],
12933
+ "post": {
12934
+ "responses": {
12935
+ "200": {
12936
+ "description": "200 response"
12937
+ },
12938
+ "default": {
12939
+ "description": "Error",
12940
+ "content": {
12941
+ "application/json": {
12942
+ "schema": {
12943
+ "$ref": "#/components/schemas/ErrorResponse"
12944
+ }
12945
+ }
12946
+ }
12947
+ }
12948
+ }
12949
+ }
12950
+ },
12728
12951
  "/supporter/status": {
12729
12952
  "get": {
12730
12953
  "responses": {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.1014",
3
+ "version": "1.0.1016",
4
4
  "types": "index.d.ts"
5
5
  }