api.fluff4.me 1.0.456 → 1.0.458

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 +14 -12
  2. package/openapi.json +91 -71
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -217,6 +217,7 @@ export interface Chapter {
217
217
  time_publish?: string | null
218
218
  author: string
219
219
  work: string
220
+ tier?: PatreonCampaignTier | null
220
221
  is_numbered: boolean
221
222
  body: string
222
223
  index: number
@@ -264,6 +265,7 @@ export interface ChapterLite {
264
265
  time_publish?: string | null
265
266
  author: string
266
267
  work: string
268
+ tier?: PatreonCampaignTier | null
267
269
  is_numbered: boolean
268
270
  }
269
271
 
@@ -272,6 +274,12 @@ export interface ChapterReorderBody {
272
274
  position: "before" | "after"
273
275
  }
274
276
 
277
+ export interface CampaignTierSetBody {
278
+ visibility: "Private" | "Public" | "Patreon"
279
+ tier_id?: string | null
280
+ chapters: string[]
281
+ }
282
+
275
283
  export type Chapters = ChapterLite[]
276
284
 
277
285
  export type Works = Work[]
@@ -369,12 +377,6 @@ export interface Comments {
369
377
  authors: Author[]
370
378
  }
371
379
 
372
- export interface CampaignTierSetBody {
373
- visibility: "Private" | "Public" | "Patreon"
374
- tier_id?: string | null
375
- chapters: string[]
376
- }
377
-
378
380
  export interface Tag {
379
381
  name: string
380
382
  description: TextBody
@@ -736,6 +738,12 @@ export interface Paths {
736
738
  search?: undefined
737
739
  response: void | ErrorResponse
738
740
  },
741
+ "/work/{author}/{work}/chapter/update/visibility": {
742
+ method: "post"
743
+ body: CampaignTierSetBody
744
+ search?: undefined
745
+ response: void | ErrorResponse
746
+ },
739
747
  "/work/{author}/{vanity}/chapters/list": {
740
748
  method: "get"
741
749
  body?: undefined
@@ -1092,12 +1100,6 @@ export interface Paths {
1092
1100
  search?: undefined
1093
1101
  response: Response<PatreonCampaignTier[]> | ErrorResponse
1094
1102
  },
1095
- "/patreon/campaign/tiers/set/{author}/{vanity}": {
1096
- method: "post"
1097
- body: CampaignTierSetBody
1098
- search?: undefined
1099
- response: void | ErrorResponse
1100
- },
1101
1103
  "/tag/create/global": {
1102
1104
  method: "post"
1103
1105
  body: TagCreateGlobal
package/openapi.json CHANGED
@@ -1206,6 +1206,16 @@
1206
1206
  "work": {
1207
1207
  "type": "string"
1208
1208
  },
1209
+ "tier": {
1210
+ "anyOf": [
1211
+ {
1212
+ "$ref": "#/components/schema/PatreonCampaignTier"
1213
+ },
1214
+ {
1215
+ "type": "null"
1216
+ }
1217
+ ]
1218
+ },
1209
1219
  "is_numbered": {
1210
1220
  "type": "boolean"
1211
1221
  },
@@ -1578,6 +1588,16 @@
1578
1588
  "work": {
1579
1589
  "type": "string"
1580
1590
  },
1591
+ "tier": {
1592
+ "anyOf": [
1593
+ {
1594
+ "$ref": "#/components/schema/PatreonCampaignTier"
1595
+ },
1596
+ {
1597
+ "type": "null"
1598
+ }
1599
+ ]
1600
+ },
1581
1601
  "is_numbered": {
1582
1602
  "type": "boolean"
1583
1603
  }
@@ -1612,6 +1632,39 @@
1612
1632
  "position"
1613
1633
  ]
1614
1634
  },
1635
+ "CampaignTierSetBody": {
1636
+ "type": "object",
1637
+ "properties": {
1638
+ "visibility": {
1639
+ "type": "string",
1640
+ "enum": [
1641
+ "Private",
1642
+ "Public",
1643
+ "Patreon"
1644
+ ]
1645
+ },
1646
+ "tier_id": {
1647
+ "anyOf": [
1648
+ {
1649
+ "type": "string"
1650
+ },
1651
+ {
1652
+ "type": "null"
1653
+ }
1654
+ ]
1655
+ },
1656
+ "chapters": {
1657
+ "type": "array",
1658
+ "items": {
1659
+ "type": "string"
1660
+ }
1661
+ }
1662
+ },
1663
+ "required": [
1664
+ "visibility",
1665
+ "chapters"
1666
+ ]
1667
+ },
1615
1668
  "Chapters": {
1616
1669
  "type": "array",
1617
1670
  "items": {
@@ -2119,39 +2172,6 @@
2119
2172
  "authors"
2120
2173
  ]
2121
2174
  },
2122
- "CampaignTierSetBody": {
2123
- "type": "object",
2124
- "properties": {
2125
- "visibility": {
2126
- "type": "string",
2127
- "enum": [
2128
- "Private",
2129
- "Public",
2130
- "Patreon"
2131
- ]
2132
- },
2133
- "tier_id": {
2134
- "anyOf": [
2135
- {
2136
- "type": "string"
2137
- },
2138
- {
2139
- "type": "null"
2140
- }
2141
- ]
2142
- },
2143
- "chapters": {
2144
- "type": "array",
2145
- "items": {
2146
- "type": "string"
2147
- }
2148
- }
2149
- },
2150
- "required": [
2151
- "visibility",
2152
- "chapters"
2153
- ]
2154
- },
2155
2175
  "Tag": {
2156
2176
  "type": "object",
2157
2177
  "properties": {
@@ -4070,6 +4090,44 @@
4070
4090
  }
4071
4091
  }
4072
4092
  },
4093
+ "/work/{author}/{work}/chapter/update/visibility": {
4094
+ "parameters": [
4095
+ {
4096
+ "name": "author",
4097
+ "in": "path"
4098
+ },
4099
+ {
4100
+ "name": "work",
4101
+ "in": "path"
4102
+ }
4103
+ ],
4104
+ "post": {
4105
+ "requestBody": {
4106
+ "content": {
4107
+ "application/json": {
4108
+ "schema": {
4109
+ "$ref": "#/components/schemas/CampaignTierSetBody"
4110
+ }
4111
+ }
4112
+ }
4113
+ },
4114
+ "responses": {
4115
+ "200": {
4116
+ "description": "200 response"
4117
+ },
4118
+ "default": {
4119
+ "description": "Error",
4120
+ "content": {
4121
+ "application/json": {
4122
+ "schema": {
4123
+ "$ref": "#/components/schemas/ErrorResponse"
4124
+ }
4125
+ }
4126
+ }
4127
+ }
4128
+ }
4129
+ }
4130
+ },
4073
4131
  "/work/{author}/{vanity}/chapters/list": {
4074
4132
  "parameters": [
4075
4133
  {
@@ -6599,44 +6657,6 @@
6599
6657
  }
6600
6658
  }
6601
6659
  },
6602
- "/patreon/campaign/tiers/set/{author}/{vanity}": {
6603
- "parameters": [
6604
- {
6605
- "name": "author",
6606
- "in": "path"
6607
- },
6608
- {
6609
- "name": "vanity",
6610
- "in": "path"
6611
- }
6612
- ],
6613
- "post": {
6614
- "requestBody": {
6615
- "content": {
6616
- "application/json": {
6617
- "schema": {
6618
- "$ref": "#/components/schemas/CampaignTierSetBody"
6619
- }
6620
- }
6621
- }
6622
- },
6623
- "responses": {
6624
- "200": {
6625
- "description": "200 response"
6626
- },
6627
- "default": {
6628
- "description": "Error",
6629
- "content": {
6630
- "application/json": {
6631
- "schema": {
6632
- "$ref": "#/components/schemas/ErrorResponse"
6633
- }
6634
- }
6635
- }
6636
- }
6637
- }
6638
- }
6639
- },
6640
6660
  "/tag/create/global": {
6641
6661
  "post": {
6642
6662
  "requestBody": {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.456",
3
+ "version": "1.0.458",
4
4
  "types": "index.d.ts"
5
5
  }