quantix-mcp 0.4.3 → 0.4.4
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.
- package/.github/workflows/publish.yaml +2 -1
- package/dist/types/schemas.js +15 -15
- package/dist/types/schemas.js.map +1 -1
- package/openapi.yaml +1001 -311
- package/package.json +1 -1
- package/src/types/schemas.ts +15 -15
package/openapi.yaml
CHANGED
|
@@ -9,7 +9,7 @@ paths:
|
|
|
9
9
|
description: ''
|
|
10
10
|
tags:
|
|
11
11
|
- App
|
|
12
|
-
/
|
|
12
|
+
/subscriptions:
|
|
13
13
|
post:
|
|
14
14
|
operationId: create
|
|
15
15
|
parameters:
|
|
@@ -24,28 +24,41 @@ paths:
|
|
|
24
24
|
content:
|
|
25
25
|
application/json:
|
|
26
26
|
schema:
|
|
27
|
-
$ref: '#/components/schemas/
|
|
27
|
+
$ref: '#/components/schemas/CreateSubscriptionDto'
|
|
28
28
|
responses:
|
|
29
29
|
'201':
|
|
30
|
-
description:
|
|
30
|
+
description: Subscription created successfully.
|
|
31
31
|
'400':
|
|
32
32
|
description: Invalid input.
|
|
33
|
+
'404':
|
|
34
|
+
description: Credit card not found.
|
|
33
35
|
security: &ref_1
|
|
34
36
|
- bearer: []
|
|
35
|
-
summary: Create a new
|
|
37
|
+
summary: Create a new subscription
|
|
36
38
|
tags: &ref_2
|
|
37
|
-
-
|
|
39
|
+
- subscriptions
|
|
38
40
|
get:
|
|
39
41
|
operationId: findAll
|
|
40
42
|
parameters:
|
|
41
43
|
- *ref_0
|
|
42
44
|
responses:
|
|
43
45
|
'200':
|
|
44
|
-
description: List of
|
|
46
|
+
description: List of subscriptions.
|
|
45
47
|
security: *ref_1
|
|
46
|
-
summary: Get all
|
|
48
|
+
summary: Get all subscriptions
|
|
47
49
|
tags: *ref_2
|
|
48
|
-
/
|
|
50
|
+
/subscriptions/active:
|
|
51
|
+
get:
|
|
52
|
+
operationId: findActive
|
|
53
|
+
parameters:
|
|
54
|
+
- *ref_0
|
|
55
|
+
responses:
|
|
56
|
+
'200':
|
|
57
|
+
description: List of active subscriptions.
|
|
58
|
+
security: *ref_1
|
|
59
|
+
summary: Get all active subscriptions
|
|
60
|
+
tags: *ref_2
|
|
61
|
+
/subscriptions/{id}:
|
|
49
62
|
get:
|
|
50
63
|
operationId: findOne
|
|
51
64
|
parameters:
|
|
@@ -57,11 +70,11 @@ paths:
|
|
|
57
70
|
type: string
|
|
58
71
|
responses:
|
|
59
72
|
'200':
|
|
60
|
-
description:
|
|
73
|
+
description: Subscription found.
|
|
61
74
|
'404':
|
|
62
|
-
description:
|
|
75
|
+
description: Subscription not found.
|
|
63
76
|
security: *ref_1
|
|
64
|
-
summary: Get a
|
|
77
|
+
summary: Get a subscription by ID
|
|
65
78
|
tags: *ref_2
|
|
66
79
|
patch:
|
|
67
80
|
operationId: update
|
|
@@ -77,14 +90,14 @@ paths:
|
|
|
77
90
|
content:
|
|
78
91
|
application/json:
|
|
79
92
|
schema:
|
|
80
|
-
$ref: '#/components/schemas/
|
|
93
|
+
$ref: '#/components/schemas/UpdateSubscriptionDto'
|
|
81
94
|
responses:
|
|
82
95
|
'200':
|
|
83
|
-
description:
|
|
96
|
+
description: Subscription updated successfully.
|
|
84
97
|
'404':
|
|
85
|
-
description:
|
|
98
|
+
description: Subscription or credit card not found.
|
|
86
99
|
security: *ref_1
|
|
87
|
-
summary: Update a
|
|
100
|
+
summary: Update a subscription
|
|
88
101
|
tags: *ref_2
|
|
89
102
|
delete:
|
|
90
103
|
operationId: remove
|
|
@@ -97,11 +110,47 @@ paths:
|
|
|
97
110
|
type: string
|
|
98
111
|
responses:
|
|
99
112
|
'200':
|
|
100
|
-
description:
|
|
113
|
+
description: Subscription deactivated successfully.
|
|
101
114
|
'404':
|
|
102
|
-
description:
|
|
115
|
+
description: Subscription not found.
|
|
103
116
|
security: *ref_1
|
|
104
|
-
summary:
|
|
117
|
+
summary: Deactivate a subscription (soft delete)
|
|
118
|
+
tags: *ref_2
|
|
119
|
+
/subscriptions/{id}/permanent:
|
|
120
|
+
delete:
|
|
121
|
+
operationId: hardDelete
|
|
122
|
+
parameters:
|
|
123
|
+
- *ref_0
|
|
124
|
+
- name: id
|
|
125
|
+
required: true
|
|
126
|
+
in: path
|
|
127
|
+
schema:
|
|
128
|
+
type: string
|
|
129
|
+
responses:
|
|
130
|
+
'200':
|
|
131
|
+
description: Subscription deleted permanently.
|
|
132
|
+
'404':
|
|
133
|
+
description: Subscription not found.
|
|
134
|
+
security: *ref_1
|
|
135
|
+
summary: Permanently delete a subscription
|
|
136
|
+
tags: *ref_2
|
|
137
|
+
/subscriptions/{id}/reactivate:
|
|
138
|
+
patch:
|
|
139
|
+
operationId: reactivate
|
|
140
|
+
parameters:
|
|
141
|
+
- *ref_0
|
|
142
|
+
- name: id
|
|
143
|
+
required: true
|
|
144
|
+
in: path
|
|
145
|
+
schema:
|
|
146
|
+
type: string
|
|
147
|
+
responses:
|
|
148
|
+
'200':
|
|
149
|
+
description: Subscription reactivated successfully.
|
|
150
|
+
'404':
|
|
151
|
+
description: Subscription not found.
|
|
152
|
+
security: *ref_1
|
|
153
|
+
summary: Reactivate a deactivated subscription
|
|
105
154
|
tags: *ref_2
|
|
106
155
|
/auth/register:
|
|
107
156
|
post:
|
|
@@ -266,11 +315,168 @@ paths:
|
|
|
266
315
|
- bearer: []
|
|
267
316
|
summary: Get current user profile
|
|
268
317
|
tags: *ref_3
|
|
318
|
+
/dev/notifications/trigger/{event}:
|
|
319
|
+
get:
|
|
320
|
+
operationId: trigger
|
|
321
|
+
parameters:
|
|
322
|
+
- name: event
|
|
323
|
+
required: true
|
|
324
|
+
in: path
|
|
325
|
+
schema:
|
|
326
|
+
type: string
|
|
327
|
+
- name: to
|
|
328
|
+
required: true
|
|
329
|
+
in: query
|
|
330
|
+
schema:
|
|
331
|
+
type: string
|
|
332
|
+
responses:
|
|
333
|
+
'200':
|
|
334
|
+
description: ''
|
|
335
|
+
tags:
|
|
336
|
+
- NotificationsSandbox
|
|
337
|
+
/chat/message:
|
|
338
|
+
post:
|
|
339
|
+
operationId: handleMessage
|
|
340
|
+
parameters: []
|
|
341
|
+
requestBody:
|
|
342
|
+
required: true
|
|
343
|
+
content:
|
|
344
|
+
application/json:
|
|
345
|
+
schema:
|
|
346
|
+
$ref: '#/components/schemas/SendMessageDto'
|
|
347
|
+
responses:
|
|
348
|
+
'202':
|
|
349
|
+
description: ''
|
|
350
|
+
tags: &ref_4
|
|
351
|
+
- Chat
|
|
352
|
+
/chat/sync:
|
|
353
|
+
get:
|
|
354
|
+
operationId: getHistory
|
|
355
|
+
parameters:
|
|
356
|
+
- name: limit
|
|
357
|
+
required: true
|
|
358
|
+
in: query
|
|
359
|
+
schema:
|
|
360
|
+
type: number
|
|
361
|
+
responses:
|
|
362
|
+
'200':
|
|
363
|
+
description: ''
|
|
364
|
+
tags: *ref_4
|
|
365
|
+
/chat/unread-count:
|
|
366
|
+
get:
|
|
367
|
+
operationId: getUnreadCount
|
|
368
|
+
parameters: []
|
|
369
|
+
responses:
|
|
370
|
+
'200':
|
|
371
|
+
description: ''
|
|
372
|
+
tags: *ref_4
|
|
373
|
+
/chat/mark-as-read:
|
|
374
|
+
post:
|
|
375
|
+
operationId: markAsRead
|
|
376
|
+
parameters: []
|
|
377
|
+
responses:
|
|
378
|
+
'201':
|
|
379
|
+
description: ''
|
|
380
|
+
tags: *ref_4
|
|
381
|
+
/categories:
|
|
382
|
+
post:
|
|
383
|
+
operationId: create
|
|
384
|
+
parameters:
|
|
385
|
+
- &ref_5
|
|
386
|
+
name: x-api-key
|
|
387
|
+
in: header
|
|
388
|
+
required: false
|
|
389
|
+
schema:
|
|
390
|
+
type: string
|
|
391
|
+
requestBody:
|
|
392
|
+
required: true
|
|
393
|
+
content:
|
|
394
|
+
application/json:
|
|
395
|
+
schema:
|
|
396
|
+
$ref: '#/components/schemas/CreateCategoryDto'
|
|
397
|
+
responses:
|
|
398
|
+
'201':
|
|
399
|
+
description: Category created successfully.
|
|
400
|
+
'400':
|
|
401
|
+
description: Invalid input.
|
|
402
|
+
security: &ref_6
|
|
403
|
+
- bearer: []
|
|
404
|
+
summary: Create a new category
|
|
405
|
+
tags: &ref_7
|
|
406
|
+
- categories
|
|
407
|
+
get:
|
|
408
|
+
operationId: findAll
|
|
409
|
+
parameters:
|
|
410
|
+
- *ref_5
|
|
411
|
+
responses:
|
|
412
|
+
'200':
|
|
413
|
+
description: List of categories.
|
|
414
|
+
security: *ref_6
|
|
415
|
+
summary: Get all categories
|
|
416
|
+
tags: *ref_7
|
|
417
|
+
/categories/{id}:
|
|
418
|
+
get:
|
|
419
|
+
operationId: findOne
|
|
420
|
+
parameters:
|
|
421
|
+
- *ref_5
|
|
422
|
+
- name: id
|
|
423
|
+
required: true
|
|
424
|
+
in: path
|
|
425
|
+
schema:
|
|
426
|
+
type: string
|
|
427
|
+
responses:
|
|
428
|
+
'200':
|
|
429
|
+
description: Category found.
|
|
430
|
+
'404':
|
|
431
|
+
description: Category not found.
|
|
432
|
+
security: *ref_6
|
|
433
|
+
summary: Get a category by ID
|
|
434
|
+
tags: *ref_7
|
|
435
|
+
patch:
|
|
436
|
+
operationId: update
|
|
437
|
+
parameters:
|
|
438
|
+
- *ref_5
|
|
439
|
+
- name: id
|
|
440
|
+
required: true
|
|
441
|
+
in: path
|
|
442
|
+
schema:
|
|
443
|
+
type: string
|
|
444
|
+
requestBody:
|
|
445
|
+
required: true
|
|
446
|
+
content:
|
|
447
|
+
application/json:
|
|
448
|
+
schema:
|
|
449
|
+
$ref: '#/components/schemas/UpdateCategoryDto'
|
|
450
|
+
responses:
|
|
451
|
+
'200':
|
|
452
|
+
description: Category updated successfully.
|
|
453
|
+
'404':
|
|
454
|
+
description: Category not found.
|
|
455
|
+
security: *ref_6
|
|
456
|
+
summary: Update a category
|
|
457
|
+
tags: *ref_7
|
|
458
|
+
delete:
|
|
459
|
+
operationId: remove
|
|
460
|
+
parameters:
|
|
461
|
+
- *ref_5
|
|
462
|
+
- name: id
|
|
463
|
+
required: true
|
|
464
|
+
in: path
|
|
465
|
+
schema:
|
|
466
|
+
type: string
|
|
467
|
+
responses:
|
|
468
|
+
'200':
|
|
469
|
+
description: Category deleted successfully.
|
|
470
|
+
'404':
|
|
471
|
+
description: Category not found.
|
|
472
|
+
security: *ref_6
|
|
473
|
+
summary: Delete a category
|
|
474
|
+
tags: *ref_7
|
|
269
475
|
/transactions:
|
|
270
476
|
post:
|
|
271
477
|
operationId: create
|
|
272
478
|
parameters:
|
|
273
|
-
- &
|
|
479
|
+
- &ref_8
|
|
274
480
|
name: x-api-key
|
|
275
481
|
in: header
|
|
276
482
|
required: false
|
|
@@ -287,15 +493,15 @@ paths:
|
|
|
287
493
|
description: Transaction created successfully.
|
|
288
494
|
'400':
|
|
289
495
|
description: Invalid input.
|
|
290
|
-
security: &
|
|
496
|
+
security: &ref_9
|
|
291
497
|
- bearer: []
|
|
292
498
|
summary: Create a new transaction
|
|
293
|
-
tags: &
|
|
499
|
+
tags: &ref_10
|
|
294
500
|
- transactions
|
|
295
501
|
get:
|
|
296
502
|
operationId: findAll
|
|
297
503
|
parameters:
|
|
298
|
-
- *
|
|
504
|
+
- *ref_8
|
|
299
505
|
- name: month
|
|
300
506
|
required: false
|
|
301
507
|
in: query
|
|
@@ -364,14 +570,14 @@ paths:
|
|
|
364
570
|
type: array
|
|
365
571
|
items:
|
|
366
572
|
$ref: '#/components/schemas/TransactionWithRelationsDto'
|
|
367
|
-
security: *
|
|
573
|
+
security: *ref_9
|
|
368
574
|
summary: Get all transactions with optional filters
|
|
369
|
-
tags: *
|
|
575
|
+
tags: *ref_10
|
|
370
576
|
/transactions/{id}:
|
|
371
577
|
get:
|
|
372
578
|
operationId: findOne
|
|
373
579
|
parameters:
|
|
374
|
-
- *
|
|
580
|
+
- *ref_8
|
|
375
581
|
- name: id
|
|
376
582
|
required: true
|
|
377
583
|
in: path
|
|
@@ -386,13 +592,13 @@ paths:
|
|
|
386
592
|
$ref: '#/components/schemas/TransactionWithRelationsDto'
|
|
387
593
|
'404':
|
|
388
594
|
description: Transaction not found.
|
|
389
|
-
security: *
|
|
595
|
+
security: *ref_9
|
|
390
596
|
summary: Get a transaction by ID
|
|
391
|
-
tags: *
|
|
597
|
+
tags: *ref_10
|
|
392
598
|
patch:
|
|
393
599
|
operationId: update
|
|
394
600
|
parameters:
|
|
395
|
-
- *
|
|
601
|
+
- *ref_8
|
|
396
602
|
- name: id
|
|
397
603
|
required: true
|
|
398
604
|
in: path
|
|
@@ -426,13 +632,13 @@ paths:
|
|
|
426
632
|
$ref: '#/components/schemas/TransactionWithRelationsDto'
|
|
427
633
|
'404':
|
|
428
634
|
description: Transaction not found.
|
|
429
|
-
security: *
|
|
635
|
+
security: *ref_9
|
|
430
636
|
summary: Update a transaction
|
|
431
|
-
tags: *
|
|
637
|
+
tags: *ref_10
|
|
432
638
|
delete:
|
|
433
639
|
operationId: remove
|
|
434
640
|
parameters:
|
|
435
|
-
- *
|
|
641
|
+
- *ref_8
|
|
436
642
|
- name: id
|
|
437
643
|
required: true
|
|
438
644
|
in: path
|
|
@@ -456,14 +662,14 @@ paths:
|
|
|
456
662
|
description: Transaction deleted successfully.
|
|
457
663
|
'404':
|
|
458
664
|
description: Transaction not found.
|
|
459
|
-
security: *
|
|
665
|
+
security: *ref_9
|
|
460
666
|
summary: Delete a transaction
|
|
461
|
-
tags: *
|
|
667
|
+
tags: *ref_10
|
|
462
668
|
/transactions/{id}/pay:
|
|
463
669
|
patch:
|
|
464
670
|
operationId: markAsPaid
|
|
465
671
|
parameters:
|
|
466
|
-
- *
|
|
672
|
+
- *ref_8
|
|
467
673
|
- name: id
|
|
468
674
|
required: true
|
|
469
675
|
in: path
|
|
@@ -478,14 +684,14 @@ paths:
|
|
|
478
684
|
$ref: '#/components/schemas/TransactionWithRelationsDto'
|
|
479
685
|
'404':
|
|
480
686
|
description: Transaction not found.
|
|
481
|
-
security: *
|
|
687
|
+
security: *ref_9
|
|
482
688
|
summary: Mark a transaction as paid
|
|
483
|
-
tags: *
|
|
689
|
+
tags: *ref_10
|
|
484
690
|
/transactions/{id}/unpay:
|
|
485
691
|
patch:
|
|
486
692
|
operationId: markAsUnpaid
|
|
487
693
|
parameters:
|
|
488
|
-
- *
|
|
694
|
+
- *ref_8
|
|
489
695
|
- name: id
|
|
490
696
|
required: true
|
|
491
697
|
in: path
|
|
@@ -500,9 +706,9 @@ paths:
|
|
|
500
706
|
$ref: '#/components/schemas/TransactionWithRelationsDto'
|
|
501
707
|
'404':
|
|
502
708
|
description: Transaction not found.
|
|
503
|
-
security: *
|
|
709
|
+
security: *ref_9
|
|
504
710
|
summary: Mark a transaction as unpaid
|
|
505
|
-
tags: *
|
|
711
|
+
tags: *ref_10
|
|
506
712
|
/summary:
|
|
507
713
|
get:
|
|
508
714
|
description: >-
|
|
@@ -551,7 +757,7 @@ paths:
|
|
|
551
757
|
post:
|
|
552
758
|
operationId: create
|
|
553
759
|
parameters:
|
|
554
|
-
- &
|
|
760
|
+
- &ref_11
|
|
555
761
|
name: x-api-key
|
|
556
762
|
in: header
|
|
557
763
|
required: false
|
|
@@ -568,26 +774,26 @@ paths:
|
|
|
568
774
|
description: Credit card created successfully.
|
|
569
775
|
'400':
|
|
570
776
|
description: Invalid input.
|
|
571
|
-
security: &
|
|
777
|
+
security: &ref_12
|
|
572
778
|
- bearer: []
|
|
573
779
|
summary: Create a new credit card
|
|
574
|
-
tags: &
|
|
780
|
+
tags: &ref_13
|
|
575
781
|
- credit-cards
|
|
576
782
|
get:
|
|
577
783
|
operationId: findAll
|
|
578
784
|
parameters:
|
|
579
|
-
- *
|
|
785
|
+
- *ref_11
|
|
580
786
|
responses:
|
|
581
787
|
'200':
|
|
582
788
|
description: List of credit cards.
|
|
583
|
-
security: *
|
|
789
|
+
security: *ref_12
|
|
584
790
|
summary: Get all credit cards
|
|
585
|
-
tags: *
|
|
791
|
+
tags: *ref_13
|
|
586
792
|
/credit-cards/{id}:
|
|
587
793
|
get:
|
|
588
794
|
operationId: findOne
|
|
589
795
|
parameters:
|
|
590
|
-
- *
|
|
796
|
+
- *ref_11
|
|
591
797
|
- name: id
|
|
592
798
|
required: true
|
|
593
799
|
in: path
|
|
@@ -598,13 +804,13 @@ paths:
|
|
|
598
804
|
description: Credit card found.
|
|
599
805
|
'404':
|
|
600
806
|
description: Credit card not found.
|
|
601
|
-
security: *
|
|
807
|
+
security: *ref_12
|
|
602
808
|
summary: Get a credit card by ID
|
|
603
|
-
tags: *
|
|
809
|
+
tags: *ref_13
|
|
604
810
|
patch:
|
|
605
811
|
operationId: update
|
|
606
812
|
parameters:
|
|
607
|
-
- *
|
|
813
|
+
- *ref_11
|
|
608
814
|
- name: id
|
|
609
815
|
required: true
|
|
610
816
|
in: path
|
|
@@ -621,13 +827,13 @@ paths:
|
|
|
621
827
|
description: Credit card updated successfully.
|
|
622
828
|
'404':
|
|
623
829
|
description: Credit card not found.
|
|
624
|
-
security: *
|
|
830
|
+
security: *ref_12
|
|
625
831
|
summary: Update a credit card
|
|
626
|
-
tags: *
|
|
832
|
+
tags: *ref_13
|
|
627
833
|
delete:
|
|
628
834
|
operationId: remove
|
|
629
835
|
parameters:
|
|
630
|
-
- *
|
|
836
|
+
- *ref_11
|
|
631
837
|
- name: id
|
|
632
838
|
required: true
|
|
633
839
|
in: path
|
|
@@ -638,14 +844,14 @@ paths:
|
|
|
638
844
|
description: Credit card deleted successfully.
|
|
639
845
|
'404':
|
|
640
846
|
description: Credit card not found.
|
|
641
|
-
security: *
|
|
847
|
+
security: *ref_12
|
|
642
848
|
summary: Delete a credit card
|
|
643
|
-
tags: *
|
|
849
|
+
tags: *ref_13
|
|
644
850
|
/credit-cards/{id}/statement:
|
|
645
851
|
get:
|
|
646
852
|
operationId: getStatement
|
|
647
853
|
parameters:
|
|
648
|
-
- *
|
|
854
|
+
- *ref_11
|
|
649
855
|
- name: id
|
|
650
856
|
required: true
|
|
651
857
|
in: path
|
|
@@ -663,14 +869,14 @@ paths:
|
|
|
663
869
|
description: Credit card statement.
|
|
664
870
|
'404':
|
|
665
871
|
description: Credit card not found.
|
|
666
|
-
security: *
|
|
872
|
+
security: *ref_12
|
|
667
873
|
summary: Get credit card statement for a specific month
|
|
668
|
-
tags: *
|
|
874
|
+
tags: *ref_13
|
|
669
875
|
/credit-cards/{id}/pay-statement:
|
|
670
876
|
post:
|
|
671
877
|
operationId: payStatement
|
|
672
878
|
parameters:
|
|
673
|
-
- *
|
|
879
|
+
- *ref_11
|
|
674
880
|
- name: id
|
|
675
881
|
required: true
|
|
676
882
|
in: path
|
|
@@ -687,14 +893,14 @@ paths:
|
|
|
687
893
|
description: Statement marked as paid.
|
|
688
894
|
'404':
|
|
689
895
|
description: Credit card not found.
|
|
690
|
-
security: *
|
|
896
|
+
security: *ref_12
|
|
691
897
|
summary: Mark all transactions in a credit card statement as paid
|
|
692
|
-
tags: *
|
|
898
|
+
tags: *ref_13
|
|
693
899
|
/credit-cards/{id}/reopen-statement:
|
|
694
900
|
post:
|
|
695
901
|
operationId: reopenStatement
|
|
696
902
|
parameters:
|
|
697
|
-
- *
|
|
903
|
+
- *ref_11
|
|
698
904
|
- name: id
|
|
699
905
|
required: true
|
|
700
906
|
in: path
|
|
@@ -713,14 +919,14 @@ paths:
|
|
|
713
919
|
description: Statement is already open or invalid input.
|
|
714
920
|
'404':
|
|
715
921
|
description: Credit card not found.
|
|
716
|
-
security: *
|
|
922
|
+
security: *ref_12
|
|
717
923
|
summary: Reopen a credit card statement by marking all transactions as unpaid
|
|
718
|
-
tags: *
|
|
924
|
+
tags: *ref_13
|
|
719
925
|
/credit-cards/{id}/statement-status:
|
|
720
926
|
get:
|
|
721
927
|
operationId: getStatementStatus
|
|
722
928
|
parameters:
|
|
723
|
-
- *
|
|
929
|
+
- *ref_11
|
|
724
930
|
- name: id
|
|
725
931
|
required: true
|
|
726
932
|
in: path
|
|
@@ -738,14 +944,14 @@ paths:
|
|
|
738
944
|
description: Credit card statement status.
|
|
739
945
|
'404':
|
|
740
946
|
description: Credit card not found.
|
|
741
|
-
security: *
|
|
947
|
+
security: *ref_12
|
|
742
948
|
summary: Get credit card statement payment status for a specific month
|
|
743
|
-
tags: *
|
|
949
|
+
tags: *ref_13
|
|
744
950
|
/credit-cards/{id}/anticipations:
|
|
745
951
|
post:
|
|
746
952
|
operationId: createAnticipation
|
|
747
953
|
parameters:
|
|
748
|
-
- *
|
|
954
|
+
- *ref_11
|
|
749
955
|
- name: id
|
|
750
956
|
required: true
|
|
751
957
|
in: path
|
|
@@ -766,14 +972,14 @@ paths:
|
|
|
766
972
|
description: Statement already closed or invalid input.
|
|
767
973
|
'404':
|
|
768
974
|
description: Credit card or account not found.
|
|
769
|
-
security: *
|
|
975
|
+
security: *ref_12
|
|
770
976
|
summary: Create a credit card anticipation (advance payment toward the statement)
|
|
771
|
-
tags: *
|
|
977
|
+
tags: *ref_13
|
|
772
978
|
/accounts:
|
|
773
979
|
post:
|
|
774
980
|
operationId: create
|
|
775
981
|
parameters:
|
|
776
|
-
- &
|
|
982
|
+
- &ref_14
|
|
777
983
|
name: x-api-key
|
|
778
984
|
in: header
|
|
779
985
|
required: false
|
|
@@ -794,15 +1000,15 @@ paths:
|
|
|
794
1000
|
$ref: '#/components/schemas/AccountResponseDto'
|
|
795
1001
|
'400':
|
|
796
1002
|
description: Invalid input data
|
|
797
|
-
security: &
|
|
1003
|
+
security: &ref_15
|
|
798
1004
|
- bearer: []
|
|
799
1005
|
summary: Create a new account
|
|
800
|
-
tags: &
|
|
1006
|
+
tags: &ref_16
|
|
801
1007
|
- accounts
|
|
802
1008
|
get:
|
|
803
1009
|
operationId: findAll
|
|
804
1010
|
parameters:
|
|
805
|
-
- *
|
|
1011
|
+
- *ref_14
|
|
806
1012
|
responses:
|
|
807
1013
|
'200':
|
|
808
1014
|
description: List of all accounts
|
|
@@ -812,14 +1018,14 @@ paths:
|
|
|
812
1018
|
type: array
|
|
813
1019
|
items:
|
|
814
1020
|
$ref: '#/components/schemas/AccountResponseDto'
|
|
815
|
-
security: *
|
|
1021
|
+
security: *ref_15
|
|
816
1022
|
summary: Get all accounts
|
|
817
|
-
tags: *
|
|
1023
|
+
tags: *ref_16
|
|
818
1024
|
/accounts/{id}:
|
|
819
1025
|
get:
|
|
820
1026
|
operationId: findOne
|
|
821
1027
|
parameters:
|
|
822
|
-
- *
|
|
1028
|
+
- *ref_14
|
|
823
1029
|
- name: id
|
|
824
1030
|
required: true
|
|
825
1031
|
in: path
|
|
@@ -834,13 +1040,13 @@ paths:
|
|
|
834
1040
|
$ref: '#/components/schemas/AccountResponseDto'
|
|
835
1041
|
'404':
|
|
836
1042
|
description: Account not found
|
|
837
|
-
security: *
|
|
1043
|
+
security: *ref_15
|
|
838
1044
|
summary: Get an account by ID
|
|
839
|
-
tags: *
|
|
1045
|
+
tags: *ref_16
|
|
840
1046
|
patch:
|
|
841
1047
|
operationId: update
|
|
842
1048
|
parameters:
|
|
843
|
-
- *
|
|
1049
|
+
- *ref_14
|
|
844
1050
|
- name: id
|
|
845
1051
|
required: true
|
|
846
1052
|
in: path
|
|
@@ -861,13 +1067,13 @@ paths:
|
|
|
861
1067
|
$ref: '#/components/schemas/AccountResponseDto'
|
|
862
1068
|
'404':
|
|
863
1069
|
description: Account not found
|
|
864
|
-
security: *
|
|
1070
|
+
security: *ref_15
|
|
865
1071
|
summary: Update an account
|
|
866
|
-
tags: *
|
|
1072
|
+
tags: *ref_16
|
|
867
1073
|
delete:
|
|
868
1074
|
operationId: remove
|
|
869
1075
|
parameters:
|
|
870
|
-
- *
|
|
1076
|
+
- *ref_14
|
|
871
1077
|
- name: id
|
|
872
1078
|
required: true
|
|
873
1079
|
in: path
|
|
@@ -880,14 +1086,14 @@ paths:
|
|
|
880
1086
|
description: Account not found
|
|
881
1087
|
'409':
|
|
882
1088
|
description: Cannot delete account with associated transactions
|
|
883
|
-
security: *
|
|
1089
|
+
security: *ref_15
|
|
884
1090
|
summary: Delete an account
|
|
885
|
-
tags: *
|
|
1091
|
+
tags: *ref_16
|
|
886
1092
|
/accounts/{id}/balance:
|
|
887
1093
|
get:
|
|
888
1094
|
operationId: getAccountBalance
|
|
889
1095
|
parameters:
|
|
890
|
-
- *
|
|
1096
|
+
- *ref_14
|
|
891
1097
|
- name: id
|
|
892
1098
|
required: true
|
|
893
1099
|
in: path
|
|
@@ -902,14 +1108,14 @@ paths:
|
|
|
902
1108
|
type: object
|
|
903
1109
|
'404':
|
|
904
1110
|
description: Account not found
|
|
905
|
-
security: *
|
|
1111
|
+
security: *ref_15
|
|
906
1112
|
summary: Get the current balance for an account
|
|
907
|
-
tags: *
|
|
1113
|
+
tags: *ref_16
|
|
908
1114
|
/settings:
|
|
909
1115
|
get:
|
|
910
1116
|
operationId: findAll
|
|
911
1117
|
parameters:
|
|
912
|
-
- &
|
|
1118
|
+
- &ref_17
|
|
913
1119
|
name: x-api-key
|
|
914
1120
|
in: header
|
|
915
1121
|
required: false
|
|
@@ -924,15 +1130,15 @@ paths:
|
|
|
924
1130
|
$ref: '#/components/schemas/SettingsResponseDto'
|
|
925
1131
|
'404':
|
|
926
1132
|
description: Settings not found
|
|
927
|
-
security: &
|
|
1133
|
+
security: &ref_18
|
|
928
1134
|
- bearer: []
|
|
929
1135
|
summary: Get user settings
|
|
930
|
-
tags: &
|
|
1136
|
+
tags: &ref_19
|
|
931
1137
|
- settings
|
|
932
1138
|
patch:
|
|
933
1139
|
operationId: update
|
|
934
1140
|
parameters:
|
|
935
|
-
- *
|
|
1141
|
+
- *ref_17
|
|
936
1142
|
requestBody:
|
|
937
1143
|
required: true
|
|
938
1144
|
content:
|
|
@@ -950,22 +1156,32 @@ paths:
|
|
|
950
1156
|
description: Invalid input data
|
|
951
1157
|
'404':
|
|
952
1158
|
description: Settings not found
|
|
953
|
-
security: *
|
|
1159
|
+
security: *ref_18
|
|
954
1160
|
summary: Update user settings
|
|
955
|
-
tags: *
|
|
956
|
-
/export:
|
|
1161
|
+
tags: *ref_19
|
|
1162
|
+
/data-transfer/export:
|
|
957
1163
|
get:
|
|
958
1164
|
operationId: export
|
|
959
|
-
parameters:
|
|
1165
|
+
parameters:
|
|
1166
|
+
- &ref_20
|
|
1167
|
+
name: x-api-key
|
|
1168
|
+
in: header
|
|
1169
|
+
required: false
|
|
1170
|
+
schema:
|
|
1171
|
+
type: string
|
|
960
1172
|
responses:
|
|
961
1173
|
'200':
|
|
962
1174
|
description: ''
|
|
963
|
-
|
|
964
|
-
-
|
|
965
|
-
|
|
1175
|
+
security: &ref_21
|
|
1176
|
+
- bearer: []
|
|
1177
|
+
summary: Export all user data to JSON
|
|
1178
|
+
tags: &ref_22
|
|
1179
|
+
- data-transfer
|
|
1180
|
+
/data-transfer/import:
|
|
966
1181
|
post:
|
|
967
1182
|
operationId: import
|
|
968
|
-
parameters:
|
|
1183
|
+
parameters:
|
|
1184
|
+
- *ref_20
|
|
969
1185
|
requestBody:
|
|
970
1186
|
required: true
|
|
971
1187
|
content:
|
|
@@ -975,12 +1191,14 @@ paths:
|
|
|
975
1191
|
responses:
|
|
976
1192
|
'201':
|
|
977
1193
|
description: ''
|
|
978
|
-
|
|
1194
|
+
security: *ref_21
|
|
1195
|
+
summary: Import data from JSON
|
|
1196
|
+
tags: *ref_22
|
|
979
1197
|
/transfers:
|
|
980
1198
|
post:
|
|
981
1199
|
operationId: create
|
|
982
1200
|
parameters:
|
|
983
|
-
- &
|
|
1201
|
+
- &ref_23
|
|
984
1202
|
name: x-api-key
|
|
985
1203
|
in: header
|
|
986
1204
|
required: false
|
|
@@ -1003,15 +1221,15 @@ paths:
|
|
|
1003
1221
|
description: Invalid input
|
|
1004
1222
|
'404':
|
|
1005
1223
|
description: Account not found
|
|
1006
|
-
security: &
|
|
1224
|
+
security: &ref_24
|
|
1007
1225
|
- bearer: []
|
|
1008
1226
|
summary: Create a new transfer between accounts
|
|
1009
|
-
tags: &
|
|
1227
|
+
tags: &ref_25
|
|
1010
1228
|
- transfers
|
|
1011
1229
|
get:
|
|
1012
1230
|
operationId: findAll
|
|
1013
1231
|
parameters:
|
|
1014
|
-
- *
|
|
1232
|
+
- *ref_23
|
|
1015
1233
|
- name: accountId
|
|
1016
1234
|
required: false
|
|
1017
1235
|
in: query
|
|
@@ -1048,14 +1266,14 @@ paths:
|
|
|
1048
1266
|
type: array
|
|
1049
1267
|
items:
|
|
1050
1268
|
$ref: '#/components/schemas/TransferResponseDto'
|
|
1051
|
-
security: *
|
|
1269
|
+
security: *ref_24
|
|
1052
1270
|
summary: List transfers with optional filters
|
|
1053
|
-
tags: *
|
|
1271
|
+
tags: *ref_25
|
|
1054
1272
|
/transfers/{id}:
|
|
1055
1273
|
get:
|
|
1056
1274
|
operationId: findOne
|
|
1057
1275
|
parameters:
|
|
1058
|
-
- *
|
|
1276
|
+
- *ref_23
|
|
1059
1277
|
- name: id
|
|
1060
1278
|
required: true
|
|
1061
1279
|
in: path
|
|
@@ -1070,13 +1288,13 @@ paths:
|
|
|
1070
1288
|
$ref: '#/components/schemas/TransferResponseDto'
|
|
1071
1289
|
'404':
|
|
1072
1290
|
description: Transfer not found
|
|
1073
|
-
security: *
|
|
1291
|
+
security: *ref_24
|
|
1074
1292
|
summary: Get a transfer by ID
|
|
1075
|
-
tags: *
|
|
1293
|
+
tags: *ref_25
|
|
1076
1294
|
patch:
|
|
1077
1295
|
operationId: update
|
|
1078
1296
|
parameters:
|
|
1079
|
-
- *
|
|
1297
|
+
- *ref_23
|
|
1080
1298
|
- name: id
|
|
1081
1299
|
required: true
|
|
1082
1300
|
in: path
|
|
@@ -1097,13 +1315,13 @@ paths:
|
|
|
1097
1315
|
$ref: '#/components/schemas/TransferResponseDto'
|
|
1098
1316
|
'404':
|
|
1099
1317
|
description: Transfer not found
|
|
1100
|
-
security: *
|
|
1318
|
+
security: *ref_24
|
|
1101
1319
|
summary: Update a transfer
|
|
1102
|
-
tags: *
|
|
1320
|
+
tags: *ref_25
|
|
1103
1321
|
delete:
|
|
1104
1322
|
operationId: remove
|
|
1105
1323
|
parameters:
|
|
1106
|
-
- *
|
|
1324
|
+
- *ref_23
|
|
1107
1325
|
- name: id
|
|
1108
1326
|
required: true
|
|
1109
1327
|
in: path
|
|
@@ -1114,63 +1332,142 @@ paths:
|
|
|
1114
1332
|
description: Transfer deleted
|
|
1115
1333
|
'404':
|
|
1116
1334
|
description: Transfer not found
|
|
1117
|
-
security: *
|
|
1335
|
+
security: *ref_24
|
|
1118
1336
|
summary: Delete a transfer
|
|
1119
|
-
tags: *
|
|
1120
|
-
/
|
|
1337
|
+
tags: *ref_25
|
|
1338
|
+
/api-keys:
|
|
1121
1339
|
post:
|
|
1122
1340
|
operationId: create
|
|
1123
|
-
parameters:
|
|
1124
|
-
- &ref_20
|
|
1125
|
-
name: x-api-key
|
|
1126
|
-
in: header
|
|
1127
|
-
required: false
|
|
1128
|
-
schema:
|
|
1129
|
-
type: string
|
|
1341
|
+
parameters: []
|
|
1130
1342
|
requestBody:
|
|
1131
1343
|
required: true
|
|
1132
1344
|
content:
|
|
1133
1345
|
application/json:
|
|
1134
1346
|
schema:
|
|
1135
|
-
$ref: '#/components/schemas/
|
|
1347
|
+
$ref: '#/components/schemas/CreateApiKeyDto'
|
|
1136
1348
|
responses:
|
|
1137
1349
|
'201':
|
|
1138
|
-
description:
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
security: &
|
|
1350
|
+
description: ''
|
|
1351
|
+
content:
|
|
1352
|
+
application/json:
|
|
1353
|
+
schema:
|
|
1354
|
+
$ref: '#/components/schemas/ApiKeyResponseDto'
|
|
1355
|
+
security: &ref_26
|
|
1144
1356
|
- bearer: []
|
|
1145
|
-
summary: Create a new
|
|
1146
|
-
tags: &
|
|
1147
|
-
-
|
|
1357
|
+
summary: Create a new API Key
|
|
1358
|
+
tags: &ref_27
|
|
1359
|
+
- api-keys
|
|
1148
1360
|
get:
|
|
1149
1361
|
operationId: findAll
|
|
1362
|
+
parameters: []
|
|
1363
|
+
responses:
|
|
1364
|
+
'200':
|
|
1365
|
+
description: ''
|
|
1366
|
+
content:
|
|
1367
|
+
application/json:
|
|
1368
|
+
schema:
|
|
1369
|
+
type: array
|
|
1370
|
+
items:
|
|
1371
|
+
$ref: '#/components/schemas/ApiKeyResponseDto'
|
|
1372
|
+
security: *ref_26
|
|
1373
|
+
summary: List your API Keys
|
|
1374
|
+
tags: *ref_27
|
|
1375
|
+
/api-keys/{id}:
|
|
1376
|
+
delete:
|
|
1377
|
+
operationId: revoke
|
|
1150
1378
|
parameters:
|
|
1151
|
-
-
|
|
1379
|
+
- name: id
|
|
1380
|
+
required: true
|
|
1381
|
+
in: path
|
|
1382
|
+
schema:
|
|
1383
|
+
type: string
|
|
1384
|
+
responses:
|
|
1385
|
+
'204':
|
|
1386
|
+
description: ''
|
|
1387
|
+
security: *ref_26
|
|
1388
|
+
summary: Revoke an API Key
|
|
1389
|
+
tags: *ref_27
|
|
1390
|
+
/admin/notifications/broadcast:
|
|
1391
|
+
post:
|
|
1392
|
+
description: >-
|
|
1393
|
+
Sends a custom HTML email to all active users or selected user IDs.
|
|
1394
|
+
Processes in background with a delay.
|
|
1395
|
+
operationId: broadcast
|
|
1396
|
+
parameters: []
|
|
1397
|
+
requestBody:
|
|
1398
|
+
required: true
|
|
1399
|
+
content:
|
|
1400
|
+
application/json:
|
|
1401
|
+
schema:
|
|
1402
|
+
$ref: '#/components/schemas/AdminBroadcastEmailDto'
|
|
1403
|
+
responses:
|
|
1404
|
+
'202':
|
|
1405
|
+
description: Broadcast started successfully
|
|
1406
|
+
security: &ref_28
|
|
1407
|
+
- bearer: []
|
|
1408
|
+
summary: Send a broadcast email to users (admin only)
|
|
1409
|
+
tags: &ref_29
|
|
1410
|
+
- Admin
|
|
1411
|
+
/admin/notifications/preview:
|
|
1412
|
+
post:
|
|
1413
|
+
description: >-
|
|
1414
|
+
Renders the email body with shortcodes, variables, and the base layout,
|
|
1415
|
+
returning the full HTML.
|
|
1416
|
+
operationId: previewEmail
|
|
1417
|
+
parameters: []
|
|
1418
|
+
requestBody:
|
|
1419
|
+
required: true
|
|
1420
|
+
content:
|
|
1421
|
+
application/json:
|
|
1422
|
+
schema:
|
|
1423
|
+
$ref: '#/components/schemas/AdminPreviewEmailDto'
|
|
1152
1424
|
responses:
|
|
1153
1425
|
'200':
|
|
1154
|
-
description:
|
|
1155
|
-
security: *
|
|
1156
|
-
summary:
|
|
1157
|
-
tags: *
|
|
1158
|
-
/
|
|
1426
|
+
description: Rendered email HTML
|
|
1427
|
+
security: *ref_28
|
|
1428
|
+
summary: Preview a rendered email without sending (admin only)
|
|
1429
|
+
tags: *ref_29
|
|
1430
|
+
/admin/notifications/components:
|
|
1159
1431
|
get:
|
|
1160
|
-
|
|
1432
|
+
description: >-
|
|
1433
|
+
Returns the catalog of shortcode components with syntax, params, and
|
|
1434
|
+
preview HTML, plus available template variables.
|
|
1435
|
+
operationId: getEmailComponents
|
|
1436
|
+
parameters: []
|
|
1437
|
+
responses:
|
|
1438
|
+
'200':
|
|
1439
|
+
description: Email component catalog
|
|
1440
|
+
security: *ref_28
|
|
1441
|
+
summary: List available email components and template variables (admin only)
|
|
1442
|
+
tags: *ref_29
|
|
1443
|
+
/admin/users:
|
|
1444
|
+
get:
|
|
1445
|
+
operationId: listUsers
|
|
1161
1446
|
parameters:
|
|
1162
|
-
-
|
|
1447
|
+
- name: page
|
|
1448
|
+
required: false
|
|
1449
|
+
in: query
|
|
1450
|
+
schema:
|
|
1451
|
+
default: 1
|
|
1452
|
+
example: 1
|
|
1453
|
+
type: number
|
|
1454
|
+
- name: limit
|
|
1455
|
+
required: false
|
|
1456
|
+
in: query
|
|
1457
|
+
schema:
|
|
1458
|
+
default: 20
|
|
1459
|
+
example: 20
|
|
1460
|
+
type: number
|
|
1163
1461
|
responses:
|
|
1164
1462
|
'200':
|
|
1165
|
-
description:
|
|
1166
|
-
security: *
|
|
1167
|
-
summary:
|
|
1168
|
-
tags: *
|
|
1169
|
-
/
|
|
1463
|
+
description: Paginated list of users
|
|
1464
|
+
security: *ref_28
|
|
1465
|
+
summary: List all users (admin only)
|
|
1466
|
+
tags: *ref_29
|
|
1467
|
+
/admin/users/{id}:
|
|
1170
1468
|
get:
|
|
1171
|
-
operationId:
|
|
1469
|
+
operationId: getUserById
|
|
1172
1470
|
parameters:
|
|
1173
|
-
- *ref_20
|
|
1174
1471
|
- name: id
|
|
1175
1472
|
required: true
|
|
1176
1473
|
in: path
|
|
@@ -1178,16 +1475,15 @@ paths:
|
|
|
1178
1475
|
type: string
|
|
1179
1476
|
responses:
|
|
1180
1477
|
'200':
|
|
1181
|
-
description:
|
|
1478
|
+
description: User details
|
|
1182
1479
|
'404':
|
|
1183
|
-
description:
|
|
1184
|
-
security: *
|
|
1185
|
-
summary: Get
|
|
1186
|
-
tags: *
|
|
1480
|
+
description: User not found
|
|
1481
|
+
security: *ref_28
|
|
1482
|
+
summary: Get user details (admin only)
|
|
1483
|
+
tags: *ref_29
|
|
1187
1484
|
patch:
|
|
1188
|
-
operationId:
|
|
1485
|
+
operationId: updateUser
|
|
1189
1486
|
parameters:
|
|
1190
|
-
- *ref_20
|
|
1191
1487
|
- name: id
|
|
1192
1488
|
required: true
|
|
1193
1489
|
in: path
|
|
@@ -1198,19 +1494,21 @@ paths:
|
|
|
1198
1494
|
content:
|
|
1199
1495
|
application/json:
|
|
1200
1496
|
schema:
|
|
1201
|
-
$ref: '#/components/schemas/
|
|
1497
|
+
$ref: '#/components/schemas/AdminUpdateUserDto'
|
|
1202
1498
|
responses:
|
|
1203
1499
|
'200':
|
|
1204
|
-
description:
|
|
1500
|
+
description: Updated user
|
|
1205
1501
|
'404':
|
|
1206
|
-
description:
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1502
|
+
description: User not found
|
|
1503
|
+
'409':
|
|
1504
|
+
description: Email already in use
|
|
1505
|
+
security: *ref_28
|
|
1506
|
+
summary: Update user name, email or role (admin only)
|
|
1507
|
+
tags: *ref_29
|
|
1508
|
+
/admin/users/{id}/reset-password:
|
|
1509
|
+
post:
|
|
1510
|
+
operationId: resetPassword
|
|
1212
1511
|
parameters:
|
|
1213
|
-
- *ref_20
|
|
1214
1512
|
- name: id
|
|
1215
1513
|
required: true
|
|
1216
1514
|
in: path
|
|
@@ -1218,17 +1516,18 @@ paths:
|
|
|
1218
1516
|
type: string
|
|
1219
1517
|
responses:
|
|
1220
1518
|
'200':
|
|
1221
|
-
description:
|
|
1519
|
+
description: Temporary password generated
|
|
1520
|
+
'400':
|
|
1521
|
+
description: Cannot reset own password
|
|
1222
1522
|
'404':
|
|
1223
|
-
description:
|
|
1224
|
-
security: *
|
|
1225
|
-
summary:
|
|
1226
|
-
tags: *
|
|
1227
|
-
/
|
|
1228
|
-
|
|
1229
|
-
operationId:
|
|
1523
|
+
description: User not found
|
|
1524
|
+
security: *ref_28
|
|
1525
|
+
summary: Reset user password (admin only)
|
|
1526
|
+
tags: *ref_29
|
|
1527
|
+
/admin/users/{id}/deactivate:
|
|
1528
|
+
patch:
|
|
1529
|
+
operationId: deactivateUser
|
|
1230
1530
|
parameters:
|
|
1231
|
-
- *ref_20
|
|
1232
1531
|
- name: id
|
|
1233
1532
|
required: true
|
|
1234
1533
|
in: path
|
|
@@ -1236,17 +1535,18 @@ paths:
|
|
|
1236
1535
|
type: string
|
|
1237
1536
|
responses:
|
|
1238
1537
|
'200':
|
|
1239
|
-
description:
|
|
1240
|
-
'
|
|
1241
|
-
description:
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1538
|
+
description: User deactivated
|
|
1539
|
+
'400':
|
|
1540
|
+
description: Cannot deactivate self
|
|
1541
|
+
'409':
|
|
1542
|
+
description: Cannot deactivate last admin
|
|
1543
|
+
security: *ref_28
|
|
1544
|
+
summary: Deactivate a user (admin only)
|
|
1545
|
+
tags: *ref_29
|
|
1546
|
+
/admin/users/{id}/activate:
|
|
1246
1547
|
patch:
|
|
1247
|
-
operationId:
|
|
1548
|
+
operationId: activateUser
|
|
1248
1549
|
parameters:
|
|
1249
|
-
- *ref_20
|
|
1250
1550
|
- name: id
|
|
1251
1551
|
required: true
|
|
1252
1552
|
in: path
|
|
@@ -1254,13 +1554,225 @@ paths:
|
|
|
1254
1554
|
type: string
|
|
1255
1555
|
responses:
|
|
1256
1556
|
'200':
|
|
1257
|
-
description:
|
|
1557
|
+
description: User activated
|
|
1258
1558
|
'404':
|
|
1259
|
-
description:
|
|
1260
|
-
security: *
|
|
1261
|
-
summary:
|
|
1262
|
-
tags: *
|
|
1263
|
-
/
|
|
1559
|
+
description: User not found
|
|
1560
|
+
security: *ref_28
|
|
1561
|
+
summary: Activate a user (admin only)
|
|
1562
|
+
tags: *ref_29
|
|
1563
|
+
/admin/stats:
|
|
1564
|
+
get:
|
|
1565
|
+
operationId: getOverviewStats
|
|
1566
|
+
parameters:
|
|
1567
|
+
- name: from
|
|
1568
|
+
required: false
|
|
1569
|
+
in: query
|
|
1570
|
+
description: Start date (YYYY-MM-DD)
|
|
1571
|
+
schema:
|
|
1572
|
+
example: '2026-03-01'
|
|
1573
|
+
type: string
|
|
1574
|
+
- name: to
|
|
1575
|
+
required: false
|
|
1576
|
+
in: query
|
|
1577
|
+
description: End date (YYYY-MM-DD)
|
|
1578
|
+
schema:
|
|
1579
|
+
example: '2026-03-31'
|
|
1580
|
+
type: string
|
|
1581
|
+
responses:
|
|
1582
|
+
'200':
|
|
1583
|
+
description: System overview stats
|
|
1584
|
+
security: *ref_28
|
|
1585
|
+
summary: Get system overview statistics (admin only)
|
|
1586
|
+
tags: *ref_29
|
|
1587
|
+
/admin/stats/transactions:
|
|
1588
|
+
get:
|
|
1589
|
+
operationId: getTransactionStats
|
|
1590
|
+
parameters:
|
|
1591
|
+
- name: from
|
|
1592
|
+
required: false
|
|
1593
|
+
in: query
|
|
1594
|
+
description: Start date (YYYY-MM-DD)
|
|
1595
|
+
schema:
|
|
1596
|
+
example: '2026-03-01'
|
|
1597
|
+
type: string
|
|
1598
|
+
- name: to
|
|
1599
|
+
required: false
|
|
1600
|
+
in: query
|
|
1601
|
+
description: End date (YYYY-MM-DD)
|
|
1602
|
+
schema:
|
|
1603
|
+
example: '2026-03-31'
|
|
1604
|
+
type: string
|
|
1605
|
+
responses:
|
|
1606
|
+
'200':
|
|
1607
|
+
description: Transaction stats
|
|
1608
|
+
'400':
|
|
1609
|
+
description: Invalid date range
|
|
1610
|
+
security: *ref_28
|
|
1611
|
+
summary: Get transaction statistics by date range (admin only)
|
|
1612
|
+
tags: *ref_29
|
|
1613
|
+
/admin/stats/chat:
|
|
1614
|
+
get:
|
|
1615
|
+
operationId: getChatStats
|
|
1616
|
+
parameters: []
|
|
1617
|
+
responses:
|
|
1618
|
+
'200':
|
|
1619
|
+
description: Chat usage statistics
|
|
1620
|
+
security: *ref_28
|
|
1621
|
+
summary: Get chat and token statistics (admin only)
|
|
1622
|
+
tags: *ref_29
|
|
1623
|
+
/admin/stats/audio:
|
|
1624
|
+
get:
|
|
1625
|
+
operationId: getAudioStats
|
|
1626
|
+
parameters: []
|
|
1627
|
+
responses:
|
|
1628
|
+
'200':
|
|
1629
|
+
description: Audio transcription usage statistics
|
|
1630
|
+
security: *ref_28
|
|
1631
|
+
summary: Get audio transcription statistics (admin only)
|
|
1632
|
+
tags: *ref_29
|
|
1633
|
+
/admin/ai-models:
|
|
1634
|
+
get:
|
|
1635
|
+
operationId: listAIModels
|
|
1636
|
+
parameters: []
|
|
1637
|
+
responses:
|
|
1638
|
+
'200':
|
|
1639
|
+
description: List of AI models
|
|
1640
|
+
security: *ref_28
|
|
1641
|
+
summary: List all AI models and their prices (admin only)
|
|
1642
|
+
tags: *ref_29
|
|
1643
|
+
post:
|
|
1644
|
+
operationId: createAIModel
|
|
1645
|
+
parameters: []
|
|
1646
|
+
requestBody:
|
|
1647
|
+
required: true
|
|
1648
|
+
content:
|
|
1649
|
+
application/json:
|
|
1650
|
+
schema:
|
|
1651
|
+
$ref: '#/components/schemas/CreateAIModelDto'
|
|
1652
|
+
responses:
|
|
1653
|
+
'201':
|
|
1654
|
+
description: AI model created
|
|
1655
|
+
'409':
|
|
1656
|
+
description: Model already exists
|
|
1657
|
+
security: *ref_28
|
|
1658
|
+
summary: Register a new AI model and its prices (admin only)
|
|
1659
|
+
tags: *ref_29
|
|
1660
|
+
/admin/ai-models/{name}:
|
|
1661
|
+
patch:
|
|
1662
|
+
operationId: updateAIModel
|
|
1663
|
+
parameters:
|
|
1664
|
+
- name: name
|
|
1665
|
+
required: true
|
|
1666
|
+
in: path
|
|
1667
|
+
schema:
|
|
1668
|
+
type: string
|
|
1669
|
+
requestBody:
|
|
1670
|
+
required: true
|
|
1671
|
+
content:
|
|
1672
|
+
application/json:
|
|
1673
|
+
schema:
|
|
1674
|
+
$ref: '#/components/schemas/UpdateAIModelDto'
|
|
1675
|
+
responses:
|
|
1676
|
+
'200':
|
|
1677
|
+
description: AI model updated
|
|
1678
|
+
'404':
|
|
1679
|
+
description: Model not found
|
|
1680
|
+
security: *ref_28
|
|
1681
|
+
summary: Update AI model prices (admin only)
|
|
1682
|
+
tags: *ref_29
|
|
1683
|
+
/admin/transactions:
|
|
1684
|
+
get:
|
|
1685
|
+
description: >-
|
|
1686
|
+
Returns a paginated list of transactions without exposing PII
|
|
1687
|
+
(Personally Identifiable Information). Used to understand system trends
|
|
1688
|
+
and volume.
|
|
1689
|
+
operationId: getAnonymizedTransactions
|
|
1690
|
+
parameters:
|
|
1691
|
+
- name: page
|
|
1692
|
+
required: false
|
|
1693
|
+
in: query
|
|
1694
|
+
schema:
|
|
1695
|
+
default: 1
|
|
1696
|
+
example: 1
|
|
1697
|
+
type: number
|
|
1698
|
+
- name: limit
|
|
1699
|
+
required: false
|
|
1700
|
+
in: query
|
|
1701
|
+
schema:
|
|
1702
|
+
default: 20
|
|
1703
|
+
example: 20
|
|
1704
|
+
type: number
|
|
1705
|
+
- name: type
|
|
1706
|
+
required: false
|
|
1707
|
+
in: query
|
|
1708
|
+
description: Filter transactions by type
|
|
1709
|
+
schema:
|
|
1710
|
+
type: string
|
|
1711
|
+
enum:
|
|
1712
|
+
- INCOME
|
|
1713
|
+
- EXPENSE
|
|
1714
|
+
- name: from
|
|
1715
|
+
required: false
|
|
1716
|
+
in: query
|
|
1717
|
+
description: Start date (YYYY-MM-DD)
|
|
1718
|
+
schema:
|
|
1719
|
+
example: '2026-03-01'
|
|
1720
|
+
type: string
|
|
1721
|
+
- name: to
|
|
1722
|
+
required: false
|
|
1723
|
+
in: query
|
|
1724
|
+
description: End date (YYYY-MM-DD)
|
|
1725
|
+
schema:
|
|
1726
|
+
example: '2026-03-31'
|
|
1727
|
+
type: string
|
|
1728
|
+
- name: paymentMethod
|
|
1729
|
+
required: false
|
|
1730
|
+
in: query
|
|
1731
|
+
description: Filter transactions by payment method (CASH, PIX, CREDIT, DEBIT)
|
|
1732
|
+
schema:
|
|
1733
|
+
type: string
|
|
1734
|
+
responses:
|
|
1735
|
+
'200':
|
|
1736
|
+
description: Paginated list of anonymized transactions
|
|
1737
|
+
'400':
|
|
1738
|
+
description: Invalid date range
|
|
1739
|
+
security: *ref_28
|
|
1740
|
+
summary: List all transactions fully anonymized (admin only)
|
|
1741
|
+
tags: *ref_29
|
|
1742
|
+
/admin/settings:
|
|
1743
|
+
get:
|
|
1744
|
+
operationId: listAll
|
|
1745
|
+
parameters: []
|
|
1746
|
+
responses:
|
|
1747
|
+
'200':
|
|
1748
|
+
description: List of all system settings
|
|
1749
|
+
security: &ref_30
|
|
1750
|
+
- bearer: []
|
|
1751
|
+
summary: List all system settings (admin only)
|
|
1752
|
+
tags: &ref_31
|
|
1753
|
+
- Admin / Settings
|
|
1754
|
+
/admin/settings/{key}:
|
|
1755
|
+
patch:
|
|
1756
|
+
operationId: update
|
|
1757
|
+
parameters:
|
|
1758
|
+
- name: key
|
|
1759
|
+
required: true
|
|
1760
|
+
in: path
|
|
1761
|
+
schema:
|
|
1762
|
+
type: string
|
|
1763
|
+
requestBody:
|
|
1764
|
+
required: true
|
|
1765
|
+
content:
|
|
1766
|
+
application/json:
|
|
1767
|
+
schema:
|
|
1768
|
+
$ref: '#/components/schemas/UpdateSystemSettingDto'
|
|
1769
|
+
responses:
|
|
1770
|
+
'200':
|
|
1771
|
+
description: Setting updated
|
|
1772
|
+
security: *ref_30
|
|
1773
|
+
summary: Update a system setting (admin only)
|
|
1774
|
+
tags: *ref_31
|
|
1775
|
+
/admin/invites:
|
|
1264
1776
|
post:
|
|
1265
1777
|
operationId: create
|
|
1266
1778
|
parameters: []
|
|
@@ -1269,37 +1781,79 @@ paths:
|
|
|
1269
1781
|
content:
|
|
1270
1782
|
application/json:
|
|
1271
1783
|
schema:
|
|
1272
|
-
$ref: '#/components/schemas/
|
|
1784
|
+
$ref: '#/components/schemas/CreateInviteDto'
|
|
1273
1785
|
responses:
|
|
1274
1786
|
'201':
|
|
1275
|
-
description:
|
|
1276
|
-
|
|
1277
|
-
application/json:
|
|
1278
|
-
schema:
|
|
1279
|
-
$ref: '#/components/schemas/ApiKeyResponseDto'
|
|
1280
|
-
security: &ref_23
|
|
1787
|
+
description: Invitation created and email "sent"
|
|
1788
|
+
security: &ref_32
|
|
1281
1789
|
- bearer: []
|
|
1282
|
-
summary: Create a new
|
|
1283
|
-
tags: &
|
|
1284
|
-
-
|
|
1790
|
+
summary: Create a new invitation (admin only)
|
|
1791
|
+
tags: &ref_33
|
|
1792
|
+
- Admin / Invites
|
|
1285
1793
|
get:
|
|
1286
|
-
operationId:
|
|
1287
|
-
parameters:
|
|
1794
|
+
operationId: listAll
|
|
1795
|
+
parameters:
|
|
1796
|
+
- name: page
|
|
1797
|
+
required: false
|
|
1798
|
+
in: query
|
|
1799
|
+
schema:
|
|
1800
|
+
default: 1
|
|
1801
|
+
example: 1
|
|
1802
|
+
type: number
|
|
1803
|
+
- name: limit
|
|
1804
|
+
required: false
|
|
1805
|
+
in: query
|
|
1806
|
+
schema:
|
|
1807
|
+
default: 20
|
|
1808
|
+
example: 20
|
|
1809
|
+
type: number
|
|
1810
|
+
responses:
|
|
1811
|
+
'200':
|
|
1812
|
+
description: Paginated list of invitations
|
|
1813
|
+
security: *ref_32
|
|
1814
|
+
summary: List all invitations (admin only)
|
|
1815
|
+
tags: *ref_33
|
|
1816
|
+
/admin/invites/{id}/resend:
|
|
1817
|
+
post:
|
|
1818
|
+
operationId: resend
|
|
1819
|
+
parameters:
|
|
1820
|
+
- name: id
|
|
1821
|
+
required: true
|
|
1822
|
+
in: path
|
|
1823
|
+
schema:
|
|
1824
|
+
type: string
|
|
1825
|
+
responses:
|
|
1826
|
+
'200':
|
|
1827
|
+
description: Invitation email resent
|
|
1828
|
+
'404':
|
|
1829
|
+
description: Invitation not found
|
|
1830
|
+
'409':
|
|
1831
|
+
description: Invitation cannot be resent
|
|
1832
|
+
security: *ref_32
|
|
1833
|
+
summary: Resend an invitation email (admin only)
|
|
1834
|
+
tags: *ref_33
|
|
1835
|
+
/admin/invites/{id}:
|
|
1836
|
+
delete:
|
|
1837
|
+
operationId: revoke
|
|
1838
|
+
parameters:
|
|
1839
|
+
- name: id
|
|
1840
|
+
required: true
|
|
1841
|
+
in: path
|
|
1842
|
+
schema:
|
|
1843
|
+
type: string
|
|
1288
1844
|
responses:
|
|
1289
1845
|
'200':
|
|
1290
|
-
description:
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
tags: *ref_24
|
|
1300
|
-
/api-keys/{id}:
|
|
1846
|
+
description: Invitation revoked
|
|
1847
|
+
'404':
|
|
1848
|
+
description: Invitation not found
|
|
1849
|
+
'409':
|
|
1850
|
+
description: Invitation cannot be revoked
|
|
1851
|
+
security: *ref_32
|
|
1852
|
+
summary: Revoke an invitation (admin only)
|
|
1853
|
+
tags: *ref_33
|
|
1854
|
+
/admin/invites/{id}/delete:
|
|
1301
1855
|
delete:
|
|
1302
|
-
operationId:
|
|
1856
|
+
operationId: deleteRevoked
|
|
1303
1857
|
parameters:
|
|
1304
1858
|
- name: id
|
|
1305
1859
|
required: true
|
|
@@ -1307,11 +1861,15 @@ paths:
|
|
|
1307
1861
|
schema:
|
|
1308
1862
|
type: string
|
|
1309
1863
|
responses:
|
|
1310
|
-
'
|
|
1311
|
-
description:
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1864
|
+
'200':
|
|
1865
|
+
description: Invitation permanently deleted
|
|
1866
|
+
'404':
|
|
1867
|
+
description: Invitation not found
|
|
1868
|
+
'409':
|
|
1869
|
+
description: Invitation must be revoked before deletion
|
|
1870
|
+
security: *ref_32
|
|
1871
|
+
summary: Permanently delete a revoked invitation (admin only)
|
|
1872
|
+
tags: *ref_33
|
|
1315
1873
|
info:
|
|
1316
1874
|
title: Quantix Personal Finance Manager API
|
|
1317
1875
|
description: >-
|
|
@@ -1360,7 +1918,7 @@ info:
|
|
|
1360
1918
|
|
|
1361
1919
|
Todos os endpoints da API são relativos a: `http://localhost:3000/api`
|
|
1362
1920
|
|
|
1363
|
-
version:
|
|
1921
|
+
version: 1.2.0
|
|
1364
1922
|
contact:
|
|
1365
1923
|
name: Quantix Support
|
|
1366
1924
|
url: https://github.com/marcosnunesmbs/quantix
|
|
@@ -1377,40 +1935,67 @@ components:
|
|
|
1377
1935
|
bearerFormat: JWT
|
|
1378
1936
|
type: http
|
|
1379
1937
|
schemas:
|
|
1380
|
-
|
|
1938
|
+
CreateSubscriptionDto:
|
|
1381
1939
|
type: object
|
|
1382
1940
|
properties:
|
|
1383
1941
|
name:
|
|
1384
1942
|
type: string
|
|
1385
|
-
description: Name of the
|
|
1386
|
-
example:
|
|
1387
|
-
|
|
1943
|
+
description: Name of the subscription (e.g., Netflix, Spotify)
|
|
1944
|
+
example: Netflix
|
|
1945
|
+
amount:
|
|
1946
|
+
type: number
|
|
1947
|
+
description: Monthly amount charged
|
|
1948
|
+
example: 55.9
|
|
1949
|
+
minimum: 0.01
|
|
1950
|
+
billingDay:
|
|
1951
|
+
type: number
|
|
1952
|
+
description: Day of the month when the subscription is charged (1-31)
|
|
1953
|
+
example: 15
|
|
1954
|
+
minimum: 1
|
|
1955
|
+
maximum: 31
|
|
1956
|
+
creditCardId:
|
|
1388
1957
|
type: string
|
|
1389
|
-
description:
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
type: object
|
|
1396
|
-
description: Color for the category in hexadecimal format
|
|
1397
|
-
example: '#FF5733'
|
|
1398
|
-
nullable: true
|
|
1958
|
+
description: ID of the credit card used for this subscription
|
|
1959
|
+
example: cc_123456789
|
|
1960
|
+
categoryId:
|
|
1961
|
+
type: string
|
|
1962
|
+
description: ID of the expense category
|
|
1963
|
+
example: cat_123456789
|
|
1399
1964
|
required:
|
|
1400
1965
|
- name
|
|
1401
|
-
-
|
|
1402
|
-
|
|
1966
|
+
- amount
|
|
1967
|
+
- billingDay
|
|
1968
|
+
- creditCardId
|
|
1969
|
+
UpdateSubscriptionDto:
|
|
1403
1970
|
type: object
|
|
1404
1971
|
properties:
|
|
1405
1972
|
name:
|
|
1406
1973
|
type: string
|
|
1407
|
-
description: Name of the
|
|
1408
|
-
example:
|
|
1409
|
-
|
|
1410
|
-
type:
|
|
1411
|
-
description:
|
|
1412
|
-
example:
|
|
1413
|
-
|
|
1974
|
+
description: Name of the subscription
|
|
1975
|
+
example: Netflix Premium
|
|
1976
|
+
amount:
|
|
1977
|
+
type: number
|
|
1978
|
+
description: Monthly amount charged
|
|
1979
|
+
example: 79.9
|
|
1980
|
+
minimum: 0.01
|
|
1981
|
+
billingDay:
|
|
1982
|
+
type: number
|
|
1983
|
+
description: Day of the month when the subscription is charged (1-31)
|
|
1984
|
+
example: 10
|
|
1985
|
+
minimum: 1
|
|
1986
|
+
maximum: 31
|
|
1987
|
+
creditCardId:
|
|
1988
|
+
type: string
|
|
1989
|
+
description: ID of the credit card used for this subscription
|
|
1990
|
+
example: cc_987654321
|
|
1991
|
+
categoryId:
|
|
1992
|
+
type: string
|
|
1993
|
+
description: ID of the expense category
|
|
1994
|
+
example: cat_123456789
|
|
1995
|
+
active:
|
|
1996
|
+
type: boolean
|
|
1997
|
+
description: Whether the subscription is active
|
|
1998
|
+
example: true
|
|
1414
1999
|
RegisterDto:
|
|
1415
2000
|
type: object
|
|
1416
2001
|
properties:
|
|
@@ -1424,6 +2009,9 @@ components:
|
|
|
1424
2009
|
type: string
|
|
1425
2010
|
description: User password
|
|
1426
2011
|
minLength: 6
|
|
2012
|
+
inviteCode:
|
|
2013
|
+
type: string
|
|
2014
|
+
description: Invitation code (required if invite mode is ON)
|
|
1427
2015
|
required:
|
|
1428
2016
|
- name
|
|
1429
2017
|
- email
|
|
@@ -1474,6 +2062,43 @@ components:
|
|
|
1474
2062
|
required:
|
|
1475
2063
|
- token
|
|
1476
2064
|
- newPassword
|
|
2065
|
+
SendMessageDto:
|
|
2066
|
+
type: object
|
|
2067
|
+
properties: {}
|
|
2068
|
+
CreateCategoryDto:
|
|
2069
|
+
type: object
|
|
2070
|
+
properties:
|
|
2071
|
+
name:
|
|
2072
|
+
type: string
|
|
2073
|
+
description: Name of the category
|
|
2074
|
+
example: Groceries
|
|
2075
|
+
type:
|
|
2076
|
+
type: string
|
|
2077
|
+
description: Type of the category
|
|
2078
|
+
enum:
|
|
2079
|
+
- INCOME
|
|
2080
|
+
- EXPENSE
|
|
2081
|
+
example: EXPENSE
|
|
2082
|
+
color:
|
|
2083
|
+
type: object
|
|
2084
|
+
description: Color for the category in hexadecimal format
|
|
2085
|
+
example: '#FF5733'
|
|
2086
|
+
nullable: true
|
|
2087
|
+
required:
|
|
2088
|
+
- name
|
|
2089
|
+
- type
|
|
2090
|
+
UpdateCategoryDto:
|
|
2091
|
+
type: object
|
|
2092
|
+
properties:
|
|
2093
|
+
name:
|
|
2094
|
+
type: string
|
|
2095
|
+
description: Name of the category
|
|
2096
|
+
example: Groceries
|
|
2097
|
+
color:
|
|
2098
|
+
type: object
|
|
2099
|
+
description: Color for the category in hexadecimal format
|
|
2100
|
+
example: '#FF5733'
|
|
2101
|
+
nullable: true
|
|
1477
2102
|
RecurrenceDto:
|
|
1478
2103
|
type: object
|
|
1479
2104
|
properties:
|
|
@@ -1491,8 +2116,8 @@ components:
|
|
|
1491
2116
|
example: 1
|
|
1492
2117
|
minimum: 1
|
|
1493
2118
|
startDate:
|
|
1494
|
-
type:
|
|
1495
|
-
description: Start date for recurrence
|
|
2119
|
+
type: string
|
|
2120
|
+
description: Start date for recurrence (defaults to transaction date)
|
|
1496
2121
|
example: '2026-01-30'
|
|
1497
2122
|
endDate:
|
|
1498
2123
|
type: string
|
|
@@ -1508,14 +2133,13 @@ components:
|
|
|
1508
2133
|
required:
|
|
1509
2134
|
- frequency
|
|
1510
2135
|
- interval
|
|
1511
|
-
- startDate
|
|
1512
2136
|
CreateTransactionDto:
|
|
1513
2137
|
type: object
|
|
1514
2138
|
properties:
|
|
1515
2139
|
type:
|
|
1516
2140
|
type: string
|
|
1517
2141
|
description: Type of the transaction
|
|
1518
|
-
enum: &
|
|
2142
|
+
enum: &ref_34
|
|
1519
2143
|
- INCOME
|
|
1520
2144
|
- EXPENSE
|
|
1521
2145
|
example: EXPENSE
|
|
@@ -1541,7 +2165,7 @@ components:
|
|
|
1541
2165
|
paymentMethod:
|
|
1542
2166
|
type: string
|
|
1543
2167
|
description: Method of payment
|
|
1544
|
-
enum: &
|
|
2168
|
+
enum: &ref_35
|
|
1545
2169
|
- CASH
|
|
1546
2170
|
- PIX
|
|
1547
2171
|
- DEBIT
|
|
@@ -1779,7 +2403,7 @@ components:
|
|
|
1779
2403
|
type:
|
|
1780
2404
|
type: string
|
|
1781
2405
|
description: Type of the transaction
|
|
1782
|
-
enum: *
|
|
2406
|
+
enum: *ref_34
|
|
1783
2407
|
example: EXPENSE
|
|
1784
2408
|
name:
|
|
1785
2409
|
type: object
|
|
@@ -1803,7 +2427,7 @@ components:
|
|
|
1803
2427
|
paymentMethod:
|
|
1804
2428
|
type: string
|
|
1805
2429
|
description: Method of payment
|
|
1806
|
-
enum: *
|
|
2430
|
+
enum: *ref_35
|
|
1807
2431
|
example: CREDIT
|
|
1808
2432
|
creditCardId:
|
|
1809
2433
|
type: string
|
|
@@ -1971,7 +2595,7 @@ components:
|
|
|
1971
2595
|
type:
|
|
1972
2596
|
type: string
|
|
1973
2597
|
description: Type of account
|
|
1974
|
-
enum: &
|
|
2598
|
+
enum: &ref_36
|
|
1975
2599
|
- BANK_ACCOUNT
|
|
1976
2600
|
- WALLET
|
|
1977
2601
|
- SAVINGS_ACCOUNT
|
|
@@ -2042,7 +2666,7 @@ components:
|
|
|
2042
2666
|
type:
|
|
2043
2667
|
type: string
|
|
2044
2668
|
description: Type of account
|
|
2045
|
-
enum: *
|
|
2669
|
+
enum: *ref_36
|
|
2046
2670
|
example: BANK_ACCOUNT
|
|
2047
2671
|
initialBalance:
|
|
2048
2672
|
type: number
|
|
@@ -2181,67 +2805,6 @@ components:
|
|
|
2181
2805
|
type: string
|
|
2182
2806
|
description: Date of the transfer (YYYY-MM-DD)
|
|
2183
2807
|
example: '2026-02-17'
|
|
2184
|
-
CreateSubscriptionDto:
|
|
2185
|
-
type: object
|
|
2186
|
-
properties:
|
|
2187
|
-
name:
|
|
2188
|
-
type: string
|
|
2189
|
-
description: Name of the subscription (e.g., Netflix, Spotify)
|
|
2190
|
-
example: Netflix
|
|
2191
|
-
amount:
|
|
2192
|
-
type: number
|
|
2193
|
-
description: Monthly amount charged
|
|
2194
|
-
example: 55.9
|
|
2195
|
-
minimum: 0.01
|
|
2196
|
-
billingDay:
|
|
2197
|
-
type: number
|
|
2198
|
-
description: Day of the month when the subscription is charged (1-31)
|
|
2199
|
-
example: 15
|
|
2200
|
-
minimum: 1
|
|
2201
|
-
maximum: 31
|
|
2202
|
-
creditCardId:
|
|
2203
|
-
type: string
|
|
2204
|
-
description: ID of the credit card used for this subscription
|
|
2205
|
-
example: cc_123456789
|
|
2206
|
-
categoryId:
|
|
2207
|
-
type: string
|
|
2208
|
-
description: ID of the expense category
|
|
2209
|
-
example: cat_123456789
|
|
2210
|
-
required:
|
|
2211
|
-
- name
|
|
2212
|
-
- amount
|
|
2213
|
-
- billingDay
|
|
2214
|
-
- creditCardId
|
|
2215
|
-
UpdateSubscriptionDto:
|
|
2216
|
-
type: object
|
|
2217
|
-
properties:
|
|
2218
|
-
name:
|
|
2219
|
-
type: string
|
|
2220
|
-
description: Name of the subscription
|
|
2221
|
-
example: Netflix Premium
|
|
2222
|
-
amount:
|
|
2223
|
-
type: number
|
|
2224
|
-
description: Monthly amount charged
|
|
2225
|
-
example: 79.9
|
|
2226
|
-
minimum: 0.01
|
|
2227
|
-
billingDay:
|
|
2228
|
-
type: number
|
|
2229
|
-
description: Day of the month when the subscription is charged (1-31)
|
|
2230
|
-
example: 10
|
|
2231
|
-
minimum: 1
|
|
2232
|
-
maximum: 31
|
|
2233
|
-
creditCardId:
|
|
2234
|
-
type: string
|
|
2235
|
-
description: ID of the credit card used for this subscription
|
|
2236
|
-
example: cc_987654321
|
|
2237
|
-
categoryId:
|
|
2238
|
-
type: string
|
|
2239
|
-
description: ID of the expense category
|
|
2240
|
-
example: cat_123456789
|
|
2241
|
-
active:
|
|
2242
|
-
type: boolean
|
|
2243
|
-
description: Whether the subscription is active
|
|
2244
|
-
example: true
|
|
2245
2808
|
CreateApiKeyDto:
|
|
2246
2809
|
type: object
|
|
2247
2810
|
properties:
|
|
@@ -2275,5 +2838,132 @@ components:
|
|
|
2275
2838
|
- keyPrefix
|
|
2276
2839
|
- isActive
|
|
2277
2840
|
- createdAt
|
|
2841
|
+
AdminBroadcastEmailDto:
|
|
2842
|
+
type: object
|
|
2843
|
+
properties:
|
|
2844
|
+
body:
|
|
2845
|
+
type: string
|
|
2846
|
+
description: The HTML body of the email. Can include placeholders like {{name}}
|
|
2847
|
+
example: <h1>Olá {{name}}</h1><p>Esta é uma mensagem importante.</p>
|
|
2848
|
+
subject:
|
|
2849
|
+
type: string
|
|
2850
|
+
description: The subject line of the email
|
|
2851
|
+
example: Comunicado Importante
|
|
2852
|
+
sendToAll:
|
|
2853
|
+
type: boolean
|
|
2854
|
+
description: Whether to send to all active users
|
|
2855
|
+
default: false
|
|
2856
|
+
userIds:
|
|
2857
|
+
description: Specific user IDs to send to (ignored if sendToAll is true)
|
|
2858
|
+
type: array
|
|
2859
|
+
items:
|
|
2860
|
+
type: string
|
|
2861
|
+
required:
|
|
2862
|
+
- body
|
|
2863
|
+
- subject
|
|
2864
|
+
- sendToAll
|
|
2865
|
+
AdminPreviewEmailDto:
|
|
2866
|
+
type: object
|
|
2867
|
+
properties:
|
|
2868
|
+
body:
|
|
2869
|
+
type: string
|
|
2870
|
+
description: >-
|
|
2871
|
+
The HTML body of the email. Supports shortcodes like
|
|
2872
|
+
{{button:Label|url}} and variables like {{name}}
|
|
2873
|
+
example: >-
|
|
2874
|
+
<h2>Olá {{name}}</h2><p>Novidades!</p>{{button:Ver
|
|
2875
|
+
mais|https://quantix.app}}
|
|
2876
|
+
context:
|
|
2877
|
+
type: object
|
|
2878
|
+
description: Optional context to override default preview variable values
|
|
2879
|
+
example:
|
|
2880
|
+
name: João Silva
|
|
2881
|
+
required:
|
|
2882
|
+
- body
|
|
2883
|
+
AdminUpdateUserDto:
|
|
2884
|
+
type: object
|
|
2885
|
+
properties:
|
|
2886
|
+
name:
|
|
2887
|
+
type: string
|
|
2888
|
+
example: New Name
|
|
2889
|
+
email:
|
|
2890
|
+
type: string
|
|
2891
|
+
example: new@email.com
|
|
2892
|
+
role:
|
|
2893
|
+
type: string
|
|
2894
|
+
enum:
|
|
2895
|
+
- USER
|
|
2896
|
+
- ADMIN
|
|
2897
|
+
example: ADMIN
|
|
2898
|
+
CreateAIModelDto:
|
|
2899
|
+
type: object
|
|
2900
|
+
properties:
|
|
2901
|
+
name:
|
|
2902
|
+
type: string
|
|
2903
|
+
example: anthropic/claude-3.5-sonnet
|
|
2904
|
+
inputPricePerMillion:
|
|
2905
|
+
type: number
|
|
2906
|
+
example: 3
|
|
2907
|
+
outputPricePerMillion:
|
|
2908
|
+
type: number
|
|
2909
|
+
example: 15
|
|
2910
|
+
provider:
|
|
2911
|
+
type: string
|
|
2912
|
+
example: Anthropic
|
|
2913
|
+
currency:
|
|
2914
|
+
type: string
|
|
2915
|
+
example: USD
|
|
2916
|
+
default: USD
|
|
2917
|
+
required:
|
|
2918
|
+
- name
|
|
2919
|
+
- inputPricePerMillion
|
|
2920
|
+
- outputPricePerMillion
|
|
2921
|
+
- provider
|
|
2922
|
+
- currency
|
|
2923
|
+
UpdateAIModelDto:
|
|
2924
|
+
type: object
|
|
2925
|
+
properties:
|
|
2926
|
+
name:
|
|
2927
|
+
type: string
|
|
2928
|
+
example: anthropic/claude-3.5-sonnet
|
|
2929
|
+
inputPricePerMillion:
|
|
2930
|
+
type: number
|
|
2931
|
+
example: 3
|
|
2932
|
+
outputPricePerMillion:
|
|
2933
|
+
type: number
|
|
2934
|
+
example: 15
|
|
2935
|
+
provider:
|
|
2936
|
+
type: string
|
|
2937
|
+
example: Anthropic
|
|
2938
|
+
currency:
|
|
2939
|
+
type: string
|
|
2940
|
+
example: USD
|
|
2941
|
+
default: USD
|
|
2942
|
+
UpdateSystemSettingDto:
|
|
2943
|
+
type: object
|
|
2944
|
+
properties:
|
|
2945
|
+
value:
|
|
2946
|
+
type: string
|
|
2947
|
+
description: Value for the setting
|
|
2948
|
+
example: 'true'
|
|
2949
|
+
type:
|
|
2950
|
+
type: string
|
|
2951
|
+
description: Type of the setting value
|
|
2952
|
+
enum:
|
|
2953
|
+
- boolean
|
|
2954
|
+
- numeric
|
|
2955
|
+
- string
|
|
2956
|
+
example: boolean
|
|
2957
|
+
required:
|
|
2958
|
+
- value
|
|
2959
|
+
CreateInviteDto:
|
|
2960
|
+
type: object
|
|
2961
|
+
properties:
|
|
2962
|
+
email:
|
|
2963
|
+
type: string
|
|
2964
|
+
description: Email to invite
|
|
2965
|
+
example: guest@example.com
|
|
2966
|
+
required:
|
|
2967
|
+
- email
|
|
2278
2968
|
security:
|
|
2279
2969
|
- bearer: []
|