@keystrokehq/persona 0.1.0 → 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/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-tag-to-account.cjs +10 -10
- package/dist/actions/add-tag-to-account.cjs.map +1 -1
- package/dist/actions/add-tag-to-account.d.cts +48 -3
- package/dist/actions/add-tag-to-account.d.cts.map +1 -1
- package/dist/actions/add-tag-to-account.d.mts +48 -3
- package/dist/actions/add-tag-to-account.d.mts.map +1 -1
- package/dist/actions/add-tag-to-account.mjs +10 -10
- package/dist/actions/add-tag-to-account.mjs.map +1 -1
- package/dist/actions/archive-a-browser-fingerprint-list-item.cjs +7 -7
- package/dist/actions/archive-a-browser-fingerprint-list-item.cjs.map +1 -1
- package/dist/actions/archive-a-browser-fingerprint-list-item.d.cts +31 -3
- package/dist/actions/archive-a-browser-fingerprint-list-item.d.cts.map +1 -1
- package/dist/actions/archive-a-browser-fingerprint-list-item.d.mts +31 -3
- package/dist/actions/archive-a-browser-fingerprint-list-item.d.mts.map +1 -1
- package/dist/actions/archive-a-browser-fingerprint-list-item.mjs +7 -7
- package/dist/actions/archive-a-browser-fingerprint-list-item.mjs.map +1 -1
- package/dist/actions/archive-a-country-list-item.cjs +11 -11
- package/dist/actions/archive-a-country-list-item.cjs.map +1 -1
- package/dist/actions/archive-a-country-list-item.d.cts +49 -3
- package/dist/actions/archive-a-country-list-item.d.cts.map +1 -1
- package/dist/actions/archive-a-country-list-item.d.mts +49 -3
- package/dist/actions/archive-a-country-list-item.d.mts.map +1 -1
- package/dist/actions/archive-a-country-list-item.mjs +11 -11
- 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 +41 -3
- package/dist/actions/archive-a-geolocation-list-item.d.cts.map +1 -1
- package/dist/actions/archive-a-geolocation-list-item.d.mts +41 -3
- package/dist/actions/archive-a-geolocation-list-item.d.mts.map +1 -1
- 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 +31 -3
- package/dist/actions/archive-a-government-id-number-list-item.d.cts.map +1 -1
- package/dist/actions/archive-a-government-id-number-list-item.d.mts +31 -3
- package/dist/actions/archive-a-government-id-number-list-item.d.mts.map +1 -1
- package/dist/actions/archive-a-government-id-number-list-item.mjs +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 +30 -3
- package/dist/actions/archive-a-name-list-item.d.cts.map +1 -1
- package/dist/actions/archive-a-name-list-item.d.mts +30 -3
- package/dist/actions/archive-a-name-list-item.d.mts.map +1 -1
- 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 +49 -3
- package/dist/actions/archive-a-webhook.d.cts.map +1 -1
- package/dist/actions/archive-a-webhook.d.mts +49 -3
- package/dist/actions/archive-a-webhook.d.mts.map +1 -1
- 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 +50 -3
- package/dist/actions/archive-email-address-list-item.d.cts.map +1 -1
- package/dist/actions/archive-email-address-list-item.d.mts +50 -3
- package/dist/actions/archive-email-address-list-item.d.mts.map +1 -1
- 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 +8 -8
- package/dist/actions/archive-ip-address-list-item.cjs.map +1 -1
- package/dist/actions/archive-ip-address-list-item.d.cts +34 -3
- package/dist/actions/archive-ip-address-list-item.d.cts.map +1 -1
- package/dist/actions/archive-ip-address-list-item.d.mts +34 -3
- package/dist/actions/archive-ip-address-list-item.d.mts.map +1 -1
- package/dist/actions/archive-ip-address-list-item.mjs +8 -8
- package/dist/actions/archive-ip-address-list-item.mjs.map +1 -1
- package/dist/actions/archive-phone-number-list-item.cjs +9 -9
- package/dist/actions/archive-phone-number-list-item.cjs.map +1 -1
- package/dist/actions/archive-phone-number-list-item.d.cts +31 -3
- package/dist/actions/archive-phone-number-list-item.d.cts.map +1 -1
- package/dist/actions/archive-phone-number-list-item.d.mts +31 -3
- package/dist/actions/archive-phone-number-list-item.d.mts.map +1 -1
- package/dist/actions/archive-phone-number-list-item.mjs +9 -9
- 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 +49 -3
- package/dist/actions/archive-string-list-item.d.cts.map +1 -1
- package/dist/actions/archive-string-list-item.d.mts +49 -3
- package/dist/actions/archive-string-list-item.d.mts.map +1 -1
- 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 +7 -7
- package/dist/actions/clone-webhook.cjs.map +1 -1
- package/dist/actions/clone-webhook.d.cts +43 -3
- package/dist/actions/clone-webhook.d.cts.map +1 -1
- package/dist/actions/clone-webhook.d.mts +43 -3
- package/dist/actions/clone-webhook.d.mts.map +1 -1
- package/dist/actions/clone-webhook.mjs +7 -7
- 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 +28 -3
- package/dist/actions/consolidate-into-account.d.cts.map +1 -1
- package/dist/actions/consolidate-into-account.d.mts +28 -3
- package/dist/actions/consolidate-into-account.d.mts.map +1 -1
- 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 +16 -16
- package/dist/actions/create-an-account.cjs.map +1 -1
- package/dist/actions/create-an-account.d.cts +121 -3
- package/dist/actions/create-an-account.d.cts.map +1 -1
- package/dist/actions/create-an-account.d.mts +121 -3
- package/dist/actions/create-an-account.d.mts.map +1 -1
- package/dist/actions/create-an-account.mjs +16 -16
- package/dist/actions/create-an-account.mjs.map +1 -1
- package/dist/actions/create-an-ip-address-list-item.cjs +10 -10
- package/dist/actions/create-an-ip-address-list-item.cjs.map +1 -1
- package/dist/actions/create-an-ip-address-list-item.d.cts +41 -3
- package/dist/actions/create-an-ip-address-list-item.d.cts.map +1 -1
- package/dist/actions/create-an-ip-address-list-item.d.mts +41 -3
- package/dist/actions/create-an-ip-address-list-item.d.mts.map +1 -1
- package/dist/actions/create-an-ip-address-list-item.mjs +10 -10
- package/dist/actions/create-an-ip-address-list-item.mjs.map +1 -1
- package/dist/actions/create-country-list-item.cjs +8 -8
- package/dist/actions/create-country-list-item.cjs.map +1 -1
- package/dist/actions/create-country-list-item.d.cts +62 -3
- package/dist/actions/create-country-list-item.d.cts.map +1 -1
- package/dist/actions/create-country-list-item.d.mts +62 -3
- package/dist/actions/create-country-list-item.d.mts.map +1 -1
- package/dist/actions/create-country-list-item.mjs +8 -8
- package/dist/actions/create-country-list-item.mjs.map +1 -1
- package/dist/actions/create-document-generic.cjs +9 -9
- package/dist/actions/create-document-generic.cjs.map +1 -1
- package/dist/actions/create-document-generic.d.cts +73 -3
- package/dist/actions/create-document-generic.d.cts.map +1 -1
- package/dist/actions/create-document-generic.d.mts +73 -3
- package/dist/actions/create-document-generic.d.mts.map +1 -1
- package/dist/actions/create-document-generic.mjs +9 -9
- package/dist/actions/create-document-generic.mjs.map +1 -1
- package/dist/actions/create-email-address-list-item.cjs +11 -11
- package/dist/actions/create-email-address-list-item.cjs.map +1 -1
- package/dist/actions/create-email-address-list-item.d.cts +39 -3
- package/dist/actions/create-email-address-list-item.d.cts.map +1 -1
- package/dist/actions/create-email-address-list-item.d.mts +39 -3
- package/dist/actions/create-email-address-list-item.d.mts.map +1 -1
- package/dist/actions/create-email-address-list-item.mjs +11 -11
- package/dist/actions/create-email-address-list-item.mjs.map +1 -1
- package/dist/actions/create-government-id-number-list-item.cjs +13 -13
- package/dist/actions/create-government-id-number-list-item.cjs.map +1 -1
- package/dist/actions/create-government-id-number-list-item.d.cts +42 -3
- package/dist/actions/create-government-id-number-list-item.d.cts.map +1 -1
- package/dist/actions/create-government-id-number-list-item.d.mts +42 -3
- package/dist/actions/create-government-id-number-list-item.d.mts.map +1 -1
- package/dist/actions/create-government-id-number-list-item.mjs +13 -13
- package/dist/actions/create-government-id-number-list-item.mjs.map +1 -1
- package/dist/actions/create-name-list-item.cjs +12 -12
- package/dist/actions/create-name-list-item.cjs.map +1 -1
- package/dist/actions/create-name-list-item.d.cts +47 -3
- package/dist/actions/create-name-list-item.d.cts.map +1 -1
- package/dist/actions/create-name-list-item.d.mts +47 -3
- package/dist/actions/create-name-list-item.d.mts.map +1 -1
- package/dist/actions/create-name-list-item.mjs +12 -12
- package/dist/actions/create-name-list-item.mjs.map +1 -1
- package/dist/actions/create-phone-number-list-item.cjs +9 -9
- package/dist/actions/create-phone-number-list-item.cjs.map +1 -1
- package/dist/actions/create-phone-number-list-item.d.cts +46 -3
- package/dist/actions/create-phone-number-list-item.d.cts.map +1 -1
- package/dist/actions/create-phone-number-list-item.d.mts +46 -3
- package/dist/actions/create-phone-number-list-item.d.mts.map +1 -1
- package/dist/actions/create-phone-number-list-item.mjs +9 -9
- package/dist/actions/create-phone-number-list-item.mjs.map +1 -1
- package/dist/actions/create-string-list-item.cjs +10 -10
- package/dist/actions/create-string-list-item.cjs.map +1 -1
- package/dist/actions/create-string-list-item.d.cts +39 -3
- package/dist/actions/create-string-list-item.d.cts.map +1 -1
- package/dist/actions/create-string-list-item.d.mts +39 -3
- package/dist/actions/create-string-list-item.d.mts.map +1 -1
- package/dist/actions/create-string-list-item.mjs +10 -10
- package/dist/actions/create-string-list-item.mjs.map +1 -1
- package/dist/actions/create-webhook.cjs +8 -8
- package/dist/actions/create-webhook.cjs.map +1 -1
- package/dist/actions/create-webhook.d.cts +72 -3
- package/dist/actions/create-webhook.d.cts.map +1 -1
- package/dist/actions/create-webhook.d.mts +72 -3
- package/dist/actions/create-webhook.d.mts.map +1 -1
- package/dist/actions/create-webhook.mjs +8 -8
- 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 +49 -3
- package/dist/actions/disable-webhook.d.cts.map +1 -1
- package/dist/actions/disable-webhook.d.mts +49 -3
- package/dist/actions/disable-webhook.d.mts.map +1 -1
- package/dist/actions/disable-webhook.mjs +6 -6
- package/dist/actions/disable-webhook.mjs.map +1 -1
- package/dist/actions/enable-webhook.cjs +7 -7
- package/dist/actions/enable-webhook.cjs.map +1 -1
- package/dist/actions/enable-webhook.d.cts +47 -3
- package/dist/actions/enable-webhook.d.cts.map +1 -1
- package/dist/actions/enable-webhook.d.mts +47 -3
- package/dist/actions/enable-webhook.d.mts.map +1 -1
- package/dist/actions/enable-webhook.mjs +7 -7
- package/dist/actions/enable-webhook.mjs.map +1 -1
- package/dist/actions/expire-inquiry-sessions.cjs +12 -12
- package/dist/actions/expire-inquiry-sessions.cjs.map +1 -1
- package/dist/actions/expire-inquiry-sessions.d.cts +54 -3
- package/dist/actions/expire-inquiry-sessions.d.cts.map +1 -1
- package/dist/actions/expire-inquiry-sessions.d.mts +54 -3
- package/dist/actions/expire-inquiry-sessions.d.mts.map +1 -1
- package/dist/actions/expire-inquiry-sessions.mjs +12 -12
- package/dist/actions/expire-inquiry-sessions.mjs.map +1 -1
- package/dist/actions/import-email-address-lists.cjs +10 -10
- package/dist/actions/import-email-address-lists.cjs.map +1 -1
- package/dist/actions/import-email-address-lists.d.cts +30 -3
- package/dist/actions/import-email-address-lists.d.cts.map +1 -1
- package/dist/actions/import-email-address-lists.d.mts +30 -3
- package/dist/actions/import-email-address-lists.d.mts.map +1 -1
- package/dist/actions/import-email-address-lists.mjs +10 -10
- package/dist/actions/import-email-address-lists.mjs.map +1 -1
- package/dist/actions/import-ip-address-lists.cjs +10 -10
- package/dist/actions/import-ip-address-lists.cjs.map +1 -1
- package/dist/actions/import-ip-address-lists.d.cts +46 -3
- package/dist/actions/import-ip-address-lists.d.cts.map +1 -1
- package/dist/actions/import-ip-address-lists.d.mts +46 -3
- package/dist/actions/import-ip-address-lists.d.mts.map +1 -1
- package/dist/actions/import-ip-address-lists.mjs +10 -10
- 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 +36 -3
- package/dist/actions/import-name-lists.d.cts.map +1 -1
- package/dist/actions/import-name-lists.d.mts +36 -3
- package/dist/actions/import-name-lists.d.mts.map +1 -1
- 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 +10 -10
- package/dist/actions/import-phone-number-lists.cjs.map +1 -1
- package/dist/actions/import-phone-number-lists.d.cts +46 -3
- package/dist/actions/import-phone-number-lists.d.cts.map +1 -1
- package/dist/actions/import-phone-number-lists.d.mts +46 -3
- package/dist/actions/import-phone-number-lists.d.mts.map +1 -1
- package/dist/actions/import-phone-number-lists.mjs +10 -10
- package/dist/actions/import-phone-number-lists.mjs.map +1 -1
- package/dist/actions/list-all-accounts.cjs +10 -10
- package/dist/actions/list-all-accounts.cjs.map +1 -1
- package/dist/actions/list-all-accounts.d.cts +60 -3
- package/dist/actions/list-all-accounts.d.cts.map +1 -1
- package/dist/actions/list-all-accounts.d.mts +60 -3
- package/dist/actions/list-all-accounts.d.mts.map +1 -1
- package/dist/actions/list-all-accounts.mjs +10 -10
- package/dist/actions/list-all-accounts.mjs.map +1 -1
- package/dist/actions/list-all-api-logs.cjs +12 -12
- package/dist/actions/list-all-api-logs.cjs.map +1 -1
- package/dist/actions/list-all-api-logs.d.cts +54 -3
- package/dist/actions/list-all-api-logs.d.cts.map +1 -1
- package/dist/actions/list-all-api-logs.d.mts +54 -3
- package/dist/actions/list-all-api-logs.d.mts.map +1 -1
- package/dist/actions/list-all-api-logs.mjs +12 -12
- package/dist/actions/list-all-api-logs.mjs.map +1 -1
- package/dist/actions/list-all-cases.cjs +14 -14
- package/dist/actions/list-all-cases.cjs.map +1 -1
- package/dist/actions/list-all-cases.d.cts +66 -3
- package/dist/actions/list-all-cases.d.cts.map +1 -1
- package/dist/actions/list-all-cases.d.mts +66 -3
- package/dist/actions/list-all-cases.d.mts.map +1 -1
- package/dist/actions/list-all-cases.mjs +14 -14
- package/dist/actions/list-all-cases.mjs.map +1 -1
- package/dist/actions/list-all-devices.cjs +7 -7
- package/dist/actions/list-all-devices.cjs.map +1 -1
- package/dist/actions/list-all-devices.d.cts +46 -3
- package/dist/actions/list-all-devices.d.cts.map +1 -1
- package/dist/actions/list-all-devices.d.mts +46 -3
- package/dist/actions/list-all-devices.d.mts.map +1 -1
- package/dist/actions/list-all-devices.mjs +7 -7
- 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 +50 -3
- package/dist/actions/list-all-events.d.cts.map +1 -1
- package/dist/actions/list-all-events.d.mts +50 -3
- package/dist/actions/list-all-events.d.mts.map +1 -1
- 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 +50 -3
- package/dist/actions/list-all-importers.d.cts.map +1 -1
- package/dist/actions/list-all-importers.d.mts +50 -3
- package/dist/actions/list-all-importers.d.mts.map +1 -1
- 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 +11 -11
- package/dist/actions/list-all-inquiries.cjs.map +1 -1
- package/dist/actions/list-all-inquiries.d.cts +63 -3
- package/dist/actions/list-all-inquiries.d.cts.map +1 -1
- package/dist/actions/list-all-inquiries.d.mts +63 -3
- package/dist/actions/list-all-inquiries.d.mts.map +1 -1
- package/dist/actions/list-all-inquiries.mjs +11 -11
- package/dist/actions/list-all-inquiries.mjs.map +1 -1
- package/dist/actions/list-all-inquiry-sessions.cjs +13 -13
- package/dist/actions/list-all-inquiry-sessions.cjs.map +1 -1
- package/dist/actions/list-all-inquiry-sessions.d.cts +56 -3
- package/dist/actions/list-all-inquiry-sessions.d.cts.map +1 -1
- package/dist/actions/list-all-inquiry-sessions.d.mts +56 -3
- package/dist/actions/list-all-inquiry-sessions.d.mts.map +1 -1
- package/dist/actions/list-all-inquiry-sessions.mjs +13 -13
- 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 +45 -3
- package/dist/actions/list-all-lists.d.cts.map +1 -1
- package/dist/actions/list-all-lists.d.mts +45 -3
- package/dist/actions/list-all-lists.d.mts.map +1 -1
- 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 +36 -3
- package/dist/actions/list-all-rate-limits.d.cts.map +1 -1
- package/dist/actions/list-all-rate-limits.d.mts +36 -3
- package/dist/actions/list-all-rate-limits.d.mts.map +1 -1
- 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 +12 -12
- package/dist/actions/list-all-reports.cjs.map +1 -1
- package/dist/actions/list-all-reports.d.cts +65 -3
- package/dist/actions/list-all-reports.d.cts.map +1 -1
- package/dist/actions/list-all-reports.d.mts +65 -3
- package/dist/actions/list-all-reports.d.mts.map +1 -1
- package/dist/actions/list-all-reports.mjs +12 -12
- package/dist/actions/list-all-reports.mjs.map +1 -1
- package/dist/actions/list-all-transactions.cjs +10 -10
- package/dist/actions/list-all-transactions.cjs.map +1 -1
- package/dist/actions/list-all-transactions.d.cts +55 -3
- package/dist/actions/list-all-transactions.d.cts.map +1 -1
- package/dist/actions/list-all-transactions.d.mts +55 -3
- package/dist/actions/list-all-transactions.d.mts.map +1 -1
- package/dist/actions/list-all-transactions.mjs +10 -10
- package/dist/actions/list-all-transactions.mjs.map +1 -1
- package/dist/actions/list-all-webhooks.cjs +8 -8
- package/dist/actions/list-all-webhooks.cjs.map +1 -1
- package/dist/actions/list-all-webhooks.d.cts +57 -3
- package/dist/actions/list-all-webhooks.d.cts.map +1 -1
- package/dist/actions/list-all-webhooks.d.mts +57 -3
- package/dist/actions/list-all-webhooks.d.mts.map +1 -1
- package/dist/actions/list-all-webhooks.mjs +8 -8
- package/dist/actions/list-all-webhooks.mjs.map +1 -1
- package/dist/actions/list-all-workflow-runs.cjs +12 -12
- package/dist/actions/list-all-workflow-runs.cjs.map +1 -1
- package/dist/actions/list-all-workflow-runs.d.cts +65 -3
- package/dist/actions/list-all-workflow-runs.d.cts.map +1 -1
- package/dist/actions/list-all-workflow-runs.d.mts +65 -3
- package/dist/actions/list-all-workflow-runs.d.mts.map +1 -1
- package/dist/actions/list-all-workflow-runs.mjs +12 -12
- package/dist/actions/list-all-workflow-runs.mjs.map +1 -1
- package/dist/actions/redact-an-account.cjs +13 -13
- package/dist/actions/redact-an-account.cjs.map +1 -1
- package/dist/actions/redact-an-account.d.cts +55 -3
- package/dist/actions/redact-an-account.d.cts.map +1 -1
- package/dist/actions/redact-an-account.d.mts +55 -3
- package/dist/actions/redact-an-account.d.mts.map +1 -1
- package/dist/actions/redact-an-account.mjs +13 -13
- package/dist/actions/redact-an-account.mjs.map +1 -1
- package/dist/actions/remove-account-tag.cjs +9 -9
- package/dist/actions/remove-account-tag.cjs.map +1 -1
- package/dist/actions/remove-account-tag.d.cts +46 -3
- package/dist/actions/remove-account-tag.d.cts.map +1 -1
- package/dist/actions/remove-account-tag.d.mts +46 -3
- package/dist/actions/remove-account-tag.d.mts.map +1 -1
- package/dist/actions/remove-account-tag.mjs +9 -9
- package/dist/actions/remove-account-tag.mjs.map +1 -1
- package/dist/actions/retrieve-a-country-list-item.cjs +8 -8
- package/dist/actions/retrieve-a-country-list-item.cjs.map +1 -1
- package/dist/actions/retrieve-a-country-list-item.d.cts +49 -3
- package/dist/actions/retrieve-a-country-list-item.d.cts.map +1 -1
- package/dist/actions/retrieve-a-country-list-item.d.mts +49 -3
- package/dist/actions/retrieve-a-country-list-item.d.mts.map +1 -1
- package/dist/actions/retrieve-a-country-list-item.mjs +8 -8
- 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 +54 -3
- package/dist/actions/retrieve-a-geolocation-list-item.d.cts.map +1 -1
- package/dist/actions/retrieve-a-geolocation-list-item.d.mts +54 -3
- package/dist/actions/retrieve-a-geolocation-list-item.d.mts.map +1 -1
- 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 +50 -3
- package/dist/actions/retrieve-a-name-list-item.d.cts.map +1 -1
- package/dist/actions/retrieve-a-name-list-item.d.mts +50 -3
- package/dist/actions/retrieve-a-name-list-item.d.mts.map +1 -1
- 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 +8 -8
- package/dist/actions/retrieve-a-string-list-item.cjs.map +1 -1
- package/dist/actions/retrieve-a-string-list-item.d.cts +49 -3
- package/dist/actions/retrieve-a-string-list-item.d.cts.map +1 -1
- package/dist/actions/retrieve-a-string-list-item.d.mts +49 -3
- package/dist/actions/retrieve-a-string-list-item.d.mts.map +1 -1
- package/dist/actions/retrieve-a-string-list-item.mjs +8 -8
- package/dist/actions/retrieve-a-string-list-item.mjs.map +1 -1
- package/dist/actions/retrieve-a-webhook.cjs +10 -10
- package/dist/actions/retrieve-a-webhook.cjs.map +1 -1
- package/dist/actions/retrieve-a-webhook.d.cts +54 -3
- package/dist/actions/retrieve-a-webhook.d.cts.map +1 -1
- package/dist/actions/retrieve-a-webhook.d.mts +54 -3
- package/dist/actions/retrieve-a-webhook.d.mts.map +1 -1
- package/dist/actions/retrieve-a-webhook.mjs +10 -10
- package/dist/actions/retrieve-a-webhook.mjs.map +1 -1
- package/dist/actions/retrieve-an-account.cjs +13 -13
- package/dist/actions/retrieve-an-account.cjs.map +1 -1
- package/dist/actions/retrieve-an-account.d.cts +55 -3
- package/dist/actions/retrieve-an-account.d.cts.map +1 -1
- package/dist/actions/retrieve-an-account.d.mts +55 -3
- package/dist/actions/retrieve-an-account.d.mts.map +1 -1
- package/dist/actions/retrieve-an-account.mjs +13 -13
- package/dist/actions/retrieve-an-account.mjs.map +1 -1
- package/dist/actions/retrieve-an-event.cjs +9 -9
- package/dist/actions/retrieve-an-event.cjs.map +1 -1
- package/dist/actions/retrieve-an-event.d.cts +46 -3
- package/dist/actions/retrieve-an-event.d.cts.map +1 -1
- package/dist/actions/retrieve-an-event.d.mts +46 -3
- package/dist/actions/retrieve-an-event.d.mts.map +1 -1
- package/dist/actions/retrieve-an-event.mjs +9 -9
- 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 +44 -3
- package/dist/actions/retrieve-an-importer.d.cts.map +1 -1
- package/dist/actions/retrieve-an-importer.d.mts +44 -3
- package/dist/actions/retrieve-an-importer.d.mts.map +1 -1
- 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 +49 -3
- package/dist/actions/retrieve-an-ip-address-list-item.d.cts.map +1 -1
- package/dist/actions/retrieve-an-ip-address-list-item.d.mts +49 -3
- package/dist/actions/retrieve-an-ip-address-list-item.d.mts.map +1 -1
- 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 +16 -16
- package/dist/actions/retrieve-api-log.cjs.map +1 -1
- package/dist/actions/retrieve-api-log.d.cts +54 -3
- package/dist/actions/retrieve-api-log.d.cts.map +1 -1
- package/dist/actions/retrieve-api-log.d.mts +54 -3
- package/dist/actions/retrieve-api-log.d.mts.map +1 -1
- package/dist/actions/retrieve-api-log.mjs +16 -16
- package/dist/actions/retrieve-api-log.mjs.map +1 -1
- package/dist/actions/retrieve-browser-fingerprint-list-item.cjs +9 -9
- package/dist/actions/retrieve-browser-fingerprint-list-item.cjs.map +1 -1
- package/dist/actions/retrieve-browser-fingerprint-list-item.d.cts +47 -3
- package/dist/actions/retrieve-browser-fingerprint-list-item.d.cts.map +1 -1
- package/dist/actions/retrieve-browser-fingerprint-list-item.d.mts +47 -3
- package/dist/actions/retrieve-browser-fingerprint-list-item.d.mts.map +1 -1
- package/dist/actions/retrieve-browser-fingerprint-list-item.mjs +9 -9
- package/dist/actions/retrieve-browser-fingerprint-list-item.mjs.map +1 -1
- package/dist/actions/retrieve-document-generic.cjs +22 -22
- package/dist/actions/retrieve-document-generic.cjs.map +1 -1
- package/dist/actions/retrieve-document-generic.d.cts +61 -3
- package/dist/actions/retrieve-document-generic.d.cts.map +1 -1
- package/dist/actions/retrieve-document-generic.d.mts +61 -3
- package/dist/actions/retrieve-document-generic.d.mts.map +1 -1
- package/dist/actions/retrieve-document-generic.mjs +22 -22
- package/dist/actions/retrieve-document-generic.mjs.map +1 -1
- package/dist/actions/retrieve-document.cjs +18 -18
- package/dist/actions/retrieve-document.cjs.map +1 -1
- package/dist/actions/retrieve-document.d.cts +81 -3
- package/dist/actions/retrieve-document.d.cts.map +1 -1
- package/dist/actions/retrieve-document.d.mts +81 -3
- package/dist/actions/retrieve-document.d.mts.map +1 -1
- package/dist/actions/retrieve-document.mjs +18 -18
- 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 +50 -3
- package/dist/actions/retrieve-email-address-list-item.d.cts.map +1 -1
- package/dist/actions/retrieve-email-address-list-item.d.mts +50 -3
- package/dist/actions/retrieve-email-address-list-item.d.mts.map +1 -1
- 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 +50 -3
- package/dist/actions/retrieve-government-id-number-list-item.d.cts.map +1 -1
- package/dist/actions/retrieve-government-id-number-list-item.d.mts +50 -3
- package/dist/actions/retrieve-government-id-number-list-item.d.mts.map +1 -1
- 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 +11 -11
- package/dist/actions/retrieve-phone-number-list-item.cjs.map +1 -1
- package/dist/actions/retrieve-phone-number-list-item.d.cts +52 -3
- package/dist/actions/retrieve-phone-number-list-item.d.cts.map +1 -1
- package/dist/actions/retrieve-phone-number-list-item.d.mts +52 -3
- package/dist/actions/retrieve-phone-number-list-item.d.mts.map +1 -1
- package/dist/actions/retrieve-phone-number-list-item.mjs +11 -11
- package/dist/actions/retrieve-phone-number-list-item.mjs.map +1 -1
- package/dist/actions/rotate-webhook-secret.cjs +9 -9
- package/dist/actions/rotate-webhook-secret.cjs.map +1 -1
- package/dist/actions/rotate-webhook-secret.d.cts +53 -3
- package/dist/actions/rotate-webhook-secret.d.cts.map +1 -1
- package/dist/actions/rotate-webhook-secret.d.mts +53 -3
- package/dist/actions/rotate-webhook-secret.d.mts.map +1 -1
- package/dist/actions/rotate-webhook-secret.mjs +9 -9
- 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 +71 -3
- package/dist/actions/search-accounts.d.cts.map +1 -1
- package/dist/actions/search-accounts.d.mts +71 -3
- package/dist/actions/search-accounts.d.mts.map +1 -1
- package/dist/actions/search-accounts.mjs +8 -8
- package/dist/actions/search-accounts.mjs.map +1 -1
- package/dist/actions/search-cases.cjs +10 -10
- package/dist/actions/search-cases.cjs.map +1 -1
- package/dist/actions/search-cases.d.cts +69 -3
- package/dist/actions/search-cases.d.cts.map +1 -1
- package/dist/actions/search-cases.d.mts +69 -3
- package/dist/actions/search-cases.d.mts.map +1 -1
- package/dist/actions/search-cases.mjs +10 -10
- package/dist/actions/search-cases.mjs.map +1 -1
- package/dist/actions/set-tags.cjs +10 -10
- package/dist/actions/set-tags.cjs.map +1 -1
- package/dist/actions/set-tags.d.cts +52 -3
- package/dist/actions/set-tags.d.cts.map +1 -1
- package/dist/actions/set-tags.d.mts +52 -3
- package/dist/actions/set-tags.d.mts.map +1 -1
- package/dist/actions/set-tags.mjs +10 -10
- package/dist/actions/set-tags.mjs.map +1 -1
- package/dist/actions/update-a-webhook.cjs +10 -10
- package/dist/actions/update-a-webhook.cjs.map +1 -1
- package/dist/actions/update-a-webhook.d.cts +69 -3
- package/dist/actions/update-a-webhook.d.cts.map +1 -1
- package/dist/actions/update-a-webhook.d.mts +69 -3
- package/dist/actions/update-a-webhook.d.mts.map +1 -1
- package/dist/actions/update-a-webhook.mjs +10 -10
- package/dist/actions/update-a-webhook.mjs.map +1 -1
- package/dist/actions/update-an-account.cjs +14 -14
- package/dist/actions/update-an-account.cjs.map +1 -1
- package/dist/actions/update-an-account.d.cts +113 -3
- package/dist/actions/update-an-account.d.cts.map +1 -1
- package/dist/actions/update-an-account.d.mts +113 -3
- package/dist/actions/update-an-account.d.mts.map +1 -1
- package/dist/actions/update-an-account.mjs +14 -14
- package/dist/actions/update-an-account.mjs.map +1 -1
- package/dist/actions/update-document-generic.cjs +20 -20
- package/dist/actions/update-document-generic.cjs.map +1 -1
- package/dist/actions/update-document-generic.d.cts +87 -3
- package/dist/actions/update-document-generic.d.cts.map +1 -1
- package/dist/actions/update-document-generic.d.mts +87 -3
- package/dist/actions/update-document-generic.d.mts.map +1 -1
- package/dist/actions/update-document-generic.mjs +20 -20
- package/dist/actions/update-document-generic.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@ import { action } from "../action.mjs";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/actions/rotate-webhook-secret.ts
|
|
4
4
|
const PersonaRotateWebhookSecretInput = z.object({
|
|
5
|
-
fields: z.
|
|
5
|
+
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(),
|
|
6
6
|
include: z.string().describe("A comma-separated list of relationship paths. This can be used to customize which related resources will be fully serialized in the 'included' key in the response.").optional(),
|
|
7
7
|
webhook_id: z.string().describe("Webhook's ID (starts with 'wbh_')"),
|
|
8
8
|
key_inflection: z.enum([
|
|
@@ -28,21 +28,21 @@ const PersonaRotateWebhookSecret_WebhookAttributesSchema = z.object({
|
|
|
28
28
|
name: z.string().describe("Name of the webhook").nullable().optional(),
|
|
29
29
|
secret: z.string().describe("Secret key used to sign webhook requests for verification").nullable().optional(),
|
|
30
30
|
status: z.string().describe("Status of the webhook").nullable().optional(),
|
|
31
|
-
secrets: z.array(z.union([z.string(), z.
|
|
31
|
+
secrets: z.array(z.union([z.string(), z.record(z.string(), z.unknown())])).describe("List of secret keys for webhook signing rotation. Can be strings or objects with 'value' and 'expires-at' fields.").nullable().optional(),
|
|
32
32
|
"created-at": z.string().describe("Timestamp when the webhook was created").nullable().optional(),
|
|
33
33
|
"api-version": z.string().describe("API version used by the webhook").nullable().optional(),
|
|
34
34
|
description: z.string().describe("Description of the webhook").nullable().optional(),
|
|
35
35
|
"enabled-events": z.array(z.string()).describe("List of events enabled for this webhook").nullable().optional(),
|
|
36
|
-
"payload-filter": z.
|
|
36
|
+
"payload-filter": z.record(z.string(), z.unknown()).describe("Payload filter configuration").nullable().optional(),
|
|
37
37
|
"api-key-inflection": z.string().describe("API key inflection setting").nullable().optional(),
|
|
38
38
|
"api-attributes-blocklist": z.array(z.string()).describe("List of API attributes to blocklist").nullable().optional(),
|
|
39
39
|
"file-access-token-expires-in": z.number().int().describe("File access token expiration time in seconds").nullable().optional()
|
|
40
|
-
}).describe("Webhook attributes in the response.");
|
|
40
|
+
}).passthrough().describe("Webhook attributes in the response.");
|
|
41
41
|
const PersonaRotateWebhookSecret_WebhookDataSchema = z.object({
|
|
42
|
-
id: z.string().describe("Webhook ID"),
|
|
43
|
-
type: z.string().describe("Resource type"),
|
|
42
|
+
id: z.string().describe("Webhook ID").nullable(),
|
|
43
|
+
type: z.string().describe("Resource type").nullable(),
|
|
44
44
|
attributes: PersonaRotateWebhookSecret_WebhookAttributesSchema.nullable().optional()
|
|
45
|
-
}).describe("Webhook data object in the response.");
|
|
45
|
+
}).passthrough().describe("Webhook data object in the response.");
|
|
46
46
|
const personaRotateWebhookSecret = action("PERSONA_ROTATE_WEBHOOK_SECRET", {
|
|
47
47
|
slug: "persona-rotate-webhook-secret",
|
|
48
48
|
name: "Rotate Webhook Secret",
|
|
@@ -50,8 +50,8 @@ const personaRotateWebhookSecret = action("PERSONA_ROTATE_WEBHOOK_SECRET", {
|
|
|
50
50
|
input: PersonaRotateWebhookSecretInput,
|
|
51
51
|
output: z.object({
|
|
52
52
|
data: PersonaRotateWebhookSecret_WebhookDataSchema.nullable(),
|
|
53
|
-
included: z.array(z.
|
|
54
|
-
}).describe("Response model for rotating a webhook's secret.")
|
|
53
|
+
included: z.array(z.record(z.string(), z.unknown())).describe("Excluded from the response by default. Will be an empty array when the 'include' query parameter in the request was explicitly set to empty.").nullable().optional()
|
|
54
|
+
}).passthrough().describe("Response model for rotating a webhook's secret.")
|
|
55
55
|
});
|
|
56
56
|
//#endregion
|
|
57
57
|
export { personaRotateWebhookSecret };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rotate-webhook-secret.mjs","names":[],"sources":["../../src/actions/rotate-webhook-secret.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaRotateWebhookSecretInput
|
|
1
|
+
{"version":3,"file":"rotate-webhook-secret.mjs","names":[],"sources":["../../src/actions/rotate-webhook-secret.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaRotateWebhookSecretInput = z.object({\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. This can be used to customize which related resources will be fully serialized in the 'included' key in the response.\").optional(),\n webhook_id: z.string().describe(\"Webhook's ID (starts with 'wbh_')\"),\n key_inflection: z.enum([\"camel\", \"kebab\", \"snake\"]).describe(\"Casing options for API response.\").optional(),\n idempotency_key: z.string().describe(\"Ensures the request is idempotent\").optional(),\n persona_version: z.enum([\"2025-12-08\", \"2025-10-27\", \"2023-01-05\", \"2022-09-01\", \"2021-08-18\", \"2021-07-05\", \"2021-02-21\", \"2020-05-18\"]).describe(\"Persona API version options.\").optional(),\n expires_in_seconds: z.number().int().describe(\"Seconds until currently active webhook secret expires. If not specified, the old secret expires immediately upon rotation.\").optional(),\n}).describe(\"Request model for rotating a webhook's secret.\");\nconst PersonaRotateWebhookSecret_WebhookAttributesSchema = z.object({\n url: z.string().describe(\"URL of the webhook endpoint\").nullable().optional(),\n name: z.string().describe(\"Name of the webhook\").nullable().optional(),\n secret: z.string().describe(\"Secret key used to sign webhook requests for verification\").nullable().optional(),\n status: z.string().describe(\"Status of the webhook\").nullable().optional(),\n secrets: z.array(z.union([z.string(), z.record(z.string(), z.unknown())])).describe(\"List of secret keys for webhook signing rotation. Can be strings or objects with 'value' and 'expires-at' fields.\").nullable().optional(),\n \"created-at\": z.string().describe(\"Timestamp when the webhook was created\").nullable().optional(),\n \"api-version\": z.string().describe(\"API version used by the webhook\").nullable().optional(),\n description: z.string().describe(\"Description of the webhook\").nullable().optional(),\n \"enabled-events\": z.array(z.string()).describe(\"List of events enabled for this webhook\").nullable().optional(),\n \"payload-filter\": z.record(z.string(), z.unknown()).describe(\"Payload filter configuration\").nullable().optional(),\n \"api-key-inflection\": z.string().describe(\"API key inflection setting\").nullable().optional(),\n \"api-attributes-blocklist\": z.array(z.string()).describe(\"List of API attributes to blocklist\").nullable().optional(),\n \"file-access-token-expires-in\": z.number().int().describe(\"File access token expiration time in seconds\").nullable().optional(),\n}).passthrough().describe(\"Webhook attributes in the response.\");\nconst PersonaRotateWebhookSecret_WebhookDataSchema = z.object({\n id: z.string().describe(\"Webhook ID\").nullable(),\n type: z.string().describe(\"Resource type\").nullable(),\n attributes: PersonaRotateWebhookSecret_WebhookAttributesSchema.nullable().optional(),\n}).passthrough().describe(\"Webhook data object in the response.\");\nexport const PersonaRotateWebhookSecretOutput = z.object({\n data: PersonaRotateWebhookSecret_WebhookDataSchema.nullable(),\n included: z.array(z.record(z.string(), z.unknown())).describe(\"Excluded from the response by default. Will be an empty array when the 'include' query parameter in the request was explicitly set to empty.\").nullable().optional(),\n}).passthrough().describe(\"Response model for rotating a webhook's secret.\");\n\nexport const personaRotateWebhookSecret = action(\"PERSONA_ROTATE_WEBHOOK_SECRET\", {\n slug: \"persona-rotate-webhook-secret\",\n name: \"Rotate Webhook Secret\",\n description: \"Tool to rotate a webhook's secret in Persona. Use when you need to generate a new secret key for webhook signature verification while optionally keeping the old secret active for a grace period.\",\n input: PersonaRotateWebhookSecretInput,\n output: PersonaRotateWebhookSecretOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;CACpN,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qKAAqK,CAAC,CAAC,SAAS;CAC7M,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CACnE,gBAAgB,EAAE,KAAK;EAAC;EAAS;EAAS;CAAO,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,S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e("The attribute name to sort by (e.g., 'created-at', 'updated-at')."),
|
|
12
12
|
direction: zod.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: zod.z.
|
|
15
|
-
sparse_fields: 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': 'account-status', 'operator': 'eq', 'value': 'active'}]}").optional(),
|
|
15
|
+
sparse_fields: zod.z.record(zod.z.string(), zod.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": zod.z.enum([
|
|
17
17
|
"camel",
|
|
18
18
|
"kebab",
|
|
@@ -32,29 +32,29 @@ const PersonaSearchAccountsInput = zod.z.object({
|
|
|
32
32
|
}).describe("Request model for searching accounts in Persona.");
|
|
33
33
|
const PersonaSearchAccounts_AccountAttributesSchema = zod.z.object({
|
|
34
34
|
tags: zod.z.array(zod.z.string()).describe("List of tags associated with the account.").nullable().optional(),
|
|
35
|
-
fields: zod.z.
|
|
35
|
+
fields: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom fields associated with the account (not key inflected).").nullable().optional(),
|
|
36
36
|
"created-at": zod.z.string().describe("ISO 8601 timestamp when the account was created.").nullable().optional(),
|
|
37
37
|
"updated-at": zod.z.string().describe("ISO 8601 timestamp when the account was last updated.").nullable().optional(),
|
|
38
38
|
"redacted-at": zod.z.string().describe("ISO 8601 timestamp when the account was redacted, or null.").nullable().optional(),
|
|
39
39
|
"reference-id": zod.z.string().describe("External reference ID for the account, or null.").nullable().optional(),
|
|
40
40
|
"account-status": zod.z.string().describe("Current status of the account.").nullable().optional(),
|
|
41
41
|
"account-type-name": zod.z.string().describe("Name of the account type associated with this account.").nullable().optional()
|
|
42
|
-
}).describe("Attributes of an Account.");
|
|
43
|
-
const PersonaSearchAccounts_AccountRelationshipsSchema = zod.z.object({ "account-type": zod.z.
|
|
42
|
+
}).passthrough().describe("Attributes of an Account.");
|
|
43
|
+
const PersonaSearchAccounts_AccountRelationshipsSchema = zod.z.object({ "account-type": zod.z.record(zod.z.string(), zod.z.unknown()).describe("The account type relationship data.").nullable().optional() }).passthrough().describe("Relationships of an Account.");
|
|
44
44
|
const PersonaSearchAccounts_AccountDataSchema = zod.z.object({
|
|
45
45
|
id: zod.z.string().describe("Unique identifier for the account.").nullable().optional(),
|
|
46
46
|
type: zod.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 = zod.z.object({
|
|
51
51
|
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(),
|
|
52
52
|
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()
|
|
53
|
-
}).describe("Pagination links for navigating through results.");
|
|
53
|
+
}).passthrough().describe("Pagination links for navigating through results.");
|
|
54
54
|
const PersonaSearchAccountsOutput = zod.z.object({
|
|
55
55
|
data: zod.z.array(PersonaSearchAccounts_AccountDataSchema).describe("An array of Account objects matching the search criteria."),
|
|
56
56
|
links: PersonaSearchAccounts_PaginationLinksSchema.nullable()
|
|
57
|
-
}).describe("Response model for searching accounts.");
|
|
57
|
+
}).passthrough().describe("Response model for searching accounts.");
|
|
58
58
|
const personaSearchAccounts = require_action.action("PERSONA_SEARCH_ACCOUNTS", {
|
|
59
59
|
slug: "persona-search-accounts",
|
|
60
60
|
name: "Search Accounts",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-accounts.cjs","names":["z","action"],"sources":["../../src/actions/search-accounts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaSearchAccountsInput
|
|
1
|
+
{"version":3,"file":"search-accounts.cjs","names":["z","action"],"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,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EACjG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EAC9G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACnH,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChD,MAAMA,IAAAA,EAAE,OAAO;EACf,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;EAClG,WAAWA,IAAAA,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,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4SAA4S,CAAC,CAAC,SAAS;CACzW,eAAeA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;CACxN,kBAAkBA,IAAAA,EAAE,KAAK;EA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,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,77 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/search-accounts.d.ts
|
|
4
|
-
declare const PersonaSearchAccountsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PersonaSearchAccountsInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodObject<{
|
|
6
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
after: z.ZodOptional<z.ZodString>;
|
|
8
|
+
before: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.core.$strip>>;
|
|
10
|
+
sort: z.ZodOptional<z.ZodObject<{
|
|
11
|
+
attribute: z.ZodString;
|
|
12
|
+
direction: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
13
|
+
asc: "asc";
|
|
14
|
+
desc: "desc";
|
|
15
|
+
}>>>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
18
|
+
sparse_fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
19
|
+
"Key-Inflection": z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
camel: "camel";
|
|
21
|
+
kebab: "kebab";
|
|
22
|
+
snake: "snake";
|
|
23
|
+
}>>;
|
|
24
|
+
"Idempotency-Key": z.ZodOptional<z.ZodString>;
|
|
25
|
+
"Persona-Version": z.ZodOptional<z.ZodEnum<{
|
|
26
|
+
"2025-12-08": "2025-12-08";
|
|
27
|
+
"2025-10-27": "2025-10-27";
|
|
28
|
+
"2023-01-05": "2023-01-05";
|
|
29
|
+
"2022-09-01": "2022-09-01";
|
|
30
|
+
"2021-08-18": "2021-08-18";
|
|
31
|
+
"2021-07-05": "2021-07-05";
|
|
32
|
+
"2021-02-21": "2021-02-21";
|
|
33
|
+
"2020-05-18": "2020-05-18";
|
|
34
|
+
}>>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
declare const PersonaSearchAccountsOutput: z.ZodObject<{
|
|
37
|
+
data: z.ZodArray<z.ZodObject<{
|
|
38
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
attributes: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
41
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
42
|
+
fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
43
|
+
"created-at": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
"updated-at": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
"redacted-at": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
"reference-id": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
"account-status": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
"account-type-name": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
}, z.core.$loose>>>;
|
|
50
|
+
relationships: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
51
|
+
"account-type": z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
52
|
+
}, z.core.$loose>>>;
|
|
53
|
+
}, z.core.$loose>>;
|
|
54
|
+
links: z.ZodNullable<z.ZodObject<{
|
|
55
|
+
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
prev: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
}, z.core.$loose>>;
|
|
58
|
+
}, z.core.$loose>;
|
|
59
|
+
declare const personaSearchAccounts: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
60
|
+
page?: {
|
|
61
|
+
size?: number | undefined;
|
|
62
|
+
after?: string | undefined;
|
|
63
|
+
before?: string | undefined;
|
|
64
|
+
} | undefined;
|
|
65
|
+
sort?: {
|
|
66
|
+
attribute: string;
|
|
67
|
+
direction?: "asc" | "desc" | undefined;
|
|
68
|
+
} | undefined;
|
|
69
|
+
query?: Record<string, unknown> | undefined;
|
|
70
|
+
sparse_fields?: Record<string, unknown> | undefined;
|
|
71
|
+
"Key-Inflection"?: "camel" | "kebab" | "snake" | undefined;
|
|
72
|
+
"Idempotency-Key"?: string | undefined;
|
|
73
|
+
"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;
|
|
74
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
75
|
//#endregion
|
|
8
76
|
export { personaSearchAccounts };
|
|
9
77
|
//# sourceMappingURL=search-accounts.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-accounts.d.cts","names":[],"sources":["../../src/actions/search-accounts.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"search-accounts.d.cts","names":[],"sources":["../../src/actions/search-accounts.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuC1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAK3B,qBAAA,gCAAqB,wBAAA;;;;;;;;;;UAMhC,MAAA;kBAAA,MAAA"}
|
|
@@ -1,9 +1,77 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/search-accounts.d.ts
|
|
4
|
-
declare const PersonaSearchAccountsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PersonaSearchAccountsInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodObject<{
|
|
6
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
after: z.ZodOptional<z.ZodString>;
|
|
8
|
+
before: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.core.$strip>>;
|
|
10
|
+
sort: z.ZodOptional<z.ZodObject<{
|
|
11
|
+
attribute: z.ZodString;
|
|
12
|
+
direction: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
13
|
+
asc: "asc";
|
|
14
|
+
desc: "desc";
|
|
15
|
+
}>>>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
18
|
+
sparse_fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
19
|
+
"Key-Inflection": z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
camel: "camel";
|
|
21
|
+
kebab: "kebab";
|
|
22
|
+
snake: "snake";
|
|
23
|
+
}>>;
|
|
24
|
+
"Idempotency-Key": z.ZodOptional<z.ZodString>;
|
|
25
|
+
"Persona-Version": z.ZodOptional<z.ZodEnum<{
|
|
26
|
+
"2025-12-08": "2025-12-08";
|
|
27
|
+
"2025-10-27": "2025-10-27";
|
|
28
|
+
"2023-01-05": "2023-01-05";
|
|
29
|
+
"2022-09-01": "2022-09-01";
|
|
30
|
+
"2021-08-18": "2021-08-18";
|
|
31
|
+
"2021-07-05": "2021-07-05";
|
|
32
|
+
"2021-02-21": "2021-02-21";
|
|
33
|
+
"2020-05-18": "2020-05-18";
|
|
34
|
+
}>>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
declare const PersonaSearchAccountsOutput: z.ZodObject<{
|
|
37
|
+
data: z.ZodArray<z.ZodObject<{
|
|
38
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
attributes: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
41
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
42
|
+
fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
43
|
+
"created-at": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
"updated-at": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
"redacted-at": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
"reference-id": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
"account-status": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
"account-type-name": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
}, z.core.$loose>>>;
|
|
50
|
+
relationships: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
51
|
+
"account-type": z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
52
|
+
}, z.core.$loose>>>;
|
|
53
|
+
}, z.core.$loose>>;
|
|
54
|
+
links: z.ZodNullable<z.ZodObject<{
|
|
55
|
+
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
prev: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
}, z.core.$loose>>;
|
|
58
|
+
}, z.core.$loose>;
|
|
59
|
+
declare const personaSearchAccounts: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
60
|
+
page?: {
|
|
61
|
+
size?: number | undefined;
|
|
62
|
+
after?: string | undefined;
|
|
63
|
+
before?: string | undefined;
|
|
64
|
+
} | undefined;
|
|
65
|
+
sort?: {
|
|
66
|
+
attribute: string;
|
|
67
|
+
direction?: "asc" | "desc" | undefined;
|
|
68
|
+
} | undefined;
|
|
69
|
+
query?: Record<string, unknown> | undefined;
|
|
70
|
+
sparse_fields?: Record<string, unknown> | undefined;
|
|
71
|
+
"Key-Inflection"?: "camel" | "kebab" | "snake" | undefined;
|
|
72
|
+
"Idempotency-Key"?: string | undefined;
|
|
73
|
+
"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;
|
|
74
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
75
|
//#endregion
|
|
8
76
|
export { personaSearchAccounts };
|
|
9
77
|
//# sourceMappingURL=search-accounts.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-accounts.d.mts","names":[],"sources":["../../src/actions/search-accounts.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"search-accounts.d.mts","names":[],"sources":["../../src/actions/search-accounts.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuC1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAK3B,qBAAA,gCAAqB,wBAAA;;;;;;;;;;UAMhC,MAAA;kBAAA,MAAA"}
|
|
@@ -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
|
|
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,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,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
|
-
id: zod.z.string().describe("Unique identifier for the case."),
|
|
47
|
-
type: zod.z.string().describe("Resource type, typically 'case'."),
|
|
46
|
+
id: zod.z.string().describe("Unique identifier for the case.").nullable(),
|
|
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
|
|
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,MA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