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,77 @@
1
+ import type * as Pinnacle from "../index.js";
2
+ /**
3
+ * Sparse override layered on top of your team's theme. Every field is optional; provided fields replace the corresponding team defaults at render time. URL fields must use `https://`.
4
+ */
5
+ export interface FormThemeOverride {
6
+ /** Logo displayed at the top of the form. Square images render as an inline mark; wide landscape images render as a full-width banner. */
7
+ logo_url?: string | null;
8
+ /** Favicon shown in the browser tab when the form page loads. */
9
+ favicon_url?: string | null;
10
+ /** Rendering mode. `light` forces the light palette, `dark` forces dark, and `auto` follows the respondent's OS-level appearance setting. */
11
+ theme_mode?: FormThemeOverride.ThemeMode;
12
+ /** Per-mode palette overrides. Each mode is an object with optional `primary`, `background`, and `text` hex colors. Omit a mode to inherit the team default for it. */
13
+ colors?: FormThemeOverride.Colors;
14
+ /** Typeface stack. `system` uses the respondent's OS default sans-serif. */
15
+ font_family?: FormThemeOverride.FontFamily;
16
+ /** Border-radius preset for cards, inputs, and buttons. */
17
+ corner_radius?: FormThemeOverride.CornerRadius;
18
+ /** Horizontal alignment for the form header (title, description, logo). */
19
+ content_alignment?: FormThemeOverride.ContentAlignment;
20
+ /** Background layer for the page. Choose solid, gradient, image, or a built-in pattern. */
21
+ background?: Pinnacle.FormBackground;
22
+ /** Text shown on the submit button. Defaults to `Submit`. */
23
+ submit_button_label?: string;
24
+ /** Message shown on the success panel after a successful submit (unless `redirect_url` is set, in which case the respondent is redirected). */
25
+ success_message?: string;
26
+ /** When set, the submitter is redirected here after a successful submit instead of seeing the success panel. */
27
+ redirect_url?: string | null;
28
+ /** Link target for the `Privacy` footer link. Omit or set to null to hide the link. */
29
+ privacy_url?: string | null;
30
+ /** Link target for the `Terms` footer link. Omit or set to null to hide the link. */
31
+ terms_url?: string | null;
32
+ /** Image shown when the form URL is shared in social / messaging link previews (Open Graph). */
33
+ og_image_url?: string | null;
34
+ /** Open Graph description used in link previews. Falls back to the form's `description` when unset. */
35
+ og_description?: string | null;
36
+ }
37
+ export declare namespace FormThemeOverride {
38
+ /** Rendering mode. `light` forces the light palette, `dark` forces dark, and `auto` follows the respondent's OS-level appearance setting. */
39
+ const ThemeMode: {
40
+ readonly Light: "light";
41
+ readonly Dark: "dark";
42
+ readonly Auto: "auto";
43
+ };
44
+ type ThemeMode = (typeof ThemeMode)[keyof typeof ThemeMode];
45
+ /**
46
+ * Per-mode palette overrides. Each mode is an object with optional `primary`, `background`, and `text` hex colors. Omit a mode to inherit the team default for it.
47
+ */
48
+ interface Colors {
49
+ /** Palette used when the form renders in light mode. */
50
+ light?: Pinnacle.FormColorPalette;
51
+ /** Palette used when the form renders in dark mode. */
52
+ dark?: Pinnacle.FormColorPalette;
53
+ }
54
+ /** Typeface stack. `system` uses the respondent's OS default sans-serif. */
55
+ const FontFamily: {
56
+ readonly Inter: "inter";
57
+ readonly System: "system";
58
+ readonly Serif: "serif";
59
+ readonly Mono: "mono";
60
+ readonly Rounded: "rounded";
61
+ };
62
+ type FontFamily = (typeof FontFamily)[keyof typeof FontFamily];
63
+ /** Border-radius preset for cards, inputs, and buttons. */
64
+ const CornerRadius: {
65
+ readonly Sharp: "sharp";
66
+ readonly Rounded: "rounded";
67
+ readonly Pill: "pill";
68
+ };
69
+ type CornerRadius = (typeof CornerRadius)[keyof typeof CornerRadius];
70
+ /** Horizontal alignment for the form header (title, description, logo). */
71
+ const ContentAlignment: {
72
+ readonly Left: "left";
73
+ readonly Center: "center";
74
+ readonly Right: "right";
75
+ };
76
+ type ContentAlignment = (typeof ContentAlignment)[keyof typeof ContentAlignment];
77
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.FormThemeOverride = void 0;
5
+ var FormThemeOverride;
6
+ (function (FormThemeOverride) {
7
+ /** Rendering mode. `light` forces the light palette, `dark` forces dark, and `auto` follows the respondent's OS-level appearance setting. */
8
+ FormThemeOverride.ThemeMode = {
9
+ Light: "light",
10
+ Dark: "dark",
11
+ Auto: "auto",
12
+ };
13
+ /** Typeface stack. `system` uses the respondent's OS default sans-serif. */
14
+ FormThemeOverride.FontFamily = {
15
+ Inter: "inter",
16
+ System: "system",
17
+ Serif: "serif",
18
+ Mono: "mono",
19
+ Rounded: "rounded",
20
+ };
21
+ /** Border-radius preset for cards, inputs, and buttons. */
22
+ FormThemeOverride.CornerRadius = {
23
+ Sharp: "sharp",
24
+ Rounded: "rounded",
25
+ Pill: "pill",
26
+ };
27
+ /** Horizontal alignment for the form header (title, description, logo). */
28
+ FormThemeOverride.ContentAlignment = {
29
+ Left: "left",
30
+ Center: "center",
31
+ Right: "right",
32
+ };
33
+ })(FormThemeOverride || (exports.FormThemeOverride = FormThemeOverride = {}));
@@ -0,0 +1,12 @@
1
+ import type * as Pinnacle from "../index.js";
2
+ /**
3
+ * Paginated page of submissions for a form.
4
+ */
5
+ export interface ListFormSubmissionsResponse {
6
+ /** Submissions on this page, newest first. */
7
+ data: Pinnacle.FormSubmission[];
8
+ /** True if there are more pages after this one. Fetch the next page by incrementing `pageIndex`. */
9
+ hasMore: boolean;
10
+ /** Number of submissions returned in `data`. */
11
+ count: number;
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import type * as Pinnacle from "../index.js";
2
+ /**
3
+ * Paginated page of forms.
4
+ */
5
+ export interface ListFormsResponse {
6
+ /** Forms on this page, newest first. */
7
+ data: Pinnacle.Form[];
8
+ /** True if there are more pages after this one. Fetch the next page by incrementing `pageIndex`. */
9
+ hasMore: boolean;
10
+ /** Number of forms returned in `data`. Always equals `data.length`. */
11
+ count: number;
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,8 +3,8 @@ import type * as Pinnacle from "../index.js";
3
3
  * Represents an incoming message or message status update received via webhook.
4
4
  */
5
5
  export interface MessageEvent {
6
- /** Type of webhook event. MESSAGE.STATUS for message status updates or MESSAGE.RECEIVED for inbound messages. */
7
- type: Pinnacle.WebhookEventEnum;
6
+ /** Type of webhook event. `MESSAGE.STATUS` for message status updates, `MESSAGE.RECEIVED` for inbound messages. */
7
+ type: MessageEvent.Type;
8
8
  /** Conversation metadata containing the conversation ID, sender, and recipient information. */
9
9
  conversation: MessageEvent.Conversation;
10
10
  status: Pinnacle.MessageStatusEnum;
@@ -39,6 +39,12 @@ export interface MessageEvent {
39
39
  fallbackMessage?: MessageEvent.FallbackMessage | null;
40
40
  }
41
41
  export declare namespace MessageEvent {
42
+ /** Type of webhook event. `MESSAGE.STATUS` for message status updates, `MESSAGE.RECEIVED` for inbound messages. */
43
+ const Type: {
44
+ readonly MessageStatus: "MESSAGE.STATUS";
45
+ readonly MessageReceived: "MESSAGE.RECEIVED";
46
+ };
47
+ type Type = (typeof Type)[keyof typeof Type];
42
48
  /**
43
49
  * Conversation metadata containing the conversation ID, sender, and recipient information.
44
50
  */
@@ -4,6 +4,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.MessageEvent = void 0;
5
5
  var MessageEvent;
6
6
  (function (MessageEvent) {
7
+ /** Type of webhook event. `MESSAGE.STATUS` for message status updates, `MESSAGE.RECEIVED` for inbound messages. */
8
+ MessageEvent.Type = {
9
+ MessageStatus: "MESSAGE.STATUS",
10
+ MessageReceived: "MESSAGE.RECEIVED",
11
+ };
7
12
  /** Direction of the message flow. */
8
13
  MessageEvent.Direction = {
9
14
  Inbound: "INBOUND",
@@ -0,0 +1,14 @@
1
+ import type * as Pinnacle from "../index.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import type * as Pinnacle from "../index.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import type * as Pinnacle from "../index.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import type * as Pinnacle from "../index.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import type * as Pinnacle from "../index.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ import type * as Pinnacle from "../index.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import type * as Pinnacle from "../index.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ import type * as Pinnacle from "../index.js";
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,13 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.SendFormOptions = void 0;
5
+ var SendFormOptions;
6
+ (function (SendFormOptions) {
7
+ /** RCS webview size for the open-url button action. Ignored for SMS. */
8
+ SendFormOptions.WebviewMode = {
9
+ Full: "FULL",
10
+ Half: "HALF",
11
+ Tall: "TALL",
12
+ };
13
+ })(SendFormOptions || (exports.SendFormOptions = SendFormOptions = {}));
@@ -0,0 +1,9 @@
1
+ import type * as Pinnacle from "../index.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import type * as Pinnacle from "../index.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,28 @@
1
+ import type * as Pinnacle from "../index.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ import type * as Pinnacle from "../index.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ import type * as Pinnacle from "../index.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ import type * as Pinnacle from "../index.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import type * as Pinnacle from "../index.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import type * as Pinnacle from "../index.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,15 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.VerificationStatus = void 0;
5
+ /**
6
+ * Status of an RCS agent's verification with a verifier (AEGIS or Google).
7
+ * - `NOT_SENT` — verification email not sent yet
8
+ * - `SENT` — sent (awaiting reply on the brand contact email)
9
+ * - `VERIFIED` — verified
10
+ */
11
+ exports.VerificationStatus = {
12
+ NotSent: "NOT_SENT",
13
+ Sent: "SENT",
14
+ Verified: "VERIFIED",
15
+ };
@@ -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];
@@ -11,4 +11,6 @@ exports.WebhookEventEnum = {
11
11
  MessageStatus: "MESSAGE.STATUS",
12
12
  MessageReceived: "MESSAGE.RECEIVED",
13
13
  UserTyping: "USER.TYPING",
14
+ FormSubmission: "FORM.SUBMISSION",
15
+ CampaignStatus: "CAMPAIGN.STATUS",
14
16
  };