@xyo-network/xl1-schema 1.16.21 → 1.16.23

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json.schemastore.org/package.json",
3
3
  "name": "@xyo-network/xl1-schema",
4
- "version": "1.16.21",
4
+ "version": "1.16.23",
5
5
  "description": "XYO Layer One SDK Schema",
6
6
  "homepage": "https://xylabs.com",
7
7
  "bugs": {
@@ -39,14 +39,14 @@
39
39
  "!**/*.test.*"
40
40
  ],
41
41
  "dependencies": {
42
- "@xylabs/sdk-js": "~5.0.37",
42
+ "@xylabs/sdk-js": "~5.0.39",
43
43
  "@xyo-network/boundwitness-model": "~5.1.24",
44
44
  "@xyo-network/boundwitness-wrapper": "~5.1.24",
45
45
  "@xyo-network/payload-builder": "~5.1.24",
46
46
  "@xyo-network/payload-model": "~5.1.24",
47
47
  "@xyo-network/payload-wrapper": "~5.1.24",
48
48
  "@xyo-network/schema-payload-plugin": "~5.1.24",
49
- "@xyo-network/xl1-protocol": "~1.13.11",
49
+ "@xyo-network/xl1-protocol": "~1.13.13",
50
50
  "zod": "~4.1.12"
51
51
  },
52
52
  "devDependencies": {
@@ -1,7 +0,0 @@
1
- import * as z from 'zod';
2
- declare const JsonValueZod: z.ZodType<unknown>;
3
- export declare const JsonObjectZod: z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
4
- export type JsonValue = z.infer<typeof JsonValueZod>;
5
- export type JsonObject = z.infer<typeof JsonObjectZod>;
6
- export {};
7
- //# sourceMappingURL=JsonSchema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"JsonSchema.d.ts","sourceRoot":"","sources":["../../src/JsonSchema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAGxB,QAAA,MAAM,YAAY,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAQhC,CAAA;AAGL,eAAO,MAAM,aAAa,mGAAqC,CAAA;AAG/D,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA;AACpD,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA"}
package/src/JsonSchema.ts DELETED
@@ -1,19 +0,0 @@
1
- import * as z from 'zod'
2
-
3
- // Define recursive JSON value schema
4
- const JsonValueZod: z.ZodType<unknown> = z.lazy(() =>
5
- z.union([
6
- z.string(),
7
- z.number(),
8
- z.boolean(),
9
- z.null(),
10
- z.array(JsonValueZod),
11
- z.record(z.string(), JsonValueZod), // object with string keys and JSON values
12
- ]))
13
-
14
- // JSON object schema — top-level must be an object
15
- export const JsonObjectZod = z.record(z.string(), JsonValueZod)
16
-
17
- // TypeScript type for reference
18
- export type JsonValue = z.infer<typeof JsonValueZod>
19
- export type JsonObject = z.infer<typeof JsonObjectZod>