quantix-mcp 0.4.9 → 0.5.3
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/README.md +12 -1
- package/dist/index.js +20 -5
- package/dist/index.js.map +1 -1
- package/dist/tools/subscriptions.d.ts.map +1 -1
- package/dist/tools/subscriptions.js +46 -1
- package/dist/tools/subscriptions.js.map +1 -1
- package/dist/tools/transactions.d.ts.map +1 -1
- package/dist/tools/transactions.js +5 -5
- package/dist/tools/transactions.js.map +1 -1
- package/dist/types/schemas.d.ts +17 -0
- package/dist/types/schemas.d.ts.map +1 -1
- package/dist/types/schemas.js +21 -4
- package/dist/types/schemas.js.map +1 -1
- package/package.json +9 -4
- package/.claude/commands/opsx/apply.md +0 -152
- package/.claude/commands/opsx/archive.md +0 -157
- package/.claude/commands/opsx/bulk-archive.md +0 -242
- package/.claude/commands/opsx/continue.md +0 -114
- package/.claude/commands/opsx/explore.md +0 -174
- package/.claude/commands/opsx/ff.md +0 -94
- package/.claude/commands/opsx/new.md +0 -69
- package/.claude/commands/opsx/onboard.md +0 -525
- package/.claude/commands/opsx/sync.md +0 -134
- package/.claude/commands/opsx/verify.md +0 -164
- package/.claude/settings.local.json +0 -9
- package/.claude/skills/openspec-apply-change/SKILL.md +0 -156
- package/.claude/skills/openspec-archive-change/SKILL.md +0 -114
- package/.claude/skills/openspec-bulk-archive-change/SKILL.md +0 -246
- package/.claude/skills/openspec-continue-change/SKILL.md +0 -118
- package/.claude/skills/openspec-explore/SKILL.md +0 -290
- package/.claude/skills/openspec-ff-change/SKILL.md +0 -101
- package/.claude/skills/openspec-new-change/SKILL.md +0 -74
- package/.claude/skills/openspec-onboard/SKILL.md +0 -529
- package/.claude/skills/openspec-sync-specs/SKILL.md +0 -138
- package/.claude/skills/openspec-verify-change/SKILL.md +0 -168
- package/.dockerignore +0 -8
- package/.gemini/commands/opsx/apply.toml +0 -149
- package/.gemini/commands/opsx/archive.toml +0 -154
- package/.gemini/commands/opsx/bulk-archive.toml +0 -239
- package/.gemini/commands/opsx/continue.toml +0 -111
- package/.gemini/commands/opsx/explore.toml +0 -171
- package/.gemini/commands/opsx/ff.toml +0 -91
- package/.gemini/commands/opsx/new.toml +0 -66
- package/.gemini/commands/opsx/onboard.toml +0 -522
- package/.gemini/commands/opsx/sync.toml +0 -131
- package/.gemini/commands/opsx/verify.toml +0 -161
- package/.gemini/skills/openspec-apply-change/SKILL.md +0 -156
- package/.gemini/skills/openspec-archive-change/SKILL.md +0 -114
- package/.gemini/skills/openspec-bulk-archive-change/SKILL.md +0 -246
- package/.gemini/skills/openspec-continue-change/SKILL.md +0 -118
- package/.gemini/skills/openspec-explore/SKILL.md +0 -290
- package/.gemini/skills/openspec-ff-change/SKILL.md +0 -101
- package/.gemini/skills/openspec-new-change/SKILL.md +0 -74
- package/.gemini/skills/openspec-onboard/SKILL.md +0 -529
- package/.gemini/skills/openspec-sync-specs/SKILL.md +0 -138
- package/.gemini/skills/openspec-verify-change/SKILL.md +0 -168
- package/.github/agents/copilot-instructions.md +0 -32
- package/.github/agents/speckit.analyze.agent.md +0 -184
- package/.github/agents/speckit.checklist.agent.md +0 -294
- package/.github/agents/speckit.clarify.agent.md +0 -181
- package/.github/agents/speckit.constitution.agent.md +0 -82
- package/.github/agents/speckit.implement.agent.md +0 -135
- package/.github/agents/speckit.plan.agent.md +0 -89
- package/.github/agents/speckit.specify.agent.md +0 -258
- package/.github/agents/speckit.tasks.agent.md +0 -137
- package/.github/agents/speckit.taskstoissues.agent.md +0 -30
- package/.github/copilot-instructions.md +0 -17
- package/.github/prompts/speckit.analyze.prompt.md +0 -3
- package/.github/prompts/speckit.checklist.prompt.md +0 -3
- package/.github/prompts/speckit.clarify.prompt.md +0 -3
- package/.github/prompts/speckit.constitution.prompt.md +0 -3
- package/.github/prompts/speckit.implement.prompt.md +0 -3
- package/.github/prompts/speckit.plan.prompt.md +0 -3
- package/.github/prompts/speckit.specify.prompt.md +0 -3
- package/.github/prompts/speckit.tasks.prompt.md +0 -3
- package/.github/prompts/speckit.taskstoissues.prompt.md +0 -3
- package/.github/workflows/publish.yaml +0 -29
- package/.opencode/command/speckit.analyze.md +0 -184
- package/.opencode/command/speckit.checklist.md +0 -294
- package/.opencode/command/speckit.clarify.md +0 -181
- package/.opencode/command/speckit.constitution.md +0 -84
- package/.opencode/command/speckit.implement.md +0 -135
- package/.opencode/command/speckit.plan.md +0 -89
- package/.opencode/command/speckit.specify.md +0 -258
- package/.opencode/command/speckit.tasks.md +0 -137
- package/.opencode/command/speckit.taskstoissues.md +0 -30
- package/.qwen/commands/opsx-apply.toml +0 -149
- package/.qwen/commands/opsx-archive.toml +0 -154
- package/.qwen/commands/opsx-bulk-archive.toml +0 -239
- package/.qwen/commands/opsx-continue.toml +0 -111
- package/.qwen/commands/opsx-explore.toml +0 -171
- package/.qwen/commands/opsx-ff.toml +0 -91
- package/.qwen/commands/opsx-new.toml +0 -66
- package/.qwen/commands/opsx-onboard.toml +0 -522
- package/.qwen/commands/opsx-sync.toml +0 -131
- package/.qwen/commands/opsx-verify.toml +0 -161
- package/.qwen/skills/openspec-apply-change/SKILL.md +0 -156
- package/.qwen/skills/openspec-archive-change/SKILL.md +0 -114
- package/.qwen/skills/openspec-bulk-archive-change/SKILL.md +0 -246
- package/.qwen/skills/openspec-continue-change/SKILL.md +0 -118
- package/.qwen/skills/openspec-explore/SKILL.md +0 -290
- package/.qwen/skills/openspec-ff-change/SKILL.md +0 -101
- package/.qwen/skills/openspec-new-change/SKILL.md +0 -74
- package/.qwen/skills/openspec-onboard/SKILL.md +0 -529
- package/.qwen/skills/openspec-sync-specs/SKILL.md +0 -138
- package/.qwen/skills/openspec-verify-change/SKILL.md +0 -168
- package/.specify/memory/constitution.md +0 -58
- package/.specify/scripts/powershell/check-prerequisites.ps1 +0 -148
- package/.specify/scripts/powershell/common.ps1 +0 -137
- package/.specify/scripts/powershell/create-new-feature.ps1 +0 -283
- package/.specify/scripts/powershell/setup-plan.ps1 +0 -61
- package/.specify/scripts/powershell/update-agent-context.ps1 +0 -448
- package/.specify/templates/agent-file-template.md +0 -28
- package/.specify/templates/checklist-template.md +0 -40
- package/.specify/templates/constitution-template.md +0 -50
- package/.specify/templates/plan-template.md +0 -104
- package/.specify/templates/spec-template.md +0 -115
- package/.specify/templates/tasks-template.md +0 -251
- package/.vscode/launch.json +0 -14
- package/.vscode/settings.json +0 -14
- package/.vscode/tasks.json +0 -15
- package/AGENTS.md +0 -117
- package/CLAUDE.md +0 -70
- package/Dockerfile +0 -30
- package/GEMINI.md +0 -117
- package/QWEN.md +0 -117
- package/docker-compose.yml +0 -15
- package/openapi.yaml +0 -3127
- package/openspec/README.md +0 -33
- package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/.openspec.yaml +0 -2
- package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/design.md +0 -60
- package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/proposal.md +0 -25
- package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/specs/credit-card-transactions/spec.md +0 -46
- package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/specs/transactions/spec.md +0 -42
- package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/tasks.md +0 -22
- package/openspec/config.yaml +0 -20
- package/openspec/specs/accounts/spec.md +0 -86
- package/openspec/specs/categories/spec.md +0 -78
- package/openspec/specs/credit-card-transactions/spec.md +0 -64
- package/openspec/specs/credit-cards/spec.md +0 -109
- package/openspec/specs/data/spec.md +0 -49
- package/openspec/specs/settings/spec.md +0 -48
- package/openspec/specs/subscriptions/spec.md +0 -85
- package/openspec/specs/summary/spec.md +0 -49
- package/openspec/specs/transactions/spec.md +0 -113
- package/openspec/specs/transfers/spec.md +0 -74
- package/specs/001-mcp-api-integration/checklists/requirements.md +0 -34
- package/specs/001-mcp-api-integration/contracts/openapi.yaml +0 -636
- package/specs/001-mcp-api-integration/data-model.md +0 -106
- package/specs/001-mcp-api-integration/plan.md +0 -73
- package/specs/001-mcp-api-integration/quickstart.md +0 -74
- package/specs/001-mcp-api-integration/research.md +0 -58
- package/specs/001-mcp-api-integration/spec.md +0 -119
- package/specs/001-mcp-api-integration/tasks.md +0 -64
- package/src/config.ts +0 -39
- package/src/index.ts +0 -99
- package/src/services/apiClient.ts +0 -55
- package/src/services/requestContext.ts +0 -11
- package/src/tools/accounts.ts +0 -122
- package/src/tools/categories.ts +0 -102
- package/src/tools/credit-cards.ts +0 -203
- package/src/tools/data.ts +0 -45
- package/src/tools/settings.ts +0 -64
- package/src/tools/subscriptions.ts +0 -159
- package/src/tools/summary.ts +0 -29
- package/src/tools/transactions.ts +0 -200
- package/src/tools/transfers.ts +0 -122
- package/src/types/schemas.ts +0 -333
- package/src/utils/toolHelpers.ts +0 -11
- package/tests/benchmark.test.d.ts +0 -2
- package/tests/benchmark.test.d.ts.map +0 -1
- package/tests/benchmark.test.js +0 -33
- package/tests/benchmark.test.js.map +0 -1
- package/tests/benchmark.test.ts +0 -38
- package/tests/server.test.d.ts +0 -2
- package/tests/server.test.d.ts.map +0 -1
- package/tests/server.test.js +0 -13
- package/tests/server.test.js.map +0 -1
- package/tests/server.test.ts +0 -14
- package/tests/setup.d.ts +0 -4
- package/tests/setup.d.ts.map +0 -1
- package/tests/setup.js +0 -17
- package/tests/setup.js.map +0 -1
- package/tests/setup.ts +0 -20
- package/tests/tools/accounts.test.ts +0 -159
- package/tests/tools/categories.test.d.ts +0 -2
- package/tests/tools/categories.test.d.ts.map +0 -1
- package/tests/tools/categories.test.js +0 -63
- package/tests/tools/categories.test.js.map +0 -1
- package/tests/tools/categories.test.ts +0 -120
- package/tests/tools/credit-cards.test.d.ts +0 -2
- package/tests/tools/credit-cards.test.d.ts.map +0 -1
- package/tests/tools/credit-cards.test.js +0 -71
- package/tests/tools/credit-cards.test.js.map +0 -1
- package/tests/tools/credit-cards.test.ts +0 -131
- package/tests/tools/data.test.ts +0 -100
- package/tests/tools/settings.test.ts +0 -116
- package/tests/tools/subscriptions.test.ts +0 -173
- package/tests/tools/summary.test.d.ts +0 -2
- package/tests/tools/summary.test.d.ts.map +0 -1
- package/tests/tools/summary.test.js +0 -36
- package/tests/tools/summary.test.js.map +0 -1
- package/tests/tools/summary.test.ts +0 -63
- package/tests/tools/transactions.test.d.ts +0 -2
- package/tests/tools/transactions.test.d.ts.map +0 -1
- package/tests/tools/transactions.test.js +0 -67
- package/tests/tools/transactions.test.js.map +0 -1
- package/tests/tools/transactions.test.ts +0 -133
- package/tests/tools/transfers.test.ts +0 -141
- package/tsconfig.json +0 -52
- package/vitest.config.d.ts +0 -3
- package/vitest.config.d.ts.map +0 -1
- package/vitest.config.js +0 -14
- package/vitest.config.js.map +0 -1
- package/vitest.config.ts +0 -14
package/openapi.yaml
DELETED
|
@@ -1,3127 +0,0 @@
|
|
|
1
|
-
openapi: 3.0.0
|
|
2
|
-
paths:
|
|
3
|
-
/:
|
|
4
|
-
get:
|
|
5
|
-
operationId: getHello
|
|
6
|
-
parameters: []
|
|
7
|
-
responses:
|
|
8
|
-
'200':
|
|
9
|
-
description: ''
|
|
10
|
-
tags:
|
|
11
|
-
- App
|
|
12
|
-
/subscriptions:
|
|
13
|
-
post:
|
|
14
|
-
operationId: create
|
|
15
|
-
parameters:
|
|
16
|
-
- &ref_0
|
|
17
|
-
name: x-api-key
|
|
18
|
-
in: header
|
|
19
|
-
required: false
|
|
20
|
-
schema:
|
|
21
|
-
type: string
|
|
22
|
-
requestBody:
|
|
23
|
-
required: true
|
|
24
|
-
content:
|
|
25
|
-
application/json:
|
|
26
|
-
schema:
|
|
27
|
-
$ref: '#/components/schemas/CreateSubscriptionDto'
|
|
28
|
-
responses:
|
|
29
|
-
'201':
|
|
30
|
-
description: Subscription created successfully.
|
|
31
|
-
'400':
|
|
32
|
-
description: Invalid input.
|
|
33
|
-
'404':
|
|
34
|
-
description: Credit card not found.
|
|
35
|
-
security: &ref_1
|
|
36
|
-
- bearer: []
|
|
37
|
-
summary: Create a new subscription
|
|
38
|
-
tags: &ref_2
|
|
39
|
-
- subscriptions
|
|
40
|
-
get:
|
|
41
|
-
operationId: findAll
|
|
42
|
-
parameters:
|
|
43
|
-
- *ref_0
|
|
44
|
-
responses:
|
|
45
|
-
'200':
|
|
46
|
-
description: List of subscriptions.
|
|
47
|
-
security: *ref_1
|
|
48
|
-
summary: Get all subscriptions
|
|
49
|
-
tags: *ref_2
|
|
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}:
|
|
62
|
-
get:
|
|
63
|
-
operationId: findOne
|
|
64
|
-
parameters:
|
|
65
|
-
- *ref_0
|
|
66
|
-
- name: id
|
|
67
|
-
required: true
|
|
68
|
-
in: path
|
|
69
|
-
schema:
|
|
70
|
-
type: string
|
|
71
|
-
responses:
|
|
72
|
-
'200':
|
|
73
|
-
description: Subscription found.
|
|
74
|
-
'404':
|
|
75
|
-
description: Subscription not found.
|
|
76
|
-
security: *ref_1
|
|
77
|
-
summary: Get a subscription by ID
|
|
78
|
-
tags: *ref_2
|
|
79
|
-
patch:
|
|
80
|
-
operationId: update
|
|
81
|
-
parameters:
|
|
82
|
-
- *ref_0
|
|
83
|
-
- name: id
|
|
84
|
-
required: true
|
|
85
|
-
in: path
|
|
86
|
-
schema:
|
|
87
|
-
type: string
|
|
88
|
-
requestBody:
|
|
89
|
-
required: true
|
|
90
|
-
content:
|
|
91
|
-
application/json:
|
|
92
|
-
schema:
|
|
93
|
-
$ref: '#/components/schemas/UpdateSubscriptionDto'
|
|
94
|
-
responses:
|
|
95
|
-
'200':
|
|
96
|
-
description: Subscription updated successfully.
|
|
97
|
-
'404':
|
|
98
|
-
description: Subscription or credit card not found.
|
|
99
|
-
security: *ref_1
|
|
100
|
-
summary: Update a subscription
|
|
101
|
-
tags: *ref_2
|
|
102
|
-
delete:
|
|
103
|
-
operationId: remove
|
|
104
|
-
parameters:
|
|
105
|
-
- *ref_0
|
|
106
|
-
- name: id
|
|
107
|
-
required: true
|
|
108
|
-
in: path
|
|
109
|
-
schema:
|
|
110
|
-
type: string
|
|
111
|
-
responses:
|
|
112
|
-
'200':
|
|
113
|
-
description: Subscription deactivated successfully.
|
|
114
|
-
'404':
|
|
115
|
-
description: Subscription not found.
|
|
116
|
-
security: *ref_1
|
|
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
|
|
154
|
-
tags: *ref_2
|
|
155
|
-
/auth/register:
|
|
156
|
-
post:
|
|
157
|
-
operationId: register
|
|
158
|
-
parameters: []
|
|
159
|
-
requestBody:
|
|
160
|
-
required: true
|
|
161
|
-
content:
|
|
162
|
-
application/json:
|
|
163
|
-
schema:
|
|
164
|
-
$ref: '#/components/schemas/RegisterDto'
|
|
165
|
-
responses:
|
|
166
|
-
'201':
|
|
167
|
-
description: User successfully registered
|
|
168
|
-
'409':
|
|
169
|
-
description: Email already exists
|
|
170
|
-
summary: Register a new user
|
|
171
|
-
tags: &ref_3
|
|
172
|
-
- auth
|
|
173
|
-
/auth/login:
|
|
174
|
-
post:
|
|
175
|
-
operationId: login
|
|
176
|
-
parameters:
|
|
177
|
-
- name: user-agent
|
|
178
|
-
required: true
|
|
179
|
-
in: header
|
|
180
|
-
schema:
|
|
181
|
-
type: string
|
|
182
|
-
requestBody:
|
|
183
|
-
required: true
|
|
184
|
-
content:
|
|
185
|
-
application/json:
|
|
186
|
-
schema:
|
|
187
|
-
$ref: '#/components/schemas/LoginDto'
|
|
188
|
-
responses:
|
|
189
|
-
'200':
|
|
190
|
-
description: Login successful, returns JWT
|
|
191
|
-
'401':
|
|
192
|
-
description: Invalid credentials
|
|
193
|
-
summary: Login with email and password
|
|
194
|
-
tags: *ref_3
|
|
195
|
-
/auth/refresh:
|
|
196
|
-
post:
|
|
197
|
-
operationId: refresh
|
|
198
|
-
parameters: []
|
|
199
|
-
responses:
|
|
200
|
-
'200':
|
|
201
|
-
description: Token refreshed successfully
|
|
202
|
-
'401':
|
|
203
|
-
description: Invalid refresh token
|
|
204
|
-
summary: Refresh access token using refresh token cookie
|
|
205
|
-
tags: *ref_3
|
|
206
|
-
/auth/logout:
|
|
207
|
-
post:
|
|
208
|
-
operationId: logout
|
|
209
|
-
parameters: []
|
|
210
|
-
responses:
|
|
211
|
-
'200':
|
|
212
|
-
description: Logout successful
|
|
213
|
-
security:
|
|
214
|
-
- bearer: []
|
|
215
|
-
summary: Logout and invalidate session
|
|
216
|
-
tags: *ref_3
|
|
217
|
-
/auth/change-password:
|
|
218
|
-
post:
|
|
219
|
-
operationId: changePassword
|
|
220
|
-
parameters: []
|
|
221
|
-
requestBody:
|
|
222
|
-
required: true
|
|
223
|
-
content:
|
|
224
|
-
application/json:
|
|
225
|
-
schema:
|
|
226
|
-
$ref: '#/components/schemas/ChangePasswordDto'
|
|
227
|
-
responses:
|
|
228
|
-
'200':
|
|
229
|
-
description: Password changed successfully
|
|
230
|
-
'401':
|
|
231
|
-
description: Current password incorrect
|
|
232
|
-
security:
|
|
233
|
-
- bearer: []
|
|
234
|
-
summary: Change authenticated user password
|
|
235
|
-
tags: *ref_3
|
|
236
|
-
/auth/forgot-password:
|
|
237
|
-
post:
|
|
238
|
-
operationId: forgotPassword
|
|
239
|
-
parameters: []
|
|
240
|
-
requestBody:
|
|
241
|
-
required: true
|
|
242
|
-
content:
|
|
243
|
-
application/json:
|
|
244
|
-
schema:
|
|
245
|
-
$ref: '#/components/schemas/ForgotPasswordDto'
|
|
246
|
-
responses:
|
|
247
|
-
'200':
|
|
248
|
-
description: If email exists, a reset link will be sent
|
|
249
|
-
summary: Request a password reset link
|
|
250
|
-
tags: *ref_3
|
|
251
|
-
/auth/reset-password:
|
|
252
|
-
post:
|
|
253
|
-
operationId: resetPassword
|
|
254
|
-
parameters: []
|
|
255
|
-
requestBody:
|
|
256
|
-
required: true
|
|
257
|
-
content:
|
|
258
|
-
application/json:
|
|
259
|
-
schema:
|
|
260
|
-
$ref: '#/components/schemas/ResetPasswordDto'
|
|
261
|
-
responses:
|
|
262
|
-
'200':
|
|
263
|
-
description: Password reset successfully
|
|
264
|
-
'400':
|
|
265
|
-
description: Invalid or expired token
|
|
266
|
-
summary: Reset password using token
|
|
267
|
-
tags: *ref_3
|
|
268
|
-
/auth/sessions:
|
|
269
|
-
get:
|
|
270
|
-
operationId: getSessions
|
|
271
|
-
parameters: []
|
|
272
|
-
responses:
|
|
273
|
-
'200':
|
|
274
|
-
description: Returns list of sessions
|
|
275
|
-
security:
|
|
276
|
-
- bearer: []
|
|
277
|
-
summary: List active sessions for current user
|
|
278
|
-
tags: *ref_3
|
|
279
|
-
delete:
|
|
280
|
-
operationId: revokeAllOtherSessions
|
|
281
|
-
parameters: []
|
|
282
|
-
responses:
|
|
283
|
-
'200':
|
|
284
|
-
description: Other sessions revoked successfully
|
|
285
|
-
security:
|
|
286
|
-
- bearer: []
|
|
287
|
-
summary: Revoke all other sessions
|
|
288
|
-
tags: *ref_3
|
|
289
|
-
/auth/sessions/{id}:
|
|
290
|
-
delete:
|
|
291
|
-
operationId: revokeSession
|
|
292
|
-
parameters:
|
|
293
|
-
- name: id
|
|
294
|
-
required: true
|
|
295
|
-
in: path
|
|
296
|
-
schema:
|
|
297
|
-
type: string
|
|
298
|
-
responses:
|
|
299
|
-
'200':
|
|
300
|
-
description: Session revoked successfully
|
|
301
|
-
security:
|
|
302
|
-
- bearer: []
|
|
303
|
-
summary: Revoke a specific session
|
|
304
|
-
tags: *ref_3
|
|
305
|
-
/auth/me:
|
|
306
|
-
get:
|
|
307
|
-
operationId: getProfile
|
|
308
|
-
parameters: []
|
|
309
|
-
responses:
|
|
310
|
-
'200':
|
|
311
|
-
description: Returns user profile
|
|
312
|
-
'401':
|
|
313
|
-
description: Unauthorized
|
|
314
|
-
security:
|
|
315
|
-
- bearer: []
|
|
316
|
-
summary: Get current user profile
|
|
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
|
|
475
|
-
/transactions:
|
|
476
|
-
post:
|
|
477
|
-
operationId: create
|
|
478
|
-
parameters:
|
|
479
|
-
- &ref_8
|
|
480
|
-
name: x-api-key
|
|
481
|
-
in: header
|
|
482
|
-
required: false
|
|
483
|
-
schema:
|
|
484
|
-
type: string
|
|
485
|
-
requestBody:
|
|
486
|
-
required: true
|
|
487
|
-
content:
|
|
488
|
-
application/json:
|
|
489
|
-
schema:
|
|
490
|
-
$ref: '#/components/schemas/CreateTransactionDto'
|
|
491
|
-
responses:
|
|
492
|
-
'201':
|
|
493
|
-
description: Transaction created successfully.
|
|
494
|
-
'400':
|
|
495
|
-
description: Invalid input. Use POST /transactions/credit for credit card transactions.
|
|
496
|
-
security: &ref_9
|
|
497
|
-
- bearer: []
|
|
498
|
-
summary: Create a new transaction (CASH, PIX, or DEBIT only)
|
|
499
|
-
tags: &ref_10
|
|
500
|
-
- transactions
|
|
501
|
-
get:
|
|
502
|
-
operationId: findAll
|
|
503
|
-
parameters:
|
|
504
|
-
- *ref_8
|
|
505
|
-
- name: month
|
|
506
|
-
required: false
|
|
507
|
-
in: query
|
|
508
|
-
description: Filter by month (YYYY-MM)
|
|
509
|
-
schema:
|
|
510
|
-
example: 2026-03
|
|
511
|
-
type: string
|
|
512
|
-
- name: accountId
|
|
513
|
-
required: false
|
|
514
|
-
in: query
|
|
515
|
-
description: Filter by account ID
|
|
516
|
-
schema:
|
|
517
|
-
example: acc_123456789
|
|
518
|
-
type: string
|
|
519
|
-
- name: categoryId
|
|
520
|
-
required: false
|
|
521
|
-
in: query
|
|
522
|
-
description: Filter by category ID
|
|
523
|
-
schema:
|
|
524
|
-
example: cat_123456789
|
|
525
|
-
type: string
|
|
526
|
-
- name: creditCardId
|
|
527
|
-
required: false
|
|
528
|
-
in: query
|
|
529
|
-
description: Filter by credit card ID
|
|
530
|
-
schema:
|
|
531
|
-
example: cc_123456789
|
|
532
|
-
type: string
|
|
533
|
-
- name: type
|
|
534
|
-
required: false
|
|
535
|
-
in: query
|
|
536
|
-
description: Filter by transaction type
|
|
537
|
-
schema:
|
|
538
|
-
example: EXPENSE
|
|
539
|
-
type: string
|
|
540
|
-
enum:
|
|
541
|
-
- INCOME
|
|
542
|
-
- EXPENSE
|
|
543
|
-
- name: startDate
|
|
544
|
-
required: false
|
|
545
|
-
in: query
|
|
546
|
-
description: Filter by start date (YYYY-MM-DD)
|
|
547
|
-
schema:
|
|
548
|
-
example: '2026-01-01'
|
|
549
|
-
type: string
|
|
550
|
-
- name: endDate
|
|
551
|
-
required: false
|
|
552
|
-
in: query
|
|
553
|
-
description: Filter by end date (YYYY-MM-DD)
|
|
554
|
-
schema:
|
|
555
|
-
example: '2026-01-31'
|
|
556
|
-
type: string
|
|
557
|
-
- name: paid
|
|
558
|
-
required: false
|
|
559
|
-
in: query
|
|
560
|
-
description: Filter by payment status (true = paid, false = unpaid)
|
|
561
|
-
schema:
|
|
562
|
-
example: false
|
|
563
|
-
type: boolean
|
|
564
|
-
responses:
|
|
565
|
-
'200':
|
|
566
|
-
description: List of transactions with related data.
|
|
567
|
-
content:
|
|
568
|
-
application/json:
|
|
569
|
-
schema:
|
|
570
|
-
type: array
|
|
571
|
-
items:
|
|
572
|
-
$ref: '#/components/schemas/TransactionWithRelationsDto'
|
|
573
|
-
security: *ref_9
|
|
574
|
-
summary: Get all transactions with optional filters
|
|
575
|
-
tags: *ref_10
|
|
576
|
-
/transactions/{id}:
|
|
577
|
-
get:
|
|
578
|
-
operationId: findOne
|
|
579
|
-
parameters:
|
|
580
|
-
- *ref_8
|
|
581
|
-
- name: id
|
|
582
|
-
required: true
|
|
583
|
-
in: path
|
|
584
|
-
schema:
|
|
585
|
-
type: string
|
|
586
|
-
responses:
|
|
587
|
-
'200':
|
|
588
|
-
description: Transaction found with related data.
|
|
589
|
-
content:
|
|
590
|
-
application/json:
|
|
591
|
-
schema:
|
|
592
|
-
$ref: '#/components/schemas/TransactionWithRelationsDto'
|
|
593
|
-
'404':
|
|
594
|
-
description: Transaction not found.
|
|
595
|
-
security: *ref_9
|
|
596
|
-
summary: Get a transaction by ID
|
|
597
|
-
tags: *ref_10
|
|
598
|
-
patch:
|
|
599
|
-
operationId: update
|
|
600
|
-
parameters:
|
|
601
|
-
- *ref_8
|
|
602
|
-
- name: id
|
|
603
|
-
required: true
|
|
604
|
-
in: path
|
|
605
|
-
schema:
|
|
606
|
-
type: string
|
|
607
|
-
- name: mode
|
|
608
|
-
required: false
|
|
609
|
-
in: query
|
|
610
|
-
description: >-
|
|
611
|
-
Update mode for recurring transactions: SINGLE (only this
|
|
612
|
-
transaction), PENDING (this and future pending transactions), ALL
|
|
613
|
-
(all transactions in the series)
|
|
614
|
-
schema:
|
|
615
|
-
enum:
|
|
616
|
-
- SINGLE
|
|
617
|
-
- PENDING
|
|
618
|
-
- ALL
|
|
619
|
-
type: string
|
|
620
|
-
requestBody:
|
|
621
|
-
required: true
|
|
622
|
-
content:
|
|
623
|
-
application/json:
|
|
624
|
-
schema:
|
|
625
|
-
$ref: '#/components/schemas/UpdateTransactionDto'
|
|
626
|
-
responses:
|
|
627
|
-
'200':
|
|
628
|
-
description: Transaction updated successfully with related data.
|
|
629
|
-
content:
|
|
630
|
-
application/json:
|
|
631
|
-
schema:
|
|
632
|
-
$ref: '#/components/schemas/TransactionWithRelationsDto'
|
|
633
|
-
'404':
|
|
634
|
-
description: Transaction not found.
|
|
635
|
-
security: *ref_9
|
|
636
|
-
summary: Update a transaction (CASH, PIX, or DEBIT only)
|
|
637
|
-
tags: *ref_10
|
|
638
|
-
delete:
|
|
639
|
-
operationId: remove
|
|
640
|
-
parameters:
|
|
641
|
-
- *ref_8
|
|
642
|
-
- name: id
|
|
643
|
-
required: true
|
|
644
|
-
in: path
|
|
645
|
-
schema:
|
|
646
|
-
type: string
|
|
647
|
-
- name: mode
|
|
648
|
-
required: false
|
|
649
|
-
in: query
|
|
650
|
-
description: >-
|
|
651
|
-
Deletion mode for recurring transactions: SINGLE (only this
|
|
652
|
-
transaction), PENDING (this and future pending transactions), ALL
|
|
653
|
-
(all transactions in the series)
|
|
654
|
-
schema:
|
|
655
|
-
enum:
|
|
656
|
-
- SINGLE
|
|
657
|
-
- PENDING
|
|
658
|
-
- ALL
|
|
659
|
-
type: string
|
|
660
|
-
responses:
|
|
661
|
-
'200':
|
|
662
|
-
description: Transaction deleted successfully.
|
|
663
|
-
'404':
|
|
664
|
-
description: Transaction not found.
|
|
665
|
-
security: *ref_9
|
|
666
|
-
summary: Delete a transaction
|
|
667
|
-
tags: *ref_10
|
|
668
|
-
/transactions/{id}/pay:
|
|
669
|
-
patch:
|
|
670
|
-
operationId: markAsPaid
|
|
671
|
-
parameters:
|
|
672
|
-
- *ref_8
|
|
673
|
-
- name: id
|
|
674
|
-
required: true
|
|
675
|
-
in: path
|
|
676
|
-
schema:
|
|
677
|
-
type: string
|
|
678
|
-
responses:
|
|
679
|
-
'200':
|
|
680
|
-
description: Transaction marked as paid with related data.
|
|
681
|
-
content:
|
|
682
|
-
application/json:
|
|
683
|
-
schema:
|
|
684
|
-
$ref: '#/components/schemas/TransactionWithRelationsDto'
|
|
685
|
-
'404':
|
|
686
|
-
description: Transaction not found.
|
|
687
|
-
security: *ref_9
|
|
688
|
-
summary: Mark a transaction as paid
|
|
689
|
-
tags: *ref_10
|
|
690
|
-
/transactions/{id}/unpay:
|
|
691
|
-
patch:
|
|
692
|
-
operationId: markAsUnpaid
|
|
693
|
-
parameters:
|
|
694
|
-
- *ref_8
|
|
695
|
-
- name: id
|
|
696
|
-
required: true
|
|
697
|
-
in: path
|
|
698
|
-
schema:
|
|
699
|
-
type: string
|
|
700
|
-
responses:
|
|
701
|
-
'200':
|
|
702
|
-
description: Transaction marked as unpaid with related data.
|
|
703
|
-
content:
|
|
704
|
-
application/json:
|
|
705
|
-
schema:
|
|
706
|
-
$ref: '#/components/schemas/TransactionWithRelationsDto'
|
|
707
|
-
'404':
|
|
708
|
-
description: Transaction not found.
|
|
709
|
-
security: *ref_9
|
|
710
|
-
summary: Mark a transaction as unpaid
|
|
711
|
-
tags: *ref_10
|
|
712
|
-
/transactions/credit:
|
|
713
|
-
post:
|
|
714
|
-
operationId: createCreditCard
|
|
715
|
-
parameters:
|
|
716
|
-
- &ref_8
|
|
717
|
-
name: x-api-key
|
|
718
|
-
in: header
|
|
719
|
-
required: false
|
|
720
|
-
schema:
|
|
721
|
-
type: string
|
|
722
|
-
requestBody:
|
|
723
|
-
required: true
|
|
724
|
-
content:
|
|
725
|
-
application/json:
|
|
726
|
-
schema:
|
|
727
|
-
$ref: '#/components/schemas/CreateCreditCardTransactionDto'
|
|
728
|
-
responses:
|
|
729
|
-
'201':
|
|
730
|
-
description: Credit card transaction created successfully.
|
|
731
|
-
'400':
|
|
732
|
-
description: Invalid input.
|
|
733
|
-
security: *ref_9
|
|
734
|
-
summary: Create a new credit card transaction
|
|
735
|
-
description: Creates a credit card transaction. The due date is automatically calculated based on the purchase date and the card closing day. Use targetDueMonth to specify a particular billing month.
|
|
736
|
-
tags: *ref_10
|
|
737
|
-
/transactions/credit/{id}:
|
|
738
|
-
patch:
|
|
739
|
-
operationId: updateCreditCard
|
|
740
|
-
parameters:
|
|
741
|
-
- *ref_8
|
|
742
|
-
- name: id
|
|
743
|
-
required: true
|
|
744
|
-
in: path
|
|
745
|
-
schema:
|
|
746
|
-
type: string
|
|
747
|
-
requestBody:
|
|
748
|
-
required: true
|
|
749
|
-
content:
|
|
750
|
-
application/json:
|
|
751
|
-
schema:
|
|
752
|
-
$ref: '#/components/schemas/UpdateCreditCardTransactionDto'
|
|
753
|
-
responses:
|
|
754
|
-
'200':
|
|
755
|
-
description: Credit card transaction updated successfully.
|
|
756
|
-
content:
|
|
757
|
-
application/json:
|
|
758
|
-
schema:
|
|
759
|
-
$ref: '#/components/schemas/TransactionWithRelationsDto'
|
|
760
|
-
'404':
|
|
761
|
-
description: Transaction not found.
|
|
762
|
-
security: *ref_9
|
|
763
|
-
summary: Update a credit card transaction
|
|
764
|
-
description: Updates a credit card transaction. If purchaseDate or targetDueMonth is changed, the due date is recalculated.
|
|
765
|
-
tags: *ref_10
|
|
766
|
-
/summary:
|
|
767
|
-
get:
|
|
768
|
-
description: >-
|
|
769
|
-
Returns income, expenses, balance, credit card totals, and category
|
|
770
|
-
breakdowns. Provide either `month` (YYYY-MM) or both `startDate` and
|
|
771
|
-
`endDate` (YYYY-MM-DD).
|
|
772
|
-
operationId: getSummary
|
|
773
|
-
parameters:
|
|
774
|
-
- name: x-api-key
|
|
775
|
-
in: header
|
|
776
|
-
required: false
|
|
777
|
-
schema:
|
|
778
|
-
type: string
|
|
779
|
-
- name: month
|
|
780
|
-
required: false
|
|
781
|
-
in: query
|
|
782
|
-
description: Month for the summary in YYYY-MM format
|
|
783
|
-
schema:
|
|
784
|
-
example: 2026-02
|
|
785
|
-
type: string
|
|
786
|
-
- name: startDate
|
|
787
|
-
required: false
|
|
788
|
-
in: query
|
|
789
|
-
description: Start date for a custom range in YYYY-MM-DD format
|
|
790
|
-
schema:
|
|
791
|
-
example: '2026-01-01'
|
|
792
|
-
type: string
|
|
793
|
-
- name: endDate
|
|
794
|
-
required: false
|
|
795
|
-
in: query
|
|
796
|
-
description: End date for a custom range in YYYY-MM-DD format
|
|
797
|
-
schema:
|
|
798
|
-
example: '2026-03-31'
|
|
799
|
-
type: string
|
|
800
|
-
responses:
|
|
801
|
-
'200':
|
|
802
|
-
description: Financial summary for the given period.
|
|
803
|
-
'400':
|
|
804
|
-
description: Invalid or missing period parameters.
|
|
805
|
-
security:
|
|
806
|
-
- bearer: []
|
|
807
|
-
summary: Get financial summary
|
|
808
|
-
tags:
|
|
809
|
-
- summary
|
|
810
|
-
/credit-cards:
|
|
811
|
-
post:
|
|
812
|
-
operationId: create
|
|
813
|
-
parameters:
|
|
814
|
-
- &ref_11
|
|
815
|
-
name: x-api-key
|
|
816
|
-
in: header
|
|
817
|
-
required: false
|
|
818
|
-
schema:
|
|
819
|
-
type: string
|
|
820
|
-
requestBody:
|
|
821
|
-
required: true
|
|
822
|
-
content:
|
|
823
|
-
application/json:
|
|
824
|
-
schema:
|
|
825
|
-
$ref: '#/components/schemas/CreateCreditCardDto'
|
|
826
|
-
responses:
|
|
827
|
-
'201':
|
|
828
|
-
description: Credit card created successfully.
|
|
829
|
-
'400':
|
|
830
|
-
description: Invalid input.
|
|
831
|
-
security: &ref_12
|
|
832
|
-
- bearer: []
|
|
833
|
-
summary: Create a new credit card
|
|
834
|
-
tags: &ref_13
|
|
835
|
-
- credit-cards
|
|
836
|
-
get:
|
|
837
|
-
operationId: findAll
|
|
838
|
-
parameters:
|
|
839
|
-
- *ref_11
|
|
840
|
-
responses:
|
|
841
|
-
'200':
|
|
842
|
-
description: List of credit cards.
|
|
843
|
-
security: *ref_12
|
|
844
|
-
summary: Get all credit cards
|
|
845
|
-
tags: *ref_13
|
|
846
|
-
/credit-cards/{id}:
|
|
847
|
-
get:
|
|
848
|
-
operationId: findOne
|
|
849
|
-
parameters:
|
|
850
|
-
- *ref_11
|
|
851
|
-
- name: id
|
|
852
|
-
required: true
|
|
853
|
-
in: path
|
|
854
|
-
schema:
|
|
855
|
-
type: string
|
|
856
|
-
responses:
|
|
857
|
-
'200':
|
|
858
|
-
description: Credit card found.
|
|
859
|
-
'404':
|
|
860
|
-
description: Credit card not found.
|
|
861
|
-
security: *ref_12
|
|
862
|
-
summary: Get a credit card by ID
|
|
863
|
-
tags: *ref_13
|
|
864
|
-
patch:
|
|
865
|
-
operationId: update
|
|
866
|
-
parameters:
|
|
867
|
-
- *ref_11
|
|
868
|
-
- name: id
|
|
869
|
-
required: true
|
|
870
|
-
in: path
|
|
871
|
-
schema:
|
|
872
|
-
type: string
|
|
873
|
-
requestBody:
|
|
874
|
-
required: true
|
|
875
|
-
content:
|
|
876
|
-
application/json:
|
|
877
|
-
schema:
|
|
878
|
-
$ref: '#/components/schemas/UpdateCreditCardDto'
|
|
879
|
-
responses:
|
|
880
|
-
'200':
|
|
881
|
-
description: Credit card updated successfully.
|
|
882
|
-
'404':
|
|
883
|
-
description: Credit card not found.
|
|
884
|
-
security: *ref_12
|
|
885
|
-
summary: Update a credit card
|
|
886
|
-
tags: *ref_13
|
|
887
|
-
delete:
|
|
888
|
-
operationId: remove
|
|
889
|
-
parameters:
|
|
890
|
-
- *ref_11
|
|
891
|
-
- name: id
|
|
892
|
-
required: true
|
|
893
|
-
in: path
|
|
894
|
-
schema:
|
|
895
|
-
type: string
|
|
896
|
-
responses:
|
|
897
|
-
'200':
|
|
898
|
-
description: Credit card deleted successfully.
|
|
899
|
-
'404':
|
|
900
|
-
description: Credit card not found.
|
|
901
|
-
security: *ref_12
|
|
902
|
-
summary: Delete a credit card
|
|
903
|
-
tags: *ref_13
|
|
904
|
-
/credit-cards/{id}/statement:
|
|
905
|
-
get:
|
|
906
|
-
operationId: getStatement
|
|
907
|
-
parameters:
|
|
908
|
-
- *ref_11
|
|
909
|
-
- name: id
|
|
910
|
-
required: true
|
|
911
|
-
in: path
|
|
912
|
-
schema:
|
|
913
|
-
type: string
|
|
914
|
-
- name: month
|
|
915
|
-
required: true
|
|
916
|
-
in: query
|
|
917
|
-
description: Month for the statement in YYYY-MM format
|
|
918
|
-
schema:
|
|
919
|
-
example: 2026-03
|
|
920
|
-
type: string
|
|
921
|
-
responses:
|
|
922
|
-
'200':
|
|
923
|
-
description: Credit card statement.
|
|
924
|
-
'404':
|
|
925
|
-
description: Credit card not found.
|
|
926
|
-
security: *ref_12
|
|
927
|
-
summary: Get credit card statement for a specific month
|
|
928
|
-
tags: *ref_13
|
|
929
|
-
/credit-cards/{id}/pay-statement:
|
|
930
|
-
post:
|
|
931
|
-
operationId: payStatement
|
|
932
|
-
parameters:
|
|
933
|
-
- *ref_11
|
|
934
|
-
- name: id
|
|
935
|
-
required: true
|
|
936
|
-
in: path
|
|
937
|
-
schema:
|
|
938
|
-
type: string
|
|
939
|
-
requestBody:
|
|
940
|
-
required: true
|
|
941
|
-
content:
|
|
942
|
-
application/json:
|
|
943
|
-
schema:
|
|
944
|
-
$ref: '#/components/schemas/PayStatementDto'
|
|
945
|
-
responses:
|
|
946
|
-
'200':
|
|
947
|
-
description: Statement marked as paid.
|
|
948
|
-
'404':
|
|
949
|
-
description: Credit card not found.
|
|
950
|
-
security: *ref_12
|
|
951
|
-
summary: Mark all transactions in a credit card statement as paid
|
|
952
|
-
tags: *ref_13
|
|
953
|
-
/credit-cards/{id}/reopen-statement:
|
|
954
|
-
post:
|
|
955
|
-
operationId: reopenStatement
|
|
956
|
-
parameters:
|
|
957
|
-
- *ref_11
|
|
958
|
-
- name: id
|
|
959
|
-
required: true
|
|
960
|
-
in: path
|
|
961
|
-
schema:
|
|
962
|
-
type: string
|
|
963
|
-
requestBody:
|
|
964
|
-
required: true
|
|
965
|
-
content:
|
|
966
|
-
application/json:
|
|
967
|
-
schema:
|
|
968
|
-
$ref: '#/components/schemas/ReopenStatementDto'
|
|
969
|
-
responses:
|
|
970
|
-
'200':
|
|
971
|
-
description: Statement reopened successfully.
|
|
972
|
-
'400':
|
|
973
|
-
description: Statement is already open or invalid input.
|
|
974
|
-
'404':
|
|
975
|
-
description: Credit card not found.
|
|
976
|
-
security: *ref_12
|
|
977
|
-
summary: Reopen a credit card statement by marking all transactions as unpaid
|
|
978
|
-
tags: *ref_13
|
|
979
|
-
/credit-cards/{id}/statement-status:
|
|
980
|
-
get:
|
|
981
|
-
operationId: getStatementStatus
|
|
982
|
-
parameters:
|
|
983
|
-
- *ref_11
|
|
984
|
-
- name: id
|
|
985
|
-
required: true
|
|
986
|
-
in: path
|
|
987
|
-
schema:
|
|
988
|
-
type: string
|
|
989
|
-
- name: month
|
|
990
|
-
required: true
|
|
991
|
-
in: query
|
|
992
|
-
description: Month for the statement in YYYY-MM format
|
|
993
|
-
schema:
|
|
994
|
-
example: 2026-03
|
|
995
|
-
type: string
|
|
996
|
-
responses:
|
|
997
|
-
'200':
|
|
998
|
-
description: Credit card statement status.
|
|
999
|
-
'404':
|
|
1000
|
-
description: Credit card not found.
|
|
1001
|
-
security: *ref_12
|
|
1002
|
-
summary: Get credit card statement payment status for a specific month
|
|
1003
|
-
tags: *ref_13
|
|
1004
|
-
/credit-cards/{id}/anticipations:
|
|
1005
|
-
post:
|
|
1006
|
-
operationId: createAnticipation
|
|
1007
|
-
parameters:
|
|
1008
|
-
- *ref_11
|
|
1009
|
-
- name: id
|
|
1010
|
-
required: true
|
|
1011
|
-
in: path
|
|
1012
|
-
schema:
|
|
1013
|
-
type: string
|
|
1014
|
-
requestBody:
|
|
1015
|
-
required: true
|
|
1016
|
-
content:
|
|
1017
|
-
application/json:
|
|
1018
|
-
schema:
|
|
1019
|
-
$ref: '#/components/schemas/CreateAnticipationDto'
|
|
1020
|
-
responses:
|
|
1021
|
-
'201':
|
|
1022
|
-
description: >-
|
|
1023
|
-
Anticipation created: credit card INCOME + account EXPENSE linked
|
|
1024
|
-
pair.
|
|
1025
|
-
'400':
|
|
1026
|
-
description: Statement already closed or invalid input.
|
|
1027
|
-
'404':
|
|
1028
|
-
description: Credit card or account not found.
|
|
1029
|
-
security: *ref_12
|
|
1030
|
-
summary: Create a credit card anticipation (advance payment toward the statement)
|
|
1031
|
-
tags: *ref_13
|
|
1032
|
-
/accounts:
|
|
1033
|
-
post:
|
|
1034
|
-
operationId: create
|
|
1035
|
-
parameters:
|
|
1036
|
-
- &ref_14
|
|
1037
|
-
name: x-api-key
|
|
1038
|
-
in: header
|
|
1039
|
-
required: false
|
|
1040
|
-
schema:
|
|
1041
|
-
type: string
|
|
1042
|
-
requestBody:
|
|
1043
|
-
required: true
|
|
1044
|
-
content:
|
|
1045
|
-
application/json:
|
|
1046
|
-
schema:
|
|
1047
|
-
$ref: '#/components/schemas/CreateAccountDto'
|
|
1048
|
-
responses:
|
|
1049
|
-
'201':
|
|
1050
|
-
description: Account created successfully
|
|
1051
|
-
content:
|
|
1052
|
-
application/json:
|
|
1053
|
-
schema:
|
|
1054
|
-
$ref: '#/components/schemas/AccountResponseDto'
|
|
1055
|
-
'400':
|
|
1056
|
-
description: Invalid input data
|
|
1057
|
-
security: &ref_15
|
|
1058
|
-
- bearer: []
|
|
1059
|
-
summary: Create a new account
|
|
1060
|
-
tags: &ref_16
|
|
1061
|
-
- accounts
|
|
1062
|
-
get:
|
|
1063
|
-
operationId: findAll
|
|
1064
|
-
parameters:
|
|
1065
|
-
- *ref_14
|
|
1066
|
-
responses:
|
|
1067
|
-
'200':
|
|
1068
|
-
description: List of all accounts
|
|
1069
|
-
content:
|
|
1070
|
-
application/json:
|
|
1071
|
-
schema:
|
|
1072
|
-
type: array
|
|
1073
|
-
items:
|
|
1074
|
-
$ref: '#/components/schemas/AccountResponseDto'
|
|
1075
|
-
security: *ref_15
|
|
1076
|
-
summary: Get all accounts
|
|
1077
|
-
tags: *ref_16
|
|
1078
|
-
/accounts/{id}:
|
|
1079
|
-
get:
|
|
1080
|
-
operationId: findOne
|
|
1081
|
-
parameters:
|
|
1082
|
-
- *ref_14
|
|
1083
|
-
- name: id
|
|
1084
|
-
required: true
|
|
1085
|
-
in: path
|
|
1086
|
-
schema:
|
|
1087
|
-
type: string
|
|
1088
|
-
responses:
|
|
1089
|
-
'200':
|
|
1090
|
-
description: Account retrieved successfully
|
|
1091
|
-
content:
|
|
1092
|
-
application/json:
|
|
1093
|
-
schema:
|
|
1094
|
-
$ref: '#/components/schemas/AccountResponseDto'
|
|
1095
|
-
'404':
|
|
1096
|
-
description: Account not found
|
|
1097
|
-
security: *ref_15
|
|
1098
|
-
summary: Get an account by ID
|
|
1099
|
-
tags: *ref_16
|
|
1100
|
-
patch:
|
|
1101
|
-
operationId: update
|
|
1102
|
-
parameters:
|
|
1103
|
-
- *ref_14
|
|
1104
|
-
- name: id
|
|
1105
|
-
required: true
|
|
1106
|
-
in: path
|
|
1107
|
-
schema:
|
|
1108
|
-
type: string
|
|
1109
|
-
requestBody:
|
|
1110
|
-
required: true
|
|
1111
|
-
content:
|
|
1112
|
-
application/json:
|
|
1113
|
-
schema:
|
|
1114
|
-
$ref: '#/components/schemas/UpdateAccountDto'
|
|
1115
|
-
responses:
|
|
1116
|
-
'200':
|
|
1117
|
-
description: Account updated successfully
|
|
1118
|
-
content:
|
|
1119
|
-
application/json:
|
|
1120
|
-
schema:
|
|
1121
|
-
$ref: '#/components/schemas/AccountResponseDto'
|
|
1122
|
-
'404':
|
|
1123
|
-
description: Account not found
|
|
1124
|
-
security: *ref_15
|
|
1125
|
-
summary: Update an account
|
|
1126
|
-
tags: *ref_16
|
|
1127
|
-
delete:
|
|
1128
|
-
operationId: remove
|
|
1129
|
-
parameters:
|
|
1130
|
-
- *ref_14
|
|
1131
|
-
- name: id
|
|
1132
|
-
required: true
|
|
1133
|
-
in: path
|
|
1134
|
-
schema:
|
|
1135
|
-
type: string
|
|
1136
|
-
responses:
|
|
1137
|
-
'204':
|
|
1138
|
-
description: Account deleted successfully
|
|
1139
|
-
'404':
|
|
1140
|
-
description: Account not found
|
|
1141
|
-
'409':
|
|
1142
|
-
description: Cannot delete account with associated transactions
|
|
1143
|
-
security: *ref_15
|
|
1144
|
-
summary: Delete an account
|
|
1145
|
-
tags: *ref_16
|
|
1146
|
-
/accounts/{id}/balance:
|
|
1147
|
-
get:
|
|
1148
|
-
operationId: getAccountBalance
|
|
1149
|
-
parameters:
|
|
1150
|
-
- *ref_14
|
|
1151
|
-
- name: id
|
|
1152
|
-
required: true
|
|
1153
|
-
in: path
|
|
1154
|
-
schema:
|
|
1155
|
-
type: string
|
|
1156
|
-
responses:
|
|
1157
|
-
'200':
|
|
1158
|
-
description: Account balance retrieved successfully
|
|
1159
|
-
content:
|
|
1160
|
-
application/json:
|
|
1161
|
-
schema:
|
|
1162
|
-
type: object
|
|
1163
|
-
'404':
|
|
1164
|
-
description: Account not found
|
|
1165
|
-
security: *ref_15
|
|
1166
|
-
summary: Get the current balance for an account
|
|
1167
|
-
tags: *ref_16
|
|
1168
|
-
/settings:
|
|
1169
|
-
get:
|
|
1170
|
-
operationId: findAll
|
|
1171
|
-
parameters:
|
|
1172
|
-
- &ref_17
|
|
1173
|
-
name: x-api-key
|
|
1174
|
-
in: header
|
|
1175
|
-
required: false
|
|
1176
|
-
schema:
|
|
1177
|
-
type: string
|
|
1178
|
-
responses:
|
|
1179
|
-
'200':
|
|
1180
|
-
description: Settings retrieved successfully
|
|
1181
|
-
content:
|
|
1182
|
-
application/json:
|
|
1183
|
-
schema:
|
|
1184
|
-
$ref: '#/components/schemas/SettingsResponseDto'
|
|
1185
|
-
'404':
|
|
1186
|
-
description: Settings not found
|
|
1187
|
-
security: &ref_18
|
|
1188
|
-
- bearer: []
|
|
1189
|
-
summary: Get user settings
|
|
1190
|
-
tags: &ref_19
|
|
1191
|
-
- settings
|
|
1192
|
-
patch:
|
|
1193
|
-
operationId: update
|
|
1194
|
-
parameters:
|
|
1195
|
-
- *ref_17
|
|
1196
|
-
requestBody:
|
|
1197
|
-
required: true
|
|
1198
|
-
content:
|
|
1199
|
-
application/json:
|
|
1200
|
-
schema:
|
|
1201
|
-
$ref: '#/components/schemas/UpdateSettingsDto'
|
|
1202
|
-
responses:
|
|
1203
|
-
'200':
|
|
1204
|
-
description: Settings updated successfully
|
|
1205
|
-
content:
|
|
1206
|
-
application/json:
|
|
1207
|
-
schema:
|
|
1208
|
-
$ref: '#/components/schemas/SettingsResponseDto'
|
|
1209
|
-
'400':
|
|
1210
|
-
description: Invalid input data
|
|
1211
|
-
'404':
|
|
1212
|
-
description: Settings not found
|
|
1213
|
-
security: *ref_18
|
|
1214
|
-
summary: Update user settings
|
|
1215
|
-
tags: *ref_19
|
|
1216
|
-
/data-transfer/export:
|
|
1217
|
-
get:
|
|
1218
|
-
operationId: export
|
|
1219
|
-
parameters:
|
|
1220
|
-
- &ref_20
|
|
1221
|
-
name: x-api-key
|
|
1222
|
-
in: header
|
|
1223
|
-
required: false
|
|
1224
|
-
schema:
|
|
1225
|
-
type: string
|
|
1226
|
-
responses:
|
|
1227
|
-
'200':
|
|
1228
|
-
description: ''
|
|
1229
|
-
security: &ref_21
|
|
1230
|
-
- bearer: []
|
|
1231
|
-
summary: Export all user data to JSON
|
|
1232
|
-
tags: &ref_22
|
|
1233
|
-
- data-transfer
|
|
1234
|
-
/data-transfer/import:
|
|
1235
|
-
post:
|
|
1236
|
-
operationId: import
|
|
1237
|
-
parameters:
|
|
1238
|
-
- *ref_20
|
|
1239
|
-
requestBody:
|
|
1240
|
-
required: true
|
|
1241
|
-
content:
|
|
1242
|
-
application/json:
|
|
1243
|
-
schema:
|
|
1244
|
-
$ref: '#/components/schemas/ImportDataDto'
|
|
1245
|
-
responses:
|
|
1246
|
-
'201':
|
|
1247
|
-
description: ''
|
|
1248
|
-
security: *ref_21
|
|
1249
|
-
summary: Import data from JSON
|
|
1250
|
-
tags: *ref_22
|
|
1251
|
-
/transfers:
|
|
1252
|
-
post:
|
|
1253
|
-
operationId: create
|
|
1254
|
-
parameters:
|
|
1255
|
-
- &ref_23
|
|
1256
|
-
name: x-api-key
|
|
1257
|
-
in: header
|
|
1258
|
-
required: false
|
|
1259
|
-
schema:
|
|
1260
|
-
type: string
|
|
1261
|
-
requestBody:
|
|
1262
|
-
required: true
|
|
1263
|
-
content:
|
|
1264
|
-
application/json:
|
|
1265
|
-
schema:
|
|
1266
|
-
$ref: '#/components/schemas/CreateTransferDto'
|
|
1267
|
-
responses:
|
|
1268
|
-
'201':
|
|
1269
|
-
description: Transfer created
|
|
1270
|
-
content:
|
|
1271
|
-
application/json:
|
|
1272
|
-
schema:
|
|
1273
|
-
$ref: '#/components/schemas/TransferResponseDto'
|
|
1274
|
-
'400':
|
|
1275
|
-
description: Invalid input
|
|
1276
|
-
'404':
|
|
1277
|
-
description: Account not found
|
|
1278
|
-
security: &ref_24
|
|
1279
|
-
- bearer: []
|
|
1280
|
-
summary: Create a new transfer between accounts
|
|
1281
|
-
tags: &ref_25
|
|
1282
|
-
- transfers
|
|
1283
|
-
get:
|
|
1284
|
-
operationId: findAll
|
|
1285
|
-
parameters:
|
|
1286
|
-
- *ref_23
|
|
1287
|
-
- name: accountId
|
|
1288
|
-
required: false
|
|
1289
|
-
in: query
|
|
1290
|
-
description: Filter by account ID (source or destination)
|
|
1291
|
-
schema:
|
|
1292
|
-
type: string
|
|
1293
|
-
- name: month
|
|
1294
|
-
required: false
|
|
1295
|
-
in: query
|
|
1296
|
-
description: Filter by month (YYYY-MM format)
|
|
1297
|
-
schema:
|
|
1298
|
-
example: 2026-02
|
|
1299
|
-
type: string
|
|
1300
|
-
- name: startDate
|
|
1301
|
-
required: false
|
|
1302
|
-
in: query
|
|
1303
|
-
description: Filter from date (YYYY-MM-DD)
|
|
1304
|
-
schema:
|
|
1305
|
-
example: '2026-02-01'
|
|
1306
|
-
type: string
|
|
1307
|
-
- name: endDate
|
|
1308
|
-
required: false
|
|
1309
|
-
in: query
|
|
1310
|
-
description: Filter to date (YYYY-MM-DD)
|
|
1311
|
-
schema:
|
|
1312
|
-
example: '2026-02-28'
|
|
1313
|
-
type: string
|
|
1314
|
-
responses:
|
|
1315
|
-
'200':
|
|
1316
|
-
description: List of transfers
|
|
1317
|
-
content:
|
|
1318
|
-
application/json:
|
|
1319
|
-
schema:
|
|
1320
|
-
type: array
|
|
1321
|
-
items:
|
|
1322
|
-
$ref: '#/components/schemas/TransferResponseDto'
|
|
1323
|
-
security: *ref_24
|
|
1324
|
-
summary: List transfers with optional filters
|
|
1325
|
-
tags: *ref_25
|
|
1326
|
-
/transfers/{id}:
|
|
1327
|
-
get:
|
|
1328
|
-
operationId: findOne
|
|
1329
|
-
parameters:
|
|
1330
|
-
- *ref_23
|
|
1331
|
-
- name: id
|
|
1332
|
-
required: true
|
|
1333
|
-
in: path
|
|
1334
|
-
schema:
|
|
1335
|
-
type: string
|
|
1336
|
-
responses:
|
|
1337
|
-
'200':
|
|
1338
|
-
description: Transfer found
|
|
1339
|
-
content:
|
|
1340
|
-
application/json:
|
|
1341
|
-
schema:
|
|
1342
|
-
$ref: '#/components/schemas/TransferResponseDto'
|
|
1343
|
-
'404':
|
|
1344
|
-
description: Transfer not found
|
|
1345
|
-
security: *ref_24
|
|
1346
|
-
summary: Get a transfer by ID
|
|
1347
|
-
tags: *ref_25
|
|
1348
|
-
patch:
|
|
1349
|
-
operationId: update
|
|
1350
|
-
parameters:
|
|
1351
|
-
- *ref_23
|
|
1352
|
-
- name: id
|
|
1353
|
-
required: true
|
|
1354
|
-
in: path
|
|
1355
|
-
schema:
|
|
1356
|
-
type: string
|
|
1357
|
-
requestBody:
|
|
1358
|
-
required: true
|
|
1359
|
-
content:
|
|
1360
|
-
application/json:
|
|
1361
|
-
schema:
|
|
1362
|
-
$ref: '#/components/schemas/UpdateTransferDto'
|
|
1363
|
-
responses:
|
|
1364
|
-
'200':
|
|
1365
|
-
description: Transfer updated
|
|
1366
|
-
content:
|
|
1367
|
-
application/json:
|
|
1368
|
-
schema:
|
|
1369
|
-
$ref: '#/components/schemas/TransferResponseDto'
|
|
1370
|
-
'404':
|
|
1371
|
-
description: Transfer not found
|
|
1372
|
-
security: *ref_24
|
|
1373
|
-
summary: Update a transfer
|
|
1374
|
-
tags: *ref_25
|
|
1375
|
-
delete:
|
|
1376
|
-
operationId: remove
|
|
1377
|
-
parameters:
|
|
1378
|
-
- *ref_23
|
|
1379
|
-
- name: id
|
|
1380
|
-
required: true
|
|
1381
|
-
in: path
|
|
1382
|
-
schema:
|
|
1383
|
-
type: string
|
|
1384
|
-
responses:
|
|
1385
|
-
'204':
|
|
1386
|
-
description: Transfer deleted
|
|
1387
|
-
'404':
|
|
1388
|
-
description: Transfer not found
|
|
1389
|
-
security: *ref_24
|
|
1390
|
-
summary: Delete a transfer
|
|
1391
|
-
tags: *ref_25
|
|
1392
|
-
/api-keys:
|
|
1393
|
-
post:
|
|
1394
|
-
operationId: create
|
|
1395
|
-
parameters: []
|
|
1396
|
-
requestBody:
|
|
1397
|
-
required: true
|
|
1398
|
-
content:
|
|
1399
|
-
application/json:
|
|
1400
|
-
schema:
|
|
1401
|
-
$ref: '#/components/schemas/CreateApiKeyDto'
|
|
1402
|
-
responses:
|
|
1403
|
-
'201':
|
|
1404
|
-
description: ''
|
|
1405
|
-
content:
|
|
1406
|
-
application/json:
|
|
1407
|
-
schema:
|
|
1408
|
-
$ref: '#/components/schemas/ApiKeyResponseDto'
|
|
1409
|
-
security: &ref_26
|
|
1410
|
-
- bearer: []
|
|
1411
|
-
summary: Create a new API Key
|
|
1412
|
-
tags: &ref_27
|
|
1413
|
-
- api-keys
|
|
1414
|
-
get:
|
|
1415
|
-
operationId: findAll
|
|
1416
|
-
parameters: []
|
|
1417
|
-
responses:
|
|
1418
|
-
'200':
|
|
1419
|
-
description: ''
|
|
1420
|
-
content:
|
|
1421
|
-
application/json:
|
|
1422
|
-
schema:
|
|
1423
|
-
type: array
|
|
1424
|
-
items:
|
|
1425
|
-
$ref: '#/components/schemas/ApiKeyResponseDto'
|
|
1426
|
-
security: *ref_26
|
|
1427
|
-
summary: List your API Keys
|
|
1428
|
-
tags: *ref_27
|
|
1429
|
-
/api-keys/{id}:
|
|
1430
|
-
delete:
|
|
1431
|
-
operationId: revoke
|
|
1432
|
-
parameters:
|
|
1433
|
-
- name: id
|
|
1434
|
-
required: true
|
|
1435
|
-
in: path
|
|
1436
|
-
schema:
|
|
1437
|
-
type: string
|
|
1438
|
-
responses:
|
|
1439
|
-
'204':
|
|
1440
|
-
description: ''
|
|
1441
|
-
security: *ref_26
|
|
1442
|
-
summary: Revoke an API Key
|
|
1443
|
-
tags: *ref_27
|
|
1444
|
-
/admin/notifications/broadcast:
|
|
1445
|
-
post:
|
|
1446
|
-
description: >-
|
|
1447
|
-
Sends a custom HTML email to all active users or selected user IDs.
|
|
1448
|
-
Processes in background with a delay.
|
|
1449
|
-
operationId: broadcast
|
|
1450
|
-
parameters: []
|
|
1451
|
-
requestBody:
|
|
1452
|
-
required: true
|
|
1453
|
-
content:
|
|
1454
|
-
application/json:
|
|
1455
|
-
schema:
|
|
1456
|
-
$ref: '#/components/schemas/AdminBroadcastEmailDto'
|
|
1457
|
-
responses:
|
|
1458
|
-
'202':
|
|
1459
|
-
description: Broadcast started successfully
|
|
1460
|
-
security: &ref_28
|
|
1461
|
-
- bearer: []
|
|
1462
|
-
summary: Send a broadcast email to users (admin only)
|
|
1463
|
-
tags: &ref_29
|
|
1464
|
-
- Admin
|
|
1465
|
-
/admin/notifications/preview:
|
|
1466
|
-
post:
|
|
1467
|
-
description: >-
|
|
1468
|
-
Renders the email body with shortcodes, variables, and the base layout,
|
|
1469
|
-
returning the full HTML.
|
|
1470
|
-
operationId: previewEmail
|
|
1471
|
-
parameters: []
|
|
1472
|
-
requestBody:
|
|
1473
|
-
required: true
|
|
1474
|
-
content:
|
|
1475
|
-
application/json:
|
|
1476
|
-
schema:
|
|
1477
|
-
$ref: '#/components/schemas/AdminPreviewEmailDto'
|
|
1478
|
-
responses:
|
|
1479
|
-
'200':
|
|
1480
|
-
description: Rendered email HTML
|
|
1481
|
-
security: *ref_28
|
|
1482
|
-
summary: Preview a rendered email without sending (admin only)
|
|
1483
|
-
tags: *ref_29
|
|
1484
|
-
/admin/notifications/components:
|
|
1485
|
-
get:
|
|
1486
|
-
description: >-
|
|
1487
|
-
Returns the catalog of shortcode components with syntax, params, and
|
|
1488
|
-
preview HTML, plus available template variables.
|
|
1489
|
-
operationId: getEmailComponents
|
|
1490
|
-
parameters: []
|
|
1491
|
-
responses:
|
|
1492
|
-
'200':
|
|
1493
|
-
description: Email component catalog
|
|
1494
|
-
security: *ref_28
|
|
1495
|
-
summary: List available email components and template variables (admin only)
|
|
1496
|
-
tags: *ref_29
|
|
1497
|
-
/admin/users:
|
|
1498
|
-
get:
|
|
1499
|
-
operationId: listUsers
|
|
1500
|
-
parameters:
|
|
1501
|
-
- name: page
|
|
1502
|
-
required: false
|
|
1503
|
-
in: query
|
|
1504
|
-
schema:
|
|
1505
|
-
default: 1
|
|
1506
|
-
example: 1
|
|
1507
|
-
type: number
|
|
1508
|
-
- name: limit
|
|
1509
|
-
required: false
|
|
1510
|
-
in: query
|
|
1511
|
-
schema:
|
|
1512
|
-
default: 20
|
|
1513
|
-
example: 20
|
|
1514
|
-
type: number
|
|
1515
|
-
responses:
|
|
1516
|
-
'200':
|
|
1517
|
-
description: Paginated list of users
|
|
1518
|
-
security: *ref_28
|
|
1519
|
-
summary: List all users (admin only)
|
|
1520
|
-
tags: *ref_29
|
|
1521
|
-
/admin/users/{id}:
|
|
1522
|
-
get:
|
|
1523
|
-
operationId: getUserById
|
|
1524
|
-
parameters:
|
|
1525
|
-
- name: id
|
|
1526
|
-
required: true
|
|
1527
|
-
in: path
|
|
1528
|
-
schema:
|
|
1529
|
-
type: string
|
|
1530
|
-
responses:
|
|
1531
|
-
'200':
|
|
1532
|
-
description: User details
|
|
1533
|
-
'404':
|
|
1534
|
-
description: User not found
|
|
1535
|
-
security: *ref_28
|
|
1536
|
-
summary: Get user details (admin only)
|
|
1537
|
-
tags: *ref_29
|
|
1538
|
-
patch:
|
|
1539
|
-
operationId: updateUser
|
|
1540
|
-
parameters:
|
|
1541
|
-
- name: id
|
|
1542
|
-
required: true
|
|
1543
|
-
in: path
|
|
1544
|
-
schema:
|
|
1545
|
-
type: string
|
|
1546
|
-
requestBody:
|
|
1547
|
-
required: true
|
|
1548
|
-
content:
|
|
1549
|
-
application/json:
|
|
1550
|
-
schema:
|
|
1551
|
-
$ref: '#/components/schemas/AdminUpdateUserDto'
|
|
1552
|
-
responses:
|
|
1553
|
-
'200':
|
|
1554
|
-
description: Updated user
|
|
1555
|
-
'404':
|
|
1556
|
-
description: User not found
|
|
1557
|
-
'409':
|
|
1558
|
-
description: Email already in use
|
|
1559
|
-
security: *ref_28
|
|
1560
|
-
summary: Update user name, email or role (admin only)
|
|
1561
|
-
tags: *ref_29
|
|
1562
|
-
/admin/users/{id}/reset-password:
|
|
1563
|
-
post:
|
|
1564
|
-
operationId: resetPassword
|
|
1565
|
-
parameters:
|
|
1566
|
-
- name: id
|
|
1567
|
-
required: true
|
|
1568
|
-
in: path
|
|
1569
|
-
schema:
|
|
1570
|
-
type: string
|
|
1571
|
-
responses:
|
|
1572
|
-
'200':
|
|
1573
|
-
description: Temporary password generated
|
|
1574
|
-
'400':
|
|
1575
|
-
description: Cannot reset own password
|
|
1576
|
-
'404':
|
|
1577
|
-
description: User not found
|
|
1578
|
-
security: *ref_28
|
|
1579
|
-
summary: Reset user password (admin only)
|
|
1580
|
-
tags: *ref_29
|
|
1581
|
-
/admin/users/{id}/deactivate:
|
|
1582
|
-
patch:
|
|
1583
|
-
operationId: deactivateUser
|
|
1584
|
-
parameters:
|
|
1585
|
-
- name: id
|
|
1586
|
-
required: true
|
|
1587
|
-
in: path
|
|
1588
|
-
schema:
|
|
1589
|
-
type: string
|
|
1590
|
-
responses:
|
|
1591
|
-
'200':
|
|
1592
|
-
description: User deactivated
|
|
1593
|
-
'400':
|
|
1594
|
-
description: Cannot deactivate self
|
|
1595
|
-
'409':
|
|
1596
|
-
description: Cannot deactivate last admin
|
|
1597
|
-
security: *ref_28
|
|
1598
|
-
summary: Deactivate a user (admin only)
|
|
1599
|
-
tags: *ref_29
|
|
1600
|
-
/admin/users/{id}/activate:
|
|
1601
|
-
patch:
|
|
1602
|
-
operationId: activateUser
|
|
1603
|
-
parameters:
|
|
1604
|
-
- name: id
|
|
1605
|
-
required: true
|
|
1606
|
-
in: path
|
|
1607
|
-
schema:
|
|
1608
|
-
type: string
|
|
1609
|
-
responses:
|
|
1610
|
-
'200':
|
|
1611
|
-
description: User activated
|
|
1612
|
-
'404':
|
|
1613
|
-
description: User not found
|
|
1614
|
-
security: *ref_28
|
|
1615
|
-
summary: Activate a user (admin only)
|
|
1616
|
-
tags: *ref_29
|
|
1617
|
-
/admin/stats:
|
|
1618
|
-
get:
|
|
1619
|
-
operationId: getOverviewStats
|
|
1620
|
-
parameters:
|
|
1621
|
-
- name: from
|
|
1622
|
-
required: false
|
|
1623
|
-
in: query
|
|
1624
|
-
description: Start date (YYYY-MM-DD)
|
|
1625
|
-
schema:
|
|
1626
|
-
example: '2026-03-01'
|
|
1627
|
-
type: string
|
|
1628
|
-
- name: to
|
|
1629
|
-
required: false
|
|
1630
|
-
in: query
|
|
1631
|
-
description: End date (YYYY-MM-DD)
|
|
1632
|
-
schema:
|
|
1633
|
-
example: '2026-03-31'
|
|
1634
|
-
type: string
|
|
1635
|
-
responses:
|
|
1636
|
-
'200':
|
|
1637
|
-
description: System overview stats
|
|
1638
|
-
security: *ref_28
|
|
1639
|
-
summary: Get system overview statistics (admin only)
|
|
1640
|
-
tags: *ref_29
|
|
1641
|
-
/admin/stats/transactions:
|
|
1642
|
-
get:
|
|
1643
|
-
operationId: getTransactionStats
|
|
1644
|
-
parameters:
|
|
1645
|
-
- name: from
|
|
1646
|
-
required: false
|
|
1647
|
-
in: query
|
|
1648
|
-
description: Start date (YYYY-MM-DD)
|
|
1649
|
-
schema:
|
|
1650
|
-
example: '2026-03-01'
|
|
1651
|
-
type: string
|
|
1652
|
-
- name: to
|
|
1653
|
-
required: false
|
|
1654
|
-
in: query
|
|
1655
|
-
description: End date (YYYY-MM-DD)
|
|
1656
|
-
schema:
|
|
1657
|
-
example: '2026-03-31'
|
|
1658
|
-
type: string
|
|
1659
|
-
responses:
|
|
1660
|
-
'200':
|
|
1661
|
-
description: Transaction stats
|
|
1662
|
-
'400':
|
|
1663
|
-
description: Invalid date range
|
|
1664
|
-
security: *ref_28
|
|
1665
|
-
summary: Get transaction statistics by date range (admin only)
|
|
1666
|
-
tags: *ref_29
|
|
1667
|
-
/admin/stats/chat:
|
|
1668
|
-
get:
|
|
1669
|
-
operationId: getChatStats
|
|
1670
|
-
parameters: []
|
|
1671
|
-
responses:
|
|
1672
|
-
'200':
|
|
1673
|
-
description: Chat usage statistics
|
|
1674
|
-
security: *ref_28
|
|
1675
|
-
summary: Get chat and token statistics (admin only)
|
|
1676
|
-
tags: *ref_29
|
|
1677
|
-
/admin/stats/audio:
|
|
1678
|
-
get:
|
|
1679
|
-
operationId: getAudioStats
|
|
1680
|
-
parameters: []
|
|
1681
|
-
responses:
|
|
1682
|
-
'200':
|
|
1683
|
-
description: Audio transcription usage statistics
|
|
1684
|
-
security: *ref_28
|
|
1685
|
-
summary: Get audio transcription statistics (admin only)
|
|
1686
|
-
tags: *ref_29
|
|
1687
|
-
/admin/ai-models:
|
|
1688
|
-
get:
|
|
1689
|
-
operationId: listAIModels
|
|
1690
|
-
parameters: []
|
|
1691
|
-
responses:
|
|
1692
|
-
'200':
|
|
1693
|
-
description: List of AI models
|
|
1694
|
-
security: *ref_28
|
|
1695
|
-
summary: List all AI models and their prices (admin only)
|
|
1696
|
-
tags: *ref_29
|
|
1697
|
-
post:
|
|
1698
|
-
operationId: createAIModel
|
|
1699
|
-
parameters: []
|
|
1700
|
-
requestBody:
|
|
1701
|
-
required: true
|
|
1702
|
-
content:
|
|
1703
|
-
application/json:
|
|
1704
|
-
schema:
|
|
1705
|
-
$ref: '#/components/schemas/CreateAIModelDto'
|
|
1706
|
-
responses:
|
|
1707
|
-
'201':
|
|
1708
|
-
description: AI model created
|
|
1709
|
-
'409':
|
|
1710
|
-
description: Model already exists
|
|
1711
|
-
security: *ref_28
|
|
1712
|
-
summary: Register a new AI model and its prices (admin only)
|
|
1713
|
-
tags: *ref_29
|
|
1714
|
-
/admin/ai-models/{name}:
|
|
1715
|
-
patch:
|
|
1716
|
-
operationId: updateAIModel
|
|
1717
|
-
parameters:
|
|
1718
|
-
- name: name
|
|
1719
|
-
required: true
|
|
1720
|
-
in: path
|
|
1721
|
-
schema:
|
|
1722
|
-
type: string
|
|
1723
|
-
requestBody:
|
|
1724
|
-
required: true
|
|
1725
|
-
content:
|
|
1726
|
-
application/json:
|
|
1727
|
-
schema:
|
|
1728
|
-
$ref: '#/components/schemas/UpdateAIModelDto'
|
|
1729
|
-
responses:
|
|
1730
|
-
'200':
|
|
1731
|
-
description: AI model updated
|
|
1732
|
-
'404':
|
|
1733
|
-
description: Model not found
|
|
1734
|
-
security: *ref_28
|
|
1735
|
-
summary: Update AI model prices (admin only)
|
|
1736
|
-
tags: *ref_29
|
|
1737
|
-
/admin/transactions:
|
|
1738
|
-
get:
|
|
1739
|
-
description: >-
|
|
1740
|
-
Returns a paginated list of transactions without exposing PII
|
|
1741
|
-
(Personally Identifiable Information). Used to understand system trends
|
|
1742
|
-
and volume.
|
|
1743
|
-
operationId: getAnonymizedTransactions
|
|
1744
|
-
parameters:
|
|
1745
|
-
- name: page
|
|
1746
|
-
required: false
|
|
1747
|
-
in: query
|
|
1748
|
-
schema:
|
|
1749
|
-
default: 1
|
|
1750
|
-
example: 1
|
|
1751
|
-
type: number
|
|
1752
|
-
- name: limit
|
|
1753
|
-
required: false
|
|
1754
|
-
in: query
|
|
1755
|
-
schema:
|
|
1756
|
-
default: 20
|
|
1757
|
-
example: 20
|
|
1758
|
-
type: number
|
|
1759
|
-
- name: type
|
|
1760
|
-
required: false
|
|
1761
|
-
in: query
|
|
1762
|
-
description: Filter transactions by type
|
|
1763
|
-
schema:
|
|
1764
|
-
type: string
|
|
1765
|
-
enum:
|
|
1766
|
-
- INCOME
|
|
1767
|
-
- EXPENSE
|
|
1768
|
-
- name: from
|
|
1769
|
-
required: false
|
|
1770
|
-
in: query
|
|
1771
|
-
description: Start date (YYYY-MM-DD)
|
|
1772
|
-
schema:
|
|
1773
|
-
example: '2026-03-01'
|
|
1774
|
-
type: string
|
|
1775
|
-
- name: to
|
|
1776
|
-
required: false
|
|
1777
|
-
in: query
|
|
1778
|
-
description: End date (YYYY-MM-DD)
|
|
1779
|
-
schema:
|
|
1780
|
-
example: '2026-03-31'
|
|
1781
|
-
type: string
|
|
1782
|
-
- name: paymentMethod
|
|
1783
|
-
required: false
|
|
1784
|
-
in: query
|
|
1785
|
-
description: Filter transactions by payment method (CASH, PIX, CREDIT, DEBIT)
|
|
1786
|
-
schema:
|
|
1787
|
-
type: string
|
|
1788
|
-
responses:
|
|
1789
|
-
'200':
|
|
1790
|
-
description: Paginated list of anonymized transactions
|
|
1791
|
-
'400':
|
|
1792
|
-
description: Invalid date range
|
|
1793
|
-
security: *ref_28
|
|
1794
|
-
summary: List all transactions fully anonymized (admin only)
|
|
1795
|
-
tags: *ref_29
|
|
1796
|
-
/admin/settings:
|
|
1797
|
-
get:
|
|
1798
|
-
operationId: listAll
|
|
1799
|
-
parameters: []
|
|
1800
|
-
responses:
|
|
1801
|
-
'200':
|
|
1802
|
-
description: List of all system settings
|
|
1803
|
-
security: &ref_30
|
|
1804
|
-
- bearer: []
|
|
1805
|
-
summary: List all system settings (admin only)
|
|
1806
|
-
tags: &ref_31
|
|
1807
|
-
- Admin / Settings
|
|
1808
|
-
/admin/settings/{key}:
|
|
1809
|
-
patch:
|
|
1810
|
-
operationId: update
|
|
1811
|
-
parameters:
|
|
1812
|
-
- name: key
|
|
1813
|
-
required: true
|
|
1814
|
-
in: path
|
|
1815
|
-
schema:
|
|
1816
|
-
type: string
|
|
1817
|
-
requestBody:
|
|
1818
|
-
required: true
|
|
1819
|
-
content:
|
|
1820
|
-
application/json:
|
|
1821
|
-
schema:
|
|
1822
|
-
$ref: '#/components/schemas/UpdateSystemSettingDto'
|
|
1823
|
-
responses:
|
|
1824
|
-
'200':
|
|
1825
|
-
description: Setting updated
|
|
1826
|
-
security: *ref_30
|
|
1827
|
-
summary: Update a system setting (admin only)
|
|
1828
|
-
tags: *ref_31
|
|
1829
|
-
/admin/invites:
|
|
1830
|
-
post:
|
|
1831
|
-
operationId: create
|
|
1832
|
-
parameters: []
|
|
1833
|
-
requestBody:
|
|
1834
|
-
required: true
|
|
1835
|
-
content:
|
|
1836
|
-
application/json:
|
|
1837
|
-
schema:
|
|
1838
|
-
$ref: '#/components/schemas/CreateInviteDto'
|
|
1839
|
-
responses:
|
|
1840
|
-
'201':
|
|
1841
|
-
description: Invitation created and email "sent"
|
|
1842
|
-
security: &ref_32
|
|
1843
|
-
- bearer: []
|
|
1844
|
-
summary: Create a new invitation (admin only)
|
|
1845
|
-
tags: &ref_33
|
|
1846
|
-
- Admin / Invites
|
|
1847
|
-
get:
|
|
1848
|
-
operationId: listAll
|
|
1849
|
-
parameters:
|
|
1850
|
-
- name: page
|
|
1851
|
-
required: false
|
|
1852
|
-
in: query
|
|
1853
|
-
schema:
|
|
1854
|
-
default: 1
|
|
1855
|
-
example: 1
|
|
1856
|
-
type: number
|
|
1857
|
-
- name: limit
|
|
1858
|
-
required: false
|
|
1859
|
-
in: query
|
|
1860
|
-
schema:
|
|
1861
|
-
default: 20
|
|
1862
|
-
example: 20
|
|
1863
|
-
type: number
|
|
1864
|
-
responses:
|
|
1865
|
-
'200':
|
|
1866
|
-
description: Paginated list of invitations
|
|
1867
|
-
security: *ref_32
|
|
1868
|
-
summary: List all invitations (admin only)
|
|
1869
|
-
tags: *ref_33
|
|
1870
|
-
/admin/invites/{id}/resend:
|
|
1871
|
-
post:
|
|
1872
|
-
operationId: resend
|
|
1873
|
-
parameters:
|
|
1874
|
-
- name: id
|
|
1875
|
-
required: true
|
|
1876
|
-
in: path
|
|
1877
|
-
schema:
|
|
1878
|
-
type: string
|
|
1879
|
-
responses:
|
|
1880
|
-
'200':
|
|
1881
|
-
description: Invitation email resent
|
|
1882
|
-
'404':
|
|
1883
|
-
description: Invitation not found
|
|
1884
|
-
'409':
|
|
1885
|
-
description: Invitation cannot be resent
|
|
1886
|
-
security: *ref_32
|
|
1887
|
-
summary: Resend an invitation email (admin only)
|
|
1888
|
-
tags: *ref_33
|
|
1889
|
-
/admin/invites/{id}:
|
|
1890
|
-
delete:
|
|
1891
|
-
operationId: revoke
|
|
1892
|
-
parameters:
|
|
1893
|
-
- name: id
|
|
1894
|
-
required: true
|
|
1895
|
-
in: path
|
|
1896
|
-
schema:
|
|
1897
|
-
type: string
|
|
1898
|
-
responses:
|
|
1899
|
-
'200':
|
|
1900
|
-
description: Invitation revoked
|
|
1901
|
-
'404':
|
|
1902
|
-
description: Invitation not found
|
|
1903
|
-
'409':
|
|
1904
|
-
description: Invitation cannot be revoked
|
|
1905
|
-
security: *ref_32
|
|
1906
|
-
summary: Revoke an invitation (admin only)
|
|
1907
|
-
tags: *ref_33
|
|
1908
|
-
/admin/invites/{id}/delete:
|
|
1909
|
-
delete:
|
|
1910
|
-
operationId: deleteRevoked
|
|
1911
|
-
parameters:
|
|
1912
|
-
- name: id
|
|
1913
|
-
required: true
|
|
1914
|
-
in: path
|
|
1915
|
-
schema:
|
|
1916
|
-
type: string
|
|
1917
|
-
responses:
|
|
1918
|
-
'200':
|
|
1919
|
-
description: Invitation permanently deleted
|
|
1920
|
-
'404':
|
|
1921
|
-
description: Invitation not found
|
|
1922
|
-
'409':
|
|
1923
|
-
description: Invitation must be revoked before deletion
|
|
1924
|
-
security: *ref_32
|
|
1925
|
-
summary: Permanently delete a revoked invitation (admin only)
|
|
1926
|
-
tags: *ref_33
|
|
1927
|
-
info:
|
|
1928
|
-
title: Quantix Personal Finance Manager API
|
|
1929
|
-
description: >-
|
|
1930
|
-
O Quantix é um gerenciador financeiro pessoal moderno, projetado para ajudar
|
|
1931
|
-
indivíduos a controlarem suas finanças de maneira simples, eficaz e segura.
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
## Principais Recursos
|
|
1935
|
-
|
|
1936
|
-
- **Multi-usuário**: Suporte total a múltiplos usuários com isolamento
|
|
1937
|
-
completo de dados.
|
|
1938
|
-
|
|
1939
|
-
- **Controle de Transações**: Gestão de receitas, despesas e transferências
|
|
1940
|
-
entre contas.
|
|
1941
|
-
|
|
1942
|
-
- **Cartões de Crédito**: Acompanhamento de faturas, limites e pagamentos.
|
|
1943
|
-
|
|
1944
|
-
- **Categorias e Organização**: Classificação visual de gastos com
|
|
1945
|
-
categorias personalizáveis.
|
|
1946
|
-
|
|
1947
|
-
- **Assinaturas e Recorrência**: Automação de lançamentos frequentes
|
|
1948
|
-
(Netflix, aluguel, etc.).
|
|
1949
|
-
|
|
1950
|
-
- **Segurança**: Autenticação robusta via JWT e armazenamento seguro de
|
|
1951
|
-
senhas com Bcrypt.
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
## Autenticação
|
|
1955
|
-
|
|
1956
|
-
Esta API utiliza autenticação baseada em **JWT (JSON Web Token)**.
|
|
1957
|
-
|
|
1958
|
-
1. Registre-se ou faça login através dos endpoints de `/auth` para receber
|
|
1959
|
-
seu token de acesso.
|
|
1960
|
-
|
|
1961
|
-
2. Inclua o token no header de autorização em todas as requisições
|
|
1962
|
-
protegidas:
|
|
1963
|
-
|
|
1964
|
-
```
|
|
1965
|
-
|
|
1966
|
-
Authorization: Bearer <seu-token-aqui>
|
|
1967
|
-
|
|
1968
|
-
```
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
## Base URL
|
|
1972
|
-
|
|
1973
|
-
Todos os endpoints da API são relativos a: `http://localhost:3000/api`
|
|
1974
|
-
|
|
1975
|
-
version: 1.2.5
|
|
1976
|
-
contact:
|
|
1977
|
-
name: Quantix Support
|
|
1978
|
-
url: https://github.com/marcosnunesmbs/quantix
|
|
1979
|
-
email: support@example.com
|
|
1980
|
-
license:
|
|
1981
|
-
name: MIT
|
|
1982
|
-
url: https://github.com/marcosnunesmbs/quantix/blob/main/LICENSE
|
|
1983
|
-
tags: []
|
|
1984
|
-
servers: []
|
|
1985
|
-
components:
|
|
1986
|
-
securitySchemes:
|
|
1987
|
-
bearer:
|
|
1988
|
-
scheme: bearer
|
|
1989
|
-
bearerFormat: JWT
|
|
1990
|
-
type: http
|
|
1991
|
-
schemas:
|
|
1992
|
-
CreateSubscriptionDto:
|
|
1993
|
-
type: object
|
|
1994
|
-
properties:
|
|
1995
|
-
name:
|
|
1996
|
-
type: string
|
|
1997
|
-
description: Name of the subscription (e.g., Netflix, Spotify)
|
|
1998
|
-
example: Netflix
|
|
1999
|
-
amount:
|
|
2000
|
-
type: number
|
|
2001
|
-
description: Monthly amount charged
|
|
2002
|
-
example: 55.9
|
|
2003
|
-
minimum: 0.01
|
|
2004
|
-
billingDay:
|
|
2005
|
-
type: number
|
|
2006
|
-
description: Day of the month when the subscription is charged (1-31)
|
|
2007
|
-
example: 15
|
|
2008
|
-
minimum: 1
|
|
2009
|
-
maximum: 31
|
|
2010
|
-
creditCardId:
|
|
2011
|
-
type: string
|
|
2012
|
-
description: ID of the credit card used for this subscription
|
|
2013
|
-
example: cc_123456789
|
|
2014
|
-
categoryId:
|
|
2015
|
-
type: string
|
|
2016
|
-
description: ID of the expense category
|
|
2017
|
-
example: cat_123456789
|
|
2018
|
-
required:
|
|
2019
|
-
- name
|
|
2020
|
-
- amount
|
|
2021
|
-
- billingDay
|
|
2022
|
-
- creditCardId
|
|
2023
|
-
UpdateSubscriptionDto:
|
|
2024
|
-
type: object
|
|
2025
|
-
properties:
|
|
2026
|
-
name:
|
|
2027
|
-
type: string
|
|
2028
|
-
description: Name of the subscription
|
|
2029
|
-
example: Netflix Premium
|
|
2030
|
-
amount:
|
|
2031
|
-
type: number
|
|
2032
|
-
description: Monthly amount charged
|
|
2033
|
-
example: 79.9
|
|
2034
|
-
minimum: 0.01
|
|
2035
|
-
billingDay:
|
|
2036
|
-
type: number
|
|
2037
|
-
description: Day of the month when the subscription is charged (1-31)
|
|
2038
|
-
example: 10
|
|
2039
|
-
minimum: 1
|
|
2040
|
-
maximum: 31
|
|
2041
|
-
creditCardId:
|
|
2042
|
-
type: string
|
|
2043
|
-
description: ID of the credit card used for this subscription
|
|
2044
|
-
example: cc_987654321
|
|
2045
|
-
categoryId:
|
|
2046
|
-
type: string
|
|
2047
|
-
description: ID of the expense category
|
|
2048
|
-
example: cat_123456789
|
|
2049
|
-
active:
|
|
2050
|
-
type: boolean
|
|
2051
|
-
description: Whether the subscription is active
|
|
2052
|
-
example: true
|
|
2053
|
-
RegisterDto:
|
|
2054
|
-
type: object
|
|
2055
|
-
properties:
|
|
2056
|
-
name:
|
|
2057
|
-
type: string
|
|
2058
|
-
description: User name
|
|
2059
|
-
email:
|
|
2060
|
-
type: string
|
|
2061
|
-
description: User email
|
|
2062
|
-
password:
|
|
2063
|
-
type: string
|
|
2064
|
-
description: User password
|
|
2065
|
-
minLength: 6
|
|
2066
|
-
inviteCode:
|
|
2067
|
-
type: string
|
|
2068
|
-
description: Invitation code (required if invite mode is ON)
|
|
2069
|
-
required:
|
|
2070
|
-
- name
|
|
2071
|
-
- email
|
|
2072
|
-
- password
|
|
2073
|
-
LoginDto:
|
|
2074
|
-
type: object
|
|
2075
|
-
properties:
|
|
2076
|
-
email:
|
|
2077
|
-
type: string
|
|
2078
|
-
description: User email
|
|
2079
|
-
password:
|
|
2080
|
-
type: string
|
|
2081
|
-
description: User password
|
|
2082
|
-
required:
|
|
2083
|
-
- email
|
|
2084
|
-
- password
|
|
2085
|
-
ChangePasswordDto:
|
|
2086
|
-
type: object
|
|
2087
|
-
properties:
|
|
2088
|
-
currentPassword:
|
|
2089
|
-
type: string
|
|
2090
|
-
description: Current user password
|
|
2091
|
-
newPassword:
|
|
2092
|
-
type: string
|
|
2093
|
-
description: New user password
|
|
2094
|
-
minLength: 6
|
|
2095
|
-
required:
|
|
2096
|
-
- currentPassword
|
|
2097
|
-
- newPassword
|
|
2098
|
-
ForgotPasswordDto:
|
|
2099
|
-
type: object
|
|
2100
|
-
properties:
|
|
2101
|
-
email:
|
|
2102
|
-
type: string
|
|
2103
|
-
description: User email
|
|
2104
|
-
required:
|
|
2105
|
-
- email
|
|
2106
|
-
ResetPasswordDto:
|
|
2107
|
-
type: object
|
|
2108
|
-
properties:
|
|
2109
|
-
token:
|
|
2110
|
-
type: string
|
|
2111
|
-
description: Reset token received by email
|
|
2112
|
-
newPassword:
|
|
2113
|
-
type: string
|
|
2114
|
-
description: New user password
|
|
2115
|
-
minLength: 6
|
|
2116
|
-
required:
|
|
2117
|
-
- token
|
|
2118
|
-
- newPassword
|
|
2119
|
-
SendMessageDto:
|
|
2120
|
-
type: object
|
|
2121
|
-
properties: {}
|
|
2122
|
-
CreateCategoryDto:
|
|
2123
|
-
type: object
|
|
2124
|
-
properties:
|
|
2125
|
-
name:
|
|
2126
|
-
type: string
|
|
2127
|
-
description: Name of the category
|
|
2128
|
-
example: Groceries
|
|
2129
|
-
type:
|
|
2130
|
-
type: string
|
|
2131
|
-
description: Type of the category
|
|
2132
|
-
enum:
|
|
2133
|
-
- INCOME
|
|
2134
|
-
- EXPENSE
|
|
2135
|
-
example: EXPENSE
|
|
2136
|
-
color:
|
|
2137
|
-
type: object
|
|
2138
|
-
description: Color for the category in hexadecimal format
|
|
2139
|
-
example: '#FF5733'
|
|
2140
|
-
nullable: true
|
|
2141
|
-
required:
|
|
2142
|
-
- name
|
|
2143
|
-
- type
|
|
2144
|
-
UpdateCategoryDto:
|
|
2145
|
-
type: object
|
|
2146
|
-
properties:
|
|
2147
|
-
name:
|
|
2148
|
-
type: string
|
|
2149
|
-
description: Name of the category
|
|
2150
|
-
example: Groceries
|
|
2151
|
-
color:
|
|
2152
|
-
type: object
|
|
2153
|
-
description: Color for the category in hexadecimal format
|
|
2154
|
-
example: '#FF5733'
|
|
2155
|
-
nullable: true
|
|
2156
|
-
RecurrenceDto:
|
|
2157
|
-
type: object
|
|
2158
|
-
properties:
|
|
2159
|
-
frequency:
|
|
2160
|
-
type: string
|
|
2161
|
-
description: Frequency of recurrence
|
|
2162
|
-
enum:
|
|
2163
|
-
- WEEKLY
|
|
2164
|
-
- MONTHLY
|
|
2165
|
-
- YEARLY
|
|
2166
|
-
example: MONTHLY
|
|
2167
|
-
interval:
|
|
2168
|
-
type: number
|
|
2169
|
-
description: Interval between recurrences
|
|
2170
|
-
example: 1
|
|
2171
|
-
minimum: 1
|
|
2172
|
-
startDate:
|
|
2173
|
-
type: string
|
|
2174
|
-
description: Start date for recurrence (defaults to transaction date)
|
|
2175
|
-
example: '2026-01-30'
|
|
2176
|
-
endDate:
|
|
2177
|
-
type: string
|
|
2178
|
-
description: >-
|
|
2179
|
-
End date for recurrence (optional, mutually exclusive with
|
|
2180
|
-
occurrences)
|
|
2181
|
-
example: '2026-12-31'
|
|
2182
|
-
occurrences:
|
|
2183
|
-
type: number
|
|
2184
|
-
description: Number of occurrences (optional, mutually exclusive with endDate)
|
|
2185
|
-
example: 12
|
|
2186
|
-
minimum: 2
|
|
2187
|
-
required:
|
|
2188
|
-
- frequency
|
|
2189
|
-
- interval
|
|
2190
|
-
CreateTransactionDto:
|
|
2191
|
-
type: object
|
|
2192
|
-
properties:
|
|
2193
|
-
type:
|
|
2194
|
-
type: string
|
|
2195
|
-
description: Type of the transaction
|
|
2196
|
-
enum: &ref_34
|
|
2197
|
-
- INCOME
|
|
2198
|
-
- EXPENSE
|
|
2199
|
-
example: EXPENSE
|
|
2200
|
-
name:
|
|
2201
|
-
type: string
|
|
2202
|
-
description: Name or description of the transaction
|
|
2203
|
-
example: Grocery shopping
|
|
2204
|
-
amount:
|
|
2205
|
-
type: number
|
|
2206
|
-
description: Amount of the transaction
|
|
2207
|
-
example: 125.75
|
|
2208
|
-
minimum: 0
|
|
2209
|
-
date:
|
|
2210
|
-
type: string
|
|
2211
|
-
description: Date of the transaction
|
|
2212
|
-
example: '2026-01-30'
|
|
2213
|
-
categoryId:
|
|
2214
|
-
type: string
|
|
2215
|
-
description: ID of the associated category
|
|
2216
|
-
example: cat_123456789
|
|
2217
|
-
paymentMethod:
|
|
2218
|
-
type: string
|
|
2219
|
-
description: Method of payment (CASH, PIX, or DEBIT only)
|
|
2220
|
-
enum: &ref_35
|
|
2221
|
-
- CASH
|
|
2222
|
-
- PIX
|
|
2223
|
-
- DEBIT
|
|
2224
|
-
example: CASH
|
|
2225
|
-
installments:
|
|
2226
|
-
type: number
|
|
2227
|
-
description: Number of installments (optional)
|
|
2228
|
-
example: 3
|
|
2229
|
-
minimum: 1
|
|
2230
|
-
accountId:
|
|
2231
|
-
type: string
|
|
2232
|
-
description: ID of the associated account (required for direct payments)
|
|
2233
|
-
example: acc_123456789
|
|
2234
|
-
isRecurring:
|
|
2235
|
-
type: boolean
|
|
2236
|
-
description: Whether the transaction is recurring
|
|
2237
|
-
example: false
|
|
2238
|
-
default: false
|
|
2239
|
-
recurrence:
|
|
2240
|
-
description: Recurrence information (optional)
|
|
2241
|
-
allOf:
|
|
2242
|
-
- $ref: '#/components/schemas/RecurrenceDto'
|
|
2243
|
-
isPaid:
|
|
2244
|
-
type: boolean
|
|
2245
|
-
description: Whether the transaction has been paid
|
|
2246
|
-
example: false
|
|
2247
|
-
default: false
|
|
2248
|
-
required:
|
|
2249
|
-
- type
|
|
2250
|
-
- name
|
|
2251
|
-
- amount
|
|
2252
|
-
- date
|
|
2253
|
-
- paymentMethod
|
|
2254
|
-
- accountId
|
|
2255
|
-
CategoryDto:
|
|
2256
|
-
type: object
|
|
2257
|
-
properties:
|
|
2258
|
-
id:
|
|
2259
|
-
type: string
|
|
2260
|
-
name:
|
|
2261
|
-
type: string
|
|
2262
|
-
type:
|
|
2263
|
-
type: string
|
|
2264
|
-
enum:
|
|
2265
|
-
- INCOME
|
|
2266
|
-
- EXPENSE
|
|
2267
|
-
color:
|
|
2268
|
-
type: object
|
|
2269
|
-
nullable: true
|
|
2270
|
-
createdAt:
|
|
2271
|
-
format: date-time
|
|
2272
|
-
type: string
|
|
2273
|
-
required:
|
|
2274
|
-
- id
|
|
2275
|
-
- name
|
|
2276
|
-
- type
|
|
2277
|
-
- createdAt
|
|
2278
|
-
CreditCardDto:
|
|
2279
|
-
type: object
|
|
2280
|
-
properties:
|
|
2281
|
-
id:
|
|
2282
|
-
type: string
|
|
2283
|
-
name:
|
|
2284
|
-
type: string
|
|
2285
|
-
brand:
|
|
2286
|
-
type: string
|
|
2287
|
-
limitAmount:
|
|
2288
|
-
type: number
|
|
2289
|
-
closingDay:
|
|
2290
|
-
type: number
|
|
2291
|
-
dueDay:
|
|
2292
|
-
type: number
|
|
2293
|
-
availableLimit:
|
|
2294
|
-
type: number
|
|
2295
|
-
createdAt:
|
|
2296
|
-
format: date-time
|
|
2297
|
-
type: string
|
|
2298
|
-
required:
|
|
2299
|
-
- id
|
|
2300
|
-
- name
|
|
2301
|
-
- limitAmount
|
|
2302
|
-
- closingDay
|
|
2303
|
-
- dueDay
|
|
2304
|
-
- createdAt
|
|
2305
|
-
RecurrenceRule:
|
|
2306
|
-
type: object
|
|
2307
|
-
properties: {}
|
|
2308
|
-
SubscriptionDto:
|
|
2309
|
-
type: object
|
|
2310
|
-
properties:
|
|
2311
|
-
id:
|
|
2312
|
-
type: string
|
|
2313
|
-
name:
|
|
2314
|
-
type: string
|
|
2315
|
-
amount:
|
|
2316
|
-
type: number
|
|
2317
|
-
billingDay:
|
|
2318
|
-
type: number
|
|
2319
|
-
creditCardId:
|
|
2320
|
-
type: string
|
|
2321
|
-
categoryId:
|
|
2322
|
-
type: string
|
|
2323
|
-
active:
|
|
2324
|
-
type: boolean
|
|
2325
|
-
createdAt:
|
|
2326
|
-
format: date-time
|
|
2327
|
-
type: string
|
|
2328
|
-
updatedAt:
|
|
2329
|
-
format: date-time
|
|
2330
|
-
type: string
|
|
2331
|
-
required:
|
|
2332
|
-
- id
|
|
2333
|
-
- name
|
|
2334
|
-
- amount
|
|
2335
|
-
- billingDay
|
|
2336
|
-
- creditCardId
|
|
2337
|
-
- active
|
|
2338
|
-
- createdAt
|
|
2339
|
-
- updatedAt
|
|
2340
|
-
AccountDto:
|
|
2341
|
-
type: object
|
|
2342
|
-
properties:
|
|
2343
|
-
id:
|
|
2344
|
-
type: string
|
|
2345
|
-
name:
|
|
2346
|
-
type: string
|
|
2347
|
-
type:
|
|
2348
|
-
type: string
|
|
2349
|
-
initialBalance:
|
|
2350
|
-
type: number
|
|
2351
|
-
currentBalance:
|
|
2352
|
-
type: number
|
|
2353
|
-
createdAt:
|
|
2354
|
-
format: date-time
|
|
2355
|
-
type: string
|
|
2356
|
-
updatedAt:
|
|
2357
|
-
format: date-time
|
|
2358
|
-
type: string
|
|
2359
|
-
required:
|
|
2360
|
-
- name
|
|
2361
|
-
- type
|
|
2362
|
-
- initialBalance
|
|
2363
|
-
- currentBalance
|
|
2364
|
-
TransactionWithRelationsDto:
|
|
2365
|
-
type: object
|
|
2366
|
-
properties:
|
|
2367
|
-
id:
|
|
2368
|
-
type: string
|
|
2369
|
-
type:
|
|
2370
|
-
type: string
|
|
2371
|
-
enum:
|
|
2372
|
-
- INCOME
|
|
2373
|
-
- EXPENSE
|
|
2374
|
-
name:
|
|
2375
|
-
type: string
|
|
2376
|
-
amount:
|
|
2377
|
-
type: number
|
|
2378
|
-
date:
|
|
2379
|
-
format: date-time
|
|
2380
|
-
type: string
|
|
2381
|
-
categoryId:
|
|
2382
|
-
type: string
|
|
2383
|
-
category:
|
|
2384
|
-
$ref: '#/components/schemas/CategoryDto'
|
|
2385
|
-
paymentMethod:
|
|
2386
|
-
type: string
|
|
2387
|
-
enum:
|
|
2388
|
-
- CASH
|
|
2389
|
-
- PIX
|
|
2390
|
-
- DEBIT
|
|
2391
|
-
- CREDIT
|
|
2392
|
-
creditCardId:
|
|
2393
|
-
type: string
|
|
2394
|
-
creditCard:
|
|
2395
|
-
$ref: '#/components/schemas/CreditCardDto'
|
|
2396
|
-
recurrenceRule:
|
|
2397
|
-
$ref: '#/components/schemas/RecurrenceRule'
|
|
2398
|
-
subscriptionId:
|
|
2399
|
-
type: string
|
|
2400
|
-
subscription:
|
|
2401
|
-
$ref: '#/components/schemas/SubscriptionDto'
|
|
2402
|
-
accountId:
|
|
2403
|
-
type: string
|
|
2404
|
-
account:
|
|
2405
|
-
$ref: '#/components/schemas/AccountDto'
|
|
2406
|
-
installmentGroupId:
|
|
2407
|
-
type: string
|
|
2408
|
-
installmentNumber:
|
|
2409
|
-
type: number
|
|
2410
|
-
installmentTotal:
|
|
2411
|
-
type: number
|
|
2412
|
-
recurrenceRuleId:
|
|
2413
|
-
type: string
|
|
2414
|
-
paid:
|
|
2415
|
-
type: boolean
|
|
2416
|
-
createdAt:
|
|
2417
|
-
format: date-time
|
|
2418
|
-
type: string
|
|
2419
|
-
purchaseDate:
|
|
2420
|
-
format: date-time
|
|
2421
|
-
type: string
|
|
2422
|
-
linkedTransactionId:
|
|
2423
|
-
type: string
|
|
2424
|
-
isAnticipation:
|
|
2425
|
-
type: boolean
|
|
2426
|
-
description: >-
|
|
2427
|
-
Indicates if this transaction is part of a credit card anticipation
|
|
2428
|
-
pair
|
|
2429
|
-
required:
|
|
2430
|
-
- id
|
|
2431
|
-
- type
|
|
2432
|
-
- name
|
|
2433
|
-
- amount
|
|
2434
|
-
- date
|
|
2435
|
-
- paid
|
|
2436
|
-
- createdAt
|
|
2437
|
-
UpdateTransactionDto:
|
|
2438
|
-
type: object
|
|
2439
|
-
properties:
|
|
2440
|
-
type:
|
|
2441
|
-
type: string
|
|
2442
|
-
description: Type of the transaction
|
|
2443
|
-
enum: *ref_34
|
|
2444
|
-
example: EXPENSE
|
|
2445
|
-
name:
|
|
2446
|
-
type: string
|
|
2447
|
-
description: Name or description of the transaction
|
|
2448
|
-
example: Grocery shopping
|
|
2449
|
-
amount:
|
|
2450
|
-
type: number
|
|
2451
|
-
description: Amount of the transaction
|
|
2452
|
-
example: 125.75
|
|
2453
|
-
minimum: 0
|
|
2454
|
-
date:
|
|
2455
|
-
type: string
|
|
2456
|
-
description: Date of the transaction
|
|
2457
|
-
example: '2026-01-30'
|
|
2458
|
-
categoryId:
|
|
2459
|
-
type: string
|
|
2460
|
-
description: ID of the associated category
|
|
2461
|
-
example: cat_123456789
|
|
2462
|
-
paymentMethod:
|
|
2463
|
-
type: string
|
|
2464
|
-
description: Method of payment (CASH, PIX, or DEBIT only)
|
|
2465
|
-
enum: *ref_35
|
|
2466
|
-
example: CASH
|
|
2467
|
-
installments:
|
|
2468
|
-
type: number
|
|
2469
|
-
description: Number of installments (optional)
|
|
2470
|
-
example: 3
|
|
2471
|
-
minimum: 1
|
|
2472
|
-
targetDueMonth:
|
|
2473
|
-
type: string
|
|
2474
|
-
description: Target month for due date in YYYY-MM format.
|
|
2475
|
-
example: 2026-03
|
|
2476
|
-
pattern: '^\d{4}-\d{2}$'
|
|
2477
|
-
isRecurring:
|
|
2478
|
-
type: boolean
|
|
2479
|
-
description: Whether the transaction is recurring
|
|
2480
|
-
example: false
|
|
2481
|
-
default: false
|
|
2482
|
-
recurrence:
|
|
2483
|
-
description: Recurrence information (optional)
|
|
2484
|
-
allOf:
|
|
2485
|
-
- $ref: '#/components/schemas/RecurrenceDto'
|
|
2486
|
-
accountId:
|
|
2487
|
-
type: string
|
|
2488
|
-
description: ID of the associated account
|
|
2489
|
-
example: acc_123456789
|
|
2490
|
-
isPaid:
|
|
2491
|
-
type: boolean
|
|
2492
|
-
description: Whether the transaction has been paid
|
|
2493
|
-
example: false
|
|
2494
|
-
default: false
|
|
2495
|
-
CreditCardRecurrenceDto:
|
|
2496
|
-
type: object
|
|
2497
|
-
properties:
|
|
2498
|
-
frequency:
|
|
2499
|
-
type: string
|
|
2500
|
-
description: Frequency of recurrence
|
|
2501
|
-
enum:
|
|
2502
|
-
- WEEKLY
|
|
2503
|
-
- BIWEEKLY
|
|
2504
|
-
- MONTHLY
|
|
2505
|
-
- BIMONTHLY
|
|
2506
|
-
- QUARTERLY
|
|
2507
|
-
- SEMIANNUALLY
|
|
2508
|
-
- ANNUALLY
|
|
2509
|
-
example: MONTHLY
|
|
2510
|
-
interval:
|
|
2511
|
-
type: number
|
|
2512
|
-
description: Interval between recurrences
|
|
2513
|
-
example: 1
|
|
2514
|
-
minimum: 1
|
|
2515
|
-
default: 1
|
|
2516
|
-
startDate:
|
|
2517
|
-
type: string
|
|
2518
|
-
description: Start date for recurrence (defaults to purchase date)
|
|
2519
|
-
example: '2026-01-30'
|
|
2520
|
-
endDate:
|
|
2521
|
-
type: string
|
|
2522
|
-
description: End date for recurrence (optional)
|
|
2523
|
-
example: '2026-12-31'
|
|
2524
|
-
occurrences:
|
|
2525
|
-
type: number
|
|
2526
|
-
description: Number of occurrences (optional)
|
|
2527
|
-
example: 12
|
|
2528
|
-
minimum: 2
|
|
2529
|
-
required:
|
|
2530
|
-
- frequency
|
|
2531
|
-
- interval
|
|
2532
|
-
CreateCreditCardTransactionDto:
|
|
2533
|
-
type: object
|
|
2534
|
-
properties:
|
|
2535
|
-
name:
|
|
2536
|
-
type: string
|
|
2537
|
-
description: Name or description of the transaction
|
|
2538
|
-
example: Eletrônicos na loja X
|
|
2539
|
-
amount:
|
|
2540
|
-
type: number
|
|
2541
|
-
description: Amount of the transaction (total for installments)
|
|
2542
|
-
example: 1250
|
|
2543
|
-
minimum: 0
|
|
2544
|
-
purchaseDate:
|
|
2545
|
-
type: string
|
|
2546
|
-
description: Actual purchase date (the day you bought the item)
|
|
2547
|
-
example: '2026-02-10'
|
|
2548
|
-
creditCardId:
|
|
2549
|
-
type: string
|
|
2550
|
-
description: ID of the credit card to charge
|
|
2551
|
-
example: cc_123456789
|
|
2552
|
-
categoryId:
|
|
2553
|
-
type: string
|
|
2554
|
-
description: ID of the associated category
|
|
2555
|
-
example: cat_123456789
|
|
2556
|
-
installments:
|
|
2557
|
-
type: number
|
|
2558
|
-
description: Number of installments (optional)
|
|
2559
|
-
example: 3
|
|
2560
|
-
minimum: 1
|
|
2561
|
-
targetDueMonth:
|
|
2562
|
-
type: string
|
|
2563
|
-
description: Target month for due date in YYYY-MM format
|
|
2564
|
-
example: '2026-03'
|
|
2565
|
-
isRecurring:
|
|
2566
|
-
type: boolean
|
|
2567
|
-
description: Whether the transaction is recurring
|
|
2568
|
-
example: false
|
|
2569
|
-
default: false
|
|
2570
|
-
recurrence:
|
|
2571
|
-
description: Recurrence information (optional)
|
|
2572
|
-
allOf:
|
|
2573
|
-
- $ref: '#/components/schemas/CreditCardRecurrenceDto'
|
|
2574
|
-
isPaid:
|
|
2575
|
-
type: boolean
|
|
2576
|
-
description: Whether the transaction has been paid
|
|
2577
|
-
example: false
|
|
2578
|
-
default: false
|
|
2579
|
-
required:
|
|
2580
|
-
- name
|
|
2581
|
-
- amount
|
|
2582
|
-
- purchaseDate
|
|
2583
|
-
- creditCardId
|
|
2584
|
-
UpdateCreditCardTransactionDto:
|
|
2585
|
-
type: object
|
|
2586
|
-
properties:
|
|
2587
|
-
name:
|
|
2588
|
-
type: string
|
|
2589
|
-
description: Name or description of the transaction
|
|
2590
|
-
example: Eletrônicos na loja X
|
|
2591
|
-
amount:
|
|
2592
|
-
type: number
|
|
2593
|
-
description: Amount of the transaction
|
|
2594
|
-
example: 1250
|
|
2595
|
-
minimum: 0
|
|
2596
|
-
purchaseDate:
|
|
2597
|
-
type: string
|
|
2598
|
-
description: Actual purchase date
|
|
2599
|
-
example: '2026-02-10'
|
|
2600
|
-
creditCardId:
|
|
2601
|
-
type: string
|
|
2602
|
-
description: ID of the credit card
|
|
2603
|
-
example: cc_123456789
|
|
2604
|
-
categoryId:
|
|
2605
|
-
type: string
|
|
2606
|
-
description: ID of the associated category
|
|
2607
|
-
example: cat_123456789
|
|
2608
|
-
installments:
|
|
2609
|
-
type: number
|
|
2610
|
-
description: Number of installments
|
|
2611
|
-
example: 3
|
|
2612
|
-
minimum: 1
|
|
2613
|
-
targetDueMonth:
|
|
2614
|
-
type: string
|
|
2615
|
-
description: Target month for due date in YYYY-MM format
|
|
2616
|
-
example: '2026-03'
|
|
2617
|
-
pattern: '^\d{4}-\d{2}$'
|
|
2618
|
-
isRecurring:
|
|
2619
|
-
type: boolean
|
|
2620
|
-
description: Whether the transaction is recurring
|
|
2621
|
-
example: false
|
|
2622
|
-
default: false
|
|
2623
|
-
recurrence:
|
|
2624
|
-
description: Recurrence information (optional)
|
|
2625
|
-
allOf:
|
|
2626
|
-
- $ref: '#/components/schemas/CreditCardRecurrenceDto'
|
|
2627
|
-
isPaid:
|
|
2628
|
-
type: boolean
|
|
2629
|
-
description: Whether the transaction has been paid
|
|
2630
|
-
example: false
|
|
2631
|
-
default: false
|
|
2632
|
-
CreateCreditCardDto:
|
|
2633
|
-
type: object
|
|
2634
|
-
properties:
|
|
2635
|
-
name:
|
|
2636
|
-
type: string
|
|
2637
|
-
description: Name of the credit card
|
|
2638
|
-
example: Nubank Platinum
|
|
2639
|
-
brand:
|
|
2640
|
-
type: string
|
|
2641
|
-
description: Brand of the credit card
|
|
2642
|
-
example: Visa
|
|
2643
|
-
limitAmount:
|
|
2644
|
-
type: number
|
|
2645
|
-
description: Credit limit of the card
|
|
2646
|
-
example: 5000
|
|
2647
|
-
minimum: 0
|
|
2648
|
-
closingDay:
|
|
2649
|
-
type: number
|
|
2650
|
-
description: Day of the month when the billing cycle closes
|
|
2651
|
-
example: 15
|
|
2652
|
-
minimum: 1
|
|
2653
|
-
maximum: 31
|
|
2654
|
-
dueDay:
|
|
2655
|
-
type: number
|
|
2656
|
-
description: Day of the month when the bill is due
|
|
2657
|
-
example: 22
|
|
2658
|
-
minimum: 1
|
|
2659
|
-
maximum: 31
|
|
2660
|
-
required:
|
|
2661
|
-
- name
|
|
2662
|
-
- limitAmount
|
|
2663
|
-
- closingDay
|
|
2664
|
-
- dueDay
|
|
2665
|
-
UpdateCreditCardDto:
|
|
2666
|
-
type: object
|
|
2667
|
-
properties:
|
|
2668
|
-
name:
|
|
2669
|
-
type: string
|
|
2670
|
-
description: Name of the credit card
|
|
2671
|
-
example: Nubank Platinum
|
|
2672
|
-
brand:
|
|
2673
|
-
type: string
|
|
2674
|
-
description: Brand of the credit card
|
|
2675
|
-
example: Visa
|
|
2676
|
-
limitAmount:
|
|
2677
|
-
type: number
|
|
2678
|
-
description: Credit limit of the card
|
|
2679
|
-
example: 5000
|
|
2680
|
-
minimum: 0
|
|
2681
|
-
closingDay:
|
|
2682
|
-
type: number
|
|
2683
|
-
description: Day of the month when the billing cycle closes
|
|
2684
|
-
example: 15
|
|
2685
|
-
minimum: 1
|
|
2686
|
-
maximum: 31
|
|
2687
|
-
dueDay:
|
|
2688
|
-
type: number
|
|
2689
|
-
description: Day of the month when the bill is due
|
|
2690
|
-
example: 22
|
|
2691
|
-
minimum: 1
|
|
2692
|
-
maximum: 31
|
|
2693
|
-
PayStatementDto:
|
|
2694
|
-
type: object
|
|
2695
|
-
properties:
|
|
2696
|
-
month:
|
|
2697
|
-
type: object
|
|
2698
|
-
description: Month for the statement in YYYY-MM format
|
|
2699
|
-
example: 2026-03
|
|
2700
|
-
paymentAccountId:
|
|
2701
|
-
type: object
|
|
2702
|
-
description: ID of the account to debit for the payment
|
|
2703
|
-
example: acc_123456789
|
|
2704
|
-
required:
|
|
2705
|
-
- month
|
|
2706
|
-
- paymentAccountId
|
|
2707
|
-
ReopenStatementDto:
|
|
2708
|
-
type: object
|
|
2709
|
-
properties:
|
|
2710
|
-
month:
|
|
2711
|
-
type: object
|
|
2712
|
-
description: Month for the statement in YYYY-MM format
|
|
2713
|
-
example: 2026-03
|
|
2714
|
-
required:
|
|
2715
|
-
- month
|
|
2716
|
-
CreateAnticipationDto:
|
|
2717
|
-
type: object
|
|
2718
|
-
properties:
|
|
2719
|
-
name:
|
|
2720
|
-
type: string
|
|
2721
|
-
description: Name/description of the anticipation
|
|
2722
|
-
amount:
|
|
2723
|
-
type: number
|
|
2724
|
-
description: Amount to anticipate
|
|
2725
|
-
minimum: 0.01
|
|
2726
|
-
purchaseDate:
|
|
2727
|
-
type: string
|
|
2728
|
-
description: Date the money leaves the account (YYYY-MM-DD)
|
|
2729
|
-
example: '2026-02-23'
|
|
2730
|
-
targetDueMonth:
|
|
2731
|
-
type: string
|
|
2732
|
-
description: Target statement due month (YYYY-MM)
|
|
2733
|
-
example: 2026-03
|
|
2734
|
-
accountId:
|
|
2735
|
-
type: string
|
|
2736
|
-
description: Account ID from which money will be debited
|
|
2737
|
-
categoryId:
|
|
2738
|
-
type: string
|
|
2739
|
-
description: Category ID for both transactions
|
|
2740
|
-
required:
|
|
2741
|
-
- name
|
|
2742
|
-
- amount
|
|
2743
|
-
- purchaseDate
|
|
2744
|
-
- targetDueMonth
|
|
2745
|
-
- accountId
|
|
2746
|
-
CreateAccountDto:
|
|
2747
|
-
type: object
|
|
2748
|
-
properties:
|
|
2749
|
-
name:
|
|
2750
|
-
type: string
|
|
2751
|
-
description: Name of the account
|
|
2752
|
-
example: Itaú Checking Account
|
|
2753
|
-
type:
|
|
2754
|
-
type: string
|
|
2755
|
-
description: Type of account
|
|
2756
|
-
enum: &ref_36
|
|
2757
|
-
- BANK_ACCOUNT
|
|
2758
|
-
- WALLET
|
|
2759
|
-
- SAVINGS_ACCOUNT
|
|
2760
|
-
- INVESTMENT_ACCOUNT
|
|
2761
|
-
- OTHER
|
|
2762
|
-
example: BANK_ACCOUNT
|
|
2763
|
-
initialBalance:
|
|
2764
|
-
type: number
|
|
2765
|
-
description: Initial balance for the account
|
|
2766
|
-
example: 1000
|
|
2767
|
-
required:
|
|
2768
|
-
- name
|
|
2769
|
-
- type
|
|
2770
|
-
AccountResponseDto:
|
|
2771
|
-
type: object
|
|
2772
|
-
properties:
|
|
2773
|
-
id:
|
|
2774
|
-
type: string
|
|
2775
|
-
description: Unique identifier for the account
|
|
2776
|
-
example: uuid-string
|
|
2777
|
-
name:
|
|
2778
|
-
type: string
|
|
2779
|
-
description: Name of the account
|
|
2780
|
-
example: Itaú Checking Account
|
|
2781
|
-
type:
|
|
2782
|
-
type: string
|
|
2783
|
-
description: Type of account
|
|
2784
|
-
enum:
|
|
2785
|
-
- BANK_ACCOUNT
|
|
2786
|
-
- WALLET
|
|
2787
|
-
- SAVINGS_ACCOUNT
|
|
2788
|
-
- INVESTMENT_ACCOUNT
|
|
2789
|
-
- OTHER
|
|
2790
|
-
example: BANK_ACCOUNT
|
|
2791
|
-
initialBalance:
|
|
2792
|
-
type: number
|
|
2793
|
-
description: Initial balance when the account was created
|
|
2794
|
-
example: 1000
|
|
2795
|
-
currentBalance:
|
|
2796
|
-
type: number
|
|
2797
|
-
description: Current balance of the account
|
|
2798
|
-
example: 850
|
|
2799
|
-
createdAt:
|
|
2800
|
-
format: date-time
|
|
2801
|
-
type: string
|
|
2802
|
-
description: Timestamp when the account was created
|
|
2803
|
-
example: '2026-02-11T12:00:00Z'
|
|
2804
|
-
updatedAt:
|
|
2805
|
-
format: date-time
|
|
2806
|
-
type: string
|
|
2807
|
-
description: Timestamp when the account was last updated
|
|
2808
|
-
example: '2026-02-11T15:30:00Z'
|
|
2809
|
-
required:
|
|
2810
|
-
- id
|
|
2811
|
-
- name
|
|
2812
|
-
- type
|
|
2813
|
-
- initialBalance
|
|
2814
|
-
- currentBalance
|
|
2815
|
-
- createdAt
|
|
2816
|
-
- updatedAt
|
|
2817
|
-
UpdateAccountDto:
|
|
2818
|
-
type: object
|
|
2819
|
-
properties:
|
|
2820
|
-
name:
|
|
2821
|
-
type: string
|
|
2822
|
-
description: Name of the account
|
|
2823
|
-
example: Itaú Checking Account
|
|
2824
|
-
type:
|
|
2825
|
-
type: string
|
|
2826
|
-
description: Type of account
|
|
2827
|
-
enum: *ref_36
|
|
2828
|
-
example: BANK_ACCOUNT
|
|
2829
|
-
initialBalance:
|
|
2830
|
-
type: number
|
|
2831
|
-
description: Initial balance for the account
|
|
2832
|
-
example: 1000
|
|
2833
|
-
SettingsResponseDto:
|
|
2834
|
-
type: object
|
|
2835
|
-
properties:
|
|
2836
|
-
language:
|
|
2837
|
-
type: string
|
|
2838
|
-
description: Preferred language
|
|
2839
|
-
example: pt-BR
|
|
2840
|
-
enum:
|
|
2841
|
-
- pt-BR
|
|
2842
|
-
- en-US
|
|
2843
|
-
currency:
|
|
2844
|
-
type: string
|
|
2845
|
-
description: Default currency
|
|
2846
|
-
example: BRL
|
|
2847
|
-
enum:
|
|
2848
|
-
- BRL
|
|
2849
|
-
- USD
|
|
2850
|
-
- EUR
|
|
2851
|
-
- GBP
|
|
2852
|
-
- JPY
|
|
2853
|
-
- CAD
|
|
2854
|
-
- AUD
|
|
2855
|
-
- CHF
|
|
2856
|
-
createdAt:
|
|
2857
|
-
type: string
|
|
2858
|
-
description: Settings creation date
|
|
2859
|
-
example: '2024-01-15T10:30:00.000Z'
|
|
2860
|
-
updatedAt:
|
|
2861
|
-
type: string
|
|
2862
|
-
description: Settings last update date
|
|
2863
|
-
example: '2024-01-15T10:30:00.000Z'
|
|
2864
|
-
required:
|
|
2865
|
-
- language
|
|
2866
|
-
- currency
|
|
2867
|
-
- createdAt
|
|
2868
|
-
- updatedAt
|
|
2869
|
-
UpdateSettingsDto:
|
|
2870
|
-
type: object
|
|
2871
|
-
properties:
|
|
2872
|
-
userName:
|
|
2873
|
-
type: string
|
|
2874
|
-
description: User name
|
|
2875
|
-
example: John Doe
|
|
2876
|
-
language:
|
|
2877
|
-
type: string
|
|
2878
|
-
description: Preferred language
|
|
2879
|
-
example: pt-BR
|
|
2880
|
-
enum:
|
|
2881
|
-
- pt-BR
|
|
2882
|
-
- en-US
|
|
2883
|
-
currency:
|
|
2884
|
-
type: string
|
|
2885
|
-
description: Default currency
|
|
2886
|
-
example: BRL
|
|
2887
|
-
enum:
|
|
2888
|
-
- BRL
|
|
2889
|
-
- USD
|
|
2890
|
-
- EUR
|
|
2891
|
-
- GBP
|
|
2892
|
-
- JPY
|
|
2893
|
-
- CAD
|
|
2894
|
-
- AUD
|
|
2895
|
-
- CHF
|
|
2896
|
-
ImportDataDto:
|
|
2897
|
-
type: object
|
|
2898
|
-
properties: {}
|
|
2899
|
-
CreateTransferDto:
|
|
2900
|
-
type: object
|
|
2901
|
-
properties:
|
|
2902
|
-
sourceAccountId:
|
|
2903
|
-
type: string
|
|
2904
|
-
description: ID of the source account
|
|
2905
|
-
destinationAccountId:
|
|
2906
|
-
type: string
|
|
2907
|
-
description: ID of the destination account
|
|
2908
|
-
amount:
|
|
2909
|
-
type: number
|
|
2910
|
-
description: Amount to transfer
|
|
2911
|
-
minimum: 0.01
|
|
2912
|
-
date:
|
|
2913
|
-
type: string
|
|
2914
|
-
description: Date of the transfer (YYYY-MM-DD)
|
|
2915
|
-
example: '2026-02-17'
|
|
2916
|
-
required:
|
|
2917
|
-
- sourceAccountId
|
|
2918
|
-
- destinationAccountId
|
|
2919
|
-
- amount
|
|
2920
|
-
- date
|
|
2921
|
-
TransferResponseDto:
|
|
2922
|
-
type: object
|
|
2923
|
-
properties:
|
|
2924
|
-
id:
|
|
2925
|
-
type: string
|
|
2926
|
-
sourceAccountId:
|
|
2927
|
-
type: string
|
|
2928
|
-
destinationAccountId:
|
|
2929
|
-
type: string
|
|
2930
|
-
amount:
|
|
2931
|
-
type: number
|
|
2932
|
-
date:
|
|
2933
|
-
type: string
|
|
2934
|
-
description: Date of the transfer (YYYY-MM-DD)
|
|
2935
|
-
createdAt:
|
|
2936
|
-
format: date-time
|
|
2937
|
-
type: string
|
|
2938
|
-
updatedAt:
|
|
2939
|
-
format: date-time
|
|
2940
|
-
type: string
|
|
2941
|
-
required:
|
|
2942
|
-
- id
|
|
2943
|
-
- sourceAccountId
|
|
2944
|
-
- destinationAccountId
|
|
2945
|
-
- amount
|
|
2946
|
-
- date
|
|
2947
|
-
- createdAt
|
|
2948
|
-
- updatedAt
|
|
2949
|
-
UpdateTransferDto:
|
|
2950
|
-
type: object
|
|
2951
|
-
properties:
|
|
2952
|
-
sourceAccountId:
|
|
2953
|
-
type: string
|
|
2954
|
-
description: ID of the source account
|
|
2955
|
-
destinationAccountId:
|
|
2956
|
-
type: string
|
|
2957
|
-
description: ID of the destination account
|
|
2958
|
-
amount:
|
|
2959
|
-
type: number
|
|
2960
|
-
description: Amount to transfer
|
|
2961
|
-
minimum: 0.01
|
|
2962
|
-
date:
|
|
2963
|
-
type: string
|
|
2964
|
-
description: Date of the transfer (YYYY-MM-DD)
|
|
2965
|
-
example: '2026-02-17'
|
|
2966
|
-
CreateApiKeyDto:
|
|
2967
|
-
type: object
|
|
2968
|
-
properties:
|
|
2969
|
-
name:
|
|
2970
|
-
type: string
|
|
2971
|
-
example: My MCP Server
|
|
2972
|
-
required:
|
|
2973
|
-
- name
|
|
2974
|
-
ApiKeyResponseDto:
|
|
2975
|
-
type: object
|
|
2976
|
-
properties:
|
|
2977
|
-
id:
|
|
2978
|
-
type: string
|
|
2979
|
-
name:
|
|
2980
|
-
type: string
|
|
2981
|
-
keyPrefix:
|
|
2982
|
-
type: string
|
|
2983
|
-
secret:
|
|
2984
|
-
type: string
|
|
2985
|
-
isActive:
|
|
2986
|
-
type: boolean
|
|
2987
|
-
lastUsedAt:
|
|
2988
|
-
format: date-time
|
|
2989
|
-
type: string
|
|
2990
|
-
createdAt:
|
|
2991
|
-
format: date-time
|
|
2992
|
-
type: string
|
|
2993
|
-
required:
|
|
2994
|
-
- id
|
|
2995
|
-
- name
|
|
2996
|
-
- keyPrefix
|
|
2997
|
-
- isActive
|
|
2998
|
-
- createdAt
|
|
2999
|
-
AdminBroadcastEmailDto:
|
|
3000
|
-
type: object
|
|
3001
|
-
properties:
|
|
3002
|
-
body:
|
|
3003
|
-
type: string
|
|
3004
|
-
description: The HTML body of the email. Can include placeholders like {{name}}
|
|
3005
|
-
example: <h1>Olá {{name}}</h1><p>Esta é uma mensagem importante.</p>
|
|
3006
|
-
subject:
|
|
3007
|
-
type: string
|
|
3008
|
-
description: The subject line of the email
|
|
3009
|
-
example: Comunicado Importante
|
|
3010
|
-
sendToAll:
|
|
3011
|
-
type: boolean
|
|
3012
|
-
description: Whether to send to all active users
|
|
3013
|
-
default: false
|
|
3014
|
-
userIds:
|
|
3015
|
-
description: Specific user IDs to send to (ignored if sendToAll is true)
|
|
3016
|
-
type: array
|
|
3017
|
-
items:
|
|
3018
|
-
type: string
|
|
3019
|
-
required:
|
|
3020
|
-
- body
|
|
3021
|
-
- subject
|
|
3022
|
-
- sendToAll
|
|
3023
|
-
AdminPreviewEmailDto:
|
|
3024
|
-
type: object
|
|
3025
|
-
properties:
|
|
3026
|
-
body:
|
|
3027
|
-
type: string
|
|
3028
|
-
description: >-
|
|
3029
|
-
The HTML body of the email. Supports shortcodes like
|
|
3030
|
-
{{button:Label|url}} and variables like {{name}}
|
|
3031
|
-
example: >-
|
|
3032
|
-
<h2>Olá {{name}}</h2><p>Novidades!</p>{{button:Ver
|
|
3033
|
-
mais|https://quantix.app}}
|
|
3034
|
-
context:
|
|
3035
|
-
type: object
|
|
3036
|
-
description: Optional context to override default preview variable values
|
|
3037
|
-
example:
|
|
3038
|
-
name: João Silva
|
|
3039
|
-
required:
|
|
3040
|
-
- body
|
|
3041
|
-
AdminUpdateUserDto:
|
|
3042
|
-
type: object
|
|
3043
|
-
properties:
|
|
3044
|
-
name:
|
|
3045
|
-
type: string
|
|
3046
|
-
example: New Name
|
|
3047
|
-
email:
|
|
3048
|
-
type: string
|
|
3049
|
-
example: new@email.com
|
|
3050
|
-
role:
|
|
3051
|
-
type: string
|
|
3052
|
-
enum:
|
|
3053
|
-
- USER
|
|
3054
|
-
- ADMIN
|
|
3055
|
-
example: ADMIN
|
|
3056
|
-
CreateAIModelDto:
|
|
3057
|
-
type: object
|
|
3058
|
-
properties:
|
|
3059
|
-
name:
|
|
3060
|
-
type: string
|
|
3061
|
-
example: anthropic/claude-3.5-sonnet
|
|
3062
|
-
inputPricePerMillion:
|
|
3063
|
-
type: number
|
|
3064
|
-
example: 3
|
|
3065
|
-
outputPricePerMillion:
|
|
3066
|
-
type: number
|
|
3067
|
-
example: 15
|
|
3068
|
-
provider:
|
|
3069
|
-
type: string
|
|
3070
|
-
example: Anthropic
|
|
3071
|
-
currency:
|
|
3072
|
-
type: string
|
|
3073
|
-
example: USD
|
|
3074
|
-
default: USD
|
|
3075
|
-
required:
|
|
3076
|
-
- name
|
|
3077
|
-
- inputPricePerMillion
|
|
3078
|
-
- outputPricePerMillion
|
|
3079
|
-
- provider
|
|
3080
|
-
- currency
|
|
3081
|
-
UpdateAIModelDto:
|
|
3082
|
-
type: object
|
|
3083
|
-
properties:
|
|
3084
|
-
name:
|
|
3085
|
-
type: string
|
|
3086
|
-
example: anthropic/claude-3.5-sonnet
|
|
3087
|
-
inputPricePerMillion:
|
|
3088
|
-
type: number
|
|
3089
|
-
example: 3
|
|
3090
|
-
outputPricePerMillion:
|
|
3091
|
-
type: number
|
|
3092
|
-
example: 15
|
|
3093
|
-
provider:
|
|
3094
|
-
type: string
|
|
3095
|
-
example: Anthropic
|
|
3096
|
-
currency:
|
|
3097
|
-
type: string
|
|
3098
|
-
example: USD
|
|
3099
|
-
default: USD
|
|
3100
|
-
UpdateSystemSettingDto:
|
|
3101
|
-
type: object
|
|
3102
|
-
properties:
|
|
3103
|
-
value:
|
|
3104
|
-
type: string
|
|
3105
|
-
description: Value for the setting
|
|
3106
|
-
example: 'true'
|
|
3107
|
-
type:
|
|
3108
|
-
type: string
|
|
3109
|
-
description: Type of the setting value
|
|
3110
|
-
enum:
|
|
3111
|
-
- boolean
|
|
3112
|
-
- numeric
|
|
3113
|
-
- string
|
|
3114
|
-
example: boolean
|
|
3115
|
-
required:
|
|
3116
|
-
- value
|
|
3117
|
-
CreateInviteDto:
|
|
3118
|
-
type: object
|
|
3119
|
-
properties:
|
|
3120
|
-
email:
|
|
3121
|
-
type: string
|
|
3122
|
-
description: Email to invite
|
|
3123
|
-
example: guest@example.com
|
|
3124
|
-
required:
|
|
3125
|
-
- email
|
|
3126
|
-
security:
|
|
3127
|
-
- bearer: []
|