fx-spec-hub 0.0.29 → 0.0.31

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.
@@ -185,6 +185,12 @@
185
185
  },
186
186
  {
187
187
  "name": "Cms"
188
+ },
189
+ {
190
+ "name": "财务对账"
191
+ },
192
+ {
193
+ "name": "ComplianceDashboard"
188
194
  }
189
195
  ],
190
196
  "paths": {
@@ -25267,6 +25273,344 @@
25267
25273
  }
25268
25274
  }
25269
25275
  },
25276
+ "/api/v1/reconciliation/report/file": {
25277
+ "post": {
25278
+ "summary": "获取对账报表文件列表",
25279
+ "deprecated": false,
25280
+ "description": "获取对账报表文件列表",
25281
+ "tags": [
25282
+ "财务对账"
25283
+ ],
25284
+ "parameters": [],
25285
+ "requestBody": {
25286
+ "content": {
25287
+ "application/json": {
25288
+ "schema": {
25289
+ "type": "string"
25290
+ }
25291
+ }
25292
+ }
25293
+ },
25294
+ "responses": {
25295
+ "200": {
25296
+ "description": "{\"code\": 200, \"data\": [...]}",
25297
+ "content": {
25298
+ "*/*": {
25299
+ "schema": {
25300
+ "$ref": "#/components/schemas/utils.Response"
25301
+ }
25302
+ }
25303
+ },
25304
+ "headers": {}
25305
+ }
25306
+ },
25307
+ "security": [],
25308
+ "X-Type": {
25309
+ "type": "BUS"
25310
+ },
25311
+ "x-s2o-warning": "Operation post:/api/v1/reconciliation/report/file has multiple requestBodies"
25312
+ }
25313
+ },
25314
+ "/api/v1/compliance/data/autohigh": {
25315
+ "post": {
25316
+ "summary": "AutoHigh概览",
25317
+ "deprecated": false,
25318
+ "description": "D2: 获取AutoHigh分类统计(国家/客户/历史/交易风险)",
25319
+ "tags": [
25320
+ "ComplianceDashboard"
25321
+ ],
25322
+ "parameters": [],
25323
+ "requestBody": {
25324
+ "content": {
25325
+ "application/json": {
25326
+ "schema": {
25327
+ "$ref": "#/components/schemas/models.ComplianceDashboardReq"
25328
+ }
25329
+ }
25330
+ },
25331
+ "required": true
25332
+ },
25333
+ "responses": {
25334
+ "200": {
25335
+ "description": "OK",
25336
+ "content": {
25337
+ "*/*": {
25338
+ "schema": {
25339
+ "allOf": [
25340
+ {
25341
+ "$ref": "#/components/schemas/response.Response"
25342
+ },
25343
+ {
25344
+ "type": "object",
25345
+ "properties": {
25346
+ "data": {
25347
+ "$ref": "#/components/schemas/models.AutoHighResp"
25348
+ }
25349
+ }
25350
+ }
25351
+ ]
25352
+ }
25353
+ }
25354
+ },
25355
+ "headers": {}
25356
+ }
25357
+ },
25358
+ "security": [],
25359
+ "X-Type": {
25360
+ "type": "BUS"
25361
+ }
25362
+ }
25363
+ },
25364
+ "/api/v1/compliance/data/name-screening": {
25365
+ "post": {
25366
+ "summary": "Name Screening概览",
25367
+ "deprecated": false,
25368
+ "description": "D3: 获取姓名筛查统计(命中/TP/FP/分类/Dowjones)",
25369
+ "tags": [
25370
+ "ComplianceDashboard"
25371
+ ],
25372
+ "parameters": [],
25373
+ "requestBody": {
25374
+ "content": {
25375
+ "application/json": {
25376
+ "schema": {
25377
+ "$ref": "#/components/schemas/models.ComplianceDashboardReq"
25378
+ }
25379
+ }
25380
+ },
25381
+ "required": true
25382
+ },
25383
+ "responses": {
25384
+ "200": {
25385
+ "description": "OK",
25386
+ "content": {
25387
+ "*/*": {
25388
+ "schema": {
25389
+ "allOf": [
25390
+ {
25391
+ "$ref": "#/components/schemas/response.Response"
25392
+ },
25393
+ {
25394
+ "type": "object",
25395
+ "properties": {
25396
+ "data": {
25397
+ "$ref": "#/components/schemas/models.NameScreeningResp"
25398
+ }
25399
+ }
25400
+ }
25401
+ ]
25402
+ }
25403
+ }
25404
+ },
25405
+ "headers": {}
25406
+ }
25407
+ },
25408
+ "security": [],
25409
+ "X-Type": {
25410
+ "type": "BUS"
25411
+ }
25412
+ }
25413
+ },
25414
+ "/api/v1/compliance/data/risk-rating": {
25415
+ "post": {
25416
+ "summary": "客户风险评级概览",
25417
+ "deprecated": false,
25418
+ "description": "D1: 获取客户风险评级分布(低/中/高/AutoHigh)",
25419
+ "tags": [
25420
+ "ComplianceDashboard"
25421
+ ],
25422
+ "parameters": [],
25423
+ "requestBody": {
25424
+ "content": {
25425
+ "application/json": {
25426
+ "schema": {
25427
+ "$ref": "#/components/schemas/models.ComplianceDashboardReq"
25428
+ }
25429
+ }
25430
+ },
25431
+ "required": true
25432
+ },
25433
+ "responses": {
25434
+ "200": {
25435
+ "description": "OK",
25436
+ "content": {
25437
+ "*/*": {
25438
+ "schema": {
25439
+ "allOf": [
25440
+ {
25441
+ "$ref": "#/components/schemas/response.Response"
25442
+ },
25443
+ {
25444
+ "type": "object",
25445
+ "properties": {
25446
+ "data": {
25447
+ "$ref": "#/components/schemas/models.RiskRatingResp"
25448
+ }
25449
+ }
25450
+ }
25451
+ ]
25452
+ }
25453
+ }
25454
+ },
25455
+ "headers": {}
25456
+ }
25457
+ },
25458
+ "security": [],
25459
+ "X-Type": {
25460
+ "type": "BUS"
25461
+ }
25462
+ }
25463
+ },
25464
+ "/api/v1/compliance/data/risk-ratio": {
25465
+ "post": {
25466
+ "summary": "风险占比",
25467
+ "deprecated": false,
25468
+ "description": "D4: 获取高风险国家占比和中高风险钱包占比",
25469
+ "tags": [
25470
+ "ComplianceDashboard"
25471
+ ],
25472
+ "parameters": [],
25473
+ "requestBody": {
25474
+ "content": {
25475
+ "application/json": {
25476
+ "schema": {
25477
+ "$ref": "#/components/schemas/models.ComplianceDashboardReq"
25478
+ }
25479
+ }
25480
+ },
25481
+ "required": true
25482
+ },
25483
+ "responses": {
25484
+ "200": {
25485
+ "description": "OK",
25486
+ "content": {
25487
+ "*/*": {
25488
+ "schema": {
25489
+ "allOf": [
25490
+ {
25491
+ "$ref": "#/components/schemas/response.Response"
25492
+ },
25493
+ {
25494
+ "type": "object",
25495
+ "properties": {
25496
+ "data": {
25497
+ "$ref": "#/components/schemas/models.RiskRatioResp"
25498
+ }
25499
+ }
25500
+ }
25501
+ ]
25502
+ }
25503
+ }
25504
+ },
25505
+ "headers": {}
25506
+ }
25507
+ },
25508
+ "security": [],
25509
+ "X-Type": {
25510
+ "type": "BUS"
25511
+ }
25512
+ }
25513
+ },
25514
+ "/api/v1/compliance/data/str-alert": {
25515
+ "post": {
25516
+ "summary": "STR Alert概览",
25517
+ "deprecated": false,
25518
+ "description": "D5: 获取STR告警统计(汇总+Offchain/Onchain/Access分类)",
25519
+ "tags": [
25520
+ "ComplianceDashboard"
25521
+ ],
25522
+ "parameters": [],
25523
+ "requestBody": {
25524
+ "content": {
25525
+ "application/json": {
25526
+ "schema": {
25527
+ "$ref": "#/components/schemas/models.ComplianceDashboardReq"
25528
+ }
25529
+ }
25530
+ },
25531
+ "required": true
25532
+ },
25533
+ "responses": {
25534
+ "200": {
25535
+ "description": "OK",
25536
+ "content": {
25537
+ "*/*": {
25538
+ "schema": {
25539
+ "allOf": [
25540
+ {
25541
+ "$ref": "#/components/schemas/response.Response"
25542
+ },
25543
+ {
25544
+ "type": "object",
25545
+ "properties": {
25546
+ "data": {
25547
+ "$ref": "#/components/schemas/models.StrAlertResp"
25548
+ }
25549
+ }
25550
+ }
25551
+ ]
25552
+ }
25553
+ }
25554
+ },
25555
+ "headers": {}
25556
+ }
25557
+ },
25558
+ "security": [],
25559
+ "X-Type": {
25560
+ "type": "BUS"
25561
+ }
25562
+ }
25563
+ },
25564
+ "/api/v1/compliance/ticket/overview": {
25565
+ "post": {
25566
+ "summary": "工单看板",
25567
+ "deprecated": false,
25568
+ "description": "获取工单看板全量数据(今日汇总 + 6 个模块统计)",
25569
+ "tags": [
25570
+ "ComplianceDashboard"
25571
+ ],
25572
+ "parameters": [],
25573
+ "requestBody": {
25574
+ "content": {
25575
+ "application/json": {
25576
+ "schema": {
25577
+ "$ref": "#/components/schemas/models.TicketDashboardReq"
25578
+ }
25579
+ }
25580
+ },
25581
+ "required": true
25582
+ },
25583
+ "responses": {
25584
+ "200": {
25585
+ "description": "OK",
25586
+ "content": {
25587
+ "*/*": {
25588
+ "schema": {
25589
+ "allOf": [
25590
+ {
25591
+ "$ref": "#/components/schemas/response.Response"
25592
+ },
25593
+ {
25594
+ "type": "object",
25595
+ "properties": {
25596
+ "data": {
25597
+ "$ref": "#/components/schemas/models.TicketDashboardModulesResp"
25598
+ }
25599
+ }
25600
+ }
25601
+ ]
25602
+ }
25603
+ }
25604
+ },
25605
+ "headers": {}
25606
+ }
25607
+ },
25608
+ "security": [],
25609
+ "X-Type": {
25610
+ "type": "BUS"
25611
+ }
25612
+ }
25613
+ },
25270
25614
  "/logout": {
25271
25615
  "post": {
25272
25616
  "summary": "退出登录",
@@ -25293,6 +25637,342 @@
25293
25637
  },
25294
25638
  "components": {
25295
25639
  "schemas": {
25640
+ "models.TicketModuleItem": {
25641
+ "type": "object",
25642
+ "properties": {
25643
+ "approved": {
25644
+ "description": "审核通过",
25645
+ "type": "integer"
25646
+ },
25647
+ "module": {
25648
+ "description": "模块编码",
25649
+ "type": "string"
25650
+ },
25651
+ "moduleName": {
25652
+ "description": "模块名称",
25653
+ "type": "string"
25654
+ },
25655
+ "passRate": {
25656
+ "description": "通过率(%)",
25657
+ "type": "number"
25658
+ },
25659
+ "rejected": {
25660
+ "description": "审核拒绝",
25661
+ "type": "integer"
25662
+ },
25663
+ "reviewing": {
25664
+ "description": "审核中",
25665
+ "type": "integer"
25666
+ },
25667
+ "total": {
25668
+ "description": "总数",
25669
+ "type": "integer"
25670
+ }
25671
+ }
25672
+ },
25673
+ "models.TicketDashboardSummaryResp": {
25674
+ "type": "object",
25675
+ "properties": {
25676
+ "overallPassRate": {
25677
+ "description": "整体已通过率(%)",
25678
+ "type": "number"
25679
+ },
25680
+ "todayPending": {
25681
+ "description": "当前待处理工单总数(SUBMITTED+PENDING)",
25682
+ "type": "integer"
25683
+ },
25684
+ "todayProcessed": {
25685
+ "description": "今日已处理工单数",
25686
+ "type": "integer"
25687
+ }
25688
+ }
25689
+ },
25690
+ "models.TicketDashboardReq": {
25691
+ "type": "object",
25692
+ "properties": {
25693
+ "datePreset": {
25694
+ "description": "today / last_7_days / last_30_days / custom",
25695
+ "type": "string"
25696
+ },
25697
+ "endDate": {
25698
+ "description": "custom 时使用, yyyy-MM-dd",
25699
+ "type": "string"
25700
+ },
25701
+ "startDate": {
25702
+ "description": "custom 时使用, yyyy-MM-dd",
25703
+ "type": "string"
25704
+ }
25705
+ }
25706
+ },
25707
+ "models.TicketDashboardModulesResp": {
25708
+ "type": "object",
25709
+ "properties": {
25710
+ "modules": {
25711
+ "description": "各模块统计",
25712
+ "type": "array",
25713
+ "items": {
25714
+ "$ref": "#/components/schemas/models.TicketModuleItem"
25715
+ }
25716
+ },
25717
+ "summary": {
25718
+ "description": "顶部汇总",
25719
+ "allOf": [
25720
+ {
25721
+ "$ref": "#/components/schemas/models.TicketDashboardSummaryResp"
25722
+ }
25723
+ ]
25724
+ }
25725
+ }
25726
+ },
25727
+ "models.StrAlertRow": {
25728
+ "type": "object",
25729
+ "properties": {
25730
+ "reported": {
25731
+ "description": "已上报数量",
25732
+ "type": "integer"
25733
+ },
25734
+ "reportedRate": {
25735
+ "description": "上报率百分比 (reported/total)",
25736
+ "type": "number"
25737
+ },
25738
+ "ruleType": {
25739
+ "description": "规则类型: STR Alert / Offchain Rule / Onchain Rule / Access Rule",
25740
+ "type": "string"
25741
+ },
25742
+ "total": {
25743
+ "description": "告警总数",
25744
+ "type": "integer"
25745
+ },
25746
+ "underReview": {
25747
+ "description": "审核中数量",
25748
+ "type": "integer"
25749
+ },
25750
+ "unreported": {
25751
+ "description": "未上报数量",
25752
+ "type": "integer"
25753
+ }
25754
+ }
25755
+ },
25756
+ "models.StrAlertResp": {
25757
+ "type": "object",
25758
+ "properties": {
25759
+ "rows": {
25760
+ "description": "STR 告警明细行列表 (4行: STR/Offchain/Onchain/Access)",
25761
+ "type": "array",
25762
+ "items": {
25763
+ "$ref": "#/components/schemas/models.StrAlertRow"
25764
+ }
25765
+ }
25766
+ }
25767
+ },
25768
+ "models.RiskRatioResp": {
25769
+ "type": "object",
25770
+ "properties": {
25771
+ "highRiskCountryRatio": {
25772
+ "description": "高风险国家用户占比百分比",
25773
+ "type": "number"
25774
+ },
25775
+ "medHighRiskWalletRatio": {
25776
+ "description": "中高风险钱包地址占比百分比",
25777
+ "type": "number"
25778
+ }
25779
+ }
25780
+ },
25781
+ "models.RiskRatingResp": {
25782
+ "type": "object",
25783
+ "properties": {
25784
+ "ratingSummary": {
25785
+ "description": "各等级明细列表",
25786
+ "type": "array",
25787
+ "items": {
25788
+ "$ref": "#/components/schemas/models.RiskRatingItem"
25789
+ }
25790
+ },
25791
+ "total": {
25792
+ "description": "评级客户总数",
25793
+ "type": "integer"
25794
+ }
25795
+ }
25796
+ },
25797
+ "models.RiskRatingItem": {
25798
+ "type": "object",
25799
+ "properties": {
25800
+ "label": {
25801
+ "description": "风险等级标签: LOW / MEDIUM / HIGH / AUTO_HIGH",
25802
+ "type": "string"
25803
+ },
25804
+ "ratio": {
25805
+ "description": "占比百分比,如 68.2 表示 68.2%",
25806
+ "type": "number"
25807
+ },
25808
+ "value": {
25809
+ "description": "该等级用户数",
25810
+ "type": "integer"
25811
+ }
25812
+ }
25813
+ },
25814
+ "models.NameScreeningResp": {
25815
+ "type": "object",
25816
+ "properties": {
25817
+ "dowjonesFeed": {
25818
+ "description": "Dowjones Feed 数据源统计",
25819
+ "allOf": [
25820
+ {
25821
+ "$ref": "#/components/schemas/models.DowjonesFeedSummary"
25822
+ }
25823
+ ]
25824
+ },
25825
+ "hitSummary": {
25826
+ "description": "命中汇总统计",
25827
+ "allOf": [
25828
+ {
25829
+ "$ref": "#/components/schemas/models.HitSummary"
25830
+ }
25831
+ ]
25832
+ },
25833
+ "listTypes": {
25834
+ "description": "命中分类(Unique UID): SAN/PEP/RCA/SIP/SIE",
25835
+ "type": "array",
25836
+ "items": {
25837
+ "$ref": "#/components/schemas/models.ListTypeItem"
25838
+ }
25839
+ }
25840
+ }
25841
+ },
25842
+ "models.ListTypeItem": {
25843
+ "type": "object",
25844
+ "properties": {
25845
+ "type": {
25846
+ "description": "命中类型: SAN / PEP / RCA / SIP / SIE",
25847
+ "type": "string"
25848
+ },
25849
+ "value": {
25850
+ "description": "命中去重 UID 数量",
25851
+ "type": "integer"
25852
+ }
25853
+ }
25854
+ },
25855
+ "models.HitSummary": {
25856
+ "type": "object",
25857
+ "properties": {
25858
+ "falsePositive": {
25859
+ "description": "假阳性人数 (sn_ccd=S)",
25860
+ "type": "integer"
25861
+ },
25862
+ "fpRatio": {
25863
+ "description": "假阳性占比百分比",
25864
+ "type": "number"
25865
+ },
25866
+ "hitRate": {
25867
+ "description": "命中率百分比 (totalHits/totalScreened)",
25868
+ "type": "number"
25869
+ },
25870
+ "totalHits": {
25871
+ "description": "命中总人数",
25872
+ "type": "integer"
25873
+ },
25874
+ "totalScreened": {
25875
+ "description": "总筛查人数",
25876
+ "type": "integer"
25877
+ },
25878
+ "tpRatio": {
25879
+ "description": "真阳性占比百分比",
25880
+ "type": "number"
25881
+ },
25882
+ "truePositive": {
25883
+ "description": "真阳性人数 (sn_ccd=R或E)",
25884
+ "type": "integer"
25885
+ }
25886
+ }
25887
+ },
25888
+ "models.DowjonesFeedSummary": {
25889
+ "type": "object",
25890
+ "properties": {
25891
+ "dailyAdded": {
25892
+ "description": "当日新增条目数",
25893
+ "type": "integer"
25894
+ },
25895
+ "dailyDeleted": {
25896
+ "description": "当日删除条目数",
25897
+ "type": "integer"
25898
+ },
25899
+ "total": {
25900
+ "description": "Dowjones 数据总条目数",
25901
+ "type": "integer"
25902
+ }
25903
+ }
25904
+ },
25905
+ "models.ComplianceDashboardReq": {
25906
+ "type": "object",
25907
+ "properties": {
25908
+ "customerType": {
25909
+ "description": "客户类型: ALL / PERSONAL / CORPORATE,默认 ALL",
25910
+ "type": "string"
25911
+ },
25912
+ "datePreset": {
25913
+ "description": "日期预设: today / last_7_days / last_30_days / custom",
25914
+ "type": "string"
25915
+ },
25916
+ "endDate": {
25917
+ "description": "自定义结束日期, yyyy-MM-dd (HKT)",
25918
+ "type": "string"
25919
+ },
25920
+ "startDate": {
25921
+ "description": "自定义开始日期, yyyy-MM-dd (HKT)",
25922
+ "type": "string"
25923
+ }
25924
+ }
25925
+ },
25926
+ "models.AutoHighResp": {
25927
+ "type": "object",
25928
+ "properties": {
25929
+ "categories": {
25930
+ "description": "AutoHigh 分类明细列表",
25931
+ "type": "array",
25932
+ "items": {
25933
+ "$ref": "#/components/schemas/models.AutoHighCategoryItem"
25934
+ }
25935
+ },
25936
+ "total": {
25937
+ "description": "AutoHigh 用户总数",
25938
+ "type": "integer"
25939
+ }
25940
+ }
25941
+ },
25942
+ "models.AutoHighCategoryItem": {
25943
+ "type": "object",
25944
+ "properties": {
25945
+ "category": {
25946
+ "description": "分类: COUNTRY_RISK / CUSTOMER_RISK / HISTORICAL_ALERT / TRANSACTION_RISK",
25947
+ "type": "string"
25948
+ },
25949
+ "ratio": {
25950
+ "description": "占 AutoHigh 总数百分比",
25951
+ "type": "number"
25952
+ },
25953
+ "value": {
25954
+ "description": "该分类触发用户数",
25955
+ "type": "integer"
25956
+ }
25957
+ }
25958
+ },
25959
+ "utils.Response": {
25960
+ "type": "object",
25961
+ "properties": {
25962
+ "code": {
25963
+ "type": "string"
25964
+ },
25965
+ "codeNum": {
25966
+ "type": "integer"
25967
+ },
25968
+ "data": {
25969
+ "type": "string"
25970
+ },
25971
+ "msg": {
25972
+ "type": "string"
25973
+ }
25974
+ }
25975
+ },
25296
25976
  "dto.RemoveAdminReq": {
25297
25977
  "type": "object",
25298
25978
  "required": [
@@ -33530,6 +34210,22 @@
33530
34210
  "models.UpdateTradeStatusReq": {
33531
34211
  "type": "object",
33532
34212
  "properties": {
34213
+ "attachments": {
34214
+ "description": "附件",
34215
+ "type": "array",
34216
+ "items": {
34217
+ "$ref": "#/components/schemas/models.AttachmentItem"
34218
+ }
34219
+ },
34220
+ "beforeStatus": {
34221
+ "description": "修改前交易状态",
34222
+ "type": "string"
34223
+ },
34224
+ "remark": {
34225
+ "description": "备注",
34226
+ "type": "string",
34227
+ "maxLength": 100
34228
+ },
33533
34229
  "status": {
33534
34230
  "description": "交易状态 OPEN/CLOSE",
33535
34231
  "type": "string"
@@ -34017,6 +34713,9 @@
34017
34713
  "models.Symbol": {
34018
34714
  "type": "object",
34019
34715
  "properties": {
34716
+ "auditPending": {
34717
+ "type": "boolean"
34718
+ },
34020
34719
  "configs": {
34021
34720
  "type": "object",
34022
34721
  "additionalProperties": {
@@ -34426,8 +35125,8 @@
34426
35125
  "description": "账户ID",
34427
35126
  "type": "string"
34428
35127
  },
34429
- "keyword": {
34430
- "description": "关键词搜索(订单ID/用户ID)",
35128
+ "orderId": {
35129
+ "description": "订单ID",
34431
35130
  "type": "string"
34432
35131
  },
34433
35132
  "orderSide": {
@@ -37067,6 +37766,10 @@
37067
37766
  "models.GetTradeStatusResp": {
37068
37767
  "type": "object",
37069
37768
  "properties": {
37769
+ "auditPending": {
37770
+ "description": "是否存在审批中的工单",
37771
+ "type": "boolean"
37772
+ },
37070
37773
  "status": {
37071
37774
  "description": "交易状态",
37072
37775
  "type": "string"
@@ -40466,9 +41169,7 @@
40466
41169
  "before": {
40467
41170
  "description": "修改前的值",
40468
41171
  "type": "object",
40469
- "additionalProperties": {
40470
- "type": "string"
40471
- },
41172
+ "additionalProperties": true,
40472
41173
  "properties": {}
40473
41174
  },
40474
41175
  "createBy": {
@@ -40635,9 +41336,7 @@
40635
41336
  "before": {
40636
41337
  "description": "修改前的值",
40637
41338
  "type": "object",
40638
- "additionalProperties": {
40639
- "type": "string"
40640
- },
41339
+ "additionalProperties": true,
40641
41340
  "properties": {}
40642
41341
  },
40643
41342
  "ids": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fx-spec-hub",
3
- "version": "0.0.29",
3
+ "version": "0.0.31",
4
4
  "description": "API 规范中心/控制台",
5
5
  "type": "commonjs",
6
6
  "main": "./dist/index.js",