@keystrokehq/persona 0.1.2 → 0.1.3
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/actions/add-tag-to-account.cjs +6 -6
- package/dist/actions/add-tag-to-account.cjs.map +1 -1
- package/dist/actions/add-tag-to-account.d.cts +6 -6
- package/dist/actions/add-tag-to-account.d.mts +6 -6
- package/dist/actions/add-tag-to-account.mjs +6 -6
- package/dist/actions/add-tag-to-account.mjs.map +1 -1
- package/dist/actions/archive-a-browser-fingerprint-list-item.cjs +3 -3
- 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 -3
- package/dist/actions/archive-a-browser-fingerprint-list-item.d.mts +3 -3
- package/dist/actions/archive-a-browser-fingerprint-list-item.mjs +3 -3
- package/dist/actions/archive-a-browser-fingerprint-list-item.mjs.map +1 -1
- package/dist/actions/archive-a-country-list-item.cjs +5 -5
- package/dist/actions/archive-a-country-list-item.cjs.map +1 -1
- package/dist/actions/archive-a-country-list-item.d.cts +6 -6
- package/dist/actions/archive-a-country-list-item.d.mts +6 -6
- package/dist/actions/archive-a-country-list-item.mjs +5 -5
- package/dist/actions/archive-a-country-list-item.mjs.map +1 -1
- package/dist/actions/archive-a-geolocation-list-item.cjs +6 -6
- package/dist/actions/archive-a-geolocation-list-item.cjs.map +1 -1
- package/dist/actions/archive-a-geolocation-list-item.d.cts +6 -6
- package/dist/actions/archive-a-geolocation-list-item.d.mts +6 -6
- package/dist/actions/archive-a-geolocation-list-item.mjs +6 -6
- package/dist/actions/archive-a-geolocation-list-item.mjs.map +1 -1
- package/dist/actions/archive-a-government-id-number-list-item.cjs +4 -4
- 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 +4 -4
- package/dist/actions/archive-a-government-id-number-list-item.d.mts +4 -4
- package/dist/actions/archive-a-government-id-number-list-item.mjs +4 -4
- package/dist/actions/archive-a-government-id-number-list-item.mjs.map +1 -1
- package/dist/actions/archive-a-name-list-item.cjs +6 -6
- package/dist/actions/archive-a-name-list-item.cjs.map +1 -1
- package/dist/actions/archive-a-name-list-item.d.cts +6 -6
- package/dist/actions/archive-a-name-list-item.d.mts +6 -6
- package/dist/actions/archive-a-name-list-item.mjs +6 -6
- package/dist/actions/archive-a-name-list-item.mjs.map +1 -1
- package/dist/actions/archive-a-webhook.cjs +6 -6
- package/dist/actions/archive-a-webhook.cjs.map +1 -1
- package/dist/actions/archive-a-webhook.d.cts +7 -7
- package/dist/actions/archive-a-webhook.d.mts +7 -7
- package/dist/actions/archive-a-webhook.mjs +6 -6
- package/dist/actions/archive-a-webhook.mjs.map +1 -1
- package/dist/actions/archive-email-address-list-item.cjs +5 -5
- package/dist/actions/archive-email-address-list-item.cjs.map +1 -1
- package/dist/actions/archive-email-address-list-item.d.cts +5 -5
- package/dist/actions/archive-email-address-list-item.d.mts +5 -5
- package/dist/actions/archive-email-address-list-item.mjs +5 -5
- package/dist/actions/archive-email-address-list-item.mjs.map +1 -1
- package/dist/actions/archive-ip-address-list-item.cjs +4 -4
- package/dist/actions/archive-ip-address-list-item.cjs.map +1 -1
- package/dist/actions/archive-ip-address-list-item.d.cts +4 -4
- package/dist/actions/archive-ip-address-list-item.d.mts +4 -4
- package/dist/actions/archive-ip-address-list-item.mjs +4 -4
- package/dist/actions/archive-ip-address-list-item.mjs.map +1 -1
- package/dist/actions/archive-phone-number-list-item.cjs +3 -3
- package/dist/actions/archive-phone-number-list-item.cjs.map +1 -1
- package/dist/actions/archive-phone-number-list-item.d.cts +3 -3
- package/dist/actions/archive-phone-number-list-item.d.mts +3 -3
- package/dist/actions/archive-phone-number-list-item.mjs +3 -3
- package/dist/actions/archive-phone-number-list-item.mjs.map +1 -1
- package/dist/actions/archive-string-list-item.cjs +5 -5
- package/dist/actions/archive-string-list-item.cjs.map +1 -1
- package/dist/actions/archive-string-list-item.d.cts +6 -6
- package/dist/actions/archive-string-list-item.d.mts +6 -6
- package/dist/actions/archive-string-list-item.mjs +5 -5
- package/dist/actions/archive-string-list-item.mjs.map +1 -1
- package/dist/actions/clone-webhook.cjs +4 -4
- package/dist/actions/clone-webhook.cjs.map +1 -1
- package/dist/actions/clone-webhook.d.cts +4 -4
- package/dist/actions/clone-webhook.d.mts +4 -4
- package/dist/actions/clone-webhook.mjs +4 -4
- package/dist/actions/clone-webhook.mjs.map +1 -1
- package/dist/actions/consolidate-into-account.cjs +2 -2
- package/dist/actions/consolidate-into-account.cjs.map +1 -1
- package/dist/actions/consolidate-into-account.d.cts +2 -2
- package/dist/actions/consolidate-into-account.d.mts +2 -2
- package/dist/actions/consolidate-into-account.mjs +2 -2
- package/dist/actions/consolidate-into-account.mjs.map +1 -1
- package/dist/actions/create-an-account.cjs +12 -12
- package/dist/actions/create-an-account.cjs.map +1 -1
- package/dist/actions/create-an-account.d.cts +16 -16
- package/dist/actions/create-an-account.d.mts +16 -16
- package/dist/actions/create-an-account.mjs +12 -12
- package/dist/actions/create-an-account.mjs.map +1 -1
- package/dist/actions/create-an-ip-address-list-item.cjs +6 -6
- package/dist/actions/create-an-ip-address-list-item.cjs.map +1 -1
- package/dist/actions/create-an-ip-address-list-item.d.cts +6 -6
- package/dist/actions/create-an-ip-address-list-item.d.mts +6 -6
- package/dist/actions/create-an-ip-address-list-item.mjs +6 -6
- package/dist/actions/create-an-ip-address-list-item.mjs.map +1 -1
- package/dist/actions/create-country-list-item.cjs +6 -6
- package/dist/actions/create-country-list-item.cjs.map +1 -1
- package/dist/actions/create-country-list-item.d.cts +6 -6
- package/dist/actions/create-country-list-item.d.mts +6 -6
- package/dist/actions/create-country-list-item.mjs +6 -6
- package/dist/actions/create-country-list-item.mjs.map +1 -1
- package/dist/actions/create-document-generic.cjs +5 -5
- package/dist/actions/create-document-generic.cjs.map +1 -1
- package/dist/actions/create-document-generic.d.cts +5 -5
- package/dist/actions/create-document-generic.d.mts +5 -5
- package/dist/actions/create-document-generic.mjs +5 -5
- package/dist/actions/create-document-generic.mjs.map +1 -1
- package/dist/actions/create-email-address-list-item.cjs +4 -4
- package/dist/actions/create-email-address-list-item.cjs.map +1 -1
- package/dist/actions/create-email-address-list-item.d.cts +4 -4
- package/dist/actions/create-email-address-list-item.d.mts +4 -4
- package/dist/actions/create-email-address-list-item.mjs +4 -4
- package/dist/actions/create-email-address-list-item.mjs.map +1 -1
- package/dist/actions/create-government-id-number-list-item.cjs +6 -6
- package/dist/actions/create-government-id-number-list-item.cjs.map +1 -1
- package/dist/actions/create-government-id-number-list-item.d.cts +6 -6
- package/dist/actions/create-government-id-number-list-item.d.mts +6 -6
- package/dist/actions/create-government-id-number-list-item.mjs +6 -6
- package/dist/actions/create-government-id-number-list-item.mjs.map +1 -1
- package/dist/actions/create-name-list-item.cjs +5 -5
- package/dist/actions/create-name-list-item.cjs.map +1 -1
- package/dist/actions/create-name-list-item.d.cts +5 -5
- package/dist/actions/create-name-list-item.d.mts +5 -5
- package/dist/actions/create-name-list-item.mjs +5 -5
- package/dist/actions/create-name-list-item.mjs.map +1 -1
- package/dist/actions/create-phone-number-list-item.cjs +5 -5
- package/dist/actions/create-phone-number-list-item.cjs.map +1 -1
- package/dist/actions/create-phone-number-list-item.d.cts +5 -5
- package/dist/actions/create-phone-number-list-item.d.mts +5 -5
- package/dist/actions/create-phone-number-list-item.mjs +5 -5
- package/dist/actions/create-phone-number-list-item.mjs.map +1 -1
- package/dist/actions/create-string-list-item.cjs +6 -6
- package/dist/actions/create-string-list-item.cjs.map +1 -1
- package/dist/actions/create-string-list-item.d.cts +6 -6
- package/dist/actions/create-string-list-item.d.mts +6 -6
- package/dist/actions/create-string-list-item.mjs +6 -6
- package/dist/actions/create-string-list-item.mjs.map +1 -1
- package/dist/actions/create-webhook.cjs +5 -5
- package/dist/actions/create-webhook.cjs.map +1 -1
- package/dist/actions/create-webhook.d.cts +6 -6
- package/dist/actions/create-webhook.d.mts +6 -6
- package/dist/actions/create-webhook.mjs +5 -5
- package/dist/actions/create-webhook.mjs.map +1 -1
- package/dist/actions/disable-webhook.cjs +6 -6
- package/dist/actions/disable-webhook.cjs.map +1 -1
- package/dist/actions/disable-webhook.d.cts +7 -7
- package/dist/actions/disable-webhook.d.mts +7 -7
- package/dist/actions/disable-webhook.mjs +6 -6
- package/dist/actions/disable-webhook.mjs.map +1 -1
- package/dist/actions/enable-webhook.cjs +5 -5
- package/dist/actions/enable-webhook.cjs.map +1 -1
- package/dist/actions/enable-webhook.d.cts +5 -5
- package/dist/actions/enable-webhook.d.mts +5 -5
- package/dist/actions/enable-webhook.mjs +5 -5
- package/dist/actions/enable-webhook.mjs.map +1 -1
- package/dist/actions/expire-inquiry-sessions.cjs +8 -8
- package/dist/actions/expire-inquiry-sessions.cjs.map +1 -1
- package/dist/actions/expire-inquiry-sessions.d.cts +10 -10
- package/dist/actions/expire-inquiry-sessions.d.mts +10 -10
- package/dist/actions/expire-inquiry-sessions.mjs +8 -8
- package/dist/actions/expire-inquiry-sessions.mjs.map +1 -1
- package/dist/actions/import-email-address-lists.cjs +3 -3
- package/dist/actions/import-email-address-lists.cjs.map +1 -1
- package/dist/actions/import-email-address-lists.d.cts +3 -3
- package/dist/actions/import-email-address-lists.d.mts +3 -3
- package/dist/actions/import-email-address-lists.mjs +3 -3
- package/dist/actions/import-email-address-lists.mjs.map +1 -1
- package/dist/actions/import-ip-address-lists.cjs +3 -3
- package/dist/actions/import-ip-address-lists.cjs.map +1 -1
- package/dist/actions/import-ip-address-lists.d.cts +3 -3
- package/dist/actions/import-ip-address-lists.d.mts +3 -3
- package/dist/actions/import-ip-address-lists.mjs +3 -3
- package/dist/actions/import-ip-address-lists.mjs.map +1 -1
- package/dist/actions/import-name-lists.cjs +3 -3
- package/dist/actions/import-name-lists.cjs.map +1 -1
- package/dist/actions/import-name-lists.d.cts +3 -3
- package/dist/actions/import-name-lists.d.mts +3 -3
- package/dist/actions/import-name-lists.mjs +3 -3
- package/dist/actions/import-name-lists.mjs.map +1 -1
- package/dist/actions/import-phone-number-lists.cjs +3 -3
- package/dist/actions/import-phone-number-lists.cjs.map +1 -1
- package/dist/actions/import-phone-number-lists.d.cts +3 -3
- package/dist/actions/import-phone-number-lists.d.mts +3 -3
- package/dist/actions/import-phone-number-lists.mjs +3 -3
- package/dist/actions/import-phone-number-lists.mjs.map +1 -1
- package/dist/actions/list-all-accounts.cjs +8 -8
- package/dist/actions/list-all-accounts.cjs.map +1 -1
- package/dist/actions/list-all-accounts.d.cts +10 -10
- package/dist/actions/list-all-accounts.d.mts +10 -10
- package/dist/actions/list-all-accounts.mjs +8 -8
- package/dist/actions/list-all-accounts.mjs.map +1 -1
- package/dist/actions/list-all-api-logs.cjs +10 -10
- package/dist/actions/list-all-api-logs.cjs.map +1 -1
- package/dist/actions/list-all-api-logs.d.cts +11 -11
- package/dist/actions/list-all-api-logs.d.mts +11 -11
- package/dist/actions/list-all-api-logs.mjs +10 -10
- package/dist/actions/list-all-api-logs.mjs.map +1 -1
- package/dist/actions/list-all-cases.cjs +10 -10
- package/dist/actions/list-all-cases.cjs.map +1 -1
- package/dist/actions/list-all-cases.d.cts +10 -10
- package/dist/actions/list-all-cases.d.mts +10 -10
- package/dist/actions/list-all-cases.mjs +10 -10
- package/dist/actions/list-all-cases.mjs.map +1 -1
- package/dist/actions/list-all-devices.cjs +5 -5
- package/dist/actions/list-all-devices.cjs.map +1 -1
- package/dist/actions/list-all-devices.d.cts +5 -5
- package/dist/actions/list-all-devices.d.mts +5 -5
- package/dist/actions/list-all-devices.mjs +5 -5
- package/dist/actions/list-all-devices.mjs.map +1 -1
- package/dist/actions/list-all-events.cjs +4 -4
- package/dist/actions/list-all-events.cjs.map +1 -1
- package/dist/actions/list-all-events.d.cts +4 -4
- package/dist/actions/list-all-events.d.mts +4 -4
- package/dist/actions/list-all-events.mjs +4 -4
- package/dist/actions/list-all-events.mjs.map +1 -1
- package/dist/actions/list-all-importers.cjs +6 -6
- package/dist/actions/list-all-importers.cjs.map +1 -1
- package/dist/actions/list-all-importers.d.cts +7 -7
- package/dist/actions/list-all-importers.d.mts +7 -7
- package/dist/actions/list-all-importers.mjs +6 -6
- package/dist/actions/list-all-importers.mjs.map +1 -1
- package/dist/actions/list-all-inquiries.cjs +9 -9
- package/dist/actions/list-all-inquiries.cjs.map +1 -1
- package/dist/actions/list-all-inquiries.d.cts +9 -9
- package/dist/actions/list-all-inquiries.d.mts +9 -9
- package/dist/actions/list-all-inquiries.mjs +9 -9
- package/dist/actions/list-all-inquiries.mjs.map +1 -1
- package/dist/actions/list-all-inquiry-sessions.cjs +9 -9
- package/dist/actions/list-all-inquiry-sessions.cjs.map +1 -1
- package/dist/actions/list-all-inquiry-sessions.d.cts +11 -11
- package/dist/actions/list-all-inquiry-sessions.d.mts +11 -11
- package/dist/actions/list-all-inquiry-sessions.mjs +9 -9
- package/dist/actions/list-all-inquiry-sessions.mjs.map +1 -1
- package/dist/actions/list-all-lists.cjs +7 -7
- package/dist/actions/list-all-lists.cjs.map +1 -1
- package/dist/actions/list-all-lists.d.cts +9 -9
- package/dist/actions/list-all-lists.d.mts +9 -9
- package/dist/actions/list-all-lists.mjs +7 -7
- package/dist/actions/list-all-lists.mjs.map +1 -1
- package/dist/actions/list-all-rate-limits.cjs +3 -3
- package/dist/actions/list-all-rate-limits.cjs.map +1 -1
- package/dist/actions/list-all-rate-limits.d.cts +3 -3
- package/dist/actions/list-all-rate-limits.d.mts +3 -3
- package/dist/actions/list-all-rate-limits.mjs +3 -3
- package/dist/actions/list-all-rate-limits.mjs.map +1 -1
- package/dist/actions/list-all-reports.cjs +10 -10
- package/dist/actions/list-all-reports.cjs.map +1 -1
- package/dist/actions/list-all-reports.d.cts +10 -10
- package/dist/actions/list-all-reports.d.mts +10 -10
- package/dist/actions/list-all-reports.mjs +10 -10
- package/dist/actions/list-all-reports.mjs.map +1 -1
- package/dist/actions/list-all-transactions.cjs +8 -8
- package/dist/actions/list-all-transactions.cjs.map +1 -1
- package/dist/actions/list-all-transactions.d.cts +8 -8
- package/dist/actions/list-all-transactions.d.mts +8 -8
- package/dist/actions/list-all-transactions.mjs +8 -8
- package/dist/actions/list-all-transactions.mjs.map +1 -1
- package/dist/actions/list-all-webhooks.cjs +6 -6
- package/dist/actions/list-all-webhooks.cjs.map +1 -1
- package/dist/actions/list-all-webhooks.d.cts +6 -6
- package/dist/actions/list-all-webhooks.d.mts +6 -6
- package/dist/actions/list-all-webhooks.mjs +6 -6
- package/dist/actions/list-all-webhooks.mjs.map +1 -1
- package/dist/actions/list-all-workflow-runs.cjs +10 -10
- package/dist/actions/list-all-workflow-runs.cjs.map +1 -1
- package/dist/actions/list-all-workflow-runs.d.cts +10 -10
- package/dist/actions/list-all-workflow-runs.d.mts +10 -10
- package/dist/actions/list-all-workflow-runs.mjs +10 -10
- package/dist/actions/list-all-workflow-runs.mjs.map +1 -1
- package/dist/actions/redact-an-account.cjs +9 -9
- package/dist/actions/redact-an-account.cjs.map +1 -1
- package/dist/actions/redact-an-account.d.cts +11 -11
- package/dist/actions/redact-an-account.d.mts +11 -11
- package/dist/actions/redact-an-account.mjs +9 -9
- package/dist/actions/redact-an-account.mjs.map +1 -1
- package/dist/actions/remove-account-tag.cjs +5 -5
- package/dist/actions/remove-account-tag.cjs.map +1 -1
- package/dist/actions/remove-account-tag.d.cts +5 -5
- package/dist/actions/remove-account-tag.d.mts +5 -5
- package/dist/actions/remove-account-tag.mjs +5 -5
- package/dist/actions/remove-account-tag.mjs.map +1 -1
- package/dist/actions/retrieve-a-country-list-item.cjs +6 -6
- package/dist/actions/retrieve-a-country-list-item.cjs.map +1 -1
- package/dist/actions/retrieve-a-country-list-item.d.cts +8 -8
- package/dist/actions/retrieve-a-country-list-item.d.mts +8 -8
- package/dist/actions/retrieve-a-country-list-item.mjs +6 -6
- package/dist/actions/retrieve-a-country-list-item.mjs.map +1 -1
- package/dist/actions/retrieve-a-geolocation-list-item.cjs +7 -7
- package/dist/actions/retrieve-a-geolocation-list-item.cjs.map +1 -1
- package/dist/actions/retrieve-a-geolocation-list-item.d.cts +8 -8
- package/dist/actions/retrieve-a-geolocation-list-item.d.mts +8 -8
- package/dist/actions/retrieve-a-geolocation-list-item.mjs +7 -7
- package/dist/actions/retrieve-a-geolocation-list-item.mjs.map +1 -1
- package/dist/actions/retrieve-a-name-list-item.cjs +5 -5
- package/dist/actions/retrieve-a-name-list-item.cjs.map +1 -1
- package/dist/actions/retrieve-a-name-list-item.d.cts +6 -6
- package/dist/actions/retrieve-a-name-list-item.d.mts +6 -6
- package/dist/actions/retrieve-a-name-list-item.mjs +5 -5
- package/dist/actions/retrieve-a-name-list-item.mjs.map +1 -1
- package/dist/actions/retrieve-a-string-list-item.cjs +6 -6
- package/dist/actions/retrieve-a-string-list-item.cjs.map +1 -1
- package/dist/actions/retrieve-a-string-list-item.d.cts +8 -8
- package/dist/actions/retrieve-a-string-list-item.d.mts +8 -8
- package/dist/actions/retrieve-a-string-list-item.mjs +6 -6
- package/dist/actions/retrieve-a-string-list-item.mjs.map +1 -1
- package/dist/actions/retrieve-a-webhook.cjs +7 -7
- package/dist/actions/retrieve-a-webhook.cjs.map +1 -1
- package/dist/actions/retrieve-a-webhook.d.cts +8 -8
- package/dist/actions/retrieve-a-webhook.d.mts +8 -8
- package/dist/actions/retrieve-a-webhook.mjs +7 -7
- package/dist/actions/retrieve-a-webhook.mjs.map +1 -1
- package/dist/actions/retrieve-an-account.cjs +9 -9
- package/dist/actions/retrieve-an-account.cjs.map +1 -1
- package/dist/actions/retrieve-an-account.d.cts +11 -11
- package/dist/actions/retrieve-an-account.d.mts +11 -11
- package/dist/actions/retrieve-an-account.mjs +9 -9
- package/dist/actions/retrieve-an-account.mjs.map +1 -1
- package/dist/actions/retrieve-an-event.cjs +5 -5
- package/dist/actions/retrieve-an-event.cjs.map +1 -1
- package/dist/actions/retrieve-an-event.d.cts +6 -6
- package/dist/actions/retrieve-an-event.d.mts +6 -6
- package/dist/actions/retrieve-an-event.mjs +5 -5
- package/dist/actions/retrieve-an-event.mjs.map +1 -1
- package/dist/actions/retrieve-an-importer.cjs +5 -5
- package/dist/actions/retrieve-an-importer.cjs.map +1 -1
- package/dist/actions/retrieve-an-importer.d.cts +6 -6
- package/dist/actions/retrieve-an-importer.d.mts +6 -6
- package/dist/actions/retrieve-an-importer.mjs +5 -5
- package/dist/actions/retrieve-an-importer.mjs.map +1 -1
- package/dist/actions/retrieve-an-ip-address-list-item.cjs +5 -5
- package/dist/actions/retrieve-an-ip-address-list-item.cjs.map +1 -1
- package/dist/actions/retrieve-an-ip-address-list-item.d.cts +6 -6
- package/dist/actions/retrieve-an-ip-address-list-item.d.mts +6 -6
- package/dist/actions/retrieve-an-ip-address-list-item.mjs +5 -5
- package/dist/actions/retrieve-an-ip-address-list-item.mjs.map +1 -1
- package/dist/actions/retrieve-api-log.cjs +12 -12
- package/dist/actions/retrieve-api-log.cjs.map +1 -1
- package/dist/actions/retrieve-api-log.d.cts +13 -13
- package/dist/actions/retrieve-api-log.d.mts +13 -13
- package/dist/actions/retrieve-api-log.mjs +12 -12
- package/dist/actions/retrieve-api-log.mjs.map +1 -1
- package/dist/actions/retrieve-browser-fingerprint-list-item.cjs +5 -5
- package/dist/actions/retrieve-browser-fingerprint-list-item.cjs.map +1 -1
- package/dist/actions/retrieve-browser-fingerprint-list-item.d.cts +7 -7
- package/dist/actions/retrieve-browser-fingerprint-list-item.d.mts +7 -7
- package/dist/actions/retrieve-browser-fingerprint-list-item.mjs +5 -5
- package/dist/actions/retrieve-browser-fingerprint-list-item.mjs.map +1 -1
- package/dist/actions/retrieve-document-generic.cjs +18 -18
- package/dist/actions/retrieve-document-generic.cjs.map +1 -1
- package/dist/actions/retrieve-document-generic.d.cts +19 -19
- package/dist/actions/retrieve-document-generic.d.mts +19 -19
- package/dist/actions/retrieve-document-generic.mjs +18 -18
- package/dist/actions/retrieve-document-generic.mjs.map +1 -1
- package/dist/actions/retrieve-document.cjs +14 -14
- package/dist/actions/retrieve-document.cjs.map +1 -1
- package/dist/actions/retrieve-document.d.cts +25 -25
- package/dist/actions/retrieve-document.d.mts +25 -25
- package/dist/actions/retrieve-document.mjs +14 -14
- package/dist/actions/retrieve-document.mjs.map +1 -1
- package/dist/actions/retrieve-email-address-list-item.cjs +5 -5
- package/dist/actions/retrieve-email-address-list-item.cjs.map +1 -1
- package/dist/actions/retrieve-email-address-list-item.d.cts +6 -6
- package/dist/actions/retrieve-email-address-list-item.d.mts +6 -6
- package/dist/actions/retrieve-email-address-list-item.mjs +5 -5
- package/dist/actions/retrieve-email-address-list-item.mjs.map +1 -1
- package/dist/actions/retrieve-government-id-number-list-item.cjs +5 -5
- package/dist/actions/retrieve-government-id-number-list-item.cjs.map +1 -1
- package/dist/actions/retrieve-government-id-number-list-item.d.cts +6 -6
- package/dist/actions/retrieve-government-id-number-list-item.d.mts +6 -6
- package/dist/actions/retrieve-government-id-number-list-item.mjs +5 -5
- package/dist/actions/retrieve-government-id-number-list-item.mjs.map +1 -1
- package/dist/actions/retrieve-phone-number-list-item.cjs +7 -7
- package/dist/actions/retrieve-phone-number-list-item.cjs.map +1 -1
- package/dist/actions/retrieve-phone-number-list-item.d.cts +8 -8
- package/dist/actions/retrieve-phone-number-list-item.d.mts +8 -8
- package/dist/actions/retrieve-phone-number-list-item.mjs +7 -7
- package/dist/actions/retrieve-phone-number-list-item.mjs.map +1 -1
- package/dist/actions/rotate-webhook-secret.cjs +7 -7
- package/dist/actions/rotate-webhook-secret.cjs.map +1 -1
- package/dist/actions/rotate-webhook-secret.d.cts +8 -8
- package/dist/actions/rotate-webhook-secret.d.mts +8 -8
- package/dist/actions/rotate-webhook-secret.mjs +7 -7
- package/dist/actions/rotate-webhook-secret.mjs.map +1 -1
- package/dist/actions/search-accounts.cjs +8 -8
- package/dist/actions/search-accounts.cjs.map +1 -1
- package/dist/actions/search-accounts.d.cts +11 -11
- package/dist/actions/search-accounts.d.mts +11 -11
- package/dist/actions/search-accounts.mjs +8 -8
- package/dist/actions/search-accounts.mjs.map +1 -1
- package/dist/actions/search-cases.cjs +8 -8
- package/dist/actions/search-cases.cjs.map +1 -1
- package/dist/actions/search-cases.d.cts +9 -9
- package/dist/actions/search-cases.d.mts +9 -9
- package/dist/actions/search-cases.mjs +8 -8
- package/dist/actions/search-cases.mjs.map +1 -1
- package/dist/actions/set-tags.cjs +6 -6
- package/dist/actions/set-tags.cjs.map +1 -1
- package/dist/actions/set-tags.d.cts +6 -6
- package/dist/actions/set-tags.d.mts +6 -6
- package/dist/actions/set-tags.mjs +6 -6
- package/dist/actions/set-tags.mjs.map +1 -1
- package/dist/actions/update-a-webhook.cjs +8 -8
- package/dist/actions/update-a-webhook.cjs.map +1 -1
- package/dist/actions/update-a-webhook.d.cts +11 -11
- package/dist/actions/update-a-webhook.d.mts +11 -11
- package/dist/actions/update-a-webhook.mjs +8 -8
- package/dist/actions/update-a-webhook.mjs.map +1 -1
- package/dist/actions/update-an-account.cjs +10 -10
- package/dist/actions/update-an-account.cjs.map +1 -1
- package/dist/actions/update-an-account.d.cts +14 -14
- package/dist/actions/update-an-account.d.mts +14 -14
- package/dist/actions/update-an-account.mjs +10 -10
- package/dist/actions/update-an-account.mjs.map +1 -1
- package/dist/actions/update-document-generic.cjs +16 -16
- package/dist/actions/update-document-generic.cjs.map +1 -1
- package/dist/actions/update-document-generic.d.cts +27 -27
- package/dist/actions/update-document-generic.d.mts +27 -27
- package/dist/actions/update-document-generic.mjs +16 -16
- package/dist/actions/update-document-generic.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -11,8 +11,8 @@ const PersonaSearchAccountsInput = z.object({
|
|
|
11
11
|
attribute: z.string().describe("The attribute name to sort by (e.g., 'created-at', 'updated-at')."),
|
|
12
12
|
direction: z.enum(["asc", "desc"]).default("desc").describe("Sort direction: asc (ascending) or desc (descending). Defaults to desc.").optional()
|
|
13
13
|
}).describe("Sort configuration for results.").optional(),
|
|
14
|
-
query: z.
|
|
15
|
-
sparse_fields: z.
|
|
14
|
+
query: z.record(z.string(), z.unknown()).describe("Search query using boolean logic (AND/OR/NOT) and comparison operators. Supports predicates with operators: eq (equal), gt (greater than), gte (greater than or equal), lt (less than), lte (less than or equal). Example: {'and': [{'attribute': 'account-status', 'operator': 'eq', 'value': 'active'}]}").optional(),
|
|
15
|
+
sparse_fields: z.record(z.string(), z.unknown()).describe("Comma-separated list(s) of attributes to include in the response, keyed by resource type. Allows customizing which attributes will be serialized.").optional(),
|
|
16
16
|
"Key-Inflection": z.enum([
|
|
17
17
|
"camel",
|
|
18
18
|
"kebab",
|
|
@@ -32,25 +32,25 @@ const PersonaSearchAccountsInput = z.object({
|
|
|
32
32
|
}).describe("Request model for searching accounts in Persona.");
|
|
33
33
|
const PersonaSearchAccounts_AccountAttributesSchema = z.object({
|
|
34
34
|
tags: z.array(z.string()).describe("List of tags associated with the account.").nullable().optional(),
|
|
35
|
-
fields: z.
|
|
35
|
+
fields: z.record(z.string(), z.unknown()).describe("Custom fields associated with the account (not key inflected).").nullable().optional(),
|
|
36
36
|
"created-at": z.string().describe("ISO 8601 timestamp when the account was created.").nullable().optional(),
|
|
37
37
|
"updated-at": z.string().describe("ISO 8601 timestamp when the account was last updated.").nullable().optional(),
|
|
38
38
|
"redacted-at": z.string().describe("ISO 8601 timestamp when the account was redacted, or null.").nullable().optional(),
|
|
39
39
|
"reference-id": z.string().describe("External reference ID for the account, or null.").nullable().optional(),
|
|
40
40
|
"account-status": z.string().describe("Current status of the account.").nullable().optional(),
|
|
41
41
|
"account-type-name": z.string().describe("Name of the account type associated with this account.").nullable().optional()
|
|
42
|
-
}).describe("Attributes of an Account.");
|
|
43
|
-
const PersonaSearchAccounts_AccountRelationshipsSchema = z.object({ "account-type": z.
|
|
42
|
+
}).passthrough().describe("Attributes of an Account.");
|
|
43
|
+
const PersonaSearchAccounts_AccountRelationshipsSchema = z.object({ "account-type": z.record(z.string(), z.unknown()).describe("The account type relationship data.").nullable().optional() }).passthrough().describe("Relationships of an Account.");
|
|
44
44
|
const PersonaSearchAccounts_AccountDataSchema = z.object({
|
|
45
45
|
id: z.string().describe("Unique identifier for the account.").nullable().optional(),
|
|
46
46
|
type: z.string().describe("Resource type (e.g., 'account').").nullable().optional(),
|
|
47
47
|
attributes: PersonaSearchAccounts_AccountAttributesSchema.nullable().optional(),
|
|
48
48
|
relationships: PersonaSearchAccounts_AccountRelationshipsSchema.nullable().optional()
|
|
49
|
-
}).describe("Account object data.");
|
|
49
|
+
}).passthrough().describe("Account object data.");
|
|
50
50
|
const PersonaSearchAccounts_PaginationLinksSchema = z.object({
|
|
51
51
|
next: z.string().describe("URL pointing to the next page of data, or null if on the last page. Must be used with POST request and original request body.").nullable().optional(),
|
|
52
52
|
prev: z.string().describe("URL pointing to the previous page of data, or null if on the first page. Must be used with POST request and original request body.").nullable().optional()
|
|
53
|
-
}).describe("Pagination links for navigating through results.");
|
|
53
|
+
}).passthrough().describe("Pagination links for navigating through results.");
|
|
54
54
|
const personaSearchAccounts = action("PERSONA_SEARCH_ACCOUNTS", {
|
|
55
55
|
slug: "persona-search-accounts",
|
|
56
56
|
name: "Search Accounts",
|
|
@@ -59,7 +59,7 @@ const personaSearchAccounts = action("PERSONA_SEARCH_ACCOUNTS", {
|
|
|
59
59
|
output: z.object({
|
|
60
60
|
data: z.array(PersonaSearchAccounts_AccountDataSchema).describe("An array of Account objects matching the search criteria."),
|
|
61
61
|
links: PersonaSearchAccounts_PaginationLinksSchema.nullable()
|
|
62
|
-
}).describe("Response model for searching accounts.")
|
|
62
|
+
}).passthrough().describe("Response model for searching accounts.")
|
|
63
63
|
});
|
|
64
64
|
//#endregion
|
|
65
65
|
export { personaSearchAccounts };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-accounts.mjs","names":[],"sources":["../../src/actions/search-accounts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaSearchAccountsInput = z.object({\n page: z.object({\n size: z.number().int().describe(\"Number of results to return per page. Default is 10.\").optional(),\n after: z.string().describe(\"Cursor for forward pagination. Use to fetch results after this cursor.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination. Use to fetch results before this cursor.\").optional(),\n}).describe(\"Pagination configuration.\").optional(),\n sort: z.object({\n attribute: z.string().describe(\"The attribute name to sort by (e.g., 'created-at', 'updated-at').\"),\n direction: z.enum([\"asc\", \"desc\"]).default(\"desc\").describe(\"Sort direction: asc (ascending) or desc (descending). Defaults to desc.\").optional(),\n}).describe(\"Sort configuration for results.\").optional(),\n query: z.
|
|
1
|
+
{"version":3,"file":"search-accounts.mjs","names":[],"sources":["../../src/actions/search-accounts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaSearchAccountsInput = z.object({\n page: z.object({\n size: z.number().int().describe(\"Number of results to return per page. Default is 10.\").optional(),\n after: z.string().describe(\"Cursor for forward pagination. Use to fetch results after this cursor.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination. Use to fetch results before this cursor.\").optional(),\n}).describe(\"Pagination configuration.\").optional(),\n sort: z.object({\n attribute: z.string().describe(\"The attribute name to sort by (e.g., 'created-at', 'updated-at').\"),\n direction: z.enum([\"asc\", \"desc\"]).default(\"desc\").describe(\"Sort direction: asc (ascending) or desc (descending). Defaults to desc.\").optional(),\n}).describe(\"Sort configuration for results.\").optional(),\n query: z.record(z.string(), z.unknown()).describe(\"Search query using boolean logic (AND/OR/NOT) and comparison operators. Supports predicates with operators: eq (equal), gt (greater than), gte (greater than or equal), lt (less than), lte (less than or equal). Example: {'and': [{'attribute': 'account-status', 'operator': 'eq', 'value': 'active'}]}\").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. Allows customizing which attributes will be serialized.\").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 searching accounts in Persona.\");\nconst PersonaSearchAccounts_AccountAttributesSchema = z.object({\n tags: z.array(z.string()).describe(\"List of tags associated with the account.\").nullable().optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"Custom fields associated with the account (not key inflected).\").nullable().optional(),\n \"created-at\": z.string().describe(\"ISO 8601 timestamp when the account was created.\").nullable().optional(),\n \"updated-at\": z.string().describe(\"ISO 8601 timestamp when the account was last updated.\").nullable().optional(),\n \"redacted-at\": z.string().describe(\"ISO 8601 timestamp when the account was redacted, or null.\").nullable().optional(),\n \"reference-id\": z.string().describe(\"External reference ID for the account, or null.\").nullable().optional(),\n \"account-status\": z.string().describe(\"Current status of the account.\").nullable().optional(),\n \"account-type-name\": z.string().describe(\"Name of the account type associated with this account.\").nullable().optional(),\n}).passthrough().describe(\"Attributes of an Account.\");\nconst PersonaSearchAccounts_AccountRelationshipsSchema = z.object({\n \"account-type\": z.record(z.string(), z.unknown()).describe(\"The account type relationship data.\").nullable().optional(),\n}).passthrough().describe(\"Relationships of an Account.\");\nconst PersonaSearchAccounts_AccountDataSchema = z.object({\n id: z.string().describe(\"Unique identifier for the account.\").nullable().optional(),\n type: z.string().describe(\"Resource type (e.g., 'account').\").nullable().optional(),\n attributes: PersonaSearchAccounts_AccountAttributesSchema.nullable().optional(),\n relationships: PersonaSearchAccounts_AccountRelationshipsSchema.nullable().optional(),\n}).passthrough().describe(\"Account object data.\");\nconst PersonaSearchAccounts_PaginationLinksSchema = z.object({\n next: z.string().describe(\"URL pointing to the next page of data, or null if on the last page. Must be used with POST request and original request body.\").nullable().optional(),\n prev: z.string().describe(\"URL pointing to the previous page of data, or null if on the first page. Must be used with POST request and original request body.\").nullable().optional(),\n}).passthrough().describe(\"Pagination links for navigating through results.\");\nexport const PersonaSearchAccountsOutput = z.object({\n data: z.array(PersonaSearchAccounts_AccountDataSchema).describe(\"An array of Account objects matching the search criteria.\"),\n links: PersonaSearchAccounts_PaginationLinksSchema.nullable(),\n}).passthrough().describe(\"Response model for searching accounts.\");\n\nexport const personaSearchAccounts = action(\"PERSONA_SEARCH_ACCOUNTS\", {\n slug: \"persona-search-accounts\",\n name: \"Search Accounts\",\n description: \"Tool to search accounts in Persona using flexible query criteria. Use when you need to find accounts based on specific attributes, tags, or status. Supports boolean logic (AND/OR/NOT) and comparison operators.\",\n input: PersonaSearchAccountsInput,\n output: PersonaSearchAccountsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO;EACf,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EACjG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EAC9G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACnH,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChD,MAAM,EAAE,OAAO;EACf,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;EAClG,WAAW,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAClJ,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACtD,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4SAA4S,CAAC,CAAC,SAAS;CACzW,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;CACxN,kBAAkB,EAAE,KAAK;EAAC;EAAS;EAAS;CAAO,CAAC,CAAC,C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,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,YAAY,8CAA8C,SAAS,CAAC,CAAC,SAAS;CAC9E,eAAe,iDAAiD,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sBAAsB;AAChD,MAAM,8CAA8C,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/K,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAM5E,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVyC,EAAE,OAAO;EAClD,MAAM,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,2DAA2D;EAC3H,OAAO,4CAA4C,SAAS;CAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAOhB;AACV,CAAC"}
|
|
@@ -11,7 +11,7 @@ const PersonaSearchCasesInput = zod.z.object({
|
|
|
11
11
|
attribute: zod.z.string().describe("The attribute name to sort by (e.g., 'created-at', 'updated-at', 'status')."),
|
|
12
12
|
direction: zod.z.enum(["asc", "desc"]).default("desc").describe("Sort direction: asc (ascending) or desc (descending).").optional()
|
|
13
13
|
}).describe("Sort configuration for search results.").optional(),
|
|
14
|
-
query: zod.z.
|
|
14
|
+
query: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Search query using boolean logic (AND/OR/NOT) and comparison operators. Supports predicates with operators: eq (equal), gt (greater than), gte (greater than or equal), lt (less than), lte (less than or equal). Example: {'and': [{'attribute': 'status', 'operator': 'eq', 'value': 'open'}, {'attribute': 'created-at', 'operator': 'gte', 'value': '2023-01-01T00:00:00Z'}]} or {'or': [{'attribute': 'status', 'operator': 'eq', 'value': 'open'}, {'attribute': 'status', 'operator': 'eq', 'value': 'pending'}]} or {'not': {'attribute': 'status', 'operator': 'eq', 'value': 'closed'}} or simple predicate: {'attribute': 'status', 'operator': 'eq', 'value': 'open'}").optional(),
|
|
15
15
|
"Key-Inflection": zod.z.enum([
|
|
16
16
|
"camel",
|
|
17
17
|
"kebab",
|
|
@@ -37,25 +37,25 @@ const PersonaSearchCases_CaseAttributesSchema = zod.z.object({
|
|
|
37
37
|
resolution: zod.z.string().describe("Resolution status of the case.").nullable().optional(),
|
|
38
38
|
"updated-at": zod.z.string().describe("ISO 8601 timestamp when the case was last updated.").nullable().optional(),
|
|
39
39
|
"assignee-id": zod.z.string().describe("ID of the user assigned to the case.").nullable().optional()
|
|
40
|
-
}).describe("Attributes of a case object.");
|
|
40
|
+
}).passthrough().describe("Attributes of a case object.");
|
|
41
41
|
const PersonaSearchCases_CaseRelationshipsSchema = zod.z.object({
|
|
42
|
-
account: zod.z.
|
|
43
|
-
inquiry: zod.z.
|
|
44
|
-
}).describe("Relationships of a case object.");
|
|
42
|
+
account: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Relationship to the associated account.").nullable().optional(),
|
|
43
|
+
inquiry: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Relationship to the associated inquiry.").nullable().optional()
|
|
44
|
+
}).passthrough().describe("Relationships of a case object.");
|
|
45
45
|
const PersonaSearchCases_CaseDataSchema = zod.z.object({
|
|
46
46
|
id: zod.z.string().describe("Unique identifier for the case.").nullable(),
|
|
47
47
|
type: zod.z.string().describe("Resource type, typically 'case'.").nullable(),
|
|
48
48
|
attributes: PersonaSearchCases_CaseAttributesSchema.nullable().optional(),
|
|
49
49
|
relationships: PersonaSearchCases_CaseRelationshipsSchema.nullable().optional()
|
|
50
|
-
}).describe("Case data object returned by Persona API.");
|
|
50
|
+
}).passthrough().describe("Case data object returned by Persona API.");
|
|
51
51
|
const PersonaSearchCases_PaginationLinksSchema = zod.z.object({
|
|
52
52
|
next: zod.z.string().describe("URL pointing to the next page of data, or null if on the last page. Must be used with POST request and original request body.").nullable().optional(),
|
|
53
53
|
prev: zod.z.string().describe("URL pointing to the previous page of data, or null if on the first page. Must be used with POST request and original request body.").nullable().optional()
|
|
54
|
-
}).describe("Pagination links for navigating the result set.");
|
|
54
|
+
}).passthrough().describe("Pagination links for navigating the result set.");
|
|
55
55
|
const PersonaSearchCasesOutput = zod.z.object({
|
|
56
56
|
data: zod.z.array(PersonaSearchCases_CaseDataSchema).describe("An array of case objects matching the search criteria."),
|
|
57
57
|
links: PersonaSearchCases_PaginationLinksSchema.nullable()
|
|
58
|
-
}).describe("Response model for searching cases in Persona.");
|
|
58
|
+
}).passthrough().describe("Response model for searching cases in Persona.");
|
|
59
59
|
const personaSearchCases = require_action.action("PERSONA_SEARCH_CASES", {
|
|
60
60
|
slug: "persona-search-cases",
|
|
61
61
|
name: "Search Cases",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-cases.cjs","names":["z","action"],"sources":["../../src/actions/search-cases.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaSearchCasesInput = z.object({\n page: z.object({\n size: z.number().int().describe(\"Number of results to return per page.\").optional(),\n after: z.string().describe(\"Cursor for forward pagination. Fetch records after this cursor.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination. Fetch records before this cursor.\").optional(),\n}).describe(\"Pagination parameters for search results.\").optional(),\n sort: z.object({\n attribute: z.string().describe(\"The attribute name to sort by (e.g., 'created-at', 'updated-at', 'status').\"),\n direction: z.enum([\"asc\", \"desc\"]).default(\"desc\").describe(\"Sort direction: asc (ascending) or desc (descending).\").optional(),\n}).describe(\"Sort configuration for search results.\").optional(),\n query: z.
|
|
1
|
+
{"version":3,"file":"search-cases.cjs","names":["z","action"],"sources":["../../src/actions/search-cases.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaSearchCasesInput = z.object({\n page: z.object({\n size: z.number().int().describe(\"Number of results to return per page.\").optional(),\n after: z.string().describe(\"Cursor for forward pagination. Fetch records after this cursor.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination. Fetch records before this cursor.\").optional(),\n}).describe(\"Pagination parameters for search results.\").optional(),\n sort: z.object({\n attribute: z.string().describe(\"The attribute name to sort by (e.g., 'created-at', 'updated-at', 'status').\"),\n direction: z.enum([\"asc\", \"desc\"]).default(\"desc\").describe(\"Sort direction: asc (ascending) or desc (descending).\").optional(),\n}).describe(\"Sort configuration for search results.\").optional(),\n query: z.record(z.string(), z.unknown()).describe(\"Search query using boolean logic (AND/OR/NOT) and comparison operators. Supports predicates with operators: eq (equal), gt (greater than), gte (greater than or equal), lt (less than), lte (less than or equal). Example: {'and': [{'attribute': 'status', 'operator': 'eq', 'value': 'open'}, {'attribute': 'created-at', 'operator': 'gte', 'value': '2023-01-01T00:00:00Z'}]} or {'or': [{'attribute': 'status', 'operator': 'eq', 'value': 'open'}, {'attribute': 'status', 'operator': 'eq', 'value': 'pending'}]} or {'not': {'attribute': 'status', 'operator': 'eq', 'value': 'closed'}} or simple predicate: {'attribute': 'status', 'operator': 'eq', 'value': 'open'}\").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 searching cases in Persona.\");\nconst PersonaSearchCases_CaseAttributesSchema = z.object({\n name: z.string().describe(\"Name or title of the case.\").nullable().optional(),\n tags: z.array(z.string()).describe(\"Tags associated with the case.\").nullable().optional(),\n status: z.string().describe(\"Current status of the case.\").nullable().optional(),\n \"created-at\": z.string().describe(\"ISO 8601 timestamp when the case was created.\").nullable().optional(),\n resolution: z.string().describe(\"Resolution status of the case.\").nullable().optional(),\n \"updated-at\": z.string().describe(\"ISO 8601 timestamp when the case was last updated.\").nullable().optional(),\n \"assignee-id\": z.string().describe(\"ID of the user assigned to the case.\").nullable().optional(),\n}).passthrough().describe(\"Attributes of a case object.\");\nconst PersonaSearchCases_CaseRelationshipsSchema = z.object({\n account: z.record(z.string(), z.unknown()).describe(\"Relationship to the associated account.\").nullable().optional(),\n inquiry: z.record(z.string(), z.unknown()).describe(\"Relationship to the associated inquiry.\").nullable().optional(),\n}).passthrough().describe(\"Relationships of a case object.\");\nconst PersonaSearchCases_CaseDataSchema = z.object({\n id: z.string().describe(\"Unique identifier for the case.\").nullable(),\n type: z.string().describe(\"Resource type, typically 'case'.\").nullable(),\n attributes: PersonaSearchCases_CaseAttributesSchema.nullable().optional(),\n relationships: PersonaSearchCases_CaseRelationshipsSchema.nullable().optional(),\n}).passthrough().describe(\"Case data object returned by Persona API.\");\nconst PersonaSearchCases_PaginationLinksSchema = z.object({\n next: z.string().describe(\"URL pointing to the next page of data, or null if on the last page. Must be used with POST request and original request body.\").nullable().optional(),\n prev: z.string().describe(\"URL pointing to the previous page of data, or null if on the first page. Must be used with POST request and original request body.\").nullable().optional(),\n}).passthrough().describe(\"Pagination links for navigating the result set.\");\nexport const PersonaSearchCasesOutput = z.object({\n data: z.array(PersonaSearchCases_CaseDataSchema).describe(\"An array of case objects matching the search criteria.\"),\n links: PersonaSearchCases_PaginationLinksSchema.nullable(),\n}).passthrough().describe(\"Response model for searching cases in Persona.\");\n\nexport const personaSearchCases = action(\"PERSONA_SEARCH_CASES\", {\n slug: \"persona-search-cases\",\n name: \"Search Cases\",\n description: \"Tool to search cases in Persona using advanced query filters with boolean logic. Use when you need to find cases matching specific criteria using operators like eq, gt, gte, lt, lte combined with AND/OR/NOT logic.\",\n input: PersonaSearchCasesInput,\n output: PersonaSearchCasesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAClF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EACvG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC5G,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,OAAO;EACf,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;EAC5G,WAAWA,IAAAA,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAChI,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7D,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mpBAAmpB,CAAC,CAAC,SAAS;CAChtB,kBAAkBA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAS;CAAO,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACnH,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS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|
|
17
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
18
18
|
"Key-Inflection": z.ZodOptional<z.ZodEnum<{
|
|
19
19
|
camel: "camel";
|
|
20
20
|
kebab: "kebab";
|
|
@@ -44,17 +44,17 @@ declare const PersonaSearchCasesOutput: z.ZodObject<{
|
|
|
44
44
|
resolution: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
45
|
"updated-at": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
46
|
"assignee-id": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
-
}, z.core.$
|
|
47
|
+
}, z.core.$loose>>>;
|
|
48
48
|
relationships: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
49
|
-
account: z.ZodOptional<z.ZodNullable<z.
|
|
50
|
-
inquiry: z.ZodOptional<z.ZodNullable<z.
|
|
51
|
-
}, z.core.$
|
|
52
|
-
}, z.core.$
|
|
49
|
+
account: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
50
|
+
inquiry: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
51
|
+
}, z.core.$loose>>>;
|
|
52
|
+
}, z.core.$loose>>;
|
|
53
53
|
links: z.ZodNullable<z.ZodObject<{
|
|
54
54
|
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
55
|
prev: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
-
}, z.core.$
|
|
57
|
-
}, z.core.$
|
|
56
|
+
}, z.core.$loose>>;
|
|
57
|
+
}, z.core.$loose>;
|
|
58
58
|
declare const personaSearchCases: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
59
59
|
page?: {
|
|
60
60
|
size?: number | undefined;
|
|
@@ -65,7 +65,7 @@ declare const personaSearchCases: import("@keystrokehq/action").WorkflowActionDe
|
|
|
65
65
|
attribute: string;
|
|
66
66
|
direction?: "asc" | "desc" | undefined;
|
|
67
67
|
} | undefined;
|
|
68
|
-
query?: Record<string,
|
|
68
|
+
query?: Record<string, unknown> | undefined;
|
|
69
69
|
"Key-Inflection"?: "camel" | "kebab" | "snake" | undefined;
|
|
70
70
|
"Idempotency-Key"?: string | undefined;
|
|
71
71
|
"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;
|
|
@@ -14,7 +14,7 @@ declare const PersonaSearchCasesInput: z.ZodObject<{
|
|
|
14
14
|
desc: "desc";
|
|
15
15
|
}>>>;
|
|
16
16
|
}, z.core.$strip>>;
|
|
17
|
-
query: z.ZodOptional<z.
|
|
17
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
18
18
|
"Key-Inflection": z.ZodOptional<z.ZodEnum<{
|
|
19
19
|
camel: "camel";
|
|
20
20
|
kebab: "kebab";
|
|
@@ -44,17 +44,17 @@ declare const PersonaSearchCasesOutput: z.ZodObject<{
|
|
|
44
44
|
resolution: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
45
|
"updated-at": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
46
|
"assignee-id": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
-
}, z.core.$
|
|
47
|
+
}, z.core.$loose>>>;
|
|
48
48
|
relationships: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
49
|
-
account: z.ZodOptional<z.ZodNullable<z.
|
|
50
|
-
inquiry: z.ZodOptional<z.ZodNullable<z.
|
|
51
|
-
}, z.core.$
|
|
52
|
-
}, z.core.$
|
|
49
|
+
account: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
50
|
+
inquiry: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
51
|
+
}, z.core.$loose>>>;
|
|
52
|
+
}, z.core.$loose>>;
|
|
53
53
|
links: z.ZodNullable<z.ZodObject<{
|
|
54
54
|
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
55
|
prev: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
-
}, z.core.$
|
|
57
|
-
}, z.core.$
|
|
56
|
+
}, z.core.$loose>>;
|
|
57
|
+
}, z.core.$loose>;
|
|
58
58
|
declare const personaSearchCases: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
59
59
|
page?: {
|
|
60
60
|
size?: number | undefined;
|
|
@@ -65,7 +65,7 @@ declare const personaSearchCases: import("@keystrokehq/action").WorkflowActionDe
|
|
|
65
65
|
attribute: string;
|
|
66
66
|
direction?: "asc" | "desc" | undefined;
|
|
67
67
|
} | undefined;
|
|
68
|
-
query?: Record<string,
|
|
68
|
+
query?: Record<string, unknown> | undefined;
|
|
69
69
|
"Key-Inflection"?: "camel" | "kebab" | "snake" | undefined;
|
|
70
70
|
"Idempotency-Key"?: string | undefined;
|
|
71
71
|
"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;
|
|
@@ -11,7 +11,7 @@ const PersonaSearchCasesInput = z.object({
|
|
|
11
11
|
attribute: z.string().describe("The attribute name to sort by (e.g., 'created-at', 'updated-at', 'status')."),
|
|
12
12
|
direction: z.enum(["asc", "desc"]).default("desc").describe("Sort direction: asc (ascending) or desc (descending).").optional()
|
|
13
13
|
}).describe("Sort configuration for search results.").optional(),
|
|
14
|
-
query: z.
|
|
14
|
+
query: z.record(z.string(), z.unknown()).describe("Search query using boolean logic (AND/OR/NOT) and comparison operators. Supports predicates with operators: eq (equal), gt (greater than), gte (greater than or equal), lt (less than), lte (less than or equal). Example: {'and': [{'attribute': 'status', 'operator': 'eq', 'value': 'open'}, {'attribute': 'created-at', 'operator': 'gte', 'value': '2023-01-01T00:00:00Z'}]} or {'or': [{'attribute': 'status', 'operator': 'eq', 'value': 'open'}, {'attribute': 'status', 'operator': 'eq', 'value': 'pending'}]} or {'not': {'attribute': 'status', 'operator': 'eq', 'value': 'closed'}} or simple predicate: {'attribute': 'status', 'operator': 'eq', 'value': 'open'}").optional(),
|
|
15
15
|
"Key-Inflection": z.enum([
|
|
16
16
|
"camel",
|
|
17
17
|
"kebab",
|
|
@@ -37,21 +37,21 @@ const PersonaSearchCases_CaseAttributesSchema = z.object({
|
|
|
37
37
|
resolution: z.string().describe("Resolution status of the case.").nullable().optional(),
|
|
38
38
|
"updated-at": z.string().describe("ISO 8601 timestamp when the case was last updated.").nullable().optional(),
|
|
39
39
|
"assignee-id": z.string().describe("ID of the user assigned to the case.").nullable().optional()
|
|
40
|
-
}).describe("Attributes of a case object.");
|
|
40
|
+
}).passthrough().describe("Attributes of a case object.");
|
|
41
41
|
const PersonaSearchCases_CaseRelationshipsSchema = z.object({
|
|
42
|
-
account: z.
|
|
43
|
-
inquiry: z.
|
|
44
|
-
}).describe("Relationships of a case object.");
|
|
42
|
+
account: z.record(z.string(), z.unknown()).describe("Relationship to the associated account.").nullable().optional(),
|
|
43
|
+
inquiry: z.record(z.string(), z.unknown()).describe("Relationship to the associated inquiry.").nullable().optional()
|
|
44
|
+
}).passthrough().describe("Relationships of a case object.");
|
|
45
45
|
const PersonaSearchCases_CaseDataSchema = z.object({
|
|
46
46
|
id: z.string().describe("Unique identifier for the case.").nullable(),
|
|
47
47
|
type: z.string().describe("Resource type, typically 'case'.").nullable(),
|
|
48
48
|
attributes: PersonaSearchCases_CaseAttributesSchema.nullable().optional(),
|
|
49
49
|
relationships: PersonaSearchCases_CaseRelationshipsSchema.nullable().optional()
|
|
50
|
-
}).describe("Case data object returned by Persona API.");
|
|
50
|
+
}).passthrough().describe("Case data object returned by Persona API.");
|
|
51
51
|
const PersonaSearchCases_PaginationLinksSchema = z.object({
|
|
52
52
|
next: z.string().describe("URL pointing to the next page of data, or null if on the last page. Must be used with POST request and original request body.").nullable().optional(),
|
|
53
53
|
prev: z.string().describe("URL pointing to the previous page of data, or null if on the first page. Must be used with POST request and original request body.").nullable().optional()
|
|
54
|
-
}).describe("Pagination links for navigating the result set.");
|
|
54
|
+
}).passthrough().describe("Pagination links for navigating the result set.");
|
|
55
55
|
const personaSearchCases = action("PERSONA_SEARCH_CASES", {
|
|
56
56
|
slug: "persona-search-cases",
|
|
57
57
|
name: "Search Cases",
|
|
@@ -60,7 +60,7 @@ const personaSearchCases = action("PERSONA_SEARCH_CASES", {
|
|
|
60
60
|
output: z.object({
|
|
61
61
|
data: z.array(PersonaSearchCases_CaseDataSchema).describe("An array of case objects matching the search criteria."),
|
|
62
62
|
links: PersonaSearchCases_PaginationLinksSchema.nullable()
|
|
63
|
-
}).describe("Response model for searching cases in Persona.")
|
|
63
|
+
}).passthrough().describe("Response model for searching cases in Persona.")
|
|
64
64
|
});
|
|
65
65
|
//#endregion
|
|
66
66
|
export { personaSearchCases };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-cases.mjs","names":[],"sources":["../../src/actions/search-cases.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaSearchCasesInput = z.object({\n page: z.object({\n size: z.number().int().describe(\"Number of results to return per page.\").optional(),\n after: z.string().describe(\"Cursor for forward pagination. Fetch records after this cursor.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination. Fetch records before this cursor.\").optional(),\n}).describe(\"Pagination parameters for search results.\").optional(),\n sort: z.object({\n attribute: z.string().describe(\"The attribute name to sort by (e.g., 'created-at', 'updated-at', 'status').\"),\n direction: z.enum([\"asc\", \"desc\"]).default(\"desc\").describe(\"Sort direction: asc (ascending) or desc (descending).\").optional(),\n}).describe(\"Sort configuration for search results.\").optional(),\n query: z.
|
|
1
|
+
{"version":3,"file":"search-cases.mjs","names":[],"sources":["../../src/actions/search-cases.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaSearchCasesInput = z.object({\n page: z.object({\n size: z.number().int().describe(\"Number of results to return per page.\").optional(),\n after: z.string().describe(\"Cursor for forward pagination. Fetch records after this cursor.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination. Fetch records before this cursor.\").optional(),\n}).describe(\"Pagination parameters for search results.\").optional(),\n sort: z.object({\n attribute: z.string().describe(\"The attribute name to sort by (e.g., 'created-at', 'updated-at', 'status').\"),\n direction: z.enum([\"asc\", \"desc\"]).default(\"desc\").describe(\"Sort direction: asc (ascending) or desc (descending).\").optional(),\n}).describe(\"Sort configuration for search results.\").optional(),\n query: z.record(z.string(), z.unknown()).describe(\"Search query using boolean logic (AND/OR/NOT) and comparison operators. Supports predicates with operators: eq (equal), gt (greater than), gte (greater than or equal), lt (less than), lte (less than or equal). Example: {'and': [{'attribute': 'status', 'operator': 'eq', 'value': 'open'}, {'attribute': 'created-at', 'operator': 'gte', 'value': '2023-01-01T00:00:00Z'}]} or {'or': [{'attribute': 'status', 'operator': 'eq', 'value': 'open'}, {'attribute': 'status', 'operator': 'eq', 'value': 'pending'}]} or {'not': {'attribute': 'status', 'operator': 'eq', 'value': 'closed'}} or simple predicate: {'attribute': 'status', 'operator': 'eq', 'value': 'open'}\").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 searching cases in Persona.\");\nconst PersonaSearchCases_CaseAttributesSchema = z.object({\n name: z.string().describe(\"Name or title of the case.\").nullable().optional(),\n tags: z.array(z.string()).describe(\"Tags associated with the case.\").nullable().optional(),\n status: z.string().describe(\"Current status of the case.\").nullable().optional(),\n \"created-at\": z.string().describe(\"ISO 8601 timestamp when the case was created.\").nullable().optional(),\n resolution: z.string().describe(\"Resolution status of the case.\").nullable().optional(),\n \"updated-at\": z.string().describe(\"ISO 8601 timestamp when the case was last updated.\").nullable().optional(),\n \"assignee-id\": z.string().describe(\"ID of the user assigned to the case.\").nullable().optional(),\n}).passthrough().describe(\"Attributes of a case object.\");\nconst PersonaSearchCases_CaseRelationshipsSchema = z.object({\n account: z.record(z.string(), z.unknown()).describe(\"Relationship to the associated account.\").nullable().optional(),\n inquiry: z.record(z.string(), z.unknown()).describe(\"Relationship to the associated inquiry.\").nullable().optional(),\n}).passthrough().describe(\"Relationships of a case object.\");\nconst PersonaSearchCases_CaseDataSchema = z.object({\n id: z.string().describe(\"Unique identifier for the case.\").nullable(),\n type: z.string().describe(\"Resource type, typically 'case'.\").nullable(),\n attributes: PersonaSearchCases_CaseAttributesSchema.nullable().optional(),\n relationships: PersonaSearchCases_CaseRelationshipsSchema.nullable().optional(),\n}).passthrough().describe(\"Case data object returned by Persona API.\");\nconst PersonaSearchCases_PaginationLinksSchema = z.object({\n next: z.string().describe(\"URL pointing to the next page of data, or null if on the last page. Must be used with POST request and original request body.\").nullable().optional(),\n prev: z.string().describe(\"URL pointing to the previous page of data, or null if on the first page. Must be used with POST request and original request body.\").nullable().optional(),\n}).passthrough().describe(\"Pagination links for navigating the result set.\");\nexport const PersonaSearchCasesOutput = z.object({\n data: z.array(PersonaSearchCases_CaseDataSchema).describe(\"An array of case objects matching the search criteria.\"),\n links: PersonaSearchCases_PaginationLinksSchema.nullable(),\n}).passthrough().describe(\"Response model for searching cases in Persona.\");\n\nexport const personaSearchCases = action(\"PERSONA_SEARCH_CASES\", {\n slug: \"persona-search-cases\",\n name: \"Search Cases\",\n description: \"Tool to search cases in Persona using advanced query filters with boolean logic. Use when you need to find cases matching specific criteria using operators like eq, gt, gte, lt, lte combined with AND/OR/NOT logic.\",\n input: PersonaSearchCasesInput,\n output: PersonaSearchCasesOutput,\n});\n"],"mappings":";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AE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/K,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAM3E,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVsC,EAAE,OAAO;EAC/C,MAAM,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,wDAAwD;EAClH,OAAO,yCAAyC,SAAS;CAC3D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
|
|
@@ -25,24 +25,24 @@ const PersonaSetTags_AccountAttributesSchema = zod.z.object({
|
|
|
25
25
|
"reference-id": zod.z.string().describe("External reference ID for the account.").nullable().optional(),
|
|
26
26
|
"account-status": zod.z.string().describe("Status of the account.").nullable().optional(),
|
|
27
27
|
"account-type-name": zod.z.string().describe("Name of the account type.").nullable().optional()
|
|
28
|
-
}).describe("Attributes of a Persona account.");
|
|
29
|
-
const PersonaSetTags_AccountRelationshipDataSchema = zod.z.object({ data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Related resource data.").nullable().optional() }).describe("Relationship data object.");
|
|
30
|
-
const PersonaSetTags_AccountRelationshipsSchema = zod.z.object({ "account-type": PersonaSetTags_AccountRelationshipDataSchema.nullable().optional() }).describe("Relationships of a Persona account.");
|
|
28
|
+
}).passthrough().describe("Attributes of a Persona account.");
|
|
29
|
+
const PersonaSetTags_AccountRelationshipDataSchema = zod.z.object({ data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Related resource data.").nullable().optional() }).passthrough().describe("Relationship data object.");
|
|
30
|
+
const PersonaSetTags_AccountRelationshipsSchema = zod.z.object({ "account-type": PersonaSetTags_AccountRelationshipDataSchema.nullable().optional() }).passthrough().describe("Relationships of a Persona account.");
|
|
31
31
|
const PersonaSetTags_AccountDataSchema = zod.z.object({
|
|
32
32
|
id: zod.z.string().describe("The unique identifier for the account.").nullable(),
|
|
33
33
|
type: zod.z.string().describe("The resource type (account).").nullable(),
|
|
34
34
|
attributes: PersonaSetTags_AccountAttributesSchema.nullable().optional(),
|
|
35
35
|
relationships: PersonaSetTags_AccountRelationshipsSchema.nullable().optional()
|
|
36
|
-
}).describe("Account data object.");
|
|
36
|
+
}).passthrough().describe("Account data object.");
|
|
37
37
|
const PersonaSetTags_IncludedResourceSchema = zod.z.object({
|
|
38
38
|
id: zod.z.string().describe("The unique identifier for the included resource.").nullable(),
|
|
39
39
|
type: zod.z.string().describe("The type of the included resource.").nullable(),
|
|
40
40
|
attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Attributes of the included resource.").nullable().optional()
|
|
41
|
-
}).describe("Included related resource.");
|
|
41
|
+
}).passthrough().describe("Included related resource.");
|
|
42
42
|
const PersonaSetTagsOutput = zod.z.object({
|
|
43
43
|
data: PersonaSetTags_AccountDataSchema.nullable(),
|
|
44
44
|
included: zod.z.array(PersonaSetTags_IncludedResourceSchema).describe("Related resources that were included in the response based on the 'include' parameter.").nullable().optional()
|
|
45
|
-
}).describe("Response from setting tags on a Persona account.");
|
|
45
|
+
}).passthrough().describe("Response from setting tags on a Persona account.");
|
|
46
46
|
const personaSetTags = require_action.action("PERSONA_SET_TAGS", {
|
|
47
47
|
slug: "persona-set-tags",
|
|
48
48
|
name: "Set Tags on Account",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-tags.cjs","names":["z","action"],"sources":["../../src/actions/set-tags.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaSetTagsInput = z.object({\n meta: z.object({\n \"tag-id\": z.array(z.string()).describe(\"ID of the tags to set on the Account. Either tag_id or tag_name must be provided.\").optional(),\n \"tag-name\": z.array(z.string()).describe(\"Name of the tags to set on the Account. Either tag_id or tag_name must be provided.\").optional(),\n}).describe(\"Meta object containing tag information (tag_id or tag_name arrays).\"),\n fields: z.record(z.string(), z.unknown()).describe(\"Comma-separated list(s) of attributes to include in the response. This can be used to customize which attributes will be serialized in the response.\").optional(),\n include: z.string().describe(\"A comma-separated list of relationship paths to include in the response. This can be used to customize which related resources will be fully serialized in the 'included' key.\").optional(),\n \"account-id\": z.string().describe(\"The ID of the account to set tags on.\"),\n \"Key-Inflection\": z.enum([\"camel\", \"kebab\", \"snake\"]).describe(\"Key inflection options for API response casing.\").optional(),\n \"Idempotency-Key\": z.string().describe(\"Ensures the request is idempotent. Provide a unique key to prevent duplicate operations.\").optional(),\n}).describe(\"Request parameters for setting tags on a Persona account.\");\nconst PersonaSetTags_AccountAttributesSchema = z.object({\n tags: z.array(z.string()).describe(\"List of tags associated with the account.\").nullable().optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"Custom fields associated with the account. Note that fields is not key inflected.\").nullable().optional(),\n \"created-at\": z.string().describe(\"ISO 8601 timestamp when the account was created.\").nullable().optional(),\n \"updated-at\": z.string().describe(\"ISO 8601 timestamp when the account was last updated.\").nullable().optional(),\n \"redacted-at\": z.string().describe(\"ISO 8601 timestamp when the account was redacted, if applicable.\").nullable().optional(),\n \"reference-id\": z.string().describe(\"External reference ID for the account.\").nullable().optional(),\n \"account-status\": z.string().describe(\"Status of the account.\").nullable().optional(),\n \"account-type-name\": z.string().describe(\"Name of the account type.\").nullable().optional(),\n}).describe(\"Attributes of a Persona account.\");\nconst PersonaSetTags_AccountRelationshipDataSchema = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Related resource data.\").nullable().optional(),\n}).describe(\"Relationship data object.\");\nconst PersonaSetTags_AccountRelationshipsSchema = z.object({\n \"account-type\": PersonaSetTags_AccountRelationshipDataSchema.nullable().optional(),\n}).describe(\"Relationships of a Persona account.\");\nconst PersonaSetTags_AccountDataSchema = z.object({\n id: z.string().describe(\"The unique identifier for the account.\").nullable(),\n type: z.string().describe(\"The resource type (account).\").nullable(),\n attributes: PersonaSetTags_AccountAttributesSchema.nullable().optional(),\n relationships: PersonaSetTags_AccountRelationshipsSchema.nullable().optional(),\n}).describe(\"Account data object.\");\nconst PersonaSetTags_IncludedResourceSchema = z.object({\n id: z.string().describe(\"The unique identifier for the included resource.\").nullable(),\n type: z.string().describe(\"The type of the included resource.\").nullable(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Attributes of the included resource.\").nullable().optional(),\n}).describe(\"Included related resource.\");\nexport const PersonaSetTagsOutput = z.object({\n data: PersonaSetTags_AccountDataSchema.nullable(),\n included: z.array(PersonaSetTags_IncludedResourceSchema).describe(\"Related resources that were included in the response based on the 'include' parameter.\").nullable().optional(),\n}).describe(\"Response from setting tags on a Persona account.\");\n\nexport const personaSetTags = action(\"PERSONA_SET_TAGS\", {\n slug: \"persona-set-tags\",\n name: \"Set Tags on Account\",\n description: \"Tool to set tags on a Persona Account. Use when you need to assign or update tags for an account using either tag IDs or tag names. This operation replaces all existing tags with the provided ones.\",\n input: PersonaSetTagsInput,\n output: PersonaSetTagsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,MAAMA,IAAAA,EAAE,OAAO;EACf,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;EACrI,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC3I,CAAC,CAAC,CAAC,SAAS,qEAAqE;CAC/E,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;CACpN,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gLAAgL,CAAC,CAAC,SAAS;CACxN,c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":3,"file":"set-tags.cjs","names":["z","action"],"sources":["../../src/actions/set-tags.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaSetTagsInput = z.object({\n meta: z.object({\n \"tag-id\": z.array(z.string()).describe(\"ID of the tags to set on the Account. Either tag_id or tag_name must be provided.\").optional(),\n \"tag-name\": z.array(z.string()).describe(\"Name of the tags to set on the Account. Either tag_id or tag_name must be provided.\").optional(),\n}).describe(\"Meta object containing tag information (tag_id or tag_name arrays).\"),\n fields: z.record(z.string(), z.unknown()).describe(\"Comma-separated list(s) of attributes to include in the response. This can be used to customize which attributes will be serialized in the response.\").optional(),\n include: z.string().describe(\"A comma-separated list of relationship paths to include in the response. This can be used to customize which related resources will be fully serialized in the 'included' key.\").optional(),\n \"account-id\": z.string().describe(\"The ID of the account to set tags on.\"),\n \"Key-Inflection\": z.enum([\"camel\", \"kebab\", \"snake\"]).describe(\"Key inflection options for API response casing.\").optional(),\n \"Idempotency-Key\": z.string().describe(\"Ensures the request is idempotent. Provide a unique key to prevent duplicate operations.\").optional(),\n}).describe(\"Request parameters for setting tags on a Persona account.\");\nconst PersonaSetTags_AccountAttributesSchema = z.object({\n tags: z.array(z.string()).describe(\"List of tags associated with the account.\").nullable().optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"Custom fields associated with the account. Note that fields is not key inflected.\").nullable().optional(),\n \"created-at\": z.string().describe(\"ISO 8601 timestamp when the account was created.\").nullable().optional(),\n \"updated-at\": z.string().describe(\"ISO 8601 timestamp when the account was last updated.\").nullable().optional(),\n \"redacted-at\": z.string().describe(\"ISO 8601 timestamp when the account was redacted, if applicable.\").nullable().optional(),\n \"reference-id\": z.string().describe(\"External reference ID for the account.\").nullable().optional(),\n \"account-status\": z.string().describe(\"Status of the account.\").nullable().optional(),\n \"account-type-name\": z.string().describe(\"Name of the account type.\").nullable().optional(),\n}).passthrough().describe(\"Attributes of a Persona account.\");\nconst PersonaSetTags_AccountRelationshipDataSchema = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Related resource data.\").nullable().optional(),\n}).passthrough().describe(\"Relationship data object.\");\nconst PersonaSetTags_AccountRelationshipsSchema = z.object({\n \"account-type\": PersonaSetTags_AccountRelationshipDataSchema.nullable().optional(),\n}).passthrough().describe(\"Relationships of a Persona account.\");\nconst PersonaSetTags_AccountDataSchema = z.object({\n id: z.string().describe(\"The unique identifier for the account.\").nullable(),\n type: z.string().describe(\"The resource type (account).\").nullable(),\n attributes: PersonaSetTags_AccountAttributesSchema.nullable().optional(),\n relationships: PersonaSetTags_AccountRelationshipsSchema.nullable().optional(),\n}).passthrough().describe(\"Account data object.\");\nconst PersonaSetTags_IncludedResourceSchema = z.object({\n id: z.string().describe(\"The unique identifier for the included resource.\").nullable(),\n type: z.string().describe(\"The type of the included resource.\").nullable(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Attributes of the included resource.\").nullable().optional(),\n}).passthrough().describe(\"Included related resource.\");\nexport const PersonaSetTagsOutput = z.object({\n data: PersonaSetTags_AccountDataSchema.nullable(),\n included: z.array(PersonaSetTags_IncludedResourceSchema).describe(\"Related resources that were included in the response based on the 'include' parameter.\").nullable().optional(),\n}).passthrough().describe(\"Response from setting tags on a Persona account.\");\n\nexport const personaSetTags = action(\"PERSONA_SET_TAGS\", {\n slug: \"persona-set-tags\",\n name: \"Set Tags on Account\",\n description: \"Tool to set tags on a Persona Account. Use when you need to assign or update tags for an account using either tag IDs or tag names. This operation replaces all existing tags with the provided ones.\",\n input: PersonaSetTagsInput,\n output: PersonaSetTagsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,MAAMA,IAAAA,EAAE,OAAO;EACf,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;EACrI,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,S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A,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,4BAA4B;AACtD,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,MAAM,iCAAiC,SAAS;CAChD,UAAUA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -29,19 +29,19 @@ declare const PersonaSetTagsOutput: z.ZodObject<{
|
|
|
29
29
|
"reference-id": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
30
|
"account-status": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
31
|
"account-type-name": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
-
}, z.core.$
|
|
32
|
+
}, z.core.$loose>>>;
|
|
33
33
|
relationships: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
34
34
|
"account-type": z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
35
35
|
data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
36
|
-
}, z.core.$
|
|
37
|
-
}, z.core.$
|
|
38
|
-
}, z.core.$
|
|
36
|
+
}, z.core.$loose>>>;
|
|
37
|
+
}, z.core.$loose>>>;
|
|
38
|
+
}, z.core.$loose>>;
|
|
39
39
|
included: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
40
40
|
id: z.ZodNullable<z.ZodString>;
|
|
41
41
|
type: z.ZodNullable<z.ZodString>;
|
|
42
42
|
attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
43
|
-
}, z.core.$
|
|
44
|
-
}, z.core.$
|
|
43
|
+
}, z.core.$loose>>>>;
|
|
44
|
+
}, z.core.$loose>;
|
|
45
45
|
declare const personaSetTags: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
46
46
|
meta: {
|
|
47
47
|
"tag-id"?: string[] | undefined;
|
|
@@ -29,19 +29,19 @@ declare const PersonaSetTagsOutput: z.ZodObject<{
|
|
|
29
29
|
"reference-id": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
30
|
"account-status": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
31
|
"account-type-name": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
-
}, z.core.$
|
|
32
|
+
}, z.core.$loose>>>;
|
|
33
33
|
relationships: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
34
34
|
"account-type": z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
35
35
|
data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
36
|
-
}, z.core.$
|
|
37
|
-
}, z.core.$
|
|
38
|
-
}, z.core.$
|
|
36
|
+
}, z.core.$loose>>>;
|
|
37
|
+
}, z.core.$loose>>>;
|
|
38
|
+
}, z.core.$loose>>;
|
|
39
39
|
included: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
40
40
|
id: z.ZodNullable<z.ZodString>;
|
|
41
41
|
type: z.ZodNullable<z.ZodString>;
|
|
42
42
|
attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
43
|
-
}, z.core.$
|
|
44
|
-
}, z.core.$
|
|
43
|
+
}, z.core.$loose>>>>;
|
|
44
|
+
}, z.core.$loose>;
|
|
45
45
|
declare const personaSetTags: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
46
46
|
meta: {
|
|
47
47
|
"tag-id"?: string[] | undefined;
|
|
@@ -25,20 +25,20 @@ const PersonaSetTags_AccountAttributesSchema = z.object({
|
|
|
25
25
|
"reference-id": z.string().describe("External reference ID for the account.").nullable().optional(),
|
|
26
26
|
"account-status": z.string().describe("Status of the account.").nullable().optional(),
|
|
27
27
|
"account-type-name": z.string().describe("Name of the account type.").nullable().optional()
|
|
28
|
-
}).describe("Attributes of a Persona account.");
|
|
29
|
-
const PersonaSetTags_AccountRelationshipDataSchema = z.object({ data: z.record(z.string(), z.unknown()).describe("Related resource data.").nullable().optional() }).describe("Relationship data object.");
|
|
30
|
-
const PersonaSetTags_AccountRelationshipsSchema = z.object({ "account-type": PersonaSetTags_AccountRelationshipDataSchema.nullable().optional() }).describe("Relationships of a Persona account.");
|
|
28
|
+
}).passthrough().describe("Attributes of a Persona account.");
|
|
29
|
+
const PersonaSetTags_AccountRelationshipDataSchema = z.object({ data: z.record(z.string(), z.unknown()).describe("Related resource data.").nullable().optional() }).passthrough().describe("Relationship data object.");
|
|
30
|
+
const PersonaSetTags_AccountRelationshipsSchema = z.object({ "account-type": PersonaSetTags_AccountRelationshipDataSchema.nullable().optional() }).passthrough().describe("Relationships of a Persona account.");
|
|
31
31
|
const PersonaSetTags_AccountDataSchema = z.object({
|
|
32
32
|
id: z.string().describe("The unique identifier for the account.").nullable(),
|
|
33
33
|
type: z.string().describe("The resource type (account).").nullable(),
|
|
34
34
|
attributes: PersonaSetTags_AccountAttributesSchema.nullable().optional(),
|
|
35
35
|
relationships: PersonaSetTags_AccountRelationshipsSchema.nullable().optional()
|
|
36
|
-
}).describe("Account data object.");
|
|
36
|
+
}).passthrough().describe("Account data object.");
|
|
37
37
|
const PersonaSetTags_IncludedResourceSchema = z.object({
|
|
38
38
|
id: z.string().describe("The unique identifier for the included resource.").nullable(),
|
|
39
39
|
type: z.string().describe("The type of the included resource.").nullable(),
|
|
40
40
|
attributes: z.record(z.string(), z.unknown()).describe("Attributes of the included resource.").nullable().optional()
|
|
41
|
-
}).describe("Included related resource.");
|
|
41
|
+
}).passthrough().describe("Included related resource.");
|
|
42
42
|
const personaSetTags = action("PERSONA_SET_TAGS", {
|
|
43
43
|
slug: "persona-set-tags",
|
|
44
44
|
name: "Set Tags on Account",
|
|
@@ -47,7 +47,7 @@ const personaSetTags = action("PERSONA_SET_TAGS", {
|
|
|
47
47
|
output: z.object({
|
|
48
48
|
data: PersonaSetTags_AccountDataSchema.nullable(),
|
|
49
49
|
included: z.array(PersonaSetTags_IncludedResourceSchema).describe("Related resources that were included in the response based on the 'include' parameter.").nullable().optional()
|
|
50
|
-
}).describe("Response from setting tags on a Persona account.")
|
|
50
|
+
}).passthrough().describe("Response from setting tags on a Persona account.")
|
|
51
51
|
});
|
|
52
52
|
//#endregion
|
|
53
53
|
export { personaSetTags };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-tags.mjs","names":[],"sources":["../../src/actions/set-tags.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaSetTagsInput = z.object({\n meta: z.object({\n \"tag-id\": z.array(z.string()).describe(\"ID of the tags to set on the Account. Either tag_id or tag_name must be provided.\").optional(),\n \"tag-name\": z.array(z.string()).describe(\"Name of the tags to set on the Account. Either tag_id or tag_name must be provided.\").optional(),\n}).describe(\"Meta object containing tag information (tag_id or tag_name arrays).\"),\n fields: z.record(z.string(), z.unknown()).describe(\"Comma-separated list(s) of attributes to include in the response. This can be used to customize which attributes will be serialized in the response.\").optional(),\n include: z.string().describe(\"A comma-separated list of relationship paths to include in the response. This can be used to customize which related resources will be fully serialized in the 'included' key.\").optional(),\n \"account-id\": z.string().describe(\"The ID of the account to set tags on.\"),\n \"Key-Inflection\": z.enum([\"camel\", \"kebab\", \"snake\"]).describe(\"Key inflection options for API response casing.\").optional(),\n \"Idempotency-Key\": z.string().describe(\"Ensures the request is idempotent. Provide a unique key to prevent duplicate operations.\").optional(),\n}).describe(\"Request parameters for setting tags on a Persona account.\");\nconst PersonaSetTags_AccountAttributesSchema = z.object({\n tags: z.array(z.string()).describe(\"List of tags associated with the account.\").nullable().optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"Custom fields associated with the account. Note that fields is not key inflected.\").nullable().optional(),\n \"created-at\": z.string().describe(\"ISO 8601 timestamp when the account was created.\").nullable().optional(),\n \"updated-at\": z.string().describe(\"ISO 8601 timestamp when the account was last updated.\").nullable().optional(),\n \"redacted-at\": z.string().describe(\"ISO 8601 timestamp when the account was redacted, if applicable.\").nullable().optional(),\n \"reference-id\": z.string().describe(\"External reference ID for the account.\").nullable().optional(),\n \"account-status\": z.string().describe(\"Status of the account.\").nullable().optional(),\n \"account-type-name\": z.string().describe(\"Name of the account type.\").nullable().optional(),\n}).describe(\"Attributes of a Persona account.\");\nconst PersonaSetTags_AccountRelationshipDataSchema = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Related resource data.\").nullable().optional(),\n}).describe(\"Relationship data object.\");\nconst PersonaSetTags_AccountRelationshipsSchema = z.object({\n \"account-type\": PersonaSetTags_AccountRelationshipDataSchema.nullable().optional(),\n}).describe(\"Relationships of a Persona account.\");\nconst PersonaSetTags_AccountDataSchema = z.object({\n id: z.string().describe(\"The unique identifier for the account.\").nullable(),\n type: z.string().describe(\"The resource type (account).\").nullable(),\n attributes: PersonaSetTags_AccountAttributesSchema.nullable().optional(),\n relationships: PersonaSetTags_AccountRelationshipsSchema.nullable().optional(),\n}).describe(\"Account data object.\");\nconst PersonaSetTags_IncludedResourceSchema = z.object({\n id: z.string().describe(\"The unique identifier for the included resource.\").nullable(),\n type: z.string().describe(\"The type of the included resource.\").nullable(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Attributes of the included resource.\").nullable().optional(),\n}).describe(\"Included related resource.\");\nexport const PersonaSetTagsOutput = z.object({\n data: PersonaSetTags_AccountDataSchema.nullable(),\n included: z.array(PersonaSetTags_IncludedResourceSchema).describe(\"Related resources that were included in the response based on the 'include' parameter.\").nullable().optional(),\n}).describe(\"Response from setting tags on a Persona account.\");\n\nexport const personaSetTags = action(\"PERSONA_SET_TAGS\", {\n slug: \"persona-set-tags\",\n name: \"Set Tags on Account\",\n description: \"Tool to set tags on a Persona Account. Use when you need to assign or update tags for an account using either tag IDs or tag names. This operation replaces all existing tags with the provided ones.\",\n input: PersonaSetTagsInput,\n output: PersonaSetTagsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsB,EAAE,OAAO;CAC1C,MAAM,EAAE,OAAO;EACf,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;EACrI,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC3I,CAAC,CAAC,CAAC,SAAS,qEAAqE;CAC/E,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;CACpN,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gLAAgL,CAAC,CAAC,SAAS;CACxN,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACzE,kBAAkB,EAAE,KAAK;EAAC;EAAS;EAAS;CAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC3H,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;AAC9I,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,yCAAyC,EAAE,OAAO;CACtD,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5J,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,kCAAkC;
|
|
1
|
+
{"version":3,"file":"set-tags.mjs","names":[],"sources":["../../src/actions/set-tags.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaSetTagsInput = z.object({\n meta: z.object({\n \"tag-id\": z.array(z.string()).describe(\"ID of the tags to set on the Account. Either tag_id or tag_name must be provided.\").optional(),\n \"tag-name\": z.array(z.string()).describe(\"Name of the tags to set on the Account. Either tag_id or tag_name must be provided.\").optional(),\n}).describe(\"Meta object containing tag information (tag_id or tag_name arrays).\"),\n fields: z.record(z.string(), z.unknown()).describe(\"Comma-separated list(s) of attributes to include in the response. This can be used to customize which attributes will be serialized in the response.\").optional(),\n include: z.string().describe(\"A comma-separated list of relationship paths to include in the response. This can be used to customize which related resources will be fully serialized in the 'included' key.\").optional(),\n \"account-id\": z.string().describe(\"The ID of the account to set tags on.\"),\n \"Key-Inflection\": z.enum([\"camel\", \"kebab\", \"snake\"]).describe(\"Key inflection options for API response casing.\").optional(),\n \"Idempotency-Key\": z.string().describe(\"Ensures the request is idempotent. Provide a unique key to prevent duplicate operations.\").optional(),\n}).describe(\"Request parameters for setting tags on a Persona account.\");\nconst PersonaSetTags_AccountAttributesSchema = z.object({\n tags: z.array(z.string()).describe(\"List of tags associated with the account.\").nullable().optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"Custom fields associated with the account. Note that fields is not key inflected.\").nullable().optional(),\n \"created-at\": z.string().describe(\"ISO 8601 timestamp when the account was created.\").nullable().optional(),\n \"updated-at\": z.string().describe(\"ISO 8601 timestamp when the account was last updated.\").nullable().optional(),\n \"redacted-at\": z.string().describe(\"ISO 8601 timestamp when the account was redacted, if applicable.\").nullable().optional(),\n \"reference-id\": z.string().describe(\"External reference ID for the account.\").nullable().optional(),\n \"account-status\": z.string().describe(\"Status of the account.\").nullable().optional(),\n \"account-type-name\": z.string().describe(\"Name of the account type.\").nullable().optional(),\n}).passthrough().describe(\"Attributes of a Persona account.\");\nconst PersonaSetTags_AccountRelationshipDataSchema = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Related resource data.\").nullable().optional(),\n}).passthrough().describe(\"Relationship data object.\");\nconst PersonaSetTags_AccountRelationshipsSchema = z.object({\n \"account-type\": PersonaSetTags_AccountRelationshipDataSchema.nullable().optional(),\n}).passthrough().describe(\"Relationships of a Persona account.\");\nconst PersonaSetTags_AccountDataSchema = z.object({\n id: z.string().describe(\"The unique identifier for the account.\").nullable(),\n type: z.string().describe(\"The resource type (account).\").nullable(),\n attributes: PersonaSetTags_AccountAttributesSchema.nullable().optional(),\n relationships: PersonaSetTags_AccountRelationshipsSchema.nullable().optional(),\n}).passthrough().describe(\"Account data object.\");\nconst PersonaSetTags_IncludedResourceSchema = z.object({\n id: z.string().describe(\"The unique identifier for the included resource.\").nullable(),\n type: z.string().describe(\"The type of the included resource.\").nullable(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Attributes of the included resource.\").nullable().optional(),\n}).passthrough().describe(\"Included related resource.\");\nexport const PersonaSetTagsOutput = z.object({\n data: PersonaSetTags_AccountDataSchema.nullable(),\n included: z.array(PersonaSetTags_IncludedResourceSchema).describe(\"Related resources that were included in the response based on the 'include' parameter.\").nullable().optional(),\n}).passthrough().describe(\"Response from setting tags on a Persona account.\");\n\nexport const personaSetTags = action(\"PERSONA_SET_TAGS\", {\n slug: \"persona-set-tags\",\n name: \"Set Tags on Account\",\n description: \"Tool to set tags on a Persona Account. Use when you need to assign or update tags for an account using either tag IDs or tag names. This operation replaces all existing tags with the provided ones.\",\n input: PersonaSetTagsInput,\n output: PersonaSetTagsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsB,EAAE,OAAO;CAC1C,MAAM,EAAE,OAAO;EACf,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;EACrI,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC3I,CAAC,CAAC,CAAC,SAAS,qEAAqE;CAC/E,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;CACpN,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gLAAgL,CAAC,CAAC,SAAS;CACxN,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACzE,kBAAkB,EAAE,KAAK;EAAC;EAAS;EAAS;CAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC3H,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;AAC9I,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,yCAAyC,EAAE,OAAO;CACtD,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,QAAQ,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