@5ss/ai-tools 2.11.1
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 +112 -0
- package/LICENSE +21 -0
- package/README.md +221 -0
- package/dist/ai-sdk/index.d.ts +15 -0
- package/dist/ai-sdk/index.d.ts.map +1 -0
- package/dist/ai-sdk/index.js +24 -0
- package/dist/ai-sdk/index.js.map +1 -0
- package/dist/artifact-D064mHfK.js +44 -0
- package/dist/artifact-D064mHfK.js.map +1 -0
- package/dist/artifacts-O8g-40Pw.js +404 -0
- package/dist/artifacts-O8g-40Pw.js.map +1 -0
- package/dist/aws-json-CecFqzqX.js +23 -0
- package/dist/aws-json-CecFqzqX.js.map +1 -0
- package/dist/aws-service-msttbPrz.js +58 -0
- package/dist/aws-service-msttbPrz.js.map +1 -0
- package/dist/batch-BMM5dXqL.d.ts +22 -0
- package/dist/batch-BMM5dXqL.d.ts.map +1 -0
- package/dist/batch-Co1ujeAW.js +67 -0
- package/dist/batch-Co1ujeAW.js.map +1 -0
- package/dist/bedrock-agentcore-browser-a_qOs-NR.js +182 -0
- package/dist/bedrock-agentcore-browser-a_qOs-NR.js.map +1 -0
- package/dist/bedrock-agentcore-code-interpreter-MWK-8RhA.js +357 -0
- package/dist/bedrock-agentcore-code-interpreter-MWK-8RhA.js.map +1 -0
- package/dist/bytes-BxpimpQx.js +45 -0
- package/dist/bytes-BxpimpQx.js.map +1 -0
- package/dist/client-CCKGsTeI.js +743 -0
- package/dist/client-CCKGsTeI.js.map +1 -0
- package/dist/cloudflare/index.d.ts +37 -0
- package/dist/cloudflare/index.d.ts.map +1 -0
- package/dist/cloudflare/index.js +41 -0
- package/dist/cloudflare/index.js.map +1 -0
- package/dist/cloudflare-browser-B6Yolpin.js +428 -0
- package/dist/cloudflare-browser-B6Yolpin.js.map +1 -0
- package/dist/cloudflare-email-Dy0KHeDf.js +197 -0
- package/dist/cloudflare-email-Dy0KHeDf.js.map +1 -0
- package/dist/cloudflare-sandbox-Dp_uNaqW.js +982 -0
- package/dist/cloudflare-sandbox-Dp_uNaqW.js.map +1 -0
- package/dist/content-type-CORxaxcv.js +49 -0
- package/dist/content-type-CORxaxcv.js.map +1 -0
- package/dist/core/index.d.ts +4 -0
- package/dist/core/index.js +204 -0
- package/dist/core/index.js.map +1 -0
- package/dist/define-CvpJ_pNP.js +115 -0
- package/dist/define-CvpJ_pNP.js.map +1 -0
- package/dist/errors-DoSpNHvs.js +20 -0
- package/dist/errors-DoSpNHvs.js.map +1 -0
- package/dist/errors-aKhko9T1.d.ts +18 -0
- package/dist/errors-aKhko9T1.d.ts.map +1 -0
- package/dist/eventbridge-scheduler-Bh6GqZY2.js +349 -0
- package/dist/eventbridge-scheduler-Bh6GqZY2.js.map +1 -0
- package/dist/framework-context-DVIIY8ZO.js +24 -0
- package/dist/framework-context-DVIIY8ZO.js.map +1 -0
- package/dist/gotenberg-NuJjxyln.js +291 -0
- package/dist/gotenberg-NuJjxyln.js.map +1 -0
- package/dist/http/index.d.ts +47 -0
- package/dist/http/index.d.ts.map +1 -0
- package/dist/http/index.js +3 -0
- package/dist/http-service-DDNCO1s4.js +254 -0
- package/dist/http-service-DDNCO1s4.js.map +1 -0
- package/dist/http-service-T7E5UjP8.d.ts +80 -0
- package/dist/http-service-T7E5UjP8.d.ts.map +1 -0
- package/dist/imessage-BSAFOI8Z.js +154 -0
- package/dist/imessage-BSAFOI8Z.js.map +1 -0
- package/dist/index-BU4gmYO8.d.ts +254 -0
- package/dist/index-BU4gmYO8.d.ts.map +1 -0
- package/dist/index-CCivzmxO.d.ts +188 -0
- package/dist/index-CCivzmxO.d.ts.map +1 -0
- package/dist/index-CLmTrcu5.d.ts +22 -0
- package/dist/index-CLmTrcu5.d.ts.map +1 -0
- package/dist/index-CZX5OeOF.d.ts +235 -0
- package/dist/index-CZX5OeOF.d.ts.map +1 -0
- package/dist/index-CdFmEfZO.d.ts +359 -0
- package/dist/index-CdFmEfZO.d.ts.map +1 -0
- package/dist/index-Cuh6eMWc.d.ts +285 -0
- package/dist/index-Cuh6eMWc.d.ts.map +1 -0
- package/dist/index-DuOGj7vc.d.ts +107 -0
- package/dist/index-DuOGj7vc.d.ts.map +1 -0
- package/dist/index-ccZ1XOHw.d.ts +69 -0
- package/dist/index-ccZ1XOHw.d.ts.map +1 -0
- package/dist/index-n8JTpNf1.d.ts +247 -0
- package/dist/index-n8JTpNf1.d.ts.map +1 -0
- package/dist/index-pwW1OsOx.d.ts +134 -0
- package/dist/index-pwW1OsOx.d.ts.map +1 -0
- package/dist/index-zK1ZwS4m.d.ts +347 -0
- package/dist/index-zK1ZwS4m.d.ts.map +1 -0
- package/dist/limits-hjrO8zUG.js +80 -0
- package/dist/limits-hjrO8zUG.js.map +1 -0
- package/dist/mastra/index.d.ts +14 -0
- package/dist/mastra/index.d.ts.map +1 -0
- package/dist/mastra/index.js +26 -0
- package/dist/mastra/index.js.map +1 -0
- package/dist/mastra-vector-Dhc6XZ8l.js +234 -0
- package/dist/mastra-vector-Dhc6XZ8l.js.map +1 -0
- package/dist/mcp/index.d.ts +80 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +97 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/modules/artifacts/index.d.ts +337 -0
- package/dist/modules/artifacts/index.d.ts.map +1 -0
- package/dist/modules/artifacts/index.js +348 -0
- package/dist/modules/artifacts/index.js.map +1 -0
- package/dist/modules/browser/index.d.ts +516 -0
- package/dist/modules/browser/index.d.ts.map +1 -0
- package/dist/modules/browser/index.js +475 -0
- package/dist/modules/browser/index.js.map +1 -0
- package/dist/modules/calendar/index.d.ts +93 -0
- package/dist/modules/calendar/index.d.ts.map +1 -0
- package/dist/modules/calendar/index.js +131 -0
- package/dist/modules/calendar/index.js.map +1 -0
- package/dist/modules/code-sandbox/index.d.ts +317 -0
- package/dist/modules/code-sandbox/index.d.ts.map +1 -0
- package/dist/modules/code-sandbox/index.js +537 -0
- package/dist/modules/code-sandbox/index.js.map +1 -0
- package/dist/modules/content-type/index.d.ts +22 -0
- package/dist/modules/content-type/index.d.ts.map +1 -0
- package/dist/modules/content-type/index.js +66 -0
- package/dist/modules/content-type/index.js.map +1 -0
- package/dist/modules/crypto/index.d.ts +115 -0
- package/dist/modules/crypto/index.d.ts.map +1 -0
- package/dist/modules/crypto/index.js +139 -0
- package/dist/modules/crypto/index.js.map +1 -0
- package/dist/modules/document/index.d.ts +575 -0
- package/dist/modules/document/index.d.ts.map +1 -0
- package/dist/modules/document/index.js +444 -0
- package/dist/modules/document/index.js.map +1 -0
- package/dist/modules/document-extract/index.d.ts +438 -0
- package/dist/modules/document-extract/index.d.ts.map +1 -0
- package/dist/modules/document-extract/index.js +127 -0
- package/dist/modules/document-extract/index.js.map +1 -0
- package/dist/modules/document-render/index.d.ts +336 -0
- package/dist/modules/document-render/index.d.ts.map +1 -0
- package/dist/modules/document-render/index.js +155 -0
- package/dist/modules/document-render/index.js.map +1 -0
- package/dist/modules/email/index.d.ts +311 -0
- package/dist/modules/email/index.d.ts.map +1 -0
- package/dist/modules/email/index.js +167 -0
- package/dist/modules/email/index.js.map +1 -0
- package/dist/modules/email-message/index.d.ts +95 -0
- package/dist/modules/email-message/index.d.ts.map +1 -0
- package/dist/modules/email-message/index.js +264 -0
- package/dist/modules/email-message/index.js.map +1 -0
- package/dist/modules/file-convert/index.d.ts +273 -0
- package/dist/modules/file-convert/index.d.ts.map +1 -0
- package/dist/modules/file-convert/index.js +103 -0
- package/dist/modules/file-convert/index.js.map +1 -0
- package/dist/modules/files/index.d.ts +452 -0
- package/dist/modules/files/index.d.ts.map +1 -0
- package/dist/modules/files/index.js +733 -0
- package/dist/modules/files/index.js.map +1 -0
- package/dist/modules/image/index.d.ts +342 -0
- package/dist/modules/image/index.d.ts.map +1 -0
- package/dist/modules/image/index.js +281 -0
- package/dist/modules/image/index.js.map +1 -0
- package/dist/modules/messaging/index.d.ts +608 -0
- package/dist/modules/messaging/index.d.ts.map +1 -0
- package/dist/modules/messaging/index.js +1067 -0
- package/dist/modules/messaging/index.js.map +1 -0
- package/dist/modules/pdf/index.d.ts +287 -0
- package/dist/modules/pdf/index.d.ts.map +1 -0
- package/dist/modules/pdf/index.js +259 -0
- package/dist/modules/pdf/index.js.map +1 -0
- package/dist/modules/presentation/index.d.ts +247 -0
- package/dist/modules/presentation/index.d.ts.map +1 -0
- package/dist/modules/presentation/index.js +12657 -0
- package/dist/modules/presentation/index.js.map +1 -0
- package/dist/modules/queue/index.d.ts +129 -0
- package/dist/modules/queue/index.d.ts.map +1 -0
- package/dist/modules/queue/index.js +131 -0
- package/dist/modules/queue/index.js.map +1 -0
- package/dist/modules/rag/index.d.ts +250 -0
- package/dist/modules/rag/index.d.ts.map +1 -0
- package/dist/modules/rag/index.js +366 -0
- package/dist/modules/rag/index.js.map +1 -0
- package/dist/modules/scheduler/index.d.ts +216 -0
- package/dist/modules/scheduler/index.d.ts.map +1 -0
- package/dist/modules/scheduler/index.js +153 -0
- package/dist/modules/scheduler/index.js.map +1 -0
- package/dist/modules/skills/index.d.ts +205 -0
- package/dist/modules/skills/index.d.ts.map +1 -0
- package/dist/modules/skills/index.js +203 -0
- package/dist/modules/skills/index.js.map +1 -0
- package/dist/modules/tasks/index.d.ts +287 -0
- package/dist/modules/tasks/index.d.ts.map +1 -0
- package/dist/modules/tasks/index.js +207 -0
- package/dist/modules/tasks/index.js.map +1 -0
- package/dist/modules/vector-store/index.d.ts +3 -0
- package/dist/modules/vector-store/index.js +3 -0
- package/dist/modules/web-fetch/index.d.ts +99 -0
- package/dist/modules/web-fetch/index.d.ts.map +1 -0
- package/dist/modules/web-fetch/index.js +242 -0
- package/dist/modules/web-fetch/index.js.map +1 -0
- package/dist/object-artifact-store-CMTzCm_G.d.ts +7 -0
- package/dist/object-artifact-store-CMTzCm_G.d.ts.map +1 -0
- package/dist/object-artifact-store-wZ2j9cto.js +28 -0
- package/dist/object-artifact-store-wZ2j9cto.js.map +1 -0
- package/dist/pinecone-umY4t6OF.js +190 -0
- package/dist/pinecone-umY4t6OF.js.map +1 -0
- package/dist/provider-CgDAlg6K.js +34 -0
- package/dist/provider-CgDAlg6K.js.map +1 -0
- package/dist/qdrant-DMp4NhKR.js +253 -0
- package/dist/qdrant-DMp4NhKR.js.map +1 -0
- package/dist/resend-BAC38_dA.js +155 -0
- package/dist/resend-BAC38_dA.js.map +1 -0
- package/dist/s3-CsOaPWMP.js +955 -0
- package/dist/s3-CsOaPWMP.js.map +1 -0
- package/dist/schemas-ChOAhdo9.js +192 -0
- package/dist/schemas-ChOAhdo9.js.map +1 -0
- package/dist/slack-Di5BBNpt.js +1455 -0
- package/dist/slack-Di5BBNpt.js.map +1 -0
- package/dist/sqs-DCwS1i2N.js +225 -0
- package/dist/sqs-DCwS1i2N.js.map +1 -0
- package/dist/supabase-vector-Dpp9mmJR.js +218 -0
- package/dist/supabase-vector-Dpp9mmJR.js.map +1 -0
- package/dist/tanstack/index.d.ts +15 -0
- package/dist/tanstack/index.d.ts.map +1 -0
- package/dist/tanstack/index.js +28 -0
- package/dist/tanstack/index.js.map +1 -0
- package/dist/teams-DYAHNb39.js +835 -0
- package/dist/teams-DYAHNb39.js.map +1 -0
- package/dist/telegram-DDXWzkfL.js +734 -0
- package/dist/telegram-DDXWzkfL.js.map +1 -0
- package/dist/textract-CPLiB22H.js +554 -0
- package/dist/textract-CPLiB22H.js.map +1 -0
- package/dist/transport-B4vn-XiQ.js +157 -0
- package/dist/transport-B4vn-XiQ.js.map +1 -0
- package/dist/transport-i96ACAI_.d.ts +46 -0
- package/dist/transport-i96ACAI_.d.ts.map +1 -0
- package/dist/types-Ccb0DXY9.d.ts +150 -0
- package/dist/types-Ccb0DXY9.d.ts.map +1 -0
- package/dist/unique-EwBH1JPB.js +19 -0
- package/dist/unique-EwBH1JPB.js.map +1 -0
- package/dist/vector-store-C3nEO80e.js +193 -0
- package/dist/vector-store-C3nEO80e.js.map +1 -0
- package/dist/vendors/amazon-sp-api/index.d.ts +526 -0
- package/dist/vendors/amazon-sp-api/index.d.ts.map +1 -0
- package/dist/vendors/amazon-sp-api/index.js +975 -0
- package/dist/vendors/amazon-sp-api/index.js.map +1 -0
- package/dist/vendors/bedrock-agentcore-browser/index.d.ts +2 -0
- package/dist/vendors/bedrock-agentcore-browser/index.js +2 -0
- package/dist/vendors/bedrock-agentcore-code-interpreter/index.d.ts +228 -0
- package/dist/vendors/bedrock-agentcore-code-interpreter/index.d.ts.map +1 -0
- package/dist/vendors/bedrock-agentcore-code-interpreter/index.js +2 -0
- package/dist/vendors/cloudflare-browser/index.d.ts +2 -0
- package/dist/vendors/cloudflare-browser/index.js +2 -0
- package/dist/vendors/cloudflare-email/index.d.ts +260 -0
- package/dist/vendors/cloudflare-email/index.d.ts.map +1 -0
- package/dist/vendors/cloudflare-email/index.js +3 -0
- package/dist/vendors/cloudflare-sandbox/index.d.ts +565 -0
- package/dist/vendors/cloudflare-sandbox/index.d.ts.map +1 -0
- package/dist/vendors/cloudflare-sandbox/index.js +2 -0
- package/dist/vendors/eventbridge-scheduler/index.d.ts +2 -0
- package/dist/vendors/eventbridge-scheduler/index.js +2 -0
- package/dist/vendors/gotenberg/index.d.ts +306 -0
- package/dist/vendors/gotenberg/index.d.ts.map +1 -0
- package/dist/vendors/gotenberg/index.js +2 -0
- package/dist/vendors/imessage/index.d.ts +420 -0
- package/dist/vendors/imessage/index.d.ts.map +1 -0
- package/dist/vendors/imessage/index.js +4 -0
- package/dist/vendors/katana/index.d.ts +1570 -0
- package/dist/vendors/katana/index.d.ts.map +1 -0
- package/dist/vendors/katana/index.js +1639 -0
- package/dist/vendors/katana/index.js.map +1 -0
- package/dist/vendors/mastra-vector/index.d.ts +120 -0
- package/dist/vendors/mastra-vector/index.d.ts.map +1 -0
- package/dist/vendors/mastra-vector/index.js +3 -0
- package/dist/vendors/pinecone/index.d.ts +75 -0
- package/dist/vendors/pinecone/index.d.ts.map +1 -0
- package/dist/vendors/pinecone/index.js +3 -0
- package/dist/vendors/qdrant/index.d.ts +75 -0
- package/dist/vendors/qdrant/index.d.ts.map +1 -0
- package/dist/vendors/qdrant/index.js +3 -0
- package/dist/vendors/resend/index.d.ts +3 -0
- package/dist/vendors/resend/index.js +3 -0
- package/dist/vendors/s3/index.d.ts +2 -0
- package/dist/vendors/s3/index.js +2 -0
- package/dist/vendors/slack/index.d.ts +576 -0
- package/dist/vendors/slack/index.d.ts.map +1 -0
- package/dist/vendors/slack/index.js +3 -0
- package/dist/vendors/sqs/index.d.ts +2 -0
- package/dist/vendors/sqs/index.js +2 -0
- package/dist/vendors/supabase-vector/index.d.ts +89 -0
- package/dist/vendors/supabase-vector/index.d.ts.map +1 -0
- package/dist/vendors/supabase-vector/index.js +3 -0
- package/dist/vendors/teams/index.d.ts +303 -0
- package/dist/vendors/teams/index.d.ts.map +1 -0
- package/dist/vendors/teams/index.js +3 -0
- package/dist/vendors/telegram/index.d.ts +319 -0
- package/dist/vendors/telegram/index.d.ts.map +1 -0
- package/dist/vendors/telegram/index.js +3 -0
- package/dist/vendors/textract/index.d.ts +2 -0
- package/dist/vendors/textract/index.js +2 -0
- package/dist/vendors/woocommerce/index.d.ts +1700 -0
- package/dist/vendors/woocommerce/index.d.ts.map +1 -0
- package/dist/vendors/woocommerce/index.js +1427 -0
- package/dist/vendors/woocommerce/index.js.map +1 -0
- package/dist/with-auth-CpKqTrGK.js +240 -0
- package/dist/with-auth-CpKqTrGK.js.map +1 -0
- package/logos/LUCIDE-ATTRIBUTION.txt +4 -0
- package/logos/README.md +89 -0
- package/logos/amazon.svg +6 -0
- package/logos/artifacts.svg +9 -0
- package/logos/browser.svg +9 -0
- package/logos/calendar.svg +15 -0
- package/logos/cloudflare-browser.svg +5 -0
- package/logos/cloudflare-email.svg +5 -0
- package/logos/cloudflare.svg +4 -0
- package/logos/code-sandbox.svg +8 -0
- package/logos/content-type.svg +10 -0
- package/logos/crypto.svg +7 -0
- package/logos/document-extract.svg +12 -0
- package/logos/document-render.svg +8 -0
- package/logos/document.svg +10 -0
- package/logos/email-message.svg +8 -0
- package/logos/email.svg +7 -0
- package/logos/file-convert.svg +9 -0
- package/logos/files.svg +6 -0
- package/logos/gotenberg.svg +340 -0
- package/logos/image.svg +8 -0
- package/logos/imessage.svg +7 -0
- package/logos/katana.svg +13 -0
- package/logos/mastra.svg +7 -0
- package/logos/messaging.svg +7 -0
- package/logos/pack-logos.json +48 -0
- package/logos/pdf.svg +10 -0
- package/logos/pinecone.svg +25 -0
- package/logos/presentation.svg +8 -0
- package/logos/qdrant.svg +4 -0
- package/logos/queue.svg +11 -0
- package/logos/rag.svg +18 -0
- package/logos/resend.svg +5 -0
- package/logos/scheduler.svg +7 -0
- package/logos/skills.svg +10 -0
- package/logos/slack.svg +14 -0
- package/logos/supabase.svg +4 -0
- package/logos/tasks.svg +10 -0
- package/logos/teams.svg +6 -0
- package/logos/telegram.svg +10 -0
- package/logos/textract.svg +5 -0
- package/logos/vector-store.svg +8 -0
- package/logos/web-fetch.svg +8 -0
- package/logos/woocommerce.svg +4 -0
- package/package.json +373 -0
|
@@ -0,0 +1,608 @@
|
|
|
1
|
+
import { a as ModuleDefinition, o as ToolContext, s as ToolDefinition } from "../../types-Ccb0DXY9.js";
|
|
2
|
+
import "../../index-CZX5OeOF.js";
|
|
3
|
+
import { h as S3Client } from "../../index-zK1ZwS4m.js";
|
|
4
|
+
import { a as createLiveMessage, i as TypingPulseDeps, n as LiveMessageDeps, o as createTypingPulse, r as TypingPulse, t as LiveMessage } from "../../transport-i96ACAI_.js";
|
|
5
|
+
import { z } from "zod";
|
|
6
|
+
//#region src/modules/messaging/contracts.d.ts
|
|
7
|
+
declare const MAX_MESSAGING_MEDIA_BATCH = 10;
|
|
8
|
+
declare const messagingChatActionSchema: z.ZodEnum<{
|
|
9
|
+
choose_sticker: "choose_sticker";
|
|
10
|
+
find_location: "find_location";
|
|
11
|
+
record_video: "record_video";
|
|
12
|
+
record_video_note: "record_video_note";
|
|
13
|
+
record_voice: "record_voice";
|
|
14
|
+
typing: "typing";
|
|
15
|
+
upload_document: "upload_document";
|
|
16
|
+
upload_photo: "upload_photo";
|
|
17
|
+
upload_video: "upload_video";
|
|
18
|
+
upload_video_note: "upload_video_note";
|
|
19
|
+
upload_voice: "upload_voice";
|
|
20
|
+
}>;
|
|
21
|
+
/** Host auth: channel credentials + provider discriminator. */
|
|
22
|
+
declare const telegramMessagingAuthSchema: z.ZodObject<{
|
|
23
|
+
bot_token: z.ZodString;
|
|
24
|
+
provider: z.ZodLiteral<"telegram">;
|
|
25
|
+
storage: z.ZodOptional<z.ZodObject<{
|
|
26
|
+
access_key_id: z.ZodString;
|
|
27
|
+
secret_access_key: z.ZodString;
|
|
28
|
+
region: z.ZodString;
|
|
29
|
+
bucket: z.ZodString;
|
|
30
|
+
endpoint: z.ZodOptional<z.ZodURL>;
|
|
31
|
+
session_token: z.ZodOptional<z.ZodString>;
|
|
32
|
+
key_prefix: z.ZodOptional<z.ZodString>;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
declare const slackMessagingAuthSchema: z.ZodObject<{
|
|
36
|
+
bot_token: z.ZodString;
|
|
37
|
+
provider: z.ZodLiteral<"slack">;
|
|
38
|
+
storage: z.ZodOptional<z.ZodObject<{
|
|
39
|
+
access_key_id: z.ZodString;
|
|
40
|
+
secret_access_key: z.ZodString;
|
|
41
|
+
region: z.ZodString;
|
|
42
|
+
bucket: z.ZodString;
|
|
43
|
+
endpoint: z.ZodOptional<z.ZodURL>;
|
|
44
|
+
session_token: z.ZodOptional<z.ZodString>;
|
|
45
|
+
key_prefix: z.ZodOptional<z.ZodString>;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
declare const teamsMessagingAuthSchema: z.ZodObject<{
|
|
49
|
+
app_id: z.ZodString;
|
|
50
|
+
app_password: z.ZodString;
|
|
51
|
+
tenant_id: z.ZodOptional<z.ZodString>;
|
|
52
|
+
provider: z.ZodLiteral<"teams">;
|
|
53
|
+
storage: z.ZodOptional<z.ZodObject<{
|
|
54
|
+
access_key_id: z.ZodString;
|
|
55
|
+
secret_access_key: z.ZodString;
|
|
56
|
+
region: z.ZodString;
|
|
57
|
+
bucket: z.ZodString;
|
|
58
|
+
endpoint: z.ZodOptional<z.ZodURL>;
|
|
59
|
+
session_token: z.ZodOptional<z.ZodString>;
|
|
60
|
+
key_prefix: z.ZodOptional<z.ZodString>;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
declare const imessageMessagingAuthSchema: z.ZodObject<{
|
|
64
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
65
|
+
project_secret: z.ZodOptional<z.ZodString>;
|
|
66
|
+
address: z.ZodOptional<z.ZodString>;
|
|
67
|
+
token: z.ZodOptional<z.ZodString>;
|
|
68
|
+
server: z.ZodOptional<z.ZodString>;
|
|
69
|
+
spectrum_cloud_url: z.ZodOptional<z.ZodURL>;
|
|
70
|
+
spectrum_imessage_address: z.ZodOptional<z.ZodString>;
|
|
71
|
+
tls: z.ZodOptional<z.ZodBoolean>;
|
|
72
|
+
provider: z.ZodLiteral<"imessage">;
|
|
73
|
+
storage: z.ZodOptional<z.ZodObject<{
|
|
74
|
+
access_key_id: z.ZodString;
|
|
75
|
+
secret_access_key: z.ZodString;
|
|
76
|
+
region: z.ZodString;
|
|
77
|
+
bucket: z.ZodString;
|
|
78
|
+
endpoint: z.ZodOptional<z.ZodURL>;
|
|
79
|
+
session_token: z.ZodOptional<z.ZodString>;
|
|
80
|
+
key_prefix: z.ZodOptional<z.ZodString>;
|
|
81
|
+
}, z.core.$strip>>;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
type TelegramMessagingAuth = z.infer<typeof telegramMessagingAuthSchema>;
|
|
84
|
+
type SlackMessagingAuth = z.infer<typeof slackMessagingAuthSchema>;
|
|
85
|
+
type TeamsMessagingAuth = z.infer<typeof teamsMessagingAuthSchema>;
|
|
86
|
+
type ImessageMessagingAuth = z.infer<typeof imessageMessagingAuthSchema>;
|
|
87
|
+
declare const messagingAuthSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
88
|
+
bot_token: z.ZodString;
|
|
89
|
+
provider: z.ZodLiteral<"telegram">;
|
|
90
|
+
storage: z.ZodOptional<z.ZodObject<{
|
|
91
|
+
access_key_id: z.ZodString;
|
|
92
|
+
secret_access_key: z.ZodString;
|
|
93
|
+
region: z.ZodString;
|
|
94
|
+
bucket: z.ZodString;
|
|
95
|
+
endpoint: z.ZodOptional<z.ZodURL>;
|
|
96
|
+
session_token: z.ZodOptional<z.ZodString>;
|
|
97
|
+
key_prefix: z.ZodOptional<z.ZodString>;
|
|
98
|
+
}, z.core.$strip>>;
|
|
99
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
100
|
+
bot_token: z.ZodString;
|
|
101
|
+
provider: z.ZodLiteral<"slack">;
|
|
102
|
+
storage: z.ZodOptional<z.ZodObject<{
|
|
103
|
+
access_key_id: z.ZodString;
|
|
104
|
+
secret_access_key: z.ZodString;
|
|
105
|
+
region: z.ZodString;
|
|
106
|
+
bucket: z.ZodString;
|
|
107
|
+
endpoint: z.ZodOptional<z.ZodURL>;
|
|
108
|
+
session_token: z.ZodOptional<z.ZodString>;
|
|
109
|
+
key_prefix: z.ZodOptional<z.ZodString>;
|
|
110
|
+
}, z.core.$strip>>;
|
|
111
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
112
|
+
app_id: z.ZodString;
|
|
113
|
+
app_password: z.ZodString;
|
|
114
|
+
tenant_id: z.ZodOptional<z.ZodString>;
|
|
115
|
+
provider: z.ZodLiteral<"teams">;
|
|
116
|
+
storage: z.ZodOptional<z.ZodObject<{
|
|
117
|
+
access_key_id: z.ZodString;
|
|
118
|
+
secret_access_key: z.ZodString;
|
|
119
|
+
region: z.ZodString;
|
|
120
|
+
bucket: z.ZodString;
|
|
121
|
+
endpoint: z.ZodOptional<z.ZodURL>;
|
|
122
|
+
session_token: z.ZodOptional<z.ZodString>;
|
|
123
|
+
key_prefix: z.ZodOptional<z.ZodString>;
|
|
124
|
+
}, z.core.$strip>>;
|
|
125
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
126
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
127
|
+
project_secret: z.ZodOptional<z.ZodString>;
|
|
128
|
+
address: z.ZodOptional<z.ZodString>;
|
|
129
|
+
token: z.ZodOptional<z.ZodString>;
|
|
130
|
+
server: z.ZodOptional<z.ZodString>;
|
|
131
|
+
spectrum_cloud_url: z.ZodOptional<z.ZodURL>;
|
|
132
|
+
spectrum_imessage_address: z.ZodOptional<z.ZodString>;
|
|
133
|
+
tls: z.ZodOptional<z.ZodBoolean>;
|
|
134
|
+
provider: z.ZodLiteral<"imessage">;
|
|
135
|
+
storage: z.ZodOptional<z.ZodObject<{
|
|
136
|
+
access_key_id: z.ZodString;
|
|
137
|
+
secret_access_key: z.ZodString;
|
|
138
|
+
region: z.ZodString;
|
|
139
|
+
bucket: z.ZodString;
|
|
140
|
+
endpoint: z.ZodOptional<z.ZodURL>;
|
|
141
|
+
session_token: z.ZodOptional<z.ZodString>;
|
|
142
|
+
key_prefix: z.ZodOptional<z.ZodString>;
|
|
143
|
+
}, z.core.$strip>>;
|
|
144
|
+
}, z.core.$strip>], "provider">;
|
|
145
|
+
type MessagingAuth = z.infer<typeof messagingAuthSchema>;
|
|
146
|
+
declare const messagingSendTextInputSchema: z.ZodObject<{
|
|
147
|
+
chat_id: z.ZodString;
|
|
148
|
+
text: z.ZodString;
|
|
149
|
+
reply_to_message_id: z.ZodOptional<z.ZodString>;
|
|
150
|
+
reply_markup: z.ZodOptional<z.ZodUnknown>;
|
|
151
|
+
service_url: z.ZodOptional<z.ZodString>;
|
|
152
|
+
}, z.core.$strip>;
|
|
153
|
+
/** Common send/edit/media result shell for journaling. */
|
|
154
|
+
declare const messagingMessageOutputSchema: z.ZodObject<{
|
|
155
|
+
message_id: z.ZodString;
|
|
156
|
+
file_id: z.ZodOptional<z.ZodString>;
|
|
157
|
+
attachment_message_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
158
|
+
}, z.core.$strip>;
|
|
159
|
+
declare const messagingEditTextInputSchema: z.ZodObject<{
|
|
160
|
+
chat_id: z.ZodString;
|
|
161
|
+
message_id: z.ZodString;
|
|
162
|
+
text: z.ZodString;
|
|
163
|
+
reply_markup: z.ZodOptional<z.ZodUnknown>;
|
|
164
|
+
service_url: z.ZodOptional<z.ZodString>;
|
|
165
|
+
}, z.core.$strip>;
|
|
166
|
+
declare const messagingSendChatActionInputSchema: z.ZodObject<{
|
|
167
|
+
chat_id: z.ZodString;
|
|
168
|
+
action: z.ZodEnum<{
|
|
169
|
+
choose_sticker: "choose_sticker";
|
|
170
|
+
find_location: "find_location";
|
|
171
|
+
record_video: "record_video";
|
|
172
|
+
record_video_note: "record_video_note";
|
|
173
|
+
record_voice: "record_voice";
|
|
174
|
+
typing: "typing";
|
|
175
|
+
upload_document: "upload_document";
|
|
176
|
+
upload_photo: "upload_photo";
|
|
177
|
+
upload_video: "upload_video";
|
|
178
|
+
upload_video_note: "upload_video_note";
|
|
179
|
+
upload_voice: "upload_voice";
|
|
180
|
+
}>;
|
|
181
|
+
reply_to_message_id: z.ZodOptional<z.ZodString>;
|
|
182
|
+
service_url: z.ZodOptional<z.ZodString>;
|
|
183
|
+
}, z.core.$strip>;
|
|
184
|
+
declare const messagingStopTypingInputSchema: z.ZodObject<{
|
|
185
|
+
chat_id: z.ZodString;
|
|
186
|
+
reply_to_message_id: z.ZodOptional<z.ZodString>;
|
|
187
|
+
service_url: z.ZodOptional<z.ZodString>;
|
|
188
|
+
}, z.core.$strip>;
|
|
189
|
+
declare const messagingSetReactionInputSchema: z.ZodObject<{
|
|
190
|
+
chat_id: z.ZodString;
|
|
191
|
+
message_id: z.ZodString;
|
|
192
|
+
emoji: z.ZodString;
|
|
193
|
+
}, z.core.$strip>;
|
|
194
|
+
/** Reaction result — store message_id when present for clearReaction. */
|
|
195
|
+
declare const messagingReactionOutputSchema: z.ZodObject<{
|
|
196
|
+
message_id: z.ZodOptional<z.ZodString>;
|
|
197
|
+
}, z.core.$strip>;
|
|
198
|
+
declare const messagingClearReactionInputSchema: z.ZodObject<{
|
|
199
|
+
chat_id: z.ZodString;
|
|
200
|
+
message_id: z.ZodString;
|
|
201
|
+
emoji: z.ZodOptional<z.ZodString>;
|
|
202
|
+
}, z.core.$strip>;
|
|
203
|
+
declare const messagingSendMediaInputSchema: z.ZodObject<{
|
|
204
|
+
kind: z.ZodEnum<{
|
|
205
|
+
document: "document";
|
|
206
|
+
photo: "photo";
|
|
207
|
+
}>;
|
|
208
|
+
body_base64: z.ZodOptional<z.ZodString>;
|
|
209
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
210
|
+
store: z.ZodLiteral<"object">;
|
|
211
|
+
key: z.ZodString;
|
|
212
|
+
media_type: z.ZodOptional<z.ZodString>;
|
|
213
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
214
|
+
byte_length: z.ZodOptional<z.ZodInt>;
|
|
215
|
+
}, z.core.$strip>>;
|
|
216
|
+
file_name: z.ZodOptional<z.ZodString>;
|
|
217
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
218
|
+
content_type: z.ZodOptional<z.ZodString>;
|
|
219
|
+
chat_id: z.ZodString;
|
|
220
|
+
reply_to_message_id: z.ZodOptional<z.ZodString>;
|
|
221
|
+
service_url: z.ZodOptional<z.ZodString>;
|
|
222
|
+
}, z.core.$strip>;
|
|
223
|
+
declare const messagingSendMediaBatchItemSchema: z.ZodObject<{
|
|
224
|
+
kind: z.ZodEnum<{
|
|
225
|
+
document: "document";
|
|
226
|
+
photo: "photo";
|
|
227
|
+
}>;
|
|
228
|
+
body_base64: z.ZodOptional<z.ZodString>;
|
|
229
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
230
|
+
store: z.ZodLiteral<"object">;
|
|
231
|
+
key: z.ZodString;
|
|
232
|
+
media_type: z.ZodOptional<z.ZodString>;
|
|
233
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
234
|
+
byte_length: z.ZodOptional<z.ZodInt>;
|
|
235
|
+
}, z.core.$strip>>;
|
|
236
|
+
file_name: z.ZodOptional<z.ZodString>;
|
|
237
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
238
|
+
content_type: z.ZodOptional<z.ZodString>;
|
|
239
|
+
}, z.core.$strip>;
|
|
240
|
+
declare const messagingSendMediaBatchInputSchema: z.ZodObject<{
|
|
241
|
+
chat_id: z.ZodString;
|
|
242
|
+
items: z.ZodArray<z.ZodObject<{
|
|
243
|
+
kind: z.ZodEnum<{
|
|
244
|
+
document: "document";
|
|
245
|
+
photo: "photo";
|
|
246
|
+
}>;
|
|
247
|
+
body_base64: z.ZodOptional<z.ZodString>;
|
|
248
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
249
|
+
store: z.ZodLiteral<"object">;
|
|
250
|
+
key: z.ZodString;
|
|
251
|
+
media_type: z.ZodOptional<z.ZodString>;
|
|
252
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
253
|
+
byte_length: z.ZodOptional<z.ZodInt>;
|
|
254
|
+
}, z.core.$strip>>;
|
|
255
|
+
file_name: z.ZodOptional<z.ZodString>;
|
|
256
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
257
|
+
content_type: z.ZodOptional<z.ZodString>;
|
|
258
|
+
}, z.core.$strip>>;
|
|
259
|
+
reply_to_message_id: z.ZodOptional<z.ZodString>;
|
|
260
|
+
service_url: z.ZodOptional<z.ZodString>;
|
|
261
|
+
}, z.core.$strip>;
|
|
262
|
+
declare const messagingSendMediaBatchOutputSchema: z.ZodObject<{
|
|
263
|
+
message_ids: z.ZodArray<z.ZodString>;
|
|
264
|
+
results: z.ZodObject<{
|
|
265
|
+
results: z.ZodArray<z.ZodObject<{
|
|
266
|
+
index: z.ZodInt;
|
|
267
|
+
ok: z.ZodBoolean;
|
|
268
|
+
value: z.ZodOptional<z.ZodObject<{
|
|
269
|
+
message_id: z.ZodString;
|
|
270
|
+
file_id: z.ZodOptional<z.ZodString>;
|
|
271
|
+
attachment_message_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
272
|
+
}, z.core.$strip>>;
|
|
273
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
274
|
+
code: z.ZodString;
|
|
275
|
+
message: z.ZodString;
|
|
276
|
+
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
277
|
+
}, z.core.$strip>>;
|
|
278
|
+
}, z.core.$strip>>;
|
|
279
|
+
succeeded: z.ZodInt;
|
|
280
|
+
failed: z.ZodInt;
|
|
281
|
+
}, z.core.$strip>;
|
|
282
|
+
}, z.core.$strip>;
|
|
283
|
+
declare const messagingDownloadFileInputSchema: z.ZodObject<{
|
|
284
|
+
file_id: z.ZodString;
|
|
285
|
+
chat_id: z.ZodOptional<z.ZodString>;
|
|
286
|
+
file_name: z.ZodOptional<z.ZodString>;
|
|
287
|
+
destination_key: z.ZodOptional<z.ZodString>;
|
|
288
|
+
service_url: z.ZodOptional<z.ZodString>;
|
|
289
|
+
}, z.core.$strip>;
|
|
290
|
+
declare const messagingDownloadFileOutputSchema: z.ZodObject<{
|
|
291
|
+
file_name: z.ZodString;
|
|
292
|
+
file_size: z.ZodOptional<z.ZodNumber>;
|
|
293
|
+
body_base64: z.ZodOptional<z.ZodString>;
|
|
294
|
+
artifact: z.ZodOptional<z.ZodObject<{
|
|
295
|
+
store: z.ZodLiteral<"object">;
|
|
296
|
+
key: z.ZodString;
|
|
297
|
+
media_type: z.ZodOptional<z.ZodString>;
|
|
298
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
299
|
+
byte_length: z.ZodOptional<z.ZodInt>;
|
|
300
|
+
}, z.core.$strip>>;
|
|
301
|
+
}, z.core.$strip>;
|
|
302
|
+
declare const messagingAnswerCallbackInputSchema: z.ZodObject<{
|
|
303
|
+
callback_query_id: z.ZodString;
|
|
304
|
+
text: z.ZodOptional<z.ZodString>;
|
|
305
|
+
show_alert: z.ZodOptional<z.ZodBoolean>;
|
|
306
|
+
service_url: z.ZodOptional<z.ZodString>;
|
|
307
|
+
}, z.core.$strip>;
|
|
308
|
+
declare const messagingReadInputSchema: z.ZodObject<{
|
|
309
|
+
chat_id: z.ZodString;
|
|
310
|
+
message_id: z.ZodString;
|
|
311
|
+
service_url: z.ZodOptional<z.ZodString>;
|
|
312
|
+
}, z.core.$strip>;
|
|
313
|
+
declare const messagingOkOutputSchema: z.ZodObject<{
|
|
314
|
+
ok: z.ZodBoolean;
|
|
315
|
+
}, z.core.$strip>;
|
|
316
|
+
type MessagingSendTextInput = z.infer<typeof messagingSendTextInputSchema>;
|
|
317
|
+
type MessagingMessageOutput = z.infer<typeof messagingMessageOutputSchema>;
|
|
318
|
+
type MessagingEditTextInput = z.infer<typeof messagingEditTextInputSchema>;
|
|
319
|
+
type MessagingSendChatActionInput = z.infer<typeof messagingSendChatActionInputSchema>;
|
|
320
|
+
type MessagingStopTypingInput = z.infer<typeof messagingStopTypingInputSchema>;
|
|
321
|
+
type MessagingSetReactionInput = z.infer<typeof messagingSetReactionInputSchema>;
|
|
322
|
+
type MessagingReactionOutput = z.infer<typeof messagingReactionOutputSchema>;
|
|
323
|
+
type MessagingClearReactionInput = z.infer<typeof messagingClearReactionInputSchema>;
|
|
324
|
+
type MessagingSendMediaInput = z.infer<typeof messagingSendMediaInputSchema>;
|
|
325
|
+
type MessagingSendMediaBatchInput = z.infer<typeof messagingSendMediaBatchInputSchema>;
|
|
326
|
+
type MessagingSendMediaBatchOutput = z.infer<typeof messagingSendMediaBatchOutputSchema>;
|
|
327
|
+
type MessagingDownloadFileInput = z.infer<typeof messagingDownloadFileInputSchema>;
|
|
328
|
+
type MessagingDownloadFileOutput = z.infer<typeof messagingDownloadFileOutputSchema>;
|
|
329
|
+
type MessagingAnswerCallbackInput = z.infer<typeof messagingAnswerCallbackInputSchema>;
|
|
330
|
+
type MessagingReadInput = z.infer<typeof messagingReadInputSchema>;
|
|
331
|
+
/** Channel-facing media after ArtifactRef resolution (body always present). */
|
|
332
|
+
type MessagingSendMediaResolved = {
|
|
333
|
+
chat_id: string;
|
|
334
|
+
kind: 'photo' | 'document';
|
|
335
|
+
body_base64: string;
|
|
336
|
+
file_name: string;
|
|
337
|
+
caption?: string | undefined;
|
|
338
|
+
reply_to_message_id?: string | undefined;
|
|
339
|
+
content_type?: string | undefined;
|
|
340
|
+
service_url?: string | undefined;
|
|
341
|
+
};
|
|
342
|
+
type MessagingSendMediaBatchResolved = {
|
|
343
|
+
chat_id: string;
|
|
344
|
+
items: Array<{
|
|
345
|
+
kind: 'photo' | 'document';
|
|
346
|
+
body_base64: string;
|
|
347
|
+
file_name: string;
|
|
348
|
+
caption?: string | undefined;
|
|
349
|
+
content_type?: string | undefined;
|
|
350
|
+
}>;
|
|
351
|
+
reply_to_message_id?: string | undefined;
|
|
352
|
+
service_url?: string | undefined;
|
|
353
|
+
};
|
|
354
|
+
/** Channel download always returns bytes; client may rewrite to artifact. */
|
|
355
|
+
type MessagingChannelDownloadOutput = {
|
|
356
|
+
file_name: string;
|
|
357
|
+
file_size?: number | undefined;
|
|
358
|
+
body_base64: string;
|
|
359
|
+
};
|
|
360
|
+
/** Shared seam surface — provider classes implement this. */
|
|
361
|
+
type MessagingOps = {
|
|
362
|
+
sendText: (input: MessagingSendTextInput) => Promise<MessagingMessageOutput>;
|
|
363
|
+
editText: (input: MessagingEditTextInput) => Promise<MessagingMessageOutput>;
|
|
364
|
+
sendChatAction: (input: MessagingSendChatActionInput) => Promise<void>;
|
|
365
|
+
stopTyping: (input: MessagingStopTypingInput) => Promise<void>;
|
|
366
|
+
setReaction: (input: MessagingSetReactionInput) => Promise<MessagingReactionOutput>;
|
|
367
|
+
clearReaction: (input: MessagingClearReactionInput) => Promise<void>;
|
|
368
|
+
sendMedia: (input: MessagingSendMediaResolved) => Promise<MessagingMessageOutput>;
|
|
369
|
+
sendMediaBatch: (input: MessagingSendMediaBatchResolved) => Promise<MessagingSendMediaBatchOutput>;
|
|
370
|
+
downloadFile: (input: MessagingDownloadFileInput) => Promise<MessagingChannelDownloadOutput>;
|
|
371
|
+
answerCallback: (input: MessagingAnswerCallbackInput) => Promise<void>;
|
|
372
|
+
read: (input: MessagingReadInput) => Promise<void>;
|
|
373
|
+
};
|
|
374
|
+
//#endregion
|
|
375
|
+
//#region src/modules/messaging/client.d.ts
|
|
376
|
+
declare class MessagingClient {
|
|
377
|
+
#private;
|
|
378
|
+
constructor(ops: MessagingOps, storage: S3Client | undefined, maxMediaBytes: number);
|
|
379
|
+
static fromContext(ctx: ToolContext): MessagingClient;
|
|
380
|
+
static fromAuth(auth: MessagingAuth, ctx?: ToolContext): MessagingClient;
|
|
381
|
+
sendText(input: MessagingSendTextInput): Promise<MessagingMessageOutput>;
|
|
382
|
+
editText(input: MessagingEditTextInput): Promise<MessagingMessageOutput>;
|
|
383
|
+
sendChatAction(input: MessagingSendChatActionInput): Promise<void>;
|
|
384
|
+
stopTyping(input: MessagingStopTypingInput): Promise<void>;
|
|
385
|
+
setReaction(input: MessagingSetReactionInput): Promise<MessagingReactionOutput>;
|
|
386
|
+
clearReaction(input: MessagingClearReactionInput): Promise<void>;
|
|
387
|
+
sendMedia(input: MessagingSendMediaInput): Promise<MessagingMessageOutput>;
|
|
388
|
+
sendMediaBatch(input: MessagingSendMediaBatchInput): Promise<MessagingSendMediaBatchOutput>;
|
|
389
|
+
downloadFile(input: MessagingDownloadFileInput): Promise<MessagingDownloadFileOutput>;
|
|
390
|
+
answerCallback(input: MessagingAnswerCallbackInput): Promise<void>;
|
|
391
|
+
read(input: MessagingReadInput): Promise<void>;
|
|
392
|
+
}
|
|
393
|
+
//#endregion
|
|
394
|
+
//#region src/modules/messaging/domain.d.ts
|
|
395
|
+
/** Provider-neutral definite rejection (do not treat as possible delivery). */
|
|
396
|
+
declare function isMessagingDefiniteRejection(error: unknown): boolean;
|
|
397
|
+
/**
|
|
398
|
+
* Provider-neutral outcome-unknown (retry may duplicate).
|
|
399
|
+
* Includes transport network/abort failures rethrown as vendor client errors.
|
|
400
|
+
*/
|
|
401
|
+
declare function isMessagingOutcomeUnknown(error: unknown): boolean;
|
|
402
|
+
//#endregion
|
|
403
|
+
//#region src/modules/messaging/module.d.ts
|
|
404
|
+
declare const messagingSendTextTool: ToolDefinition<{
|
|
405
|
+
chat_id: string;
|
|
406
|
+
text: string;
|
|
407
|
+
reply_to_message_id?: string | undefined;
|
|
408
|
+
reply_markup?: unknown;
|
|
409
|
+
service_url?: string | undefined;
|
|
410
|
+
}, {
|
|
411
|
+
message_id: string;
|
|
412
|
+
file_id?: string | undefined;
|
|
413
|
+
attachment_message_ids?: string[] | undefined;
|
|
414
|
+
}>;
|
|
415
|
+
declare const messagingEditTextTool: ToolDefinition<{
|
|
416
|
+
chat_id: string;
|
|
417
|
+
message_id: string;
|
|
418
|
+
text: string;
|
|
419
|
+
reply_markup?: unknown;
|
|
420
|
+
service_url?: string | undefined;
|
|
421
|
+
}, {
|
|
422
|
+
message_id: string;
|
|
423
|
+
file_id?: string | undefined;
|
|
424
|
+
attachment_message_ids?: string[] | undefined;
|
|
425
|
+
}>;
|
|
426
|
+
declare const messagingSendChatActionTool: ToolDefinition<{
|
|
427
|
+
chat_id: string;
|
|
428
|
+
action: "choose_sticker" | "find_location" | "record_video" | "record_video_note" | "record_voice" | "typing" | "upload_document" | "upload_photo" | "upload_video" | "upload_video_note" | "upload_voice";
|
|
429
|
+
reply_to_message_id?: string | undefined;
|
|
430
|
+
service_url?: string | undefined;
|
|
431
|
+
}, {
|
|
432
|
+
ok: boolean;
|
|
433
|
+
}>;
|
|
434
|
+
declare const messagingStopTypingTool: ToolDefinition<{
|
|
435
|
+
chat_id: string;
|
|
436
|
+
reply_to_message_id?: string | undefined;
|
|
437
|
+
service_url?: string | undefined;
|
|
438
|
+
}, {
|
|
439
|
+
ok: boolean;
|
|
440
|
+
}>;
|
|
441
|
+
declare const messagingSetReactionTool: ToolDefinition<{
|
|
442
|
+
chat_id: string;
|
|
443
|
+
message_id: string;
|
|
444
|
+
emoji: string;
|
|
445
|
+
}, {
|
|
446
|
+
message_id?: string | undefined;
|
|
447
|
+
}>;
|
|
448
|
+
declare const messagingClearReactionTool: ToolDefinition<{
|
|
449
|
+
chat_id: string;
|
|
450
|
+
message_id: string;
|
|
451
|
+
emoji?: string | undefined;
|
|
452
|
+
}, {
|
|
453
|
+
ok: boolean;
|
|
454
|
+
}>;
|
|
455
|
+
declare const messagingSendMediaTool: ToolDefinition<{
|
|
456
|
+
kind: "document" | "photo";
|
|
457
|
+
body_base64?: string | undefined;
|
|
458
|
+
source?: {
|
|
459
|
+
store: "object";
|
|
460
|
+
key: string;
|
|
461
|
+
media_type?: string | undefined;
|
|
462
|
+
filename?: string | undefined;
|
|
463
|
+
byte_length?: number | undefined;
|
|
464
|
+
} | undefined;
|
|
465
|
+
file_name?: string | undefined;
|
|
466
|
+
caption?: string | undefined;
|
|
467
|
+
content_type?: string | undefined;
|
|
468
|
+
chat_id: string;
|
|
469
|
+
reply_to_message_id?: string | undefined;
|
|
470
|
+
service_url?: string | undefined;
|
|
471
|
+
}, {
|
|
472
|
+
message_id: string;
|
|
473
|
+
file_id?: string | undefined;
|
|
474
|
+
attachment_message_ids?: string[] | undefined;
|
|
475
|
+
}>;
|
|
476
|
+
declare const messagingSendMediaBatchTool: ToolDefinition<{
|
|
477
|
+
chat_id: string;
|
|
478
|
+
items: {
|
|
479
|
+
kind: "document" | "photo";
|
|
480
|
+
body_base64?: string | undefined;
|
|
481
|
+
source?: {
|
|
482
|
+
store: "object";
|
|
483
|
+
key: string;
|
|
484
|
+
media_type?: string | undefined;
|
|
485
|
+
filename?: string | undefined;
|
|
486
|
+
byte_length?: number | undefined;
|
|
487
|
+
} | undefined;
|
|
488
|
+
file_name?: string | undefined;
|
|
489
|
+
caption?: string | undefined;
|
|
490
|
+
content_type?: string | undefined;
|
|
491
|
+
}[];
|
|
492
|
+
reply_to_message_id?: string | undefined;
|
|
493
|
+
service_url?: string | undefined;
|
|
494
|
+
}, {
|
|
495
|
+
message_ids: string[];
|
|
496
|
+
results: {
|
|
497
|
+
results: {
|
|
498
|
+
index: number;
|
|
499
|
+
ok: boolean;
|
|
500
|
+
value?: {
|
|
501
|
+
message_id: string;
|
|
502
|
+
file_id?: string | undefined;
|
|
503
|
+
attachment_message_ids?: string[] | undefined;
|
|
504
|
+
} | undefined;
|
|
505
|
+
error?: {
|
|
506
|
+
code: string;
|
|
507
|
+
message: string;
|
|
508
|
+
retryable?: boolean | undefined;
|
|
509
|
+
} | undefined;
|
|
510
|
+
}[];
|
|
511
|
+
succeeded: number;
|
|
512
|
+
failed: number;
|
|
513
|
+
};
|
|
514
|
+
}>;
|
|
515
|
+
declare const messagingDownloadFileTool: ToolDefinition<{
|
|
516
|
+
file_id: string;
|
|
517
|
+
chat_id?: string | undefined;
|
|
518
|
+
file_name?: string | undefined;
|
|
519
|
+
destination_key?: string | undefined;
|
|
520
|
+
service_url?: string | undefined;
|
|
521
|
+
}, {
|
|
522
|
+
file_name: string;
|
|
523
|
+
file_size?: number | undefined;
|
|
524
|
+
body_base64?: string | undefined;
|
|
525
|
+
artifact?: {
|
|
526
|
+
store: "object";
|
|
527
|
+
key: string;
|
|
528
|
+
media_type?: string | undefined;
|
|
529
|
+
filename?: string | undefined;
|
|
530
|
+
byte_length?: number | undefined;
|
|
531
|
+
} | undefined;
|
|
532
|
+
}>;
|
|
533
|
+
declare const messagingAnswerCallbackTool: ToolDefinition<{
|
|
534
|
+
callback_query_id: string;
|
|
535
|
+
text?: string | undefined;
|
|
536
|
+
show_alert?: boolean | undefined;
|
|
537
|
+
service_url?: string | undefined;
|
|
538
|
+
}, {
|
|
539
|
+
ok: boolean;
|
|
540
|
+
}>;
|
|
541
|
+
declare const messagingReadTool: ToolDefinition<{
|
|
542
|
+
chat_id: string;
|
|
543
|
+
message_id: string;
|
|
544
|
+
service_url?: string | undefined;
|
|
545
|
+
}, {
|
|
546
|
+
ok: boolean;
|
|
547
|
+
}>;
|
|
548
|
+
declare const messagingModule: ModuleDefinition<{
|
|
549
|
+
bot_token: string;
|
|
550
|
+
provider: "telegram";
|
|
551
|
+
storage?: {
|
|
552
|
+
access_key_id: string;
|
|
553
|
+
secret_access_key: string;
|
|
554
|
+
region: string;
|
|
555
|
+
bucket: string;
|
|
556
|
+
endpoint?: string | undefined;
|
|
557
|
+
session_token?: string | undefined;
|
|
558
|
+
key_prefix?: string | undefined;
|
|
559
|
+
} | undefined;
|
|
560
|
+
} | {
|
|
561
|
+
bot_token: string;
|
|
562
|
+
provider: "slack";
|
|
563
|
+
storage?: {
|
|
564
|
+
access_key_id: string;
|
|
565
|
+
secret_access_key: string;
|
|
566
|
+
region: string;
|
|
567
|
+
bucket: string;
|
|
568
|
+
endpoint?: string | undefined;
|
|
569
|
+
session_token?: string | undefined;
|
|
570
|
+
key_prefix?: string | undefined;
|
|
571
|
+
} | undefined;
|
|
572
|
+
} | {
|
|
573
|
+
app_id: string;
|
|
574
|
+
app_password: string;
|
|
575
|
+
tenant_id?: string | undefined;
|
|
576
|
+
provider: "teams";
|
|
577
|
+
storage?: {
|
|
578
|
+
access_key_id: string;
|
|
579
|
+
secret_access_key: string;
|
|
580
|
+
region: string;
|
|
581
|
+
bucket: string;
|
|
582
|
+
endpoint?: string | undefined;
|
|
583
|
+
session_token?: string | undefined;
|
|
584
|
+
key_prefix?: string | undefined;
|
|
585
|
+
} | undefined;
|
|
586
|
+
} | {
|
|
587
|
+
project_id?: string | undefined;
|
|
588
|
+
project_secret?: string | undefined;
|
|
589
|
+
address?: string | undefined;
|
|
590
|
+
token?: string | undefined;
|
|
591
|
+
server?: string | undefined;
|
|
592
|
+
spectrum_cloud_url?: string | undefined;
|
|
593
|
+
spectrum_imessage_address?: string | undefined;
|
|
594
|
+
tls?: boolean | undefined;
|
|
595
|
+
provider: "imessage";
|
|
596
|
+
storage?: {
|
|
597
|
+
access_key_id: string;
|
|
598
|
+
secret_access_key: string;
|
|
599
|
+
region: string;
|
|
600
|
+
bucket: string;
|
|
601
|
+
endpoint?: string | undefined;
|
|
602
|
+
session_token?: string | undefined;
|
|
603
|
+
key_prefix?: string | undefined;
|
|
604
|
+
} | undefined;
|
|
605
|
+
}>;
|
|
606
|
+
//#endregion
|
|
607
|
+
export { type ImessageMessagingAuth, type LiveMessage, type LiveMessageDeps, MAX_MESSAGING_MEDIA_BATCH, type MessagingAnswerCallbackInput, type MessagingAuth, type MessagingClearReactionInput, MessagingClient, type MessagingDownloadFileInput, type MessagingDownloadFileOutput, type MessagingEditTextInput, type MessagingMessageOutput, type MessagingReactionOutput, type MessagingReadInput, type MessagingSendChatActionInput, type MessagingSendMediaBatchInput, type MessagingSendMediaBatchOutput, type MessagingSendMediaInput, type MessagingSendTextInput, type MessagingSetReactionInput, type MessagingStopTypingInput, type SlackMessagingAuth, type TeamsMessagingAuth, type TelegramMessagingAuth, type TypingPulse, type TypingPulseDeps, createLiveMessage, createTypingPulse, isMessagingDefiniteRejection, isMessagingOutcomeUnknown, messagingAnswerCallbackInputSchema, messagingAnswerCallbackTool, messagingAuthSchema, messagingChatActionSchema, messagingClearReactionInputSchema, messagingClearReactionTool, messagingDownloadFileInputSchema, messagingDownloadFileOutputSchema, messagingDownloadFileTool, messagingEditTextInputSchema, messagingEditTextTool, messagingMessageOutputSchema, messagingModule, messagingOkOutputSchema, messagingReactionOutputSchema, messagingReadInputSchema, messagingReadTool, messagingSendChatActionInputSchema, messagingSendChatActionTool, messagingSendMediaBatchInputSchema, messagingSendMediaBatchItemSchema, messagingSendMediaBatchOutputSchema, messagingSendMediaBatchTool, messagingSendMediaInputSchema, messagingSendMediaTool, messagingSendTextInputSchema, messagingSendTextTool, messagingSetReactionInputSchema, messagingSetReactionTool, messagingStopTypingInputSchema, messagingStopTypingTool };
|
|
608
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/modules/messaging/contracts.ts","../../../src/modules/messaging/client.ts","../../../src/modules/messaging/domain.ts","../../../src/modules/messaging/module.ts"],"mappings":";;;;;;cAaa;cAEA,2BAAyB,EAAA;;;;;;;;;;;;;;cAoBzB,6BAA2B,EAAA;;;;;;;;;;;;GAGtC,EAAA,KAAA;cAEW,0BAAwB,EAAA;;;;;;;;;;;;GAGnC,EAAA,KAAA;cAEW,0BAAwB,EAAA;;;;;;;;;;;;;;GAGnC,EAAA,KAAA;cAEW,6BAA2B,EAAA;;;;;;;;;;;;;;;;;;;GAGtC,EAAA,KAAA;KAEU,wBAAwB,EAAE,aAAa;KACvC,qBAAqB,EAAE,aAAa;KACpC,qBAAqB,EAAE,aAAa;KACpC,wBAAwB,EAAE,aAAa;cAEtC,qBAAmB,EAAA,uBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAK9B,EAAA,KAAA;KAEU,gBAAgB,EAAE,aAAa;cAQ9B,8BAA4B,EAAA;;;;;;GAMvC,EAAA,KAAA;;cAGW,8BAA4B,EAAA;;;;GAOvC,EAAA,KAAA;cAEW,8BAA4B,EAAA;;;;;;GAMvC,EAAA,KAAA;cAEW,oCAAkC,EAAA;;;;;;;;;;;;;;;;;GAS7C,EAAA,KAAA;cAEW,gCAA8B,EAAA;;;;GAQzC,EAAA,KAAA;cAEW,iCAA+B,EAAA;;;;GAI1C,EAAA,KAAA;;cAGW,+BAA6B,EAAA;;GAKxC,EAAA,KAAA;cAEW,mCAAiC,EAAA;;;;GAO5C,EAAA,KAAA;cAqEW,+BAA6B,EAAA;;;;;;;;;;;;;;;;;;;GAOZ,EAAA,KAAA;cAEjB,mCAAiC,EAAA;;;;;;;;;;;;;;;;GAIhB,EAAA,KAAA;cAEjB,oCAAkC,EAAA;;;;;;;;;;;;;;;;;;;;;GAS7C,EAAA,KAAA;cAEW,qCAAmC,EAAA;;;;;;;;;;;;;;;;;;;;GAG9C,EAAA,KAAA;cAEW,kCAAgC,EAAA;;;;;;GAU3C,EAAA,KAAA;cAEW,mCAAiC,EAAA;;;;;;;;;;;GAK5C,EAAA,KAAA;cAEW,oCAAkC,EAAA;;;;;GAK7C,EAAA,KAAA;cAEW,0BAAwB,EAAA;;;;GAInC,EAAA,KAAA;cAEW,yBAAuB,EAAA;;GAElC,EAAA,KAAA;KAEU,yBAAyB,EAAE,aAAa;KACxC,yBAAyB,EAAE,aAAa;KACxC,yBAAyB,EAAE,aAAa;KACxC,+BAA+B,EAAE,aAAa;KAC9C,2BAA2B,EAAE,aAAa;KAC1C,4BAA4B,EAAE,aAAa;KAC3C,0BAA0B,EAAE,aAAa;KACzC,8BAA8B,EAAE,aAAa;KAC7C,0BAA0B,EAAE,aAAa;KAEzC,+BAA+B,EAAE,aAAa;KAC9C,gCAAgC,EAAE,aAAa;KAC/C,6BAA6B,EAAE,aAAa;KAC5C,8BAA8B,EAAE,aAAa;KAC7C,+BAA+B,EAAE,aAAa;KAC9C,qBAAqB,EAAE,aAAa;;KAGpC;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;KAGW;EACX;EACA,OAAO;IACN;IACA;IACA;IACA;IACA;;EAED;EACA;;;KAIW;EACX;EACA;EACA;;;KAIW;EACX,WAAW,OAAO,2BAA2B,QAAQ;EACrD,WAAW,OAAO,2BAA2B,QAAQ;EACrD,iBAAiB,OAAO,iCAAiC;EACzD,aAAa,OAAO,6BAA6B;EACjD,cAAc,OAAO,8BAA8B,QAAQ;EAC3D,gBAAgB,OAAO,gCAAgC;EACvD,YAAY,OAAO,+BAA+B,QAAQ;EAC1D,iBAAiB,OAAO,oCAAoC,QAAQ;EACpE,eAAe,OAAO,+BAA+B,QAAQ;EAC7D,iBAAiB,OAAO,iCAAiC;EACzD,OAAO,OAAO,uBAAuB;;;;cCnRzB;;EAKZ,YAAY,KAAK,cAAc,SAAS,sBAAsB;SAMvD,YAAY,KAAK,cAAc;SAK/B,SAAS,MAAM,eAAe,MAAK,cAAmB;EAI7D,SAAS,OAAO,yBAAyB,QAAQ;EAIjD,SAAS,OAAO,yBAAyB,QAAQ;EAIjD,eAAe,OAAO,+BAA+B;EAIrD,WAAW,OAAO,2BAA2B;EAI7C,YAAY,OAAO,4BAA4B,QAAQ;EAIvD,cAAc,OAAO,8BAA8B;EAI7C,UAAU,OAAO,0BAA0B,QAAQ;EAKnD,eAAe,OAAO,+BAA+B,QAAQ;EAM7D,aAAa,OAAO,6BAA6B,QAAQ;EAK/D,eAAe,OAAO,+BAA+B;EAIrD,KAAK,OAAO,qBAAqB;;;;;iBCpFlB,6BAA6B;;;;;iBAa7B,0BAA0B;;;cCjC7B,uBAAA;;;;;;;;;;;cAYA,uBAAA;;;;;;;;;;;cAWA,6BAAA;;;;;;;;cAeA,yBAAA;;;;;;;cAeA,0BAAA;;;;;;;cAYA,4BAAA;;;;;;;cAeA,wBAAA;;;;;;;;;;;;;;;;;;;;;cAYA,6BAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAYA,2BAAA;;;;;;;;;;;;;;;;;;cAYA,6BAAA;;;;;;;;cAcA,mBAAA;;;;;;;cAcA,iBAAA"}
|