api.fluff4.me 1.0.677 → 1.0.680

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 CHANGED
@@ -118,6 +118,7 @@ export interface Work {
118
118
  card_colours?: number[] | null
119
119
  license?: WorkLicense | null
120
120
  patreon?: WorkPatreon | null
121
+ lock_reason?: string | null
121
122
  }
122
123
 
123
124
  export interface WorkLicense {
@@ -260,6 +261,7 @@ export interface WorkFull {
260
261
  card_colours?: number[] | null
261
262
  license?: WorkLicense | null
262
263
  patreon?: WorkPatreon | null
264
+ lock_reason?: string | null
263
265
  synopsis: TextBodyWithAuthor
264
266
  custom_tags?: CustomTag[] | null
265
267
  last_chapter: string
@@ -448,6 +450,10 @@ export interface WorkCensorBody {
448
450
  synopsis?: boolean | null
449
451
  }
450
452
 
453
+ export interface WorkLockBody {
454
+ reason: string
455
+ }
456
+
451
457
  export type Works = Work[]
452
458
 
453
459
  export interface FeedResponse {
@@ -677,6 +683,7 @@ export interface ManifestFormInputLengths {
677
683
  reason: number
678
684
  reason_body: number
679
685
  }
686
+ moderation: { lock_reason: number }
680
687
  }
681
688
 
682
689
  export interface ManifestReactionTypes {
@@ -1152,7 +1159,7 @@ export interface Paths {
1152
1159
  },
1153
1160
  "/work/{author}/{vanity}/lock": {
1154
1161
  method: "post"
1155
- body?: undefined
1162
+ body: WorkLockBody
1156
1163
  search?: undefined
1157
1164
  response: void | ErrorResponse
1158
1165
  },
package/openapi.json CHANGED
@@ -603,6 +603,16 @@
603
603
  "type": "null"
604
604
  }
605
605
  ]
606
+ },
607
+ "lock_reason": {
608
+ "anyOf": [
609
+ {
610
+ "type": "string"
611
+ },
612
+ {
613
+ "type": "null"
614
+ }
615
+ ]
606
616
  }
607
617
  },
608
618
  "required": [
@@ -1447,6 +1457,16 @@
1447
1457
  }
1448
1458
  ]
1449
1459
  },
1460
+ "lock_reason": {
1461
+ "anyOf": [
1462
+ {
1463
+ "type": "string"
1464
+ },
1465
+ {
1466
+ "type": "null"
1467
+ }
1468
+ ]
1469
+ },
1450
1470
  "synopsis": {
1451
1471
  "$ref": "#/components/schema/TextBodyWithAuthor"
1452
1472
  },
@@ -2745,6 +2765,18 @@
2745
2765
  }
2746
2766
  }
2747
2767
  },
2768
+ "WorkLockBody": {
2769
+ "type": "object",
2770
+ "properties": {
2771
+ "reason": {
2772
+ "type": "string",
2773
+ "maxLength": 512
2774
+ }
2775
+ },
2776
+ "required": [
2777
+ "reason"
2778
+ ]
2779
+ },
2748
2780
  "Works": {
2749
2781
  "type": "array",
2750
2782
  "items": {
@@ -3869,6 +3901,17 @@
3869
3901
  "reason",
3870
3902
  "reason_body"
3871
3903
  ]
3904
+ },
3905
+ "moderation": {
3906
+ "type": "object",
3907
+ "properties": {
3908
+ "lock_reason": {
3909
+ "type": "number"
3910
+ }
3911
+ },
3912
+ "required": [
3913
+ "lock_reason"
3914
+ ]
3872
3915
  }
3873
3916
  },
3874
3917
  "required": [
@@ -3882,7 +3925,8 @@
3882
3925
  "comment",
3883
3926
  "work_tags",
3884
3927
  "changelog",
3885
- "report"
3928
+ "report",
3929
+ "moderation"
3886
3930
  ]
3887
3931
  },
3888
3932
  "ManifestReactionTypes": {
@@ -6577,6 +6621,15 @@
6577
6621
  }
6578
6622
  ],
6579
6623
  "post": {
6624
+ "requestBody": {
6625
+ "content": {
6626
+ "application/json": {
6627
+ "schema": {
6628
+ "$ref": "#/components/schemas/WorkLockBody"
6629
+ }
6630
+ }
6631
+ }
6632
+ },
6580
6633
  "responses": {
6581
6634
  "200": {
6582
6635
  "description": "200 response"
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.677",
3
+ "version": "1.0.680",
4
4
  "types": "index.d.ts"
5
5
  }