@keystrokehq/neon 0.1.2 → 0.1.4
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/accept-projects-transfer-requests.cjs +1 -1
- package/dist/actions/accept-projects-transfer-requests.cjs.map +1 -1
- package/dist/actions/accept-projects-transfer-requests.d.cts +1 -1
- package/dist/actions/accept-projects-transfer-requests.d.mts +1 -1
- package/dist/actions/accept-projects-transfer-requests.mjs +1 -1
- package/dist/actions/accept-projects-transfer-requests.mjs.map +1 -1
- package/dist/actions/access-project-details-by-id.cjs +1 -1
- package/dist/actions/access-project-details-by-id.cjs.map +1 -1
- package/dist/actions/access-project-details-by-id.d.cts +1 -1
- package/dist/actions/access-project-details-by-id.d.mts +1 -1
- package/dist/actions/access-project-details-by-id.mjs +1 -1
- package/dist/actions/access-project-details-by-id.mjs.map +1 -1
- package/dist/actions/add-new-jwks-to-project-endpoint.cjs +3 -3
- package/dist/actions/add-new-jwks-to-project-endpoint.cjs.map +1 -1
- package/dist/actions/add-new-jwks-to-project-endpoint.d.cts +3 -3
- package/dist/actions/add-new-jwks-to-project-endpoint.d.mts +3 -3
- package/dist/actions/add-new-jwks-to-project-endpoint.mjs +3 -3
- package/dist/actions/add-new-jwks-to-project-endpoint.mjs.map +1 -1
- package/dist/actions/add-project-email-permission.cjs +2 -2
- package/dist/actions/add-project-email-permission.cjs.map +1 -1
- package/dist/actions/add-project-email-permission.d.cts +2 -2
- package/dist/actions/add-project-email-permission.d.mts +2 -2
- package/dist/actions/add-project-email-permission.mjs +2 -2
- package/dist/actions/add-project-email-permission.mjs.map +1 -1
- package/dist/actions/add-role-to-branch.cjs +3 -3
- package/dist/actions/add-role-to-branch.cjs.map +1 -1
- package/dist/actions/add-role-to-branch.d.cts +3 -3
- package/dist/actions/add-role-to-branch.d.mts +3 -3
- package/dist/actions/add-role-to-branch.mjs +3 -3
- package/dist/actions/add-role-to-branch.mjs.map +1 -1
- package/dist/actions/count-project-branches.cjs +1 -1
- package/dist/actions/count-project-branches.cjs.map +1 -1
- package/dist/actions/count-project-branches.d.cts +1 -1
- package/dist/actions/count-project-branches.d.mts +1 -1
- package/dist/actions/count-project-branches.mjs +1 -1
- package/dist/actions/count-project-branches.mjs.map +1 -1
- package/dist/actions/create-api-key-for-organization.cjs +1 -1
- package/dist/actions/create-api-key-for-organization.cjs.map +1 -1
- package/dist/actions/create-api-key-for-organization.d.cts +1 -1
- package/dist/actions/create-api-key-for-organization.d.mts +1 -1
- package/dist/actions/create-api-key-for-organization.mjs +1 -1
- package/dist/actions/create-api-key-for-organization.mjs.map +1 -1
- package/dist/actions/create-auth-keys.cjs +1 -1
- package/dist/actions/create-auth-keys.cjs.map +1 -1
- package/dist/actions/create-auth-keys.d.cts +1 -1
- package/dist/actions/create-auth-keys.d.mts +1 -1
- package/dist/actions/create-auth-keys.mjs +1 -1
- package/dist/actions/create-auth-keys.mjs.map +1 -1
- package/dist/actions/create-auth-user.cjs +1 -1
- package/dist/actions/create-auth-user.cjs.map +1 -1
- package/dist/actions/create-auth-user.d.cts +1 -1
- package/dist/actions/create-auth-user.d.mts +1 -1
- package/dist/actions/create-auth-user.mjs +1 -1
- package/dist/actions/create-auth-user.mjs.map +1 -1
- package/dist/actions/create-branch-database.cjs +3 -3
- package/dist/actions/create-branch-database.cjs.map +1 -1
- package/dist/actions/create-branch-database.d.cts +3 -3
- package/dist/actions/create-branch-database.d.mts +3 -3
- package/dist/actions/create-branch-database.mjs +3 -3
- package/dist/actions/create-branch-database.mjs.map +1 -1
- package/dist/actions/create-branches-auth.cjs +1 -1
- package/dist/actions/create-branches-auth.cjs.map +1 -1
- package/dist/actions/create-branches-auth.d.cts +1 -1
- package/dist/actions/create-branches-auth.d.mts +1 -1
- package/dist/actions/create-branches-auth.mjs +1 -1
- package/dist/actions/create-branches-auth.mjs.map +1 -1
- package/dist/actions/create-branches-data-api.cjs +1 -1
- package/dist/actions/create-branches-data-api.cjs.map +1 -1
- package/dist/actions/create-branches-data-api.d.cts +1 -1
- package/dist/actions/create-branches-data-api.d.mts +1 -1
- package/dist/actions/create-branches-data-api.mjs +1 -1
- package/dist/actions/create-branches-data-api.mjs.map +1 -1
- package/dist/actions/create-branches-snapshot.cjs +3 -3
- package/dist/actions/create-branches-snapshot.cjs.map +1 -1
- package/dist/actions/create-branches-snapshot.d.cts +3 -3
- package/dist/actions/create-branches-snapshot.d.mts +3 -3
- package/dist/actions/create-branches-snapshot.mjs +3 -3
- package/dist/actions/create-branches-snapshot.mjs.map +1 -1
- package/dist/actions/create-compute-endpoint.cjs +6 -6
- package/dist/actions/create-compute-endpoint.cjs.map +1 -1
- package/dist/actions/create-compute-endpoint.d.cts +8 -8
- package/dist/actions/create-compute-endpoint.d.mts +8 -8
- package/dist/actions/create-compute-endpoint.mjs +6 -6
- package/dist/actions/create-compute-endpoint.mjs.map +1 -1
- package/dist/actions/create-new-api-key.cjs +1 -1
- package/dist/actions/create-new-api-key.cjs.map +1 -1
- package/dist/actions/create-new-api-key.d.cts +1 -1
- package/dist/actions/create-new-api-key.d.mts +1 -1
- package/dist/actions/create-new-api-key.mjs +1 -1
- package/dist/actions/create-new-api-key.mjs.map +1 -1
- package/dist/actions/create-new-project-branch.cjs +5 -5
- package/dist/actions/create-new-project-branch.cjs.map +1 -1
- package/dist/actions/create-new-project-branch.d.cts +5 -5
- package/dist/actions/create-new-project-branch.d.mts +5 -5
- package/dist/actions/create-new-project-branch.mjs +5 -5
- package/dist/actions/create-new-project-branch.mjs.map +1 -1
- package/dist/actions/create-project-branch-anonymized.cjs +11 -11
- package/dist/actions/create-project-branch-anonymized.cjs.map +1 -1
- package/dist/actions/create-project-branch-anonymized.d.cts +13 -12
- package/dist/actions/create-project-branch-anonymized.d.cts.map +1 -1
- package/dist/actions/create-project-branch-anonymized.d.mts +13 -12
- package/dist/actions/create-project-branch-anonymized.d.mts.map +1 -1
- package/dist/actions/create-project-branch-anonymized.mjs +11 -11
- package/dist/actions/create-project-branch-anonymized.mjs.map +1 -1
- package/dist/actions/create-project-with-quota-and-settings.cjs +21 -21
- package/dist/actions/create-project-with-quota-and-settings.cjs.map +1 -1
- package/dist/actions/create-project-with-quota-and-settings.d.cts +23 -23
- package/dist/actions/create-project-with-quota-and-settings.d.mts +23 -23
- package/dist/actions/create-project-with-quota-and-settings.mjs +21 -21
- package/dist/actions/create-project-with-quota-and-settings.mjs.map +1 -1
- package/dist/actions/create-projects-transfer-requests.cjs +1 -1
- package/dist/actions/create-projects-transfer-requests.cjs.map +1 -1
- package/dist/actions/create-projects-transfer-requests.d.cts +1 -1
- package/dist/actions/create-projects-transfer-requests.d.mts +1 -1
- package/dist/actions/create-projects-transfer-requests.mjs +1 -1
- package/dist/actions/create-projects-transfer-requests.mjs.map +1 -1
- package/dist/actions/create-vpc-endpoint-label.cjs +1 -1
- package/dist/actions/create-vpc-endpoint-label.cjs.map +1 -1
- package/dist/actions/create-vpc-endpoint-label.d.cts +1 -1
- package/dist/actions/create-vpc-endpoint-label.d.mts +1 -1
- package/dist/actions/create-vpc-endpoint-label.mjs +1 -1
- package/dist/actions/create-vpc-endpoint-label.mjs.map +1 -1
- package/dist/actions/create-vpc-endpoint-with-label.cjs +1 -1
- package/dist/actions/create-vpc-endpoint-with-label.cjs.map +1 -1
- package/dist/actions/create-vpc-endpoint-with-label.d.cts +1 -1
- package/dist/actions/create-vpc-endpoint-with-label.d.mts +1 -1
- package/dist/actions/create-vpc-endpoint-with-label.mjs +1 -1
- package/dist/actions/create-vpc-endpoint-with-label.mjs.map +1 -1
- package/dist/actions/delete-api-key-by-id.cjs +1 -1
- package/dist/actions/delete-api-key-by-id.cjs.map +1 -1
- package/dist/actions/delete-api-key-by-id.d.cts +1 -1
- package/dist/actions/delete-api-key-by-id.d.mts +1 -1
- package/dist/actions/delete-api-key-by-id.mjs +1 -1
- package/dist/actions/delete-api-key-by-id.mjs.map +1 -1
- package/dist/actions/delete-auth-domains.cjs +2 -2
- package/dist/actions/delete-auth-domains.cjs.map +1 -1
- package/dist/actions/delete-auth-domains.d.cts +3 -2
- package/dist/actions/delete-auth-domains.d.mts +3 -2
- package/dist/actions/delete-auth-domains.mjs +2 -2
- package/dist/actions/delete-auth-domains.mjs.map +1 -1
- package/dist/actions/delete-auth-oauth-provider.cjs +1 -1
- package/dist/actions/delete-auth-oauth-provider.cjs.map +1 -1
- package/dist/actions/delete-auth-oauth-provider.d.cts +1 -1
- package/dist/actions/delete-auth-oauth-provider.d.mts +1 -1
- package/dist/actions/delete-auth-oauth-provider.mjs +1 -1
- package/dist/actions/delete-auth-oauth-provider.mjs.map +1 -1
- package/dist/actions/delete-auth-user.cjs +1 -1
- package/dist/actions/delete-auth-user.cjs.map +1 -1
- package/dist/actions/delete-auth-user.d.cts +1 -1
- package/dist/actions/delete-auth-user.d.mts +1 -1
- package/dist/actions/delete-auth-user.mjs +1 -1
- package/dist/actions/delete-auth-user.mjs.map +1 -1
- package/dist/actions/delete-branch-data-api.cjs +1 -1
- package/dist/actions/delete-branch-data-api.cjs.map +1 -1
- package/dist/actions/delete-branch-data-api.d.cts +1 -1
- package/dist/actions/delete-branch-data-api.d.cts.map +1 -1
- package/dist/actions/delete-branch-data-api.d.mts +1 -1
- package/dist/actions/delete-branch-data-api.d.mts.map +1 -1
- package/dist/actions/delete-branch-data-api.mjs +1 -1
- package/dist/actions/delete-branch-data-api.mjs.map +1 -1
- package/dist/actions/delete-database-from-branch.cjs +3 -3
- package/dist/actions/delete-database-from-branch.cjs.map +1 -1
- package/dist/actions/delete-database-from-branch.d.cts +3 -3
- package/dist/actions/delete-database-from-branch.d.mts +3 -3
- package/dist/actions/delete-database-from-branch.mjs +3 -3
- package/dist/actions/delete-database-from-branch.mjs.map +1 -1
- package/dist/actions/delete-organization-api-key.cjs +2 -2
- package/dist/actions/delete-organization-api-key.cjs.map +1 -1
- package/dist/actions/delete-organization-api-key.d.cts +2 -2
- package/dist/actions/delete-organization-api-key.d.mts +2 -2
- package/dist/actions/delete-organization-api-key.mjs +2 -2
- package/dist/actions/delete-organization-api-key.mjs.map +1 -1
- package/dist/actions/delete-organization-member.cjs +1 -1
- package/dist/actions/delete-organization-member.cjs.map +1 -1
- package/dist/actions/delete-organization-member.d.cts +1 -1
- package/dist/actions/delete-organization-member.d.mts +1 -1
- package/dist/actions/delete-organization-member.mjs +1 -1
- package/dist/actions/delete-organization-member.mjs.map +1 -1
- package/dist/actions/delete-project-branch-by-id.cjs +3 -3
- package/dist/actions/delete-project-branch-by-id.cjs.map +1 -1
- package/dist/actions/delete-project-branch-by-id.d.cts +3 -3
- package/dist/actions/delete-project-branch-by-id.d.mts +3 -3
- package/dist/actions/delete-project-branch-by-id.mjs +3 -3
- package/dist/actions/delete-project-branch-by-id.mjs.map +1 -1
- package/dist/actions/delete-project-branch-role.cjs +4 -4
- package/dist/actions/delete-project-branch-role.cjs.map +1 -1
- package/dist/actions/delete-project-branch-role.d.cts +4 -4
- package/dist/actions/delete-project-branch-role.d.mts +4 -4
- package/dist/actions/delete-project-branch-role.mjs +4 -4
- package/dist/actions/delete-project-branch-role.mjs.map +1 -1
- package/dist/actions/delete-project-by-id.cjs +1 -1
- package/dist/actions/delete-project-by-id.cjs.map +1 -1
- package/dist/actions/delete-project-by-id.d.cts +1 -1
- package/dist/actions/delete-project-by-id.d.mts +1 -1
- package/dist/actions/delete-project-by-id.mjs +1 -1
- package/dist/actions/delete-project-by-id.mjs.map +1 -1
- package/dist/actions/delete-project-endpoint.cjs +6 -6
- package/dist/actions/delete-project-endpoint.cjs.map +1 -1
- package/dist/actions/delete-project-endpoint.d.cts +6 -6
- package/dist/actions/delete-project-endpoint.d.mts +6 -6
- package/dist/actions/delete-project-endpoint.mjs +6 -6
- package/dist/actions/delete-project-endpoint.mjs.map +1 -1
- package/dist/actions/delete-project-jwks-by-id.cjs +1 -1
- package/dist/actions/delete-project-jwks-by-id.cjs.map +1 -1
- package/dist/actions/delete-project-jwks-by-id.d.cts +1 -1
- package/dist/actions/delete-project-jwks-by-id.d.mts +1 -1
- package/dist/actions/delete-project-jwks-by-id.mjs +1 -1
- package/dist/actions/delete-project-jwks-by-id.mjs.map +1 -1
- package/dist/actions/delete-project-permission.cjs +2 -2
- package/dist/actions/delete-project-permission.cjs.map +1 -1
- package/dist/actions/delete-project-permission.d.cts +2 -2
- package/dist/actions/delete-project-permission.d.mts +2 -2
- package/dist/actions/delete-project-permission.mjs +2 -2
- package/dist/actions/delete-project-permission.mjs.map +1 -1
- package/dist/actions/delete-project-snapshot.cjs +2 -2
- package/dist/actions/delete-project-snapshot.cjs.map +1 -1
- package/dist/actions/delete-project-snapshot.d.cts +2 -2
- package/dist/actions/delete-project-snapshot.d.mts +2 -2
- package/dist/actions/delete-project-snapshot.mjs +2 -2
- package/dist/actions/delete-project-snapshot.mjs.map +1 -1
- package/dist/actions/delete-vpc-endpoint-by-ids.cjs +2 -2
- package/dist/actions/delete-vpc-endpoint-by-ids.cjs.map +1 -1
- package/dist/actions/delete-vpc-endpoint-by-ids.d.cts +2 -2
- package/dist/actions/delete-vpc-endpoint-by-ids.d.mts +2 -2
- package/dist/actions/delete-vpc-endpoint-by-ids.mjs +2 -2
- package/dist/actions/delete-vpc-endpoint-by-ids.mjs.map +1 -1
- package/dist/actions/delete-vpc-endpoint-by-project-id.cjs +1 -1
- package/dist/actions/delete-vpc-endpoint-by-project-id.cjs.map +1 -1
- package/dist/actions/delete-vpc-endpoint-by-project-id.d.cts +1 -1
- package/dist/actions/delete-vpc-endpoint-by-project-id.d.mts +1 -1
- package/dist/actions/delete-vpc-endpoint-by-project-id.mjs +1 -1
- package/dist/actions/delete-vpc-endpoint-by-project-id.mjs.map +1 -1
- package/dist/actions/fetch-database-for-branch.cjs +2 -2
- package/dist/actions/fetch-database-for-branch.cjs.map +1 -1
- package/dist/actions/fetch-database-for-branch.d.cts +2 -2
- package/dist/actions/fetch-database-for-branch.d.mts +2 -2
- package/dist/actions/fetch-database-for-branch.mjs +2 -2
- package/dist/actions/fetch-database-for-branch.mjs.map +1 -1
- package/dist/actions/fetch-organization-members-by-id.cjs +4 -4
- package/dist/actions/fetch-organization-members-by-id.cjs.map +1 -1
- package/dist/actions/fetch-organization-members-by-id.d.cts +4 -4
- package/dist/actions/fetch-organization-members-by-id.d.mts +4 -4
- package/dist/actions/fetch-organization-members-by-id.mjs +4 -4
- package/dist/actions/fetch-organization-members-by-id.mjs.map +1 -1
- package/dist/actions/fetch-vpcendpoint-details-by-id.cjs +1 -1
- package/dist/actions/fetch-vpcendpoint-details-by-id.cjs.map +1 -1
- package/dist/actions/fetch-vpcendpoint-details-by-id.d.cts +1 -1
- package/dist/actions/fetch-vpcendpoint-details-by-id.d.mts +1 -1
- package/dist/actions/fetch-vpcendpoint-details-by-id.mjs +1 -1
- package/dist/actions/fetch-vpcendpoint-details-by-id.mjs.map +1 -1
- package/dist/actions/finalize-branch-restore.cjs +1 -1
- package/dist/actions/finalize-branch-restore.cjs.map +1 -1
- package/dist/actions/finalize-branch-restore.d.cts +1 -1
- package/dist/actions/finalize-branch-restore.d.mts +1 -1
- package/dist/actions/finalize-branch-restore.mjs +1 -1
- package/dist/actions/finalize-branch-restore.mjs.map +1 -1
- package/dist/actions/get-auth-allow-localhost.cjs +1 -1
- package/dist/actions/get-auth-allow-localhost.cjs.map +1 -1
- package/dist/actions/get-auth-allow-localhost.d.cts +1 -1
- package/dist/actions/get-auth-allow-localhost.d.mts +1 -1
- package/dist/actions/get-auth-allow-localhost.mjs +1 -1
- package/dist/actions/get-auth-allow-localhost.mjs.map +1 -1
- package/dist/actions/get-auth-email-provider.cjs +1 -1
- package/dist/actions/get-auth-email-provider.cjs.map +1 -1
- package/dist/actions/get-auth-email-provider.d.cts +1 -1
- package/dist/actions/get-auth-email-provider.d.mts +1 -1
- package/dist/actions/get-auth-email-provider.mjs +1 -1
- package/dist/actions/get-auth-email-provider.mjs.map +1 -1
- package/dist/actions/get-auth.cjs +1 -1
- package/dist/actions/get-auth.cjs.map +1 -1
- package/dist/actions/get-auth.d.cts +1 -1
- package/dist/actions/get-auth.d.mts +1 -1
- package/dist/actions/get-auth.mjs +1 -1
- package/dist/actions/get-auth.mjs.map +1 -1
- package/dist/actions/get-available-preload-libraries.cjs +2 -2
- package/dist/actions/get-available-preload-libraries.cjs.map +1 -1
- package/dist/actions/get-available-preload-libraries.d.cts +2 -2
- package/dist/actions/get-available-preload-libraries.d.mts +2 -2
- package/dist/actions/get-available-preload-libraries.mjs +2 -2
- package/dist/actions/get-available-preload-libraries.mjs.map +1 -1
- package/dist/actions/get-branch-roles-for-project.cjs +2 -2
- package/dist/actions/get-branch-roles-for-project.cjs.map +1 -1
- package/dist/actions/get-branch-roles-for-project.d.cts +2 -2
- package/dist/actions/get-branch-roles-for-project.d.mts +2 -2
- package/dist/actions/get-branch-roles-for-project.mjs +2 -2
- package/dist/actions/get-branch-roles-for-project.mjs.map +1 -1
- package/dist/actions/get-branches-anonymized-status.cjs +1 -1
- package/dist/actions/get-branches-anonymized-status.cjs.map +1 -1
- package/dist/actions/get-branches-anonymized-status.d.cts +1 -1
- package/dist/actions/get-branches-anonymized-status.d.mts +1 -1
- package/dist/actions/get-branches-anonymized-status.mjs +1 -1
- package/dist/actions/get-branches-anonymized-status.mjs.map +1 -1
- package/dist/actions/get-branches-backup-schedule.cjs +2 -2
- package/dist/actions/get-branches-backup-schedule.cjs.map +1 -1
- package/dist/actions/get-branches-backup-schedule.d.cts +2 -2
- package/dist/actions/get-branches-backup-schedule.d.mts +2 -2
- package/dist/actions/get-branches-backup-schedule.mjs +2 -2
- package/dist/actions/get-branches-backup-schedule.mjs.map +1 -1
- package/dist/actions/get-branches-data-api.cjs +2 -2
- package/dist/actions/get-branches-data-api.cjs.map +1 -1
- package/dist/actions/get-branches-data-api.d.cts +2 -2
- package/dist/actions/get-branches-data-api.d.mts +2 -2
- package/dist/actions/get-branches-data-api.mjs +2 -2
- package/dist/actions/get-branches-data-api.mjs.map +1 -1
- package/dist/actions/get-branches-for-project.cjs +4 -4
- package/dist/actions/get-branches-for-project.cjs.map +1 -1
- package/dist/actions/get-branches-for-project.d.cts +4 -4
- package/dist/actions/get-branches-for-project.d.mts +4 -4
- package/dist/actions/get-branches-for-project.mjs +4 -4
- package/dist/actions/get-branches-for-project.mjs.map +1 -1
- package/dist/actions/get-branches-masking-rules.cjs +2 -2
- package/dist/actions/get-branches-masking-rules.cjs.map +1 -1
- package/dist/actions/get-branches-masking-rules.d.cts +2 -2
- package/dist/actions/get-branches-masking-rules.d.mts +2 -2
- package/dist/actions/get-branches-masking-rules.mjs +2 -2
- package/dist/actions/get-branches-masking-rules.mjs.map +1 -1
- package/dist/actions/get-consumption-history-projects.cjs +4 -4
- package/dist/actions/get-consumption-history-projects.cjs.map +1 -1
- package/dist/actions/get-consumption-history-projects.d.cts +4 -4
- package/dist/actions/get-consumption-history-projects.d.mts +4 -4
- package/dist/actions/get-consumption-history-projects.mjs +4 -4
- package/dist/actions/get-consumption-history-projects.mjs.map +1 -1
- package/dist/actions/get-current-user-information.cjs +1 -1
- package/dist/actions/get-current-user-information.cjs.map +1 -1
- package/dist/actions/get-current-user-information.d.cts +1 -1
- package/dist/actions/get-current-user-information.d.mts +1 -1
- package/dist/actions/get-current-user-information.mjs +1 -1
- package/dist/actions/get-current-user-information.mjs.map +1 -1
- package/dist/actions/get-project-branch-role.cjs +3 -3
- package/dist/actions/get-project-branch-role.cjs.map +1 -1
- package/dist/actions/get-project-branch-role.d.cts +3 -3
- package/dist/actions/get-project-branch-role.d.mts +3 -3
- package/dist/actions/get-project-branch-role.mjs +3 -3
- package/dist/actions/get-project-branch-role.mjs.map +1 -1
- package/dist/actions/get-project-branch-schema-comparison.cjs +1 -1
- package/dist/actions/get-project-branch-schema-comparison.cjs.map +1 -1
- package/dist/actions/get-project-branch-schema-comparison.d.cts +1 -1
- package/dist/actions/get-project-branch-schema-comparison.d.mts +1 -1
- package/dist/actions/get-project-branch-schema-comparison.mjs +1 -1
- package/dist/actions/get-project-branch-schema-comparison.mjs.map +1 -1
- package/dist/actions/get-project-branches.cjs +5 -5
- package/dist/actions/get-project-branches.cjs.map +1 -1
- package/dist/actions/get-project-branches.d.cts +5 -5
- package/dist/actions/get-project-branches.d.mts +5 -5
- package/dist/actions/get-project-branches.mjs +5 -5
- package/dist/actions/get-project-branches.mjs.map +1 -1
- package/dist/actions/get-project-connection-uri.cjs +1 -1
- package/dist/actions/get-project-connection-uri.cjs.map +1 -1
- package/dist/actions/get-project-connection-uri.d.cts +1 -1
- package/dist/actions/get-project-connection-uri.d.mts +1 -1
- package/dist/actions/get-project-connection-uri.mjs +1 -1
- package/dist/actions/get-project-connection-uri.mjs.map +1 -1
- package/dist/actions/get-project-operation-by-id.cjs +2 -2
- package/dist/actions/get-project-operation-by-id.cjs.map +1 -1
- package/dist/actions/get-project-operation-by-id.d.cts +2 -2
- package/dist/actions/get-project-operation-by-id.d.mts +2 -2
- package/dist/actions/get-project-operation-by-id.mjs +2 -2
- package/dist/actions/get-project-operation-by-id.mjs.map +1 -1
- package/dist/actions/get-schema-for-project-branch.cjs +1 -1
- package/dist/actions/get-schema-for-project-branch.cjs.map +1 -1
- package/dist/actions/get-schema-for-project-branch.d.cts +1 -1
- package/dist/actions/get-schema-for-project-branch.d.mts +1 -1
- package/dist/actions/get-schema-for-project-branch.mjs +1 -1
- package/dist/actions/get-schema-for-project-branch.mjs.map +1 -1
- package/dist/actions/get-user-organizations.cjs +2 -2
- package/dist/actions/get-user-organizations.cjs.map +1 -1
- package/dist/actions/get-user-organizations.d.cts +2 -2
- package/dist/actions/get-user-organizations.d.mts +2 -2
- package/dist/actions/get-user-organizations.mjs +2 -2
- package/dist/actions/get-user-organizations.mjs.map +1 -1
- package/dist/actions/get-vpc-region-endpoints.cjs +2 -2
- package/dist/actions/get-vpc-region-endpoints.cjs.map +1 -1
- package/dist/actions/get-vpc-region-endpoints.d.cts +2 -2
- package/dist/actions/get-vpc-region-endpoints.d.mts +2 -2
- package/dist/actions/get-vpc-region-endpoints.mjs +2 -2
- package/dist/actions/get-vpc-region-endpoints.mjs.map +1 -1
- package/dist/actions/list-auth-domains.cjs +2 -2
- package/dist/actions/list-auth-domains.cjs.map +1 -1
- package/dist/actions/list-auth-domains.d.cts +2 -2
- package/dist/actions/list-auth-domains.d.mts +2 -2
- package/dist/actions/list-auth-domains.mjs +2 -2
- package/dist/actions/list-auth-domains.mjs.map +1 -1
- package/dist/actions/list-auth-oauth-providers2.cjs +2 -2
- package/dist/actions/list-auth-oauth-providers2.cjs.map +1 -1
- package/dist/actions/list-auth-oauth-providers2.d.cts +2 -2
- package/dist/actions/list-auth-oauth-providers2.d.mts +2 -2
- package/dist/actions/list-auth-oauth-providers2.mjs +2 -2
- package/dist/actions/list-auth-oauth-providers2.mjs.map +1 -1
- package/dist/actions/list-projects-snapshots.cjs +2 -2
- package/dist/actions/list-projects-snapshots.cjs.map +1 -1
- package/dist/actions/list-projects-snapshots.d.cts +2 -2
- package/dist/actions/list-projects-snapshots.d.mts +2 -2
- package/dist/actions/list-projects-snapshots.mjs +2 -2
- package/dist/actions/list-projects-snapshots.mjs.map +1 -1
- package/dist/actions/list-shared-projects.cjs +5 -5
- package/dist/actions/list-shared-projects.cjs.map +1 -1
- package/dist/actions/list-shared-projects.d.cts +5 -5
- package/dist/actions/list-shared-projects.d.mts +5 -5
- package/dist/actions/list-shared-projects.mjs +5 -5
- package/dist/actions/list-shared-projects.mjs.map +1 -1
- package/dist/actions/list-vpc-vpc-endpoints.cjs +2 -2
- package/dist/actions/list-vpc-vpc-endpoints.cjs.map +1 -1
- package/dist/actions/list-vpc-vpc-endpoints.d.cts +2 -2
- package/dist/actions/list-vpc-vpc-endpoints.d.mts +2 -2
- package/dist/actions/list-vpc-vpc-endpoints.mjs +2 -2
- package/dist/actions/list-vpc-vpc-endpoints.mjs.map +1 -1
- package/dist/actions/modify-branch-details-in-project.cjs +1 -1
- package/dist/actions/modify-branch-details-in-project.cjs.map +1 -1
- package/dist/actions/modify-branch-details-in-project.d.cts +1 -1
- package/dist/actions/modify-branch-details-in-project.d.mts +1 -1
- package/dist/actions/modify-branch-details-in-project.mjs +1 -1
- package/dist/actions/modify-branch-details-in-project.mjs.map +1 -1
- package/dist/actions/patch-branch-database-information.cjs +3 -3
- package/dist/actions/patch-branch-database-information.cjs.map +1 -1
- package/dist/actions/patch-branch-database-information.d.cts +3 -3
- package/dist/actions/patch-branch-database-information.d.mts +3 -3
- package/dist/actions/patch-branch-database-information.mjs +3 -3
- package/dist/actions/patch-branch-database-information.mjs.map +1 -1
- package/dist/actions/reset-role-password-for-branch.cjs +4 -4
- package/dist/actions/reset-role-password-for-branch.cjs.map +1 -1
- package/dist/actions/reset-role-password-for-branch.d.cts +4 -4
- package/dist/actions/reset-role-password-for-branch.d.mts +4 -4
- package/dist/actions/reset-role-password-for-branch.mjs +4 -4
- package/dist/actions/reset-role-password-for-branch.mjs.map +1 -1
- package/dist/actions/restart-project-endpoint.cjs +1 -1
- package/dist/actions/restart-project-endpoint.cjs.map +1 -1
- package/dist/actions/restart-project-endpoint.d.cts +1 -1
- package/dist/actions/restart-project-endpoint.d.mts +1 -1
- package/dist/actions/restart-project-endpoint.mjs +1 -1
- package/dist/actions/restart-project-endpoint.mjs.map +1 -1
- package/dist/actions/restore-project-branch.cjs +3 -3
- package/dist/actions/restore-project-branch.cjs.map +1 -1
- package/dist/actions/restore-project-branch.d.cts +3 -3
- package/dist/actions/restore-project-branch.d.mts +3 -3
- package/dist/actions/restore-project-branch.mjs +3 -3
- package/dist/actions/restore-project-branch.mjs.map +1 -1
- package/dist/actions/restore-snapshot.cjs +5 -5
- package/dist/actions/restore-snapshot.cjs.map +1 -1
- package/dist/actions/restore-snapshot.d.cts +5 -5
- package/dist/actions/restore-snapshot.d.mts +5 -5
- package/dist/actions/restore-snapshot.mjs +5 -5
- package/dist/actions/restore-snapshot.mjs.map +1 -1
- package/dist/actions/retrieve-account-consumption-history.cjs +3 -3
- package/dist/actions/retrieve-account-consumption-history.cjs.map +1 -1
- package/dist/actions/retrieve-account-consumption-history.d.cts +3 -3
- package/dist/actions/retrieve-account-consumption-history.d.mts +3 -3
- package/dist/actions/retrieve-account-consumption-history.mjs +3 -3
- package/dist/actions/retrieve-account-consumption-history.mjs.map +1 -1
- package/dist/actions/retrieve-all-regions.cjs +2 -2
- package/dist/actions/retrieve-all-regions.cjs.map +1 -1
- package/dist/actions/retrieve-all-regions.d.cts +2 -2
- package/dist/actions/retrieve-all-regions.d.mts +2 -2
- package/dist/actions/retrieve-all-regions.mjs +2 -2
- package/dist/actions/retrieve-all-regions.mjs.map +1 -1
- package/dist/actions/retrieve-branch-database-details.cjs +2 -2
- package/dist/actions/retrieve-branch-database-details.cjs.map +1 -1
- package/dist/actions/retrieve-branch-database-details.d.cts +2 -2
- package/dist/actions/retrieve-branch-database-details.d.mts +2 -2
- package/dist/actions/retrieve-branch-database-details.mjs +2 -2
- package/dist/actions/retrieve-branch-database-details.mjs.map +1 -1
- package/dist/actions/retrieve-jwks-for-project.cjs +2 -2
- package/dist/actions/retrieve-jwks-for-project.cjs.map +1 -1
- package/dist/actions/retrieve-jwks-for-project.d.cts +2 -2
- package/dist/actions/retrieve-jwks-for-project.d.mts +2 -2
- package/dist/actions/retrieve-jwks-for-project.mjs +2 -2
- package/dist/actions/retrieve-jwks-for-project.mjs.map +1 -1
- package/dist/actions/retrieve-organization-by-id.cjs +1 -1
- package/dist/actions/retrieve-organization-by-id.cjs.map +1 -1
- package/dist/actions/retrieve-organization-by-id.d.cts +1 -1
- package/dist/actions/retrieve-organization-by-id.d.mts +1 -1
- package/dist/actions/retrieve-organization-by-id.mjs +1 -1
- package/dist/actions/retrieve-organization-by-id.mjs.map +1 -1
- package/dist/actions/retrieve-organization-invitations.cjs +3 -3
- package/dist/actions/retrieve-organization-invitations.cjs.map +1 -1
- package/dist/actions/retrieve-organization-invitations.d.cts +3 -3
- package/dist/actions/retrieve-organization-invitations.d.mts +3 -3
- package/dist/actions/retrieve-organization-invitations.mjs +3 -3
- package/dist/actions/retrieve-organization-invitations.mjs.map +1 -1
- package/dist/actions/retrieve-organization-member-info.cjs +2 -2
- package/dist/actions/retrieve-organization-member-info.cjs.map +1 -1
- package/dist/actions/retrieve-organization-member-info.d.cts +2 -2
- package/dist/actions/retrieve-organization-member-info.d.mts +2 -2
- package/dist/actions/retrieve-organization-member-info.mjs +2 -2
- package/dist/actions/retrieve-organization-member-info.mjs.map +1 -1
- package/dist/actions/retrieve-project-endpoint-details.cjs +1 -1
- package/dist/actions/retrieve-project-endpoint-details.cjs.map +1 -1
- package/dist/actions/retrieve-project-endpoint-details.d.cts +1 -1
- package/dist/actions/retrieve-project-endpoint-details.d.mts +1 -1
- package/dist/actions/retrieve-project-endpoint-details.mjs +1 -1
- package/dist/actions/retrieve-project-endpoint-details.mjs.map +1 -1
- package/dist/actions/retrieve-project-operations.cjs +3 -3
- package/dist/actions/retrieve-project-operations.cjs.map +1 -1
- package/dist/actions/retrieve-project-operations.d.cts +3 -3
- package/dist/actions/retrieve-project-operations.d.mts +3 -3
- package/dist/actions/retrieve-project-operations.mjs +3 -3
- package/dist/actions/retrieve-project-operations.mjs.map +1 -1
- package/dist/actions/retrieve-projects-list.cjs +13 -13
- package/dist/actions/retrieve-projects-list.cjs.map +1 -1
- package/dist/actions/retrieve-projects-list.d.cts +13 -13
- package/dist/actions/retrieve-projects-list.d.mts +13 -13
- package/dist/actions/retrieve-projects-list.mjs +13 -13
- package/dist/actions/retrieve-projects-list.mjs.map +1 -1
- package/dist/actions/retrieve-vpc-endpoints-for-project.cjs +2 -2
- package/dist/actions/retrieve-vpc-endpoints-for-project.cjs.map +1 -1
- package/dist/actions/retrieve-vpc-endpoints-for-project.d.cts +2 -2
- package/dist/actions/retrieve-vpc-endpoints-for-project.d.mts +2 -2
- package/dist/actions/retrieve-vpc-endpoints-for-project.mjs +2 -2
- package/dist/actions/retrieve-vpc-endpoints-for-project.mjs.map +1 -1
- package/dist/actions/reveal-role-password-in-branch.cjs +1 -1
- package/dist/actions/reveal-role-password-in-branch.cjs.map +1 -1
- package/dist/actions/reveal-role-password-in-branch.d.cts +1 -1
- package/dist/actions/reveal-role-password-in-branch.d.mts +1 -1
- package/dist/actions/reveal-role-password-in-branch.mjs +1 -1
- package/dist/actions/reveal-role-password-in-branch.mjs.map +1 -1
- package/dist/actions/send-auth-test-email.cjs +1 -1
- package/dist/actions/send-auth-test-email.cjs.map +1 -1
- package/dist/actions/send-auth-test-email.d.cts +1 -1
- package/dist/actions/send-auth-test-email.d.mts +1 -1
- package/dist/actions/send-auth-test-email.mjs +1 -1
- package/dist/actions/send-auth-test-email.mjs.map +1 -1
- package/dist/actions/send-organization-invitations.cjs +3 -3
- package/dist/actions/send-organization-invitations.cjs.map +1 -1
- package/dist/actions/send-organization-invitations.d.cts +4 -3
- package/dist/actions/send-organization-invitations.d.mts +4 -3
- package/dist/actions/send-organization-invitations.mjs +3 -3
- package/dist/actions/send-organization-invitations.mjs.map +1 -1
- package/dist/actions/set-branch-as-default.cjs +3 -3
- package/dist/actions/set-branch-as-default.cjs.map +1 -1
- package/dist/actions/set-branch-as-default.d.cts +3 -3
- package/dist/actions/set-branch-as-default.d.mts +3 -3
- package/dist/actions/set-branch-as-default.mjs +3 -3
- package/dist/actions/set-branch-as-default.mjs.map +1 -1
- package/dist/actions/start-branch-anonymization.cjs +2 -2
- package/dist/actions/start-branch-anonymization.cjs.map +1 -1
- package/dist/actions/start-branch-anonymization.d.cts +2 -2
- package/dist/actions/start-branch-anonymization.d.mts +2 -2
- package/dist/actions/start-branch-anonymization.mjs +2 -2
- package/dist/actions/start-branch-anonymization.mjs.map +1 -1
- package/dist/actions/start-endpoint-for-project.cjs +1 -1
- package/dist/actions/start-endpoint-for-project.cjs.map +1 -1
- package/dist/actions/start-endpoint-for-project.d.cts +1 -1
- package/dist/actions/start-endpoint-for-project.d.mts +1 -1
- package/dist/actions/start-endpoint-for-project.mjs +1 -1
- package/dist/actions/start-endpoint-for-project.mjs.map +1 -1
- package/dist/actions/suspend-project-endpoint-by-id.cjs +3 -3
- package/dist/actions/suspend-project-endpoint-by-id.cjs.map +1 -1
- package/dist/actions/suspend-project-endpoint-by-id.d.cts +3 -3
- package/dist/actions/suspend-project-endpoint-by-id.d.mts +3 -3
- package/dist/actions/suspend-project-endpoint-by-id.mjs +3 -3
- package/dist/actions/suspend-project-endpoint-by-id.mjs.map +1 -1
- package/dist/actions/transfer-projects-between-organizations.cjs +1 -1
- package/dist/actions/transfer-projects-between-organizations.cjs.map +1 -1
- package/dist/actions/transfer-projects-between-organizations.d.cts +1 -1
- package/dist/actions/transfer-projects-between-organizations.d.cts.map +1 -1
- package/dist/actions/transfer-projects-between-organizations.d.mts +1 -1
- package/dist/actions/transfer-projects-between-organizations.d.mts.map +1 -1
- package/dist/actions/transfer-projects-between-organizations.mjs +1 -1
- package/dist/actions/transfer-projects-between-organizations.mjs.map +1 -1
- package/dist/actions/transfer-user-projects-to-organization.cjs +2 -2
- package/dist/actions/transfer-user-projects-to-organization.cjs.map +1 -1
- package/dist/actions/transfer-user-projects-to-organization.d.cts +2 -2
- package/dist/actions/transfer-user-projects-to-organization.d.mts +2 -2
- package/dist/actions/transfer-user-projects-to-organization.mjs +2 -2
- package/dist/actions/transfer-user-projects-to-organization.mjs.map +1 -1
- package/dist/actions/update-auth-allow-localhost.cjs +1 -1
- package/dist/actions/update-auth-allow-localhost.cjs.map +1 -1
- package/dist/actions/update-auth-allow-localhost.d.cts +1 -1
- package/dist/actions/update-auth-allow-localhost.d.mts +1 -1
- package/dist/actions/update-auth-allow-localhost.mjs +1 -1
- package/dist/actions/update-auth-allow-localhost.mjs.map +1 -1
- package/dist/actions/update-auth-email-provider.cjs +1 -1
- package/dist/actions/update-auth-email-provider.cjs.map +1 -1
- package/dist/actions/update-auth-email-provider.d.cts +1 -1
- package/dist/actions/update-auth-email-provider.d.mts +1 -1
- package/dist/actions/update-auth-email-provider.mjs +1 -1
- package/dist/actions/update-auth-email-provider.mjs.map +1 -1
- package/dist/actions/update-branches-data-api.cjs +1 -1
- package/dist/actions/update-branches-data-api.cjs.map +1 -1
- package/dist/actions/update-branches-data-api.d.cts +1 -1
- package/dist/actions/update-branches-data-api.d.cts.map +1 -1
- package/dist/actions/update-branches-data-api.d.mts +1 -1
- package/dist/actions/update-branches-data-api.d.mts.map +1 -1
- package/dist/actions/update-branches-data-api.mjs +1 -1
- package/dist/actions/update-branches-data-api.mjs.map +1 -1
- package/dist/actions/update-branches-masking-rules.cjs +3 -3
- package/dist/actions/update-branches-masking-rules.cjs.map +1 -1
- package/dist/actions/update-branches-masking-rules.d.cts +4 -3
- package/dist/actions/update-branches-masking-rules.d.mts +4 -3
- package/dist/actions/update-branches-masking-rules.mjs +3 -3
- package/dist/actions/update-branches-masking-rules.mjs.map +1 -1
- package/dist/actions/update-organization-member-role.cjs +1 -1
- package/dist/actions/update-organization-member-role.cjs.map +1 -1
- package/dist/actions/update-organization-member-role.d.cts +1 -1
- package/dist/actions/update-organization-member-role.d.mts +1 -1
- package/dist/actions/update-organization-member-role.mjs +1 -1
- package/dist/actions/update-organization-member-role.mjs.map +1 -1
- package/dist/actions/update-project-compute-endpoint-settings.cjs +6 -6
- package/dist/actions/update-project-compute-endpoint-settings.cjs.map +1 -1
- package/dist/actions/update-project-compute-endpoint-settings.d.cts +8 -8
- package/dist/actions/update-project-compute-endpoint-settings.d.mts +8 -8
- package/dist/actions/update-project-compute-endpoint-settings.mjs +6 -6
- package/dist/actions/update-project-compute-endpoint-settings.mjs.map +1 -1
- package/dist/actions/update-project-settings-by-id.cjs +12 -12
- package/dist/actions/update-project-settings-by-id.cjs.map +1 -1
- package/dist/actions/update-project-settings-by-id.d.cts +14 -14
- package/dist/actions/update-project-settings-by-id.d.mts +14 -14
- package/dist/actions/update-project-settings-by-id.mjs +12 -12
- package/dist/actions/update-project-settings-by-id.mjs.map +1 -1
- package/dist/actions/update-projects-snapshots.cjs +2 -2
- package/dist/actions/update-projects-snapshots.cjs.map +1 -1
- package/dist/actions/update-projects-snapshots.d.cts +2 -2
- package/dist/actions/update-projects-snapshots.d.mts +2 -2
- package/dist/actions/update-projects-snapshots.mjs +2 -2
- package/dist/actions/update-projects-snapshots.mjs.map +1 -1
- package/dist/catalog.cjs +1 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +1 -1
- package/dist/catalog.d.mts +1 -1
- package/dist/catalog.mjs +1 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -16,7 +16,7 @@ declare const NeonPatchBranchDatabaseInformationOutput: z.ZodObject<{
|
|
|
16
16
|
created_at: z.ZodNullable<z.ZodString>;
|
|
17
17
|
owner_name: z.ZodNullable<z.ZodString>;
|
|
18
18
|
updated_at: z.ZodNullable<z.ZodString>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
20
|
operations: z.ZodArray<z.ZodObject<{
|
|
21
21
|
id: z.ZodNullable<z.ZodString>;
|
|
22
22
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -30,8 +30,8 @@ declare const NeonPatchBranchDatabaseInformationOutput: z.ZodObject<{
|
|
|
30
30
|
endpoint_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
31
|
failures_count: z.ZodNullable<z.ZodNumber>;
|
|
32
32
|
total_duration_ms: z.ZodNullable<z.ZodNumber>;
|
|
33
|
-
}, z.core.$
|
|
34
|
-
}, z.core.$
|
|
33
|
+
}, z.core.$loose>>;
|
|
34
|
+
}, z.core.$loose>;
|
|
35
35
|
declare const neonPatchBranchDatabaseInformation: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
36
36
|
branch_id: string;
|
|
37
37
|
project_id: string;
|
|
@@ -15,7 +15,7 @@ const NeonPatchBranchDatabaseInformation_DatabaseSchema = z.object({
|
|
|
15
15
|
created_at: z.string().describe("Timestamp when the database was created (ISO 8601 format)").nullable(),
|
|
16
16
|
owner_name: z.string().describe("Role name that owns the database").nullable(),
|
|
17
17
|
updated_at: z.string().describe("Timestamp when the database was last updated (ISO 8601 format)").nullable()
|
|
18
|
-
}).describe("Database object");
|
|
18
|
+
}).passthrough().describe("Database object");
|
|
19
19
|
const NeonPatchBranchDatabaseInformation_OperationSchema = z.object({
|
|
20
20
|
id: z.string().describe("Unique identifier for the operation (UUID format)").nullable(),
|
|
21
21
|
error: z.string().describe("Error message if the operation failed").nullable().optional(),
|
|
@@ -29,7 +29,7 @@ const NeonPatchBranchDatabaseInformation_OperationSchema = z.object({
|
|
|
29
29
|
endpoint_id: z.string().describe("Endpoint identifier associated with the operation").nullable().optional(),
|
|
30
30
|
failures_count: z.number().int().describe("Number of times the operation has failed").nullable(),
|
|
31
31
|
total_duration_ms: z.number().int().describe("Total duration of the operation in milliseconds").nullable()
|
|
32
|
-
}).describe("Operation object");
|
|
32
|
+
}).passthrough().describe("Operation object");
|
|
33
33
|
const neonPatchBranchDatabaseInformation = action("NEON_PATCH_BRANCH_DATABASE_INFORMATION", {
|
|
34
34
|
slug: "neon-patch-branch-database-information",
|
|
35
35
|
name: "Patch branch database information",
|
|
@@ -38,7 +38,7 @@ const neonPatchBranchDatabaseInformation = action("NEON_PATCH_BRANCH_DATABASE_IN
|
|
|
38
38
|
output: z.object({
|
|
39
39
|
database: NeonPatchBranchDatabaseInformation_DatabaseSchema.nullable(),
|
|
40
40
|
operations: z.array(NeonPatchBranchDatabaseInformation_OperationSchema).describe("Array of operations initiated by the update request")
|
|
41
|
-
}).describe("Response schema for `PatchBranchDatabaseInformation`")
|
|
41
|
+
}).passthrough().describe("Response schema for `PatchBranchDatabaseInformation`")
|
|
42
42
|
});
|
|
43
43
|
//#endregion
|
|
44
44
|
export { neonPatchBranchDatabaseInformation };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patch-branch-database-information.mjs","names":[],"sources":["../../src/actions/patch-branch-database-information.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeonPatchBranchDatabaseInformationInput = z.object({\n branch_id: z.string().describe(\"The branch ID where the database resides (e.g., 'br-lucky-water-afkw1lov')\"),\n project_id: z.string().describe(\"The Neon project ID (e.g., 'dry-smoke-26258271')\"),\n database_name: z.string().describe(\"The current name of the database to update\"),\n database__name: z.string().describe(\"The new name for the database. Use this to rename the database.\").optional(),\n database__owner__name: z.string().describe(\"The name of the role to transfer database ownership to. The role must exist in the branch.\").optional(),\n}).describe(\"Request schema for `PatchBranchDatabaseInformation`\");\nconst NeonPatchBranchDatabaseInformation_DatabaseSchema = z.object({\n id: z.string().describe(\"Unique identifier for the database\").nullable(),\n name: z.string().describe(\"Database name\").nullable(),\n branch_id: z.string().describe(\"Branch identifier that this database belongs to\").nullable(),\n created_at: z.string().describe(\"Timestamp when the database was created (ISO 8601 format)\").nullable(),\n owner_name: z.string().describe(\"Role name that owns the database\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the database was last updated (ISO 8601 format)\").nullable(),\n}).describe(\"Database object\");\nconst NeonPatchBranchDatabaseInformation_OperationSchema = z.object({\n id: z.string().describe(\"Unique identifier for the operation (UUID format)\").nullable(),\n error: z.string().describe(\"Error message if the operation failed\").nullable().optional(),\n action: z.string().describe(\"The action being performed (e.g., apply_config, create_timeline, start_compute)\").nullable(),\n status: z.string().describe(\"Current status of the operation. Possible values: scheduling, running, finished, failed, error, cancelled, skipped\").nullable(),\n retry_at: z.string().describe(\"Timestamp when the operation will be retried (ISO 8601 format)\").nullable().optional(),\n branch_id: z.string().describe(\"Branch identifier\").nullable(),\n created_at: z.string().describe(\"Timestamp when the operation was created (ISO 8601 format)\").nullable(),\n project_id: z.string().describe(\"Project identifier\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the operation was last updated (ISO 8601 format)\").nullable(),\n endpoint_id: z.string().describe(\"Endpoint identifier associated with the operation\").nullable().optional(),\n failures_count: z.number().int().describe(\"Number of times the operation has failed\").nullable(),\n total_duration_ms: z.number().int().describe(\"Total duration of the operation in milliseconds\").nullable(),\n}).describe(\"Operation object\");\nexport const NeonPatchBranchDatabaseInformationOutput = z.object({\n database: NeonPatchBranchDatabaseInformation_DatabaseSchema.nullable(),\n operations: z.array(NeonPatchBranchDatabaseInformation_OperationSchema).describe(\"Array of operations initiated by the update request\"),\n}).describe(\"Response schema for `PatchBranchDatabaseInformation`\");\n\nexport const neonPatchBranchDatabaseInformation = action(\"NEON_PATCH_BRANCH_DATABASE_INFORMATION\", {\n slug: \"neon-patch-branch-database-information\",\n name: \"Patch branch database information\",\n description: \"Updates the properties of a specific database within a project branch in the Neon platform. This endpoint allows for partial modifications of database attributes, such as changing its name or owner. It should be used when you need to rename a database or transfer ownership to a different role within the same project and branch. The update is performed using the PATCH method, allowing for selective property changes without affecting unspecified attributes. Note that this operation modifies existing database metadata and does not create new databases or alter the actual data within the database.\",\n input: NeonPatchBranchDatabaseInformationInput,\n output: NeonPatchBranchDatabaseInformationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0C,EAAE,OAAO;CAC9D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CAC3G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAClF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC/E,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAChH,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;AACpJ,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,oDAAoD,EAAE,OAAO;CACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CACpD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC3F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACtG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC7E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,iBAAiB;
|
|
1
|
+
{"version":3,"file":"patch-branch-database-information.mjs","names":[],"sources":["../../src/actions/patch-branch-database-information.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeonPatchBranchDatabaseInformationInput = z.object({\n branch_id: z.string().describe(\"The branch ID where the database resides (e.g., 'br-lucky-water-afkw1lov')\"),\n project_id: z.string().describe(\"The Neon project ID (e.g., 'dry-smoke-26258271')\"),\n database_name: z.string().describe(\"The current name of the database to update\"),\n database__name: z.string().describe(\"The new name for the database. Use this to rename the database.\").optional(),\n database__owner__name: z.string().describe(\"The name of the role to transfer database ownership to. The role must exist in the branch.\").optional(),\n}).describe(\"Request schema for `PatchBranchDatabaseInformation`\");\nconst NeonPatchBranchDatabaseInformation_DatabaseSchema = z.object({\n id: z.string().describe(\"Unique identifier for the database\").nullable(),\n name: z.string().describe(\"Database name\").nullable(),\n branch_id: z.string().describe(\"Branch identifier that this database belongs to\").nullable(),\n created_at: z.string().describe(\"Timestamp when the database was created (ISO 8601 format)\").nullable(),\n owner_name: z.string().describe(\"Role name that owns the database\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the database was last updated (ISO 8601 format)\").nullable(),\n}).passthrough().describe(\"Database object\");\nconst NeonPatchBranchDatabaseInformation_OperationSchema = z.object({\n id: z.string().describe(\"Unique identifier for the operation (UUID format)\").nullable(),\n error: z.string().describe(\"Error message if the operation failed\").nullable().optional(),\n action: z.string().describe(\"The action being performed (e.g., apply_config, create_timeline, start_compute)\").nullable(),\n status: z.string().describe(\"Current status of the operation. Possible values: scheduling, running, finished, failed, error, cancelled, skipped\").nullable(),\n retry_at: z.string().describe(\"Timestamp when the operation will be retried (ISO 8601 format)\").nullable().optional(),\n branch_id: z.string().describe(\"Branch identifier\").nullable(),\n created_at: z.string().describe(\"Timestamp when the operation was created (ISO 8601 format)\").nullable(),\n project_id: z.string().describe(\"Project identifier\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the operation was last updated (ISO 8601 format)\").nullable(),\n endpoint_id: z.string().describe(\"Endpoint identifier associated with the operation\").nullable().optional(),\n failures_count: z.number().int().describe(\"Number of times the operation has failed\").nullable(),\n total_duration_ms: z.number().int().describe(\"Total duration of the operation in milliseconds\").nullable(),\n}).passthrough().describe(\"Operation object\");\nexport const NeonPatchBranchDatabaseInformationOutput = z.object({\n database: NeonPatchBranchDatabaseInformation_DatabaseSchema.nullable(),\n operations: z.array(NeonPatchBranchDatabaseInformation_OperationSchema).describe(\"Array of operations initiated by the update request\"),\n}).passthrough().describe(\"Response schema for `PatchBranchDatabaseInformation`\");\n\nexport const neonPatchBranchDatabaseInformation = action(\"NEON_PATCH_BRANCH_DATABASE_INFORMATION\", {\n slug: \"neon-patch-branch-database-information\",\n name: \"Patch branch database information\",\n description: \"Updates the properties of a specific database within a project branch in the Neon platform. This endpoint allows for partial modifications of database attributes, such as changing its name or owner. It should be used when you need to rename a database or transfer ownership to a different role within the same project and branch. The update is performed using the PATCH method, allowing for selective property changes without affecting unspecified attributes. Note that this operation modifies existing database metadata and does not create new databases or alter the actual data within the database.\",\n input: NeonPatchBranchDatabaseInformationInput,\n output: NeonPatchBranchDatabaseInformationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0C,EAAE,OAAO;CAC9D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CAC3G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAClF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC/E,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAChH,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;AACpJ,CAAC,CAAC,CAAC,SAAS,qDAAqD;AAC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AS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/F,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kBAAkB;AAM5C,MAAa,qCAAqC,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVsD,EAAE,OAAO;EAC/D,UAAU,kDAAkD,SAAS;EACrE,YAAY,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,qDAAqD;CACxI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAOhB;AACV,CAAC"}
|
|
@@ -14,7 +14,7 @@ const NeonResetRolePasswordForBranch_RoleInfoSchema = zod.z.object({
|
|
|
14
14
|
created_at: zod.z.string().describe("When the role was created (ISO 8601 format)").nullable().optional(),
|
|
15
15
|
updated_at: zod.z.string().describe("When the role was last updated (ISO 8601 format)").nullable().optional(),
|
|
16
16
|
authentication_method: zod.z.string().describe("The authentication method used for the role (e.g., 'password')").nullable().optional()
|
|
17
|
-
}).describe("Information about the database role after password reset");
|
|
17
|
+
}).passthrough().describe("Information about the database role after password reset");
|
|
18
18
|
const NeonResetRolePasswordForBranch_OperationInfoSchema = zod.z.object({
|
|
19
19
|
id: zod.z.string().describe("The unique operation ID (UUID)").nullable().optional(),
|
|
20
20
|
action: zod.z.string().describe("The action performed (e.g., 'apply_config')").nullable().optional(),
|
|
@@ -26,12 +26,12 @@ const NeonResetRolePasswordForBranch_OperationInfoSchema = zod.z.object({
|
|
|
26
26
|
endpoint_id: zod.z.string().describe("The compute endpoint ID affected by the operation").nullable().optional(),
|
|
27
27
|
failures_count: zod.z.number().int().describe("Number of times the operation has failed").nullable().optional(),
|
|
28
28
|
total_duration_ms: zod.z.number().int().describe("Total duration of the operation in milliseconds").nullable().optional()
|
|
29
|
-
}).describe("Information about an operation triggered by the password reset");
|
|
29
|
+
}).passthrough().describe("Information about an operation triggered by the password reset");
|
|
30
30
|
const NeonResetRolePasswordForBranch_ResetRolePasswordDataSchema = zod.z.object({
|
|
31
31
|
role: NeonResetRolePasswordForBranch_RoleInfoSchema.nullable().optional(),
|
|
32
32
|
operations: zod.z.array(NeonResetRolePasswordForBranch_OperationInfoSchema).describe("List of operations triggered by the password reset. The new password is ready to use when all operations finish.").nullable().optional()
|
|
33
|
-
}).describe("Data returned from the password reset operation");
|
|
34
|
-
const NeonResetRolePasswordForBranchOutput = zod.z.object({ data: zod.z.union([NeonResetRolePasswordForBranch_ResetRolePasswordDataSchema, zod.z.record(zod.z.string(), zod.z.unknown())]).nullable().optional() }).describe("Response schema for `ResetRolePasswordForBranch`");
|
|
33
|
+
}).passthrough().describe("Data returned from the password reset operation");
|
|
34
|
+
const NeonResetRolePasswordForBranchOutput = zod.z.object({ data: zod.z.union([NeonResetRolePasswordForBranch_ResetRolePasswordDataSchema, zod.z.record(zod.z.string(), zod.z.unknown())]).nullable().optional() }).passthrough().describe("Response schema for `ResetRolePasswordForBranch`");
|
|
35
35
|
const neonResetRolePasswordForBranch = require_action.action("NEON_RESET_ROLE_PASSWORD_FOR_BRANCH", {
|
|
36
36
|
slug: "neon-reset-role-password-for-branch",
|
|
37
37
|
name: "Reset role password for branch",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reset-role-password-for-branch.cjs","names":["z","action"],"sources":["../../src/actions/reset-role-password-for-branch.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeonResetRolePasswordForBranchInput = z.object({\n branch_id: z.string().describe(\"The branch ID where the role exists (e.g., 'br-lucky-water-afkw1lov')\"),\n role_name: z.string().describe(\"The name of the database role whose password should be reset (e.g., 'neondb_owner', 'authenticator')\"),\n project_id: z.string().describe(\"The Neon project ID (e.g., 'dry-smoke-26258271')\"),\n}).describe(\"Request schema for `ResetRolePasswordForBranch`\");\nconst NeonResetRolePasswordForBranch_RoleInfoSchema = z.object({\n name: z.string().describe(\"The name of the role\").nullable().optional(),\n password: z.string().describe(\"The new password generated for the role. Store this securely as it will not be shown again.\").nullable().optional(),\n branch_id: z.string().describe(\"The branch ID where the role exists\").nullable().optional(),\n protected: z.boolean().describe(\"Whether the role is protected from deletion\").nullable().optional(),\n created_at: z.string().describe(\"When the role was created (ISO 8601 format)\").nullable().optional(),\n updated_at: z.string().describe(\"When the role was last updated (ISO 8601 format)\").nullable().optional(),\n authentication_method: z.string().describe(\"The authentication method used for the role (e.g., 'password')\").nullable().optional(),\n}).describe(\"Information about the database role after password reset\");\nconst NeonResetRolePasswordForBranch_OperationInfoSchema = z.object({\n id: z.string().describe(\"The unique operation ID (UUID)\").nullable().optional(),\n action: z.string().describe(\"The action performed (e.g., 'apply_config')\").nullable().optional(),\n status: z.string().describe(\"The operation status (scheduling, running, finished, failed, error, cancelling, cancelled, skipped)\").nullable().optional(),\n branch_id: z.string().describe(\"The branch ID\").nullable().optional(),\n created_at: z.string().describe(\"When the operation was created (ISO 8601 format)\").nullable().optional(),\n project_id: z.string().describe(\"The Neon project ID\").nullable().optional(),\n updated_at: z.string().describe(\"When the operation status was last updated (ISO 8601 format)\").nullable().optional(),\n endpoint_id: z.string().describe(\"The compute endpoint ID affected by the operation\").nullable().optional(),\n failures_count: z.number().int().describe(\"Number of times the operation has failed\").nullable().optional(),\n total_duration_ms: z.number().int().describe(\"Total duration of the operation in milliseconds\").nullable().optional(),\n}).describe(\"Information about an operation triggered by the password reset\");\nconst NeonResetRolePasswordForBranch_ResetRolePasswordDataSchema = z.object({\n role: NeonResetRolePasswordForBranch_RoleInfoSchema.nullable().optional(),\n operations: z.array(NeonResetRolePasswordForBranch_OperationInfoSchema).describe(\"List of operations triggered by the password reset. The new password is ready to use when all operations finish.\").nullable().optional(),\n}).describe(\"Data returned from the password reset operation\");\nexport const NeonResetRolePasswordForBranchOutput = z.object({\n data: z.union([NeonResetRolePasswordForBranch_ResetRolePasswordDataSchema, z.record(z.string(), z.unknown())]).nullable().optional(),\n}).describe(\"Response schema for `ResetRolePasswordForBranch`\");\n\nexport const neonResetRolePasswordForBranch = action(\"NEON_RESET_ROLE_PASSWORD_FOR_BRANCH\", {\n slug: \"neon-reset-role-password-for-branch\",\n name: \"Reset role password for branch\",\n description: \"Resets the password for a PostgreSQL role on a specific Neon branch and generates a new password. Use this when credentials need to be rotated for security purposes (e.g., employee offboarding, suspected compromise, or routine security practices). The response includes the new password - store it securely as it cannot be retrieved later. The new password becomes active once the triggered 'apply_config' operation completes; the old password remains valid until then. Note: This is a destructive operation that invalidates the current password.\",\n input: NeonResetRolePasswordForBranchInput,\n output: NeonResetRolePasswordForBranchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;CACtG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG;CACrI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;AACpF,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnI,CAAC,CAAC,CAAC,SAAS,0DAA0D;
|
|
1
|
+
{"version":3,"file":"reset-role-password-for-branch.cjs","names":["z","action"],"sources":["../../src/actions/reset-role-password-for-branch.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeonResetRolePasswordForBranchInput = z.object({\n branch_id: z.string().describe(\"The branch ID where the role exists (e.g., 'br-lucky-water-afkw1lov')\"),\n role_name: z.string().describe(\"The name of the database role whose password should be reset (e.g., 'neondb_owner', 'authenticator')\"),\n project_id: z.string().describe(\"The Neon project ID (e.g., 'dry-smoke-26258271')\"),\n}).describe(\"Request schema for `ResetRolePasswordForBranch`\");\nconst NeonResetRolePasswordForBranch_RoleInfoSchema = z.object({\n name: z.string().describe(\"The name of the role\").nullable().optional(),\n password: z.string().describe(\"The new password generated for the role. Store this securely as it will not be shown again.\").nullable().optional(),\n branch_id: z.string().describe(\"The branch ID where the role exists\").nullable().optional(),\n protected: z.boolean().describe(\"Whether the role is protected from deletion\").nullable().optional(),\n created_at: z.string().describe(\"When the role was created (ISO 8601 format)\").nullable().optional(),\n updated_at: z.string().describe(\"When the role was last updated (ISO 8601 format)\").nullable().optional(),\n authentication_method: z.string().describe(\"The authentication method used for the role (e.g., 'password')\").nullable().optional(),\n}).passthrough().describe(\"Information about the database role after password reset\");\nconst NeonResetRolePasswordForBranch_OperationInfoSchema = z.object({\n id: z.string().describe(\"The unique operation ID (UUID)\").nullable().optional(),\n action: z.string().describe(\"The action performed (e.g., 'apply_config')\").nullable().optional(),\n status: z.string().describe(\"The operation status (scheduling, running, finished, failed, error, cancelling, cancelled, skipped)\").nullable().optional(),\n branch_id: z.string().describe(\"The branch ID\").nullable().optional(),\n created_at: z.string().describe(\"When the operation was created (ISO 8601 format)\").nullable().optional(),\n project_id: z.string().describe(\"The Neon project ID\").nullable().optional(),\n updated_at: z.string().describe(\"When the operation status was last updated (ISO 8601 format)\").nullable().optional(),\n endpoint_id: z.string().describe(\"The compute endpoint ID affected by the operation\").nullable().optional(),\n failures_count: z.number().int().describe(\"Number of times the operation has failed\").nullable().optional(),\n total_duration_ms: z.number().int().describe(\"Total duration of the operation in milliseconds\").nullable().optional(),\n}).passthrough().describe(\"Information about an operation triggered by the password reset\");\nconst NeonResetRolePasswordForBranch_ResetRolePasswordDataSchema = z.object({\n role: NeonResetRolePasswordForBranch_RoleInfoSchema.nullable().optional(),\n operations: z.array(NeonResetRolePasswordForBranch_OperationInfoSchema).describe(\"List of operations triggered by the password reset. The new password is ready to use when all operations finish.\").nullable().optional(),\n}).passthrough().describe(\"Data returned from the password reset operation\");\nexport const NeonResetRolePasswordForBranchOutput = z.object({\n data: z.union([NeonResetRolePasswordForBranch_ResetRolePasswordDataSchema, z.record(z.string(), z.unknown())]).nullable().optional(),\n}).passthrough().describe(\"Response schema for `ResetRolePasswordForBranch`\");\n\nexport const neonResetRolePasswordForBranch = action(\"NEON_RESET_ROLE_PASSWORD_FOR_BRANCH\", {\n slug: \"neon-reset-role-password-for-branch\",\n name: \"Reset role password for branch\",\n description: \"Resets the password for a PostgreSQL role on a specific Neon branch and generates a new password. Use this when credentials need to be rotated for security purposes (e.g., employee offboarding, suspected compromise, or routine security practices). The response includes the new password - store it securely as it cannot be retrieved later. The new password becomes active once the triggered 'apply_config' operation completes; the old password remains valid until then. Note: This is a destructive operation that invalidates the current password.\",\n input: NeonResetRolePasswordForBranchInput,\n output: NeonResetRolePasswordForBranchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsCA,IAAAA,EAAE,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AO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACrI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,iCAAiCC,eAAAA,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -16,7 +16,7 @@ declare const NeonResetRolePasswordForBranchOutput: z.ZodObject<{
|
|
|
16
16
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
18
|
authentication_method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>>>;
|
|
20
20
|
operations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
21
21
|
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
22
|
action: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -28,9 +28,9 @@ declare const NeonResetRolePasswordForBranchOutput: z.ZodObject<{
|
|
|
28
28
|
endpoint_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
29
|
failures_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
30
30
|
total_duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
31
|
-
}, z.core.$
|
|
32
|
-
}, z.core.$
|
|
33
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>>>;
|
|
32
|
+
}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
33
|
+
}, z.core.$loose>;
|
|
34
34
|
declare const neonResetRolePasswordForBranch: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
35
35
|
branch_id: string;
|
|
36
36
|
role_name: string;
|
|
@@ -16,7 +16,7 @@ declare const NeonResetRolePasswordForBranchOutput: z.ZodObject<{
|
|
|
16
16
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
18
|
authentication_method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>>>;
|
|
20
20
|
operations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
21
21
|
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
22
|
action: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -28,9 +28,9 @@ declare const NeonResetRolePasswordForBranchOutput: z.ZodObject<{
|
|
|
28
28
|
endpoint_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
29
|
failures_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
30
30
|
total_duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
31
|
-
}, z.core.$
|
|
32
|
-
}, z.core.$
|
|
33
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>>>;
|
|
32
|
+
}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
33
|
+
}, z.core.$loose>;
|
|
34
34
|
declare const neonResetRolePasswordForBranch: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
35
35
|
branch_id: string;
|
|
36
36
|
role_name: string;
|
|
@@ -14,7 +14,7 @@ const NeonResetRolePasswordForBranch_RoleInfoSchema = z.object({
|
|
|
14
14
|
created_at: z.string().describe("When the role was created (ISO 8601 format)").nullable().optional(),
|
|
15
15
|
updated_at: z.string().describe("When the role was last updated (ISO 8601 format)").nullable().optional(),
|
|
16
16
|
authentication_method: z.string().describe("The authentication method used for the role (e.g., 'password')").nullable().optional()
|
|
17
|
-
}).describe("Information about the database role after password reset");
|
|
17
|
+
}).passthrough().describe("Information about the database role after password reset");
|
|
18
18
|
const NeonResetRolePasswordForBranch_OperationInfoSchema = z.object({
|
|
19
19
|
id: z.string().describe("The unique operation ID (UUID)").nullable().optional(),
|
|
20
20
|
action: z.string().describe("The action performed (e.g., 'apply_config')").nullable().optional(),
|
|
@@ -26,17 +26,17 @@ const NeonResetRolePasswordForBranch_OperationInfoSchema = z.object({
|
|
|
26
26
|
endpoint_id: z.string().describe("The compute endpoint ID affected by the operation").nullable().optional(),
|
|
27
27
|
failures_count: z.number().int().describe("Number of times the operation has failed").nullable().optional(),
|
|
28
28
|
total_duration_ms: z.number().int().describe("Total duration of the operation in milliseconds").nullable().optional()
|
|
29
|
-
}).describe("Information about an operation triggered by the password reset");
|
|
29
|
+
}).passthrough().describe("Information about an operation triggered by the password reset");
|
|
30
30
|
const NeonResetRolePasswordForBranch_ResetRolePasswordDataSchema = z.object({
|
|
31
31
|
role: NeonResetRolePasswordForBranch_RoleInfoSchema.nullable().optional(),
|
|
32
32
|
operations: z.array(NeonResetRolePasswordForBranch_OperationInfoSchema).describe("List of operations triggered by the password reset. The new password is ready to use when all operations finish.").nullable().optional()
|
|
33
|
-
}).describe("Data returned from the password reset operation");
|
|
33
|
+
}).passthrough().describe("Data returned from the password reset operation");
|
|
34
34
|
const neonResetRolePasswordForBranch = action("NEON_RESET_ROLE_PASSWORD_FOR_BRANCH", {
|
|
35
35
|
slug: "neon-reset-role-password-for-branch",
|
|
36
36
|
name: "Reset role password for branch",
|
|
37
37
|
description: "Resets the password for a PostgreSQL role on a specific Neon branch and generates a new password. Use this when credentials need to be rotated for security purposes (e.g., employee offboarding, suspected compromise, or routine security practices). The response includes the new password - store it securely as it cannot be retrieved later. The new password becomes active once the triggered 'apply_config' operation completes; the old password remains valid until then. Note: This is a destructive operation that invalidates the current password.",
|
|
38
38
|
input: NeonResetRolePasswordForBranchInput,
|
|
39
|
-
output: z.object({ data: z.union([NeonResetRolePasswordForBranch_ResetRolePasswordDataSchema, z.record(z.string(), z.unknown())]).nullable().optional() }).describe("Response schema for `ResetRolePasswordForBranch`")
|
|
39
|
+
output: z.object({ data: z.union([NeonResetRolePasswordForBranch_ResetRolePasswordDataSchema, z.record(z.string(), z.unknown())]).nullable().optional() }).passthrough().describe("Response schema for `ResetRolePasswordForBranch`")
|
|
40
40
|
});
|
|
41
41
|
//#endregion
|
|
42
42
|
export { neonResetRolePasswordForBranch };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reset-role-password-for-branch.mjs","names":[],"sources":["../../src/actions/reset-role-password-for-branch.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeonResetRolePasswordForBranchInput = z.object({\n branch_id: z.string().describe(\"The branch ID where the role exists (e.g., 'br-lucky-water-afkw1lov')\"),\n role_name: z.string().describe(\"The name of the database role whose password should be reset (e.g., 'neondb_owner', 'authenticator')\"),\n project_id: z.string().describe(\"The Neon project ID (e.g., 'dry-smoke-26258271')\"),\n}).describe(\"Request schema for `ResetRolePasswordForBranch`\");\nconst NeonResetRolePasswordForBranch_RoleInfoSchema = z.object({\n name: z.string().describe(\"The name of the role\").nullable().optional(),\n password: z.string().describe(\"The new password generated for the role. Store this securely as it will not be shown again.\").nullable().optional(),\n branch_id: z.string().describe(\"The branch ID where the role exists\").nullable().optional(),\n protected: z.boolean().describe(\"Whether the role is protected from deletion\").nullable().optional(),\n created_at: z.string().describe(\"When the role was created (ISO 8601 format)\").nullable().optional(),\n updated_at: z.string().describe(\"When the role was last updated (ISO 8601 format)\").nullable().optional(),\n authentication_method: z.string().describe(\"The authentication method used for the role (e.g., 'password')\").nullable().optional(),\n}).describe(\"Information about the database role after password reset\");\nconst NeonResetRolePasswordForBranch_OperationInfoSchema = z.object({\n id: z.string().describe(\"The unique operation ID (UUID)\").nullable().optional(),\n action: z.string().describe(\"The action performed (e.g., 'apply_config')\").nullable().optional(),\n status: z.string().describe(\"The operation status (scheduling, running, finished, failed, error, cancelling, cancelled, skipped)\").nullable().optional(),\n branch_id: z.string().describe(\"The branch ID\").nullable().optional(),\n created_at: z.string().describe(\"When the operation was created (ISO 8601 format)\").nullable().optional(),\n project_id: z.string().describe(\"The Neon project ID\").nullable().optional(),\n updated_at: z.string().describe(\"When the operation status was last updated (ISO 8601 format)\").nullable().optional(),\n endpoint_id: z.string().describe(\"The compute endpoint ID affected by the operation\").nullable().optional(),\n failures_count: z.number().int().describe(\"Number of times the operation has failed\").nullable().optional(),\n total_duration_ms: z.number().int().describe(\"Total duration of the operation in milliseconds\").nullable().optional(),\n}).describe(\"Information about an operation triggered by the password reset\");\nconst NeonResetRolePasswordForBranch_ResetRolePasswordDataSchema = z.object({\n role: NeonResetRolePasswordForBranch_RoleInfoSchema.nullable().optional(),\n operations: z.array(NeonResetRolePasswordForBranch_OperationInfoSchema).describe(\"List of operations triggered by the password reset. The new password is ready to use when all operations finish.\").nullable().optional(),\n}).describe(\"Data returned from the password reset operation\");\nexport const NeonResetRolePasswordForBranchOutput = z.object({\n data: z.union([NeonResetRolePasswordForBranch_ResetRolePasswordDataSchema, z.record(z.string(), z.unknown())]).nullable().optional(),\n}).describe(\"Response schema for `ResetRolePasswordForBranch`\");\n\nexport const neonResetRolePasswordForBranch = action(\"NEON_RESET_ROLE_PASSWORD_FOR_BRANCH\", {\n slug: \"neon-reset-role-password-for-branch\",\n name: \"Reset role password for branch\",\n description: \"Resets the password for a PostgreSQL role on a specific Neon branch and generates a new password. Use this when credentials need to be rotated for security purposes (e.g., employee offboarding, suspected compromise, or routine security practices). The response includes the new password - store it securely as it cannot be retrieved later. The new password becomes active once the triggered 'apply_config' operation completes; the old password remains valid until then. Note: This is a destructive operation that invalidates the current password.\",\n input: NeonResetRolePasswordForBranchInput,\n output: NeonResetRolePasswordForBranchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsC,EAAE,OAAO;CAC1D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;CACtG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG;CACrI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;AACpF,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,gDAAgD,EAAE,OAAO;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnI,CAAC,CAAC,CAAC,SAAS,0DAA0D;
|
|
1
|
+
{"version":3,"file":"reset-role-password-for-branch.mjs","names":[],"sources":["../../src/actions/reset-role-password-for-branch.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeonResetRolePasswordForBranchInput = z.object({\n branch_id: z.string().describe(\"The branch ID where the role exists (e.g., 'br-lucky-water-afkw1lov')\"),\n role_name: z.string().describe(\"The name of the database role whose password should be reset (e.g., 'neondb_owner', 'authenticator')\"),\n project_id: z.string().describe(\"The Neon project ID (e.g., 'dry-smoke-26258271')\"),\n}).describe(\"Request schema for `ResetRolePasswordForBranch`\");\nconst NeonResetRolePasswordForBranch_RoleInfoSchema = z.object({\n name: z.string().describe(\"The name of the role\").nullable().optional(),\n password: z.string().describe(\"The new password generated for the role. Store this securely as it will not be shown again.\").nullable().optional(),\n branch_id: z.string().describe(\"The branch ID where the role exists\").nullable().optional(),\n protected: z.boolean().describe(\"Whether the role is protected from deletion\").nullable().optional(),\n created_at: z.string().describe(\"When the role was created (ISO 8601 format)\").nullable().optional(),\n updated_at: z.string().describe(\"When the role was last updated (ISO 8601 format)\").nullable().optional(),\n authentication_method: z.string().describe(\"The authentication method used for the role (e.g., 'password')\").nullable().optional(),\n}).passthrough().describe(\"Information about the database role after password reset\");\nconst NeonResetRolePasswordForBranch_OperationInfoSchema = z.object({\n id: z.string().describe(\"The unique operation ID (UUID)\").nullable().optional(),\n action: z.string().describe(\"The action performed (e.g., 'apply_config')\").nullable().optional(),\n status: z.string().describe(\"The operation status (scheduling, running, finished, failed, error, cancelling, cancelled, skipped)\").nullable().optional(),\n branch_id: z.string().describe(\"The branch ID\").nullable().optional(),\n created_at: z.string().describe(\"When the operation was created (ISO 8601 format)\").nullable().optional(),\n project_id: z.string().describe(\"The Neon project ID\").nullable().optional(),\n updated_at: z.string().describe(\"When the operation status was last updated (ISO 8601 format)\").nullable().optional(),\n endpoint_id: z.string().describe(\"The compute endpoint ID affected by the operation\").nullable().optional(),\n failures_count: z.number().int().describe(\"Number of times the operation has failed\").nullable().optional(),\n total_duration_ms: z.number().int().describe(\"Total duration of the operation in milliseconds\").nullable().optional(),\n}).passthrough().describe(\"Information about an operation triggered by the password reset\");\nconst NeonResetRolePasswordForBranch_ResetRolePasswordDataSchema = z.object({\n role: NeonResetRolePasswordForBranch_RoleInfoSchema.nullable().optional(),\n operations: z.array(NeonResetRolePasswordForBranch_OperationInfoSchema).describe(\"List of operations triggered by the password reset. The new password is ready to use when all operations finish.\").nullable().optional(),\n}).passthrough().describe(\"Data returned from the password reset operation\");\nexport const NeonResetRolePasswordForBranchOutput = z.object({\n data: z.union([NeonResetRolePasswordForBranch_ResetRolePasswordDataSchema, z.record(z.string(), z.unknown())]).nullable().optional(),\n}).passthrough().describe(\"Response schema for `ResetRolePasswordForBranch`\");\n\nexport const neonResetRolePasswordForBranch = action(\"NEON_RESET_ROLE_PASSWORD_FOR_BRANCH\", {\n slug: \"neon-reset-role-password-for-branch\",\n name: \"Reset role password for branch\",\n description: \"Resets the password for a PostgreSQL role on a specific Neon branch and generates a new password. Use this when credentials need to be rotated for security purposes (e.g., employee offboarding, suspected compromise, or routine security practices). The response includes the new password - store it securely as it cannot be retrieved later. The new password becomes active once the triggered 'apply_config' operation completes; the old password remains valid until then. Note: This is a destructive operation that invalidates the current password.\",\n input: NeonResetRolePasswordForBranchInput,\n output: NeonResetRolePasswordForBranchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsC,EAAE,OAAO;CAC1D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;CACtG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG;CACrI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;AACpF,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,gDAAgD,EAAE,OAAO;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS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AS,kHAAkH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3N,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAK3E,MAAa,iCAAiC,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkD,EAAE,OAAO,EAC3D,MAAM,EAAE,MAAM,CAAC,4DAA4D,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACrI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
|
|
@@ -37,7 +37,7 @@ const NeonRestartProjectEndpoint_RestartProjectEndpointResponseDataSchema = zod.
|
|
|
37
37
|
endpoint: NeonRestartProjectEndpoint_EndpointDetailsSchema.nullable(),
|
|
38
38
|
operations: zod.z.array(NeonRestartProjectEndpoint_EndpointOperationSchema).describe("List of operations triggered by the restart (typically 'suspend_compute' followed by 'start_compute')").nullable().optional()
|
|
39
39
|
}).passthrough().describe("Response data for restart endpoint operation.");
|
|
40
|
-
const NeonRestartProjectEndpointOutput = zod.z.object({ data: NeonRestartProjectEndpoint_RestartProjectEndpointResponseDataSchema.nullable() }).describe("Response schema for `RestartProjectEndpoint`");
|
|
40
|
+
const NeonRestartProjectEndpointOutput = zod.z.object({ data: NeonRestartProjectEndpoint_RestartProjectEndpointResponseDataSchema.nullable() }).passthrough().describe("Response schema for `RestartProjectEndpoint`");
|
|
41
41
|
const neonRestartProjectEndpoint = require_action.action("NEON_RESTART_PROJECT_ENDPOINT", {
|
|
42
42
|
slug: "neon-restart-project-endpoint",
|
|
43
43
|
name: "Restart project endpoint",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restart-project-endpoint.cjs","names":["z","action"],"sources":["../../src/actions/restart-project-endpoint.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeonRestartProjectEndpointInput = z.object({\n project_id: z.string().describe(\"The Neon project ID (e.g., 'dry-smoke-26258271'). Can be obtained from list projects API.\"),\n endpoint_id: z.string().describe(\"The Neon compute endpoint ID to restart (e.g., 'ep-patient-morning-afvkyj5f'). Can be obtained from list project endpoints API.\"),\n}).describe(\"Request schema for `RestartProjectEndpoint`\");\nconst NeonRestartProjectEndpoint_EndpointDetailsSchema = z.object({\n id: z.string().describe(\"Endpoint ID\").nullable(),\n host: z.string().describe(\"Endpoint host URL\").nullable(),\n type: z.string().describe(\"Endpoint type (e.g., 'read_write')\").nullable(),\n disabled: z.boolean().default(false).describe(\"Whether endpoint is disabled\").nullable().optional(),\n branch_id: z.string().describe(\"Branch ID\").nullable(),\n region_id: z.string().describe(\"AWS region (e.g., 'aws-us-west-2')\").nullable(),\n created_at: z.string().describe(\"Endpoint creation timestamp\").nullable(),\n project_id: z.string().describe(\"Project ID\").nullable(),\n updated_at: z.string().describe(\"Endpoint last update timestamp\").nullable(),\n pooler_mode: z.string().default(\"transaction\").describe(\"Connection pooler mode\").nullable().optional(),\n current_state: z.string().describe(\"Current endpoint state (e.g., 'active', 'idle')\").nullable(),\n pending_state: z.string().describe(\"Pending state during transitions\").nullable().optional(),\n pooler_enabled: z.boolean().default(false).describe(\"Whether connection pooler is enabled\").nullable().optional(),\n autoscaling_limit_max_cu: z.number().describe(\"Maximum compute units for autoscaling\").nullable(),\n autoscaling_limit_min_cu: z.number().describe(\"Minimum compute units for autoscaling\").nullable(),\n}).passthrough().describe(\"Schema for endpoint details returned after restart.\");\nconst NeonRestartProjectEndpoint_EndpointOperationSchema = z.object({\n id: z.string().describe(\"Unique operation ID\").nullable(),\n action: z.string().describe(\"Operation action type (e.g., 'suspend_compute', 'start_compute')\").nullable(),\n status: z.string().describe(\"Operation status (e.g., 'running', 'scheduling', 'finished')\").nullable(),\n branch_id: z.string().describe(\"Branch ID\").nullable(),\n created_at: z.string().describe(\"Operation creation timestamp\").nullable(),\n project_id: z.string().describe(\"Project ID\").nullable(),\n updated_at: z.string().describe(\"Operation last update timestamp\").nullable(),\n endpoint_id: z.string().describe(\"Endpoint ID\").nullable(),\n failures_count: z.number().int().default(0).describe(\"Number of failures\").nullable().optional(),\n}).passthrough().describe(\"Schema for an operation triggered by the restart.\");\nconst NeonRestartProjectEndpoint_RestartProjectEndpointResponseDataSchema = z.object({\n endpoint: NeonRestartProjectEndpoint_EndpointDetailsSchema.nullable(),\n operations: z.array(NeonRestartProjectEndpoint_EndpointOperationSchema).describe(\"List of operations triggered by the restart (typically 'suspend_compute' followed by 'start_compute')\").nullable().optional(),\n}).passthrough().describe(\"Response data for restart endpoint operation.\");\nexport const NeonRestartProjectEndpointOutput = z.object({\n data: NeonRestartProjectEndpoint_RestartProjectEndpointResponseDataSchema.nullable(),\n}).describe(\"Response schema for `RestartProjectEndpoint`\");\n\nexport const neonRestartProjectEndpoint = action(\"NEON_RESTART_PROJECT_ENDPOINT\", {\n slug: \"neon-restart-project-endpoint\",\n name: \"Restart project endpoint\",\n description: \"Restarts a Neon compute endpoint (Postgres instance) within a project. The restart operation suspends and then starts the compute endpoint, which is useful for: - Applying configuration changes - Clearing cached data or connections - Troubleshooting connection or performance issues - Recovering from error states The operation triggers two sequential actions: 'suspend_compute' followed by 'start_compute'. During restart, the endpoint will be briefly unavailable. The response includes the updated endpoint details and the operations triggered. Note: If the endpoint is in a 'locked' state (HTTP 423) due to an ongoing operation, wait for it to complete before retrying. If the endpoint is 'idle', it will be started directly without suspension.\",\n input: NeonRestartProjectEndpointInput,\n output: NeonRestartProjectEndpointOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;CAC3H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;AACpK,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,mDAAmDA,IAAAA,EAAE,O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AAmCA,IAAAA,EAAE,OAAO,EACvD,MAAM,oEAAoE,SAAS,EACrF,CAAC,CAAC,CAAC,SAAS,8CAA8C;
|
|
1
|
+
{"version":3,"file":"restart-project-endpoint.cjs","names":["z","action"],"sources":["../../src/actions/restart-project-endpoint.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeonRestartProjectEndpointInput = z.object({\n project_id: z.string().describe(\"The Neon project ID (e.g., 'dry-smoke-26258271'). Can be obtained from list projects API.\"),\n endpoint_id: z.string().describe(\"The Neon compute endpoint ID to restart (e.g., 'ep-patient-morning-afvkyj5f'). Can be obtained from list project endpoints API.\"),\n}).describe(\"Request schema for `RestartProjectEndpoint`\");\nconst NeonRestartProjectEndpoint_EndpointDetailsSchema = z.object({\n id: z.string().describe(\"Endpoint ID\").nullable(),\n host: z.string().describe(\"Endpoint host URL\").nullable(),\n type: z.string().describe(\"Endpoint type (e.g., 'read_write')\").nullable(),\n disabled: z.boolean().default(false).describe(\"Whether endpoint is disabled\").nullable().optional(),\n branch_id: z.string().describe(\"Branch ID\").nullable(),\n region_id: z.string().describe(\"AWS region (e.g., 'aws-us-west-2')\").nullable(),\n created_at: z.string().describe(\"Endpoint creation timestamp\").nullable(),\n project_id: z.string().describe(\"Project ID\").nullable(),\n updated_at: z.string().describe(\"Endpoint last update timestamp\").nullable(),\n pooler_mode: z.string().default(\"transaction\").describe(\"Connection pooler mode\").nullable().optional(),\n current_state: z.string().describe(\"Current endpoint state (e.g., 'active', 'idle')\").nullable(),\n pending_state: z.string().describe(\"Pending state during transitions\").nullable().optional(),\n pooler_enabled: z.boolean().default(false).describe(\"Whether connection pooler is enabled\").nullable().optional(),\n autoscaling_limit_max_cu: z.number().describe(\"Maximum compute units for autoscaling\").nullable(),\n autoscaling_limit_min_cu: z.number().describe(\"Minimum compute units for autoscaling\").nullable(),\n}).passthrough().describe(\"Schema for endpoint details returned after restart.\");\nconst NeonRestartProjectEndpoint_EndpointOperationSchema = z.object({\n id: z.string().describe(\"Unique operation ID\").nullable(),\n action: z.string().describe(\"Operation action type (e.g., 'suspend_compute', 'start_compute')\").nullable(),\n status: z.string().describe(\"Operation status (e.g., 'running', 'scheduling', 'finished')\").nullable(),\n branch_id: z.string().describe(\"Branch ID\").nullable(),\n created_at: z.string().describe(\"Operation creation timestamp\").nullable(),\n project_id: z.string().describe(\"Project ID\").nullable(),\n updated_at: z.string().describe(\"Operation last update timestamp\").nullable(),\n endpoint_id: z.string().describe(\"Endpoint ID\").nullable(),\n failures_count: z.number().int().default(0).describe(\"Number of failures\").nullable().optional(),\n}).passthrough().describe(\"Schema for an operation triggered by the restart.\");\nconst NeonRestartProjectEndpoint_RestartProjectEndpointResponseDataSchema = z.object({\n endpoint: NeonRestartProjectEndpoint_EndpointDetailsSchema.nullable(),\n operations: z.array(NeonRestartProjectEndpoint_EndpointOperationSchema).describe(\"List of operations triggered by the restart (typically 'suspend_compute' followed by 'start_compute')\").nullable().optional(),\n}).passthrough().describe(\"Response data for restart endpoint operation.\");\nexport const NeonRestartProjectEndpointOutput = z.object({\n data: NeonRestartProjectEndpoint_RestartProjectEndpointResponseDataSchema.nullable(),\n}).passthrough().describe(\"Response schema for `RestartProjectEndpoint`\");\n\nexport const neonRestartProjectEndpoint = action(\"NEON_RESTART_PROJECT_ENDPOINT\", {\n slug: \"neon-restart-project-endpoint\",\n name: \"Restart project endpoint\",\n description: \"Restarts a Neon compute endpoint (Postgres instance) within a project. The restart operation suspends and then starts the compute endpoint, which is useful for: - Applying configuration changes - Clearing cached data or connections - Troubleshooting connection or performance issues - Recovering from error states The operation triggers two sequential actions: 'suspend_compute' followed by 'start_compute'. During restart, the endpoint will be briefly unavailable. The response includes the updated endpoint details and the operations triggered. Note: If the endpoint is in a 'locked' state (HTTP 423) due to an ongoing operation, wait for it to complete before retrying. If the endpoint is 'idle', it will be started directly without suspension.\",\n input: NeonRestartProjectEndpointInput,\n output: NeonRestartProjectEndpointOutput,\n});\n"],"mappings":";;;AAI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,sEAAsEA,IAAAA,EAAE,OAAO;CACnF,UAAU,iDAAiD,SAAS;CACpE,YAAYA,IAAAA,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChN,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AACzE,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,MAAM,oEAAoE,SAAS,EACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -36,7 +36,7 @@ declare const NeonRestartProjectEndpointOutput: z.ZodObject<{
|
|
|
36
36
|
failures_count: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
37
37
|
}, z.core.$loose>>>>;
|
|
38
38
|
}, z.core.$loose>>;
|
|
39
|
-
}, z.core.$
|
|
39
|
+
}, z.core.$loose>;
|
|
40
40
|
declare const neonRestartProjectEndpoint: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
41
41
|
project_id: string;
|
|
42
42
|
endpoint_id: string;
|
|
@@ -36,7 +36,7 @@ declare const NeonRestartProjectEndpointOutput: z.ZodObject<{
|
|
|
36
36
|
failures_count: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
37
37
|
}, z.core.$loose>>>>;
|
|
38
38
|
}, z.core.$loose>>;
|
|
39
|
-
}, z.core.$
|
|
39
|
+
}, z.core.$loose>;
|
|
40
40
|
declare const neonRestartProjectEndpoint: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
41
41
|
project_id: string;
|
|
42
42
|
endpoint_id: string;
|
|
@@ -42,7 +42,7 @@ const neonRestartProjectEndpoint = action("NEON_RESTART_PROJECT_ENDPOINT", {
|
|
|
42
42
|
name: "Restart project endpoint",
|
|
43
43
|
description: "Restarts a Neon compute endpoint (Postgres instance) within a project. The restart operation suspends and then starts the compute endpoint, which is useful for: - Applying configuration changes - Clearing cached data or connections - Troubleshooting connection or performance issues - Recovering from error states The operation triggers two sequential actions: 'suspend_compute' followed by 'start_compute'. During restart, the endpoint will be briefly unavailable. The response includes the updated endpoint details and the operations triggered. Note: If the endpoint is in a 'locked' state (HTTP 423) due to an ongoing operation, wait for it to complete before retrying. If the endpoint is 'idle', it will be started directly without suspension.",
|
|
44
44
|
input: NeonRestartProjectEndpointInput,
|
|
45
|
-
output: z.object({ data: NeonRestartProjectEndpoint_RestartProjectEndpointResponseDataSchema.nullable() }).describe("Response schema for `RestartProjectEndpoint`")
|
|
45
|
+
output: z.object({ data: NeonRestartProjectEndpoint_RestartProjectEndpointResponseDataSchema.nullable() }).passthrough().describe("Response schema for `RestartProjectEndpoint`")
|
|
46
46
|
});
|
|
47
47
|
//#endregion
|
|
48
48
|
export { neonRestartProjectEndpoint };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restart-project-endpoint.mjs","names":[],"sources":["../../src/actions/restart-project-endpoint.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeonRestartProjectEndpointInput = z.object({\n project_id: z.string().describe(\"The Neon project ID (e.g., 'dry-smoke-26258271'). Can be obtained from list projects API.\"),\n endpoint_id: z.string().describe(\"The Neon compute endpoint ID to restart (e.g., 'ep-patient-morning-afvkyj5f'). Can be obtained from list project endpoints API.\"),\n}).describe(\"Request schema for `RestartProjectEndpoint`\");\nconst NeonRestartProjectEndpoint_EndpointDetailsSchema = z.object({\n id: z.string().describe(\"Endpoint ID\").nullable(),\n host: z.string().describe(\"Endpoint host URL\").nullable(),\n type: z.string().describe(\"Endpoint type (e.g., 'read_write')\").nullable(),\n disabled: z.boolean().default(false).describe(\"Whether endpoint is disabled\").nullable().optional(),\n branch_id: z.string().describe(\"Branch ID\").nullable(),\n region_id: z.string().describe(\"AWS region (e.g., 'aws-us-west-2')\").nullable(),\n created_at: z.string().describe(\"Endpoint creation timestamp\").nullable(),\n project_id: z.string().describe(\"Project ID\").nullable(),\n updated_at: z.string().describe(\"Endpoint last update timestamp\").nullable(),\n pooler_mode: z.string().default(\"transaction\").describe(\"Connection pooler mode\").nullable().optional(),\n current_state: z.string().describe(\"Current endpoint state (e.g., 'active', 'idle')\").nullable(),\n pending_state: z.string().describe(\"Pending state during transitions\").nullable().optional(),\n pooler_enabled: z.boolean().default(false).describe(\"Whether connection pooler is enabled\").nullable().optional(),\n autoscaling_limit_max_cu: z.number().describe(\"Maximum compute units for autoscaling\").nullable(),\n autoscaling_limit_min_cu: z.number().describe(\"Minimum compute units for autoscaling\").nullable(),\n}).passthrough().describe(\"Schema for endpoint details returned after restart.\");\nconst NeonRestartProjectEndpoint_EndpointOperationSchema = z.object({\n id: z.string().describe(\"Unique operation ID\").nullable(),\n action: z.string().describe(\"Operation action type (e.g., 'suspend_compute', 'start_compute')\").nullable(),\n status: z.string().describe(\"Operation status (e.g., 'running', 'scheduling', 'finished')\").nullable(),\n branch_id: z.string().describe(\"Branch ID\").nullable(),\n created_at: z.string().describe(\"Operation creation timestamp\").nullable(),\n project_id: z.string().describe(\"Project ID\").nullable(),\n updated_at: z.string().describe(\"Operation last update timestamp\").nullable(),\n endpoint_id: z.string().describe(\"Endpoint ID\").nullable(),\n failures_count: z.number().int().default(0).describe(\"Number of failures\").nullable().optional(),\n}).passthrough().describe(\"Schema for an operation triggered by the restart.\");\nconst NeonRestartProjectEndpoint_RestartProjectEndpointResponseDataSchema = z.object({\n endpoint: NeonRestartProjectEndpoint_EndpointDetailsSchema.nullable(),\n operations: z.array(NeonRestartProjectEndpoint_EndpointOperationSchema).describe(\"List of operations triggered by the restart (typically 'suspend_compute' followed by 'start_compute')\").nullable().optional(),\n}).passthrough().describe(\"Response data for restart endpoint operation.\");\nexport const NeonRestartProjectEndpointOutput = z.object({\n data: NeonRestartProjectEndpoint_RestartProjectEndpointResponseDataSchema.nullable(),\n}).describe(\"Response schema for `RestartProjectEndpoint`\");\n\nexport const neonRestartProjectEndpoint = action(\"NEON_RESTART_PROJECT_ENDPOINT\", {\n slug: \"neon-restart-project-endpoint\",\n name: \"Restart project endpoint\",\n description: \"Restarts a Neon compute endpoint (Postgres instance) within a project. The restart operation suspends and then starts the compute endpoint, which is useful for: - Applying configuration changes - Clearing cached data or connections - Troubleshooting connection or performance issues - Recovering from error states The operation triggers two sequential actions: 'suspend_compute' followed by 'start_compute'. During restart, the endpoint will be briefly unavailable. The response includes the updated endpoint details and the operations triggered. Note: If the endpoint is in a 'locked' state (HTTP 423) due to an ongoing operation, wait for it to complete before retrying. If the endpoint is 'idle', it will be started directly without suspension.\",\n input: NeonRestartProjectEndpointInput,\n output: NeonRestartProjectEndpointOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;CAC3H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;AACpK,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,mDAAmD,EAAE,OAAO;CAChE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACzE,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;CACrD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC9E,YAAY,EAAE,OAAO,CAAC,CAAC,SA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S,iCAAiC,CAAC,CAAC,SAAS;CAC5E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CACzD,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAM,sEAAsE,EAAE,OAAO;CACnF,UAAU,iDAAiD,SAAS;CACpE,YAAY,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChN,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAKzE,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT8C,EAAE,OAAO,EACvD,MAAM,oEAAoE,SAAS,EACrF,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"restart-project-endpoint.mjs","names":[],"sources":["../../src/actions/restart-project-endpoint.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeonRestartProjectEndpointInput = z.object({\n project_id: z.string().describe(\"The Neon project ID (e.g., 'dry-smoke-26258271'). Can be obtained from list projects API.\"),\n endpoint_id: z.string().describe(\"The Neon compute endpoint ID to restart (e.g., 'ep-patient-morning-afvkyj5f'). Can be obtained from list project endpoints API.\"),\n}).describe(\"Request schema for `RestartProjectEndpoint`\");\nconst NeonRestartProjectEndpoint_EndpointDetailsSchema = z.object({\n id: z.string().describe(\"Endpoint ID\").nullable(),\n host: z.string().describe(\"Endpoint host URL\").nullable(),\n type: z.string().describe(\"Endpoint type (e.g., 'read_write')\").nullable(),\n disabled: z.boolean().default(false).describe(\"Whether endpoint is disabled\").nullable().optional(),\n branch_id: z.string().describe(\"Branch ID\").nullable(),\n region_id: z.string().describe(\"AWS region (e.g., 'aws-us-west-2')\").nullable(),\n created_at: z.string().describe(\"Endpoint creation timestamp\").nullable(),\n project_id: z.string().describe(\"Project ID\").nullable(),\n updated_at: z.string().describe(\"Endpoint last update timestamp\").nullable(),\n pooler_mode: z.string().default(\"transaction\").describe(\"Connection pooler mode\").nullable().optional(),\n current_state: z.string().describe(\"Current endpoint state (e.g., 'active', 'idle')\").nullable(),\n pending_state: z.string().describe(\"Pending state during transitions\").nullable().optional(),\n pooler_enabled: z.boolean().default(false).describe(\"Whether connection pooler is enabled\").nullable().optional(),\n autoscaling_limit_max_cu: z.number().describe(\"Maximum compute units for autoscaling\").nullable(),\n autoscaling_limit_min_cu: z.number().describe(\"Minimum compute units for autoscaling\").nullable(),\n}).passthrough().describe(\"Schema for endpoint details returned after restart.\");\nconst NeonRestartProjectEndpoint_EndpointOperationSchema = z.object({\n id: z.string().describe(\"Unique operation ID\").nullable(),\n action: z.string().describe(\"Operation action type (e.g., 'suspend_compute', 'start_compute')\").nullable(),\n status: z.string().describe(\"Operation status (e.g., 'running', 'scheduling', 'finished')\").nullable(),\n branch_id: z.string().describe(\"Branch ID\").nullable(),\n created_at: z.string().describe(\"Operation creation timestamp\").nullable(),\n project_id: z.string().describe(\"Project ID\").nullable(),\n updated_at: z.string().describe(\"Operation last update timestamp\").nullable(),\n endpoint_id: z.string().describe(\"Endpoint ID\").nullable(),\n failures_count: z.number().int().default(0).describe(\"Number of failures\").nullable().optional(),\n}).passthrough().describe(\"Schema for an operation triggered by the restart.\");\nconst NeonRestartProjectEndpoint_RestartProjectEndpointResponseDataSchema = z.object({\n endpoint: NeonRestartProjectEndpoint_EndpointDetailsSchema.nullable(),\n operations: z.array(NeonRestartProjectEndpoint_EndpointOperationSchema).describe(\"List of operations triggered by the restart (typically 'suspend_compute' followed by 'start_compute')\").nullable().optional(),\n}).passthrough().describe(\"Response data for restart endpoint operation.\");\nexport const NeonRestartProjectEndpointOutput = z.object({\n data: NeonRestartProjectEndpoint_RestartProjectEndpointResponseDataSchema.nullable(),\n}).passthrough().describe(\"Response schema for `RestartProjectEndpoint`\");\n\nexport const neonRestartProjectEndpoint = action(\"NEON_RESTART_PROJECT_ENDPOINT\", {\n slug: \"neon-restart-project-endpoint\",\n name: \"Restart project endpoint\",\n description: \"Restarts a Neon compute endpoint (Postgres instance) within a project. The restart operation suspends and then starts the compute endpoint, which is useful for: - Applying configuration changes - Clearing cached data or connections - Troubleshooting connection or performance issues - Recovering from error states The operation triggers two sequential actions: 'suspend_compute' followed by 'start_compute'. During restart, the endpoint will be briefly unavailable. The response includes the updated endpoint details and the operations triggered. Note: If the endpoint is in a 'locked' state (HTTP 423) due to an ongoing operation, wait for it to complete before retrying. If the endpoint is 'idle', it will be started directly without suspension.\",\n input: NeonRestartProjectEndpointInput,\n output: NeonRestartProjectEndpointOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;CAC3H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;AACpK,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,mDAAmD,EAAE,OAAO;CAChE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACzE,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;CACrD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC9E,YAAY,EAA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,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC5E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CACzD,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAM,sEAAsE,EAAE,OAAO;CACnF,UAAU,iDAAiD,SAAS;CACpE,YAAY,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChN,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAKzE,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT8C,EAAE,OAAO,EACvD,MAAM,oEAAoE,SAAS,EACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
|
|
@@ -33,7 +33,7 @@ const NeonRestoreProjectBranch_BranchInfoSchema = zod.z.object({
|
|
|
33
33
|
active_time_seconds: zod.z.number().int().describe("Active time in seconds.").nullable().optional(),
|
|
34
34
|
data_transfer_bytes: zod.z.number().int().describe("Data transferred in bytes.").nullable().optional(),
|
|
35
35
|
compute_time_seconds: zod.z.number().int().describe("Compute time in seconds.").nullable().optional()
|
|
36
|
-
}).describe("Branch information returned after restore operation.");
|
|
36
|
+
}).passthrough().describe("Branch information returned after restore operation.");
|
|
37
37
|
const NeonRestoreProjectBranch_OperationInfoSchema = zod.z.object({
|
|
38
38
|
id: zod.z.string().describe("The unique identifier of the operation.").nullable(),
|
|
39
39
|
action: zod.z.string().describe("The type of action (e.g., 'create_branch', 'suspend_compute').").nullable(),
|
|
@@ -45,11 +45,11 @@ const NeonRestoreProjectBranch_OperationInfoSchema = zod.z.object({
|
|
|
45
45
|
endpoint_id: zod.z.string().describe("The endpoint ID if applicable.").nullable().optional(),
|
|
46
46
|
failures_count: zod.z.number().int().describe("Number of operation failures.").nullable().optional(),
|
|
47
47
|
total_duration_ms: zod.z.number().int().describe("Total duration in milliseconds.").nullable().optional()
|
|
48
|
-
}).describe("Information about an operation triggered by the restore.");
|
|
48
|
+
}).passthrough().describe("Information about an operation triggered by the restore.");
|
|
49
49
|
const NeonRestoreProjectBranchOutput = zod.z.object({
|
|
50
50
|
branch: NeonRestoreProjectBranch_BranchInfoSchema.nullable().optional(),
|
|
51
51
|
operations: zod.z.array(NeonRestoreProjectBranch_OperationInfoSchema).describe("List of operations triggered by the restore (e.g., create_branch, suspend_compute).").nullable().optional()
|
|
52
|
-
}).describe("Response schema for `RestoreProjectBranch`");
|
|
52
|
+
}).passthrough().describe("Response schema for `RestoreProjectBranch`");
|
|
53
53
|
const neonRestoreProjectBranch = require_action.action("NEON_RESTORE_PROJECT_BRANCH", {
|
|
54
54
|
slug: "neon-restore-project-branch",
|
|
55
55
|
name: "Restore project branch",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restore-project-branch.cjs","names":["z","action"],"sources":["../../src/actions/restore-project-branch.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeonRestoreProjectBranchInput = z.object({\n branch_id: z.string().describe(\"The ID of the branch to restore (the target branch that will receive the restored data).\"),\n project_id: z.string().describe(\"The Neon project ID containing the branch to restore.\"),\n source_lsn: z.string().describe(\"A Log Sequence Number (LSN) on the source branch. The branch will be restored with data from this LSN. Format example: '0/19A3328'.\").optional(),\n source_branch_id: z.string().describe(\"The branch_id of the restore source branch. If source_timestamp and source_lsn are omitted, the branch will be restored to head. If source_branch_id is equal to the branch's id (self-restoration), source_timestamp or source_lsn is required.\"),\n source_timestamp: z.string().describe(\"A timestamp identifying a point in time on the source branch. The branch will be restored with data starting from this point in time. The timestamp must be provided in ISO 8601 format; for example: '2024-02-26T12:00:00Z'.\").optional(),\n preserve_under_name: z.string().describe(\"If provided, the previous state of the branch will be saved to a new branch with this name. Required if the branch has children or if source_branch_id equals the branch id (self-restoration). All existing child branches will be moved to the newly created branch under this name.\").optional(),\n}).describe(\"Request schema for `RestoreProjectBranch`\");\nconst NeonRestoreProjectBranch_BranchInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the branch.\").nullable(),\n name: z.string().describe(\"The name of the branch.\").nullable(),\n \"default\": z.boolean().describe(\"Whether this is the default branch.\").nullable(),\n primary: z.boolean().describe(\"Whether this is the primary branch.\").nullable(),\n parent_id: z.string().describe(\"The parent branch ID, if any.\").nullable().optional(),\n protected: z.boolean().describe(\"Whether this branch is protected.\").nullable(),\n created_at: z.string().describe(\"When the branch was created (ISO 8601 format).\").nullable(),\n parent_lsn: z.string().describe(\"The parent branch LSN.\").nullable().optional(),\n project_id: z.string().describe(\"The project ID this branch belongs to.\").nullable(),\n updated_at: z.string().describe(\"When the branch was last updated (ISO 8601 format).\").nullable(),\n init_source: z.string().describe(\"Initialization source (e.g., 'parent-data').\").nullable().optional(),\n cpu_used_sec: z.number().int().describe(\"CPU time used in seconds.\").nullable().optional(),\n logical_size: z.number().int().describe(\"Logical size in bytes.\").nullable().optional(),\n current_state: z.string().describe(\"The current state of the branch (e.g., 'ready', 'resetting').\").nullable(),\n last_reset_at: z.string().describe(\"When the branch was last reset/restored.\").nullable().optional(),\n pending_state: z.string().describe(\"The pending state during transitions.\").nullable().optional(),\n creation_source: z.string().describe(\"Source of branch creation (e.g., 'console').\").nullable().optional(),\n parent_timestamp: z.string().describe(\"The parent branch timestamp.\").nullable().optional(),\n state_changed_at: z.string().describe(\"When the state last changed (ISO 8601 format).\").nullable().optional(),\n written_data_bytes: z.number().int().describe(\"Written data in bytes.\").nullable().optional(),\n active_time_seconds: z.number().int().describe(\"Active time in seconds.\").nullable().optional(),\n data_transfer_bytes: z.number().int().describe(\"Data transferred in bytes.\").nullable().optional(),\n compute_time_seconds: z.number().int().describe(\"Compute time in seconds.\").nullable().optional(),\n}).describe(\"Branch information returned after restore operation.\");\nconst NeonRestoreProjectBranch_OperationInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the operation.\").nullable(),\n action: z.string().describe(\"The type of action (e.g., 'create_branch', 'suspend_compute').\").nullable(),\n status: z.string().describe(\"The status of the operation (e.g., 'running', 'scheduling').\").nullable(),\n branch_id: z.string().describe(\"The branch ID this operation affects.\").nullable(),\n created_at: z.string().describe(\"When the operation was created.\").nullable(),\n project_id: z.string().describe(\"The project ID this operation belongs to.\").nullable(),\n updated_at: z.string().describe(\"When the operation was last updated.\").nullable(),\n endpoint_id: z.string().describe(\"The endpoint ID if applicable.\").nullable().optional(),\n failures_count: z.number().int().describe(\"Number of operation failures.\").nullable().optional(),\n total_duration_ms: z.number().int().describe(\"Total duration in milliseconds.\").nullable().optional(),\n}).describe(\"Information about an operation triggered by the restore.\");\nexport const NeonRestoreProjectBranchOutput = z.object({\n branch: NeonRestoreProjectBranch_BranchInfoSchema.nullable().optional(),\n operations: z.array(NeonRestoreProjectBranch_OperationInfoSchema).describe(\"List of operations triggered by the restore (e.g., create_branch, suspend_compute).\").nullable().optional(),\n}).describe(\"Response schema for `RestoreProjectBranch`\");\n\nexport const neonRestoreProjectBranch = action(\"NEON_RESTORE_PROJECT_BRANCH\", {\n slug: \"neon-restore-project-branch\",\n name: \"Restore project branch\",\n description: \"This endpoint restores a branch to a specific state or point in time. Use it to recover data, revert changes, or create new branch states based on historical data. The restoration uses either a Log Sequence Number (LSN) or timestamp from the source branch. Important: For self-restoration or branches with children, use preserve_under_name to save the current state. Note: Restoration time varies based on data volume and restoration point.\",\n input: NeonRestoreProjectBranchInput,\n output: NeonRestoreProjectBranchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0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AC,SAAS,CAAC,CAAC,SAAS;CACjG,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,sDAAsD;
|
|
1
|
+
{"version":3,"file":"restore-project-branch.cjs","names":["z","action"],"sources":["../../src/actions/restore-project-branch.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeonRestoreProjectBranchInput = z.object({\n branch_id: z.string().describe(\"The ID of the branch to restore (the target branch that will receive the restored data).\"),\n project_id: z.string().describe(\"The Neon project ID containing the branch to restore.\"),\n source_lsn: z.string().describe(\"A Log Sequence Number (LSN) on the source branch. The branch will be restored with data from this LSN. Format example: '0/19A3328'.\").optional(),\n source_branch_id: z.string().describe(\"The branch_id of the restore source branch. If source_timestamp and source_lsn are omitted, the branch will be restored to head. If source_branch_id is equal to the branch's id (self-restoration), source_timestamp or source_lsn is required.\"),\n source_timestamp: z.string().describe(\"A timestamp identifying a point in time on the source branch. The branch will be restored with data starting from this point in time. The timestamp must be provided in ISO 8601 format; for example: '2024-02-26T12:00:00Z'.\").optional(),\n preserve_under_name: z.string().describe(\"If provided, the previous state of the branch will be saved to a new branch with this name. Required if the branch has children or if source_branch_id equals the branch id (self-restoration). All existing child branches will be moved to the newly created branch under this name.\").optional(),\n}).describe(\"Request schema for `RestoreProjectBranch`\");\nconst NeonRestoreProjectBranch_BranchInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the branch.\").nullable(),\n name: z.string().describe(\"The name of the branch.\").nullable(),\n \"default\": z.boolean().describe(\"Whether this is the default branch.\").nullable(),\n primary: z.boolean().describe(\"Whether this is the primary branch.\").nullable(),\n parent_id: z.string().describe(\"The parent branch ID, if any.\").nullable().optional(),\n protected: z.boolean().describe(\"Whether this branch is protected.\").nullable(),\n created_at: z.string().describe(\"When the branch was created (ISO 8601 format).\").nullable(),\n parent_lsn: z.string().describe(\"The parent branch LSN.\").nullable().optional(),\n project_id: z.string().describe(\"The project ID this branch belongs to.\").nullable(),\n updated_at: z.string().describe(\"When the branch was last updated (ISO 8601 format).\").nullable(),\n init_source: z.string().describe(\"Initialization source (e.g., 'parent-data').\").nullable().optional(),\n cpu_used_sec: z.number().int().describe(\"CPU time used in seconds.\").nullable().optional(),\n logical_size: z.number().int().describe(\"Logical size in bytes.\").nullable().optional(),\n current_state: z.string().describe(\"The current state of the branch (e.g., 'ready', 'resetting').\").nullable(),\n last_reset_at: z.string().describe(\"When the branch was last reset/restored.\").nullable().optional(),\n pending_state: z.string().describe(\"The pending state during transitions.\").nullable().optional(),\n creation_source: z.string().describe(\"Source of branch creation (e.g., 'console').\").nullable().optional(),\n parent_timestamp: z.string().describe(\"The parent branch timestamp.\").nullable().optional(),\n state_changed_at: z.string().describe(\"When the state last changed (ISO 8601 format).\").nullable().optional(),\n written_data_bytes: z.number().int().describe(\"Written data in bytes.\").nullable().optional(),\n active_time_seconds: z.number().int().describe(\"Active time in seconds.\").nullable().optional(),\n data_transfer_bytes: z.number().int().describe(\"Data transferred in bytes.\").nullable().optional(),\n compute_time_seconds: z.number().int().describe(\"Compute time in seconds.\").nullable().optional(),\n}).passthrough().describe(\"Branch information returned after restore operation.\");\nconst NeonRestoreProjectBranch_OperationInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the operation.\").nullable(),\n action: z.string().describe(\"The type of action (e.g., 'create_branch', 'suspend_compute').\").nullable(),\n status: z.string().describe(\"The status of the operation (e.g., 'running', 'scheduling').\").nullable(),\n branch_id: z.string().describe(\"The branch ID this operation affects.\").nullable(),\n created_at: z.string().describe(\"When the operation was created.\").nullable(),\n project_id: z.string().describe(\"The project ID this operation belongs to.\").nullable(),\n updated_at: z.string().describe(\"When the operation was last updated.\").nullable(),\n endpoint_id: z.string().describe(\"The endpoint ID if applicable.\").nullable().optional(),\n failures_count: z.number().int().describe(\"Number of operation failures.\").nullable().optional(),\n total_duration_ms: z.number().int().describe(\"Total duration in milliseconds.\").nullable().optional(),\n}).passthrough().describe(\"Information about an operation triggered by the restore.\");\nexport const NeonRestoreProjectBranchOutput = z.object({\n branch: NeonRestoreProjectBranch_BranchInfoSchema.nullable().optional(),\n operations: z.array(NeonRestoreProjectBranch_OperationInfoSchema).describe(\"List of operations triggered by the restore (e.g., create_branch, suspend_compute).\").nullable().optional(),\n}).passthrough().describe(\"Response schema for `RestoreProjectBranch`\");\n\nexport const neonRestoreProjectBranch = action(\"NEON_RESTORE_PROJECT_BRANCH\", {\n slug: \"neon-restore-project-branch\",\n name: \"Restore project branch\",\n description: \"This endpoint restores a branch to a specific state or point in time. Use it to recover data, revert changes, or create new branch states based on historical data. The restoration uses either a Log Sequence Number (LSN) or timestamp from the source branch. Important: For self-restoration or branches with children, use preserve_under_name to save the current state. Note: Restoration time varies based on data volume and restoration point.\",\n input: NeonRestoreProjectBranchInput,\n output: NeonRestoreProjectBranchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F;CACzH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS;CAChL,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kPAAkP;CACxR,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+NAA+N,CAAC,CAAC,SAAS;CAChR,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wRAAwR,CAAC,CAAC,SAAS;AAC9U,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACz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uCAAuC,CAAC,CAAC,SAAS;CACjF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AACpF,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,QAAQ,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACtE,YAAYA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -34,7 +34,7 @@ declare const NeonRestoreProjectBranchOutput: z.ZodObject<{
|
|
|
34
34
|
active_time_seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
35
35
|
data_transfer_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
36
36
|
compute_time_seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
37
|
-
}, z.core.$
|
|
37
|
+
}, z.core.$loose>>>;
|
|
38
38
|
operations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
39
39
|
id: z.ZodNullable<z.ZodString>;
|
|
40
40
|
action: z.ZodNullable<z.ZodString>;
|
|
@@ -46,8 +46,8 @@ declare const NeonRestoreProjectBranchOutput: z.ZodObject<{
|
|
|
46
46
|
endpoint_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
47
|
failures_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
48
48
|
total_duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
49
|
-
}, z.core.$
|
|
50
|
-
}, z.core.$
|
|
49
|
+
}, z.core.$loose>>>>;
|
|
50
|
+
}, z.core.$loose>;
|
|
51
51
|
declare const neonRestoreProjectBranch: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
52
52
|
branch_id: string;
|
|
53
53
|
project_id: string;
|
|
@@ -34,7 +34,7 @@ declare const NeonRestoreProjectBranchOutput: z.ZodObject<{
|
|
|
34
34
|
active_time_seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
35
35
|
data_transfer_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
36
36
|
compute_time_seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
37
|
-
}, z.core.$
|
|
37
|
+
}, z.core.$loose>>>;
|
|
38
38
|
operations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
39
39
|
id: z.ZodNullable<z.ZodString>;
|
|
40
40
|
action: z.ZodNullable<z.ZodString>;
|
|
@@ -46,8 +46,8 @@ declare const NeonRestoreProjectBranchOutput: z.ZodObject<{
|
|
|
46
46
|
endpoint_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
47
|
failures_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
48
48
|
total_duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
49
|
-
}, z.core.$
|
|
50
|
-
}, z.core.$
|
|
49
|
+
}, z.core.$loose>>>>;
|
|
50
|
+
}, z.core.$loose>;
|
|
51
51
|
declare const neonRestoreProjectBranch: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
52
52
|
branch_id: string;
|
|
53
53
|
project_id: string;
|
|
@@ -33,7 +33,7 @@ const NeonRestoreProjectBranch_BranchInfoSchema = z.object({
|
|
|
33
33
|
active_time_seconds: z.number().int().describe("Active time in seconds.").nullable().optional(),
|
|
34
34
|
data_transfer_bytes: z.number().int().describe("Data transferred in bytes.").nullable().optional(),
|
|
35
35
|
compute_time_seconds: z.number().int().describe("Compute time in seconds.").nullable().optional()
|
|
36
|
-
}).describe("Branch information returned after restore operation.");
|
|
36
|
+
}).passthrough().describe("Branch information returned after restore operation.");
|
|
37
37
|
const NeonRestoreProjectBranch_OperationInfoSchema = z.object({
|
|
38
38
|
id: z.string().describe("The unique identifier of the operation.").nullable(),
|
|
39
39
|
action: z.string().describe("The type of action (e.g., 'create_branch', 'suspend_compute').").nullable(),
|
|
@@ -45,7 +45,7 @@ const NeonRestoreProjectBranch_OperationInfoSchema = z.object({
|
|
|
45
45
|
endpoint_id: z.string().describe("The endpoint ID if applicable.").nullable().optional(),
|
|
46
46
|
failures_count: z.number().int().describe("Number of operation failures.").nullable().optional(),
|
|
47
47
|
total_duration_ms: z.number().int().describe("Total duration in milliseconds.").nullable().optional()
|
|
48
|
-
}).describe("Information about an operation triggered by the restore.");
|
|
48
|
+
}).passthrough().describe("Information about an operation triggered by the restore.");
|
|
49
49
|
const neonRestoreProjectBranch = action("NEON_RESTORE_PROJECT_BRANCH", {
|
|
50
50
|
slug: "neon-restore-project-branch",
|
|
51
51
|
name: "Restore project branch",
|
|
@@ -54,7 +54,7 @@ const neonRestoreProjectBranch = action("NEON_RESTORE_PROJECT_BRANCH", {
|
|
|
54
54
|
output: z.object({
|
|
55
55
|
branch: NeonRestoreProjectBranch_BranchInfoSchema.nullable().optional(),
|
|
56
56
|
operations: z.array(NeonRestoreProjectBranch_OperationInfoSchema).describe("List of operations triggered by the restore (e.g., create_branch, suspend_compute).").nullable().optional()
|
|
57
|
-
}).describe("Response schema for `RestoreProjectBranch`")
|
|
57
|
+
}).passthrough().describe("Response schema for `RestoreProjectBranch`")
|
|
58
58
|
});
|
|
59
59
|
//#endregion
|
|
60
60
|
export { neonRestoreProjectBranch };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restore-project-branch.mjs","names":[],"sources":["../../src/actions/restore-project-branch.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeonRestoreProjectBranchInput = z.object({\n branch_id: z.string().describe(\"The ID of the branch to restore (the target branch that will receive the restored data).\"),\n project_id: z.string().describe(\"The Neon project ID containing the branch to restore.\"),\n source_lsn: z.string().describe(\"A Log Sequence Number (LSN) on the source branch. The branch will be restored with data from this LSN. Format example: '0/19A3328'.\").optional(),\n source_branch_id: z.string().describe(\"The branch_id of the restore source branch. If source_timestamp and source_lsn are omitted, the branch will be restored to head. If source_branch_id is equal to the branch's id (self-restoration), source_timestamp or source_lsn is required.\"),\n source_timestamp: z.string().describe(\"A timestamp identifying a point in time on the source branch. The branch will be restored with data starting from this point in time. The timestamp must be provided in ISO 8601 format; for example: '2024-02-26T12:00:00Z'.\").optional(),\n preserve_under_name: z.string().describe(\"If provided, the previous state of the branch will be saved to a new branch with this name. Required if the branch has children or if source_branch_id equals the branch id (self-restoration). All existing child branches will be moved to the newly created branch under this name.\").optional(),\n}).describe(\"Request schema for `RestoreProjectBranch`\");\nconst NeonRestoreProjectBranch_BranchInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the branch.\").nullable(),\n name: z.string().describe(\"The name of the branch.\").nullable(),\n \"default\": z.boolean().describe(\"Whether this is the default branch.\").nullable(),\n primary: z.boolean().describe(\"Whether this is the primary branch.\").nullable(),\n parent_id: z.string().describe(\"The parent branch ID, if any.\").nullable().optional(),\n protected: z.boolean().describe(\"Whether this branch is protected.\").nullable(),\n created_at: z.string().describe(\"When the branch was created (ISO 8601 format).\").nullable(),\n parent_lsn: z.string().describe(\"The parent branch LSN.\").nullable().optional(),\n project_id: z.string().describe(\"The project ID this branch belongs to.\").nullable(),\n updated_at: z.string().describe(\"When the branch was last updated (ISO 8601 format).\").nullable(),\n init_source: z.string().describe(\"Initialization source (e.g., 'parent-data').\").nullable().optional(),\n cpu_used_sec: z.number().int().describe(\"CPU time used in seconds.\").nullable().optional(),\n logical_size: z.number().int().describe(\"Logical size in bytes.\").nullable().optional(),\n current_state: z.string().describe(\"The current state of the branch (e.g., 'ready', 'resetting').\").nullable(),\n last_reset_at: z.string().describe(\"When the branch was last reset/restored.\").nullable().optional(),\n pending_state: z.string().describe(\"The pending state during transitions.\").nullable().optional(),\n creation_source: z.string().describe(\"Source of branch creation (e.g., 'console').\").nullable().optional(),\n parent_timestamp: z.string().describe(\"The parent branch timestamp.\").nullable().optional(),\n state_changed_at: z.string().describe(\"When the state last changed (ISO 8601 format).\").nullable().optional(),\n written_data_bytes: z.number().int().describe(\"Written data in bytes.\").nullable().optional(),\n active_time_seconds: z.number().int().describe(\"Active time in seconds.\").nullable().optional(),\n data_transfer_bytes: z.number().int().describe(\"Data transferred in bytes.\").nullable().optional(),\n compute_time_seconds: z.number().int().describe(\"Compute time in seconds.\").nullable().optional(),\n}).describe(\"Branch information returned after restore operation.\");\nconst NeonRestoreProjectBranch_OperationInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the operation.\").nullable(),\n action: z.string().describe(\"The type of action (e.g., 'create_branch', 'suspend_compute').\").nullable(),\n status: z.string().describe(\"The status of the operation (e.g., 'running', 'scheduling').\").nullable(),\n branch_id: z.string().describe(\"The branch ID this operation affects.\").nullable(),\n created_at: z.string().describe(\"When the operation was created.\").nullable(),\n project_id: z.string().describe(\"The project ID this operation belongs to.\").nullable(),\n updated_at: z.string().describe(\"When the operation was last updated.\").nullable(),\n endpoint_id: z.string().describe(\"The endpoint ID if applicable.\").nullable().optional(),\n failures_count: z.number().int().describe(\"Number of operation failures.\").nullable().optional(),\n total_duration_ms: z.number().int().describe(\"Total duration in milliseconds.\").nullable().optional(),\n}).describe(\"Information about an operation triggered by the restore.\");\nexport const NeonRestoreProjectBranchOutput = z.object({\n branch: NeonRestoreProjectBranch_BranchInfoSchema.nullable().optional(),\n operations: z.array(NeonRestoreProjectBranch_OperationInfoSchema).describe(\"List of operations triggered by the restore (e.g., create_branch, suspend_compute).\").nullable().optional(),\n}).describe(\"Response schema for `RestoreProjectBranch`\");\n\nexport const neonRestoreProjectBranch = action(\"NEON_RESTORE_PROJECT_BRANCH\", {\n slug: \"neon-restore-project-branch\",\n name: \"Restore project branch\",\n description: \"This endpoint restores a branch to a specific state or point in time. Use it to recover data, revert changes, or create new branch states based on historical data. The restoration uses either a Log Sequence Number (LSN) or timestamp from the source branch. Important: For self-restoration or branches with children, use preserve_under_name to save the current state. Note: Restoration time varies based on data volume and restoration point.\",\n input: NeonRestoreProjectBranchInput,\n output: NeonRestoreProjectBranchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F;CACzH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACvF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS;CAChL,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,kPAAkP;CACxR,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,+NAA+N,CAAC,CAAC,SAAS;CAChR,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,wRAAwR,CAAC,CAAC,SAAS;AAC9U,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,4CAA4C,EAAE,OAAO;CACzD,IAAI,EAAE,OAAO,CAAC,C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,SAAS;CAChG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,sBAAsB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,sDAAsD;
|
|
1
|
+
{"version":3,"file":"restore-project-branch.mjs","names":[],"sources":["../../src/actions/restore-project-branch.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeonRestoreProjectBranchInput = z.object({\n branch_id: z.string().describe(\"The ID of the branch to restore (the target branch that will receive the restored data).\"),\n project_id: z.string().describe(\"The Neon project ID containing the branch to restore.\"),\n source_lsn: z.string().describe(\"A Log Sequence Number (LSN) on the source branch. The branch will be restored with data from this LSN. Format example: '0/19A3328'.\").optional(),\n source_branch_id: z.string().describe(\"The branch_id of the restore source branch. If source_timestamp and source_lsn are omitted, the branch will be restored to head. If source_branch_id is equal to the branch's id (self-restoration), source_timestamp or source_lsn is required.\"),\n source_timestamp: z.string().describe(\"A timestamp identifying a point in time on the source branch. The branch will be restored with data starting from this point in time. The timestamp must be provided in ISO 8601 format; for example: '2024-02-26T12:00:00Z'.\").optional(),\n preserve_under_name: z.string().describe(\"If provided, the previous state of the branch will be saved to a new branch with this name. Required if the branch has children or if source_branch_id equals the branch id (self-restoration). All existing child branches will be moved to the newly created branch under this name.\").optional(),\n}).describe(\"Request schema for `RestoreProjectBranch`\");\nconst NeonRestoreProjectBranch_BranchInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the branch.\").nullable(),\n name: z.string().describe(\"The name of the branch.\").nullable(),\n \"default\": z.boolean().describe(\"Whether this is the default branch.\").nullable(),\n primary: z.boolean().describe(\"Whether this is the primary branch.\").nullable(),\n parent_id: z.string().describe(\"The parent branch ID, if any.\").nullable().optional(),\n protected: z.boolean().describe(\"Whether this branch is protected.\").nullable(),\n created_at: z.string().describe(\"When the branch was created (ISO 8601 format).\").nullable(),\n parent_lsn: z.string().describe(\"The parent branch LSN.\").nullable().optional(),\n project_id: z.string().describe(\"The project ID this branch belongs to.\").nullable(),\n updated_at: z.string().describe(\"When the branch was last updated (ISO 8601 format).\").nullable(),\n init_source: z.string().describe(\"Initialization source (e.g., 'parent-data').\").nullable().optional(),\n cpu_used_sec: z.number().int().describe(\"CPU time used in seconds.\").nullable().optional(),\n logical_size: z.number().int().describe(\"Logical size in bytes.\").nullable().optional(),\n current_state: z.string().describe(\"The current state of the branch (e.g., 'ready', 'resetting').\").nullable(),\n last_reset_at: z.string().describe(\"When the branch was last reset/restored.\").nullable().optional(),\n pending_state: z.string().describe(\"The pending state during transitions.\").nullable().optional(),\n creation_source: z.string().describe(\"Source of branch creation (e.g., 'console').\").nullable().optional(),\n parent_timestamp: z.string().describe(\"The parent branch timestamp.\").nullable().optional(),\n state_changed_at: z.string().describe(\"When the state last changed (ISO 8601 format).\").nullable().optional(),\n written_data_bytes: z.number().int().describe(\"Written data in bytes.\").nullable().optional(),\n active_time_seconds: z.number().int().describe(\"Active time in seconds.\").nullable().optional(),\n data_transfer_bytes: z.number().int().describe(\"Data transferred in bytes.\").nullable().optional(),\n compute_time_seconds: z.number().int().describe(\"Compute time in seconds.\").nullable().optional(),\n}).passthrough().describe(\"Branch information returned after restore operation.\");\nconst NeonRestoreProjectBranch_OperationInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the operation.\").nullable(),\n action: z.string().describe(\"The type of action (e.g., 'create_branch', 'suspend_compute').\").nullable(),\n status: z.string().describe(\"The status of the operation (e.g., 'running', 'scheduling').\").nullable(),\n branch_id: z.string().describe(\"The branch ID this operation affects.\").nullable(),\n created_at: z.string().describe(\"When the operation was created.\").nullable(),\n project_id: z.string().describe(\"The project ID this operation belongs to.\").nullable(),\n updated_at: z.string().describe(\"When the operation was last updated.\").nullable(),\n endpoint_id: z.string().describe(\"The endpoint ID if applicable.\").nullable().optional(),\n failures_count: z.number().int().describe(\"Number of operation failures.\").nullable().optional(),\n total_duration_ms: z.number().int().describe(\"Total duration in milliseconds.\").nullable().optional(),\n}).passthrough().describe(\"Information about an operation triggered by the restore.\");\nexport const NeonRestoreProjectBranchOutput = z.object({\n branch: NeonRestoreProjectBranch_BranchInfoSchema.nullable().optional(),\n operations: z.array(NeonRestoreProjectBranch_OperationInfoSchema).describe(\"List of operations triggered by the restore (e.g., create_branch, suspend_compute).\").nullable().optional(),\n}).passthrough().describe(\"Response schema for `RestoreProjectBranch`\");\n\nexport const neonRestoreProjectBranch = action(\"NEON_RESTORE_PROJECT_BRANCH\", {\n slug: \"neon-restore-project-branch\",\n name: \"Restore project branch\",\n description: \"This endpoint restores a branch to a specific state or point in time. Use it to recover data, revert changes, or create new branch states based on historical data. The restoration uses either a Log Sequence Number (LSN) or timestamp from the source branch. Important: For self-restoration or branches with children, use preserve_under_name to save the current state. Note: Restoration time varies based on data volume and restoration point.\",\n input: NeonRestoreProjectBranchInput,\n output: NeonRestoreProjectBranchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,WAAW,EAAE,OAAO,C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