@vercel/sdk
Version:
<p align="center"> <a href="https://vercel.com"> <img src="https://assets.vercel.com/image/upload/v1588805858/repositories/vercel/logo.png" height="96"> <h3 align="center">Vercel</h3> </a> <p align="center">Develop. Preview. Ship.</p> </p>
1,948 lines • 91.1 kB
JavaScript
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import * as z from "zod/v3";
import { remap as remap$ } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
import * as types from "../types/primitives.js";
import { smartUnion } from "../types/smartUnion.js";
/**
* The type of entity.
*/
export const UserEventType = {
App: "app",
Author: "author",
BitbucketLogin: "bitbucket_login",
Bold: "bold",
DeploymentHost: "deployment_host",
DeploymentInspector: "deployment_inspector",
DnsRecord: "dns_record",
EdgeConfig: "edge-config",
EnvVarName: "env_var_name",
Flag: "flag",
FlagsSegment: "flags-segment",
FlagsSettings: "flags-settings",
GitLink: "git_link",
GithubLogin: "github_login",
GitlabLogin: "gitlab_login",
HookName: "hook_name",
Integration: "integration",
Link: "link",
ProjectName: "project_name",
ScalingRules: "scaling_rules",
Store: "store",
System: "system",
Target: "target",
};
/**
* The type of the event.
*/
export const Type = {
AccessGroupCreated: "access-group-created",
AccessGroupDeleted: "access-group-deleted",
AccessGroupProjectUpdated: "access-group-project-updated",
AccessGroupUpdated: "access-group-updated",
AccessGroupUserAdded: "access-group-user-added",
AccessGroupUserRemoved: "access-group-user-removed",
AgenticProvisioningAccountBlocked: "agentic-provisioning-account-blocked",
AgenticProvisioningAccountLinked: "agentic-provisioning-account-linked",
AgenticProvisioningAccountRelinked: "agentic-provisioning-account-relinked",
AgenticProvisioningAccountUnlinked: "agentic-provisioning-account-unlinked",
AgenticProvisioningCredentialsRotated: "agentic-provisioning-credentials-rotated",
AgenticProvisioningPlanChanged: "agentic-provisioning-plan-changed",
AgenticProvisioningTeamCreated: "agentic-provisioning-team-created",
AiAlertInvestigation: "ai-alert-investigation",
AiCodeReview: "ai-code-review",
AiGatewayApiKeyCreated: "ai-gateway-api-key-created",
AiGatewayApiKeyDeleted: "ai-gateway-api-key-deleted",
AiGatewayApiKeyQuotaUpdated: "ai-gateway-api-key-quota-updated",
AiGatewayByokCredentialCreated: "ai-gateway-byok-credential-created",
AiGatewayByokCredentialDeleted: "ai-gateway-byok-credential-deleted",
AiGatewayByokCredentialUpdated: "ai-gateway-byok-credential-updated",
AiGatewayProviderAllowlistProvidersUpdated: "ai-gateway-provider-allowlist-providers-updated",
AiGatewayProviderAllowlistToggled: "ai-gateway-provider-allowlist-toggled",
AiGatewayRuleCreated: "ai-gateway-rule-created",
AiGatewayRuleDeleted: "ai-gateway-rule-deleted",
AiGatewayRuleUpdated: "ai-gateway-rule-updated",
AiGatewayVirtualModelConfigArchived: "ai-gateway-virtual-model-config-archived",
AiGatewayVirtualModelConfigCreated: "ai-gateway-virtual-model-config-created",
AiGatewayVirtualModelConfigRestored: "ai-gateway-virtual-model-config-restored",
AiGatewayVirtualModelConfigUpdated: "ai-gateway-virtual-model-config-updated",
AiOmniagent: "ai-omniagent",
AlertRuleCreated: "alert-rule-created",
AlertRuleDeleted: "alert-rule-deleted",
AlertRuleUpdated: "alert-rule-updated",
Alias: "alias",
AliasChown: "alias-chown",
AliasDelete: "alias-delete",
AliasInviteCreated: "alias-invite-created",
AliasInviteJoined: "alias-invite-joined",
AliasInviteRevoked: "alias-invite-revoked",
AliasProtectionBypassCreated: "alias-protection-bypass-created",
AliasProtectionBypassException: "alias-protection-bypass-exception",
AliasProtectionBypassRegenerated: "alias-protection-bypass-regenerated",
AliasProtectionBypassRevoked: "alias-protection-bypass-revoked",
AliasSystem: "alias-system",
AliasUserScopedAccessDenied: "alias-user-scoped-access-denied",
AliasUserScopedAccessGranted: "alias-user-scoped-access-granted",
AliasUserScopedAccessRequested: "alias-user-scoped-access-requested",
AliasUserScopedAccessRevoked: "alias-user-scoped-access-revoked",
AliasesAssigned: "aliases-assigned",
AttackModeDisabled: "attack-mode-disabled",
AttackModeEnabled: "attack-mode-enabled",
AuditLogExportDownloaded: "audit-log-export-downloaded",
AuditLogExportRequested: "audit-log-export-requested",
AuthorizeGitDeployment: "authorize-git-deployment",
AutoExposeSystemEnvs: "auto-expose-system-envs",
Avatar: "avatar",
BulkRedirectsSettingsUpdated: "bulk-redirects-settings-updated",
BulkRedirectsVersionPromoted: "bulk-redirects-version-promoted",
BulkRedirectsVersionRestored: "bulk-redirects-version-restored",
Cert: "cert",
CertAutorenew: "cert-autorenew",
CertChown: "cert-chown",
CertClone: "cert-clone",
CertDelete: "cert-delete",
CertRenew: "cert-renew",
CertReplace: "cert-replace",
CertSystemCreate: "cert-system-create",
ConcurrentBuildsUpdate: "concurrent-builds-update",
ConnectAttachProject: "connect-attach-project",
ConnectBitbucket: "connect-bitbucket",
ConnectBitbucketApp: "connect-bitbucket-app",
ConnectConfigurationCreated: "connect-configuration-created",
ConnectConfigurationDeleted: "connect-configuration-deleted",
ConnectConfigurationLinkUpdated: "connect-configuration-link-updated",
ConnectConfigurationLinked: "connect-configuration-linked",
ConnectConfigurationUnlinked: "connect-configuration-unlinked",
ConnectConfigurationUpdated: "connect-configuration-updated",
ConnectCreateConnector: "connect-create-connector",
ConnectDeleteConnector: "connect-delete-connector",
ConnectDeleteInstallation: "connect-delete-installation",
ConnectDetachProject: "connect-detach-project",
ConnectGithub: "connect-github",
ConnectGithubCustomHost: "connect-github-custom-host",
ConnectGithubLimited: "connect-github-limited",
ConnectGitlab: "connect-gitlab",
ConnectGitlabApp: "connect-gitlab-app",
ConnectRevokeAllTokens: "connect-revoke-all-tokens",
ConnectUpdateConnector: "connect-update-connector",
ConnectUpdateTriggerDestinations: "connect-update-trigger-destinations",
ConnectUpsertInstallation: "connect-upsert-installation",
CustomAlertCreated: "custom-alert-created",
CustomAlertDeleted: "custom-alert-deleted",
CustomAlertUpdated: "custom-alert-updated",
CustomSuffixClear: "custom-suffix-clear",
CustomSuffixDisable: "custom-suffix-disable",
CustomSuffixEnable: "custom-suffix-enable",
CustomSuffixPending: "custom-suffix-pending",
CustomSuffixReady: "custom-suffix-ready",
DeployHookCreated: "deploy-hook-created",
DeployHookDeduped: "deploy-hook-deduped",
DeployHookDeleted: "deploy-hook-deleted",
DeployHookProcessed: "deploy-hook-processed",
Deployment: "deployment",
DeploymentCheckCreated: "deployment-check-created",
DeploymentCheckDeleted: "deployment-check-deleted",
DeploymentCheckUpdated: "deployment-check-updated",
DeploymentChown: "deployment-chown",
DeploymentCreationBlocked: "deployment-creation-blocked",
DeploymentDelete: "deployment-delete",
DeploymentPolicyBlocked: "deployment-policy-blocked",
DeploymentUndeleted: "deployment-undeleted",
DisabledIntegrationInstallationRemoved: "disabled-integration-installation-removed",
DisconnectBitbucketApp: "disconnect-bitbucket-app",
DisconnectGithub: "disconnect-github",
DisconnectGithubCustomHost: "disconnect-github-custom-host",
DisconnectGithubLimited: "disconnect-github-limited",
DisconnectGitlabApp: "disconnect-gitlab-app",
DnsAdd: "dns-add",
DnsDelete: "dns-delete",
DnsRecordInternal: "dns-record-internal",
DnsUpdate: "dns-update",
DnsZonefileImport: "dns-zonefile-import",
Domain: "domain",
DomainBuy: "domain-buy",
DomainCdn: "domain-cdn",
DomainChown: "domain-chown",
DomainCustomNsChange: "domain-custom-ns-change",
DomainDelegated: "domain-delegated",
DomainDelete: "domain-delete",
DomainMoveIn: "domain-move-in",
DomainMoveOut: "domain-move-out",
DomainMoveOutRequestSent: "domain-move-out-request-sent",
DomainRenewChange: "domain-renew-change",
DomainServiceTypeUpdated: "domain-service-type-updated",
DomainTransferIn: "domain-transfer-in",
DomainTransferInCanceled: "domain-transfer-in-canceled",
DomainTransferInCompleted: "domain-transfer-in-completed",
DomainZoneChange: "domain-zone-change",
DrainCreated: "drain-created",
DrainDeleted: "drain-deleted",
DrainDisabled: "drain-disabled",
DrainEnabled: "drain-enabled",
DrainUpdated: "drain-updated",
EdgeCacheDangerouslyDeleteBySrcImages: "edge-cache-dangerously-delete-by-src-images",
EdgeCacheDangerouslyDeleteByTags: "edge-cache-dangerously-delete-by-tags",
EdgeCacheInvalidateBySrcImages: "edge-cache-invalidate-by-src-images",
EdgeCacheInvalidateByTags: "edge-cache-invalidate-by-tags",
EdgeCachePurgeAll: "edge-cache-purge-all",
EdgeCacheRollbackPurge: "edge-cache-rollback-purge",
EdgeConfigBackupRestored: "edge-config-backup-restored",
EdgeConfigCreated: "edge-config-created",
EdgeConfigDeleted: "edge-config-deleted",
EdgeConfigItemsUpdated: "edge-config-items-updated",
EdgeConfigSchemaDeleted: "edge-config-schema-deleted",
EdgeConfigSchemaUpdated: "edge-config-schema-updated",
EdgeConfigTokenCreated: "edge-config-token-created",
EdgeConfigTokenDeleted: "edge-config-token-deleted",
EdgeConfigTransferIn: "edge-config-transfer-in",
EdgeConfigTransferOut: "edge-config-transfer-out",
EdgeConfigUpdated: "edge-config-updated",
Email: "email",
EmailNotificationRuleRemoved: "email-notification-rule-removed",
EmailNotificationRuleUpdated: "email-notification-rule-updated",
EnforceSensitiveEnvironmentVariables: "enforce-sensitive-environment-variables",
EnvVariableAdd: "env-variable-add",
EnvVariableDelete: "env-variable-delete",
EnvVariableEdit: "env-variable-edit",
EnvVariableMasked: "env-variable-masked",
EnvVariableRead: "env-variable-read",
EnvVariableReadCliDev: "env-variable-read:cli:dev",
EnvVariableReadCliEnvAdd: "env-variable-read:cli:env:add",
EnvVariableReadCliEnvLs: "env-variable-read:cli:env:ls",
EnvVariableReadCliEnvPull: "env-variable-read:cli:env:pull",
EnvVariableReadCliEnvRm: "env-variable-read:cli:env:rm",
EnvVariableReadCliPull: "env-variable-read:cli:pull",
EnvVariableReadUnknownSource: "env-variable-read:unknown-source",
EnvVariableReadV0EnvPull: "env-variable-read:v0:env:pull",
EnvVariableRotated: "env-variable-rotated",
FirewallBypassCreated: "firewall-bypass-created",
FirewallBypassDeleted: "firewall-bypass-deleted",
FirewallConfigModified: "firewall-config-modified",
FirewallConfigPromoted: "firewall-config-promoted",
FirewallConfigRemoved: "firewall-config-removed",
FirewallManagedRulegroupUpdated: "firewall-managed-rulegroup-updated",
FirewallManagedRulesetUpdated: "firewall-managed-ruleset-updated",
Flag: "flag",
FlagArchived: "flag-archived",
FlagCreated: "flag-created",
FlagDeleted: "flag-deleted",
FlagUnarchived: "flag-unarchived",
FlagUpdated: "flag-updated",
FlagsExplorerSubscription: "flags-explorer-subscription",
FlagsSDKKey: "flags-sdk-key",
FlagsSDKKeyAdded: "flags-sdk-key-added",
FlagsSDKKeyDeleted: "flags-sdk-key-deleted",
FlagsSDKKeyRead: "flags-sdk-key-read",
FlagsSegment: "flags-segment",
FlagsSettings: "flags-settings",
GitAccountIntegrationLinkAdded: "git_account_integration_link_added",
InstantRollbackCreated: "instant-rollback-created",
IntegrationConfigurationOwnerChanged: "integration-configuration-owner-changed",
IntegrationConfigurationScopeChangeConfirmed: "integration-configuration-scope-change-confirmed",
IntegrationConfigurationTransferInSuccess: "integration-configuration-transfer-in-success",
IntegrationConfigurationTransferOutSuccess: "integration-configuration-transfer-out-success",
IntegrationConfigurationsDisabled: "integration-configurations-disabled",
IntegrationInstallationBillingPlanUpdated: "integration-installation-billing-plan-updated",
IntegrationInstallationCompleted: "integration-installation-completed",
IntegrationInstallationPermissionUpdated: "integration-installation-permission-updated",
IntegrationInstallationRemoved: "integration-installation-removed",
IntegrationResourceSqlQueryExecuted: "integration-resource-sql-query-executed",
IntegrationScopeChanged: "integration-scope-changed",
InvoiceModified: "invoice-modified",
InvoiceRefunded: "invoice-refunded",
LogDrainCreated: "log-drain-created",
LogDrainDeleted: "log-drain-deleted",
LogDrainDisabled: "log-drain-disabled",
LogDrainEnabled: "log-drain-enabled",
Login: "login",
ManualDeploymentPromotionCreated: "manual-deployment-promotion-created",
MarketplaceIntegrationAllowlistUpdated: "marketplace-integration-allowlist-updated",
MicrofrontendGroupAdded: "microfrontend-group-added",
MicrofrontendGroupDeleted: "microfrontend-group-deleted",
MicrofrontendGroupUpdated: "microfrontend-group-updated",
MicrofrontendProjectAddedToGroup: "microfrontend-project-added-to-group",
MicrofrontendProjectRemovedFromGroup: "microfrontend-project-removed-from-group",
MicrofrontendProjectUpdated: "microfrontend-project-updated",
MonitoringAlertUpdated: "monitoring-alert-updated",
MonitoringDisabled: "monitoring-disabled",
MonitoringEnabled: "monitoring-enabled",
OauthAppConnectionCreated: "oauth-app-connection-created",
OauthAppConnectionRemoved: "oauth-app-connection-removed",
OauthAppConnectionUpdated: "oauth-app-connection-updated",
OauthAppCreated: "oauth-app-created",
OauthAppDeleted: "oauth-app-deleted",
OauthAppSecretDeleted: "oauth-app-secret-deleted",
OauthAppSecretGenerated: "oauth-app-secret-generated",
OauthAppTokenCreated: "oauth-app-token-created",
OauthAppUpdated: "oauth-app-updated",
ObservabilityDisabled: "observability-disabled",
ObservabilityEnabled: "observability-enabled",
ObservabilityPlusProjectDisabled: "observability-plus-project-disabled",
ObservabilityPlusProjectEnabled: "observability-plus-project-enabled",
OrganizationTeamAdd: "organization-team-add",
OwnerBlocked: "owner-blocked",
OwnerSoftBlocked: "owner-soft-blocked",
OwnerSoftUnblocked: "owner-soft-unblocked",
OwnerUnblocked: "owner-unblocked",
PageIntegrityConfigUpdated: "page-integrity-config-updated",
PageIntegrityHeaderApproved: "page-integrity-header-approved",
PageIntegrityInventoryCleared: "page-integrity-inventory-cleared",
PageIntegrityResourceApproved: "page-integrity-resource-approved",
PageIntegrityResourceDeleted: "page-integrity-resource-deleted",
PageIntegrityResourceRejected: "page-integrity-resource-rejected",
PasskeyCreated: "passkey-created",
PasskeyDeleted: "passkey-deleted",
PasskeyUpdated: "passkey-updated",
PasswordProtectionDisabled: "password-protection-disabled",
PasswordProtectionEnabled: "password-protection-enabled",
PaymentMethodAdded: "payment-method-added",
PaymentMethodDefaultUpdated: "payment-method-default-updated",
PaymentMethodRemoved: "payment-method-removed",
Plan: "plan",
PreviewDeploymentSuffixDisabled: "preview-deployment-suffix-disabled",
PreviewDeploymentSuffixEnabled: "preview-deployment-suffix-enabled",
PreviewDeploymentSuffixUpdate: "preview-deployment-suffix-update",
PrivatelinkEndpointCreated: "privatelink-endpoint-created",
PrivatelinkEndpointDeleted: "privatelink-endpoint-deleted",
PrivatelinkEndpointUpdated: "privatelink-endpoint-updated",
ProductionBranchUpdated: "production-branch-updated",
ProjectAddAlias: "project-add-alias",
ProjectAddRedirect: "project-add-redirect",
ProjectAffectedProjectsDeploymentsUpdated: "project-affected-projects-deployments-updated",
ProjectAliasConfiguredChange: "project-alias-configured-change",
ProjectAnalyticsDisabled: "project-analytics-disabled",
ProjectAnalyticsEnabled: "project-analytics-enabled",
ProjectAutoAssignCustomProductionDomainsUpdated: "project-auto-assign-custom-production-domains-updated",
ProjectAutomationBypass: "project-automation-bypass",
ProjectAvatarUpdate: "project-avatar-update",
ProjectBuildCommandUpdated: "project-build-command-updated",
ProjectBuildLogsAndSourceProtectionUpdated: "project-build-logs-and-source-protection-updated",
ProjectBuildMachineUpdated: "project-build-machine-updated",
ProjectClientCertDelete: "project-client-cert-delete",
ProjectClientCertUpload: "project-client-cert-upload",
ProjectConnectConfigurations: "project-connect-configurations",
ProjectConsolidatedGitCommitStatusUpdated: "project-consolidated-git-commit-status-updated",
ProjectCreated: "project-created",
ProjectCronJobsToggled: "project-cron-jobs-toggled",
ProjectCustomEnvironmentCreated: "project-custom-environment-created",
ProjectCustomEnvironmentDeleted: "project-custom-environment-deleted",
ProjectCustomEnvironmentUpdated: "project-custom-environment-updated",
ProjectCustomerSuccessCodeVisibilityUpdated: "project-customer-success-code-visibility-updated",
ProjectDelete: "project-delete",
ProjectDeploymentPolicyUpdated: "project-deployment-policy-updated",
ProjectDeploymentRetentionUpdated: "project-deployment-retention-updated",
ProjectDirectoryListing: "project-directory-listing",
ProjectDomainDeleted: "project-domain-deleted",
ProjectDomainMoved: "project-domain-moved",
ProjectDomainUnverified: "project-domain-unverified",
ProjectDomainUpdated: "project-domain-updated",
ProjectDomainVerified: "project-domain-verified",
ProjectElasticConcurrencyUpdated: "project-elastic-concurrency-updated",
ProjectExpirationLocked: "project-expiration-locked",
ProjectExpirationReached: "project-expiration-reached",
ProjectExpirationScheduled: "project-expiration-scheduled",
ProjectExpirationUnlocked: "project-expiration-unlocked",
ProjectExternalRewriteCachingUpdated: "project-external-rewrite-caching-updated",
ProjectFrameworkUpdated: "project-framework-updated",
ProjectFunctionCpuMemory: "project-function-cpu-memory",
ProjectFunctionFailover: "project-function-failover",
ProjectFunctionMaxDuration: "project-function-max-duration",
ProjectFunctionRegions: "project-function-regions",
ProjectFunctionsBetaUpdated: "project-functions-beta-updated",
ProjectFunctionsFluidDisabled: "project-functions-fluid-disabled",
ProjectFunctionsFluidEnabled: "project-functions-fluid-enabled",
ProjectGitCommitCommentsToggled: "project-git-commit-comments-toggled",
ProjectGitCommitStatusToggled: "project-git-commit-status-toggled",
ProjectGitCreateDeploymentsToggled: "project-git-create-deployments-toggled",
ProjectGitForkProtectionUpdated: "project-git-fork-protection-updated",
ProjectGitLfsToggled: "project-git-lfs-toggled",
ProjectGitPrCommentsToggled: "project-git-pr-comments-toggled",
ProjectGitRepositoryConnected: "project-git-repository-connected",
ProjectGitRepositoryDisconnected: "project-git-repository-disconnected",
ProjectGitRepositoryDispatchEventsToggled: "project-git-repository-dispatch-events-toggled",
ProjectGitRequireVerifiedCommitsToggled: "project-git-require-verified-commits-toggled",
ProjectIgnoredBuildStepUpdated: "project-ignored-build-step-updated",
ProjectInstallCommandUpdated: "project-install-command-updated",
ProjectMemberAdded: "project-member-added",
ProjectMemberInvited: "project-member-invited",
ProjectMemberRemoved: "project-member-removed",
ProjectMemberRemovedBatch: "project-member-removed-batch",
ProjectMemberUpdated: "project-member-updated",
ProjectMoveInSuccess: "project-move-in-success",
ProjectMoveOutFailed: "project-move-out-failed",
ProjectMoveOutStarted: "project-move-out-started",
ProjectMoveOutSuccess: "project-move-out-success",
ProjectName: "project-name",
ProjectNodeVersionUpdated: "project-node-version-updated",
ProjectOidcIssuerModeUpdated: "project-oidc-issuer-mode-updated",
ProjectOidcTokenCreated: "project-oidc-token-created",
ProjectOptionsAllowlist: "project-options-allowlist",
ProjectOutputDirectoryUpdated: "project-output-directory-updated",
ProjectPassportUpdated: "project-passport-updated",
ProjectPasswordProtection: "project-password-protection",
ProjectPaused: "project-paused",
ProjectPreviewDeploymentSuffix: "project-preview-deployment-suffix",
ProjectPreviewEnvironmentBranchTrackingUpdated: "project-preview-environment-branch-tracking-updated",
ProjectPrioritizeProductionBuildsUpdated: "project-prioritize-production-builds-updated",
ProjectProgramEnrollmentChanged: "project-program-enrollment-changed",
ProjectProtectedSourcemapsUpdated: "project-protected-sourcemaps-updated",
ProjectRollbackDescriptionUpdated: "project-rollback-description-updated",
ProjectRollingReleaseAborted: "project-rolling-release-aborted",
ProjectRollingReleaseApproved: "project-rolling-release-approved",
ProjectRollingReleaseCompleted: "project-rolling-release-completed",
ProjectRollingReleaseConfigured: "project-rolling-release-configured",
ProjectRollingReleaseContinued: "project-rolling-release-continued",
ProjectRollingReleaseDisabled: "project-rolling-release-disabled",
ProjectRollingReleaseEnabled: "project-rolling-release-enabled",
ProjectRollingReleasePaused: "project-rolling-release-paused",
ProjectRollingReleaseStarted: "project-rolling-release-started",
ProjectRollingReleaseSuggestedActionsGenerated: "project-rolling-release-suggested-actions-generated",
ProjectRollingReleaseTimer: "project-rolling-release-timer",
ProjectRootDirectoryUpdated: "project-root-directory-updated",
ProjectRoutesVersionPromoted: "project-routes-version-promoted",
ProjectRoutesVersionRestored: "project-routes-version-restored",
ProjectSandboxUrlProtectionUpdated: "project-sandbox-url-protection-updated",
ProjectSkewProtectionAllowedDomainsUpdated: "project-skew-protection-allowed-domains-updated",
ProjectSkewProtectionMaxAgeUpdated: "project-skew-protection-max-age-updated",
ProjectSkewProtectionThresholdUpdated: "project-skew-protection-threshold-updated",
ProjectSourceFilesOutsideRootDirectoryUpdated: "project-source-files-outside-root-directory-updated",
ProjectSpeedInsightsDisabled: "project-speed-insights-disabled",
ProjectSpeedInsightsEnabled: "project-speed-insights-enabled",
ProjectSsoProtection: "project-sso-protection",
ProjectStaticIpsUpdated: "project-static-ips-updated",
ProjectTrustedIps: "project-trusted-ips",
ProjectTrustedSources: "project-trusted-sources",
ProjectUnpaused: "project-unpaused",
ProjectWebAnalyticsDisabled: "project-web-analytics-disabled",
ProjectWebAnalyticsEnabled: "project-web-analytics-enabled",
ProtectedGitScopeAdded: "protected-git-scope-added",
ProtectedGitScopeRemoved: "protected-git-scope-removed",
RuntimeCachePurgeAll: "runtime-cache-purge-all",
SandboxAliasAssigned: "sandbox-alias-assigned",
SandboxAliasDelete: "sandbox-alias-delete",
Scale: "scale",
ScaleAuto: "scale-auto",
SecondaryEmailAdded: "secondary-email-added",
SecondaryEmailRemoved: "secondary-email-removed",
SecondaryEmailVerified: "secondary-email-verified",
SecretAdd: "secret-add",
SecretDelete: "secret-delete",
SecretRename: "secret-rename",
SecurityPlusUpdated: "security-plus-updated",
SetBio: "set-bio",
SetName: "set-name",
SetProfiles: "set-profiles",
SetScale: "set-scale",
SharedEnvVariableCreate: "shared-env-variable-create",
SharedEnvVariableDelete: "shared-env-variable-delete",
SharedEnvVariableRead: "shared-env-variable-read",
SharedEnvVariableUpdate: "shared-env-variable-update",
ShowIpAddresses: "show-ip-addresses",
Signup: "signup",
SignupViaBitbucket: "signup-via-bitbucket",
SignupViaGithub: "signup-via-github",
SignupViaGitlab: "signup-via-gitlab",
SpeedInsightsSettingsUpdated: "speed-insights-settings-updated",
SpendCreated: "spend-created",
SpendDeleted: "spend-deleted",
SpendUpdated: "spend-updated",
StorageAcceptTos: "storage-accept-tos",
StorageAccessTokenSet: "storage-access-token-set",
StorageAccessedDataBrowser: "storage-accessed-data-browser",
StorageConnectProject: "storage-connect-project",
StorageCreate: "storage-create",
StorageDelete: "storage-delete",
StorageDisconnectProject: "storage-disconnect-project",
StorageDisconnectProjects: "storage-disconnect-projects",
StorageInactiveStoreDeleted: "storage-inactive-store-deleted",
StorageResetCredentials: "storage-reset-credentials",
StorageResourceReplCommand: "storage-resource-repl-command",
StorageSetLocked: "storage-set-locked",
StorageTransferInSuccess: "storage-transfer-in-success",
StorageTransferOutSuccess: "storage-transfer-out-success",
StorageTransferRequestCreated: "storage-transfer-request-created",
StorageUpdate: "storage-update",
StorageUpdateProjectConnection: "storage-update-project-connection",
StorageUpgradeProjectConnectionToOidc: "storage-upgrade-project-connection-to-oidc",
StorageViewSecret: "storage-view-secret",
StrictDeploymentProtectionSettings: "strict-deployment-protection-settings",
StrictShareableLinks: "strict-shareable-links",
SubscriptionCreated: "subscription-created",
SubscriptionProductAdded: "subscription-product-added",
SubscriptionProductRemoved: "subscription-product-removed",
SubscriptionUpdated: "subscription-updated",
Team: "team",
TeamAvatarUpdate: "team-avatar-update",
TeamDefaultBuildMachineUpdated: "team-default-build-machine-updated",
TeamDefaultPassportUpdated: "team-default-passport-updated",
TeamDelete: "team-delete",
TeamDeploymentPolicyUpdated: "team-deployment-policy-updated",
TeamDomainVerificationCreated: "team-domain-verification-created",
TeamDomainVerificationDeleted: "team-domain-verification-deleted",
TeamDomainVerificationVerified: "team-domain-verification-verified",
TeamEmailDomainUpdate: "team-email-domain-update",
TeamEmuUpdated: "team-emu-updated",
TeamEndedTrial: "team-ended-trial",
TeamGitRepositoryDispatchEventsToggled: "team-git-repository-dispatch-events-toggled",
TeamGitRequireVerifiedCommitsToggled: "team-git-require-verified-commits-toggled",
TeamInviteBulkDelete: "team-invite-bulk-delete",
TeamInviteCodeReset: "team-invite-code-reset",
TeamInviteLinkCreated: "team-invite-link-created",
TeamInviteLinkDeleted: "team-invite-link-deleted",
TeamIpBlockingRulesCreated: "team-ip-blocking-rules-created",
TeamIpBlockingRulesRemoved: "team-ip-blocking-rules-removed",
TeamMemberAdd: "team-member-add",
TeamMemberConfirmRequest: "team-member-confirm-request",
TeamMemberDeclineRequest: "team-member-decline-request",
TeamMemberDelete: "team-member-delete",
TeamMemberEntitlementAdded: "team-member-entitlement-added",
TeamMemberEntitlementCanceled: "team-member-entitlement-canceled",
TeamMemberEntitlementReactivated: "team-member-entitlement-reactivated",
TeamMemberEntitlementRemoved: "team-member-entitlement-removed",
TeamMemberJoin: "team-member-join",
TeamMemberLeave: "team-member-leave",
TeamMemberRequestAccess: "team-member-request-access",
TeamMemberRoleUpdate: "team-member-role-update",
TeamMfaEnforcementUpdated: "team-mfa-enforcement-updated",
TeamNameUpdate: "team-name-update",
TeamPaidInvoice: "team-paid-invoice",
TeamProgramEnrollmentChanged: "team-program-enrollment-changed",
TeamRemoteCachingUpdate: "team-remote-caching-update",
TeamSamlEnforced: "team-saml-enforced",
TeamSamlRoles: "team-saml-roles",
TeamSlugUpdate: "team-slug-update",
TeamTokensInvalidated: "team-tokens-invalidated",
UnlinkLoginConnection: "unlink-login-connection",
UserDelete: "user-delete",
UserEmuAccountArchived: "user-emu-account-archived",
UserEmuAccountRecovered: "user-emu-account-recovered",
UserMfaChallengeVerified: "user-mfa-challenge-verified",
UserMfaConfigurationUpdated: "user-mfa-configuration-updated",
UserMfaRecoveryCodesRegenerated: "user-mfa-recovery-codes-regenerated",
UserMfaRemoved: "user-mfa-removed",
UserMfaSetupSkipped: "user-mfa-setup-skipped",
UserMfaTotpVerificationStarted: "user-mfa-totp-verification-started",
UserMfaTotpVerified: "user-mfa-totp-verified",
UserPrimaryEmailUpdated: "user-primary-email-updated",
UserTokenCreated: "user-token-created",
UserTokenDeleted: "user-token-deleted",
UserTokensDeleted: "user-tokens-deleted",
Username: "username",
V0ChatAiUsage: "v0-chat-ai-usage",
V0ChatCreated: "v0-chat-created",
V0ChatMessageSent: "v0-chat-message-sent",
VercelAgentElevatedPermissionsApproved: "vercel-agent-elevated-permissions-approved",
VercelAgentElevatedPermissionsRequested: "vercel-agent-elevated-permissions-requested",
VercelAgentSessionCreated: "vercel-agent-session-created",
VercelAgentTeamTrialCreditsApplied: "vercel-agent-team-trial-credits-applied",
VercelAppInstallationRequestDismissed: "vercel-app-installation-request-dismissed",
VercelAppInstallationRequested: "vercel-app-installation-requested",
VercelAppInstallationUpdated: "vercel-app-installation-updated",
VercelAppInstalled: "vercel-app-installed",
VercelAppTokensRevoked: "vercel-app-tokens-revoked",
VercelAppUninstalled: "vercel-app-uninstalled",
VercelToolbar: "vercel-toolbar",
VpcPeeringConnectionAccepted: "vpc-peering-connection-accepted",
VpcPeeringConnectionDeleted: "vpc-peering-connection-deleted",
VpcPeeringConnectionRejected: "vpc-peering-connection-rejected",
VpcPeeringConnectionUpdated: "vpc-peering-connection-updated",
VulnerabilityBannerDismissed: "vulnerability-banner-dismissed",
WebAnalyticsTierUpdated: "web-analytics-tier-updated",
WebhookCreated: "webhook-created",
WebhookDeleted: "webhook-deleted",
WebhookUpdated: "webhook-updated",
WorkflowDeploymentKeyAccessed: "workflow-deployment-key-accessed",
};
/**
* The categories that group this event with related event types. An event can belong to multiple categories (e.g. a firewall event is both Firewall and Security). The first entry is the "primary" category. Use the `/events/types` endpoint to discover the full list of categories.
*/
export const Categories = {
Account: "account",
Ai: "ai",
AiGateway: "ai-gateway",
Billing: "billing",
Deployment: "deployment",
Domain: "domain",
Edge: "edge",
EnvVariable: "env-variable",
FeatureFlags: "feature-flags",
Firewall: "firewall",
Integration: "integration",
Microfrontends: "microfrontends",
Network: "network",
Observability: "observability",
Other: "other",
Project: "project",
Security: "security",
Storage: "storage",
Team: "team",
V0: "v0",
VercelApp: "vercel-app",
Workflow: "workflow",
};
export const UserEventPrincipal3Type = {
System: "system",
};
export const UserEventPrincipalType = {
App: "app",
};
export const PrincipalType = {
User: "user",
};
export const UserEventVia3Type = {
System: "system",
};
export const UserEventViaType = {
App: "app",
};
export const ViaType = {
User: "user",
};
export const PayloadOrigin = {
App: "app",
Apple: "apple",
Bitbucket: "bitbucket",
Chatgpt: "chatgpt",
Email: "email",
Emu: "emu",
Github: "github",
GithubWebhook: "github-webhook",
Gitlab: "gitlab",
Google: "google",
Invite: "invite",
Manual: "manual",
Otp: "otp",
Passkey: "passkey",
Saml: "saml",
Sms: "sms",
TokenExchangeOidc: "token-exchange-oidc",
};
/**
* The token prefix used when showing a safe checksum-style fingerprint.
*/
export const PayloadTokenPrefix = {
Vcp: "vcp_",
};
/**
* How the token was issued. Always `'manual'` for explicit PAT creation.
*/
export const Origin = {
App: "app",
Apple: "apple",
Bitbucket: "bitbucket",
Chatgpt: "chatgpt",
Email: "email",
Emu: "emu",
Github: "github",
GithubWebhook: "github-webhook",
Gitlab: "gitlab",
Google: "google",
Invite: "invite",
Manual: "manual",
Otp: "otp",
Passkey: "passkey",
Saml: "saml",
Sms: "sms",
TokenExchangeOidc: "token-exchange-oidc",
};
/**
* Scope of the token: - `'user'`: full-account token (not tied to any team). - `'team'`: scoped to a single team. - `'project'`: scoped to a single project within a team.
*/
export const PayloadScope = {
Project: "project",
Team: "team",
User: "user",
};
export const GrantType = {
AuthorizationCode: "authorization_code",
UrnIetfParamsOauthGrantTypeDeviceCode: "urn:ietf:params:oauth:grant-type:device_code",
};
export const AuthMethod = {
App: "app",
Apple: "apple",
Bitbucket: "bitbucket",
Chatgpt: "chatgpt",
Email: "email",
Emu: "emu",
Github: "github",
GithubWebhook: "github-webhook",
Gitlab: "gitlab",
Google: "google",
Invite: "invite",
Manual: "manual",
Otp: "otp",
Passkey: "passkey",
Saml: "saml",
Sms: "sms",
TokenExchangeOidc: "token-exchange-oidc",
};
export const Method = {
ClientSecretBasic: "client_secret_basic",
ClientSecretJwt: "client_secret_jwt",
ClientSecretPost: "client_secret_post",
None: "none",
OidcToken: "oidc_token",
PrivateKeyJwt: "private_key_jwt",
};
/**
* optional since entries prior to 2026-04-23 do not contain this field
*/
export const TokenPrefix = {
Vca: "vca_",
};
/**
* optional; only present when a refresh token was issued (offline_access).
*/
export const RefreshTokenPrefix = {
Vcr: "vcr_",
};
export const Tier = {
Plus: "plus",
Pro: "pro",
};
export const ActorType = {
Admin: "admin",
User: "user",
};
export const UserEventPayload332Provider = {
Apple: "apple",
Bitbucket: "bitbucket",
Chatgpt: "chatgpt",
Github: "github",
GithubCustomHost: "github-custom-host",
GithubLimited: "github-limited",
Gitlab: "gitlab",
Google: "google",
};
export const Previous2 = {
Billing: "BILLING",
Contributor: "CONTRIBUTOR",
Developer: "DEVELOPER",
Member: "MEMBER",
Owner: "OWNER",
Security: "SECURITY",
Viewer: "VIEWER",
ViewerForPlus: "VIEWER_FOR_PLUS",
};
export const Next2 = {
Billing: "BILLING",
Contributor: "CONTRIBUTOR",
Developer: "DEVELOPER",
Member: "MEMBER",
Owner: "OWNER",
Security: "SECURITY",
Viewer: "VIEWER",
ViewerForPlus: "VIEWER_FOR_PLUS",
};
export const Scope = {
Dashboard: "dashboard",
LogDrains: "log-drains",
};
export const PayloadEnabled = {
Default: "default",
Off: "off",
On: "on",
};
export const PayloadConsent = {
Granted: "granted",
Refused: "refused",
};
export const PayloadPlan = {
Enterprise: "enterprise",
Hobby: "hobby",
Pro: "pro",
};
export const Plan = {
Enterprise: "enterprise",
Hobby: "hobby",
Pro: "pro",
};
export const Source = {
AccountUpdate: "account-update",
Bitbucket: "bitbucket",
Dsync: "dsync",
Feedback: "feedback",
Github: "github",
Gitlab: "gitlab",
Import: "import",
Link: "link",
Mail: "mail",
NsnbAutoApprove: "nsnb-auto-approve",
NsnbHobbyUpgrade: "nsnb-hobby-upgrade",
NsnbInvite: "nsnb-invite",
NsnbRedeploy: "nsnb-redeploy",
NsnbRedeployAttributionCard: "nsnb-redeploy-attribution-card",
NsnbRequestAccess: "nsnb-request-access",
NsnbViewerUpgrade: "nsnb-viewer-upgrade",
OrganizationTeams: "organization-teams",
Saml: "saml",
Teams: "teams",
};
export const PayloadRole = {
Billing: "BILLING",
Contributor: "CONTRIBUTOR",
Developer: "DEVELOPER",
Member: "MEMBER",
Owner: "OWNER",
Security: "SECURITY",
Viewer: "VIEWER",
ViewerForPlus: "VIEWER_FOR_PLUS",
};
export const PreviousPlan = {
Enterprise: "enterprise",
Hobby: "hobby",
Pro: "pro",
};
export const NewPlan = {
Enterprise: "enterprise",
Hobby: "hobby",
Pro: "pro",
};
/** @internal */
export const UserEventType$inboundSchema = z.nativeEnum(UserEventType);
/** @internal */
export const Entities$inboundSchema = z.object({
type: UserEventType$inboundSchema,
start: types.number(),
end: types.number(),
});
export function entitiesFromJSON(jsonString) {
return safeParse(jsonString, (x) => Entities$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Entities' from JSON`);
}
/** @internal */
export const Type$inboundSchema = z.nativeEnum(Type);
/** @internal */
export const Categories$inboundSchema = z
.nativeEnum(Categories);
/** @internal */
export const User$inboundSchema = z
.object({
slug: types.optional(types.string()),
avatar: types.string(),
uid: types.string(),
email: types.string(),
username: types.string(),
});
export function userFromJSON(jsonString) {
return safeParse(jsonString, (x) => User$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'User' from JSON`);
}
/** @internal */
export const UserEventPrincipal3Type$inboundSchema = z.nativeEnum(UserEventPrincipal3Type);
/** @internal */
export const Three$inboundSchema = z
.object({
type: UserEventPrincipal3Type$inboundSchema,
});
export function threeFromJSON(jsonString) {
return safeParse(jsonString, (x) => Three$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Three' from JSON`);
}
/** @internal */
export const UserEventPrincipalType$inboundSchema = z.nativeEnum(UserEventPrincipalType);
/** @internal */
export const Two$inboundSchema = z
.object({
type: UserEventPrincipalType$inboundSchema,
clientId: types.string(),
name: types.string(),
});
export function twoFromJSON(jsonString) {
return safeParse(jsonString, (x) => Two$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Two' from JSON`);
}
/** @internal */
export const PrincipalType$inboundSchema = z.nativeEnum(PrincipalType);
/** @internal */
export const One$inboundSchema = z
.object({
type: types.optional(PrincipalType$inboundSchema),
avatar: types.string(),
email: types.string(),
slug: types.optional(types.string()),
uid: types.string(),
username: types.string(),
});
export function oneFromJSON(jsonString) {
return safeParse(jsonString, (x) => One$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'One' from JSON`);
}
/** @internal */
export const Principal$inboundSchema = smartUnion([
z.lazy(() => One$inboundSchema),
z.lazy(() => Two$inboundSchema),
z.lazy(() => Three$inboundSchema),
]);
export function principalFromJSON(jsonString) {
return safeParse(jsonString, (x) => Principal$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Principal' from JSON`);
}
/** @internal */
export const UserEventVia3Type$inboundSchema = z.nativeEnum(UserEventVia3Type);
/** @internal */
export const Via3$inboundSchema = z
.object({
type: UserEventVia3Type$inboundSchema,
});
export function via3FromJSON(jsonString) {
return safeParse(jsonString, (x) => Via3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Via3' from JSON`);
}
/** @internal */
export const UserEventViaType$inboundSchema = z.nativeEnum(UserEventViaType);
/** @internal */
export const Via2$inboundSchema = z
.object({
type: UserEventViaType$inboundSchema,
clientId: types.string(),
name: types.string(),
});
export function via2FromJSON(jsonString) {
return safeParse(jsonString, (x) => Via2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Via2' from JSON`);
}
/** @internal */
export const ViaType$inboundSchema = z
.nativeEnum(ViaType);
/** @internal */
export const Via1$inboundSchema = z
.object({
type: types.optional(ViaType$inboundSchema),
avatar: types.string(),
email: types.string(),
slug: types.optional(types.string()),
uid: types.string(),
username: types.string(),
});
export function via1FromJSON(jsonString) {
return safeParse(jsonString, (x) => Via1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Via1' from JSON`);
}
/** @internal */
export const Via$inboundSchema = smartUnion([
z.lazy(() => Via1$inboundSchema),
z.lazy(() => Via2$inboundSchema),
z.lazy(() => Via3$inboundSchema),
]);
export function viaFromJSON(jsonString) {
return safeParse(jsonString, (x) => Via$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Via' from JSON`);
}
/** @internal */
export const UserEventPayload356Names$inboundSchema = z.object({
en: types.string(),
});
export function userEventPayload356NamesFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload356Names$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload356Names' from JSON`);
}
/** @internal */
export const UserEventPayload356City$inboundSchema = z.object({
names: z.lazy(() => UserEventPayload356Names$inboundSchema),
});
export function userEventPayload356CityFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload356City$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload356City' from JSON`);
}
/** @internal */
export const UserEventPayload356GeolocationNames$inboundSchema = z.object({
en: types.string(),
});
export function userEventPayload356GeolocationNamesFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload356GeolocationNames$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload356GeolocationNames' from JSON`);
}
/** @internal */
export const UserEventPayload356Country$inboundSchema = z.object({
names: z.lazy(() => UserEventPayload356GeolocationNames$inboundSchema),
});
export function userEventPayload356CountryFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload356Country$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload356Country' from JSON`);
}
/** @internal */
export const UserEventPayload356GeolocationMostSpecificSubdivisionNames$inboundSchema = z.object({
en: types.string(),
});
export function userEventPayload356GeolocationMostSpecificSubdivisionNamesFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload356GeolocationMostSpecificSubdivisionNames$inboundSchema
.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload356GeolocationMostSpecificSubdivisionNames' from JSON`);
}
/** @internal */
export const UserEventPayload356MostSpecificSubdivision$inboundSchema = z.object({
names: z.lazy(() => UserEventPayload356GeolocationMostSpecificSubdivisionNames$inboundSchema),
});
export function userEventPayload356MostSpecificSubdivisionFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload356MostSpecificSubdivision$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload356MostSpecificSubdivision' from JSON`);
}
/** @internal */
export const UserEventPayload356Geolocation$inboundSchema = z.object({
city: types.optional(z.lazy(() => UserEventPayload356City$inboundSchema)),
country: z.lazy(() => UserEventPayload356Country$inboundSchema),
most_specific_subdivision: types.optional(z.lazy(() => UserEventPayload356MostSpecificSubdivision$inboundSchema)),
regionName: types.optional(types.string()),
}).transform((v) => {
return remap$(v, {
"most_specific_subdivision": "mostSpecificSubdivision",
});
});
export function userEventPayload356GeolocationFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload356Geolocation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload356Geolocation' from JSON`);
}
/** @internal */
export const ThreeHundredAndFiftySix$inboundSchema = z.object({
deletedCount: types.number(),
actorTokenId: types.string(),
ip: z.nullable(types.string()).optional(),
geolocation: z.nullable(z.lazy(() => UserEventPayload356Geolocation$inboundSchema)).optional(),
userAgent: types.optional(types.string()),
reqId: types.optional(types.string()),
reqUrl: types.optional(types.string()),
});
export function threeHundredAndFiftySixFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndFiftySix$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndFiftySix' from JSON`);
}
/** @internal */
export const PayloadOrigin$inboundSchema = z.nativeEnum(PayloadOrigin);
/** @internal */
export const UserEventPayload355Names$inboundSchema = z.object({
en: types.string(),
});
export function userEventPayload355NamesFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload355Names$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload355Names' from JSON`);
}
/** @internal */
export const UserEventPayload355City$inboundSchema = z.object({
names: z.lazy(() => UserEventPayload355Names$inboundSchema),
});
export function userEventPayload355CityFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload355City$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload355City' from JSON`);
}
/** @internal */
export const UserEventPayload355GeolocationNames$inboundSchema = z.object({
en: types.string(),
});
export function userEventPayload355GeolocationNamesFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload355GeolocationNames$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload355GeolocationNames' from JSON`);
}
/** @internal */
export const UserEventPayload355Country$inboundSchema = z.object({
names: z.lazy(() => UserEventPayload355GeolocationNames$inboundSchema),
});
export function userEventPayload355CountryFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload355Country$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload355Country' from JSON`);
}
/** @internal */
export const UserEventPayload355GeolocationMostSpecificSubdivisionNames$inboundSchema = z.object({
en: types.string(),
});
export function userEventPayload355GeolocationMostSpecificSubdivisionNamesFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload355GeolocationMostSpecificSubdivisionNames$inboundSchema
.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload355GeolocationMostSpecificSubdivisionNames' from JSON`);
}
/** @internal */
export const UserEventPayload355MostSpecificSubdivision$inboundSchema = z.object({
names: z.lazy(() => UserEventPayload355GeolocationMostSpecificSubdivisionNames$inboundSchema),
});
export function userEventPayload355MostSpecificSubdivisionFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload355MostSpecificSubdivision$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload355MostSpecificSubdivision' from JSON`);
}
/** @internal */
export const UserEventPayload355Geolocation$inboundSchema = z.object({
city: types.optional(z.lazy(() => UserEventPayload355City$inboundSchema)),
country: z.lazy(() => UserEventPayload355Country$inboundSchema),
most_specific_subdivision: types.optional(z.lazy(() => UserEventPayload355MostSpecificSubdivision$inboundSchema)),
regionName: types.optional(types.string()),
}).transform((v) => {
return remap$(v, {
"most_specific_subdivision": "mostSpecificSubdivision",
});
});
export function userEventPayload355GeolocationFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload355Geolocation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload355Geolocation' from JSON`);
}
/** @internal */
export const ThreeHundredAndFiftyFive$inboundSchema = z.object({
tokenId: types.string(),
tokenType: types.string(),
tokenName: types.string(),
actorTokenId: types.string(),
origin: types.optional(PayloadOrigin$inboundSchema),
teamId: types.optional(types.string()),
expired: types.optional(types.boolean()),
leaked: types.optional(types.boolean()),
revoked: types.optional(types.boolean()),
ip: z.nullable(types.string()).optional(),
geolocation: z.nullable(z.lazy(() => UserEventPayload355Geolocation$inboundSchema)).optional(),
userAgent: types.optional(types.string()),
reqId: types.optional(types.string()),
reqUrl: types.optional(types.string()),
});
export function threeHundredAndFiftyFiveFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndFiftyFive$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndFiftyFive' from JSON`);
}
/** @internal */
export const PayloadTokenPrefix$inboundSchema = z.nativeEnum(PayloadTokenPrefix);
/** @internal */
export const Origin$inboundSchema = z
.nativeEnum(Origin);
/** @internal */
export const PayloadScope$inboundSchema = z.nativeEnum(PayloadScope);
/** @internal */
export const UserEventPayload354Names$inboundSchema = z.object({
en: types.string(),
});
export function userEventPayload354NamesFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload354Names$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload354Names' from JSON`);
}
/** @internal */
export const UserEventPayload354City$inboundSchema = z.object({
names: z.lazy(() => UserEventPayload354Names$inboundSchema),
});
export function userEventPayload354CityFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload354City$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload354City' from JSON`);
}
/** @internal */
export const UserEventPayload354GeolocationNames$inboundSchema = z.object({
en: types.string(),
});
export function userEventPayload354GeolocationNamesFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload354GeolocationNames$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload354GeolocationNames' from JSON`);
}
/** @internal */
export const UserEventPayload354Country$inboundSchema = z.object({
names: z.lazy(() => UserEventPayload354GeolocationNames$inboundSchema),
});
export function userEventPayload354CountryFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload354Country$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload354Country' from JSON`);
}
/** @internal */
export const UserEventPayload354GeolocationMostSpecificSubdivisionNames$inboundSchema = z.object({
en: types.string(),
});
export function userEventPayload354GeolocationMostSpecificSubdivisionNamesFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload354GeolocationMostSpecificSubdivisionNames$inboundSchema
.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload354GeolocationMostSpecificSubdivisionNames' from JSON`);
}
/** @internal */
export const UserEventPayload354MostSpecificSubdivision$inboundSchema = z.object({
names: z.lazy(() => UserEventPayload354GeolocationMostSpecificSubdivisionNames$inboundSchema),
});
export function userEventPayload354MostSpecificSubdivisionFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload354MostSpecificSubdivision$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload354MostSpecificSubdivision' from JSON`);
}
/** @internal */
export const UserEventPayload354Geolocation$inboundSchema = z.object({
city: types.optional(z.lazy(() => UserEventPayload354City$inboundSchema)),
country: z.lazy(() => UserEventPayload354Country$inboundSchema),
most_specific_subdivision: types.optional(z.lazy(() => UserEventPayload354MostSpecificSubdivision$inboundSchema)),
regionName: types.optional(types.string()),
}).transform((v) => {
return remap$(v, {
"most_specific_subdivision": "mostSpecificSubdivision",
});
});
export function userEventPayload354GeolocationFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload354Geolocation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload354Geolocation' from JSON`);
}
/** @internal */
export const ThreeHundredAndFiftyFour$inboundSchema = z.object({
tokenId: types.string(),
tokenPrefix: types.optional(PayloadTokenPrefix$inboundSchema),
tokenSuffix: types.optional(types.string()),
tokenName: types.string(),
origin: Origin$inboundSchema,
scope: PayloadScope$inboundSchema,
teamId: types.optional(types.string()),
teamSlug: types.optional(types.string()),
projectId: types.optional(types.string()),
expiresAt: types.optional(types.number()),
hasAuthorizationDetails: types.optional(types.boolean()),
ip: z.nullable(types.string()).optional(),
geolocation: z.nullable(z.lazy(() => UserEventPayload354Geolocation$inboundSchema)).optional(),
userAgent: types.optional(types.string()),
reqId: types.optional(types.string()),
reqUrl: types.optional(types.string()),
});
export function threeHundredAndFiftyFourFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndFiftyFour$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndFiftyFour' from JSON`);
}
/** @internal */
export const GrantType$inboundSchema = z
.nativeEnum(GrantType);
/** @internal */
export const AuthMethod$inboundSchema = z
.nativeEnum(AuthMethod);
/** @internal */
export const Method$inboundSchema = z
.nativeEnum(Method);
/** @internal */
export const ClientAuthenticationUsed$inboundSchema = z.object({
method: Method$inboundSchema,
secretId: types.optional(types.string()),
});
export function clientAuthenticationUsedFromJSON(jsonString) {
return safeParse(jsonString, (x) => ClientAuthenticationUsed$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ClientAuthenticationUsed' from JSON`);
}
/** @internal */
export const PayloadApp$inboundSchema = z.object({
clientId: types.string(),
name: types.string(),
clientAuthenticationUsed: z.lazy(() => ClientAuthenticationUsed$inboundSchema),
});
export function payloadAppFromJSON(jsonString) {
return safeParse(jsonString, (x) => PayloadApp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PayloadApp' from JSON`);
}
/** @internal */
export const TokenPrefix$inboundSchema = z
.nativeEnum(TokenPrefix);
/** @internal */
export const RefreshTokenPrefix$inboundSchema = z.nativeEnum(RefreshTokenPrefix);
/** @internal */
export const UserEventPayload353Names$inboundSchema = z.object({
en: types.string(),
});
export function userEventPayload353NamesFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload353Names$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload353Names' from JSON`);
}
/** @internal */
export const UserEventPayloadCity$inboundSchema = z.object({
names: z.lazy(() => UserEventPayload353Names$inboundSchema),
});
export function userEventPayloadCityFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayloadCity$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayloadCity' from JSON`);
}
/** @internal */
export const UserEventPayload353GeolocationNames$inboundSchema = z.object({
en: types.string(),
});
export function userEventPayload353GeolocationNamesFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload353GeolocationNames$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload353GeolocationNames' from JSON`);
}
/** @internal */
export const UserEventPayloadCountry$inboundSchema = z.object({
names: z.lazy(() => UserEventPayload353GeolocationNames$inboundSchema),
});
export function userEventPayloadCountryFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayloadCountry$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayloadCountry' from JSON`);
}
/** @internal */
export const UserEventPayload353GeolocationMostSpecificSubdivisionNames$inboundSchema = z.object({
en: types.string(),
});
export function userEventPayload353GeolocationMostSpecificSubdivisionNamesFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload353GeolocationMostSpecificSubdivisionNames$inboundSchema
.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload353GeolocationMostSpecificSubdivisionNames' from JSON`);
}
/** @internal */
export const UserEventPayloadMostSpecificSubdivision$inboundSchema = z.object({
names: z.lazy(() => UserEventPayload353GeolocationMostSpecificSubdivisionNames$inboundSchema),
});
export function userEventPayloadMostSpecificSubdivisionFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayloadMostSpecificSubdivision$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayloadMostSpecificSubdivision' from JSON`);
}
/** @internal */
export const UserEventPayloadGeolocation$inboundSchema = z.object({
city: types.optional(z.lazy(() => UserEventPayloadCity$inboundSchema)),
country: z.lazy(() => UserEventPayloadCountry$inboundSchema),
most_specific_subdivision: types.optional(z.lazy(() => UserEventPayloadMostSpecificSubdivision$inboundSchema)),
regionName: types.optional(types.string()),
}).transform((v) => {
return remap$(v, {
"most_specific_subdivision": "mostSpecificSubdivision",
});
});
export function userEventPayloadGeolocationFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayloadGeolocation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayloadGeolocation' from JSON`);
}
/** @internal */
export const ThreeHundredAndFiftyThree$inboundSchema = z.object({
grantType: GrantType$inboundSchema,
appName: types.string(),
atTTL: types.number(),
rtTTL: types.optional(types.number()),
scope: types.string(),
authMethod: AuthMethod$inboundSchema,
app: types.optional(z.lazy(() => PayloadApp$inboundSchema)),
includesRefreshToken: types.optional(types.boolean()),
publicId: types.optional(types.string()),
tokenPrefix: types.optional(TokenPrefix$inboundSchema),
tokenSuffix: types.optional(types.string()),
refreshTokenPublicId: types.optional(types.string()),
refreshTokenPrefix: types.optional(RefreshTokenPrefix$inboundSchema),
refreshTokenSuffix: types.optional(types.string()),
sessionId: types.optional(types.string()),
ip: z.nullable(types.string()).optional(),
geolocation: z.nullable(z.lazy(() => UserEventPayloadGeolocation$inboundSchema)).optional(),
userAgent: types.optional(types.string()),
});
export function threeHundredAndFiftyThreeFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndFiftyThree$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndFiftyThree' from JSON`);
}
/** @internal */
export const ThreeHundredAndFiftyTwo$inboundSchema = z.object({
deploymentId: types.string(),
projectId: types.string(),
runId: types.string(),
});
export function threeHundredAndFiftyTwoFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndFiftyTwo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndFiftyTwo' from JSON`);
}
/** @internal */
export const ThreeHundredAndFiftyOne$inboundSchema = z.object({
chatId: types.string(),
chatTitle: types.optional(types.string()),
messageId: types.string(),
});
export function threeHundredAndFiftyOneFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndFiftyOne$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndFiftyOne' from JSON`);
}
/** @internal */
export const ThreeHundredAndFifty$inboundSchema = z.object({
model: types.string(),
useCase: types.string(),
});
export function threeHundredAndFiftyFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndFifty$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndFifty' from JSON`);
}
/** @internal */
export const ThreeHundredAndFortyNine$inboundSchema = z.object({
chatId: types.string(),
chatTitle: types.optional(types.string()),
});
export function threeHundredAndFortyNineFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndFortyNine$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndFortyNine' from JSON`);
}
/** @internal */
export const ThreeHundredAndFortyEight$inboundSchema = z.object({
id: types.string(),
url: types.string(),
});
export function threeHundredAndFortyEightFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndFortyEight$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndFortyEight' from JSON`);
}
/** @internal */
export const Tier$inboundSchema = z.nativeEnum(Tier);
/** @internal */
export const ThreeHundredAndFortySeven$inboundSchema = z.object({
tier: Tier$inboundSchema,
});
export function threeHundredAndFortySevenFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndFortySeven$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndFortySeven' from JSON`);
}
/** @internal */
export const UserEventPayload346Team$inboundSchema = z.object({
id: types.string(),
name: types.string(),
});
export function userEventPayload346TeamFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload346Team$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload346Team' from JSON`);
}
/** @internal */
export const UserEventPayload346Configuration$inboundSchema = z.object({
id: types.string(),
name: types.optional(types.string()),
});
export function userEventPayload346ConfigurationFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload346Configuration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload346Configuration' from JSON`);
}
/** @internal */
export const UserEventPayloadPeering$inboundSchema = z.object({
id: types.string(),
name: types.optional(types.string()),
});
export function userEventPayloadPeeringFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayloadPeering$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayloadPeering' from JSON`);
}
/** @internal */
export const ThreeHundredAndFortySix$inboundSchema = z.object({
team: z.lazy(() => UserEventPayload346Team$inboundSchema),
configuration: z.lazy(() => UserEventPayload346Configuration$inboundSchema),
peering: z.lazy(() => UserEventPayloadPeering$inboundSchema),
newName: types.optional(types.string()),
});
export function threeHundredAndFortySixFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndFortySix$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndFortySix' from JSON`);
}
/** @internal */
export const UserEventPayload345Team$inboundSchema = z.object({
id: types.string(),
name: types.string(),
});
export function userEventPayload345TeamFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload345Team$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload345Team' from JSON`);
}
/** @internal */
export const UserEventPayload345Configuration$inboundSchema = z.object({
id: types.string(),
name: types.optional(types.string()),
});
export function userEventPayload345ConfigurationFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload345Configuration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload345Configuration' from JSON`);
}
/** @internal */
export const PayloadPeering$inboundSchema = z.object({
id: types.string(),
name: types.optional(types.string()),
});
export function payloadPeeringFromJSON(jsonString) {
return safeParse(jsonString, (x) => PayloadPeering$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PayloadPeering' from JSON`);
}
/** @internal */
export const ThreeHundredAndFortyFive$inboundSchema = z.object({
team: z.lazy(() => UserEventPayload345Team$inboundSchema),
configuration: z.lazy(() => UserEventPayload345Configuration$inboundSchema),
peering: z.lazy(() => PayloadPeering$inboundSchema),
});
export function threeHundredAndFortyFiveFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndFortyFive$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndFortyFive' from JSON`);
}
/** @internal */
export const UserEventPayload344Team$inboundSchema = z.object({
id: types.string(),
name: types.string(),
});
export function userEventPayload344TeamFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload344Team$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload344Team' from JSON`);
}
/** @internal */
export const UserEventPayload344Configuration$inboundSchema = z.object({
id: types.string(),
name: types.optional(types.string()),
});
export function userEventPayload344ConfigurationFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload344Configuration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload344Configuration' from JSON`);
}
/** @internal */
export const Peering$inboundSchema = z.object({
id: types.string(),
accountId: types.string(),
region: types.string(),
vpcId: types.string(),
});
export function peeringFromJSON(jsonString) {
return safeParse(jsonString, (x) => Peering$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Peering' from JSON`);
}
/** @internal */
export const ThreeHundredAndFortyFour$inboundSchema = z.object({
team: z.lazy(() => UserEventPayload344Team$inboundSchema),
configuration: z.lazy(() => UserEventPayload344Configuration$inboundSchema),
peering: z.lazy(() => Peering$inboundSchema),
});
export function threeHundredAndFortyFourFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndFortyFour$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndFortyFour' from JSON`);
}
/** @internal */
export const ThreeHundredAndFortyThree$inboundSchema = z.object({
vulnerabilities: z.array(types.string()),
protectionEnabled: types.boolean(),
protectedProjectCount: types.number(),
});
export function threeHundredAndFortyThreeFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndFortyThree$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndFortyThree' from JSON`);
}
/** @internal */
export const ThreeHundredAndFortyTwo$inboundSchema = z.object({
customAlertTitle: types.string(),
});
export function threeHundredAndFortyTwoFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndFortyTwo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndFortyTwo' from JSON`);
}
/** @internal */
export const ThreeHundredAndFortyOne$inboundSchema = z.object({
ruleName: types.string(),
});
export function threeHundredAndFortyOneFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndFortyOne$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndFortyOne' from JSON`);
}
/** @internal */
export const ThreeHundredAndForty$inboundSchema = z.object({
email: types.string(),
prevEmail: types.string(),
});
export function threeHundredAndFortyFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndForty$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndForty' from JSON`);
}
/** @internal */
export const ThreeHundredAndThirtyNine$inboundSchema = z.object({
enabled: types.boolean(),
totpVerified: types.boolean(),
});
export function threeHundredAndThirtyNineFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndThirtyNine$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndThirtyNine' from JSON`);
}
/** @internal */
export const Mfa$inboundSchema = z
.object({
enabled: types.boolean(),
totpVerified: types.boolean(),
});
export function mfaFromJSON(jsonString) {
return safeParse(jsonString, (x) => Mfa$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Mfa' from JSON`);
}
/** @internal */
export const ThreeHundredAndThirtyEight$inboundSchema = z.object({
mfa: z.lazy(() => Mfa$inboundSchema),
});
export function threeHundredAndThirtyEightFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndThirtyEight$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndThirtyEight' from JSON`);
}
/** @internal */
export const ThreeHundredAndThirtySeven$inboundSchema = z.object({
mfaEnabled: types.boolean(),
});
export function threeHundredAndThirtySevenFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndThirtySeven$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndThirtySeven' from JSON`);
}
/** @internal */
export const UserEventPayload336Previous$inboundSchema = z.object({
enabled: types.boolean(),
totpVerified: types.boolean(),
});
export function userEventPayload336PreviousFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload336Previous$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload336Previous' from JSON`);
}
/** @internal */
export const UserEventPayload336Next$inboundSchema = z.object({
enabled: types.boolean(),
totpVerified: types.boolean(),
});
export function userEventPayload336NextFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload336Next$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload336Next' from JSON`);
}
/** @internal */
export const ThreeHundredAndThirtySix$inboundSchema = z.object({
previous: z.lazy(() => UserEventPayload336Previous$inboundSchema),
next: z.lazy(() => UserEventPayload336Next$inboundSchema),
});
export function threeHundredAndThirtySixFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndThirtySix$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndThirtySix' from JSON`);
}
/** @internal */
export const ThreeHundredAndThirtyFive$inboundSchema = z.object({
username: types.string(),
});
export function threeHundredAndThirtyFiveFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndThirtyFive$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndThirtyFive' from JSON`);
}
/** @internal */
export const ThreeHundredAndThirtyFour$inboundSchema = z.object({
deletedAt: z.nullable(types.number()).optional(),
username: types.string(),
});
export function threeHundredAndThirtyFourFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndThirtyFour$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndThirtyFour' from JSON`);
}
/** @internal */
export const ActorType$inboundSchema = z
.nativeEnum(ActorType);
/** @internal */
export const ThreeHundredAndThirtyThree$inboundSchema = z.object({
totp: types.boolean(),
recoveryCodes: types.number(),
actorId: types.optional(types.string()),
actorType: types.optional(ActorType$inboundSchema),
reason: types.optional(types.string()),
});
export function threeHundredAndThirtyThreeFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndThirtyThree$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndThirtyThree' from JSON`);
}
/** @internal */
export const UserEventPayload332Provider$inboundSchema = z.nativeEnum(UserEventPayload332Provider);
/** @internal */
export const ThreeHundredAndThirtyTwo$inboundSchema = z.object({
provider: UserEventPayload332Provider$inboundSchema,
login: types.string(),
});
export function threeHundredAndThirtyTwoFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndThirtyTwo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndThirtyTwo' from JSON`);
}
/** @internal */
export const ThreeHundredAndThirtyOne$inboundSchema = z.object({
slug: types.optional(types.string()),
});
export function threeHundredAndThirtyOneFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndThirtyOne$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndThirtyOne' from JSON`);
}
/** @internal */
export const ThreeHundredAndThirty$inboundSchema = z.object({
fileId: types.string(),
});
export function threeHundredAndThirtyFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndThirty$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndThirty' from JSON`);
}
/** @internal */
export const ThreeHundredAndTwentyNine$inboundSchema = z.object({
exportId: types.string(),
from: types.number(),
to: types.number(),
format: types.string(),
});
export function threeHundredAndTwentyNineFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndTwentyNine$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndTwentyNine' from JSON`);
}
/** @internal */
export const ThreeHundredAndTwentyEight$inboundSchema = z.object({
tokenTypes: z.array(types.string()),
});
export function threeHundredAndTwentyEightFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndTwentyEight$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndTwentyEight' from JSON`);
}
/** @internal */
export const ThreeHundredAndTwentySeven$inboundSchema = z.object({
domain: types.string(),
ips: z.array(types.string()),
});
export function threeHundredAndTwentySevenFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndTwentySeven$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndTwentySeven' from JSON`);
}
/** @internal */
export const Previous2$inboundSchema = z
.nativeEnum(Previous2);
/** @internal */
export const Previous1$inboundSchema = z.object({
accessGroupId: types.string(),
});
export function previous1FromJSON(jsonString) {
return safeParse(jsonString, (x) => Previous1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Previous1' from JSON`);
}
/** @internal */
export const UserEventPayload326Previous$inboundSchema = smartUnion([
z.lazy(() => Previous1$inboundSchema),
Previous2$inboundSchema,
]);
export function userEventPayload326PreviousFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload326Previous$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload326Previous' from JSON`);
}
/** @internal */
export const Next2$inboundSchema = z.nativeEnum(Next2);
/** @internal */
export const Next1$inboundSchema = z
.object({
accessGroupId: types.string(),
});
export function next1FromJSON(jsonString) {
return safeParse(jsonString, (x) => Next1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Next1' from JSON`);
}
/** @internal */
export const UserEventPayload326Next$inboundSchema = smartUnion([z.lazy(() => Next1$inboundSchema), Next2$inboundSchema]);
export function userEventPayload326NextFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload326Next$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload326Next' from JSON`);
}
/** @internal */
export const ThreeHundredAndTwentySix$inboundSchema = z.object({
previous: types.optional(z.record(smartUnion([
z.lazy(() => Previous1$inboundSchema),
Previous2$inboundSchema,
]))),
next: types.optional(z.record(smartUnion([z.lazy(() => Next1$inboundSchema), Next2$inboundSchema]))),
});
export function threeHundredAndTwentySixFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndTwentySix$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndTwentySix' from JSON`);
}
/** @internal */
export const Scope$inboundSchema = z.nativeEnum(Scope);
/** @internal */
export const ThreeHundredAndTwentyFive$inboundSchema = z.object({
enabled: types.boolean(),
scope: Scope$inboundSchema,
});
export function threeHundredAndTwentyFiveFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndTwentyFive$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndTwentyFive' from JSON`);
}
/** @internal */
export const PayloadEnabled$inboundSchema = z.nativeEnum(PayloadEnabled);
/** @internal */
export const ThreeHundredAndTwentyFour$inboundSchema = z.object({
enabled: PayloadEnabled$inboundSchema,
});
export function threeHundredAndTwentyFourFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndTwentyFour$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndTwentyFour' from JSON`);
}
/** @internal */
export const PayloadRemoteCaching$inboundSchema = z.object({
enabled: types.optional(types.boolean()),
});
export function payloadRemoteCachingFromJSON(jsonString) {
return safeParse(jsonString, (x) => PayloadRemoteCaching$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PayloadRemoteCaching' from JSON`);
}
/** @internal */
export const ThreeHundredAndTwentyThree$inboundSchema = z.object({
remoteCaching: types.optional(z.lazy(() => PayloadRemoteCaching$inboundSchema)),
});
export function threeHundredAndTwentyThreeFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndTwentyThree$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndTwentyThree' from JSON`);
}
/** @internal */
export const PayloadConsent$inboundSchema = z.nativeEnum(PayloadConsent);
/** @internal */
export const ThreeHundredAndTwentyTwo$inboundSchema = z.object({
consent: PayloadConsent$inboundSchema,
});
export function threeHundredAndTwentyTwoFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndTwentyTwo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndTwentyTwo' from JSON`);
}
/** @internal */
export const ThreeHundredAndTwentyOne$inboundSchema = z.object({
name: types.optional(types.string()),
});
export function threeHundredAndTwentyOneFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndTwentyOne$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndTwentyOne' from JSON`);
}
/** @internal */
export const ThreeHundredAndTwenty$inboundSchema = z.object({
inviteCode: types.optional(types.string()),
});
export function threeHundredAndTwentyFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndTwenty$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndTwenty' from JSON`);
}
/** @internal */
export const PayloadPlan$inboundSchema = z
.nativeEnum(PayloadPlan);
/** @internal */
export const ThreeHundredAndNineteen$inboundSchema = z.object({
invoiceId: types.string(),
convertedFromTrial: types.boolean(),
plan: PayloadPlan$inboundSchema,
});
export function threeHundredAndNineteenFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndNineteen$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndNineteen' from JSON`);
}
/** @internal */
export const Plan$inboundSchema = z.nativeEnum(Plan);
/** @internal */
export const Trial$inboundSchema = z
.object({
start: types.number(),
end: types.number(),
});
export function trialFromJSON(jsonString) {
return safeParse(jsonString, (x) => Trial$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Trial' from JSON`);
}
/** @internal */
export const ThreeHundredAndEighteen$inboundSchema = z.object({
plan: Plan$inboundSchema,
trial: z.nullable(z.lazy(() => Trial$inboundSchema)).optional(),
});
export function threeHundredAndEighteenFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndEighteen$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndEighteen' from JSON`);
}
/** @internal */
export const ThreeHundredAndSeventeen$inboundSchema = z.object({
previousConcurrentBuilds: types.number(),
nextConcurrentBuilds: types.number(),
});
export function threeHundredAndSeventeenFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndSeventeen$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndSeventeen' from JSON`);
}
/** @internal */
export const ThreeHundredAndSixteen$inboundSchema = z.object({
publicId: types.string(),
name: types.optional(types.string()),
});
export function threeHundredAndSixteenFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndSixteen$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndSixteen' from JSON`);
}
/** @internal */
export const ThreeHundredAndFifteen$inboundSchema = z.object({
publicId: types.string(),
role: types.string(),
maxUses: types.number(),
expiresAt: types.string(),
name: types.optional(types.string()),
});
export function threeHundredAndFifteenFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndFifteen$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndFifteen' from JSON`);
}
/** @internal */
export const ThreeHundredAndFourteen$inboundSchema = z.object({
enforced: types.boolean(),
});
export function threeHundredAndFourteenFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndFourteen$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndFourteen' from JSON`);
}
/** @internal */
export const PayloadUpdatedUser$inboundSchema = z.object({
username: types.string(),
email: types.string(),
});
export function payloadUpdatedUserFromJSON(jsonString) {
return safeParse(jsonString, (x) => PayloadUpdatedUser$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PayloadUpdatedUser' from JSON`);
}
/** @internal */
export const ThreeHundredAndThirteen$inboundSchema = z.object({
directoryType: types.optional(types.string()),
ssoType: types.optional(types.string()),
updatedUser: types.optional(z.lazy(() => PayloadUpdatedUser$inboundSchema)),
role: types.optional(types.string()),
previousRole: types.string(),
updatedUid: types.optional(types.string()),
origin: types.optional(types.string()),
teamSlug: types.optional(types.string()),
});
export function threeHundredAndThirteenFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndThirteen$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndThirteen' from JSON`);
}
/** @internal */
export const Source$inboundSchema = z
.nativeEnum(Source);
/** @internal */
export const ThreeHundredAndTwelve$inboundSchema = z.object({
requestedTeamName: types.string(),
requestedTeamSlug: types.optional(types.string()),
requestedUserName: types.optional(types.string()),
gitUsername: types.optional(types.string()),
githubUsername: types.optional(types.string()),
gitlabUsername: types.optional(types.string()),
bitbucketUsername: types.optional(types.string()),
source: types.optional(Source$inboundSchema),
});
export function threeHundredAndTwelveFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndTwelve$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndTwelve' from JSON`);
}
/** @internal */
export const UpdatedUser$inboundSchema = z.object({
username: types.string(),
email: types.string(),
});
export function updatedUserFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdatedUser$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatedUser' from JSON`);
}
/** @internal */
export const InvitedBy$inboundSchema = z.object({
email: types.string(),
userId: types.optional(types.string()),
name: types.optional(types.string()),
});
export function invitedByFromJSON(jsonString) {
return safeParse(jsonString, (x) => InvitedBy$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InvitedBy' from JSON`);
}
/** @internal */
export const ThreeHundredAndEleven$inboundSchema = z.object({
role: types.optional(types.string()),
uid: types.optional(types.string()),
updatedUid: types.optional(types.string()),
updatedUser: types.optional(z.lazy(() => UpdatedUser$inboundSchema)),
origin: types.optional(types.string()),
teamSlug: types.optional(types.string()),
teamRoles: types.optional(z.array(types.string())),
teamPermissions: types.optional(z.array(types.string())),
entitlements: types.optional(z.array(types.string())),
invitedBy: types.optional(z.lazy(() => InvitedBy$inboundSchema)),
});
export function threeHundredAndElevenFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndEleven$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndEleven' from JSON`);
}
/** @internal */
export const UserEventPayload310User$inboundSchema = z.object({
id: types.string(),
username: types.string(),
});
export function userEventPayload310UserFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload310User$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload310User' from JSON`);
}
/** @internal */
export const ThreeHundredAndTen$inboundSchema = z.object({
entitlement: types.string(),
user: z.lazy(() => UserEventPayload310User$inboundSchema),
previousCanceledAt: types.optional(types.string()),
});
export function threeHundredAndTenFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndTen$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndTen' from JSON`);
}
/** @internal */
export const UserEventPayloadUser$inboundSchema = z.object({
id: types.string(),
username: types.string(),
});
export function userEventPayloadUserFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayloadUser$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayloadUser' from JSON`);
}
/** @internal */
export const ThreeHundredAndNine$inboundSchema = z.object({
entitlement: types.string(),
user: z.lazy(() => UserEventPayloadUser$inboundSchema),
});
export function threeHundredAndNineFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndNine$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndNine' from JSON`);
}
/** @internal */
export const DeletedUser$inboundSchema = z.object({
username: types.string(),
email: types.string(),
});
export function deletedUserFromJSON(jsonString) {
return safeParse(jsonString, (x) => DeletedUser$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeletedUser' from JSON`);
}
/** @internal */
export const PayloadRole$inboundSchema = z
.nativeEnum(PayloadRole);
/** @internal */
export const PreviousPlan$inboundSchema = z.nativeEnum(PreviousPlan);
/** @internal */
export const NewPlan$inboundSchema = z
.nativeEnum(NewPlan);
/** @internal */
export const ThreeHundredAndEight$inboundSchema = z.object({
deletedUser: types.optional(z.lazy(() => DeletedUser$inboundSchema)),
deletedUid: types.optional(types.string()),
githubUsername: z.nullable(types.string()).optional(),
gitlabUsername: z.nullable(types.string()).optional(),
bitbucketUsername: z.nullable(types.string()).optional(),
directoryType: types.optional(types.string()),
role: types.optional(PayloadRole$inboundSchema),
reason: types.optional(types.string()),
previousPlan: types.optional(PreviousPlan$inboundSchema),
newPlan: types.optional(NewPlan$inboundSchema),
automated: types.optional(types.boolean()),
});
export function threeHundredAndEightFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndEight$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndEight' from JSON`);
}
/** @internal */
export const ThreeHundredAndSeven$inboundSchema = z.object({
teamName: types.string(),
username: types.optional(types.string()),
gitUsername: z.nullable(types.string()).optional(),
githubUsername: z.nullable(types.string()).optional(),
gitlabUsername: z.nullable(types.string()).optional(),
bitbucketUsername: z.nullable(types.string()).optional(),
});
export function threeHundredAndSevenFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndSeven$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndSeven' from JSON`);
}
/** @internal */
export const ThreeHundredAndSix$inboundSchema = z.object({
teamName: types.string(),
username: types.optional(types.string()),
gitUsername: types.optional(types.string()),
githubUsername: z.nullable(types.string()).optional(),
gitlabUsername: z.nullable(types.string()).optional(),
bitbucketUsername: z.nullable(types.string()).optional(),
updatedUid: types.optional(types.string()),
teamId: types.optional(types.string()),
});
export function threeHundredAndSixFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndSix$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndSix' from JSON`);
}
/** @internal */
export const InvitedUser$inboundSchema = z.object({
username: types.string(),
email: types.string(),
});
export function invitedUserFromJSON(jsonString) {
return safeParse(jsonString, (x) => InvitedUser$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InvitedUser' from JSON`);
}
/** @internal */
export const ThreeHundredAndFive$inboundSchema = z.object({
directoryType: types.optional(types.string()),
ssoType: types.optional(types.string()),
invitedUser: types.optional(z.lazy(() => InvitedUser$inboundSchema)),
invitedEmail: types.optional(types.string()),
invitationRole: types.optional(types.string()),
entitlements: types.optional(z.array(types.string())),
invitedUid: types.optional(types.string()),
origin: types.optional(types.string()),
teamSlug: types.optional(types.string()),
});
export function threeHundredAndFiveFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndFive$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndFive' from JSON`);
}
/** @internal */
export const ThreeHundredAndFour$inboundSchema = z.object({
deletedCount: types.number(),
inviteIds: z.array(types.string()),
});
export function threeHundredAndFourFromJSON(jsonString) {
return safeParse(jsonString, (x) => ThreeHundredAndFour$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreeHundredAndFour' from JSON`);
}
//# sourceMappingURL=threehundredandfour.js.map