api.fluff4.me 1.0.1047 → 1.0.1050

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 +35 -7
  2. package/openapi.json +148 -21
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -581,7 +581,41 @@ export interface AuthorCommentsList {
581
581
 
582
582
  export interface AuthorComment {
583
583
  comment: Comment
584
- root_object: CommentRootComment | CommentRootWork | CommentRootChapter
584
+ root_object: CommentRootComment | CommentRootWork | CommentRootChapter | CommentRootWorkPrivate | CommentRootChapterPrivate
585
+ is_reply?: true | null
586
+ }
587
+
588
+ export interface CommentRootComment {
589
+ comment_id: string
590
+ type: "comment"
591
+ }
592
+
593
+ export interface CommentRootWork {
594
+ work: WorkReference
595
+ visibility: "Private" | "Public" | "Patreon"
596
+ type: "work"
597
+ }
598
+
599
+ export interface CommentRootChapter {
600
+ chapter: ChapterReference
601
+ visibility: "Private" | "Public" | "Patreon"
602
+ type: "chapter"
603
+ }
604
+
605
+ export interface ChapterReference {
606
+ author: string
607
+ work: string
608
+ url: string
609
+ }
610
+
611
+ export interface CommentRootWorkPrivate {
612
+ visibility: "Private"
613
+ type: "work_private"
614
+ }
615
+
616
+ export interface CommentRootChapterPrivate {
617
+ visibility: "Private"
618
+ type: "chapter_private"
585
619
  }
586
620
 
587
621
  export interface Tag {
@@ -815,12 +849,6 @@ export interface Notification {
815
849
  comment?: string | null
816
850
  }
817
851
 
818
- export interface ChapterReference {
819
- author: string
820
- work: string
821
- url: string
822
- }
823
-
824
852
  export interface NotificationCount {
825
853
  unread_notification_count: number
826
854
  notification_time_last_modified: string
package/openapi.json CHANGED
@@ -3669,10 +3669,23 @@
3669
3669
  "$ref": "#/components/schema/CommentRootChapter"
3670
3670
  },
3671
3671
  {
3672
- "$ref": "#/components/schema/CommentRootWork"
3672
+ "$ref": "#/components/schema/CommentRootWorkPrivate"
3673
3673
  },
3674
3674
  {
3675
- "$ref": "#/components/schema/CommentRootChapter"
3675
+ "$ref": "#/components/schema/CommentRootChapterPrivate"
3676
+ }
3677
+ ]
3678
+ },
3679
+ "is_reply": {
3680
+ "anyOf": [
3681
+ {
3682
+ "type": "boolean",
3683
+ "enum": [
3684
+ true
3685
+ ]
3686
+ },
3687
+ {
3688
+ "type": "null"
3676
3689
  }
3677
3690
  ]
3678
3691
  }
@@ -3682,6 +3695,139 @@
3682
3695
  "root_object"
3683
3696
  ]
3684
3697
  },
3698
+ "CommentRootComment": {
3699
+ "type": "object",
3700
+ "properties": {
3701
+ "comment_id": {
3702
+ "type": "string"
3703
+ },
3704
+ "type": {
3705
+ "type": "string",
3706
+ "enum": [
3707
+ "comment"
3708
+ ]
3709
+ }
3710
+ },
3711
+ "required": [
3712
+ "comment_id",
3713
+ "type"
3714
+ ]
3715
+ },
3716
+ "CommentRootWork": {
3717
+ "type": "object",
3718
+ "properties": {
3719
+ "work": {
3720
+ "$ref": "#/components/schema/WorkReference"
3721
+ },
3722
+ "visibility": {
3723
+ "type": "string",
3724
+ "enum": [
3725
+ "Private",
3726
+ "Public",
3727
+ "Patreon"
3728
+ ]
3729
+ },
3730
+ "type": {
3731
+ "type": "string",
3732
+ "enum": [
3733
+ "work"
3734
+ ]
3735
+ }
3736
+ },
3737
+ "required": [
3738
+ "work",
3739
+ "visibility",
3740
+ "type"
3741
+ ]
3742
+ },
3743
+ "CommentRootChapter": {
3744
+ "type": "object",
3745
+ "properties": {
3746
+ "chapter": {
3747
+ "$ref": "#/components/schema/ChapterReference"
3748
+ },
3749
+ "visibility": {
3750
+ "type": "string",
3751
+ "enum": [
3752
+ "Private",
3753
+ "Public",
3754
+ "Patreon"
3755
+ ]
3756
+ },
3757
+ "type": {
3758
+ "type": "string",
3759
+ "enum": [
3760
+ "chapter"
3761
+ ]
3762
+ }
3763
+ },
3764
+ "required": [
3765
+ "chapter",
3766
+ "visibility",
3767
+ "type"
3768
+ ]
3769
+ },
3770
+ "ChapterReference": {
3771
+ "type": "object",
3772
+ "properties": {
3773
+ "author": {
3774
+ "type": "string"
3775
+ },
3776
+ "work": {
3777
+ "type": "string"
3778
+ },
3779
+ "url": {
3780
+ "type": "string"
3781
+ }
3782
+ },
3783
+ "required": [
3784
+ "author",
3785
+ "work",
3786
+ "url"
3787
+ ]
3788
+ },
3789
+ "CommentRootWorkPrivate": {
3790
+ "type": "object",
3791
+ "properties": {
3792
+ "visibility": {
3793
+ "type": "string",
3794
+ "enum": [
3795
+ "Private"
3796
+ ]
3797
+ },
3798
+ "type": {
3799
+ "type": "string",
3800
+ "enum": [
3801
+ "work_private"
3802
+ ]
3803
+ }
3804
+ },
3805
+ "required": [
3806
+ "visibility",
3807
+ "type"
3808
+ ]
3809
+ },
3810
+ "CommentRootChapterPrivate": {
3811
+ "type": "object",
3812
+ "properties": {
3813
+ "visibility": {
3814
+ "type": "string",
3815
+ "enum": [
3816
+ "Private"
3817
+ ]
3818
+ },
3819
+ "type": {
3820
+ "type": "string",
3821
+ "enum": [
3822
+ "chapter_private"
3823
+ ]
3824
+ }
3825
+ },
3826
+ "required": [
3827
+ "visibility",
3828
+ "type"
3829
+ ]
3830
+ },
3685
3831
  "Tag": {
3686
3832
  "type": "object",
3687
3833
  "properties": {
@@ -4755,25 +4901,6 @@
4755
4901
  "read"
4756
4902
  ]
4757
4903
  },
4758
- "ChapterReference": {
4759
- "type": "object",
4760
- "properties": {
4761
- "author": {
4762
- "type": "string"
4763
- },
4764
- "work": {
4765
- "type": "string"
4766
- },
4767
- "url": {
4768
- "type": "string"
4769
- }
4770
- },
4771
- "required": [
4772
- "author",
4773
- "work",
4774
- "url"
4775
- ]
4776
- },
4777
4904
  "NotificationCount": {
4778
4905
  "type": "object",
4779
4906
  "properties": {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.1047",
3
+ "version": "1.0.1050",
4
4
  "types": "index.d.ts"
5
5
  }