rcs-js 2.0.19 → 2.0.21

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 (304) hide show
  1. package/dist/cjs/Client.d.ts +3 -0
  2. package/dist/cjs/Client.js +19 -14
  3. package/dist/cjs/api/resources/forms/client/Client.d.ts +171 -0
  4. package/dist/cjs/api/resources/forms/client/Client.js +500 -0
  5. package/dist/cjs/api/resources/forms/client/index.d.ts +1 -0
  6. package/dist/cjs/api/resources/forms/client/index.js +17 -0
  7. package/dist/cjs/api/resources/forms/client/requests/ListFormsParams.d.ts +13 -0
  8. package/dist/cjs/api/resources/forms/client/requests/ListFormsParams.js +3 -0
  9. package/dist/cjs/api/resources/forms/client/requests/UpdateFormParams.d.ts +25 -0
  10. package/dist/cjs/api/resources/forms/client/requests/UpdateFormParams.js +3 -0
  11. package/dist/cjs/api/resources/forms/client/requests/index.d.ts +2 -0
  12. package/dist/cjs/api/resources/forms/client/requests/index.js +2 -0
  13. package/dist/cjs/api/resources/forms/index.d.ts +3 -0
  14. package/dist/cjs/api/resources/forms/index.js +19 -0
  15. package/dist/cjs/api/resources/forms/resources/index.d.ts +2 -0
  16. package/dist/cjs/api/resources/forms/resources/index.js +41 -0
  17. package/dist/cjs/api/resources/forms/resources/submissions/client/Client.d.ts +35 -0
  18. package/dist/cjs/api/resources/forms/resources/submissions/client/Client.js +141 -0
  19. package/dist/cjs/api/resources/forms/resources/submissions/client/index.d.ts +1 -0
  20. package/dist/cjs/api/resources/forms/resources/submissions/client/index.js +17 -0
  21. package/dist/cjs/api/resources/forms/resources/submissions/client/requests/ListFormSubmissionsParams.d.ts +13 -0
  22. package/dist/cjs/api/resources/forms/resources/submissions/client/requests/ListFormSubmissionsParams.js +3 -0
  23. package/dist/cjs/api/resources/forms/resources/submissions/client/requests/index.d.ts +1 -0
  24. package/dist/cjs/api/resources/forms/resources/submissions/client/requests/index.js +2 -0
  25. package/dist/cjs/api/resources/forms/resources/submissions/index.d.ts +1 -0
  26. package/dist/cjs/api/resources/forms/resources/submissions/index.js +17 -0
  27. package/dist/cjs/api/resources/forms/types/FormsSendResponse.d.ts +2 -0
  28. package/dist/cjs/api/resources/forms/types/FormsSendResponse.js +3 -0
  29. package/dist/cjs/api/resources/forms/types/index.d.ts +1 -0
  30. package/dist/cjs/api/resources/forms/types/index.js +17 -0
  31. package/dist/cjs/api/resources/index.d.ts +3 -0
  32. package/dist/cjs/api/resources/index.js +4 -1
  33. package/dist/cjs/api/resources/webhooks/client/requests/AttachWebhookParams.d.ts +1 -1
  34. package/dist/cjs/api/types/AddressField.d.ts +14 -0
  35. package/dist/cjs/api/types/AddressField.js +3 -0
  36. package/dist/cjs/api/types/AgentSummary.d.ts +16 -2
  37. package/dist/cjs/api/types/CampaignStatusEvent.d.ts +19 -0
  38. package/dist/cjs/api/types/CampaignStatusEvent.js +3 -0
  39. package/dist/cjs/api/types/CampaignStatusEventAgent.d.ts +9 -0
  40. package/dist/cjs/api/types/CampaignStatusEventAgent.js +3 -0
  41. package/dist/cjs/api/types/CampaignStatusEventBrand.d.ts +9 -0
  42. package/dist/cjs/api/types/CampaignStatusEventBrand.js +3 -0
  43. package/dist/cjs/api/types/CampaignStatusEventCampaign.d.ts +18 -0
  44. package/dist/cjs/api/types/CampaignStatusEventCampaign.js +13 -0
  45. package/dist/cjs/api/types/CampaignStatusEventCarrierLaunches.d.ts +48 -0
  46. package/dist/cjs/api/types/CampaignStatusEventCarrierLaunches.js +3 -0
  47. package/dist/cjs/api/types/CarrierLaunchStatus.d.ts +4 -4
  48. package/dist/cjs/api/types/CarrierLaunchStatus.js +4 -4
  49. package/dist/cjs/api/types/CarrierLaunches.d.ts +49 -9
  50. package/dist/cjs/api/types/CheckboxField.d.ts +12 -0
  51. package/dist/cjs/api/types/CheckboxField.js +3 -0
  52. package/dist/cjs/api/types/ColorField.d.ts +6 -0
  53. package/dist/cjs/api/types/ColorField.js +3 -0
  54. package/dist/cjs/api/types/CreateFormRequest.d.ts +5 -0
  55. package/dist/cjs/api/types/CreateFormRequest.js +3 -0
  56. package/dist/cjs/api/types/DateField.d.ts +12 -0
  57. package/dist/cjs/api/types/DateField.js +3 -0
  58. package/dist/cjs/api/types/DatetimeField.d.ts +12 -0
  59. package/dist/cjs/api/types/DatetimeField.js +3 -0
  60. package/dist/cjs/api/types/EmailField.d.ts +8 -0
  61. package/dist/cjs/api/types/EmailField.js +3 -0
  62. package/dist/cjs/api/types/FieldBase.d.ts +13 -0
  63. package/dist/cjs/api/types/FieldBase.js +3 -0
  64. package/dist/cjs/api/types/Form.d.ts +32 -0
  65. package/dist/cjs/api/types/Form.js +3 -0
  66. package/dist/cjs/api/types/FormBackground.d.ts +19 -0
  67. package/dist/cjs/api/types/FormBackground.js +3 -0
  68. package/dist/cjs/api/types/FormBackgroundGradient.d.ts +10 -0
  69. package/dist/cjs/api/types/FormBackgroundGradient.js +3 -0
  70. package/dist/cjs/api/types/FormBackgroundImage.d.ts +13 -0
  71. package/dist/cjs/api/types/FormBackgroundImage.js +3 -0
  72. package/dist/cjs/api/types/FormBackgroundPattern.d.ts +19 -0
  73. package/dist/cjs/api/types/FormBackgroundPattern.js +16 -0
  74. package/dist/cjs/api/types/FormBackgroundSolid.d.ts +24 -0
  75. package/dist/cjs/api/types/FormBackgroundSolid.js +3 -0
  76. package/dist/cjs/api/types/FormColorPalette.d.ts +11 -0
  77. package/dist/cjs/api/types/FormColorPalette.js +3 -0
  78. package/dist/cjs/api/types/FormDefinition.d.ts +18 -0
  79. package/dist/cjs/api/types/FormDefinition.js +3 -0
  80. package/dist/cjs/api/types/FormField.d.ts +55 -0
  81. package/dist/cjs/api/types/FormField.js +3 -0
  82. package/dist/cjs/api/types/FormFieldOption.d.ts +9 -0
  83. package/dist/cjs/api/types/FormFieldOption.js +3 -0
  84. package/dist/cjs/api/types/FormGradient.d.ts +19 -0
  85. package/dist/cjs/api/types/FormGradient.js +12 -0
  86. package/dist/cjs/api/types/FormIdReference.d.ts +4 -0
  87. package/dist/cjs/api/types/FormIdReference.js +3 -0
  88. package/dist/cjs/api/types/FormSubmission.d.ts +34 -0
  89. package/dist/cjs/api/types/FormSubmission.js +3 -0
  90. package/dist/cjs/api/types/FormSubmissionAnswer.d.ts +9 -0
  91. package/dist/cjs/api/types/FormSubmissionAnswer.js +3 -0
  92. package/dist/cjs/api/types/FormSubmissionEvent.d.ts +12 -0
  93. package/dist/cjs/api/types/FormSubmissionEvent.js +3 -0
  94. package/dist/cjs/api/types/FormSubmissionEventConversation.d.ts +15 -0
  95. package/dist/cjs/api/types/FormSubmissionEventConversation.js +3 -0
  96. package/dist/cjs/api/types/FormSubmissionEventForm.d.ts +11 -0
  97. package/dist/cjs/api/types/FormSubmissionEventForm.js +3 -0
  98. package/dist/cjs/api/types/FormSubmissionEventSubmission.d.ts +31 -0
  99. package/dist/cjs/api/types/FormSubmissionEventSubmission.js +3 -0
  100. package/dist/cjs/api/types/FormSubmittedField.d.ts +14 -0
  101. package/dist/cjs/api/types/FormSubmittedField.js +3 -0
  102. package/dist/cjs/api/types/FormThemeOverride.d.ts +77 -0
  103. package/dist/cjs/api/types/FormThemeOverride.js +33 -0
  104. package/dist/cjs/api/types/ListFormSubmissionsResponse.d.ts +12 -0
  105. package/dist/cjs/api/types/ListFormSubmissionsResponse.js +3 -0
  106. package/dist/cjs/api/types/ListFormsResponse.d.ts +12 -0
  107. package/dist/cjs/api/types/ListFormsResponse.js +3 -0
  108. package/dist/cjs/api/types/MessageEvent.d.ts +8 -2
  109. package/dist/cjs/api/types/MessageEvent.js +5 -0
  110. package/dist/cjs/api/types/NumberField.d.ts +14 -0
  111. package/dist/cjs/api/types/NumberField.js +3 -0
  112. package/dist/cjs/api/types/PhoneField.d.ts +8 -0
  113. package/dist/cjs/api/types/PhoneField.js +3 -0
  114. package/dist/cjs/api/types/RadioField.d.ts +8 -0
  115. package/dist/cjs/api/types/RadioField.js +3 -0
  116. package/dist/cjs/api/types/RangeField.d.ts +12 -0
  117. package/dist/cjs/api/types/RangeField.js +3 -0
  118. package/dist/cjs/api/types/RatingField.d.ts +10 -0
  119. package/dist/cjs/api/types/RatingField.js +3 -0
  120. package/dist/cjs/api/types/ScheduledFormSendResult.d.ts +20 -0
  121. package/dist/cjs/api/types/ScheduledFormSendResult.js +3 -0
  122. package/dist/cjs/api/types/SelectField.d.ts +10 -0
  123. package/dist/cjs/api/types/SelectField.js +3 -0
  124. package/dist/cjs/api/types/SendFormOptions.d.ts +18 -0
  125. package/dist/cjs/api/types/SendFormOptions.js +13 -0
  126. package/dist/cjs/api/types/SendFormParams.d.ts +9 -0
  127. package/dist/cjs/api/types/SendFormParams.js +3 -0
  128. package/dist/cjs/api/types/SendFormResult.d.ts +13 -0
  129. package/dist/cjs/api/types/SendFormResult.js +3 -0
  130. package/dist/cjs/api/types/SendFormViaRcsParams.d.ts +28 -0
  131. package/dist/cjs/api/types/SendFormViaRcsParams.js +3 -0
  132. package/dist/cjs/api/types/SendFormViaSmsParams.d.ts +15 -0
  133. package/dist/cjs/api/types/SendFormViaSmsParams.js +3 -0
  134. package/dist/cjs/api/types/TextField.d.ts +14 -0
  135. package/dist/cjs/api/types/TextField.js +3 -0
  136. package/dist/cjs/api/types/TextareaField.d.ts +14 -0
  137. package/dist/cjs/api/types/TextareaField.js +3 -0
  138. package/dist/cjs/api/types/TimeField.d.ts +12 -0
  139. package/dist/cjs/api/types/TimeField.js +3 -0
  140. package/dist/cjs/api/types/UrlField.d.ts +8 -0
  141. package/dist/cjs/api/types/UrlField.js +3 -0
  142. package/dist/cjs/api/types/UserEvent.d.ts +5 -2
  143. package/dist/cjs/api/types/VerificationStatus.d.ts +12 -0
  144. package/dist/cjs/api/types/VerificationStatus.js +15 -0
  145. package/dist/cjs/api/types/WebhookEventEnum.d.ts +2 -0
  146. package/dist/cjs/api/types/WebhookEventEnum.js +2 -0
  147. package/dist/cjs/api/types/index.d.ts +52 -0
  148. package/dist/cjs/api/types/index.js +52 -0
  149. package/dist/cjs/version.d.ts +1 -1
  150. package/dist/cjs/version.js +1 -1
  151. package/dist/cjs/wrapper/messages/Client.d.ts +1 -1
  152. package/dist/esm/Client.d.mts +3 -0
  153. package/dist/esm/Client.mjs +7 -2
  154. package/dist/esm/api/resources/forms/client/Client.d.mts +171 -0
  155. package/dist/esm/api/resources/forms/client/Client.mjs +463 -0
  156. package/dist/esm/api/resources/forms/client/index.d.mts +1 -0
  157. package/dist/esm/api/resources/forms/client/index.mjs +1 -0
  158. package/dist/esm/api/resources/forms/client/requests/ListFormsParams.d.mts +13 -0
  159. package/dist/esm/api/resources/forms/client/requests/ListFormsParams.mjs +2 -0
  160. package/dist/esm/api/resources/forms/client/requests/UpdateFormParams.d.mts +25 -0
  161. package/dist/esm/api/resources/forms/client/requests/UpdateFormParams.mjs +2 -0
  162. package/dist/esm/api/resources/forms/client/requests/index.d.mts +2 -0
  163. package/dist/esm/api/resources/forms/client/requests/index.mjs +1 -0
  164. package/dist/esm/api/resources/forms/index.d.mts +3 -0
  165. package/dist/esm/api/resources/forms/index.mjs +3 -0
  166. package/dist/esm/api/resources/forms/resources/index.d.mts +2 -0
  167. package/dist/esm/api/resources/forms/resources/index.mjs +2 -0
  168. package/dist/esm/api/resources/forms/resources/submissions/client/Client.d.mts +35 -0
  169. package/dist/esm/api/resources/forms/resources/submissions/client/Client.mjs +104 -0
  170. package/dist/esm/api/resources/forms/resources/submissions/client/index.d.mts +1 -0
  171. package/dist/esm/api/resources/forms/resources/submissions/client/index.mjs +1 -0
  172. package/dist/esm/api/resources/forms/resources/submissions/client/requests/ListFormSubmissionsParams.d.mts +13 -0
  173. package/dist/esm/api/resources/forms/resources/submissions/client/requests/ListFormSubmissionsParams.mjs +2 -0
  174. package/dist/esm/api/resources/forms/resources/submissions/client/requests/index.d.mts +1 -0
  175. package/dist/esm/api/resources/forms/resources/submissions/client/requests/index.mjs +1 -0
  176. package/dist/esm/api/resources/forms/resources/submissions/index.d.mts +1 -0
  177. package/dist/esm/api/resources/forms/resources/submissions/index.mjs +1 -0
  178. package/dist/esm/api/resources/forms/types/FormsSendResponse.d.mts +2 -0
  179. package/dist/esm/api/resources/forms/types/FormsSendResponse.mjs +2 -0
  180. package/dist/esm/api/resources/forms/types/index.d.mts +1 -0
  181. package/dist/esm/api/resources/forms/types/index.mjs +1 -0
  182. package/dist/esm/api/resources/index.d.mts +3 -0
  183. package/dist/esm/api/resources/index.mjs +3 -0
  184. package/dist/esm/api/resources/webhooks/client/requests/AttachWebhookParams.d.mts +1 -1
  185. package/dist/esm/api/types/AddressField.d.mts +14 -0
  186. package/dist/esm/api/types/AddressField.mjs +2 -0
  187. package/dist/esm/api/types/AgentSummary.d.mts +16 -2
  188. package/dist/esm/api/types/CampaignStatusEvent.d.mts +19 -0
  189. package/dist/esm/api/types/CampaignStatusEvent.mjs +2 -0
  190. package/dist/esm/api/types/CampaignStatusEventAgent.d.mts +9 -0
  191. package/dist/esm/api/types/CampaignStatusEventAgent.mjs +2 -0
  192. package/dist/esm/api/types/CampaignStatusEventBrand.d.mts +9 -0
  193. package/dist/esm/api/types/CampaignStatusEventBrand.mjs +2 -0
  194. package/dist/esm/api/types/CampaignStatusEventCampaign.d.mts +18 -0
  195. package/dist/esm/api/types/CampaignStatusEventCampaign.mjs +10 -0
  196. package/dist/esm/api/types/CampaignStatusEventCarrierLaunches.d.mts +48 -0
  197. package/dist/esm/api/types/CampaignStatusEventCarrierLaunches.mjs +2 -0
  198. package/dist/esm/api/types/CarrierLaunchStatus.d.mts +4 -4
  199. package/dist/esm/api/types/CarrierLaunchStatus.mjs +4 -4
  200. package/dist/esm/api/types/CarrierLaunches.d.mts +49 -9
  201. package/dist/esm/api/types/CheckboxField.d.mts +12 -0
  202. package/dist/esm/api/types/CheckboxField.mjs +2 -0
  203. package/dist/esm/api/types/ColorField.d.mts +6 -0
  204. package/dist/esm/api/types/ColorField.mjs +2 -0
  205. package/dist/esm/api/types/CreateFormRequest.d.mts +5 -0
  206. package/dist/esm/api/types/CreateFormRequest.mjs +2 -0
  207. package/dist/esm/api/types/DateField.d.mts +12 -0
  208. package/dist/esm/api/types/DateField.mjs +2 -0
  209. package/dist/esm/api/types/DatetimeField.d.mts +12 -0
  210. package/dist/esm/api/types/DatetimeField.mjs +2 -0
  211. package/dist/esm/api/types/EmailField.d.mts +8 -0
  212. package/dist/esm/api/types/EmailField.mjs +2 -0
  213. package/dist/esm/api/types/FieldBase.d.mts +13 -0
  214. package/dist/esm/api/types/FieldBase.mjs +2 -0
  215. package/dist/esm/api/types/Form.d.mts +32 -0
  216. package/dist/esm/api/types/Form.mjs +2 -0
  217. package/dist/esm/api/types/FormBackground.d.mts +19 -0
  218. package/dist/esm/api/types/FormBackground.mjs +2 -0
  219. package/dist/esm/api/types/FormBackgroundGradient.d.mts +10 -0
  220. package/dist/esm/api/types/FormBackgroundGradient.mjs +2 -0
  221. package/dist/esm/api/types/FormBackgroundImage.d.mts +13 -0
  222. package/dist/esm/api/types/FormBackgroundImage.mjs +2 -0
  223. package/dist/esm/api/types/FormBackgroundPattern.d.mts +19 -0
  224. package/dist/esm/api/types/FormBackgroundPattern.mjs +13 -0
  225. package/dist/esm/api/types/FormBackgroundSolid.d.mts +24 -0
  226. package/dist/esm/api/types/FormBackgroundSolid.mjs +2 -0
  227. package/dist/esm/api/types/FormColorPalette.d.mts +11 -0
  228. package/dist/esm/api/types/FormColorPalette.mjs +2 -0
  229. package/dist/esm/api/types/FormDefinition.d.mts +18 -0
  230. package/dist/esm/api/types/FormDefinition.mjs +2 -0
  231. package/dist/esm/api/types/FormField.d.mts +55 -0
  232. package/dist/esm/api/types/FormField.mjs +2 -0
  233. package/dist/esm/api/types/FormFieldOption.d.mts +9 -0
  234. package/dist/esm/api/types/FormFieldOption.mjs +2 -0
  235. package/dist/esm/api/types/FormGradient.d.mts +19 -0
  236. package/dist/esm/api/types/FormGradient.mjs +9 -0
  237. package/dist/esm/api/types/FormIdReference.d.mts +4 -0
  238. package/dist/esm/api/types/FormIdReference.mjs +2 -0
  239. package/dist/esm/api/types/FormSubmission.d.mts +34 -0
  240. package/dist/esm/api/types/FormSubmission.mjs +2 -0
  241. package/dist/esm/api/types/FormSubmissionAnswer.d.mts +9 -0
  242. package/dist/esm/api/types/FormSubmissionAnswer.mjs +2 -0
  243. package/dist/esm/api/types/FormSubmissionEvent.d.mts +12 -0
  244. package/dist/esm/api/types/FormSubmissionEvent.mjs +2 -0
  245. package/dist/esm/api/types/FormSubmissionEventConversation.d.mts +15 -0
  246. package/dist/esm/api/types/FormSubmissionEventConversation.mjs +2 -0
  247. package/dist/esm/api/types/FormSubmissionEventForm.d.mts +11 -0
  248. package/dist/esm/api/types/FormSubmissionEventForm.mjs +2 -0
  249. package/dist/esm/api/types/FormSubmissionEventSubmission.d.mts +31 -0
  250. package/dist/esm/api/types/FormSubmissionEventSubmission.mjs +2 -0
  251. package/dist/esm/api/types/FormSubmittedField.d.mts +14 -0
  252. package/dist/esm/api/types/FormSubmittedField.mjs +2 -0
  253. package/dist/esm/api/types/FormThemeOverride.d.mts +77 -0
  254. package/dist/esm/api/types/FormThemeOverride.mjs +30 -0
  255. package/dist/esm/api/types/ListFormSubmissionsResponse.d.mts +12 -0
  256. package/dist/esm/api/types/ListFormSubmissionsResponse.mjs +2 -0
  257. package/dist/esm/api/types/ListFormsResponse.d.mts +12 -0
  258. package/dist/esm/api/types/ListFormsResponse.mjs +2 -0
  259. package/dist/esm/api/types/MessageEvent.d.mts +8 -2
  260. package/dist/esm/api/types/MessageEvent.mjs +5 -0
  261. package/dist/esm/api/types/NumberField.d.mts +14 -0
  262. package/dist/esm/api/types/NumberField.mjs +2 -0
  263. package/dist/esm/api/types/PhoneField.d.mts +8 -0
  264. package/dist/esm/api/types/PhoneField.mjs +2 -0
  265. package/dist/esm/api/types/RadioField.d.mts +8 -0
  266. package/dist/esm/api/types/RadioField.mjs +2 -0
  267. package/dist/esm/api/types/RangeField.d.mts +12 -0
  268. package/dist/esm/api/types/RangeField.mjs +2 -0
  269. package/dist/esm/api/types/RatingField.d.mts +10 -0
  270. package/dist/esm/api/types/RatingField.mjs +2 -0
  271. package/dist/esm/api/types/ScheduledFormSendResult.d.mts +20 -0
  272. package/dist/esm/api/types/ScheduledFormSendResult.mjs +2 -0
  273. package/dist/esm/api/types/SelectField.d.mts +10 -0
  274. package/dist/esm/api/types/SelectField.mjs +2 -0
  275. package/dist/esm/api/types/SendFormOptions.d.mts +18 -0
  276. package/dist/esm/api/types/SendFormOptions.mjs +10 -0
  277. package/dist/esm/api/types/SendFormParams.d.mts +9 -0
  278. package/dist/esm/api/types/SendFormParams.mjs +2 -0
  279. package/dist/esm/api/types/SendFormResult.d.mts +13 -0
  280. package/dist/esm/api/types/SendFormResult.mjs +2 -0
  281. package/dist/esm/api/types/SendFormViaRcsParams.d.mts +28 -0
  282. package/dist/esm/api/types/SendFormViaRcsParams.mjs +2 -0
  283. package/dist/esm/api/types/SendFormViaSmsParams.d.mts +15 -0
  284. package/dist/esm/api/types/SendFormViaSmsParams.mjs +2 -0
  285. package/dist/esm/api/types/TextField.d.mts +14 -0
  286. package/dist/esm/api/types/TextField.mjs +2 -0
  287. package/dist/esm/api/types/TextareaField.d.mts +14 -0
  288. package/dist/esm/api/types/TextareaField.mjs +2 -0
  289. package/dist/esm/api/types/TimeField.d.mts +12 -0
  290. package/dist/esm/api/types/TimeField.mjs +2 -0
  291. package/dist/esm/api/types/UrlField.d.mts +8 -0
  292. package/dist/esm/api/types/UrlField.mjs +2 -0
  293. package/dist/esm/api/types/UserEvent.d.mts +5 -2
  294. package/dist/esm/api/types/VerificationStatus.d.mts +12 -0
  295. package/dist/esm/api/types/VerificationStatus.mjs +12 -0
  296. package/dist/esm/api/types/WebhookEventEnum.d.mts +2 -0
  297. package/dist/esm/api/types/WebhookEventEnum.mjs +2 -0
  298. package/dist/esm/api/types/index.d.mts +52 -0
  299. package/dist/esm/api/types/index.mjs +52 -0
  300. package/dist/esm/version.d.mts +1 -1
  301. package/dist/esm/version.mjs +1 -1
  302. package/dist/esm/wrapper/messages/Client.d.mts +1 -1
  303. package/package.json +1 -1
  304. package/reference.md +481 -0
@@ -1,3 +1,4 @@
1
+ export * from "./AddressField.mjs";
1
2
  export * from "./AdvancedPhoneInformation.mjs";
2
3
  export * from "./AgentEmailEntry.mjs";
3
4
  export * from "./AgentPhoneEntry.mjs";
@@ -22,10 +23,17 @@ export * from "./ButtonClicked.mjs";
22
23
  export * from "./ButtonClickedData.mjs";
23
24
  export * from "./CampaignEnum.mjs";
24
25
  export * from "./CampaignQuery.mjs";
26
+ export * from "./CampaignStatusEvent.mjs";
27
+ export * from "./CampaignStatusEventAgent.mjs";
28
+ export * from "./CampaignStatusEventBrand.mjs";
29
+ export * from "./CampaignStatusEventCampaign.mjs";
30
+ export * from "./CampaignStatusEventCarrierLaunches.mjs";
25
31
  export * from "./CampaignSubmissionResult.mjs";
26
32
  export * from "./CampaignValidationResult.mjs";
27
33
  export * from "./CarrierLaunches.mjs";
28
34
  export * from "./CarrierLaunchStatus.mjs";
35
+ export * from "./CheckboxField.mjs";
36
+ export * from "./ColorField.mjs";
29
37
  export * from "./CompanyEntityTypeEnum.mjs";
30
38
  export * from "./CompanySectorEnum.mjs";
31
39
  export * from "./CompanyTypeEnum.mjs";
@@ -33,7 +41,10 @@ export * from "./Contact.mjs";
33
41
  export * from "./ContactId.mjs";
34
42
  export * from "./Conversation.mjs";
35
43
  export * from "./ConversationList.mjs";
44
+ export * from "./CreateFormRequest.mjs";
36
45
  export * from "./CreateUrlOptions.mjs";
46
+ export * from "./DateField.mjs";
47
+ export * from "./DatetimeField.mjs";
37
48
  export * from "./DeleteAudienceResponse.mjs";
38
49
  export * from "./DetachedPhoneNumberResult.mjs";
39
50
  export * from "./DetachWebhookResult.mjs";
@@ -43,6 +54,7 @@ export * from "./DlcCampaignStatus.mjs";
43
54
  export * from "./DlcCampaignSummary.mjs";
44
55
  export * from "./DlcCampaignUseCaseEnum.mjs";
45
56
  export * from "./DlcCampaignWithExtendedBrandAndStatus.mjs";
57
+ export * from "./EmailField.mjs";
46
58
  export * from "./EnhancedContact.mjs";
47
59
  export * from "./EnhancedContactItem.mjs";
48
60
  export * from "./Error_.mjs";
@@ -51,6 +63,27 @@ export * from "./ExtendedBrandWithVetting.mjs";
51
63
  export * from "./ExtendedRcsCampaign.mjs";
52
64
  export * from "./FailedSender.mjs";
53
65
  export * from "./FallbackMessage.mjs";
66
+ export * from "./FieldBase.mjs";
67
+ export * from "./Form.mjs";
68
+ export * from "./FormBackground.mjs";
69
+ export * from "./FormBackgroundGradient.mjs";
70
+ export * from "./FormBackgroundImage.mjs";
71
+ export * from "./FormBackgroundPattern.mjs";
72
+ export * from "./FormBackgroundSolid.mjs";
73
+ export * from "./FormColorPalette.mjs";
74
+ export * from "./FormDefinition.mjs";
75
+ export * from "./FormField.mjs";
76
+ export * from "./FormFieldOption.mjs";
77
+ export * from "./FormGradient.mjs";
78
+ export * from "./FormIdReference.mjs";
79
+ export * from "./FormSubmission.mjs";
80
+ export * from "./FormSubmissionAnswer.mjs";
81
+ export * from "./FormSubmissionEvent.mjs";
82
+ export * from "./FormSubmissionEventConversation.mjs";
83
+ export * from "./FormSubmissionEventForm.mjs";
84
+ export * from "./FormSubmissionEventSubmission.mjs";
85
+ export * from "./FormSubmittedField.mjs";
86
+ export * from "./FormThemeOverride.mjs";
54
87
  export * from "./GetConversationParams.mjs";
55
88
  export * from "./LinkClickEvent.mjs";
56
89
  export * from "./LinkSummary.mjs";
@@ -60,6 +93,8 @@ export * from "./ListBlastsResponse.mjs";
60
93
  export * from "./ListBrandsResponse.mjs";
61
94
  export * from "./ListContactsResponse.mjs";
62
95
  export * from "./ListDlcCampaignsResponse.mjs";
96
+ export * from "./ListFormSubmissionsResponse.mjs";
97
+ export * from "./ListFormsResponse.mjs";
63
98
  export * from "./ListLinksResponse.mjs";
64
99
  export * from "./ListMessagesResponse.mjs";
65
100
  export * from "./ListPhoneNumbersResponse.mjs";
@@ -92,6 +127,7 @@ export * from "./MessagingProfileEnum.mjs";
92
127
  export * from "./MmsContent.mjs";
93
128
  export * from "./MmsValidationResult.mjs";
94
129
  export * from "./NotFoundErrorBody.mjs";
130
+ export * from "./NumberField.mjs";
95
131
  export * from "./NumberFormat.mjs";
96
132
  export * from "./OptInMethodEnum.mjs";
97
133
  export * from "./OptionalBrandInfo.mjs";
@@ -102,12 +138,16 @@ export * from "./Pagination.mjs";
102
138
  export * from "./PhoneCapabilities.mjs";
103
139
  export * from "./PhoneEnum.mjs";
104
140
  export * from "./PhoneFeatureEnum.mjs";
141
+ export * from "./PhoneField.mjs";
105
142
  export * from "./PhoneNumberDetails.mjs";
106
143
  export * from "./PhoneNumberEnum.mjs";
107
144
  export * from "./PhoneNumberStatus.mjs";
108
145
  export * from "./PhoneNumberStatusEnum.mjs";
109
146
  export * from "./ProfileStatusEnum.mjs";
110
147
  export * from "./PurchasedNumber.mjs";
148
+ export * from "./RadioField.mjs";
149
+ export * from "./RangeField.mjs";
150
+ export * from "./RatingField.mjs";
111
151
  export * from "./RcsAgentDetails.mjs";
112
152
  export * from "./RcsAgentResponse.mjs";
113
153
  export * from "./RcsButtonCall.mjs";
@@ -141,9 +181,16 @@ export * from "./RichText.mjs";
141
181
  export * from "./RichTextMessage.mjs";
142
182
  export * from "./ScheduleCancelResult.mjs";
143
183
  export * from "./ScheduledBlastDetails.mjs";
184
+ export * from "./ScheduledFormSendResult.mjs";
144
185
  export * from "./ScheduledMessage.mjs";
145
186
  export * from "./ScheduledMessageSummary.mjs";
187
+ export * from "./SelectField.mjs";
146
188
  export * from "./Sender.mjs";
189
+ export * from "./SendFormOptions.mjs";
190
+ export * from "./SendFormParams.mjs";
191
+ export * from "./SendFormResult.mjs";
192
+ export * from "./SendFormViaRcsParams.mjs";
193
+ export * from "./SendFormViaSmsParams.mjs";
147
194
  export * from "./SendRichMessageOptions4.mjs";
148
195
  export * from "./SendTypingIndicatorResponse.mjs";
149
196
  export * from "./SentMmsDetails.mjs";
@@ -165,6 +212,9 @@ export * from "./SubUseCaseEnum.mjs";
165
212
  export * from "./SuccessfulConversationUpdate.mjs";
166
213
  export * from "./TestAgentResponse.mjs";
167
214
  export * from "./TestAgentWhitelistResponse.mjs";
215
+ export * from "./TextareaField.mjs";
216
+ export * from "./TextField.mjs";
217
+ export * from "./TimeField.mjs";
168
218
  export * from "./TollFreeCampaign.mjs";
169
219
  export * from "./TollFreeCampaignStatus.mjs";
170
220
  export * from "./TollFreeCampaignSummary.mjs";
@@ -174,6 +224,7 @@ export * from "./TollFreeStatusEnum.mjs";
174
224
  export * from "./Tracking.mjs";
175
225
  export * from "./UpdatedContactId.mjs";
176
226
  export * from "./UploadResults.mjs";
227
+ export * from "./UrlField.mjs";
177
228
  export * from "./UserButtonPress.mjs";
178
229
  export * from "./UserButtonPressCall.mjs";
179
230
  export * from "./UserButtonPressOpenUrl.mjs";
@@ -192,6 +243,7 @@ export * from "./VcardContent.mjs";
192
243
  export * from "./VcardEmail.mjs";
193
244
  export * from "./VcardPhone.mjs";
194
245
  export * from "./VcardResource.mjs";
246
+ export * from "./VerificationStatus.mjs";
195
247
  export * from "./VettingFeedback.mjs";
196
248
  export * from "./VettingHistory.mjs";
197
249
  export * from "./VettingResults.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.0.19";
1
+ export declare const SDK_VERSION = "2.0.21";
@@ -1 +1 @@
1
- export const SDK_VERSION = "2.0.19";
1
+ export const SDK_VERSION = "2.0.21";
@@ -8,6 +8,6 @@ interface ExpressLikeRequest {
8
8
  originalUrl?: string;
9
9
  }
10
10
  export declare class EnhancedMessages extends Messages {
11
- process(req: Request | ExpressLikeRequest, secret?: string): Promise<Pinnacle.MessageEvent | Pinnacle.UserEvent>;
11
+ process(req: Request | ExpressLikeRequest, secret?: string): Promise<Pinnacle.MessageEvent | Pinnacle.UserEvent | Pinnacle.FormSubmissionEvent | Pinnacle.CampaignStatusEvent>;
12
12
  }
13
13
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rcs-js",
3
- "version": "2.0.19",
3
+ "version": "2.0.21",
4
4
  "private": false,
5
5
  "repository": "github:pinnacle-dev/rcs-js",
6
6
  "type": "commonjs",
package/reference.md CHANGED
@@ -2311,6 +2311,409 @@ await client.webhooks.detach({
2311
2311
  </dl>
2312
2312
 
2313
2313
 
2314
+ </dd>
2315
+ </dl>
2316
+ </details>
2317
+
2318
+ ## Forms
2319
+ <details><summary><code>client.forms.<a href="/src/api/resources/forms/client/Client.ts">get</a>(id) -> Pinnacle.Form</code></summary>
2320
+ <dl>
2321
+ <dd>
2322
+
2323
+ #### 📝 Description
2324
+
2325
+ <dl>
2326
+ <dd>
2327
+
2328
+ <dl>
2329
+ <dd>
2330
+
2331
+ Retrieve a form by id. Includes submission count, last submission timestamp, and archive state.
2332
+ </dd>
2333
+ </dl>
2334
+ </dd>
2335
+ </dl>
2336
+
2337
+ #### 🔌 Usage
2338
+
2339
+ <dl>
2340
+ <dd>
2341
+
2342
+ <dl>
2343
+ <dd>
2344
+
2345
+ ```typescript
2346
+ await client.forms.get("form_Oy2n7iUoi9CJwUU6");
2347
+
2348
+ ```
2349
+ </dd>
2350
+ </dl>
2351
+ </dd>
2352
+ </dl>
2353
+
2354
+ #### ⚙️ Parameters
2355
+
2356
+ <dl>
2357
+ <dd>
2358
+
2359
+ <dl>
2360
+ <dd>
2361
+
2362
+ **id:** `string`
2363
+
2364
+ The unique identifier of the form you want to retrieve.
2365
+ <br><br> This identifier is a string that always begins with the prefix `form_`, for example: `form_Oy2n7iUoi9CJwUU6`. It's returned on every form response (`Form.id`) and by [`POST /forms/send`](/api-reference/forms/send-form) (`response.form.id`).
2366
+
2367
+ </dd>
2368
+ </dl>
2369
+
2370
+ <dl>
2371
+ <dd>
2372
+
2373
+ **requestOptions:** `Forms.RequestOptions`
2374
+
2375
+ </dd>
2376
+ </dl>
2377
+ </dd>
2378
+ </dl>
2379
+
2380
+
2381
+ </dd>
2382
+ </dl>
2383
+ </details>
2384
+
2385
+ <details><summary><code>client.forms.<a href="/src/api/resources/forms/client/Client.ts">update</a>(id, { ...params }) -> Pinnacle.Form</code></summary>
2386
+ <dl>
2387
+ <dd>
2388
+
2389
+ #### 📝 Description
2390
+
2391
+ <dl>
2392
+ <dd>
2393
+
2394
+ <dl>
2395
+ <dd>
2396
+
2397
+ Partial update. Only keys present in the body are applied. Archived forms (non-null `archived_at`) cannot be updated — restore the form by setting `archived_at: null` in a PATCH first.
2398
+ </dd>
2399
+ </dl>
2400
+ </dd>
2401
+ </dl>
2402
+
2403
+ #### 🔌 Usage
2404
+
2405
+ <dl>
2406
+ <dd>
2407
+
2408
+ <dl>
2409
+ <dd>
2410
+
2411
+ ```typescript
2412
+ await client.forms.update("form_Oy2n7iUoi9CJwUU6", {
2413
+ name: "Contact request (v2)",
2414
+ can_update: true,
2415
+ expires_at: "2026-12-31T23:59:59Z"
2416
+ });
2417
+
2418
+ ```
2419
+ </dd>
2420
+ </dl>
2421
+ </dd>
2422
+ </dl>
2423
+
2424
+ #### ⚙️ Parameters
2425
+
2426
+ <dl>
2427
+ <dd>
2428
+
2429
+ <dl>
2430
+ <dd>
2431
+
2432
+ **id:** `string`
2433
+
2434
+ The unique identifier of the form you want to update.
2435
+ <br><br> This identifier is a string that always begins with the prefix `form_`, for example: `form_Oy2n7iUoi9CJwUU6`.
2436
+
2437
+ </dd>
2438
+ </dl>
2439
+
2440
+ <dl>
2441
+ <dd>
2442
+
2443
+ **request:** `Pinnacle.UpdateFormParams`
2444
+
2445
+ </dd>
2446
+ </dl>
2447
+
2448
+ <dl>
2449
+ <dd>
2450
+
2451
+ **requestOptions:** `Forms.RequestOptions`
2452
+
2453
+ </dd>
2454
+ </dl>
2455
+ </dd>
2456
+ </dl>
2457
+
2458
+
2459
+ </dd>
2460
+ </dl>
2461
+ </details>
2462
+
2463
+ <details><summary><code>client.forms.<a href="/src/api/resources/forms/client/Client.ts">list</a>({ ...params }) -> Pinnacle.ListFormsResponse</code></summary>
2464
+ <dl>
2465
+ <dd>
2466
+
2467
+ #### 📝 Description
2468
+
2469
+ <dl>
2470
+ <dd>
2471
+
2472
+ <dl>
2473
+ <dd>
2474
+
2475
+ Paginated list of forms on your team, sorted by creation date (newest first). Includes archived forms.
2476
+ </dd>
2477
+ </dl>
2478
+ </dd>
2479
+ </dl>
2480
+
2481
+ #### 🔌 Usage
2482
+
2483
+ <dl>
2484
+ <dd>
2485
+
2486
+ <dl>
2487
+ <dd>
2488
+
2489
+ ```typescript
2490
+ await client.forms.list({
2491
+ pageIndex: 0,
2492
+ pageSize: 20
2493
+ });
2494
+
2495
+ ```
2496
+ </dd>
2497
+ </dl>
2498
+ </dd>
2499
+ </dl>
2500
+
2501
+ #### ⚙️ Parameters
2502
+
2503
+ <dl>
2504
+ <dd>
2505
+
2506
+ <dl>
2507
+ <dd>
2508
+
2509
+ **request:** `Pinnacle.ListFormsParams`
2510
+
2511
+ </dd>
2512
+ </dl>
2513
+
2514
+ <dl>
2515
+ <dd>
2516
+
2517
+ **requestOptions:** `Forms.RequestOptions`
2518
+
2519
+ </dd>
2520
+ </dl>
2521
+ </dd>
2522
+ </dl>
2523
+
2524
+
2525
+ </dd>
2526
+ </dl>
2527
+ </details>
2528
+
2529
+ <details><summary><code>client.forms.<a href="/src/api/resources/forms/client/Client.ts">create</a>({ ...params }) -> Pinnacle.Form</code></summary>
2530
+ <dl>
2531
+ <dd>
2532
+
2533
+ #### 📝 Description
2534
+
2535
+ <dl>
2536
+ <dd>
2537
+
2538
+ <dl>
2539
+ <dd>
2540
+
2541
+ Create a hosted form without sending it. <br>
2542
+
2543
+ Returns the form object including its public URL — `https://forms.pinnacle.sh/{form_id}`. <br>
2544
+
2545
+ To also deliver the URL to a recipient over SMS or RCS in a single call, use [`POST /forms/send`](/api-reference/forms/send-form).
2546
+ </dd>
2547
+ </dl>
2548
+ </dd>
2549
+ </dl>
2550
+
2551
+ #### 🔌 Usage
2552
+
2553
+ <dl>
2554
+ <dd>
2555
+
2556
+ <dl>
2557
+ <dd>
2558
+
2559
+ ```typescript
2560
+ await client.forms.create({
2561
+ name: "Contact request",
2562
+ description: "We'll follow up over SMS or RCS.",
2563
+ fields: [{
2564
+ type: "text",
2565
+ key: "full_name",
2566
+ label: "Full name",
2567
+ required: true,
2568
+ placeholder: "Ada Lovelace",
2569
+ min_length: 2,
2570
+ max_length: 60
2571
+ }, {
2572
+ type: "email",
2573
+ key: "email",
2574
+ label: "Email",
2575
+ required: true,
2576
+ placeholder: "you@example.com"
2577
+ }, {
2578
+ type: "phone",
2579
+ key: "phone",
2580
+ label: "Phone",
2581
+ required: true,
2582
+ placeholder: "(555) 555-1212"
2583
+ }, {
2584
+ type: "select",
2585
+ key: "plan",
2586
+ label: "Plan",
2587
+ required: true,
2588
+ options: [{
2589
+ value: "basic",
2590
+ label: "Basic"
2591
+ }, {
2592
+ value: "pro",
2593
+ label: "Pro"
2594
+ }, {
2595
+ value: "enterprise",
2596
+ label: "Enterprise"
2597
+ }]
2598
+ }],
2599
+ can_update: false
2600
+ });
2601
+
2602
+ ```
2603
+ </dd>
2604
+ </dl>
2605
+ </dd>
2606
+ </dl>
2607
+
2608
+ #### ⚙️ Parameters
2609
+
2610
+ <dl>
2611
+ <dd>
2612
+
2613
+ <dl>
2614
+ <dd>
2615
+
2616
+ **request:** `Pinnacle.CreateFormRequest`
2617
+
2618
+ </dd>
2619
+ </dl>
2620
+
2621
+ <dl>
2622
+ <dd>
2623
+
2624
+ **requestOptions:** `Forms.RequestOptions`
2625
+
2626
+ </dd>
2627
+ </dl>
2628
+ </dd>
2629
+ </dl>
2630
+
2631
+
2632
+ </dd>
2633
+ </dl>
2634
+ </details>
2635
+
2636
+ <details><summary><code>client.forms.<a href="/src/api/resources/forms/client/Client.ts">send</a>({ ...params }) -> Pinnacle.FormsSendResponse</code></summary>
2637
+ <dl>
2638
+ <dd>
2639
+
2640
+ #### 📝 Description
2641
+
2642
+ <dl>
2643
+ <dd>
2644
+
2645
+ <dl>
2646
+ <dd>
2647
+
2648
+ Send a form to a recipient over SMS or RCS, or mint a standalone submission URL.
2649
+
2650
+ Pass `form` as either an existing form id (`form_*`) or an inline `{ fields, ... }` definition to mint a new form for this send.
2651
+
2652
+ The delivery channel is inferred from `from`:
2653
+ - `from: "agent_*"` → RCS (with optional SMS `fallback`)
2654
+ - `from: "+E.164"` → SMS
2655
+
2656
+ When `to` is provided, Pinnacle dispatches a message whose body contains the submission URL and the recipient is recorded on the response: `submission.to` echoes the same E.164 number and `message_id` is the id of the outbound SMS/RCS.
2657
+
2658
+ When `to` is omitted, no message is sent — `submission.to` and `message_id` are both `null` — which is useful for embedding the URL in your own outreach.
2659
+
2660
+ On completion, a `FORM.SUBMISSION` webhook event is delivered to webhooks subscribed to the sender. See [Receiving Messages and User Events](/guides/messages/receiving).
2661
+ </dd>
2662
+ </dl>
2663
+ </dd>
2664
+ </dl>
2665
+
2666
+ #### 🔌 Usage
2667
+
2668
+ <dl>
2669
+ <dd>
2670
+
2671
+ <dl>
2672
+ <dd>
2673
+
2674
+ ```typescript
2675
+ await client.forms.send({
2676
+ from: "agent_iM9wQcyBBjYn",
2677
+ to: "+14155551234",
2678
+ form: "form_Oy2n7iUoi9CJwUU6",
2679
+ fallback: {
2680
+ from: "+14155550000"
2681
+ },
2682
+ options: {
2683
+ webview_mode: "FULL"
2684
+ }
2685
+ });
2686
+
2687
+ ```
2688
+ </dd>
2689
+ </dl>
2690
+ </dd>
2691
+ </dl>
2692
+
2693
+ #### ⚙️ Parameters
2694
+
2695
+ <dl>
2696
+ <dd>
2697
+
2698
+ <dl>
2699
+ <dd>
2700
+
2701
+ **request:** `Pinnacle.SendFormParams`
2702
+
2703
+ </dd>
2704
+ </dl>
2705
+
2706
+ <dl>
2707
+ <dd>
2708
+
2709
+ **requestOptions:** `Forms.RequestOptions`
2710
+
2711
+ </dd>
2712
+ </dl>
2713
+ </dd>
2714
+ </dl>
2715
+
2716
+
2314
2717
  </dd>
2315
2718
  </dl>
2316
2719
  </details>
@@ -3756,6 +4159,84 @@ await client.campaigns.rcs.list();
3756
4159
  </dl>
3757
4160
 
3758
4161
 
4162
+ </dd>
4163
+ </dl>
4164
+ </details>
4165
+
4166
+ ## Forms Submissions
4167
+ <details><summary><code>client.forms.submissions.<a href="/src/api/resources/forms/resources/submissions/client/Client.ts">list</a>(id, { ...params }) -> Pinnacle.ListFormSubmissionsResponse</code></summary>
4168
+ <dl>
4169
+ <dd>
4170
+
4171
+ #### 📝 Description
4172
+
4173
+ <dl>
4174
+ <dd>
4175
+
4176
+ <dl>
4177
+ <dd>
4178
+
4179
+ Paginated list of completed submissions for a form, newest first. Each row includes the submitted `data` keyed by field `key`, the sender/recipient, IP, user-agent, and timestamps.
4180
+ </dd>
4181
+ </dl>
4182
+ </dd>
4183
+ </dl>
4184
+
4185
+ #### 🔌 Usage
4186
+
4187
+ <dl>
4188
+ <dd>
4189
+
4190
+ <dl>
4191
+ <dd>
4192
+
4193
+ ```typescript
4194
+ await client.forms.submissions.list("form_Oy2n7iUoi9CJwUU6", {
4195
+ pageIndex: 0,
4196
+ pageSize: 20
4197
+ });
4198
+
4199
+ ```
4200
+ </dd>
4201
+ </dl>
4202
+ </dd>
4203
+ </dl>
4204
+
4205
+ #### ⚙️ Parameters
4206
+
4207
+ <dl>
4208
+ <dd>
4209
+
4210
+ <dl>
4211
+ <dd>
4212
+
4213
+ **id:** `string`
4214
+
4215
+ The unique identifier of the form whose submissions you want to list.
4216
+ <br><br> This identifier is a string that always begins with the prefix `form_`, for example: `form_Oy2n7iUoi9CJwUU6`.
4217
+
4218
+ </dd>
4219
+ </dl>
4220
+
4221
+ <dl>
4222
+ <dd>
4223
+
4224
+ **request:** `Pinnacle.forms.ListFormSubmissionsParams`
4225
+
4226
+ </dd>
4227
+ </dl>
4228
+
4229
+ <dl>
4230
+ <dd>
4231
+
4232
+ **requestOptions:** `Submissions.RequestOptions`
4233
+
4234
+ </dd>
4235
+ </dl>
4236
+ </dd>
4237
+ </dl>
4238
+
4239
+
3759
4240
  </dd>
3760
4241
  </dl>
3761
4242
  </details>