@5ss/ai-tools 3.0.0 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/{aws-service-msttbPrz.js → aws-service-Cn_ozX4X.js} +2 -2
  3. package/dist/{aws-service-msttbPrz.js.map → aws-service-Cn_ozX4X.js.map} +1 -1
  4. package/dist/{bedrock-agentcore-browser-o_oqSPMK.js → bedrock-agentcore-browser-DwDSP_YL.js} +2 -2
  5. package/dist/{bedrock-agentcore-browser-o_oqSPMK.js.map → bedrock-agentcore-browser-DwDSP_YL.js.map} +1 -1
  6. package/dist/{bedrock-agentcore-code-interpreter-D4ERRFj1.js → bedrock-agentcore-code-interpreter-F0dnrAm4.js} +2 -2
  7. package/dist/{bedrock-agentcore-code-interpreter-D4ERRFj1.js.map → bedrock-agentcore-code-interpreter-F0dnrAm4.js.map} +1 -1
  8. package/dist/{cloudflare-browser-nLJdH5nG.js → cloudflare-browser-D-HT43hu.js} +3 -3
  9. package/dist/{cloudflare-browser-nLJdH5nG.js.map → cloudflare-browser-D-HT43hu.js.map} +1 -1
  10. package/dist/{cloudflare-email-CSRq8mRd.js → cloudflare-email-BLI3z96V.js} +2 -2
  11. package/dist/{cloudflare-email-CSRq8mRd.js.map → cloudflare-email-BLI3z96V.js.map} +1 -1
  12. package/dist/{cloudflare-sandbox-Be7SeS4-.js → cloudflare-sandbox-6nX5lIev.js} +3 -3
  13. package/dist/{cloudflare-sandbox-Be7SeS4-.js.map → cloudflare-sandbox-6nX5lIev.js.map} +1 -1
  14. package/dist/{eventbridge-scheduler-BhQaReAz.js → eventbridge-scheduler-CDmO2-Te.js} +2 -2
  15. package/dist/{eventbridge-scheduler-BhQaReAz.js.map → eventbridge-scheduler-CDmO2-Te.js.map} +1 -1
  16. package/dist/http/index.d.ts.map +1 -1
  17. package/dist/http/index.js +2 -2
  18. package/dist/{http-service-DDNCO1s4.js → http-service-BMBIryAL.js} +2 -5
  19. package/dist/http-service-BMBIryAL.js.map +1 -0
  20. package/dist/{imessage-CH49-sFn.js → imessage-Dsms04rC.js} +2 -2
  21. package/dist/{imessage-CH49-sFn.js.map → imessage-Dsms04rC.js.map} +1 -1
  22. package/dist/modules/artifacts/index.js +1 -1
  23. package/dist/modules/browser/index.js +2 -2
  24. package/dist/modules/code-sandbox/index.js +2 -2
  25. package/dist/modules/document-extract/index.js +1 -1
  26. package/dist/modules/document-render/index.js +1 -1
  27. package/dist/modules/email/index.js +2 -2
  28. package/dist/modules/files/index.js +1 -1
  29. package/dist/modules/image/index.js +1 -1
  30. package/dist/modules/messaging/index.js +5 -5
  31. package/dist/modules/queue/index.js +1 -1
  32. package/dist/modules/rag/index.js +2 -2
  33. package/dist/modules/scheduler/index.js +1 -1
  34. package/dist/modules/vector-store/index.js +1 -1
  35. package/dist/modules/web-fetch/index.js +1 -1
  36. package/dist/{pinecone-CNnCFmix.js → pinecone-BvdXAZMi.js} +2 -2
  37. package/dist/{pinecone-CNnCFmix.js.map → pinecone-BvdXAZMi.js.map} +1 -1
  38. package/dist/{qdrant-R_FIcG9d.js → qdrant-D2E2Lxrw.js} +2 -2
  39. package/dist/{qdrant-R_FIcG9d.js.map → qdrant-D2E2Lxrw.js.map} +1 -1
  40. package/dist/{resend-Bu0NFO3h.js → resend-A2SnRdQ8.js} +2 -2
  41. package/dist/{resend-Bu0NFO3h.js.map → resend-A2SnRdQ8.js.map} +1 -1
  42. package/dist/{s3-Dj7Teh-A.js → s3-CoZQRTfe.js} +2 -2
  43. package/dist/{s3-Dj7Teh-A.js.map → s3-CoZQRTfe.js.map} +1 -1
  44. package/dist/{slack-AjJDNnXJ.js → slack-C9UJ0b61.js} +2 -2
  45. package/dist/{slack-AjJDNnXJ.js.map → slack-C9UJ0b61.js.map} +1 -1
  46. package/dist/{sqs-CjyXjasF.js → sqs-DxFnfODk.js} +2 -2
  47. package/dist/{sqs-CjyXjasF.js.map → sqs-DxFnfODk.js.map} +1 -1
  48. package/dist/{supabase-vector-BNoJZuft.js → supabase-vector-DT3qfnt2.js} +2 -2
  49. package/dist/{supabase-vector-BNoJZuft.js.map → supabase-vector-DT3qfnt2.js.map} +1 -1
  50. package/dist/{teams-CvxYLAi5.js → teams-NODh3i6U.js} +2 -2
  51. package/dist/{teams-CvxYLAi5.js.map → teams-NODh3i6U.js.map} +1 -1
  52. package/dist/{telegram-B_-Jljk3.js → telegram-CWMHBeKo.js} +2 -2
  53. package/dist/{telegram-B_-Jljk3.js.map → telegram-CWMHBeKo.js.map} +1 -1
  54. package/dist/{textract-CAfnGvua.js → textract-2jkPuRiE.js} +3 -3
  55. package/dist/{textract-CAfnGvua.js.map → textract-2jkPuRiE.js.map} +1 -1
  56. package/dist/{vector-store-DDiu3XPg.js → vector-store-CDQaQXFV.js} +4 -4
  57. package/dist/{vector-store-DDiu3XPg.js.map → vector-store-CDQaQXFV.js.map} +1 -1
  58. package/dist/vendors/amazon-sp-api/index.d.ts +1 -8
  59. package/dist/vendors/amazon-sp-api/index.d.ts.map +1 -1
  60. package/dist/vendors/amazon-sp-api/index.js +11 -22
  61. package/dist/vendors/amazon-sp-api/index.js.map +1 -1
  62. package/dist/vendors/bedrock-agentcore-browser/index.js +1 -1
  63. package/dist/vendors/bedrock-agentcore-code-interpreter/index.js +1 -1
  64. package/dist/vendors/cloudflare-browser/index.js +1 -1
  65. package/dist/vendors/cloudflare-email/index.js +1 -1
  66. package/dist/vendors/cloudflare-sandbox/index.js +1 -1
  67. package/dist/vendors/eventbridge-scheduler/index.js +1 -1
  68. package/dist/vendors/imessage/index.js +1 -1
  69. package/dist/vendors/katana/index.d.ts +112 -56
  70. package/dist/vendors/katana/index.d.ts.map +1 -1
  71. package/dist/vendors/katana/index.js +42 -16
  72. package/dist/vendors/katana/index.js.map +1 -1
  73. package/dist/vendors/pinecone/index.js +1 -1
  74. package/dist/vendors/qdrant/index.js +1 -1
  75. package/dist/vendors/resend/index.js +1 -1
  76. package/dist/vendors/s3/index.js +1 -1
  77. package/dist/vendors/slack/index.js +1 -1
  78. package/dist/vendors/sqs/index.js +1 -1
  79. package/dist/vendors/supabase-vector/index.js +1 -1
  80. package/dist/vendors/teams/index.js +1 -1
  81. package/dist/vendors/telegram/index.js +1 -1
  82. package/dist/vendors/textract/index.js +1 -1
  83. package/dist/vendors/woocommerce/index.js +1 -1
  84. package/package.json +12 -11
  85. package/dist/http-service-DDNCO1s4.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"vector-store-DDiu3XPg.js","names":["#client","#client","#client","#client","#ops"],"sources":["../src/modules/vector-store/contracts.ts","../src/modules/vector-store/providers/mastra.ts","../src/modules/vector-store/providers/pinecone.ts","../src/modules/vector-store/providers/qdrant.ts","../src/modules/vector-store/providers/supabase.ts","../src/modules/vector-store/client.ts","../src/modules/vector-store/module.ts"],"sourcesContent":["/**\n * Vector-store seam contracts — shared I/O from vendors/_vector + provider auth union.\n */\n\nimport { z } from 'zod'\n\nimport {\n\tdeleteVectorsInputSchema,\n\tdeleteVectorsOutputSchema,\n\tqueryVectorsInputSchema,\n\tqueryVectorsOutputSchema,\n\tupsertVectorsInputSchema,\n\tupsertVectorsOutputSchema,\n\tvectorMatchSchema,\n\tvectorMetadataSchema,\n\tvectorPointSchema\n} from '../../vendors/_vector'\nimport type {\n\tDeleteVectorsInput,\n\tDeleteVectorsOutput,\n\tQueryVectorsInput,\n\tQueryVectorsOutput,\n\tUpsertVectorsInput,\n\tUpsertVectorsOutput\n} from '../../vendors/_vector'\nimport { mastraVectorAuthSchema } from '../../vendors/mastra-vector'\nimport { pineconeAuthSchema } from '../../vendors/pinecone'\nimport { qdrantAuthSchema } from '../../vendors/qdrant'\nimport { supabaseVectorAuthSchema } from '../../vendors/supabase-vector'\n\nexport { MAX_TOP_K, MAX_VECTOR_BATCH, MAX_VECTOR_DIMENSIONS } from '../../vendors/_vector'\nexport {\n\tdeleteVectorsInputSchema,\n\tdeleteVectorsOutputSchema,\n\tqueryVectorsInputSchema,\n\tqueryVectorsOutputSchema,\n\tupsertVectorsInputSchema,\n\tupsertVectorsOutputSchema,\n\tvectorMatchSchema,\n\tvectorMetadataSchema,\n\tvectorPointSchema\n}\n\nexport type {\n\tDeleteVectorsInput,\n\tDeleteVectorsOutput,\n\tQueryVectorsInput,\n\tQueryVectorsOutput,\n\tUpsertVectorsInput,\n\tUpsertVectorsOutput,\n\tVectorMatch,\n\tVectorMetadata,\n\tVectorPoint\n} from '../../vendors/_vector'\n\nexport const qdrantVectorAuthSchema = qdrantAuthSchema.extend({\n\tprovider: z.literal('qdrant')\n})\n\nexport const pineconeVectorAuthSchema = pineconeAuthSchema.extend({\n\tprovider: z.literal('pinecone')\n})\n\nexport const supabaseVectorSeamAuthSchema = supabaseVectorAuthSchema.extend({\n\tprovider: z.literal('supabase')\n})\n\nexport const mastraVectorSeamAuthSchema = mastraVectorAuthSchema.extend({\n\tprovider: z.literal('mastra')\n})\n\nexport const vectorStoreAuthSchema = z.discriminatedUnion('provider', [\n\tqdrantVectorAuthSchema,\n\tpineconeVectorAuthSchema,\n\tsupabaseVectorSeamAuthSchema,\n\tmastraVectorSeamAuthSchema\n])\n\nexport type QdrantVectorAuth = z.infer<typeof qdrantVectorAuthSchema>\nexport type PineconeVectorAuth = z.infer<typeof pineconeVectorAuthSchema>\nexport type SupabaseVectorSeamAuth = z.infer<typeof supabaseVectorSeamAuthSchema>\nexport type MastraVectorSeamAuth = z.infer<typeof mastraVectorSeamAuthSchema>\nexport type VectorStoreAuth = z.infer<typeof vectorStoreAuthSchema>\n\n/** Shared seam surface — provider classes implement this. */\nexport type VectorStoreOps = {\n\tupsert: (input: UpsertVectorsInput) => Promise<UpsertVectorsOutput>\n\tquery: (input: QueryVectorsInput) => Promise<QueryVectorsOutput>\n\tdelete: (input: DeleteVectorsInput) => Promise<DeleteVectorsOutput>\n}\n","/**\n * Mastra PgVector provider for the vector-store seam. Wraps `MastraVectorClient`.\n */\n\nimport { MastraVectorClient } from '../../../vendors/mastra-vector'\nimport type { MastraVectorClientOptions } from '../../../vendors/mastra-vector'\nimport type {\n\tDeleteVectorsInput,\n\tMastraVectorSeamAuth,\n\tQueryVectorsInput,\n\tUpsertVectorsInput,\n\tVectorStoreOps\n} from '../contracts'\n\nexport type MastraVectorProviderOptions = MastraVectorClientOptions\n\nexport class MastraVectorStoreProvider implements VectorStoreOps {\n\treadonly #client: MastraVectorClient\n\n\tconstructor(auth: MastraVectorSeamAuth, options: MastraVectorProviderOptions = {}) {\n\t\tconst { provider: _p, ...vendorAuth } = auth\n\t\tthis.#client = new MastraVectorClient(vendorAuth, options)\n\t}\n\n\tupsert(input: UpsertVectorsInput) {\n\t\treturn this.#client.upsert(input)\n\t}\n\tquery(input: QueryVectorsInput) {\n\t\treturn this.#client.query(input)\n\t}\n\tdelete(input: DeleteVectorsInput) {\n\t\treturn this.#client.delete(input)\n\t}\n}\n","/**\n * Pinecone provider for the vector-store seam. Wraps `PineconeClient`.\n */\n\nimport type { HttpServiceOptions } from '../../../transport/http-service'\nimport { PineconeClient } from '../../../vendors/pinecone'\nimport type {\n\tDeleteVectorsInput,\n\tPineconeVectorAuth,\n\tQueryVectorsInput,\n\tUpsertVectorsInput,\n\tVectorStoreOps\n} from '../contracts'\n\nexport type PineconeVectorProviderOptions = {\n\tfetch?: HttpServiceOptions['fetch'] | undefined\n\tsignal?: HttpServiceOptions['signal'] | undefined\n}\n\nexport class PineconeVectorStoreProvider implements VectorStoreOps {\n\treadonly #client: PineconeClient\n\n\tconstructor(auth: PineconeVectorAuth, options: PineconeVectorProviderOptions = {}) {\n\t\tconst { provider: _p, ...vendorAuth } = auth\n\t\tthis.#client = new PineconeClient(vendorAuth, options)\n\t}\n\n\tupsert(input: UpsertVectorsInput) {\n\t\treturn this.#client.upsert(input)\n\t}\n\tquery(input: QueryVectorsInput) {\n\t\treturn this.#client.query(input)\n\t}\n\tdelete(input: DeleteVectorsInput) {\n\t\treturn this.#client.delete(input)\n\t}\n}\n","/**\n * Qdrant provider for the vector-store seam. Wraps `QdrantClient`.\n */\n\nimport type { HttpServiceOptions } from '../../../transport/http-service'\nimport { QdrantClient } from '../../../vendors/qdrant'\nimport type {\n\tDeleteVectorsInput,\n\tQdrantVectorAuth,\n\tQueryVectorsInput,\n\tUpsertVectorsInput,\n\tVectorStoreOps\n} from '../contracts'\n\nexport type QdrantVectorProviderOptions = {\n\tfetch?: HttpServiceOptions['fetch'] | undefined\n\tsignal?: HttpServiceOptions['signal'] | undefined\n}\n\nexport class QdrantVectorStoreProvider implements VectorStoreOps {\n\treadonly #client: QdrantClient\n\n\tconstructor(auth: QdrantVectorAuth, options: QdrantVectorProviderOptions = {}) {\n\t\tconst { provider: _p, ...vendorAuth } = auth\n\t\tthis.#client = new QdrantClient(vendorAuth, options)\n\t}\n\n\tupsert(input: UpsertVectorsInput) {\n\t\treturn this.#client.upsert(input)\n\t}\n\tquery(input: QueryVectorsInput) {\n\t\treturn this.#client.query(input)\n\t}\n\tdelete(input: DeleteVectorsInput) {\n\t\treturn this.#client.delete(input)\n\t}\n}\n","/**\n * Supabase pgvector provider for the vector-store seam. Wraps `SupabaseVectorClient`.\n */\n\nimport type { HttpServiceOptions } from '../../../transport/http-service'\nimport { SupabaseVectorClient } from '../../../vendors/supabase-vector'\nimport type {\n\tDeleteVectorsInput,\n\tQueryVectorsInput,\n\tSupabaseVectorSeamAuth,\n\tUpsertVectorsInput,\n\tVectorStoreOps\n} from '../contracts'\n\nexport type SupabaseVectorProviderOptions = {\n\tfetch?: HttpServiceOptions['fetch'] | undefined\n\tsignal?: HttpServiceOptions['signal'] | undefined\n}\n\nexport class SupabaseVectorStoreProvider implements VectorStoreOps {\n\treadonly #client: SupabaseVectorClient\n\n\tconstructor(auth: SupabaseVectorSeamAuth, options: SupabaseVectorProviderOptions = {}) {\n\t\tconst { provider: _p, ...vendorAuth } = auth\n\t\tthis.#client = new SupabaseVectorClient(vendorAuth, options)\n\t}\n\n\tupsert(input: UpsertVectorsInput) {\n\t\treturn this.#client.upsert(input)\n\t}\n\tquery(input: QueryVectorsInput) {\n\t\treturn this.#client.query(input)\n\t}\n\tdelete(input: DeleteVectorsInput) {\n\t\treturn this.#client.delete(input)\n\t}\n}\n","/**\n * Vector-store seam client — picks qdrant / pinecone / supabase / mastra from host auth.\n */\n\nimport { requireAuth } from '../../core/provider'\nimport type { ToolContext } from '../../core/types'\nimport { vectorStoreAuthSchema } from './contracts'\nimport type {\n\tDeleteVectorsInput,\n\tQueryVectorsInput,\n\tUpsertVectorsInput,\n\tVectorStoreAuth,\n\tVectorStoreOps\n} from './contracts'\nimport { MastraVectorStoreProvider } from './providers/mastra'\nimport { PineconeVectorStoreProvider } from './providers/pinecone'\nimport { QdrantVectorStoreProvider } from './providers/qdrant'\nimport { SupabaseVectorStoreProvider } from './providers/supabase'\n\nfunction transportOptions(ctx: ToolContext): { fetch?: ToolContext['fetch']; signal?: ToolContext['signal'] } {\n\tconst options: { fetch?: ToolContext['fetch']; signal?: ToolContext['signal'] } = {}\n\tif (ctx.fetch) options.fetch = ctx.fetch\n\tif (ctx.signal) options.signal = ctx.signal\n\treturn options\n}\n\nfunction providerFor(auth: VectorStoreAuth, ctx: ToolContext): VectorStoreOps {\n\tconst options = transportOptions(ctx)\n\tswitch (auth.provider) {\n\t\tcase 'qdrant':\n\t\t\treturn new QdrantVectorStoreProvider(auth, options)\n\t\tcase 'pinecone':\n\t\t\treturn new PineconeVectorStoreProvider(auth, options)\n\t\tcase 'supabase':\n\t\t\treturn new SupabaseVectorStoreProvider(auth, options)\n\t\tcase 'mastra':\n\t\t\treturn new MastraVectorStoreProvider(auth)\n\t}\n}\n\nexport class VectorStoreClient implements VectorStoreOps {\n\treadonly #ops: VectorStoreOps\n\n\tconstructor(ops: VectorStoreOps) {\n\t\tthis.#ops = ops\n\t}\n\n\tstatic fromContext(ctx: ToolContext): VectorStoreClient {\n\t\tconst auth = requireAuth(ctx, vectorStoreAuthSchema)\n\t\treturn new VectorStoreClient(providerFor(auth, ctx))\n\t}\n\n\tstatic fromAuth(auth: VectorStoreAuth, ctx: ToolContext = {}): VectorStoreClient {\n\t\treturn new VectorStoreClient(providerFor(auth, ctx))\n\t}\n\n\tupsert(input: UpsertVectorsInput) {\n\t\treturn this.#ops.upsert(input)\n\t}\n\n\tquery(input: QueryVectorsInput) {\n\t\treturn this.#ops.query(input)\n\t}\n\n\tdelete(input: DeleteVectorsInput) {\n\t\treturn this.#ops.delete(input)\n\t}\n}\n","import { defineModule, defineTool } from '../../core/define'\nimport { VectorStoreClient } from './client'\nimport {\n\tdeleteVectorsInputSchema,\n\tdeleteVectorsOutputSchema,\n\tqueryVectorsInputSchema,\n\tqueryVectorsOutputSchema,\n\tupsertVectorsInputSchema,\n\tupsertVectorsOutputSchema,\n\tvectorStoreAuthSchema\n} from './contracts'\n\nexport type { VectorStoreAuth } from './contracts'\nexport { vectorStoreAuthSchema }\n\nexport const vectorStoreUpsertTool = defineTool({\n\tid: 'vector-store-upsert',\n\tname: 'upsertVectors',\n\tdescription:\n\t\t'Upsert embedding vectors into the bound vector store. Provide stable ids, values, and optional flat metadata. Specify collection only when no default collection is configured.',\n\tinputSchema: upsertVectorsInputSchema,\n\toutputSchema: upsertVectorsOutputSchema,\n\tsideEffect: 'write',\n\truntime: 'node',\n\texecute: async (input, ctx) => VectorStoreClient.fromContext(ctx).upsert(input)\n})\n\nexport const vectorStoreQueryTool = defineTool({\n\tid: 'vector-store-query',\n\tname: 'queryVectors',\n\tdescription:\n\t\t'Nearest-neighbor query against the bound vector store. Returns matches with scores and optional metadata/values.',\n\tinputSchema: queryVectorsInputSchema,\n\toutputSchema: queryVectorsOutputSchema,\n\tsideEffect: 'read',\n\truntime: 'node',\n\texecute: async (input, ctx) => VectorStoreClient.fromContext(ctx).query(input)\n})\n\nexport const vectorStoreDeleteTool = defineTool({\n\tid: 'vector-store-delete',\n\tname: 'deleteVectors',\n\tdescription: 'Delete vectors by id from the bound vector store.',\n\tinputSchema: deleteVectorsInputSchema,\n\toutputSchema: deleteVectorsOutputSchema,\n\tsideEffect: 'delete',\n\truntime: 'node',\n\texecute: async (input, ctx) => VectorStoreClient.fromContext(ctx).delete(input)\n})\n\nexport const vectorStoreModule = defineModule({\n\tid: 'vector-store',\n\ttitle: 'Vector Store',\n\tdescription:\n\t\t'Upsert, query, and delete embedding vectors in the configured store. Use for vector operations, not text embedding or document chunking.',\n\truntime: 'node',\n\tauth: { type: 'custom', schema: vectorStoreAuthSchema },\n\tcategories: ['ai', 'vector'],\n\tclassification: 'pii',\n\ttags: ['upsert', 'query'],\n\ttools: [vectorStoreUpsertTool, vectorStoreQueryTool, vectorStoreDeleteTool]\n})\n"],"mappings":";;;;;;;;;;;;AAuDA,MAAa,yBAAyB,iBAAiB,OAAO,EAC7D,UAAU,EAAE,QAAQ,QAAQ,EAC7B,CAAC;AAED,MAAa,2BAA2B,mBAAmB,OAAO,EACjE,UAAU,EAAE,QAAQ,UAAU,EAC/B,CAAC;AAED,MAAa,+BAA+B,yBAAyB,OAAO,EAC3E,UAAU,EAAE,QAAQ,UAAU,EAC/B,CAAC;AAED,MAAa,6BAA6B,uBAAuB,OAAO,EACvE,UAAU,EAAE,QAAQ,QAAQ,EAC7B,CAAC;AAED,MAAa,wBAAwB,EAAE,mBAAmB,YAAY;CACrE;CACA;CACA;CACA;AACD,CAAC;;;;;;AC5DD,IAAa,4BAAb,MAAiE;CAChE;CAEA,YAAY,MAA4B,UAAuC,CAAC,GAAG;EAClF,MAAM,EAAE,UAAU,IAAI,GAAG,eAAe;EACxC,KAAKA,UAAU,IAAI,mBAAmB,YAAY,OAAO;CAC1D;CAEA,OAAO,OAA2B;EACjC,OAAO,KAAKA,QAAQ,OAAO,KAAK;CACjC;CACA,MAAM,OAA0B;EAC/B,OAAO,KAAKA,QAAQ,MAAM,KAAK;CAChC;CACA,OAAO,OAA2B;EACjC,OAAO,KAAKA,QAAQ,OAAO,KAAK;CACjC;AACD;;;ACdA,IAAa,8BAAb,MAAmE;CAClE;CAEA,YAAY,MAA0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;CACb,cAAc;CACd,YAAY;CACZ,SAAS;CACT,SAAS,OAAO,OAAO,QAAQ,kBAAkB,YAAY,GAAG,CAAC,CAAC,OAAO,KAAK;AAC/E,CAAC;AAED,MAAa,oBAAoB,aAAa;CAC7C,IAAI;CACJ,OAAO;CACP,aACC;CACD,SAAS;CACT,MAAM;EAAE,MAAM;EAAU,QAAQ;CAAsB;CACtD,YAAY,CAAC,MAAM,QAAQ;CAC3B,gBAAgB;CAChB,MAAM,CAAC,UAAU,OAAO;CACxB,OAAO;EAAC;EAAuB;EAAsB;CAAqB;AAC3E,CAAC"}
1
+ {"version":3,"file":"vector-store-CDQaQXFV.js","names":["#client","#client","#client","#client","#ops"],"sources":["../src/modules/vector-store/contracts.ts","../src/modules/vector-store/providers/mastra.ts","../src/modules/vector-store/providers/pinecone.ts","../src/modules/vector-store/providers/qdrant.ts","../src/modules/vector-store/providers/supabase.ts","../src/modules/vector-store/client.ts","../src/modules/vector-store/module.ts"],"sourcesContent":["/**\n * Vector-store seam contracts — shared I/O from vendors/_vector + provider auth union.\n */\n\nimport { z } from 'zod'\n\nimport {\n\tdeleteVectorsInputSchema,\n\tdeleteVectorsOutputSchema,\n\tqueryVectorsInputSchema,\n\tqueryVectorsOutputSchema,\n\tupsertVectorsInputSchema,\n\tupsertVectorsOutputSchema,\n\tvectorMatchSchema,\n\tvectorMetadataSchema,\n\tvectorPointSchema\n} from '../../vendors/_vector'\nimport type {\n\tDeleteVectorsInput,\n\tDeleteVectorsOutput,\n\tQueryVectorsInput,\n\tQueryVectorsOutput,\n\tUpsertVectorsInput,\n\tUpsertVectorsOutput\n} from '../../vendors/_vector'\nimport { mastraVectorAuthSchema } from '../../vendors/mastra-vector'\nimport { pineconeAuthSchema } from '../../vendors/pinecone'\nimport { qdrantAuthSchema } from '../../vendors/qdrant'\nimport { supabaseVectorAuthSchema } from '../../vendors/supabase-vector'\n\nexport { MAX_TOP_K, MAX_VECTOR_BATCH, MAX_VECTOR_DIMENSIONS } from '../../vendors/_vector'\nexport {\n\tdeleteVectorsInputSchema,\n\tdeleteVectorsOutputSchema,\n\tqueryVectorsInputSchema,\n\tqueryVectorsOutputSchema,\n\tupsertVectorsInputSchema,\n\tupsertVectorsOutputSchema,\n\tvectorMatchSchema,\n\tvectorMetadataSchema,\n\tvectorPointSchema\n}\n\nexport type {\n\tDeleteVectorsInput,\n\tDeleteVectorsOutput,\n\tQueryVectorsInput,\n\tQueryVectorsOutput,\n\tUpsertVectorsInput,\n\tUpsertVectorsOutput,\n\tVectorMatch,\n\tVectorMetadata,\n\tVectorPoint\n} from '../../vendors/_vector'\n\nexport const qdrantVectorAuthSchema = qdrantAuthSchema.extend({\n\tprovider: z.literal('qdrant')\n})\n\nexport const pineconeVectorAuthSchema = pineconeAuthSchema.extend({\n\tprovider: z.literal('pinecone')\n})\n\nexport const supabaseVectorSeamAuthSchema = supabaseVectorAuthSchema.extend({\n\tprovider: z.literal('supabase')\n})\n\nexport const mastraVectorSeamAuthSchema = mastraVectorAuthSchema.extend({\n\tprovider: z.literal('mastra')\n})\n\nexport const vectorStoreAuthSchema = z.discriminatedUnion('provider', [\n\tqdrantVectorAuthSchema,\n\tpineconeVectorAuthSchema,\n\tsupabaseVectorSeamAuthSchema,\n\tmastraVectorSeamAuthSchema\n])\n\nexport type QdrantVectorAuth = z.infer<typeof qdrantVectorAuthSchema>\nexport type PineconeVectorAuth = z.infer<typeof pineconeVectorAuthSchema>\nexport type SupabaseVectorSeamAuth = z.infer<typeof supabaseVectorSeamAuthSchema>\nexport type MastraVectorSeamAuth = z.infer<typeof mastraVectorSeamAuthSchema>\nexport type VectorStoreAuth = z.infer<typeof vectorStoreAuthSchema>\n\n/** Shared seam surface — provider classes implement this. */\nexport type VectorStoreOps = {\n\tupsert: (input: UpsertVectorsInput) => Promise<UpsertVectorsOutput>\n\tquery: (input: QueryVectorsInput) => Promise<QueryVectorsOutput>\n\tdelete: (input: DeleteVectorsInput) => Promise<DeleteVectorsOutput>\n}\n","/**\n * Mastra PgVector provider for the vector-store seam. Wraps `MastraVectorClient`.\n */\n\nimport { MastraVectorClient } from '../../../vendors/mastra-vector'\nimport type { MastraVectorClientOptions } from '../../../vendors/mastra-vector'\nimport type {\n\tDeleteVectorsInput,\n\tMastraVectorSeamAuth,\n\tQueryVectorsInput,\n\tUpsertVectorsInput,\n\tVectorStoreOps\n} from '../contracts'\n\nexport type MastraVectorProviderOptions = MastraVectorClientOptions\n\nexport class MastraVectorStoreProvider implements VectorStoreOps {\n\treadonly #client: MastraVectorClient\n\n\tconstructor(auth: MastraVectorSeamAuth, options: MastraVectorProviderOptions = {}) {\n\t\tconst { provider: _p, ...vendorAuth } = auth\n\t\tthis.#client = new MastraVectorClient(vendorAuth, options)\n\t}\n\n\tupsert(input: UpsertVectorsInput) {\n\t\treturn this.#client.upsert(input)\n\t}\n\tquery(input: QueryVectorsInput) {\n\t\treturn this.#client.query(input)\n\t}\n\tdelete(input: DeleteVectorsInput) {\n\t\treturn this.#client.delete(input)\n\t}\n}\n","/**\n * Pinecone provider for the vector-store seam. Wraps `PineconeClient`.\n */\n\nimport type { HttpServiceOptions } from '../../../transport/http-service'\nimport { PineconeClient } from '../../../vendors/pinecone'\nimport type {\n\tDeleteVectorsInput,\n\tPineconeVectorAuth,\n\tQueryVectorsInput,\n\tUpsertVectorsInput,\n\tVectorStoreOps\n} from '../contracts'\n\nexport type PineconeVectorProviderOptions = {\n\tfetch?: HttpServiceOptions['fetch'] | undefined\n\tsignal?: HttpServiceOptions['signal'] | undefined\n}\n\nexport class PineconeVectorStoreProvider implements VectorStoreOps {\n\treadonly #client: PineconeClient\n\n\tconstructor(auth: PineconeVectorAuth, options: PineconeVectorProviderOptions = {}) {\n\t\tconst { provider: _p, ...vendorAuth } = auth\n\t\tthis.#client = new PineconeClient(vendorAuth, options)\n\t}\n\n\tupsert(input: UpsertVectorsInput) {\n\t\treturn this.#client.upsert(input)\n\t}\n\tquery(input: QueryVectorsInput) {\n\t\treturn this.#client.query(input)\n\t}\n\tdelete(input: DeleteVectorsInput) {\n\t\treturn this.#client.delete(input)\n\t}\n}\n","/**\n * Qdrant provider for the vector-store seam. Wraps `QdrantClient`.\n */\n\nimport type { HttpServiceOptions } from '../../../transport/http-service'\nimport { QdrantClient } from '../../../vendors/qdrant'\nimport type {\n\tDeleteVectorsInput,\n\tQdrantVectorAuth,\n\tQueryVectorsInput,\n\tUpsertVectorsInput,\n\tVectorStoreOps\n} from '../contracts'\n\nexport type QdrantVectorProviderOptions = {\n\tfetch?: HttpServiceOptions['fetch'] | undefined\n\tsignal?: HttpServiceOptions['signal'] | undefined\n}\n\nexport class QdrantVectorStoreProvider implements VectorStoreOps {\n\treadonly #client: QdrantClient\n\n\tconstructor(auth: QdrantVectorAuth, options: QdrantVectorProviderOptions = {}) {\n\t\tconst { provider: _p, ...vendorAuth } = auth\n\t\tthis.#client = new QdrantClient(vendorAuth, options)\n\t}\n\n\tupsert(input: UpsertVectorsInput) {\n\t\treturn this.#client.upsert(input)\n\t}\n\tquery(input: QueryVectorsInput) {\n\t\treturn this.#client.query(input)\n\t}\n\tdelete(input: DeleteVectorsInput) {\n\t\treturn this.#client.delete(input)\n\t}\n}\n","/**\n * Supabase pgvector provider for the vector-store seam. Wraps `SupabaseVectorClient`.\n */\n\nimport type { HttpServiceOptions } from '../../../transport/http-service'\nimport { SupabaseVectorClient } from '../../../vendors/supabase-vector'\nimport type {\n\tDeleteVectorsInput,\n\tQueryVectorsInput,\n\tSupabaseVectorSeamAuth,\n\tUpsertVectorsInput,\n\tVectorStoreOps\n} from '../contracts'\n\nexport type SupabaseVectorProviderOptions = {\n\tfetch?: HttpServiceOptions['fetch'] | undefined\n\tsignal?: HttpServiceOptions['signal'] | undefined\n}\n\nexport class SupabaseVectorStoreProvider implements VectorStoreOps {\n\treadonly #client: SupabaseVectorClient\n\n\tconstructor(auth: SupabaseVectorSeamAuth, options: SupabaseVectorProviderOptions = {}) {\n\t\tconst { provider: _p, ...vendorAuth } = auth\n\t\tthis.#client = new SupabaseVectorClient(vendorAuth, options)\n\t}\n\n\tupsert(input: UpsertVectorsInput) {\n\t\treturn this.#client.upsert(input)\n\t}\n\tquery(input: QueryVectorsInput) {\n\t\treturn this.#client.query(input)\n\t}\n\tdelete(input: DeleteVectorsInput) {\n\t\treturn this.#client.delete(input)\n\t}\n}\n","/**\n * Vector-store seam client — picks qdrant / pinecone / supabase / mastra from host auth.\n */\n\nimport { requireAuth } from '../../core/provider'\nimport type { ToolContext } from '../../core/types'\nimport { vectorStoreAuthSchema } from './contracts'\nimport type {\n\tDeleteVectorsInput,\n\tQueryVectorsInput,\n\tUpsertVectorsInput,\n\tVectorStoreAuth,\n\tVectorStoreOps\n} from './contracts'\nimport { MastraVectorStoreProvider } from './providers/mastra'\nimport { PineconeVectorStoreProvider } from './providers/pinecone'\nimport { QdrantVectorStoreProvider } from './providers/qdrant'\nimport { SupabaseVectorStoreProvider } from './providers/supabase'\n\nfunction transportOptions(ctx: ToolContext): { fetch?: ToolContext['fetch']; signal?: ToolContext['signal'] } {\n\tconst options: { fetch?: ToolContext['fetch']; signal?: ToolContext['signal'] } = {}\n\tif (ctx.fetch) options.fetch = ctx.fetch\n\tif (ctx.signal) options.signal = ctx.signal\n\treturn options\n}\n\nfunction providerFor(auth: VectorStoreAuth, ctx: ToolContext): VectorStoreOps {\n\tconst options = transportOptions(ctx)\n\tswitch (auth.provider) {\n\t\tcase 'qdrant':\n\t\t\treturn new QdrantVectorStoreProvider(auth, options)\n\t\tcase 'pinecone':\n\t\t\treturn new PineconeVectorStoreProvider(auth, options)\n\t\tcase 'supabase':\n\t\t\treturn new SupabaseVectorStoreProvider(auth, options)\n\t\tcase 'mastra':\n\t\t\treturn new MastraVectorStoreProvider(auth)\n\t}\n}\n\nexport class VectorStoreClient implements VectorStoreOps {\n\treadonly #ops: VectorStoreOps\n\n\tconstructor(ops: VectorStoreOps) {\n\t\tthis.#ops = ops\n\t}\n\n\tstatic fromContext(ctx: ToolContext): VectorStoreClient {\n\t\tconst auth = requireAuth(ctx, vectorStoreAuthSchema)\n\t\treturn new VectorStoreClient(providerFor(auth, ctx))\n\t}\n\n\tstatic fromAuth(auth: VectorStoreAuth, ctx: ToolContext = {}): VectorStoreClient {\n\t\treturn new VectorStoreClient(providerFor(auth, ctx))\n\t}\n\n\tupsert(input: UpsertVectorsInput) {\n\t\treturn this.#ops.upsert(input)\n\t}\n\n\tquery(input: QueryVectorsInput) {\n\t\treturn this.#ops.query(input)\n\t}\n\n\tdelete(input: DeleteVectorsInput) {\n\t\treturn this.#ops.delete(input)\n\t}\n}\n","import { defineModule, defineTool } from '../../core/define'\nimport { VectorStoreClient } from './client'\nimport {\n\tdeleteVectorsInputSchema,\n\tdeleteVectorsOutputSchema,\n\tqueryVectorsInputSchema,\n\tqueryVectorsOutputSchema,\n\tupsertVectorsInputSchema,\n\tupsertVectorsOutputSchema,\n\tvectorStoreAuthSchema\n} from './contracts'\n\nexport type { VectorStoreAuth } from './contracts'\nexport { vectorStoreAuthSchema }\n\nexport const vectorStoreUpsertTool = defineTool({\n\tid: 'vector-store-upsert',\n\tname: 'upsertVectors',\n\tdescription:\n\t\t'Upsert embedding vectors into the bound vector store. Provide stable ids, values, and optional flat metadata. Specify collection only when no default collection is configured.',\n\tinputSchema: upsertVectorsInputSchema,\n\toutputSchema: upsertVectorsOutputSchema,\n\tsideEffect: 'write',\n\truntime: 'node',\n\texecute: async (input, ctx) => VectorStoreClient.fromContext(ctx).upsert(input)\n})\n\nexport const vectorStoreQueryTool = defineTool({\n\tid: 'vector-store-query',\n\tname: 'queryVectors',\n\tdescription:\n\t\t'Nearest-neighbor query against the bound vector store. Returns matches with scores and optional metadata/values.',\n\tinputSchema: queryVectorsInputSchema,\n\toutputSchema: queryVectorsOutputSchema,\n\tsideEffect: 'read',\n\truntime: 'node',\n\texecute: async (input, ctx) => VectorStoreClient.fromContext(ctx).query(input)\n})\n\nexport const vectorStoreDeleteTool = defineTool({\n\tid: 'vector-store-delete',\n\tname: 'deleteVectors',\n\tdescription: 'Delete vectors by id from the bound vector store.',\n\tinputSchema: deleteVectorsInputSchema,\n\toutputSchema: deleteVectorsOutputSchema,\n\tsideEffect: 'delete',\n\truntime: 'node',\n\texecute: async (input, ctx) => VectorStoreClient.fromContext(ctx).delete(input)\n})\n\nexport const vectorStoreModule = defineModule({\n\tid: 'vector-store',\n\ttitle: 'Vector Store',\n\tdescription:\n\t\t'Upsert, query, and delete embedding vectors in the configured store. Use for vector operations, not text embedding or document chunking.',\n\truntime: 'node',\n\tauth: { type: 'custom', schema: vectorStoreAuthSchema },\n\tcategories: ['ai', 'vector'],\n\tclassification: 'pii',\n\ttags: ['upsert', 'query'],\n\ttools: [vectorStoreUpsertTool, vectorStoreQueryTool, vectorStoreDeleteTool]\n})\n"],"mappings":";;;;;;;;;;;;AAuDA,MAAa,yBAAyB,iBAAiB,OAAO,EAC7D,UAAU,EAAE,QAAQ,QAAQ,EAC7B,CAAC;AAED,MAAa,2BAA2B,mBAAmB,OAAO,EACjE,UAAU,EAAE,QAAQ,UAAU,EAC/B,CAAC;AAED,MAAa,+BAA+B,yBAAyB,OAAO,EAC3E,UAAU,EAAE,QAAQ,UAAU,EAC/B,CAAC;AAED,MAAa,6BAA6B,uBAAuB,OAAO,EACvE,UAAU,EAAE,QAAQ,QAAQ,EAC7B,CAAC;AAED,MAAa,wBAAwB,EAAE,mBAAmB,YAAY;CACrE;CACA;CACA;CACA;AACD,CAAC;;;;;;AC5DD,IAAa,4BAAb,MAAiE;CAChE;CAEA,YAAY,MAA4B,UAAuC,CAAC,GAAG;EAClF,MAAM,EAAE,UAAU,IAAI,GAAG,eAAe;EACxC,KAAKA,UAAU,IAAI,mBAAmB,YAAY,OAAO;CAC1D;CAEA,OAAO,OAA2B;EACjC,OAAO,KAAKA,QAAQ,OAAO,KAAK;CACjC;CACA,MAAM,OAA0B;EAC/B,OAAO,KAAKA,QAAQ,MAAM,KAAK;CAChC;CACA,OAAO,OAA2B;EACjC,OAAO,KAAKA,QAAQ,OAAO,K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,MAAa,wBAAwB,WAAW;CAC/C,IAAI;CACJ,MAAM;CACN,aAAa;CACb,aAAa;CACb,cAAc;CACd,YAAY;CACZ,SAAS;CACT,SAAS,OAAO,OAAO,QAAQ,kBAAkB,YAAY,GAAG,CAAC,CAAC,OAAO,KAAK;AAC/E,CAAC;AAED,MAAa,oBAAoB,aAAa;CAC7C,IAAI;CACJ,OAAO;CACP,aACC;CACD,SAAS;CACT,MAAM;EAAE,MAAM;EAAU,QAAQ;CAAsB;CACtD,YAAY,CAAC,MAAM,QAAQ;CAC3B,gBAAgB;CAChB,MAAM,CAAC,UAAU,OAAO;CACxB,OAAO;EAAC;EAAuB;EAAsB;CAAqB;AAC3E,CAAC"}
@@ -724,13 +724,6 @@ declare const amazonSpApiListReportsTool: ToolDefinition<{
724
724
  next_cursor?: string | undefined;
725
725
  truncated: boolean;
726
726
  }>;
727
- declare const amazonSpApiGetReportDocumentTool: ToolDefinition<{
728
- report_document_id: string;
729
- }, {
730
- document_id: string;
731
- url: string;
732
- compression_algorithm?: string | undefined;
733
- }>;
734
727
  declare const amazonSpApiSearchCatalogItemsTool: ToolDefinition<{
735
728
  keywords: string[];
736
729
  marketplace_ids?: string[] | undefined;
@@ -771,5 +764,5 @@ declare const amazonSpApiModule: ModuleDefinition<{
771
764
  user_agent: string;
772
765
  }>;
773
766
  //#endregion
774
- export { type AmazonInventorySummaryRaw, type AmazonReportRaw, type AmazonSpApiAuth, type AmazonSpApiCatalogItem, AmazonSpApiClient, type AmazonSpApiClientOptions, type AmazonSpApiCreateReportInput, type AmazonSpApiCreateReportOutput, type AmazonSpApiDownloadReportDocumentBytesInput, type AmazonSpApiDownloadReportDocumentBytesOutput, type AmazonSpApiGetOrderInput, type AmazonSpApiGetOrderItemsInput, type AmazonSpApiGetOrderItemsOutput, type AmazonSpApiGetOrderOutput, type AmazonSpApiGetReportDocumentInput, type AmazonSpApiGetReportDocumentOutput, type AmazonSpApiGetReportInput, type AmazonSpApiGetReportOutput, type AmazonSpApiGetSettlementSummaryInput, type AmazonSpApiGetSettlementSummaryOutput, type AmazonSpApiInventoryPageInput, type AmazonSpApiInventoryPageOutput, type AmazonSpApiInventorySummary, type AmazonSpApiListInventorySummariesInput, type AmazonSpApiListInventorySummariesOutput, type AmazonSpApiListOrdersInput, type AmazonSpApiListOrdersOutput, type AmazonSpApiListReportsContinuationInput, type AmazonSpApiListReportsInitialInput, type AmazonSpApiListReportsInput, type AmazonSpApiListReportsOutput, type AmazonSpApiListReportsPageInput, type AmazonSpApiListReportsPageOutput, type AmazonSpApiLwaTokenResponse, type AmazonSpApiOrder, type AmazonSpApiOrderItem, type AmazonSpApiReport, type AmazonSpApiSearchCatalogItemsInput, type AmazonSpApiSearchCatalogItemsOutput, type AmazonSpApiSearchOrder, type AmazonSpApiSearchOrdersInput, type AmazonSpApiSearchOrdersOutput, type AmazonSpApiSettlementSummary, amazonInventoryDetailsRawSchema, amazonInventoryResearchingQuantityBreakdownRawSchema, amazonInventoryResearchingQuantityRawSchema, amazonInventoryReservedQuantityRawSchema, amazonInventorySummaryRawSchema, amazonInventoryUnfulfillableQuantityRawSchema, amazonReportRawSchema, amazonSpApiAuthSchema, amazonSpApiCatalogItemSchema, amazonSpApiCreateReportInputSchema, amazonSpApiCreateReportOutputSchema, amazonSpApiCreateReportTool, amazonSpApiDownloadReportDocumentBytesInputSchema, amazonSpApiDownloadReportDocumentBytesOutputSchema, amazonSpApiEndpointSchema, amazonSpApiGetOrderInputSchema, amazonSpApiGetOrderItemsInputSchema, amazonSpApiGetOrderItemsOutputSchema, amazonSpApiGetOrderItemsTool, amazonSpApiGetOrderOutputSchema, amazonSpApiGetOrderTool, amazonSpApiGetReportDocumentInputSchema, amazonSpApiGetReportDocumentOutputSchema, amazonSpApiGetReportDocumentTool, amazonSpApiGetReportInputSchema, amazonSpApiGetReportOutputSchema, amazonSpApiGetReportTool, amazonSpApiGetSettlementSummaryInputSchema, amazonSpApiGetSettlementSummaryOutputSchema, amazonSpApiGetSettlementSummaryTool, amazonSpApiInventoryPageInputSchema, amazonSpApiInventoryPageOutputSchema, amazonSpApiInventorySummarySchema, amazonSpApiListInventorySummariesInputSchema, amazonSpApiListInventorySummariesOutputSchema, amazonSpApiListInventorySummariesTool, amazonSpApiListOrdersInputSchema, amazonSpApiListOrdersOutputSchema, amazonSpApiListOrdersTool, amazonSpApiListReportsContinuationInputSchema, amazonSpApiListReportsInitialInputSchema, amazonSpApiListReportsInputSchema, amazonSpApiListReportsOutputSchema, amazonSpApiListReportsPageInputSchema, amazonSpApiListReportsPageOutputSchema, amazonSpApiListReportsTool, amazonSpApiLwaTokenResponseSchema, amazonSpApiModule, amazonSpApiOrderItemSchema, amazonSpApiOrderSchema, amazonSpApiReportSchema, amazonSpApiSearchCatalogItemsInputSchema, amazonSpApiSearchCatalogItemsOutputSchema, amazonSpApiSearchCatalogItemsTool, amazonSpApiSearchOrderSchema, amazonSpApiSearchOrdersInputSchema, amazonSpApiSearchOrdersOutputSchema, amazonSpApiSearchOrdersTool, amazonSpApiSettlementSummarySchema };
767
+ export { type AmazonInventorySummaryRaw, type AmazonReportRaw, type AmazonSpApiAuth, type AmazonSpApiCatalogItem, AmazonSpApiClient, type AmazonSpApiClientOptions, type AmazonSpApiCreateReportInput, type AmazonSpApiCreateReportOutput, type AmazonSpApiDownloadReportDocumentBytesInput, type AmazonSpApiDownloadReportDocumentBytesOutput, type AmazonSpApiGetOrderInput, type AmazonSpApiGetOrderItemsInput, type AmazonSpApiGetOrderItemsOutput, type AmazonSpApiGetOrderOutput, type AmazonSpApiGetReportDocumentInput, type AmazonSpApiGetReportDocumentOutput, type AmazonSpApiGetReportInput, type AmazonSpApiGetReportOutput, type AmazonSpApiGetSettlementSummaryInput, type AmazonSpApiGetSettlementSummaryOutput, type AmazonSpApiInventoryPageInput, type AmazonSpApiInventoryPageOutput, type AmazonSpApiInventorySummary, type AmazonSpApiListInventorySummariesInput, type AmazonSpApiListInventorySummariesOutput, type AmazonSpApiListOrdersInput, type AmazonSpApiListOrdersOutput, type AmazonSpApiListReportsContinuationInput, type AmazonSpApiListReportsInitialInput, type AmazonSpApiListReportsInput, type AmazonSpApiListReportsOutput, type AmazonSpApiListReportsPageInput, type AmazonSpApiListReportsPageOutput, type AmazonSpApiLwaTokenResponse, type AmazonSpApiOrder, type AmazonSpApiOrderItem, type AmazonSpApiReport, type AmazonSpApiSearchCatalogItemsInput, type AmazonSpApiSearchCatalogItemsOutput, type AmazonSpApiSearchOrder, type AmazonSpApiSearchOrdersInput, type AmazonSpApiSearchOrdersOutput, type AmazonSpApiSettlementSummary, amazonInventoryDetailsRawSchema, amazonInventoryResearchingQuantityBreakdownRawSchema, amazonInventoryResearchingQuantityRawSchema, amazonInventoryReservedQuantityRawSchema, amazonInventorySummaryRawSchema, amazonInventoryUnfulfillableQuantityRawSchema, amazonReportRawSchema, amazonSpApiAuthSchema, amazonSpApiCatalogItemSchema, amazonSpApiCreateReportInputSchema, amazonSpApiCreateReportOutputSchema, amazonSpApiCreateReportTool, amazonSpApiDownloadReportDocumentBytesInputSchema, amazonSpApiDownloadReportDocumentBytesOutputSchema, amazonSpApiEndpointSchema, amazonSpApiGetOrderInputSchema, amazonSpApiGetOrderItemsInputSchema, amazonSpApiGetOrderItemsOutputSchema, amazonSpApiGetOrderItemsTool, amazonSpApiGetOrderOutputSchema, amazonSpApiGetOrderTool, amazonSpApiGetReportDocumentInputSchema, amazonSpApiGetReportDocumentOutputSchema, amazonSpApiGetReportInputSchema, amazonSpApiGetReportOutputSchema, amazonSpApiGetReportTool, amazonSpApiGetSettlementSummaryInputSchema, amazonSpApiGetSettlementSummaryOutputSchema, amazonSpApiGetSettlementSummaryTool, amazonSpApiInventoryPageInputSchema, amazonSpApiInventoryPageOutputSchema, amazonSpApiInventorySummarySchema, amazonSpApiListInventorySummariesInputSchema, amazonSpApiListInventorySummariesOutputSchema, amazonSpApiListInventorySummariesTool, amazonSpApiListOrdersInputSchema, amazonSpApiListOrdersOutputSchema, amazonSpApiListOrdersTool, amazonSpApiListReportsContinuationInputSchema, amazonSpApiListReportsInitialInputSchema, amazonSpApiListReportsInputSchema, amazonSpApiListReportsOutputSchema, amazonSpApiListReportsPageInputSchema, amazonSpApiListReportsPageOutputSchema, amazonSpApiListReportsTool, amazonSpApiLwaTokenResponseSchema, amazonSpApiModule, amazonSpApiOrderItemSchema, amazonSpApiOrderSchema, amazonSpApiReportSchema, amazonSpApiSearchCatalogItemsInputSchema, amazonSpApiSearchCatalogItemsOutputSchema, amazonSpApiSearchCatalogItemsTool, amazonSpApiSearchOrderSchema, amazonSpApiSearchOrdersInputSchema, amazonSpApiSearchOrdersOutputSchema, amazonSpApiSearchOrdersTool, amazonSpApiSettlementSummarySchema };
775
768
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/vendors/amazon-sp-api/contracts.ts","../../../src/vendors/amazon-sp-api/client.ts","../../../src/vendors/amazon-sp-api/module.ts"],"mappings":";;;;;;cAGa,2BAAyB,EAAA;;;;;cAMzB,uBAAqB,EAAA;;;;;;;;;;;GAWhC,EAAA,KAAA;KAEU,kBAAkB,EAAE,aAAa;cAEhC,mCAAiC,EAAA;;;;GAI5C,EAAA,KAAA;KAEU,8BAA8B,EAAE,aAAa;cAI5C,kCAAgC,EAAA;;;;;;;;GAY3C,EAAA,KAAA;cAEW,wBAAsB,EAAA;;;;;;;;;GASjC,EAAA,KAAA;cAEW,mCAAiC,EAAA;;;;;;;;;;;;;GAI5C,EAAA,KAAA;cAEW,gCAA8B,EAAA;;GAEzC,EAAA,KAAA;cAEW,iCAA+B,EAAA;;;;;;;;;;;GAE1C,EAAA,KAAA;cAEW,qCAAmC,EAAA;;;GAG9C,EAAA,KAAA;cAEW,4BAA0B,EAAA;;;;;;;;;GASrC,EAAA,KAAA;cAEW,sCAAoC,EAAA;;;;;;;;;;;;;;GAK/C,EAAA,KAAA;cAIW,oCAAkC,EAAA;;;;;;;GAmB7C,EAAA,KAAA;cAEW,8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;;;;;;;;;;;cAYA,4BAAA;;;;;;;;;;;;;;;;;;;;;;;cAYA,kCAAA;;;;;;;cAYA,mCAAA;;;;;;;;;;;;;;;;;;cAYA,qCAAA;;;;;;;;;;;;;cAYA,mBAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/vendors/amazon-sp-api/contracts.ts","../../../src/vendors/amazon-sp-api/client.ts","../../../src/vendors/amazon-sp-api/module.ts"],"mappings":";;;;;;cAGa,2BAAyB,EAAA;;;;;cAMzB,uBAAqB,EAAA;;;;;;;;;;;GAWhC,EAAA,KAAA;KAEU,kBAAkB,EAAE,aAAa;cAEhC,mCAAiC,EAAA;;;;GAI5C,EAAA,KAAA;KAEU,8BAA8B,EAAE,aAAa;cAI5C,kCAAgC,EAAA;;;;;;;;GAY3C,EAAA,KAAA;cAEW,wBAAsB,EAAA;;;;;;;;;GASjC,EAAA,KAAA;cAEW,mCAAiC,EAAA;;;;;;;;;;;;;GAI5C,EAAA,KAAA;cAEW,gCAA8B,EAAA;;GAEzC,EAAA,KAAA;cAEW,iCAA+B,EAAA;;;;;;;;;;;GAE1C,EAAA,KAAA;cAEW,qCAAmC,EAAA;;;GAG9C,EAAA,KAAA;cAEW,4BAA0B,EAAA;;;;;;;;;GASrC,EAAA,KAAA;cAEW,sCAAoC,EAAA;;;;;;;;;;;;;;GAK/C,EAAA,KAAA;cAIW,oCAAkC,EAAA;;;;;;;GAmB7C,EAAA,KAAA;cAEW,8BAA4B,EAAA;;;;GAIvC,EAAA,KAAA;cAEW,qCAAmC,EAAA;;;;;;;;GAI9C,EAAA,KAAA;cA+BW,qCAAmC,EAAA,uBAAA,EAAA;;;;;;;;;GAW7C,EAAA,KAAA;cAEU,0CAAwC,EAAA;;;;;GAKnD,EAAA,KAAA;cAEW,sDAAoD,EAAA;;;;;;;GAG/D,EAAA,KAAA;cAEW,6CAA2C,EAAA;;;;;;;;;;GAGtD,EAAA,KAAA;cAEW,+CAA6C,EAAA;;;;;;;;GAQxD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8BAA8B,EAAE,aAAa;KAC7C,oBAAoB,EAAE,aAAa;KACnC,yBAAyB,EAAE,aAAa;;;KC1ZxC,2BAA2B,KAAK;cAE/B;;EASZ,YAAY,MAAM,iBAAiB,UAAS;SAyBrC,YAAY,KAAK,cAAc;;EA4ChC,WAAW,QAAO,6BAAkC,QAAQ;;EA2B5D,SAAS,OAAO,2BAA2B,QAAQ;;EASnD,cAAc,OAAO,gCAAgC,QAAQ;;;;;;EAqB7D,aAAa,OAAO,+BAA+B,QAAQ;;EAsC3D,0BAA0B,OAAO,gCAAgC,QAAQ;;EAkCzE,uBACL,QAAO,yCACL,QAAQ;;EA6CL,aAAa,OAAO,+BAA+B,QAAQ;;EAkB3D,UAAU,OAAO,4BAA4B,QAAQ;;EASrD,YAAY,OAAO,8BAA8B,QAAQ;;EA6BzD,gBAAgB,OAAO,kCAAkC,QAAQ;;EA6BjE,kBAAkB,OAAO,oCAAoC,QAAQ;;EASrE,4BACL,OAAO,8CACL,QAAQ;;;;;;EA+CL,qBACL,QAAO,uCACL,QAAQ;;EAqDL,mBAAmB,OAAO,qCAAqC,QAAQ;;;;cCzfjE,2BAAA;;;;;;;;;;;;;;;;;;;;;;cAYA,yBAAA;;;;;;;;;;;;;;cAWA,8BAAA;;;;;;;;;;;;;;;;;;cAWA,6BAAA;;;;;;;;;;;;;;;;cAYA,uCAAA;;;;;;;;;;;;;;;;;cAYA,6BAAA;;;;;mBAAA;;;;cAYA,0BAAA;;;;;;;;;;;;;;cAYA,4BAAA;;;;;;;;;;;;;;;;;;;;;;;cAYA,mCAAA;;;;;;;;;;;;;;;;;;cAYA,qCAAA;;;;;;;;;;;;;cAYA,mBAAA"}
@@ -1,7 +1,7 @@
1
1
  import { t as ToolError } from "../../errors-DoSpNHvs.js";
2
2
  import { n as defineModule, r as defineTool } from "../../define-ieoksEQ0.js";
3
3
  import { n as requireAuth } from "../../provider-CgDAlg6K.js";
4
- import { t as HttpService } from "../../http-service-DDNCO1s4.js";
4
+ import { t as HttpService } from "../../http-service-BMBIryAL.js";
5
5
  import { r as bytesToUtf8 } from "../../bytes-BxpimpQx.js";
6
6
  import { z } from "zod";
7
7
  import { createRequire } from "module";
@@ -923,7 +923,7 @@ try {
923
923
  function reportDocumentError(message, code) {
924
924
  throw new ToolError(message, { code });
925
925
  }
926
- async function decompressReportDocumentBytes(bytes, compressionAlgorithm, maxBytes) {
926
+ function decompressReportDocumentBytes(bytes, compressionAlgorithm, maxBytes) {
927
927
  if (bytes.byteLength > maxBytes) reportDocumentError("Amazon report document exceeds max_bytes", "too_large");
928
928
  if (!compressionAlgorithm) return bytes;
929
929
  if (compressionAlgorithm.toUpperCase() !== "GZIP") reportDocumentError(`Unsupported Amazon report compression: ${compressionAlgorithm}`, "unsupported");
@@ -986,10 +986,10 @@ function parseUsMoneyToSafeCents(raw) {
986
986
  return n;
987
987
  }
988
988
  /** Decompress GZIP when report document uses compressionAlgorithm GZIP. */
989
- async function maybeGunzipReportBytes(bytes, compressionAlgorithm) {
989
+ function maybeGunzipReportBytes(bytes, compressionAlgorithm) {
990
990
  if (bytes.byteLength > 16777216) settlementError("Settlement report compressed body exceeds limit", "too_large");
991
991
  try {
992
- return await decompressReportDocumentBytes(bytes, compressionAlgorithm, SETTLEMENT_MAX_DECOMPRESSED_BYTES);
992
+ return decompressReportDocumentBytes(bytes, compressionAlgorithm, SETTLEMENT_MAX_DECOMPRESSED_BYTES);
993
993
  } catch (error) {
994
994
  if (error instanceof ToolError && error.code === "too_large") settlementError("Settlement report decompressed body exceeds limit", "too_large");
995
995
  if (error instanceof ToolError && error.code === "unsupported") throw error;
@@ -1066,9 +1066,9 @@ function parseSettlementV2Tsv(text) {
1066
1066
  };
1067
1067
  }
1068
1068
  /** Decode UTF-8 document bytes (after optional gunzip) and parse summary. */
1069
- async function summarizeSettlementDocument(bytes, compressionAlgorithm) {
1069
+ function summarizeSettlementDocument(bytes, compressionAlgorithm) {
1070
1070
  if (!compressionAlgorithm && bytes.byteLength > 67108864) settlementError("Settlement report body exceeds limit", "too_large");
1071
- const plain = await maybeGunzipReportBytes(bytes, compressionAlgorithm);
1071
+ const plain = maybeGunzipReportBytes(bytes, compressionAlgorithm);
1072
1072
  if (plain.byteLength > 67108864) settlementError("Settlement report body exceeds limit", "too_large");
1073
1073
  return parseSettlementV2Tsv(new TextDecoder("utf-8", { fatal: false }).decode(plain));
1074
1074
  }
@@ -1354,7 +1354,7 @@ var AmazonSpApiClient = class AmazonSpApiClient {
1354
1354
  details: { issues: parsedInput.error.issues.map((issue) => issue.message) }
1355
1355
  });
1356
1356
  const document = await this.getReportDocument({ report_document_id: parsedInput.data.report_document_id });
1357
- return await this.#downloadReportDocumentDescriptor(document, parsedInput.data.max_bytes);
1357
+ return this.#downloadReportDocumentDescriptor(document, parsedInput.data.max_bytes);
1358
1358
  }
1359
1359
  async #downloadReportDocumentDescriptor(document, maxBytes) {
1360
1360
  let compressionAlgorithm;
@@ -1366,7 +1366,7 @@ var AmazonSpApiClient = class AmazonSpApiClient {
1366
1366
  label: "Amazon SP-API report document",
1367
1367
  maxBytes
1368
1368
  });
1369
- const bytes = await decompressReportDocumentBytes(result.bytes, compressionAlgorithm, maxBytes);
1369
+ const bytes = decompressReportDocumentBytes(result.bytes, compressionAlgorithm, maxBytes);
1370
1370
  const contentType = result.headers.get("content-type") ?? void 0;
1371
1371
  const contentEncoding = result.headers.get("content-encoding") ?? void 0;
1372
1372
  return {
@@ -1390,7 +1390,7 @@ var AmazonSpApiClient = class AmazonSpApiClient {
1390
1390
  label: "Amazon SP-API settlement document",
1391
1391
  maxBytes: SETTLEMENT_MAX_COMPRESSED_BYTES
1392
1392
  });
1393
- return await summarizeSettlementDocument(bytes, doc.compression_algorithm);
1393
+ return summarizeSettlementDocument(bytes, doc.compression_algorithm);
1394
1394
  }
1395
1395
  async #resolveSettlementReportDocumentId(input) {
1396
1396
  if (input.report_id) {
@@ -1518,16 +1518,6 @@ const amazonSpApiListReportsTool = defineTool({
1518
1518
  runtime: "both",
1519
1519
  execute: async (input, ctx) => AmazonSpApiClient.fromContext(ctx).listReports(input)
1520
1520
  });
1521
- const amazonSpApiGetReportDocumentTool = defineTool({
1522
- id: "amazon-sp-api-get-report-document",
1523
- name: "amazonSpApiGetReportDocument",
1524
- description: "Get a downloadable Amazon SP-API report document (document_id, url, optional compression_algorithm). Does not download the file body.",
1525
- inputSchema: amazonSpApiGetReportDocumentInputSchema,
1526
- outputSchema: amazonSpApiGetReportDocumentOutputSchema,
1527
- sideEffect: "read",
1528
- runtime: "both",
1529
- execute: async (input, ctx) => AmazonSpApiClient.fromContext(ctx).getReportDocument(input)
1530
- });
1531
1521
  const amazonSpApiSearchCatalogItemsTool = defineTool({
1532
1522
  id: "amazon-sp-api-search-catalog-items",
1533
1523
  name: "amazonSpApiSearchCatalogItems",
@@ -1551,7 +1541,7 @@ const amazonSpApiGetSettlementSummaryTool = defineTool({
1551
1541
  const amazonSpApiModule = defineModule({
1552
1542
  id: "amazon-sp-api",
1553
1543
  title: "Amazon SP-API",
1554
- description: "Amazon Selling Partner API vendor pack: orders v0 and SearchOrders v2026, order items, FBA inventory summaries, reports (create/get/list/document), settlement V2 summary, and catalog item search.",
1544
+ description: "Amazon Selling Partner API vendor pack: orders v0 and SearchOrders v2026, order items, FBA inventory summaries, reports (create/get/list), settlement V2 summary, and catalog item search.",
1555
1545
  runtime: "both",
1556
1546
  auth: {
1557
1547
  type: "custom",
@@ -1573,12 +1563,11 @@ const amazonSpApiModule = defineModule({
1573
1563
  amazonSpApiCreateReportTool,
1574
1564
  amazonSpApiGetReportTool,
1575
1565
  amazonSpApiListReportsTool,
1576
- amazonSpApiGetReportDocumentTool,
1577
1566
  amazonSpApiGetSettlementSummaryTool,
1578
1567
  amazonSpApiSearchCatalogItemsTool
1579
1568
  ]
1580
1569
  });
1581
1570
  //#endregion
1582
- export { AmazonSpApiClient, amazonInventoryDetailsRawSchema, amazonInventoryResearchingQuantityBreakdownRawSchema, amazonInventoryResearchingQuantityRawSchema, amazonInventoryReservedQuantityRawSchema, amazonInventorySummaryRawSchema, amazonInventoryUnfulfillableQuantityRawSchema, amazonReportRawSchema, amazonSpApiAuthSchema, amazonSpApiCatalogItemSchema, amazonSpApiCreateReportInputSchema, amazonSpApiCreateReportOutputSchema, amazonSpApiCreateReportTool, amazonSpApiDownloadReportDocumentBytesInputSchema, amazonSpApiDownloadReportDocumentBytesOutputSchema, amazonSpApiEndpointSchema, amazonSpApiGetOrderInputSchema, amazonSpApiGetOrderItemsInputSchema, amazonSpApiGetOrderItemsOutputSchema, amazonSpApiGetOrderItemsTool, amazonSpApiGetOrderOutputSchema, amazonSpApiGetOrderTool, amazonSpApiGetReportDocumentInputSchema, amazonSpApiGetReportDocumentOutputSchema, amazonSpApiGetReportDocumentTool, amazonSpApiGetReportInputSchema, amazonSpApiGetReportOutputSchema, amazonSpApiGetReportTool, amazonSpApiGetSettlementSummaryInputSchema, amazonSpApiGetSettlementSummaryOutputSchema, amazonSpApiGetSettlementSummaryTool, amazonSpApiInventoryPageInputSchema, amazonSpApiInventoryPageOutputSchema, amazonSpApiInventorySummarySchema, amazonSpApiListInventorySummariesInputSchema, amazonSpApiListInventorySummariesOutputSchema, amazonSpApiListInventorySummariesTool, amazonSpApiListOrdersInputSchema, amazonSpApiListOrdersOutputSchema, amazonSpApiListOrdersTool, amazonSpApiListReportsContinuationInputSchema, amazonSpApiListReportsInitialInputSchema, amazonSpApiListReportsInputSchema, amazonSpApiListReportsOutputSchema, amazonSpApiListReportsPageInputSchema, amazonSpApiListReportsPageOutputSchema, amazonSpApiListReportsTool, amazonSpApiLwaTokenResponseSchema, amazonSpApiModule, amazonSpApiOrderItemSchema, amazonSpApiOrderSchema, amazonSpApiReportSchema, amazonSpApiSearchCatalogItemsInputSchema, amazonSpApiSearchCatalogItemsOutputSchema, amazonSpApiSearchCatalogItemsTool, amazonSpApiSearchOrderSchema, amazonSpApiSearchOrdersInputSchema, amazonSpApiSearchOrdersOutputSchema, amazonSpApiSearchOrdersTool, amazonSpApiSettlementSummarySchema };
1571
+ export { AmazonSpApiClient, amazonInventoryDetailsRawSchema, amazonInventoryResearchingQuantityBreakdownRawSchema, amazonInventoryResearchingQuantityRawSchema, amazonInventoryReservedQuantityRawSchema, amazonInventorySummaryRawSchema, amazonInventoryUnfulfillableQuantityRawSchema, amazonReportRawSchema, amazonSpApiAuthSchema, amazonSpApiCatalogItemSchema, amazonSpApiCreateReportInputSchema, amazonSpApiCreateReportOutputSchema, amazonSpApiCreateReportTool, amazonSpApiDownloadReportDocumentBytesInputSchema, amazonSpApiDownloadReportDocumentBytesOutputSchema, amazonSpApiEndpointSchema, amazonSpApiGetOrderInputSchema, amazonSpApiGetOrderItemsInputSchema, amazonSpApiGetOrderItemsOutputSchema, amazonSpApiGetOrderItemsTool, amazonSpApiGetOrderOutputSchema, amazonSpApiGetOrderTool, amazonSpApiGetReportDocumentInputSchema, amazonSpApiGetReportDocumentOutputSchema, amazonSpApiGetReportInputSchema, amazonSpApiGetReportOutputSchema, amazonSpApiGetReportTool, amazonSpApiGetSettlementSummaryInputSchema, amazonSpApiGetSettlementSummaryOutputSchema, amazonSpApiGetSettlementSummaryTool, amazonSpApiInventoryPageInputSchema, amazonSpApiInventoryPageOutputSchema, amazonSpApiInventorySummarySchema, amazonSpApiListInventorySummariesInputSchema, amazonSpApiListInventorySummariesOutputSchema, amazonSpApiListInventorySummariesTool, amazonSpApiListOrdersInputSchema, amazonSpApiListOrdersOutputSchema, amazonSpApiListOrdersTool, amazonSpApiListReportsContinuationInputSchema, amazonSpApiListReportsInitialInputSchema, amazonSpApiListReportsInputSchema, amazonSpApiListReportsOutputSchema, amazonSpApiListReportsPageInputSchema, amazonSpApiListReportsPageOutputSchema, amazonSpApiListReportsTool, amazonSpApiLwaTokenResponseSchema, amazonSpApiModule, amazonSpApiOrderItemSchema, amazonSpApiOrderSchema, amazonSpApiReportSchema, amazonSpApiSearchCatalogItemsInputSchema, amazonSpApiSearchCatalogItemsOutputSchema, amazonSpApiSearchCatalogItemsTool, amazonSpApiSearchOrderSchema, amazonSpApiSearchOrdersInputSchema, amazonSpApiSearchOrdersOutputSchema, amazonSpApiSearchOrdersTool, amazonSpApiSettlementSummarySchema };
1583
1572
 
1584
1573
  //# sourceMappingURL=index.js.map