@mastra/client-js 0.0.0-configure-project-root-for-private-packages-20250919100548 → 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.
@@ -1,90 +0,0 @@
1
- import type { RuntimeContext } from '@mastra/core/runtime-context';
2
- import type { ClientOptions, LegacyWorkflowRunResult, GetLegacyWorkflowRunsResponse, GetWorkflowRunsParams, GetLegacyWorkflowResponse } from '../types.js';
3
- import { BaseResource } from './base.js';
4
- export declare class LegacyWorkflow extends BaseResource {
5
- private workflowId;
6
- constructor(options: ClientOptions, workflowId: string);
7
- /**
8
- * Retrieves details about the legacy workflow
9
- * @param runtimeContext - Optional runtime context to pass as query parameter
10
- * @returns Promise containing legacy workflow details including steps and graphs
11
- */
12
- details(runtimeContext?: RuntimeContext | Record<string, any>): Promise<GetLegacyWorkflowResponse>;
13
- /**
14
- * Retrieves all runs for a legacy workflow
15
- * @param params - Parameters for filtering runs
16
- * @param runtimeContext - Optional runtime context to pass as query parameter
17
- * @returns Promise containing legacy workflow runs array
18
- */
19
- runs(params?: GetWorkflowRunsParams, runtimeContext?: RuntimeContext | Record<string, any>): Promise<GetLegacyWorkflowRunsResponse>;
20
- /**
21
- * Creates a new legacy workflow run
22
- * @returns Promise containing the generated run ID
23
- */
24
- createRun(params?: {
25
- runId?: string;
26
- }): Promise<{
27
- runId: string;
28
- }>;
29
- /**
30
- * Starts a legacy workflow run synchronously without waiting for the workflow to complete
31
- * @param params - Object containing the runId and triggerData
32
- * @returns Promise containing success message
33
- */
34
- start(params: {
35
- runId: string;
36
- triggerData: Record<string, any>;
37
- }): Promise<{
38
- message: string;
39
- }>;
40
- /**
41
- * Resumes a suspended legacy workflow step synchronously without waiting for the workflow to complete
42
- * @param stepId - ID of the step to resume
43
- * @param runId - ID of the legacy workflow run
44
- * @param context - Context to resume the legacy workflow with
45
- * @returns Promise containing the legacy workflow resume results
46
- */
47
- resume({ stepId, runId, context, }: {
48
- stepId: string;
49
- runId: string;
50
- context: Record<string, any>;
51
- }): Promise<{
52
- message: string;
53
- }>;
54
- /**
55
- * Starts a workflow run asynchronously and returns a promise that resolves when the workflow is complete
56
- * @param params - Object containing the optional runId and triggerData
57
- * @returns Promise containing the workflow execution results
58
- */
59
- startAsync(params: {
60
- runId?: string;
61
- triggerData: Record<string, any>;
62
- }): Promise<LegacyWorkflowRunResult>;
63
- /**
64
- * Resumes a suspended legacy workflow step asynchronously and returns a promise that resolves when the workflow is complete
65
- * @param params - Object containing the runId, stepId, and context
66
- * @returns Promise containing the workflow resume results
67
- */
68
- resumeAsync(params: {
69
- runId: string;
70
- stepId: string;
71
- context: Record<string, any>;
72
- }): Promise<LegacyWorkflowRunResult>;
73
- /**
74
- * Creates an async generator that processes a readable stream and yields records
75
- * separated by the Record Separator character (\x1E)
76
- *
77
- * @param stream - The readable stream to process
78
- * @returns An async generator that yields parsed records
79
- */
80
- private streamProcessor;
81
- /**
82
- * Watches legacy workflow transitions in real-time
83
- * @param runId - Optional run ID to filter the watch stream
84
- * @returns AsyncGenerator that yields parsed records from the legacy workflow watch stream
85
- */
86
- watch({ runId }: {
87
- runId?: string;
88
- }, onRecord: (record: LegacyWorkflowRunResult) => void): Promise<void>;
89
- }
90
- //# sourceMappingURL=legacy-workflow.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"legacy-workflow.d.ts","sourceRoot":"","sources":["../../src/resources/legacy-workflow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EACV,aAAa,EACb,uBAAuB,EACvB,6BAA6B,EAC7B,qBAAqB,EACrB,yBAAyB,EAC1B,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAItC,qBAAa,cAAe,SAAQ,YAAY;IAG5C,OAAO,CAAC,UAAU;gBADlB,OAAO,EAAE,aAAa,EACd,UAAU,EAAE,M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AAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAC9B,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAUpC;;;;;;OAMG;YACY,eAAe;IAgE9B;;;;OAIG;IACG,KAAK,CAAC,EAAE,KAAK,EAAE,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,QAAQ,EAAE,CAAC,MAAM,EAAE,uBAAuB,KAAK,IAAI;CAiB/F"}
@@ -1,43 +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
- * @param runtimeContext - Optional runtime context to pass as query parameter
11
- * @returns Promise containing vNext network details
12
- */
13
- details(runtimeContext?: RuntimeContext | Record<string, any>): Promise<GetVNextNetworkResponse>;
14
- /**
15
- * Generates a response from the v-next network
16
- * @param params - Generation parameters including message
17
- * @returns Promise containing the generated response
18
- */
19
- generate(params: GenerateOrStreamVNextNetworkParams): Promise<GenerateVNextNetworkResponse>;
20
- /**
21
- * Generates a response from the v-next network using multiple primitives
22
- * @param params - Generation parameters including message
23
- * @returns Promise containing the generated response
24
- */
25
- loop(params: {
26
- message: string;
27
- runtimeContext?: RuntimeContext | Record<string, any>;
28
- }): Promise<LoopVNextNetworkResponse>;
29
- private streamProcessor;
30
- /**
31
- * Streams a response from the v-next network
32
- * @param params - Stream parameters including message
33
- * @returns Promise containing the results
34
- */
35
- stream(params: GenerateOrStreamVNextNetworkParams, onRecord: (record: WatchEvent) => void): Promise<void>;
36
- /**
37
- * Streams a response from the v-next network loop
38
- * @param params - Stream parameters including message
39
- * @returns Promise containing the results
40
- */
41
- loopStream(params: LoopStreamVNextNetworkParams, onRecord: (record: WatchEvent) => void): Promise<void>;
42
- }
43
- //# 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;;;;OAIG;IACH,OAAO,CAAC,cAAc,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAIhG;;;;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"}