UNPKG

attio-js

Version:

Developer-friendly & type-safe JS/TS SDK based on the official OpenAPI spec of Attio.

625 lines 33.1 kB
import * as z from "zod"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetV2WebhooksRequest = { limit?: number | undefined; offset?: number | undefined; }; /** * Type of event the webhook is subscribed to. */ export declare const GetV2WebhooksEventType: { readonly CommentCreated: "comment.created"; readonly CommentResolved: "comment.resolved"; readonly CommentUnresolved: "comment.unresolved"; readonly CommentDeleted: "comment.deleted"; readonly ListCreated: "list.created"; readonly ListUpdated: "list.updated"; readonly ListDeleted: "list.deleted"; readonly ListAttributeCreated: "list-attribute.created"; readonly ListAttributeUpdated: "list-attribute.updated"; readonly ListEntryCreated: "list-entry.created"; readonly ListEntryUpdated: "list-entry.updated"; readonly ListEntryDeleted: "list-entry.deleted"; readonly ObjectAttributeCreated: "object-attribute.created"; readonly ObjectAttributeUpdated: "object-attribute.updated"; readonly NoteCreated: "note.created"; readonly NoteUpdated: "note.updated"; readonly NoteDeleted: "note.deleted"; readonly RecordCreated: "record.created"; readonly RecordMerged: "record.merged"; readonly RecordUpdated: "record.updated"; readonly RecordDeleted: "record.deleted"; readonly TaskCreated: "task.created"; readonly TaskUpdated: "task.updated"; readonly TaskDeleted: "task.deleted"; readonly WorkspaceMemberCreated: "workspace-member.created"; }; /** * Type of event the webhook is subscribed to. */ export type GetV2WebhooksEventType = ClosedEnum<typeof GetV2WebhooksEventType>; export declare const GetV2WebhooksDollarAndOperatorNotEquals: { readonly NotEquals: "not_equals"; }; export type GetV2WebhooksDollarAndOperatorNotEquals = ClosedEnum<typeof GetV2WebhooksDollarAndOperatorNotEquals>; export type GetV2WebhooksDollarAndNotEquals = { field: string; operator: GetV2WebhooksDollarAndOperatorNotEquals; value: string; }; export declare const GetV2WebhooksDollarAndOperatorEquals: { readonly Equals: "equals"; }; export type GetV2WebhooksDollarAndOperatorEquals = ClosedEnum<typeof GetV2WebhooksDollarAndOperatorEquals>; export type GetV2WebhooksDollarAndEquals = { field: string; operator: GetV2WebhooksDollarAndOperatorEquals; value: string; }; export type GetV2WebhooksDollarAndUnion = GetV2WebhooksDollarAndEquals | GetV2WebhooksDollarAndNotEquals; export type GetV2WebhooksFilter2 = { dollarAnd: Array<GetV2WebhooksDollarAndEquals | GetV2WebhooksDollarAndNotEquals>; }; export declare const GetV2WebhooksDollarOrOperatorNotEquals: { readonly NotEquals: "not_equals"; }; export type GetV2WebhooksDollarOrOperatorNotEquals = ClosedEnum<typeof GetV2WebhooksDollarOrOperatorNotEquals>; export type GetV2WebhooksDollarOrNotEquals = { field: string; operator: GetV2WebhooksDollarOrOperatorNotEquals; value: string; }; export declare const GetV2WebhooksDollarOrOperatorEquals: { readonly Equals: "equals"; }; export type GetV2WebhooksDollarOrOperatorEquals = ClosedEnum<typeof GetV2WebhooksDollarOrOperatorEquals>; export type GetV2WebhooksDollarOrEquals = { field: string; operator: GetV2WebhooksDollarOrOperatorEquals; value: string; }; export type GetV2WebhooksDollarOrUnion = GetV2WebhooksDollarOrEquals | GetV2WebhooksDollarOrNotEquals; export type GetV2WebhooksFilter1 = { dollarOr: Array<GetV2WebhooksDollarOrEquals | GetV2WebhooksDollarOrNotEquals>; }; /** * Filters to determine whether the webhook event should be sent. If null, the filter always passes. */ export type GetV2WebhooksFilterUnion = GetV2WebhooksFilter1 | GetV2WebhooksFilter2; export type GetV2WebhooksSubscription = { /** * Type of event the webhook is subscribed to. */ eventType: GetV2WebhooksEventType; /** * Filters to determine whether the webhook event should be sent. If null, the filter always passes. */ filter: GetV2WebhooksFilter1 | GetV2WebhooksFilter2 | null; }; export type GetV2WebhooksId = { /** * The ID of the workspace the webhook belongs to. */ workspaceId: string; /** * The ID of the webhook. */ webhookId: string; }; /** * The state of the webhook. Webhooks marked as active and degraded will receive events, inactive ones will not. If a webhook remains in the degraded state for 7 days, it will be marked inactive. */ export declare const GetV2WebhooksStatus: { readonly Active: "active"; readonly Degraded: "degraded"; readonly Inactive: "inactive"; }; /** * The state of the webhook. Webhooks marked as active and degraded will receive events, inactive ones will not. If a webhook remains in the degraded state for 7 days, it will be marked inactive. */ export type GetV2WebhooksStatus = ClosedEnum<typeof GetV2WebhooksStatus>; export type GetV2WebhooksData = { /** * URL where the webhook events will be delivered to. */ targetUrl: string; /** * One or more events the webhook is subscribed to. */ subscriptions: Array<GetV2WebhooksSubscription>; id: GetV2WebhooksId; /** * The state of the webhook. Webhooks marked as active and degraded will receive events, inactive ones will not. If a webhook remains in the degraded state for 7 days, it will be marked inactive. */ status: GetV2WebhooksStatus; /** * When the webhook was created. */ createdAt: string; }; /** * Success */ export type GetV2WebhooksResponse = { data: Array<GetV2WebhooksData>; }; /** @internal */ export declare const GetV2WebhooksRequest$inboundSchema: z.ZodType<GetV2WebhooksRequest, z.ZodTypeDef, unknown>; /** @internal */ export type GetV2WebhooksRequest$Outbound = { limit?: number | undefined; offset?: number | undefined; }; /** @internal */ export declare const GetV2WebhooksRequest$outboundSchema: z.ZodType<GetV2WebhooksRequest$Outbound, z.ZodTypeDef, GetV2WebhooksRequest>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetV2WebhooksRequest$ { /** @deprecated use `GetV2WebhooksRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType<GetV2WebhooksRequest, z.ZodTypeDef, unknown>; /** @deprecated use `GetV2WebhooksRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType<GetV2WebhooksRequest$Outbound, z.ZodTypeDef, GetV2WebhooksRequest>; /** @deprecated use `GetV2WebhooksRequest$Outbound` instead. */ type Outbound = GetV2WebhooksRequest$Outbound; } export declare function getV2WebhooksRequestToJSON(getV2WebhooksRequest: GetV2WebhooksRequest): string; export declare function getV2WebhooksRequestFromJSON(jsonString: string): SafeParseResult<GetV2WebhooksRequest, SDKValidationError>; /** @internal */ export declare const GetV2WebhooksEventType$inboundSchema: z.ZodNativeEnum<typeof GetV2WebhooksEventType>; /** @internal */ export declare const GetV2WebhooksEventType$outboundSchema: z.ZodNativeEnum<typeof GetV2WebhooksEventType>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetV2WebhooksEventType$ { /** @deprecated use `GetV2WebhooksEventType$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly CommentCreated: "comment.created"; readonly CommentResolved: "comment.resolved"; readonly CommentUnresolved: "comment.unresolved"; readonly CommentDeleted: "comment.deleted"; readonly ListCreated: "list.created"; readonly ListUpdated: "list.updated"; readonly ListDeleted: "list.deleted"; readonly ListAttributeCreated: "list-attribute.created"; readonly ListAttributeUpdated: "list-attribute.updated"; readonly ListEntryCreated: "list-entry.created"; readonly ListEntryUpdated: "list-entry.updated"; readonly ListEntryDeleted: "list-entry.deleted"; readonly ObjectAttributeCreated: "object-attribute.created"; readonly ObjectAttributeUpdated: "object-attribute.updated"; readonly NoteCreated: "note.created"; readonly NoteUpdated: "note.updated"; readonly NoteDeleted: "note.deleted"; readonly RecordCreated: "record.created"; readonly RecordMerged: "record.merged"; readonly RecordUpdated: "record.updated"; readonly RecordDeleted: "record.deleted"; readonly TaskCreated: "task.created"; readonly TaskUpdated: "task.updated"; readonly TaskDeleted: "task.deleted"; readonly WorkspaceMemberCreated: "workspace-member.created"; }>; /** @deprecated use `GetV2WebhooksEventType$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly CommentCreated: "comment.created"; readonly CommentResolved: "comment.resolved"; readonly CommentUnresolved: "comment.unresolved"; readonly CommentDeleted: "comment.deleted"; readonly ListCreated: "list.created"; readonly ListUpdated: "list.updated"; readonly ListDeleted: "list.deleted"; readonly ListAttributeCreated: "list-attribute.created"; readonly ListAttributeUpdated: "list-attribute.updated"; readonly ListEntryCreated: "list-entry.created"; readonly ListEntryUpdated: "list-entry.updated"; readonly ListEntryDeleted: "list-entry.deleted"; readonly ObjectAttributeCreated: "object-attribute.created"; readonly ObjectAttributeUpdated: "object-attribute.updated"; readonly NoteCreated: "note.created"; readonly NoteUpdated: "note.updated"; readonly NoteDeleted: "note.deleted"; readonly RecordCreated: "record.created"; readonly RecordMerged: "record.merged"; readonly RecordUpdated: "record.updated"; readonly RecordDeleted: "record.deleted"; readonly TaskCreated: "task.created"; readonly TaskUpdated: "task.updated"; readonly TaskDeleted: "task.deleted"; readonly WorkspaceMemberCreated: "workspace-member.created"; }>; } /** @internal */ export declare const GetV2WebhooksDollarAndOperatorNotEquals$inboundSchema: z.ZodNativeEnum<typeof GetV2WebhooksDollarAndOperatorNotEquals>; /** @internal */ export declare const GetV2WebhooksDollarAndOperatorNotEquals$outboundSchema: z.ZodNativeEnum<typeof GetV2WebhooksDollarAndOperatorNotEquals>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetV2WebhooksDollarAndOperatorNotEquals$ { /** @deprecated use `GetV2WebhooksDollarAndOperatorNotEquals$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly NotEquals: "not_equals"; }>; /** @deprecated use `GetV2WebhooksDollarAndOperatorNotEquals$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly NotEquals: "not_equals"; }>; } /** @internal */ export declare const GetV2WebhooksDollarAndNotEquals$inboundSchema: z.ZodType<GetV2WebhooksDollarAndNotEquals, z.ZodTypeDef, unknown>; /** @internal */ export type GetV2WebhooksDollarAndNotEquals$Outbound = { field: string; operator: string; value: string; }; /** @internal */ export declare const GetV2WebhooksDollarAndNotEquals$outboundSchema: z.ZodType<GetV2WebhooksDollarAndNotEquals$Outbound, z.ZodTypeDef, GetV2WebhooksDollarAndNotEquals>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetV2WebhooksDollarAndNotEquals$ { /** @deprecated use `GetV2WebhooksDollarAndNotEquals$inboundSchema` instead. */ const inboundSchema: z.ZodType<GetV2WebhooksDollarAndNotEquals, z.ZodTypeDef, unknown>; /** @deprecated use `GetV2WebhooksDollarAndNotEquals$outboundSchema` instead. */ const outboundSchema: z.ZodType<GetV2WebhooksDollarAndNotEquals$Outbound, z.ZodTypeDef, GetV2WebhooksDollarAndNotEquals>; /** @deprecated use `GetV2WebhooksDollarAndNotEquals$Outbound` instead. */ type Outbound = GetV2WebhooksDollarAndNotEquals$Outbound; } export declare function getV2WebhooksDollarAndNotEqualsToJSON(getV2WebhooksDollarAndNotEquals: GetV2WebhooksDollarAndNotEquals): string; export declare function getV2WebhooksDollarAndNotEqualsFromJSON(jsonString: string): SafeParseResult<GetV2WebhooksDollarAndNotEquals, SDKValidationError>; /** @internal */ export declare const GetV2WebhooksDollarAndOperatorEquals$inboundSchema: z.ZodNativeEnum<typeof GetV2WebhooksDollarAndOperatorEquals>; /** @internal */ export declare const GetV2WebhooksDollarAndOperatorEquals$outboundSchema: z.ZodNativeEnum<typeof GetV2WebhooksDollarAndOperatorEquals>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetV2WebhooksDollarAndOperatorEquals$ { /** @deprecated use `GetV2WebhooksDollarAndOperatorEquals$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Equals: "equals"; }>; /** @deprecated use `GetV2WebhooksDollarAndOperatorEquals$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Equals: "equals"; }>; } /** @internal */ export declare const GetV2WebhooksDollarAndEquals$inboundSchema: z.ZodType<GetV2WebhooksDollarAndEquals, z.ZodTypeDef, unknown>; /** @internal */ export type GetV2WebhooksDollarAndEquals$Outbound = { field: string; operator: string; value: string; }; /** @internal */ export declare const GetV2WebhooksDollarAndEquals$outboundSchema: z.ZodType<GetV2WebhooksDollarAndEquals$Outbound, z.ZodTypeDef, GetV2WebhooksDollarAndEquals>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetV2WebhooksDollarAndEquals$ { /** @deprecated use `GetV2WebhooksDollarAndEquals$inboundSchema` instead. */ const inboundSchema: z.ZodType<GetV2WebhooksDollarAndEquals, z.ZodTypeDef, unknown>; /** @deprecated use `GetV2WebhooksDollarAndEquals$outboundSchema` instead. */ const outboundSchema: z.ZodType<GetV2WebhooksDollarAndEquals$Outbound, z.ZodTypeDef, GetV2WebhooksDollarAndEquals>; /** @deprecated use `GetV2WebhooksDollarAndEquals$Outbound` instead. */ type Outbound = GetV2WebhooksDollarAndEquals$Outbound; } export declare function getV2WebhooksDollarAndEqualsToJSON(getV2WebhooksDollarAndEquals: GetV2WebhooksDollarAndEquals): string; export declare function getV2WebhooksDollarAndEqualsFromJSON(jsonString: string): SafeParseResult<GetV2WebhooksDollarAndEquals, SDKValidationError>; /** @internal */ export declare const GetV2WebhooksDollarAndUnion$inboundSchema: z.ZodType<GetV2WebhooksDollarAndUnion, z.ZodTypeDef, unknown>; /** @internal */ export type GetV2WebhooksDollarAndUnion$Outbound = GetV2WebhooksDollarAndEquals$Outbound | GetV2WebhooksDollarAndNotEquals$Outbound; /** @internal */ export declare const GetV2WebhooksDollarAndUnion$outboundSchema: z.ZodType<GetV2WebhooksDollarAndUnion$Outbound, z.ZodTypeDef, GetV2WebhooksDollarAndUnion>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetV2WebhooksDollarAndUnion$ { /** @deprecated use `GetV2WebhooksDollarAndUnion$inboundSchema` instead. */ const inboundSchema: z.ZodType<GetV2WebhooksDollarAndUnion, z.ZodTypeDef, unknown>; /** @deprecated use `GetV2WebhooksDollarAndUnion$outboundSchema` instead. */ const outboundSchema: z.ZodType<GetV2WebhooksDollarAndUnion$Outbound, z.ZodTypeDef, GetV2WebhooksDollarAndUnion>; /** @deprecated use `GetV2WebhooksDollarAndUnion$Outbound` instead. */ type Outbound = GetV2WebhooksDollarAndUnion$Outbound; } export declare function getV2WebhooksDollarAndUnionToJSON(getV2WebhooksDollarAndUnion: GetV2WebhooksDollarAndUnion): string; export declare function getV2WebhooksDollarAndUnionFromJSON(jsonString: string): SafeParseResult<GetV2WebhooksDollarAndUnion, SDKValidationError>; /** @internal */ export declare const GetV2WebhooksFilter2$inboundSchema: z.ZodType<GetV2WebhooksFilter2, z.ZodTypeDef, unknown>; /** @internal */ export type GetV2WebhooksFilter2$Outbound = { $and: Array<GetV2WebhooksDollarAndEquals$Outbound | GetV2WebhooksDollarAndNotEquals$Outbound>; }; /** @internal */ export declare const GetV2WebhooksFilter2$outboundSchema: z.ZodType<GetV2WebhooksFilter2$Outbound, z.ZodTypeDef, GetV2WebhooksFilter2>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetV2WebhooksFilter2$ { /** @deprecated use `GetV2WebhooksFilter2$inboundSchema` instead. */ const inboundSchema: z.ZodType<GetV2WebhooksFilter2, z.ZodTypeDef, unknown>; /** @deprecated use `GetV2WebhooksFilter2$outboundSchema` instead. */ const outboundSchema: z.ZodType<GetV2WebhooksFilter2$Outbound, z.ZodTypeDef, GetV2WebhooksFilter2>; /** @deprecated use `GetV2WebhooksFilter2$Outbound` instead. */ type Outbound = GetV2WebhooksFilter2$Outbound; } export declare function getV2WebhooksFilter2ToJSON(getV2WebhooksFilter2: GetV2WebhooksFilter2): string; export declare function getV2WebhooksFilter2FromJSON(jsonString: string): SafeParseResult<GetV2WebhooksFilter2, SDKValidationError>; /** @internal */ export declare const GetV2WebhooksDollarOrOperatorNotEquals$inboundSchema: z.ZodNativeEnum<typeof GetV2WebhooksDollarOrOperatorNotEquals>; /** @internal */ export declare const GetV2WebhooksDollarOrOperatorNotEquals$outboundSchema: z.ZodNativeEnum<typeof GetV2WebhooksDollarOrOperatorNotEquals>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetV2WebhooksDollarOrOperatorNotEquals$ { /** @deprecated use `GetV2WebhooksDollarOrOperatorNotEquals$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly NotEquals: "not_equals"; }>; /** @deprecated use `GetV2WebhooksDollarOrOperatorNotEquals$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly NotEquals: "not_equals"; }>; } /** @internal */ export declare const GetV2WebhooksDollarOrNotEquals$inboundSchema: z.ZodType<GetV2WebhooksDollarOrNotEquals, z.ZodTypeDef, unknown>; /** @internal */ export type GetV2WebhooksDollarOrNotEquals$Outbound = { field: string; operator: string; value: string; }; /** @internal */ export declare const GetV2WebhooksDollarOrNotEquals$outboundSchema: z.ZodType<GetV2WebhooksDollarOrNotEquals$Outbound, z.ZodTypeDef, GetV2WebhooksDollarOrNotEquals>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetV2WebhooksDollarOrNotEquals$ { /** @deprecated use `GetV2WebhooksDollarOrNotEquals$inboundSchema` instead. */ const inboundSchema: z.ZodType<GetV2WebhooksDollarOrNotEquals, z.ZodTypeDef, unknown>; /** @deprecated use `GetV2WebhooksDollarOrNotEquals$outboundSchema` instead. */ const outboundSchema: z.ZodType<GetV2WebhooksDollarOrNotEquals$Outbound, z.ZodTypeDef, GetV2WebhooksDollarOrNotEquals>; /** @deprecated use `GetV2WebhooksDollarOrNotEquals$Outbound` instead. */ type Outbound = GetV2WebhooksDollarOrNotEquals$Outbound; } export declare function getV2WebhooksDollarOrNotEqualsToJSON(getV2WebhooksDollarOrNotEquals: GetV2WebhooksDollarOrNotEquals): string; export declare function getV2WebhooksDollarOrNotEqualsFromJSON(jsonString: string): SafeParseResult<GetV2WebhooksDollarOrNotEquals, SDKValidationError>; /** @internal */ export declare const GetV2WebhooksDollarOrOperatorEquals$inboundSchema: z.ZodNativeEnum<typeof GetV2WebhooksDollarOrOperatorEquals>; /** @internal */ export declare const GetV2WebhooksDollarOrOperatorEquals$outboundSchema: z.ZodNativeEnum<typeof GetV2WebhooksDollarOrOperatorEquals>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetV2WebhooksDollarOrOperatorEquals$ { /** @deprecated use `GetV2WebhooksDollarOrOperatorEquals$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Equals: "equals"; }>; /** @deprecated use `GetV2WebhooksDollarOrOperatorEquals$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Equals: "equals"; }>; } /** @internal */ export declare const GetV2WebhooksDollarOrEquals$inboundSchema: z.ZodType<GetV2WebhooksDollarOrEquals, z.ZodTypeDef, unknown>; /** @internal */ export type GetV2WebhooksDollarOrEquals$Outbound = { field: string; operator: string; value: string; }; /** @internal */ export declare const GetV2WebhooksDollarOrEquals$outboundSchema: z.ZodType<GetV2WebhooksDollarOrEquals$Outbound, z.ZodTypeDef, GetV2WebhooksDollarOrEquals>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetV2WebhooksDollarOrEquals$ { /** @deprecated use `GetV2WebhooksDollarOrEquals$inboundSchema` instead. */ const inboundSchema: z.ZodType<GetV2WebhooksDollarOrEquals, z.ZodTypeDef, unknown>; /** @deprecated use `GetV2WebhooksDollarOrEquals$outboundSchema` instead. */ const outboundSchema: z.ZodType<GetV2WebhooksDollarOrEquals$Outbound, z.ZodTypeDef, GetV2WebhooksDollarOrEquals>; /** @deprecated use `GetV2WebhooksDollarOrEquals$Outbound` instead. */ type Outbound = GetV2WebhooksDollarOrEquals$Outbound; } export declare function getV2WebhooksDollarOrEqualsToJSON(getV2WebhooksDollarOrEquals: GetV2WebhooksDollarOrEquals): string; export declare function getV2WebhooksDollarOrEqualsFromJSON(jsonString: string): SafeParseResult<GetV2WebhooksDollarOrEquals, SDKValidationError>; /** @internal */ export declare const GetV2WebhooksDollarOrUnion$inboundSchema: z.ZodType<GetV2WebhooksDollarOrUnion, z.ZodTypeDef, unknown>; /** @internal */ export type GetV2WebhooksDollarOrUnion$Outbound = GetV2WebhooksDollarOrEquals$Outbound | GetV2WebhooksDollarOrNotEquals$Outbound; /** @internal */ export declare const GetV2WebhooksDollarOrUnion$outboundSchema: z.ZodType<GetV2WebhooksDollarOrUnion$Outbound, z.ZodTypeDef, GetV2WebhooksDollarOrUnion>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetV2WebhooksDollarOrUnion$ { /** @deprecated use `GetV2WebhooksDollarOrUnion$inboundSchema` instead. */ const inboundSchema: z.ZodType<GetV2WebhooksDollarOrUnion, z.ZodTypeDef, unknown>; /** @deprecated use `GetV2WebhooksDollarOrUnion$outboundSchema` instead. */ const outboundSchema: z.ZodType<GetV2WebhooksDollarOrUnion$Outbound, z.ZodTypeDef, GetV2WebhooksDollarOrUnion>; /** @deprecated use `GetV2WebhooksDollarOrUnion$Outbound` instead. */ type Outbound = GetV2WebhooksDollarOrUnion$Outbound; } export declare function getV2WebhooksDollarOrUnionToJSON(getV2WebhooksDollarOrUnion: GetV2WebhooksDollarOrUnion): string; export declare function getV2WebhooksDollarOrUnionFromJSON(jsonString: string): SafeParseResult<GetV2WebhooksDollarOrUnion, SDKValidationError>; /** @internal */ export declare const GetV2WebhooksFilter1$inboundSchema: z.ZodType<GetV2WebhooksFilter1, z.ZodTypeDef, unknown>; /** @internal */ export type GetV2WebhooksFilter1$Outbound = { $or: Array<GetV2WebhooksDollarOrEquals$Outbound | GetV2WebhooksDollarOrNotEquals$Outbound>; }; /** @internal */ export declare const GetV2WebhooksFilter1$outboundSchema: z.ZodType<GetV2WebhooksFilter1$Outbound, z.ZodTypeDef, GetV2WebhooksFilter1>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetV2WebhooksFilter1$ { /** @deprecated use `GetV2WebhooksFilter1$inboundSchema` instead. */ const inboundSchema: z.ZodType<GetV2WebhooksFilter1, z.ZodTypeDef, unknown>; /** @deprecated use `GetV2WebhooksFilter1$outboundSchema` instead. */ const outboundSchema: z.ZodType<GetV2WebhooksFilter1$Outbound, z.ZodTypeDef, GetV2WebhooksFilter1>; /** @deprecated use `GetV2WebhooksFilter1$Outbound` instead. */ type Outbound = GetV2WebhooksFilter1$Outbound; } export declare function getV2WebhooksFilter1ToJSON(getV2WebhooksFilter1: GetV2WebhooksFilter1): string; export declare function getV2WebhooksFilter1FromJSON(jsonString: string): SafeParseResult<GetV2WebhooksFilter1, SDKValidationError>; /** @internal */ export declare const GetV2WebhooksFilterUnion$inboundSchema: z.ZodType<GetV2WebhooksFilterUnion, z.ZodTypeDef, unknown>; /** @internal */ export type GetV2WebhooksFilterUnion$Outbound = GetV2WebhooksFilter1$Outbound | GetV2WebhooksFilter2$Outbound; /** @internal */ export declare const GetV2WebhooksFilterUnion$outboundSchema: z.ZodType<GetV2WebhooksFilterUnion$Outbound, z.ZodTypeDef, GetV2WebhooksFilterUnion>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetV2WebhooksFilterUnion$ { /** @deprecated use `GetV2WebhooksFilterUnion$inboundSchema` instead. */ const inboundSchema: z.ZodType<GetV2WebhooksFilterUnion, z.ZodTypeDef, unknown>; /** @deprecated use `GetV2WebhooksFilterUnion$outboundSchema` instead. */ const outboundSchema: z.ZodType<GetV2WebhooksFilterUnion$Outbound, z.ZodTypeDef, GetV2WebhooksFilterUnion>; /** @deprecated use `GetV2WebhooksFilterUnion$Outbound` instead. */ type Outbound = GetV2WebhooksFilterUnion$Outbound; } export declare function getV2WebhooksFilterUnionToJSON(getV2WebhooksFilterUnion: GetV2WebhooksFilterUnion): string; export declare function getV2WebhooksFilterUnionFromJSON(jsonString: string): SafeParseResult<GetV2WebhooksFilterUnion, SDKValidationError>; /** @internal */ export declare const GetV2WebhooksSubscription$inboundSchema: z.ZodType<GetV2WebhooksSubscription, z.ZodTypeDef, unknown>; /** @internal */ export type GetV2WebhooksSubscription$Outbound = { event_type: string; filter: GetV2WebhooksFilter1$Outbound | GetV2WebhooksFilter2$Outbound | null; }; /** @internal */ export declare const GetV2WebhooksSubscription$outboundSchema: z.ZodType<GetV2WebhooksSubscription$Outbound, z.ZodTypeDef, GetV2WebhooksSubscription>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetV2WebhooksSubscription$ { /** @deprecated use `GetV2WebhooksSubscription$inboundSchema` instead. */ const inboundSchema: z.ZodType<GetV2WebhooksSubscription, z.ZodTypeDef, unknown>; /** @deprecated use `GetV2WebhooksSubscription$outboundSchema` instead. */ const outboundSchema: z.ZodType<GetV2WebhooksSubscription$Outbound, z.ZodTypeDef, GetV2WebhooksSubscription>; /** @deprecated use `GetV2WebhooksSubscription$Outbound` instead. */ type Outbound = GetV2WebhooksSubscription$Outbound; } export declare function getV2WebhooksSubscriptionToJSON(getV2WebhooksSubscription: GetV2WebhooksSubscription): string; export declare function getV2WebhooksSubscriptionFromJSON(jsonString: string): SafeParseResult<GetV2WebhooksSubscription, SDKValidationError>; /** @internal */ export declare const GetV2WebhooksId$inboundSchema: z.ZodType<GetV2WebhooksId, z.ZodTypeDef, unknown>; /** @internal */ export type GetV2WebhooksId$Outbound = { workspace_id: string; webhook_id: string; }; /** @internal */ export declare const GetV2WebhooksId$outboundSchema: z.ZodType<GetV2WebhooksId$Outbound, z.ZodTypeDef, GetV2WebhooksId>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetV2WebhooksId$ { /** @deprecated use `GetV2WebhooksId$inboundSchema` instead. */ const inboundSchema: z.ZodType<GetV2WebhooksId, z.ZodTypeDef, unknown>; /** @deprecated use `GetV2WebhooksId$outboundSchema` instead. */ const outboundSchema: z.ZodType<GetV2WebhooksId$Outbound, z.ZodTypeDef, GetV2WebhooksId>; /** @deprecated use `GetV2WebhooksId$Outbound` instead. */ type Outbound = GetV2WebhooksId$Outbound; } export declare function getV2WebhooksIdToJSON(getV2WebhooksId: GetV2WebhooksId): string; export declare function getV2WebhooksIdFromJSON(jsonString: string): SafeParseResult<GetV2WebhooksId, SDKValidationError>; /** @internal */ export declare const GetV2WebhooksStatus$inboundSchema: z.ZodNativeEnum<typeof GetV2WebhooksStatus>; /** @internal */ export declare const GetV2WebhooksStatus$outboundSchema: z.ZodNativeEnum<typeof GetV2WebhooksStatus>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetV2WebhooksStatus$ { /** @deprecated use `GetV2WebhooksStatus$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Active: "active"; readonly Degraded: "degraded"; readonly Inactive: "inactive"; }>; /** @deprecated use `GetV2WebhooksStatus$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Active: "active"; readonly Degraded: "degraded"; readonly Inactive: "inactive"; }>; } /** @internal */ export declare const GetV2WebhooksData$inboundSchema: z.ZodType<GetV2WebhooksData, z.ZodTypeDef, unknown>; /** @internal */ export type GetV2WebhooksData$Outbound = { target_url: string; subscriptions: Array<GetV2WebhooksSubscription$Outbound>; id: GetV2WebhooksId$Outbound; status: string; created_at: string; }; /** @internal */ export declare const GetV2WebhooksData$outboundSchema: z.ZodType<GetV2WebhooksData$Outbound, z.ZodTypeDef, GetV2WebhooksData>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetV2WebhooksData$ { /** @deprecated use `GetV2WebhooksData$inboundSchema` instead. */ const inboundSchema: z.ZodType<GetV2WebhooksData, z.ZodTypeDef, unknown>; /** @deprecated use `GetV2WebhooksData$outboundSchema` instead. */ const outboundSchema: z.ZodType<GetV2WebhooksData$Outbound, z.ZodTypeDef, GetV2WebhooksData>; /** @deprecated use `GetV2WebhooksData$Outbound` instead. */ type Outbound = GetV2WebhooksData$Outbound; } export declare function getV2WebhooksDataToJSON(getV2WebhooksData: GetV2WebhooksData): string; export declare function getV2WebhooksDataFromJSON(jsonString: string): SafeParseResult<GetV2WebhooksData, SDKValidationError>; /** @internal */ export declare const GetV2WebhooksResponse$inboundSchema: z.ZodType<GetV2WebhooksResponse, z.ZodTypeDef, unknown>; /** @internal */ export type GetV2WebhooksResponse$Outbound = { data: Array<GetV2WebhooksData$Outbound>; }; /** @internal */ export declare const GetV2WebhooksResponse$outboundSchema: z.ZodType<GetV2WebhooksResponse$Outbound, z.ZodTypeDef, GetV2WebhooksResponse>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace GetV2WebhooksResponse$ { /** @deprecated use `GetV2WebhooksResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType<GetV2WebhooksResponse, z.ZodTypeDef, unknown>; /** @deprecated use `GetV2WebhooksResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType<GetV2WebhooksResponse$Outbound, z.ZodTypeDef, GetV2WebhooksResponse>; /** @deprecated use `GetV2WebhooksResponse$Outbound` instead. */ type Outbound = GetV2WebhooksResponse$Outbound; } export declare function getV2WebhooksResponseToJSON(getV2WebhooksResponse: GetV2WebhooksResponse): string; export declare function getV2WebhooksResponseFromJSON(jsonString: string): SafeParseResult<GetV2WebhooksResponse, SDKValidationError>; //# sourceMappingURL=getv2webhooks.d.ts.map