Skip to content

Variable: RedactionResponseSchema ​

ts
const RedactionResponseSchema: ZodObject<{
  body: ZodOptional<ZodNullable<ZodObject<{
     redactions: ZodOptional<ZodNullable<ZodArray<ZodObject<{
        from: ...;
        pointer: ...;
        reason: ...;
        redactionId: ...;
        to: ...;
     }, ApiObjectConfig<...>>>>>;
  }, ApiObjectConfig<undefined>>>>;
  title: ZodOptional<ZodNullable<ZodObject<{
     redactions: ZodOptional<ZodNullable<ZodArray<ZodObject<{
        from: ...;
        pointer: ...;
        reason: ...;
        redactionId: ...;
        to: ...;
     }, ApiObjectConfig<...>>>>>;
  }, ApiObjectConfig<undefined>>>>;
}, ApiObjectConfig<undefined>>;

Defined in: src/v2/models/redactionResponse.ts:9

Response containing details of all redactions that were applied to the content. Each redaction includes a unique ID for restoration, except that code block redactions cannot be restored.