attio-js
Version:
Developer-friendly & type-safe JS/TS SDK based on the official OpenAPI spec of Attio.
808 lines • 67.2 kB
JavaScript
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import * as z from "zod";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
/**
* Type of event the webhook is subscribed to.
*/
export const PatchV2WebhooksWebhookIdEventTypeRequest = {
CommentCreated: "comment.created",
CommentResolved: "comment.resolved",
CommentUnresolved: "comment.unresolved",
CommentDeleted: "comment.deleted",
ListCreated: "list.created",
ListUpdated: "list.updated",
ListDeleted: "list.deleted",
ListAttributeCreated: "list-attribute.created",
ListAttributeUpdated: "list-attribute.updated",
ListEntryCreated: "list-entry.created",
ListEntryUpdated: "list-entry.updated",
ListEntryDeleted: "list-entry.deleted",
ObjectAttributeCreated: "object-attribute.created",
ObjectAttributeUpdated: "object-attribute.updated",
NoteCreated: "note.created",
NoteUpdated: "note.updated",
NoteDeleted: "note.deleted",
RecordCreated: "record.created",
RecordMerged: "record.merged",
RecordUpdated: "record.updated",
RecordDeleted: "record.deleted",
TaskCreated: "task.created",
TaskUpdated: "task.updated",
TaskDeleted: "task.deleted",
WorkspaceMemberCreated: "workspace-member.created",
};
export const PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest = {
NotEquals: "not_equals",
};
export const PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest = {
Equals: "equals",
};
export const PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest = {
NotEquals: "not_equals",
};
export const PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest = {
Equals: "equals",
};
/**
* Type of event the webhook is subscribed to.
*/
export const PatchV2WebhooksWebhookIdEventTypeResponse = {
CommentCreated: "comment.created",
CommentResolved: "comment.resolved",
CommentUnresolved: "comment.unresolved",
CommentDeleted: "comment.deleted",
ListCreated: "list.created",
ListUpdated: "list.updated",
ListDeleted: "list.deleted",
ListAttributeCreated: "list-attribute.created",
ListAttributeUpdated: "list-attribute.updated",
ListEntryCreated: "list-entry.created",
ListEntryUpdated: "list-entry.updated",
ListEntryDeleted: "list-entry.deleted",
ObjectAttributeCreated: "object-attribute.created",
ObjectAttributeUpdated: "object-attribute.updated",
NoteCreated: "note.created",
NoteUpdated: "note.updated",
NoteDeleted: "note.deleted",
RecordCreated: "record.created",
RecordMerged: "record.merged",
RecordUpdated: "record.updated",
RecordDeleted: "record.deleted",
TaskCreated: "task.created",
TaskUpdated: "task.updated",
TaskDeleted: "task.deleted",
WorkspaceMemberCreated: "workspace-member.created",
};
export const PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsResponse = {
NotEquals: "not_equals",
};
export const PatchV2WebhooksWebhookIdDollarAndOperatorEqualsResponse = {
Equals: "equals",
};
export const PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsResponse = {
NotEquals: "not_equals",
};
export const PatchV2WebhooksWebhookIdDollarOrOperatorEqualsResponse = {
Equals: "equals",
};
/**
* 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 const PatchV2WebhooksWebhookIdStatus = {
Active: "active",
Degraded: "degraded",
Inactive: "inactive",
};
/** @internal */
export const PatchV2WebhooksWebhookIdEventTypeRequest$inboundSchema = z
.nativeEnum(PatchV2WebhooksWebhookIdEventTypeRequest);
/** @internal */
export const PatchV2WebhooksWebhookIdEventTypeRequest$outboundSchema = PatchV2WebhooksWebhookIdEventTypeRequest$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var PatchV2WebhooksWebhookIdEventTypeRequest$;
(function (PatchV2WebhooksWebhookIdEventTypeRequest$) {
/** @deprecated use `PatchV2WebhooksWebhookIdEventTypeRequest$inboundSchema` instead. */
PatchV2WebhooksWebhookIdEventTypeRequest$.inboundSchema = PatchV2WebhooksWebhookIdEventTypeRequest$inboundSchema;
/** @deprecated use `PatchV2WebhooksWebhookIdEventTypeRequest$outboundSchema` instead. */
PatchV2WebhooksWebhookIdEventTypeRequest$.outboundSchema = PatchV2WebhooksWebhookIdEventTypeRequest$outboundSchema;
})(PatchV2WebhooksWebhookIdEventTypeRequest$ || (PatchV2WebhooksWebhookIdEventTypeRequest$ = {}));
/** @internal */
export const PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$inboundSchema = z.nativeEnum(PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest);
/** @internal */
export const PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$outboundSchema = PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$;
(function (PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$) {
/** @deprecated use `PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$inboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$.inboundSchema = PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$inboundSchema;
/** @deprecated use `PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$outboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$.outboundSchema = PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$outboundSchema;
})(PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$ || (PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$ = {}));
/** @internal */
export const PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$inboundSchema = z.object({
field: z.string(),
operator: PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$inboundSchema,
value: z.string(),
});
/** @internal */
export const PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$outboundSchema = z.object({
field: z.string(),
operator: PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$outboundSchema,
value: z.string(),
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$;
(function (PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$) {
/** @deprecated use `PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$inboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$.inboundSchema = PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$inboundSchema;
/** @deprecated use `PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$outboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$.outboundSchema = PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$outboundSchema;
})(PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$ || (PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$ = {}));
export function patchV2WebhooksWebhookIdDollarAndNotEqualsRequestToJSON(patchV2WebhooksWebhookIdDollarAndNotEqualsRequest) {
return JSON.stringify(PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$outboundSchema.parse(patchV2WebhooksWebhookIdDollarAndNotEqualsRequest));
}
export function patchV2WebhooksWebhookIdDollarAndNotEqualsRequestFromJSON(jsonString) {
return safeParse(jsonString, (x) => PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest' from JSON`);
}
/** @internal */
export const PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$inboundSchema = z.nativeEnum(PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest);
/** @internal */
export const PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$outboundSchema = PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$;
(function (PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$) {
/** @deprecated use `PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$inboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$.inboundSchema = PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$inboundSchema;
/** @deprecated use `PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$outboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$.outboundSchema = PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$outboundSchema;
})(PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$ || (PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$ = {}));
/** @internal */
export const PatchV2WebhooksWebhookIdDollarAndEqualsRequest$inboundSchema = z.object({
field: z.string(),
operator: PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$inboundSchema,
value: z.string(),
});
/** @internal */
export const PatchV2WebhooksWebhookIdDollarAndEqualsRequest$outboundSchema = z.object({
field: z.string(),
operator: PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$outboundSchema,
value: z.string(),
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var PatchV2WebhooksWebhookIdDollarAndEqualsRequest$;
(function (PatchV2WebhooksWebhookIdDollarAndEqualsRequest$) {
/** @deprecated use `PatchV2WebhooksWebhookIdDollarAndEqualsRequest$inboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarAndEqualsRequest$.inboundSchema = PatchV2WebhooksWebhookIdDollarAndEqualsRequest$inboundSchema;
/** @deprecated use `PatchV2WebhooksWebhookIdDollarAndEqualsRequest$outboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarAndEqualsRequest$.outboundSchema = PatchV2WebhooksWebhookIdDollarAndEqualsRequest$outboundSchema;
})(PatchV2WebhooksWebhookIdDollarAndEqualsRequest$ || (PatchV2WebhooksWebhookIdDollarAndEqualsRequest$ = {}));
export function patchV2WebhooksWebhookIdDollarAndEqualsRequestToJSON(patchV2WebhooksWebhookIdDollarAndEqualsRequest) {
return JSON.stringify(PatchV2WebhooksWebhookIdDollarAndEqualsRequest$outboundSchema.parse(patchV2WebhooksWebhookIdDollarAndEqualsRequest));
}
export function patchV2WebhooksWebhookIdDollarAndEqualsRequestFromJSON(jsonString) {
return safeParse(jsonString, (x) => PatchV2WebhooksWebhookIdDollarAndEqualsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2WebhooksWebhookIdDollarAndEqualsRequest' from JSON`);
}
/** @internal */
export const PatchV2WebhooksWebhookIdDollarAndRequestUnion$inboundSchema = z.union([
z.lazy(() => PatchV2WebhooksWebhookIdDollarAndEqualsRequest$inboundSchema),
z.lazy(() => PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$inboundSchema),
]);
/** @internal */
export const PatchV2WebhooksWebhookIdDollarAndRequestUnion$outboundSchema = z.union([
z.lazy(() => PatchV2WebhooksWebhookIdDollarAndEqualsRequest$outboundSchema),
z.lazy(() => PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$outboundSchema),
]);
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var PatchV2WebhooksWebhookIdDollarAndRequestUnion$;
(function (PatchV2WebhooksWebhookIdDollarAndRequestUnion$) {
/** @deprecated use `PatchV2WebhooksWebhookIdDollarAndRequestUnion$inboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarAndRequestUnion$.inboundSchema = PatchV2WebhooksWebhookIdDollarAndRequestUnion$inboundSchema;
/** @deprecated use `PatchV2WebhooksWebhookIdDollarAndRequestUnion$outboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarAndRequestUnion$.outboundSchema = PatchV2WebhooksWebhookIdDollarAndRequestUnion$outboundSchema;
})(PatchV2WebhooksWebhookIdDollarAndRequestUnion$ || (PatchV2WebhooksWebhookIdDollarAndRequestUnion$ = {}));
export function patchV2WebhooksWebhookIdDollarAndRequestUnionToJSON(patchV2WebhooksWebhookIdDollarAndRequestUnion) {
return JSON.stringify(PatchV2WebhooksWebhookIdDollarAndRequestUnion$outboundSchema.parse(patchV2WebhooksWebhookIdDollarAndRequestUnion));
}
export function patchV2WebhooksWebhookIdDollarAndRequestUnionFromJSON(jsonString) {
return safeParse(jsonString, (x) => PatchV2WebhooksWebhookIdDollarAndRequestUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2WebhooksWebhookIdDollarAndRequestUnion' from JSON`);
}
/** @internal */
export const PatchV2WebhooksWebhookIdFilterRequest2$inboundSchema = z.object({
$and: z.array(z.union([
z.lazy(() => PatchV2WebhooksWebhookIdDollarAndEqualsRequest$inboundSchema),
z.lazy(() => PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$inboundSchema),
])),
}).transform((v) => {
return remap$(v, {
"$and": "dollarAnd",
});
});
/** @internal */
export const PatchV2WebhooksWebhookIdFilterRequest2$outboundSchema = z.object({
dollarAnd: z.array(z.union([
z.lazy(() => PatchV2WebhooksWebhookIdDollarAndEqualsRequest$outboundSchema),
z.lazy(() => PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$outboundSchema),
])),
}).transform((v) => {
return remap$(v, {
dollarAnd: "$and",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var PatchV2WebhooksWebhookIdFilterRequest2$;
(function (PatchV2WebhooksWebhookIdFilterRequest2$) {
/** @deprecated use `PatchV2WebhooksWebhookIdFilterRequest2$inboundSchema` instead. */
PatchV2WebhooksWebhookIdFilterRequest2$.inboundSchema = PatchV2WebhooksWebhookIdFilterRequest2$inboundSchema;
/** @deprecated use `PatchV2WebhooksWebhookIdFilterRequest2$outboundSchema` instead. */
PatchV2WebhooksWebhookIdFilterRequest2$.outboundSchema = PatchV2WebhooksWebhookIdFilterRequest2$outboundSchema;
})(PatchV2WebhooksWebhookIdFilterRequest2$ || (PatchV2WebhooksWebhookIdFilterRequest2$ = {}));
export function patchV2WebhooksWebhookIdFilterRequest2ToJSON(patchV2WebhooksWebhookIdFilterRequest2) {
return JSON.stringify(PatchV2WebhooksWebhookIdFilterRequest2$outboundSchema.parse(patchV2WebhooksWebhookIdFilterRequest2));
}
export function patchV2WebhooksWebhookIdFilterRequest2FromJSON(jsonString) {
return safeParse(jsonString, (x) => PatchV2WebhooksWebhookIdFilterRequest2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2WebhooksWebhookIdFilterRequest2' from JSON`);
}
/** @internal */
export const PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$inboundSchema = z.nativeEnum(PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest);
/** @internal */
export const PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$outboundSchema = PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$;
(function (PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$) {
/** @deprecated use `PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$inboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$.inboundSchema = PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$inboundSchema;
/** @deprecated use `PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$outboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$.outboundSchema = PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$outboundSchema;
})(PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$ || (PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$ = {}));
/** @internal */
export const PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$inboundSchema = z.object({
field: z.string(),
operator: PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$inboundSchema,
value: z.string(),
});
/** @internal */
export const PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$outboundSchema = z.object({
field: z.string(),
operator: PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$outboundSchema,
value: z.string(),
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$;
(function (PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$) {
/** @deprecated use `PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$inboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$.inboundSchema = PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$inboundSchema;
/** @deprecated use `PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$outboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$.outboundSchema = PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$outboundSchema;
})(PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$ || (PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$ = {}));
export function patchV2WebhooksWebhookIdDollarOrNotEqualsRequestToJSON(patchV2WebhooksWebhookIdDollarOrNotEqualsRequest) {
return JSON.stringify(PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$outboundSchema.parse(patchV2WebhooksWebhookIdDollarOrNotEqualsRequest));
}
export function patchV2WebhooksWebhookIdDollarOrNotEqualsRequestFromJSON(jsonString) {
return safeParse(jsonString, (x) => PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest' from JSON`);
}
/** @internal */
export const PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$inboundSchema = z.nativeEnum(PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest);
/** @internal */
export const PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$outboundSchema = PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$;
(function (PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$) {
/** @deprecated use `PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$inboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$.inboundSchema = PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$inboundSchema;
/** @deprecated use `PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$outboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$.outboundSchema = PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$outboundSchema;
})(PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$ || (PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$ = {}));
/** @internal */
export const PatchV2WebhooksWebhookIdDollarOrEqualsRequest$inboundSchema = z.object({
field: z.string(),
operator: PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$inboundSchema,
value: z.string(),
});
/** @internal */
export const PatchV2WebhooksWebhookIdDollarOrEqualsRequest$outboundSchema = z.object({
field: z.string(),
operator: PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$outboundSchema,
value: z.string(),
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var PatchV2WebhooksWebhookIdDollarOrEqualsRequest$;
(function (PatchV2WebhooksWebhookIdDollarOrEqualsRequest$) {
/** @deprecated use `PatchV2WebhooksWebhookIdDollarOrEqualsRequest$inboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarOrEqualsRequest$.inboundSchema = PatchV2WebhooksWebhookIdDollarOrEqualsRequest$inboundSchema;
/** @deprecated use `PatchV2WebhooksWebhookIdDollarOrEqualsRequest$outboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarOrEqualsRequest$.outboundSchema = PatchV2WebhooksWebhookIdDollarOrEqualsRequest$outboundSchema;
})(PatchV2WebhooksWebhookIdDollarOrEqualsRequest$ || (PatchV2WebhooksWebhookIdDollarOrEqualsRequest$ = {}));
export function patchV2WebhooksWebhookIdDollarOrEqualsRequestToJSON(patchV2WebhooksWebhookIdDollarOrEqualsRequest) {
return JSON.stringify(PatchV2WebhooksWebhookIdDollarOrEqualsRequest$outboundSchema.parse(patchV2WebhooksWebhookIdDollarOrEqualsRequest));
}
export function patchV2WebhooksWebhookIdDollarOrEqualsRequestFromJSON(jsonString) {
return safeParse(jsonString, (x) => PatchV2WebhooksWebhookIdDollarOrEqualsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2WebhooksWebhookIdDollarOrEqualsRequest' from JSON`);
}
/** @internal */
export const PatchV2WebhooksWebhookIdDollarOrRequestUnion$inboundSchema = z.union([
z.lazy(() => PatchV2WebhooksWebhookIdDollarOrEqualsRequest$inboundSchema),
z.lazy(() => PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$inboundSchema),
]);
/** @internal */
export const PatchV2WebhooksWebhookIdDollarOrRequestUnion$outboundSchema = z.union([
z.lazy(() => PatchV2WebhooksWebhookIdDollarOrEqualsRequest$outboundSchema),
z.lazy(() => PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$outboundSchema),
]);
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var PatchV2WebhooksWebhookIdDollarOrRequestUnion$;
(function (PatchV2WebhooksWebhookIdDollarOrRequestUnion$) {
/** @deprecated use `PatchV2WebhooksWebhookIdDollarOrRequestUnion$inboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarOrRequestUnion$.inboundSchema = PatchV2WebhooksWebhookIdDollarOrRequestUnion$inboundSchema;
/** @deprecated use `PatchV2WebhooksWebhookIdDollarOrRequestUnion$outboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarOrRequestUnion$.outboundSchema = PatchV2WebhooksWebhookIdDollarOrRequestUnion$outboundSchema;
})(PatchV2WebhooksWebhookIdDollarOrRequestUnion$ || (PatchV2WebhooksWebhookIdDollarOrRequestUnion$ = {}));
export function patchV2WebhooksWebhookIdDollarOrRequestUnionToJSON(patchV2WebhooksWebhookIdDollarOrRequestUnion) {
return JSON.stringify(PatchV2WebhooksWebhookIdDollarOrRequestUnion$outboundSchema.parse(patchV2WebhooksWebhookIdDollarOrRequestUnion));
}
export function patchV2WebhooksWebhookIdDollarOrRequestUnionFromJSON(jsonString) {
return safeParse(jsonString, (x) => PatchV2WebhooksWebhookIdDollarOrRequestUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2WebhooksWebhookIdDollarOrRequestUnion' from JSON`);
}
/** @internal */
export const PatchV2WebhooksWebhookIdFilterRequest1$inboundSchema = z.object({
$or: z.array(z.union([
z.lazy(() => PatchV2WebhooksWebhookIdDollarOrEqualsRequest$inboundSchema),
z.lazy(() => PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$inboundSchema),
])),
}).transform((v) => {
return remap$(v, {
"$or": "dollarOr",
});
});
/** @internal */
export const PatchV2WebhooksWebhookIdFilterRequest1$outboundSchema = z.object({
dollarOr: z.array(z.union([
z.lazy(() => PatchV2WebhooksWebhookIdDollarOrEqualsRequest$outboundSchema),
z.lazy(() => PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$outboundSchema),
])),
}).transform((v) => {
return remap$(v, {
dollarOr: "$or",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var PatchV2WebhooksWebhookIdFilterRequest1$;
(function (PatchV2WebhooksWebhookIdFilterRequest1$) {
/** @deprecated use `PatchV2WebhooksWebhookIdFilterRequest1$inboundSchema` instead. */
PatchV2WebhooksWebhookIdFilterRequest1$.inboundSchema = PatchV2WebhooksWebhookIdFilterRequest1$inboundSchema;
/** @deprecated use `PatchV2WebhooksWebhookIdFilterRequest1$outboundSchema` instead. */
PatchV2WebhooksWebhookIdFilterRequest1$.outboundSchema = PatchV2WebhooksWebhookIdFilterRequest1$outboundSchema;
})(PatchV2WebhooksWebhookIdFilterRequest1$ || (PatchV2WebhooksWebhookIdFilterRequest1$ = {}));
export function patchV2WebhooksWebhookIdFilterRequest1ToJSON(patchV2WebhooksWebhookIdFilterRequest1) {
return JSON.stringify(PatchV2WebhooksWebhookIdFilterRequest1$outboundSchema.parse(patchV2WebhooksWebhookIdFilterRequest1));
}
export function patchV2WebhooksWebhookIdFilterRequest1FromJSON(jsonString) {
return safeParse(jsonString, (x) => PatchV2WebhooksWebhookIdFilterRequest1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2WebhooksWebhookIdFilterRequest1' from JSON`);
}
/** @internal */
export const PatchV2WebhooksWebhookIdFilterRequestUnion$inboundSchema = z.union([
z.lazy(() => PatchV2WebhooksWebhookIdFilterRequest1$inboundSchema),
z.lazy(() => PatchV2WebhooksWebhookIdFilterRequest2$inboundSchema),
]);
/** @internal */
export const PatchV2WebhooksWebhookIdFilterRequestUnion$outboundSchema = z.union([
z.lazy(() => PatchV2WebhooksWebhookIdFilterRequest1$outboundSchema),
z.lazy(() => PatchV2WebhooksWebhookIdFilterRequest2$outboundSchema),
]);
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var PatchV2WebhooksWebhookIdFilterRequestUnion$;
(function (PatchV2WebhooksWebhookIdFilterRequestUnion$) {
/** @deprecated use `PatchV2WebhooksWebhookIdFilterRequestUnion$inboundSchema` instead. */
PatchV2WebhooksWebhookIdFilterRequestUnion$.inboundSchema = PatchV2WebhooksWebhookIdFilterRequestUnion$inboundSchema;
/** @deprecated use `PatchV2WebhooksWebhookIdFilterRequestUnion$outboundSchema` instead. */
PatchV2WebhooksWebhookIdFilterRequestUnion$.outboundSchema = PatchV2WebhooksWebhookIdFilterRequestUnion$outboundSchema;
})(PatchV2WebhooksWebhookIdFilterRequestUnion$ || (PatchV2WebhooksWebhookIdFilterRequestUnion$ = {}));
export function patchV2WebhooksWebhookIdFilterRequestUnionToJSON(patchV2WebhooksWebhookIdFilterRequestUnion) {
return JSON.stringify(PatchV2WebhooksWebhookIdFilterRequestUnion$outboundSchema.parse(patchV2WebhooksWebhookIdFilterRequestUnion));
}
export function patchV2WebhooksWebhookIdFilterRequestUnionFromJSON(jsonString) {
return safeParse(jsonString, (x) => PatchV2WebhooksWebhookIdFilterRequestUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2WebhooksWebhookIdFilterRequestUnion' from JSON`);
}
/** @internal */
export const PatchV2WebhooksWebhookIdSubscriptionRequest$inboundSchema = z.object({
event_type: PatchV2WebhooksWebhookIdEventTypeRequest$inboundSchema,
filter: z.nullable(z.union([
z.lazy(() => PatchV2WebhooksWebhookIdFilterRequest1$inboundSchema),
z.lazy(() => PatchV2WebhooksWebhookIdFilterRequest2$inboundSchema),
])),
}).transform((v) => {
return remap$(v, {
"event_type": "eventType",
});
});
/** @internal */
export const PatchV2WebhooksWebhookIdSubscriptionRequest$outboundSchema = z.object({
eventType: PatchV2WebhooksWebhookIdEventTypeRequest$outboundSchema,
filter: z.nullable(z.union([
z.lazy(() => PatchV2WebhooksWebhookIdFilterRequest1$outboundSchema),
z.lazy(() => PatchV2WebhooksWebhookIdFilterRequest2$outboundSchema),
])),
}).transform((v) => {
return remap$(v, {
eventType: "event_type",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var PatchV2WebhooksWebhookIdSubscriptionRequest$;
(function (PatchV2WebhooksWebhookIdSubscriptionRequest$) {
/** @deprecated use `PatchV2WebhooksWebhookIdSubscriptionRequest$inboundSchema` instead. */
PatchV2WebhooksWebhookIdSubscriptionRequest$.inboundSchema = PatchV2WebhooksWebhookIdSubscriptionRequest$inboundSchema;
/** @deprecated use `PatchV2WebhooksWebhookIdSubscriptionRequest$outboundSchema` instead. */
PatchV2WebhooksWebhookIdSubscriptionRequest$.outboundSchema = PatchV2WebhooksWebhookIdSubscriptionRequest$outboundSchema;
})(PatchV2WebhooksWebhookIdSubscriptionRequest$ || (PatchV2WebhooksWebhookIdSubscriptionRequest$ = {}));
export function patchV2WebhooksWebhookIdSubscriptionRequestToJSON(patchV2WebhooksWebhookIdSubscriptionRequest) {
return JSON.stringify(PatchV2WebhooksWebhookIdSubscriptionRequest$outboundSchema.parse(patchV2WebhooksWebhookIdSubscriptionRequest));
}
export function patchV2WebhooksWebhookIdSubscriptionRequestFromJSON(jsonString) {
return safeParse(jsonString, (x) => PatchV2WebhooksWebhookIdSubscriptionRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2WebhooksWebhookIdSubscriptionRequest' from JSON`);
}
/** @internal */
export const PatchV2WebhooksWebhookIdDataRequest$inboundSchema = z.object({
target_url: z.string().optional(),
subscriptions: z.array(z.lazy(() => PatchV2WebhooksWebhookIdSubscriptionRequest$inboundSchema)).optional(),
}).transform((v) => {
return remap$(v, {
"target_url": "targetUrl",
});
});
/** @internal */
export const PatchV2WebhooksWebhookIdDataRequest$outboundSchema = z.object({
targetUrl: z.string().optional(),
subscriptions: z.array(z.lazy(() => PatchV2WebhooksWebhookIdSubscriptionRequest$outboundSchema)).optional(),
}).transform((v) => {
return remap$(v, {
targetUrl: "target_url",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var PatchV2WebhooksWebhookIdDataRequest$;
(function (PatchV2WebhooksWebhookIdDataRequest$) {
/** @deprecated use `PatchV2WebhooksWebhookIdDataRequest$inboundSchema` instead. */
PatchV2WebhooksWebhookIdDataRequest$.inboundSchema = PatchV2WebhooksWebhookIdDataRequest$inboundSchema;
/** @deprecated use `PatchV2WebhooksWebhookIdDataRequest$outboundSchema` instead. */
PatchV2WebhooksWebhookIdDataRequest$.outboundSchema = PatchV2WebhooksWebhookIdDataRequest$outboundSchema;
})(PatchV2WebhooksWebhookIdDataRequest$ || (PatchV2WebhooksWebhookIdDataRequest$ = {}));
export function patchV2WebhooksWebhookIdDataRequestToJSON(patchV2WebhooksWebhookIdDataRequest) {
return JSON.stringify(PatchV2WebhooksWebhookIdDataRequest$outboundSchema.parse(patchV2WebhooksWebhookIdDataRequest));
}
export function patchV2WebhooksWebhookIdDataRequestFromJSON(jsonString) {
return safeParse(jsonString, (x) => PatchV2WebhooksWebhookIdDataRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2WebhooksWebhookIdDataRequest' from JSON`);
}
/** @internal */
export const PatchV2WebhooksWebhookIdRequestBody$inboundSchema = z.object({
data: z.lazy(() => PatchV2WebhooksWebhookIdDataRequest$inboundSchema),
});
/** @internal */
export const PatchV2WebhooksWebhookIdRequestBody$outboundSchema = z.object({
data: z.lazy(() => PatchV2WebhooksWebhookIdDataRequest$outboundSchema),
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var PatchV2WebhooksWebhookIdRequestBody$;
(function (PatchV2WebhooksWebhookIdRequestBody$) {
/** @deprecated use `PatchV2WebhooksWebhookIdRequestBody$inboundSchema` instead. */
PatchV2WebhooksWebhookIdRequestBody$.inboundSchema = PatchV2WebhooksWebhookIdRequestBody$inboundSchema;
/** @deprecated use `PatchV2WebhooksWebhookIdRequestBody$outboundSchema` instead. */
PatchV2WebhooksWebhookIdRequestBody$.outboundSchema = PatchV2WebhooksWebhookIdRequestBody$outboundSchema;
})(PatchV2WebhooksWebhookIdRequestBody$ || (PatchV2WebhooksWebhookIdRequestBody$ = {}));
export function patchV2WebhooksWebhookIdRequestBodyToJSON(patchV2WebhooksWebhookIdRequestBody) {
return JSON.stringify(PatchV2WebhooksWebhookIdRequestBody$outboundSchema.parse(patchV2WebhooksWebhookIdRequestBody));
}
export function patchV2WebhooksWebhookIdRequestBodyFromJSON(jsonString) {
return safeParse(jsonString, (x) => PatchV2WebhooksWebhookIdRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2WebhooksWebhookIdRequestBody' from JSON`);
}
/** @internal */
export const PatchV2WebhooksWebhookIdRequest$inboundSchema = z.object({
webhook_id: z.string(),
RequestBody: z.lazy(() => PatchV2WebhooksWebhookIdRequestBody$inboundSchema),
}).transform((v) => {
return remap$(v, {
"webhook_id": "webhookId",
"RequestBody": "requestBody",
});
});
/** @internal */
export const PatchV2WebhooksWebhookIdRequest$outboundSchema = z.object({
webhookId: z.string(),
requestBody: z.lazy(() => PatchV2WebhooksWebhookIdRequestBody$outboundSchema),
}).transform((v) => {
return remap$(v, {
webhookId: "webhook_id",
requestBody: "RequestBody",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var PatchV2WebhooksWebhookIdRequest$;
(function (PatchV2WebhooksWebhookIdRequest$) {
/** @deprecated use `PatchV2WebhooksWebhookIdRequest$inboundSchema` instead. */
PatchV2WebhooksWebhookIdRequest$.inboundSchema = PatchV2WebhooksWebhookIdRequest$inboundSchema;
/** @deprecated use `PatchV2WebhooksWebhookIdRequest$outboundSchema` instead. */
PatchV2WebhooksWebhookIdRequest$.outboundSchema = PatchV2WebhooksWebhookIdRequest$outboundSchema;
})(PatchV2WebhooksWebhookIdRequest$ || (PatchV2WebhooksWebhookIdRequest$ = {}));
export function patchV2WebhooksWebhookIdRequestToJSON(patchV2WebhooksWebhookIdRequest) {
return JSON.stringify(PatchV2WebhooksWebhookIdRequest$outboundSchema.parse(patchV2WebhooksWebhookIdRequest));
}
export function patchV2WebhooksWebhookIdRequestFromJSON(jsonString) {
return safeParse(jsonString, (x) => PatchV2WebhooksWebhookIdRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2WebhooksWebhookIdRequest' from JSON`);
}
/** @internal */
export const PatchV2WebhooksWebhookIdEventTypeResponse$inboundSchema = z
.nativeEnum(PatchV2WebhooksWebhookIdEventTypeResponse);
/** @internal */
export const PatchV2WebhooksWebhookIdEventTypeResponse$outboundSchema = PatchV2WebhooksWebhookIdEventTypeResponse$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var PatchV2WebhooksWebhookIdEventTypeResponse$;
(function (PatchV2WebhooksWebhookIdEventTypeResponse$) {
/** @deprecated use `PatchV2WebhooksWebhookIdEventTypeResponse$inboundSchema` instead. */
PatchV2WebhooksWebhookIdEventTypeResponse$.inboundSchema = PatchV2WebhooksWebhookIdEventTypeResponse$inboundSchema;
/** @deprecated use `PatchV2WebhooksWebhookIdEventTypeResponse$outboundSchema` instead. */
PatchV2WebhooksWebhookIdEventTypeResponse$.outboundSchema = PatchV2WebhooksWebhookIdEventTypeResponse$outboundSchema;
})(PatchV2WebhooksWebhookIdEventTypeResponse$ || (PatchV2WebhooksWebhookIdEventTypeResponse$ = {}));
/** @internal */
export const PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsResponse$inboundSchema = z.nativeEnum(PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsResponse);
/** @internal */
export const PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsResponse$outboundSchema = PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsResponse$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsResponse$;
(function (PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsResponse$) {
/** @deprecated use `PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsResponse$inboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsResponse$.inboundSchema = PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsResponse$inboundSchema;
/** @deprecated use `PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsResponse$outboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsResponse$.outboundSchema = PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsResponse$outboundSchema;
})(PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsResponse$ || (PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsResponse$ = {}));
/** @internal */
export const PatchV2WebhooksWebhookIdDollarAndNotEqualsResponse$inboundSchema = z.object({
field: z.string(),
operator: PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsResponse$inboundSchema,
value: z.string(),
});
/** @internal */
export const PatchV2WebhooksWebhookIdDollarAndNotEqualsResponse$outboundSchema = z.object({
field: z.string(),
operator: PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsResponse$outboundSchema,
value: z.string(),
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var PatchV2WebhooksWebhookIdDollarAndNotEqualsResponse$;
(function (PatchV2WebhooksWebhookIdDollarAndNotEqualsResponse$) {
/** @deprecated use `PatchV2WebhooksWebhookIdDollarAndNotEqualsResponse$inboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarAndNotEqualsResponse$.inboundSchema = PatchV2WebhooksWebhookIdDollarAndNotEqualsResponse$inboundSchema;
/** @deprecated use `PatchV2WebhooksWebhookIdDollarAndNotEqualsResponse$outboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarAndNotEqualsResponse$.outboundSchema = PatchV2WebhooksWebhookIdDollarAndNotEqualsResponse$outboundSchema;
})(PatchV2WebhooksWebhookIdDollarAndNotEqualsResponse$ || (PatchV2WebhooksWebhookIdDollarAndNotEqualsResponse$ = {}));
export function patchV2WebhooksWebhookIdDollarAndNotEqualsResponseToJSON(patchV2WebhooksWebhookIdDollarAndNotEqualsResponse) {
return JSON.stringify(PatchV2WebhooksWebhookIdDollarAndNotEqualsResponse$outboundSchema.parse(patchV2WebhooksWebhookIdDollarAndNotEqualsResponse));
}
export function patchV2WebhooksWebhookIdDollarAndNotEqualsResponseFromJSON(jsonString) {
return safeParse(jsonString, (x) => PatchV2WebhooksWebhookIdDollarAndNotEqualsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2WebhooksWebhookIdDollarAndNotEqualsResponse' from JSON`);
}
/** @internal */
export const PatchV2WebhooksWebhookIdDollarAndOperatorEqualsResponse$inboundSchema = z.nativeEnum(PatchV2WebhooksWebhookIdDollarAndOperatorEqualsResponse);
/** @internal */
export const PatchV2WebhooksWebhookIdDollarAndOperatorEqualsResponse$outboundSchema = PatchV2WebhooksWebhookIdDollarAndOperatorEqualsResponse$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var PatchV2WebhooksWebhookIdDollarAndOperatorEqualsResponse$;
(function (PatchV2WebhooksWebhookIdDollarAndOperatorEqualsResponse$) {
/** @deprecated use `PatchV2WebhooksWebhookIdDollarAndOperatorEqualsResponse$inboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarAndOperatorEqualsResponse$.inboundSchema = PatchV2WebhooksWebhookIdDollarAndOperatorEqualsResponse$inboundSchema;
/** @deprecated use `PatchV2WebhooksWebhookIdDollarAndOperatorEqualsResponse$outboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarAndOperatorEqualsResponse$.outboundSchema = PatchV2WebhooksWebhookIdDollarAndOperatorEqualsResponse$outboundSchema;
})(PatchV2WebhooksWebhookIdDollarAndOperatorEqualsResponse$ || (PatchV2WebhooksWebhookIdDollarAndOperatorEqualsResponse$ = {}));
/** @internal */
export const PatchV2WebhooksWebhookIdDollarAndEqualsResponse$inboundSchema = z.object({
field: z.string(),
operator: PatchV2WebhooksWebhookIdDollarAndOperatorEqualsResponse$inboundSchema,
value: z.string(),
});
/** @internal */
export const PatchV2WebhooksWebhookIdDollarAndEqualsResponse$outboundSchema = z.object({
field: z.string(),
operator: PatchV2WebhooksWebhookIdDollarAndOperatorEqualsResponse$outboundSchema,
value: z.string(),
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var PatchV2WebhooksWebhookIdDollarAndEqualsResponse$;
(function (PatchV2WebhooksWebhookIdDollarAndEqualsResponse$) {
/** @deprecated use `PatchV2WebhooksWebhookIdDollarAndEqualsResponse$inboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarAndEqualsResponse$.inboundSchema = PatchV2WebhooksWebhookIdDollarAndEqualsResponse$inboundSchema;
/** @deprecated use `PatchV2WebhooksWebhookIdDollarAndEqualsResponse$outboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarAndEqualsResponse$.outboundSchema = PatchV2WebhooksWebhookIdDollarAndEqualsResponse$outboundSchema;
})(PatchV2WebhooksWebhookIdDollarAndEqualsResponse$ || (PatchV2WebhooksWebhookIdDollarAndEqualsResponse$ = {}));
export function patchV2WebhooksWebhookIdDollarAndEqualsResponseToJSON(patchV2WebhooksWebhookIdDollarAndEqualsResponse) {
return JSON.stringify(PatchV2WebhooksWebhookIdDollarAndEqualsResponse$outboundSchema.parse(patchV2WebhooksWebhookIdDollarAndEqualsResponse));
}
export function patchV2WebhooksWebhookIdDollarAndEqualsResponseFromJSON(jsonString) {
return safeParse(jsonString, (x) => PatchV2WebhooksWebhookIdDollarAndEqualsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2WebhooksWebhookIdDollarAndEqualsResponse' from JSON`);
}
/** @internal */
export const PatchV2WebhooksWebhookIdDollarAndResponseUnion$inboundSchema = z.union([
z.lazy(() => PatchV2WebhooksWebhookIdDollarAndEqualsResponse$inboundSchema),
z.lazy(() => PatchV2WebhooksWebhookIdDollarAndNotEqualsResponse$inboundSchema),
]);
/** @internal */
export const PatchV2WebhooksWebhookIdDollarAndResponseUnion$outboundSchema = z.union([
z.lazy(() => PatchV2WebhooksWebhookIdDollarAndEqualsResponse$outboundSchema),
z.lazy(() => PatchV2WebhooksWebhookIdDollarAndNotEqualsResponse$outboundSchema),
]);
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var PatchV2WebhooksWebhookIdDollarAndResponseUnion$;
(function (PatchV2WebhooksWebhookIdDollarAndResponseUnion$) {
/** @deprecated use `PatchV2WebhooksWebhookIdDollarAndResponseUnion$inboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarAndResponseUnion$.inboundSchema = PatchV2WebhooksWebhookIdDollarAndResponseUnion$inboundSchema;
/** @deprecated use `PatchV2WebhooksWebhookIdDollarAndResponseUnion$outboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarAndResponseUnion$.outboundSchema = PatchV2WebhooksWebhookIdDollarAndResponseUnion$outboundSchema;
})(PatchV2WebhooksWebhookIdDollarAndResponseUnion$ || (PatchV2WebhooksWebhookIdDollarAndResponseUnion$ = {}));
export function patchV2WebhooksWebhookIdDollarAndResponseUnionToJSON(patchV2WebhooksWebhookIdDollarAndResponseUnion) {
return JSON.stringify(PatchV2WebhooksWebhookIdDollarAndResponseUnion$outboundSchema.parse(patchV2WebhooksWebhookIdDollarAndResponseUnion));
}
export function patchV2WebhooksWebhookIdDollarAndResponseUnionFromJSON(jsonString) {
return safeParse(jsonString, (x) => PatchV2WebhooksWebhookIdDollarAndResponseUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2WebhooksWebhookIdDollarAndResponseUnion' from JSON`);
}
/** @internal */
export const PatchV2WebhooksWebhookIdFilterResponse2$inboundSchema = z.object({
$and: z.array(z.union([
z.lazy(() => PatchV2WebhooksWebhookIdDollarAndEqualsResponse$inboundSchema),
z.lazy(() => PatchV2WebhooksWebhookIdDollarAndNotEqualsResponse$inboundSchema),
])),
}).transform((v) => {
return remap$(v, {
"$and": "dollarAnd",
});
});
/** @internal */
export const PatchV2WebhooksWebhookIdFilterResponse2$outboundSchema = z.object({
dollarAnd: z.array(z.union([
z.lazy(() => PatchV2WebhooksWebhookIdDollarAndEqualsResponse$outboundSchema),
z.lazy(() => PatchV2WebhooksWebhookIdDollarAndNotEqualsResponse$outboundSchema),
])),
}).transform((v) => {
return remap$(v, {
dollarAnd: "$and",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var PatchV2WebhooksWebhookIdFilterResponse2$;
(function (PatchV2WebhooksWebhookIdFilterResponse2$) {
/** @deprecated use `PatchV2WebhooksWebhookIdFilterResponse2$inboundSchema` instead. */
PatchV2WebhooksWebhookIdFilterResponse2$.inboundSchema = PatchV2WebhooksWebhookIdFilterResponse2$inboundSchema;
/** @deprecated use `PatchV2WebhooksWebhookIdFilterResponse2$outboundSchema` instead. */
PatchV2WebhooksWebhookIdFilterResponse2$.outboundSchema = PatchV2WebhooksWebhookIdFilterResponse2$outboundSchema;
})(PatchV2WebhooksWebhookIdFilterResponse2$ || (PatchV2WebhooksWebhookIdFilterResponse2$ = {}));
export function patchV2WebhooksWebhookIdFilterResponse2ToJSON(patchV2WebhooksWebhookIdFilterResponse2) {
return JSON.stringify(PatchV2WebhooksWebhookIdFilterResponse2$outboundSchema.parse(patchV2WebhooksWebhookIdFilterResponse2));
}
export function patchV2WebhooksWebhookIdFilterResponse2FromJSON(jsonString) {
return safeParse(jsonString, (x) => PatchV2WebhooksWebhookIdFilterResponse2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2WebhooksWebhookIdFilterResponse2' from JSON`);
}
/** @internal */
export const PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsResponse$inboundSchema = z.nativeEnum(PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsResponse);
/** @internal */
export const PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsResponse$outboundSchema = PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsResponse$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsResponse$;
(function (PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsResponse$) {
/** @deprecated use `PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsResponse$inboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsResponse$.inboundSchema = PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsResponse$inboundSchema;
/** @deprecated use `PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsResponse$outboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsResponse$.outboundSchema = PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsResponse$outboundSchema;
})(PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsResponse$ || (PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsResponse$ = {}));
/** @internal */
export const PatchV2WebhooksWebhookIdDollarOrNotEqualsResponse$inboundSchema = z.object({
field: z.string(),
operator: PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsResponse$inboundSchema,
value: z.string(),
});
/** @internal */
export const PatchV2WebhooksWebhookIdDollarOrNotEqualsResponse$outboundSchema = z.object({
field: z.string(),
operator: PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsResponse$outboundSchema,
value: z.string(),
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var PatchV2WebhooksWebhookIdDollarOrNotEqualsResponse$;
(function (PatchV2WebhooksWebhookIdDollarOrNotEqualsResponse$) {
/** @deprecated use `PatchV2WebhooksWebhookIdDollarOrNotEqualsResponse$inboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarOrNotEqualsResponse$.inboundSchema = PatchV2WebhooksWebhookIdDollarOrNotEqualsResponse$inboundSchema;
/** @deprecated use `PatchV2WebhooksWebhookIdDollarOrNotEqualsResponse$outboundSchema` instead. */
PatchV2WebhooksWebhookIdDollarOrNotEqualsResponse$.outboundSchema = PatchV2WebhooksWebhookIdDollarOrNotEqualsResponse$outboundSchema;
})(PatchV2WebhooksWebhookIdDollarOrNotEqualsResponse$ || (PatchV2WebhooksWebhookIdDollarOrNotEqualsResponse$ = {}));
export function patchV2WebhooksWebhookIdDollarOrNotEqualsResponseToJSON(patchV2WebhooksWebhookIdDollarOrNotEqualsResponse) {
return JSON.stringify(PatchV2WebhooksWebhookIdDollarOrNotEqualsResponse$outboundSchema.parse(patchV2WebhooksWebhookIdDollarOrNotEqualsResponse));
}
export function patchV2WebhooksWebhookIdDollarOrNotEqualsResponseFromJSON(jsonString) {
return safeParse(jsonString, (x) => PatchV2WebhooksWebhookIdDollarOrNotEqualsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2WebhooksWebhookIdDollarOrNotEqualsResponse' from JSON`);
}
/** @internal */
export const PatchV2WebhooksWebhookIdDollarOrOperatorEqualsResponse$inboundSchema = z.nativeEnum(PatchV2WebhooksWebhookIdDollarOrOperatorEqualsResponse);
/** @internal */
export const PatchV2WebhooksWebhookIdDollarOrOperatorEqualsResponse$outboundSchema = PatchV2WebhooksWebhookIdDollarOrOperatorEqualsResponse$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and