postgrid-node 0.5.0 → 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 +84 -0
  2. package/LICENSE +1 -1
  3. package/README.md +13 -10
  4. package/client.d.mts +30 -10
  5. package/client.d.mts.map +1 -1
  6. package/client.d.ts +30 -10
  7. package/client.d.ts.map +1 -1
  8. package/client.js +56 -10
  9. package/client.js.map +1 -1
  10. package/client.mjs +57 -11
  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 +7 -1
  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 +995 -0
  70. package/resources/print-mail/boxes.d.mts.map +1 -0
  71. package/resources/print-mail/boxes.d.ts +995 -0
  72. package/resources/print-mail/boxes.d.ts.map +1 -0
  73. package/resources/print-mail/boxes.js +103 -0
  74. package/resources/print-mail/boxes.js.map +1 -0
  75. package/resources/print-mail/boxes.mjs +99 -0
  76. package/resources/print-mail/boxes.mjs.map +1 -0
  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 +35 -5
  86. package/resources/print-mail/cheques.d.mts.map +1 -1
  87. package/resources/print-mail/cheques.d.ts +35 -5
  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 -7
  100. package/resources/print-mail/index.d.mts.map +1 -1
  101. package/resources/print-mail/index.d.ts +12 -7
  102. package/resources/print-mail/index.d.ts.map +1 -1
  103. package/resources/print-mail/index.js +15 -5
  104. package/resources/print-mail/index.js.map +1 -1
  105. package/resources/print-mail/index.mjs +6 -1
  106. package/resources/print-mail/index.mjs.map +1 -1
  107. package/resources/print-mail/letters.d.mts +36 -6
  108. package/resources/print-mail/letters.d.mts.map +1 -1
  109. package/resources/print-mail/letters.d.ts +36 -6
  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 +63 -13
  132. package/resources/print-mail/postcards.d.mts.map +1 -1
  133. package/resources/print-mail/postcards.d.ts +63 -13
  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 +42 -159
  140. package/resources/print-mail/print-mail.d.mts.map +1 -1
  141. package/resources/print-mail/print-mail.d.ts +42 -159
  142. package/resources/print-mail/print-mail.d.ts.map +1 -1
  143. package/resources/print-mail/print-mail.js +36 -16
  144. package/resources/print-mail/print-mail.js.map +1 -1
  145. package/resources/print-mail/print-mail.mjs +36 -16
  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 +25 -12
  172. package/resources/print-mail/self-mailers.d.mts.map +1 -1
  173. package/resources/print-mail/self-mailers.d.ts +25 -12
  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 +116 -26
  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 +1324 -0
  286. package/src/resources/print-mail/campaigns.ts +1449 -59
  287. package/src/resources/print-mail/cheques.ts +42 -4
  288. package/src/resources/print-mail/contacts.ts +167 -4
  289. package/src/resources/print-mail/index.ts +79 -4
  290. package/src/resources/print-mail/letters.ts +43 -5
  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 +74 -12
  294. package/src/resources/print-mail/print-mail.ts +245 -239
  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 +28 -12
  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 -387
  357. package/resources/print-mail/order-profiles/cheques.d.mts.map +0 -1
  358. package/resources/print-mail/order-profiles/cheques.d.ts +0 -387
  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 -324
  373. package/resources/print-mail/order-profiles/letters.d.mts.map +0 -1
  374. package/resources/print-mail/order-profiles/letters.d.ts +0 -324
  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 -254
  389. package/resources/print-mail/order-profiles/postcards.d.mts.map +0 -1
  390. package/resources/print-mail/order-profiles/postcards.d.ts +0 -254
  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 -259
  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 -259
  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 -589
  418. package/src/resources/print-mail/order-profiles/index.ts +0 -47
  419. package/src/resources/print-mail/order-profiles/letters.ts +0 -489
  420. package/src/resources/print-mail/order-profiles/order-profiles.ts +0 -113
  421. package/src/resources/print-mail/order-profiles/postcards.ts +0 -404
  422. package/src/resources/print-mail/order-profiles/self-mailers.ts +0 -415
@@ -0,0 +1,296 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../../core/resource';
4
+ import { APIPromise } from '../../../core/api-promise';
5
+ import { PagePromise, SkipLimit, type SkipLimitParams } from '../../../core/pagination';
6
+ import { RequestOptions } from '../../../internal/request-options';
7
+ import { path } from '../../../internal/utils/path';
8
+
9
+ /**
10
+ * Virtual mailboxes let you receive, scan, and forward your physical mail
11
+ * without needing a traditional physical mailbox. Each mailbox is fully
12
+ * digital, giving you a unique ID, status, and a set of capabilities such as
13
+ * forwarding mail to another address or viewing envelope scans. This allows you
14
+ * to manage physical correspondence entirely online.
15
+ *
16
+ * You can request access to this feature by reaching out to
17
+ * support@postgrid.com
18
+ */
19
+ export class Items extends APIResource {
20
+ /**
21
+ * Create a test item for a virtual mailbox. This is only available in test mode,
22
+ * an error will be returned if you attempt this call in live mode.
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * const item =
27
+ * await client.printMail.virtualMailboxes.items.create(
28
+ * 'id',
29
+ * { matchedLetter: 'letter_abcdef1234567890' },
30
+ * );
31
+ * ```
32
+ */
33
+ create(id: string, body: ItemCreateParams, options?: RequestOptions): APIPromise<ItemCreateResponse> {
34
+ return this._client.post(path`/print-mail/v1/virtual_mailboxes/${id}/items`, { body, ...options });
35
+ }
36
+
37
+ /**
38
+ * Retrieves a single item for a virtual mailbox.
39
+ *
40
+ * @example
41
+ * ```ts
42
+ * const item =
43
+ * await client.printMail.virtualMailboxes.items.retrieve(
44
+ * 'itemID',
45
+ * { id: 'id' },
46
+ * );
47
+ * ```
48
+ */
49
+ retrieve(
50
+ itemID: string,
51
+ params: ItemRetrieveParams,
52
+ options?: RequestOptions,
53
+ ): APIPromise<ItemRetrieveResponse> {
54
+ const { id } = params;
55
+ return this._client.get(path`/print-mail/v1/virtual_mailboxes/${id}/items/${itemID}`, options);
56
+ }
57
+
58
+ /**
59
+ * Lists items for a virtual mailbox.
60
+ *
61
+ * @example
62
+ * ```ts
63
+ * // Automatically fetches more pages as needed.
64
+ * for await (const itemListResponse of client.printMail.virtualMailboxes.items.list(
65
+ * 'id',
66
+ * )) {
67
+ * // ...
68
+ * }
69
+ * ```
70
+ */
71
+ list(
72
+ id: string,
73
+ query: ItemListParams | null | undefined = {},
74
+ options?: RequestOptions,
75
+ ): PagePromise<ItemListResponsesSkipLimit, ItemListResponse> {
76
+ return this._client.getAPIList(
77
+ path`/print-mail/v1/virtual_mailboxes/${id}/items`,
78
+ SkipLimit<ItemListResponse>,
79
+ { query, ...options },
80
+ );
81
+ }
82
+ }
83
+
84
+ export type ItemListResponsesSkipLimit = SkipLimit<ItemListResponse>;
85
+
86
+ /**
87
+ * The virtual mailbox item object.
88
+ */
89
+ export interface ItemCreateResponse {
90
+ /**
91
+ * A unique ID prefixed with virtual*mailbox_item*
92
+ */
93
+ id: string;
94
+
95
+ /**
96
+ * The UTC time at which this resource was created.
97
+ */
98
+ createdAt: string;
99
+
100
+ /**
101
+ * `true` if this is a live mode resource else `false`.
102
+ */
103
+ live: boolean;
104
+
105
+ /**
106
+ * Always "virtual_mailbox_item".
107
+ */
108
+ object: 'virtual_mailbox_item';
109
+
110
+ /**
111
+ * The UTC time at which this resource was last updated.
112
+ */
113
+ updatedAt: string;
114
+
115
+ /**
116
+ * The ID of the virtual mailbox associated with this item.
117
+ */
118
+ virtualMailbox: string;
119
+
120
+ /**
121
+ * An optional string describing this resource. Will be visible in the API and the
122
+ * dashboard.
123
+ */
124
+ description?: string;
125
+
126
+ /**
127
+ * A URL of the envelope scan PDF.
128
+ */
129
+ fileURL?: string;
130
+
131
+ /**
132
+ * The ID of the letter this item was matched to.
133
+ */
134
+ matchedLetter?: string;
135
+
136
+ /**
137
+ * See the section on Metadata.
138
+ */
139
+ metadata?: { [key: string]: unknown };
140
+ }
141
+
142
+ /**
143
+ * The virtual mailbox item object.
144
+ */
145
+ export interface ItemRetrieveResponse {
146
+ /**
147
+ * A unique ID prefixed with virtual*mailbox_item*
148
+ */
149
+ id: string;
150
+
151
+ /**
152
+ * The UTC time at which this resource was created.
153
+ */
154
+ createdAt: string;
155
+
156
+ /**
157
+ * `true` if this is a live mode resource else `false`.
158
+ */
159
+ live: boolean;
160
+
161
+ /**
162
+ * Always "virtual_mailbox_item".
163
+ */
164
+ object: 'virtual_mailbox_item';
165
+
166
+ /**
167
+ * The UTC time at which this resource was last updated.
168
+ */
169
+ updatedAt: string;
170
+
171
+ /**
172
+ * The ID of the virtual mailbox associated with this item.
173
+ */
174
+ virtualMailbox: string;
175
+
176
+ /**
177
+ * An optional string describing this resource. Will be visible in the API and the
178
+ * dashboard.
179
+ */
180
+ description?: string;
181
+
182
+ /**
183
+ * A URL of the envelope scan PDF.
184
+ */
185
+ fileURL?: string;
186
+
187
+ /**
188
+ * The ID of the letter this item was matched to.
189
+ */
190
+ matchedLetter?: string;
191
+
192
+ /**
193
+ * See the section on Metadata.
194
+ */
195
+ metadata?: { [key: string]: unknown };
196
+ }
197
+
198
+ /**
199
+ * The virtual mailbox item object.
200
+ */
201
+ export interface ItemListResponse {
202
+ /**
203
+ * A unique ID prefixed with virtual*mailbox_item*
204
+ */
205
+ id: string;
206
+
207
+ /**
208
+ * The UTC time at which this resource was created.
209
+ */
210
+ createdAt: string;
211
+
212
+ /**
213
+ * `true` if this is a live mode resource else `false`.
214
+ */
215
+ live: boolean;
216
+
217
+ /**
218
+ * Always "virtual_mailbox_item".
219
+ */
220
+ object: 'virtual_mailbox_item';
221
+
222
+ /**
223
+ * The UTC time at which this resource was last updated.
224
+ */
225
+ updatedAt: string;
226
+
227
+ /**
228
+ * The ID of the virtual mailbox associated with this item.
229
+ */
230
+ virtualMailbox: string;
231
+
232
+ /**
233
+ * An optional string describing this resource. Will be visible in the API and the
234
+ * dashboard.
235
+ */
236
+ description?: string;
237
+
238
+ /**
239
+ * A URL of the envelope scan PDF.
240
+ */
241
+ fileURL?: string;
242
+
243
+ /**
244
+ * The ID of the letter this item was matched to.
245
+ */
246
+ matchedLetter?: string;
247
+
248
+ /**
249
+ * See the section on Metadata.
250
+ */
251
+ metadata?: { [key: string]: unknown };
252
+ }
253
+
254
+ export interface ItemCreateParams {
255
+ /**
256
+ * The description of the item.
257
+ */
258
+ description?: string;
259
+
260
+ /**
261
+ * The ID of a letter to match this test item to.
262
+ */
263
+ matchedLetter?: string;
264
+
265
+ /**
266
+ * The metadata of the item.
267
+ */
268
+ metadata?: { [key: string]: unknown };
269
+ }
270
+
271
+ export interface ItemRetrieveParams {
272
+ id: string;
273
+ }
274
+
275
+ export interface ItemListParams extends SkipLimitParams {
276
+ /**
277
+ * You can supply any string to help narrow down the list of resources. For
278
+ * example, if you pass `"New York"` (quoted), it will return resources that have
279
+ * that string present somewhere in their response. Alternatively, you can supply a
280
+ * structured search query. See the documentation on `StructuredSearchQuery` for
281
+ * more details.
282
+ */
283
+ search?: string;
284
+ }
285
+
286
+ export declare namespace Items {
287
+ export {
288
+ type ItemCreateResponse as ItemCreateResponse,
289
+ type ItemRetrieveResponse as ItemRetrieveResponse,
290
+ type ItemListResponse as ItemListResponse,
291
+ type ItemListResponsesSkipLimit as ItemListResponsesSkipLimit,
292
+ type ItemCreateParams as ItemCreateParams,
293
+ type ItemRetrieveParams as ItemRetrieveParams,
294
+ type ItemListParams as ItemListParams,
295
+ };
296
+ }
@@ -0,0 +1,434 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../../core/resource';
4
+ import * as ContactsAPI from '../contacts';
5
+ import * as ItemsAPI from './items';
6
+ import {
7
+ ItemCreateParams,
8
+ ItemCreateResponse,
9
+ ItemListParams,
10
+ ItemListResponse,
11
+ ItemListResponsesSkipLimit,
12
+ ItemRetrieveParams,
13
+ ItemRetrieveResponse,
14
+ Items,
15
+ } from './items';
16
+ import { APIPromise } from '../../../core/api-promise';
17
+ import { PagePromise, SkipLimit, type SkipLimitParams } from '../../../core/pagination';
18
+ import { RequestOptions } from '../../../internal/request-options';
19
+ import { path } from '../../../internal/utils/path';
20
+
21
+ /**
22
+ * Virtual mailboxes let you receive, scan, and forward your physical mail
23
+ * without needing a traditional physical mailbox. Each mailbox is fully
24
+ * digital, giving you a unique ID, status, and a set of capabilities such as
25
+ * forwarding mail to another address or viewing envelope scans. This allows you
26
+ * to manage physical correspondence entirely online.
27
+ *
28
+ * You can request access to this feature by reaching out to
29
+ * support@postgrid.com
30
+ */
31
+ export class VirtualMailboxes extends APIResource {
32
+ items: ItemsAPI.Items = new ItemsAPI.Items(this._client);
33
+
34
+ /**
35
+ * Creates a new virtual mailbox. In live mode, the virtual mailbox will be pending
36
+ * assignment and cannot be used until it has been assigned and activated by our
37
+ * team. You will be notified via email once the virtual mailbox has been
38
+ * activated. In test mode, the virtual mailbox will be activated immediately upon
39
+ * creation.
40
+ *
41
+ * @example
42
+ * ```ts
43
+ * const virtualMailbox =
44
+ * await client.printMail.virtualMailboxes.create({
45
+ * countryCode: 'US',
46
+ * capabilities: {
47
+ * envelopeScans: true,
48
+ * forwardMailTo: 'contact_pxd7wnnD1xY6H6etKNvjb4',
49
+ * },
50
+ * });
51
+ * ```
52
+ */
53
+ create(
54
+ body: VirtualMailboxCreateParams,
55
+ options?: RequestOptions,
56
+ ): APIPromise<VirtualMailboxCreateResponse> {
57
+ return this._client.post('/print-mail/v1/virtual_mailboxes', { body, ...options });
58
+ }
59
+
60
+ /**
61
+ * Retrieve Virtual Mailbox
62
+ *
63
+ * @example
64
+ * ```ts
65
+ * const virtualMailbox =
66
+ * await client.printMail.virtualMailboxes.retrieve('id');
67
+ * ```
68
+ */
69
+ retrieve(id: string, options?: RequestOptions): APIPromise<VirtualMailboxRetrieveResponse> {
70
+ return this._client.get(path`/print-mail/v1/virtual_mailboxes/${id}`, options);
71
+ }
72
+
73
+ /**
74
+ * Lists virtual mailboxes. You can use the `skip`, `limit`, and `search` query
75
+ * parameters to refine the list.
76
+ *
77
+ * @example
78
+ * ```ts
79
+ * // Automatically fetches more pages as needed.
80
+ * for await (const virtualMailboxListResponse of client.printMail.virtualMailboxes.list()) {
81
+ * // ...
82
+ * }
83
+ * ```
84
+ */
85
+ list(
86
+ query: VirtualMailboxListParams | null | undefined = {},
87
+ options?: RequestOptions,
88
+ ): PagePromise<VirtualMailboxListResponsesSkipLimit, VirtualMailboxListResponse> {
89
+ return this._client.getAPIList(
90
+ '/print-mail/v1/virtual_mailboxes',
91
+ SkipLimit<VirtualMailboxListResponse>,
92
+ { query, ...options },
93
+ );
94
+ }
95
+
96
+ /**
97
+ * Retrieves the physical address of the virtual mailbox.
98
+ *
99
+ * @example
100
+ * ```ts
101
+ * const response =
102
+ * await client.printMail.virtualMailboxes.retrieveAddress(
103
+ * 'id',
104
+ * );
105
+ * ```
106
+ */
107
+ retrieveAddress(id: string, options?: RequestOptions): APIPromise<VirtualMailboxRetrieveAddressResponse> {
108
+ return this._client.get(path`/print-mail/v1/virtual_mailboxes/${id}/address`, options);
109
+ }
110
+ }
111
+
112
+ export type VirtualMailboxListResponsesSkipLimit = SkipLimit<VirtualMailboxListResponse>;
113
+
114
+ /**
115
+ * The virtual mailbox object.
116
+ */
117
+ export interface VirtualMailboxCreateResponse {
118
+ /**
119
+ * A unique ID prefixed with virtual*mailbox*
120
+ */
121
+ id: string;
122
+
123
+ /**
124
+ * All of the capabilities a virtual mailbox may have.
125
+ */
126
+ capabilities: VirtualMailboxCreateResponse.Capabilities;
127
+
128
+ /**
129
+ * All of the supported countries for virtual mailboxes.
130
+ */
131
+ countryCode: 'US';
132
+
133
+ /**
134
+ * The UTC time at which this resource was created.
135
+ */
136
+ createdAt: string;
137
+
138
+ /**
139
+ * `true` if this is a live mode resource else `false`.
140
+ */
141
+ live: boolean;
142
+
143
+ /**
144
+ * Always "virtual_mailbox".
145
+ */
146
+ object: 'virtual_mailbox';
147
+
148
+ /**
149
+ * The possible statuses of virtual mailboxes.
150
+ */
151
+ status: 'active' | 'pending_assignment';
152
+
153
+ /**
154
+ * The UTC time at which this resource was last updated.
155
+ */
156
+ updatedAt: string;
157
+
158
+ /**
159
+ * An optional string describing this resource. Will be visible in the API and the
160
+ * dashboard.
161
+ */
162
+ description?: string;
163
+
164
+ /**
165
+ * See the section on Metadata.
166
+ */
167
+ metadata?: { [key: string]: unknown };
168
+ }
169
+
170
+ export namespace VirtualMailboxCreateResponse {
171
+ /**
172
+ * All of the capabilities a virtual mailbox may have.
173
+ */
174
+ export interface Capabilities {
175
+ /**
176
+ * Indicates if the virtual mailbox can produce scans of envelopes.
177
+ */
178
+ envelopeScans: boolean;
179
+
180
+ /**
181
+ * A contact to forward any returned mail to.
182
+ */
183
+ forwardMailTo?: ContactsAPI.Contact;
184
+ }
185
+ }
186
+
187
+ /**
188
+ * The virtual mailbox object.
189
+ */
190
+ export interface VirtualMailboxRetrieveResponse {
191
+ /**
192
+ * A unique ID prefixed with virtual*mailbox*
193
+ */
194
+ id: string;
195
+
196
+ /**
197
+ * All of the capabilities a virtual mailbox may have.
198
+ */
199
+ capabilities: VirtualMailboxRetrieveResponse.Capabilities;
200
+
201
+ /**
202
+ * All of the supported countries for virtual mailboxes.
203
+ */
204
+ countryCode: 'US';
205
+
206
+ /**
207
+ * The UTC time at which this resource was created.
208
+ */
209
+ createdAt: string;
210
+
211
+ /**
212
+ * `true` if this is a live mode resource else `false`.
213
+ */
214
+ live: boolean;
215
+
216
+ /**
217
+ * Always "virtual_mailbox".
218
+ */
219
+ object: 'virtual_mailbox';
220
+
221
+ /**
222
+ * The possible statuses of virtual mailboxes.
223
+ */
224
+ status: 'active' | 'pending_assignment';
225
+
226
+ /**
227
+ * The UTC time at which this resource was last updated.
228
+ */
229
+ updatedAt: string;
230
+
231
+ /**
232
+ * An optional string describing this resource. Will be visible in the API and the
233
+ * dashboard.
234
+ */
235
+ description?: string;
236
+
237
+ /**
238
+ * See the section on Metadata.
239
+ */
240
+ metadata?: { [key: string]: unknown };
241
+ }
242
+
243
+ export namespace VirtualMailboxRetrieveResponse {
244
+ /**
245
+ * All of the capabilities a virtual mailbox may have.
246
+ */
247
+ export interface Capabilities {
248
+ /**
249
+ * Indicates if the virtual mailbox can produce scans of envelopes.
250
+ */
251
+ envelopeScans: boolean;
252
+
253
+ /**
254
+ * A contact to forward any returned mail to.
255
+ */
256
+ forwardMailTo?: ContactsAPI.Contact;
257
+ }
258
+ }
259
+
260
+ /**
261
+ * The virtual mailbox object.
262
+ */
263
+ export interface VirtualMailboxListResponse {
264
+ /**
265
+ * A unique ID prefixed with virtual*mailbox*
266
+ */
267
+ id: string;
268
+
269
+ /**
270
+ * All of the capabilities a virtual mailbox may have.
271
+ */
272
+ capabilities: VirtualMailboxListResponse.Capabilities;
273
+
274
+ /**
275
+ * All of the supported countries for virtual mailboxes.
276
+ */
277
+ countryCode: 'US';
278
+
279
+ /**
280
+ * The UTC time at which this resource was created.
281
+ */
282
+ createdAt: string;
283
+
284
+ /**
285
+ * `true` if this is a live mode resource else `false`.
286
+ */
287
+ live: boolean;
288
+
289
+ /**
290
+ * Always "virtual_mailbox".
291
+ */
292
+ object: 'virtual_mailbox';
293
+
294
+ /**
295
+ * The possible statuses of virtual mailboxes.
296
+ */
297
+ status: 'active' | 'pending_assignment';
298
+
299
+ /**
300
+ * The UTC time at which this resource was last updated.
301
+ */
302
+ updatedAt: string;
303
+
304
+ /**
305
+ * An optional string describing this resource. Will be visible in the API and the
306
+ * dashboard.
307
+ */
308
+ description?: string;
309
+
310
+ /**
311
+ * See the section on Metadata.
312
+ */
313
+ metadata?: { [key: string]: unknown };
314
+ }
315
+
316
+ export namespace VirtualMailboxListResponse {
317
+ /**
318
+ * All of the capabilities a virtual mailbox may have.
319
+ */
320
+ export interface Capabilities {
321
+ /**
322
+ * Indicates if the virtual mailbox can produce scans of envelopes.
323
+ */
324
+ envelopeScans: boolean;
325
+
326
+ /**
327
+ * A contact to forward any returned mail to.
328
+ */
329
+ forwardMailTo?: ContactsAPI.Contact;
330
+ }
331
+ }
332
+
333
+ /**
334
+ * The address information for a mailbox.
335
+ */
336
+ export interface VirtualMailboxRetrieveAddressResponse {
337
+ /**
338
+ * The address line 1 of the mailbox.
339
+ */
340
+ addressLine1: string;
341
+
342
+ /**
343
+ * All of the supported countries for virtual mailboxes.
344
+ */
345
+ countryCode: 'US';
346
+
347
+ /**
348
+ * The address line 2 of the mailbox.
349
+ */
350
+ addressLine2?: string;
351
+
352
+ /**
353
+ * The city of the mailbox.
354
+ */
355
+ city?: string;
356
+
357
+ /**
358
+ * The postal or ZIP code of the mailbox.
359
+ */
360
+ postalOrZip?: string;
361
+
362
+ /**
363
+ * The province or state of the mailbox.
364
+ */
365
+ provinceOrState?: string;
366
+ }
367
+
368
+ export interface VirtualMailboxCreateParams {
369
+ /**
370
+ * All of the supported countries for virtual mailboxes.
371
+ */
372
+ countryCode: 'US';
373
+
374
+ /**
375
+ * The capabilities the virtual mailbox should support.
376
+ */
377
+ capabilities?: VirtualMailboxCreateParams.Capabilities;
378
+ }
379
+
380
+ export namespace VirtualMailboxCreateParams {
381
+ /**
382
+ * The capabilities the virtual mailbox should support.
383
+ */
384
+ export interface Capabilities {
385
+ /**
386
+ * If the virtual mailbox should support envelope scans or not.
387
+ */
388
+ envelopeScans: boolean;
389
+
390
+ /**
391
+ * A contact ID or contact object.
392
+ */
393
+ forwardMailTo?:
394
+ | ContactsAPI.ContactCreateWithFirstName
395
+ | ContactsAPI.ContactCreateWithCompanyName
396
+ | string;
397
+ }
398
+ }
399
+
400
+ export interface VirtualMailboxListParams extends SkipLimitParams {
401
+ /**
402
+ * You can supply any string to help narrow down the list of resources. For
403
+ * example, if you pass `"New York"` (quoted), it will return resources that have
404
+ * that string present somewhere in their response. Alternatively, you can supply a
405
+ * structured search query. See the documentation on `StructuredSearchQuery` for
406
+ * more details.
407
+ */
408
+ search?: string;
409
+ }
410
+
411
+ VirtualMailboxes.Items = Items;
412
+
413
+ export declare namespace VirtualMailboxes {
414
+ export {
415
+ type VirtualMailboxCreateResponse as VirtualMailboxCreateResponse,
416
+ type VirtualMailboxRetrieveResponse as VirtualMailboxRetrieveResponse,
417
+ type VirtualMailboxListResponse as VirtualMailboxListResponse,
418
+ type VirtualMailboxRetrieveAddressResponse as VirtualMailboxRetrieveAddressResponse,
419
+ type VirtualMailboxListResponsesSkipLimit as VirtualMailboxListResponsesSkipLimit,
420
+ type VirtualMailboxCreateParams as VirtualMailboxCreateParams,
421
+ type VirtualMailboxListParams as VirtualMailboxListParams,
422
+ };
423
+
424
+ export {
425
+ Items as Items,
426
+ type ItemCreateResponse as ItemCreateResponse,
427
+ type ItemRetrieveResponse as ItemRetrieveResponse,
428
+ type ItemListResponse as ItemListResponse,
429
+ type ItemListResponsesSkipLimit as ItemListResponsesSkipLimit,
430
+ type ItemCreateParams as ItemCreateParams,
431
+ type ItemRetrieveParams as ItemRetrieveParams,
432
+ type ItemListParams as ItemListParams,
433
+ };
434
+ }