@firela/api-types 0.0.0-canary.b3b7767b → 0.0.0-canary.b3cbb38
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 +6591 -2985
- package/dist/index.d.ts +6591 -2985
- package/dist/index.js +216 -130
- package/dist/index.mjs +216 -130
- package/package.json +2 -3
- package/src/generated/schemas.gen.ts +7688 -3142
- package/src/generated/services.gen.ts +2437 -1357
- package/src/generated/types.gen.ts +28617 -3469
package/dist/index.mjs
CHANGED
|
@@ -452,7 +452,7 @@ var BeanAccountsService = class {
|
|
|
452
452
|
* @param data.type Filter by account type
|
|
453
453
|
* @param data.status Filter by status
|
|
454
454
|
* @param data.isCustom Filter by custom (user-created) accounts only
|
|
455
|
-
* @param data.search Search term
|
|
455
|
+
* @param data.search Search term matched against account path and user-set display name (case-insensitive)
|
|
456
456
|
* @param data.limit Maximum number of results
|
|
457
457
|
* @param data.offset Number of results to skip
|
|
458
458
|
* @returns AccountListResponseDto Accounts retrieved successfully
|
|
@@ -524,7 +524,7 @@ var BeanAccountsService = class {
|
|
|
524
524
|
}
|
|
525
525
|
/**
|
|
526
526
|
* Delete account
|
|
527
|
-
* Deletes an account (only if no transactions)
|
|
527
|
+
* Deletes an account (only if no active transactions; voided/superseded residual postings are cleaned up)
|
|
528
528
|
* @param data The data for the request.
|
|
529
529
|
* @param data.id Account UUID
|
|
530
530
|
* @param data.region Region code for tenant context
|
|
@@ -541,7 +541,7 @@ var BeanAccountsService = class {
|
|
|
541
541
|
},
|
|
542
542
|
errors: {
|
|
543
543
|
404: "Account not found",
|
|
544
|
-
409: "Account has transactions and cannot be deleted"
|
|
544
|
+
409: "Account has active transactions and cannot be deleted"
|
|
545
545
|
}
|
|
546
546
|
});
|
|
547
547
|
}
|
|
@@ -597,6 +597,32 @@ var BeanAccountsService = class {
|
|
|
597
597
|
}
|
|
598
598
|
});
|
|
599
599
|
}
|
|
600
|
+
/**
|
|
601
|
+
* Post an opening-balance transaction
|
|
602
|
+
* Posts a double-entry opening-balance transaction against Equity:Opening-Balances for an existing Assets/Liabilities account. At most one active opening balance per account.
|
|
603
|
+
* @param data The data for the request.
|
|
604
|
+
* @param data.id Account UUID
|
|
605
|
+
* @param data.region Region code for tenant context
|
|
606
|
+
* @param data.requestBody
|
|
607
|
+
* @returns OpeningBalanceResultDto Opening-balance transaction created
|
|
608
|
+
* @throws ApiError
|
|
609
|
+
*/
|
|
610
|
+
static accountControllerAddOpeningBalance(data) {
|
|
611
|
+
return request(OpenAPI, {
|
|
612
|
+
method: "POST",
|
|
613
|
+
url: "/api/v1/{region}/bean/accounts/{id}/opening-balance",
|
|
614
|
+
path: {
|
|
615
|
+
id: data.id,
|
|
616
|
+
region: data.region
|
|
617
|
+
},
|
|
618
|
+
body: data.requestBody,
|
|
619
|
+
mediaType: "application/json",
|
|
620
|
+
errors: {
|
|
621
|
+
404: "Account not found",
|
|
622
|
+
409: "An opening balance already exists for this account"
|
|
623
|
+
}
|
|
624
|
+
});
|
|
625
|
+
}
|
|
600
626
|
};
|
|
601
627
|
var BeanTransactionsService = class {
|
|
602
628
|
/**
|
|
@@ -635,9 +661,11 @@ var BeanTransactionsService = class {
|
|
|
635
661
|
* @param data.offset Number of items to skip (default: 0)
|
|
636
662
|
* @param data.dateFrom Filter by start date (inclusive), format: YYYY-MM-DD
|
|
637
663
|
* @param data.dateTo Filter by end date (inclusive), format: YYYY-MM-DD
|
|
638
|
-
* @param data.status Filter by transaction status
|
|
664
|
+
* @param data.status Filter by transaction status: single value, comma-separated multi-value (e.g. VOIDED,SUPERSEDED), or ALL to include audit rows. Defaults to ACTIVE-only (ADR-0128; previously unfiltered — breaking change).
|
|
639
665
|
* @param data.search Search in narration and payee fields (max 200 chars)
|
|
640
666
|
* @param data.accountId Filter by account ID (transactions with postings to this account)
|
|
667
|
+
* @param data.category Filter by ADR-0075 functional category (Group segment); matches any posting to an account whose derived Group segment equals this value. Must be accompanied by flow (ADR-0126).
|
|
668
|
+
* @param data.flow Required when category is present (400 otherwise) and vice versa (ADR-0126). Restricts the category account set to the flow root (income → Income:, expense → Expenses:) and drives the per-leg sign normalization of row viewpointAmount and the summary. OpenAPI cannot express conditional requiredness — the pairing is enforced at runtime.
|
|
641
669
|
* @returns TransactionListResponseDto Transaction list
|
|
642
670
|
* @throws ApiError
|
|
643
671
|
*/
|
|
@@ -655,25 +683,119 @@ var BeanTransactionsService = class {
|
|
|
655
683
|
dateTo: data.dateTo,
|
|
656
684
|
status: data.status,
|
|
657
685
|
search: data.search,
|
|
658
|
-
accountId: data.accountId
|
|
686
|
+
accountId: data.accountId,
|
|
687
|
+
category: data.category,
|
|
688
|
+
flow: data.flow
|
|
659
689
|
},
|
|
660
690
|
errors: {
|
|
691
|
+
400: "Validation failed",
|
|
661
692
|
401: "Authentication required"
|
|
662
693
|
}
|
|
663
694
|
});
|
|
664
695
|
}
|
|
665
696
|
/**
|
|
697
|
+
* @deprecated
|
|
698
|
+
* Batch create transactions (DEPRECATED)
|
|
699
|
+
* DEPRECATED: Use POST /:region/bean/import/provider/:name/sync instead. This endpoint skips dedup, rule matching, and review branching.
|
|
666
700
|
* @param data The data for the request.
|
|
667
701
|
* @param data.region Region code for tenant context
|
|
668
|
-
* @
|
|
702
|
+
* @param data.requestBody
|
|
703
|
+
* @returns BatchTransactionResponseDto Transactions processed
|
|
669
704
|
* @throws ApiError
|
|
670
705
|
*/
|
|
671
|
-
static
|
|
706
|
+
static transactionControllerCreateBatch(data) {
|
|
672
707
|
return request(OpenAPI, {
|
|
673
708
|
method: "POST",
|
|
674
709
|
url: "/api/v1/{region}/bean/transactions/batch",
|
|
675
710
|
path: {
|
|
676
711
|
region: data.region
|
|
712
|
+
},
|
|
713
|
+
body: data.requestBody,
|
|
714
|
+
mediaType: "application/json",
|
|
715
|
+
errors: {
|
|
716
|
+
400: "Invalid input",
|
|
717
|
+
401: "Authentication required"
|
|
718
|
+
}
|
|
719
|
+
});
|
|
720
|
+
}
|
|
721
|
+
/**
|
|
722
|
+
* Batch void transactions
|
|
723
|
+
* Soft-deletes (VOIDED) a batch of the caller's ACTIVE transactions in one DB transaction. Voiding releases each row's importId dedup slot, so re-importing the same file after an undo batch-void imports every row again instead of skipping them as duplicates.
|
|
724
|
+
* @param data The data for the request.
|
|
725
|
+
* @param data.region Region code for tenant context
|
|
726
|
+
* @param data.requestBody Batch void request (1-500 unique transaction IDs)
|
|
727
|
+
* @returns BatchVoidResultDto Batch void result: count of rows voided plus ids not found / no longer ACTIVE
|
|
728
|
+
* @throws ApiError
|
|
729
|
+
*/
|
|
730
|
+
static transactionControllerBatchVoid(data) {
|
|
731
|
+
return request(OpenAPI, {
|
|
732
|
+
method: "POST",
|
|
733
|
+
url: "/api/v1/{region}/bean/transactions/batch-void",
|
|
734
|
+
path: {
|
|
735
|
+
region: data.region
|
|
736
|
+
},
|
|
737
|
+
body: data.requestBody,
|
|
738
|
+
mediaType: "application/json",
|
|
739
|
+
errors: {
|
|
740
|
+
400: "Validation failed (empty, over 500, duplicate or non-string ids)",
|
|
741
|
+
401: "Authentication required",
|
|
742
|
+
403: "Batch contains ids owned by another user \u2014 whole request rejected, nothing committed"
|
|
743
|
+
}
|
|
744
|
+
});
|
|
745
|
+
}
|
|
746
|
+
/**
|
|
747
|
+
* Correct (supersede) a transaction
|
|
748
|
+
* Atomically voids the original (SUPERSEDED) and creates a replacement through the full validation pipeline.
|
|
749
|
+
* @param data The data for the request.
|
|
750
|
+
* @param data.id Original transaction ID to correct
|
|
751
|
+
* @param data.region Region code for tenant context
|
|
752
|
+
* @param data.requestBody
|
|
753
|
+
* @returns TransactionDetailDto Corrected transaction created
|
|
754
|
+
* @throws ApiError
|
|
755
|
+
*/
|
|
756
|
+
static transactionControllerCorrect(data) {
|
|
757
|
+
return request(OpenAPI, {
|
|
758
|
+
method: "POST",
|
|
759
|
+
url: "/api/v1/{region}/bean/transactions/{id}/correct",
|
|
760
|
+
path: {
|
|
761
|
+
id: data.id,
|
|
762
|
+
region: data.region
|
|
763
|
+
},
|
|
764
|
+
body: data.requestBody,
|
|
765
|
+
mediaType: "application/json",
|
|
766
|
+
errors: {
|
|
767
|
+
404: "Original transaction not found",
|
|
768
|
+
409: "Original no longer ACTIVE (concurrent modification)",
|
|
769
|
+
422: "Pipeline validation failed (does not balance, invalid accounts)"
|
|
770
|
+
}
|
|
771
|
+
});
|
|
772
|
+
}
|
|
773
|
+
/**
|
|
774
|
+
* Suggest transaction tags
|
|
775
|
+
* Returns distinct tags from the user ACTIVE transactions, sorted by usage, for autocomplete. Optional q performs a case-insensitive prefix match.
|
|
776
|
+
* @param data The data for the request.
|
|
777
|
+
* @param data.region Region code for tenant context
|
|
778
|
+
* @param data.q Prefix match, case-insensitive (max 50 chars)
|
|
779
|
+
* @param data.sort usage (default) or name
|
|
780
|
+
* @param data.limit Max suggestions (1-100, default 10)
|
|
781
|
+
* @returns TagSuggestionsResponseDto Tag suggestions
|
|
782
|
+
* @throws ApiError
|
|
783
|
+
*/
|
|
784
|
+
static transactionControllerSuggestTags(data) {
|
|
785
|
+
return request(OpenAPI, {
|
|
786
|
+
method: "GET",
|
|
787
|
+
url: "/api/v1/{region}/bean/transactions/tags",
|
|
788
|
+
path: {
|
|
789
|
+
region: data.region
|
|
790
|
+
},
|
|
791
|
+
query: {
|
|
792
|
+
q: data.q,
|
|
793
|
+
sort: data.sort,
|
|
794
|
+
limit: data.limit
|
|
795
|
+
},
|
|
796
|
+
errors: {
|
|
797
|
+
400: "Validation failed",
|
|
798
|
+
401: "Authentication required"
|
|
677
799
|
}
|
|
678
800
|
});
|
|
679
801
|
}
|
|
@@ -728,17 +850,26 @@ var BeanTransactionsService = class {
|
|
|
728
850
|
});
|
|
729
851
|
}
|
|
730
852
|
/**
|
|
853
|
+
* Void transaction
|
|
854
|
+
* Soft-deletes a transaction by marking it as VOIDED
|
|
731
855
|
* @param data The data for the request.
|
|
856
|
+
* @param data.id Transaction ID
|
|
732
857
|
* @param data.region Region code for tenant context
|
|
733
|
-
* @returns void
|
|
858
|
+
* @returns void Transaction voided successfully
|
|
734
859
|
* @throws ApiError
|
|
735
860
|
*/
|
|
736
|
-
static
|
|
861
|
+
static transactionControllerDelete(data) {
|
|
737
862
|
return request(OpenAPI, {
|
|
738
863
|
method: "DELETE",
|
|
739
864
|
url: "/api/v1/{region}/bean/transactions/{id}",
|
|
740
865
|
path: {
|
|
866
|
+
id: data.id,
|
|
741
867
|
region: data.region
|
|
868
|
+
},
|
|
869
|
+
errors: {
|
|
870
|
+
400: "Transaction already voided",
|
|
871
|
+
401: "Authentication required",
|
|
872
|
+
404: "Transaction not found"
|
|
742
873
|
}
|
|
743
874
|
});
|
|
744
875
|
}
|
|
@@ -748,8 +879,8 @@ var BeanBalancesService = class {
|
|
|
748
879
|
* Query account balance
|
|
749
880
|
* Calculate account balance at a specific date for a single currency
|
|
750
881
|
* @param data The data for the request.
|
|
751
|
-
* @param data.account Account name (e.g., "Assets:
|
|
752
|
-
* @param data.region Region code
|
|
882
|
+
* @param data.account Account name (e.g., "Assets:Checking")
|
|
883
|
+
* @param data.region Region code for tenant context
|
|
753
884
|
* @param data.date Date to calculate balance at (ISO 8601 format)
|
|
754
885
|
* @param data.currency Currency to query (e.g., "USD", "CNY")
|
|
755
886
|
* @returns BalanceResponseDto Balance calculated successfully
|
|
@@ -777,7 +908,7 @@ var BeanBalancesService = class {
|
|
|
777
908
|
* Query multi-currency account balance
|
|
778
909
|
* Calculate account balances for all currencies at a specific date
|
|
779
910
|
* @param data The data for the request.
|
|
780
|
-
* @param data.region Region code
|
|
911
|
+
* @param data.region Region code for tenant context
|
|
781
912
|
* @returns MultiCurrencyBalanceResponseDto Balances calculated successfully
|
|
782
913
|
* @throws ApiError
|
|
783
914
|
*/
|
|
@@ -797,17 +928,26 @@ var BeanBalancesService = class {
|
|
|
797
928
|
};
|
|
798
929
|
var BeanCommoditiesService = class {
|
|
799
930
|
/**
|
|
931
|
+
* Create a new commodity
|
|
932
|
+
* Creates a new commodity definition for the authenticated user
|
|
800
933
|
* @param data The data for the request.
|
|
801
|
-
* @param data.region Region code
|
|
802
|
-
* @
|
|
934
|
+
* @param data.region Region code for tenant context
|
|
935
|
+
* @param data.requestBody
|
|
936
|
+
* @returns CommodityResponseDto Commodity created successfully
|
|
803
937
|
* @throws ApiError
|
|
804
938
|
*/
|
|
805
|
-
static
|
|
939
|
+
static commodityControllerCreate(data) {
|
|
806
940
|
return request(OpenAPI, {
|
|
807
941
|
method: "POST",
|
|
808
942
|
url: "/api/v1/{region}/bean/commodities",
|
|
809
943
|
path: {
|
|
810
944
|
region: data.region
|
|
945
|
+
},
|
|
946
|
+
body: data.requestBody,
|
|
947
|
+
mediaType: "application/json",
|
|
948
|
+
errors: {
|
|
949
|
+
400: "Invalid input data",
|
|
950
|
+
409: "Commodity already exists"
|
|
811
951
|
}
|
|
812
952
|
});
|
|
813
953
|
}
|
|
@@ -815,7 +955,7 @@ var BeanCommoditiesService = class {
|
|
|
815
955
|
* List user commodities
|
|
816
956
|
* Returns all commodity definitions for the authenticated user with optional filtering
|
|
817
957
|
* @param data The data for the request.
|
|
818
|
-
* @param data.region Region code
|
|
958
|
+
* @param data.region Region code for tenant context
|
|
819
959
|
* @param data.search Search term for symbol or metadata fields (partial match). Searches symbol and metadata.name.
|
|
820
960
|
* @param data.symbol Filter by exact symbol match
|
|
821
961
|
* @returns CommodityListResponseDto Commodities retrieved successfully
|
|
@@ -839,7 +979,7 @@ var BeanCommoditiesService = class {
|
|
|
839
979
|
* Returns a specific commodity definition by its symbol
|
|
840
980
|
* @param data The data for the request.
|
|
841
981
|
* @param data.symbol Commodity symbol
|
|
842
|
-
* @param data.region Region code
|
|
982
|
+
* @param data.region Region code for tenant context
|
|
843
983
|
* @returns CommodityResponseDto Commodity retrieved successfully
|
|
844
984
|
* @throws ApiError
|
|
845
985
|
*/
|
|
@@ -857,57 +997,81 @@ var BeanCommoditiesService = class {
|
|
|
857
997
|
});
|
|
858
998
|
}
|
|
859
999
|
/**
|
|
1000
|
+
* Update commodity
|
|
1001
|
+
* Updates an existing commodity definition. Symbol cannot be changed.
|
|
860
1002
|
* @param data The data for the request.
|
|
861
|
-
* @param data.
|
|
862
|
-
* @
|
|
1003
|
+
* @param data.symbol Commodity symbol
|
|
1004
|
+
* @param data.region Region code for tenant context
|
|
1005
|
+
* @param data.requestBody
|
|
1006
|
+
* @returns CommodityResponseDto Commodity updated successfully
|
|
863
1007
|
* @throws ApiError
|
|
864
1008
|
*/
|
|
865
|
-
static
|
|
1009
|
+
static commodityControllerUpdate(data) {
|
|
866
1010
|
return request(OpenAPI, {
|
|
867
1011
|
method: "PUT",
|
|
868
1012
|
url: "/api/v1/{region}/bean/commodities/{symbol}",
|
|
869
1013
|
path: {
|
|
1014
|
+
symbol: data.symbol,
|
|
870
1015
|
region: data.region
|
|
1016
|
+
},
|
|
1017
|
+
body: data.requestBody,
|
|
1018
|
+
mediaType: "application/json",
|
|
1019
|
+
errors: {
|
|
1020
|
+
400: "Invalid input data",
|
|
1021
|
+
404: "Commodity not found"
|
|
871
1022
|
}
|
|
872
1023
|
});
|
|
873
1024
|
}
|
|
874
1025
|
/**
|
|
1026
|
+
* Delete commodity
|
|
1027
|
+
* Deletes a commodity definition
|
|
875
1028
|
* @param data The data for the request.
|
|
876
|
-
* @param data.
|
|
877
|
-
* @
|
|
1029
|
+
* @param data.symbol Commodity symbol
|
|
1030
|
+
* @param data.region Region code for tenant context
|
|
1031
|
+
* @returns void Commodity deleted successfully
|
|
878
1032
|
* @throws ApiError
|
|
879
1033
|
*/
|
|
880
|
-
static
|
|
1034
|
+
static commodityControllerDelete(data) {
|
|
881
1035
|
return request(OpenAPI, {
|
|
882
1036
|
method: "DELETE",
|
|
883
1037
|
url: "/api/v1/{region}/bean/commodities/{symbol}",
|
|
884
1038
|
path: {
|
|
1039
|
+
symbol: data.symbol,
|
|
885
1040
|
region: data.region
|
|
1041
|
+
},
|
|
1042
|
+
errors: {
|
|
1043
|
+
404: "Commodity not found"
|
|
886
1044
|
}
|
|
887
1045
|
});
|
|
888
1046
|
}
|
|
889
1047
|
/**
|
|
1048
|
+
* Ensure commodity exists
|
|
1049
|
+
* Gets existing commodity or creates it with automatic initialization from OpenBB
|
|
890
1050
|
* @param data The data for the request.
|
|
891
|
-
* @param data.
|
|
892
|
-
* @
|
|
1051
|
+
* @param data.symbol Commodity symbol
|
|
1052
|
+
* @param data.region Region code for tenant context
|
|
1053
|
+
* @returns CommodityResponseDto Commodity retrieved or created
|
|
893
1054
|
* @throws ApiError
|
|
894
1055
|
*/
|
|
895
|
-
static
|
|
1056
|
+
static commodityControllerGetOrCreate(data) {
|
|
896
1057
|
return request(OpenAPI, {
|
|
897
1058
|
method: "POST",
|
|
898
1059
|
url: "/api/v1/{region}/bean/commodities/{symbol}/ensure",
|
|
899
1060
|
path: {
|
|
1061
|
+
symbol: data.symbol,
|
|
900
1062
|
region: data.region
|
|
901
1063
|
}
|
|
902
1064
|
});
|
|
903
1065
|
}
|
|
904
1066
|
/**
|
|
1067
|
+
* Bulk create commodities
|
|
1068
|
+
* Creates multiple commodities from a list of symbols, useful for initialization
|
|
905
1069
|
* @param data The data for the request.
|
|
906
|
-
* @param data.region Region code
|
|
907
|
-
* @returns
|
|
1070
|
+
* @param data.region Region code for tenant context
|
|
1071
|
+
* @returns CommodityResponseDto Commodities created successfully
|
|
908
1072
|
* @throws ApiError
|
|
909
1073
|
*/
|
|
910
|
-
static
|
|
1074
|
+
static commodityControllerBulkCreate(data) {
|
|
911
1075
|
return request(OpenAPI, {
|
|
912
1076
|
method: "POST",
|
|
913
1077
|
url: "/api/v1/{region}/bean/commodities/bulk",
|
|
@@ -943,7 +1107,7 @@ var ProviderSyncService = class {
|
|
|
943
1107
|
*
|
|
944
1108
|
* @param data The data for the request.
|
|
945
1109
|
* @param data.providerName Provider name
|
|
946
|
-
* @param data.region Region code
|
|
1110
|
+
* @param data.region Region code for tenant context
|
|
947
1111
|
* @param data.requestBody
|
|
948
1112
|
* @returns ProviderSyncResponseDto Sync completed successfully
|
|
949
1113
|
* @throws ApiError
|
|
@@ -969,7 +1133,7 @@ var ProviderSyncService = class {
|
|
|
969
1133
|
* Get supported providers
|
|
970
1134
|
* Returns a list of all providers supported by the sync endpoint.
|
|
971
1135
|
* @param data The data for the request.
|
|
972
|
-
* @param data.region Region code
|
|
1136
|
+
* @param data.region Region code for tenant context
|
|
973
1137
|
* @returns SupportedProvidersResponseDto List of supported providers
|
|
974
1138
|
* @throws ApiError
|
|
975
1139
|
*/
|
|
@@ -990,7 +1154,7 @@ var ProviderSyncService = class {
|
|
|
990
1154
|
* Returns whether a specific provider is supported.
|
|
991
1155
|
* @param data The data for the request.
|
|
992
1156
|
* @param data.providerName Provider name to check
|
|
993
|
-
* @param data.region Region code
|
|
1157
|
+
* @param data.region Region code for tenant context
|
|
994
1158
|
* @returns unknown Provider support status
|
|
995
1159
|
* @throws ApiError
|
|
996
1160
|
*/
|
|
@@ -1011,18 +1175,13 @@ var ProviderSyncService = class {
|
|
|
1011
1175
|
var HealthService = class {
|
|
1012
1176
|
/**
|
|
1013
1177
|
* Basic health check for K8s/load balancer probes
|
|
1014
|
-
* @param data The data for the request.
|
|
1015
|
-
* @param data.region Region code (cn, us, de)
|
|
1016
1178
|
* @returns unknown Service is healthy
|
|
1017
1179
|
* @throws ApiError
|
|
1018
1180
|
*/
|
|
1019
|
-
static healthControllerGetHealth(
|
|
1181
|
+
static healthControllerGetHealth() {
|
|
1020
1182
|
return request(OpenAPI, {
|
|
1021
1183
|
method: "GET",
|
|
1022
1184
|
url: "/api/v1/health",
|
|
1023
|
-
path: {
|
|
1024
|
-
region: data.region
|
|
1025
|
-
},
|
|
1026
1185
|
errors: {
|
|
1027
1186
|
503: "Service unavailable"
|
|
1028
1187
|
}
|
|
@@ -1030,37 +1189,41 @@ var HealthService = class {
|
|
|
1030
1189
|
}
|
|
1031
1190
|
/**
|
|
1032
1191
|
* Check database connection health
|
|
1033
|
-
* @param data The data for the request.
|
|
1034
|
-
* @param data.region Region code (cn, us, de)
|
|
1035
1192
|
* @returns unknown Database is healthy
|
|
1036
1193
|
* @throws ApiError
|
|
1037
1194
|
*/
|
|
1038
|
-
static healthControllerCheckDatabase(
|
|
1195
|
+
static healthControllerCheckDatabase() {
|
|
1039
1196
|
return request(OpenAPI, {
|
|
1040
1197
|
method: "GET",
|
|
1041
1198
|
url: "/api/v1/health/database",
|
|
1042
|
-
path: {
|
|
1043
|
-
region: data.region
|
|
1044
|
-
},
|
|
1045
1199
|
errors: {
|
|
1046
1200
|
503: "Database unavailable"
|
|
1047
1201
|
}
|
|
1048
1202
|
});
|
|
1049
1203
|
}
|
|
1204
|
+
/**
|
|
1205
|
+
* Check OpenBB schema status
|
|
1206
|
+
* @returns unknown OpenBB status
|
|
1207
|
+
* @throws ApiError
|
|
1208
|
+
*/
|
|
1209
|
+
static healthControllerCheckOpenBb() {
|
|
1210
|
+
return request(OpenAPI, {
|
|
1211
|
+
method: "GET",
|
|
1212
|
+
url: "/api/v1/health/openbb",
|
|
1213
|
+
errors: {
|
|
1214
|
+
503: "OpenBB unavailable"
|
|
1215
|
+
}
|
|
1216
|
+
});
|
|
1217
|
+
}
|
|
1050
1218
|
/**
|
|
1051
1219
|
* Check Redis connection health
|
|
1052
|
-
* @param data The data for the request.
|
|
1053
|
-
* @param data.region Region code (cn, us, de)
|
|
1054
1220
|
* @returns unknown Redis is healthy
|
|
1055
1221
|
* @throws ApiError
|
|
1056
1222
|
*/
|
|
1057
|
-
static healthControllerCheckRedis(
|
|
1223
|
+
static healthControllerCheckRedis() {
|
|
1058
1224
|
return request(OpenAPI, {
|
|
1059
1225
|
method: "GET",
|
|
1060
1226
|
url: "/api/v1/health/redis",
|
|
1061
|
-
path: {
|
|
1062
|
-
region: data.region
|
|
1063
|
-
},
|
|
1064
1227
|
errors: {
|
|
1065
1228
|
503: "Redis unavailable"
|
|
1066
1229
|
}
|
|
@@ -1068,18 +1231,13 @@ var HealthService = class {
|
|
|
1068
1231
|
}
|
|
1069
1232
|
/**
|
|
1070
1233
|
* Get status of all circuit breakers
|
|
1071
|
-
* @param data The data for the request.
|
|
1072
|
-
* @param data.region Region code (cn, us, de)
|
|
1073
1234
|
* @returns unknown Circuit breaker status
|
|
1074
1235
|
* @throws ApiError
|
|
1075
1236
|
*/
|
|
1076
|
-
static healthControllerGetCircuitBreakersHealth(
|
|
1237
|
+
static healthControllerGetCircuitBreakersHealth() {
|
|
1077
1238
|
return request(OpenAPI, {
|
|
1078
1239
|
method: "GET",
|
|
1079
1240
|
url: "/api/v1/health/circuit-breakers",
|
|
1080
|
-
path: {
|
|
1081
|
-
region: data.region
|
|
1082
|
-
},
|
|
1083
1241
|
errors: {
|
|
1084
1242
|
401: "Unauthorized",
|
|
1085
1243
|
500: "Internal error"
|
|
@@ -1090,7 +1248,6 @@ var HealthService = class {
|
|
|
1090
1248
|
* Reset a circuit breaker to CLOSED state
|
|
1091
1249
|
* @param data The data for the request.
|
|
1092
1250
|
* @param data.name Circuit breaker name to reset
|
|
1093
|
-
* @param data.region Region code (cn, us, de)
|
|
1094
1251
|
* @returns unknown Circuit breaker reset successfully
|
|
1095
1252
|
* @throws ApiError
|
|
1096
1253
|
*/
|
|
@@ -1099,8 +1256,7 @@ var HealthService = class {
|
|
|
1099
1256
|
method: "POST",
|
|
1100
1257
|
url: "/api/v1/health/circuit-breakers/{name}/reset",
|
|
1101
1258
|
path: {
|
|
1102
|
-
name: data.name
|
|
1103
|
-
region: data.region
|
|
1259
|
+
name: data.name
|
|
1104
1260
|
},
|
|
1105
1261
|
errors: {
|
|
1106
1262
|
401: "Unauthorized",
|
|
@@ -1110,88 +1266,18 @@ var HealthService = class {
|
|
|
1110
1266
|
}
|
|
1111
1267
|
/**
|
|
1112
1268
|
* Get health check metrics and statistics
|
|
1113
|
-
* @param data The data for the request.
|
|
1114
|
-
* @param data.region Region code (cn, us, de)
|
|
1115
1269
|
* @returns unknown Health metrics
|
|
1116
1270
|
* @throws ApiError
|
|
1117
1271
|
*/
|
|
1118
|
-
static healthControllerGetMetrics(
|
|
1272
|
+
static healthControllerGetMetrics() {
|
|
1119
1273
|
return request(OpenAPI, {
|
|
1120
1274
|
method: "GET",
|
|
1121
1275
|
url: "/api/v1/health/metrics",
|
|
1122
|
-
path: {
|
|
1123
|
-
region: data.region
|
|
1124
|
-
},
|
|
1125
1276
|
errors: {
|
|
1126
1277
|
401: "Unauthorized"
|
|
1127
1278
|
}
|
|
1128
1279
|
});
|
|
1129
1280
|
}
|
|
1130
|
-
/**
|
|
1131
|
-
* Check health of a specific data enhancer
|
|
1132
|
-
* @param data The data for the request.
|
|
1133
|
-
* @param data.name Data enhancer name
|
|
1134
|
-
* @param data.region Region code (cn, us, de)
|
|
1135
|
-
* @returns unknown Data enhancer is healthy
|
|
1136
|
-
* @throws ApiError
|
|
1137
|
-
*/
|
|
1138
|
-
static healthControllerGetHealthOfDataEnhancer(data) {
|
|
1139
|
-
return request(OpenAPI, {
|
|
1140
|
-
method: "GET",
|
|
1141
|
-
url: "/api/v1/health/data-enhancer/{name}",
|
|
1142
|
-
path: {
|
|
1143
|
-
name: data.name,
|
|
1144
|
-
region: data.region
|
|
1145
|
-
},
|
|
1146
|
-
errors: {
|
|
1147
|
-
401: "Unauthorized",
|
|
1148
|
-
503: "Data enhancer unavailable"
|
|
1149
|
-
}
|
|
1150
|
-
});
|
|
1151
|
-
}
|
|
1152
|
-
/**
|
|
1153
|
-
* Check health of all data providers
|
|
1154
|
-
* @param data The data for the request.
|
|
1155
|
-
* @param data.region Region code (cn, us, de)
|
|
1156
|
-
* @returns unknown Data providers health status
|
|
1157
|
-
* @throws ApiError
|
|
1158
|
-
*/
|
|
1159
|
-
static healthControllerCheckDataProviders(data) {
|
|
1160
|
-
return request(OpenAPI, {
|
|
1161
|
-
method: "GET",
|
|
1162
|
-
url: "/api/v1/health/data-providers",
|
|
1163
|
-
path: {
|
|
1164
|
-
region: data.region
|
|
1165
|
-
},
|
|
1166
|
-
errors: {
|
|
1167
|
-
401: "Unauthorized",
|
|
1168
|
-
503: "Data providers check failed"
|
|
1169
|
-
}
|
|
1170
|
-
});
|
|
1171
|
-
}
|
|
1172
|
-
/**
|
|
1173
|
-
* Check health of a specific data provider
|
|
1174
|
-
* @param data The data for the request.
|
|
1175
|
-
* @param data.dataSource Data source identifier
|
|
1176
|
-
* @param data.region Region code (cn, us, de)
|
|
1177
|
-
* @returns unknown Data provider is healthy
|
|
1178
|
-
* @throws ApiError
|
|
1179
|
-
*/
|
|
1180
|
-
static healthControllerGetHealthOfDataProvider(data) {
|
|
1181
|
-
return request(OpenAPI, {
|
|
1182
|
-
method: "GET",
|
|
1183
|
-
url: "/api/v1/health/data-provider/{dataSource}",
|
|
1184
|
-
path: {
|
|
1185
|
-
dataSource: data.dataSource,
|
|
1186
|
-
region: data.region
|
|
1187
|
-
},
|
|
1188
|
-
errors: {
|
|
1189
|
-
400: "Invalid data source",
|
|
1190
|
-
401: "Unauthorized",
|
|
1191
|
-
503: "Data provider unavailable"
|
|
1192
|
-
}
|
|
1193
|
-
});
|
|
1194
|
-
}
|
|
1195
1281
|
};
|
|
1196
1282
|
export {
|
|
1197
1283
|
BeanAccountsService,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firela/api-types",
|
|
3
|
-
"version": "0.0.0-canary.
|
|
3
|
+
"version": "0.0.0-canary.b3cbb38",
|
|
4
4
|
"description": "TypeScript types generated from IGN OpenAPI specification",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "FireLa Team",
|
|
@@ -24,8 +24,7 @@
|
|
|
24
24
|
"src"
|
|
25
25
|
],
|
|
26
26
|
"scripts": {
|
|
27
|
-
"
|
|
28
|
-
"generate": "npm run sync && openapi-ts",
|
|
27
|
+
"generate": "openapi-ts",
|
|
29
28
|
"build": "tsup src/index.ts --format cjs,esm --dts --clean",
|
|
30
29
|
"lint": "spectral lint openapi.yaml",
|
|
31
30
|
"prepublishOnly": "npm run generate && npm run build"
|