🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@prodi-labs/schemas

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prodi-labs/schemas - npm Package Compare versions

Comparing version

to
1.0.46

dist/api/genScript.api.schema.d.ts

32

dist/api/sections.api.d.ts

@@ -42,2 +42,3 @@ import { z } from "zod";

script: z.ZodArray<z.ZodObject<{
id: z.ZodString;
text: z.ZodString;

@@ -52,2 +53,3 @@ voiceId: z.ZodString;

audioUrl: string | null;
id: string;
}, {

@@ -58,2 +60,3 @@ text: string;

audioUrl: string | null;
id: string;
}>, "many">;

@@ -72,2 +75,3 @@ } & {

audioUrl: string | null;
id: string;
}[];

@@ -85,2 +89,3 @@ sourceText: string;

audioUrl: string | null;
id: string;
}[];

@@ -109,2 +114,3 @@ sourceText: string;

script: z.ZodArray<z.ZodObject<{
id: z.ZodString;
text: z.ZodString;

@@ -119,2 +125,3 @@ voiceId: z.ZodString;

audioUrl: string | null;
id: string;
}, {

@@ -125,2 +132,3 @@ text: string;

audioUrl: string | null;
id: string;
}>, "many">;

@@ -139,2 +147,3 @@ } & {

audioUrl: string | null;
id: string;
}[];

@@ -152,2 +161,3 @@ sourceText: string;

audioUrl: string | null;
id: string;
}[];

@@ -172,2 +182,3 @@ sourceText: string;

script: z.ZodArray<z.ZodObject<{
id: z.ZodString;
text: z.ZodString;

@@ -182,2 +193,3 @@ voiceId: z.ZodString;

audioUrl: string | null;
id: string;
}, {

@@ -188,2 +200,3 @@ text: string;

audioUrl: string | null;
id: string;
}>, "many">;

@@ -199,2 +212,3 @@ }, "strip", z.ZodTypeAny, {

audioUrl: string | null;
id: string;
}[];

@@ -211,2 +225,3 @@ sourceText: string;

audioUrl: string | null;
id: string;
}[];

@@ -221,2 +236,3 @@ sourceText: string;

script: z.ZodArray<z.ZodObject<{
id: z.ZodString;
text: z.ZodString;

@@ -231,2 +247,3 @@ voiceId: z.ZodString;

audioUrl: string | null;
id: string;
}, {

@@ -237,2 +254,3 @@ text: string;

audioUrl: string | null;
id: string;
}>, "many">;

@@ -251,2 +269,3 @@ } & {

audioUrl: string | null;
id: string;
}[];

@@ -264,2 +283,3 @@ sourceText: string;

audioUrl: string | null;
id: string;
}[];

@@ -288,2 +308,3 @@ sourceText: string;

script: z.ZodArray<z.ZodObject<{
id: z.ZodString;
text: z.ZodString;

@@ -298,2 +319,3 @@ voiceId: z.ZodString;

audioUrl: string | null;
id: string;
}, {

@@ -304,2 +326,3 @@ text: string;

audioUrl: string | null;
id: string;
}>, "many">;

@@ -318,2 +341,3 @@ } & {

audioUrl: string | null;
id: string;
}[];

@@ -331,2 +355,3 @@ sourceText: string;

audioUrl: string | null;
id: string;
}[];

@@ -352,2 +377,3 @@ sourceText: string;

script: z.ZodArray<z.ZodObject<{
id: z.ZodString;
text: z.ZodString;

@@ -362,2 +388,3 @@ voiceId: z.ZodString;

audioUrl: string | null;
id: string;
}, {

@@ -368,2 +395,3 @@ text: string;

audioUrl: string | null;
id: string;
}>, "many">;

@@ -382,2 +410,3 @@ } & {

audioUrl: string | null;
id: string;
}[];

@@ -395,2 +424,3 @@ sourceText: string;

audioUrl: string | null;
id: string;
}[];

@@ -410,2 +440,3 @@ sourceText: string;

audioUrl: string | null;
id: string;
}[];

@@ -425,2 +456,3 @@ sourceText: string;

audioUrl: string | null;
id: string;
}[];

@@ -427,0 +459,0 @@ sourceText: string;

2

dist/api/sections.api.js

@@ -27,5 +27,5 @@ import { z } from "zod";

export const BulkUpdateSectionsRequestSchema = z.object({
sections: z.array(SectionSchema),
sections: z.array(UpdateSectionRequestSchema),
});
// Delete Section
export const DeleteSectionParamsSchema = SectionParamsSchema;
import { z } from "zod";
export declare const agentRequestSchema: z.ZodObject<{
export declare const fewShotExamplesSchema: z.ZodObject<{
inputArticle: z.ZodString;
outputScript: z.ZodString;
}, "strip", z.ZodTypeAny, {
inputArticle: string;
outputScript: string;
}, {
inputArticle: string;
outputScript: string;
}>;
export declare const fewShotExamplesContainerSchema: z.ZodObject<{
instruction: z.ZodString;
examples: z.ZodArray<z.ZodObject<{
inputArticle: z.ZodString;
outputScript: z.ZodString;
}, "strip", z.ZodTypeAny, {
inputArticle: string;
outputScript: string;
}, {
inputArticle: string;
outputScript: string;
}>, "many">;
}, "strip", z.ZodTypeAny, {
instruction: string;
examples: {
inputArticle: string;
outputScript: string;
}[];
}, {
instruction: string;
examples: {
inputArticle: string;
outputScript: string;
}[];
}>;
export declare const agentContextSchema: z.ZodObject<{
fewShotExamples: z.ZodObject<{
instruction: z.ZodString;
examples: z.ZodArray<z.ZodObject<{
inputArticle: z.ZodString;
outputScript: z.ZodString;
}, "strip", z.ZodTypeAny, {
inputArticle: string;
outputScript: string;
}, {
inputArticle: string;
outputScript: string;
}>, "many">;
}, "strip", z.ZodTypeAny, {
instruction: string;
examples: {
inputArticle: string;
outputScript: string;
}[];
}, {
instruction: string;
examples: {
inputArticle: string;
outputScript: string;
}[];
}>;
}, "strip", z.ZodTypeAny, {
fewShotExamples: {
instruction: string;
examples: {
inputArticle: string;
outputScript: string;
}[];
};
}, {
fewShotExamples: {
instruction: string;
examples: {
inputArticle: string;
outputScript: string;
}[];
};
}>;
export declare const agentRecordSchema: z.ZodObject<{
name: z.ZodString;
systemInstructions: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
fewShotExamples: z.ZodObject<{
instruction: z.ZodString;
examples: z.ZodArray<z.ZodObject<{
inputArticle: z.ZodString;
outputScript: z.ZodString;
}, "strip", z.ZodTypeAny, {
inputArticle: string;
outputScript: string;
}, {
inputArticle: string;
outputScript: string;
}>, "many">;
}, "strip", z.ZodTypeAny, {
instruction: string;
examples: {
inputArticle: string;
outputScript: string;
}[];
}, {
instruction: string;
examples: {
inputArticle: string;
outputScript: string;
}[];
}>;
}, "strip", z.ZodTypeAny, {
fewShotExamples: {
instruction: string;
examples: {
inputArticle: string;
outputScript: string;
}[];
};
}, {
fewShotExamples: {
instruction: string;
examples: {
inputArticle: string;
outputScript: string;
}[];
};
}>>;
}, "strip", z.ZodTypeAny, {
name: string;
systemInstructions: string;
context?: {
fewShotExamples: {
instruction: string;
examples: {
inputArticle: string;
outputScript: string;
}[];
};
} | undefined;
}, {
name: string;
systemInstructions: string;
context?: {
fewShotExamples: {
instruction: string;
examples: {
inputArticle: string;
outputScript: string;
}[];
};
} | undefined;
}>;

@@ -15,2 +154,45 @@ export declare const agentSchema: z.ZodObject<{

systemInstructions: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
fewShotExamples: z.ZodObject<{
instruction: z.ZodString;
examples: z.ZodArray<z.ZodObject<{
inputArticle: z.ZodString;
outputScript: z.ZodString;
}, "strip", z.ZodTypeAny, {
inputArticle: string;
outputScript: string;
}, {
inputArticle: string;
outputScript: string;
}>, "many">;
}, "strip", z.ZodTypeAny, {
instruction: string;
examples: {
inputArticle: string;
outputScript: string;
}[];
}, {
instruction: string;
examples: {
inputArticle: string;
outputScript: string;
}[];
}>;
}, "strip", z.ZodTypeAny, {
fewShotExamples: {
instruction: string;
examples: {
inputArticle: string;
outputScript: string;
}[];
};
}, {
fewShotExamples: {
instruction: string;
examples: {
inputArticle: string;
outputScript: string;
}[];
};
}>>;
} & {

@@ -22,2 +204,11 @@ id: z.ZodString;

systemInstructions: string;
context?: {
fewShotExamples: {
instruction: string;
examples: {
inputArticle: string;
outputScript: string;
}[];
};
} | undefined;
}, {

@@ -27,2 +218,11 @@ name: string;

systemInstructions: string;
context?: {
fewShotExamples: {
instruction: string;
examples: {
inputArticle: string;
outputScript: string;
}[];
};
} | undefined;
}>;

@@ -32,2 +232,45 @@ export declare const agentsListSchema: z.ZodArray<z.ZodObject<{

systemInstructions: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
fewShotExamples: z.ZodObject<{
instruction: z.ZodString;
examples: z.ZodArray<z.ZodObject<{
inputArticle: z.ZodString;
outputScript: z.ZodString;
}, "strip", z.ZodTypeAny, {
inputArticle: string;
outputScript: string;
}, {
inputArticle: string;
outputScript: string;
}>, "many">;
}, "strip", z.ZodTypeAny, {
instruction: string;
examples: {
inputArticle: string;
outputScript: string;
}[];
}, {
instruction: string;
examples: {
inputArticle: string;
outputScript: string;
}[];
}>;
}, "strip", z.ZodTypeAny, {
fewShotExamples: {
instruction: string;
examples: {
inputArticle: string;
outputScript: string;
}[];
};
}, {
fewShotExamples: {
instruction: string;
examples: {
inputArticle: string;
outputScript: string;
}[];
};
}>>;
} & {

@@ -39,2 +282,11 @@ id: z.ZodString;

systemInstructions: string;
context?: {
fewShotExamples: {
instruction: string;
examples: {
inputArticle: string;
outputScript: string;
}[];
};
} | undefined;
}, {

@@ -44,5 +296,17 @@ name: string;

systemInstructions: string;
context?: {
fewShotExamples: {
instruction: string;
examples: {
inputArticle: string;
outputScript: string;
}[];
};
} | undefined;
}>, "many">;
export type AgentRequest = z.infer<typeof agentRequestSchema>;
export type FewShotExamples = z.infer<typeof fewShotExamplesSchema>;
export type FewShotExamplesContainer = z.infer<typeof fewShotExamplesContainerSchema>;
export type AgentContext = z.infer<typeof agentContextSchema>;
export type AgentRecord = z.infer<typeof agentRecordSchema>;
export type Agent = z.infer<typeof agentSchema>;
export type AgentsList = z.infer<typeof agentsListSchema>;
import { z } from "zod";
export const agentRequestSchema = z.object({
export const fewShotExamplesSchema = z.object({
inputArticle: z.string().describe("Input article for the example"),
outputScript: z.string().describe("Output script for the example"),
});
export const fewShotExamplesContainerSchema = z.object({
instruction: z.string().describe("Instruction for the few shot examples"),
examples: z
.array(fewShotExamplesSchema)
.describe("Array of few shot examples"),
});
export const agentContextSchema = z.object({
fewShotExamples: fewShotExamplesContainerSchema.describe("Few shot examples for the agent context"),
});
export const agentRecordSchema = z.object({
name: z

@@ -11,6 +24,7 @@ .string()

.describe("System instructions for the agent"),
context: agentContextSchema.optional().describe("Optional agent context"),
});
export const agentSchema = agentRequestSchema.extend({
export const agentSchema = agentRecordSchema.extend({
id: z.string().describe("Unique identifier of the agent"),
});
export const agentsListSchema = z.array(agentSchema).describe("List of agents");
import { z } from "zod";
export declare const SectionLabel: z.ZodEnum<["Local", "Celebration", "Business insight", "HR", "International", "New client", "Success story", "Partners", "Business unit", "Volunteerings", "events", "Community"]>;
export declare const DialogueSchema: z.ZodObject<{
id: z.ZodString;
text: z.ZodString;

@@ -13,2 +14,3 @@ voiceId: z.ZodString;

audioUrl: string | null;
id: string;
}, {

@@ -19,2 +21,3 @@ text: string;

audioUrl: string | null;
id: string;
}>;

@@ -27,2 +30,3 @@ export declare const SectionRecordSchema: z.ZodObject<{

script: z.ZodArray<z.ZodObject<{
id: z.ZodString;
text: z.ZodString;

@@ -37,2 +41,3 @@ voiceId: z.ZodString;

audioUrl: string | null;
id: string;
}, {

@@ -43,2 +48,3 @@ text: string;

audioUrl: string | null;
id: string;
}>, "many">;

@@ -54,2 +60,3 @@ }, "strip", z.ZodTypeAny, {

audioUrl: string | null;
id: string;
}[];

@@ -66,2 +73,3 @@ sourceText: string;

audioUrl: string | null;
id: string;
}[];

@@ -76,2 +84,3 @@ sourceText: string;

script: z.ZodArray<z.ZodObject<{
id: z.ZodString;
text: z.ZodString;

@@ -86,2 +95,3 @@ voiceId: z.ZodString;

audioUrl: string | null;
id: string;
}, {

@@ -92,2 +102,3 @@ text: string;

audioUrl: string | null;
id: string;
}>, "many">;

@@ -106,2 +117,3 @@ } & {

audioUrl: string | null;
id: string;
}[];

@@ -119,2 +131,3 @@ sourceText: string;

audioUrl: string | null;
id: string;
}[];

@@ -129,2 +142,3 @@ sourceText: string;

script: z.ZodArray<z.ZodObject<{
id: z.ZodString;
text: z.ZodString;

@@ -139,2 +153,3 @@ voiceId: z.ZodString;

audioUrl: string | null;
id: string;
}, {

@@ -145,2 +160,3 @@ text: string;

audioUrl: string | null;
id: string;
}>, "many">;

@@ -159,2 +175,3 @@ } & {

audioUrl: string | null;
id: string;
}[];

@@ -172,2 +189,3 @@ sourceText: string;

audioUrl: string | null;
id: string;
}[];

@@ -174,0 +192,0 @@ sourceText: string;

@@ -17,2 +17,3 @@ import { z } from "zod";

export const DialogueSchema = z.object({
id: z.string(),
text: z.string(),

@@ -19,0 +20,0 @@ voiceId: z.string(),

{
"name": "@prodi-labs/schemas",
"version": "1.0.45",
"version": "1.0.46",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.js",