@mastra/client-js 0.0.0-consolidate-changesets-20250904042643 → 0.0.0-cor235-20251008175106

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 (43) hide show
  1. package/CHANGELOG.md +511 -35
  2. package/README.md +6 -10
  3. package/dist/client.d.ts +37 -43
  4. package/dist/client.d.ts.map +1 -1
  5. package/dist/index.cjs +670 -797
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.d.ts +1 -0
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +669 -798
  10. package/dist/index.js.map +1 -1
  11. package/dist/resources/agent-builder.d.ts +14 -2
  12. package/dist/resources/agent-builder.d.ts.map +1 -1
  13. package/dist/resources/agent.d.ts +66 -37
  14. package/dist/resources/agent.d.ts.map +1 -1
  15. package/dist/resources/index.d.ts +0 -2
  16. package/dist/resources/index.d.ts.map +1 -1
  17. package/dist/resources/mcp-tool.d.ts +2 -1
  18. package/dist/resources/mcp-tool.d.ts.map +1 -1
  19. package/dist/resources/observability.d.ts +17 -1
  20. package/dist/resources/observability.d.ts.map +1 -1
  21. package/dist/resources/tool.d.ts +2 -1
  22. package/dist/resources/tool.d.ts.map +1 -1
  23. package/dist/resources/vector.d.ts +5 -2
  24. package/dist/resources/vector.d.ts.map +1 -1
  25. package/dist/resources/workflow.d.ts +128 -13
  26. package/dist/resources/workflow.d.ts.map +1 -1
  27. package/dist/tools.d.ts +22 -0
  28. package/dist/tools.d.ts.map +1 -0
  29. package/dist/types.d.ts +66 -64
  30. package/dist/types.d.ts.map +1 -1
  31. package/dist/utils/index.d.ts +2 -0
  32. package/dist/utils/index.d.ts.map +1 -1
  33. package/dist/utils/process-mastra-stream.d.ts +5 -1
  34. package/dist/utils/process-mastra-stream.d.ts.map +1 -1
  35. package/package.json +8 -11
  36. package/dist/adapters/agui.d.ts +0 -23
  37. package/dist/adapters/agui.d.ts.map +0 -1
  38. package/dist/resources/legacy-workflow.d.ts +0 -87
  39. package/dist/resources/legacy-workflow.d.ts.map +0 -1
  40. package/dist/resources/network.d.ts +0 -30
  41. package/dist/resources/network.d.ts.map +0 -1
  42. package/dist/resources/vNextNetwork.d.ts +0 -42
  43. package/dist/resources/vNextNetwork.d.ts.map +0 -1
@@ -1,42 +0,0 @@
1
- import type { RuntimeContext } from '@mastra/core/runtime-context';
2
- import type { WatchEvent } from '@mastra/core/workflows';
3
- import type { ClientOptions, GetVNextNetworkResponse, GenerateVNextNetworkResponse, LoopVNextNetworkResponse, GenerateOrStreamVNextNetworkParams, LoopStreamVNextNetworkParams } from '../types.js';
4
- import { BaseResource } from './base.js';
5
- export declare class VNextNetwork extends BaseResource {
6
- private networkId;
7
- constructor(options: ClientOptions, networkId: string);
8
- /**
9
- * Retrieves details about the network
10
- * @returns Promise containing vNext network details
11
- */
12
- details(): Promise<GetVNextNetworkResponse>;
13
- /**
14
- * Generates a response from the v-next network
15
- * @param params - Generation parameters including message
16
- * @returns Promise containing the generated response
17
- */
18
- generate(params: GenerateOrStreamVNextNetworkParams): Promise<GenerateVNextNetworkResponse>;
19
- /**
20
- * Generates a response from the v-next network using multiple primitives
21
- * @param params - Generation parameters including message
22
- * @returns Promise containing the generated response
23
- */
24
- loop(params: {
25
- message: string;
26
- runtimeContext?: RuntimeContext | Record<string, any>;
27
- }): Promise<LoopVNextNetworkResponse>;
28
- private streamProcessor;
29
- /**
30
- * Streams a response from the v-next network
31
- * @param params - Stream parameters including message
32
- * @returns Promise containing the results
33
- */
34
- stream(params: GenerateOrStreamVNextNetworkParams, onRecord: (record: WatchEvent) => void): Promise<void>;
35
- /**
36
- * Streams a response from the v-next network loop
37
- * @param params - Stream parameters including message
38
- * @returns Promise containing the results
39
- */
40
- loopStream(params: LoopStreamVNextNetworkParams, onRecord: (record: WatchEvent) => void): Promise<void>;
41
- }
42
- //# sourceMappingURL=vNextNetwork.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vNextNetwork.d.ts","sourceRoot":"","sources":["../../src/resources/vNextNetwork.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,KAAK,EACV,aAAa,EACb,uBAAuB,EACvB,4BAA4B,EAC5B,wBAAwB,EACxB,kCAAkC,EAClC,4BAA4B,EAC7B,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAItC,qBAAa,YAAa,SAAQ,YAAY;IAG1C,OAAO,CAAC,SAAS;gBADjB,OAAO,EAAE,aAAa,EACd,SAAS,EAAE,MAAM;IAK3B;;;OAGG;IACH,OAAO,IAAI,OAAO,CAAC,uBAAuB,CAAC;IAI3C;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,kCAAkC,GAAG,OAAO,CAAC,4BAA4B,CAAC;IAU3F;;;;OAIG;IACH,IAAI,CAAC,MAAM,EAAE;QACX,OAAO,EAAE,MAAM,CAAC;QAChB,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KACvD,GAAG,OAAO,CAAC,wBAAwB,CAAC;YAUtB,eAAe;IAgE9B;;;;OAIG;IACG,MAAM,CAAC,MAAM,EAAE,kCAAkC,EAAE,QAAQ,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI;IA2B/F;;;;OAIG;IACG,UAAU,CAAC,MAAM,EAAE,4BAA4B,EAAE,QAAQ,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI;CA0B9F"}