@runtypelabs/sdk 6.4.0 → 6.5.0
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/index.cjs +62 -18
- package/dist/index.d.cts +722 -23
- package/dist/index.d.ts +722 -23
- package/dist/index.mjs +62 -18
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2232,9 +2232,7 @@ interface paths {
|
|
|
2232
2232
|
};
|
|
2233
2233
|
requestBody?: {
|
|
2234
2234
|
content: {
|
|
2235
|
-
"application/json":
|
|
2236
|
-
[key: string]: unknown;
|
|
2237
|
-
};
|
|
2235
|
+
"application/json": components["schemas"]["AgentApproveRequest"];
|
|
2238
2236
|
};
|
|
2239
2237
|
};
|
|
2240
2238
|
responses: {
|
|
@@ -2244,6 +2242,7 @@ interface paths {
|
|
|
2244
2242
|
[name: string]: unknown;
|
|
2245
2243
|
};
|
|
2246
2244
|
content: {
|
|
2245
|
+
"application/json": components["schemas"]["AgentApproveContinuationJsonResponse"];
|
|
2247
2246
|
"text/event-stream": unknown;
|
|
2248
2247
|
};
|
|
2249
2248
|
};
|
|
@@ -2265,6 +2264,15 @@ interface paths {
|
|
|
2265
2264
|
"application/json": components["schemas"]["Error"];
|
|
2266
2265
|
};
|
|
2267
2266
|
};
|
|
2267
|
+
/** @description Platform-key spend limit exceeded during a buffered continuation */
|
|
2268
|
+
402: {
|
|
2269
|
+
headers: {
|
|
2270
|
+
[name: string]: unknown;
|
|
2271
|
+
};
|
|
2272
|
+
content: {
|
|
2273
|
+
"application/json": components["schemas"]["AgentApprovalContinuationJsonResponse"];
|
|
2274
|
+
};
|
|
2275
|
+
};
|
|
2268
2276
|
/** @description Insufficient permissions */
|
|
2269
2277
|
403: {
|
|
2270
2278
|
headers: {
|
|
@@ -3726,9 +3734,7 @@ interface paths {
|
|
|
3726
3734
|
};
|
|
3727
3735
|
requestBody?: {
|
|
3728
3736
|
content: {
|
|
3729
|
-
"application/json":
|
|
3730
|
-
[key: string]: unknown;
|
|
3731
|
-
};
|
|
3737
|
+
"application/json": components["schemas"]["AgentResumeRequest"];
|
|
3732
3738
|
};
|
|
3733
3739
|
};
|
|
3734
3740
|
responses: {
|
|
@@ -3738,6 +3744,7 @@ interface paths {
|
|
|
3738
3744
|
[name: string]: unknown;
|
|
3739
3745
|
};
|
|
3740
3746
|
content: {
|
|
3747
|
+
"application/json": components["schemas"]["AgentResumeContinuationJsonResponse"];
|
|
3741
3748
|
"text/event-stream": unknown;
|
|
3742
3749
|
};
|
|
3743
3750
|
};
|
|
@@ -3759,6 +3766,15 @@ interface paths {
|
|
|
3759
3766
|
"application/json": components["schemas"]["Error"];
|
|
3760
3767
|
};
|
|
3761
3768
|
};
|
|
3769
|
+
/** @description Platform-key spend limit exceeded during a buffered continuation */
|
|
3770
|
+
402: {
|
|
3771
|
+
headers: {
|
|
3772
|
+
[name: string]: unknown;
|
|
3773
|
+
};
|
|
3774
|
+
content: {
|
|
3775
|
+
"application/json": components["schemas"]["AgentResumeContinuationJsonResponse"];
|
|
3776
|
+
};
|
|
3777
|
+
};
|
|
3762
3778
|
/** @description Insufficient permissions */
|
|
3763
3779
|
403: {
|
|
3764
3780
|
headers: {
|
|
@@ -4076,6 +4092,146 @@ interface paths {
|
|
|
4076
4092
|
patch?: never;
|
|
4077
4093
|
trace?: never;
|
|
4078
4094
|
};
|
|
4095
|
+
"/v1/analytics/end-user-usage": {
|
|
4096
|
+
parameters: {
|
|
4097
|
+
query?: never;
|
|
4098
|
+
header?: never;
|
|
4099
|
+
path?: never;
|
|
4100
|
+
cookie?: never;
|
|
4101
|
+
};
|
|
4102
|
+
/**
|
|
4103
|
+
* Get product usage by end user
|
|
4104
|
+
* @description Get a retained, product-scoped breakdown of executions and platform spend by projected end user.
|
|
4105
|
+
*/
|
|
4106
|
+
get: {
|
|
4107
|
+
parameters: {
|
|
4108
|
+
query: {
|
|
4109
|
+
productId: string;
|
|
4110
|
+
productTenantId?: string;
|
|
4111
|
+
period?: "billing_period" | "7d" | "30d" | "90d";
|
|
4112
|
+
days?: number;
|
|
4113
|
+
sort?: "spend" | "executions";
|
|
4114
|
+
limit?: number;
|
|
4115
|
+
};
|
|
4116
|
+
header?: never;
|
|
4117
|
+
path?: never;
|
|
4118
|
+
cookie?: never;
|
|
4119
|
+
};
|
|
4120
|
+
requestBody?: never;
|
|
4121
|
+
responses: {
|
|
4122
|
+
/** @description End-user usage breakdown */
|
|
4123
|
+
200: {
|
|
4124
|
+
headers: {
|
|
4125
|
+
[name: string]: unknown;
|
|
4126
|
+
};
|
|
4127
|
+
content: {
|
|
4128
|
+
"application/json": {
|
|
4129
|
+
coverage: {
|
|
4130
|
+
attributedExecutions: number;
|
|
4131
|
+
attributedSpendThousandthsCent: number;
|
|
4132
|
+
unattributedExecutions: number;
|
|
4133
|
+
unattributedSpendThousandthsCent: number;
|
|
4134
|
+
};
|
|
4135
|
+
endUsers: {
|
|
4136
|
+
costPerExecutionDollars: number | null;
|
|
4137
|
+
endUser: {
|
|
4138
|
+
email: string | null;
|
|
4139
|
+
id: string;
|
|
4140
|
+
name: string | null;
|
|
4141
|
+
productTenantId: string | null;
|
|
4142
|
+
};
|
|
4143
|
+
executions: number;
|
|
4144
|
+
lastSeenAt: string;
|
|
4145
|
+
spendDollars: number;
|
|
4146
|
+
spendThousandthsCent: number;
|
|
4147
|
+
}[];
|
|
4148
|
+
generatedAt: string;
|
|
4149
|
+
period: {
|
|
4150
|
+
days: number;
|
|
4151
|
+
endDate: string;
|
|
4152
|
+
/** @enum {string} */
|
|
4153
|
+
preset?: "billing_period" | "7d" | "30d" | "90d";
|
|
4154
|
+
startDate: string;
|
|
4155
|
+
};
|
|
4156
|
+
retention: {
|
|
4157
|
+
attributionStartedAt: string | null;
|
|
4158
|
+
earliestAvailableAt: string | null;
|
|
4159
|
+
/** @enum {number} */
|
|
4160
|
+
retentionDays: 93;
|
|
4161
|
+
};
|
|
4162
|
+
scope: {
|
|
4163
|
+
productId: string;
|
|
4164
|
+
productTenantId: string | null;
|
|
4165
|
+
};
|
|
4166
|
+
tenantIds: string[];
|
|
4167
|
+
totals: {
|
|
4168
|
+
executions: number;
|
|
4169
|
+
spendDollars: number;
|
|
4170
|
+
spendThousandthsCent: number;
|
|
4171
|
+
};
|
|
4172
|
+
unattributed: {
|
|
4173
|
+
executions: number;
|
|
4174
|
+
spendDollars: number;
|
|
4175
|
+
spendThousandthsCent: number;
|
|
4176
|
+
};
|
|
4177
|
+
};
|
|
4178
|
+
};
|
|
4179
|
+
};
|
|
4180
|
+
/** @description Validation error */
|
|
4181
|
+
400: {
|
|
4182
|
+
headers: {
|
|
4183
|
+
[name: string]: unknown;
|
|
4184
|
+
};
|
|
4185
|
+
content: {
|
|
4186
|
+
"application/json": components["schemas"]["Error"];
|
|
4187
|
+
};
|
|
4188
|
+
};
|
|
4189
|
+
/** @description Unauthorized */
|
|
4190
|
+
401: {
|
|
4191
|
+
headers: {
|
|
4192
|
+
[name: string]: unknown;
|
|
4193
|
+
};
|
|
4194
|
+
content: {
|
|
4195
|
+
"application/json": components["schemas"]["Error"];
|
|
4196
|
+
};
|
|
4197
|
+
};
|
|
4198
|
+
/** @description Insufficient permissions */
|
|
4199
|
+
403: {
|
|
4200
|
+
headers: {
|
|
4201
|
+
[name: string]: unknown;
|
|
4202
|
+
};
|
|
4203
|
+
content: {
|
|
4204
|
+
"application/json": components["schemas"]["Error"];
|
|
4205
|
+
};
|
|
4206
|
+
};
|
|
4207
|
+
/** @description Feature or product not found */
|
|
4208
|
+
404: {
|
|
4209
|
+
headers: {
|
|
4210
|
+
[name: string]: unknown;
|
|
4211
|
+
};
|
|
4212
|
+
content: {
|
|
4213
|
+
"application/json": components["schemas"]["Error"];
|
|
4214
|
+
};
|
|
4215
|
+
};
|
|
4216
|
+
/** @description Internal server error */
|
|
4217
|
+
500: {
|
|
4218
|
+
headers: {
|
|
4219
|
+
[name: string]: unknown;
|
|
4220
|
+
};
|
|
4221
|
+
content: {
|
|
4222
|
+
"application/json": components["schemas"]["Error"];
|
|
4223
|
+
};
|
|
4224
|
+
};
|
|
4225
|
+
};
|
|
4226
|
+
};
|
|
4227
|
+
put?: never;
|
|
4228
|
+
post?: never;
|
|
4229
|
+
delete?: never;
|
|
4230
|
+
options?: never;
|
|
4231
|
+
head?: never;
|
|
4232
|
+
patch?: never;
|
|
4233
|
+
trace?: never;
|
|
4234
|
+
};
|
|
4079
4235
|
"/v1/analytics/record-results": {
|
|
4080
4236
|
parameters: {
|
|
4081
4237
|
query?: never;
|
|
@@ -4962,6 +5118,29 @@ interface paths {
|
|
|
4962
5118
|
requestBody?: {
|
|
4963
5119
|
content: {
|
|
4964
5120
|
"application/json": {
|
|
5121
|
+
options?: {
|
|
5122
|
+
/** @description Records admitted to one processing chunk before progress is flushed and batch gates are re-checked. */
|
|
5123
|
+
chunkSize?: number;
|
|
5124
|
+
/** @description Flow-wide deadline passed to every per-record flow execution. */
|
|
5125
|
+
flowTimeoutMs?: number;
|
|
5126
|
+
/** @description Retries per failed record. */
|
|
5127
|
+
maxRetries?: number;
|
|
5128
|
+
/** @description Model id applied to every prompt step in this batch. */
|
|
5129
|
+
modelOverride?: string;
|
|
5130
|
+
/** @description Completed results buffered before partial progress is persisted. */
|
|
5131
|
+
progressFlushSize?: number;
|
|
5132
|
+
/** @description Max records dispatched in parallel within a processing chunk. */
|
|
5133
|
+
recordConcurrency?: number;
|
|
5134
|
+
/** @description Skip the serial prompt-cache canary before fan-out. */
|
|
5135
|
+
skipCacheWarm?: boolean;
|
|
5136
|
+
/** @description Per-step deadline passed to every per-record flow execution. */
|
|
5137
|
+
stepTimeoutMs?: number;
|
|
5138
|
+
/** @description Per-record execution timeout in milliseconds. */
|
|
5139
|
+
timeoutMs?: number;
|
|
5140
|
+
} & {
|
|
5141
|
+
[key: string]: unknown;
|
|
5142
|
+
};
|
|
5143
|
+
} & {
|
|
4965
5144
|
[key: string]: unknown;
|
|
4966
5145
|
};
|
|
4967
5146
|
};
|
|
@@ -6930,12 +7109,13 @@ interface paths {
|
|
|
6930
7109
|
};
|
|
6931
7110
|
};
|
|
6932
7111
|
responses: {
|
|
6933
|
-
/** @description SSE stream of
|
|
7112
|
+
/** @description SSE stream of resumed execution events, or a buffered JSON continuation result when streamResponse is false */
|
|
6934
7113
|
200: {
|
|
6935
7114
|
headers: {
|
|
6936
7115
|
[name: string]: unknown;
|
|
6937
7116
|
};
|
|
6938
7117
|
content: {
|
|
7118
|
+
"application/json": components["schemas"]["DispatchToolOutputContinuationJsonResponse"];
|
|
6939
7119
|
"text/event-stream": unknown;
|
|
6940
7120
|
};
|
|
6941
7121
|
};
|
|
@@ -6993,6 +7173,15 @@ interface paths {
|
|
|
6993
7173
|
"application/json": components["schemas"]["Error"];
|
|
6994
7174
|
};
|
|
6995
7175
|
};
|
|
7176
|
+
/** @description Neutral service-unavailable response when the owner platform-key spend limit blocks an end-user continuation */
|
|
7177
|
+
503: {
|
|
7178
|
+
headers: {
|
|
7179
|
+
[name: string]: unknown;
|
|
7180
|
+
};
|
|
7181
|
+
content: {
|
|
7182
|
+
"application/json": components["schemas"]["Error"];
|
|
7183
|
+
};
|
|
7184
|
+
};
|
|
6996
7185
|
};
|
|
6997
7186
|
};
|
|
6998
7187
|
delete?: never;
|
|
@@ -9691,13 +9880,41 @@ interface paths {
|
|
|
9691
9880
|
setupMode?: "create" | "connect";
|
|
9692
9881
|
systemPrompt?: string;
|
|
9693
9882
|
};
|
|
9883
|
+
errorHandling?: {
|
|
9884
|
+
fallbacks?: ({
|
|
9885
|
+
delay?: number;
|
|
9886
|
+
/** @enum {string} */
|
|
9887
|
+
type: "retry";
|
|
9888
|
+
} | {
|
|
9889
|
+
delay?: number;
|
|
9890
|
+
maxTokens?: number;
|
|
9891
|
+
model: string;
|
|
9892
|
+
temperature?: number;
|
|
9893
|
+
/** @enum {string} */
|
|
9894
|
+
type: "model";
|
|
9895
|
+
} | {
|
|
9896
|
+
delay?: number;
|
|
9897
|
+
message: string;
|
|
9898
|
+
/** @enum {string} */
|
|
9899
|
+
type: "message";
|
|
9900
|
+
})[];
|
|
9901
|
+
/** @enum {string} */
|
|
9902
|
+
onError: "fail" | "continue" | "fallback";
|
|
9903
|
+
triggers?: {
|
|
9904
|
+
/** @enum {string} */
|
|
9905
|
+
type: "error" | "empty-output";
|
|
9906
|
+
}[];
|
|
9907
|
+
};
|
|
9694
9908
|
frequencyPenalty?: number;
|
|
9909
|
+
/** @enum {string} */
|
|
9910
|
+
loggingPolicy?: "default" | "on" | "off";
|
|
9695
9911
|
loopConfig?: {
|
|
9696
9912
|
enableReflection?: boolean;
|
|
9697
9913
|
maxCost?: number;
|
|
9698
9914
|
maxTurns?: number;
|
|
9699
9915
|
reflectionInterval?: number;
|
|
9700
9916
|
};
|
|
9917
|
+
maxTokens?: number;
|
|
9701
9918
|
memory?: {
|
|
9702
9919
|
enabled: boolean;
|
|
9703
9920
|
injectSummary?: boolean;
|
|
@@ -9705,7 +9922,19 @@ interface paths {
|
|
|
9705
9922
|
};
|
|
9706
9923
|
model?: string;
|
|
9707
9924
|
name?: string;
|
|
9925
|
+
/** @enum {string} */
|
|
9926
|
+
piiRedaction?: "default" | "off" | "redact";
|
|
9708
9927
|
presencePenalty?: number;
|
|
9928
|
+
reasoning?: boolean | {
|
|
9929
|
+
budgetTokens?: number;
|
|
9930
|
+
enabled: boolean;
|
|
9931
|
+
includeThoughts?: boolean;
|
|
9932
|
+
/** @enum {string} */
|
|
9933
|
+
reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh";
|
|
9934
|
+
/** @enum {string} */
|
|
9935
|
+
reasoningSummary?: "auto" | "detailed";
|
|
9936
|
+
thinkingBudget?: number;
|
|
9937
|
+
};
|
|
9709
9938
|
sandbox?: {
|
|
9710
9939
|
enabled: boolean;
|
|
9711
9940
|
/** @enum {string} */
|
|
@@ -9731,6 +9960,22 @@ interface paths {
|
|
|
9731
9960
|
seed?: number;
|
|
9732
9961
|
systemPrompt?: string;
|
|
9733
9962
|
temperature?: number;
|
|
9963
|
+
temporal?: {
|
|
9964
|
+
elapsedThresholdSeconds?: number;
|
|
9965
|
+
groundNow?: boolean;
|
|
9966
|
+
injectElapsed?: boolean;
|
|
9967
|
+
timezone?: string;
|
|
9968
|
+
};
|
|
9969
|
+
tenancyStrategy?: {
|
|
9970
|
+
assuranceFloor?: {
|
|
9971
|
+
/** @enum {string} */
|
|
9972
|
+
endUser?: "asserted" | "verified";
|
|
9973
|
+
/** @enum {string} */
|
|
9974
|
+
tenant?: "asserted" | "verified";
|
|
9975
|
+
};
|
|
9976
|
+
/** @enum {string} */
|
|
9977
|
+
preset: "internal" | "tenant-isolated" | "end-user-isolated";
|
|
9978
|
+
};
|
|
9734
9979
|
tools?: {
|
|
9735
9980
|
approval?: {
|
|
9736
9981
|
choices?: {
|
|
@@ -9779,9 +10024,26 @@ interface paths {
|
|
|
9779
10024
|
};
|
|
9780
10025
|
};
|
|
9781
10026
|
toolIds?: string[];
|
|
10027
|
+
toolSearch?: {
|
|
10028
|
+
alwaysLoaded?: string[];
|
|
10029
|
+
enabled?: boolean;
|
|
10030
|
+
threshold?: number;
|
|
10031
|
+
};
|
|
9782
10032
|
};
|
|
9783
10033
|
topK?: number;
|
|
9784
10034
|
topP?: number;
|
|
10035
|
+
voice?: {
|
|
10036
|
+
elevenLabs?: {
|
|
10037
|
+
modelId?: string;
|
|
10038
|
+
similarity?: number;
|
|
10039
|
+
stability?: number;
|
|
10040
|
+
voiceId?: string;
|
|
10041
|
+
};
|
|
10042
|
+
enabled?: boolean;
|
|
10043
|
+
/** @enum {string} */
|
|
10044
|
+
interruptionMode?: "none" | "cancel" | "barge-in";
|
|
10045
|
+
provider?: string;
|
|
10046
|
+
};
|
|
9785
10047
|
};
|
|
9786
10048
|
clientTools?: {
|
|
9787
10049
|
description: string;
|
|
@@ -9979,13 +10241,41 @@ interface paths {
|
|
|
9979
10241
|
setupMode?: "create" | "connect";
|
|
9980
10242
|
systemPrompt?: string;
|
|
9981
10243
|
};
|
|
10244
|
+
errorHandling?: {
|
|
10245
|
+
fallbacks?: ({
|
|
10246
|
+
delay?: number;
|
|
10247
|
+
/** @enum {string} */
|
|
10248
|
+
type: "retry";
|
|
10249
|
+
} | {
|
|
10250
|
+
delay?: number;
|
|
10251
|
+
maxTokens?: number;
|
|
10252
|
+
model: string;
|
|
10253
|
+
temperature?: number;
|
|
10254
|
+
/** @enum {string} */
|
|
10255
|
+
type: "model";
|
|
10256
|
+
} | {
|
|
10257
|
+
delay?: number;
|
|
10258
|
+
message: string;
|
|
10259
|
+
/** @enum {string} */
|
|
10260
|
+
type: "message";
|
|
10261
|
+
})[];
|
|
10262
|
+
/** @enum {string} */
|
|
10263
|
+
onError: "fail" | "continue" | "fallback";
|
|
10264
|
+
triggers?: {
|
|
10265
|
+
/** @enum {string} */
|
|
10266
|
+
type: "error" | "empty-output";
|
|
10267
|
+
}[];
|
|
10268
|
+
};
|
|
9982
10269
|
frequencyPenalty?: number;
|
|
10270
|
+
/** @enum {string} */
|
|
10271
|
+
loggingPolicy?: "default" | "on" | "off";
|
|
9983
10272
|
loopConfig?: {
|
|
9984
10273
|
enableReflection?: boolean;
|
|
9985
10274
|
maxCost?: number;
|
|
9986
10275
|
maxTurns?: number;
|
|
9987
10276
|
reflectionInterval?: number;
|
|
9988
10277
|
};
|
|
10278
|
+
maxTokens?: number;
|
|
9989
10279
|
memory?: {
|
|
9990
10280
|
enabled: boolean;
|
|
9991
10281
|
injectSummary?: boolean;
|
|
@@ -9993,7 +10283,19 @@ interface paths {
|
|
|
9993
10283
|
};
|
|
9994
10284
|
model?: string;
|
|
9995
10285
|
name?: string;
|
|
10286
|
+
/** @enum {string} */
|
|
10287
|
+
piiRedaction?: "default" | "off" | "redact";
|
|
9996
10288
|
presencePenalty?: number;
|
|
10289
|
+
reasoning?: boolean | {
|
|
10290
|
+
budgetTokens?: number;
|
|
10291
|
+
enabled: boolean;
|
|
10292
|
+
includeThoughts?: boolean;
|
|
10293
|
+
/** @enum {string} */
|
|
10294
|
+
reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh";
|
|
10295
|
+
/** @enum {string} */
|
|
10296
|
+
reasoningSummary?: "auto" | "detailed";
|
|
10297
|
+
thinkingBudget?: number;
|
|
10298
|
+
};
|
|
9997
10299
|
sandbox?: {
|
|
9998
10300
|
enabled: boolean;
|
|
9999
10301
|
/** @enum {string} */
|
|
@@ -10019,6 +10321,22 @@ interface paths {
|
|
|
10019
10321
|
seed?: number;
|
|
10020
10322
|
systemPrompt?: string;
|
|
10021
10323
|
temperature?: number;
|
|
10324
|
+
temporal?: {
|
|
10325
|
+
elapsedThresholdSeconds?: number;
|
|
10326
|
+
groundNow?: boolean;
|
|
10327
|
+
injectElapsed?: boolean;
|
|
10328
|
+
timezone?: string;
|
|
10329
|
+
};
|
|
10330
|
+
tenancyStrategy?: {
|
|
10331
|
+
assuranceFloor?: {
|
|
10332
|
+
/** @enum {string} */
|
|
10333
|
+
endUser?: "asserted" | "verified";
|
|
10334
|
+
/** @enum {string} */
|
|
10335
|
+
tenant?: "asserted" | "verified";
|
|
10336
|
+
};
|
|
10337
|
+
/** @enum {string} */
|
|
10338
|
+
preset: "internal" | "tenant-isolated" | "end-user-isolated";
|
|
10339
|
+
};
|
|
10022
10340
|
tools?: {
|
|
10023
10341
|
approval?: {
|
|
10024
10342
|
choices?: {
|
|
@@ -10067,9 +10385,26 @@ interface paths {
|
|
|
10067
10385
|
};
|
|
10068
10386
|
};
|
|
10069
10387
|
toolIds?: string[];
|
|
10388
|
+
toolSearch?: {
|
|
10389
|
+
alwaysLoaded?: string[];
|
|
10390
|
+
enabled?: boolean;
|
|
10391
|
+
threshold?: number;
|
|
10392
|
+
};
|
|
10070
10393
|
};
|
|
10071
10394
|
topK?: number;
|
|
10072
10395
|
topP?: number;
|
|
10396
|
+
voice?: {
|
|
10397
|
+
elevenLabs?: {
|
|
10398
|
+
modelId?: string;
|
|
10399
|
+
similarity?: number;
|
|
10400
|
+
stability?: number;
|
|
10401
|
+
voiceId?: string;
|
|
10402
|
+
};
|
|
10403
|
+
enabled?: boolean;
|
|
10404
|
+
/** @enum {string} */
|
|
10405
|
+
interruptionMode?: "none" | "cancel" | "barge-in";
|
|
10406
|
+
provider?: string;
|
|
10407
|
+
};
|
|
10073
10408
|
};
|
|
10074
10409
|
clientTools?: {
|
|
10075
10410
|
description: string;
|
|
@@ -10366,6 +10701,7 @@ interface paths {
|
|
|
10366
10701
|
executionId: string;
|
|
10367
10702
|
reason?: string;
|
|
10368
10703
|
remember?: boolean;
|
|
10704
|
+
/** @default true */
|
|
10369
10705
|
streamResponse?: boolean;
|
|
10370
10706
|
};
|
|
10371
10707
|
};
|
|
@@ -10377,6 +10713,7 @@ interface paths {
|
|
|
10377
10713
|
[name: string]: unknown;
|
|
10378
10714
|
};
|
|
10379
10715
|
content: {
|
|
10716
|
+
"application/json": components["schemas"]["DispatchApproveJsonResponse"];
|
|
10380
10717
|
"text/event-stream": unknown;
|
|
10381
10718
|
};
|
|
10382
10719
|
};
|
|
@@ -10398,6 +10735,15 @@ interface paths {
|
|
|
10398
10735
|
"application/json": components["schemas"]["Error"];
|
|
10399
10736
|
};
|
|
10400
10737
|
};
|
|
10738
|
+
/** @description Platform key spend limit exceeded */
|
|
10739
|
+
402: {
|
|
10740
|
+
headers: {
|
|
10741
|
+
[name: string]: unknown;
|
|
10742
|
+
};
|
|
10743
|
+
content: {
|
|
10744
|
+
"application/json": components["schemas"]["DispatchApprovalContinuationJsonResponse"];
|
|
10745
|
+
};
|
|
10746
|
+
};
|
|
10401
10747
|
/** @description Insufficient permissions */
|
|
10402
10748
|
403: {
|
|
10403
10749
|
headers: {
|
|
@@ -10407,6 +10753,15 @@ interface paths {
|
|
|
10407
10753
|
"application/json": components["schemas"]["Error"];
|
|
10408
10754
|
};
|
|
10409
10755
|
};
|
|
10756
|
+
/** @description Paused execution not found */
|
|
10757
|
+
404: {
|
|
10758
|
+
headers: {
|
|
10759
|
+
[name: string]: unknown;
|
|
10760
|
+
};
|
|
10761
|
+
content: {
|
|
10762
|
+
"application/json": components["schemas"]["Error"];
|
|
10763
|
+
};
|
|
10764
|
+
};
|
|
10410
10765
|
/** @description Execution is not awaiting this approval or cannot be resumed here */
|
|
10411
10766
|
409: {
|
|
10412
10767
|
headers: {
|
|
@@ -10456,11 +10811,50 @@ interface paths {
|
|
|
10456
10811
|
requestBody?: {
|
|
10457
10812
|
content: {
|
|
10458
10813
|
"application/json": {
|
|
10459
|
-
/** @description Continuation payload (tool-output or approval) */
|
|
10460
10814
|
continuation: {
|
|
10461
|
-
|
|
10815
|
+
messages?: {
|
|
10816
|
+
content: string | ({
|
|
10817
|
+
text: string;
|
|
10818
|
+
/** @enum {string} */
|
|
10819
|
+
type: "text";
|
|
10820
|
+
} | {
|
|
10821
|
+
image: string;
|
|
10822
|
+
mimeType?: string;
|
|
10823
|
+
/** @enum {string} */
|
|
10824
|
+
type: "image";
|
|
10825
|
+
} | {
|
|
10826
|
+
data: string;
|
|
10827
|
+
filename: string;
|
|
10828
|
+
mimeType: string;
|
|
10829
|
+
/** @enum {string} */
|
|
10830
|
+
type: "file";
|
|
10831
|
+
} | {
|
|
10832
|
+
providerOptions?: {
|
|
10833
|
+
[key: string]: unknown;
|
|
10834
|
+
};
|
|
10835
|
+
text: string;
|
|
10836
|
+
/** @enum {string} */
|
|
10837
|
+
type: "reasoning";
|
|
10838
|
+
})[];
|
|
10839
|
+
/** @enum {string} */
|
|
10840
|
+
role: "system" | "user" | "assistant";
|
|
10841
|
+
}[];
|
|
10842
|
+
toolOutputs?: {
|
|
10843
|
+
[key: string]: unknown;
|
|
10844
|
+
};
|
|
10845
|
+
/** @enum {string} */
|
|
10846
|
+
type: "tool-output";
|
|
10847
|
+
} | {
|
|
10848
|
+
approvalId: string;
|
|
10849
|
+
/** @enum {string} */
|
|
10850
|
+
decision: "approved" | "denied";
|
|
10851
|
+
reason?: string;
|
|
10852
|
+
remember?: boolean;
|
|
10853
|
+
/** @enum {string} */
|
|
10854
|
+
type: "approval";
|
|
10462
10855
|
};
|
|
10463
10856
|
executionId: string;
|
|
10857
|
+
/** @default true */
|
|
10464
10858
|
streamResponse?: boolean;
|
|
10465
10859
|
};
|
|
10466
10860
|
};
|
|
@@ -10472,6 +10866,7 @@ interface paths {
|
|
|
10472
10866
|
[name: string]: unknown;
|
|
10473
10867
|
};
|
|
10474
10868
|
content: {
|
|
10869
|
+
"application/json": components["schemas"]["DispatchContinuationJsonResponse"];
|
|
10475
10870
|
"text/event-stream": unknown;
|
|
10476
10871
|
};
|
|
10477
10872
|
};
|
|
@@ -10493,6 +10888,15 @@ interface paths {
|
|
|
10493
10888
|
"application/json": components["schemas"]["Error"];
|
|
10494
10889
|
};
|
|
10495
10890
|
};
|
|
10891
|
+
/** @description Platform key spend limit exceeded */
|
|
10892
|
+
402: {
|
|
10893
|
+
headers: {
|
|
10894
|
+
[name: string]: unknown;
|
|
10895
|
+
};
|
|
10896
|
+
content: {
|
|
10897
|
+
"application/json": components["schemas"]["DispatchContinuationJsonResponse"];
|
|
10898
|
+
};
|
|
10899
|
+
};
|
|
10496
10900
|
/** @description Insufficient permissions */
|
|
10497
10901
|
403: {
|
|
10498
10902
|
headers: {
|
|
@@ -10502,6 +10906,15 @@ interface paths {
|
|
|
10502
10906
|
"application/json": components["schemas"]["Error"];
|
|
10503
10907
|
};
|
|
10504
10908
|
};
|
|
10909
|
+
/** @description Paused execution not found */
|
|
10910
|
+
404: {
|
|
10911
|
+
headers: {
|
|
10912
|
+
[name: string]: unknown;
|
|
10913
|
+
};
|
|
10914
|
+
content: {
|
|
10915
|
+
"application/json": components["schemas"]["Error"];
|
|
10916
|
+
};
|
|
10917
|
+
};
|
|
10505
10918
|
/** @description Execution is not awaiting this approval or cannot be resumed here */
|
|
10506
10919
|
409: {
|
|
10507
10920
|
headers: {
|
|
@@ -10554,13 +10967,41 @@ interface paths {
|
|
|
10554
10967
|
/** @description The execution ID to resume */
|
|
10555
10968
|
executionId: string;
|
|
10556
10969
|
messages?: {
|
|
10557
|
-
content
|
|
10970
|
+
content: string | ({
|
|
10971
|
+
text: string;
|
|
10972
|
+
/** @enum {string} */
|
|
10973
|
+
type: "text";
|
|
10974
|
+
} | {
|
|
10975
|
+
image: string;
|
|
10976
|
+
mimeType?: string;
|
|
10977
|
+
/** @enum {string} */
|
|
10978
|
+
type: "image";
|
|
10979
|
+
} | {
|
|
10980
|
+
data: string;
|
|
10981
|
+
filename: string;
|
|
10982
|
+
mimeType: string;
|
|
10983
|
+
/** @enum {string} */
|
|
10984
|
+
type: "file";
|
|
10985
|
+
} | {
|
|
10986
|
+
providerOptions?: {
|
|
10987
|
+
[key: string]: unknown;
|
|
10988
|
+
};
|
|
10989
|
+
text: string;
|
|
10990
|
+
/** @enum {string} */
|
|
10991
|
+
type: "reasoning";
|
|
10992
|
+
})[];
|
|
10558
10993
|
/** @enum {string} */
|
|
10559
10994
|
role: "system" | "user" | "assistant";
|
|
10560
10995
|
}[];
|
|
10561
|
-
/**
|
|
10996
|
+
/**
|
|
10997
|
+
* @description Whether to stream the response via SSE
|
|
10998
|
+
* @default true
|
|
10999
|
+
*/
|
|
10562
11000
|
streamResponse?: boolean;
|
|
10563
|
-
/**
|
|
11001
|
+
/**
|
|
11002
|
+
* @description Local tool outputs for the paused execution. Key each output by the per-call `toolCallId` from the `flow_await` / `agent_await` event (preferred, and required to disambiguate parallel calls to the same tool), or by tool name (legacy; collapses same-tool parallel calls onto one slot).
|
|
11003
|
+
* @default {}
|
|
11004
|
+
*/
|
|
10564
11005
|
toolOutputs?: {
|
|
10565
11006
|
[key: string]: unknown;
|
|
10566
11007
|
};
|
|
@@ -10574,6 +11015,7 @@ interface paths {
|
|
|
10574
11015
|
[name: string]: unknown;
|
|
10575
11016
|
};
|
|
10576
11017
|
content: {
|
|
11018
|
+
"application/json": components["schemas"]["DispatchToolOutputContinuationJsonResponse"];
|
|
10577
11019
|
"text/event-stream": unknown;
|
|
10578
11020
|
};
|
|
10579
11021
|
};
|
|
@@ -10595,6 +11037,15 @@ interface paths {
|
|
|
10595
11037
|
"application/json": components["schemas"]["Error"];
|
|
10596
11038
|
};
|
|
10597
11039
|
};
|
|
11040
|
+
/** @description Platform key spend limit exceeded */
|
|
11041
|
+
402: {
|
|
11042
|
+
headers: {
|
|
11043
|
+
[name: string]: unknown;
|
|
11044
|
+
};
|
|
11045
|
+
content: {
|
|
11046
|
+
"application/json": components["schemas"]["DispatchToolOutputContinuationJsonResponse"];
|
|
11047
|
+
};
|
|
11048
|
+
};
|
|
10598
11049
|
/** @description Insufficient permissions */
|
|
10599
11050
|
403: {
|
|
10600
11051
|
headers: {
|
|
@@ -10604,6 +11055,15 @@ interface paths {
|
|
|
10604
11055
|
"application/json": components["schemas"]["Error"];
|
|
10605
11056
|
};
|
|
10606
11057
|
};
|
|
11058
|
+
/** @description Paused execution not found */
|
|
11059
|
+
404: {
|
|
11060
|
+
headers: {
|
|
11061
|
+
[name: string]: unknown;
|
|
11062
|
+
};
|
|
11063
|
+
content: {
|
|
11064
|
+
"application/json": components["schemas"]["Error"];
|
|
11065
|
+
};
|
|
11066
|
+
};
|
|
10607
11067
|
/** @description Internal server error */
|
|
10608
11068
|
500: {
|
|
10609
11069
|
headers: {
|
|
@@ -16215,7 +16675,12 @@ interface paths {
|
|
|
16215
16675
|
[name: string]: unknown;
|
|
16216
16676
|
};
|
|
16217
16677
|
content: {
|
|
16218
|
-
"application/json":
|
|
16678
|
+
"application/json": {
|
|
16679
|
+
details?: string[];
|
|
16680
|
+
error: string;
|
|
16681
|
+
recordCount?: number;
|
|
16682
|
+
recordType?: string;
|
|
16683
|
+
};
|
|
16219
16684
|
};
|
|
16220
16685
|
};
|
|
16221
16686
|
/** @description Unauthorized */
|
|
@@ -16236,6 +16701,29 @@ interface paths {
|
|
|
16236
16701
|
"application/json": components["schemas"]["Error"];
|
|
16237
16702
|
};
|
|
16238
16703
|
};
|
|
16704
|
+
/** @description Flow not found */
|
|
16705
|
+
404: {
|
|
16706
|
+
headers: {
|
|
16707
|
+
[name: string]: unknown;
|
|
16708
|
+
};
|
|
16709
|
+
content: {
|
|
16710
|
+
"application/json": components["schemas"]["Error"];
|
|
16711
|
+
};
|
|
16712
|
+
};
|
|
16713
|
+
/** @description Flow requires behavior not supported by the runtime execution surface */
|
|
16714
|
+
422: {
|
|
16715
|
+
headers: {
|
|
16716
|
+
[name: string]: unknown;
|
|
16717
|
+
};
|
|
16718
|
+
content: {
|
|
16719
|
+
"application/json": {
|
|
16720
|
+
/** @enum {string} */
|
|
16721
|
+
code: "RUNTIME_FLOW_UNSUPPORTED";
|
|
16722
|
+
error: string;
|
|
16723
|
+
reasons: string[];
|
|
16724
|
+
};
|
|
16725
|
+
};
|
|
16726
|
+
};
|
|
16239
16727
|
/** @description Daily execution limit exceeded */
|
|
16240
16728
|
429: {
|
|
16241
16729
|
headers: {
|
|
@@ -27126,12 +27614,19 @@ interface paths {
|
|
|
27126
27614
|
name: string | null;
|
|
27127
27615
|
rateLimitPerDay: number | null;
|
|
27128
27616
|
rateLimitPerMinute: number | null;
|
|
27617
|
+
scopeTargetIds: string[] | null;
|
|
27129
27618
|
scopes: string[];
|
|
27130
27619
|
usageCount: number | null;
|
|
27131
27620
|
}[];
|
|
27132
27621
|
name: string;
|
|
27133
27622
|
outbound?: unknown;
|
|
27134
27623
|
productId: string;
|
|
27624
|
+
scopeTargets: {
|
|
27625
|
+
capabilityId?: string;
|
|
27626
|
+
id: string;
|
|
27627
|
+
name: string;
|
|
27628
|
+
surfaceItemId?: string;
|
|
27629
|
+
}[];
|
|
27135
27630
|
status: string;
|
|
27136
27631
|
type: string;
|
|
27137
27632
|
updatedAt: string;
|
|
@@ -27860,6 +28355,7 @@ interface paths {
|
|
|
27860
28355
|
name?: string;
|
|
27861
28356
|
rateLimitPerDay?: number;
|
|
27862
28357
|
rateLimitPerMinute?: number;
|
|
28358
|
+
/** @description Capability restrictions. Prefer IDs from get_surface.scopeTargets; linked surface-item/capability IDs and unique names shown in that catalog are accepted and resolved to immutable authorization targets. Use `*` for unrestricted access. */
|
|
27863
28359
|
scopes?: string[];
|
|
27864
28360
|
};
|
|
27865
28361
|
};
|
|
@@ -27883,6 +28379,7 @@ interface paths {
|
|
|
27883
28379
|
name: string | null;
|
|
27884
28380
|
rateLimitPerDay: number | null;
|
|
27885
28381
|
rateLimitPerMinute: number | null;
|
|
28382
|
+
scopeTargetIds: string[];
|
|
27886
28383
|
scopes: string[];
|
|
27887
28384
|
surfaceId: string;
|
|
27888
28385
|
};
|
|
@@ -41852,6 +42349,7 @@ interface paths {
|
|
|
41852
42349
|
enableAgentSkills: boolean;
|
|
41853
42350
|
enableChromeSurface: boolean;
|
|
41854
42351
|
enableDashboardAssistant: boolean;
|
|
42352
|
+
enableEndUserUsageAnalytics: boolean;
|
|
41855
42353
|
enableMassiveWebRender: boolean;
|
|
41856
42354
|
enableRuntown: boolean;
|
|
41857
42355
|
enableRuntypeApps: boolean;
|
|
@@ -42318,6 +42816,43 @@ interface components {
|
|
|
42318
42816
|
timestamp?: string;
|
|
42319
42817
|
};
|
|
42320
42818
|
};
|
|
42819
|
+
AgentApprovalContinuationJsonResponse: {
|
|
42820
|
+
blockReason?: string;
|
|
42821
|
+
code?: string;
|
|
42822
|
+
/** @enum {string} */
|
|
42823
|
+
decision: "approved" | "denied";
|
|
42824
|
+
error?: string;
|
|
42825
|
+
executionId: string;
|
|
42826
|
+
iterations: number;
|
|
42827
|
+
pausedReason?: components["schemas"]["DispatchPausedReason"];
|
|
42828
|
+
result: string;
|
|
42829
|
+
/** @enum {string} */
|
|
42830
|
+
status: "completed" | "paused" | "failed";
|
|
42831
|
+
/** @enum {string} */
|
|
42832
|
+
stopReason: "end_turn" | "paused" | "error";
|
|
42833
|
+
success: boolean;
|
|
42834
|
+
totalCost: number;
|
|
42835
|
+
upgradeUrl?: string;
|
|
42836
|
+
};
|
|
42837
|
+
AgentApproveContinuationJsonResponse: components["schemas"]["AgentApprovalContinuationJsonResponse"] | components["schemas"]["AgentDetachedApprovalJsonResponse"];
|
|
42838
|
+
AgentApproveRequest: {
|
|
42839
|
+
approvalId: string;
|
|
42840
|
+
/** @default false */
|
|
42841
|
+
debugMode: boolean;
|
|
42842
|
+
/** @enum {string} */
|
|
42843
|
+
decision: "approved" | "denied";
|
|
42844
|
+
executionId: string;
|
|
42845
|
+
reason?: string;
|
|
42846
|
+
remember?: boolean;
|
|
42847
|
+
/** @default true */
|
|
42848
|
+
streamResponse: boolean;
|
|
42849
|
+
};
|
|
42850
|
+
AgentDetachedApprovalJsonResponse: {
|
|
42851
|
+
approvalId: string;
|
|
42852
|
+
executionId: string;
|
|
42853
|
+
/** @enum {string} */
|
|
42854
|
+
status: "running";
|
|
42855
|
+
};
|
|
42321
42856
|
AgentEnsureConflict: {
|
|
42322
42857
|
/** @enum {string} */
|
|
42323
42858
|
code: "external_modification" | "remote_changed";
|
|
@@ -42568,6 +43103,32 @@ interface components {
|
|
|
42568
43103
|
/** @description Present only when a raw tool_… reference could not be emitted as a portable tool:<name> (the tool was deleted, or its name is shadowed by an older same-named tool). Those references are left as raw ids, which the ensure surface rejects; each warning explains how to fix it. */
|
|
42569
43104
|
warnings?: string[];
|
|
42570
43105
|
};
|
|
43106
|
+
AgentResumeContinuationJsonResponse: {
|
|
43107
|
+
blockReason?: string;
|
|
43108
|
+
code?: string;
|
|
43109
|
+
error?: string;
|
|
43110
|
+
iterations: number;
|
|
43111
|
+
pausedReason?: components["schemas"]["DispatchPausedReason"];
|
|
43112
|
+
result: string;
|
|
43113
|
+
/** @enum {string} */
|
|
43114
|
+
status: "completed" | "paused" | "failed";
|
|
43115
|
+
/** @enum {string} */
|
|
43116
|
+
stopReason: "end_turn" | "paused" | "error";
|
|
43117
|
+
success: boolean;
|
|
43118
|
+
totalCost: number;
|
|
43119
|
+
upgradeUrl?: string;
|
|
43120
|
+
};
|
|
43121
|
+
AgentResumeRequest: {
|
|
43122
|
+
/** @default false */
|
|
43123
|
+
debugMode: boolean;
|
|
43124
|
+
executionId: string;
|
|
43125
|
+
/** @default true */
|
|
43126
|
+
streamResponse: boolean;
|
|
43127
|
+
/** @default {} */
|
|
43128
|
+
toolOutputs: {
|
|
43129
|
+
[key: string]: unknown;
|
|
43130
|
+
};
|
|
43131
|
+
};
|
|
42571
43132
|
AsyncDispatchHandle: {
|
|
42572
43133
|
/** @description Present only for ephemeral inline-create dispatch. */
|
|
42573
43134
|
claudeManagedAgentId?: string;
|
|
@@ -42684,6 +43245,27 @@ interface components {
|
|
|
42684
43245
|
};
|
|
42685
43246
|
upgradeUrl?: string;
|
|
42686
43247
|
};
|
|
43248
|
+
DispatchApprovalContinuationJsonResponse: {
|
|
43249
|
+
blockReason?: string;
|
|
43250
|
+
code?: string;
|
|
43251
|
+
/** @enum {string} */
|
|
43252
|
+
decision: "approved" | "denied";
|
|
43253
|
+
error?: string;
|
|
43254
|
+
executionId: string;
|
|
43255
|
+
pausedReason?: components["schemas"]["DispatchPausedReason"];
|
|
43256
|
+
/** @enum {string} */
|
|
43257
|
+
status: "completed" | "paused" | "failed";
|
|
43258
|
+
success: boolean;
|
|
43259
|
+
upgradeUrl?: string;
|
|
43260
|
+
};
|
|
43261
|
+
DispatchApproveJsonResponse: components["schemas"]["DispatchApprovalContinuationJsonResponse"] | components["schemas"]["DispatchDetachedApprovalJsonResponse"];
|
|
43262
|
+
DispatchContinuationJsonResponse: components["schemas"]["DispatchToolOutputContinuationJsonResponse"] | components["schemas"]["DispatchApprovalContinuationJsonResponse"] | components["schemas"]["DispatchDetachedApprovalJsonResponse"];
|
|
43263
|
+
DispatchDetachedApprovalJsonResponse: {
|
|
43264
|
+
approvalId: string;
|
|
43265
|
+
executionId: string;
|
|
43266
|
+
/** @enum {string} */
|
|
43267
|
+
status: "running";
|
|
43268
|
+
};
|
|
42687
43269
|
DispatchFlowJsonResponse: {
|
|
42688
43270
|
blockReason?: string;
|
|
42689
43271
|
code?: string;
|
|
@@ -42726,6 +43308,18 @@ interface components {
|
|
|
42726
43308
|
/** @enum {string} */
|
|
42727
43309
|
type: "durable_poll";
|
|
42728
43310
|
};
|
|
43311
|
+
DispatchToolOutputContinuationJsonResponse: {
|
|
43312
|
+
blockReason?: string;
|
|
43313
|
+
code?: string;
|
|
43314
|
+
error?: string;
|
|
43315
|
+
events: components["schemas"]["ExecutionStreamEvent"][];
|
|
43316
|
+
executionId: string;
|
|
43317
|
+
pausedReason?: components["schemas"]["DispatchPausedReason"];
|
|
43318
|
+
/** @enum {string} */
|
|
43319
|
+
status: "completed" | "paused" | "failed";
|
|
43320
|
+
success: boolean;
|
|
43321
|
+
upgradeUrl?: string;
|
|
43322
|
+
};
|
|
42729
43323
|
EndUserAuthConsumeRequest: {
|
|
42730
43324
|
tenantOrganizationId: string;
|
|
42731
43325
|
/** @description The one-time sign-in token from the email */
|
|
@@ -43429,6 +44023,28 @@ interface components {
|
|
|
43429
44023
|
} & {
|
|
43430
44024
|
[key: string]: unknown;
|
|
43431
44025
|
}) | {
|
|
44026
|
+
executionId: string;
|
|
44027
|
+
iteration?: number;
|
|
44028
|
+
seq: number;
|
|
44029
|
+
state: {
|
|
44030
|
+
[key: string]: unknown;
|
|
44031
|
+
};
|
|
44032
|
+
/** @enum {string} */
|
|
44033
|
+
type: "state_snapshot";
|
|
44034
|
+
} | {
|
|
44035
|
+
executionId: string;
|
|
44036
|
+
iteration?: number;
|
|
44037
|
+
patch: {
|
|
44038
|
+
from?: string;
|
|
44039
|
+
/** @enum {string} */
|
|
44040
|
+
op: "add" | "remove" | "replace" | "move" | "copy" | "test";
|
|
44041
|
+
path: string;
|
|
44042
|
+
value?: unknown;
|
|
44043
|
+
}[];
|
|
44044
|
+
seq: number;
|
|
44045
|
+
/** @enum {string} */
|
|
44046
|
+
type: "state_delta";
|
|
44047
|
+
} | {
|
|
43432
44048
|
executionId: string;
|
|
43433
44049
|
hiddenParameterNames?: string[];
|
|
43434
44050
|
iteration?: number;
|
|
@@ -45993,6 +46609,12 @@ type FlowStepDefinition = Omit<NonNullable<CreateFlowRequestBody['flowSteps']>[n
|
|
|
45993
46609
|
name?: string;
|
|
45994
46610
|
};
|
|
45995
46611
|
type GeneratedDispatchRequest = NonNullable<NonNullable<paths['/v1/dispatch']['post']>['requestBody']>['content']['application/json'];
|
|
46612
|
+
/** Canonical request body for `/v1/dispatch/resume`. */
|
|
46613
|
+
type DispatchResumeRequest = NonNullable<paths['/v1/dispatch/resume']['post']['requestBody']>['content']['application/json'];
|
|
46614
|
+
/** Canonical request body for `/v1/dispatch/approve`. */
|
|
46615
|
+
type DispatchApproveRequest = NonNullable<paths['/v1/dispatch/approve']['post']['requestBody']>['content']['application/json'];
|
|
46616
|
+
/** Canonical discriminated request body for `/v1/dispatch/continue`. */
|
|
46617
|
+
type DispatchContinuationRequest = NonNullable<paths['/v1/dispatch/continue']['post']['requestBody']>['content']['application/json'];
|
|
45996
46618
|
/**
|
|
45997
46619
|
* Buffered response returned by `/v1/dispatch` when
|
|
45998
46620
|
* `options.streamResponse:false`.
|
|
@@ -46001,6 +46623,16 @@ type GeneratedDispatchRequest = NonNullable<NonNullable<paths['/v1/dispatch']['p
|
|
|
46001
46623
|
* streaming callers receive `ExecutionStreamEvent` frames instead.
|
|
46002
46624
|
*/
|
|
46003
46625
|
type DispatchResponse = paths['/v1/dispatch']['post']['responses'][200]['content']['application/json'];
|
|
46626
|
+
/** Buffered `/v1/dispatch/resume` response for a tool-output continuation. */
|
|
46627
|
+
type DispatchResumeResponse = components['schemas']['DispatchToolOutputContinuationJsonResponse'];
|
|
46628
|
+
/** Buffered ordinary-approval result (detached approvals use a separate variant). */
|
|
46629
|
+
type DispatchApprovalContinuationResponse = components['schemas']['DispatchApprovalContinuationJsonResponse'];
|
|
46630
|
+
/** Buffered detached-approval acknowledgement; the detached run remains active. */
|
|
46631
|
+
type DispatchDetachedApprovalResponse = components['schemas']['DispatchDetachedApprovalJsonResponse'];
|
|
46632
|
+
/** Buffered `/v1/dispatch/approve` response, including detached approvals. */
|
|
46633
|
+
type DispatchApproveResponse = paths['/v1/dispatch/approve']['post']['responses'][200]['content']['application/json'];
|
|
46634
|
+
/** Buffered `/v1/dispatch/continue` response across every continuation variant. */
|
|
46635
|
+
type DispatchContinuationResponse = paths['/v1/dispatch/continue']['post']['responses'][200]['content']['application/json'];
|
|
46004
46636
|
/** @internal */
|
|
46005
46637
|
type CanonicalDispatchMessageContent = NonNullable<NonNullable<GeneratedDispatchRequest['messages']>[number]['content']>;
|
|
46006
46638
|
/**
|
|
@@ -46676,6 +47308,63 @@ interface SlackManifestResponse {
|
|
|
46676
47308
|
interactivityWebhookUrl?: string;
|
|
46677
47309
|
redirectUrl: string;
|
|
46678
47310
|
}
|
|
47311
|
+
interface EndUserUsageQuery {
|
|
47312
|
+
productId: string;
|
|
47313
|
+
productTenantId?: string;
|
|
47314
|
+
period?: 'billing_period' | '7d' | '30d' | '90d';
|
|
47315
|
+
days?: number;
|
|
47316
|
+
sort?: 'spend' | 'executions';
|
|
47317
|
+
limit?: number;
|
|
47318
|
+
}
|
|
47319
|
+
interface EndUserUsageResponse {
|
|
47320
|
+
generatedAt: string;
|
|
47321
|
+
period: {
|
|
47322
|
+
startDate: string;
|
|
47323
|
+
endDate: string;
|
|
47324
|
+
days: number;
|
|
47325
|
+
preset?: 'billing_period' | '7d' | '30d' | '90d';
|
|
47326
|
+
};
|
|
47327
|
+
scope: {
|
|
47328
|
+
productId: string;
|
|
47329
|
+
productTenantId: string | null;
|
|
47330
|
+
};
|
|
47331
|
+
/** Distinct tenant ids with usage in the window, independent of the tenant filter (most spend first, capped at 200). */
|
|
47332
|
+
tenantIds: string[];
|
|
47333
|
+
retention: {
|
|
47334
|
+
attributionStartedAt: string | null;
|
|
47335
|
+
earliestAvailableAt: string | null;
|
|
47336
|
+
retentionDays: 93;
|
|
47337
|
+
};
|
|
47338
|
+
totals: {
|
|
47339
|
+
executions: number;
|
|
47340
|
+
spendThousandthsCent: number;
|
|
47341
|
+
spendDollars: number;
|
|
47342
|
+
};
|
|
47343
|
+
coverage: {
|
|
47344
|
+
attributedExecutions: number;
|
|
47345
|
+
unattributedExecutions: number;
|
|
47346
|
+
attributedSpendThousandthsCent: number;
|
|
47347
|
+
unattributedSpendThousandthsCent: number;
|
|
47348
|
+
};
|
|
47349
|
+
endUsers: Array<{
|
|
47350
|
+
endUser: {
|
|
47351
|
+
id: string;
|
|
47352
|
+
name: string | null;
|
|
47353
|
+
email: string | null;
|
|
47354
|
+
productTenantId: string | null;
|
|
47355
|
+
};
|
|
47356
|
+
executions: number;
|
|
47357
|
+
spendThousandthsCent: number;
|
|
47358
|
+
spendDollars: number;
|
|
47359
|
+
costPerExecutionDollars: number | null;
|
|
47360
|
+
lastSeenAt: string;
|
|
47361
|
+
}>;
|
|
47362
|
+
unattributed: {
|
|
47363
|
+
executions: number;
|
|
47364
|
+
spendThousandthsCent: number;
|
|
47365
|
+
spendDollars: number;
|
|
47366
|
+
};
|
|
47367
|
+
}
|
|
46679
47368
|
type CurrentBilledSpendSource = 'schematic_entitlements' | 'local_meter' | 'dev_override';
|
|
46680
47369
|
interface CurrentBilledSpendResponse {
|
|
46681
47370
|
period: {
|
|
@@ -50513,7 +51202,8 @@ declare class RuntypeClient$1 {
|
|
|
50513
51202
|
* Dispatch flow execution (non-streaming JSON).
|
|
50514
51203
|
*
|
|
50515
51204
|
* The non-streaming sibling of {@link dispatch}; it normalizes to the same
|
|
50516
|
-
* canonical wire contract so builders never post a raw, un-normalized body
|
|
51205
|
+
* canonical wire contract so builders never post a raw, un-normalized body,
|
|
51206
|
+
* and pins `streamResponse: false` so the server returns buffered JSON.
|
|
50517
51207
|
*/
|
|
50518
51208
|
dispatchJson<T>(config: unknown): Promise<T>;
|
|
50519
51209
|
/**
|
|
@@ -51600,11 +52290,11 @@ declare class DispatchEndpoint {
|
|
|
51600
52290
|
executeStream(data: DispatchRequest): Promise<Response>;
|
|
51601
52291
|
/**
|
|
51602
52292
|
* Resume paused flow execution
|
|
51603
|
-
*
|
|
52293
|
+
* Uses buffered JSON when streamResponse is omitted.
|
|
51604
52294
|
*
|
|
51605
|
-
* @param data.
|
|
51606
|
-
* @param data.
|
|
51607
|
-
* @param data.
|
|
52295
|
+
* @param data.executionId - The execution ID to resume
|
|
52296
|
+
* @param data.toolOutputs - Tool outputs to inject into the flow
|
|
52297
|
+
* @param data.streamResponse - Whether to stream the response (defaults to false)
|
|
51608
52298
|
* @param data.messages - Optional messages to override the original dispatch messages
|
|
51609
52299
|
*/
|
|
51610
52300
|
resume(data: {
|
|
@@ -51698,6 +52388,10 @@ declare class AnalyticsEndpoint {
|
|
|
51698
52388
|
* Get model usage analytics
|
|
51699
52389
|
*/
|
|
51700
52390
|
getModelUsage(params?: ModelUsageQueryParams): Promise<ModelUsageResponse>;
|
|
52391
|
+
/**
|
|
52392
|
+
* Get execution and platform-spend usage grouped by projected product end user.
|
|
52393
|
+
*/
|
|
52394
|
+
getEndUserUsage(params: EndUserUsageQuery): Promise<EndUserUsageResponse>;
|
|
51701
52395
|
}
|
|
51702
52396
|
/**
|
|
51703
52397
|
* Flow Steps endpoint handlers
|
|
@@ -53926,7 +54620,7 @@ declare function parseLedgerArtifactRelativePath(value: string): string | undefi
|
|
|
53926
54620
|
*
|
|
53927
54621
|
* As of the unified-SSE cutover (runtypelabs/core unified-sse-default) the
|
|
53928
54622
|
* execution streams the SDK consumes — `/dispatch`, `/dispatch/resume`,
|
|
53929
|
-
* `/agents/{id}/execute`, `/agents/{id}/resume` — use the
|
|
54623
|
+
* `/agents/{id}/execute`, `/agents/{id}/resume` — use the 35-event unified
|
|
53930
54624
|
* vocabulary (`unifiedSSEEventSchema` in `@runtypelabs/shared`). The SDK
|
|
53931
54625
|
* translates those frames back into its stable, hand-written callback shapes
|
|
53932
54626
|
* here.
|
|
@@ -53940,9 +54634,14 @@ declare function parseLedgerArtifactRelativePath(value: string): string | undefi
|
|
|
53940
54634
|
* (`docs/features/planning/2026-06-16-persona-sse-event-merged-spec.md`).
|
|
53941
54635
|
*
|
|
53942
54636
|
* Scope: only the events the SDK's consumers actually read are reconstructed;
|
|
53943
|
-
* everything else (artifact channel, `source`, `
|
|
53944
|
-
* `
|
|
53945
|
-
*
|
|
54637
|
+
* everything else (artifact channel, `source`, the `state_snapshot` /
|
|
54638
|
+
* `state_delta` agent-state channel, `custom`, fallback live-beat, `step_skip`)
|
|
54639
|
+
* maps to zero callback events. The state channel is recognized as unified
|
|
54640
|
+
* vocabulary (so `isUnifiedEventType` is true and the wire union stays exhaustive)
|
|
54641
|
+
* but has no stable SDK callback shape to project onto; surfacing it to the SDK
|
|
54642
|
+
* callback surface is a separate additive slice, not a wire-translation concern.
|
|
54643
|
+
* Two unified-contract folds are NOT reconstructed because the unified
|
|
54644
|
+
* vocabulary deliberately discards them:
|
|
53946
54645
|
* - `agent_iteration_start` / `agent_iteration_complete` are folded into the
|
|
53947
54646
|
* `iteration` field on turn/tool frames, so `onIterationStart` /
|
|
53948
54647
|
* `onIterationComplete` no longer fire.
|
|
@@ -55382,4 +56081,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
|
|
|
55382
56081
|
declare function getDefaultPlanPath(taskName: string): string;
|
|
55383
56082
|
declare function sanitizeTaskSlug(taskName: string): string;
|
|
55384
56083
|
|
|
55385
|
-
export { type AIGrader, type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, AgentDriftError, AgentEnsureConflictError, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentPullResult, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentStreamEvent, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AgentsNamespace, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, type AssetReferenceContentPart, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInGraderId, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, type CanonicalDispatchMessageContent, type CanonicalDispatchRequest, type CaseExpected, ChatEndpoint, type CheckGrader, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientWidgetTheme, CollectionsEndpoint, type ConditionalGetResult, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateCollectionRequest, type CreateConversationRequest, type CreateEvalSuiteInput, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CurrentBilledSpendResponse, type CurrentBilledSpendSource, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, type DecomposeCriteriaResult, type DefineAgentInput, type DefineEvalCaseInput, type DefineEvalInput, type DefineFlowInput, type DefineProductInput, type DefineSkillInput, type DefineSurfaceInput, type DefineToolInput, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DiscoveredModel, type DispatchAgentInput, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchFlowInput, type DispatchMessageContent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type DispatchResponse, type EnsureAgentConverged, type EnsureAgentOptions, type EnsureAgentPlan, type EnsureAgentResult, type EnsureEvalResult, type EnsureFlowConverged, type EnsureFlowOptions, type EnsureFlowPlan, type EnsureFlowResult, type EnsureFpoOptions, type EnsureFpoResult, type EnsureProductConverged, type EnsureProductOptions, type EnsureProductPlan, type EnsureProductResult, type EnsureSkillConverged, type EnsureSkillOptions, type EnsureSkillPlan, type EnsureSkillResult, type EnsureSurfaceConverged, type EnsureSurfaceOptions, type EnsureSurfacePlan, type EnsureSurfaceResult, type EnsureToolConverged, type EnsureToolOptions, type EnsureToolPlan, type EnsureToolResult, type ErrorHandlingMode, EvalBuilder, type EvalCaseDefinition, type EvalCaseInput, type EvalCaseProposal, type EvalCaseProposalAccepted, type EvalCaseProposalListResult, type EvalCasesGenerated, type EvalClient, type EvalDefinition, EvalEndpoint, type EvalListParams, type EvalMessage, type EvalOptions, type EvalProposalSource, type EvalProposalStatus, type EvalProposedCase, type EvalPullResult, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunCaseScores, type EvalRunConfig, type EvalRunScores, EvalRunner, type EvalStatus, type EvalSuiteCase, type EvalSuiteCaseInput, type EvalSuiteCoverage, type EvalSuiteDetail, type EvalSuiteLatestRun, type EvalSuiteListResult, type EvalSuiteRunQueued, type EvalSuiteRunResult, type EvalSuiteSummary, EvalSuitesNamespace, type EvalTarget, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExecutionStreamEvent, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowDefinition, type FlowDefinitionStep, FlowDriftError, FlowEnsureConflictError, type FlowErrorEvent, type FlowFallback, type FlowInlineEvalInput, type FlowListItem, type FlowPausedEvent, type FlowPullResult, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowStreamEvent, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type FpoEntityOutcome, type FpoInput, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GenerateEvalCasesInput, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type GetRecordStepConfig$1 as GetRecordStepConfig, type Gradeable, type GraderConfig, type GraderOutcome, type GraderSeverity, type HumanVerdict, type ImageContentPart, type InferCollectionSchemaResponse, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, LEDGER_ARTIFACT_LINE_PREFIX, type ListCollectionsResponse, type ListConversationsResponse, type ListParams, type ListRecordsStepConfig$1 as ListRecordsStepConfig, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type PersistedGraderOutcome, type ProductDefinition, ProductDriftError, ProductEnsureConflictError, type ProductPullResult, ProductsNamespace, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, type PullFpoResult, RUNTYPE_CLIENT_KIND, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordCollection, type RecordCollectionWithHistory, type RecordConfig$1 as RecordConfig, type RecordCostAggregation, type RecordCostModelBreakdown, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, type RecordStepResult, type RecordStepResultsParams, type RecordStepResultsResponse, type RecordWriteResponse, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunEvalCaseResult, type RunEvalInput, type RunEvalResult, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContextSummaryEntry, type RunTaskContinuation, type RunTaskOffloadRecorder, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type GetRecordStepConfig as RuntypeGetRecordStepConfig, type ListRecordsStepConfig as RuntypeListRecordsStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillScanFinding as RuntypeSkillScanFinding, type SkillScanResult as RuntypeSkillScanResult, type SkillScanVerdict as RuntypeSkillScanVerdict, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, SDK_USER_AGENT, SDK_VERSION, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillDefinition, SkillDriftError, SkillEnsureConflictError, type SkillListPage, type SkillListPagination, type SkillListParams, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillPullResult, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type SlackManifestRequest, type SlackManifestResponse, type SlackOAuthStartRequest, type SlackOAuthStartResponse, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamConsumeOptions, type StreamEvent, type StreamEventOf, type SubagentToolConfig, type Surface, type SurfaceDefinition, type SurfaceDefinitionEnvironment, type SurfaceDefinitionStatus, type SurfaceDefinitionType, SurfaceDriftError, SurfaceEnsureConflictError, type SurfaceListParams, type SurfacePullResult, SurfacesEndpoint, SurfacesNamespace, type TextContentPart, type Tool, type ToolApprovalGrant, ToolApprovalGrantsEndpoint, type ToolConfig, type ToolDefinition, type ToolDefinitionType, ToolDriftError, ToolEnsureConflictError, type ToolPullResult, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, ToolsNamespace, type TransformDataStepConfig$1 as TransformDataStepConfig, UNIFIED_EVENTS_QUERY, type UpdateClientTokenRequest, type UpdateCollectionRequest, type UpdateCollectionResponse, type UpdateConversationRequest, type UpdateEvalCaseInput, type UpdateEvalSuiteInput, type UpdateFlowRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type ValidateExistingRecordsResponse, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowCompileDeps, type WorkflowCompletionCriteriaConfig, type WorkflowConfig, type WorkflowConfigFactory, type WorkflowContext, type WorkflowDefinition, type WorkflowHookEntry, type WorkflowHookKind, type WorkflowHookRef, type WorkflowHookSignatures, type WorkflowMilestoneConfig, type WorkflowPhase, type WorkflowPolicyConfig, type WorkflowRecoveryConfig, type WorkflowSlot, type WorkflowStallPolicy, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildEmptySessionNudge, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildPolicyGuidance, buildSendViewOffloadMarker, calledTool, compileWorkflowConfig, completed, computeAgentContentHash, computeEvalContentHash, computeFlowContentHash, computeFpoContentHash, computeProductContentHash, computeSkillContentHash, computeSurfaceContentHash, computeToolContentHash, contains, cost, createAgentEventTranslator, createClient, createExternalTool, createFlowEventTranslator, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineEval, defineFlow, defineFpo, definePlaybook, defineProduct, defineSkill, defineSurface, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, ensureEval, ensureFpo, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isUnifiedEventType, isWorkflowHookRef, jsonField, judge, judges, latency, length, listWorkflowHooks, matchesExpected, maxToolCalls, noError, normalizeAgentDefinition, normalizeCandidatePath, normalizeFpoDefinition, normalizeProductDefinition, normalizeSkillDefinition, normalizeSurfaceDefinition, normalizeToolDefinition, notCalledTool, notContains, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, pullEval, pullFpo, ranStep, regex, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, runEvalSuite, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, stepOrder, streamEvents, toolOrder, unregisterWorkflowHook, usedNoTools, validJson, withUnifiedEvents };
|
|
56084
|
+
export { type AIGrader, type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, AgentDriftError, AgentEnsureConflictError, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentPullResult, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentStreamEvent, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AgentsNamespace, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, type AssetReferenceContentPart, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInGraderId, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, type CanonicalDispatchMessageContent, type CanonicalDispatchRequest, type CaseExpected, ChatEndpoint, type CheckGrader, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientWidgetTheme, CollectionsEndpoint, type ConditionalGetResult, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateCollectionRequest, type CreateConversationRequest, type CreateEvalSuiteInput, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CurrentBilledSpendResponse, type CurrentBilledSpendSource, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, type DecomposeCriteriaResult, type DefineAgentInput, type DefineEvalCaseInput, type DefineEvalInput, type DefineFlowInput, type DefineProductInput, type DefineSkillInput, type DefineSurfaceInput, type DefineToolInput, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DiscoveredModel, type DispatchAgentInput, type DispatchApprovalContinuationResponse, type DispatchApproveRequest, type DispatchApproveResponse, type DispatchClient, type DispatchContinuationRequest, type DispatchContinuationResponse, type DispatchDetachedApprovalResponse, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchFlowInput, type DispatchMessageContent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type DispatchResponse, type DispatchResumeRequest, type DispatchResumeResponse, type EndUserUsageQuery, type EndUserUsageResponse, type EnsureAgentConverged, type EnsureAgentOptions, type EnsureAgentPlan, type EnsureAgentResult, type EnsureEvalResult, type EnsureFlowConverged, type EnsureFlowOptions, type EnsureFlowPlan, type EnsureFlowResult, type EnsureFpoOptions, type EnsureFpoResult, type EnsureProductConverged, type EnsureProductOptions, type EnsureProductPlan, type EnsureProductResult, type EnsureSkillConverged, type EnsureSkillOptions, type EnsureSkillPlan, type EnsureSkillResult, type EnsureSurfaceConverged, type EnsureSurfaceOptions, type EnsureSurfacePlan, type EnsureSurfaceResult, type EnsureToolConverged, type EnsureToolOptions, type EnsureToolPlan, type EnsureToolResult, type ErrorHandlingMode, EvalBuilder, type EvalCaseDefinition, type EvalCaseInput, type EvalCaseProposal, type EvalCaseProposalAccepted, type EvalCaseProposalListResult, type EvalCasesGenerated, type EvalClient, type EvalDefinition, EvalEndpoint, type EvalListParams, type EvalMessage, type EvalOptions, type EvalProposalSource, type EvalProposalStatus, type EvalProposedCase, type EvalPullResult, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunCaseScores, type EvalRunConfig, type EvalRunScores, EvalRunner, type EvalStatus, type EvalSuiteCase, type EvalSuiteCaseInput, type EvalSuiteCoverage, type EvalSuiteDetail, type EvalSuiteLatestRun, type EvalSuiteListResult, type EvalSuiteRunQueued, type EvalSuiteRunResult, type EvalSuiteSummary, EvalSuitesNamespace, type EvalTarget, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExecutionStreamEvent, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowDefinition, type FlowDefinitionStep, FlowDriftError, FlowEnsureConflictError, type FlowErrorEvent, type FlowFallback, type FlowInlineEvalInput, type FlowListItem, type FlowPausedEvent, type FlowPullResult, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowStreamEvent, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type FpoEntityOutcome, type FpoInput, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GenerateEvalCasesInput, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type GetRecordStepConfig$1 as GetRecordStepConfig, type Gradeable, type GraderConfig, type GraderOutcome, type GraderSeverity, type HumanVerdict, type ImageContentPart, type InferCollectionSchemaResponse, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, LEDGER_ARTIFACT_LINE_PREFIX, type ListCollectionsResponse, type ListConversationsResponse, type ListParams, type ListRecordsStepConfig$1 as ListRecordsStepConfig, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type PersistedGraderOutcome, type ProductDefinition, ProductDriftError, ProductEnsureConflictError, type ProductPullResult, ProductsNamespace, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, type PullFpoResult, RUNTYPE_CLIENT_KIND, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordCollection, type RecordCollectionWithHistory, type RecordConfig$1 as RecordConfig, type RecordCostAggregation, type RecordCostModelBreakdown, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, type RecordStepResult, type RecordStepResultsParams, type RecordStepResultsResponse, type RecordWriteResponse, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunEvalCaseResult, type RunEvalInput, type RunEvalResult, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContextSummaryEntry, type RunTaskContinuation, type RunTaskOffloadRecorder, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type GetRecordStepConfig as RuntypeGetRecordStepConfig, type ListRecordsStepConfig as RuntypeListRecordsStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillScanFinding as RuntypeSkillScanFinding, type SkillScanResult as RuntypeSkillScanResult, type SkillScanVerdict as RuntypeSkillScanVerdict, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, SDK_USER_AGENT, SDK_VERSION, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillDefinition, SkillDriftError, SkillEnsureConflictError, type SkillListPage, type SkillListPagination, type SkillListParams, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillPullResult, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type SlackManifestRequest, type SlackManifestResponse, type SlackOAuthStartRequest, type SlackOAuthStartResponse, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamConsumeOptions, type StreamEvent, type StreamEventOf, type SubagentToolConfig, type Surface, type SurfaceDefinition, type SurfaceDefinitionEnvironment, type SurfaceDefinitionStatus, type SurfaceDefinitionType, SurfaceDriftError, SurfaceEnsureConflictError, type SurfaceListParams, type SurfacePullResult, SurfacesEndpoint, SurfacesNamespace, type TextContentPart, type Tool, type ToolApprovalGrant, ToolApprovalGrantsEndpoint, type ToolConfig, type ToolDefinition, type ToolDefinitionType, ToolDriftError, ToolEnsureConflictError, type ToolPullResult, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, ToolsNamespace, type TransformDataStepConfig$1 as TransformDataStepConfig, UNIFIED_EVENTS_QUERY, type UpdateClientTokenRequest, type UpdateCollectionRequest, type UpdateCollectionResponse, type UpdateConversationRequest, type UpdateEvalCaseInput, type UpdateEvalSuiteInput, type UpdateFlowRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type ValidateExistingRecordsResponse, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowCompileDeps, type WorkflowCompletionCriteriaConfig, type WorkflowConfig, type WorkflowConfigFactory, type WorkflowContext, type WorkflowDefinition, type WorkflowHookEntry, type WorkflowHookKind, type WorkflowHookRef, type WorkflowHookSignatures, type WorkflowMilestoneConfig, type WorkflowPhase, type WorkflowPolicyConfig, type WorkflowRecoveryConfig, type WorkflowSlot, type WorkflowStallPolicy, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildEmptySessionNudge, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildPolicyGuidance, buildSendViewOffloadMarker, calledTool, compileWorkflowConfig, completed, computeAgentContentHash, computeEvalContentHash, computeFlowContentHash, computeFpoContentHash, computeProductContentHash, computeSkillContentHash, computeSurfaceContentHash, computeToolContentHash, contains, cost, createAgentEventTranslator, createClient, createExternalTool, createFlowEventTranslator, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineEval, defineFlow, defineFpo, definePlaybook, defineProduct, defineSkill, defineSurface, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, ensureEval, ensureFpo, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isUnifiedEventType, isWorkflowHookRef, jsonField, judge, judges, latency, length, listWorkflowHooks, matchesExpected, maxToolCalls, noError, normalizeAgentDefinition, normalizeCandidatePath, normalizeFpoDefinition, normalizeProductDefinition, normalizeSkillDefinition, normalizeSurfaceDefinition, normalizeToolDefinition, notCalledTool, notContains, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, pullEval, pullFpo, ranStep, regex, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, runEvalSuite, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, stepOrder, streamEvents, toolOrder, unregisterWorkflowHook, usedNoTools, validJson, withUnifiedEvents };
|