api.fluff4.me 1.0.1131 → 1.0.1133

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 +32 -26
  2. package/openapi.json +159 -125
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -914,6 +914,32 @@ export interface HistoryItem {
914
914
  view_time: string
915
915
  }
916
916
 
917
+ export interface SupporterStatus {
918
+ products: MoRProductDisplay[]
919
+ months_remaining: number
920
+ end_time?: string | null
921
+ status?: ("has_active_subscription" | "has_history") | null
922
+ total_paid: number
923
+ patreon_subscriptions: PatreonSubscription[]
924
+ }
925
+
926
+ export interface MoRProductDisplay {
927
+ name: string
928
+ description: string
929
+ price: number
930
+ price_formatted: string
931
+ buy_now_url: string
932
+ }
933
+
934
+ export interface PatreonSubscription {
935
+ status: "active" | "inactive"
936
+ amount: number
937
+ renewal_timestamp?: string | null
938
+ interval: "monthly" | "yearly"
939
+ interval_amount: number
940
+ timestamp: string
941
+ }
942
+
917
943
  export interface ChangelogInsertBody {
918
944
  body: string
919
945
  version: number
@@ -1104,32 +1130,6 @@ export interface EmbedSearch {
1104
1130
  url: string
1105
1131
  }
1106
1132
 
1107
- export interface SupporterStatus {
1108
- products: MoRProductDisplay[]
1109
- months_remaining: number
1110
- end_time?: string | null
1111
- status?: ("has_active_subscription" | "has_history") | null
1112
- total_paid: number
1113
- patreon_subscriptions: PatreonSubscription[]
1114
- }
1115
-
1116
- export interface MoRProductDisplay {
1117
- name: string
1118
- description: string
1119
- price: number
1120
- price_formatted: string
1121
- buy_now_url: string
1122
- }
1123
-
1124
- export interface PatreonSubscription {
1125
- status: "active" | "inactive"
1126
- amount: number
1127
- renewal_timestamp?: string | null
1128
- interval: "monthly" | "yearly"
1129
- interval_amount: number
1130
- timestamp: string
1131
- }
1132
-
1133
1133
  export interface ErrorResponse {
1134
1134
  code: number
1135
1135
  detail?: string | null
@@ -2073,6 +2073,12 @@ export interface Paths {
2073
2073
  search?: undefined
2074
2074
  response: void | ErrorResponse
2075
2075
  },
2076
+ "/v2/supporter/status": {
2077
+ method: "get"
2078
+ body?: undefined
2079
+ search?: undefined
2080
+ response: Response<SupporterStatus> | ErrorResponse
2081
+ },
2076
2082
  "/v2/changelogs/add": {
2077
2083
  method: "post"
2078
2084
  body: ChangelogInsertBody
package/openapi.json CHANGED
@@ -5395,6 +5395,131 @@
5395
5395
  "view_time"
5396
5396
  ]
5397
5397
  },
5398
+ "SupporterStatus": {
5399
+ "type": "object",
5400
+ "properties": {
5401
+ "products": {
5402
+ "type": "array",
5403
+ "items": {
5404
+ "$ref": "#/components/schema/MoRProductDisplay"
5405
+ }
5406
+ },
5407
+ "months_remaining": {
5408
+ "type": "number"
5409
+ },
5410
+ "end_time": {
5411
+ "anyOf": [
5412
+ {
5413
+ "type": "string"
5414
+ },
5415
+ {
5416
+ "type": "null"
5417
+ }
5418
+ ]
5419
+ },
5420
+ "status": {
5421
+ "anyOf": [
5422
+ {
5423
+ "type": "string",
5424
+ "enum": [
5425
+ "has_active_subscription",
5426
+ "has_history"
5427
+ ]
5428
+ },
5429
+ {
5430
+ "type": "null"
5431
+ }
5432
+ ]
5433
+ },
5434
+ "total_paid": {
5435
+ "type": "number"
5436
+ },
5437
+ "patreon_subscriptions": {
5438
+ "type": "array",
5439
+ "items": {
5440
+ "$ref": "#/components/schema/PatreonSubscription"
5441
+ }
5442
+ }
5443
+ },
5444
+ "required": [
5445
+ "products",
5446
+ "months_remaining",
5447
+ "total_paid",
5448
+ "patreon_subscriptions"
5449
+ ]
5450
+ },
5451
+ "MoRProductDisplay": {
5452
+ "type": "object",
5453
+ "properties": {
5454
+ "name": {
5455
+ "type": "string"
5456
+ },
5457
+ "description": {
5458
+ "type": "string"
5459
+ },
5460
+ "price": {
5461
+ "type": "number"
5462
+ },
5463
+ "price_formatted": {
5464
+ "type": "string"
5465
+ },
5466
+ "buy_now_url": {
5467
+ "type": "string"
5468
+ }
5469
+ },
5470
+ "required": [
5471
+ "name",
5472
+ "description",
5473
+ "price",
5474
+ "price_formatted",
5475
+ "buy_now_url"
5476
+ ]
5477
+ },
5478
+ "PatreonSubscription": {
5479
+ "type": "object",
5480
+ "properties": {
5481
+ "status": {
5482
+ "type": "string",
5483
+ "enum": [
5484
+ "active",
5485
+ "inactive"
5486
+ ]
5487
+ },
5488
+ "amount": {
5489
+ "type": "number"
5490
+ },
5491
+ "renewal_timestamp": {
5492
+ "anyOf": [
5493
+ {
5494
+ "type": "string"
5495
+ },
5496
+ {
5497
+ "type": "null"
5498
+ }
5499
+ ]
5500
+ },
5501
+ "interval": {
5502
+ "type": "string",
5503
+ "enum": [
5504
+ "monthly",
5505
+ "yearly"
5506
+ ]
5507
+ },
5508
+ "interval_amount": {
5509
+ "type": "number"
5510
+ },
5511
+ "timestamp": {
5512
+ "type": "string"
5513
+ }
5514
+ },
5515
+ "required": [
5516
+ "status",
5517
+ "amount",
5518
+ "interval",
5519
+ "interval_amount",
5520
+ "timestamp"
5521
+ ]
5522
+ },
5398
5523
  "ChangelogInsertBody": {
5399
5524
  "type": "object",
5400
5525
  "properties": {
@@ -6589,131 +6714,6 @@
6589
6714
  "url"
6590
6715
  ]
6591
6716
  },
6592
- "SupporterStatus": {
6593
- "type": "object",
6594
- "properties": {
6595
- "products": {
6596
- "type": "array",
6597
- "items": {
6598
- "$ref": "#/components/schema/MoRProductDisplay"
6599
- }
6600
- },
6601
- "months_remaining": {
6602
- "type": "number"
6603
- },
6604
- "end_time": {
6605
- "anyOf": [
6606
- {
6607
- "type": "string"
6608
- },
6609
- {
6610
- "type": "null"
6611
- }
6612
- ]
6613
- },
6614
- "status": {
6615
- "anyOf": [
6616
- {
6617
- "type": "string",
6618
- "enum": [
6619
- "has_active_subscription",
6620
- "has_history"
6621
- ]
6622
- },
6623
- {
6624
- "type": "null"
6625
- }
6626
- ]
6627
- },
6628
- "total_paid": {
6629
- "type": "number"
6630
- },
6631
- "patreon_subscriptions": {
6632
- "type": "array",
6633
- "items": {
6634
- "$ref": "#/components/schema/PatreonSubscription"
6635
- }
6636
- }
6637
- },
6638
- "required": [
6639
- "products",
6640
- "months_remaining",
6641
- "total_paid",
6642
- "patreon_subscriptions"
6643
- ]
6644
- },
6645
- "MoRProductDisplay": {
6646
- "type": "object",
6647
- "properties": {
6648
- "name": {
6649
- "type": "string"
6650
- },
6651
- "description": {
6652
- "type": "string"
6653
- },
6654
- "price": {
6655
- "type": "number"
6656
- },
6657
- "price_formatted": {
6658
- "type": "string"
6659
- },
6660
- "buy_now_url": {
6661
- "type": "string"
6662
- }
6663
- },
6664
- "required": [
6665
- "name",
6666
- "description",
6667
- "price",
6668
- "price_formatted",
6669
- "buy_now_url"
6670
- ]
6671
- },
6672
- "PatreonSubscription": {
6673
- "type": "object",
6674
- "properties": {
6675
- "status": {
6676
- "type": "string",
6677
- "enum": [
6678
- "active",
6679
- "inactive"
6680
- ]
6681
- },
6682
- "amount": {
6683
- "type": "number"
6684
- },
6685
- "renewal_timestamp": {
6686
- "anyOf": [
6687
- {
6688
- "type": "string"
6689
- },
6690
- {
6691
- "type": "null"
6692
- }
6693
- ]
6694
- },
6695
- "interval": {
6696
- "type": "string",
6697
- "enum": [
6698
- "monthly",
6699
- "yearly"
6700
- ]
6701
- },
6702
- "interval_amount": {
6703
- "type": "number"
6704
- },
6705
- "timestamp": {
6706
- "type": "string"
6707
- }
6708
- },
6709
- "required": [
6710
- "status",
6711
- "amount",
6712
- "interval",
6713
- "interval_amount",
6714
- "timestamp"
6715
- ]
6716
- },
6717
6717
  "ErrorResponse": {
6718
6718
  "type": "object",
6719
6719
  "properties": {
@@ -14038,6 +14038,40 @@
14038
14038
  }
14039
14039
  }
14040
14040
  },
14041
+ "/v2/supporter/status": {
14042
+ "get": {
14043
+ "responses": {
14044
+ "200": {
14045
+ "description": "200 response",
14046
+ "content": {
14047
+ "application/json": {
14048
+ "schema": {
14049
+ "type": "object",
14050
+ "properties": {
14051
+ "data": {
14052
+ "$ref": "#/components/schemas/SupporterStatus"
14053
+ }
14054
+ },
14055
+ "required": [
14056
+ "data"
14057
+ ]
14058
+ }
14059
+ }
14060
+ }
14061
+ },
14062
+ "default": {
14063
+ "description": "Error",
14064
+ "content": {
14065
+ "application/json": {
14066
+ "schema": {
14067
+ "$ref": "#/components/schemas/ErrorResponse"
14068
+ }
14069
+ }
14070
+ }
14071
+ }
14072
+ }
14073
+ }
14074
+ },
14041
14075
  "/v2/changelogs/add": {
14042
14076
  "post": {
14043
14077
  "requestBody": {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "api.fluff4.me",
3
- "version": "1.0.1131",
3
+ "version": "1.0.1133",
4
4
  "types": "index.d.ts"
5
5
  }