@warmio/contracts 1.0.0
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 +15 -0
- package/dist/api/endpoints.d.ts +461 -0
- package/dist/api/endpoints.d.ts.map +1 -0
- package/dist/api/endpoints.js +397 -0
- package/dist/api/endpoints.js.map +1 -0
- package/dist/api/index.d.ts +2 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +2 -0
- package/dist/api/index.js.map +1 -0
- package/dist/examples/automation.d.ts +16 -0
- package/dist/examples/automation.d.ts.map +1 -0
- package/dist/examples/automation.js +17 -0
- package/dist/examples/automation.js.map +1 -0
- package/dist/examples/financial-context.d.ts +32 -0
- package/dist/examples/financial-context.d.ts.map +1 -0
- package/dist/examples/financial-context.js +29 -0
- package/dist/examples/financial-context.js.map +1 -0
- package/dist/examples/index.d.ts +3 -0
- package/dist/examples/index.d.ts.map +1 -0
- package/dist/examples/index.js +3 -0
- package/dist/examples/index.js.map +1 -0
- package/dist/generated/base-openapi.d.ts +2 -0
- package/dist/generated/base-openapi.d.ts.map +1 -0
- package/dist/generated/base-openapi.js +3 -0
- package/dist/generated/base-openapi.js.map +1 -0
- package/dist/generated/private-mcp-tool-descriptors.d.ts +1031 -0
- package/dist/generated/private-mcp-tool-descriptors.d.ts.map +1 -0
- package/dist/generated/private-mcp-tool-descriptors.js +1541 -0
- package/dist/generated/private-mcp-tool-descriptors.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/manifest.d.ts +3 -0
- package/dist/manifest.d.ts.map +1 -0
- package/dist/manifest.js +3 -0
- package/dist/manifest.js.map +1 -0
- package/dist/mcp/index.d.ts +2 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +2 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/mcp/tools.d.ts +88 -0
- package/dist/mcp/tools.d.ts.map +1 -0
- package/dist/mcp/tools.js +124 -0
- package/dist/mcp/tools.js.map +1 -0
- package/dist/openapi/base.yaml +1679 -0
- package/dist/openapi/build-openapi.d.ts +28 -0
- package/dist/openapi/build-openapi.d.ts.map +1 -0
- package/dist/openapi/build-openapi.js +89 -0
- package/dist/openapi/build-openapi.js.map +1 -0
- package/dist/openapi/index.d.ts +2 -0
- package/dist/openapi/index.d.ts.map +1 -0
- package/dist/openapi/index.js +2 -0
- package/dist/openapi/index.js.map +1 -0
- package/dist/schemas/automation.d.ts +248 -0
- package/dist/schemas/automation.d.ts.map +1 -0
- package/dist/schemas/automation.js +46 -0
- package/dist/schemas/automation.js.map +1 -0
- package/dist/schemas/common.d.ts +76 -0
- package/dist/schemas/common.d.ts.map +1 -0
- package/dist/schemas/common.js +23 -0
- package/dist/schemas/common.js.map +1 -0
- package/dist/schemas/financial-context.d.ts +1300 -0
- package/dist/schemas/financial-context.d.ts.map +1 -0
- package/dist/schemas/financial-context.js +271 -0
- package/dist/schemas/financial-context.js.map +1 -0
- package/dist/schemas/index.d.ts +4 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +4 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/types.d.ts +68 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/package.json +94 -0
package/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# @warmio/contracts
|
|
2
|
+
|
|
3
|
+
Machine-readable, side-effect-free contracts for Warm's public API and authenticated/local MCP surfaces. This is a contract package, not a client SDK: it contains schemas, inferred DTOs, endpoint metadata, examples, OpenAPI generation, and MCP descriptors; it does not perform network requests or start a server.
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
import { API_ORIGIN, apiEndpointManifest } from '@warmio/contracts/manifest';
|
|
7
|
+
import { financialContextSchema } from '@warmio/contracts/schemas';
|
|
8
|
+
import { buildOpenApiYaml } from '@warmio/contracts/openapi';
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
`@warmio/contracts/manifest` is intentionally safe for docs and edge consumers that only need URL, auth, rate-limit, and endpoint facts. The authenticated/local MCP definitions are exported from the root or `@warmio/contracts/mcp`; public discovery MCP tools remain owned by the edge worker.
|
|
12
|
+
|
|
13
|
+
Warm publishes this package from `jasonstockman/warm-app`. It follows semver for documented public exports and wire-contract changes, but it is not a general-purpose SDK or a promise of hosted support beyond those contracts.
|
|
14
|
+
|
|
15
|
+
The package is publicly readable for Warm's runtime and documentation consumers, but it is not open-source licensed. Public npm visibility does not grant permission to copy or redistribute its source beyond applicable package-use terms.
|
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
export declare const API_ORIGIN = "https://app.warm.io";
|
|
2
|
+
export declare const DISCOVERY_ORIGIN = "https://warm.io";
|
|
3
|
+
export declare const PUBLIC_DOCS_ORIGIN = "https://warm.io";
|
|
4
|
+
export declare const OPENAPI_PATH = "/openapi.yaml";
|
|
5
|
+
export declare const DEVELOPERS_PATH = "/developers";
|
|
6
|
+
export declare const PUBLIC_DISCOVERY_MCP_PATH = "/mcp";
|
|
7
|
+
export declare const VERIFY_PATH = "/api/verify";
|
|
8
|
+
export declare const apiKeyPrefixesByAudience: {
|
|
9
|
+
readonly automation: 'warm_auto_';
|
|
10
|
+
readonly context: 'warm_ctx_';
|
|
11
|
+
};
|
|
12
|
+
export declare const apiAuthSchemes: {
|
|
13
|
+
readonly automation: {
|
|
14
|
+
readonly bearer_prefix: "warm_auto_";
|
|
15
|
+
readonly description: 'Automation routes require an automation API key.';
|
|
16
|
+
readonly scheme: 'bearer';
|
|
17
|
+
};
|
|
18
|
+
readonly context: {
|
|
19
|
+
readonly bearer_prefix: "warm_ctx_";
|
|
20
|
+
readonly description: 'Read/export routes accept a Warm API key or signed-in access token.';
|
|
21
|
+
readonly scheme: 'bearer';
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare const apiRateLimits: {
|
|
25
|
+
readonly automation: {
|
|
26
|
+
readonly requests_per_hour: 500;
|
|
27
|
+
};
|
|
28
|
+
readonly context: {
|
|
29
|
+
readonly requests_per_hour: 200;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export declare const automationOperationDescriptors: readonly [{
|
|
33
|
+
readonly operation_id: "budgets.list";
|
|
34
|
+
readonly method: "GET";
|
|
35
|
+
readonly path: "/api/pwa/budgets";
|
|
36
|
+
readonly path_parameter_kind: null;
|
|
37
|
+
readonly summary: "List budgets";
|
|
38
|
+
readonly description: "List the user’s budgets and current progress.";
|
|
39
|
+
} & {
|
|
40
|
+
confirmation_required: boolean;
|
|
41
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
42
|
+
}, {
|
|
43
|
+
readonly operation_id: "budgets.create";
|
|
44
|
+
readonly method: "POST";
|
|
45
|
+
readonly path: "/api/pwa/budgets";
|
|
46
|
+
readonly path_parameter_kind: null;
|
|
47
|
+
readonly summary: "Create budget";
|
|
48
|
+
readonly description: "Create a category or merchant budget.";
|
|
49
|
+
} & {
|
|
50
|
+
confirmation_required: boolean;
|
|
51
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
52
|
+
}, {
|
|
53
|
+
readonly operation_id: "budgets.get";
|
|
54
|
+
readonly method: "GET";
|
|
55
|
+
readonly path: "/api/pwa/budgets/{id}";
|
|
56
|
+
readonly path_parameter_kind: "uuid";
|
|
57
|
+
readonly summary: "Get budget";
|
|
58
|
+
readonly description: "Get one budget by ID.";
|
|
59
|
+
} & {
|
|
60
|
+
confirmation_required: boolean;
|
|
61
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
62
|
+
}, {
|
|
63
|
+
readonly operation_id: "budgets.update";
|
|
64
|
+
readonly method: "PATCH";
|
|
65
|
+
readonly path: "/api/pwa/budgets/{id}";
|
|
66
|
+
readonly path_parameter_kind: "uuid";
|
|
67
|
+
readonly summary: "Update budget";
|
|
68
|
+
readonly description: "Update one budget by ID.";
|
|
69
|
+
} & {
|
|
70
|
+
confirmation_required: boolean;
|
|
71
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
72
|
+
}, {
|
|
73
|
+
readonly operation_id: "budgets.delete";
|
|
74
|
+
readonly method: "DELETE";
|
|
75
|
+
readonly path: "/api/pwa/budgets/{id}";
|
|
76
|
+
readonly path_parameter_kind: "uuid";
|
|
77
|
+
readonly summary: "Delete budget";
|
|
78
|
+
readonly description: "Permanently delete one budget.";
|
|
79
|
+
readonly risk: ["destructive"];
|
|
80
|
+
} & {
|
|
81
|
+
confirmation_required: boolean;
|
|
82
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
83
|
+
}, {
|
|
84
|
+
readonly operation_id: "goals.create";
|
|
85
|
+
readonly method: "POST";
|
|
86
|
+
readonly path: "/api/pwa/goals";
|
|
87
|
+
readonly path_parameter_kind: null;
|
|
88
|
+
readonly summary: "Create goal";
|
|
89
|
+
readonly description: "Create a savings goal.";
|
|
90
|
+
} & {
|
|
91
|
+
confirmation_required: boolean;
|
|
92
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
93
|
+
}, {
|
|
94
|
+
readonly operation_id: "goals.get";
|
|
95
|
+
readonly method: "GET";
|
|
96
|
+
readonly path: "/api/pwa/goals/{id}";
|
|
97
|
+
readonly path_parameter_kind: "uuid";
|
|
98
|
+
readonly summary: "Get goal";
|
|
99
|
+
readonly description: "Get one savings goal by ID.";
|
|
100
|
+
} & {
|
|
101
|
+
confirmation_required: boolean;
|
|
102
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
103
|
+
}, {
|
|
104
|
+
readonly operation_id: "goals.update";
|
|
105
|
+
readonly method: "PATCH";
|
|
106
|
+
readonly path: "/api/pwa/goals/{id}";
|
|
107
|
+
readonly path_parameter_kind: "uuid";
|
|
108
|
+
readonly summary: "Update goal";
|
|
109
|
+
readonly description: "Update one savings goal.";
|
|
110
|
+
} & {
|
|
111
|
+
confirmation_required: boolean;
|
|
112
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
113
|
+
}, {
|
|
114
|
+
readonly operation_id: "goals.delete";
|
|
115
|
+
readonly method: "DELETE";
|
|
116
|
+
readonly path: "/api/pwa/goals/{id}";
|
|
117
|
+
readonly path_parameter_kind: "uuid";
|
|
118
|
+
readonly summary: "Delete goal";
|
|
119
|
+
readonly description: "Permanently delete one savings goal.";
|
|
120
|
+
readonly risk: ["destructive"];
|
|
121
|
+
} & {
|
|
122
|
+
confirmation_required: boolean;
|
|
123
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
124
|
+
}, {
|
|
125
|
+
readonly operation_id: "goals.complete";
|
|
126
|
+
readonly method: "POST";
|
|
127
|
+
readonly path: "/api/pwa/goals/{id}/complete";
|
|
128
|
+
readonly path_parameter_kind: "uuid";
|
|
129
|
+
readonly summary: "Complete goal";
|
|
130
|
+
readonly description: "Mark a savings goal complete.";
|
|
131
|
+
} & {
|
|
132
|
+
confirmation_required: boolean;
|
|
133
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
134
|
+
}, {
|
|
135
|
+
readonly operation_id: "goals.reopen";
|
|
136
|
+
readonly method: "POST";
|
|
137
|
+
readonly path: "/api/pwa/goals/{id}/reopen";
|
|
138
|
+
readonly path_parameter_kind: "uuid";
|
|
139
|
+
readonly summary: "Reopen goal";
|
|
140
|
+
readonly description: "Reopen a completed savings goal.";
|
|
141
|
+
} & {
|
|
142
|
+
confirmation_required: boolean;
|
|
143
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
144
|
+
}, {
|
|
145
|
+
readonly operation_id: "transactions.create";
|
|
146
|
+
readonly method: "POST";
|
|
147
|
+
readonly path: "/api/pwa/transactions";
|
|
148
|
+
readonly path_parameter_kind: null;
|
|
149
|
+
readonly summary: "Create transaction";
|
|
150
|
+
readonly description: "Create a manual transaction.";
|
|
151
|
+
} & {
|
|
152
|
+
confirmation_required: boolean;
|
|
153
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
154
|
+
}, {
|
|
155
|
+
readonly operation_id: "transactions.get";
|
|
156
|
+
readonly method: "GET";
|
|
157
|
+
readonly path: "/api/pwa/transactions/{id}";
|
|
158
|
+
readonly path_parameter_kind: "uuid";
|
|
159
|
+
readonly summary: "Get transaction";
|
|
160
|
+
readonly description: "Get one transaction by ID.";
|
|
161
|
+
} & {
|
|
162
|
+
confirmation_required: boolean;
|
|
163
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
164
|
+
}, {
|
|
165
|
+
readonly operation_id: "transactions.update";
|
|
166
|
+
readonly method: "PATCH";
|
|
167
|
+
readonly path: "/api/pwa/transactions/{id}";
|
|
168
|
+
readonly path_parameter_kind: "uuid";
|
|
169
|
+
readonly summary: "Update transaction";
|
|
170
|
+
readonly description: "Update one transaction.";
|
|
171
|
+
} & {
|
|
172
|
+
confirmation_required: boolean;
|
|
173
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
174
|
+
}, {
|
|
175
|
+
readonly operation_id: "transactions.delete";
|
|
176
|
+
readonly method: "DELETE";
|
|
177
|
+
readonly path: "/api/pwa/transactions/{id}";
|
|
178
|
+
readonly path_parameter_kind: "uuid";
|
|
179
|
+
readonly summary: "Delete transaction";
|
|
180
|
+
readonly description: "Permanently delete one transaction.";
|
|
181
|
+
readonly risk: ["destructive"];
|
|
182
|
+
} & {
|
|
183
|
+
confirmation_required: boolean;
|
|
184
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
185
|
+
}, {
|
|
186
|
+
readonly operation_id: "transactions.confirm";
|
|
187
|
+
readonly method: "POST";
|
|
188
|
+
readonly path: "/api/pwa/transactions/{id}/confirm";
|
|
189
|
+
readonly path_parameter_kind: "uuid";
|
|
190
|
+
readonly summary: "Confirm transaction";
|
|
191
|
+
readonly description: "Confirm a pending transaction classification.";
|
|
192
|
+
} & {
|
|
193
|
+
confirmation_required: boolean;
|
|
194
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
195
|
+
}, {
|
|
196
|
+
readonly operation_id: "transactions.skip";
|
|
197
|
+
readonly method: "POST";
|
|
198
|
+
readonly path: "/api/pwa/transactions/{id}/skip";
|
|
199
|
+
readonly path_parameter_kind: "uuid";
|
|
200
|
+
readonly summary: "Skip transaction";
|
|
201
|
+
readonly description: "Skip a pending transaction review.";
|
|
202
|
+
} & {
|
|
203
|
+
confirmation_required: boolean;
|
|
204
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
205
|
+
}, {
|
|
206
|
+
readonly operation_id: "assets.list";
|
|
207
|
+
readonly method: "GET";
|
|
208
|
+
readonly path: "/api/pwa/assets";
|
|
209
|
+
readonly path_parameter_kind: null;
|
|
210
|
+
readonly summary: "List assets";
|
|
211
|
+
readonly description: "List manually tracked assets.";
|
|
212
|
+
} & {
|
|
213
|
+
confirmation_required: boolean;
|
|
214
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
215
|
+
}, {
|
|
216
|
+
readonly operation_id: "assets.create";
|
|
217
|
+
readonly method: "POST";
|
|
218
|
+
readonly path: "/api/pwa/assets";
|
|
219
|
+
readonly path_parameter_kind: null;
|
|
220
|
+
readonly summary: "Create asset";
|
|
221
|
+
readonly description: "Create a manually tracked asset.";
|
|
222
|
+
} & {
|
|
223
|
+
confirmation_required: boolean;
|
|
224
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
225
|
+
}, {
|
|
226
|
+
readonly operation_id: "assets.get";
|
|
227
|
+
readonly method: "GET";
|
|
228
|
+
readonly path: "/api/pwa/assets/{id}";
|
|
229
|
+
readonly path_parameter_kind: "uuid";
|
|
230
|
+
readonly summary: "Get asset";
|
|
231
|
+
readonly description: "Get one asset by ID.";
|
|
232
|
+
} & {
|
|
233
|
+
confirmation_required: boolean;
|
|
234
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
235
|
+
}, {
|
|
236
|
+
readonly operation_id: "assets.update";
|
|
237
|
+
readonly method: "PATCH";
|
|
238
|
+
readonly path: "/api/pwa/assets/{id}";
|
|
239
|
+
readonly path_parameter_kind: "uuid";
|
|
240
|
+
readonly summary: "Update asset";
|
|
241
|
+
readonly description: "Update one manually tracked asset.";
|
|
242
|
+
} & {
|
|
243
|
+
confirmation_required: boolean;
|
|
244
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
245
|
+
}, {
|
|
246
|
+
readonly operation_id: "assets.delete";
|
|
247
|
+
readonly method: "DELETE";
|
|
248
|
+
readonly path: "/api/pwa/assets/{id}";
|
|
249
|
+
readonly path_parameter_kind: "uuid";
|
|
250
|
+
readonly summary: "Delete asset";
|
|
251
|
+
readonly description: "Permanently delete one manually tracked asset.";
|
|
252
|
+
readonly risk: ["destructive"];
|
|
253
|
+
} & {
|
|
254
|
+
confirmation_required: boolean;
|
|
255
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
256
|
+
}, {
|
|
257
|
+
readonly operation_id: "accounts.get";
|
|
258
|
+
readonly method: "GET";
|
|
259
|
+
readonly path: "/api/pwa/accounts/{id}";
|
|
260
|
+
readonly path_parameter_kind: "opaque";
|
|
261
|
+
readonly summary: "Get account";
|
|
262
|
+
readonly description: "Get one account by ID.";
|
|
263
|
+
} & {
|
|
264
|
+
confirmation_required: boolean;
|
|
265
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
266
|
+
}, {
|
|
267
|
+
readonly operation_id: "accounts.update";
|
|
268
|
+
readonly method: "PATCH";
|
|
269
|
+
readonly path: "/api/pwa/accounts/{id}";
|
|
270
|
+
readonly path_parameter_kind: "opaque";
|
|
271
|
+
readonly summary: "Update account";
|
|
272
|
+
readonly description: "Update editable account fields.";
|
|
273
|
+
} & {
|
|
274
|
+
confirmation_required: boolean;
|
|
275
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
276
|
+
}, {
|
|
277
|
+
readonly operation_id: "accounts.delete";
|
|
278
|
+
readonly method: "DELETE";
|
|
279
|
+
readonly path: "/api/pwa/accounts/{id}";
|
|
280
|
+
readonly path_parameter_kind: "opaque";
|
|
281
|
+
readonly summary: "Delete account";
|
|
282
|
+
readonly description: "Permanently delete a user-owned account.";
|
|
283
|
+
readonly risk: ["destructive"];
|
|
284
|
+
} & {
|
|
285
|
+
confirmation_required: boolean;
|
|
286
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
287
|
+
}, {
|
|
288
|
+
readonly operation_id: "alerts.list";
|
|
289
|
+
readonly method: "GET";
|
|
290
|
+
readonly path: "/api/pwa/alerts";
|
|
291
|
+
readonly path_parameter_kind: null;
|
|
292
|
+
readonly summary: "List alerts";
|
|
293
|
+
readonly description: "List spending alerts.";
|
|
294
|
+
} & {
|
|
295
|
+
confirmation_required: boolean;
|
|
296
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
297
|
+
}, {
|
|
298
|
+
readonly operation_id: "alerts.acknowledge";
|
|
299
|
+
readonly method: "PATCH";
|
|
300
|
+
readonly path: "/api/pwa/alerts/{id}";
|
|
301
|
+
readonly path_parameter_kind: "uuid";
|
|
302
|
+
readonly summary: "Acknowledge alert";
|
|
303
|
+
readonly description: "Acknowledge one spending alert.";
|
|
304
|
+
} & {
|
|
305
|
+
confirmation_required: boolean;
|
|
306
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
307
|
+
}, {
|
|
308
|
+
readonly operation_id: "alerts.delete";
|
|
309
|
+
readonly method: "DELETE";
|
|
310
|
+
readonly path: "/api/pwa/alerts/{id}";
|
|
311
|
+
readonly path_parameter_kind: "uuid";
|
|
312
|
+
readonly summary: "Delete alert";
|
|
313
|
+
readonly description: "Permanently delete one spending alert.";
|
|
314
|
+
readonly risk: ["destructive"];
|
|
315
|
+
} & {
|
|
316
|
+
confirmation_required: boolean;
|
|
317
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
318
|
+
}, {
|
|
319
|
+
readonly operation_id: "tag_rules.list";
|
|
320
|
+
readonly method: "GET";
|
|
321
|
+
readonly path: "/api/pwa/tag-rules";
|
|
322
|
+
readonly path_parameter_kind: null;
|
|
323
|
+
readonly summary: "List tag rules";
|
|
324
|
+
readonly description: "List automatic transaction tag rules.";
|
|
325
|
+
} & {
|
|
326
|
+
confirmation_required: boolean;
|
|
327
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
328
|
+
}, {
|
|
329
|
+
readonly operation_id: "tag_rules.create";
|
|
330
|
+
readonly method: "POST";
|
|
331
|
+
readonly path: "/api/pwa/tag-rules";
|
|
332
|
+
readonly path_parameter_kind: null;
|
|
333
|
+
readonly summary: "Create tag rule";
|
|
334
|
+
readonly description: "Create an automatic transaction tag rule.";
|
|
335
|
+
} & {
|
|
336
|
+
confirmation_required: boolean;
|
|
337
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
338
|
+
}, {
|
|
339
|
+
readonly operation_id: "tag_rules.get";
|
|
340
|
+
readonly method: "GET";
|
|
341
|
+
readonly path: "/api/pwa/tag-rules/{id}";
|
|
342
|
+
readonly path_parameter_kind: "uuid";
|
|
343
|
+
readonly summary: "Get tag rule";
|
|
344
|
+
readonly description: "Get one tag rule by ID.";
|
|
345
|
+
} & {
|
|
346
|
+
confirmation_required: boolean;
|
|
347
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
348
|
+
}, {
|
|
349
|
+
readonly operation_id: "tag_rules.update";
|
|
350
|
+
readonly method: "PATCH";
|
|
351
|
+
readonly path: "/api/pwa/tag-rules/{id}";
|
|
352
|
+
readonly path_parameter_kind: "uuid";
|
|
353
|
+
readonly summary: "Update tag rule";
|
|
354
|
+
readonly description: "Update one automatic tag rule.";
|
|
355
|
+
} & {
|
|
356
|
+
confirmation_required: boolean;
|
|
357
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
358
|
+
}, {
|
|
359
|
+
readonly operation_id: "tag_rules.delete";
|
|
360
|
+
readonly method: "DELETE";
|
|
361
|
+
readonly path: "/api/pwa/tag-rules/{id}";
|
|
362
|
+
readonly path_parameter_kind: "uuid";
|
|
363
|
+
readonly summary: "Delete tag rule";
|
|
364
|
+
readonly description: "Permanently delete one automatic tag rule.";
|
|
365
|
+
readonly risk: ["destructive"];
|
|
366
|
+
} & {
|
|
367
|
+
confirmation_required: boolean;
|
|
368
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
369
|
+
}, {
|
|
370
|
+
readonly operation_id: "recurring.update";
|
|
371
|
+
readonly method: "PATCH";
|
|
372
|
+
readonly path: "/api/pwa/recurring/{id}";
|
|
373
|
+
readonly path_parameter_kind: "opaque";
|
|
374
|
+
readonly summary: "Update recurring item";
|
|
375
|
+
readonly description: "Update one recurring transaction item.";
|
|
376
|
+
} & {
|
|
377
|
+
confirmation_required: boolean;
|
|
378
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
379
|
+
}, {
|
|
380
|
+
readonly operation_id: "recurring.delete";
|
|
381
|
+
readonly method: "DELETE";
|
|
382
|
+
readonly path: "/api/pwa/recurring/{id}";
|
|
383
|
+
readonly path_parameter_kind: "opaque";
|
|
384
|
+
readonly summary: "Delete recurring item";
|
|
385
|
+
readonly description: "Permanently delete one recurring item.";
|
|
386
|
+
readonly risk: ["destructive"];
|
|
387
|
+
} & {
|
|
388
|
+
confirmation_required: boolean;
|
|
389
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
390
|
+
}, {
|
|
391
|
+
readonly operation_id: "settings.get";
|
|
392
|
+
readonly method: "GET";
|
|
393
|
+
readonly path: "/api/pwa/settings";
|
|
394
|
+
readonly path_parameter_kind: null;
|
|
395
|
+
readonly summary: "Get settings";
|
|
396
|
+
readonly description: "Get user settings.";
|
|
397
|
+
} & {
|
|
398
|
+
confirmation_required: boolean;
|
|
399
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
400
|
+
}, {
|
|
401
|
+
readonly operation_id: "settings.update";
|
|
402
|
+
readonly method: "PATCH";
|
|
403
|
+
readonly path: "/api/pwa/settings";
|
|
404
|
+
readonly path_parameter_kind: null;
|
|
405
|
+
readonly summary: "Update settings";
|
|
406
|
+
readonly description: "Update user settings.";
|
|
407
|
+
} & {
|
|
408
|
+
confirmation_required: boolean;
|
|
409
|
+
risk: ("destructive" | "external_effect" | "read" | "write")[];
|
|
410
|
+
}];
|
|
411
|
+
export type AutomationOperationId = (typeof automationOperationDescriptors)[number]['operation_id'];
|
|
412
|
+
export declare const apiEndpointManifest: readonly [{
|
|
413
|
+
readonly audience: 'context';
|
|
414
|
+
readonly method: 'GET';
|
|
415
|
+
readonly operation_id: 'verifyApiAccess';
|
|
416
|
+
readonly path: "/api/verify";
|
|
417
|
+
readonly summary: 'Verify API credentials';
|
|
418
|
+
}, {
|
|
419
|
+
readonly audience: 'context';
|
|
420
|
+
readonly method: 'GET';
|
|
421
|
+
readonly operation_id: 'getDatasetExport';
|
|
422
|
+
readonly path: '/api/export';
|
|
423
|
+
readonly summary: 'Get a typed dataset export';
|
|
424
|
+
}, {
|
|
425
|
+
readonly audience: 'context';
|
|
426
|
+
readonly method: 'GET';
|
|
427
|
+
readonly operation_id: 'getFinancialContext';
|
|
428
|
+
readonly path: '/api/financial-context';
|
|
429
|
+
readonly summary: 'Get compact financial context';
|
|
430
|
+
}, {
|
|
431
|
+
readonly audience: 'context';
|
|
432
|
+
readonly method: 'GET';
|
|
433
|
+
readonly operation_id: 'getFinancialContextTransactions';
|
|
434
|
+
readonly path: '/api/financial-context/transactions';
|
|
435
|
+
readonly summary: 'Get financial-context transactions';
|
|
436
|
+
}, {
|
|
437
|
+
readonly audience: 'context';
|
|
438
|
+
readonly method: 'GET';
|
|
439
|
+
readonly operation_id: 'getFinancialContextMeta';
|
|
440
|
+
readonly path: '/api/financial-context/meta';
|
|
441
|
+
readonly summary: 'Get financial-context metadata';
|
|
442
|
+
}, {
|
|
443
|
+
readonly audience: 'automation';
|
|
444
|
+
readonly method: 'POST';
|
|
445
|
+
readonly operation_id: 'searchOperations';
|
|
446
|
+
readonly path: '/api/automation/operations/search';
|
|
447
|
+
readonly summary: 'Search supported automation operations';
|
|
448
|
+
}, {
|
|
449
|
+
readonly audience: 'automation';
|
|
450
|
+
readonly method: 'POST';
|
|
451
|
+
readonly operation_id: 'describeOperation';
|
|
452
|
+
readonly path: '/api/automation/operations/describe';
|
|
453
|
+
readonly summary: 'Describe one supported operation';
|
|
454
|
+
}, {
|
|
455
|
+
readonly audience: 'automation';
|
|
456
|
+
readonly method: 'POST';
|
|
457
|
+
readonly operation_id: 'invokeOperation';
|
|
458
|
+
readonly path: '/api/automation/operations/invoke';
|
|
459
|
+
readonly summary: 'Invoke one supported operation';
|
|
460
|
+
}];
|
|
461
|
+
//# sourceMappingURL=endpoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../src/api/endpoints.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,wBAAwB,CAAC;AAChD,eAAO,MAAM,gBAAgB,oBAAoB,CAAC;AAClD,eAAO,MAAM,kBAAkB,oBAAmB,CAAC;AACnD,eAAO,MAAM,YAAY,kBAAkB,CAAC;AAC5C,eAAO,MAAM,eAAe,gBAAgB,CAAC;AAC7C,eAAO,MAAM,yBAAyB,SAAS,CAAC;AAChD,eAAO,MAAM,WAAW,gBAAgB,CAAC;AAEzC,eAAO,MAAM,wBAAwB;aACnC,UAAU,EAAE,YAAY;aACxB,OAAO,EAAE,WAAW;CACZ,CAAC;AAEX,eAAO,MAAM,cAAc;aACzB,UAAU;iBACR,aAAa;iBACb,WAAW,EAAE,kDAAkD;iBAC/D,MAAM,EAAE,QAAQ;;aAElB,OAAO;iBACL,aAAa;iBACb,WAAW,EAAE,qEAAqE;iBAClF,MAAM,EAAE,QAAQ;;CAEV,CAAC;AAEX,eAAO,MAAM,aAAa;aACxB,UAAU;iBAAI,iBAAiB,EAAE,GAAG;;aACpC,OAAO;iBAAI,iBAAiB,EAAE,GAAG;;CACzB,CAAC;AAYX,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiTkB,CAAC;AAE9D,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,8BAA8B,CAAC,CAAC,MAAM,CAAC,CAAC,cAAc,CAAC,CAAC;AAEpG,eAAO,MAAM,mBAAmB;aAE5B,QAAQ,EAAE,SAAS;aACnB,MAAM,EAAE,KAAK;aACb,YAAY,EAAE,iBAAiB;aAC/B,IAAI;aACJ,OAAO,EAAE,wBAAwB;;aAGjC,QAAQ,EAAE,SAAS;aACnB,MAAM,EAAE,KAAK;aACb,YAAY,EAAE,kBAAkB;aAChC,IAAI,EAAE,aAAa;aACnB,OAAO,EAAE,4BAA4B;;aAGrC,QAAQ,EAAE,SAAS;aACnB,MAAM,EAAE,KAAK;aACb,YAAY,EAAE,qBAAqB;aACnC,IAAI,EAAE,wBAAwB;aAC9B,OAAO,EAAE,+BAA+B;;aAGxC,QAAQ,EAAE,SAAS;aACnB,MAAM,EAAE,KAAK;aACb,YAAY,EAAE,iCAAiC;aAC/C,IAAI,EAAE,qCAAqC;aAC3C,OAAO,EAAE,oCAAoC;;aAG7C,QAAQ,EAAE,SAAS;aACnB,MAAM,EAAE,KAAK;aACb,YAAY,EAAE,yBAAyB;aACvC,IAAI,EAAE,6BAA6B;aACnC,OAAO,EAAE,gCAAgC;;aAGzC,QAAQ,EAAE,YAAY;aACtB,MAAM,EAAE,MAAM;aACd,YAAY,EAAE,kBAAkB;aAChC,IAAI,EAAE,mCAAmC;aACzC,OAAO,EAAE,wCAAwC;;aAGjD,QAAQ,EAAE,YAAY;aACtB,MAAM,EAAE,MAAM;aACd,YAAY,EAAE,mBAAmB;aACjC,IAAI,EAAE,qCAAqC;aAC3C,OAAO,EAAE,kCAAkC;;aAG3C,QAAQ,EAAE,YAAY;aACtB,MAAM,EAAE,MAAM;aACd,YAAY,EAAE,iBAAiB;aAC/B,IAAI,EAAE,mCAAmC;aACzC,OAAO,EAAE,gCAAgC;EAEnC,CAAC"}
|