@canonry/canonry 7.54.0 → 7.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
@@ -376,7 +376,7 @@ var DEMO_CLI_COMMANDS = [{
376
376
  options: { host: stringOption(), port: stringOption(), "trust-proxy": multiStringOption() },
377
377
  allowPositionals: false,
378
378
  run: async (input) => {
379
- const { demoCommand } = await import("./demo-N7MEASQP.js");
379
+ const { demoCommand } = await import("./demo-J3QCDV43.js");
380
380
  await demoCommand({
381
381
  host: getString(input.values, "host"),
382
382
  port: getString(input.values, "port"),
@@ -6329,7 +6329,7 @@ var SYSTEM_CLI_COMMANDS = [
6329
6329
  options: { access: stringOption() },
6330
6330
  run: async (input) => {
6331
6331
  if (input.positionals.length > 1) throw usageError("Expected at most one command group");
6332
- const [{ printCliCatalog }, { REGISTERED_CLI_COMMANDS: REGISTERED_CLI_COMMANDS2 }] = await Promise.all([import("./cli-catalog-P2I6IYNI.js"), import("./cli-commands-YDRKG6OC.js")]);
6332
+ const [{ printCliCatalog }, { REGISTERED_CLI_COMMANDS: REGISTERED_CLI_COMMANDS2 }] = await Promise.all([import("./cli-catalog-P2I6IYNI.js"), import("./cli-commands-U6NDGGK2.js")]);
6333
6333
  printCliCatalog(REGISTERED_CLI_COMMANDS2, input.format, input.positionals[0], getString(input.values, "access"));
6334
6334
  }
6335
6335
  },
@@ -6378,7 +6378,7 @@ var SYSTEM_CLI_COMMANDS = [
6378
6378
  },
6379
6379
  allowPositionals: false,
6380
6380
  run: async (input) => {
6381
- const { initCommand } = await import("./init-25III66S.js");
6381
+ const { initCommand } = await import("./init-EDSKLFUY.js");
6382
6382
  await initCommand({
6383
6383
  force: getBoolean(input.values, "force"),
6384
6384
  ref: getString(input.values, "ref"),
@@ -6433,7 +6433,7 @@ var SYSTEM_CLI_COMMANDS = [
6433
6433
  allowPositionals: false,
6434
6434
  run: async (input) => {
6435
6435
  applyServerEnv(input.values);
6436
- const { serveCommand } = await import("./serve-UN2OEK2Q.js");
6436
+ const { serveCommand } = await import("./serve-VJ3M7FAT.js");
6437
6437
  await serveCommand(input.format);
6438
6438
  }
6439
6439
  },
@@ -47,7 +47,7 @@ function queueServeHandoff() {
47
47
  async function runPendingServeHandoff(format) {
48
48
  if (!pendingServeHandoff) return;
49
49
  pendingServeHandoff = false;
50
- const { serveCommand } = await import("./serve-UN2OEK2Q.js");
50
+ const { serveCommand } = await import("./serve-VJ3M7FAT.js");
51
51
  await serveCommand(format);
52
52
  }
53
53
 
@@ -5097,7 +5097,7 @@ function nonBlank(value) {
5097
5097
  return trimmed ? trimmed : void 0;
5098
5098
  }
5099
5099
  function resolveBuildCommit(env = process.env) {
5100
- const embedded = true ? "8a7aeb563a46919b478a60a2e42295365042c4db" : void 0;
5100
+ const embedded = true ? "7fb56ccfab0fd435a15a7728f33dd273d4dcdece" : void 0;
5101
5101
  return nonBlank(embedded) ?? nonBlank(env.CANONRY_COMMIT);
5102
5102
  }
5103
5103
  function resolveInstanceIdentity(env = process.env) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  REGISTERED_CLI_COMMANDS
3
- } from "./chunk-PFPTUCMG.js";
3
+ } from "./chunk-2OB7YQEZ.js";
4
4
  import "./chunk-6GO5VVAC.js";
5
5
  import "./chunk-Y2YBRLSS.js";
6
6
  import "./chunk-VJWDBFSL.js";
package/dist/cli.js CHANGED
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node --import tsx
2
2
  import {
3
3
  REGISTERED_CLI_COMMANDS
4
- } from "./chunk-PFPTUCMG.js";
4
+ } from "./chunk-2OB7YQEZ.js";
5
5
  import "./chunk-6GO5VVAC.js";
6
6
  import {
7
7
  buildSetupState,
8
8
  runPendingServeHandoff
9
- } from "./chunk-5P7DSHNK.js";
9
+ } from "./chunk-F5XONXGH.js";
10
10
  import "./chunk-Y2YBRLSS.js";
11
11
  import "./chunk-VJWDBFSL.js";
12
12
  import "./chunk-TSENU4GG.js";
@@ -40,7 +40,7 @@ function parseDemoTrustedProxies(values) {
40
40
  async function demoCommand(options) {
41
41
  const { host, port } = parseDemoListenOptions(options);
42
42
  const trustProxy = parseDemoTrustedProxies(options.trustProxy);
43
- const { createDemoServer } = await import("./demo-server-IGTBANDC.js");
43
+ const { createDemoServer } = await import("./demo-server-FJLSYQXZ.js");
44
44
  const app = await createDemoServer({ trustProxy });
45
45
  let stopping = false;
46
46
  const stop = () => {
@@ -1302,6 +1302,14 @@ var DEMO_CLIENT_CONFIG = {
1302
1302
  };
1303
1303
  var INLINE_SCRIPT = /<script(?<attributes>[^>]*)>(?<body>[\s\S]*?)<\/script>/gi;
1304
1304
  var DEMO_DOCUMENT_PATH = /^\/(?:projects(?:\/[^/.]+(?:\/(?:portfolio|discovery|search-console|activity|technical-aeo|conversions|local|queries|backlinks|report|history|settings|properties)(?:\/[^/.]+)*)?)?|runs|history|traffic(?:\/[^/.]+(?:\/[^/.]+)?)?)\/?$/;
1305
+ var DEMO_TITLE = "Canonry live demo";
1306
+ var DEMO_DESCRIPTION = "The open-source AEO operating platform. Sample data, no sign-in.";
1307
+ var DEMO_PREVIEW_IMAGE = "demo-og.png";
1308
+ var DEMO_PREVIEW_IMAGE_ALT = "Canonry dashboard with sample data";
1309
+ var DEMO_PREVIEW_SLOT = "<!--canonry-demo-preview-->";
1310
+ var PLAIN_HOST = /^[a-z0-9.-]+(?::\d{1,5})?$/i;
1311
+ var LINK_PREVIEW_AGENTS = ["Twitterbot", "facebookexternalhit", "LinkedInBot", "Slackbot-LinkExpanding", "Discordbot", "TelegramBot", "WhatsApp"];
1312
+ var DEMO_ROBOTS = [...LINK_PREVIEW_AGENTS.map((agent) => `User-agent: ${agent}`), "Allow: /", "", "User-agent: *", "Disallow: /", ""].join("\n");
1305
1313
  var UNDECODABLE_PATH = "/.undecodable-path";
1306
1314
  function demoContentSecurityPolicy(document) {
1307
1315
  const inlineHashes = [...document.matchAll(INLINE_SCRIPT)].filter((match) => !/\ssrc\s*=/i.test(match.groups?.attributes ?? "")).map((match) => `'sha256-${createHash("sha256").update(match.groups?.body ?? "", "utf8").digest("base64")}'`);
@@ -1319,6 +1327,31 @@ function demoContentSecurityPolicy(document) {
1319
1327
  "frame-ancestors 'self'"
1320
1328
  ].join("; ");
1321
1329
  }
1330
+ function escapeAttribute(value) {
1331
+ return value.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
1332
+ }
1333
+ function demoPreviewTags(request) {
1334
+ const origin = PLAIN_HOST.test(request.host) ? `${request.protocol}://${request.host}` : "";
1335
+ const image = `${origin}/${DEMO_PREVIEW_IMAGE}`;
1336
+ const page = `${origin}${request.url.split("?")[0] ?? "/"}`;
1337
+ const tags = [
1338
+ ["property", "og:type", "website"],
1339
+ ["property", "og:site_name", "Canonry"],
1340
+ ["property", "og:title", DEMO_TITLE],
1341
+ ["property", "og:description", DEMO_DESCRIPTION],
1342
+ ["property", "og:url", page],
1343
+ ["property", "og:image", image],
1344
+ ["property", "og:image:width", "1200"],
1345
+ ["property", "og:image:height", "630"],
1346
+ ["property", "og:image:alt", DEMO_PREVIEW_IMAGE_ALT],
1347
+ ["name", "twitter:card", "summary_large_image"],
1348
+ ["name", "twitter:title", DEMO_TITLE],
1349
+ ["name", "twitter:description", DEMO_DESCRIPTION],
1350
+ ["name", "twitter:image", image],
1351
+ ["name", "twitter:image:alt", DEMO_PREVIEW_IMAGE_ALT]
1352
+ ];
1353
+ return tags.map(([attribute, key, value]) => `<meta ${attribute}="${key}" content="${escapeAttribute(value)}">`).join("");
1354
+ }
1322
1355
  function isDemoDocumentRequest(request) {
1323
1356
  return (request.method === "GET" || request.method === "HEAD") && DEMO_DOCUMENT_PATH.test(request.url.split("?")[0] ?? "");
1324
1357
  }
@@ -1328,7 +1361,7 @@ function isOutsideDemoApiBudget(request) {
1328
1361
  }
1329
1362
  async function createDemoHttpServer(options) {
1330
1363
  const { db, assetsDir, now } = options;
1331
- const html = readFileSync(join(assetsDir, "index.html"), "utf8").replace("<head>", '<head><base href="/">').replace("</head>", `<script>window.__CANONRY_CONFIG__=${JSON.stringify(DEMO_CLIENT_CONFIG)}</script></head>`);
1364
+ const html = readFileSync(join(assetsDir, "index.html"), "utf8").replace("<head>", '<head><base href="/">').replace(/<title>[^<]*<\/title>/, `<title>${DEMO_TITLE}</title>`).replace(/<meta\s+name="description"\s+content="[^"]*"\s*\/?>/, `<meta name="description" content="${DEMO_DESCRIPTION}" />`).replace("</head>", `${DEMO_PREVIEW_SLOT}<script>window.__CANONRY_CONFIG__=${JSON.stringify(DEMO_CLIENT_CONFIG)}</script></head>`);
1332
1365
  const contentSecurityPolicy = demoContentSecurityPolicy(html);
1333
1366
  db.insert(apiKeys).values({
1334
1367
  ...DEMO_VIEWER,
@@ -1433,10 +1466,10 @@ async function createDemoHttpServer(options) {
1433
1466
  index: false,
1434
1467
  dotfiles: "deny"
1435
1468
  });
1436
- const sendDocument = (_request, reply) => {
1437
- return reply.header("Cache-Control", "no-cache").type("text/html").send(html);
1469
+ const sendDocument = (request, reply) => {
1470
+ return reply.header("Cache-Control", "no-cache").type("text/html").send(html.replace(DEMO_PREVIEW_SLOT, demoPreviewTags(request)));
1438
1471
  };
1439
- for (const [filename, contentType] of [["favicon.svg", "image/svg+xml"], ["favicon-32.png", "image/png"], ["apple-touch-icon.png", "image/png"]]) {
1472
+ for (const [filename, contentType] of [["favicon.svg", "image/svg+xml"], ["favicon-32.png", "image/png"], ["apple-touch-icon.png", "image/png"], [DEMO_PREVIEW_IMAGE, "image/png"]]) {
1440
1473
  const path = join(assetsDir, filename);
1441
1474
  if (existsSync(path)) {
1442
1475
  const icon = readFileSync(path);
@@ -1444,7 +1477,7 @@ async function createDemoHttpServer(options) {
1444
1477
  }
1445
1478
  }
1446
1479
  app.get("/", sendDocument);
1447
- app.get("/robots.txt", async (_request, reply) => reply.type("text/plain").send("User-agent: *\nDisallow: /\n"));
1480
+ app.get("/robots.txt", async (_request, reply) => reply.type("text/plain").send(DEMO_ROBOTS));
1448
1481
  app.setNotFoundHandler(async (request, reply) => {
1449
1482
  if (undecodable.has(request.raw)) {
1450
1483
  return reply.code(400).send({ error: { code: "VALIDATION_ERROR", message: "The request path is not a valid URL." } });
package/dist/index.d.ts CHANGED
@@ -70,10 +70,10 @@ declare const googleAdsAccessibleCustomerDtoSchema: z.ZodObject<{
70
70
  level: z.ZodNumber;
71
71
  status: z.ZodEnum<{
72
72
  unknown: "unknown";
73
- canceled: "canceled";
74
73
  enabled: "enabled";
75
74
  suspended: "suspended";
76
75
  closed: "closed";
76
+ canceled: "canceled";
77
77
  unspecified: "unspecified";
78
78
  }>;
79
79
  }, z.core.$strict>;
@@ -92,10 +92,10 @@ declare const googleAdsAccessibleCustomersResponseSchema: z.ZodObject<{
92
92
  level: z.ZodNumber;
93
93
  status: z.ZodEnum<{
94
94
  unknown: "unknown";
95
- canceled: "canceled";
96
95
  enabled: "enabled";
97
96
  suspended: "suspended";
98
97
  closed: "closed";
98
+ canceled: "canceled";
99
99
  unspecified: "unspecified";
100
100
  }>;
101
101
  }, z.core.$strict>>;
@@ -115,8 +115,8 @@ declare const googleAdsEffectiveGoalGraphDtoSchema: z.ZodObject<{
115
115
  campaigns: z.ZodArray<z.ZodObject<{
116
116
  campaignId: z.ZodString;
117
117
  goalConfigLevel: z.ZodEnum<{
118
- campaign: "campaign";
119
118
  customer: "customer";
119
+ campaign: "campaign";
120
120
  }>;
121
121
  customGoalId: z.ZodNullable<z.ZodString>;
122
122
  missingCustomGoalId: z.ZodNullable<z.ZodString>;
@@ -180,10 +180,10 @@ declare const googleAdsRawSnapshotDtoSchema: z.ZodObject<{
180
180
  level: z.ZodNumber;
181
181
  status: z.ZodEnum<{
182
182
  unknown: "unknown";
183
- canceled: "canceled";
184
183
  enabled: "enabled";
185
184
  suspended: "suspended";
186
185
  closed: "closed";
186
+ canceled: "canceled";
187
187
  unspecified: "unspecified";
188
188
  }>;
189
189
  }, z.core.$strict>>;
@@ -208,8 +208,8 @@ declare const googleAdsRawSnapshotDtoSchema: z.ZodObject<{
208
208
  status: z.ZodEnum<{
209
209
  unknown: "unknown";
210
210
  enabled: "enabled";
211
- paused: "paused";
212
211
  removed: "removed";
212
+ paused: "paused";
213
213
  }>;
214
214
  advertisingChannelType: z.ZodNullable<z.ZodString>;
215
215
  biddingStrategyType: z.ZodNullable<z.ZodString>;
@@ -221,8 +221,8 @@ declare const googleAdsRawSnapshotDtoSchema: z.ZodObject<{
221
221
  status: z.ZodEnum<{
222
222
  unknown: "unknown";
223
223
  enabled: "enabled";
224
- hidden: "hidden";
225
224
  removed: "removed";
225
+ hidden: "hidden";
226
226
  }>;
227
227
  category: z.ZodString;
228
228
  origin: z.ZodString;
@@ -249,8 +249,8 @@ declare const googleAdsRawSnapshotDtoSchema: z.ZodObject<{
249
249
  campaignGoalConfigurations: z.ZodArray<z.ZodObject<{
250
250
  campaignId: z.ZodString;
251
251
  goalConfigLevel: z.ZodEnum<{
252
- campaign: "campaign";
253
252
  customer: "customer";
253
+ campaign: "campaign";
254
254
  }>;
255
255
  customGoalId: z.ZodNullable<z.ZodString>;
256
256
  }, z.core.$strict>>;
@@ -331,10 +331,10 @@ declare const gtmRawSnapshotDtoSchema: z.ZodObject<{
331
331
  connectionId: z.ZodString;
332
332
  runId: z.ZodString;
333
333
  kind: z.ZodEnum<{
334
- accounts: "accounts";
335
- container: "container";
336
334
  live: "live";
337
335
  draft: "draft";
336
+ accounts: "accounts";
337
+ container: "container";
338
338
  }>;
339
339
  accountId: z.ZodNullable<z.ZodString>;
340
340
  containerId: z.ZodNullable<z.ZodString>;
@@ -1402,7 +1402,7 @@ declare const projects: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
1402
1402
  tableName: "projects";
1403
1403
  dataType: "string";
1404
1404
  columnType: "SQLiteText";
1405
- data: "full" | "competitors";
1405
+ data: "competitors" | "full";
1406
1406
  driverParam: string;
1407
1407
  notNull: false;
1408
1408
  hasDefault: false;
@@ -1415,7 +1415,7 @@ declare const projects: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
1415
1415
  generated: undefined;
1416
1416
  }, {}, {
1417
1417
  length: number | undefined;
1418
- $type: "full" | "competitors";
1418
+ $type: "competitors" | "full";
1419
1419
  }>;
1420
1420
  country: drizzle_orm_sqlite_core.SQLiteColumn<{
1421
1421
  name: "country";
@@ -4986,7 +4986,7 @@ declare const querySnapshots: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
4986
4986
  }[];
4987
4987
  searchQueries: string[];
4988
4988
  retrievalStatus: "unknown" | "used" | "not-used" | "not-applicable";
4989
- citationBasis: "answer-support" | "explicit-citation" | "mixed" | "none";
4989
+ citationBasis: "none" | "mixed" | "answer-support" | "explicit-citation";
4990
4990
  citationMeasurable: boolean;
4991
4991
  directSourceUrls: boolean;
4992
4992
  location: {
@@ -5091,7 +5091,7 @@ declare const querySnapshots: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
5091
5091
  }[];
5092
5092
  searchQueries: string[];
5093
5093
  retrievalStatus: "unknown" | "used" | "not-used" | "not-applicable";
5094
- citationBasis: "answer-support" | "explicit-citation" | "mixed" | "none";
5094
+ citationBasis: "none" | "mixed" | "answer-support" | "explicit-citation";
5095
5095
  citationMeasurable: boolean;
5096
5096
  directSourceUrls: boolean;
5097
5097
  location: {
@@ -5505,7 +5505,7 @@ declare const providerBatches: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
5505
5505
  tableName: "provider_batches";
5506
5506
  dataType: "string";
5507
5507
  columnType: "SQLiteText";
5508
- data: "unknown" | "failed" | "submitting" | "submitted" | "ended" | "ingested" | "cancelled";
5508
+ data: "unknown" | "failed" | "submitted" | "submitting" | "ended" | "ingested" | "cancelled";
5509
5509
  driverParam: string;
5510
5510
  notNull: true;
5511
5511
  hasDefault: false;
@@ -5518,7 +5518,7 @@ declare const providerBatches: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
5518
5518
  generated: undefined;
5519
5519
  }, {}, {
5520
5520
  length: number | undefined;
5521
- $type: "unknown" | "failed" | "submitting" | "submitted" | "ended" | "ingested" | "cancelled";
5521
+ $type: "unknown" | "failed" | "submitted" | "submitting" | "ended" | "ingested" | "cancelled";
5522
5522
  }>;
5523
5523
  requestCount: drizzle_orm_sqlite_core.SQLiteColumn<{
5524
5524
  name: "request_count";
@@ -5964,7 +5964,7 @@ declare const providerBatchRequests: drizzle_orm_sqlite_core.SQLiteTableWithColu
5964
5964
  tableName: "provider_batch_requests";
5965
5965
  dataType: "string";
5966
5966
  columnType: "SQLiteText";
5967
- data: "recorded" | "errored" | "expired" | "canceled" | "parse_failed" | "duplicate";
5967
+ data: "duplicate" | "canceled" | "recorded" | "errored" | "expired" | "parse_failed";
5968
5968
  driverParam: string;
5969
5969
  notNull: false;
5970
5970
  hasDefault: false;
@@ -5977,7 +5977,7 @@ declare const providerBatchRequests: drizzle_orm_sqlite_core.SQLiteTableWithColu
5977
5977
  generated: undefined;
5978
5978
  }, {}, {
5979
5979
  length: number | undefined;
5980
- $type: "recorded" | "errored" | "expired" | "canceled" | "parse_failed" | "duplicate";
5980
+ $type: "duplicate" | "canceled" | "recorded" | "errored" | "expired" | "parse_failed";
5981
5981
  }>;
5982
5982
  error: drizzle_orm_sqlite_core.SQLiteColumn<{
5983
5983
  name: "error";
@@ -7565,7 +7565,7 @@ declare const oauthTokens: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
7565
7565
  tableName: "oauth_tokens";
7566
7566
  dataType: "string";
7567
7567
  columnType: "SQLiteText";
7568
- data: "access" | "refresh";
7568
+ data: "refresh" | "access";
7569
7569
  driverParam: string;
7570
7570
  notNull: true;
7571
7571
  hasDefault: false;
@@ -7578,7 +7578,7 @@ declare const oauthTokens: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
7578
7578
  generated: undefined;
7579
7579
  }, {}, {
7580
7580
  length: number | undefined;
7581
- $type: "access" | "refresh";
7581
+ $type: "refresh" | "access";
7582
7582
  }>;
7583
7583
  clientId: drizzle_orm_sqlite_core.SQLiteColumn<{
7584
7584
  name: "client_id";
@@ -10362,7 +10362,7 @@ declare const siteAuditSnapshots: drizzle_orm_sqlite_core.SQLiteTableWithColumns
10362
10362
  weight: number;
10363
10363
  sharePct: number | null;
10364
10364
  avgScore: number;
10365
- status: "partial" | "pass" | "fail";
10365
+ status: "fail" | "partial" | "pass";
10366
10366
  pagesPassing: number;
10367
10367
  pagesPartial: number;
10368
10368
  pagesFailing: number;
@@ -10384,7 +10384,7 @@ declare const siteAuditSnapshots: drizzle_orm_sqlite_core.SQLiteTableWithColumns
10384
10384
  weight: number;
10385
10385
  sharePct: number | null;
10386
10386
  avgScore: number;
10387
- status: "partial" | "pass" | "fail";
10387
+ status: "fail" | "partial" | "pass";
10388
10388
  pagesPassing: number;
10389
10389
  pagesPartial: number;
10390
10390
  pagesFailing: number;
@@ -22338,7 +22338,7 @@ declare const discoverySessions: drizzle_orm_sqlite_core.SQLiteTableWithColumns<
22338
22338
  data: {
22339
22339
  domain: string;
22340
22340
  hits: number;
22341
- competitorType: "unknown" | "direct-competitor" | "ota-aggregator" | "editorial-media" | "other";
22341
+ competitorType: "unknown" | "other" | "direct-competitor" | "ota-aggregator" | "editorial-media";
22342
22342
  evaluator?: {
22343
22343
  provider: string;
22344
22344
  requestedModel: string;
@@ -22360,7 +22360,7 @@ declare const discoverySessions: drizzle_orm_sqlite_core.SQLiteTableWithColumns<
22360
22360
  $type: {
22361
22361
  domain: string;
22362
22362
  hits: number;
22363
- competitorType: "unknown" | "direct-competitor" | "ota-aggregator" | "editorial-media" | "other";
22363
+ competitorType: "unknown" | "other" | "direct-competitor" | "ota-aggregator" | "editorial-media";
22364
22364
  evaluator?: {
22365
22365
  provider: string;
22366
22366
  requestedModel: string;
@@ -22611,7 +22611,7 @@ declare const researchRuns: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
22611
22611
  dataType: "json";
22612
22612
  columnType: "SQLiteTextJson";
22613
22613
  data: {
22614
- kind: "market" | "property";
22614
+ kind: "property" | "market";
22615
22615
  key: string;
22616
22616
  label: string;
22617
22617
  planRevision: number;
@@ -22628,7 +22628,7 @@ declare const researchRuns: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
22628
22628
  generated: undefined;
22629
22629
  }, {}, {
22630
22630
  $type: {
22631
- kind: "market" | "property";
22631
+ kind: "property" | "market";
22632
22632
  key: string;
22633
22633
  label: string;
22634
22634
  planRevision: number;
@@ -22779,7 +22779,7 @@ declare const researchRuns: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
22779
22779
  dataType: "json";
22780
22780
  columnType: "SQLiteTextJson";
22781
22781
  data: {
22782
- kind: "api-key" | "user";
22782
+ kind: "user" | "api-key";
22783
22783
  id: string;
22784
22784
  name: string;
22785
22785
  role: "admin" | "viewer" | null;
@@ -22797,7 +22797,7 @@ declare const researchRuns: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
22797
22797
  generated: undefined;
22798
22798
  }, {}, {
22799
22799
  $type: {
22800
- kind: "api-key" | "user";
22800
+ kind: "user" | "api-key";
22801
22801
  id: string;
22802
22802
  name: string;
22803
22803
  role: "admin" | "viewer" | null;
@@ -23335,7 +23335,7 @@ declare const researchRunQueries: drizzle_orm_sqlite_core.SQLiteTableWithColumns
23335
23335
  }[];
23336
23336
  searchQueries: string[];
23337
23337
  retrievalStatus: "unknown" | "used" | "not-used" | "not-applicable";
23338
- citationBasis: "answer-support" | "explicit-citation" | "mixed" | "none";
23338
+ citationBasis: "none" | "mixed" | "answer-support" | "explicit-citation";
23339
23339
  citationMeasurable: boolean;
23340
23340
  directSourceUrls: boolean;
23341
23341
  location: {
@@ -23440,7 +23440,7 @@ declare const researchRunQueries: drizzle_orm_sqlite_core.SQLiteTableWithColumns
23440
23440
  }[];
23441
23441
  searchQueries: string[];
23442
23442
  retrievalStatus: "unknown" | "used" | "not-used" | "not-applicable";
23443
- citationBasis: "answer-support" | "explicit-citation" | "mixed" | "none";
23443
+ citationBasis: "none" | "mixed" | "answer-support" | "explicit-citation";
23444
23444
  citationMeasurable: boolean;
23445
23445
  directSourceUrls: boolean;
23446
23446
  location: {
@@ -23821,7 +23821,7 @@ declare const domainClassifications: drizzle_orm_sqlite_core.SQLiteTableWithColu
23821
23821
  tableName: "domain_classifications";
23822
23822
  dataType: "string";
23823
23823
  columnType: "SQLiteText";
23824
- data: "unknown" | "direct-competitor" | "ota-aggregator" | "editorial-media" | "other";
23824
+ data: "unknown" | "other" | "direct-competitor" | "ota-aggregator" | "editorial-media";
23825
23825
  driverParam: string;
23826
23826
  notNull: true;
23827
23827
  hasDefault: false;
@@ -23834,7 +23834,7 @@ declare const domainClassifications: drizzle_orm_sqlite_core.SQLiteTableWithColu
23834
23834
  generated: undefined;
23835
23835
  }, {}, {
23836
23836
  length: number | undefined;
23837
- $type: "unknown" | "direct-competitor" | "ota-aggregator" | "editorial-media" | "other";
23837
+ $type: "unknown" | "other" | "direct-competitor" | "ota-aggregator" | "editorial-media";
23838
23838
  }>;
23839
23839
  hits: drizzle_orm_sqlite_core.SQLiteColumn<{
23840
23840
  name: "hits";
@@ -26177,7 +26177,7 @@ declare const gbpReviews: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
26177
26177
  tableName: "gbp_reviews";
26178
26178
  dataType: "string";
26179
26179
  columnType: "SQLiteText";
26180
- data: "gbp" | "places";
26180
+ data: "places" | "gbp";
26181
26181
  driverParam: string;
26182
26182
  notNull: true;
26183
26183
  hasDefault: false;
@@ -26190,7 +26190,7 @@ declare const gbpReviews: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
26190
26190
  generated: undefined;
26191
26191
  }, {}, {
26192
26192
  length: number | undefined;
26193
- $type: "gbp" | "places";
26193
+ $type: "places" | "gbp";
26194
26194
  }>;
26195
26195
  reviewName: drizzle_orm_sqlite_core.SQLiteColumn<{
26196
26196
  name: "review_name";
@@ -26423,7 +26423,7 @@ declare const gbpReviews: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
26423
26423
  tableName: "gbp_reviews";
26424
26424
  dataType: "string";
26425
26425
  columnType: "SQLiteText";
26426
- data: "pending" | "none" | "sent" | "baseline" | "stale" | "skipped" | "suppressed";
26426
+ data: "none" | "baseline" | "stale" | "pending" | "sent" | "skipped" | "suppressed";
26427
26427
  driverParam: string;
26428
26428
  notNull: true;
26429
26429
  hasDefault: true;
@@ -26436,7 +26436,7 @@ declare const gbpReviews: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
26436
26436
  generated: undefined;
26437
26437
  }, {}, {
26438
26438
  length: number | undefined;
26439
- $type: "pending" | "none" | "sent" | "baseline" | "stale" | "skipped" | "suppressed";
26439
+ $type: "none" | "baseline" | "stale" | "pending" | "sent" | "skipped" | "suppressed";
26440
26440
  }>;
26441
26441
  alertStateAt: drizzle_orm_sqlite_core.SQLiteColumn<{
26442
26442
  name: "alert_state_at";
@@ -26588,7 +26588,7 @@ declare const gbpReviewRatings: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
26588
26588
  tableName: "gbp_review_ratings";
26589
26589
  dataType: "string";
26590
26590
  columnType: "SQLiteText";
26591
- data: "gbp" | "places";
26591
+ data: "places" | "gbp";
26592
26592
  driverParam: string;
26593
26593
  notNull: true;
26594
26594
  hasDefault: false;
@@ -26601,7 +26601,7 @@ declare const gbpReviewRatings: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
26601
26601
  generated: undefined;
26602
26602
  }, {}, {
26603
26603
  length: number | undefined;
26604
- $type: "gbp" | "places";
26604
+ $type: "places" | "gbp";
26605
26605
  }>;
26606
26606
  rating: drizzle_orm_sqlite_core.SQLiteColumn<{
26607
26607
  name: "rating";
@@ -26733,7 +26733,7 @@ declare const gbpReviewRatings: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
26733
26733
  tableName: "gbp_review_ratings";
26734
26734
  dataType: "string";
26735
26735
  columnType: "SQLiteText";
26736
- data: "pending" | "none" | "sent" | "baseline" | "stale" | "skipped" | "suppressed";
26736
+ data: "none" | "baseline" | "stale" | "pending" | "sent" | "skipped" | "suppressed";
26737
26737
  driverParam: string;
26738
26738
  notNull: true;
26739
26739
  hasDefault: true;
@@ -26746,7 +26746,7 @@ declare const gbpReviewRatings: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
26746
26746
  generated: undefined;
26747
26747
  }, {}, {
26748
26748
  length: number | undefined;
26749
- $type: "pending" | "none" | "sent" | "baseline" | "stale" | "skipped" | "suppressed";
26749
+ $type: "none" | "baseline" | "stale" | "pending" | "sent" | "skipped" | "suppressed";
26750
26750
  }>;
26751
26751
  alertStateAt: drizzle_orm_sqlite_core.SQLiteColumn<{
26752
26752
  name: "alert_state_at";
@@ -27992,7 +27992,7 @@ declare const adsOperationSteps: drizzle_orm_sqlite_core.SQLiteTableWithColumns<
27992
27992
  tableName: "ads_operation_steps";
27993
27993
  dataType: "string";
27994
27994
  columnType: "SQLiteText";
27995
- data: "unknown" | "failed" | "pending" | "active" | "executing" | "rollback_executing" | "rolled_back" | "rollback_failed";
27995
+ data: "unknown" | "active" | "failed" | "pending" | "executing" | "rollback_executing" | "rolled_back" | "rollback_failed";
27996
27996
  driverParam: string;
27997
27997
  notNull: true;
27998
27998
  hasDefault: false;
@@ -28005,7 +28005,7 @@ declare const adsOperationSteps: drizzle_orm_sqlite_core.SQLiteTableWithColumns<
28005
28005
  generated: undefined;
28006
28006
  }, {}, {
28007
28007
  length: number | undefined;
28008
- $type: "unknown" | "failed" | "pending" | "active" | "executing" | "rollback_executing" | "rolled_back" | "rollback_failed";
28008
+ $type: "unknown" | "active" | "failed" | "pending" | "executing" | "rollback_executing" | "rolled_back" | "rollback_failed";
28009
28009
  }>;
28010
28010
  providerUpdatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
28011
28011
  name: "provider_updated_at";
@@ -29312,7 +29312,7 @@ declare const googleAdsConnections: drizzle_orm_sqlite_core.SQLiteTableWithColum
29312
29312
  tableName: "google_ads_connections";
29313
29313
  dataType: "string";
29314
29314
  columnType: "SQLiteText";
29315
- data: "unknown" | "canceled" | "enabled" | "suspended" | "closed" | "unspecified";
29315
+ data: "unknown" | "enabled" | "suspended" | "closed" | "canceled" | "unspecified";
29316
29316
  driverParam: string;
29317
29317
  notNull: false;
29318
29318
  hasDefault: false;
@@ -29325,7 +29325,7 @@ declare const googleAdsConnections: drizzle_orm_sqlite_core.SQLiteTableWithColum
29325
29325
  generated: undefined;
29326
29326
  }, {}, {
29327
29327
  length: number | undefined;
29328
- $type: "unknown" | "canceled" | "enabled" | "suspended" | "closed" | "unspecified";
29328
+ $type: "unknown" | "enabled" | "suspended" | "closed" | "canceled" | "unspecified";
29329
29329
  }>;
29330
29330
  scopes: drizzle_orm_sqlite_core.SQLiteColumn<{
29331
29331
  name: "scopes";
@@ -30272,7 +30272,7 @@ declare const googleAdsRawSnapshots: drizzle_orm_sqlite_core.SQLiteTableWithColu
30272
30272
  hidden: boolean;
30273
30273
  testAccount: boolean;
30274
30274
  level: number;
30275
- status: "unknown" | "canceled" | "enabled" | "suspended" | "closed" | "unspecified";
30275
+ status: "unknown" | "enabled" | "suspended" | "closed" | "canceled" | "unspecified";
30276
30276
  }[];
30277
30277
  totalAccessible: number;
30278
30278
  truncated: boolean;
@@ -30292,7 +30292,7 @@ declare const googleAdsRawSnapshots: drizzle_orm_sqlite_core.SQLiteTableWithColu
30292
30292
  id: string;
30293
30293
  resourceName: string;
30294
30294
  name: string;
30295
- status: "unknown" | "enabled" | "paused" | "removed";
30295
+ status: "unknown" | "enabled" | "removed" | "paused";
30296
30296
  advertisingChannelType: string | null;
30297
30297
  biddingStrategyType: string | null;
30298
30298
  }[];
@@ -30300,7 +30300,7 @@ declare const googleAdsRawSnapshots: drizzle_orm_sqlite_core.SQLiteTableWithColu
30300
30300
  id: string;
30301
30301
  resourceName: string;
30302
30302
  name: string;
30303
- status: "unknown" | "enabled" | "hidden" | "removed";
30303
+ status: "unknown" | "enabled" | "removed" | "hidden";
30304
30304
  category: string;
30305
30305
  origin: string;
30306
30306
  primaryForGoal: boolean;
@@ -30324,7 +30324,7 @@ declare const googleAdsRawSnapshots: drizzle_orm_sqlite_core.SQLiteTableWithColu
30324
30324
  }[];
30325
30325
  campaignGoalConfigurations: {
30326
30326
  campaignId: string;
30327
- goalConfigLevel: "campaign" | "customer";
30327
+ goalConfigLevel: "customer" | "campaign";
30328
30328
  customGoalId: string | null;
30329
30329
  }[];
30330
30330
  campaignConversionGoalsComplete?: boolean | undefined;
@@ -30375,7 +30375,7 @@ declare const googleAdsRawSnapshots: drizzle_orm_sqlite_core.SQLiteTableWithColu
30375
30375
  hidden: boolean;
30376
30376
  testAccount: boolean;
30377
30377
  level: number;
30378
- status: "unknown" | "canceled" | "enabled" | "suspended" | "closed" | "unspecified";
30378
+ status: "unknown" | "enabled" | "suspended" | "closed" | "canceled" | "unspecified";
30379
30379
  }[];
30380
30380
  totalAccessible: number;
30381
30381
  truncated: boolean;
@@ -30395,7 +30395,7 @@ declare const googleAdsRawSnapshots: drizzle_orm_sqlite_core.SQLiteTableWithColu
30395
30395
  id: string;
30396
30396
  resourceName: string;
30397
30397
  name: string;
30398
- status: "unknown" | "enabled" | "paused" | "removed";
30398
+ status: "unknown" | "enabled" | "removed" | "paused";
30399
30399
  advertisingChannelType: string | null;
30400
30400
  biddingStrategyType: string | null;
30401
30401
  }[];
@@ -30403,7 +30403,7 @@ declare const googleAdsRawSnapshots: drizzle_orm_sqlite_core.SQLiteTableWithColu
30403
30403
  id: string;
30404
30404
  resourceName: string;
30405
30405
  name: string;
30406
- status: "unknown" | "enabled" | "hidden" | "removed";
30406
+ status: "unknown" | "enabled" | "removed" | "hidden";
30407
30407
  category: string;
30408
30408
  origin: string;
30409
30409
  primaryForGoal: boolean;
@@ -30427,7 +30427,7 @@ declare const googleAdsRawSnapshots: drizzle_orm_sqlite_core.SQLiteTableWithColu
30427
30427
  }[];
30428
30428
  campaignGoalConfigurations: {
30429
30429
  campaignId: string;
30430
- goalConfigLevel: "campaign" | "customer";
30430
+ goalConfigLevel: "customer" | "campaign";
30431
30431
  customGoalId: string | null;
30432
30432
  }[];
30433
30433
  campaignConversionGoalsComplete?: boolean | undefined;
@@ -30584,7 +30584,7 @@ declare const gtmRawSnapshots: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
30584
30584
  tableName: "gtm_raw_snapshots";
30585
30585
  dataType: "string";
30586
30586
  columnType: "SQLiteText";
30587
- data: "accounts" | "container" | "live" | "draft";
30587
+ data: "live" | "draft" | "accounts" | "container";
30588
30588
  driverParam: string;
30589
30589
  notNull: true;
30590
30590
  hasDefault: false;
@@ -30597,7 +30597,7 @@ declare const gtmRawSnapshots: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
30597
30597
  generated: undefined;
30598
30598
  }, {}, {
30599
30599
  length: number | undefined;
30600
- $type: "accounts" | "container" | "live" | "draft";
30600
+ $type: "live" | "draft" | "accounts" | "container";
30601
30601
  }>;
30602
30602
  accountId: drizzle_orm_sqlite_core.SQLiteColumn<{
30603
30603
  name: "account_id";
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  createGoogleMarketingCredentialStore,
4
4
  createGoogleMarketingRuntime,
5
5
  createServer
6
- } from "./chunk-2SY2FYFW.js";
6
+ } from "./chunk-RHO7UNXA.js";
7
7
  import "./chunk-R4AFXPM4.js";
8
8
  import "./chunk-VCTP2RG6.js";
9
9
  import "./chunk-MARVEIWH.js";
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  buildSetupState,
9
9
  queueServeHandoff
10
- } from "./chunk-5P7DSHNK.js";
10
+ } from "./chunk-F5XONXGH.js";
11
11
  import "./chunk-VJWDBFSL.js";
12
12
  import "./chunk-VMCVLESK.js";
13
13
  import "./chunk-VF7XGX2I.js";
@@ -9,7 +9,7 @@ import {
9
9
  allowsKeylessFirstRunSetup,
10
10
  createServer,
11
11
  waitForServerRuntimeStartup
12
- } from "./chunk-2SY2FYFW.js";
12
+ } from "./chunk-RHO7UNXA.js";
13
13
  import "./chunk-R4AFXPM4.js";
14
14
  import "./chunk-VCTP2RG6.js";
15
15
  import "./chunk-MARVEIWH.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canonry/canonry",
3
- "version": "7.54.0",
3
+ "version": "7.55.0",
4
4
  "type": "module",
5
5
  "description": "Self-hosted AI visibility (AEO) platform: track how ChatGPT, Claude, Gemini, and Perplexity cite your domain, join it with Search Console, GA4, server-side traffic, and paid media, and fix what you find through agent tools (CLI, REST, MCP). Local SQLite.",
6
6
  "keywords": [