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
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { Brands } from "./api/resources/brands/client/Client.js";
|
|
|
3
3
|
import { Campaigns } from "./api/resources/campaigns/client/Client.js";
|
|
4
4
|
import { Contacts } from "./api/resources/contacts/client/Client.js";
|
|
5
5
|
import { Conversations } from "./api/resources/conversations/client/Client.js";
|
|
6
|
+
import { Forms } from "./api/resources/forms/client/Client.js";
|
|
6
7
|
import { Messages } from "./api/resources/messages/client/Client.js";
|
|
7
8
|
import { PhoneNumbers } from "./api/resources/phoneNumbers/client/Client.js";
|
|
8
9
|
import { Rcs } from "./api/resources/rcs/client/Client.js";
|
|
@@ -26,6 +27,7 @@ export declare class PinnacleClient {
|
|
|
26
27
|
protected _phoneNumbers: PhoneNumbers | undefined;
|
|
27
28
|
protected _rcs: Rcs | undefined;
|
|
28
29
|
protected _webhooks: Webhooks | undefined;
|
|
30
|
+
protected _forms: Forms | undefined;
|
|
29
31
|
protected _campaigns: Campaigns | undefined;
|
|
30
32
|
protected _status: Status | undefined;
|
|
31
33
|
protected _tools: Tools | undefined;
|
|
@@ -38,6 +40,7 @@ export declare class PinnacleClient {
|
|
|
38
40
|
get phoneNumbers(): PhoneNumbers;
|
|
39
41
|
get rcs(): Rcs;
|
|
40
42
|
get webhooks(): Webhooks;
|
|
43
|
+
get forms(): Forms;
|
|
41
44
|
get campaigns(): Campaigns;
|
|
42
45
|
get status(): Status;
|
|
43
46
|
get tools(): Tools;
|
package/dist/cjs/Client.js
CHANGED
|
@@ -40,12 +40,13 @@ const Client_js_2 = require("./api/resources/brands/client/Client.js");
|
|
|
40
40
|
const Client_js_3 = require("./api/resources/campaigns/client/Client.js");
|
|
41
41
|
const Client_js_4 = require("./api/resources/contacts/client/Client.js");
|
|
42
42
|
const Client_js_5 = require("./api/resources/conversations/client/Client.js");
|
|
43
|
-
const Client_js_6 = require("./api/resources/
|
|
44
|
-
const Client_js_7 = require("./api/resources/
|
|
45
|
-
const Client_js_8 = require("./api/resources/
|
|
46
|
-
const Client_js_9 = require("./api/resources/
|
|
47
|
-
const Client_js_10 = require("./api/resources/
|
|
48
|
-
const Client_js_11 = require("./api/resources/
|
|
43
|
+
const Client_js_6 = require("./api/resources/forms/client/Client.js");
|
|
44
|
+
const Client_js_7 = require("./api/resources/messages/client/Client.js");
|
|
45
|
+
const Client_js_8 = require("./api/resources/phoneNumbers/client/Client.js");
|
|
46
|
+
const Client_js_9 = require("./api/resources/rcs/client/Client.js");
|
|
47
|
+
const Client_js_10 = require("./api/resources/status/client/Client.js");
|
|
48
|
+
const Client_js_11 = require("./api/resources/tools/client/Client.js");
|
|
49
|
+
const Client_js_12 = require("./api/resources/webhooks/client/Client.js");
|
|
49
50
|
const headers_js_1 = require("./core/headers.js");
|
|
50
51
|
const core = __importStar(require("./core/index.js"));
|
|
51
52
|
class PinnacleClient {
|
|
@@ -53,8 +54,8 @@ class PinnacleClient {
|
|
|
53
54
|
this._options = Object.assign(Object.assign({}, _options), { logging: core.logging.createLogger(_options === null || _options === void 0 ? void 0 : _options.logging), headers: (0, headers_js_1.mergeHeaders)({
|
|
54
55
|
"X-Fern-Language": "JavaScript",
|
|
55
56
|
"X-Fern-SDK-Name": "rcs-js",
|
|
56
|
-
"X-Fern-SDK-Version": "2.0.
|
|
57
|
-
"User-Agent": "rcs-js/2.0.
|
|
57
|
+
"X-Fern-SDK-Version": "2.0.21",
|
|
58
|
+
"User-Agent": "rcs-js/2.0.21",
|
|
58
59
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
59
60
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
60
61
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -77,19 +78,23 @@ class PinnacleClient {
|
|
|
77
78
|
}
|
|
78
79
|
get messages() {
|
|
79
80
|
var _a;
|
|
80
|
-
return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new
|
|
81
|
+
return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new Client_js_7.Messages(this._options)));
|
|
81
82
|
}
|
|
82
83
|
get phoneNumbers() {
|
|
83
84
|
var _a;
|
|
84
|
-
return ((_a = this._phoneNumbers) !== null && _a !== void 0 ? _a : (this._phoneNumbers = new
|
|
85
|
+
return ((_a = this._phoneNumbers) !== null && _a !== void 0 ? _a : (this._phoneNumbers = new Client_js_8.PhoneNumbers(this._options)));
|
|
85
86
|
}
|
|
86
87
|
get rcs() {
|
|
87
88
|
var _a;
|
|
88
|
-
return ((_a = this._rcs) !== null && _a !== void 0 ? _a : (this._rcs = new
|
|
89
|
+
return ((_a = this._rcs) !== null && _a !== void 0 ? _a : (this._rcs = new Client_js_9.Rcs(this._options)));
|
|
89
90
|
}
|
|
90
91
|
get webhooks() {
|
|
91
92
|
var _a;
|
|
92
|
-
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new
|
|
93
|
+
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_js_12.Webhooks(this._options)));
|
|
94
|
+
}
|
|
95
|
+
get forms() {
|
|
96
|
+
var _a;
|
|
97
|
+
return ((_a = this._forms) !== null && _a !== void 0 ? _a : (this._forms = new Client_js_6.Forms(this._options)));
|
|
93
98
|
}
|
|
94
99
|
get campaigns() {
|
|
95
100
|
var _a;
|
|
@@ -97,11 +102,11 @@ class PinnacleClient {
|
|
|
97
102
|
}
|
|
98
103
|
get status() {
|
|
99
104
|
var _a;
|
|
100
|
-
return ((_a = this._status) !== null && _a !== void 0 ? _a : (this._status = new
|
|
105
|
+
return ((_a = this._status) !== null && _a !== void 0 ? _a : (this._status = new Client_js_10.Status(this._options)));
|
|
101
106
|
}
|
|
102
107
|
get tools() {
|
|
103
108
|
var _a;
|
|
104
|
-
return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new
|
|
109
|
+
return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new Client_js_11.Tools(this._options)));
|
|
105
110
|
}
|
|
106
111
|
}
|
|
107
112
|
exports.PinnacleClient = PinnacleClient;
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
import * as Pinnacle from "../../../index.js";
|
|
4
|
+
import { Submissions } from "../resources/submissions/client/Client.js";
|
|
5
|
+
export declare namespace Forms {
|
|
6
|
+
interface Options extends BaseClientOptions {
|
|
7
|
+
}
|
|
8
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export declare class Forms {
|
|
12
|
+
protected readonly _options: Forms.Options;
|
|
13
|
+
protected _submissions: Submissions | undefined;
|
|
14
|
+
constructor(_options: Forms.Options);
|
|
15
|
+
get submissions(): Submissions;
|
|
16
|
+
/**
|
|
17
|
+
* Retrieve a form by id. Includes submission count, last submission timestamp, and archive state.
|
|
18
|
+
*
|
|
19
|
+
* @param {string} id - The unique identifier of the form you want to retrieve.
|
|
20
|
+
* <br><br> This identifier is a string that always begins with the prefix `form_`, for example: `form_Oy2n7iUoi9CJwUU6`. It's returned on every form response (`Form.id`) and by [`POST /forms/send`](/api-reference/forms/send-form) (`response.form.id`).
|
|
21
|
+
* @param {Forms.RequestOptions} requestOptions - Request-specific configuration.
|
|
22
|
+
*
|
|
23
|
+
* @throws {@link Pinnacle.BadRequestError}
|
|
24
|
+
* @throws {@link Pinnacle.UnauthorizedError}
|
|
25
|
+
* @throws {@link Pinnacle.NotFoundError}
|
|
26
|
+
* @throws {@link Pinnacle.InternalServerError}
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* await client.forms.get("form_Oy2n7iUoi9CJwUU6")
|
|
30
|
+
*/
|
|
31
|
+
get(id: string, requestOptions?: Forms.RequestOptions): core.HttpResponsePromise<Pinnacle.Form>;
|
|
32
|
+
private __get;
|
|
33
|
+
/**
|
|
34
|
+
* Partial update. Only keys present in the body are applied. Archived forms (non-null `archived_at`) cannot be updated — restore the form by setting `archived_at: null` in a PATCH first.
|
|
35
|
+
*
|
|
36
|
+
* @param {string} id - The unique identifier of the form you want to update.
|
|
37
|
+
* <br><br> This identifier is a string that always begins with the prefix `form_`, for example: `form_Oy2n7iUoi9CJwUU6`.
|
|
38
|
+
* @param {Pinnacle.UpdateFormParams} request
|
|
39
|
+
* @param {Forms.RequestOptions} requestOptions - Request-specific configuration.
|
|
40
|
+
*
|
|
41
|
+
* @throws {@link Pinnacle.BadRequestError}
|
|
42
|
+
* @throws {@link Pinnacle.UnauthorizedError}
|
|
43
|
+
* @throws {@link Pinnacle.NotFoundError}
|
|
44
|
+
* @throws {@link Pinnacle.InternalServerError}
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* await client.forms.update("form_Oy2n7iUoi9CJwUU6", {
|
|
48
|
+
* name: "Contact request (v2)",
|
|
49
|
+
* can_update: true,
|
|
50
|
+
* expires_at: "2026-12-31T23:59:59Z"
|
|
51
|
+
* })
|
|
52
|
+
*/
|
|
53
|
+
update(id: string, request?: Pinnacle.UpdateFormParams, requestOptions?: Forms.RequestOptions): core.HttpResponsePromise<Pinnacle.Form>;
|
|
54
|
+
private __update;
|
|
55
|
+
/**
|
|
56
|
+
* Paginated list of forms on your team, sorted by creation date (newest first). Includes archived forms.
|
|
57
|
+
*
|
|
58
|
+
* @param {Pinnacle.ListFormsParams} request
|
|
59
|
+
* @param {Forms.RequestOptions} requestOptions - Request-specific configuration.
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link Pinnacle.BadRequestError}
|
|
62
|
+
* @throws {@link Pinnacle.UnauthorizedError}
|
|
63
|
+
* @throws {@link Pinnacle.InternalServerError}
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* await client.forms.list({
|
|
67
|
+
* pageIndex: 0,
|
|
68
|
+
* pageSize: 20
|
|
69
|
+
* })
|
|
70
|
+
*/
|
|
71
|
+
list(request?: Pinnacle.ListFormsParams, requestOptions?: Forms.RequestOptions): core.HttpResponsePromise<Pinnacle.ListFormsResponse>;
|
|
72
|
+
private __list;
|
|
73
|
+
/**
|
|
74
|
+
* Create a hosted form without sending it. <br>
|
|
75
|
+
*
|
|
76
|
+
* Returns the form object including its public URL — `https://forms.pinnacle.sh/{form_id}`. <br>
|
|
77
|
+
*
|
|
78
|
+
* To also deliver the URL to a recipient over SMS or RCS in a single call, use [`POST /forms/send`](/api-reference/forms/send-form).
|
|
79
|
+
*
|
|
80
|
+
* @param {Pinnacle.CreateFormRequest} request
|
|
81
|
+
* @param {Forms.RequestOptions} requestOptions - Request-specific configuration.
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link Pinnacle.BadRequestError}
|
|
84
|
+
* @throws {@link Pinnacle.UnauthorizedError}
|
|
85
|
+
* @throws {@link Pinnacle.InternalServerError}
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* await client.forms.create({
|
|
89
|
+
* name: "Contact request",
|
|
90
|
+
* description: "We'll follow up over SMS or RCS.",
|
|
91
|
+
* fields: [{
|
|
92
|
+
* type: "text",
|
|
93
|
+
* key: "full_name",
|
|
94
|
+
* label: "Full name",
|
|
95
|
+
* required: true,
|
|
96
|
+
* placeholder: "Ada Lovelace",
|
|
97
|
+
* min_length: 2,
|
|
98
|
+
* max_length: 60
|
|
99
|
+
* }, {
|
|
100
|
+
* type: "email",
|
|
101
|
+
* key: "email",
|
|
102
|
+
* label: "Email",
|
|
103
|
+
* required: true,
|
|
104
|
+
* placeholder: "you@example.com"
|
|
105
|
+
* }, {
|
|
106
|
+
* type: "phone",
|
|
107
|
+
* key: "phone",
|
|
108
|
+
* label: "Phone",
|
|
109
|
+
* required: true,
|
|
110
|
+
* placeholder: "(555) 555-1212"
|
|
111
|
+
* }, {
|
|
112
|
+
* type: "select",
|
|
113
|
+
* key: "plan",
|
|
114
|
+
* label: "Plan",
|
|
115
|
+
* required: true,
|
|
116
|
+
* options: [{
|
|
117
|
+
* value: "basic",
|
|
118
|
+
* label: "Basic"
|
|
119
|
+
* }, {
|
|
120
|
+
* value: "pro",
|
|
121
|
+
* label: "Pro"
|
|
122
|
+
* }, {
|
|
123
|
+
* value: "enterprise",
|
|
124
|
+
* label: "Enterprise"
|
|
125
|
+
* }]
|
|
126
|
+
* }],
|
|
127
|
+
* can_update: false
|
|
128
|
+
* })
|
|
129
|
+
*/
|
|
130
|
+
create(request: Pinnacle.CreateFormRequest, requestOptions?: Forms.RequestOptions): core.HttpResponsePromise<Pinnacle.Form>;
|
|
131
|
+
private __create;
|
|
132
|
+
/**
|
|
133
|
+
* Send a form to a recipient over SMS or RCS, or mint a standalone submission URL.
|
|
134
|
+
*
|
|
135
|
+
* Pass `form` as either an existing form id (`form_*`) or an inline `{ fields, ... }` definition to mint a new form for this send.
|
|
136
|
+
*
|
|
137
|
+
* The delivery channel is inferred from `from`:
|
|
138
|
+
* - `from: "agent_*"` → RCS (with optional SMS `fallback`)
|
|
139
|
+
* - `from: "+E.164"` → SMS
|
|
140
|
+
*
|
|
141
|
+
* When `to` is provided, Pinnacle dispatches a message whose body contains the submission URL and the recipient is recorded on the response: `submission.to` echoes the same E.164 number and `message_id` is the id of the outbound SMS/RCS.
|
|
142
|
+
*
|
|
143
|
+
* When `to` is omitted, no message is sent — `submission.to` and `message_id` are both `null` — which is useful for embedding the URL in your own outreach.
|
|
144
|
+
*
|
|
145
|
+
* On completion, a `FORM.SUBMISSION` webhook event is delivered to webhooks subscribed to the sender. See [Receiving Messages and User Events](/guides/messages/receiving).
|
|
146
|
+
*
|
|
147
|
+
* @param {Pinnacle.SendFormParams} request
|
|
148
|
+
* @param {Forms.RequestOptions} requestOptions - Request-specific configuration.
|
|
149
|
+
*
|
|
150
|
+
* @throws {@link Pinnacle.BadRequestError}
|
|
151
|
+
* @throws {@link Pinnacle.UnauthorizedError}
|
|
152
|
+
* @throws {@link Pinnacle.NotFoundError}
|
|
153
|
+
* @throws {@link Pinnacle.InternalServerError}
|
|
154
|
+
*
|
|
155
|
+
* @example
|
|
156
|
+
* await client.forms.send({
|
|
157
|
+
* from: "agent_iM9wQcyBBjYn",
|
|
158
|
+
* to: "+14155551234",
|
|
159
|
+
* form: "form_Oy2n7iUoi9CJwUU6",
|
|
160
|
+
* fallback: {
|
|
161
|
+
* from: "+14155550000"
|
|
162
|
+
* },
|
|
163
|
+
* options: {
|
|
164
|
+
* webview_mode: "FULL"
|
|
165
|
+
* }
|
|
166
|
+
* })
|
|
167
|
+
*/
|
|
168
|
+
send(request: Pinnacle.SendFormParams, requestOptions?: Forms.RequestOptions): core.HttpResponsePromise<Pinnacle.FormsSendResponse>;
|
|
169
|
+
private __send;
|
|
170
|
+
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
|
|
171
|
+
}
|