@yigemo/choosefire 0.1.1 → 0.2.1

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.
@@ -23,7 +23,8 @@
23
23
  "workspace",
24
24
  "asset_account",
25
25
  "valuation_snapshot",
26
- "classification"
26
+ "classification",
27
+ "holding"
27
28
  ]
28
29
  }
29
30
  },
@@ -56,7 +57,10 @@
56
57
  "asset_account.update.v2",
57
58
  "asset_account.archive.v2",
58
59
  "valuation_snapshot.append.v2",
59
- "classification.replace.v2"
60
+ "classification.replace.v2",
61
+ "holding.create.v2",
62
+ "holding.update.v2",
63
+ "holding.archive.v2"
60
64
  ]
61
65
  },
62
66
  "operationId": {
@@ -312,6 +316,93 @@
312
316
  ],
313
317
  "type": "object"
314
318
  },
319
+ "AssetAccountDetailQueryV2": {
320
+ "additionalProperties": false,
321
+ "properties": {
322
+ "accountId": {
323
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
324
+ "type": "string"
325
+ }
326
+ },
327
+ "required": [
328
+ "accountId"
329
+ ],
330
+ "type": "object"
331
+ },
332
+ "AssetAccountDetailSuccessV2": {
333
+ "additionalProperties": false,
334
+ "properties": {
335
+ "code": {
336
+ "const": 0
337
+ },
338
+ "data": {
339
+ "$ref": "#/$defs/AssetAccountDetailV2"
340
+ },
341
+ "kind": {
342
+ "const": "family_wealth_success.v2"
343
+ },
344
+ "status": {
345
+ "const": "success"
346
+ },
347
+ "success": {
348
+ "const": true
349
+ }
350
+ },
351
+ "required": [
352
+ "kind",
353
+ "success",
354
+ "status",
355
+ "code",
356
+ "data"
357
+ ],
358
+ "type": "object"
359
+ },
360
+ "AssetAccountDetailV2": {
361
+ "additionalProperties": false,
362
+ "properties": {
363
+ "account": {
364
+ "$ref": "#/$defs/OverviewAccountV2"
365
+ },
366
+ "asOf": {
367
+ "format": "date-time",
368
+ "type": "string"
369
+ },
370
+ "authority": {
371
+ "$ref": "#/$defs/WorkspaceAuthorityV2"
372
+ },
373
+ "contractVersion": {
374
+ "const": 2
375
+ },
376
+ "holdings": {
377
+ "items": {
378
+ "$ref": "#/$defs/HoldingV2"
379
+ },
380
+ "maxItems": 1000,
381
+ "type": "array"
382
+ },
383
+ "kind": {
384
+ "const": "asset_account.detail.v2"
385
+ },
386
+ "projectionVersion": {
387
+ "const": 1
388
+ },
389
+ "workspaceVersion": {
390
+ "minimum": 1,
391
+ "type": "integer"
392
+ }
393
+ },
394
+ "required": [
395
+ "kind",
396
+ "contractVersion",
397
+ "projectionVersion",
398
+ "workspaceVersion",
399
+ "asOf",
400
+ "authority",
401
+ "account",
402
+ "holdings"
403
+ ],
404
+ "type": "object"
405
+ },
315
406
  "AssetAccountDraftV2": {
316
407
  "additionalProperties": false,
317
408
  "properties": {
@@ -643,6 +734,11 @@
643
734
  "pattern": "^(?:0|[1-9]\\d*|-[1-9]\\d*)(?:\\.\\d{1,8})?$",
644
735
  "type": "string"
645
736
  },
737
+ "DecimalQuantityV2": {
738
+ "maxLength": 48,
739
+ "pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d{1,12})?$",
740
+ "type": "string"
741
+ },
646
742
  "FamilyWealthErrorV2": {
647
743
  "additionalProperties": false,
648
744
  "properties": {
@@ -741,6 +837,354 @@
741
837
  ],
742
838
  "type": "object"
743
839
  },
840
+ "HoldingArchiveCommandV2": {
841
+ "additionalProperties": false,
842
+ "properties": {
843
+ "commandId": {
844
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
845
+ "type": "string"
846
+ },
847
+ "expectedObjectRevision": {
848
+ "minimum": 1,
849
+ "type": "integer"
850
+ },
851
+ "expectedWorkspaceVersion": {
852
+ "minimum": 1,
853
+ "type": "integer"
854
+ },
855
+ "idempotencyKey": {
856
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{7,199}$",
857
+ "type": "string"
858
+ },
859
+ "kind": {
860
+ "const": "holding.archive.v2"
861
+ },
862
+ "payload": {
863
+ "$ref": "#/$defs/HoldingArchivePayloadV2"
864
+ },
865
+ "source": {
866
+ "$ref": "#/$defs/SourceV2"
867
+ }
868
+ },
869
+ "required": [
870
+ "kind",
871
+ "commandId",
872
+ "idempotencyKey",
873
+ "expectedWorkspaceVersion",
874
+ "expectedObjectRevision",
875
+ "source",
876
+ "payload"
877
+ ],
878
+ "type": "object"
879
+ },
880
+ "HoldingArchivePayloadV2": {
881
+ "additionalProperties": false,
882
+ "properties": {
883
+ "holdingId": {
884
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
885
+ "type": "string"
886
+ },
887
+ "reason": {
888
+ "maxLength": 240,
889
+ "minLength": 1,
890
+ "type": "string"
891
+ }
892
+ },
893
+ "required": [
894
+ "holdingId",
895
+ "reason"
896
+ ],
897
+ "type": "object"
898
+ },
899
+ "HoldingCreateCommandV2": {
900
+ "additionalProperties": false,
901
+ "properties": {
902
+ "commandId": {
903
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
904
+ "type": "string"
905
+ },
906
+ "expectedObjectRevision": {
907
+ "type": "null"
908
+ },
909
+ "expectedWorkspaceVersion": {
910
+ "minimum": 1,
911
+ "type": "integer"
912
+ },
913
+ "idempotencyKey": {
914
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{7,199}$",
915
+ "type": "string"
916
+ },
917
+ "kind": {
918
+ "const": "holding.create.v2"
919
+ },
920
+ "payload": {
921
+ "$ref": "#/$defs/HoldingCreatePayloadV2"
922
+ },
923
+ "source": {
924
+ "$ref": "#/$defs/SourceV2"
925
+ }
926
+ },
927
+ "required": [
928
+ "kind",
929
+ "commandId",
930
+ "idempotencyKey",
931
+ "expectedWorkspaceVersion",
932
+ "expectedObjectRevision",
933
+ "source",
934
+ "payload"
935
+ ],
936
+ "type": "object"
937
+ },
938
+ "HoldingCreatePayloadV2": {
939
+ "additionalProperties": false,
940
+ "properties": {
941
+ "accountId": {
942
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
943
+ "type": "string"
944
+ },
945
+ "holding": {
946
+ "$ref": "#/$defs/HoldingDraftV2"
947
+ },
948
+ "holdingId": {
949
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
950
+ "type": "string"
951
+ }
952
+ },
953
+ "required": [
954
+ "holdingId",
955
+ "accountId",
956
+ "holding"
957
+ ],
958
+ "type": "object"
959
+ },
960
+ "HoldingDraftV2": {
961
+ "additionalProperties": false,
962
+ "properties": {
963
+ "currency": {
964
+ "$ref": "#/$defs/CurrencyCodeV2"
965
+ },
966
+ "instrumentRef": {
967
+ "anyOf": [
968
+ {
969
+ "maxLength": 160,
970
+ "minLength": 1,
971
+ "type": "string"
972
+ },
973
+ {
974
+ "type": "null"
975
+ }
976
+ ]
977
+ },
978
+ "name": {
979
+ "maxLength": 120,
980
+ "minLength": 1,
981
+ "type": "string"
982
+ },
983
+ "quality": {
984
+ "$ref": "#/$defs/QualityV2"
985
+ },
986
+ "quantity": {
987
+ "anyOf": [
988
+ {
989
+ "$ref": "#/$defs/DecimalQuantityV2"
990
+ },
991
+ {
992
+ "type": "null"
993
+ }
994
+ ]
995
+ },
996
+ "quantityAsOf": {
997
+ "anyOf": [
998
+ {
999
+ "format": "date-time",
1000
+ "type": "string"
1001
+ },
1002
+ {
1003
+ "type": "null"
1004
+ }
1005
+ ]
1006
+ },
1007
+ "source": {
1008
+ "$ref": "#/$defs/SourceV2"
1009
+ }
1010
+ },
1011
+ "required": [
1012
+ "name",
1013
+ "instrumentRef",
1014
+ "quantity",
1015
+ "quantityAsOf",
1016
+ "currency",
1017
+ "quality",
1018
+ "source"
1019
+ ],
1020
+ "type": "object"
1021
+ },
1022
+ "HoldingUpdateCommandV2": {
1023
+ "additionalProperties": false,
1024
+ "properties": {
1025
+ "commandId": {
1026
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
1027
+ "type": "string"
1028
+ },
1029
+ "expectedObjectRevision": {
1030
+ "minimum": 1,
1031
+ "type": "integer"
1032
+ },
1033
+ "expectedWorkspaceVersion": {
1034
+ "minimum": 1,
1035
+ "type": "integer"
1036
+ },
1037
+ "idempotencyKey": {
1038
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{7,199}$",
1039
+ "type": "string"
1040
+ },
1041
+ "kind": {
1042
+ "const": "holding.update.v2"
1043
+ },
1044
+ "payload": {
1045
+ "$ref": "#/$defs/HoldingUpdatePayloadV2"
1046
+ },
1047
+ "source": {
1048
+ "$ref": "#/$defs/SourceV2"
1049
+ }
1050
+ },
1051
+ "required": [
1052
+ "kind",
1053
+ "commandId",
1054
+ "idempotencyKey",
1055
+ "expectedWorkspaceVersion",
1056
+ "expectedObjectRevision",
1057
+ "source",
1058
+ "payload"
1059
+ ],
1060
+ "type": "object"
1061
+ },
1062
+ "HoldingUpdatePayloadV2": {
1063
+ "additionalProperties": false,
1064
+ "properties": {
1065
+ "holding": {
1066
+ "$ref": "#/$defs/HoldingDraftV2"
1067
+ },
1068
+ "holdingId": {
1069
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
1070
+ "type": "string"
1071
+ }
1072
+ },
1073
+ "required": [
1074
+ "holdingId",
1075
+ "holding"
1076
+ ],
1077
+ "type": "object"
1078
+ },
1079
+ "HoldingV2": {
1080
+ "additionalProperties": false,
1081
+ "properties": {
1082
+ "accountId": {
1083
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
1084
+ "type": "string"
1085
+ },
1086
+ "assetClasses": {
1087
+ "items": {
1088
+ "$ref": "#/$defs/AllocationLineV2"
1089
+ },
1090
+ "maxItems": 20,
1091
+ "type": "array"
1092
+ },
1093
+ "classificationRevision": {
1094
+ "minimum": 0,
1095
+ "type": "integer"
1096
+ },
1097
+ "classificationSource": {
1098
+ "enum": [
1099
+ "holding",
1100
+ "account_default"
1101
+ ]
1102
+ },
1103
+ "currency": {
1104
+ "$ref": "#/$defs/CurrencyCodeV2"
1105
+ },
1106
+ "holdingId": {
1107
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
1108
+ "type": "string"
1109
+ },
1110
+ "instrumentRef": {
1111
+ "anyOf": [
1112
+ {
1113
+ "maxLength": 160,
1114
+ "minLength": 1,
1115
+ "type": "string"
1116
+ },
1117
+ {
1118
+ "type": "null"
1119
+ }
1120
+ ]
1121
+ },
1122
+ "name": {
1123
+ "maxLength": 120,
1124
+ "minLength": 1,
1125
+ "type": "string"
1126
+ },
1127
+ "purposeBuckets": {
1128
+ "items": {
1129
+ "$ref": "#/$defs/AllocationLineV2"
1130
+ },
1131
+ "maxItems": 20,
1132
+ "type": "array"
1133
+ },
1134
+ "quality": {
1135
+ "$ref": "#/$defs/QualityV2"
1136
+ },
1137
+ "quantity": {
1138
+ "anyOf": [
1139
+ {
1140
+ "$ref": "#/$defs/DecimalQuantityV2"
1141
+ },
1142
+ {
1143
+ "type": "null"
1144
+ }
1145
+ ]
1146
+ },
1147
+ "quantityAsOf": {
1148
+ "anyOf": [
1149
+ {
1150
+ "format": "date-time",
1151
+ "type": "string"
1152
+ },
1153
+ {
1154
+ "type": "null"
1155
+ }
1156
+ ]
1157
+ },
1158
+ "revision": {
1159
+ "minimum": 1,
1160
+ "type": "integer"
1161
+ },
1162
+ "source": {
1163
+ "$ref": "#/$defs/SourceV2"
1164
+ },
1165
+ "valuation": {
1166
+ "$ref": "#/$defs/OverviewValuationV2"
1167
+ }
1168
+ },
1169
+ "required": [
1170
+ "holdingId",
1171
+ "accountId",
1172
+ "name",
1173
+ "instrumentRef",
1174
+ "quantity",
1175
+ "quantityAsOf",
1176
+ "currency",
1177
+ "quality",
1178
+ "source",
1179
+ "revision",
1180
+ "classificationRevision",
1181
+ "classificationSource",
1182
+ "assetClasses",
1183
+ "purposeBuckets",
1184
+ "valuation"
1185
+ ],
1186
+ "type": "object"
1187
+ },
744
1188
  "McpDelegatedTokenCredentialV2": {
745
1189
  "additionalProperties": false,
746
1190
  "properties": {
@@ -1451,7 +1895,8 @@
1451
1895
  "enum": [
1452
1896
  "workspace.summary.v2",
1453
1897
  "activity.page.v2",
1454
- "workspace.overview.v2"
1898
+ "workspace.overview.v2",
1899
+ "asset_account.detail.v2"
1455
1900
  ]
1456
1901
  },
1457
1902
  "type": "array",
@@ -1464,7 +1909,10 @@
1464
1909
  "asset_account.update.v2",
1465
1910
  "asset_account.archive.v2",
1466
1911
  "valuation_snapshot.append.v2",
1467
- "classification.replace.v2"
1912
+ "classification.replace.v2",
1913
+ "holding.create.v2",
1914
+ "holding.update.v2",
1915
+ "holding.archive.v2"
1468
1916
  ]
1469
1917
  },
1470
1918
  "type": "array",
@@ -1676,20 +2124,43 @@
1676
2124
  "additionalProperties": false,
1677
2125
  "properties": {
1678
2126
  "readable": {
1679
- "maxItems": 3,
1680
- "minItems": 3,
1681
- "prefixItems": [
1682
- {
1683
- "const": "workspace.summary.v2"
1684
- },
2127
+ "oneOf": [
1685
2128
  {
1686
- "const": "activity.page.v2"
2129
+ "maxItems": 3,
2130
+ "minItems": 3,
2131
+ "prefixItems": [
2132
+ {
2133
+ "const": "workspace.summary.v2"
2134
+ },
2135
+ {
2136
+ "const": "activity.page.v2"
2137
+ },
2138
+ {
2139
+ "const": "workspace.overview.v2"
2140
+ }
2141
+ ],
2142
+ "type": "array"
1687
2143
  },
1688
2144
  {
1689
- "const": "workspace.overview.v2"
2145
+ "maxItems": 4,
2146
+ "minItems": 4,
2147
+ "prefixItems": [
2148
+ {
2149
+ "const": "workspace.summary.v2"
2150
+ },
2151
+ {
2152
+ "const": "activity.page.v2"
2153
+ },
2154
+ {
2155
+ "const": "workspace.overview.v2"
2156
+ },
2157
+ {
2158
+ "const": "asset_account.detail.v2"
2159
+ }
2160
+ ],
2161
+ "type": "array"
1690
2162
  }
1691
- ],
1692
- "type": "array"
2163
+ ]
1693
2164
  },
1694
2165
  "role": {
1695
2166
  "anyOf": [
@@ -2063,7 +2534,8 @@
2063
2534
  "type": "integer"
2064
2535
  },
2065
2536
  "holdings": {
2066
- "const": 0
2537
+ "minimum": 0,
2538
+ "type": "integer"
2067
2539
  },
2068
2540
  "pendingItems": {
2069
2541
  "minimum": 0,