api.fluff4.me 1.0.319 → 1.0.323

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 +19 -23
  2. package/openapi.json +73 -116
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -122,6 +122,7 @@ export interface WorkFull {
122
122
  name: string
123
123
  description: string
124
124
  vanity: string
125
+ author: string
125
126
  status: "Cancelled" | "Hiatus" | "Ongoing" | "Complete"
126
127
  visibility: "Private" | "Public"
127
128
  chapter_count_public: number
@@ -185,6 +186,8 @@ export interface Chapter {
185
186
  view_count: string
186
187
  time_last_update?: string | null
187
188
  time_publish?: string | null
189
+ author: string
190
+ work: string
188
191
  body?: string | null
189
192
  index: number
190
193
  notes_before?: string | null
@@ -235,6 +238,8 @@ export interface ChapterLite {
235
238
  view_count: string
236
239
  time_last_update?: string | null
237
240
  time_publish?: string | null
241
+ author: string
242
+ work: string
238
243
  }
239
244
 
240
245
  export type Works = Work[]
@@ -243,6 +248,7 @@ export interface Work {
243
248
  name: string
244
249
  description: string
245
250
  vanity: string
251
+ author: string
246
252
  status: "Cancelled" | "Hiatus" | "Ongoing" | "Complete"
247
253
  visibility: "Private" | "Public"
248
254
  chapter_count_public: number
@@ -444,7 +450,13 @@ export interface NotificationType {
444
450
  type: string
445
451
  }
446
452
 
447
- export type Notifications = Notification[]
453
+ export interface Notifications {
454
+ notifications: Notification[]
455
+ authors: Author[]
456
+ works: Work[]
457
+ chapters: ChapterLite[]
458
+ comments: CommentResolved[]
459
+ }
448
460
 
449
461
  export interface Notification {
450
462
  id: string
@@ -452,11 +464,11 @@ export interface Notification {
452
464
  created_time: string
453
465
  read: boolean
454
466
  string_128?: string | null
455
- triggered_by?: Author | null
456
- author?: Author | null
457
- work?: Work | null
458
- chapter?: ChapterLite | null
459
- comment?: CommentResolved | null
467
+ triggered_by?: string | null
468
+ author?: string | null
469
+ work?: WorkReference | null
470
+ chapter?: ChapterReference | null
471
+ comment?: string | null
460
472
  }
461
473
 
462
474
  export interface NotificationCount {
@@ -470,26 +482,10 @@ export interface NotificationsBody {
470
482
  }
471
483
 
472
484
  export interface Feed {
473
- works: WorkWithAuthor[]
485
+ works: Work[]
474
486
  authors: Author[]
475
487
  }
476
488
 
477
- export interface WorkWithAuthor {
478
- name: string
479
- description: string
480
- vanity: string
481
- status: "Cancelled" | "Hiatus" | "Ongoing" | "Complete"
482
- visibility: "Private" | "Public"
483
- chapter_count_public: number
484
- chapter_count?: number | null
485
- word_count: number
486
- view_count: string
487
- time_publish?: string | null
488
- time_last_update?: string | null
489
- global_tags?: string[] | null
490
- author?: string | null
491
- }
492
-
493
489
  export interface ErrorResponse {
494
490
  code: number
495
491
  detail?: string | null
package/openapi.json CHANGED
@@ -593,6 +593,9 @@
593
593
  "type": "string",
594
594
  "maxLength": 32
595
595
  },
596
+ "author": {
597
+ "type": "string"
598
+ },
596
599
  "status": {
597
600
  "type": "string",
598
601
  "enum": [
@@ -682,6 +685,7 @@
682
685
  "name",
683
686
  "description",
684
687
  "vanity",
688
+ "author",
685
689
  "status",
686
690
  "visibility",
687
691
  "chapter_count_public",
@@ -1045,6 +1049,12 @@
1045
1049
  }
1046
1050
  ]
1047
1051
  },
1052
+ "author": {
1053
+ "type": "string"
1054
+ },
1055
+ "work": {
1056
+ "type": "string"
1057
+ },
1048
1058
  "body": {
1049
1059
  "anyOf": [
1050
1060
  {
@@ -1157,6 +1167,8 @@
1157
1167
  "visibility",
1158
1168
  "word_count",
1159
1169
  "view_count",
1170
+ "author",
1171
+ "work",
1160
1172
  "index"
1161
1173
  ]
1162
1174
  },
@@ -1418,6 +1430,12 @@
1418
1430
  "type": "null"
1419
1431
  }
1420
1432
  ]
1433
+ },
1434
+ "author": {
1435
+ "type": "string"
1436
+ },
1437
+ "work": {
1438
+ "type": "string"
1421
1439
  }
1422
1440
  },
1423
1441
  "required": [
@@ -1425,7 +1443,9 @@
1425
1443
  "name",
1426
1444
  "visibility",
1427
1445
  "word_count",
1428
- "view_count"
1446
+ "view_count",
1447
+ "author",
1448
+ "work"
1429
1449
  ]
1430
1450
  },
1431
1451
  "Works": {
@@ -1449,6 +1469,9 @@
1449
1469
  "type": "string",
1450
1470
  "maxLength": 32
1451
1471
  },
1472
+ "author": {
1473
+ "type": "string"
1474
+ },
1452
1475
  "status": {
1453
1476
  "type": "string",
1454
1477
  "enum": [
@@ -1522,6 +1545,7 @@
1522
1545
  "name",
1523
1546
  "description",
1524
1547
  "vanity",
1548
+ "author",
1525
1549
  "status",
1526
1550
  "visibility",
1527
1551
  "chapter_count_public",
@@ -2376,10 +2400,46 @@
2376
2400
  ]
2377
2401
  },
2378
2402
  "Notifications": {
2379
- "type": "array",
2380
- "items": {
2381
- "$ref": "#/components/schema/Notification"
2382
- }
2403
+ "type": "object",
2404
+ "properties": {
2405
+ "notifications": {
2406
+ "type": "array",
2407
+ "items": {
2408
+ "$ref": "#/components/schema/Notification"
2409
+ }
2410
+ },
2411
+ "authors": {
2412
+ "type": "array",
2413
+ "items": {
2414
+ "$ref": "#/components/schema/Author"
2415
+ }
2416
+ },
2417
+ "works": {
2418
+ "type": "array",
2419
+ "items": {
2420
+ "$ref": "#/components/schema/Work"
2421
+ }
2422
+ },
2423
+ "chapters": {
2424
+ "type": "array",
2425
+ "items": {
2426
+ "$ref": "#/components/schema/ChapterLite"
2427
+ }
2428
+ },
2429
+ "comments": {
2430
+ "type": "array",
2431
+ "items": {
2432
+ "$ref": "#/components/schema/CommentResolved"
2433
+ }
2434
+ }
2435
+ },
2436
+ "required": [
2437
+ "notifications",
2438
+ "authors",
2439
+ "works",
2440
+ "chapters",
2441
+ "comments"
2442
+ ]
2383
2443
  },
2384
2444
  "Notification": {
2385
2445
  "type": "object",
@@ -2409,7 +2469,7 @@
2409
2469
  "triggered_by": {
2410
2470
  "anyOf": [
2411
2471
  {
2412
- "$ref": "#/components/schema/Author"
2472
+ "type": "string"
2413
2473
  },
2414
2474
  {
2415
2475
  "type": "null"
@@ -2419,7 +2479,7 @@
2419
2479
  "author": {
2420
2480
  "anyOf": [
2421
2481
  {
2422
- "$ref": "#/components/schema/Author"
2482
+ "type": "string"
2423
2483
  },
2424
2484
  {
2425
2485
  "type": "null"
@@ -2429,7 +2489,7 @@
2429
2489
  "work": {
2430
2490
  "anyOf": [
2431
2491
  {
2432
- "$ref": "#/components/schema/Work"
2492
+ "$ref": "#/components/schema/WorkReference"
2433
2493
  },
2434
2494
  {
2435
2495
  "type": "null"
@@ -2439,7 +2499,7 @@
2439
2499
  "chapter": {
2440
2500
  "anyOf": [
2441
2501
  {
2442
- "$ref": "#/components/schema/ChapterLite"
2502
+ "$ref": "#/components/schema/ChapterReference"
2443
2503
  },
2444
2504
  {
2445
2505
  "type": "null"
@@ -2449,7 +2509,9 @@
2449
2509
  "comment": {
2450
2510
  "anyOf": [
2451
2511
  {
2452
- "$ref": "#/components/schema/CommentResolved"
2512
+ "type": "string",
2513
+ "minLength": 36,
2514
+ "maxLength": 36
2453
2515
  },
2454
2516
  {
2455
2517
  "type": "null"
@@ -2503,7 +2565,7 @@
2503
2565
  "works": {
2504
2566
  "type": "array",
2505
2567
  "items": {
2506
- "$ref": "#/components/schema/WorkWithAuthor"
2568
+ "$ref": "#/components/schema/Work"
2507
2569
  }
2508
2570
  },
2509
2571
  "authors": {
@@ -2518,111 +2580,6 @@
2518
2580
  "authors"
2519
2581
  ]
2520
2582
  },
2521
- "WorkWithAuthor": {
2522
- "type": "object",
2523
- "properties": {
2524
- "name": {
2525
- "type": "string",
2526
- "maxLength": 256
2527
- },
2528
- "description": {
2529
- "type": "string",
2530
- "maxLength": 128
2531
- },
2532
- "vanity": {
2533
- "type": "string",
2534
- "maxLength": 32
2535
- },
2536
- "status": {
2537
- "type": "string",
2538
- "enum": [
2539
- "Cancelled",
2540
- "Hiatus",
2541
- "Ongoing",
2542
- "Complete"
2543
- ]
2544
- },
2545
- "visibility": {
2546
- "type": "string",
2547
- "enum": [
2548
- "Private",
2549
- "Public"
2550
- ]
2551
- },
2552
- "chapter_count_public": {
2553
- "type": "number"
2554
- },
2555
- "chapter_count": {
2556
- "anyOf": [
2557
- {
2558
- "type": "number"
2559
- },
2560
- {
2561
- "type": "null"
2562
- }
2563
- ]
2564
- },
2565
- "word_count": {
2566
- "type": "number"
2567
- },
2568
- "view_count": {
2569
- "type": "string"
2570
- },
2571
- "time_publish": {
2572
- "anyOf": [
2573
- {
2574
- "type": "string"
2575
- },
2576
- {
2577
- "type": "null"
2578
- }
2579
- ]
2580
- },
2581
- "time_last_update": {
2582
- "anyOf": [
2583
- {
2584
- "type": "string"
2585
- },
2586
- {
2587
- "type": "null"
2588
- }
2589
- ]
2590
- },
2591
- "global_tags": {
2592
- "anyOf": [
2593
- {
2594
- "type": "array",
2595
- "items": {
2596
- "type": "string"
2597
- }
2598
- },
2599
- {
2600
- "type": "null"
2601
- }
2602
- ]
2603
- },
2604
- "author": {
2605
- "anyOf": [
2606
- {
2607
- "type": "string"
2608
- },
2609
- {
2610
- "type": "null"
2611
- }
2612
- ]
2613
- }
2614
- },
2615
- "required": [
2616
- "name",
2617
- "description",
2618
- "vanity",
2619
- "status",
2620
- "visibility",
2621
- "chapter_count_public",
2622
- "word_count",
2623
- "view_count"
2624
- ]
2625
- },
2626
2583
  "ErrorResponse": {
2627
2584
  "type": "object",
2628
2585
  "properties": {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.319",
3
+ "version": "1.0.323",
4
4
  "types": "index.d.ts"
5
5
  }