@devizovaburza/mdm-sdk 1.2.2 → 1.2.3
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/v1/index.d.mts +1711 -399
- package/dist/v1/index.d.ts +1711 -399
- package/dist/v1/index.mjs +84 -83
- package/package.json +1 -1
package/dist/v1/index.mjs
CHANGED
|
@@ -163,6 +163,24 @@ const RISK_BUSINESS_AREA$1 = [
|
|
|
163
163
|
"VIRTUAL_ASSET_SERVICES"
|
|
164
164
|
];
|
|
165
165
|
|
|
166
|
+
const XIdempotencyKeyHeaderSchema = z.string().openapi({
|
|
167
|
+
description: "Unique identifier header to ensure the request is processed only once.",
|
|
168
|
+
example: "4ac15c22-2bd3-426f-b915-bfd5febdb7df"
|
|
169
|
+
});
|
|
170
|
+
const XSignatureHeaderSchema = z.string().openapi({
|
|
171
|
+
description: "Payload signature header to verify request body integrity.",
|
|
172
|
+
example: "FIXAxHO6QqH3M7t4MatM8U6l/nIqWj7jIEW2U6/771MGUorSywy+GmKIG3B1mxT1jR7qPtBHQ5YSO8O53iCvOh6kIhbGXtVe/3C61dsEykLbmntV3nF4DY8/HyfF8a6c2Asc5bvgHrhosGi3s/ouoNowMpsckyq66We8H5gRbXlqJm4Bl1zWWQah4aQLX548L8DLx5+EIgArNMVVG8ryCES99aovJBKrQQMpQLwss1sSFuUZ1kdBCodtvxgTOXOugnZ1UNCmUNFXryQ6bn7wY7Punml/rwR/zTQ9j4SX07iFeQC5rgm9/zi29DBluegu+b8/G8oXrf6L4hugbMEKJfLRfKjNHCrjCooKtInoYxwNEfJyJ9mhqdBoeIBca9zgPpewdbwFLXVV82TYR+xZiywDcHKQ62IzQp07NOMCl4xArSJ3vIWUftSYpLIwomyjQEbY27oGiubUF4krEKgHnMYalCn0ruYOwFik2Pa6FEfIZo0TSXDC24UHQb5mJNPYpv2hny7U5CZPmBvjaRGMVnE+WgRUT19cwqlSL3pWAfeSn1Wro7lYBp/PmlRPgYIxl9GJwNlQ0G+NzP9cMSJbmI5fwErDNgJAaPaMwZbJ3y8ikmbBkkXNPKvQrWVGCJ4nP+/f8yYzMZq272EFx984pSoo2yAeBJnrxbW+AlZxyIo="
|
|
173
|
+
});
|
|
174
|
+
const XSignatureKeyHeaderSchema = z.string().openapi({
|
|
175
|
+
description: "Signature key identifier header to specify which key was used for payload signing.",
|
|
176
|
+
example: "ixtal"
|
|
177
|
+
});
|
|
178
|
+
const COUNTRY_CODES = COUNTRY_CODES_2;
|
|
179
|
+
const ALLOWED_ID_DOCUMENTS_FILTERS = {
|
|
180
|
+
PARTY_ID: "filterIdDocumentPartyId",
|
|
181
|
+
ISSUER: "filterIdDocumentIssuer"
|
|
182
|
+
};
|
|
183
|
+
|
|
166
184
|
const ADDRESS_TYPE = [
|
|
167
185
|
"PERMANENT_ADDRESS",
|
|
168
186
|
"REGISTERED_OFFICE",
|
|
@@ -332,7 +350,7 @@ const partySchema$1 = z.object({
|
|
|
332
350
|
id: z.uuid(),
|
|
333
351
|
internalId: z.string().optional(),
|
|
334
352
|
note: z.string().optional(),
|
|
335
|
-
countryCode: z.enum(
|
|
353
|
+
countryCode: z.enum(COUNTRY_CODES).optional()
|
|
336
354
|
});
|
|
337
355
|
const idDocumentInputSchema$1 = z.object({
|
|
338
356
|
idDocType: z.enum(ID_DOC_TYPE),
|
|
@@ -351,13 +369,13 @@ const individualInsertSchema = z.object({
|
|
|
351
369
|
phone: z.string().optional(),
|
|
352
370
|
birthDate: z.string().min(1, "Datum narozen\xED je povinn\xE9"),
|
|
353
371
|
birthPlace: z.string().optional(),
|
|
354
|
-
countryOfBirth: z.enum(
|
|
372
|
+
countryOfBirth: z.enum(COUNTRY_CODES).optional(),
|
|
355
373
|
personalId: z.string().min(1, "\u010C\xEDslo identifika\u010Dn\xEDho dokumentu je povinn\xE9"),
|
|
356
374
|
gender: z.enum(GENDER, "Pohlav\xED je povinn\xE9"),
|
|
357
|
-
citizenship: z.enum(
|
|
358
|
-
citizenshipOther: z.enum(
|
|
375
|
+
citizenship: z.enum(COUNTRY_CODES, "St\xE1t je povinn\xFD"),
|
|
376
|
+
citizenshipOther: z.enum(COUNTRY_CODES).optional(),
|
|
359
377
|
employer: z.string().optional(),
|
|
360
|
-
employerCountry: z.enum(
|
|
378
|
+
employerCountry: z.enum(COUNTRY_CODES).optional(),
|
|
361
379
|
registeredNumber: z.string().optional(),
|
|
362
380
|
isPep: z.boolean({ error: "Politicky exponovan\xE1 osoba je povinn\xE1" }),
|
|
363
381
|
titleBefore: z.string().optional(),
|
|
@@ -368,7 +386,7 @@ const individualInsertSchema = z.object({
|
|
|
368
386
|
deathNotification: z.coerce.date().optional(),
|
|
369
387
|
pin: z.string().optional(),
|
|
370
388
|
stayAbroad: z.boolean().optional(),
|
|
371
|
-
stayAbroadCountries: z.enum(
|
|
389
|
+
stayAbroadCountries: z.enum(COUNTRY_CODES).optional(),
|
|
372
390
|
identityDocuments: z.array(idDocumentInputSchema$1).optional()
|
|
373
391
|
});
|
|
374
392
|
const createOrganizationInputSchema = z.object({
|
|
@@ -377,9 +395,9 @@ const createOrganizationInputSchema = z.object({
|
|
|
377
395
|
email: z.string().optional(),
|
|
378
396
|
phone: z.string().optional(),
|
|
379
397
|
registeredNumber: z.string(),
|
|
380
|
-
registeredIn: z.enum(
|
|
381
|
-
operatesIn: z.enum(
|
|
382
|
-
presentIn: z.enum(
|
|
398
|
+
registeredIn: z.enum(COUNTRY_CODES),
|
|
399
|
+
operatesIn: z.enum(COUNTRY_CODES),
|
|
400
|
+
presentIn: z.enum(COUNTRY_CODES),
|
|
383
401
|
monthlyVolumeIn: z.number(),
|
|
384
402
|
monthlyVolumeOut: z.number(),
|
|
385
403
|
ownedBy: z.string(),
|
|
@@ -434,12 +452,12 @@ const createAddressInputSchema = z.object({
|
|
|
434
452
|
zipCode: z.string().min(1, "PS\u010C je povinn\xE9").max(20).regex(zipCodeRegex, "PS\u010C je v nespr\xE1vn\xE9m form\xE1tu"),
|
|
435
453
|
district: z.string().max(255),
|
|
436
454
|
region: z.string().max(255),
|
|
437
|
-
countryCode: z.enum(
|
|
455
|
+
countryCode: z.enum(COUNTRY_CODES, "St\xE1t je povinn\xFD"),
|
|
438
456
|
ruianCode: z.string().optional()
|
|
439
457
|
});
|
|
440
458
|
const businessPartnerInputSchema$1 = z.object({
|
|
441
459
|
name: z.string().min(1, "N\xE1zev partnera je povinn\xFD"),
|
|
442
|
-
country: z.enum(
|
|
460
|
+
country: z.enum(COUNTRY_CODES, "St\xE1t partnera je povinn\xFD"),
|
|
443
461
|
cooperationReason: z.string().nullable()
|
|
444
462
|
});
|
|
445
463
|
const foSourceOfWealthInputSchema$1 = z.object({
|
|
@@ -447,7 +465,7 @@ const foSourceOfWealthInputSchema$1 = z.object({
|
|
|
447
465
|
incomeSourceOther: z.string().nullable(),
|
|
448
466
|
monthlyIncome: z.enum(MONTHLY_INCOME_RANGE, "M\u011Bs\xED\u010Dn\xED p\u0159\xEDjem je povinn\xFD"),
|
|
449
467
|
employer: z.string().min(1, "N\xE1zev zam\u011Bstnavatele je povinn\xFD").nullable(),
|
|
450
|
-
employerCountry: z.enum(
|
|
468
|
+
employerCountry: z.enum(COUNTRY_CODES, "St\xE1t zam\u011Bstnavatele je povinn\xFD").nullable()
|
|
451
469
|
});
|
|
452
470
|
const businessSourceOfWealthInputSchema$1 = z.object({
|
|
453
471
|
financialFundsSources: z.array(z.enum(FINANCIAL_FUNDS_SOURCE)).min(1, "Zdroj finan\u010Dn\xEDch prost\u0159edk\u016F je povinn\xFD"),
|
|
@@ -458,7 +476,7 @@ const businessSourceOfWealthInputSchema$1 = z.object({
|
|
|
458
476
|
"Obrat za posledn\xED 3 roky je povinn\xFD"
|
|
459
477
|
),
|
|
460
478
|
operatingCountries: z.array(z.enum(OPERATING_COUNTRY)).min(1, "Zem\u011B p\u016Fsoben\xED je povinn\xE1"),
|
|
461
|
-
operatingCountriesOther: z.array(z.enum(
|
|
479
|
+
operatingCountriesOther: z.array(z.enum(COUNTRY_CODES)).nullable(),
|
|
462
480
|
businessPartners: z.array(businessPartnerInputSchema$1).min(1, "Alespo\u0148 jeden partner je povinn\xFD").nullable(),
|
|
463
481
|
businessActivitiesNote: z.string().min(1, "Detailn\xED popis v\u0161ech podnikatelsk\xFDch \u010Dinnost\xED je povinn\xFD").nullable()
|
|
464
482
|
});
|
|
@@ -474,7 +492,7 @@ const createAmlInputSchema = z.object({
|
|
|
474
492
|
servicePurposes: z.array(z.enum(SERVICE_PURPOSE)).min(1, "\xDA\u010Del vyu\u017E\xEDv\xE1n\xED na\u0161ich slu\u017Eeb je povinn\xFD").optional(),
|
|
475
493
|
servicePurposesOther: z.string().optional(),
|
|
476
494
|
taxDomicile: z.enum(TAX_DOMICILE, { message: "Da\u0148ov\xE1 rezidence je povinn\xE1" }).optional(),
|
|
477
|
-
taxDomicileCountry: z.enum(
|
|
495
|
+
taxDomicileCountry: z.enum(COUNTRY_CODES).optional(),
|
|
478
496
|
transactionType: z.string().optional(),
|
|
479
497
|
transactionTypeExpiry: z.coerce.date().optional(),
|
|
480
498
|
isDistraint: z.boolean().default(false),
|
|
@@ -488,7 +506,7 @@ const createAmlInputSchema = z.object({
|
|
|
488
506
|
),
|
|
489
507
|
estTxsCountMonth: z.number().int().optional(),
|
|
490
508
|
tradingCountries: z.array(z.enum(TARGET_COUNTRY)).min(1, "Vyberte alespo\u0148 jednu c\xEDlovou zemi"),
|
|
491
|
-
tradingCountriesOther: z.array(z.enum(
|
|
509
|
+
tradingCountriesOther: z.array(z.enum(COUNTRY_CODES)).optional(),
|
|
492
510
|
tradingSide: z.enum(TRADING_SIDE, "Strana obchodov\xE1n\xED je povinn\xE1"),
|
|
493
511
|
acceptedAMLTermsAndConditions: z.boolean().refine((v) => v === true, {
|
|
494
512
|
message: "Mus\xEDte potvrdit souhlas s prohl\xE1\u0161en\xEDm",
|
|
@@ -505,7 +523,7 @@ const createAmlInputSchema = z.object({
|
|
|
505
523
|
personName: z.string(),
|
|
506
524
|
personRole: z.enum(PERSON_ROLE),
|
|
507
525
|
answer: z.enum(YES_NO_UNKNOWN),
|
|
508
|
-
country: z.enum(
|
|
526
|
+
country: z.enum(COUNTRY_CODES).nullable()
|
|
509
527
|
})
|
|
510
528
|
).optional()
|
|
511
529
|
});
|
|
@@ -528,7 +546,7 @@ const ownerInputSchema = z.object({
|
|
|
528
546
|
birthPlace: z.string().optional(),
|
|
529
547
|
personalId: z.string().min(1, "Rodn\xE9 \u010D\xEDslo je povinn\xE9"),
|
|
530
548
|
gender: z.enum(GENDER, "Pohlav\xED je povinn\xE9"),
|
|
531
|
-
citizenship: z.enum(
|
|
549
|
+
citizenship: z.enum(COUNTRY_CODES, "St\xE1tn\xED p\u0159\xEDslu\u0161nost je povinn\xE1"),
|
|
532
550
|
isPep: z.boolean({ error: "Politicky exponovan\xE1 osoba je povinn\xE1" }),
|
|
533
551
|
address: createAddressInputSchema,
|
|
534
552
|
sharePercentage: z.number({ error: "Pod\xEDl na spole\u010Dnosti je povinn\xFD" }).min(1, "Pod\xEDl na spole\u010Dnosti je povinn\xFD").max(100),
|
|
@@ -544,7 +562,7 @@ const legalRepresentativeInputSchema = z.object({
|
|
|
544
562
|
birthPlace: z.string().optional(),
|
|
545
563
|
personalId: z.string().min(1, "Rodn\xE9 \u010D\xEDslo je povinn\xE9"),
|
|
546
564
|
gender: z.enum(GENDER, "Pohlav\xED je povinn\xE9"),
|
|
547
|
-
citizenship: z.enum(
|
|
565
|
+
citizenship: z.enum(COUNTRY_CODES, "St\xE1tn\xED p\u0159\xEDslu\u0161nost je povinn\xE1"),
|
|
548
566
|
isPep: z.boolean({ error: "Politicky exponovan\xE1 osoba je povinn\xE1" }),
|
|
549
567
|
phone: z.string().optional(),
|
|
550
568
|
pin: z.string().optional(),
|
|
@@ -573,7 +591,7 @@ const partyCreateOutputSchema = z.object({
|
|
|
573
591
|
id: z.uuid(),
|
|
574
592
|
internalId: z.string().nullable(),
|
|
575
593
|
note: z.string().nullable(),
|
|
576
|
-
countryCode: z.enum(
|
|
594
|
+
countryCode: z.enum(COUNTRY_CODES).nullable(),
|
|
577
595
|
createdAt: z.iso.datetime().nullable(),
|
|
578
596
|
updatedAt: z.iso.datetime().nullable()
|
|
579
597
|
});
|
|
@@ -853,7 +871,7 @@ const partySchema = z.object({
|
|
|
853
871
|
id: z.uuid(),
|
|
854
872
|
internalId: z.string().optional(),
|
|
855
873
|
note: z.string().optional(),
|
|
856
|
-
countryCode: z.enum(
|
|
874
|
+
countryCode: z.enum(COUNTRY_CODES).optional()
|
|
857
875
|
});
|
|
858
876
|
const idDocumentInputSchema = z.object({
|
|
859
877
|
id: z.uuid().optional(),
|
|
@@ -875,13 +893,13 @@ const individualUpdateSchema = z.object({
|
|
|
875
893
|
phone: z.string().optional(),
|
|
876
894
|
birthDate: z.string().min(1, "Datum narozen\xED je povinn\xE9"),
|
|
877
895
|
birthPlace: z.string().optional(),
|
|
878
|
-
countryOfBirth: z.enum(
|
|
896
|
+
countryOfBirth: z.enum(COUNTRY_CODES).optional(),
|
|
879
897
|
personalId: z.string().optional(),
|
|
880
898
|
gender: z.enum(GENDER).optional(),
|
|
881
|
-
citizenship: z.enum(
|
|
882
|
-
citizenshipOther: z.enum(
|
|
899
|
+
citizenship: z.enum(COUNTRY_CODES).optional(),
|
|
900
|
+
citizenshipOther: z.enum(COUNTRY_CODES).optional(),
|
|
883
901
|
employer: z.string().optional(),
|
|
884
|
-
employerCountry: z.enum(
|
|
902
|
+
employerCountry: z.enum(COUNTRY_CODES).optional(),
|
|
885
903
|
registeredNumber: z.string().optional(),
|
|
886
904
|
isPep: z.boolean().optional(),
|
|
887
905
|
titleBefore: z.string().optional(),
|
|
@@ -892,7 +910,7 @@ const individualUpdateSchema = z.object({
|
|
|
892
910
|
deathNotification: z.coerce.date().optional(),
|
|
893
911
|
pin: z.string().optional(),
|
|
894
912
|
stayAbroad: z.boolean().optional(),
|
|
895
|
-
stayAbroadCountries: z.enum(
|
|
913
|
+
stayAbroadCountries: z.enum(COUNTRY_CODES).optional(),
|
|
896
914
|
identityDocuments: z.array(idDocumentInputSchema).optional()
|
|
897
915
|
});
|
|
898
916
|
const organizationUpdateSchema = z.object({
|
|
@@ -903,9 +921,9 @@ const organizationUpdateSchema = z.object({
|
|
|
903
921
|
email: z.email("Invalid email format").optional(),
|
|
904
922
|
phone: z.string().optional(),
|
|
905
923
|
registeredNumber: z.string().optional(),
|
|
906
|
-
registeredIn: z.enum(
|
|
907
|
-
operatesIn: z.enum(
|
|
908
|
-
presentIn: z.enum(
|
|
924
|
+
registeredIn: z.enum(COUNTRY_CODES).optional(),
|
|
925
|
+
operatesIn: z.enum(COUNTRY_CODES).optional(),
|
|
926
|
+
presentIn: z.enum(COUNTRY_CODES).optional(),
|
|
909
927
|
monthlyVolumeIn: z.number().optional(),
|
|
910
928
|
monthlyVolumeOut: z.number().optional(),
|
|
911
929
|
ownedBy: z.string().optional(),
|
|
@@ -944,13 +962,13 @@ const disponentIndividualSyncDataSchema = z.object({
|
|
|
944
962
|
phone: z.string().optional(),
|
|
945
963
|
birthDate: z.string().min(1, "Datum narozen\xED je povinn\xE9"),
|
|
946
964
|
birthPlace: z.string().optional(),
|
|
947
|
-
countryOfBirth: z.enum(
|
|
965
|
+
countryOfBirth: z.enum(COUNTRY_CODES).optional(),
|
|
948
966
|
personalId: z.string(),
|
|
949
967
|
gender: z.enum(GENDER),
|
|
950
|
-
citizenship: z.enum(
|
|
951
|
-
citizenshipOther: z.enum(
|
|
968
|
+
citizenship: z.enum(COUNTRY_CODES),
|
|
969
|
+
citizenshipOther: z.enum(COUNTRY_CODES).optional(),
|
|
952
970
|
employer: z.string().optional(),
|
|
953
|
-
employerCountry: z.enum(
|
|
971
|
+
employerCountry: z.enum(COUNTRY_CODES).optional(),
|
|
954
972
|
registeredNumber: z.string().optional(),
|
|
955
973
|
isPep: z.boolean(),
|
|
956
974
|
titleBefore: z.string().optional(),
|
|
@@ -961,7 +979,7 @@ const disponentIndividualSyncDataSchema = z.object({
|
|
|
961
979
|
deathNotification: z.coerce.date().optional(),
|
|
962
980
|
pin: z.string().optional(),
|
|
963
981
|
stayAbroad: z.boolean().optional(),
|
|
964
|
-
stayAbroadCountries: z.enum(
|
|
982
|
+
stayAbroadCountries: z.enum(COUNTRY_CODES).optional(),
|
|
965
983
|
identityDocuments: z.array(idDocumentInputSchema).optional()
|
|
966
984
|
});
|
|
967
985
|
const disponentSyncSchema = z.object({
|
|
@@ -981,12 +999,12 @@ const syncAddressInputSchema = z.object({
|
|
|
981
999
|
zipCode: z.string().max(20),
|
|
982
1000
|
district: z.string().max(255),
|
|
983
1001
|
region: z.string().max(255),
|
|
984
|
-
countryCode: z.enum(
|
|
1002
|
+
countryCode: z.enum(COUNTRY_CODES),
|
|
985
1003
|
ruianCode: z.string().optional()
|
|
986
1004
|
});
|
|
987
1005
|
const businessPartnerInputSchema = z.object({
|
|
988
1006
|
name: z.string().min(1, "N\xE1zev partnera je povinn\xFD"),
|
|
989
|
-
country: z.enum(
|
|
1007
|
+
country: z.enum(COUNTRY_CODES, "St\xE1t partnera je povinn\xFD"),
|
|
990
1008
|
cooperationReason: z.string().nullable()
|
|
991
1009
|
});
|
|
992
1010
|
const foSourceOfWealthInputSchema = z.object({
|
|
@@ -994,7 +1012,7 @@ const foSourceOfWealthInputSchema = z.object({
|
|
|
994
1012
|
incomeSourceOther: z.string().nullable(),
|
|
995
1013
|
monthlyIncome: z.enum(MONTHLY_INCOME_RANGE, "M\u011Bs\xED\u010Dn\xED p\u0159\xEDjem je povinn\xFD"),
|
|
996
1014
|
employer: z.string().min(1, "N\xE1zev zam\u011Bstnavatele je povinn\xFD").nullable(),
|
|
997
|
-
employerCountry: z.enum(
|
|
1015
|
+
employerCountry: z.enum(COUNTRY_CODES, "St\xE1t zam\u011Bstnavatele je povinn\xFD").nullable()
|
|
998
1016
|
});
|
|
999
1017
|
const businessSourceOfWealthInputSchema = z.object({
|
|
1000
1018
|
financialFundsSources: z.array(z.enum(FINANCIAL_FUNDS_SOURCE)).min(1, "Zdroj finan\u010Dn\xEDch prost\u0159edk\u016F je povinn\xFD"),
|
|
@@ -1005,7 +1023,7 @@ const businessSourceOfWealthInputSchema = z.object({
|
|
|
1005
1023
|
"Obrat za posledn\xED 3 roky je povinn\xFD"
|
|
1006
1024
|
),
|
|
1007
1025
|
operatingCountries: z.array(z.enum(OPERATING_COUNTRY)).min(1, "Zem\u011B p\u016Fsoben\xED je povinn\xE1"),
|
|
1008
|
-
operatingCountriesOther: z.array(z.enum(
|
|
1026
|
+
operatingCountriesOther: z.array(z.enum(COUNTRY_CODES)).nullable(),
|
|
1009
1027
|
businessPartners: z.array(businessPartnerInputSchema).min(1, "Alespo\u0148 jeden partner je povinn\xFD").nullable(),
|
|
1010
1028
|
businessActivitiesNote: z.string().min(1, "Detailn\xED popis v\u0161ech podnikatelsk\xFDch \u010Dinnost\xED je povinn\xFD").nullable()
|
|
1011
1029
|
});
|
|
@@ -1020,7 +1038,7 @@ const updateAmlInputSchema = z.object({
|
|
|
1020
1038
|
servicePurposes: z.array(z.enum(SERVICE_PURPOSE)).optional(),
|
|
1021
1039
|
servicePurposesOther: z.string().optional(),
|
|
1022
1040
|
taxDomicile: z.enum(TAX_DOMICILE).optional(),
|
|
1023
|
-
taxDomicileCountry: z.enum(
|
|
1041
|
+
taxDomicileCountry: z.enum(COUNTRY_CODES).optional(),
|
|
1024
1042
|
transactionType: z.string().optional(),
|
|
1025
1043
|
transactionTypeExpiry: z.coerce.date().optional(),
|
|
1026
1044
|
isDistraint: z.boolean().optional(),
|
|
@@ -1028,7 +1046,7 @@ const updateAmlInputSchema = z.object({
|
|
|
1028
1046
|
estTxsVolumeYear: z.enum(EST_TXS_VOLUME_YEAR),
|
|
1029
1047
|
estTxsCountMonth: z.number().int().optional(),
|
|
1030
1048
|
tradingCountries: z.array(z.enum(TARGET_COUNTRY)).min(1),
|
|
1031
|
-
tradingCountriesOther: z.array(z.enum(
|
|
1049
|
+
tradingCountriesOther: z.array(z.enum(COUNTRY_CODES)).optional(),
|
|
1032
1050
|
tradingSide: z.enum(TRADING_SIDE),
|
|
1033
1051
|
acceptedAMLTermsAndConditions: z.boolean(),
|
|
1034
1052
|
signatureMethod: z.enum(SIGNATURE_METHOD).optional(),
|
|
@@ -1042,7 +1060,7 @@ const updateAmlInputSchema = z.object({
|
|
|
1042
1060
|
personName: z.string(),
|
|
1043
1061
|
personRole: z.enum(PERSON_ROLE),
|
|
1044
1062
|
answer: z.enum(YES_NO_UNKNOWN),
|
|
1045
|
-
country: z.enum(
|
|
1063
|
+
country: z.enum(COUNTRY_CODES).nullable()
|
|
1046
1064
|
})
|
|
1047
1065
|
).optional()
|
|
1048
1066
|
});
|
|
@@ -1066,7 +1084,7 @@ const ownerSyncSchema = z.object({
|
|
|
1066
1084
|
birthPlace: z.string().optional(),
|
|
1067
1085
|
personalId: z.string(),
|
|
1068
1086
|
gender: z.enum(GENDER),
|
|
1069
|
-
citizenship: z.enum(
|
|
1087
|
+
citizenship: z.enum(COUNTRY_CODES),
|
|
1070
1088
|
isPep: z.boolean(),
|
|
1071
1089
|
address: syncAddressInputSchema,
|
|
1072
1090
|
sharePercentage: z.number().max(100),
|
|
@@ -1083,7 +1101,7 @@ const legalRepresentativeSyncSchema = z.object({
|
|
|
1083
1101
|
birthPlace: z.string().optional(),
|
|
1084
1102
|
personalId: z.string(),
|
|
1085
1103
|
gender: z.enum(GENDER),
|
|
1086
|
-
citizenship: z.enum(
|
|
1104
|
+
citizenship: z.enum(COUNTRY_CODES),
|
|
1087
1105
|
isPep: z.boolean(),
|
|
1088
1106
|
phone: z.string().optional(),
|
|
1089
1107
|
pin: z.string().optional(),
|
|
@@ -1111,7 +1129,7 @@ const updatePartyOuputSchema = z.object({
|
|
|
1111
1129
|
partyType: z.enum(PARTY_TYPE),
|
|
1112
1130
|
language: z.enum(LANGUAGE_CODES),
|
|
1113
1131
|
note: z.string().nullable(),
|
|
1114
|
-
countryCode: z.enum(
|
|
1132
|
+
countryCode: z.enum(COUNTRY_CODES).nullable()
|
|
1115
1133
|
});
|
|
1116
1134
|
const responseBodySchema$4 = z.object({
|
|
1117
1135
|
message: z.string(),
|
|
@@ -1268,7 +1286,7 @@ const idDocumentCreateInputSchema = z.object({
|
|
|
1268
1286
|
issueDate: z.coerce.date().optional(),
|
|
1269
1287
|
expirationDate: z.coerce.date().optional(),
|
|
1270
1288
|
issuer: z.string().optional(),
|
|
1271
|
-
countryOfIssue: z.enum(
|
|
1289
|
+
countryOfIssue: z.enum(COUNTRY_CODES).optional(),
|
|
1272
1290
|
idDocStatus: z.enum(ID_DOC_STATUS).optional()
|
|
1273
1291
|
});
|
|
1274
1292
|
const idDocumentMultipartSchema = z.object({
|
|
@@ -1298,7 +1316,7 @@ const idDocumentOutputSchema = z.object({
|
|
|
1298
1316
|
issueDate: z.iso.datetime().nullable(),
|
|
1299
1317
|
expirationDate: z.iso.datetime().nullable(),
|
|
1300
1318
|
issuer: z.string().nullable(),
|
|
1301
|
-
countryOfIssue: z.enum(
|
|
1319
|
+
countryOfIssue: z.enum(COUNTRY_CODES).nullable(),
|
|
1302
1320
|
frontImageUri: z.string().nullable(),
|
|
1303
1321
|
backImageUri: z.string().nullable(),
|
|
1304
1322
|
idDocStatus: z.enum(ID_DOC_STATUS).nullable()
|
|
@@ -1424,7 +1442,7 @@ const partyBaseOutputSchema = z.object({
|
|
|
1424
1442
|
id: z.uuid(),
|
|
1425
1443
|
internalId: z.string().nullable(),
|
|
1426
1444
|
note: z.string().nullable(),
|
|
1427
|
-
countryCode: z.enum(
|
|
1445
|
+
countryCode: z.enum(COUNTRY_CODES).nullable(),
|
|
1428
1446
|
createdAt: z.iso.datetime().nullable(),
|
|
1429
1447
|
updatedAt: z.iso.datetime().nullable(),
|
|
1430
1448
|
deletedAt: z.iso.datetime().nullable(),
|
|
@@ -1441,13 +1459,13 @@ const individualOutputSchema = z.object({
|
|
|
1441
1459
|
phone: z.string().nullable(),
|
|
1442
1460
|
birthDate: z.string(),
|
|
1443
1461
|
birthPlace: z.string().nullable(),
|
|
1444
|
-
countryOfBirth: z.enum(
|
|
1462
|
+
countryOfBirth: z.enum(COUNTRY_CODES).nullable(),
|
|
1445
1463
|
personalId: z.string(),
|
|
1446
1464
|
gender: z.enum(GENDER),
|
|
1447
|
-
citizenship: z.enum(
|
|
1448
|
-
citizenshipOther: z.enum(
|
|
1465
|
+
citizenship: z.enum(COUNTRY_CODES),
|
|
1466
|
+
citizenshipOther: z.enum(COUNTRY_CODES).nullable(),
|
|
1449
1467
|
employer: z.string().nullable(),
|
|
1450
|
-
employerCountry: z.enum(
|
|
1468
|
+
employerCountry: z.enum(COUNTRY_CODES).nullable(),
|
|
1451
1469
|
registeredNumber: z.string().nullable(),
|
|
1452
1470
|
isPep: z.boolean(),
|
|
1453
1471
|
titleBefore: z.string().nullable(),
|
|
@@ -1458,7 +1476,7 @@ const individualOutputSchema = z.object({
|
|
|
1458
1476
|
deathNotification: z.iso.datetime().nullable(),
|
|
1459
1477
|
pin: z.string().nullable(),
|
|
1460
1478
|
stayAbroad: z.boolean().nullable(),
|
|
1461
|
-
stayAbroadCountries: z.enum(
|
|
1479
|
+
stayAbroadCountries: z.enum(COUNTRY_CODES).nullable(),
|
|
1462
1480
|
createdAt: z.iso.datetime().nullable(),
|
|
1463
1481
|
updatedAt: z.iso.datetime().nullable(),
|
|
1464
1482
|
identityDocuments: z.array(idDocumentOutputSchema).nullable()
|
|
@@ -1471,9 +1489,9 @@ const createOrganizationOutputSchema = z.object({
|
|
|
1471
1489
|
email: z.string().nullable(),
|
|
1472
1490
|
phone: z.string().nullable(),
|
|
1473
1491
|
registeredNumber: z.string(),
|
|
1474
|
-
registeredIn: z.enum(
|
|
1475
|
-
operatesIn: z.enum(
|
|
1476
|
-
presentIn: z.enum(
|
|
1492
|
+
registeredIn: z.enum(COUNTRY_CODES),
|
|
1493
|
+
operatesIn: z.enum(COUNTRY_CODES),
|
|
1494
|
+
presentIn: z.enum(COUNTRY_CODES),
|
|
1477
1495
|
monthlyVolumeIn: z.number(),
|
|
1478
1496
|
monthlyVolumeOut: z.number(),
|
|
1479
1497
|
ownedBy: z.string(),
|
|
@@ -1499,9 +1517,9 @@ const bankAccountOutputSchema = z.object({
|
|
|
1499
1517
|
internalId: z.string().nullable(),
|
|
1500
1518
|
holderName: z.string(),
|
|
1501
1519
|
number: z.string().nullable(),
|
|
1502
|
-
bankCode: z.
|
|
1503
|
-
currency: z.
|
|
1504
|
-
countryCode: z.
|
|
1520
|
+
bankCode: z.enum(BANK_CODES).nullable(),
|
|
1521
|
+
currency: z.enum(CURRENCY_CODES),
|
|
1522
|
+
countryCode: z.enum(COUNTRY_CODES),
|
|
1505
1523
|
iban: z.string().nullable(),
|
|
1506
1524
|
address: z.string().nullable(),
|
|
1507
1525
|
swiftBic: z.string().nullable(),
|
|
@@ -1531,7 +1549,7 @@ const createAddressOutputSchema = z.object({
|
|
|
1531
1549
|
zipCode: z.string(),
|
|
1532
1550
|
district: z.string().nullable(),
|
|
1533
1551
|
region: z.string().nullable(),
|
|
1534
|
-
countryCode: z.enum(
|
|
1552
|
+
countryCode: z.enum(COUNTRY_CODES),
|
|
1535
1553
|
ruianCode: z.string().nullable(),
|
|
1536
1554
|
createdAt: z.iso.datetime().nullable(),
|
|
1537
1555
|
updatedAt: z.iso.datetime().nullable()
|
|
@@ -1554,7 +1572,7 @@ const businessSourceOfWealthOutputSchema = z.object({
|
|
|
1554
1572
|
mainBusinessSubjects: z.array(z.enum(CZ_TRADE_LICENSE_CODES)),
|
|
1555
1573
|
companyTurnover: z.enum(COMPANY_TURNOVER_RANGE),
|
|
1556
1574
|
operatingCountries: z.array(z.enum(OPERATING_COUNTRY)),
|
|
1557
|
-
operatingCountriesOther: z.array(z.enum(
|
|
1575
|
+
operatingCountriesOther: z.array(z.enum(COUNTRY_CODES)).nullable(),
|
|
1558
1576
|
businessPartners: z.array(businessPartnerOutputSchema).nullable(),
|
|
1559
1577
|
businessActivitiesNote: z.string().nullable()
|
|
1560
1578
|
});
|
|
@@ -1572,7 +1590,7 @@ const createAmlOutputSchema = z.object({
|
|
|
1572
1590
|
servicePurposes: z.array(z.enum(SERVICE_PURPOSE)).nullable(),
|
|
1573
1591
|
servicePurposesOther: z.string().nullable(),
|
|
1574
1592
|
taxDomicile: z.enum(TAX_DOMICILE).nullable(),
|
|
1575
|
-
taxDomicileCountry: z.enum(
|
|
1593
|
+
taxDomicileCountry: z.enum(COUNTRY_CODES).nullable(),
|
|
1576
1594
|
transactionType: z.string().nullable(),
|
|
1577
1595
|
transactionTypeExpiry: z.iso.datetime().nullable(),
|
|
1578
1596
|
isDistraint: z.boolean(),
|
|
@@ -1580,7 +1598,7 @@ const createAmlOutputSchema = z.object({
|
|
|
1580
1598
|
estTxsVolumeYear: z.enum(EST_TXS_VOLUME_YEAR),
|
|
1581
1599
|
estTxsCountMonth: z.number().int().nullable(),
|
|
1582
1600
|
tradingCountries: z.array(z.enum(TARGET_COUNTRY)),
|
|
1583
|
-
tradingCountriesOther: z.array(z.enum(
|
|
1601
|
+
tradingCountriesOther: z.array(z.enum(COUNTRY_CODES)).nullable(),
|
|
1584
1602
|
tradingSide: z.enum(TRADING_SIDE),
|
|
1585
1603
|
acceptedAMLTermsAndConditions: z.boolean(),
|
|
1586
1604
|
signatureMethod: z.enum(SIGNATURE_METHOD).nullable(),
|
|
@@ -1594,7 +1612,7 @@ const createAmlOutputSchema = z.object({
|
|
|
1594
1612
|
personName: z.string(),
|
|
1595
1613
|
personRole: z.enum(PERSON_ROLE),
|
|
1596
1614
|
answer: z.enum(YES_NO_UNKNOWN),
|
|
1597
|
-
country: z.enum(
|
|
1615
|
+
country: z.enum(COUNTRY_CODES).nullable()
|
|
1598
1616
|
})
|
|
1599
1617
|
).nullable(),
|
|
1600
1618
|
createdAt: z.iso.datetime().nullable(),
|
|
@@ -1611,7 +1629,7 @@ const ownerOutputSchema = z.object({
|
|
|
1611
1629
|
birthPlace: z.string().nullable(),
|
|
1612
1630
|
personalId: z.string(),
|
|
1613
1631
|
gender: z.enum(GENDER),
|
|
1614
|
-
citizenship: z.enum(
|
|
1632
|
+
citizenship: z.enum(COUNTRY_CODES),
|
|
1615
1633
|
isPep: z.boolean(),
|
|
1616
1634
|
sharePercentage: z.number().nullable(),
|
|
1617
1635
|
shareEstablishedAt: z.string().nullable(),
|
|
@@ -1628,12 +1646,12 @@ const legalRepresentativeOutputSchema = z.object({
|
|
|
1628
1646
|
birthPlace: z.string().nullable(),
|
|
1629
1647
|
personalId: z.string(),
|
|
1630
1648
|
gender: z.enum(GENDER),
|
|
1631
|
-
citizenship: z.enum(
|
|
1649
|
+
citizenship: z.enum(COUNTRY_CODES),
|
|
1632
1650
|
isPep: z.boolean(),
|
|
1633
1651
|
phone: z.string().nullable(),
|
|
1634
1652
|
pin: z.string().nullable(),
|
|
1635
1653
|
employer: z.string().nullable(),
|
|
1636
|
-
employerCountry: z.enum(
|
|
1654
|
+
employerCountry: z.enum(COUNTRY_CODES).nullable(),
|
|
1637
1655
|
dateOfEstablishment: z.string().nullable(),
|
|
1638
1656
|
address: createAddressOutputSchema.nullable()
|
|
1639
1657
|
});
|
|
@@ -1766,23 +1784,6 @@ new OpenAPIHono().openapi(
|
|
|
1766
1784
|
}
|
|
1767
1785
|
);
|
|
1768
1786
|
|
|
1769
|
-
const XIdempotencyKeyHeaderSchema = z.string().openapi({
|
|
1770
|
-
description: "Unique identifier header to ensure the request is processed only once.",
|
|
1771
|
-
example: "4ac15c22-2bd3-426f-b915-bfd5febdb7df"
|
|
1772
|
-
});
|
|
1773
|
-
const XSignatureHeaderSchema = z.string().openapi({
|
|
1774
|
-
description: "Payload signature header to verify request body integrity.",
|
|
1775
|
-
example: "FIXAxHO6QqH3M7t4MatM8U6l/nIqWj7jIEW2U6/771MGUorSywy+GmKIG3B1mxT1jR7qPtBHQ5YSO8O53iCvOh6kIhbGXtVe/3C61dsEykLbmntV3nF4DY8/HyfF8a6c2Asc5bvgHrhosGi3s/ouoNowMpsckyq66We8H5gRbXlqJm4Bl1zWWQah4aQLX548L8DLx5+EIgArNMVVG8ryCES99aovJBKrQQMpQLwss1sSFuUZ1kdBCodtvxgTOXOugnZ1UNCmUNFXryQ6bn7wY7Punml/rwR/zTQ9j4SX07iFeQC5rgm9/zi29DBluegu+b8/G8oXrf6L4hugbMEKJfLRfKjNHCrjCooKtInoYxwNEfJyJ9mhqdBoeIBca9zgPpewdbwFLXVV82TYR+xZiywDcHKQ62IzQp07NOMCl4xArSJ3vIWUftSYpLIwomyjQEbY27oGiubUF4krEKgHnMYalCn0ruYOwFik2Pa6FEfIZo0TSXDC24UHQb5mJNPYpv2hny7U5CZPmBvjaRGMVnE+WgRUT19cwqlSL3pWAfeSn1Wro7lYBp/PmlRPgYIxl9GJwNlQ0G+NzP9cMSJbmI5fwErDNgJAaPaMwZbJ3y8ikmbBkkXNPKvQrWVGCJ4nP+/f8yYzMZq272EFx984pSoo2yAeBJnrxbW+AlZxyIo="
|
|
1776
|
-
});
|
|
1777
|
-
const XSignatureKeyHeaderSchema = z.string().openapi({
|
|
1778
|
-
description: "Signature key identifier header to specify which key was used for payload signing.",
|
|
1779
|
-
example: "ixtal"
|
|
1780
|
-
});
|
|
1781
|
-
const ALLOWED_ID_DOCUMENTS_FILTERS = {
|
|
1782
|
-
PARTY_ID: "filterIdDocumentPartyId",
|
|
1783
|
-
ISSUER: "filterIdDocumentIssuer"
|
|
1784
|
-
};
|
|
1785
|
-
|
|
1786
1787
|
const idDocumentsListOutputSchema = z.object({
|
|
1787
1788
|
totalCount: z.number(),
|
|
1788
1789
|
idDocuments: z.array(idDocumentOutputSchema)
|
|
@@ -1887,7 +1888,7 @@ const idDocumentUpdateInputSchema = z.object({
|
|
|
1887
1888
|
issueDate: z.coerce.date().optional(),
|
|
1888
1889
|
expirationDate: z.coerce.date().optional(),
|
|
1889
1890
|
issuer: z.string().optional(),
|
|
1890
|
-
countryOfIssue: z.enum(
|
|
1891
|
+
countryOfIssue: z.enum(COUNTRY_CODES).optional(),
|
|
1891
1892
|
frontImageUri: z.string().optional(),
|
|
1892
1893
|
backImageUri: z.string().optional(),
|
|
1893
1894
|
idDocStatus: z.enum(ID_DOC_STATUS).optional()
|