@5ss/ai-tools 2.11.4 → 3.0.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 +4 -0
- package/README.md +1 -1
- package/dist/{aws-service-msttbPrz.js → aws-service-Cn_ozX4X.js} +2 -2
- package/dist/{aws-service-msttbPrz.js.map → aws-service-Cn_ozX4X.js.map} +1 -1
- package/dist/{bedrock-agentcore-browser-o_oqSPMK.js → bedrock-agentcore-browser-DwDSP_YL.js} +2 -2
- package/dist/{bedrock-agentcore-browser-o_oqSPMK.js.map → bedrock-agentcore-browser-DwDSP_YL.js.map} +1 -1
- package/dist/{bedrock-agentcore-code-interpreter-D4ERRFj1.js → bedrock-agentcore-code-interpreter-F0dnrAm4.js} +2 -2
- package/dist/{bedrock-agentcore-code-interpreter-D4ERRFj1.js.map → bedrock-agentcore-code-interpreter-F0dnrAm4.js.map} +1 -1
- package/dist/{cloudflare-browser-nLJdH5nG.js → cloudflare-browser-D-HT43hu.js} +3 -3
- package/dist/{cloudflare-browser-nLJdH5nG.js.map → cloudflare-browser-D-HT43hu.js.map} +1 -1
- package/dist/{cloudflare-email-CSRq8mRd.js → cloudflare-email-BLI3z96V.js} +2 -2
- package/dist/{cloudflare-email-CSRq8mRd.js.map → cloudflare-email-BLI3z96V.js.map} +1 -1
- package/dist/{cloudflare-sandbox-Be7SeS4-.js → cloudflare-sandbox-6nX5lIev.js} +3 -3
- package/dist/{cloudflare-sandbox-Be7SeS4-.js.map → cloudflare-sandbox-6nX5lIev.js.map} +1 -1
- package/dist/{eventbridge-scheduler-BhQaReAz.js → eventbridge-scheduler-CDmO2-Te.js} +2 -2
- package/dist/{eventbridge-scheduler-BhQaReAz.js.map → eventbridge-scheduler-CDmO2-Te.js.map} +1 -1
- package/dist/http/index.d.ts.map +1 -1
- package/dist/http/index.js +2 -2
- package/dist/{http-service-DDNCO1s4.js → http-service-BMBIryAL.js} +2 -5
- package/dist/http-service-BMBIryAL.js.map +1 -0
- package/dist/imessage-Dsms04rC.js +558 -0
- package/dist/imessage-Dsms04rC.js.map +1 -0
- package/dist/modules/artifacts/index.js +1 -1
- package/dist/modules/browser/index.js +2 -2
- package/dist/modules/code-sandbox/index.js +2 -2
- package/dist/modules/document-extract/index.js +1 -1
- package/dist/modules/document-render/index.js +1 -1
- package/dist/modules/email/index.js +2 -2
- package/dist/modules/files/index.js +1 -1
- package/dist/modules/image/index.js +1 -1
- package/dist/modules/messaging/index.d.ts +12 -24
- package/dist/modules/messaging/index.d.ts.map +1 -1
- package/dist/modules/messaging/index.js +27 -42
- package/dist/modules/messaging/index.js.map +1 -1
- package/dist/modules/queue/index.js +1 -1
- package/dist/modules/rag/index.js +2 -2
- package/dist/modules/scheduler/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-CNnCFmix.js → pinecone-BvdXAZMi.js} +2 -2
- package/dist/{pinecone-CNnCFmix.js.map → pinecone-BvdXAZMi.js.map} +1 -1
- package/dist/{qdrant-R_FIcG9d.js → qdrant-D2E2Lxrw.js} +2 -2
- package/dist/{qdrant-R_FIcG9d.js.map → qdrant-D2E2Lxrw.js.map} +1 -1
- package/dist/{resend-Bu0NFO3h.js → resend-A2SnRdQ8.js} +2 -2
- package/dist/{resend-Bu0NFO3h.js.map → resend-A2SnRdQ8.js.map} +1 -1
- package/dist/{s3-Dj7Teh-A.js → s3-CoZQRTfe.js} +2 -2
- package/dist/{s3-Dj7Teh-A.js.map → s3-CoZQRTfe.js.map} +1 -1
- package/dist/{slack-AjJDNnXJ.js → slack-C9UJ0b61.js} +2 -2
- package/dist/{slack-AjJDNnXJ.js.map → slack-C9UJ0b61.js.map} +1 -1
- package/dist/{sqs-CjyXjasF.js → sqs-DxFnfODk.js} +2 -2
- package/dist/{sqs-CjyXjasF.js.map → sqs-DxFnfODk.js.map} +1 -1
- package/dist/{supabase-vector-BNoJZuft.js → supabase-vector-DT3qfnt2.js} +2 -2
- package/dist/{supabase-vector-BNoJZuft.js.map → supabase-vector-DT3qfnt2.js.map} +1 -1
- package/dist/{teams-CvxYLAi5.js → teams-NODh3i6U.js} +2 -2
- package/dist/{teams-CvxYLAi5.js.map → teams-NODh3i6U.js.map} +1 -1
- package/dist/{telegram-B_-Jljk3.js → telegram-CWMHBeKo.js} +2 -2
- package/dist/{telegram-B_-Jljk3.js.map → telegram-CWMHBeKo.js.map} +1 -1
- package/dist/{textract-CAfnGvua.js → textract-2jkPuRiE.js} +3 -3
- package/dist/{textract-CAfnGvua.js.map → textract-2jkPuRiE.js.map} +1 -1
- package/dist/{vector-store-DDiu3XPg.js → vector-store-CDQaQXFV.js} +4 -4
- package/dist/{vector-store-DDiu3XPg.js.map → vector-store-CDQaQXFV.js.map} +1 -1
- package/dist/vendors/amazon-sp-api/index.d.ts +1 -8
- package/dist/vendors/amazon-sp-api/index.d.ts.map +1 -1
- package/dist/vendors/amazon-sp-api/index.js +3 -14
- package/dist/vendors/amazon-sp-api/index.js.map +1 -1
- package/dist/vendors/bedrock-agentcore-browser/index.js +1 -1
- package/dist/vendors/bedrock-agentcore-code-interpreter/index.js +1 -1
- package/dist/vendors/cloudflare-browser/index.js +1 -1
- package/dist/vendors/cloudflare-email/index.js +1 -1
- package/dist/vendors/cloudflare-sandbox/index.js +1 -1
- package/dist/vendors/eventbridge-scheduler/index.js +1 -1
- package/dist/vendors/imessage/index.d.ts +65 -188
- package/dist/vendors/imessage/index.d.ts.map +1 -1
- package/dist/vendors/imessage/index.js +2 -2
- package/dist/vendors/katana/index.d.ts +112 -56
- package/dist/vendors/katana/index.d.ts.map +1 -1
- package/dist/vendors/katana/index.js +42 -16
- package/dist/vendors/katana/index.js.map +1 -1
- package/dist/vendors/pinecone/index.js +1 -1
- package/dist/vendors/qdrant/index.js +1 -1
- package/dist/vendors/resend/index.js +1 -1
- package/dist/vendors/s3/index.js +1 -1
- package/dist/vendors/slack/index.js +1 -1
- package/dist/vendors/sqs/index.js +1 -1
- package/dist/vendors/supabase-vector/index.js +1 -1
- package/dist/vendors/teams/index.js +1 -1
- package/dist/vendors/telegram/index.js +1 -1
- package/dist/vendors/textract/index.js +1 -1
- package/dist/vendors/woocommerce/index.js +1 -1
- package/package.json +2 -18
- package/dist/http-service-DDNCO1s4.js.map +0 -1
- package/dist/imessage-CofjmONG.js +0 -893
- package/dist/imessage-CofjmONG.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as BedrockAgentCoreBrowserClient, c as browserSessionIdInputSchema, d as browserStreamSchema, i as bedrockAgentCoreBrowserStopSessionTool, l as browserSessionOutputSchema, n as bedrockAgentCoreBrowserModule, o as DEFAULT_BROWSER_ID, r as bedrockAgentCoreBrowserStartSessionTool, s as bedrockAgentCoreBrowserAuthSchema, t as bedrockAgentCoreBrowserGetSessionTool, u as browserStartSessionInputSchema } from "../../bedrock-agentcore-browser-
|
|
1
|
+
import { a as BedrockAgentCoreBrowserClient, c as browserSessionIdInputSchema, d as browserStreamSchema, i as bedrockAgentCoreBrowserStopSessionTool, l as browserSessionOutputSchema, n as bedrockAgentCoreBrowserModule, o as DEFAULT_BROWSER_ID, r as bedrockAgentCoreBrowserStartSessionTool, s as bedrockAgentCoreBrowserAuthSchema, t as bedrockAgentCoreBrowserGetSessionTool, u as browserStartSessionInputSchema } from "../../bedrock-agentcore-browser-DwDSP_YL.js";
|
|
2
2
|
export { BedrockAgentCoreBrowserClient, DEFAULT_BROWSER_ID, bedrockAgentCoreBrowserAuthSchema, bedrockAgentCoreBrowserGetSessionTool, bedrockAgentCoreBrowserModule, bedrockAgentCoreBrowserStartSessionTool, bedrockAgentCoreBrowserStopSessionTool, browserSessionIdInputSchema, browserSessionOutputSchema, browserStartSessionInputSchema, browserStreamSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as startCommandInputSchema, C as executeCommandInputSchema, D as removeFilesInputSchema, E as readFilesInputSchema, M as taskIdInputSchema, N as writeFilesInputSchema, O as sessionIdInputSchema, S as executeCodeInputSchema, T as listFilesInputSchema, _ as MAX_COMMAND_CHARS, a as bedrockAgentCoreCodeInterpreterListFilesTool, b as MAX_WRITE_FILES, c as bedrockAgentCoreCodeInterpreterRemoveFilesTool, d as bedrockAgentCoreCodeInterpreterStopSessionTool, f as bedrockAgentCoreCodeInterpreterStopTaskTool, g as MAX_CODE_CHARS, h as DEFAULT_CODE_INTERPRETER_ID, i as bedrockAgentCoreCodeInterpreterGetTaskTool, j as startSessionInputSchema, k as sessionOutputSchema, l as bedrockAgentCoreCodeInterpreterStartCommandTool, m as BedrockAgentCoreCodeInterpreterClient, n as bedrockAgentCoreCodeInterpreterExecuteCommandTool, o as bedrockAgentCoreCodeInterpreterModule, p as bedrockAgentCoreCodeInterpreterWriteFilesTool, r as bedrockAgentCoreCodeInterpreterGetSessionTool, s as bedrockAgentCoreCodeInterpreterReadFilesTool, t as bedrockAgentCoreCodeInterpreterExecuteCodeTool, u as bedrockAgentCoreCodeInterpreterStartSessionTool, v as MAX_FILE_PATHS, w as invokeResultSchema, x as bedrockAgentCoreCodeInterpreterAuthSchema, y as MAX_FILE_TEXT } from "../../bedrock-agentcore-code-interpreter-
|
|
1
|
+
import { A as startCommandInputSchema, C as executeCommandInputSchema, D as removeFilesInputSchema, E as readFilesInputSchema, M as taskIdInputSchema, N as writeFilesInputSchema, O as sessionIdInputSchema, S as executeCodeInputSchema, T as listFilesInputSchema, _ as MAX_COMMAND_CHARS, a as bedrockAgentCoreCodeInterpreterListFilesTool, b as MAX_WRITE_FILES, c as bedrockAgentCoreCodeInterpreterRemoveFilesTool, d as bedrockAgentCoreCodeInterpreterStopSessionTool, f as bedrockAgentCoreCodeInterpreterStopTaskTool, g as MAX_CODE_CHARS, h as DEFAULT_CODE_INTERPRETER_ID, i as bedrockAgentCoreCodeInterpreterGetTaskTool, j as startSessionInputSchema, k as sessionOutputSchema, l as bedrockAgentCoreCodeInterpreterStartCommandTool, m as BedrockAgentCoreCodeInterpreterClient, n as bedrockAgentCoreCodeInterpreterExecuteCommandTool, o as bedrockAgentCoreCodeInterpreterModule, p as bedrockAgentCoreCodeInterpreterWriteFilesTool, r as bedrockAgentCoreCodeInterpreterGetSessionTool, s as bedrockAgentCoreCodeInterpreterReadFilesTool, t as bedrockAgentCoreCodeInterpreterExecuteCodeTool, u as bedrockAgentCoreCodeInterpreterStartSessionTool, v as MAX_FILE_PATHS, w as invokeResultSchema, x as bedrockAgentCoreCodeInterpreterAuthSchema, y as MAX_FILE_TEXT } from "../../bedrock-agentcore-code-interpreter-F0dnrAm4.js";
|
|
2
2
|
export { BedrockAgentCoreCodeInterpreterClient, DEFAULT_CODE_INTERPRETER_ID, MAX_CODE_CHARS, MAX_COMMAND_CHARS, MAX_FILE_PATHS, MAX_FILE_TEXT, MAX_WRITE_FILES, bedrockAgentCoreCodeInterpreterAuthSchema, bedrockAgentCoreCodeInterpreterExecuteCodeTool, bedrockAgentCoreCodeInterpreterExecuteCommandTool, bedrockAgentCoreCodeInterpreterGetSessionTool, bedrockAgentCoreCodeInterpreterGetTaskTool, bedrockAgentCoreCodeInterpreterListFilesTool, bedrockAgentCoreCodeInterpreterModule, bedrockAgentCoreCodeInterpreterReadFilesTool, bedrockAgentCoreCodeInterpreterRemoveFilesTool, bedrockAgentCoreCodeInterpreterStartCommandTool, bedrockAgentCoreCodeInterpreterStartSessionTool, bedrockAgentCoreCodeInterpreterStopSessionTool, bedrockAgentCoreCodeInterpreterStopTaskTool, bedrockAgentCoreCodeInterpreterWriteFilesTool, executeCodeInputSchema, executeCommandInputSchema, invokeResultSchema, listFilesInputSchema, readFilesInputSchema, removeFilesInputSchema, sessionIdInputSchema, sessionOutputSchema, startCommandInputSchema, startSessionInputSchema, taskIdInputSchema, writeFilesInputSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as cloudflareBrowserViewportSchema, S as cloudflareBrowserStartSessionInputSchema, _ as cloudflareBrowserRenderScreenshotInputSchema, a as cloudflareBrowserStartSessionTool, b as cloudflareBrowserSessionIdInputSchema, c as CloudflareBrowserClient, d as MAX_HTML_CHARS, f as cloudflareBrowserAuthSchema, g as cloudflareBrowserRenderPdfInputSchema, h as cloudflareBrowserRenderOutputSchema, i as cloudflareBrowserRenderScreenshotTool, l as plainTextFromHtml, m as cloudflareBrowserEngineSchema, n as cloudflareBrowserModule, o as cloudflareBrowserStopSessionTool, p as cloudflareBrowserClientAuthSchema, r as cloudflareBrowserRenderPdfTool, s as mintCloudflareBrowserCdpConnection, t as cloudflareBrowserGetSessionTool, u as titleFromHtml, v as cloudflareBrowserRenderSourceSchema, x as cloudflareBrowserSessionOutputSchema, y as cloudflareBrowserSessionAuthSchema } from "../../cloudflare-browser-
|
|
1
|
+
import { C as cloudflareBrowserViewportSchema, S as cloudflareBrowserStartSessionInputSchema, _ as cloudflareBrowserRenderScreenshotInputSchema, a as cloudflareBrowserStartSessionTool, b as cloudflareBrowserSessionIdInputSchema, c as CloudflareBrowserClient, d as MAX_HTML_CHARS, f as cloudflareBrowserAuthSchema, g as cloudflareBrowserRenderPdfInputSchema, h as cloudflareBrowserRenderOutputSchema, i as cloudflareBrowserRenderScreenshotTool, l as plainTextFromHtml, m as cloudflareBrowserEngineSchema, n as cloudflareBrowserModule, o as cloudflareBrowserStopSessionTool, p as cloudflareBrowserClientAuthSchema, r as cloudflareBrowserRenderPdfTool, s as mintCloudflareBrowserCdpConnection, t as cloudflareBrowserGetSessionTool, u as titleFromHtml, v as cloudflareBrowserRenderSourceSchema, x as cloudflareBrowserSessionOutputSchema, y as cloudflareBrowserSessionAuthSchema } from "../../cloudflare-browser-D-HT43hu.js";
|
|
2
2
|
export { CloudflareBrowserClient, MAX_HTML_CHARS, cloudflareBrowserAuthSchema, cloudflareBrowserClientAuthSchema, cloudflareBrowserEngineSchema, cloudflareBrowserGetSessionTool, cloudflareBrowserModule, cloudflareBrowserRenderOutputSchema, cloudflareBrowserRenderPdfInputSchema, cloudflareBrowserRenderPdfTool, cloudflareBrowserRenderScreenshotInputSchema, cloudflareBrowserRenderScreenshotTool, cloudflareBrowserRenderSourceSchema, cloudflareBrowserSessionAuthSchema, cloudflareBrowserSessionIdInputSchema, cloudflareBrowserSessionOutputSchema, cloudflareBrowserStartSessionInputSchema, cloudflareBrowserStartSessionTool, cloudflareBrowserStopSessionTool, cloudflareBrowserViewportSchema, mintCloudflareBrowserCdpConnection, plainTextFromHtml, titleFromHtml };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as attachmentSchema, i as MAX_EMAIL_BYTES, o as namedAddressSchema, r as MAX_BATCH_EMAILS } from "../../limits-hjrO8zUG.js";
|
|
2
|
-
import { a as cloudflareEmailAuthSchema, c as cloudflareEmailSendInputSchema, i as CloudflareEmailClient, l as cloudflareEmailSendOutputSchema, n as cloudflareEmailSendBatchTool, o as cloudflareEmailSendBatchInputSchema, r as cloudflareEmailSendTool, s as cloudflareEmailSendBatchOutputSchema, t as cloudflareEmailModule } from "../../cloudflare-email-
|
|
2
|
+
import { a as cloudflareEmailAuthSchema, c as cloudflareEmailSendInputSchema, i as CloudflareEmailClient, l as cloudflareEmailSendOutputSchema, n as cloudflareEmailSendBatchTool, o as cloudflareEmailSendBatchInputSchema, r as cloudflareEmailSendTool, s as cloudflareEmailSendBatchOutputSchema, t as cloudflareEmailModule } from "../../cloudflare-email-BLI3z96V.js";
|
|
3
3
|
export { CloudflareEmailClient, MAX_BATCH_EMAILS, MAX_EMAIL_BYTES, attachmentSchema, cloudflareEmailAuthSchema, cloudflareEmailModule, cloudflareEmailSendBatchInputSchema, cloudflareEmailSendBatchOutputSchema, cloudflareEmailSendBatchTool, cloudflareEmailSendInputSchema, cloudflareEmailSendOutputSchema, cloudflareEmailSendTool, namedAddressSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as readFileInputSchema, A as MAX_FILE_PATH, B as destroySandboxOutputSchema, C as workspaceAbsolutePath, D as MAX_ARG_CHARS, E as MAX_ARGV, F as cloudflareSandboxAuthSchema, G as exportArtifactOutputSchema, H as execOutputSchema, I as createBridgeSessionOutputSchema, J as importArtifactOutputSchema, K as healthOutputSchema, L as createSandboxOutputSchema, M as MAX_LIST_FILES, N as MAX_READ_PATHS, O as MAX_EXEC_TIMEOUT_MS, P as MAX_WRITE_FILES, Q as mountBucketOutputSchema, R as deleteBridgeSessionInputSchema, S as shellQuote, T as DEFAULT_EXEC_TIMEOUT_MS, U as executeCodeInputSchema, V as execInputSchema, W as exportArtifactInputSchema, X as listFilesOutputSchema, Y as listFilesInputSchema, Z as mountBucketInputSchema, _ as cloudflareSandboxWriteFilesTool, a as cloudflareSandboxExecTool, at as runningOutputSchema, b as parseExecSse, c as cloudflareSandboxHealthTool, ct as unmountBucketInputSchema, d as cloudflareSandboxModule, dt as writeFileOutputSchema, et as readFileOutputSchema, f as cloudflareSandboxReadFileTool, ft as writeFilesInputSchema, g as cloudflareSandboxWriteFileTool, h as cloudflareSandboxRunningTool, i as cloudflareSandboxDestroyTool, it as removeFilesOutputSchema, j as MAX_FILE_TEXT, k as MAX_FILE_BYTES, l as cloudflareSandboxImportArtifactTool, lt as unmountBucketOutputSchema, m as cloudflareSandboxRemoveFilesTool, n as cloudflareSandboxCreateTool, nt as readFilesOutputSchema, o as cloudflareSandboxExecuteCodeTool, ot as sandboxIdInputSchema, p as cloudflareSandboxReadFilesTool, pt as writeFilesOutputSchema, q as importArtifactInputSchema, r as cloudflareSandboxDeleteSessionTool, rt as removeFilesInputSchema, s as cloudflareSandboxExportArtifactTool, st as sandboxObjectArtifactRefSchema, t as cloudflareSandboxCreateSessionTool, tt as readFilesInputSchema, u as cloudflareSandboxListFilesTool, ut as writeFileInputSchema, v as CloudflareSandboxClient, w as workspaceFileKey, x as resolveWriteFileBytes, y as executeCodeArgv, z as deleteBridgeSessionOutputSchema } from "../../cloudflare-sandbox-
|
|
1
|
+
import { $ as readFileInputSchema, A as MAX_FILE_PATH, B as destroySandboxOutputSchema, C as workspaceAbsolutePath, D as MAX_ARG_CHARS, E as MAX_ARGV, F as cloudflareSandboxAuthSchema, G as exportArtifactOutputSchema, H as execOutputSchema, I as createBridgeSessionOutputSchema, J as importArtifactOutputSchema, K as healthOutputSchema, L as createSandboxOutputSchema, M as MAX_LIST_FILES, N as MAX_READ_PATHS, O as MAX_EXEC_TIMEOUT_MS, P as MAX_WRITE_FILES, Q as mountBucketOutputSchema, R as deleteBridgeSessionInputSchema, S as shellQuote, T as DEFAULT_EXEC_TIMEOUT_MS, U as executeCodeInputSchema, V as execInputSchema, W as exportArtifactInputSchema, X as listFilesOutputSchema, Y as listFilesInputSchema, Z as mountBucketInputSchema, _ as cloudflareSandboxWriteFilesTool, a as cloudflareSandboxExecTool, at as runningOutputSchema, b as parseExecSse, c as cloudflareSandboxHealthTool, ct as unmountBucketInputSchema, d as cloudflareSandboxModule, dt as writeFileOutputSchema, et as readFileOutputSchema, f as cloudflareSandboxReadFileTool, ft as writeFilesInputSchema, g as cloudflareSandboxWriteFileTool, h as cloudflareSandboxRunningTool, i as cloudflareSandboxDestroyTool, it as removeFilesOutputSchema, j as MAX_FILE_TEXT, k as MAX_FILE_BYTES, l as cloudflareSandboxImportArtifactTool, lt as unmountBucketOutputSchema, m as cloudflareSandboxRemoveFilesTool, n as cloudflareSandboxCreateTool, nt as readFilesOutputSchema, o as cloudflareSandboxExecuteCodeTool, ot as sandboxIdInputSchema, p as cloudflareSandboxReadFilesTool, pt as writeFilesOutputSchema, q as importArtifactInputSchema, r as cloudflareSandboxDeleteSessionTool, rt as removeFilesInputSchema, s as cloudflareSandboxExportArtifactTool, st as sandboxObjectArtifactRefSchema, t as cloudflareSandboxCreateSessionTool, tt as readFilesInputSchema, u as cloudflareSandboxListFilesTool, ut as writeFileInputSchema, v as CloudflareSandboxClient, w as workspaceFileKey, x as resolveWriteFileBytes, y as executeCodeArgv, z as deleteBridgeSessionOutputSchema } from "../../cloudflare-sandbox-6nX5lIev.js";
|
|
2
2
|
export { CloudflareSandboxClient, DEFAULT_EXEC_TIMEOUT_MS, MAX_ARGV, MAX_ARG_CHARS, MAX_EXEC_TIMEOUT_MS, MAX_FILE_BYTES, MAX_FILE_PATH, MAX_FILE_TEXT, MAX_LIST_FILES, MAX_READ_PATHS, MAX_WRITE_FILES, cloudflareSandboxAuthSchema, cloudflareSandboxCreateSessionTool, cloudflareSandboxCreateTool, cloudflareSandboxDeleteSessionTool, cloudflareSandboxDestroyTool, cloudflareSandboxExecTool, cloudflareSandboxExecuteCodeTool, cloudflareSandboxExportArtifactTool, cloudflareSandboxHealthTool, cloudflareSandboxImportArtifactTool, cloudflareSandboxListFilesTool, cloudflareSandboxModule, cloudflareSandboxReadFileTool, cloudflareSandboxReadFilesTool, cloudflareSandboxRemoveFilesTool, cloudflareSandboxRunningTool, cloudflareSandboxWriteFileTool, cloudflareSandboxWriteFilesTool, createBridgeSessionOutputSchema, createSandboxOutputSchema, deleteBridgeSessionInputSchema, deleteBridgeSessionOutputSchema, destroySandboxOutputSchema, execInputSchema, execOutputSchema, executeCodeArgv, executeCodeInputSchema, exportArtifactInputSchema, exportArtifactOutputSchema, healthOutputSchema, importArtifactInputSchema, importArtifactOutputSchema, listFilesInputSchema, listFilesOutputSchema, mountBucketInputSchema, mountBucketOutputSchema, parseExecSse, readFileInputSchema, readFileOutputSchema, readFilesInputSchema, readFilesOutputSchema, removeFilesInputSchema, removeFilesOutputSchema, resolveWriteFileBytes, runningOutputSchema, sandboxIdInputSchema, sandboxObjectArtifactRefSchema, shellQuote, unmountBucketInputSchema, unmountBucketOutputSchema, workspaceAbsolutePath, workspaceFileKey, writeFileInputSchema, writeFileOutputSchema, writeFilesInputSchema, writeFilesOutputSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as scheduleWriteOutputSchema, S as scheduleUpdateInputSchema, _ as scheduleListInputSchema, a as eventBridgeSchedulerModule, b as scheduleStateSchema, c as MAX_LIST, d as MAX_TASK_REF, f as eventBridgeSchedulerAuthSchema, g as scheduleGetOutputSchema, h as scheduleDetailSchema, i as eventBridgeSchedulerListTool, l as MAX_PAYLOAD_JSON, m as scheduleDeleteOutputSchema, n as eventBridgeSchedulerDeleteTool, o as eventBridgeSchedulerUpdateTool, p as scheduleCreateInputSchema, r as eventBridgeSchedulerGetTool, s as EventBridgeSchedulerClient, t as eventBridgeSchedulerCreateTool, u as MAX_SCHEDULE_NAME, v as scheduleListOutputSchema, x as scheduleSummarySchema, y as scheduleNameInputSchema } from "../../eventbridge-scheduler-
|
|
1
|
+
import { C as scheduleWriteOutputSchema, S as scheduleUpdateInputSchema, _ as scheduleListInputSchema, a as eventBridgeSchedulerModule, b as scheduleStateSchema, c as MAX_LIST, d as MAX_TASK_REF, f as eventBridgeSchedulerAuthSchema, g as scheduleGetOutputSchema, h as scheduleDetailSchema, i as eventBridgeSchedulerListTool, l as MAX_PAYLOAD_JSON, m as scheduleDeleteOutputSchema, n as eventBridgeSchedulerDeleteTool, o as eventBridgeSchedulerUpdateTool, p as scheduleCreateInputSchema, r as eventBridgeSchedulerGetTool, s as EventBridgeSchedulerClient, t as eventBridgeSchedulerCreateTool, u as MAX_SCHEDULE_NAME, v as scheduleListOutputSchema, x as scheduleSummarySchema, y as scheduleNameInputSchema } from "../../eventbridge-scheduler-CDmO2-Te.js";
|
|
2
2
|
export { EventBridgeSchedulerClient, MAX_LIST, MAX_PAYLOAD_JSON, MAX_SCHEDULE_NAME, MAX_TASK_REF, eventBridgeSchedulerAuthSchema, eventBridgeSchedulerCreateTool, eventBridgeSchedulerDeleteTool, eventBridgeSchedulerGetTool, eventBridgeSchedulerListTool, eventBridgeSchedulerModule, eventBridgeSchedulerUpdateTool, scheduleCreateInputSchema, scheduleDeleteOutputSchema, scheduleDetailSchema, scheduleGetOutputSchema, scheduleListInputSchema, scheduleListOutputSchema, scheduleNameInputSchema, scheduleStateSchema, scheduleSummarySchema, scheduleUpdateInputSchema, scheduleWriteOutputSchema };
|
|
@@ -1,80 +1,37 @@
|
|
|
1
|
-
import { a as ModuleDefinition, o as ToolContext,
|
|
1
|
+
import { a as ModuleDefinition, o as ToolContext, s as ToolDefinition } from "../../types-Ccb0DXY9.js";
|
|
2
2
|
import "../../index-CZX5OeOF.js";
|
|
3
3
|
import { t as ToolError } from "../../errors-aKhko9T1.js";
|
|
4
|
+
import { s as HttpServiceOptions } from "../../http-service-CerzWwQO.js";
|
|
4
5
|
import { a as createLiveMessage, i as TypingPulseDeps, n as LiveMessageDeps, o as createTypingPulse, r as TypingPulse, t as LiveMessage } from "../../transport-i96ACAI_.js";
|
|
5
6
|
import { z } from "zod";
|
|
6
|
-
import { SettableMessageReaction } from "@photon-ai/advanced-imessage/grpc";
|
|
7
7
|
//#region src/vendors/imessage/contracts.d.ts
|
|
8
8
|
/**
|
|
9
|
-
* Host auth for
|
|
9
|
+
* Host auth for the hosted photon-rest-proxy (REST → Spectrum gRPC).
|
|
10
|
+
* Credentials are forwarded per request; the proxy stores nothing.
|
|
10
11
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
12
|
+
* Proxy route map (package client → HTTP):
|
|
13
|
+
* - sendText → POST /v1/send
|
|
14
|
+
* - editText → POST /v1/edit
|
|
15
|
+
* - sendChatAction / stopTyping → POST /v1/typing
|
|
16
|
+
* - setReaction → POST /v1/react
|
|
17
|
+
* - clearReaction → POST /v1/clear-reaction (target message_id + emoji; proxy gap if not yet supported)
|
|
18
|
+
* - unsend → POST /v1/unsend
|
|
19
|
+
* - read → POST /v1/read
|
|
20
|
+
* - sendMedia → POST /v1/media
|
|
21
|
+
* - downloadFile → POST /v1/download (chat_id optional; proxy gap if still required)
|
|
22
|
+
* - ensureChat → POST /v1/ensure-chat (host-only; proxy gap until implemented)
|
|
21
23
|
*/
|
|
22
24
|
declare const imessageAuthSchema: z.ZodObject<{
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
server: z.ZodOptional<z.ZodString>;
|
|
28
|
-
spectrum_cloud_url: z.ZodOptional<z.ZodURL>;
|
|
29
|
-
spectrum_imessage_address: z.ZodOptional<z.ZodString>;
|
|
30
|
-
tls: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
base_url: z.ZodURL;
|
|
26
|
+
project_id: z.ZodString;
|
|
27
|
+
project_secret: z.ZodString;
|
|
28
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
31
29
|
}, z.core.$strip>;
|
|
32
30
|
type ImessageAuth = z.infer<typeof imessageAuthSchema>;
|
|
33
|
-
type ImessageSpectrumAuth = ImessageAuth & {
|
|
34
|
-
project_id: string;
|
|
35
|
-
project_secret: string;
|
|
36
|
-
};
|
|
37
|
-
/** Direct gRPC line credentials (host already minted a token). */
|
|
38
|
-
type ImessageGrpcAuth = ImessageAuth & {
|
|
39
|
-
address: string;
|
|
40
|
-
token: string;
|
|
41
|
-
};
|
|
42
|
-
declare function isImessageSpectrumAuth(auth: ImessageAuth): auth is ImessageSpectrumAuth;
|
|
43
|
-
/** Aliases for hosts that want a named schema export (same base + refine). */
|
|
44
|
-
declare const imessageSpectrumAuthSchema: z.ZodObject<{
|
|
45
|
-
project_id: z.ZodOptional<z.ZodString>;
|
|
46
|
-
project_secret: z.ZodOptional<z.ZodString>;
|
|
47
|
-
address: z.ZodOptional<z.ZodString>;
|
|
48
|
-
token: z.ZodOptional<z.ZodString>;
|
|
49
|
-
server: z.ZodOptional<z.ZodString>;
|
|
50
|
-
spectrum_cloud_url: z.ZodOptional<z.ZodURL>;
|
|
51
|
-
spectrum_imessage_address: z.ZodOptional<z.ZodString>;
|
|
52
|
-
tls: z.ZodOptional<z.ZodBoolean>;
|
|
53
|
-
}, z.core.$strip>;
|
|
54
|
-
declare const imessageGrpcAuthSchema: z.ZodObject<{
|
|
55
|
-
project_id: z.ZodOptional<z.ZodString>;
|
|
56
|
-
project_secret: z.ZodOptional<z.ZodString>;
|
|
57
|
-
address: z.ZodOptional<z.ZodString>;
|
|
58
|
-
token: z.ZodOptional<z.ZodString>;
|
|
59
|
-
server: z.ZodOptional<z.ZodString>;
|
|
60
|
-
spectrum_cloud_url: z.ZodOptional<z.ZodURL>;
|
|
61
|
-
spectrum_imessage_address: z.ZodOptional<z.ZodString>;
|
|
62
|
-
tls: z.ZodOptional<z.ZodBoolean>;
|
|
63
|
-
}, z.core.$strip>;
|
|
64
|
-
/** @deprecated Use imessageGrpcAuthSchema — pack is gRPC-only. */
|
|
65
|
-
declare const imessageMiddlewareAuthSchema: z.ZodObject<{
|
|
66
|
-
project_id: z.ZodOptional<z.ZodString>;
|
|
67
|
-
project_secret: z.ZodOptional<z.ZodString>;
|
|
68
|
-
address: z.ZodOptional<z.ZodString>;
|
|
69
|
-
token: z.ZodOptional<z.ZodString>;
|
|
70
|
-
server: z.ZodOptional<z.ZodString>;
|
|
71
|
-
spectrum_cloud_url: z.ZodOptional<z.ZodURL>;
|
|
72
|
-
spectrum_imessage_address: z.ZodOptional<z.ZodString>;
|
|
73
|
-
tls: z.ZodOptional<z.ZodBoolean>;
|
|
74
|
-
}, z.core.$strip>;
|
|
75
31
|
declare const imessageSendTextInputSchema: z.ZodObject<{
|
|
76
32
|
chat_id: z.ZodString;
|
|
77
33
|
text: z.ZodString;
|
|
34
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
78
35
|
}, z.core.$strip>;
|
|
79
36
|
declare const imessageMessageOutputSchema: z.ZodObject<{
|
|
80
37
|
message_id: z.ZodString;
|
|
@@ -84,6 +41,7 @@ declare const imessageEditTextInputSchema: z.ZodObject<{
|
|
|
84
41
|
chat_id: z.ZodString;
|
|
85
42
|
message_id: z.ZodString;
|
|
86
43
|
text: z.ZodString;
|
|
44
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
87
45
|
}, z.core.$strip>;
|
|
88
46
|
declare const imessageSendChatActionInputSchema: z.ZodObject<{
|
|
89
47
|
chat_id: z.ZodString;
|
|
@@ -100,19 +58,23 @@ declare const imessageSendChatActionInputSchema: z.ZodObject<{
|
|
|
100
58
|
upload_video_note: "upload_video_note";
|
|
101
59
|
upload_voice: "upload_voice";
|
|
102
60
|
}>;
|
|
61
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
103
62
|
}, z.core.$strip>;
|
|
104
63
|
declare const imessageSetReactionInputSchema: z.ZodObject<{
|
|
105
64
|
chat_id: z.ZodString;
|
|
106
65
|
message_id: z.ZodString;
|
|
107
66
|
emoji: z.ZodString;
|
|
67
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
108
68
|
}, z.core.$strip>;
|
|
109
69
|
declare const imessageUnsendInputSchema: z.ZodObject<{
|
|
110
70
|
chat_id: z.ZodString;
|
|
111
71
|
message_id: z.ZodString;
|
|
72
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
112
73
|
}, z.core.$strip>;
|
|
113
74
|
declare const imessageReadInputSchema: z.ZodObject<{
|
|
114
75
|
chat_id: z.ZodString;
|
|
115
76
|
message_id: z.ZodOptional<z.ZodString>;
|
|
77
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
116
78
|
}, z.core.$strip>;
|
|
117
79
|
declare const imessageOkOutputSchema: z.ZodObject<{
|
|
118
80
|
ok: z.ZodBoolean;
|
|
@@ -120,14 +82,14 @@ declare const imessageOkOutputSchema: z.ZodObject<{
|
|
|
120
82
|
}, z.core.$strip>;
|
|
121
83
|
declare const MAX_MEDIA_BYTES: number;
|
|
122
84
|
/**
|
|
123
|
-
* Clear a reaction
|
|
124
|
-
* `
|
|
125
|
-
* `emoji` must match what was set (tapback name or emoji character).
|
|
85
|
+
* Clear a reaction. `message_id` is the **target** message that was reacted to;
|
|
86
|
+
* `emoji` must match set-reaction. Proxy should clear by target+emoji (not reaction message id).
|
|
126
87
|
*/
|
|
127
88
|
declare const imessageClearReactionInputSchema: z.ZodObject<{
|
|
128
89
|
chat_id: z.ZodString;
|
|
129
90
|
message_id: z.ZodString;
|
|
130
91
|
emoji: z.ZodString;
|
|
92
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
131
93
|
}, z.core.$strip>;
|
|
132
94
|
declare const imessageSendMediaInputSchema: z.ZodObject<{
|
|
133
95
|
chat_id: z.ZodString;
|
|
@@ -139,11 +101,13 @@ declare const imessageSendMediaInputSchema: z.ZodObject<{
|
|
|
139
101
|
file_name: z.ZodString;
|
|
140
102
|
caption: z.ZodOptional<z.ZodString>;
|
|
141
103
|
content_type: z.ZodOptional<z.ZodString>;
|
|
104
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
142
105
|
}, z.core.$strip>;
|
|
143
106
|
declare const imessageDownloadFileInputSchema: z.ZodObject<{
|
|
144
107
|
file_id: z.ZodString;
|
|
145
108
|
file_name: z.ZodOptional<z.ZodString>;
|
|
146
109
|
chat_id: z.ZodOptional<z.ZodString>;
|
|
110
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
147
111
|
}, z.core.$strip>;
|
|
148
112
|
declare const imessageDownloadFileOutputSchema: z.ZodObject<{
|
|
149
113
|
file_name: z.ZodString;
|
|
@@ -151,14 +115,14 @@ declare const imessageDownloadFileOutputSchema: z.ZodObject<{
|
|
|
151
115
|
body_base64: z.ZodString;
|
|
152
116
|
}, z.core.$strip>;
|
|
153
117
|
/**
|
|
154
|
-
* Create (or resolve) a chat via
|
|
155
|
-
* Host-only proactive / contact-delivery path — not auto-run before sendText.
|
|
118
|
+
* Create (or resolve) a chat via proxy POST /v1/ensure-chat (host-only).
|
|
156
119
|
* One address = 1:1; two or more = group.
|
|
157
120
|
*/
|
|
158
121
|
declare const imessageEnsureChatInputSchema: z.ZodObject<{
|
|
159
122
|
addresses: z.ZodArray<z.ZodString>;
|
|
160
123
|
message: z.ZodOptional<z.ZodString>;
|
|
161
124
|
client_message_id: z.ZodOptional<z.ZodString>;
|
|
125
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
162
126
|
}, z.core.$strip>;
|
|
163
127
|
declare const imessageEnsureChatOutputSchema: z.ZodObject<{
|
|
164
128
|
chat_id: z.ZodString;
|
|
@@ -185,157 +149,66 @@ declare class ImessageClientError extends ToolError {
|
|
|
185
149
|
constructor(input: {
|
|
186
150
|
message: string;
|
|
187
151
|
failureKind: ImessageFailureKind;
|
|
188
|
-
|
|
152
|
+
status?: number;
|
|
153
|
+
code?: string;
|
|
189
154
|
cause?: unknown;
|
|
190
|
-
details?: Record<string, unknown>;
|
|
191
155
|
});
|
|
192
156
|
}
|
|
193
157
|
declare function isImessageDefiniteRejection(error: unknown): boolean;
|
|
194
158
|
declare function isImessageOutcomeUnknown(error: unknown): boolean;
|
|
195
|
-
/**
|
|
196
|
-
* Map free-form emoji / tapback string to Photon SettableMessageReaction.
|
|
197
|
-
* Known tapback names → kind; anything else → { kind: 'emoji', emoji }.
|
|
198
|
-
*/
|
|
199
|
-
declare function toSettableReaction(emoji: string): SettableMessageReaction;
|
|
200
159
|
//#endregion
|
|
201
160
|
//#region src/vendors/imessage/client.d.ts
|
|
202
|
-
|
|
203
|
-
* Spectrum Cloud token HTTP uses injectable `fetch` (tests).
|
|
204
|
-
* gRPC plane uses native Node/Bun channels (not Workers/edge).
|
|
205
|
-
*/
|
|
206
|
-
type ImessageClientOptions = {
|
|
207
|
-
fetch?: FetchLike | undefined;
|
|
208
|
-
signal?: AbortSignal | undefined;
|
|
209
|
-
};
|
|
161
|
+
type ImessageClientOptions = Pick<HttpServiceOptions, 'fetch' | 'signal'>;
|
|
210
162
|
declare class ImessageClient {
|
|
211
163
|
#private;
|
|
212
164
|
constructor(auth: ImessageAuth, options?: ImessageClientOptions);
|
|
213
165
|
static fromContext(ctx: ToolContext): ImessageClient;
|
|
214
166
|
/**
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*/
|
|
218
|
-
get server(): string | undefined;
|
|
219
|
-
/** Resolved gRPC host:port after `ready()` / first call. */
|
|
220
|
-
get grpcAddress(): string | undefined;
|
|
221
|
-
/** Resolve Spectrum tokens (if needed) and construct the gRPC SDK client. */
|
|
222
|
-
ready(): Promise<void>;
|
|
223
|
-
/** Release SDK resources. */
|
|
224
|
-
close(): Promise<void>;
|
|
225
|
-
/**
|
|
226
|
-
* Create a chat (1:1 or group) via Photon `chats.create`.
|
|
227
|
-
* Host-only: call once for contact / proactive delivery, store `chat_id`, then sendText.
|
|
228
|
-
* Does **not** run automatically before sendText — most threads already exist from inbound user messages.
|
|
167
|
+
* Create a chat (1:1 or group). Host-only; not an agent tool.
|
|
168
|
+
* Proxy: POST /v1/ensure-chat (fill on proxy if not yet shipped).
|
|
229
169
|
*/
|
|
230
170
|
ensureChat(input: ImessageEnsureChatInput): Promise<ImessageEnsureChatOutput>;
|
|
171
|
+
/** POST /v1/send */
|
|
231
172
|
sendText(input: ImessageSendTextInput): Promise<ImessageMessageOutput>;
|
|
173
|
+
/** POST /v1/edit */
|
|
232
174
|
editText(input: ImessageEditTextInput): Promise<ImessageMessageOutput>;
|
|
233
175
|
/**
|
|
176
|
+
* POST /v1/typing.
|
|
234
177
|
* Non-typing chat actions map to typing start (presentation parity with other channels).
|
|
235
178
|
*/
|
|
236
179
|
sendChatAction(input: ImessageSendChatActionInput): Promise<void>;
|
|
180
|
+
/** Stop typing indicator. */
|
|
237
181
|
stopTyping(input: {
|
|
238
182
|
chat_id: string;
|
|
183
|
+
phone?: string;
|
|
239
184
|
}): Promise<void>;
|
|
240
|
-
/**
|
|
241
|
-
* Add a tapback/emoji reaction. Returns the resulting message guid (store for journaling).
|
|
242
|
-
* Clear with clearReaction using the **same target message_id + emoji** (setReaction isSet=false).
|
|
243
|
-
*/
|
|
185
|
+
/** POST /v1/react — returns reaction/message guid for journaling. */
|
|
244
186
|
setReaction(input: ImessageSetReactionInput): Promise<ImessageMessageOutput>;
|
|
245
187
|
/**
|
|
246
|
-
*
|
|
188
|
+
* POST /v1/clear-reaction.
|
|
189
|
+
* Package contract: target message_id + emoji (same as setReaction).
|
|
190
|
+
* Proxy should clear by target+emoji; older proxies that only accept reaction message ids need a gap fill.
|
|
247
191
|
*/
|
|
248
192
|
clearReaction(input: ImessageClearReactionInput): Promise<void>;
|
|
193
|
+
/** POST /v1/unsend */
|
|
249
194
|
unsend(input: ImessageUnsendInput): Promise<void>;
|
|
250
|
-
/**
|
|
195
|
+
/** POST /v1/read */
|
|
251
196
|
read(input: ImessageReadInput): Promise<void>;
|
|
252
|
-
/**
|
|
253
|
-
* Upload bytes then send attachment by GUID. Optional caption as follow-up text.
|
|
254
|
-
*/
|
|
197
|
+
/** POST /v1/media */
|
|
255
198
|
sendMedia(input: ImessageSendMediaInput): Promise<ImessageMessageOutput>;
|
|
256
199
|
/**
|
|
257
|
-
*
|
|
200
|
+
* POST /v1/download.
|
|
201
|
+
* Prefer attachment guid alone; pass chat_id when the proxy still requires a space.
|
|
258
202
|
*/
|
|
259
203
|
downloadFile(input: ImessageDownloadFileInput): Promise<ImessageDownloadFileOutput>;
|
|
260
204
|
answerCallback(_input: unknown): Promise<void>;
|
|
261
205
|
}
|
|
262
206
|
//#endregion
|
|
263
|
-
//#region src/vendors/imessage/spectrum-cloud.d.ts
|
|
264
|
-
declare const DEFAULT_SPECTRUM_CLOUD_URL = "https://spectrum.photon.codes";
|
|
265
|
-
/**
|
|
266
|
-
* Shared-line gRPC host used by spectrum-ts (`SPECTRUM_IMESSAGE_ADDRESS` override).
|
|
267
|
-
* @see packages/imessage/src/auth.ts in spectrum-ts
|
|
268
|
-
*/
|
|
269
|
-
declare const DEFAULT_SPECTRUM_IMESSAGE_GRPC_ADDRESS = "imessage.spectrum.photon.codes:443";
|
|
270
|
-
type SpectrumSharedTokenData = {
|
|
271
|
-
type: 'shared';
|
|
272
|
-
token: string;
|
|
273
|
-
expiresIn: number;
|
|
274
|
-
};
|
|
275
|
-
type SpectrumDedicatedTokenData = {
|
|
276
|
-
type: 'dedicated';
|
|
277
|
-
auth: Record<string, string>;
|
|
278
|
-
numbers: Record<string, string | null>;
|
|
279
|
-
expiresIn: number;
|
|
280
|
-
};
|
|
281
|
-
type SpectrumImessageTokenData = SpectrumSharedTokenData | SpectrumDedicatedTokenData;
|
|
282
|
-
type ResolvedSpectrumSession = {
|
|
283
|
-
/** Temporary Advanced iMessage bearer. */
|
|
284
|
-
token: string;
|
|
285
|
-
/** Dedicated instance id for x-photon-server; omit for shared. */
|
|
286
|
-
server?: string;
|
|
287
|
-
expiresIn: number;
|
|
288
|
-
type: 'shared' | 'dedicated';
|
|
289
|
-
/** Phone numbers by instance when dedicated (informational). */
|
|
290
|
-
numbers?: Record<string, string | null>;
|
|
291
|
-
};
|
|
292
|
-
type SpectrumTokenSourceOptions = {
|
|
293
|
-
/** Must include project_id + project_secret (Spectrum path). */
|
|
294
|
-
auth: ImessageSpectrumAuth;
|
|
295
|
-
fetch?: FetchLike | undefined;
|
|
296
|
-
signal?: AbortSignal | undefined;
|
|
297
|
-
};
|
|
298
|
-
/**
|
|
299
|
-
* Parse Spectrum Cloud success body (`{ succeed, data }` or bare token payload).
|
|
300
|
-
*/
|
|
301
|
-
declare function parseSpectrumTokenResponse(body: unknown): SpectrumImessageTokenData;
|
|
302
|
-
/**
|
|
303
|
-
* Map Spectrum token payload + optional preferred instance → session fields for createGrpcClient.
|
|
304
|
-
*/
|
|
305
|
-
declare function resolveSpectrumSession(data: SpectrumImessageTokenData, preferredServer: string | undefined): ResolvedSpectrumSession;
|
|
306
|
-
/**
|
|
307
|
-
* gRPC `address` spectrum-ts uses after token mint.
|
|
308
|
-
* - shared → `imessage.spectrum.photon.codes:443` (or `spectrum_imessage_address`)
|
|
309
|
-
* - dedicated → `{instanceId}.imsg.photon.codes:443`
|
|
310
|
-
*/
|
|
311
|
-
declare function spectrumImessageGrpcAddress(session: ResolvedSpectrumSession, options?: {
|
|
312
|
-
sharedAddress?: string | undefined;
|
|
313
|
-
}): string;
|
|
314
|
-
declare function issueImessageTokens(auth: ImessageSpectrumAuth, options?: {
|
|
315
|
-
fetch?: FetchLike;
|
|
316
|
-
signal?: AbortSignal;
|
|
317
|
-
}): Promise<SpectrumImessageTokenData>;
|
|
318
|
-
/**
|
|
319
|
-
* Caches Spectrum temporary tokens and refreshes before expiry.
|
|
320
|
-
* `getBearer` is safe to pass as createGrpcClient `token: async () => …`.
|
|
321
|
-
*/
|
|
322
|
-
declare class SpectrumImessageTokenSource {
|
|
323
|
-
#private;
|
|
324
|
-
constructor(options: SpectrumTokenSourceOptions);
|
|
325
|
-
/** Dedicated instance id after the first successful mint (undefined for shared). */
|
|
326
|
-
get server(): string | undefined;
|
|
327
|
-
/** gRPC host:port for the current session (spectrum-ts routing). */
|
|
328
|
-
get grpcAddress(): string | undefined;
|
|
329
|
-
/** Ensure a session exists; returns routing fields for createGrpcClient. */
|
|
330
|
-
ensureReady(): Promise<ResolvedSpectrumSession>;
|
|
331
|
-
/** Temporary bearer for Advanced iMessage gRPC. */
|
|
332
|
-
getBearer(): Promise<string>;
|
|
333
|
-
}
|
|
334
|
-
//#endregion
|
|
335
207
|
//#region src/vendors/imessage/module.d.ts
|
|
336
208
|
declare const imessageSendTextTool: ToolDefinition<{
|
|
337
209
|
chat_id: string;
|
|
338
210
|
text: string;
|
|
211
|
+
phone?: string | undefined;
|
|
339
212
|
}, {
|
|
340
213
|
message_id: string;
|
|
341
214
|
space_id: string;
|
|
@@ -344,6 +217,7 @@ declare const imessageEditTextTool: ToolDefinition<{
|
|
|
344
217
|
chat_id: string;
|
|
345
218
|
message_id: string;
|
|
346
219
|
text: string;
|
|
220
|
+
phone?: string | undefined;
|
|
347
221
|
}, {
|
|
348
222
|
message_id: string;
|
|
349
223
|
space_id: string;
|
|
@@ -351,6 +225,7 @@ declare const imessageEditTextTool: ToolDefinition<{
|
|
|
351
225
|
declare const imessageSendChatActionTool: ToolDefinition<{
|
|
352
226
|
chat_id: string;
|
|
353
227
|
action: "choose_sticker" | "find_location" | "record_video" | "record_video_note" | "record_voice" | "typing" | "upload_document" | "upload_photo" | "upload_video" | "upload_video_note" | "upload_voice";
|
|
228
|
+
phone?: string | undefined;
|
|
354
229
|
}, {
|
|
355
230
|
ok: boolean;
|
|
356
231
|
space_id?: string | undefined;
|
|
@@ -359,6 +234,7 @@ declare const imessageSetReactionTool: ToolDefinition<{
|
|
|
359
234
|
chat_id: string;
|
|
360
235
|
message_id: string;
|
|
361
236
|
emoji: string;
|
|
237
|
+
phone?: string | undefined;
|
|
362
238
|
}, {
|
|
363
239
|
message_id: string;
|
|
364
240
|
space_id: string;
|
|
@@ -367,6 +243,7 @@ declare const imessageClearReactionTool: ToolDefinition<{
|
|
|
367
243
|
chat_id: string;
|
|
368
244
|
message_id: string;
|
|
369
245
|
emoji: string;
|
|
246
|
+
phone?: string | undefined;
|
|
370
247
|
}, {
|
|
371
248
|
ok: boolean;
|
|
372
249
|
space_id?: string | undefined;
|
|
@@ -374,6 +251,7 @@ declare const imessageClearReactionTool: ToolDefinition<{
|
|
|
374
251
|
declare const imessageUnsendTool: ToolDefinition<{
|
|
375
252
|
chat_id: string;
|
|
376
253
|
message_id: string;
|
|
254
|
+
phone?: string | undefined;
|
|
377
255
|
}, {
|
|
378
256
|
ok: boolean;
|
|
379
257
|
space_id?: string | undefined;
|
|
@@ -381,6 +259,7 @@ declare const imessageUnsendTool: ToolDefinition<{
|
|
|
381
259
|
declare const imessageReadTool: ToolDefinition<{
|
|
382
260
|
chat_id: string;
|
|
383
261
|
message_id?: string | undefined;
|
|
262
|
+
phone?: string | undefined;
|
|
384
263
|
}, {
|
|
385
264
|
ok: boolean;
|
|
386
265
|
space_id?: string | undefined;
|
|
@@ -392,6 +271,7 @@ declare const imessageSendMediaTool: ToolDefinition<{
|
|
|
392
271
|
file_name: string;
|
|
393
272
|
caption?: string | undefined;
|
|
394
273
|
content_type?: string | undefined;
|
|
274
|
+
phone?: string | undefined;
|
|
395
275
|
}, {
|
|
396
276
|
message_id: string;
|
|
397
277
|
space_id: string;
|
|
@@ -400,21 +280,18 @@ declare const imessageDownloadFileTool: ToolDefinition<{
|
|
|
400
280
|
file_id: string;
|
|
401
281
|
file_name?: string | undefined;
|
|
402
282
|
chat_id?: string | undefined;
|
|
283
|
+
phone?: string | undefined;
|
|
403
284
|
}, {
|
|
404
285
|
file_name: string;
|
|
405
286
|
file_size?: number | undefined;
|
|
406
287
|
body_base64: string;
|
|
407
288
|
}>;
|
|
408
289
|
declare const imessageModule: ModuleDefinition<{
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
server?: string | undefined;
|
|
414
|
-
spectrum_cloud_url?: string | undefined;
|
|
415
|
-
spectrum_imessage_address?: string | undefined;
|
|
416
|
-
tls?: boolean | undefined;
|
|
290
|
+
base_url: string;
|
|
291
|
+
project_id: string;
|
|
292
|
+
project_secret: string;
|
|
293
|
+
phone?: string | undefined;
|
|
417
294
|
}>;
|
|
418
295
|
//#endregion
|
|
419
|
-
export {
|
|
296
|
+
export { type ImessageAuth, type ImessageClearReactionInput, ImessageClient, ImessageClientError, type ImessageClientOptions, type ImessageDownloadFileInput, type ImessageDownloadFileOutput, type ImessageEditTextInput, type ImessageEnsureChatInput, type ImessageEnsureChatOutput, type ImessageMessageOutput, type ImessageReadInput, type ImessageSendChatActionInput, type ImessageSendMediaInput, type ImessageSendTextInput, type ImessageSetReactionInput, type ImessageUnsendInput, type LiveMessage, type LiveMessageDeps, MAX_MEDIA_BYTES, type TypingPulse, type TypingPulseDeps, createLiveMessage, createTypingPulse, imessageAuthSchema, imessageClearReactionInputSchema, imessageClearReactionTool, imessageDownloadFileInputSchema, imessageDownloadFileOutputSchema, imessageDownloadFileTool, imessageEditTextInputSchema, imessageEditTextTool, imessageEnsureChatInputSchema, imessageEnsureChatOutputSchema, imessageMessageOutputSchema, imessageModule, imessageOkOutputSchema, imessageReadInputSchema, imessageReadTool, imessageSendChatActionInputSchema, imessageSendChatActionTool, imessageSendMediaInputSchema, imessageSendMediaTool, imessageSendTextInputSchema, imessageSendTextTool, imessageSetReactionInputSchema, imessageSetReactionTool, imessageUnsendInputSchema, imessageUnsendTool, isImessageDefiniteRejection, isImessageOutcomeUnknown };
|
|
420
297
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/vendors/imessage/contracts.ts","../../../src/vendors/imessage/domain.ts","../../../src/vendors/imessage/client.ts","../../../src/vendors/imessage/
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/vendors/imessage/contracts.ts","../../../src/vendors/imessage/domain.ts","../../../src/vendors/imessage/client.ts","../../../src/vendors/imessage/module.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;cAkBa,oBAAkB,EAAA;;;;;GAS7B,EAAA,KAAA;KAEU,eAAe,EAAE,aAAa;cAgB7B,6BAA2B,EAAA;;;;GAItC,EAAA,KAAA;cAEW,6BAA2B,EAAA;;;GAGtC,EAAA,KAAA;cAEW,6BAA2B,EAAA;;;;;GAKtC,EAAA,KAAA;cAEW,mCAAiC,EAAA;;;;;;;;;;;;;;;;GAI5C,EAAA,KAAA;cAEW,gCAA8B,EAAA;;;;;GAWzC,EAAA,KAAA;cAEW,2BAAyB,EAAA;;;;GAIpC,EAAA,KAAA;cAEW,yBAAuB,EAAA;;;;GAQlC,EAAA,KAAA;cAEW,wBAAsB,EAAA;;;GAGjC,EAAA,KAAA;cAEW;;;;;cAMA,kCAAgC,EAAA;;;;;GAK3C,EAAA,KAAA;cAEW,8BAA4B,EAAA;;;;;;;;;;;GAQvC,EAAA,KAAA;cAEW,iCAA+B,EAAA;;;;;GAK1C,EAAA,KAAA;cAEW,kCAAgC,EAAA;;;;GAI3C,EAAA,KAAA;;;;;cAMW,+BAA6B,EAAA;;;;;GAYxC,EAAA,KAAA;cAEW,gCAA8B,EAAA;;;GAOzC,EAAA,KAAA;KAEU,wBAAwB,EAAE,aAAa;KACvC,wBAAwB,EAAE,aAAa;KACvC,wBAAwB,EAAE,aAAa;KACvC,8BAA8B,EAAE,aAAa;KAC7C,2BAA2B,EAAE,aAAa;KAC1C,sBAAsB,EAAE,aAAa;KACrC,oBAAoB,EAAE,aAAa;KACnC,6BAA6B,EAAE,aAAa;KAC5C,yBAAyB,EAAE,aAAa;KACxC,4BAA4B,EAAE,aAAa;KAC3C,6BAA6B,EAAE,aAAa;KAC5C,0BAA0B,EAAE,aAAa;KACzC,2BAA2B,EAAE,aAAa;;;KCjK1C;cAEC,4BAA4B;WAC/B,aAAa;EAEtB,YAAY;IACX;IACA,aAAa;IACb;IACA;IACA;;;iBAiBc,4BAA4B;iBAI5B,yBAAyB;;;KCJ7B,wBAAwB,KAAK;cAE5B;;EAIZ,YAAY,MAAM,cAAc,UAAS;SAsBlC,YAAY,KAAK,cAAc;;;;;EAsBhC,WAAW,OAAO,0BAA0B,QAAQ;;EAcpD,SAAS,OAAO,wBAAwB,QAAQ;;EAUhD,SAAS,OAAO,wBAAwB,QAAQ;;;;;EAwBhD,eAAe,OAAO,8BAA8B;;EASpD,WAAW;IAAS;IAAiB;MAAmB;;EASxD,YAAY,OAAO,2BAA2B,QAAQ;;;;;;EAiBtD,cAAc,OAAO,6BAA6B;;EAYlD,OAAO,OAAO,sBAAsB;;EASpC,KAAK,OAAO,oBAAoB;;EAWhC,UAAU,OAAO,yBAAyB,QAAQ;;;;;EASlD,aAAa,OAAO,4BAA4B,QAAQ;EASxD,eAAe,kBAAkB;;;;cCjN3B,sBAAA;;;;;;;;cAaA,sBAAA;;;;;;;;;cAYA,4BAAA;;;;;;;;cAeA,yBAAA;;;;;;;;;cAaA,2BAAA;;;;;;;;;cAgBA,oBAAA;;;;;;;;cAeA,kBAAA;;;;;;;;cAeA,uBAAA;;;;;;;;;;;;cAaA,0BAAA;;;;;;;;;;cAYA,gBAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as imessageUnsendInputSchema, C as imessageMessageOutputSchema, D as imessageSendMediaInputSchema, E as imessageSendChatActionInputSchema, O as imessageSendTextInputSchema, S as imessageEnsureChatOutputSchema, T as imessageReadInputSchema, _ as imessageClearReactionInputSchema, a as imessageReadTool, b as imessageEditTextInputSchema, c as imessageSendTextTool, d as ImessageClient, f as ImessageClientError, g as imessageAuthSchema, h as MAX_MEDIA_BYTES, i as imessageModule, k as imessageSetReactionInputSchema, l as imessageSetReactionTool, m as isImessageOutcomeUnknown, n as imessageDownloadFileTool, o as imessageSendChatActionTool, p as isImessageDefiniteRejection, r as imessageEditTextTool, s as imessageSendMediaTool, t as imessageClearReactionTool, u as imessageUnsendTool, v as imessageDownloadFileInputSchema, w as imessageOkOutputSchema, x as imessageEnsureChatInputSchema, y as imessageDownloadFileOutputSchema } from "../../imessage-Dsms04rC.js";
|
|
2
2
|
import { n as createTypingPulse, t as createLiveMessage } from "../../transport-B4vn-XiQ.js";
|
|
3
|
-
export {
|
|
3
|
+
export { ImessageClient, ImessageClientError, MAX_MEDIA_BYTES, createLiveMessage, createTypingPulse, imessageAuthSchema, imessageClearReactionInputSchema, imessageClearReactionTool, imessageDownloadFileInputSchema, imessageDownloadFileOutputSchema, imessageDownloadFileTool, imessageEditTextInputSchema, imessageEditTextTool, imessageEnsureChatInputSchema, imessageEnsureChatOutputSchema, imessageMessageOutputSchema, imessageModule, imessageOkOutputSchema, imessageReadInputSchema, imessageReadTool, imessageSendChatActionInputSchema, imessageSendChatActionTool, imessageSendMediaInputSchema, imessageSendMediaTool, imessageSendTextInputSchema, imessageSendTextTool, imessageSetReactionInputSchema, imessageSetReactionTool, imessageUnsendInputSchema, imessageUnsendTool, isImessageDefiniteRejection, isImessageOutcomeUnknown };
|