@keystrokehq/spoki 0.1.0
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/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/add-contact-operator.cjs +19 -0
- package/dist/actions/add-contact-operator.cjs.map +1 -0
- package/dist/actions/add-contact-operator.d.cts +9 -0
- package/dist/actions/add-contact-operator.d.cts.map +1 -0
- package/dist/actions/add-contact-operator.d.mts +9 -0
- package/dist/actions/add-contact-operator.d.mts.map +1 -0
- package/dist/actions/add-contact-operator.mjs +16 -0
- package/dist/actions/add-contact-operator.mjs.map +1 -0
- package/dist/actions/add-service-user.cjs +23 -0
- package/dist/actions/add-service-user.cjs.map +1 -0
- package/dist/actions/add-service-user.d.cts +9 -0
- package/dist/actions/add-service-user.d.cts.map +1 -0
- package/dist/actions/add-service-user.d.mts +9 -0
- package/dist/actions/add-service-user.d.mts.map +1 -0
- package/dist/actions/add-service-user.mjs +20 -0
- package/dist/actions/add-service-user.mjs.map +1 -0
- package/dist/actions/check-role-private-key.cjs +16 -0
- package/dist/actions/check-role-private-key.cjs.map +1 -0
- package/dist/actions/check-role-private-key.d.cts +9 -0
- package/dist/actions/check-role-private-key.d.cts.map +1 -0
- package/dist/actions/check-role-private-key.d.mts +9 -0
- package/dist/actions/check-role-private-key.d.mts.map +1 -0
- package/dist/actions/check-role-private-key.mjs +13 -0
- package/dist/actions/check-role-private-key.mjs.map +1 -0
- package/dist/actions/clone-template.cjs +52 -0
- package/dist/actions/clone-template.cjs.map +1 -0
- package/dist/actions/clone-template.d.cts +9 -0
- package/dist/actions/clone-template.d.cts.map +1 -0
- package/dist/actions/clone-template.d.mts +9 -0
- package/dist/actions/clone-template.d.mts.map +1 -0
- package/dist/actions/clone-template.mjs +51 -0
- package/dist/actions/clone-template.mjs.map +1 -0
- package/dist/actions/create-account-onboarding-link.cjs +20 -0
- package/dist/actions/create-account-onboarding-link.cjs.map +1 -0
- package/dist/actions/create-account-onboarding-link.d.cts +9 -0
- package/dist/actions/create-account-onboarding-link.d.cts.map +1 -0
- package/dist/actions/create-account-onboarding-link.d.mts +9 -0
- package/dist/actions/create-account-onboarding-link.d.mts.map +1 -0
- package/dist/actions/create-account-onboarding-link.mjs +17 -0
- package/dist/actions/create-account-onboarding-link.mjs.map +1 -0
- package/dist/actions/create-custom-field.cjs +32 -0
- package/dist/actions/create-custom-field.cjs.map +1 -0
- package/dist/actions/create-custom-field.d.cts +9 -0
- package/dist/actions/create-custom-field.d.cts.map +1 -0
- package/dist/actions/create-custom-field.d.mts +9 -0
- package/dist/actions/create-custom-field.d.mts.map +1 -0
- package/dist/actions/create-custom-field.mjs +29 -0
- package/dist/actions/create-custom-field.mjs.map +1 -0
- package/dist/actions/create-list.cjs +22 -0
- package/dist/actions/create-list.cjs.map +1 -0
- package/dist/actions/create-list.d.cts +9 -0
- package/dist/actions/create-list.d.cts.map +1 -0
- package/dist/actions/create-list.d.mts +9 -0
- package/dist/actions/create-list.d.mts.map +1 -0
- package/dist/actions/create-list.mjs +19 -0
- package/dist/actions/create-list.mjs.map +1 -0
- package/dist/actions/create-media.cjs +27 -0
- package/dist/actions/create-media.cjs.map +1 -0
- package/dist/actions/create-media.d.cts +9 -0
- package/dist/actions/create-media.d.cts.map +1 -0
- package/dist/actions/create-media.d.mts +9 -0
- package/dist/actions/create-media.d.mts.map +1 -0
- package/dist/actions/create-media.mjs +24 -0
- package/dist/actions/create-media.mjs.map +1 -0
- package/dist/actions/create-or-update-contact.cjs +36 -0
- package/dist/actions/create-or-update-contact.cjs.map +1 -0
- package/dist/actions/create-or-update-contact.d.cts +9 -0
- package/dist/actions/create-or-update-contact.d.cts.map +1 -0
- package/dist/actions/create-or-update-contact.d.mts +9 -0
- package/dist/actions/create-or-update-contact.d.mts.map +1 -0
- package/dist/actions/create-or-update-contact.mjs +33 -0
- package/dist/actions/create-or-update-contact.mjs.map +1 -0
- package/dist/actions/create-template.cjs +84 -0
- package/dist/actions/create-template.cjs.map +1 -0
- package/dist/actions/create-template.d.cts +9 -0
- package/dist/actions/create-template.d.cts.map +1 -0
- package/dist/actions/create-template.d.mts +9 -0
- package/dist/actions/create-template.d.mts.map +1 -0
- package/dist/actions/create-template.mjs +83 -0
- package/dist/actions/create-template.mjs.map +1 -0
- package/dist/actions/create-ticket.cjs +66 -0
- package/dist/actions/create-ticket.cjs.map +1 -0
- package/dist/actions/create-ticket.d.cts +9 -0
- package/dist/actions/create-ticket.d.cts.map +1 -0
- package/dist/actions/create-ticket.d.mts +9 -0
- package/dist/actions/create-ticket.d.mts.map +1 -0
- package/dist/actions/create-ticket.mjs +65 -0
- package/dist/actions/create-ticket.mjs.map +1 -0
- package/dist/actions/delete-contact.cjs +16 -0
- package/dist/actions/delete-contact.cjs.map +1 -0
- package/dist/actions/delete-contact.d.cts +9 -0
- package/dist/actions/delete-contact.d.cts.map +1 -0
- package/dist/actions/delete-contact.d.mts +9 -0
- package/dist/actions/delete-contact.d.mts.map +1 -0
- package/dist/actions/delete-contact.mjs +13 -0
- package/dist/actions/delete-contact.mjs.map +1 -0
- package/dist/actions/delete-custom-field.cjs +16 -0
- package/dist/actions/delete-custom-field.cjs.map +1 -0
- package/dist/actions/delete-custom-field.d.cts +9 -0
- package/dist/actions/delete-custom-field.d.cts.map +1 -0
- package/dist/actions/delete-custom-field.d.mts +9 -0
- package/dist/actions/delete-custom-field.d.mts.map +1 -0
- package/dist/actions/delete-custom-field.mjs +13 -0
- package/dist/actions/delete-custom-field.mjs.map +1 -0
- package/dist/actions/delete-list.cjs +16 -0
- package/dist/actions/delete-list.cjs.map +1 -0
- package/dist/actions/delete-list.d.cts +9 -0
- package/dist/actions/delete-list.d.cts.map +1 -0
- package/dist/actions/delete-list.d.mts +9 -0
- package/dist/actions/delete-list.d.mts.map +1 -0
- package/dist/actions/delete-list.mjs +13 -0
- package/dist/actions/delete-list.mjs.map +1 -0
- package/dist/actions/delete-media.cjs +16 -0
- package/dist/actions/delete-media.cjs.map +1 -0
- package/dist/actions/delete-media.d.cts +9 -0
- package/dist/actions/delete-media.d.cts.map +1 -0
- package/dist/actions/delete-media.d.mts +9 -0
- package/dist/actions/delete-media.d.mts.map +1 -0
- package/dist/actions/delete-media.mjs +13 -0
- package/dist/actions/delete-media.mjs.map +1 -0
- package/dist/actions/delete-role.cjs +16 -0
- package/dist/actions/delete-role.cjs.map +1 -0
- package/dist/actions/delete-role.d.cts +9 -0
- package/dist/actions/delete-role.d.cts.map +1 -0
- package/dist/actions/delete-role.d.mts +9 -0
- package/dist/actions/delete-role.d.mts.map +1 -0
- package/dist/actions/delete-role.mjs +13 -0
- package/dist/actions/delete-role.mjs.map +1 -0
- package/dist/actions/delete-template.cjs +19 -0
- package/dist/actions/delete-template.cjs.map +1 -0
- package/dist/actions/delete-template.d.cts +9 -0
- package/dist/actions/delete-template.d.cts.map +1 -0
- package/dist/actions/delete-template.d.mts +9 -0
- package/dist/actions/delete-template.d.mts.map +1 -0
- package/dist/actions/delete-template.mjs +16 -0
- package/dist/actions/delete-template.mjs.map +1 -0
- package/dist/actions/delete-ticket.cjs +16 -0
- package/dist/actions/delete-ticket.cjs.map +1 -0
- package/dist/actions/delete-ticket.d.cts +9 -0
- package/dist/actions/delete-ticket.d.cts.map +1 -0
- package/dist/actions/delete-ticket.d.mts +9 -0
- package/dist/actions/delete-ticket.d.mts.map +1 -0
- package/dist/actions/delete-ticket.mjs +13 -0
- package/dist/actions/delete-ticket.mjs.map +1 -0
- package/dist/actions/generate-role-private-key.cjs +16 -0
- package/dist/actions/generate-role-private-key.cjs.map +1 -0
- package/dist/actions/generate-role-private-key.d.cts +9 -0
- package/dist/actions/generate-role-private-key.d.cts.map +1 -0
- package/dist/actions/generate-role-private-key.d.mts +9 -0
- package/dist/actions/generate-role-private-key.d.mts.map +1 -0
- package/dist/actions/generate-role-private-key.mjs +13 -0
- package/dist/actions/generate-role-private-key.mjs.map +1 -0
- package/dist/actions/get-account-current-report.cjs +31 -0
- package/dist/actions/get-account-current-report.cjs.map +1 -0
- package/dist/actions/get-account-current-report.d.cts +9 -0
- package/dist/actions/get-account-current-report.d.cts.map +1 -0
- package/dist/actions/get-account-current-report.d.mts +9 -0
- package/dist/actions/get-account-current-report.d.mts.map +1 -0
- package/dist/actions/get-account-current-report.mjs +28 -0
- package/dist/actions/get-account-current-report.mjs.map +1 -0
- package/dist/actions/index.cjs +115 -0
- package/dist/actions/index.d.cts +58 -0
- package/dist/actions/index.d.mts +58 -0
- package/dist/actions/index.mjs +58 -0
- package/dist/actions/list-accounts.cjs +53 -0
- package/dist/actions/list-accounts.cjs.map +1 -0
- package/dist/actions/list-accounts.d.cts +9 -0
- package/dist/actions/list-accounts.d.cts.map +1 -0
- package/dist/actions/list-accounts.d.mts +9 -0
- package/dist/actions/list-accounts.d.mts.map +1 -0
- package/dist/actions/list-accounts.mjs +52 -0
- package/dist/actions/list-accounts.mjs.map +1 -0
- package/dist/actions/list-agencies.cjs +16 -0
- package/dist/actions/list-agencies.cjs.map +1 -0
- package/dist/actions/list-agencies.d.cts +9 -0
- package/dist/actions/list-agencies.d.cts.map +1 -0
- package/dist/actions/list-agencies.d.mts +9 -0
- package/dist/actions/list-agencies.d.mts.map +1 -0
- package/dist/actions/list-agencies.mjs +13 -0
- package/dist/actions/list-agencies.mjs.map +1 -0
- package/dist/actions/list-automations.cjs +63 -0
- package/dist/actions/list-automations.cjs.map +1 -0
- package/dist/actions/list-automations.d.cts +9 -0
- package/dist/actions/list-automations.d.cts.map +1 -0
- package/dist/actions/list-automations.d.mts +9 -0
- package/dist/actions/list-automations.d.mts.map +1 -0
- package/dist/actions/list-automations.mjs +62 -0
- package/dist/actions/list-automations.mjs.map +1 -0
- package/dist/actions/list-campaigns.cjs +57 -0
- package/dist/actions/list-campaigns.cjs.map +1 -0
- package/dist/actions/list-campaigns.d.cts +9 -0
- package/dist/actions/list-campaigns.d.cts.map +1 -0
- package/dist/actions/list-campaigns.d.mts +9 -0
- package/dist/actions/list-campaigns.d.mts.map +1 -0
- package/dist/actions/list-campaigns.mjs +56 -0
- package/dist/actions/list-campaigns.mjs.map +1 -0
- package/dist/actions/list-contacts.cjs +66 -0
- package/dist/actions/list-contacts.cjs.map +1 -0
- package/dist/actions/list-contacts.d.cts +9 -0
- package/dist/actions/list-contacts.d.cts.map +1 -0
- package/dist/actions/list-contacts.d.mts +9 -0
- package/dist/actions/list-contacts.d.mts.map +1 -0
- package/dist/actions/list-contacts.mjs +65 -0
- package/dist/actions/list-contacts.mjs.map +1 -0
- package/dist/actions/list-custom-fields.cjs +27 -0
- package/dist/actions/list-custom-fields.cjs.map +1 -0
- package/dist/actions/list-custom-fields.d.cts +9 -0
- package/dist/actions/list-custom-fields.d.cts.map +1 -0
- package/dist/actions/list-custom-fields.d.mts +9 -0
- package/dist/actions/list-custom-fields.d.mts.map +1 -0
- package/dist/actions/list-custom-fields.mjs +26 -0
- package/dist/actions/list-custom-fields.mjs.map +1 -0
- package/dist/actions/list-lists.cjs +32 -0
- package/dist/actions/list-lists.cjs.map +1 -0
- package/dist/actions/list-lists.d.cts +9 -0
- package/dist/actions/list-lists.d.cts.map +1 -0
- package/dist/actions/list-lists.d.mts +9 -0
- package/dist/actions/list-lists.d.mts.map +1 -0
- package/dist/actions/list-lists.mjs +31 -0
- package/dist/actions/list-lists.mjs.map +1 -0
- package/dist/actions/list-media.cjs +34 -0
- package/dist/actions/list-media.cjs.map +1 -0
- package/dist/actions/list-media.d.cts +9 -0
- package/dist/actions/list-media.d.cts.map +1 -0
- package/dist/actions/list-media.d.mts +9 -0
- package/dist/actions/list-media.d.mts.map +1 -0
- package/dist/actions/list-media.mjs +33 -0
- package/dist/actions/list-media.mjs.map +1 -0
- package/dist/actions/list-partners.cjs +16 -0
- package/dist/actions/list-partners.cjs.map +1 -0
- package/dist/actions/list-partners.d.cts +9 -0
- package/dist/actions/list-partners.d.cts.map +1 -0
- package/dist/actions/list-partners.d.mts +9 -0
- package/dist/actions/list-partners.d.mts.map +1 -0
- package/dist/actions/list-partners.mjs +13 -0
- package/dist/actions/list-partners.mjs.map +1 -0
- package/dist/actions/list-reports.cjs +43 -0
- package/dist/actions/list-reports.cjs.map +1 -0
- package/dist/actions/list-reports.d.cts +9 -0
- package/dist/actions/list-reports.d.cts.map +1 -0
- package/dist/actions/list-reports.d.mts +9 -0
- package/dist/actions/list-reports.d.mts.map +1 -0
- package/dist/actions/list-reports.mjs +42 -0
- package/dist/actions/list-reports.mjs.map +1 -0
- package/dist/actions/list-roles.cjs +38 -0
- package/dist/actions/list-roles.cjs.map +1 -0
- package/dist/actions/list-roles.d.cts +9 -0
- package/dist/actions/list-roles.d.cts.map +1 -0
- package/dist/actions/list-roles.d.mts +9 -0
- package/dist/actions/list-roles.d.mts.map +1 -0
- package/dist/actions/list-roles.mjs +37 -0
- package/dist/actions/list-roles.mjs.map +1 -0
- package/dist/actions/list-tags.cjs +27 -0
- package/dist/actions/list-tags.cjs.map +1 -0
- package/dist/actions/list-tags.d.cts +9 -0
- package/dist/actions/list-tags.d.cts.map +1 -0
- package/dist/actions/list-tags.d.mts +9 -0
- package/dist/actions/list-tags.d.mts.map +1 -0
- package/dist/actions/list-tags.mjs +26 -0
- package/dist/actions/list-tags.mjs.map +1 -0
- package/dist/actions/list-templates.cjs +57 -0
- package/dist/actions/list-templates.cjs.map +1 -0
- package/dist/actions/list-templates.d.cts +9 -0
- package/dist/actions/list-templates.d.cts.map +1 -0
- package/dist/actions/list-templates.d.mts +9 -0
- package/dist/actions/list-templates.d.mts.map +1 -0
- package/dist/actions/list-templates.mjs +56 -0
- package/dist/actions/list-templates.mjs.map +1 -0
- package/dist/actions/list-tickets.cjs +64 -0
- package/dist/actions/list-tickets.cjs.map +1 -0
- package/dist/actions/list-tickets.d.cts +9 -0
- package/dist/actions/list-tickets.d.cts.map +1 -0
- package/dist/actions/list-tickets.d.mts +9 -0
- package/dist/actions/list-tickets.d.mts.map +1 -0
- package/dist/actions/list-tickets.mjs +63 -0
- package/dist/actions/list-tickets.mjs.map +1 -0
- package/dist/actions/remove-all-list-contacts.cjs +16 -0
- package/dist/actions/remove-all-list-contacts.cjs.map +1 -0
- package/dist/actions/remove-all-list-contacts.d.cts +9 -0
- package/dist/actions/remove-all-list-contacts.d.cts.map +1 -0
- package/dist/actions/remove-all-list-contacts.d.mts +9 -0
- package/dist/actions/remove-all-list-contacts.d.mts.map +1 -0
- package/dist/actions/remove-all-list-contacts.mjs +13 -0
- package/dist/actions/remove-all-list-contacts.mjs.map +1 -0
- package/dist/actions/remove-contact-operator.cjs +19 -0
- package/dist/actions/remove-contact-operator.cjs.map +1 -0
- package/dist/actions/remove-contact-operator.d.cts +9 -0
- package/dist/actions/remove-contact-operator.d.cts.map +1 -0
- package/dist/actions/remove-contact-operator.d.mts +9 -0
- package/dist/actions/remove-contact-operator.d.mts.map +1 -0
- package/dist/actions/remove-contact-operator.mjs +16 -0
- package/dist/actions/remove-contact-operator.mjs.map +1 -0
- package/dist/actions/remove-list-contacts.cjs +19 -0
- package/dist/actions/remove-list-contacts.cjs.map +1 -0
- package/dist/actions/remove-list-contacts.d.cts +9 -0
- package/dist/actions/remove-list-contacts.d.cts.map +1 -0
- package/dist/actions/remove-list-contacts.d.mts +9 -0
- package/dist/actions/remove-list-contacts.d.mts.map +1 -0
- package/dist/actions/remove-list-contacts.mjs +16 -0
- package/dist/actions/remove-list-contacts.mjs.map +1 -0
- package/dist/actions/resend-invitation.cjs +19 -0
- package/dist/actions/resend-invitation.cjs.map +1 -0
- package/dist/actions/resend-invitation.d.cts +9 -0
- package/dist/actions/resend-invitation.d.cts.map +1 -0
- package/dist/actions/resend-invitation.d.mts +9 -0
- package/dist/actions/resend-invitation.d.mts.map +1 -0
- package/dist/actions/resend-invitation.mjs +16 -0
- package/dist/actions/resend-invitation.mjs.map +1 -0
- package/dist/actions/retrieve-account.cjs +44 -0
- package/dist/actions/retrieve-account.cjs.map +1 -0
- package/dist/actions/retrieve-account.d.cts +9 -0
- package/dist/actions/retrieve-account.d.cts.map +1 -0
- package/dist/actions/retrieve-account.d.mts +9 -0
- package/dist/actions/retrieve-account.d.mts.map +1 -0
- package/dist/actions/retrieve-account.mjs +41 -0
- package/dist/actions/retrieve-account.mjs.map +1 -0
- package/dist/actions/retrieve-automation.cjs +33 -0
- package/dist/actions/retrieve-automation.cjs.map +1 -0
- package/dist/actions/retrieve-automation.d.cts +9 -0
- package/dist/actions/retrieve-automation.d.cts.map +1 -0
- package/dist/actions/retrieve-automation.d.mts +9 -0
- package/dist/actions/retrieve-automation.d.mts.map +1 -0
- package/dist/actions/retrieve-automation.mjs +32 -0
- package/dist/actions/retrieve-automation.mjs.map +1 -0
- package/dist/actions/retrieve-contact.cjs +58 -0
- package/dist/actions/retrieve-contact.cjs.map +1 -0
- package/dist/actions/retrieve-contact.d.cts +9 -0
- package/dist/actions/retrieve-contact.d.cts.map +1 -0
- package/dist/actions/retrieve-contact.d.mts +9 -0
- package/dist/actions/retrieve-contact.d.mts.map +1 -0
- package/dist/actions/retrieve-contact.mjs +57 -0
- package/dist/actions/retrieve-contact.mjs.map +1 -0
- package/dist/actions/retrieve-custom-field.cjs +27 -0
- package/dist/actions/retrieve-custom-field.cjs.map +1 -0
- package/dist/actions/retrieve-custom-field.d.cts +9 -0
- package/dist/actions/retrieve-custom-field.d.cts.map +1 -0
- package/dist/actions/retrieve-custom-field.d.mts +9 -0
- package/dist/actions/retrieve-custom-field.d.mts.map +1 -0
- package/dist/actions/retrieve-custom-field.mjs +24 -0
- package/dist/actions/retrieve-custom-field.mjs.map +1 -0
- package/dist/actions/retrieve-list.cjs +22 -0
- package/dist/actions/retrieve-list.cjs.map +1 -0
- package/dist/actions/retrieve-list.d.cts +9 -0
- package/dist/actions/retrieve-list.d.cts.map +1 -0
- package/dist/actions/retrieve-list.d.mts +9 -0
- package/dist/actions/retrieve-list.d.mts.map +1 -0
- package/dist/actions/retrieve-list.mjs +19 -0
- package/dist/actions/retrieve-list.mjs.map +1 -0
- package/dist/actions/retrieve-media.cjs +25 -0
- package/dist/actions/retrieve-media.cjs.map +1 -0
- package/dist/actions/retrieve-media.d.cts +9 -0
- package/dist/actions/retrieve-media.d.cts.map +1 -0
- package/dist/actions/retrieve-media.d.mts +9 -0
- package/dist/actions/retrieve-media.d.mts.map +1 -0
- package/dist/actions/retrieve-media.mjs +22 -0
- package/dist/actions/retrieve-media.mjs.map +1 -0
- package/dist/actions/retrieve-role.cjs +32 -0
- package/dist/actions/retrieve-role.cjs.map +1 -0
- package/dist/actions/retrieve-role.d.cts +9 -0
- package/dist/actions/retrieve-role.d.cts.map +1 -0
- package/dist/actions/retrieve-role.d.mts +9 -0
- package/dist/actions/retrieve-role.d.mts.map +1 -0
- package/dist/actions/retrieve-role.mjs +31 -0
- package/dist/actions/retrieve-role.mjs.map +1 -0
- package/dist/actions/retrieve-tag.cjs +21 -0
- package/dist/actions/retrieve-tag.cjs.map +1 -0
- package/dist/actions/retrieve-tag.d.cts +9 -0
- package/dist/actions/retrieve-tag.d.cts.map +1 -0
- package/dist/actions/retrieve-tag.d.mts +9 -0
- package/dist/actions/retrieve-tag.d.mts.map +1 -0
- package/dist/actions/retrieve-tag.mjs +18 -0
- package/dist/actions/retrieve-tag.mjs.map +1 -0
- package/dist/actions/retrieve-template.cjs +50 -0
- package/dist/actions/retrieve-template.cjs.map +1 -0
- package/dist/actions/retrieve-template.d.cts +9 -0
- package/dist/actions/retrieve-template.d.cts.map +1 -0
- package/dist/actions/retrieve-template.d.mts +9 -0
- package/dist/actions/retrieve-template.d.mts.map +1 -0
- package/dist/actions/retrieve-template.mjs +49 -0
- package/dist/actions/retrieve-template.mjs.map +1 -0
- package/dist/actions/revert-template-to-draft.cjs +16 -0
- package/dist/actions/revert-template-to-draft.cjs.map +1 -0
- package/dist/actions/revert-template-to-draft.d.cts +9 -0
- package/dist/actions/revert-template-to-draft.d.cts.map +1 -0
- package/dist/actions/revert-template-to-draft.d.mts +9 -0
- package/dist/actions/revert-template-to-draft.d.mts.map +1 -0
- package/dist/actions/revert-template-to-draft.mjs +13 -0
- package/dist/actions/revert-template-to-draft.mjs.map +1 -0
- package/dist/actions/sync-contacts-bulk.cjs +44 -0
- package/dist/actions/sync-contacts-bulk.cjs.map +1 -0
- package/dist/actions/sync-contacts-bulk.d.cts +9 -0
- package/dist/actions/sync-contacts-bulk.d.cts.map +1 -0
- package/dist/actions/sync-contacts-bulk.d.mts +9 -0
- package/dist/actions/sync-contacts-bulk.d.mts.map +1 -0
- package/dist/actions/sync-contacts-bulk.mjs +43 -0
- package/dist/actions/sync-contacts-bulk.mjs.map +1 -0
- package/dist/actions/sync-list-contacts.cjs +26 -0
- package/dist/actions/sync-list-contacts.cjs.map +1 -0
- package/dist/actions/sync-list-contacts.d.cts +9 -0
- package/dist/actions/sync-list-contacts.d.cts.map +1 -0
- package/dist/actions/sync-list-contacts.d.mts +9 -0
- package/dist/actions/sync-list-contacts.d.mts.map +1 -0
- package/dist/actions/sync-list-contacts.mjs +23 -0
- package/dist/actions/sync-list-contacts.mjs.map +1 -0
- package/dist/actions/update-campaign.cjs +27 -0
- package/dist/actions/update-campaign.cjs.map +1 -0
- package/dist/actions/update-campaign.d.cts +9 -0
- package/dist/actions/update-campaign.d.cts.map +1 -0
- package/dist/actions/update-campaign.d.mts +9 -0
- package/dist/actions/update-campaign.d.mts.map +1 -0
- package/dist/actions/update-campaign.mjs +24 -0
- package/dist/actions/update-campaign.mjs.map +1 -0
- package/dist/actions/update-contact.cjs +37 -0
- package/dist/actions/update-contact.cjs.map +1 -0
- package/dist/actions/update-contact.d.cts +9 -0
- package/dist/actions/update-contact.d.cts.map +1 -0
- package/dist/actions/update-contact.d.mts +9 -0
- package/dist/actions/update-contact.d.mts.map +1 -0
- package/dist/actions/update-contact.mjs +34 -0
- package/dist/actions/update-contact.mjs.map +1 -0
- package/dist/actions/update-custom-field.cjs +30 -0
- package/dist/actions/update-custom-field.cjs.map +1 -0
- package/dist/actions/update-custom-field.d.cts +9 -0
- package/dist/actions/update-custom-field.d.cts.map +1 -0
- package/dist/actions/update-custom-field.d.mts +9 -0
- package/dist/actions/update-custom-field.d.mts.map +1 -0
- package/dist/actions/update-custom-field.mjs +27 -0
- package/dist/actions/update-custom-field.mjs.map +1 -0
- package/dist/actions/update-invitation-role.cjs +24 -0
- package/dist/actions/update-invitation-role.cjs.map +1 -0
- package/dist/actions/update-invitation-role.d.cts +9 -0
- package/dist/actions/update-invitation-role.d.cts.map +1 -0
- package/dist/actions/update-invitation-role.d.mts +9 -0
- package/dist/actions/update-invitation-role.d.mts.map +1 -0
- package/dist/actions/update-invitation-role.mjs +21 -0
- package/dist/actions/update-invitation-role.mjs.map +1 -0
- package/dist/actions/update-media.cjs +28 -0
- package/dist/actions/update-media.cjs.map +1 -0
- package/dist/actions/update-media.d.cts +9 -0
- package/dist/actions/update-media.d.cts.map +1 -0
- package/dist/actions/update-media.d.mts +9 -0
- package/dist/actions/update-media.d.mts.map +1 -0
- package/dist/actions/update-media.mjs +25 -0
- package/dist/actions/update-media.mjs.map +1 -0
- package/dist/actions/update-role.cjs +23 -0
- package/dist/actions/update-role.cjs.map +1 -0
- package/dist/actions/update-role.d.cts +9 -0
- package/dist/actions/update-role.d.cts.map +1 -0
- package/dist/actions/update-role.d.mts +9 -0
- package/dist/actions/update-role.d.mts.map +1 -0
- package/dist/actions/update-role.mjs +20 -0
- package/dist/actions/update-role.mjs.map +1 -0
- package/dist/actions/update-template.cjs +64 -0
- package/dist/actions/update-template.cjs.map +1 -0
- package/dist/actions/update-template.d.cts +9 -0
- package/dist/actions/update-template.d.cts.map +1 -0
- package/dist/actions/update-template.d.mts +9 -0
- package/dist/actions/update-template.d.mts.map +1 -0
- package/dist/actions/update-template.mjs +63 -0
- package/dist/actions/update-template.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +120 -0
- package/dist/index.d.cts +60 -0
- package/dist/index.d.mts +60 -0
- package/dist/index.mjs +61 -0
- package/package.json +49 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const spokiRemoveListContacts = action("SPOKI_REMOVE_LIST_CONTACTS", {
|
|
4
|
+
slug: "spoki-remove-list-contacts",
|
|
5
|
+
name: "Remove Contacts from List",
|
|
6
|
+
description: "Tool to remove specific contacts from a list. Use when you need to unsubscribe or remove multiple contacts from a particular list. Rate limit: 5 requests per minute.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
list_id: z.number().int().describe("The ID of the list from which contacts should be removed"),
|
|
9
|
+
contacts: z.array(z.number().int()).describe("Array of contact IDs to remove from the list. Each ID must be a valid contact identifier")
|
|
10
|
+
}).describe("Request parameters for removing specific contacts from a list."),
|
|
11
|
+
output: z.object({ success: z.boolean().default(true).describe("Indicates whether the contacts were successfully removed from the list").nullable().optional() }).describe("Response from removing contacts from a list. Returns success status.")
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { spokiRemoveListContacts };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=remove-list-contacts.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-list-contacts.mjs","names":[],"sources":["../../src/actions/remove-list-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiRemoveListContactsInput: z.ZodTypeAny = z.object({\n list_id: z.number().int().describe(\"The ID of the list from which contacts should be removed\"),\n contacts: z.array(z.number().int()).describe(\"Array of contact IDs to remove from the list. Each ID must be a valid contact identifier\"),\n}).describe(\"Request parameters for removing specific contacts from a list.\");\nexport const SpokiRemoveListContactsOutput: z.ZodTypeAny = z.object({\n success: z.boolean().default(true).describe(\"Indicates whether the contacts were successfully removed from the list\").nullable().optional(),\n}).describe(\"Response from removing contacts from a list. Returns success status.\");\n\nexport const spokiRemoveListContacts = action(\"SPOKI_REMOVE_LIST_CONTACTS\", {\n slug: \"spoki-remove-list-contacts\",\n name: \"Remove Contacts from List\",\n description: \"Tool to remove specific contacts from a list. Use when you need to unsubscribe or remove multiple contacts from a particular list. Rate limit: 5 requests per minute.\",\n input: SpokiRemoveListContactsInput,\n output: SpokiRemoveListContactsOutput,\n});\n"],"mappings":";;AAYA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZwD,EAAE,OAAO;EACjE,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D;EAC7F,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,0FAA0F;CACzI,CAAC,CAAC,CAAC,SAAS,gEASH;CACP,QATyD,EAAE,OAAO,EAClE,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC5I,CAAC,CAAC,CAAC,SAAS,sEAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/resend-invitation.ts
|
|
4
|
+
const SpokiResendInvitationInput = zod.z.object({ id: zod.z.number().int().describe("The invitation ID to resend") }).describe("Request parameters for resending an invitation email.");
|
|
5
|
+
const SpokiResendInvitationOutput = zod.z.object({
|
|
6
|
+
message: zod.z.string().describe("Message from the API about the resend operation").nullable().optional(),
|
|
7
|
+
success: zod.z.boolean().describe("Indicates whether the invitation was successfully resent").nullable().optional()
|
|
8
|
+
}).describe("Response from resending an invitation email. API returns success confirmation.");
|
|
9
|
+
const spokiResendInvitation = require_action.action("SPOKI_RESEND_INVITATION", {
|
|
10
|
+
slug: "spoki-resend-invitation",
|
|
11
|
+
name: "Resend Invitation",
|
|
12
|
+
description: "Tool to resend an invitation email. Use when you need to resend an existing invitation. Rate limit: 5 requests per minute.",
|
|
13
|
+
input: SpokiResendInvitationInput,
|
|
14
|
+
output: SpokiResendInvitationOutput
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.spokiResendInvitation = spokiResendInvitation;
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=resend-invitation.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resend-invitation.cjs","names":["z","action"],"sources":["../../src/actions/resend-invitation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiResendInvitationInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The invitation ID to resend\"),\n}).describe(\"Request parameters for resending an invitation email.\");\nexport const SpokiResendInvitationOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Message from the API about the resend operation\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the invitation was successfully resent\").nullable().optional(),\n}).describe(\"Response from resending an invitation email. API returns success confirmation.\");\n\nexport const spokiResendInvitation = action(\"SPOKI_RESEND_INVITATION\", {\n slug: \"spoki-resend-invitation\",\n name: \"Resend Invitation\",\n description: \"Tool to resend an invitation email. Use when you need to resend an existing invitation. Rate limit: 5 requests per minute.\",\n input: SpokiResendInvitationInput,\n output: SpokiResendInvitationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,EAC7D,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAE5F,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/resend-invitation.d.ts
|
|
4
|
+
declare const SpokiResendInvitationInput: z.ZodTypeAny;
|
|
5
|
+
declare const SpokiResendInvitationOutput: z.ZodTypeAny;
|
|
6
|
+
declare const spokiResendInvitation: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { spokiResendInvitation };
|
|
9
|
+
//# sourceMappingURL=resend-invitation.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resend-invitation.d.cts","names":[],"sources":["../../src/actions/resend-invitation.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAEyB;AAAA,cACvD,2BAAA,EAA6B,CAAA,CAAE,UAGiD;AAAA,cAEhF,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/resend-invitation.d.ts
|
|
4
|
+
declare const SpokiResendInvitationInput: z.ZodTypeAny;
|
|
5
|
+
declare const SpokiResendInvitationOutput: z.ZodTypeAny;
|
|
6
|
+
declare const spokiResendInvitation: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { spokiResendInvitation };
|
|
9
|
+
//# sourceMappingURL=resend-invitation.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resend-invitation.d.mts","names":[],"sources":["../../src/actions/resend-invitation.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAEyB;AAAA,cACvD,2BAAA,EAA6B,CAAA,CAAE,UAGiD;AAAA,cAEhF,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const spokiResendInvitation = action("SPOKI_RESEND_INVITATION", {
|
|
4
|
+
slug: "spoki-resend-invitation",
|
|
5
|
+
name: "Resend Invitation",
|
|
6
|
+
description: "Tool to resend an invitation email. Use when you need to resend an existing invitation. Rate limit: 5 requests per minute.",
|
|
7
|
+
input: z.object({ id: z.number().int().describe("The invitation ID to resend") }).describe("Request parameters for resending an invitation email."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
message: z.string().describe("Message from the API about the resend operation").nullable().optional(),
|
|
10
|
+
success: z.boolean().describe("Indicates whether the invitation was successfully resent").nullable().optional()
|
|
11
|
+
}).describe("Response from resending an invitation email. API returns success confirmation.")
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { spokiResendInvitation };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=resend-invitation.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resend-invitation.mjs","names":[],"sources":["../../src/actions/resend-invitation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiResendInvitationInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The invitation ID to resend\"),\n}).describe(\"Request parameters for resending an invitation email.\");\nexport const SpokiResendInvitationOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Message from the API about the resend operation\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the invitation was successfully resent\").nullable().optional(),\n}).describe(\"Response from resending an invitation email. API returns success confirmation.\");\n\nexport const spokiResendInvitation = action(\"SPOKI_RESEND_INVITATION\", {\n slug: \"spoki-resend-invitation\",\n name: \"Resend Invitation\",\n description: \"Tool to resend an invitation email. Use when you need to resend an existing invitation. Rate limit: 5 requests per minute.\",\n input: SpokiResendInvitationInput,\n output: SpokiResendInvitationOutput,\n});\n"],"mappings":";;AAYA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZsD,EAAE,OAAO,EAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,EAC7D,CAAC,CAAC,CAAC,SAAS,uDAUH;CACP,QAVuD,EAAE,OAAO;EAChE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,CAAC,CAAC,CAAC,SAAS,gFAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/retrieve-account.ts
|
|
4
|
+
const SpokiRetrieveAccountInput = zod.z.object({ account_id: zod.z.number().int().describe("The unique identifier of the Spoki account to retrieve. Must be a valid account ID accessible to the authenticated user.") }).describe("Request model for retrieving a specific Spoki account.");
|
|
5
|
+
const SpokiRetrieveAccountOutput = zod.z.object({
|
|
6
|
+
id: zod.z.number().int().describe("Unique account identifier"),
|
|
7
|
+
name: zod.z.string().describe("Name of the account"),
|
|
8
|
+
phone: zod.z.string().describe("Associated phone number"),
|
|
9
|
+
status: zod.z.string().describe("Account status"),
|
|
10
|
+
timezone: zod.z.string().describe("Timezone of the account"),
|
|
11
|
+
is_active: zod.z.boolean().describe("Whether the account is active"),
|
|
12
|
+
daily_limit: zod.z.number().int().describe("Daily message limit"),
|
|
13
|
+
account_type: zod.z.number().int().describe("Account type: 1=Sandbox, 2=Standard, 4=Agency"),
|
|
14
|
+
country_code: zod.z.string().describe("Country code of the account"),
|
|
15
|
+
phone_status: zod.z.string().describe("Phone status"),
|
|
16
|
+
quality_score: zod.z.number().int().describe("Quality score of the account"),
|
|
17
|
+
current_credit: zod.z.number().int().describe("Current credit balance"),
|
|
18
|
+
default_prefix: zod.z.string().describe("Default phone prefix"),
|
|
19
|
+
contacted_in_7d: zod.z.number().int().describe("Number of contacts contacted in last 7 days"),
|
|
20
|
+
quality_reasons: zod.z.string().describe("Reasons for the quality score").nullable().optional(),
|
|
21
|
+
contacted_in_24h: zod.z.number().int().describe("Number of contacts contacted in last 24 hours"),
|
|
22
|
+
default_language: zod.z.string().describe("Default language"),
|
|
23
|
+
facebook_pixel_id: zod.z.string().describe("Facebook Pixel ID if configured").nullable().optional(),
|
|
24
|
+
default_country_code: zod.z.string().describe("Default country code"),
|
|
25
|
+
has_low_credit_alert: zod.z.boolean().describe("Whether low credit alert is enabled"),
|
|
26
|
+
low_credit_threshold: zod.z.number().int().describe("Low credit threshold"),
|
|
27
|
+
default_pricing_delta: zod.z.number().int().describe("Default pricing delta"),
|
|
28
|
+
facebook_test_event_code: zod.z.string().describe("Facebook test event code if configured").nullable().optional(),
|
|
29
|
+
has_official_verification: zod.z.boolean().describe("Whether the account has official WhatsApp verification"),
|
|
30
|
+
facebook_conversions_api_token: zod.z.string().describe("Facebook Conversions API token if configured").nullable().optional(),
|
|
31
|
+
facebook_conversions_api_enabled: zod.z.boolean().default(false).describe("Whether Facebook Conversions API is enabled").nullable().optional(),
|
|
32
|
+
estimated_available_conversations: zod.z.number().int().describe("Estimated available conversations")
|
|
33
|
+
}).describe("Response model for a Spoki account.");
|
|
34
|
+
const spokiRetrieveAccount = require_action.action("SPOKI_RETRIEVE_ACCOUNT", {
|
|
35
|
+
slug: "spoki-retrieve-account",
|
|
36
|
+
name: "Retrieve Account",
|
|
37
|
+
description: "Retrieves detailed information about a specific Spoki WhatsApp Business account. Returns comprehensive account details including credit balance, verification status, messaging limits, quality metrics, timezone settings, and Facebook integration configuration. Use this action when you need to check account status, credit levels, or configuration details. Note: You must have access permissions for the specified account ID.",
|
|
38
|
+
input: SpokiRetrieveAccountInput,
|
|
39
|
+
output: SpokiRetrieveAccountOutput
|
|
40
|
+
});
|
|
41
|
+
//#endregion
|
|
42
|
+
exports.spokiRetrieveAccount = spokiRetrieveAccount;
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=retrieve-account.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-account.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiRetrieveAccountInput: z.ZodTypeAny = z.object({\n account_id: z.number().int().describe(\"The unique identifier of the Spoki account to retrieve. Must be a valid account ID accessible to the authenticated user.\"),\n}).describe(\"Request model for retrieving a specific Spoki account.\");\nexport const SpokiRetrieveAccountOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique account identifier\"),\n name: z.string().describe(\"Name of the account\"),\n phone: z.string().describe(\"Associated phone number\"),\n status: z.string().describe(\"Account status\"),\n timezone: z.string().describe(\"Timezone of the account\"),\n is_active: z.boolean().describe(\"Whether the account is active\"),\n daily_limit: z.number().int().describe(\"Daily message limit\"),\n account_type: z.number().int().describe(\"Account type: 1=Sandbox, 2=Standard, 4=Agency\"),\n country_code: z.string().describe(\"Country code of the account\"),\n phone_status: z.string().describe(\"Phone status\"),\n quality_score: z.number().int().describe(\"Quality score of the account\"),\n current_credit: z.number().int().describe(\"Current credit balance\"),\n default_prefix: z.string().describe(\"Default phone prefix\"),\n contacted_in_7d: z.number().int().describe(\"Number of contacts contacted in last 7 days\"),\n quality_reasons: z.string().describe(\"Reasons for the quality score\").nullable().optional(),\n contacted_in_24h: z.number().int().describe(\"Number of contacts contacted in last 24 hours\"),\n default_language: z.string().describe(\"Default language\"),\n facebook_pixel_id: z.string().describe(\"Facebook Pixel ID if configured\").nullable().optional(),\n default_country_code: z.string().describe(\"Default country code\"),\n has_low_credit_alert: z.boolean().describe(\"Whether low credit alert is enabled\"),\n low_credit_threshold: z.number().int().describe(\"Low credit threshold\"),\n default_pricing_delta: z.number().int().describe(\"Default pricing delta\"),\n facebook_test_event_code: z.string().describe(\"Facebook test event code if configured\").nullable().optional(),\n has_official_verification: z.boolean().describe(\"Whether the account has official WhatsApp verification\"),\n facebook_conversions_api_token: z.string().describe(\"Facebook Conversions API token if configured\").nullable().optional(),\n facebook_conversions_api_enabled: z.boolean().default(false).describe(\"Whether Facebook Conversions API is enabled\").nullable().optional(),\n estimated_available_conversations: z.number().int().describe(\"Estimated available conversations\"),\n}).describe(\"Response model for a Spoki account.\");\n\nexport const spokiRetrieveAccount = action(\"SPOKI_RETRIEVE_ACCOUNT\", {\n slug: \"spoki-retrieve-account\",\n name: \"Retrieve Account\",\n description: \"Retrieves detailed information about a specific Spoki WhatsApp Business account. Returns comprehensive account details including credit balance, verification status, messaging limits, quality metrics, timezone settings, and Facebook integration configuration. Use this action when you need to check account status, credit levels, or configuration details. Note: You must have access permissions for the specified account ID.\",\n input: SpokiRetrieveAccountInput,\n output: SpokiRetrieveAccountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0HAA0H,EAClK,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;CAC5C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACvD,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B;CAC/D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB;CAC5D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C;CACvF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CAC/D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;CAChD,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B;CACvE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB;CAClE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAC1D,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI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,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/retrieve-account.d.ts
|
|
4
|
+
declare const SpokiRetrieveAccountInput: z.ZodTypeAny;
|
|
5
|
+
declare const SpokiRetrieveAccountOutput: z.ZodTypeAny;
|
|
6
|
+
declare const spokiRetrieveAccount: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { spokiRetrieveAccount };
|
|
9
|
+
//# sourceMappingURL=retrieve-account.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-account.d.cts","names":[],"sources":["../../src/actions/retrieve-account.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAE2B;AAAA,cACxD,0BAAA,EAA4B,CAAA,CAAE,UA4BO;AAAA,cAErC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/retrieve-account.d.ts
|
|
4
|
+
declare const SpokiRetrieveAccountInput: z.ZodTypeAny;
|
|
5
|
+
declare const SpokiRetrieveAccountOutput: z.ZodTypeAny;
|
|
6
|
+
declare const spokiRetrieveAccount: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { spokiRetrieveAccount };
|
|
9
|
+
//# sourceMappingURL=retrieve-account.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-account.d.mts","names":[],"sources":["../../src/actions/retrieve-account.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAE2B;AAAA,cACxD,0BAAA,EAA4B,CAAA,CAAE,UA4BO;AAAA,cAErC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const spokiRetrieveAccount = action("SPOKI_RETRIEVE_ACCOUNT", {
|
|
4
|
+
slug: "spoki-retrieve-account",
|
|
5
|
+
name: "Retrieve Account",
|
|
6
|
+
description: "Retrieves detailed information about a specific Spoki WhatsApp Business account. Returns comprehensive account details including credit balance, verification status, messaging limits, quality metrics, timezone settings, and Facebook integration configuration. Use this action when you need to check account status, credit levels, or configuration details. Note: You must have access permissions for the specified account ID.",
|
|
7
|
+
input: z.object({ account_id: z.number().int().describe("The unique identifier of the Spoki account to retrieve. Must be a valid account ID accessible to the authenticated user.") }).describe("Request model for retrieving a specific Spoki account."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
id: z.number().int().describe("Unique account identifier"),
|
|
10
|
+
name: z.string().describe("Name of the account"),
|
|
11
|
+
phone: z.string().describe("Associated phone number"),
|
|
12
|
+
status: z.string().describe("Account status"),
|
|
13
|
+
timezone: z.string().describe("Timezone of the account"),
|
|
14
|
+
is_active: z.boolean().describe("Whether the account is active"),
|
|
15
|
+
daily_limit: z.number().int().describe("Daily message limit"),
|
|
16
|
+
account_type: z.number().int().describe("Account type: 1=Sandbox, 2=Standard, 4=Agency"),
|
|
17
|
+
country_code: z.string().describe("Country code of the account"),
|
|
18
|
+
phone_status: z.string().describe("Phone status"),
|
|
19
|
+
quality_score: z.number().int().describe("Quality score of the account"),
|
|
20
|
+
current_credit: z.number().int().describe("Current credit balance"),
|
|
21
|
+
default_prefix: z.string().describe("Default phone prefix"),
|
|
22
|
+
contacted_in_7d: z.number().int().describe("Number of contacts contacted in last 7 days"),
|
|
23
|
+
quality_reasons: z.string().describe("Reasons for the quality score").nullable().optional(),
|
|
24
|
+
contacted_in_24h: z.number().int().describe("Number of contacts contacted in last 24 hours"),
|
|
25
|
+
default_language: z.string().describe("Default language"),
|
|
26
|
+
facebook_pixel_id: z.string().describe("Facebook Pixel ID if configured").nullable().optional(),
|
|
27
|
+
default_country_code: z.string().describe("Default country code"),
|
|
28
|
+
has_low_credit_alert: z.boolean().describe("Whether low credit alert is enabled"),
|
|
29
|
+
low_credit_threshold: z.number().int().describe("Low credit threshold"),
|
|
30
|
+
default_pricing_delta: z.number().int().describe("Default pricing delta"),
|
|
31
|
+
facebook_test_event_code: z.string().describe("Facebook test event code if configured").nullable().optional(),
|
|
32
|
+
has_official_verification: z.boolean().describe("Whether the account has official WhatsApp verification"),
|
|
33
|
+
facebook_conversions_api_token: z.string().describe("Facebook Conversions API token if configured").nullable().optional(),
|
|
34
|
+
facebook_conversions_api_enabled: z.boolean().default(false).describe("Whether Facebook Conversions API is enabled").nullable().optional(),
|
|
35
|
+
estimated_available_conversations: z.number().int().describe("Estimated available conversations")
|
|
36
|
+
}).describe("Response model for a Spoki account.")
|
|
37
|
+
});
|
|
38
|
+
//#endregion
|
|
39
|
+
export { spokiRetrieveAccount };
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=retrieve-account.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-account.mjs","names":[],"sources":["../../src/actions/retrieve-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiRetrieveAccountInput: z.ZodTypeAny = z.object({\n account_id: z.number().int().describe(\"The unique identifier of the Spoki account to retrieve. Must be a valid account ID accessible to the authenticated user.\"),\n}).describe(\"Request model for retrieving a specific Spoki account.\");\nexport const SpokiRetrieveAccountOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique account identifier\"),\n name: z.string().describe(\"Name of the account\"),\n phone: z.string().describe(\"Associated phone number\"),\n status: z.string().describe(\"Account status\"),\n timezone: z.string().describe(\"Timezone of the account\"),\n is_active: z.boolean().describe(\"Whether the account is active\"),\n daily_limit: z.number().int().describe(\"Daily message limit\"),\n account_type: z.number().int().describe(\"Account type: 1=Sandbox, 2=Standard, 4=Agency\"),\n country_code: z.string().describe(\"Country code of the account\"),\n phone_status: z.string().describe(\"Phone status\"),\n quality_score: z.number().int().describe(\"Quality score of the account\"),\n current_credit: z.number().int().describe(\"Current credit balance\"),\n default_prefix: z.string().describe(\"Default phone prefix\"),\n contacted_in_7d: z.number().int().describe(\"Number of contacts contacted in last 7 days\"),\n quality_reasons: z.string().describe(\"Reasons for the quality score\").nullable().optional(),\n contacted_in_24h: z.number().int().describe(\"Number of contacts contacted in last 24 hours\"),\n default_language: z.string().describe(\"Default language\"),\n facebook_pixel_id: z.string().describe(\"Facebook Pixel ID if configured\").nullable().optional(),\n default_country_code: z.string().describe(\"Default country code\"),\n has_low_credit_alert: z.boolean().describe(\"Whether low credit alert is enabled\"),\n low_credit_threshold: z.number().int().describe(\"Low credit threshold\"),\n default_pricing_delta: z.number().int().describe(\"Default pricing delta\"),\n facebook_test_event_code: z.string().describe(\"Facebook test event code if configured\").nullable().optional(),\n has_official_verification: z.boolean().describe(\"Whether the account has official WhatsApp verification\"),\n facebook_conversions_api_token: z.string().describe(\"Facebook Conversions API token if configured\").nullable().optional(),\n facebook_conversions_api_enabled: z.boolean().default(false).describe(\"Whether Facebook Conversions API is enabled\").nullable().optional(),\n estimated_available_conversations: z.number().int().describe(\"Estimated available conversations\"),\n}).describe(\"Response model for a Spoki account.\");\n\nexport const spokiRetrieveAccount = action(\"SPOKI_RETRIEVE_ACCOUNT\", {\n slug: \"spoki-retrieve-account\",\n name: \"Retrieve Account\",\n description: \"Retrieves detailed information about a specific Spoki WhatsApp Business account. Returns comprehensive account details including credit balance, verification status, messaging limits, quality metrics, timezone settings, and Facebook integration configuration. Use this action when you need to check account status, credit levels, or configuration details. Note: You must have access permissions for the specified account ID.\",\n input: SpokiRetrieveAccountInput,\n output: SpokiRetrieveAccountOutput,\n});\n"],"mappings":";;AAqCA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArCqD,EAAE,OAAO,EAC9D,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0HAA0H,EAClK,CAAC,CAAC,CAAC,SAAS,wDAmCH;CACP,QAnCsD,EAAE,OAAO;EAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B;EACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;EAC/C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;EACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;EAC5C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;EACvD,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B;EAC/D,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB;EAC5D,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C;EACvF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;EAC/D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;EAChD,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B;EACvE,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB;EAClE,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAC1D,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;EACxF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C;EAC3F,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;EACxD,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAChE,sBAAsB,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC;EAChF,sBAAsB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB;EACtE,uBAAuB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB;EACxE,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,2BAA2B,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD;EACxG,gCAAgC,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,kCAAkC,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzI,mCAAmC,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC;CAClG,CAAC,CAAC,CAAC,SAAS,qCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/retrieve-automation.ts
|
|
4
|
+
const SpokiRetrieveAutomationInput = zod.z.object({ id: zod.z.number().int().describe("ID of the automation to retrieve") }).describe("Request model for retrieving a specific automation");
|
|
5
|
+
const SpokiRetrieveAutomation_AutomationWebhookSchema = zod.z.object({
|
|
6
|
+
link: zod.z.string().describe("Webhook URL"),
|
|
7
|
+
uuid: zod.z.string().describe("Webhook UUID"),
|
|
8
|
+
secret: zod.z.string().describe("Webhook secret token"),
|
|
9
|
+
is_active: zod.z.boolean().describe("Whether this webhook is active")
|
|
10
|
+
}).describe("Webhook configuration for an automation");
|
|
11
|
+
const SpokiRetrieveAutomationOutput = zod.z.object({
|
|
12
|
+
id: zod.z.number().int().describe("Automation ID"),
|
|
13
|
+
name: zod.z.string().describe("Automation name"),
|
|
14
|
+
is_active: zod.z.boolean().describe("Whether the automation is active"),
|
|
15
|
+
is_favorite: zod.z.boolean().describe("Whether the automation is marked as favorite"),
|
|
16
|
+
webhook_set: zod.z.array(SpokiRetrieveAutomation_AutomationWebhookSchema).describe("List of webhooks configured for this automation").nullable().optional(),
|
|
17
|
+
updated_user: zod.z.string().describe("User who last updated the automation").nullable().optional(),
|
|
18
|
+
created_datetime: zod.z.string().describe("Creation timestamp in ISO 8601 format"),
|
|
19
|
+
updated_datetime: zod.z.string().describe("Last updated timestamp in ISO 8601 format"),
|
|
20
|
+
automation_groups: zod.z.array(zod.z.unknown()).describe("List of automation groups this automation belongs to").nullable().optional(),
|
|
21
|
+
first_message_text: zod.z.string().describe("First message text, if any").nullable().optional()
|
|
22
|
+
}).describe("Response model for automation details");
|
|
23
|
+
const spokiRetrieveAutomation = require_action.action("SPOKI_RETRIEVE_AUTOMATION", {
|
|
24
|
+
slug: "spoki-retrieve-automation",
|
|
25
|
+
name: "Retrieve Automation",
|
|
26
|
+
description: "Tool to retrieve details of a specific automation. Use when you need name, first message, webhooks and timestamps of an existing automation.",
|
|
27
|
+
input: SpokiRetrieveAutomationInput,
|
|
28
|
+
output: SpokiRetrieveAutomationOutput
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
exports.spokiRetrieveAutomation = spokiRetrieveAutomation;
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=retrieve-automation.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-automation.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-automation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiRetrieveAutomationInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the automation to retrieve\"),\n}).describe(\"Request model for retrieving a specific automation\");\nconst SpokiRetrieveAutomation_AutomationWebhookSchema: z.ZodTypeAny = z.object({\n link: z.string().describe(\"Webhook URL\"),\n uuid: z.string().describe(\"Webhook UUID\"),\n secret: z.string().describe(\"Webhook secret token\"),\n is_active: z.boolean().describe(\"Whether this webhook is active\"),\n}).describe(\"Webhook configuration for an automation\");\nexport const SpokiRetrieveAutomationOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Automation ID\"),\n name: z.string().describe(\"Automation name\"),\n is_active: z.boolean().describe(\"Whether the automation is active\"),\n is_favorite: z.boolean().describe(\"Whether the automation is marked as favorite\"),\n webhook_set: z.array(SpokiRetrieveAutomation_AutomationWebhookSchema).describe(\"List of webhooks configured for this automation\").nullable().optional(),\n updated_user: z.string().describe(\"User who last updated the automation\").nullable().optional(),\n created_datetime: z.string().describe(\"Creation timestamp in ISO 8601 format\"),\n updated_datetime: z.string().describe(\"Last updated timestamp in ISO 8601 format\"),\n automation_groups: z.array(z.unknown()).describe(\"List of automation groups this automation belongs to\").nullable().optional(),\n first_message_text: z.string().describe(\"First message text, if any\").nullable().optional(),\n}).describe(\"Response model for automation details\");\n\nexport const spokiRetrieveAutomation = action(\"SPOKI_RETRIEVE_AUTOMATION\", {\n slug: \"spoki-retrieve-automation\",\n name: \"Retrieve Automation\",\n description: \"Tool to retrieve details of a specific automation. Use when you need name, first message, webhooks and timestamps of an existing automation.\",\n input: SpokiRetrieveAutomationInput,\n output: SpokiRetrieveAutomationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,EACjE,IAAIA,IAAAA,EAAE,OAAO,C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C,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/retrieve-automation.d.ts
|
|
4
|
+
declare const SpokiRetrieveAutomationInput: z.ZodTypeAny;
|
|
5
|
+
declare const SpokiRetrieveAutomationOutput: z.ZodTypeAny;
|
|
6
|
+
declare const spokiRetrieveAutomation: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { spokiRetrieveAutomation };
|
|
9
|
+
//# sourceMappingURL=retrieve-automation.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-automation.d.cts","names":[],"sources":["../../src/actions/retrieve-automation.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAEoB;AAAA,cAOpD,6BAAA,EAA+B,CAAA,CAAE,UAWM;AAAA,cAEvC,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/retrieve-automation.d.ts
|
|
4
|
+
declare const SpokiRetrieveAutomationInput: z.ZodTypeAny;
|
|
5
|
+
declare const SpokiRetrieveAutomationOutput: z.ZodTypeAny;
|
|
6
|
+
declare const spokiRetrieveAutomation: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { spokiRetrieveAutomation };
|
|
9
|
+
//# sourceMappingURL=retrieve-automation.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-automation.d.mts","names":[],"sources":["../../src/actions/retrieve-automation.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAEoB;AAAA,cAOpD,6BAAA,EAA+B,CAAA,CAAE,UAWM;AAAA,cAEvC,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/retrieve-automation.ts
|
|
4
|
+
const SpokiRetrieveAutomationInput = z.object({ id: z.number().int().describe("ID of the automation to retrieve") }).describe("Request model for retrieving a specific automation");
|
|
5
|
+
const SpokiRetrieveAutomation_AutomationWebhookSchema = z.object({
|
|
6
|
+
link: z.string().describe("Webhook URL"),
|
|
7
|
+
uuid: z.string().describe("Webhook UUID"),
|
|
8
|
+
secret: z.string().describe("Webhook secret token"),
|
|
9
|
+
is_active: z.boolean().describe("Whether this webhook is active")
|
|
10
|
+
}).describe("Webhook configuration for an automation");
|
|
11
|
+
const spokiRetrieveAutomation = action("SPOKI_RETRIEVE_AUTOMATION", {
|
|
12
|
+
slug: "spoki-retrieve-automation",
|
|
13
|
+
name: "Retrieve Automation",
|
|
14
|
+
description: "Tool to retrieve details of a specific automation. Use when you need name, first message, webhooks and timestamps of an existing automation.",
|
|
15
|
+
input: SpokiRetrieveAutomationInput,
|
|
16
|
+
output: z.object({
|
|
17
|
+
id: z.number().int().describe("Automation ID"),
|
|
18
|
+
name: z.string().describe("Automation name"),
|
|
19
|
+
is_active: z.boolean().describe("Whether the automation is active"),
|
|
20
|
+
is_favorite: z.boolean().describe("Whether the automation is marked as favorite"),
|
|
21
|
+
webhook_set: z.array(SpokiRetrieveAutomation_AutomationWebhookSchema).describe("List of webhooks configured for this automation").nullable().optional(),
|
|
22
|
+
updated_user: z.string().describe("User who last updated the automation").nullable().optional(),
|
|
23
|
+
created_datetime: z.string().describe("Creation timestamp in ISO 8601 format"),
|
|
24
|
+
updated_datetime: z.string().describe("Last updated timestamp in ISO 8601 format"),
|
|
25
|
+
automation_groups: z.array(z.unknown()).describe("List of automation groups this automation belongs to").nullable().optional(),
|
|
26
|
+
first_message_text: z.string().describe("First message text, if any").nullable().optional()
|
|
27
|
+
}).describe("Response model for automation details")
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
export { spokiRetrieveAutomation };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=retrieve-automation.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-automation.mjs","names":[],"sources":["../../src/actions/retrieve-automation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiRetrieveAutomationInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the automation to retrieve\"),\n}).describe(\"Request model for retrieving a specific automation\");\nconst SpokiRetrieveAutomation_AutomationWebhookSchema: z.ZodTypeAny = z.object({\n link: z.string().describe(\"Webhook URL\"),\n uuid: z.string().describe(\"Webhook UUID\"),\n secret: z.string().describe(\"Webhook secret token\"),\n is_active: z.boolean().describe(\"Whether this webhook is active\"),\n}).describe(\"Webhook configuration for an automation\");\nexport const SpokiRetrieveAutomationOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Automation ID\"),\n name: z.string().describe(\"Automation name\"),\n is_active: z.boolean().describe(\"Whether the automation is active\"),\n is_favorite: z.boolean().describe(\"Whether the automation is marked as favorite\"),\n webhook_set: z.array(SpokiRetrieveAutomation_AutomationWebhookSchema).describe(\"List of webhooks configured for this automation\").nullable().optional(),\n updated_user: z.string().describe(\"User who last updated the automation\").nullable().optional(),\n created_datetime: z.string().describe(\"Creation timestamp in ISO 8601 format\"),\n updated_datetime: z.string().describe(\"Last updated timestamp in ISO 8601 format\"),\n automation_groups: z.array(z.unknown()).describe(\"List of automation groups this automation belongs to\").nullable().optional(),\n first_message_text: z.string().describe(\"First message text, if any\").nullable().optional(),\n}).describe(\"Response model for automation details\");\n\nexport const spokiRetrieveAutomation = action(\"SPOKI_RETRIEVE_AUTOMATION\", {\n slug: \"spoki-retrieve-automation\",\n name: \"Retrieve Automation\",\n description: \"Tool to retrieve details of a specific automation. Use when you need name, first message, webhooks and timestamps of an existing automation.\",\n input: SpokiRetrieveAutomationInput,\n output: SpokiRetrieveAutomationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO,EACjE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,EAClE,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,kDAAgE,EAAE,OAAO;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;CACvC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;CACxC,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAClD,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC;AAClE,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAcrD,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAlByD,EAAE,OAAO;EAClE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,eAAe;EAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;EAC3C,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC;EAClE,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C;EAChF,aAAa,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtJ,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EAC7E,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;EACjF,mBAAmB,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7H,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/retrieve-contact.ts
|
|
4
|
+
const SpokiRetrieveContactInput = zod.z.object({ contact_id: zod.z.number().int().describe("Unique identifier of the contact to retrieve") }).describe("Request model for retrieving a specific contact.");
|
|
5
|
+
const SpokiRetrieveContact_TagSchema = zod.z.object({
|
|
6
|
+
id: zod.z.number().int().describe("Unique tag identifier"),
|
|
7
|
+
name: zod.z.string().describe("Name of the tag"),
|
|
8
|
+
color: zod.z.string().describe("Hex color code for the tag"),
|
|
9
|
+
order: zod.z.number().int().describe("Ordering index for display purposes")
|
|
10
|
+
}).describe("Tag assigned to a contact.");
|
|
11
|
+
const SpokiRetrieveContact_ContactListSchema = zod.z.object({
|
|
12
|
+
id: zod.z.number().int().describe("Unique list identifier"),
|
|
13
|
+
name: zod.z.string().describe("Name of the contact list"),
|
|
14
|
+
color: zod.z.string().describe("Hex color for the list, if any").nullable().optional(),
|
|
15
|
+
contacts_count: zod.z.number().int().describe("Number of contacts in this list"),
|
|
16
|
+
created_datetime: zod.z.string().describe("Creation timestamp in ISO 8601 format")
|
|
17
|
+
}).describe("List membership details for a contact.");
|
|
18
|
+
const SpokiRetrieveContact_RoleSchema = zod.z.object({
|
|
19
|
+
id: zod.z.number().int().describe("Unique role identifier"),
|
|
20
|
+
name: zod.z.string().describe("Name of the role")
|
|
21
|
+
}).describe("Role assigned to a contact.");
|
|
22
|
+
const SpokiRetrieveContact_ContactFieldSchema = zod.z.object({
|
|
23
|
+
id: zod.z.number().int().describe("Unique identifier of the contact field entry"),
|
|
24
|
+
field: zod.z.number().int().describe("ID of the custom field definition"),
|
|
25
|
+
value: zod.z.string().describe("Value stored in the custom field"),
|
|
26
|
+
visual_code: zod.z.string().describe("Placeholder code for the field, e.g., %%WEBSITE%%"),
|
|
27
|
+
value_datetime: zod.z.string().describe("Datetime value if the field is date/time, ISO 8601 format").nullable().optional()
|
|
28
|
+
}).describe("Custom field assigned to a contact.");
|
|
29
|
+
const SpokiRetrieveContactOutput = zod.z.object({
|
|
30
|
+
id: zod.z.number().int().describe("Contact ID"),
|
|
31
|
+
email: zod.z.string().describe("Contact's email address, if available").nullable().optional(),
|
|
32
|
+
phone: zod.z.string().describe("Contact's phone number in E.164 format"),
|
|
33
|
+
status: zod.z.string().describe("Contact's status, e.g., 'Not Declared'"),
|
|
34
|
+
tag_set: zod.z.array(SpokiRetrieveContact_TagSchema).describe("List of tags assigned to the contact").nullable().optional(),
|
|
35
|
+
language: zod.z.string().describe("Contact's language code, e.g., 'en'"),
|
|
36
|
+
list_set: zod.z.array(SpokiRetrieveContact_ContactListSchema).describe("Lists that the contact belongs to").nullable().optional(),
|
|
37
|
+
role_set: zod.z.array(SpokiRetrieveContact_RoleSchema).describe("List of roles assigned to the contact").nullable().optional(),
|
|
38
|
+
chat_link: zod.z.string().describe("URL to open the contact's chat in Spoki"),
|
|
39
|
+
last_name: zod.z.string().describe("Contact's last name, if provided").nullable().optional(),
|
|
40
|
+
first_name: zod.z.string().describe("Contact's first name, if provided").nullable().optional(),
|
|
41
|
+
is_blocked: zod.z.boolean().describe("Indicates if the contact is blocked from communication"),
|
|
42
|
+
is_restricted: zod.z.boolean().describe("Indicates if the contact has restricted access"),
|
|
43
|
+
contactfield_set: zod.z.array(SpokiRetrieveContact_ContactFieldSchema).describe("List of custom fields and their values").nullable().optional(),
|
|
44
|
+
created_datetime: zod.z.string().describe("Timestamp when the contact was created, ISO 8601"),
|
|
45
|
+
has_invalid_phone: zod.z.boolean().describe("Indicates if the stored phone number is invalid"),
|
|
46
|
+
contactfield_values: zod.z.object({}).describe("Dictionary mapping custom field codes to their values").nullable().optional()
|
|
47
|
+
}).describe("Full contact details returned by Spoki.");
|
|
48
|
+
const spokiRetrieveContact = require_action.action("SPOKI_RETRIEVE_CONTACT", {
|
|
49
|
+
slug: "spoki-retrieve-contact",
|
|
50
|
+
name: "Retrieve Contact",
|
|
51
|
+
description: "Tool to retrieve details of a specific contact. Use when you have a contact ID and need full profile details.",
|
|
52
|
+
input: SpokiRetrieveContactInput,
|
|
53
|
+
output: SpokiRetrieveContactOutput
|
|
54
|
+
});
|
|
55
|
+
//#endregion
|
|
56
|
+
exports.spokiRetrieveContact = spokiRetrieveContact;
|
|
57
|
+
|
|
58
|
+
//# sourceMappingURL=retrieve-contact.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-contact.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiRetrieveContactInput: z.ZodTypeAny = z.object({\n contact_id: z.number().int().describe(\"Unique identifier of the contact to retrieve\"),\n}).describe(\"Request model for retrieving a specific contact.\");\nconst SpokiRetrieveContact_TagSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique tag identifier\"),\n name: z.string().describe(\"Name of the tag\"),\n color: z.string().describe(\"Hex color code for the tag\"),\n order: z.number().int().describe(\"Ordering index for display purposes\"),\n}).describe(\"Tag assigned to a contact.\");\nconst SpokiRetrieveContact_ContactListSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique list identifier\"),\n name: z.string().describe(\"Name of the contact list\"),\n color: z.string().describe(\"Hex color for the list, if any\").nullable().optional(),\n contacts_count: z.number().int().describe(\"Number of contacts in this list\"),\n created_datetime: z.string().describe(\"Creation timestamp in ISO 8601 format\"),\n}).describe(\"List membership details for a contact.\");\nconst SpokiRetrieveContact_RoleSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique role identifier\"),\n name: z.string().describe(\"Name of the role\"),\n}).describe(\"Role assigned to a contact.\");\nconst SpokiRetrieveContact_ContactFieldSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the contact field entry\"),\n field: z.number().int().describe(\"ID of the custom field definition\"),\n value: z.string().describe(\"Value stored in the custom field\"),\n visual_code: z.string().describe(\"Placeholder code for the field, e.g., %%WEBSITE%%\"),\n value_datetime: z.string().describe(\"Datetime value if the field is date/time, ISO 8601 format\").nullable().optional(),\n}).describe(\"Custom field assigned to a contact.\");\nexport const SpokiRetrieveContactOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Contact ID\"),\n email: z.string().describe(\"Contact's email address, if available\").nullable().optional(),\n phone: z.string().describe(\"Contact's phone number in E.164 format\"),\n status: z.string().describe(\"Contact's status, e.g., 'Not Declared'\"),\n tag_set: z.array(SpokiRetrieveContact_TagSchema).describe(\"List of tags assigned to the contact\").nullable().optional(),\n language: z.string().describe(\"Contact's language code, e.g., 'en'\"),\n list_set: z.array(SpokiRetrieveContact_ContactListSchema).describe(\"Lists that the contact belongs to\").nullable().optional(),\n role_set: z.array(SpokiRetrieveContact_RoleSchema).describe(\"List of roles assigned to the contact\").nullable().optional(),\n chat_link: z.string().describe(\"URL to open the contact's chat in Spoki\"),\n last_name: z.string().describe(\"Contact's last name, if provided\").nullable().optional(),\n first_name: z.string().describe(\"Contact's first name, if provided\").nullable().optional(),\n is_blocked: z.boolean().describe(\"Indicates if the contact is blocked from communication\"),\n is_restricted: z.boolean().describe(\"Indicates if the contact has restricted access\"),\n contactfield_set: z.array(SpokiRetrieveContact_ContactFieldSchema).describe(\"List of custom fields and their values\").nullable().optional(),\n created_datetime: z.string().describe(\"Timestamp when the contact was created, ISO 8601\"),\n has_invalid_phone: z.boolean().describe(\"Indicates if the stored phone number is invalid\"),\n contactfield_values: z.object({}).describe(\"Dictionary mapping custom field codes to their values\").nullable().optional(),\n}).describe(\"Full contact details returned by Spoki.\");\n\nexport const spokiRetrieveContact = action(\"SPOKI_RETRIEVE_CONTACT\", {\n slug: \"spoki-retrieve-contact\",\n name: \"Retrieve Contact\",\n description: \"Tool to retrieve details of a specific contact. Use when you have a contact ID and need full profile details.\",\n input: SpokiRetrieveContactInput,\n output: SpokiRetrieveContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,EACtF,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,iCAA+CA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;CAC3C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;AACxE,CAAC,CAAC,CAAC,SAAS,4BAA4B;AACxC,MAAM,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACpD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,C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{ z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/retrieve-contact.d.ts
|
|
4
|
+
declare const SpokiRetrieveContactInput: z.ZodTypeAny;
|
|
5
|
+
declare const SpokiRetrieveContactOutput: z.ZodTypeAny;
|
|
6
|
+
declare const spokiRetrieveContact: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { spokiRetrieveContact };
|
|
9
|
+
//# sourceMappingURL=retrieve-contact.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-contact.d.cts","names":[],"sources":["../../src/actions/retrieve-contact.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAEqB;AAAA,cAyBlD,0BAAA,EAA4B,CAAA,CAAE,UAkBW;AAAA,cAEzC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/retrieve-contact.d.ts
|
|
4
|
+
declare const SpokiRetrieveContactInput: z.ZodTypeAny;
|
|
5
|
+
declare const SpokiRetrieveContactOutput: z.ZodTypeAny;
|
|
6
|
+
declare const spokiRetrieveContact: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { spokiRetrieveContact };
|
|
9
|
+
//# sourceMappingURL=retrieve-contact.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-contact.d.mts","names":[],"sources":["../../src/actions/retrieve-contact.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAEqB;AAAA,cAyBlD,0BAAA,EAA4B,CAAA,CAAE,UAkBW;AAAA,cAEzC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/retrieve-contact.ts
|
|
4
|
+
const SpokiRetrieveContactInput = z.object({ contact_id: z.number().int().describe("Unique identifier of the contact to retrieve") }).describe("Request model for retrieving a specific contact.");
|
|
5
|
+
const SpokiRetrieveContact_TagSchema = z.object({
|
|
6
|
+
id: z.number().int().describe("Unique tag identifier"),
|
|
7
|
+
name: z.string().describe("Name of the tag"),
|
|
8
|
+
color: z.string().describe("Hex color code for the tag"),
|
|
9
|
+
order: z.number().int().describe("Ordering index for display purposes")
|
|
10
|
+
}).describe("Tag assigned to a contact.");
|
|
11
|
+
const SpokiRetrieveContact_ContactListSchema = z.object({
|
|
12
|
+
id: z.number().int().describe("Unique list identifier"),
|
|
13
|
+
name: z.string().describe("Name of the contact list"),
|
|
14
|
+
color: z.string().describe("Hex color for the list, if any").nullable().optional(),
|
|
15
|
+
contacts_count: z.number().int().describe("Number of contacts in this list"),
|
|
16
|
+
created_datetime: z.string().describe("Creation timestamp in ISO 8601 format")
|
|
17
|
+
}).describe("List membership details for a contact.");
|
|
18
|
+
const SpokiRetrieveContact_RoleSchema = z.object({
|
|
19
|
+
id: z.number().int().describe("Unique role identifier"),
|
|
20
|
+
name: z.string().describe("Name of the role")
|
|
21
|
+
}).describe("Role assigned to a contact.");
|
|
22
|
+
const SpokiRetrieveContact_ContactFieldSchema = z.object({
|
|
23
|
+
id: z.number().int().describe("Unique identifier of the contact field entry"),
|
|
24
|
+
field: z.number().int().describe("ID of the custom field definition"),
|
|
25
|
+
value: z.string().describe("Value stored in the custom field"),
|
|
26
|
+
visual_code: z.string().describe("Placeholder code for the field, e.g., %%WEBSITE%%"),
|
|
27
|
+
value_datetime: z.string().describe("Datetime value if the field is date/time, ISO 8601 format").nullable().optional()
|
|
28
|
+
}).describe("Custom field assigned to a contact.");
|
|
29
|
+
const spokiRetrieveContact = action("SPOKI_RETRIEVE_CONTACT", {
|
|
30
|
+
slug: "spoki-retrieve-contact",
|
|
31
|
+
name: "Retrieve Contact",
|
|
32
|
+
description: "Tool to retrieve details of a specific contact. Use when you have a contact ID and need full profile details.",
|
|
33
|
+
input: SpokiRetrieveContactInput,
|
|
34
|
+
output: z.object({
|
|
35
|
+
id: z.number().int().describe("Contact ID"),
|
|
36
|
+
email: z.string().describe("Contact's email address, if available").nullable().optional(),
|
|
37
|
+
phone: z.string().describe("Contact's phone number in E.164 format"),
|
|
38
|
+
status: z.string().describe("Contact's status, e.g., 'Not Declared'"),
|
|
39
|
+
tag_set: z.array(SpokiRetrieveContact_TagSchema).describe("List of tags assigned to the contact").nullable().optional(),
|
|
40
|
+
language: z.string().describe("Contact's language code, e.g., 'en'"),
|
|
41
|
+
list_set: z.array(SpokiRetrieveContact_ContactListSchema).describe("Lists that the contact belongs to").nullable().optional(),
|
|
42
|
+
role_set: z.array(SpokiRetrieveContact_RoleSchema).describe("List of roles assigned to the contact").nullable().optional(),
|
|
43
|
+
chat_link: z.string().describe("URL to open the contact's chat in Spoki"),
|
|
44
|
+
last_name: z.string().describe("Contact's last name, if provided").nullable().optional(),
|
|
45
|
+
first_name: z.string().describe("Contact's first name, if provided").nullable().optional(),
|
|
46
|
+
is_blocked: z.boolean().describe("Indicates if the contact is blocked from communication"),
|
|
47
|
+
is_restricted: z.boolean().describe("Indicates if the contact has restricted access"),
|
|
48
|
+
contactfield_set: z.array(SpokiRetrieveContact_ContactFieldSchema).describe("List of custom fields and their values").nullable().optional(),
|
|
49
|
+
created_datetime: z.string().describe("Timestamp when the contact was created, ISO 8601"),
|
|
50
|
+
has_invalid_phone: z.boolean().describe("Indicates if the stored phone number is invalid"),
|
|
51
|
+
contactfield_values: z.object({}).describe("Dictionary mapping custom field codes to their values").nullable().optional()
|
|
52
|
+
}).describe("Full contact details returned by Spoki.")
|
|
53
|
+
});
|
|
54
|
+
//#endregion
|
|
55
|
+
export { spokiRetrieveContact };
|
|
56
|
+
|
|
57
|
+
//# sourceMappingURL=retrieve-contact.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-contact.mjs","names":[],"sources":["../../src/actions/retrieve-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiRetrieveContactInput: z.ZodTypeAny = z.object({\n contact_id: z.number().int().describe(\"Unique identifier of the contact to retrieve\"),\n}).describe(\"Request model for retrieving a specific contact.\");\nconst SpokiRetrieveContact_TagSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique tag identifier\"),\n name: z.string().describe(\"Name of the tag\"),\n color: z.string().describe(\"Hex color code for the tag\"),\n order: z.number().int().describe(\"Ordering index for display purposes\"),\n}).describe(\"Tag assigned to a contact.\");\nconst SpokiRetrieveContact_ContactListSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique list identifier\"),\n name: z.string().describe(\"Name of the contact list\"),\n color: z.string().describe(\"Hex color for the list, if any\").nullable().optional(),\n contacts_count: z.number().int().describe(\"Number of contacts in this list\"),\n created_datetime: z.string().describe(\"Creation timestamp in ISO 8601 format\"),\n}).describe(\"List membership details for a contact.\");\nconst SpokiRetrieveContact_RoleSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique role identifier\"),\n name: z.string().describe(\"Name of the role\"),\n}).describe(\"Role assigned to a contact.\");\nconst SpokiRetrieveContact_ContactFieldSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the contact field entry\"),\n field: z.number().int().describe(\"ID of the custom field definition\"),\n value: z.string().describe(\"Value stored in the custom field\"),\n visual_code: z.string().describe(\"Placeholder code for the field, e.g., %%WEBSITE%%\"),\n value_datetime: z.string().describe(\"Datetime value if the field is date/time, ISO 8601 format\").nullable().optional(),\n}).describe(\"Custom field assigned to a contact.\");\nexport const SpokiRetrieveContactOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Contact ID\"),\n email: z.string().describe(\"Contact's email address, if available\").nullable().optional(),\n phone: z.string().describe(\"Contact's phone number in E.164 format\"),\n status: z.string().describe(\"Contact's status, e.g., 'Not Declared'\"),\n tag_set: z.array(SpokiRetrieveContact_TagSchema).describe(\"List of tags assigned to the contact\").nullable().optional(),\n language: z.string().describe(\"Contact's language code, e.g., 'en'\"),\n list_set: z.array(SpokiRetrieveContact_ContactListSchema).describe(\"Lists that the contact belongs to\").nullable().optional(),\n role_set: z.array(SpokiRetrieveContact_RoleSchema).describe(\"List of roles assigned to the contact\").nullable().optional(),\n chat_link: z.string().describe(\"URL to open the contact's chat in Spoki\"),\n last_name: z.string().describe(\"Contact's last name, if provided\").nullable().optional(),\n first_name: z.string().describe(\"Contact's first name, if provided\").nullable().optional(),\n is_blocked: z.boolean().describe(\"Indicates if the contact is blocked from communication\"),\n is_restricted: z.boolean().describe(\"Indicates if the contact has restricted access\"),\n contactfield_set: z.array(SpokiRetrieveContact_ContactFieldSchema).describe(\"List of custom fields and their values\").nullable().optional(),\n created_datetime: z.string().describe(\"Timestamp when the contact was created, ISO 8601\"),\n has_invalid_phone: z.boolean().describe(\"Indicates if the stored phone number is invalid\"),\n contactfield_values: z.object({}).describe(\"Dictionary mapping custom field codes to their values\").nullable().optional(),\n}).describe(\"Full contact details returned by Spoki.\");\n\nexport const spokiRetrieveContact = action(\"SPOKI_RETRIEVE_CONTACT\", {\n slug: \"spoki-retrieve-contact\",\n name: \"Retrieve Contact\",\n description: \"Tool to retrieve details of a specific contact. Use when you have a contact ID and need full profile details.\",\n input: SpokiRetrieveContactInput,\n output: SpokiRetrieveContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO,EAC9D,YAAY,EAAE,OAAO,CAAC,CAAC,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AAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1I,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;EACxF,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD;EACzF,qBAAqB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,CAAC,CAAC,CAAC,SAAS,yCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/retrieve-custom-field.ts
|
|
4
|
+
const SpokiRetrieveCustomFieldInput = zod.z.object({ custom_field_id: zod.z.number().int().describe("The unique identifier of the custom field to retrieve") }).describe("Request model for retrieving a custom field by its ID.");
|
|
5
|
+
const SpokiRetrieveCustomFieldOutput = zod.z.object({
|
|
6
|
+
id: zod.z.number().int().describe("The unique identifier of the custom field"),
|
|
7
|
+
code: zod.z.string().describe("The programmatic code used to reference the custom field"),
|
|
8
|
+
label: zod.z.string().describe("The human-readable label of the custom field"),
|
|
9
|
+
example: zod.z.string().describe("An example or default value for the custom field").nullable().optional(),
|
|
10
|
+
is_linked: zod.z.boolean().describe("Whether this custom field is linked/active in the system"),
|
|
11
|
+
field_type: zod.z.union([
|
|
12
|
+
zod.z.literal(1),
|
|
13
|
+
zod.z.literal(2),
|
|
14
|
+
zod.z.literal(3)
|
|
15
|
+
]).describe("The type of the custom field: 1=TEXT, 2=DATE, 3=DATETIME")
|
|
16
|
+
}).describe("Response model containing details of the retrieved custom field.");
|
|
17
|
+
const spokiRetrieveCustomField = require_action.action("SPOKI_RETRIEVE_CUSTOM_FIELD", {
|
|
18
|
+
slug: "spoki-retrieve-custom-field",
|
|
19
|
+
name: "Retrieve Custom Field",
|
|
20
|
+
description: "Tool to retrieve details of a specific custom field. Use when you have a field ID and need its metadata before using it in automations.",
|
|
21
|
+
input: SpokiRetrieveCustomFieldInput,
|
|
22
|
+
output: SpokiRetrieveCustomFieldOutput
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
exports.spokiRetrieveCustomField = spokiRetrieveCustomField;
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=retrieve-custom-field.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-custom-field.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiRetrieveCustomFieldInput: z.ZodTypeAny = z.object({\n custom_field_id: z.number().int().describe(\"The unique identifier of the custom field to retrieve\"),\n}).describe(\"Request model for retrieving a custom field by its ID.\");\nexport const SpokiRetrieveCustomFieldOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The unique identifier of the custom field\"),\n code: z.string().describe(\"The programmatic code used to reference the custom field\"),\n label: z.string().describe(\"The human-readable label of the custom field\"),\n example: z.string().describe(\"An example or default value for the custom field\").nullable().optional(),\n is_linked: z.boolean().describe(\"Whether this custom field is linked/active in the system\"),\n field_type: z.union([z.literal(1), z.literal(2), z.literal(3)]).describe(\"The type of the custom field: 1=TEXT, 2=DATE, 3=DATETIME\"),\n}).describe(\"Response model containing details of the retrieved custom field.\");\n\nexport const spokiRetrieveCustomField = action(\"SPOKI_RETRIEVE_CUSTOM_FIELD\", {\n slug: \"spoki-retrieve-custom-field\",\n name: \"Retrieve Custom Field\",\n description: \"Tool to retrieve details of a specific custom field. Use when you have a field ID and need its metadata before using it in automations.\",\n input: SpokiRetrieveCustomFieldInput,\n output: SpokiRetrieveCustomFieldOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO,EAClE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,EACpG,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACpF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CACzE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0DAA0D;CAC1F,YAAYA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,QAAQ,CAAC;CAAC,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACrI,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAE9E,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|