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
@@ -0,0 +1,14 @@
1
+ import type * as Pinnacle from "../index.mjs";
2
+ /**
3
+ * Numeric input with optional `min` / `max` bounds and `step` granularity.
4
+ */
5
+ export interface NumberField extends Pinnacle.FieldBase {
6
+ /** Ghost text shown inside the input while it's empty. */
7
+ placeholder?: string;
8
+ /** Minimum accepted value. */
9
+ min?: number;
10
+ /** Maximum accepted value. */
11
+ max?: number;
12
+ /** Increment between valid values. For example, `step: 0.5` lets the user enter 1, 1.5, 2, etc. */
13
+ step?: number;
14
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,8 @@
1
+ import type * as Pinnacle from "../index.mjs";
2
+ /**
3
+ * Phone input. Client formats the value as the user types ("(555) 555-1212") and normalizes to E.164 ("+15555551212") before submission.
4
+ */
5
+ export interface PhoneField extends Pinnacle.FieldBase {
6
+ /** Ghost text shown inside the input while it's empty. */
7
+ placeholder?: string;
8
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,8 @@
1
+ import type * as Pinnacle from "../index.mjs";
2
+ /**
3
+ * Single-select radio group.
4
+ */
5
+ export interface RadioField extends Pinnacle.FieldBase {
6
+ /** Choices shown as radio buttons. At least one is required. */
7
+ options: Pinnacle.FormFieldOption[];
8
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,12 @@
1
+ import type * as Pinnacle from "../index.mjs";
2
+ /**
3
+ * Slider input. `min`/`max` define the bounds, `step` the granularity.
4
+ */
5
+ export interface RangeField extends Pinnacle.FieldBase {
6
+ /** Lower bound of the slider. */
7
+ min?: number;
8
+ /** Upper bound of the slider. */
9
+ max?: number;
10
+ /** Increment between adjacent slider stops. */
11
+ step?: number;
12
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,10 @@
1
+ import type * as Pinnacle from "../index.mjs";
2
+ /**
3
+ * Star rating 1..`max`. Submitted value is the selected integer.
4
+ */
5
+ export interface RatingField extends Pinnacle.FieldBase {
6
+ /** Minimum allowed rating. `0` means the submitter can clear their selection. */
7
+ min?: number;
8
+ /** Number of stars rendered. */
9
+ max?: number;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,20 @@
1
+ import type * as Pinnacle from "../index.mjs";
2
+ /**
3
+ * Response shape for a scheduled form send — returned in place of `SendFormResponse` when `options.schedule` is set.
4
+ */
5
+ export interface ScheduledFormSendResult {
6
+ scheduleId: string;
7
+ config: Pinnacle.MessageSchedule;
8
+ form: ScheduledFormSendResult.Form;
9
+ submission: ScheduledFormSendResult.Submission;
10
+ }
11
+ export declare namespace ScheduledFormSendResult {
12
+ interface Form {
13
+ id: string;
14
+ name: string | null;
15
+ }
16
+ interface Submission {
17
+ id: string;
18
+ url: string;
19
+ }
20
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,10 @@
1
+ import type * as Pinnacle from "../index.mjs";
2
+ /**
3
+ * Single-select dropdown.
4
+ */
5
+ export interface SelectField extends Pinnacle.FieldBase {
6
+ /** Choices shown in the dropdown. At least one is required. */
7
+ options: Pinnacle.FormFieldOption[];
8
+ /** Placeholder row shown when no option is selected (e.g. "Select…"). */
9
+ placeholder?: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,18 @@
1
+ import type * as Pinnacle from "../index.mjs";
2
+ /**
3
+ * Optional delivery knobs shared by RCS and SMS sends.
4
+ */
5
+ export interface SendFormOptions {
6
+ schedule?: Pinnacle.MessageSchedule;
7
+ /** RCS webview size for the open-url button action. Ignored for SMS. */
8
+ webview_mode?: SendFormOptions.WebviewMode;
9
+ }
10
+ export declare namespace SendFormOptions {
11
+ /** RCS webview size for the open-url button action. Ignored for SMS. */
12
+ const WebviewMode: {
13
+ readonly Full: "FULL";
14
+ readonly Half: "HALF";
15
+ readonly Tall: "TALL";
16
+ };
17
+ type WebviewMode = (typeof WebviewMode)[keyof typeof WebviewMode];
18
+ }
@@ -0,0 +1,10 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export var SendFormOptions;
3
+ (function (SendFormOptions) {
4
+ /** RCS webview size for the open-url button action. Ignored for SMS. */
5
+ SendFormOptions.WebviewMode = {
6
+ Full: "FULL",
7
+ Half: "HALF",
8
+ Tall: "TALL",
9
+ };
10
+ })(SendFormOptions || (SendFormOptions = {}));
@@ -0,0 +1,9 @@
1
+ import type * as Pinnacle from "../index.mjs";
2
+ /**
3
+ * Send a form to a recipient over SMS or RCS in one call, or mint a standalone submission URL when `to` is omitted. Picks the SMS or RCS branch based on the shape of `from` (agent_* → RCS, E.164 → SMS).
4
+ *
5
+ * When `to` is provided, Pinnacle dispatches the message immediately and the recipient is recorded on the response (`submission.to` is set to the same E.164 number, and `message_id` is the id of the outbound SMS/RCS).
6
+ *
7
+ * When `to` is omitted, no message is sent — `submission.to` and `message_id` are both `null` and only the submission URL is returned.
8
+ */
9
+ export type SendFormParams = Pinnacle.SendFormViaRcsParams | Pinnacle.SendFormViaSmsParams;
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,13 @@
1
+ import type * as Pinnacle from "../index.mjs";
2
+ /**
3
+ * Successful `POST /forms/send` response.
4
+ *
5
+ * - When `to` was provided in the request, the message was dispatched: `submission.to` echoes that recipient and `message_id` is the id of the outbound SMS/RCS that carried the URL.
6
+ * - When `to` was omitted, no message was sent: both `submission.to` and `message_id` are `null` and only the submission URL is returned.
7
+ */
8
+ export interface SendFormResult {
9
+ form: Pinnacle.Form;
10
+ submission: Pinnacle.FormSubmission;
11
+ /** Id of the outbound SMS/RCS message that delivered the URL. Null when the send was URL-only (no `to`). */
12
+ message_id: string | null;
13
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,28 @@
1
+ import type * as Pinnacle from "../index.mjs";
2
+ /**
3
+ * Send a form from an RCS agent. `from` must be an `agent_*` id.
4
+ */
5
+ export interface SendFormViaRcsParams {
6
+ /** RCS agent id (`agent_*`). */
7
+ from: string;
8
+ /** Recipient phone in E.164. When present Pinnacle delivers the form URL via RCS (or the configured fallback) and FORM.SUBMISSION fires with `submission.to` populated. When omitted the call returns a submission URL without dispatching any message and the webhook later fires with `submission.to: null`. */
9
+ to?: string;
10
+ /** Existing form id or an inline definition that mints a new form for this send. */
11
+ form: SendFormViaRcsParams.Form;
12
+ /** When RCS is unavailable on the recipient's device, fall back to SMS from this number. Requires `to`. */
13
+ fallback?: SendFormViaRcsParams.Fallback;
14
+ options?: Pinnacle.SendFormOptions;
15
+ }
16
+ export declare namespace SendFormViaRcsParams {
17
+ /**
18
+ * Existing form id or an inline definition that mints a new form for this send.
19
+ */
20
+ type Form = Pinnacle.FormIdReference | Pinnacle.FormDefinition;
21
+ /**
22
+ * When RCS is unavailable on the recipient's device, fall back to SMS from this number. Requires `to`.
23
+ */
24
+ interface Fallback {
25
+ /** SMS phone in E.164 to deliver from when the recipient can't receive RCS. */
26
+ from: string;
27
+ }
28
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,15 @@
1
+ import type * as Pinnacle from "../index.mjs";
2
+ /**
3
+ * Send a form from a phone number. `from` must be an E.164 phone.
4
+ */
5
+ export interface SendFormViaSmsParams {
6
+ /** Sender phone in E.164. */
7
+ from: string;
8
+ /** Recipient phone in E.164. Omit to mint a URL-only form without sending a message. */
9
+ to?: string;
10
+ form: SendFormViaSmsParams.Form;
11
+ options?: Pinnacle.SendFormOptions;
12
+ }
13
+ export declare namespace SendFormViaSmsParams {
14
+ type Form = Pinnacle.FormIdReference | Pinnacle.FormDefinition;
15
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,14 @@
1
+ import type * as Pinnacle from "../index.mjs";
2
+ /**
3
+ * Single-line text input with optional length bounds and regex pattern.
4
+ */
5
+ export interface TextField extends Pinnacle.FieldBase {
6
+ /** Ghost text shown inside the input while it's empty. */
7
+ placeholder?: string;
8
+ /** Regex the value must match. Validated server-side with RE2, so patterns that enable catastrophic backtracking (backreferences, lookarounds) are rejected at form creation. */
9
+ pattern?: string;
10
+ /** Minimum number of characters the submitter must enter. */
11
+ min_length?: number;
12
+ /** Maximum number of characters the submitter may enter. */
13
+ max_length?: number;
14
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,14 @@
1
+ import type * as Pinnacle from "../index.mjs";
2
+ /**
3
+ * Multi-line text input for longer free-form answers.
4
+ */
5
+ export interface TextareaField extends Pinnacle.FieldBase {
6
+ /** Ghost text shown inside the input while it's empty. */
7
+ placeholder?: string;
8
+ /** Regex the value must match. Same RE2 safety check as `TextField.pattern`. */
9
+ pattern?: string;
10
+ /** Minimum number of characters the submitter must enter. */
11
+ min_length?: number;
12
+ /** Maximum number of characters the submitter may enter. */
13
+ max_length?: number;
14
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,12 @@
1
+ import type * as Pinnacle from "../index.mjs";
2
+ /**
3
+ * Time picker. `min`/`max` accept `HH:MM` (24-hour).
4
+ */
5
+ export interface TimeField extends Pinnacle.FieldBase {
6
+ /** Ghost text shown inside the input while it's empty. */
7
+ placeholder?: string;
8
+ /** Earliest selectable time as `HH:MM` (24-hour). */
9
+ min?: string;
10
+ /** Latest selectable time as `HH:MM` (24-hour). */
11
+ max?: string;
12
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,8 @@
1
+ import type * as Pinnacle from "../index.mjs";
2
+ /**
3
+ * URL input. Server requires a valid absolute URL.
4
+ */
5
+ export interface UrlField extends Pinnacle.FieldBase {
6
+ /** Ghost text shown inside the input while it's empty. */
7
+ placeholder?: string;
8
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -14,8 +14,11 @@ export declare namespace UserEvent {
14
14
  * Conversation metadata containing the conversation ID, sender, and recipient information.
15
15
  */
16
16
  interface Conversation {
17
- /** Unique identifier for the conversation. To get more conversation details, use the [POST /conversations/get](/api-reference/conversations/get) endpoint. */
18
- id: number;
17
+ /**
18
+ * Unique identifier for the conversation. This identifier is a string that always begins with the prefix `conv_`, for example: `conv_1234567890`. <br><br>
19
+ * To get more conversation details, use the [POST /conversations/get](/api-reference/conversations/get) endpoint.
20
+ */
21
+ id: string;
19
22
  /** Phone number of the user who triggered the event. */
20
23
  from: string;
21
24
  /** Agent ID that the user is interacting with. */
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Status of an RCS agent's verification with a verifier (AEGIS or Google).
3
+ * - `NOT_SENT` — verification email not sent yet
4
+ * - `SENT` — sent (awaiting reply on the brand contact email)
5
+ * - `VERIFIED` — verified
6
+ */
7
+ export declare const VerificationStatus: {
8
+ readonly NotSent: "NOT_SENT";
9
+ readonly Sent: "SENT";
10
+ readonly Verified: "VERIFIED";
11
+ };
12
+ export type VerificationStatus = (typeof VerificationStatus)[keyof typeof VerificationStatus];
@@ -0,0 +1,12 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ /**
3
+ * Status of an RCS agent's verification with a verifier (AEGIS or Google).
4
+ * - `NOT_SENT` — verification email not sent yet
5
+ * - `SENT` — sent (awaiting reply on the brand contact email)
6
+ * - `VERIFIED` — verified
7
+ */
8
+ export const VerificationStatus = {
9
+ NotSent: "NOT_SENT",
10
+ Sent: "SENT",
11
+ Verified: "VERIFIED",
12
+ };
@@ -7,5 +7,7 @@ export declare const WebhookEventEnum: {
7
7
  readonly MessageStatus: "MESSAGE.STATUS";
8
8
  readonly MessageReceived: "MESSAGE.RECEIVED";
9
9
  readonly UserTyping: "USER.TYPING";
10
+ readonly FormSubmission: "FORM.SUBMISSION";
11
+ readonly CampaignStatus: "CAMPAIGN.STATUS";
10
12
  };
11
13
  export type WebhookEventEnum = (typeof WebhookEventEnum)[keyof typeof WebhookEventEnum];
@@ -8,4 +8,6 @@ export const WebhookEventEnum = {
8
8
  MessageStatus: "MESSAGE.STATUS",
9
9
  MessageReceived: "MESSAGE.RECEIVED",
10
10
  UserTyping: "USER.TYPING",
11
+ FormSubmission: "FORM.SUBMISSION",
12
+ CampaignStatus: "CAMPAIGN.STATUS",
11
13
  };
@@ -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";