@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,652 lines • 79.2 kB
JavaScript
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import * as z from "zod/v3";
import { safeParse } from "../lib/schemas.js";
import * as types from "../types/primitives.js";
import { smartUnion } from "../types/smartUnion.js";
import { Abuse$inboundSchema, Credentials$inboundSchema, EmailNotifications$inboundSchema, PayloadActiveDashboardViews$inboundSchema, PayloadBilling$inboundSchema, PayloadDataCache$inboundSchema, PayloadDismissedToasts$inboundSchema, PayloadFavoriteProjectsAndSpaces$inboundSchema, PayloadImportFlowGitNamespace$inboundSchema, PayloadImportFlowGitNamespaceId$inboundSchema, PayloadImportFlowGitProvider$inboundSchema, PayloadPreferredScopesAndGitNamespaces$inboundSchema, PayloadResourceConfig$inboundSchema, PayloadSiftRoute$inboundSchema, PayloadSoftBlock$inboundSchema, PreventAutoBlocking$inboundSchema, ResourceLimits$inboundSchema, SecondaryEmails$inboundSchema, SiftScores$inboundSchema, Teams$inboundSchema, UserEventPayload138Type$inboundSchema, UserEventPayloadRemoteCaching$inboundSchema, } from "./usereventpayload138type.js";
/**
* Whether the Vercel Toolbar is enabled for preview deployments.
*/
export const PayloadEnablePreviewFeedback = {
Default: "default",
DefaultForce: "default-force",
Off: "off",
OffForce: "off-force",
On: "on",
OnForce: "on-force",
};
export const BlockReason = {
AdminOverride: "admin_override",
HardBlocked: "hard_blocked",
LimitsExceeded: "limits_exceeded",
};
export const PayloadBlockReason = {
AdminOverride: "admin_override",
HardBlocked: "hard_blocked",
LimitsExceeded: "limits_exceeded",
};
export const BlockType = {
Hard: "hard",
Soft: "soft",
};
export const UserEventPayloadBlockReason = {
AdminOverride: "admin_override",
HardBlocked: "hard_blocked",
LimitsExceeded: "limits_exceeded",
};
export const PayloadBlockType = {
Hard: "hard",
Soft: "soft",
};
export const UserEventPayload138BlockReason = {
AdminOverride: "admin_override",
HardBlocked: "hard_blocked",
LimitsExceeded: "limits_exceeded",
};
export const UserEventPayload138NewOwnerBlockReason = {
AdminOverride: "admin_override",
HardBlocked: "hard_blocked",
LimitsExceeded: "limits_exceeded",
};
export const UserEventPayload138NewOwnerFeatureBlocksBlockReason = {
AdminOverride: "admin_override",
HardBlocked: "hard_blocked",
LimitsExceeded: "limits_exceeded",
};
export const UserEventBlobBlockReason = {
AdminOverride: "admin_override",
HardBlocked: "hard_blocked",
};
export const OverageReason = {
AnalyticsUsage: "analyticsUsage",
Artifacts: "artifacts",
Bandwidth: "bandwidth",
BlobDataTransfer: "blobDataTransfer",
BlobTotalAdvancedRequests: "blobTotalAdvancedRequests",
BlobTotalAvgSizeInBytes: "blobTotalAvgSizeInBytes",
BlobTotalGetResponseObjectSizeInBytes: "blobTotalGetResponseObjectSizeInBytes",
BlobTotalSimpleRequests: "blobTotalSimpleRequests",
ConnectDataTransfer: "connectDataTransfer",
DataCacheRead: "dataCacheRead",
DataCacheWrite: "dataCacheWrite",
EdgeConfigRead: "edgeConfigRead",
EdgeConfigWrite: "edgeConfigWrite",
EdgeFunctionExecutionUnits: "edgeFunctionExecutionUnits",
EdgeMiddlewareInvocations: "edgeMiddlewareInvocations",
EdgeRequest: "edgeRequest",
EdgeRequestAdditionalCpuDuration: "edgeRequestAdditionalCpuDuration",
ElasticConcurrencyBuildSlots: "elasticConcurrencyBuildSlots",
FastDataTransfer: "fastDataTransfer",
FastOriginTransfer: "fastOriginTransfer",
FluidCpuDuration: "fluidCpuDuration",
FluidDuration: "fluidDuration",
FunctionDuration: "functionDuration",
FunctionInvocation: "functionInvocation",
ImageOptimizationCacheRead: "imageOptimizationCacheRead",
ImageOptimizationCacheWrite: "imageOptimizationCacheWrite",
ImageOptimizationTransformation: "imageOptimizationTransformation",
LogDrainsVolume: "logDrainsVolume",
MonitoringMetric: "monitoringMetric",
ObservabilityEvent: "observabilityEvent",
OnDemandConcurrencyMinutes: "onDemandConcurrencyMinutes",
RuntimeCacheRead: "runtimeCacheRead",
RuntimeCacheWrite: "runtimeCacheWrite",
ServerlessFunctionExecution: "serverlessFunctionExecution",
SourceImages: "sourceImages",
WafOwaspExcessBytes: "wafOwaspExcessBytes",
WafOwaspRequests: "wafOwaspRequests",
WafRateLimitRequest: "wafRateLimitRequest",
WebAnalyticsEvent: "webAnalyticsEvent",
};
export const UserEventPostgresBlockReason = {
AdminOverride: "admin_override",
HardBlocked: "hard_blocked",
};
export const PostgresOverageReason = {
AnalyticsUsage: "analyticsUsage",
Artifacts: "artifacts",
Bandwidth: "bandwidth",
BlobDataTransfer: "blobDataTransfer",
BlobTotalAdvancedRequests: "blobTotalAdvancedRequests",
BlobTotalAvgSizeInBytes: "blobTotalAvgSizeInBytes",
BlobTotalGetResponseObjectSizeInBytes: "blobTotalGetResponseObjectSizeInBytes",
BlobTotalSimpleRequests: "blobTotalSimpleRequests",
ConnectDataTransfer: "connectDataTransfer",
DataCacheRead: "dataCacheRead",
DataCacheWrite: "dataCacheWrite",
EdgeConfigRead: "edgeConfigRead",
EdgeConfigWrite: "edgeConfigWrite",
EdgeFunctionExecutionUnits: "edgeFunctionExecutionUnits",
EdgeMiddlewareInvocations: "edgeMiddlewareInvocations",
EdgeRequest: "edgeRequest",
EdgeRequestAdditionalCpuDuration: "edgeRequestAdditionalCpuDuration",
ElasticConcurrencyBuildSlots: "elasticConcurrencyBuildSlots",
FastDataTransfer: "fastDataTransfer",
FastOriginTransfer: "fastOriginTransfer",
FluidCpuDuration: "fluidCpuDuration",
FluidDuration: "fluidDuration",
FunctionDuration: "functionDuration",
FunctionInvocation: "functionInvocation",
ImageOptimizationCacheRead: "imageOptimizationCacheRead",
ImageOptimizationCacheWrite: "imageOptimizationCacheWrite",
ImageOptimizationTransformation: "imageOptimizationTransformation",
LogDrainsVolume: "logDrainsVolume",
MonitoringMetric: "monitoringMetric",
ObservabilityEvent: "observabilityEvent",
OnDemandConcurrencyMinutes: "onDemandConcurrencyMinutes",
RuntimeCacheRead: "runtimeCacheRead",
RuntimeCacheWrite: "runtimeCacheWrite",
ServerlessFunctionExecution: "serverlessFunctionExecution",
SourceImages: "sourceImages",
WafOwaspExcessBytes: "wafOwaspExcessBytes",
WafOwaspRequests: "wafOwaspRequests",
WafRateLimitRequest: "wafRateLimitRequest",
WebAnalyticsEvent: "webAnalyticsEvent",
};
export const UserEventRedisBlockReason = {
AdminOverride: "admin_override",
HardBlocked: "hard_blocked",
};
export const RedisOverageReason = {
AnalyticsUsage: "analyticsUsage",
Artifacts: "artifacts",
Bandwidth: "bandwidth",
BlobDataTransfer: "blobDataTransfer",
BlobTotalAdvancedRequests: "blobTotalAdvancedRequests",
BlobTotalAvgSizeInBytes: "blobTotalAvgSizeInBytes",
BlobTotalGetResponseObjectSizeInBytes: "blobTotalGetResponseObjectSizeInBytes",
BlobTotalSimpleRequests: "blobTotalSimpleRequests",
ConnectDataTransfer: "connectDataTransfer",
DataCacheRead: "dataCacheRead",
DataCacheWrite: "dataCacheWrite",
EdgeConfigRead: "edgeConfigRead",
EdgeConfigWrite: "edgeConfigWrite",
EdgeFunctionExecutionUnits: "edgeFunctionExecutionUnits",
EdgeMiddlewareInvocations: "edgeMiddlewareInvocations",
EdgeRequest: "edgeRequest",
EdgeRequestAdditionalCpuDuration: "edgeRequestAdditionalCpuDuration",
ElasticConcurrencyBuildSlots: "elasticConcurrencyBuildSlots",
FastDataTransfer: "fastDataTransfer",
FastOriginTransfer: "fastOriginTransfer",
FluidCpuDuration: "fluidCpuDuration",
FluidDuration: "fluidDuration",
FunctionDuration: "functionDuration",
FunctionInvocation: "functionInvocation",
ImageOptimizationCacheRead: "imageOptimizationCacheRead",
ImageOptimizationCacheWrite: "imageOptimizationCacheWrite",
ImageOptimizationTransformation: "imageOptimizationTransformation",
LogDrainsVolume: "logDrainsVolume",
MonitoringMetric: "monitoringMetric",
ObservabilityEvent: "observabilityEvent",
OnDemandConcurrencyMinutes: "onDemandConcurrencyMinutes",
RuntimeCacheRead: "runtimeCacheRead",
RuntimeCacheWrite: "runtimeCacheWrite",
ServerlessFunctionExecution: "serverlessFunctionExecution",
SourceImages: "sourceImages",
WafOwaspExcessBytes: "wafOwaspExcessBytes",
WafOwaspRequests: "wafOwaspRequests",
WafRateLimitRequest: "wafRateLimitRequest",
WebAnalyticsEvent: "webAnalyticsEvent",
};
export const UserEventPayload138NewOwnerFeatureBlocksMicrofrontendsRequestBlockReason = {
AdminOverride: "admin_override",
HardBlocked: "hard_blocked",
LimitsExceeded: "limits_exceeded",
};
export const UserEventPayload138NewOwnerFeatureBlocksWorkflowStorageBlockReason = {
AdminOverride: "admin_override",
HardBlocked: "hard_blocked",
LimitsExceeded: "limits_exceeded",
};
export const UserEventPayload138NewOwnerFeatureBlocksWorkflowStepBlockReason = {
AdminOverride: "admin_override",
HardBlocked: "hard_blocked",
LimitsExceeded: "limits_exceeded",
};
export const UserEventPayload138NewOwnerFeatureBlocksConnexTokenRequestsBlockReason = {
AdminOverride: "admin_override",
HardBlocked: "hard_blocked",
LimitsExceeded: "limits_exceeded",
};
export const Version = {
Northstar: "northstar",
};
/**
* The action that occurred
*/
export const UserEventPayload138NewOwnerAction = {
Disabled: "disabled",
Enabled: "enabled",
};
/**
* Method used for the state change - 'totp': User set up TOTP authenticator - 'passkey': User registered a passkey - 'user_disabled': User disabled their own MFA - 'admin_removal': Admin removed MFA via backoffice - 'unknown': Method unknown (for pre-tracking events)
*/
export const PayloadMethod = {
AdminRemoval: "admin_removal",
Passkey: "passkey",
Totp: "totp",
Unknown: "unknown",
UserDisabled: "user_disabled",
};
/**
* Type of actor
*/
export const PayloadActorType = {
Admin: "admin",
User: "user",
};
export const UserEventPayload136Action = {
Disable: "disable",
Enable: "enable",
};
export const UserEventPayload135Action = {
Challenge: "challenge",
Deny: "deny",
Log: "log",
};
export const UserEventPayload134Action = {
Challenge: "challenge",
Deny: "deny",
Log: "log",
};
/**
* The type of this cosmos doc instance, if blank, assume secret.
*/
export const UserEventPayload129Type = {
Encrypted: "encrypted",
Plain: "plain",
Sensitive: "sensitive",
System: "system",
};
/**
* environments this env variable targets
*/
export const UserEventPayload129Target = {
Development: "development",
Preview: "preview",
Production: "production",
};
/**
* The type of this cosmos doc instance, if blank, assume secret.
*/
export const UserEventPayload129NewEnvVarType = {
Encrypted: "encrypted",
Plain: "plain",
Sensitive: "sensitive",
System: "system",
};
/**
* environments this env variable targets
*/
export const UserEventPayload129NewEnvVarTarget = {
Development: "development",
Preview: "preview",
Production: "production",
};
export const OldTarget = {
Development: "development",
Preview: "preview",
Production: "production",
};
export const NewTarget = {
Development: "development",
Preview: "preview",
Production: "production",
};
/**
* The type of this cosmos doc instance, if blank, assume secret.
*/
export const PayloadType = {
Encrypted: "encrypted",
Plain: "plain",
Sensitive: "sensitive",
System: "system",
};
/**
* environments this env variable targets
*/
export const UserEventPayloadTarget = {
Development: "development",
Preview: "preview",
Production: "production",
};
export const UserEventPayload120Type = {
Team: "team",
User: "user",
};
export const UserEventPayload120ToAccountType = {
Team: "team",
User: "user",
};
/** @internal */
export const UsageAlerts$inboundSchema = z.object({
warningAt: z.nullable(types.number()).optional(),
blockingAt: z.nullable(types.number()).optional(),
});
export function usageAlertsFromJSON(jsonString) {
return safeParse(jsonString, (x) => UsageAlerts$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UsageAlerts' from JSON`);
}
/** @internal */
export const AnalyticsUsage$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function analyticsUsageFromJSON(jsonString) {
return safeParse(jsonString, (x) => AnalyticsUsage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnalyticsUsage' from JSON`);
}
/** @internal */
export const Artifacts$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function artifactsFromJSON(jsonString) {
return safeParse(jsonString, (x) => Artifacts$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Artifacts' from JSON`);
}
/** @internal */
export const Bandwidth$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function bandwidthFromJSON(jsonString) {
return safeParse(jsonString, (x) => Bandwidth$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Bandwidth' from JSON`);
}
/** @internal */
export const BlobTotalAdvancedRequests$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function blobTotalAdvancedRequestsFromJSON(jsonString) {
return safeParse(jsonString, (x) => BlobTotalAdvancedRequests$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BlobTotalAdvancedRequests' from JSON`);
}
/** @internal */
export const BlobTotalAvgSizeInBytes$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function blobTotalAvgSizeInBytesFromJSON(jsonString) {
return safeParse(jsonString, (x) => BlobTotalAvgSizeInBytes$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BlobTotalAvgSizeInBytes' from JSON`);
}
/** @internal */
export const BlobTotalGetResponseObjectSizeInBytes$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function blobTotalGetResponseObjectSizeInBytesFromJSON(jsonString) {
return safeParse(jsonString, (x) => BlobTotalGetResponseObjectSizeInBytes$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BlobTotalGetResponseObjectSizeInBytes' from JSON`);
}
/** @internal */
export const BlobTotalSimpleRequests$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function blobTotalSimpleRequestsFromJSON(jsonString) {
return safeParse(jsonString, (x) => BlobTotalSimpleRequests$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BlobTotalSimpleRequests' from JSON`);
}
/** @internal */
export const ConnectDataTransfer$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function connectDataTransferFromJSON(jsonString) {
return safeParse(jsonString, (x) => ConnectDataTransfer$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConnectDataTransfer' from JSON`);
}
/** @internal */
export const DataCacheRead$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function dataCacheReadFromJSON(jsonString) {
return safeParse(jsonString, (x) => DataCacheRead$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataCacheRead' from JSON`);
}
/** @internal */
export const DataCacheWrite$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function dataCacheWriteFromJSON(jsonString) {
return safeParse(jsonString, (x) => DataCacheWrite$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataCacheWrite' from JSON`);
}
/** @internal */
export const EdgeConfigRead$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function edgeConfigReadFromJSON(jsonString) {
return safeParse(jsonString, (x) => EdgeConfigRead$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EdgeConfigRead' from JSON`);
}
/** @internal */
export const EdgeConfigWrite$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function edgeConfigWriteFromJSON(jsonString) {
return safeParse(jsonString, (x) => EdgeConfigWrite$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EdgeConfigWrite' from JSON`);
}
/** @internal */
export const EdgeFunctionExecutionUnits$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function edgeFunctionExecutionUnitsFromJSON(jsonString) {
return safeParse(jsonString, (x) => EdgeFunctionExecutionUnits$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EdgeFunctionExecutionUnits' from JSON`);
}
/** @internal */
export const EdgeMiddlewareInvocations$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function edgeMiddlewareInvocationsFromJSON(jsonString) {
return safeParse(jsonString, (x) => EdgeMiddlewareInvocations$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EdgeMiddlewareInvocations' from JSON`);
}
/** @internal */
export const EdgeRequestAdditionalCpuDuration$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function edgeRequestAdditionalCpuDurationFromJSON(jsonString) {
return safeParse(jsonString, (x) => EdgeRequestAdditionalCpuDuration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EdgeRequestAdditionalCpuDuration' from JSON`);
}
/** @internal */
export const EdgeRequest$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function edgeRequestFromJSON(jsonString) {
return safeParse(jsonString, (x) => EdgeRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EdgeRequest' from JSON`);
}
/** @internal */
export const ElasticConcurrencyBuildSlots$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function elasticConcurrencyBuildSlotsFromJSON(jsonString) {
return safeParse(jsonString, (x) => ElasticConcurrencyBuildSlots$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ElasticConcurrencyBuildSlots' from JSON`);
}
/** @internal */
export const FastDataTransfer$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function fastDataTransferFromJSON(jsonString) {
return safeParse(jsonString, (x) => FastDataTransfer$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FastDataTransfer' from JSON`);
}
/** @internal */
export const FastOriginTransfer$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function fastOriginTransferFromJSON(jsonString) {
return safeParse(jsonString, (x) => FastOriginTransfer$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FastOriginTransfer' from JSON`);
}
/** @internal */
export const FluidCpuDuration$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function fluidCpuDurationFromJSON(jsonString) {
return safeParse(jsonString, (x) => FluidCpuDuration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FluidCpuDuration' from JSON`);
}
/** @internal */
export const FluidDuration$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function fluidDurationFromJSON(jsonString) {
return safeParse(jsonString, (x) => FluidDuration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FluidDuration' from JSON`);
}
/** @internal */
export const FunctionDuration$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function functionDurationFromJSON(jsonString) {
return safeParse(jsonString, (x) => FunctionDuration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionDuration' from JSON`);
}
/** @internal */
export const FunctionInvocation$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function functionInvocationFromJSON(jsonString) {
return safeParse(jsonString, (x) => FunctionInvocation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionInvocation' from JSON`);
}
/** @internal */
export const ImageOptimizationCacheRead$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function imageOptimizationCacheReadFromJSON(jsonString) {
return safeParse(jsonString, (x) => ImageOptimizationCacheRead$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ImageOptimizationCacheRead' from JSON`);
}
/** @internal */
export const ImageOptimizationCacheWrite$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function imageOptimizationCacheWriteFromJSON(jsonString) {
return safeParse(jsonString, (x) => ImageOptimizationCacheWrite$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ImageOptimizationCacheWrite' from JSON`);
}
/** @internal */
export const ImageOptimizationTransformation$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function imageOptimizationTransformationFromJSON(jsonString) {
return safeParse(jsonString, (x) => ImageOptimizationTransformation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ImageOptimizationTransformation' from JSON`);
}
/** @internal */
export const LogDrainsVolume$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function logDrainsVolumeFromJSON(jsonString) {
return safeParse(jsonString, (x) => LogDrainsVolume$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LogDrainsVolume' from JSON`);
}
/** @internal */
export const MonitoringMetric$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function monitoringMetricFromJSON(jsonString) {
return safeParse(jsonString, (x) => MonitoringMetric$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MonitoringMetric' from JSON`);
}
/** @internal */
export const BlobDataTransfer$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function blobDataTransferFromJSON(jsonString) {
return safeParse(jsonString, (x) => BlobDataTransfer$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BlobDataTransfer' from JSON`);
}
/** @internal */
export const ObservabilityEvent$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function observabilityEventFromJSON(jsonString) {
return safeParse(jsonString, (x) => ObservabilityEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ObservabilityEvent' from JSON`);
}
/** @internal */
export const OnDemandConcurrencyMinutes$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function onDemandConcurrencyMinutesFromJSON(jsonString) {
return safeParse(jsonString, (x) => OnDemandConcurrencyMinutes$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OnDemandConcurrencyMinutes' from JSON`);
}
/** @internal */
export const RuntimeCacheRead$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function runtimeCacheReadFromJSON(jsonString) {
return safeParse(jsonString, (x) => RuntimeCacheRead$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RuntimeCacheRead' from JSON`);
}
/** @internal */
export const RuntimeCacheWrite$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function runtimeCacheWriteFromJSON(jsonString) {
return safeParse(jsonString, (x) => RuntimeCacheWrite$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RuntimeCacheWrite' from JSON`);
}
/** @internal */
export const ServerlessFunctionExecution$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function serverlessFunctionExecutionFromJSON(jsonString) {
return safeParse(jsonString, (x) => ServerlessFunctionExecution$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ServerlessFunctionExecution' from JSON`);
}
/** @internal */
export const SourceImages$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function sourceImagesFromJSON(jsonString) {
return safeParse(jsonString, (x) => SourceImages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SourceImages' from JSON`);
}
/** @internal */
export const WafOwaspExcessBytes$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function wafOwaspExcessBytesFromJSON(jsonString) {
return safeParse(jsonString, (x) => WafOwaspExcessBytes$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WafOwaspExcessBytes' from JSON`);
}
/** @internal */
export const WafOwaspRequests$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function wafOwaspRequestsFromJSON(jsonString) {
return safeParse(jsonString, (x) => WafOwaspRequests$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WafOwaspRequests' from JSON`);
}
/** @internal */
export const WafRateLimitRequest$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function wafRateLimitRequestFromJSON(jsonString) {
return safeParse(jsonString, (x) => WafRateLimitRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WafRateLimitRequest' from JSON`);
}
/** @internal */
export const WebAnalyticsEvent$inboundSchema = z.object({
currentThreshold: types.number(),
warningAt: z.nullable(types.number()).optional(),
blockedAt: z.nullable(types.number()).optional(),
});
export function webAnalyticsEventFromJSON(jsonString) {
return safeParse(jsonString, (x) => WebAnalyticsEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WebAnalyticsEvent' from JSON`);
}
/** @internal */
export const OverageUsageAlerts$inboundSchema = z.object({
analyticsUsage: types.optional(z.lazy(() => AnalyticsUsage$inboundSchema)),
artifacts: types.optional(z.lazy(() => Artifacts$inboundSchema)),
bandwidth: types.optional(z.lazy(() => Bandwidth$inboundSchema)),
blobTotalAdvancedRequests: types.optional(z.lazy(() => BlobTotalAdvancedRequests$inboundSchema)),
blobTotalAvgSizeInBytes: types.optional(z.lazy(() => BlobTotalAvgSizeInBytes$inboundSchema)),
blobTotalGetResponseObjectSizeInBytes: types.optional(z.lazy(() => BlobTotalGetResponseObjectSizeInBytes$inboundSchema)),
blobTotalSimpleRequests: types.optional(z.lazy(() => BlobTotalSimpleRequests$inboundSchema)),
connectDataTransfer: types.optional(z.lazy(() => ConnectDataTransfer$inboundSchema)),
dataCacheRead: types.optional(z.lazy(() => DataCacheRead$inboundSchema)),
dataCacheWrite: types.optional(z.lazy(() => DataCacheWrite$inboundSchema)),
edgeConfigRead: types.optional(z.lazy(() => EdgeConfigRead$inboundSchema)),
edgeConfigWrite: types.optional(z.lazy(() => EdgeConfigWrite$inboundSchema)),
edgeFunctionExecutionUnits: types.optional(z.lazy(() => EdgeFunctionExecutionUnits$inboundSchema)),
edgeMiddlewareInvocations: types.optional(z.lazy(() => EdgeMiddlewareInvocations$inboundSchema)),
edgeRequestAdditionalCpuDuration: types.optional(z.lazy(() => EdgeRequestAdditionalCpuDuration$inboundSchema)),
edgeRequest: types.optional(z.lazy(() => EdgeRequest$inboundSchema)),
elasticConcurrencyBuildSlots: types.optional(z.lazy(() => ElasticConcurrencyBuildSlots$inboundSchema)),
fastDataTransfer: types.optional(z.lazy(() => FastDataTransfer$inboundSchema)),
fastOriginTransfer: types.optional(z.lazy(() => FastOriginTransfer$inboundSchema)),
fluidCpuDuration: types.optional(z.lazy(() => FluidCpuDuration$inboundSchema)),
fluidDuration: types.optional(z.lazy(() => FluidDuration$inboundSchema)),
functionDuration: types.optional(z.lazy(() => FunctionDuration$inboundSchema)),
functionInvocation: types.optional(z.lazy(() => FunctionInvocation$inboundSchema)),
imageOptimizationCacheRead: types.optional(z.lazy(() => ImageOptimizationCacheRead$inboundSchema)),
imageOptimizationCacheWrite: types.optional(z.lazy(() => ImageOptimizationCacheWrite$inboundSchema)),
imageOptimizationTransformation: types.optional(z.lazy(() => ImageOptimizationTransformation$inboundSchema)),
logDrainsVolume: types.optional(z.lazy(() => LogDrainsVolume$inboundSchema)),
monitoringMetric: types.optional(z.lazy(() => MonitoringMetric$inboundSchema)),
blobDataTransfer: types.optional(z.lazy(() => BlobDataTransfer$inboundSchema)),
observabilityEvent: types.optional(z.lazy(() => ObservabilityEvent$inboundSchema)),
onDemandConcurrencyMinutes: types.optional(z.lazy(() => OnDemandConcurrencyMinutes$inboundSchema)),
runtimeCacheRead: types.optional(z.lazy(() => RuntimeCacheRead$inboundSchema)),
runtimeCacheWrite: types.optional(z.lazy(() => RuntimeCacheWrite$inboundSchema)),
serverlessFunctionExecution: types.optional(z.lazy(() => ServerlessFunctionExecution$inboundSchema)),
sourceImages: types.optional(z.lazy(() => SourceImages$inboundSchema)),
wafOwaspExcessBytes: types.optional(z.lazy(() => WafOwaspExcessBytes$inboundSchema)),
wafOwaspRequests: types.optional(z.lazy(() => WafOwaspRequests$inboundSchema)),
wafRateLimitRequest: types.optional(z.lazy(() => WafRateLimitRequest$inboundSchema)),
webAnalyticsEvent: types.optional(z.lazy(() => WebAnalyticsEvent$inboundSchema)),
});
export function overageUsageAlertsFromJSON(jsonString) {
return safeParse(jsonString, (x) => OverageUsageAlerts$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OverageUsageAlerts' from JSON`);
}
/** @internal */
export const OverageMetadata$inboundSchema = z.object({
firstTimeOnDemandNotificationSentAt: types.optional(types.number()),
dailyOverageSummaryEmailSentAt: types.optional(types.number()),
weeklyOverageSummaryEmailSentAt: types.optional(types.number()),
overageSummaryExpiresAt: types.optional(types.number()),
increasedOnDemandEmailSentAt: types.optional(types.number()),
increasedOnDemandEmailAttemptedAt: types.optional(types.number()),
});
export function overageMetadataFromJSON(jsonString) {
return safeParse(jsonString, (x) => OverageMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OverageMetadata' from JSON`);
}
/** @internal */
export const PayloadEnablePreviewFeedback$inboundSchema = z.nativeEnum(PayloadEnablePreviewFeedback);
/** @internal */
export const BlockReason$inboundSchema = z
.nativeEnum(BlockReason);
/** @internal */
export const PayloadWebAnalytics$inboundSchema = z.object({
updatedAt: types.number(),
blockedFrom: types.optional(types.number()),
blockedUntil: types.optional(types.number()),
blockReason: BlockReason$inboundSchema,
graceEmailSentAt: types.optional(types.number()),
});
export function payloadWebAnalyticsFromJSON(jsonString) {
return safeParse(jsonString, (x) => PayloadWebAnalytics$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PayloadWebAnalytics' from JSON`);
}
/** @internal */
export const PayloadBlockReason$inboundSchema = z.nativeEnum(PayloadBlockReason);
/** @internal */
export const BlockType$inboundSchema = z
.nativeEnum(BlockType);
/** @internal */
export const Monitoring$inboundSchema = z.object({
updatedAt: types.number(),
blockedFrom: types.optional(types.number()),
blockedUntil: types.optional(types.number()),
blockReason: PayloadBlockReason$inboundSchema,
blockType: BlockType$inboundSchema,
});
export function monitoringFromJSON(jsonString) {
return safeParse(jsonString, (x) => Monitoring$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Monitoring' from JSON`);
}
/** @internal */
export const UserEventPayloadBlockReason$inboundSchema = z.nativeEnum(UserEventPayloadBlockReason);
/** @internal */
export const PayloadBlockType$inboundSchema = z.nativeEnum(PayloadBlockType);
/** @internal */
export const ObservabilityPlus$inboundSchema = z.object({
updatedAt: types.number(),
blockedFrom: types.optional(types.number()),
blockedUntil: types.optional(types.number()),
blockReason: UserEventPayloadBlockReason$inboundSchema,
blockType: PayloadBlockType$inboundSchema,
});
export function observabilityPlusFromJSON(jsonString) {
return safeParse(jsonString, (x) => ObservabilityPlus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ObservabilityPlus' from JSON`);
}
/** @internal */
export const UserEventPayload138BlockReason$inboundSchema = z.nativeEnum(UserEventPayload138BlockReason);
/** @internal */
export const UserEventPayloadDataCache$inboundSchema = z.object({
updatedAt: types.number(),
blockedFrom: types.optional(types.number()),
blockedUntil: types.optional(types.number()),
blockReason: UserEventPayload138BlockReason$inboundSchema,
});
export function userEventPayloadDataCacheFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayloadDataCache$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayloadDataCache' from JSON`);
}
/** @internal */
export const UserEventPayload138NewOwnerBlockReason$inboundSchema = z.nativeEnum(UserEventPayload138NewOwnerBlockReason);
/** @internal */
export const PayloadImageOptimizationTransformation$inboundSchema = z.object({
updatedAt: types.number(),
blockedFrom: types.optional(types.number()),
blockedUntil: types.optional(types.number()),
blockReason: UserEventPayload138NewOwnerBlockReason$inboundSchema,
});
export function payloadImageOptimizationTransformationFromJSON(jsonString) {
return safeParse(jsonString, (x) => PayloadImageOptimizationTransformation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PayloadImageOptimizationTransformation' from JSON`);
}
/** @internal */
export const UserEventPayload138NewOwnerFeatureBlocksBlockReason$inboundSchema = z.nativeEnum(UserEventPayload138NewOwnerFeatureBlocksBlockReason);
/** @internal */
export const PayloadSourceImages$inboundSchema = z.object({
updatedAt: types.number(),
blockedFrom: types.optional(types.number()),
blockedUntil: types.optional(types.number()),
blockReason: UserEventPayload138NewOwnerFeatureBlocksBlockReason$inboundSchema,
});
export function payloadSourceImagesFromJSON(jsonString) {
return safeParse(jsonString, (x) => PayloadSourceImages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PayloadSourceImages' from JSON`);
}
/** @internal */
export const UserEventBlobBlockReason$inboundSchema = z.nativeEnum(UserEventBlobBlockReason);
/** @internal */
export const Blob2$inboundSchema = z
.object({
updatedAt: types.number(),
blockedFrom: types.optional(types.number()),
blockedUntil: types.optional(types.number()),
blockReason: UserEventBlobBlockReason$inboundSchema,
});
export function blob2FromJSON(jsonString) {
return safeParse(jsonString, (x) => Blob2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Blob2' from JSON`);
}
/** @internal */
export const OverageReason$inboundSchema = z.nativeEnum(OverageReason);
/** @internal */
export const Blob1$inboundSchema = z
.object({
updatedAt: types.number(),
blockedFrom: types.optional(types.number()),
blockedUntil: types.optional(types.number()),
blockReason: types.literal("limits_exceeded"),
overageReason: OverageReason$inboundSchema,
});
export function blob1FromJSON(jsonString) {
return safeParse(jsonString, (x) => Blob1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Blob1' from JSON`);
}
/** @internal */
export const BlobT$inboundSchema = z
.union([
z.lazy(() => Blob1$inboundSchema),
z.lazy(() => Blob2$inboundSchema).and(z.object({ blockReason: z.literal("admin_override") })),
z.lazy(() => Blob2$inboundSchema).and(z.object({ blockReason: z.literal("hard_blocked") })),
]);
export function blobFromJSON(jsonString) {
return safeParse(jsonString, (x) => BlobT$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BlobT' from JSON`);
}
/** @internal */
export const UserEventPostgresBlockReason$inboundSchema = z.nativeEnum(UserEventPostgresBlockReason);
/** @internal */
export const Postgres2$inboundSchema = z.object({
updatedAt: types.number(),
blockedFrom: types.optional(types.number()),
blockedUntil: types.optional(types.number()),
blockReason: UserEventPostgresBlockReason$inboundSchema,
});
export function postgres2FromJSON(jsonString) {
return safeParse(jsonString, (x) => Postgres2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Postgres2' from JSON`);
}
/** @internal */
export const PostgresOverageReason$inboundSchema = z.nativeEnum(PostgresOverageReason);
/** @internal */
export const Postgres1$inboundSchema = z.object({
updatedAt: types.number(),
blockedFrom: types.optional(types.number()),
blockedUntil: types.optional(types.number()),
blockReason: types.literal("limits_exceeded"),
overageReason: PostgresOverageReason$inboundSchema,
});
export function postgres1FromJSON(jsonString) {
return safeParse(jsonString, (x) => Postgres1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Postgres1' from JSON`);
}
/** @internal */
export const Postgres$inboundSchema = z.union([
z.lazy(() => Postgres1$inboundSchema),
z.lazy(() => Postgres2$inboundSchema).and(z.object({ blockReason: z.literal("admin_override") })),
z.lazy(() => Postgres2$inboundSchema).and(z.object({ blockReason: z.literal("hard_blocked") })),
]);
export function postgresFromJSON(jsonString) {
return safeParse(jsonString, (x) => Postgres$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Postgres' from JSON`);
}
/** @internal */
export const UserEventRedisBlockReason$inboundSchema = z.nativeEnum(UserEventRedisBlockReason);
/** @internal */
export const Redis2$inboundSchema = z
.object({
updatedAt: types.number(),
blockedFrom: types.optional(types.number()),
blockedUntil: types.optional(types.number()),
blockReason: UserEventRedisBlockReason$inboundSchema,
});
export function redis2FromJSON(jsonString) {
return safeParse(jsonString, (x) => Redis2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Redis2' from JSON`);
}
/** @internal */
export const RedisOverageReason$inboundSchema = z.nativeEnum(RedisOverageReason);
/** @internal */
export const Redis1$inboundSchema = z
.object({
updatedAt: types.number(),
blockedFrom: types.optional(types.number()),
blockedUntil: types.optional(types.number()),
blockReason: types.literal("limits_exceeded"),
overageReason: RedisOverageReason$inboundSchema,
});
export function redis1FromJSON(jsonString) {
return safeParse(jsonString, (x) => Redis1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Redis1' from JSON`);
}
/** @internal */
export const Redis$inboundSchema = z
.union([
z.lazy(() => Redis1$inboundSchema),
z.lazy(() => Redis2$inboundSchema).and(z.object({ blockReason: z.literal("admin_override") })),
z.lazy(() => Redis2$inboundSchema).and(z.object({ blockReason: z.literal("hard_blocked") })),
]);
export function redisFromJSON(jsonString) {
return safeParse(jsonString, (x) => Redis$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Redis' from JSON`);
}
/** @internal */
export const UserEventPayload138NewOwnerFeatureBlocksMicrofrontendsRequestBlockReason$inboundSchema = z.nativeEnum(UserEventPayload138NewOwnerFeatureBlocksMicrofrontendsRequestBlockReason);
/** @internal */
export const MicrofrontendsRequest$inboundSchema = z.object({
updatedAt: types.number(),
blockedFrom: types.optional(types.number()),
blockedUntil: types.optional(types.number()),
blockReason: UserEventPayload138NewOwnerFeatureBlocksMicrofrontendsRequestBlockReason$inboundSchema,
});
export function microfrontendsRequestFromJSON(jsonString) {
return safeParse(jsonString, (x) => MicrofrontendsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MicrofrontendsRequest' from JSON`);
}
/** @internal */
export const UserEventPayload138NewOwnerFeatureBlocksWorkflowStorageBlockReason$inboundSchema = z.nativeEnum(UserEventPayload138NewOwnerFeatureBlocksWorkflowStorageBlockReason);
/** @internal */
export const WorkflowStorage$inboundSchema = z.object({
updatedAt: types.number(),
blockedFrom: types.optional(types.number()),
blockedUntil: types.optional(types.number()),
blockReason: UserEventPayload138NewOwnerFeatureBlocksWorkflowStorageBlockReason$inboundSchema,
});
export function workflowStorageFromJSON(jsonString) {
return safeParse(jsonString, (x) => WorkflowStorage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WorkflowStorage' from JSON`);
}
/** @internal */
export const UserEventPayload138NewOwnerFeatureBlocksWorkflowStepBlockReason$inboundSchema = z.nativeEnum(UserEventPayload138NewOwnerFeatureBlocksWorkflowStepBlockReason);
/** @internal */
export const WorkflowStep$inboundSchema = z.object({
updatedAt: types.number(),
blockedFrom: types.optional(types.number()),
blockedUntil: types.optional(types.number()),
blockReason: UserEventPayload138NewOwnerFeatureBlocksWorkflowStepBlockReason$inboundSchema,
});
export function workflowStepFromJSON(jsonString) {
return safeParse(jsonString, (x) => WorkflowStep$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WorkflowStep' from JSON`);
}
/** @internal */
export const UserEventPayload138NewOwnerFeatureBlocksConnexTokenRequestsBlockReason$inboundSchema = z.nativeEnum(UserEventPayload138NewOwnerFeatureBlocksConnexTokenRequestsBlockReason);
/** @internal */
export const ConnexTokenRequests$inboundSchema = z.object({
updatedAt: types.number(),
blockedFrom: types.optional(types.number()),
blockedUntil: types.optional(types.number()),
blockReason: UserEventPayload138NewOwnerFeatureBlocksConnexTokenRequestsBlockReason$inboundSchema,
});
export function connexTokenRequestsFromJSON(jsonString) {
return safeParse(jsonString, (x) => ConnexTokenRequests$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConnexTokenRequests' from JSON`);
}
/** @internal */
export const PayloadFeatureBlocks$inboundSchema = z.object({
webAnalytics: types.optional(z.lazy(() => PayloadWebAnalytics$inboundSchema)),
monitoring: types.optional(z.lazy(() => Monitoring$inboundSchema)),
observabilityPlus: types.optional(z.lazy(() => ObservabilityPlus$inboundSchema)),
dataCache: types.optional(z.lazy(() => UserEventPayloadDataCache$inboundSchema)),
imageOptimizationTransformation: types.optional(z.lazy(() => PayloadImageOptimizationTransformation$inboundSchema)),
sourceImages: types.optional(z.lazy(() => PayloadSourceImages$inboundSchema)),
blob: types.optional(z.union([
z.lazy(() => Blob1$inboundSchema),
z.lazy(() => Blob2$inboundSchema).and(z.object({ blockReason: z.literal("admin_override") })),
z.lazy(() => Blob2$inboundSchema).and(z.object({ blockReason: z.literal("hard_blocked") })),
])),
postgres: types.optional(z.union([
z.lazy(() => Postgres1$inboundSchema),
z.lazy(() => Postgres2$inboundSchema).and(z.object({ blockReason: z.literal("admin_override") })),
z.lazy(() => Postgres2$inboundSchema).and(z.object({ blockReason: z.literal("hard_blocked") })),
])),
redis: types.optional(z.union([
z.lazy(() => Redis1$inboundSchema),
z.lazy(() => Redis2$inboundSchema).and(z.object({ blockReason: z.literal("admin_override") })),
z.lazy(() => Redis2$inboundSchema).and(z.object({ blockReason: z.literal("hard_blocked") })),
])),
microfrontendsRequest: types.optional(z.lazy(() => MicrofrontendsRequest$inboundSchema)),
workflowStorage: types.optional(z.lazy(() => WorkflowStorage$inboundSchema)),
workflowStep: types.optional(z.lazy(() => WorkflowStep$inboundSchema)),
connexTokenRequests: types.optional(z.lazy(() => ConnexTokenRequests$inboundSchema)),
});
export function payloadFeatureBlocksFromJSON(jsonString) {
return safeParse(jsonString, (x) => PayloadFeatureBlocks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PayloadFeatureBlocks' from JSON`);
}
/** @internal */
export const Version$inboundSchema = z
.nativeEnum(Version);
/** @internal */
export const NorthstarMigration$inboundSchema = z.object({
teamId: types.string(),
projects: types.number(),
stores: types.number(),
integrationConfigurations: types.number(),
integrationClients: types.number(),
startTime: types.number(),
endTime: types.number(),
});
export function northstarMigrationFromJSON(jsonString) {
return safeParse(jsonString, (x) => NorthstarMigration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'NorthstarMigration' from JSON`);
}
/** @internal */
export const Totp$inboundSchema = z
.object({
secret: types.string(),
createdAt: types.number(),
});
export function totpFromJSON(jsonString) {
return safeParse(jsonString, (x) => Totp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Totp' from JSON`);
}
/** @internal */
export const UserEventPayload138NewOwnerAction$inboundSchema = z.nativeEnum(UserEventPayload138NewOwnerAction);
/** @internal */
export const PayloadMethod$inboundSchema = z.nativeEnum(PayloadMethod);
/** @internal */
export const PayloadActorType$inboundSchema = z.nativeEnum(PayloadActorType);
/** @internal */
export const PayloadHistory$inboundSchema = z.object({
action: UserEventPayload138NewOwnerAction$inboundSchema,
timestamp: types.nullable(types.number()),
method: PayloadMethod$inboundSchema,
actorId: types.string(),
actorType: PayloadActorType$inboundSchema,
reason: types.optional(types.string()),
});
export function payloadHistoryFromJSON(jsonString) {
return safeParse(jsonString, (x) => PayloadHistory$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PayloadHistory' from JSON`);
}
/** @internal */
export const MfaConfiguration$inboundSchema = z.object({
enabled: types.boolean(),
enabledAt: types.optional(types.number()),
recoveryCodes: z.array(types.string()),
totp: types.optional(z.lazy(() => Totp$inboundSchema)),
history: types.optional(z.array(z.lazy(() => PayloadHistory$inboundSchema))),
});
export function mfaConfigurationFromJSON(jsonString) {
return safeParse(jsonString, (x) => MfaConfiguration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MfaConfiguration' from JSON`);
}
/** @internal */
export const NewOwner$inboundSchema = z.object({
abuse: types.optional(Abuse$inboundSchema),
acceptanceState: types.optional(types.string()),
acceptedAt: types.optional(types.number()),
avatar: types.optional(types.string()),
billing: PayloadBilling$inboundSchema,
blocked: types.nullable(types.number()),
blockReason: types.optional(types.string()),
created: types.optional(types.number()),
createdAt: types.number(),
credentials: types.optional(z.array(Credentials$inboundSchema)),
customerId: z.nullable(types.string()).optional(),
orbCustomerId: z.nullable(types.string()).optional(),
dataCache: types.optional(PayloadDataCache$inboundSchema),
deletedAt: z.nullable(types.number()).optional(),
deploymentSecret: types.string(),
dismissedTeams: types.optional(z.array(types.string())),
dismissedToasts: types.optional(z.array(PayloadDismissedToasts$inboundSchema)),
favoriteProjectsAndSpaces: types.optional(z.array(PayloadFavoriteProjectsAndSpaces$inboundSchema)),
email: types.string(),
id: types.string(),
importFlowGitNamespace: z.nullable(PayloadImportFlowGitNamespace$inboundSchema).optional(),
importFlowGitNamespaceId: z.nullable(PayloadImportFlowGitNamespaceId$inboundSchema).optional(),
importFlowGitProvider: z.nullable(PayloadImportFlowGitProvider$inboundSchema)
.optional(),
preferredScopesAndGitNamespaces: types.optional(z.array(PayloadPreferredScopesAndGitNamespaces$inboundSchema)),
isDomainReseller: types.optional(types.boolean()),
isZeitPub: types.optional(types.boolean()),
testAccountExpiresAt: types.optional(types.number()),
maxActiveSlots: types.optional(types.number()),
name: types.optional(types.string()),
phoneNumber: types.optional(types.string()),
platformVersion: types.nullable(types.number()),
preventAutoBlocking: types.optional(PreventAutoBlocking$inboundSchema),
projectDomainsLimit: types.optional(types.number()),
remoteCaching: types.optional(UserEventPayloadRemoteCaching$inboundSchema),
removedAliasesAt: types.optional(types.number()),
removedBillingSubscriptionAt: types.optional(types.number()),
removedConfigurationsAt: types.optional(types.number()),
removedDeploymentsAt: types.optional(types.number()),
removedDomiansAt: types.optional(types.number()),
removedEventsAt: types.optional(types.number()),
removedProjectsAt: types.optional(types.number()),
removedSecretsAt: types.optional(types.number()),
removedSharedEnvVarsAt: types.optional(types.number()),
removedEdgeConfigsAt: types.optional(types.number()),
resourceConfig: types.optional(PayloadResourceConfig$inboundSchema),
resourceLimits: types.optional(z.record(ResourceLimits$inboundSchema)),
activeDashboardViews: types.optional(z.array(PayloadActiveDashboardViews$inboundSchema)),
secondaryEmails: types.optional(z.array(SecondaryEmails$inboundSchema)),
emailDomains: types.optional(z.array(types.string())),
emailNotifications: types.optional(EmailNotifications$inboundSchema),
siftScore: types.optional(types.number()),
siftScores: types.optional(z.record(SiftScores$inboundSchema)),
siftRoute: types.optional(PayloadSiftRoute$inboundSchema),
sfdcId: types.optional(types.string()),
softBlock: z.nullable(PayloadSoftBlock$inboundSchema).optional(),
stagingPrefix: types.string(),
sysToken: types.string(),
teams: types.optional(z.array(Teams$inboundSchema)),
trialTeamIds: types.optional(z.array(types.string())),
maxTrials: types.optional(types.number()),
trialTeamId: types.optional(types.string()),
type: UserEventPayload138Type$inboundSchema,
usageAlerts: z.nullable(z.lazy(() => UsageAlerts$inboundSchema)).optional(),
overageUsageAlerts: types.optional(z.lazy(() => OverageUsageAlerts$inboundSchema)),
overageMetadata: types.optional(z.lazy(() => OverageMetadata$inboundSchema)),
username: types.string(),
updatedAt: types.number(),
enablePreviewFeedback: types.optional(PayloadEnablePreviewFeedback$inboundSchema),
featureBlocks: types.optional(z.lazy(() => PayloadFeatureBlocks$inboundSchema)),
defaultTeamId: types.optional(types.string()),
version: Version$inboundSchema,
isMFAEnforced: types.optional(types.boolean()),
northstarMigration: types.optional(z.lazy(() => NorthstarMigration$inboundSchema)),
opportunityId: types.optional(types.string()),
mfaConfiguration: types.optional(z.lazy(() => MfaConfiguration$inboundSchema)),
isEnterpriseManaged: types.optional(types.boolean()),
});
export function newOwnerFromJSON(jsonString) {
return safeParse(jsonString, (x) => NewOwner$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'NewOwner' from JSON`);
}
/** @internal */
export const OneHundredAndThirtyEight$inboundSchema = z.object({
userId: types.string(),
integrationId: types.string(),
configurationId: types.string(),
integrationSlug: types.string(),
integrationName: types.optional(types.string()),
newOwner: types.nullable(z.lazy(() => NewOwner$inboundSchema)),
});
export function oneHundredAndThirtyEightFromJSON(jsonString) {
return safeParse(jsonString, (x) => OneHundredAndThirtyEight$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OneHundredAndThirtyEight' from JSON`);
}
/** @internal */
export const OneHundredAndThirtySeven$inboundSchema = z.object({
projectId: types.string(),
fromDeploymentId: types.string(),
toDeploymentId: types.string(),
projectName: types.string(),
reason: types.optional(types.string()),
});
export function oneHundredAndThirtySevenFromJSON(jsonString) {
return safeParse(jsonString, (x) => OneHundredAndThirtySeven$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OneHundredAndThirtySeven' from JSON`);
}
/** @internal */
export const UserEventPayload136Action$inboundSchema = z.nativeEnum(UserEventPayload136Action);
/** @internal */
export const OneHundredAndThirtySix$inboundSchema = z.object({
action: UserEventPayload136Action$inboundSchema,
});
export function oneHundredAndThirtySixFromJSON(jsonString) {
return safeParse(jsonString, (x) => OneHundredAndThirtySix$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OneHundredAndThirtySix' from JSON`);
}
/** @internal */
export const UserEventPayload135Action$inboundSchema = z.nativeEnum(UserEventPayload135Action);
/** @internal */
export const OneHundredAndThirtyFive$inboundSchema = z.object({
projectId: types.string(),
rulesetName: types.string(),
active: types.boolean(),
action: types.optional(UserEventPayload135Action$inboundSchema),
});
export function oneHundredAndThirtyFiveFromJSON(jsonString) {
return safeParse(jsonString, (x) => OneHundredAndThirtyFive$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OneHundredAndThirtyFive' from JSON`);
}
/** @internal */
export const UserEventPayload134Action$inboundSchema = z.nativeEnum(UserEventPayload134Action);
/** @internal */
export const RuleGroups$inboundSchema = z.object({
active: types.boolean(),
action: types.optional(UserEventPayload134Action$inboundSchema),
});
export function ruleGroupsFromJSON(jsonString) {
return safeParse(jsonString, (x) => RuleGroups$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RuleGroups' from JSON`);
}
/** @internal */
export const OneHundredAndThirtyFour$inboundSchema = z.object({
projectId: types.string(),
rulesetName: types.string(),
ruleGroups: z.record(z.lazy(() => RuleGroups$inboundSchema)),
});
export function oneHundredAndThirtyFourFromJSON(jsonString) {
return safeParse(jsonString, (x) => OneHundredAndThirtyFour$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OneHundredAndThirtyFour' from JSON`);
}
/** @internal */
export const ConfigChanges$inboundSchema = z.object({});
export function configChangesFromJSON(jsonString) {
return safeParse(jsonString, (x) => ConfigChanges$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConfigChanges' from JSON`);
}
/** @internal */
export const OneHundredAndThirtyThree$inboundSchema = z.object({
projectId: types.string(),
projectName: types.optional(types.string()),
restore: types.boolean(),
configVersion: types.number(),
configChangeCount: types.number(),
configChanges: z.array(z.lazy(() => ConfigChanges$inboundSchema)),
});
export function oneHundredAndThirtyThreeFromJSON(jsonString) {
return safeParse(jsonString, (x) => OneHundredAndThirtyThree$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OneHundredAndThirtyThree' from JSON`);
}
/** @internal */
export const ConfigVersion$inboundSchema = smartUnion([types.string(), types.number()]);
export function configVersionFromJSON(jsonString) {
return safeParse(jsonString, (x) => ConfigVersion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConfigVersion' from JSON`);
}
/** @internal */
export const OneHundredAndThirtyTwo$inboundSchema = z.object({
projectId: types.string(),
projectName: types.string(),
configVersion: smartUnion([types.string(), types.number()]),
});
export function oneHundredAndThirtyTwoFromJSON(jsonString) {
return safeParse(jsonString, (x) => OneHundredAndThirtyTwo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OneHundredAndThirtyTwo' from JSON`);
}
/** @internal */
export const OneHundredAndThirtyOne$inboundSchema = z.object({
projectId: types.string(),
scope: types.string(),
source: types.string(),
});
export function oneHundredAndThirtyOneFromJSON(jsonString) {
return safeParse(jsonString, (x) => OneHundredAndThirtyOne$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OneHundredAndThirtyOne' from JSON`);
}
/** @internal */
export const OneHundredAndThirty$inboundSchema = z.object({
projectId: types.string(),
scope: types.string(),
source: types.string(),
expiresAt: z.nullable(types.number()).optional(),
});
export function oneHundredAndThirtyFromJSON(jsonString) {
return safeParse(jsonString, (x) => OneHundredAndThirty$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OneHundredAndThirty' from JSON`);
}
/** @internal */
export const UserEventPayload129Type$inboundSchema = z.nativeEnum(UserEventPayload129Type);
/** @internal */
export const UserEventPayload129Target$inboundSchema = z.nativeEnum(UserEventPayload129Target);
/** @internal */
export const OldEnvVar$inboundSchema = z.object({
created: types.optional(types.date()),
key: types.optional(types.string()),
ownerId: z.nullable(types.string()).optional(),
id: types.optional(types.string()),
createdBy: z.nullable(types.string()).optional(),
deletedBy: z.nullable(types.string()).optional(),
updatedBy: z.nullable(types.string()).optional(),
createdAt: types.optional(types.number()),
deletedAt: types.optional(types.number()),
updatedAt: types.optional(types.number()),
value: types.optional(types.string()),
projectId: types.optional(z.array(types.string())),
type: types.optional(UserEventPayload129Type$inboundSchema),
target: types.optional(z.array(UserEventPayload129Target$inboundSchema)),
applyToAllCustomEnvironments: types.optional(types.boolean()),
customEnvironmentIds: types.optional(z.array(types.string())),
decrypted: types.optional(types.boolean()),
comment: types.optional(types.string()),
lastEditedByDisplayName: types.optional(types.string()),
});
export function oldEnvVarFromJSON(jsonString) {
return safeParse(jsonString, (x) => OldEnvVar$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OldEnvVar' from JSON`);
}
/** @internal */
export const UserEventPayload129NewEnvVarType$inboundSchema = z.nativeEnum(UserEventPayload129NewEnvVarType);
/** @internal */
export const UserEventPayload129NewEnvVarTarget$inboundSchema = z.nativeEnum(UserEventPayload129NewEnvVarTarget);
/** @internal */
export const NewEnvVar$inboundSchema = z.object({
created: types.optional(types.date()),
key: types.optional(types.string()),
ownerId: z.nullable(types.string()).optional(),
id: types.optional(types.string()),
createdBy: z.nullable(types.string()).optional(),
deletedBy: z.nullable(types.string()).optional(),
updatedBy: z.nullable(types.string()).optional(),
createdAt: types.optional(types.number()),
deletedAt: types.optional(types.number()),
updatedAt: types.optional(types.number()),
value: types.optional(types.string()),
projectId: types.optional(z.array(types.string())),
type: types.optional(UserEventPayload129NewEnvVarType$inboundSchema),
target: types.optional(z.array(UserEventPayload129NewEnvVarTarget$inboundSchema)),
applyToAllCustomEnvironments: types.optional(types.boolean()),
customEnvironmentIds: types.optional(z.array(types.string())),
decrypted: types.optional(types.boolean()),
comment: types.optional(types.string()),
lastEditedByDisplayName: types.optional(types.string()),
});
export function newEnvVarFromJSON(jsonString) {
return safeParse(jsonString, (x) => NewEnvVar$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'NewEnvVar' from JSON`);
}
/** @internal */
export const OldTarget$inboundSchema = z
.nativeEnum(OldTarget);
/** @internal */
export const NewTarget$inboundSchema = z
.nativeEnum(NewTarget);
/** @internal */
export const OldProjects$inboundSchema = z.object({
projectName: types.optional(types.string()),
projectId: types.string(),
});
export function oldProjectsFromJSON(jsonString) {
return safeParse(jsonString, (x) => OldProjects$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OldProjects' from JSON`);
}
/** @internal */
export const NewProjects$inboundSchema = z.object({
projectName: types.optional(types.string()),
projectId: types.string(),
});
export function newProjectsFromJSON(jsonString) {
return safeParse(jsonString, (x) => NewProjects$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'NewProjects' from JSON`);
}
/** @internal */
export const UpdateDiff$inboundSchema = z.object({
id: types.string(),
key: types.optional(types.string()),
newKey: types.optional(types.string()),
oldTarget: types.optional(z.array(OldTarget$inboundSchema)),
newTarget: types.optional(z.array(NewTarget$inboundSchema)),
oldType: types.optional(types.string()),
newType: types.optional(types.string()),
oldProjects: types.optional(z.array(z.lazy(() => OldProjects$inboundSchema))),
newProjects: types.optional(z.array(z.lazy(() => NewProjects$inboundSchema))),
oldCustomEnvironmentIds: types.optional(z.array(types.string())),
newCustomEnvironmentIds: types.optional(z.array(types.string())),
changedValue: types.boolean(),
});
export function updateDiffFromJSON(jsonString) {
return safeParse(jsonString, (x) => UpdateDiff$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateDiff' from JSON`);
}
/** @internal */
export const OneHundredAndTwentyNine$inboundSchema = z.object({
oldEnvVar: types.optional(z.lazy(() => OldEnvVar$inboundSchema)),
newEnvVar: types.optional(z.lazy(() => NewEnvVar$inboundSchema)),
updateDiff: types.optional(z.lazy(() => UpdateDiff$inboundSchema)),
});
export function oneHundredAndTwentyNineFromJSON(jsonString) {
return safeParse(jsonString, (x) => OneHundredAndTwentyNine$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OneHundredAndTwentyNine' from JSON`);
}
/** @internal */
export const PayloadType$inboundSchema = z
.nativeEnum(PayloadType);
/** @internal */
export const UserEventPayloadTarget$inboundSchema = z.nativeEnum(UserEventPayloadTarget);
/** @internal */
export const OneHundredAndTwentyEight$inboundSchema = z.object({
created: types.optional(types.date()),
key: types.optional(types.string()),
ownerId: z.nullable(types.string()).optional(),
id: types.optional(types.string()),
createdBy: z.nullable(types.string()).optional(),
deletedBy: z.nullable(types.string()).optional(),
updatedBy: z.nullable(types.string()).optional(),
createdAt: types.optional(types.number()),
deletedAt: types.optional(types.number()),
updatedAt: types.optional(types.number()),
value: types.optional(types.string()),
projectId: types.optional(z.array(types.string())),
type: types.optional(PayloadType$inboundSchema),
target: types.optional(z.array(UserEventPayloadTarget$inboundSchema)),
applyToAllCustomEnvironments: types.optional(types.boolean()),
customEnvironmentIds: types.optional(z.array(types.string())),
decrypted: types.optional(types.boolean()),
comment: types.optional(types.string()),
lastEditedByDisplayName: types.optional(types.string()),
projectNames: types.optional(z.array(types.string())),
ipAddress: types.optional(types.string()),
});
export function oneHundredAndTwentyEightFromJSON(jsonString) {
return safeParse(jsonString, (x) => OneHundredAndTwentyEight$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OneHundredAndTwentyEight' from JSON`);
}
/** @internal */
export const PayloadTarget$inboundSchema = smartUnion([types.string(), z.array(types.string())]);
export function payloadTargetFromJSON(jsonString) {
return safeParse(jsonString, (x) => PayloadTarget$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PayloadTarget' from JSON`);
}
/** @internal */
export const OneHundredAndTwentySeven$inboundSchema = z.object({
key: types.optional(types.string()),
projectId: types.optional(types.string()),
projectName: types.optional(types.string()),
target: types.optional(smartUnion([types.string(), z.array(types.string())])),
customEnvironmentSlugs: types.optional(z.array(types.string())),
id: types.optional(types.string()),
gitBranch: types.optional(types.string()),
edgeConfigId: z.nullable(types.string()).optional(),
edgeConfigTokenId: z.nullable(types.string()).optional(),
source: types.optional(types.string()),
ipAddress: types.optional(types.string()),
deploymentId: types.string(),
deploymentUrl: types.string(),
});
export function oneHundredAndTwentySevenFromJSON(jsonString) {
return safeParse(jsonString, (x) => OneHundredAndTwentySeven$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OneHundredAndTwentySeven' from JSON`);
}
/** @internal */
export const Target$inboundSchema = smartUnion([types.string(), z.array(types.string())]);
export function targetFromJSON(jsonString) {
return safeParse(jsonString, (x) => Target$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Target' from JSON`);
}
/** @internal */
export const OneHundredAndTwentySix$inboundSchema = z.object({
key: types.optional(types.string()),
projectId: types.optional(types.string()),
projectName: types.optional(types.string()),
target: types.optional(smartUnion([types.string(), z.array(types.string())])),
customEnvironmentSlugs: types.optional(z.array(types.string())),
id: types.optional(types.string()),
gitBranch: types.optional(types.string()),
edgeConfigId: z.nullable(types.string()).optional(),
edgeConfigTokenId: z.nullable(types.string()).optional(),
source: types.optional(types.string()),
ipAddress: types.optional(types.string()),
});
export function oneHundredAndTwentySixFromJSON(jsonString) {
return safeParse(jsonString, (x) => OneHundredAndTwentySix$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OneHundredAndTwentySix' from JSON`);
}
/** @internal */
export const UserEventPayload125Team$inboundSchema = z.object({
id: types.string(),
name: types.optional(types.string()),
});
export function userEventPayload125TeamFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload125Team$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload125Team' from JSON`);
}
/** @internal */
export const PayloadPreviousRule$inboundSchema = z.object({
email: types.string(),
});
export function payloadPreviousRuleFromJSON(jsonString) {
return safeParse(jsonString, (x) => PayloadPreviousRule$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PayloadPreviousRule' from JSON`);
}
/** @internal */
export const NextRule$inboundSchema = z.object({
email: types.string(),
});
export function nextRuleFromJSON(jsonString) {
return safeParse(jsonString, (x) => NextRule$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'NextRule' from JSON`);
}
/** @internal */
export const OneHundredAndTwentyFive$inboundSchema = z.object({
team: z.lazy(() => UserEventPayload125Team$inboundSchema),
previousRule: types.optional(z.lazy(() => PayloadPreviousRule$inboundSchema)),
nextRule: types.optional(z.lazy(() => NextRule$inboundSchema)),
});
export function oneHundredAndTwentyFiveFromJSON(jsonString) {
return safeParse(jsonString, (x) => OneHundredAndTwentyFive$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OneHundredAndTwentyFive' from JSON`);
}
/** @internal */
export const UserEventPayload124Team$inboundSchema = z.object({
id: types.string(),
name: types.optional(types.string()),
});
export function userEventPayload124TeamFromJSON(jsonString) {
return safeParse(jsonString, (x) => UserEventPayload124Team$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserEventPayload124Team' from JSON`);
}
/** @internal */
export const PreviousRule$inboundSchema = z.object({
email: types.string(),
});
export function previousRuleFromJSON(jsonString) {
return safeParse(jsonString, (x) => PreviousRule$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PreviousRule' from JSON`);
}
/** @internal */
export const OneHundredAndTwentyFour$inboundSchema = z.object({
team: z.lazy(() => UserEventPayload124Team$inboundSchema),
previousRule: z.lazy(() => PreviousRule$inboundSchema),
});
export function oneHundredAndTwentyFourFromJSON(jsonString) {
return safeParse(jsonString, (x) => OneHundredAndTwentyFour$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OneHundredAndTwentyFour' from JSON`);
}
/** @internal */
export const OneHundredAndTwentyThree$inboundSchema = z.object({
email: types.string(),
name: types.string(),
});
export function oneHundredAndTwentyThreeFromJSON(jsonString) {
return safeParse(jsonString, (x) => OneHundredAndTwentyThree$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OneHundredAndTwentyThree' from JSON`);
}
/** @internal */
export const OneHundredAndTwentyTwo$inboundSchema = z.object({
edgeConfigId: types.string(),
edgeConfigSlug: types.string(),
edgeConfigTokenIds: z.array(types.string()),
});
export function oneHundredAndTwentyTwoFromJSON(jsonString) {
return safeParse(jsonString, (x) => OneHundredAndTwentyTwo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OneHundredAndTwentyTwo' from JSON`);
}
/** @internal */
export const OneHundredAndTwentyOne$inboundSchema = z.object({
edgeConfigId: types.string(),
edgeConfigSlug: types.string(),
edgeConfigTokenId: types.string(),
label: types.string(),
});
export function oneHundredAndTwentyOneFromJSON(jsonString) {
return safeParse(jsonString, (x) => OneHundredAndTwentyOne$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OneHundredAndTwentyOne' from JSON`);
}
/** @internal */
export const EdgeConfig$inboundSchema = z.object({
id: types.string(),
slug: types.string(),
});
export function edgeConfigFromJSON(jsonString) {
return safeParse(jsonString, (x) => EdgeConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EdgeConfig' from JSON`);
}
/** @internal */
export const UserEventPayload120Type$inboundSchema = z.nativeEnum(UserEventPayload120Type);
/** @internal */
export const FromAccount$inboundSchema = z.object({
id: types.string(),
type: UserEventPayload120Type$inboundSchema,
slug: types.optional(types.string()),
username: types.optional(types.string()),
});
export function fromAccountFromJSON(jsonString) {
return safeParse(jsonString, (x) => FromAccount$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FromAccount' from JSON`);
}
/** @internal */
export const UserEventPayload120ToAccountType$inboundSchema = z.nativeEnum(UserEventPayload120ToAccountType);
/** @internal */
export const ToAccount$inboundSchema = z.object({
id: types.string(),
type: UserEventPayload120ToAccountType$inboundSchema,
slug: types.optional(types.string()),
username: types.optional(types.string()),
});
export function toAccountFromJSON(jsonString) {
return safeParse(jsonString, (x) => ToAccount$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ToAccount' from JSON`);
}
/** @internal */
export const OneHundredAndTwenty$inboundSchema = z.object({
edgeConfig: z.lazy(() => EdgeConfig$inboundSchema),
fromAccount: z.lazy(() => FromAccount$inboundSchema),
toAccount: z.lazy(() => ToAccount$inboundSchema),
});
export function oneHundredAndTwentyFromJSON(jsonString) {
return safeParse(jsonString, (x) => OneHundredAndTwenty$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OneHundredAndTwenty' from JSON`);
}
/** @internal */
export const OneHundredAndNineteen$inboundSchema = z.object({
edgeConfigId: types.string(),
edgeConfigSlug: types.string(),
edgeConfigDigest: types.optional(types.string()),
});
export function oneHundredAndNineteenFromJSON(jsonString) {
return safeParse(jsonString, (x) => OneHundredAndNineteen$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OneHundredAndNineteen' from JSON`);
}
/** @internal */
export const EdgeConfigSchema$inboundSchema = z.object({});
export function edgeConfigSchemaFromJSON(jsonString) {
return safeParse(jsonString, (x) => EdgeConfigSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EdgeConfigSchema' from JSON`);
}
/** @internal */
export const OneHundredAndEighteen$inboundSchema = z.object({
edgeConfigId: types.string(),
edgeConfigSlug: types.string(),
edgeConfigSchema: types.optional(z.lazy(() => EdgeConfigSchema$inboundSchema)),
});
export function oneHundredAndEighteenFromJSON(jsonString) {
return safeParse(jsonString, (x) => OneHundredAndEighteen$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OneHundredAndEighteen' from JSON`);
}
/** @internal */
export const OneHundredAndSeventeen$inboundSchema = z.object({
edgeConfigId: types.string(),
edgeConfigSlug: types.string(),
edgeConfigDigest: types.string(),
edgeConfigBackupVersionId: types.string(),
});
export function oneHundredAndSeventeenFromJSON(jsonString) {
return safeParse(jsonString, (x) => OneHundredAndSeventeen$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OneHundredAndSeventeen' from JSON`);
}
/** @internal */
export const OneHundredAndSixteen$inboundSchema = z.object({
edgeConfigId: types.string(),
edgeConfigSlug: types.string(),
edgeConfigDigest: types.string(),
});
export function oneHundredAndSixteenFromJSON(jsonString) {
return safeParse(jsonString, (x) => OneHundredAndSixteen$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OneHundredAndSixteen' from JSON`);
}
/** @internal */
export const OneHundredAndFifteen$inboundSchema = z.object({
projectId: types.string(),
projectName: types.string(),
});
export function oneHundredAndFifteenFromJSON(jsonString) {
return safeParse(jsonString, (x) => OneHundredAndFifteen$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OneHundredAndFifteen' from JSON`);
}
/** @internal */
export const OneHundredAndFourteen$inboundSchema = z.object({
projectId: types.string(),
projectName: types.string(),
tags: z.array(types.string()),
target: types.optional(types.string()),
});
export function oneHundredAndFourteenFromJSON(jsonString) {
return safeParse(jsonString, (x) => OneHundredAndFourteen$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OneHundredAndFourteen' from JSON`);
}
/** @internal */
export const OneHundredAndThirteen$inboundSchema = z.object({
projectId: types.string(),
projectName: types.string(),
srcImages: z.array(types.string()),
});
export function oneHundredAndThirteenFromJSON(jsonString) {
return safeParse(jsonString, (x) => OneHundredAndThirteen$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OneHundredAndThirteen' from JSON`);
}
/** @internal */
export const OneHundredAndTwelve$inboundSchema = z.object({
drainUrl: types.nullable(types.string()),
integrationName: types.optional(types.string()),
});
export function oneHundredAndTwelveFromJSON(jsonString) {
return safeParse(jsonString, (x) => OneHundredAndTwelve$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OneHundredAndTwelve' from JSON`);
}
/** @internal */
export const OneHundredAndEleven$inboundSchema = z.object({
drainUrl: types.nullable(types.string()),
drainName: types.nullable(types.string()),
integrationName: types.optional(types.string()),
});
export function oneHundredAndElevenFromJSON(jsonString) {
return safeParse(jsonString, (x) => OneHundredAndEleven$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OneHundredAndEleven' from JSON`);
}
//# sourceMappingURL=onehundredandeleven.js.map