UNPKG

attio-js

Version:

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

647 lines 86 kB
"use strict"; /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || (function () { var ownKeys = function(o) { ownKeys = Object.getOwnPropertyNames || function (o) { var ar = []; for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; return ar; }; return ownKeys(o); }; return function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); __setModuleDefault(result, mod); return result; }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.PatchV2WebhooksWebhookIdFilterRequest1$ = exports.PatchV2WebhooksWebhookIdFilterRequest1$outboundSchema = exports.PatchV2WebhooksWebhookIdFilterRequest1$inboundSchema = exports.PatchV2WebhooksWebhookIdDollarOrRequestUnion$ = exports.PatchV2WebhooksWebhookIdDollarOrRequestUnion$outboundSchema = exports.PatchV2WebhooksWebhookIdDollarOrRequestUnion$inboundSchema = exports.PatchV2WebhooksWebhookIdDollarOrEqualsRequest$ = exports.PatchV2WebhooksWebhookIdDollarOrEqualsRequest$outboundSchema = exports.PatchV2WebhooksWebhookIdDollarOrEqualsRequest$inboundSchema = exports.PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$ = exports.PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$outboundSchema = exports.PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$inboundSchema = exports.PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$ = exports.PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$outboundSchema = exports.PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$inboundSchema = exports.PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$ = exports.PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$outboundSchema = exports.PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$inboundSchema = exports.PatchV2WebhooksWebhookIdFilterRequest2$ = exports.PatchV2WebhooksWebhookIdFilterRequest2$outboundSchema = exports.PatchV2WebhooksWebhookIdFilterRequest2$inboundSchema = exports.PatchV2WebhooksWebhookIdDollarAndRequestUnion$ = exports.PatchV2WebhooksWebhookIdDollarAndRequestUnion$outboundSchema = exports.PatchV2WebhooksWebhookIdDollarAndRequestUnion$inboundSchema = exports.PatchV2WebhooksWebhookIdDollarAndEqualsRequest$ = exports.PatchV2WebhooksWebhookIdDollarAndEqualsRequest$outboundSchema = exports.PatchV2WebhooksWebhookIdDollarAndEqualsRequest$inboundSchema = exports.PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$ = exports.PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$outboundSchema = exports.PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$inboundSchema = exports.PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$ = exports.PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$outboundSchema = exports.PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$inboundSchema = exports.PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$ = exports.PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$outboundSchema = exports.PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$inboundSchema = exports.PatchV2WebhooksWebhookIdEventTypeRequest$ = exports.PatchV2WebhooksWebhookIdEventTypeRequest$outboundSchema = exports.PatchV2WebhooksWebhookIdEventTypeRequest$inboundSchema = exports.PatchV2WebhooksWebhookIdStatus = exports.PatchV2WebhooksWebhookIdDollarOrOperatorEqualsResponse = exports.PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsResponse = exports.PatchV2WebhooksWebhookIdDollarAndOperatorEqualsResponse = exports.PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsResponse = exports.PatchV2WebhooksWebhookIdEventTypeResponse = exports.PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest = exports.PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest = exports.PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest = exports.PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest = exports.PatchV2WebhooksWebhookIdEventTypeRequest = void 0; exports.PatchV2WebhooksWebhookIdDollarOrResponseUnion$outboundSchema = exports.PatchV2WebhooksWebhookIdDollarOrResponseUnion$inboundSchema = exports.PatchV2WebhooksWebhookIdDollarOrEqualsResponse$ = exports.PatchV2WebhooksWebhookIdDollarOrEqualsResponse$outboundSchema = exports.PatchV2WebhooksWebhookIdDollarOrEqualsResponse$inboundSchema = exports.PatchV2WebhooksWebhookIdDollarOrOperatorEqualsResponse$ = exports.PatchV2WebhooksWebhookIdDollarOrOperatorEqualsResponse$outboundSchema = exports.PatchV2WebhooksWebhookIdDollarOrOperatorEqualsResponse$inboundSchema = exports.PatchV2WebhooksWebhookIdDollarOrNotEqualsResponse$ = exports.PatchV2WebhooksWebhookIdDollarOrNotEqualsResponse$outboundSchema = exports.PatchV2WebhooksWebhookIdDollarOrNotEqualsResponse$inboundSchema = exports.PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsResponse$ = exports.PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsResponse$outboundSchema = exports.PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsResponse$inboundSchema = exports.PatchV2WebhooksWebhookIdFilterResponse2$ = exports.PatchV2WebhooksWebhookIdFilterResponse2$outboundSchema = exports.PatchV2WebhooksWebhookIdFilterResponse2$inboundSchema = exports.PatchV2WebhooksWebhookIdDollarAndResponseUnion$ = exports.PatchV2WebhooksWebhookIdDollarAndResponseUnion$outboundSchema = exports.PatchV2WebhooksWebhookIdDollarAndResponseUnion$inboundSchema = exports.PatchV2WebhooksWebhookIdDollarAndEqualsResponse$ = exports.PatchV2WebhooksWebhookIdDollarAndEqualsResponse$outboundSchema = exports.PatchV2WebhooksWebhookIdDollarAndEqualsResponse$inboundSchema = exports.PatchV2WebhooksWebhookIdDollarAndOperatorEqualsResponse$ = exports.PatchV2WebhooksWebhookIdDollarAndOperatorEqualsResponse$outboundSchema = exports.PatchV2WebhooksWebhookIdDollarAndOperatorEqualsResponse$inboundSchema = exports.PatchV2WebhooksWebhookIdDollarAndNotEqualsResponse$ = exports.PatchV2WebhooksWebhookIdDollarAndNotEqualsResponse$outboundSchema = exports.PatchV2WebhooksWebhookIdDollarAndNotEqualsResponse$inboundSchema = exports.PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsResponse$ = exports.PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsResponse$outboundSchema = exports.PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsResponse$inboundSchema = exports.PatchV2WebhooksWebhookIdEventTypeResponse$ = exports.PatchV2WebhooksWebhookIdEventTypeResponse$outboundSchema = exports.PatchV2WebhooksWebhookIdEventTypeResponse$inboundSchema = exports.PatchV2WebhooksWebhookIdRequest$ = exports.PatchV2WebhooksWebhookIdRequest$outboundSchema = exports.PatchV2WebhooksWebhookIdRequest$inboundSchema = exports.PatchV2WebhooksWebhookIdRequestBody$ = exports.PatchV2WebhooksWebhookIdRequestBody$outboundSchema = exports.PatchV2WebhooksWebhookIdRequestBody$inboundSchema = exports.PatchV2WebhooksWebhookIdDataRequest$ = exports.PatchV2WebhooksWebhookIdDataRequest$outboundSchema = exports.PatchV2WebhooksWebhookIdDataRequest$inboundSchema = exports.PatchV2WebhooksWebhookIdSubscriptionRequest$ = exports.PatchV2WebhooksWebhookIdSubscriptionRequest$outboundSchema = exports.PatchV2WebhooksWebhookIdSubscriptionRequest$inboundSchema = exports.PatchV2WebhooksWebhookIdFilterRequestUnion$ = exports.PatchV2WebhooksWebhookIdFilterRequestUnion$outboundSchema = exports.PatchV2WebhooksWebhookIdFilterRequestUnion$inboundSchema = void 0; exports.PatchV2WebhooksWebhookIdResponse$ = exports.PatchV2WebhooksWebhookIdResponse$outboundSchema = exports.PatchV2WebhooksWebhookIdResponse$inboundSchema = exports.PatchV2WebhooksWebhookIdDataResponse$ = exports.PatchV2WebhooksWebhookIdDataResponse$outboundSchema = exports.PatchV2WebhooksWebhookIdDataResponse$inboundSchema = exports.PatchV2WebhooksWebhookIdStatus$ = exports.PatchV2WebhooksWebhookIdStatus$outboundSchema = exports.PatchV2WebhooksWebhookIdStatus$inboundSchema = exports.PatchV2WebhooksWebhookIdId$ = exports.PatchV2WebhooksWebhookIdId$outboundSchema = exports.PatchV2WebhooksWebhookIdId$inboundSchema = exports.PatchV2WebhooksWebhookIdSubscriptionResponse$ = exports.PatchV2WebhooksWebhookIdSubscriptionResponse$outboundSchema = exports.PatchV2WebhooksWebhookIdSubscriptionResponse$inboundSchema = exports.PatchV2WebhooksWebhookIdFilterResponseUnion$ = exports.PatchV2WebhooksWebhookIdFilterResponseUnion$outboundSchema = exports.PatchV2WebhooksWebhookIdFilterResponseUnion$inboundSchema = exports.PatchV2WebhooksWebhookIdFilterResponse1$ = exports.PatchV2WebhooksWebhookIdFilterResponse1$outboundSchema = exports.PatchV2WebhooksWebhookIdFilterResponse1$inboundSchema = exports.PatchV2WebhooksWebhookIdDollarOrResponseUnion$ = void 0; exports.patchV2WebhooksWebhookIdDollarAndNotEqualsRequestToJSON = patchV2WebhooksWebhookIdDollarAndNotEqualsRequestToJSON; exports.patchV2WebhooksWebhookIdDollarAndNotEqualsRequestFromJSON = patchV2WebhooksWebhookIdDollarAndNotEqualsRequestFromJSON; exports.patchV2WebhooksWebhookIdDollarAndEqualsRequestToJSON = patchV2WebhooksWebhookIdDollarAndEqualsRequestToJSON; exports.patchV2WebhooksWebhookIdDollarAndEqualsRequestFromJSON = patchV2WebhooksWebhookIdDollarAndEqualsRequestFromJSON; exports.patchV2WebhooksWebhookIdDollarAndRequestUnionToJSON = patchV2WebhooksWebhookIdDollarAndRequestUnionToJSON; exports.patchV2WebhooksWebhookIdDollarAndRequestUnionFromJSON = patchV2WebhooksWebhookIdDollarAndRequestUnionFromJSON; exports.patchV2WebhooksWebhookIdFilterRequest2ToJSON = patchV2WebhooksWebhookIdFilterRequest2ToJSON; exports.patchV2WebhooksWebhookIdFilterRequest2FromJSON = patchV2WebhooksWebhookIdFilterRequest2FromJSON; exports.patchV2WebhooksWebhookIdDollarOrNotEqualsRequestToJSON = patchV2WebhooksWebhookIdDollarOrNotEqualsRequestToJSON; exports.patchV2WebhooksWebhookIdDollarOrNotEqualsRequestFromJSON = patchV2WebhooksWebhookIdDollarOrNotEqualsRequestFromJSON; exports.patchV2WebhooksWebhookIdDollarOrEqualsRequestToJSON = patchV2WebhooksWebhookIdDollarOrEqualsRequestToJSON; exports.patchV2WebhooksWebhookIdDollarOrEqualsRequestFromJSON = patchV2WebhooksWebhookIdDollarOrEqualsRequestFromJSON; exports.patchV2WebhooksWebhookIdDollarOrRequestUnionToJSON = patchV2WebhooksWebhookIdDollarOrRequestUnionToJSON; exports.patchV2WebhooksWebhookIdDollarOrRequestUnionFromJSON = patchV2WebhooksWebhookIdDollarOrRequestUnionFromJSON; exports.patchV2WebhooksWebhookIdFilterRequest1ToJSON = patchV2WebhooksWebhookIdFilterRequest1ToJSON; exports.patchV2WebhooksWebhookIdFilterRequest1FromJSON = patchV2WebhooksWebhookIdFilterRequest1FromJSON; exports.patchV2WebhooksWebhookIdFilterRequestUnionToJSON = patchV2WebhooksWebhookIdFilterRequestUnionToJSON; exports.patchV2WebhooksWebhookIdFilterRequestUnionFromJSON = patchV2WebhooksWebhookIdFilterRequestUnionFromJSON; exports.patchV2WebhooksWebhookIdSubscriptionRequestToJSON = patchV2WebhooksWebhookIdSubscriptionRequestToJSON; exports.patchV2WebhooksWebhookIdSubscriptionRequestFromJSON = patchV2WebhooksWebhookIdSubscriptionRequestFromJSON; exports.patchV2WebhooksWebhookIdDataRequestToJSON = patchV2WebhooksWebhookIdDataRequestToJSON; exports.patchV2WebhooksWebhookIdDataRequestFromJSON = patchV2WebhooksWebhookIdDataRequestFromJSON; exports.patchV2WebhooksWebhookIdRequestBodyToJSON = patchV2WebhooksWebhookIdRequestBodyToJSON; exports.patchV2WebhooksWebhookIdRequestBodyFromJSON = patchV2WebhooksWebhookIdRequestBodyFromJSON; exports.patchV2WebhooksWebhookIdRequestToJSON = patchV2WebhooksWebhookIdRequestToJSON; exports.patchV2WebhooksWebhookIdRequestFromJSON = patchV2WebhooksWebhookIdRequestFromJSON; exports.patchV2WebhooksWebhookIdDollarAndNotEqualsResponseToJSON = patchV2WebhooksWebhookIdDollarAndNotEqualsResponseToJSON; exports.patchV2WebhooksWebhookIdDollarAndNotEqualsResponseFromJSON = patchV2WebhooksWebhookIdDollarAndNotEqualsResponseFromJSON; exports.patchV2WebhooksWebhookIdDollarAndEqualsResponseToJSON = patchV2WebhooksWebhookIdDollarAndEqualsResponseToJSON; exports.patchV2WebhooksWebhookIdDollarAndEqualsResponseFromJSON = patchV2WebhooksWebhookIdDollarAndEqualsResponseFromJSON; exports.patchV2WebhooksWebhookIdDollarAndResponseUnionToJSON = patchV2WebhooksWebhookIdDollarAndResponseUnionToJSON; exports.patchV2WebhooksWebhookIdDollarAndResponseUnionFromJSON = patchV2WebhooksWebhookIdDollarAndResponseUnionFromJSON; exports.patchV2WebhooksWebhookIdFilterResponse2ToJSON = patchV2WebhooksWebhookIdFilterResponse2ToJSON; exports.patchV2WebhooksWebhookIdFilterResponse2FromJSON = patchV2WebhooksWebhookIdFilterResponse2FromJSON; exports.patchV2WebhooksWebhookIdDollarOrNotEqualsResponseToJSON = patchV2WebhooksWebhookIdDollarOrNotEqualsResponseToJSON; exports.patchV2WebhooksWebhookIdDollarOrNotEqualsResponseFromJSON = patchV2WebhooksWebhookIdDollarOrNotEqualsResponseFromJSON; exports.patchV2WebhooksWebhookIdDollarOrEqualsResponseToJSON = patchV2WebhooksWebhookIdDollarOrEqualsResponseToJSON; exports.patchV2WebhooksWebhookIdDollarOrEqualsResponseFromJSON = patchV2WebhooksWebhookIdDollarOrEqualsResponseFromJSON; exports.patchV2WebhooksWebhookIdDollarOrResponseUnionToJSON = patchV2WebhooksWebhookIdDollarOrResponseUnionToJSON; exports.patchV2WebhooksWebhookIdDollarOrResponseUnionFromJSON = patchV2WebhooksWebhookIdDollarOrResponseUnionFromJSON; exports.patchV2WebhooksWebhookIdFilterResponse1ToJSON = patchV2WebhooksWebhookIdFilterResponse1ToJSON; exports.patchV2WebhooksWebhookIdFilterResponse1FromJSON = patchV2WebhooksWebhookIdFilterResponse1FromJSON; exports.patchV2WebhooksWebhookIdFilterResponseUnionToJSON = patchV2WebhooksWebhookIdFilterResponseUnionToJSON; exports.patchV2WebhooksWebhookIdFilterResponseUnionFromJSON = patchV2WebhooksWebhookIdFilterResponseUnionFromJSON; exports.patchV2WebhooksWebhookIdSubscriptionResponseToJSON = patchV2WebhooksWebhookIdSubscriptionResponseToJSON; exports.patchV2WebhooksWebhookIdSubscriptionResponseFromJSON = patchV2WebhooksWebhookIdSubscriptionResponseFromJSON; exports.patchV2WebhooksWebhookIdIdToJSON = patchV2WebhooksWebhookIdIdToJSON; exports.patchV2WebhooksWebhookIdIdFromJSON = patchV2WebhooksWebhookIdIdFromJSON; exports.patchV2WebhooksWebhookIdDataResponseToJSON = patchV2WebhooksWebhookIdDataResponseToJSON; exports.patchV2WebhooksWebhookIdDataResponseFromJSON = patchV2WebhooksWebhookIdDataResponseFromJSON; exports.patchV2WebhooksWebhookIdResponseToJSON = patchV2WebhooksWebhookIdResponseToJSON; exports.patchV2WebhooksWebhookIdResponseFromJSON = patchV2WebhooksWebhookIdResponseFromJSON; const z = __importStar(require("zod")); const primitives_js_1 = require("../../lib/primitives.js"); const schemas_js_1 = require("../../lib/schemas.js"); /** * Type of event the webhook is subscribed to. */ exports.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", }; exports.PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest = { NotEquals: "not_equals", }; exports.PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest = { Equals: "equals", }; exports.PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest = { NotEquals: "not_equals", }; exports.PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest = { Equals: "equals", }; /** * Type of event the webhook is subscribed to. */ exports.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", }; exports.PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsResponse = { NotEquals: "not_equals", }; exports.PatchV2WebhooksWebhookIdDollarAndOperatorEqualsResponse = { Equals: "equals", }; exports.PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsResponse = { NotEquals: "not_equals", }; exports.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. */ exports.PatchV2WebhooksWebhookIdStatus = { Active: "active", Degraded: "degraded", Inactive: "inactive", }; /** @internal */ exports.PatchV2WebhooksWebhookIdEventTypeRequest$inboundSchema = z .nativeEnum(exports.PatchV2WebhooksWebhookIdEventTypeRequest); /** @internal */ exports.PatchV2WebhooksWebhookIdEventTypeRequest$outboundSchema = exports.PatchV2WebhooksWebhookIdEventTypeRequest$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var PatchV2WebhooksWebhookIdEventTypeRequest$; (function (PatchV2WebhooksWebhookIdEventTypeRequest$) { /** @deprecated use `PatchV2WebhooksWebhookIdEventTypeRequest$inboundSchema` instead. */ PatchV2WebhooksWebhookIdEventTypeRequest$.inboundSchema = exports.PatchV2WebhooksWebhookIdEventTypeRequest$inboundSchema; /** @deprecated use `PatchV2WebhooksWebhookIdEventTypeRequest$outboundSchema` instead. */ PatchV2WebhooksWebhookIdEventTypeRequest$.outboundSchema = exports.PatchV2WebhooksWebhookIdEventTypeRequest$outboundSchema; })(PatchV2WebhooksWebhookIdEventTypeRequest$ || (exports.PatchV2WebhooksWebhookIdEventTypeRequest$ = PatchV2WebhooksWebhookIdEventTypeRequest$ = {})); /** @internal */ exports.PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$inboundSchema = z.nativeEnum(exports.PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest); /** @internal */ exports.PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$outboundSchema = exports.PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$; (function (PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$) { /** @deprecated use `PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$inboundSchema` instead. */ PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$.inboundSchema = exports.PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$inboundSchema; /** @deprecated use `PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$outboundSchema` instead. */ PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$.outboundSchema = exports.PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$outboundSchema; })(PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$ || (exports.PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$ = PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$ = {})); /** @internal */ exports.PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$inboundSchema = z.object({ field: z.string(), operator: exports.PatchV2WebhooksWebhookIdDollarAndOperatorNotEqualsRequest$inboundSchema, value: z.string(), }); /** @internal */ exports.PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$outboundSchema = z.object({ field: z.string(), operator: exports.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. */ var PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$; (function (PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$) { /** @deprecated use `PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$inboundSchema` instead. */ PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$.inboundSchema = exports.PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$inboundSchema; /** @deprecated use `PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$outboundSchema` instead. */ PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$.outboundSchema = exports.PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$outboundSchema; })(PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$ || (exports.PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$ = PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$ = {})); function patchV2WebhooksWebhookIdDollarAndNotEqualsRequestToJSON(patchV2WebhooksWebhookIdDollarAndNotEqualsRequest) { return JSON.stringify(exports.PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$outboundSchema.parse(patchV2WebhooksWebhookIdDollarAndNotEqualsRequest)); } function patchV2WebhooksWebhookIdDollarAndNotEqualsRequestFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest' from JSON`); } /** @internal */ exports.PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$inboundSchema = z.nativeEnum(exports.PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest); /** @internal */ exports.PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$outboundSchema = exports.PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$; (function (PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$) { /** @deprecated use `PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$inboundSchema` instead. */ PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$.inboundSchema = exports.PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$inboundSchema; /** @deprecated use `PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$outboundSchema` instead. */ PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$.outboundSchema = exports.PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$outboundSchema; })(PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$ || (exports.PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$ = PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$ = {})); /** @internal */ exports.PatchV2WebhooksWebhookIdDollarAndEqualsRequest$inboundSchema = z.object({ field: z.string(), operator: exports.PatchV2WebhooksWebhookIdDollarAndOperatorEqualsRequest$inboundSchema, value: z.string(), }); /** @internal */ exports.PatchV2WebhooksWebhookIdDollarAndEqualsRequest$outboundSchema = z.object({ field: z.string(), operator: exports.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. */ var PatchV2WebhooksWebhookIdDollarAndEqualsRequest$; (function (PatchV2WebhooksWebhookIdDollarAndEqualsRequest$) { /** @deprecated use `PatchV2WebhooksWebhookIdDollarAndEqualsRequest$inboundSchema` instead. */ PatchV2WebhooksWebhookIdDollarAndEqualsRequest$.inboundSchema = exports.PatchV2WebhooksWebhookIdDollarAndEqualsRequest$inboundSchema; /** @deprecated use `PatchV2WebhooksWebhookIdDollarAndEqualsRequest$outboundSchema` instead. */ PatchV2WebhooksWebhookIdDollarAndEqualsRequest$.outboundSchema = exports.PatchV2WebhooksWebhookIdDollarAndEqualsRequest$outboundSchema; })(PatchV2WebhooksWebhookIdDollarAndEqualsRequest$ || (exports.PatchV2WebhooksWebhookIdDollarAndEqualsRequest$ = PatchV2WebhooksWebhookIdDollarAndEqualsRequest$ = {})); function patchV2WebhooksWebhookIdDollarAndEqualsRequestToJSON(patchV2WebhooksWebhookIdDollarAndEqualsRequest) { return JSON.stringify(exports.PatchV2WebhooksWebhookIdDollarAndEqualsRequest$outboundSchema.parse(patchV2WebhooksWebhookIdDollarAndEqualsRequest)); } function patchV2WebhooksWebhookIdDollarAndEqualsRequestFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchV2WebhooksWebhookIdDollarAndEqualsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2WebhooksWebhookIdDollarAndEqualsRequest' from JSON`); } /** @internal */ exports.PatchV2WebhooksWebhookIdDollarAndRequestUnion$inboundSchema = z.union([ z.lazy(() => exports.PatchV2WebhooksWebhookIdDollarAndEqualsRequest$inboundSchema), z.lazy(() => exports.PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$inboundSchema), ]); /** @internal */ exports.PatchV2WebhooksWebhookIdDollarAndRequestUnion$outboundSchema = z.union([ z.lazy(() => exports.PatchV2WebhooksWebhookIdDollarAndEqualsRequest$outboundSchema), z.lazy(() => exports.PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$outboundSchema), ]); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var PatchV2WebhooksWebhookIdDollarAndRequestUnion$; (function (PatchV2WebhooksWebhookIdDollarAndRequestUnion$) { /** @deprecated use `PatchV2WebhooksWebhookIdDollarAndRequestUnion$inboundSchema` instead. */ PatchV2WebhooksWebhookIdDollarAndRequestUnion$.inboundSchema = exports.PatchV2WebhooksWebhookIdDollarAndRequestUnion$inboundSchema; /** @deprecated use `PatchV2WebhooksWebhookIdDollarAndRequestUnion$outboundSchema` instead. */ PatchV2WebhooksWebhookIdDollarAndRequestUnion$.outboundSchema = exports.PatchV2WebhooksWebhookIdDollarAndRequestUnion$outboundSchema; })(PatchV2WebhooksWebhookIdDollarAndRequestUnion$ || (exports.PatchV2WebhooksWebhookIdDollarAndRequestUnion$ = PatchV2WebhooksWebhookIdDollarAndRequestUnion$ = {})); function patchV2WebhooksWebhookIdDollarAndRequestUnionToJSON(patchV2WebhooksWebhookIdDollarAndRequestUnion) { return JSON.stringify(exports.PatchV2WebhooksWebhookIdDollarAndRequestUnion$outboundSchema.parse(patchV2WebhooksWebhookIdDollarAndRequestUnion)); } function patchV2WebhooksWebhookIdDollarAndRequestUnionFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchV2WebhooksWebhookIdDollarAndRequestUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2WebhooksWebhookIdDollarAndRequestUnion' from JSON`); } /** @internal */ exports.PatchV2WebhooksWebhookIdFilterRequest2$inboundSchema = z.object({ $and: z.array(z.union([ z.lazy(() => exports.PatchV2WebhooksWebhookIdDollarAndEqualsRequest$inboundSchema), z.lazy(() => exports.PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$inboundSchema), ])), }).transform((v) => { return (0, primitives_js_1.remap)(v, { "$and": "dollarAnd", }); }); /** @internal */ exports.PatchV2WebhooksWebhookIdFilterRequest2$outboundSchema = z.object({ dollarAnd: z.array(z.union([ z.lazy(() => exports.PatchV2WebhooksWebhookIdDollarAndEqualsRequest$outboundSchema), z.lazy(() => exports.PatchV2WebhooksWebhookIdDollarAndNotEqualsRequest$outboundSchema), ])), }).transform((v) => { return (0, primitives_js_1.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. */ var PatchV2WebhooksWebhookIdFilterRequest2$; (function (PatchV2WebhooksWebhookIdFilterRequest2$) { /** @deprecated use `PatchV2WebhooksWebhookIdFilterRequest2$inboundSchema` instead. */ PatchV2WebhooksWebhookIdFilterRequest2$.inboundSchema = exports.PatchV2WebhooksWebhookIdFilterRequest2$inboundSchema; /** @deprecated use `PatchV2WebhooksWebhookIdFilterRequest2$outboundSchema` instead. */ PatchV2WebhooksWebhookIdFilterRequest2$.outboundSchema = exports.PatchV2WebhooksWebhookIdFilterRequest2$outboundSchema; })(PatchV2WebhooksWebhookIdFilterRequest2$ || (exports.PatchV2WebhooksWebhookIdFilterRequest2$ = PatchV2WebhooksWebhookIdFilterRequest2$ = {})); function patchV2WebhooksWebhookIdFilterRequest2ToJSON(patchV2WebhooksWebhookIdFilterRequest2) { return JSON.stringify(exports.PatchV2WebhooksWebhookIdFilterRequest2$outboundSchema.parse(patchV2WebhooksWebhookIdFilterRequest2)); } function patchV2WebhooksWebhookIdFilterRequest2FromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchV2WebhooksWebhookIdFilterRequest2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2WebhooksWebhookIdFilterRequest2' from JSON`); } /** @internal */ exports.PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$inboundSchema = z.nativeEnum(exports.PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest); /** @internal */ exports.PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$outboundSchema = exports.PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$; (function (PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$) { /** @deprecated use `PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$inboundSchema` instead. */ PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$.inboundSchema = exports.PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$inboundSchema; /** @deprecated use `PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$outboundSchema` instead. */ PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$.outboundSchema = exports.PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$outboundSchema; })(PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$ || (exports.PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$ = PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$ = {})); /** @internal */ exports.PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$inboundSchema = z.object({ field: z.string(), operator: exports.PatchV2WebhooksWebhookIdDollarOrOperatorNotEqualsRequest$inboundSchema, value: z.string(), }); /** @internal */ exports.PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$outboundSchema = z.object({ field: z.string(), operator: exports.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. */ var PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$; (function (PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$) { /** @deprecated use `PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$inboundSchema` instead. */ PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$.inboundSchema = exports.PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$inboundSchema; /** @deprecated use `PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$outboundSchema` instead. */ PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$.outboundSchema = exports.PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$outboundSchema; })(PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$ || (exports.PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$ = PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$ = {})); function patchV2WebhooksWebhookIdDollarOrNotEqualsRequestToJSON(patchV2WebhooksWebhookIdDollarOrNotEqualsRequest) { return JSON.stringify(exports.PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$outboundSchema.parse(patchV2WebhooksWebhookIdDollarOrNotEqualsRequest)); } function patchV2WebhooksWebhookIdDollarOrNotEqualsRequestFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest' from JSON`); } /** @internal */ exports.PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$inboundSchema = z.nativeEnum(exports.PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest); /** @internal */ exports.PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$outboundSchema = exports.PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$; (function (PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$) { /** @deprecated use `PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$inboundSchema` instead. */ PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$.inboundSchema = exports.PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$inboundSchema; /** @deprecated use `PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$outboundSchema` instead. */ PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$.outboundSchema = exports.PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$outboundSchema; })(PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$ || (exports.PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$ = PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$ = {})); /** @internal */ exports.PatchV2WebhooksWebhookIdDollarOrEqualsRequest$inboundSchema = z.object({ field: z.string(), operator: exports.PatchV2WebhooksWebhookIdDollarOrOperatorEqualsRequest$inboundSchema, value: z.string(), }); /** @internal */ exports.PatchV2WebhooksWebhookIdDollarOrEqualsRequest$outboundSchema = z.object({ field: z.string(), operator: exports.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. */ var PatchV2WebhooksWebhookIdDollarOrEqualsRequest$; (function (PatchV2WebhooksWebhookIdDollarOrEqualsRequest$) { /** @deprecated use `PatchV2WebhooksWebhookIdDollarOrEqualsRequest$inboundSchema` instead. */ PatchV2WebhooksWebhookIdDollarOrEqualsRequest$.inboundSchema = exports.PatchV2WebhooksWebhookIdDollarOrEqualsRequest$inboundSchema; /** @deprecated use `PatchV2WebhooksWebhookIdDollarOrEqualsRequest$outboundSchema` instead. */ PatchV2WebhooksWebhookIdDollarOrEqualsRequest$.outboundSchema = exports.PatchV2WebhooksWebhookIdDollarOrEqualsRequest$outboundSchema; })(PatchV2WebhooksWebhookIdDollarOrEqualsRequest$ || (exports.PatchV2WebhooksWebhookIdDollarOrEqualsRequest$ = PatchV2WebhooksWebhookIdDollarOrEqualsRequest$ = {})); function patchV2WebhooksWebhookIdDollarOrEqualsRequestToJSON(patchV2WebhooksWebhookIdDollarOrEqualsRequest) { return JSON.stringify(exports.PatchV2WebhooksWebhookIdDollarOrEqualsRequest$outboundSchema.parse(patchV2WebhooksWebhookIdDollarOrEqualsRequest)); } function patchV2WebhooksWebhookIdDollarOrEqualsRequestFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchV2WebhooksWebhookIdDollarOrEqualsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2WebhooksWebhookIdDollarOrEqualsRequest' from JSON`); } /** @internal */ exports.PatchV2WebhooksWebhookIdDollarOrRequestUnion$inboundSchema = z.union([ z.lazy(() => exports.PatchV2WebhooksWebhookIdDollarOrEqualsRequest$inboundSchema), z.lazy(() => exports.PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$inboundSchema), ]); /** @internal */ exports.PatchV2WebhooksWebhookIdDollarOrRequestUnion$outboundSchema = z.union([ z.lazy(() => exports.PatchV2WebhooksWebhookIdDollarOrEqualsRequest$outboundSchema), z.lazy(() => exports.PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$outboundSchema), ]); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var PatchV2WebhooksWebhookIdDollarOrRequestUnion$; (function (PatchV2WebhooksWebhookIdDollarOrRequestUnion$) { /** @deprecated use `PatchV2WebhooksWebhookIdDollarOrRequestUnion$inboundSchema` instead. */ PatchV2WebhooksWebhookIdDollarOrRequestUnion$.inboundSchema = exports.PatchV2WebhooksWebhookIdDollarOrRequestUnion$inboundSchema; /** @deprecated use `PatchV2WebhooksWebhookIdDollarOrRequestUnion$outboundSchema` instead. */ PatchV2WebhooksWebhookIdDollarOrRequestUnion$.outboundSchema = exports.PatchV2WebhooksWebhookIdDollarOrRequestUnion$outboundSchema; })(PatchV2WebhooksWebhookIdDollarOrRequestUnion$ || (exports.PatchV2WebhooksWebhookIdDollarOrRequestUnion$ = PatchV2WebhooksWebhookIdDollarOrRequestUnion$ = {})); function patchV2WebhooksWebhookIdDollarOrRequestUnionToJSON(patchV2WebhooksWebhookIdDollarOrRequestUnion) { return JSON.stringify(exports.PatchV2WebhooksWebhookIdDollarOrRequestUnion$outboundSchema.parse(patchV2WebhooksWebhookIdDollarOrRequestUnion)); } function patchV2WebhooksWebhookIdDollarOrRequestUnionFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchV2WebhooksWebhookIdDollarOrRequestUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2WebhooksWebhookIdDollarOrRequestUnion' from JSON`); } /** @internal */ exports.PatchV2WebhooksWebhookIdFilterRequest1$inboundSchema = z.object({ $or: z.array(z.union([ z.lazy(() => exports.PatchV2WebhooksWebhookIdDollarOrEqualsRequest$inboundSchema), z.lazy(() => exports.PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$inboundSchema), ])), }).transform((v) => { return (0, primitives_js_1.remap)(v, { "$or": "dollarOr", }); }); /** @internal */ exports.PatchV2WebhooksWebhookIdFilterRequest1$outboundSchema = z.object({ dollarOr: z.array(z.union([ z.lazy(() => exports.PatchV2WebhooksWebhookIdDollarOrEqualsRequest$outboundSchema), z.lazy(() => exports.PatchV2WebhooksWebhookIdDollarOrNotEqualsRequest$outboundSchema), ])), }).transform((v) => { return (0, primitives_js_1.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. */ var PatchV2WebhooksWebhookIdFilterRequest1$; (function (PatchV2WebhooksWebhookIdFilterRequest1$) { /** @deprecated use `PatchV2WebhooksWebhookIdFilterRequest1$inboundSchema` instead. */ PatchV2WebhooksWebhookIdFilterRequest1$.inboundSchema = exports.PatchV2WebhooksWebhookIdFilterRequest1$inboundSchema; /** @deprecated use `PatchV2WebhooksWebhookIdFilterRequest1$outboundSchema` instead. */ PatchV2WebhooksWebhookIdFilterRequest1$.outboundSchema = exports.PatchV2WebhooksWebhookIdFilterRequest1$outboundSchema; })(PatchV2WebhooksWebhookIdFilterRequest1$ || (exports.PatchV2WebhooksWebhookIdFilterRequest1$ = PatchV2WebhooksWebhookIdFilterRequest1$ = {})); function patchV2WebhooksWebhookIdFilterRequest1ToJSON(patchV2WebhooksWebhookIdFilterRequest1) { return JSON.stringify(exports.PatchV2WebhooksWebhookIdFilterRequest1$outboundSchema.parse(patchV2WebhooksWebhookIdFilterRequest1)); } function patchV2WebhooksWebhookIdFilterRequest1FromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchV2WebhooksWebhookIdFilterRequest1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2WebhooksWebhookIdFilterRequest1' from JSON`); } /** @internal */ exports.PatchV2WebhooksWebhookIdFilterRequestUnion$inboundSchema = z.union([ z.lazy(() => exports.PatchV2WebhooksWebhookIdFilterRequest1$inboundSchema), z.lazy(() => exports.PatchV2WebhooksWebhookIdFilterRequest2$inboundSchema), ]); /** @internal */ exports.PatchV2WebhooksWebhookIdFilterRequestUnion$outboundSchema = z.union([ z.lazy(() => exports.PatchV2WebhooksWebhookIdFilterRequest1$outboundSchema), z.lazy(() => exports.PatchV2WebhooksWebhookIdFilterRequest2$outboundSchema), ]); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var PatchV2WebhooksWebhookIdFilterRequestUnion$; (function (PatchV2WebhooksWebhookIdFilterRequestUnion$) { /** @deprecated use `PatchV2WebhooksWebhookIdFilterRequestUnion$inboundSchema` instead. */ PatchV2WebhooksWebhookIdFilterRequestUnion$.inboundSchema = exports.PatchV2WebhooksWebhookIdFilterRequestUnion$inboundSchema; /** @deprecated use `PatchV2WebhooksWebhookIdFilterRequestUnion$outboundSchema` instead. */ PatchV2WebhooksWebhookIdFilterRequestUnion$.outboundSchema = exports.PatchV2WebhooksWebhookIdFilterRequestUnion$outboundSchema; })(PatchV2WebhooksWebhookIdFilterRequestUnion$ || (exports.PatchV2WebhooksWebhookIdFilterRequestUnion$ = PatchV2WebhooksWebhookIdFilterRequestUnion$ = {})); function patchV2WebhooksWebhookIdFilterRequestUnionToJSON(patchV2WebhooksWebhookIdFilterRequestUnion) { return JSON.stringify(exports.PatchV2WebhooksWebhookIdFilterRequestUnion$outboundSchema.parse(patchV2WebhooksWebhookIdFilterRequestUnion)); } function patchV2WebhooksWebhookIdFilterRequestUnionFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchV2WebhooksWebhookIdFilterRequestUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2WebhooksWebhookIdFilterRequestUnion' from JSON`); } /** @internal */ exports.PatchV2WebhooksWebhookIdSubscriptionRequest$inboundSchema = z.object({ event_type: exports.PatchV2WebhooksWebhookIdEventTypeRequest$inboundSchema, filter: z.nullable(z.union([ z.lazy(() => exports.PatchV2WebhooksWebhookIdFilterRequest1$inboundSchema), z.lazy(() => exports.PatchV2WebhooksWebhookIdFilterRequest2$inboundSchema), ])), }).transform((v) => { return (0, primitives_js_1.remap)(v, { "event_type": "eventType", }); }); /** @internal */ exports.PatchV2WebhooksWebhookIdSubscriptionRequest$outboundSchema = z.object({ eventType: exports.PatchV2WebhooksWebhookIdEventTypeRequest$outboundSchema, filter: z.nullable(z.union([ z.lazy(() => exports.PatchV2WebhooksWebhookIdFilterRequest1$outboundSchema), z.lazy(() => exports.PatchV2WebhooksWebhookIdFilterRequest2$outboundSchema), ])), }).transform((v) => { return (0, primitives_js_1.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. */ var PatchV2WebhooksWebhookIdSubscriptionRequest$; (function (PatchV2WebhooksWebhookIdSubscriptionRequest$) { /** @deprecated use `PatchV2WebhooksWebhookIdSubscriptionRequest$inboundSchema` instead. */ PatchV2WebhooksWebhookIdSubscriptionRequest$.inboundSchema = exports.PatchV2WebhooksWebhookIdSubscriptionRequest$inboundSchema; /** @deprecated use `PatchV2WebhooksWebhookIdSubscriptionRequest$outboundSchema` instead. */ PatchV2WebhooksWebhookIdSubscriptionRequest$.outboundSchema = exports.PatchV2WebhooksWebhookIdSubscriptionRequest$outboundSchema; })(PatchV2WebhooksWebhookIdSubscriptionRequest$ || (exports.PatchV2WebhooksWebhookIdSubscriptionRequest$ = PatchV2WebhooksWebhookIdSubscriptionRequest$ = {})); function patchV2WebhooksWebhookIdSubscriptionRequestToJSON(patchV2WebhooksWebhookIdSubscriptionRequest) { return JSON.stringify(exports.PatchV2WebhooksWebhookIdSubscriptionRequest$outboundSchema.parse(patchV2WebhooksWebhookIdSubscriptionRequest)); } function patchV2WebhooksWebhookIdSubscriptionRequestFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchV2WebhooksWebhookIdSubscriptionRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2WebhooksWebhookIdSubscriptionRequest' from JSON`); } /** @internal */ exports.PatchV2WebhooksWebhookIdDataRequest$inboundSchema = z.object({ target_url: z.string().optional(), subscriptions: z.array(z.lazy(() => exports.PatchV2WebhooksWebhookIdSubscriptionRequest$inboundSchema)).optional(), }).transform((v) => { return (0, primitives_js_1.remap)(v, { "target_url": "targetUrl", }); }); /** @internal */ exports.PatchV2WebhooksWebhookIdDataRequest$outboundSchema = z.object({ targetUrl: z.string().optional(), subscriptions: z.array(z.lazy(() => exports.PatchV2WebhooksWebhookIdSubscriptionRequest$outboundSchema)).optional(), }).transform((v) => { return (0, primitives_js_1.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. */ var PatchV2WebhooksWebhookIdDataRequest$; (function (PatchV2WebhooksWebhookIdDataRequest$) { /** @deprecated use `PatchV2WebhooksWebhookIdDataRequest$inboundSchema` instead. */ PatchV2WebhooksWebhookIdDataRequest$.inboundSchema = exports.PatchV2WebhooksWebhookIdDataRequest$inboundSchema; /** @deprecated use `PatchV2WebhooksWebhookIdDataRequest$outboundSchema` instead. */ PatchV2WebhooksWebhookIdDataRequest$.outboundSchema = exports.PatchV2WebhooksWebhookIdDataRequest$outboundSchema; })(PatchV2WebhooksWebhookIdDataRequest$ || (exports.PatchV2WebhooksWebhookIdDataRequest$ = PatchV2WebhooksWebhookIdDataRequest$ = {})); function patchV2WebhooksWebhookIdDataRequestToJSON(patchV2WebhooksWebhookIdDataRequest) { return JSON.stringify(exports.PatchV2WebhooksWebhookIdDataRequest$outboundSchema.parse(patchV2WebhooksWebhookIdDataRequest)); } function patchV2WebhooksWebhookIdDataRequestFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchV2WebhooksWebhookIdDataRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2WebhooksWebhookIdDataRequest' from JSON`); } /** @internal */ exports.PatchV2WebhooksWebhookIdRequestBody$inboundSchema = z.object({ data: z.lazy(() => exports.PatchV2WebhooksWebhookIdDataRequest$inboundSchema), }); /** @internal */ exports.PatchV2WebhooksWebhookIdRequestBody$outboundSchema = z.object({ data: z.lazy(() => exports.PatchV2WebhooksWebhookIdDataRequest$outboundSchema), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var PatchV2WebhooksWebhookIdRequestBody$; (function (PatchV2WebhooksWebhookIdRequestBody$) { /** @deprecated use `PatchV2WebhooksWebhookIdRequestBody$inboundSchema` instead. */ PatchV2WebhooksWebhookIdRequestBody$.inboundSchema = exports.PatchV2WebhooksWebhookIdRequestBody$inboundSchema; /** @deprecated use `PatchV2WebhooksWebhookIdRequestBody$outboundSchema` instead. */ PatchV2WebhooksWebhookIdRequestBody$.outboundSchema = exports.PatchV2WebhooksWebhookIdRequestBody$outboundSchema; })(PatchV2WebhooksWebhookIdRequestBody$ || (exports.PatchV2WebhooksWebhookIdRequestBody$ = PatchV2WebhooksWebhookIdRequestBody$ = {})); function patchV2WebhooksWebhookIdRequestBodyToJSON(patchV2WebhooksWebhookIdRequestBody) { return JSON.stringify(exports.PatchV2WebhooksWebhookIdRequestBody$outboundSchema.parse(patchV2WebhooksWebhookIdRequestBody)); } function patchV2WebhooksWebhookIdRequestBodyFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchV2WebhooksWebhookIdRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchV2WebhooksWebhookIdRequestBody' from JSON`); } /** @internal */ exports.PatchV2WebhooksWebhookIdRequest$inboundSchema = z.object({ webhook_id: z.string(), RequestBody: z.lazy(() => exports.PatchV2WebhooksWebhookIdRequestBody$inboundSchema), }).transform((v) => { return (0, primitives_js_1.remap)(v, { "webhook_id":