UNPKG

attio-js

Version:

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

670 lines 42.3 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.GetV2WebhooksWebhookIdFilterUnion$outboundSchema = exports.GetV2WebhooksWebhookIdFilterUnion$inboundSchema = exports.GetV2WebhooksWebhookIdFilter1$ = exports.GetV2WebhooksWebhookIdFilter1$outboundSchema = exports.GetV2WebhooksWebhookIdFilter1$inboundSchema = exports.GetV2WebhooksWebhookIdDollarOrUnion$ = exports.GetV2WebhooksWebhookIdDollarOrUnion$outboundSchema = exports.GetV2WebhooksWebhookIdDollarOrUnion$inboundSchema = exports.GetV2WebhooksWebhookIdDollarOrEquals$ = exports.GetV2WebhooksWebhookIdDollarOrEquals$outboundSchema = exports.GetV2WebhooksWebhookIdDollarOrEquals$inboundSchema = exports.GetV2WebhooksWebhookIdDollarOrOperatorEquals$ = exports.GetV2WebhooksWebhookIdDollarOrOperatorEquals$outboundSchema = exports.GetV2WebhooksWebhookIdDollarOrOperatorEquals$inboundSchema = exports.GetV2WebhooksWebhookIdDollarOrNotEquals$ = exports.GetV2WebhooksWebhookIdDollarOrNotEquals$outboundSchema = exports.GetV2WebhooksWebhookIdDollarOrNotEquals$inboundSchema = exports.GetV2WebhooksWebhookIdDollarOrOperatorNotEquals$ = exports.GetV2WebhooksWebhookIdDollarOrOperatorNotEquals$outboundSchema = exports.GetV2WebhooksWebhookIdDollarOrOperatorNotEquals$inboundSchema = exports.GetV2WebhooksWebhookIdFilter2$ = exports.GetV2WebhooksWebhookIdFilter2$outboundSchema = exports.GetV2WebhooksWebhookIdFilter2$inboundSchema = exports.GetV2WebhooksWebhookIdDollarAndUnion$ = exports.GetV2WebhooksWebhookIdDollarAndUnion$outboundSchema = exports.GetV2WebhooksWebhookIdDollarAndUnion$inboundSchema = exports.GetV2WebhooksWebhookIdDollarAndEquals$ = exports.GetV2WebhooksWebhookIdDollarAndEquals$outboundSchema = exports.GetV2WebhooksWebhookIdDollarAndEquals$inboundSchema = exports.GetV2WebhooksWebhookIdDollarAndOperatorEquals$ = exports.GetV2WebhooksWebhookIdDollarAndOperatorEquals$outboundSchema = exports.GetV2WebhooksWebhookIdDollarAndOperatorEquals$inboundSchema = exports.GetV2WebhooksWebhookIdDollarAndNotEquals$ = exports.GetV2WebhooksWebhookIdDollarAndNotEquals$outboundSchema = exports.GetV2WebhooksWebhookIdDollarAndNotEquals$inboundSchema = exports.GetV2WebhooksWebhookIdDollarAndOperatorNotEquals$ = exports.GetV2WebhooksWebhookIdDollarAndOperatorNotEquals$outboundSchema = exports.GetV2WebhooksWebhookIdDollarAndOperatorNotEquals$inboundSchema = exports.GetV2WebhooksWebhookIdEventType$ = exports.GetV2WebhooksWebhookIdEventType$outboundSchema = exports.GetV2WebhooksWebhookIdEventType$inboundSchema = exports.GetV2WebhooksWebhookIdRequest$ = exports.GetV2WebhooksWebhookIdRequest$outboundSchema = exports.GetV2WebhooksWebhookIdRequest$inboundSchema = exports.GetV2WebhooksWebhookIdStatus = exports.GetV2WebhooksWebhookIdDollarOrOperatorEquals = exports.GetV2WebhooksWebhookIdDollarOrOperatorNotEquals = exports.GetV2WebhooksWebhookIdDollarAndOperatorEquals = exports.GetV2WebhooksWebhookIdDollarAndOperatorNotEquals = exports.GetV2WebhooksWebhookIdEventType = void 0; exports.GetV2WebhooksWebhookIdResponse$ = exports.GetV2WebhooksWebhookIdResponse$outboundSchema = exports.GetV2WebhooksWebhookIdResponse$inboundSchema = exports.GetV2WebhooksWebhookIdData$ = exports.GetV2WebhooksWebhookIdData$outboundSchema = exports.GetV2WebhooksWebhookIdData$inboundSchema = exports.GetV2WebhooksWebhookIdStatus$ = exports.GetV2WebhooksWebhookIdStatus$outboundSchema = exports.GetV2WebhooksWebhookIdStatus$inboundSchema = exports.GetV2WebhooksWebhookIdId$ = exports.GetV2WebhooksWebhookIdId$outboundSchema = exports.GetV2WebhooksWebhookIdId$inboundSchema = exports.GetV2WebhooksWebhookIdSubscription$ = exports.GetV2WebhooksWebhookIdSubscription$outboundSchema = exports.GetV2WebhooksWebhookIdSubscription$inboundSchema = exports.GetV2WebhooksWebhookIdFilterUnion$ = void 0; exports.getV2WebhooksWebhookIdRequestToJSON = getV2WebhooksWebhookIdRequestToJSON; exports.getV2WebhooksWebhookIdRequestFromJSON = getV2WebhooksWebhookIdRequestFromJSON; exports.getV2WebhooksWebhookIdDollarAndNotEqualsToJSON = getV2WebhooksWebhookIdDollarAndNotEqualsToJSON; exports.getV2WebhooksWebhookIdDollarAndNotEqualsFromJSON = getV2WebhooksWebhookIdDollarAndNotEqualsFromJSON; exports.getV2WebhooksWebhookIdDollarAndEqualsToJSON = getV2WebhooksWebhookIdDollarAndEqualsToJSON; exports.getV2WebhooksWebhookIdDollarAndEqualsFromJSON = getV2WebhooksWebhookIdDollarAndEqualsFromJSON; exports.getV2WebhooksWebhookIdDollarAndUnionToJSON = getV2WebhooksWebhookIdDollarAndUnionToJSON; exports.getV2WebhooksWebhookIdDollarAndUnionFromJSON = getV2WebhooksWebhookIdDollarAndUnionFromJSON; exports.getV2WebhooksWebhookIdFilter2ToJSON = getV2WebhooksWebhookIdFilter2ToJSON; exports.getV2WebhooksWebhookIdFilter2FromJSON = getV2WebhooksWebhookIdFilter2FromJSON; exports.getV2WebhooksWebhookIdDollarOrNotEqualsToJSON = getV2WebhooksWebhookIdDollarOrNotEqualsToJSON; exports.getV2WebhooksWebhookIdDollarOrNotEqualsFromJSON = getV2WebhooksWebhookIdDollarOrNotEqualsFromJSON; exports.getV2WebhooksWebhookIdDollarOrEqualsToJSON = getV2WebhooksWebhookIdDollarOrEqualsToJSON; exports.getV2WebhooksWebhookIdDollarOrEqualsFromJSON = getV2WebhooksWebhookIdDollarOrEqualsFromJSON; exports.getV2WebhooksWebhookIdDollarOrUnionToJSON = getV2WebhooksWebhookIdDollarOrUnionToJSON; exports.getV2WebhooksWebhookIdDollarOrUnionFromJSON = getV2WebhooksWebhookIdDollarOrUnionFromJSON; exports.getV2WebhooksWebhookIdFilter1ToJSON = getV2WebhooksWebhookIdFilter1ToJSON; exports.getV2WebhooksWebhookIdFilter1FromJSON = getV2WebhooksWebhookIdFilter1FromJSON; exports.getV2WebhooksWebhookIdFilterUnionToJSON = getV2WebhooksWebhookIdFilterUnionToJSON; exports.getV2WebhooksWebhookIdFilterUnionFromJSON = getV2WebhooksWebhookIdFilterUnionFromJSON; exports.getV2WebhooksWebhookIdSubscriptionToJSON = getV2WebhooksWebhookIdSubscriptionToJSON; exports.getV2WebhooksWebhookIdSubscriptionFromJSON = getV2WebhooksWebhookIdSubscriptionFromJSON; exports.getV2WebhooksWebhookIdIdToJSON = getV2WebhooksWebhookIdIdToJSON; exports.getV2WebhooksWebhookIdIdFromJSON = getV2WebhooksWebhookIdIdFromJSON; exports.getV2WebhooksWebhookIdDataToJSON = getV2WebhooksWebhookIdDataToJSON; exports.getV2WebhooksWebhookIdDataFromJSON = getV2WebhooksWebhookIdDataFromJSON; exports.getV2WebhooksWebhookIdResponseToJSON = getV2WebhooksWebhookIdResponseToJSON; exports.getV2WebhooksWebhookIdResponseFromJSON = getV2WebhooksWebhookIdResponseFromJSON; 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.GetV2WebhooksWebhookIdEventType = { 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.GetV2WebhooksWebhookIdDollarAndOperatorNotEquals = { NotEquals: "not_equals", }; exports.GetV2WebhooksWebhookIdDollarAndOperatorEquals = { Equals: "equals", }; exports.GetV2WebhooksWebhookIdDollarOrOperatorNotEquals = { NotEquals: "not_equals", }; exports.GetV2WebhooksWebhookIdDollarOrOperatorEquals = { 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.GetV2WebhooksWebhookIdStatus = { Active: "active", Degraded: "degraded", Inactive: "inactive", }; /** @internal */ exports.GetV2WebhooksWebhookIdRequest$inboundSchema = z.object({ webhook_id: z.string(), }).transform((v) => { return (0, primitives_js_1.remap)(v, { "webhook_id": "webhookId", }); }); /** @internal */ exports.GetV2WebhooksWebhookIdRequest$outboundSchema = z.object({ webhookId: z.string(), }).transform((v) => { return (0, primitives_js_1.remap)(v, { webhookId: "webhook_id", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var GetV2WebhooksWebhookIdRequest$; (function (GetV2WebhooksWebhookIdRequest$) { /** @deprecated use `GetV2WebhooksWebhookIdRequest$inboundSchema` instead. */ GetV2WebhooksWebhookIdRequest$.inboundSchema = exports.GetV2WebhooksWebhookIdRequest$inboundSchema; /** @deprecated use `GetV2WebhooksWebhookIdRequest$outboundSchema` instead. */ GetV2WebhooksWebhookIdRequest$.outboundSchema = exports.GetV2WebhooksWebhookIdRequest$outboundSchema; })(GetV2WebhooksWebhookIdRequest$ || (exports.GetV2WebhooksWebhookIdRequest$ = GetV2WebhooksWebhookIdRequest$ = {})); function getV2WebhooksWebhookIdRequestToJSON(getV2WebhooksWebhookIdRequest) { return JSON.stringify(exports.GetV2WebhooksWebhookIdRequest$outboundSchema.parse(getV2WebhooksWebhookIdRequest)); } function getV2WebhooksWebhookIdRequestFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2WebhooksWebhookIdRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2WebhooksWebhookIdRequest' from JSON`); } /** @internal */ exports.GetV2WebhooksWebhookIdEventType$inboundSchema = z.nativeEnum(exports.GetV2WebhooksWebhookIdEventType); /** @internal */ exports.GetV2WebhooksWebhookIdEventType$outboundSchema = exports.GetV2WebhooksWebhookIdEventType$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var GetV2WebhooksWebhookIdEventType$; (function (GetV2WebhooksWebhookIdEventType$) { /** @deprecated use `GetV2WebhooksWebhookIdEventType$inboundSchema` instead. */ GetV2WebhooksWebhookIdEventType$.inboundSchema = exports.GetV2WebhooksWebhookIdEventType$inboundSchema; /** @deprecated use `GetV2WebhooksWebhookIdEventType$outboundSchema` instead. */ GetV2WebhooksWebhookIdEventType$.outboundSchema = exports.GetV2WebhooksWebhookIdEventType$outboundSchema; })(GetV2WebhooksWebhookIdEventType$ || (exports.GetV2WebhooksWebhookIdEventType$ = GetV2WebhooksWebhookIdEventType$ = {})); /** @internal */ exports.GetV2WebhooksWebhookIdDollarAndOperatorNotEquals$inboundSchema = z .nativeEnum(exports.GetV2WebhooksWebhookIdDollarAndOperatorNotEquals); /** @internal */ exports.GetV2WebhooksWebhookIdDollarAndOperatorNotEquals$outboundSchema = exports.GetV2WebhooksWebhookIdDollarAndOperatorNotEquals$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var GetV2WebhooksWebhookIdDollarAndOperatorNotEquals$; (function (GetV2WebhooksWebhookIdDollarAndOperatorNotEquals$) { /** @deprecated use `GetV2WebhooksWebhookIdDollarAndOperatorNotEquals$inboundSchema` instead. */ GetV2WebhooksWebhookIdDollarAndOperatorNotEquals$.inboundSchema = exports.GetV2WebhooksWebhookIdDollarAndOperatorNotEquals$inboundSchema; /** @deprecated use `GetV2WebhooksWebhookIdDollarAndOperatorNotEquals$outboundSchema` instead. */ GetV2WebhooksWebhookIdDollarAndOperatorNotEquals$.outboundSchema = exports.GetV2WebhooksWebhookIdDollarAndOperatorNotEquals$outboundSchema; })(GetV2WebhooksWebhookIdDollarAndOperatorNotEquals$ || (exports.GetV2WebhooksWebhookIdDollarAndOperatorNotEquals$ = GetV2WebhooksWebhookIdDollarAndOperatorNotEquals$ = {})); /** @internal */ exports.GetV2WebhooksWebhookIdDollarAndNotEquals$inboundSchema = z.object({ field: z.string(), operator: exports.GetV2WebhooksWebhookIdDollarAndOperatorNotEquals$inboundSchema, value: z.string(), }); /** @internal */ exports.GetV2WebhooksWebhookIdDollarAndNotEquals$outboundSchema = z.object({ field: z.string(), operator: exports.GetV2WebhooksWebhookIdDollarAndOperatorNotEquals$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 GetV2WebhooksWebhookIdDollarAndNotEquals$; (function (GetV2WebhooksWebhookIdDollarAndNotEquals$) { /** @deprecated use `GetV2WebhooksWebhookIdDollarAndNotEquals$inboundSchema` instead. */ GetV2WebhooksWebhookIdDollarAndNotEquals$.inboundSchema = exports.GetV2WebhooksWebhookIdDollarAndNotEquals$inboundSchema; /** @deprecated use `GetV2WebhooksWebhookIdDollarAndNotEquals$outboundSchema` instead. */ GetV2WebhooksWebhookIdDollarAndNotEquals$.outboundSchema = exports.GetV2WebhooksWebhookIdDollarAndNotEquals$outboundSchema; })(GetV2WebhooksWebhookIdDollarAndNotEquals$ || (exports.GetV2WebhooksWebhookIdDollarAndNotEquals$ = GetV2WebhooksWebhookIdDollarAndNotEquals$ = {})); function getV2WebhooksWebhookIdDollarAndNotEqualsToJSON(getV2WebhooksWebhookIdDollarAndNotEquals) { return JSON.stringify(exports.GetV2WebhooksWebhookIdDollarAndNotEquals$outboundSchema.parse(getV2WebhooksWebhookIdDollarAndNotEquals)); } function getV2WebhooksWebhookIdDollarAndNotEqualsFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2WebhooksWebhookIdDollarAndNotEquals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2WebhooksWebhookIdDollarAndNotEquals' from JSON`); } /** @internal */ exports.GetV2WebhooksWebhookIdDollarAndOperatorEquals$inboundSchema = z .nativeEnum(exports.GetV2WebhooksWebhookIdDollarAndOperatorEquals); /** @internal */ exports.GetV2WebhooksWebhookIdDollarAndOperatorEquals$outboundSchema = exports.GetV2WebhooksWebhookIdDollarAndOperatorEquals$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var GetV2WebhooksWebhookIdDollarAndOperatorEquals$; (function (GetV2WebhooksWebhookIdDollarAndOperatorEquals$) { /** @deprecated use `GetV2WebhooksWebhookIdDollarAndOperatorEquals$inboundSchema` instead. */ GetV2WebhooksWebhookIdDollarAndOperatorEquals$.inboundSchema = exports.GetV2WebhooksWebhookIdDollarAndOperatorEquals$inboundSchema; /** @deprecated use `GetV2WebhooksWebhookIdDollarAndOperatorEquals$outboundSchema` instead. */ GetV2WebhooksWebhookIdDollarAndOperatorEquals$.outboundSchema = exports.GetV2WebhooksWebhookIdDollarAndOperatorEquals$outboundSchema; })(GetV2WebhooksWebhookIdDollarAndOperatorEquals$ || (exports.GetV2WebhooksWebhookIdDollarAndOperatorEquals$ = GetV2WebhooksWebhookIdDollarAndOperatorEquals$ = {})); /** @internal */ exports.GetV2WebhooksWebhookIdDollarAndEquals$inboundSchema = z.object({ field: z.string(), operator: exports.GetV2WebhooksWebhookIdDollarAndOperatorEquals$inboundSchema, value: z.string(), }); /** @internal */ exports.GetV2WebhooksWebhookIdDollarAndEquals$outboundSchema = z.object({ field: z.string(), operator: exports.GetV2WebhooksWebhookIdDollarAndOperatorEquals$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 GetV2WebhooksWebhookIdDollarAndEquals$; (function (GetV2WebhooksWebhookIdDollarAndEquals$) { /** @deprecated use `GetV2WebhooksWebhookIdDollarAndEquals$inboundSchema` instead. */ GetV2WebhooksWebhookIdDollarAndEquals$.inboundSchema = exports.GetV2WebhooksWebhookIdDollarAndEquals$inboundSchema; /** @deprecated use `GetV2WebhooksWebhookIdDollarAndEquals$outboundSchema` instead. */ GetV2WebhooksWebhookIdDollarAndEquals$.outboundSchema = exports.GetV2WebhooksWebhookIdDollarAndEquals$outboundSchema; })(GetV2WebhooksWebhookIdDollarAndEquals$ || (exports.GetV2WebhooksWebhookIdDollarAndEquals$ = GetV2WebhooksWebhookIdDollarAndEquals$ = {})); function getV2WebhooksWebhookIdDollarAndEqualsToJSON(getV2WebhooksWebhookIdDollarAndEquals) { return JSON.stringify(exports.GetV2WebhooksWebhookIdDollarAndEquals$outboundSchema.parse(getV2WebhooksWebhookIdDollarAndEquals)); } function getV2WebhooksWebhookIdDollarAndEqualsFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2WebhooksWebhookIdDollarAndEquals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2WebhooksWebhookIdDollarAndEquals' from JSON`); } /** @internal */ exports.GetV2WebhooksWebhookIdDollarAndUnion$inboundSchema = z.union([ z.lazy(() => exports.GetV2WebhooksWebhookIdDollarAndEquals$inboundSchema), z.lazy(() => exports.GetV2WebhooksWebhookIdDollarAndNotEquals$inboundSchema), ]); /** @internal */ exports.GetV2WebhooksWebhookIdDollarAndUnion$outboundSchema = z.union([ z.lazy(() => exports.GetV2WebhooksWebhookIdDollarAndEquals$outboundSchema), z.lazy(() => exports.GetV2WebhooksWebhookIdDollarAndNotEquals$outboundSchema), ]); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var GetV2WebhooksWebhookIdDollarAndUnion$; (function (GetV2WebhooksWebhookIdDollarAndUnion$) { /** @deprecated use `GetV2WebhooksWebhookIdDollarAndUnion$inboundSchema` instead. */ GetV2WebhooksWebhookIdDollarAndUnion$.inboundSchema = exports.GetV2WebhooksWebhookIdDollarAndUnion$inboundSchema; /** @deprecated use `GetV2WebhooksWebhookIdDollarAndUnion$outboundSchema` instead. */ GetV2WebhooksWebhookIdDollarAndUnion$.outboundSchema = exports.GetV2WebhooksWebhookIdDollarAndUnion$outboundSchema; })(GetV2WebhooksWebhookIdDollarAndUnion$ || (exports.GetV2WebhooksWebhookIdDollarAndUnion$ = GetV2WebhooksWebhookIdDollarAndUnion$ = {})); function getV2WebhooksWebhookIdDollarAndUnionToJSON(getV2WebhooksWebhookIdDollarAndUnion) { return JSON.stringify(exports.GetV2WebhooksWebhookIdDollarAndUnion$outboundSchema.parse(getV2WebhooksWebhookIdDollarAndUnion)); } function getV2WebhooksWebhookIdDollarAndUnionFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2WebhooksWebhookIdDollarAndUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2WebhooksWebhookIdDollarAndUnion' from JSON`); } /** @internal */ exports.GetV2WebhooksWebhookIdFilter2$inboundSchema = z.object({ $and: z.array(z.union([ z.lazy(() => exports.GetV2WebhooksWebhookIdDollarAndEquals$inboundSchema), z.lazy(() => exports.GetV2WebhooksWebhookIdDollarAndNotEquals$inboundSchema), ])), }).transform((v) => { return (0, primitives_js_1.remap)(v, { "$and": "dollarAnd", }); }); /** @internal */ exports.GetV2WebhooksWebhookIdFilter2$outboundSchema = z.object({ dollarAnd: z.array(z.union([ z.lazy(() => exports.GetV2WebhooksWebhookIdDollarAndEquals$outboundSchema), z.lazy(() => exports.GetV2WebhooksWebhookIdDollarAndNotEquals$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 GetV2WebhooksWebhookIdFilter2$; (function (GetV2WebhooksWebhookIdFilter2$) { /** @deprecated use `GetV2WebhooksWebhookIdFilter2$inboundSchema` instead. */ GetV2WebhooksWebhookIdFilter2$.inboundSchema = exports.GetV2WebhooksWebhookIdFilter2$inboundSchema; /** @deprecated use `GetV2WebhooksWebhookIdFilter2$outboundSchema` instead. */ GetV2WebhooksWebhookIdFilter2$.outboundSchema = exports.GetV2WebhooksWebhookIdFilter2$outboundSchema; })(GetV2WebhooksWebhookIdFilter2$ || (exports.GetV2WebhooksWebhookIdFilter2$ = GetV2WebhooksWebhookIdFilter2$ = {})); function getV2WebhooksWebhookIdFilter2ToJSON(getV2WebhooksWebhookIdFilter2) { return JSON.stringify(exports.GetV2WebhooksWebhookIdFilter2$outboundSchema.parse(getV2WebhooksWebhookIdFilter2)); } function getV2WebhooksWebhookIdFilter2FromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2WebhooksWebhookIdFilter2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2WebhooksWebhookIdFilter2' from JSON`); } /** @internal */ exports.GetV2WebhooksWebhookIdDollarOrOperatorNotEquals$inboundSchema = z .nativeEnum(exports.GetV2WebhooksWebhookIdDollarOrOperatorNotEquals); /** @internal */ exports.GetV2WebhooksWebhookIdDollarOrOperatorNotEquals$outboundSchema = exports.GetV2WebhooksWebhookIdDollarOrOperatorNotEquals$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var GetV2WebhooksWebhookIdDollarOrOperatorNotEquals$; (function (GetV2WebhooksWebhookIdDollarOrOperatorNotEquals$) { /** @deprecated use `GetV2WebhooksWebhookIdDollarOrOperatorNotEquals$inboundSchema` instead. */ GetV2WebhooksWebhookIdDollarOrOperatorNotEquals$.inboundSchema = exports.GetV2WebhooksWebhookIdDollarOrOperatorNotEquals$inboundSchema; /** @deprecated use `GetV2WebhooksWebhookIdDollarOrOperatorNotEquals$outboundSchema` instead. */ GetV2WebhooksWebhookIdDollarOrOperatorNotEquals$.outboundSchema = exports.GetV2WebhooksWebhookIdDollarOrOperatorNotEquals$outboundSchema; })(GetV2WebhooksWebhookIdDollarOrOperatorNotEquals$ || (exports.GetV2WebhooksWebhookIdDollarOrOperatorNotEquals$ = GetV2WebhooksWebhookIdDollarOrOperatorNotEquals$ = {})); /** @internal */ exports.GetV2WebhooksWebhookIdDollarOrNotEquals$inboundSchema = z.object({ field: z.string(), operator: exports.GetV2WebhooksWebhookIdDollarOrOperatorNotEquals$inboundSchema, value: z.string(), }); /** @internal */ exports.GetV2WebhooksWebhookIdDollarOrNotEquals$outboundSchema = z.object({ field: z.string(), operator: exports.GetV2WebhooksWebhookIdDollarOrOperatorNotEquals$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 GetV2WebhooksWebhookIdDollarOrNotEquals$; (function (GetV2WebhooksWebhookIdDollarOrNotEquals$) { /** @deprecated use `GetV2WebhooksWebhookIdDollarOrNotEquals$inboundSchema` instead. */ GetV2WebhooksWebhookIdDollarOrNotEquals$.inboundSchema = exports.GetV2WebhooksWebhookIdDollarOrNotEquals$inboundSchema; /** @deprecated use `GetV2WebhooksWebhookIdDollarOrNotEquals$outboundSchema` instead. */ GetV2WebhooksWebhookIdDollarOrNotEquals$.outboundSchema = exports.GetV2WebhooksWebhookIdDollarOrNotEquals$outboundSchema; })(GetV2WebhooksWebhookIdDollarOrNotEquals$ || (exports.GetV2WebhooksWebhookIdDollarOrNotEquals$ = GetV2WebhooksWebhookIdDollarOrNotEquals$ = {})); function getV2WebhooksWebhookIdDollarOrNotEqualsToJSON(getV2WebhooksWebhookIdDollarOrNotEquals) { return JSON.stringify(exports.GetV2WebhooksWebhookIdDollarOrNotEquals$outboundSchema.parse(getV2WebhooksWebhookIdDollarOrNotEquals)); } function getV2WebhooksWebhookIdDollarOrNotEqualsFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2WebhooksWebhookIdDollarOrNotEquals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2WebhooksWebhookIdDollarOrNotEquals' from JSON`); } /** @internal */ exports.GetV2WebhooksWebhookIdDollarOrOperatorEquals$inboundSchema = z .nativeEnum(exports.GetV2WebhooksWebhookIdDollarOrOperatorEquals); /** @internal */ exports.GetV2WebhooksWebhookIdDollarOrOperatorEquals$outboundSchema = exports.GetV2WebhooksWebhookIdDollarOrOperatorEquals$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var GetV2WebhooksWebhookIdDollarOrOperatorEquals$; (function (GetV2WebhooksWebhookIdDollarOrOperatorEquals$) { /** @deprecated use `GetV2WebhooksWebhookIdDollarOrOperatorEquals$inboundSchema` instead. */ GetV2WebhooksWebhookIdDollarOrOperatorEquals$.inboundSchema = exports.GetV2WebhooksWebhookIdDollarOrOperatorEquals$inboundSchema; /** @deprecated use `GetV2WebhooksWebhookIdDollarOrOperatorEquals$outboundSchema` instead. */ GetV2WebhooksWebhookIdDollarOrOperatorEquals$.outboundSchema = exports.GetV2WebhooksWebhookIdDollarOrOperatorEquals$outboundSchema; })(GetV2WebhooksWebhookIdDollarOrOperatorEquals$ || (exports.GetV2WebhooksWebhookIdDollarOrOperatorEquals$ = GetV2WebhooksWebhookIdDollarOrOperatorEquals$ = {})); /** @internal */ exports.GetV2WebhooksWebhookIdDollarOrEquals$inboundSchema = z.object({ field: z.string(), operator: exports.GetV2WebhooksWebhookIdDollarOrOperatorEquals$inboundSchema, value: z.string(), }); /** @internal */ exports.GetV2WebhooksWebhookIdDollarOrEquals$outboundSchema = z.object({ field: z.string(), operator: exports.GetV2WebhooksWebhookIdDollarOrOperatorEquals$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 GetV2WebhooksWebhookIdDollarOrEquals$; (function (GetV2WebhooksWebhookIdDollarOrEquals$) { /** @deprecated use `GetV2WebhooksWebhookIdDollarOrEquals$inboundSchema` instead. */ GetV2WebhooksWebhookIdDollarOrEquals$.inboundSchema = exports.GetV2WebhooksWebhookIdDollarOrEquals$inboundSchema; /** @deprecated use `GetV2WebhooksWebhookIdDollarOrEquals$outboundSchema` instead. */ GetV2WebhooksWebhookIdDollarOrEquals$.outboundSchema = exports.GetV2WebhooksWebhookIdDollarOrEquals$outboundSchema; })(GetV2WebhooksWebhookIdDollarOrEquals$ || (exports.GetV2WebhooksWebhookIdDollarOrEquals$ = GetV2WebhooksWebhookIdDollarOrEquals$ = {})); function getV2WebhooksWebhookIdDollarOrEqualsToJSON(getV2WebhooksWebhookIdDollarOrEquals) { return JSON.stringify(exports.GetV2WebhooksWebhookIdDollarOrEquals$outboundSchema.parse(getV2WebhooksWebhookIdDollarOrEquals)); } function getV2WebhooksWebhookIdDollarOrEqualsFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2WebhooksWebhookIdDollarOrEquals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2WebhooksWebhookIdDollarOrEquals' from JSON`); } /** @internal */ exports.GetV2WebhooksWebhookIdDollarOrUnion$inboundSchema = z.union([ z.lazy(() => exports.GetV2WebhooksWebhookIdDollarOrEquals$inboundSchema), z.lazy(() => exports.GetV2WebhooksWebhookIdDollarOrNotEquals$inboundSchema), ]); /** @internal */ exports.GetV2WebhooksWebhookIdDollarOrUnion$outboundSchema = z.union([ z.lazy(() => exports.GetV2WebhooksWebhookIdDollarOrEquals$outboundSchema), z.lazy(() => exports.GetV2WebhooksWebhookIdDollarOrNotEquals$outboundSchema), ]); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var GetV2WebhooksWebhookIdDollarOrUnion$; (function (GetV2WebhooksWebhookIdDollarOrUnion$) { /** @deprecated use `GetV2WebhooksWebhookIdDollarOrUnion$inboundSchema` instead. */ GetV2WebhooksWebhookIdDollarOrUnion$.inboundSchema = exports.GetV2WebhooksWebhookIdDollarOrUnion$inboundSchema; /** @deprecated use `GetV2WebhooksWebhookIdDollarOrUnion$outboundSchema` instead. */ GetV2WebhooksWebhookIdDollarOrUnion$.outboundSchema = exports.GetV2WebhooksWebhookIdDollarOrUnion$outboundSchema; })(GetV2WebhooksWebhookIdDollarOrUnion$ || (exports.GetV2WebhooksWebhookIdDollarOrUnion$ = GetV2WebhooksWebhookIdDollarOrUnion$ = {})); function getV2WebhooksWebhookIdDollarOrUnionToJSON(getV2WebhooksWebhookIdDollarOrUnion) { return JSON.stringify(exports.GetV2WebhooksWebhookIdDollarOrUnion$outboundSchema.parse(getV2WebhooksWebhookIdDollarOrUnion)); } function getV2WebhooksWebhookIdDollarOrUnionFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2WebhooksWebhookIdDollarOrUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2WebhooksWebhookIdDollarOrUnion' from JSON`); } /** @internal */ exports.GetV2WebhooksWebhookIdFilter1$inboundSchema = z.object({ $or: z.array(z.union([ z.lazy(() => exports.GetV2WebhooksWebhookIdDollarOrEquals$inboundSchema), z.lazy(() => exports.GetV2WebhooksWebhookIdDollarOrNotEquals$inboundSchema), ])), }).transform((v) => { return (0, primitives_js_1.remap)(v, { "$or": "dollarOr", }); }); /** @internal */ exports.GetV2WebhooksWebhookIdFilter1$outboundSchema = z.object({ dollarOr: z.array(z.union([ z.lazy(() => exports.GetV2WebhooksWebhookIdDollarOrEquals$outboundSchema), z.lazy(() => exports.GetV2WebhooksWebhookIdDollarOrNotEquals$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 GetV2WebhooksWebhookIdFilter1$; (function (GetV2WebhooksWebhookIdFilter1$) { /** @deprecated use `GetV2WebhooksWebhookIdFilter1$inboundSchema` instead. */ GetV2WebhooksWebhookIdFilter1$.inboundSchema = exports.GetV2WebhooksWebhookIdFilter1$inboundSchema; /** @deprecated use `GetV2WebhooksWebhookIdFilter1$outboundSchema` instead. */ GetV2WebhooksWebhookIdFilter1$.outboundSchema = exports.GetV2WebhooksWebhookIdFilter1$outboundSchema; })(GetV2WebhooksWebhookIdFilter1$ || (exports.GetV2WebhooksWebhookIdFilter1$ = GetV2WebhooksWebhookIdFilter1$ = {})); function getV2WebhooksWebhookIdFilter1ToJSON(getV2WebhooksWebhookIdFilter1) { return JSON.stringify(exports.GetV2WebhooksWebhookIdFilter1$outboundSchema.parse(getV2WebhooksWebhookIdFilter1)); } function getV2WebhooksWebhookIdFilter1FromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2WebhooksWebhookIdFilter1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2WebhooksWebhookIdFilter1' from JSON`); } /** @internal */ exports.GetV2WebhooksWebhookIdFilterUnion$inboundSchema = z.union([ z.lazy(() => exports.GetV2WebhooksWebhookIdFilter1$inboundSchema), z.lazy(() => exports.GetV2WebhooksWebhookIdFilter2$inboundSchema), ]); /** @internal */ exports.GetV2WebhooksWebhookIdFilterUnion$outboundSchema = z.union([ z.lazy(() => exports.GetV2WebhooksWebhookIdFilter1$outboundSchema), z.lazy(() => exports.GetV2WebhooksWebhookIdFilter2$outboundSchema), ]); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var GetV2WebhooksWebhookIdFilterUnion$; (function (GetV2WebhooksWebhookIdFilterUnion$) { /** @deprecated use `GetV2WebhooksWebhookIdFilterUnion$inboundSchema` instead. */ GetV2WebhooksWebhookIdFilterUnion$.inboundSchema = exports.GetV2WebhooksWebhookIdFilterUnion$inboundSchema; /** @deprecated use `GetV2WebhooksWebhookIdFilterUnion$outboundSchema` instead. */ GetV2WebhooksWebhookIdFilterUnion$.outboundSchema = exports.GetV2WebhooksWebhookIdFilterUnion$outboundSchema; })(GetV2WebhooksWebhookIdFilterUnion$ || (exports.GetV2WebhooksWebhookIdFilterUnion$ = GetV2WebhooksWebhookIdFilterUnion$ = {})); function getV2WebhooksWebhookIdFilterUnionToJSON(getV2WebhooksWebhookIdFilterUnion) { return JSON.stringify(exports.GetV2WebhooksWebhookIdFilterUnion$outboundSchema.parse(getV2WebhooksWebhookIdFilterUnion)); } function getV2WebhooksWebhookIdFilterUnionFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2WebhooksWebhookIdFilterUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2WebhooksWebhookIdFilterUnion' from JSON`); } /** @internal */ exports.GetV2WebhooksWebhookIdSubscription$inboundSchema = z.object({ event_type: exports.GetV2WebhooksWebhookIdEventType$inboundSchema, filter: z.nullable(z.union([ z.lazy(() => exports.GetV2WebhooksWebhookIdFilter1$inboundSchema), z.lazy(() => exports.GetV2WebhooksWebhookIdFilter2$inboundSchema), ])), }).transform((v) => { return (0, primitives_js_1.remap)(v, { "event_type": "eventType", }); }); /** @internal */ exports.GetV2WebhooksWebhookIdSubscription$outboundSchema = z.object({ eventType: exports.GetV2WebhooksWebhookIdEventType$outboundSchema, filter: z.nullable(z.union([ z.lazy(() => exports.GetV2WebhooksWebhookIdFilter1$outboundSchema), z.lazy(() => exports.GetV2WebhooksWebhookIdFilter2$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 GetV2WebhooksWebhookIdSubscription$; (function (GetV2WebhooksWebhookIdSubscription$) { /** @deprecated use `GetV2WebhooksWebhookIdSubscription$inboundSchema` instead. */ GetV2WebhooksWebhookIdSubscription$.inboundSchema = exports.GetV2WebhooksWebhookIdSubscription$inboundSchema; /** @deprecated use `GetV2WebhooksWebhookIdSubscription$outboundSchema` instead. */ GetV2WebhooksWebhookIdSubscription$.outboundSchema = exports.GetV2WebhooksWebhookIdSubscription$outboundSchema; })(GetV2WebhooksWebhookIdSubscription$ || (exports.GetV2WebhooksWebhookIdSubscription$ = GetV2WebhooksWebhookIdSubscription$ = {})); function getV2WebhooksWebhookIdSubscriptionToJSON(getV2WebhooksWebhookIdSubscription) { return JSON.stringify(exports.GetV2WebhooksWebhookIdSubscription$outboundSchema.parse(getV2WebhooksWebhookIdSubscription)); } function getV2WebhooksWebhookIdSubscriptionFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2WebhooksWebhookIdSubscription$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2WebhooksWebhookIdSubscription' from JSON`); } /** @internal */ exports.GetV2WebhooksWebhookIdId$inboundSchema = z.object({ workspace_id: z.string(), webhook_id: z.string(), }).transform((v) => { return (0, primitives_js_1.remap)(v, { "workspace_id": "workspaceId", "webhook_id": "webhookId", }); }); /** @internal */ exports.GetV2WebhooksWebhookIdId$outboundSchema = z.object({ workspaceId: z.string(), webhookId: z.string(), }).transform((v) => { return (0, primitives_js_1.remap)(v, { workspaceId: "workspace_id", webhookId: "webhook_id", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var GetV2WebhooksWebhookIdId$; (function (GetV2WebhooksWebhookIdId$) { /** @deprecated use `GetV2WebhooksWebhookIdId$inboundSchema` instead. */ GetV2WebhooksWebhookIdId$.inboundSchema = exports.GetV2WebhooksWebhookIdId$inboundSchema; /** @deprecated use `GetV2WebhooksWebhookIdId$outboundSchema` instead. */ GetV2WebhooksWebhookIdId$.outboundSchema = exports.GetV2WebhooksWebhookIdId$outboundSchema; })(GetV2WebhooksWebhookIdId$ || (exports.GetV2WebhooksWebhookIdId$ = GetV2WebhooksWebhookIdId$ = {})); function getV2WebhooksWebhookIdIdToJSON(getV2WebhooksWebhookIdId) { return JSON.stringify(exports.GetV2WebhooksWebhookIdId$outboundSchema.parse(getV2WebhooksWebhookIdId)); } function getV2WebhooksWebhookIdIdFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2WebhooksWebhookIdId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2WebhooksWebhookIdId' from JSON`); } /** @internal */ exports.GetV2WebhooksWebhookIdStatus$inboundSchema = z.nativeEnum(exports.GetV2WebhooksWebhookIdStatus); /** @internal */ exports.GetV2WebhooksWebhookIdStatus$outboundSchema = exports.GetV2WebhooksWebhookIdStatus$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var GetV2WebhooksWebhookIdStatus$; (function (GetV2WebhooksWebhookIdStatus$) { /** @deprecated use `GetV2WebhooksWebhookIdStatus$inboundSchema` instead. */ GetV2WebhooksWebhookIdStatus$.inboundSchema = exports.GetV2WebhooksWebhookIdStatus$inboundSchema; /** @deprecated use `GetV2WebhooksWebhookIdStatus$outboundSchema` instead. */ GetV2WebhooksWebhookIdStatus$.outboundSchema = exports.GetV2WebhooksWebhookIdStatus$outboundSchema; })(GetV2WebhooksWebhookIdStatus$ || (exports.GetV2WebhooksWebhookIdStatus$ = GetV2WebhooksWebhookIdStatus$ = {})); /** @internal */ exports.GetV2WebhooksWebhookIdData$inboundSchema = z.object({ target_url: z.string(), subscriptions: z.array(z.lazy(() => exports.GetV2WebhooksWebhookIdSubscription$inboundSchema)), id: z.lazy(() => exports.GetV2WebhooksWebhookIdId$inboundSchema), status: exports.GetV2WebhooksWebhookIdStatus$inboundSchema, created_at: z.string(), }).transform((v) => { return (0, primitives_js_1.remap)(v, { "target_url": "targetUrl", "created_at": "createdAt", }); }); /** @internal */ exports.GetV2WebhooksWebhookIdData$outboundSchema = z.object({ targetUrl: z.string(), subscriptions: z.array(z.lazy(() => exports.GetV2WebhooksWebhookIdSubscription$outboundSchema)), id: z.lazy(() => exports.GetV2WebhooksWebhookIdId$outboundSchema), status: exports.GetV2WebhooksWebhookIdStatus$outboundSchema, createdAt: z.string(), }).transform((v) => { return (0, primitives_js_1.remap)(v, { targetUrl: "target_url", createdAt: "created_at", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var GetV2WebhooksWebhookIdData$; (function (GetV2WebhooksWebhookIdData$) { /** @deprecated use `GetV2WebhooksWebhookIdData$inboundSchema` instead. */ GetV2WebhooksWebhookIdData$.inboundSchema = exports.GetV2WebhooksWebhookIdData$inboundSchema; /** @deprecated use `GetV2WebhooksWebhookIdData$outboundSchema` instead. */ GetV2WebhooksWebhookIdData$.outboundSchema = exports.GetV2WebhooksWebhookIdData$outboundSchema; })(GetV2WebhooksWebhookIdData$ || (exports.GetV2WebhooksWebhookIdData$ = GetV2WebhooksWebhookIdData$ = {})); function getV2WebhooksWebhookIdDataToJSON(getV2WebhooksWebhookIdData) { return JSON.stringify(exports.GetV2WebhooksWebhookIdData$outboundSchema.parse(getV2WebhooksWebhookIdData)); } function getV2WebhooksWebhookIdDataFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2WebhooksWebhookIdData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2WebhooksWebhookIdData' from JSON`); } /** @internal */ exports.GetV2WebhooksWebhookIdResponse$inboundSchema = z.object({ data: z.lazy(() => exports.GetV2WebhooksWebhookIdData$inboundSchema), }); /** @internal */ exports.GetV2WebhooksWebhookIdResponse$outboundSchema = z.object({ data: z.lazy(() => exports.GetV2WebhooksWebhookIdData$outboundSchema), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ var GetV2WebhooksWebhookIdResponse$; (function (GetV2WebhooksWebhookIdResponse$) { /** @deprecated use `GetV2WebhooksWebhookIdResponse$inboundSchema` instead. */ GetV2WebhooksWebhookIdResponse$.inboundSchema = exports.GetV2WebhooksWebhookIdResponse$inboundSchema; /** @deprecated use `GetV2WebhooksWebhookIdResponse$outboundSchema` instead. */ GetV2WebhooksWebhookIdResponse$.outboundSchema = exports.GetV2WebhooksWebhookIdResponse$outboundSchema; })(GetV2WebhooksWebhookIdResponse$ || (exports.GetV2WebhooksWebhookIdResponse$ = GetV2WebhooksWebhookIdResponse$ = {})); function getV2WebhooksWebhookIdResponseToJSON(getV2WebhooksWebhookIdResponse) { return JSON.stringify(exports.GetV2WebhooksWebhookIdResponse$outboundSchema.parse(getV2WebhooksWebhookIdResponse)); } function getV2WebhooksWebhookIdResponseFromJSON(jsonString) { return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2WebhooksWebhookIdResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2WebhooksWebhookIdResponse' from JSON`); } //# sourceMappingURL=getv2webhookswebhookid.js.map