attio-js
Version:
Developer-friendly & type-safe JS/TS SDK based on the official OpenAPI spec of Attio.
623 lines • 36.3 kB
TypeScript
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 GetV2WebhooksWebhookIdRequest = {
webhookId: string;
};
/**
* Type of event the webhook is subscribed to.
*/
export declare const GetV2WebhooksWebhookIdEventType: {
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 GetV2WebhooksWebhookIdEventType = ClosedEnum<typeof GetV2WebhooksWebhookIdEventType>;
export declare const GetV2WebhooksWebhookIdDollarAndOperatorNotEquals: {
readonly NotEquals: "not_equals";
};
export type GetV2WebhooksWebhookIdDollarAndOperatorNotEquals = ClosedEnum<typeof GetV2WebhooksWebhookIdDollarAndOperatorNotEquals>;
export type GetV2WebhooksWebhookIdDollarAndNotEquals = {
field: string;
operator: GetV2WebhooksWebhookIdDollarAndOperatorNotEquals;
value: string;
};
export declare const GetV2WebhooksWebhookIdDollarAndOperatorEquals: {
readonly Equals: "equals";
};
export type GetV2WebhooksWebhookIdDollarAndOperatorEquals = ClosedEnum<typeof GetV2WebhooksWebhookIdDollarAndOperatorEquals>;
export type GetV2WebhooksWebhookIdDollarAndEquals = {
field: string;
operator: GetV2WebhooksWebhookIdDollarAndOperatorEquals;
value: string;
};
export type GetV2WebhooksWebhookIdDollarAndUnion = GetV2WebhooksWebhookIdDollarAndEquals | GetV2WebhooksWebhookIdDollarAndNotEquals;
export type GetV2WebhooksWebhookIdFilter2 = {
dollarAnd: Array<GetV2WebhooksWebhookIdDollarAndEquals | GetV2WebhooksWebhookIdDollarAndNotEquals>;
};
export declare const GetV2WebhooksWebhookIdDollarOrOperatorNotEquals: {
readonly NotEquals: "not_equals";
};
export type GetV2WebhooksWebhookIdDollarOrOperatorNotEquals = ClosedEnum<typeof GetV2WebhooksWebhookIdDollarOrOperatorNotEquals>;
export type GetV2WebhooksWebhookIdDollarOrNotEquals = {
field: string;
operator: GetV2WebhooksWebhookIdDollarOrOperatorNotEquals;
value: string;
};
export declare const GetV2WebhooksWebhookIdDollarOrOperatorEquals: {
readonly Equals: "equals";
};
export type GetV2WebhooksWebhookIdDollarOrOperatorEquals = ClosedEnum<typeof GetV2WebhooksWebhookIdDollarOrOperatorEquals>;
export type GetV2WebhooksWebhookIdDollarOrEquals = {
field: string;
operator: GetV2WebhooksWebhookIdDollarOrOperatorEquals;
value: string;
};
export type GetV2WebhooksWebhookIdDollarOrUnion = GetV2WebhooksWebhookIdDollarOrEquals | GetV2WebhooksWebhookIdDollarOrNotEquals;
export type GetV2WebhooksWebhookIdFilter1 = {
dollarOr: Array<GetV2WebhooksWebhookIdDollarOrEquals | GetV2WebhooksWebhookIdDollarOrNotEquals>;
};
/**
* Filters to determine whether the webhook event should be sent. If null, the filter always passes.
*/
export type GetV2WebhooksWebhookIdFilterUnion = GetV2WebhooksWebhookIdFilter1 | GetV2WebhooksWebhookIdFilter2;
export type GetV2WebhooksWebhookIdSubscription = {
/**
* Type of event the webhook is subscribed to.
*/
eventType: GetV2WebhooksWebhookIdEventType;
/**
* Filters to determine whether the webhook event should be sent. If null, the filter always passes.
*/
filter: GetV2WebhooksWebhookIdFilter1 | GetV2WebhooksWebhookIdFilter2 | null;
};
export type GetV2WebhooksWebhookIdId = {
/**
* 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 GetV2WebhooksWebhookIdStatus: {
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 GetV2WebhooksWebhookIdStatus = ClosedEnum<typeof GetV2WebhooksWebhookIdStatus>;
export type GetV2WebhooksWebhookIdData = {
/**
* URL where the webhook events will be delivered to.
*/
targetUrl: string;
/**
* One or more events the webhook is subscribed to.
*/
subscriptions: Array<GetV2WebhooksWebhookIdSubscription>;
id: GetV2WebhooksWebhookIdId;
/**
* 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: GetV2WebhooksWebhookIdStatus;
/**
* When the webhook was created.
*/
createdAt: string;
};
/**
* Success
*/
export type GetV2WebhooksWebhookIdResponse = {
data: GetV2WebhooksWebhookIdData;
};
/** @internal */
export declare const GetV2WebhooksWebhookIdRequest$inboundSchema: z.ZodType<GetV2WebhooksWebhookIdRequest, z.ZodTypeDef, unknown>;
/** @internal */
export type GetV2WebhooksWebhookIdRequest$Outbound = {
webhook_id: string;
};
/** @internal */
export declare const GetV2WebhooksWebhookIdRequest$outboundSchema: z.ZodType<GetV2WebhooksWebhookIdRequest$Outbound, z.ZodTypeDef, GetV2WebhooksWebhookIdRequest>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace GetV2WebhooksWebhookIdRequest$ {
/** @deprecated use `GetV2WebhooksWebhookIdRequest$inboundSchema` instead. */
const inboundSchema: z.ZodType<GetV2WebhooksWebhookIdRequest, z.ZodTypeDef, unknown>;
/** @deprecated use `GetV2WebhooksWebhookIdRequest$outboundSchema` instead. */
const outboundSchema: z.ZodType<GetV2WebhooksWebhookIdRequest$Outbound, z.ZodTypeDef, GetV2WebhooksWebhookIdRequest>;
/** @deprecated use `GetV2WebhooksWebhookIdRequest$Outbound` instead. */
type Outbound = GetV2WebhooksWebhookIdRequest$Outbound;
}
export declare function getV2WebhooksWebhookIdRequestToJSON(getV2WebhooksWebhookIdRequest: GetV2WebhooksWebhookIdRequest): string;
export declare function getV2WebhooksWebhookIdRequestFromJSON(jsonString: string): SafeParseResult<GetV2WebhooksWebhookIdRequest, SDKValidationError>;
/** @internal */
export declare const GetV2WebhooksWebhookIdEventType$inboundSchema: z.ZodNativeEnum<typeof GetV2WebhooksWebhookIdEventType>;
/** @internal */
export declare const GetV2WebhooksWebhookIdEventType$outboundSchema: z.ZodNativeEnum<typeof GetV2WebhooksWebhookIdEventType>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace GetV2WebhooksWebhookIdEventType$ {
/** @deprecated use `GetV2WebhooksWebhookIdEventType$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 `GetV2WebhooksWebhookIdEventType$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 GetV2WebhooksWebhookIdDollarAndOperatorNotEquals$inboundSchema: z.ZodNativeEnum<typeof GetV2WebhooksWebhookIdDollarAndOperatorNotEquals>;
/** @internal */
export declare const GetV2WebhooksWebhookIdDollarAndOperatorNotEquals$outboundSchema: z.ZodNativeEnum<typeof GetV2WebhooksWebhookIdDollarAndOperatorNotEquals>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace GetV2WebhooksWebhookIdDollarAndOperatorNotEquals$ {
/** @deprecated use `GetV2WebhooksWebhookIdDollarAndOperatorNotEquals$inboundSchema` instead. */
const inboundSchema: z.ZodNativeEnum<{
readonly NotEquals: "not_equals";
}>;
/** @deprecated use `GetV2WebhooksWebhookIdDollarAndOperatorNotEquals$outboundSchema` instead. */
const outboundSchema: z.ZodNativeEnum<{
readonly NotEquals: "not_equals";
}>;
}
/** @internal */
export declare const GetV2WebhooksWebhookIdDollarAndNotEquals$inboundSchema: z.ZodType<GetV2WebhooksWebhookIdDollarAndNotEquals, z.ZodTypeDef, unknown>;
/** @internal */
export type GetV2WebhooksWebhookIdDollarAndNotEquals$Outbound = {
field: string;
operator: string;
value: string;
};
/** @internal */
export declare const GetV2WebhooksWebhookIdDollarAndNotEquals$outboundSchema: z.ZodType<GetV2WebhooksWebhookIdDollarAndNotEquals$Outbound, z.ZodTypeDef, GetV2WebhooksWebhookIdDollarAndNotEquals>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace GetV2WebhooksWebhookIdDollarAndNotEquals$ {
/** @deprecated use `GetV2WebhooksWebhookIdDollarAndNotEquals$inboundSchema` instead. */
const inboundSchema: z.ZodType<GetV2WebhooksWebhookIdDollarAndNotEquals, z.ZodTypeDef, unknown>;
/** @deprecated use `GetV2WebhooksWebhookIdDollarAndNotEquals$outboundSchema` instead. */
const outboundSchema: z.ZodType<GetV2WebhooksWebhookIdDollarAndNotEquals$Outbound, z.ZodTypeDef, GetV2WebhooksWebhookIdDollarAndNotEquals>;
/** @deprecated use `GetV2WebhooksWebhookIdDollarAndNotEquals$Outbound` instead. */
type Outbound = GetV2WebhooksWebhookIdDollarAndNotEquals$Outbound;
}
export declare function getV2WebhooksWebhookIdDollarAndNotEqualsToJSON(getV2WebhooksWebhookIdDollarAndNotEquals: GetV2WebhooksWebhookIdDollarAndNotEquals): string;
export declare function getV2WebhooksWebhookIdDollarAndNotEqualsFromJSON(jsonString: string): SafeParseResult<GetV2WebhooksWebhookIdDollarAndNotEquals, SDKValidationError>;
/** @internal */
export declare const GetV2WebhooksWebhookIdDollarAndOperatorEquals$inboundSchema: z.ZodNativeEnum<typeof GetV2WebhooksWebhookIdDollarAndOperatorEquals>;
/** @internal */
export declare const GetV2WebhooksWebhookIdDollarAndOperatorEquals$outboundSchema: z.ZodNativeEnum<typeof GetV2WebhooksWebhookIdDollarAndOperatorEquals>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace GetV2WebhooksWebhookIdDollarAndOperatorEquals$ {
/** @deprecated use `GetV2WebhooksWebhookIdDollarAndOperatorEquals$inboundSchema` instead. */
const inboundSchema: z.ZodNativeEnum<{
readonly Equals: "equals";
}>;
/** @deprecated use `GetV2WebhooksWebhookIdDollarAndOperatorEquals$outboundSchema` instead. */
const outboundSchema: z.ZodNativeEnum<{
readonly Equals: "equals";
}>;
}
/** @internal */
export declare const GetV2WebhooksWebhookIdDollarAndEquals$inboundSchema: z.ZodType<GetV2WebhooksWebhookIdDollarAndEquals, z.ZodTypeDef, unknown>;
/** @internal */
export type GetV2WebhooksWebhookIdDollarAndEquals$Outbound = {
field: string;
operator: string;
value: string;
};
/** @internal */
export declare const GetV2WebhooksWebhookIdDollarAndEquals$outboundSchema: z.ZodType<GetV2WebhooksWebhookIdDollarAndEquals$Outbound, z.ZodTypeDef, GetV2WebhooksWebhookIdDollarAndEquals>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace GetV2WebhooksWebhookIdDollarAndEquals$ {
/** @deprecated use `GetV2WebhooksWebhookIdDollarAndEquals$inboundSchema` instead. */
const inboundSchema: z.ZodType<GetV2WebhooksWebhookIdDollarAndEquals, z.ZodTypeDef, unknown>;
/** @deprecated use `GetV2WebhooksWebhookIdDollarAndEquals$outboundSchema` instead. */
const outboundSchema: z.ZodType<GetV2WebhooksWebhookIdDollarAndEquals$Outbound, z.ZodTypeDef, GetV2WebhooksWebhookIdDollarAndEquals>;
/** @deprecated use `GetV2WebhooksWebhookIdDollarAndEquals$Outbound` instead. */
type Outbound = GetV2WebhooksWebhookIdDollarAndEquals$Outbound;
}
export declare function getV2WebhooksWebhookIdDollarAndEqualsToJSON(getV2WebhooksWebhookIdDollarAndEquals: GetV2WebhooksWebhookIdDollarAndEquals): string;
export declare function getV2WebhooksWebhookIdDollarAndEqualsFromJSON(jsonString: string): SafeParseResult<GetV2WebhooksWebhookIdDollarAndEquals, SDKValidationError>;
/** @internal */
export declare const GetV2WebhooksWebhookIdDollarAndUnion$inboundSchema: z.ZodType<GetV2WebhooksWebhookIdDollarAndUnion, z.ZodTypeDef, unknown>;
/** @internal */
export type GetV2WebhooksWebhookIdDollarAndUnion$Outbound = GetV2WebhooksWebhookIdDollarAndEquals$Outbound | GetV2WebhooksWebhookIdDollarAndNotEquals$Outbound;
/** @internal */
export declare const GetV2WebhooksWebhookIdDollarAndUnion$outboundSchema: z.ZodType<GetV2WebhooksWebhookIdDollarAndUnion$Outbound, z.ZodTypeDef, GetV2WebhooksWebhookIdDollarAndUnion>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace GetV2WebhooksWebhookIdDollarAndUnion$ {
/** @deprecated use `GetV2WebhooksWebhookIdDollarAndUnion$inboundSchema` instead. */
const inboundSchema: z.ZodType<GetV2WebhooksWebhookIdDollarAndUnion, z.ZodTypeDef, unknown>;
/** @deprecated use `GetV2WebhooksWebhookIdDollarAndUnion$outboundSchema` instead. */
const outboundSchema: z.ZodType<GetV2WebhooksWebhookIdDollarAndUnion$Outbound, z.ZodTypeDef, GetV2WebhooksWebhookIdDollarAndUnion>;
/** @deprecated use `GetV2WebhooksWebhookIdDollarAndUnion$Outbound` instead. */
type Outbound = GetV2WebhooksWebhookIdDollarAndUnion$Outbound;
}
export declare function getV2WebhooksWebhookIdDollarAndUnionToJSON(getV2WebhooksWebhookIdDollarAndUnion: GetV2WebhooksWebhookIdDollarAndUnion): string;
export declare function getV2WebhooksWebhookIdDollarAndUnionFromJSON(jsonString: string): SafeParseResult<GetV2WebhooksWebhookIdDollarAndUnion, SDKValidationError>;
/** @internal */
export declare const GetV2WebhooksWebhookIdFilter2$inboundSchema: z.ZodType<GetV2WebhooksWebhookIdFilter2, z.ZodTypeDef, unknown>;
/** @internal */
export type GetV2WebhooksWebhookIdFilter2$Outbound = {
$and: Array<GetV2WebhooksWebhookIdDollarAndEquals$Outbound | GetV2WebhooksWebhookIdDollarAndNotEquals$Outbound>;
};
/** @internal */
export declare const GetV2WebhooksWebhookIdFilter2$outboundSchema: z.ZodType<GetV2WebhooksWebhookIdFilter2$Outbound, z.ZodTypeDef, GetV2WebhooksWebhookIdFilter2>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace GetV2WebhooksWebhookIdFilter2$ {
/** @deprecated use `GetV2WebhooksWebhookIdFilter2$inboundSchema` instead. */
const inboundSchema: z.ZodType<GetV2WebhooksWebhookIdFilter2, z.ZodTypeDef, unknown>;
/** @deprecated use `GetV2WebhooksWebhookIdFilter2$outboundSchema` instead. */
const outboundSchema: z.ZodType<GetV2WebhooksWebhookIdFilter2$Outbound, z.ZodTypeDef, GetV2WebhooksWebhookIdFilter2>;
/** @deprecated use `GetV2WebhooksWebhookIdFilter2$Outbound` instead. */
type Outbound = GetV2WebhooksWebhookIdFilter2$Outbound;
}
export declare function getV2WebhooksWebhookIdFilter2ToJSON(getV2WebhooksWebhookIdFilter2: GetV2WebhooksWebhookIdFilter2): string;
export declare function getV2WebhooksWebhookIdFilter2FromJSON(jsonString: string): SafeParseResult<GetV2WebhooksWebhookIdFilter2, SDKValidationError>;
/** @internal */
export declare const GetV2WebhooksWebhookIdDollarOrOperatorNotEquals$inboundSchema: z.ZodNativeEnum<typeof GetV2WebhooksWebhookIdDollarOrOperatorNotEquals>;
/** @internal */
export declare const GetV2WebhooksWebhookIdDollarOrOperatorNotEquals$outboundSchema: z.ZodNativeEnum<typeof GetV2WebhooksWebhookIdDollarOrOperatorNotEquals>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace GetV2WebhooksWebhookIdDollarOrOperatorNotEquals$ {
/** @deprecated use `GetV2WebhooksWebhookIdDollarOrOperatorNotEquals$inboundSchema` instead. */
const inboundSchema: z.ZodNativeEnum<{
readonly NotEquals: "not_equals";
}>;
/** @deprecated use `GetV2WebhooksWebhookIdDollarOrOperatorNotEquals$outboundSchema` instead. */
const outboundSchema: z.ZodNativeEnum<{
readonly NotEquals: "not_equals";
}>;
}
/** @internal */
export declare const GetV2WebhooksWebhookIdDollarOrNotEquals$inboundSchema: z.ZodType<GetV2WebhooksWebhookIdDollarOrNotEquals, z.ZodTypeDef, unknown>;
/** @internal */
export type GetV2WebhooksWebhookIdDollarOrNotEquals$Outbound = {
field: string;
operator: string;
value: string;
};
/** @internal */
export declare const GetV2WebhooksWebhookIdDollarOrNotEquals$outboundSchema: z.ZodType<GetV2WebhooksWebhookIdDollarOrNotEquals$Outbound, z.ZodTypeDef, GetV2WebhooksWebhookIdDollarOrNotEquals>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace GetV2WebhooksWebhookIdDollarOrNotEquals$ {
/** @deprecated use `GetV2WebhooksWebhookIdDollarOrNotEquals$inboundSchema` instead. */
const inboundSchema: z.ZodType<GetV2WebhooksWebhookIdDollarOrNotEquals, z.ZodTypeDef, unknown>;
/** @deprecated use `GetV2WebhooksWebhookIdDollarOrNotEquals$outboundSchema` instead. */
const outboundSchema: z.ZodType<GetV2WebhooksWebhookIdDollarOrNotEquals$Outbound, z.ZodTypeDef, GetV2WebhooksWebhookIdDollarOrNotEquals>;
/** @deprecated use `GetV2WebhooksWebhookIdDollarOrNotEquals$Outbound` instead. */
type Outbound = GetV2WebhooksWebhookIdDollarOrNotEquals$Outbound;
}
export declare function getV2WebhooksWebhookIdDollarOrNotEqualsToJSON(getV2WebhooksWebhookIdDollarOrNotEquals: GetV2WebhooksWebhookIdDollarOrNotEquals): string;
export declare function getV2WebhooksWebhookIdDollarOrNotEqualsFromJSON(jsonString: string): SafeParseResult<GetV2WebhooksWebhookIdDollarOrNotEquals, SDKValidationError>;
/** @internal */
export declare const GetV2WebhooksWebhookIdDollarOrOperatorEquals$inboundSchema: z.ZodNativeEnum<typeof GetV2WebhooksWebhookIdDollarOrOperatorEquals>;
/** @internal */
export declare const GetV2WebhooksWebhookIdDollarOrOperatorEquals$outboundSchema: z.ZodNativeEnum<typeof GetV2WebhooksWebhookIdDollarOrOperatorEquals>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace GetV2WebhooksWebhookIdDollarOrOperatorEquals$ {
/** @deprecated use `GetV2WebhooksWebhookIdDollarOrOperatorEquals$inboundSchema` instead. */
const inboundSchema: z.ZodNativeEnum<{
readonly Equals: "equals";
}>;
/** @deprecated use `GetV2WebhooksWebhookIdDollarOrOperatorEquals$outboundSchema` instead. */
const outboundSchema: z.ZodNativeEnum<{
readonly Equals: "equals";
}>;
}
/** @internal */
export declare const GetV2WebhooksWebhookIdDollarOrEquals$inboundSchema: z.ZodType<GetV2WebhooksWebhookIdDollarOrEquals, z.ZodTypeDef, unknown>;
/** @internal */
export type GetV2WebhooksWebhookIdDollarOrEquals$Outbound = {
field: string;
operator: string;
value: string;
};
/** @internal */
export declare const GetV2WebhooksWebhookIdDollarOrEquals$outboundSchema: z.ZodType<GetV2WebhooksWebhookIdDollarOrEquals$Outbound, z.ZodTypeDef, GetV2WebhooksWebhookIdDollarOrEquals>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace GetV2WebhooksWebhookIdDollarOrEquals$ {
/** @deprecated use `GetV2WebhooksWebhookIdDollarOrEquals$inboundSchema` instead. */
const inboundSchema: z.ZodType<GetV2WebhooksWebhookIdDollarOrEquals, z.ZodTypeDef, unknown>;
/** @deprecated use `GetV2WebhooksWebhookIdDollarOrEquals$outboundSchema` instead. */
const outboundSchema: z.ZodType<GetV2WebhooksWebhookIdDollarOrEquals$Outbound, z.ZodTypeDef, GetV2WebhooksWebhookIdDollarOrEquals>;
/** @deprecated use `GetV2WebhooksWebhookIdDollarOrEquals$Outbound` instead. */
type Outbound = GetV2WebhooksWebhookIdDollarOrEquals$Outbound;
}
export declare function getV2WebhooksWebhookIdDollarOrEqualsToJSON(getV2WebhooksWebhookIdDollarOrEquals: GetV2WebhooksWebhookIdDollarOrEquals): string;
export declare function getV2WebhooksWebhookIdDollarOrEqualsFromJSON(jsonString: string): SafeParseResult<GetV2WebhooksWebhookIdDollarOrEquals, SDKValidationError>;
/** @internal */
export declare const GetV2WebhooksWebhookIdDollarOrUnion$inboundSchema: z.ZodType<GetV2WebhooksWebhookIdDollarOrUnion, z.ZodTypeDef, unknown>;
/** @internal */
export type GetV2WebhooksWebhookIdDollarOrUnion$Outbound = GetV2WebhooksWebhookIdDollarOrEquals$Outbound | GetV2WebhooksWebhookIdDollarOrNotEquals$Outbound;
/** @internal */
export declare const GetV2WebhooksWebhookIdDollarOrUnion$outboundSchema: z.ZodType<GetV2WebhooksWebhookIdDollarOrUnion$Outbound, z.ZodTypeDef, GetV2WebhooksWebhookIdDollarOrUnion>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace GetV2WebhooksWebhookIdDollarOrUnion$ {
/** @deprecated use `GetV2WebhooksWebhookIdDollarOrUnion$inboundSchema` instead. */
const inboundSchema: z.ZodType<GetV2WebhooksWebhookIdDollarOrUnion, z.ZodTypeDef, unknown>;
/** @deprecated use `GetV2WebhooksWebhookIdDollarOrUnion$outboundSchema` instead. */
const outboundSchema: z.ZodType<GetV2WebhooksWebhookIdDollarOrUnion$Outbound, z.ZodTypeDef, GetV2WebhooksWebhookIdDollarOrUnion>;
/** @deprecated use `GetV2WebhooksWebhookIdDollarOrUnion$Outbound` instead. */
type Outbound = GetV2WebhooksWebhookIdDollarOrUnion$Outbound;
}
export declare function getV2WebhooksWebhookIdDollarOrUnionToJSON(getV2WebhooksWebhookIdDollarOrUnion: GetV2WebhooksWebhookIdDollarOrUnion): string;
export declare function getV2WebhooksWebhookIdDollarOrUnionFromJSON(jsonString: string): SafeParseResult<GetV2WebhooksWebhookIdDollarOrUnion, SDKValidationError>;
/** @internal */
export declare const GetV2WebhooksWebhookIdFilter1$inboundSchema: z.ZodType<GetV2WebhooksWebhookIdFilter1, z.ZodTypeDef, unknown>;
/** @internal */
export type GetV2WebhooksWebhookIdFilter1$Outbound = {
$or: Array<GetV2WebhooksWebhookIdDollarOrEquals$Outbound | GetV2WebhooksWebhookIdDollarOrNotEquals$Outbound>;
};
/** @internal */
export declare const GetV2WebhooksWebhookIdFilter1$outboundSchema: z.ZodType<GetV2WebhooksWebhookIdFilter1$Outbound, z.ZodTypeDef, GetV2WebhooksWebhookIdFilter1>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace GetV2WebhooksWebhookIdFilter1$ {
/** @deprecated use `GetV2WebhooksWebhookIdFilter1$inboundSchema` instead. */
const inboundSchema: z.ZodType<GetV2WebhooksWebhookIdFilter1, z.ZodTypeDef, unknown>;
/** @deprecated use `GetV2WebhooksWebhookIdFilter1$outboundSchema` instead. */
const outboundSchema: z.ZodType<GetV2WebhooksWebhookIdFilter1$Outbound, z.ZodTypeDef, GetV2WebhooksWebhookIdFilter1>;
/** @deprecated use `GetV2WebhooksWebhookIdFilter1$Outbound` instead. */
type Outbound = GetV2WebhooksWebhookIdFilter1$Outbound;
}
export declare function getV2WebhooksWebhookIdFilter1ToJSON(getV2WebhooksWebhookIdFilter1: GetV2WebhooksWebhookIdFilter1): string;
export declare function getV2WebhooksWebhookIdFilter1FromJSON(jsonString: string): SafeParseResult<GetV2WebhooksWebhookIdFilter1, SDKValidationError>;
/** @internal */
export declare const GetV2WebhooksWebhookIdFilterUnion$inboundSchema: z.ZodType<GetV2WebhooksWebhookIdFilterUnion, z.ZodTypeDef, unknown>;
/** @internal */
export type GetV2WebhooksWebhookIdFilterUnion$Outbound = GetV2WebhooksWebhookIdFilter1$Outbound | GetV2WebhooksWebhookIdFilter2$Outbound;
/** @internal */
export declare const GetV2WebhooksWebhookIdFilterUnion$outboundSchema: z.ZodType<GetV2WebhooksWebhookIdFilterUnion$Outbound, z.ZodTypeDef, GetV2WebhooksWebhookIdFilterUnion>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace GetV2WebhooksWebhookIdFilterUnion$ {
/** @deprecated use `GetV2WebhooksWebhookIdFilterUnion$inboundSchema` instead. */
const inboundSchema: z.ZodType<GetV2WebhooksWebhookIdFilterUnion, z.ZodTypeDef, unknown>;
/** @deprecated use `GetV2WebhooksWebhookIdFilterUnion$outboundSchema` instead. */
const outboundSchema: z.ZodType<GetV2WebhooksWebhookIdFilterUnion$Outbound, z.ZodTypeDef, GetV2WebhooksWebhookIdFilterUnion>;
/** @deprecated use `GetV2WebhooksWebhookIdFilterUnion$Outbound` instead. */
type Outbound = GetV2WebhooksWebhookIdFilterUnion$Outbound;
}
export declare function getV2WebhooksWebhookIdFilterUnionToJSON(getV2WebhooksWebhookIdFilterUnion: GetV2WebhooksWebhookIdFilterUnion): string;
export declare function getV2WebhooksWebhookIdFilterUnionFromJSON(jsonString: string): SafeParseResult<GetV2WebhooksWebhookIdFilterUnion, SDKValidationError>;
/** @internal */
export declare const GetV2WebhooksWebhookIdSubscription$inboundSchema: z.ZodType<GetV2WebhooksWebhookIdSubscription, z.ZodTypeDef, unknown>;
/** @internal */
export type GetV2WebhooksWebhookIdSubscription$Outbound = {
event_type: string;
filter: GetV2WebhooksWebhookIdFilter1$Outbound | GetV2WebhooksWebhookIdFilter2$Outbound | null;
};
/** @internal */
export declare const GetV2WebhooksWebhookIdSubscription$outboundSchema: z.ZodType<GetV2WebhooksWebhookIdSubscription$Outbound, z.ZodTypeDef, GetV2WebhooksWebhookIdSubscription>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace GetV2WebhooksWebhookIdSubscription$ {
/** @deprecated use `GetV2WebhooksWebhookIdSubscription$inboundSchema` instead. */
const inboundSchema: z.ZodType<GetV2WebhooksWebhookIdSubscription, z.ZodTypeDef, unknown>;
/** @deprecated use `GetV2WebhooksWebhookIdSubscription$outboundSchema` instead. */
const outboundSchema: z.ZodType<GetV2WebhooksWebhookIdSubscription$Outbound, z.ZodTypeDef, GetV2WebhooksWebhookIdSubscription>;
/** @deprecated use `GetV2WebhooksWebhookIdSubscription$Outbound` instead. */
type Outbound = GetV2WebhooksWebhookIdSubscription$Outbound;
}
export declare function getV2WebhooksWebhookIdSubscriptionToJSON(getV2WebhooksWebhookIdSubscription: GetV2WebhooksWebhookIdSubscription): string;
export declare function getV2WebhooksWebhookIdSubscriptionFromJSON(jsonString: string): SafeParseResult<GetV2WebhooksWebhookIdSubscription, SDKValidationError>;
/** @internal */
export declare const GetV2WebhooksWebhookIdId$inboundSchema: z.ZodType<GetV2WebhooksWebhookIdId, z.ZodTypeDef, unknown>;
/** @internal */
export type GetV2WebhooksWebhookIdId$Outbound = {
workspace_id: string;
webhook_id: string;
};
/** @internal */
export declare const GetV2WebhooksWebhookIdId$outboundSchema: z.ZodType<GetV2WebhooksWebhookIdId$Outbound, z.ZodTypeDef, GetV2WebhooksWebhookIdId>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace GetV2WebhooksWebhookIdId$ {
/** @deprecated use `GetV2WebhooksWebhookIdId$inboundSchema` instead. */
const inboundSchema: z.ZodType<GetV2WebhooksWebhookIdId, z.ZodTypeDef, unknown>;
/** @deprecated use `GetV2WebhooksWebhookIdId$outboundSchema` instead. */
const outboundSchema: z.ZodType<GetV2WebhooksWebhookIdId$Outbound, z.ZodTypeDef, GetV2WebhooksWebhookIdId>;
/** @deprecated use `GetV2WebhooksWebhookIdId$Outbound` instead. */
type Outbound = GetV2WebhooksWebhookIdId$Outbound;
}
export declare function getV2WebhooksWebhookIdIdToJSON(getV2WebhooksWebhookIdId: GetV2WebhooksWebhookIdId): string;
export declare function getV2WebhooksWebhookIdIdFromJSON(jsonString: string): SafeParseResult<GetV2WebhooksWebhookIdId, SDKValidationError>;
/** @internal */
export declare const GetV2WebhooksWebhookIdStatus$inboundSchema: z.ZodNativeEnum<typeof GetV2WebhooksWebhookIdStatus>;
/** @internal */
export declare const GetV2WebhooksWebhookIdStatus$outboundSchema: z.ZodNativeEnum<typeof GetV2WebhooksWebhookIdStatus>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace GetV2WebhooksWebhookIdStatus$ {
/** @deprecated use `GetV2WebhooksWebhookIdStatus$inboundSchema` instead. */
const inboundSchema: z.ZodNativeEnum<{
readonly Active: "active";
readonly Degraded: "degraded";
readonly Inactive: "inactive";
}>;
/** @deprecated use `GetV2WebhooksWebhookIdStatus$outboundSchema` instead. */
const outboundSchema: z.ZodNativeEnum<{
readonly Active: "active";
readonly Degraded: "degraded";
readonly Inactive: "inactive";
}>;
}
/** @internal */
export declare const GetV2WebhooksWebhookIdData$inboundSchema: z.ZodType<GetV2WebhooksWebhookIdData, z.ZodTypeDef, unknown>;
/** @internal */
export type GetV2WebhooksWebhookIdData$Outbound = {
target_url: string;
subscriptions: Array<GetV2WebhooksWebhookIdSubscription$Outbound>;
id: GetV2WebhooksWebhookIdId$Outbound;
status: string;
created_at: string;
};
/** @internal */
export declare const GetV2WebhooksWebhookIdData$outboundSchema: z.ZodType<GetV2WebhooksWebhookIdData$Outbound, z.ZodTypeDef, GetV2WebhooksWebhookIdData>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace GetV2WebhooksWebhookIdData$ {
/** @deprecated use `GetV2WebhooksWebhookIdData$inboundSchema` instead. */
const inboundSchema: z.ZodType<GetV2WebhooksWebhookIdData, z.ZodTypeDef, unknown>;
/** @deprecated use `GetV2WebhooksWebhookIdData$outboundSchema` instead. */
const outboundSchema: z.ZodType<GetV2WebhooksWebhookIdData$Outbound, z.ZodTypeDef, GetV2WebhooksWebhookIdData>;
/** @deprecated use `GetV2WebhooksWebhookIdData$Outbound` instead. */
type Outbound = GetV2WebhooksWebhookIdData$Outbound;
}
export declare function getV2WebhooksWebhookIdDataToJSON(getV2WebhooksWebhookIdData: GetV2WebhooksWebhookIdData): string;
export declare function getV2WebhooksWebhookIdDataFromJSON(jsonString: string): SafeParseResult<GetV2WebhooksWebhookIdData, SDKValidationError>;
/** @internal */
export declare const GetV2WebhooksWebhookIdResponse$inboundSchema: z.ZodType<GetV2WebhooksWebhookIdResponse, z.ZodTypeDef, unknown>;
/** @internal */
export type GetV2WebhooksWebhookIdResponse$Outbound = {
data: GetV2WebhooksWebhookIdData$Outbound;
};
/** @internal */
export declare const GetV2WebhooksWebhookIdResponse$outboundSchema: z.ZodType<GetV2WebhooksWebhookIdResponse$Outbound, z.ZodTypeDef, GetV2WebhooksWebhookIdResponse>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace GetV2WebhooksWebhookIdResponse$ {
/** @deprecated use `GetV2WebhooksWebhookIdResponse$inboundSchema` instead. */
const inboundSchema: z.ZodType<GetV2WebhooksWebhookIdResponse, z.ZodTypeDef, unknown>;
/** @deprecated use `GetV2WebhooksWebhookIdResponse$outboundSchema` instead. */
const outboundSchema: z.ZodType<GetV2WebhooksWebhookIdResponse$Outbound, z.ZodTypeDef, GetV2WebhooksWebhookIdResponse>;
/** @deprecated use `GetV2WebhooksWebhookIdResponse$Outbound` instead. */
type Outbound = GetV2WebhooksWebhookIdResponse$Outbound;
}
export declare function getV2WebhooksWebhookIdResponseToJSON(getV2WebhooksWebhookIdResponse: GetV2WebhooksWebhookIdResponse): string;
export declare function getV2WebhooksWebhookIdResponseFromJSON(jsonString: string): SafeParseResult<GetV2WebhooksWebhookIdResponse, SDKValidationError>;
//# sourceMappingURL=getv2webhookswebhookid.d.ts.map