api.fluff4.me 1.0.1098 → 1.0.1100

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 +30 -23
  2. package/openapi.json +151 -64
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -67,12 +67,7 @@ export interface AuthorSelf {
67
67
  supporter_months_supported: number
68
68
  comments_privated?: true | null
69
69
  description: TextBody
70
- license?:
71
- | {
72
- name: string
73
- link: string
74
- }
75
- | null
70
+ license: License
76
71
  authorisations?: Authorisation[] | null
77
72
  patreon_campaign?: PatreonCampaign | null
78
73
  patreon_patron?: Authorisation | null
@@ -91,6 +86,11 @@ export interface TextBody {
91
86
  mentions?: AuthorMetadata[] | null
92
87
  }
93
88
 
89
+ export interface License {
90
+ name: string
91
+ link: string
92
+ }
93
+
94
94
  export interface PatreonCampaign {
95
95
  display_name: string
96
96
  service: string
@@ -119,7 +119,7 @@ export interface WorkMetadata {
119
119
  time_last_update?: string | null
120
120
  global_tags?: string[] | null
121
121
  card_colours?: number[] | null
122
- license?: WorkLicense | null
122
+ license?: License | null
123
123
  patreon?: PatreonRestriction | null
124
124
  lock_reason?: string | null
125
125
  frequency?: Frequency | null
@@ -132,11 +132,6 @@ export type WorkStatus = "Cancelled" | "Hiatus" | "Ongoing" | "Complete"
132
132
 
133
133
  export type WorkVisibility = "Private" | "Public" | "Patreon"
134
134
 
135
- export interface WorkLicense {
136
- name: string
137
- link: string
138
- }
139
-
140
135
  export interface PatreonRestriction {
141
136
  campaign: PatreonCampaignMetadata
142
137
  tiers: PatreonCampaignTier[]
@@ -225,7 +220,7 @@ export interface AuthorCreateBody {
225
220
  username_colours?: number[] | null
226
221
  card_colours?: number[] | null
227
222
  age: "sixteen_plus" | "eighteen_plus"
228
- license?: (WorkLicense | false) | null
223
+ license?: (License | false) | null
229
224
  comments_privated?: boolean | null
230
225
  }
231
226
 
@@ -242,12 +237,7 @@ export interface Author {
242
237
  supporter_months_supported: number
243
238
  comments_privated?: true | null
244
239
  description: TextBody
245
- license?:
246
- | {
247
- name: string
248
- link: string
249
- }
250
- | null
240
+ license: License
251
241
  }
252
242
 
253
243
  export interface AuthorInsertBody {
@@ -264,7 +254,7 @@ export interface AuthorInsertBody {
264
254
  username_colours?: number[] | null
265
255
  card_colours?: number[] | null
266
256
  age: "sixteen_plus" | "eighteen_plus"
267
- license?: (WorkLicense | false) | null
257
+ license?: (License | false) | null
268
258
  comments_privated?: boolean | null
269
259
  }
270
260
 
@@ -276,6 +266,11 @@ export interface AuthorResolveSearch {
276
266
  authors: string[]
277
267
  }
278
268
 
269
+ export interface AuthorResolveFullResponse {
270
+ authors: Author[]
271
+ mentions: AuthorMetadata[]
272
+ }
273
+
279
274
  export interface Comment {
280
275
  comment_id: string
281
276
  parent_id?: string | null
@@ -400,7 +395,7 @@ export interface Work {
400
395
  time_last_update?: string | null
401
396
  global_tags?: string[] | null
402
397
  card_colours?: number[] | null
403
- license?: WorkLicense | null
398
+ license?: License | null
404
399
  patreon?: PatreonRestriction | null
405
400
  lock_reason?: string | null
406
401
  frequency?: Frequency | null
@@ -426,7 +421,7 @@ export interface WorkCreateBody {
426
421
  feedback_preference_critique?: boolean | null
427
422
  feedback_preference_dont_hold_back?: boolean | null
428
423
  feedback_preference_typos?: boolean | null
429
- license?: (WorkLicense | false) | null
424
+ license?: (License | false) | null
430
425
  card_colours?: number[] | null
431
426
  tier_ids?: string[] | null
432
427
  }
@@ -459,7 +454,7 @@ export interface WorkUpdateBody {
459
454
  feedback_preference_dont_hold_back?: boolean | null
460
455
  feedback_preference_typos?: boolean | null
461
456
  card_colours?: number[] | null
462
- license?: (WorkLicense | false) | null
457
+ license?: (License | false) | null
463
458
  tier_ids?: string[] | null
464
459
  }
465
460
 
@@ -1289,12 +1284,24 @@ export interface Paths {
1289
1284
  search: AuthorResolveSearch
1290
1285
  response: Response<AuthorMetadata[]> | ErrorResponse
1291
1286
  },
1287
+ "/authors/resolve/full": {
1288
+ method: "get"
1289
+ body?: undefined
1290
+ search: AuthorResolveSearch
1291
+ response: Response<AuthorResolveFullResponse> | ErrorResponse
1292
+ },
1292
1293
  "/v2/author/resolve": {
1293
1294
  method: "get"
1294
1295
  body?: undefined
1295
1296
  search: AuthorResolveSearch
1296
1297
  response: Response<AuthorMetadata[]> | ErrorResponse
1297
1298
  },
1299
+ "/v2/author/resolve/full": {
1300
+ method: "get"
1301
+ body?: undefined
1302
+ search: AuthorResolveSearch
1303
+ response: Response<AuthorResolveFullResponse> | ErrorResponse
1304
+ },
1298
1305
  "/v2/author/update-settings": {
1299
1306
  method: "post"
1300
1307
  body: AuthorUpdateSettingsBody
package/openapi.json CHANGED
@@ -301,26 +301,7 @@
301
301
  "$ref": "#/components/schema/TextBody"
302
302
  },
303
303
  "license": {
304
- "anyOf": [
305
- {
306
- "type": "object",
307
- "properties": {
308
- "name": {
309
- "type": "string"
310
- },
311
- "link": {
312
- "type": "string"
313
- }
314
- },
315
- "required": [
316
- "name",
317
- "link"
318
- ]
319
- },
320
- {
321
- "type": "null"
322
- }
323
- ]
304
+ "$ref": "#/components/schema/License"
324
305
  },
325
306
  "authorisations": {
326
307
  "anyOf": [
@@ -555,6 +536,7 @@
555
536
  "vanity",
556
537
  "supporter_months_supported",
557
538
  "description",
539
+ "license",
558
540
  "age"
559
541
  ]
560
542
  },
@@ -582,6 +564,23 @@
582
564
  "body"
583
565
  ]
584
566
  },
567
+ "License": {
568
+ "type": "object",
569
+ "properties": {
570
+ "name": {
571
+ "type": "string",
572
+ "maxLength": 64
573
+ },
574
+ "link": {
575
+ "type": "string",
576
+ "maxLength": 128
577
+ }
578
+ },
579
+ "required": [
580
+ "name",
581
+ "link"
582
+ ]
583
+ },
585
584
  "PatreonCampaign": {
586
585
  "type": "object",
587
586
  "properties": {
@@ -721,7 +720,7 @@
721
720
  "license": {
722
721
  "anyOf": [
723
722
  {
724
- "$ref": "#/components/schema/WorkLicense"
723
+ "$ref": "#/components/schema/License"
725
724
  },
726
725
  {
727
726
  "type": "null"
@@ -805,23 +804,6 @@
805
804
  "Patreon"
806
805
  ]
807
806
  },
808
- "WorkLicense": {
809
- "type": "object",
810
- "properties": {
811
- "name": {
812
- "type": "string",
813
- "maxLength": 64
814
- },
815
- "link": {
816
- "type": "string",
817
- "maxLength": 128
818
- }
819
- },
820
- "required": [
821
- "name",
822
- "link"
823
- ]
824
- },
825
807
  "PatreonRestriction": {
826
808
  "type": "object",
827
809
  "properties": {
@@ -1347,7 +1329,7 @@
1347
1329
  {
1348
1330
  "anyOf": [
1349
1331
  {
1350
- "$ref": "#/components/schema/WorkLicense"
1332
+ "$ref": "#/components/schema/License"
1351
1333
  },
1352
1334
  {
1353
1335
  "type": "boolean",
@@ -1448,26 +1430,7 @@
1448
1430
  "$ref": "#/components/schema/TextBody"
1449
1431
  },
1450
1432
  "license": {
1451
- "anyOf": [
1452
- {
1453
- "type": "object",
1454
- "properties": {
1455
- "name": {
1456
- "type": "string"
1457
- },
1458
- "link": {
1459
- "type": "string"
1460
- }
1461
- },
1462
- "required": [
1463
- "name",
1464
- "link"
1465
- ]
1466
- },
1467
- {
1468
- "type": "null"
1469
- }
1470
- ]
1433
+ "$ref": "#/components/schema/License"
1471
1434
  }
1472
1435
  },
1473
1436
  "required": [
@@ -1479,7 +1442,8 @@
1479
1442
  "work_count",
1480
1443
  "vanity",
1481
1444
  "supporter_months_supported",
1482
- "description"
1445
+ "description",
1446
+ "license"
1483
1447
  ]
1484
1448
  },
1485
1449
  "AuthorInsertBody": {
@@ -1630,7 +1594,7 @@
1630
1594
  {
1631
1595
  "anyOf": [
1632
1596
  {
1633
- "$ref": "#/components/schema/WorkLicense"
1597
+ "$ref": "#/components/schema/License"
1634
1598
  },
1635
1599
  {
1636
1600
  "type": "boolean",
@@ -1686,6 +1650,27 @@
1686
1650
  "authors"
1687
1651
  ]
1688
1652
  },
1653
+ "AuthorResolveFullResponse": {
1654
+ "type": "object",
1655
+ "properties": {
1656
+ "authors": {
1657
+ "type": "array",
1658
+ "items": {
1659
+ "$ref": "#/components/schema/Author"
1660
+ }
1661
+ },
1662
+ "mentions": {
1663
+ "type": "array",
1664
+ "items": {
1665
+ "$ref": "#/components/schema/AuthorMetadata"
1666
+ }
1667
+ }
1668
+ },
1669
+ "required": [
1670
+ "authors",
1671
+ "mentions"
1672
+ ]
1673
+ },
1689
1674
  "Comment": {
1690
1675
  "type": "object",
1691
1676
  "properties": {
@@ -2314,7 +2299,7 @@
2314
2299
  "license": {
2315
2300
  "anyOf": [
2316
2301
  {
2317
- "$ref": "#/components/schema/WorkLicense"
2302
+ "$ref": "#/components/schema/License"
2318
2303
  },
2319
2304
  {
2320
2305
  "type": "null"
@@ -2526,7 +2511,7 @@
2526
2511
  {
2527
2512
  "anyOf": [
2528
2513
  {
2529
- "$ref": "#/components/schema/WorkLicense"
2514
+ "$ref": "#/components/schema/License"
2530
2515
  },
2531
2516
  {
2532
2517
  "type": "boolean",
@@ -2769,7 +2754,7 @@
2769
2754
  {
2770
2755
  "anyOf": [
2771
2756
  {
2772
- "$ref": "#/components/schema/WorkLicense"
2757
+ "$ref": "#/components/schema/License"
2773
2758
  },
2774
2759
  {
2775
2760
  "type": "boolean",
@@ -7408,6 +7393,57 @@
7408
7393
  }
7409
7394
  }
7410
7395
  },
7396
+ "/authors/resolve/full": {
7397
+ "get": {
7398
+ "parameters": [
7399
+ {
7400
+ "name": "authors",
7401
+ "in": "query",
7402
+ "required": true,
7403
+ "content": {
7404
+ "application/json": {
7405
+ "schema": {
7406
+ "type": "array",
7407
+ "items": {
7408
+ "type": "string"
7409
+ }
7410
+ }
7411
+ }
7412
+ }
7413
+ }
7414
+ ],
7415
+ "responses": {
7416
+ "200": {
7417
+ "description": "200 response",
7418
+ "content": {
7419
+ "application/json": {
7420
+ "schema": {
7421
+ "type": "object",
7422
+ "properties": {
7423
+ "data": {
7424
+ "$ref": "#/components/schemas/AuthorResolveFullResponse"
7425
+ }
7426
+ },
7427
+ "required": [
7428
+ "data"
7429
+ ]
7430
+ }
7431
+ }
7432
+ }
7433
+ },
7434
+ "default": {
7435
+ "description": "Error",
7436
+ "content": {
7437
+ "application/json": {
7438
+ "schema": {
7439
+ "$ref": "#/components/schemas/ErrorResponse"
7440
+ }
7441
+ }
7442
+ }
7443
+ }
7444
+ }
7445
+ }
7446
+ },
7411
7447
  "/v2/author/resolve": {
7412
7448
  "get": {
7413
7449
  "parameters": [
@@ -7462,6 +7498,57 @@
7462
7498
  }
7463
7499
  }
7464
7500
  },
7501
+ "/v2/author/resolve/full": {
7502
+ "get": {
7503
+ "parameters": [
7504
+ {
7505
+ "name": "authors",
7506
+ "in": "query",
7507
+ "required": true,
7508
+ "content": {
7509
+ "application/json": {
7510
+ "schema": {
7511
+ "type": "array",
7512
+ "items": {
7513
+ "type": "string"
7514
+ }
7515
+ }
7516
+ }
7517
+ }
7518
+ }
7519
+ ],
7520
+ "responses": {
7521
+ "200": {
7522
+ "description": "200 response",
7523
+ "content": {
7524
+ "application/json": {
7525
+ "schema": {
7526
+ "type": "object",
7527
+ "properties": {
7528
+ "data": {
7529
+ "$ref": "#/components/schemas/AuthorResolveFullResponse"
7530
+ }
7531
+ },
7532
+ "required": [
7533
+ "data"
7534
+ ]
7535
+ }
7536
+ }
7537
+ }
7538
+ },
7539
+ "default": {
7540
+ "description": "Error",
7541
+ "content": {
7542
+ "application/json": {
7543
+ "schema": {
7544
+ "$ref": "#/components/schemas/ErrorResponse"
7545
+ }
7546
+ }
7547
+ }
7548
+ }
7549
+ }
7550
+ }
7551
+ },
7465
7552
  "/v2/author/update-settings": {
7466
7553
  "post": {
7467
7554
  "requestBody": {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.1098",
3
+ "version": "1.0.1100",
4
4
  "types": "index.d.ts"
5
5
  }