@keystrokehq/spoki 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-contact-operator.cjs +1 -0
- package/dist/actions/add-contact-operator.cjs.map +1 -1
- package/dist/actions/add-contact-operator.d.cts +3 -16
- package/dist/actions/add-contact-operator.d.cts.map +1 -1
- package/dist/actions/add-contact-operator.d.mts +3 -16
- package/dist/actions/add-contact-operator.d.mts.map +1 -1
- package/dist/actions/add-contact-operator.mjs +1 -0
- package/dist/actions/add-contact-operator.mjs.map +1 -1
- package/dist/actions/add-service-user.cjs +1 -0
- package/dist/actions/add-service-user.cjs.map +1 -1
- package/dist/actions/add-service-user.d.cts +3 -16
- package/dist/actions/add-service-user.d.cts.map +1 -1
- package/dist/actions/add-service-user.d.mts +3 -16
- package/dist/actions/add-service-user.d.mts.map +1 -1
- package/dist/actions/add-service-user.mjs +1 -0
- package/dist/actions/add-service-user.mjs.map +1 -1
- package/dist/actions/check-role-private-key.cjs +1 -0
- package/dist/actions/check-role-private-key.cjs.map +1 -1
- package/dist/actions/check-role-private-key.d.cts +3 -15
- package/dist/actions/check-role-private-key.d.cts.map +1 -1
- package/dist/actions/check-role-private-key.d.mts +3 -15
- package/dist/actions/check-role-private-key.d.mts.map +1 -1
- package/dist/actions/check-role-private-key.mjs +1 -0
- package/dist/actions/check-role-private-key.mjs.map +1 -1
- package/dist/actions/clone-template.cjs +1 -0
- package/dist/actions/clone-template.cjs.map +1 -1
- package/dist/actions/clone-template.d.cts +3 -15
- package/dist/actions/clone-template.d.cts.map +1 -1
- package/dist/actions/clone-template.d.mts +3 -15
- package/dist/actions/clone-template.d.mts.map +1 -1
- package/dist/actions/clone-template.mjs +1 -0
- package/dist/actions/clone-template.mjs.map +1 -1
- package/dist/actions/create-account-onboarding-link.cjs +1 -0
- package/dist/actions/create-account-onboarding-link.cjs.map +1 -1
- package/dist/actions/create-account-onboarding-link.d.cts +3 -15
- package/dist/actions/create-account-onboarding-link.d.cts.map +1 -1
- package/dist/actions/create-account-onboarding-link.d.mts +3 -15
- package/dist/actions/create-account-onboarding-link.d.mts.map +1 -1
- package/dist/actions/create-account-onboarding-link.mjs +1 -0
- package/dist/actions/create-account-onboarding-link.mjs.map +1 -1
- package/dist/actions/create-custom-field.cjs +1 -0
- package/dist/actions/create-custom-field.cjs.map +1 -1
- package/dist/actions/create-custom-field.d.cts +3 -18
- package/dist/actions/create-custom-field.d.cts.map +1 -1
- package/dist/actions/create-custom-field.d.mts +3 -18
- package/dist/actions/create-custom-field.d.mts.map +1 -1
- package/dist/actions/create-custom-field.mjs +1 -0
- package/dist/actions/create-custom-field.mjs.map +1 -1
- package/dist/actions/create-list.cjs +1 -0
- package/dist/actions/create-list.cjs.map +1 -1
- package/dist/actions/create-list.d.cts +3 -15
- package/dist/actions/create-list.d.cts.map +1 -1
- package/dist/actions/create-list.d.mts +3 -15
- package/dist/actions/create-list.d.mts.map +1 -1
- package/dist/actions/create-list.mjs +1 -0
- package/dist/actions/create-list.mjs.map +1 -1
- package/dist/actions/create-media.cjs +1 -0
- package/dist/actions/create-media.cjs.map +1 -1
- package/dist/actions/create-media.d.cts +3 -18
- package/dist/actions/create-media.d.cts.map +1 -1
- package/dist/actions/create-media.d.mts +3 -18
- package/dist/actions/create-media.d.mts.map +1 -1
- package/dist/actions/create-media.mjs +1 -0
- package/dist/actions/create-media.mjs.map +1 -1
- package/dist/actions/create-or-update-contact.cjs +1 -0
- package/dist/actions/create-or-update-contact.cjs.map +1 -1
- package/dist/actions/create-or-update-contact.d.cts +3 -20
- package/dist/actions/create-or-update-contact.d.cts.map +1 -1
- package/dist/actions/create-or-update-contact.d.mts +3 -20
- package/dist/actions/create-or-update-contact.d.mts.map +1 -1
- package/dist/actions/create-or-update-contact.mjs +1 -0
- package/dist/actions/create-or-update-contact.mjs.map +1 -1
- package/dist/actions/create-template.cjs +1 -0
- package/dist/actions/create-template.cjs.map +1 -1
- package/dist/actions/create-template.d.cts +3 -32
- package/dist/actions/create-template.d.cts.map +1 -1
- package/dist/actions/create-template.d.mts +3 -32
- package/dist/actions/create-template.d.mts.map +1 -1
- package/dist/actions/create-template.mjs +1 -0
- package/dist/actions/create-template.mjs.map +1 -1
- package/dist/actions/create-ticket.cjs +1 -0
- package/dist/actions/create-ticket.cjs.map +1 -1
- package/dist/actions/create-ticket.d.cts +3 -20
- package/dist/actions/create-ticket.d.cts.map +1 -1
- package/dist/actions/create-ticket.d.mts +3 -20
- package/dist/actions/create-ticket.d.mts.map +1 -1
- package/dist/actions/create-ticket.mjs +1 -0
- package/dist/actions/create-ticket.mjs.map +1 -1
- package/dist/actions/delete-contact.cjs +1 -0
- package/dist/actions/delete-contact.cjs.map +1 -1
- package/dist/actions/delete-contact.d.cts +3 -15
- package/dist/actions/delete-contact.d.cts.map +1 -1
- package/dist/actions/delete-contact.d.mts +3 -15
- package/dist/actions/delete-contact.d.mts.map +1 -1
- package/dist/actions/delete-contact.mjs +1 -0
- package/dist/actions/delete-contact.mjs.map +1 -1
- package/dist/actions/delete-custom-field.cjs +1 -0
- package/dist/actions/delete-custom-field.cjs.map +1 -1
- package/dist/actions/delete-custom-field.d.cts +3 -15
- package/dist/actions/delete-custom-field.d.cts.map +1 -1
- package/dist/actions/delete-custom-field.d.mts +3 -15
- package/dist/actions/delete-custom-field.d.mts.map +1 -1
- package/dist/actions/delete-custom-field.mjs +1 -0
- package/dist/actions/delete-custom-field.mjs.map +1 -1
- package/dist/actions/delete-list.cjs +1 -0
- package/dist/actions/delete-list.cjs.map +1 -1
- package/dist/actions/delete-list.d.cts +3 -15
- package/dist/actions/delete-list.d.cts.map +1 -1
- package/dist/actions/delete-list.d.mts +3 -15
- package/dist/actions/delete-list.d.mts.map +1 -1
- package/dist/actions/delete-list.mjs +1 -0
- package/dist/actions/delete-list.mjs.map +1 -1
- package/dist/actions/delete-media.cjs +1 -0
- package/dist/actions/delete-media.cjs.map +1 -1
- package/dist/actions/delete-media.d.cts +3 -15
- package/dist/actions/delete-media.d.cts.map +1 -1
- package/dist/actions/delete-media.d.mts +3 -15
- package/dist/actions/delete-media.d.mts.map +1 -1
- package/dist/actions/delete-media.mjs +1 -0
- package/dist/actions/delete-media.mjs.map +1 -1
- package/dist/actions/delete-role.cjs +1 -0
- package/dist/actions/delete-role.cjs.map +1 -1
- package/dist/actions/delete-role.d.cts +3 -15
- package/dist/actions/delete-role.d.cts.map +1 -1
- package/dist/actions/delete-role.d.mts +3 -15
- package/dist/actions/delete-role.d.mts.map +1 -1
- package/dist/actions/delete-role.mjs +1 -0
- package/dist/actions/delete-role.mjs.map +1 -1
- package/dist/actions/delete-template.cjs +1 -0
- package/dist/actions/delete-template.cjs.map +1 -1
- package/dist/actions/delete-template.d.cts +3 -16
- package/dist/actions/delete-template.d.cts.map +1 -1
- package/dist/actions/delete-template.d.mts +3 -16
- package/dist/actions/delete-template.d.mts.map +1 -1
- package/dist/actions/delete-template.mjs +1 -0
- package/dist/actions/delete-template.mjs.map +1 -1
- package/dist/actions/delete-ticket.cjs +1 -0
- package/dist/actions/delete-ticket.cjs.map +1 -1
- package/dist/actions/delete-ticket.d.cts +3 -15
- package/dist/actions/delete-ticket.d.cts.map +1 -1
- package/dist/actions/delete-ticket.d.mts +3 -15
- package/dist/actions/delete-ticket.d.mts.map +1 -1
- package/dist/actions/delete-ticket.mjs +1 -0
- package/dist/actions/delete-ticket.mjs.map +1 -1
- package/dist/actions/generate-role-private-key.cjs +1 -0
- package/dist/actions/generate-role-private-key.cjs.map +1 -1
- package/dist/actions/generate-role-private-key.d.cts +3 -15
- package/dist/actions/generate-role-private-key.d.cts.map +1 -1
- package/dist/actions/generate-role-private-key.d.mts +3 -15
- package/dist/actions/generate-role-private-key.d.mts.map +1 -1
- package/dist/actions/generate-role-private-key.mjs +1 -0
- package/dist/actions/generate-role-private-key.mjs.map +1 -1
- package/dist/actions/get-account-current-report.cjs +1 -0
- package/dist/actions/get-account-current-report.cjs.map +1 -1
- package/dist/actions/get-account-current-report.d.cts +3 -15
- package/dist/actions/get-account-current-report.d.cts.map +1 -1
- package/dist/actions/get-account-current-report.d.mts +3 -15
- package/dist/actions/get-account-current-report.d.mts.map +1 -1
- package/dist/actions/get-account-current-report.mjs +1 -0
- package/dist/actions/get-account-current-report.mjs.map +1 -1
- package/dist/actions/list-accounts.cjs +1 -0
- package/dist/actions/list-accounts.cjs.map +1 -1
- package/dist/actions/list-accounts.d.cts +3 -16
- package/dist/actions/list-accounts.d.cts.map +1 -1
- package/dist/actions/list-accounts.d.mts +3 -16
- package/dist/actions/list-accounts.d.mts.map +1 -1
- package/dist/actions/list-accounts.mjs +1 -0
- package/dist/actions/list-accounts.mjs.map +1 -1
- package/dist/actions/list-agencies.cjs +1 -0
- package/dist/actions/list-agencies.cjs.map +1 -1
- package/dist/actions/list-agencies.d.cts +3 -13
- package/dist/actions/list-agencies.d.cts.map +1 -1
- package/dist/actions/list-agencies.d.mts +3 -13
- package/dist/actions/list-agencies.d.mts.map +1 -1
- package/dist/actions/list-agencies.mjs +1 -0
- package/dist/actions/list-agencies.mjs.map +1 -1
- package/dist/actions/list-automations.cjs +1 -0
- package/dist/actions/list-automations.cjs.map +1 -1
- package/dist/actions/list-automations.d.cts +3 -17
- package/dist/actions/list-automations.d.cts.map +1 -1
- package/dist/actions/list-automations.d.mts +3 -17
- package/dist/actions/list-automations.d.mts.map +1 -1
- package/dist/actions/list-automations.mjs +1 -0
- package/dist/actions/list-automations.mjs.map +1 -1
- package/dist/actions/list-campaigns.cjs +1 -0
- package/dist/actions/list-campaigns.cjs.map +1 -1
- package/dist/actions/list-campaigns.d.cts +3 -18
- package/dist/actions/list-campaigns.d.cts.map +1 -1
- package/dist/actions/list-campaigns.d.mts +3 -18
- package/dist/actions/list-campaigns.d.mts.map +1 -1
- package/dist/actions/list-campaigns.mjs +1 -0
- package/dist/actions/list-campaigns.mjs.map +1 -1
- package/dist/actions/list-contacts.cjs +1 -0
- package/dist/actions/list-contacts.cjs.map +1 -1
- package/dist/actions/list-contacts.d.cts +3 -24
- package/dist/actions/list-contacts.d.cts.map +1 -1
- package/dist/actions/list-contacts.d.mts +3 -24
- package/dist/actions/list-contacts.d.mts.map +1 -1
- package/dist/actions/list-contacts.mjs +1 -0
- package/dist/actions/list-contacts.mjs.map +1 -1
- package/dist/actions/list-custom-fields.cjs +1 -0
- package/dist/actions/list-custom-fields.cjs.map +1 -1
- package/dist/actions/list-custom-fields.d.cts +3 -16
- package/dist/actions/list-custom-fields.d.cts.map +1 -1
- package/dist/actions/list-custom-fields.d.mts +3 -16
- package/dist/actions/list-custom-fields.d.mts.map +1 -1
- package/dist/actions/list-custom-fields.mjs +1 -0
- package/dist/actions/list-custom-fields.mjs.map +1 -1
- package/dist/actions/list-lists.cjs +1 -0
- package/dist/actions/list-lists.cjs.map +1 -1
- package/dist/actions/list-lists.d.cts +3 -17
- package/dist/actions/list-lists.d.cts.map +1 -1
- package/dist/actions/list-lists.d.mts +3 -17
- package/dist/actions/list-lists.d.mts.map +1 -1
- package/dist/actions/list-lists.mjs +1 -0
- package/dist/actions/list-lists.mjs.map +1 -1
- package/dist/actions/list-media.cjs +1 -0
- package/dist/actions/list-media.cjs.map +1 -1
- package/dist/actions/list-media.d.cts +3 -16
- package/dist/actions/list-media.d.cts.map +1 -1
- package/dist/actions/list-media.d.mts +3 -16
- package/dist/actions/list-media.d.mts.map +1 -1
- package/dist/actions/list-media.mjs +1 -0
- package/dist/actions/list-media.mjs.map +1 -1
- package/dist/actions/list-partners.cjs +1 -0
- package/dist/actions/list-partners.cjs.map +1 -1
- package/dist/actions/list-partners.d.cts +3 -13
- package/dist/actions/list-partners.d.cts.map +1 -1
- package/dist/actions/list-partners.d.mts +3 -13
- package/dist/actions/list-partners.d.mts.map +1 -1
- package/dist/actions/list-partners.mjs +1 -0
- package/dist/actions/list-partners.mjs.map +1 -1
- package/dist/actions/list-reports.cjs +1 -0
- package/dist/actions/list-reports.cjs.map +1 -1
- package/dist/actions/list-reports.d.cts +3 -19
- package/dist/actions/list-reports.d.cts.map +1 -1
- package/dist/actions/list-reports.d.mts +3 -19
- package/dist/actions/list-reports.d.mts.map +1 -1
- package/dist/actions/list-reports.mjs +1 -0
- package/dist/actions/list-reports.mjs.map +1 -1
- package/dist/actions/list-roles.cjs +1 -0
- package/dist/actions/list-roles.cjs.map +1 -1
- package/dist/actions/list-roles.d.cts +3 -13
- package/dist/actions/list-roles.d.cts.map +1 -1
- package/dist/actions/list-roles.d.mts +3 -13
- package/dist/actions/list-roles.d.mts.map +1 -1
- package/dist/actions/list-roles.mjs +1 -0
- package/dist/actions/list-roles.mjs.map +1 -1
- package/dist/actions/list-tags.cjs +1 -0
- package/dist/actions/list-tags.cjs.map +1 -1
- package/dist/actions/list-tags.d.cts +3 -13
- package/dist/actions/list-tags.d.cts.map +1 -1
- package/dist/actions/list-tags.d.mts +3 -13
- package/dist/actions/list-tags.d.mts.map +1 -1
- package/dist/actions/list-tags.mjs +1 -0
- package/dist/actions/list-tags.mjs.map +1 -1
- package/dist/actions/list-templates.cjs +1 -0
- package/dist/actions/list-templates.cjs.map +1 -1
- package/dist/actions/list-templates.d.cts +3 -15
- package/dist/actions/list-templates.d.cts.map +1 -1
- package/dist/actions/list-templates.d.mts +3 -15
- package/dist/actions/list-templates.d.mts.map +1 -1
- package/dist/actions/list-templates.mjs +1 -0
- package/dist/actions/list-templates.mjs.map +1 -1
- package/dist/actions/list-tickets.cjs +1 -0
- package/dist/actions/list-tickets.cjs.map +1 -1
- package/dist/actions/list-tickets.d.cts +3 -18
- package/dist/actions/list-tickets.d.cts.map +1 -1
- package/dist/actions/list-tickets.d.mts +3 -18
- package/dist/actions/list-tickets.d.mts.map +1 -1
- package/dist/actions/list-tickets.mjs +1 -0
- package/dist/actions/list-tickets.mjs.map +1 -1
- package/dist/actions/remove-all-list-contacts.cjs +1 -0
- package/dist/actions/remove-all-list-contacts.cjs.map +1 -1
- package/dist/actions/remove-all-list-contacts.d.cts +3 -15
- package/dist/actions/remove-all-list-contacts.d.cts.map +1 -1
- package/dist/actions/remove-all-list-contacts.d.mts +3 -15
- package/dist/actions/remove-all-list-contacts.d.mts.map +1 -1
- package/dist/actions/remove-all-list-contacts.mjs +1 -0
- package/dist/actions/remove-all-list-contacts.mjs.map +1 -1
- package/dist/actions/remove-contact-operator.cjs +1 -0
- package/dist/actions/remove-contact-operator.cjs.map +1 -1
- package/dist/actions/remove-contact-operator.d.cts +3 -16
- package/dist/actions/remove-contact-operator.d.cts.map +1 -1
- package/dist/actions/remove-contact-operator.d.mts +3 -16
- package/dist/actions/remove-contact-operator.d.mts.map +1 -1
- package/dist/actions/remove-contact-operator.mjs +1 -0
- package/dist/actions/remove-contact-operator.mjs.map +1 -1
- package/dist/actions/remove-list-contacts.cjs +1 -0
- package/dist/actions/remove-list-contacts.cjs.map +1 -1
- package/dist/actions/remove-list-contacts.d.cts +3 -16
- package/dist/actions/remove-list-contacts.d.cts.map +1 -1
- package/dist/actions/remove-list-contacts.d.mts +3 -16
- package/dist/actions/remove-list-contacts.d.mts.map +1 -1
- package/dist/actions/remove-list-contacts.mjs +1 -0
- package/dist/actions/remove-list-contacts.mjs.map +1 -1
- package/dist/actions/resend-invitation.cjs +1 -0
- package/dist/actions/resend-invitation.cjs.map +1 -1
- package/dist/actions/resend-invitation.d.cts +3 -15
- package/dist/actions/resend-invitation.d.cts.map +1 -1
- package/dist/actions/resend-invitation.d.mts +3 -15
- package/dist/actions/resend-invitation.d.mts.map +1 -1
- package/dist/actions/resend-invitation.mjs +1 -0
- package/dist/actions/resend-invitation.mjs.map +1 -1
- package/dist/actions/retrieve-account.cjs +1 -0
- package/dist/actions/retrieve-account.cjs.map +1 -1
- package/dist/actions/retrieve-account.d.cts +3 -15
- package/dist/actions/retrieve-account.d.cts.map +1 -1
- package/dist/actions/retrieve-account.d.mts +3 -15
- package/dist/actions/retrieve-account.d.mts.map +1 -1
- package/dist/actions/retrieve-account.mjs +1 -0
- package/dist/actions/retrieve-account.mjs.map +1 -1
- package/dist/actions/retrieve-automation.cjs +1 -0
- package/dist/actions/retrieve-automation.cjs.map +1 -1
- package/dist/actions/retrieve-automation.d.cts +3 -15
- package/dist/actions/retrieve-automation.d.cts.map +1 -1
- package/dist/actions/retrieve-automation.d.mts +3 -15
- package/dist/actions/retrieve-automation.d.mts.map +1 -1
- package/dist/actions/retrieve-automation.mjs +1 -0
- package/dist/actions/retrieve-automation.mjs.map +1 -1
- package/dist/actions/retrieve-contact.cjs +1 -0
- package/dist/actions/retrieve-contact.cjs.map +1 -1
- package/dist/actions/retrieve-contact.d.cts +3 -15
- package/dist/actions/retrieve-contact.d.cts.map +1 -1
- package/dist/actions/retrieve-contact.d.mts +3 -15
- package/dist/actions/retrieve-contact.d.mts.map +1 -1
- package/dist/actions/retrieve-contact.mjs +1 -0
- package/dist/actions/retrieve-contact.mjs.map +1 -1
- package/dist/actions/retrieve-custom-field.cjs +1 -0
- package/dist/actions/retrieve-custom-field.cjs.map +1 -1
- package/dist/actions/retrieve-custom-field.d.cts +3 -15
- package/dist/actions/retrieve-custom-field.d.cts.map +1 -1
- package/dist/actions/retrieve-custom-field.d.mts +3 -15
- package/dist/actions/retrieve-custom-field.d.mts.map +1 -1
- package/dist/actions/retrieve-custom-field.mjs +1 -0
- package/dist/actions/retrieve-custom-field.mjs.map +1 -1
- package/dist/actions/retrieve-list.cjs +1 -0
- package/dist/actions/retrieve-list.cjs.map +1 -1
- package/dist/actions/retrieve-list.d.cts +3 -15
- package/dist/actions/retrieve-list.d.cts.map +1 -1
- package/dist/actions/retrieve-list.d.mts +3 -15
- package/dist/actions/retrieve-list.d.mts.map +1 -1
- package/dist/actions/retrieve-list.mjs +1 -0
- package/dist/actions/retrieve-list.mjs.map +1 -1
- package/dist/actions/retrieve-media.cjs +1 -0
- package/dist/actions/retrieve-media.cjs.map +1 -1
- package/dist/actions/retrieve-media.d.cts +3 -15
- package/dist/actions/retrieve-media.d.cts.map +1 -1
- package/dist/actions/retrieve-media.d.mts +3 -15
- package/dist/actions/retrieve-media.d.mts.map +1 -1
- package/dist/actions/retrieve-media.mjs +1 -0
- package/dist/actions/retrieve-media.mjs.map +1 -1
- package/dist/actions/retrieve-role.cjs +1 -0
- package/dist/actions/retrieve-role.cjs.map +1 -1
- package/dist/actions/retrieve-role.d.cts +3 -15
- package/dist/actions/retrieve-role.d.cts.map +1 -1
- package/dist/actions/retrieve-role.d.mts +3 -15
- package/dist/actions/retrieve-role.d.mts.map +1 -1
- package/dist/actions/retrieve-role.mjs +1 -0
- package/dist/actions/retrieve-role.mjs.map +1 -1
- package/dist/actions/retrieve-tag.cjs +1 -0
- package/dist/actions/retrieve-tag.cjs.map +1 -1
- package/dist/actions/retrieve-tag.d.cts +3 -15
- package/dist/actions/retrieve-tag.d.cts.map +1 -1
- package/dist/actions/retrieve-tag.d.mts +3 -15
- package/dist/actions/retrieve-tag.d.mts.map +1 -1
- package/dist/actions/retrieve-tag.mjs +1 -0
- package/dist/actions/retrieve-tag.mjs.map +1 -1
- package/dist/actions/retrieve-template.cjs +1 -0
- package/dist/actions/retrieve-template.cjs.map +1 -1
- package/dist/actions/retrieve-template.d.cts +3 -15
- package/dist/actions/retrieve-template.d.cts.map +1 -1
- package/dist/actions/retrieve-template.d.mts +3 -15
- package/dist/actions/retrieve-template.d.mts.map +1 -1
- package/dist/actions/retrieve-template.mjs +1 -0
- package/dist/actions/retrieve-template.mjs.map +1 -1
- package/dist/actions/revert-template-to-draft.cjs +1 -0
- package/dist/actions/revert-template-to-draft.cjs.map +1 -1
- package/dist/actions/revert-template-to-draft.d.cts +3 -15
- package/dist/actions/revert-template-to-draft.d.cts.map +1 -1
- package/dist/actions/revert-template-to-draft.d.mts +3 -15
- package/dist/actions/revert-template-to-draft.d.mts.map +1 -1
- package/dist/actions/revert-template-to-draft.mjs +1 -0
- package/dist/actions/revert-template-to-draft.mjs.map +1 -1
- package/dist/actions/sync-contacts-bulk.cjs +1 -0
- package/dist/actions/sync-contacts-bulk.cjs.map +1 -1
- package/dist/actions/sync-contacts-bulk.d.cts +3 -23
- package/dist/actions/sync-contacts-bulk.d.cts.map +1 -1
- package/dist/actions/sync-contacts-bulk.d.mts +3 -23
- package/dist/actions/sync-contacts-bulk.d.mts.map +1 -1
- package/dist/actions/sync-contacts-bulk.mjs +1 -0
- package/dist/actions/sync-contacts-bulk.mjs.map +1 -1
- package/dist/actions/sync-list-contacts.cjs +1 -0
- package/dist/actions/sync-list-contacts.cjs.map +1 -1
- package/dist/actions/sync-list-contacts.d.cts +3 -24
- package/dist/actions/sync-list-contacts.d.cts.map +1 -1
- package/dist/actions/sync-list-contacts.d.mts +3 -24
- package/dist/actions/sync-list-contacts.d.mts.map +1 -1
- package/dist/actions/sync-list-contacts.mjs +1 -0
- package/dist/actions/sync-list-contacts.mjs.map +1 -1
- package/dist/actions/update-campaign.cjs +1 -0
- package/dist/actions/update-campaign.cjs.map +1 -1
- package/dist/actions/update-campaign.d.cts +3 -18
- package/dist/actions/update-campaign.d.cts.map +1 -1
- package/dist/actions/update-campaign.d.mts +3 -18
- package/dist/actions/update-campaign.d.mts.map +1 -1
- package/dist/actions/update-campaign.mjs +1 -0
- package/dist/actions/update-campaign.mjs.map +1 -1
- package/dist/actions/update-contact.cjs +1 -0
- package/dist/actions/update-contact.cjs.map +1 -1
- package/dist/actions/update-contact.d.cts +3 -21
- package/dist/actions/update-contact.d.cts.map +1 -1
- package/dist/actions/update-contact.d.mts +3 -21
- package/dist/actions/update-contact.d.mts.map +1 -1
- package/dist/actions/update-contact.mjs +1 -0
- package/dist/actions/update-contact.mjs.map +1 -1
- package/dist/actions/update-custom-field.cjs +1 -0
- package/dist/actions/update-custom-field.cjs.map +1 -1
- package/dist/actions/update-custom-field.d.cts +3 -16
- package/dist/actions/update-custom-field.d.cts.map +1 -1
- package/dist/actions/update-custom-field.d.mts +3 -16
- package/dist/actions/update-custom-field.d.mts.map +1 -1
- package/dist/actions/update-custom-field.mjs +1 -0
- package/dist/actions/update-custom-field.mjs.map +1 -1
- package/dist/actions/update-invitation-role.cjs +1 -0
- package/dist/actions/update-invitation-role.cjs.map +1 -1
- package/dist/actions/update-invitation-role.d.cts +3 -16
- package/dist/actions/update-invitation-role.d.cts.map +1 -1
- package/dist/actions/update-invitation-role.d.mts +3 -16
- package/dist/actions/update-invitation-role.d.mts.map +1 -1
- package/dist/actions/update-invitation-role.mjs +1 -0
- package/dist/actions/update-invitation-role.mjs.map +1 -1
- package/dist/actions/update-media.cjs +1 -0
- package/dist/actions/update-media.cjs.map +1 -1
- package/dist/actions/update-media.d.cts +3 -16
- package/dist/actions/update-media.d.cts.map +1 -1
- package/dist/actions/update-media.d.mts +3 -16
- package/dist/actions/update-media.d.mts.map +1 -1
- package/dist/actions/update-media.mjs +1 -0
- package/dist/actions/update-media.mjs.map +1 -1
- package/dist/actions/update-role.cjs +1 -0
- package/dist/actions/update-role.cjs.map +1 -1
- package/dist/actions/update-role.d.cts +3 -16
- package/dist/actions/update-role.d.cts.map +1 -1
- package/dist/actions/update-role.d.mts +3 -16
- package/dist/actions/update-role.d.mts.map +1 -1
- package/dist/actions/update-role.mjs +1 -0
- package/dist/actions/update-role.mjs.map +1 -1
- package/dist/actions/update-template.cjs +1 -0
- package/dist/actions/update-template.cjs.map +1 -1
- package/dist/actions/update-template.d.cts +3 -46
- package/dist/actions/update-template.d.cts.map +1 -1
- package/dist/actions/update-template.d.mts +3 -46
- package/dist/actions/update-template.d.mts.map +1 -1
- package/dist/actions/update-template.mjs +1 -0
- package/dist/actions/update-template.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { spoki } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/resend-invitation.d.ts
|
|
@@ -8,21 +10,7 @@ declare const SpokiResendInvitationOutput: z.ZodObject<{
|
|
|
8
10
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
11
|
success: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
10
12
|
}, z.core.$loose>;
|
|
11
|
-
declare const spokiResendInvitation:
|
|
12
|
-
id: number;
|
|
13
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
|
|
14
|
-
connectionId: z.ZodString;
|
|
15
|
-
entityId: z.ZodString;
|
|
16
|
-
instanceId: z.ZodString;
|
|
17
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
18
|
-
generic_api_key: z.ZodString;
|
|
19
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
|
|
20
|
-
connectionId: z.ZodString;
|
|
21
|
-
entityId: z.ZodString;
|
|
22
|
-
instanceId: z.ZodString;
|
|
23
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
-
generic_api_key: z.ZodString;
|
|
25
|
-
}, z.core.$strip>>]>;
|
|
13
|
+
declare const spokiResendInvitation: AppAction<typeof SpokiResendInvitationInput, typeof SpokiResendInvitationOutput, typeof spoki.credential>;
|
|
26
14
|
//#endregion
|
|
27
15
|
export { spokiResendInvitation };
|
|
28
16
|
//# sourceMappingURL=resend-invitation.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resend-invitation.d.cts","names":[],"sources":["../../src/actions/resend-invitation.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"resend-invitation.d.cts","names":[],"sources":["../../src/actions/resend-invitation.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAK3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { spoki } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/resend-invitation.d.ts
|
|
@@ -8,21 +10,7 @@ declare const SpokiResendInvitationOutput: z.ZodObject<{
|
|
|
8
10
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
11
|
success: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
10
12
|
}, z.core.$loose>;
|
|
11
|
-
declare const spokiResendInvitation:
|
|
12
|
-
id: number;
|
|
13
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
|
|
14
|
-
connectionId: z.ZodString;
|
|
15
|
-
entityId: z.ZodString;
|
|
16
|
-
instanceId: z.ZodString;
|
|
17
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
18
|
-
generic_api_key: z.ZodString;
|
|
19
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
|
|
20
|
-
connectionId: z.ZodString;
|
|
21
|
-
entityId: z.ZodString;
|
|
22
|
-
instanceId: z.ZodString;
|
|
23
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
-
generic_api_key: z.ZodString;
|
|
25
|
-
}, z.core.$strip>>]>;
|
|
13
|
+
declare const spokiResendInvitation: AppAction<typeof SpokiResendInvitationInput, typeof SpokiResendInvitationOutput, typeof spoki.credential>;
|
|
26
14
|
//#endregion
|
|
27
15
|
export { spokiResendInvitation };
|
|
28
16
|
//# sourceMappingURL=resend-invitation.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resend-invitation.d.mts","names":[],"sources":["../../src/actions/resend-invitation.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"resend-invitation.d.mts","names":[],"sources":["../../src/actions/resend-invitation.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAK3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +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.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.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}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"resend-invitation.mjs","names":[],"sources":["../../src/actions/resend-invitation.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { spoki } from \"../app\";\n\nexport const SpokiResendInvitationInput = 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.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}).passthrough().describe(\"Response from resending an invitation email. API returns success confirmation.\");\n\nexport const spokiResendInvitation: AppAction<\n typeof SpokiResendInvitationInput,\n typeof SpokiResendInvitationOutput,\n typeof spoki.credential\n> = 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":";;;AAcA,MAAa,wBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBwC,EAAE,OAAO,EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,EAC7D,CAAC,CAAC,CAAC,SAAS,uDAcH;CACP,QAdyC,EAAE,OAAO;EAClD,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,YAAY,CAAC,CAAC,SAAS,gFAWhB;AACV,CAAC"}
|
|
@@ -1 +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.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.object({\n id: z.number().int().describe(\"Unique account identifier\").nullable(),\n name: z.string().describe(\"Name of the account\").nullable(),\n phone: z.string().describe(\"Associated phone number\").nullable(),\n status: z.string().describe(\"Account status\").nullable(),\n timezone: z.string().describe(\"Timezone of the account\").nullable(),\n is_active: z.boolean().describe(\"Whether the account is active\").nullable(),\n daily_limit: z.number().int().describe(\"Daily message limit\").nullable(),\n account_type: z.number().int().describe(\"Account type: 1=Sandbox, 2=Standard, 4=Agency\").nullable(),\n country_code: z.string().describe(\"Country code of the account\").nullable(),\n phone_status: z.string().describe(\"Phone status\").nullable(),\n quality_score: z.number().int().describe(\"Quality score of the account\").nullable(),\n current_credit: z.number().int().describe(\"Current credit balance\").nullable(),\n default_prefix: z.string().describe(\"Default phone prefix\").nullable(),\n contacted_in_7d: z.number().int().describe(\"Number of contacts contacted in last 7 days\").nullable(),\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\").nullable(),\n default_language: z.string().describe(\"Default language\").nullable(),\n facebook_pixel_id: z.string().describe(\"Facebook Pixel ID if configured\").nullable().optional(),\n default_country_code: z.string().describe(\"Default country code\").nullable(),\n has_low_credit_alert: z.boolean().describe(\"Whether low credit alert is enabled\").nullable(),\n low_credit_threshold: z.number().int().describe(\"Low credit threshold\").nullable(),\n default_pricing_delta: z.number().int().describe(\"Default pricing delta\").nullable(),\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\").nullable(),\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\").nullable(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"retrieve-account.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-account.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { spoki } from \"../app\";\n\nexport const SpokiRetrieveAccountInput = 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.object({\n id: z.number().int().describe(\"Unique account identifier\").nullable(),\n name: z.string().describe(\"Name of the account\").nullable(),\n phone: z.string().describe(\"Associated phone number\").nullable(),\n status: z.string().describe(\"Account status\").nullable(),\n timezone: z.string().describe(\"Timezone of the account\").nullable(),\n is_active: z.boolean().describe(\"Whether the account is active\").nullable(),\n daily_limit: z.number().int().describe(\"Daily message limit\").nullable(),\n account_type: z.number().int().describe(\"Account type: 1=Sandbox, 2=Standard, 4=Agency\").nullable(),\n country_code: z.string().describe(\"Country code of the account\").nullable(),\n phone_status: z.string().describe(\"Phone status\").nullable(),\n quality_score: z.number().int().describe(\"Quality score of the account\").nullable(),\n current_credit: z.number().int().describe(\"Current credit balance\").nullable(),\n default_prefix: z.string().describe(\"Default phone prefix\").nullable(),\n contacted_in_7d: z.number().int().describe(\"Number of contacts contacted in last 7 days\").nullable(),\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\").nullable(),\n default_language: z.string().describe(\"Default language\").nullable(),\n facebook_pixel_id: z.string().describe(\"Facebook Pixel ID if configured\").nullable().optional(),\n default_country_code: z.string().describe(\"Default country code\").nullable(),\n has_low_credit_alert: z.boolean().describe(\"Whether low credit alert is enabled\").nullable(),\n low_credit_threshold: z.number().int().describe(\"Low credit threshold\").nullable(),\n default_pricing_delta: z.number().int().describe(\"Default pricing delta\").nullable(),\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\").nullable(),\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\").nullable(),\n}).passthrough().describe(\"Response model for a Spoki account.\");\n\nexport const spokiRetrieveAccount: AppAction<\n typeof SpokiRetrieveAccountInput,\n typeof SpokiRetrieveAccountOutput,\n typeof spoki.credential\n> = 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":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0HAA0H,EAClK,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,S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@ -1,3 +1,5 @@
|
|
|
1
|
+
import { spoki } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/retrieve-account.d.ts
|
|
@@ -33,21 +35,7 @@ declare const SpokiRetrieveAccountOutput: z.ZodObject<{
|
|
|
33
35
|
facebook_conversions_api_enabled: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
34
36
|
estimated_available_conversations: z.ZodNullable<z.ZodNumber>;
|
|
35
37
|
}, z.core.$loose>;
|
|
36
|
-
declare const spokiRetrieveAccount:
|
|
37
|
-
account_id: number;
|
|
38
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
|
|
39
|
-
connectionId: z.ZodString;
|
|
40
|
-
entityId: z.ZodString;
|
|
41
|
-
instanceId: z.ZodString;
|
|
42
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
-
generic_api_key: z.ZodString;
|
|
44
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
|
|
45
|
-
connectionId: z.ZodString;
|
|
46
|
-
entityId: z.ZodString;
|
|
47
|
-
instanceId: z.ZodString;
|
|
48
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
-
generic_api_key: z.ZodString;
|
|
50
|
-
}, z.core.$strip>>]>;
|
|
38
|
+
declare const spokiRetrieveAccount: AppAction<typeof SpokiRetrieveAccountInput, typeof SpokiRetrieveAccountOutput, typeof spoki.credential>;
|
|
51
39
|
//#endregion
|
|
52
40
|
export { spokiRetrieveAccount };
|
|
53
41
|
//# sourceMappingURL=retrieve-account.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-account.d.cts","names":[],"sources":["../../src/actions/retrieve-account.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-account.d.cts","names":[],"sources":["../../src/actions/retrieve-account.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA8B1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { spoki } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/retrieve-account.d.ts
|
|
@@ -33,21 +35,7 @@ declare const SpokiRetrieveAccountOutput: z.ZodObject<{
|
|
|
33
35
|
facebook_conversions_api_enabled: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
34
36
|
estimated_available_conversations: z.ZodNullable<z.ZodNumber>;
|
|
35
37
|
}, z.core.$loose>;
|
|
36
|
-
declare const spokiRetrieveAccount:
|
|
37
|
-
account_id: number;
|
|
38
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
|
|
39
|
-
connectionId: z.ZodString;
|
|
40
|
-
entityId: z.ZodString;
|
|
41
|
-
instanceId: z.ZodString;
|
|
42
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
-
generic_api_key: z.ZodString;
|
|
44
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
|
|
45
|
-
connectionId: z.ZodString;
|
|
46
|
-
entityId: z.ZodString;
|
|
47
|
-
instanceId: z.ZodString;
|
|
48
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
-
generic_api_key: z.ZodString;
|
|
50
|
-
}, z.core.$strip>>]>;
|
|
38
|
+
declare const spokiRetrieveAccount: AppAction<typeof SpokiRetrieveAccountInput, typeof SpokiRetrieveAccountOutput, typeof spoki.credential>;
|
|
51
39
|
//#endregion
|
|
52
40
|
export { spokiRetrieveAccount };
|
|
53
41
|
//# sourceMappingURL=retrieve-account.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-account.d.mts","names":[],"sources":["../../src/actions/retrieve-account.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-account.d.mts","names":[],"sources":["../../src/actions/retrieve-account.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA8B1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +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.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.object({\n id: z.number().int().describe(\"Unique account identifier\").nullable(),\n name: z.string().describe(\"Name of the account\").nullable(),\n phone: z.string().describe(\"Associated phone number\").nullable(),\n status: z.string().describe(\"Account status\").nullable(),\n timezone: z.string().describe(\"Timezone of the account\").nullable(),\n is_active: z.boolean().describe(\"Whether the account is active\").nullable(),\n daily_limit: z.number().int().describe(\"Daily message limit\").nullable(),\n account_type: z.number().int().describe(\"Account type: 1=Sandbox, 2=Standard, 4=Agency\").nullable(),\n country_code: z.string().describe(\"Country code of the account\").nullable(),\n phone_status: z.string().describe(\"Phone status\").nullable(),\n quality_score: z.number().int().describe(\"Quality score of the account\").nullable(),\n current_credit: z.number().int().describe(\"Current credit balance\").nullable(),\n default_prefix: z.string().describe(\"Default phone prefix\").nullable(),\n contacted_in_7d: z.number().int().describe(\"Number of contacts contacted in last 7 days\").nullable(),\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\").nullable(),\n default_language: z.string().describe(\"Default language\").nullable(),\n facebook_pixel_id: z.string().describe(\"Facebook Pixel ID if configured\").nullable().optional(),\n default_country_code: z.string().describe(\"Default country code\").nullable(),\n has_low_credit_alert: z.boolean().describe(\"Whether low credit alert is enabled\").nullable(),\n low_credit_threshold: z.number().int().describe(\"Low credit threshold\").nullable(),\n default_pricing_delta: z.number().int().describe(\"Default pricing delta\").nullable(),\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\").nullable(),\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\").nullable(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"retrieve-account.mjs","names":[],"sources":["../../src/actions/retrieve-account.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { spoki } from \"../app\";\n\nexport const SpokiRetrieveAccountInput = 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.object({\n id: z.number().int().describe(\"Unique account identifier\").nullable(),\n name: z.string().describe(\"Name of the account\").nullable(),\n phone: z.string().describe(\"Associated phone number\").nullable(),\n status: z.string().describe(\"Account status\").nullable(),\n timezone: z.string().describe(\"Timezone of the account\").nullable(),\n is_active: z.boolean().describe(\"Whether the account is active\").nullable(),\n daily_limit: z.number().int().describe(\"Daily message limit\").nullable(),\n account_type: z.number().int().describe(\"Account type: 1=Sandbox, 2=Standard, 4=Agency\").nullable(),\n country_code: z.string().describe(\"Country code of the account\").nullable(),\n phone_status: z.string().describe(\"Phone status\").nullable(),\n quality_score: z.number().int().describe(\"Quality score of the account\").nullable(),\n current_credit: z.number().int().describe(\"Current credit balance\").nullable(),\n default_prefix: z.string().describe(\"Default phone prefix\").nullable(),\n contacted_in_7d: z.number().int().describe(\"Number of contacts contacted in last 7 days\").nullable(),\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\").nullable(),\n default_language: z.string().describe(\"Default language\").nullable(),\n facebook_pixel_id: z.string().describe(\"Facebook Pixel ID if configured\").nullable().optional(),\n default_country_code: z.string().describe(\"Default country code\").nullable(),\n has_low_credit_alert: z.boolean().describe(\"Whether low credit alert is enabled\").nullable(),\n low_credit_threshold: z.number().int().describe(\"Low credit threshold\").nullable(),\n default_pricing_delta: z.number().int().describe(\"Default pricing delta\").nullable(),\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\").nullable(),\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\").nullable(),\n}).passthrough().describe(\"Response model for a Spoki account.\");\n\nexport const spokiRetrieveAccount: AppAction<\n typeof SpokiRetrieveAccountInput,\n typeof SpokiRetrieveAccountOutput,\n typeof spoki.credential\n> = 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":";;;AAuCA,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzCuC,EAAE,OAAO,EAChD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0HAA0H,EAClK,CAAC,CAAC,CAAC,SAAS,wDAuCH;CACP,QAvCwC,EAAE,OAAO;EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EAC/D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACvD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EAClE,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC1E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,C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AS,uBAAuB,CAAC,CAAC,SAAS;EACnF,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,2BAA2B,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACnH,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,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAWhB;AACV,CAAC"}
|
|
@@ -1 +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.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.object({\n link: z.string().describe(\"Webhook URL\").nullable(),\n uuid: z.string().describe(\"Webhook UUID\").nullable(),\n secret: z.string().describe(\"Webhook secret token\").nullable(),\n is_active: z.boolean().describe(\"Whether this webhook is active\").nullable(),\n}).passthrough().describe(\"Webhook configuration for an automation\");\nexport const SpokiRetrieveAutomationOutput = z.object({\n id: z.number().int().describe(\"Automation ID\").nullable(),\n name: z.string().describe(\"Automation name\").nullable(),\n is_active: z.boolean().describe(\"Whether the automation is active\").nullable(),\n is_favorite: z.boolean().describe(\"Whether the automation is marked as favorite\").nullable(),\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\").nullable(),\n updated_datetime: z.string().describe(\"Last updated timestamp in ISO 8601 format\").nullable(),\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}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"retrieve-automation.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-automation.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { spoki } from \"../app\";\n\nexport const SpokiRetrieveAutomationInput = 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.object({\n link: z.string().describe(\"Webhook URL\").nullable(),\n uuid: z.string().describe(\"Webhook UUID\").nullable(),\n secret: z.string().describe(\"Webhook secret token\").nullable(),\n is_active: z.boolean().describe(\"Whether this webhook is active\").nullable(),\n}).passthrough().describe(\"Webhook configuration for an automation\");\nexport const SpokiRetrieveAutomationOutput = z.object({\n id: z.number().int().describe(\"Automation ID\").nullable(),\n name: z.string().describe(\"Automation name\").nullable(),\n is_active: z.boolean().describe(\"Whether the automation is active\").nullable(),\n is_favorite: z.boolean().describe(\"Whether the automation is marked as favorite\").nullable(),\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\").nullable(),\n updated_datetime: z.string().describe(\"Last updated timestamp in ISO 8601 format\").nullable(),\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}).passthrough().describe(\"Response model for automation details\");\n\nexport const spokiRetrieveAutomation: AppAction<\n typeof SpokiRetrieveAutomationInput,\n typeof SpokiRetrieveAutomationOutput,\n typeof spoki.credential\n> = 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":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,EAClE,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,kDAAkDA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACnD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC7D,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AACnE,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,O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
@@ -21,21 +23,7 @@ declare const SpokiRetrieveAutomationOutput: z.ZodObject<{
|
|
|
21
23
|
automation_groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
22
24
|
first_message_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
25
|
}, z.core.$loose>;
|
|
24
|
-
declare const spokiRetrieveAutomation:
|
|
25
|
-
id: number;
|
|
26
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
|
|
27
|
-
connectionId: z.ZodString;
|
|
28
|
-
entityId: z.ZodString;
|
|
29
|
-
instanceId: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
generic_api_key: z.ZodString;
|
|
32
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
|
|
33
|
-
connectionId: z.ZodString;
|
|
34
|
-
entityId: z.ZodString;
|
|
35
|
-
instanceId: z.ZodString;
|
|
36
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
-
generic_api_key: z.ZodString;
|
|
38
|
-
}, z.core.$strip>>]>;
|
|
26
|
+
declare const spokiRetrieveAutomation: AppAction<typeof SpokiRetrieveAutomationInput, typeof SpokiRetrieveAutomationOutput, typeof spoki.credential>;
|
|
39
27
|
//#endregion
|
|
40
28
|
export { spokiRetrieveAutomation };
|
|
41
29
|
//# sourceMappingURL=retrieve-automation.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-automation.d.cts","names":[],"sources":["../../src/actions/retrieve-automation.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-automation.d.cts","names":[],"sources":["../../src/actions/retrieve-automation.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAS5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAa7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { spoki } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/retrieve-automation.d.ts
|
|
@@ -21,21 +23,7 @@ declare const SpokiRetrieveAutomationOutput: z.ZodObject<{
|
|
|
21
23
|
automation_groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
22
24
|
first_message_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
25
|
}, z.core.$loose>;
|
|
24
|
-
declare const spokiRetrieveAutomation:
|
|
25
|
-
id: number;
|
|
26
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
|
|
27
|
-
connectionId: z.ZodString;
|
|
28
|
-
entityId: z.ZodString;
|
|
29
|
-
instanceId: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
generic_api_key: z.ZodString;
|
|
32
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
|
|
33
|
-
connectionId: z.ZodString;
|
|
34
|
-
entityId: z.ZodString;
|
|
35
|
-
instanceId: z.ZodString;
|
|
36
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
-
generic_api_key: z.ZodString;
|
|
38
|
-
}, z.core.$strip>>]>;
|
|
26
|
+
declare const spokiRetrieveAutomation: AppAction<typeof SpokiRetrieveAutomationInput, typeof SpokiRetrieveAutomationOutput, typeof spoki.credential>;
|
|
39
27
|
//#endregion
|
|
40
28
|
export { spokiRetrieveAutomation };
|
|
41
29
|
//# sourceMappingURL=retrieve-automation.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-automation.d.mts","names":[],"sources":["../../src/actions/retrieve-automation.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-automation.d.mts","names":[],"sources":["../../src/actions/retrieve-automation.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAS5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAa7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +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.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.object({\n link: z.string().describe(\"Webhook URL\").nullable(),\n uuid: z.string().describe(\"Webhook UUID\").nullable(),\n secret: z.string().describe(\"Webhook secret token\").nullable(),\n is_active: z.boolean().describe(\"Whether this webhook is active\").nullable(),\n}).passthrough().describe(\"Webhook configuration for an automation\");\nexport const SpokiRetrieveAutomationOutput = z.object({\n id: z.number().int().describe(\"Automation ID\").nullable(),\n name: z.string().describe(\"Automation name\").nullable(),\n is_active: z.boolean().describe(\"Whether the automation is active\").nullable(),\n is_favorite: z.boolean().describe(\"Whether the automation is marked as favorite\").nullable(),\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\").nullable(),\n updated_datetime: z.string().describe(\"Last updated timestamp in ISO 8601 format\").nullable(),\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}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"retrieve-automation.mjs","names":[],"sources":["../../src/actions/retrieve-automation.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { spoki } from \"../app\";\n\nexport const SpokiRetrieveAutomationInput = 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.object({\n link: z.string().describe(\"Webhook URL\").nullable(),\n uuid: z.string().describe(\"Webhook UUID\").nullable(),\n secret: z.string().describe(\"Webhook secret token\").nullable(),\n is_active: z.boolean().describe(\"Whether this webhook is active\").nullable(),\n}).passthrough().describe(\"Webhook configuration for an automation\");\nexport const SpokiRetrieveAutomationOutput = z.object({\n id: z.number().int().describe(\"Automation ID\").nullable(),\n name: z.string().describe(\"Automation name\").nullable(),\n is_active: z.boolean().describe(\"Whether the automation is active\").nullable(),\n is_favorite: z.boolean().describe(\"Whether the automation is marked as favorite\").nullable(),\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\").nullable(),\n updated_datetime: z.string().describe(\"Last updated timestamp in ISO 8601 format\").nullable(),\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}).passthrough().describe(\"Response model for automation details\");\n\nexport const spokiRetrieveAutomation: AppAction<\n typeof SpokiRetrieveAutomationInput,\n typeof SpokiRetrieveAutomationOutput,\n typeof spoki.credential\n> = 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":";;;;AAMA,MAAa,+BAA+B,EAAE,OAAO,EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,EAClE,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,kDAAkD,EAAE,OAAO;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACnD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC7D,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAcnE,MAAa,0BAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAtB2C,EAAE,OAAO;EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;EACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;EACtD,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC7E,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EAC3F,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,CAAC,CAAC,SAAS;EACxF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAC5F,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,YAAY,CAAC,CAAC,SAAS,uCAWhB;AACV,CAAC"}
|
|
@@ -1 +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.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.object({\n id: z.number().int().describe(\"Unique tag identifier\").nullable(),\n name: z.string().describe(\"Name of the tag\").nullable(),\n color: z.string().describe(\"Hex color code for the tag\").nullable(),\n order: z.number().int().describe(\"Ordering index for display purposes\").nullable(),\n}).passthrough().describe(\"Tag assigned to a contact.\");\nconst SpokiRetrieveContact_ContactListSchema = z.object({\n id: z.number().int().describe(\"Unique list identifier\").nullable(),\n name: z.string().describe(\"Name of the contact list\").nullable(),\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\").nullable(),\n created_datetime: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable(),\n}).passthrough().describe(\"List membership details for a contact.\");\nconst SpokiRetrieveContact_RoleSchema = z.object({\n id: z.number().int().describe(\"Unique role identifier\").nullable(),\n name: z.string().describe(\"Name of the role\").nullable(),\n}).passthrough().describe(\"Role assigned to a contact.\");\nconst SpokiRetrieveContact_ContactFieldSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the contact field entry\").nullable(),\n field: z.number().int().describe(\"ID of the custom field definition\").nullable(),\n value: z.string().describe(\"Value stored in the custom field\").nullable(),\n visual_code: z.string().describe(\"Placeholder code for the field, e.g., %%WEBSITE%%\").nullable(),\n value_datetime: z.string().describe(\"Datetime value if the field is date/time, ISO 8601 format\").nullable().optional(),\n}).passthrough().describe(\"Custom field assigned to a contact.\");\nexport const SpokiRetrieveContactOutput = z.object({\n id: z.number().int().describe(\"Contact ID\").nullable(),\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\").nullable(),\n status: z.string().describe(\"Contact's status, e.g., 'Not Declared'\").nullable(),\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'\").nullable(),\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\").nullable(),\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\").nullable(),\n is_restricted: z.boolean().describe(\"Indicates if the contact has restricted access\").nullable(),\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\").nullable(),\n has_invalid_phone: z.boolean().describe(\"Indicates if the stored phone number is invalid\").nullable(),\n contactfield_values: z.record(z.string(), z.unknown()).describe(\"Dictionary mapping custom field codes to their values\").nullable().optional(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"retrieve-contact.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-contact.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { spoki } from \"../app\";\n\nexport const SpokiRetrieveContactInput = 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.object({\n id: z.number().int().describe(\"Unique tag identifier\").nullable(),\n name: z.string().describe(\"Name of the tag\").nullable(),\n color: z.string().describe(\"Hex color code for the tag\").nullable(),\n order: z.number().int().describe(\"Ordering index for display purposes\").nullable(),\n}).passthrough().describe(\"Tag assigned to a contact.\");\nconst SpokiRetrieveContact_ContactListSchema = z.object({\n id: z.number().int().describe(\"Unique list identifier\").nullable(),\n name: z.string().describe(\"Name of the contact list\").nullable(),\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\").nullable(),\n created_datetime: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable(),\n}).passthrough().describe(\"List membership details for a contact.\");\nconst SpokiRetrieveContact_RoleSchema = z.object({\n id: z.number().int().describe(\"Unique role identifier\").nullable(),\n name: z.string().describe(\"Name of the role\").nullable(),\n}).passthrough().describe(\"Role assigned to a contact.\");\nconst SpokiRetrieveContact_ContactFieldSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the contact field entry\").nullable(),\n field: z.number().int().describe(\"ID of the custom field definition\").nullable(),\n value: z.string().describe(\"Value stored in the custom field\").nullable(),\n visual_code: z.string().describe(\"Placeholder code for the field, e.g., %%WEBSITE%%\").nullable(),\n value_datetime: z.string().describe(\"Datetime value if the field is date/time, ISO 8601 format\").nullable().optional(),\n}).passthrough().describe(\"Custom field assigned to a contact.\");\nexport const SpokiRetrieveContactOutput = z.object({\n id: z.number().int().describe(\"Contact ID\").nullable(),\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\").nullable(),\n status: z.string().describe(\"Contact's status, e.g., 'Not Declared'\").nullable(),\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'\").nullable(),\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\").nullable(),\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\").nullable(),\n is_restricted: z.boolean().describe(\"Indicates if the contact has restricted access\").nullable(),\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\").nullable(),\n has_invalid_phone: z.boolean().describe(\"Indicates if the stored phone number is invalid\").nullable(),\n contactfield_values: z.record(z.string(), z.unknown()).describe(\"Dictionary mapping custom field codes to their values\").nullable().optional(),\n}).passthrough().describe(\"Full contact details returned by Spoki.\");\n\nexport const spokiRetrieveContact: AppAction<\n typeof SpokiRetrieveContactInput,\n typeof SpokiRetrieveContactOutput,\n typeof spoki.credential\n> = 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":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,EACtF,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,iCAAiCA,IAAAA,EAAE,OAAO;CAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACtD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4BAA4B;AACtD,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCA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AC,SAAS;CACnG,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACpG,qBAAqBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { spoki } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/retrieve-contact.d.ts
|
|
@@ -43,21 +45,7 @@ declare const SpokiRetrieveContactOutput: z.ZodObject<{
|
|
|
43
45
|
has_invalid_phone: z.ZodNullable<z.ZodBoolean>;
|
|
44
46
|
contactfield_values: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
45
47
|
}, z.core.$loose>;
|
|
46
|
-
declare const spokiRetrieveContact:
|
|
47
|
-
contact_id: number;
|
|
48
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
|
|
49
|
-
connectionId: z.ZodString;
|
|
50
|
-
entityId: z.ZodString;
|
|
51
|
-
instanceId: z.ZodString;
|
|
52
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
-
generic_api_key: z.ZodString;
|
|
54
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
|
|
55
|
-
connectionId: z.ZodString;
|
|
56
|
-
entityId: z.ZodString;
|
|
57
|
-
instanceId: z.ZodString;
|
|
58
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
-
generic_api_key: z.ZodString;
|
|
60
|
-
}, z.core.$strip>>]>;
|
|
48
|
+
declare const spokiRetrieveContact: AppAction<typeof SpokiRetrieveContactInput, typeof SpokiRetrieveContactOutput, typeof spoki.credential>;
|
|
61
49
|
//#endregion
|
|
62
50
|
export { spokiRetrieveContact };
|
|
63
51
|
//# sourceMappingURL=retrieve-contact.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-contact.d.cts","names":[],"sources":["../../src/actions/retrieve-contact.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-contact.d.cts","names":[],"sources":["../../src/actions/retrieve-contact.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cA2BzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoB1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { spoki } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/retrieve-contact.d.ts
|
|
@@ -43,21 +45,7 @@ declare const SpokiRetrieveContactOutput: z.ZodObject<{
|
|
|
43
45
|
has_invalid_phone: z.ZodNullable<z.ZodBoolean>;
|
|
44
46
|
contactfield_values: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
45
47
|
}, z.core.$loose>;
|
|
46
|
-
declare const spokiRetrieveContact:
|
|
47
|
-
contact_id: number;
|
|
48
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
|
|
49
|
-
connectionId: z.ZodString;
|
|
50
|
-
entityId: z.ZodString;
|
|
51
|
-
instanceId: z.ZodString;
|
|
52
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
-
generic_api_key: z.ZodString;
|
|
54
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
|
|
55
|
-
connectionId: z.ZodString;
|
|
56
|
-
entityId: z.ZodString;
|
|
57
|
-
instanceId: z.ZodString;
|
|
58
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
-
generic_api_key: z.ZodString;
|
|
60
|
-
}, z.core.$strip>>]>;
|
|
48
|
+
declare const spokiRetrieveContact: AppAction<typeof SpokiRetrieveContactInput, typeof SpokiRetrieveContactOutput, typeof spoki.credential>;
|
|
61
49
|
//#endregion
|
|
62
50
|
export { spokiRetrieveContact };
|
|
63
51
|
//# sourceMappingURL=retrieve-contact.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-contact.d.mts","names":[],"sources":["../../src/actions/retrieve-contact.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-contact.d.mts","names":[],"sources":["../../src/actions/retrieve-contact.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cA2BzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoB1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +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.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.object({\n id: z.number().int().describe(\"Unique tag identifier\").nullable(),\n name: z.string().describe(\"Name of the tag\").nullable(),\n color: z.string().describe(\"Hex color code for the tag\").nullable(),\n order: z.number().int().describe(\"Ordering index for display purposes\").nullable(),\n}).passthrough().describe(\"Tag assigned to a contact.\");\nconst SpokiRetrieveContact_ContactListSchema = z.object({\n id: z.number().int().describe(\"Unique list identifier\").nullable(),\n name: z.string().describe(\"Name of the contact list\").nullable(),\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\").nullable(),\n created_datetime: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable(),\n}).passthrough().describe(\"List membership details for a contact.\");\nconst SpokiRetrieveContact_RoleSchema = z.object({\n id: z.number().int().describe(\"Unique role identifier\").nullable(),\n name: z.string().describe(\"Name of the role\").nullable(),\n}).passthrough().describe(\"Role assigned to a contact.\");\nconst SpokiRetrieveContact_ContactFieldSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the contact field entry\").nullable(),\n field: z.number().int().describe(\"ID of the custom field definition\").nullable(),\n value: z.string().describe(\"Value stored in the custom field\").nullable(),\n visual_code: z.string().describe(\"Placeholder code for the field, e.g., %%WEBSITE%%\").nullable(),\n value_datetime: z.string().describe(\"Datetime value if the field is date/time, ISO 8601 format\").nullable().optional(),\n}).passthrough().describe(\"Custom field assigned to a contact.\");\nexport const SpokiRetrieveContactOutput = z.object({\n id: z.number().int().describe(\"Contact ID\").nullable(),\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\").nullable(),\n status: z.string().describe(\"Contact's status, e.g., 'Not Declared'\").nullable(),\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'\").nullable(),\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\").nullable(),\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\").nullable(),\n is_restricted: z.boolean().describe(\"Indicates if the contact has restricted access\").nullable(),\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\").nullable(),\n has_invalid_phone: z.boolean().describe(\"Indicates if the stored phone number is invalid\").nullable(),\n contactfield_values: z.record(z.string(), z.unknown()).describe(\"Dictionary mapping custom field codes to their values\").nullable().optional(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"retrieve-contact.mjs","names":[],"sources":["../../src/actions/retrieve-contact.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { spoki } from \"../app\";\n\nexport const SpokiRetrieveContactInput = 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.object({\n id: z.number().int().describe(\"Unique tag identifier\").nullable(),\n name: z.string().describe(\"Name of the tag\").nullable(),\n color: z.string().describe(\"Hex color code for the tag\").nullable(),\n order: z.number().int().describe(\"Ordering index for display purposes\").nullable(),\n}).passthrough().describe(\"Tag assigned to a contact.\");\nconst SpokiRetrieveContact_ContactListSchema = z.object({\n id: z.number().int().describe(\"Unique list identifier\").nullable(),\n name: z.string().describe(\"Name of the contact list\").nullable(),\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\").nullable(),\n created_datetime: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable(),\n}).passthrough().describe(\"List membership details for a contact.\");\nconst SpokiRetrieveContact_RoleSchema = z.object({\n id: z.number().int().describe(\"Unique role identifier\").nullable(),\n name: z.string().describe(\"Name of the role\").nullable(),\n}).passthrough().describe(\"Role assigned to a contact.\");\nconst SpokiRetrieveContact_ContactFieldSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the contact field entry\").nullable(),\n field: z.number().int().describe(\"ID of the custom field definition\").nullable(),\n value: z.string().describe(\"Value stored in the custom field\").nullable(),\n visual_code: z.string().describe(\"Placeholder code for the field, e.g., %%WEBSITE%%\").nullable(),\n value_datetime: z.string().describe(\"Datetime value if the field is date/time, ISO 8601 format\").nullable().optional(),\n}).passthrough().describe(\"Custom field assigned to a contact.\");\nexport const SpokiRetrieveContactOutput = z.object({\n id: z.number().int().describe(\"Contact ID\").nullable(),\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\").nullable(),\n status: z.string().describe(\"Contact's status, e.g., 'Not Declared'\").nullable(),\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'\").nullable(),\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\").nullable(),\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\").nullable(),\n is_restricted: z.boolean().describe(\"Indicates if the contact has restricted access\").nullable(),\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\").nullable(),\n has_invalid_phone: z.boolean().describe(\"Indicates if the stored phone number is invalid\").nullable(),\n contactfield_values: z.record(z.string(), z.unknown()).describe(\"Dictionary mapping custom field codes to their values\").nullable().optional(),\n}).passthrough().describe(\"Full contact details returned by Spoki.\");\n\nexport const spokiRetrieveContact: AppAction<\n typeof SpokiRetrieveContactInput,\n typeof SpokiRetrieveContactOutput,\n typeof spoki.credential\n> = 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":";;;;AAMA,MAAa,4BAA4B,EAAE,OAAO,EAChD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,EACtF,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,iCAAiC,EAAE,OAAO;CAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACtD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4BAA4B;AACt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AC,CAAC,SAAS;EAC1I,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EACnG,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACpG,qBAAqB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAWhB;AACV,CAAC"}
|
|
@@ -1 +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.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.object({\n id: z.number().int().describe(\"The unique identifier of the custom field\").nullable(),\n code: z.string().describe(\"The programmatic code used to reference the custom field\").nullable(),\n label: z.string().describe(\"The human-readable label of the custom field\").nullable(),\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\").nullable(),\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\").nullable(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"retrieve-custom-field.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-custom-field.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { spoki } from \"../app\";\n\nexport const SpokiRetrieveCustomFieldInput = 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.object({\n id: z.number().int().describe(\"The unique identifier of the custom field\").nullable(),\n code: z.string().describe(\"The programmatic code used to reference the custom field\").nullable(),\n label: z.string().describe(\"The human-readable label of the custom field\").nullable(),\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\").nullable(),\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\").nullable(),\n}).passthrough().describe(\"Response model containing details of the retrieved custom field.\");\n\nexport const spokiRetrieveCustomField: AppAction<\n typeof SpokiRetrieveCustomFieldInput,\n typeof SpokiRetrieveCustomFieldOutput,\n typeof spoki.credential\n> = 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":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,EACpG,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACpF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC/F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACpF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACrG,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,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAAkE;AAE5F,MAAa,2BAITC,eAAAA,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { spoki } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/retrieve-custom-field.d.ts
|
|
@@ -12,21 +14,7 @@ declare const SpokiRetrieveCustomFieldOutput: z.ZodObject<{
|
|
|
12
14
|
is_linked: z.ZodNullable<z.ZodBoolean>;
|
|
13
15
|
field_type: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
14
16
|
}, z.core.$loose>;
|
|
15
|
-
declare const spokiRetrieveCustomField:
|
|
16
|
-
custom_field_id: number;
|
|
17
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
|
|
18
|
-
connectionId: z.ZodString;
|
|
19
|
-
entityId: z.ZodString;
|
|
20
|
-
instanceId: z.ZodString;
|
|
21
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
-
generic_api_key: z.ZodString;
|
|
23
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
|
|
24
|
-
connectionId: z.ZodString;
|
|
25
|
-
entityId: z.ZodString;
|
|
26
|
-
instanceId: z.ZodString;
|
|
27
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
-
generic_api_key: z.ZodString;
|
|
29
|
-
}, z.core.$strip>>]>;
|
|
17
|
+
declare const spokiRetrieveCustomField: AppAction<typeof SpokiRetrieveCustomFieldInput, typeof SpokiRetrieveCustomFieldOutput, typeof spoki.credential>;
|
|
30
18
|
//#endregion
|
|
31
19
|
export { spokiRetrieveCustomField };
|
|
32
20
|
//# sourceMappingURL=retrieve-custom-field.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-custom-field.d.cts","names":[],"sources":["../../src/actions/retrieve-custom-field.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"retrieve-custom-field.d.cts","names":[],"sources":["../../src/actions/retrieve-custom-field.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAG7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;cAS9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,KAAA,CAAM,UAAA"}
|