@sixb/client 0.2.5 → 0.2.6
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/agent-streams.d.ts +11 -2
- package/dist/agent-streams.d.ts.map +1 -1
- package/dist/artifact-live.js +1 -1
- package/dist/browser.js +1 -1
- package/dist/{chunk-ktqfenfd.js → chunk-3dxa8d3r.js} +46 -6
- package/dist/chunk-3dxa8d3r.js.map +10 -0
- package/dist/{chunk-zta9jf24.js → chunk-4t68c4gf.js} +10 -3
- package/dist/{chunk-zta9jf24.js.map → chunk-4t68c4gf.js.map} +3 -3
- package/dist/{chunk-tm588tr7.js → chunk-6caavk8p.js} +1 -1
- package/dist/{chunk-pn4b10k4.js → chunk-pzz6gtn5.js} +2 -2
- package/dist/{chunk-60fdvjxa.js → chunk-vydypkf1.js} +39 -2
- package/dist/chunk-vydypkf1.js.map +10 -0
- package/dist/connectors/connection.d.ts +12 -0
- package/dist/connectors/connection.d.ts.map +1 -1
- package/dist/connectors/index.d.ts +1 -1
- package/dist/connectors/index.d.ts.map +1 -1
- package/dist/connectors/queries.d.ts.map +1 -1
- package/dist/generated/@tanstack/react-query.gen.d.ts +940 -113
- package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/sdk.gen.d.ts +27 -3
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.d.ts +884 -12
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/hooks.js +87 -5
- package/dist/hooks.js.map +4 -4
- package/dist/index.js +13 -5
- package/dist/index.js.map +1 -1
- package/dist/logs.js +3 -3
- package/dist/models.js +10 -2
- package/dist/models.js.map +1 -1
- package/dist/query.js +2 -2
- package/dist/users-hooks.d.ts.map +1 -1
- package/dist/ws-socket.d.ts +2 -0
- package/dist/ws-socket.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/agent-streams.ts +22 -0
- package/src/connectors/connection.ts +59 -0
- package/src/connectors/index.ts +1 -0
- package/src/generated/@tanstack/react-query.gen.ts +131 -2
- package/src/generated/index.ts +20 -0
- package/src/generated/sdk.gen.ts +93 -2
- package/src/generated/types.gen.ts +1341 -15
- package/src/ws-socket.ts +62 -7
- package/dist/chunk-60fdvjxa.js.map +0 -10
- package/dist/chunk-ktqfenfd.js.map +0 -10
- /package/dist/{chunk-tm588tr7.js.map → chunk-6caavk8p.js.map} +0 -0
- /package/dist/{chunk-pn4b10k4.js.map → chunk-pzz6gtn5.js.map} +0 -0
|
@@ -2331,6 +2331,10 @@ export type GetAiAccountingOverviewData = {
|
|
|
2331
2331
|
| "reranking"
|
|
2332
2332
|
| "web-search"
|
|
2333
2333
|
bucket: "hour" | "day" | "week"
|
|
2334
|
+
/**
|
|
2335
|
+
* The IANA time zone whose days, weeks or hours the periods follow, such as America/New_York; UTC when absent
|
|
2336
|
+
*/
|
|
2337
|
+
timeZone?: string
|
|
2334
2338
|
}
|
|
2335
2339
|
url: "/api/ai/accounting/overview"
|
|
2336
2340
|
}
|
|
@@ -4780,6 +4784,12 @@ export type TranscribeAudioResponses = {
|
|
|
4780
4784
|
reason?: string
|
|
4781
4785
|
}
|
|
4782
4786
|
text: string
|
|
4787
|
+
words?: Array<{
|
|
4788
|
+
text: string
|
|
4789
|
+
startMs: number
|
|
4790
|
+
endMs: number
|
|
4791
|
+
speaker?: string
|
|
4792
|
+
}>
|
|
4783
4793
|
}
|
|
4784
4794
|
}
|
|
4785
4795
|
|
|
@@ -7001,6 +7011,7 @@ export type ListSyncsResponses = {
|
|
|
7001
7011
|
id: string
|
|
7002
7012
|
projectId: string
|
|
7003
7013
|
syncId: string
|
|
7014
|
+
connectionId?: string
|
|
7004
7015
|
datasetId: string
|
|
7005
7016
|
mode: "snapshot" | "append" | "merge"
|
|
7006
7017
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
@@ -7021,6 +7032,7 @@ export type ListSyncsResponses = {
|
|
|
7021
7032
|
| "runtime.cancelled"
|
|
7022
7033
|
| "queue.enqueue_failed"
|
|
7023
7034
|
| "sync.execution_failed"
|
|
7035
|
+
| "connector.authorization_required"
|
|
7024
7036
|
message: string
|
|
7025
7037
|
retryable: boolean
|
|
7026
7038
|
at: string
|
|
@@ -7041,6 +7053,14 @@ export type ListSyncsResponses = {
|
|
|
7041
7053
|
truncated?: true
|
|
7042
7054
|
}
|
|
7043
7055
|
} | null
|
|
7056
|
+
accounts?: {
|
|
7057
|
+
total: number
|
|
7058
|
+
running: number
|
|
7059
|
+
needsReconnecting: number
|
|
7060
|
+
failing: number
|
|
7061
|
+
synced: number
|
|
7062
|
+
lastSyncedAt?: string
|
|
7063
|
+
}
|
|
7044
7064
|
}>
|
|
7045
7065
|
}
|
|
7046
7066
|
|
|
@@ -7111,6 +7131,7 @@ export type GetSyncResponses = {
|
|
|
7111
7131
|
id: string
|
|
7112
7132
|
projectId: string
|
|
7113
7133
|
syncId: string
|
|
7134
|
+
connectionId?: string
|
|
7114
7135
|
datasetId: string
|
|
7115
7136
|
mode: "snapshot" | "append" | "merge"
|
|
7116
7137
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
@@ -7131,6 +7152,7 @@ export type GetSyncResponses = {
|
|
|
7131
7152
|
| "runtime.cancelled"
|
|
7132
7153
|
| "queue.enqueue_failed"
|
|
7133
7154
|
| "sync.execution_failed"
|
|
7155
|
+
| "connector.authorization_required"
|
|
7134
7156
|
message: string
|
|
7135
7157
|
retryable: boolean
|
|
7136
7158
|
at: string
|
|
@@ -7151,16 +7173,176 @@ export type GetSyncResponses = {
|
|
|
7151
7173
|
truncated?: true
|
|
7152
7174
|
}
|
|
7153
7175
|
} | null
|
|
7176
|
+
accounts?: {
|
|
7177
|
+
total: number
|
|
7178
|
+
running: number
|
|
7179
|
+
needsReconnecting: number
|
|
7180
|
+
failing: number
|
|
7181
|
+
synced: number
|
|
7182
|
+
lastSyncedAt?: string
|
|
7183
|
+
}
|
|
7154
7184
|
}
|
|
7155
7185
|
}
|
|
7156
7186
|
|
|
7157
7187
|
export type GetSyncResponse = GetSyncResponses[keyof GetSyncResponses]
|
|
7158
7188
|
|
|
7189
|
+
export type ListConnectorAccountsData = {
|
|
7190
|
+
body?: never
|
|
7191
|
+
path: {
|
|
7192
|
+
connectorId: string
|
|
7193
|
+
}
|
|
7194
|
+
query?: never
|
|
7195
|
+
url: "/api/connectors/{connectorId}/accounts"
|
|
7196
|
+
}
|
|
7197
|
+
|
|
7198
|
+
export type ListConnectorAccountsResponses = {
|
|
7199
|
+
/**
|
|
7200
|
+
* Response for status 200
|
|
7201
|
+
*/
|
|
7202
|
+
200: {
|
|
7203
|
+
accounts: Array<{
|
|
7204
|
+
connection: {
|
|
7205
|
+
id: string
|
|
7206
|
+
owner:
|
|
7207
|
+
| {
|
|
7208
|
+
type: "project"
|
|
7209
|
+
}
|
|
7210
|
+
| {
|
|
7211
|
+
type: "user"
|
|
7212
|
+
id: string
|
|
7213
|
+
}
|
|
7214
|
+
slot: string
|
|
7215
|
+
account: {
|
|
7216
|
+
id: string
|
|
7217
|
+
label: string
|
|
7218
|
+
}
|
|
7219
|
+
}
|
|
7220
|
+
latestRuns: Array<{
|
|
7221
|
+
id: string
|
|
7222
|
+
projectId: string
|
|
7223
|
+
syncId: string
|
|
7224
|
+
connectionId?: string
|
|
7225
|
+
datasetId: string
|
|
7226
|
+
mode: "snapshot" | "append" | "merge"
|
|
7227
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
7228
|
+
attempt: number
|
|
7229
|
+
queuedAt: string
|
|
7230
|
+
startedAt?: string
|
|
7231
|
+
finishedAt?: string
|
|
7232
|
+
rowsRead?: number
|
|
7233
|
+
output?: {
|
|
7234
|
+
datasetId: string
|
|
7235
|
+
versionId: string
|
|
7236
|
+
}
|
|
7237
|
+
expectedLatestVersionId?: string
|
|
7238
|
+
commitMessage?: string
|
|
7239
|
+
error?: {
|
|
7240
|
+
code:
|
|
7241
|
+
| "internal.unexpected"
|
|
7242
|
+
| "runtime.cancelled"
|
|
7243
|
+
| "queue.enqueue_failed"
|
|
7244
|
+
| "sync.execution_failed"
|
|
7245
|
+
| "connector.authorization_required"
|
|
7246
|
+
message: string
|
|
7247
|
+
retryable: boolean
|
|
7248
|
+
at: string
|
|
7249
|
+
/**
|
|
7250
|
+
* Any JSON-compatible value.
|
|
7251
|
+
*/
|
|
7252
|
+
details?:
|
|
7253
|
+
| string
|
|
7254
|
+
| number
|
|
7255
|
+
| boolean
|
|
7256
|
+
| Array<unknown>
|
|
7257
|
+
| {
|
|
7258
|
+
[key: string]: unknown
|
|
7259
|
+
}
|
|
7260
|
+
| null
|
|
7261
|
+
httpStatus?: number
|
|
7262
|
+
redacted?: true
|
|
7263
|
+
truncated?: true
|
|
7264
|
+
}
|
|
7265
|
+
}>
|
|
7266
|
+
}>
|
|
7267
|
+
}
|
|
7268
|
+
}
|
|
7269
|
+
|
|
7270
|
+
export type ListConnectorAccountsResponse =
|
|
7271
|
+
ListConnectorAccountsResponses[keyof ListConnectorAccountsResponses]
|
|
7272
|
+
|
|
7273
|
+
export type ListConnectorConnectionSyncRunsData = {
|
|
7274
|
+
body?: never
|
|
7275
|
+
path: {
|
|
7276
|
+
connectorId: string
|
|
7277
|
+
connectionId: string
|
|
7278
|
+
}
|
|
7279
|
+
query?: never
|
|
7280
|
+
url: "/api/connectors/{connectorId}/connections/{connectionId}/sync-runs"
|
|
7281
|
+
}
|
|
7282
|
+
|
|
7283
|
+
export type ListConnectorConnectionSyncRunsResponses = {
|
|
7284
|
+
/**
|
|
7285
|
+
* Response for status 200
|
|
7286
|
+
*/
|
|
7287
|
+
200: {
|
|
7288
|
+
runs: Array<{
|
|
7289
|
+
id: string
|
|
7290
|
+
projectId: string
|
|
7291
|
+
syncId: string
|
|
7292
|
+
connectionId?: string
|
|
7293
|
+
datasetId: string
|
|
7294
|
+
mode: "snapshot" | "append" | "merge"
|
|
7295
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
7296
|
+
attempt: number
|
|
7297
|
+
queuedAt: string
|
|
7298
|
+
startedAt?: string
|
|
7299
|
+
finishedAt?: string
|
|
7300
|
+
rowsRead?: number
|
|
7301
|
+
output?: {
|
|
7302
|
+
datasetId: string
|
|
7303
|
+
versionId: string
|
|
7304
|
+
}
|
|
7305
|
+
expectedLatestVersionId?: string
|
|
7306
|
+
commitMessage?: string
|
|
7307
|
+
error?: {
|
|
7308
|
+
code:
|
|
7309
|
+
| "internal.unexpected"
|
|
7310
|
+
| "runtime.cancelled"
|
|
7311
|
+
| "queue.enqueue_failed"
|
|
7312
|
+
| "sync.execution_failed"
|
|
7313
|
+
| "connector.authorization_required"
|
|
7314
|
+
message: string
|
|
7315
|
+
retryable: boolean
|
|
7316
|
+
at: string
|
|
7317
|
+
/**
|
|
7318
|
+
* Any JSON-compatible value.
|
|
7319
|
+
*/
|
|
7320
|
+
details?:
|
|
7321
|
+
| string
|
|
7322
|
+
| number
|
|
7323
|
+
| boolean
|
|
7324
|
+
| Array<unknown>
|
|
7325
|
+
| {
|
|
7326
|
+
[key: string]: unknown
|
|
7327
|
+
}
|
|
7328
|
+
| null
|
|
7329
|
+
httpStatus?: number
|
|
7330
|
+
redacted?: true
|
|
7331
|
+
truncated?: true
|
|
7332
|
+
}
|
|
7333
|
+
}>
|
|
7334
|
+
}
|
|
7335
|
+
}
|
|
7336
|
+
|
|
7337
|
+
export type ListConnectorConnectionSyncRunsResponse =
|
|
7338
|
+
ListConnectorConnectionSyncRunsResponses[keyof ListConnectorConnectionSyncRunsResponses]
|
|
7339
|
+
|
|
7159
7340
|
export type ListSyncRunsData = {
|
|
7160
7341
|
body?: never
|
|
7161
7342
|
path?: never
|
|
7162
7343
|
query?: {
|
|
7163
7344
|
syncId?: string
|
|
7345
|
+
connectionId?: string
|
|
7164
7346
|
datasetId?: string
|
|
7165
7347
|
status?: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
7166
7348
|
startedAfter?: string
|
|
@@ -7198,6 +7380,7 @@ export type ListSyncRunsResponses = {
|
|
|
7198
7380
|
id: string
|
|
7199
7381
|
projectId: string
|
|
7200
7382
|
syncId: string
|
|
7383
|
+
connectionId?: string
|
|
7201
7384
|
datasetId: string
|
|
7202
7385
|
mode: "snapshot" | "append" | "merge"
|
|
7203
7386
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
@@ -7218,6 +7401,7 @@ export type ListSyncRunsResponses = {
|
|
|
7218
7401
|
| "runtime.cancelled"
|
|
7219
7402
|
| "queue.enqueue_failed"
|
|
7220
7403
|
| "sync.execution_failed"
|
|
7404
|
+
| "connector.authorization_required"
|
|
7221
7405
|
message: string
|
|
7222
7406
|
retryable: boolean
|
|
7223
7407
|
at: string
|
|
@@ -7247,6 +7431,7 @@ export type ListSyncRunsResponse = ListSyncRunsResponses[keyof ListSyncRunsRespo
|
|
|
7247
7431
|
|
|
7248
7432
|
export type RequestSyncRunData = {
|
|
7249
7433
|
body: {
|
|
7434
|
+
connectionId?: string
|
|
7250
7435
|
expectedLatestVersionId?: string
|
|
7251
7436
|
commitMessage?: string
|
|
7252
7437
|
}
|
|
@@ -7285,10 +7470,13 @@ export type RequestSyncRunResponses = {
|
|
|
7285
7470
|
* Response for status 202
|
|
7286
7471
|
*/
|
|
7287
7472
|
202: {
|
|
7288
|
-
|
|
7289
|
-
|
|
7290
|
-
|
|
7291
|
-
|
|
7473
|
+
runs: Array<{
|
|
7474
|
+
runId: string
|
|
7475
|
+
jobId: string
|
|
7476
|
+
syncId: string
|
|
7477
|
+
connectionId?: string
|
|
7478
|
+
queuedAt: string
|
|
7479
|
+
}>
|
|
7292
7480
|
}
|
|
7293
7481
|
}
|
|
7294
7482
|
|
|
@@ -12790,6 +12978,42 @@ export type ListAgentThreadsResponses = {
|
|
|
12790
12978
|
messageCount: number
|
|
12791
12979
|
createdAt: string
|
|
12792
12980
|
updatedAt: string
|
|
12981
|
+
read?: {
|
|
12982
|
+
threadId: string
|
|
12983
|
+
throughSeq: number
|
|
12984
|
+
headSeq: number
|
|
12985
|
+
unread: number
|
|
12986
|
+
readAt?: string
|
|
12987
|
+
}
|
|
12988
|
+
lastRun?: {
|
|
12989
|
+
id: string
|
|
12990
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
12991
|
+
finishReason?:
|
|
12992
|
+
| "stop"
|
|
12993
|
+
| "length"
|
|
12994
|
+
| "content-filter"
|
|
12995
|
+
| "tool-calls"
|
|
12996
|
+
| "timeout"
|
|
12997
|
+
| "interrupted"
|
|
12998
|
+
| "awaiting_approval"
|
|
12999
|
+
| "awaiting_answer"
|
|
13000
|
+
| "error"
|
|
13001
|
+
| "other"
|
|
13002
|
+
| "unknown"
|
|
13003
|
+
errorCode?:
|
|
13004
|
+
| "internal.unexpected"
|
|
13005
|
+
| "runtime.cancelled"
|
|
13006
|
+
| "agent.context_limit_exceeded"
|
|
13007
|
+
| "agent.execution_failed"
|
|
13008
|
+
| "agent.step_limit_reached"
|
|
13009
|
+
| "ai.usage_limit_exceeded"
|
|
13010
|
+
| "ai.usage_limit_unavailable"
|
|
13011
|
+
completedAt?: string
|
|
13012
|
+
requestedBy?: {
|
|
13013
|
+
type: "user" | "serviceAccount"
|
|
13014
|
+
id: string
|
|
13015
|
+
}
|
|
13016
|
+
}
|
|
12793
13017
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
12794
13018
|
approvalModeSource?: "thread" | "default" | "fallback" | "run"
|
|
12795
13019
|
}>
|
|
@@ -12932,6 +13156,42 @@ export type CreateAgentThreadResponses = {
|
|
|
12932
13156
|
messageCount: number
|
|
12933
13157
|
createdAt: string
|
|
12934
13158
|
updatedAt: string
|
|
13159
|
+
read?: {
|
|
13160
|
+
threadId: string
|
|
13161
|
+
throughSeq: number
|
|
13162
|
+
headSeq: number
|
|
13163
|
+
unread: number
|
|
13164
|
+
readAt?: string
|
|
13165
|
+
}
|
|
13166
|
+
lastRun?: {
|
|
13167
|
+
id: string
|
|
13168
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
13169
|
+
finishReason?:
|
|
13170
|
+
| "stop"
|
|
13171
|
+
| "length"
|
|
13172
|
+
| "content-filter"
|
|
13173
|
+
| "tool-calls"
|
|
13174
|
+
| "timeout"
|
|
13175
|
+
| "interrupted"
|
|
13176
|
+
| "awaiting_approval"
|
|
13177
|
+
| "awaiting_answer"
|
|
13178
|
+
| "error"
|
|
13179
|
+
| "other"
|
|
13180
|
+
| "unknown"
|
|
13181
|
+
errorCode?:
|
|
13182
|
+
| "internal.unexpected"
|
|
13183
|
+
| "runtime.cancelled"
|
|
13184
|
+
| "agent.context_limit_exceeded"
|
|
13185
|
+
| "agent.execution_failed"
|
|
13186
|
+
| "agent.step_limit_reached"
|
|
13187
|
+
| "ai.usage_limit_exceeded"
|
|
13188
|
+
| "ai.usage_limit_unavailable"
|
|
13189
|
+
completedAt?: string
|
|
13190
|
+
requestedBy?: {
|
|
13191
|
+
type: "user" | "serviceAccount"
|
|
13192
|
+
id: string
|
|
13193
|
+
}
|
|
13194
|
+
}
|
|
12935
13195
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
12936
13196
|
approvalModeSource?: "thread" | "default" | "fallback" | "run"
|
|
12937
13197
|
}
|
|
@@ -13047,6 +13307,42 @@ export type GetAgentThreadResponses = {
|
|
|
13047
13307
|
messageCount: number
|
|
13048
13308
|
createdAt: string
|
|
13049
13309
|
updatedAt: string
|
|
13310
|
+
read?: {
|
|
13311
|
+
threadId: string
|
|
13312
|
+
throughSeq: number
|
|
13313
|
+
headSeq: number
|
|
13314
|
+
unread: number
|
|
13315
|
+
readAt?: string
|
|
13316
|
+
}
|
|
13317
|
+
lastRun?: {
|
|
13318
|
+
id: string
|
|
13319
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
13320
|
+
finishReason?:
|
|
13321
|
+
| "stop"
|
|
13322
|
+
| "length"
|
|
13323
|
+
| "content-filter"
|
|
13324
|
+
| "tool-calls"
|
|
13325
|
+
| "timeout"
|
|
13326
|
+
| "interrupted"
|
|
13327
|
+
| "awaiting_approval"
|
|
13328
|
+
| "awaiting_answer"
|
|
13329
|
+
| "error"
|
|
13330
|
+
| "other"
|
|
13331
|
+
| "unknown"
|
|
13332
|
+
errorCode?:
|
|
13333
|
+
| "internal.unexpected"
|
|
13334
|
+
| "runtime.cancelled"
|
|
13335
|
+
| "agent.context_limit_exceeded"
|
|
13336
|
+
| "agent.execution_failed"
|
|
13337
|
+
| "agent.step_limit_reached"
|
|
13338
|
+
| "ai.usage_limit_exceeded"
|
|
13339
|
+
| "ai.usage_limit_unavailable"
|
|
13340
|
+
completedAt?: string
|
|
13341
|
+
requestedBy?: {
|
|
13342
|
+
type: "user" | "serviceAccount"
|
|
13343
|
+
id: string
|
|
13344
|
+
}
|
|
13345
|
+
}
|
|
13050
13346
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
13051
13347
|
approvalModeSource?: "thread" | "default" | "fallback" | "run"
|
|
13052
13348
|
}
|
|
@@ -13187,6 +13483,42 @@ export type AddAgentThreadParticipantsResponses = {
|
|
|
13187
13483
|
messageCount: number
|
|
13188
13484
|
createdAt: string
|
|
13189
13485
|
updatedAt: string
|
|
13486
|
+
read?: {
|
|
13487
|
+
threadId: string
|
|
13488
|
+
throughSeq: number
|
|
13489
|
+
headSeq: number
|
|
13490
|
+
unread: number
|
|
13491
|
+
readAt?: string
|
|
13492
|
+
}
|
|
13493
|
+
lastRun?: {
|
|
13494
|
+
id: string
|
|
13495
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
13496
|
+
finishReason?:
|
|
13497
|
+
| "stop"
|
|
13498
|
+
| "length"
|
|
13499
|
+
| "content-filter"
|
|
13500
|
+
| "tool-calls"
|
|
13501
|
+
| "timeout"
|
|
13502
|
+
| "interrupted"
|
|
13503
|
+
| "awaiting_approval"
|
|
13504
|
+
| "awaiting_answer"
|
|
13505
|
+
| "error"
|
|
13506
|
+
| "other"
|
|
13507
|
+
| "unknown"
|
|
13508
|
+
errorCode?:
|
|
13509
|
+
| "internal.unexpected"
|
|
13510
|
+
| "runtime.cancelled"
|
|
13511
|
+
| "agent.context_limit_exceeded"
|
|
13512
|
+
| "agent.execution_failed"
|
|
13513
|
+
| "agent.step_limit_reached"
|
|
13514
|
+
| "ai.usage_limit_exceeded"
|
|
13515
|
+
| "ai.usage_limit_unavailable"
|
|
13516
|
+
completedAt?: string
|
|
13517
|
+
requestedBy?: {
|
|
13518
|
+
type: "user" | "serviceAccount"
|
|
13519
|
+
id: string
|
|
13520
|
+
}
|
|
13521
|
+
}
|
|
13190
13522
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
13191
13523
|
approvalModeSource?: "thread" | "default" | "fallback" | "run"
|
|
13192
13524
|
}
|
|
@@ -13367,6 +13699,42 @@ export type ForkAgentThreadResponses = {
|
|
|
13367
13699
|
messageCount: number
|
|
13368
13700
|
createdAt: string
|
|
13369
13701
|
updatedAt: string
|
|
13702
|
+
read?: {
|
|
13703
|
+
threadId: string
|
|
13704
|
+
throughSeq: number
|
|
13705
|
+
headSeq: number
|
|
13706
|
+
unread: number
|
|
13707
|
+
readAt?: string
|
|
13708
|
+
}
|
|
13709
|
+
lastRun?: {
|
|
13710
|
+
id: string
|
|
13711
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
13712
|
+
finishReason?:
|
|
13713
|
+
| "stop"
|
|
13714
|
+
| "length"
|
|
13715
|
+
| "content-filter"
|
|
13716
|
+
| "tool-calls"
|
|
13717
|
+
| "timeout"
|
|
13718
|
+
| "interrupted"
|
|
13719
|
+
| "awaiting_approval"
|
|
13720
|
+
| "awaiting_answer"
|
|
13721
|
+
| "error"
|
|
13722
|
+
| "other"
|
|
13723
|
+
| "unknown"
|
|
13724
|
+
errorCode?:
|
|
13725
|
+
| "internal.unexpected"
|
|
13726
|
+
| "runtime.cancelled"
|
|
13727
|
+
| "agent.context_limit_exceeded"
|
|
13728
|
+
| "agent.execution_failed"
|
|
13729
|
+
| "agent.step_limit_reached"
|
|
13730
|
+
| "ai.usage_limit_exceeded"
|
|
13731
|
+
| "ai.usage_limit_unavailable"
|
|
13732
|
+
completedAt?: string
|
|
13733
|
+
requestedBy?: {
|
|
13734
|
+
type: "user" | "serviceAccount"
|
|
13735
|
+
id: string
|
|
13736
|
+
}
|
|
13737
|
+
}
|
|
13370
13738
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
13371
13739
|
approvalModeSource?: "thread" | "default" | "fallback" | "run"
|
|
13372
13740
|
}
|
|
@@ -13493,15 +13861,51 @@ export type RecreateAgentThreadSandboxResponses = {
|
|
|
13493
13861
|
messageCount: number
|
|
13494
13862
|
createdAt: string
|
|
13495
13863
|
updatedAt: string
|
|
13496
|
-
|
|
13497
|
-
|
|
13498
|
-
|
|
13499
|
-
|
|
13500
|
-
|
|
13501
|
-
|
|
13502
|
-
|
|
13503
|
-
|
|
13504
|
-
|
|
13864
|
+
read?: {
|
|
13865
|
+
threadId: string
|
|
13866
|
+
throughSeq: number
|
|
13867
|
+
headSeq: number
|
|
13868
|
+
unread: number
|
|
13869
|
+
readAt?: string
|
|
13870
|
+
}
|
|
13871
|
+
lastRun?: {
|
|
13872
|
+
id: string
|
|
13873
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
13874
|
+
finishReason?:
|
|
13875
|
+
| "stop"
|
|
13876
|
+
| "length"
|
|
13877
|
+
| "content-filter"
|
|
13878
|
+
| "tool-calls"
|
|
13879
|
+
| "timeout"
|
|
13880
|
+
| "interrupted"
|
|
13881
|
+
| "awaiting_approval"
|
|
13882
|
+
| "awaiting_answer"
|
|
13883
|
+
| "error"
|
|
13884
|
+
| "other"
|
|
13885
|
+
| "unknown"
|
|
13886
|
+
errorCode?:
|
|
13887
|
+
| "internal.unexpected"
|
|
13888
|
+
| "runtime.cancelled"
|
|
13889
|
+
| "agent.context_limit_exceeded"
|
|
13890
|
+
| "agent.execution_failed"
|
|
13891
|
+
| "agent.step_limit_reached"
|
|
13892
|
+
| "ai.usage_limit_exceeded"
|
|
13893
|
+
| "ai.usage_limit_unavailable"
|
|
13894
|
+
completedAt?: string
|
|
13895
|
+
requestedBy?: {
|
|
13896
|
+
type: "user" | "serviceAccount"
|
|
13897
|
+
id: string
|
|
13898
|
+
}
|
|
13899
|
+
}
|
|
13900
|
+
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
13901
|
+
approvalModeSource?: "thread" | "default" | "fallback" | "run"
|
|
13902
|
+
}
|
|
13903
|
+
}
|
|
13904
|
+
|
|
13905
|
+
export type RecreateAgentThreadSandboxResponse =
|
|
13906
|
+
RecreateAgentThreadSandboxResponses[keyof RecreateAgentThreadSandboxResponses]
|
|
13907
|
+
|
|
13908
|
+
export type RestoreAgentThreadSandboxData = {
|
|
13505
13909
|
body: {
|
|
13506
13910
|
expectedSandboxName: string
|
|
13507
13911
|
}
|
|
@@ -13619,6 +14023,42 @@ export type RestoreAgentThreadSandboxResponses = {
|
|
|
13619
14023
|
messageCount: number
|
|
13620
14024
|
createdAt: string
|
|
13621
14025
|
updatedAt: string
|
|
14026
|
+
read?: {
|
|
14027
|
+
threadId: string
|
|
14028
|
+
throughSeq: number
|
|
14029
|
+
headSeq: number
|
|
14030
|
+
unread: number
|
|
14031
|
+
readAt?: string
|
|
14032
|
+
}
|
|
14033
|
+
lastRun?: {
|
|
14034
|
+
id: string
|
|
14035
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
14036
|
+
finishReason?:
|
|
14037
|
+
| "stop"
|
|
14038
|
+
| "length"
|
|
14039
|
+
| "content-filter"
|
|
14040
|
+
| "tool-calls"
|
|
14041
|
+
| "timeout"
|
|
14042
|
+
| "interrupted"
|
|
14043
|
+
| "awaiting_approval"
|
|
14044
|
+
| "awaiting_answer"
|
|
14045
|
+
| "error"
|
|
14046
|
+
| "other"
|
|
14047
|
+
| "unknown"
|
|
14048
|
+
errorCode?:
|
|
14049
|
+
| "internal.unexpected"
|
|
14050
|
+
| "runtime.cancelled"
|
|
14051
|
+
| "agent.context_limit_exceeded"
|
|
14052
|
+
| "agent.execution_failed"
|
|
14053
|
+
| "agent.step_limit_reached"
|
|
14054
|
+
| "ai.usage_limit_exceeded"
|
|
14055
|
+
| "ai.usage_limit_unavailable"
|
|
14056
|
+
completedAt?: string
|
|
14057
|
+
requestedBy?: {
|
|
14058
|
+
type: "user" | "serviceAccount"
|
|
14059
|
+
id: string
|
|
14060
|
+
}
|
|
14061
|
+
}
|
|
13622
14062
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
13623
14063
|
approvalModeSource?: "thread" | "default" | "fallback" | "run"
|
|
13624
14064
|
}
|
|
@@ -14239,6 +14679,10 @@ export type PostAgentThreadMessageResponses = {
|
|
|
14239
14679
|
}
|
|
14240
14680
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
14241
14681
|
runsOn?: "computer"
|
|
14682
|
+
computer?: {
|
|
14683
|
+
id: string
|
|
14684
|
+
folder: string
|
|
14685
|
+
}
|
|
14242
14686
|
modelId?: string
|
|
14243
14687
|
finishReason?:
|
|
14244
14688
|
| "stop"
|
|
@@ -14708,6 +15152,7 @@ export type PostAgentThreadMessageResponses = {
|
|
|
14708
15152
|
timeZone?: string
|
|
14709
15153
|
locale?: string
|
|
14710
15154
|
immediate?: boolean
|
|
15155
|
+
replacesMessageId?: string
|
|
14711
15156
|
createdAt: string
|
|
14712
15157
|
updatedAt: string
|
|
14713
15158
|
}
|
|
@@ -15234,6 +15679,7 @@ export type ListAgentThreadInboxResponses = {
|
|
|
15234
15679
|
timeZone?: string
|
|
15235
15680
|
locale?: string
|
|
15236
15681
|
immediate?: boolean
|
|
15682
|
+
replacesMessageId?: string
|
|
15237
15683
|
createdAt: string
|
|
15238
15684
|
updatedAt: string
|
|
15239
15685
|
}>
|
|
@@ -15750,14 +16196,668 @@ export type UpdateAgentThreadInboxItemResponses = {
|
|
|
15750
16196
|
timeZone?: string
|
|
15751
16197
|
locale?: string
|
|
15752
16198
|
immediate?: boolean
|
|
16199
|
+
replacesMessageId?: string
|
|
16200
|
+
createdAt: string
|
|
16201
|
+
updatedAt: string
|
|
16202
|
+
}
|
|
16203
|
+
}
|
|
16204
|
+
}
|
|
16205
|
+
|
|
16206
|
+
export type UpdateAgentThreadInboxItemResponse =
|
|
16207
|
+
UpdateAgentThreadInboxItemResponses[keyof UpdateAgentThreadInboxItemResponses]
|
|
16208
|
+
|
|
16209
|
+
export type EditAgentThreadMessageData = {
|
|
16210
|
+
body: {
|
|
16211
|
+
text?: string
|
|
16212
|
+
model?: {
|
|
16213
|
+
provider: string
|
|
16214
|
+
modelId: string
|
|
16215
|
+
}
|
|
16216
|
+
reasoning?:
|
|
16217
|
+
| "provider-default"
|
|
16218
|
+
| "none"
|
|
16219
|
+
| "minimal"
|
|
16220
|
+
| "low"
|
|
16221
|
+
| "medium"
|
|
16222
|
+
| "high"
|
|
16223
|
+
| "xhigh"
|
|
16224
|
+
| "max"
|
|
16225
|
+
| {
|
|
16226
|
+
budgetTokens: number
|
|
16227
|
+
}
|
|
16228
|
+
timeZone?: string
|
|
16229
|
+
locale?: string
|
|
16230
|
+
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
16231
|
+
attachments?: Array<{
|
|
16232
|
+
blobId: string
|
|
16233
|
+
digest: string
|
|
16234
|
+
sizeBytes: number
|
|
16235
|
+
fileName?: string
|
|
16236
|
+
mediaType?: string
|
|
16237
|
+
logicalPath?: string
|
|
16238
|
+
}>
|
|
16239
|
+
context?: Array<{
|
|
16240
|
+
context:
|
|
16241
|
+
| {
|
|
16242
|
+
kind: "object"
|
|
16243
|
+
ref: {
|
|
16244
|
+
objectTypeId: string
|
|
16245
|
+
primaryId: string
|
|
16246
|
+
}
|
|
16247
|
+
/**
|
|
16248
|
+
* Shown in the chat instead of the object's title. Never sent to the model.
|
|
16249
|
+
*/
|
|
16250
|
+
label?: string
|
|
16251
|
+
}
|
|
16252
|
+
| {
|
|
16253
|
+
kind: "app-state"
|
|
16254
|
+
id: string
|
|
16255
|
+
label: string
|
|
16256
|
+
description: string
|
|
16257
|
+
/**
|
|
16258
|
+
* Any JSON-compatible value.
|
|
16259
|
+
*/
|
|
16260
|
+
value:
|
|
16261
|
+
| string
|
|
16262
|
+
| number
|
|
16263
|
+
| boolean
|
|
16264
|
+
| Array<unknown>
|
|
16265
|
+
| {
|
|
16266
|
+
[key: string]: unknown
|
|
16267
|
+
}
|
|
16268
|
+
| null
|
|
16269
|
+
}
|
|
16270
|
+
origin: "ambient" | "explicit"
|
|
16271
|
+
}>
|
|
16272
|
+
nextMessageId?: string
|
|
16273
|
+
}
|
|
16274
|
+
path: {
|
|
16275
|
+
threadId: string
|
|
16276
|
+
messageId: string
|
|
16277
|
+
}
|
|
16278
|
+
query?: never
|
|
16279
|
+
url: "/api/agent-threads/{threadId}/messages/{messageId}/edit"
|
|
16280
|
+
}
|
|
16281
|
+
|
|
16282
|
+
export type EditAgentThreadMessageErrors = {
|
|
16283
|
+
/**
|
|
16284
|
+
* Response for status 400
|
|
16285
|
+
*/
|
|
16286
|
+
400: {
|
|
16287
|
+
error: string
|
|
16288
|
+
code?: string
|
|
16289
|
+
}
|
|
16290
|
+
/**
|
|
16291
|
+
* Response for status 403
|
|
16292
|
+
*/
|
|
16293
|
+
403: {
|
|
16294
|
+
error: string
|
|
16295
|
+
code?: string
|
|
16296
|
+
}
|
|
16297
|
+
/**
|
|
16298
|
+
* Response for status 404
|
|
16299
|
+
*/
|
|
16300
|
+
404: {
|
|
16301
|
+
error: string
|
|
16302
|
+
}
|
|
16303
|
+
/**
|
|
16304
|
+
* Response for status 409
|
|
16305
|
+
*/
|
|
16306
|
+
409: {
|
|
16307
|
+
error: string
|
|
16308
|
+
code?: string
|
|
16309
|
+
}
|
|
16310
|
+
/**
|
|
16311
|
+
* Response for status 429
|
|
16312
|
+
*/
|
|
16313
|
+
429: {
|
|
16314
|
+
error: string
|
|
16315
|
+
/**
|
|
16316
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
16317
|
+
*/
|
|
16318
|
+
code: "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable"
|
|
16319
|
+
/**
|
|
16320
|
+
* Any JSON-compatible value.
|
|
16321
|
+
*/
|
|
16322
|
+
details?:
|
|
16323
|
+
| string
|
|
16324
|
+
| number
|
|
16325
|
+
| boolean
|
|
16326
|
+
| Array<unknown>
|
|
16327
|
+
| {
|
|
16328
|
+
[key: string]: unknown
|
|
16329
|
+
}
|
|
16330
|
+
| null
|
|
16331
|
+
}
|
|
16332
|
+
/**
|
|
16333
|
+
* Response for status 501
|
|
16334
|
+
*/
|
|
16335
|
+
501: {
|
|
16336
|
+
error: string
|
|
16337
|
+
}
|
|
16338
|
+
}
|
|
16339
|
+
|
|
16340
|
+
export type EditAgentThreadMessageError =
|
|
16341
|
+
EditAgentThreadMessageErrors[keyof EditAgentThreadMessageErrors]
|
|
16342
|
+
|
|
16343
|
+
export type EditAgentThreadMessageResponses = {
|
|
16344
|
+
/**
|
|
16345
|
+
* Response for status 202
|
|
16346
|
+
*/
|
|
16347
|
+
202: {
|
|
16348
|
+
run?: {
|
|
16349
|
+
id: string
|
|
16350
|
+
projectId: string
|
|
16351
|
+
kind: "conversation" | "subagent"
|
|
16352
|
+
threadId: string
|
|
16353
|
+
triggerMessageId: string
|
|
16354
|
+
parentRunId?: string
|
|
16355
|
+
requestedBy?: {
|
|
16356
|
+
type: "user" | "serviceAccount"
|
|
16357
|
+
id: string
|
|
16358
|
+
}
|
|
16359
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
16360
|
+
model?: {
|
|
16361
|
+
provider: string
|
|
16362
|
+
modelId: string
|
|
16363
|
+
}
|
|
16364
|
+
tier?: "light" | "standard" | "heavy"
|
|
16365
|
+
reasoning?:
|
|
16366
|
+
| "provider-default"
|
|
16367
|
+
| "none"
|
|
16368
|
+
| "minimal"
|
|
16369
|
+
| "low"
|
|
16370
|
+
| "medium"
|
|
16371
|
+
| "high"
|
|
16372
|
+
| "xhigh"
|
|
16373
|
+
| "max"
|
|
16374
|
+
| {
|
|
16375
|
+
budgetTokens: number
|
|
16376
|
+
}
|
|
16377
|
+
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
16378
|
+
runsOn?: "computer"
|
|
16379
|
+
computer?: {
|
|
16380
|
+
id: string
|
|
16381
|
+
folder: string
|
|
16382
|
+
}
|
|
16383
|
+
modelId?: string
|
|
16384
|
+
finishReason?:
|
|
16385
|
+
| "stop"
|
|
16386
|
+
| "length"
|
|
16387
|
+
| "content-filter"
|
|
16388
|
+
| "tool-calls"
|
|
16389
|
+
| "timeout"
|
|
16390
|
+
| "interrupted"
|
|
16391
|
+
| "awaiting_approval"
|
|
16392
|
+
| "awaiting_answer"
|
|
16393
|
+
| "error"
|
|
16394
|
+
| "other"
|
|
16395
|
+
| "unknown"
|
|
16396
|
+
usage?: {
|
|
16397
|
+
inputTokens?: number
|
|
16398
|
+
outputTokens?: number
|
|
16399
|
+
totalTokens?: number
|
|
16400
|
+
uncachedInputTokens?: number
|
|
16401
|
+
cacheReadInputTokens?: number
|
|
16402
|
+
cacheWriteInputTokens?: number
|
|
16403
|
+
textOutputTokens?: number
|
|
16404
|
+
reasoningOutputTokens?: number
|
|
16405
|
+
/**
|
|
16406
|
+
* Audio content duration in milliseconds; not billed duration.
|
|
16407
|
+
*/
|
|
16408
|
+
audioDurationMs?: number
|
|
16409
|
+
/**
|
|
16410
|
+
* Output tokens that encode generated images, within outputTokens.
|
|
16411
|
+
*/
|
|
16412
|
+
imageOutputTokens?: number
|
|
16413
|
+
/**
|
|
16414
|
+
* Output tokens that encode generated audio, within outputTokens.
|
|
16415
|
+
*/
|
|
16416
|
+
audioOutputTokens?: number
|
|
16417
|
+
/**
|
|
16418
|
+
* Images the call returned.
|
|
16419
|
+
*/
|
|
16420
|
+
outputImages?: number
|
|
16421
|
+
/**
|
|
16422
|
+
* Input characters, counted by the provider's own billing rule.
|
|
16423
|
+
*/
|
|
16424
|
+
inputCharacters?: number
|
|
16425
|
+
reportingStatus: "complete" | "partial" | "unavailable"
|
|
16426
|
+
}
|
|
16427
|
+
cost?: {
|
|
16428
|
+
amounts: Array<{
|
|
16429
|
+
currency: string
|
|
16430
|
+
amountNanos: string
|
|
16431
|
+
}>
|
|
16432
|
+
ratedCallCount: number
|
|
16433
|
+
unpriceableCallCount: number
|
|
16434
|
+
unvaluedCallCount: number
|
|
16435
|
+
}
|
|
16436
|
+
diagnostics?: Array<{
|
|
16437
|
+
code: "step_limit_reached" | "output_limit_reached"
|
|
16438
|
+
severity: "warning" | "error"
|
|
16439
|
+
scope: "run"
|
|
16440
|
+
message: string
|
|
16441
|
+
}>
|
|
16442
|
+
error?: {
|
|
16443
|
+
code:
|
|
16444
|
+
| "internal.unexpected"
|
|
16445
|
+
| "runtime.cancelled"
|
|
16446
|
+
| "agent.context_limit_exceeded"
|
|
16447
|
+
| "agent.execution_failed"
|
|
16448
|
+
| "agent.step_limit_reached"
|
|
16449
|
+
| "ai.usage_limit_exceeded"
|
|
16450
|
+
| "ai.usage_limit_unavailable"
|
|
16451
|
+
message: string
|
|
16452
|
+
retryable: boolean
|
|
16453
|
+
at: string
|
|
16454
|
+
/**
|
|
16455
|
+
* Any JSON-compatible value.
|
|
16456
|
+
*/
|
|
16457
|
+
details?:
|
|
16458
|
+
| string
|
|
16459
|
+
| number
|
|
16460
|
+
| boolean
|
|
16461
|
+
| Array<unknown>
|
|
16462
|
+
| {
|
|
16463
|
+
[key: string]: unknown
|
|
16464
|
+
}
|
|
16465
|
+
| null
|
|
16466
|
+
httpStatus?: number
|
|
16467
|
+
redacted?: true
|
|
16468
|
+
truncated?: true
|
|
16469
|
+
}
|
|
16470
|
+
attempt: number
|
|
16471
|
+
streamId: string
|
|
16472
|
+
createdAt: string
|
|
16473
|
+
startedAt?: string
|
|
16474
|
+
completedAt?: string
|
|
16475
|
+
}
|
|
16476
|
+
item?: {
|
|
16477
|
+
id: string
|
|
16478
|
+
projectId: string
|
|
16479
|
+
threadId: string
|
|
16480
|
+
messageId: string
|
|
16481
|
+
seq: number
|
|
16482
|
+
authorPrincipal: {
|
|
16483
|
+
type: "user" | "serviceAccount" | "system"
|
|
16484
|
+
id: string
|
|
16485
|
+
}
|
|
16486
|
+
mode: "steer" | "queue"
|
|
16487
|
+
parts: Array<
|
|
16488
|
+
| {
|
|
16489
|
+
type: "text"
|
|
16490
|
+
text: string
|
|
16491
|
+
/**
|
|
16492
|
+
* Any JSON-compatible value.
|
|
16493
|
+
*/
|
|
16494
|
+
providerMetadata?:
|
|
16495
|
+
| string
|
|
16496
|
+
| number
|
|
16497
|
+
| boolean
|
|
16498
|
+
| Array<unknown>
|
|
16499
|
+
| {
|
|
16500
|
+
[key: string]: unknown
|
|
16501
|
+
}
|
|
16502
|
+
| null
|
|
16503
|
+
}
|
|
16504
|
+
| {
|
|
16505
|
+
type: "continuation"
|
|
16506
|
+
}
|
|
16507
|
+
| {
|
|
16508
|
+
type: "approval-outcome"
|
|
16509
|
+
approvalId: string
|
|
16510
|
+
status: "approved" | "denied" | "cancelled" | "superseded" | "expired"
|
|
16511
|
+
call:
|
|
16512
|
+
| {
|
|
16513
|
+
kind: "action"
|
|
16514
|
+
actionId: string
|
|
16515
|
+
subject:
|
|
16516
|
+
| {
|
|
16517
|
+
kind: "none"
|
|
16518
|
+
}
|
|
16519
|
+
| {
|
|
16520
|
+
kind: "object"
|
|
16521
|
+
objectTypeId: string
|
|
16522
|
+
primaryId: string
|
|
16523
|
+
}
|
|
16524
|
+
}
|
|
16525
|
+
| {
|
|
16526
|
+
kind: "workflow"
|
|
16527
|
+
workflowId: string
|
|
16528
|
+
}
|
|
16529
|
+
outcome?:
|
|
16530
|
+
| {
|
|
16531
|
+
kind: "action-run"
|
|
16532
|
+
runId: string
|
|
16533
|
+
status: "succeeded" | "failed"
|
|
16534
|
+
error?: {
|
|
16535
|
+
code:
|
|
16536
|
+
| "internal.unexpected"
|
|
16537
|
+
| "runtime.cancelled"
|
|
16538
|
+
| "action.phase_failed"
|
|
16539
|
+
| "action.read_conflict"
|
|
16540
|
+
| "action.rejected"
|
|
16541
|
+
| "action.timeout"
|
|
16542
|
+
| "object.unique_violation"
|
|
16543
|
+
message: string
|
|
16544
|
+
retryable: boolean
|
|
16545
|
+
at: string
|
|
16546
|
+
details: {
|
|
16547
|
+
actionId: string
|
|
16548
|
+
runId: string
|
|
16549
|
+
phase: "validation" | "writeback" | "edits" | "commit" | "effects"
|
|
16550
|
+
}
|
|
16551
|
+
httpStatus?: number
|
|
16552
|
+
redacted?: true
|
|
16553
|
+
truncated?: true
|
|
16554
|
+
}
|
|
16555
|
+
}
|
|
16556
|
+
| {
|
|
16557
|
+
kind: "workflow-run"
|
|
16558
|
+
runId: string
|
|
16559
|
+
queuedAt: string
|
|
16560
|
+
}
|
|
16561
|
+
| {
|
|
16562
|
+
kind: "error"
|
|
16563
|
+
error: {
|
|
16564
|
+
code:
|
|
16565
|
+
| "action.phase_failed"
|
|
16566
|
+
| "action.read_conflict"
|
|
16567
|
+
| "action.rejected"
|
|
16568
|
+
| "action.run_in_progress"
|
|
16569
|
+
| "action.timeout"
|
|
16570
|
+
| "agent.approval_authority_lost"
|
|
16571
|
+
| "agent.context_limit_exceeded"
|
|
16572
|
+
| "agent.execution_failed"
|
|
16573
|
+
| "agent.step_limit_reached"
|
|
16574
|
+
| "ai.usage_limit_exceeded"
|
|
16575
|
+
| "ai.usage_limit_unavailable"
|
|
16576
|
+
| "connector.adapter_invalid"
|
|
16577
|
+
| "connector.authorization_invalid"
|
|
16578
|
+
| "connector.authorization_required"
|
|
16579
|
+
| "connector.configuration_invalid"
|
|
16580
|
+
| "connector.credentials_unavailable"
|
|
16581
|
+
| "connector.not_found"
|
|
16582
|
+
| "connector.operation_conflict"
|
|
16583
|
+
| "connector.operation_in_progress"
|
|
16584
|
+
| "connector.provider_failed"
|
|
16585
|
+
| "connector.provider_unavailable"
|
|
16586
|
+
| "connector.replacement_required"
|
|
16587
|
+
| "connector.revocation_pending"
|
|
16588
|
+
| "dataset.change_refused"
|
|
16589
|
+
| "dataset.not_found"
|
|
16590
|
+
| "dataset.version_incompatible"
|
|
16591
|
+
| "dataset.version_not_found"
|
|
16592
|
+
| "dataset.version_read_inconsistent"
|
|
16593
|
+
| "event.delivery_failed"
|
|
16594
|
+
| "internal.unexpected"
|
|
16595
|
+
| "queue.enqueue_failed"
|
|
16596
|
+
| "object.not_found"
|
|
16597
|
+
| "object.unique_violation"
|
|
16598
|
+
| "pipeline.step_failed"
|
|
16599
|
+
| "projection.definition_invalid"
|
|
16600
|
+
| "projection.execution_failed"
|
|
16601
|
+
| "projection.not_found"
|
|
16602
|
+
| "projection.run_already_terminal"
|
|
16603
|
+
| "projection.run_identity_mismatch"
|
|
16604
|
+
| "runtime.cancelled"
|
|
16605
|
+
| "runtime.stopping"
|
|
16606
|
+
| "vector.model_unavailable"
|
|
16607
|
+
| "vector.response_invalid"
|
|
16608
|
+
| "vector.outcome_unknown"
|
|
16609
|
+
| "storage.unavailable"
|
|
16610
|
+
| "sync.execution_failed"
|
|
16611
|
+
| "webhook.delivery_failed"
|
|
16612
|
+
| "webhook.delivery_rejected"
|
|
16613
|
+
| "workflow.node_failed"
|
|
16614
|
+
message: string
|
|
16615
|
+
retryable: boolean
|
|
16616
|
+
at: string
|
|
16617
|
+
/**
|
|
16618
|
+
* Any JSON-compatible value.
|
|
16619
|
+
*/
|
|
16620
|
+
details?:
|
|
16621
|
+
| string
|
|
16622
|
+
| number
|
|
16623
|
+
| boolean
|
|
16624
|
+
| Array<unknown>
|
|
16625
|
+
| {
|
|
16626
|
+
[key: string]: unknown
|
|
16627
|
+
}
|
|
16628
|
+
| null
|
|
16629
|
+
httpStatus?: number
|
|
16630
|
+
redacted?: true
|
|
16631
|
+
truncated?: true
|
|
16632
|
+
}
|
|
16633
|
+
}
|
|
16634
|
+
caller?: {
|
|
16635
|
+
runId: string
|
|
16636
|
+
key: string
|
|
16637
|
+
continues?: true
|
|
16638
|
+
}
|
|
16639
|
+
}
|
|
16640
|
+
| {
|
|
16641
|
+
type: "reasoning"
|
|
16642
|
+
text: string
|
|
16643
|
+
/**
|
|
16644
|
+
* Any JSON-compatible value.
|
|
16645
|
+
*/
|
|
16646
|
+
providerMetadata?:
|
|
16647
|
+
| string
|
|
16648
|
+
| number
|
|
16649
|
+
| boolean
|
|
16650
|
+
| Array<unknown>
|
|
16651
|
+
| {
|
|
16652
|
+
[key: string]: unknown
|
|
16653
|
+
}
|
|
16654
|
+
| null
|
|
16655
|
+
}
|
|
16656
|
+
| {
|
|
16657
|
+
type: "step-start"
|
|
16658
|
+
}
|
|
16659
|
+
| {
|
|
16660
|
+
type: "file"
|
|
16661
|
+
fileRef: {
|
|
16662
|
+
blobId: string
|
|
16663
|
+
digest: string
|
|
16664
|
+
sizeBytes: number
|
|
16665
|
+
fileName?: string
|
|
16666
|
+
mediaType?: string
|
|
16667
|
+
logicalPath?: string
|
|
16668
|
+
}
|
|
16669
|
+
/**
|
|
16670
|
+
* Any JSON-compatible value.
|
|
16671
|
+
*/
|
|
16672
|
+
providerMetadata?:
|
|
16673
|
+
| string
|
|
16674
|
+
| number
|
|
16675
|
+
| boolean
|
|
16676
|
+
| Array<unknown>
|
|
16677
|
+
| {
|
|
16678
|
+
[key: string]: unknown
|
|
16679
|
+
}
|
|
16680
|
+
| null
|
|
16681
|
+
}
|
|
16682
|
+
| {
|
|
16683
|
+
type: "provider-state"
|
|
16684
|
+
providerId: string
|
|
16685
|
+
/**
|
|
16686
|
+
* Any JSON-compatible value.
|
|
16687
|
+
*/
|
|
16688
|
+
data:
|
|
16689
|
+
| string
|
|
16690
|
+
| number
|
|
16691
|
+
| boolean
|
|
16692
|
+
| Array<unknown>
|
|
16693
|
+
| {
|
|
16694
|
+
[key: string]: unknown
|
|
16695
|
+
}
|
|
16696
|
+
| null
|
|
16697
|
+
}
|
|
16698
|
+
| {
|
|
16699
|
+
context:
|
|
16700
|
+
| {
|
|
16701
|
+
kind: "object"
|
|
16702
|
+
ref: {
|
|
16703
|
+
objectTypeId: string
|
|
16704
|
+
primaryId: string
|
|
16705
|
+
}
|
|
16706
|
+
/**
|
|
16707
|
+
* Shown in the chat instead of the object's title. Never sent to the model.
|
|
16708
|
+
*/
|
|
16709
|
+
label?: string
|
|
16710
|
+
}
|
|
16711
|
+
| {
|
|
16712
|
+
kind: "app-state"
|
|
16713
|
+
id: string
|
|
16714
|
+
label: string
|
|
16715
|
+
description: string
|
|
16716
|
+
/**
|
|
16717
|
+
* Any JSON-compatible value.
|
|
16718
|
+
*/
|
|
16719
|
+
value:
|
|
16720
|
+
| string
|
|
16721
|
+
| number
|
|
16722
|
+
| boolean
|
|
16723
|
+
| Array<unknown>
|
|
16724
|
+
| {
|
|
16725
|
+
[key: string]: unknown
|
|
16726
|
+
}
|
|
16727
|
+
| null
|
|
16728
|
+
}
|
|
16729
|
+
origin: "ambient" | "explicit"
|
|
16730
|
+
type: "context"
|
|
16731
|
+
}
|
|
16732
|
+
| {
|
|
16733
|
+
type: "tool-call"
|
|
16734
|
+
toolCallId: string
|
|
16735
|
+
toolName: string
|
|
16736
|
+
dynamic?: boolean
|
|
16737
|
+
providerExecuted?: boolean
|
|
16738
|
+
/**
|
|
16739
|
+
* Any JSON-compatible value.
|
|
16740
|
+
*/
|
|
16741
|
+
input:
|
|
16742
|
+
| string
|
|
16743
|
+
| number
|
|
16744
|
+
| boolean
|
|
16745
|
+
| Array<unknown>
|
|
16746
|
+
| {
|
|
16747
|
+
[key: string]: unknown
|
|
16748
|
+
}
|
|
16749
|
+
| null
|
|
16750
|
+
/**
|
|
16751
|
+
* Any JSON-compatible value.
|
|
16752
|
+
*/
|
|
16753
|
+
providerMetadata?:
|
|
16754
|
+
| string
|
|
16755
|
+
| number
|
|
16756
|
+
| boolean
|
|
16757
|
+
| Array<unknown>
|
|
16758
|
+
| {
|
|
16759
|
+
[key: string]: unknown
|
|
16760
|
+
}
|
|
16761
|
+
| null
|
|
16762
|
+
state: "output-available"
|
|
16763
|
+
/**
|
|
16764
|
+
* Any JSON-compatible value.
|
|
16765
|
+
*/
|
|
16766
|
+
output:
|
|
16767
|
+
| string
|
|
16768
|
+
| number
|
|
16769
|
+
| boolean
|
|
16770
|
+
| Array<unknown>
|
|
16771
|
+
| {
|
|
16772
|
+
[key: string]: unknown
|
|
16773
|
+
}
|
|
16774
|
+
| null
|
|
16775
|
+
outputFile?: {
|
|
16776
|
+
fileRef: {
|
|
16777
|
+
blobId: string
|
|
16778
|
+
digest: string
|
|
16779
|
+
sizeBytes: number
|
|
16780
|
+
fileName?: string
|
|
16781
|
+
mediaType?: string
|
|
16782
|
+
logicalPath?: string
|
|
16783
|
+
}
|
|
16784
|
+
path: string
|
|
16785
|
+
}
|
|
16786
|
+
}
|
|
16787
|
+
| {
|
|
16788
|
+
type: "tool-call"
|
|
16789
|
+
toolCallId: string
|
|
16790
|
+
toolName: string
|
|
16791
|
+
dynamic?: boolean
|
|
16792
|
+
providerExecuted?: boolean
|
|
16793
|
+
/**
|
|
16794
|
+
* Any JSON-compatible value.
|
|
16795
|
+
*/
|
|
16796
|
+
input:
|
|
16797
|
+
| string
|
|
16798
|
+
| number
|
|
16799
|
+
| boolean
|
|
16800
|
+
| Array<unknown>
|
|
16801
|
+
| {
|
|
16802
|
+
[key: string]: unknown
|
|
16803
|
+
}
|
|
16804
|
+
| null
|
|
16805
|
+
/**
|
|
16806
|
+
* Any JSON-compatible value.
|
|
16807
|
+
*/
|
|
16808
|
+
providerMetadata?:
|
|
16809
|
+
| string
|
|
16810
|
+
| number
|
|
16811
|
+
| boolean
|
|
16812
|
+
| Array<unknown>
|
|
16813
|
+
| {
|
|
16814
|
+
[key: string]: unknown
|
|
16815
|
+
}
|
|
16816
|
+
| null
|
|
16817
|
+
state: "output-error"
|
|
16818
|
+
errorText: string
|
|
16819
|
+
}
|
|
16820
|
+
| {
|
|
16821
|
+
type: "mail"
|
|
16822
|
+
id: string
|
|
16823
|
+
from: "parent"
|
|
16824
|
+
kind: "message" | "answer"
|
|
16825
|
+
inReplyTo?: string
|
|
16826
|
+
text: string
|
|
16827
|
+
afterAnswer?: true
|
|
16828
|
+
}
|
|
16829
|
+
>
|
|
16830
|
+
spec?: {
|
|
16831
|
+
model?: {
|
|
16832
|
+
provider: string
|
|
16833
|
+
modelId: string
|
|
16834
|
+
}
|
|
16835
|
+
reasoning?:
|
|
16836
|
+
| "provider-default"
|
|
16837
|
+
| "none"
|
|
16838
|
+
| "minimal"
|
|
16839
|
+
| "low"
|
|
16840
|
+
| "medium"
|
|
16841
|
+
| "high"
|
|
16842
|
+
| "xhigh"
|
|
16843
|
+
| "max"
|
|
16844
|
+
| {
|
|
16845
|
+
budgetTokens: number
|
|
16846
|
+
}
|
|
16847
|
+
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
16848
|
+
}
|
|
16849
|
+
timeZone?: string
|
|
16850
|
+
locale?: string
|
|
16851
|
+
immediate?: boolean
|
|
16852
|
+
replacesMessageId?: string
|
|
15753
16853
|
createdAt: string
|
|
15754
16854
|
updatedAt: string
|
|
15755
16855
|
}
|
|
15756
16856
|
}
|
|
15757
16857
|
}
|
|
15758
16858
|
|
|
15759
|
-
export type
|
|
15760
|
-
|
|
16859
|
+
export type EditAgentThreadMessageResponse =
|
|
16860
|
+
EditAgentThreadMessageResponses[keyof EditAgentThreadMessageResponses]
|
|
15761
16861
|
|
|
15762
16862
|
export type CancelAgentRunData = {
|
|
15763
16863
|
body: {
|
|
@@ -15844,6 +16944,10 @@ export type CancelAgentRunResponses = {
|
|
|
15844
16944
|
}
|
|
15845
16945
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
15846
16946
|
runsOn?: "computer"
|
|
16947
|
+
computer?: {
|
|
16948
|
+
id: string
|
|
16949
|
+
folder: string
|
|
16950
|
+
}
|
|
15847
16951
|
modelId?: string
|
|
15848
16952
|
finishReason?:
|
|
15849
16953
|
| "stop"
|
|
@@ -16048,6 +17152,10 @@ export type RetryAgentRunResponses = {
|
|
|
16048
17152
|
}
|
|
16049
17153
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
16050
17154
|
runsOn?: "computer"
|
|
17155
|
+
computer?: {
|
|
17156
|
+
id: string
|
|
17157
|
+
folder: string
|
|
17158
|
+
}
|
|
16051
17159
|
modelId?: string
|
|
16052
17160
|
finishReason?:
|
|
16053
17161
|
| "stop"
|
|
@@ -16312,6 +17420,10 @@ export type ListAgentThreadRunsResponses = {
|
|
|
16312
17420
|
}
|
|
16313
17421
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
16314
17422
|
runsOn?: "computer"
|
|
17423
|
+
computer?: {
|
|
17424
|
+
id: string
|
|
17425
|
+
folder: string
|
|
17426
|
+
}
|
|
16315
17427
|
modelId?: string
|
|
16316
17428
|
finishReason?:
|
|
16317
17429
|
| "stop"
|
|
@@ -16480,6 +17592,10 @@ export type GetAgentRunResponses = {
|
|
|
16480
17592
|
}
|
|
16481
17593
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
16482
17594
|
runsOn?: "computer"
|
|
17595
|
+
computer?: {
|
|
17596
|
+
id: string
|
|
17597
|
+
folder: string
|
|
17598
|
+
}
|
|
16483
17599
|
modelId?: string
|
|
16484
17600
|
finishReason?:
|
|
16485
17601
|
| "stop"
|
|
@@ -16660,6 +17776,10 @@ export type CancelAgentRunByIdResponses = {
|
|
|
16660
17776
|
}
|
|
16661
17777
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
16662
17778
|
runsOn?: "computer"
|
|
17779
|
+
computer?: {
|
|
17780
|
+
id: string
|
|
17781
|
+
folder: string
|
|
17782
|
+
}
|
|
16663
17783
|
modelId?: string
|
|
16664
17784
|
finishReason?:
|
|
16665
17785
|
| "stop"
|
|
@@ -16759,6 +17879,60 @@ export type CancelAgentRunByIdResponses = {
|
|
|
16759
17879
|
export type CancelAgentRunByIdResponse =
|
|
16760
17880
|
CancelAgentRunByIdResponses[keyof CancelAgentRunByIdResponses]
|
|
16761
17881
|
|
|
17882
|
+
export type MarkAgentThreadReadData = {
|
|
17883
|
+
body: {
|
|
17884
|
+
throughMessageId?: string
|
|
17885
|
+
}
|
|
17886
|
+
path: {
|
|
17887
|
+
threadId: string
|
|
17888
|
+
}
|
|
17889
|
+
query?: never
|
|
17890
|
+
url: "/api/agent-threads/{threadId}/read"
|
|
17891
|
+
}
|
|
17892
|
+
|
|
17893
|
+
export type MarkAgentThreadReadErrors = {
|
|
17894
|
+
/**
|
|
17895
|
+
* Response for status 400
|
|
17896
|
+
*/
|
|
17897
|
+
400: {
|
|
17898
|
+
error: string
|
|
17899
|
+
code?: string
|
|
17900
|
+
}
|
|
17901
|
+
/**
|
|
17902
|
+
* Response for status 404
|
|
17903
|
+
*/
|
|
17904
|
+
404: {
|
|
17905
|
+
error: string
|
|
17906
|
+
code?: string
|
|
17907
|
+
}
|
|
17908
|
+
/**
|
|
17909
|
+
* Response for status 501
|
|
17910
|
+
*/
|
|
17911
|
+
501: {
|
|
17912
|
+
error: string
|
|
17913
|
+
}
|
|
17914
|
+
}
|
|
17915
|
+
|
|
17916
|
+
export type MarkAgentThreadReadError = MarkAgentThreadReadErrors[keyof MarkAgentThreadReadErrors]
|
|
17917
|
+
|
|
17918
|
+
export type MarkAgentThreadReadResponses = {
|
|
17919
|
+
/**
|
|
17920
|
+
* Response for status 200
|
|
17921
|
+
*/
|
|
17922
|
+
200: {
|
|
17923
|
+
read: {
|
|
17924
|
+
threadId: string
|
|
17925
|
+
throughSeq: number
|
|
17926
|
+
headSeq: number
|
|
17927
|
+
unread: number
|
|
17928
|
+
readAt?: string
|
|
17929
|
+
}
|
|
17930
|
+
}
|
|
17931
|
+
}
|
|
17932
|
+
|
|
17933
|
+
export type MarkAgentThreadReadResponse =
|
|
17934
|
+
MarkAgentThreadReadResponses[keyof MarkAgentThreadReadResponses]
|
|
17935
|
+
|
|
16762
17936
|
export type ListAgentThreadChildrenData = {
|
|
16763
17937
|
body?: never
|
|
16764
17938
|
path: {
|
|
@@ -17067,6 +18241,42 @@ export type MoveAgentThreadToCloudResponses = {
|
|
|
17067
18241
|
messageCount: number
|
|
17068
18242
|
createdAt: string
|
|
17069
18243
|
updatedAt: string
|
|
18244
|
+
read?: {
|
|
18245
|
+
threadId: string
|
|
18246
|
+
throughSeq: number
|
|
18247
|
+
headSeq: number
|
|
18248
|
+
unread: number
|
|
18249
|
+
readAt?: string
|
|
18250
|
+
}
|
|
18251
|
+
lastRun?: {
|
|
18252
|
+
id: string
|
|
18253
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
18254
|
+
finishReason?:
|
|
18255
|
+
| "stop"
|
|
18256
|
+
| "length"
|
|
18257
|
+
| "content-filter"
|
|
18258
|
+
| "tool-calls"
|
|
18259
|
+
| "timeout"
|
|
18260
|
+
| "interrupted"
|
|
18261
|
+
| "awaiting_approval"
|
|
18262
|
+
| "awaiting_answer"
|
|
18263
|
+
| "error"
|
|
18264
|
+
| "other"
|
|
18265
|
+
| "unknown"
|
|
18266
|
+
errorCode?:
|
|
18267
|
+
| "internal.unexpected"
|
|
18268
|
+
| "runtime.cancelled"
|
|
18269
|
+
| "agent.context_limit_exceeded"
|
|
18270
|
+
| "agent.execution_failed"
|
|
18271
|
+
| "agent.step_limit_reached"
|
|
18272
|
+
| "ai.usage_limit_exceeded"
|
|
18273
|
+
| "ai.usage_limit_unavailable"
|
|
18274
|
+
completedAt?: string
|
|
18275
|
+
requestedBy?: {
|
|
18276
|
+
type: "user" | "serviceAccount"
|
|
18277
|
+
id: string
|
|
18278
|
+
}
|
|
18279
|
+
}
|
|
17070
18280
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
17071
18281
|
approvalModeSource?: "thread" | "default" | "fallback" | "run"
|
|
17072
18282
|
}
|
|
@@ -17205,6 +18415,42 @@ export type MoveAgentThreadToComputerResponses = {
|
|
|
17205
18415
|
messageCount: number
|
|
17206
18416
|
createdAt: string
|
|
17207
18417
|
updatedAt: string
|
|
18418
|
+
read?: {
|
|
18419
|
+
threadId: string
|
|
18420
|
+
throughSeq: number
|
|
18421
|
+
headSeq: number
|
|
18422
|
+
unread: number
|
|
18423
|
+
readAt?: string
|
|
18424
|
+
}
|
|
18425
|
+
lastRun?: {
|
|
18426
|
+
id: string
|
|
18427
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
18428
|
+
finishReason?:
|
|
18429
|
+
| "stop"
|
|
18430
|
+
| "length"
|
|
18431
|
+
| "content-filter"
|
|
18432
|
+
| "tool-calls"
|
|
18433
|
+
| "timeout"
|
|
18434
|
+
| "interrupted"
|
|
18435
|
+
| "awaiting_approval"
|
|
18436
|
+
| "awaiting_answer"
|
|
18437
|
+
| "error"
|
|
18438
|
+
| "other"
|
|
18439
|
+
| "unknown"
|
|
18440
|
+
errorCode?:
|
|
18441
|
+
| "internal.unexpected"
|
|
18442
|
+
| "runtime.cancelled"
|
|
18443
|
+
| "agent.context_limit_exceeded"
|
|
18444
|
+
| "agent.execution_failed"
|
|
18445
|
+
| "agent.step_limit_reached"
|
|
18446
|
+
| "ai.usage_limit_exceeded"
|
|
18447
|
+
| "ai.usage_limit_unavailable"
|
|
18448
|
+
completedAt?: string
|
|
18449
|
+
requestedBy?: {
|
|
18450
|
+
type: "user" | "serviceAccount"
|
|
18451
|
+
id: string
|
|
18452
|
+
}
|
|
18453
|
+
}
|
|
17208
18454
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
17209
18455
|
approvalModeSource?: "thread" | "default" | "fallback" | "run"
|
|
17210
18456
|
}
|
|
@@ -17579,6 +18825,42 @@ export type SetAgentThreadApprovalModeResponses = {
|
|
|
17579
18825
|
messageCount: number
|
|
17580
18826
|
createdAt: string
|
|
17581
18827
|
updatedAt: string
|
|
18828
|
+
read?: {
|
|
18829
|
+
threadId: string
|
|
18830
|
+
throughSeq: number
|
|
18831
|
+
headSeq: number
|
|
18832
|
+
unread: number
|
|
18833
|
+
readAt?: string
|
|
18834
|
+
}
|
|
18835
|
+
lastRun?: {
|
|
18836
|
+
id: string
|
|
18837
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
18838
|
+
finishReason?:
|
|
18839
|
+
| "stop"
|
|
18840
|
+
| "length"
|
|
18841
|
+
| "content-filter"
|
|
18842
|
+
| "tool-calls"
|
|
18843
|
+
| "timeout"
|
|
18844
|
+
| "interrupted"
|
|
18845
|
+
| "awaiting_approval"
|
|
18846
|
+
| "awaiting_answer"
|
|
18847
|
+
| "error"
|
|
18848
|
+
| "other"
|
|
18849
|
+
| "unknown"
|
|
18850
|
+
errorCode?:
|
|
18851
|
+
| "internal.unexpected"
|
|
18852
|
+
| "runtime.cancelled"
|
|
18853
|
+
| "agent.context_limit_exceeded"
|
|
18854
|
+
| "agent.execution_failed"
|
|
18855
|
+
| "agent.step_limit_reached"
|
|
18856
|
+
| "ai.usage_limit_exceeded"
|
|
18857
|
+
| "ai.usage_limit_unavailable"
|
|
18858
|
+
completedAt?: string
|
|
18859
|
+
requestedBy?: {
|
|
18860
|
+
type: "user" | "serviceAccount"
|
|
18861
|
+
id: string
|
|
18862
|
+
}
|
|
18863
|
+
}
|
|
17582
18864
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
17583
18865
|
approvalModeSource?: "thread" | "default" | "fallback" | "run"
|
|
17584
18866
|
}
|
|
@@ -18069,6 +19351,10 @@ export type DecideAgentApprovalResponses = {
|
|
|
18069
19351
|
}
|
|
18070
19352
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
18071
19353
|
runsOn?: "computer"
|
|
19354
|
+
computer?: {
|
|
19355
|
+
id: string
|
|
19356
|
+
folder: string
|
|
19357
|
+
}
|
|
18072
19358
|
modelId?: string
|
|
18073
19359
|
finishReason?:
|
|
18074
19360
|
| "stop"
|
|
@@ -18501,6 +19787,42 @@ export type GetObservedAgentThreadResponses = {
|
|
|
18501
19787
|
messageCount: number
|
|
18502
19788
|
createdAt: string
|
|
18503
19789
|
updatedAt: string
|
|
19790
|
+
read?: {
|
|
19791
|
+
threadId: string
|
|
19792
|
+
throughSeq: number
|
|
19793
|
+
headSeq: number
|
|
19794
|
+
unread: number
|
|
19795
|
+
readAt?: string
|
|
19796
|
+
}
|
|
19797
|
+
lastRun?: {
|
|
19798
|
+
id: string
|
|
19799
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
19800
|
+
finishReason?:
|
|
19801
|
+
| "stop"
|
|
19802
|
+
| "length"
|
|
19803
|
+
| "content-filter"
|
|
19804
|
+
| "tool-calls"
|
|
19805
|
+
| "timeout"
|
|
19806
|
+
| "interrupted"
|
|
19807
|
+
| "awaiting_approval"
|
|
19808
|
+
| "awaiting_answer"
|
|
19809
|
+
| "error"
|
|
19810
|
+
| "other"
|
|
19811
|
+
| "unknown"
|
|
19812
|
+
errorCode?:
|
|
19813
|
+
| "internal.unexpected"
|
|
19814
|
+
| "runtime.cancelled"
|
|
19815
|
+
| "agent.context_limit_exceeded"
|
|
19816
|
+
| "agent.execution_failed"
|
|
19817
|
+
| "agent.step_limit_reached"
|
|
19818
|
+
| "ai.usage_limit_exceeded"
|
|
19819
|
+
| "ai.usage_limit_unavailable"
|
|
19820
|
+
completedAt?: string
|
|
19821
|
+
requestedBy?: {
|
|
19822
|
+
type: "user" | "serviceAccount"
|
|
19823
|
+
id: string
|
|
19824
|
+
}
|
|
19825
|
+
}
|
|
18504
19826
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
18505
19827
|
approvalModeSource?: "thread" | "default" | "fallback" | "run"
|
|
18506
19828
|
}
|
|
@@ -19089,6 +20411,10 @@ export type ListObservedAgentThreadRunsResponses = {
|
|
|
19089
20411
|
}
|
|
19090
20412
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
19091
20413
|
runsOn?: "computer"
|
|
20414
|
+
computer?: {
|
|
20415
|
+
id: string
|
|
20416
|
+
folder: string
|
|
20417
|
+
}
|
|
19092
20418
|
modelId?: string
|
|
19093
20419
|
finishReason?:
|
|
19094
20420
|
| "stop"
|