@5ss/ai-tools 2.11.2 → 2.11.4
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.
- package/CHANGELOG.md +4 -0
- package/README.md +3 -10
- package/dist/{bedrock-agentcore-browser-a_qOs-NR.js → bedrock-agentcore-browser-o_oqSPMK.js} +2 -2
- package/dist/{bedrock-agentcore-browser-a_qOs-NR.js.map → bedrock-agentcore-browser-o_oqSPMK.js.map} +1 -1
- package/dist/{bedrock-agentcore-code-interpreter-MWK-8RhA.js → bedrock-agentcore-code-interpreter-D4ERRFj1.js} +2 -2
- package/dist/{bedrock-agentcore-code-interpreter-MWK-8RhA.js.map → bedrock-agentcore-code-interpreter-D4ERRFj1.js.map} +1 -1
- package/dist/{cloudflare-browser-B6Yolpin.js → cloudflare-browser-nLJdH5nG.js} +3 -3
- package/dist/{cloudflare-browser-B6Yolpin.js.map → cloudflare-browser-nLJdH5nG.js.map} +1 -1
- package/dist/{cloudflare-email-Dy0KHeDf.js → cloudflare-email-CSRq8mRd.js} +2 -2
- package/dist/{cloudflare-email-Dy0KHeDf.js.map → cloudflare-email-CSRq8mRd.js.map} +1 -1
- package/dist/{cloudflare-sandbox-Dp_uNaqW.js → cloudflare-sandbox-Be7SeS4-.js} +3 -3
- package/dist/{cloudflare-sandbox-Dp_uNaqW.js.map → cloudflare-sandbox-Be7SeS4-.js.map} +1 -1
- package/dist/content-type-E4_Qdoa0.js +19 -0
- package/dist/{content-type-CORxaxcv.js.map → content-type-E4_Qdoa0.js.map} +1 -1
- package/dist/core/index.js +2 -6
- package/dist/core/index.js.map +1 -1
- package/dist/{define-CvpJ_pNP.js → define-ieoksEQ0.js} +1 -6
- package/dist/define-ieoksEQ0.js.map +1 -0
- package/dist/{eventbridge-scheduler-Bh6GqZY2.js → eventbridge-scheduler-BhQaReAz.js} +2 -2
- package/dist/{eventbridge-scheduler-Bh6GqZY2.js.map → eventbridge-scheduler-BhQaReAz.js.map} +1 -1
- package/dist/http/index.d.ts +1 -1
- package/dist/{http-service-T7E5UjP8.d.ts → http-service-CerzWwQO.d.ts} +3 -2
- package/dist/http-service-CerzWwQO.d.ts.map +1 -0
- package/dist/http-service-DDNCO1s4.js.map +1 -1
- package/dist/{client-CCKGsTeI.js → imessage-CofjmONG.js} +152 -2
- package/dist/imessage-CofjmONG.js.map +1 -0
- package/dist/{index-Cuh6eMWc.d.ts → index-9oSRRNdR.d.ts} +2 -2
- package/dist/{index-Cuh6eMWc.d.ts.map → index-9oSRRNdR.d.ts.map} +1 -1
- package/dist/{index-zK1ZwS4m.d.ts → index-ByHp3nZm.d.ts} +2 -2
- package/dist/{index-zK1ZwS4m.d.ts.map → index-ByHp3nZm.d.ts.map} +1 -1
- package/dist/{index-BU4gmYO8.d.ts → index-C-Cuh9it.d.ts} +2 -2
- package/dist/{index-BU4gmYO8.d.ts.map → index-C-Cuh9it.d.ts.map} +1 -1
- package/dist/index-CZX5OeOF.d.ts.map +1 -1
- package/dist/{index-CdFmEfZO.d.ts → index-CtfpOZWu.d.ts} +2 -2
- package/dist/{index-CdFmEfZO.d.ts.map → index-CtfpOZWu.d.ts.map} +1 -1
- package/dist/{index-n8JTpNf1.d.ts → index-DngnGGiS.d.ts} +2 -2
- package/dist/{index-n8JTpNf1.d.ts.map → index-DngnGGiS.d.ts.map} +1 -1
- package/dist/{index-DuOGj7vc.d.ts → index-DsTt2EbS.d.ts} +2 -2
- package/dist/{index-DuOGj7vc.d.ts.map → index-DsTt2EbS.d.ts.map} +1 -1
- package/dist/{index-pwW1OsOx.d.ts → index-Y8p8bsWU.d.ts} +2 -2
- package/dist/{index-pwW1OsOx.d.ts.map → index-Y8p8bsWU.d.ts.map} +1 -1
- package/dist/{mastra-vector-Dhc6XZ8l.js → mastra-vector-B8HjvdMT.js} +2 -2
- package/dist/{mastra-vector-Dhc6XZ8l.js.map → mastra-vector-B8HjvdMT.js.map} +1 -1
- package/dist/modules/artifacts/index.d.ts +1 -1
- package/dist/modules/artifacts/index.js +3 -3
- package/dist/modules/browser/index.d.ts +2 -2
- package/dist/modules/browser/index.js +3 -3
- package/dist/modules/calendar/index.js +1 -1
- package/dist/modules/code-sandbox/index.js +3 -3
- package/dist/modules/content-type/index.js +2 -2
- package/dist/modules/crypto/index.js +1 -1
- package/dist/modules/document-extract/index.d.ts +1 -1
- package/dist/modules/document-extract/index.js +2 -2
- package/dist/modules/document-render/index.d.ts +21 -30
- package/dist/modules/document-render/index.d.ts.map +1 -1
- package/dist/modules/document-render/index.js +11 -28
- package/dist/modules/document-render/index.js.map +1 -1
- package/dist/modules/email/index.d.ts +21 -3
- package/dist/modules/email/index.d.ts.map +1 -1
- package/dist/modules/email/index.js +3 -3
- package/dist/modules/email-message/index.js +1 -1
- package/dist/modules/files/index.js +2 -2
- package/dist/modules/image/index.d.ts +4 -1
- package/dist/modules/image/index.d.ts.map +1 -1
- package/dist/modules/image/index.js +25 -4
- package/dist/modules/image/index.js.map +1 -1
- package/dist/modules/messaging/index.d.ts +1 -1
- package/dist/modules/messaging/index.js +7 -7
- package/dist/modules/messaging/index.js.map +1 -1
- package/dist/modules/queue/index.d.ts +1 -1
- package/dist/modules/queue/index.js +2 -2
- package/dist/modules/rag/index.d.ts +1 -1
- package/dist/modules/rag/index.js +2 -2
- package/dist/modules/scheduler/index.d.ts +2 -2
- package/dist/modules/scheduler/index.js +2 -2
- package/dist/modules/skills/index.js +1 -1
- package/dist/modules/tasks/index.js +1 -1
- package/dist/modules/vector-store/index.js +1 -1
- package/dist/modules/web-fetch/index.js +1 -1
- package/dist/{pinecone-umY4t6OF.js → pinecone-CNnCFmix.js} +2 -2
- package/dist/{pinecone-umY4t6OF.js.map → pinecone-CNnCFmix.js.map} +1 -1
- package/dist/{qdrant-DMp4NhKR.js → qdrant-R_FIcG9d.js} +2 -2
- package/dist/{qdrant-DMp4NhKR.js.map → qdrant-R_FIcG9d.js.map} +1 -1
- package/dist/{resend-BAC38_dA.js → resend-Bu0NFO3h.js} +2 -2
- package/dist/{resend-BAC38_dA.js.map → resend-Bu0NFO3h.js.map} +1 -1
- package/dist/{s3-CsOaPWMP.js → s3-Dj7Teh-A.js} +2 -2
- package/dist/{s3-CsOaPWMP.js.map → s3-Dj7Teh-A.js.map} +1 -1
- package/dist/{slack-Di5BBNpt.js → slack-AjJDNnXJ.js} +2 -2
- package/dist/{slack-Di5BBNpt.js.map → slack-AjJDNnXJ.js.map} +1 -1
- package/dist/{sqs-DCwS1i2N.js → sqs-CjyXjasF.js} +2 -2
- package/dist/{sqs-DCwS1i2N.js.map → sqs-CjyXjasF.js.map} +1 -1
- package/dist/{supabase-vector-Dpp9mmJR.js → supabase-vector-BNoJZuft.js} +2 -2
- package/dist/{supabase-vector-Dpp9mmJR.js.map → supabase-vector-BNoJZuft.js.map} +1 -1
- package/dist/{teams-DYAHNb39.js → teams-CvxYLAi5.js} +2 -2
- package/dist/{teams-DYAHNb39.js.map → teams-CvxYLAi5.js.map} +1 -1
- package/dist/{telegram-DDXWzkfL.js → telegram-B_-Jljk3.js} +2 -2
- package/dist/{telegram-DDXWzkfL.js.map → telegram-B_-Jljk3.js.map} +1 -1
- package/dist/{textract-CPLiB22H.js → textract-CAfnGvua.js} +3 -3
- package/dist/{textract-CPLiB22H.js.map → textract-CAfnGvua.js.map} +1 -1
- package/dist/{vector-store-C3nEO80e.js → vector-store-DDiu3XPg.js} +6 -6
- package/dist/{vector-store-C3nEO80e.js.map → vector-store-DDiu3XPg.js.map} +1 -1
- package/dist/vendors/amazon-sp-api/index.d.ts +267 -18
- package/dist/vendors/amazon-sp-api/index.d.ts.map +1 -1
- package/dist/vendors/amazon-sp-api/index.js +821 -212
- package/dist/vendors/amazon-sp-api/index.js.map +1 -1
- package/dist/vendors/bedrock-agentcore-browser/index.d.ts +1 -1
- package/dist/vendors/bedrock-agentcore-browser/index.js +1 -1
- package/dist/vendors/bedrock-agentcore-code-interpreter/index.d.ts +1 -1
- package/dist/vendors/bedrock-agentcore-code-interpreter/index.js +1 -1
- package/dist/vendors/cloudflare-browser/index.d.ts +1 -1
- package/dist/vendors/cloudflare-browser/index.js +1 -1
- package/dist/vendors/cloudflare-email/index.d.ts +1 -1
- package/dist/vendors/cloudflare-email/index.js +1 -1
- package/dist/vendors/cloudflare-sandbox/index.d.ts +1 -1
- package/dist/vendors/cloudflare-sandbox/index.js +1 -1
- package/dist/vendors/eventbridge-scheduler/index.d.ts +1 -1
- package/dist/vendors/eventbridge-scheduler/index.js +1 -1
- package/dist/vendors/imessage/index.js +1 -2
- package/dist/vendors/katana/index.d.ts +371 -2
- package/dist/vendors/katana/index.d.ts.map +1 -1
- package/dist/vendors/katana/index.js +541 -199
- package/dist/vendors/katana/index.js.map +1 -1
- package/dist/vendors/mastra-vector/index.js +1 -1
- package/dist/vendors/pinecone/index.d.ts +1 -1
- package/dist/vendors/pinecone/index.js +1 -1
- package/dist/vendors/qdrant/index.d.ts +1 -1
- package/dist/vendors/qdrant/index.js +1 -1
- package/dist/vendors/resend/index.d.ts +1 -1
- package/dist/vendors/resend/index.js +1 -1
- package/dist/vendors/s3/index.d.ts +1 -1
- package/dist/vendors/s3/index.js +1 -1
- package/dist/vendors/slack/index.d.ts +1 -1
- package/dist/vendors/slack/index.js +1 -1
- package/dist/vendors/sqs/index.d.ts +1 -1
- package/dist/vendors/sqs/index.js +1 -1
- package/dist/vendors/supabase-vector/index.d.ts +1 -1
- package/dist/vendors/supabase-vector/index.js +1 -1
- package/dist/vendors/teams/index.d.ts +1 -1
- package/dist/vendors/teams/index.js +1 -1
- package/dist/vendors/telegram/index.d.ts +1 -1
- package/dist/vendors/telegram/index.js +1 -1
- package/dist/vendors/textract/index.d.ts +1 -1
- package/dist/vendors/textract/index.js +1 -1
- package/dist/vendors/woocommerce/index.d.ts +1 -1
- package/dist/vendors/woocommerce/index.js +1 -1
- package/logos/README.md +0 -4
- package/logos/pack-logos.json +0 -5
- package/package.json +4 -38
- package/dist/artifacts-O8g-40Pw.js +0 -404
- package/dist/artifacts-O8g-40Pw.js.map +0 -1
- package/dist/batch-BMM5dXqL.d.ts +0 -22
- package/dist/batch-BMM5dXqL.d.ts.map +0 -1
- package/dist/client-CCKGsTeI.js.map +0 -1
- package/dist/content-type-CORxaxcv.js +0 -49
- package/dist/define-CvpJ_pNP.js.map +0 -1
- package/dist/gotenberg-NuJjxyln.js +0 -291
- package/dist/gotenberg-NuJjxyln.js.map +0 -1
- package/dist/http-service-T7E5UjP8.d.ts.map +0 -1
- package/dist/imessage-BSAFOI8Z.js +0 -154
- package/dist/imessage-BSAFOI8Z.js.map +0 -1
- package/dist/modules/document/index.d.ts +0 -575
- package/dist/modules/document/index.d.ts.map +0 -1
- package/dist/modules/document/index.js +0 -444
- package/dist/modules/document/index.js.map +0 -1
- package/dist/modules/file-convert/index.d.ts +0 -273
- package/dist/modules/file-convert/index.d.ts.map +0 -1
- package/dist/modules/file-convert/index.js +0 -103
- package/dist/modules/file-convert/index.js.map +0 -1
- package/dist/modules/pdf/index.d.ts +0 -287
- package/dist/modules/pdf/index.d.ts.map +0 -1
- package/dist/modules/pdf/index.js +0 -259
- package/dist/modules/pdf/index.js.map +0 -1
- package/dist/modules/presentation/index.d.ts +0 -247
- package/dist/modules/presentation/index.d.ts.map +0 -1
- package/dist/modules/presentation/index.js +0 -12657
- package/dist/modules/presentation/index.js.map +0 -1
- package/dist/object-artifact-store-CMTzCm_G.d.ts +0 -7
- package/dist/object-artifact-store-CMTzCm_G.d.ts.map +0 -1
- package/dist/object-artifact-store-wZ2j9cto.js +0 -28
- package/dist/object-artifact-store-wZ2j9cto.js.map +0 -1
- package/dist/vendors/gotenberg/index.d.ts +0 -306
- package/dist/vendors/gotenberg/index.d.ts.map +0 -1
- package/dist/vendors/gotenberg/index.js +0 -2
- package/logos/document.svg +0 -10
- package/logos/file-convert.svg +0 -9
- package/logos/gotenberg.svg +0 -340
- package/logos/pdf.svg +0 -10
- package/logos/presentation.svg +0 -8
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import "./types-Ccb0DXY9.js";
|
|
2
|
-
import { g as S3ClientOptions } from "./index-zK1ZwS4m.js";
|
|
3
|
-
//#region src/shared/object-artifact-store.d.ts
|
|
4
|
-
type ObjectArtifactStoreOptions = S3ClientOptions;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { ObjectArtifactStoreOptions as t };
|
|
7
|
-
//# sourceMappingURL=object-artifact-store-CMTzCm_G.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"object-artifact-store-CMTzCm_G.d.ts","names":[],"sources":["../src/shared/object-artifact-store.ts"],"mappings":";;;KAMY,6BAA6B"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { t as ToolError } from "./errors-DoSpNHvs.js";
|
|
2
|
-
import { t as artifactRefSchema } from "./artifact-D064mHfK.js";
|
|
3
|
-
import { p as S3Client } from "./s3-CsOaPWMP.js";
|
|
4
|
-
//#region src/shared/object-artifact-store.ts
|
|
5
|
-
var ObjectArtifactStore = class {
|
|
6
|
-
#storage;
|
|
7
|
-
constructor(auth, options = {}) {
|
|
8
|
-
this.#storage = new S3Client(auth, options);
|
|
9
|
-
}
|
|
10
|
-
async read(source, maxBytes) {
|
|
11
|
-
if (source.store !== "object") throw new ToolError("This operation requires an object-store artifact", { code: "bad_input" });
|
|
12
|
-
return this.#storage.getBytes(source.key, { maxBytes });
|
|
13
|
-
}
|
|
14
|
-
async write(key, bytes, mediaType, filename) {
|
|
15
|
-
await this.#storage.putBytes(key, bytes, mediaType);
|
|
16
|
-
return artifactRefSchema.parse({
|
|
17
|
-
store: "object",
|
|
18
|
-
key,
|
|
19
|
-
media_type: mediaType,
|
|
20
|
-
filename,
|
|
21
|
-
byte_length: bytes.byteLength
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
//#endregion
|
|
26
|
-
export { ObjectArtifactStore as t };
|
|
27
|
-
|
|
28
|
-
//# sourceMappingURL=object-artifact-store-wZ2j9cto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"object-artifact-store-wZ2j9cto.js","names":["#storage"],"sources":["../src/shared/object-artifact-store.ts"],"sourcesContent":["import { ToolError } from '../core/errors'\nimport type { ArtifactRef } from './artifact'\nimport { artifactRefSchema } from './artifact'\nimport { S3Client } from '../vendors/s3'\nimport type { S3Auth, S3ClientOptions } from '../vendors/s3'\n\nexport type ObjectArtifactStoreOptions = S3ClientOptions\n\nexport class ObjectArtifactStore {\n\treadonly #storage: S3Client\n\n\tconstructor(auth: S3Auth, options: ObjectArtifactStoreOptions = {}) {\n\t\tthis.#storage = new S3Client(auth, options)\n\t}\n\n\tasync read(source: ArtifactRef, maxBytes: number): Promise<Uint8Array> {\n\t\tif (source.store !== 'object') {\n\t\t\tthrow new ToolError('This operation requires an object-store artifact', { code: 'bad_input' })\n\t\t}\n\t\treturn this.#storage.getBytes(source.key, { maxBytes })\n\t}\n\n\tasync write(key: string, bytes: Uint8Array, mediaType: string, filename: string): Promise<ArtifactRef> {\n\t\tawait this.#storage.putBytes(key, bytes, mediaType)\n\t\treturn artifactRefSchema.parse({\n\t\t\tstore: 'object',\n\t\t\tkey,\n\t\t\tmedia_type: mediaType,\n\t\t\tfilename,\n\t\t\tbyte_length: bytes.byteLength\n\t\t})\n\t}\n}\n"],"mappings":";;;;AAQA,IAAa,sBAAb,MAAiC;CAChC;CAEA,YAAY,MAAc,UAAsC,CAAC,GAAG;EACnE,KAAKA,WAAW,IAAI,SAAS,MAAM,OAAO;CAC3C;CAEA,MAAM,KAAK,QAAqB,UAAuC;EACtE,IAAI,OAAO,UAAU,UACpB,MAAM,IAAI,UAAU,oDAAoD,EAAE,MAAM,YAAY,CAAC;EAE9F,OAAO,KAAKA,SAAS,SAAS,OAAO,KAAK,EAAE,SAAS,CAAC;CACvD;CAEA,MAAM,MAAM,KAAa,OAAmB,WAAmB,UAAwC;EACtG,MAAM,KAAKA,SAAS,SAAS,KAAK,OAAO,SAAS;EAClD,OAAO,kBAAkB,MAAM;GAC9B,OAAO;GACP;GACA,YAAY;GACZ;GACA,aAAa,MAAM;EACpB,CAAC;CACF;AACD"}
|
|
@@ -1,306 +0,0 @@
|
|
|
1
|
-
import { a as ModuleDefinition, o as ToolContext, s as ToolDefinition } from "../../types-Ccb0DXY9.js";
|
|
2
|
-
import "../../index-CZX5OeOF.js";
|
|
3
|
-
import { s as HttpServiceOptions } from "../../http-service-T7E5UjP8.js";
|
|
4
|
-
import { t as BatchResult } from "../../batch-BMM5dXqL.js";
|
|
5
|
-
import { z } from "zod";
|
|
6
|
-
//#region src/vendors/gotenberg/contracts.d.ts
|
|
7
|
-
declare const MAX_HTML_CHARS = 2000000;
|
|
8
|
-
declare const gotenbergAuthSchema: z.ZodObject<{
|
|
9
|
-
gotenberg_base_url: z.ZodURL;
|
|
10
|
-
gotenberg_api_username: z.ZodOptional<z.ZodString>;
|
|
11
|
-
gotenberg_api_password: z.ZodOptional<z.ZodString>;
|
|
12
|
-
storage: z.ZodObject<{
|
|
13
|
-
access_key_id: z.ZodString;
|
|
14
|
-
secret_access_key: z.ZodString;
|
|
15
|
-
region: z.ZodString;
|
|
16
|
-
bucket: z.ZodString;
|
|
17
|
-
endpoint: z.ZodOptional<z.ZodURL>;
|
|
18
|
-
session_token: z.ZodOptional<z.ZodString>;
|
|
19
|
-
key_prefix: z.ZodOptional<z.ZodString>;
|
|
20
|
-
}, z.core.$strip>;
|
|
21
|
-
}, z.core.$strip>;
|
|
22
|
-
type GotenbergAuth = z.infer<typeof gotenbergAuthSchema>;
|
|
23
|
-
declare const gotenbergViewportSchema: z.ZodObject<{
|
|
24
|
-
width: z.ZodInt;
|
|
25
|
-
height: z.ZodInt;
|
|
26
|
-
device_scale_factor: z.ZodOptional<z.ZodNumber>;
|
|
27
|
-
}, z.core.$strip>;
|
|
28
|
-
declare const gotenbergRenderSourceSchema: z.ZodObject<{
|
|
29
|
-
html: z.ZodOptional<z.ZodString>;
|
|
30
|
-
url: z.ZodOptional<z.ZodURL>;
|
|
31
|
-
}, z.core.$strip>;
|
|
32
|
-
declare const gotenbergRenderPdfInputSchema: z.ZodObject<{
|
|
33
|
-
source: z.ZodObject<{
|
|
34
|
-
html: z.ZodOptional<z.ZodString>;
|
|
35
|
-
url: z.ZodOptional<z.ZodURL>;
|
|
36
|
-
}, z.core.$strip>;
|
|
37
|
-
output_key: z.ZodOptional<z.ZodString>;
|
|
38
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
39
|
-
}, z.core.$strip>;
|
|
40
|
-
declare const gotenbergRenderScreenshotInputSchema: z.ZodObject<{
|
|
41
|
-
source: z.ZodObject<{
|
|
42
|
-
html: z.ZodOptional<z.ZodString>;
|
|
43
|
-
url: z.ZodOptional<z.ZodURL>;
|
|
44
|
-
}, z.core.$strip>;
|
|
45
|
-
output_key: z.ZodOptional<z.ZodString>;
|
|
46
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
47
|
-
viewport: z.ZodOptional<z.ZodObject<{
|
|
48
|
-
width: z.ZodInt;
|
|
49
|
-
height: z.ZodInt;
|
|
50
|
-
device_scale_factor: z.ZodOptional<z.ZodNumber>;
|
|
51
|
-
}, z.core.$strip>>;
|
|
52
|
-
}, z.core.$strip>;
|
|
53
|
-
declare const gotenbergRenderOutputSchema: z.ZodObject<{
|
|
54
|
-
result: z.ZodObject<{
|
|
55
|
-
store: z.ZodEnum<{
|
|
56
|
-
host: "host";
|
|
57
|
-
object: "object";
|
|
58
|
-
}>;
|
|
59
|
-
key: z.ZodString;
|
|
60
|
-
media_type: z.ZodOptional<z.ZodString>;
|
|
61
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
62
|
-
byte_length: z.ZodOptional<z.ZodInt>;
|
|
63
|
-
}, z.core.$strip>;
|
|
64
|
-
kind: z.ZodEnum<{
|
|
65
|
-
pdf: "pdf";
|
|
66
|
-
screenshot: "screenshot";
|
|
67
|
-
}>;
|
|
68
|
-
}, z.core.$strip>;
|
|
69
|
-
/** Office document → PDF via LibreOffice (not HTML print). */
|
|
70
|
-
declare const gotenbergConvertPathSchema: z.ZodEnum<{
|
|
71
|
-
"office-to-pdf": "office-to-pdf";
|
|
72
|
-
}>;
|
|
73
|
-
declare const gotenbergConvertInputSchema: z.ZodObject<{
|
|
74
|
-
source: z.ZodObject<{
|
|
75
|
-
store: z.ZodEnum<{
|
|
76
|
-
host: "host";
|
|
77
|
-
object: "object";
|
|
78
|
-
}>;
|
|
79
|
-
key: z.ZodString;
|
|
80
|
-
media_type: z.ZodOptional<z.ZodString>;
|
|
81
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
82
|
-
byte_length: z.ZodOptional<z.ZodInt>;
|
|
83
|
-
}, z.core.$strip>;
|
|
84
|
-
path: z.ZodDefault<z.ZodEnum<{
|
|
85
|
-
"office-to-pdf": "office-to-pdf";
|
|
86
|
-
}>>;
|
|
87
|
-
output_key: z.ZodOptional<z.ZodString>;
|
|
88
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
89
|
-
}, z.core.$strip>;
|
|
90
|
-
declare const gotenbergConvertOutputSchema: z.ZodObject<{
|
|
91
|
-
source: z.ZodObject<{
|
|
92
|
-
store: z.ZodEnum<{
|
|
93
|
-
host: "host";
|
|
94
|
-
object: "object";
|
|
95
|
-
}>;
|
|
96
|
-
key: z.ZodString;
|
|
97
|
-
media_type: z.ZodOptional<z.ZodString>;
|
|
98
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
99
|
-
byte_length: z.ZodOptional<z.ZodInt>;
|
|
100
|
-
}, z.core.$strip>;
|
|
101
|
-
result: z.ZodObject<{
|
|
102
|
-
store: z.ZodEnum<{
|
|
103
|
-
host: "host";
|
|
104
|
-
object: "object";
|
|
105
|
-
}>;
|
|
106
|
-
key: z.ZodString;
|
|
107
|
-
media_type: z.ZodOptional<z.ZodString>;
|
|
108
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
109
|
-
byte_length: z.ZodOptional<z.ZodInt>;
|
|
110
|
-
}, z.core.$strip>;
|
|
111
|
-
path: z.ZodEnum<{
|
|
112
|
-
"office-to-pdf": "office-to-pdf";
|
|
113
|
-
}>;
|
|
114
|
-
}, z.core.$strip>;
|
|
115
|
-
declare const MAX_BATCH_CONVERT = 10;
|
|
116
|
-
declare const gotenbergConvertBatchInputSchema: z.ZodObject<{
|
|
117
|
-
items: z.ZodArray<z.ZodObject<{
|
|
118
|
-
source: z.ZodObject<{
|
|
119
|
-
store: z.ZodEnum<{
|
|
120
|
-
host: "host";
|
|
121
|
-
object: "object";
|
|
122
|
-
}>;
|
|
123
|
-
key: z.ZodString;
|
|
124
|
-
media_type: z.ZodOptional<z.ZodString>;
|
|
125
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
126
|
-
byte_length: z.ZodOptional<z.ZodInt>;
|
|
127
|
-
}, z.core.$strip>;
|
|
128
|
-
path: z.ZodDefault<z.ZodEnum<{
|
|
129
|
-
"office-to-pdf": "office-to-pdf";
|
|
130
|
-
}>>;
|
|
131
|
-
output_key: z.ZodOptional<z.ZodString>;
|
|
132
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
133
|
-
}, z.core.$strip>>;
|
|
134
|
-
}, z.core.$strip>;
|
|
135
|
-
type GotenbergViewport = z.infer<typeof gotenbergViewportSchema>;
|
|
136
|
-
type GotenbergRenderSource = z.infer<typeof gotenbergRenderSourceSchema>;
|
|
137
|
-
type GotenbergRenderPdfInput = z.infer<typeof gotenbergRenderPdfInputSchema>;
|
|
138
|
-
type GotenbergRenderScreenshotInput = z.infer<typeof gotenbergRenderScreenshotInputSchema>;
|
|
139
|
-
type GotenbergRenderOutput = z.infer<typeof gotenbergRenderOutputSchema>;
|
|
140
|
-
type GotenbergConvertPath = z.infer<typeof gotenbergConvertPathSchema>;
|
|
141
|
-
type GotenbergConvertInput = z.infer<typeof gotenbergConvertInputSchema>;
|
|
142
|
-
type GotenbergConvertOutput = z.infer<typeof gotenbergConvertOutputSchema>;
|
|
143
|
-
type GotenbergConvertBatchInput = z.infer<typeof gotenbergConvertBatchInputSchema>;
|
|
144
|
-
//#endregion
|
|
145
|
-
//#region src/vendors/gotenberg/client.d.ts
|
|
146
|
-
type GotenbergClientOptions = Pick<HttpServiceOptions, 'fetch' | 'signal'>;
|
|
147
|
-
declare class GotenbergClient {
|
|
148
|
-
#private;
|
|
149
|
-
constructor(auth: GotenbergAuth, options?: GotenbergClientOptions);
|
|
150
|
-
static fromContext(ctx: ToolContext): GotenbergClient;
|
|
151
|
-
/** Chromium HTML/URL → PDF; store result in object storage. */
|
|
152
|
-
renderPdf(input: GotenbergRenderPdfInput): Promise<GotenbergRenderOutput>;
|
|
153
|
-
/** Chromium HTML/URL → PNG screenshot; store result in object storage. */
|
|
154
|
-
renderScreenshot(input: GotenbergRenderScreenshotInput): Promise<GotenbergRenderOutput>;
|
|
155
|
-
/**
|
|
156
|
-
* LibreOffice convert: office document in object storage → PDF ArtifactRef.
|
|
157
|
-
* Path: office-to-pdf only (docx/pptx/xlsx/odt/…). Not for HTML layout print.
|
|
158
|
-
*/
|
|
159
|
-
convert(input: GotenbergConvertInput): Promise<GotenbergConvertOutput>;
|
|
160
|
-
convertBatch(input: GotenbergConvertBatchInput): Promise<BatchResult<{
|
|
161
|
-
source: {
|
|
162
|
-
store: "host" | "object";
|
|
163
|
-
key: string;
|
|
164
|
-
media_type?: string | undefined;
|
|
165
|
-
filename?: string | undefined;
|
|
166
|
-
byte_length?: number | undefined;
|
|
167
|
-
};
|
|
168
|
-
result: {
|
|
169
|
-
store: "host" | "object";
|
|
170
|
-
key: string;
|
|
171
|
-
media_type?: string | undefined;
|
|
172
|
-
filename?: string | undefined;
|
|
173
|
-
byte_length?: number | undefined;
|
|
174
|
-
};
|
|
175
|
-
path: "office-to-pdf";
|
|
176
|
-
}>>;
|
|
177
|
-
}
|
|
178
|
-
//#endregion
|
|
179
|
-
//#region src/vendors/gotenberg/module.d.ts
|
|
180
|
-
declare const gotenbergRenderPdfTool: ToolDefinition<{
|
|
181
|
-
source: {
|
|
182
|
-
html?: string | undefined;
|
|
183
|
-
url?: string | undefined;
|
|
184
|
-
};
|
|
185
|
-
output_key?: string | undefined;
|
|
186
|
-
filename?: string | undefined;
|
|
187
|
-
}, {
|
|
188
|
-
result: {
|
|
189
|
-
store: "host" | "object";
|
|
190
|
-
key: string;
|
|
191
|
-
media_type?: string | undefined;
|
|
192
|
-
filename?: string | undefined;
|
|
193
|
-
byte_length?: number | undefined;
|
|
194
|
-
};
|
|
195
|
-
kind: "pdf" | "screenshot";
|
|
196
|
-
}>;
|
|
197
|
-
declare const gotenbergRenderScreenshotTool: ToolDefinition<{
|
|
198
|
-
source: {
|
|
199
|
-
html?: string | undefined;
|
|
200
|
-
url?: string | undefined;
|
|
201
|
-
};
|
|
202
|
-
output_key?: string | undefined;
|
|
203
|
-
filename?: string | undefined;
|
|
204
|
-
viewport?: {
|
|
205
|
-
width: number;
|
|
206
|
-
height: number;
|
|
207
|
-
device_scale_factor?: number | undefined;
|
|
208
|
-
} | undefined;
|
|
209
|
-
}, {
|
|
210
|
-
result: {
|
|
211
|
-
store: "host" | "object";
|
|
212
|
-
key: string;
|
|
213
|
-
media_type?: string | undefined;
|
|
214
|
-
filename?: string | undefined;
|
|
215
|
-
byte_length?: number | undefined;
|
|
216
|
-
};
|
|
217
|
-
kind: "pdf" | "screenshot";
|
|
218
|
-
}>;
|
|
219
|
-
declare const gotenbergConvertTool: ToolDefinition<{
|
|
220
|
-
source: {
|
|
221
|
-
store: "host" | "object";
|
|
222
|
-
key: string;
|
|
223
|
-
media_type?: string | undefined;
|
|
224
|
-
filename?: string | undefined;
|
|
225
|
-
byte_length?: number | undefined;
|
|
226
|
-
};
|
|
227
|
-
path: "office-to-pdf";
|
|
228
|
-
output_key?: string | undefined;
|
|
229
|
-
filename?: string | undefined;
|
|
230
|
-
}, {
|
|
231
|
-
source: {
|
|
232
|
-
store: "host" | "object";
|
|
233
|
-
key: string;
|
|
234
|
-
media_type?: string | undefined;
|
|
235
|
-
filename?: string | undefined;
|
|
236
|
-
byte_length?: number | undefined;
|
|
237
|
-
};
|
|
238
|
-
result: {
|
|
239
|
-
store: "host" | "object";
|
|
240
|
-
key: string;
|
|
241
|
-
media_type?: string | undefined;
|
|
242
|
-
filename?: string | undefined;
|
|
243
|
-
byte_length?: number | undefined;
|
|
244
|
-
};
|
|
245
|
-
path: "office-to-pdf";
|
|
246
|
-
}>;
|
|
247
|
-
declare const gotenbergConvertBatchTool: ToolDefinition<{
|
|
248
|
-
items: {
|
|
249
|
-
source: {
|
|
250
|
-
store: "host" | "object";
|
|
251
|
-
key: string;
|
|
252
|
-
media_type?: string | undefined;
|
|
253
|
-
filename?: string | undefined;
|
|
254
|
-
byte_length?: number | undefined;
|
|
255
|
-
};
|
|
256
|
-
path: "office-to-pdf";
|
|
257
|
-
output_key?: string | undefined;
|
|
258
|
-
filename?: string | undefined;
|
|
259
|
-
}[];
|
|
260
|
-
}, {
|
|
261
|
-
results: {
|
|
262
|
-
index: number;
|
|
263
|
-
ok: boolean;
|
|
264
|
-
value?: {
|
|
265
|
-
source: {
|
|
266
|
-
store: "host" | "object";
|
|
267
|
-
key: string;
|
|
268
|
-
media_type?: string | undefined;
|
|
269
|
-
filename?: string | undefined;
|
|
270
|
-
byte_length?: number | undefined;
|
|
271
|
-
};
|
|
272
|
-
result: {
|
|
273
|
-
store: "host" | "object";
|
|
274
|
-
key: string;
|
|
275
|
-
media_type?: string | undefined;
|
|
276
|
-
filename?: string | undefined;
|
|
277
|
-
byte_length?: number | undefined;
|
|
278
|
-
};
|
|
279
|
-
path: "office-to-pdf";
|
|
280
|
-
} | undefined;
|
|
281
|
-
error?: {
|
|
282
|
-
code: string;
|
|
283
|
-
message: string;
|
|
284
|
-
retryable?: boolean | undefined;
|
|
285
|
-
} | undefined;
|
|
286
|
-
}[];
|
|
287
|
-
succeeded: number;
|
|
288
|
-
failed: number;
|
|
289
|
-
}>;
|
|
290
|
-
declare const gotenbergModule: ModuleDefinition<{
|
|
291
|
-
gotenberg_base_url: string;
|
|
292
|
-
gotenberg_api_username?: string | undefined;
|
|
293
|
-
gotenberg_api_password?: string | undefined;
|
|
294
|
-
storage: {
|
|
295
|
-
access_key_id: string;
|
|
296
|
-
secret_access_key: string;
|
|
297
|
-
region: string;
|
|
298
|
-
bucket: string;
|
|
299
|
-
endpoint?: string | undefined;
|
|
300
|
-
session_token?: string | undefined;
|
|
301
|
-
key_prefix?: string | undefined;
|
|
302
|
-
};
|
|
303
|
-
}>;
|
|
304
|
-
//#endregion
|
|
305
|
-
export { type GotenbergAuth, GotenbergClient, type GotenbergClientOptions, type GotenbergConvertBatchInput, type GotenbergConvertInput, type GotenbergConvertOutput, type GotenbergConvertPath, type GotenbergRenderOutput, type GotenbergRenderPdfInput, type GotenbergRenderScreenshotInput, type GotenbergRenderSource, type GotenbergViewport, MAX_BATCH_CONVERT, MAX_HTML_CHARS, gotenbergAuthSchema, gotenbergConvertBatchInputSchema, gotenbergConvertBatchTool, gotenbergConvertInputSchema, gotenbergConvertOutputSchema, gotenbergConvertPathSchema, gotenbergConvertTool, gotenbergModule, gotenbergRenderOutputSchema, gotenbergRenderPdfInputSchema, gotenbergRenderPdfTool, gotenbergRenderScreenshotInputSchema, gotenbergRenderScreenshotTool, gotenbergRenderSourceSchema, gotenbergViewportSchema };
|
|
306
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/vendors/gotenberg/contracts.ts","../../../src/vendors/gotenberg/client.ts","../../../src/vendors/gotenberg/module.ts"],"mappings":";;;;;;cAKa;cAEA,qBAAmB,EAAA;;;;;;;;;;;;;GAK9B,EAAA,KAAA;KAEU,gBAAgB,EAAE,aAAa;cAE9B,yBAAuB,EAAA;;;;GAIlC,EAAA,KAAA;cAEW,6BAA2B,EAAA;;;GAUrC,EAAA,KAAA;cAEU,+BAA6B,EAAA;;;;;;;GAIxC,EAAA,KAAA;cAEW,sCAAoC,EAAA;;;;;;;;;;;;GAK/C,EAAA,KAAA;cAEW,6BAA2B,EAAA;;;;;;;;;;;;;;;GAGtC,EAAA,KAAA;;cAGW,4BAA0B,EAAA;;;cAE1B,6BAA2B,EAAA;;;;;;;;;;;;;;;;GAStC,EAAA,KAAA;cAEW,8BAA4B,EAAA;;;;;;;;;;;;;;;;;;;;;;;;GAIvC,EAAA,KAAA;cAEW;cAEA,kCAAgC,EAAA;;;;;;;;;;;;;;;;;;GAM3C,EAAA,KAAA;KAEU,oBAAoB,EAAE,aAAa;KACnC,wBAAwB,EAAE,aAAa;KACvC,0BAA0B,EAAE,aAAa;KACzC,iCAAiC,EAAE,aAAa;KAChD,wBAAwB,EAAE,aAAa;KACvC,uBAAuB,EAAE,aAAa;KACtC,wBAAwB,EAAE,aAAa;KACvC,yBAAyB,EAAE,aAAa;KACxC,6BAA6B,EAAE,aAAa;;;KCtD5C,yBAAyB,KAAK;cAE7B;;EAKZ,YAAY,MAAM,eAAe,UAAS;SAuBnC,YAAY,KAAK,cAAc;;EAShC,UAAU,OAAO,0BAA0B,QAAQ;;EAKnD,iBAAiB,OAAO,iCAAiC,QAAQ;;;;;EAQjE,QAAQ,OAAO,wBAAwB,QAAQ;EAsC/C,aAAa,OAAO,6BAA0B,QAA1B;;;;;;;;;;;;;;;;;;;;cC/Gd,wBAAA;;;;;;;;;;;;;;;;;cAYA,+BAAA;;;;;;;;;;;;;;;;;;;;;;cAYA,sBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAYA,2BAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAYA,iBAAA"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { _ as gotenbergRenderSourceSchema, a as gotenbergRenderScreenshotTool, c as MAX_HTML_CHARS, d as gotenbergConvertInputSchema, f as gotenbergConvertOutputSchema, g as gotenbergRenderScreenshotInputSchema, h as gotenbergRenderPdfInputSchema, i as gotenbergRenderPdfTool, l as gotenbergAuthSchema, m as gotenbergRenderOutputSchema, n as gotenbergConvertTool, o as GotenbergClient, p as gotenbergConvertPathSchema, r as gotenbergModule, s as MAX_BATCH_CONVERT, t as gotenbergConvertBatchTool, u as gotenbergConvertBatchInputSchema, v as gotenbergViewportSchema } from "../../gotenberg-NuJjxyln.js";
|
|
2
|
-
export { GotenbergClient, MAX_BATCH_CONVERT, MAX_HTML_CHARS, gotenbergAuthSchema, gotenbergConvertBatchInputSchema, gotenbergConvertBatchTool, gotenbergConvertInputSchema, gotenbergConvertOutputSchema, gotenbergConvertPathSchema, gotenbergConvertTool, gotenbergModule, gotenbergRenderOutputSchema, gotenbergRenderPdfInputSchema, gotenbergRenderPdfTool, gotenbergRenderScreenshotInputSchema, gotenbergRenderScreenshotTool, gotenbergRenderSourceSchema, gotenbergViewportSchema };
|
package/logos/document.svg
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<!-- Lucide icon "file-text" from lucide-static@0.469.0 (ISC) — https://lucide.dev -->
|
|
2
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" color="#000">
|
|
3
|
-
<title>Document</title>
|
|
4
|
-
<style>@media (prefers-color-scheme:dark){:root{color:#fff}}</style>
|
|
5
|
-
<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" />
|
|
6
|
-
<path d="M14 2v4a2 2 0 0 0 2 2h4" />
|
|
7
|
-
<path d="M10 9H8" />
|
|
8
|
-
<path d="M16 13H8" />
|
|
9
|
-
<path d="M16 17H8" />
|
|
10
|
-
</svg>
|
package/logos/file-convert.svg
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<!-- Lucide icon "refresh-cw" from lucide-static@0.469.0 (ISC) — https://lucide.dev -->
|
|
2
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" color="#000">
|
|
3
|
-
<title>File convert</title>
|
|
4
|
-
<style>@media (prefers-color-scheme:dark){:root{color:#fff}}</style>
|
|
5
|
-
<path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" />
|
|
6
|
-
<path d="M21 3v5h-5" />
|
|
7
|
-
<path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" />
|
|
8
|
-
<path d="M8 16H3v5" />
|
|
9
|
-
</svg>
|