@keetanetwork/anchor 0.0.13 → 0.0.15

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.
Files changed (87) hide show
  1. package/lib/certificates.d.ts +83 -21
  2. package/lib/certificates.d.ts.map +1 -1
  3. package/lib/certificates.generated.d.ts +3 -0
  4. package/lib/certificates.generated.d.ts.map +1 -0
  5. package/lib/certificates.generated.js +120 -0
  6. package/lib/certificates.generated.js.map +1 -0
  7. package/lib/certificates.js +508 -117
  8. package/lib/certificates.js.map +1 -1
  9. package/lib/http-server.d.ts +2 -1
  10. package/lib/http-server.d.ts.map +1 -1
  11. package/lib/http-server.js +5 -5
  12. package/lib/http-server.js.map +1 -1
  13. package/lib/log/index.d.ts +6 -57
  14. package/lib/log/index.d.ts.map +1 -1
  15. package/lib/log/index.js +5 -205
  16. package/lib/log/index.js.map +1 -1
  17. package/lib/log/target_console.d.ts +3 -11
  18. package/lib/log/target_console.d.ts.map +1 -1
  19. package/lib/log/target_console.js +3 -42
  20. package/lib/log/target_console.js.map +1 -1
  21. package/lib/resolver.d.ts +2 -1
  22. package/lib/resolver.d.ts.map +1 -1
  23. package/lib/resolver.js +22 -22
  24. package/lib/resolver.js.map +1 -1
  25. package/lib/utils/asn1.d.ts +10 -1
  26. package/lib/utils/asn1.d.ts.map +1 -1
  27. package/lib/utils/asn1.js +1413 -0
  28. package/lib/utils/asn1.js.map +1 -1
  29. package/lib/utils/buffer.d.ts +3 -0
  30. package/lib/utils/buffer.d.ts.map +1 -1
  31. package/lib/utils/buffer.js +32 -0
  32. package/lib/utils/buffer.js.map +1 -1
  33. package/lib/utils/external.d.ts +43 -0
  34. package/lib/utils/external.d.ts.map +1 -0
  35. package/lib/utils/external.js +115 -0
  36. package/lib/utils/external.js.map +1 -0
  37. package/lib/utils/guards.d.ts +14 -0
  38. package/lib/utils/guards.d.ts.map +1 -0
  39. package/lib/utils/guards.js +31 -0
  40. package/lib/utils/guards.js.map +1 -0
  41. package/lib/utils/index.d.ts +3 -1
  42. package/lib/utils/index.d.ts.map +1 -1
  43. package/lib/utils/index.js +3 -1
  44. package/lib/utils/index.js.map +1 -1
  45. package/lib/utils/oid.d.ts +7 -0
  46. package/lib/utils/oid.d.ts.map +1 -0
  47. package/lib/utils/oid.js +22 -0
  48. package/lib/utils/oid.js.map +1 -0
  49. package/lib/utils/signing.d.ts.map +1 -1
  50. package/lib/utils/signing.js +26 -2
  51. package/lib/utils/signing.js.map +1 -1
  52. package/npm-shrinkwrap.json +76 -216
  53. package/package.json +2 -2
  54. package/services/asset-movement/common.js +7 -7
  55. package/services/fx/server.js +1 -1
  56. package/services/fx/server.js.map +1 -1
  57. package/services/kyc/client.d.ts.map +1 -1
  58. package/services/kyc/client.js +1 -8
  59. package/services/kyc/client.js.map +1 -1
  60. package/services/kyc/common.d.ts +39 -3
  61. package/services/kyc/common.d.ts.map +1 -1
  62. package/services/kyc/common.generated.d.ts +5 -0
  63. package/services/kyc/common.generated.d.ts.map +1 -0
  64. package/services/kyc/common.generated.js +241 -0
  65. package/services/kyc/common.generated.js.map +1 -0
  66. package/services/kyc/common.js +68 -1
  67. package/services/kyc/common.js.map +1 -1
  68. package/services/kyc/iso20022.generated.d.ts +336 -0
  69. package/services/kyc/iso20022.generated.d.ts.map +1 -0
  70. package/services/kyc/iso20022.generated.js +287 -0
  71. package/services/kyc/iso20022.generated.js.map +1 -0
  72. package/services/kyc/oids.generated.d.ts +104 -0
  73. package/services/kyc/oids.generated.d.ts.map +1 -0
  74. package/services/kyc/oids.generated.js +163 -0
  75. package/services/kyc/oids.generated.js.map +1 -0
  76. package/services/kyc/server.d.ts +141 -0
  77. package/services/kyc/server.d.ts.map +1 -0
  78. package/services/kyc/server.js +183 -0
  79. package/services/kyc/server.js.map +1 -0
  80. package/services/kyc/utils/generate-kyc-schema.d.ts +3 -0
  81. package/services/kyc/utils/generate-kyc-schema.d.ts.map +1 -0
  82. package/services/kyc/utils/generate-kyc-schema.js +1342 -0
  83. package/services/kyc/utils/generate-kyc-schema.js.map +1 -0
  84. package/lib/log/common.d.ts +0 -35
  85. package/lib/log/common.d.ts.map +0 -1
  86. package/lib/log/common.js +0 -19
  87. package/lib/log/common.js.map +0 -1
@@ -0,0 +1,241 @@
1
+ import * as __typia_transform__assertGuard from "typia/lib/internal/_assertGuard.js";
2
+ import { createAssert } from 'typia';
3
+ export const assertCreateVerificationRequest = (() => { const _iv2 = new Set(["840", "533", "356", "578", "108", "132", "116", "124", "136", "152", "156", "170", "174", "554", "188", "192", "203", "208", "262", "214", "818", "222", "232", "748", "238", "242", "270", "292", "320", "826", "324", "328", "332", "340", "344", "348", "352", "360", "364", "368", "376", "388", "392", "400", "398", "404", "408", "410", "414", "417", "418", "422", "426", "710", "430", "434", "756", "446", "807", "454", "458", "462", "480", "484", "498", "496", "504", "104", "516", "524", "558", "566", "512", "586", "598", "600", "604", "608", "634", "643", "646", "654", "882", "682", "690", "694", "702", "706", "728", "144", "752", "760", "834", "764", "776", "780", "788", "800", "784", "858", "860", "548", "704", "AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BQ", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "CV", "KH", "CM", "CA", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CW", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "SZ", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MK", "MP", "NO", "OM", "PK", "PW", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SX", "SK", "SI", "SB", "SO", "ZA", "GS", "SS", "ES", "LK", "SD", "SR", "SJ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "GB", "US", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW", "004", "248", "008", "012", "016", "020", "024", "660", "010", "028", "032", "051", "036", "040", "031", "044", "048", "050", "052", "112", "056", "084", "204", "060", "064", "068", "535", "070", "072", "074", "076", "086", "096", "100", "854", "120", "140", "148", "162", "166", "178", "180", "184", "384", "191", "531", "196", "212", "218", "226", "233", "231", "234", "246", "250", "254", "258", "260", "266", "268", "276", "288", "300", "304", "308", "312", "316", "831", "624", "334", "336", "372", "833", "380", "832", "296", "428", "438", "440", "442", "450", "466", "470", "584", "474", "478", "175", "583", "492", "499", "500", "508", "520", "528", "540", "562", "570", "574", "580", "585", "591", "612", "616", "620", "630", "638", "642", "652", "659", "662", "663", "666", "670", "674", "678", "686", "688", "534", "703", "705", "090", "239", "724", "729", "740", "744", "158", "762", "626", "768", "772", "792", "795", "796", "798", "804", "581", "862", "092", "850", "876", "732", "887", "894", "716"]); const _iv3 = new Set(["AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BQ", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "CV", "KH", "CM", "CA", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CW", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "SZ", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MK", "MP", "NO", "OM", "PK", "PW", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SX", "SK", "SI", "SB", "SO", "ZA", "GS", "SS", "ES", "LK", "SD", "SR", "SJ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "GB", "US", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW"]); const _iv4 = new Set(["BTN", "MKD", "SLE", "CHE", "AFG", "ALA", "ALB", "DZA", "ASM", "AND", "AGO", "AIA", "ATA", "ATG", "ARG", "ARM", "ABW", "AUS", "AUT", "AZE", "BHS", "BHR", "BGD", "BRB", "BLR", "BEL", "BLZ", "BEN", "BMU", "BOL", "BES", "BIH", "BWA", "BVT", "BRA", "IOT", "BRN", "BGR", "BFA", "BDI", "CPV", "KHM", "CMR", "CAN", "CYM", "CAF", "TCD", "CHL", "CHN", "CXR", "CCK", "COL", "COM", "COG", "COD", "COK", "CRI", "CIV", "HRV", "CUB", "CUW", "CYP", "CZE", "DNK", "DJI", "DMA", "DOM", "ECU", "EGY", "SLV", "GNQ", "ERI", "EST", "SWZ", "ETH", "FLK", "FRO", "FJI", "FIN", "FRA", "GUF", "PYF", "ATF", "GAB", "GMB", "GEO", "DEU", "GHA", "GIB", "GRC", "GRL", "GRD", "GLP", "GUM", "GTM", "GGY", "GIN", "GNB", "GUY", "HTI", "HMD", "VAT", "HND", "HKG", "HUN", "ISL", "IND", "IDN", "IRN", "IRQ", "IRL", "IMN", "ISR", "ITA", "JAM", "JPN", "JEY", "JOR", "KAZ", "KEN", "KIR", "PRK", "KOR", "KWT", "KGZ", "LAO", "LVA", "LBN", "LSO", "LBR", "LBY", "LIE", "LTU", "LUX", "MAC", "MDG", "MWI", "MYS", "MDV", "MLI", "MLT", "MHL", "MTQ", "MRT", "MUS", "MYT", "MEX", "FSM", "MDA", "MCO", "MNG", "MNE", "MSR", "MAR", "MOZ", "MMR", "NAM", "NRU", "NPL", "NLD", "NCL", "NZL", "NIC", "NER", "NGA", "NIU", "NFK", "MNP", "NOR", "OMN", "PAK", "PLW", "PAN", "PNG", "PRY", "PER", "PHL", "PCN", "POL", "PRT", "PRI", "QAT", "REU", "ROU", "RUS", "RWA", "BLM", "SHN", "KNA", "LCA", "MAF", "SPM", "VCT", "WSM", "SMR", "STP", "SAU", "SEN", "SRB", "SYC", "SGP", "SXM", "SVK", "SVN", "SLB", "SOM", "ZAF", "SGS", "SSD", "ESP", "LKA", "SDN", "SUR", "SJM", "SWE", "SYR", "TWN", "TJK", "TZA", "THA", "TLS", "TGO", "TKL", "TON", "TTO", "TUN", "TUR", "TKM", "TCA", "TUV", "UGA", "UKR", "ARE", "GBR", "USA", "UMI", "URY", "UZB", "VUT", "VEN", "VNM", "VGB", "VIR", "WLF", "ESH", "YEM", "ZMB", "ZWE"]); const _iv5 = new Set(["840", "533", "356", "578", "108", "132", "116", "124", "136", "152", "156", "170", "174", "554", "188", "192", "203", "208", "262", "214", "818", "222", "232", "748", "238", "242", "270", "292", "320", "826", "324", "328", "332", "340", "344", "348", "352", "360", "364", "368", "376", "388", "392", "400", "398", "404", "408", "410", "414", "417", "418", "422", "426", "710", "430", "434", "756", "446", "807", "454", "458", "462", "480", "484", "498", "496", "504", "104", "516", "524", "558", "566", "512", "586", "598", "600", "604", "608", "634", "643", "646", "654", "882", "682", "690", "694", "702", "706", "728", "144", "752", "760", "834", "764", "776", "780", "788", "800", "784", "858", "860", "548", "704", "004", "248", "008", "012", "016", "020", "024", "660", "010", "028", "032", "051", "036", "040", "031", "044", "048", "050", "052", "112", "056", "084", "204", "060", "064", "068", "535", "070", "072", "074", "076", "086", "096", "100", "854", "120", "140", "148", "162", "166", "178", "180", "184", "384", "191", "531", "196", "212", "218", "226", "233", "231", "234", "246", "250", "254", "258", "260", "266", "268", "276", "288", "300", "304", "308", "312", "316", "831", "624", "334", "336", "372", "833", "380", "832", "296", "428", "438", "440", "442", "450", "466", "470", "584", "474", "478", "175", "583", "492", "499", "500", "508", "520", "528", "540", "562", "570", "574", "580", "585", "591", "612", "616", "620", "630", "638", "642", "652", "659", "662", "663", "666", "670", "674", "678", "686", "688", "534", "703", "705", "090", "239", "724", "729", "740", "744", "158", "762", "626", "768", "772", "792", "795", "796", "798", "804", "581", "862", "092", "850", "876", "732", "887", "894", "716"]); const _av7 = new Set(["840", "533", "356", "578", "108", "132", "116", "124", "136", "152", "156", "170", "174", "554", "188", "192", "203", "208", "262", "214", "818", "222", "232", "748", "238", "242", "270", "292", "320", "826", "324", "328", "332", "340", "344", "348", "352", "360", "364", "368", "376", "388", "392", "400", "398", "404", "408", "410", "414", "417", "418", "422", "426", "710", "430", "434", "756", "446", "807", "454", "458", "462", "480", "484", "498", "496", "504", "104", "516", "524", "558", "566", "512", "586", "598", "600", "604", "608", "634", "643", "646", "654", "882", "682", "690", "694", "702", "706", "728", "144", "752", "760", "834", "764", "776", "780", "788", "800", "784", "858", "860", "548", "704", "AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BQ", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "CV", "KH", "CM", "CA", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CW", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "SZ", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MK", "MP", "NO", "OM", "PK", "PW", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SX", "SK", "SI", "SB", "SO", "ZA", "GS", "SS", "ES", "LK", "SD", "SR", "SJ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "GB", "US", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW", "004", "248", "008", "012", "016", "020", "024", "660", "010", "028", "032", "051", "036", "040", "031", "044", "048", "050", "052", "112", "056", "084", "204", "060", "064", "068", "535", "070", "072", "074", "076", "086", "096", "100", "854", "120", "140", "148", "162", "166", "178", "180", "184", "384", "191", "531", "196", "212", "218", "226", "233", "231", "234", "246", "250", "254", "258", "260", "266", "268", "276", "288", "300", "304", "308", "312", "316", "831", "624", "334", "336", "372", "833", "380", "832", "296", "428", "438", "440", "442", "450", "466", "470", "584", "474", "478", "175", "583", "492", "499", "500", "508", "520", "528", "540", "562", "570", "574", "580", "585", "591", "612", "616", "620", "630", "638", "642", "652", "659", "662", "663", "666", "670", "674", "678", "686", "688", "534", "703", "705", "090", "239", "724", "729", "740", "744", "158", "762", "626", "768", "772", "792", "795", "796", "798", "804", "581", "862", "092", "850", "876", "732", "887", "894", "716"]); const _av8 = new Set(["AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BQ", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "CV", "KH", "CM", "CA", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CW", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "SZ", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MK", "MP", "NO", "OM", "PK", "PW", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SX", "SK", "SI", "SB", "SO", "ZA", "GS", "SS", "ES", "LK", "SD", "SR", "SJ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "GB", "US", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW"]); const _av9 = new Set(["BTN", "MKD", "SLE", "CHE", "AFG", "ALA", "ALB", "DZA", "ASM", "AND", "AGO", "AIA", "ATA", "ATG", "ARG", "ARM", "ABW", "AUS", "AUT", "AZE", "BHS", "BHR", "BGD", "BRB", "BLR", "BEL", "BLZ", "BEN", "BMU", "BOL", "BES", "BIH", "BWA", "BVT", "BRA", "IOT", "BRN", "BGR", "BFA", "BDI", "CPV", "KHM", "CMR", "CAN", "CYM", "CAF", "TCD", "CHL", "CHN", "CXR", "CCK", "COL", "COM", "COG", "COD", "COK", "CRI", "CIV", "HRV", "CUB", "CUW", "CYP", "CZE", "DNK", "DJI", "DMA", "DOM", "ECU", "EGY", "SLV", "GNQ", "ERI", "EST", "SWZ", "ETH", "FLK", "FRO", "FJI", "FIN", "FRA", "GUF", "PYF", "ATF", "GAB", "GMB", "GEO", "DEU", "GHA", "GIB", "GRC", "GRL", "GRD", "GLP", "GUM", "GTM", "GGY", "GIN", "GNB", "GUY", "HTI", "HMD", "VAT", "HND", "HKG", "HUN", "ISL", "IND", "IDN", "IRN", "IRQ", "IRL", "IMN", "ISR", "ITA", "JAM", "JPN", "JEY", "JOR", "KAZ", "KEN", "KIR", "PRK", "KOR", "KWT", "KGZ", "LAO", "LVA", "LBN", "LSO", "LBR", "LBY", "LIE", "LTU", "LUX", "MAC", "MDG", "MWI", "MYS", "MDV", "MLI", "MLT", "MHL", "MTQ", "MRT", "MUS", "MYT", "MEX", "FSM", "MDA", "MCO", "MNG", "MNE", "MSR", "MAR", "MOZ", "MMR", "NAM", "NRU", "NPL", "NLD", "NCL", "NZL", "NIC", "NER", "NGA", "NIU", "NFK", "MNP", "NOR", "OMN", "PAK", "PLW", "PAN", "PNG", "PRY", "PER", "PHL", "PCN", "POL", "PRT", "PRI", "QAT", "REU", "ROU", "RUS", "RWA", "BLM", "SHN", "KNA", "LCA", "MAF", "SPM", "VCT", "WSM", "SMR", "STP", "SAU", "SEN", "SRB", "SYC", "SGP", "SXM", "SVK", "SVN", "SLB", "SOM", "ZAF", "SGS", "SSD", "ESP", "LKA", "SDN", "SUR", "SJM", "SWE", "SYR", "TWN", "TJK", "TZA", "THA", "TLS", "TGO", "TKL", "TON", "TTO", "TUN", "TUR", "TKM", "TCA", "TUV", "UGA", "UKR", "ARE", "GBR", "USA", "UMI", "URY", "UZB", "VUT", "VEN", "VNM", "VGB", "VIR", "WLF", "ESH", "YEM", "ZMB", "ZWE"]); const _av10 = new Set(["840", "533", "356", "578", "108", "132", "116", "124", "136", "152", "156", "170", "174", "554", "188", "192", "203", "208", "262", "214", "818", "222", "232", "748", "238", "242", "270", "292", "320", "826", "324", "328", "332", "340", "344", "348", "352", "360", "364", "368", "376", "388", "392", "400", "398", "404", "408", "410", "414", "417", "418", "422", "426", "710", "430", "434", "756", "446", "807", "454", "458", "462", "480", "484", "498", "496", "504", "104", "516", "524", "558", "566", "512", "586", "598", "600", "604", "608", "634", "643", "646", "654", "882", "682", "690", "694", "702", "706", "728", "144", "752", "760", "834", "764", "776", "780", "788", "800", "784", "858", "860", "548", "704", "004", "248", "008", "012", "016", "020", "024", "660", "010", "028", "032", "051", "036", "040", "031", "044", "048", "050", "052", "112", "056", "084", "204", "060", "064", "068", "535", "070", "072", "074", "076", "086", "096", "100", "854", "120", "140", "148", "162", "166", "178", "180", "184", "384", "191", "531", "196", "212", "218", "226", "233", "231", "234", "246", "250", "254", "258", "260", "266", "268", "276", "288", "300", "304", "308", "312", "316", "831", "624", "334", "336", "372", "833", "380", "832", "296", "428", "438", "440", "442", "450", "466", "470", "584", "474", "478", "175", "583", "492", "499", "500", "508", "520", "528", "540", "562", "570", "574", "580", "585", "591", "612", "616", "620", "630", "638", "642", "652", "659", "662", "663", "666", "670", "674", "678", "686", "688", "534", "703", "705", "090", "239", "724", "729", "740", "744", "158", "762", "626", "768", "772", "792", "795", "796", "798", "804", "581", "862", "092", "850", "876", "732", "887", "894", "716"]); const _io0 = input => Array.isArray(input.countryCodes) && input.countryCodes.every(elem => null !== elem && undefined !== elem && (true === _iv2.has(elem) || "object" === typeof elem && null !== elem && _io1(elem))) && ("string" === typeof input.account && (RegExp(/^keeta_am(.*)/).test(input.account) || RegExp(/^keeta_an(.*)/).test(input.account) || RegExp(/^keeta_ao(.*)/).test(input.account) || RegExp(/^keeta_ap(.*)/).test(input.account) || RegExp(/^tyblocks_am(.*)/).test(input.account) || RegExp(/^tyblocks_an(.*)/).test(input.account) || RegExp(/^tyblocks_ao(.*)/).test(input.account) || RegExp(/^tyblocks_ap(.*)/).test(input.account) || RegExp(/^keeta_ai(.*)/).test(input.account) || RegExp(/^keeta_aj(.*)/).test(input.account) || RegExp(/^keeta_ak(.*)/).test(input.account) || RegExp(/^keeta_al(.*)/).test(input.account) || RegExp(/^tyblocks_ai(.*)/).test(input.account) || RegExp(/^tyblocks_aj(.*)/).test(input.account) || RegExp(/^tyblocks_ak(.*)/).test(input.account) || RegExp(/^tyblocks_al(.*)/).test(input.account) || RegExp(/^keeta_at(.*)/).test(input.account) || RegExp(/^keeta_aq(.*)/).test(input.account) || RegExp(/^keeta_ar(.*)/).test(input.account) || RegExp(/^keeta_as(.*)/).test(input.account) || RegExp(/^tyblocks_at(.*)/).test(input.account) || RegExp(/^tyblocks_aq(.*)/).test(input.account) || RegExp(/^tyblocks_ar(.*)/).test(input.account) || RegExp(/^tyblocks_as(.*)/).test(input.account) || RegExp(/^keeta_a4(.*)/).test(input.account) || RegExp(/^keeta_a5(.*)/).test(input.account) || RegExp(/^keeta_a6(.*)/).test(input.account) || RegExp(/^keeta_a7(.*)/).test(input.account) || RegExp(/^tyblocks_a4(.*)/).test(input.account) || RegExp(/^tyblocks_a5(.*)/).test(input.account) || RegExp(/^tyblocks_a6(.*)/).test(input.account) || RegExp(/^tyblocks_a7(.*)/).test(input.account) || RegExp(/^keeta_aa(.*)/).test(input.account) || RegExp(/^keeta_ab(.*)/).test(input.account) || RegExp(/^keeta_ac(.*)/).test(input.account) || RegExp(/^keeta_ad(.*)/).test(input.account) || RegExp(/^tyblocks_aa(.*)/).test(input.account) || RegExp(/^tyblocks_ab(.*)/).test(input.account) || RegExp(/^tyblocks_ac(.*)/).test(input.account) || RegExp(/^tyblocks_ad(.*)/).test(input.account) || RegExp(/^keeta_ay(.*)/).test(input.account) || RegExp(/^keeta_az(.*)/).test(input.account) || RegExp(/^keeta_a2(.*)/).test(input.account) || RegExp(/^keeta_a3(.*)/).test(input.account) || RegExp(/^tyblocks_ay(.*)/).test(input.account) || RegExp(/^tyblocks_az(.*)/).test(input.account) || RegExp(/^tyblocks_a2(.*)/).test(input.account) || RegExp(/^tyblocks_a3(.*)/).test(input.account) || RegExp(/^keeta_ae(.*)/).test(input.account) || RegExp(/^keeta_af(.*)/).test(input.account) || RegExp(/^keeta_ag(.*)/).test(input.account) || RegExp(/^keeta_ah(.*)/).test(input.account) || RegExp(/^tyblocks_ae(.*)/).test(input.account) || RegExp(/^tyblocks_af(.*)/).test(input.account) || RegExp(/^tyblocks_ag(.*)/).test(input.account) || RegExp(/^tyblocks_ah(.*)/).test(input.account))) && ("object" === typeof input.signed && null !== input.signed && _io4(input.signed)); const _io1 = input => true && true === _iv3.has(input.code) && "string" === typeof input.name && true === _iv4.has(input.longCode) && true === _iv5.has(input.numericCode) && "string" === typeof input.dialCode && (undefined === input.region || "object" === typeof input.region && null !== input.region && false === Array.isArray(input.region) && _io2(input.region)); const _io2 = input => (undefined === input.primary || "object" === typeof input.primary && null !== input.primary && _io3(input.primary)) && (undefined === input.subRegion || "object" === typeof input.subRegion && null !== input.subRegion && _io3(input.subRegion)) && (undefined === input.intermediateRegion || "object" === typeof input.intermediateRegion && null !== input.intermediateRegion && _io3(input.intermediateRegion)); const _io3 = input => "string" === typeof input.name && "string" === typeof input.code; const _io4 = input => "string" === typeof input.nonce && "string" === typeof input.timestamp && "string" === typeof input.signature; const _ao0 = (input, _path, _exceptionable = true) => ((Array.isArray(input.countryCodes) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
4
+ method: "createAssert",
5
+ path: _path + ".countryCodes",
6
+ expected: "Array<CountrySearchInput>",
7
+ value: input.countryCodes
8
+ }, _errorFactory)) && input.countryCodes.every((elem, _index6) => (null !== elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
9
+ method: "createAssert",
10
+ path: _path + ".countryCodes[" + _index6 + "]",
11
+ expected: "(\"004\" | \"008\" | \"010\" | \"012\" | \"016\" | \"020\" | \"024\" | \"028\" | \"031\" | \"032\" | \"036\" | \"040\" | \"044\" | \"048\" | \"050\" | \"051\" | \"052\" | \"056\" | \"060\" | \"064\" | \"068\" | \"070\" | \"072\" | \"074\" | \"076\" | \"084\" | \"086\" | \"090\" | \"092\" | \"096\" | \"100\" | \"104\" | \"108\" | \"112\" | \"116\" | \"120\" | \"124\" | \"132\" | \"136\" | \"140\" | \"144\" | \"148\" | \"152\" | \"156\" | \"158\" | \"162\" | \"166\" | \"170\" | \"174\" | \"175\" | \"178\" | \"180\" | \"184\" | \"188\" | \"191\" | \"192\" | \"196\" | \"203\" | \"204\" | \"208\" | \"212\" | \"214\" | \"218\" | \"222\" | \"226\" | \"231\" | \"232\" | \"233\" | \"234\" | \"238\" | \"239\" | \"242\" | \"246\" | \"248\" | \"250\" | \"254\" | \"258\" | \"260\" | \"262\" | \"266\" | \"268\" | \"270\" | \"276\" | \"288\" | \"292\" | \"296\" | \"300\" | \"304\" | \"308\" | \"312\" | \"316\" | \"320\" | \"324\" | \"328\" | \"332\" | \"334\" | \"336\" | \"340\" | \"344\" | \"348\" | \"352\" | \"356\" | \"360\" | \"364\" | \"368\" | \"372\" | \"376\" | \"380\" | \"384\" | \"388\" | \"392\" | \"398\" | \"400\" | \"404\" | \"408\" | \"410\" | \"414\" | \"417\" | \"418\" | \"422\" | \"426\" | \"428\" | \"430\" | \"434\" | \"438\" | \"440\" | \"442\" | \"446\" | \"450\" | \"454\" | \"458\" | \"462\" | \"466\" | \"470\" | \"474\" | \"478\" | \"480\" | \"484\" | \"492\" | \"496\" | \"498\" | \"499\" | \"500\" | \"504\" | \"508\" | \"512\" | \"516\" | \"520\" | \"524\" | \"528\" | \"531\" | \"533\" | \"534\" | \"535\" | \"540\" | \"548\" | \"554\" | \"558\" | \"562\" | \"566\" | \"570\" | \"574\" | \"578\" | \"580\" | \"581\" | \"583\" | \"584\" | \"585\" | \"586\" | \"591\" | \"598\" | \"600\" | \"604\" | \"608\" | \"612\" | \"616\" | \"620\" | \"624\" | \"626\" | \"630\" | \"634\" | \"638\" | \"642\" | \"643\" | \"646\" | \"652\" | \"654\" | \"659\" | \"660\" | \"662\" | \"663\" | \"666\" | \"670\" | \"674\" | \"678\" | \"682\" | \"686\" | \"688\" | \"690\" | \"694\" | \"702\" | \"703\" | \"704\" | \"705\" | \"706\" | \"710\" | \"716\" | \"724\" | \"728\" | \"729\" | \"732\" | \"740\" | \"744\" | \"748\" | \"752\" | \"756\" | \"760\" | \"762\" | \"764\" | \"768\" | \"772\" | \"776\" | \"780\" | \"784\" | \"788\" | \"792\" | \"795\" | \"796\" | \"798\" | \"800\" | \"804\" | \"807\" | \"818\" | \"826\" | \"831\" | \"832\" | \"833\" | \"834\" | \"840\" | \"850\" | \"854\" | \"858\" | \"860\" | \"862\" | \"876\" | \"882\" | \"887\" | \"894\" | \"AD\" | \"AE\" | \"AF\" | \"AG\" | \"AI\" | \"AL\" | \"AM\" | \"AO\" | \"AQ\" | \"AR\" | \"AS\" | \"AT\" | \"AU\" | \"AW\" | \"AX\" | \"AZ\" | \"BA\" | \"BB\" | \"BD\" | \"BE\" | \"BF\" | \"BG\" | \"BH\" | \"BI\" | \"BJ\" | \"BL\" | \"BM\" | \"BN\" | \"BO\" | \"BQ\" | \"BR\" | \"BS\" | \"BT\" | \"BV\" | \"BW\" | \"BY\" | \"BZ\" | \"CA\" | \"CC\" | \"CD\" | \"CF\" | \"CG\" | \"CH\" | \"CI\" | \"CK\" | \"CL\" | \"CM\" | \"CN\" | \"CO\" | \"CR\" | \"CU\" | \"CV\" | \"CW\" | \"CX\" | \"CY\" | \"CZ\" | \"DE\" | \"DJ\" | \"DK\" | \"DM\" | \"DO\" | \"DZ\" | \"EC\" | \"EE\" | \"EG\" | \"EH\" | \"ER\" | \"ES\" | \"ET\" | \"FI\" | \"FJ\" | \"FK\" | \"FM\" | \"FO\" | \"FR\" | \"GA\" | \"GB\" | \"GD\" | \"GE\" | \"GF\" | \"GG\" | \"GH\" | \"GI\" | \"GL\" | \"GM\" | \"GN\" | \"GP\" | \"GQ\" | \"GR\" | \"GS\" | \"GT\" | \"GU\" | \"GW\" | \"GY\" | \"HK\" | \"HM\" | \"HN\" | \"HR\" | \"HT\" | \"HU\" | \"ID\" | \"IE\" | \"IL\" | \"IM\" | \"IN\" | \"IO\" | \"IQ\" | \"IR\" | \"IS\" | \"IT\" | \"JE\" | \"JM\" | \"JO\" | \"JP\" | \"KE\" | \"KG\" | \"KH\" | \"KI\" | \"KM\" | \"KN\" | \"KP\" | \"KR\" | \"KW\" | \"KY\" | \"KZ\" | \"LA\" | \"LB\" | \"LC\" | \"LI\" | \"LK\" | \"LR\" | \"LS\" | \"LT\" | \"LU\" | \"LV\" | \"LY\" | \"MA\" | \"MC\" | \"MD\" | \"ME\" | \"MF\" | \"MG\" | \"MH\" | \"MK\" | \"ML\" | \"MM\" | \"MN\" | \"MO\" | \"MP\" | \"MQ\" | \"MR\" | \"MS\" | \"MT\" | \"MU\" | \"MV\" | \"MW\" | \"MX\" | \"MY\" | \"MZ\" | \"NA\" | \"NC\" | \"NE\" | \"NF\" | \"NG\" | \"NI\" | \"NL\" | \"NO\" | \"NP\" | \"NR\" | \"NU\" | \"NZ\" | \"OM\" | \"PA\" | \"PE\" | \"PF\" | \"PG\" | \"PH\" | \"PK\" | \"PL\" | \"PM\" | \"PN\" | \"PR\" | \"PT\" | \"PW\" | \"PY\" | \"QA\" | \"RE\" | \"RO\" | \"RS\" | \"RU\" | \"RW\" | \"SA\" | \"SB\" | \"SC\" | \"SD\" | \"SE\" | \"SG\" | \"SH\" | \"SI\" | \"SJ\" | \"SK\" | \"SL\" | \"SM\" | \"SN\" | \"SO\" | \"SR\" | \"SS\" | \"ST\" | \"SV\" | \"SX\" | \"SY\" | \"SZ\" | \"TC\" | \"TD\" | \"TF\" | \"TG\" | \"TH\" | \"TJ\" | \"TK\" | \"TL\" | \"TM\" | \"TN\" | \"TO\" | \"TR\" | \"TT\" | \"TV\" | \"TW\" | \"TZ\" | \"UA\" | \"UG\" | \"UM\" | \"US\" | \"UY\" | \"UZ\" | \"VA\" | \"VC\" | \"VE\" | \"VG\" | \"VI\" | \"VN\" | \"VU\" | \"WF\" | \"WS\" | \"YE\" | \"YT\" | \"ZA\" | \"ZM\" | \"ZW\" | Country)",
12
+ value: elem
13
+ }, _errorFactory)) && (undefined !== elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
14
+ method: "createAssert",
15
+ path: _path + ".countryCodes[" + _index6 + "]",
16
+ expected: "(\"004\" | \"008\" | \"010\" | \"012\" | \"016\" | \"020\" | \"024\" | \"028\" | \"031\" | \"032\" | \"036\" | \"040\" | \"044\" | \"048\" | \"050\" | \"051\" | \"052\" | \"056\" | \"060\" | \"064\" | \"068\" | \"070\" | \"072\" | \"074\" | \"076\" | \"084\" | \"086\" | \"090\" | \"092\" | \"096\" | \"100\" | \"104\" | \"108\" | \"112\" | \"116\" | \"120\" | \"124\" | \"132\" | \"136\" | \"140\" | \"144\" | \"148\" | \"152\" | \"156\" | \"158\" | \"162\" | \"166\" | \"170\" | \"174\" | \"175\" | \"178\" | \"180\" | \"184\" | \"188\" | \"191\" | \"192\" | \"196\" | \"203\" | \"204\" | \"208\" | \"212\" | \"214\" | \"218\" | \"222\" | \"226\" | \"231\" | \"232\" | \"233\" | \"234\" | \"238\" | \"239\" | \"242\" | \"246\" | \"248\" | \"250\" | \"254\" | \"258\" | \"260\" | \"262\" | \"266\" | \"268\" | \"270\" | \"276\" | \"288\" | \"292\" | \"296\" | \"300\" | \"304\" | \"308\" | \"312\" | \"316\" | \"320\" | \"324\" | \"328\" | \"332\" | \"334\" | \"336\" | \"340\" | \"344\" | \"348\" | \"352\" | \"356\" | \"360\" | \"364\" | \"368\" | \"372\" | \"376\" | \"380\" | \"384\" | \"388\" | \"392\" | \"398\" | \"400\" | \"404\" | \"408\" | \"410\" | \"414\" | \"417\" | \"418\" | \"422\" | \"426\" | \"428\" | \"430\" | \"434\" | \"438\" | \"440\" | \"442\" | \"446\" | \"450\" | \"454\" | \"458\" | \"462\" | \"466\" | \"470\" | \"474\" | \"478\" | \"480\" | \"484\" | \"492\" | \"496\" | \"498\" | \"499\" | \"500\" | \"504\" | \"508\" | \"512\" | \"516\" | \"520\" | \"524\" | \"528\" | \"531\" | \"533\" | \"534\" | \"535\" | \"540\" | \"548\" | \"554\" | \"558\" | \"562\" | \"566\" | \"570\" | \"574\" | \"578\" | \"580\" | \"581\" | \"583\" | \"584\" | \"585\" | \"586\" | \"591\" | \"598\" | \"600\" | \"604\" | \"608\" | \"612\" | \"616\" | \"620\" | \"624\" | \"626\" | \"630\" | \"634\" | \"638\" | \"642\" | \"643\" | \"646\" | \"652\" | \"654\" | \"659\" | \"660\" | \"662\" | \"663\" | \"666\" | \"670\" | \"674\" | \"678\" | \"682\" | \"686\" | \"688\" | \"690\" | \"694\" | \"702\" | \"703\" | \"704\" | \"705\" | \"706\" | \"710\" | \"716\" | \"724\" | \"728\" | \"729\" | \"732\" | \"740\" | \"744\" | \"748\" | \"752\" | \"756\" | \"760\" | \"762\" | \"764\" | \"768\" | \"772\" | \"776\" | \"780\" | \"784\" | \"788\" | \"792\" | \"795\" | \"796\" | \"798\" | \"800\" | \"804\" | \"807\" | \"818\" | \"826\" | \"831\" | \"832\" | \"833\" | \"834\" | \"840\" | \"850\" | \"854\" | \"858\" | \"860\" | \"862\" | \"876\" | \"882\" | \"887\" | \"894\" | \"AD\" | \"AE\" | \"AF\" | \"AG\" | \"AI\" | \"AL\" | \"AM\" | \"AO\" | \"AQ\" | \"AR\" | \"AS\" | \"AT\" | \"AU\" | \"AW\" | \"AX\" | \"AZ\" | \"BA\" | \"BB\" | \"BD\" | \"BE\" | \"BF\" | \"BG\" | \"BH\" | \"BI\" | \"BJ\" | \"BL\" | \"BM\" | \"BN\" | \"BO\" | \"BQ\" | \"BR\" | \"BS\" | \"BT\" | \"BV\" | \"BW\" | \"BY\" | \"BZ\" | \"CA\" | \"CC\" | \"CD\" | \"CF\" | \"CG\" | \"CH\" | \"CI\" | \"CK\" | \"CL\" | \"CM\" | \"CN\" | \"CO\" | \"CR\" | \"CU\" | \"CV\" | \"CW\" | \"CX\" | \"CY\" | \"CZ\" | \"DE\" | \"DJ\" | \"DK\" | \"DM\" | \"DO\" | \"DZ\" | \"EC\" | \"EE\" | \"EG\" | \"EH\" | \"ER\" | \"ES\" | \"ET\" | \"FI\" | \"FJ\" | \"FK\" | \"FM\" | \"FO\" | \"FR\" | \"GA\" | \"GB\" | \"GD\" | \"GE\" | \"GF\" | \"GG\" | \"GH\" | \"GI\" | \"GL\" | \"GM\" | \"GN\" | \"GP\" | \"GQ\" | \"GR\" | \"GS\" | \"GT\" | \"GU\" | \"GW\" | \"GY\" | \"HK\" | \"HM\" | \"HN\" | \"HR\" | \"HT\" | \"HU\" | \"ID\" | \"IE\" | \"IL\" | \"IM\" | \"IN\" | \"IO\" | \"IQ\" | \"IR\" | \"IS\" | \"IT\" | \"JE\" | \"JM\" | \"JO\" | \"JP\" | \"KE\" | \"KG\" | \"KH\" | \"KI\" | \"KM\" | \"KN\" | \"KP\" | \"KR\" | \"KW\" | \"KY\" | \"KZ\" | \"LA\" | \"LB\" | \"LC\" | \"LI\" | \"LK\" | \"LR\" | \"LS\" | \"LT\" | \"LU\" | \"LV\" | \"LY\" | \"MA\" | \"MC\" | \"MD\" | \"ME\" | \"MF\" | \"MG\" | \"MH\" | \"MK\" | \"ML\" | \"MM\" | \"MN\" | \"MO\" | \"MP\" | \"MQ\" | \"MR\" | \"MS\" | \"MT\" | \"MU\" | \"MV\" | \"MW\" | \"MX\" | \"MY\" | \"MZ\" | \"NA\" | \"NC\" | \"NE\" | \"NF\" | \"NG\" | \"NI\" | \"NL\" | \"NO\" | \"NP\" | \"NR\" | \"NU\" | \"NZ\" | \"OM\" | \"PA\" | \"PE\" | \"PF\" | \"PG\" | \"PH\" | \"PK\" | \"PL\" | \"PM\" | \"PN\" | \"PR\" | \"PT\" | \"PW\" | \"PY\" | \"QA\" | \"RE\" | \"RO\" | \"RS\" | \"RU\" | \"RW\" | \"SA\" | \"SB\" | \"SC\" | \"SD\" | \"SE\" | \"SG\" | \"SH\" | \"SI\" | \"SJ\" | \"SK\" | \"SL\" | \"SM\" | \"SN\" | \"SO\" | \"SR\" | \"SS\" | \"ST\" | \"SV\" | \"SX\" | \"SY\" | \"SZ\" | \"TC\" | \"TD\" | \"TF\" | \"TG\" | \"TH\" | \"TJ\" | \"TK\" | \"TL\" | \"TM\" | \"TN\" | \"TO\" | \"TR\" | \"TT\" | \"TV\" | \"TW\" | \"TZ\" | \"UA\" | \"UG\" | \"UM\" | \"US\" | \"UY\" | \"UZ\" | \"VA\" | \"VC\" | \"VE\" | \"VG\" | \"VI\" | \"VN\" | \"VU\" | \"WF\" | \"WS\" | \"YE\" | \"YT\" | \"ZA\" | \"ZM\" | \"ZW\" | Country)",
17
+ value: elem
18
+ }, _errorFactory)) && (true === _av7.has(elem) || ("object" === typeof elem && null !== elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
19
+ method: "createAssert",
20
+ path: _path + ".countryCodes[" + _index6 + "]",
21
+ expected: "(\"004\" | \"008\" | \"010\" | \"012\" | \"016\" | \"020\" | \"024\" | \"028\" | \"031\" | \"032\" | \"036\" | \"040\" | \"044\" | \"048\" | \"050\" | \"051\" | \"052\" | \"056\" | \"060\" | \"064\" | \"068\" | \"070\" | \"072\" | \"074\" | \"076\" | \"084\" | \"086\" | \"090\" | \"092\" | \"096\" | \"100\" | \"104\" | \"108\" | \"112\" | \"116\" | \"120\" | \"124\" | \"132\" | \"136\" | \"140\" | \"144\" | \"148\" | \"152\" | \"156\" | \"158\" | \"162\" | \"166\" | \"170\" | \"174\" | \"175\" | \"178\" | \"180\" | \"184\" | \"188\" | \"191\" | \"192\" | \"196\" | \"203\" | \"204\" | \"208\" | \"212\" | \"214\" | \"218\" | \"222\" | \"226\" | \"231\" | \"232\" | \"233\" | \"234\" | \"238\" | \"239\" | \"242\" | \"246\" | \"248\" | \"250\" | \"254\" | \"258\" | \"260\" | \"262\" | \"266\" | \"268\" | \"270\" | \"276\" | \"288\" | \"292\" | \"296\" | \"300\" | \"304\" | \"308\" | \"312\" | \"316\" | \"320\" | \"324\" | \"328\" | \"332\" | \"334\" | \"336\" | \"340\" | \"344\" | \"348\" | \"352\" | \"356\" | \"360\" | \"364\" | \"368\" | \"372\" | \"376\" | \"380\" | \"384\" | \"388\" | \"392\" | \"398\" | \"400\" | \"404\" | \"408\" | \"410\" | \"414\" | \"417\" | \"418\" | \"422\" | \"426\" | \"428\" | \"430\" | \"434\" | \"438\" | \"440\" | \"442\" | \"446\" | \"450\" | \"454\" | \"458\" | \"462\" | \"466\" | \"470\" | \"474\" | \"478\" | \"480\" | \"484\" | \"492\" | \"496\" | \"498\" | \"499\" | \"500\" | \"504\" | \"508\" | \"512\" | \"516\" | \"520\" | \"524\" | \"528\" | \"531\" | \"533\" | \"534\" | \"535\" | \"540\" | \"548\" | \"554\" | \"558\" | \"562\" | \"566\" | \"570\" | \"574\" | \"578\" | \"580\" | \"581\" | \"583\" | \"584\" | \"585\" | \"586\" | \"591\" | \"598\" | \"600\" | \"604\" | \"608\" | \"612\" | \"616\" | \"620\" | \"624\" | \"626\" | \"630\" | \"634\" | \"638\" | \"642\" | \"643\" | \"646\" | \"652\" | \"654\" | \"659\" | \"660\" | \"662\" | \"663\" | \"666\" | \"670\" | \"674\" | \"678\" | \"682\" | \"686\" | \"688\" | \"690\" | \"694\" | \"702\" | \"703\" | \"704\" | \"705\" | \"706\" | \"710\" | \"716\" | \"724\" | \"728\" | \"729\" | \"732\" | \"740\" | \"744\" | \"748\" | \"752\" | \"756\" | \"760\" | \"762\" | \"764\" | \"768\" | \"772\" | \"776\" | \"780\" | \"784\" | \"788\" | \"792\" | \"795\" | \"796\" | \"798\" | \"800\" | \"804\" | \"807\" | \"818\" | \"826\" | \"831\" | \"832\" | \"833\" | \"834\" | \"840\" | \"850\" | \"854\" | \"858\" | \"860\" | \"862\" | \"876\" | \"882\" | \"887\" | \"894\" | \"AD\" | \"AE\" | \"AF\" | \"AG\" | \"AI\" | \"AL\" | \"AM\" | \"AO\" | \"AQ\" | \"AR\" | \"AS\" | \"AT\" | \"AU\" | \"AW\" | \"AX\" | \"AZ\" | \"BA\" | \"BB\" | \"BD\" | \"BE\" | \"BF\" | \"BG\" | \"BH\" | \"BI\" | \"BJ\" | \"BL\" | \"BM\" | \"BN\" | \"BO\" | \"BQ\" | \"BR\" | \"BS\" | \"BT\" | \"BV\" | \"BW\" | \"BY\" | \"BZ\" | \"CA\" | \"CC\" | \"CD\" | \"CF\" | \"CG\" | \"CH\" | \"CI\" | \"CK\" | \"CL\" | \"CM\" | \"CN\" | \"CO\" | \"CR\" | \"CU\" | \"CV\" | \"CW\" | \"CX\" | \"CY\" | \"CZ\" | \"DE\" | \"DJ\" | \"DK\" | \"DM\" | \"DO\" | \"DZ\" | \"EC\" | \"EE\" | \"EG\" | \"EH\" | \"ER\" | \"ES\" | \"ET\" | \"FI\" | \"FJ\" | \"FK\" | \"FM\" | \"FO\" | \"FR\" | \"GA\" | \"GB\" | \"GD\" | \"GE\" | \"GF\" | \"GG\" | \"GH\" | \"GI\" | \"GL\" | \"GM\" | \"GN\" | \"GP\" | \"GQ\" | \"GR\" | \"GS\" | \"GT\" | \"GU\" | \"GW\" | \"GY\" | \"HK\" | \"HM\" | \"HN\" | \"HR\" | \"HT\" | \"HU\" | \"ID\" | \"IE\" | \"IL\" | \"IM\" | \"IN\" | \"IO\" | \"IQ\" | \"IR\" | \"IS\" | \"IT\" | \"JE\" | \"JM\" | \"JO\" | \"JP\" | \"KE\" | \"KG\" | \"KH\" | \"KI\" | \"KM\" | \"KN\" | \"KP\" | \"KR\" | \"KW\" | \"KY\" | \"KZ\" | \"LA\" | \"LB\" | \"LC\" | \"LI\" | \"LK\" | \"LR\" | \"LS\" | \"LT\" | \"LU\" | \"LV\" | \"LY\" | \"MA\" | \"MC\" | \"MD\" | \"ME\" | \"MF\" | \"MG\" | \"MH\" | \"MK\" | \"ML\" | \"MM\" | \"MN\" | \"MO\" | \"MP\" | \"MQ\" | \"MR\" | \"MS\" | \"MT\" | \"MU\" | \"MV\" | \"MW\" | \"MX\" | \"MY\" | \"MZ\" | \"NA\" | \"NC\" | \"NE\" | \"NF\" | \"NG\" | \"NI\" | \"NL\" | \"NO\" | \"NP\" | \"NR\" | \"NU\" | \"NZ\" | \"OM\" | \"PA\" | \"PE\" | \"PF\" | \"PG\" | \"PH\" | \"PK\" | \"PL\" | \"PM\" | \"PN\" | \"PR\" | \"PT\" | \"PW\" | \"PY\" | \"QA\" | \"RE\" | \"RO\" | \"RS\" | \"RU\" | \"RW\" | \"SA\" | \"SB\" | \"SC\" | \"SD\" | \"SE\" | \"SG\" | \"SH\" | \"SI\" | \"SJ\" | \"SK\" | \"SL\" | \"SM\" | \"SN\" | \"SO\" | \"SR\" | \"SS\" | \"ST\" | \"SV\" | \"SX\" | \"SY\" | \"SZ\" | \"TC\" | \"TD\" | \"TF\" | \"TG\" | \"TH\" | \"TJ\" | \"TK\" | \"TL\" | \"TM\" | \"TN\" | \"TO\" | \"TR\" | \"TT\" | \"TV\" | \"TW\" | \"TZ\" | \"UA\" | \"UG\" | \"UM\" | \"US\" | \"UY\" | \"UZ\" | \"VA\" | \"VC\" | \"VE\" | \"VG\" | \"VI\" | \"VN\" | \"VU\" | \"WF\" | \"WS\" | \"YE\" | \"YT\" | \"ZA\" | \"ZM\" | \"ZW\" | Country)",
22
+ value: elem
23
+ }, _errorFactory)) && _ao1(elem, _path + ".countryCodes[" + _index6 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
24
+ method: "createAssert",
25
+ path: _path + ".countryCodes[" + _index6 + "]",
26
+ expected: "(\"004\" | \"008\" | \"010\" | \"012\" | \"016\" | \"020\" | \"024\" | \"028\" | \"031\" | \"032\" | \"036\" | \"040\" | \"044\" | \"048\" | \"050\" | \"051\" | \"052\" | \"056\" | \"060\" | \"064\" | \"068\" | \"070\" | \"072\" | \"074\" | \"076\" | \"084\" | \"086\" | \"090\" | \"092\" | \"096\" | \"100\" | \"104\" | \"108\" | \"112\" | \"116\" | \"120\" | \"124\" | \"132\" | \"136\" | \"140\" | \"144\" | \"148\" | \"152\" | \"156\" | \"158\" | \"162\" | \"166\" | \"170\" | \"174\" | \"175\" | \"178\" | \"180\" | \"184\" | \"188\" | \"191\" | \"192\" | \"196\" | \"203\" | \"204\" | \"208\" | \"212\" | \"214\" | \"218\" | \"222\" | \"226\" | \"231\" | \"232\" | \"233\" | \"234\" | \"238\" | \"239\" | \"242\" | \"246\" | \"248\" | \"250\" | \"254\" | \"258\" | \"260\" | \"262\" | \"266\" | \"268\" | \"270\" | \"276\" | \"288\" | \"292\" | \"296\" | \"300\" | \"304\" | \"308\" | \"312\" | \"316\" | \"320\" | \"324\" | \"328\" | \"332\" | \"334\" | \"336\" | \"340\" | \"344\" | \"348\" | \"352\" | \"356\" | \"360\" | \"364\" | \"368\" | \"372\" | \"376\" | \"380\" | \"384\" | \"388\" | \"392\" | \"398\" | \"400\" | \"404\" | \"408\" | \"410\" | \"414\" | \"417\" | \"418\" | \"422\" | \"426\" | \"428\" | \"430\" | \"434\" | \"438\" | \"440\" | \"442\" | \"446\" | \"450\" | \"454\" | \"458\" | \"462\" | \"466\" | \"470\" | \"474\" | \"478\" | \"480\" | \"484\" | \"492\" | \"496\" | \"498\" | \"499\" | \"500\" | \"504\" | \"508\" | \"512\" | \"516\" | \"520\" | \"524\" | \"528\" | \"531\" | \"533\" | \"534\" | \"535\" | \"540\" | \"548\" | \"554\" | \"558\" | \"562\" | \"566\" | \"570\" | \"574\" | \"578\" | \"580\" | \"581\" | \"583\" | \"584\" | \"585\" | \"586\" | \"591\" | \"598\" | \"600\" | \"604\" | \"608\" | \"612\" | \"616\" | \"620\" | \"624\" | \"626\" | \"630\" | \"634\" | \"638\" | \"642\" | \"643\" | \"646\" | \"652\" | \"654\" | \"659\" | \"660\" | \"662\" | \"663\" | \"666\" | \"670\" | \"674\" | \"678\" | \"682\" | \"686\" | \"688\" | \"690\" | \"694\" | \"702\" | \"703\" | \"704\" | \"705\" | \"706\" | \"710\" | \"716\" | \"724\" | \"728\" | \"729\" | \"732\" | \"740\" | \"744\" | \"748\" | \"752\" | \"756\" | \"760\" | \"762\" | \"764\" | \"768\" | \"772\" | \"776\" | \"780\" | \"784\" | \"788\" | \"792\" | \"795\" | \"796\" | \"798\" | \"800\" | \"804\" | \"807\" | \"818\" | \"826\" | \"831\" | \"832\" | \"833\" | \"834\" | \"840\" | \"850\" | \"854\" | \"858\" | \"860\" | \"862\" | \"876\" | \"882\" | \"887\" | \"894\" | \"AD\" | \"AE\" | \"AF\" | \"AG\" | \"AI\" | \"AL\" | \"AM\" | \"AO\" | \"AQ\" | \"AR\" | \"AS\" | \"AT\" | \"AU\" | \"AW\" | \"AX\" | \"AZ\" | \"BA\" | \"BB\" | \"BD\" | \"BE\" | \"BF\" | \"BG\" | \"BH\" | \"BI\" | \"BJ\" | \"BL\" | \"BM\" | \"BN\" | \"BO\" | \"BQ\" | \"BR\" | \"BS\" | \"BT\" | \"BV\" | \"BW\" | \"BY\" | \"BZ\" | \"CA\" | \"CC\" | \"CD\" | \"CF\" | \"CG\" | \"CH\" | \"CI\" | \"CK\" | \"CL\" | \"CM\" | \"CN\" | \"CO\" | \"CR\" | \"CU\" | \"CV\" | \"CW\" | \"CX\" | \"CY\" | \"CZ\" | \"DE\" | \"DJ\" | \"DK\" | \"DM\" | \"DO\" | \"DZ\" | \"EC\" | \"EE\" | \"EG\" | \"EH\" | \"ER\" | \"ES\" | \"ET\" | \"FI\" | \"FJ\" | \"FK\" | \"FM\" | \"FO\" | \"FR\" | \"GA\" | \"GB\" | \"GD\" | \"GE\" | \"GF\" | \"GG\" | \"GH\" | \"GI\" | \"GL\" | \"GM\" | \"GN\" | \"GP\" | \"GQ\" | \"GR\" | \"GS\" | \"GT\" | \"GU\" | \"GW\" | \"GY\" | \"HK\" | \"HM\" | \"HN\" | \"HR\" | \"HT\" | \"HU\" | \"ID\" | \"IE\" | \"IL\" | \"IM\" | \"IN\" | \"IO\" | \"IQ\" | \"IR\" | \"IS\" | \"IT\" | \"JE\" | \"JM\" | \"JO\" | \"JP\" | \"KE\" | \"KG\" | \"KH\" | \"KI\" | \"KM\" | \"KN\" | \"KP\" | \"KR\" | \"KW\" | \"KY\" | \"KZ\" | \"LA\" | \"LB\" | \"LC\" | \"LI\" | \"LK\" | \"LR\" | \"LS\" | \"LT\" | \"LU\" | \"LV\" | \"LY\" | \"MA\" | \"MC\" | \"MD\" | \"ME\" | \"MF\" | \"MG\" | \"MH\" | \"MK\" | \"ML\" | \"MM\" | \"MN\" | \"MO\" | \"MP\" | \"MQ\" | \"MR\" | \"MS\" | \"MT\" | \"MU\" | \"MV\" | \"MW\" | \"MX\" | \"MY\" | \"MZ\" | \"NA\" | \"NC\" | \"NE\" | \"NF\" | \"NG\" | \"NI\" | \"NL\" | \"NO\" | \"NP\" | \"NR\" | \"NU\" | \"NZ\" | \"OM\" | \"PA\" | \"PE\" | \"PF\" | \"PG\" | \"PH\" | \"PK\" | \"PL\" | \"PM\" | \"PN\" | \"PR\" | \"PT\" | \"PW\" | \"PY\" | \"QA\" | \"RE\" | \"RO\" | \"RS\" | \"RU\" | \"RW\" | \"SA\" | \"SB\" | \"SC\" | \"SD\" | \"SE\" | \"SG\" | \"SH\" | \"SI\" | \"SJ\" | \"SK\" | \"SL\" | \"SM\" | \"SN\" | \"SO\" | \"SR\" | \"SS\" | \"ST\" | \"SV\" | \"SX\" | \"SY\" | \"SZ\" | \"TC\" | \"TD\" | \"TF\" | \"TG\" | \"TH\" | \"TJ\" | \"TK\" | \"TL\" | \"TM\" | \"TN\" | \"TO\" | \"TR\" | \"TT\" | \"TV\" | \"TW\" | \"TZ\" | \"UA\" | \"UG\" | \"UM\" | \"US\" | \"UY\" | \"UZ\" | \"VA\" | \"VC\" | \"VE\" | \"VG\" | \"VI\" | \"VN\" | \"VU\" | \"WF\" | \"WS\" | \"YE\" | \"YT\" | \"ZA\" | \"ZM\" | \"ZW\" | Country)",
27
+ value: elem
28
+ }, _errorFactory))) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
29
+ method: "createAssert",
30
+ path: _path + ".countryCodes",
31
+ expected: "Array<CountrySearchInput>",
32
+ value: input.countryCodes
33
+ }, _errorFactory)) && ("string" === typeof input.account && (RegExp(/^keeta_am(.*)/).test(input.account) || RegExp(/^keeta_an(.*)/).test(input.account) || RegExp(/^keeta_ao(.*)/).test(input.account) || RegExp(/^keeta_ap(.*)/).test(input.account) || RegExp(/^tyblocks_am(.*)/).test(input.account) || RegExp(/^tyblocks_an(.*)/).test(input.account) || RegExp(/^tyblocks_ao(.*)/).test(input.account) || RegExp(/^tyblocks_ap(.*)/).test(input.account) || RegExp(/^keeta_ai(.*)/).test(input.account) || RegExp(/^keeta_aj(.*)/).test(input.account) || RegExp(/^keeta_ak(.*)/).test(input.account) || RegExp(/^keeta_al(.*)/).test(input.account) || RegExp(/^tyblocks_ai(.*)/).test(input.account) || RegExp(/^tyblocks_aj(.*)/).test(input.account) || RegExp(/^tyblocks_ak(.*)/).test(input.account) || RegExp(/^tyblocks_al(.*)/).test(input.account) || RegExp(/^keeta_at(.*)/).test(input.account) || RegExp(/^keeta_aq(.*)/).test(input.account) || RegExp(/^keeta_ar(.*)/).test(input.account) || RegExp(/^keeta_as(.*)/).test(input.account) || RegExp(/^tyblocks_at(.*)/).test(input.account) || RegExp(/^tyblocks_aq(.*)/).test(input.account) || RegExp(/^tyblocks_ar(.*)/).test(input.account) || RegExp(/^tyblocks_as(.*)/).test(input.account) || RegExp(/^keeta_a4(.*)/).test(input.account) || RegExp(/^keeta_a5(.*)/).test(input.account) || RegExp(/^keeta_a6(.*)/).test(input.account) || RegExp(/^keeta_a7(.*)/).test(input.account) || RegExp(/^tyblocks_a4(.*)/).test(input.account) || RegExp(/^tyblocks_a5(.*)/).test(input.account) || RegExp(/^tyblocks_a6(.*)/).test(input.account) || RegExp(/^tyblocks_a7(.*)/).test(input.account) || RegExp(/^keeta_aa(.*)/).test(input.account) || RegExp(/^keeta_ab(.*)/).test(input.account) || RegExp(/^keeta_ac(.*)/).test(input.account) || RegExp(/^keeta_ad(.*)/).test(input.account) || RegExp(/^tyblocks_aa(.*)/).test(input.account) || RegExp(/^tyblocks_ab(.*)/).test(input.account) || RegExp(/^tyblocks_ac(.*)/).test(input.account) || RegExp(/^tyblocks_ad(.*)/).test(input.account) || RegExp(/^keeta_ay(.*)/).test(input.account) || RegExp(/^keeta_az(.*)/).test(input.account) || RegExp(/^keeta_a2(.*)/).test(input.account) || RegExp(/^keeta_a3(.*)/).test(input.account) || RegExp(/^tyblocks_ay(.*)/).test(input.account) || RegExp(/^tyblocks_az(.*)/).test(input.account) || RegExp(/^tyblocks_a2(.*)/).test(input.account) || RegExp(/^tyblocks_a3(.*)/).test(input.account) || RegExp(/^keeta_ae(.*)/).test(input.account) || RegExp(/^keeta_af(.*)/).test(input.account) || RegExp(/^keeta_ag(.*)/).test(input.account) || RegExp(/^keeta_ah(.*)/).test(input.account) || RegExp(/^tyblocks_ae(.*)/).test(input.account) || RegExp(/^tyblocks_af(.*)/).test(input.account) || RegExp(/^tyblocks_ag(.*)/).test(input.account) || RegExp(/^tyblocks_ah(.*)/).test(input.account)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
34
+ method: "createAssert",
35
+ path: _path + ".account",
36
+ expected: "(`keeta_a2${string}` | `keeta_a3${string}` | `keeta_a4${string}` | `keeta_a5${string}` | `keeta_a6${string}` | `keeta_a7${string}` | `keeta_aa${string}` | `keeta_ab${string}` | `keeta_ac${string}` | `keeta_ad${string}` | `keeta_ae${string}` | `keeta_af${string}` | `keeta_ag${string}` | `keeta_ah${string}` | `keeta_ai${string}` | `keeta_aj${string}` | `keeta_ak${string}` | `keeta_al${string}` | `keeta_am${string}` | `keeta_an${string}` | `keeta_ao${string}` | `keeta_ap${string}` | `keeta_aq${string}` | `keeta_ar${string}` | `keeta_as${string}` | `keeta_at${string}` | `keeta_ay${string}` | `keeta_az${string}` | `tyblocks_a2${string}` | `tyblocks_a3${string}` | `tyblocks_a4${string}` | `tyblocks_a5${string}` | `tyblocks_a6${string}` | `tyblocks_a7${string}` | `tyblocks_aa${string}` | `tyblocks_ab${string}` | `tyblocks_ac${string}` | `tyblocks_ad${string}` | `tyblocks_ae${string}` | `tyblocks_af${string}` | `tyblocks_ag${string}` | `tyblocks_ah${string}` | `tyblocks_ai${string}` | `tyblocks_aj${string}` | `tyblocks_ak${string}` | `tyblocks_al${string}` | `tyblocks_am${string}` | `tyblocks_an${string}` | `tyblocks_ao${string}` | `tyblocks_ap${string}` | `tyblocks_aq${string}` | `tyblocks_ar${string}` | `tyblocks_as${string}` | `tyblocks_at${string}` | `tyblocks_ay${string}` | `tyblocks_az${string}`)",
37
+ value: input.account
38
+ }, _errorFactory)) && (("object" === typeof input.signed && null !== input.signed || __typia_transform__assertGuard._assertGuard(_exceptionable, {
39
+ method: "createAssert",
40
+ path: _path + ".signed",
41
+ expected: "__type",
42
+ value: input.signed
43
+ }, _errorFactory)) && _ao4(input.signed, _path + ".signed", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
44
+ method: "createAssert",
45
+ path: _path + ".signed",
46
+ expected: "__type",
47
+ value: input.signed
48
+ }, _errorFactory)); const _ao1 = (input, _path, _exceptionable = true) => true && (true === _av8.has(input.code) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
49
+ method: "createAssert",
50
+ path: _path + ".code",
51
+ expected: "(\"AD\" | \"AE\" | \"AF\" | \"AG\" | \"AI\" | \"AL\" | \"AM\" | \"AO\" | \"AQ\" | \"AR\" | \"AS\" | \"AT\" | \"AU\" | \"AW\" | \"AX\" | \"AZ\" | \"BA\" | \"BB\" | \"BD\" | \"BE\" | \"BF\" | \"BG\" | \"BH\" | \"BI\" | \"BJ\" | \"BL\" | \"BM\" | \"BN\" | \"BO\" | \"BQ\" | \"BR\" | \"BS\" | \"BT\" | \"BV\" | \"BW\" | \"BY\" | \"BZ\" | \"CA\" | \"CC\" | \"CD\" | \"CF\" | \"CG\" | \"CH\" | \"CI\" | \"CK\" | \"CL\" | \"CM\" | \"CN\" | \"CO\" | \"CR\" | \"CU\" | \"CV\" | \"CW\" | \"CX\" | \"CY\" | \"CZ\" | \"DE\" | \"DJ\" | \"DK\" | \"DM\" | \"DO\" | \"DZ\" | \"EC\" | \"EE\" | \"EG\" | \"EH\" | \"ER\" | \"ES\" | \"ET\" | \"FI\" | \"FJ\" | \"FK\" | \"FM\" | \"FO\" | \"FR\" | \"GA\" | \"GB\" | \"GD\" | \"GE\" | \"GF\" | \"GG\" | \"GH\" | \"GI\" | \"GL\" | \"GM\" | \"GN\" | \"GP\" | \"GQ\" | \"GR\" | \"GS\" | \"GT\" | \"GU\" | \"GW\" | \"GY\" | \"HK\" | \"HM\" | \"HN\" | \"HR\" | \"HT\" | \"HU\" | \"ID\" | \"IE\" | \"IL\" | \"IM\" | \"IN\" | \"IO\" | \"IQ\" | \"IR\" | \"IS\" | \"IT\" | \"JE\" | \"JM\" | \"JO\" | \"JP\" | \"KE\" | \"KG\" | \"KH\" | \"KI\" | \"KM\" | \"KN\" | \"KP\" | \"KR\" | \"KW\" | \"KY\" | \"KZ\" | \"LA\" | \"LB\" | \"LC\" | \"LI\" | \"LK\" | \"LR\" | \"LS\" | \"LT\" | \"LU\" | \"LV\" | \"LY\" | \"MA\" | \"MC\" | \"MD\" | \"ME\" | \"MF\" | \"MG\" | \"MH\" | \"MK\" | \"ML\" | \"MM\" | \"MN\" | \"MO\" | \"MP\" | \"MQ\" | \"MR\" | \"MS\" | \"MT\" | \"MU\" | \"MV\" | \"MW\" | \"MX\" | \"MY\" | \"MZ\" | \"NA\" | \"NC\" | \"NE\" | \"NF\" | \"NG\" | \"NI\" | \"NL\" | \"NO\" | \"NP\" | \"NR\" | \"NU\" | \"NZ\" | \"OM\" | \"PA\" | \"PE\" | \"PF\" | \"PG\" | \"PH\" | \"PK\" | \"PL\" | \"PM\" | \"PN\" | \"PR\" | \"PT\" | \"PW\" | \"PY\" | \"QA\" | \"RE\" | \"RO\" | \"RS\" | \"RU\" | \"RW\" | \"SA\" | \"SB\" | \"SC\" | \"SD\" | \"SE\" | \"SG\" | \"SH\" | \"SI\" | \"SJ\" | \"SK\" | \"SL\" | \"SM\" | \"SN\" | \"SO\" | \"SR\" | \"SS\" | \"ST\" | \"SV\" | \"SX\" | \"SY\" | \"SZ\" | \"TC\" | \"TD\" | \"TF\" | \"TG\" | \"TH\" | \"TJ\" | \"TK\" | \"TL\" | \"TM\" | \"TN\" | \"TO\" | \"TR\" | \"TT\" | \"TV\" | \"TW\" | \"TZ\" | \"UA\" | \"UG\" | \"UM\" | \"US\" | \"UY\" | \"UZ\" | \"VA\" | \"VC\" | \"VE\" | \"VG\" | \"VI\" | \"VN\" | \"VU\" | \"WF\" | \"WS\" | \"YE\" | \"YT\" | \"ZA\" | \"ZM\" | \"ZW\")",
52
+ value: input.code
53
+ }, _errorFactory)) && ("string" === typeof input.name || __typia_transform__assertGuard._assertGuard(_exceptionable, {
54
+ method: "createAssert",
55
+ path: _path + ".name",
56
+ expected: "string",
57
+ value: input.name
58
+ }, _errorFactory)) && (true === _av9.has(input.longCode) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
59
+ method: "createAssert",
60
+ path: _path + ".longCode",
61
+ expected: "(\"ABW\" | \"AFG\" | \"AGO\" | \"AIA\" | \"ALA\" | \"ALB\" | \"AND\" | \"ARE\" | \"ARG\" | \"ARM\" | \"ASM\" | \"ATA\" | \"ATF\" | \"ATG\" | \"AUS\" | \"AUT\" | \"AZE\" | \"BDI\" | \"BEL\" | \"BEN\" | \"BES\" | \"BFA\" | \"BGD\" | \"BGR\" | \"BHR\" | \"BHS\" | \"BIH\" | \"BLM\" | \"BLR\" | \"BLZ\" | \"BMU\" | \"BOL\" | \"BRA\" | \"BRB\" | \"BRN\" | \"BTN\" | \"BVT\" | \"BWA\" | \"CAF\" | \"CAN\" | \"CCK\" | \"CHE\" | \"CHL\" | \"CHN\" | \"CIV\" | \"CMR\" | \"COD\" | \"COG\" | \"COK\" | \"COL\" | \"COM\" | \"CPV\" | \"CRI\" | \"CUB\" | \"CUW\" | \"CXR\" | \"CYM\" | \"CYP\" | \"CZE\" | \"DEU\" | \"DJI\" | \"DMA\" | \"DNK\" | \"DOM\" | \"DZA\" | \"ECU\" | \"EGY\" | \"ERI\" | \"ESH\" | \"ESP\" | \"EST\" | \"ETH\" | \"FIN\" | \"FJI\" | \"FLK\" | \"FRA\" | \"FRO\" | \"FSM\" | \"GAB\" | \"GBR\" | \"GEO\" | \"GGY\" | \"GHA\" | \"GIB\" | \"GIN\" | \"GLP\" | \"GMB\" | \"GNB\" | \"GNQ\" | \"GRC\" | \"GRD\" | \"GRL\" | \"GTM\" | \"GUF\" | \"GUM\" | \"GUY\" | \"HKG\" | \"HMD\" | \"HND\" | \"HRV\" | \"HTI\" | \"HUN\" | \"IDN\" | \"IMN\" | \"IND\" | \"IOT\" | \"IRL\" | \"IRN\" | \"IRQ\" | \"ISL\" | \"ISR\" | \"ITA\" | \"JAM\" | \"JEY\" | \"JOR\" | \"JPN\" | \"KAZ\" | \"KEN\" | \"KGZ\" | \"KHM\" | \"KIR\" | \"KNA\" | \"KOR\" | \"KWT\" | \"LAO\" | \"LBN\" | \"LBR\" | \"LBY\" | \"LCA\" | \"LIE\" | \"LKA\" | \"LSO\" | \"LTU\" | \"LUX\" | \"LVA\" | \"MAC\" | \"MAF\" | \"MAR\" | \"MCO\" | \"MDA\" | \"MDG\" | \"MDV\" | \"MEX\" | \"MHL\" | \"MKD\" | \"MLI\" | \"MLT\" | \"MMR\" | \"MNE\" | \"MNG\" | \"MNP\" | \"MOZ\" | \"MRT\" | \"MSR\" | \"MTQ\" | \"MUS\" | \"MWI\" | \"MYS\" | \"MYT\" | \"NAM\" | \"NCL\" | \"NER\" | \"NFK\" | \"NGA\" | \"NIC\" | \"NIU\" | \"NLD\" | \"NOR\" | \"NPL\" | \"NRU\" | \"NZL\" | \"OMN\" | \"PAK\" | \"PAN\" | \"PCN\" | \"PER\" | \"PHL\" | \"PLW\" | \"PNG\" | \"POL\" | \"PRI\" | \"PRK\" | \"PRT\" | \"PRY\" | \"PYF\" | \"QAT\" | \"REU\" | \"ROU\" | \"RUS\" | \"RWA\" | \"SAU\" | \"SDN\" | \"SEN\" | \"SGP\" | \"SGS\" | \"SHN\" | \"SJM\" | \"SLB\" | \"SLE\" | \"SLV\" | \"SMR\" | \"SOM\" | \"SPM\" | \"SRB\" | \"SSD\" | \"STP\" | \"SUR\" | \"SVK\" | \"SVN\" | \"SWE\" | \"SWZ\" | \"SXM\" | \"SYC\" | \"SYR\" | \"TCA\" | \"TCD\" | \"TGO\" | \"THA\" | \"TJK\" | \"TKL\" | \"TKM\" | \"TLS\" | \"TON\" | \"TTO\" | \"TUN\" | \"TUR\" | \"TUV\" | \"TWN\" | \"TZA\" | \"UGA\" | \"UKR\" | \"UMI\" | \"URY\" | \"USA\" | \"UZB\" | \"VAT\" | \"VCT\" | \"VEN\" | \"VGB\" | \"VIR\" | \"VNM\" | \"VUT\" | \"WLF\" | \"WSM\" | \"YEM\" | \"ZAF\" | \"ZMB\" | \"ZWE\")",
62
+ value: input.longCode
63
+ }, _errorFactory)) && (true === _av10.has(input.numericCode) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
64
+ method: "createAssert",
65
+ path: _path + ".numericCode",
66
+ expected: "(\"004\" | \"008\" | \"010\" | \"012\" | \"016\" | \"020\" | \"024\" | \"028\" | \"031\" | \"032\" | \"036\" | \"040\" | \"044\" | \"048\" | \"050\" | \"051\" | \"052\" | \"056\" | \"060\" | \"064\" | \"068\" | \"070\" | \"072\" | \"074\" | \"076\" | \"084\" | \"086\" | \"090\" | \"092\" | \"096\" | \"100\" | \"104\" | \"108\" | \"112\" | \"116\" | \"120\" | \"124\" | \"132\" | \"136\" | \"140\" | \"144\" | \"148\" | \"152\" | \"156\" | \"158\" | \"162\" | \"166\" | \"170\" | \"174\" | \"175\" | \"178\" | \"180\" | \"184\" | \"188\" | \"191\" | \"192\" | \"196\" | \"203\" | \"204\" | \"208\" | \"212\" | \"214\" | \"218\" | \"222\" | \"226\" | \"231\" | \"232\" | \"233\" | \"234\" | \"238\" | \"239\" | \"242\" | \"246\" | \"248\" | \"250\" | \"254\" | \"258\" | \"260\" | \"262\" | \"266\" | \"268\" | \"270\" | \"276\" | \"288\" | \"292\" | \"296\" | \"300\" | \"304\" | \"308\" | \"312\" | \"316\" | \"320\" | \"324\" | \"328\" | \"332\" | \"334\" | \"336\" | \"340\" | \"344\" | \"348\" | \"352\" | \"356\" | \"360\" | \"364\" | \"368\" | \"372\" | \"376\" | \"380\" | \"384\" | \"388\" | \"392\" | \"398\" | \"400\" | \"404\" | \"408\" | \"410\" | \"414\" | \"417\" | \"418\" | \"422\" | \"426\" | \"428\" | \"430\" | \"434\" | \"438\" | \"440\" | \"442\" | \"446\" | \"450\" | \"454\" | \"458\" | \"462\" | \"466\" | \"470\" | \"474\" | \"478\" | \"480\" | \"484\" | \"492\" | \"496\" | \"498\" | \"499\" | \"500\" | \"504\" | \"508\" | \"512\" | \"516\" | \"520\" | \"524\" | \"528\" | \"531\" | \"533\" | \"534\" | \"535\" | \"540\" | \"548\" | \"554\" | \"558\" | \"562\" | \"566\" | \"570\" | \"574\" | \"578\" | \"580\" | \"581\" | \"583\" | \"584\" | \"585\" | \"586\" | \"591\" | \"598\" | \"600\" | \"604\" | \"608\" | \"612\" | \"616\" | \"620\" | \"624\" | \"626\" | \"630\" | \"634\" | \"638\" | \"642\" | \"643\" | \"646\" | \"652\" | \"654\" | \"659\" | \"660\" | \"662\" | \"663\" | \"666\" | \"670\" | \"674\" | \"678\" | \"682\" | \"686\" | \"688\" | \"690\" | \"694\" | \"702\" | \"703\" | \"704\" | \"705\" | \"706\" | \"710\" | \"716\" | \"724\" | \"728\" | \"729\" | \"732\" | \"740\" | \"744\" | \"748\" | \"752\" | \"756\" | \"760\" | \"762\" | \"764\" | \"768\" | \"772\" | \"776\" | \"780\" | \"784\" | \"788\" | \"792\" | \"795\" | \"796\" | \"798\" | \"800\" | \"804\" | \"807\" | \"818\" | \"826\" | \"831\" | \"832\" | \"833\" | \"834\" | \"840\" | \"850\" | \"854\" | \"858\" | \"860\" | \"862\" | \"876\" | \"882\" | \"887\" | \"894\")",
67
+ value: input.numericCode
68
+ }, _errorFactory)) && ("string" === typeof input.dialCode || __typia_transform__assertGuard._assertGuard(_exceptionable, {
69
+ method: "createAssert",
70
+ path: _path + ".dialCode",
71
+ expected: "string",
72
+ value: input.dialCode
73
+ }, _errorFactory)) && (undefined === input.region || ("object" === typeof input.region && null !== input.region && false === Array.isArray(input.region) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
74
+ method: "createAssert",
75
+ path: _path + ".region",
76
+ expected: "(CountryRegionInformation | undefined)",
77
+ value: input.region
78
+ }, _errorFactory)) && _ao2(input.region, _path + ".region", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
79
+ method: "createAssert",
80
+ path: _path + ".region",
81
+ expected: "(CountryRegionInformation | undefined)",
82
+ value: input.region
83
+ }, _errorFactory)); const _ao2 = (input, _path, _exceptionable = true) => (undefined === input.primary || ("object" === typeof input.primary && null !== input.primary || __typia_transform__assertGuard._assertGuard(_exceptionable, {
84
+ method: "createAssert",
85
+ path: _path + ".primary",
86
+ expected: "(SingleCountryRegionInformation | undefined)",
87
+ value: input.primary
88
+ }, _errorFactory)) && _ao3(input.primary, _path + ".primary", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
89
+ method: "createAssert",
90
+ path: _path + ".primary",
91
+ expected: "(SingleCountryRegionInformation | undefined)",
92
+ value: input.primary
93
+ }, _errorFactory)) && (undefined === input.subRegion || ("object" === typeof input.subRegion && null !== input.subRegion || __typia_transform__assertGuard._assertGuard(_exceptionable, {
94
+ method: "createAssert",
95
+ path: _path + ".subRegion",
96
+ expected: "(SingleCountryRegionInformation | undefined)",
97
+ value: input.subRegion
98
+ }, _errorFactory)) && _ao3(input.subRegion, _path + ".subRegion", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
99
+ method: "createAssert",
100
+ path: _path + ".subRegion",
101
+ expected: "(SingleCountryRegionInformation | undefined)",
102
+ value: input.subRegion
103
+ }, _errorFactory)) && (undefined === input.intermediateRegion || ("object" === typeof input.intermediateRegion && null !== input.intermediateRegion || __typia_transform__assertGuard._assertGuard(_exceptionable, {
104
+ method: "createAssert",
105
+ path: _path + ".intermediateRegion",
106
+ expected: "(SingleCountryRegionInformation | undefined)",
107
+ value: input.intermediateRegion
108
+ }, _errorFactory)) && _ao3(input.intermediateRegion, _path + ".intermediateRegion", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
109
+ method: "createAssert",
110
+ path: _path + ".intermediateRegion",
111
+ expected: "(SingleCountryRegionInformation | undefined)",
112
+ value: input.intermediateRegion
113
+ }, _errorFactory)); const _ao3 = (input, _path, _exceptionable = true) => ("string" === typeof input.name || __typia_transform__assertGuard._assertGuard(_exceptionable, {
114
+ method: "createAssert",
115
+ path: _path + ".name",
116
+ expected: "string",
117
+ value: input.name
118
+ }, _errorFactory)) && ("string" === typeof input.code || __typia_transform__assertGuard._assertGuard(_exceptionable, {
119
+ method: "createAssert",
120
+ path: _path + ".code",
121
+ expected: "string",
122
+ value: input.code
123
+ }, _errorFactory)); const _ao4 = (input, _path, _exceptionable = true) => ("string" === typeof input.nonce || __typia_transform__assertGuard._assertGuard(_exceptionable, {
124
+ method: "createAssert",
125
+ path: _path + ".nonce",
126
+ expected: "string",
127
+ value: input.nonce
128
+ }, _errorFactory)) && ("string" === typeof input.timestamp || __typia_transform__assertGuard._assertGuard(_exceptionable, {
129
+ method: "createAssert",
130
+ path: _path + ".timestamp",
131
+ expected: "string",
132
+ value: input.timestamp
133
+ }, _errorFactory)) && ("string" === typeof input.signature || __typia_transform__assertGuard._assertGuard(_exceptionable, {
134
+ method: "createAssert",
135
+ path: _path + ".signature",
136
+ expected: "string",
137
+ value: input.signature
138
+ }, _errorFactory)); const __is = input => "object" === typeof input && null !== input && _io0(input); let _errorFactory; return (input, errorFactory) => {
139
+ if (false === __is(input)) {
140
+ _errorFactory = errorFactory;
141
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || __typia_transform__assertGuard._assertGuard(true, {
142
+ method: "createAssert",
143
+ path: _path + "",
144
+ expected: "KeetaKYCAnchorCreateVerificationRequest",
145
+ value: input
146
+ }, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
147
+ method: "createAssert",
148
+ path: _path + "",
149
+ expected: "KeetaKYCAnchorCreateVerificationRequest",
150
+ value: input
151
+ }, _errorFactory))(input, "$input", true);
152
+ }
153
+ return input;
154
+ }; })();
155
+ export const assertCreateVerificationResponse = (() => { const _io0 = input => true === input.ok && "string" === typeof input.id && ("object" === typeof input.expectedCost && null !== input.expectedCost && _io1(input.expectedCost)) && "string" === typeof input.webURL; const _io1 = input => "string" === typeof input.min && "string" === typeof input.max && ("string" === typeof input.token && (RegExp(/^keeta_am(.*)/).test(input.token) || RegExp(/^keeta_an(.*)/).test(input.token) || RegExp(/^keeta_ao(.*)/).test(input.token) || RegExp(/^keeta_ap(.*)/).test(input.token) || RegExp(/^tyblocks_am(.*)/).test(input.token) || RegExp(/^tyblocks_an(.*)/).test(input.token) || RegExp(/^tyblocks_ao(.*)/).test(input.token) || RegExp(/^tyblocks_ap(.*)/).test(input.token))); const _io2 = input => false === input.ok && "string" === typeof input.error; const _iu0 = input => (() => {
156
+ if (true === input.ok)
157
+ return _io0(input);
158
+ else if (false === input.ok)
159
+ return _io2(input);
160
+ else
161
+ return false;
162
+ })(); const _ao0 = (input, _path, _exceptionable = true) => (true === input.ok || __typia_transform__assertGuard._assertGuard(_exceptionable, {
163
+ method: "createAssert",
164
+ path: _path + ".ok",
165
+ expected: "true",
166
+ value: input.ok
167
+ }, _errorFactory)) && ("string" === typeof input.id || __typia_transform__assertGuard._assertGuard(_exceptionable, {
168
+ method: "createAssert",
169
+ path: _path + ".id",
170
+ expected: "string",
171
+ value: input.id
172
+ }, _errorFactory)) && (("object" === typeof input.expectedCost && null !== input.expectedCost || __typia_transform__assertGuard._assertGuard(_exceptionable, {
173
+ method: "createAssert",
174
+ path: _path + ".expectedCost",
175
+ expected: "__type.o1",
176
+ value: input.expectedCost
177
+ }, _errorFactory)) && _ao1(input.expectedCost, _path + ".expectedCost", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
178
+ method: "createAssert",
179
+ path: _path + ".expectedCost",
180
+ expected: "__type.o1",
181
+ value: input.expectedCost
182
+ }, _errorFactory)) && ("string" === typeof input.webURL || __typia_transform__assertGuard._assertGuard(_exceptionable, {
183
+ method: "createAssert",
184
+ path: _path + ".webURL",
185
+ expected: "string",
186
+ value: input.webURL
187
+ }, _errorFactory)); const _ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.min || __typia_transform__assertGuard._assertGuard(_exceptionable, {
188
+ method: "createAssert",
189
+ path: _path + ".min",
190
+ expected: "string",
191
+ value: input.min
192
+ }, _errorFactory)) && ("string" === typeof input.max || __typia_transform__assertGuard._assertGuard(_exceptionable, {
193
+ method: "createAssert",
194
+ path: _path + ".max",
195
+ expected: "string",
196
+ value: input.max
197
+ }, _errorFactory)) && ("string" === typeof input.token && (RegExp(/^keeta_am(.*)/).test(input.token) || RegExp(/^keeta_an(.*)/).test(input.token) || RegExp(/^keeta_ao(.*)/).test(input.token) || RegExp(/^keeta_ap(.*)/).test(input.token) || RegExp(/^tyblocks_am(.*)/).test(input.token) || RegExp(/^tyblocks_an(.*)/).test(input.token) || RegExp(/^tyblocks_ao(.*)/).test(input.token) || RegExp(/^tyblocks_ap(.*)/).test(input.token)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
198
+ method: "createAssert",
199
+ path: _path + ".token",
200
+ expected: "(`keeta_am${string}` | `keeta_an${string}` | `keeta_ao${string}` | `keeta_ap${string}` | `tyblocks_am${string}` | `tyblocks_an${string}` | `tyblocks_ao${string}` | `tyblocks_ap${string}`)",
201
+ value: input.token
202
+ }, _errorFactory)); const _ao2 = (input, _path, _exceptionable = true) => (false === input.ok || __typia_transform__assertGuard._assertGuard(_exceptionable, {
203
+ method: "createAssert",
204
+ path: _path + ".ok",
205
+ expected: "false",
206
+ value: input.ok
207
+ }, _errorFactory)) && ("string" === typeof input.error || __typia_transform__assertGuard._assertGuard(_exceptionable, {
208
+ method: "createAssert",
209
+ path: _path + ".error",
210
+ expected: "string",
211
+ value: input.error
212
+ }, _errorFactory)); const _au0 = (input, _path, _exceptionable = true) => (() => {
213
+ if (true === input.ok)
214
+ return _ao0(input, _path, true && _exceptionable);
215
+ else if (false === input.ok)
216
+ return _ao2(input, _path, true && _exceptionable);
217
+ else
218
+ return __typia_transform__assertGuard._assertGuard(_exceptionable, {
219
+ method: "createAssert",
220
+ path: _path,
221
+ expected: "(__type | __type.o2)",
222
+ value: input
223
+ }, _errorFactory);
224
+ })(); const __is = input => "object" === typeof input && null !== input && _iu0(input); let _errorFactory; return (input, errorFactory) => {
225
+ if (false === __is(input)) {
226
+ _errorFactory = errorFactory;
227
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || __typia_transform__assertGuard._assertGuard(true, {
228
+ method: "createAssert",
229
+ path: _path + "",
230
+ expected: "(__type | __type.o2)",
231
+ value: input
232
+ }, _errorFactory)) && _au0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
233
+ method: "createAssert",
234
+ path: _path + "",
235
+ expected: "(__type | __type.o2)",
236
+ value: input
237
+ }, _errorFactory))(input, "$input", true);
238
+ }
239
+ return input;
240
+ }; })();
241
+ //# sourceMappingURL=common.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.generated.js","sourceRoot":"","sources":["../../../src/services/kyc/common.generated.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAMrC,MAAM,CAAC,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAoI,CAAC;AACjL,MAAM,CAAC,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAsI,CAAC","sourcesContent":["import { createAssert } from 'typia';\nimport type {\n\tKeetaKYCAnchorCreateVerificationRequest,\n\tKeetaKYCAnchorCreateVerificationResponse\n} from './common.ts';\n\nexport const assertCreateVerificationRequest: ReturnType<typeof createAssert<KeetaKYCAnchorCreateVerificationRequest>> = createAssert<KeetaKYCAnchorCreateVerificationRequest>();\nexport const assertCreateVerificationResponse: ReturnType<typeof createAssert<KeetaKYCAnchorCreateVerificationResponse>> = createAssert<KeetaKYCAnchorCreateVerificationResponse>();\n"]}
@@ -1,2 +1,69 @@
1
- export {};
1
+ import * as KeetaNet from '@keetanetwork/keetanet-client';
2
+ import * as Signing from '../../lib/utils/signing.js';
3
+ import { KeetaAnchorUserError } from '../../lib/error.js';
4
+ class KeetaKYCAnchorVerificationNotFoundError extends KeetaAnchorUserError {
5
+ statusCode = 400;
6
+ constructor(message) {
7
+ super(message ?? 'Verification ID not found');
8
+ }
9
+ }
10
+ class KeetaKYCAnchorCertificateNotFoundError extends KeetaAnchorUserError {
11
+ statusCode = 404;
12
+ constructor(message) {
13
+ super(message ?? 'Certificate not found (pending)');
14
+ }
15
+ }
16
+ class KeetaKYCAnchorCertificatePaymentRequired extends KeetaAnchorUserError {
17
+ statusCode = 402;
18
+ amount;
19
+ token;
20
+ constructor(cost, message) {
21
+ super(message ?? 'Payment required for certificate');
22
+ this.amount = BigInt(cost.amount);
23
+ this.token = KeetaNet.lib.Account.toAccount(cost.token);
24
+ }
25
+ asErrorResponse(contentType) {
26
+ let message = this.message;
27
+ if (contentType === 'application/json') {
28
+ message = JSON.stringify({
29
+ ok: false,
30
+ code: 'KEETA_ANCHOR_KYC_PAYMENT_REQUIRED',
31
+ data: {
32
+ cost: {
33
+ amount: `0x${this.amount.toString(16)}`,
34
+ token: this.token.publicKeyString.get()
35
+ }
36
+ },
37
+ error: this.message
38
+ });
39
+ }
40
+ return ({
41
+ error: message,
42
+ statusCode: this.statusCode,
43
+ contentType: contentType
44
+ });
45
+ }
46
+ }
47
+ export const Errors = {
48
+ /**
49
+ * The verification ID was not found
50
+ */
51
+ VerificationNotFound: KeetaKYCAnchorVerificationNotFoundError,
52
+ /**
53
+ * The certificate for the verification ID was not found
54
+ * (typically this means the verification is still pending)
55
+ */
56
+ CertificateNotFound: KeetaKYCAnchorCertificateNotFoundError,
57
+ /**
58
+ * Payment is required for the certificate
59
+ */
60
+ PaymentRequired: KeetaKYCAnchorCertificatePaymentRequired
61
+ };
62
+ export async function generateSignedData(account) {
63
+ return (await Signing.SignData(account, []));
64
+ }
65
+ export async function verifySignedData(request) {
66
+ const account = KeetaNet.lib.Account.fromPublicKeyString(request.account);
67
+ return (await Signing.VerifySignedData(account, [], request.signed));
68
+ }
2
69
  //# sourceMappingURL=common.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/services/kyc/common.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n\tServiceMetadata,\n\tServiceSearchCriteria\n} from '../../lib/resolver.ts';\nimport type { lib as KeetaNetLib } from '@keetanetwork/keetanet-client';\n\nexport type CountryCodesSearchCriteria = ServiceSearchCriteria<'kyc'>['countryCodes'];\n\nexport type Operations = NonNullable<ServiceMetadata['services']['kyc']>[string]['operations'];\nexport type OperationNames = keyof Operations;\n\nexport interface KeetaKYCAnchorCreateVerificationRequest {\n\tcountryCodes: CountryCodesSearchCriteria;\n\taccount: ReturnType<InstanceType<typeof KeetaNetLib.Account>['publicKeyString']['get']>;\n\tsigned: {\n\t\tnonce: string;\n\t\t/* Date and time of the request in ISO 8601 format */\n\t\ttimestamp: string;\n\t\t/* Signature of the account public key and the nonce as an ASN.1 Sequence, Base64 DER */\n\t\tsignature: string;\n\t};\n}\n\ntype KeetaNetTokenPublicKeyString = ReturnType<InstanceType<typeof KeetaNetLib.Account<typeof KeetaNetLib.Account.AccountKeyAlgorithm.TOKEN>>['publicKeyString']['get']>;\nexport type KeetaKYCAnchorCreateVerificationResponse = ({\n\tok: true;\n\n\t/**\n\t * The ID of the verification request -- this is a unique identifier\n\t * for the verification request that can be used to fetch the\n\t * certificate later\n\t */\n\tid: string;\n\t/**\n\t * The expected cost of the verification request, in the form of a\n\t * token and a range of minimum and maximum expected costs\n\t */\n\texpectedCost: {\n\t\tmin: string;\n\t\tmax: string;\n\t\ttoken: KeetaNetTokenPublicKeyString;\n\t};\n\t/**\n\t * The URL to the verification service where the user can complete the\n\t * verification process. This URL is expected to be a web URL that the\n\t * user can visit to complete the verification.\n\t */\n\twebURL: string;\n} | {\n\tok: false;\n\terror: string;\n});\n\nexport type KeetaKYCAnchorGetCertificateResponse = ({\n\tok: true;\n\t/**\n\t * The certificates that were issued by the KYC Anchor service.\n\t * Typically this will just be a single certificate, but\n\t * it could also be multiple certificates if the service\n\t * issues multiple certificates for a single verification.\n\t *\n\t * Each certificate is represented as a PEM-encoded string.\n\t * The `intermediates` field is optional and may contain\n\t * additional intermediate certificates that are required to\n\t * validate the certificate chain.\n\t */\n\tresults: ({\n\t\tcertificate: string;\n\t\tintermediates?: string[];\n\t})[];\n} | {\n\tok: false;\n\terror: string;\n});\n"]}
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/services/kyc/common.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,QAAQ,MAAM,+BAA+B,CAAC;AAC1D,OAAO,KAAK,OAAO,MAAM,4BAA4B,CAAC;AACtD,OAAO,EACN,oBAAoB,EACpB,MAAM,oBAAoB,CAAC;AAyE5B,MAAM,uCAAwC,SAAQ,oBAAoB;IAC/D,UAAU,GAAG,GAAG,CAAC;IAC3B,YAAY,OAAgB;QAC3B,KAAK,CAAC,OAAO,IAAI,2BAA2B,CAAC,CAAC;IAC/C,CAAC;CACD;AAED,MAAM,sCAAuC,SAAQ,oBAAoB;IAC9D,UAAU,GAAG,GAAG,CAAC;IAC3B,YAAY,OAAgB;QAC3B,KAAK,CAAC,OAAO,IAAI,iCAAiC,CAAC,CAAC;IACrD,CAAC;CACD;AAED,MAAM,wCAAyC,SAAQ,oBAAoB;IAChE,UAAU,GAAG,GAAG,CAAC;IAClB,MAAM,CAAS;IACf,KAAK,CAAgB;IAC9B,YAAY,IAAiE,EAAE,OAAgB;QAC9F,KAAK,CAAC,OAAO,IAAI,kCAAkC,CAAC,CAAC;QAErD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS,CAAwD,IAAI,CAAC,KAAK,CAAC,CAAC;IAChH,CAAC;IAED,eAAe,CAAC,WAA8C;QAC7D,IAAI,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC3B,IAAI,WAAW,KAAK,kBAAkB,EAAE,CAAC;YACxC,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC;gBACxB,EAAE,EAAE,KAAK;gBACT,IAAI,EAAE,mCAAmC;gBACzC,IAAI,EAAE;oBACL,IAAI,EAAE;wBACL,MAAM,EAAE,KAAK,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE;wBACvC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE;qBACvC;iBACD;gBACD,KAAK,EAAE,IAAI,CAAC,OAAO;aACnB,CAAC,CAAC;QACJ,CAAC;QAED,OAAM,CAAC;YACN,KAAK,EAAE,OAAO;YACd,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,WAAW,EAAE,WAAW;SACxB,CAAC,CAAC;IACJ,CAAC;CACD;AAED,MAAM,CAAC,MAAM,MAAM,GAIf;IACH;;OAEG;IACH,oBAAoB,EAAE,uCAAuC;IAE7D;;;OAGG;IACH,mBAAmB,EAAE,sCAAsC;IAE3D;;OAEG;IACH,eAAe,EAAE,wCAAwC;CACzD,CAAA;AAED,MAAM,CAAC,KAAK,UAAU,kBAAkB,CAAC,OAAgC;IACxE,OAAM,CAAC,MAAM,OAAO,CAAC,QAAQ,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;AAC7C,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,OAA4E;IAClH,MAAM,OAAO,GAAG,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,mBAAmB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC1E,OAAM,CAAC,MAAM,OAAO,CAAC,gBAAgB,CAAC,OAAO,EAAE,EAAE,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;AACrE,CAAC","sourcesContent":["import type {\n\tServiceMetadata,\n\tServiceSearchCriteria\n} from '../../lib/resolver.ts';\nimport * as KeetaNet from '@keetanetwork/keetanet-client';\nimport * as Signing from '../../lib/utils/signing.js';\nimport {\n\tKeetaAnchorUserError\n} from '../../lib/error.js';\n\ntype KeetaNetToken = InstanceType<typeof KeetaNet.lib.Account<typeof KeetaNet.lib.Account.AccountKeyAlgorithm.TOKEN>>;\n\nexport type CountryCodesSearchCriteria = ServiceSearchCriteria<'kyc'>['countryCodes'];\n\nexport type Operations = NonNullable<ServiceMetadata['services']['kyc']>[string]['operations'];\nexport type OperationNames = keyof Operations;\n\nexport interface KeetaKYCAnchorCreateVerificationRequest {\n\tcountryCodes: CountryCodesSearchCriteria;\n\taccount: ReturnType<InstanceType<typeof KeetaNet.lib.Account>['publicKeyString']['get']>;\n\tsigned: {\n\t\tnonce: string;\n\t\t/* Date and time of the request in ISO 8601 format */\n\t\ttimestamp: string;\n\t\t/* Signature of the account public key and the nonce as an ASN.1 Sequence, Base64 DER */\n\t\tsignature: string;\n\t};\n}\n\ntype KeetaNetTokenPublicKeyString = ReturnType<InstanceType<typeof KeetaNet.lib.Account<typeof KeetaNet.lib.Account.AccountKeyAlgorithm.TOKEN>>['publicKeyString']['get']>;\nexport type KeetaKYCAnchorCreateVerificationResponse = ({\n\tok: true;\n\n\t/**\n\t * The ID of the verification request -- this is a unique identifier\n\t * for the verification request that can be used to fetch the\n\t * certificate later\n\t */\n\tid: string;\n\t/**\n\t * The expected cost of the verification request, in the form of a\n\t * token and a range of minimum and maximum expected costs\n\t */\n\texpectedCost: {\n\t\tmin: string;\n\t\tmax: string;\n\t\ttoken: KeetaNetTokenPublicKeyString;\n\t};\n\t/**\n\t * The URL to the verification service where the user can complete the\n\t * verification process. This URL is expected to be a web URL that the\n\t * user can visit to complete the verification.\n\t */\n\twebURL: string;\n} | {\n\tok: false;\n\terror: string;\n});\n\nexport type KeetaKYCAnchorGetCertificateResponse = ({\n\tok: true;\n\t/**\n\t * The certificates that were issued by the KYC Anchor service.\n\t * Typically this will just be a single certificate, but\n\t * it could also be multiple certificates if the service\n\t * issues multiple certificates for a single verification.\n\t *\n\t * Each certificate is represented as a PEM-encoded string.\n\t * The `intermediates` field is optional and may contain\n\t * additional intermediate certificates that are required to\n\t * validate the certificate chain.\n\t */\n\tresults: ({\n\t\tcertificate: string;\n\t\tintermediates?: string[];\n\t})[];\n} | {\n\tok: false;\n\terror: string;\n});\n\nclass KeetaKYCAnchorVerificationNotFoundError extends KeetaAnchorUserError {\n\tprotected statusCode = 400;\n\tconstructor(message?: string) {\n\t\tsuper(message ?? 'Verification ID not found');\n\t}\n}\n\nclass KeetaKYCAnchorCertificateNotFoundError extends KeetaAnchorUserError {\n\tprotected statusCode = 404;\n\tconstructor(message?: string) {\n\t\tsuper(message ?? 'Certificate not found (pending)');\n\t}\n}\n\nclass KeetaKYCAnchorCertificatePaymentRequired extends KeetaAnchorUserError {\n\tprotected statusCode = 402;\n\treadonly amount: bigint;\n\treadonly token: KeetaNetToken;\n\tconstructor(cost: { amount: bigint | string; token: KeetaNetToken | string; }, message?: string) {\n\t\tsuper(message ?? 'Payment required for certificate');\n\n\t\tthis.amount = BigInt(cost.amount);\n\t\tthis.token = KeetaNet.lib.Account.toAccount<typeof KeetaNet.lib.Account.AccountKeyAlgorithm.TOKEN>(cost.token);\n\t}\n\n\tasErrorResponse(contentType: 'text/plain' | 'application/json'): { error: string; statusCode: number; contentType: string } {\n\t\tlet message = this.message;\n\t\tif (contentType === 'application/json') {\n\t\t\tmessage = JSON.stringify({\n\t\t\t\tok: false,\n\t\t\t\tcode: 'KEETA_ANCHOR_KYC_PAYMENT_REQUIRED',\n\t\t\t\tdata: {\n\t\t\t\t\tcost: {\n\t\t\t\t\t\tamount: `0x${this.amount.toString(16)}`,\n\t\t\t\t\t\ttoken: this.token.publicKeyString.get()\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\terror: this.message\n\t\t\t});\n\t\t}\n\n\t\treturn({\n\t\t\terror: message,\n\t\t\tstatusCode: this.statusCode,\n\t\t\tcontentType: contentType\n\t\t});\n\t}\n}\n\nexport const Errors: {\n\tVerificationNotFound: typeof KeetaKYCAnchorVerificationNotFoundError;\n\tCertificateNotFound: typeof KeetaKYCAnchorCertificateNotFoundError;\n\tPaymentRequired: typeof KeetaKYCAnchorCertificatePaymentRequired;\n} = {\n\t/**\n\t * The verification ID was not found\n\t */\n\tVerificationNotFound: KeetaKYCAnchorVerificationNotFoundError,\n\n\t/**\n\t * The certificate for the verification ID was not found\n\t * (typically this means the verification is still pending)\n\t */\n\tCertificateNotFound: KeetaKYCAnchorCertificateNotFoundError,\n\n\t/**\n\t * Payment is required for the certificate\n\t */\n\tPaymentRequired: KeetaKYCAnchorCertificatePaymentRequired\n}\n\nexport async function generateSignedData(account: Signing.SignableAccount): Promise<{ nonce: string; timestamp: string; signature: string; }> {\n\treturn(await Signing.SignData(account, []));\n}\n\nexport async function verifySignedData(request: Pick<KeetaKYCAnchorCreateVerificationRequest, 'account' | 'signed'>): Promise<boolean> {\n\tconst account = KeetaNet.lib.Account.fromPublicKeyString(request.account);\n\treturn(await Signing.VerifySignedData(account, [], request.signed));\n}\n"]}