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,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,6 @@
1
+ import type * as Pinnacle from "../index.js";
2
+ /**
3
+ * Native color picker. Submitted value is a 6-digit hex string like `#ff6b35`.
4
+ */
5
+ export interface ColorField extends Pinnacle.FieldBase {
6
+ }
@@ -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,5 @@
1
+ import type * as Pinnacle from "../index.js";
2
+ /**
3
+ * Body of `POST /forms`. Same shape as `FormDefinition`.
4
+ */
5
+ export type CreateFormRequest = Pinnacle.FormDefinition;
@@ -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
+ * Date picker. `min`/`max` accept `YYYY-MM-DD`.
4
+ */
5
+ export interface DateField extends Pinnacle.FieldBase {
6
+ /** Ghost text shown inside the input while it's empty. */
7
+ placeholder?: string;
8
+ /** Earliest selectable date as `YYYY-MM-DD`. */
9
+ min?: string;
10
+ /** Latest selectable date as `YYYY-MM-DD`. */
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,12 @@
1
+ import type * as Pinnacle from "../index.js";
2
+ /**
3
+ * Local-datetime picker. `min`/`max` accept ISO 8601 timestamps.
4
+ */
5
+ export interface DatetimeField extends Pinnacle.FieldBase {
6
+ /** Ghost text shown inside the input while it's empty. */
7
+ placeholder?: string;
8
+ /** Earliest selectable instant as an ISO 8601 timestamp. */
9
+ min?: string;
10
+ /** Latest selectable instant as an ISO 8601 timestamp. */
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
+ * Email input. Server rejects values that fail RFC 5322 validation.
4
+ */
5
+ export interface EmailField 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,13 @@
1
+ /**
2
+ * Properties shared by every field variant. Not intended to be referenced directly — use a specific field type from `FormField`.
3
+ */
4
+ export interface FieldBase {
5
+ /** Programmatic key used as the property name in the submission payload. Must start with a letter or underscore; letters, digits, and underscores only. */
6
+ key: string;
7
+ /** Text shown above the input. */
8
+ label: string;
9
+ /** When true, the submitter must provide a value. Default false. */
10
+ required?: boolean;
11
+ /** Small caption rendered under the input to give the submitter extra context. */
12
+ help_text?: string;
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,32 @@
1
+ import type * as Pinnacle from "../index.js";
2
+ /**
3
+ * A hosted form definition.
4
+ */
5
+ export interface Form {
6
+ /** Form id (starts with `form_`). */
7
+ id: string;
8
+ /** Public shareable URL of the form (`https://forms.pinnacle.sh/{form_id}`). */
9
+ url: string;
10
+ /** Human-readable name for the form. Rendered as the form's title. */
11
+ name: string | null;
12
+ /** Longer description rendered below the title. */
13
+ description: string | null;
14
+ /** Ordered list of fields the recipient fills out. */
15
+ fields: Pinnacle.FormField[];
16
+ /** When true, the recipient can reopen the submission URL and edit their answers. When false, the URL becomes read-only after the first submit. */
17
+ can_update: boolean;
18
+ /** After this timestamp the form stops accepting submissions. Null means no expiration. */
19
+ expires_at: string | null;
20
+ /** Per-form theme tweaks layered on top of your team's default theme. Null means the team defaults are used as-is. */
21
+ theme_override: Pinnacle.FormThemeOverride | null;
22
+ /** Count of distinct completed submissions for this form. Does not increment on edits to an existing `can_update=true` submission. */
23
+ submission_count: number;
24
+ /** Timestamp of the most recent submission event. Updated on each new submit and on each edit of a `can_update=true` submission. */
25
+ last_submitted_at: string | null;
26
+ /** When set, the form is archived (soft-deleted) and cannot accept new submissions or be updated. Restore by PATCHing `archived_at` back to null. */
27
+ archived_at: string | null;
28
+ /** ISO 8601 timestamp of when the form was created. */
29
+ created_at: string;
30
+ /** ISO 8601 timestamp of the most recent form mutation. */
31
+ updated_at: string;
32
+ }
@@ -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,19 @@
1
+ import type * as Pinnacle from "../index.js";
2
+ /**
3
+ * Background layer for the form page. Discriminated by `type`.
4
+ */
5
+ export type FormBackground = Pinnacle.FormBackground.Solid | Pinnacle.FormBackground.Gradient | Pinnacle.FormBackground.Image | Pinnacle.FormBackground.Pattern;
6
+ export declare namespace FormBackground {
7
+ interface Solid extends Pinnacle.FormBackgroundSolid {
8
+ type: "solid";
9
+ }
10
+ interface Gradient extends Pinnacle.FormBackgroundGradient {
11
+ type: "gradient";
12
+ }
13
+ interface Image extends Pinnacle.FormBackgroundImage {
14
+ type: "image";
15
+ }
16
+ interface Pattern extends Pinnacle.FormBackgroundPattern {
17
+ type: "pattern";
18
+ }
19
+ }
@@ -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
+ * Two-stop linear gradient. Supply separate light- and dark-mode gradients; the renderer picks based on `theme_mode`.
4
+ */
5
+ export interface FormBackgroundGradient {
6
+ /** Gradient used when the form renders in light mode. */
7
+ light: Pinnacle.FormGradient;
8
+ /** Gradient used when the form renders in dark mode. */
9
+ dark: Pinnacle.FormGradient;
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,13 @@
1
+ /**
2
+ * Image background. The image is tiled or scaled across the page with optional blur and dark tint overlay.
3
+ */
4
+ export interface FormBackgroundImage {
5
+ /** HTTPS URL of the background image. Must start with `https://`. */
6
+ url: string;
7
+ /** Darkening overlay intensity from 0 (no overlay) to 80 (heavy). Helps preserve text contrast over busy images. */
8
+ tint_opacity: number;
9
+ /** When true, blurs the background image. */
10
+ blur: boolean;
11
+ /** Scale percentage. 100 is native size; higher values crop the image tighter. */
12
+ zoom: number;
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,19 @@
1
+ /**
2
+ * Subtle repeating SVG pattern tinted by the palette's foreground color.
3
+ */
4
+ export interface FormBackgroundPattern {
5
+ /** Which built-in pattern to render. */
6
+ preset: FormBackgroundPattern.Preset;
7
+ }
8
+ export declare namespace FormBackgroundPattern {
9
+ /** Which built-in pattern to render. */
10
+ const Preset: {
11
+ readonly Noise: "noise";
12
+ readonly Dots: "dots";
13
+ readonly Mesh: "mesh";
14
+ readonly Grid: "grid";
15
+ readonly Waves: "waves";
16
+ readonly Topo: "topo";
17
+ };
18
+ type Preset = (typeof Preset)[keyof typeof Preset];
19
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.FormBackgroundPattern = void 0;
5
+ var FormBackgroundPattern;
6
+ (function (FormBackgroundPattern) {
7
+ /** Which built-in pattern to render. */
8
+ FormBackgroundPattern.Preset = {
9
+ Noise: "noise",
10
+ Dots: "dots",
11
+ Mesh: "mesh",
12
+ Grid: "grid",
13
+ Waves: "waves",
14
+ Topo: "topo",
15
+ };
16
+ })(FormBackgroundPattern || (exports.FormBackgroundPattern = FormBackgroundPattern = {}));
@@ -0,0 +1,24 @@
1
+ /**
2
+ * No background effect — the form page is filled with a single flat color. The color itself isn't specified on this object; it's read from the sibling `colors` field on the same `theme_override` object (i.e. `theme_override.colors.light.background` in light mode, `theme_override.colors.dark.background` in dark mode). If you don't override `colors`, the color falls back to the one your team has configured in the [Pinnacle Dashboard](https://app.pinnacle.sh/dashboard/forms).
3
+ *
4
+ * Complete example — a POST `/forms` body that sets a white form in light mode and near-black in dark mode with no background effect:
5
+ *
6
+ * ```json
7
+ * {
8
+ * "name": "Contact request",
9
+ * "fields": [
10
+ * { "type": "text", "key": "full_name", "label": "Full name", "required": true }
11
+ * ],
12
+ * "theme_override": {
13
+ * "background": { "type": "solid" },
14
+ * "colors": {
15
+ * "light": { "background": "#ffffff" },
16
+ * "dark": { "background": "#0a0a0a" }
17
+ * }
18
+ * }
19
+ * }
20
+ * ```
21
+ *
22
+ * Pick `solid` when you want a clean one-color page with no gradient / image / pattern overlay. Use `gradient`, `image`, or `pattern` instead when you want something layered on top of the base color.
23
+ */
24
+ export type FormBackgroundSolid = {};
@@ -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,11 @@
1
+ /**
2
+ * Per-mode palette. All three colors are optional; any you omit fall back to the team default for that mode.
3
+ */
4
+ export interface FormColorPalette {
5
+ /** Accent color used for the submit button, focus rings, filled checkboxes, and other interactive surfaces. */
6
+ primary?: string;
7
+ /** Page background color. Fallback solid color used by Safari chrome tinting and safe-area regions. */
8
+ background?: string;
9
+ /** Body text and label color. */
10
+ text?: string;
11
+ }
@@ -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
+ * The minimum shape needed to create a form. Used by `POST /forms` and inline by `POST /forms/send`.
4
+ */
5
+ export interface FormDefinition {
6
+ /** Human-readable name for the form. Rendered as the form's title. */
7
+ name?: string;
8
+ /** Longer description rendered below the title. */
9
+ description?: string;
10
+ /** Ordered list of fields the recipient will fill out. At least one field is required. */
11
+ fields: Pinnacle.FormField[];
12
+ /** If true, the recipient can reopen the submission URL and edit their answers. When false (default), the submission URL becomes read-only (`Already submitted`) after the first submit. */
13
+ can_update?: boolean;
14
+ /** After this timestamp the form stops accepting submissions. Omit for no expiration. */
15
+ expires_at?: string;
16
+ /** Per-form theme tweaks layered on top of your team's default theme. Omit or set to null to use team defaults. */
17
+ theme_override?: Pinnacle.FormThemeOverride | null;
18
+ }
@@ -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,55 @@
1
+ import type * as Pinnacle from "../index.js";
2
+ /**
3
+ * A single field definition inside a form. Discriminated by `type`.
4
+ */
5
+ export type FormField = Pinnacle.FormField.Text | Pinnacle.FormField.Textarea | Pinnacle.FormField.Address | Pinnacle.FormField.Email | Pinnacle.FormField.Url | Pinnacle.FormField.Phone | Pinnacle.FormField.Number | Pinnacle.FormField.Range | Pinnacle.FormField.Rating | Pinnacle.FormField.Date_ | Pinnacle.FormField.Time | Pinnacle.FormField.Datetime | Pinnacle.FormField.Color | Pinnacle.FormField.Select | Pinnacle.FormField.Radio | Pinnacle.FormField.Checkbox;
6
+ export declare namespace FormField {
7
+ interface Text extends Pinnacle.TextField {
8
+ type: "text";
9
+ }
10
+ interface Textarea extends Pinnacle.TextareaField {
11
+ type: "textarea";
12
+ }
13
+ interface Address extends Pinnacle.AddressField {
14
+ type: "address";
15
+ }
16
+ interface Email extends Pinnacle.EmailField {
17
+ type: "email";
18
+ }
19
+ interface Url extends Pinnacle.UrlField {
20
+ type: "url";
21
+ }
22
+ interface Phone extends Pinnacle.PhoneField {
23
+ type: "phone";
24
+ }
25
+ interface Number extends Pinnacle.NumberField {
26
+ type: "number";
27
+ }
28
+ interface Range extends Pinnacle.RangeField {
29
+ type: "range";
30
+ }
31
+ interface Rating extends Pinnacle.RatingField {
32
+ type: "rating";
33
+ }
34
+ interface Date_ extends Pinnacle.DateField {
35
+ type: "date";
36
+ }
37
+ interface Time extends Pinnacle.TimeField {
38
+ type: "time";
39
+ }
40
+ interface Datetime extends Pinnacle.DatetimeField {
41
+ type: "datetime";
42
+ }
43
+ interface Color extends Pinnacle.ColorField {
44
+ type: "color";
45
+ }
46
+ interface Select extends Pinnacle.SelectField {
47
+ type: "select";
48
+ }
49
+ interface Radio extends Pinnacle.RadioField {
50
+ type: "radio";
51
+ }
52
+ interface Checkbox extends Pinnacle.CheckboxField {
53
+ type: "checkbox";
54
+ }
55
+ }
@@ -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,9 @@
1
+ /**
2
+ * A single choice inside a `select`, `radio`, or `checkbox` field.
3
+ */
4
+ export interface FormFieldOption {
5
+ /** Machine value sent back in the submission payload. */
6
+ value: string;
7
+ /** Human label rendered in the form. */
8
+ label: string;
9
+ }
@@ -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,19 @@
1
+ /**
2
+ * A single light- or dark-mode gradient stop pair.
3
+ */
4
+ export interface FormGradient {
5
+ /** Starting color of the gradient. */
6
+ from: string;
7
+ /** Ending color of the gradient. */
8
+ to: string;
9
+ /** Direction the gradient runs. `top-bottom` is vertical; `diagonal` runs top-left → bottom-right. */
10
+ angle: FormGradient.Angle;
11
+ }
12
+ export declare namespace FormGradient {
13
+ /** Direction the gradient runs. `top-bottom` is vertical; `diagonal` runs top-left → bottom-right. */
14
+ const Angle: {
15
+ readonly TopBottom: "top-bottom";
16
+ readonly Diagonal: "diagonal";
17
+ };
18
+ type Angle = (typeof Angle)[keyof typeof Angle];
19
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.FormGradient = void 0;
5
+ var FormGradient;
6
+ (function (FormGradient) {
7
+ /** Direction the gradient runs. `top-bottom` is vertical; `diagonal` runs top-left → bottom-right. */
8
+ FormGradient.Angle = {
9
+ TopBottom: "top-bottom",
10
+ Diagonal: "diagonal",
11
+ };
12
+ })(FormGradient || (exports.FormGradient = FormGradient = {}));
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Existing form id (`form_*`) to reuse.
3
+ */
4
+ export type FormIdReference = string;
@@ -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,34 @@
1
+ /**
2
+ * A single submission against a form.
3
+ */
4
+ export interface FormSubmission {
5
+ /** Submission id (starts with `fsub_`). */
6
+ id: string;
7
+ /** Public submission URL (`https://forms.pinnacle.sh/{submission_id}`) — the unguessable credential used by the recipient to fill out the form. */
8
+ url: string;
9
+ /** Id of the form this submission belongs to (starts with `form_`). */
10
+ form_id: string;
11
+ /** Sender identifier — E.164 phone number or RCS agent id. Null if the sender could no longer be resolved (e.g. the phone number or agent was deleted after the submission). */
12
+ from: string | null;
13
+ /** Recipient phone number (E.164). Null for URL-only sends (`to` was omitted at send time). */
14
+ to: string | null;
15
+ /**
16
+ * Submitted answers keyed by field `key`. Null if the submission has not been completed yet.
17
+ *
18
+ * Each value's shape depends on the field type:
19
+ * - `text`, `email`, `phone`, `url`, `textarea`, `select`, `radio` → string
20
+ * - `number` → number
21
+ * - `checkbox` (single) → boolean
22
+ * - `checkbox` (multi), `multiselect` → array of strings
23
+ * - Skipped optional field → null
24
+ */
25
+ data: Record<string, unknown> | null;
26
+ /** IP address the submission was POSTed from. Null for pending submissions. */
27
+ ip_address: string | null;
28
+ /** User-Agent header of the browser that submitted the form. Null for pending submissions. */
29
+ user_agent: string | null;
30
+ /** Timestamp of completion. Null for pending submissions; updated on each edit of a `can_update=true` submission. */
31
+ submitted_at: string | null;
32
+ /** Timestamp of when the submission URL was minted. */
33
+ created_at: string;
34
+ }
@@ -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,9 @@
1
+ /**
2
+ * The value submitted for a single form field. Shape depends on the field type:
3
+ * - `text`, `email`, `phone`, `url`, `textarea`, `select`, `radio` → string
4
+ * - `number` → number
5
+ * - `checkbox` (single) → boolean
6
+ * - `checkbox` (multi), `multiselect` → array of strings
7
+ * - Skipped optional field → null
8
+ */
9
+ export type FormSubmissionAnswer = string | number | boolean | string[];
@@ -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
+ * Webhook body delivered to subscribers of `FORM.SUBMISSION` after a recipient completes a form. Verify the `PINNACLE-SIGNING-SECRET` header matches your webhook's signing secret before trusting the payload.
4
+ */
5
+ export interface FormSubmissionEvent {
6
+ type: "FORM.SUBMISSION";
7
+ /** Top-level sender identifier — same value as `submission.from`. Exposed at the event root so you can route on it without digging into the submission object. */
8
+ sender: string;
9
+ conversation: Pinnacle.FormSubmissionEventConversation | null;
10
+ form: Pinnacle.FormSubmissionEventForm;
11
+ submission: Pinnacle.FormSubmissionEventSubmission;
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,15 @@
1
+ /**
2
+ * Conversation between the sender and the recipient the form was delivered to. Only populated when the form was dispatched via `POST /forms/send` with a `to` recipient — that's the only call that opens a conversation tied to a form submission.
3
+ *
4
+ * Null in every other case, including:
5
+ * - `POST /forms/send` without a `to` (URL-only mints — no message is sent, so no conversation exists).
6
+ * - Submissions to a form whose URL was shared by any other means (e.g. an RCS card built with `POST /send`, a chat message, a marketing email, or a link on your site). The recipient isn't tied to a Pinnacle conversation in those flows.
7
+ */
8
+ export interface FormSubmissionEventConversation {
9
+ /** Conversation public id (`convo_*`). */
10
+ id: string;
11
+ /** Sender identifier on the conversation — the RCS agent id (`agent_*`) or E.164 phone number that sent the form. */
12
+ from: string;
13
+ /** Recipient phone number (E.164) the form was delivered to. */
14
+ to: string;
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,11 @@
1
+ /**
2
+ * Form summary carried on the FORM.SUBMISSION event.
3
+ */
4
+ export interface FormSubmissionEventForm {
5
+ /** Form id the submission belongs to (starts with `form_`). */
6
+ id: string;
7
+ /** Public shareable URL of the form (`https://forms.pinnacle.sh/{form_id}`). */
8
+ url: string;
9
+ /** Human-readable name of the form. Null if the form was created without a name. */
10
+ name: string | null;
11
+ }
@@ -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,31 @@
1
+ import type * as Pinnacle from "../index.js";
2
+ /**
3
+ * The submitted answers plus a resolved snapshot of each form field.
4
+ */
5
+ export interface FormSubmissionEventSubmission {
6
+ /** Submission id (starts with `fsub_`). Uniquely identifies this submission. */
7
+ id: string;
8
+ /** Sender identifier that originally sent this form — RCS agent id (`agent_*`) or E.164 phone number. */
9
+ from: string;
10
+ /** Recipient phone number (E.164) the form was delivered to. Null for URL-only sends where `to` was omitted at send time. */
11
+ to: string | null;
12
+ /**
13
+ * Submitted answers keyed by field `key`.
14
+ *
15
+ * Each value's shape depends on the field type:
16
+ * - `text`, `email`, `phone`, `url`, `textarea`, `select`, `radio` → string
17
+ * - `number` → number
18
+ * - `checkbox` (single) → boolean
19
+ * - `checkbox` (multi), `multiselect` → array of strings
20
+ * - Skipped optional field → null
21
+ */
22
+ data: Record<string, unknown>;
23
+ /** Resolved snapshot of the form definition paired with the submitted value — ready to render without a separate `get_form` call. */
24
+ fields: Pinnacle.FormSubmittedField[];
25
+ /** IP address the submission was POSTed from. Null if unavailable. */
26
+ ip_address: string | null;
27
+ /** User-Agent header of the browser that submitted the form. Null if unavailable. */
28
+ user_agent: string | null;
29
+ /** ISO 8601 timestamp of when the submission was completed. Updated on each edit for `can_update: true` forms. */
30
+ submitted_at: string;
31
+ }
@@ -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
+ * Snapshot of a single form field paired with the value the recipient submitted.
4
+ */
5
+ export interface FormSubmittedField {
6
+ /** Programmatic key of the field from the form definition. */
7
+ key: string;
8
+ /** Label as shown to the recipient when they filled out the form. */
9
+ label: string;
10
+ /** The field type from the form definition (e.g. `text`, `select`, `checkbox`). */
11
+ type: string;
12
+ /** The value submitted for this field. */
13
+ value: Pinnacle.FormSubmissionAnswer | null;
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 });