postgrid-node 0.4.2 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (422) hide show
  1. package/CHANGELOG.md +93 -0
  2. package/LICENSE +1 -1
  3. package/README.md +15 -12
  4. package/client.d.mts +35 -15
  5. package/client.d.mts.map +1 -1
  6. package/client.d.ts +35 -15
  7. package/client.d.ts.map +1 -1
  8. package/client.js +61 -15
  9. package/client.js.map +1 -1
  10. package/client.mjs +62 -16
  11. package/client.mjs.map +1 -1
  12. package/internal/parse.d.mts.map +1 -1
  13. package/internal/parse.d.ts.map +1 -1
  14. package/internal/parse.js +5 -0
  15. package/internal/parse.js.map +1 -1
  16. package/internal/parse.mjs +5 -0
  17. package/internal/parse.mjs.map +1 -1
  18. package/internal/types.d.mts +6 -6
  19. package/internal/types.d.mts.map +1 -1
  20. package/internal/types.d.ts +6 -6
  21. package/internal/types.d.ts.map +1 -1
  22. package/internal/utils/env.js +2 -2
  23. package/internal/utils/env.js.map +1 -1
  24. package/internal/utils/env.mjs +2 -2
  25. package/internal/utils/env.mjs.map +1 -1
  26. package/internal/utils/log.d.mts.map +1 -1
  27. package/internal/utils/log.d.ts.map +1 -1
  28. package/internal/utils/log.js +3 -2
  29. package/internal/utils/log.js.map +1 -1
  30. package/internal/utils/log.mjs +3 -2
  31. package/internal/utils/log.mjs.map +1 -1
  32. package/internal/utils/query.d.mts +5 -0
  33. package/internal/utils/query.d.mts.map +1 -0
  34. package/internal/utils/query.d.ts +5 -0
  35. package/internal/utils/query.d.ts.map +1 -0
  36. package/internal/utils/query.js +23 -0
  37. package/internal/utils/query.js.map +1 -0
  38. package/internal/utils/query.mjs +20 -0
  39. package/internal/utils/query.mjs.map +1 -0
  40. package/internal/utils.d.mts +1 -0
  41. package/internal/utils.d.ts +1 -0
  42. package/internal/utils.js +1 -0
  43. package/internal/utils.js.map +1 -1
  44. package/internal/utils.mjs +1 -0
  45. package/package.json +9 -3
  46. package/resources/address-verification.d.mts +1689 -15
  47. package/resources/address-verification.d.mts.map +1 -1
  48. package/resources/address-verification.d.ts +1689 -15
  49. package/resources/address-verification.d.ts.map +1 -1
  50. package/resources/address-verification.js +200 -0
  51. package/resources/address-verification.js.map +1 -1
  52. package/resources/address-verification.mjs +200 -0
  53. package/resources/address-verification.mjs.map +1 -1
  54. package/resources/index.d.mts +3 -3
  55. package/resources/index.d.mts.map +1 -1
  56. package/resources/index.d.ts +3 -3
  57. package/resources/index.d.ts.map +1 -1
  58. package/resources/index.js.map +1 -1
  59. package/resources/index.mjs +1 -1
  60. package/resources/index.mjs.map +1 -1
  61. package/resources/intl-address-verification.d.mts +956 -35
  62. package/resources/intl-address-verification.d.mts.map +1 -1
  63. package/resources/intl-address-verification.d.ts +956 -35
  64. package/resources/intl-address-verification.d.ts.map +1 -1
  65. package/resources/intl-address-verification.js +121 -27
  66. package/resources/intl-address-verification.js.map +1 -1
  67. package/resources/intl-address-verification.mjs +121 -27
  68. package/resources/intl-address-verification.mjs.map +1 -1
  69. package/resources/print-mail/boxes.d.mts +733 -59
  70. package/resources/print-mail/boxes.d.mts.map +1 -1
  71. package/resources/print-mail/boxes.d.ts +733 -59
  72. package/resources/print-mail/boxes.d.ts.map +1 -1
  73. package/resources/print-mail/boxes.js +19 -1
  74. package/resources/print-mail/boxes.js.map +1 -1
  75. package/resources/print-mail/boxes.mjs +19 -1
  76. package/resources/print-mail/boxes.mjs.map +1 -1
  77. package/resources/print-mail/campaigns.d.mts +923 -34
  78. package/resources/print-mail/campaigns.d.mts.map +1 -1
  79. package/resources/print-mail/campaigns.d.ts +923 -34
  80. package/resources/print-mail/campaigns.d.ts.map +1 -1
  81. package/resources/print-mail/campaigns.js +10 -3
  82. package/resources/print-mail/campaigns.js.map +1 -1
  83. package/resources/print-mail/campaigns.mjs +10 -3
  84. package/resources/print-mail/campaigns.mjs.map +1 -1
  85. package/resources/print-mail/cheques.d.mts +60 -11
  86. package/resources/print-mail/cheques.d.mts.map +1 -1
  87. package/resources/print-mail/cheques.d.ts +60 -11
  88. package/resources/print-mail/cheques.d.ts.map +1 -1
  89. package/resources/print-mail/cheques.js +32 -0
  90. package/resources/print-mail/cheques.js.map +1 -1
  91. package/resources/print-mail/cheques.mjs +32 -0
  92. package/resources/print-mail/cheques.mjs.map +1 -1
  93. package/resources/print-mail/contacts.d.mts +138 -3
  94. package/resources/print-mail/contacts.d.mts.map +1 -1
  95. package/resources/print-mail/contacts.d.ts +138 -3
  96. package/resources/print-mail/contacts.d.ts.map +1 -1
  97. package/resources/print-mail/contacts.js.map +1 -1
  98. package/resources/print-mail/contacts.mjs.map +1 -1
  99. package/resources/print-mail/index.d.mts +12 -8
  100. package/resources/print-mail/index.d.mts.map +1 -1
  101. package/resources/print-mail/index.d.ts +12 -8
  102. package/resources/print-mail/index.d.ts.map +1 -1
  103. package/resources/print-mail/index.js +13 -5
  104. package/resources/print-mail/index.js.map +1 -1
  105. package/resources/print-mail/index.mjs +5 -1
  106. package/resources/print-mail/index.mjs.map +1 -1
  107. package/resources/print-mail/letters.d.mts +62 -13
  108. package/resources/print-mail/letters.d.mts.map +1 -1
  109. package/resources/print-mail/letters.d.ts +62 -13
  110. package/resources/print-mail/letters.d.ts.map +1 -1
  111. package/resources/print-mail/letters.js +32 -0
  112. package/resources/print-mail/letters.js.map +1 -1
  113. package/resources/print-mail/letters.mjs +32 -0
  114. package/resources/print-mail/letters.mjs.map +1 -1
  115. package/resources/print-mail/mailing-list-imports.d.mts +5 -1
  116. package/resources/print-mail/mailing-list-imports.d.mts.map +1 -1
  117. package/resources/print-mail/mailing-list-imports.d.ts +5 -1
  118. package/resources/print-mail/mailing-list-imports.d.ts.map +1 -1
  119. package/resources/print-mail/mailing-list-imports.js +4 -0
  120. package/resources/print-mail/mailing-list-imports.js.map +1 -1
  121. package/resources/print-mail/mailing-list-imports.mjs +4 -0
  122. package/resources/print-mail/mailing-list-imports.mjs.map +1 -1
  123. package/resources/print-mail/mailing-lists.d.mts +5 -1
  124. package/resources/print-mail/mailing-lists.d.mts.map +1 -1
  125. package/resources/print-mail/mailing-lists.d.ts +5 -1
  126. package/resources/print-mail/mailing-lists.d.ts.map +1 -1
  127. package/resources/print-mail/mailing-lists.js +4 -0
  128. package/resources/print-mail/mailing-lists.js.map +1 -1
  129. package/resources/print-mail/mailing-lists.mjs +4 -0
  130. package/resources/print-mail/mailing-lists.mjs.map +1 -1
  131. package/resources/print-mail/postcards.d.mts +90 -21
  132. package/resources/print-mail/postcards.d.mts.map +1 -1
  133. package/resources/print-mail/postcards.d.ts +90 -21
  134. package/resources/print-mail/postcards.d.ts.map +1 -1
  135. package/resources/print-mail/postcards.js +33 -0
  136. package/resources/print-mail/postcards.js.map +1 -1
  137. package/resources/print-mail/postcards.mjs +33 -0
  138. package/resources/print-mail/postcards.mjs.map +1 -1
  139. package/resources/print-mail/print-mail.d.mts +41 -162
  140. package/resources/print-mail/print-mail.d.mts.map +1 -1
  141. package/resources/print-mail/print-mail.d.ts +41 -162
  142. package/resources/print-mail/print-mail.d.ts.map +1 -1
  143. package/resources/print-mail/print-mail.js +34 -18
  144. package/resources/print-mail/print-mail.js.map +1 -1
  145. package/resources/print-mail/print-mail.mjs +34 -18
  146. package/resources/print-mail/print-mail.mjs.map +1 -1
  147. package/resources/print-mail/reports/exports.d.mts +7 -0
  148. package/resources/print-mail/reports/exports.d.mts.map +1 -1
  149. package/resources/print-mail/reports/exports.d.ts +7 -0
  150. package/resources/print-mail/reports/exports.d.ts.map +1 -1
  151. package/resources/print-mail/reports/exports.js +7 -0
  152. package/resources/print-mail/reports/exports.js.map +1 -1
  153. package/resources/print-mail/reports/exports.mjs +7 -0
  154. package/resources/print-mail/reports/exports.mjs.map +1 -1
  155. package/resources/print-mail/reports/reports.d.mts +7 -0
  156. package/resources/print-mail/reports/reports.d.mts.map +1 -1
  157. package/resources/print-mail/reports/reports.d.ts +7 -0
  158. package/resources/print-mail/reports/reports.d.ts.map +1 -1
  159. package/resources/print-mail/reports/reports.js +7 -0
  160. package/resources/print-mail/reports/reports.js.map +1 -1
  161. package/resources/print-mail/reports/reports.mjs +7 -0
  162. package/resources/print-mail/reports/reports.mjs.map +1 -1
  163. package/resources/print-mail/reports/samples.d.mts +7 -0
  164. package/resources/print-mail/reports/samples.d.mts.map +1 -1
  165. package/resources/print-mail/reports/samples.d.ts +7 -0
  166. package/resources/print-mail/reports/samples.d.ts.map +1 -1
  167. package/resources/print-mail/reports/samples.js +7 -0
  168. package/resources/print-mail/reports/samples.js.map +1 -1
  169. package/resources/print-mail/reports/samples.mjs +7 -0
  170. package/resources/print-mail/reports/samples.mjs.map +1 -1
  171. package/resources/print-mail/self-mailers.d.mts +52 -20
  172. package/resources/print-mail/self-mailers.d.mts.map +1 -1
  173. package/resources/print-mail/self-mailers.d.ts +52 -20
  174. package/resources/print-mail/self-mailers.d.ts.map +1 -1
  175. package/resources/print-mail/self-mailers.js +17 -0
  176. package/resources/print-mail/self-mailers.js.map +1 -1
  177. package/resources/print-mail/self-mailers.mjs +17 -0
  178. package/resources/print-mail/self-mailers.mjs.map +1 -1
  179. package/resources/print-mail/snap-packs.d.mts +1060 -0
  180. package/resources/print-mail/snap-packs.d.mts.map +1 -0
  181. package/resources/print-mail/snap-packs.d.ts +1060 -0
  182. package/resources/print-mail/snap-packs.d.ts.map +1 -0
  183. package/resources/print-mail/snap-packs.js +117 -0
  184. package/resources/print-mail/snap-packs.js.map +1 -0
  185. package/resources/print-mail/snap-packs.mjs +113 -0
  186. package/resources/print-mail/snap-packs.mjs.map +1 -0
  187. package/resources/print-mail/sub-organizations.d.mts +29 -17
  188. package/resources/print-mail/sub-organizations.d.mts.map +1 -1
  189. package/resources/print-mail/sub-organizations.d.ts +29 -17
  190. package/resources/print-mail/sub-organizations.d.ts.map +1 -1
  191. package/resources/print-mail/sub-organizations.js +26 -14
  192. package/resources/print-mail/sub-organizations.js.map +1 -1
  193. package/resources/print-mail/sub-organizations.mjs +26 -14
  194. package/resources/print-mail/sub-organizations.mjs.map +1 -1
  195. package/resources/print-mail/targeted-list-builds/filters.d.mts +92 -0
  196. package/resources/print-mail/targeted-list-builds/filters.d.mts.map +1 -0
  197. package/resources/print-mail/targeted-list-builds/filters.d.ts +92 -0
  198. package/resources/print-mail/targeted-list-builds/filters.d.ts.map +1 -0
  199. package/resources/print-mail/targeted-list-builds/filters.js +60 -0
  200. package/resources/print-mail/targeted-list-builds/filters.js.map +1 -0
  201. package/resources/print-mail/targeted-list-builds/filters.mjs +56 -0
  202. package/resources/print-mail/targeted-list-builds/filters.mjs.map +1 -0
  203. package/resources/print-mail/targeted-list-builds/index.d.mts +3 -0
  204. package/resources/print-mail/targeted-list-builds/index.d.mts.map +1 -0
  205. package/resources/print-mail/targeted-list-builds/index.d.ts +3 -0
  206. package/resources/print-mail/targeted-list-builds/index.d.ts.map +1 -0
  207. package/resources/print-mail/targeted-list-builds/index.js +9 -0
  208. package/resources/print-mail/targeted-list-builds/index.js.map +1 -0
  209. package/resources/print-mail/targeted-list-builds/index.mjs +4 -0
  210. package/resources/print-mail/targeted-list-builds/index.mjs.map +1 -0
  211. package/resources/print-mail/targeted-list-builds/targeted-list-builds.d.mts +1633 -0
  212. package/resources/print-mail/targeted-list-builds/targeted-list-builds.d.mts.map +1 -0
  213. package/resources/print-mail/targeted-list-builds/targeted-list-builds.d.ts +1633 -0
  214. package/resources/print-mail/targeted-list-builds/targeted-list-builds.d.ts.map +1 -0
  215. package/resources/print-mail/targeted-list-builds/targeted-list-builds.js +154 -0
  216. package/resources/print-mail/targeted-list-builds/targeted-list-builds.js.map +1 -0
  217. package/resources/print-mail/targeted-list-builds/targeted-list-builds.mjs +149 -0
  218. package/resources/print-mail/targeted-list-builds/targeted-list-builds.mjs.map +1 -0
  219. package/resources/print-mail/targeted-list-builds.d.mts +2 -0
  220. package/resources/print-mail/targeted-list-builds.d.mts.map +1 -0
  221. package/resources/print-mail/targeted-list-builds.d.ts +2 -0
  222. package/resources/print-mail/targeted-list-builds.d.ts.map +1 -0
  223. package/resources/print-mail/targeted-list-builds.js +6 -0
  224. package/resources/print-mail/targeted-list-builds.js.map +1 -0
  225. package/resources/print-mail/targeted-list-builds.mjs +3 -0
  226. package/resources/print-mail/targeted-list-builds.mjs.map +1 -0
  227. package/resources/print-mail/template-editor-sessions.d.mts +355 -0
  228. package/resources/print-mail/template-editor-sessions.d.mts.map +1 -0
  229. package/resources/print-mail/template-editor-sessions.d.ts +355 -0
  230. package/resources/print-mail/template-editor-sessions.d.ts.map +1 -0
  231. package/resources/print-mail/template-editor-sessions.js +78 -0
  232. package/resources/print-mail/template-editor-sessions.js.map +1 -0
  233. package/resources/print-mail/template-editor-sessions.mjs +74 -0
  234. package/resources/print-mail/template-editor-sessions.mjs.map +1 -0
  235. package/resources/print-mail/trackers.d.mts +409 -0
  236. package/resources/print-mail/trackers.d.mts.map +1 -0
  237. package/resources/print-mail/trackers.d.ts +409 -0
  238. package/resources/print-mail/trackers.d.ts.map +1 -0
  239. package/resources/print-mail/trackers.js +116 -0
  240. package/resources/print-mail/trackers.js.map +1 -0
  241. package/resources/print-mail/trackers.mjs +112 -0
  242. package/resources/print-mail/trackers.mjs.map +1 -0
  243. package/resources/print-mail/virtual-mailboxes/index.d.mts +3 -0
  244. package/resources/print-mail/virtual-mailboxes/index.d.mts.map +1 -0
  245. package/resources/print-mail/virtual-mailboxes/index.d.ts +3 -0
  246. package/resources/print-mail/virtual-mailboxes/index.d.ts.map +1 -0
  247. package/resources/print-mail/virtual-mailboxes/index.js +9 -0
  248. package/resources/print-mail/virtual-mailboxes/index.js.map +1 -0
  249. package/resources/print-mail/virtual-mailboxes/index.mjs +4 -0
  250. package/resources/print-mail/virtual-mailboxes/index.mjs.map +1 -0
  251. package/resources/print-mail/virtual-mailboxes/items.d.mts +235 -0
  252. package/resources/print-mail/virtual-mailboxes/items.d.mts.map +1 -0
  253. package/resources/print-mail/virtual-mailboxes/items.d.ts +235 -0
  254. package/resources/print-mail/virtual-mailboxes/items.d.ts.map +1 -0
  255. package/resources/print-mail/virtual-mailboxes/items.js +69 -0
  256. package/resources/print-mail/virtual-mailboxes/items.js.map +1 -0
  257. package/resources/print-mail/virtual-mailboxes/items.mjs +65 -0
  258. package/resources/print-mail/virtual-mailboxes/items.mjs.map +1 -0
  259. package/resources/print-mail/virtual-mailboxes/virtual-mailboxes.d.mts +334 -0
  260. package/resources/print-mail/virtual-mailboxes/virtual-mailboxes.d.mts.map +1 -0
  261. package/resources/print-mail/virtual-mailboxes/virtual-mailboxes.d.ts +334 -0
  262. package/resources/print-mail/virtual-mailboxes/virtual-mailboxes.d.ts.map +1 -0
  263. package/resources/print-mail/virtual-mailboxes/virtual-mailboxes.js +92 -0
  264. package/resources/print-mail/virtual-mailboxes/virtual-mailboxes.js.map +1 -0
  265. package/resources/print-mail/virtual-mailboxes/virtual-mailboxes.mjs +87 -0
  266. package/resources/print-mail/virtual-mailboxes/virtual-mailboxes.mjs.map +1 -0
  267. package/resources/print-mail/virtual-mailboxes.d.mts +2 -0
  268. package/resources/print-mail/virtual-mailboxes.d.mts.map +1 -0
  269. package/resources/print-mail/virtual-mailboxes.d.ts +2 -0
  270. package/resources/print-mail/virtual-mailboxes.d.ts.map +1 -0
  271. package/resources/print-mail/{order-profiles.js → virtual-mailboxes.js} +2 -2
  272. package/resources/print-mail/virtual-mailboxes.js.map +1 -0
  273. package/resources/print-mail/virtual-mailboxes.mjs +3 -0
  274. package/resources/print-mail/virtual-mailboxes.mjs.map +1 -0
  275. package/src/client.ts +123 -33
  276. package/src/internal/parse.ts +6 -0
  277. package/src/internal/types.ts +6 -8
  278. package/src/internal/utils/env.ts +2 -2
  279. package/src/internal/utils/log.ts +2 -1
  280. package/src/internal/utils/query.ts +23 -0
  281. package/src/internal/utils.ts +1 -0
  282. package/src/resources/address-verification.ts +2190 -24
  283. package/src/resources/index.ts +24 -5
  284. package/src/resources/intl-address-verification.ts +1219 -43
  285. package/src/resources/print-mail/boxes.ts +1011 -99
  286. package/src/resources/print-mail/campaigns.ts +1449 -59
  287. package/src/resources/print-mail/cheques.ts +122 -10
  288. package/src/resources/print-mail/contacts.ts +167 -4
  289. package/src/resources/print-mail/index.ts +74 -11
  290. package/src/resources/print-mail/letters.ts +150 -12
  291. package/src/resources/print-mail/mailing-list-imports.ts +5 -1
  292. package/src/resources/print-mail/mailing-lists.ts +5 -1
  293. package/src/resources/print-mail/postcards.ts +208 -20
  294. package/src/resources/print-mail/print-mail.ts +239 -261
  295. package/src/resources/print-mail/reports/exports.ts +7 -0
  296. package/src/resources/print-mail/reports/reports.ts +7 -0
  297. package/src/resources/print-mail/reports/samples.ts +7 -0
  298. package/src/resources/print-mail/self-mailers.ts +162 -20
  299. package/src/resources/print-mail/snap-packs.ts +1484 -0
  300. package/src/resources/print-mail/sub-organizations.ts +35 -23
  301. package/src/resources/print-mail/targeted-list-builds/filters.ts +113 -0
  302. package/src/resources/print-mail/targeted-list-builds/index.ts +16 -0
  303. package/src/resources/print-mail/targeted-list-builds/targeted-list-builds.ts +2158 -0
  304. package/{resources/print-mail/order-profiles.mjs → src/resources/print-mail/targeted-list-builds.ts} +2 -2
  305. package/src/resources/print-mail/template-editor-sessions.ts +435 -0
  306. package/src/resources/print-mail/trackers.ts +513 -0
  307. package/src/resources/print-mail/virtual-mailboxes/index.ts +22 -0
  308. package/src/resources/print-mail/virtual-mailboxes/items.ts +296 -0
  309. package/src/resources/print-mail/virtual-mailboxes/virtual-mailboxes.ts +434 -0
  310. package/src/resources/print-mail/{order-profiles.ts → virtual-mailboxes.ts} +1 -1
  311. package/src/version.ts +1 -1
  312. package/version.d.mts +1 -1
  313. package/version.d.ts +1 -1
  314. package/version.js +1 -1
  315. package/version.mjs +1 -1
  316. package/internal/qs/formats.d.mts +0 -7
  317. package/internal/qs/formats.d.mts.map +0 -1
  318. package/internal/qs/formats.d.ts +0 -7
  319. package/internal/qs/formats.d.ts.map +0 -1
  320. package/internal/qs/formats.js +0 -13
  321. package/internal/qs/formats.js.map +0 -1
  322. package/internal/qs/formats.mjs +0 -9
  323. package/internal/qs/formats.mjs.map +0 -1
  324. package/internal/qs/index.d.mts +0 -10
  325. package/internal/qs/index.d.mts.map +0 -1
  326. package/internal/qs/index.d.ts +0 -10
  327. package/internal/qs/index.d.ts.map +0 -1
  328. package/internal/qs/index.js +0 -14
  329. package/internal/qs/index.js.map +0 -1
  330. package/internal/qs/index.mjs +0 -10
  331. package/internal/qs/index.mjs.map +0 -1
  332. package/internal/qs/stringify.d.mts +0 -3
  333. package/internal/qs/stringify.d.mts.map +0 -1
  334. package/internal/qs/stringify.d.ts +0 -3
  335. package/internal/qs/stringify.d.ts.map +0 -1
  336. package/internal/qs/stringify.js +0 -277
  337. package/internal/qs/stringify.js.map +0 -1
  338. package/internal/qs/stringify.mjs +0 -274
  339. package/internal/qs/stringify.mjs.map +0 -1
  340. package/internal/qs/types.d.mts +0 -57
  341. package/internal/qs/types.d.mts.map +0 -1
  342. package/internal/qs/types.d.ts +0 -57
  343. package/internal/qs/types.d.ts.map +0 -1
  344. package/internal/qs/types.js +0 -3
  345. package/internal/qs/types.js.map +0 -1
  346. package/internal/qs/types.mjs +0 -2
  347. package/internal/qs/types.mjs.map +0 -1
  348. package/internal/qs/utils.d.mts +0 -15
  349. package/internal/qs/utils.d.mts.map +0 -1
  350. package/internal/qs/utils.d.ts +0 -15
  351. package/internal/qs/utils.d.ts.map +0 -1
  352. package/internal/qs/utils.js +0 -230
  353. package/internal/qs/utils.js.map +0 -1
  354. package/internal/qs/utils.mjs +0 -217
  355. package/internal/qs/utils.mjs.map +0 -1
  356. package/resources/print-mail/order-profiles/cheques.d.mts +0 -388
  357. package/resources/print-mail/order-profiles/cheques.d.mts.map +0 -1
  358. package/resources/print-mail/order-profiles/cheques.d.ts +0 -388
  359. package/resources/print-mail/order-profiles/cheques.d.ts.map +0 -1
  360. package/resources/print-mail/order-profiles/cheques.js +0 -98
  361. package/resources/print-mail/order-profiles/cheques.js.map +0 -1
  362. package/resources/print-mail/order-profiles/cheques.mjs +0 -94
  363. package/resources/print-mail/order-profiles/cheques.mjs.map +0 -1
  364. package/resources/print-mail/order-profiles/index.d.mts +0 -6
  365. package/resources/print-mail/order-profiles/index.d.mts.map +0 -1
  366. package/resources/print-mail/order-profiles/index.d.ts +0 -6
  367. package/resources/print-mail/order-profiles/index.d.ts.map +0 -1
  368. package/resources/print-mail/order-profiles/index.js +0 -15
  369. package/resources/print-mail/order-profiles/index.js.map +0 -1
  370. package/resources/print-mail/order-profiles/index.mjs +0 -7
  371. package/resources/print-mail/order-profiles/index.mjs.map +0 -1
  372. package/resources/print-mail/order-profiles/letters.d.mts +0 -325
  373. package/resources/print-mail/order-profiles/letters.d.mts.map +0 -1
  374. package/resources/print-mail/order-profiles/letters.d.ts +0 -325
  375. package/resources/print-mail/order-profiles/letters.d.ts.map +0 -1
  376. package/resources/print-mail/order-profiles/letters.js +0 -105
  377. package/resources/print-mail/order-profiles/letters.js.map +0 -1
  378. package/resources/print-mail/order-profiles/letters.mjs +0 -101
  379. package/resources/print-mail/order-profiles/letters.mjs.map +0 -1
  380. package/resources/print-mail/order-profiles/order-profiles.d.mts +0 -22
  381. package/resources/print-mail/order-profiles/order-profiles.d.mts.map +0 -1
  382. package/resources/print-mail/order-profiles/order-profiles.d.ts +0 -22
  383. package/resources/print-mail/order-profiles/order-profiles.d.ts.map +0 -1
  384. package/resources/print-mail/order-profiles/order-profiles.js +0 -29
  385. package/resources/print-mail/order-profiles/order-profiles.js.map +0 -1
  386. package/resources/print-mail/order-profiles/order-profiles.mjs +0 -24
  387. package/resources/print-mail/order-profiles/order-profiles.mjs.map +0 -1
  388. package/resources/print-mail/order-profiles/postcards.d.mts +0 -255
  389. package/resources/print-mail/order-profiles/postcards.d.mts.map +0 -1
  390. package/resources/print-mail/order-profiles/postcards.d.ts +0 -255
  391. package/resources/print-mail/order-profiles/postcards.d.ts.map +0 -1
  392. package/resources/print-mail/order-profiles/postcards.js +0 -97
  393. package/resources/print-mail/order-profiles/postcards.js.map +0 -1
  394. package/resources/print-mail/order-profiles/postcards.mjs +0 -93
  395. package/resources/print-mail/order-profiles/postcards.mjs.map +0 -1
  396. package/resources/print-mail/order-profiles/self-mailers.d.mts +0 -260
  397. package/resources/print-mail/order-profiles/self-mailers.d.mts.map +0 -1
  398. package/resources/print-mail/order-profiles/self-mailers.d.ts +0 -260
  399. package/resources/print-mail/order-profiles/self-mailers.d.ts.map +0 -1
  400. package/resources/print-mail/order-profiles/self-mailers.js +0 -95
  401. package/resources/print-mail/order-profiles/self-mailers.js.map +0 -1
  402. package/resources/print-mail/order-profiles/self-mailers.mjs +0 -91
  403. package/resources/print-mail/order-profiles/self-mailers.mjs.map +0 -1
  404. package/resources/print-mail/order-profiles.d.mts +0 -2
  405. package/resources/print-mail/order-profiles.d.mts.map +0 -1
  406. package/resources/print-mail/order-profiles.d.ts +0 -2
  407. package/resources/print-mail/order-profiles.d.ts.map +0 -1
  408. package/resources/print-mail/order-profiles.js.map +0 -1
  409. package/resources/print-mail/order-profiles.mjs.map +0 -1
  410. package/src/internal/qs/LICENSE.md +0 -13
  411. package/src/internal/qs/README.md +0 -3
  412. package/src/internal/qs/formats.ts +0 -10
  413. package/src/internal/qs/index.ts +0 -13
  414. package/src/internal/qs/stringify.ts +0 -385
  415. package/src/internal/qs/types.ts +0 -71
  416. package/src/internal/qs/utils.ts +0 -265
  417. package/src/resources/print-mail/order-profiles/cheques.ts +0 -486
  418. package/src/resources/print-mail/order-profiles/index.ts +0 -47
  419. package/src/resources/print-mail/order-profiles/letters.ts +0 -412
  420. package/src/resources/print-mail/order-profiles/order-profiles.ts +0 -113
  421. package/src/resources/print-mail/order-profiles/postcards.ts +0 -327
  422. package/src/resources/print-mail/order-profiles/self-mailers.ts +0 -338
@@ -2,7 +2,109 @@ import { APIResource } from "../core/resource.mjs";
2
2
  import * as AddressVerificationAPI from "./address-verification.mjs";
3
3
  import { APIPromise } from "../core/api-promise.mjs";
4
4
  import { RequestOptions } from "../internal/request-options.mjs";
5
+ /**
6
+ * International Address Verification API.
7
+ *
8
+ * Provides endpoints to verify and standardize international addresses,
9
+ * supporting both structured and freeform inputs.
10
+ */
5
11
  export declare class IntlAddressVerification extends APIResource {
12
+ /**
13
+ * Resolves an address preview `id` (from `GET /completions`) into a full address.
14
+ *
15
+ * Optionally verifies the resolved address through the standard US/CA verifier
16
+ * when `verify=true` is supplied and the address is in the US or Canada.
17
+ *
18
+ * - Uses 1 lookup per call.
19
+ * - When `verify=true` resolves a US or CA address, the response will be a
20
+ * `VerifiedAddress` instead of an `IntlAddressCompletion`.
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * const response =
25
+ * await client.intlAddressVerification.autocomplete({
26
+ * id: 'id',
27
+ * });
28
+ * ```
29
+ */
30
+ autocomplete(params: IntlAddressVerificationAutocompleteParams, options?: RequestOptions): APIPromise<IntlAddressVerificationAutocompleteResponse>;
31
+ /**
32
+ * Verify a batch of international addresses in a single request. Each address can
33
+ * be freeform or structured, matching the same input formats accepted by the
34
+ * single verification endpoint.
35
+ *
36
+ * - Uses 1 lookup per address.
37
+ * - Requires a secret API key.
38
+ * - Returns results in the same order as the input addresses.
39
+ * - If an individual address fails, its result will contain an `error` field
40
+ * rather than a `verifiedAddress`.
41
+ *
42
+ * @example
43
+ * ```ts
44
+ * const response =
45
+ * await client.intlAddressVerification.batchVerification({
46
+ * addresses: [
47
+ * {
48
+ * address: {
49
+ * country: 'country',
50
+ * line1: 'line1',
51
+ * postalOrZip: 'postalOrZip',
52
+ * provinceOrState: 'provinceOrState',
53
+ * },
54
+ * },
55
+ * ],
56
+ * });
57
+ * ```
58
+ */
59
+ batchVerification(params: IntlAddressVerificationBatchVerificationParams, options?: RequestOptions): APIPromise<IntlAddressVerificationBatchVerificationResponse>;
60
+ /**
61
+ * Returns address completion previews for a partial address string, suitable for
62
+ * populating an autocomplete dropdown.
63
+ *
64
+ * **Regular mode** — supply `partialStreet` to search by partial street address.
65
+ * Results may include `Address` types (resolvable directly) and `Container` types
66
+ * (buildings/complexes that require a follow-up call).
67
+ *
68
+ * **Advanced mode** — supply `advanced=true` and a `container` ID (from a previous
69
+ * regular call) to drill into a building or complex and retrieve individual unit
70
+ * addresses.
71
+ *
72
+ * Results with `type: "Address"` can be fully resolved by passing their `id` to
73
+ * `POST /completions`.
74
+ *
75
+ * - Does not consume a lookup.
76
+ *
77
+ * @example
78
+ * ```ts
79
+ * const response =
80
+ * await client.intlAddressVerification.getAutocompleteAdvancedPreviews();
81
+ * ```
82
+ */
83
+ getAutocompleteAdvancedPreviews(query?: IntlAddressVerificationGetAutocompleteAdvancedPreviewsParams | null | undefined, options?: RequestOptions): APIPromise<IntlAddressVerificationGetAutocompleteAdvancedPreviewsResponse>;
84
+ /**
85
+ * Returns address completion previews for a partial address string, suitable for
86
+ * populating an autocomplete dropdown.
87
+ *
88
+ * **Regular mode** — supply `partialStreet` to search by partial street address.
89
+ * Results may include `Address` types (resolvable directly) and `Container` types
90
+ * (buildings/complexes that require a follow-up call).
91
+ *
92
+ * **Advanced mode** — supply `advanced=true` and a `container` ID (from a previous
93
+ * regular call) to drill into a building or complex and retrieve individual unit
94
+ * addresses.
95
+ *
96
+ * Results with `type: "Address"` can be fully resolved by passing their `id` to
97
+ * `POST /completions`.
98
+ *
99
+ * - Does not consume a lookup.
100
+ *
101
+ * @example
102
+ * ```ts
103
+ * const response =
104
+ * await client.intlAddressVerification.getAutocompletePreviews();
105
+ * ```
106
+ */
107
+ getAutocompletePreviews(query?: IntlAddressVerificationGetAutocompletePreviewsParams | null | undefined, options?: RequestOptions): APIPromise<IntlAddressVerificationGetAutocompletePreviewsResponse>;
6
108
  /**
7
109
  * Verify and standardize an international address.
8
110
  *
@@ -15,38 +117,731 @@ export declare class IntlAddressVerification extends APIResource {
15
117
  * ```ts
16
118
  * const response =
17
119
  * await client.intlAddressVerification.verify({
18
- * address: {
19
- * '0': '3',
20
- * '1': '1',
21
- * '2': ' ',
22
- * '3': 'F',
23
- * '4': 'l',
24
- * '5': ' ',
25
- * '6': 'S',
26
- * '7': 'c',
27
- * '8': 'a',
28
- * '9': 'r',
29
- * '10': 'b',
30
- * '11': 'o',
31
- * '12': 'r',
32
- * '13': 'o',
33
- * '14': 'u',
34
- * '15': 'g',
35
- * '16': 'h',
36
- * '17': ',',
37
- * '18': ' ',
38
- * '19': 'C',
39
- * '20': 'a',
40
- * '21': 'n',
41
- * '22': 'a',
42
- * '23': 'd',
43
- * '24': 'a',
44
- * },
120
+ * address: {},
45
121
  * });
46
122
  * ```
47
123
  */
48
124
  verify(params: IntlAddressVerificationVerifyParams, options?: RequestOptions): APIPromise<IntlAddressVerificationVerifyResponse>;
49
125
  }
126
+ export interface IntlAddressVerificationAutocompleteResponse {
127
+ /**
128
+ * A fully resolved international address returned by `POST /completions`.
129
+ */
130
+ data: IntlAddressVerificationAutocompleteResponse.IntlAddressCompletion | IntlAddressVerificationAutocompleteResponse.VerifiedAddress;
131
+ message: string;
132
+ status: 'success' | 'error';
133
+ }
134
+ export declare namespace IntlAddressVerificationAutocompleteResponse {
135
+ /**
136
+ * A fully resolved international address returned by `POST /completions`.
137
+ */
138
+ interface IntlAddressCompletion {
139
+ /**
140
+ * The building name, if applicable.
141
+ */
142
+ building?: string;
143
+ /**
144
+ * The city or locality.
145
+ */
146
+ city?: string;
147
+ /**
148
+ * The company or organization name, if applicable.
149
+ */
150
+ company?: string;
151
+ /**
152
+ * The country name.
153
+ */
154
+ country?: string;
155
+ /**
156
+ * The ISO 2-letter country code.
157
+ */
158
+ countryCode?: string;
159
+ /**
160
+ * The department or floor, if applicable.
161
+ */
162
+ department?: string;
163
+ /**
164
+ * An error message if resolution failed.
165
+ */
166
+ error?: string;
167
+ /**
168
+ * The full formatted address string.
169
+ */
170
+ formattedAddress?: string;
171
+ /**
172
+ * The first address line.
173
+ */
174
+ line1?: string;
175
+ /**
176
+ * The second address line.
177
+ */
178
+ line2?: string;
179
+ /**
180
+ * The third address line.
181
+ */
182
+ line3?: string;
183
+ /**
184
+ * The fourth address line.
185
+ */
186
+ line4?: string;
187
+ /**
188
+ * The postal or ZIP code.
189
+ */
190
+ postalOrZip?: string;
191
+ /**
192
+ * The province or state code.
193
+ */
194
+ provinceCode?: string;
195
+ /**
196
+ * The province or state name.
197
+ */
198
+ provinceOrState?: string;
199
+ }
200
+ /**
201
+ * The result of a verified international address.
202
+ */
203
+ interface VerifiedAddress {
204
+ /**
205
+ * The city or locality.
206
+ */
207
+ city: string;
208
+ /**
209
+ * The country code (ISO 3166-1 alpha-2).
210
+ */
211
+ country: string;
212
+ /**
213
+ * The first address line.
214
+ */
215
+ line1: string;
216
+ /**
217
+ * The postal or ZIP code.
218
+ */
219
+ postalOrZip: string;
220
+ /**
221
+ * The province or state.
222
+ */
223
+ provinceOrState: string;
224
+ /**
225
+ * The full country name.
226
+ */
227
+ countryName?: string;
228
+ /**
229
+ * Additional details about the verified address, such as premise, thoroughfare,
230
+ * and locality.
231
+ */
232
+ details?: VerifiedAddress.Details;
233
+ /**
234
+ * Errors encountered during address verification.
235
+ */
236
+ errors?: AddressVerificationAPI.Errors;
237
+ /**
238
+ * The firm or company name, if available.
239
+ */
240
+ firmName?: string;
241
+ /**
242
+ * The formatted address string.
243
+ */
244
+ formattedAddress?: string;
245
+ /**
246
+ * Geocoding result for the verified address.
247
+ */
248
+ geoData?: VerifiedAddress.GeoData;
249
+ /**
250
+ * The second address line.
251
+ */
252
+ line2?: string;
253
+ /**
254
+ * The third address line, if available.
255
+ */
256
+ line3?: string;
257
+ /**
258
+ * The verification status of an address.
259
+ */
260
+ status?: AddressVerificationAPI.Status;
261
+ /**
262
+ * A summary of the verification process and match levels.
263
+ */
264
+ summary?: VerifiedAddress.Summary;
265
+ /**
266
+ * The ZIP+4 code (for US addresses).
267
+ */
268
+ zipPlus4?: string;
269
+ }
270
+ namespace VerifiedAddress {
271
+ /**
272
+ * Additional details about the verified address, such as premise, thoroughfare,
273
+ * and locality.
274
+ */
275
+ interface Details {
276
+ /**
277
+ * The building name or number.
278
+ */
279
+ building?: string;
280
+ /**
281
+ * The type of building (e.g., apartment, office).
282
+ */
283
+ buildingType?: string;
284
+ /**
285
+ * The full city name.
286
+ */
287
+ cityName?: string;
288
+ /**
289
+ * Secondary city information.
290
+ */
291
+ citySecondary?: string;
292
+ /**
293
+ * The type of city (e.g., city, town, village).
294
+ */
295
+ cityType?: string;
296
+ /**
297
+ * The full delivery address.
298
+ */
299
+ deliveryAddress?: string;
300
+ /**
301
+ * The dependent locality (UK addresses).
302
+ */
303
+ dependentLocality?: string;
304
+ /**
305
+ * The double dependent locality (UK addresses).
306
+ */
307
+ doubleDependentLocality?: string;
308
+ /**
309
+ * The organization or company name.
310
+ */
311
+ organization?: string;
312
+ /**
313
+ * The primary part of the postal or ZIP code.
314
+ */
315
+ postalOrZipPrimary?: string;
316
+ /**
317
+ * The secondary part of the postal or ZIP code.
318
+ */
319
+ postalOrZipSecondary?: string;
320
+ /**
321
+ * The post box number.
322
+ */
323
+ postBox?: string;
324
+ /**
325
+ * The premise name or number.
326
+ */
327
+ premise?: string;
328
+ /**
329
+ * The premise number.
330
+ */
331
+ premiseNumber?: string;
332
+ /**
333
+ * Secondary premise information.
334
+ */
335
+ premiseSecondary?: string;
336
+ /**
337
+ * The type of premise (e.g., house, flat).
338
+ */
339
+ premiseType?: string;
340
+ /**
341
+ * The full name of the province or state.
342
+ */
343
+ provinceOrStateName?: string;
344
+ /**
345
+ * The type of province or state (e.g., province, state, region).
346
+ */
347
+ provinceOrStateType?: string;
348
+ /**
349
+ * The street name.
350
+ */
351
+ street?: string;
352
+ /**
353
+ * The directional suffix for the street (e.g., N, S, E, W).
354
+ */
355
+ streetPostDirection?: string;
356
+ /**
357
+ * The directional prefix for the street (e.g., N, S, E, W).
358
+ */
359
+ streetPreDirection?: string;
360
+ /**
361
+ * The type of street (e.g., St, Ave, Blvd).
362
+ */
363
+ streetType?: string;
364
+ /**
365
+ * The sub-administrative area.
366
+ */
367
+ subAdministrativeArea?: string;
368
+ /**
369
+ * The sub-building name or number (e.g., unit, suite).
370
+ */
371
+ subBuilding?: string;
372
+ /**
373
+ * The floor of the sub-building.
374
+ */
375
+ SubBuildingFloor?: string;
376
+ /**
377
+ * The sub-building number.
378
+ */
379
+ subBuildingNumber?: string;
380
+ /**
381
+ * The type of sub-building (e.g., floor, wing).
382
+ */
383
+ subBuildingType?: string;
384
+ /**
385
+ * The sub-street name.
386
+ */
387
+ subStreet?: string;
388
+ /**
389
+ * The directional suffix for the sub-street.
390
+ */
391
+ subStreetPostDirection?: string;
392
+ /**
393
+ * The directional prefix for the sub-street.
394
+ */
395
+ subStreetPreDirection?: string;
396
+ /**
397
+ * The type of sub-street.
398
+ */
399
+ subStreetType?: string;
400
+ /**
401
+ * The super-administrative area.
402
+ */
403
+ superAdministrativeArea?: string;
404
+ /**
405
+ * The telephone number associated with the address.
406
+ */
407
+ telephone?: string;
408
+ }
409
+ /**
410
+ * Geocoding result for the verified address.
411
+ */
412
+ interface GeoData {
413
+ /**
414
+ * The geocode accuracy.
415
+ */
416
+ geoAccuracy?: string;
417
+ /**
418
+ * The latitude of the address.
419
+ */
420
+ latitude?: string;
421
+ /**
422
+ * The longitude of the address.
423
+ */
424
+ longitude?: string;
425
+ }
426
+ /**
427
+ * A summary of the verification process and match levels.
428
+ */
429
+ interface Summary {
430
+ /**
431
+ * Context identification match level.
432
+ */
433
+ contextIdentificationMatchLevel?: string;
434
+ /**
435
+ * Lexicon identification match level.
436
+ */
437
+ lexiconIdentificationMatchLevel?: string;
438
+ /**
439
+ * The match score (0-100).
440
+ */
441
+ matchScore?: number;
442
+ /**
443
+ * Additional message about the verification.
444
+ */
445
+ message?: string;
446
+ /**
447
+ * The parsing status of the address.
448
+ */
449
+ parsingStatus?: string;
450
+ /**
451
+ * The status of the postal code.
452
+ */
453
+ postCodeStatus?: string;
454
+ /**
455
+ * The match level after post-processing.
456
+ */
457
+ postProcessedVerificationMatchLevel?: string;
458
+ /**
459
+ * The match level before post-processing.
460
+ */
461
+ preProcessedVerificationMatchLevel?: string;
462
+ /**
463
+ * The overall verification status.
464
+ */
465
+ verificationStatus?: string;
466
+ }
467
+ }
468
+ }
469
+ export interface IntlAddressVerificationBatchVerificationResponse {
470
+ data: IntlAddressVerificationBatchVerificationResponse.Data;
471
+ message: string;
472
+ status: 'success' | 'error';
473
+ }
474
+ export declare namespace IntlAddressVerificationBatchVerificationResponse {
475
+ interface Data {
476
+ results: Array<Data.Result>;
477
+ }
478
+ namespace Data {
479
+ interface Result {
480
+ /**
481
+ * An error message for this address. Present when verification failed.
482
+ */
483
+ error?: string;
484
+ /**
485
+ * The result of a verified international address.
486
+ */
487
+ verifiedAddress?: Result.VerifiedAddress;
488
+ }
489
+ namespace Result {
490
+ /**
491
+ * The result of a verified international address.
492
+ */
493
+ interface VerifiedAddress {
494
+ /**
495
+ * The city or locality.
496
+ */
497
+ city: string;
498
+ /**
499
+ * The country code (ISO 3166-1 alpha-2).
500
+ */
501
+ country: string;
502
+ /**
503
+ * The first address line.
504
+ */
505
+ line1: string;
506
+ /**
507
+ * The postal or ZIP code.
508
+ */
509
+ postalOrZip: string;
510
+ /**
511
+ * The province or state.
512
+ */
513
+ provinceOrState: string;
514
+ /**
515
+ * The full country name.
516
+ */
517
+ countryName?: string;
518
+ /**
519
+ * Additional details about the verified address, such as premise, thoroughfare,
520
+ * and locality.
521
+ */
522
+ details?: VerifiedAddress.Details;
523
+ /**
524
+ * Errors encountered during address verification.
525
+ */
526
+ errors?: AddressVerificationAPI.Errors;
527
+ /**
528
+ * The firm or company name, if available.
529
+ */
530
+ firmName?: string;
531
+ /**
532
+ * The formatted address string.
533
+ */
534
+ formattedAddress?: string;
535
+ /**
536
+ * Geocoding result for the verified address.
537
+ */
538
+ geoData?: VerifiedAddress.GeoData;
539
+ /**
540
+ * The second address line.
541
+ */
542
+ line2?: string;
543
+ /**
544
+ * The third address line, if available.
545
+ */
546
+ line3?: string;
547
+ /**
548
+ * The verification status of an address.
549
+ */
550
+ status?: AddressVerificationAPI.Status;
551
+ /**
552
+ * A summary of the verification process and match levels.
553
+ */
554
+ summary?: VerifiedAddress.Summary;
555
+ /**
556
+ * The ZIP+4 code (for US addresses).
557
+ */
558
+ zipPlus4?: string;
559
+ }
560
+ namespace VerifiedAddress {
561
+ /**
562
+ * Additional details about the verified address, such as premise, thoroughfare,
563
+ * and locality.
564
+ */
565
+ interface Details {
566
+ /**
567
+ * The building name or number.
568
+ */
569
+ building?: string;
570
+ /**
571
+ * The type of building (e.g., apartment, office).
572
+ */
573
+ buildingType?: string;
574
+ /**
575
+ * The full city name.
576
+ */
577
+ cityName?: string;
578
+ /**
579
+ * Secondary city information.
580
+ */
581
+ citySecondary?: string;
582
+ /**
583
+ * The type of city (e.g., city, town, village).
584
+ */
585
+ cityType?: string;
586
+ /**
587
+ * The full delivery address.
588
+ */
589
+ deliveryAddress?: string;
590
+ /**
591
+ * The dependent locality (UK addresses).
592
+ */
593
+ dependentLocality?: string;
594
+ /**
595
+ * The double dependent locality (UK addresses).
596
+ */
597
+ doubleDependentLocality?: string;
598
+ /**
599
+ * The organization or company name.
600
+ */
601
+ organization?: string;
602
+ /**
603
+ * The primary part of the postal or ZIP code.
604
+ */
605
+ postalOrZipPrimary?: string;
606
+ /**
607
+ * The secondary part of the postal or ZIP code.
608
+ */
609
+ postalOrZipSecondary?: string;
610
+ /**
611
+ * The post box number.
612
+ */
613
+ postBox?: string;
614
+ /**
615
+ * The premise name or number.
616
+ */
617
+ premise?: string;
618
+ /**
619
+ * The premise number.
620
+ */
621
+ premiseNumber?: string;
622
+ /**
623
+ * Secondary premise information.
624
+ */
625
+ premiseSecondary?: string;
626
+ /**
627
+ * The type of premise (e.g., house, flat).
628
+ */
629
+ premiseType?: string;
630
+ /**
631
+ * The full name of the province or state.
632
+ */
633
+ provinceOrStateName?: string;
634
+ /**
635
+ * The type of province or state (e.g., province, state, region).
636
+ */
637
+ provinceOrStateType?: string;
638
+ /**
639
+ * The street name.
640
+ */
641
+ street?: string;
642
+ /**
643
+ * The directional suffix for the street (e.g., N, S, E, W).
644
+ */
645
+ streetPostDirection?: string;
646
+ /**
647
+ * The directional prefix for the street (e.g., N, S, E, W).
648
+ */
649
+ streetPreDirection?: string;
650
+ /**
651
+ * The type of street (e.g., St, Ave, Blvd).
652
+ */
653
+ streetType?: string;
654
+ /**
655
+ * The sub-administrative area.
656
+ */
657
+ subAdministrativeArea?: string;
658
+ /**
659
+ * The sub-building name or number (e.g., unit, suite).
660
+ */
661
+ subBuilding?: string;
662
+ /**
663
+ * The floor of the sub-building.
664
+ */
665
+ SubBuildingFloor?: string;
666
+ /**
667
+ * The sub-building number.
668
+ */
669
+ subBuildingNumber?: string;
670
+ /**
671
+ * The type of sub-building (e.g., floor, wing).
672
+ */
673
+ subBuildingType?: string;
674
+ /**
675
+ * The sub-street name.
676
+ */
677
+ subStreet?: string;
678
+ /**
679
+ * The directional suffix for the sub-street.
680
+ */
681
+ subStreetPostDirection?: string;
682
+ /**
683
+ * The directional prefix for the sub-street.
684
+ */
685
+ subStreetPreDirection?: string;
686
+ /**
687
+ * The type of sub-street.
688
+ */
689
+ subStreetType?: string;
690
+ /**
691
+ * The super-administrative area.
692
+ */
693
+ superAdministrativeArea?: string;
694
+ /**
695
+ * The telephone number associated with the address.
696
+ */
697
+ telephone?: string;
698
+ }
699
+ /**
700
+ * Geocoding result for the verified address.
701
+ */
702
+ interface GeoData {
703
+ /**
704
+ * The geocode accuracy.
705
+ */
706
+ geoAccuracy?: string;
707
+ /**
708
+ * The latitude of the address.
709
+ */
710
+ latitude?: string;
711
+ /**
712
+ * The longitude of the address.
713
+ */
714
+ longitude?: string;
715
+ }
716
+ /**
717
+ * A summary of the verification process and match levels.
718
+ */
719
+ interface Summary {
720
+ /**
721
+ * Context identification match level.
722
+ */
723
+ contextIdentificationMatchLevel?: string;
724
+ /**
725
+ * Lexicon identification match level.
726
+ */
727
+ lexiconIdentificationMatchLevel?: string;
728
+ /**
729
+ * The match score (0-100).
730
+ */
731
+ matchScore?: number;
732
+ /**
733
+ * Additional message about the verification.
734
+ */
735
+ message?: string;
736
+ /**
737
+ * The parsing status of the address.
738
+ */
739
+ parsingStatus?: string;
740
+ /**
741
+ * The status of the postal code.
742
+ */
743
+ postCodeStatus?: string;
744
+ /**
745
+ * The match level after post-processing.
746
+ */
747
+ postProcessedVerificationMatchLevel?: string;
748
+ /**
749
+ * The match level before post-processing.
750
+ */
751
+ preProcessedVerificationMatchLevel?: string;
752
+ /**
753
+ * The overall verification status.
754
+ */
755
+ verificationStatus?: string;
756
+ }
757
+ }
758
+ }
759
+ }
760
+ }
761
+ export interface IntlAddressVerificationGetAutocompleteAdvancedPreviewsResponse {
762
+ data: Array<IntlAddressVerificationGetAutocompleteAdvancedPreviewsResponse.Data>;
763
+ message: string;
764
+ status: 'success' | 'error';
765
+ }
766
+ export declare namespace IntlAddressVerificationGetAutocompleteAdvancedPreviewsResponse {
767
+ /**
768
+ * A single address suggestion returned by `GET /completions`. Use the `id` field
769
+ * to retrieve the full address via `POST /completions`.
770
+ */
771
+ interface Data {
772
+ /**
773
+ * The unique identifier for this result. Pass this to `POST /completions` to
774
+ * retrieve the full address. If the `type` is `Container`, pass it as the
775
+ * `container` parameter to `GET /completions` to drill down further.
776
+ */
777
+ id?: string;
778
+ /**
779
+ * A secondary description of the result (e.g. city and country).
780
+ */
781
+ description?: string;
782
+ /**
783
+ * An error message if the lookup failed for this result.
784
+ */
785
+ error?: string;
786
+ /**
787
+ * Character ranges within `text` that match the search input, for bolding in UI.
788
+ */
789
+ highlight?: string;
790
+ /**
791
+ * The human-readable address suggestion text.
792
+ */
793
+ text?: string;
794
+ /**
795
+ * The type of result. `Address` means this can be resolved directly via
796
+ * `POST /completions`. `Container` means the result represents a building or
797
+ * complex — perform another `GET /completions` with this `id` as `container` to
798
+ * get individual unit addresses.
799
+ */
800
+ type?: string;
801
+ }
802
+ }
803
+ export interface IntlAddressVerificationGetAutocompletePreviewsResponse {
804
+ data: Array<IntlAddressVerificationGetAutocompletePreviewsResponse.Data>;
805
+ message: string;
806
+ status: 'success' | 'error';
807
+ }
808
+ export declare namespace IntlAddressVerificationGetAutocompletePreviewsResponse {
809
+ /**
810
+ * A single address suggestion returned by `GET /completions`. Use the `id` field
811
+ * to retrieve the full address via `POST /completions`.
812
+ */
813
+ interface Data {
814
+ /**
815
+ * The unique identifier for this result. Pass this to `POST /completions` to
816
+ * retrieve the full address. If the `type` is `Container`, pass it as the
817
+ * `container` parameter to `GET /completions` to drill down further.
818
+ */
819
+ id?: string;
820
+ /**
821
+ * A secondary description of the result (e.g. city and country).
822
+ */
823
+ description?: string;
824
+ /**
825
+ * An error message if the lookup failed for this result.
826
+ */
827
+ error?: string;
828
+ /**
829
+ * Character ranges within `text` that match the search input, for bolding in UI.
830
+ */
831
+ highlight?: string;
832
+ /**
833
+ * The human-readable address suggestion text.
834
+ */
835
+ text?: string;
836
+ /**
837
+ * The type of result. `Address` means this can be resolved directly via
838
+ * `POST /completions`. `Container` means the result represents a building or
839
+ * complex — perform another `GET /completions` with this `id` as `container` to
840
+ * get individual unit addresses.
841
+ */
842
+ type?: string;
843
+ }
844
+ }
50
845
  export interface IntlAddressVerificationVerifyResponse {
51
846
  /**
52
847
  * The result of a verified international address.
@@ -325,23 +1120,149 @@ export declare namespace IntlAddressVerificationVerifyResponse {
325
1120
  }
326
1121
  }
327
1122
  }
1123
+ export interface IntlAddressVerificationAutocompleteParams {
1124
+ /**
1125
+ * Body param
1126
+ */
1127
+ id: string;
1128
+ /**
1129
+ * Query param
1130
+ */
1131
+ includeDetails?: boolean;
1132
+ /**
1133
+ * Query param
1134
+ */
1135
+ properCase?: boolean;
1136
+ /**
1137
+ * Query param
1138
+ */
1139
+ useEnhancedChinaDataset?: boolean;
1140
+ /**
1141
+ * Query param
1142
+ */
1143
+ verify?: boolean;
1144
+ }
1145
+ export interface IntlAddressVerificationBatchVerificationParams {
1146
+ /**
1147
+ * Body param: Array of addresses to verify. Each item can be a freeform string or
1148
+ * a structured address object.
1149
+ */
1150
+ addresses: Array<IntlAddressVerificationBatchVerificationParams.StructuredAddressInput | IntlAddressVerificationBatchVerificationParams.FreeformAddressInput>;
1151
+ /**
1152
+ * Query param
1153
+ */
1154
+ geoData?: boolean;
1155
+ /**
1156
+ * Query param
1157
+ */
1158
+ includeDetails?: boolean;
1159
+ /**
1160
+ * Query param
1161
+ */
1162
+ properCase?: boolean;
1163
+ /**
1164
+ * Query param
1165
+ */
1166
+ useEnhancedChinaDataset?: boolean;
1167
+ }
1168
+ export declare namespace IntlAddressVerificationBatchVerificationParams {
1169
+ /**
1170
+ * Input model for structured international address verification.
1171
+ */
1172
+ interface StructuredAddressInput {
1173
+ address: StructuredAddressInput.Address;
1174
+ }
1175
+ namespace StructuredAddressInput {
1176
+ interface Address {
1177
+ /**
1178
+ * The country code (ISO 3166-1 alpha-2 or alpha-3).
1179
+ */
1180
+ country: string;
1181
+ /**
1182
+ * The first line of the address (e.g., street address, building, etc.).
1183
+ */
1184
+ line1: string;
1185
+ /**
1186
+ * The postal or ZIP code.
1187
+ */
1188
+ postalOrZip: string;
1189
+ /**
1190
+ * The administrative area (e.g., state, province, region).
1191
+ */
1192
+ provinceOrState: string;
1193
+ /**
1194
+ * The city, town, or locality of the address.
1195
+ */
1196
+ city?: string;
1197
+ /**
1198
+ * The second line of the address (e.g., apartment, suite, etc.).
1199
+ */
1200
+ line2?: string;
1201
+ /**
1202
+ * The third line of the address (e.g., additional locality or delivery info).
1203
+ */
1204
+ line3?: string;
1205
+ /**
1206
+ * The fourth line of the address (e.g., further address details).
1207
+ */
1208
+ line4?: string;
1209
+ }
1210
+ }
1211
+ /**
1212
+ * Input model for freeform international address verification.
1213
+ */
1214
+ interface FreeformAddressInput {
1215
+ /**
1216
+ * The full address as a single string.
1217
+ */
1218
+ address: string;
1219
+ }
1220
+ }
1221
+ export interface IntlAddressVerificationGetAutocompleteAdvancedPreviewsParams {
1222
+ advanced?: boolean;
1223
+ cityFilter?: string;
1224
+ container?: string;
1225
+ countriesFilter?: string;
1226
+ disableIPBiasing?: boolean;
1227
+ language?: string;
1228
+ limit?: number;
1229
+ partialStreet?: string;
1230
+ postalOrZipFilter?: string;
1231
+ standardFallback?: boolean;
1232
+ streetFilter?: string;
1233
+ useEnhancedChinaDataset?: boolean;
1234
+ }
1235
+ export interface IntlAddressVerificationGetAutocompletePreviewsParams {
1236
+ advanced?: boolean;
1237
+ cityFilter?: string;
1238
+ container?: string;
1239
+ countriesFilter?: string;
1240
+ disableIPBiasing?: boolean;
1241
+ language?: string;
1242
+ limit?: number;
1243
+ partialStreet?: string;
1244
+ postalOrZipFilter?: string;
1245
+ standardFallback?: boolean;
1246
+ streetFilter?: string;
1247
+ useEnhancedChinaDataset?: boolean;
1248
+ }
328
1249
  export type IntlAddressVerificationVerifyParams = IntlAddressVerificationVerifyParams.StructuredAddressInput | IntlAddressVerificationVerifyParams.FreeformAddressInput;
329
1250
  export declare namespace IntlAddressVerificationVerifyParams {
330
1251
  interface StructuredAddressInput {
331
1252
  /**
332
- * Body param:
1253
+ * Body param
333
1254
  */
334
1255
  address: StructuredAddressInput.Address;
335
1256
  /**
336
- * Query param:
1257
+ * Query param
337
1258
  */
338
1259
  geoData?: boolean;
339
1260
  /**
340
- * Query param:
1261
+ * Query param
341
1262
  */
342
1263
  includeDetails?: boolean;
343
1264
  /**
344
- * Query param:
1265
+ * Query param
345
1266
  */
346
1267
  properCase?: boolean;
347
1268
  }
@@ -387,20 +1308,20 @@ export declare namespace IntlAddressVerificationVerifyParams {
387
1308
  */
388
1309
  address: string;
389
1310
  /**
390
- * Query param:
1311
+ * Query param
391
1312
  */
392
1313
  geoData?: boolean;
393
1314
  /**
394
- * Query param:
1315
+ * Query param
395
1316
  */
396
1317
  includeDetails?: boolean;
397
1318
  /**
398
- * Query param:
1319
+ * Query param
399
1320
  */
400
1321
  properCase?: boolean;
401
1322
  }
402
1323
  }
403
1324
  export declare namespace IntlAddressVerification {
404
- export { type IntlAddressVerificationVerifyResponse as IntlAddressVerificationVerifyResponse, type IntlAddressVerificationVerifyParams as IntlAddressVerificationVerifyParams, };
1325
+ export { type IntlAddressVerificationAutocompleteResponse as IntlAddressVerificationAutocompleteResponse, type IntlAddressVerificationBatchVerificationResponse as IntlAddressVerificationBatchVerificationResponse, type IntlAddressVerificationGetAutocompleteAdvancedPreviewsResponse as IntlAddressVerificationGetAutocompleteAdvancedPreviewsResponse, type IntlAddressVerificationGetAutocompletePreviewsResponse as IntlAddressVerificationGetAutocompletePreviewsResponse, type IntlAddressVerificationVerifyResponse as IntlAddressVerificationVerifyResponse, type IntlAddressVerificationAutocompleteParams as IntlAddressVerificationAutocompleteParams, type IntlAddressVerificationBatchVerificationParams as IntlAddressVerificationBatchVerificationParams, type IntlAddressVerificationGetAutocompleteAdvancedPreviewsParams as IntlAddressVerificationGetAutocompleteAdvancedPreviewsParams, type IntlAddressVerificationGetAutocompletePreviewsParams as IntlAddressVerificationGetAutocompletePreviewsParams, type IntlAddressVerificationVerifyParams as IntlAddressVerificationVerifyParams, };
405
1326
  }
406
1327
  //# sourceMappingURL=intl-address-verification.d.mts.map