@llml-browser/types
Version:
TypeScript types and schemas for the @llml-browser API
54 lines (52 loc) • 2.18 kB
JavaScript
;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/services/link/index.ts
var link_exports = {};
__export(link_exports, {
ExtractedLinksSchema: () => ExtractedLinksSchema,
LinkExtractionOptionsSchema: () => LinkExtractionOptionsSchema
});
module.exports = __toCommonJS(link_exports);
// src/services/link/types.ts
var import_zod = require("zod");
var LinkExtractionOptionsSchema = import_zod.z.object({
includeExternal: import_zod.z.boolean().optional(),
// Include links from other domains
includeMedia: import_zod.z.boolean().optional(),
// Include media files (images, videos, docs)
excludePatterns: import_zod.z.array(import_zod.z.string()).optional(),
// Regex patterns to exclude URLs
removeQueryParams: import_zod.z.boolean().optional()
// Remove query parameters from URLs
}).strict();
var ExtractedLinksSchema = import_zod.z.object({
internal: import_zod.z.array(import_zod.z.string()).optional(),
external: import_zod.z.array(import_zod.z.string()).optional(),
media: import_zod.z.object({
images: import_zod.z.array(import_zod.z.string()).optional(),
videos: import_zod.z.array(import_zod.z.string()).optional(),
documents: import_zod.z.array(import_zod.z.string()).optional()
}).optional()
});
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
ExtractedLinksSchema,
LinkExtractionOptionsSchema
});
//# sourceMappingURL=link.js.map