@runtypelabs/sdk 6.4.0 → 6.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1925,9 +1925,16 @@ interface paths {
1925
1925
  }[];
1926
1926
  subagentConfig?: {
1927
1927
  allowNesting?: boolean;
1928
+ /** @enum {string} */
1929
+ defaultExecutionMode?: "attached" | "detached";
1928
1930
  defaultMaxTurns?: number;
1929
1931
  defaultModel?: string;
1932
+ /** @enum {string} */
1933
+ defaultNotify?: "none" | "narrate" | "react";
1930
1934
  defaultTimeoutMs?: number;
1935
+ detachedMaxBudgetMs?: number;
1936
+ detachedNoProgressBudgetMs?: number;
1937
+ executionModes?: ("attached" | "detached")[];
1931
1938
  maxSpawnsPerRun?: number;
1932
1939
  maxTurnsLimit?: number;
1933
1940
  toolPool: string[];
@@ -2232,9 +2239,7 @@ interface paths {
2232
2239
  };
2233
2240
  requestBody?: {
2234
2241
  content: {
2235
- "application/json": {
2236
- [key: string]: unknown;
2237
- };
2242
+ "application/json": components["schemas"]["AgentApproveRequest"];
2238
2243
  };
2239
2244
  };
2240
2245
  responses: {
@@ -2244,6 +2249,7 @@ interface paths {
2244
2249
  [name: string]: unknown;
2245
2250
  };
2246
2251
  content: {
2252
+ "application/json": components["schemas"]["AgentApproveContinuationJsonResponse"];
2247
2253
  "text/event-stream": unknown;
2248
2254
  };
2249
2255
  };
@@ -2265,6 +2271,15 @@ interface paths {
2265
2271
  "application/json": components["schemas"]["Error"];
2266
2272
  };
2267
2273
  };
2274
+ /** @description Platform-key spend limit exceeded during a buffered continuation */
2275
+ 402: {
2276
+ headers: {
2277
+ [name: string]: unknown;
2278
+ };
2279
+ content: {
2280
+ "application/json": components["schemas"]["AgentApprovalContinuationJsonResponse"];
2281
+ };
2282
+ };
2268
2283
  /** @description Insufficient permissions */
2269
2284
  403: {
2270
2285
  headers: {
@@ -3726,9 +3741,7 @@ interface paths {
3726
3741
  };
3727
3742
  requestBody?: {
3728
3743
  content: {
3729
- "application/json": {
3730
- [key: string]: unknown;
3731
- };
3744
+ "application/json": components["schemas"]["AgentResumeRequest"];
3732
3745
  };
3733
3746
  };
3734
3747
  responses: {
@@ -3738,6 +3751,7 @@ interface paths {
3738
3751
  [name: string]: unknown;
3739
3752
  };
3740
3753
  content: {
3754
+ "application/json": components["schemas"]["AgentResumeContinuationJsonResponse"];
3741
3755
  "text/event-stream": unknown;
3742
3756
  };
3743
3757
  };
@@ -3759,6 +3773,15 @@ interface paths {
3759
3773
  "application/json": components["schemas"]["Error"];
3760
3774
  };
3761
3775
  };
3776
+ /** @description Platform-key spend limit exceeded during a buffered continuation */
3777
+ 402: {
3778
+ headers: {
3779
+ [name: string]: unknown;
3780
+ };
3781
+ content: {
3782
+ "application/json": components["schemas"]["AgentResumeContinuationJsonResponse"];
3783
+ };
3784
+ };
3762
3785
  /** @description Insufficient permissions */
3763
3786
  403: {
3764
3787
  headers: {
@@ -4076,6 +4099,146 @@ interface paths {
4076
4099
  patch?: never;
4077
4100
  trace?: never;
4078
4101
  };
4102
+ "/v1/analytics/end-user-usage": {
4103
+ parameters: {
4104
+ query?: never;
4105
+ header?: never;
4106
+ path?: never;
4107
+ cookie?: never;
4108
+ };
4109
+ /**
4110
+ * Get product usage by end user
4111
+ * @description Get a retained, product-scoped breakdown of executions and platform spend by projected end user.
4112
+ */
4113
+ get: {
4114
+ parameters: {
4115
+ query: {
4116
+ productId: string;
4117
+ productTenantId?: string;
4118
+ period?: "billing_period" | "7d" | "30d" | "90d";
4119
+ days?: number;
4120
+ sort?: "spend" | "executions";
4121
+ limit?: number;
4122
+ };
4123
+ header?: never;
4124
+ path?: never;
4125
+ cookie?: never;
4126
+ };
4127
+ requestBody?: never;
4128
+ responses: {
4129
+ /** @description End-user usage breakdown */
4130
+ 200: {
4131
+ headers: {
4132
+ [name: string]: unknown;
4133
+ };
4134
+ content: {
4135
+ "application/json": {
4136
+ coverage: {
4137
+ attributedExecutions: number;
4138
+ attributedSpendThousandthsCent: number;
4139
+ unattributedExecutions: number;
4140
+ unattributedSpendThousandthsCent: number;
4141
+ };
4142
+ endUsers: {
4143
+ costPerExecutionDollars: number | null;
4144
+ endUser: {
4145
+ email: string | null;
4146
+ id: string;
4147
+ name: string | null;
4148
+ productTenantId: string | null;
4149
+ };
4150
+ executions: number;
4151
+ lastSeenAt: string;
4152
+ spendDollars: number;
4153
+ spendThousandthsCent: number;
4154
+ }[];
4155
+ generatedAt: string;
4156
+ period: {
4157
+ days: number;
4158
+ endDate: string;
4159
+ /** @enum {string} */
4160
+ preset?: "billing_period" | "7d" | "30d" | "90d";
4161
+ startDate: string;
4162
+ };
4163
+ retention: {
4164
+ attributionStartedAt: string | null;
4165
+ earliestAvailableAt: string | null;
4166
+ /** @enum {number} */
4167
+ retentionDays: 93;
4168
+ };
4169
+ scope: {
4170
+ productId: string;
4171
+ productTenantId: string | null;
4172
+ };
4173
+ tenantIds: string[];
4174
+ totals: {
4175
+ executions: number;
4176
+ spendDollars: number;
4177
+ spendThousandthsCent: number;
4178
+ };
4179
+ unattributed: {
4180
+ executions: number;
4181
+ spendDollars: number;
4182
+ spendThousandthsCent: number;
4183
+ };
4184
+ };
4185
+ };
4186
+ };
4187
+ /** @description Validation error */
4188
+ 400: {
4189
+ headers: {
4190
+ [name: string]: unknown;
4191
+ };
4192
+ content: {
4193
+ "application/json": components["schemas"]["Error"];
4194
+ };
4195
+ };
4196
+ /** @description Unauthorized */
4197
+ 401: {
4198
+ headers: {
4199
+ [name: string]: unknown;
4200
+ };
4201
+ content: {
4202
+ "application/json": components["schemas"]["Error"];
4203
+ };
4204
+ };
4205
+ /** @description Insufficient permissions */
4206
+ 403: {
4207
+ headers: {
4208
+ [name: string]: unknown;
4209
+ };
4210
+ content: {
4211
+ "application/json": components["schemas"]["Error"];
4212
+ };
4213
+ };
4214
+ /** @description Feature or product not found */
4215
+ 404: {
4216
+ headers: {
4217
+ [name: string]: unknown;
4218
+ };
4219
+ content: {
4220
+ "application/json": components["schemas"]["Error"];
4221
+ };
4222
+ };
4223
+ /** @description Internal server error */
4224
+ 500: {
4225
+ headers: {
4226
+ [name: string]: unknown;
4227
+ };
4228
+ content: {
4229
+ "application/json": components["schemas"]["Error"];
4230
+ };
4231
+ };
4232
+ };
4233
+ };
4234
+ put?: never;
4235
+ post?: never;
4236
+ delete?: never;
4237
+ options?: never;
4238
+ head?: never;
4239
+ patch?: never;
4240
+ trace?: never;
4241
+ };
4079
4242
  "/v1/analytics/record-results": {
4080
4243
  parameters: {
4081
4244
  query?: never;
@@ -4962,6 +5125,29 @@ interface paths {
4962
5125
  requestBody?: {
4963
5126
  content: {
4964
5127
  "application/json": {
5128
+ options?: {
5129
+ /** @description Records admitted to one processing chunk before progress is flushed and batch gates are re-checked. */
5130
+ chunkSize?: number;
5131
+ /** @description Flow-wide deadline passed to every per-record flow execution. */
5132
+ flowTimeoutMs?: number;
5133
+ /** @description Retries per failed record. */
5134
+ maxRetries?: number;
5135
+ /** @description Model id applied to every prompt step in this batch. */
5136
+ modelOverride?: string;
5137
+ /** @description Completed results buffered before partial progress is persisted. */
5138
+ progressFlushSize?: number;
5139
+ /** @description Max records dispatched in parallel within a processing chunk. */
5140
+ recordConcurrency?: number;
5141
+ /** @description Skip the serial prompt-cache canary before fan-out. */
5142
+ skipCacheWarm?: boolean;
5143
+ /** @description Per-step deadline passed to every per-record flow execution. */
5144
+ stepTimeoutMs?: number;
5145
+ /** @description Per-record execution timeout in milliseconds. */
5146
+ timeoutMs?: number;
5147
+ } & {
5148
+ [key: string]: unknown;
5149
+ };
5150
+ } & {
4965
5151
  [key: string]: unknown;
4966
5152
  };
4967
5153
  };
@@ -6930,12 +7116,13 @@ interface paths {
6930
7116
  };
6931
7117
  };
6932
7118
  responses: {
6933
- /** @description SSE stream of the resumed execution events */
7119
+ /** @description SSE stream of resumed execution events, or a buffered JSON continuation result when streamResponse is false */
6934
7120
  200: {
6935
7121
  headers: {
6936
7122
  [name: string]: unknown;
6937
7123
  };
6938
7124
  content: {
7125
+ "application/json": components["schemas"]["DispatchToolOutputContinuationJsonResponse"];
6939
7126
  "text/event-stream": unknown;
6940
7127
  };
6941
7128
  };
@@ -6993,6 +7180,15 @@ interface paths {
6993
7180
  "application/json": components["schemas"]["Error"];
6994
7181
  };
6995
7182
  };
7183
+ /** @description Neutral service-unavailable response when the owner platform-key spend limit blocks an end-user continuation */
7184
+ 503: {
7185
+ headers: {
7186
+ [name: string]: unknown;
7187
+ };
7188
+ content: {
7189
+ "application/json": components["schemas"]["Error"];
7190
+ };
7191
+ };
6996
7192
  };
6997
7193
  };
6998
7194
  delete?: never;
@@ -9691,13 +9887,41 @@ interface paths {
9691
9887
  setupMode?: "create" | "connect";
9692
9888
  systemPrompt?: string;
9693
9889
  };
9890
+ errorHandling?: {
9891
+ fallbacks?: ({
9892
+ delay?: number;
9893
+ /** @enum {string} */
9894
+ type: "retry";
9895
+ } | {
9896
+ delay?: number;
9897
+ maxTokens?: number;
9898
+ model: string;
9899
+ temperature?: number;
9900
+ /** @enum {string} */
9901
+ type: "model";
9902
+ } | {
9903
+ delay?: number;
9904
+ message: string;
9905
+ /** @enum {string} */
9906
+ type: "message";
9907
+ })[];
9908
+ /** @enum {string} */
9909
+ onError: "fail" | "continue" | "fallback";
9910
+ triggers?: {
9911
+ /** @enum {string} */
9912
+ type: "error" | "empty-output";
9913
+ }[];
9914
+ };
9694
9915
  frequencyPenalty?: number;
9916
+ /** @enum {string} */
9917
+ loggingPolicy?: "default" | "on" | "off";
9695
9918
  loopConfig?: {
9696
9919
  enableReflection?: boolean;
9697
9920
  maxCost?: number;
9698
9921
  maxTurns?: number;
9699
9922
  reflectionInterval?: number;
9700
9923
  };
9924
+ maxTokens?: number;
9701
9925
  memory?: {
9702
9926
  enabled: boolean;
9703
9927
  injectSummary?: boolean;
@@ -9705,7 +9929,19 @@ interface paths {
9705
9929
  };
9706
9930
  model?: string;
9707
9931
  name?: string;
9932
+ /** @enum {string} */
9933
+ piiRedaction?: "default" | "off" | "redact";
9708
9934
  presencePenalty?: number;
9935
+ reasoning?: boolean | {
9936
+ budgetTokens?: number;
9937
+ enabled: boolean;
9938
+ includeThoughts?: boolean;
9939
+ /** @enum {string} */
9940
+ reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh";
9941
+ /** @enum {string} */
9942
+ reasoningSummary?: "auto" | "detailed";
9943
+ thinkingBudget?: number;
9944
+ };
9709
9945
  sandbox?: {
9710
9946
  enabled: boolean;
9711
9947
  /** @enum {string} */
@@ -9731,6 +9967,22 @@ interface paths {
9731
9967
  seed?: number;
9732
9968
  systemPrompt?: string;
9733
9969
  temperature?: number;
9970
+ temporal?: {
9971
+ elapsedThresholdSeconds?: number;
9972
+ groundNow?: boolean;
9973
+ injectElapsed?: boolean;
9974
+ timezone?: string;
9975
+ };
9976
+ tenancyStrategy?: {
9977
+ assuranceFloor?: {
9978
+ /** @enum {string} */
9979
+ endUser?: "asserted" | "verified";
9980
+ /** @enum {string} */
9981
+ tenant?: "asserted" | "verified";
9982
+ };
9983
+ /** @enum {string} */
9984
+ preset: "internal" | "tenant-isolated" | "end-user-isolated";
9985
+ };
9734
9986
  tools?: {
9735
9987
  approval?: {
9736
9988
  choices?: {
@@ -9779,9 +10031,26 @@ interface paths {
9779
10031
  };
9780
10032
  };
9781
10033
  toolIds?: string[];
10034
+ toolSearch?: {
10035
+ alwaysLoaded?: string[];
10036
+ enabled?: boolean;
10037
+ threshold?: number;
10038
+ };
9782
10039
  };
9783
10040
  topK?: number;
9784
10041
  topP?: number;
10042
+ voice?: {
10043
+ elevenLabs?: {
10044
+ modelId?: string;
10045
+ similarity?: number;
10046
+ stability?: number;
10047
+ voiceId?: string;
10048
+ };
10049
+ enabled?: boolean;
10050
+ /** @enum {string} */
10051
+ interruptionMode?: "none" | "cancel" | "barge-in";
10052
+ provider?: string;
10053
+ };
9785
10054
  };
9786
10055
  clientTools?: {
9787
10056
  description: string;
@@ -9979,13 +10248,41 @@ interface paths {
9979
10248
  setupMode?: "create" | "connect";
9980
10249
  systemPrompt?: string;
9981
10250
  };
10251
+ errorHandling?: {
10252
+ fallbacks?: ({
10253
+ delay?: number;
10254
+ /** @enum {string} */
10255
+ type: "retry";
10256
+ } | {
10257
+ delay?: number;
10258
+ maxTokens?: number;
10259
+ model: string;
10260
+ temperature?: number;
10261
+ /** @enum {string} */
10262
+ type: "model";
10263
+ } | {
10264
+ delay?: number;
10265
+ message: string;
10266
+ /** @enum {string} */
10267
+ type: "message";
10268
+ })[];
10269
+ /** @enum {string} */
10270
+ onError: "fail" | "continue" | "fallback";
10271
+ triggers?: {
10272
+ /** @enum {string} */
10273
+ type: "error" | "empty-output";
10274
+ }[];
10275
+ };
9982
10276
  frequencyPenalty?: number;
10277
+ /** @enum {string} */
10278
+ loggingPolicy?: "default" | "on" | "off";
9983
10279
  loopConfig?: {
9984
10280
  enableReflection?: boolean;
9985
10281
  maxCost?: number;
9986
10282
  maxTurns?: number;
9987
10283
  reflectionInterval?: number;
9988
10284
  };
10285
+ maxTokens?: number;
9989
10286
  memory?: {
9990
10287
  enabled: boolean;
9991
10288
  injectSummary?: boolean;
@@ -9993,7 +10290,19 @@ interface paths {
9993
10290
  };
9994
10291
  model?: string;
9995
10292
  name?: string;
10293
+ /** @enum {string} */
10294
+ piiRedaction?: "default" | "off" | "redact";
9996
10295
  presencePenalty?: number;
10296
+ reasoning?: boolean | {
10297
+ budgetTokens?: number;
10298
+ enabled: boolean;
10299
+ includeThoughts?: boolean;
10300
+ /** @enum {string} */
10301
+ reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh";
10302
+ /** @enum {string} */
10303
+ reasoningSummary?: "auto" | "detailed";
10304
+ thinkingBudget?: number;
10305
+ };
9997
10306
  sandbox?: {
9998
10307
  enabled: boolean;
9999
10308
  /** @enum {string} */
@@ -10019,6 +10328,22 @@ interface paths {
10019
10328
  seed?: number;
10020
10329
  systemPrompt?: string;
10021
10330
  temperature?: number;
10331
+ temporal?: {
10332
+ elapsedThresholdSeconds?: number;
10333
+ groundNow?: boolean;
10334
+ injectElapsed?: boolean;
10335
+ timezone?: string;
10336
+ };
10337
+ tenancyStrategy?: {
10338
+ assuranceFloor?: {
10339
+ /** @enum {string} */
10340
+ endUser?: "asserted" | "verified";
10341
+ /** @enum {string} */
10342
+ tenant?: "asserted" | "verified";
10343
+ };
10344
+ /** @enum {string} */
10345
+ preset: "internal" | "tenant-isolated" | "end-user-isolated";
10346
+ };
10022
10347
  tools?: {
10023
10348
  approval?: {
10024
10349
  choices?: {
@@ -10067,9 +10392,26 @@ interface paths {
10067
10392
  };
10068
10393
  };
10069
10394
  toolIds?: string[];
10395
+ toolSearch?: {
10396
+ alwaysLoaded?: string[];
10397
+ enabled?: boolean;
10398
+ threshold?: number;
10399
+ };
10070
10400
  };
10071
10401
  topK?: number;
10072
10402
  topP?: number;
10403
+ voice?: {
10404
+ elevenLabs?: {
10405
+ modelId?: string;
10406
+ similarity?: number;
10407
+ stability?: number;
10408
+ voiceId?: string;
10409
+ };
10410
+ enabled?: boolean;
10411
+ /** @enum {string} */
10412
+ interruptionMode?: "none" | "cancel" | "barge-in";
10413
+ provider?: string;
10414
+ };
10073
10415
  };
10074
10416
  clientTools?: {
10075
10417
  description: string;
@@ -10366,6 +10708,7 @@ interface paths {
10366
10708
  executionId: string;
10367
10709
  reason?: string;
10368
10710
  remember?: boolean;
10711
+ /** @default true */
10369
10712
  streamResponse?: boolean;
10370
10713
  };
10371
10714
  };
@@ -10377,6 +10720,7 @@ interface paths {
10377
10720
  [name: string]: unknown;
10378
10721
  };
10379
10722
  content: {
10723
+ "application/json": components["schemas"]["DispatchApproveJsonResponse"];
10380
10724
  "text/event-stream": unknown;
10381
10725
  };
10382
10726
  };
@@ -10398,6 +10742,15 @@ interface paths {
10398
10742
  "application/json": components["schemas"]["Error"];
10399
10743
  };
10400
10744
  };
10745
+ /** @description Platform key spend limit exceeded */
10746
+ 402: {
10747
+ headers: {
10748
+ [name: string]: unknown;
10749
+ };
10750
+ content: {
10751
+ "application/json": components["schemas"]["DispatchApprovalContinuationJsonResponse"];
10752
+ };
10753
+ };
10401
10754
  /** @description Insufficient permissions */
10402
10755
  403: {
10403
10756
  headers: {
@@ -10407,6 +10760,15 @@ interface paths {
10407
10760
  "application/json": components["schemas"]["Error"];
10408
10761
  };
10409
10762
  };
10763
+ /** @description Paused execution not found */
10764
+ 404: {
10765
+ headers: {
10766
+ [name: string]: unknown;
10767
+ };
10768
+ content: {
10769
+ "application/json": components["schemas"]["Error"];
10770
+ };
10771
+ };
10410
10772
  /** @description Execution is not awaiting this approval or cannot be resumed here */
10411
10773
  409: {
10412
10774
  headers: {
@@ -10456,11 +10818,50 @@ interface paths {
10456
10818
  requestBody?: {
10457
10819
  content: {
10458
10820
  "application/json": {
10459
- /** @description Continuation payload (tool-output or approval) */
10460
10821
  continuation: {
10461
- [key: string]: unknown;
10822
+ messages?: {
10823
+ content: string | ({
10824
+ text: string;
10825
+ /** @enum {string} */
10826
+ type: "text";
10827
+ } | {
10828
+ image: string;
10829
+ mimeType?: string;
10830
+ /** @enum {string} */
10831
+ type: "image";
10832
+ } | {
10833
+ data: string;
10834
+ filename: string;
10835
+ mimeType: string;
10836
+ /** @enum {string} */
10837
+ type: "file";
10838
+ } | {
10839
+ providerOptions?: {
10840
+ [key: string]: unknown;
10841
+ };
10842
+ text: string;
10843
+ /** @enum {string} */
10844
+ type: "reasoning";
10845
+ })[];
10846
+ /** @enum {string} */
10847
+ role: "system" | "user" | "assistant";
10848
+ }[];
10849
+ toolOutputs?: {
10850
+ [key: string]: unknown;
10851
+ };
10852
+ /** @enum {string} */
10853
+ type: "tool-output";
10854
+ } | {
10855
+ approvalId: string;
10856
+ /** @enum {string} */
10857
+ decision: "approved" | "denied";
10858
+ reason?: string;
10859
+ remember?: boolean;
10860
+ /** @enum {string} */
10861
+ type: "approval";
10462
10862
  };
10463
10863
  executionId: string;
10864
+ /** @default true */
10464
10865
  streamResponse?: boolean;
10465
10866
  };
10466
10867
  };
@@ -10472,6 +10873,7 @@ interface paths {
10472
10873
  [name: string]: unknown;
10473
10874
  };
10474
10875
  content: {
10876
+ "application/json": components["schemas"]["DispatchContinuationJsonResponse"];
10475
10877
  "text/event-stream": unknown;
10476
10878
  };
10477
10879
  };
@@ -10493,6 +10895,15 @@ interface paths {
10493
10895
  "application/json": components["schemas"]["Error"];
10494
10896
  };
10495
10897
  };
10898
+ /** @description Platform key spend limit exceeded */
10899
+ 402: {
10900
+ headers: {
10901
+ [name: string]: unknown;
10902
+ };
10903
+ content: {
10904
+ "application/json": components["schemas"]["DispatchContinuationJsonResponse"];
10905
+ };
10906
+ };
10496
10907
  /** @description Insufficient permissions */
10497
10908
  403: {
10498
10909
  headers: {
@@ -10502,6 +10913,15 @@ interface paths {
10502
10913
  "application/json": components["schemas"]["Error"];
10503
10914
  };
10504
10915
  };
10916
+ /** @description Paused execution not found */
10917
+ 404: {
10918
+ headers: {
10919
+ [name: string]: unknown;
10920
+ };
10921
+ content: {
10922
+ "application/json": components["schemas"]["Error"];
10923
+ };
10924
+ };
10505
10925
  /** @description Execution is not awaiting this approval or cannot be resumed here */
10506
10926
  409: {
10507
10927
  headers: {
@@ -10554,13 +10974,41 @@ interface paths {
10554
10974
  /** @description The execution ID to resume */
10555
10975
  executionId: string;
10556
10976
  messages?: {
10557
- content?: unknown;
10977
+ content: string | ({
10978
+ text: string;
10979
+ /** @enum {string} */
10980
+ type: "text";
10981
+ } | {
10982
+ image: string;
10983
+ mimeType?: string;
10984
+ /** @enum {string} */
10985
+ type: "image";
10986
+ } | {
10987
+ data: string;
10988
+ filename: string;
10989
+ mimeType: string;
10990
+ /** @enum {string} */
10991
+ type: "file";
10992
+ } | {
10993
+ providerOptions?: {
10994
+ [key: string]: unknown;
10995
+ };
10996
+ text: string;
10997
+ /** @enum {string} */
10998
+ type: "reasoning";
10999
+ })[];
10558
11000
  /** @enum {string} */
10559
11001
  role: "system" | "user" | "assistant";
10560
11002
  }[];
10561
- /** @description Whether to stream the response via SSE */
11003
+ /**
11004
+ * @description Whether to stream the response via SSE
11005
+ * @default true
11006
+ */
10562
11007
  streamResponse?: boolean;
10563
- /** @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). */
11008
+ /**
11009
+ * @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).
11010
+ * @default {}
11011
+ */
10564
11012
  toolOutputs?: {
10565
11013
  [key: string]: unknown;
10566
11014
  };
@@ -10574,6 +11022,7 @@ interface paths {
10574
11022
  [name: string]: unknown;
10575
11023
  };
10576
11024
  content: {
11025
+ "application/json": components["schemas"]["DispatchToolOutputContinuationJsonResponse"];
10577
11026
  "text/event-stream": unknown;
10578
11027
  };
10579
11028
  };
@@ -10595,6 +11044,15 @@ interface paths {
10595
11044
  "application/json": components["schemas"]["Error"];
10596
11045
  };
10597
11046
  };
11047
+ /** @description Platform key spend limit exceeded */
11048
+ 402: {
11049
+ headers: {
11050
+ [name: string]: unknown;
11051
+ };
11052
+ content: {
11053
+ "application/json": components["schemas"]["DispatchToolOutputContinuationJsonResponse"];
11054
+ };
11055
+ };
10598
11056
  /** @description Insufficient permissions */
10599
11057
  403: {
10600
11058
  headers: {
@@ -10604,6 +11062,15 @@ interface paths {
10604
11062
  "application/json": components["schemas"]["Error"];
10605
11063
  };
10606
11064
  };
11065
+ /** @description Paused execution not found */
11066
+ 404: {
11067
+ headers: {
11068
+ [name: string]: unknown;
11069
+ };
11070
+ content: {
11071
+ "application/json": components["schemas"]["Error"];
11072
+ };
11073
+ };
10607
11074
  /** @description Internal server error */
10608
11075
  500: {
10609
11076
  headers: {
@@ -16215,7 +16682,12 @@ interface paths {
16215
16682
  [name: string]: unknown;
16216
16683
  };
16217
16684
  content: {
16218
- "application/json": components["schemas"]["Error"];
16685
+ "application/json": {
16686
+ details?: string[];
16687
+ error: string;
16688
+ recordCount?: number;
16689
+ recordType?: string;
16690
+ };
16219
16691
  };
16220
16692
  };
16221
16693
  /** @description Unauthorized */
@@ -16236,6 +16708,29 @@ interface paths {
16236
16708
  "application/json": components["schemas"]["Error"];
16237
16709
  };
16238
16710
  };
16711
+ /** @description Flow not found */
16712
+ 404: {
16713
+ headers: {
16714
+ [name: string]: unknown;
16715
+ };
16716
+ content: {
16717
+ "application/json": components["schemas"]["Error"];
16718
+ };
16719
+ };
16720
+ /** @description Flow requires behavior not supported by the runtime execution surface */
16721
+ 422: {
16722
+ headers: {
16723
+ [name: string]: unknown;
16724
+ };
16725
+ content: {
16726
+ "application/json": {
16727
+ /** @enum {string} */
16728
+ code: "RUNTIME_FLOW_UNSUPPORTED";
16729
+ error: string;
16730
+ reasons: string[];
16731
+ };
16732
+ };
16733
+ };
16239
16734
  /** @description Daily execution limit exceeded */
16240
16735
  429: {
16241
16736
  headers: {
@@ -27126,12 +27621,19 @@ interface paths {
27126
27621
  name: string | null;
27127
27622
  rateLimitPerDay: number | null;
27128
27623
  rateLimitPerMinute: number | null;
27624
+ scopeTargetIds: string[] | null;
27129
27625
  scopes: string[];
27130
27626
  usageCount: number | null;
27131
27627
  }[];
27132
27628
  name: string;
27133
27629
  outbound?: unknown;
27134
27630
  productId: string;
27631
+ scopeTargets: {
27632
+ capabilityId?: string;
27633
+ id: string;
27634
+ name: string;
27635
+ surfaceItemId?: string;
27636
+ }[];
27135
27637
  status: string;
27136
27638
  type: string;
27137
27639
  updatedAt: string;
@@ -27860,6 +28362,7 @@ interface paths {
27860
28362
  name?: string;
27861
28363
  rateLimitPerDay?: number;
27862
28364
  rateLimitPerMinute?: number;
28365
+ /** @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
28366
  scopes?: string[];
27864
28367
  };
27865
28368
  };
@@ -27883,6 +28386,7 @@ interface paths {
27883
28386
  name: string | null;
27884
28387
  rateLimitPerDay: number | null;
27885
28388
  rateLimitPerMinute: number | null;
28389
+ scopeTargetIds: string[];
27886
28390
  scopes: string[];
27887
28391
  surfaceId: string;
27888
28392
  };
@@ -30863,7 +31367,7 @@ interface paths {
30863
31367
  requestBody?: {
30864
31368
  content: {
30865
31369
  "application/json": {
30866
- /** @default kimi-k2.6 */
31370
+ /** @default gemini-3.6-flash */
30867
31371
  model?: string;
30868
31372
  name: string;
30869
31373
  /**
@@ -31060,7 +31564,7 @@ interface paths {
31060
31564
  requestBody?: {
31061
31565
  content: {
31062
31566
  "application/json": {
31063
- /** @default kimi-k2.6 */
31567
+ /** @default gemini-3.6-flash */
31064
31568
  model?: string;
31065
31569
  name?: string;
31066
31570
  /**
@@ -41852,6 +42356,7 @@ interface paths {
41852
42356
  enableAgentSkills: boolean;
41853
42357
  enableChromeSurface: boolean;
41854
42358
  enableDashboardAssistant: boolean;
42359
+ enableEndUserUsageAnalytics: boolean;
41855
42360
  enableMassiveWebRender: boolean;
41856
42361
  enableRuntown: boolean;
41857
42362
  enableRuntypeApps: boolean;
@@ -42318,6 +42823,43 @@ interface components {
42318
42823
  timestamp?: string;
42319
42824
  };
42320
42825
  };
42826
+ AgentApprovalContinuationJsonResponse: {
42827
+ blockReason?: string;
42828
+ code?: string;
42829
+ /** @enum {string} */
42830
+ decision: "approved" | "denied";
42831
+ error?: string;
42832
+ executionId: string;
42833
+ iterations: number;
42834
+ pausedReason?: components["schemas"]["DispatchPausedReason"];
42835
+ result: string;
42836
+ /** @enum {string} */
42837
+ status: "completed" | "paused" | "failed";
42838
+ /** @enum {string} */
42839
+ stopReason: "end_turn" | "paused" | "error";
42840
+ success: boolean;
42841
+ totalCost: number;
42842
+ upgradeUrl?: string;
42843
+ };
42844
+ AgentApproveContinuationJsonResponse: components["schemas"]["AgentApprovalContinuationJsonResponse"] | components["schemas"]["AgentDetachedApprovalJsonResponse"];
42845
+ AgentApproveRequest: {
42846
+ approvalId: string;
42847
+ /** @default false */
42848
+ debugMode: boolean;
42849
+ /** @enum {string} */
42850
+ decision: "approved" | "denied";
42851
+ executionId: string;
42852
+ reason?: string;
42853
+ remember?: boolean;
42854
+ /** @default true */
42855
+ streamResponse: boolean;
42856
+ };
42857
+ AgentDetachedApprovalJsonResponse: {
42858
+ approvalId: string;
42859
+ executionId: string;
42860
+ /** @enum {string} */
42861
+ status: "running";
42862
+ };
42321
42863
  AgentEnsureConflict: {
42322
42864
  /** @enum {string} */
42323
42865
  code: "external_modification" | "remote_changed";
@@ -42568,6 +43110,32 @@ interface components {
42568
43110
  /** @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
43111
  warnings?: string[];
42570
43112
  };
43113
+ AgentResumeContinuationJsonResponse: {
43114
+ blockReason?: string;
43115
+ code?: string;
43116
+ error?: string;
43117
+ iterations: number;
43118
+ pausedReason?: components["schemas"]["DispatchPausedReason"];
43119
+ result: string;
43120
+ /** @enum {string} */
43121
+ status: "completed" | "paused" | "failed";
43122
+ /** @enum {string} */
43123
+ stopReason: "end_turn" | "paused" | "error";
43124
+ success: boolean;
43125
+ totalCost: number;
43126
+ upgradeUrl?: string;
43127
+ };
43128
+ AgentResumeRequest: {
43129
+ /** @default false */
43130
+ debugMode: boolean;
43131
+ executionId: string;
43132
+ /** @default true */
43133
+ streamResponse: boolean;
43134
+ /** @default {} */
43135
+ toolOutputs: {
43136
+ [key: string]: unknown;
43137
+ };
43138
+ };
42571
43139
  AsyncDispatchHandle: {
42572
43140
  /** @description Present only for ephemeral inline-create dispatch. */
42573
43141
  claudeManagedAgentId?: string;
@@ -42684,6 +43252,27 @@ interface components {
42684
43252
  };
42685
43253
  upgradeUrl?: string;
42686
43254
  };
43255
+ DispatchApprovalContinuationJsonResponse: {
43256
+ blockReason?: string;
43257
+ code?: string;
43258
+ /** @enum {string} */
43259
+ decision: "approved" | "denied";
43260
+ error?: string;
43261
+ executionId: string;
43262
+ pausedReason?: components["schemas"]["DispatchPausedReason"];
43263
+ /** @enum {string} */
43264
+ status: "completed" | "paused" | "failed";
43265
+ success: boolean;
43266
+ upgradeUrl?: string;
43267
+ };
43268
+ DispatchApproveJsonResponse: components["schemas"]["DispatchApprovalContinuationJsonResponse"] | components["schemas"]["DispatchDetachedApprovalJsonResponse"];
43269
+ DispatchContinuationJsonResponse: components["schemas"]["DispatchToolOutputContinuationJsonResponse"] | components["schemas"]["DispatchApprovalContinuationJsonResponse"] | components["schemas"]["DispatchDetachedApprovalJsonResponse"];
43270
+ DispatchDetachedApprovalJsonResponse: {
43271
+ approvalId: string;
43272
+ executionId: string;
43273
+ /** @enum {string} */
43274
+ status: "running";
43275
+ };
42687
43276
  DispatchFlowJsonResponse: {
42688
43277
  blockReason?: string;
42689
43278
  code?: string;
@@ -42726,6 +43315,18 @@ interface components {
42726
43315
  /** @enum {string} */
42727
43316
  type: "durable_poll";
42728
43317
  };
43318
+ DispatchToolOutputContinuationJsonResponse: {
43319
+ blockReason?: string;
43320
+ code?: string;
43321
+ error?: string;
43322
+ events: components["schemas"]["ExecutionStreamEvent"][];
43323
+ executionId: string;
43324
+ pausedReason?: components["schemas"]["DispatchPausedReason"];
43325
+ /** @enum {string} */
43326
+ status: "completed" | "paused" | "failed";
43327
+ success: boolean;
43328
+ upgradeUrl?: string;
43329
+ };
42729
43330
  EndUserAuthConsumeRequest: {
42730
43331
  tenantOrganizationId: string;
42731
43332
  /** @description The one-time sign-in token from the email */
@@ -43429,6 +44030,28 @@ interface components {
43429
44030
  } & {
43430
44031
  [key: string]: unknown;
43431
44032
  }) | {
44033
+ executionId: string;
44034
+ iteration?: number;
44035
+ seq: number;
44036
+ state: {
44037
+ [key: string]: unknown;
44038
+ };
44039
+ /** @enum {string} */
44040
+ type: "state_snapshot";
44041
+ } | {
44042
+ executionId: string;
44043
+ iteration?: number;
44044
+ patch: {
44045
+ from?: string;
44046
+ /** @enum {string} */
44047
+ op: "add" | "remove" | "replace" | "move" | "copy" | "test";
44048
+ path: string;
44049
+ value?: unknown;
44050
+ }[];
44051
+ seq: number;
44052
+ /** @enum {string} */
44053
+ type: "state_delta";
44054
+ } | {
43432
44055
  executionId: string;
43433
44056
  hiddenParameterNames?: string[];
43434
44057
  iteration?: number;
@@ -45993,6 +46616,12 @@ type FlowStepDefinition = Omit<NonNullable<CreateFlowRequestBody['flowSteps']>[n
45993
46616
  name?: string;
45994
46617
  };
45995
46618
  type GeneratedDispatchRequest = NonNullable<NonNullable<paths['/v1/dispatch']['post']>['requestBody']>['content']['application/json'];
46619
+ /** Canonical request body for `/v1/dispatch/resume`. */
46620
+ type DispatchResumeRequest = NonNullable<paths['/v1/dispatch/resume']['post']['requestBody']>['content']['application/json'];
46621
+ /** Canonical request body for `/v1/dispatch/approve`. */
46622
+ type DispatchApproveRequest = NonNullable<paths['/v1/dispatch/approve']['post']['requestBody']>['content']['application/json'];
46623
+ /** Canonical discriminated request body for `/v1/dispatch/continue`. */
46624
+ type DispatchContinuationRequest = NonNullable<paths['/v1/dispatch/continue']['post']['requestBody']>['content']['application/json'];
45996
46625
  /**
45997
46626
  * Buffered response returned by `/v1/dispatch` when
45998
46627
  * `options.streamResponse:false`.
@@ -46001,6 +46630,16 @@ type GeneratedDispatchRequest = NonNullable<NonNullable<paths['/v1/dispatch']['p
46001
46630
  * streaming callers receive `ExecutionStreamEvent` frames instead.
46002
46631
  */
46003
46632
  type DispatchResponse = paths['/v1/dispatch']['post']['responses'][200]['content']['application/json'];
46633
+ /** Buffered `/v1/dispatch/resume` response for a tool-output continuation. */
46634
+ type DispatchResumeResponse = components['schemas']['DispatchToolOutputContinuationJsonResponse'];
46635
+ /** Buffered ordinary-approval result (detached approvals use a separate variant). */
46636
+ type DispatchApprovalContinuationResponse = components['schemas']['DispatchApprovalContinuationJsonResponse'];
46637
+ /** Buffered detached-approval acknowledgement; the detached run remains active. */
46638
+ type DispatchDetachedApprovalResponse = components['schemas']['DispatchDetachedApprovalJsonResponse'];
46639
+ /** Buffered `/v1/dispatch/approve` response, including detached approvals. */
46640
+ type DispatchApproveResponse = paths['/v1/dispatch/approve']['post']['responses'][200]['content']['application/json'];
46641
+ /** Buffered `/v1/dispatch/continue` response across every continuation variant. */
46642
+ type DispatchContinuationResponse = paths['/v1/dispatch/continue']['post']['responses'][200]['content']['application/json'];
46004
46643
  /** @internal */
46005
46644
  type CanonicalDispatchMessageContent = NonNullable<NonNullable<GeneratedDispatchRequest['messages']>[number]['content']>;
46006
46645
  /**
@@ -46676,6 +47315,63 @@ interface SlackManifestResponse {
46676
47315
  interactivityWebhookUrl?: string;
46677
47316
  redirectUrl: string;
46678
47317
  }
47318
+ interface EndUserUsageQuery {
47319
+ productId: string;
47320
+ productTenantId?: string;
47321
+ period?: 'billing_period' | '7d' | '30d' | '90d';
47322
+ days?: number;
47323
+ sort?: 'spend' | 'executions';
47324
+ limit?: number;
47325
+ }
47326
+ interface EndUserUsageResponse {
47327
+ generatedAt: string;
47328
+ period: {
47329
+ startDate: string;
47330
+ endDate: string;
47331
+ days: number;
47332
+ preset?: 'billing_period' | '7d' | '30d' | '90d';
47333
+ };
47334
+ scope: {
47335
+ productId: string;
47336
+ productTenantId: string | null;
47337
+ };
47338
+ /** Distinct tenant ids with usage in the window, independent of the tenant filter (most spend first, capped at 200). */
47339
+ tenantIds: string[];
47340
+ retention: {
47341
+ attributionStartedAt: string | null;
47342
+ earliestAvailableAt: string | null;
47343
+ retentionDays: 93;
47344
+ };
47345
+ totals: {
47346
+ executions: number;
47347
+ spendThousandthsCent: number;
47348
+ spendDollars: number;
47349
+ };
47350
+ coverage: {
47351
+ attributedExecutions: number;
47352
+ unattributedExecutions: number;
47353
+ attributedSpendThousandthsCent: number;
47354
+ unattributedSpendThousandthsCent: number;
47355
+ };
47356
+ endUsers: Array<{
47357
+ endUser: {
47358
+ id: string;
47359
+ name: string | null;
47360
+ email: string | null;
47361
+ productTenantId: string | null;
47362
+ };
47363
+ executions: number;
47364
+ spendThousandthsCent: number;
47365
+ spendDollars: number;
47366
+ costPerExecutionDollars: number | null;
47367
+ lastSeenAt: string;
47368
+ }>;
47369
+ unattributed: {
47370
+ executions: number;
47371
+ spendThousandthsCent: number;
47372
+ spendDollars: number;
47373
+ };
47374
+ }
46679
47375
  type CurrentBilledSpendSource = 'schematic_entitlements' | 'local_meter' | 'dev_override';
46680
47376
  interface CurrentBilledSpendResponse {
46681
47377
  period: {
@@ -50513,7 +51209,8 @@ declare class RuntypeClient$1 {
50513
51209
  * Dispatch flow execution (non-streaming JSON).
50514
51210
  *
50515
51211
  * 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.
51212
+ * canonical wire contract so builders never post a raw, un-normalized body,
51213
+ * and pins `streamResponse: false` so the server returns buffered JSON.
50517
51214
  */
50518
51215
  dispatchJson<T>(config: unknown): Promise<T>;
50519
51216
  /**
@@ -51600,11 +52297,11 @@ declare class DispatchEndpoint {
51600
52297
  executeStream(data: DispatchRequest): Promise<Response>;
51601
52298
  /**
51602
52299
  * Resume paused flow execution
51603
- * API expects snake_case field names
52300
+ * Uses buffered JSON when streamResponse is omitted.
51604
52301
  *
51605
- * @param data.execution_id - The execution ID to resume
51606
- * @param data.tool_outputs - Tool outputs to inject into the flow
51607
- * @param data.stream_response - Whether to stream the response
52302
+ * @param data.executionId - The execution ID to resume
52303
+ * @param data.toolOutputs - Tool outputs to inject into the flow
52304
+ * @param data.streamResponse - Whether to stream the response (defaults to false)
51608
52305
  * @param data.messages - Optional messages to override the original dispatch messages
51609
52306
  */
51610
52307
  resume(data: {
@@ -51698,6 +52395,10 @@ declare class AnalyticsEndpoint {
51698
52395
  * Get model usage analytics
51699
52396
  */
51700
52397
  getModelUsage(params?: ModelUsageQueryParams): Promise<ModelUsageResponse>;
52398
+ /**
52399
+ * Get execution and platform-spend usage grouped by projected product end user.
52400
+ */
52401
+ getEndUserUsage(params: EndUserUsageQuery): Promise<EndUserUsageResponse>;
51701
52402
  }
51702
52403
  /**
51703
52404
  * Flow Steps endpoint handlers
@@ -52079,7 +52780,7 @@ interface AgentToolStartEvent extends BaseAgentEvent {
52079
52780
  iteration: number;
52080
52781
  toolCallId: string;
52081
52782
  toolName: string;
52082
- toolType: 'flow' | 'mcp' | 'builtin' | 'custom' | 'external' | 'advisor' | 'subagent' | 'local';
52783
+ toolType: 'flow' | 'mcp' | 'builtin' | 'custom' | 'external' | 'advisor' | 'subagent' | 'local' | 'data_connection' | 'search';
52083
52784
  parameters?: Record<string, unknown>;
52084
52785
  hiddenParameterNames?: string[];
52085
52786
  /**
@@ -53926,7 +54627,7 @@ declare function parseLedgerArtifactRelativePath(value: string): string | undefi
53926
54627
  *
53927
54628
  * As of the unified-SSE cutover (runtypelabs/core unified-sse-default) the
53928
54629
  * execution streams the SDK consumes — `/dispatch`, `/dispatch/resume`,
53929
- * `/agents/{id}/execute`, `/agents/{id}/resume` — use the 33-event unified
54630
+ * `/agents/{id}/execute`, `/agents/{id}/resume` — use the 35-event unified
53930
54631
  * vocabulary (`unifiedSSEEventSchema` in `@runtypelabs/shared`). The SDK
53931
54632
  * translates those frames back into its stable, hand-written callback shapes
53932
54633
  * here.
@@ -53940,9 +54641,14 @@ declare function parseLedgerArtifactRelativePath(value: string): string | undefi
53940
54641
  * (`docs/features/planning/2026-06-16-persona-sse-event-merged-spec.md`).
53941
54642
  *
53942
54643
  * Scope: only the events the SDK's consumers actually read are reconstructed;
53943
- * everything else (artifact channel, `source`, `custom`, fallback live-beat,
53944
- * `step_skip`) maps to zero callback events. Two unified-contract folds are NOT
53945
- * reconstructed because the unified vocabulary deliberately discards them:
54644
+ * everything else (artifact channel, `source`, the `state_snapshot` /
54645
+ * `state_delta` agent-state channel, `custom`, fallback live-beat, `step_skip`)
54646
+ * maps to zero callback events. The state channel is recognized as unified
54647
+ * vocabulary (so `isUnifiedEventType` is true and the wire union stays exhaustive)
54648
+ * but has no stable SDK callback shape to project onto; surfacing it to the SDK
54649
+ * callback surface is a separate additive slice, not a wire-translation concern.
54650
+ * Two unified-contract folds are NOT reconstructed because the unified
54651
+ * vocabulary deliberately discards them:
53946
54652
  * - `agent_iteration_start` / `agent_iteration_complete` are folded into the
53947
54653
  * `iteration` field on turn/tool frames, so `onIterationStart` /
53948
54654
  * `onIterationComplete` no longer fire.
@@ -55382,4 +56088,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
55382
56088
  declare function getDefaultPlanPath(taskName: string): string;
55383
56089
  declare function sanitizeTaskSlug(taskName: string): string;
55384
56090
 
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 };
56091
+ 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 };