From 4c7a0f01f8b4fdf20ef337fe3f4016a4382a0618 Mon Sep 17 00:00:00 2001 From: yomzy2223 Date: Tue, 23 Sep 2025 14:05:23 +0100 Subject: [PATCH 1/2] feat(schema): add optional operator field to Wiki schema Added an optional `operator` field to the Wiki schema to support additional user roles. This change allows for tracking users who publish through Sophia --- src/schema/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/schema/index.ts b/src/schema/index.ts index e07b0c8..6107121 100644 --- a/src/schema/index.ts +++ b/src/schema/index.ts @@ -251,6 +251,7 @@ export const Wiki = z events: z.array(BaseEvents).nullish(), user: z.object({ id: z.string() }), author: z.object({ id: z.string() }), + operator: z.object({ id: z.string() }).optional(), language: LanguagesISO.default(LanguagesISO.Enum.en), version: z.number().default(1), linkedWikis: z From f830dca82bd66849c10816d56e24c80efd9563fa Mon Sep 17 00:00:00 2001 From: yomzy2223 Date: Tue, 23 Sep 2025 14:21:07 +0100 Subject: [PATCH 2/2] add changesets --- .changeset/large-goats-type.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/large-goats-type.md diff --git a/.changeset/large-goats-type.md b/.changeset/large-goats-type.md new file mode 100644 index 0000000..db44a0f --- /dev/null +++ b/.changeset/large-goats-type.md @@ -0,0 +1,5 @@ +--- +"@everipedia/iq-utils": patch +--- + +add operator field to wiki schema