New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

lz-schema

Package Overview
Dependencies
Maintainers
0
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lz-schema - npm Package Compare versions

Comparing version 0.9.7 to 0.10.0

61

dist/Account.d.ts
import { z } from "zod";
export type Account = {
id: string;
name: string;
email: string;
roles: Role[];
activated: boolean;
verified: boolean;
createdAt: number;
updatedAt: number;
organizationIds: string[];
};
export type Account = z.infer<typeof accountSchema>;
export type BasicAccount = z.infer<typeof basicAccountSchema>;
export declare enum Role {

@@ -28,2 +19,46 @@ Admin = "admin",

export type ResetPasswordBody = z.infer<typeof resetPasswordSchema>;
export declare const accountSchema: z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
email: z.ZodString;
roles: z.ZodArray<z.ZodNativeEnum<typeof Role>, "many">;
activated: z.ZodBoolean;
verified: z.ZodBoolean;
createdAt: z.ZodNumber;
updatedAt: z.ZodNumber;
organizationIds: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
id: string;
name: string;
email: string;
roles: Role[];
activated: boolean;
verified: boolean;
createdAt: number;
updatedAt: number;
organizationIds: string[];
}, {
id: string;
name: string;
email: string;
roles: Role[];
activated: boolean;
verified: boolean;
createdAt: number;
updatedAt: number;
organizationIds: string[];
}>;
export declare const basicAccountSchema: z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
email: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: string;
name: string;
email: string;
}, {
id: string;
name: string;
email: string;
}>;
export declare const signInSchema: z.ZodObject<{

@@ -44,9 +79,9 @@ email: z.ZodString;

}, "strip", z.ZodTypeAny, {
name: string;
email: string;
password: string;
}, {
name: string;
}, {
email: string;
password: string;
name: string;
}>;

@@ -53,0 +88,0 @@ export declare const requestPasswordResetSchema: z.ZodObject<{

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.resetPasswordSchema = exports.requestPasswordResetSchema = exports.signUpSchema = exports.signInSchema = exports.Role = void 0;
exports.resetPasswordSchema = exports.requestPasswordResetSchema = exports.signUpSchema = exports.signInSchema = exports.basicAccountSchema = exports.accountSchema = exports.Role = void 0;
const zod_1 = require("zod");

@@ -14,2 +14,18 @@ var Role;

})(Role || (exports.Role = Role = {}));
exports.accountSchema = zod_1.z.object({
id: zod_1.z.string(),
name: zod_1.z.string(),
email: zod_1.z.string(),
roles: zod_1.z.array(zod_1.z.nativeEnum(Role)),
activated: zod_1.z.boolean(),
verified: zod_1.z.boolean(),
createdAt: zod_1.z.number(),
updatedAt: zod_1.z.number(),
organizationIds: zod_1.z.array(zod_1.z.string()),
});
exports.basicAccountSchema = zod_1.z.object({
id: zod_1.z.string(),
name: zod_1.z.string(),
email: zod_1.z.string()
});
const passwordSchema = zod_1.z.string().min(8).max(64).regex(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).+$/);

@@ -16,0 +32,0 @@ exports.signInSchema = zod_1.z.object({

@@ -45,8 +45,8 @@ import { z } from "zod";

}, "strip", z.ZodTypeAny, {
value: number;
type: ActionType.TrackUserMetric;
value: number;
metric: string;
}, {
value: number;
type: ActionType.TrackUserMetric;
value: number;
metric: string;

@@ -83,8 +83,8 @@ }>, z.ZodObject<{

}, "strip", z.ZodTypeAny, {
value: number;
type: ActionType.TrackUserMetric;
value: number;
metric: string;
}, {
value: number;
type: ActionType.TrackUserMetric;
value: number;
metric: string;

@@ -91,0 +91,0 @@ }>, z.ZodObject<{

@@ -34,5 +34,29 @@ import { z, ZodType, ZodTypeDef } from "zod";

target: z.ZodNativeEnum<typeof CampaignTarget>;
createdBy: z.ZodEffects<z.ZodString, string, string>;
createdBy: z.ZodUnion<[z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
email: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: string;
name: string;
email: string;
}, {
id: string;
name: string;
email: string;
}>, z.ZodNull]>;
createdAt: z.ZodNumber;
updatedBy: z.ZodEffects<z.ZodString, string, string>;
updatedBy: z.ZodUnion<[z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
email: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: string;
name: string;
email: string;
}, {
id: string;
name: string;
email: string;
}>, z.ZodNull]>;
updatedAt: z.ZodNumber;

@@ -42,13 +66,21 @@ audienceId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;

}, "strip", z.ZodTypeAny, {
id: string;
name: string;
status: CampaignStatus;
name: string;
createdAt: number;
updatedAt: number;
from: number;
id: string;
priority: number;
urlRegExp: string;
target: CampaignTarget;
createdBy: string;
createdAt: number;
updatedBy: string;
updatedAt: number;
createdBy: {
id: string;
name: string;
email: string;
} | null;
updatedBy: {
id: string;
name: string;
email: string;
} | null;
workspaceId: string;

@@ -58,13 +90,21 @@ to?: number | undefined;

}, {
id: string;
name: string;
status: CampaignStatus;
name: string;
createdAt: number;
updatedAt: number;
from: number;
id: string;
priority: number;
urlRegExp: string;
target: CampaignTarget;
createdBy: string;
createdAt: number;
updatedBy: string;
updatedAt: number;
createdBy: {
id: string;
name: string;
email: string;
} | null;
updatedBy: {
id: string;
name: string;
email: string;
} | null;
workspaceId: string;

@@ -91,9 +131,9 @@ to?: number | undefined;

offset: number;
name?: string | undefined;
status?: CampaignStatus | undefined;
}, {
name?: string | undefined;
}, {
status?: CampaignStatus | undefined;
name?: string | undefined;
limit?: number | undefined;
offset?: number | undefined;
}>;

@@ -7,2 +7,3 @@ "use strict";

const Search_1 = require("./Search");
const Account_1 = require("./Account");
var CampaignTarget;

@@ -27,5 +28,5 @@ (function (CampaignTarget) {

target: zod_1.z.nativeEnum(CampaignTarget),
createdBy: Id_1.idSchema,
createdBy: Account_1.basicAccountSchema.or(zod_1.z.null()),
createdAt: zod_1.z.number(),
updatedBy: Id_1.idSchema,
updatedBy: Account_1.basicAccountSchema.or(zod_1.z.null()),
updatedAt: zod_1.z.number(),

@@ -32,0 +33,0 @@ audienceId: Id_1.idSchema.optional(),

@@ -18,9 +18,9 @@ import { z } from "zod";

}, "strip", z.ZodTypeAny, {
id: string;
name: string;
id: string;
organizationId: string;
domain?: string | undefined;
}, {
id: string;
name: string;
id: string;
organizationId: string;

@@ -27,0 +27,0 @@ domain?: string | undefined;

{
"name": "lz-schema",
"version": "0.9.7",
"version": "0.10.0",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc