Skip to content

dependabit / manifest/src / DependencyManifestSchema

Variable: DependencyManifestSchema

ts
const DependencyManifestSchema: ZodObject<{
  dependencies: ZodArray<ZodObject<{
     accessMethod: ZodEnum<{
        arxiv: "arxiv";
        context7: "context7";
        github-api: "github-api";
        http: "http";
        openapi: "openapi";
     }>;
     auth: ZodOptional<ZodObject<{
        secretEnvVar: ZodOptional<ZodString>;
        type: ZodEnum<{
           basic: "basic";
           none: "none";
           oauth: "oauth";
           token: "token";
        }>;
     }, $strip>>;
     changeHistory: ZodDefault<ZodArray<ZodObject<{
        detectedAt: ZodString;
        falsePositive: ZodDefault<ZodBoolean>;
        issueNumber: ZodOptional<ZodNumber>;
        newVersion: ZodOptional<ZodString>;
        oldVersion: ZodOptional<ZodString>;
        severity: ZodEnum<{
           breaking: ...;
           major: ...;
           minor: ...;
        }>;
     }, $strip>>>;
     currentStateHash: ZodString;
     currentVersion: ZodOptional<ZodString>;
     description: ZodOptional<ZodString>;
     detectedAt: ZodString;
     detectionConfidence: ZodNumber;
     detectionMethod: ZodEnum<{
        code-comment: "code-comment";
        llm-analysis: "llm-analysis";
        manual: "manual";
        package-json: "package-json";
        requirements-txt: "requirements-txt";
     }>;
     id: ZodString;
     lastChanged: ZodOptional<ZodString>;
     lastChecked: ZodString;
     monitoring: ZodOptional<ZodObject<{
        checkFrequency: ZodDefault<ZodEnum<{
           daily: ...;
           hourly: ...;
           monthly: ...;
           weekly: ...;
        }>>;
        enabled: ZodDefault<ZodBoolean>;
        ignoreChanges: ZodDefault<ZodBoolean>;
        severityOverride: ZodOptional<ZodEnum<{
           breaking: ...;
           major: ...;
           minor: ...;
        }>>;
     }, $strip>>;
     name: ZodString;
     referencedIn: ZodArray<ZodObject<{
        context: ZodOptional<ZodString>;
        file: ZodString;
        line: ZodOptional<ZodNumber>;
     }, $strip>>;
     type: ZodEnum<{
        api-example: "api-example";
        documentation: "documentation";
        other: "other";
        reference-implementation: "reference-implementation";
        research-paper: "research-paper";
        schema: "schema";
     }>;
     url: ZodString;
  }, $strip>>;
  generatedAt: ZodString;
  generatedBy: ZodObject<{
     action: ZodString;
     llmModel: ZodOptional<ZodString>;
     llmProvider: ZodString;
     version: ZodString;
  }, $strip>;
  repository: ZodObject<{
     branch: ZodString;
     commit: ZodString;
     name: ZodString;
     owner: ZodString;
  }, $strip>;
  statistics: ZodObject<{
     averageConfidence: ZodNumber;
     byAccessMethod: ZodRecord<ZodString, ZodNumber>;
     byDetectionMethod: ZodRecord<ZodString, ZodNumber>;
     byType: ZodRecord<ZodString, ZodNumber>;
     falsePositiveRate: ZodOptional<ZodNumber>;
     totalDependencies: ZodNumber;
  }, $strip>;
  version: ZodLiteral<"1.0.0">;
}, $strip>;

Defined in: packages/manifest/src/schema.ts:128

Released under the MIT License.