@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
|
@@ -1995,6 +1995,10 @@ export type GetAiAccountingOverviewData = {
|
|
|
1995
1995
|
*/
|
|
1996
1996
|
kind?: "language" | "image" | "video" | "embedding" | "decision" | "transcription" | "speech" | "reranking" | "web-search";
|
|
1997
1997
|
bucket: "hour" | "day" | "week";
|
|
1998
|
+
/**
|
|
1999
|
+
* The IANA time zone whose days, weeks or hours the periods follow, such as America/New_York; UTC when absent
|
|
2000
|
+
*/
|
|
2001
|
+
timeZone?: string;
|
|
1998
2002
|
};
|
|
1999
2003
|
url: "/api/ai/accounting/overview";
|
|
2000
2004
|
};
|
|
@@ -4100,6 +4104,12 @@ export type TranscribeAudioResponses = {
|
|
|
4100
4104
|
reason?: string;
|
|
4101
4105
|
};
|
|
4102
4106
|
text: string;
|
|
4107
|
+
words?: Array<{
|
|
4108
|
+
text: string;
|
|
4109
|
+
startMs: number;
|
|
4110
|
+
endMs: number;
|
|
4111
|
+
speaker?: string;
|
|
4112
|
+
}>;
|
|
4103
4113
|
};
|
|
4104
4114
|
};
|
|
4105
4115
|
export type TranscribeAudioResponse = TranscribeAudioResponses[keyof TranscribeAudioResponses];
|
|
@@ -5963,6 +5973,7 @@ export type ListSyncsResponses = {
|
|
|
5963
5973
|
id: string;
|
|
5964
5974
|
projectId: string;
|
|
5965
5975
|
syncId: string;
|
|
5976
|
+
connectionId?: string;
|
|
5966
5977
|
datasetId: string;
|
|
5967
5978
|
mode: "snapshot" | "append" | "merge";
|
|
5968
5979
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
@@ -5978,7 +5989,7 @@ export type ListSyncsResponses = {
|
|
|
5978
5989
|
expectedLatestVersionId?: string;
|
|
5979
5990
|
commitMessage?: string;
|
|
5980
5991
|
error?: {
|
|
5981
|
-
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed";
|
|
5992
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
|
|
5982
5993
|
message: string;
|
|
5983
5994
|
retryable: boolean;
|
|
5984
5995
|
at: string;
|
|
@@ -5993,6 +6004,14 @@ export type ListSyncsResponses = {
|
|
|
5993
6004
|
truncated?: true;
|
|
5994
6005
|
};
|
|
5995
6006
|
} | null;
|
|
6007
|
+
accounts?: {
|
|
6008
|
+
total: number;
|
|
6009
|
+
running: number;
|
|
6010
|
+
needsReconnecting: number;
|
|
6011
|
+
failing: number;
|
|
6012
|
+
synced: number;
|
|
6013
|
+
lastSyncedAt?: string;
|
|
6014
|
+
};
|
|
5996
6015
|
}>;
|
|
5997
6016
|
};
|
|
5998
6017
|
export type ListSyncsResponse = ListSyncsResponses[keyof ListSyncsResponses];
|
|
@@ -6049,6 +6068,7 @@ export type GetSyncResponses = {
|
|
|
6049
6068
|
id: string;
|
|
6050
6069
|
projectId: string;
|
|
6051
6070
|
syncId: string;
|
|
6071
|
+
connectionId?: string;
|
|
6052
6072
|
datasetId: string;
|
|
6053
6073
|
mode: "snapshot" | "append" | "merge";
|
|
6054
6074
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
@@ -6064,7 +6084,7 @@ export type GetSyncResponses = {
|
|
|
6064
6084
|
expectedLatestVersionId?: string;
|
|
6065
6085
|
commitMessage?: string;
|
|
6066
6086
|
error?: {
|
|
6067
|
-
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed";
|
|
6087
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
|
|
6068
6088
|
message: string;
|
|
6069
6089
|
retryable: boolean;
|
|
6070
6090
|
at: string;
|
|
@@ -6079,14 +6099,142 @@ export type GetSyncResponses = {
|
|
|
6079
6099
|
truncated?: true;
|
|
6080
6100
|
};
|
|
6081
6101
|
} | null;
|
|
6102
|
+
accounts?: {
|
|
6103
|
+
total: number;
|
|
6104
|
+
running: number;
|
|
6105
|
+
needsReconnecting: number;
|
|
6106
|
+
failing: number;
|
|
6107
|
+
synced: number;
|
|
6108
|
+
lastSyncedAt?: string;
|
|
6109
|
+
};
|
|
6082
6110
|
};
|
|
6083
6111
|
};
|
|
6084
6112
|
export type GetSyncResponse = GetSyncResponses[keyof GetSyncResponses];
|
|
6113
|
+
export type ListConnectorAccountsData = {
|
|
6114
|
+
body?: never;
|
|
6115
|
+
path: {
|
|
6116
|
+
connectorId: string;
|
|
6117
|
+
};
|
|
6118
|
+
query?: never;
|
|
6119
|
+
url: "/api/connectors/{connectorId}/accounts";
|
|
6120
|
+
};
|
|
6121
|
+
export type ListConnectorAccountsResponses = {
|
|
6122
|
+
/**
|
|
6123
|
+
* Response for status 200
|
|
6124
|
+
*/
|
|
6125
|
+
200: {
|
|
6126
|
+
accounts: Array<{
|
|
6127
|
+
connection: {
|
|
6128
|
+
id: string;
|
|
6129
|
+
owner: {
|
|
6130
|
+
type: "project";
|
|
6131
|
+
} | {
|
|
6132
|
+
type: "user";
|
|
6133
|
+
id: string;
|
|
6134
|
+
};
|
|
6135
|
+
slot: string;
|
|
6136
|
+
account: {
|
|
6137
|
+
id: string;
|
|
6138
|
+
label: string;
|
|
6139
|
+
};
|
|
6140
|
+
};
|
|
6141
|
+
latestRuns: Array<{
|
|
6142
|
+
id: string;
|
|
6143
|
+
projectId: string;
|
|
6144
|
+
syncId: string;
|
|
6145
|
+
connectionId?: string;
|
|
6146
|
+
datasetId: string;
|
|
6147
|
+
mode: "snapshot" | "append" | "merge";
|
|
6148
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
6149
|
+
attempt: number;
|
|
6150
|
+
queuedAt: string;
|
|
6151
|
+
startedAt?: string;
|
|
6152
|
+
finishedAt?: string;
|
|
6153
|
+
rowsRead?: number;
|
|
6154
|
+
output?: {
|
|
6155
|
+
datasetId: string;
|
|
6156
|
+
versionId: string;
|
|
6157
|
+
};
|
|
6158
|
+
expectedLatestVersionId?: string;
|
|
6159
|
+
commitMessage?: string;
|
|
6160
|
+
error?: {
|
|
6161
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
|
|
6162
|
+
message: string;
|
|
6163
|
+
retryable: boolean;
|
|
6164
|
+
at: string;
|
|
6165
|
+
/**
|
|
6166
|
+
* Any JSON-compatible value.
|
|
6167
|
+
*/
|
|
6168
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
6169
|
+
[key: string]: unknown;
|
|
6170
|
+
} | null;
|
|
6171
|
+
httpStatus?: number;
|
|
6172
|
+
redacted?: true;
|
|
6173
|
+
truncated?: true;
|
|
6174
|
+
};
|
|
6175
|
+
}>;
|
|
6176
|
+
}>;
|
|
6177
|
+
};
|
|
6178
|
+
};
|
|
6179
|
+
export type ListConnectorAccountsResponse = ListConnectorAccountsResponses[keyof ListConnectorAccountsResponses];
|
|
6180
|
+
export type ListConnectorConnectionSyncRunsData = {
|
|
6181
|
+
body?: never;
|
|
6182
|
+
path: {
|
|
6183
|
+
connectorId: string;
|
|
6184
|
+
connectionId: string;
|
|
6185
|
+
};
|
|
6186
|
+
query?: never;
|
|
6187
|
+
url: "/api/connectors/{connectorId}/connections/{connectionId}/sync-runs";
|
|
6188
|
+
};
|
|
6189
|
+
export type ListConnectorConnectionSyncRunsResponses = {
|
|
6190
|
+
/**
|
|
6191
|
+
* Response for status 200
|
|
6192
|
+
*/
|
|
6193
|
+
200: {
|
|
6194
|
+
runs: Array<{
|
|
6195
|
+
id: string;
|
|
6196
|
+
projectId: string;
|
|
6197
|
+
syncId: string;
|
|
6198
|
+
connectionId?: string;
|
|
6199
|
+
datasetId: string;
|
|
6200
|
+
mode: "snapshot" | "append" | "merge";
|
|
6201
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
6202
|
+
attempt: number;
|
|
6203
|
+
queuedAt: string;
|
|
6204
|
+
startedAt?: string;
|
|
6205
|
+
finishedAt?: string;
|
|
6206
|
+
rowsRead?: number;
|
|
6207
|
+
output?: {
|
|
6208
|
+
datasetId: string;
|
|
6209
|
+
versionId: string;
|
|
6210
|
+
};
|
|
6211
|
+
expectedLatestVersionId?: string;
|
|
6212
|
+
commitMessage?: string;
|
|
6213
|
+
error?: {
|
|
6214
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
|
|
6215
|
+
message: string;
|
|
6216
|
+
retryable: boolean;
|
|
6217
|
+
at: string;
|
|
6218
|
+
/**
|
|
6219
|
+
* Any JSON-compatible value.
|
|
6220
|
+
*/
|
|
6221
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
6222
|
+
[key: string]: unknown;
|
|
6223
|
+
} | null;
|
|
6224
|
+
httpStatus?: number;
|
|
6225
|
+
redacted?: true;
|
|
6226
|
+
truncated?: true;
|
|
6227
|
+
};
|
|
6228
|
+
}>;
|
|
6229
|
+
};
|
|
6230
|
+
};
|
|
6231
|
+
export type ListConnectorConnectionSyncRunsResponse = ListConnectorConnectionSyncRunsResponses[keyof ListConnectorConnectionSyncRunsResponses];
|
|
6085
6232
|
export type ListSyncRunsData = {
|
|
6086
6233
|
body?: never;
|
|
6087
6234
|
path?: never;
|
|
6088
6235
|
query?: {
|
|
6089
6236
|
syncId?: string;
|
|
6237
|
+
connectionId?: string;
|
|
6090
6238
|
datasetId?: string;
|
|
6091
6239
|
status?: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
6092
6240
|
startedAfter?: string;
|
|
@@ -6121,6 +6269,7 @@ export type ListSyncRunsResponses = {
|
|
|
6121
6269
|
id: string;
|
|
6122
6270
|
projectId: string;
|
|
6123
6271
|
syncId: string;
|
|
6272
|
+
connectionId?: string;
|
|
6124
6273
|
datasetId: string;
|
|
6125
6274
|
mode: "snapshot" | "append" | "merge";
|
|
6126
6275
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
@@ -6136,7 +6285,7 @@ export type ListSyncRunsResponses = {
|
|
|
6136
6285
|
expectedLatestVersionId?: string;
|
|
6137
6286
|
commitMessage?: string;
|
|
6138
6287
|
error?: {
|
|
6139
|
-
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed";
|
|
6288
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
|
|
6140
6289
|
message: string;
|
|
6141
6290
|
retryable: boolean;
|
|
6142
6291
|
at: string;
|
|
@@ -6158,6 +6307,7 @@ export type ListSyncRunsResponses = {
|
|
|
6158
6307
|
export type ListSyncRunsResponse = ListSyncRunsResponses[keyof ListSyncRunsResponses];
|
|
6159
6308
|
export type RequestSyncRunData = {
|
|
6160
6309
|
body: {
|
|
6310
|
+
connectionId?: string;
|
|
6161
6311
|
expectedLatestVersionId?: string;
|
|
6162
6312
|
commitMessage?: string;
|
|
6163
6313
|
};
|
|
@@ -6193,10 +6343,13 @@ export type RequestSyncRunResponses = {
|
|
|
6193
6343
|
* Response for status 202
|
|
6194
6344
|
*/
|
|
6195
6345
|
202: {
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6346
|
+
runs: Array<{
|
|
6347
|
+
runId: string;
|
|
6348
|
+
jobId: string;
|
|
6349
|
+
syncId: string;
|
|
6350
|
+
connectionId?: string;
|
|
6351
|
+
queuedAt: string;
|
|
6352
|
+
}>;
|
|
6200
6353
|
};
|
|
6201
6354
|
};
|
|
6202
6355
|
export type RequestSyncRunResponse = RequestSyncRunResponses[keyof RequestSyncRunResponses];
|
|
@@ -10585,6 +10738,24 @@ export type ListAgentThreadsResponses = {
|
|
|
10585
10738
|
messageCount: number;
|
|
10586
10739
|
createdAt: string;
|
|
10587
10740
|
updatedAt: string;
|
|
10741
|
+
read?: {
|
|
10742
|
+
threadId: string;
|
|
10743
|
+
throughSeq: number;
|
|
10744
|
+
headSeq: number;
|
|
10745
|
+
unread: number;
|
|
10746
|
+
readAt?: string;
|
|
10747
|
+
};
|
|
10748
|
+
lastRun?: {
|
|
10749
|
+
id: string;
|
|
10750
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
10751
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
|
|
10752
|
+
errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
10753
|
+
completedAt?: string;
|
|
10754
|
+
requestedBy?: {
|
|
10755
|
+
type: "user" | "serviceAccount";
|
|
10756
|
+
id: string;
|
|
10757
|
+
};
|
|
10758
|
+
};
|
|
10588
10759
|
approvalMode?: "manual" | "accept-edits" | "auto";
|
|
10589
10760
|
approvalModeSource?: "thread" | "default" | "fallback" | "run";
|
|
10590
10761
|
}>;
|
|
@@ -10710,6 +10881,24 @@ export type CreateAgentThreadResponses = {
|
|
|
10710
10881
|
messageCount: number;
|
|
10711
10882
|
createdAt: string;
|
|
10712
10883
|
updatedAt: string;
|
|
10884
|
+
read?: {
|
|
10885
|
+
threadId: string;
|
|
10886
|
+
throughSeq: number;
|
|
10887
|
+
headSeq: number;
|
|
10888
|
+
unread: number;
|
|
10889
|
+
readAt?: string;
|
|
10890
|
+
};
|
|
10891
|
+
lastRun?: {
|
|
10892
|
+
id: string;
|
|
10893
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
10894
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
|
|
10895
|
+
errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
10896
|
+
completedAt?: string;
|
|
10897
|
+
requestedBy?: {
|
|
10898
|
+
type: "user" | "serviceAccount";
|
|
10899
|
+
id: string;
|
|
10900
|
+
};
|
|
10901
|
+
};
|
|
10713
10902
|
approvalMode?: "manual" | "accept-edits" | "auto";
|
|
10714
10903
|
approvalModeSource?: "thread" | "default" | "fallback" | "run";
|
|
10715
10904
|
};
|
|
@@ -10814,6 +11003,24 @@ export type GetAgentThreadResponses = {
|
|
|
10814
11003
|
messageCount: number;
|
|
10815
11004
|
createdAt: string;
|
|
10816
11005
|
updatedAt: string;
|
|
11006
|
+
read?: {
|
|
11007
|
+
threadId: string;
|
|
11008
|
+
throughSeq: number;
|
|
11009
|
+
headSeq: number;
|
|
11010
|
+
unread: number;
|
|
11011
|
+
readAt?: string;
|
|
11012
|
+
};
|
|
11013
|
+
lastRun?: {
|
|
11014
|
+
id: string;
|
|
11015
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
11016
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
|
|
11017
|
+
errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
11018
|
+
completedAt?: string;
|
|
11019
|
+
requestedBy?: {
|
|
11020
|
+
type: "user" | "serviceAccount";
|
|
11021
|
+
id: string;
|
|
11022
|
+
};
|
|
11023
|
+
};
|
|
10817
11024
|
approvalMode?: "manual" | "accept-edits" | "auto";
|
|
10818
11025
|
approvalModeSource?: "thread" | "default" | "fallback" | "run";
|
|
10819
11026
|
};
|
|
@@ -10939,6 +11146,24 @@ export type AddAgentThreadParticipantsResponses = {
|
|
|
10939
11146
|
messageCount: number;
|
|
10940
11147
|
createdAt: string;
|
|
10941
11148
|
updatedAt: string;
|
|
11149
|
+
read?: {
|
|
11150
|
+
threadId: string;
|
|
11151
|
+
throughSeq: number;
|
|
11152
|
+
headSeq: number;
|
|
11153
|
+
unread: number;
|
|
11154
|
+
readAt?: string;
|
|
11155
|
+
};
|
|
11156
|
+
lastRun?: {
|
|
11157
|
+
id: string;
|
|
11158
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
11159
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
|
|
11160
|
+
errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
11161
|
+
completedAt?: string;
|
|
11162
|
+
requestedBy?: {
|
|
11163
|
+
type: "user" | "serviceAccount";
|
|
11164
|
+
id: string;
|
|
11165
|
+
};
|
|
11166
|
+
};
|
|
10942
11167
|
approvalMode?: "manual" | "accept-edits" | "auto";
|
|
10943
11168
|
approvalModeSource?: "thread" | "default" | "fallback" | "run";
|
|
10944
11169
|
};
|
|
@@ -11102,6 +11327,24 @@ export type ForkAgentThreadResponses = {
|
|
|
11102
11327
|
messageCount: number;
|
|
11103
11328
|
createdAt: string;
|
|
11104
11329
|
updatedAt: string;
|
|
11330
|
+
read?: {
|
|
11331
|
+
threadId: string;
|
|
11332
|
+
throughSeq: number;
|
|
11333
|
+
headSeq: number;
|
|
11334
|
+
unread: number;
|
|
11335
|
+
readAt?: string;
|
|
11336
|
+
};
|
|
11337
|
+
lastRun?: {
|
|
11338
|
+
id: string;
|
|
11339
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
11340
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
|
|
11341
|
+
errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
11342
|
+
completedAt?: string;
|
|
11343
|
+
requestedBy?: {
|
|
11344
|
+
type: "user" | "serviceAccount";
|
|
11345
|
+
id: string;
|
|
11346
|
+
};
|
|
11347
|
+
};
|
|
11105
11348
|
approvalMode?: "manual" | "accept-edits" | "auto";
|
|
11106
11349
|
approvalModeSource?: "thread" | "default" | "fallback" | "run";
|
|
11107
11350
|
};
|
|
@@ -11216,6 +11459,24 @@ export type RecreateAgentThreadSandboxResponses = {
|
|
|
11216
11459
|
messageCount: number;
|
|
11217
11460
|
createdAt: string;
|
|
11218
11461
|
updatedAt: string;
|
|
11462
|
+
read?: {
|
|
11463
|
+
threadId: string;
|
|
11464
|
+
throughSeq: number;
|
|
11465
|
+
headSeq: number;
|
|
11466
|
+
unread: number;
|
|
11467
|
+
readAt?: string;
|
|
11468
|
+
};
|
|
11469
|
+
lastRun?: {
|
|
11470
|
+
id: string;
|
|
11471
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
11472
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
|
|
11473
|
+
errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
11474
|
+
completedAt?: string;
|
|
11475
|
+
requestedBy?: {
|
|
11476
|
+
type: "user" | "serviceAccount";
|
|
11477
|
+
id: string;
|
|
11478
|
+
};
|
|
11479
|
+
};
|
|
11219
11480
|
approvalMode?: "manual" | "accept-edits" | "auto";
|
|
11220
11481
|
approvalModeSource?: "thread" | "default" | "fallback" | "run";
|
|
11221
11482
|
};
|
|
@@ -11329,6 +11590,24 @@ export type RestoreAgentThreadSandboxResponses = {
|
|
|
11329
11590
|
messageCount: number;
|
|
11330
11591
|
createdAt: string;
|
|
11331
11592
|
updatedAt: string;
|
|
11593
|
+
read?: {
|
|
11594
|
+
threadId: string;
|
|
11595
|
+
throughSeq: number;
|
|
11596
|
+
headSeq: number;
|
|
11597
|
+
unread: number;
|
|
11598
|
+
readAt?: string;
|
|
11599
|
+
};
|
|
11600
|
+
lastRun?: {
|
|
11601
|
+
id: string;
|
|
11602
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
11603
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
|
|
11604
|
+
errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
11605
|
+
completedAt?: string;
|
|
11606
|
+
requestedBy?: {
|
|
11607
|
+
type: "user" | "serviceAccount";
|
|
11608
|
+
id: string;
|
|
11609
|
+
};
|
|
11610
|
+
};
|
|
11332
11611
|
approvalMode?: "manual" | "accept-edits" | "auto";
|
|
11333
11612
|
approvalModeSource?: "thread" | "default" | "fallback" | "run";
|
|
11334
11613
|
};
|
|
@@ -11754,6 +12033,10 @@ export type PostAgentThreadMessageResponses = {
|
|
|
11754
12033
|
};
|
|
11755
12034
|
approvalMode?: "manual" | "accept-edits" | "auto";
|
|
11756
12035
|
runsOn?: "computer";
|
|
12036
|
+
computer?: {
|
|
12037
|
+
id: string;
|
|
12038
|
+
folder: string;
|
|
12039
|
+
};
|
|
11757
12040
|
modelId?: string;
|
|
11758
12041
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
|
|
11759
12042
|
usage?: {
|
|
@@ -12047,6 +12330,7 @@ export type PostAgentThreadMessageResponses = {
|
|
|
12047
12330
|
timeZone?: string;
|
|
12048
12331
|
locale?: string;
|
|
12049
12332
|
immediate?: boolean;
|
|
12333
|
+
replacesMessageId?: string;
|
|
12050
12334
|
createdAt: string;
|
|
12051
12335
|
updatedAt: string;
|
|
12052
12336
|
};
|
|
@@ -12403,6 +12687,7 @@ export type ListAgentThreadInboxResponses = {
|
|
|
12403
12687
|
timeZone?: string;
|
|
12404
12688
|
locale?: string;
|
|
12405
12689
|
immediate?: boolean;
|
|
12690
|
+
replacesMessageId?: string;
|
|
12406
12691
|
createdAt: string;
|
|
12407
12692
|
updatedAt: string;
|
|
12408
12693
|
}>;
|
|
@@ -12746,23 +13031,69 @@ export type UpdateAgentThreadInboxItemResponses = {
|
|
|
12746
13031
|
timeZone?: string;
|
|
12747
13032
|
locale?: string;
|
|
12748
13033
|
immediate?: boolean;
|
|
13034
|
+
replacesMessageId?: string;
|
|
12749
13035
|
createdAt: string;
|
|
12750
13036
|
updatedAt: string;
|
|
12751
13037
|
};
|
|
12752
13038
|
};
|
|
12753
13039
|
};
|
|
12754
13040
|
export type UpdateAgentThreadInboxItemResponse = UpdateAgentThreadInboxItemResponses[keyof UpdateAgentThreadInboxItemResponses];
|
|
12755
|
-
export type
|
|
13041
|
+
export type EditAgentThreadMessageData = {
|
|
12756
13042
|
body: {
|
|
12757
|
-
|
|
13043
|
+
text?: string;
|
|
13044
|
+
model?: {
|
|
13045
|
+
provider: string;
|
|
13046
|
+
modelId: string;
|
|
13047
|
+
};
|
|
13048
|
+
reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
13049
|
+
budgetTokens: number;
|
|
13050
|
+
};
|
|
13051
|
+
timeZone?: string;
|
|
13052
|
+
locale?: string;
|
|
13053
|
+
approvalMode?: "manual" | "accept-edits" | "auto";
|
|
13054
|
+
attachments?: Array<{
|
|
13055
|
+
blobId: string;
|
|
13056
|
+
digest: string;
|
|
13057
|
+
sizeBytes: number;
|
|
13058
|
+
fileName?: string;
|
|
13059
|
+
mediaType?: string;
|
|
13060
|
+
logicalPath?: string;
|
|
13061
|
+
}>;
|
|
13062
|
+
context?: Array<{
|
|
13063
|
+
context: {
|
|
13064
|
+
kind: "object";
|
|
13065
|
+
ref: {
|
|
13066
|
+
objectTypeId: string;
|
|
13067
|
+
primaryId: string;
|
|
13068
|
+
};
|
|
13069
|
+
/**
|
|
13070
|
+
* Shown in the chat instead of the object's title. Never sent to the model.
|
|
13071
|
+
*/
|
|
13072
|
+
label?: string;
|
|
13073
|
+
} | {
|
|
13074
|
+
kind: "app-state";
|
|
13075
|
+
id: string;
|
|
13076
|
+
label: string;
|
|
13077
|
+
description: string;
|
|
13078
|
+
/**
|
|
13079
|
+
* Any JSON-compatible value.
|
|
13080
|
+
*/
|
|
13081
|
+
value: string | number | boolean | Array<unknown> | {
|
|
13082
|
+
[key: string]: unknown;
|
|
13083
|
+
} | null;
|
|
13084
|
+
};
|
|
13085
|
+
origin: "ambient" | "explicit";
|
|
13086
|
+
}>;
|
|
13087
|
+
nextMessageId?: string;
|
|
12758
13088
|
};
|
|
12759
13089
|
path: {
|
|
12760
13090
|
threadId: string;
|
|
13091
|
+
messageId: string;
|
|
12761
13092
|
};
|
|
12762
13093
|
query?: never;
|
|
12763
|
-
url: "/api/agent-threads/{threadId}/
|
|
13094
|
+
url: "/api/agent-threads/{threadId}/messages/{messageId}/edit";
|
|
12764
13095
|
};
|
|
12765
|
-
export type
|
|
13096
|
+
export type EditAgentThreadMessageErrors = {
|
|
12766
13097
|
/**
|
|
12767
13098
|
* Response for status 400
|
|
12768
13099
|
*/
|
|
@@ -12790,6 +13121,22 @@ export type CancelAgentRunErrors = {
|
|
|
12790
13121
|
error: string;
|
|
12791
13122
|
code?: string;
|
|
12792
13123
|
};
|
|
13124
|
+
/**
|
|
13125
|
+
* Response for status 429
|
|
13126
|
+
*/
|
|
13127
|
+
429: {
|
|
13128
|
+
error: string;
|
|
13129
|
+
/**
|
|
13130
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
13131
|
+
*/
|
|
13132
|
+
code: "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
13133
|
+
/**
|
|
13134
|
+
* Any JSON-compatible value.
|
|
13135
|
+
*/
|
|
13136
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
13137
|
+
[key: string]: unknown;
|
|
13138
|
+
} | null;
|
|
13139
|
+
};
|
|
12793
13140
|
/**
|
|
12794
13141
|
* Response for status 501
|
|
12795
13142
|
*/
|
|
@@ -12797,7 +13144,384 @@ export type CancelAgentRunErrors = {
|
|
|
12797
13144
|
error: string;
|
|
12798
13145
|
};
|
|
12799
13146
|
};
|
|
12800
|
-
export type
|
|
13147
|
+
export type EditAgentThreadMessageError = EditAgentThreadMessageErrors[keyof EditAgentThreadMessageErrors];
|
|
13148
|
+
export type EditAgentThreadMessageResponses = {
|
|
13149
|
+
/**
|
|
13150
|
+
* Response for status 202
|
|
13151
|
+
*/
|
|
13152
|
+
202: {
|
|
13153
|
+
run?: {
|
|
13154
|
+
id: string;
|
|
13155
|
+
projectId: string;
|
|
13156
|
+
kind: "conversation" | "subagent";
|
|
13157
|
+
threadId: string;
|
|
13158
|
+
triggerMessageId: string;
|
|
13159
|
+
parentRunId?: string;
|
|
13160
|
+
requestedBy?: {
|
|
13161
|
+
type: "user" | "serviceAccount";
|
|
13162
|
+
id: string;
|
|
13163
|
+
};
|
|
13164
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
13165
|
+
model?: {
|
|
13166
|
+
provider: string;
|
|
13167
|
+
modelId: string;
|
|
13168
|
+
};
|
|
13169
|
+
tier?: "light" | "standard" | "heavy";
|
|
13170
|
+
reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
13171
|
+
budgetTokens: number;
|
|
13172
|
+
};
|
|
13173
|
+
approvalMode?: "manual" | "accept-edits" | "auto";
|
|
13174
|
+
runsOn?: "computer";
|
|
13175
|
+
computer?: {
|
|
13176
|
+
id: string;
|
|
13177
|
+
folder: string;
|
|
13178
|
+
};
|
|
13179
|
+
modelId?: string;
|
|
13180
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
|
|
13181
|
+
usage?: {
|
|
13182
|
+
inputTokens?: number;
|
|
13183
|
+
outputTokens?: number;
|
|
13184
|
+
totalTokens?: number;
|
|
13185
|
+
uncachedInputTokens?: number;
|
|
13186
|
+
cacheReadInputTokens?: number;
|
|
13187
|
+
cacheWriteInputTokens?: number;
|
|
13188
|
+
textOutputTokens?: number;
|
|
13189
|
+
reasoningOutputTokens?: number;
|
|
13190
|
+
/**
|
|
13191
|
+
* Audio content duration in milliseconds; not billed duration.
|
|
13192
|
+
*/
|
|
13193
|
+
audioDurationMs?: number;
|
|
13194
|
+
/**
|
|
13195
|
+
* Output tokens that encode generated images, within outputTokens.
|
|
13196
|
+
*/
|
|
13197
|
+
imageOutputTokens?: number;
|
|
13198
|
+
/**
|
|
13199
|
+
* Output tokens that encode generated audio, within outputTokens.
|
|
13200
|
+
*/
|
|
13201
|
+
audioOutputTokens?: number;
|
|
13202
|
+
/**
|
|
13203
|
+
* Images the call returned.
|
|
13204
|
+
*/
|
|
13205
|
+
outputImages?: number;
|
|
13206
|
+
/**
|
|
13207
|
+
* Input characters, counted by the provider's own billing rule.
|
|
13208
|
+
*/
|
|
13209
|
+
inputCharacters?: number;
|
|
13210
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
13211
|
+
};
|
|
13212
|
+
cost?: {
|
|
13213
|
+
amounts: Array<{
|
|
13214
|
+
currency: string;
|
|
13215
|
+
amountNanos: string;
|
|
13216
|
+
}>;
|
|
13217
|
+
ratedCallCount: number;
|
|
13218
|
+
unpriceableCallCount: number;
|
|
13219
|
+
unvaluedCallCount: number;
|
|
13220
|
+
};
|
|
13221
|
+
diagnostics?: Array<{
|
|
13222
|
+
code: "step_limit_reached" | "output_limit_reached";
|
|
13223
|
+
severity: "warning" | "error";
|
|
13224
|
+
scope: "run";
|
|
13225
|
+
message: string;
|
|
13226
|
+
}>;
|
|
13227
|
+
error?: {
|
|
13228
|
+
code: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
13229
|
+
message: string;
|
|
13230
|
+
retryable: boolean;
|
|
13231
|
+
at: string;
|
|
13232
|
+
/**
|
|
13233
|
+
* Any JSON-compatible value.
|
|
13234
|
+
*/
|
|
13235
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
13236
|
+
[key: string]: unknown;
|
|
13237
|
+
} | null;
|
|
13238
|
+
httpStatus?: number;
|
|
13239
|
+
redacted?: true;
|
|
13240
|
+
truncated?: true;
|
|
13241
|
+
};
|
|
13242
|
+
attempt: number;
|
|
13243
|
+
streamId: string;
|
|
13244
|
+
createdAt: string;
|
|
13245
|
+
startedAt?: string;
|
|
13246
|
+
completedAt?: string;
|
|
13247
|
+
};
|
|
13248
|
+
item?: {
|
|
13249
|
+
id: string;
|
|
13250
|
+
projectId: string;
|
|
13251
|
+
threadId: string;
|
|
13252
|
+
messageId: string;
|
|
13253
|
+
seq: number;
|
|
13254
|
+
authorPrincipal: {
|
|
13255
|
+
type: "user" | "serviceAccount" | "system";
|
|
13256
|
+
id: string;
|
|
13257
|
+
};
|
|
13258
|
+
mode: "steer" | "queue";
|
|
13259
|
+
parts: Array<{
|
|
13260
|
+
type: "text";
|
|
13261
|
+
text: string;
|
|
13262
|
+
/**
|
|
13263
|
+
* Any JSON-compatible value.
|
|
13264
|
+
*/
|
|
13265
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
13266
|
+
[key: string]: unknown;
|
|
13267
|
+
} | null;
|
|
13268
|
+
} | {
|
|
13269
|
+
type: "continuation";
|
|
13270
|
+
} | {
|
|
13271
|
+
type: "approval-outcome";
|
|
13272
|
+
approvalId: string;
|
|
13273
|
+
status: "approved" | "denied" | "cancelled" | "superseded" | "expired";
|
|
13274
|
+
call: {
|
|
13275
|
+
kind: "action";
|
|
13276
|
+
actionId: string;
|
|
13277
|
+
subject: {
|
|
13278
|
+
kind: "none";
|
|
13279
|
+
} | {
|
|
13280
|
+
kind: "object";
|
|
13281
|
+
objectTypeId: string;
|
|
13282
|
+
primaryId: string;
|
|
13283
|
+
};
|
|
13284
|
+
} | {
|
|
13285
|
+
kind: "workflow";
|
|
13286
|
+
workflowId: string;
|
|
13287
|
+
};
|
|
13288
|
+
outcome?: {
|
|
13289
|
+
kind: "action-run";
|
|
13290
|
+
runId: string;
|
|
13291
|
+
status: "succeeded" | "failed";
|
|
13292
|
+
error?: {
|
|
13293
|
+
code: "internal.unexpected" | "runtime.cancelled" | "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.timeout" | "object.unique_violation";
|
|
13294
|
+
message: string;
|
|
13295
|
+
retryable: boolean;
|
|
13296
|
+
at: string;
|
|
13297
|
+
details: {
|
|
13298
|
+
actionId: string;
|
|
13299
|
+
runId: string;
|
|
13300
|
+
phase: "validation" | "writeback" | "edits" | "commit" | "effects";
|
|
13301
|
+
};
|
|
13302
|
+
httpStatus?: number;
|
|
13303
|
+
redacted?: true;
|
|
13304
|
+
truncated?: true;
|
|
13305
|
+
};
|
|
13306
|
+
} | {
|
|
13307
|
+
kind: "workflow-run";
|
|
13308
|
+
runId: string;
|
|
13309
|
+
queuedAt: string;
|
|
13310
|
+
} | {
|
|
13311
|
+
kind: "error";
|
|
13312
|
+
error: {
|
|
13313
|
+
code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.change_refused" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
13314
|
+
message: string;
|
|
13315
|
+
retryable: boolean;
|
|
13316
|
+
at: string;
|
|
13317
|
+
/**
|
|
13318
|
+
* Any JSON-compatible value.
|
|
13319
|
+
*/
|
|
13320
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
13321
|
+
[key: string]: unknown;
|
|
13322
|
+
} | null;
|
|
13323
|
+
httpStatus?: number;
|
|
13324
|
+
redacted?: true;
|
|
13325
|
+
truncated?: true;
|
|
13326
|
+
};
|
|
13327
|
+
};
|
|
13328
|
+
caller?: {
|
|
13329
|
+
runId: string;
|
|
13330
|
+
key: string;
|
|
13331
|
+
continues?: true;
|
|
13332
|
+
};
|
|
13333
|
+
} | {
|
|
13334
|
+
type: "reasoning";
|
|
13335
|
+
text: string;
|
|
13336
|
+
/**
|
|
13337
|
+
* Any JSON-compatible value.
|
|
13338
|
+
*/
|
|
13339
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
13340
|
+
[key: string]: unknown;
|
|
13341
|
+
} | null;
|
|
13342
|
+
} | {
|
|
13343
|
+
type: "step-start";
|
|
13344
|
+
} | {
|
|
13345
|
+
type: "file";
|
|
13346
|
+
fileRef: {
|
|
13347
|
+
blobId: string;
|
|
13348
|
+
digest: string;
|
|
13349
|
+
sizeBytes: number;
|
|
13350
|
+
fileName?: string;
|
|
13351
|
+
mediaType?: string;
|
|
13352
|
+
logicalPath?: string;
|
|
13353
|
+
};
|
|
13354
|
+
/**
|
|
13355
|
+
* Any JSON-compatible value.
|
|
13356
|
+
*/
|
|
13357
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
13358
|
+
[key: string]: unknown;
|
|
13359
|
+
} | null;
|
|
13360
|
+
} | {
|
|
13361
|
+
type: "provider-state";
|
|
13362
|
+
providerId: string;
|
|
13363
|
+
/**
|
|
13364
|
+
* Any JSON-compatible value.
|
|
13365
|
+
*/
|
|
13366
|
+
data: string | number | boolean | Array<unknown> | {
|
|
13367
|
+
[key: string]: unknown;
|
|
13368
|
+
} | null;
|
|
13369
|
+
} | {
|
|
13370
|
+
context: {
|
|
13371
|
+
kind: "object";
|
|
13372
|
+
ref: {
|
|
13373
|
+
objectTypeId: string;
|
|
13374
|
+
primaryId: string;
|
|
13375
|
+
};
|
|
13376
|
+
/**
|
|
13377
|
+
* Shown in the chat instead of the object's title. Never sent to the model.
|
|
13378
|
+
*/
|
|
13379
|
+
label?: string;
|
|
13380
|
+
} | {
|
|
13381
|
+
kind: "app-state";
|
|
13382
|
+
id: string;
|
|
13383
|
+
label: string;
|
|
13384
|
+
description: string;
|
|
13385
|
+
/**
|
|
13386
|
+
* Any JSON-compatible value.
|
|
13387
|
+
*/
|
|
13388
|
+
value: string | number | boolean | Array<unknown> | {
|
|
13389
|
+
[key: string]: unknown;
|
|
13390
|
+
} | null;
|
|
13391
|
+
};
|
|
13392
|
+
origin: "ambient" | "explicit";
|
|
13393
|
+
type: "context";
|
|
13394
|
+
} | {
|
|
13395
|
+
type: "tool-call";
|
|
13396
|
+
toolCallId: string;
|
|
13397
|
+
toolName: string;
|
|
13398
|
+
dynamic?: boolean;
|
|
13399
|
+
providerExecuted?: boolean;
|
|
13400
|
+
/**
|
|
13401
|
+
* Any JSON-compatible value.
|
|
13402
|
+
*/
|
|
13403
|
+
input: string | number | boolean | Array<unknown> | {
|
|
13404
|
+
[key: string]: unknown;
|
|
13405
|
+
} | null;
|
|
13406
|
+
/**
|
|
13407
|
+
* Any JSON-compatible value.
|
|
13408
|
+
*/
|
|
13409
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
13410
|
+
[key: string]: unknown;
|
|
13411
|
+
} | null;
|
|
13412
|
+
state: "output-available";
|
|
13413
|
+
/**
|
|
13414
|
+
* Any JSON-compatible value.
|
|
13415
|
+
*/
|
|
13416
|
+
output: string | number | boolean | Array<unknown> | {
|
|
13417
|
+
[key: string]: unknown;
|
|
13418
|
+
} | null;
|
|
13419
|
+
outputFile?: {
|
|
13420
|
+
fileRef: {
|
|
13421
|
+
blobId: string;
|
|
13422
|
+
digest: string;
|
|
13423
|
+
sizeBytes: number;
|
|
13424
|
+
fileName?: string;
|
|
13425
|
+
mediaType?: string;
|
|
13426
|
+
logicalPath?: string;
|
|
13427
|
+
};
|
|
13428
|
+
path: string;
|
|
13429
|
+
};
|
|
13430
|
+
} | {
|
|
13431
|
+
type: "tool-call";
|
|
13432
|
+
toolCallId: string;
|
|
13433
|
+
toolName: string;
|
|
13434
|
+
dynamic?: boolean;
|
|
13435
|
+
providerExecuted?: boolean;
|
|
13436
|
+
/**
|
|
13437
|
+
* Any JSON-compatible value.
|
|
13438
|
+
*/
|
|
13439
|
+
input: string | number | boolean | Array<unknown> | {
|
|
13440
|
+
[key: string]: unknown;
|
|
13441
|
+
} | null;
|
|
13442
|
+
/**
|
|
13443
|
+
* Any JSON-compatible value.
|
|
13444
|
+
*/
|
|
13445
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
13446
|
+
[key: string]: unknown;
|
|
13447
|
+
} | null;
|
|
13448
|
+
state: "output-error";
|
|
13449
|
+
errorText: string;
|
|
13450
|
+
} | {
|
|
13451
|
+
type: "mail";
|
|
13452
|
+
id: string;
|
|
13453
|
+
from: "parent";
|
|
13454
|
+
kind: "message" | "answer";
|
|
13455
|
+
inReplyTo?: string;
|
|
13456
|
+
text: string;
|
|
13457
|
+
afterAnswer?: true;
|
|
13458
|
+
}>;
|
|
13459
|
+
spec?: {
|
|
13460
|
+
model?: {
|
|
13461
|
+
provider: string;
|
|
13462
|
+
modelId: string;
|
|
13463
|
+
};
|
|
13464
|
+
reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
13465
|
+
budgetTokens: number;
|
|
13466
|
+
};
|
|
13467
|
+
approvalMode?: "manual" | "accept-edits" | "auto";
|
|
13468
|
+
};
|
|
13469
|
+
timeZone?: string;
|
|
13470
|
+
locale?: string;
|
|
13471
|
+
immediate?: boolean;
|
|
13472
|
+
replacesMessageId?: string;
|
|
13473
|
+
createdAt: string;
|
|
13474
|
+
updatedAt: string;
|
|
13475
|
+
};
|
|
13476
|
+
};
|
|
13477
|
+
};
|
|
13478
|
+
export type EditAgentThreadMessageResponse = EditAgentThreadMessageResponses[keyof EditAgentThreadMessageResponses];
|
|
13479
|
+
export type CancelAgentRunData = {
|
|
13480
|
+
body: {
|
|
13481
|
+
runId: string;
|
|
13482
|
+
};
|
|
13483
|
+
path: {
|
|
13484
|
+
threadId: string;
|
|
13485
|
+
};
|
|
13486
|
+
query?: never;
|
|
13487
|
+
url: "/api/agent-threads/{threadId}/cancel";
|
|
13488
|
+
};
|
|
13489
|
+
export type CancelAgentRunErrors = {
|
|
13490
|
+
/**
|
|
13491
|
+
* Response for status 400
|
|
13492
|
+
*/
|
|
13493
|
+
400: {
|
|
13494
|
+
error: string;
|
|
13495
|
+
code?: string;
|
|
13496
|
+
};
|
|
13497
|
+
/**
|
|
13498
|
+
* Response for status 403
|
|
13499
|
+
*/
|
|
13500
|
+
403: {
|
|
13501
|
+
error: string;
|
|
13502
|
+
code?: string;
|
|
13503
|
+
};
|
|
13504
|
+
/**
|
|
13505
|
+
* Response for status 404
|
|
13506
|
+
*/
|
|
13507
|
+
404: {
|
|
13508
|
+
error: string;
|
|
13509
|
+
};
|
|
13510
|
+
/**
|
|
13511
|
+
* Response for status 409
|
|
13512
|
+
*/
|
|
13513
|
+
409: {
|
|
13514
|
+
error: string;
|
|
13515
|
+
code?: string;
|
|
13516
|
+
};
|
|
13517
|
+
/**
|
|
13518
|
+
* Response for status 501
|
|
13519
|
+
*/
|
|
13520
|
+
501: {
|
|
13521
|
+
error: string;
|
|
13522
|
+
};
|
|
13523
|
+
};
|
|
13524
|
+
export type CancelAgentRunError = CancelAgentRunErrors[keyof CancelAgentRunErrors];
|
|
12801
13525
|
export type CancelAgentRunResponses = {
|
|
12802
13526
|
/**
|
|
12803
13527
|
* Response for status 202
|
|
@@ -12825,6 +13549,10 @@ export type CancelAgentRunResponses = {
|
|
|
12825
13549
|
};
|
|
12826
13550
|
approvalMode?: "manual" | "accept-edits" | "auto";
|
|
12827
13551
|
runsOn?: "computer";
|
|
13552
|
+
computer?: {
|
|
13553
|
+
id: string;
|
|
13554
|
+
folder: string;
|
|
13555
|
+
};
|
|
12828
13556
|
modelId?: string;
|
|
12829
13557
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
|
|
12830
13558
|
usage?: {
|
|
@@ -12985,6 +13713,10 @@ export type RetryAgentRunResponses = {
|
|
|
12985
13713
|
};
|
|
12986
13714
|
approvalMode?: "manual" | "accept-edits" | "auto";
|
|
12987
13715
|
runsOn?: "computer";
|
|
13716
|
+
computer?: {
|
|
13717
|
+
id: string;
|
|
13718
|
+
folder: string;
|
|
13719
|
+
};
|
|
12988
13720
|
modelId?: string;
|
|
12989
13721
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
|
|
12990
13722
|
usage?: {
|
|
@@ -13194,6 +13926,10 @@ export type ListAgentThreadRunsResponses = {
|
|
|
13194
13926
|
};
|
|
13195
13927
|
approvalMode?: "manual" | "accept-edits" | "auto";
|
|
13196
13928
|
runsOn?: "computer";
|
|
13929
|
+
computer?: {
|
|
13930
|
+
id: string;
|
|
13931
|
+
folder: string;
|
|
13932
|
+
};
|
|
13197
13933
|
modelId?: string;
|
|
13198
13934
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
|
|
13199
13935
|
usage?: {
|
|
@@ -13323,6 +14059,10 @@ export type GetAgentRunResponses = {
|
|
|
13323
14059
|
};
|
|
13324
14060
|
approvalMode?: "manual" | "accept-edits" | "auto";
|
|
13325
14061
|
runsOn?: "computer";
|
|
14062
|
+
computer?: {
|
|
14063
|
+
id: string;
|
|
14064
|
+
folder: string;
|
|
14065
|
+
};
|
|
13326
14066
|
modelId?: string;
|
|
13327
14067
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
|
|
13328
14068
|
usage?: {
|
|
@@ -13465,6 +14205,10 @@ export type CancelAgentRunByIdResponses = {
|
|
|
13465
14205
|
};
|
|
13466
14206
|
approvalMode?: "manual" | "accept-edits" | "auto";
|
|
13467
14207
|
runsOn?: "computer";
|
|
14208
|
+
computer?: {
|
|
14209
|
+
id: string;
|
|
14210
|
+
folder: string;
|
|
14211
|
+
};
|
|
13468
14212
|
modelId?: string;
|
|
13469
14213
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
|
|
13470
14214
|
usage?: {
|
|
@@ -13537,6 +14281,54 @@ export type CancelAgentRunByIdResponses = {
|
|
|
13537
14281
|
};
|
|
13538
14282
|
};
|
|
13539
14283
|
export type CancelAgentRunByIdResponse = CancelAgentRunByIdResponses[keyof CancelAgentRunByIdResponses];
|
|
14284
|
+
export type MarkAgentThreadReadData = {
|
|
14285
|
+
body: {
|
|
14286
|
+
throughMessageId?: string;
|
|
14287
|
+
};
|
|
14288
|
+
path: {
|
|
14289
|
+
threadId: string;
|
|
14290
|
+
};
|
|
14291
|
+
query?: never;
|
|
14292
|
+
url: "/api/agent-threads/{threadId}/read";
|
|
14293
|
+
};
|
|
14294
|
+
export type MarkAgentThreadReadErrors = {
|
|
14295
|
+
/**
|
|
14296
|
+
* Response for status 400
|
|
14297
|
+
*/
|
|
14298
|
+
400: {
|
|
14299
|
+
error: string;
|
|
14300
|
+
code?: string;
|
|
14301
|
+
};
|
|
14302
|
+
/**
|
|
14303
|
+
* Response for status 404
|
|
14304
|
+
*/
|
|
14305
|
+
404: {
|
|
14306
|
+
error: string;
|
|
14307
|
+
code?: string;
|
|
14308
|
+
};
|
|
14309
|
+
/**
|
|
14310
|
+
* Response for status 501
|
|
14311
|
+
*/
|
|
14312
|
+
501: {
|
|
14313
|
+
error: string;
|
|
14314
|
+
};
|
|
14315
|
+
};
|
|
14316
|
+
export type MarkAgentThreadReadError = MarkAgentThreadReadErrors[keyof MarkAgentThreadReadErrors];
|
|
14317
|
+
export type MarkAgentThreadReadResponses = {
|
|
14318
|
+
/**
|
|
14319
|
+
* Response for status 200
|
|
14320
|
+
*/
|
|
14321
|
+
200: {
|
|
14322
|
+
read: {
|
|
14323
|
+
threadId: string;
|
|
14324
|
+
throughSeq: number;
|
|
14325
|
+
headSeq: number;
|
|
14326
|
+
unread: number;
|
|
14327
|
+
readAt?: string;
|
|
14328
|
+
};
|
|
14329
|
+
};
|
|
14330
|
+
};
|
|
14331
|
+
export type MarkAgentThreadReadResponse = MarkAgentThreadReadResponses[keyof MarkAgentThreadReadResponses];
|
|
13540
14332
|
export type ListAgentThreadChildrenData = {
|
|
13541
14333
|
body?: never;
|
|
13542
14334
|
path: {
|
|
@@ -13810,6 +14602,24 @@ export type MoveAgentThreadToCloudResponses = {
|
|
|
13810
14602
|
messageCount: number;
|
|
13811
14603
|
createdAt: string;
|
|
13812
14604
|
updatedAt: string;
|
|
14605
|
+
read?: {
|
|
14606
|
+
threadId: string;
|
|
14607
|
+
throughSeq: number;
|
|
14608
|
+
headSeq: number;
|
|
14609
|
+
unread: number;
|
|
14610
|
+
readAt?: string;
|
|
14611
|
+
};
|
|
14612
|
+
lastRun?: {
|
|
14613
|
+
id: string;
|
|
14614
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
14615
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
|
|
14616
|
+
errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
14617
|
+
completedAt?: string;
|
|
14618
|
+
requestedBy?: {
|
|
14619
|
+
type: "user" | "serviceAccount";
|
|
14620
|
+
id: string;
|
|
14621
|
+
};
|
|
14622
|
+
};
|
|
13813
14623
|
approvalMode?: "manual" | "accept-edits" | "auto";
|
|
13814
14624
|
approvalModeSource?: "thread" | "default" | "fallback" | "run";
|
|
13815
14625
|
};
|
|
@@ -13935,6 +14745,24 @@ export type MoveAgentThreadToComputerResponses = {
|
|
|
13935
14745
|
messageCount: number;
|
|
13936
14746
|
createdAt: string;
|
|
13937
14747
|
updatedAt: string;
|
|
14748
|
+
read?: {
|
|
14749
|
+
threadId: string;
|
|
14750
|
+
throughSeq: number;
|
|
14751
|
+
headSeq: number;
|
|
14752
|
+
unread: number;
|
|
14753
|
+
readAt?: string;
|
|
14754
|
+
};
|
|
14755
|
+
lastRun?: {
|
|
14756
|
+
id: string;
|
|
14757
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
14758
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
|
|
14759
|
+
errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
14760
|
+
completedAt?: string;
|
|
14761
|
+
requestedBy?: {
|
|
14762
|
+
type: "user" | "serviceAccount";
|
|
14763
|
+
id: string;
|
|
14764
|
+
};
|
|
14765
|
+
};
|
|
13938
14766
|
approvalMode?: "manual" | "accept-edits" | "auto";
|
|
13939
14767
|
approvalModeSource?: "thread" | "default" | "fallback" | "run";
|
|
13940
14768
|
};
|
|
@@ -14264,6 +15092,24 @@ export type SetAgentThreadApprovalModeResponses = {
|
|
|
14264
15092
|
messageCount: number;
|
|
14265
15093
|
createdAt: string;
|
|
14266
15094
|
updatedAt: string;
|
|
15095
|
+
read?: {
|
|
15096
|
+
threadId: string;
|
|
15097
|
+
throughSeq: number;
|
|
15098
|
+
headSeq: number;
|
|
15099
|
+
unread: number;
|
|
15100
|
+
readAt?: string;
|
|
15101
|
+
};
|
|
15102
|
+
lastRun?: {
|
|
15103
|
+
id: string;
|
|
15104
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
15105
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
|
|
15106
|
+
errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
15107
|
+
completedAt?: string;
|
|
15108
|
+
requestedBy?: {
|
|
15109
|
+
type: "user" | "serviceAccount";
|
|
15110
|
+
id: string;
|
|
15111
|
+
};
|
|
15112
|
+
};
|
|
14267
15113
|
approvalMode?: "manual" | "accept-edits" | "auto";
|
|
14268
15114
|
approvalModeSource?: "thread" | "default" | "fallback" | "run";
|
|
14269
15115
|
};
|
|
@@ -14570,6 +15416,10 @@ export type DecideAgentApprovalResponses = {
|
|
|
14570
15416
|
};
|
|
14571
15417
|
approvalMode?: "manual" | "accept-edits" | "auto";
|
|
14572
15418
|
runsOn?: "computer";
|
|
15419
|
+
computer?: {
|
|
15420
|
+
id: string;
|
|
15421
|
+
folder: string;
|
|
15422
|
+
};
|
|
14573
15423
|
modelId?: string;
|
|
14574
15424
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
|
|
14575
15425
|
usage?: {
|
|
@@ -14878,6 +15728,24 @@ export type GetObservedAgentThreadResponses = {
|
|
|
14878
15728
|
messageCount: number;
|
|
14879
15729
|
createdAt: string;
|
|
14880
15730
|
updatedAt: string;
|
|
15731
|
+
read?: {
|
|
15732
|
+
threadId: string;
|
|
15733
|
+
throughSeq: number;
|
|
15734
|
+
headSeq: number;
|
|
15735
|
+
unread: number;
|
|
15736
|
+
readAt?: string;
|
|
15737
|
+
};
|
|
15738
|
+
lastRun?: {
|
|
15739
|
+
id: string;
|
|
15740
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
15741
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
|
|
15742
|
+
errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
15743
|
+
completedAt?: string;
|
|
15744
|
+
requestedBy?: {
|
|
15745
|
+
type: "user" | "serviceAccount";
|
|
15746
|
+
id: string;
|
|
15747
|
+
};
|
|
15748
|
+
};
|
|
14881
15749
|
approvalMode?: "manual" | "accept-edits" | "auto";
|
|
14882
15750
|
approvalModeSource?: "thread" | "default" | "fallback" | "run";
|
|
14883
15751
|
};
|
|
@@ -15287,6 +16155,10 @@ export type ListObservedAgentThreadRunsResponses = {
|
|
|
15287
16155
|
};
|
|
15288
16156
|
approvalMode?: "manual" | "accept-edits" | "auto";
|
|
15289
16157
|
runsOn?: "computer";
|
|
16158
|
+
computer?: {
|
|
16159
|
+
id: string;
|
|
16160
|
+
folder: string;
|
|
16161
|
+
};
|
|
15290
16162
|
modelId?: string;
|
|
15291
16163
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
|
|
15292
16164
|
usage?: {
|