@cossistant/types 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/api/common.d.ts +47 -0
  2. package/api/common.d.ts.map +1 -0
  3. package/api/contact.d.ts +140 -0
  4. package/api/contact.d.ts.map +1 -0
  5. package/api/conversation.d.ts +95 -0
  6. package/api/conversation.d.ts.map +1 -0
  7. package/api/organization.d.ts +17 -0
  8. package/{dist/api → api}/organization.d.ts.map +1 -1
  9. package/api/timeline-item.d.ts +274 -0
  10. package/api/timeline-item.d.ts.map +1 -0
  11. package/api/upload.d.ts +103 -0
  12. package/api/upload.d.ts.map +1 -0
  13. package/api/user.d.ts +29 -0
  14. package/api/user.d.ts.map +1 -0
  15. package/api/visitor.d.ts +127 -0
  16. package/api/visitor.d.ts.map +1 -0
  17. package/api/website.d.ts +194 -0
  18. package/api/website.d.ts.map +1 -0
  19. package/api.d.ts +71 -0
  20. package/api.d.ts.map +1 -0
  21. package/checks.d.ts +189 -0
  22. package/checks.d.ts.map +1 -0
  23. package/coerce.d.ts +9 -0
  24. package/coerce.d.ts.map +1 -0
  25. package/core.d.ts +35 -0
  26. package/core.d.ts.map +1 -0
  27. package/errors.d.ts +121 -0
  28. package/errors.d.ts.map +1 -0
  29. package/errors2.d.ts +24 -0
  30. package/errors2.d.ts.map +1 -0
  31. package/index2.d.ts +4 -0
  32. package/index3.d.ts +1 -0
  33. package/metadata.d.ts +1 -0
  34. package/openapi-generator.d.ts +1 -0
  35. package/openapi-generator2.d.ts +1 -0
  36. package/openapi-generator3.d.ts +1 -0
  37. package/openapi30.d.ts +125 -0
  38. package/openapi30.d.ts.map +1 -0
  39. package/openapi31.d.ts +131 -0
  40. package/openapi31.d.ts.map +1 -0
  41. package/package.json +12 -16
  42. package/parse.d.ts +17 -0
  43. package/parse.d.ts.map +1 -0
  44. package/realtime-events.d.ts +138 -0
  45. package/realtime-events.d.ts.map +1 -0
  46. package/registries.d.ts +32 -0
  47. package/registries.d.ts.map +1 -0
  48. package/schemas.d.ts +46 -0
  49. package/schemas.d.ts.map +1 -0
  50. package/schemas2.d.ts +685 -0
  51. package/schemas2.d.ts.map +1 -0
  52. package/schemas3.d.ts +325 -0
  53. package/schemas3.d.ts.map +1 -0
  54. package/specification-extension.d.ts +9 -0
  55. package/specification-extension.d.ts.map +1 -0
  56. package/standard-schema.d.ts +59 -0
  57. package/standard-schema.d.ts.map +1 -0
  58. package/trpc/contact.d.ts +70 -0
  59. package/trpc/contact.d.ts.map +1 -0
  60. package/trpc/conversation.d.ts +141 -0
  61. package/trpc/conversation.d.ts.map +1 -0
  62. package/trpc/visitor.d.ts +55 -0
  63. package/trpc/visitor.d.ts.map +1 -0
  64. package/util.d.ts +41 -0
  65. package/util.d.ts.map +1 -0
  66. package/versions.d.ts +9 -0
  67. package/versions.d.ts.map +1 -0
  68. package/zod-extensions.d.ts +39 -0
  69. package/zod-extensions.d.ts.map +1 -0
  70. package/dist/api/common.d.ts +0 -44
  71. package/dist/api/common.d.ts.map +0 -1
  72. package/dist/api/contact.d.ts +0 -138
  73. package/dist/api/contact.d.ts.map +0 -1
  74. package/dist/api/conversation.d.ts +0 -91
  75. package/dist/api/conversation.d.ts.map +0 -1
  76. package/dist/api/organization.d.ts +0 -15
  77. package/dist/api/timeline-item.d.ts +0 -270
  78. package/dist/api/timeline-item.d.ts.map +0 -1
  79. package/dist/api/upload.d.ts +0 -100
  80. package/dist/api/upload.d.ts.map +0 -1
  81. package/dist/api/user.d.ts +0 -27
  82. package/dist/api/user.d.ts.map +0 -1
  83. package/dist/api/visitor.d.ts +0 -125
  84. package/dist/api/visitor.d.ts.map +0 -1
  85. package/dist/api/website.d.ts +0 -192
  86. package/dist/api/website.d.ts.map +0 -1
  87. package/dist/realtime-events.d.ts +0 -136
  88. package/dist/realtime-events.d.ts.map +0 -1
  89. package/dist/schemas.d.ts +0 -44
  90. package/dist/schemas.d.ts.map +0 -1
  91. package/dist/trpc/contact.d.ts +0 -68
  92. package/dist/trpc/contact.d.ts.map +0 -1
  93. package/dist/trpc/conversation.d.ts +0 -139
  94. package/dist/trpc/conversation.d.ts.map +0 -1
  95. package/dist/trpc/visitor.d.ts +0 -53
  96. package/dist/trpc/visitor.d.ts.map +0 -1
  97. /package/{dist/api → api}/common.js +0 -0
  98. /package/{dist/api → api}/common.js.map +0 -0
  99. /package/{dist/api → api}/contact.js +0 -0
  100. /package/{dist/api → api}/contact.js.map +0 -0
  101. /package/{dist/api → api}/conversation.js +0 -0
  102. /package/{dist/api → api}/conversation.js.map +0 -0
  103. /package/{dist/api → api}/index.d.ts +0 -0
  104. /package/{dist/api → api}/index.js +0 -0
  105. /package/{dist/api → api}/organization.js +0 -0
  106. /package/{dist/api → api}/organization.js.map +0 -0
  107. /package/{dist/api → api}/timeline-item.js +0 -0
  108. /package/{dist/api → api}/timeline-item.js.map +0 -0
  109. /package/{dist/api → api}/upload.js +0 -0
  110. /package/{dist/api → api}/upload.js.map +0 -0
  111. /package/{dist/api → api}/user.js +0 -0
  112. /package/{dist/api → api}/user.js.map +0 -0
  113. /package/{dist/api → api}/visitor.js +0 -0
  114. /package/{dist/api → api}/visitor.js.map +0 -0
  115. /package/{dist/api → api}/website.js +0 -0
  116. /package/{dist/api → api}/website.js.map +0 -0
  117. /package/{dist/enums.d.ts → enums.d.ts} +0 -0
  118. /package/{dist/enums.d.ts.map → enums.d.ts.map} +0 -0
  119. /package/{dist/enums.js → enums.js} +0 -0
  120. /package/{dist/enums.js.map → enums.js.map} +0 -0
  121. /package/{dist/index.d.ts → index.d.ts} +0 -0
  122. /package/{dist/index.d.ts.map → index.d.ts.map} +0 -0
  123. /package/{dist/index.js → index.js} +0 -0
  124. /package/{dist/presence.d.ts → presence.d.ts} +0 -0
  125. /package/{dist/presence.d.ts.map → presence.d.ts.map} +0 -0
  126. /package/{dist/presence.js → presence.js} +0 -0
  127. /package/{dist/presence.js.map → presence.js.map} +0 -0
  128. /package/{dist/realtime-events.js → realtime-events.js} +0 -0
  129. /package/{dist/realtime-events.js.map → realtime-events.js.map} +0 -0
  130. /package/{dist/schemas.js → schemas.js} +0 -0
  131. /package/{dist/schemas.js.map → schemas.js.map} +0 -0
  132. /package/{dist/trpc → trpc}/contact.js +0 -0
  133. /package/{dist/trpc → trpc}/contact.js.map +0 -0
  134. /package/{dist/trpc → trpc}/conversation.js +0 -0
  135. /package/{dist/trpc → trpc}/conversation.js.map +0 -0
  136. /package/{dist/trpc → trpc}/visitor.js +0 -0
  137. /package/{dist/trpc → trpc}/visitor.js.map +0 -0
package/util.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.d.ts","names":["checks","$ZodConfig","errors","schemas","JSONType","JWTAlgorithm","HashAlgorithm","HashEncoding","HashFormat","IPVersion","MimeTypes","ParsedTypes","AssertEqual","V","T","U","AssertNotEqual","AssertExtends","IsAny","Omit","K","Exclude","Pick","OmitKeys","MakePartial","InexactPartial","MakeRequired","Required","Exactly","X","Record","NoUndefined","Whatever","LoosePartial","Mask","Keys","PropertyKey","Writeable","P","EmptyObject","BuiltIn","Symbol","toStringTag","Date","Error","Generator","Promise","RegExp","MakeReadonly","Map","ReadonlyMap","Set","ReadonlySet","Head","Tail","Array","ReadonlyArray","Readonly","SomeObject","Identity","Flatten","k","Mapped","Prettify","NoNeverKeys","NoNever","Extend","A","B","TupleItems","SomeType","AnyFunc","IsProp","MaybeAsync","KeyOf","OmitIndexSignature","ExtractIndexSignature","SchemaClass","EnumValue","EnumLike","ToEnum","KeysEnum","KeysArray","Literal","LiteralArray","Primitive","PrimitiveArray","HasSize","HasLength","Numeric","SafeParseResult","SafeParseSuccess","SafeParseError","$ZodError","PropValues","PrimitiveSet","assertEqual","assertNotEqual","assertIs","assertNever","assert","getEnumValues","joinValues","jsonStringifyReplacer","cached","nullish","cleanRegex","floatSafeRemainder","defineLazy","objectClone","assignProp","mergeDefs","cloneDef","$ZodType","getElementAtPath","promiseAllObject","Awaited","randomString","esc","captureStackTrace","Function","isObject","allowsEval","isPlainObject","shallowClone","numKeys","getParsedType","propertyKeyTypes","primitiveTypes","escapeRegex","clone","EmptyToNever","Normalize","normalizeParams","createTransparentProxy","stringifyPrimitive","optionalKeys","$ZodShape","CleanKey","ToCleanMap","$ZodLooseShape","FromCleanMap","NUMBER_FORMAT_RANGES","$ZodNumberFormats","BIGINT_FORMAT_RANGES","$ZodBigIntFormats","pick","$ZodObject","omit","extend","safeExtend","merge","partial","$ZodOptional","required","$ZodNonOptional","Constructor","Def","aborted","ParsePayload","prefixIssues","$ZodRawIssue","unwrapMessage","finalizeIssue","ParseContextInternal","$ZodIssue","getSizableOrigin","getLengthableOrigin","issue","cleanEnum","base64ToUint8Array","Uint8Array","InstanceType","uint8ArrayToBase64","base64urlToUint8Array","uint8ArrayToBase64url","hexToUint8Array","uint8ArrayToHex","Class"],"sources":["../../../node_modules/.bun/zod@4.1.12/node_modules/zod/v4/core/util.d.cts"],"sourcesContent":["import type * as checks from \"./checks.cjs\";\nimport type { $ZodConfig } from \"./core.cjs\";\nimport type * as errors from \"./errors.cjs\";\nimport type * as schemas from \"./schemas.cjs\";\nexport type JSONType = string | number | boolean | null | JSONType[] | {\n [key: string]: JSONType;\n};\nexport type JWTAlgorithm = \"HS256\" | \"HS384\" | \"HS512\" | \"RS256\" | \"RS384\" | \"RS512\" | \"ES256\" | \"ES384\" | \"ES512\" | \"PS256\" | \"PS384\" | \"PS512\" | \"EdDSA\" | (string & {});\nexport type HashAlgorithm = \"md5\" | \"sha1\" | \"sha256\" | \"sha384\" | \"sha512\";\nexport type HashEncoding = \"hex\" | \"base64\" | \"base64url\";\nexport type HashFormat = `${HashAlgorithm}_${HashEncoding}`;\nexport type IPVersion = \"v4\" | \"v6\";\nexport type MimeTypes = \"application/json\" | \"application/xml\" | \"application/x-www-form-urlencoded\" | \"application/javascript\" | \"application/pdf\" | \"application/zip\" | \"application/vnd.ms-excel\" | \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\" | \"application/msword\" | \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\" | \"application/vnd.ms-powerpoint\" | \"application/vnd.openxmlformats-officedocument.presentationml.presentation\" | \"application/octet-stream\" | \"application/graphql\" | \"text/html\" | \"text/plain\" | \"text/css\" | \"text/javascript\" | \"text/csv\" | \"image/png\" | \"image/jpeg\" | \"image/gif\" | \"image/svg+xml\" | \"image/webp\" | \"audio/mpeg\" | \"audio/ogg\" | \"audio/wav\" | \"audio/webm\" | \"video/mp4\" | \"video/webm\" | \"video/ogg\" | \"font/woff\" | \"font/woff2\" | \"font/ttf\" | \"font/otf\" | \"multipart/form-data\" | (string & {});\nexport type ParsedTypes = \"string\" | \"number\" | \"bigint\" | \"boolean\" | \"symbol\" | \"undefined\" | \"object\" | \"function\" | \"file\" | \"date\" | \"array\" | \"map\" | \"set\" | \"nan\" | \"null\" | \"promise\";\nexport type AssertEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends <V>() => V extends U ? 1 : 2 ? true : false;\nexport type AssertNotEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends <V>() => V extends U ? 1 : 2 ? false : true;\nexport type AssertExtends<T, U> = T extends U ? T : never;\nexport type IsAny<T> = 0 extends 1 & T ? true : false;\nexport type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;\nexport type OmitKeys<T, K extends string> = Pick<T, Exclude<keyof T, K>>;\nexport type MakePartial<T, K extends keyof T> = Omit<T, K> & InexactPartial<Pick<T, K>>;\nexport type MakeRequired<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;\nexport type Exactly<T, X> = T & Record<Exclude<keyof X, keyof T>, never>;\nexport type NoUndefined<T> = T extends undefined ? never : T;\nexport type Whatever = {} | undefined | null;\nexport type LoosePartial<T extends object> = InexactPartial<T> & {\n [k: string]: unknown;\n};\nexport type Mask<Keys extends PropertyKey> = {\n [K in Keys]?: true;\n};\nexport type Writeable<T> = {\n -readonly [P in keyof T]: T[P];\n} & {};\nexport type InexactPartial<T> = {\n [P in keyof T]?: T[P] | undefined;\n};\nexport type EmptyObject = Record<string, never>;\nexport type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | {\n readonly [Symbol.toStringTag]: string;\n} | Date | Error | Generator | Promise<unknown> | RegExp;\nexport type MakeReadonly<T> = T extends Map<infer K, infer V> ? ReadonlyMap<K, V> : T extends Set<infer V> ? ReadonlySet<V> : T extends [infer Head, ...infer Tail] ? readonly [Head, ...Tail] : T extends Array<infer V> ? ReadonlyArray<V> : T extends BuiltIn ? T : Readonly<T>;\nexport type SomeObject = Record<PropertyKey, any>;\nexport type Identity<T> = T;\nexport type Flatten<T> = Identity<{\n [k in keyof T]: T[k];\n}>;\nexport type Mapped<T> = {\n [k in keyof T]: T[k];\n};\nexport type Prettify<T> = {\n [K in keyof T]: T[K];\n} & {};\nexport type NoNeverKeys<T> = {\n [k in keyof T]: [T[k]] extends [never] ? never : k;\n}[keyof T];\nexport type NoNever<T> = Identity<{\n [k in NoNeverKeys<T>]: k extends keyof T ? T[k] : never;\n}>;\nexport type Extend<A extends SomeObject, B extends SomeObject> = Flatten<keyof A & keyof B extends never ? A & B : {\n [K in keyof A as K extends keyof B ? never : K]: A[K];\n} & {\n [K in keyof B]: B[K];\n}>;\nexport type TupleItems = ReadonlyArray<schemas.SomeType>;\nexport type AnyFunc = (...args: any[]) => any;\nexport type IsProp<T, K extends keyof T> = T[K] extends AnyFunc ? never : K;\nexport type MaybeAsync<T> = T | Promise<T>;\nexport type KeyOf<T> = keyof OmitIndexSignature<T>;\nexport type OmitIndexSignature<T> = {\n [K in keyof T as string extends K ? never : K extends string ? K : never]: T[K];\n};\nexport type ExtractIndexSignature<T> = {\n [K in keyof T as string extends K ? K : K extends string ? never : K]: T[K];\n};\nexport type Keys<T extends object> = keyof OmitIndexSignature<T>;\nexport type SchemaClass<T extends schemas.SomeType> = {\n new (def: T[\"_zod\"][\"def\"]): T;\n};\nexport type EnumValue = string | number;\nexport type EnumLike = Readonly<Record<string, EnumValue>>;\nexport type ToEnum<T extends EnumValue> = Flatten<{\n [k in T]: k;\n}>;\nexport type KeysEnum<T extends object> = ToEnum<Exclude<keyof T, symbol>>;\nexport type KeysArray<T extends object> = Flatten<(keyof T & string)[]>;\nexport type Literal = string | number | bigint | boolean | null | undefined;\nexport type LiteralArray = Array<Literal>;\nexport type Primitive = string | number | symbol | bigint | boolean | null | undefined;\nexport type PrimitiveArray = Array<Primitive>;\nexport type HasSize = {\n size: number;\n};\nexport type HasLength = {\n length: number;\n};\nexport type Numeric = number | bigint | Date;\nexport type SafeParseResult<T> = SafeParseSuccess<T> | SafeParseError<T>;\nexport type SafeParseSuccess<T> = {\n success: true;\n data: T;\n error?: never;\n};\nexport type SafeParseError<T> = {\n success: false;\n data?: never;\n error: errors.$ZodError<T>;\n};\nexport type PropValues = Record<string, Set<Primitive>>;\nexport type PrimitiveSet = Set<Primitive>;\nexport declare function assertEqual<A, B>(val: AssertEqual<A, B>): AssertEqual<A, B>;\nexport declare function assertNotEqual<A, B>(val: AssertNotEqual<A, B>): AssertNotEqual<A, B>;\nexport declare function assertIs<T>(_arg: T): void;\nexport declare function assertNever(_x: never): never;\nexport declare function assert<T>(_: any): asserts _ is T;\nexport declare function getEnumValues(entries: EnumLike): EnumValue[];\nexport declare function joinValues<T extends Primitive[]>(array: T, separator?: string): string;\nexport declare function jsonStringifyReplacer(_: string, value: any): any;\nexport declare function cached<T>(getter: () => T): {\n value: T;\n};\nexport declare function nullish(input: any): boolean;\nexport declare function cleanRegex(source: string): string;\nexport declare function floatSafeRemainder(val: number, step: number): number;\nexport declare function defineLazy<T, K extends keyof T>(object: T, key: K, getter: () => T[K]): void;\nexport declare function objectClone(obj: object): any;\nexport declare function assignProp<T extends object, K extends PropertyKey>(target: T, prop: K, value: K extends keyof T ? T[K] : any): void;\nexport declare function mergeDefs(...defs: Record<string, any>[]): any;\nexport declare function cloneDef(schema: schemas.$ZodType): any;\nexport declare function getElementAtPath(obj: any, path: (string | number)[] | null | undefined): any;\nexport declare function promiseAllObject<T extends object>(promisesObj: T): Promise<{\n [k in keyof T]: Awaited<T[k]>;\n}>;\nexport declare function randomString(length?: number): string;\nexport declare function esc(str: string): string;\nexport declare const captureStackTrace: (targetObject: object, constructorOpt?: Function) => void;\nexport declare function isObject(data: any): data is Record<PropertyKey, unknown>;\nexport declare const allowsEval: {\n value: boolean;\n};\nexport declare function isPlainObject(o: any): o is Record<PropertyKey, unknown>;\nexport declare function shallowClone(o: any): any;\nexport declare function numKeys(data: any): number;\nexport declare const getParsedType: (data: any) => ParsedTypes;\nexport declare const propertyKeyTypes: Set<string>;\nexport declare const primitiveTypes: Set<string>;\nexport declare function escapeRegex(str: string): string;\nexport declare function clone<T extends schemas.$ZodType>(inst: T, def?: T[\"_zod\"][\"def\"], params?: {\n parent: boolean;\n}): T;\nexport type EmptyToNever<T> = keyof T extends never ? never : T;\nexport type Normalize<T> = T extends undefined ? never : T extends Record<any, any> ? Flatten<{\n [k in keyof Omit<T, \"error\" | \"message\">]: T[k];\n} & (\"error\" extends keyof T ? {\n error?: Exclude<T[\"error\"], string>;\n} : unknown)> : never;\nexport declare function normalizeParams<T>(_params: T): Normalize<T>;\nexport declare function createTransparentProxy<T extends object>(getter: () => T): T;\nexport declare function stringifyPrimitive(value: any): string;\nexport declare function optionalKeys(shape: schemas.$ZodShape): string[];\nexport type CleanKey<T extends PropertyKey> = T extends `?${infer K}` ? K : T extends `${infer K}?` ? K : T;\nexport type ToCleanMap<T extends schemas.$ZodLooseShape> = {\n [k in keyof T]: k extends `?${infer K}` ? K : k extends `${infer K}?` ? K : k;\n};\nexport type FromCleanMap<T extends schemas.$ZodLooseShape> = {\n [k in keyof T as k extends `?${infer K}` ? K : k extends `${infer K}?` ? K : k]: k;\n};\nexport declare const NUMBER_FORMAT_RANGES: Record<checks.$ZodNumberFormats, [number, number]>;\nexport declare const BIGINT_FORMAT_RANGES: Record<checks.$ZodBigIntFormats, [bigint, bigint]>;\nexport declare function pick(schema: schemas.$ZodObject, mask: Record<string, unknown>): any;\nexport declare function omit(schema: schemas.$ZodObject, mask: object): any;\nexport declare function extend(schema: schemas.$ZodObject, shape: schemas.$ZodShape): any;\nexport declare function safeExtend(schema: schemas.$ZodObject, shape: schemas.$ZodShape): any;\nexport declare function merge(a: schemas.$ZodObject, b: schemas.$ZodObject): any;\nexport declare function partial(Class: SchemaClass<schemas.$ZodOptional> | null, schema: schemas.$ZodObject, mask: object | undefined): any;\nexport declare function required(Class: SchemaClass<schemas.$ZodNonOptional>, schema: schemas.$ZodObject, mask: object | undefined): any;\nexport type Constructor<T, Def extends any[] = any[]> = new (...args: Def) => T;\nexport declare function aborted(x: schemas.ParsePayload, startIndex?: number): boolean;\nexport declare function prefixIssues(path: PropertyKey, issues: errors.$ZodRawIssue[]): errors.$ZodRawIssue[];\nexport declare function unwrapMessage(message: string | {\n message: string;\n} | undefined | null): string | undefined;\nexport declare function finalizeIssue(iss: errors.$ZodRawIssue, ctx: schemas.ParseContextInternal | undefined, config: $ZodConfig): errors.$ZodIssue;\nexport declare function getSizableOrigin(input: any): \"set\" | \"map\" | \"file\" | \"unknown\";\nexport declare function getLengthableOrigin(input: any): \"array\" | \"string\" | \"unknown\";\nexport declare function issue(_iss: string, input: any, inst: any): errors.$ZodRawIssue;\nexport declare function issue(_iss: errors.$ZodRawIssue): errors.$ZodRawIssue;\nexport declare function cleanEnum(obj: Record<string, EnumValue>): EnumValue[];\nexport declare function base64ToUint8Array(base64: string): InstanceType<typeof Uint8Array>;\nexport declare function uint8ArrayToBase64(bytes: Uint8Array): string;\nexport declare function base64urlToUint8Array(base64url: string): InstanceType<typeof Uint8Array>;\nexport declare function uint8ArrayToBase64url(bytes: Uint8Array): string;\nexport declare function hexToUint8Array(hex: string): InstanceType<typeof Uint8Array>;\nexport declare function uint8ArrayToHex(bytes: Uint8Array): string;\nexport declare abstract class Class {\n constructor(..._args: any[]);\n}\n"],"x_google_ignoreList":[0],"mappings":";;AAkBkEoB,KAXtDf,YAAAA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,GAAAA,MAAAA,GAAAA,MAAAA,GAAAA,OAAAA,GAAAA,IAAAA,GAAAA,SAAAA;AAAMhD,KA0BViE,SAAAA,GA1BUjE,MAAAA,GAAAA,MAAAA,GAAAA,MAAAA,GAAAA,MAAAA,GAAAA,OAAAA,GAAAA,IAAAA,GAAAA,SAAAA;AAKMN,KA0BhB0E,SAAAA,GA1BgB1E;EAAYA,MAAAA,EAAAA,MAAAA;CAARgC;AAAO,KA6B3B2C,OAAAA,GA7B2B,MAAA,GAAA,MAAA,GA6BC9C,IA7BD;AAcU,KA2BrCmD,UAAAA,GAAahE,MA3BwB,CAAA,MAAA,EA2BTqB,GA3BS,CA2BLkC,SA3BK,CAAA,CAAA;AAKrCF,KAuBAY,YAAAA,GAAe5C,GAvBR,CAuBYkC,SAvBZ,CAAA;KAgEP8C,wBAAwBrH,0BAA0BA;uBA4ChCoK,KAAAA"}
package/versions.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ //#region ../../node_modules/.bun/zod@4.1.12/node_modules/zod/v4/core/versions.d.cts
2
+ declare const version: {
3
+ readonly major: 4;
4
+ readonly minor: 1;
5
+ readonly patch: number;
6
+ };
7
+ //#endregion
8
+ export { version };
9
+ //# sourceMappingURL=versions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"versions.d.ts","names":["version"],"sources":["../../../node_modules/.bun/zod@4.1.12/node_modules/zod/v4/core/versions.d.cts"],"sourcesContent":["export declare const version: {\n readonly major: 4;\n readonly minor: 1;\n readonly patch: number;\n};\n"],"x_google_ignoreList":[0],"mappings":";cAAqBA;EAAAA,SAAAA,KAIpB,EAAA,CAAA"}
@@ -0,0 +1,39 @@
1
+ import { ParameterObject, SchemaObject } from "./openapi30.js";
2
+ import { ParameterObject as ParameterObject$1, SchemaObject as SchemaObject$1 } from "./openapi31.js";
3
+ import { $ZodType, $ZodTypeInternals } from "./schemas2.js";
4
+
5
+ //#region ../../node_modules/.bun/@asteasolutions+zod-to-openapi@8.1.0+5954958163efbb2a/node_modules/@asteasolutions/zod-to-openapi/dist/zod-extensions.d.ts
6
+ type ExampleValue<T> = T extends Date ? string : T;
7
+ type ParameterObject$2 = ParameterObject | ParameterObject$1;
8
+ type SchemaObject$2 = SchemaObject | SchemaObject$1;
9
+ type UnionPreferredType = 'oneOf' | 'anyOf';
10
+ type ZodOpenAPIMetadata<T = any, E = ExampleValue<T>> = Omit<SchemaObject$2, 'example' | 'examples' | 'default'> & {
11
+ param?: Partial<ParameterObject$2> & {
12
+ example?: E;
13
+ };
14
+ example?: E;
15
+ examples?: E[];
16
+ default?: T;
17
+ _internal?: never;
18
+ };
19
+ interface OpenApiOptions {
20
+ unionPreferredType?: UnionPreferredType;
21
+ }
22
+ /**
23
+ *
24
+ * Since this commit https://github.com/colinhacks/zod/commit/6707ebb14c885b1c577ce64a240475e26e3ff182
25
+ * zod started preserving metadata from functions. Since the ZodObject type contains some function types
26
+ * that also have generics this leads to a too deep type instantiation. We only use this type internally
27
+ * so I've opted to type the _internal metadata in the registry as any. However the Metadata.getInternalMetadata
28
+ * method has an explicit return type of ZodOpenAPIInternalMetadata.
29
+ */
30
+
31
+ declare module 'zod' {
32
+ interface ZodType<out Output = unknown, out Input = unknown, out Internals extends $ZodTypeInternals<Output, Input> = $ZodTypeInternals<Output, Input>> extends $ZodType<Output, Input, Internals> {
33
+ openapi(metadata: Partial<ZodOpenAPIMetadata<Input>>, options?: OpenApiOptions): this;
34
+ openapi(refId: string, metadata?: Partial<ZodOpenAPIMetadata<Input>>, options?: OpenApiOptions): this;
35
+ }
36
+ }
37
+ //#endregion
38
+ export { ZodOpenAPIMetadata };
39
+ //# sourceMappingURL=zod-extensions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zod-extensions.d.ts","names":["ParameterObject","ParameterObject30","SchemaObject","SchemaObject30","ParameterObject31","SchemaObject31","ZodObject","z","core","ExampleValue","T","Date","UnionPreferredType","ZodOpenAPIMetadata","E","Omit","Partial","OpenApiOptions","InternalUserOnlyZodOpenAPIInternalMetadata","ZodOpenApiFullMetadataForRegistry","ZodOpenAPIInternalMetadata","ZodOpenApiFullMetadata","_0","Output","Input","Internals","$ZodTypeInternals","$ZodType","sideEffect","extendZodWithOpenApi"],"sources":["../../../node_modules/.bun/@asteasolutions+zod-to-openapi@8.1.0+5954958163efbb2a/node_modules/@asteasolutions/zod-to-openapi/dist/zod-extensions.d.ts"],"sourcesContent":["import { ParameterObject as ParameterObject30, SchemaObject as SchemaObject30 } from 'openapi3-ts/oas30';\nimport { ParameterObject as ParameterObject31, SchemaObject as SchemaObject31 } from 'openapi3-ts/oas31';\nimport type { ZodObject } from 'zod';\nimport { z } from 'zod';\nimport type { core } from 'zod';\ntype ExampleValue<T> = T extends Date ? string : T;\ntype ParameterObject = ParameterObject30 | ParameterObject31;\ntype SchemaObject = SchemaObject30 | SchemaObject31;\nexport type UnionPreferredType = 'oneOf' | 'anyOf';\nexport type ZodOpenAPIMetadata<T = any, E = ExampleValue<T>> = Omit<SchemaObject, 'example' | 'examples' | 'default'> & {\n param?: Partial<ParameterObject> & {\n example?: E;\n };\n example?: E;\n examples?: E[];\n default?: T;\n _internal?: never;\n};\ninterface OpenApiOptions {\n unionPreferredType?: UnionPreferredType;\n}\n/**\n *\n * Since this commit https://github.com/colinhacks/zod/commit/6707ebb14c885b1c577ce64a240475e26e3ff182\n * zod started preserving metadata from functions. Since the ZodObject type contains some function types\n * that also have generics this leads to a too deep type instantiation. We only use this type internally\n * so I've opted to type the _internal metadata in the registry as any. However the Metadata.getInternalMetadata\n * method has an explicit return type of ZodOpenAPIInternalMetadata.\n */\ninterface InternalUserOnlyZodOpenAPIInternalMetadata extends OpenApiOptions {\n refId?: string;\n extendedFrom?: {\n refId: string;\n schema: any;\n };\n}\n/**\n *\n * The metadata that is received from the registry should be obtained using the Metadata methods that have an\n * explicit return type of ZodOpenApiFullMetadata or ZodOpenAPIInternalMetadata.\n *\n * @deprecated Do not use for anything other than the registry. See the comment above for more details.\n */\nexport interface ZodOpenApiFullMetadataForRegistry<T = any> extends Omit<ZodOpenAPIMetadata<T>, '_internal'> {\n _internal?: InternalUserOnlyZodOpenAPIInternalMetadata;\n [k: string]: unknown;\n}\nexport interface ZodOpenAPIInternalMetadata extends InternalUserOnlyZodOpenAPIInternalMetadata {\n extendedFrom?: {\n refId: string;\n schema: ZodObject;\n };\n}\nexport interface ZodOpenApiFullMetadata<T = any> extends ZodOpenApiFullMetadataForRegistry<T> {\n _internal?: ZodOpenAPIInternalMetadata;\n}\ndeclare module 'zod' {\n interface ZodType<out Output = unknown, out Input = unknown, out Internals extends core.$ZodTypeInternals<Output, Input> = core.$ZodTypeInternals<Output, Input>> extends core.$ZodType<Output, Input, Internals> {\n openapi(metadata: Partial<ZodOpenAPIMetadata<Input>>, options?: OpenApiOptions): this;\n openapi(refId: string, metadata?: Partial<ZodOpenAPIMetadata<Input>>, options?: OpenApiOptions): this;\n }\n}\nexport declare function extendZodWithOpenApi(zod: typeof z): void;\nexport {};\n"],"x_google_ignoreList":[0],"mappings":";;;;;AAIgC,KAC3BS,YAAAA,CAAAA,CAAY,CAAA,GAAMC,CAAN,SAAgBC,IAAhB,GAAA,MAAA,GAAgCD,CAAhC;KACZV,iBAAAA,GAAkBC,eADAS,GACoBN,iBADpBM;KAElBR,cAAAA,GAAeC,YAFaQ,GAEIN,cAFJM;AAAgBD,KAGrCE,kBAAAA,GAHqCF,OAAAA,GAAAA,OAAAA;AAAC,KAItCG,kBAJsC,CAAA,IAAA,GAAA,EAAA,IAINJ,YAJM,CAIOC,CAJP,CAAA,CAAA,GAIaK,IAJb,CAIkBb,cAJlB,EAAA,SAAA,GAAA,UAAA,GAAA,SAAA,CAAA,GAAA;EAC7CF,KAAAA,CAAAA,EAIOgB,OAJPhB,CAIeA,iBAJA,CAAA,GAAGC;IAClBC,OAAAA,CAAAA,EAIaY,CAJbZ;EACOU,CAAAA;EACAC,OAAAA,CAAAA,EAIEC,CAJFD;EAA6CH,QAAAA,CAAAA,EAK1CI,CAL0CJ,EAAAA;EAAbD,OAAAA,CAAAA,EAM9BC,CAN8BD;EAAwBP,SAAAA,CAAAA,EAAAA,KAAAA;CAALa;UASrDE,cAAAA,CARUjB;EAARgB,kBAAAA,CAAAA,EASaJ,kBATbI;;;;;;AAOV;AAsCD;;;;;qFAEsFR,kBAAuBe,QAAQC,SAAShB,kBAAuBe,QAAQC,gBAAgBhB,SAAce,QAAQC,OAAOC;sBACjLT,QAAQH,mBAAmBW,mBAAmBP;sCAC9BD,QAAQH,mBAAmBW,mBAAmBP"}
@@ -1,44 +0,0 @@
1
- import { z } from "@hono/zod-openapi";
2
-
3
- //#region src/api/common.d.ts
4
-
5
- /**
6
- * Common validation schemas used across multiple API endpoints
7
- */
8
- /**
9
- * Email validation schema
10
- */
11
- declare const emailSchema: z.ZodEmail;
12
- /**
13
- * User ID validation schema
14
- */
15
- declare const userIdSchema: z.ZodULID;
16
- /**
17
- * Optional user ID validation schema
18
- */
19
- declare const optionalUserIdSchema: z.ZodOptional<z.ZodULID>;
20
- /**
21
- * Referral code validation schema
22
- */
23
- declare const referralCodeSchema: z.ZodString;
24
- /**
25
- * Common pagination schema
26
- */
27
- declare const paginationSchema: z.ZodObject<{
28
- page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
29
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
30
- }, z.core.$strip>;
31
- type PaginationInput = z.infer<typeof paginationSchema>;
32
- /**
33
- * Pagination response schema
34
- */
35
- declare const paginationResponseSchema: z.ZodObject<{
36
- page: z.ZodNumber;
37
- limit: z.ZodNumber;
38
- total: z.ZodNumber;
39
- hasMore: z.ZodBoolean;
40
- }, z.core.$strip>;
41
- type PaginationResponse = z.infer<typeof paginationResponseSchema>;
42
- //#endregion
43
- export { PaginationInput, PaginationResponse, emailSchema, optionalUserIdSchema, paginationResponseSchema, paginationSchema, referralCodeSchema, userIdSchema };
44
- //# sourceMappingURL=common.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"common.d.ts","names":[],"sources":["../../src/api/common.ts"],"sourcesContent":[],"mappings":";;;;;;AASA;AAQA;AAQA;AAQA;AAQa,cAhCA,WAyCX,EAzCsB,CAAA,CAAA,QAyCtB;;;;cAjCW,cAAY,CAAA,CAAA;;;;AAmCb,cA3BC,oBA2BgC,EA3BZ,CAAA,CAAA,WA2BD,CA3BC,CAAA,CAAA,OA2BI,CAAA;AAKrC;;;cAxBa,oBAAkB,CAAA,CAAA;;;;AAwBM,cAhBxB,gBAgBwB,EAhBR,CAAA,CAAA,SAgBQ,CAAA;EAmBzB,IAAA,cAAA,mBAAoC,CAAA,OAAA,CAAA,CAAA;;;KAxBpC,eAAA,GAAkB,CAAA,CAAE,aAAa;;;;cAKhC,0BAAwB,CAAA,CAAA;;;;;;KAmBzB,kBAAA,GAAqB,CAAA,CAAE,aAAa"}
@@ -1,138 +0,0 @@
1
- import { z } from "@hono/zod-openapi";
2
-
3
- //#region src/api/contact.d.ts
4
-
5
- /**
6
- * Contact metadata are stored as key value pairs
7
- * Values can be strings, numbers, booleans, or null
8
- */
9
- declare const contactMetadataSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, z.ZodNull]>>;
10
- type ContactMetadata = z.infer<typeof contactMetadataSchema>;
11
- /**
12
- * Create contact request schema
13
- */
14
- declare const createContactRequestSchema: z.ZodObject<{
15
- externalId: z.ZodOptional<z.ZodString>;
16
- name: z.ZodOptional<z.ZodString>;
17
- email: z.ZodOptional<z.ZodString>;
18
- image: z.ZodOptional<z.ZodString>;
19
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, z.ZodNull]>>>;
20
- contactOrganizationId: z.ZodOptional<z.ZodString>;
21
- }, z.core.$strip>;
22
- type CreateContactRequest = z.infer<typeof createContactRequestSchema>;
23
- /**
24
- * Update contact request schema
25
- */
26
- declare const updateContactRequestSchema: z.ZodObject<{
27
- externalId: z.ZodOptional<z.ZodString>;
28
- name: z.ZodOptional<z.ZodString>;
29
- email: z.ZodOptional<z.ZodString>;
30
- image: z.ZodOptional<z.ZodString>;
31
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, z.ZodNull]>>>;
32
- contactOrganizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
33
- }, z.core.$strip>;
34
- type UpdateContactRequest = z.infer<typeof updateContactRequestSchema>;
35
- /**
36
- * Update contact metadata request schema
37
- */
38
- declare const updateContactMetadataRequestSchema: z.ZodObject<{
39
- metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, z.ZodNull]>>;
40
- }, z.core.$strip>;
41
- type UpdateContactMetadataRequest = z.infer<typeof updateContactMetadataRequestSchema>;
42
- /**
43
- * Identify contact request schema
44
- * This is used to create or update a contact and link it to a visitor
45
- */
46
- declare const identifyContactRequestSchema: z.ZodObject<{
47
- id: z.ZodOptional<z.ZodULID>;
48
- visitorId: z.ZodULID;
49
- externalId: z.ZodOptional<z.ZodString>;
50
- name: z.ZodOptional<z.ZodString>;
51
- email: z.ZodOptional<z.ZodString>;
52
- image: z.ZodOptional<z.ZodString>;
53
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, z.ZodNull]>>>;
54
- contactOrganizationId: z.ZodOptional<z.ZodString>;
55
- }, z.core.$strip>;
56
- type IdentifyContactRequest = z.infer<typeof identifyContactRequestSchema>;
57
- /**
58
- * Contact response schema
59
- */
60
- declare const contactResponseSchema: z.ZodObject<{
61
- id: z.ZodULID;
62
- externalId: z.ZodNullable<z.ZodString>;
63
- name: z.ZodNullable<z.ZodString>;
64
- email: z.ZodNullable<z.ZodEmail>;
65
- image: z.ZodNullable<z.ZodURL>;
66
- metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, z.ZodNull]>>>;
67
- contactOrganizationId: z.ZodNullable<z.ZodULID>;
68
- websiteId: z.ZodULID;
69
- organizationId: z.ZodULID;
70
- userId: z.ZodNullable<z.ZodULID>;
71
- createdAt: z.ZodString;
72
- updatedAt: z.ZodString;
73
- }, z.core.$strip>;
74
- type Contact = z.infer<typeof contactResponseSchema>;
75
- type ContactResponse = Contact;
76
- /**
77
- * Identify contact response schema
78
- */
79
- declare const identifyContactResponseSchema: z.ZodObject<{
80
- contact: z.ZodObject<{
81
- id: z.ZodULID;
82
- externalId: z.ZodNullable<z.ZodString>;
83
- name: z.ZodNullable<z.ZodString>;
84
- email: z.ZodNullable<z.ZodEmail>;
85
- image: z.ZodNullable<z.ZodURL>;
86
- metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, z.ZodNull]>>>;
87
- contactOrganizationId: z.ZodNullable<z.ZodULID>;
88
- websiteId: z.ZodULID;
89
- organizationId: z.ZodULID;
90
- userId: z.ZodNullable<z.ZodULID>;
91
- createdAt: z.ZodString;
92
- updatedAt: z.ZodString;
93
- }, z.core.$strip>;
94
- visitorId: z.ZodULID;
95
- }, z.core.$strip>;
96
- type IdentifyContactResponse = z.infer<typeof identifyContactResponseSchema>;
97
- /**
98
- * Create contact organization request schema
99
- */
100
- declare const createContactOrganizationRequestSchema: z.ZodObject<{
101
- name: z.ZodString;
102
- externalId: z.ZodOptional<z.ZodString>;
103
- domain: z.ZodOptional<z.ZodString>;
104
- description: z.ZodOptional<z.ZodString>;
105
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, z.ZodNull]>>>;
106
- }, z.core.$strip>;
107
- type CreateContactOrganizationRequest = z.infer<typeof createContactOrganizationRequestSchema>;
108
- /**
109
- * Update contact organization request schema
110
- */
111
- declare const updateContactOrganizationRequestSchema: z.ZodObject<{
112
- name: z.ZodOptional<z.ZodString>;
113
- externalId: z.ZodOptional<z.ZodString>;
114
- domain: z.ZodOptional<z.ZodString>;
115
- description: z.ZodOptional<z.ZodString>;
116
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, z.ZodNull]>>>;
117
- }, z.core.$strip>;
118
- type UpdateContactOrganizationRequest = z.infer<typeof updateContactOrganizationRequestSchema>;
119
- /**
120
- * Contact organization response schema
121
- */
122
- declare const contactOrganizationResponseSchema: z.ZodObject<{
123
- id: z.ZodULID;
124
- name: z.ZodString;
125
- externalId: z.ZodNullable<z.ZodString>;
126
- domain: z.ZodNullable<z.ZodString>;
127
- description: z.ZodNullable<z.ZodString>;
128
- metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, z.ZodNull]>>>;
129
- websiteId: z.ZodULID;
130
- organizationId: z.ZodULID;
131
- createdAt: z.ZodString;
132
- updatedAt: z.ZodString;
133
- }, z.core.$strip>;
134
- type contactOrganization = z.infer<typeof contactOrganizationResponseSchema>;
135
- type ContactOrganizationResponse = contactOrganization;
136
- //#endregion
137
- export { Contact, ContactMetadata, ContactOrganizationResponse, ContactResponse, CreateContactOrganizationRequest, CreateContactRequest, IdentifyContactRequest, IdentifyContactResponse, UpdateContactMetadataRequest, UpdateContactOrganizationRequest, UpdateContactRequest, contactMetadataSchema, contactOrganization, contactOrganizationResponseSchema, contactResponseSchema, createContactOrganizationRequestSchema, createContactRequestSchema, identifyContactRequestSchema, identifyContactResponseSchema, updateContactMetadataRequestSchema, updateContactOrganizationRequestSchema, updateContactRequestSchema };
138
- //# sourceMappingURL=contact.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"contact.d.ts","names":[],"sources":["../../src/api/contact.ts"],"sourcesContent":[],"mappings":";;;;;;AAMA;;AAAkC,cAArB,qBAAqB,EAAA,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,QAAA,CAAA,CAAA,CAAA,CAAA,QAAA,CAAA,CAAA,CAAA,CAAA,QAAA,CAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,SAAA,CAAA,CAAA,EAAA,CAAA,CAAA,UAAA,CAAA,CAAA,EAAA,CAAA,CAAA,OAAA,CAAA,CAAA,CAAA;AAAA,KAKtB,eAAA,GAAkB,CAAA,CAAE,KALE,CAAA,OAKW,qBALX,CAAA;;;;AAAA,cAUrB,0BAVqB,EAUK,CAAA,CAAA,SAVL,CAAA;EAAA,UAAA,eAAA,YAAA,CAAA;EAAA,IAAA,eAAA,YAAA,CAAA;EAAA,KAAA,eAAA,YAAA,CAAA;EAKtB,KAAA,eAAe,YAAkB,CAAA;EAKhC,QAAA,eAAA,YA6CX,YAAA,YAAA,CAAA,WAAA,CAAA,WAAA,CAAA,YAAA,aAAA,CAAA,CAAA,cAAA,CAAA,CAAA,WAAA,CAAA,CAAA,CAAA,CAAA;;;KAEU,oBAAA,GAAuB,CAAA,CAAE,aAAa;;;;cAKrC,4BAA0B,CAAA,CAAA;;;;;;;;KAgD3B,oBAAA,GAAuB,CAAA,CAAE,aAAa;;;;cAKrC,oCAAkC,CAAA,CAAA;;;AAzGR,KAgH3B,4BAAA,GAA+B,CAAA,CAAE,KAhHN,CAAA,OAiH/B,kCAjH+B,CAAA;;AA+CvC;AAKA;;cAoEa,8BAA4B,CAAA,CAAA;;;;;;;;;;KA0D7B,sBAAA,GAAyB,CAAA,CAAE,aAC/B;;;;cAMK,uBAAqB,CAAA,CAAA;;;;;;;EArIK,qBAAA,eAAA,UAAA,CAAA;EAAA,SAAA,WAAA;EAgD3B,cAAA,WAAoB;EAKnB,MAAA,eAAA,UAAA,CAAA;;;;KAoID,OAAA,GAAU,CAAA,CAAE,aAAa;KACzB,eAAA,GAAkB;;;;cAKjB,+BAA6B,CAAA,CAAA;;IA1IK,EAAA,WAAA;IAAA,UAAA,eAAA,YAAA,CAAA;IAOnC,IAAA,eAAA,YAA4B,CAAA;IAQ3B,KAAA,eAAA,WAwDX,CAAA;;;;;;;;;;;;KA2EU,uBAAA,GAA0B,CAAA,CAAE,aAChC;;;;cAQK,wCAAsC,CAAA,CAAA;;;;;;;KAmCvC,gCAAA,GAAmC,CAAA,CAAE,aACzC;;;;AAtHI,cA4HC,sCA3HL,EA2H2C,CAAA,CAAA,SA5Hd,CAAA;EAOxB,IAAA,eAAA,YAkDX,CAAA;;;;;;KAwGU,gCAAA,GAAmC,CAAA,CAAE,aACzC;;;;cAMK,mCAAiC,CAAA,CAAA;;;;;;;;;;;;KA6ClC,mBAAA,GAAsB,CAAA,CAAE,aAC5B;KAEI,2BAAA,GAA8B"}
@@ -1,91 +0,0 @@
1
- import { z } from "@hono/zod-openapi";
2
-
3
- //#region src/api/conversation.d.ts
4
- declare const createConversationRequestSchema: z.ZodObject<{
5
- visitorId: z.ZodOptional<z.ZodString>;
6
- conversationId: z.ZodOptional<z.ZodString>;
7
- defaultTimelineItems: z.ZodArray<any>;
8
- channel: z.ZodDefault<z.ZodString>;
9
- }, z.core.$strip>;
10
- type CreateConversationRequestBody = z.infer<typeof createConversationRequestSchema>;
11
- declare const createConversationResponseSchema: z.ZodObject<{
12
- initialTimelineItems: z.ZodArray<any>;
13
- conversation: any;
14
- }, z.core.$strip>;
15
- type CreateConversationResponseBody = z.infer<typeof createConversationResponseSchema>;
16
- declare const listConversationsRequestSchema: z.ZodObject<{
17
- visitorId: z.ZodOptional<z.ZodString>;
18
- page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
19
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
20
- status: z.ZodOptional<z.ZodEnum<{
21
- open: "open";
22
- closed: "closed";
23
- }>>;
24
- orderBy: z.ZodDefault<z.ZodEnum<{
25
- createdAt: "createdAt";
26
- updatedAt: "updatedAt";
27
- }>>;
28
- order: z.ZodDefault<z.ZodEnum<{
29
- asc: "asc";
30
- desc: "desc";
31
- }>>;
32
- }, z.core.$strip>;
33
- type ListConversationsRequest = z.infer<typeof listConversationsRequestSchema>;
34
- declare const listConversationsResponseSchema: z.ZodObject<{
35
- conversations: z.ZodArray<any>;
36
- pagination: z.ZodObject<{
37
- page: z.ZodNumber;
38
- limit: z.ZodNumber;
39
- total: z.ZodNumber;
40
- totalPages: z.ZodNumber;
41
- hasMore: z.ZodBoolean;
42
- }, z.core.$strip>;
43
- }, z.core.$strip>;
44
- type ListConversationsResponse = z.infer<typeof listConversationsResponseSchema>;
45
- declare const getConversationRequestSchema: z.ZodObject<{
46
- conversationId: z.ZodString;
47
- }, z.core.$strip>;
48
- type GetConversationRequest = z.infer<typeof getConversationRequestSchema>;
49
- declare const getConversationResponseSchema: z.ZodObject<{
50
- conversation: any;
51
- }, z.core.$strip>;
52
- type GetConversationResponse = z.infer<typeof getConversationResponseSchema>;
53
- declare const markConversationSeenRequestSchema: z.ZodObject<{
54
- visitorId: z.ZodOptional<z.ZodString>;
55
- }, z.core.$strip>;
56
- type MarkConversationSeenRequestBody = z.infer<typeof markConversationSeenRequestSchema>;
57
- declare const markConversationSeenResponseSchema: z.ZodObject<{
58
- conversationId: z.ZodString;
59
- lastSeenAt: z.ZodString;
60
- }, z.core.$strip>;
61
- type MarkConversationSeenResponseBody = z.infer<typeof markConversationSeenResponseSchema>;
62
- declare const setConversationTypingRequestSchema: z.ZodObject<{
63
- isTyping: z.ZodBoolean;
64
- visitorPreview: z.ZodOptional<z.ZodString>;
65
- visitorId: z.ZodOptional<z.ZodString>;
66
- }, z.core.$strip>;
67
- type SetConversationTypingRequestBody = z.infer<typeof setConversationTypingRequestSchema>;
68
- declare const setConversationTypingResponseSchema: z.ZodObject<{
69
- conversationId: z.ZodString;
70
- isTyping: z.ZodBoolean;
71
- visitorPreview: z.ZodNullable<z.ZodString>;
72
- sentAt: z.ZodString;
73
- }, z.core.$strip>;
74
- type SetConversationTypingResponseBody = z.infer<typeof setConversationTypingResponseSchema>;
75
- declare const getConversationSeenDataResponseSchema: z.ZodObject<{
76
- seenData: z.ZodArray<z.ZodObject<{
77
- id: z.ZodString;
78
- conversationId: z.ZodString;
79
- userId: z.ZodNullable<z.ZodString>;
80
- visitorId: z.ZodNullable<z.ZodString>;
81
- aiAgentId: z.ZodNullable<z.ZodString>;
82
- lastSeenAt: z.ZodString;
83
- createdAt: z.ZodString;
84
- updatedAt: z.ZodString;
85
- deletedAt: z.ZodNullable<z.ZodString>;
86
- }, z.core.$strip>>;
87
- }, z.core.$strip>;
88
- type GetConversationSeenDataResponse = z.infer<typeof getConversationSeenDataResponseSchema>;
89
- //#endregion
90
- export { CreateConversationRequestBody, CreateConversationResponseBody, GetConversationRequest, GetConversationResponse, GetConversationSeenDataResponse, ListConversationsRequest, ListConversationsResponse, MarkConversationSeenRequestBody, MarkConversationSeenResponseBody, SetConversationTypingRequestBody, SetConversationTypingResponseBody, createConversationRequestSchema, createConversationResponseSchema, getConversationRequestSchema, getConversationResponseSchema, getConversationSeenDataResponseSchema, listConversationsRequestSchema, listConversationsResponseSchema, markConversationSeenRequestSchema, markConversationSeenResponseSchema, setConversationTypingRequestSchema, setConversationTypingResponseSchema };
91
- //# sourceMappingURL=conversation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"conversation.d.ts","names":[],"sources":["../../src/api/conversation.ts"],"sourcesContent":[],"mappings":";;;cAIa,iCAA+B,CAAA,CAAA;;EAA/B,cAAA,eAAA,YAoBV,CAAA;;;;KAES,6BAAA,GAAgC,CAAA,CAAE,aACtC;cAGK,kCAAgC,CAAA,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tDsC,CAAA;AAYlC,cA6CC,mCA5CL,EA4CwC,CAAA,CAAA,SA5CxC,CAAA;EAGK,cAAA,aAAA;;;;CAAkC,eAAA,CAAA;AAAA,KA6DnC,iCAAA,GAAoC,CAAA,CAAE,KA7DH,CAAA,OA8DvC,mCA9DuC,CAAA;AAcnC,cAmDC,qCAlDL,EAkD0C,CAAA,CAAA,SAlD1C,CAAA;EAGK,QAAA,YAAA,YAAA,CAAA;;;;;;;IAAkC,SAAA,aAAA;IAAA,SAAA,aAAA;IAmBnC,SAAA,eAAA,YAAgC,CAAA;EAI/B,CAAA,eAAA,CAAA,CAAA;;KA+DD,+BAAA,GAAkC,CAAA,CAAE,aACxC"}
@@ -1,15 +0,0 @@
1
- import { z } from "@hono/zod-openapi";
2
-
3
- //#region src/api/organization.d.ts
4
-
5
- /**
6
- * Organization API response schema
7
- */
8
- declare const organizationResponseSchema: z.ZodObject<{
9
- id: z.ZodULID;
10
- name: z.ZodString;
11
- }, z.core.$strip>;
12
- type OrganizationResponse = z.infer<typeof organizationResponseSchema>;
13
- //#endregion
14
- export { OrganizationResponse, organizationResponseSchema };
15
- //# sourceMappingURL=organization.d.ts.map