@keystrokehq/persona 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-tag-to-account.cjs +1 -0
- package/dist/actions/add-tag-to-account.cjs.map +1 -1
- package/dist/actions/add-tag-to-account.d.cts +3 -23
- package/dist/actions/add-tag-to-account.d.cts.map +1 -1
- package/dist/actions/add-tag-to-account.d.mts +3 -23
- package/dist/actions/add-tag-to-account.d.mts.map +1 -1
- package/dist/actions/add-tag-to-account.mjs +1 -0
- package/dist/actions/add-tag-to-account.mjs.map +1 -1
- package/dist/actions/archive-a-browser-fingerprint-list-item.cjs +1 -0
- package/dist/actions/archive-a-browser-fingerprint-list-item.cjs.map +1 -1
- package/dist/actions/archive-a-browser-fingerprint-list-item.d.cts +3 -18
- package/dist/actions/archive-a-browser-fingerprint-list-item.d.cts.map +1 -1
- package/dist/actions/archive-a-browser-fingerprint-list-item.d.mts +3 -18
- package/dist/actions/archive-a-browser-fingerprint-list-item.d.mts.map +1 -1
- package/dist/actions/archive-a-browser-fingerprint-list-item.mjs +1 -0
- package/dist/actions/archive-a-browser-fingerprint-list-item.mjs.map +1 -1
- package/dist/actions/archive-a-country-list-item.cjs +1 -0
- package/dist/actions/archive-a-country-list-item.cjs.map +1 -1
- package/dist/actions/archive-a-country-list-item.d.cts +3 -20
- package/dist/actions/archive-a-country-list-item.d.cts.map +1 -1
- package/dist/actions/archive-a-country-list-item.d.mts +3 -20
- package/dist/actions/archive-a-country-list-item.d.mts.map +1 -1
- package/dist/actions/archive-a-country-list-item.mjs +1 -0
- package/dist/actions/archive-a-country-list-item.mjs.map +1 -1
- package/dist/actions/archive-a-geolocation-list-item.cjs +1 -0
- package/dist/actions/archive-a-geolocation-list-item.cjs.map +1 -1
- package/dist/actions/archive-a-geolocation-list-item.d.cts +3 -18
- package/dist/actions/archive-a-geolocation-list-item.d.cts.map +1 -1
- package/dist/actions/archive-a-geolocation-list-item.d.mts +3 -18
- package/dist/actions/archive-a-geolocation-list-item.d.mts.map +1 -1
- package/dist/actions/archive-a-geolocation-list-item.mjs +1 -0
- package/dist/actions/archive-a-geolocation-list-item.mjs.map +1 -1
- package/dist/actions/archive-a-government-id-number-list-item.cjs +1 -0
- package/dist/actions/archive-a-government-id-number-list-item.cjs.map +1 -1
- package/dist/actions/archive-a-government-id-number-list-item.d.cts +3 -18
- package/dist/actions/archive-a-government-id-number-list-item.d.cts.map +1 -1
- package/dist/actions/archive-a-government-id-number-list-item.d.mts +3 -18
- package/dist/actions/archive-a-government-id-number-list-item.d.mts.map +1 -1
- package/dist/actions/archive-a-government-id-number-list-item.mjs +1 -0
- package/dist/actions/archive-a-government-id-number-list-item.mjs.map +1 -1
- package/dist/actions/archive-a-name-list-item.cjs +1 -0
- package/dist/actions/archive-a-name-list-item.cjs.map +1 -1
- package/dist/actions/archive-a-name-list-item.d.cts +3 -15
- package/dist/actions/archive-a-name-list-item.d.cts.map +1 -1
- package/dist/actions/archive-a-name-list-item.d.mts +3 -15
- package/dist/actions/archive-a-name-list-item.d.mts.map +1 -1
- package/dist/actions/archive-a-name-list-item.mjs +1 -0
- package/dist/actions/archive-a-name-list-item.mjs.map +1 -1
- package/dist/actions/archive-a-webhook.cjs +1 -0
- package/dist/actions/archive-a-webhook.cjs.map +1 -1
- package/dist/actions/archive-a-webhook.d.cts +3 -20
- package/dist/actions/archive-a-webhook.d.cts.map +1 -1
- package/dist/actions/archive-a-webhook.d.mts +3 -20
- package/dist/actions/archive-a-webhook.d.mts.map +1 -1
- package/dist/actions/archive-a-webhook.mjs +1 -0
- package/dist/actions/archive-a-webhook.mjs.map +1 -1
- package/dist/actions/archive-email-address-list-item.cjs +1 -0
- package/dist/actions/archive-email-address-list-item.cjs.map +1 -1
- package/dist/actions/archive-email-address-list-item.d.cts +3 -20
- package/dist/actions/archive-email-address-list-item.d.cts.map +1 -1
- package/dist/actions/archive-email-address-list-item.d.mts +3 -20
- package/dist/actions/archive-email-address-list-item.d.mts.map +1 -1
- package/dist/actions/archive-email-address-list-item.mjs +1 -0
- package/dist/actions/archive-email-address-list-item.mjs.map +1 -1
- package/dist/actions/archive-ip-address-list-item.cjs +1 -0
- package/dist/actions/archive-ip-address-list-item.cjs.map +1 -1
- package/dist/actions/archive-ip-address-list-item.d.cts +3 -18
- package/dist/actions/archive-ip-address-list-item.d.cts.map +1 -1
- package/dist/actions/archive-ip-address-list-item.d.mts +3 -18
- package/dist/actions/archive-ip-address-list-item.d.mts.map +1 -1
- package/dist/actions/archive-ip-address-list-item.mjs +1 -0
- package/dist/actions/archive-ip-address-list-item.mjs.map +1 -1
- package/dist/actions/archive-phone-number-list-item.cjs +1 -0
- package/dist/actions/archive-phone-number-list-item.cjs.map +1 -1
- package/dist/actions/archive-phone-number-list-item.d.cts +3 -18
- package/dist/actions/archive-phone-number-list-item.d.cts.map +1 -1
- package/dist/actions/archive-phone-number-list-item.d.mts +3 -18
- package/dist/actions/archive-phone-number-list-item.d.mts.map +1 -1
- package/dist/actions/archive-phone-number-list-item.mjs +1 -0
- package/dist/actions/archive-phone-number-list-item.mjs.map +1 -1
- package/dist/actions/archive-string-list-item.cjs +1 -0
- package/dist/actions/archive-string-list-item.cjs.map +1 -1
- package/dist/actions/archive-string-list-item.d.cts +3 -20
- package/dist/actions/archive-string-list-item.d.cts.map +1 -1
- package/dist/actions/archive-string-list-item.d.mts +3 -20
- package/dist/actions/archive-string-list-item.d.mts.map +1 -1
- package/dist/actions/archive-string-list-item.mjs +1 -0
- package/dist/actions/archive-string-list-item.mjs.map +1 -1
- package/dist/actions/clone-webhook.cjs +1 -0
- package/dist/actions/clone-webhook.cjs.map +1 -1
- package/dist/actions/clone-webhook.d.cts +3 -19
- package/dist/actions/clone-webhook.d.cts.map +1 -1
- package/dist/actions/clone-webhook.d.mts +3 -19
- package/dist/actions/clone-webhook.d.mts.map +1 -1
- package/dist/actions/clone-webhook.mjs +1 -0
- package/dist/actions/clone-webhook.mjs.map +1 -1
- package/dist/actions/consolidate-into-account.cjs +1 -0
- package/dist/actions/consolidate-into-account.cjs.map +1 -1
- package/dist/actions/consolidate-into-account.d.cts +3 -20
- package/dist/actions/consolidate-into-account.d.cts.map +1 -1
- package/dist/actions/consolidate-into-account.d.mts +3 -20
- package/dist/actions/consolidate-into-account.d.mts.map +1 -1
- package/dist/actions/consolidate-into-account.mjs +1 -0
- package/dist/actions/consolidate-into-account.mjs.map +1 -1
- package/dist/actions/create-an-account.cjs +1 -0
- package/dist/actions/create-an-account.cjs.map +1 -1
- package/dist/actions/create-an-account.d.cts +3 -46
- package/dist/actions/create-an-account.d.cts.map +1 -1
- package/dist/actions/create-an-account.d.mts +3 -46
- package/dist/actions/create-an-account.d.mts.map +1 -1
- package/dist/actions/create-an-account.mjs +1 -0
- package/dist/actions/create-an-account.mjs.map +1 -1
- package/dist/actions/create-an-ip-address-list-item.cjs +1 -0
- package/dist/actions/create-an-ip-address-list-item.cjs.map +1 -1
- package/dist/actions/create-an-ip-address-list-item.d.cts +3 -19
- package/dist/actions/create-an-ip-address-list-item.d.cts.map +1 -1
- package/dist/actions/create-an-ip-address-list-item.d.mts +3 -19
- package/dist/actions/create-an-ip-address-list-item.d.mts.map +1 -1
- package/dist/actions/create-an-ip-address-list-item.mjs +1 -0
- package/dist/actions/create-an-ip-address-list-item.mjs.map +1 -1
- package/dist/actions/create-country-list-item.cjs +1 -0
- package/dist/actions/create-country-list-item.cjs.map +1 -1
- package/dist/actions/create-country-list-item.d.cts +3 -25
- package/dist/actions/create-country-list-item.d.cts.map +1 -1
- package/dist/actions/create-country-list-item.d.mts +3 -25
- package/dist/actions/create-country-list-item.d.mts.map +1 -1
- package/dist/actions/create-country-list-item.mjs +1 -0
- package/dist/actions/create-country-list-item.mjs.map +1 -1
- package/dist/actions/create-document-generic.cjs +1 -0
- package/dist/actions/create-document-generic.cjs.map +1 -1
- package/dist/actions/create-document-generic.d.cts +3 -26
- package/dist/actions/create-document-generic.d.cts.map +1 -1
- package/dist/actions/create-document-generic.d.mts +3 -26
- package/dist/actions/create-document-generic.d.mts.map +1 -1
- package/dist/actions/create-document-generic.mjs +1 -0
- package/dist/actions/create-document-generic.mjs.map +1 -1
- package/dist/actions/create-email-address-list-item.cjs +1 -0
- package/dist/actions/create-email-address-list-item.cjs.map +1 -1
- package/dist/actions/create-email-address-list-item.d.cts +3 -20
- package/dist/actions/create-email-address-list-item.d.cts.map +1 -1
- package/dist/actions/create-email-address-list-item.d.mts +3 -20
- package/dist/actions/create-email-address-list-item.d.mts.map +1 -1
- package/dist/actions/create-email-address-list-item.mjs +1 -0
- package/dist/actions/create-email-address-list-item.mjs.map +1 -1
- package/dist/actions/create-government-id-number-list-item.cjs +1 -0
- package/dist/actions/create-government-id-number-list-item.cjs.map +1 -1
- package/dist/actions/create-government-id-number-list-item.d.cts +3 -21
- package/dist/actions/create-government-id-number-list-item.d.cts.map +1 -1
- package/dist/actions/create-government-id-number-list-item.d.mts +3 -21
- package/dist/actions/create-government-id-number-list-item.d.mts.map +1 -1
- package/dist/actions/create-government-id-number-list-item.mjs +1 -0
- package/dist/actions/create-government-id-number-list-item.mjs.map +1 -1
- package/dist/actions/create-name-list-item.cjs +1 -0
- package/dist/actions/create-name-list-item.cjs.map +1 -1
- package/dist/actions/create-name-list-item.d.cts +3 -24
- package/dist/actions/create-name-list-item.d.cts.map +1 -1
- package/dist/actions/create-name-list-item.d.mts +3 -24
- package/dist/actions/create-name-list-item.d.mts.map +1 -1
- package/dist/actions/create-name-list-item.mjs +1 -0
- package/dist/actions/create-name-list-item.mjs.map +1 -1
- package/dist/actions/create-phone-number-list-item.cjs +1 -0
- package/dist/actions/create-phone-number-list-item.cjs.map +1 -1
- package/dist/actions/create-phone-number-list-item.d.cts +3 -23
- package/dist/actions/create-phone-number-list-item.d.cts.map +1 -1
- package/dist/actions/create-phone-number-list-item.d.mts +3 -23
- package/dist/actions/create-phone-number-list-item.d.mts.map +1 -1
- package/dist/actions/create-phone-number-list-item.mjs +1 -0
- package/dist/actions/create-phone-number-list-item.mjs.map +1 -1
- package/dist/actions/create-string-list-item.cjs +1 -0
- package/dist/actions/create-string-list-item.cjs.map +1 -1
- package/dist/actions/create-string-list-item.d.cts +3 -19
- package/dist/actions/create-string-list-item.d.cts.map +1 -1
- package/dist/actions/create-string-list-item.d.mts +3 -19
- package/dist/actions/create-string-list-item.d.mts.map +1 -1
- package/dist/actions/create-string-list-item.mjs +1 -0
- package/dist/actions/create-string-list-item.mjs.map +1 -1
- package/dist/actions/create-webhook.cjs +1 -0
- package/dist/actions/create-webhook.cjs.map +1 -1
- package/dist/actions/create-webhook.d.cts +3 -29
- package/dist/actions/create-webhook.d.cts.map +1 -1
- package/dist/actions/create-webhook.d.mts +3 -29
- package/dist/actions/create-webhook.d.mts.map +1 -1
- package/dist/actions/create-webhook.mjs +1 -0
- package/dist/actions/create-webhook.mjs.map +1 -1
- package/dist/actions/disable-webhook.cjs +1 -0
- package/dist/actions/disable-webhook.cjs.map +1 -1
- package/dist/actions/disable-webhook.d.cts +3 -20
- package/dist/actions/disable-webhook.d.cts.map +1 -1
- package/dist/actions/disable-webhook.d.mts +3 -20
- package/dist/actions/disable-webhook.d.mts.map +1 -1
- package/dist/actions/disable-webhook.mjs +1 -0
- package/dist/actions/disable-webhook.mjs.map +1 -1
- package/dist/actions/enable-webhook.cjs +1 -0
- package/dist/actions/enable-webhook.cjs.map +1 -1
- package/dist/actions/enable-webhook.d.cts +3 -19
- package/dist/actions/enable-webhook.d.cts.map +1 -1
- package/dist/actions/enable-webhook.d.mts +3 -19
- package/dist/actions/enable-webhook.d.mts.map +1 -1
- package/dist/actions/enable-webhook.mjs +1 -0
- package/dist/actions/enable-webhook.mjs.map +1 -1
- package/dist/actions/expire-inquiry-sessions.cjs +1 -0
- package/dist/actions/expire-inquiry-sessions.cjs.map +1 -1
- package/dist/actions/expire-inquiry-sessions.d.cts +3 -22
- package/dist/actions/expire-inquiry-sessions.d.cts.map +1 -1
- package/dist/actions/expire-inquiry-sessions.d.mts +3 -22
- package/dist/actions/expire-inquiry-sessions.d.mts.map +1 -1
- package/dist/actions/expire-inquiry-sessions.mjs +1 -0
- package/dist/actions/expire-inquiry-sessions.mjs.map +1 -1
- package/dist/actions/import-email-address-lists.cjs +1 -0
- package/dist/actions/import-email-address-lists.cjs.map +1 -1
- package/dist/actions/import-email-address-lists.d.cts +3 -20
- package/dist/actions/import-email-address-lists.d.cts.map +1 -1
- package/dist/actions/import-email-address-lists.d.mts +3 -20
- package/dist/actions/import-email-address-lists.d.mts.map +1 -1
- package/dist/actions/import-email-address-lists.mjs +1 -0
- package/dist/actions/import-email-address-lists.mjs.map +1 -1
- package/dist/actions/import-ip-address-lists.cjs +1 -0
- package/dist/actions/import-ip-address-lists.cjs.map +1 -1
- package/dist/actions/import-ip-address-lists.d.cts +3 -26
- package/dist/actions/import-ip-address-lists.d.cts.map +1 -1
- package/dist/actions/import-ip-address-lists.d.mts +3 -26
- package/dist/actions/import-ip-address-lists.d.mts.map +1 -1
- package/dist/actions/import-ip-address-lists.mjs +1 -0
- package/dist/actions/import-ip-address-lists.mjs.map +1 -1
- package/dist/actions/import-name-lists.cjs +1 -0
- package/dist/actions/import-name-lists.cjs.map +1 -1
- package/dist/actions/import-name-lists.d.cts +3 -23
- package/dist/actions/import-name-lists.d.cts.map +1 -1
- package/dist/actions/import-name-lists.d.mts +3 -23
- package/dist/actions/import-name-lists.d.mts.map +1 -1
- package/dist/actions/import-name-lists.mjs +1 -0
- package/dist/actions/import-name-lists.mjs.map +1 -1
- package/dist/actions/import-phone-number-lists.cjs +1 -0
- package/dist/actions/import-phone-number-lists.cjs.map +1 -1
- package/dist/actions/import-phone-number-lists.d.cts +3 -26
- package/dist/actions/import-phone-number-lists.d.cts.map +1 -1
- package/dist/actions/import-phone-number-lists.d.mts +3 -26
- package/dist/actions/import-phone-number-lists.d.mts.map +1 -1
- package/dist/actions/import-phone-number-lists.mjs +1 -0
- package/dist/actions/import-phone-number-lists.mjs.map +1 -1
- package/dist/actions/list-all-accounts.cjs +1 -0
- package/dist/actions/list-all-accounts.cjs.map +1 -1
- package/dist/actions/list-all-accounts.d.cts +3 -23
- package/dist/actions/list-all-accounts.d.cts.map +1 -1
- package/dist/actions/list-all-accounts.d.mts +3 -23
- package/dist/actions/list-all-accounts.d.mts.map +1 -1
- package/dist/actions/list-all-accounts.mjs +1 -0
- package/dist/actions/list-all-accounts.mjs.map +1 -1
- package/dist/actions/list-all-api-logs.cjs +1 -0
- package/dist/actions/list-all-api-logs.cjs.map +1 -1
- package/dist/actions/list-all-api-logs.d.cts +3 -21
- package/dist/actions/list-all-api-logs.d.cts.map +1 -1
- package/dist/actions/list-all-api-logs.d.mts +3 -21
- package/dist/actions/list-all-api-logs.d.mts.map +1 -1
- package/dist/actions/list-all-api-logs.mjs +1 -0
- package/dist/actions/list-all-api-logs.mjs.map +1 -1
- package/dist/actions/list-all-cases.cjs +1 -0
- package/dist/actions/list-all-cases.cjs.map +1 -1
- package/dist/actions/list-all-cases.d.cts +3 -24
- package/dist/actions/list-all-cases.d.cts.map +1 -1
- package/dist/actions/list-all-cases.d.mts +3 -24
- package/dist/actions/list-all-cases.d.mts.map +1 -1
- package/dist/actions/list-all-cases.mjs +1 -0
- package/dist/actions/list-all-cases.mjs.map +1 -1
- package/dist/actions/list-all-devices.cjs +1 -0
- package/dist/actions/list-all-devices.cjs.map +1 -1
- package/dist/actions/list-all-devices.d.cts +3 -21
- package/dist/actions/list-all-devices.d.cts.map +1 -1
- package/dist/actions/list-all-devices.d.mts +3 -21
- package/dist/actions/list-all-devices.d.mts.map +1 -1
- package/dist/actions/list-all-devices.mjs +1 -0
- package/dist/actions/list-all-devices.mjs.map +1 -1
- package/dist/actions/list-all-events.cjs +1 -0
- package/dist/actions/list-all-events.cjs.map +1 -1
- package/dist/actions/list-all-events.d.cts +3 -23
- package/dist/actions/list-all-events.d.cts.map +1 -1
- package/dist/actions/list-all-events.d.mts +3 -23
- package/dist/actions/list-all-events.d.mts.map +1 -1
- package/dist/actions/list-all-events.mjs +1 -0
- package/dist/actions/list-all-events.mjs.map +1 -1
- package/dist/actions/list-all-importers.cjs +1 -0
- package/dist/actions/list-all-importers.cjs.map +1 -1
- package/dist/actions/list-all-importers.d.cts +3 -21
- package/dist/actions/list-all-importers.d.cts.map +1 -1
- package/dist/actions/list-all-importers.d.mts +3 -21
- package/dist/actions/list-all-importers.d.mts.map +1 -1
- package/dist/actions/list-all-importers.mjs +1 -0
- package/dist/actions/list-all-importers.mjs.map +1 -1
- package/dist/actions/list-all-inquiries.cjs +1 -0
- package/dist/actions/list-all-inquiries.cjs.map +1 -1
- package/dist/actions/list-all-inquiries.d.cts +3 -25
- package/dist/actions/list-all-inquiries.d.cts.map +1 -1
- package/dist/actions/list-all-inquiries.d.mts +3 -25
- package/dist/actions/list-all-inquiries.d.mts.map +1 -1
- package/dist/actions/list-all-inquiries.mjs +1 -0
- package/dist/actions/list-all-inquiries.mjs.map +1 -1
- package/dist/actions/list-all-inquiry-sessions.cjs +1 -0
- package/dist/actions/list-all-inquiry-sessions.cjs.map +1 -1
- package/dist/actions/list-all-inquiry-sessions.d.cts +3 -21
- package/dist/actions/list-all-inquiry-sessions.d.cts.map +1 -1
- package/dist/actions/list-all-inquiry-sessions.d.mts +3 -21
- package/dist/actions/list-all-inquiry-sessions.d.mts.map +1 -1
- package/dist/actions/list-all-inquiry-sessions.mjs +1 -0
- package/dist/actions/list-all-inquiry-sessions.mjs.map +1 -1
- package/dist/actions/list-all-lists.cjs +1 -0
- package/dist/actions/list-all-lists.cjs.map +1 -1
- package/dist/actions/list-all-lists.d.cts +3 -22
- package/dist/actions/list-all-lists.d.cts.map +1 -1
- package/dist/actions/list-all-lists.d.mts +3 -22
- package/dist/actions/list-all-lists.d.mts.map +1 -1
- package/dist/actions/list-all-lists.mjs +1 -0
- package/dist/actions/list-all-lists.mjs.map +1 -1
- package/dist/actions/list-all-rate-limits.cjs +1 -0
- package/dist/actions/list-all-rate-limits.cjs.map +1 -1
- package/dist/actions/list-all-rate-limits.d.cts +3 -17
- package/dist/actions/list-all-rate-limits.d.cts.map +1 -1
- package/dist/actions/list-all-rate-limits.d.mts +3 -17
- package/dist/actions/list-all-rate-limits.d.mts.map +1 -1
- package/dist/actions/list-all-rate-limits.mjs +1 -0
- package/dist/actions/list-all-rate-limits.mjs.map +1 -1
- package/dist/actions/list-all-reports.cjs +1 -0
- package/dist/actions/list-all-reports.cjs.map +1 -1
- package/dist/actions/list-all-reports.d.cts +3 -23
- package/dist/actions/list-all-reports.d.cts.map +1 -1
- package/dist/actions/list-all-reports.d.mts +3 -23
- package/dist/actions/list-all-reports.d.mts.map +1 -1
- package/dist/actions/list-all-reports.mjs +1 -0
- package/dist/actions/list-all-reports.mjs.map +1 -1
- package/dist/actions/list-all-transactions.cjs +1 -0
- package/dist/actions/list-all-transactions.cjs.map +1 -1
- package/dist/actions/list-all-transactions.d.cts +3 -21
- package/dist/actions/list-all-transactions.d.cts.map +1 -1
- package/dist/actions/list-all-transactions.d.mts +3 -21
- package/dist/actions/list-all-transactions.d.mts.map +1 -1
- package/dist/actions/list-all-transactions.mjs +1 -0
- package/dist/actions/list-all-transactions.mjs.map +1 -1
- package/dist/actions/list-all-webhooks.cjs +1 -0
- package/dist/actions/list-all-webhooks.cjs.map +1 -1
- package/dist/actions/list-all-webhooks.d.cts +3 -21
- package/dist/actions/list-all-webhooks.d.cts.map +1 -1
- package/dist/actions/list-all-webhooks.d.mts +3 -21
- package/dist/actions/list-all-webhooks.d.mts.map +1 -1
- package/dist/actions/list-all-webhooks.mjs +1 -0
- package/dist/actions/list-all-webhooks.mjs.map +1 -1
- package/dist/actions/list-all-workflow-runs.cjs +1 -0
- package/dist/actions/list-all-workflow-runs.cjs.map +1 -1
- package/dist/actions/list-all-workflow-runs.d.cts +3 -25
- package/dist/actions/list-all-workflow-runs.d.cts.map +1 -1
- package/dist/actions/list-all-workflow-runs.d.mts +3 -25
- package/dist/actions/list-all-workflow-runs.d.mts.map +1 -1
- package/dist/actions/list-all-workflow-runs.mjs +1 -0
- package/dist/actions/list-all-workflow-runs.mjs.map +1 -1
- package/dist/actions/redact-an-account.cjs +1 -0
- package/dist/actions/redact-an-account.cjs.map +1 -1
- package/dist/actions/redact-an-account.d.cts +3 -20
- package/dist/actions/redact-an-account.d.cts.map +1 -1
- package/dist/actions/redact-an-account.d.mts +3 -20
- package/dist/actions/redact-an-account.d.mts.map +1 -1
- package/dist/actions/redact-an-account.mjs +1 -0
- package/dist/actions/redact-an-account.mjs.map +1 -1
- package/dist/actions/remove-account-tag.cjs +1 -0
- package/dist/actions/remove-account-tag.cjs.map +1 -1
- package/dist/actions/remove-account-tag.d.cts +3 -23
- package/dist/actions/remove-account-tag.d.cts.map +1 -1
- package/dist/actions/remove-account-tag.d.mts +3 -23
- package/dist/actions/remove-account-tag.d.mts.map +1 -1
- package/dist/actions/remove-account-tag.mjs +1 -0
- package/dist/actions/remove-account-tag.mjs.map +1 -1
- package/dist/actions/retrieve-a-country-list-item.cjs +1 -0
- package/dist/actions/retrieve-a-country-list-item.cjs.map +1 -1
- package/dist/actions/retrieve-a-country-list-item.d.cts +3 -20
- package/dist/actions/retrieve-a-country-list-item.d.cts.map +1 -1
- package/dist/actions/retrieve-a-country-list-item.d.mts +3 -20
- package/dist/actions/retrieve-a-country-list-item.d.mts.map +1 -1
- package/dist/actions/retrieve-a-country-list-item.mjs +1 -0
- package/dist/actions/retrieve-a-country-list-item.mjs.map +1 -1
- package/dist/actions/retrieve-a-geolocation-list-item.cjs +1 -0
- package/dist/actions/retrieve-a-geolocation-list-item.cjs.map +1 -1
- package/dist/actions/retrieve-a-geolocation-list-item.d.cts +3 -20
- package/dist/actions/retrieve-a-geolocation-list-item.d.cts.map +1 -1
- package/dist/actions/retrieve-a-geolocation-list-item.d.mts +3 -20
- package/dist/actions/retrieve-a-geolocation-list-item.d.mts.map +1 -1
- package/dist/actions/retrieve-a-geolocation-list-item.mjs +1 -0
- package/dist/actions/retrieve-a-geolocation-list-item.mjs.map +1 -1
- package/dist/actions/retrieve-a-name-list-item.cjs +1 -0
- package/dist/actions/retrieve-a-name-list-item.cjs.map +1 -1
- package/dist/actions/retrieve-a-name-list-item.d.cts +3 -20
- package/dist/actions/retrieve-a-name-list-item.d.cts.map +1 -1
- package/dist/actions/retrieve-a-name-list-item.d.mts +3 -20
- package/dist/actions/retrieve-a-name-list-item.d.mts.map +1 -1
- package/dist/actions/retrieve-a-name-list-item.mjs +1 -0
- package/dist/actions/retrieve-a-name-list-item.mjs.map +1 -1
- package/dist/actions/retrieve-a-string-list-item.cjs +1 -0
- package/dist/actions/retrieve-a-string-list-item.cjs.map +1 -1
- package/dist/actions/retrieve-a-string-list-item.d.cts +3 -20
- package/dist/actions/retrieve-a-string-list-item.d.cts.map +1 -1
- package/dist/actions/retrieve-a-string-list-item.d.mts +3 -20
- package/dist/actions/retrieve-a-string-list-item.d.mts.map +1 -1
- package/dist/actions/retrieve-a-string-list-item.mjs +1 -0
- package/dist/actions/retrieve-a-string-list-item.mjs.map +1 -1
- package/dist/actions/retrieve-a-webhook.cjs +1 -0
- package/dist/actions/retrieve-a-webhook.cjs.map +1 -1
- package/dist/actions/retrieve-a-webhook.d.cts +3 -20
- package/dist/actions/retrieve-a-webhook.d.cts.map +1 -1
- package/dist/actions/retrieve-a-webhook.d.mts +3 -20
- package/dist/actions/retrieve-a-webhook.d.mts.map +1 -1
- package/dist/actions/retrieve-a-webhook.mjs +1 -0
- package/dist/actions/retrieve-a-webhook.mjs.map +1 -1
- package/dist/actions/retrieve-an-account.cjs +1 -0
- package/dist/actions/retrieve-an-account.cjs.map +1 -1
- package/dist/actions/retrieve-an-account.d.cts +3 -20
- package/dist/actions/retrieve-an-account.d.cts.map +1 -1
- package/dist/actions/retrieve-an-account.d.mts +3 -20
- package/dist/actions/retrieve-an-account.d.mts.map +1 -1
- package/dist/actions/retrieve-an-account.mjs +1 -0
- package/dist/actions/retrieve-an-account.mjs.map +1 -1
- package/dist/actions/retrieve-an-event.cjs +1 -0
- package/dist/actions/retrieve-an-event.cjs.map +1 -1
- package/dist/actions/retrieve-an-event.d.cts +3 -20
- package/dist/actions/retrieve-an-event.d.cts.map +1 -1
- package/dist/actions/retrieve-an-event.d.mts +3 -20
- package/dist/actions/retrieve-an-event.d.mts.map +1 -1
- package/dist/actions/retrieve-an-event.mjs +1 -0
- package/dist/actions/retrieve-an-event.mjs.map +1 -1
- package/dist/actions/retrieve-an-importer.cjs +1 -0
- package/dist/actions/retrieve-an-importer.cjs.map +1 -1
- package/dist/actions/retrieve-an-importer.d.cts +3 -20
- package/dist/actions/retrieve-an-importer.d.cts.map +1 -1
- package/dist/actions/retrieve-an-importer.d.mts +3 -20
- package/dist/actions/retrieve-an-importer.d.mts.map +1 -1
- package/dist/actions/retrieve-an-importer.mjs +1 -0
- package/dist/actions/retrieve-an-importer.mjs.map +1 -1
- package/dist/actions/retrieve-an-ip-address-list-item.cjs +1 -0
- package/dist/actions/retrieve-an-ip-address-list-item.cjs.map +1 -1
- package/dist/actions/retrieve-an-ip-address-list-item.d.cts +3 -20
- package/dist/actions/retrieve-an-ip-address-list-item.d.cts.map +1 -1
- package/dist/actions/retrieve-an-ip-address-list-item.d.mts +3 -20
- package/dist/actions/retrieve-an-ip-address-list-item.d.mts.map +1 -1
- package/dist/actions/retrieve-an-ip-address-list-item.mjs +1 -0
- package/dist/actions/retrieve-an-ip-address-list-item.mjs.map +1 -1
- package/dist/actions/retrieve-api-log.cjs +1 -0
- package/dist/actions/retrieve-api-log.cjs.map +1 -1
- package/dist/actions/retrieve-api-log.d.cts +3 -20
- package/dist/actions/retrieve-api-log.d.cts.map +1 -1
- package/dist/actions/retrieve-api-log.d.mts +3 -20
- package/dist/actions/retrieve-api-log.d.mts.map +1 -1
- package/dist/actions/retrieve-api-log.mjs +1 -0
- package/dist/actions/retrieve-api-log.mjs.map +1 -1
- package/dist/actions/retrieve-browser-fingerprint-list-item.cjs +1 -0
- package/dist/actions/retrieve-browser-fingerprint-list-item.cjs.map +1 -1
- package/dist/actions/retrieve-browser-fingerprint-list-item.d.cts +3 -20
- package/dist/actions/retrieve-browser-fingerprint-list-item.d.cts.map +1 -1
- package/dist/actions/retrieve-browser-fingerprint-list-item.d.mts +3 -20
- package/dist/actions/retrieve-browser-fingerprint-list-item.d.mts.map +1 -1
- package/dist/actions/retrieve-browser-fingerprint-list-item.mjs +1 -0
- package/dist/actions/retrieve-browser-fingerprint-list-item.mjs.map +1 -1
- package/dist/actions/retrieve-document-generic.cjs +1 -0
- package/dist/actions/retrieve-document-generic.cjs.map +1 -1
- package/dist/actions/retrieve-document-generic.d.cts +3 -20
- package/dist/actions/retrieve-document-generic.d.cts.map +1 -1
- package/dist/actions/retrieve-document-generic.d.mts +3 -20
- package/dist/actions/retrieve-document-generic.d.mts.map +1 -1
- package/dist/actions/retrieve-document-generic.mjs +1 -0
- package/dist/actions/retrieve-document-generic.mjs.map +1 -1
- package/dist/actions/retrieve-document.cjs +1 -0
- package/dist/actions/retrieve-document.cjs.map +1 -1
- package/dist/actions/retrieve-document.d.cts +3 -20
- package/dist/actions/retrieve-document.d.cts.map +1 -1
- package/dist/actions/retrieve-document.d.mts +3 -20
- package/dist/actions/retrieve-document.d.mts.map +1 -1
- package/dist/actions/retrieve-document.mjs +1 -0
- package/dist/actions/retrieve-document.mjs.map +1 -1
- package/dist/actions/retrieve-email-address-list-item.cjs +1 -0
- package/dist/actions/retrieve-email-address-list-item.cjs.map +1 -1
- package/dist/actions/retrieve-email-address-list-item.d.cts +3 -20
- package/dist/actions/retrieve-email-address-list-item.d.cts.map +1 -1
- package/dist/actions/retrieve-email-address-list-item.d.mts +3 -20
- package/dist/actions/retrieve-email-address-list-item.d.mts.map +1 -1
- package/dist/actions/retrieve-email-address-list-item.mjs +1 -0
- package/dist/actions/retrieve-email-address-list-item.mjs.map +1 -1
- package/dist/actions/retrieve-government-id-number-list-item.cjs +1 -0
- package/dist/actions/retrieve-government-id-number-list-item.cjs.map +1 -1
- package/dist/actions/retrieve-government-id-number-list-item.d.cts +3 -20
- package/dist/actions/retrieve-government-id-number-list-item.d.cts.map +1 -1
- package/dist/actions/retrieve-government-id-number-list-item.d.mts +3 -20
- package/dist/actions/retrieve-government-id-number-list-item.d.mts.map +1 -1
- package/dist/actions/retrieve-government-id-number-list-item.mjs +1 -0
- package/dist/actions/retrieve-government-id-number-list-item.mjs.map +1 -1
- package/dist/actions/retrieve-phone-number-list-item.cjs +1 -0
- package/dist/actions/retrieve-phone-number-list-item.cjs.map +1 -1
- package/dist/actions/retrieve-phone-number-list-item.d.cts +3 -20
- package/dist/actions/retrieve-phone-number-list-item.d.cts.map +1 -1
- package/dist/actions/retrieve-phone-number-list-item.d.mts +3 -20
- package/dist/actions/retrieve-phone-number-list-item.d.mts.map +1 -1
- package/dist/actions/retrieve-phone-number-list-item.mjs +1 -0
- package/dist/actions/retrieve-phone-number-list-item.mjs.map +1 -1
- package/dist/actions/rotate-webhook-secret.cjs +1 -0
- package/dist/actions/rotate-webhook-secret.cjs.map +1 -1
- package/dist/actions/rotate-webhook-secret.d.cts +3 -21
- package/dist/actions/rotate-webhook-secret.d.cts.map +1 -1
- package/dist/actions/rotate-webhook-secret.d.mts +3 -21
- package/dist/actions/rotate-webhook-secret.d.mts.map +1 -1
- package/dist/actions/rotate-webhook-secret.mjs +1 -0
- package/dist/actions/rotate-webhook-secret.mjs.map +1 -1
- package/dist/actions/search-accounts.cjs +1 -0
- package/dist/actions/search-accounts.cjs.map +1 -1
- package/dist/actions/search-accounts.d.cts +3 -28
- package/dist/actions/search-accounts.d.cts.map +1 -1
- package/dist/actions/search-accounts.d.mts +3 -28
- package/dist/actions/search-accounts.d.mts.map +1 -1
- package/dist/actions/search-accounts.mjs +1 -0
- package/dist/actions/search-accounts.mjs.map +1 -1
- package/dist/actions/search-cases.cjs +1 -0
- package/dist/actions/search-cases.cjs.map +1 -1
- package/dist/actions/search-cases.d.cts +3 -27
- package/dist/actions/search-cases.d.cts.map +1 -1
- package/dist/actions/search-cases.d.mts +3 -27
- package/dist/actions/search-cases.d.mts.map +1 -1
- package/dist/actions/search-cases.mjs +1 -0
- package/dist/actions/search-cases.mjs.map +1 -1
- package/dist/actions/set-tags.cjs +1 -0
- package/dist/actions/set-tags.cjs.map +1 -1
- package/dist/actions/set-tags.d.cts +3 -23
- package/dist/actions/set-tags.d.cts.map +1 -1
- package/dist/actions/set-tags.d.mts +3 -23
- package/dist/actions/set-tags.d.mts.map +1 -1
- package/dist/actions/set-tags.mjs +1 -0
- package/dist/actions/set-tags.mjs.map +1 -1
- package/dist/actions/update-a-webhook.cjs +1 -0
- package/dist/actions/update-a-webhook.cjs.map +1 -1
- package/dist/actions/update-a-webhook.d.cts +3 -30
- package/dist/actions/update-a-webhook.d.cts.map +1 -1
- package/dist/actions/update-a-webhook.d.mts +3 -30
- package/dist/actions/update-a-webhook.d.mts.map +1 -1
- package/dist/actions/update-a-webhook.mjs +1 -0
- package/dist/actions/update-a-webhook.mjs.map +1 -1
- package/dist/actions/update-an-account.cjs +1 -0
- package/dist/actions/update-an-account.cjs.map +1 -1
- package/dist/actions/update-an-account.d.cts +3 -42
- package/dist/actions/update-an-account.d.cts.map +1 -1
- package/dist/actions/update-an-account.d.mts +3 -42
- package/dist/actions/update-an-account.d.mts.map +1 -1
- package/dist/actions/update-an-account.mjs +1 -0
- package/dist/actions/update-an-account.mjs.map +1 -1
- package/dist/actions/update-document-generic.cjs +1 -0
- package/dist/actions/update-document-generic.cjs.map +1 -1
- package/dist/actions/update-document-generic.d.cts +3 -27
- package/dist/actions/update-document-generic.d.cts.map +1 -1
- package/dist/actions/update-document-generic.d.mts +3 -27
- package/dist/actions/update-document-generic.d.mts.map +1 -1
- package/dist/actions/update-document-generic.mjs +1 -0
- package/dist/actions/update-document-generic.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { persona } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/clone-webhook.d.ts
|
|
@@ -37,25 +39,7 @@ declare const PersonaCloneWebhookOutput: z.ZodObject<{
|
|
|
37
39
|
}, z.core.$loose>>;
|
|
38
40
|
included: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
39
41
|
}, z.core.$loose>;
|
|
40
|
-
declare const personaCloneWebhook:
|
|
41
|
-
webhook_id: string;
|
|
42
|
-
fields?: string | undefined;
|
|
43
|
-
include?: string | undefined;
|
|
44
|
-
key_inflection?: "camel" | "kebab" | "snake" | undefined;
|
|
45
|
-
idempotency_key?: string | undefined;
|
|
46
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"persona", z.ZodObject<{
|
|
47
|
-
connectionId: z.ZodString;
|
|
48
|
-
entityId: z.ZodString;
|
|
49
|
-
instanceId: z.ZodString;
|
|
50
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
51
|
-
generic_api_key: z.ZodString;
|
|
52
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"persona", z.ZodObject<{
|
|
53
|
-
connectionId: z.ZodString;
|
|
54
|
-
entityId: z.ZodString;
|
|
55
|
-
instanceId: z.ZodString;
|
|
56
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
-
generic_api_key: z.ZodString;
|
|
58
|
-
}, z.core.$strip>>]>;
|
|
42
|
+
declare const personaCloneWebhook: AppAction<typeof PersonaCloneWebhookInput, typeof PersonaCloneWebhookOutput, typeof persona.credential>;
|
|
59
43
|
//#endregion
|
|
60
44
|
export { personaCloneWebhook };
|
|
61
45
|
//# sourceMappingURL=clone-webhook.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clone-webhook.d.cts","names":[],"sources":["../../src/actions/clone-webhook.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"clone-webhook.d.cts","names":[],"sources":["../../src/actions/clone-webhook.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;cA+BxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { persona } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/clone-webhook.d.ts
|
|
@@ -37,25 +39,7 @@ declare const PersonaCloneWebhookOutput: z.ZodObject<{
|
|
|
37
39
|
}, z.core.$loose>>;
|
|
38
40
|
included: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
39
41
|
}, z.core.$loose>;
|
|
40
|
-
declare const personaCloneWebhook:
|
|
41
|
-
webhook_id: string;
|
|
42
|
-
fields?: string | undefined;
|
|
43
|
-
include?: string | undefined;
|
|
44
|
-
key_inflection?: "camel" | "kebab" | "snake" | undefined;
|
|
45
|
-
idempotency_key?: string | undefined;
|
|
46
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"persona", z.ZodObject<{
|
|
47
|
-
connectionId: z.ZodString;
|
|
48
|
-
entityId: z.ZodString;
|
|
49
|
-
instanceId: z.ZodString;
|
|
50
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
51
|
-
generic_api_key: z.ZodString;
|
|
52
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"persona", z.ZodObject<{
|
|
53
|
-
connectionId: z.ZodString;
|
|
54
|
-
entityId: z.ZodString;
|
|
55
|
-
instanceId: z.ZodString;
|
|
56
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
-
generic_api_key: z.ZodString;
|
|
58
|
-
}, z.core.$strip>>]>;
|
|
42
|
+
declare const personaCloneWebhook: AppAction<typeof PersonaCloneWebhookInput, typeof PersonaCloneWebhookOutput, typeof persona.credential>;
|
|
59
43
|
//#endregion
|
|
60
44
|
export { personaCloneWebhook };
|
|
61
45
|
//# sourceMappingURL=clone-webhook.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clone-webhook.d.mts","names":[],"sources":["../../src/actions/clone-webhook.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"clone-webhook.d.mts","names":[],"sources":["../../src/actions/clone-webhook.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;cA+BxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clone-webhook.mjs","names":[],"sources":["../../src/actions/clone-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaCloneWebhookInput = z.object({\n fields: z.string().describe(\"Comma-separated list of attributes to include in the response. Customizes which attributes will be serialized.\").optional(),\n include: z.string().describe(\"A comma-separated list of relationship paths to include in the response. Customizes which related resources will be fully serialized in the 'included' key.\").optional(),\n webhook_id: z.string().describe(\"The ID of the webhook to clone. Must start with \\\"wbh_\\\".\"),\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 to safely retry requests.\").optional(),\n}).describe(\"Request model for cloning a Persona webhook.\");\nconst PersonaCloneWebhook_SecretObjectSchema = z.object({\n value: z.string().describe(\"Secret key value.\").nullable(),\n \"expires-at\": z.string().describe(\"ISO 8601 timestamp when the secret expires.\").nullable().optional(),\n}).passthrough().describe(\"Secret object containing the secret value and expiration.\");\nconst PersonaCloneWebhook_WebhookAttributesSchema = 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.\").nullable().optional(),\n status: z.string().describe(\"Current status of the webhook (e.g., active, inactive).\").nullable().optional(),\n secrets: z.union([z.array(z.string()), z.array(PersonaCloneWebhook_SecretObjectSchema)]).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 the webhook payload.\").nullable().optional(),\n api_attributes_blocklist: z.array(z.string()).describe(\"List of attributes to exclude from the 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}).passthrough().describe(\"Attributes of a Persona webhook object.\");\nconst PersonaCloneWebhook_WebhookDataSchema = z.object({\n id: z.string().describe(\"Unique identifier for the webhook.\").nullable(),\n type: z.string().describe(\"Resource type, typically 'webhook'.\").nullable(),\n attributes: PersonaCloneWebhook_WebhookAttributesSchema.nullable().optional(),\n}).passthrough().describe(\"Webhook data object returned by Persona API.\");\nexport const PersonaCloneWebhookOutput = z.object({\n data: PersonaCloneWebhook_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}).passthrough().describe(\"Response model for the cloned webhook.\");\n\nexport const personaCloneWebhook = action(\"PERSONA_CLONE_WEBHOOK\", {\n slug: \"persona-clone-webhook\",\n name: \"Clone Webhook\",\n description: \"Tool to clone an existing Persona webhook. Use when you need to duplicate a webhook configuration with all its settings.\",\n input: PersonaCloneWebhookInput,\n output: PersonaCloneWebhookOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"clone-webhook.mjs","names":[],"sources":["../../src/actions/clone-webhook.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { persona } from \"../app\";\n\nexport const PersonaCloneWebhookInput = z.object({\n fields: z.string().describe(\"Comma-separated list of attributes to include in the response. Customizes which attributes will be serialized.\").optional(),\n include: z.string().describe(\"A comma-separated list of relationship paths to include in the response. Customizes which related resources will be fully serialized in the 'included' key.\").optional(),\n webhook_id: z.string().describe(\"The ID of the webhook to clone. Must start with \\\"wbh_\\\".\"),\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 to safely retry requests.\").optional(),\n}).describe(\"Request model for cloning a Persona webhook.\");\nconst PersonaCloneWebhook_SecretObjectSchema = z.object({\n value: z.string().describe(\"Secret key value.\").nullable(),\n \"expires-at\": z.string().describe(\"ISO 8601 timestamp when the secret expires.\").nullable().optional(),\n}).passthrough().describe(\"Secret object containing the secret value and expiration.\");\nconst PersonaCloneWebhook_WebhookAttributesSchema = 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.\").nullable().optional(),\n status: z.string().describe(\"Current status of the webhook (e.g., active, inactive).\").nullable().optional(),\n secrets: z.union([z.array(z.string()), z.array(PersonaCloneWebhook_SecretObjectSchema)]).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 the webhook payload.\").nullable().optional(),\n api_attributes_blocklist: z.array(z.string()).describe(\"List of attributes to exclude from the 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}).passthrough().describe(\"Attributes of a Persona webhook object.\");\nconst PersonaCloneWebhook_WebhookDataSchema = z.object({\n id: z.string().describe(\"Unique identifier for the webhook.\").nullable(),\n type: z.string().describe(\"Resource type, typically 'webhook'.\").nullable(),\n attributes: PersonaCloneWebhook_WebhookAttributesSchema.nullable().optional(),\n}).passthrough().describe(\"Webhook data object returned by Persona API.\");\nexport const PersonaCloneWebhookOutput = z.object({\n data: PersonaCloneWebhook_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}).passthrough().describe(\"Response model for the cloned webhook.\");\n\nexport const personaCloneWebhook: AppAction<\n typeof PersonaCloneWebhookInput,\n typeof PersonaCloneWebhookOutput,\n typeof persona.credential\n> = action(\"PERSONA_CLONE_WEBHOOK\", {\n slug: \"persona-clone-webhook\",\n name: \"Clone Webhook\",\n description: \"Tool to clone an existing Persona webhook. Use when you need to duplicate a webhook configuration with all its settings.\",\n input: PersonaCloneWebhookInput,\n output: PersonaCloneWebhookO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AAM,sCAAsC,SAAS;EACrD,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consolidate-into-account.cjs","names":["z","action"],"sources":["../../src/actions/consolidate-into-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaConsolidateIntoAccountInput = z.object({\n fields: z.string().describe(\"Comma-separated list of attributes to include in the response. Customizes which attributes will be serialized.\").optional(),\n include: z.string().describe(\"A comma-separated list of relationship paths to include in the response. Customizes which related resources will be fully serialized in the 'included' key.\").optional(),\n account_id: z.string().describe(\"Destination Account ID to consolidate source accounts into.\"),\n key_inflection: z.enum([\"camel\", \"kebab\", \"snake\"]).describe(\"Determines casing for the API response. Valid values: 'camel', 'kebab', 'snake'.\").optional(),\n idempotency_key: z.string().describe(\"Ensures the request is idempotent. Provide a unique key to prevent duplicate consolidations.\").optional(),\n source_account_ids: z.array(z.string()).describe(\"A list of source Account IDs that will be consolidated into the destination account. All data from these accounts will be merged into the destination account.\"),\n}).describe(\"Request model for consolidating multiple source accounts into a destination account.\");\nconst PersonaConsolidateIntoAccount_ConsolidateIntoAccountResponseDataSchema = z.object({\n id: z.string().describe(\"The ID of the consolidated destination account.\").nullable().optional(),\n type: z.string().describe(\"Resource type, typically 'account'.\").nullable().optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Account attributes after consolidation.\").nullable().optional(),\n}).passthrough().describe(\"Response data for the consolidation operation.\");\nexport const PersonaConsolidateIntoAccountOutput = z.object({\n data: PersonaConsolidateIntoAccount_ConsolidateIntoAccountResponseDataSchema.nullable().optional(),\n included: z.array(z.record(z.string(), z.unknown())).describe(\"Related resources that were included in the response based on the 'include' parameter.\").nullable().optional(),\n}).passthrough().describe(\"Response model for account consolidation.\");\n\nexport const personaConsolidateIntoAccount = action(\"PERSONA_CONSOLIDATE_INTO_ACCOUNT\", {\n slug: \"persona-consolidate-into-account\",\n name: \"Consolidate Accounts\",\n description: \"Tool to consolidate multiple source accounts into a single destination account. Use when merging duplicate accounts or combining account data from multiple sources into one primary account.\",\n input: PersonaConsolidateIntoAccountInput,\n output: PersonaConsolidateIntoAccountOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"consolidate-into-account.cjs","names":["z","action"],"sources":["../../src/actions/consolidate-into-account.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { persona } from \"../app\";\n\nexport const PersonaConsolidateIntoAccountInput = z.object({\n fields: z.string().describe(\"Comma-separated list of attributes to include in the response. Customizes which attributes will be serialized.\").optional(),\n include: z.string().describe(\"A comma-separated list of relationship paths to include in the response. Customizes which related resources will be fully serialized in the 'included' key.\").optional(),\n account_id: z.string().describe(\"Destination Account ID to consolidate source accounts into.\"),\n key_inflection: z.enum([\"camel\", \"kebab\", \"snake\"]).describe(\"Determines casing for the API response. Valid values: 'camel', 'kebab', 'snake'.\").optional(),\n idempotency_key: z.string().describe(\"Ensures the request is idempotent. Provide a unique key to prevent duplicate consolidations.\").optional(),\n source_account_ids: z.array(z.string()).describe(\"A list of source Account IDs that will be consolidated into the destination account. All data from these accounts will be merged into the destination account.\"),\n}).describe(\"Request model for consolidating multiple source accounts into a destination account.\");\nconst PersonaConsolidateIntoAccount_ConsolidateIntoAccountResponseDataSchema = z.object({\n id: z.string().describe(\"The ID of the consolidated destination account.\").nullable().optional(),\n type: z.string().describe(\"Resource type, typically 'account'.\").nullable().optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Account attributes after consolidation.\").nullable().optional(),\n}).passthrough().describe(\"Response data for the consolidation operation.\");\nexport const PersonaConsolidateIntoAccountOutput = z.object({\n data: PersonaConsolidateIntoAccount_ConsolidateIntoAccountResponseDataSchema.nullable().optional(),\n included: z.array(z.record(z.string(), z.unknown())).describe(\"Related resources that were included in the response based on the 'include' parameter.\").nullable().optional(),\n}).passthrough().describe(\"Response model for account consolidation.\");\n\nexport const personaConsolidateIntoAccount: AppAction<\n typeof PersonaConsolidateIntoAccountInput,\n typeof PersonaConsolidateIntoAccountOutput,\n typeof persona.credential\n> = action(\"PERSONA_CONSOLIDATE_INTO_ACCOUNT\", {\n slug: \"persona-consolidate-into-account\",\n name: \"Consolidate Accounts\",\n description: \"Tool to consolidate multiple source accounts into a single destination account. Use when merging duplicate accounts or combining account data from multiple sources into one primary account.\",\n input: PersonaConsolidateIntoAccountInput,\n output: PersonaConsolidateIntoAccountOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CACvJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J,CAAC,CAAC,SAAS;CACrM,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CAC7F,gBAAgBA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAS;CAAO,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC1J,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CAC9I,oBAAoBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gKAAgK;AACnN,CAAC,CAAC,CAAC,SAAS,sFAAsF;AAClG,MAAM,yEAAyEA,IAAAA,EAAE,OAAO;CACtF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAC1E,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAM,uEAAuE,SAAS,CAAC,CAAC,SAAS;CACjG,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,gCAITC,eAAAA,OAAO,oCAAoC;CAC7C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { persona } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/consolidate-into-account.d.ts
|
|
@@ -21,26 +23,7 @@ declare const PersonaConsolidateIntoAccountOutput: z.ZodObject<{
|
|
|
21
23
|
}, z.core.$loose>>>;
|
|
22
24
|
included: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
23
25
|
}, z.core.$loose>;
|
|
24
|
-
declare const personaConsolidateIntoAccount:
|
|
25
|
-
account_id: string;
|
|
26
|
-
source_account_ids: string[];
|
|
27
|
-
fields?: string | undefined;
|
|
28
|
-
include?: string | undefined;
|
|
29
|
-
key_inflection?: "camel" | "kebab" | "snake" | undefined;
|
|
30
|
-
idempotency_key?: string | undefined;
|
|
31
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"persona", z.ZodObject<{
|
|
32
|
-
connectionId: z.ZodString;
|
|
33
|
-
entityId: z.ZodString;
|
|
34
|
-
instanceId: z.ZodString;
|
|
35
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
36
|
-
generic_api_key: z.ZodString;
|
|
37
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"persona", z.ZodObject<{
|
|
38
|
-
connectionId: z.ZodString;
|
|
39
|
-
entityId: z.ZodString;
|
|
40
|
-
instanceId: z.ZodString;
|
|
41
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
-
generic_api_key: z.ZodString;
|
|
43
|
-
}, z.core.$strip>>]>;
|
|
26
|
+
declare const personaConsolidateIntoAccount: AppAction<typeof PersonaConsolidateIntoAccountInput, typeof PersonaConsolidateIntoAccountOutput, typeof persona.credential>;
|
|
44
27
|
//#endregion
|
|
45
28
|
export { personaConsolidateIntoAccount };
|
|
46
29
|
//# sourceMappingURL=consolidate-into-account.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consolidate-into-account.d.cts","names":[],"sources":["../../src/actions/consolidate-into-account.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"consolidate-into-account.d.cts","names":[],"sources":["../../src/actions/consolidate-into-account.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAalC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;cAKnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { persona } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/consolidate-into-account.d.ts
|
|
@@ -21,26 +23,7 @@ declare const PersonaConsolidateIntoAccountOutput: z.ZodObject<{
|
|
|
21
23
|
}, z.core.$loose>>>;
|
|
22
24
|
included: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
23
25
|
}, z.core.$loose>;
|
|
24
|
-
declare const personaConsolidateIntoAccount:
|
|
25
|
-
account_id: string;
|
|
26
|
-
source_account_ids: string[];
|
|
27
|
-
fields?: string | undefined;
|
|
28
|
-
include?: string | undefined;
|
|
29
|
-
key_inflection?: "camel" | "kebab" | "snake" | undefined;
|
|
30
|
-
idempotency_key?: string | undefined;
|
|
31
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"persona", z.ZodObject<{
|
|
32
|
-
connectionId: z.ZodString;
|
|
33
|
-
entityId: z.ZodString;
|
|
34
|
-
instanceId: z.ZodString;
|
|
35
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
36
|
-
generic_api_key: z.ZodString;
|
|
37
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"persona", z.ZodObject<{
|
|
38
|
-
connectionId: z.ZodString;
|
|
39
|
-
entityId: z.ZodString;
|
|
40
|
-
instanceId: z.ZodString;
|
|
41
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
-
generic_api_key: z.ZodString;
|
|
43
|
-
}, z.core.$strip>>]>;
|
|
26
|
+
declare const personaConsolidateIntoAccount: AppAction<typeof PersonaConsolidateIntoAccountInput, typeof PersonaConsolidateIntoAccountOutput, typeof persona.credential>;
|
|
44
27
|
//#endregion
|
|
45
28
|
export { personaConsolidateIntoAccount };
|
|
46
29
|
//# sourceMappingURL=consolidate-into-account.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consolidate-into-account.d.mts","names":[],"sources":["../../src/actions/consolidate-into-account.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"consolidate-into-account.d.mts","names":[],"sources":["../../src/actions/consolidate-into-account.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAalC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;cAKnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consolidate-into-account.mjs","names":[],"sources":["../../src/actions/consolidate-into-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaConsolidateIntoAccountInput = z.object({\n fields: z.string().describe(\"Comma-separated list of attributes to include in the response. Customizes which attributes will be serialized.\").optional(),\n include: z.string().describe(\"A comma-separated list of relationship paths to include in the response. Customizes which related resources will be fully serialized in the 'included' key.\").optional(),\n account_id: z.string().describe(\"Destination Account ID to consolidate source accounts into.\"),\n key_inflection: z.enum([\"camel\", \"kebab\", \"snake\"]).describe(\"Determines casing for the API response. Valid values: 'camel', 'kebab', 'snake'.\").optional(),\n idempotency_key: z.string().describe(\"Ensures the request is idempotent. Provide a unique key to prevent duplicate consolidations.\").optional(),\n source_account_ids: z.array(z.string()).describe(\"A list of source Account IDs that will be consolidated into the destination account. All data from these accounts will be merged into the destination account.\"),\n}).describe(\"Request model for consolidating multiple source accounts into a destination account.\");\nconst PersonaConsolidateIntoAccount_ConsolidateIntoAccountResponseDataSchema = z.object({\n id: z.string().describe(\"The ID of the consolidated destination account.\").nullable().optional(),\n type: z.string().describe(\"Resource type, typically 'account'.\").nullable().optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Account attributes after consolidation.\").nullable().optional(),\n}).passthrough().describe(\"Response data for the consolidation operation.\");\nexport const PersonaConsolidateIntoAccountOutput = z.object({\n data: PersonaConsolidateIntoAccount_ConsolidateIntoAccountResponseDataSchema.nullable().optional(),\n included: z.array(z.record(z.string(), z.unknown())).describe(\"Related resources that were included in the response based on the 'include' parameter.\").nullable().optional(),\n}).passthrough().describe(\"Response model for account consolidation.\");\n\nexport const personaConsolidateIntoAccount = action(\"PERSONA_CONSOLIDATE_INTO_ACCOUNT\", {\n slug: \"persona-consolidate-into-account\",\n name: \"Consolidate Accounts\",\n description: \"Tool to consolidate multiple source accounts into a single destination account. Use when merging duplicate accounts or combining account data from multiple sources into one primary account.\",\n input: PersonaConsolidateIntoAccountInput,\n output: PersonaConsolidateIntoAccountOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"consolidate-into-account.mjs","names":[],"sources":["../../src/actions/consolidate-into-account.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { persona } from \"../app\";\n\nexport const PersonaConsolidateIntoAccountInput = z.object({\n fields: z.string().describe(\"Comma-separated list of attributes to include in the response. Customizes which attributes will be serialized.\").optional(),\n include: z.string().describe(\"A comma-separated list of relationship paths to include in the response. Customizes which related resources will be fully serialized in the 'included' key.\").optional(),\n account_id: z.string().describe(\"Destination Account ID to consolidate source accounts into.\"),\n key_inflection: z.enum([\"camel\", \"kebab\", \"snake\"]).describe(\"Determines casing for the API response. Valid values: 'camel', 'kebab', 'snake'.\").optional(),\n idempotency_key: z.string().describe(\"Ensures the request is idempotent. Provide a unique key to prevent duplicate consolidations.\").optional(),\n source_account_ids: z.array(z.string()).describe(\"A list of source Account IDs that will be consolidated into the destination account. All data from these accounts will be merged into the destination account.\"),\n}).describe(\"Request model for consolidating multiple source accounts into a destination account.\");\nconst PersonaConsolidateIntoAccount_ConsolidateIntoAccountResponseDataSchema = z.object({\n id: z.string().describe(\"The ID of the consolidated destination account.\").nullable().optional(),\n type: z.string().describe(\"Resource type, typically 'account'.\").nullable().optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Account attributes after consolidation.\").nullable().optional(),\n}).passthrough().describe(\"Response data for the consolidation operation.\");\nexport const PersonaConsolidateIntoAccountOutput = z.object({\n data: PersonaConsolidateIntoAccount_ConsolidateIntoAccountResponseDataSchema.nullable().optional(),\n included: z.array(z.record(z.string(), z.unknown())).describe(\"Related resources that were included in the response based on the 'include' parameter.\").nullable().optional(),\n}).passthrough().describe(\"Response model for account consolidation.\");\n\nexport const personaConsolidateIntoAccount: AppAction<\n typeof PersonaConsolidateIntoAccountInput,\n typeof PersonaConsolidateIntoAccountOutput,\n typeof persona.credential\n> = action(\"PERSONA_CONSOLIDATE_INTO_ACCOUNT\", {\n slug: \"persona-consolidate-into-account\",\n name: \"Consolidate Accounts\",\n description: \"Tool to consolidate multiple source accounts into a single destination account. Use when merging duplicate accounts or combining account data from multiple sources into one primary account.\",\n input: PersonaConsolidateIntoAccountInput,\n output: PersonaConsolidateIntoAccountOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqC,EAAE,OAAO;CACzD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CACvJ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J,CAAC,CAAC,SAAS;CACrM,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CAC7F,gBAAgB,EAAE,KAAK;EAAC;EAAS;EAAS;CAAO,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC1J,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CAC9I,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gKAAgK;AACnN,CAAC,CAAC,CAAC,SAAS,sFAAsF;AAClG,MAAM,yEAAyE,EAAE,OAAO;CACtF,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAM1E,MAAa,gCAIT,OAAO,oCAAoC;CAC7C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdiD,EAAE,OAAO;EAC1D,MAAM,uEAAuE,SAAS,CAAC,CAAC,SAAS;EACjG,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-an-account.cjs","names":["z","action"],"sources":["../../src/actions/create-an-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaCreateAnAccountInput = z.object({\n data: z.object({\n type: z.string().default(\"account\").describe(\"The resource type for JSON:API. Must be 'account'.\").optional(),\n attributes: z.object({\n tags: z.array(z.string()).describe(\"Tags to associate with the account.\").optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"Custom fields for the account. This is not key inflected.\").optional(),\n birthdate: z.string().describe(\"Birthdate in YYYY-MM-DD format.\").optional(),\n \"name-last\": z.string().describe(\"Last name of the account holder.\").optional(),\n \"name-first\": z.string().describe(\"First name of the account holder.\").optional(),\n \"name-middle\": z.string().describe(\"Middle name of the account holder.\").optional(),\n \"address-city\": z.string().describe(\"City for the account address.\").optional(),\n \"country-code\": z.string().describe(\"Two-letter country code (ISO 3166-1 alpha-2).\").optional(),\n \"phone-number\": z.string().describe(\"Phone number for the account.\").optional(),\n \"reference-id\": z.string().describe(\"External reference ID for the account.\").optional(),\n \"selfie-photo\": z.record(z.string(), z.unknown()).describe(\"Selfie photo data for the account.\").optional(),\n \"email-address\": z.string().describe(\"Email address for the account.\").optional(),\n \"account-status\": z.string().describe(\"Status of the account.\").optional(),\n \"account-type-id\": z.string().describe(\"ID of the account type to use for this account.\").optional(),\n \"address-street-1\": z.string().describe(\"First line of the account address.\").optional(),\n \"address-street-2\": z.string().describe(\"Second line of the account address.\").optional(),\n \"address-postal-code\": z.string().describe(\"Postal code for the account address.\").optional(),\n \"address-subdivision\": z.string().describe(\"State or subdivision for the account address.\").optional(),\n \"social-security-number\": z.string().describe(\"Social security number for the account.\").optional(),\n}).describe(\"Attributes for the account.\"),\n}).describe(\"The account data to create.\"),\n meta: z.object({\n \"upsert-by\": z.string().describe(\"The field name to use for upserting the account. This field must be unique across all accounts for the given account type.\").optional(),\n}).describe(\"Meta information for account creation.\").optional(),\n include: z.string().describe(\"A comma-separated list of relationship paths to include in the response.\").optional(),\n sparse_fields: z.record(z.string(), z.unknown()).describe(\"Comma-separated list(s) of attributes to include in the response, keyed by resource type.\").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. Sent as header.\").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(\"Server API version.\").optional(),\n}).describe(\"Request model for creating an account in Persona.\");\nconst PersonaCreateAnAccount_ResponseAccountAttributesSchema = z.object({\n tags: z.array(z.string()).describe(\"Tags associated with the account.\").nullable().optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"Custom fields for the account. This is not key inflected. Each field has a 'type' and 'value' property.\").nullable().optional(),\n birthdate: z.string().describe(\"Birthdate in YYYY-MM-DD format.\").nullable().optional(),\n \"name-last\": z.string().describe(\"Last name of the account holder.\").nullable().optional(),\n \"created-at\": z.string().describe(\"Timestamp when the account was created.\").nullable().optional(),\n \"name-first\": z.string().describe(\"First name of the account holder.\").nullable().optional(),\n \"updated-at\": z.string().describe(\"Timestamp when the account was last updated.\").nullable().optional(),\n \"name-middle\": z.string().describe(\"Middle name of the account holder.\").nullable().optional(),\n \"redacted-at\": z.string().describe(\"Timestamp when the account was redacted, if applicable.\").nullable().optional(),\n \"address-city\": z.string().describe(\"City for the account address.\").nullable().optional(),\n \"country-code\": z.string().describe(\"Two-letter country code (ISO 3166-1 alpha-2).\").nullable().optional(),\n \"phone-number\": z.string().describe(\"Phone number for the account.\").nullable().optional(),\n \"reference-id\": z.string().describe(\"External reference ID for the account.\").nullable().optional(),\n \"email-address\": z.string().describe(\"Email address for the account.\").nullable().optional(),\n \"account-status\": z.string().describe(\"Status of the account.\").nullable().optional(),\n \"address-street-1\": z.string().describe(\"First line of the account address.\").nullable().optional(),\n \"address-street-2\": z.string().describe(\"Second line of the account address.\").nullable().optional(),\n \"account-type-name\": z.string().describe(\"Name of the account type.\").nullable().optional(),\n \"address-postal-code\": z.string().describe(\"Postal code for the account address.\").nullable().optional(),\n \"address-subdivision\": z.string().describe(\"State or subdivision for the account address.\").nullable().optional(),\n \"identification-numbers\": z.record(z.string(), z.unknown()).describe(\"Identification numbers for the account.\").nullable().optional(),\n \"social-security-number\": z.string().describe(\"Social security number for the account.\").nullable().optional(),\n}).passthrough().describe(\"Attributes returned in the account response.\");\nconst PersonaCreateAnAccount_RelationshipDataSchema = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Relationship data.\").nullable().optional(),\n}).passthrough().describe(\"Relationship data structure.\");\nconst PersonaCreateAnAccount_ResponseAccountRelationshipsSchema = z.object({\n \"account-type\": PersonaCreateAnAccount_RelationshipDataSchema.nullable().optional(),\n}).passthrough().describe(\"Relationships in the account response.\");\nconst PersonaCreateAnAccount_ResponseAccountDataSchema = z.object({\n id: z.string().describe(\"Unique identifier for the account.\").nullable(),\n type: z.string().describe(\"Resource type, typically 'account'.\").nullable(),\n attributes: PersonaCreateAnAccount_ResponseAccountAttributesSchema.nullable().optional(),\n relationships: PersonaCreateAnAccount_ResponseAccountRelationshipsSchema.nullable().optional(),\n}).passthrough().describe(\"Account data returned in the response.\");\nconst PersonaCreateAnAccount_IncludedResourceSchema = z.object({\n id: z.string().describe(\"Unique identifier for the included resource.\").nullable(),\n type: z.string().describe(\"Resource type.\").nullable(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Attributes of the included resource.\").nullable().optional(),\n}).passthrough().describe(\"Included resources in the response.\");\nexport const PersonaCreateAnAccountOutput = z.object({\n data: PersonaCreateAnAccount_ResponseAccountDataSchema.nullable(),\n included: z.array(PersonaCreateAnAccount_IncludedResourceSchema).describe(\"Related resources included in the response.\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after creating an account in Persona.\");\n\nexport const personaCreateAnAccount = action(\"PERSONA_CREATE_AN_ACCOUNT\", {\n slug: \"persona-create-an-account\",\n name: \"Create an Account\",\n description: \"Tool to create an account in Persona. Use when you need to create a new account with personal information such as name, email, phone, address, and custom fields.\",\n input: PersonaCreateAnAccountInput,\n output: PersonaCreateAnAccountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EAC5G,YAAYA,IAAAA,EAAE,OAAO;GACrB,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;GACnF,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAA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,EACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC1E,YAAY,uDAAuD,SAAS,CAAC,CAAC,SAAS;CACvF,eAAe,0DAA0D,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACrD,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAM,iDAAiD,SAAS;CAChE,UAAUA,IAAAA,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAA+D;AAEzF,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-an-account.cjs","names":["z","action"],"sources":["../../src/actions/create-an-account.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { persona } from \"../app\";\n\nexport const PersonaCreateAnAccountInput = z.object({\n data: z.object({\n type: z.string().default(\"account\").describe(\"The resource type for JSON:API. Must be 'account'.\").optional(),\n attributes: z.object({\n tags: z.array(z.string()).describe(\"Tags to associate with the account.\").optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"Custom fields for the account. This is not key inflected.\").optional(),\n birthdate: z.string().describe(\"Birthdate in YYYY-MM-DD format.\").optional(),\n \"name-last\": z.string().describe(\"Last name of the account holder.\").optional(),\n \"name-first\": z.string().describe(\"First name of the account holder.\").optional(),\n \"name-middle\": z.string().describe(\"Middle name of the account holder.\").optional(),\n \"address-city\": z.string().describe(\"City for the account address.\").optional(),\n \"country-code\": z.string().describe(\"Two-letter country code (ISO 3166-1 alpha-2).\").optional(),\n \"phone-number\": z.string().describe(\"Phone number for the account.\").optional(),\n \"reference-id\": z.string().describe(\"External reference ID for the account.\").optional(),\n \"selfie-photo\": z.record(z.string(), z.unknown()).describe(\"Selfie photo data for the account.\").optional(),\n \"email-address\": z.string().describe(\"Email address for the account.\").optional(),\n \"account-status\": z.string().describe(\"Status of the account.\").optional(),\n \"account-type-id\": z.string().describe(\"ID of the account type to use for this account.\").optional(),\n \"address-street-1\": z.string().describe(\"First line of the account address.\").optional(),\n \"address-street-2\": z.string().describe(\"Second line of the account address.\").optional(),\n \"address-postal-code\": z.string().describe(\"Postal code for the account address.\").optional(),\n \"address-subdivision\": z.string().describe(\"State or subdivision for the account address.\").optional(),\n \"social-security-number\": z.string().describe(\"Social security number for the account.\").optional(),\n}).describe(\"Attributes for the account.\"),\n}).describe(\"The account data to create.\"),\n meta: z.object({\n \"upsert-by\": z.string().describe(\"The field name to use for upserting the account. This field must be unique across all accounts for the given account type.\").optional(),\n}).describe(\"Meta information for account creation.\").optional(),\n include: z.string().describe(\"A comma-separated list of relationship paths to include in the response.\").optional(),\n sparse_fields: z.record(z.string(), z.unknown()).describe(\"Comma-separated list(s) of attributes to include in the response, keyed by resource type.\").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. Sent as header.\").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(\"Server API version.\").optional(),\n}).describe(\"Request model for creating an account in Persona.\");\nconst PersonaCreateAnAccount_ResponseAccountAttributesSchema = z.object({\n tags: z.array(z.string()).describe(\"Tags associated with the account.\").nullable().optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"Custom fields for the account. This is not key inflected. Each field has a 'type' and 'value' property.\").nullable().optional(),\n birthdate: z.string().describe(\"Birthdate in YYYY-MM-DD format.\").nullable().optional(),\n \"name-last\": z.string().describe(\"Last name of the account holder.\").nullable().optional(),\n \"created-at\": z.string().describe(\"Timestamp when the account was created.\").nullable().optional(),\n \"name-first\": z.string().describe(\"First name of the account holder.\").nullable().optional(),\n \"updated-at\": z.string().describe(\"Timestamp when the account was last updated.\").nullable().optional(),\n \"name-middle\": z.string().describe(\"Middle name of the account holder.\").nullable().optional(),\n \"redacted-at\": z.string().describe(\"Timestamp when the account was redacted, if applicable.\").nullable().optional(),\n \"address-city\": z.string().describe(\"City for the account address.\").nullable().optional(),\n \"country-code\": z.string().describe(\"Two-letter country code (ISO 3166-1 alpha-2).\").nullable().optional(),\n \"phone-number\": z.string().describe(\"Phone number for the account.\").nullable().optional(),\n \"reference-id\": z.string().describe(\"External reference ID for the account.\").nullable().optional(),\n \"email-address\": z.string().describe(\"Email address for the account.\").nullable().optional(),\n \"account-status\": z.string().describe(\"Status of the account.\").nullable().optional(),\n \"address-street-1\": z.string().describe(\"First line of the account address.\").nullable().optional(),\n \"address-street-2\": z.string().describe(\"Second line of the account address.\").nullable().optional(),\n \"account-type-name\": z.string().describe(\"Name of the account type.\").nullable().optional(),\n \"address-postal-code\": z.string().describe(\"Postal code for the account address.\").nullable().optional(),\n \"address-subdivision\": z.string().describe(\"State or subdivision for the account address.\").nullable().optional(),\n \"identification-numbers\": z.record(z.string(), z.unknown()).describe(\"Identification numbers for the account.\").nullable().optional(),\n \"social-security-number\": z.string().describe(\"Social security number for the account.\").nullable().optional(),\n}).passthrough().describe(\"Attributes returned in the account response.\");\nconst PersonaCreateAnAccount_RelationshipDataSchema = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Relationship data.\").nullable().optional(),\n}).passthrough().describe(\"Relationship data structure.\");\nconst PersonaCreateAnAccount_ResponseAccountRelationshipsSchema = z.object({\n \"account-type\": PersonaCreateAnAccount_RelationshipDataSchema.nullable().optional(),\n}).passthrough().describe(\"Relationships in the account response.\");\nconst PersonaCreateAnAccount_ResponseAccountDataSchema = z.object({\n id: z.string().describe(\"Unique identifier for the account.\").nullable(),\n type: z.string().describe(\"Resource type, typically 'account'.\").nullable(),\n attributes: PersonaCreateAnAccount_ResponseAccountAttributesSchema.nullable().optional(),\n relationships: PersonaCreateAnAccount_ResponseAccountRelationshipsSchema.nullable().optional(),\n}).passthrough().describe(\"Account data returned in the response.\");\nconst PersonaCreateAnAccount_IncludedResourceSchema = z.object({\n id: z.string().describe(\"Unique identifier for the included resource.\").nullable(),\n type: z.string().describe(\"Resource type.\").nullable(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Attributes of the included resource.\").nullable().optional(),\n}).passthrough().describe(\"Included resources in the response.\");\nexport const PersonaCreateAnAccountOutput = z.object({\n data: PersonaCreateAnAccount_ResponseAccountDataSchema.nullable(),\n included: z.array(PersonaCreateAnAccount_IncludedResourceSchema).describe(\"Related resources included in the response.\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after creating an account in Persona.\");\n\nexport const personaCreateAnAccount: AppAction<\n typeof PersonaCreateAnAccountInput,\n typeof PersonaCreateAnAccountOutput,\n typeof persona.credential\n> = action(\"PERSONA_CREATE_AN_ACCOUNT\", {\n slug: \"persona-create-an-account\",\n name: \"Create an Account\",\n description: \"Tool to create an account in Persona. Use when you need to create a new account with personal information such as name, email, phone, address, and custom fields.\",\n input: PersonaCreateAnAccountInput,\n output: PersonaCreateAnAccountOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EAC5G,YAAYA,IAAAA,EAAE,OAAO;GACrB,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;GACnF,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;GACzH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;GAC3E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;GAC9E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;GAChF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;GAClF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;GAC9E,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;GAC9F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;GAC9E,gBAAgBA,IAAAA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C,CAAC,SAAS;CACrD,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAM,iDAAiD,SAAS;CAChE,UAAUA,IAAAA,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAA+D;AAEzF,MAAa,yBAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { persona } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-an-account.d.ts
|
|
@@ -88,52 +90,7 @@ declare const PersonaCreateAnAccountOutput: z.ZodObject<{
|
|
|
88
90
|
attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
89
91
|
}, z.core.$loose>>>>;
|
|
90
92
|
}, z.core.$loose>;
|
|
91
|
-
declare const personaCreateAnAccount:
|
|
92
|
-
data: {
|
|
93
|
-
attributes: {
|
|
94
|
-
tags?: string[] | undefined;
|
|
95
|
-
fields?: Record<string, unknown> | undefined;
|
|
96
|
-
birthdate?: string | undefined;
|
|
97
|
-
"name-last"?: string | undefined;
|
|
98
|
-
"name-first"?: string | undefined;
|
|
99
|
-
"name-middle"?: string | undefined;
|
|
100
|
-
"address-city"?: string | undefined;
|
|
101
|
-
"country-code"?: string | undefined;
|
|
102
|
-
"phone-number"?: string | undefined;
|
|
103
|
-
"reference-id"?: string | undefined;
|
|
104
|
-
"selfie-photo"?: Record<string, unknown> | undefined;
|
|
105
|
-
"email-address"?: string | undefined;
|
|
106
|
-
"account-status"?: string | undefined;
|
|
107
|
-
"account-type-id"?: string | undefined;
|
|
108
|
-
"address-street-1"?: string | undefined;
|
|
109
|
-
"address-street-2"?: string | undefined;
|
|
110
|
-
"address-postal-code"?: string | undefined;
|
|
111
|
-
"address-subdivision"?: string | undefined;
|
|
112
|
-
"social-security-number"?: string | undefined;
|
|
113
|
-
};
|
|
114
|
-
type?: string | undefined;
|
|
115
|
-
};
|
|
116
|
-
meta?: {
|
|
117
|
-
"upsert-by"?: string | undefined;
|
|
118
|
-
} | undefined;
|
|
119
|
-
include?: string | undefined;
|
|
120
|
-
sparse_fields?: Record<string, unknown> | undefined;
|
|
121
|
-
"Key-Inflection"?: "camel" | "kebab" | "snake" | undefined;
|
|
122
|
-
"Idempotency-Key"?: string | undefined;
|
|
123
|
-
"Persona-Version"?: "2025-12-08" | "2025-10-27" | "2023-01-05" | "2022-09-01" | "2021-08-18" | "2021-07-05" | "2021-02-21" | "2020-05-18" | undefined;
|
|
124
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"persona", z.ZodObject<{
|
|
125
|
-
connectionId: z.ZodString;
|
|
126
|
-
entityId: z.ZodString;
|
|
127
|
-
instanceId: z.ZodString;
|
|
128
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
129
|
-
generic_api_key: z.ZodString;
|
|
130
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"persona", z.ZodObject<{
|
|
131
|
-
connectionId: z.ZodString;
|
|
132
|
-
entityId: z.ZodString;
|
|
133
|
-
instanceId: z.ZodString;
|
|
134
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
135
|
-
generic_api_key: z.ZodString;
|
|
136
|
-
}, z.core.$strip>>]>;
|
|
93
|
+
declare const personaCreateAnAccount: AppAction<typeof PersonaCreateAnAccountInput, typeof PersonaCreateAnAccountOutput, typeof persona.credential>;
|
|
137
94
|
//#endregion
|
|
138
95
|
export { personaCreateAnAccount };
|
|
139
96
|
//# sourceMappingURL=create-an-account.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-an-account.d.cts","names":[],"sources":["../../src/actions/create-an-account.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-an-account.d.cts","names":[],"sources":["../../src/actions/create-an-account.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2E3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { persona } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-an-account.d.ts
|
|
@@ -88,52 +90,7 @@ declare const PersonaCreateAnAccountOutput: z.ZodObject<{
|
|
|
88
90
|
attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
89
91
|
}, z.core.$loose>>>>;
|
|
90
92
|
}, z.core.$loose>;
|
|
91
|
-
declare const personaCreateAnAccount:
|
|
92
|
-
data: {
|
|
93
|
-
attributes: {
|
|
94
|
-
tags?: string[] | undefined;
|
|
95
|
-
fields?: Record<string, unknown> | undefined;
|
|
96
|
-
birthdate?: string | undefined;
|
|
97
|
-
"name-last"?: string | undefined;
|
|
98
|
-
"name-first"?: string | undefined;
|
|
99
|
-
"name-middle"?: string | undefined;
|
|
100
|
-
"address-city"?: string | undefined;
|
|
101
|
-
"country-code"?: string | undefined;
|
|
102
|
-
"phone-number"?: string | undefined;
|
|
103
|
-
"reference-id"?: string | undefined;
|
|
104
|
-
"selfie-photo"?: Record<string, unknown> | undefined;
|
|
105
|
-
"email-address"?: string | undefined;
|
|
106
|
-
"account-status"?: string | undefined;
|
|
107
|
-
"account-type-id"?: string | undefined;
|
|
108
|
-
"address-street-1"?: string | undefined;
|
|
109
|
-
"address-street-2"?: string | undefined;
|
|
110
|
-
"address-postal-code"?: string | undefined;
|
|
111
|
-
"address-subdivision"?: string | undefined;
|
|
112
|
-
"social-security-number"?: string | undefined;
|
|
113
|
-
};
|
|
114
|
-
type?: string | undefined;
|
|
115
|
-
};
|
|
116
|
-
meta?: {
|
|
117
|
-
"upsert-by"?: string | undefined;
|
|
118
|
-
} | undefined;
|
|
119
|
-
include?: string | undefined;
|
|
120
|
-
sparse_fields?: Record<string, unknown> | undefined;
|
|
121
|
-
"Key-Inflection"?: "camel" | "kebab" | "snake" | undefined;
|
|
122
|
-
"Idempotency-Key"?: string | undefined;
|
|
123
|
-
"Persona-Version"?: "2025-12-08" | "2025-10-27" | "2023-01-05" | "2022-09-01" | "2021-08-18" | "2021-07-05" | "2021-02-21" | "2020-05-18" | undefined;
|
|
124
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"persona", z.ZodObject<{
|
|
125
|
-
connectionId: z.ZodString;
|
|
126
|
-
entityId: z.ZodString;
|
|
127
|
-
instanceId: z.ZodString;
|
|
128
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
129
|
-
generic_api_key: z.ZodString;
|
|
130
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"persona", z.ZodObject<{
|
|
131
|
-
connectionId: z.ZodString;
|
|
132
|
-
entityId: z.ZodString;
|
|
133
|
-
instanceId: z.ZodString;
|
|
134
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
135
|
-
generic_api_key: z.ZodString;
|
|
136
|
-
}, z.core.$strip>>]>;
|
|
93
|
+
declare const personaCreateAnAccount: AppAction<typeof PersonaCreateAnAccountInput, typeof PersonaCreateAnAccountOutput, typeof persona.credential>;
|
|
137
94
|
//#endregion
|
|
138
95
|
export { personaCreateAnAccount };
|
|
139
96
|
//# sourceMappingURL=create-an-account.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-an-account.d.mts","names":[],"sources":["../../src/actions/create-an-account.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-an-account.d.mts","names":[],"sources":["../../src/actions/create-an-account.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2E3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-an-account.mjs","names":[],"sources":["../../src/actions/create-an-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaCreateAnAccountInput = z.object({\n data: z.object({\n type: z.string().default(\"account\").describe(\"The resource type for JSON:API. Must be 'account'.\").optional(),\n attributes: z.object({\n tags: z.array(z.string()).describe(\"Tags to associate with the account.\").optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"Custom fields for the account. This is not key inflected.\").optional(),\n birthdate: z.string().describe(\"Birthdate in YYYY-MM-DD format.\").optional(),\n \"name-last\": z.string().describe(\"Last name of the account holder.\").optional(),\n \"name-first\": z.string().describe(\"First name of the account holder.\").optional(),\n \"name-middle\": z.string().describe(\"Middle name of the account holder.\").optional(),\n \"address-city\": z.string().describe(\"City for the account address.\").optional(),\n \"country-code\": z.string().describe(\"Two-letter country code (ISO 3166-1 alpha-2).\").optional(),\n \"phone-number\": z.string().describe(\"Phone number for the account.\").optional(),\n \"reference-id\": z.string().describe(\"External reference ID for the account.\").optional(),\n \"selfie-photo\": z.record(z.string(), z.unknown()).describe(\"Selfie photo data for the account.\").optional(),\n \"email-address\": z.string().describe(\"Email address for the account.\").optional(),\n \"account-status\": z.string().describe(\"Status of the account.\").optional(),\n \"account-type-id\": z.string().describe(\"ID of the account type to use for this account.\").optional(),\n \"address-street-1\": z.string().describe(\"First line of the account address.\").optional(),\n \"address-street-2\": z.string().describe(\"Second line of the account address.\").optional(),\n \"address-postal-code\": z.string().describe(\"Postal code for the account address.\").optional(),\n \"address-subdivision\": z.string().describe(\"State or subdivision for the account address.\").optional(),\n \"social-security-number\": z.string().describe(\"Social security number for the account.\").optional(),\n}).describe(\"Attributes for the account.\"),\n}).describe(\"The account data to create.\"),\n meta: z.object({\n \"upsert-by\": z.string().describe(\"The field name to use for upserting the account. This field must be unique across all accounts for the given account type.\").optional(),\n}).describe(\"Meta information for account creation.\").optional(),\n include: z.string().describe(\"A comma-separated list of relationship paths to include in the response.\").optional(),\n sparse_fields: z.record(z.string(), z.unknown()).describe(\"Comma-separated list(s) of attributes to include in the response, keyed by resource type.\").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. Sent as header.\").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(\"Server API version.\").optional(),\n}).describe(\"Request model for creating an account in Persona.\");\nconst PersonaCreateAnAccount_ResponseAccountAttributesSchema = z.object({\n tags: z.array(z.string()).describe(\"Tags associated with the account.\").nullable().optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"Custom fields for the account. This is not key inflected. Each field has a 'type' and 'value' property.\").nullable().optional(),\n birthdate: z.string().describe(\"Birthdate in YYYY-MM-DD format.\").nullable().optional(),\n \"name-last\": z.string().describe(\"Last name of the account holder.\").nullable().optional(),\n \"created-at\": z.string().describe(\"Timestamp when the account was created.\").nullable().optional(),\n \"name-first\": z.string().describe(\"First name of the account holder.\").nullable().optional(),\n \"updated-at\": z.string().describe(\"Timestamp when the account was last updated.\").nullable().optional(),\n \"name-middle\": z.string().describe(\"Middle name of the account holder.\").nullable().optional(),\n \"redacted-at\": z.string().describe(\"Timestamp when the account was redacted, if applicable.\").nullable().optional(),\n \"address-city\": z.string().describe(\"City for the account address.\").nullable().optional(),\n \"country-code\": z.string().describe(\"Two-letter country code (ISO 3166-1 alpha-2).\").nullable().optional(),\n \"phone-number\": z.string().describe(\"Phone number for the account.\").nullable().optional(),\n \"reference-id\": z.string().describe(\"External reference ID for the account.\").nullable().optional(),\n \"email-address\": z.string().describe(\"Email address for the account.\").nullable().optional(),\n \"account-status\": z.string().describe(\"Status of the account.\").nullable().optional(),\n \"address-street-1\": z.string().describe(\"First line of the account address.\").nullable().optional(),\n \"address-street-2\": z.string().describe(\"Second line of the account address.\").nullable().optional(),\n \"account-type-name\": z.string().describe(\"Name of the account type.\").nullable().optional(),\n \"address-postal-code\": z.string().describe(\"Postal code for the account address.\").nullable().optional(),\n \"address-subdivision\": z.string().describe(\"State or subdivision for the account address.\").nullable().optional(),\n \"identification-numbers\": z.record(z.string(), z.unknown()).describe(\"Identification numbers for the account.\").nullable().optional(),\n \"social-security-number\": z.string().describe(\"Social security number for the account.\").nullable().optional(),\n}).passthrough().describe(\"Attributes returned in the account response.\");\nconst PersonaCreateAnAccount_RelationshipDataSchema = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Relationship data.\").nullable().optional(),\n}).passthrough().describe(\"Relationship data structure.\");\nconst PersonaCreateAnAccount_ResponseAccountRelationshipsSchema = z.object({\n \"account-type\": PersonaCreateAnAccount_RelationshipDataSchema.nullable().optional(),\n}).passthrough().describe(\"Relationships in the account response.\");\nconst PersonaCreateAnAccount_ResponseAccountDataSchema = z.object({\n id: z.string().describe(\"Unique identifier for the account.\").nullable(),\n type: z.string().describe(\"Resource type, typically 'account'.\").nullable(),\n attributes: PersonaCreateAnAccount_ResponseAccountAttributesSchema.nullable().optional(),\n relationships: PersonaCreateAnAccount_ResponseAccountRelationshipsSchema.nullable().optional(),\n}).passthrough().describe(\"Account data returned in the response.\");\nconst PersonaCreateAnAccount_IncludedResourceSchema = z.object({\n id: z.string().describe(\"Unique identifier for the included resource.\").nullable(),\n type: z.string().describe(\"Resource type.\").nullable(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Attributes of the included resource.\").nullable().optional(),\n}).passthrough().describe(\"Included resources in the response.\");\nexport const PersonaCreateAnAccountOutput = z.object({\n data: PersonaCreateAnAccount_ResponseAccountDataSchema.nullable(),\n included: z.array(PersonaCreateAnAccount_IncludedResourceSchema).describe(\"Related resources included in the response.\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after creating an account in Persona.\");\n\nexport const personaCreateAnAccount = action(\"PERSONA_CREATE_AN_ACCOUNT\", {\n slug: \"persona-create-an-account\",\n name: \"Create an Account\",\n description: \"Tool to create an account in Persona. Use when you need to create a new account with personal information such as name, email, phone, address, and custom fields.\",\n input: PersonaCreateAnAccountInput,\n output: PersonaCreateAnAccountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO;EACf,MAAM,EAAE,OAAO,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EAC5G,YAAY,EAAE,OAAO;GACrB,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;GACnF,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;GACzH,WA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CAAC,CAAC,SAAS;CACrD,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAM/D,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV0C,EAAE,OAAO;EACnD,MAAM,iDAAiD,SAAS;EAChE,UAAU,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAOhB;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-an-account.mjs","names":[],"sources":["../../src/actions/create-an-account.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { persona } from \"../app\";\n\nexport const PersonaCreateAnAccountInput = z.object({\n data: z.object({\n type: z.string().default(\"account\").describe(\"The resource type for JSON:API. Must be 'account'.\").optional(),\n attributes: z.object({\n tags: z.array(z.string()).describe(\"Tags to associate with the account.\").optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"Custom fields for the account. This is not key inflected.\").optional(),\n birthdate: z.string().describe(\"Birthdate in YYYY-MM-DD format.\").optional(),\n \"name-last\": z.string().describe(\"Last name of the account holder.\").optional(),\n \"name-first\": z.string().describe(\"First name of the account holder.\").optional(),\n \"name-middle\": z.string().describe(\"Middle name of the account holder.\").optional(),\n \"address-city\": z.string().describe(\"City for the account address.\").optional(),\n \"country-code\": z.string().describe(\"Two-letter country code (ISO 3166-1 alpha-2).\").optional(),\n \"phone-number\": z.string().describe(\"Phone number for the account.\").optional(),\n \"reference-id\": z.string().describe(\"External reference ID for the account.\").optional(),\n \"selfie-photo\": z.record(z.string(), z.unknown()).describe(\"Selfie photo data for the account.\").optional(),\n \"email-address\": z.string().describe(\"Email address for the account.\").optional(),\n \"account-status\": z.string().describe(\"Status of the account.\").optional(),\n \"account-type-id\": z.string().describe(\"ID of the account type to use for this account.\").optional(),\n \"address-street-1\": z.string().describe(\"First line of the account address.\").optional(),\n \"address-street-2\": z.string().describe(\"Second line of the account address.\").optional(),\n \"address-postal-code\": z.string().describe(\"Postal code for the account address.\").optional(),\n \"address-subdivision\": z.string().describe(\"State or subdivision for the account address.\").optional(),\n \"social-security-number\": z.string().describe(\"Social security number for the account.\").optional(),\n}).describe(\"Attributes for the account.\"),\n}).describe(\"The account data to create.\"),\n meta: z.object({\n \"upsert-by\": z.string().describe(\"The field name to use for upserting the account. This field must be unique across all accounts for the given account type.\").optional(),\n}).describe(\"Meta information for account creation.\").optional(),\n include: z.string().describe(\"A comma-separated list of relationship paths to include in the response.\").optional(),\n sparse_fields: z.record(z.string(), z.unknown()).describe(\"Comma-separated list(s) of attributes to include in the response, keyed by resource type.\").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. Sent as header.\").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(\"Server API version.\").optional(),\n}).describe(\"Request model for creating an account in Persona.\");\nconst PersonaCreateAnAccount_ResponseAccountAttributesSchema = z.object({\n tags: z.array(z.string()).describe(\"Tags associated with the account.\").nullable().optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"Custom fields for the account. This is not key inflected. Each field has a 'type' and 'value' property.\").nullable().optional(),\n birthdate: z.string().describe(\"Birthdate in YYYY-MM-DD format.\").nullable().optional(),\n \"name-last\": z.string().describe(\"Last name of the account holder.\").nullable().optional(),\n \"created-at\": z.string().describe(\"Timestamp when the account was created.\").nullable().optional(),\n \"name-first\": z.string().describe(\"First name of the account holder.\").nullable().optional(),\n \"updated-at\": z.string().describe(\"Timestamp when the account was last updated.\").nullable().optional(),\n \"name-middle\": z.string().describe(\"Middle name of the account holder.\").nullable().optional(),\n \"redacted-at\": z.string().describe(\"Timestamp when the account was redacted, if applicable.\").nullable().optional(),\n \"address-city\": z.string().describe(\"City for the account address.\").nullable().optional(),\n \"country-code\": z.string().describe(\"Two-letter country code (ISO 3166-1 alpha-2).\").nullable().optional(),\n \"phone-number\": z.string().describe(\"Phone number for the account.\").nullable().optional(),\n \"reference-id\": z.string().describe(\"External reference ID for the account.\").nullable().optional(),\n \"email-address\": z.string().describe(\"Email address for the account.\").nullable().optional(),\n \"account-status\": z.string().describe(\"Status of the account.\").nullable().optional(),\n \"address-street-1\": z.string().describe(\"First line of the account address.\").nullable().optional(),\n \"address-street-2\": z.string().describe(\"Second line of the account address.\").nullable().optional(),\n \"account-type-name\": z.string().describe(\"Name of the account type.\").nullable().optional(),\n \"address-postal-code\": z.string().describe(\"Postal code for the account address.\").nullable().optional(),\n \"address-subdivision\": z.string().describe(\"State or subdivision for the account address.\").nullable().optional(),\n \"identification-numbers\": z.record(z.string(), z.unknown()).describe(\"Identification numbers for the account.\").nullable().optional(),\n \"social-security-number\": z.string().describe(\"Social security number for the account.\").nullable().optional(),\n}).passthrough().describe(\"Attributes returned in the account response.\");\nconst PersonaCreateAnAccount_RelationshipDataSchema = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Relationship data.\").nullable().optional(),\n}).passthrough().describe(\"Relationship data structure.\");\nconst PersonaCreateAnAccount_ResponseAccountRelationshipsSchema = z.object({\n \"account-type\": PersonaCreateAnAccount_RelationshipDataSchema.nullable().optional(),\n}).passthrough().describe(\"Relationships in the account response.\");\nconst PersonaCreateAnAccount_ResponseAccountDataSchema = z.object({\n id: z.string().describe(\"Unique identifier for the account.\").nullable(),\n type: z.string().describe(\"Resource type, typically 'account'.\").nullable(),\n attributes: PersonaCreateAnAccount_ResponseAccountAttributesSchema.nullable().optional(),\n relationships: PersonaCreateAnAccount_ResponseAccountRelationshipsSchema.nullable().optional(),\n}).passthrough().describe(\"Account data returned in the response.\");\nconst PersonaCreateAnAccount_IncludedResourceSchema = z.object({\n id: z.string().describe(\"Unique identifier for the included resource.\").nullable(),\n type: z.string().describe(\"Resource type.\").nullable(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Attributes of the included resource.\").nullable().optional(),\n}).passthrough().describe(\"Included resources in the response.\");\nexport const PersonaCreateAnAccountOutput = z.object({\n data: PersonaCreateAnAccount_ResponseAccountDataSchema.nullable(),\n included: z.array(PersonaCreateAnAccount_IncludedResourceSchema).describe(\"Related resources included in the response.\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after creating an account in Persona.\");\n\nexport const personaCreateAnAccount: AppAction<\n typeof PersonaCreateAnAccountInput,\n typeof PersonaCreateAnAccountOutput,\n typeof persona.credential\n> = action(\"PERSONA_CREATE_AN_ACCOUNT\", {\n slug: \"persona-create-an-account\",\n name: \"Create an Account\",\n description: \"Tool to create an account in Persona. Use when you need to create a new account with personal information such as name, email, phone, address, and custom fields.\",\n input: PersonaCreateAnAccountInput,\n output: PersonaCreateAnAccountOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8B,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO;EACf,MAAM,EAAE,OAAO,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EAC5G,YAAY,EAAE,OAAO;GACrB,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;GACnF,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;GACzH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;GAC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E,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAM/D,MAAa,yBAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd0C,EAAE,OAAO;EACnD,MAAM,iDAAiD,SAAS;EAChE,UAAU,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-an-ip-address-list-item.cjs","names":["z","action"],"sources":["../../src/actions/create-an-ip-address-list-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaCreateAnIpAddressListItemInput = z.object({\n value: z.string().describe(\"The IP address value to add to the list. Can be a single IP address (e.g., '192.168.1.100') or CIDR notation (e.g., '192.168.1.0/24').\"),\n include: z.string().describe(\"A comma-separated list of relationship paths to include in the response (e.g., 'creator').\").optional(),\n list_id: z.string().describe(\"The ID of the list to add the IP address to. Must start 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 duplicate requests to prevent creating multiple identical items.\").optional(),\n}).describe(\"Request model for creating an IP Address List Item.\");\nconst PersonaCreateAnIpAddressListItem_CreateAnIpAddressListItemResponseAttributesSchema = z.object({\n value: z.string().describe(\"The IP address value of the list item.\").nullable(),\n status: z.string().describe(\"Current status of the list item.\").nullable(),\n \"created-at\": z.string().describe(\"Timestamp when the item was created.\").nullable().optional(),\n \"updated-at\": z.string().describe(\"Timestamp when the item was last updated.\").nullable().optional(),\n \"archived-at\": z.string().describe(\"Timestamp when the item was archived, if applicable.\").nullable().optional(),\n \"match-count\": z.number().int().describe(\"Number of matches for this IP address item.\").nullable().optional(),\n \"redacted-at\": z.string().describe(\"Timestamp when the item was redacted, if applicable.\").nullable().optional(),\n}).passthrough().describe(\"Attributes of the created IP Address List Item.\");\nconst PersonaCreateAnIpAddressListItem_CreateAnIpAddressListItemResponseRelationshipsCreatorDataSchema = z.object({\n id: z.string().describe(\"ID of the creator.\").nullable().optional(),\n type: z.string().describe(\"Type of the creator resource.\").nullable().optional(),\n}).passthrough().describe(\"Creator data within relationship.\");\nconst PersonaCreateAnIpAddressListItem_CreateAnIpAddressListItemResponseRelationshipsCreatorSchema = z.object({\n data: PersonaCreateAnIpAddressListItem_CreateAnIpAddressListItemResponseRelationshipsCreatorDataSchema.nullable().optional(),\n}).passthrough().describe(\"Creator relationship data.\");\nconst PersonaCreateAnIpAddressListItem_CreateAnIpAddressListItemResponseRelationshipsSchema = z.object({\n creator: PersonaCreateAnIpAddressListItem_CreateAnIpAddressListItemResponseRelationshipsCreatorSchema.nullable().optional(),\n}).passthrough().describe(\"Relationships of the created IP Address List Item.\");\nconst PersonaCreateAnIpAddressListItem_CreateAnIpAddressListItemResponseDataSchema = z.object({\n id: z.string().describe(\"Unique identifier for this list item. Starts with 'liip_'.\").nullable(),\n type: z.string().describe(\"Type of the resource.\").nullable(),\n attributes: PersonaCreateAnIpAddressListItem_CreateAnIpAddressListItemResponseAttributesSchema.nullable(),\n relationships: PersonaCreateAnIpAddressListItem_CreateAnIpAddressListItemResponseRelationshipsSchema.nullable().optional(),\n}).passthrough().describe(\"Data of the created IP Address List Item.\");\nexport const PersonaCreateAnIpAddressListItemOutput = z.object({\n data: PersonaCreateAnIpAddressListItem_CreateAnIpAddressListItemResponseDataSchema.nullable(),\n}).passthrough().describe(\"Response model for creating an IP Address List Item.\");\n\nexport const personaCreateAnIpAddressListItem = action(\"PERSONA_CREATE_AN_IP_ADDRESS_LIST_ITEM\", {\n slug: \"persona-create-an-ip-address-list-item\",\n name: \"Create IP Address List Item\",\n description: \"Tool to create an IP Address List Item in Persona. Use when you need to add an IP address to a watchlist or allowlist for identity verification purposes. The list ID must be obtained first using a list retrieval action.\",\n input: PersonaCreateAnIpAddressListItemInput,\n output: PersonaCreateAnIpAddressListItemOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-an-ip-address-list-item.cjs","names":["z","action"],"sources":["../../src/actions/create-an-ip-address-list-item.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { persona } from \"../app\";\n\nexport const PersonaCreateAnIpAddressListItemInput = z.object({\n value: z.string().describe(\"The IP address value to add to the list. Can be a single IP address (e.g., '192.168.1.100') or CIDR notation (e.g., '192.168.1.0/24').\"),\n include: z.string().describe(\"A comma-separated list of relationship paths to include in the response (e.g., 'creator').\").optional(),\n list_id: z.string().describe(\"The ID of the list to add the IP address to. Must start 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 duplicate requests to prevent creating multiple identical items.\").optional(),\n}).describe(\"Request model for creating an IP Address List Item.\");\nconst PersonaCreateAnIpAddressListItem_CreateAnIpAddressListItemResponseAttributesSchema = z.object({\n value: z.string().describe(\"The IP address value of the list item.\").nullable(),\n status: z.string().describe(\"Current status of the list item.\").nullable(),\n \"created-at\": z.string().describe(\"Timestamp when the item was created.\").nullable().optional(),\n \"updated-at\": z.string().describe(\"Timestamp when the item was last updated.\").nullable().optional(),\n \"archived-at\": z.string().describe(\"Timestamp when the item was archived, if applicable.\").nullable().optional(),\n \"match-count\": z.number().int().describe(\"Number of matches for this IP address item.\").nullable().optional(),\n \"redacted-at\": z.string().describe(\"Timestamp when the item was redacted, if applicable.\").nullable().optional(),\n}).passthrough().describe(\"Attributes of the created IP Address List Item.\");\nconst PersonaCreateAnIpAddressListItem_CreateAnIpAddressListItemResponseRelationshipsCreatorDataSchema = z.object({\n id: z.string().describe(\"ID of the creator.\").nullable().optional(),\n type: z.string().describe(\"Type of the creator resource.\").nullable().optional(),\n}).passthrough().describe(\"Creator data within relationship.\");\nconst PersonaCreateAnIpAddressListItem_CreateAnIpAddressListItemResponseRelationshipsCreatorSchema = z.object({\n data: PersonaCreateAnIpAddressListItem_CreateAnIpAddressListItemResponseRelationshipsCreatorDataSchema.nullable().optional(),\n}).passthrough().describe(\"Creator relationship data.\");\nconst PersonaCreateAnIpAddressListItem_CreateAnIpAddressListItemResponseRelationshipsSchema = z.object({\n creator: PersonaCreateAnIpAddressListItem_CreateAnIpAddressListItemResponseRelationshipsCreatorSchema.nullable().optional(),\n}).passthrough().describe(\"Relationships of the created IP Address List Item.\");\nconst PersonaCreateAnIpAddressListItem_CreateAnIpAddressListItemResponseDataSchema = z.object({\n id: z.string().describe(\"Unique identifier for this list item. Starts with 'liip_'.\").nullable(),\n type: z.string().describe(\"Type of the resource.\").nullable(),\n attributes: PersonaCreateAnIpAddressListItem_CreateAnIpAddressListItemResponseAttributesSchema.nullable(),\n relationships: PersonaCreateAnIpAddressListItem_CreateAnIpAddressListItemResponseRelationshipsSchema.nullable().optional(),\n}).passthrough().describe(\"Data of the created IP Address List Item.\");\nexport const PersonaCreateAnIpAddressListItemOutput = z.object({\n data: PersonaCreateAnIpAddressListItem_CreateAnIpAddressListItemResponseDataSchema.nullable(),\n}).passthrough().describe(\"Response model for creating an IP Address List Item.\");\n\nexport const personaCreateAnIpAddressListItem: AppAction<\n typeof PersonaCreateAnIpAddressListItemInput,\n typeof PersonaCreateAnIpAddressListItemOutput,\n typeof persona.credential\n> = action(\"PERSONA_CREATE_AN_IP_ADDRESS_LIST_ITEM\", {\n slug: \"persona-create-an-ip-address-list-item\",\n name: \"Create IP Address List Item\",\n description: \"Tool to create an IP Address List Item in Persona. Use when you need to add an IP address to a watchlist or allowlist for identity verification purposes. The list ID must be ob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