@mastra/client-js 1.40.1-alpha.7 → 1.41.0-alpha.11
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/CHANGELOG.md +81 -0
- package/dist/docs/SKILL.md +6 -6
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/{docs-agents-a2a.md → docs-connections-a2a.md} +2 -2
- package/dist/docs/references/{docs-long-running-agents-schedules.md → docs-harness-schedules.md} +5 -5
- package/dist/docs/references/docs-server-mastra-client.md +2 -2
- package/dist/docs/references/integrations-auth-workos.md +1 -1
- package/dist/docs/references/reference-client-js-agents.md +24 -4
- package/dist/docs/references/reference-editor-versioning.md +3 -3
- package/dist/index.cjs +79 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +79 -26
- package/dist/index.js.map +1 -1
- package/dist/resources/agent-controller.d.ts +57 -195
- package/dist/resources/agent-controller.d.ts.map +1 -1
- package/dist/resources/agent.d.ts +7 -1
- package/dist/resources/agent.d.ts.map +1 -1
- package/dist/route-types.generated.d.ts +125 -47
- package/dist/route-types.generated.d.ts.map +1 -1
- package/dist/types.d.ts +38 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +4 -4
- /package/dist/docs/references/{docs-server-auth-jwt.md → docs-auth-jwt.md} +0 -0
- /package/dist/docs/references/{docs-long-running-agents-signals.md → docs-harness-signals.md} +0 -0
- /package/dist/docs/references/{docs-editor-overview.md → docs-studio-editor.md} +0 -0
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
export type Simplify<T> = {
|
|
8
8
|
[K in keyof T]: T[K];
|
|
9
9
|
} & {};
|
|
10
|
-
type
|
|
11
|
-
[key: string]:
|
|
10
|
+
type Shared_Auxiliary_298 = string | number | boolean | null | Shared_Auxiliary_298[] | {
|
|
11
|
+
[key: string]: Shared_Auxiliary_298;
|
|
12
12
|
};
|
|
13
|
-
type
|
|
13
|
+
type Shared_Auxiliary_1095 = {
|
|
14
14
|
op: 'eq' | 'ne' | 'lt' | 'lte' | 'gt' | 'gte';
|
|
15
15
|
left: {
|
|
16
16
|
path: string;
|
|
@@ -42,17 +42,17 @@ type Shared_Auxiliary_1083 = {
|
|
|
42
42
|
};
|
|
43
43
|
} | {
|
|
44
44
|
op: 'and' | 'or';
|
|
45
|
-
args:
|
|
45
|
+
args: Shared_Auxiliary_1095[];
|
|
46
46
|
} | {
|
|
47
47
|
op: 'not';
|
|
48
|
-
arg:
|
|
48
|
+
arg: Shared_Auxiliary_1095;
|
|
49
49
|
};
|
|
50
|
-
type
|
|
50
|
+
type Shared_Auxiliary_1236 = {
|
|
51
51
|
id?: string | undefined;
|
|
52
52
|
name: string;
|
|
53
53
|
type: 'file' | 'folder';
|
|
54
54
|
content?: string | undefined;
|
|
55
|
-
children?:
|
|
55
|
+
children?: Shared_Auxiliary_1236[] | undefined;
|
|
56
56
|
};
|
|
57
57
|
type Shared_Type_0 = {
|
|
58
58
|
id: string;
|
|
@@ -699,6 +699,11 @@ type Shared_Type_42 = {
|
|
|
699
699
|
requestContextSchema?: {
|
|
700
700
|
[key: string]: unknown;
|
|
701
701
|
} | undefined;
|
|
702
|
+
/** Whether this agent is hydrated with durable execution enabled */
|
|
703
|
+
durable?: (boolean | {
|
|
704
|
+
maxSteps?: number | undefined;
|
|
705
|
+
cleanupTimeoutMs?: number | undefined;
|
|
706
|
+
}) | undefined;
|
|
702
707
|
};
|
|
703
708
|
type Shared_Type_43 = {
|
|
704
709
|
thread: string | {
|
|
@@ -767,7 +772,7 @@ type Shared_Type_49 = {
|
|
|
767
772
|
text: string;
|
|
768
773
|
providerOptions?: {
|
|
769
774
|
[key: string]: {
|
|
770
|
-
[key: string]:
|
|
775
|
+
[key: string]: Shared_Auxiliary_298;
|
|
771
776
|
};
|
|
772
777
|
} | undefined;
|
|
773
778
|
};
|
|
@@ -778,7 +783,7 @@ type Shared_Type_50 = {
|
|
|
778
783
|
filename?: string | undefined;
|
|
779
784
|
providerOptions?: {
|
|
780
785
|
[key: string]: {
|
|
781
|
-
[key: string]:
|
|
786
|
+
[key: string]: Shared_Auxiliary_298;
|
|
782
787
|
};
|
|
783
788
|
} | undefined;
|
|
784
789
|
};
|
|
@@ -788,11 +793,11 @@ type Shared_Type_51 = {
|
|
|
788
793
|
[key: string]: string | number | boolean | null | undefined;
|
|
789
794
|
} | undefined;
|
|
790
795
|
metadata?: {
|
|
791
|
-
[key: string]:
|
|
796
|
+
[key: string]: Shared_Auxiliary_298;
|
|
792
797
|
} | undefined;
|
|
793
798
|
providerOptions?: {
|
|
794
799
|
[key: string]: {
|
|
795
|
-
[key: string]:
|
|
800
|
+
[key: string]: Shared_Auxiliary_298;
|
|
796
801
|
};
|
|
797
802
|
} | undefined;
|
|
798
803
|
};
|
|
@@ -852,7 +857,7 @@ type Shared_Type_54 = {
|
|
|
852
857
|
id?: string | undefined;
|
|
853
858
|
createdAt?: (string | Date) | undefined;
|
|
854
859
|
metadata?: {
|
|
855
|
-
[key: string]:
|
|
860
|
+
[key: string]: Shared_Auxiliary_298;
|
|
856
861
|
} | undefined;
|
|
857
862
|
attributes?: {
|
|
858
863
|
[key: string]: string | number | boolean | null | undefined;
|
|
@@ -861,7 +866,7 @@ type Shared_Type_54 = {
|
|
|
861
866
|
contents: string | (Shared_Type_49 | Shared_Type_50)[];
|
|
862
867
|
providerOptions?: {
|
|
863
868
|
[key: string]: {
|
|
864
|
-
[key: string]:
|
|
869
|
+
[key: string]: Shared_Auxiliary_298;
|
|
865
870
|
};
|
|
866
871
|
} | undefined;
|
|
867
872
|
type: 'state';
|
|
@@ -871,7 +876,7 @@ type Shared_Type_55 = {
|
|
|
871
876
|
id?: string | undefined;
|
|
872
877
|
createdAt?: (string | Date) | undefined;
|
|
873
878
|
metadata?: {
|
|
874
|
-
[key: string]:
|
|
879
|
+
[key: string]: Shared_Auxiliary_298;
|
|
875
880
|
} | undefined;
|
|
876
881
|
attributes?: {
|
|
877
882
|
[key: string]: string | number | boolean | null | undefined;
|
|
@@ -880,7 +885,7 @@ type Shared_Type_55 = {
|
|
|
880
885
|
contents: string | (Shared_Type_49 | Shared_Type_50)[];
|
|
881
886
|
providerOptions?: {
|
|
882
887
|
[key: string]: {
|
|
883
|
-
[key: string]:
|
|
888
|
+
[key: string]: Shared_Auxiliary_298;
|
|
884
889
|
};
|
|
885
890
|
} | undefined;
|
|
886
891
|
type: 'user' | 'reactive' | 'notification' | 'user-message' | 'system-reminder';
|
|
@@ -1833,12 +1838,12 @@ type Shared_Type_107 = Shared_Type_103 | Shared_Type_104 | {
|
|
|
1833
1838
|
} | {
|
|
1834
1839
|
type: 'conditional';
|
|
1835
1840
|
steps: Shared_Type_105[];
|
|
1836
|
-
predicates:
|
|
1841
|
+
predicates: Shared_Auxiliary_1095[];
|
|
1837
1842
|
} | {
|
|
1838
1843
|
type: 'loop';
|
|
1839
1844
|
step: Shared_Type_105;
|
|
1840
1845
|
loopType: 'dowhile' | 'dountil';
|
|
1841
|
-
predicate:
|
|
1846
|
+
predicate: Shared_Auxiliary_1095;
|
|
1842
1847
|
};
|
|
1843
1848
|
type Shared_Type_108 = {
|
|
1844
1849
|
/** Transport type: stdio for local processes, http for remote servers */
|
|
@@ -2111,7 +2116,7 @@ type Shared_Type_120 = {
|
|
|
2111
2116
|
/** List of asset file paths */
|
|
2112
2117
|
assets?: string[] | undefined;
|
|
2113
2118
|
/** Full file tree structure for the skill */
|
|
2114
|
-
files?:
|
|
2119
|
+
files?: Shared_Auxiliary_1236[] | undefined;
|
|
2115
2120
|
/** Additional metadata for the skill */
|
|
2116
2121
|
metadata?: {
|
|
2117
2122
|
[key: string]: unknown;
|
|
@@ -3767,6 +3772,38 @@ export interface GetAgentsAgentIdToolsToolId_RouteContract {
|
|
|
3767
3772
|
response: GetAgentsAgentIdToolsToolId_Response;
|
|
3768
3773
|
responseType: 'json';
|
|
3769
3774
|
}
|
|
3775
|
+
export type GetAgentsAgentIdPlansFile_PathParams = GetAgentsAgentId_PathParams;
|
|
3776
|
+
export type GetAgentsAgentIdPlansFile_QueryParams = {
|
|
3777
|
+
/** Which stored config version to resolve: draft (latest version) or published (active version, default). When both status and versionId are provided, versionId takes precedence. */
|
|
3778
|
+
status?: ('draft' | 'published') | undefined;
|
|
3779
|
+
/** Specific version ID to resolve. Takes precedence over status when both are provided. */
|
|
3780
|
+
versionId?: string | undefined;
|
|
3781
|
+
/** Relative path to a markdown plan under .mastracode/plans/ */
|
|
3782
|
+
path: string;
|
|
3783
|
+
};
|
|
3784
|
+
export type GetAgentsAgentIdPlansFile_Response = {
|
|
3785
|
+
path: string;
|
|
3786
|
+
content: string;
|
|
3787
|
+
};
|
|
3788
|
+
export type GetAgentsAgentIdPlansFile_Request = Simplify<(GetAgentsAgentIdPlansFile_PathParams extends never ? {} : {
|
|
3789
|
+
params: GetAgentsAgentIdPlansFile_PathParams;
|
|
3790
|
+
}) & (GetAgentsAgentIdPlansFile_QueryParams extends never ? {} : {} extends GetAgentsAgentIdPlansFile_QueryParams ? {
|
|
3791
|
+
query?: GetAgentsAgentIdPlansFile_QueryParams;
|
|
3792
|
+
} : {
|
|
3793
|
+
query: GetAgentsAgentIdPlansFile_QueryParams;
|
|
3794
|
+
}) & (never extends never ? {} : {} extends never ? {
|
|
3795
|
+
body?: never;
|
|
3796
|
+
} : {
|
|
3797
|
+
body: never;
|
|
3798
|
+
})>;
|
|
3799
|
+
export interface GetAgentsAgentIdPlansFile_RouteContract {
|
|
3800
|
+
pathParams: GetAgentsAgentIdPlansFile_PathParams;
|
|
3801
|
+
queryParams: GetAgentsAgentIdPlansFile_QueryParams;
|
|
3802
|
+
body: never;
|
|
3803
|
+
request: GetAgentsAgentIdPlansFile_Request;
|
|
3804
|
+
response: GetAgentsAgentIdPlansFile_Response;
|
|
3805
|
+
responseType: 'json';
|
|
3806
|
+
}
|
|
3770
3807
|
export type GetAgentsAgentIdSkillsSkillName_PathParams = {
|
|
3771
3808
|
/** Unique identifier for the agent */
|
|
3772
3809
|
agentId: string;
|
|
@@ -9967,6 +10004,11 @@ export type PostStoredAgentsStoredAgentIdExport_Body = {
|
|
|
9967
10004
|
requestContextSchema?: ({
|
|
9968
10005
|
[key: string]: unknown;
|
|
9969
10006
|
} | undefined) | undefined;
|
|
10007
|
+
/** Opt this agent into durable execution when it is hydrated. Cache and pubsub are inherited from the Mastra instance; without distributed backends durability is process-local. Does not enable automatic recovery — that stays `recovery.durableAgents`. */
|
|
10008
|
+
durable?: ((boolean | {
|
|
10009
|
+
maxSteps?: number | undefined;
|
|
10010
|
+
cleanupTimeoutMs?: number | undefined;
|
|
10011
|
+
}) | undefined) | undefined;
|
|
9970
10012
|
};
|
|
9971
10013
|
export type PostStoredAgentsStoredAgentIdExport_Response = {
|
|
9972
10014
|
agentId: string;
|
|
@@ -10046,6 +10088,11 @@ export type PostStoredAgentsStoredAgentIdChangeRequest_Body = {
|
|
|
10046
10088
|
requestContextSchema?: ({
|
|
10047
10089
|
[key: string]: unknown;
|
|
10048
10090
|
} | undefined) | undefined;
|
|
10091
|
+
/** Opt this agent into durable execution when it is hydrated. Cache and pubsub are inherited from the Mastra instance; without distributed backends durability is process-local. Does not enable automatic recovery — that stays `recovery.durableAgents`. */
|
|
10092
|
+
durable?: ((boolean | {
|
|
10093
|
+
maxSteps?: number | undefined;
|
|
10094
|
+
cleanupTimeoutMs?: number | undefined;
|
|
10095
|
+
}) | undefined) | undefined;
|
|
10049
10096
|
changeMessage?: string | undefined;
|
|
10050
10097
|
userName?: string | undefined;
|
|
10051
10098
|
inspectOnly?: boolean | undefined;
|
|
@@ -10214,6 +10261,11 @@ export type PostStoredAgents_Body = {
|
|
|
10214
10261
|
requestContextSchema?: {
|
|
10215
10262
|
[key: string]: unknown;
|
|
10216
10263
|
} | undefined;
|
|
10264
|
+
/** Opt this agent into durable execution when it is hydrated. Cache and pubsub are inherited from the Mastra instance; without distributed backends durability is process-local. Does not enable automatic recovery — that stays `recovery.durableAgents`. */
|
|
10265
|
+
durable?: (boolean | {
|
|
10266
|
+
maxSteps?: number | undefined;
|
|
10267
|
+
cleanupTimeoutMs?: number | undefined;
|
|
10268
|
+
}) | undefined;
|
|
10217
10269
|
};
|
|
10218
10270
|
export type PostStoredAgents_Response = PostAgentsAgentIdClone_Response;
|
|
10219
10271
|
export type PostStoredAgents_Request = Simplify<(never extends never ? {} : {
|
|
@@ -10347,6 +10399,11 @@ export type PatchStoredAgentsStoredAgentId_Body = {
|
|
|
10347
10399
|
requestContextSchema?: ({
|
|
10348
10400
|
[key: string]: unknown;
|
|
10349
10401
|
} | undefined) | undefined;
|
|
10402
|
+
/** Opt this agent into durable execution when it is hydrated. Cache and pubsub are inherited from the Mastra instance; without distributed backends durability is process-local. Does not enable automatic recovery — that stays `recovery.durableAgents`. */
|
|
10403
|
+
durable?: ((boolean | {
|
|
10404
|
+
maxSteps?: number | undefined;
|
|
10405
|
+
cleanupTimeoutMs?: number | undefined;
|
|
10406
|
+
}) | undefined) | undefined;
|
|
10350
10407
|
/** Optional message describing the changes for the auto-created version */
|
|
10351
10408
|
changeMessage?: string | undefined;
|
|
10352
10409
|
/** Immediately activate the auto-created version. Defaults to false when omitted. */
|
|
@@ -12764,7 +12821,7 @@ export type PostStoredSkills_Body = {
|
|
|
12764
12821
|
/** List of asset file paths */
|
|
12765
12822
|
assets?: string[] | undefined;
|
|
12766
12823
|
/** Full file tree structure for the skill */
|
|
12767
|
-
files?:
|
|
12824
|
+
files?: Shared_Auxiliary_1236[] | undefined;
|
|
12768
12825
|
/** Additional metadata for the skill */
|
|
12769
12826
|
metadata?: {
|
|
12770
12827
|
[key: string]: unknown;
|
|
@@ -12814,7 +12871,7 @@ export type PatchStoredSkillsStoredSkillId_Body = {
|
|
|
12814
12871
|
/** List of asset file paths */
|
|
12815
12872
|
assets?: (string[] | undefined) | undefined;
|
|
12816
12873
|
/** Full file tree structure for the skill */
|
|
12817
|
-
files?: (
|
|
12874
|
+
files?: (Shared_Auxiliary_1236[] | undefined) | undefined;
|
|
12818
12875
|
/** Additional metadata for the skill */
|
|
12819
12876
|
metadata?: ({
|
|
12820
12877
|
[key: string]: unknown;
|
|
@@ -15813,6 +15870,7 @@ export type GetAgentControllerControllerIdSessionsResourceId_PathParams = {
|
|
|
15813
15870
|
};
|
|
15814
15871
|
export type GetAgentControllerControllerIdSessionsResourceId_QueryParams = {
|
|
15815
15872
|
sessionScope?: string | undefined;
|
|
15873
|
+
threadId?: string | undefined;
|
|
15816
15874
|
};
|
|
15817
15875
|
export type GetAgentControllerControllerIdSessionsResourceId_Response = {
|
|
15818
15876
|
controllerId: string;
|
|
@@ -15821,6 +15879,12 @@ export type GetAgentControllerControllerIdSessionsResourceId_Response = {
|
|
|
15821
15879
|
modeId: string;
|
|
15822
15880
|
modelId: string;
|
|
15823
15881
|
running?: boolean | undefined;
|
|
15882
|
+
tasks?: {
|
|
15883
|
+
id: string;
|
|
15884
|
+
content: string;
|
|
15885
|
+
status: 'pending' | 'in_progress' | 'completed';
|
|
15886
|
+
activeForm: string;
|
|
15887
|
+
}[] | undefined;
|
|
15824
15888
|
omProgress?: {
|
|
15825
15889
|
status: string;
|
|
15826
15890
|
pendingTokens: number;
|
|
@@ -15833,7 +15897,15 @@ export type GetAgentControllerControllerIdSessionsResourceId_Response = {
|
|
|
15833
15897
|
projectedReflectionSavings: number;
|
|
15834
15898
|
} | undefined;
|
|
15835
15899
|
tokenUsage?: {
|
|
15836
|
-
|
|
15900
|
+
promptTokens: number;
|
|
15901
|
+
completionTokens: number;
|
|
15902
|
+
totalTokens: number;
|
|
15903
|
+
reasoningTokens?: number | undefined;
|
|
15904
|
+
cachedInputTokens?: number | undefined;
|
|
15905
|
+
cacheCreationInputTokens?: number | undefined;
|
|
15906
|
+
cacheCreationInputTokens5m?: number | undefined;
|
|
15907
|
+
cacheCreationInputTokens1h?: number | undefined;
|
|
15908
|
+
raw?: unknown | undefined;
|
|
15837
15909
|
} | undefined;
|
|
15838
15910
|
settings?: {
|
|
15839
15911
|
yolo: boolean;
|
|
@@ -15900,7 +15972,9 @@ export interface GetAgentControllerControllerIdSessionsResourceIdThreads_RouteCo
|
|
|
15900
15972
|
responseType: 'json';
|
|
15901
15973
|
}
|
|
15902
15974
|
export type PostAgentControllerControllerIdSessionsResourceIdThreads_PathParams = GetAgentControllerControllerIdSessionsResourceId_PathParams;
|
|
15903
|
-
export type PostAgentControllerControllerIdSessionsResourceIdThreads_QueryParams =
|
|
15975
|
+
export type PostAgentControllerControllerIdSessionsResourceIdThreads_QueryParams = {
|
|
15976
|
+
sessionScope?: string | undefined;
|
|
15977
|
+
};
|
|
15904
15978
|
export type PostAgentControllerControllerIdSessionsResourceIdThreads_Body = {
|
|
15905
15979
|
title?: string | undefined;
|
|
15906
15980
|
};
|
|
@@ -15935,7 +16009,7 @@ export type DeleteAgentControllerControllerIdSessionsResourceIdThreadsThreadId_P
|
|
|
15935
16009
|
resourceId: string;
|
|
15936
16010
|
threadId: string;
|
|
15937
16011
|
};
|
|
15938
|
-
export type DeleteAgentControllerControllerIdSessionsResourceIdThreadsThreadId_QueryParams =
|
|
16012
|
+
export type DeleteAgentControllerControllerIdSessionsResourceIdThreadsThreadId_QueryParams = PostAgentControllerControllerIdSessionsResourceIdThreads_QueryParams;
|
|
15939
16013
|
export type DeleteAgentControllerControllerIdSessionsResourceIdThreadsThreadId_Response = {
|
|
15940
16014
|
ok: boolean;
|
|
15941
16015
|
};
|
|
@@ -15959,7 +16033,7 @@ export interface DeleteAgentControllerControllerIdSessionsResourceIdThreadsThrea
|
|
|
15959
16033
|
responseType: 'json';
|
|
15960
16034
|
}
|
|
15961
16035
|
export type PutAgentControllerControllerIdSessionsResourceIdThreadsThreadId_PathParams = DeleteAgentControllerControllerIdSessionsResourceIdThreadsThreadId_PathParams;
|
|
15962
|
-
export type PutAgentControllerControllerIdSessionsResourceIdThreadsThreadId_QueryParams =
|
|
16036
|
+
export type PutAgentControllerControllerIdSessionsResourceIdThreadsThreadId_QueryParams = PostAgentControllerControllerIdSessionsResourceIdThreads_QueryParams;
|
|
15963
16037
|
export type PutAgentControllerControllerIdSessionsResourceIdThreadsThreadId_Body = {
|
|
15964
16038
|
title: string;
|
|
15965
16039
|
};
|
|
@@ -15984,7 +16058,7 @@ export interface PutAgentControllerControllerIdSessionsResourceIdThreadsThreadId
|
|
|
15984
16058
|
responseType: 'json';
|
|
15985
16059
|
}
|
|
15986
16060
|
export type PostAgentControllerControllerIdSessionsResourceIdThreadsClone_PathParams = GetAgentControllerControllerIdSessionsResourceId_PathParams;
|
|
15987
|
-
export type PostAgentControllerControllerIdSessionsResourceIdThreadsClone_QueryParams =
|
|
16061
|
+
export type PostAgentControllerControllerIdSessionsResourceIdThreadsClone_QueryParams = PostAgentControllerControllerIdSessionsResourceIdThreads_QueryParams;
|
|
15988
16062
|
export type PostAgentControllerControllerIdSessionsResourceIdThreadsClone_Body = {
|
|
15989
16063
|
sourceThreadId?: string | undefined;
|
|
15990
16064
|
title?: string | undefined;
|
|
@@ -16052,7 +16126,7 @@ export interface GetAgentControllerControllerIdSessionsResourceIdThreadsThreadId
|
|
|
16052
16126
|
responseType: 'json';
|
|
16053
16127
|
}
|
|
16054
16128
|
export type GetAgentControllerControllerIdSessionsResourceIdStream_PathParams = GetAgentControllerControllerIdSessionsResourceId_PathParams;
|
|
16055
|
-
export type GetAgentControllerControllerIdSessionsResourceIdStream_QueryParams =
|
|
16129
|
+
export type GetAgentControllerControllerIdSessionsResourceIdStream_QueryParams = PostAgentControllerControllerIdSessionsResourceIdThreads_QueryParams;
|
|
16056
16130
|
export type GetAgentControllerControllerIdSessionsResourceIdStream_Request = Simplify<(GetAgentControllerControllerIdSessionsResourceIdStream_PathParams extends never ? {} : {
|
|
16057
16131
|
params: GetAgentControllerControllerIdSessionsResourceIdStream_PathParams;
|
|
16058
16132
|
}) & (GetAgentControllerControllerIdSessionsResourceIdStream_QueryParams extends never ? {} : {} extends GetAgentControllerControllerIdSessionsResourceIdStream_QueryParams ? {
|
|
@@ -16073,7 +16147,7 @@ export interface GetAgentControllerControllerIdSessionsResourceIdStream_RouteCon
|
|
|
16073
16147
|
responseType: 'stream';
|
|
16074
16148
|
}
|
|
16075
16149
|
export type PostAgentControllerControllerIdSessionsResourceIdMessages_PathParams = GetAgentControllerControllerIdSessionsResourceId_PathParams;
|
|
16076
|
-
export type PostAgentControllerControllerIdSessionsResourceIdMessages_QueryParams =
|
|
16150
|
+
export type PostAgentControllerControllerIdSessionsResourceIdMessages_QueryParams = PostAgentControllerControllerIdSessionsResourceIdThreads_QueryParams;
|
|
16077
16151
|
export type PostAgentControllerControllerIdSessionsResourceIdMessages_Body = {
|
|
16078
16152
|
message: string;
|
|
16079
16153
|
requestContext?: {
|
|
@@ -16106,7 +16180,7 @@ export interface PostAgentControllerControllerIdSessionsResourceIdMessages_Route
|
|
|
16106
16180
|
responseType: 'json';
|
|
16107
16181
|
}
|
|
16108
16182
|
export type PostAgentControllerControllerIdSessionsResourceIdSteer_PathParams = GetAgentControllerControllerIdSessionsResourceId_PathParams;
|
|
16109
|
-
export type PostAgentControllerControllerIdSessionsResourceIdSteer_QueryParams =
|
|
16183
|
+
export type PostAgentControllerControllerIdSessionsResourceIdSteer_QueryParams = PostAgentControllerControllerIdSessionsResourceIdThreads_QueryParams;
|
|
16110
16184
|
export type PostAgentControllerControllerIdSessionsResourceIdSteer_Body = {
|
|
16111
16185
|
message: string;
|
|
16112
16186
|
requestContext?: {
|
|
@@ -16134,7 +16208,7 @@ export interface PostAgentControllerControllerIdSessionsResourceIdSteer_RouteCon
|
|
|
16134
16208
|
responseType: 'json';
|
|
16135
16209
|
}
|
|
16136
16210
|
export type PostAgentControllerControllerIdSessionsResourceIdFollowUp_PathParams = GetAgentControllerControllerIdSessionsResourceId_PathParams;
|
|
16137
|
-
export type PostAgentControllerControllerIdSessionsResourceIdFollowUp_QueryParams =
|
|
16211
|
+
export type PostAgentControllerControllerIdSessionsResourceIdFollowUp_QueryParams = PostAgentControllerControllerIdSessionsResourceIdThreads_QueryParams;
|
|
16138
16212
|
export type PostAgentControllerControllerIdSessionsResourceIdFollowUp_Body = PostAgentControllerControllerIdSessionsResourceIdSteer_Body;
|
|
16139
16213
|
export type PostAgentControllerControllerIdSessionsResourceIdFollowUp_Response = DeleteAgentControllerControllerIdSessionsResourceIdThreadsThreadId_Response;
|
|
16140
16214
|
export type PostAgentControllerControllerIdSessionsResourceIdFollowUp_Request = Simplify<(PostAgentControllerControllerIdSessionsResourceIdFollowUp_PathParams extends never ? {} : {
|
|
@@ -16157,7 +16231,7 @@ export interface PostAgentControllerControllerIdSessionsResourceIdFollowUp_Route
|
|
|
16157
16231
|
responseType: 'json';
|
|
16158
16232
|
}
|
|
16159
16233
|
export type PostAgentControllerControllerIdSessionsResourceIdAbort_PathParams = GetAgentControllerControllerIdSessionsResourceId_PathParams;
|
|
16160
|
-
export type PostAgentControllerControllerIdSessionsResourceIdAbort_QueryParams =
|
|
16234
|
+
export type PostAgentControllerControllerIdSessionsResourceIdAbort_QueryParams = PostAgentControllerControllerIdSessionsResourceIdThreads_QueryParams;
|
|
16161
16235
|
export type PostAgentControllerControllerIdSessionsResourceIdAbort_Response = DeleteAgentControllerControllerIdSessionsResourceIdThreadsThreadId_Response;
|
|
16162
16236
|
export type PostAgentControllerControllerIdSessionsResourceIdAbort_Request = Simplify<(PostAgentControllerControllerIdSessionsResourceIdAbort_PathParams extends never ? {} : {
|
|
16163
16237
|
params: PostAgentControllerControllerIdSessionsResourceIdAbort_PathParams;
|
|
@@ -16179,7 +16253,7 @@ export interface PostAgentControllerControllerIdSessionsResourceIdAbort_RouteCon
|
|
|
16179
16253
|
responseType: 'json';
|
|
16180
16254
|
}
|
|
16181
16255
|
export type PostAgentControllerControllerIdSessionsResourceIdToolApproval_PathParams = GetAgentControllerControllerIdSessionsResourceId_PathParams;
|
|
16182
|
-
export type PostAgentControllerControllerIdSessionsResourceIdToolApproval_QueryParams =
|
|
16256
|
+
export type PostAgentControllerControllerIdSessionsResourceIdToolApproval_QueryParams = PostAgentControllerControllerIdSessionsResourceIdThreads_QueryParams;
|
|
16183
16257
|
export type PostAgentControllerControllerIdSessionsResourceIdToolApproval_Body = {
|
|
16184
16258
|
toolCallId: string;
|
|
16185
16259
|
approved: boolean;
|
|
@@ -16208,7 +16282,7 @@ export interface PostAgentControllerControllerIdSessionsResourceIdToolApproval_R
|
|
|
16208
16282
|
responseType: 'json';
|
|
16209
16283
|
}
|
|
16210
16284
|
export type PostAgentControllerControllerIdSessionsResourceIdToolSuspension_PathParams = GetAgentControllerControllerIdSessionsResourceId_PathParams;
|
|
16211
|
-
export type PostAgentControllerControllerIdSessionsResourceIdToolSuspension_QueryParams =
|
|
16285
|
+
export type PostAgentControllerControllerIdSessionsResourceIdToolSuspension_QueryParams = PostAgentControllerControllerIdSessionsResourceIdThreads_QueryParams;
|
|
16212
16286
|
export type PostAgentControllerControllerIdSessionsResourceIdToolSuspension_Body = {
|
|
16213
16287
|
toolCallId: string;
|
|
16214
16288
|
resumeData: unknown;
|
|
@@ -16237,7 +16311,7 @@ export interface PostAgentControllerControllerIdSessionsResourceIdToolSuspension
|
|
|
16237
16311
|
responseType: 'json';
|
|
16238
16312
|
}
|
|
16239
16313
|
export type PostAgentControllerControllerIdSessionsResourceIdMode_PathParams = GetAgentControllerControllerIdSessionsResourceId_PathParams;
|
|
16240
|
-
export type PostAgentControllerControllerIdSessionsResourceIdMode_QueryParams =
|
|
16314
|
+
export type PostAgentControllerControllerIdSessionsResourceIdMode_QueryParams = PostAgentControllerControllerIdSessionsResourceIdThreads_QueryParams;
|
|
16241
16315
|
export type PostAgentControllerControllerIdSessionsResourceIdMode_Body = {
|
|
16242
16316
|
modeId: string;
|
|
16243
16317
|
};
|
|
@@ -16262,7 +16336,7 @@ export interface PostAgentControllerControllerIdSessionsResourceIdMode_RouteCont
|
|
|
16262
16336
|
responseType: 'json';
|
|
16263
16337
|
}
|
|
16264
16338
|
export type PostAgentControllerControllerIdSessionsResourceIdModel_PathParams = GetAgentControllerControllerIdSessionsResourceId_PathParams;
|
|
16265
|
-
export type PostAgentControllerControllerIdSessionsResourceIdModel_QueryParams =
|
|
16339
|
+
export type PostAgentControllerControllerIdSessionsResourceIdModel_QueryParams = PostAgentControllerControllerIdSessionsResourceIdThreads_QueryParams;
|
|
16266
16340
|
export type PostAgentControllerControllerIdSessionsResourceIdModel_Body = {
|
|
16267
16341
|
modelId: string;
|
|
16268
16342
|
scope?: ('global' | 'thread') | undefined;
|
|
@@ -16289,7 +16363,7 @@ export interface PostAgentControllerControllerIdSessionsResourceIdModel_RouteCon
|
|
|
16289
16363
|
responseType: 'json';
|
|
16290
16364
|
}
|
|
16291
16365
|
export type PostAgentControllerControllerIdSessionsResourceIdThread_PathParams = GetAgentControllerControllerIdSessionsResourceId_PathParams;
|
|
16292
|
-
export type PostAgentControllerControllerIdSessionsResourceIdThread_QueryParams =
|
|
16366
|
+
export type PostAgentControllerControllerIdSessionsResourceIdThread_QueryParams = PostAgentControllerControllerIdSessionsResourceIdThreads_QueryParams;
|
|
16293
16367
|
export type PostAgentControllerControllerIdSessionsResourceIdThread_Body = {
|
|
16294
16368
|
threadId: string;
|
|
16295
16369
|
};
|
|
@@ -16314,7 +16388,7 @@ export interface PostAgentControllerControllerIdSessionsResourceIdThread_RouteCo
|
|
|
16314
16388
|
responseType: 'json';
|
|
16315
16389
|
}
|
|
16316
16390
|
export type PostAgentControllerControllerIdSessionsResourceIdNotifications_PathParams = GetAgentControllerControllerIdSessionsResourceId_PathParams;
|
|
16317
|
-
export type PostAgentControllerControllerIdSessionsResourceIdNotifications_QueryParams =
|
|
16391
|
+
export type PostAgentControllerControllerIdSessionsResourceIdNotifications_QueryParams = PostAgentControllerControllerIdSessionsResourceIdThreads_QueryParams;
|
|
16318
16392
|
export type PostAgentControllerControllerIdSessionsResourceIdNotifications_Body = {
|
|
16319
16393
|
source: string;
|
|
16320
16394
|
kind: string;
|
|
@@ -16381,7 +16455,7 @@ export interface GetAgentControllerControllerIdWorkspace_RouteContract {
|
|
|
16381
16455
|
responseType: 'json';
|
|
16382
16456
|
}
|
|
16383
16457
|
export type GetAgentControllerControllerIdSessionsResourceIdOm_PathParams = GetAgentControllerControllerIdSessionsResourceId_PathParams;
|
|
16384
|
-
export type GetAgentControllerControllerIdSessionsResourceIdOm_QueryParams =
|
|
16458
|
+
export type GetAgentControllerControllerIdSessionsResourceIdOm_QueryParams = PostAgentControllerControllerIdSessionsResourceIdThreads_QueryParams;
|
|
16385
16459
|
export type GetAgentControllerControllerIdSessionsResourceIdOm_Response = {
|
|
16386
16460
|
record?: unknown | undefined;
|
|
16387
16461
|
};
|
|
@@ -16405,7 +16479,7 @@ export interface GetAgentControllerControllerIdSessionsResourceIdOm_RouteContrac
|
|
|
16405
16479
|
responseType: 'json';
|
|
16406
16480
|
}
|
|
16407
16481
|
export type PostAgentControllerControllerIdSessionsResourceIdResource_PathParams = GetAgentControllerControllerIdSessionsResourceId_PathParams;
|
|
16408
|
-
export type PostAgentControllerControllerIdSessionsResourceIdResource_QueryParams =
|
|
16482
|
+
export type PostAgentControllerControllerIdSessionsResourceIdResource_QueryParams = PostAgentControllerControllerIdSessionsResourceIdThreads_QueryParams;
|
|
16409
16483
|
export type PostAgentControllerControllerIdSessionsResourceIdResource_Body = {
|
|
16410
16484
|
newResourceId: string;
|
|
16411
16485
|
};
|
|
@@ -16430,7 +16504,7 @@ export interface PostAgentControllerControllerIdSessionsResourceIdResource_Route
|
|
|
16430
16504
|
responseType: 'json';
|
|
16431
16505
|
}
|
|
16432
16506
|
export type GetAgentControllerControllerIdSessionsResourceIdResources_PathParams = GetAgentControllerControllerIdSessionsResourceId_PathParams;
|
|
16433
|
-
export type GetAgentControllerControllerIdSessionsResourceIdResources_QueryParams =
|
|
16507
|
+
export type GetAgentControllerControllerIdSessionsResourceIdResources_QueryParams = PostAgentControllerControllerIdSessionsResourceIdThreads_QueryParams;
|
|
16434
16508
|
export type GetAgentControllerControllerIdSessionsResourceIdResources_Response = {
|
|
16435
16509
|
resourceIds: string[];
|
|
16436
16510
|
};
|
|
@@ -16454,7 +16528,7 @@ export interface GetAgentControllerControllerIdSessionsResourceIdResources_Route
|
|
|
16454
16528
|
responseType: 'json';
|
|
16455
16529
|
}
|
|
16456
16530
|
export type GetAgentControllerControllerIdSessionsResourceIdGoal_PathParams = GetAgentControllerControllerIdSessionsResourceId_PathParams;
|
|
16457
|
-
export type GetAgentControllerControllerIdSessionsResourceIdGoal_QueryParams =
|
|
16531
|
+
export type GetAgentControllerControllerIdSessionsResourceIdGoal_QueryParams = PostAgentControllerControllerIdSessionsResourceIdThreads_QueryParams;
|
|
16458
16532
|
export type GetAgentControllerControllerIdSessionsResourceIdGoal_Response = {
|
|
16459
16533
|
goal?: {
|
|
16460
16534
|
id?: string | undefined;
|
|
@@ -16488,7 +16562,7 @@ export interface GetAgentControllerControllerIdSessionsResourceIdGoal_RouteContr
|
|
|
16488
16562
|
responseType: 'json';
|
|
16489
16563
|
}
|
|
16490
16564
|
export type PostAgentControllerControllerIdSessionsResourceIdGoal_PathParams = GetAgentControllerControllerIdSessionsResourceId_PathParams;
|
|
16491
|
-
export type PostAgentControllerControllerIdSessionsResourceIdGoal_QueryParams =
|
|
16565
|
+
export type PostAgentControllerControllerIdSessionsResourceIdGoal_QueryParams = PostAgentControllerControllerIdSessionsResourceIdThreads_QueryParams;
|
|
16492
16566
|
export type PostAgentControllerControllerIdSessionsResourceIdGoal_Body = {
|
|
16493
16567
|
objective: string;
|
|
16494
16568
|
judgeModelId?: string | undefined;
|
|
@@ -16515,7 +16589,7 @@ export interface PostAgentControllerControllerIdSessionsResourceIdGoal_RouteCont
|
|
|
16515
16589
|
responseType: 'json';
|
|
16516
16590
|
}
|
|
16517
16591
|
export type PutAgentControllerControllerIdSessionsResourceIdGoal_PathParams = GetAgentControllerControllerIdSessionsResourceId_PathParams;
|
|
16518
|
-
export type PutAgentControllerControllerIdSessionsResourceIdGoal_QueryParams =
|
|
16592
|
+
export type PutAgentControllerControllerIdSessionsResourceIdGoal_QueryParams = PostAgentControllerControllerIdSessionsResourceIdThreads_QueryParams;
|
|
16519
16593
|
export type PutAgentControllerControllerIdSessionsResourceIdGoal_Body = {
|
|
16520
16594
|
judgeModelId?: string | undefined;
|
|
16521
16595
|
maxRuns?: number | undefined;
|
|
@@ -16542,7 +16616,7 @@ export interface PutAgentControllerControllerIdSessionsResourceIdGoal_RouteContr
|
|
|
16542
16616
|
responseType: 'json';
|
|
16543
16617
|
}
|
|
16544
16618
|
export type DeleteAgentControllerControllerIdSessionsResourceIdGoal_PathParams = GetAgentControllerControllerIdSessionsResourceId_PathParams;
|
|
16545
|
-
export type DeleteAgentControllerControllerIdSessionsResourceIdGoal_QueryParams =
|
|
16619
|
+
export type DeleteAgentControllerControllerIdSessionsResourceIdGoal_QueryParams = PostAgentControllerControllerIdSessionsResourceIdThreads_QueryParams;
|
|
16546
16620
|
export type DeleteAgentControllerControllerIdSessionsResourceIdGoal_Response = DeleteAgentControllerControllerIdSessionsResourceIdThreadsThreadId_Response;
|
|
16547
16621
|
export type DeleteAgentControllerControllerIdSessionsResourceIdGoal_Request = Simplify<(DeleteAgentControllerControllerIdSessionsResourceIdGoal_PathParams extends never ? {} : {
|
|
16548
16622
|
params: DeleteAgentControllerControllerIdSessionsResourceIdGoal_PathParams;
|
|
@@ -16564,7 +16638,7 @@ export interface DeleteAgentControllerControllerIdSessionsResourceIdGoal_RouteCo
|
|
|
16564
16638
|
responseType: 'json';
|
|
16565
16639
|
}
|
|
16566
16640
|
export type GetAgentControllerControllerIdSessionsResourceIdPermissions_PathParams = GetAgentControllerControllerIdSessionsResourceId_PathParams;
|
|
16567
|
-
export type GetAgentControllerControllerIdSessionsResourceIdPermissions_QueryParams =
|
|
16641
|
+
export type GetAgentControllerControllerIdSessionsResourceIdPermissions_QueryParams = PostAgentControllerControllerIdSessionsResourceIdThreads_QueryParams;
|
|
16568
16642
|
export type GetAgentControllerControllerIdSessionsResourceIdPermissions_Response = {
|
|
16569
16643
|
categories?: {
|
|
16570
16644
|
[key: string]: 'allow' | 'ask' | 'deny';
|
|
@@ -16593,7 +16667,7 @@ export interface GetAgentControllerControllerIdSessionsResourceIdPermissions_Rou
|
|
|
16593
16667
|
responseType: 'json';
|
|
16594
16668
|
}
|
|
16595
16669
|
export type PutAgentControllerControllerIdSessionsResourceIdPermissionsCategory_PathParams = GetAgentControllerControllerIdSessionsResourceId_PathParams;
|
|
16596
|
-
export type PutAgentControllerControllerIdSessionsResourceIdPermissionsCategory_QueryParams =
|
|
16670
|
+
export type PutAgentControllerControllerIdSessionsResourceIdPermissionsCategory_QueryParams = PostAgentControllerControllerIdSessionsResourceIdThreads_QueryParams;
|
|
16597
16671
|
export type PutAgentControllerControllerIdSessionsResourceIdPermissionsCategory_Body = {
|
|
16598
16672
|
category: 'read' | 'edit' | 'execute' | 'mcp' | 'other';
|
|
16599
16673
|
policy: 'allow' | 'ask' | 'deny';
|
|
@@ -16619,7 +16693,7 @@ export interface PutAgentControllerControllerIdSessionsResourceIdPermissionsCate
|
|
|
16619
16693
|
responseType: 'json';
|
|
16620
16694
|
}
|
|
16621
16695
|
export type PutAgentControllerControllerIdSessionsResourceIdPermissionsTool_PathParams = GetAgentControllerControllerIdSessionsResourceId_PathParams;
|
|
16622
|
-
export type PutAgentControllerControllerIdSessionsResourceIdPermissionsTool_QueryParams =
|
|
16696
|
+
export type PutAgentControllerControllerIdSessionsResourceIdPermissionsTool_QueryParams = PostAgentControllerControllerIdSessionsResourceIdThreads_QueryParams;
|
|
16623
16697
|
export type PutAgentControllerControllerIdSessionsResourceIdPermissionsTool_Body = {
|
|
16624
16698
|
toolName: string;
|
|
16625
16699
|
policy: 'allow' | 'ask' | 'deny';
|
|
@@ -16645,7 +16719,7 @@ export interface PutAgentControllerControllerIdSessionsResourceIdPermissionsTool
|
|
|
16645
16719
|
responseType: 'json';
|
|
16646
16720
|
}
|
|
16647
16721
|
export type PutAgentControllerControllerIdSessionsResourceIdState_PathParams = GetAgentControllerControllerIdSessionsResourceId_PathParams;
|
|
16648
|
-
export type PutAgentControllerControllerIdSessionsResourceIdState_QueryParams =
|
|
16722
|
+
export type PutAgentControllerControllerIdSessionsResourceIdState_QueryParams = PostAgentControllerControllerIdSessionsResourceIdThreads_QueryParams;
|
|
16649
16723
|
export type PutAgentControllerControllerIdSessionsResourceIdState_Body = {
|
|
16650
16724
|
state: {
|
|
16651
16725
|
[key: string]: unknown;
|
|
@@ -16708,6 +16782,7 @@ export interface RouteTypes {
|
|
|
16708
16782
|
'POST /agents/:agentId/models/:modelConfigId': PostAgentsAgentIdModelsModelConfigId_RouteContract;
|
|
16709
16783
|
'POST /agents/:agentId/instructions/enhance': PostAgentsAgentIdInstructionsEnhance_RouteContract;
|
|
16710
16784
|
'GET /agents/:agentId/tools/:toolId': GetAgentsAgentIdToolsToolId_RouteContract;
|
|
16785
|
+
'GET /agents/:agentId/plans/file': GetAgentsAgentIdPlansFile_RouteContract;
|
|
16711
16786
|
'GET /agents/:agentId/skills/:skillName': GetAgentsAgentIdSkillsSkillName_RouteContract;
|
|
16712
16787
|
'POST /agents/:agentId/voice/speak': PostAgentsAgentIdVoiceSpeak_RouteContract;
|
|
16713
16788
|
'POST /agents/:agentId/speak': PostAgentsAgentIdSpeak_RouteContract;
|
|
@@ -17287,6 +17362,9 @@ export interface Client {
|
|
|
17287
17362
|
'/agents/:agentId/observe': {
|
|
17288
17363
|
POST: PostAgentsAgentIdObserve_RouteContract;
|
|
17289
17364
|
};
|
|
17365
|
+
'/agents/:agentId/plans/file': {
|
|
17366
|
+
GET: GetAgentsAgentIdPlansFile_RouteContract;
|
|
17367
|
+
};
|
|
17290
17368
|
'/agents/:agentId/queue-message': {
|
|
17291
17369
|
POST: PostAgentsAgentIdQueueMessage_RouteContract;
|
|
17292
17370
|
};
|