@firela/api-types 0.0.0-canary.ebb51de2 → 0.0.0-canary.efbd2b9a
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 +728 -35
- package/dist/index.d.ts +728 -35
- package/dist/index.js +71 -16
- package/dist/index.mjs +71 -16
- package/package.json +1 -1
- package/src/generated/schemas.gen.ts +819 -2
- package/src/generated/services.gen.ts +89 -20
- package/src/generated/types.gen.ts +734 -23
package/dist/index.js
CHANGED
|
@@ -454,10 +454,12 @@ var request = (config, options) => {
|
|
|
454
454
|
// src/generated/services.gen.ts
|
|
455
455
|
var BeanAccountsService = class {
|
|
456
456
|
/**
|
|
457
|
+
* Create a new account
|
|
458
|
+
* Creates a new account (Beancount Open directive)
|
|
457
459
|
* @param data The data for the request.
|
|
458
460
|
* @param data.region Region code for tenant context
|
|
459
461
|
* @param data.requestBody
|
|
460
|
-
* @returns
|
|
462
|
+
* @returns AccountResponseDto Account created successfully
|
|
461
463
|
* @throws ApiError
|
|
462
464
|
*/
|
|
463
465
|
static accountControllerCreate(data) {
|
|
@@ -468,7 +470,10 @@ var BeanAccountsService = class {
|
|
|
468
470
|
region: data.region
|
|
469
471
|
},
|
|
470
472
|
body: data.requestBody,
|
|
471
|
-
mediaType: "application/json"
|
|
473
|
+
mediaType: "application/json",
|
|
474
|
+
errors: {
|
|
475
|
+
409: "Account already exists"
|
|
476
|
+
}
|
|
472
477
|
});
|
|
473
478
|
}
|
|
474
479
|
/**
|
|
@@ -525,11 +530,13 @@ var BeanAccountsService = class {
|
|
|
525
530
|
});
|
|
526
531
|
}
|
|
527
532
|
/**
|
|
533
|
+
* Update account
|
|
534
|
+
* Updates account metadata (path cannot be changed)
|
|
528
535
|
* @param data The data for the request.
|
|
529
|
-
* @param data.id
|
|
536
|
+
* @param data.id Account UUID
|
|
530
537
|
* @param data.region Region code for tenant context
|
|
531
538
|
* @param data.requestBody
|
|
532
|
-
* @returns
|
|
539
|
+
* @returns AccountResponseDto Account updated successfully
|
|
533
540
|
* @throws ApiError
|
|
534
541
|
*/
|
|
535
542
|
static accountControllerUpdate(data) {
|
|
@@ -541,14 +548,19 @@ var BeanAccountsService = class {
|
|
|
541
548
|
region: data.region
|
|
542
549
|
},
|
|
543
550
|
body: data.requestBody,
|
|
544
|
-
mediaType: "application/json"
|
|
551
|
+
mediaType: "application/json",
|
|
552
|
+
errors: {
|
|
553
|
+
404: "Account not found"
|
|
554
|
+
}
|
|
545
555
|
});
|
|
546
556
|
}
|
|
547
557
|
/**
|
|
558
|
+
* Delete account
|
|
559
|
+
* Deletes an account (only if no transactions)
|
|
548
560
|
* @param data The data for the request.
|
|
549
|
-
* @param data.id
|
|
561
|
+
* @param data.id Account UUID
|
|
550
562
|
* @param data.region Region code for tenant context
|
|
551
|
-
* @returns
|
|
563
|
+
* @returns void Account deleted successfully
|
|
552
564
|
* @throws ApiError
|
|
553
565
|
*/
|
|
554
566
|
static accountControllerDelete(data) {
|
|
@@ -558,15 +570,21 @@ var BeanAccountsService = class {
|
|
|
558
570
|
path: {
|
|
559
571
|
id: data.id,
|
|
560
572
|
region: data.region
|
|
573
|
+
},
|
|
574
|
+
errors: {
|
|
575
|
+
404: "Account not found",
|
|
576
|
+
409: "Account has transactions and cannot be deleted"
|
|
561
577
|
}
|
|
562
578
|
});
|
|
563
579
|
}
|
|
564
580
|
/**
|
|
581
|
+
* Close account
|
|
582
|
+
* Closes an account (Beancount Close directive)
|
|
565
583
|
* @param data The data for the request.
|
|
566
|
-
* @param data.id
|
|
584
|
+
* @param data.id Account UUID
|
|
567
585
|
* @param data.region Region code for tenant context
|
|
568
586
|
* @param data.requestBody
|
|
569
|
-
* @returns
|
|
587
|
+
* @returns AccountResponseDto Account closed successfully
|
|
570
588
|
* @throws ApiError
|
|
571
589
|
*/
|
|
572
590
|
static accountControllerClose(data) {
|
|
@@ -578,15 +596,21 @@ var BeanAccountsService = class {
|
|
|
578
596
|
region: data.region
|
|
579
597
|
},
|
|
580
598
|
body: data.requestBody,
|
|
581
|
-
mediaType: "application/json"
|
|
599
|
+
mediaType: "application/json",
|
|
600
|
+
errors: {
|
|
601
|
+
400: "Account is already closed",
|
|
602
|
+
404: "Account not found"
|
|
603
|
+
}
|
|
582
604
|
});
|
|
583
605
|
}
|
|
584
606
|
/**
|
|
607
|
+
* Reopen account
|
|
608
|
+
* Reopens a previously closed account
|
|
585
609
|
* @param data The data for the request.
|
|
586
|
-
* @param data.id
|
|
610
|
+
* @param data.id Account UUID
|
|
587
611
|
* @param data.region Region code for tenant context
|
|
588
612
|
* @param data.requestBody
|
|
589
|
-
* @returns
|
|
613
|
+
* @returns AccountResponseDto Account reopened successfully
|
|
590
614
|
* @throws ApiError
|
|
591
615
|
*/
|
|
592
616
|
static accountControllerReopen(data) {
|
|
@@ -598,7 +622,11 @@ var BeanAccountsService = class {
|
|
|
598
622
|
region: data.region
|
|
599
623
|
},
|
|
600
624
|
body: data.requestBody,
|
|
601
|
-
mediaType: "application/json"
|
|
625
|
+
mediaType: "application/json",
|
|
626
|
+
errors: {
|
|
627
|
+
400: "Account is not closed",
|
|
628
|
+
404: "Account not found"
|
|
629
|
+
}
|
|
602
630
|
});
|
|
603
631
|
}
|
|
604
632
|
};
|
|
@@ -1032,11 +1060,33 @@ var BeanCommoditiesService = class {
|
|
|
1032
1060
|
};
|
|
1033
1061
|
var ProviderSyncService = class {
|
|
1034
1062
|
/**
|
|
1063
|
+
* Sync transactions from financial data provider
|
|
1064
|
+
*
|
|
1065
|
+
* Accepts raw transactions from external financial data providers, transforms them to Beancount format, and processes them through the ingestion pipeline.
|
|
1066
|
+
*
|
|
1067
|
+
* **Supported Providers:**
|
|
1068
|
+
* - **plaid**: Plaid API (US, Canada, Europe)
|
|
1069
|
+
* - **teller**: Teller API (US)
|
|
1070
|
+
* - **truelayer**: TrueLayer Open Banking (UK, Europe)
|
|
1071
|
+
* - **gocardless**: GoCardless Bank Account Data (Europe)
|
|
1072
|
+
* - **simplefin**: SimpleFIN (Self-hosted)
|
|
1073
|
+
* - **yodlee**: Yodlee (Global)
|
|
1074
|
+
* - **beancount-direct**: Beancount format transactions
|
|
1075
|
+
* - **parsed-bill**: Client-side parsed bill transactions
|
|
1076
|
+
*
|
|
1077
|
+
* **Processing Flow:**
|
|
1078
|
+
* 1. Transform raw data via provider adapter
|
|
1079
|
+
* 2. Validate transaction format
|
|
1080
|
+
* 3. Deduplicate using originalId
|
|
1081
|
+
* 4. Classify using rule engine
|
|
1082
|
+
* 5. Route low-confidence to Review Center
|
|
1083
|
+
* 6. Persist validated transactions
|
|
1084
|
+
*
|
|
1035
1085
|
* @param data The data for the request.
|
|
1036
|
-
* @param data.providerName
|
|
1086
|
+
* @param data.providerName Provider name
|
|
1037
1087
|
* @param data.region Region code for tenant context
|
|
1038
1088
|
* @param data.requestBody
|
|
1039
|
-
* @returns
|
|
1089
|
+
* @returns ProviderSyncResponseDto Sync completed successfully
|
|
1040
1090
|
* @throws ApiError
|
|
1041
1091
|
*/
|
|
1042
1092
|
static providerSyncControllerSync(data) {
|
|
@@ -1048,7 +1098,12 @@ var ProviderSyncService = class {
|
|
|
1048
1098
|
region: data.region
|
|
1049
1099
|
},
|
|
1050
1100
|
body: data.requestBody,
|
|
1051
|
-
mediaType: "application/json"
|
|
1101
|
+
mediaType: "application/json",
|
|
1102
|
+
errors: {
|
|
1103
|
+
400: "Invalid request data",
|
|
1104
|
+
401: "Missing or invalid authentication",
|
|
1105
|
+
404: "Provider not supported"
|
|
1106
|
+
}
|
|
1052
1107
|
});
|
|
1053
1108
|
}
|
|
1054
1109
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -422,10 +422,12 @@ var request = (config, options) => {
|
|
|
422
422
|
// src/generated/services.gen.ts
|
|
423
423
|
var BeanAccountsService = class {
|
|
424
424
|
/**
|
|
425
|
+
* Create a new account
|
|
426
|
+
* Creates a new account (Beancount Open directive)
|
|
425
427
|
* @param data The data for the request.
|
|
426
428
|
* @param data.region Region code for tenant context
|
|
427
429
|
* @param data.requestBody
|
|
428
|
-
* @returns
|
|
430
|
+
* @returns AccountResponseDto Account created successfully
|
|
429
431
|
* @throws ApiError
|
|
430
432
|
*/
|
|
431
433
|
static accountControllerCreate(data) {
|
|
@@ -436,7 +438,10 @@ var BeanAccountsService = class {
|
|
|
436
438
|
region: data.region
|
|
437
439
|
},
|
|
438
440
|
body: data.requestBody,
|
|
439
|
-
mediaType: "application/json"
|
|
441
|
+
mediaType: "application/json",
|
|
442
|
+
errors: {
|
|
443
|
+
409: "Account already exists"
|
|
444
|
+
}
|
|
440
445
|
});
|
|
441
446
|
}
|
|
442
447
|
/**
|
|
@@ -493,11 +498,13 @@ var BeanAccountsService = class {
|
|
|
493
498
|
});
|
|
494
499
|
}
|
|
495
500
|
/**
|
|
501
|
+
* Update account
|
|
502
|
+
* Updates account metadata (path cannot be changed)
|
|
496
503
|
* @param data The data for the request.
|
|
497
|
-
* @param data.id
|
|
504
|
+
* @param data.id Account UUID
|
|
498
505
|
* @param data.region Region code for tenant context
|
|
499
506
|
* @param data.requestBody
|
|
500
|
-
* @returns
|
|
507
|
+
* @returns AccountResponseDto Account updated successfully
|
|
501
508
|
* @throws ApiError
|
|
502
509
|
*/
|
|
503
510
|
static accountControllerUpdate(data) {
|
|
@@ -509,14 +516,19 @@ var BeanAccountsService = class {
|
|
|
509
516
|
region: data.region
|
|
510
517
|
},
|
|
511
518
|
body: data.requestBody,
|
|
512
|
-
mediaType: "application/json"
|
|
519
|
+
mediaType: "application/json",
|
|
520
|
+
errors: {
|
|
521
|
+
404: "Account not found"
|
|
522
|
+
}
|
|
513
523
|
});
|
|
514
524
|
}
|
|
515
525
|
/**
|
|
526
|
+
* Delete account
|
|
527
|
+
* Deletes an account (only if no transactions)
|
|
516
528
|
* @param data The data for the request.
|
|
517
|
-
* @param data.id
|
|
529
|
+
* @param data.id Account UUID
|
|
518
530
|
* @param data.region Region code for tenant context
|
|
519
|
-
* @returns
|
|
531
|
+
* @returns void Account deleted successfully
|
|
520
532
|
* @throws ApiError
|
|
521
533
|
*/
|
|
522
534
|
static accountControllerDelete(data) {
|
|
@@ -526,15 +538,21 @@ var BeanAccountsService = class {
|
|
|
526
538
|
path: {
|
|
527
539
|
id: data.id,
|
|
528
540
|
region: data.region
|
|
541
|
+
},
|
|
542
|
+
errors: {
|
|
543
|
+
404: "Account not found",
|
|
544
|
+
409: "Account has transactions and cannot be deleted"
|
|
529
545
|
}
|
|
530
546
|
});
|
|
531
547
|
}
|
|
532
548
|
/**
|
|
549
|
+
* Close account
|
|
550
|
+
* Closes an account (Beancount Close directive)
|
|
533
551
|
* @param data The data for the request.
|
|
534
|
-
* @param data.id
|
|
552
|
+
* @param data.id Account UUID
|
|
535
553
|
* @param data.region Region code for tenant context
|
|
536
554
|
* @param data.requestBody
|
|
537
|
-
* @returns
|
|
555
|
+
* @returns AccountResponseDto Account closed successfully
|
|
538
556
|
* @throws ApiError
|
|
539
557
|
*/
|
|
540
558
|
static accountControllerClose(data) {
|
|
@@ -546,15 +564,21 @@ var BeanAccountsService = class {
|
|
|
546
564
|
region: data.region
|
|
547
565
|
},
|
|
548
566
|
body: data.requestBody,
|
|
549
|
-
mediaType: "application/json"
|
|
567
|
+
mediaType: "application/json",
|
|
568
|
+
errors: {
|
|
569
|
+
400: "Account is already closed",
|
|
570
|
+
404: "Account not found"
|
|
571
|
+
}
|
|
550
572
|
});
|
|
551
573
|
}
|
|
552
574
|
/**
|
|
575
|
+
* Reopen account
|
|
576
|
+
* Reopens a previously closed account
|
|
553
577
|
* @param data The data for the request.
|
|
554
|
-
* @param data.id
|
|
578
|
+
* @param data.id Account UUID
|
|
555
579
|
* @param data.region Region code for tenant context
|
|
556
580
|
* @param data.requestBody
|
|
557
|
-
* @returns
|
|
581
|
+
* @returns AccountResponseDto Account reopened successfully
|
|
558
582
|
* @throws ApiError
|
|
559
583
|
*/
|
|
560
584
|
static accountControllerReopen(data) {
|
|
@@ -566,7 +590,11 @@ var BeanAccountsService = class {
|
|
|
566
590
|
region: data.region
|
|
567
591
|
},
|
|
568
592
|
body: data.requestBody,
|
|
569
|
-
mediaType: "application/json"
|
|
593
|
+
mediaType: "application/json",
|
|
594
|
+
errors: {
|
|
595
|
+
400: "Account is not closed",
|
|
596
|
+
404: "Account not found"
|
|
597
|
+
}
|
|
570
598
|
});
|
|
571
599
|
}
|
|
572
600
|
};
|
|
@@ -1000,11 +1028,33 @@ var BeanCommoditiesService = class {
|
|
|
1000
1028
|
};
|
|
1001
1029
|
var ProviderSyncService = class {
|
|
1002
1030
|
/**
|
|
1031
|
+
* Sync transactions from financial data provider
|
|
1032
|
+
*
|
|
1033
|
+
* Accepts raw transactions from external financial data providers, transforms them to Beancount format, and processes them through the ingestion pipeline.
|
|
1034
|
+
*
|
|
1035
|
+
* **Supported Providers:**
|
|
1036
|
+
* - **plaid**: Plaid API (US, Canada, Europe)
|
|
1037
|
+
* - **teller**: Teller API (US)
|
|
1038
|
+
* - **truelayer**: TrueLayer Open Banking (UK, Europe)
|
|
1039
|
+
* - **gocardless**: GoCardless Bank Account Data (Europe)
|
|
1040
|
+
* - **simplefin**: SimpleFIN (Self-hosted)
|
|
1041
|
+
* - **yodlee**: Yodlee (Global)
|
|
1042
|
+
* - **beancount-direct**: Beancount format transactions
|
|
1043
|
+
* - **parsed-bill**: Client-side parsed bill transactions
|
|
1044
|
+
*
|
|
1045
|
+
* **Processing Flow:**
|
|
1046
|
+
* 1. Transform raw data via provider adapter
|
|
1047
|
+
* 2. Validate transaction format
|
|
1048
|
+
* 3. Deduplicate using originalId
|
|
1049
|
+
* 4. Classify using rule engine
|
|
1050
|
+
* 5. Route low-confidence to Review Center
|
|
1051
|
+
* 6. Persist validated transactions
|
|
1052
|
+
*
|
|
1003
1053
|
* @param data The data for the request.
|
|
1004
|
-
* @param data.providerName
|
|
1054
|
+
* @param data.providerName Provider name
|
|
1005
1055
|
* @param data.region Region code for tenant context
|
|
1006
1056
|
* @param data.requestBody
|
|
1007
|
-
* @returns
|
|
1057
|
+
* @returns ProviderSyncResponseDto Sync completed successfully
|
|
1008
1058
|
* @throws ApiError
|
|
1009
1059
|
*/
|
|
1010
1060
|
static providerSyncControllerSync(data) {
|
|
@@ -1016,7 +1066,12 @@ var ProviderSyncService = class {
|
|
|
1016
1066
|
region: data.region
|
|
1017
1067
|
},
|
|
1018
1068
|
body: data.requestBody,
|
|
1019
|
-
mediaType: "application/json"
|
|
1069
|
+
mediaType: "application/json",
|
|
1070
|
+
errors: {
|
|
1071
|
+
400: "Invalid request data",
|
|
1072
|
+
401: "Missing or invalid authentication",
|
|
1073
|
+
404: "Provider not supported"
|
|
1074
|
+
}
|
|
1020
1075
|
});
|
|
1021
1076
|
}
|
|
1022
1077
|
/**
|