@karakeep/cli 0.29.1 → 0.30.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.
Files changed (2) hide show
  1. package/dist/index.mjs +8 -3
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -15552,6 +15552,7 @@ const zSortOrder = z.enum(["asc", "desc", "relevance"]);
15552
15552
  const zAssetTypesSchema = z.enum([
15553
15553
  "linkHtmlContent",
15554
15554
  "screenshot",
15555
+ "pdf",
15555
15556
  "assetScreenshot",
15556
15557
  "bannerImage",
15557
15558
  "fullPageArchive",
@@ -15559,6 +15560,7 @@ const zAssetTypesSchema = z.enum([
15559
15560
  "bookmarkAsset",
15560
15561
  "precrawledArchive",
15561
15562
  "userUploaded",
15563
+ "avatar",
15562
15564
  "unknown"
15563
15565
  ]);
15564
15566
  const zAssetSchema = z.object({
@@ -15577,6 +15579,7 @@ const zBookmarkedLinkSchema = z.object({
15577
15579
  imageUrl: z.string().nullish(),
15578
15580
  imageAssetId: z.string().nullish(),
15579
15581
  screenshotAssetId: z.string().nullish(),
15582
+ pdfAssetId: z.string().nullish(),
15580
15583
  fullPageArchiveAssetId: z.string().nullish(),
15581
15584
  precrawledArchiveAssetId: z.string().nullish(),
15582
15585
  videoAssetId: z.string().nullish(),
@@ -15584,6 +15587,7 @@ const zBookmarkedLinkSchema = z.object({
15584
15587
  htmlContent: z.string().nullish(),
15585
15588
  contentAssetId: z.string().nullish(),
15586
15589
  crawledAt: z.date().nullish(),
15590
+ crawlStatus: z.enum(["success", "failure", "pending"]).nullish(),
15587
15591
  author: z.string().nullish(),
15588
15592
  publisher: z.string().nullish(),
15589
15593
  datePublished: z.date().nullish(),
@@ -16836,7 +16840,8 @@ async function migrateBookmarks(src2, dest, opts) {
16836
16840
  note: b.note ?? void 0,
16837
16841
  summary: b.summary ?? void 0,
16838
16842
  createdAt: b.createdAt,
16839
- crawlPriority: "low"
16843
+ crawlPriority: "low",
16844
+ source: b.source === null ? void 0 : b.source
16840
16845
  };
16841
16846
  let createdId = null;
16842
16847
  switch (b.content.type) {
@@ -17301,7 +17306,7 @@ async function wipeTags(api2) {
17301
17306
  throw error2;
17302
17307
  }
17303
17308
  }
17304
- const __vite_import_meta_env__ = { "BASE_URL": "/", "CLI_VERSION": "0.29.1", "DEV": false, "MODE": "production", "PROD": true, "SSR": true };
17309
+ const __vite_import_meta_env__ = { "BASE_URL": "/", "CLI_VERSION": "0.30.0", "DEV": false, "MODE": "production", "PROD": true, "SSR": true };
17305
17310
  const program = new Command().name("karakeep").description("A CLI interface to interact with the karakeep api").addOption(
17306
17311
  new Option("--api-key <key>", "the API key to interact with the API").makeOptionMandatory(true).env("KARAKEEP_API_KEY")
17307
17312
  ).addOption(
@@ -17310,7 +17315,7 @@ const program = new Command().name("karakeep").description("A CLI interface to i
17310
17315
  "the address of the server to connect to"
17311
17316
  ).makeOptionMandatory(true).env("KARAKEEP_SERVER_ADDR")
17312
17317
  ).addOption(new Option("--json", "to output the result as JSON")).version(
17313
- __vite_import_meta_env__ && "CLI_VERSION" in __vite_import_meta_env__ ? "0.29.1" : "0.0.0"
17318
+ __vite_import_meta_env__ && "CLI_VERSION" in __vite_import_meta_env__ ? "0.30.0" : "0.0.0"
17314
17319
  );
17315
17320
  program.addCommand(adminCmd);
17316
17321
  program.addCommand(bookmarkCmd);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@karakeep/cli",
4
- "version": "0.29.1",
4
+ "version": "0.30.0",
5
5
  "description": "Command Line Interface (CLI) for Karakeep",
6
6
  "license": "GNU Affero General Public License version 3",
7
7
  "type": "module",