api.fluff4.me 1.0.1130 → 1.0.1132

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 +24 -18
  2. package/openapi.json +105 -71
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -176,6 +176,24 @@ export interface AuthDeleteBody {
176
176
  id: string
177
177
  }
178
178
 
179
+ export interface AuthServices {
180
+ discord: AuthService
181
+ github: AuthService
182
+ patreon: AuthService
183
+ google: AuthService
184
+ twitch: AuthService
185
+ }
186
+
187
+ export interface AuthService {
188
+ id: string
189
+ disabled?: true | null
190
+ url_begin: string
191
+ url_callback: string
192
+ name: string
193
+ colour: number
194
+ icon: string
195
+ }
196
+
179
197
  export interface AuthSetRequiredCountBody {
180
198
  required_count: number
181
199
  }
@@ -1086,24 +1104,6 @@ export interface EmbedSearch {
1086
1104
  url: string
1087
1105
  }
1088
1106
 
1089
- export interface AuthServices {
1090
- discord: AuthService
1091
- github: AuthService
1092
- patreon: AuthService
1093
- google: AuthService
1094
- twitch: AuthService
1095
- }
1096
-
1097
- export interface AuthService {
1098
- id: string
1099
- disabled?: true | null
1100
- url_begin: string
1101
- url_callback: string
1102
- name: string
1103
- colour: number
1104
- icon: string
1105
- }
1106
-
1107
1107
  export interface SupporterStatus {
1108
1108
  products: MoRProductDisplay[]
1109
1109
  months_remaining: number
@@ -1197,6 +1197,12 @@ export interface Paths {
1197
1197
  search?: undefined
1198
1198
  response: void | ErrorResponse
1199
1199
  },
1200
+ "/v2/auth/services": {
1201
+ method: "get"
1202
+ body?: undefined
1203
+ search?: undefined
1204
+ response: Response<AuthServices> | ErrorResponse
1205
+ },
1200
1206
  "/v2/auth/set-required-count": {
1201
1207
  method: "post"
1202
1208
  body: AuthSetRequiredCountBody
package/openapi.json CHANGED
@@ -1094,6 +1094,77 @@
1094
1094
  "id"
1095
1095
  ]
1096
1096
  },
1097
+ "AuthServices": {
1098
+ "type": "object",
1099
+ "properties": {
1100
+ "discord": {
1101
+ "$ref": "#/components/schema/AuthService"
1102
+ },
1103
+ "github": {
1104
+ "$ref": "#/components/schema/AuthService"
1105
+ },
1106
+ "patreon": {
1107
+ "$ref": "#/components/schema/AuthService"
1108
+ },
1109
+ "google": {
1110
+ "$ref": "#/components/schema/AuthService"
1111
+ },
1112
+ "twitch": {
1113
+ "$ref": "#/components/schema/AuthService"
1114
+ }
1115
+ },
1116
+ "required": [
1117
+ "discord",
1118
+ "github",
1119
+ "patreon",
1120
+ "google",
1121
+ "twitch"
1122
+ ]
1123
+ },
1124
+ "AuthService": {
1125
+ "type": "object",
1126
+ "properties": {
1127
+ "id": {
1128
+ "type": "string"
1129
+ },
1130
+ "disabled": {
1131
+ "anyOf": [
1132
+ {
1133
+ "type": "boolean",
1134
+ "enum": [
1135
+ true
1136
+ ]
1137
+ },
1138
+ {
1139
+ "type": "null"
1140
+ }
1141
+ ]
1142
+ },
1143
+ "url_begin": {
1144
+ "type": "string"
1145
+ },
1146
+ "url_callback": {
1147
+ "type": "string"
1148
+ },
1149
+ "name": {
1150
+ "type": "string"
1151
+ },
1152
+ "colour": {
1153
+ "type": "number"
1154
+ },
1155
+ "icon": {
1156
+ "type": "string"
1157
+ }
1158
+ },
1159
+ "required": [
1160
+ "id",
1161
+ "url_begin",
1162
+ "url_callback",
1163
+ "name",
1164
+ "colour",
1165
+ "icon"
1166
+ ]
1167
+ },
1097
1168
  "AuthSetRequiredCountBody": {
1098
1169
  "type": "object",
1099
1170
  "properties": {
@@ -6518,77 +6589,6 @@
6518
6589
  "url"
6519
6590
  ]
6520
6591
  },
6521
- "AuthServices": {
6522
- "type": "object",
6523
- "properties": {
6524
- "discord": {
6525
- "$ref": "#/components/schema/AuthService"
6526
- },
6527
- "github": {
6528
- "$ref": "#/components/schema/AuthService"
6529
- },
6530
- "patreon": {
6531
- "$ref": "#/components/schema/AuthService"
6532
- },
6533
- "google": {
6534
- "$ref": "#/components/schema/AuthService"
6535
- },
6536
- "twitch": {
6537
- "$ref": "#/components/schema/AuthService"
6538
- }
6539
- },
6540
- "required": [
6541
- "discord",
6542
- "github",
6543
- "patreon",
6544
- "google",
6545
- "twitch"
6546
- ]
6547
- },
6548
- "AuthService": {
6549
- "type": "object",
6550
- "properties": {
6551
- "id": {
6552
- "type": "string"
6553
- },
6554
- "disabled": {
6555
- "anyOf": [
6556
- {
6557
- "type": "boolean",
6558
- "enum": [
6559
- true
6560
- ]
6561
- },
6562
- {
6563
- "type": "null"
6564
- }
6565
- ]
6566
- },
6567
- "url_begin": {
6568
- "type": "string"
6569
- },
6570
- "url_callback": {
6571
- "type": "string"
6572
- },
6573
- "name": {
6574
- "type": "string"
6575
- },
6576
- "colour": {
6577
- "type": "number"
6578
- },
6579
- "icon": {
6580
- "type": "string"
6581
- }
6582
- },
6583
- "required": [
6584
- "id",
6585
- "url_begin",
6586
- "url_callback",
6587
- "name",
6588
- "colour",
6589
- "icon"
6590
- ]
6591
- },
6592
6592
  "SupporterStatus": {
6593
6593
  "type": "object",
6594
6594
  "properties": {
@@ -7017,6 +7017,40 @@
7017
7017
  }
7018
7018
  }
7019
7019
  },
7020
+ "/v2/auth/services": {
7021
+ "get": {
7022
+ "responses": {
7023
+ "200": {
7024
+ "description": "200 response",
7025
+ "content": {
7026
+ "application/json": {
7027
+ "schema": {
7028
+ "type": "object",
7029
+ "properties": {
7030
+ "data": {
7031
+ "$ref": "#/components/schemas/AuthServices"
7032
+ }
7033
+ },
7034
+ "required": [
7035
+ "data"
7036
+ ]
7037
+ }
7038
+ }
7039
+ }
7040
+ },
7041
+ "default": {
7042
+ "description": "Error",
7043
+ "content": {
7044
+ "application/json": {
7045
+ "schema": {
7046
+ "$ref": "#/components/schemas/ErrorResponse"
7047
+ }
7048
+ }
7049
+ }
7050
+ }
7051
+ }
7052
+ }
7053
+ },
7020
7054
  "/v2/auth/set-required-count": {
7021
7055
  "post": {
7022
7056
  "requestBody": {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.1130",
3
+ "version": "1.0.1132",
4
4
  "types": "index.d.ts"
5
5
  }