@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
package/dist/index.js
CHANGED
|
@@ -454,12 +454,10 @@ 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)
|
|
459
457
|
* @param data The data for the request.
|
|
460
458
|
* @param data.region Region code for tenant context
|
|
461
459
|
* @param data.requestBody
|
|
462
|
-
* @returns
|
|
460
|
+
* @returns unknown
|
|
463
461
|
* @throws ApiError
|
|
464
462
|
*/
|
|
465
463
|
static accountControllerCreate(data) {
|
|
@@ -470,10 +468,7 @@ var BeanAccountsService = class {
|
|
|
470
468
|
region: data.region
|
|
471
469
|
},
|
|
472
470
|
body: data.requestBody,
|
|
473
|
-
mediaType: "application/json"
|
|
474
|
-
errors: {
|
|
475
|
-
409: "Account already exists"
|
|
476
|
-
}
|
|
471
|
+
mediaType: "application/json"
|
|
477
472
|
});
|
|
478
473
|
}
|
|
479
474
|
/**
|
|
@@ -530,13 +525,11 @@ var BeanAccountsService = class {
|
|
|
530
525
|
});
|
|
531
526
|
}
|
|
532
527
|
/**
|
|
533
|
-
* Update account
|
|
534
|
-
* Updates account metadata (path cannot be changed)
|
|
535
528
|
* @param data The data for the request.
|
|
536
|
-
* @param data.id
|
|
529
|
+
* @param data.id
|
|
537
530
|
* @param data.region Region code for tenant context
|
|
538
531
|
* @param data.requestBody
|
|
539
|
-
* @returns
|
|
532
|
+
* @returns unknown
|
|
540
533
|
* @throws ApiError
|
|
541
534
|
*/
|
|
542
535
|
static accountControllerUpdate(data) {
|
|
@@ -548,19 +541,14 @@ var BeanAccountsService = class {
|
|
|
548
541
|
region: data.region
|
|
549
542
|
},
|
|
550
543
|
body: data.requestBody,
|
|
551
|
-
mediaType: "application/json"
|
|
552
|
-
errors: {
|
|
553
|
-
404: "Account not found"
|
|
554
|
-
}
|
|
544
|
+
mediaType: "application/json"
|
|
555
545
|
});
|
|
556
546
|
}
|
|
557
547
|
/**
|
|
558
|
-
* Delete account
|
|
559
|
-
* Deletes an account (only if no transactions)
|
|
560
548
|
* @param data The data for the request.
|
|
561
|
-
* @param data.id
|
|
549
|
+
* @param data.id
|
|
562
550
|
* @param data.region Region code for tenant context
|
|
563
|
-
* @returns
|
|
551
|
+
* @returns unknown
|
|
564
552
|
* @throws ApiError
|
|
565
553
|
*/
|
|
566
554
|
static accountControllerDelete(data) {
|
|
@@ -570,21 +558,15 @@ var BeanAccountsService = class {
|
|
|
570
558
|
path: {
|
|
571
559
|
id: data.id,
|
|
572
560
|
region: data.region
|
|
573
|
-
},
|
|
574
|
-
errors: {
|
|
575
|
-
404: "Account not found",
|
|
576
|
-
409: "Account has transactions and cannot be deleted"
|
|
577
561
|
}
|
|
578
562
|
});
|
|
579
563
|
}
|
|
580
564
|
/**
|
|
581
|
-
* Close account
|
|
582
|
-
* Closes an account (Beancount Close directive)
|
|
583
565
|
* @param data The data for the request.
|
|
584
|
-
* @param data.id
|
|
566
|
+
* @param data.id
|
|
585
567
|
* @param data.region Region code for tenant context
|
|
586
568
|
* @param data.requestBody
|
|
587
|
-
* @returns
|
|
569
|
+
* @returns unknown
|
|
588
570
|
* @throws ApiError
|
|
589
571
|
*/
|
|
590
572
|
static accountControllerClose(data) {
|
|
@@ -596,21 +578,15 @@ var BeanAccountsService = class {
|
|
|
596
578
|
region: data.region
|
|
597
579
|
},
|
|
598
580
|
body: data.requestBody,
|
|
599
|
-
mediaType: "application/json"
|
|
600
|
-
errors: {
|
|
601
|
-
400: "Account is already closed",
|
|
602
|
-
404: "Account not found"
|
|
603
|
-
}
|
|
581
|
+
mediaType: "application/json"
|
|
604
582
|
});
|
|
605
583
|
}
|
|
606
584
|
/**
|
|
607
|
-
* Reopen account
|
|
608
|
-
* Reopens a previously closed account
|
|
609
585
|
* @param data The data for the request.
|
|
610
|
-
* @param data.id
|
|
586
|
+
* @param data.id
|
|
611
587
|
* @param data.region Region code for tenant context
|
|
612
588
|
* @param data.requestBody
|
|
613
|
-
* @returns
|
|
589
|
+
* @returns unknown
|
|
614
590
|
* @throws ApiError
|
|
615
591
|
*/
|
|
616
592
|
static accountControllerReopen(data) {
|
|
@@ -622,11 +598,7 @@ var BeanAccountsService = class {
|
|
|
622
598
|
region: data.region
|
|
623
599
|
},
|
|
624
600
|
body: data.requestBody,
|
|
625
|
-
mediaType: "application/json"
|
|
626
|
-
errors: {
|
|
627
|
-
400: "Account is not closed",
|
|
628
|
-
404: "Account not found"
|
|
629
|
-
}
|
|
601
|
+
mediaType: "application/json"
|
|
630
602
|
});
|
|
631
603
|
}
|
|
632
604
|
};
|
|
@@ -1060,33 +1032,11 @@ var BeanCommoditiesService = class {
|
|
|
1060
1032
|
};
|
|
1061
1033
|
var ProviderSyncService = class {
|
|
1062
1034
|
/**
|
|
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
|
-
*
|
|
1085
1035
|
* @param data The data for the request.
|
|
1086
|
-
* @param data.providerName
|
|
1036
|
+
* @param data.providerName
|
|
1087
1037
|
* @param data.region Region code for tenant context
|
|
1088
1038
|
* @param data.requestBody
|
|
1089
|
-
* @returns
|
|
1039
|
+
* @returns unknown
|
|
1090
1040
|
* @throws ApiError
|
|
1091
1041
|
*/
|
|
1092
1042
|
static providerSyncControllerSync(data) {
|
|
@@ -1098,12 +1048,7 @@ var ProviderSyncService = class {
|
|
|
1098
1048
|
region: data.region
|
|
1099
1049
|
},
|
|
1100
1050
|
body: data.requestBody,
|
|
1101
|
-
mediaType: "application/json"
|
|
1102
|
-
errors: {
|
|
1103
|
-
400: "Invalid request data",
|
|
1104
|
-
401: "Missing or invalid authentication",
|
|
1105
|
-
404: "Provider not supported"
|
|
1106
|
-
}
|
|
1051
|
+
mediaType: "application/json"
|
|
1107
1052
|
});
|
|
1108
1053
|
}
|
|
1109
1054
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -422,12 +422,10 @@ 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)
|
|
427
425
|
* @param data The data for the request.
|
|
428
426
|
* @param data.region Region code for tenant context
|
|
429
427
|
* @param data.requestBody
|
|
430
|
-
* @returns
|
|
428
|
+
* @returns unknown
|
|
431
429
|
* @throws ApiError
|
|
432
430
|
*/
|
|
433
431
|
static accountControllerCreate(data) {
|
|
@@ -438,10 +436,7 @@ var BeanAccountsService = class {
|
|
|
438
436
|
region: data.region
|
|
439
437
|
},
|
|
440
438
|
body: data.requestBody,
|
|
441
|
-
mediaType: "application/json"
|
|
442
|
-
errors: {
|
|
443
|
-
409: "Account already exists"
|
|
444
|
-
}
|
|
439
|
+
mediaType: "application/json"
|
|
445
440
|
});
|
|
446
441
|
}
|
|
447
442
|
/**
|
|
@@ -498,13 +493,11 @@ var BeanAccountsService = class {
|
|
|
498
493
|
});
|
|
499
494
|
}
|
|
500
495
|
/**
|
|
501
|
-
* Update account
|
|
502
|
-
* Updates account metadata (path cannot be changed)
|
|
503
496
|
* @param data The data for the request.
|
|
504
|
-
* @param data.id
|
|
497
|
+
* @param data.id
|
|
505
498
|
* @param data.region Region code for tenant context
|
|
506
499
|
* @param data.requestBody
|
|
507
|
-
* @returns
|
|
500
|
+
* @returns unknown
|
|
508
501
|
* @throws ApiError
|
|
509
502
|
*/
|
|
510
503
|
static accountControllerUpdate(data) {
|
|
@@ -516,19 +509,14 @@ var BeanAccountsService = class {
|
|
|
516
509
|
region: data.region
|
|
517
510
|
},
|
|
518
511
|
body: data.requestBody,
|
|
519
|
-
mediaType: "application/json"
|
|
520
|
-
errors: {
|
|
521
|
-
404: "Account not found"
|
|
522
|
-
}
|
|
512
|
+
mediaType: "application/json"
|
|
523
513
|
});
|
|
524
514
|
}
|
|
525
515
|
/**
|
|
526
|
-
* Delete account
|
|
527
|
-
* Deletes an account (only if no transactions)
|
|
528
516
|
* @param data The data for the request.
|
|
529
|
-
* @param data.id
|
|
517
|
+
* @param data.id
|
|
530
518
|
* @param data.region Region code for tenant context
|
|
531
|
-
* @returns
|
|
519
|
+
* @returns unknown
|
|
532
520
|
* @throws ApiError
|
|
533
521
|
*/
|
|
534
522
|
static accountControllerDelete(data) {
|
|
@@ -538,21 +526,15 @@ var BeanAccountsService = class {
|
|
|
538
526
|
path: {
|
|
539
527
|
id: data.id,
|
|
540
528
|
region: data.region
|
|
541
|
-
},
|
|
542
|
-
errors: {
|
|
543
|
-
404: "Account not found",
|
|
544
|
-
409: "Account has transactions and cannot be deleted"
|
|
545
529
|
}
|
|
546
530
|
});
|
|
547
531
|
}
|
|
548
532
|
/**
|
|
549
|
-
* Close account
|
|
550
|
-
* Closes an account (Beancount Close directive)
|
|
551
533
|
* @param data The data for the request.
|
|
552
|
-
* @param data.id
|
|
534
|
+
* @param data.id
|
|
553
535
|
* @param data.region Region code for tenant context
|
|
554
536
|
* @param data.requestBody
|
|
555
|
-
* @returns
|
|
537
|
+
* @returns unknown
|
|
556
538
|
* @throws ApiError
|
|
557
539
|
*/
|
|
558
540
|
static accountControllerClose(data) {
|
|
@@ -564,21 +546,15 @@ var BeanAccountsService = class {
|
|
|
564
546
|
region: data.region
|
|
565
547
|
},
|
|
566
548
|
body: data.requestBody,
|
|
567
|
-
mediaType: "application/json"
|
|
568
|
-
errors: {
|
|
569
|
-
400: "Account is already closed",
|
|
570
|
-
404: "Account not found"
|
|
571
|
-
}
|
|
549
|
+
mediaType: "application/json"
|
|
572
550
|
});
|
|
573
551
|
}
|
|
574
552
|
/**
|
|
575
|
-
* Reopen account
|
|
576
|
-
* Reopens a previously closed account
|
|
577
553
|
* @param data The data for the request.
|
|
578
|
-
* @param data.id
|
|
554
|
+
* @param data.id
|
|
579
555
|
* @param data.region Region code for tenant context
|
|
580
556
|
* @param data.requestBody
|
|
581
|
-
* @returns
|
|
557
|
+
* @returns unknown
|
|
582
558
|
* @throws ApiError
|
|
583
559
|
*/
|
|
584
560
|
static accountControllerReopen(data) {
|
|
@@ -590,11 +566,7 @@ var BeanAccountsService = class {
|
|
|
590
566
|
region: data.region
|
|
591
567
|
},
|
|
592
568
|
body: data.requestBody,
|
|
593
|
-
mediaType: "application/json"
|
|
594
|
-
errors: {
|
|
595
|
-
400: "Account is not closed",
|
|
596
|
-
404: "Account not found"
|
|
597
|
-
}
|
|
569
|
+
mediaType: "application/json"
|
|
598
570
|
});
|
|
599
571
|
}
|
|
600
572
|
};
|
|
@@ -1028,33 +1000,11 @@ var BeanCommoditiesService = class {
|
|
|
1028
1000
|
};
|
|
1029
1001
|
var ProviderSyncService = class {
|
|
1030
1002
|
/**
|
|
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
|
-
*
|
|
1053
1003
|
* @param data The data for the request.
|
|
1054
|
-
* @param data.providerName
|
|
1004
|
+
* @param data.providerName
|
|
1055
1005
|
* @param data.region Region code for tenant context
|
|
1056
1006
|
* @param data.requestBody
|
|
1057
|
-
* @returns
|
|
1007
|
+
* @returns unknown
|
|
1058
1008
|
* @throws ApiError
|
|
1059
1009
|
*/
|
|
1060
1010
|
static providerSyncControllerSync(data) {
|
|
@@ -1066,12 +1016,7 @@ var ProviderSyncService = class {
|
|
|
1066
1016
|
region: data.region
|
|
1067
1017
|
},
|
|
1068
1018
|
body: data.requestBody,
|
|
1069
|
-
mediaType: "application/json"
|
|
1070
|
-
errors: {
|
|
1071
|
-
400: "Invalid request data",
|
|
1072
|
-
401: "Missing or invalid authentication",
|
|
1073
|
-
404: "Provider not supported"
|
|
1074
|
-
}
|
|
1019
|
+
mediaType: "application/json"
|
|
1075
1020
|
});
|
|
1076
1021
|
}
|
|
1077
1022
|
/**
|