@keystrokehq/persona 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/add-tag-to-account.cjs +52 -0
- package/dist/actions/add-tag-to-account.cjs.map +1 -0
- package/dist/actions/add-tag-to-account.d.cts +9 -0
- package/dist/actions/add-tag-to-account.d.cts.map +1 -0
- package/dist/actions/add-tag-to-account.d.mts +9 -0
- package/dist/actions/add-tag-to-account.d.mts.map +1 -0
- package/dist/actions/add-tag-to-account.mjs +51 -0
- package/dist/actions/add-tag-to-account.mjs.map +1 -0
- package/dist/actions/archive-a-browser-fingerprint-list-item.cjs +39 -0
- package/dist/actions/archive-a-browser-fingerprint-list-item.cjs.map +1 -0
- package/dist/actions/archive-a-browser-fingerprint-list-item.d.cts +9 -0
- package/dist/actions/archive-a-browser-fingerprint-list-item.d.cts.map +1 -0
- package/dist/actions/archive-a-browser-fingerprint-list-item.d.mts +9 -0
- package/dist/actions/archive-a-browser-fingerprint-list-item.d.mts.map +1 -0
- package/dist/actions/archive-a-browser-fingerprint-list-item.mjs +38 -0
- package/dist/actions/archive-a-browser-fingerprint-list-item.mjs.map +1 -0
- package/dist/actions/archive-a-country-list-item.cjs +53 -0
- package/dist/actions/archive-a-country-list-item.cjs.map +1 -0
- package/dist/actions/archive-a-country-list-item.d.cts +9 -0
- package/dist/actions/archive-a-country-list-item.d.cts.map +1 -0
- package/dist/actions/archive-a-country-list-item.d.mts +9 -0
- package/dist/actions/archive-a-country-list-item.d.mts.map +1 -0
- package/dist/actions/archive-a-country-list-item.mjs +52 -0
- package/dist/actions/archive-a-country-list-item.mjs.map +1 -0
- package/dist/actions/archive-a-geolocation-list-item.cjs +48 -0
- package/dist/actions/archive-a-geolocation-list-item.cjs.map +1 -0
- package/dist/actions/archive-a-geolocation-list-item.d.cts +9 -0
- package/dist/actions/archive-a-geolocation-list-item.d.cts.map +1 -0
- package/dist/actions/archive-a-geolocation-list-item.d.mts +9 -0
- package/dist/actions/archive-a-geolocation-list-item.d.mts.map +1 -0
- package/dist/actions/archive-a-geolocation-list-item.mjs +47 -0
- package/dist/actions/archive-a-geolocation-list-item.mjs.map +1 -0
- package/dist/actions/archive-a-government-id-number-list-item.cjs +38 -0
- package/dist/actions/archive-a-government-id-number-list-item.cjs.map +1 -0
- package/dist/actions/archive-a-government-id-number-list-item.d.cts +9 -0
- package/dist/actions/archive-a-government-id-number-list-item.d.cts.map +1 -0
- package/dist/actions/archive-a-government-id-number-list-item.d.mts +9 -0
- package/dist/actions/archive-a-government-id-number-list-item.d.mts.map +1 -0
- package/dist/actions/archive-a-government-id-number-list-item.mjs +37 -0
- package/dist/actions/archive-a-government-id-number-list-item.mjs.map +1 -0
- package/dist/actions/archive-a-name-list-item.cjs +38 -0
- package/dist/actions/archive-a-name-list-item.cjs.map +1 -0
- package/dist/actions/archive-a-name-list-item.d.cts +9 -0
- package/dist/actions/archive-a-name-list-item.d.cts.map +1 -0
- package/dist/actions/archive-a-name-list-item.d.mts +9 -0
- package/dist/actions/archive-a-name-list-item.d.mts.map +1 -0
- package/dist/actions/archive-a-name-list-item.mjs +37 -0
- package/dist/actions/archive-a-name-list-item.mjs.map +1 -0
- package/dist/actions/archive-a-webhook.cjs +57 -0
- package/dist/actions/archive-a-webhook.cjs.map +1 -0
- package/dist/actions/archive-a-webhook.d.cts +9 -0
- package/dist/actions/archive-a-webhook.d.cts.map +1 -0
- package/dist/actions/archive-a-webhook.d.mts +9 -0
- package/dist/actions/archive-a-webhook.d.mts.map +1 -0
- package/dist/actions/archive-a-webhook.mjs +56 -0
- package/dist/actions/archive-a-webhook.mjs.map +1 -0
- package/dist/actions/archive-email-address-list-item.cjs +54 -0
- package/dist/actions/archive-email-address-list-item.cjs.map +1 -0
- package/dist/actions/archive-email-address-list-item.d.cts +9 -0
- package/dist/actions/archive-email-address-list-item.d.cts.map +1 -0
- package/dist/actions/archive-email-address-list-item.d.mts +9 -0
- package/dist/actions/archive-email-address-list-item.d.mts.map +1 -0
- package/dist/actions/archive-email-address-list-item.mjs +53 -0
- package/dist/actions/archive-email-address-list-item.mjs.map +1 -0
- package/dist/actions/archive-ip-address-list-item.cjs +41 -0
- package/dist/actions/archive-ip-address-list-item.cjs.map +1 -0
- package/dist/actions/archive-ip-address-list-item.d.cts +9 -0
- package/dist/actions/archive-ip-address-list-item.d.cts.map +1 -0
- package/dist/actions/archive-ip-address-list-item.d.mts +9 -0
- package/dist/actions/archive-ip-address-list-item.d.mts.map +1 -0
- package/dist/actions/archive-ip-address-list-item.mjs +40 -0
- package/dist/actions/archive-ip-address-list-item.mjs.map +1 -0
- package/dist/actions/archive-phone-number-list-item.cjs +39 -0
- package/dist/actions/archive-phone-number-list-item.cjs.map +1 -0
- package/dist/actions/archive-phone-number-list-item.d.cts +9 -0
- package/dist/actions/archive-phone-number-list-item.d.cts.map +1 -0
- package/dist/actions/archive-phone-number-list-item.d.mts +9 -0
- package/dist/actions/archive-phone-number-list-item.d.mts.map +1 -0
- package/dist/actions/archive-phone-number-list-item.mjs +38 -0
- package/dist/actions/archive-phone-number-list-item.mjs.map +1 -0
- package/dist/actions/archive-string-list-item.cjs +53 -0
- package/dist/actions/archive-string-list-item.cjs.map +1 -0
- package/dist/actions/archive-string-list-item.d.cts +9 -0
- package/dist/actions/archive-string-list-item.d.cts.map +1 -0
- package/dist/actions/archive-string-list-item.d.mts +9 -0
- package/dist/actions/archive-string-list-item.d.mts.map +1 -0
- package/dist/actions/archive-string-list-item.mjs +52 -0
- package/dist/actions/archive-string-list-item.mjs.map +1 -0
- package/dist/actions/clone-webhook.cjs +53 -0
- package/dist/actions/clone-webhook.cjs.map +1 -0
- package/dist/actions/clone-webhook.d.cts +9 -0
- package/dist/actions/clone-webhook.d.cts.map +1 -0
- package/dist/actions/clone-webhook.d.mts +9 -0
- package/dist/actions/clone-webhook.d.mts.map +1 -0
- package/dist/actions/clone-webhook.mjs +52 -0
- package/dist/actions/clone-webhook.mjs.map +1 -0
- package/dist/actions/consolidate-into-account.cjs +35 -0
- package/dist/actions/consolidate-into-account.cjs.map +1 -0
- package/dist/actions/consolidate-into-account.d.cts +9 -0
- package/dist/actions/consolidate-into-account.d.cts.map +1 -0
- package/dist/actions/consolidate-into-account.d.mts +9 -0
- package/dist/actions/consolidate-into-account.d.mts.map +1 -0
- package/dist/actions/consolidate-into-account.mjs +34 -0
- package/dist/actions/consolidate-into-account.mjs.map +1 -0
- package/dist/actions/create-an-account.cjs +100 -0
- package/dist/actions/create-an-account.cjs.map +1 -0
- package/dist/actions/create-an-account.d.cts +9 -0
- package/dist/actions/create-an-account.d.cts.map +1 -0
- package/dist/actions/create-an-account.d.mts +9 -0
- package/dist/actions/create-an-account.d.mts.map +1 -0
- package/dist/actions/create-an-account.mjs +99 -0
- package/dist/actions/create-an-account.mjs.map +1 -0
- package/dist/actions/create-an-ip-address-list-item.cjs +47 -0
- package/dist/actions/create-an-ip-address-list-item.cjs.map +1 -0
- package/dist/actions/create-an-ip-address-list-item.d.cts +9 -0
- package/dist/actions/create-an-ip-address-list-item.d.cts.map +1 -0
- package/dist/actions/create-an-ip-address-list-item.d.mts +9 -0
- package/dist/actions/create-an-ip-address-list-item.d.mts.map +1 -0
- package/dist/actions/create-an-ip-address-list-item.mjs +46 -0
- package/dist/actions/create-an-ip-address-list-item.mjs.map +1 -0
- package/dist/actions/create-country-list-item.cjs +60 -0
- package/dist/actions/create-country-list-item.cjs.map +1 -0
- package/dist/actions/create-country-list-item.d.cts +9 -0
- package/dist/actions/create-country-list-item.d.cts.map +1 -0
- package/dist/actions/create-country-list-item.d.mts +9 -0
- package/dist/actions/create-country-list-item.d.mts.map +1 -0
- package/dist/actions/create-country-list-item.mjs +59 -0
- package/dist/actions/create-country-list-item.mjs.map +1 -0
- package/dist/actions/create-document-generic.cjs +75 -0
- package/dist/actions/create-document-generic.cjs.map +1 -0
- package/dist/actions/create-document-generic.d.cts +9 -0
- package/dist/actions/create-document-generic.d.cts.map +1 -0
- package/dist/actions/create-document-generic.d.mts +9 -0
- package/dist/actions/create-document-generic.d.mts.map +1 -0
- package/dist/actions/create-document-generic.mjs +74 -0
- package/dist/actions/create-document-generic.mjs.map +1 -0
- package/dist/actions/create-email-address-list-item.cjs +44 -0
- package/dist/actions/create-email-address-list-item.cjs.map +1 -0
- package/dist/actions/create-email-address-list-item.d.cts +9 -0
- package/dist/actions/create-email-address-list-item.d.cts.map +1 -0
- package/dist/actions/create-email-address-list-item.d.mts +9 -0
- package/dist/actions/create-email-address-list-item.d.mts.map +1 -0
- package/dist/actions/create-email-address-list-item.mjs +43 -0
- package/dist/actions/create-email-address-list-item.mjs.map +1 -0
- package/dist/actions/create-government-id-number-list-item.cjs +42 -0
- package/dist/actions/create-government-id-number-list-item.cjs.map +1 -0
- package/dist/actions/create-government-id-number-list-item.d.cts +9 -0
- package/dist/actions/create-government-id-number-list-item.d.cts.map +1 -0
- package/dist/actions/create-government-id-number-list-item.d.mts +9 -0
- package/dist/actions/create-government-id-number-list-item.d.mts.map +1 -0
- package/dist/actions/create-government-id-number-list-item.mjs +41 -0
- package/dist/actions/create-government-id-number-list-item.mjs.map +1 -0
- package/dist/actions/create-name-list-item.cjs +47 -0
- package/dist/actions/create-name-list-item.cjs.map +1 -0
- package/dist/actions/create-name-list-item.d.cts +9 -0
- package/dist/actions/create-name-list-item.d.cts.map +1 -0
- package/dist/actions/create-name-list-item.d.mts +9 -0
- package/dist/actions/create-name-list-item.d.mts.map +1 -0
- package/dist/actions/create-name-list-item.mjs +46 -0
- package/dist/actions/create-name-list-item.mjs.map +1 -0
- package/dist/actions/create-phone-number-list-item.cjs +45 -0
- package/dist/actions/create-phone-number-list-item.cjs.map +1 -0
- package/dist/actions/create-phone-number-list-item.d.cts +9 -0
- package/dist/actions/create-phone-number-list-item.d.cts.map +1 -0
- package/dist/actions/create-phone-number-list-item.d.mts +9 -0
- package/dist/actions/create-phone-number-list-item.d.mts.map +1 -0
- package/dist/actions/create-phone-number-list-item.mjs +44 -0
- package/dist/actions/create-phone-number-list-item.mjs.map +1 -0
- package/dist/actions/create-string-list-item.cjs +44 -0
- package/dist/actions/create-string-list-item.cjs.map +1 -0
- package/dist/actions/create-string-list-item.d.cts +9 -0
- package/dist/actions/create-string-list-item.d.cts.map +1 -0
- package/dist/actions/create-string-list-item.d.mts +9 -0
- package/dist/actions/create-string-list-item.d.mts.map +1 -0
- package/dist/actions/create-string-list-item.mjs +43 -0
- package/dist/actions/create-string-list-item.mjs.map +1 -0
- package/dist/actions/create-webhook.cjs +72 -0
- package/dist/actions/create-webhook.cjs.map +1 -0
- package/dist/actions/create-webhook.d.cts +9 -0
- package/dist/actions/create-webhook.d.cts.map +1 -0
- package/dist/actions/create-webhook.d.mts +9 -0
- package/dist/actions/create-webhook.d.mts.map +1 -0
- package/dist/actions/create-webhook.mjs +71 -0
- package/dist/actions/create-webhook.mjs.map +1 -0
- package/dist/actions/disable-webhook.cjs +57 -0
- package/dist/actions/disable-webhook.cjs.map +1 -0
- package/dist/actions/disable-webhook.d.cts +9 -0
- package/dist/actions/disable-webhook.d.cts.map +1 -0
- package/dist/actions/disable-webhook.d.mts +9 -0
- package/dist/actions/disable-webhook.d.mts.map +1 -0
- package/dist/actions/disable-webhook.mjs +56 -0
- package/dist/actions/disable-webhook.mjs.map +1 -0
- package/dist/actions/enable-webhook.cjs +56 -0
- package/dist/actions/enable-webhook.cjs.map +1 -0
- package/dist/actions/enable-webhook.d.cts +9 -0
- package/dist/actions/enable-webhook.d.cts.map +1 -0
- package/dist/actions/enable-webhook.d.mts +9 -0
- package/dist/actions/enable-webhook.d.mts.map +1 -0
- package/dist/actions/enable-webhook.mjs +55 -0
- package/dist/actions/enable-webhook.mjs.map +1 -0
- package/dist/actions/expire-inquiry-sessions.cjs +58 -0
- package/dist/actions/expire-inquiry-sessions.cjs.map +1 -0
- package/dist/actions/expire-inquiry-sessions.d.cts +9 -0
- package/dist/actions/expire-inquiry-sessions.d.cts.map +1 -0
- package/dist/actions/expire-inquiry-sessions.d.mts +9 -0
- package/dist/actions/expire-inquiry-sessions.d.mts.map +1 -0
- package/dist/actions/expire-inquiry-sessions.mjs +57 -0
- package/dist/actions/expire-inquiry-sessions.mjs.map +1 -0
- package/dist/actions/import-email-address-lists.cjs +36 -0
- package/dist/actions/import-email-address-lists.cjs.map +1 -0
- package/dist/actions/import-email-address-lists.d.cts +9 -0
- package/dist/actions/import-email-address-lists.d.cts.map +1 -0
- package/dist/actions/import-email-address-lists.d.mts +9 -0
- package/dist/actions/import-email-address-lists.d.mts.map +1 -0
- package/dist/actions/import-email-address-lists.mjs +35 -0
- package/dist/actions/import-email-address-lists.mjs.map +1 -0
- package/dist/actions/import-ip-address-lists.cjs +44 -0
- package/dist/actions/import-ip-address-lists.cjs.map +1 -0
- package/dist/actions/import-ip-address-lists.d.cts +9 -0
- package/dist/actions/import-ip-address-lists.d.cts.map +1 -0
- package/dist/actions/import-ip-address-lists.d.mts +9 -0
- package/dist/actions/import-ip-address-lists.d.mts.map +1 -0
- package/dist/actions/import-ip-address-lists.mjs +43 -0
- package/dist/actions/import-ip-address-lists.mjs.map +1 -0
- package/dist/actions/import-name-lists.cjs +35 -0
- package/dist/actions/import-name-lists.cjs.map +1 -0
- package/dist/actions/import-name-lists.d.cts +9 -0
- package/dist/actions/import-name-lists.d.cts.map +1 -0
- package/dist/actions/import-name-lists.d.mts +9 -0
- package/dist/actions/import-name-lists.d.mts.map +1 -0
- package/dist/actions/import-name-lists.mjs +34 -0
- package/dist/actions/import-name-lists.mjs.map +1 -0
- package/dist/actions/import-phone-number-lists.cjs +44 -0
- package/dist/actions/import-phone-number-lists.cjs.map +1 -0
- package/dist/actions/import-phone-number-lists.d.cts +9 -0
- package/dist/actions/import-phone-number-lists.d.cts.map +1 -0
- package/dist/actions/import-phone-number-lists.d.mts +9 -0
- package/dist/actions/import-phone-number-lists.d.mts.map +1 -0
- package/dist/actions/import-phone-number-lists.mjs +43 -0
- package/dist/actions/import-phone-number-lists.mjs.map +1 -0
- package/dist/actions/index.cjs +139 -0
- package/dist/actions/index.d.cts +70 -0
- package/dist/actions/index.d.mts +70 -0
- package/dist/actions/index.mjs +70 -0
- package/dist/actions/list-all-accounts.cjs +64 -0
- package/dist/actions/list-all-accounts.cjs.map +1 -0
- package/dist/actions/list-all-accounts.d.cts +9 -0
- package/dist/actions/list-all-accounts.d.cts.map +1 -0
- package/dist/actions/list-all-accounts.d.mts +9 -0
- package/dist/actions/list-all-accounts.d.mts.map +1 -0
- package/dist/actions/list-all-accounts.mjs +63 -0
- package/dist/actions/list-all-accounts.mjs.map +1 -0
- package/dist/actions/list-all-api-logs.cjs +62 -0
- package/dist/actions/list-all-api-logs.cjs.map +1 -0
- package/dist/actions/list-all-api-logs.d.cts +9 -0
- package/dist/actions/list-all-api-logs.d.cts.map +1 -0
- package/dist/actions/list-all-api-logs.d.mts +9 -0
- package/dist/actions/list-all-api-logs.d.mts.map +1 -0
- package/dist/actions/list-all-api-logs.mjs +61 -0
- package/dist/actions/list-all-api-logs.mjs.map +1 -0
- package/dist/actions/list-all-cases.cjs +73 -0
- package/dist/actions/list-all-cases.cjs.map +1 -0
- package/dist/actions/list-all-cases.d.cts +9 -0
- package/dist/actions/list-all-cases.d.cts.map +1 -0
- package/dist/actions/list-all-cases.d.mts +9 -0
- package/dist/actions/list-all-cases.d.mts.map +1 -0
- package/dist/actions/list-all-cases.mjs +72 -0
- package/dist/actions/list-all-cases.mjs.map +1 -0
- package/dist/actions/list-all-devices.cjs +54 -0
- package/dist/actions/list-all-devices.cjs.map +1 -0
- package/dist/actions/list-all-devices.d.cts +9 -0
- package/dist/actions/list-all-devices.d.cts.map +1 -0
- package/dist/actions/list-all-devices.d.mts +9 -0
- package/dist/actions/list-all-devices.d.mts.map +1 -0
- package/dist/actions/list-all-devices.mjs +53 -0
- package/dist/actions/list-all-devices.mjs.map +1 -0
- package/dist/actions/list-all-events.cjs +56 -0
- package/dist/actions/list-all-events.cjs.map +1 -0
- package/dist/actions/list-all-events.d.cts +9 -0
- package/dist/actions/list-all-events.d.cts.map +1 -0
- package/dist/actions/list-all-events.d.mts +9 -0
- package/dist/actions/list-all-events.d.mts.map +1 -0
- package/dist/actions/list-all-events.mjs +55 -0
- package/dist/actions/list-all-events.mjs.map +1 -0
- package/dist/actions/list-all-importers.cjs +58 -0
- package/dist/actions/list-all-importers.cjs.map +1 -0
- package/dist/actions/list-all-importers.d.cts +9 -0
- package/dist/actions/list-all-importers.d.cts.map +1 -0
- package/dist/actions/list-all-importers.d.mts +9 -0
- package/dist/actions/list-all-importers.d.mts.map +1 -0
- package/dist/actions/list-all-importers.mjs +57 -0
- package/dist/actions/list-all-importers.mjs.map +1 -0
- package/dist/actions/list-all-inquiries.cjs +68 -0
- package/dist/actions/list-all-inquiries.cjs.map +1 -0
- package/dist/actions/list-all-inquiries.d.cts +9 -0
- package/dist/actions/list-all-inquiries.d.cts.map +1 -0
- package/dist/actions/list-all-inquiries.d.mts +9 -0
- package/dist/actions/list-all-inquiries.d.mts.map +1 -0
- package/dist/actions/list-all-inquiries.mjs +67 -0
- package/dist/actions/list-all-inquiries.mjs.map +1 -0
- package/dist/actions/list-all-inquiry-sessions.cjs +64 -0
- package/dist/actions/list-all-inquiry-sessions.cjs.map +1 -0
- package/dist/actions/list-all-inquiry-sessions.d.cts +9 -0
- package/dist/actions/list-all-inquiry-sessions.d.cts.map +1 -0
- package/dist/actions/list-all-inquiry-sessions.d.mts +9 -0
- package/dist/actions/list-all-inquiry-sessions.d.mts.map +1 -0
- package/dist/actions/list-all-inquiry-sessions.mjs +63 -0
- package/dist/actions/list-all-inquiry-sessions.mjs.map +1 -0
- package/dist/actions/list-all-lists.cjs +51 -0
- package/dist/actions/list-all-lists.cjs.map +1 -0
- package/dist/actions/list-all-lists.d.cts +9 -0
- package/dist/actions/list-all-lists.d.cts.map +1 -0
- package/dist/actions/list-all-lists.d.mts +9 -0
- package/dist/actions/list-all-lists.d.mts.map +1 -0
- package/dist/actions/list-all-lists.mjs +50 -0
- package/dist/actions/list-all-lists.mjs.map +1 -0
- package/dist/actions/list-all-rate-limits.cjs +45 -0
- package/dist/actions/list-all-rate-limits.cjs.map +1 -0
- package/dist/actions/list-all-rate-limits.d.cts +9 -0
- package/dist/actions/list-all-rate-limits.d.cts.map +1 -0
- package/dist/actions/list-all-rate-limits.d.mts +9 -0
- package/dist/actions/list-all-rate-limits.d.mts.map +1 -0
- package/dist/actions/list-all-rate-limits.mjs +44 -0
- package/dist/actions/list-all-rate-limits.mjs.map +1 -0
- package/dist/actions/list-all-reports.cjs +72 -0
- package/dist/actions/list-all-reports.cjs.map +1 -0
- package/dist/actions/list-all-reports.d.cts +9 -0
- package/dist/actions/list-all-reports.d.cts.map +1 -0
- package/dist/actions/list-all-reports.d.mts +9 -0
- package/dist/actions/list-all-reports.d.mts.map +1 -0
- package/dist/actions/list-all-reports.mjs +71 -0
- package/dist/actions/list-all-reports.mjs.map +1 -0
- package/dist/actions/list-all-transactions.cjs +68 -0
- package/dist/actions/list-all-transactions.cjs.map +1 -0
- package/dist/actions/list-all-transactions.d.cts +9 -0
- package/dist/actions/list-all-transactions.d.cts.map +1 -0
- package/dist/actions/list-all-transactions.d.mts +9 -0
- package/dist/actions/list-all-transactions.d.mts.map +1 -0
- package/dist/actions/list-all-transactions.mjs +67 -0
- package/dist/actions/list-all-transactions.mjs.map +1 -0
- package/dist/actions/list-all-webhooks.cjs +65 -0
- package/dist/actions/list-all-webhooks.cjs.map +1 -0
- package/dist/actions/list-all-webhooks.d.cts +9 -0
- package/dist/actions/list-all-webhooks.d.cts.map +1 -0
- package/dist/actions/list-all-webhooks.d.mts +9 -0
- package/dist/actions/list-all-webhooks.d.mts.map +1 -0
- package/dist/actions/list-all-webhooks.mjs +64 -0
- package/dist/actions/list-all-webhooks.mjs.map +1 -0
- package/dist/actions/list-all-workflow-runs.cjs +69 -0
- package/dist/actions/list-all-workflow-runs.cjs.map +1 -0
- package/dist/actions/list-all-workflow-runs.d.cts +9 -0
- package/dist/actions/list-all-workflow-runs.d.cts.map +1 -0
- package/dist/actions/list-all-workflow-runs.d.mts +9 -0
- package/dist/actions/list-all-workflow-runs.d.mts.map +1 -0
- package/dist/actions/list-all-workflow-runs.mjs +68 -0
- package/dist/actions/list-all-workflow-runs.mjs.map +1 -0
- package/dist/actions/redact-an-account.cjs +62 -0
- package/dist/actions/redact-an-account.cjs.map +1 -0
- package/dist/actions/redact-an-account.d.cts +9 -0
- package/dist/actions/redact-an-account.d.cts.map +1 -0
- package/dist/actions/redact-an-account.d.mts +9 -0
- package/dist/actions/redact-an-account.d.mts.map +1 -0
- package/dist/actions/redact-an-account.mjs +61 -0
- package/dist/actions/redact-an-account.mjs.map +1 -0
- package/dist/actions/remove-account-tag.cjs +51 -0
- package/dist/actions/remove-account-tag.cjs.map +1 -0
- package/dist/actions/remove-account-tag.d.cts +9 -0
- package/dist/actions/remove-account-tag.d.cts.map +1 -0
- package/dist/actions/remove-account-tag.d.mts +9 -0
- package/dist/actions/remove-account-tag.d.mts.map +1 -0
- package/dist/actions/remove-account-tag.mjs +50 -0
- package/dist/actions/remove-account-tag.mjs.map +1 -0
- package/dist/actions/retrieve-a-country-list-item.cjs +53 -0
- package/dist/actions/retrieve-a-country-list-item.cjs.map +1 -0
- package/dist/actions/retrieve-a-country-list-item.d.cts +9 -0
- package/dist/actions/retrieve-a-country-list-item.d.cts.map +1 -0
- package/dist/actions/retrieve-a-country-list-item.d.mts +9 -0
- package/dist/actions/retrieve-a-country-list-item.d.mts.map +1 -0
- package/dist/actions/retrieve-a-country-list-item.mjs +52 -0
- package/dist/actions/retrieve-a-country-list-item.mjs.map +1 -0
- package/dist/actions/retrieve-a-geolocation-list-item.cjs +59 -0
- package/dist/actions/retrieve-a-geolocation-list-item.cjs.map +1 -0
- package/dist/actions/retrieve-a-geolocation-list-item.d.cts +9 -0
- package/dist/actions/retrieve-a-geolocation-list-item.d.cts.map +1 -0
- package/dist/actions/retrieve-a-geolocation-list-item.d.mts +9 -0
- package/dist/actions/retrieve-a-geolocation-list-item.d.mts.map +1 -0
- package/dist/actions/retrieve-a-geolocation-list-item.mjs +58 -0
- package/dist/actions/retrieve-a-geolocation-list-item.mjs.map +1 -0
- package/dist/actions/retrieve-a-name-list-item.cjs +54 -0
- package/dist/actions/retrieve-a-name-list-item.cjs.map +1 -0
- package/dist/actions/retrieve-a-name-list-item.d.cts +9 -0
- package/dist/actions/retrieve-a-name-list-item.d.cts.map +1 -0
- package/dist/actions/retrieve-a-name-list-item.d.mts +9 -0
- package/dist/actions/retrieve-a-name-list-item.d.mts.map +1 -0
- package/dist/actions/retrieve-a-name-list-item.mjs +53 -0
- package/dist/actions/retrieve-a-name-list-item.mjs.map +1 -0
- package/dist/actions/retrieve-a-string-list-item.cjs +53 -0
- package/dist/actions/retrieve-a-string-list-item.cjs.map +1 -0
- package/dist/actions/retrieve-a-string-list-item.d.cts +9 -0
- package/dist/actions/retrieve-a-string-list-item.d.cts.map +1 -0
- package/dist/actions/retrieve-a-string-list-item.d.mts +9 -0
- package/dist/actions/retrieve-a-string-list-item.d.mts.map +1 -0
- package/dist/actions/retrieve-a-string-list-item.mjs +52 -0
- package/dist/actions/retrieve-a-string-list-item.mjs.map +1 -0
- package/dist/actions/retrieve-a-webhook.cjs +63 -0
- package/dist/actions/retrieve-a-webhook.cjs.map +1 -0
- package/dist/actions/retrieve-a-webhook.d.cts +9 -0
- package/dist/actions/retrieve-a-webhook.d.cts.map +1 -0
- package/dist/actions/retrieve-a-webhook.d.mts +9 -0
- package/dist/actions/retrieve-a-webhook.d.mts.map +1 -0
- package/dist/actions/retrieve-a-webhook.mjs +62 -0
- package/dist/actions/retrieve-a-webhook.mjs.map +1 -0
- package/dist/actions/retrieve-an-account.cjs +62 -0
- package/dist/actions/retrieve-an-account.cjs.map +1 -0
- package/dist/actions/retrieve-an-account.d.cts +9 -0
- package/dist/actions/retrieve-an-account.d.cts.map +1 -0
- package/dist/actions/retrieve-an-account.d.mts +9 -0
- package/dist/actions/retrieve-an-account.d.mts.map +1 -0
- package/dist/actions/retrieve-an-account.mjs +61 -0
- package/dist/actions/retrieve-an-account.mjs.map +1 -0
- package/dist/actions/retrieve-an-event.cjs +55 -0
- package/dist/actions/retrieve-an-event.cjs.map +1 -0
- package/dist/actions/retrieve-an-event.d.cts +9 -0
- package/dist/actions/retrieve-an-event.d.cts.map +1 -0
- package/dist/actions/retrieve-an-event.d.mts +9 -0
- package/dist/actions/retrieve-an-event.d.mts.map +1 -0
- package/dist/actions/retrieve-an-event.mjs +54 -0
- package/dist/actions/retrieve-an-event.mjs.map +1 -0
- package/dist/actions/retrieve-an-importer.cjs +52 -0
- package/dist/actions/retrieve-an-importer.cjs.map +1 -0
- package/dist/actions/retrieve-an-importer.d.cts +9 -0
- package/dist/actions/retrieve-an-importer.d.cts.map +1 -0
- package/dist/actions/retrieve-an-importer.d.mts +9 -0
- package/dist/actions/retrieve-an-importer.d.mts.map +1 -0
- package/dist/actions/retrieve-an-importer.mjs +51 -0
- package/dist/actions/retrieve-an-importer.mjs.map +1 -0
- package/dist/actions/retrieve-an-ip-address-list-item.cjs +53 -0
- package/dist/actions/retrieve-an-ip-address-list-item.cjs.map +1 -0
- package/dist/actions/retrieve-an-ip-address-list-item.d.cts +9 -0
- package/dist/actions/retrieve-an-ip-address-list-item.d.cts.map +1 -0
- package/dist/actions/retrieve-an-ip-address-list-item.d.mts +9 -0
- package/dist/actions/retrieve-an-ip-address-list-item.d.mts.map +1 -0
- package/dist/actions/retrieve-an-ip-address-list-item.mjs +52 -0
- package/dist/actions/retrieve-an-ip-address-list-item.mjs.map +1 -0
- package/dist/actions/retrieve-api-log.cjs +65 -0
- package/dist/actions/retrieve-api-log.cjs.map +1 -0
- package/dist/actions/retrieve-api-log.d.cts +9 -0
- package/dist/actions/retrieve-api-log.d.cts.map +1 -0
- package/dist/actions/retrieve-api-log.d.mts +9 -0
- package/dist/actions/retrieve-api-log.d.mts.map +1 -0
- package/dist/actions/retrieve-api-log.mjs +64 -0
- package/dist/actions/retrieve-api-log.mjs.map +1 -0
- package/dist/actions/retrieve-browser-fingerprint-list-item.cjs +52 -0
- package/dist/actions/retrieve-browser-fingerprint-list-item.cjs.map +1 -0
- package/dist/actions/retrieve-browser-fingerprint-list-item.d.cts +9 -0
- package/dist/actions/retrieve-browser-fingerprint-list-item.d.cts.map +1 -0
- package/dist/actions/retrieve-browser-fingerprint-list-item.d.mts +9 -0
- package/dist/actions/retrieve-browser-fingerprint-list-item.d.mts.map +1 -0
- package/dist/actions/retrieve-browser-fingerprint-list-item.mjs +51 -0
- package/dist/actions/retrieve-browser-fingerprint-list-item.mjs.map +1 -0
- package/dist/actions/retrieve-document-generic.cjs +71 -0
- package/dist/actions/retrieve-document-generic.cjs.map +1 -0
- package/dist/actions/retrieve-document-generic.d.cts +9 -0
- package/dist/actions/retrieve-document-generic.d.cts.map +1 -0
- package/dist/actions/retrieve-document-generic.d.mts +9 -0
- package/dist/actions/retrieve-document-generic.d.mts.map +1 -0
- package/dist/actions/retrieve-document-generic.mjs +70 -0
- package/dist/actions/retrieve-document-generic.mjs.map +1 -0
- package/dist/actions/retrieve-document.cjs +83 -0
- package/dist/actions/retrieve-document.cjs.map +1 -0
- package/dist/actions/retrieve-document.d.cts +9 -0
- package/dist/actions/retrieve-document.d.cts.map +1 -0
- package/dist/actions/retrieve-document.d.mts +9 -0
- package/dist/actions/retrieve-document.d.mts.map +1 -0
- package/dist/actions/retrieve-document.mjs +82 -0
- package/dist/actions/retrieve-document.mjs.map +1 -0
- package/dist/actions/retrieve-email-address-list-item.cjs +54 -0
- package/dist/actions/retrieve-email-address-list-item.cjs.map +1 -0
- package/dist/actions/retrieve-email-address-list-item.d.cts +9 -0
- package/dist/actions/retrieve-email-address-list-item.d.cts.map +1 -0
- package/dist/actions/retrieve-email-address-list-item.d.mts +9 -0
- package/dist/actions/retrieve-email-address-list-item.d.mts.map +1 -0
- package/dist/actions/retrieve-email-address-list-item.mjs +53 -0
- package/dist/actions/retrieve-email-address-list-item.mjs.map +1 -0
- package/dist/actions/retrieve-government-id-number-list-item.cjs +54 -0
- package/dist/actions/retrieve-government-id-number-list-item.cjs.map +1 -0
- package/dist/actions/retrieve-government-id-number-list-item.d.cts +9 -0
- package/dist/actions/retrieve-government-id-number-list-item.d.cts.map +1 -0
- package/dist/actions/retrieve-government-id-number-list-item.d.mts +9 -0
- package/dist/actions/retrieve-government-id-number-list-item.d.mts.map +1 -0
- package/dist/actions/retrieve-government-id-number-list-item.mjs +53 -0
- package/dist/actions/retrieve-government-id-number-list-item.mjs.map +1 -0
- package/dist/actions/retrieve-phone-number-list-item.cjs +57 -0
- package/dist/actions/retrieve-phone-number-list-item.cjs.map +1 -0
- package/dist/actions/retrieve-phone-number-list-item.d.cts +9 -0
- package/dist/actions/retrieve-phone-number-list-item.d.cts.map +1 -0
- package/dist/actions/retrieve-phone-number-list-item.d.mts +9 -0
- package/dist/actions/retrieve-phone-number-list-item.d.mts.map +1 -0
- package/dist/actions/retrieve-phone-number-list-item.mjs +56 -0
- package/dist/actions/retrieve-phone-number-list-item.mjs.map +1 -0
- package/dist/actions/rotate-webhook-secret.cjs +60 -0
- package/dist/actions/rotate-webhook-secret.cjs.map +1 -0
- package/dist/actions/rotate-webhook-secret.d.cts +9 -0
- package/dist/actions/rotate-webhook-secret.d.cts.map +1 -0
- package/dist/actions/rotate-webhook-secret.d.mts +9 -0
- package/dist/actions/rotate-webhook-secret.d.mts.map +1 -0
- package/dist/actions/rotate-webhook-secret.mjs +59 -0
- package/dist/actions/rotate-webhook-secret.mjs.map +1 -0
- package/dist/actions/search-accounts.cjs +68 -0
- package/dist/actions/search-accounts.cjs.map +1 -0
- package/dist/actions/search-accounts.d.cts +9 -0
- package/dist/actions/search-accounts.d.cts.map +1 -0
- package/dist/actions/search-accounts.d.mts +9 -0
- package/dist/actions/search-accounts.d.mts.map +1 -0
- package/dist/actions/search-accounts.mjs +67 -0
- package/dist/actions/search-accounts.mjs.map +1 -0
- package/dist/actions/search-cases.cjs +69 -0
- package/dist/actions/search-cases.cjs.map +1 -0
- package/dist/actions/search-cases.d.cts +9 -0
- package/dist/actions/search-cases.d.cts.map +1 -0
- package/dist/actions/search-cases.d.mts +9 -0
- package/dist/actions/search-cases.d.mts.map +1 -0
- package/dist/actions/search-cases.mjs +68 -0
- package/dist/actions/search-cases.mjs.map +1 -0
- package/dist/actions/set-tags.cjs +56 -0
- package/dist/actions/set-tags.cjs.map +1 -0
- package/dist/actions/set-tags.d.cts +9 -0
- package/dist/actions/set-tags.d.cts.map +1 -0
- package/dist/actions/set-tags.d.mts +9 -0
- package/dist/actions/set-tags.d.mts.map +1 -0
- package/dist/actions/set-tags.mjs +55 -0
- package/dist/actions/set-tags.mjs.map +1 -0
- package/dist/actions/update-a-webhook.cjs +67 -0
- package/dist/actions/update-a-webhook.cjs.map +1 -0
- package/dist/actions/update-a-webhook.d.cts +9 -0
- package/dist/actions/update-a-webhook.d.cts.map +1 -0
- package/dist/actions/update-a-webhook.d.mts +9 -0
- package/dist/actions/update-a-webhook.d.mts.map +1 -0
- package/dist/actions/update-a-webhook.mjs +66 -0
- package/dist/actions/update-a-webhook.mjs.map +1 -0
- package/dist/actions/update-an-account.cjs +96 -0
- package/dist/actions/update-an-account.cjs.map +1 -0
- package/dist/actions/update-an-account.d.cts +9 -0
- package/dist/actions/update-an-account.d.cts.map +1 -0
- package/dist/actions/update-an-account.d.mts +9 -0
- package/dist/actions/update-an-account.d.mts.map +1 -0
- package/dist/actions/update-an-account.mjs +95 -0
- package/dist/actions/update-an-account.mjs.map +1 -0
- package/dist/actions/update-document-generic.cjs +86 -0
- package/dist/actions/update-document-generic.cjs.map +1 -0
- package/dist/actions/update-document-generic.d.cts +9 -0
- package/dist/actions/update-document-generic.d.cts.map +1 -0
- package/dist/actions/update-document-generic.d.mts +9 -0
- package/dist/actions/update-document-generic.d.mts.map +1 -0
- package/dist/actions/update-document-generic.mjs +85 -0
- package/dist/actions/update-document-generic.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +144 -0
- package/dist/index.d.cts +72 -0
- package/dist/index.d.mts +72 -0
- package/dist/index.mjs +73 -0
- package/package.json +49 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-phone-number-list-item.ts
|
|
4
|
+
const PersonaCreatePhoneNumberListItemInput = zod.z.object({
|
|
5
|
+
data: zod.z.object({ attributes: zod.z.object({
|
|
6
|
+
value: zod.z.string().describe("The phone number value to add to the list. Should be in E.164 format (e.g., +15555551234)."),
|
|
7
|
+
"list-id": zod.z.string().describe("The ID of the list to add the phone number to. Must be a valid list ID starting with 'lst_'.")
|
|
8
|
+
}).describe("The attributes of the phone number list item to create.") }).describe("The data object containing attributes for the phone number list item."),
|
|
9
|
+
include: zod.z.string().describe("A comma-separated list of relationship paths to include in the response. See Persona serialization docs for details.").optional(),
|
|
10
|
+
"Key-Inflection": zod.z.enum([
|
|
11
|
+
"camel",
|
|
12
|
+
"kebab",
|
|
13
|
+
"snake"
|
|
14
|
+
]).describe("Determines casing for the API response.").optional(),
|
|
15
|
+
"Idempotency-Key": zod.z.string().describe("Ensures the request is idempotent. Use the same key to prevent duplicate creation.").optional()
|
|
16
|
+
}).describe("Request model for creating a phone number list item.");
|
|
17
|
+
const PersonaCreatePhoneNumberListItem_PhoneNumberListItemResponseAttributesSchema = zod.z.object({
|
|
18
|
+
value: zod.z.string().describe("The phone number value stored in this list item."),
|
|
19
|
+
status: zod.z.string().describe("Status of the list item (e.g., active, archived)."),
|
|
20
|
+
"created-at": zod.z.string().describe("ISO 8601 timestamp when the list item was created.").nullable().optional(),
|
|
21
|
+
"updated-at": zod.z.string().describe("ISO 8601 timestamp when the list item was last updated, or null if never updated.").nullable().optional(),
|
|
22
|
+
"archived-at": zod.z.string().describe("ISO 8601 timestamp when the list item was archived, or null if not archived.").nullable().optional(),
|
|
23
|
+
"match-count": zod.z.number().int().describe("Number of matches for this phone number.").nullable().optional(),
|
|
24
|
+
"redacted-at": zod.z.string().describe("ISO 8601 timestamp when the list item was redacted, or null if not redacted.").nullable().optional()
|
|
25
|
+
}).describe("Attributes of a phone number list item in the response.");
|
|
26
|
+
const PersonaCreatePhoneNumberListItem_PhoneNumberListItemRelationshipCreatorSchema = zod.z.object({ data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Creator relationship data.").nullable().optional() }).describe("Creator relationship object.");
|
|
27
|
+
const PersonaCreatePhoneNumberListItem_PhoneNumberListItemRelationshipsSchema = zod.z.object({ creator: PersonaCreatePhoneNumberListItem_PhoneNumberListItemRelationshipCreatorSchema.nullable().optional() }).describe("Relationships for the phone number list item.");
|
|
28
|
+
const PersonaCreatePhoneNumberListItem_PhoneNumberListItemResponseDataSchema = zod.z.object({
|
|
29
|
+
id: zod.z.string().describe("Unique identifier for this list item. Starts with 'lipn_'."),
|
|
30
|
+
type: zod.z.string().describe("Resource type, typically 'list-item/phone-number'."),
|
|
31
|
+
attributes: PersonaCreatePhoneNumberListItem_PhoneNumberListItemResponseAttributesSchema.nullable(),
|
|
32
|
+
relationships: PersonaCreatePhoneNumberListItem_PhoneNumberListItemRelationshipsSchema.nullable().optional()
|
|
33
|
+
}).describe("Response data for a phone number list item.");
|
|
34
|
+
const PersonaCreatePhoneNumberListItemOutput = zod.z.object({ data: PersonaCreatePhoneNumberListItem_PhoneNumberListItemResponseDataSchema.nullable() }).describe("Response model for creating a phone number list item.");
|
|
35
|
+
const personaCreatePhoneNumberListItem = require_action.action("PERSONA_CREATE_PHONE_NUMBER_LIST_ITEM", {
|
|
36
|
+
slug: "persona-create-phone-number-list-item",
|
|
37
|
+
name: "Create Phone Number List Item",
|
|
38
|
+
description: "Tool to create a phone number list item in Persona. Use when you need to add a phone number to a specific list for tracking or verification purposes.",
|
|
39
|
+
input: PersonaCreatePhoneNumberListItemInput,
|
|
40
|
+
output: PersonaCreatePhoneNumberListItemOutput
|
|
41
|
+
});
|
|
42
|
+
//#endregion
|
|
43
|
+
exports.personaCreatePhoneNumberListItem = personaCreatePhoneNumberListItem;
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=create-phone-number-list-item.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-phone-number-list-item.cjs","names":["z","action"],"sources":["../../src/actions/create-phone-number-list-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaCreatePhoneNumberListItemInput: z.ZodTypeAny = z.object({\n data: z.object({\n attributes: z.object({\n value: z.string().describe(\"The phone number value to add to the list. Should be in E.164 format (e.g., +15555551234).\"),\n \"list-id\": z.string().describe(\"The ID of the list to add the phone number to. Must be a valid list ID starting with 'lst_'.\"),\n}).describe(\"The attributes of the phone number list item to create.\"),\n}).describe(\"The data object containing attributes for the phone number list item.\"),\n include: z.string().describe(\"A comma-separated list of relationship paths to include in the response. See Persona serialization docs for details.\").optional(),\n \"Key-Inflection\": z.enum([\"camel\", \"kebab\", \"snake\"]).describe(\"Determines casing for the API response.\").optional(),\n \"Idempotency-Key\": z.string().describe(\"Ensures the request is idempotent. Use the same key to prevent duplicate creation.\").optional(),\n}).describe(\"Request model for creating a phone number list item.\");\nconst PersonaCreatePhoneNumberListItem_PhoneNumberListItemResponseAttributesSchema: z.ZodTypeAny = z.object({\n value: z.string().describe(\"The phone number value stored in this list item.\"),\n status: z.string().describe(\"Status of the list item (e.g., active, archived).\"),\n \"created-at\": z.string().describe(\"ISO 8601 timestamp when the list item was created.\").nullable().optional(),\n \"updated-at\": z.string().describe(\"ISO 8601 timestamp when the list item was last updated, or null if never updated.\").nullable().optional(),\n \"archived-at\": z.string().describe(\"ISO 8601 timestamp when the list item was archived, or null if not archived.\").nullable().optional(),\n \"match-count\": z.number().int().describe(\"Number of matches for this phone number.\").nullable().optional(),\n \"redacted-at\": z.string().describe(\"ISO 8601 timestamp when the list item was redacted, or null if not redacted.\").nullable().optional(),\n}).describe(\"Attributes of a phone number list item in the response.\");\nconst PersonaCreatePhoneNumberListItem_PhoneNumberListItemRelationshipCreatorSchema: z.ZodTypeAny = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Creator relationship data.\").nullable().optional(),\n}).describe(\"Creator relationship object.\");\nconst PersonaCreatePhoneNumberListItem_PhoneNumberListItemRelationshipsSchema: z.ZodTypeAny = z.object({\n creator: PersonaCreatePhoneNumberListItem_PhoneNumberListItemRelationshipCreatorSchema.nullable().optional(),\n}).describe(\"Relationships for the phone number list item.\");\nconst PersonaCreatePhoneNumberListItem_PhoneNumberListItemResponseDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for this list item. Starts with 'lipn_'.\"),\n type: z.string().describe(\"Resource type, typically 'list-item/phone-number'.\"),\n attributes: PersonaCreatePhoneNumberListItem_PhoneNumberListItemResponseAttributesSchema.nullable(),\n relationships: PersonaCreatePhoneNumberListItem_PhoneNumberListItemRelationshipsSchema.nullable().optional(),\n}).describe(\"Response data for a phone number list item.\");\nexport const PersonaCreatePhoneNumberListItemOutput: z.ZodTypeAny = z.object({\n data: PersonaCreatePhoneNumberListItem_PhoneNumberListItemResponseDataSchema.nullable(),\n}).describe(\"Response model for creating a phone number list item.\");\n\nexport const personaCreatePhoneNumberListItem = action(\"PERSONA_CREATE_PHONE_NUMBER_LIST_ITEM\", {\n slug: \"persona-create-phone-number-list-item\",\n name: \"Create Phone Number List Item\",\n description: \"Tool to create a phone number list item in Persona. Use when you need to add a phone number to a specific list for tracking or verification purposes.\",\n input: PersonaCreatePhoneNumberListItemInput,\n output: PersonaCreatePhoneNumberListItemOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAsDA,IAAAA,EAAE,OAAO;CAC1E,MAAMA,IAAAA,EAAE,OAAO,EACf,YAAYA,IAAAA,EAAE,OAAO;EACrB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F;EACvH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F;CAC/H,CAAC,CAAC,CAAC,SAAS,yDAAyD,EACrE,CAAC,CAAC,CAAC,SAAS,uEAAuE;CACjF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CAC9J,kBAAkBA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAS;CAAO,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACnH,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;AACxI,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,+EAA6FA,IAAAA,EAAE,OAAO;CAC1G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAC7E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CAC/E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,CAAC,C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
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-phone-number-list-item.d.ts
|
|
4
|
+
declare const PersonaCreatePhoneNumberListItemInput: z.ZodTypeAny;
|
|
5
|
+
declare const PersonaCreatePhoneNumberListItemOutput: z.ZodTypeAny;
|
|
6
|
+
declare const personaCreatePhoneNumberListItem: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { personaCreatePhoneNumberListItem };
|
|
9
|
+
//# sourceMappingURL=create-phone-number-list-item.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-phone-number-list-item.d.cts","names":[],"sources":["../../src/actions/create-phone-number-list-item.ts"],"mappings":";;;cAIa,qCAAA,EAAuC,CAAA,CAAE,UAUa;AAAA,cAsBtD,sCAAA,EAAwC,CAAA,CAAE,UAEa;AAAA,cAEvD,gCAAA,gCAAgC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-phone-number-list-item.d.ts
|
|
4
|
+
declare const PersonaCreatePhoneNumberListItemInput: z.ZodTypeAny;
|
|
5
|
+
declare const PersonaCreatePhoneNumberListItemOutput: z.ZodTypeAny;
|
|
6
|
+
declare const personaCreatePhoneNumberListItem: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { personaCreatePhoneNumberListItem };
|
|
9
|
+
//# sourceMappingURL=create-phone-number-list-item.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-phone-number-list-item.d.mts","names":[],"sources":["../../src/actions/create-phone-number-list-item.ts"],"mappings":";;;cAIa,qCAAA,EAAuC,CAAA,CAAE,UAUa;AAAA,cAsBtD,sCAAA,EAAwC,CAAA,CAAE,UAEa;AAAA,cAEvD,gCAAA,gCAAgC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/create-phone-number-list-item.ts
|
|
4
|
+
const PersonaCreatePhoneNumberListItemInput = z.object({
|
|
5
|
+
data: z.object({ attributes: z.object({
|
|
6
|
+
value: z.string().describe("The phone number value to add to the list. Should be in E.164 format (e.g., +15555551234)."),
|
|
7
|
+
"list-id": z.string().describe("The ID of the list to add the phone number to. Must be a valid list ID starting with 'lst_'.")
|
|
8
|
+
}).describe("The attributes of the phone number list item to create.") }).describe("The data object containing attributes for the phone number list item."),
|
|
9
|
+
include: z.string().describe("A comma-separated list of relationship paths to include in the response. See Persona serialization docs for details.").optional(),
|
|
10
|
+
"Key-Inflection": z.enum([
|
|
11
|
+
"camel",
|
|
12
|
+
"kebab",
|
|
13
|
+
"snake"
|
|
14
|
+
]).describe("Determines casing for the API response.").optional(),
|
|
15
|
+
"Idempotency-Key": z.string().describe("Ensures the request is idempotent. Use the same key to prevent duplicate creation.").optional()
|
|
16
|
+
}).describe("Request model for creating a phone number list item.");
|
|
17
|
+
const PersonaCreatePhoneNumberListItem_PhoneNumberListItemResponseAttributesSchema = z.object({
|
|
18
|
+
value: z.string().describe("The phone number value stored in this list item."),
|
|
19
|
+
status: z.string().describe("Status of the list item (e.g., active, archived)."),
|
|
20
|
+
"created-at": z.string().describe("ISO 8601 timestamp when the list item was created.").nullable().optional(),
|
|
21
|
+
"updated-at": z.string().describe("ISO 8601 timestamp when the list item was last updated, or null if never updated.").nullable().optional(),
|
|
22
|
+
"archived-at": z.string().describe("ISO 8601 timestamp when the list item was archived, or null if not archived.").nullable().optional(),
|
|
23
|
+
"match-count": z.number().int().describe("Number of matches for this phone number.").nullable().optional(),
|
|
24
|
+
"redacted-at": z.string().describe("ISO 8601 timestamp when the list item was redacted, or null if not redacted.").nullable().optional()
|
|
25
|
+
}).describe("Attributes of a phone number list item in the response.");
|
|
26
|
+
const PersonaCreatePhoneNumberListItem_PhoneNumberListItemRelationshipCreatorSchema = z.object({ data: z.record(z.string(), z.unknown()).describe("Creator relationship data.").nullable().optional() }).describe("Creator relationship object.");
|
|
27
|
+
const PersonaCreatePhoneNumberListItem_PhoneNumberListItemRelationshipsSchema = z.object({ creator: PersonaCreatePhoneNumberListItem_PhoneNumberListItemRelationshipCreatorSchema.nullable().optional() }).describe("Relationships for the phone number list item.");
|
|
28
|
+
const PersonaCreatePhoneNumberListItem_PhoneNumberListItemResponseDataSchema = z.object({
|
|
29
|
+
id: z.string().describe("Unique identifier for this list item. Starts with 'lipn_'."),
|
|
30
|
+
type: z.string().describe("Resource type, typically 'list-item/phone-number'."),
|
|
31
|
+
attributes: PersonaCreatePhoneNumberListItem_PhoneNumberListItemResponseAttributesSchema.nullable(),
|
|
32
|
+
relationships: PersonaCreatePhoneNumberListItem_PhoneNumberListItemRelationshipsSchema.nullable().optional()
|
|
33
|
+
}).describe("Response data for a phone number list item.");
|
|
34
|
+
const personaCreatePhoneNumberListItem = action("PERSONA_CREATE_PHONE_NUMBER_LIST_ITEM", {
|
|
35
|
+
slug: "persona-create-phone-number-list-item",
|
|
36
|
+
name: "Create Phone Number List Item",
|
|
37
|
+
description: "Tool to create a phone number list item in Persona. Use when you need to add a phone number to a specific list for tracking or verification purposes.",
|
|
38
|
+
input: PersonaCreatePhoneNumberListItemInput,
|
|
39
|
+
output: z.object({ data: PersonaCreatePhoneNumberListItem_PhoneNumberListItemResponseDataSchema.nullable() }).describe("Response model for creating a phone number list item.")
|
|
40
|
+
});
|
|
41
|
+
//#endregion
|
|
42
|
+
export { personaCreatePhoneNumberListItem };
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=create-phone-number-list-item.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-phone-number-list-item.mjs","names":[],"sources":["../../src/actions/create-phone-number-list-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaCreatePhoneNumberListItemInput: z.ZodTypeAny = z.object({\n data: z.object({\n attributes: z.object({\n value: z.string().describe(\"The phone number value to add to the list. Should be in E.164 format (e.g., +15555551234).\"),\n \"list-id\": z.string().describe(\"The ID of the list to add the phone number to. Must be a valid list ID starting with 'lst_'.\"),\n}).describe(\"The attributes of the phone number list item to create.\"),\n}).describe(\"The data object containing attributes for the phone number list item.\"),\n include: z.string().describe(\"A comma-separated list of relationship paths to include in the response. See Persona serialization docs for details.\").optional(),\n \"Key-Inflection\": z.enum([\"camel\", \"kebab\", \"snake\"]).describe(\"Determines casing for the API response.\").optional(),\n \"Idempotency-Key\": z.string().describe(\"Ensures the request is idempotent. Use the same key to prevent duplicate creation.\").optional(),\n}).describe(\"Request model for creating a phone number list item.\");\nconst PersonaCreatePhoneNumberListItem_PhoneNumberListItemResponseAttributesSchema: z.ZodTypeAny = z.object({\n value: z.string().describe(\"The phone number value stored in this list item.\"),\n status: z.string().describe(\"Status of the list item (e.g., active, archived).\"),\n \"created-at\": z.string().describe(\"ISO 8601 timestamp when the list item was created.\").nullable().optional(),\n \"updated-at\": z.string().describe(\"ISO 8601 timestamp when the list item was last updated, or null if never updated.\").nullable().optional(),\n \"archived-at\": z.string().describe(\"ISO 8601 timestamp when the list item was archived, or null if not archived.\").nullable().optional(),\n \"match-count\": z.number().int().describe(\"Number of matches for this phone number.\").nullable().optional(),\n \"redacted-at\": z.string().describe(\"ISO 8601 timestamp when the list item was redacted, or null if not redacted.\").nullable().optional(),\n}).describe(\"Attributes of a phone number list item in the response.\");\nconst PersonaCreatePhoneNumberListItem_PhoneNumberListItemRelationshipCreatorSchema: z.ZodTypeAny = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Creator relationship data.\").nullable().optional(),\n}).describe(\"Creator relationship object.\");\nconst PersonaCreatePhoneNumberListItem_PhoneNumberListItemRelationshipsSchema: z.ZodTypeAny = z.object({\n creator: PersonaCreatePhoneNumberListItem_PhoneNumberListItemRelationshipCreatorSchema.nullable().optional(),\n}).describe(\"Relationships for the phone number list item.\");\nconst PersonaCreatePhoneNumberListItem_PhoneNumberListItemResponseDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for this list item. Starts with 'lipn_'.\"),\n type: z.string().describe(\"Resource type, typically 'list-item/phone-number'.\"),\n attributes: PersonaCreatePhoneNumberListItem_PhoneNumberListItemResponseAttributesSchema.nullable(),\n relationships: PersonaCreatePhoneNumberListItem_PhoneNumberListItemRelationshipsSchema.nullable().optional(),\n}).describe(\"Response data for a phone number list item.\");\nexport const PersonaCreatePhoneNumberListItemOutput: z.ZodTypeAny = z.object({\n data: PersonaCreatePhoneNumberListItem_PhoneNumberListItemResponseDataSchema.nullable(),\n}).describe(\"Response model for creating a phone number list item.\");\n\nexport const personaCreatePhoneNumberListItem = action(\"PERSONA_CREATE_PHONE_NUMBER_LIST_ITEM\", {\n slug: \"persona-create-phone-number-list-item\",\n name: \"Create Phone Number List Item\",\n description: \"Tool to create a phone number list item in Persona. Use when you need to add a phone number to a specific list for tracking or verification purposes.\",\n input: PersonaCreatePhoneNumberListItemInput,\n output: PersonaCreatePhoneNumberListItemOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAsD,EAAE,OAAO;CAC1E,MAAM,EAAE,OAAO,EACf,YAAY,EAAE,OAAO;EACrB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F;EACvH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F;CAC/H,CAAC,CAAC,CAAC,SAAS,yDAAyD,EACrE,CAAC,CAAC,CAAC,SAAS,uEAAuE;CAC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AM,yEAAuF,EAAE,OAAO;CACpG,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACpF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAC9E,YAAY,6EAA6E,SAAS;CAClG,eAAe,wEAAwE,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAKzD,MAAa,mCAAmC,OAAO,yCAAyC;CAC9F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkE,EAAE,OAAO,EAC3E,MAAM,uEAAuE,SAAS,EACxF,CAAC,CAAC,CAAC,SAAS,uDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-string-list-item.ts
|
|
4
|
+
const PersonaCreateStringListItemInput = zod.z.object({
|
|
5
|
+
value: zod.z.string().describe("The string value to add to the list."),
|
|
6
|
+
include: zod.z.string().describe("Comma-separated list of relationship paths to include in the response. Customizes which related resources are fully serialized in the 'included' key.").optional(),
|
|
7
|
+
list_id: zod.z.string().describe("The ID of the list to add the string item to. Must be a valid list ID starting with 'lst_'."),
|
|
8
|
+
key_inflection: zod.z.enum([
|
|
9
|
+
"camel",
|
|
10
|
+
"kebab",
|
|
11
|
+
"snake"
|
|
12
|
+
]).describe("Determines casing for the API response.").optional(),
|
|
13
|
+
idempotency_key: zod.z.string().describe("Ensures the request is idempotent. Use the same key for retries to avoid creating duplicate items.").optional()
|
|
14
|
+
});
|
|
15
|
+
const PersonaCreateStringListItem_StringListItemAttributesSchema = zod.z.object({
|
|
16
|
+
value: zod.z.string().describe("The string value of the list item."),
|
|
17
|
+
status: zod.z.string().describe("The status of the list item."),
|
|
18
|
+
createdAt: zod.z.string().describe("Timestamp when the list item was created.").nullable().optional(),
|
|
19
|
+
updatedAt: zod.z.string().describe("Timestamp when the list item was last updated.").nullable().optional(),
|
|
20
|
+
archivedAt: zod.z.string().describe("Timestamp when the list item was archived, if applicable.").nullable().optional(),
|
|
21
|
+
matchCount: zod.z.number().int().describe("Number of matches for this list item.").nullable().optional(),
|
|
22
|
+
redactedAt: zod.z.string().describe("Timestamp when the list item was redacted, if applicable.").nullable().optional(),
|
|
23
|
+
inquiryMatches: zod.z.array(zod.z.object({})).describe("List of inquiry matches for this list item.").nullable().optional()
|
|
24
|
+
});
|
|
25
|
+
const PersonaCreateStringListItem_CreatorRelationshipSchema = zod.z.object({ data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Creator relationship data.").nullable().optional() });
|
|
26
|
+
const PersonaCreateStringListItem_StringListItemRelationshipsSchema = zod.z.object({ creator: PersonaCreateStringListItem_CreatorRelationshipSchema.nullable().optional() });
|
|
27
|
+
const PersonaCreateStringListItem_StringListItemDataSchema = zod.z.object({
|
|
28
|
+
id: zod.z.string().describe("The unique identifier of the list item."),
|
|
29
|
+
type: zod.z.string().describe("The type of the resource."),
|
|
30
|
+
attributes: PersonaCreateStringListItem_StringListItemAttributesSchema.nullable(),
|
|
31
|
+
relationships: PersonaCreateStringListItem_StringListItemRelationshipsSchema.nullable().optional()
|
|
32
|
+
});
|
|
33
|
+
const PersonaCreateStringListItemOutput = zod.z.object({ data: PersonaCreateStringListItem_StringListItemDataSchema.nullable() });
|
|
34
|
+
const personaCreateStringListItem = require_action.action("PERSONA_CREATE_STRING_LIST_ITEM", {
|
|
35
|
+
slug: "persona-create-string-list-item",
|
|
36
|
+
name: "Create String List Item",
|
|
37
|
+
description: "Tool to create a String List Item in Persona. Use when adding a new string value to an existing list for matching or filtering purposes.",
|
|
38
|
+
input: PersonaCreateStringListItemInput,
|
|
39
|
+
output: PersonaCreateStringListItemOutput
|
|
40
|
+
});
|
|
41
|
+
//#endregion
|
|
42
|
+
exports.personaCreateStringListItem = personaCreateStringListItem;
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=create-string-list-item.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-string-list-item.cjs","names":["z","action"],"sources":["../../src/actions/create-string-list-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaCreateStringListItemInput: z.ZodTypeAny = z.object({\n value: z.string().describe(\"The string value to add to the list.\"),\n include: z.string().describe(\"Comma-separated list of relationship paths to include in the response. Customizes which related resources are fully serialized in the 'included' key.\").optional(),\n list_id: z.string().describe(\"The ID of the list to add the string item to. Must be a valid list ID starting with 'lst_'.\"),\n key_inflection: z.enum([\"camel\", \"kebab\", \"snake\"]).describe(\"Determines casing for the API response.\").optional(),\n idempotency_key: z.string().describe(\"Ensures the request is idempotent. Use the same key for retries to avoid creating duplicate items.\").optional(),\n});\nconst PersonaCreateStringListItem_StringListItemAttributesSchema: z.ZodTypeAny = z.object({\n value: z.string().describe(\"The string value of the list item.\"),\n status: z.string().describe(\"The status of the list item.\"),\n createdAt: z.string().describe(\"Timestamp when the list item was created.\").nullable().optional(),\n updatedAt: z.string().describe(\"Timestamp when the list item was last updated.\").nullable().optional(),\n archivedAt: z.string().describe(\"Timestamp when the list item was archived, if applicable.\").nullable().optional(),\n matchCount: z.number().int().describe(\"Number of matches for this list item.\").nullable().optional(),\n redactedAt: z.string().describe(\"Timestamp when the list item was redacted, if applicable.\").nullable().optional(),\n inquiryMatches: z.array(z.object({})).describe(\"List of inquiry matches for this list item.\").nullable().optional(),\n});\nconst PersonaCreateStringListItem_CreatorRelationshipSchema: z.ZodTypeAny = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Creator relationship data.\").nullable().optional(),\n});\nconst PersonaCreateStringListItem_StringListItemRelationshipsSchema: z.ZodTypeAny = z.object({\n creator: PersonaCreateStringListItem_CreatorRelationshipSchema.nullable().optional(),\n});\nconst PersonaCreateStringListItem_StringListItemDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the list item.\"),\n type: z.string().describe(\"The type of the resource.\"),\n attributes: PersonaCreateStringListItem_StringListItemAttributesSchema.nullable(),\n relationships: PersonaCreateStringListItem_StringListItemRelationshipsSchema.nullable().optional(),\n});\nexport const PersonaCreateStringListItemOutput: z.ZodTypeAny = z.object({\n data: PersonaCreateStringListItem_StringListItemDataSchema.nullable(),\n});\n\nexport const personaCreateStringListItem = action(\"PERSONA_CREATE_STRING_LIST_ITEM\", {\n slug: \"persona-create-string-list-item\",\n name: \"Create String List Item\",\n description: \"Tool to create a String List Item in Persona. Use when adding a new string value to an existing list for matching or filtering purposes.\",\n input: PersonaCreateStringListItemInput,\n output: PersonaCreateStringListItemOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uJAAuJ,CAAC,CAAC,SAAS;CAC/L,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;CAC1H,gBAAgBA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAS;CAAO,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACjH,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;AACtJ,CAAC;AACD,MAAM,6DAA2EA,IAAAA,EAAE,OAAO;CACxF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC/D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC1D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS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
|
4
|
+
declare const PersonaCreateStringListItemInput: z.ZodTypeAny;
|
|
5
|
+
declare const PersonaCreateStringListItemOutput: z.ZodTypeAny;
|
|
6
|
+
declare const personaCreateStringListItem: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { personaCreateStringListItem };
|
|
9
|
+
//# sourceMappingURL=create-string-list-item.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-string-list-item.d.cts","names":[],"sources":["../../src/actions/create-string-list-item.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAM/C;AAAA,cAuBW,iCAAA,EAAmC,CAAA,CAAE,UAEhD;AAAA,cAEW,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-string-list-item.d.ts
|
|
4
|
+
declare const PersonaCreateStringListItemInput: z.ZodTypeAny;
|
|
5
|
+
declare const PersonaCreateStringListItemOutput: z.ZodTypeAny;
|
|
6
|
+
declare const personaCreateStringListItem: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { personaCreateStringListItem };
|
|
9
|
+
//# sourceMappingURL=create-string-list-item.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-string-list-item.d.mts","names":[],"sources":["../../src/actions/create-string-list-item.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAM/C;AAAA,cAuBW,iCAAA,EAAmC,CAAA,CAAE,UAEhD;AAAA,cAEW,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/create-string-list-item.ts
|
|
4
|
+
const PersonaCreateStringListItemInput = z.object({
|
|
5
|
+
value: z.string().describe("The string value to add to the list."),
|
|
6
|
+
include: z.string().describe("Comma-separated list of relationship paths to include in the response. Customizes which related resources are fully serialized in the 'included' key.").optional(),
|
|
7
|
+
list_id: z.string().describe("The ID of the list to add the string item to. Must be a valid list ID starting with 'lst_'."),
|
|
8
|
+
key_inflection: z.enum([
|
|
9
|
+
"camel",
|
|
10
|
+
"kebab",
|
|
11
|
+
"snake"
|
|
12
|
+
]).describe("Determines casing for the API response.").optional(),
|
|
13
|
+
idempotency_key: z.string().describe("Ensures the request is idempotent. Use the same key for retries to avoid creating duplicate items.").optional()
|
|
14
|
+
});
|
|
15
|
+
const PersonaCreateStringListItem_StringListItemAttributesSchema = z.object({
|
|
16
|
+
value: z.string().describe("The string value of the list item."),
|
|
17
|
+
status: z.string().describe("The status of the list item."),
|
|
18
|
+
createdAt: z.string().describe("Timestamp when the list item was created.").nullable().optional(),
|
|
19
|
+
updatedAt: z.string().describe("Timestamp when the list item was last updated.").nullable().optional(),
|
|
20
|
+
archivedAt: z.string().describe("Timestamp when the list item was archived, if applicable.").nullable().optional(),
|
|
21
|
+
matchCount: z.number().int().describe("Number of matches for this list item.").nullable().optional(),
|
|
22
|
+
redactedAt: z.string().describe("Timestamp when the list item was redacted, if applicable.").nullable().optional(),
|
|
23
|
+
inquiryMatches: z.array(z.object({})).describe("List of inquiry matches for this list item.").nullable().optional()
|
|
24
|
+
});
|
|
25
|
+
const PersonaCreateStringListItem_CreatorRelationshipSchema = z.object({ data: z.record(z.string(), z.unknown()).describe("Creator relationship data.").nullable().optional() });
|
|
26
|
+
const PersonaCreateStringListItem_StringListItemRelationshipsSchema = z.object({ creator: PersonaCreateStringListItem_CreatorRelationshipSchema.nullable().optional() });
|
|
27
|
+
const PersonaCreateStringListItem_StringListItemDataSchema = z.object({
|
|
28
|
+
id: z.string().describe("The unique identifier of the list item."),
|
|
29
|
+
type: z.string().describe("The type of the resource."),
|
|
30
|
+
attributes: PersonaCreateStringListItem_StringListItemAttributesSchema.nullable(),
|
|
31
|
+
relationships: PersonaCreateStringListItem_StringListItemRelationshipsSchema.nullable().optional()
|
|
32
|
+
});
|
|
33
|
+
const personaCreateStringListItem = action("PERSONA_CREATE_STRING_LIST_ITEM", {
|
|
34
|
+
slug: "persona-create-string-list-item",
|
|
35
|
+
name: "Create String List Item",
|
|
36
|
+
description: "Tool to create a String List Item in Persona. Use when adding a new string value to an existing list for matching or filtering purposes.",
|
|
37
|
+
input: PersonaCreateStringListItemInput,
|
|
38
|
+
output: z.object({ data: PersonaCreateStringListItem_StringListItemDataSchema.nullable() })
|
|
39
|
+
});
|
|
40
|
+
//#endregion
|
|
41
|
+
export { personaCreateStringListItem };
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=create-string-list-item.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-string-list-item.mjs","names":[],"sources":["../../src/actions/create-string-list-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaCreateStringListItemInput: z.ZodTypeAny = z.object({\n value: z.string().describe(\"The string value to add to the list.\"),\n include: z.string().describe(\"Comma-separated list of relationship paths to include in the response. Customizes which related resources are fully serialized in the 'included' key.\").optional(),\n list_id: z.string().describe(\"The ID of the list to add the string item to. Must be a valid list ID starting with 'lst_'.\"),\n key_inflection: z.enum([\"camel\", \"kebab\", \"snake\"]).describe(\"Determines casing for the API response.\").optional(),\n idempotency_key: z.string().describe(\"Ensures the request is idempotent. Use the same key for retries to avoid creating duplicate items.\").optional(),\n});\nconst PersonaCreateStringListItem_StringListItemAttributesSchema: z.ZodTypeAny = z.object({\n value: z.string().describe(\"The string value of the list item.\"),\n status: z.string().describe(\"The status of the list item.\"),\n createdAt: z.string().describe(\"Timestamp when the list item was created.\").nullable().optional(),\n updatedAt: z.string().describe(\"Timestamp when the list item was last updated.\").nullable().optional(),\n archivedAt: z.string().describe(\"Timestamp when the list item was archived, if applicable.\").nullable().optional(),\n matchCount: z.number().int().describe(\"Number of matches for this list item.\").nullable().optional(),\n redactedAt: z.string().describe(\"Timestamp when the list item was redacted, if applicable.\").nullable().optional(),\n inquiryMatches: z.array(z.object({})).describe(\"List of inquiry matches for this list item.\").nullable().optional(),\n});\nconst PersonaCreateStringListItem_CreatorRelationshipSchema: z.ZodTypeAny = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Creator relationship data.\").nullable().optional(),\n});\nconst PersonaCreateStringListItem_StringListItemRelationshipsSchema: z.ZodTypeAny = z.object({\n creator: PersonaCreateStringListItem_CreatorRelationshipSchema.nullable().optional(),\n});\nconst PersonaCreateStringListItem_StringListItemDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the list item.\"),\n type: z.string().describe(\"The type of the resource.\"),\n attributes: PersonaCreateStringListItem_StringListItemAttributesSchema.nullable(),\n relationships: PersonaCreateStringListItem_StringListItemRelationshipsSchema.nullable().optional(),\n});\nexport const PersonaCreateStringListItemOutput: z.ZodTypeAny = z.object({\n data: PersonaCreateStringListItem_StringListItemDataSchema.nullable(),\n});\n\nexport const personaCreateStringListItem = action(\"PERSONA_CREATE_STRING_LIST_ITEM\", {\n slug: \"persona-create-string-list-item\",\n name: \"Create String List Item\",\n description: \"Tool to create a String List Item in Persona. Use when adding a new string value to an existing list for matching or filtering purposes.\",\n input: PersonaCreateStringListItemInput,\n output: PersonaCreateStringListItemOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiD,EAAE,OAAO;CACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACjE,SAAS,EAAE,O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,CAAC,CAAC,SAAS,EACrF,CAAC;AACD,MAAM,uDAAqE,EAAE,OAAO;CAClF,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,YAAY,2DAA2D,SAAS;CAChF,eAAe,8DAA8D,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC;AAKD,MAAa,8BAA8B,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT6D,EAAE,OAAO,EACtE,MAAM,qDAAqD,SAAS,EACtE,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-webhook.ts
|
|
4
|
+
const PersonaCreateWebhookInput = zod.z.object({
|
|
5
|
+
url: zod.z.string().describe("Target URL where webhook events will be sent. Must be a valid HTTPS endpoint."),
|
|
6
|
+
name: zod.z.string().describe("Name of the webhook for identification purposes."),
|
|
7
|
+
fields: zod.z.string().describe("Comma-separated list of attributes to include in the response for customization.").optional(),
|
|
8
|
+
include: zod.z.string().describe("A comma-separated list of relationship paths to include in the response.").optional(),
|
|
9
|
+
api_version: zod.z.string().describe("API version to use for this webhook. If not specified, uses the account's default version.").optional(),
|
|
10
|
+
description: zod.z.string().describe("Human-readable description of the webhook's purpose.").optional(),
|
|
11
|
+
enabled_events: zod.z.array(zod.z.string()).describe("List of event types that will trigger this webhook. Common events include 'account.created', 'inquiry.completed', 'verification.passed', etc."),
|
|
12
|
+
key_inflection: zod.z.enum([
|
|
13
|
+
"camel",
|
|
14
|
+
"kebab",
|
|
15
|
+
"snake"
|
|
16
|
+
]).describe("Determines casing for the API response.").optional(),
|
|
17
|
+
payload_filter: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Filter configuration to limit which events trigger the webhook based on payload attributes.").optional(),
|
|
18
|
+
idempotency_key: zod.z.string().describe("Ensures the request is idempotent. Use the same key for duplicate requests to prevent creating multiple webhooks.").optional(),
|
|
19
|
+
persona_version: zod.z.enum([
|
|
20
|
+
"2025-12-08",
|
|
21
|
+
"2025-10-27",
|
|
22
|
+
"2023-01-05",
|
|
23
|
+
"2022-09-01",
|
|
24
|
+
"2021-08-18",
|
|
25
|
+
"2021-07-05",
|
|
26
|
+
"2021-02-21",
|
|
27
|
+
"2020-05-18"
|
|
28
|
+
]).describe("Persona API version.").optional(),
|
|
29
|
+
api_key_inflection: zod.z.string().describe("Casing format for API keys in webhook payload (camel, kebab, or snake).").optional(),
|
|
30
|
+
custom_http_headers: zod.z.object({}).describe("Custom HTTP headers to include in webhook requests for authentication or routing.").optional(),
|
|
31
|
+
api_attributes_blocklist: zod.z.array(zod.z.string()).describe("List of attributes to exclude from the webhook payload for security or data minimization.").optional(),
|
|
32
|
+
file_access_token_expires_in: zod.z.number().int().describe("Duration in seconds for file access token expiration. Controls how long file URLs in webhook payloads remain valid.").optional()
|
|
33
|
+
}).describe("Request model for creating a Persona webhook.");
|
|
34
|
+
const PersonaCreateWebhook_SecretObjectSchema = zod.z.object({
|
|
35
|
+
value: zod.z.string().describe("The secret value."),
|
|
36
|
+
"expires-at": zod.z.string().describe("Expiration timestamp for the secret.").nullable().optional()
|
|
37
|
+
}).describe("Secret object containing value and expiration.");
|
|
38
|
+
const PersonaCreateWebhook_WebhookAttributesSchema = zod.z.object({
|
|
39
|
+
url: zod.z.string().describe("Target URL where webhook events are sent.").nullable().optional(),
|
|
40
|
+
name: zod.z.string().describe("Name of the webhook.").nullable().optional(),
|
|
41
|
+
secret: zod.z.string().describe("Secret key used to sign webhook requests for verification.").nullable().optional(),
|
|
42
|
+
status: zod.z.string().describe("Current status of the webhook (e.g., enabled, disabled).").nullable().optional(),
|
|
43
|
+
secrets: zod.z.array(PersonaCreateWebhook_SecretObjectSchema).describe("List of secret objects for webhook signing rotation.").nullable().optional(),
|
|
44
|
+
created_at: zod.z.string().describe("ISO 8601 timestamp when the webhook was created.").nullable().optional(),
|
|
45
|
+
api_version: zod.z.string().describe("API version used for this webhook.").nullable().optional(),
|
|
46
|
+
description: zod.z.string().describe("Human-readable description of the webhook.").nullable().optional(),
|
|
47
|
+
enabled_events: zod.z.array(zod.z.string()).describe("List of event types that trigger this webhook.").nullable().optional(),
|
|
48
|
+
payload_filter: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Filter configuration for webhook payload.").nullable().optional(),
|
|
49
|
+
api_key_inflection: zod.z.string().describe("Casing format for API keys in webhook payload.").nullable().optional(),
|
|
50
|
+
api_attributes_blocklist: zod.z.array(zod.z.string()).describe("List of attributes excluded from webhook payload.").nullable().optional(),
|
|
51
|
+
file_access_token_expires_in: zod.z.number().int().describe("Duration in seconds for file access token expiration.").nullable().optional()
|
|
52
|
+
}).describe("Attributes of a Persona webhook object.");
|
|
53
|
+
const PersonaCreateWebhook_WebhookDataSchema = zod.z.object({
|
|
54
|
+
id: zod.z.string().describe("Unique identifier for the webhook."),
|
|
55
|
+
type: zod.z.string().describe("Resource type, typically 'webhook'."),
|
|
56
|
+
attributes: PersonaCreateWebhook_WebhookAttributesSchema.nullable().optional()
|
|
57
|
+
}).describe("Webhook data object returned by Persona API.");
|
|
58
|
+
const PersonaCreateWebhookOutput = zod.z.object({
|
|
59
|
+
data: PersonaCreateWebhook_WebhookDataSchema.nullable(),
|
|
60
|
+
included: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Related resources included in the response when requested via 'include' parameter.").nullable().optional()
|
|
61
|
+
}).describe("Response model for the created webhook.");
|
|
62
|
+
const personaCreateWebhook = require_action.action("PERSONA_CREATE_WEBHOOK", {
|
|
63
|
+
slug: "persona-create-webhook",
|
|
64
|
+
name: "Create Webhook",
|
|
65
|
+
description: "Tool to create a new webhook in Persona. Use when you need to set up real-time notifications for specific events in your Persona account. The webhook will send POST requests to your URL when enabled events occur.",
|
|
66
|
+
input: PersonaCreateWebhookInput,
|
|
67
|
+
output: PersonaCreateWebhookOutput
|
|
68
|
+
});
|
|
69
|
+
//#endregion
|
|
70
|
+
exports.personaCreateWebhook = personaCreateWebhook;
|
|
71
|
+
|
|
72
|
+
//# sourceMappingURL=create-webhook.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-webhook.cjs","names":["z","action"],"sources":["../../src/actions/create-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaCreateWebhookInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Target URL where webhook events will be sent. Must be a valid HTTPS endpoint.\"),\n name: z.string().describe(\"Name of the webhook for identification purposes.\"),\n fields: z.string().describe(\"Comma-separated list of attributes to include in the response for customization.\").optional(),\n include: z.string().describe(\"A comma-separated list of relationship paths to include in the response.\").optional(),\n api_version: z.string().describe(\"API version to use for this webhook. If not specified, uses the account's default version.\").optional(),\n description: z.string().describe(\"Human-readable description of the webhook's purpose.\").optional(),\n enabled_events: z.array(z.string()).describe(\"List of event types that will trigger this webhook. Common events include 'account.created', 'inquiry.completed', 'verification.passed', etc.\"),\n key_inflection: z.enum([\"camel\", \"kebab\", \"snake\"]).describe(\"Determines casing for the API response.\").optional(),\n payload_filter: z.record(z.string(), z.unknown()).describe(\"Filter configuration to limit which events trigger the webhook based on payload attributes.\").optional(),\n idempotency_key: z.string().describe(\"Ensures the request is idempotent. Use the same key for duplicate requests to prevent creating multiple webhooks.\").optional(),\n persona_version: z.enum([\"2025-12-08\", \"2025-10-27\", \"2023-01-05\", \"2022-09-01\", \"2021-08-18\", \"2021-07-05\", \"2021-02-21\", \"2020-05-18\"]).describe(\"Persona API version.\").optional(),\n api_key_inflection: z.string().describe(\"Casing format for API keys in webhook payload (camel, kebab, or snake).\").optional(),\n custom_http_headers: z.object({}).describe(\"Custom HTTP headers to include in webhook requests for authentication or routing.\").optional(),\n api_attributes_blocklist: z.array(z.string()).describe(\"List of attributes to exclude from the webhook payload for security or data minimization.\").optional(),\n file_access_token_expires_in: z.number().int().describe(\"Duration in seconds for file access token expiration. Controls how long file URLs in webhook payloads remain valid.\").optional(),\n}).describe(\"Request model for creating a Persona webhook.\");\nconst PersonaCreateWebhook_SecretObjectSchema: z.ZodTypeAny = z.object({\n value: z.string().describe(\"The secret value.\"),\n \"expires-at\": z.string().describe(\"Expiration timestamp for the secret.\").nullable().optional(),\n}).describe(\"Secret object containing value and expiration.\");\nconst PersonaCreateWebhook_WebhookAttributesSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Target URL where webhook events are sent.\").nullable().optional(),\n name: z.string().describe(\"Name of the webhook.\").nullable().optional(),\n secret: z.string().describe(\"Secret key used to sign webhook requests for verification.\").nullable().optional(),\n status: z.string().describe(\"Current status of the webhook (e.g., enabled, disabled).\").nullable().optional(),\n secrets: z.array(PersonaCreateWebhook_SecretObjectSchema).describe(\"List of secret objects for webhook signing rotation.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the webhook was created.\").nullable().optional(),\n api_version: z.string().describe(\"API version used for this webhook.\").nullable().optional(),\n description: z.string().describe(\"Human-readable description of the webhook.\").nullable().optional(),\n enabled_events: z.array(z.string()).describe(\"List of event types that trigger this webhook.\").nullable().optional(),\n payload_filter: z.record(z.string(), z.unknown()).describe(\"Filter configuration for webhook payload.\").nullable().optional(),\n api_key_inflection: z.string().describe(\"Casing format for API keys in webhook payload.\").nullable().optional(),\n api_attributes_blocklist: z.array(z.string()).describe(\"List of attributes excluded from webhook payload.\").nullable().optional(),\n file_access_token_expires_in: z.number().int().describe(\"Duration in seconds for file access token expiration.\").nullable().optional(),\n}).describe(\"Attributes of a Persona webhook object.\");\nconst PersonaCreateWebhook_WebhookDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the webhook.\"),\n type: z.string().describe(\"Resource type, typically 'webhook'.\"),\n attributes: PersonaCreateWebhook_WebhookAttributesSchema.nullable().optional(),\n}).describe(\"Webhook data object returned by Persona API.\");\nexport const PersonaCreateWebhookOutput: z.ZodTypeAny = z.object({\n data: PersonaCreateWebhook_WebhookDataSchema.nullable(),\n included: z.array(z.record(z.string(), z.unknown())).describe(\"Related resources included in the response when requested via 'include' parameter.\").nullable().optional(),\n}).describe(\"Response model for the created webhook.\");\n\nexport const personaCreateWebhook = action(\"PERSONA_CREATE_WEBHOOK\", {\n slug: \"persona-create-webhook\",\n name: \"Create Webhook\",\n description: \"Tool to create a new webhook in Persona. Use when you need to set up real-time notifications for specific events in your Persona account. The webhook will send POST requests to your URL when enabled events occur.\",\n input: PersonaCreateWebhookInput,\n output: PersonaCreateWebhookOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CACxG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAC5E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CACzH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAClH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CACxI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAClG,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+IAA+I;CAC5L,gBAAgBA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAS;CAAO,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACjH,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CACnK,iBAAiBA,IAAAA,EAAE,O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CAAqC;CAC/D,YAAY,6CAA6C,SAAS,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,MAAM,uCAAuC,SAAS;CACtD,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1K,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAErD,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-webhook.d.ts
|
|
4
|
+
declare const PersonaCreateWebhookInput: z.ZodTypeAny;
|
|
5
|
+
declare const PersonaCreateWebhookOutput: z.ZodTypeAny;
|
|
6
|
+
declare const personaCreateWebhook: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { personaCreateWebhook };
|
|
9
|
+
//# sourceMappingURL=create-webhook.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-webhook.d.cts","names":[],"sources":["../../src/actions/create-webhook.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAgBkB;AAAA,cAyB/C,0BAAA,EAA4B,CAAA,CAAE,UAGW;AAAA,cAEzC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-webhook.d.ts
|
|
4
|
+
declare const PersonaCreateWebhookInput: z.ZodTypeAny;
|
|
5
|
+
declare const PersonaCreateWebhookOutput: z.ZodTypeAny;
|
|
6
|
+
declare const personaCreateWebhook: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { personaCreateWebhook };
|
|
9
|
+
//# sourceMappingURL=create-webhook.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-webhook.d.mts","names":[],"sources":["../../src/actions/create-webhook.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAgBkB;AAAA,cAyB/C,0BAAA,EAA4B,CAAA,CAAE,UAGW;AAAA,cAEzC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/create-webhook.ts
|
|
4
|
+
const PersonaCreateWebhookInput = z.object({
|
|
5
|
+
url: z.string().describe("Target URL where webhook events will be sent. Must be a valid HTTPS endpoint."),
|
|
6
|
+
name: z.string().describe("Name of the webhook for identification purposes."),
|
|
7
|
+
fields: z.string().describe("Comma-separated list of attributes to include in the response for customization.").optional(),
|
|
8
|
+
include: z.string().describe("A comma-separated list of relationship paths to include in the response.").optional(),
|
|
9
|
+
api_version: z.string().describe("API version to use for this webhook. If not specified, uses the account's default version.").optional(),
|
|
10
|
+
description: z.string().describe("Human-readable description of the webhook's purpose.").optional(),
|
|
11
|
+
enabled_events: z.array(z.string()).describe("List of event types that will trigger this webhook. Common events include 'account.created', 'inquiry.completed', 'verification.passed', etc."),
|
|
12
|
+
key_inflection: z.enum([
|
|
13
|
+
"camel",
|
|
14
|
+
"kebab",
|
|
15
|
+
"snake"
|
|
16
|
+
]).describe("Determines casing for the API response.").optional(),
|
|
17
|
+
payload_filter: z.record(z.string(), z.unknown()).describe("Filter configuration to limit which events trigger the webhook based on payload attributes.").optional(),
|
|
18
|
+
idempotency_key: z.string().describe("Ensures the request is idempotent. Use the same key for duplicate requests to prevent creating multiple webhooks.").optional(),
|
|
19
|
+
persona_version: z.enum([
|
|
20
|
+
"2025-12-08",
|
|
21
|
+
"2025-10-27",
|
|
22
|
+
"2023-01-05",
|
|
23
|
+
"2022-09-01",
|
|
24
|
+
"2021-08-18",
|
|
25
|
+
"2021-07-05",
|
|
26
|
+
"2021-02-21",
|
|
27
|
+
"2020-05-18"
|
|
28
|
+
]).describe("Persona API version.").optional(),
|
|
29
|
+
api_key_inflection: z.string().describe("Casing format for API keys in webhook payload (camel, kebab, or snake).").optional(),
|
|
30
|
+
custom_http_headers: z.object({}).describe("Custom HTTP headers to include in webhook requests for authentication or routing.").optional(),
|
|
31
|
+
api_attributes_blocklist: z.array(z.string()).describe("List of attributes to exclude from the webhook payload for security or data minimization.").optional(),
|
|
32
|
+
file_access_token_expires_in: z.number().int().describe("Duration in seconds for file access token expiration. Controls how long file URLs in webhook payloads remain valid.").optional()
|
|
33
|
+
}).describe("Request model for creating a Persona webhook.");
|
|
34
|
+
const PersonaCreateWebhook_SecretObjectSchema = z.object({
|
|
35
|
+
value: z.string().describe("The secret value."),
|
|
36
|
+
"expires-at": z.string().describe("Expiration timestamp for the secret.").nullable().optional()
|
|
37
|
+
}).describe("Secret object containing value and expiration.");
|
|
38
|
+
const PersonaCreateWebhook_WebhookAttributesSchema = z.object({
|
|
39
|
+
url: z.string().describe("Target URL where webhook events are sent.").nullable().optional(),
|
|
40
|
+
name: z.string().describe("Name of the webhook.").nullable().optional(),
|
|
41
|
+
secret: z.string().describe("Secret key used to sign webhook requests for verification.").nullable().optional(),
|
|
42
|
+
status: z.string().describe("Current status of the webhook (e.g., enabled, disabled).").nullable().optional(),
|
|
43
|
+
secrets: z.array(PersonaCreateWebhook_SecretObjectSchema).describe("List of secret objects for webhook signing rotation.").nullable().optional(),
|
|
44
|
+
created_at: z.string().describe("ISO 8601 timestamp when the webhook was created.").nullable().optional(),
|
|
45
|
+
api_version: z.string().describe("API version used for this webhook.").nullable().optional(),
|
|
46
|
+
description: z.string().describe("Human-readable description of the webhook.").nullable().optional(),
|
|
47
|
+
enabled_events: z.array(z.string()).describe("List of event types that trigger this webhook.").nullable().optional(),
|
|
48
|
+
payload_filter: z.record(z.string(), z.unknown()).describe("Filter configuration for webhook payload.").nullable().optional(),
|
|
49
|
+
api_key_inflection: z.string().describe("Casing format for API keys in webhook payload.").nullable().optional(),
|
|
50
|
+
api_attributes_blocklist: z.array(z.string()).describe("List of attributes excluded from webhook payload.").nullable().optional(),
|
|
51
|
+
file_access_token_expires_in: z.number().int().describe("Duration in seconds for file access token expiration.").nullable().optional()
|
|
52
|
+
}).describe("Attributes of a Persona webhook object.");
|
|
53
|
+
const PersonaCreateWebhook_WebhookDataSchema = z.object({
|
|
54
|
+
id: z.string().describe("Unique identifier for the webhook."),
|
|
55
|
+
type: z.string().describe("Resource type, typically 'webhook'."),
|
|
56
|
+
attributes: PersonaCreateWebhook_WebhookAttributesSchema.nullable().optional()
|
|
57
|
+
}).describe("Webhook data object returned by Persona API.");
|
|
58
|
+
const personaCreateWebhook = action("PERSONA_CREATE_WEBHOOK", {
|
|
59
|
+
slug: "persona-create-webhook",
|
|
60
|
+
name: "Create Webhook",
|
|
61
|
+
description: "Tool to create a new webhook in Persona. Use when you need to set up real-time notifications for specific events in your Persona account. The webhook will send POST requests to your URL when enabled events occur.",
|
|
62
|
+
input: PersonaCreateWebhookInput,
|
|
63
|
+
output: z.object({
|
|
64
|
+
data: PersonaCreateWebhook_WebhookDataSchema.nullable(),
|
|
65
|
+
included: z.array(z.record(z.string(), z.unknown())).describe("Related resources included in the response when requested via 'include' parameter.").nullable().optional()
|
|
66
|
+
}).describe("Response model for the created webhook.")
|
|
67
|
+
});
|
|
68
|
+
//#endregion
|
|
69
|
+
export { personaCreateWebhook };
|
|
70
|
+
|
|
71
|
+
//# sourceMappingURL=create-webhook.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-webhook.mjs","names":[],"sources":["../../src/actions/create-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaCreateWebhookInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Target URL where webhook events will be sent. Must be a valid HTTPS endpoint.\"),\n name: z.string().describe(\"Name of the webhook for identification purposes.\"),\n fields: z.string().describe(\"Comma-separated list of attributes to include in the response for customization.\").optional(),\n include: z.string().describe(\"A comma-separated list of relationship paths to include in the response.\").optional(),\n api_version: z.string().describe(\"API version to use for this webhook. If not specified, uses the account's default version.\").optional(),\n description: z.string().describe(\"Human-readable description of the webhook's purpose.\").optional(),\n enabled_events: z.array(z.string()).describe(\"List of event types that will trigger this webhook. Common events include 'account.created', 'inquiry.completed', 'verification.passed', etc.\"),\n key_inflection: z.enum([\"camel\", \"kebab\", \"snake\"]).describe(\"Determines casing for the API response.\").optional(),\n payload_filter: z.record(z.string(), z.unknown()).describe(\"Filter configuration to limit which events trigger the webhook based on payload attributes.\").optional(),\n idempotency_key: z.string().describe(\"Ensures the request is idempotent. Use the same key for duplicate requests to prevent creating multiple webhooks.\").optional(),\n persona_version: z.enum([\"2025-12-08\", \"2025-10-27\", \"2023-01-05\", \"2022-09-01\", \"2021-08-18\", \"2021-07-05\", \"2021-02-21\", \"2020-05-18\"]).describe(\"Persona API version.\").optional(),\n api_key_inflection: z.string().describe(\"Casing format for API keys in webhook payload (camel, kebab, or snake).\").optional(),\n custom_http_headers: z.object({}).describe(\"Custom HTTP headers to include in webhook requests for authentication or routing.\").optional(),\n api_attributes_blocklist: z.array(z.string()).describe(\"List of attributes to exclude from the webhook payload for security or data minimization.\").optional(),\n file_access_token_expires_in: z.number().int().describe(\"Duration in seconds for file access token expiration. Controls how long file URLs in webhook payloads remain valid.\").optional(),\n}).describe(\"Request model for creating a Persona webhook.\");\nconst PersonaCreateWebhook_SecretObjectSchema: z.ZodTypeAny = z.object({\n value: z.string().describe(\"The secret value.\"),\n \"expires-at\": z.string().describe(\"Expiration timestamp for the secret.\").nullable().optional(),\n}).describe(\"Secret object containing value and expiration.\");\nconst PersonaCreateWebhook_WebhookAttributesSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Target URL where webhook events are sent.\").nullable().optional(),\n name: z.string().describe(\"Name of the webhook.\").nullable().optional(),\n secret: z.string().describe(\"Secret key used to sign webhook requests for verification.\").nullable().optional(),\n status: z.string().describe(\"Current status of the webhook (e.g., enabled, disabled).\").nullable().optional(),\n secrets: z.array(PersonaCreateWebhook_SecretObjectSchema).describe(\"List of secret objects for webhook signing rotation.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the webhook was created.\").nullable().optional(),\n api_version: z.string().describe(\"API version used for this webhook.\").nullable().optional(),\n description: z.string().describe(\"Human-readable description of the webhook.\").nullable().optional(),\n enabled_events: z.array(z.string()).describe(\"List of event types that trigger this webhook.\").nullable().optional(),\n payload_filter: z.record(z.string(), z.unknown()).describe(\"Filter configuration for webhook payload.\").nullable().optional(),\n api_key_inflection: z.string().describe(\"Casing format for API keys in webhook payload.\").nullable().optional(),\n api_attributes_blocklist: z.array(z.string()).describe(\"List of attributes excluded from webhook payload.\").nullable().optional(),\n file_access_token_expires_in: z.number().int().describe(\"Duration in seconds for file access token expiration.\").nullable().optional(),\n}).describe(\"Attributes of a Persona webhook object.\");\nconst PersonaCreateWebhook_WebhookDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the webhook.\"),\n type: z.string().describe(\"Resource type, typically 'webhook'.\"),\n attributes: PersonaCreateWebhook_WebhookAttributesSchema.nullable().optional(),\n}).describe(\"Webhook data object returned by Persona API.\");\nexport const PersonaCreateWebhookOutput: z.ZodTypeAny = z.object({\n data: PersonaCreateWebhook_WebhookDataSchema.nullable(),\n included: z.array(z.record(z.string(), z.unknown())).describe(\"Related resources included in the response when requested via 'include' parameter.\").nullable().optional(),\n}).describe(\"Response model for the created webhook.\");\n\nexport const personaCreateWebhook = action(\"PERSONA_CREATE_WEBHOOK\", {\n slug: \"persona-create-webhook\",\n name: \"Create Webhook\",\n description: \"Tool to create a new webhook in Persona. Use when you need to set up real-time notifications for specific events in your Persona account. The webhook will send POST requests to your URL when enabled events occur.\",\n input: PersonaCreateWebhookInput,\n output: PersonaCreateWebhookOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO;CAC9D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CACxG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAC5E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CACzH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAClH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CACxI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAClG,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+IAA+I;CAC5L,gBAAgB,EAAE,KAAK;EAAC;EAAS;EAAS;CAAO,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACjH,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CACnK,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;CACnK,iBAAiB,EAAE,KAAK;EAAC;EAAc;EAAc;EAAc;EAAc;EA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AC,SAAS;CAC1K,CAAC,CAAC,CAAC,SAAS,yCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/disable-webhook.ts
|
|
4
|
+
const PersonaDisableWebhookInput = zod.z.object({
|
|
5
|
+
fields: zod.z.object({}).describe("Comma-separated list(s) of attributes to include in the response. This can be used to customize which attributes will be serialized in the response.").optional(),
|
|
6
|
+
include: zod.z.string().describe("A comma-separated list of relationship paths. This can be used to customize which related resources will be fully serialized in the 'included' key in the response. See Serialization for more details.").optional(),
|
|
7
|
+
webhook_id: zod.z.string().describe("Webhook's ID (starts with 'wbh_')"),
|
|
8
|
+
key_inflection: zod.z.enum([
|
|
9
|
+
"camel",
|
|
10
|
+
"kebab",
|
|
11
|
+
"snake"
|
|
12
|
+
]).describe("Casing options for API response.").optional(),
|
|
13
|
+
idempotency_key: zod.z.string().describe("Ensures the request is idempotent").optional(),
|
|
14
|
+
persona_version: zod.z.enum([
|
|
15
|
+
"2025-12-08",
|
|
16
|
+
"2025-10-27",
|
|
17
|
+
"2023-01-05",
|
|
18
|
+
"2022-09-01",
|
|
19
|
+
"2021-08-18",
|
|
20
|
+
"2021-07-05",
|
|
21
|
+
"2021-02-21",
|
|
22
|
+
"2020-05-18"
|
|
23
|
+
]).describe("Persona API version options.").optional()
|
|
24
|
+
}).describe("Request model for disabling a webhook.");
|
|
25
|
+
const PersonaDisableWebhook_WebhookAttributesSchema = zod.z.object({
|
|
26
|
+
url: zod.z.string().describe("URL of the webhook endpoint").nullable().optional(),
|
|
27
|
+
name: zod.z.string().describe("Name of the webhook").nullable().optional(),
|
|
28
|
+
status: zod.z.string().describe("Status of the webhook").nullable().optional(),
|
|
29
|
+
"created-at": zod.z.string().describe("Timestamp when the webhook was created").nullable().optional(),
|
|
30
|
+
"api-version": zod.z.string().describe("API version used by the webhook").nullable().optional(),
|
|
31
|
+
description: zod.z.string().describe("Description of the webhook").nullable().optional(),
|
|
32
|
+
"enabled-events": zod.z.array(zod.z.string()).describe("List of events enabled for this webhook").nullable().optional(),
|
|
33
|
+
"payload-filter": zod.z.object({}).describe("Payload filter configuration").nullable().optional(),
|
|
34
|
+
"api-key-inflection": zod.z.string().describe("API key inflection setting").nullable().optional(),
|
|
35
|
+
"api-attributes-blocklist": zod.z.array(zod.z.string()).describe("List of API attributes to blocklist").nullable().optional(),
|
|
36
|
+
"file-access-token-expires-in": zod.z.number().int().describe("File access token expiration time in seconds").nullable().optional()
|
|
37
|
+
}).describe("Webhook attributes in the response.");
|
|
38
|
+
const PersonaDisableWebhook_WebhookDataSchema = zod.z.object({
|
|
39
|
+
id: zod.z.string().describe("Webhook ID").nullable().optional(),
|
|
40
|
+
type: zod.z.string().describe("Resource type").nullable().optional(),
|
|
41
|
+
attributes: PersonaDisableWebhook_WebhookAttributesSchema.nullable().optional()
|
|
42
|
+
}).describe("Webhook data object in the response.");
|
|
43
|
+
const PersonaDisableWebhookOutput = zod.z.object({
|
|
44
|
+
data: PersonaDisableWebhook_WebhookDataSchema.nullable(),
|
|
45
|
+
included: zod.z.array(zod.z.object({})).describe("Excluded from the response by default. Will be an empty array when the 'include' query parameter in the request was explicitly set to empty.").nullable().optional()
|
|
46
|
+
}).describe("Response model for disabling a webhook.");
|
|
47
|
+
const personaDisableWebhook = require_action.action("PERSONA_DISABLE_WEBHOOK", {
|
|
48
|
+
slug: "persona-disable-webhook",
|
|
49
|
+
name: "Disable Webhook",
|
|
50
|
+
description: "Tool to disable a webhook in Persona. Use when you need to stop a webhook from receiving events without deleting it.",
|
|
51
|
+
input: PersonaDisableWebhookInput,
|
|
52
|
+
output: PersonaDisableWebhookOutput
|
|
53
|
+
});
|
|
54
|
+
//#endregion
|
|
55
|
+
exports.personaDisableWebhook = personaDisableWebhook;
|
|
56
|
+
|
|
57
|
+
//# sourceMappingURL=disable-webhook.cjs.map
|