UNPKG

attio-js

Version:

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

1,654 lines 55.8 kB
/* * 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"; /** * The ISO 3166-1 alpha-2 country code representing the country that this phone number belongs to. Optional if `original_phone_number` includes a country code prefix. */ export const InputValueCountryCode2 = { Af: "AF", Ax: "AX", Al: "AL", Dz: "DZ", As: "AS", Ad: "AD", Ao: "AO", Ai: "AI", Aq: "AQ", Ag: "AG", Ar: "AR", Am: "AM", Aw: "AW", Au: "AU", At: "AT", Az: "AZ", Bs: "BS", Bh: "BH", Bd: "BD", Bb: "BB", By: "BY", Be: "BE", Bz: "BZ", Bj: "BJ", Bm: "BM", Bt: "BT", Bo: "BO", Ba: "BA", Bw: "BW", Bv: "BV", Br: "BR", Io: "IO", Bn: "BN", Bg: "BG", Bf: "BF", Bi: "BI", Kh: "KH", Cm: "CM", Ca: "CA", Cv: "CV", Ky: "KY", Cf: "CF", Td: "TD", Cl: "CL", Cn: "CN", Cx: "CX", Cc: "CC", Co: "CO", Km: "KM", Cg: "CG", Cd: "CD", Ck: "CK", Cr: "CR", Ci: "CI", Hr: "HR", Cu: "CU", Cw: "CW", Cy: "CY", Cz: "CZ", Dk: "DK", Dj: "DJ", Dm: "DM", Do: "DO", Ec: "EC", Eg: "EG", Sv: "SV", Gq: "GQ", Er: "ER", Ee: "EE", Et: "ET", Fk: "FK", Fo: "FO", Fj: "FJ", Fi: "FI", Fr: "FR", Gf: "GF", Pf: "PF", Tf: "TF", Ga: "GA", Gm: "GM", Ge: "GE", De: "DE", Gh: "GH", Gi: "GI", Gr: "GR", Gl: "GL", Gd: "GD", Gp: "GP", Gu: "GU", Gt: "GT", Gg: "GG", Gn: "GN", Gw: "GW", Gy: "GY", Ht: "HT", Hm: "HM", Va: "VA", Hn: "HN", Hk: "HK", Hu: "HU", Is: "IS", In: "IN", Id: "ID", Ir: "IR", Iq: "IQ", Ie: "IE", Im: "IM", Il: "IL", It: "IT", Jm: "JM", Jp: "JP", Je: "JE", Jo: "JO", Kz: "KZ", Ke: "KE", Ki: "KI", Kr: "KR", Kw: "KW", Kg: "KG", La: "LA", Lv: "LV", Lb: "LB", Ls: "LS", Lr: "LR", Ly: "LY", Li: "LI", Lt: "LT", Lu: "LU", Mo: "MO", Mk: "MK", Mg: "MG", Mw: "MW", My: "MY", Mv: "MV", Ml: "ML", Mt: "MT", Mh: "MH", Mq: "MQ", Mr: "MR", Mu: "MU", Yt: "YT", Mx: "MX", Fm: "FM", Md: "MD", Mc: "MC", Mn: "MN", Me: "ME", Ms: "MS", Ma: "MA", Mz: "MZ", Mm: "MM", Na: "NA", Nr: "NR", Np: "NP", Nl: "NL", An: "AN", Nc: "NC", Nz: "NZ", Ni: "NI", Ne: "NE", Ng: "NG", Nu: "NU", Nf: "NF", Mp: "MP", No: "NO", Om: "OM", Pk: "PK", Pw: "PW", Ps: "PS", Pa: "PA", Pg: "PG", Py: "PY", Pe: "PE", Ph: "PH", Pn: "PN", Pl: "PL", Pt: "PT", Pr: "PR", Qa: "QA", Re: "RE", Ro: "RO", Ru: "RU", Rw: "RW", Bl: "BL", Sh: "SH", Kn: "KN", Lc: "LC", Mf: "MF", Pm: "PM", Vc: "VC", Ws: "WS", Sm: "SM", St: "ST", Sa: "SA", Sn: "SN", Ss: "SS", Rs: "RS", Sc: "SC", Sl: "SL", Sg: "SG", Sk: "SK", Si: "SI", Sb: "SB", So: "SO", Za: "ZA", Gs: "GS", Es: "ES", Lk: "LK", Sd: "SD", Sr: "SR", Sj: "SJ", Sz: "SZ", Se: "SE", Ch: "CH", Sy: "SY", Tw: "TW", Tj: "TJ", Tz: "TZ", Th: "TH", Tl: "TL", Tg: "TG", Tk: "TK", To: "TO", Tt: "TT", Tn: "TN", Tr: "TR", Tm: "TM", Tc: "TC", Tv: "TV", Ug: "UG", Ua: "UA", Ae: "AE", Gb: "GB", Us: "US", Um: "UM", Uy: "UY", Uz: "UZ", Vu: "VU", Ve: "VE", Vn: "VN", Vg: "VG", Vi: "VI", Wf: "WF", Eh: "EH", Ye: "YE", Zm: "ZM", Zw: "ZW", }; /** * The ISO 3166-1 alpha-2 country code for the country this location is in. */ export const InputValueCountryCode1 = { Af: "AF", Ax: "AX", Al: "AL", Dz: "DZ", As: "AS", Ad: "AD", Ao: "AO", Ai: "AI", Aq: "AQ", Ag: "AG", Ar: "AR", Am: "AM", Aw: "AW", Au: "AU", At: "AT", Az: "AZ", Bs: "BS", Bh: "BH", Bd: "BD", Bb: "BB", By: "BY", Be: "BE", Bz: "BZ", Bj: "BJ", Bm: "BM", Bt: "BT", Bo: "BO", Ba: "BA", Bw: "BW", Bv: "BV", Br: "BR", Io: "IO", Bn: "BN", Bg: "BG", Bf: "BF", Bi: "BI", Kh: "KH", Cm: "CM", Ca: "CA", Cv: "CV", Ky: "KY", Cf: "CF", Td: "TD", Cl: "CL", Cn: "CN", Cx: "CX", Cc: "CC", Co: "CO", Km: "KM", Cg: "CG", Cd: "CD", Ck: "CK", Cr: "CR", Ci: "CI", Hr: "HR", Cu: "CU", Cw: "CW", Cy: "CY", Cz: "CZ", Dk: "DK", Dj: "DJ", Dm: "DM", Do: "DO", Ec: "EC", Eg: "EG", Sv: "SV", Gq: "GQ", Er: "ER", Ee: "EE", Et: "ET", Fk: "FK", Fo: "FO", Fj: "FJ", Fi: "FI", Fr: "FR", Gf: "GF", Pf: "PF", Tf: "TF", Ga: "GA", Gm: "GM", Ge: "GE", De: "DE", Gh: "GH", Gi: "GI", Gr: "GR", Gl: "GL", Gd: "GD", Gp: "GP", Gu: "GU", Gt: "GT", Gg: "GG", Gn: "GN", Gw: "GW", Gy: "GY", Ht: "HT", Hm: "HM", Va: "VA", Hn: "HN", Hk: "HK", Hu: "HU", Is: "IS", In: "IN", Id: "ID", Ir: "IR", Iq: "IQ", Ie: "IE", Im: "IM", Il: "IL", It: "IT", Jm: "JM", Jp: "JP", Je: "JE", Jo: "JO", Kz: "KZ", Ke: "KE", Ki: "KI", Kr: "KR", Kw: "KW", Kg: "KG", La: "LA", Lv: "LV", Lb: "LB", Ls: "LS", Lr: "LR", Ly: "LY", Li: "LI", Lt: "LT", Lu: "LU", Mo: "MO", Mk: "MK", Mg: "MG", Mw: "MW", My: "MY", Mv: "MV", Ml: "ML", Mt: "MT", Mh: "MH", Mq: "MQ", Mr: "MR", Mu: "MU", Yt: "YT", Mx: "MX", Fm: "FM", Md: "MD", Mc: "MC", Mn: "MN", Me: "ME", Ms: "MS", Ma: "MA", Mz: "MZ", Mm: "MM", Na: "NA", Nr: "NR", Np: "NP", Nl: "NL", An: "AN", Nc: "NC", Nz: "NZ", Ni: "NI", Ne: "NE", Ng: "NG", Nu: "NU", Nf: "NF", Mp: "MP", No: "NO", Om: "OM", Pk: "PK", Pw: "PW", Ps: "PS", Pa: "PA", Pg: "PG", Py: "PY", Pe: "PE", Ph: "PH", Pn: "PN", Pl: "PL", Pt: "PT", Pr: "PR", Qa: "QA", Re: "RE", Ro: "RO", Ru: "RU", Rw: "RW", Bl: "BL", Sh: "SH", Kn: "KN", Lc: "LC", Mf: "MF", Pm: "PM", Vc: "VC", Ws: "WS", Sm: "SM", St: "ST", Sa: "SA", Sn: "SN", Ss: "SS", Rs: "RS", Sc: "SC", Sl: "SL", Sg: "SG", Sk: "SK", Si: "SI", Sb: "SB", So: "SO", Za: "ZA", Gs: "GS", Es: "ES", Lk: "LK", Sd: "SD", Sr: "SR", Sj: "SJ", Sz: "SZ", Se: "SE", Ch: "CH", Sy: "SY", Tw: "TW", Tj: "TJ", Tz: "TZ", Th: "TH", Tl: "TL", Tg: "TG", Tk: "TK", To: "TO", Tt: "TT", Tn: "TN", Tr: "TR", Tm: "TM", Tc: "TC", Tv: "TV", Ug: "UG", Ua: "UA", Ae: "AE", Gb: "GB", Us: "US", Um: "UM", Uy: "UY", Uz: "UZ", Vu: "VU", Ve: "VE", Vn: "VN", Vg: "VG", Vi: "VI", Wf: "WF", Eh: "EH", Ye: "YE", Zm: "ZM", Zw: "ZW", }; /** * The type of interaction e.g. calendar or email. */ export const InputValueInteractionType = { CalendarEvent: "calendar-event", Call: "call", ChatThread: "chat-thread", Email: "email", InPersonMeeting: "in-person-meeting", Meeting: "meeting", }; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ export const InputValueType = { ApiToken: "api-token", WorkspaceMember: "workspace-member", System: "system", App: "app", }; /** * The ISO 3166-1 alpha-2 country code representing the country that this phone number belongs to. */ export const SlugOrIdOfMatchingAttributeCountryCode = { Af: "AF", Ax: "AX", Al: "AL", Dz: "DZ", As: "AS", Ad: "AD", Ao: "AO", Ai: "AI", Aq: "AQ", Ag: "AG", Ar: "AR", Am: "AM", Aw: "AW", Au: "AU", At: "AT", Az: "AZ", Bs: "BS", Bh: "BH", Bd: "BD", Bb: "BB", By: "BY", Be: "BE", Bz: "BZ", Bj: "BJ", Bm: "BM", Bt: "BT", Bo: "BO", Ba: "BA", Bw: "BW", Bv: "BV", Br: "BR", Io: "IO", Bn: "BN", Bg: "BG", Bf: "BF", Bi: "BI", Kh: "KH", Cm: "CM", Ca: "CA", Cv: "CV", Ky: "KY", Cf: "CF", Td: "TD", Cl: "CL", Cn: "CN", Cx: "CX", Cc: "CC", Co: "CO", Km: "KM", Cg: "CG", Cd: "CD", Ck: "CK", Cr: "CR", Ci: "CI", Hr: "HR", Cu: "CU", Cw: "CW", Cy: "CY", Cz: "CZ", Dk: "DK", Dj: "DJ", Dm: "DM", Do: "DO", Ec: "EC", Eg: "EG", Sv: "SV", Gq: "GQ", Er: "ER", Ee: "EE", Et: "ET", Fk: "FK", Fo: "FO", Fj: "FJ", Fi: "FI", Fr: "FR", Gf: "GF", Pf: "PF", Tf: "TF", Ga: "GA", Gm: "GM", Ge: "GE", De: "DE", Gh: "GH", Gi: "GI", Gr: "GR", Gl: "GL", Gd: "GD", Gp: "GP", Gu: "GU", Gt: "GT", Gg: "GG", Gn: "GN", Gw: "GW", Gy: "GY", Ht: "HT", Hm: "HM", Va: "VA", Hn: "HN", Hk: "HK", Hu: "HU", Is: "IS", In: "IN", Id: "ID", Ir: "IR", Iq: "IQ", Ie: "IE", Im: "IM", Il: "IL", It: "IT", Jm: "JM", Jp: "JP", Je: "JE", Jo: "JO", Kz: "KZ", Ke: "KE", Ki: "KI", Kr: "KR", Kw: "KW", Kg: "KG", La: "LA", Lv: "LV", Lb: "LB", Ls: "LS", Lr: "LR", Ly: "LY", Li: "LI", Lt: "LT", Lu: "LU", Mo: "MO", Mk: "MK", Mg: "MG", Mw: "MW", My: "MY", Mv: "MV", Ml: "ML", Mt: "MT", Mh: "MH", Mq: "MQ", Mr: "MR", Mu: "MU", Yt: "YT", Mx: "MX", Fm: "FM", Md: "MD", Mc: "MC", Mn: "MN", Me: "ME", Ms: "MS", Ma: "MA", Mz: "MZ", Mm: "MM", Na: "NA", Nr: "NR", Np: "NP", Nl: "NL", An: "AN", Nc: "NC", Nz: "NZ", Ni: "NI", Ne: "NE", Ng: "NG", Nu: "NU", Nf: "NF", Mp: "MP", No: "NO", Om: "OM", Pk: "PK", Pw: "PW", Ps: "PS", Pa: "PA", Pg: "PG", Py: "PY", Pe: "PE", Ph: "PH", Pn: "PN", Pl: "PL", Pt: "PT", Pr: "PR", Qa: "QA", Re: "RE", Ro: "RO", Ru: "RU", Rw: "RW", Bl: "BL", Sh: "SH", Kn: "KN", Lc: "LC", Mf: "MF", Pm: "PM", Vc: "VC", Ws: "WS", Sm: "SM", St: "ST", Sa: "SA", Sn: "SN", Ss: "SS", Rs: "RS", Sc: "SC", Sl: "SL", Sg: "SG", Sk: "SK", Si: "SI", Sb: "SB", So: "SO", Za: "ZA", Gs: "GS", Es: "ES", Lk: "LK", Sd: "SD", Sr: "SR", Sj: "SJ", Sz: "SZ", Se: "SE", Ch: "CH", Sy: "SY", Tw: "TW", Tj: "TJ", Tz: "TZ", Th: "TH", Tl: "TL", Tg: "TG", Tk: "TK", To: "TO", Tt: "TT", Tn: "TN", Tr: "TR", Tm: "TM", Tc: "TC", Tv: "TV", Ug: "UG", Ua: "UA", Ae: "AE", Gb: "GB", Us: "US", Um: "UM", Uy: "UY", Uz: "UZ", Vu: "VU", Ve: "VE", Vn: "VN", Vg: "VG", Vi: "VI", Wf: "WF", Eh: "EH", Ye: "YE", Zm: "ZM", Zw: "ZW", }; /** * The type of the referenced actor. Currently, only workspace members can be written into actor reference attributes. [Read more information on actor types here](/docs/actors). */ export const InputValueReferencedActorType = { WorkspaceMember: "workspace-member", }; /** @internal */ export const InputValue18$inboundSchema = z.object({ value: z.string().datetime({ offset: true }).transform(v => new Date(v)), }); /** @internal */ export const InputValue18$outboundSchema = z.object({ value: z.date().transform(v => v.toISOString()), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export var InputValue18$; (function (InputValue18$) { /** @deprecated use `InputValue18$inboundSchema` instead. */ InputValue18$.inboundSchema = InputValue18$inboundSchema; /** @deprecated use `InputValue18$outboundSchema` instead. */ InputValue18$.outboundSchema = InputValue18$outboundSchema; })(InputValue18$ || (InputValue18$ = {})); export function inputValue18ToJSON(inputValue18) { return JSON.stringify(InputValue18$outboundSchema.parse(inputValue18)); } export function inputValue18FromJSON(jsonString) { return safeParse(jsonString, (x) => InputValue18$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InputValue18' from JSON`); } /** @internal */ export const InputValue17$inboundSchema = z.object({ value: z.string(), }); /** @internal */ export const InputValue17$outboundSchema = z.object({ 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 InputValue17$; (function (InputValue17$) { /** @deprecated use `InputValue17$inboundSchema` instead. */ InputValue17$.inboundSchema = InputValue17$inboundSchema; /** @deprecated use `InputValue17$outboundSchema` instead. */ InputValue17$.outboundSchema = InputValue17$outboundSchema; })(InputValue17$ || (InputValue17$ = {})); export function inputValue17ToJSON(inputValue17) { return JSON.stringify(InputValue17$outboundSchema.parse(inputValue17)); } export function inputValue17FromJSON(jsonString) { return safeParse(jsonString, (x) => InputValue17$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InputValue17' from JSON`); } /** @internal */ export const InputValue16$inboundSchema = z.object({ option: z.string(), }); /** @internal */ export const InputValue16$outboundSchema = z.object({ option: 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 InputValue16$; (function (InputValue16$) { /** @deprecated use `InputValue16$inboundSchema` instead. */ InputValue16$.inboundSchema = InputValue16$inboundSchema; /** @deprecated use `InputValue16$outboundSchema` instead. */ InputValue16$.outboundSchema = InputValue16$outboundSchema; })(InputValue16$ || (InputValue16$ = {})); export function inputValue16ToJSON(inputValue16) { return JSON.stringify(InputValue16$outboundSchema.parse(inputValue16)); } export function inputValue16FromJSON(jsonString) { return safeParse(jsonString, (x) => InputValue16$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InputValue16' from JSON`); } /** @internal */ export const InputValue15$inboundSchema = z.object({ value: z.number(), }); /** @internal */ export const InputValue15$outboundSchema = z.object({ value: z.number(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export var InputValue15$; (function (InputValue15$) { /** @deprecated use `InputValue15$inboundSchema` instead. */ InputValue15$.inboundSchema = InputValue15$inboundSchema; /** @deprecated use `InputValue15$outboundSchema` instead. */ InputValue15$.outboundSchema = InputValue15$outboundSchema; })(InputValue15$ || (InputValue15$ = {})); export function inputValue15ToJSON(inputValue15) { return JSON.stringify(InputValue15$outboundSchema.parse(inputValue15)); } export function inputValue15FromJSON(jsonString) { return safeParse(jsonString, (x) => InputValue15$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InputValue15' from JSON`); } /** @internal */ export const InputValue14$inboundSchema = z.object({ status: z.string(), }); /** @internal */ export const InputValue14$outboundSchema = z.object({ status: 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 InputValue14$; (function (InputValue14$) { /** @deprecated use `InputValue14$inboundSchema` instead. */ InputValue14$.inboundSchema = InputValue14$inboundSchema; /** @deprecated use `InputValue14$outboundSchema` instead. */ InputValue14$.outboundSchema = InputValue14$outboundSchema; })(InputValue14$ || (InputValue14$ = {})); export function inputValue14ToJSON(inputValue14) { return JSON.stringify(InputValue14$outboundSchema.parse(inputValue14)); } export function inputValue14FromJSON(jsonString) { return safeParse(jsonString, (x) => InputValue14$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InputValue14' from JSON`); } /** @internal */ export const InputValueCountryCode2$inboundSchema = z.nativeEnum(InputValueCountryCode2); /** @internal */ export const InputValueCountryCode2$outboundSchema = InputValueCountryCode2$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export var InputValueCountryCode2$; (function (InputValueCountryCode2$) { /** @deprecated use `InputValueCountryCode2$inboundSchema` instead. */ InputValueCountryCode2$.inboundSchema = InputValueCountryCode2$inboundSchema; /** @deprecated use `InputValueCountryCode2$outboundSchema` instead. */ InputValueCountryCode2$.outboundSchema = InputValueCountryCode2$outboundSchema; })(InputValueCountryCode2$ || (InputValueCountryCode2$ = {})); /** @internal */ export const InputValue13$inboundSchema = z.object({ original_phone_number: z.string(), country_code: z.nullable(InputValueCountryCode2$inboundSchema).optional(), }).transform((v) => { return remap$(v, { "original_phone_number": "originalPhoneNumber", "country_code": "countryCode", }); }); /** @internal */ export const InputValue13$outboundSchema = z.object({ originalPhoneNumber: z.string(), countryCode: z.nullable(InputValueCountryCode2$outboundSchema).optional(), }).transform((v) => { return remap$(v, { originalPhoneNumber: "original_phone_number", countryCode: "country_code", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export var InputValue13$; (function (InputValue13$) { /** @deprecated use `InputValue13$inboundSchema` instead. */ InputValue13$.inboundSchema = InputValue13$inboundSchema; /** @deprecated use `InputValue13$outboundSchema` instead. */ InputValue13$.outboundSchema = InputValue13$outboundSchema; })(InputValue13$ || (InputValue13$ = {})); export function inputValue13ToJSON(inputValue13) { return JSON.stringify(InputValue13$outboundSchema.parse(inputValue13)); } export function inputValue13FromJSON(jsonString) { return safeParse(jsonString, (x) => InputValue13$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InputValue13' from JSON`); } /** @internal */ export const InputValue12$inboundSchema = z.object({ first_name: z.string().optional(), last_name: z.string().optional(), full_name: z.string().optional(), }).transform((v) => { return remap$(v, { "first_name": "firstName", "last_name": "lastName", "full_name": "fullName", }); }); /** @internal */ export const InputValue12$outboundSchema = z.object({ firstName: z.string().optional(), lastName: z.string().optional(), fullName: z.string().optional(), }).transform((v) => { return remap$(v, { firstName: "first_name", lastName: "last_name", fullName: "full_name", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export var InputValue12$; (function (InputValue12$) { /** @deprecated use `InputValue12$inboundSchema` instead. */ InputValue12$.inboundSchema = InputValue12$inboundSchema; /** @deprecated use `InputValue12$outboundSchema` instead. */ InputValue12$.outboundSchema = InputValue12$outboundSchema; })(InputValue12$ || (InputValue12$ = {})); export function inputValue12ToJSON(inputValue12) { return JSON.stringify(InputValue12$outboundSchema.parse(inputValue12)); } export function inputValue12FromJSON(jsonString) { return safeParse(jsonString, (x) => InputValue12$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InputValue12' from JSON`); } /** @internal */ export const InputValue11$inboundSchema = z.object({ value: z.number(), }); /** @internal */ export const InputValue11$outboundSchema = z.object({ value: z.number(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export var InputValue11$; (function (InputValue11$) { /** @deprecated use `InputValue11$inboundSchema` instead. */ InputValue11$.inboundSchema = InputValue11$inboundSchema; /** @deprecated use `InputValue11$outboundSchema` instead. */ InputValue11$.outboundSchema = InputValue11$outboundSchema; })(InputValue11$ || (InputValue11$ = {})); export function inputValue11ToJSON(inputValue11) { return JSON.stringify(InputValue11$outboundSchema.parse(inputValue11)); } export function inputValue11FromJSON(jsonString) { return safeParse(jsonString, (x) => InputValue11$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InputValue11' from JSON`); } /** @internal */ export const InputValueCountryCode1$inboundSchema = z.nativeEnum(InputValueCountryCode1); /** @internal */ export const InputValueCountryCode1$outboundSchema = InputValueCountryCode1$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export var InputValueCountryCode1$; (function (InputValueCountryCode1$) { /** @deprecated use `InputValueCountryCode1$inboundSchema` instead. */ InputValueCountryCode1$.inboundSchema = InputValueCountryCode1$inboundSchema; /** @deprecated use `InputValueCountryCode1$outboundSchema` instead. */ InputValueCountryCode1$.outboundSchema = InputValueCountryCode1$outboundSchema; })(InputValueCountryCode1$ || (InputValueCountryCode1$ = {})); /** @internal */ export const InputValue10$inboundSchema = z.object({ line_1: z.nullable(z.string()), line_2: z.nullable(z.string()), line_3: z.nullable(z.string()), line_4: z.nullable(z.string()), locality: z.nullable(z.string()), region: z.nullable(z.string()), postcode: z.nullable(z.string()), country_code: z.nullable(InputValueCountryCode1$inboundSchema), latitude: z.nullable(z.string()), longitude: z.nullable(z.string()), }).transform((v) => { return remap$(v, { "line_1": "line1", "line_2": "line2", "line_3": "line3", "line_4": "line4", "country_code": "countryCode", }); }); /** @internal */ export const InputValue10$outboundSchema = z.object({ line1: z.nullable(z.string()), line2: z.nullable(z.string()), line3: z.nullable(z.string()), line4: z.nullable(z.string()), locality: z.nullable(z.string()), region: z.nullable(z.string()), postcode: z.nullable(z.string()), countryCode: z.nullable(InputValueCountryCode1$outboundSchema), latitude: z.nullable(z.string()), longitude: z.nullable(z.string()), }).transform((v) => { return remap$(v, { line1: "line_1", line2: "line_2", line3: "line_3", line4: "line_4", countryCode: "country_code", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export var InputValue10$; (function (InputValue10$) { /** @deprecated use `InputValue10$inboundSchema` instead. */ InputValue10$.inboundSchema = InputValue10$inboundSchema; /** @deprecated use `InputValue10$outboundSchema` instead. */ InputValue10$.outboundSchema = InputValue10$outboundSchema; })(InputValue10$ || (InputValue10$ = {})); export function inputValue10ToJSON(inputValue10) { return JSON.stringify(InputValue10$outboundSchema.parse(inputValue10)); } export function inputValue10FromJSON(jsonString) { return safeParse(jsonString, (x) => InputValue10$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InputValue10' from JSON`); } /** @internal */ export const InputValueInteractionType$inboundSchema = z.nativeEnum(InputValueInteractionType); /** @internal */ export const InputValueInteractionType$outboundSchema = InputValueInteractionType$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export var InputValueInteractionType$; (function (InputValueInteractionType$) { /** @deprecated use `InputValueInteractionType$inboundSchema` instead. */ InputValueInteractionType$.inboundSchema = InputValueInteractionType$inboundSchema; /** @deprecated use `InputValueInteractionType$outboundSchema` instead. */ InputValueInteractionType$.outboundSchema = InputValueInteractionType$outboundSchema; })(InputValueInteractionType$ || (InputValueInteractionType$ = {})); /** @internal */ export const InputValueType$inboundSchema = z.nativeEnum(InputValueType); /** @internal */ export const InputValueType$outboundSchema = InputValueType$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export var InputValueType$; (function (InputValueType$) { /** @deprecated use `InputValueType$inboundSchema` instead. */ InputValueType$.inboundSchema = InputValueType$inboundSchema; /** @deprecated use `InputValueType$outboundSchema` instead. */ InputValueType$.outboundSchema = InputValueType$outboundSchema; })(InputValueType$ || (InputValueType$ = {})); /** @internal */ export const InputValueOwnerActor$inboundSchema = z.object({ id: z.nullable(z.string()).optional(), type: z.nullable(InputValueType$inboundSchema).optional(), }); /** @internal */ export const InputValueOwnerActor$outboundSchema = z.object({ id: z.nullable(z.string()).optional(), type: z.nullable(InputValueType$outboundSchema).optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export var InputValueOwnerActor$; (function (InputValueOwnerActor$) { /** @deprecated use `InputValueOwnerActor$inboundSchema` instead. */ InputValueOwnerActor$.inboundSchema = InputValueOwnerActor$inboundSchema; /** @deprecated use `InputValueOwnerActor$outboundSchema` instead. */ InputValueOwnerActor$.outboundSchema = InputValueOwnerActor$outboundSchema; })(InputValueOwnerActor$ || (InputValueOwnerActor$ = {})); export function inputValueOwnerActorToJSON(inputValueOwnerActor) { return JSON.stringify(InputValueOwnerActor$outboundSchema.parse(inputValueOwnerActor)); } export function inputValueOwnerActorFromJSON(jsonString) { return safeParse(jsonString, (x) => InputValueOwnerActor$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InputValueOwnerActor' from JSON`); } /** @internal */ export const InputValue9$inboundSchema = z.object({ interaction_type: InputValueInteractionType$inboundSchema, interacted_at: z.string().datetime({ offset: true }).transform(v => new Date(v)), owner_actor: z.lazy(() => InputValueOwnerActor$inboundSchema), }).transform((v) => { return remap$(v, { "interaction_type": "interactionType", "interacted_at": "interactedAt", "owner_actor": "ownerActor", }); }); /** @internal */ export const InputValue9$outboundSchema = z.object({ interactionType: InputValueInteractionType$outboundSchema, interactedAt: z.date().transform(v => v.toISOString()), ownerActor: z.lazy(() => InputValueOwnerActor$outboundSchema), }).transform((v) => { return remap$(v, { interactionType: "interaction_type", interactedAt: "interacted_at", ownerActor: "owner_actor", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export var InputValue9$; (function (InputValue9$) { /** @deprecated use `InputValue9$inboundSchema` instead. */ InputValue9$.inboundSchema = InputValue9$inboundSchema; /** @deprecated use `InputValue9$outboundSchema` instead. */ InputValue9$.outboundSchema = InputValue9$outboundSchema; })(InputValue9$ || (InputValue9$ = {})); export function inputValue9ToJSON(inputValue9) { return JSON.stringify(InputValue9$outboundSchema.parse(inputValue9)); } export function inputValue9FromJSON(jsonString) { return safeParse(jsonString, (x) => InputValue9$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InputValue9' from JSON`); } /** @internal */ export const SlugOrIdOfMatchingAttribute5$inboundSchema = z.object({ value: z.string().optional(), }); /** @internal */ export const SlugOrIdOfMatchingAttribute5$outboundSchema = z.object({ value: z.string().optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export var SlugOrIdOfMatchingAttribute5$; (function (SlugOrIdOfMatchingAttribute5$) { /** @deprecated use `SlugOrIdOfMatchingAttribute5$inboundSchema` instead. */ SlugOrIdOfMatchingAttribute5$.inboundSchema = SlugOrIdOfMatchingAttribute5$inboundSchema; /** @deprecated use `SlugOrIdOfMatchingAttribute5$outboundSchema` instead. */ SlugOrIdOfMatchingAttribute5$.outboundSchema = SlugOrIdOfMatchingAttribute5$outboundSchema; })(SlugOrIdOfMatchingAttribute5$ || (SlugOrIdOfMatchingAttribute5$ = {})); export function slugOrIdOfMatchingAttribute5ToJSON(slugOrIdOfMatchingAttribute5) { return JSON.stringify(SlugOrIdOfMatchingAttribute5$outboundSchema.parse(slugOrIdOfMatchingAttribute5)); } export function slugOrIdOfMatchingAttribute5FromJSON(jsonString) { return safeParse(jsonString, (x) => SlugOrIdOfMatchingAttribute5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SlugOrIdOfMatchingAttribute5' from JSON`); } /** @internal */ export const SlugOrIdOfMatchingAttributeCountryCode$inboundSchema = z.nativeEnum(SlugOrIdOfMatchingAttributeCountryCode); /** @internal */ export const SlugOrIdOfMatchingAttributeCountryCode$outboundSchema = SlugOrIdOfMatchingAttributeCountryCode$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export var SlugOrIdOfMatchingAttributeCountryCode$; (function (SlugOrIdOfMatchingAttributeCountryCode$) { /** @deprecated use `SlugOrIdOfMatchingAttributeCountryCode$inboundSchema` instead. */ SlugOrIdOfMatchingAttributeCountryCode$.inboundSchema = SlugOrIdOfMatchingAttributeCountryCode$inboundSchema; /** @deprecated use `SlugOrIdOfMatchingAttributeCountryCode$outboundSchema` instead. */ SlugOrIdOfMatchingAttributeCountryCode$.outboundSchema = SlugOrIdOfMatchingAttributeCountryCode$outboundSchema; })(SlugOrIdOfMatchingAttributeCountryCode$ || (SlugOrIdOfMatchingAttributeCountryCode$ = {})); /** @internal */ export const SlugOrIdOfMatchingAttribute4$inboundSchema = z.object({ original_phone_number: z.string().optional(), country_code: z.nullable(SlugOrIdOfMatchingAttributeCountryCode$inboundSchema) .optional(), }).transform((v) => { return remap$(v, { "original_phone_number": "originalPhoneNumber", "country_code": "countryCode", }); }); /** @internal */ export const SlugOrIdOfMatchingAttribute4$outboundSchema = z.object({ originalPhoneNumber: z.string().optional(), countryCode: z.nullable(SlugOrIdOfMatchingAttributeCountryCode$outboundSchema) .optional(), }).transform((v) => { return remap$(v, { originalPhoneNumber: "original_phone_number", countryCode: "country_code", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export var SlugOrIdOfMatchingAttribute4$; (function (SlugOrIdOfMatchingAttribute4$) { /** @deprecated use `SlugOrIdOfMatchingAttribute4$inboundSchema` instead. */ SlugOrIdOfMatchingAttribute4$.inboundSchema = SlugOrIdOfMatchingAttribute4$inboundSchema; /** @deprecated use `SlugOrIdOfMatchingAttribute4$outboundSchema` instead. */ SlugOrIdOfMatchingAttribute4$.outboundSchema = SlugOrIdOfMatchingAttribute4$outboundSchema; })(SlugOrIdOfMatchingAttribute4$ || (SlugOrIdOfMatchingAttribute4$ = {})); export function slugOrIdOfMatchingAttribute4ToJSON(slugOrIdOfMatchingAttribute4) { return JSON.stringify(SlugOrIdOfMatchingAttribute4$outboundSchema.parse(slugOrIdOfMatchingAttribute4)); } export function slugOrIdOfMatchingAttribute4FromJSON(jsonString) { return safeParse(jsonString, (x) => SlugOrIdOfMatchingAttribute4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SlugOrIdOfMatchingAttribute4' from JSON`); } /** @internal */ export const SlugOrIdOfMatchingAttribute3$inboundSchema = z.object({ value: z.number().optional(), }); /** @internal */ export const SlugOrIdOfMatchingAttribute3$outboundSchema = z.object({ value: z.number().optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export var SlugOrIdOfMatchingAttribute3$; (function (SlugOrIdOfMatchingAttribute3$) { /** @deprecated use `SlugOrIdOfMatchingAttribute3$inboundSchema` instead. */ SlugOrIdOfMatchingAttribute3$.inboundSchema = SlugOrIdOfMatchingAttribute3$inboundSchema; /** @deprecated use `SlugOrIdOfMatchingAttribute3$outboundSchema` instead. */ SlugOrIdOfMatchingAttribute3$.outboundSchema = SlugOrIdOfMatchingAttribute3$outboundSchema; })(SlugOrIdOfMatchingAttribute3$ || (SlugOrIdOfMatchingAttribute3$ = {})); export function slugOrIdOfMatchingAttribute3ToJSON(slugOrIdOfMatchingAttribute3) { return JSON.stringify(SlugOrIdOfMatchingAttribute3$outboundSchema.parse(slugOrIdOfMatchingAttribute3)); } export function slugOrIdOfMatchingAttribute3FromJSON(jsonString) { return safeParse(jsonString, (x) => SlugOrIdOfMatchingAttribute3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SlugOrIdOfMatchingAttribute3' from JSON`); } /** @internal */ export const SlugOrIdOfMatchingAttribute2$inboundSchema = z.object({ email_address: z.string().optional(), }).transform((v) => { return remap$(v, { "email_address": "emailAddress", }); }); /** @internal */ export const SlugOrIdOfMatchingAttribute2$outboundSchema = z.object({ emailAddress: z.string().optional(), }).transform((v) => { return remap$(v, { emailAddress: "email_address", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export var SlugOrIdOfMatchingAttribute2$; (function (SlugOrIdOfMatchingAttribute2$) { /** @deprecated use `SlugOrIdOfMatchingAttribute2$inboundSchema` instead. */ SlugOrIdOfMatchingAttribute2$.inboundSchema = SlugOrIdOfMatchingAttribute2$inboundSchema; /** @deprecated use `SlugOrIdOfMatchingAttribute2$outboundSchema` instead. */ SlugOrIdOfMatchingAttribute2$.outboundSchema = SlugOrIdOfMatchingAttribute2$outboundSchema; })(SlugOrIdOfMatchingAttribute2$ || (SlugOrIdOfMatchingAttribute2$ = {})); export function slugOrIdOfMatchingAttribute2ToJSON(slugOrIdOfMatchingAttribute2) { return JSON.stringify(SlugOrIdOfMatchingAttribute2$outboundSchema.parse(slugOrIdOfMatchingAttribute2)); } export function slugOrIdOfMatchingAttribute2FromJSON(jsonString) { return safeParse(jsonString, (x) => SlugOrIdOfMatchingAttribute2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SlugOrIdOfMatchingAttribute2' from JSON`); } /** @internal */ export const SlugOrIdOfMatchingAttribute1$inboundSchema = z.object({ domain: z.string().optional(), }); /** @internal */ export const SlugOrIdOfMatchingAttribute1$outboundSchema = z.object({ domain: z.string().optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export var SlugOrIdOfMatchingAttribute1$; (function (SlugOrIdOfMatchingAttribute1$) { /** @deprecated use `SlugOrIdOfMatchingAttribute1$inboundSchema` instead. */ SlugOrIdOfMatchingAttribute1$.inboundSchema = SlugOrIdOfMatchingAttribute1$inboundSchema; /** @deprecated use `SlugOrIdOfMatchingAttribute1$outboundSchema` instead. */ SlugOrIdOfMatchingAttribute1$.outboundSchema = SlugOrIdOfMatchingAttribute1$outboundSchema; })(SlugOrIdOfMatchingAttribute1$ || (SlugOrIdOfMatchingAttribute1$ = {})); export function slugOrIdOfMatchingAttribute1ToJSON(slugOrIdOfMatchingAttribute1) { return JSON.stringify(SlugOrIdOfMatchingAttribute1$outboundSchema.parse(slugOrIdOfMatchingAttribute1)); } export function slugOrIdOfMatchingAttribute1FromJSON(jsonString) { return safeParse(jsonString, (x) => SlugOrIdOfMatchingAttribute1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SlugOrIdOfMatchingAttribute1' from JSON`); } /** @internal */ export const SlugOrIdOfMatchingAttributeUnion$inboundSchema = z.union([ z.lazy(() => SlugOrIdOfMatchingAttribute1$inboundSchema), z.lazy(() => SlugOrIdOfMatchingAttribute2$inboundSchema), z.lazy(() => SlugOrIdOfMatchingAttribute3$inboundSchema), z.lazy(() => SlugOrIdOfMatchingAttribute5$inboundSchema), z.lazy(() => SlugOrIdOfMatchingAttribute4$inboundSchema), ]); /** @internal */ export const SlugOrIdOfMatchingAttributeUnion$outboundSchema = z.union([ z.lazy(() => SlugOrIdOfMatchingAttribute1$outboundSchema), z.lazy(() => SlugOrIdOfMatchingAttribute2$outboundSchema), z.lazy(() => SlugOrIdOfMatchingAttribute3$outboundSchema), z.lazy(() => SlugOrIdOfMatchingAttribute5$outboundSchema), z.lazy(() => SlugOrIdOfMatchingAttribute4$outboundSchema), ]); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export var SlugOrIdOfMatchingAttributeUnion$; (function (SlugOrIdOfMatchingAttributeUnion$) { /** @deprecated use `SlugOrIdOfMatchingAttributeUnion$inboundSchema` instead. */ SlugOrIdOfMatchingAttributeUnion$.inboundSchema = SlugOrIdOfMatchingAttributeUnion$inboundSchema; /** @deprecated use `SlugOrIdOfMatchingAttributeUnion$outboundSchema` instead. */ SlugOrIdOfMatchingAttributeUnion$.outboundSchema = SlugOrIdOfMatchingAttributeUnion$outboundSchema; })(SlugOrIdOfMatchingAttributeUnion$ || (SlugOrIdOfMatchingAttributeUnion$ = {})); export function slugOrIdOfMatchingAttributeUnionToJSON(slugOrIdOfMatchingAttributeUnion) { return JSON.stringify(SlugOrIdOfMatchingAttributeUnion$outboundSchema.parse(slugOrIdOfMatchingAttributeUnion)); } export function slugOrIdOfMatchingAttributeUnionFromJSON(jsonString) { return safeParse(jsonString, (x) => SlugOrIdOfMatchingAttributeUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SlugOrIdOfMatchingAttributeUnion' from JSON`); } /** @internal */ export const InputValue8$inboundSchema = z.object({ target_object: z.string(), "[slug_or_id_of_matching_attribute]": z.array(z.union([ z.lazy(() => SlugOrIdOfMatchingAttribute1$inboundSchema), z.lazy(() => SlugOrIdOfMatchingAttribute2$inboundSchema), z.lazy(() => SlugOrIdOfMatchingAttribute3$inboundSchema), z.lazy(() => SlugOrIdOfMatchingAttribute5$inboundSchema), z.lazy(() => SlugOrIdOfMatchingAttribute4$inboundSchema), ])), }).transform((v) => { return remap$(v, { "target_object": "targetObject", "[slug_or_id_of_matching_attribute]": "slugOrIdOfMatchingAttribute", }); }); /** @internal */ export const InputValue8$outboundSchema = z.object({ targetObject: z.string(), slugOrIdOfMatchingAttribute: z.array(z.union([ z.lazy(() => SlugOrIdOfMatchingAttribute1$outboundSchema), z.lazy(() => SlugOrIdOfMatchingAttribute2$outboundSchema), z.lazy(() => SlugOrIdOfMatchingAttribute3$outboundSchema), z.lazy(() => SlugOrIdOfMatchingAttribute5$outboundSchema), z.lazy(() => SlugOrIdOfMatchingAttribute4$outboundSchema), ])), }).transform((v) => { return remap$(v, { targetObject: "target_object", slugOrIdOfMatchingAttribute: "[slug_or_id_of_matching_attribute]", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export var InputValue8$; (function (InputValue8$) { /** @deprecated use `InputValue8$inboundSchema` instead. */ InputValue8$.inboundSchema = InputValue8$inboundSchema; /** @deprecated use `InputValue8$outboundSchema` instead. */ InputValue8$.outboundSchema = InputValue8$outboundSchema; })(InputValue8$ || (InputValue8$ = {})); export function inputValue8ToJSON(inputValue8) { return JSON.stringify(InputValue8$outboundSchema.parse(inputValue8)); } export function inputValue8FromJSON(jsonString) { return safeParse(jsonString, (x) => InputValue8$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InputValue8' from JSON`); } /** @internal */ export const InputValue7$inboundSchema = z.object({ target_object: z.string(), target_record_id: z.string(), }).transform((v) => { return remap$(v, { "target_object": "targetObject", "target_record_id": "targetRecordId", }); }); /** @internal */ export const InputValue7$outboundSchema = z.object({ targetObject: z.string(), targetRecordId: z.string(), }).transform((v) => { return remap$(v, { targetObject: "target_object", targetRecordId: "target_record_id", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export var InputValue7$; (function (InputValue7$) { /** @deprecated use `InputValue7$inboundSchema` instead. */ InputValue7$.inboundSchema = InputValue7$inboundSchema; /** @deprecated use `InputValue7$outboundSchema` instead. */ InputValue7$.outboundSchema = InputValue7$outboundSchema; })(InputValue7$ || (InputValue7$ = {})); export function inputValue7ToJSON(inputValue7) { return JSON.stringify(InputValue7$outboundSchema.parse(inputValue7)); } export function inputValue7FromJSON(jsonString) { return safeParse(jsonString, (x) => InputValue7$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InputValue7' from JSON`); } /** @internal */ export const InputValue6$inboundSchema = z.object({ email_address: z.string().optional(), }).transform((v) => { return remap$(v, { "email_address": "emailAddress", }); }); /** @internal */ export const InputValue6$outboundSchema = z.object({ emailAddress: z.string().optional(), }).transform((v) => { return remap$(v, { emailAddress: "email_address", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export var InputValue6$; (function (InputValue6$) { /** @deprecated use `InputValue6$inboundSchema` instead. */ InputValue6$.inboundSchema = InputValue6$inboundSchema; /** @deprecated use `InputValue6$outboundSchema` instead. */ InputValue6$.outboundSchema = InputValue6$outboundSchema; })(InputValue6$ || (InputValue6$ = {})); export function inputValue6ToJSON(inputValue6) { return JSON.stringify(InputValue6$outboundSchema.parse(inputValue6)); } export function inputValue6FromJSON(jsonString) { return safeParse(jsonString, (x) => InputValue6$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InputValue6' from JSON`); } /** @internal */ export const InputValue5$inboundSchema = z.object({ domain: z.string().optional(), }); /** @internal */ export const InputValue5$outboundSchema = z.object({ domain: z.string().optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export var InputValue5$; (function (InputValue5$) { /** @deprecated use `InputValue5$inboundSchema` instead. */ InputValue5$.inboundSchema = InputValue5$inboundSchema; /** @deprecated use `InputValue5$outboundSchema` instead. */ InputValue5$.outboundSchema = InputValue5$outboundSchema; })(InputValue5$ || (InputValue5$ = {})); export function inputValue5ToJSON(inputValue5) { return JSON.stringify(InputValue5$outboundSchema.parse(inputValue5)); } export function inputValue5FromJSON(jsonString) { return safeParse(jsonString, (x) => InputValue5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InputValue5' from JSON`); } /** @internal */ export const InputValue4$inboundSchema = z.object({ value: z.string(), }); /** @internal */ export const InputValue4$outboundSchema = z.object({ 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 InputValue4$; (function (InputValue4$) { /** @deprecated use `InputValue4$inboundSchema` instead. */ InputValue4$.inboundSchema = InputValue4$inboundSchema; /** @deprecated use `InputValue4$outboundSchema` instead. */ InputValue4$.outboundSchema = InputValue4$outboundSchema; })(InputValue4$ || (InputValue4$ = {})); export function inputValue4ToJSON(inputValue4) { return JSON.stringify(InputValue4$outboundSchema.parse(inputValue4)); } export function inputValue4FromJSON(jsonString) { return safeParse(jsonString, (x) => InputValue4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InputValue4' from JSON`); } /** @internal */ export const InputValue3$inboundSchema = z.object({ currency_value: z.number(), }).transform((v) => { return remap$(v, { "currency_value": "currencyValue", }); }); /** @internal */ export const InputValue3$outboundSchema = z.object({ currencyValue: z.number(), }).transform((v) => { return remap$(v, { currencyValue: "currency_value", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export var InputValue3$; (function (InputValue3$) { /** @deprecated use `InputValue3$inboundSchema` instead. */ InputValue3$.inboundSchema = InputValue3$inboundSchema; /** @deprecated use `InputValue3$outboundSchema` instead. */ InputValue3$.outboundSchema = InputValue3$outboundSchema; })(InputValue3$ || (InputValue3$ = {})); export function inputValue3ToJSON(inputValue3) { return JSON.stringify(InputValue3$outboundSchema.parse(inputValue3)); } export function inputValue3FromJSON(jsonString) { return safeParse(jsonString, (x) => InputValue3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InputValue3' from JSON`); } /** @internal */ export const InputValue2$inboundSchema = z.object({ value: z.boolean(), }); /** @internal */ export const InputValue2$outboundSchema = z.object({ value: z.boolean(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export var InputValue2$; (function (InputValue2$) { /** @deprecated use `InputValue2$inboundSchema` instead. */ InputValue2$.inboundSchema = InputValue2$inboundSchema; /** @deprecated use `InputValue2$outboundSchema` instead. */ InputValue2$.outboundSchema = InputValue2$outboundSchema; })(InputValue2$ || (InputValue2$ = {})); export function inputValue2ToJSON(inputValue2) { return JSON.stringify(InputValue2$outboundSchema.parse(inputValue2)); } export function inputValue2FromJSON(jsonString) { return safeParse(jsonString, (x) => InputValue2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InputValue2' from JSON`); } /** @internal */ export const InputValue1$inboundSchema = z.object({ workspace_member_email_address: z.string(), }).transform((v) => { return remap$(v, { "workspace_member_email_address": "workspaceMemberEmailAddress", }); }); /** @internal */ export const InputValue1$outboundSchema = z.object({ workspaceMemberEmailAddress: z.string(), }).transform((v) => { return remap$(v, { workspaceMemberEmailAddress: "workspace_member_email_address", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export var InputValue1$; (function (InputValue1$) { /** @deprecated use `InputValue1$inboundSchema` instead. */ InputValue1$.inboundSchema = InputValue1$inboundSchema; /** @deprecated use `InputValue1$outboundSchema` instead. */ InputValue1$.outboundSchema = InputValue1$outboundSchema; })(InputValue1$ || (InputValue1$ = {})); export function inputValue1ToJSON(inputValue1) { ret