Skip to content

Variable: RuleSetDefinition ​

ts
const RuleSetDefinition: z.ZodObject<{
  createdAt: z.ZodCoercedDate<unknown>;
  createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
  definition: z.ZodObject<{
     policy: z.ZodDiscriminatedUnion<[z.ZodObject<{
        mode: z.ZodLiteral<"max_severity">;
      }, z.core.$strip>, z.ZodObject<{
        bands: z.ZodArray<z.ZodObject<{
           max: ...;
           min: ...;
           outcome: ...;
        }, z.core.$strip>>;
        clamp: z.ZodDefault<z.ZodObject<{
           max: ...;
           min: ...;
        }, z.core.$strip>>;
        mode: z.ZodLiteral<"sum_weights">;
      }, z.core.$strip>, z.ZodObject<{
        default: z.ZodDefault<z.ZodEnum<{
           approve: ...;
           manual_review: ...;
           reject: ...;
        }>>;
        mode: z.ZodLiteral<"first_match">;
     }, z.core.$strip>], "mode">;
     rules: z.ZodArray<z.ZodObject<{
        enabled: z.ZodDefault<z.ZodBoolean>;
        ruleKey: z.ZodString;
        shadow: z.ZodDefault<z.ZodBoolean>;
        weightOverride: z.ZodOptional<z.ZodNumber>;
     }, z.core.$strip>>;
  }, z.core.$strip>;
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
  id: z.ZodGUID;
  key: z.ZodString;
  name: z.ZodString;
  note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
  status: z.ZodEnum<{
     archived: "archived";
     draft: "draft";
     pending_approval: "pending_approval";
     published: "published";
  }>;
  tenantId: z.ZodGUID;
  updatedAt: z.ZodCoercedDate<unknown>;
  updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
  useCase: z.ZodEnum<{
     custom: "custom";
     monitoring: "monitoring";
     onboarding: "onboarding";
     underwriting: "underwriting";
  }>;
  version: z.ZodNumber;
}, z.core.$strip>;

A versioned, ordered group of rules with one aggregation policy.

Released under the Apache-2.0 License.