surreal-zod 0.0.0-alpha.12 → 0.0.0-alpha.13

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.
package/lib/zod/core.d.ts CHANGED
@@ -234,11 +234,6 @@ export type $InferOuterFunctionType<Args extends ZodSurrealFunctionIn, Returns e
234
234
  export type $InferOuterFunctionDbType<Args extends ZodSurrealFunctionIn, Returns extends ZodSurrealFunctionOut> = (...args: ZodSurrealFunctionIn extends Args ? never[] : dbinput<Args>) => dboutput<Returns>;
235
235
  export type $InferOuterFunctionTypeAsync<Args extends ZodSurrealFunctionIn, Returns extends ZodSurrealFunctionOut> = (...args: ZodSurrealFunctionIn extends Args ? never[] : core.input<Args>) => Promise<core.output<Returns>>;
236
236
  export type $InferOuterFunctionDbTypeAsync<Args extends ZodSurrealFunctionIn, Returns extends ZodSurrealFunctionOut> = (...args: ZodSurrealFunctionIn extends Args ? never[] : dbinput<Args>) => Promise<dboutput<Returns>>;
237
- export interface ZodSurrealFunctionDef<In extends ZodSurrealFunctionIn = ZodSurrealFunctionIn, Out extends ZodSurrealFunctionOut = ZodSurrealFunctionOut> extends $ZodSurrealTypeDef {
238
- type: "function";
239
- input: In;
240
- output: Out;
241
- }
242
237
  type LiteralPart = Exclude<core.util.Literal, symbol>;
243
238
  interface SchemaPartInternals extends $ZodSurrealTypeInternals<LiteralPart, LiteralPart> {
244
239
  pattern: RegExp;
@@ -0,0 +1,2 @@
1
+ export { $input, $output, type infer, type input, type output, } from "zod/v4/core";
2
+ export * from "./core";
@@ -0,0 +1,2 @@
1
+ export { $input, $output, } from "zod/v4/core";
2
+ export * from "./core";
@@ -1,2 +1,3 @@
1
+ export * from "./external";
1
2
  export * from "./parse";
2
3
  export * from "./schema";
package/lib/zod/index.js CHANGED
@@ -1,2 +1,3 @@
1
+ export * from "./external";
1
2
  export * from "./parse";
2
3
  export * from "./schema";
@@ -611,8 +611,7 @@ export function toJSONSchema(input, params) {
611
611
  }
612
612
  if (Object.keys(defs).length > 0) {
613
613
  const defsSegment = ctx.target === "draft-2020-12" ? "$defs" : "definitions";
614
- // @ts-expect-error
615
- core.__shared = {
614
+ schemas.__shared = {
616
615
  [defsSegment]: defs,
617
616
  };
618
617
  }
@@ -1408,7 +1408,7 @@ export interface ZodSurrealFunctionInternals<Args extends _core_.ZodSurrealFunct
1408
1408
  }
1409
1409
  export interface ZodSurrealFunction<Args extends _core_.ZodSurrealFunctionIn = _core_.ZodSurrealFunctionIn, Returns extends _core_.ZodSurrealFunctionOut = _core_.ZodSurrealFunctionOut> extends _ZodSurrealType<ZodSurrealFunctionInternals<Args, Returns>>, ZodSurrealFieldMethods {
1410
1410
  "~standard": core.ZodStandardSchemaWithJSON<this>;
1411
- _def: _core_.ZodSurrealFunctionDef<Args, Returns>;
1411
+ _def: ZodSurrealFunctionDef<Args, Returns>;
1412
1412
  _input: _core_.$InferInnerFunctionType<Args, Returns>;
1413
1413
  _output: _core_.$InferOuterFunctionType<Args, Returns>;
1414
1414
  _dbinput: _core_.$InferInnerFunctionDbType<Args, Returns>;
package/lib/zod/schema.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import { BoundQuery, DateTime, Duration, escapeIdent, RecordId, StringRecordId, surql, Uuid, Table, } from "surrealdb";
2
2
  import * as core from "zod/v4/core";
3
3
  import * as classic from "zod/v4";
4
- import {} from "zod/v4/core";
5
4
  import { inferSurrealType, inlineQueryParameters, tableToSurql, } from "../surql";
6
5
  import * as _core_ from "./core";
7
6
  import { assignParsingMethods, } from "./parse";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "surreal-zod",
3
- "version": "0.0.0-alpha.12",
3
+ "version": "0.0.0-alpha.13",
4
4
  "scripts": {
5
5
  "build": "tsc -p tsconfig.build.json",
6
6
  "prepack": "bun run build"
package/src/zod/core.ts CHANGED
@@ -539,15 +539,6 @@ export type $InferOuterFunctionDbTypeAsync<
539
539
  ...args: ZodSurrealFunctionIn extends Args ? never[] : dbinput<Args>
540
540
  ) => Promise<dboutput<Returns>>;
541
541
 
542
- export interface ZodSurrealFunctionDef<
543
- In extends ZodSurrealFunctionIn = ZodSurrealFunctionIn,
544
- Out extends ZodSurrealFunctionOut = ZodSurrealFunctionOut,
545
- > extends $ZodSurrealTypeDef {
546
- type: "function";
547
- input: In;
548
- output: Out;
549
- }
550
-
551
542
  // Literal
552
543
 
553
544
  type LiteralPart = Exclude<core.util.Literal, symbol>;
@@ -0,0 +1,8 @@
1
+ export {
2
+ $input,
3
+ $output,
4
+ type infer,
5
+ type input,
6
+ type output,
7
+ } from "zod/v4/core";
8
+ export * from "./core";
package/src/zod/index.ts CHANGED
@@ -1,2 +1,3 @@
1
+ export * from "./external";
1
2
  export * from "./parse";
2
3
  export * from "./schema";
@@ -872,8 +872,7 @@ export function toJSONSchema(
872
872
  if (Object.keys(defs).length > 0) {
873
873
  const defsSegment =
874
874
  ctx.target === "draft-2020-12" ? "$defs" : "definitions";
875
- // @ts-expect-error
876
- core.__shared = {
875
+ schemas.__shared = {
877
876
  [defsSegment]: defs,
878
877
  };
879
878
  }
package/src/zod/schema.ts CHANGED
@@ -12,7 +12,6 @@ import {
12
12
  } from "surrealdb";
13
13
  import * as core from "zod/v4/core";
14
14
  import * as classic from "zod/v4";
15
- import {} from "zod/v4/core";
16
15
  import {
17
16
  inferSurrealType,
18
17
  inlineQueryParameters,
@@ -4843,7 +4842,7 @@ export interface ZodSurrealFunction<
4843
4842
  > extends _ZodSurrealType<ZodSurrealFunctionInternals<Args, Returns>>,
4844
4843
  ZodSurrealFieldMethods {
4845
4844
  "~standard": core.ZodStandardSchemaWithJSON<this>;
4846
- _def: _core_.ZodSurrealFunctionDef<Args, Returns>;
4845
+ _def: ZodSurrealFunctionDef<Args, Returns>;
4847
4846
  _input: _core_.$InferInnerFunctionType<Args, Returns>;
4848
4847
  _output: _core_.$InferOuterFunctionType<Args, Returns>;
4849
4848
  _dbinput: _core_.$InferInnerFunctionDbType<Args, Returns>;