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.
- package/dist/cjs/Client.d.ts +3 -0
- package/dist/cjs/Client.js +19 -14
- package/dist/cjs/api/resources/forms/client/Client.d.ts +171 -0
- package/dist/cjs/api/resources/forms/client/Client.js +500 -0
- package/dist/cjs/api/resources/forms/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/forms/client/index.js +17 -0
- package/dist/cjs/api/resources/forms/client/requests/ListFormsParams.d.ts +13 -0
- package/dist/cjs/api/resources/forms/client/requests/ListFormsParams.js +3 -0
- package/dist/cjs/api/resources/forms/client/requests/UpdateFormParams.d.ts +25 -0
- package/dist/cjs/api/resources/forms/client/requests/UpdateFormParams.js +3 -0
- package/dist/cjs/api/resources/forms/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/forms/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/forms/index.d.ts +3 -0
- package/dist/cjs/api/resources/forms/index.js +19 -0
- package/dist/cjs/api/resources/forms/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/forms/resources/index.js +41 -0
- package/dist/cjs/api/resources/forms/resources/submissions/client/Client.d.ts +35 -0
- package/dist/cjs/api/resources/forms/resources/submissions/client/Client.js +141 -0
- package/dist/cjs/api/resources/forms/resources/submissions/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/forms/resources/submissions/client/index.js +17 -0
- package/dist/cjs/api/resources/forms/resources/submissions/client/requests/ListFormSubmissionsParams.d.ts +13 -0
- package/dist/cjs/api/resources/forms/resources/submissions/client/requests/ListFormSubmissionsParams.js +3 -0
- package/dist/cjs/api/resources/forms/resources/submissions/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/forms/resources/submissions/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/forms/resources/submissions/index.d.ts +1 -0
- package/dist/cjs/api/resources/forms/resources/submissions/index.js +17 -0
- package/dist/cjs/api/resources/forms/types/FormsSendResponse.d.ts +2 -0
- package/dist/cjs/api/resources/forms/types/FormsSendResponse.js +3 -0
- package/dist/cjs/api/resources/forms/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/forms/types/index.js +17 -0
- package/dist/cjs/api/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/index.js +4 -1
- package/dist/cjs/api/resources/webhooks/client/requests/AttachWebhookParams.d.ts +1 -1
- package/dist/cjs/api/types/AddressField.d.ts +14 -0
- package/dist/cjs/api/types/AddressField.js +3 -0
- package/dist/cjs/api/types/AgentSummary.d.ts +16 -2
- package/dist/cjs/api/types/CampaignStatusEvent.d.ts +19 -0
- package/dist/cjs/api/types/CampaignStatusEvent.js +3 -0
- package/dist/cjs/api/types/CampaignStatusEventAgent.d.ts +9 -0
- package/dist/cjs/api/types/CampaignStatusEventAgent.js +3 -0
- package/dist/cjs/api/types/CampaignStatusEventBrand.d.ts +9 -0
- package/dist/cjs/api/types/CampaignStatusEventBrand.js +3 -0
- package/dist/cjs/api/types/CampaignStatusEventCampaign.d.ts +18 -0
- package/dist/cjs/api/types/CampaignStatusEventCampaign.js +13 -0
- package/dist/cjs/api/types/CampaignStatusEventCarrierLaunches.d.ts +48 -0
- package/dist/cjs/api/types/CampaignStatusEventCarrierLaunches.js +3 -0
- package/dist/cjs/api/types/CarrierLaunchStatus.d.ts +4 -4
- package/dist/cjs/api/types/CarrierLaunchStatus.js +4 -4
- package/dist/cjs/api/types/CarrierLaunches.d.ts +49 -9
- package/dist/cjs/api/types/CheckboxField.d.ts +12 -0
- package/dist/cjs/api/types/CheckboxField.js +3 -0
- package/dist/cjs/api/types/ColorField.d.ts +6 -0
- package/dist/cjs/api/types/ColorField.js +3 -0
- package/dist/cjs/api/types/CreateFormRequest.d.ts +5 -0
- package/dist/cjs/api/types/CreateFormRequest.js +3 -0
- package/dist/cjs/api/types/DateField.d.ts +12 -0
- package/dist/cjs/api/types/DateField.js +3 -0
- package/dist/cjs/api/types/DatetimeField.d.ts +12 -0
- package/dist/cjs/api/types/DatetimeField.js +3 -0
- package/dist/cjs/api/types/EmailField.d.ts +8 -0
- package/dist/cjs/api/types/EmailField.js +3 -0
- package/dist/cjs/api/types/FieldBase.d.ts +13 -0
- package/dist/cjs/api/types/FieldBase.js +3 -0
- package/dist/cjs/api/types/Form.d.ts +32 -0
- package/dist/cjs/api/types/Form.js +3 -0
- package/dist/cjs/api/types/FormBackground.d.ts +19 -0
- package/dist/cjs/api/types/FormBackground.js +3 -0
- package/dist/cjs/api/types/FormBackgroundGradient.d.ts +10 -0
- package/dist/cjs/api/types/FormBackgroundGradient.js +3 -0
- package/dist/cjs/api/types/FormBackgroundImage.d.ts +13 -0
- package/dist/cjs/api/types/FormBackgroundImage.js +3 -0
- package/dist/cjs/api/types/FormBackgroundPattern.d.ts +19 -0
- package/dist/cjs/api/types/FormBackgroundPattern.js +16 -0
- package/dist/cjs/api/types/FormBackgroundSolid.d.ts +24 -0
- package/dist/cjs/api/types/FormBackgroundSolid.js +3 -0
- package/dist/cjs/api/types/FormColorPalette.d.ts +11 -0
- package/dist/cjs/api/types/FormColorPalette.js +3 -0
- package/dist/cjs/api/types/FormDefinition.d.ts +18 -0
- package/dist/cjs/api/types/FormDefinition.js +3 -0
- package/dist/cjs/api/types/FormField.d.ts +55 -0
- package/dist/cjs/api/types/FormField.js +3 -0
- package/dist/cjs/api/types/FormFieldOption.d.ts +9 -0
- package/dist/cjs/api/types/FormFieldOption.js +3 -0
- package/dist/cjs/api/types/FormGradient.d.ts +19 -0
- package/dist/cjs/api/types/FormGradient.js +12 -0
- package/dist/cjs/api/types/FormIdReference.d.ts +4 -0
- package/dist/cjs/api/types/FormIdReference.js +3 -0
- package/dist/cjs/api/types/FormSubmission.d.ts +34 -0
- package/dist/cjs/api/types/FormSubmission.js +3 -0
- package/dist/cjs/api/types/FormSubmissionAnswer.d.ts +9 -0
- package/dist/cjs/api/types/FormSubmissionAnswer.js +3 -0
- package/dist/cjs/api/types/FormSubmissionEvent.d.ts +12 -0
- package/dist/cjs/api/types/FormSubmissionEvent.js +3 -0
- package/dist/cjs/api/types/FormSubmissionEventConversation.d.ts +15 -0
- package/dist/cjs/api/types/FormSubmissionEventConversation.js +3 -0
- package/dist/cjs/api/types/FormSubmissionEventForm.d.ts +11 -0
- package/dist/cjs/api/types/FormSubmissionEventForm.js +3 -0
- package/dist/cjs/api/types/FormSubmissionEventSubmission.d.ts +31 -0
- package/dist/cjs/api/types/FormSubmissionEventSubmission.js +3 -0
- package/dist/cjs/api/types/FormSubmittedField.d.ts +14 -0
- package/dist/cjs/api/types/FormSubmittedField.js +3 -0
- package/dist/cjs/api/types/FormThemeOverride.d.ts +77 -0
- package/dist/cjs/api/types/FormThemeOverride.js +33 -0
- package/dist/cjs/api/types/ListFormSubmissionsResponse.d.ts +12 -0
- package/dist/cjs/api/types/ListFormSubmissionsResponse.js +3 -0
- package/dist/cjs/api/types/ListFormsResponse.d.ts +12 -0
- package/dist/cjs/api/types/ListFormsResponse.js +3 -0
- package/dist/cjs/api/types/MessageEvent.d.ts +8 -2
- package/dist/cjs/api/types/MessageEvent.js +5 -0
- package/dist/cjs/api/types/NumberField.d.ts +14 -0
- package/dist/cjs/api/types/NumberField.js +3 -0
- package/dist/cjs/api/types/PhoneField.d.ts +8 -0
- package/dist/cjs/api/types/PhoneField.js +3 -0
- package/dist/cjs/api/types/RadioField.d.ts +8 -0
- package/dist/cjs/api/types/RadioField.js +3 -0
- package/dist/cjs/api/types/RangeField.d.ts +12 -0
- package/dist/cjs/api/types/RangeField.js +3 -0
- package/dist/cjs/api/types/RatingField.d.ts +10 -0
- package/dist/cjs/api/types/RatingField.js +3 -0
- package/dist/cjs/api/types/ScheduledFormSendResult.d.ts +20 -0
- package/dist/cjs/api/types/ScheduledFormSendResult.js +3 -0
- package/dist/cjs/api/types/SelectField.d.ts +10 -0
- package/dist/cjs/api/types/SelectField.js +3 -0
- package/dist/cjs/api/types/SendFormOptions.d.ts +18 -0
- package/dist/cjs/api/types/SendFormOptions.js +13 -0
- package/dist/cjs/api/types/SendFormParams.d.ts +9 -0
- package/dist/cjs/api/types/SendFormParams.js +3 -0
- package/dist/cjs/api/types/SendFormResult.d.ts +13 -0
- package/dist/cjs/api/types/SendFormResult.js +3 -0
- package/dist/cjs/api/types/SendFormViaRcsParams.d.ts +28 -0
- package/dist/cjs/api/types/SendFormViaRcsParams.js +3 -0
- package/dist/cjs/api/types/SendFormViaSmsParams.d.ts +15 -0
- package/dist/cjs/api/types/SendFormViaSmsParams.js +3 -0
- package/dist/cjs/api/types/TextField.d.ts +14 -0
- package/dist/cjs/api/types/TextField.js +3 -0
- package/dist/cjs/api/types/TextareaField.d.ts +14 -0
- package/dist/cjs/api/types/TextareaField.js +3 -0
- package/dist/cjs/api/types/TimeField.d.ts +12 -0
- package/dist/cjs/api/types/TimeField.js +3 -0
- package/dist/cjs/api/types/UrlField.d.ts +8 -0
- package/dist/cjs/api/types/UrlField.js +3 -0
- package/dist/cjs/api/types/UserEvent.d.ts +5 -2
- package/dist/cjs/api/types/VerificationStatus.d.ts +12 -0
- package/dist/cjs/api/types/VerificationStatus.js +15 -0
- package/dist/cjs/api/types/WebhookEventEnum.d.ts +2 -0
- package/dist/cjs/api/types/WebhookEventEnum.js +2 -0
- package/dist/cjs/api/types/index.d.ts +52 -0
- package/dist/cjs/api/types/index.js +52 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/wrapper/messages/Client.d.ts +1 -1
- package/dist/esm/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +7 -2
- package/dist/esm/api/resources/forms/client/Client.d.mts +171 -0
- package/dist/esm/api/resources/forms/client/Client.mjs +463 -0
- package/dist/esm/api/resources/forms/client/index.d.mts +1 -0
- package/dist/esm/api/resources/forms/client/index.mjs +1 -0
- package/dist/esm/api/resources/forms/client/requests/ListFormsParams.d.mts +13 -0
- package/dist/esm/api/resources/forms/client/requests/ListFormsParams.mjs +2 -0
- package/dist/esm/api/resources/forms/client/requests/UpdateFormParams.d.mts +25 -0
- package/dist/esm/api/resources/forms/client/requests/UpdateFormParams.mjs +2 -0
- package/dist/esm/api/resources/forms/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/forms/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/forms/index.d.mts +3 -0
- package/dist/esm/api/resources/forms/index.mjs +3 -0
- package/dist/esm/api/resources/forms/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/forms/resources/index.mjs +2 -0
- package/dist/esm/api/resources/forms/resources/submissions/client/Client.d.mts +35 -0
- package/dist/esm/api/resources/forms/resources/submissions/client/Client.mjs +104 -0
- package/dist/esm/api/resources/forms/resources/submissions/client/index.d.mts +1 -0
- package/dist/esm/api/resources/forms/resources/submissions/client/index.mjs +1 -0
- package/dist/esm/api/resources/forms/resources/submissions/client/requests/ListFormSubmissionsParams.d.mts +13 -0
- package/dist/esm/api/resources/forms/resources/submissions/client/requests/ListFormSubmissionsParams.mjs +2 -0
- package/dist/esm/api/resources/forms/resources/submissions/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/forms/resources/submissions/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/forms/resources/submissions/index.d.mts +1 -0
- package/dist/esm/api/resources/forms/resources/submissions/index.mjs +1 -0
- package/dist/esm/api/resources/forms/types/FormsSendResponse.d.mts +2 -0
- package/dist/esm/api/resources/forms/types/FormsSendResponse.mjs +2 -0
- package/dist/esm/api/resources/forms/types/index.d.mts +1 -0
- package/dist/esm/api/resources/forms/types/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/index.mjs +3 -0
- package/dist/esm/api/resources/webhooks/client/requests/AttachWebhookParams.d.mts +1 -1
- package/dist/esm/api/types/AddressField.d.mts +14 -0
- package/dist/esm/api/types/AddressField.mjs +2 -0
- package/dist/esm/api/types/AgentSummary.d.mts +16 -2
- package/dist/esm/api/types/CampaignStatusEvent.d.mts +19 -0
- package/dist/esm/api/types/CampaignStatusEvent.mjs +2 -0
- package/dist/esm/api/types/CampaignStatusEventAgent.d.mts +9 -0
- package/dist/esm/api/types/CampaignStatusEventAgent.mjs +2 -0
- package/dist/esm/api/types/CampaignStatusEventBrand.d.mts +9 -0
- package/dist/esm/api/types/CampaignStatusEventBrand.mjs +2 -0
- package/dist/esm/api/types/CampaignStatusEventCampaign.d.mts +18 -0
- package/dist/esm/api/types/CampaignStatusEventCampaign.mjs +10 -0
- package/dist/esm/api/types/CampaignStatusEventCarrierLaunches.d.mts +48 -0
- package/dist/esm/api/types/CampaignStatusEventCarrierLaunches.mjs +2 -0
- package/dist/esm/api/types/CarrierLaunchStatus.d.mts +4 -4
- package/dist/esm/api/types/CarrierLaunchStatus.mjs +4 -4
- package/dist/esm/api/types/CarrierLaunches.d.mts +49 -9
- package/dist/esm/api/types/CheckboxField.d.mts +12 -0
- package/dist/esm/api/types/CheckboxField.mjs +2 -0
- package/dist/esm/api/types/ColorField.d.mts +6 -0
- package/dist/esm/api/types/ColorField.mjs +2 -0
- package/dist/esm/api/types/CreateFormRequest.d.mts +5 -0
- package/dist/esm/api/types/CreateFormRequest.mjs +2 -0
- package/dist/esm/api/types/DateField.d.mts +12 -0
- package/dist/esm/api/types/DateField.mjs +2 -0
- package/dist/esm/api/types/DatetimeField.d.mts +12 -0
- package/dist/esm/api/types/DatetimeField.mjs +2 -0
- package/dist/esm/api/types/EmailField.d.mts +8 -0
- package/dist/esm/api/types/EmailField.mjs +2 -0
- package/dist/esm/api/types/FieldBase.d.mts +13 -0
- package/dist/esm/api/types/FieldBase.mjs +2 -0
- package/dist/esm/api/types/Form.d.mts +32 -0
- package/dist/esm/api/types/Form.mjs +2 -0
- package/dist/esm/api/types/FormBackground.d.mts +19 -0
- package/dist/esm/api/types/FormBackground.mjs +2 -0
- package/dist/esm/api/types/FormBackgroundGradient.d.mts +10 -0
- package/dist/esm/api/types/FormBackgroundGradient.mjs +2 -0
- package/dist/esm/api/types/FormBackgroundImage.d.mts +13 -0
- package/dist/esm/api/types/FormBackgroundImage.mjs +2 -0
- package/dist/esm/api/types/FormBackgroundPattern.d.mts +19 -0
- package/dist/esm/api/types/FormBackgroundPattern.mjs +13 -0
- package/dist/esm/api/types/FormBackgroundSolid.d.mts +24 -0
- package/dist/esm/api/types/FormBackgroundSolid.mjs +2 -0
- package/dist/esm/api/types/FormColorPalette.d.mts +11 -0
- package/dist/esm/api/types/FormColorPalette.mjs +2 -0
- package/dist/esm/api/types/FormDefinition.d.mts +18 -0
- package/dist/esm/api/types/FormDefinition.mjs +2 -0
- package/dist/esm/api/types/FormField.d.mts +55 -0
- package/dist/esm/api/types/FormField.mjs +2 -0
- package/dist/esm/api/types/FormFieldOption.d.mts +9 -0
- package/dist/esm/api/types/FormFieldOption.mjs +2 -0
- package/dist/esm/api/types/FormGradient.d.mts +19 -0
- package/dist/esm/api/types/FormGradient.mjs +9 -0
- package/dist/esm/api/types/FormIdReference.d.mts +4 -0
- package/dist/esm/api/types/FormIdReference.mjs +2 -0
- package/dist/esm/api/types/FormSubmission.d.mts +34 -0
- package/dist/esm/api/types/FormSubmission.mjs +2 -0
- package/dist/esm/api/types/FormSubmissionAnswer.d.mts +9 -0
- package/dist/esm/api/types/FormSubmissionAnswer.mjs +2 -0
- package/dist/esm/api/types/FormSubmissionEvent.d.mts +12 -0
- package/dist/esm/api/types/FormSubmissionEvent.mjs +2 -0
- package/dist/esm/api/types/FormSubmissionEventConversation.d.mts +15 -0
- package/dist/esm/api/types/FormSubmissionEventConversation.mjs +2 -0
- package/dist/esm/api/types/FormSubmissionEventForm.d.mts +11 -0
- package/dist/esm/api/types/FormSubmissionEventForm.mjs +2 -0
- package/dist/esm/api/types/FormSubmissionEventSubmission.d.mts +31 -0
- package/dist/esm/api/types/FormSubmissionEventSubmission.mjs +2 -0
- package/dist/esm/api/types/FormSubmittedField.d.mts +14 -0
- package/dist/esm/api/types/FormSubmittedField.mjs +2 -0
- package/dist/esm/api/types/FormThemeOverride.d.mts +77 -0
- package/dist/esm/api/types/FormThemeOverride.mjs +30 -0
- package/dist/esm/api/types/ListFormSubmissionsResponse.d.mts +12 -0
- package/dist/esm/api/types/ListFormSubmissionsResponse.mjs +2 -0
- package/dist/esm/api/types/ListFormsResponse.d.mts +12 -0
- package/dist/esm/api/types/ListFormsResponse.mjs +2 -0
- package/dist/esm/api/types/MessageEvent.d.mts +8 -2
- package/dist/esm/api/types/MessageEvent.mjs +5 -0
- package/dist/esm/api/types/NumberField.d.mts +14 -0
- package/dist/esm/api/types/NumberField.mjs +2 -0
- package/dist/esm/api/types/PhoneField.d.mts +8 -0
- package/dist/esm/api/types/PhoneField.mjs +2 -0
- package/dist/esm/api/types/RadioField.d.mts +8 -0
- package/dist/esm/api/types/RadioField.mjs +2 -0
- package/dist/esm/api/types/RangeField.d.mts +12 -0
- package/dist/esm/api/types/RangeField.mjs +2 -0
- package/dist/esm/api/types/RatingField.d.mts +10 -0
- package/dist/esm/api/types/RatingField.mjs +2 -0
- package/dist/esm/api/types/ScheduledFormSendResult.d.mts +20 -0
- package/dist/esm/api/types/ScheduledFormSendResult.mjs +2 -0
- package/dist/esm/api/types/SelectField.d.mts +10 -0
- package/dist/esm/api/types/SelectField.mjs +2 -0
- package/dist/esm/api/types/SendFormOptions.d.mts +18 -0
- package/dist/esm/api/types/SendFormOptions.mjs +10 -0
- package/dist/esm/api/types/SendFormParams.d.mts +9 -0
- package/dist/esm/api/types/SendFormParams.mjs +2 -0
- package/dist/esm/api/types/SendFormResult.d.mts +13 -0
- package/dist/esm/api/types/SendFormResult.mjs +2 -0
- package/dist/esm/api/types/SendFormViaRcsParams.d.mts +28 -0
- package/dist/esm/api/types/SendFormViaRcsParams.mjs +2 -0
- package/dist/esm/api/types/SendFormViaSmsParams.d.mts +15 -0
- package/dist/esm/api/types/SendFormViaSmsParams.mjs +2 -0
- package/dist/esm/api/types/TextField.d.mts +14 -0
- package/dist/esm/api/types/TextField.mjs +2 -0
- package/dist/esm/api/types/TextareaField.d.mts +14 -0
- package/dist/esm/api/types/TextareaField.mjs +2 -0
- package/dist/esm/api/types/TimeField.d.mts +12 -0
- package/dist/esm/api/types/TimeField.mjs +2 -0
- package/dist/esm/api/types/UrlField.d.mts +8 -0
- package/dist/esm/api/types/UrlField.mjs +2 -0
- package/dist/esm/api/types/UserEvent.d.mts +5 -2
- package/dist/esm/api/types/VerificationStatus.d.mts +12 -0
- package/dist/esm/api/types/VerificationStatus.mjs +12 -0
- package/dist/esm/api/types/WebhookEventEnum.d.mts +2 -0
- package/dist/esm/api/types/WebhookEventEnum.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +52 -0
- package/dist/esm/api/types/index.mjs +52 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/esm/wrapper/messages/Client.d.mts +1 -1
- package/package.json +1 -1
- package/reference.md +481 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type * as Pinnacle from "../index.mjs";
|
|
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,10 @@
|
|
|
1
|
+
import type * as Pinnacle from "../index.mjs";
|
|
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,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,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,13 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var FormBackgroundPattern;
|
|
3
|
+
(function (FormBackgroundPattern) {
|
|
4
|
+
/** Which built-in pattern to render. */
|
|
5
|
+
FormBackgroundPattern.Preset = {
|
|
6
|
+
Noise: "noise",
|
|
7
|
+
Dots: "dots",
|
|
8
|
+
Mesh: "mesh",
|
|
9
|
+
Grid: "grid",
|
|
10
|
+
Waves: "waves",
|
|
11
|
+
Topo: "topo",
|
|
12
|
+
};
|
|
13
|
+
})(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,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,18 @@
|
|
|
1
|
+
import type * as Pinnacle from "../index.mjs";
|
|
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,55 @@
|
|
|
1
|
+
import type * as Pinnacle from "../index.mjs";
|
|
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,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,9 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var FormGradient;
|
|
3
|
+
(function (FormGradient) {
|
|
4
|
+
/** Direction the gradient runs. `top-bottom` is vertical; `diagonal` runs top-left → bottom-right. */
|
|
5
|
+
FormGradient.Angle = {
|
|
6
|
+
TopBottom: "top-bottom",
|
|
7
|
+
Diagonal: "diagonal",
|
|
8
|
+
};
|
|
9
|
+
})(FormGradient || (FormGradient = {}));
|
|
@@ -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,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,12 @@
|
|
|
1
|
+
import type * as Pinnacle from "../index.mjs";
|
|
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,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,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,31 @@
|
|
|
1
|
+
import type * as Pinnacle from "../index.mjs";
|
|
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,14 @@
|
|
|
1
|
+
import type * as Pinnacle from "../index.mjs";
|
|
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,77 @@
|
|
|
1
|
+
import type * as Pinnacle from "../index.mjs";
|
|
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,30 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var FormThemeOverride;
|
|
3
|
+
(function (FormThemeOverride) {
|
|
4
|
+
/** Rendering mode. `light` forces the light palette, `dark` forces dark, and `auto` follows the respondent's OS-level appearance setting. */
|
|
5
|
+
FormThemeOverride.ThemeMode = {
|
|
6
|
+
Light: "light",
|
|
7
|
+
Dark: "dark",
|
|
8
|
+
Auto: "auto",
|
|
9
|
+
};
|
|
10
|
+
/** Typeface stack. `system` uses the respondent's OS default sans-serif. */
|
|
11
|
+
FormThemeOverride.FontFamily = {
|
|
12
|
+
Inter: "inter",
|
|
13
|
+
System: "system",
|
|
14
|
+
Serif: "serif",
|
|
15
|
+
Mono: "mono",
|
|
16
|
+
Rounded: "rounded",
|
|
17
|
+
};
|
|
18
|
+
/** Border-radius preset for cards, inputs, and buttons. */
|
|
19
|
+
FormThemeOverride.CornerRadius = {
|
|
20
|
+
Sharp: "sharp",
|
|
21
|
+
Rounded: "rounded",
|
|
22
|
+
Pill: "pill",
|
|
23
|
+
};
|
|
24
|
+
/** Horizontal alignment for the form header (title, description, logo). */
|
|
25
|
+
FormThemeOverride.ContentAlignment = {
|
|
26
|
+
Left: "left",
|
|
27
|
+
Center: "center",
|
|
28
|
+
Right: "right",
|
|
29
|
+
};
|
|
30
|
+
})(FormThemeOverride || (FormThemeOverride = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as Pinnacle from "../index.mjs";
|
|
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,12 @@
|
|
|
1
|
+
import type * as Pinnacle from "../index.mjs";
|
|
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
|
+
}
|
|
@@ -3,8 +3,8 @@ import type * as Pinnacle from "../index.mjs";
|
|
|
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
|
|
7
|
-
type:
|
|
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
|
*/
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
export var MessageEvent;
|
|
3
3
|
(function (MessageEvent) {
|
|
4
|
+
/** Type of webhook event. `MESSAGE.STATUS` for message status updates, `MESSAGE.RECEIVED` for inbound messages. */
|
|
5
|
+
MessageEvent.Type = {
|
|
6
|
+
MessageStatus: "MESSAGE.STATUS",
|
|
7
|
+
MessageReceived: "MESSAGE.RECEIVED",
|
|
8
|
+
};
|
|
4
9
|
/** Direction of the message flow. */
|
|
5
10
|
MessageEvent.Direction = {
|
|
6
11
|
Inbound: "INBOUND",
|