api.fluff4.me 1.0.456 → 1.0.457

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 +12 -12
  2. package/openapi.json +71 -71
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -272,6 +272,12 @@ export interface ChapterReorderBody {
272
272
  position: "before" | "after"
273
273
  }
274
274
 
275
+ export interface CampaignTierSetBody {
276
+ visibility: "Private" | "Public" | "Patreon"
277
+ tier_id?: string | null
278
+ chapters: string[]
279
+ }
280
+
275
281
  export type Chapters = ChapterLite[]
276
282
 
277
283
  export type Works = Work[]
@@ -369,12 +375,6 @@ export interface Comments {
369
375
  authors: Author[]
370
376
  }
371
377
 
372
- export interface CampaignTierSetBody {
373
- visibility: "Private" | "Public" | "Patreon"
374
- tier_id?: string | null
375
- chapters: string[]
376
- }
377
-
378
378
  export interface Tag {
379
379
  name: string
380
380
  description: TextBody
@@ -736,6 +736,12 @@ export interface Paths {
736
736
  search?: undefined
737
737
  response: void | ErrorResponse
738
738
  },
739
+ "/work/{author}/{work}/chapter/update/visibility": {
740
+ method: "post"
741
+ body: CampaignTierSetBody
742
+ search?: undefined
743
+ response: void | ErrorResponse
744
+ },
739
745
  "/work/{author}/{vanity}/chapters/list": {
740
746
  method: "get"
741
747
  body?: undefined
@@ -1092,12 +1098,6 @@ export interface Paths {
1092
1098
  search?: undefined
1093
1099
  response: Response<PatreonCampaignTier[]> | ErrorResponse
1094
1100
  },
1095
- "/patreon/campaign/tiers/set/{author}/{vanity}": {
1096
- method: "post"
1097
- body: CampaignTierSetBody
1098
- search?: undefined
1099
- response: void | ErrorResponse
1100
- },
1101
1101
  "/tag/create/global": {
1102
1102
  method: "post"
1103
1103
  body: TagCreateGlobal
package/openapi.json CHANGED
@@ -1612,6 +1612,39 @@
1612
1612
  "position"
1613
1613
  ]
1614
1614
  },
1615
+ "CampaignTierSetBody": {
1616
+ "type": "object",
1617
+ "properties": {
1618
+ "visibility": {
1619
+ "type": "string",
1620
+ "enum": [
1621
+ "Private",
1622
+ "Public",
1623
+ "Patreon"
1624
+ ]
1625
+ },
1626
+ "tier_id": {
1627
+ "anyOf": [
1628
+ {
1629
+ "type": "string"
1630
+ },
1631
+ {
1632
+ "type": "null"
1633
+ }
1634
+ ]
1635
+ },
1636
+ "chapters": {
1637
+ "type": "array",
1638
+ "items": {
1639
+ "type": "string"
1640
+ }
1641
+ }
1642
+ },
1643
+ "required": [
1644
+ "visibility",
1645
+ "chapters"
1646
+ ]
1647
+ },
1615
1648
  "Chapters": {
1616
1649
  "type": "array",
1617
1650
  "items": {
@@ -2119,39 +2152,6 @@
2119
2152
  "authors"
2120
2153
  ]
2121
2154
  },
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
2155
  "Tag": {
2156
2156
  "type": "object",
2157
2157
  "properties": {
@@ -4070,6 +4070,44 @@
4070
4070
  }
4071
4071
  }
4072
4072
  },
4073
+ "/work/{author}/{work}/chapter/update/visibility": {
4074
+ "parameters": [
4075
+ {
4076
+ "name": "author",
4077
+ "in": "path"
4078
+ },
4079
+ {
4080
+ "name": "work",
4081
+ "in": "path"
4082
+ }
4083
+ ],
4084
+ "post": {
4085
+ "requestBody": {
4086
+ "content": {
4087
+ "application/json": {
4088
+ "schema": {
4089
+ "$ref": "#/components/schemas/CampaignTierSetBody"
4090
+ }
4091
+ }
4092
+ }
4093
+ },
4094
+ "responses": {
4095
+ "200": {
4096
+ "description": "200 response"
4097
+ },
4098
+ "default": {
4099
+ "description": "Error",
4100
+ "content": {
4101
+ "application/json": {
4102
+ "schema": {
4103
+ "$ref": "#/components/schemas/ErrorResponse"
4104
+ }
4105
+ }
4106
+ }
4107
+ }
4108
+ }
4109
+ }
4110
+ },
4073
4111
  "/work/{author}/{vanity}/chapters/list": {
4074
4112
  "parameters": [
4075
4113
  {
@@ -6599,44 +6637,6 @@
6599
6637
  }
6600
6638
  }
6601
6639
  },
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
6640
  "/tag/create/global": {
6641
6641
  "post": {
6642
6642
  "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.457",
4
4
  "types": "index.d.ts"
5
5
  }