@samepage/testing
Version:
Utilities that help with testing SamePage-compatible extensions
1,513 lines (1,512 loc) • 50.7 kB
TypeScript
import { z } from "zod";
declare const processMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"accept">;
notebookPageId: z.ZodString;
notificationUuid: z.ZodString;
data: z.ZodRecord<z.ZodString, z.ZodType<import("../internal/types").Json, z.ZodTypeDef, import("../internal/types").Json>>;
}, "strip", z.ZodTypeAny, {
data: Record<string, import("../internal/types").Json>;
type: "accept";
notebookPageId: string;
notificationUuid: string;
}, {
data: Record<string, import("../internal/types").Json>;
type: "accept";
notebookPageId: string;
notificationUuid: string;
}>, z.ZodObject<{
type: z.ZodLiteral<"accept-request">;
data: z.ZodRecord<z.ZodString, z.ZodType<import("../internal/types").Json, z.ZodTypeDef, import("../internal/types").Json>>;
notificationUuid: z.ZodString;
}, "strip", z.ZodTypeAny, {
data: Record<string, import("../internal/types").Json>;
type: "accept-request";
notificationUuid: string;
}, {
data: Record<string, import("../internal/types").Json>;
type: "accept-request";
notificationUuid: string;
}>, z.ZodObject<{
type: z.ZodLiteral<"setCurrentNotebookPageId">;
notebookPageId: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: "setCurrentNotebookPageId";
notebookPageId: string;
}, {
type: "setCurrentNotebookPageId";
notebookPageId: string;
}>, z.ZodObject<{
type: z.ZodLiteral<"setAppClientState">;
notebookPageId: z.ZodString;
data: z.ZodString;
}, "strip", z.ZodTypeAny, {
data: string;
type: "setAppClientState";
notebookPageId: string;
}, {
data: string;
type: "setAppClientState";
notebookPageId: string;
}>, z.ZodObject<{
type: z.ZodLiteral<"share">;
}, "strip", z.ZodTypeAny, {
type: "share";
}, {
type: "share";
}>, z.ZodObject<{
type: z.ZodLiteral<"invite">;
notebookUuid: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: "invite";
notebookUuid: string;
}, {
type: "invite";
notebookUuid: string;
}>, z.ZodObject<{
type: z.ZodLiteral<"unload">;
}, "strip", z.ZodTypeAny, {
type: "unload";
}, {
type: "unload";
}>, z.ZodObject<{
type: z.ZodLiteral<"read">;
notebookPageId: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: "read";
notebookPageId: string;
}, {
type: "read";
notebookPageId: string;
}>, z.ZodObject<{
type: z.ZodLiteral<"insert">;
notebookPageId: z.ZodString;
content: z.ZodString;
index: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
path: z.ZodString;
delay: z.ZodOptional<z.ZodLiteral<true>>;
}, "strip", z.ZodTypeAny, {
path: string;
type: "insert";
notebookPageId: string;
content: string;
index: string | number;
delay?: true | undefined;
}, {
path: string;
type: "insert";
notebookPageId: string;
content: string;
index: string | number;
delay?: true | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"delete">;
notebookPageId: z.ZodString;
count: z.ZodNumber;
index: z.ZodNumber;
path: z.ZodString;
}, "strip", z.ZodTypeAny, {
path: string;
type: "delete";
notebookPageId: string;
index: number;
count: number;
}, {
path: string;
type: "delete";
notebookPageId: string;
index: number;
count: number;
}>, z.ZodObject<{
type: z.ZodLiteral<"disconnect">;
}, "strip", z.ZodTypeAny, {
type: "disconnect";
}, {
type: "disconnect";
}>, z.ZodObject<{
type: z.ZodLiteral<"connect">;
}, "strip", z.ZodTypeAny, {
type: "connect";
}, {
type: "connect";
}>, z.ZodObject<{
type: z.ZodLiteral<"break">;
}, "strip", z.ZodTypeAny, {
type: "break";
}, {
type: "break";
}>, z.ZodObject<{
type: z.ZodLiteral<"fix">;
}, "strip", z.ZodTypeAny, {
type: "fix";
}, {
type: "fix";
}>, z.ZodObject<{
type: z.ZodLiteral<"breakCalculate">;
}, "strip", z.ZodTypeAny, {
type: "breakCalculate";
}, {
type: "breakCalculate";
}>, z.ZodObject<{
type: z.ZodLiteral<"fixCalculate">;
}, "strip", z.ZodTypeAny, {
type: "fixCalculate";
}, {
type: "fixCalculate";
}>, z.ZodObject<{
type: z.ZodLiteral<"awaitLog">;
id: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: "awaitLog";
id: string;
}, {
type: "awaitLog";
id: string;
}>, z.ZodObject<{
type: z.ZodLiteral<"query">;
request: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: "query";
request: string;
}, {
type: "query";
request: string;
}>, z.ZodObject<{
type: z.ZodLiteral<"getSharedPage">;
notebookPageId: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: "getSharedPage";
notebookPageId: string;
}, {
type: "getSharedPage";
notebookPageId: string;
}>, z.ZodObject<{
type: z.ZodLiteral<"refresh">;
notebookPageId: z.ZodString;
data: z.ZodObject<{
content: z.ZodString;
annotations: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
end: z.ZodNumber;
start: z.ZodNumber;
appAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
type: z.ZodLiteral<"block">;
attributes: z.ZodObject<{
level: z.ZodNumber;
viewType: z.ZodEnum<["bullet", "numbered", "document"]>;
}, "strip", z.ZodTypeAny, {
level: number;
viewType: "bullet" | "numbered" | "document";
}, {
level: number;
viewType: "bullet" | "numbered" | "document";
}>;
}, "strip", z.ZodTypeAny, {
end: number;
start: number;
type: "block";
attributes: {
level: number;
viewType: "bullet" | "numbered" | "document";
};
appAttributes?: Record<string, Record<string, string>> | undefined;
}, {
end: number;
start: number;
type: "block";
attributes: {
level: number;
viewType: "bullet" | "numbered" | "document";
};
appAttributes?: Record<string, Record<string, string>> | undefined;
}>, z.ZodObject<{
end: z.ZodNumber;
start: z.ZodNumber;
appAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
type: z.ZodLiteral<"metadata">;
attributes: z.ZodObject<{
title: z.ZodString;
parent: z.ZodString;
}, "strip", z.ZodTypeAny, {
title: string;
parent: string;
}, {
title: string;
parent: string;
}>;
}, "strip", z.ZodTypeAny, {
end: number;
start: number;
type: "metadata";
attributes: {
title: string;
parent: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
}, {
end: number;
start: number;
type: "metadata";
attributes: {
title: string;
parent: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
}>, z.ZodObject<{
end: z.ZodNumber;
start: z.ZodNumber;
appAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
type: z.ZodLiteral<"bold">;
attributes: z.ZodOptional<z.ZodObject<{
open: z.ZodOptional<z.ZodBoolean>;
delimiter: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
open?: boolean | undefined;
delimiter?: string | undefined;
}, {
open?: boolean | undefined;
delimiter?: string | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
end: number;
start: number;
type: "bold";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
}, {
end: number;
start: number;
type: "bold";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
}>, z.ZodObject<{
end: z.ZodNumber;
start: z.ZodNumber;
appAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
type: z.ZodLiteral<"italics">;
attributes: z.ZodOptional<z.ZodObject<{
open: z.ZodOptional<z.ZodBoolean>;
delimiter: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
open?: boolean | undefined;
delimiter?: string | undefined;
}, {
open?: boolean | undefined;
delimiter?: string | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
end: number;
start: number;
type: "italics";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
}, {
end: number;
start: number;
type: "italics";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
}>, z.ZodObject<{
end: z.ZodNumber;
start: z.ZodNumber;
appAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
type: z.ZodLiteral<"strikethrough">;
attributes: z.ZodOptional<z.ZodObject<{
open: z.ZodOptional<z.ZodBoolean>;
delimiter: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
open?: boolean | undefined;
delimiter?: string | undefined;
}, {
open?: boolean | undefined;
delimiter?: string | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
end: number;
start: number;
type: "strikethrough";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
}, {
end: number;
start: number;
type: "strikethrough";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
}>, z.ZodObject<{
end: z.ZodNumber;
start: z.ZodNumber;
appAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
type: z.ZodLiteral<"highlighting">;
attributes: z.ZodOptional<z.ZodObject<{
open: z.ZodOptional<z.ZodBoolean>;
delimiter: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
open?: boolean | undefined;
delimiter?: string | undefined;
}, {
open?: boolean | undefined;
delimiter?: string | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
end: number;
start: number;
type: "highlighting";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
}, {
end: number;
start: number;
type: "highlighting";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
}>, z.ZodObject<{
end: z.ZodNumber;
start: z.ZodNumber;
appAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
type: z.ZodLiteral<"inline">;
attributes: z.ZodOptional<z.ZodObject<{
open: z.ZodOptional<z.ZodBoolean>;
delimiter: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
open?: boolean | undefined;
delimiter?: string | undefined;
}, {
open?: boolean | undefined;
delimiter?: string | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
end: number;
start: number;
type: "inline";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
}, {
end: number;
start: number;
type: "inline";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
}>, z.ZodObject<{
end: z.ZodNumber;
start: z.ZodNumber;
appAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
type: z.ZodLiteral<"link">;
attributes: z.ZodObject<{
href: z.ZodString;
}, "strip", z.ZodTypeAny, {
href: string;
}, {
href: string;
}>;
}, "strip", z.ZodTypeAny, {
end: number;
start: number;
type: "link";
attributes: {
href: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
}, {
end: number;
start: number;
type: "link";
attributes: {
href: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
}>, z.ZodObject<{
end: z.ZodNumber;
start: z.ZodNumber;
appAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
type: z.ZodLiteral<"reference">;
attributes: z.ZodObject<{
notebookPageId: z.ZodString;
notebookUuid: z.ZodString;
}, "strip", z.ZodTypeAny, {
notebookPageId: string;
notebookUuid: string;
}, {
notebookPageId: string;
notebookUuid: string;
}>;
}, "strip", z.ZodTypeAny, {
end: number;
start: number;
type: "reference";
attributes: {
notebookPageId: string;
notebookUuid: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
}, {
end: number;
start: number;
type: "reference";
attributes: {
notebookPageId: string;
notebookUuid: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
}>, z.ZodObject<{
end: z.ZodNumber;
start: z.ZodNumber;
appAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
type: z.ZodLiteral<"image">;
attributes: z.ZodObject<{
src: z.ZodString;
}, "strip", z.ZodTypeAny, {
src: string;
}, {
src: string;
}>;
}, "strip", z.ZodTypeAny, {
end: number;
start: number;
type: "image";
attributes: {
src: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
}, {
end: number;
start: number;
type: "image";
attributes: {
src: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
}>, z.ZodObject<{
end: z.ZodNumber;
start: z.ZodNumber;
appAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
type: z.ZodLiteral<"custom">;
attributes: z.ZodObject<{
name: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
}, {
name: string;
}>;
}, "strip", z.ZodTypeAny, {
end: number;
start: number;
type: "custom";
attributes: {
name: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
}, {
end: number;
start: number;
type: "custom";
attributes: {
name: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
}>, z.ZodObject<{
end: z.ZodNumber;
start: z.ZodNumber;
appAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
type: z.ZodLiteral<"code">;
attributes: z.ZodObject<{
language: z.ZodString;
ticks: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
language: string;
ticks?: number | undefined;
}, {
language: string;
ticks?: number | undefined;
}>;
}, "strip", z.ZodTypeAny, {
end: number;
start: number;
type: "code";
attributes: {
language: string;
ticks?: number | undefined;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
}, {
end: number;
start: number;
type: "code";
attributes: {
language: string;
ticks?: number | undefined;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
}>]>, {
end: number;
start: number;
type: "block";
attributes: {
level: number;
viewType: "bullet" | "numbered" | "document";
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "metadata";
attributes: {
title: string;
parent: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "bold";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "italics";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "strikethrough";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "highlighting";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "inline";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "link";
attributes: {
href: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "reference";
attributes: {
notebookPageId: string;
notebookUuid: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "image";
attributes: {
src: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "custom";
attributes: {
name: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "code";
attributes: {
language: string;
ticks?: number | undefined;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
}, {
end: number;
start: number;
type: "block";
attributes: {
level: number;
viewType: "bullet" | "numbered" | "document";
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "metadata";
attributes: {
title: string;
parent: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "bold";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "italics";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "strikethrough";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "highlighting";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "inline";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "link";
attributes: {
href: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "reference";
attributes: {
notebookPageId: string;
notebookUuid: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "image";
attributes: {
src: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "custom";
attributes: {
name: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "code";
attributes: {
language: string;
ticks?: number | undefined;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
}>, {
end: number;
start: number;
type: "block";
attributes: {
level: number;
viewType: "bullet" | "numbered" | "document";
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "metadata";
attributes: {
title: string;
parent: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "bold";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "italics";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "strikethrough";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "highlighting";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "inline";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "link";
attributes: {
href: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "reference";
attributes: {
notebookPageId: string;
notebookUuid: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "image";
attributes: {
src: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "custom";
attributes: {
name: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "code";
attributes: {
language: string;
ticks?: number | undefined;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
}, {
end: number;
start: number;
type: "block";
attributes: {
level: number;
viewType: "bullet" | "numbered" | "document";
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "metadata";
attributes: {
title: string;
parent: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "bold";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "italics";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "strikethrough";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "highlighting";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "inline";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "link";
attributes: {
href: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "reference";
attributes: {
notebookPageId: string;
notebookUuid: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "image";
attributes: {
src: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "custom";
attributes: {
name: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "code";
attributes: {
language: string;
ticks?: number | undefined;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
content: string;
annotations: ({
end: number;
start: number;
type: "block";
attributes: {
level: number;
viewType: "bullet" | "numbered" | "document";
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "metadata";
attributes: {
title: string;
parent: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "bold";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "italics";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "strikethrough";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "highlighting";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "inline";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "link";
attributes: {
href: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "reference";
attributes: {
notebookPageId: string;
notebookUuid: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "image";
attributes: {
src: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "custom";
attributes: {
name: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "code";
attributes: {
language: string;
ticks?: number | undefined;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
})[];
}, {
content: string;
annotations: ({
end: number;
start: number;
type: "block";
attributes: {
level: number;
viewType: "bullet" | "numbered" | "document";
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "metadata";
attributes: {
title: string;
parent: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "bold";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "italics";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "strikethrough";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "highlighting";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "inline";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "link";
attributes: {
href: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "reference";
attributes: {
notebookPageId: string;
notebookUuid: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "image";
attributes: {
src: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "custom";
attributes: {
name: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "code";
attributes: {
language: string;
ticks?: number | undefined;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
})[];
}>;
}, "strip", z.ZodTypeAny, {
data: {
content: string;
annotations: ({
end: number;
start: number;
type: "block";
attributes: {
level: number;
viewType: "bullet" | "numbered" | "document";
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "metadata";
attributes: {
title: string;
parent: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "bold";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "italics";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "strikethrough";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "highlighting";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "inline";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "link";
attributes: {
href: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "reference";
attributes: {
notebookPageId: string;
notebookUuid: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "image";
attributes: {
src: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "custom";
attributes: {
name: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "code";
attributes: {
language: string;
ticks?: number | undefined;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
})[];
};
type: "refresh";
notebookPageId: string;
}, {
data: {
content: string;
annotations: ({
end: number;
start: number;
type: "block";
attributes: {
level: number;
viewType: "bullet" | "numbered" | "document";
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "metadata";
attributes: {
title: string;
parent: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "bold";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "italics";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "strikethrough";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "highlighting";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "inline";
appAttributes?: Record<string, Record<string, string>> | undefined;
attributes?: {
open?: boolean | undefined;
delimiter?: string | undefined;
} | undefined;
} | {
end: number;
start: number;
type: "link";
attributes: {
href: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "reference";
attributes: {
notebookPageId: string;
notebookUuid: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "image";
attributes: {
src: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "custom";
attributes: {
name: string;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
} | {
end: number;
start: number;
type: "code";
attributes: {
language: string;
ticks?: number | undefined;
};
appAttributes?: Record<string, Record<string, string>> | undefined;
})[];
};
type: "refresh";
notebookPageId: string;
}>, z.ZodObject<{
type: z.ZodLiteral<"waitForNotification">;
}, "strip", z.ZodTypeAny, {
type: "waitForNotification";
}, {
type: "waitForNotification";
}>, z.ZodObject<{
type: z.ZodLiteral<"resume">;
notebookPageId: z.ZodString;
update: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: "resume";
notebookPageId: string;
update: string;
}, {
type: "resume";
notebookPageId: string;
update: string;
}>, z.ZodObject<{
type: z.ZodLiteral<"route">;
routes: z.ZodArray<z.ZodObject<{
key: z.ZodString;
value: z.ZodString;
response: z.ZodRecord<z.ZodString, z.ZodType<import("../internal/types").Json, z.ZodTypeDef, import("../internal/types").Json>>;
}, "strip", z.ZodTypeAny, {
value: string;
response: Record<string, import("../internal/types").Json>;
key: string;
}, {
value: string;
response: Record<string, import("../internal/types").Json>;
key: string;
}>, "many">;
}, "strip", z.ZodTypeAny, {
type: "route";
routes: {
value: string;
response: Record<string, import("../internal/types").Json>;
key: string;
}[];
}, {
type: "route";
routes: {
value: string;
response: Record<string, import("../internal/types").Json>;
key: string;
}[];
}>, z.ZodObject<{
type: z.ZodLiteral<"request">;
request: z.ZodAny;
target: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: "request";
target: string;
request?: any;
}, {
type: "request";
target: string;
request?: any;
}>]>;
export declare const responseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"error">;
data: z.ZodString;
}, "strip", z.ZodTypeAny, {
data: string;
type: "error";
}, {
data: string;
type: "error";
}>, z.ZodObject<{
type: z.ZodLiteral<"ready">;
uuid: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: "ready";
uuid: string;
}, {
type: "ready";
uuid: string;
}>, z.ZodObject<{
type: z.ZodLiteral<"response">;
uuid: z.ZodString;
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
}, "strip", z.ZodTypeAny, {