@mastra/client-js 1.53.0-alpha.0 → 1.53.0-alpha.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.
- package/dist/client.d.ts +4 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/reference-ai-sdk-to-ai-sdk-v4-messages.md +3 -3
- package/dist/docs/references/reference-client-js-memory.md +13 -1
- package/dist/index.cjs +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/route-types.generated.d.ts +37 -32
- package/dist/route-types.generated.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -10,7 +10,7 @@ export type Simplify<T> = {
|
|
|
10
10
|
type InputShared_Auxiliary_21 = string | number | boolean | null | InputShared_Auxiliary_21[] | {
|
|
11
11
|
[key: string]: InputShared_Auxiliary_21;
|
|
12
12
|
};
|
|
13
|
-
type
|
|
13
|
+
type InputShared_Auxiliary_205 = {
|
|
14
14
|
op: 'eq' | 'ne' | 'lt' | 'lte' | 'gt' | 'gte';
|
|
15
15
|
left: {
|
|
16
16
|
path: string;
|
|
@@ -47,30 +47,30 @@ type InputShared_Auxiliary_204 = {
|
|
|
47
47
|
};
|
|
48
48
|
} | {
|
|
49
49
|
op: 'and' | 'or';
|
|
50
|
-
args:
|
|
50
|
+
args: InputShared_Auxiliary_205[];
|
|
51
51
|
} | {
|
|
52
52
|
op: 'not';
|
|
53
|
-
arg:
|
|
53
|
+
arg: InputShared_Auxiliary_205;
|
|
54
54
|
} | {
|
|
55
55
|
spans: {
|
|
56
|
-
some:
|
|
56
|
+
some: InputShared_Auxiliary_228;
|
|
57
57
|
} | {
|
|
58
|
-
none:
|
|
58
|
+
none: InputShared_Auxiliary_228;
|
|
59
59
|
};
|
|
60
60
|
} | {
|
|
61
61
|
scores: {
|
|
62
|
-
some:
|
|
62
|
+
some: InputShared_Auxiliary_228;
|
|
63
63
|
} | {
|
|
64
|
-
none:
|
|
64
|
+
none: InputShared_Auxiliary_228;
|
|
65
65
|
};
|
|
66
66
|
} | {
|
|
67
67
|
feedback: {
|
|
68
|
-
some:
|
|
68
|
+
some: InputShared_Auxiliary_228;
|
|
69
69
|
} | {
|
|
70
|
-
none:
|
|
70
|
+
none: InputShared_Auxiliary_228;
|
|
71
71
|
};
|
|
72
72
|
};
|
|
73
|
-
type
|
|
73
|
+
type InputShared_Auxiliary_228 = {
|
|
74
74
|
op: 'eq' | 'ne' | 'lt' | 'lte' | 'gt' | 'gte';
|
|
75
75
|
left: {
|
|
76
76
|
path: string;
|
|
@@ -107,25 +107,25 @@ type InputShared_Auxiliary_227 = {
|
|
|
107
107
|
};
|
|
108
108
|
} | {
|
|
109
109
|
op: 'and' | 'or';
|
|
110
|
-
args:
|
|
110
|
+
args: InputShared_Auxiliary_228[];
|
|
111
111
|
} | {
|
|
112
112
|
op: 'not';
|
|
113
|
-
arg:
|
|
113
|
+
arg: InputShared_Auxiliary_228;
|
|
114
114
|
};
|
|
115
|
-
type
|
|
115
|
+
type InputShared_Auxiliary_262 = {
|
|
116
116
|
op: 'and' | 'or';
|
|
117
|
-
args:
|
|
117
|
+
args: InputShared_Auxiliary_262[];
|
|
118
118
|
} | {
|
|
119
119
|
op: 'not';
|
|
120
|
-
arg:
|
|
120
|
+
arg: InputShared_Auxiliary_262;
|
|
121
121
|
} | {
|
|
122
122
|
traces: {
|
|
123
|
-
some:
|
|
123
|
+
some: InputShared_Auxiliary_205;
|
|
124
124
|
} | {
|
|
125
|
-
none:
|
|
125
|
+
none: InputShared_Auxiliary_205;
|
|
126
126
|
};
|
|
127
127
|
};
|
|
128
|
-
type
|
|
128
|
+
type InputShared_Auxiliary_690 = {
|
|
129
129
|
op: 'eq' | 'ne' | 'lt' | 'lte' | 'gt' | 'gte';
|
|
130
130
|
left: {
|
|
131
131
|
path: string;
|
|
@@ -157,17 +157,17 @@ type InputShared_Auxiliary_689 = {
|
|
|
157
157
|
};
|
|
158
158
|
} | {
|
|
159
159
|
op: 'and' | 'or';
|
|
160
|
-
args:
|
|
160
|
+
args: InputShared_Auxiliary_690[];
|
|
161
161
|
} | {
|
|
162
162
|
op: 'not';
|
|
163
|
-
arg:
|
|
163
|
+
arg: InputShared_Auxiliary_690;
|
|
164
164
|
};
|
|
165
|
-
type
|
|
165
|
+
type InputShared_Auxiliary_764 = {
|
|
166
166
|
id?: string | undefined;
|
|
167
167
|
name: string;
|
|
168
168
|
type: 'file' | 'folder';
|
|
169
169
|
content?: string | undefined;
|
|
170
|
-
children?:
|
|
170
|
+
children?: InputShared_Auxiliary_764[] | undefined;
|
|
171
171
|
};
|
|
172
172
|
type Shared_Auxiliary_764 = {
|
|
173
173
|
id?: string | undefined;
|
|
@@ -1324,7 +1324,7 @@ type InputShared_Type_88 = {
|
|
|
1324
1324
|
[key: string]: unknown;
|
|
1325
1325
|
} | undefined;
|
|
1326
1326
|
steps: InputShared_Type_83[];
|
|
1327
|
-
predicates:
|
|
1327
|
+
predicates: InputShared_Auxiliary_690[];
|
|
1328
1328
|
};
|
|
1329
1329
|
type InputShared_Type_89 = {
|
|
1330
1330
|
type: 'loop';
|
|
@@ -1335,7 +1335,7 @@ type InputShared_Type_89 = {
|
|
|
1335
1335
|
} | undefined;
|
|
1336
1336
|
step: InputShared_Type_83;
|
|
1337
1337
|
loopType: 'dowhile' | 'dountil';
|
|
1338
|
-
predicate:
|
|
1338
|
+
predicate: InputShared_Auxiliary_690;
|
|
1339
1339
|
};
|
|
1340
1340
|
type InputShared_Type_90 = InputShared_Type_80 | InputShared_Type_81 | InputShared_Type_82 | {
|
|
1341
1341
|
type: 'workflow';
|
|
@@ -4773,6 +4773,10 @@ export type PostAgentsAgentIdVoiceSpeak_PathParams = GetAgentsAgentIdVoiceSpeake
|
|
|
4773
4773
|
export type PostAgentsAgentIdVoiceSpeak_Body = {
|
|
4774
4774
|
text: string;
|
|
4775
4775
|
speakerId?: string | undefined;
|
|
4776
|
+
options?: {
|
|
4777
|
+
speaker?: string | undefined;
|
|
4778
|
+
[x: string]: unknown;
|
|
4779
|
+
} | undefined;
|
|
4776
4780
|
};
|
|
4777
4781
|
export type PostAgentsAgentIdVoiceSpeak_Response = PostAgentsAgentIdGenerate_Response;
|
|
4778
4782
|
export type PostAgentsAgentIdVoiceSpeak_Request = Simplify<(PostAgentsAgentIdVoiceSpeak_PathParams extends never ? {} : {
|
|
@@ -6956,6 +6960,7 @@ export type PostMemoryThreadsThreadIdWorkingMemory_Body = {
|
|
|
6956
6960
|
memoryConfig?: {
|
|
6957
6961
|
[key: string]: unknown;
|
|
6958
6962
|
} | undefined;
|
|
6963
|
+
mode?: ('replace' | 'merge') | undefined;
|
|
6959
6964
|
};
|
|
6960
6965
|
export type PostMemoryThreadsThreadIdWorkingMemory_Response = PostAuthRefresh_Response;
|
|
6961
6966
|
export type PostMemoryThreadsThreadIdWorkingMemory_Request = Simplify<(PostMemoryThreadsThreadIdWorkingMemory_PathParams extends never ? {} : {
|
|
@@ -7882,7 +7887,7 @@ export type PostObservabilityTracesQuery_Body = {
|
|
|
7882
7887
|
from: string;
|
|
7883
7888
|
to: string;
|
|
7884
7889
|
};
|
|
7885
|
-
where?:
|
|
7890
|
+
where?: InputShared_Auxiliary_205 | undefined;
|
|
7886
7891
|
group?: {
|
|
7887
7892
|
by: ['threadId'];
|
|
7888
7893
|
} | undefined;
|
|
@@ -7955,11 +7960,11 @@ export type PostObservabilityTracesAggregate_Body = {
|
|
|
7955
7960
|
from: string;
|
|
7956
7961
|
to: string;
|
|
7957
7962
|
};
|
|
7958
|
-
where?:
|
|
7963
|
+
where?: InputShared_Auxiliary_205 | undefined;
|
|
7959
7964
|
groupBy?: string[];
|
|
7960
7965
|
interval?: ('1m' | '5m' | '15m' | '1h' | '1d') | undefined;
|
|
7961
7966
|
measures: (('count' | 'duration.avg' | 'duration.min' | 'duration.max' | 'duration.p50' | 'duration.p90' | 'duration.p95' | 'duration.p99' | 'errorCount' | 'errorRate' | 'tokens.input.sum' | 'tokens.input.avg' | 'tokens.output.sum' | 'tokens.output.avg' | 'tokens.total.sum' | 'tokens.total.avg' | 'tokens.reasoning.sum' | 'tokens.reasoning.avg' | 'tokens.cached.sum' | 'tokens.cached.avg' | 'cost.sum' | 'cost.avg') | `countDistinct.${string}`)[];
|
|
7962
|
-
having?:
|
|
7967
|
+
having?: InputShared_Auxiliary_228 | undefined;
|
|
7963
7968
|
orderBy?: {
|
|
7964
7969
|
field: string;
|
|
7965
7970
|
direction: 'asc' | 'desc';
|
|
@@ -8007,9 +8012,9 @@ export type PostObservabilityThreadsQuery_Body = {
|
|
|
8007
8012
|
from: string;
|
|
8008
8013
|
to: string;
|
|
8009
8014
|
};
|
|
8010
|
-
where?:
|
|
8015
|
+
where?: InputShared_Auxiliary_205 | undefined;
|
|
8011
8016
|
};
|
|
8012
|
-
where?:
|
|
8017
|
+
where?: InputShared_Auxiliary_262 | undefined;
|
|
8013
8018
|
page?: {
|
|
8014
8019
|
limit?: number;
|
|
8015
8020
|
after?: (string | null) | undefined;
|
|
@@ -8047,7 +8052,7 @@ export type PostObservabilitySpansQuery_Body = {
|
|
|
8047
8052
|
from: string;
|
|
8048
8053
|
to: string;
|
|
8049
8054
|
};
|
|
8050
|
-
where?:
|
|
8055
|
+
where?: InputShared_Auxiliary_228 | undefined;
|
|
8051
8056
|
orderBy?: {
|
|
8052
8057
|
field: 'startedAt' | 'endedAt';
|
|
8053
8058
|
direction: 'asc' | 'desc';
|
|
@@ -14375,7 +14380,7 @@ export type PostStoredSkills_Body = {
|
|
|
14375
14380
|
/** List of asset file paths */
|
|
14376
14381
|
assets?: string[] | undefined;
|
|
14377
14382
|
/** Full file tree structure for the skill */
|
|
14378
|
-
files?:
|
|
14383
|
+
files?: InputShared_Auxiliary_764[] | undefined;
|
|
14379
14384
|
/** Additional metadata for the skill */
|
|
14380
14385
|
metadata?: {
|
|
14381
14386
|
[key: string]: unknown;
|
|
@@ -14425,7 +14430,7 @@ export type PatchStoredSkillsStoredSkillId_Body = {
|
|
|
14425
14430
|
/** List of asset file paths */
|
|
14426
14431
|
assets?: (string[] | undefined) | undefined;
|
|
14427
14432
|
/** Full file tree structure for the skill */
|
|
14428
|
-
files?: (
|
|
14433
|
+
files?: (InputShared_Auxiliary_764[] | undefined) | undefined;
|
|
14429
14434
|
/** Additional metadata for the skill */
|
|
14430
14435
|
metadata?: ({
|
|
14431
14436
|
[key: string]: unknown;
|