UNPKG

@vercel/sdk

Version:

<p align="center"> <a href="https://vercel.com"> <img src="https://assets.vercel.com/image/upload/v1588805858/repositories/vercel/logo.png" height="96"> <h3 align="center">Vercel</h3> </a> <p align="center">Develop. Preview. Ship.</p> </p>

4,735 lines 140 kB
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */

import * as z from "zod/v3";
import { safeParse } from "../lib/schemas.js";
import { ClosedEnum } from "../types/enums.js";
import { Result as SafeParseResult } from "../types/fp.js";
import * as types from "../types/primitives.js";
import { smartUnion } from "../types/smartUnion.js";
import {
  OneHundredAndEighty,
  OneHundredAndEighty$inboundSchema,
  OneHundredAndEightyEight,
  OneHundredAndEightyEight$inboundSchema,
  OneHundredAndEightyFive,
  OneHundredAndEightyFive$inboundSchema,
  OneHundredAndEightyFour,
  OneHundredAndEightyFour$inboundSchema,
  OneHundredAndEightyNine,
  OneHundredAndEightyNine$inboundSchema,
  OneHundredAndEightyOne,
  OneHundredAndEightyOne$inboundSchema,
  OneHundredAndEightySeven,
  OneHundredAndEightySeven$inboundSchema,
  OneHundredAndEightySix,
  OneHundredAndEightySix$inboundSchema,
  OneHundredAndEightyThree,
  OneHundredAndEightyThree$inboundSchema,
  OneHundredAndEightyTwo,
  OneHundredAndEightyTwo$inboundSchema,
  OneHundredAndNinety,
  OneHundredAndNinety$inboundSchema,
  OneHundredAndNinetyEight,
  OneHundredAndNinetyEight$inboundSchema,
  OneHundredAndNinetyFive,
  OneHundredAndNinetyFive$inboundSchema,
  OneHundredAndNinetyFour,
  OneHundredAndNinetyFour$inboundSchema,
  OneHundredAndNinetyNine,
  OneHundredAndNinetyNine$inboundSchema,
  OneHundredAndNinetyOne,
  OneHundredAndNinetyOne$inboundSchema,
  OneHundredAndNinetySeven,
  OneHundredAndNinetySeven$inboundSchema,
  OneHundredAndNinetySix,
  OneHundredAndNinetySix$inboundSchema,
  OneHundredAndNinetyThree,
  OneHundredAndNinetyThree$inboundSchema,
  OneHundredAndNinetyTwo,
  OneHundredAndNinetyTwo$inboundSchema,
  OneHundredAndSeventyEight,
  OneHundredAndSeventyEight$inboundSchema,
  OneHundredAndSeventyFive,
  OneHundredAndSeventyFive$inboundSchema,
  OneHundredAndSeventyFour,
  OneHundredAndSeventyFour$inboundSchema,
  OneHundredAndSeventyNine,
  OneHundredAndSeventyNine$inboundSchema,
  OneHundredAndSeventyOne,
  OneHundredAndSeventyOne$inboundSchema,
  OneHundredAndSeventySeven,
  OneHundredAndSeventySeven$inboundSchema,
  OneHundredAndSeventySix,
  OneHundredAndSeventySix$inboundSchema,
  OneHundredAndSeventyThree,
  OneHundredAndSeventyThree$inboundSchema,
  OneHundredAndSeventyTwo,
  OneHundredAndSeventyTwo$inboundSchema,
  TwoHundred,
  TwoHundred$inboundSchema,
  TwoHundredAndEight,
  TwoHundredAndEight$inboundSchema,
  TwoHundredAndFive,
  TwoHundredAndFive$inboundSchema,
  TwoHundredAndFour,
  TwoHundredAndFour$inboundSchema,
  TwoHundredAndOne,
  TwoHundredAndOne$inboundSchema,
  TwoHundredAndSeven,
  TwoHundredAndSeven$inboundSchema,
  TwoHundredAndSix,
  TwoHundredAndSix$inboundSchema,
  TwoHundredAndThree,
  TwoHundredAndThree$inboundSchema,
  TwoHundredAndTwo,
  TwoHundredAndTwo$inboundSchema,
} from "./analyticsusage.js";
import {
  Categories,
  Categories$inboundSchema,
  Entities,
  Entities$inboundSchema,
  FourHundredAndEight,
  FourHundredAndEight$inboundSchema,
  FourHundredAndEighteen,
  FourHundredAndEighteen$inboundSchema,
  FourHundredAndEleven,
  FourHundredAndEleven$inboundSchema,
  FourHundredAndFifteen,
  FourHundredAndFifteen$inboundSchema,
  FourHundredAndFifty,
  FourHundredAndFifty$inboundSchema,
  FourHundredAndForty,
  FourHundredAndForty$inboundSchema,
  FourHundredAndFortyEight,
  FourHundredAndFortyEight$inboundSchema,
  FourHundredAndFortyFive,
  FourHundredAndFortyFive$inboundSchema,
  FourHundredAndFortyFour,
  FourHundredAndFortyFour$inboundSchema,
  FourHundredAndFortyNine,
  FourHundredAndFortyNine$inboundSchema,
  FourHundredAndFortyOne,
  FourHundredAndFortyOne$inboundSchema,
  FourHundredAndFortySeven,
  FourHundredAndFortySeven$inboundSchema,
  FourHundredAndFortySix,
  FourHundredAndFortySix$inboundSchema,
  FourHundredAndFortyThree,
  FourHundredAndFortyThree$inboundSchema,
  FourHundredAndFortyTwo,
  FourHundredAndFortyTwo$inboundSchema,
  FourHundredAndFourteen,
  FourHundredAndFourteen$inboundSchema,
  FourHundredAndNine,
  FourHundredAndNine$inboundSchema,
  FourHundredAndNineteen,
  FourHundredAndNineteen$inboundSchema,
  FourHundredAndSeventeen,
  FourHundredAndSeventeen$inboundSchema,
  FourHundredAndSixteen,
  FourHundredAndSixteen$inboundSchema,
  FourHundredAndTen,
  FourHundredAndTen$inboundSchema,
  FourHundredAndThirteen,
  FourHundredAndThirteen$inboundSchema,
  FourHundredAndThirty,
  FourHundredAndThirty$inboundSchema,
  FourHundredAndThirtyEight,
  FourHundredAndThirtyEight$inboundSchema,
  FourHundredAndThirtyFive,
  FourHundredAndThirtyFive$inboundSchema,
  FourHundredAndThirtyFour,
  FourHundredAndThirtyFour$inboundSchema,
  FourHundredAndThirtyNine,
  FourHundredAndThirtyNine$inboundSchema,
  FourHundredAndThirtyOne,
  FourHundredAndThirtyOne$inboundSchema,
  FourHundredAndThirtySeven,
  FourHundredAndThirtySeven$inboundSchema,
  FourHundredAndThirtySix,
  FourHundredAndThirtySix$inboundSchema,
  FourHundredAndThirtyThree,
  FourHundredAndThirtyThree$inboundSchema,
  FourHundredAndThirtyTwo,
  FourHundredAndThirtyTwo$inboundSchema,
  FourHundredAndTwelve,
  FourHundredAndTwelve$inboundSchema,
  FourHundredAndTwenty,
  FourHundredAndTwenty$inboundSchema,
  FourHundredAndTwentyEight,
  FourHundredAndTwentyEight$inboundSchema,
  FourHundredAndTwentyFive,
  FourHundredAndTwentyFive$inboundSchema,
  FourHundredAndTwentyFour,
  FourHundredAndTwentyFour$inboundSchema,
  FourHundredAndTwentyNine,
  FourHundredAndTwentyNine$inboundSchema,
  FourHundredAndTwentyOne,
  FourHundredAndTwentyOne$inboundSchema,
  FourHundredAndTwentySeven,
  FourHundredAndTwentySeven$inboundSchema,
  FourHundredAndTwentySix,
  FourHundredAndTwentySix$inboundSchema,
  FourHundredAndTwentyThree,
  FourHundredAndTwentyThree$inboundSchema,
  FourHundredAndTwentyTwo,
  FourHundredAndTwentyTwo$inboundSchema,
  Principal,
  Principal$inboundSchema,
  User,
  User$inboundSchema,
  UserEventType,
  UserEventType$inboundSchema,
  Via,
  Via$inboundSchema,
} from "./fourhundredandeight.js";
import {
  OneHundredAndEight,
  OneHundredAndEight$inboundSchema,
  OneHundredAndEighteen,
  OneHundredAndEighteen$inboundSchema,
  OneHundredAndEleven,
  OneHundredAndEleven$inboundSchema,
  OneHundredAndFifteen,
  OneHundredAndFifteen$inboundSchema,
  OneHundredAndFifty,
  OneHundredAndFifty$inboundSchema,
  OneHundredAndForty,
  OneHundredAndForty$inboundSchema,
  OneHundredAndFortyEight,
  OneHundredAndFortyEight$inboundSchema,
  OneHundredAndFortyFive,
  OneHundredAndFortyFive$inboundSchema,
  OneHundredAndFortyFour,
  OneHundredAndFortyFour$inboundSchema,
  OneHundredAndFortyNine,
  OneHundredAndFortyNine$inboundSchema,
  OneHundredAndFortyOne,
  OneHundredAndFortyOne$inboundSchema,
  OneHundredAndFortySeven,
  OneHundredAndFortySeven$inboundSchema,
  OneHundredAndFortySix,
  OneHundredAndFortySix$inboundSchema,
  OneHundredAndFortyThree,
  OneHundredAndFortyThree$inboundSchema,
  OneHundredAndFortyTwo,
  OneHundredAndFortyTwo$inboundSchema,
  OneHundredAndFourteen,
  OneHundredAndFourteen$inboundSchema,
  OneHundredAndNine,
  OneHundredAndNine$inboundSchema,
  OneHundredAndNineteen,
  OneHundredAndNineteen$inboundSchema,
  OneHundredAndSeven,
  OneHundredAndSeven$inboundSchema,
  OneHundredAndSeventeen,
  OneHundredAndSeventeen$inboundSchema,
  OneHundredAndSix,
  OneHundredAndSix$inboundSchema,
  OneHundredAndSixteen,
  OneHundredAndSixteen$inboundSchema,
  OneHundredAndTen,
  OneHundredAndTen$inboundSchema,
  OneHundredAndThirteen,
  OneHundredAndThirteen$inboundSchema,
  OneHundredAndThirty,
  OneHundredAndThirty$inboundSchema,
  OneHundredAndThirtyEight,
  OneHundredAndThirtyEight$inboundSchema,
  OneHundredAndThirtyFive,
  OneHundredAndThirtyFive$inboundSchema,
  OneHundredAndThirtyFour,
  OneHundredAndThirtyFour$inboundSchema,
  OneHundredAndThirtyNine,
  OneHundredAndThirtyNine$inboundSchema,
  OneHundredAndThirtyOne,
  OneHundredAndThirtyOne$inboundSchema,
  OneHundredAndThirtySeven,
  OneHundredAndThirtySeven$inboundSchema,
  OneHundredAndThirtySix,
  OneHundredAndThirtySix$inboundSchema,
  OneHundredAndThirtyThree,
  OneHundredAndThirtyThree$inboundSchema,
  OneHundredAndThirtyTwo,
  OneHundredAndThirtyTwo$inboundSchema,
  OneHundredAndTwelve,
  OneHundredAndTwelve$inboundSchema,
  OneHundredAndTwenty,
  OneHundredAndTwenty$inboundSchema,
  OneHundredAndTwentyEight,
  OneHundredAndTwentyEight$inboundSchema,
  OneHundredAndTwentyFive,
  OneHundredAndTwentyFive$inboundSchema,
  OneHundredAndTwentyFour,
  OneHundredAndTwentyFour$inboundSchema,
  OneHundredAndTwentyNine,
  OneHundredAndTwentyNine$inboundSchema,
  OneHundredAndTwentyOne,
  OneHundredAndTwentyOne$inboundSchema,
  OneHundredAndTwentySeven,
  OneHundredAndTwentySeven$inboundSchema,
  OneHundredAndTwentySix,
  OneHundredAndTwentySix$inboundSchema,
  OneHundredAndTwentyThree,
  OneHundredAndTwentyThree$inboundSchema,
  OneHundredAndTwentyTwo,
  OneHundredAndTwentyTwo$inboundSchema,
} from "./gitcredentialsource.js";
import {
  OneHundredAndFiftyEight,
  OneHundredAndFiftyEight$inboundSchema,
  OneHundredAndFiftyFive,
  OneHundredAndFiftyFive$inboundSchema,
  OneHundredAndFiftyFour,
  OneHundredAndFiftyFour$inboundSchema,
  OneHundredAndFiftyNine,
  OneHundredAndFiftyNine$inboundSchema,
  OneHundredAndFiftyOne,
  OneHundredAndFiftyOne$inboundSchema,
  OneHundredAndFiftySeven,
  OneHundredAndFiftySeven$inboundSchema,
  OneHundredAndFiftySix,
  OneHundredAndFiftySix$inboundSchema,
  OneHundredAndFiftyThree,
  OneHundredAndFiftyThree$inboundSchema,
  OneHundredAndFiftyTwo,
  OneHundredAndFiftyTwo$inboundSchema,
  OneHundredAndSeventy,
  OneHundredAndSeventy$inboundSchema,
  OneHundredAndSixty,
  OneHundredAndSixty$inboundSchema,
  OneHundredAndSixtyEight,
  OneHundredAndSixtyEight$inboundSchema,
  OneHundredAndSixtyFive,
  OneHundredAndSixtyFive$inboundSchema,
  OneHundredAndSixtyFour,
  OneHundredAndSixtyFour$inboundSchema,
  OneHundredAndSixtyNine,
  OneHundredAndSixtyNine$inboundSchema,
  OneHundredAndSixtyOne,
  OneHundredAndSixtyOne$inboundSchema,
  OneHundredAndSixtySeven,
  OneHundredAndSixtySeven$inboundSchema,
  OneHundredAndSixtySix,
  OneHundredAndSixtySix$inboundSchema,
  OneHundredAndSixtyThree,
  OneHundredAndSixtyThree$inboundSchema,
  OneHundredAndSixtyTwo,
  OneHundredAndSixtyTwo$inboundSchema,
} from "./onehundredandfiftyone.js";
import { SDKValidationError } from "./sdkvalidationerror.js";
import {
  TwoHundredAndEighteen,
  TwoHundredAndEighteen$inboundSchema,
  TwoHundredAndEleven,
  TwoHundredAndEleven$inboundSchema,
  TwoHundredAndFifteen,
  TwoHundredAndFifteen$inboundSchema,
  TwoHundredAndFifty,
  TwoHundredAndFifty$inboundSchema,
  TwoHundredAndFiftyEight,
  TwoHundredAndFiftyEight$inboundSchema,
  TwoHundredAndFiftyFive,
  TwoHundredAndFiftyFive$inboundSchema,
  TwoHundredAndFiftyFour,
  TwoHundredAndFiftyFour$inboundSchema,
  TwoHundredAndFiftyNine,
  TwoHundredAndFiftyNine$inboundSchema,
  TwoHundredAndFiftyOne,
  TwoHundredAndFiftyOne$inboundSchema,
  TwoHundredAndFiftySeven,
  TwoHundredAndFiftySeven$inboundSchema,
  TwoHundredAndFiftySix,
  TwoHundredAndFiftySix$inboundSchema,
  TwoHundredAndFiftyThree,
  TwoHundredAndFiftyThree$inboundSchema,
  TwoHundredAndFiftyTwo,
  TwoHundredAndFiftyTwo$inboundSchema,
  TwoHundredAndForty,
  TwoHundredAndForty$inboundSchema,
  TwoHundredAndFortyEight,
  TwoHundredAndFortyEight$inboundSchema,
  TwoHundredAndFortyFive,
  TwoHundredAndFortyFive$inboundSchema,
  TwoHundredAndFortyFour,
  TwoHundredAndFortyFour$inboundSchema,
  TwoHundredAndFortyNine,
  TwoHundredAndFortyNine$inboundSchema,
  TwoHundredAndFortyOne,
  TwoHundredAndFortyOne$inboundSchema,
  TwoHundredAndFortySeven,
  TwoHundredAndFortySeven$inboundSchema,
  TwoHundredAndFortySix,
  TwoHundredAndFortySix$inboundSchema,
  TwoHundredAndFortyThree,
  TwoHundredAndFortyThree$inboundSchema,
  TwoHundredAndFortyTwo,
  TwoHundredAndFortyTwo$inboundSchema,
  TwoHundredAndFourteen,
  TwoHundredAndFourteen$inboundSchema,
  TwoHundredAndNine,
  TwoHundredAndNine$inboundSchema,
  TwoHundredAndNineteen,
  TwoHundredAndNineteen$inboundSchema,
  TwoHundredAndSeventeen,
  TwoHundredAndSeventeen$inboundSchema,
  TwoHundredAndSeventy,
  TwoHundredAndSeventy$inboundSchema,
  TwoHundredAndSeventyFive,
  TwoHundredAndSeventyFive$inboundSchema,
  TwoHundredAndSeventyFour,
  TwoHundredAndSeventyFour$inboundSchema,
  TwoHundredAndSeventyOne,
  TwoHundredAndSeventyOne$inboundSchema,
  TwoHundredAndSeventySix,
  TwoHundredAndSeventySix$inboundSchema,
  TwoHundredAndSeventyThree,
  TwoHundredAndSeventyThree$inboundSchema,
  TwoHundredAndSeventyTwo,
  TwoHundredAndSeventyTwo$inboundSchema,
  TwoHundredAndSixteen,
  TwoHundredAndSixteen$inboundSchema,
  TwoHundredAndSixty,
  TwoHundredAndSixty$inboundSchema,
  TwoHundredAndSixtyEight,
  TwoHundredAndSixtyEight$inboundSchema,
  TwoHundredAndSixtyFive,
  TwoHundredAndSixtyFive$inboundSchema,
  TwoHundredAndSixtyFour,
  TwoHundredAndSixtyFour$inboundSchema,
  TwoHundredAndSixtyNine,
  TwoHundredAndSixtyNine$inboundSchema,
  TwoHundredAndSixtyOne,
  TwoHundredAndSixtyOne$inboundSchema,
  TwoHundredAndSixtySeven,
  TwoHundredAndSixtySeven$inboundSchema,
  TwoHundredAndSixtySix,
  TwoHundredAndSixtySix$inboundSchema,
  TwoHundredAndSixtyThree,
  TwoHundredAndSixtyThree$inboundSchema,
  TwoHundredAndSixtyTwo,
  TwoHundredAndSixtyTwo$inboundSchema,
  TwoHundredAndTen,
  TwoHundredAndTen$inboundSchema,
  TwoHundredAndThirteen,
  TwoHundredAndThirteen$inboundSchema,
  TwoHundredAndThirty,
  TwoHundredAndThirty$inboundSchema,
  TwoHundredAndThirtyEight,
  TwoHundredAndThirtyEight$inboundSchema,
  TwoHundredAndThirtyFive,
  TwoHundredAndThirtyFive$inboundSchema,
  TwoHundredAndThirtyFour,
  TwoHundredAndThirtyFour$inboundSchema,
  TwoHundredAndThirtyNine,
  TwoHundredAndThirtyNine$inboundSchema,
  TwoHundredAndThirtyOne,
  TwoHundredAndThirtyOne$inboundSchema,
  TwoHundredAndThirtySeven,
  TwoHundredAndThirtySeven$inboundSchema,
  TwoHundredAndThirtySix,
  TwoHundredAndThirtySix$inboundSchema,
  TwoHundredAndThirtyThree,
  TwoHundredAndThirtyThree$inboundSchema,
  TwoHundredAndThirtyTwo,
  TwoHundredAndThirtyTwo$inboundSchema,
  TwoHundredAndTwelve,
  TwoHundredAndTwelve$inboundSchema,
  TwoHundredAndTwenty,
  TwoHundredAndTwenty$inboundSchema,
  TwoHundredAndTwentyEight,
  TwoHundredAndTwentyEight$inboundSchema,
  TwoHundredAndTwentyFive,
  TwoHundredAndTwentyFive$inboundSchema,
  TwoHundredAndTwentyFour,
  TwoHundredAndTwentyFour$inboundSchema,
  TwoHundredAndTwentyNine,
  TwoHundredAndTwentyNine$inboundSchema,
  TwoHundredAndTwentyOne,
  TwoHundredAndTwentyOne$inboundSchema,
  TwoHundredAndTwentySeven,
  TwoHundredAndTwentySeven$inboundSchema,
  TwoHundredAndTwentySix,
  TwoHundredAndTwentySix$inboundSchema,
  TwoHundredAndTwentyThree,
  TwoHundredAndTwentyThree$inboundSchema,
  TwoHundredAndTwentyTwo,
  TwoHundredAndTwentyTwo$inboundSchema,
} from "./siftroute.js";
import {
  Eighty,
  Eighty$inboundSchema,
  EightyEight,
  EightyEight$inboundSchema,
  EightyFive,
  EightyFive$inboundSchema,
  EightyFour,
  EightyFour$inboundSchema,
  EightyNine,
  EightyNine$inboundSchema,
  EightyOne,
  EightyOne$inboundSchema,
  EightySeven,
  EightySeven$inboundSchema,
  EightySix,
  EightySix$inboundSchema,
  EightyThree,
  EightyThree$inboundSchema,
  EightyTwo,
  EightyTwo$inboundSchema,
  Fifty,
  Fifty$inboundSchema,
  FiftyEight,
  FiftyEight$inboundSchema,
  FiftyFive,
  FiftyFive$inboundSchema,
  FiftyFour,
  FiftyFour$inboundSchema,
  FiftyNine,
  FiftyNine$inboundSchema,
  FiftyOne,
  FiftyOne$inboundSchema,
  FiftySeven,
  FiftySeven$inboundSchema,
  FiftySix,
  FiftySix$inboundSchema,
  FiftyThree,
  FiftyThree$inboundSchema,
  FiftyTwo,
  FiftyTwo$inboundSchema,
  Forty,
  Forty$inboundSchema,
  FortyEight,
  FortyEight$inboundSchema,
  FortyFive,
  FortyFive$inboundSchema,
  FortyFour,
  FortyFour$inboundSchema,
  FortyNine,
  FortyNine$inboundSchema,
  FortyOne,
  FortyOne$inboundSchema,
  FortySeven,
  FortySeven$inboundSchema,
  FortySix,
  FortySix$inboundSchema,
  FortyThree,
  FortyThree$inboundSchema,
  FortyTwo,
  FortyTwo$inboundSchema,
  Ninety,
  Ninety$inboundSchema,
  NinetyEight,
  NinetyEight$inboundSchema,
  NinetyFive,
  NinetyFive$inboundSchema,
  NinetyFour,
  NinetyFour$inboundSchema,
  NinetyNine,
  NinetyNine$inboundSchema,
  NinetyOne,
  NinetyOne$inboundSchema,
  NinetySeven,
  NinetySeven$inboundSchema,
  NinetySix,
  NinetySix$inboundSchema,
  NinetyThree,
  NinetyThree$inboundSchema,
  NinetyTwo,
  NinetyTwo$inboundSchema,
  OneHundred,
  OneHundred$inboundSchema,
  OneHundredAndFive,
  OneHundredAndFive$inboundSchema,
  OneHundredAndFour,
  OneHundredAndFour$inboundSchema,
  OneHundredAndOne,
  OneHundredAndOne$inboundSchema,
  OneHundredAndThree,
  OneHundredAndThree$inboundSchema,
  OneHundredAndTwo,
  OneHundredAndTwo$inboundSchema,
  Seventy,
  Seventy$inboundSchema,
  SeventyEight,
  SeventyEight$inboundSchema,
  SeventyFive,
  SeventyFive$inboundSchema,
  SeventyFour,
  SeventyFour$inboundSchema,
  SeventyNine,
  SeventyNine$inboundSchema,
  SeventyOne,
  SeventyOne$inboundSchema,
  SeventySeven,
  SeventySeven$inboundSchema,
  SeventySix,
  SeventySix$inboundSchema,
  SeventyThree,
  SeventyThree$inboundSchema,
  SeventyTwo,
  SeventyTwo$inboundSchema,
  Sixty,
  Sixty$inboundSchema,
  SixtyEight,
  SixtyEight$inboundSchema,
  SixtyFive,
  SixtyFive$inboundSchema,
  SixtyFour,
  SixtyFour$inboundSchema,
  SixtyNine,
  SixtyNine$inboundSchema,
  SixtyOne,
  SixtyOne$inboundSchema,
  SixtySeven,
  SixtySeven$inboundSchema,
  SixtySix,
  SixtySix$inboundSchema,
  SixtyThree,
  SixtyThree$inboundSchema,
  SixtyTwo,
  SixtyTwo$inboundSchema,
  ThirtyEight,
  ThirtyEight$inboundSchema,
  ThirtyFive,
  ThirtyFive$inboundSchema,
  ThirtyFour,
  ThirtyFour$inboundSchema,
  ThirtyNine,
  ThirtyNine$inboundSchema,
  ThirtySeven,
  ThirtySeven$inboundSchema,
  ThirtySix,
  ThirtySix$inboundSchema,
  ThirtyThree,
  ThirtyThree$inboundSchema,
} from "./thirtythree.js";
import {
  ThreeHundred,
  ThreeHundred$inboundSchema,
  ThreeHundredAndEight,
  ThreeHundredAndEight$inboundSchema,
  ThreeHundredAndEighteen,
  ThreeHundredAndEighteen$inboundSchema,
  ThreeHundredAndEleven,
  ThreeHundredAndEleven$inboundSchema,
  ThreeHundredAndFifteen,
  ThreeHundredAndFifteen$inboundSchema,
  ThreeHundredAndFive,
  ThreeHundredAndFive$inboundSchema,
  ThreeHundredAndForty,
  ThreeHundredAndForty$inboundSchema,
  ThreeHundredAndFour,
  ThreeHundredAndFour$inboundSchema,
  ThreeHundredAndFourteen,
  ThreeHundredAndFourteen$inboundSchema,
  ThreeHundredAndNine,
  ThreeHundredAndNine$inboundSchema,
  ThreeHundredAndNineteen,
  ThreeHundredAndNineteen$inboundSchema,
  ThreeHundredAndOne,
  ThreeHundredAndOne$inboundSchema,
  ThreeHundredAndSeven,
  ThreeHundredAndSeven$inboundSchema,
  ThreeHundredAndSeventeen,
  ThreeHundredAndSeventeen$inboundSchema,
  ThreeHundredAndSix,
  ThreeHundredAndSix$inboundSchema,
  ThreeHundredAndSixteen,
  ThreeHundredAndSixteen$inboundSchema,
  ThreeHundredAndTen,
  ThreeHundredAndTen$inboundSchema,
  ThreeHundredAndThirteen,
  ThreeHundredAndThirteen$inboundSchema,
  ThreeHundredAndThirty,
  ThreeHundredAndThirty$inboundSchema,
  ThreeHundredAndThirtyEight,
  ThreeHundredAndThirtyEight$inboundSchema,
  ThreeHundredAndThirtyFive,
  ThreeHundredAndThirtyFive$inboundSchema,
  ThreeHundredAndThirtyFour,
  ThreeHundredAndThirtyFour$inboundSchema,
  ThreeHundredAndThirtyNine,
  ThreeHundredAndThirtyNine$inboundSchema,
  ThreeHundredAndThirtyOne,
  ThreeHundredAndThirtyOne$inboundSchema,
  ThreeHundredAndThirtySeven,
  ThreeHundredAndThirtySeven$inboundSchema,
  ThreeHundredAndThirtySix,
  ThreeHundredAndThirtySix$inboundSchema,
  ThreeHundredAndThirtyThree,
  ThreeHundredAndThirtyThree$inboundSchema,
  ThreeHundredAndThirtyTwo,
  ThreeHundredAndThirtyTwo$inboundSchema,
  ThreeHundredAndThree,
  ThreeHundredAndThree$inboundSchema,
  ThreeHundredAndTwelve,
  ThreeHundredAndTwelve$inboundSchema,
  ThreeHundredAndTwenty,
  ThreeHundredAndTwenty$inboundSchema,
  ThreeHundredAndTwentyEight,
  ThreeHundredAndTwentyEight$inboundSchema,
  ThreeHundredAndTwentyFive,
  ThreeHundredAndTwentyFive$inboundSchema,
  ThreeHundredAndTwentyFour,
  ThreeHundredAndTwentyFour$inboundSchema,
  ThreeHundredAndTwentyNine,
  ThreeHundredAndTwentyNine$inboundSchema,
  ThreeHundredAndTwentyOne,
  ThreeHundredAndTwentyOne$inboundSchema,
  ThreeHundredAndTwentySeven,
  ThreeHundredAndTwentySeven$inboundSchema,
  ThreeHundredAndTwentySix,
  ThreeHundredAndTwentySix$inboundSchema,
  ThreeHundredAndTwentyThree,
  ThreeHundredAndTwentyThree$inboundSchema,
  ThreeHundredAndTwentyTwo,
  ThreeHundredAndTwentyTwo$inboundSchema,
  ThreeHundredAndTwo,
  ThreeHundredAndTwo$inboundSchema,
  TwoHundredAndEighty,
  TwoHundredAndEighty$inboundSchema,
  TwoHundredAndEightyEight,
  TwoHundredAndEightyEight$inboundSchema,
  TwoHundredAndEightyFive,
  TwoHundredAndEightyFive$inboundSchema,
  TwoHundredAndEightyFour,
  TwoHundredAndEightyFour$inboundSchema,
  TwoHundredAndEightyNine,
  TwoHundredAndEightyNine$inboundSchema,
  TwoHundredAndEightyOne,
  TwoHundredAndEightyOne$inboundSchema,
  TwoHundredAndEightySeven,
  TwoHundredAndEightySeven$inboundSchema,
  TwoHundredAndEightySix,
  TwoHundredAndEightySix$inboundSchema,
  TwoHundredAndEightyThree,
  TwoHundredAndEightyThree$inboundSchema,
  TwoHundredAndEightyTwo,
  TwoHundredAndEightyTwo$inboundSchema,
  TwoHundredAndNinety,
  TwoHundredAndNinety$inboundSchema,
  TwoHundredAndNinetyEight,
  TwoHundredAndNinetyEight$inboundSchema,
  TwoHundredAndNinetyFive,
  TwoHundredAndNinetyFive$inboundSchema,
  TwoHundredAndNinetyFour,
  TwoHundredAndNinetyFour$inboundSchema,
  TwoHundredAndNinetyNine,
  TwoHundredAndNinetyNine$inboundSchema,
  TwoHundredAndNinetyOne,
  TwoHundredAndNinetyOne$inboundSchema,
  TwoHundredAndNinetySeven,
  TwoHundredAndNinetySeven$inboundSchema,
  TwoHundredAndNinetySix,
  TwoHundredAndNinetySix$inboundSchema,
  TwoHundredAndNinetyThree,
  TwoHundredAndNinetyThree$inboundSchema,
  TwoHundredAndNinetyTwo,
  TwoHundredAndNinetyTwo$inboundSchema,
  TwoHundredAndSeventyEight,
  TwoHundredAndSeventyEight$inboundSchema,
  TwoHundredAndSeventyNine,
  TwoHundredAndSeventyNine$inboundSchema,
  TwoHundredAndSeventySeven,
  TwoHundredAndSeventySeven$inboundSchema,
} from "./twohundredandseventyseven.js";
import {
  FourHundred,
  FourHundred$inboundSchema,
  FourHundredAndFive,
  FourHundredAndFive$inboundSchema,
  FourHundredAndFour,
  FourHundredAndFour$inboundSchema,
  FourHundredAndOne,
  FourHundredAndOne$inboundSchema,
  FourHundredAndSeven,
  FourHundredAndSeven$inboundSchema,
  FourHundredAndSix,
  FourHundredAndSix$inboundSchema,
  FourHundredAndThree,
  FourHundredAndThree$inboundSchema,
  FourHundredAndTwo,
  FourHundredAndTwo$inboundSchema,
  ThreeHundredAndEighty,
  ThreeHundredAndEighty$inboundSchema,
  ThreeHundredAndEightyEight,
  ThreeHundredAndEightyEight$inboundSchema,
  ThreeHundredAndEightyFive,
  ThreeHundredAndEightyFive$inboundSchema,
  ThreeHundredAndEightyFour,
  ThreeHundredAndEightyFour$inboundSchema,
  ThreeHundredAndEightyNine,
  ThreeHundredAndEightyNine$inboundSchema,
  ThreeHundredAndEightyOne,
  ThreeHundredAndEightyOne$inboundSchema,
  ThreeHundredAndEightySeven,
  ThreeHundredAndEightySeven$inboundSchema,
  ThreeHundredAndEightySix,
  ThreeHundredAndEightySix$inboundSchema,
  ThreeHundredAndEightyThree,
  ThreeHundredAndEightyThree$inboundSchema,
  ThreeHundredAndEightyTwo,
  ThreeHundredAndEightyTwo$inboundSchema,
  ThreeHundredAndFifty,
  ThreeHundredAndFifty$inboundSchema,
  ThreeHundredAndFiftyEight,
  ThreeHundredAndFiftyEight$inboundSchema,
  ThreeHundredAndFiftyFive,
  ThreeHundredAndFiftyFive$inboundSchema,
  ThreeHundredAndFiftyFour,
  ThreeHundredAndFiftyFour$inboundSchema,
  ThreeHundredAndFiftyNine,
  ThreeHundredAndFiftyNine$inboundSchema,
  ThreeHundredAndFiftyOne,
  ThreeHundredAndFiftyOne$inboundSchema,
  ThreeHundredAndFiftySeven,
  ThreeHundredAndFiftySeven$inboundSchema,
  ThreeHundredAndFiftySix,
  ThreeHundredAndFiftySix$inboundSchema,
  ThreeHundredAndFiftyThree,
  ThreeHundredAndFiftyThree$inboundSchema,
  ThreeHundredAndFiftyTwo,
  ThreeHundredAndFiftyTwo$inboundSchema,
  ThreeHundredAndFortyEight,
  ThreeHundredAndFortyEight$inboundSchema,
  ThreeHundredAndFortyFive,
  ThreeHundredAndFortyFive$inboundSchema,
  ThreeHundredAndFortyFour,
  ThreeHundredAndFortyFour$inboundSchema,
  ThreeHundredAndFortyNine,
  ThreeHundredAndFortyNine$inboundSchema,
  ThreeHundredAndFortyOne,
  ThreeHundredAndFortyOne$inboundSchema,
  ThreeHundredAndFortySeven,
  ThreeHundredAndFortySeven$inboundSchema,
  ThreeHundredAndFortySix,
  ThreeHundredAndFortySix$inboundSchema,
  ThreeHundredAndFortyThree,
  ThreeHundredAndFortyThree$inboundSchema,
  ThreeHundredAndFortyTwo,
  ThreeHundredAndFortyTwo$inboundSchema,
  ThreeHundredAndNinety,
  ThreeHundredAndNinety$inboundSchema,
  ThreeHundredAndNinetyEight,
  ThreeHundredAndNinetyEight$inboundSchema,
  ThreeHundredAndNinetyFive,
  ThreeHundredAndNinetyFive$inboundSchema,
  ThreeHundredAndNinetyFour,
  ThreeHundredAndNinetyFour$inboundSchema,
  ThreeHundredAndNinetyNine,
  ThreeHundredAndNinetyNine$inboundSchema,
  ThreeHundredAndNinetyOne,
  ThreeHundredAndNinetyOne$inboundSchema,
  ThreeHundredAndNinetySeven,
  ThreeHundredAndNinetySeven$inboundSchema,
  ThreeHundredAndNinetySix,
  ThreeHundredAndNinetySix$inboundSchema,
  ThreeHundredAndNinetyThree,
  ThreeHundredAndNinetyThree$inboundSchema,
  ThreeHundredAndNinetyTwo,
  ThreeHundredAndNinetyTwo$inboundSchema,
  ThreeHundredAndSeventy,
  ThreeHundredAndSeventy$inboundSchema,
  ThreeHundredAndSeventyEight,
  ThreeHundredAndSeventyEight$inboundSchema,
  ThreeHundredAndSeventyFive,
  ThreeHundredAndSeventyFive$inboundSchema,
  ThreeHundredAndSeventyFour,
  ThreeHundredAndSeventyFour$inboundSchema,
  ThreeHundredAndSeventyNine,
  ThreeHundredAndSeventyNine$inboundSchema,
  ThreeHundredAndSeventyOne,
  ThreeHundredAndSeventyOne$inboundSchema,
  ThreeHundredAndSeventySeven,
  ThreeHundredAndSeventySeven$inboundSchema,
  ThreeHundredAndSeventySix,
  ThreeHundredAndSeventySix$inboundSchema,
  ThreeHundredAndSeventyThree,
  ThreeHundredAndSeventyThree$inboundSchema,
  ThreeHundredAndSeventyTwo,
  ThreeHundredAndSeventyTwo$inboundSchema,
  ThreeHundredAndSixty,
  ThreeHundredAndSixty$inboundSchema,
  ThreeHundredAndSixtyEight,
  ThreeHundredAndSixtyEight$inboundSchema,
  ThreeHundredAndSixtyFive,
  ThreeHundredAndSixtyFive$inboundSchema,
  ThreeHundredAndSixtyFour,
  ThreeHundredAndSixtyFour$inboundSchema,
  ThreeHundredAndSixtyNine,
  ThreeHundredAndSixtyNine$inboundSchema,
  ThreeHundredAndSixtyOne,
  ThreeHundredAndSixtyOne$inboundSchema,
  ThreeHundredAndSixtySeven,
  ThreeHundredAndSixtySeven$inboundSchema,
  ThreeHundredAndSixtySix,
  ThreeHundredAndSixtySix$inboundSchema,
  ThreeHundredAndSixtyThree,
  ThreeHundredAndSixtyThree$inboundSchema,
  ThreeHundredAndSixtyTwo,
  ThreeHundredAndSixtyTwo$inboundSchema,
} from "./usereventpayload340budget.js";

export type PayloadRule = {
  id: string;
  type: string;
  model?: string | undefined;
};

/**
 * The payload of the event, if requested.
 */
export type ThirtyTwo = {
  rule: PayloadRule;
};

export type Rule = {
  id: string;
  type: string;
  model?: string | undefined;
  rewriteModel?: string | undefined;
};

/**
 * The payload of the event, if requested.
 */
export type ThirtyOne = {
  rule: Rule;
};

export const DefaultMode = {
  Days: "days",
  UntilRequested: "until-requested",
} as const;
export type DefaultMode = ClosedEnum<typeof DefaultMode>;

export const CeilingMode = {
  Days: "days",
  UntilRequested: "until-requested",
} as const;
export type CeilingMode = ClosedEnum<typeof CeilingMode>;

export type Retention = {
  defaultMode: DefaultMode;
  defaultDays?: number | undefined;
  ceilingMode: CeilingMode;
  ceilingDays?: number | undefined;
};

/**
 * The payload of the event, if requested.
 */
export type Thirty = {
  retention: Retention;
};

/**
 * The payload of the event, if requested.
 */
export type TwentyNine = {
  regions: Array<string>;
};

export type PiiRedaction = {
  from: boolean;
  to: boolean;
};

/**
 * The payload of the event, if requested.
 */
export type TwentyEight = {
  piiRedaction: PiiRedaction;
  moderationPolicyCount: number;
  policiesAdded: Array<string>;
  policiesRemoved: Array<string>;
  policiesModified: Array<string>;
};

export type PrivateProvider = {
  slug: string;
};

/**
 * The payload of the event, if requested.
 */
export type TwentySeven = {
  privateProvider: PrivateProvider;
};

export type PayloadPrivateModel = {
  slug: string;
};

/**
 * The payload of the event, if requested.
 */
export type TwentySix = {
  privateModel: PayloadPrivateModel;
};

export type PrivateModel = {
  slug: string;
  providerSlug: string;
};

/**
 * The payload of the event, if requested.
 */
export type TwentyFive = {
  privateModel: PrivateModel;
};

/**
 * The payload of the event, if requested.
 */
export type TwentyFour = {
  added: Array<string>;
  removed: Array<string>;
};

/**
 * The payload of the event, if requested.
 */
export type TwentyThree = {
  amount: string;
  purchaseIntentId: string;
};

/**
 * The payload of the event, if requested.
 */
export type TwentyTwo = {
  enabled: boolean;
};

export type PayloadCredential = {
  id: string;
  name: string;
  providerSlug: string;
};

/**
 * The payload of the event, if requested.
 */
export type TwentyOne = {
  credential: PayloadCredential;
  added: Array<string>;
  removed: Array<string>;
  changed: Array<string>;
};

export type Credential = {
  id: string;
  name: string;
  providerSlug: string;
};

/**
 * The payload of the event, if requested.
 */
export type Twenty = {
  credential: Credential;
};

export const PayloadScopeType = {
  Project: "project",
  Team: "team",
  User: "user",
} as const;
export type PayloadScopeType = ClosedEnum<typeof PayloadScopeType>;

export const UserEventPayload19RefreshPeriod = {
  Daily: "daily",
  Monthly: "monthly",
  None: "none",
  Weekly: "weekly",
} as const;
export type UserEventPayload19RefreshPeriod = ClosedEnum<
  typeof UserEventPayload19RefreshPeriod
>;

/**
 * Spend budget on an AI Gateway API key, as surfaced in activity messages. Defined locally (rather than imported from `@api/pubsub-types`) because `@api/pubsub-types` already depends on `@api/events`; importing it here would create a circular dependency. Must stay structurally aligned with `APIKeyBudget` in `@api/pubsub-types/event-payloads/api-keys`.
 */
export type UserEventPayload19Budget = {
  /**
   * Spend cap, in dollars.
   */
  limitAmount: number;
  refreshPeriod: UserEventPayload19RefreshPeriod;
  alertThresholds?: Array<number> | undefined;
};

export const UserEventPayload19Change = {
  Disable: "disable",
  Enable: "enable",
  Remove: "remove",
  Set: "set",
} as const;
export type UserEventPayload19Change = ClosedEnum<
  typeof UserEventPayload19Change
>;

/**
 * The payload of the event, if requested.
 */
export type Nineteen = {
  scopeType: PayloadScopeType;
  /**
   * Associates the event with a project for filtering; not rendered.
   */
  projectId?: string | undefined;
  projectName?: string | undefined;
  /**
   * Associates the event with a member for filtering; not rendered.
   */
  userId?: string | undefined;
  userName?: string | undefined;
  /**
   * Spend budget on an AI Gateway API key, as surfaced in activity messages. Defined locally (rather than imported from `@api/pubsub-types`) because `@api/pubsub-types` already depends on `@api/events`; importing it here would create a circular dependency. Must stay structurally aligned with `APIKeyBudget` in `@api/pubsub-types/event-payloads/api-keys`.
   */
  budget?: UserEventPayload19Budget | null | undefined;
  change: UserEventPayload19Change;
};

export const ScopeType = {
  ApiKey: "api-key",
  Project: "project",
  Team: "team",
  User: "user",
} as const;
export type ScopeType = ClosedEnum<typeof ScopeType>;

export const UserEventPayloadRefreshPeriod = {
  Daily: "daily",
  Monthly: "monthly",
  None: "none",
  Weekly: "weekly",
} as const;
export type UserEventPayloadRefreshPeriod = ClosedEnum<
  typeof UserEventPayloadRefreshPeriod
>;

/**
 * Spend budget on an AI Gateway API key, as surfaced in activity messages. Defined locally (rather than imported from `@api/pubsub-types`) because `@api/pubsub-types` already depends on `@api/events`; importing it here would create a circular dependency. Must stay structurally aligned with `APIKeyBudget` in `@api/pubsub-types/event-payloads/api-keys`.
 */
export type UserEventPayloadBudget = {
  /**
   * Spend cap, in dollars.
   */
  limitAmount: number;
  refreshPeriod: UserEventPayloadRefreshPeriod;
  alertThresholds?: Array<number> | undefined;
};

export const UserEventPayloadChange = {
  Disable: "disable",
  Enable: "enable",
  Remove: "remove",
  Set: "set",
} as const;
export type UserEventPayloadChange = ClosedEnum<typeof UserEventPayloadChange>;

/**
 * The payload of the event, if requested.
 */
export type Eighteen = {
  scopeType: ScopeType;
  /**
   * Spend budget on an AI Gateway API key, as surfaced in activity messages. Defined locally (rather than imported from `@api/pubsub-types`) because `@api/pubsub-types` already depends on `@api/events`; importing it here would create a circular dependency. Must stay structurally aligned with `APIKeyBudget` in `@api/pubsub-types/event-payloads/api-keys`.
   */
  budget?: UserEventPayloadBudget | null | undefined;
  change: UserEventPayloadChange;
};

export const PayloadChange = {
  Disable: "disable",
  DisableCommitment: "disable-commitment",
  Enable: "enable",
  EnableCommitment: "enable-commitment",
  Update: "update",
} as const;
export type PayloadChange = ClosedEnum<typeof PayloadChange>;

export type Settings = {
  minimumBalance: string;
  targetBalance: string;
  maximumMonthlySpend: string | null;
};

export type Previous = {
  minimumBalance: string;
  targetBalance: string;
  maximumMonthlySpend: string | null;
};

export type Commitment = {
  maximumMonthlySpend: string | null;
  deferredInvoiceTargetBalance: string;
};

/**
 * The payload of the event, if requested.
 */
export type Seventeen = {
  change: PayloadChange;
  settings?: Settings | undefined;
  previous?: Previous | undefined;
  commitment?: Commitment | undefined;
};

export type UserEventPayloadApiKey = {
  id: string;
  name: string;
};

export const PayloadRefreshPeriod = {
  Daily: "daily",
  Monthly: "monthly",
  None: "none",
  Weekly: "weekly",
} as const;
export type PayloadRefreshPeriod = ClosedEnum<typeof PayloadRefreshPeriod>;

/**
 * Spend budget on an AI Gateway API key, as surfaced in activity messages. Defined locally (rather than imported from `@api/pubsub-types`) because `@api/pubsub-types` already depends on `@api/events`; importing it here would create a circular dependency. Must stay structurally aligned with `APIKeyBudget` in `@api/pubsub-types/event-payloads/api-keys`.
 */
export type PayloadBudget = {
  /**
   * Spend cap, in dollars.
   */
  limitAmount: number;
  refreshPeriod: PayloadRefreshPeriod;
  alertThresholds?: Array<number> | undefined;
};

export const Change = {
  Disable: "disable",
  Enable: "enable",
  Remove: "remove",
  Set: "set",
} as const;
export type Change = ClosedEnum<typeof Change>;

/**
 * The payload of the event, if requested.
 */
export type Sixteen = {
  apiKey: UserEventPayloadApiKey;
  /**
   * Spend budget on an AI Gateway API key, as surfaced in activity messages. Defined locally (rather than imported from `@api/pubsub-types`) because `@api/pubsub-types` already depends on `@api/events`; importing it here would create a circular dependency. Must stay structurally aligned with `APIKeyBudget` in `@api/pubsub-types/event-payloads/api-keys`.
   */
  budget?: PayloadBudget | null | undefined;
  change: Change;
};

export type PayloadApiKey = {
  id: string;
  name: string;
};

/**
 * The payload of the event, if requested.
 */
export type Fifteen = {
  apiKey: PayloadApiKey;
};

export type UserEventPayload14ApiKey = {
  id: string;
  name: string;
};

export const RefreshPeriod = {
  Daily: "daily",
  Monthly: "monthly",
  None: "none",
  Weekly: "weekly",
} as const;
export type RefreshPeriod = ClosedEnum<typeof RefreshPeriod>;

/**
 * Spend budget on an AI Gateway API key, as surfaced in activity messages. Defined locally (rather than imported from `@api/pubsub-types`) because `@api/pubsub-types` already depends on `@api/events`; importing it here would create a circular dependency. Must stay structurally aligned with `APIKeyBudget` in `@api/pubsub-types/event-payloads/api-keys`.
 */
export type Budget = {
  /**
   * Spend cap, in dollars.
   */
  limitAmount: number;
  refreshPeriod: RefreshPeriod;
  alertThresholds?: Array<number> | undefined;
};

/**
 * The payload of the event, if requested.
 */
export type Fourteen = {
  apiKey: UserEventPayload14ApiKey;
  /**
   * Spend budget on an AI Gateway API key, as surfaced in activity messages. Defined locally (rather than imported from `@api/pubsub-types`) because `@api/pubsub-types` already depends on `@api/events`; importing it here would create a circular dependency. Must stay structurally aligned with `APIKeyBudget` in `@api/pubsub-types/event-payloads/api-keys`.
   */
  budget?: Budget | null | undefined;
  /**
   * True when the key was created with a ZDR exemption.
   */
  zdrExemption?: boolean | undefined;
  /**
   * True when the key was created to bypass all of the team's restrictions (the ZDR-only model restriction and the provider/model allowlist).
   */
  bypassAll?: boolean | undefined;
};

/**
 * Present on new events only. Equivalent to "stripe" when absent.
 */
export const UserEventPayload13Provider = {
  Chatgpt: "chatgpt",
  Stripe: "stripe",
} as const;
/**
 * Present on new events only. Equivalent to "stripe" when absent.
 */
export type UserEventPayload13Provider = ClosedEnum<
  typeof UserEventPayload13Provider
>;

export const FromPlan = {
  Hobby: "hobby",
  Pro: "pro",
} as const;
export type FromPlan = ClosedEnum<typeof FromPlan>;

export const ToPlan = {
  Hobby: "hobby",
  Pro: "pro",
} as const;
export type ToPlan = ClosedEnum<typeof ToPlan>;

/**
 * The payload of the event, if requested.
 */
export type Thirteen = {
  /**
   * Present on new events only. Equivalent to "stripe" when absent.
   */
  provider?: UserEventPayload13Provider | undefined;
  /**
   * Present on new events only. Equivalent to `stripeAccount` when absent.
   */
  providerAccount?: string | undefined;
  /**
   * Present when `provider` is "stripe". Equivalent to `providerAccount`.
   */
  stripeAccount?: string | undefined;
  /**
   * Present when `provider` is "stripe".
   */
  stripeOrganisation?: string | undefined;
  teamId: string;
  resourceId: string;
  fromPlan: FromPlan;
  toPlan: ToPlan;
};

/**
 * Present on new events only. Equivalent to "stripe" when absent.
 */
export const UserEventPayload12Provider = {
  Chatgpt: "chatgpt",
  Stripe: "stripe",
} as const;
/**
 * Present on new events only. Equivalent to "stripe" when absent.
 */
export type UserEventPayload12Provider = ClosedEnum<
  typeof UserEventPayload12Provider
>;

export const ActorType = {
  Admin: "admin",
} as const;
export type ActorType = ClosedEnum<typeof ActorType>;

/**
 * The payload of the event, if requested.
 */
export type Twelve = {
  /**
   * Present on new events only. Equivalent to "stripe" when absent.
   */
  provider?: UserEventPayload12Provider | undefined;
  /**
   * Present on new events only. Equivalent to `stripeAccount` when absent.
   */
  providerAccount?: string | undefined;
  /**
   * Present when `provider` is "stripe". Equivalent to `providerAccount`.
   */
  stripeAccount?: string | undefined;
  /**
   * Present when `provider` is "stripe".
   */
  stripeOrganisation?: string | undefined;
  teamId: string;
  /**
   * Okta user id.
   */
  actorId: string;
  actorType: ActorType;
  actorName?: string | undefined;
};

/**
 * Present on new events only. Equivalent to "stripe" when absent.
 */
export const UserEventPayload11Provider = {
  Chatgpt: "chatgpt",
  Stripe: "stripe",
} as const;
/**
 * Present on new events only. Equivalent to "stripe" when absent.
 */
export type UserEventPayload11Provider = ClosedEnum<
  typeof UserEventPayload11Provider
>;

/**
 * The payload of the event, if requested.
 */
export type Eleven = {
  /**
   * Present on new events only. Equivalent to "stripe" when absent.
   */
  provider?: UserEventPayload11Provider | undefined;
  /**
   * Present on new events only. Equivalent to `stripeAccount` when absent.
   */
  providerAccount?: string | undefined;
  /**
   * Present when `provider` is "stripe". Equivalent to `providerAccount`.
   */
  stripeAccount?: string | undefined;
  resourceId: string;
  projectName: string;
};

/**
 * Present on new events only. Equivalent to "stripe" when absent.
 */
export const UserEventPayload10Provider = {
  Chatgpt: "chatgpt",
  Stripe: "stripe",
} as const;
/**
 * Present on new events only. Equivalent to "stripe" when absent.
 */
export type UserEventPayload10Provider = ClosedEnum<
  typeof UserEventPayload10Provider
>;

/**
 * The payload of the event, if requested.
 */
export type Ten = {
  /**
   * Present on new events only. Equivalent to "stripe" when absent.
   */
  provider?: UserEventPayload10Provider | undefined;
  /**
   * Present on new events only. Equivalent to `stripeAccount` when absent.
   */
  providerAccount?: string | undefined;
  /**
   * Present when `provider` is "stripe". Equivalent to `providerAccount`.
   */
  stripeAccount?: string | undefined;
  /**
   * Present when `provider` is "stripe".
   */
  stripeOrganisation?: string | undefined;
  reason: string;
  blockCode: string;
};

/**
 * Present on new events only. Equivalent to "stripe" when absent.
 */
export const UserEventPayloadProvider = {
  Chatgpt: "chatgpt",
  Stripe: "stripe",
} as const;
/**
 * Present on new events only. Equivalent to "stripe" when absent.
 */
export type UserEventPayloadProvider = ClosedEnum<
  typeof UserEventPayloadProvider
>;

/**
 * The payload of the event, if requested.
 */
export type Nine = {
  /**
   * Present on new events only. Equivalent to "stripe" when absent.
   */
  provider?: UserEventPayloadProvider | undefined;
  /**
   * Present on new events only. Equivalent to `stripeAccount` when absent.
   */
  providerAccount?: string | undefined;
  /**
   * Present when `provider` is "stripe". Equivalent to `providerAccount`.
   */
  stripeAccount?: string | undefined;
  /**
   * Present when `provider` is "stripe".
   */
  stripeOrganisation?: string | undefined;
  teamId: string;
  teamSlug: string;
};

/**
 * Present on new events only. Equivalent to "stripe" when absent.
 */
export const PayloadProvider = {
  Chatgpt: "chatgpt",
  Stripe: "stripe",
} as const;
/**
 * Present on new events only. Equivalent to "stripe" when absent.
 */
export type PayloadProvider = ClosedEnum<typeof PayloadProvider>;

/**
 * The payload of the event, if requested.
 */
export type Eight = {
  /**
   * Present on new events only. Equivalent to "stripe" when absent.
   */
  provider?: PayloadProvider | undefined;
  /**
   * Present on new events only. Equivalent to `stripeAccount` when absent.
   */
  providerAccount?: string | undefined;
  /**
   * Present when `provider` is "stripe". Equivalent to `providerAccount`.
   */
  stripeAccount?: string | undefined;
  /**
   * Present when `provider` is "stripe".
   */
  stripeOrganisation?: string | undefined;
  teamId: string;
};

/**
 * Present on new events only. Equivalent to "stripe" when absent.
 */
export const Provider = {
  Chatgpt: "chatgpt",
  Stripe: "stripe",
} as const;
/**
 * Present on new events only. Equivalent to "stripe" when absent.
 */
export type Provider = ClosedEnum<typeof Provider>;

/**
 * The payload of the event, if requested.
 */
export type Seven = {
  /**
   * Present on new events only. Equivalent to "stripe" when absent.
   */
  provider?: Provider | undefined;
  /**
   * Present on new events only. Equivalent to `stripeAccount` when absent.
   */
  providerAccount?: string | undefined;
  /**
   * Present when `provider` is "stripe". Equivalent to `providerAccount`.
   */
  stripeAccount?: string | undefined;
  /**
   * Present when `provider` is "stripe".
   */
  stripeOrganisation?: string | undefined;
  teamId: string;
  accountRequestId: string;
};

/**
 * The payload of the event, if requested.
 */
export type Six = {
  projectId: string;
  projectName: string;
  policyId: string;
};

export const UserEventPayload5Action = {
  Read: "read",
} as const;
export type UserEventPayload5Action = ClosedEnum<
  typeof UserEventPayload5Action
>;

/**
 * The payload of the event, if requested.
 */
export type Five = {
  action: UserEventPayload5Action;
  projectName?: string | undefined;
  projectId?: string | undefined;
  environment: Array<string>;
};

export const UserEventPayload4Action = {
  Added: "added",
  Deleted: "deleted",
  Rotated: "rotated",
} as const;
export type UserEventPayload4Action = ClosedEnum<
  typeof UserEventPayload4Action
>;

/**
 * The payload of the event, if requested.
 */
export type Payload4 = {
  action: UserEventPayload4Action;
  label?: string | undefined;
  projectName?: string | undefined;
  projectId?: string | undefined;
  environment: string;
};

export const UserEventPayloadAction = {
  Created: "created",
  Deleted: "deleted",
  Transitioned: "transitioned",
  Updated: "updated",
} as const;
export type UserEventPayloadAction = ClosedEnum<typeof UserEventPayloadAction>;

/**
 * The payload of the event, if requested.
 */
export type Payload3 = {
  action: UserEventPayloadAction;
  id: string;
  name: string;
  slug: string;
  state: string;
  projectId: string;
  projectName?: string | undefined;
};

export const PayloadAction = {
  Archived: "archived",
  Created: "created",
  Deleted: "deleted",
  Unarchived: "unarchived",
  Updated: "updated",
} as const;
export type PayloadAction = ClosedEnum<typeof PayloadAction>;

/**
 * The payload of the event, if requested.
 */
export type Payload2 = {
  action: PayloadAction;
  id: string;
  slug: string;
  projectId: string;
  projectName?: string | undefined;
};

/**
 * The payload of the event, if requested.
 */
export type Payload1 = {};

export type Payload =
  | ThreeHundredAndFiftySeven
  | OneHundredAndSeventySeven
  | OneHundredAndSixtySeven
  | TwoHundredAndTwentyThree
  | OneHundredAndSeventyEight
  | FourHundredAndFortyTwo
  | OneHundredAndFourteen
  | OneHundredAndEighty
  | OneHundredAndEightyOne
  | TwoHundredAndFifteen
  | TwoHundredAndSeventyEight
  | Payload3
  | OneHundredAndFiftyFour
  | OneHundredAndSeventyOne
  | OneHundredAndSeventyFive
  | OneHundredAndSeventyNine
  | TwoHundredAndFiftySix
  | ThreeHundredAndEighteen
  | ThreeHundredAndThirtySix
  | ThreeHundredAndThirtyEight
  | TwentyEight
  | OneHundredAndEight
  | OneHundredAndEleven
  | OneHundredAndTwelve
  | OneHundredAndThirteen
  | OneHundredAndFifteen
  | OneHundredAndTwentyTwo
  | OneHundredAndSixtyOne
  | OneHundredAndSeventy
  | OneHundredAndSeventySix
  | TwoHundredAndThree
  | TwoHundredAndSeven
  | TwoHundredAndSixtySix
  | TwoHundredAndEighty
  | TwoHundredAndNinety
  | ThreeHundredAndFiftySix
  | FourHundredAndTwentySix
  | FourHundredAndTwentyEight
  | FourHundredAndFortyFive
  | Payload2
  | Thirteen
  | TwentyOne
  | SixtyThree
  | SixtyFour
  | EightyOne
  | EightyTwo
  | OneHundredAndTwo
  | OneHundredAndFour
  | OneHundredAndTen
  | OneHundredAndTwenty
  | OneHundredAndFortyOne
  | OneHundredAndFortyFive
  | OneHundredAndSixtyEight
  | OneHundredAndSixtyNine
  | OneHundredAndEightyThree
  | OneHundredAndEightySeven
  | TwoHundredAndTwo
  | TwoHundredAndThirteen
  | TwoHundredAndFourteen
  | TwoHundredAndSixteen
  | TwoHundredAndTwentyOne
  | TwoHundredAndTwentyFour
  | TwoHundredAndFortyTwo
  | TwoHundredAndFortyFive
  | TwoHundredAndFiftyThree
  | TwoHundredAndFiftySeven
  | TwoHundredAndFiftyNine
  | TwoHundredAndSixty
  | TwoHundredAndSixtyOne
  | TwoHundredAndSixtyTwo
  | TwoHundredAndSeventySeven
  | TwoHundredAndSeventyNine
  | TwoHundredAndEightyThree
  | TwoHundredAndNinetyNine
  | ThreeHundredAndThree
  | ThreeHundredAndFive
  | ThreeHundredAndTwelve
  | ThreeHundredAndThirteen
  | ThreeHundredAndFourteen
  | ThreeHundredAndSixteen
  | ThreeHundredAndTwentyFour
  | ThreeHundredAndTwentyFive
  | ThreeHundredAndTwentyEight
  | ThreeHundredAndThirtyFour
  | ThreeHundredAndThirtySeven
  | ThreeHundredAndFortySeven
  | ThreeHundredAndFortyEight
  | ThreeHundredAndFiftyFive
  | ThreeHundredAndSixtyThree
  | ThreeHundredAndSeventyEight
  | ThreeHundredAndNinetyFive
  | FourHundredAndTwentyOne
  | FourHundredAndTwentyThree
  | FourHundredAndTwentySeven
  | FourHundredAndTwentyNine
  | FourHundredAndThirty
  | FourHundredAndThirtyOne
  | FourHundredAndFortyEight
  | FourHundredAndFortyNine
  | Six
  | Twelve
  | FortyFour
  | FortyNine
  | SeventyTwo
  | SeventyFive
  | EightyFive
  | EightySix
  | EightySeven
  | EightyEight
  | NinetySeven
  | OneHundredAndNine
  | OneHundredAndTwentyThree
  | OneHundredAndTwentyFive
  | OneHundredAndTwentySeven
  | OneHundredAndTwentyEight
  | OneHundredAndTwentyNine
  | OneHundredAndThirty
  | OneHundredAndThirtySix
  | OneHundredAndThirtySeven
  | OneHundredAndThirtyEight
  | OneHundredAndForty
  | OneHundredAndFortyFour
  | OneHundredAndFortySix
  | OneHundredAndFiftySix
  | OneHundredAndFiftySeven
  | OneHundredAndFiftyEight
  | OneHundredAndSixtyTwo
  | OneHundredAndSixtyThree
  | OneHundredAndSixtyFour
  | OneHundredAndSeventyTwo
  | OneHundredAndSeventyThree
  | OneHundredAndEightyTwo
  | OneHundredAndEightySix
  | OneHundredAndNinetyThree
  | OneHundredAndNinetySix
  | OneHundredAndNinetyNine
  | TwoHundredAndFour
  | TwoHundredAndSix
  | TwoHundredAndEight
  | TwoHundredAndNine
  | TwoHundredAndTen
  | TwoHundredAndEleven
  | TwoHundredAndTwelve
  | TwoHundredAndSeventeen
  | TwoHundredAndEighteen
  | TwoHundredAndNineteen
  | TwoHundredAndTwenty
  | TwoHundredAndTwentySeven
  | TwoHundredAndThirtyThree
  | TwoHundredAndThirtyFive
  | TwoHundredAndThirtySix
  | TwoHundredAndThirtyEight
  | TwoHundredAndForty
  | TwoHundredAndFortyOne
  | TwoHundredAndFortyThree
  | TwoHundredAndFortyFour
  | TwoHundredAndFortySix
  | TwoHundredAndFiftyOne
  | TwoHundredAndFiftyFour
  | TwoHundredAndFiftyFive
  | TwoHundredAndSixtyThree
  | TwoHundredAndSixtyFour
  | TwoHundredAndSixtyFive
  | TwoHundredAndSixtySeven
  | TwoHundredAndSixtyEight
  | TwoHundredAndSixtyNine
  | TwoHundredAndSeventy
  | TwoHundredAndSeventyOne
  | TwoHundredAndSeventyFour
  | TwoHundredAndSeventyFive
  | TwoHundredAndSeventySix
  | TwoHundredAndEightyOne
  | TwoHundredAndEightyEight
  | TwoHundredAndNinetyOne
  | TwoHundredAndNinetyTwo
  | ThreeHundredAndSix
  | ThreeHundredAndSeven
  | ThreeHundredAndEight
  | ThreeHundredAndNine
  | ThreeHundredAndTen
  | ThreeHundredAndTwentyOne
  | ThreeHundredAndThirtyNine
  | ThreeHundredAndFiftyOne
  | ThreeHundredAndSixty
  | ThreeHundredAndEightyTwo
  | FourHundredAndFour
  | FourHundredAndTen
  | FourHundredAndEleven
  | FourHundredAndThirteen
  | FourHundredAndTwentyFour
  | FourHundredAndTwentyFive
  | FourHundredAndThirtyFive
  | FourHundredAndThirtySix
  | FourHundredAndThirtySeven
  | FourHundredAndThirtyEight
  | FourHundredAndFortyFour
  | Payload4
  | Five
  | Seven
  | Nine
  | Ten
  | Eleven
  | Sixteen
  | Eighteen
  | Nineteen
  | TwentyThree
  | TwentyFour
  | ThirtySix
  | ThirtySeven
  | ThirtyNine
  | FortyTwo
  | Fifty
  | FiftyThree
  | FiftyFive
  | Sixty
  | SixtyOne
  | SixtyEight
  | SixtyNine
  | Seventy
  | SeventyThree
  | SeventyEight
  | EightyThree
  | NinetyOne
  | NinetyTwo
  | NinetyThree
  | NinetyFour
  | NinetyFive
  | OneHundred
  | OneHundredAndThree
  | OneHundredAndSeventeen
  | OneHundredAndEighteen
  | OneHundredAndTwentyOne
  | OneHundredAndTwentySix
  | OneHundredAndThirtyFour
  | OneHundredAndThirtyNine
  | OneHundredAndFortyTwo
  | OneHundredAndFortyThree
  | OneHundredAndFortySeven
  | OneHundredAndFortyEight
  | OneHundredAndFiftyTwo
  | OneHundredAndSeventyFour
  | OneHundredAndEightyFour
  | OneHundredAndEightyFive
  | OneHundredAndNinety
  | OneHundredAndNinetySeven
  | OneHundredAndNinetyEight
  | TwoHundred
  | TwoHundredAndFive
  | TwoHundredAndTwentyTwo
  | TwoHundredAndTwentyFive
  | TwoHundredAndThirtyOne
  | TwoHundredAndThirtyTwo
  | TwoHundredAndThirtyFour
  | TwoHundredAndThirtyNine
  | TwoHundredAndFortyNine
  | TwoHundredAndFiftyTwo
  | TwoHundredAndFiftyEight
  | TwoHundredAndEightyFour
  | TwoHundredAndEightySix
  | TwoHundredAndEightySeven
  | TwoHundredAndEightyNine
  | TwoHundredAndNinetyThree
  | TwoHundredAndNinetyFour
  | TwoHundredAndNinetySix
  | TwoHundredAndNinetyEight
  | ThreeHundred
  | ThreeHundredAndOne
  | ThreeHundredAndTwo
  | ThreeHundredAndFour
  | ThreeHundredAndEleven
  | ThreeHundredAndFifteen
  | ThreeHundredAndSeventeen
  | ThreeHundredAndTwenty
  | ThreeHundredAndTwentyTwo
  | ThreeHundredAndTwentyThree
  | ThreeHundredAndTwentySix
  | ThreeHundredAndTwentySeven
  | ThreeHundredAndThirty
  | ThreeHundredAndThirtyOne
  | ThreeHundredAndThirtyTwo
  | ThreeHundredAndFortySix
  | ThreeHundredAndFortyNine
  | ThreeHundredAndFiftyEight
  | ThreeHundredAndSixtyOne
  | ThreeHundredAndSixtyFour
  | ThreeHundredAndSixtySix
  | ThreeHundredAndSeventyOne
  | ThreeHundredAndSeventyTwo
  | ThreeHundredAndEighty
  | ThreeHundredAndEightyFive
  | ThreeHundredAndEightySix
  | ThreeHundredAndNinetyOne
  | ThreeHundredAndNinetyThree
  | ThreeHundredAndNinetyEight
  | ThreeHundredAndNinetyNine
  | FourHundredAndTwo
  | FourHundredAndSeven
  | FourHundredAndEight
  | FourHundredAndNine
  | FourHundredAndTwelve
  | FourHundredAndFourteen
  | FourHundredAndFifteen
  | FourHundredAndNineteen
  | FourHundredAndTwenty
  | FourHundredAndTwentyTwo
  | FourHundredAndThirtyThree
  | FourHundredAndForty
  | FourHundredAndFortyThree
  | FourHundredAndFortySeven
  | FourHundredAndFifty
  | Eight
  | Fourteen
  | Fifteen
  | Seventeen
  | Twenty
  | TwentyTwo
  | TwentyFive
  | TwentySix
  | TwentySeven
  | TwentyNine
  | Thirty
  | ThirtyOne
  | ThirtyTwo
  | ThirtyThree
  | ThirtyFour
  | ThirtyFive
  | ThirtyEight
  | FortyThree
  | FiftyFour
  | FiftySix
  | FiftySeven
  | FiftyEight
  | FiftyNine
  | SixtyFive
  | SixtySix
  | SixtySeven
  | SeventyOne
  | SeventyFour
  | SeventySeven
  | SeventyNine
  | EightyFour
  | EightyNine
  | Ninety
  | NinetyEight
  | NinetyNine
  | OneHundredAndOne
  | OneHundredAndFive
  | OneHundredAndSix
  | OneHundredAndSeven
  | OneHundredAndSixteen
  | OneHundredAndNineteen
  | OneHundredAndTwentyFour
  | OneHundredAndThirtyOne
  | OneHundredAndThirtyTwo
  | OneHundredAndThirtyThree
  | OneHundredAndThirtyFive
  | OneHundredAndFortyNine
  | OneHundredAndFiftyNine
  | OneHundredAndSixty
  | OneHundredAndSixtyFive
  | OneHundredAndSixtySix
  | OneHundredAndEightyEight
  | OneHundredAndEightyNine
  | OneHundredAndNinetyOne
  | OneHundredAndNinetyFour
  | OneHundredAndNinetyFive
  | TwoHundredAndOne
  | TwoHundredAndTwentySix
  | TwoHundredAndThirty
  | TwoHundredAndThirtySeven
  | TwoHundredAndFifty
  | TwoHundredAndSeventyTwo
  | TwoHundredAndSeventyThree
  | TwoHundredAndEightyTwo
  | TwoHundredAndEightyFive
  | TwoHundredAndNinetyFive
  | TwoHundredAndNinetySeven
  | ThreeHundredAndNineteen
  | ThreeHundredAndTwentyNine
  | ThreeHundredAndThirtyThree
  | ThreeHundredAndForty
  | ThreeHundredAndFortyOne
  | ThreeHundredAndFortyTwo
  | ThreeHundredAndFortyThree
  | ThreeHundredAndFortyFive
  | ThreeHundredAndFifty
  | ThreeHundredAndFiftyThree
  | ThreeHundredAndFiftyFour
  | ThreeHundredAndSixtyTwo
  | ThreeHundredAndSixtyEight
  | ThreeHundredAndSixtyNine
  | ThreeHundredAndSeventyFour
  | ThreeHundredAndSeventyFive
  | ThreeHundredAndSeventySix
  | ThreeHundredAndSeventySeven
  | ThreeHundredAndSeventyNine
  | ThreeHundredAndEightyOne
  | ThreeHundredAndEightySeven
  | ThreeHundredAndEightyNine
  | ThreeHundredAndNinety
  | ThreeHundredAndNinetyFour
  | ThreeHundredAndNinetySix
  | FourHundred
  | FourHundredAndThree
  | FourHundredAndFive
  | FourHundredAndSix
  | FourHundredAndSixteen
  | FourHundredAndSeventeen
  | FourHundredAndEighteen
  | FourHundredAndThirtyTwo
  | FourHundredAndThirtyFour
  | FourHundredAndThirtyNine
  | FourHundredAndFortyOne
  | FourHundredAndFortySix
  | Payload1
  | Forty
  | FortyOne
  | FortyFive
  | FortySix
  | FortySeven
  | FortyEight
  | FiftyOne
  | FiftyTwo
  | SixtyTwo
  | SeventySix
  | Eighty
  | NinetySix
  | OneHundredAndFifty
  | OneHundredAndFiftyOne
  | OneHundredAndFiftyThree
  | OneHundredAndFiftyFive
  | OneHundredAndNinetyTwo
  | TwoHundredAndTwentyEight
  | TwoHundredAndTwentyNine
  | TwoHundredAndFortySeven
  | TwoHundredAndFortyEight
  | ThreeHundredAndThirtyFive
  | ThreeHundredAndFortyFour
  | ThreeHundredAndFiftyTwo
  | ThreeHundredAndFiftyNine
  | ThreeHundredAndSixtyFive
  | ThreeHundredAndSixtySeven
  | ThreeHundredAndSeventy
  | ThreeHundredAndSeventyThree
  | ThreeHundredAndEightyThree
  | ThreeHundredAndEightyFour
  | ThreeHundredAndEightyEight
  | ThreeHundredAndNinetyTwo
  | ThreeHundredAndNinetySeven
  | FourHundredAndOne;

/**
 * Array of events generated by the User.
 */
export type UserEvent = {
  /**
   * The unique identifier of the Event.
   */
  id: string;
  /**
   * The human-readable text of the Event.
   */
  text: string;
  /**
   * A list of "entities" within the event `text`. Useful for enhancing the displayed text with additional styling and links.
   */
  entities: Array<Entities>;
  /**
   * The type of the event.
   */
  type?: UserEventType | undefined;
  /**
   * The categories that group this event with related event types. An event can belong to multiple categories (e.g. a firewall event is both Firewall and Security). The first entry is the "primary" category. Use the `/events/types` endpoint to discover the full list of categories.
   */
  categories?: Array<Categories> | undefined;
  /**
   * Timestamp (in milliseconds) of when the event was generated.
   */
  createdAt: number;
  /**
   * Metadata for {@link userId}.
   */
  user?: User | undefined;
  principal?: Principal | undefined;
  /**
   * Metadata for {@link viaIds}.
   */
  via?: Array<Via> | undefined;
  /**
   * When the principal who generated the event is a user, this is their ID; otherwise, it is empty.
   */
  userId?: string | undefined;
  /**
   * The ID of the principal who generated the event. The principal is typically a user, but it could also be an app, an integration, etc. The principal may have delegated its authority to an acting party, and so {@link viaIds} should be checked as well.
   */
  principalId: string;
  /**
   * If the principal delegated its authority (for example, a user delegating to an app), then this array contains the ID of the current actor. For example, if `principalId` is "user123" and `viaIds` is `["app456"]`, we can say the event was triggered by - "app456 on behalf of user123", or - "user123 via app4556". Both are equivalent. Arbitrarily long chains of delegation can be represented. For example, if `principalId` is "user123" and `viaIds` is `["service1", "service2"]`, we can say the event was triggered by "user123 via service1 via service2".
   */
  viaIds?: Array<string> | undefined;
  /**
   * The public ID of the token that the principal authenticated with, when the request behind this event carried one.
   */
  tokenId?: string | undefined;
  /**
   * The ID of the session that the principal's token belongs to, when it belongs to one.
   */
  sessionId?: string | undefined;
  requestId?: string | undefined;
  payload?:
    | ThreeHundredAndFiftySeven
    | OneHundredAndSeventySeven
    | OneHundredAndSixtySeven
    | TwoHundredAndTwentyThree
    | OneHundredAndSeventyEight
    | FourHundredAndFortyTwo
    | OneHundredAndFourteen
    | OneHundredAndEighty
    | OneHundredAndEightyOne
    | TwoHundredAndFifteen
    | TwoHundredAndSeventyEight
    | Payload3
    | OneHundredAndFiftyFour
    | OneHundredAndSeventyOne
    | OneHundredAndSeventyFive
    | OneHundredAndSeventyNine
    | TwoHundredAndFiftySix
    | ThreeHundredAndEighteen
    | ThreeHundredAndThirtySix
    | ThreeHundredAndThirtyEight
    | TwentyEight
    | OneHundredAndEight
    | OneHundredAndEleven
    | OneHundredAndTwelve
    | OneHundredAndThirteen
    | OneHundredAndFifteen
    | OneHundredAndTwentyTwo
    | OneHundredAndSixtyOne
    | OneHundredAndSeventy
    | OneHundredAndSeventySix
    | TwoHundredAndThree
    | TwoHundredAndSeven
    | TwoHundredAndSixtySix
    | TwoHundredAndEighty
    | TwoHundredAndNinety
    | ThreeHundredAndFiftySix
    | FourHundredAndTwentySix
    | FourHundredAndTwentyEight
    | FourHundredAndFortyFive
    | Payload2
    | Thirteen
    | TwentyOne
    | SixtyThree
    | SixtyFour
    | EightyOne
    | EightyTwo
    | OneHundredAndTwo
    | OneHundredAndFour
    | OneHundredAndTen
    | OneHundredAndTwenty
    | OneHundredAndFortyOne
    | OneHundredAndFortyFive
    | OneHundredAndSixtyEight
    | OneHundredAndSixtyNine
    | OneHundredAndEightyThree
    | OneHundredAndEightySeven
    | TwoHundredAndTwo
    | TwoHundredAndThirteen
    | TwoHundredAndFourteen
    | TwoHundredAndSixteen
    | TwoHundredAndTwentyOne
    | TwoHundredAndTwentyFour
    | TwoHundredAndFortyTwo
    | TwoHundredAndFortyFive
    | TwoHundredAndFiftyThree
    | TwoHundredAndFiftySeven
    | TwoHundredAndFiftyNine
    | TwoHundredAndSixty
    | TwoHundredAndSixtyOne
    | TwoHundredAndSixtyTwo
    | TwoHundredAndSeventySeven
    | TwoHundredAndSeventyNine
    | TwoHundredAndEightyThree
    | TwoHundredAndNinetyNine
    | ThreeHundredAndThree
    | ThreeHundredAndFive
    | ThreeHundredAndTwelve
    | ThreeHundredAndThirteen
    | ThreeHundredAndFourteen
    | ThreeHundredAndSixteen
    | ThreeHundredAndTwentyFour
    | ThreeHundredAndTwentyFive
    | ThreeHundredAndTwentyEight
    | ThreeHundredAndThirtyFour
    | ThreeHundredAndThirtySeven
    | ThreeHundredAndFortySeven
    | ThreeHundredAndFortyEight
    | ThreeHundredAndFiftyFive
    | ThreeHundredAndSixtyThree
    | ThreeHundredAndSeventyEight
    | ThreeHundredAndNinetyFive
    | FourHundredAndTwentyOne
    | FourHundredAndTwentyThree
    | FourHundredAndTwentySeven
    | FourHundredAndTwentyNine
    | FourHundredAndThirty
    | FourHundredAndThirtyOne
    | FourHundredAndFortyEight
    | FourHundredAndFortyNine
    | Six
    | Twelve
    | FortyFour
    | FortyNine
    | SeventyTwo
    | SeventyFive
    | EightyFive
    | EightySix
    | EightySeven
    | EightyEight
    | NinetySeven
    | OneHundredAndNine
    | OneHundredAndTwentyThree
    | OneHundredAndTwentyFive
    | OneHundredAndTwentySeven
    | OneHundredAndTwentyEight
    | OneHundredAndTwentyNine
    | OneHundredAndThirty
    | OneHundredAndThirtySix
    | OneHundredAndThirtySeven
    | OneHundredAndThirtyEight
    | OneHundredAndForty
    | OneHundredAndFortyFour
    | OneHundredAndFortySix
    | OneHundredAndFiftySix
    | OneHundredAndFiftySeven
    | OneHundredAndFiftyEight
    | OneHundredAndSixtyTwo
    | OneHundredAndSixtyThree
    | OneHundredAndSixtyFour
    | OneHundredAndSeventyTwo
    | OneHundredAndSeventyThree
    | OneHundredAndEightyTwo
    | OneHundredAndEightySix
    | OneHundredAndNinetyThree
    | OneHundredAndNinetySix
    | OneHundredAndNinetyNine
    | TwoHundredAndFour
    | TwoHundredAndSix
    | TwoHundredAndEight
    | TwoHundredAndNine
    | TwoHundredAndTen
    | TwoHundredAndEleven
    | TwoHundredAndTwelve
    | TwoHundredAndSeventeen
    | TwoHundredAndEighteen
    | TwoHundredAndNineteen
    | TwoHundredAndTwenty
    | TwoHundredAndTwentySeven
    | TwoHundredAndThirtyThree
    | TwoHundredAndThirtyFive
    | TwoHundredAndThirtySix
    | TwoHundredAndThirtyEight
    | TwoHundredAndForty
    | TwoHundredAndFortyOne
    | TwoHundredAndFortyThree
    | TwoHundredAndFortyFour
    | TwoHundredAndFortySix
    | TwoHundredAndFiftyOne
    | TwoHundredAndFiftyFour
    | TwoHundredAndFiftyFive
    | TwoHundredAndSixtyThree
    | TwoHundredAndSixtyFour
    | TwoHundredAndSixtyFive
    | TwoHundredAndSixtySeven
    | TwoHundredAndSixtyEight
    | TwoHundredAndSixtyNine
    | TwoHundredAndSeventy
    | TwoHundredAndSeventyOne
    | TwoHundredAndSeventyFour
    | TwoHundredAndSeventyFive
    | TwoHundredAndSeventySix
    | TwoHundredAndEightyOne
    | TwoHundredAndEightyEight
    | TwoHundredAndNinetyOne
    | TwoHundredAndNinetyTwo
    | ThreeHundredAndSix
    | ThreeHundredAndSeven
    | ThreeHundredAndEight
    | ThreeHundredAndNine
    | ThreeHundredAndTen
    | ThreeHundredAndTwentyOne
    | ThreeHundredAndThirtyNine
    | ThreeHundredAndFiftyOne
    | ThreeHundredAndSixty
    | ThreeHundredAndEightyTwo
    | FourHundredAndFour
    | FourHundredAndTen
    | FourHundredAndEleven
    | FourHundredAndThirteen
    | FourHundredAndTwentyFour
    | FourHundredAndTwentyFive
    | FourHundredAndThirtyFive
    | FourHundredAndThirtySix
    | FourHundredAndThirtySeven
    | FourHundredAndThirtyEight
    | FourHundredAndFortyFour
    | Payload4
    | Five
    | Seven
    | Nine
    | Ten
    | Eleven
    | Sixteen
    | Eighteen
    | Nineteen
    | TwentyThree
    | TwentyFour
    | ThirtySix
    | ThirtySeven
    | ThirtyNine
    | FortyTwo
    | Fifty
    | FiftyThree
    | FiftyFive
    | Sixty
    | SixtyOne
    | SixtyEight
    | SixtyNine
    | Seventy
    | SeventyThree
    | SeventyEight
    | EightyThree
    | NinetyOne
    | NinetyTwo
    | NinetyThree
    | NinetyFour
    | NinetyFive
    | OneHundred
    | OneHundredAndThree
    | OneHundredAndSeventeen
    | OneHundredAndEighteen
    | OneHundredAndTwentyOne
    | OneHundredAndTwentySix
    | OneHundredAndThirtyFour
    | OneHundredAndThirtyNine
    | OneHundredAndFortyTwo
    | OneHundredAndFortyThree
    | OneHundredAndFortySeven
    | OneHundredAndFortyEight
    | OneHundredAndFiftyTwo
    | OneHundredAndSeventyFour
    | OneHundredAndEightyFour
    | OneHundredAndEightyFive
    | OneHundredAndNinety
    | OneHundredAndNinetySeven
    | OneHundredAndNinetyEight
    | TwoHundred
    | TwoHundredAndFive
    | TwoHundredAndTwentyTwo
    | TwoHundredAndTwentyFive
    | TwoHundredAndThirtyOne
    | TwoHundredAndThirtyTwo
    | TwoHundredAndThirtyFour
    | TwoHundredAndThirtyNine
    | TwoHundredAndFortyNine
    | TwoHundredAndFiftyTwo
    | TwoHundredAndFiftyEight
    | TwoHundredAndEightyFour
    | TwoHundredAndEightySix
    | TwoHundredAndEightySeven
    | TwoHundredAndEightyNine
    | TwoHundredAndNinetyThree
    | TwoHundredAndNinetyFour
    | TwoHundredAndNinetySix
    | TwoHundredAndNinetyEight
    | ThreeHundred
    | ThreeHundredAndOne
    | ThreeHundredAndTwo
    | ThreeHundredAndFour
    | ThreeHundredAndEleven
    | ThreeHundredAndFifteen
    | ThreeHundredAndSeventeen
    | ThreeHundredAndTwenty
    | ThreeHundredAndTwentyTwo
    | ThreeHundredAndTwentyThree
    | ThreeHundredAndTwentySix
    | ThreeHundredAndTwentySeven
    | ThreeHundredAndThirty
    | ThreeHundredAndThirtyOne
    | ThreeHundredAndThirtyTwo
    | ThreeHundredAndFortySix
    | ThreeHundredAndFortyNine
    | ThreeHundredAndFiftyEight
    | ThreeHundredAndSixtyOne
    | ThreeHundredAndSixtyFour
    | ThreeHundredAndSixtySix
    | ThreeHundredAndSeventyOne
    | ThreeHundredAndSeventyTwo
    | ThreeHundredAndEighty
    | ThreeHundredAndEightyFive
    | ThreeHundredAndEightySix
    | ThreeHundredAndNinetyOne
    | ThreeHundredAndNinetyThree
    | ThreeHundredAndNinetyEight
    | ThreeHundredAndNinetyNine
    | FourHundredAndTwo
    | FourHundredAndSeven
    | FourHundredAndEight
    | FourHundredAndNine
    | FourHundredAndTwelve
    | FourHundredAndFourteen
    | FourHundredAndFifteen
    | FourHundredAndNineteen
    | FourHundredAndTwenty
    | FourHundredAndTwentyTwo
    | FourHundredAndThirtyThree
    | FourHundredAndForty
    | FourHundredAndFortyThree
    | FourHundredAndFortySeven
    | FourHundredAndFifty
    | Eight
    | Fourteen
    | Fifteen
    | Seventeen
    | Twenty
    | TwentyTwo
    | TwentyFive
    | TwentySix
    | TwentySeven
    | TwentyNine
    | Thirty
    | ThirtyOne
    | ThirtyTwo
    | ThirtyThree
    | ThirtyFour
    | ThirtyFive
    | ThirtyEight
    | FortyThree
    | FiftyFour
    | FiftySix
    | FiftySeven
    | FiftyEight
    | FiftyNine
    | SixtyFive
    | SixtySix
    | SixtySeven
    | SeventyOne
    | SeventyFour
    | SeventySeven
    | SeventyNine
    | EightyFour
    | EightyNine
    | Ninety
    | NinetyEight
    | NinetyNine
    | OneHundredAndOne
    | OneHundredAndFive
    | OneHundredAndSix
    | OneHundredAndSeven
    | OneHundredAndSixteen
    | OneHundredAndNineteen
    | OneHundredAndTwentyFour
    | OneHundredAndThirtyOne
    | OneHundredAndThirtyTwo
    | OneHundredAndThirtyThree
    | OneHundredAndThirtyFive
    | OneHundredAndFortyNine
    | OneHundredAndFiftyNine
    | OneHundredAndSixty
    | OneHundredAndSixtyFive
    | OneHundredAndSixtySix
    | OneHundredAndEightyEight
    | OneHundredAndEightyNine
    | OneHundredAndNinetyOne
    | OneHundredAndNinetyFour
    | OneHundredAndNinetyFive
    | TwoHundredAndOne
    | TwoHundredAndTwentySix
    | TwoHundredAndThirty
    | TwoHundredAndThirtySeven
    | TwoHundredAndFifty
    | TwoHundredAndSeventyTwo
    | TwoHundredAndSeventyThree
    | TwoHundredAndEightyTwo
    | TwoHundredAndEightyFive
    | TwoHundredAndNinetyFive
    | TwoHundredAndNinetySeven
    | ThreeHundredAndNineteen
    | ThreeHundredAndTwentyNine
    | ThreeHundredAndThirtyThree
    | ThreeHundredAndForty
    | ThreeHundredAndFortyOne
    | ThreeHundredAndFortyTwo
    | ThreeHundredAndFortyThree
    | ThreeHundredAndFortyFive
    | ThreeHundredAndFifty
    | ThreeHundredAndFiftyThree
    | ThreeHundredAndFiftyFour
    | ThreeHundredAndSixtyTwo
    | ThreeHundredAndSixtyEight
    | ThreeHundredAndSixtyNine
    | ThreeHundredAndSeventyFour
    | ThreeHundredAndSeventyFive
    | ThreeHundredAndSeventySix
    | ThreeHundredAndSeventySeven
    | ThreeHundredAndSeventyNine
    | ThreeHundredAndEightyOne
    | ThreeHundredAndEightySeven
    | ThreeHundredAndEightyNine
    | ThreeHundredAndNinety
    | ThreeHundredAndNinetyFour
    | ThreeHundredAndNinetySix
    | FourHundred
    | FourHundredAndThree
    | FourHundredAndFive
    | FourHundredAndSix
    | FourHundredAndSixteen
    | FourHundredAndSeventeen
    | FourHundredAndEighteen
    | FourHundredAndThirtyTwo
    | FourHundredAndThirtyFour
    | FourHundredAndThirtyNine
    | FourHundredAndFortyOne
    | FourHundredAndFortySix
    | Payload1
    | Forty
    | FortyOne
    | FortyFive
    | FortySix
    | FortySeven
    | FortyEight
    | FiftyOne
    | FiftyTwo
    | SixtyTwo
    | SeventySix
    | Eighty
    | NinetySix
    | OneHundredAndFifty
    | OneHundredAndFiftyOne
    | OneHundredAndFiftyThree
    | OneHundredAndFiftyFive
    | OneHundredAndNinetyTwo
    | TwoHundredAndTwentyEight
    | TwoHundredAndTwentyNine
    | TwoHundredAndFortySeven
    | TwoHundredAndFortyEight
    | ThreeHundredAndThirtyFive
    | ThreeHundredAndFortyFour
    | ThreeHundredAndFiftyTwo
    | ThreeHundredAndFiftyNine
    | ThreeHundredAndSixtyFive
    | ThreeHundredAndSixtySeven
    | ThreeHundredAndSeventy
    | ThreeHundredAndSeventyThree
    | ThreeHundredAndEightyThree
    | ThreeHundredAndEightyFour
    | ThreeHundredAndEightyEight
    | ThreeHundredAndNinetyTwo
    | ThreeHundredAndNinetySeven
    | FourHundredAndOne
    | undefined;
};

/** @internal */
export const PayloadRule$inboundSchema: z.ZodType<
  PayloadRule,
  z.ZodTypeDef,
  unknown
> = z.object({
  id: types.string(),
  type: types.string(),
  model: types.optional(types.string()),
});

export function payloadRuleFromJSON(
  jsonString: string,
): SafeParseResult<PayloadRule, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => PayloadRule$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'PayloadRule' from JSON`,
  );
}

/** @internal */
export const ThirtyTwo$inboundSchema: z.ZodType<
  ThirtyTwo,
  z.ZodTypeDef,
  unknown
> = z.object({
  rule: z.lazy(() => PayloadRule$inboundSchema),
});

export function thirtyTwoFromJSON(
  jsonString: string,
): SafeParseResult<ThirtyTwo, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => ThirtyTwo$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'ThirtyTwo' from JSON`,
  );
}

/** @internal */
export const Rule$inboundSchema: z.ZodType<Rule, z.ZodTypeDef, unknown> = z
  .object({
    id: types.string(),
    type: types.string(),
    model: types.optional(types.string()),
    rewriteModel: types.optional(types.string()),
  });

export function ruleFromJSON(
  jsonString: string,
): SafeParseResult<Rule, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => Rule$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'Rule' from JSON`,
  );
}

/** @internal */
export const ThirtyOne$inboundSchema: z.ZodType<
  ThirtyOne,
  z.ZodTypeDef,
  unknown
> = z.object({
  rule: z.lazy(() => Rule$inboundSchema),
});

export function thirtyOneFromJSON(
  jsonString: string,
): SafeParseResult<ThirtyOne, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => ThirtyOne$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'ThirtyOne' from JSON`,
  );
}

/** @internal */
export const DefaultMode$inboundSchema: z.ZodNativeEnum<typeof DefaultMode> = z
  .nativeEnum(DefaultMode);

/** @internal */
export const CeilingMode$inboundSchema: z.ZodNativeEnum<typeof CeilingMode> = z
  .nativeEnum(CeilingMode);

/** @internal */
export const Retention$inboundSchema: z.ZodType<
  Retention,
  z.ZodTypeDef,
  unknown
> = z.object({
  defaultMode: DefaultMode$inboundSchema,
  defaultDays: types.optional(types.number()),
  ceilingMode: CeilingMode$inboundSchema,
  ceilingDays: types.optional(types.number()),
});

export function retentionFromJSON(
  jsonString: string,
): SafeParseResult<Retention, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => Retention$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'Retention' from JSON`,
  );
}

/** @internal */
export const Thirty$inboundSchema: z.ZodType<Thirty, z.ZodTypeDef, unknown> = z
  .object({
    retention: z.lazy(() => Retention$inboundSchema),
  });

export function thirtyFromJSON(
  jsonString: string,
): SafeParseResult<Thirty, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => Thirty$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'Thirty' from JSON`,
  );
}

/** @internal */
export const TwentyNine$inboundSchema: z.ZodType<
  TwentyNine,
  z.ZodTypeDef,
  unknown
> = z.object({
  regions: z.array(types.string()),
});

export function twentyNineFromJSON(
  jsonString: string,
): SafeParseResult<TwentyNine, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => TwentyNine$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'TwentyNine' from JSON`,
  );
}

/** @internal */
export const PiiRedaction$inboundSchema: z.ZodType<
  PiiRedaction,
  z.ZodTypeDef,
  unknown
> = z.object({
  from: types.boolean(),
  to: types.boolean(),
});

export function piiRedactionFromJSON(
  jsonString: string,
): SafeParseResult<PiiRedaction, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => PiiRedaction$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'PiiRedaction' from JSON`,
  );
}

/** @internal */
export const TwentyEight$inboundSchema: z.ZodType<
  TwentyEight,
  z.ZodTypeDef,
  unknown
> = z.object({
  piiRedaction: z.lazy(() => PiiRedaction$inboundSchema),
  moderationPolicyCount: types.number(),
  policiesAdded: z.array(types.string()),
  policiesRemoved: z.array(types.string()),
  policiesModified: z.array(types.string()),
});

export function twentyEightFromJSON(
  jsonString: string,
): SafeParseResult<TwentyEight, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => TwentyEight$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'TwentyEight' from JSON`,
  );
}

/** @internal */
export const PrivateProvider$inboundSchema: z.ZodType<
  PrivateProvider,
  z.ZodTypeDef,
  unknown
> = z.object({
  slug: types.string(),
});

export function privateProviderFromJSON(
  jsonString: string,
): SafeParseResult<PrivateProvider, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => PrivateProvider$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'PrivateProvider' from JSON`,
  );
}

/** @internal */
export const TwentySeven$inboundSchema: z.ZodType<
  TwentySeven,
  z.ZodTypeDef,
  unknown
> = z.object({
  privateProvider: z.lazy(() => PrivateProvider$inboundSchema),
});

export function twentySevenFromJSON(
  jsonString: string,
): SafeParseResult<TwentySeven, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => TwentySeven$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'TwentySeven' from JSON`,
  );
}

/** @internal */
export const PayloadPrivateModel$inboundSchema: z.ZodType<
  PayloadPrivateModel,
  z.ZodTypeDef,
  unknown
> = z.object({
  slug: types.string(),
});

export function payloadPrivateModelFromJSON(
  jsonString: string,
): SafeParseResult<PayloadPrivateModel, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => PayloadPrivateModel$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'PayloadPrivateModel' from JSON`,
  );
}

/** @internal */
export const TwentySix$inboundSchema: z.ZodType<
  TwentySix,
  z.ZodTypeDef,
  unknown
> = z.object({
  privateModel: z.lazy(() => PayloadPrivateModel$inboundSchema),
});

export function twentySixFromJSON(
  jsonString: string,
): SafeParseResult<TwentySix, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => TwentySix$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'TwentySix' from JSON`,
  );
}

/** @internal */
export const PrivateModel$inboundSchema: z.ZodType<
  PrivateModel,
  z.ZodTypeDef,
  unknown
> = z.object({
  slug: types.string(),
  providerSlug: types.string(),
});

export function privateModelFromJSON(
  jsonString: string,
): SafeParseResult<PrivateModel, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => PrivateModel$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'PrivateModel' from JSON`,
  );
}

/** @internal */
export const TwentyFive$inboundSchema: z.ZodType<
  TwentyFive,
  z.ZodTypeDef,
  unknown
> = z.object({
  privateModel: z.lazy(() => PrivateModel$inboundSchema),
});

export function twentyFiveFromJSON(
  jsonString: string,
): SafeParseResult<TwentyFive, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => TwentyFive$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'TwentyFive' from JSON`,
  );
}

/** @internal */
export const TwentyFour$inboundSchema: z.ZodType<
  TwentyFour,
  z.ZodTypeDef,
  unknown
> = z.object({
  added: z.array(types.string()),
  removed: z.array(types.string()),
});

export function twentyFourFromJSON(
  jsonString: string,
): SafeParseResult<TwentyFour, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => TwentyFour$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'TwentyFour' from JSON`,
  );
}

/** @internal */
export const TwentyThree$inboundSchema: z.ZodType<
  TwentyThree,
  z.ZodTypeDef,
  unknown
> = z.object({
  amount: types.string(),
  purchaseIntentId: types.string(),
});

export function twentyThreeFromJSON(
  jsonString: string,
): SafeParseResult<TwentyThree, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => TwentyThree$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'TwentyThree' from JSON`,
  );
}

/** @internal */
export const TwentyTwo$inboundSchema: z.ZodType<
  TwentyTwo,
  z.ZodTypeDef,
  unknown
> = z.object({
  enabled: types.boolean(),
});

export function twentyTwoFromJSON(
  jsonString: string,
): SafeParseResult<TwentyTwo, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => TwentyTwo$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'TwentyTwo' from JSON`,
  );
}

/** @internal */
export const PayloadCredential$inboundSchema: z.ZodType<
  PayloadCredential,
  z.ZodTypeDef,
  unknown
> = z.object({
  id: types.string(),
  name: types.string(),
  providerSlug: types.string(),
});

export function payloadCredentialFromJSON(
  jsonString: string,
): SafeParseResult<PayloadCredential, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => PayloadCredential$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'PayloadCredential' from JSON`,
  );
}

/** @internal */
export const TwentyOne$inboundSchema: z.ZodType<
  TwentyOne,
  z.ZodTypeDef,
  unknown
> = z.object({
  credential: z.lazy(() => PayloadCredential$inboundSchema),
  added: z.array(types.string()),
  removed: z.array(types.string()),
  changed: z.array(types.string()),
});

export function twentyOneFromJSON(
  jsonString: string,
): SafeParseResult<TwentyOne, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => TwentyOne$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'TwentyOne' from JSON`,
  );
}

/** @internal */
export const Credential$inboundSchema: z.ZodType<
  Credential,
  z.ZodTypeDef,
  unknown
> = z.object({
  id: types.string(),
  name: types.string(),
  providerSlug: types.string(),
});

export function credentialFromJSON(
  jsonString: string,
): SafeParseResult<Credential, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => Credential$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'Credential' from JSON`,
  );
}

/** @internal */
export const Twenty$inboundSchema: z.ZodType<Twenty, z.ZodTypeDef, unknown> = z
  .object({
    credential: z.lazy(() => Credential$inboundSchema),
  });

export function twentyFromJSON(
  jsonString: string,
): SafeParseResult<Twenty, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => Twenty$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'Twenty' from JSON`,
  );
}

/** @internal */
export const PayloadScopeType$inboundSchema: z.ZodNativeEnum<
  typeof PayloadScopeType
> = z.nativeEnum(PayloadScopeType);

/** @internal */
export const UserEventPayload19RefreshPeriod$inboundSchema: z.ZodNativeEnum<
  typeof UserEventPayload19RefreshPeriod
> = z.nativeEnum(UserEventPayload19RefreshPeriod);

/** @internal */
export const UserEventPayload19Budget$inboundSchema: z.ZodType<
  UserEventPayload19Budget,
  z.ZodTypeDef,
  unknown
> = z.object({
  limitAmount: types.number(),
  refreshPeriod: UserEventPayload19RefreshPeriod$inboundSchema,
  alertThresholds: types.optional(z.array(types.number())),
});

export function userEventPayload19BudgetFromJSON(
  jsonString: string,
): SafeParseResult<UserEventPayload19Budget, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => UserEventPayload19Budget$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'UserEventPayload19Budget' from JSON`,
  );
}

/** @internal */
export const UserEventPayload19Change$inboundSchema: z.ZodNativeEnum<
  typeof UserEventPayload19Change
> = z.nativeEnum(UserEventPayload19Change);

/** @internal */
export const Nineteen$inboundSchema: z.ZodType<
  Nineteen,
  z.ZodTypeDef,
  unknown
> = z.object({
  scopeType: PayloadScopeType$inboundSchema,
  projectId: types.optional(types.string()),
  projectName: types.optional(types.string()),
  userId: types.optional(types.string()),
  userName: types.optional(types.string()),
  budget: z.nullable(z.lazy(() => UserEventPayload19Budget$inboundSchema))
    .optional(),
  change: UserEventPayload19Change$inboundSchema,
});

export function nineteenFromJSON(
  jsonString: string,
): SafeParseResult<Nineteen, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => Nineteen$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'Nineteen' from JSON`,
  );
}

/** @internal */
export const ScopeType$inboundSchema: z.ZodNativeEnum<typeof ScopeType> = z
  .nativeEnum(ScopeType);

/** @internal */
export const UserEventPayloadRefreshPeriod$inboundSchema: z.ZodNativeEnum<
  typeof UserEventPayloadRefreshPeriod
> = z.nativeEnum(UserEventPayloadRefreshPeriod);

/** @internal */
export const UserEventPayloadBudget$inboundSchema: z.ZodType<
  UserEventPayloadBudget,
  z.ZodTypeDef,
  unknown
> = z.object({
  limitAmount: types.number(),
  refreshPeriod: UserEventPayloadRefreshPeriod$inboundSchema,
  alertThresholds: types.optional(z.array(types.number())),
});

export function userEventPayloadBudgetFromJSON(
  jsonString: string,
): SafeParseResult<UserEventPayloadBudget, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => UserEventPayloadBudget$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'UserEventPayloadBudget' from JSON`,
  );
}

/** @internal */
export const UserEventPayloadChange$inboundSchema: z.ZodNativeEnum<
  typeof UserEventPayloadChange
> = z.nativeEnum(UserEventPayloadChange);

/** @internal */
export const Eighteen$inboundSchema: z.ZodType<
  Eighteen,
  z.ZodTypeDef,
  unknown
> = z.object({
  scopeType: ScopeType$inboundSchema,
  budget: z.nullable(z.lazy(() => UserEventPayloadBudget$inboundSchema))
    .optional(),
  change: UserEventPayloadChange$inboundSchema,
});

export function eighteenFromJSON(
  jsonString: string,
): SafeParseResult<Eighteen, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => Eighteen$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'Eighteen' from JSON`,
  );
}

/** @internal */
export const PayloadChange$inboundSchema: z.ZodNativeEnum<
  typeof PayloadChange
> = z.nativeEnum(PayloadChange);

/** @internal */
export const Settings$inboundSchema: z.ZodType<
  Settings,
  z.ZodTypeDef,
  unknown
> = z.object({
  minimumBalance: types.string(),
  targetBalance: types.string(),
  maximumMonthlySpend: types.nullable(types.string()),
});

export function settingsFromJSON(
  jsonString: string,
): SafeParseResult<Settings, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => Settings$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'Settings' from JSON`,
  );
}

/** @internal */
export const Previous$inboundSchema: z.ZodType<
  Previous,
  z.ZodTypeDef,
  unknown
> = z.object({
  minimumBalance: types.string(),
  targetBalance: types.string(),
  maximumMonthlySpend: types.nullable(types.string()),
});

export function previousFromJSON(
  jsonString: string,
): SafeParseResult<Previous, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => Previous$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'Previous' from JSON`,
  );
}

/** @internal */
export const Commitment$inboundSchema: z.ZodType<
  Commitment,
  z.ZodTypeDef,
  unknown
> = z.object({
  maximumMonthlySpend: types.nullable(types.string()),
  deferredInvoiceTargetBalance: types.string(),
});

export function commitmentFromJSON(
  jsonString: string,
): SafeParseResult<Commitment, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => Commitment$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'Commitment' from JSON`,
  );
}

/** @internal */
export const Seventeen$inboundSchema: z.ZodType<
  Seventeen,
  z.ZodTypeDef,
  unknown
> = z.object({
  change: PayloadChange$inboundSchema,
  settings: types.optional(z.lazy(() => Settings$inboundSchema)),
  previous: types.optional(z.lazy(() => Previous$inboundSchema)),
  commitment: types.optional(z.lazy(() => Commitment$inboundSchema)),
});

export function seventeenFromJSON(
  jsonString: string,
): SafeParseResult<Seventeen, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => Seventeen$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'Seventeen' from JSON`,
  );
}

/** @internal */
export const UserEventPayloadApiKey$inboundSchema: z.ZodType<
  UserEventPayloadApiKey,
  z.ZodTypeDef,
  unknown
> = z.object({
  id: types.string(),
  name: types.string(),
});

export function userEventPayloadApiKeyFromJSON(
  jsonString: string,
): SafeParseResult<UserEventPayloadApiKey, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => UserEventPayloadApiKey$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'UserEventPayloadApiKey' from JSON`,
  );
}

/** @internal */
export const PayloadRefreshPeriod$inboundSchema: z.ZodNativeEnum<
  typeof PayloadRefreshPeriod
> = z.nativeEnum(PayloadRefreshPeriod);

/** @internal */
export const PayloadBudget$inboundSchema: z.ZodType<
  PayloadBudget,
  z.ZodTypeDef,
  unknown
> = z.object({
  limitAmount: types.number(),
  refreshPeriod: PayloadRefreshPeriod$inboundSchema,
  alertThresholds: types.optional(z.array(types.number())),
});

export function payloadBudgetFromJSON(
  jsonString: string,
): SafeParseResult<PayloadBudget, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => PayloadBudget$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'PayloadBudget' from JSON`,
  );
}

/** @internal */
export const Change$inboundSchema: z.ZodNativeEnum<typeof Change> = z
  .nativeEnum(Change);

/** @internal */
export const Sixteen$inboundSchema: z.ZodType<Sixteen, z.ZodTypeDef, unknown> =
  z.object({
    apiKey: z.lazy(() => UserEventPayloadApiKey$inboundSchema),
    budget: z.nullable(z.lazy(() => PayloadBudget$inboundSchema)).optional(),
    change: Change$inboundSchema,
  });

export function sixteenFromJSON(
  jsonString: string,
): SafeParseResult<Sixteen, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => Sixteen$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'Sixteen' from JSON`,
  );
}

/** @internal */
export const PayloadApiKey$inboundSchema: z.ZodType<
  PayloadApiKey,
  z.ZodTypeDef,
  unknown
> = z.object({
  id: types.string(),
  name: types.string(),
});

export function payloadApiKeyFromJSON(
  jsonString: string,
): SafeParseResult<PayloadApiKey, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => PayloadApiKey$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'PayloadApiKey' from JSON`,
  );
}

/** @internal */
export const Fifteen$inboundSchema: z.ZodType<Fifteen, z.ZodTypeDef, unknown> =
  z.object({
    apiKey: z.lazy(() => PayloadApiKey$inboundSchema),
  });

export function fifteenFromJSON(
  jsonString: string,
): SafeParseResult<Fifteen, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => Fifteen$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'Fifteen' from JSON`,
  );
}

/** @internal */
export const UserEventPayload14ApiKey$inboundSchema: z.ZodType<
  UserEventPayload14ApiKey,
  z.ZodTypeDef,
  unknown
> = z.object({
  id: types.string(),
  name: types.string(),
});

export function userEventPayload14ApiKeyFromJSON(
  jsonString: string,
): SafeParseResult<UserEventPayload14ApiKey, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => UserEventPayload14ApiKey$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'UserEventPayload14ApiKey' from JSON`,
  );
}

/** @internal */
export const RefreshPeriod$inboundSchema: z.ZodNativeEnum<
  typeof RefreshPeriod
> = z.nativeEnum(RefreshPeriod);

/** @internal */
export const Budget$inboundSchema: z.ZodType<Budget, z.ZodTypeDef, unknown> = z
  .object({
    limitAmount: types.number(),
    refreshPeriod: RefreshPeriod$inboundSchema,
    alertThresholds: types.optional(z.array(types.number())),
  });

export function budgetFromJSON(
  jsonString: string,
): SafeParseResult<Budget, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => Budget$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'Budget' from JSON`,
  );
}

/** @internal */
export const Fourteen$inboundSchema: z.ZodType<
  Fourteen,
  z.ZodTypeDef,
  unknown
> = z.object({
  apiKey: z.lazy(() => UserEventPayload14ApiKey$inboundSchema),
  budget: z.nullable(z.lazy(() => Budget$inboundSchema)).optional(),
  zdrExemption: types.optional(types.boolean()),
  bypassAll: types.optional(types.boolean()),
});

export function fourteenFromJSON(
  jsonString: string,
): SafeParseResult<Fourteen, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => Fourteen$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'Fourteen' from JSON`,
  );
}

/** @internal */
export const UserEventPayload13Provider$inboundSchema: z.ZodNativeEnum<
  typeof UserEventPayload13Provider
> = z.nativeEnum(UserEventPayload13Provider);

/** @internal */
export const FromPlan$inboundSchema: z.ZodNativeEnum<typeof FromPlan> = z
  .nativeEnum(FromPlan);

/** @internal */
export const ToPlan$inboundSchema: z.ZodNativeEnum<typeof ToPlan> = z
  .nativeEnum(ToPlan);

/** @internal */
export const Thirteen$inboundSchema: z.ZodType<
  Thirteen,
  z.ZodTypeDef,
  unknown
> = z.object({
  provider: types.optional(UserEventPayload13Provider$inboundSchema),
  providerAccount: types.optional(types.string()),
  stripeAccount: types.optional(types.string()),
  stripeOrganisation: types.optional(types.string()),
  teamId: types.string(),
  resourceId: types.string(),
  fromPlan: FromPlan$inboundSchema,
  toPlan: ToPlan$inboundSchema,
});

export function thirteenFromJSON(
  jsonString: string,
): SafeParseResult<Thirteen, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => Thirteen$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'Thirteen' from JSON`,
  );
}

/** @internal */
export const UserEventPayload12Provider$inboundSchema: z.ZodNativeEnum<
  typeof UserEventPayload12Provider
> = z.nativeEnum(UserEventPayload12Provider);

/** @internal */
export const ActorType$inboundSchema: z.ZodNativeEnum<typeof ActorType> = z
  .nativeEnum(ActorType);

/** @internal */
export const Twelve$inboundSchema: z.ZodType<Twelve, z.ZodTypeDef, unknown> = z
  .object({
    provider: types.optional(UserEventPayload12Provider$inboundSchema),
    providerAccount: types.optional(types.string()),
    stripeAccount: types.optional(types.string()),
    stripeOrganisation: types.optional(types.string()),
    teamId: types.string(),
    actorId: types.string(),
    actorType: ActorType$inboundSchema,
    actorName: types.optional(types.string()),
  });

export function twelveFromJSON(
  jsonString: string,
): SafeParseResult<Twelve, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => Twelve$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'Twelve' from JSON`,
  );
}

/** @internal */
export const UserEventPayload11Provider$inboundSchema: z.ZodNativeEnum<
  typeof UserEventPayload11Provider
> = z.nativeEnum(UserEventPayload11Provider);

/** @internal */
export const Eleven$inboundSchema: z.ZodType<Eleven, z.ZodTypeDef, unknown> = z
  .object({
    provider: types.optional(UserEventPayload11Provider$inboundSchema),
    providerAccount: types.optional(types.string()),
    stripeAccount: types.optional(types.string()),
    resourceId: types.string(),
    projectName: types.string(),
  });

export function elevenFromJSON(
  jsonString: string,
): SafeParseResult<Eleven, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => Eleven$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'Eleven' from JSON`,
  );
}

/** @internal */
export const UserEventPayload10Provider$inboundSchema: z.ZodNativeEnum<
  typeof UserEventPayload10Provider
> = z.nativeEnum(UserEventPayload10Provider);

/** @internal */
export const Ten$inboundSchema: z.ZodType<Ten, z.ZodTypeDef, unknown> = z
  .object({
    provider: types.optional(UserEventPayload10Provider$inboundSchema),
    providerAccount: types.optional(types.string()),
    stripeAccount: types.optional(types.string()),
    stripeOrganisation: types.optional(types.string()),
    reason: types.string(),
    blockCode: types.string(),
  });

export function tenFromJSON(
  jsonString: string,
): SafeParseResult<Ten, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => Ten$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'Ten' from JSON`,
  );
}

/** @internal */
export const UserEventPayloadProvider$inboundSchema: z.ZodNativeEnum<
  typeof UserEventPayloadProvider
> = z.nativeEnum(UserEventPayloadProvider);

/** @internal */
export const Nine$inboundSchema: z.ZodType<Nine, z.ZodTypeDef, unknown> = z
  .object({
    provider: types.optional(UserEventPayloadProvider$inboundSchema),
    providerAccount: types.optional(types.string()),
    stripeAccount: types.optional(types.string()),
    stripeOrganisation: types.optional(types.string()),
    teamId: types.string(),
    teamSlug: types.string(),
  });

export function nineFromJSON(
  jsonString: string,
): SafeParseResult<Nine, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => Nine$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'Nine' from JSON`,
  );
}

/** @internal */
export const PayloadProvider$inboundSchema: z.ZodNativeEnum<
  typeof PayloadProvider
> = z.nativeEnum(PayloadProvider);

/** @internal */
export const Eight$inboundSchema: z.ZodType<Eight, z.ZodTypeDef, unknown> = z
  .object({
    provider: types.optional(PayloadProvider$inboundSchema),
    providerAccount: types.optional(types.string()),
    stripeAccount: types.optional(types.string()),
    stripeOrganisation: types.optional(types.string()),
    teamId: types.string(),
  });

export function eightFromJSON(
  jsonString: string,
): SafeParseResult<Eight, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => Eight$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'Eight' from JSON`,
  );
}

/** @internal */
export const Provider$inboundSchema: z.ZodNativeEnum<typeof Provider> = z
  .nativeEnum(Provider);

/** @internal */
export const Seven$inboundSchema: z.ZodType<Seven, z.ZodTypeDef, unknown> = z
  .object({
    provider: types.optional(Provider$inboundSchema),
    providerAccount: types.optional(types.string()),
    stripeAccount: types.optional(types.string()),
    stripeOrganisation: types.optional(types.string()),
    teamId: types.string(),
    accountRequestId: types.string(),
  });

export function sevenFromJSON(
  jsonString: string,
): SafeParseResult<Seven, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => Seven$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'Seven' from JSON`,
  );
}

/** @internal */
export const Six$inboundSchema: z.ZodType<Six, z.ZodTypeDef, unknown> = z
  .object({
    projectId: types.string(),
    projectName: types.string(),
    policyId: types.string(),
  });

export function sixFromJSON(
  jsonString: string,
): SafeParseResult<Six, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => Six$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'Six' from JSON`,
  );
}

/** @internal */
export const UserEventPayload5Action$inboundSchema: z.ZodNativeEnum<
  typeof UserEventPayload5Action
> = z.nativeEnum(UserEventPayload5Action);

/** @internal */
export const Five$inboundSchema: z.ZodType<Five, z.ZodTypeDef, unknown> = z
  .object({
    action: UserEventPayload5Action$inboundSchema,
    projectName: types.optional(types.string()),
    projectId: types.optional(types.string()),
    environment: z.array(types.string()),
  });

export function fiveFromJSON(
  jsonString: string,
): SafeParseResult<Five, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => Five$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'Five' from JSON`,
  );
}

/** @internal */
export const UserEventPayload4Action$inboundSchema: z.ZodNativeEnum<
  typeof UserEventPayload4Action
> = z.nativeEnum(UserEventPayload4Action);

/** @internal */
export const Payload4$inboundSchema: z.ZodType<
  Payload4,
  z.ZodTypeDef,
  unknown
> = z.object({
  action: UserEventPayload4Action$inboundSchema,
  label: types.optional(types.string()),
  projectName: types.optional(types.string()),
  projectId: types.optional(types.string()),
  environment: types.string(),
});

export function payload4FromJSON(
  jsonString: string,
): SafeParseResult<Payload4, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => Payload4$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'Payload4' from JSON`,
  );
}

/** @internal */
export const UserEventPayloadAction$inboundSchema: z.ZodNativeEnum<
  typeof UserEventPayloadAction
> = z.nativeEnum(UserEventPayloadAction);

/** @internal */
export const Payload3$inboundSchema: z.ZodType<
  Payload3,
  z.ZodTypeDef,
  unknown
> = z.object({
  action: UserEventPayloadAction$inboundSchema,
  id: types.string(),
  name: types.string(),
  slug: types.string(),
  state: types.string(),
  projectId: types.string(),
  projectName: types.optional(types.string()),
});

export function payload3FromJSON(
  jsonString: string,
): SafeParseResult<Payload3, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => Payload3$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'Payload3' from JSON`,
  );
}

/** @internal */
export const PayloadAction$inboundSchema: z.ZodNativeEnum<
  typeof PayloadAction
> = z.nativeEnum(PayloadAction);

/** @internal */
export const Payload2$inboundSchema: z.ZodType<
  Payload2,
  z.ZodTypeDef,
  unknown
> = z.object({
  action: PayloadAction$inboundSchema,
  id: types.string(),
  slug: types.string(),
  projectId: types.string(),
  projectName: types.optional(types.string()),
});

export function payload2FromJSON(
  jsonString: string,
): SafeParseResult<Payload2, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => Payload2$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'Payload2' from JSON`,
  );
}

/** @internal */
export const Payload1$inboundSchema: z.ZodType<
  Payload1,
  z.ZodTypeDef,
  unknown
> = z.object({});

export function payload1FromJSON(
  jsonString: string,
): SafeParseResult<Payload1, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => Payload1$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'Payload1' from JSON`,
  );
}

/** @internal */
export const Payload$inboundSchema: z.ZodType<Payload, z.ZodTypeDef, unknown> =
  smartUnion([
    ThreeHundredAndFiftySeven$inboundSchema,
    OneHundredAndSeventySeven$inboundSchema,
    OneHundredAndSixtySeven$inboundSchema,
    TwoHundredAndTwentyThree$inboundSchema,
    OneHundredAndSeventyEight$inboundSchema,
    FourHundredAndFortyTwo$inboundSchema,
    OneHundredAndFourteen$inboundSchema,
    OneHundredAndEighty$inboundSchema,
    OneHundredAndEightyOne$inboundSchema,
    TwoHundredAndFifteen$inboundSchema,
    TwoHundredAndSeventyEight$inboundSchema,
    z.lazy(() => Payload3$inboundSchema),
    OneHundredAndFiftyFour$inboundSchema,
    OneHundredAndSeventyOne$inboundSchema,
    OneHundredAndSeventyFive$inboundSchema,
    OneHundredAndSeventyNine$inboundSchema,
    TwoHundredAndFiftySix$inboundSchema,
    ThreeHundredAndEighteen$inboundSchema,
    ThreeHundredAndThirtySix$inboundSchema,
    ThreeHundredAndThirtyEight$inboundSchema,
    z.lazy(() => TwentyEight$inboundSchema),
    OneHundredAndEight$inboundSchema,
    OneHundredAndEleven$inboundSchema,
    OneHundredAndTwelve$inboundSchema,
    OneHundredAndThirteen$inboundSchema,
    OneHundredAndFifteen$inboundSchema,
    OneHundredAndTwentyTwo$inboundSchema,
    OneHundredAndSixtyOne$inboundSchema,
    OneHundredAndSeventy$inboundSchema,
    OneHundredAndSeventySix$inboundSchema,
    TwoHundredAndThree$inboundSchema,
    TwoHundredAndSeven$inboundSchema,
    TwoHundredAndSixtySix$inboundSchema,
    TwoHundredAndEighty$inboundSchema,
    TwoHundredAndNinety$inboundSchema,
    ThreeHundredAndFiftySix$inboundSchema,
    FourHundredAndTwentySix$inboundSchema,
    FourHundredAndTwentyEight$inboundSchema,
    FourHundredAndFortyFive$inboundSchema,
    z.lazy(() => Payload2$inboundSchema),
    z.lazy(() => Thirteen$inboundSchema),
    z.lazy(() => TwentyOne$inboundSchema),
    SixtyThree$inboundSchema,
    SixtyFour$inboundSchema,
    EightyOne$inboundSchema,
    EightyTwo$inboundSchema,
    OneHundredAndTwo$inboundSchema,
    OneHundredAndFour$inboundSchema,
    OneHundredAndTen$inboundSchema,
    OneHundredAndTwenty$inboundSchema,
    OneHundredAndFortyOne$inboundSchema,
    OneHundredAndFortyFive$inboundSchema,
    OneHundredAndSixtyEight$inboundSchema,
    OneHundredAndSixtyNine$inboundSchema,
    OneHundredAndEightyThree$inboundSchema,
    OneHundredAndEightySeven$inboundSchema,
    TwoHundredAndTwo$inboundSchema,
    TwoHundredAndThirteen$inboundSchema,
    TwoHundredAndFourteen$inboundSchema,
    TwoHundredAndSixteen$inboundSchema,
    TwoHundredAndTwentyOne$inboundSchema,
    TwoHundredAndTwentyFour$inboundSchema,
    TwoHundredAndFortyTwo$inboundSchema,
    TwoHundredAndFortyFive$inboundSchema,
    TwoHundredAndFiftyThree$inboundSchema,
    TwoHundredAndFiftySeven$inboundSchema,
    TwoHundredAndFiftyNine$inboundSchema,
    TwoHundredAndSixty$inboundSchema,
    TwoHundredAndSixtyOne$inboundSchema,
    TwoHundredAndSixtyTwo$inboundSchema,
    TwoHundredAndSeventySeven$inboundSchema,
    TwoHundredAndSeventyNine$inboundSchema,
    TwoHundredAndEightyThree$inboundSchema,
    TwoHundredAndNinetyNine$inboundSchema,
    ThreeHundredAndThree$inboundSchema,
    ThreeHundredAndFive$inboundSchema,
    ThreeHundredAndTwelve$inboundSchema,
    ThreeHundredAndThirteen$inboundSchema,
    ThreeHundredAndFourteen$inboundSchema,
    ThreeHundredAndSixteen$inboundSchema,
    ThreeHundredAndTwentyFour$inboundSchema,
    ThreeHundredAndTwentyFive$inboundSchema,
    ThreeHundredAndTwentyEight$inboundSchema,
    ThreeHundredAndThirtyFour$inboundSchema,
    ThreeHundredAndThirtySeven$inboundSchema,
    ThreeHundredAndFortySeven$inboundSchema,
    ThreeHundredAndFortyEight$inboundSchema,
    ThreeHundredAndFiftyFive$inboundSchema,
    ThreeHundredAndSixtyThree$inboundSchema,
    ThreeHundredAndSeventyEight$inboundSchema,
    ThreeHundredAndNinetyFive$inboundSchema,
    FourHundredAndTwentyOne$inboundSchema,
    FourHundredAndTwentyThree$inboundSchema,
    FourHundredAndTwentySeven$inboundSchema,
    FourHundredAndTwentyNine$inboundSchema,
    FourHundredAndThirty$inboundSchema,
    FourHundredAndThirtyOne$inboundSchema,
    FourHundredAndFortyEight$inboundSchema,
    FourHundredAndFortyNine$inboundSchema,
    z.lazy(() => Six$inboundSchema),
    z.lazy(() => Twelve$inboundSchema),
    FortyFour$inboundSchema,
    FortyNine$inboundSchema,
    SeventyTwo$inboundSchema,
    SeventyFive$inboundSchema,
    EightyFive$inboundSchema,
    EightySix$inboundSchema,
    EightySeven$inboundSchema,
    EightyEight$inboundSchema,
    NinetySeven$inboundSchema,
    OneHundredAndNine$inboundSchema,
    OneHundredAndTwentyThree$inboundSchema,
    OneHundredAndTwentyFive$inboundSchema,
    OneHundredAndTwentySeven$inboundSchema,
    OneHundredAndTwentyEight$inboundSchema,
    OneHundredAndTwentyNine$inboundSchema,
    OneHundredAndThirty$inboundSchema,
    OneHundredAndThirtySix$inboundSchema,
    OneHundredAndThirtySeven$inboundSchema,
    OneHundredAndThirtyEight$inboundSchema,
    OneHundredAndForty$inboundSchema,
    OneHundredAndFortyFour$inboundSchema,
    OneHundredAndFortySix$inboundSchema,
    OneHundredAndFiftySix$inboundSchema,
    OneHundredAndFiftySeven$inboundSchema,
    OneHundredAndFiftyEight$inboundSchema,
    OneHundredAndSixtyTwo$inboundSchema,
    OneHundredAndSixtyThree$inboundSchema,
    OneHundredAndSixtyFour$inboundSchema,
    OneHundredAndSeventyTwo$inboundSchema,
    OneHundredAndSeventyThree$inboundSchema,
    OneHundredAndEightyTwo$inboundSchema,
    OneHundredAndEightySix$inboundSchema,
    OneHundredAndNinetyThree$inboundSchema,
    OneHundredAndNinetySix$inboundSchema,
    OneHundredAndNinetyNine$inboundSchema,
    TwoHundredAndFour$inboundSchema,
    TwoHundredAndSix$inboundSchema,
    TwoHundredAndEight$inboundSchema,
    TwoHundredAndNine$inboundSchema,
    TwoHundredAndTen$inboundSchema,
    TwoHundredAndEleven$inboundSchema,
    TwoHundredAndTwelve$inboundSchema,
    TwoHundredAndSeventeen$inboundSchema,
    TwoHundredAndEighteen$inboundSchema,
    TwoHundredAndNineteen$inboundSchema,
    TwoHundredAndTwenty$inboundSchema,
    TwoHundredAndTwentySeven$inboundSchema,
    TwoHundredAndThirtyThree$inboundSchema,
    TwoHundredAndThirtyFive$inboundSchema,
    TwoHundredAndThirtySix$inboundSchema,
    TwoHundredAndThirtyEight$inboundSchema,
    TwoHundredAndForty$inboundSchema,
    TwoHundredAndFortyOne$inboundSchema,
    TwoHundredAndFortyThree$inboundSchema,
    TwoHundredAndFortyFour$inboundSchema,
    TwoHundredAndFortySix$inboundSchema,
    TwoHundredAndFiftyOne$inboundSchema,
    TwoHundredAndFiftyFour$inboundSchema,
    TwoHundredAndFiftyFive$inboundSchema,
    TwoHundredAndSixtyThree$inboundSchema,
    TwoHundredAndSixtyFour$inboundSchema,
    TwoHundredAndSixtyFive$inboundSchema,
    TwoHundredAndSixtySeven$inboundSchema,
    TwoHundredAndSixtyEight$inboundSchema,
    TwoHundredAndSixtyNine$inboundSchema,
    TwoHundredAndSeventy$inboundSchema,
    TwoHundredAndSeventyOne$inboundSchema,
    TwoHundredAndSeventyFour$inboundSchema,
    TwoHundredAndSeventyFive$inboundSchema,
    TwoHundredAndSeventySix$inboundSchema,
    TwoHundredAndEightyOne$inboundSchema,
    TwoHundredAndEightyEight$inboundSchema,
    TwoHundredAndNinetyOne$inboundSchema,
    TwoHundredAndNinetyTwo$inboundSchema,
    ThreeHundredAndSix$inboundSchema,
    ThreeHundredAndSeven$inboundSchema,
    ThreeHundredAndEight$inboundSchema,
    ThreeHundredAndNine$inboundSchema,
    ThreeHundredAndTen$inboundSchema,
    ThreeHundredAndTwentyOne$inboundSchema,
    ThreeHundredAndThirtyNine$inboundSchema,
    ThreeHundredAndFiftyOne$inboundSchema,
    ThreeHundredAndSixty$inboundSchema,
    ThreeHundredAndEightyTwo$inboundSchema,
    FourHundredAndFour$inboundSchema,
    FourHundredAndTen$inboundSchema,
    FourHundredAndEleven$inboundSchema,
    FourHundredAndThirteen$inboundSchema,
    FourHundredAndTwentyFour$inboundSchema,
    FourHundredAndTwentyFive$inboundSchema,
    FourHundredAndThirtyFive$inboundSchema,
    FourHundredAndThirtySix$inboundSchema,
    FourHundredAndThirtySeven$inboundSchema,
    FourHundredAndThirtyEight$inboundSchema,
    FourHundredAndFortyFour$inboundSchema,
    z.lazy(() => Payload4$inboundSchema),
    z.lazy(() => Five$inboundSchema),
    z.lazy(() => Seven$inboundSchema),
    z.lazy(() => Nine$inboundSchema),
    z.lazy(() => Ten$inboundSchema),
    z.lazy(() => Eleven$inboundSchema),
    z.lazy(() => Sixteen$inboundSchema),
    z.lazy(() => Eighteen$inboundSchema),
    z.lazy(() => Nineteen$inboundSchema),
    z.lazy(() => TwentyThree$inboundSchema),
    z.lazy(() => TwentyFour$inboundSchema),
    ThirtySix$inboundSchema,
    ThirtySeven$inboundSchema,
    ThirtyNine$inboundSchema,
    FortyTwo$inboundSchema,
    Fifty$inboundSchema,
    FiftyThree$inboundSchema,
    FiftyFive$inboundSchema,
    Sixty$inboundSchema,
    SixtyOne$inboundSchema,
    SixtyEight$inboundSchema,
    SixtyNine$inboundSchema,
    Seventy$inboundSchema,
    SeventyThree$inboundSchema,
    SeventyEight$inboundSchema,
    EightyThree$inboundSchema,
    NinetyOne$inboundSchema,
    NinetyTwo$inboundSchema,
    NinetyThree$inboundSchema,
    NinetyFour$inboundSchema,
    NinetyFive$inboundSchema,
    OneHundred$inboundSchema,
    OneHundredAndThree$inboundSchema,
    OneHundredAndSeventeen$inboundSchema,
    OneHundredAndEighteen$inboundSchema,
    OneHundredAndTwentyOne$inboundSchema,
    OneHundredAndTwentySix$inboundSchema,
    OneHundredAndThirtyFour$inboundSchema,
    OneHundredAndThirtyNine$inboundSchema,
    OneHundredAndFortyTwo$inboundSchema,
    OneHundredAndFortyThree$inboundSchema,
    OneHundredAndFortySeven$inboundSchema,
    OneHundredAndFortyEight$inboundSchema,
    OneHundredAndFiftyTwo$inboundSchema,
    OneHundredAndSeventyFour$inboundSchema,
    OneHundredAndEightyFour$inboundSchema,
    OneHundredAndEightyFive$inboundSchema,
    OneHundredAndNinety$inboundSchema,
    OneHundredAndNinetySeven$inboundSchema,
    OneHundredAndNinetyEight$inboundSchema,
    TwoHundred$inboundSchema,
    TwoHundredAndFive$inboundSchema,
    TwoHundredAndTwentyTwo$inboundSchema,
    TwoHundredAndTwentyFive$inboundSchema,
    TwoHundredAndThirtyOne$inboundSchema,
    TwoHundredAndThirtyTwo$inboundSchema,
    TwoHundredAndThirtyFour$inboundSchema,
    TwoHundredAndThirtyNine$inboundSchema,
    TwoHundredAndFortyNine$inboundSchema,
    TwoHundredAndFiftyTwo$inboundSchema,
    TwoHundredAndFiftyEight$inboundSchema,
    TwoHundredAndEightyFour$inboundSchema,
    TwoHundredAndEightySix$inboundSchema,
    TwoHundredAndEightySeven$inboundSchema,
    TwoHundredAndEightyNine$inboundSchema,
    TwoHundredAndNinetyThree$inboundSchema,
    TwoHundredAndNinetyFour$inboundSchema,
    TwoHundredAndNinetySix$inboundSchema,
    TwoHundredAndNinetyEight$inboundSchema,
    ThreeHundred$inboundSchema,
    ThreeHundredAndOne$inboundSchema,
    ThreeHundredAndTwo$inboundSchema,
    ThreeHundredAndFour$inboundSchema,
    ThreeHundredAndEleven$inboundSchema,
    ThreeHundredAndFifteen$inboundSchema,
    ThreeHundredAndSeventeen$inboundSchema,
    ThreeHundredAndTwenty$inboundSchema,
    ThreeHundredAndTwentyTwo$inboundSchema,
    ThreeHundredAndTwentyThree$inboundSchema,
    ThreeHundredAndTwentySix$inboundSchema,
    ThreeHundredAndTwentySeven$inboundSchema,
    ThreeHundredAndThirty$inboundSchema,
    ThreeHundredAndThirtyOne$inboundSchema,
    ThreeHundredAndThirtyTwo$inboundSchema,
    ThreeHundredAndFortySix$inboundSchema,
    ThreeHundredAndFortyNine$inboundSchema,
    ThreeHundredAndFiftyEight$inboundSchema,
    ThreeHundredAndSixtyOne$inboundSchema,
    ThreeHundredAndSixtyFour$inboundSchema,
    ThreeHundredAndSixtySix$inboundSchema,
    ThreeHundredAndSeventyOne$inboundSchema,
    ThreeHundredAndSeventyTwo$inboundSchema,
    ThreeHundredAndEighty$inboundSchema,
    ThreeHundredAndEightyFive$inboundSchema,
    ThreeHundredAndEightySix$inboundSchema,
    ThreeHundredAndNinetyOne$inboundSchema,
    ThreeHundredAndNinetyThree$inboundSchema,
    ThreeHundredAndNinetyEight$inboundSchema,
    ThreeHundredAndNinetyNine$inboundSchema,
    FourHundredAndTwo$inboundSchema,
    FourHundredAndSeven$inboundSchema,
    FourHundredAndEight$inboundSchema,
    FourHundredAndNine$inboundSchema,
    FourHundredAndTwelve$inboundSchema,
    FourHundredAndFourteen$inboundSchema,
    FourHundredAndFifteen$inboundSchema,
    FourHundredAndNineteen$inboundSchema,
    FourHundredAndTwenty$inboundSchema,
    FourHundredAndTwentyTwo$inboundSchema,
    FourHundredAndThirtyThree$inboundSchema,
    FourHundredAndForty$inboundSchema,
    FourHundredAndFortyThree$inboundSchema,
    FourHundredAndFortySeven$inboundSchema,
    FourHundredAndFifty$inboundSchema,
    z.lazy(() => Eight$inboundSchema),
    z.lazy(() => Fourteen$inboundSchema),
    z.lazy(() => Fifteen$inboundSchema),
    z.lazy(() => Seventeen$inboundSchema),
    z.lazy(() => Twenty$inboundSchema),
    z.lazy(() => TwentyTwo$inboundSchema),
    z.lazy(() => TwentyFive$inboundSchema),
    z.lazy(() => TwentySix$inboundSchema),
    z.lazy(() => TwentySeven$inboundSchema),
    z.lazy(() => TwentyNine$inboundSchema),
    z.lazy(() => Thirty$inboundSchema),
    z.lazy(() => ThirtyOne$inboundSchema),
    z.lazy(() => ThirtyTwo$inboundSchema),
    ThirtyThree$inboundSchema,
    ThirtyFour$inboundSchema,
    ThirtyFive$inboundSchema,
    ThirtyEight$inboundSchema,
    FortyThree$inboundSchema,
    FiftyFour$inboundSchema,
    FiftySix$inboundSchema,
    FiftySeven$inboundSchema,
    FiftyEight$inboundSchema,
    FiftyNine$inboundSchema,
    SixtyFive$inboundSchema,
    SixtySix$inboundSchema,
    SixtySeven$inboundSchema,
    SeventyOne$inboundSchema,
    SeventyFour$inboundSchema,
    SeventySeven$inboundSchema,
    SeventyNine$inboundSchema,
    EightyFour$inboundSchema,
    EightyNine$inboundSchema,
    Ninety$inboundSchema,
    NinetyEight$inboundSchema,
    NinetyNine$inboundSchema,
    OneHundredAndOne$inboundSchema,
    OneHundredAndFive$inboundSchema,
    OneHundredAndSix$inboundSchema,
    OneHundredAndSeven$inboundSchema,
    OneHundredAndSixteen$inboundSchema,
    OneHundredAndNineteen$inboundSchema,
    OneHundredAndTwentyFour$inboundSchema,
    OneHundredAndThirtyOne$inboundSchema,
    OneHundredAndThirtyTwo$inboundSchema,
    OneHundredAndThirtyThree$inboundSchema,
    OneHundredAndThirtyFive$inboundSchema,
    OneHundredAndFortyNine$inboundSchema,
    OneHundredAndFiftyNine$inboundSchema,
    OneHundredAndSixty$inboundSchema,
    OneHundredAndSixtyFive$inboundSchema,
    OneHundredAndSixtySix$inboundSchema,
    OneHundredAndEightyEight$inboundSchema,
    OneHundredAndEightyNine$inboundSchema,
    OneHundredAndNinetyOne$inboundSchema,
    OneHundredAndNinetyFour$inboundSchema,
    OneHundredAndNinetyFive$inboundSchema,
    TwoHundredAndOne$inboundSchema,
    TwoHundredAndTwentySix$inboundSchema,
    TwoHundredAndThirty$inboundSchema,
    TwoHundredAndThirtySeven$inboundSchema,
    TwoHundredAndFifty$inboundSchema,
    TwoHundredAndSeventyTwo$inboundSchema,
    TwoHundredAndSeventyThree$inboundSchema,
    TwoHundredAndEightyTwo$inboundSchema,
    TwoHundredAndEightyFive$inboundSchema,
    TwoHundredAndNinetyFive$inboundSchema,
    TwoHundredAndNinetySeven$inboundSchema,
    ThreeHundredAndNineteen$inboundSchema,
    ThreeHundredAndTwentyNine$inboundSchema,
    ThreeHundredAndThirtyThree$inboundSchema,
    ThreeHundredAndForty$inboundSchema,
    ThreeHundredAndFortyOne$inboundSchema,
    ThreeHundredAndFortyTwo$inboundSchema,
    ThreeHundredAndFortyThree$inboundSchema,
    ThreeHundredAndFortyFive$inboundSchema,
    ThreeHundredAndFifty$inboundSchema,
    ThreeHundredAndFiftyThree$inboundSchema,
    ThreeHundredAndFiftyFour$inboundSchema,
    ThreeHundredAndSixtyTwo$inboundSchema,
    ThreeHundredAndSixtyEight$inboundSchema,
    ThreeHundredAndSixtyNine$inboundSchema,
    ThreeHundredAndSeventyFour$inboundSchema,
    ThreeHundredAndSeventyFive$inboundSchema,
    ThreeHundredAndSeventySix$inboundSchema,
    ThreeHundredAndSeventySeven$inboundSchema,
    ThreeHundredAndSeventyNine$inboundSchema,
    ThreeHundredAndEightyOne$inboundSchema,
    ThreeHundredAndEightySeven$inboundSchema,
    ThreeHundredAndEightyNine$inboundSchema,
    ThreeHundredAndNinety$inboundSchema,
    ThreeHundredAndNinetyFour$inboundSchema,
    ThreeHundredAndNinetySix$inboundSchema,
    FourHundred$inboundSchema,
    FourHundredAndThree$inboundSchema,
    FourHundredAndFive$inboundSchema,
    FourHundredAndSix$inboundSchema,
    FourHundredAndSixteen$inboundSchema,
    FourHundredAndSeventeen$inboundSchema,
    FourHundredAndEighteen$inboundSchema,
    FourHundredAndThirtyTwo$inboundSchema,
    FourHundredAndThirtyFour$inboundSchema,
    FourHundredAndThirtyNine$inboundSchema,
    FourHundredAndFortyOne$inboundSchema,
    FourHundredAndFortySix$inboundSchema,
    z.lazy(() => Payload1$inboundSchema),
    Forty$inboundSchema,
    FortyOne$inboundSchema,
    FortyFive$inboundSchema,
    FortySix$inboundSchema,
    FortySeven$inboundSchema,
    FortyEight$inboundSchema,
    FiftyOne$inboundSchema,
    FiftyTwo$inboundSchema,
    SixtyTwo$inboundSchema,
    SeventySix$inboundSchema,
    Eighty$inboundSchema,
    NinetySix$inboundSchema,
    OneHundredAndFifty$inboundSchema,
    OneHundredAndFiftyOne$inboundSchema,
    OneHundredAndFiftyThree$inboundSchema,
    OneHundredAndFiftyFive$inboundSchema,
    OneHundredAndNinetyTwo$inboundSchema,
    TwoHundredAndTwentyEight$inboundSchema,
    TwoHundredAndTwentyNine$inboundSchema,
    TwoHundredAndFortySeven$inboundSchema,
    TwoHundredAndFortyEight$inboundSchema,
    ThreeHundredAndThirtyFive$inboundSchema,
    ThreeHundredAndFortyFour$inboundSchema,
    ThreeHundredAndFiftyTwo$inboundSchema,
    ThreeHundredAndFiftyNine$inboundSchema,
    ThreeHundredAndSixtyFive$inboundSchema,
    ThreeHundredAndSixtySeven$inboundSchema,
    ThreeHundredAndSeventy$inboundSchema,
    ThreeHundredAndSeventyThree$inboundSchema,
    ThreeHundredAndEightyThree$inboundSchema,
    ThreeHundredAndEightyFour$inboundSchema,
    ThreeHundredAndEightyEight$inboundSchema,
    ThreeHundredAndNinetyTwo$inboundSchema,
    ThreeHundredAndNinetySeven$inboundSchema,
    FourHundredAndOne$inboundSchema,
  ]);

export function payloadFromJSON(
  jsonString: string,
): SafeParseResult<Payload, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => Payload$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'Payload' from JSON`,
  );
}

/** @internal */
export const UserEvent$inboundSchema: z.ZodType<
  UserEvent,
  z.ZodTypeDef,
  unknown
> = z.object({
  id: types.string(),
  text: types.string(),
  entities: z.array(Entities$inboundSchema),
  type: types.optional(UserEventType$inboundSchema),
  categories: types.optional(z.array(Categories$inboundSchema)),
  createdAt: types.number(),
  user: types.optional(User$inboundSchema),
  principal: types.optional(Principal$inboundSchema),
  via: types.optional(z.array(Via$inboundSchema)),
  userId: types.optional(types.string()),
  principalId: types.string(),
  viaIds: types.optional(z.array(types.string())),
  tokenId: types.optional(types.string()),
  sessionId: types.optional(types.string()),
  requestId: types.optional(types.string()),
  payload: types.optional(
    smartUnion([
      ThreeHundredAndFiftySeven$inboundSchema,
      OneHundredAndSeventySeven$inboundSchema,
      OneHundredAndSixtySeven$inboundSchema,
      TwoHundredAndTwentyThree$inboundSchema,
      OneHundredAndSeventyEight$inboundSchema,
      FourHundredAndFortyTwo$inboundSchema,
      OneHundredAndFourteen$inboundSchema,
      OneHundredAndEighty$inboundSchema,
      OneHundredAndEightyOne$inboundSchema,
      TwoHundredAndFifteen$inboundSchema,
      TwoHundredAndSeventyEight$inboundSchema,
      z.lazy(() => Payload3$inboundSchema),
      OneHundredAndFiftyFour$inboundSchema,
      OneHundredAndSeventyOne$inboundSchema,
      OneHundredAndSeventyFive$inboundSchema,
      OneHundredAndSeventyNine$inboundSchema,
      TwoHundredAndFiftySix$inboundSchema,
      ThreeHundredAndEighteen$inboundSchema,
      ThreeHundredAndThirtySix$inboundSchema,
      ThreeHundredAndThirtyEight$inboundSchema,
      z.lazy(() => TwentyEight$inboundSchema),
      OneHundredAndEight$inboundSchema,
      OneHundredAndEleven$inboundSchema,
      OneHundredAndTwelve$inboundSchema,
      OneHundredAndThirteen$inboundSchema,
      OneHundredAndFifteen$inboundSchema,
      OneHundredAndTwentyTwo$inboundSchema,
      OneHundredAndSixtyOne$inboundSchema,
      OneHundredAndSeventy$inboundSchema,
      OneHundredAndSeventySix$inboundSchema,
      TwoHundredAndThree$inboundSchema,
      TwoHundredAndSeven$inboundSchema,
      TwoHundredAndSixtySix$inboundSchema,
      TwoHundredAndEighty$inboundSchema,
      TwoHundredAndNinety$inboundSchema,
      ThreeHundredAndFiftySix$inboundSchema,
      FourHundredAndTwentySix$inboundSchema,
      FourHundredAndTwentyEight$inboundSchema,
      FourHundredAndFortyFive$inboundSchema,
      z.lazy(() => Payload2$inboundSchema),
      z.lazy(() => Thirteen$inboundSchema),
      z.lazy(() => TwentyOne$inboundSchema),
      SixtyThree$inboundSchema,
      SixtyFour$inboundSchema,
      EightyOne$inboundSchema,
      EightyTwo$inboundSchema,
      OneHundredAndTwo$inboundSchema,
      OneHundredAndFour$inboundSchema,
      OneHundredAndTen$inboundSchema,
      OneHundredAndTwenty$inboundSchema,
      OneHundredAndFortyOne$inboundSchema,
      OneHundredAndFortyFive$inboundSchema,
      OneHundredAndSixtyEight$inboundSchema,
      OneHundredAndSixtyNine$inboundSchema,
      OneHundredAndEightyThree$inboundSchema,
      OneHundredAndEightySeven$inboundSchema,
      TwoHundredAndTwo$inboundSchema,
      TwoHundredAndThirteen$inboundSchema,
      TwoHundredAndFourteen$inboundSchema,
      TwoHundredAndSixteen$inboundSchema,
      TwoHundredAndTwentyOne$inboundSchema,
      TwoHundredAndTwentyFour$inboundSchema,
      TwoHundredAndFortyTwo$inboundSchema,
      TwoHundredAndFortyFive$inboundSchema,
      TwoHundredAndFiftyThree$inboundSchema,
      TwoHundredAndFiftySeven$inboundSchema,
      TwoHundredAndFiftyNine$inboundSchema,
      TwoHundredAndSixty$inboundSchema,
      TwoHundredAndSixtyOne$inboundSchema,
      TwoHundredAndSixtyTwo$inboundSchema,
      TwoHundredAndSeventySeven$inboundSchema,
      TwoHundredAndSeventyNine$inboundSchema,
      TwoHundredAndEightyThree$inboundSchema,
      TwoHundredAndNinetyNine$inboundSchema,
      ThreeHundredAndThree$inboundSchema,
      ThreeHundredAndFive$inboundSchema,
      ThreeHundredAndTwelve$inboundSchema,
      ThreeHundredAndThirteen$inboundSchema,
      ThreeHundredAndFourteen$inboundSchema,
      ThreeHundredAndSixteen$inboundSchema,
      ThreeHundredAndTwentyFour$inboundSchema,
      ThreeHundredAndTwentyFive$inboundSchema,
      ThreeHundredAndTwentyEight$inboundSchema,
      ThreeHundredAndThirtyFour$inboundSchema,
      ThreeHundredAndThirtySeven$inboundSchema,
      ThreeHundredAndFortySeven$inboundSchema,
      ThreeHundredAndFortyEight$inboundSchema,
      ThreeHundredAndFiftyFive$inboundSchema,
      ThreeHundredAndSixtyThree$inboundSchema,
      ThreeHundredAndSeventyEight$inboundSchema,
      ThreeHundredAndNinetyFive$inboundSchema,
      FourHundredAndTwentyOne$inboundSchema,
      FourHundredAndTwentyThree$inboundSchema,
      FourHundredAndTwentySeven$inboundSchema,
      FourHundredAndTwentyNine$inboundSchema,
      FourHundredAndThirty$inboundSchema,
      FourHundredAndThirtyOne$inboundSchema,
      FourHundredAndFortyEight$inboundSchema,
      FourHundredAndFortyNine$inboundSchema,
      z.lazy(() => Six$inboundSchema),
      z.lazy(() => Twelve$inboundSchema),
      FortyFour$inboundSchema,
      FortyNine$inboundSchema,
      SeventyTwo$inboundSchema,
      SeventyFive$inboundSchema,
      EightyFive$inboundSchema,
      EightySix$inboundSchema,
      EightySeven$inboundSchema,
      EightyEight$inboundSchema,
      NinetySeven$inboundSchema,
      OneHundredAndNine$inboundSchema,
      OneHundredAndTwentyThree$inboundSchema,
      OneHundredAndTwentyFive$inboundSchema,
      OneHundredAndTwentySeven$inboundSchema,
      OneHundredAndTwentyEight$inboundSchema,
      OneHundredAndTwentyNine$inboundSchema,
      OneHundredAndThirty$inboundSchema,
      OneHundredAndThirtySix$inboundSchema,
      OneHundredAndThirtySeven$inboundSchema,
      OneHundredAndThirtyEight$inboundSchema,
      OneHundredAndForty$inboundSchema,
      OneHundredAndFortyFour$inboundSchema,
      OneHundredAndFortySix$inboundSchema,
      OneHundredAndFiftySix$inboundSchema,
      OneHundredAndFiftySeven$inboundSchema,
      OneHundredAndFiftyEight$inboundSchema,
      OneHundredAndSixtyTwo$inboundSchema,
      OneHundredAndSixtyThree$inboundSchema,
      OneHundredAndSixtyFour$inboundSchema,
      OneHundredAndSeventyTwo$inboundSchema,
      OneHundredAndSeventyThree$inboundSchema,
      OneHundredAndEightyTwo$inboundSchema,
      OneHundredAndEightySix$inboundSchema,
      OneHundredAndNinetyThree$inboundSchema,
      OneHundredAndNinetySix$inboundSchema,
      OneHundredAndNinetyNine$inboundSchema,
      TwoHundredAndFour$inboundSchema,
      TwoHundredAndSix$inboundSchema,
      TwoHundredAndEight$inboundSchema,
      TwoHundredAndNine$inboundSchema,
      TwoHundredAndTen$inboundSchema,
      TwoHundredAndEleven$inboundSchema,
      TwoHundredAndTwelve$inboundSchema,
      TwoHundredAndSeventeen$inboundSchema,
      TwoHundredAndEighteen$inboundSchema,
      TwoHundredAndNineteen$inboundSchema,
      TwoHundredAndTwenty$inboundSchema,
      TwoHundredAndTwentySeven$inboundSchema,
      TwoHundredAndThirtyThree$inboundSchema,
      TwoHundredAndThirtyFive$inboundSchema,
      TwoHundredAndThirtySix$inboundSchema,
      TwoHundredAndThirtyEight$inboundSchema,
      TwoHundredAndForty$inboundSchema,
      TwoHundredAndFortyOne$inboundSchema,
      TwoHundredAndFortyThree$inboundSchema,
      TwoHundredAndFortyFour$inboundSchema,
      TwoHundredAndFortySix$inboundSchema,
      TwoHundredAndFiftyOne$inboundSchema,
      TwoHundredAndFiftyFour$inboundSchema,
      TwoHundredAndFiftyFive$inboundSchema,
      TwoHundredAndSixtyThree$inboundSchema,
      TwoHundredAndSixtyFour$inboundSchema,
      TwoHundredAndSixtyFive$inboundSchema,
      TwoHundredAndSixtySeven$inboundSchema,
      TwoHundredAndSixtyEight$inboundSchema,
      TwoHundredAndSixtyNine$inboundSchema,
      TwoHundredAndSeventy$inboundSchema,
      TwoHundredAndSeventyOne$inboundSchema,
      TwoHundredAndSeventyFour$inboundSchema,
      TwoHundredAndSeventyFive$inboundSchema,
      TwoHundredAndSeventySix$inboundSchema,
      TwoHundredAndEightyOne$inboundSchema,
      TwoHundredAndEightyEight$inboundSchema,
      TwoHundredAndNinetyOne$inboundSchema,
      TwoHundredAndNinetyTwo$inboundSchema,
      ThreeHundredAndSix$inboundSchema,
      ThreeHundredAndSeven$inboundSchema,
      ThreeHundredAndEight$inboundSchema,
      ThreeHundredAndNine$inboundSchema,
      ThreeHundredAndTen$inboundSchema,
      ThreeHundredAndTwentyOne$inboundSchema,
      ThreeHundredAndThirtyNine$inboundSchema,
      ThreeHundredAndFiftyOne$inboundSchema,
      ThreeHundredAndSixty$inboundSchema,
      ThreeHundredAndEightyTwo$inboundSchema,
      FourHundredAndFour$inboundSchema,
      FourHundredAndTen$inboundSchema,
      FourHundredAndEleven$inboundSchema,
      FourHundredAndThirteen$inboundSchema,
      FourHundredAndTwentyFour$inboundSchema,
      FourHundredAndTwentyFive$inboundSchema,
      FourHundredAndThirtyFive$inboundSchema,
      FourHundredAndThirtySix$inboundSchema,
      FourHundredAndThirtySeven$inboundSchema,
      FourHundredAndThirtyEight$inboundSchema,
      FourHundredAndFortyFour$inboundSchema,
      z.lazy(() => Payload4$inboundSchema),
      z.lazy(() => Five$inboundSchema),
      z.lazy(() => Seven$inboundSchema),
      z.lazy(() => Nine$inboundSchema),
      z.lazy(() => Ten$inboundSchema),
      z.lazy(() => Eleven$inboundSchema),
      z.lazy(() => Sixteen$inboundSchema),
      z.lazy(() => Eighteen$inboundSchema),
      z.lazy(() => Nineteen$inboundSchema),
      z.lazy(() => TwentyThree$inboundSchema),
      z.lazy(() => TwentyFour$inboundSchema),
      ThirtySix$inboundSchema,
      ThirtySeven$inboundSchema,
      ThirtyNine$inboundSchema,
      FortyTwo$inboundSchema,
      Fifty$inboundSchema,
      FiftyThree$inboundSchema,
      FiftyFive$inboundSchema,
      Sixty$inboundSchema,
      SixtyOne$inboundSchema,
      SixtyEight$inboundSchema,
      SixtyNine$inboundSchema,
      Seventy$inboundSchema,
      SeventyThree$inboundSchema,
      SeventyEight$inboundSchema,
      EightyThree$inboundSchema,
      NinetyOne$inboundSchema,
      NinetyTwo$inboundSchema,
      NinetyThree$inboundSchema,
      NinetyFour$inboundSchema,
      NinetyFive$inboundSchema,
      OneHundred$inboundSchema,
      OneHundredAndThree$inboundSchema,
      OneHundredAndSeventeen$inboundSchema,
      OneHundredAndEighteen$inboundSchema,
      OneHundredAndTwentyOne$inboundSchema,
      OneHundredAndTwentySix$inboundSchema,
      OneHundredAndThirtyFour$inboundSchema,
      OneHundredAndThirtyNine$inboundSchema,
      OneHundredAndFortyTwo$inboundSchema,
      OneHundredAndFortyThree$inboundSchema,
      OneHundredAndFortySeven$inboundSchema,
      OneHundredAndFortyEight$inboundSchema,
      OneHundredAndFiftyTwo$inboundSchema,
      OneHundredAndSeventyFour$inboundSchema,
      OneHundredAndEightyFour$inboundSchema,
      OneHundredAndEightyFive$inboundSchema,
      OneHundredAndNinety$inboundSchema,
      OneHundredAndNinetySeven$inboundSchema,
      OneHundredAndNinetyEight$inboundSchema,
      TwoHundred$inboundSchema,
      TwoHundredAndFive$inboundSchema,
      TwoHundredAndTwentyTwo$inboundSchema,
      TwoHundredAndTwentyFive$inboundSchema,
      TwoHundredAndThirtyOne$inboundSchema,
      TwoHundredAndThirtyTwo$inboundSchema,
      TwoHundredAndThirtyFour$inboundSchema,
      TwoHundredAndThirtyNine$inboundSchema,
      TwoHundredAndFortyNine$inboundSchema,
      TwoHundredAndFiftyTwo$inboundSchema,
      TwoHundredAndFiftyEight$inboundSchema,
      TwoHundredAndEightyFour$inboundSchema,
      TwoHundredAndEightySix$inboundSchema,
      TwoHundredAndEightySeven$inboundSchema,
      TwoHundredAndEightyNine$inboundSchema,
      TwoHundredAndNinetyThree$inboundSchema,
      TwoHundredAndNinetyFour$inboundSchema,
      TwoHundredAndNinetySix$inboundSchema,
      TwoHundredAndNinetyEight$inboundSchema,
      ThreeHundred$inboundSchema,
      ThreeHundredAndOne$inboundSchema,
      ThreeHundredAndTwo$inboundSchema,
      ThreeHundredAndFour$inboundSchema,
      ThreeHundredAndEleven$inboundSchema,
      ThreeHundredAndFifteen$inboundSchema,
      ThreeHundredAndSeventeen$inboundSchema,
      ThreeHundredAndTwenty$inboundSchema,
      ThreeHundredAndTwentyTwo$inboundSchema,
      ThreeHundredAndTwentyThree$inboundSchema,
      ThreeHundredAndTwentySix$inboundSchema,
      ThreeHundredAndTwentySeven$inboundSchema,
      ThreeHundredAndThirty$inboundSchema,
      ThreeHundredAndThirtyOne$inboundSchema,
      ThreeHundredAndThirtyTwo$inboundSchema,
      ThreeHundredAndFortySix$inboundSchema,
      ThreeHundredAndFortyNine$inboundSchema,
      ThreeHundredAndFiftyEight$inboundSchema,
      ThreeHundredAndSixtyOne$inboundSchema,
      ThreeHundredAndSixtyFour$inboundSchema,
      ThreeHundredAndSixtySix$inboundSchema,
      ThreeHundredAndSeventyOne$inboundSchema,
      ThreeHundredAndSeventyTwo$inboundSchema,
      ThreeHundredAndEighty$inboundSchema,
      ThreeHundredAndEightyFive$inboundSchema,
      ThreeHundredAndEightySix$inboundSchema,
      ThreeHundredAndNinetyOne$inboundSchema,
      ThreeHundredAndNinetyThree$inboundSchema,
      ThreeHundredAndNinetyEight$inboundSchema,
      ThreeHundredAndNinetyNine$inboundSchema,
      FourHundredAndTwo$inboundSchema,
      FourHundredAndSeven$inboundSchema,
      FourHundredAndEight$inboundSchema,
      FourHundredAndNine$inboundSchema,
      FourHundredAndTwelve$inboundSchema,
      FourHundredAndFourteen$inboundSchema,
      FourHundredAndFifteen$inboundSchema,
      FourHundredAndNineteen$inboundSchema,
      FourHundredAndTwenty$inboundSchema,
      FourHundredAndTwentyTwo$inboundSchema,
      FourHundredAndThirtyThree$inboundSchema,
      FourHundredAndForty$inboundSchema,
      FourHundredAndFortyThree$inboundSchema,
      FourHundredAndFortySeven$inboundSchema,
      FourHundredAndFifty$inboundSchema,
      z.lazy(() => Eight$inboundSchema),
      z.lazy(() => Fourteen$inboundSchema),
      z.lazy(() => Fifteen$inboundSchema),
      z.lazy(() => Seventeen$inboundSchema),
      z.lazy(() => Twenty$inboundSchema),
      z.lazy(() => TwentyTwo$inboundSchema),
      z.lazy(() => TwentyFive$inboundSchema),
      z.lazy(() => TwentySix$inboundSchema),
      z.lazy(() => TwentySeven$inboundSchema),
      z.lazy(() => TwentyNine$inboundSchema),
      z.lazy(() => Thirty$inboundSchema),
      z.lazy(() => ThirtyOne$inboundSchema),
      z.lazy(() => ThirtyTwo$inboundSchema),
      ThirtyThree$inboundSchema,
      ThirtyFour$inboundSchema,
      ThirtyFive$inboundSchema,
      ThirtyEight$inboundSchema,
      FortyThree$inboundSchema,
      FiftyFour$inboundSchema,
      FiftySix$inboundSchema,
      FiftySeven$inboundSchema,
      FiftyEight$inboundSchema,
      FiftyNine$inboundSchema,
      SixtyFive$inboundSchema,
      SixtySix$inboundSchema,
      SixtySeven$inboundSchema,
      SeventyOne$inboundSchema,
      SeventyFour$inboundSchema,
      SeventySeven$inboundSchema,
      SeventyNine$inboundSchema,
      EightyFour$inboundSchema,
      EightyNine$inboundSchema,
      Ninety$inboundSchema,
      NinetyEight$inboundSchema,
      NinetyNine$inboundSchema,
      OneHundredAndOne$inboundSchema,
      OneHundredAndFive$inboundSchema,
      OneHundredAndSix$inboundSchema,
      OneHundredAndSeven$inboundSchema,
      OneHundredAndSixteen$inboundSchema,
      OneHundredAndNineteen$inboundSchema,
      OneHundredAndTwentyFour$inboundSchema,
      OneHundredAndThirtyOne$inboundSchema,
      OneHundredAndThirtyTwo$inboundSchema,
      OneHundredAndThirtyThree$inboundSchema,
      OneHundredAndThirtyFive$inboundSchema,
      OneHundredAndFortyNine$inboundSchema,
      OneHundredAndFiftyNine$inboundSchema,
      OneHundredAndSixty$inboundSchema,
      OneHundredAndSixtyFive$inboundSchema,
      OneHundredAndSixtySix$inboundSchema,
      OneHundredAndEightyEight$inboundSchema,
      OneHundredAndEightyNine$inboundSchema,
      OneHundredAndNinetyOne$inboundSchema,
      OneHundredAndNinetyFour$inboundSchema,
      OneHundredAndNinetyFive$inboundSchema,
      TwoHundredAndOne$inboundSchema,
      TwoHundredAndTwentySix$inboundSchema,
      TwoHundredAndThirty$inboundSchema,
      TwoHundredAndThirtySeven$inboundSchema,
      TwoHundredAndFifty$inboundSchema,
      TwoHundredAndSeventyTwo$inboundSchema,
      TwoHundredAndSeventyThree$inboundSchema,
      TwoHundredAndEightyTwo$inboundSchema,
      TwoHundredAndEightyFive$inboundSchema,
      TwoHundredAndNinetyFive$inboundSchema,
      TwoHundredAndNinetySeven$inboundSchema,
      ThreeHundredAndNineteen$inboundSchema,
      ThreeHundredAndTwentyNine$inboundSchema,
      ThreeHundredAndThirtyThree$inboundSchema,
      ThreeHundredAndForty$inboundSchema,
      ThreeHundredAndFortyOne$inboundSchema,
      ThreeHundredAndFortyTwo$inboundSchema,
      ThreeHundredAndFortyThree$inboundSchema,
      ThreeHundredAndFortyFive$inboundSchema,
      ThreeHundredAndFifty$inboundSchema,
      ThreeHundredAndFiftyThree$inboundSchema,
      ThreeHundredAndFiftyFour$inboundSchema,
      ThreeHundredAndSixtyTwo$inboundSchema,
      ThreeHundredAndSixtyEight$inboundSchema,
      ThreeHundredAndSixtyNine$inboundSchema,
      ThreeHundredAndSeventyFour$inboundSchema,
      ThreeHundredAndSeventyFive$inboundSchema,
      ThreeHundredAndSeventySix$inboundSchema,
      ThreeHundredAndSeventySeven$inboundSchema,
      ThreeHundredAndSeventyNine$inboundSchema,
      ThreeHundredAndEightyOne$inboundSchema,
      ThreeHundredAndEightySeven$inboundSchema,
      ThreeHundredAndEightyNine$inboundSchema,
      ThreeHundredAndNinety$inboundSchema,
      ThreeHundredAndNinetyFour$inboundSchema,
      ThreeHundredAndNinetySix$inboundSchema,
      FourHundred$inboundSchema,
      FourHundredAndThree$inboundSchema,
      FourHundredAndFive$inboundSchema,
      FourHundredAndSix$inboundSchema,
      FourHundredAndSixteen$inboundSchema,
      FourHundredAndSeventeen$inboundSchema,
      FourHundredAndEighteen$inboundSchema,
      FourHundredAndThirtyTwo$inboundSchema,
      FourHundredAndThirtyFour$inboundSchema,
      FourHundredAndThirtyNine$inboundSchema,
      FourHundredAndFortyOne$inboundSchema,
      FourHundredAndFortySix$inboundSchema,
      z.lazy(() => Payload1$inboundSchema),
      Forty$inboundSchema,
      FortyOne$inboundSchema,
      FortyFive$inboundSchema,
      FortySix$inboundSchema,
      FortySeven$inboundSchema,
      FortyEight$inboundSchema,
      FiftyOne$inboundSchema,
      FiftyTwo$inboundSchema,
      SixtyTwo$inboundSchema,
      SeventySix$inboundSchema,
      Eighty$inboundSchema,
      NinetySix$inboundSchema,
      OneHundredAndFifty$inboundSchema,
      OneHundredAndFiftyOne$inboundSchema,
      OneHundredAndFiftyThree$inboundSchema,
      OneHundredAndFiftyFive$inboundSchema,
      OneHundredAndNinetyTwo$inboundSchema,
      TwoHundredAndTwentyEight$inboundSchema,
      TwoHundredAndTwentyNine$inboundSchema,
      TwoHundredAndFortySeven$inboundSchema,
      TwoHundredAndFortyEight$inboundSchema,
      ThreeHundredAndThirtyFive$inboundSchema,
      ThreeHundredAndFortyFour$inboundSchema,
      ThreeHundredAndFiftyTwo$inboundSchema,
      ThreeHundredAndFiftyNine$inboundSchema,
      ThreeHundredAndSixtyFive$inboundSchema,
      ThreeHundredAndSixtySeven$inboundSchema,
      ThreeHundredAndSeventy$inboundSchema,
      ThreeHundredAndSeventyThree$inboundSchema,
      ThreeHundredAndEightyThree$inboundSchema,
      ThreeHundredAndEightyFour$inboundSchema,
      ThreeHundredAndEightyEight$inboundSchema,
      ThreeHundredAndNinetyTwo$inboundSchema,
      ThreeHundredAndNinetySeven$inboundSchema,
      FourHundredAndOne$inboundSchema,
    ]),
  ),
});

export function userEventFromJSON(
  jsonString: string,
): SafeParseResult<UserEvent, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => UserEvent$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'UserEvent' from JSON`,
  );
}