@firela/api-types 0.0.0-canary.efbd2b9a → 0.0.0-canary.f2efa2bf
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/dist/index.d.mts +35 -728
- package/dist/index.d.ts +35 -728
- package/dist/index.js +16 -71
- package/dist/index.mjs +16 -71
- package/package.json +1 -1
- package/src/generated/schemas.gen.ts +2 -819
- package/src/generated/services.gen.ts +20 -89
- package/src/generated/types.gen.ts +23 -734
|
@@ -257,12 +257,10 @@ import type {
|
|
|
257
257
|
|
|
258
258
|
export class BeanAccountsService {
|
|
259
259
|
/**
|
|
260
|
-
* Create a new account
|
|
261
|
-
* Creates a new account (Beancount Open directive)
|
|
262
260
|
* @param data The data for the request.
|
|
263
261
|
* @param data.region Region code for tenant context
|
|
264
262
|
* @param data.requestBody
|
|
265
|
-
* @returns
|
|
263
|
+
* @returns unknown
|
|
266
264
|
* @throws ApiError
|
|
267
265
|
*/
|
|
268
266
|
public static accountControllerCreate(
|
|
@@ -275,10 +273,7 @@ export class BeanAccountsService {
|
|
|
275
273
|
region: data.region
|
|
276
274
|
},
|
|
277
275
|
body: data.requestBody,
|
|
278
|
-
mediaType: 'application/json'
|
|
279
|
-
errors: {
|
|
280
|
-
409: 'Account already exists'
|
|
281
|
-
}
|
|
276
|
+
mediaType: 'application/json'
|
|
282
277
|
});
|
|
283
278
|
}
|
|
284
279
|
|
|
@@ -342,13 +337,11 @@ export class BeanAccountsService {
|
|
|
342
337
|
}
|
|
343
338
|
|
|
344
339
|
/**
|
|
345
|
-
* Update account
|
|
346
|
-
* Updates account metadata (path cannot be changed)
|
|
347
340
|
* @param data The data for the request.
|
|
348
|
-
* @param data.id
|
|
341
|
+
* @param data.id
|
|
349
342
|
* @param data.region Region code for tenant context
|
|
350
343
|
* @param data.requestBody
|
|
351
|
-
* @returns
|
|
344
|
+
* @returns unknown
|
|
352
345
|
* @throws ApiError
|
|
353
346
|
*/
|
|
354
347
|
public static accountControllerUpdate(
|
|
@@ -362,20 +355,15 @@ export class BeanAccountsService {
|
|
|
362
355
|
region: data.region
|
|
363
356
|
},
|
|
364
357
|
body: data.requestBody,
|
|
365
|
-
mediaType: 'application/json'
|
|
366
|
-
errors: {
|
|
367
|
-
404: 'Account not found'
|
|
368
|
-
}
|
|
358
|
+
mediaType: 'application/json'
|
|
369
359
|
});
|
|
370
360
|
}
|
|
371
361
|
|
|
372
362
|
/**
|
|
373
|
-
* Delete account
|
|
374
|
-
* Deletes an account (only if no transactions)
|
|
375
363
|
* @param data The data for the request.
|
|
376
|
-
* @param data.id
|
|
364
|
+
* @param data.id
|
|
377
365
|
* @param data.region Region code for tenant context
|
|
378
|
-
* @returns
|
|
366
|
+
* @returns unknown
|
|
379
367
|
* @throws ApiError
|
|
380
368
|
*/
|
|
381
369
|
public static accountControllerDelete(
|
|
@@ -387,22 +375,16 @@ export class BeanAccountsService {
|
|
|
387
375
|
path: {
|
|
388
376
|
id: data.id,
|
|
389
377
|
region: data.region
|
|
390
|
-
},
|
|
391
|
-
errors: {
|
|
392
|
-
404: 'Account not found',
|
|
393
|
-
409: 'Account has transactions and cannot be deleted'
|
|
394
378
|
}
|
|
395
379
|
});
|
|
396
380
|
}
|
|
397
381
|
|
|
398
382
|
/**
|
|
399
|
-
* Close account
|
|
400
|
-
* Closes an account (Beancount Close directive)
|
|
401
383
|
* @param data The data for the request.
|
|
402
|
-
* @param data.id
|
|
384
|
+
* @param data.id
|
|
403
385
|
* @param data.region Region code for tenant context
|
|
404
386
|
* @param data.requestBody
|
|
405
|
-
* @returns
|
|
387
|
+
* @returns unknown
|
|
406
388
|
* @throws ApiError
|
|
407
389
|
*/
|
|
408
390
|
public static accountControllerClose(
|
|
@@ -416,22 +398,16 @@ export class BeanAccountsService {
|
|
|
416
398
|
region: data.region
|
|
417
399
|
},
|
|
418
400
|
body: data.requestBody,
|
|
419
|
-
mediaType: 'application/json'
|
|
420
|
-
errors: {
|
|
421
|
-
400: 'Account is already closed',
|
|
422
|
-
404: 'Account not found'
|
|
423
|
-
}
|
|
401
|
+
mediaType: 'application/json'
|
|
424
402
|
});
|
|
425
403
|
}
|
|
426
404
|
|
|
427
405
|
/**
|
|
428
|
-
* Reopen account
|
|
429
|
-
* Reopens a previously closed account
|
|
430
406
|
* @param data The data for the request.
|
|
431
|
-
* @param data.id
|
|
407
|
+
* @param data.id
|
|
432
408
|
* @param data.region Region code for tenant context
|
|
433
409
|
* @param data.requestBody
|
|
434
|
-
* @returns
|
|
410
|
+
* @returns unknown
|
|
435
411
|
* @throws ApiError
|
|
436
412
|
*/
|
|
437
413
|
public static accountControllerReopen(
|
|
@@ -445,11 +421,7 @@ export class BeanAccountsService {
|
|
|
445
421
|
region: data.region
|
|
446
422
|
},
|
|
447
423
|
body: data.requestBody,
|
|
448
|
-
mediaType: 'application/json'
|
|
449
|
-
errors: {
|
|
450
|
-
400: 'Account is not closed',
|
|
451
|
-
404: 'Account not found'
|
|
452
|
-
}
|
|
424
|
+
mediaType: 'application/json'
|
|
453
425
|
});
|
|
454
426
|
}
|
|
455
427
|
}
|
|
@@ -2532,12 +2504,9 @@ export class BeanImportService {
|
|
|
2532
2504
|
}
|
|
2533
2505
|
|
|
2534
2506
|
/**
|
|
2535
|
-
* Import a Beancount file in community format
|
|
2536
|
-
* Upload a .beancount file to import. The system parses community-format paths, converts to internal format using category metadata, auto-creates accounts, and imports transactions with deduplication. Maximum file size: 50MB. Only 1 import per user at a time.
|
|
2537
2507
|
* @param data The data for the request.
|
|
2538
2508
|
* @param data.region Region code for tenant context
|
|
2539
|
-
* @
|
|
2540
|
-
* @returns unknown Beancount file imported successfully
|
|
2509
|
+
* @returns unknown
|
|
2541
2510
|
* @throws ApiError
|
|
2542
2511
|
*/
|
|
2543
2512
|
public static fileImportControllerImportBeancount(
|
|
@@ -2548,11 +2517,6 @@ export class BeanImportService {
|
|
|
2548
2517
|
url: '/api/v1/{region}/bean/import/beancount',
|
|
2549
2518
|
path: {
|
|
2550
2519
|
region: data.region
|
|
2551
|
-
},
|
|
2552
|
-
formData: data.formData,
|
|
2553
|
-
mediaType: 'multipart/form-data',
|
|
2554
|
-
errors: {
|
|
2555
|
-
400: 'Bad request - invalid file or no file uploaded'
|
|
2556
2520
|
}
|
|
2557
2521
|
});
|
|
2558
2522
|
}
|
|
@@ -2755,33 +2719,11 @@ export class BeanPlatformsService {
|
|
|
2755
2719
|
|
|
2756
2720
|
export class ProviderSyncService {
|
|
2757
2721
|
/**
|
|
2758
|
-
* Sync transactions from financial data provider
|
|
2759
|
-
*
|
|
2760
|
-
* Accepts raw transactions from external financial data providers, transforms them to Beancount format, and processes them through the ingestion pipeline.
|
|
2761
|
-
*
|
|
2762
|
-
* **Supported Providers:**
|
|
2763
|
-
* - **plaid**: Plaid API (US, Canada, Europe)
|
|
2764
|
-
* - **teller**: Teller API (US)
|
|
2765
|
-
* - **truelayer**: TrueLayer Open Banking (UK, Europe)
|
|
2766
|
-
* - **gocardless**: GoCardless Bank Account Data (Europe)
|
|
2767
|
-
* - **simplefin**: SimpleFIN (Self-hosted)
|
|
2768
|
-
* - **yodlee**: Yodlee (Global)
|
|
2769
|
-
* - **beancount-direct**: Beancount format transactions
|
|
2770
|
-
* - **parsed-bill**: Client-side parsed bill transactions
|
|
2771
|
-
*
|
|
2772
|
-
* **Processing Flow:**
|
|
2773
|
-
* 1. Transform raw data via provider adapter
|
|
2774
|
-
* 2. Validate transaction format
|
|
2775
|
-
* 3. Deduplicate using originalId
|
|
2776
|
-
* 4. Classify using rule engine
|
|
2777
|
-
* 5. Route low-confidence to Review Center
|
|
2778
|
-
* 6. Persist validated transactions
|
|
2779
|
-
*
|
|
2780
2722
|
* @param data The data for the request.
|
|
2781
|
-
* @param data.providerName
|
|
2723
|
+
* @param data.providerName
|
|
2782
2724
|
* @param data.region Region code for tenant context
|
|
2783
2725
|
* @param data.requestBody
|
|
2784
|
-
* @returns
|
|
2726
|
+
* @returns unknown
|
|
2785
2727
|
* @throws ApiError
|
|
2786
2728
|
*/
|
|
2787
2729
|
public static providerSyncControllerSync(
|
|
@@ -2795,12 +2737,7 @@ export class ProviderSyncService {
|
|
|
2795
2737
|
region: data.region
|
|
2796
2738
|
},
|
|
2797
2739
|
body: data.requestBody,
|
|
2798
|
-
mediaType: 'application/json'
|
|
2799
|
-
errors: {
|
|
2800
|
-
400: 'Invalid request data',
|
|
2801
|
-
401: 'Missing or invalid authentication',
|
|
2802
|
-
404: 'Provider not supported'
|
|
2803
|
-
}
|
|
2740
|
+
mediaType: 'application/json'
|
|
2804
2741
|
});
|
|
2805
2742
|
}
|
|
2806
2743
|
|
|
@@ -2930,12 +2867,10 @@ export class ImportTelemetryService {
|
|
|
2930
2867
|
|
|
2931
2868
|
export class BeanNlpService {
|
|
2932
2869
|
/**
|
|
2933
|
-
* Process natural language input
|
|
2934
|
-
* Parse natural language text (Chinese/English) describing a transaction. Supports multi-turn dialogue for collecting missing information. When confidence < 0.75, returns "confirm" action requiring user verification. User can reply with confirmation words (确认/yes/ok) or provide corrections. Examples: "yesterday Starbucks spent 35 yuan", "today lunch 28 yuan", "spent $50 at Walmart"
|
|
2935
2870
|
* @param data The data for the request.
|
|
2936
2871
|
* @param data.region Region code for tenant context
|
|
2937
|
-
* @param data.requestBody
|
|
2938
|
-
* @returns
|
|
2872
|
+
* @param data.requestBody
|
|
2873
|
+
* @returns unknown
|
|
2939
2874
|
* @throws ApiError
|
|
2940
2875
|
*/
|
|
2941
2876
|
public static nlpControllerProcessNaturalLanguage(
|
|
@@ -2948,11 +2883,7 @@ export class BeanNlpService {
|
|
|
2948
2883
|
region: data.region
|
|
2949
2884
|
},
|
|
2950
2885
|
body: data.requestBody,
|
|
2951
|
-
mediaType: 'application/json'
|
|
2952
|
-
errors: {
|
|
2953
|
-
400: 'Invalid input',
|
|
2954
|
-
401: 'Unauthorized'
|
|
2955
|
-
}
|
|
2886
|
+
mediaType: 'application/json'
|
|
2956
2887
|
});
|
|
2957
2888
|
}
|
|
2958
2889
|
|