Skip to content

Variable: CustomContextVariableSchema ​

ts
const CustomContextVariableSchema: ZodDiscriminatedUnion<[ZodObject<{
  accountId: ZodString;
  type: ZodEnum<{
     user: "user";
  }>;
}, ApiObjectConfig<undefined>>, ZodObject<{
  id: ZodOptional<ZodNumber>;
  key: ZodOptional<ZodString>;
  type: ZodEnum<{
     issue: "issue";
  }>;
}, ApiObjectConfig<undefined>>, ZodObject<{
  type: ZodEnum<{
     json: "json";
  }>;
  value: ZodOptional<ZodRecord<ZodString, ZodAny>>;
}, ApiObjectConfig<undefined>>], "type">;

Defined in: src/cloud/models/customContextVariable.ts:6