Skip to content

Variable: CreateRelationshipSchema

ts
const CreateRelationshipSchema: ZodObject<{
  relationName: ZodString;
  sourceKey: ZodString;
  sourceStatus: ZodOptional<ZodString>;
  sourceType: ZodEnum<{
     content: "content";
     space: "space";
     user: "user";
  }>;
  sourceVersion: ZodOptional<ZodNumber>;
  targetKey: ZodString;
  targetStatus: ZodOptional<ZodString>;
  targetType: ZodEnum<{
     content: "content";
     space: "space";
     user: "user";
  }>;
  targetVersion: ZodOptional<ZodNumber>;
}, $strip>;

Defined in: src/v1/parameters/createRelationship.ts:3