@mastra/client-js 1.36.0 → 1.36.1-alpha.1

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.
@@ -1991,6 +1991,8 @@ type Shared_Type_116 = {
1991
1991
  expectedTrajectory?: unknown | undefined;
1992
1992
  /** Ordered item-level static tool mocks served in place of executing the real tool */
1993
1993
  toolMocks?: Shared_Type_114[] | undefined;
1994
+ /** Policy for undeclared tool calls. 'allow' runs them live; 'deny' fails the experiment item */
1995
+ unmockedToolPolicy?: ('allow' | 'deny') | undefined;
1994
1996
  requestContext?: {
1995
1997
  [key: string]: unknown;
1996
1998
  } | undefined;
@@ -2244,7 +2246,7 @@ type Shared_Type_133 = {
2244
2246
  args: unknown;
2245
2247
  }[];
2246
2248
  failure?: {
2247
- code: 'TOOL_MOCK_MISMATCH' | 'TOOL_MOCK_EXHAUSTED';
2249
+ code: 'TOOL_MOCK_MISMATCH' | 'TOOL_MOCK_EXHAUSTED' | 'TOOL_MOCK_NOT_DECLARED';
2248
2250
  toolName: string;
2249
2251
  args: unknown;
2250
2252
  } | undefined;
@@ -2269,6 +2271,7 @@ type Shared_Type_134 = {
2269
2271
  traceId: string | null;
2270
2272
  status?: (('needs-review' | 'reviewed' | 'complete') | null) | undefined;
2271
2273
  tags?: (string[] | null) | undefined;
2274
+ comment?: (string | null) | undefined;
2272
2275
  /** Diagnostic receipt for item-level tool mocks */
2273
2276
  toolMockReport?: (Shared_Type_133 | undefined) | null;
2274
2277
  createdAt: Date;
@@ -13401,6 +13404,8 @@ export type PostDatasetsDatasetIdItems_Body = {
13401
13404
  expectedTrajectory?: (Shared_Type_131 | undefined) | null;
13402
13405
  /** Ordered item-level static tool mocks served in place of executing the real tool */
13403
13406
  toolMocks?: Shared_Type_114[] | undefined;
13407
+ /** Policy for undeclared tool calls. 'allow' runs them live; 'deny' fails the experiment item */
13408
+ unmockedToolPolicy?: ('allow' | 'deny') | undefined;
13404
13409
  /** Request context preset for this item */
13405
13410
  requestContext?: {
13406
13411
  [key: string]: unknown;
@@ -13442,6 +13447,8 @@ export type PostDatasetsDatasetIdItemsBatch_Body = {
13442
13447
  expectedTrajectory?: (Shared_Type_131 | undefined) | null;
13443
13448
  /** Ordered item-level static tool mocks served in place of executing the real tool */
13444
13449
  toolMocks?: Shared_Type_114[] | undefined;
13450
+ /** Policy for undeclared tool calls. 'allow' runs them live; 'deny' fails the experiment item */
13451
+ unmockedToolPolicy?: ('allow' | 'deny') | undefined;
13445
13452
  requestContext?: {
13446
13453
  [key: string]: unknown;
13447
13454
  } | undefined;
@@ -13538,6 +13545,8 @@ export type PatchDatasetsDatasetIdItemsItemId_Body = {
13538
13545
  expectedTrajectory?: (Shared_Type_131 | undefined) | null;
13539
13546
  /** Ordered item-level static tool mocks served in place of executing the real tool */
13540
13547
  toolMocks?: Shared_Type_114[] | undefined;
13548
+ /** Policy for undeclared tool calls. 'allow' runs them live; 'deny' fails the experiment item */
13549
+ unmockedToolPolicy?: ('allow' | 'deny') | undefined;
13541
13550
  /** Request context preset for this item */
13542
13551
  requestContext?: {
13543
13552
  [key: string]: unknown;
@@ -13636,6 +13645,8 @@ export type GetDatasetsDatasetIdItemsItemIdHistory_Response = {
13636
13645
  expectedTrajectory?: unknown | undefined;
13637
13646
  /** Ordered item-level static tool mocks served in place of executing the real tool */
13638
13647
  toolMocks?: Shared_Type_114[] | undefined;
13648
+ /** Policy for undeclared tool calls. 'allow' runs them live; 'deny' fails the experiment item */
13649
+ unmockedToolPolicy?: ('allow' | 'deny') | undefined;
13639
13650
  metadata?: {
13640
13651
  [key: string]: unknown;
13641
13652
  } | undefined;
@@ -13916,6 +13927,7 @@ export type PatchDatasetsDatasetIdExperimentsExperimentIdResultsResultId_PathPar
13916
13927
  export type PatchDatasetsDatasetIdExperimentsExperimentIdResultsResultId_Body = {
13917
13928
  status?: (('needs-review' | 'reviewed' | 'complete') | null) | undefined;
13918
13929
  tags?: string[] | undefined;
13930
+ comment?: (string | null) | undefined;
13919
13931
  };
13920
13932
  export type PatchDatasetsDatasetIdExperimentsExperimentIdResultsResultId_Response = Shared_Type_134;
13921
13933
  export type PatchDatasetsDatasetIdExperimentsExperimentIdResultsResultId_Request = Simplify<(PatchDatasetsDatasetIdExperimentsExperimentIdResultsResultId_PathParams extends never ? {} : {