@mastra/client-js 0.0.0-message-ordering-20250415215612 → 0.0.0-message-file-url-handling-fix-20250904234524

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 (71) hide show
  1. package/CHANGELOG.md +1908 -3
  2. package/LICENSE.md +11 -42
  3. package/README.md +7 -4
  4. package/dist/client.d.ts +280 -0
  5. package/dist/client.d.ts.map +1 -0
  6. package/dist/example.d.ts +2 -0
  7. package/dist/example.d.ts.map +1 -0
  8. package/dist/index.cjs +2597 -106
  9. package/dist/index.cjs.map +1 -0
  10. package/dist/index.d.ts +4 -585
  11. package/dist/index.d.ts.map +1 -0
  12. package/dist/index.js +2574 -87
  13. package/dist/index.js.map +1 -0
  14. package/dist/resources/a2a.d.ts +41 -0
  15. package/dist/resources/a2a.d.ts.map +1 -0
  16. package/dist/resources/agent-builder.d.ts +161 -0
  17. package/dist/resources/agent-builder.d.ts.map +1 -0
  18. package/dist/resources/agent.d.ts +155 -0
  19. package/dist/resources/agent.d.ts.map +1 -0
  20. package/dist/resources/base.d.ts +13 -0
  21. package/dist/resources/base.d.ts.map +1 -0
  22. package/dist/resources/index.d.ts +13 -0
  23. package/dist/resources/index.d.ts.map +1 -0
  24. package/dist/resources/legacy-workflow.d.ts +87 -0
  25. package/dist/resources/legacy-workflow.d.ts.map +1 -0
  26. package/dist/resources/mcp-tool.d.ts +27 -0
  27. package/dist/resources/mcp-tool.d.ts.map +1 -0
  28. package/dist/resources/memory-thread.d.ts +53 -0
  29. package/dist/resources/memory-thread.d.ts.map +1 -0
  30. package/dist/resources/network-memory-thread.d.ts +47 -0
  31. package/dist/resources/network-memory-thread.d.ts.map +1 -0
  32. package/dist/resources/network.d.ts +30 -0
  33. package/dist/resources/network.d.ts.map +1 -0
  34. package/dist/resources/observability.d.ts +19 -0
  35. package/dist/resources/observability.d.ts.map +1 -0
  36. package/dist/resources/tool.d.ts +23 -0
  37. package/dist/resources/tool.d.ts.map +1 -0
  38. package/dist/resources/vNextNetwork.d.ts +42 -0
  39. package/dist/resources/vNextNetwork.d.ts.map +1 -0
  40. package/dist/resources/vector.d.ts +48 -0
  41. package/dist/resources/vector.d.ts.map +1 -0
  42. package/dist/resources/workflow.d.ts +154 -0
  43. package/dist/resources/workflow.d.ts.map +1 -0
  44. package/dist/types.d.ts +461 -0
  45. package/dist/types.d.ts.map +1 -0
  46. package/dist/utils/index.d.ts +3 -0
  47. package/dist/utils/index.d.ts.map +1 -0
  48. package/dist/utils/process-client-tools.d.ts +3 -0
  49. package/dist/utils/process-client-tools.d.ts.map +1 -0
  50. package/dist/utils/process-mastra-stream.d.ts +7 -0
  51. package/dist/utils/process-mastra-stream.d.ts.map +1 -0
  52. package/dist/utils/zod-to-json-schema.d.ts +3 -0
  53. package/dist/utils/zod-to-json-schema.d.ts.map +1 -0
  54. package/package.json +41 -18
  55. package/dist/index.d.cts +0 -585
  56. package/eslint.config.js +0 -6
  57. package/src/client.ts +0 -223
  58. package/src/example.ts +0 -65
  59. package/src/index.test.ts +0 -710
  60. package/src/index.ts +0 -2
  61. package/src/resources/agent.ts +0 -205
  62. package/src/resources/base.ts +0 -70
  63. package/src/resources/index.ts +0 -7
  64. package/src/resources/memory-thread.ts +0 -60
  65. package/src/resources/network.ts +0 -92
  66. package/src/resources/tool.ts +0 -32
  67. package/src/resources/vector.ts +0 -83
  68. package/src/resources/workflow.ts +0 -215
  69. package/src/types.ts +0 -224
  70. package/tsconfig.json +0 -5
  71. package/vitest.config.js +0 -8
package/dist/index.d.cts DELETED
@@ -1,585 +0,0 @@
1
- import { CoreMessage, AiMessageType, StorageThreadType, MessageType, StepAction, StepGraph, WorkflowRunResult as WorkflowRunResult$1, QueryResult, BaseLogMessage, GenerateReturn } from '@mastra/core';
2
- import { JSONSchema7 } from 'json-schema';
3
- import { ZodSchema } from 'zod';
4
- import { processDataStream } from '@ai-sdk/ui-utils';
5
- import { AgentGenerateOptions, AgentStreamOptions } from '@mastra/core/agent';
6
-
7
- interface ClientOptions {
8
- /** Base URL for API requests */
9
- baseUrl: string;
10
- /** Number of retry attempts for failed requests */
11
- retries?: number;
12
- /** Initial backoff time in milliseconds between retries */
13
- backoffMs?: number;
14
- /** Maximum backoff time in milliseconds between retries */
15
- maxBackoffMs?: number;
16
- /** Custom headers to include with requests */
17
- headers?: Record<string, string>;
18
- }
19
- interface RequestOptions {
20
- method?: string;
21
- headers?: Record<string, string>;
22
- body?: any;
23
- stream?: boolean;
24
- signal?: AbortSignal;
25
- }
26
- interface GetAgentResponse {
27
- name: string;
28
- instructions: string;
29
- tools: Record<string, GetToolResponse>;
30
- provider: string;
31
- modelId: string;
32
- }
33
- type GenerateParams<T extends JSONSchema7 | ZodSchema | undefined = undefined> = {
34
- messages: string | string[] | CoreMessage[] | AiMessageType[];
35
- } & Partial<AgentGenerateOptions<T>>;
36
- type StreamParams<T extends JSONSchema7 | ZodSchema | undefined = undefined> = {
37
- messages: string | string[] | CoreMessage[] | AiMessageType[];
38
- } & Omit<AgentStreamOptions<T>, 'onFinish' | 'onStepFinish' | 'telemetry'>;
39
- interface GetEvalsByAgentIdResponse extends GetAgentResponse {
40
- evals: any[];
41
- }
42
- interface GetToolResponse {
43
- id: string;
44
- description: string;
45
- inputSchema: string;
46
- outputSchema: string;
47
- }
48
- interface GetWorkflowResponse {
49
- name: string;
50
- triggerSchema: string;
51
- steps: Record<string, StepAction<any, any, any, any>>;
52
- stepGraph: StepGraph;
53
- stepSubscriberGraph: Record<string, StepGraph>;
54
- workflowId?: string;
55
- }
56
- type WorkflowRunResult = {
57
- activePaths: Record<string, {
58
- status: string;
59
- suspendPayload?: any;
60
- stepPath: string[];
61
- }>;
62
- results: WorkflowRunResult$1<any, any, any>['results'];
63
- timestamp: number;
64
- runId: string;
65
- };
66
- interface UpsertVectorParams {
67
- indexName: string;
68
- vectors: number[][];
69
- metadata?: Record<string, any>[];
70
- ids?: string[];
71
- }
72
- interface CreateIndexParams {
73
- indexName: string;
74
- dimension: number;
75
- metric?: 'cosine' | 'euclidean' | 'dotproduct';
76
- }
77
- interface QueryVectorParams {
78
- indexName: string;
79
- queryVector: number[];
80
- topK?: number;
81
- filter?: Record<string, any>;
82
- includeVector?: boolean;
83
- }
84
- interface QueryVectorResponse {
85
- results: QueryResult[];
86
- }
87
- interface GetVectorIndexResponse {
88
- dimension: number;
89
- metric: 'cosine' | 'euclidean' | 'dotproduct';
90
- count: number;
91
- }
92
- interface SaveMessageToMemoryParams {
93
- messages: MessageType[];
94
- agentId: string;
95
- }
96
- type SaveMessageToMemoryResponse = MessageType[];
97
- interface CreateMemoryThreadParams {
98
- title: string;
99
- metadata: Record<string, any>;
100
- resourceid: string;
101
- threadId: string;
102
- agentId: string;
103
- }
104
- type CreateMemoryThreadResponse = StorageThreadType;
105
- interface GetMemoryThreadParams {
106
- resourceId: string;
107
- agentId: string;
108
- }
109
- type GetMemoryThreadResponse = StorageThreadType[];
110
- interface UpdateMemoryThreadParams {
111
- title: string;
112
- metadata: Record<string, any>;
113
- resourceid: string;
114
- }
115
- interface GetMemoryThreadMessagesResponse {
116
- messages: CoreMessage[];
117
- uiMessages: AiMessageType[];
118
- }
119
- interface GetLogsParams {
120
- transportId: string;
121
- }
122
- interface GetLogParams {
123
- runId: string;
124
- transportId: string;
125
- }
126
- type GetLogsResponse = BaseLogMessage[];
127
- type RequestFunction = (path: string, options?: RequestOptions) => Promise<any>;
128
- type SpanStatus = {
129
- code: number;
130
- };
131
- type SpanOther = {
132
- droppedAttributesCount: number;
133
- droppedEventsCount: number;
134
- droppedLinksCount: number;
135
- };
136
- type SpanEventAttributes = {
137
- key: string;
138
- value: {
139
- [key: string]: string | number | boolean | null;
140
- };
141
- };
142
- type SpanEvent = {
143
- attributes: SpanEventAttributes[];
144
- name: string;
145
- timeUnixNano: string;
146
- droppedAttributesCount: number;
147
- };
148
- type Span = {
149
- id: string;
150
- parentSpanId: string | null;
151
- traceId: string;
152
- name: string;
153
- scope: string;
154
- kind: number;
155
- status: SpanStatus;
156
- events: SpanEvent[];
157
- links: any[];
158
- attributes: Record<string, string | number | boolean | null>;
159
- startTime: number;
160
- endTime: number;
161
- duration: number;
162
- other: SpanOther;
163
- createdAt: string;
164
- };
165
- interface GetTelemetryResponse {
166
- traces: Span[];
167
- }
168
- interface GetTelemetryParams {
169
- name?: string;
170
- scope?: string;
171
- page?: number;
172
- perPage?: number;
173
- attribute?: Record<string, string>;
174
- }
175
- interface GetNetworkResponse {
176
- name: string;
177
- instructions: string;
178
- agents: Array<{
179
- name: string;
180
- provider: string;
181
- modelId: string;
182
- }>;
183
- routingModel: {
184
- provider: string;
185
- modelId: string;
186
- };
187
- state?: Record<string, any>;
188
- }
189
-
190
- declare class BaseResource {
191
- readonly options: ClientOptions;
192
- constructor(options: ClientOptions);
193
- /**
194
- * Makes an HTTP request to the API with retries and exponential backoff
195
- * @param path - The API endpoint path
196
- * @param options - Optional request configuration
197
- * @returns Promise containing the response data
198
- */
199
- request<T>(path: string, options?: RequestOptions): Promise<T>;
200
- }
201
-
202
- declare class AgentVoice extends BaseResource {
203
- private agentId;
204
- constructor(options: ClientOptions, agentId: string);
205
- /**
206
- * Convert text to speech using the agent's voice provider
207
- * @param text - Text to convert to speech
208
- * @param options - Optional provider-specific options for speech generation
209
- * @returns Promise containing the audio data
210
- */
211
- speak(text: string, options?: {
212
- speaker?: string;
213
- [key: string]: any;
214
- }): Promise<Response>;
215
- /**
216
- * Convert speech to text using the agent's voice provider
217
- * @param audio - Audio data to transcribe
218
- * @param options - Optional provider-specific options
219
- * @returns Promise containing the transcribed text
220
- */
221
- listen(audio: Blob, options?: Record<string, any>): Promise<Response>;
222
- /**
223
- * Get available speakers for the agent's voice provider
224
- * @returns Promise containing list of available speakers
225
- */
226
- getSpeakers(): Promise<Array<{
227
- voiceId: string;
228
- [key: string]: any;
229
- }>>;
230
- }
231
- declare class Agent extends BaseResource {
232
- private agentId;
233
- readonly voice: AgentVoice;
234
- constructor(options: ClientOptions, agentId: string);
235
- /**
236
- * Retrieves details about the agent
237
- * @returns Promise containing agent details including model and instructions
238
- */
239
- details(): Promise<GetAgentResponse>;
240
- /**
241
- * Generates a response from the agent
242
- * @param params - Generation parameters including prompt
243
- * @returns Promise containing the generated response
244
- */
245
- generate<T extends JSONSchema7 | ZodSchema | undefined = undefined>(params: GenerateParams<T>): Promise<GenerateReturn<T>>;
246
- /**
247
- * Streams a response from the agent
248
- * @param params - Stream parameters including prompt
249
- * @returns Promise containing the enhanced Response object with processDataStream method
250
- */
251
- stream<T extends JSONSchema7 | ZodSchema | undefined = undefined>(params: StreamParams<T>): Promise<Response & {
252
- processDataStream: (options?: Omit<Parameters<typeof processDataStream>[0], 'stream'>) => Promise<void>;
253
- }>;
254
- /**
255
- * Gets details about a specific tool available to the agent
256
- * @param toolId - ID of the tool to retrieve
257
- * @returns Promise containing tool details
258
- */
259
- getTool(toolId: string): Promise<GetToolResponse>;
260
- /**
261
- * Retrieves evaluation results for the agent
262
- * @returns Promise containing agent evaluations
263
- */
264
- evals(): Promise<GetEvalsByAgentIdResponse>;
265
- /**
266
- * Retrieves live evaluation results for the agent
267
- * @returns Promise containing live agent evaluations
268
- */
269
- liveEvals(): Promise<GetEvalsByAgentIdResponse>;
270
- }
271
-
272
- declare class Network extends BaseResource {
273
- private networkId;
274
- constructor(options: ClientOptions, networkId: string);
275
- /**
276
- * Retrieves details about the network
277
- * @returns Promise containing network details
278
- */
279
- details(): Promise<GetNetworkResponse>;
280
- /**
281
- * Generates a response from the agent
282
- * @param params - Generation parameters including prompt
283
- * @returns Promise containing the generated response
284
- */
285
- generate<T extends JSONSchema7 | ZodSchema | undefined = undefined>(params: GenerateParams<T>): Promise<GenerateReturn<T>>;
286
- /**
287
- * Streams a response from the agent
288
- * @param params - Stream parameters including prompt
289
- * @returns Promise containing the enhanced Response object with processDataStream method
290
- */
291
- stream<T extends JSONSchema7 | ZodSchema | undefined = undefined>(params: StreamParams<T>): Promise<Response & {
292
- processDataStream: (options?: Omit<Parameters<typeof processDataStream>[0], 'stream'>) => Promise<void>;
293
- }>;
294
- }
295
-
296
- declare class MemoryThread extends BaseResource {
297
- private threadId;
298
- private agentId;
299
- constructor(options: ClientOptions, threadId: string, agentId: string);
300
- /**
301
- * Retrieves the memory thread details
302
- * @returns Promise containing thread details including title and metadata
303
- */
304
- get(): Promise<StorageThreadType>;
305
- /**
306
- * Updates the memory thread properties
307
- * @param params - Update parameters including title and metadata
308
- * @returns Promise containing updated thread details
309
- */
310
- update(params: UpdateMemoryThreadParams): Promise<StorageThreadType>;
311
- /**
312
- * Deletes the memory thread
313
- * @returns Promise containing deletion result
314
- */
315
- delete(): Promise<{
316
- result: string;
317
- }>;
318
- /**
319
- * Retrieves messages associated with the thread
320
- * @returns Promise containing thread messages and UI messages
321
- */
322
- getMessages(): Promise<GetMemoryThreadMessagesResponse>;
323
- }
324
-
325
- declare class Vector extends BaseResource {
326
- private vectorName;
327
- constructor(options: ClientOptions, vectorName: string);
328
- /**
329
- * Retrieves details about a specific vector index
330
- * @param indexName - Name of the index to get details for
331
- * @returns Promise containing vector index details
332
- */
333
- details(indexName: string): Promise<GetVectorIndexResponse>;
334
- /**
335
- * Deletes a vector index
336
- * @param indexName - Name of the index to delete
337
- * @returns Promise indicating deletion success
338
- */
339
- delete(indexName: string): Promise<{
340
- success: boolean;
341
- }>;
342
- /**
343
- * Retrieves a list of all available indexes
344
- * @returns Promise containing array of index names
345
- */
346
- getIndexes(): Promise<{
347
- indexes: string[];
348
- }>;
349
- /**
350
- * Creates a new vector index
351
- * @param params - Parameters for index creation including dimension and metric
352
- * @returns Promise indicating creation success
353
- */
354
- createIndex(params: CreateIndexParams): Promise<{
355
- success: boolean;
356
- }>;
357
- /**
358
- * Upserts vectors into an index
359
- * @param params - Parameters containing vectors, metadata, and optional IDs
360
- * @returns Promise containing array of vector IDs
361
- */
362
- upsert(params: UpsertVectorParams): Promise<string[]>;
363
- /**
364
- * Queries vectors in an index
365
- * @param params - Query parameters including query vector and search options
366
- * @returns Promise containing query results
367
- */
368
- query(params: QueryVectorParams): Promise<QueryVectorResponse>;
369
- }
370
-
371
- declare class Workflow extends BaseResource {
372
- private workflowId;
373
- constructor(options: ClientOptions, workflowId: string);
374
- /**
375
- * Retrieves details about the workflow
376
- * @returns Promise containing workflow details including steps and graphs
377
- */
378
- details(): Promise<GetWorkflowResponse>;
379
- /**
380
- * @deprecated Use `startAsync` instead
381
- * Executes the workflow with the provided parameters
382
- * @param params - Parameters required for workflow execution
383
- * @returns Promise containing the workflow execution results
384
- */
385
- execute(params: Record<string, any>): Promise<WorkflowRunResult>;
386
- /**
387
- * Creates a new workflow run
388
- * @returns Promise containing the generated run ID
389
- */
390
- createRun(params?: {
391
- runId?: string;
392
- }): Promise<{
393
- runId: string;
394
- }>;
395
- /**
396
- * Starts a workflow run synchronously without waiting for the workflow to complete
397
- * @param params - Object containing the runId and triggerData
398
- * @returns Promise containing success message
399
- */
400
- start(params: {
401
- runId: string;
402
- triggerData: Record<string, any>;
403
- }): Promise<{
404
- message: string;
405
- }>;
406
- /**
407
- * Resumes a suspended workflow step synchronously without waiting for the workflow to complete
408
- * @param stepId - ID of the step to resume
409
- * @param runId - ID of the workflow run
410
- * @param context - Context to resume the workflow with
411
- * @returns Promise containing the workflow resume results
412
- */
413
- resume({ stepId, runId, context, }: {
414
- stepId: string;
415
- runId: string;
416
- context: Record<string, any>;
417
- }): Promise<{
418
- message: string;
419
- }>;
420
- /**
421
- * Starts a workflow run asynchronously and returns a promise that resolves when the workflow is complete
422
- * @param params - Object containing the optional runId and triggerData
423
- * @returns Promise containing the workflow execution results
424
- */
425
- startAsync(params: {
426
- runId?: string;
427
- triggerData: Record<string, any>;
428
- }): Promise<WorkflowRunResult>;
429
- /**
430
- * Resumes a suspended workflow step asynchronously and returns a promise that resolves when the workflow is complete
431
- * @param params - Object containing the runId, stepId, and context
432
- * @returns Promise containing the workflow resume results
433
- */
434
- resumeAsync(params: {
435
- runId: string;
436
- stepId: string;
437
- context: Record<string, any>;
438
- }): Promise<WorkflowRunResult>;
439
- /**
440
- * Creates an async generator that processes a readable stream and yields records
441
- * separated by the Record Separator character (\x1E)
442
- *
443
- * @param stream - The readable stream to process
444
- * @returns An async generator that yields parsed records
445
- */
446
- private streamProcessor;
447
- /**
448
- * Watches workflow transitions in real-time
449
- * @param runId - Optional run ID to filter the watch stream
450
- * @returns AsyncGenerator that yields parsed records from the workflow watch stream
451
- */
452
- watch({ runId }: {
453
- runId?: string;
454
- }, onRecord: (record: WorkflowRunResult) => void): Promise<void>;
455
- }
456
-
457
- declare class Tool extends BaseResource {
458
- private toolId;
459
- constructor(options: ClientOptions, toolId: string);
460
- /**
461
- * Retrieves details about the tool
462
- * @returns Promise containing tool details including description and schemas
463
- */
464
- details(): Promise<GetToolResponse>;
465
- /**
466
- * Executes the tool with the provided parameters
467
- * @param params - Parameters required for tool execution
468
- * @returns Promise containing the tool execution results
469
- */
470
- execute(params: {
471
- data: any;
472
- }): Promise<any>;
473
- }
474
-
475
- declare class MastraClient extends BaseResource {
476
- constructor(options: ClientOptions);
477
- /**
478
- * Retrieves all available agents
479
- * @returns Promise containing map of agent IDs to agent details
480
- */
481
- getAgents(): Promise<Record<string, GetAgentResponse>>;
482
- /**
483
- * Gets an agent instance by ID
484
- * @param agentId - ID of the agent to retrieve
485
- * @returns Agent instance
486
- */
487
- getAgent(agentId: string): Agent;
488
- /**
489
- * Retrieves memory threads for a resource
490
- * @param params - Parameters containing the resource ID
491
- * @returns Promise containing array of memory threads
492
- */
493
- getMemoryThreads(params: GetMemoryThreadParams): Promise<GetMemoryThreadResponse>;
494
- /**
495
- * Creates a new memory thread
496
- * @param params - Parameters for creating the memory thread
497
- * @returns Promise containing the created memory thread
498
- */
499
- createMemoryThread(params: CreateMemoryThreadParams): Promise<CreateMemoryThreadResponse>;
500
- /**
501
- * Gets a memory thread instance by ID
502
- * @param threadId - ID of the memory thread to retrieve
503
- * @returns MemoryThread instance
504
- */
505
- getMemoryThread(threadId: string, agentId: string): MemoryThread;
506
- /**
507
- * Saves messages to memory
508
- * @param params - Parameters containing messages to save
509
- * @returns Promise containing the saved messages
510
- */
511
- saveMessageToMemory(params: SaveMessageToMemoryParams): Promise<SaveMessageToMemoryResponse>;
512
- /**
513
- * Gets the status of the memory system
514
- * @returns Promise containing memory system status
515
- */
516
- getMemoryStatus(agentId: string): Promise<{
517
- result: boolean;
518
- }>;
519
- /**
520
- * Retrieves all available tools
521
- * @returns Promise containing map of tool IDs to tool details
522
- */
523
- getTools(): Promise<Record<string, GetToolResponse>>;
524
- /**
525
- * Gets a tool instance by ID
526
- * @param toolId - ID of the tool to retrieve
527
- * @returns Tool instance
528
- */
529
- getTool(toolId: string): Tool;
530
- /**
531
- * Retrieves all available workflows
532
- * @returns Promise containing map of workflow IDs to workflow details
533
- */
534
- getWorkflows(): Promise<Record<string, GetWorkflowResponse>>;
535
- /**
536
- * Gets a workflow instance by ID
537
- * @param workflowId - ID of the workflow to retrieve
538
- * @returns Workflow instance
539
- */
540
- getWorkflow(workflowId: string): Workflow;
541
- /**
542
- * Gets a vector instance by name
543
- * @param vectorName - Name of the vector to retrieve
544
- * @returns Vector instance
545
- */
546
- getVector(vectorName: string): Vector;
547
- /**
548
- * Retrieves logs
549
- * @param params - Parameters for filtering logs
550
- * @returns Promise containing array of log messages
551
- */
552
- getLogs(params: GetLogsParams): Promise<GetLogsResponse>;
553
- /**
554
- * Gets logs for a specific run
555
- * @param params - Parameters containing run ID to retrieve
556
- * @returns Promise containing array of log messages
557
- */
558
- getLogForRun(params: GetLogParams): Promise<GetLogsResponse>;
559
- /**
560
- * List of all log transports
561
- * @returns Promise containing list of log transports
562
- */
563
- getLogTransports(): Promise<{
564
- transports: string[];
565
- }>;
566
- /**
567
- * List of all traces (paged)
568
- * @param params - Parameters for filtering traces
569
- * @returns Promise containing telemetry data
570
- */
571
- getTelemetry(params?: GetTelemetryParams): Promise<GetTelemetryResponse>;
572
- /**
573
- * Retrieves all available networks
574
- * @returns Promise containing map of network IDs to network details
575
- */
576
- getNetworks(): Promise<Record<string, GetNetworkResponse>>;
577
- /**
578
- * Gets a network instance by ID
579
- * @param networkId - ID of the network to retrieve
580
- * @returns Network instance
581
- */
582
- getNetwork(networkId: string): Network;
583
- }
584
-
585
- export { type ClientOptions, type CreateIndexParams, type CreateMemoryThreadParams, type CreateMemoryThreadResponse, type GenerateParams, type GetAgentResponse, type GetEvalsByAgentIdResponse, type GetLogParams, type GetLogsParams, type GetLogsResponse, type GetMemoryThreadMessagesResponse, type GetMemoryThreadParams, type GetMemoryThreadResponse, type GetNetworkResponse, type GetTelemetryParams, type GetTelemetryResponse, type GetToolResponse, type GetVectorIndexResponse, type GetWorkflowResponse, MastraClient, type QueryVectorParams, type QueryVectorResponse, type RequestFunction, type RequestOptions, type SaveMessageToMemoryParams, type SaveMessageToMemoryResponse, type StreamParams, type UpdateMemoryThreadParams, type UpsertVectorParams, type WorkflowRunResult };
package/eslint.config.js DELETED
@@ -1,6 +0,0 @@
1
- import { createConfig } from '@internal/lint/eslint';
2
-
3
- const config = await createConfig();
4
-
5
- /** @type {import("eslint").Linter.Config[]} */
6
- export default [...config];