import * as z from "zod/v3";
import { ClosedEnum } from "../types/enums.js";
import { Result as SafeParseResult } from "../types/fp.js";
import { SDKValidationError } from "./sdkvalidationerror.js";
export declare const Events: {
    readonly BudgetReached: "budget.reached";
    readonly BudgetReset: "budget.reset";
    readonly DomainCreated: "domain.created";
    readonly DomainDnsRecordsChanged: "domain.dns.records.changed";
    readonly DomainTransferInStarted: "domain.transfer-in.started";
    readonly DomainTransferInCompleted: "domain.transfer-in.completed";
    readonly DomainTransferInFailed: "domain.transfer-in.failed";
    readonly DomainCertificateAdd: "domain.certificate.add";
    readonly DomainCertificateAddFailed: "domain.certificate.add.failed";
    readonly DomainCertificateRenew: "domain.certificate.renew";
    readonly DomainCertificateRenewFailed: "domain.certificate.renew.failed";
    readonly DomainCertificateDeleted: "domain.certificate.deleted";
    readonly DomainRenewal: "domain.renewal";
    readonly DomainRenewalFailed: "domain.renewal.failed";
    readonly DomainAutoRenewChanged: "domain.auto-renew.changed";
    readonly DeploymentCreated: "deployment.created";
    readonly DeploymentCleanup: "deployment.cleanup";
    readonly DeploymentError: "deployment.error";
    readonly DeploymentCanceled: "deployment.canceled";
    readonly DeploymentSucceeded: "deployment.succeeded";
    readonly DeploymentReady: "deployment.ready";
    readonly DeploymentCheckRerequested: "deployment.check-rerequested";
    readonly DeploymentPromoted: "deployment.promoted";
    readonly DeploymentIntegrationActionStart: "deployment.integration.action.start";
    readonly DeploymentIntegrationActionCancel: "deployment.integration.action.cancel";
    readonly DeploymentIntegrationActionCleanup: "deployment.integration.action.cleanup";
    readonly DeploymentCheckrunStart: "deployment.checkrun.start";
    readonly DeploymentCheckrunCancel: "deployment.checkrun.cancel";
    readonly EdgeConfigCreated: "edge-config.created";
    readonly EdgeConfigDeleted: "edge-config.deleted";
    readonly EdgeConfigItemsUpdated: "edge-config.items.updated";
    readonly FirewallAttack: "firewall.attack";
    readonly IntegrationConfigurationPermissionUpgraded: "integration-configuration.permission-upgraded";
    readonly IntegrationConfigurationRemoved: "integration-configuration.removed";
    readonly IntegrationConfigurationScopeChangeConfirmed: "integration-configuration.scope-change-confirmed";
    readonly IntegrationConfigurationTransferred: "integration-configuration.transferred";
    readonly IntegrationResourceProjectConnected: "integration-resource.project-connected";
    readonly IntegrationResourceProjectDisconnected: "integration-resource.project-disconnected";
    readonly ProjectCreated: "project.created";
    readonly ProjectRemoved: "project.removed";
    readonly ProjectDomainCreated: "project.domain.created";
    readonly ProjectDomainUpdated: "project.domain.updated";
    readonly ProjectDomainDeleted: "project.domain.deleted";
    readonly ProjectDomainVerified: "project.domain.verified";
    readonly ProjectDomainUnverified: "project.domain.unverified";
    readonly ProjectDomainMoved: "project.domain.moved";
    readonly ProjectRollingReleaseStarted: "project.rolling-release.started";
    readonly ProjectRollingReleaseAborted: "project.rolling-release.aborted";
    readonly ProjectRollingReleaseCompleted: "project.rolling-release.completed";
    readonly ProjectRollingReleaseApproved: "project.rolling-release.approved";
    readonly DeploymentChecksFailed: "deployment.checks.failed";
    readonly DeploymentChecksSucceeded: "deployment.checks.succeeded";
    readonly DeploymentChecksCompleted: "deployment-checks-completed";
    readonly DeploymentReadyHyphen: "deployment-ready";
    readonly DeploymentPreparedHyphen: "deployment-prepared";
    readonly DeploymentErrorHyphen: "deployment-error";
    readonly DeploymentCheckRerequestedHyphen: "deployment-check-rerequested";
    readonly DeploymentCanceledHyphen: "deployment-canceled";
    readonly ProjectCreatedHyphen: "project-created";
    readonly ProjectRemovedHyphen: "project-removed";
    readonly DomainCreatedHyphen: "domain-created";
    readonly Deployment: "deployment";
    readonly IntegrationConfigurationPermissionUpdatedHyphen: "integration-configuration-permission-updated";
    readonly IntegrationConfigurationRemovedHyphen: "integration-configuration-removed";
    readonly IntegrationConfigurationScopeChangeConfirmedHyphen: "integration-configuration-scope-change-confirmed";
    readonly MarketplaceMemberChanged: "marketplace.member.changed";
    readonly MarketplaceInvoiceCreated: "marketplace.invoice.created";
    readonly MarketplaceInvoicePaid: "marketplace.invoice.paid";
    readonly MarketplaceInvoiceNotpaid: "marketplace.invoice.notpaid";
    readonly MarketplaceInvoiceRefunded: "marketplace.invoice.refunded";
    readonly ObservabilityAnomaly: "observability.anomaly";
    readonly ObservabilityAnomalyError: "observability.anomaly-error";
    readonly ObservabilityUsageAnomaly: "observability.usage-anomaly";
    readonly ObservabilityErrorAnomaly: "observability.error-anomaly";
    readonly ObservabilityAnomalyBotId: "observability.anomaly-botId";
    readonly TestWebhook: "test-webhook";
};
export type Events = ClosedEnum<typeof Events>;
export type CreateWebhookRequestBody = {
    url: string;
    events: Array<Events>;
    projectIds?: Array<string> | undefined;
};
export type CreateWebhookRequest = {
    /**
     * The Team identifier to perform the request on behalf of.
     */
    teamId?: string | undefined;
    /**
     * The Team slug to perform the request on behalf of.
     */
    slug?: string | undefined;
    requestBody: CreateWebhookRequestBody;
};
/**
 * The webhooks events
 */
export declare const CreateWebhookEvents: {
    readonly BudgetReached: "budget.reached";
    readonly BudgetReset: "budget.reset";
    readonly DomainCreated: "domain.created";
    readonly DomainDnsRecordsChanged: "domain.dns.records.changed";
    readonly DomainTransferInStarted: "domain.transfer-in.started";
    readonly DomainTransferInCompleted: "domain.transfer-in.completed";
    readonly DomainTransferInFailed: "domain.transfer-in.failed";
    readonly DomainCertificateAdd: "domain.certificate.add";
    readonly DomainCertificateAddFailed: "domain.certificate.add.failed";
    readonly DomainCertificateRenew: "domain.certificate.renew";
    readonly DomainCertificateRenewFailed: "domain.certificate.renew.failed";
    readonly DomainCertificateDeleted: "domain.certificate.deleted";
    readonly DomainRenewal: "domain.renewal";
    readonly DomainRenewalFailed: "domain.renewal.failed";
    readonly DomainAutoRenewChanged: "domain.auto-renew.changed";
    readonly DeploymentCreated: "deployment.created";
    readonly DeploymentCleanup: "deployment.cleanup";
    readonly DeploymentError: "deployment.error";
    readonly DeploymentCanceled: "deployment.canceled";
    readonly DeploymentSucceeded: "deployment.succeeded";
    readonly DeploymentReady: "deployment.ready";
    readonly DeploymentCheckRerequested: "deployment.check-rerequested";
    readonly DeploymentPromoted: "deployment.promoted";
    readonly DeploymentIntegrationActionStart: "deployment.integration.action.start";
    readonly DeploymentIntegrationActionCancel: "deployment.integration.action.cancel";
    readonly DeploymentIntegrationActionCleanup: "deployment.integration.action.cleanup";
    readonly DeploymentCheckrunStart: "deployment.checkrun.start";
    readonly DeploymentCheckrunCancel: "deployment.checkrun.cancel";
    readonly EdgeConfigCreated: "edge-config.created";
    readonly EdgeConfigDeleted: "edge-config.deleted";
    readonly EdgeConfigItemsUpdated: "edge-config.items.updated";
    readonly FirewallAttack: "firewall.attack";
    readonly IntegrationConfigurationPermissionUpgraded: "integration-configuration.permission-upgraded";
    readonly IntegrationConfigurationRemoved: "integration-configuration.removed";
    readonly IntegrationConfigurationScopeChangeConfirmed: "integration-configuration.scope-change-confirmed";
    readonly IntegrationConfigurationTransferred: "integration-configuration.transferred";
    readonly IntegrationResourceProjectConnected: "integration-resource.project-connected";
    readonly IntegrationResourceProjectDisconnected: "integration-resource.project-disconnected";
    readonly ProjectCreated: "project.created";
    readonly ProjectRemoved: "project.removed";
    readonly ProjectDomainCreated: "project.domain.created";
    readonly ProjectDomainUpdated: "project.domain.updated";
    readonly ProjectDomainDeleted: "project.domain.deleted";
    readonly ProjectDomainVerified: "project.domain.verified";
    readonly ProjectDomainUnverified: "project.domain.unverified";
    readonly ProjectDomainMoved: "project.domain.moved";
    readonly ProjectRollingReleaseStarted: "project.rolling-release.started";
    readonly ProjectRollingReleaseAborted: "project.rolling-release.aborted";
    readonly ProjectRollingReleaseCompleted: "project.rolling-release.completed";
    readonly ProjectRollingReleaseApproved: "project.rolling-release.approved";
    readonly DeploymentChecksFailed: "deployment.checks.failed";
    readonly DeploymentChecksSucceeded: "deployment.checks.succeeded";
    readonly DeploymentChecksCompleted: "deployment-checks-completed";
    readonly DeploymentReadyHyphen: "deployment-ready";
    readonly DeploymentPreparedHyphen: "deployment-prepared";
    readonly DeploymentErrorHyphen: "deployment-error";
    readonly DeploymentCheckRerequestedHyphen: "deployment-check-rerequested";
    readonly DeploymentCanceledHyphen: "deployment-canceled";
    readonly ProjectCreatedHyphen: "project-created";
    readonly ProjectRemovedHyphen: "project-removed";
    readonly DomainCreatedHyphen: "domain-created";
    readonly Deployment: "deployment";
    readonly IntegrationConfigurationPermissionUpdatedHyphen: "integration-configuration-permission-updated";
    readonly IntegrationConfigurationRemovedHyphen: "integration-configuration-removed";
    readonly IntegrationConfigurationScopeChangeConfirmedHyphen: "integration-configuration-scope-change-confirmed";
    readonly MarketplaceMemberChanged: "marketplace.member.changed";
    readonly MarketplaceInvoiceCreated: "marketplace.invoice.created";
    readonly MarketplaceInvoicePaid: "marketplace.invoice.paid";
    readonly MarketplaceInvoiceNotpaid: "marketplace.invoice.notpaid";
    readonly MarketplaceInvoiceRefunded: "marketplace.invoice.refunded";
    readonly ObservabilityAnomaly: "observability.anomaly";
    readonly ObservabilityAnomalyError: "observability.anomaly-error";
    readonly ObservabilityUsageAnomaly: "observability.usage-anomaly";
    readonly ObservabilityErrorAnomaly: "observability.error-anomaly";
    readonly ObservabilityAnomalyBotId: "observability.anomaly-botId";
    readonly TestWebhook: "test-webhook";
};
/**
 * The webhooks events
 */
export type CreateWebhookEvents = ClosedEnum<typeof CreateWebhookEvents>;
export type CreateWebhookResponseBody = {
    /**
     * The webhook secret used to sign the payload
     */
    secret: string;
    /**
     * The webhooks events
     */
    events: Array<CreateWebhookEvents>;
    /**
     * The webhook id
     */
    id: string;
    /**
     * A string with the URL of the webhook
     */
    url: string;
    /**
     * The unique ID of the team the webhook belongs to
     */
    ownerId: string;
    /**
     * A number containing the date when the webhook was created in in milliseconds
     */
    createdAt: number;
    /**
     * A number containing the date when the webhook was updated in in milliseconds
     */
    updatedAt: number;
    /**
     * The ID of the projects the webhook is associated with
     */
    projectIds?: Array<string> | undefined;
};
/** @internal */
export declare const Events$inboundSchema: z.ZodNativeEnum<typeof Events>;
/** @internal */
export declare const Events$outboundSchema: z.ZodNativeEnum<typeof Events>;
/** @internal */
export declare const CreateWebhookRequestBody$inboundSchema: z.ZodType<CreateWebhookRequestBody, z.ZodTypeDef, unknown>;
/** @internal */
export type CreateWebhookRequestBody$Outbound = {
    url: string;
    events: Array<string>;
    projectIds?: Array<string> | undefined;
};
/** @internal */
export declare const CreateWebhookRequestBody$outboundSchema: z.ZodType<CreateWebhookRequestBody$Outbound, z.ZodTypeDef, CreateWebhookRequestBody>;
export declare function createWebhookRequestBodyToJSON(createWebhookRequestBody: CreateWebhookRequestBody): string;
export declare function createWebhookRequestBodyFromJSON(jsonString: string): SafeParseResult<CreateWebhookRequestBody, SDKValidationError>;
/** @internal */
export declare const CreateWebhookRequest$inboundSchema: z.ZodType<CreateWebhookRequest, z.ZodTypeDef, unknown>;
/** @internal */
export type CreateWebhookRequest$Outbound = {
    teamId?: string | undefined;
    slug?: string | undefined;
    RequestBody: CreateWebhookRequestBody$Outbound;
};
/** @internal */
export declare const CreateWebhookRequest$outboundSchema: z.ZodType<CreateWebhookRequest$Outbound, z.ZodTypeDef, CreateWebhookRequest>;
export declare function createWebhookRequestToJSON(createWebhookRequest: CreateWebhookRequest): string;
export declare function createWebhookRequestFromJSON(jsonString: string): SafeParseResult<CreateWebhookRequest, SDKValidationError>;
/** @internal */
export declare const CreateWebhookEvents$inboundSchema: z.ZodNativeEnum<typeof CreateWebhookEvents>;
/** @internal */
export declare const CreateWebhookEvents$outboundSchema: z.ZodNativeEnum<typeof CreateWebhookEvents>;
/** @internal */
export declare const CreateWebhookResponseBody$inboundSchema: z.ZodType<CreateWebhookResponseBody, z.ZodTypeDef, unknown>;
/** @internal */
export type CreateWebhookResponseBody$Outbound = {
    secret: string;
    events: Array<string>;
    id: string;
    url: string;
    ownerId: string;
    createdAt: number;
    updatedAt: number;
    projectIds?: Array<string> | undefined;
};
/** @internal */
export declare const CreateWebhookResponseBody$outboundSchema: z.ZodType<CreateWebhookResponseBody$Outbound, z.ZodTypeDef, CreateWebhookResponseBody>;
export declare function createWebhookResponseBodyToJSON(createWebhookResponseBody: CreateWebhookResponseBody): string;
export declare function createWebhookResponseBodyFromJSON(jsonString: string): SafeParseResult<CreateWebhookResponseBody, SDKValidationError>;
//# sourceMappingURL=createwebhookop.d.ts.map