@sixb/client 0.2.5 → 0.2.7
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 +1068 -153
- 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 +1011 -51
- 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 +1451 -37
- 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
|
|
|
@@ -4853,6 +4863,10 @@ export type ListConnectorsResponses = {
|
|
|
4853
4863
|
*/
|
|
4854
4864
|
200: Array<{
|
|
4855
4865
|
id: string
|
|
4866
|
+
/**
|
|
4867
|
+
* Folder below the definition's directory, such as `raw/erp`; absent at its top.
|
|
4868
|
+
*/
|
|
4869
|
+
folder?: string
|
|
4856
4870
|
type: string
|
|
4857
4871
|
connection: {
|
|
4858
4872
|
authentication: "oauth2"
|
|
@@ -4897,6 +4911,10 @@ export type GetConnectorResponses = {
|
|
|
4897
4911
|
*/
|
|
4898
4912
|
200: {
|
|
4899
4913
|
id: string
|
|
4914
|
+
/**
|
|
4915
|
+
* Folder below the definition's directory, such as `raw/erp`; absent at its top.
|
|
4916
|
+
*/
|
|
4917
|
+
folder?: string
|
|
4900
4918
|
type: string
|
|
4901
4919
|
connection: {
|
|
4902
4920
|
authentication: "oauth2"
|
|
@@ -6428,6 +6446,10 @@ export type ListDatasetsResponses = {
|
|
|
6428
6446
|
}>
|
|
6429
6447
|
}
|
|
6430
6448
|
kind: "dataset"
|
|
6449
|
+
/**
|
|
6450
|
+
* Folder below the definition's directory, such as `raw/erp`; absent at its top.
|
|
6451
|
+
*/
|
|
6452
|
+
folder?: string
|
|
6431
6453
|
materialized: boolean
|
|
6432
6454
|
latestVersion: {
|
|
6433
6455
|
datasetId: string
|
|
@@ -6502,6 +6524,10 @@ export type GetDatasetResponses = {
|
|
|
6502
6524
|
}>
|
|
6503
6525
|
}
|
|
6504
6526
|
kind: "dataset"
|
|
6527
|
+
/**
|
|
6528
|
+
* Folder below the definition's directory, such as `raw/erp`; absent at its top.
|
|
6529
|
+
*/
|
|
6530
|
+
folder?: string
|
|
6505
6531
|
materialized: boolean
|
|
6506
6532
|
latestVersion: {
|
|
6507
6533
|
datasetId: string
|
|
@@ -6962,6 +6988,10 @@ export type ListSyncsResponses = {
|
|
|
6962
6988
|
*/
|
|
6963
6989
|
200: Array<{
|
|
6964
6990
|
id: string
|
|
6991
|
+
/**
|
|
6992
|
+
* Folder below the definition's directory, such as `raw/erp`; absent at its top.
|
|
6993
|
+
*/
|
|
6994
|
+
folder?: string
|
|
6965
6995
|
mode: "snapshot" | "append" | "merge"
|
|
6966
6996
|
connector: {
|
|
6967
6997
|
id: string
|
|
@@ -7001,6 +7031,7 @@ export type ListSyncsResponses = {
|
|
|
7001
7031
|
id: string
|
|
7002
7032
|
projectId: string
|
|
7003
7033
|
syncId: string
|
|
7034
|
+
connectionId?: string
|
|
7004
7035
|
datasetId: string
|
|
7005
7036
|
mode: "snapshot" | "append" | "merge"
|
|
7006
7037
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
@@ -7021,6 +7052,7 @@ export type ListSyncsResponses = {
|
|
|
7021
7052
|
| "runtime.cancelled"
|
|
7022
7053
|
| "queue.enqueue_failed"
|
|
7023
7054
|
| "sync.execution_failed"
|
|
7055
|
+
| "connector.authorization_required"
|
|
7024
7056
|
message: string
|
|
7025
7057
|
retryable: boolean
|
|
7026
7058
|
at: string
|
|
@@ -7041,6 +7073,14 @@ export type ListSyncsResponses = {
|
|
|
7041
7073
|
truncated?: true
|
|
7042
7074
|
}
|
|
7043
7075
|
} | null
|
|
7076
|
+
accounts?: {
|
|
7077
|
+
total: number
|
|
7078
|
+
running: number
|
|
7079
|
+
needsReconnecting: number
|
|
7080
|
+
failing: number
|
|
7081
|
+
synced: number
|
|
7082
|
+
lastSyncedAt?: string
|
|
7083
|
+
}
|
|
7044
7084
|
}>
|
|
7045
7085
|
}
|
|
7046
7086
|
|
|
@@ -7072,6 +7112,10 @@ export type GetSyncResponses = {
|
|
|
7072
7112
|
*/
|
|
7073
7113
|
200: {
|
|
7074
7114
|
id: string
|
|
7115
|
+
/**
|
|
7116
|
+
* Folder below the definition's directory, such as `raw/erp`; absent at its top.
|
|
7117
|
+
*/
|
|
7118
|
+
folder?: string
|
|
7075
7119
|
mode: "snapshot" | "append" | "merge"
|
|
7076
7120
|
connector: {
|
|
7077
7121
|
id: string
|
|
@@ -7111,6 +7155,7 @@ export type GetSyncResponses = {
|
|
|
7111
7155
|
id: string
|
|
7112
7156
|
projectId: string
|
|
7113
7157
|
syncId: string
|
|
7158
|
+
connectionId?: string
|
|
7114
7159
|
datasetId: string
|
|
7115
7160
|
mode: "snapshot" | "append" | "merge"
|
|
7116
7161
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
@@ -7131,6 +7176,7 @@ export type GetSyncResponses = {
|
|
|
7131
7176
|
| "runtime.cancelled"
|
|
7132
7177
|
| "queue.enqueue_failed"
|
|
7133
7178
|
| "sync.execution_failed"
|
|
7179
|
+
| "connector.authorization_required"
|
|
7134
7180
|
message: string
|
|
7135
7181
|
retryable: boolean
|
|
7136
7182
|
at: string
|
|
@@ -7151,16 +7197,176 @@ export type GetSyncResponses = {
|
|
|
7151
7197
|
truncated?: true
|
|
7152
7198
|
}
|
|
7153
7199
|
} | null
|
|
7200
|
+
accounts?: {
|
|
7201
|
+
total: number
|
|
7202
|
+
running: number
|
|
7203
|
+
needsReconnecting: number
|
|
7204
|
+
failing: number
|
|
7205
|
+
synced: number
|
|
7206
|
+
lastSyncedAt?: string
|
|
7207
|
+
}
|
|
7154
7208
|
}
|
|
7155
7209
|
}
|
|
7156
7210
|
|
|
7157
7211
|
export type GetSyncResponse = GetSyncResponses[keyof GetSyncResponses]
|
|
7158
7212
|
|
|
7213
|
+
export type ListConnectorAccountsData = {
|
|
7214
|
+
body?: never
|
|
7215
|
+
path: {
|
|
7216
|
+
connectorId: string
|
|
7217
|
+
}
|
|
7218
|
+
query?: never
|
|
7219
|
+
url: "/api/connectors/{connectorId}/accounts"
|
|
7220
|
+
}
|
|
7221
|
+
|
|
7222
|
+
export type ListConnectorAccountsResponses = {
|
|
7223
|
+
/**
|
|
7224
|
+
* Response for status 200
|
|
7225
|
+
*/
|
|
7226
|
+
200: {
|
|
7227
|
+
accounts: Array<{
|
|
7228
|
+
connection: {
|
|
7229
|
+
id: string
|
|
7230
|
+
owner:
|
|
7231
|
+
| {
|
|
7232
|
+
type: "project"
|
|
7233
|
+
}
|
|
7234
|
+
| {
|
|
7235
|
+
type: "user"
|
|
7236
|
+
id: string
|
|
7237
|
+
}
|
|
7238
|
+
slot: string
|
|
7239
|
+
account: {
|
|
7240
|
+
id: string
|
|
7241
|
+
label: string
|
|
7242
|
+
}
|
|
7243
|
+
}
|
|
7244
|
+
latestRuns: Array<{
|
|
7245
|
+
id: string
|
|
7246
|
+
projectId: string
|
|
7247
|
+
syncId: string
|
|
7248
|
+
connectionId?: string
|
|
7249
|
+
datasetId: string
|
|
7250
|
+
mode: "snapshot" | "append" | "merge"
|
|
7251
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
7252
|
+
attempt: number
|
|
7253
|
+
queuedAt: string
|
|
7254
|
+
startedAt?: string
|
|
7255
|
+
finishedAt?: string
|
|
7256
|
+
rowsRead?: number
|
|
7257
|
+
output?: {
|
|
7258
|
+
datasetId: string
|
|
7259
|
+
versionId: string
|
|
7260
|
+
}
|
|
7261
|
+
expectedLatestVersionId?: string
|
|
7262
|
+
commitMessage?: string
|
|
7263
|
+
error?: {
|
|
7264
|
+
code:
|
|
7265
|
+
| "internal.unexpected"
|
|
7266
|
+
| "runtime.cancelled"
|
|
7267
|
+
| "queue.enqueue_failed"
|
|
7268
|
+
| "sync.execution_failed"
|
|
7269
|
+
| "connector.authorization_required"
|
|
7270
|
+
message: string
|
|
7271
|
+
retryable: boolean
|
|
7272
|
+
at: string
|
|
7273
|
+
/**
|
|
7274
|
+
* Any JSON-compatible value.
|
|
7275
|
+
*/
|
|
7276
|
+
details?:
|
|
7277
|
+
| string
|
|
7278
|
+
| number
|
|
7279
|
+
| boolean
|
|
7280
|
+
| Array<unknown>
|
|
7281
|
+
| {
|
|
7282
|
+
[key: string]: unknown
|
|
7283
|
+
}
|
|
7284
|
+
| null
|
|
7285
|
+
httpStatus?: number
|
|
7286
|
+
redacted?: true
|
|
7287
|
+
truncated?: true
|
|
7288
|
+
}
|
|
7289
|
+
}>
|
|
7290
|
+
}>
|
|
7291
|
+
}
|
|
7292
|
+
}
|
|
7293
|
+
|
|
7294
|
+
export type ListConnectorAccountsResponse =
|
|
7295
|
+
ListConnectorAccountsResponses[keyof ListConnectorAccountsResponses]
|
|
7296
|
+
|
|
7297
|
+
export type ListConnectorConnectionSyncRunsData = {
|
|
7298
|
+
body?: never
|
|
7299
|
+
path: {
|
|
7300
|
+
connectorId: string
|
|
7301
|
+
connectionId: string
|
|
7302
|
+
}
|
|
7303
|
+
query?: never
|
|
7304
|
+
url: "/api/connectors/{connectorId}/connections/{connectionId}/sync-runs"
|
|
7305
|
+
}
|
|
7306
|
+
|
|
7307
|
+
export type ListConnectorConnectionSyncRunsResponses = {
|
|
7308
|
+
/**
|
|
7309
|
+
* Response for status 200
|
|
7310
|
+
*/
|
|
7311
|
+
200: {
|
|
7312
|
+
runs: Array<{
|
|
7313
|
+
id: string
|
|
7314
|
+
projectId: string
|
|
7315
|
+
syncId: string
|
|
7316
|
+
connectionId?: string
|
|
7317
|
+
datasetId: string
|
|
7318
|
+
mode: "snapshot" | "append" | "merge"
|
|
7319
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
7320
|
+
attempt: number
|
|
7321
|
+
queuedAt: string
|
|
7322
|
+
startedAt?: string
|
|
7323
|
+
finishedAt?: string
|
|
7324
|
+
rowsRead?: number
|
|
7325
|
+
output?: {
|
|
7326
|
+
datasetId: string
|
|
7327
|
+
versionId: string
|
|
7328
|
+
}
|
|
7329
|
+
expectedLatestVersionId?: string
|
|
7330
|
+
commitMessage?: string
|
|
7331
|
+
error?: {
|
|
7332
|
+
code:
|
|
7333
|
+
| "internal.unexpected"
|
|
7334
|
+
| "runtime.cancelled"
|
|
7335
|
+
| "queue.enqueue_failed"
|
|
7336
|
+
| "sync.execution_failed"
|
|
7337
|
+
| "connector.authorization_required"
|
|
7338
|
+
message: string
|
|
7339
|
+
retryable: boolean
|
|
7340
|
+
at: string
|
|
7341
|
+
/**
|
|
7342
|
+
* Any JSON-compatible value.
|
|
7343
|
+
*/
|
|
7344
|
+
details?:
|
|
7345
|
+
| string
|
|
7346
|
+
| number
|
|
7347
|
+
| boolean
|
|
7348
|
+
| Array<unknown>
|
|
7349
|
+
| {
|
|
7350
|
+
[key: string]: unknown
|
|
7351
|
+
}
|
|
7352
|
+
| null
|
|
7353
|
+
httpStatus?: number
|
|
7354
|
+
redacted?: true
|
|
7355
|
+
truncated?: true
|
|
7356
|
+
}
|
|
7357
|
+
}>
|
|
7358
|
+
}
|
|
7359
|
+
}
|
|
7360
|
+
|
|
7361
|
+
export type ListConnectorConnectionSyncRunsResponse =
|
|
7362
|
+
ListConnectorConnectionSyncRunsResponses[keyof ListConnectorConnectionSyncRunsResponses]
|
|
7363
|
+
|
|
7159
7364
|
export type ListSyncRunsData = {
|
|
7160
7365
|
body?: never
|
|
7161
7366
|
path?: never
|
|
7162
7367
|
query?: {
|
|
7163
7368
|
syncId?: string
|
|
7369
|
+
connectionId?: string
|
|
7164
7370
|
datasetId?: string
|
|
7165
7371
|
status?: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
7166
7372
|
startedAfter?: string
|
|
@@ -7198,6 +7404,7 @@ export type ListSyncRunsResponses = {
|
|
|
7198
7404
|
id: string
|
|
7199
7405
|
projectId: string
|
|
7200
7406
|
syncId: string
|
|
7407
|
+
connectionId?: string
|
|
7201
7408
|
datasetId: string
|
|
7202
7409
|
mode: "snapshot" | "append" | "merge"
|
|
7203
7410
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
@@ -7218,6 +7425,7 @@ export type ListSyncRunsResponses = {
|
|
|
7218
7425
|
| "runtime.cancelled"
|
|
7219
7426
|
| "queue.enqueue_failed"
|
|
7220
7427
|
| "sync.execution_failed"
|
|
7428
|
+
| "connector.authorization_required"
|
|
7221
7429
|
message: string
|
|
7222
7430
|
retryable: boolean
|
|
7223
7431
|
at: string
|
|
@@ -7247,6 +7455,7 @@ export type ListSyncRunsResponse = ListSyncRunsResponses[keyof ListSyncRunsRespo
|
|
|
7247
7455
|
|
|
7248
7456
|
export type RequestSyncRunData = {
|
|
7249
7457
|
body: {
|
|
7458
|
+
connectionId?: string
|
|
7250
7459
|
expectedLatestVersionId?: string
|
|
7251
7460
|
commitMessage?: string
|
|
7252
7461
|
}
|
|
@@ -7285,10 +7494,13 @@ export type RequestSyncRunResponses = {
|
|
|
7285
7494
|
* Response for status 202
|
|
7286
7495
|
*/
|
|
7287
7496
|
202: {
|
|
7288
|
-
|
|
7289
|
-
|
|
7290
|
-
|
|
7291
|
-
|
|
7497
|
+
runs: Array<{
|
|
7498
|
+
runId: string
|
|
7499
|
+
jobId: string
|
|
7500
|
+
syncId: string
|
|
7501
|
+
connectionId?: string
|
|
7502
|
+
queuedAt: string
|
|
7503
|
+
}>
|
|
7292
7504
|
}
|
|
7293
7505
|
}
|
|
7294
7506
|
|
|
@@ -7307,6 +7519,10 @@ export type ListPipelinesResponses = {
|
|
|
7307
7519
|
*/
|
|
7308
7520
|
200: Array<{
|
|
7309
7521
|
id: string
|
|
7522
|
+
/**
|
|
7523
|
+
* Folder below the definition's directory, such as `raw/erp`; absent at its top.
|
|
7524
|
+
*/
|
|
7525
|
+
folder?: string
|
|
7310
7526
|
triggers: Array<{
|
|
7311
7527
|
type: "schedule"
|
|
7312
7528
|
scheduleId: string
|
|
@@ -7448,6 +7664,10 @@ export type GetPipelineResponses = {
|
|
|
7448
7664
|
*/
|
|
7449
7665
|
200: {
|
|
7450
7666
|
id: string
|
|
7667
|
+
/**
|
|
7668
|
+
* Folder below the definition's directory, such as `raw/erp`; absent at its top.
|
|
7669
|
+
*/
|
|
7670
|
+
folder?: string
|
|
7451
7671
|
triggers: Array<{
|
|
7452
7672
|
type: "schedule"
|
|
7453
7673
|
scheduleId: string
|
|
@@ -7833,6 +8053,10 @@ export type ListWorkflowsResponses = {
|
|
|
7833
8053
|
*/
|
|
7834
8054
|
200: Array<{
|
|
7835
8055
|
id: string
|
|
8056
|
+
/**
|
|
8057
|
+
* Folder below the definition's directory, such as `raw/erp`; absent at its top.
|
|
8058
|
+
*/
|
|
8059
|
+
folder?: string
|
|
7836
8060
|
input: {
|
|
7837
8061
|
[key: string]:
|
|
7838
8062
|
| string
|
|
@@ -8019,6 +8243,10 @@ export type GetWorkflowResponses = {
|
|
|
8019
8243
|
*/
|
|
8020
8244
|
200: {
|
|
8021
8245
|
id: string
|
|
8246
|
+
/**
|
|
8247
|
+
* Folder below the definition's directory, such as `raw/erp`; absent at its top.
|
|
8248
|
+
*/
|
|
8249
|
+
folder?: string
|
|
8022
8250
|
input: {
|
|
8023
8251
|
[key: string]:
|
|
8024
8252
|
| string
|
|
@@ -9876,6 +10104,10 @@ export type ListRulesResponses = {
|
|
|
9876
10104
|
200: Array<{
|
|
9877
10105
|
kind: "rule"
|
|
9878
10106
|
id: string
|
|
10107
|
+
/**
|
|
10108
|
+
* Folder below the definition's directory, such as `raw/erp`; absent at its top.
|
|
10109
|
+
*/
|
|
10110
|
+
folder?: string
|
|
9879
10111
|
subject: {
|
|
9880
10112
|
kind: "object"
|
|
9881
10113
|
objectTypeId: string
|
|
@@ -10018,6 +10250,10 @@ export type GetRuleResponses = {
|
|
|
10018
10250
|
200: {
|
|
10019
10251
|
kind: "rule"
|
|
10020
10252
|
id: string
|
|
10253
|
+
/**
|
|
10254
|
+
* Folder below the definition's directory, such as `raw/erp`; absent at its top.
|
|
10255
|
+
*/
|
|
10256
|
+
folder?: string
|
|
10021
10257
|
subject: {
|
|
10022
10258
|
kind: "object"
|
|
10023
10259
|
objectTypeId: string
|
|
@@ -10674,6 +10910,10 @@ export type ListObjectTypesResponses = {
|
|
|
10674
10910
|
*/
|
|
10675
10911
|
200: Array<{
|
|
10676
10912
|
id: string
|
|
10913
|
+
/**
|
|
10914
|
+
* Folder below the definition's directory, such as `raw/erp`; absent at its top.
|
|
10915
|
+
*/
|
|
10916
|
+
folder?: string
|
|
10677
10917
|
name: string
|
|
10678
10918
|
description?: string
|
|
10679
10919
|
extends?: string
|
|
@@ -10801,6 +11041,10 @@ export type GetObjectTypeResponses = {
|
|
|
10801
11041
|
*/
|
|
10802
11042
|
200: {
|
|
10803
11043
|
id: string
|
|
11044
|
+
/**
|
|
11045
|
+
* Folder below the definition's directory, such as `raw/erp`; absent at its top.
|
|
11046
|
+
*/
|
|
11047
|
+
folder?: string
|
|
10804
11048
|
name: string
|
|
10805
11049
|
description?: string
|
|
10806
11050
|
extends?: string
|
|
@@ -11636,6 +11880,10 @@ export type ListActionsResponses = {
|
|
|
11636
11880
|
*/
|
|
11637
11881
|
200: Array<{
|
|
11638
11882
|
id: string
|
|
11883
|
+
/**
|
|
11884
|
+
* Folder below the definition's directory, such as `raw/erp`; absent at its top.
|
|
11885
|
+
*/
|
|
11886
|
+
folder?: string
|
|
11639
11887
|
name: string
|
|
11640
11888
|
description?: string
|
|
11641
11889
|
objectTypeId?: string
|
|
@@ -11685,6 +11933,10 @@ export type GetActionResponses = {
|
|
|
11685
11933
|
*/
|
|
11686
11934
|
200: {
|
|
11687
11935
|
id: string
|
|
11936
|
+
/**
|
|
11937
|
+
* Folder below the definition's directory, such as `raw/erp`; absent at its top.
|
|
11938
|
+
*/
|
|
11939
|
+
folder?: string
|
|
11688
11940
|
name: string
|
|
11689
11941
|
description?: string
|
|
11690
11942
|
objectTypeId?: string
|
|
@@ -12790,6 +13042,42 @@ export type ListAgentThreadsResponses = {
|
|
|
12790
13042
|
messageCount: number
|
|
12791
13043
|
createdAt: string
|
|
12792
13044
|
updatedAt: string
|
|
13045
|
+
read?: {
|
|
13046
|
+
threadId: string
|
|
13047
|
+
throughSeq: number
|
|
13048
|
+
headSeq: number
|
|
13049
|
+
unread: number
|
|
13050
|
+
readAt?: string
|
|
13051
|
+
}
|
|
13052
|
+
lastRun?: {
|
|
13053
|
+
id: string
|
|
13054
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
13055
|
+
finishReason?:
|
|
13056
|
+
| "stop"
|
|
13057
|
+
| "length"
|
|
13058
|
+
| "content-filter"
|
|
13059
|
+
| "tool-calls"
|
|
13060
|
+
| "timeout"
|
|
13061
|
+
| "interrupted"
|
|
13062
|
+
| "awaiting_approval"
|
|
13063
|
+
| "awaiting_answer"
|
|
13064
|
+
| "error"
|
|
13065
|
+
| "other"
|
|
13066
|
+
| "unknown"
|
|
13067
|
+
errorCode?:
|
|
13068
|
+
| "internal.unexpected"
|
|
13069
|
+
| "runtime.cancelled"
|
|
13070
|
+
| "agent.context_limit_exceeded"
|
|
13071
|
+
| "agent.execution_failed"
|
|
13072
|
+
| "agent.step_limit_reached"
|
|
13073
|
+
| "ai.usage_limit_exceeded"
|
|
13074
|
+
| "ai.usage_limit_unavailable"
|
|
13075
|
+
completedAt?: string
|
|
13076
|
+
requestedBy?: {
|
|
13077
|
+
type: "user" | "serviceAccount"
|
|
13078
|
+
id: string
|
|
13079
|
+
}
|
|
13080
|
+
}
|
|
12793
13081
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
12794
13082
|
approvalModeSource?: "thread" | "default" | "fallback" | "run"
|
|
12795
13083
|
}>
|
|
@@ -12932,6 +13220,42 @@ export type CreateAgentThreadResponses = {
|
|
|
12932
13220
|
messageCount: number
|
|
12933
13221
|
createdAt: string
|
|
12934
13222
|
updatedAt: string
|
|
13223
|
+
read?: {
|
|
13224
|
+
threadId: string
|
|
13225
|
+
throughSeq: number
|
|
13226
|
+
headSeq: number
|
|
13227
|
+
unread: number
|
|
13228
|
+
readAt?: string
|
|
13229
|
+
}
|
|
13230
|
+
lastRun?: {
|
|
13231
|
+
id: string
|
|
13232
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
13233
|
+
finishReason?:
|
|
13234
|
+
| "stop"
|
|
13235
|
+
| "length"
|
|
13236
|
+
| "content-filter"
|
|
13237
|
+
| "tool-calls"
|
|
13238
|
+
| "timeout"
|
|
13239
|
+
| "interrupted"
|
|
13240
|
+
| "awaiting_approval"
|
|
13241
|
+
| "awaiting_answer"
|
|
13242
|
+
| "error"
|
|
13243
|
+
| "other"
|
|
13244
|
+
| "unknown"
|
|
13245
|
+
errorCode?:
|
|
13246
|
+
| "internal.unexpected"
|
|
13247
|
+
| "runtime.cancelled"
|
|
13248
|
+
| "agent.context_limit_exceeded"
|
|
13249
|
+
| "agent.execution_failed"
|
|
13250
|
+
| "agent.step_limit_reached"
|
|
13251
|
+
| "ai.usage_limit_exceeded"
|
|
13252
|
+
| "ai.usage_limit_unavailable"
|
|
13253
|
+
completedAt?: string
|
|
13254
|
+
requestedBy?: {
|
|
13255
|
+
type: "user" | "serviceAccount"
|
|
13256
|
+
id: string
|
|
13257
|
+
}
|
|
13258
|
+
}
|
|
12935
13259
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
12936
13260
|
approvalModeSource?: "thread" | "default" | "fallback" | "run"
|
|
12937
13261
|
}
|
|
@@ -13047,6 +13371,42 @@ export type GetAgentThreadResponses = {
|
|
|
13047
13371
|
messageCount: number
|
|
13048
13372
|
createdAt: string
|
|
13049
13373
|
updatedAt: string
|
|
13374
|
+
read?: {
|
|
13375
|
+
threadId: string
|
|
13376
|
+
throughSeq: number
|
|
13377
|
+
headSeq: number
|
|
13378
|
+
unread: number
|
|
13379
|
+
readAt?: string
|
|
13380
|
+
}
|
|
13381
|
+
lastRun?: {
|
|
13382
|
+
id: string
|
|
13383
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
13384
|
+
finishReason?:
|
|
13385
|
+
| "stop"
|
|
13386
|
+
| "length"
|
|
13387
|
+
| "content-filter"
|
|
13388
|
+
| "tool-calls"
|
|
13389
|
+
| "timeout"
|
|
13390
|
+
| "interrupted"
|
|
13391
|
+
| "awaiting_approval"
|
|
13392
|
+
| "awaiting_answer"
|
|
13393
|
+
| "error"
|
|
13394
|
+
| "other"
|
|
13395
|
+
| "unknown"
|
|
13396
|
+
errorCode?:
|
|
13397
|
+
| "internal.unexpected"
|
|
13398
|
+
| "runtime.cancelled"
|
|
13399
|
+
| "agent.context_limit_exceeded"
|
|
13400
|
+
| "agent.execution_failed"
|
|
13401
|
+
| "agent.step_limit_reached"
|
|
13402
|
+
| "ai.usage_limit_exceeded"
|
|
13403
|
+
| "ai.usage_limit_unavailable"
|
|
13404
|
+
completedAt?: string
|
|
13405
|
+
requestedBy?: {
|
|
13406
|
+
type: "user" | "serviceAccount"
|
|
13407
|
+
id: string
|
|
13408
|
+
}
|
|
13409
|
+
}
|
|
13050
13410
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
13051
13411
|
approvalModeSource?: "thread" | "default" | "fallback" | "run"
|
|
13052
13412
|
}
|
|
@@ -13187,27 +13547,63 @@ export type AddAgentThreadParticipantsResponses = {
|
|
|
13187
13547
|
messageCount: number
|
|
13188
13548
|
createdAt: string
|
|
13189
13549
|
updatedAt: string
|
|
13190
|
-
|
|
13191
|
-
|
|
13192
|
-
|
|
13193
|
-
|
|
13194
|
-
|
|
13195
|
-
|
|
13196
|
-
|
|
13197
|
-
|
|
13198
|
-
|
|
13199
|
-
|
|
13200
|
-
|
|
13201
|
-
|
|
13202
|
-
|
|
13203
|
-
|
|
13204
|
-
|
|
13205
|
-
|
|
13206
|
-
|
|
13207
|
-
|
|
13208
|
-
|
|
13209
|
-
|
|
13210
|
-
|
|
13550
|
+
read?: {
|
|
13551
|
+
threadId: string
|
|
13552
|
+
throughSeq: number
|
|
13553
|
+
headSeq: number
|
|
13554
|
+
unread: number
|
|
13555
|
+
readAt?: string
|
|
13556
|
+
}
|
|
13557
|
+
lastRun?: {
|
|
13558
|
+
id: string
|
|
13559
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
13560
|
+
finishReason?:
|
|
13561
|
+
| "stop"
|
|
13562
|
+
| "length"
|
|
13563
|
+
| "content-filter"
|
|
13564
|
+
| "tool-calls"
|
|
13565
|
+
| "timeout"
|
|
13566
|
+
| "interrupted"
|
|
13567
|
+
| "awaiting_approval"
|
|
13568
|
+
| "awaiting_answer"
|
|
13569
|
+
| "error"
|
|
13570
|
+
| "other"
|
|
13571
|
+
| "unknown"
|
|
13572
|
+
errorCode?:
|
|
13573
|
+
| "internal.unexpected"
|
|
13574
|
+
| "runtime.cancelled"
|
|
13575
|
+
| "agent.context_limit_exceeded"
|
|
13576
|
+
| "agent.execution_failed"
|
|
13577
|
+
| "agent.step_limit_reached"
|
|
13578
|
+
| "ai.usage_limit_exceeded"
|
|
13579
|
+
| "ai.usage_limit_unavailable"
|
|
13580
|
+
completedAt?: string
|
|
13581
|
+
requestedBy?: {
|
|
13582
|
+
type: "user" | "serviceAccount"
|
|
13583
|
+
id: string
|
|
13584
|
+
}
|
|
13585
|
+
}
|
|
13586
|
+
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
13587
|
+
approvalModeSource?: "thread" | "default" | "fallback" | "run"
|
|
13588
|
+
}
|
|
13589
|
+
}
|
|
13590
|
+
|
|
13591
|
+
export type AddAgentThreadParticipantsResponse =
|
|
13592
|
+
AddAgentThreadParticipantsResponses[keyof AddAgentThreadParticipantsResponses]
|
|
13593
|
+
|
|
13594
|
+
export type RemoveAgentThreadParticipantData = {
|
|
13595
|
+
body?: never
|
|
13596
|
+
path: {
|
|
13597
|
+
threadId: string
|
|
13598
|
+
userId: string
|
|
13599
|
+
}
|
|
13600
|
+
query?: never
|
|
13601
|
+
url: "/api/agent-threads/{threadId}/participants/{userId}"
|
|
13602
|
+
}
|
|
13603
|
+
|
|
13604
|
+
export type RemoveAgentThreadParticipantErrors = {
|
|
13605
|
+
/**
|
|
13606
|
+
* Response for status 400
|
|
13211
13607
|
*/
|
|
13212
13608
|
400: {
|
|
13213
13609
|
error: string
|
|
@@ -13367,6 +13763,42 @@ export type ForkAgentThreadResponses = {
|
|
|
13367
13763
|
messageCount: number
|
|
13368
13764
|
createdAt: string
|
|
13369
13765
|
updatedAt: string
|
|
13766
|
+
read?: {
|
|
13767
|
+
threadId: string
|
|
13768
|
+
throughSeq: number
|
|
13769
|
+
headSeq: number
|
|
13770
|
+
unread: number
|
|
13771
|
+
readAt?: string
|
|
13772
|
+
}
|
|
13773
|
+
lastRun?: {
|
|
13774
|
+
id: string
|
|
13775
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
13776
|
+
finishReason?:
|
|
13777
|
+
| "stop"
|
|
13778
|
+
| "length"
|
|
13779
|
+
| "content-filter"
|
|
13780
|
+
| "tool-calls"
|
|
13781
|
+
| "timeout"
|
|
13782
|
+
| "interrupted"
|
|
13783
|
+
| "awaiting_approval"
|
|
13784
|
+
| "awaiting_answer"
|
|
13785
|
+
| "error"
|
|
13786
|
+
| "other"
|
|
13787
|
+
| "unknown"
|
|
13788
|
+
errorCode?:
|
|
13789
|
+
| "internal.unexpected"
|
|
13790
|
+
| "runtime.cancelled"
|
|
13791
|
+
| "agent.context_limit_exceeded"
|
|
13792
|
+
| "agent.execution_failed"
|
|
13793
|
+
| "agent.step_limit_reached"
|
|
13794
|
+
| "ai.usage_limit_exceeded"
|
|
13795
|
+
| "ai.usage_limit_unavailable"
|
|
13796
|
+
completedAt?: string
|
|
13797
|
+
requestedBy?: {
|
|
13798
|
+
type: "user" | "serviceAccount"
|
|
13799
|
+
id: string
|
|
13800
|
+
}
|
|
13801
|
+
}
|
|
13370
13802
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
13371
13803
|
approvalModeSource?: "thread" | "default" | "fallback" | "run"
|
|
13372
13804
|
}
|
|
@@ -13493,6 +13925,42 @@ export type RecreateAgentThreadSandboxResponses = {
|
|
|
13493
13925
|
messageCount: number
|
|
13494
13926
|
createdAt: string
|
|
13495
13927
|
updatedAt: string
|
|
13928
|
+
read?: {
|
|
13929
|
+
threadId: string
|
|
13930
|
+
throughSeq: number
|
|
13931
|
+
headSeq: number
|
|
13932
|
+
unread: number
|
|
13933
|
+
readAt?: string
|
|
13934
|
+
}
|
|
13935
|
+
lastRun?: {
|
|
13936
|
+
id: string
|
|
13937
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
13938
|
+
finishReason?:
|
|
13939
|
+
| "stop"
|
|
13940
|
+
| "length"
|
|
13941
|
+
| "content-filter"
|
|
13942
|
+
| "tool-calls"
|
|
13943
|
+
| "timeout"
|
|
13944
|
+
| "interrupted"
|
|
13945
|
+
| "awaiting_approval"
|
|
13946
|
+
| "awaiting_answer"
|
|
13947
|
+
| "error"
|
|
13948
|
+
| "other"
|
|
13949
|
+
| "unknown"
|
|
13950
|
+
errorCode?:
|
|
13951
|
+
| "internal.unexpected"
|
|
13952
|
+
| "runtime.cancelled"
|
|
13953
|
+
| "agent.context_limit_exceeded"
|
|
13954
|
+
| "agent.execution_failed"
|
|
13955
|
+
| "agent.step_limit_reached"
|
|
13956
|
+
| "ai.usage_limit_exceeded"
|
|
13957
|
+
| "ai.usage_limit_unavailable"
|
|
13958
|
+
completedAt?: string
|
|
13959
|
+
requestedBy?: {
|
|
13960
|
+
type: "user" | "serviceAccount"
|
|
13961
|
+
id: string
|
|
13962
|
+
}
|
|
13963
|
+
}
|
|
13496
13964
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
13497
13965
|
approvalModeSource?: "thread" | "default" | "fallback" | "run"
|
|
13498
13966
|
}
|
|
@@ -13619,6 +14087,42 @@ export type RestoreAgentThreadSandboxResponses = {
|
|
|
13619
14087
|
messageCount: number
|
|
13620
14088
|
createdAt: string
|
|
13621
14089
|
updatedAt: string
|
|
14090
|
+
read?: {
|
|
14091
|
+
threadId: string
|
|
14092
|
+
throughSeq: number
|
|
14093
|
+
headSeq: number
|
|
14094
|
+
unread: number
|
|
14095
|
+
readAt?: string
|
|
14096
|
+
}
|
|
14097
|
+
lastRun?: {
|
|
14098
|
+
id: string
|
|
14099
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
14100
|
+
finishReason?:
|
|
14101
|
+
| "stop"
|
|
14102
|
+
| "length"
|
|
14103
|
+
| "content-filter"
|
|
14104
|
+
| "tool-calls"
|
|
14105
|
+
| "timeout"
|
|
14106
|
+
| "interrupted"
|
|
14107
|
+
| "awaiting_approval"
|
|
14108
|
+
| "awaiting_answer"
|
|
14109
|
+
| "error"
|
|
14110
|
+
| "other"
|
|
14111
|
+
| "unknown"
|
|
14112
|
+
errorCode?:
|
|
14113
|
+
| "internal.unexpected"
|
|
14114
|
+
| "runtime.cancelled"
|
|
14115
|
+
| "agent.context_limit_exceeded"
|
|
14116
|
+
| "agent.execution_failed"
|
|
14117
|
+
| "agent.step_limit_reached"
|
|
14118
|
+
| "ai.usage_limit_exceeded"
|
|
14119
|
+
| "ai.usage_limit_unavailable"
|
|
14120
|
+
completedAt?: string
|
|
14121
|
+
requestedBy?: {
|
|
14122
|
+
type: "user" | "serviceAccount"
|
|
14123
|
+
id: string
|
|
14124
|
+
}
|
|
14125
|
+
}
|
|
13622
14126
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
13623
14127
|
approvalModeSource?: "thread" | "default" | "fallback" | "run"
|
|
13624
14128
|
}
|
|
@@ -14025,7 +14529,7 @@ export type ListAgentThreadMessagesResponses = {
|
|
|
14025
14529
|
}
|
|
14026
14530
|
>
|
|
14027
14531
|
annotations: Array<{
|
|
14028
|
-
code: "step_limit_reached" | "output_limit_reached"
|
|
14532
|
+
code: "step_limit_reached" | "output_limit_reached" | "workspace_not_saved"
|
|
14029
14533
|
severity: "warning" | "error"
|
|
14030
14534
|
scope: "run"
|
|
14031
14535
|
message: string
|
|
@@ -14239,6 +14743,10 @@ export type PostAgentThreadMessageResponses = {
|
|
|
14239
14743
|
}
|
|
14240
14744
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
14241
14745
|
runsOn?: "computer"
|
|
14746
|
+
computer?: {
|
|
14747
|
+
id: string
|
|
14748
|
+
folder: string
|
|
14749
|
+
}
|
|
14242
14750
|
modelId?: string
|
|
14243
14751
|
finishReason?:
|
|
14244
14752
|
| "stop"
|
|
@@ -14293,7 +14801,7 @@ export type PostAgentThreadMessageResponses = {
|
|
|
14293
14801
|
unvaluedCallCount: number
|
|
14294
14802
|
}
|
|
14295
14803
|
diagnostics?: Array<{
|
|
14296
|
-
code: "step_limit_reached" | "output_limit_reached"
|
|
14804
|
+
code: "step_limit_reached" | "output_limit_reached" | "workspace_not_saved"
|
|
14297
14805
|
severity: "warning" | "error"
|
|
14298
14806
|
scope: "run"
|
|
14299
14807
|
message: string
|
|
@@ -14708,6 +15216,7 @@ export type PostAgentThreadMessageResponses = {
|
|
|
14708
15216
|
timeZone?: string
|
|
14709
15217
|
locale?: string
|
|
14710
15218
|
immediate?: boolean
|
|
15219
|
+
replacesMessageId?: string
|
|
14711
15220
|
createdAt: string
|
|
14712
15221
|
updatedAt: string
|
|
14713
15222
|
}
|
|
@@ -15234,6 +15743,7 @@ export type ListAgentThreadInboxResponses = {
|
|
|
15234
15743
|
timeZone?: string
|
|
15235
15744
|
locale?: string
|
|
15236
15745
|
immediate?: boolean
|
|
15746
|
+
replacesMessageId?: string
|
|
15237
15747
|
createdAt: string
|
|
15238
15748
|
updatedAt: string
|
|
15239
15749
|
}>
|
|
@@ -15750,14 +16260,668 @@ export type UpdateAgentThreadInboxItemResponses = {
|
|
|
15750
16260
|
timeZone?: string
|
|
15751
16261
|
locale?: string
|
|
15752
16262
|
immediate?: boolean
|
|
16263
|
+
replacesMessageId?: string
|
|
16264
|
+
createdAt: string
|
|
16265
|
+
updatedAt: string
|
|
16266
|
+
}
|
|
16267
|
+
}
|
|
16268
|
+
}
|
|
16269
|
+
|
|
16270
|
+
export type UpdateAgentThreadInboxItemResponse =
|
|
16271
|
+
UpdateAgentThreadInboxItemResponses[keyof UpdateAgentThreadInboxItemResponses]
|
|
16272
|
+
|
|
16273
|
+
export type EditAgentThreadMessageData = {
|
|
16274
|
+
body: {
|
|
16275
|
+
text?: string
|
|
16276
|
+
model?: {
|
|
16277
|
+
provider: string
|
|
16278
|
+
modelId: string
|
|
16279
|
+
}
|
|
16280
|
+
reasoning?:
|
|
16281
|
+
| "provider-default"
|
|
16282
|
+
| "none"
|
|
16283
|
+
| "minimal"
|
|
16284
|
+
| "low"
|
|
16285
|
+
| "medium"
|
|
16286
|
+
| "high"
|
|
16287
|
+
| "xhigh"
|
|
16288
|
+
| "max"
|
|
16289
|
+
| {
|
|
16290
|
+
budgetTokens: number
|
|
16291
|
+
}
|
|
16292
|
+
timeZone?: string
|
|
16293
|
+
locale?: string
|
|
16294
|
+
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
16295
|
+
attachments?: Array<{
|
|
16296
|
+
blobId: string
|
|
16297
|
+
digest: string
|
|
16298
|
+
sizeBytes: number
|
|
16299
|
+
fileName?: string
|
|
16300
|
+
mediaType?: string
|
|
16301
|
+
logicalPath?: string
|
|
16302
|
+
}>
|
|
16303
|
+
context?: Array<{
|
|
16304
|
+
context:
|
|
16305
|
+
| {
|
|
16306
|
+
kind: "object"
|
|
16307
|
+
ref: {
|
|
16308
|
+
objectTypeId: string
|
|
16309
|
+
primaryId: string
|
|
16310
|
+
}
|
|
16311
|
+
/**
|
|
16312
|
+
* Shown in the chat instead of the object's title. Never sent to the model.
|
|
16313
|
+
*/
|
|
16314
|
+
label?: string
|
|
16315
|
+
}
|
|
16316
|
+
| {
|
|
16317
|
+
kind: "app-state"
|
|
16318
|
+
id: string
|
|
16319
|
+
label: string
|
|
16320
|
+
description: string
|
|
16321
|
+
/**
|
|
16322
|
+
* Any JSON-compatible value.
|
|
16323
|
+
*/
|
|
16324
|
+
value:
|
|
16325
|
+
| string
|
|
16326
|
+
| number
|
|
16327
|
+
| boolean
|
|
16328
|
+
| Array<unknown>
|
|
16329
|
+
| {
|
|
16330
|
+
[key: string]: unknown
|
|
16331
|
+
}
|
|
16332
|
+
| null
|
|
16333
|
+
}
|
|
16334
|
+
origin: "ambient" | "explicit"
|
|
16335
|
+
}>
|
|
16336
|
+
nextMessageId?: string
|
|
16337
|
+
}
|
|
16338
|
+
path: {
|
|
16339
|
+
threadId: string
|
|
16340
|
+
messageId: string
|
|
16341
|
+
}
|
|
16342
|
+
query?: never
|
|
16343
|
+
url: "/api/agent-threads/{threadId}/messages/{messageId}/edit"
|
|
16344
|
+
}
|
|
16345
|
+
|
|
16346
|
+
export type EditAgentThreadMessageErrors = {
|
|
16347
|
+
/**
|
|
16348
|
+
* Response for status 400
|
|
16349
|
+
*/
|
|
16350
|
+
400: {
|
|
16351
|
+
error: string
|
|
16352
|
+
code?: string
|
|
16353
|
+
}
|
|
16354
|
+
/**
|
|
16355
|
+
* Response for status 403
|
|
16356
|
+
*/
|
|
16357
|
+
403: {
|
|
16358
|
+
error: string
|
|
16359
|
+
code?: string
|
|
16360
|
+
}
|
|
16361
|
+
/**
|
|
16362
|
+
* Response for status 404
|
|
16363
|
+
*/
|
|
16364
|
+
404: {
|
|
16365
|
+
error: string
|
|
16366
|
+
}
|
|
16367
|
+
/**
|
|
16368
|
+
* Response for status 409
|
|
16369
|
+
*/
|
|
16370
|
+
409: {
|
|
16371
|
+
error: string
|
|
16372
|
+
code?: string
|
|
16373
|
+
}
|
|
16374
|
+
/**
|
|
16375
|
+
* Response for status 429
|
|
16376
|
+
*/
|
|
16377
|
+
429: {
|
|
16378
|
+
error: string
|
|
16379
|
+
/**
|
|
16380
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
16381
|
+
*/
|
|
16382
|
+
code: "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable"
|
|
16383
|
+
/**
|
|
16384
|
+
* Any JSON-compatible value.
|
|
16385
|
+
*/
|
|
16386
|
+
details?:
|
|
16387
|
+
| string
|
|
16388
|
+
| number
|
|
16389
|
+
| boolean
|
|
16390
|
+
| Array<unknown>
|
|
16391
|
+
| {
|
|
16392
|
+
[key: string]: unknown
|
|
16393
|
+
}
|
|
16394
|
+
| null
|
|
16395
|
+
}
|
|
16396
|
+
/**
|
|
16397
|
+
* Response for status 501
|
|
16398
|
+
*/
|
|
16399
|
+
501: {
|
|
16400
|
+
error: string
|
|
16401
|
+
}
|
|
16402
|
+
}
|
|
16403
|
+
|
|
16404
|
+
export type EditAgentThreadMessageError =
|
|
16405
|
+
EditAgentThreadMessageErrors[keyof EditAgentThreadMessageErrors]
|
|
16406
|
+
|
|
16407
|
+
export type EditAgentThreadMessageResponses = {
|
|
16408
|
+
/**
|
|
16409
|
+
* Response for status 202
|
|
16410
|
+
*/
|
|
16411
|
+
202: {
|
|
16412
|
+
run?: {
|
|
16413
|
+
id: string
|
|
16414
|
+
projectId: string
|
|
16415
|
+
kind: "conversation" | "subagent"
|
|
16416
|
+
threadId: string
|
|
16417
|
+
triggerMessageId: string
|
|
16418
|
+
parentRunId?: string
|
|
16419
|
+
requestedBy?: {
|
|
16420
|
+
type: "user" | "serviceAccount"
|
|
16421
|
+
id: string
|
|
16422
|
+
}
|
|
16423
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
16424
|
+
model?: {
|
|
16425
|
+
provider: string
|
|
16426
|
+
modelId: string
|
|
16427
|
+
}
|
|
16428
|
+
tier?: "light" | "standard" | "heavy"
|
|
16429
|
+
reasoning?:
|
|
16430
|
+
| "provider-default"
|
|
16431
|
+
| "none"
|
|
16432
|
+
| "minimal"
|
|
16433
|
+
| "low"
|
|
16434
|
+
| "medium"
|
|
16435
|
+
| "high"
|
|
16436
|
+
| "xhigh"
|
|
16437
|
+
| "max"
|
|
16438
|
+
| {
|
|
16439
|
+
budgetTokens: number
|
|
16440
|
+
}
|
|
16441
|
+
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
16442
|
+
runsOn?: "computer"
|
|
16443
|
+
computer?: {
|
|
16444
|
+
id: string
|
|
16445
|
+
folder: string
|
|
16446
|
+
}
|
|
16447
|
+
modelId?: string
|
|
16448
|
+
finishReason?:
|
|
16449
|
+
| "stop"
|
|
16450
|
+
| "length"
|
|
16451
|
+
| "content-filter"
|
|
16452
|
+
| "tool-calls"
|
|
16453
|
+
| "timeout"
|
|
16454
|
+
| "interrupted"
|
|
16455
|
+
| "awaiting_approval"
|
|
16456
|
+
| "awaiting_answer"
|
|
16457
|
+
| "error"
|
|
16458
|
+
| "other"
|
|
16459
|
+
| "unknown"
|
|
16460
|
+
usage?: {
|
|
16461
|
+
inputTokens?: number
|
|
16462
|
+
outputTokens?: number
|
|
16463
|
+
totalTokens?: number
|
|
16464
|
+
uncachedInputTokens?: number
|
|
16465
|
+
cacheReadInputTokens?: number
|
|
16466
|
+
cacheWriteInputTokens?: number
|
|
16467
|
+
textOutputTokens?: number
|
|
16468
|
+
reasoningOutputTokens?: number
|
|
16469
|
+
/**
|
|
16470
|
+
* Audio content duration in milliseconds; not billed duration.
|
|
16471
|
+
*/
|
|
16472
|
+
audioDurationMs?: number
|
|
16473
|
+
/**
|
|
16474
|
+
* Output tokens that encode generated images, within outputTokens.
|
|
16475
|
+
*/
|
|
16476
|
+
imageOutputTokens?: number
|
|
16477
|
+
/**
|
|
16478
|
+
* Output tokens that encode generated audio, within outputTokens.
|
|
16479
|
+
*/
|
|
16480
|
+
audioOutputTokens?: number
|
|
16481
|
+
/**
|
|
16482
|
+
* Images the call returned.
|
|
16483
|
+
*/
|
|
16484
|
+
outputImages?: number
|
|
16485
|
+
/**
|
|
16486
|
+
* Input characters, counted by the provider's own billing rule.
|
|
16487
|
+
*/
|
|
16488
|
+
inputCharacters?: number
|
|
16489
|
+
reportingStatus: "complete" | "partial" | "unavailable"
|
|
16490
|
+
}
|
|
16491
|
+
cost?: {
|
|
16492
|
+
amounts: Array<{
|
|
16493
|
+
currency: string
|
|
16494
|
+
amountNanos: string
|
|
16495
|
+
}>
|
|
16496
|
+
ratedCallCount: number
|
|
16497
|
+
unpriceableCallCount: number
|
|
16498
|
+
unvaluedCallCount: number
|
|
16499
|
+
}
|
|
16500
|
+
diagnostics?: Array<{
|
|
16501
|
+
code: "step_limit_reached" | "output_limit_reached" | "workspace_not_saved"
|
|
16502
|
+
severity: "warning" | "error"
|
|
16503
|
+
scope: "run"
|
|
16504
|
+
message: string
|
|
16505
|
+
}>
|
|
16506
|
+
error?: {
|
|
16507
|
+
code:
|
|
16508
|
+
| "internal.unexpected"
|
|
16509
|
+
| "runtime.cancelled"
|
|
16510
|
+
| "agent.context_limit_exceeded"
|
|
16511
|
+
| "agent.execution_failed"
|
|
16512
|
+
| "agent.step_limit_reached"
|
|
16513
|
+
| "ai.usage_limit_exceeded"
|
|
16514
|
+
| "ai.usage_limit_unavailable"
|
|
16515
|
+
message: string
|
|
16516
|
+
retryable: boolean
|
|
16517
|
+
at: string
|
|
16518
|
+
/**
|
|
16519
|
+
* Any JSON-compatible value.
|
|
16520
|
+
*/
|
|
16521
|
+
details?:
|
|
16522
|
+
| string
|
|
16523
|
+
| number
|
|
16524
|
+
| boolean
|
|
16525
|
+
| Array<unknown>
|
|
16526
|
+
| {
|
|
16527
|
+
[key: string]: unknown
|
|
16528
|
+
}
|
|
16529
|
+
| null
|
|
16530
|
+
httpStatus?: number
|
|
16531
|
+
redacted?: true
|
|
16532
|
+
truncated?: true
|
|
16533
|
+
}
|
|
16534
|
+
attempt: number
|
|
16535
|
+
streamId: string
|
|
16536
|
+
createdAt: string
|
|
16537
|
+
startedAt?: string
|
|
16538
|
+
completedAt?: string
|
|
16539
|
+
}
|
|
16540
|
+
item?: {
|
|
16541
|
+
id: string
|
|
16542
|
+
projectId: string
|
|
16543
|
+
threadId: string
|
|
16544
|
+
messageId: string
|
|
16545
|
+
seq: number
|
|
16546
|
+
authorPrincipal: {
|
|
16547
|
+
type: "user" | "serviceAccount" | "system"
|
|
16548
|
+
id: string
|
|
16549
|
+
}
|
|
16550
|
+
mode: "steer" | "queue"
|
|
16551
|
+
parts: Array<
|
|
16552
|
+
| {
|
|
16553
|
+
type: "text"
|
|
16554
|
+
text: string
|
|
16555
|
+
/**
|
|
16556
|
+
* Any JSON-compatible value.
|
|
16557
|
+
*/
|
|
16558
|
+
providerMetadata?:
|
|
16559
|
+
| string
|
|
16560
|
+
| number
|
|
16561
|
+
| boolean
|
|
16562
|
+
| Array<unknown>
|
|
16563
|
+
| {
|
|
16564
|
+
[key: string]: unknown
|
|
16565
|
+
}
|
|
16566
|
+
| null
|
|
16567
|
+
}
|
|
16568
|
+
| {
|
|
16569
|
+
type: "continuation"
|
|
16570
|
+
}
|
|
16571
|
+
| {
|
|
16572
|
+
type: "approval-outcome"
|
|
16573
|
+
approvalId: string
|
|
16574
|
+
status: "approved" | "denied" | "cancelled" | "superseded" | "expired"
|
|
16575
|
+
call:
|
|
16576
|
+
| {
|
|
16577
|
+
kind: "action"
|
|
16578
|
+
actionId: string
|
|
16579
|
+
subject:
|
|
16580
|
+
| {
|
|
16581
|
+
kind: "none"
|
|
16582
|
+
}
|
|
16583
|
+
| {
|
|
16584
|
+
kind: "object"
|
|
16585
|
+
objectTypeId: string
|
|
16586
|
+
primaryId: string
|
|
16587
|
+
}
|
|
16588
|
+
}
|
|
16589
|
+
| {
|
|
16590
|
+
kind: "workflow"
|
|
16591
|
+
workflowId: string
|
|
16592
|
+
}
|
|
16593
|
+
outcome?:
|
|
16594
|
+
| {
|
|
16595
|
+
kind: "action-run"
|
|
16596
|
+
runId: string
|
|
16597
|
+
status: "succeeded" | "failed"
|
|
16598
|
+
error?: {
|
|
16599
|
+
code:
|
|
16600
|
+
| "internal.unexpected"
|
|
16601
|
+
| "runtime.cancelled"
|
|
16602
|
+
| "action.phase_failed"
|
|
16603
|
+
| "action.read_conflict"
|
|
16604
|
+
| "action.rejected"
|
|
16605
|
+
| "action.timeout"
|
|
16606
|
+
| "object.unique_violation"
|
|
16607
|
+
message: string
|
|
16608
|
+
retryable: boolean
|
|
16609
|
+
at: string
|
|
16610
|
+
details: {
|
|
16611
|
+
actionId: string
|
|
16612
|
+
runId: string
|
|
16613
|
+
phase: "validation" | "writeback" | "edits" | "commit" | "effects"
|
|
16614
|
+
}
|
|
16615
|
+
httpStatus?: number
|
|
16616
|
+
redacted?: true
|
|
16617
|
+
truncated?: true
|
|
16618
|
+
}
|
|
16619
|
+
}
|
|
16620
|
+
| {
|
|
16621
|
+
kind: "workflow-run"
|
|
16622
|
+
runId: string
|
|
16623
|
+
queuedAt: string
|
|
16624
|
+
}
|
|
16625
|
+
| {
|
|
16626
|
+
kind: "error"
|
|
16627
|
+
error: {
|
|
16628
|
+
code:
|
|
16629
|
+
| "action.phase_failed"
|
|
16630
|
+
| "action.read_conflict"
|
|
16631
|
+
| "action.rejected"
|
|
16632
|
+
| "action.run_in_progress"
|
|
16633
|
+
| "action.timeout"
|
|
16634
|
+
| "agent.approval_authority_lost"
|
|
16635
|
+
| "agent.context_limit_exceeded"
|
|
16636
|
+
| "agent.execution_failed"
|
|
16637
|
+
| "agent.step_limit_reached"
|
|
16638
|
+
| "ai.usage_limit_exceeded"
|
|
16639
|
+
| "ai.usage_limit_unavailable"
|
|
16640
|
+
| "connector.adapter_invalid"
|
|
16641
|
+
| "connector.authorization_invalid"
|
|
16642
|
+
| "connector.authorization_required"
|
|
16643
|
+
| "connector.configuration_invalid"
|
|
16644
|
+
| "connector.credentials_unavailable"
|
|
16645
|
+
| "connector.not_found"
|
|
16646
|
+
| "connector.operation_conflict"
|
|
16647
|
+
| "connector.operation_in_progress"
|
|
16648
|
+
| "connector.provider_failed"
|
|
16649
|
+
| "connector.provider_unavailable"
|
|
16650
|
+
| "connector.replacement_required"
|
|
16651
|
+
| "connector.revocation_pending"
|
|
16652
|
+
| "dataset.change_refused"
|
|
16653
|
+
| "dataset.not_found"
|
|
16654
|
+
| "dataset.version_incompatible"
|
|
16655
|
+
| "dataset.version_not_found"
|
|
16656
|
+
| "dataset.version_read_inconsistent"
|
|
16657
|
+
| "event.delivery_failed"
|
|
16658
|
+
| "internal.unexpected"
|
|
16659
|
+
| "queue.enqueue_failed"
|
|
16660
|
+
| "object.not_found"
|
|
16661
|
+
| "object.unique_violation"
|
|
16662
|
+
| "pipeline.step_failed"
|
|
16663
|
+
| "projection.definition_invalid"
|
|
16664
|
+
| "projection.execution_failed"
|
|
16665
|
+
| "projection.not_found"
|
|
16666
|
+
| "projection.run_already_terminal"
|
|
16667
|
+
| "projection.run_identity_mismatch"
|
|
16668
|
+
| "runtime.cancelled"
|
|
16669
|
+
| "runtime.stopping"
|
|
16670
|
+
| "vector.model_unavailable"
|
|
16671
|
+
| "vector.response_invalid"
|
|
16672
|
+
| "vector.outcome_unknown"
|
|
16673
|
+
| "storage.unavailable"
|
|
16674
|
+
| "sync.execution_failed"
|
|
16675
|
+
| "webhook.delivery_failed"
|
|
16676
|
+
| "webhook.delivery_rejected"
|
|
16677
|
+
| "workflow.node_failed"
|
|
16678
|
+
message: string
|
|
16679
|
+
retryable: boolean
|
|
16680
|
+
at: string
|
|
16681
|
+
/**
|
|
16682
|
+
* Any JSON-compatible value.
|
|
16683
|
+
*/
|
|
16684
|
+
details?:
|
|
16685
|
+
| string
|
|
16686
|
+
| number
|
|
16687
|
+
| boolean
|
|
16688
|
+
| Array<unknown>
|
|
16689
|
+
| {
|
|
16690
|
+
[key: string]: unknown
|
|
16691
|
+
}
|
|
16692
|
+
| null
|
|
16693
|
+
httpStatus?: number
|
|
16694
|
+
redacted?: true
|
|
16695
|
+
truncated?: true
|
|
16696
|
+
}
|
|
16697
|
+
}
|
|
16698
|
+
caller?: {
|
|
16699
|
+
runId: string
|
|
16700
|
+
key: string
|
|
16701
|
+
continues?: true
|
|
16702
|
+
}
|
|
16703
|
+
}
|
|
16704
|
+
| {
|
|
16705
|
+
type: "reasoning"
|
|
16706
|
+
text: string
|
|
16707
|
+
/**
|
|
16708
|
+
* Any JSON-compatible value.
|
|
16709
|
+
*/
|
|
16710
|
+
providerMetadata?:
|
|
16711
|
+
| string
|
|
16712
|
+
| number
|
|
16713
|
+
| boolean
|
|
16714
|
+
| Array<unknown>
|
|
16715
|
+
| {
|
|
16716
|
+
[key: string]: unknown
|
|
16717
|
+
}
|
|
16718
|
+
| null
|
|
16719
|
+
}
|
|
16720
|
+
| {
|
|
16721
|
+
type: "step-start"
|
|
16722
|
+
}
|
|
16723
|
+
| {
|
|
16724
|
+
type: "file"
|
|
16725
|
+
fileRef: {
|
|
16726
|
+
blobId: string
|
|
16727
|
+
digest: string
|
|
16728
|
+
sizeBytes: number
|
|
16729
|
+
fileName?: string
|
|
16730
|
+
mediaType?: string
|
|
16731
|
+
logicalPath?: string
|
|
16732
|
+
}
|
|
16733
|
+
/**
|
|
16734
|
+
* Any JSON-compatible value.
|
|
16735
|
+
*/
|
|
16736
|
+
providerMetadata?:
|
|
16737
|
+
| string
|
|
16738
|
+
| number
|
|
16739
|
+
| boolean
|
|
16740
|
+
| Array<unknown>
|
|
16741
|
+
| {
|
|
16742
|
+
[key: string]: unknown
|
|
16743
|
+
}
|
|
16744
|
+
| null
|
|
16745
|
+
}
|
|
16746
|
+
| {
|
|
16747
|
+
type: "provider-state"
|
|
16748
|
+
providerId: string
|
|
16749
|
+
/**
|
|
16750
|
+
* Any JSON-compatible value.
|
|
16751
|
+
*/
|
|
16752
|
+
data:
|
|
16753
|
+
| string
|
|
16754
|
+
| number
|
|
16755
|
+
| boolean
|
|
16756
|
+
| Array<unknown>
|
|
16757
|
+
| {
|
|
16758
|
+
[key: string]: unknown
|
|
16759
|
+
}
|
|
16760
|
+
| null
|
|
16761
|
+
}
|
|
16762
|
+
| {
|
|
16763
|
+
context:
|
|
16764
|
+
| {
|
|
16765
|
+
kind: "object"
|
|
16766
|
+
ref: {
|
|
16767
|
+
objectTypeId: string
|
|
16768
|
+
primaryId: string
|
|
16769
|
+
}
|
|
16770
|
+
/**
|
|
16771
|
+
* Shown in the chat instead of the object's title. Never sent to the model.
|
|
16772
|
+
*/
|
|
16773
|
+
label?: string
|
|
16774
|
+
}
|
|
16775
|
+
| {
|
|
16776
|
+
kind: "app-state"
|
|
16777
|
+
id: string
|
|
16778
|
+
label: string
|
|
16779
|
+
description: string
|
|
16780
|
+
/**
|
|
16781
|
+
* Any JSON-compatible value.
|
|
16782
|
+
*/
|
|
16783
|
+
value:
|
|
16784
|
+
| string
|
|
16785
|
+
| number
|
|
16786
|
+
| boolean
|
|
16787
|
+
| Array<unknown>
|
|
16788
|
+
| {
|
|
16789
|
+
[key: string]: unknown
|
|
16790
|
+
}
|
|
16791
|
+
| null
|
|
16792
|
+
}
|
|
16793
|
+
origin: "ambient" | "explicit"
|
|
16794
|
+
type: "context"
|
|
16795
|
+
}
|
|
16796
|
+
| {
|
|
16797
|
+
type: "tool-call"
|
|
16798
|
+
toolCallId: string
|
|
16799
|
+
toolName: string
|
|
16800
|
+
dynamic?: boolean
|
|
16801
|
+
providerExecuted?: boolean
|
|
16802
|
+
/**
|
|
16803
|
+
* Any JSON-compatible value.
|
|
16804
|
+
*/
|
|
16805
|
+
input:
|
|
16806
|
+
| string
|
|
16807
|
+
| number
|
|
16808
|
+
| boolean
|
|
16809
|
+
| Array<unknown>
|
|
16810
|
+
| {
|
|
16811
|
+
[key: string]: unknown
|
|
16812
|
+
}
|
|
16813
|
+
| null
|
|
16814
|
+
/**
|
|
16815
|
+
* Any JSON-compatible value.
|
|
16816
|
+
*/
|
|
16817
|
+
providerMetadata?:
|
|
16818
|
+
| string
|
|
16819
|
+
| number
|
|
16820
|
+
| boolean
|
|
16821
|
+
| Array<unknown>
|
|
16822
|
+
| {
|
|
16823
|
+
[key: string]: unknown
|
|
16824
|
+
}
|
|
16825
|
+
| null
|
|
16826
|
+
state: "output-available"
|
|
16827
|
+
/**
|
|
16828
|
+
* Any JSON-compatible value.
|
|
16829
|
+
*/
|
|
16830
|
+
output:
|
|
16831
|
+
| string
|
|
16832
|
+
| number
|
|
16833
|
+
| boolean
|
|
16834
|
+
| Array<unknown>
|
|
16835
|
+
| {
|
|
16836
|
+
[key: string]: unknown
|
|
16837
|
+
}
|
|
16838
|
+
| null
|
|
16839
|
+
outputFile?: {
|
|
16840
|
+
fileRef: {
|
|
16841
|
+
blobId: string
|
|
16842
|
+
digest: string
|
|
16843
|
+
sizeBytes: number
|
|
16844
|
+
fileName?: string
|
|
16845
|
+
mediaType?: string
|
|
16846
|
+
logicalPath?: string
|
|
16847
|
+
}
|
|
16848
|
+
path: string
|
|
16849
|
+
}
|
|
16850
|
+
}
|
|
16851
|
+
| {
|
|
16852
|
+
type: "tool-call"
|
|
16853
|
+
toolCallId: string
|
|
16854
|
+
toolName: string
|
|
16855
|
+
dynamic?: boolean
|
|
16856
|
+
providerExecuted?: boolean
|
|
16857
|
+
/**
|
|
16858
|
+
* Any JSON-compatible value.
|
|
16859
|
+
*/
|
|
16860
|
+
input:
|
|
16861
|
+
| string
|
|
16862
|
+
| number
|
|
16863
|
+
| boolean
|
|
16864
|
+
| Array<unknown>
|
|
16865
|
+
| {
|
|
16866
|
+
[key: string]: unknown
|
|
16867
|
+
}
|
|
16868
|
+
| null
|
|
16869
|
+
/**
|
|
16870
|
+
* Any JSON-compatible value.
|
|
16871
|
+
*/
|
|
16872
|
+
providerMetadata?:
|
|
16873
|
+
| string
|
|
16874
|
+
| number
|
|
16875
|
+
| boolean
|
|
16876
|
+
| Array<unknown>
|
|
16877
|
+
| {
|
|
16878
|
+
[key: string]: unknown
|
|
16879
|
+
}
|
|
16880
|
+
| null
|
|
16881
|
+
state: "output-error"
|
|
16882
|
+
errorText: string
|
|
16883
|
+
}
|
|
16884
|
+
| {
|
|
16885
|
+
type: "mail"
|
|
16886
|
+
id: string
|
|
16887
|
+
from: "parent"
|
|
16888
|
+
kind: "message" | "answer"
|
|
16889
|
+
inReplyTo?: string
|
|
16890
|
+
text: string
|
|
16891
|
+
afterAnswer?: true
|
|
16892
|
+
}
|
|
16893
|
+
>
|
|
16894
|
+
spec?: {
|
|
16895
|
+
model?: {
|
|
16896
|
+
provider: string
|
|
16897
|
+
modelId: string
|
|
16898
|
+
}
|
|
16899
|
+
reasoning?:
|
|
16900
|
+
| "provider-default"
|
|
16901
|
+
| "none"
|
|
16902
|
+
| "minimal"
|
|
16903
|
+
| "low"
|
|
16904
|
+
| "medium"
|
|
16905
|
+
| "high"
|
|
16906
|
+
| "xhigh"
|
|
16907
|
+
| "max"
|
|
16908
|
+
| {
|
|
16909
|
+
budgetTokens: number
|
|
16910
|
+
}
|
|
16911
|
+
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
16912
|
+
}
|
|
16913
|
+
timeZone?: string
|
|
16914
|
+
locale?: string
|
|
16915
|
+
immediate?: boolean
|
|
16916
|
+
replacesMessageId?: string
|
|
15753
16917
|
createdAt: string
|
|
15754
16918
|
updatedAt: string
|
|
15755
16919
|
}
|
|
15756
16920
|
}
|
|
15757
16921
|
}
|
|
15758
16922
|
|
|
15759
|
-
export type
|
|
15760
|
-
|
|
16923
|
+
export type EditAgentThreadMessageResponse =
|
|
16924
|
+
EditAgentThreadMessageResponses[keyof EditAgentThreadMessageResponses]
|
|
15761
16925
|
|
|
15762
16926
|
export type CancelAgentRunData = {
|
|
15763
16927
|
body: {
|
|
@@ -15844,6 +17008,10 @@ export type CancelAgentRunResponses = {
|
|
|
15844
17008
|
}
|
|
15845
17009
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
15846
17010
|
runsOn?: "computer"
|
|
17011
|
+
computer?: {
|
|
17012
|
+
id: string
|
|
17013
|
+
folder: string
|
|
17014
|
+
}
|
|
15847
17015
|
modelId?: string
|
|
15848
17016
|
finishReason?:
|
|
15849
17017
|
| "stop"
|
|
@@ -15898,7 +17066,7 @@ export type CancelAgentRunResponses = {
|
|
|
15898
17066
|
unvaluedCallCount: number
|
|
15899
17067
|
}
|
|
15900
17068
|
diagnostics?: Array<{
|
|
15901
|
-
code: "step_limit_reached" | "output_limit_reached"
|
|
17069
|
+
code: "step_limit_reached" | "output_limit_reached" | "workspace_not_saved"
|
|
15902
17070
|
severity: "warning" | "error"
|
|
15903
17071
|
scope: "run"
|
|
15904
17072
|
message: string
|
|
@@ -16048,6 +17216,10 @@ export type RetryAgentRunResponses = {
|
|
|
16048
17216
|
}
|
|
16049
17217
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
16050
17218
|
runsOn?: "computer"
|
|
17219
|
+
computer?: {
|
|
17220
|
+
id: string
|
|
17221
|
+
folder: string
|
|
17222
|
+
}
|
|
16051
17223
|
modelId?: string
|
|
16052
17224
|
finishReason?:
|
|
16053
17225
|
| "stop"
|
|
@@ -16102,7 +17274,7 @@ export type RetryAgentRunResponses = {
|
|
|
16102
17274
|
unvaluedCallCount: number
|
|
16103
17275
|
}
|
|
16104
17276
|
diagnostics?: Array<{
|
|
16105
|
-
code: "step_limit_reached" | "output_limit_reached"
|
|
17277
|
+
code: "step_limit_reached" | "output_limit_reached" | "workspace_not_saved"
|
|
16106
17278
|
severity: "warning" | "error"
|
|
16107
17279
|
scope: "run"
|
|
16108
17280
|
message: string
|
|
@@ -16312,6 +17484,10 @@ export type ListAgentThreadRunsResponses = {
|
|
|
16312
17484
|
}
|
|
16313
17485
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
16314
17486
|
runsOn?: "computer"
|
|
17487
|
+
computer?: {
|
|
17488
|
+
id: string
|
|
17489
|
+
folder: string
|
|
17490
|
+
}
|
|
16315
17491
|
modelId?: string
|
|
16316
17492
|
finishReason?:
|
|
16317
17493
|
| "stop"
|
|
@@ -16366,7 +17542,7 @@ export type ListAgentThreadRunsResponses = {
|
|
|
16366
17542
|
unvaluedCallCount: number
|
|
16367
17543
|
}
|
|
16368
17544
|
diagnostics?: Array<{
|
|
16369
|
-
code: "step_limit_reached" | "output_limit_reached"
|
|
17545
|
+
code: "step_limit_reached" | "output_limit_reached" | "workspace_not_saved"
|
|
16370
17546
|
severity: "warning" | "error"
|
|
16371
17547
|
scope: "run"
|
|
16372
17548
|
message: string
|
|
@@ -16480,6 +17656,10 @@ export type GetAgentRunResponses = {
|
|
|
16480
17656
|
}
|
|
16481
17657
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
16482
17658
|
runsOn?: "computer"
|
|
17659
|
+
computer?: {
|
|
17660
|
+
id: string
|
|
17661
|
+
folder: string
|
|
17662
|
+
}
|
|
16483
17663
|
modelId?: string
|
|
16484
17664
|
finishReason?:
|
|
16485
17665
|
| "stop"
|
|
@@ -16534,7 +17714,7 @@ export type GetAgentRunResponses = {
|
|
|
16534
17714
|
unvaluedCallCount: number
|
|
16535
17715
|
}
|
|
16536
17716
|
diagnostics?: Array<{
|
|
16537
|
-
code: "step_limit_reached" | "output_limit_reached"
|
|
17717
|
+
code: "step_limit_reached" | "output_limit_reached" | "workspace_not_saved"
|
|
16538
17718
|
severity: "warning" | "error"
|
|
16539
17719
|
scope: "run"
|
|
16540
17720
|
message: string
|
|
@@ -16660,6 +17840,10 @@ export type CancelAgentRunByIdResponses = {
|
|
|
16660
17840
|
}
|
|
16661
17841
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
16662
17842
|
runsOn?: "computer"
|
|
17843
|
+
computer?: {
|
|
17844
|
+
id: string
|
|
17845
|
+
folder: string
|
|
17846
|
+
}
|
|
16663
17847
|
modelId?: string
|
|
16664
17848
|
finishReason?:
|
|
16665
17849
|
| "stop"
|
|
@@ -16714,7 +17898,7 @@ export type CancelAgentRunByIdResponses = {
|
|
|
16714
17898
|
unvaluedCallCount: number
|
|
16715
17899
|
}
|
|
16716
17900
|
diagnostics?: Array<{
|
|
16717
|
-
code: "step_limit_reached" | "output_limit_reached"
|
|
17901
|
+
code: "step_limit_reached" | "output_limit_reached" | "workspace_not_saved"
|
|
16718
17902
|
severity: "warning" | "error"
|
|
16719
17903
|
scope: "run"
|
|
16720
17904
|
message: string
|
|
@@ -16759,6 +17943,60 @@ export type CancelAgentRunByIdResponses = {
|
|
|
16759
17943
|
export type CancelAgentRunByIdResponse =
|
|
16760
17944
|
CancelAgentRunByIdResponses[keyof CancelAgentRunByIdResponses]
|
|
16761
17945
|
|
|
17946
|
+
export type MarkAgentThreadReadData = {
|
|
17947
|
+
body: {
|
|
17948
|
+
throughMessageId?: string
|
|
17949
|
+
}
|
|
17950
|
+
path: {
|
|
17951
|
+
threadId: string
|
|
17952
|
+
}
|
|
17953
|
+
query?: never
|
|
17954
|
+
url: "/api/agent-threads/{threadId}/read"
|
|
17955
|
+
}
|
|
17956
|
+
|
|
17957
|
+
export type MarkAgentThreadReadErrors = {
|
|
17958
|
+
/**
|
|
17959
|
+
* Response for status 400
|
|
17960
|
+
*/
|
|
17961
|
+
400: {
|
|
17962
|
+
error: string
|
|
17963
|
+
code?: string
|
|
17964
|
+
}
|
|
17965
|
+
/**
|
|
17966
|
+
* Response for status 404
|
|
17967
|
+
*/
|
|
17968
|
+
404: {
|
|
17969
|
+
error: string
|
|
17970
|
+
code?: string
|
|
17971
|
+
}
|
|
17972
|
+
/**
|
|
17973
|
+
* Response for status 501
|
|
17974
|
+
*/
|
|
17975
|
+
501: {
|
|
17976
|
+
error: string
|
|
17977
|
+
}
|
|
17978
|
+
}
|
|
17979
|
+
|
|
17980
|
+
export type MarkAgentThreadReadError = MarkAgentThreadReadErrors[keyof MarkAgentThreadReadErrors]
|
|
17981
|
+
|
|
17982
|
+
export type MarkAgentThreadReadResponses = {
|
|
17983
|
+
/**
|
|
17984
|
+
* Response for status 200
|
|
17985
|
+
*/
|
|
17986
|
+
200: {
|
|
17987
|
+
read: {
|
|
17988
|
+
threadId: string
|
|
17989
|
+
throughSeq: number
|
|
17990
|
+
headSeq: number
|
|
17991
|
+
unread: number
|
|
17992
|
+
readAt?: string
|
|
17993
|
+
}
|
|
17994
|
+
}
|
|
17995
|
+
}
|
|
17996
|
+
|
|
17997
|
+
export type MarkAgentThreadReadResponse =
|
|
17998
|
+
MarkAgentThreadReadResponses[keyof MarkAgentThreadReadResponses]
|
|
17999
|
+
|
|
16762
18000
|
export type ListAgentThreadChildrenData = {
|
|
16763
18001
|
body?: never
|
|
16764
18002
|
path: {
|
|
@@ -17067,6 +18305,42 @@ export type MoveAgentThreadToCloudResponses = {
|
|
|
17067
18305
|
messageCount: number
|
|
17068
18306
|
createdAt: string
|
|
17069
18307
|
updatedAt: string
|
|
18308
|
+
read?: {
|
|
18309
|
+
threadId: string
|
|
18310
|
+
throughSeq: number
|
|
18311
|
+
headSeq: number
|
|
18312
|
+
unread: number
|
|
18313
|
+
readAt?: string
|
|
18314
|
+
}
|
|
18315
|
+
lastRun?: {
|
|
18316
|
+
id: string
|
|
18317
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
18318
|
+
finishReason?:
|
|
18319
|
+
| "stop"
|
|
18320
|
+
| "length"
|
|
18321
|
+
| "content-filter"
|
|
18322
|
+
| "tool-calls"
|
|
18323
|
+
| "timeout"
|
|
18324
|
+
| "interrupted"
|
|
18325
|
+
| "awaiting_approval"
|
|
18326
|
+
| "awaiting_answer"
|
|
18327
|
+
| "error"
|
|
18328
|
+
| "other"
|
|
18329
|
+
| "unknown"
|
|
18330
|
+
errorCode?:
|
|
18331
|
+
| "internal.unexpected"
|
|
18332
|
+
| "runtime.cancelled"
|
|
18333
|
+
| "agent.context_limit_exceeded"
|
|
18334
|
+
| "agent.execution_failed"
|
|
18335
|
+
| "agent.step_limit_reached"
|
|
18336
|
+
| "ai.usage_limit_exceeded"
|
|
18337
|
+
| "ai.usage_limit_unavailable"
|
|
18338
|
+
completedAt?: string
|
|
18339
|
+
requestedBy?: {
|
|
18340
|
+
type: "user" | "serviceAccount"
|
|
18341
|
+
id: string
|
|
18342
|
+
}
|
|
18343
|
+
}
|
|
17070
18344
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
17071
18345
|
approvalModeSource?: "thread" | "default" | "fallback" | "run"
|
|
17072
18346
|
}
|
|
@@ -17205,6 +18479,42 @@ export type MoveAgentThreadToComputerResponses = {
|
|
|
17205
18479
|
messageCount: number
|
|
17206
18480
|
createdAt: string
|
|
17207
18481
|
updatedAt: string
|
|
18482
|
+
read?: {
|
|
18483
|
+
threadId: string
|
|
18484
|
+
throughSeq: number
|
|
18485
|
+
headSeq: number
|
|
18486
|
+
unread: number
|
|
18487
|
+
readAt?: string
|
|
18488
|
+
}
|
|
18489
|
+
lastRun?: {
|
|
18490
|
+
id: string
|
|
18491
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
18492
|
+
finishReason?:
|
|
18493
|
+
| "stop"
|
|
18494
|
+
| "length"
|
|
18495
|
+
| "content-filter"
|
|
18496
|
+
| "tool-calls"
|
|
18497
|
+
| "timeout"
|
|
18498
|
+
| "interrupted"
|
|
18499
|
+
| "awaiting_approval"
|
|
18500
|
+
| "awaiting_answer"
|
|
18501
|
+
| "error"
|
|
18502
|
+
| "other"
|
|
18503
|
+
| "unknown"
|
|
18504
|
+
errorCode?:
|
|
18505
|
+
| "internal.unexpected"
|
|
18506
|
+
| "runtime.cancelled"
|
|
18507
|
+
| "agent.context_limit_exceeded"
|
|
18508
|
+
| "agent.execution_failed"
|
|
18509
|
+
| "agent.step_limit_reached"
|
|
18510
|
+
| "ai.usage_limit_exceeded"
|
|
18511
|
+
| "ai.usage_limit_unavailable"
|
|
18512
|
+
completedAt?: string
|
|
18513
|
+
requestedBy?: {
|
|
18514
|
+
type: "user" | "serviceAccount"
|
|
18515
|
+
id: string
|
|
18516
|
+
}
|
|
18517
|
+
}
|
|
17208
18518
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
17209
18519
|
approvalModeSource?: "thread" | "default" | "fallback" | "run"
|
|
17210
18520
|
}
|
|
@@ -17579,6 +18889,42 @@ export type SetAgentThreadApprovalModeResponses = {
|
|
|
17579
18889
|
messageCount: number
|
|
17580
18890
|
createdAt: string
|
|
17581
18891
|
updatedAt: string
|
|
18892
|
+
read?: {
|
|
18893
|
+
threadId: string
|
|
18894
|
+
throughSeq: number
|
|
18895
|
+
headSeq: number
|
|
18896
|
+
unread: number
|
|
18897
|
+
readAt?: string
|
|
18898
|
+
}
|
|
18899
|
+
lastRun?: {
|
|
18900
|
+
id: string
|
|
18901
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
18902
|
+
finishReason?:
|
|
18903
|
+
| "stop"
|
|
18904
|
+
| "length"
|
|
18905
|
+
| "content-filter"
|
|
18906
|
+
| "tool-calls"
|
|
18907
|
+
| "timeout"
|
|
18908
|
+
| "interrupted"
|
|
18909
|
+
| "awaiting_approval"
|
|
18910
|
+
| "awaiting_answer"
|
|
18911
|
+
| "error"
|
|
18912
|
+
| "other"
|
|
18913
|
+
| "unknown"
|
|
18914
|
+
errorCode?:
|
|
18915
|
+
| "internal.unexpected"
|
|
18916
|
+
| "runtime.cancelled"
|
|
18917
|
+
| "agent.context_limit_exceeded"
|
|
18918
|
+
| "agent.execution_failed"
|
|
18919
|
+
| "agent.step_limit_reached"
|
|
18920
|
+
| "ai.usage_limit_exceeded"
|
|
18921
|
+
| "ai.usage_limit_unavailable"
|
|
18922
|
+
completedAt?: string
|
|
18923
|
+
requestedBy?: {
|
|
18924
|
+
type: "user" | "serviceAccount"
|
|
18925
|
+
id: string
|
|
18926
|
+
}
|
|
18927
|
+
}
|
|
17582
18928
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
17583
18929
|
approvalModeSource?: "thread" | "default" | "fallback" | "run"
|
|
17584
18930
|
}
|
|
@@ -18069,6 +19415,10 @@ export type DecideAgentApprovalResponses = {
|
|
|
18069
19415
|
}
|
|
18070
19416
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
18071
19417
|
runsOn?: "computer"
|
|
19418
|
+
computer?: {
|
|
19419
|
+
id: string
|
|
19420
|
+
folder: string
|
|
19421
|
+
}
|
|
18072
19422
|
modelId?: string
|
|
18073
19423
|
finishReason?:
|
|
18074
19424
|
| "stop"
|
|
@@ -18123,7 +19473,7 @@ export type DecideAgentApprovalResponses = {
|
|
|
18123
19473
|
unvaluedCallCount: number
|
|
18124
19474
|
}
|
|
18125
19475
|
diagnostics?: Array<{
|
|
18126
|
-
code: "step_limit_reached" | "output_limit_reached"
|
|
19476
|
+
code: "step_limit_reached" | "output_limit_reached" | "workspace_not_saved"
|
|
18127
19477
|
severity: "warning" | "error"
|
|
18128
19478
|
scope: "run"
|
|
18129
19479
|
message: string
|
|
@@ -18501,6 +19851,42 @@ export type GetObservedAgentThreadResponses = {
|
|
|
18501
19851
|
messageCount: number
|
|
18502
19852
|
createdAt: string
|
|
18503
19853
|
updatedAt: string
|
|
19854
|
+
read?: {
|
|
19855
|
+
threadId: string
|
|
19856
|
+
throughSeq: number
|
|
19857
|
+
headSeq: number
|
|
19858
|
+
unread: number
|
|
19859
|
+
readAt?: string
|
|
19860
|
+
}
|
|
19861
|
+
lastRun?: {
|
|
19862
|
+
id: string
|
|
19863
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
19864
|
+
finishReason?:
|
|
19865
|
+
| "stop"
|
|
19866
|
+
| "length"
|
|
19867
|
+
| "content-filter"
|
|
19868
|
+
| "tool-calls"
|
|
19869
|
+
| "timeout"
|
|
19870
|
+
| "interrupted"
|
|
19871
|
+
| "awaiting_approval"
|
|
19872
|
+
| "awaiting_answer"
|
|
19873
|
+
| "error"
|
|
19874
|
+
| "other"
|
|
19875
|
+
| "unknown"
|
|
19876
|
+
errorCode?:
|
|
19877
|
+
| "internal.unexpected"
|
|
19878
|
+
| "runtime.cancelled"
|
|
19879
|
+
| "agent.context_limit_exceeded"
|
|
19880
|
+
| "agent.execution_failed"
|
|
19881
|
+
| "agent.step_limit_reached"
|
|
19882
|
+
| "ai.usage_limit_exceeded"
|
|
19883
|
+
| "ai.usage_limit_unavailable"
|
|
19884
|
+
completedAt?: string
|
|
19885
|
+
requestedBy?: {
|
|
19886
|
+
type: "user" | "serviceAccount"
|
|
19887
|
+
id: string
|
|
19888
|
+
}
|
|
19889
|
+
}
|
|
18504
19890
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
18505
19891
|
approvalModeSource?: "thread" | "default" | "fallback" | "run"
|
|
18506
19892
|
}
|
|
@@ -18913,7 +20299,7 @@ export type ListObservedAgentThreadMessagesResponses = {
|
|
|
18913
20299
|
}
|
|
18914
20300
|
>
|
|
18915
20301
|
annotations: Array<{
|
|
18916
|
-
code: "step_limit_reached" | "output_limit_reached"
|
|
20302
|
+
code: "step_limit_reached" | "output_limit_reached" | "workspace_not_saved"
|
|
18917
20303
|
severity: "warning" | "error"
|
|
18918
20304
|
scope: "run"
|
|
18919
20305
|
message: string
|
|
@@ -19089,6 +20475,10 @@ export type ListObservedAgentThreadRunsResponses = {
|
|
|
19089
20475
|
}
|
|
19090
20476
|
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
19091
20477
|
runsOn?: "computer"
|
|
20478
|
+
computer?: {
|
|
20479
|
+
id: string
|
|
20480
|
+
folder: string
|
|
20481
|
+
}
|
|
19092
20482
|
modelId?: string
|
|
19093
20483
|
finishReason?:
|
|
19094
20484
|
| "stop"
|
|
@@ -19143,7 +20533,7 @@ export type ListObservedAgentThreadRunsResponses = {
|
|
|
19143
20533
|
unvaluedCallCount: number
|
|
19144
20534
|
}
|
|
19145
20535
|
diagnostics?: Array<{
|
|
19146
|
-
code: "step_limit_reached" | "output_limit_reached"
|
|
20536
|
+
code: "step_limit_reached" | "output_limit_reached" | "workspace_not_saved"
|
|
19147
20537
|
severity: "warning" | "error"
|
|
19148
20538
|
scope: "run"
|
|
19149
20539
|
message: string
|
|
@@ -27060,6 +28450,10 @@ export type ListProjectionsResponses = {
|
|
|
27060
28450
|
objectProjections: Array<{
|
|
27061
28451
|
_tag: "ObjectProjectionDefinition"
|
|
27062
28452
|
id: string
|
|
28453
|
+
/**
|
|
28454
|
+
* Folder below the definition's directory, such as `raw/erp`; absent at its top.
|
|
28455
|
+
*/
|
|
28456
|
+
folder?: string
|
|
27063
28457
|
objectTypeId: string
|
|
27064
28458
|
datasetId: string
|
|
27065
28459
|
properties: {
|
|
@@ -27263,6 +28657,10 @@ export type ListProjectionsResponses = {
|
|
|
27263
28657
|
linkProjections: Array<{
|
|
27264
28658
|
_tag: "LinkProjectionDefinition"
|
|
27265
28659
|
id: string
|
|
28660
|
+
/**
|
|
28661
|
+
* Folder below the definition's directory, such as `raw/erp`; absent at its top.
|
|
28662
|
+
*/
|
|
28663
|
+
folder?: string
|
|
27266
28664
|
linkId: string
|
|
27267
28665
|
sourceObjectTypeId: string
|
|
27268
28666
|
targetObjectTypeId: string
|
|
@@ -27447,6 +28845,10 @@ export type ListProjectionsResponses = {
|
|
|
27447
28845
|
telemetryProjections: Array<{
|
|
27448
28846
|
_tag: "TelemetryProjectionDefinition"
|
|
27449
28847
|
id: string
|
|
28848
|
+
/**
|
|
28849
|
+
* Folder below the definition's directory, such as `raw/erp`; absent at its top.
|
|
28850
|
+
*/
|
|
28851
|
+
folder?: string
|
|
27450
28852
|
objectTypeId: string
|
|
27451
28853
|
datasetId: string
|
|
27452
28854
|
objectIdField: string
|
|
@@ -27665,6 +29067,10 @@ export type GetProjectionResponses = {
|
|
|
27665
29067
|
| {
|
|
27666
29068
|
_tag: "ObjectProjectionDefinition"
|
|
27667
29069
|
id: string
|
|
29070
|
+
/**
|
|
29071
|
+
* Folder below the definition's directory, such as `raw/erp`; absent at its top.
|
|
29072
|
+
*/
|
|
29073
|
+
folder?: string
|
|
27668
29074
|
objectTypeId: string
|
|
27669
29075
|
datasetId: string
|
|
27670
29076
|
properties: {
|
|
@@ -27868,6 +29274,10 @@ export type GetProjectionResponses = {
|
|
|
27868
29274
|
| {
|
|
27869
29275
|
_tag: "LinkProjectionDefinition"
|
|
27870
29276
|
id: string
|
|
29277
|
+
/**
|
|
29278
|
+
* Folder below the definition's directory, such as `raw/erp`; absent at its top.
|
|
29279
|
+
*/
|
|
29280
|
+
folder?: string
|
|
27871
29281
|
linkId: string
|
|
27872
29282
|
sourceObjectTypeId: string
|
|
27873
29283
|
targetObjectTypeId: string
|
|
@@ -28052,6 +29462,10 @@ export type GetProjectionResponses = {
|
|
|
28052
29462
|
| {
|
|
28053
29463
|
_tag: "TelemetryProjectionDefinition"
|
|
28054
29464
|
id: string
|
|
29465
|
+
/**
|
|
29466
|
+
* Folder below the definition's directory, such as `raw/erp`; absent at its top.
|
|
29467
|
+
*/
|
|
29468
|
+
folder?: string
|
|
28055
29469
|
objectTypeId: string
|
|
28056
29470
|
datasetId: string
|
|
28057
29471
|
objectIdField: string
|