@sixb/client 0.1.2 → 0.1.3
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/browser.js +2 -2
- package/dist/{chunk-5vp5zr0d.js → chunk-6esh0dxx.js} +1 -1
- package/dist/{chunk-tsdnw994.js → chunk-7ts981a8.js} +2 -2
- package/dist/{chunk-skkt217g.js → chunk-eyd61e4t.js} +7 -2
- package/dist/chunk-eyd61e4t.js.map +19 -0
- package/dist/{chunk-ctf97s25.js → chunk-heqezbjc.js} +2 -2
- package/dist/{chunk-v4jdc1nb.js → chunk-hfk246y4.js} +3 -3
- package/dist/{chunk-zfne7wxr.js → chunk-yjank04c.js} +1 -1
- package/dist/connectors/queries.d.ts.map +1 -1
- package/dist/generated/@tanstack/react-query.gen.d.ts +2123 -26
- 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 +9 -1
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.d.ts +498 -7
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/hooks.js +59 -6
- package/dist/hooks.js.map +3 -3
- package/dist/index.js +10 -6
- package/dist/index.js.map +1 -1
- package/dist/logs.js +3 -3
- package/dist/models.js +6 -2
- package/dist/models.js.map +1 -1
- package/dist/query.js +3 -3
- package/package.json +2 -2
- package/src/generated/@tanstack/react-query.gen.ts +101 -0
- package/src/generated/index.ts +12 -0
- package/src/generated/sdk.gen.ts +29 -0
- package/src/generated/types.gen.ts +609 -2
- package/dist/chunk-skkt217g.js.map +0 -19
- /package/dist/{chunk-5vp5zr0d.js.map → chunk-6esh0dxx.js.map} +0 -0
- /package/dist/{chunk-tsdnw994.js.map → chunk-7ts981a8.js.map} +0 -0
- /package/dist/{chunk-ctf97s25.js.map → chunk-heqezbjc.js.map} +0 -0
- /package/dist/{chunk-v4jdc1nb.js.map → chunk-hfk246y4.js.map} +0 -0
- /package/dist/{chunk-zfne7wxr.js.map → chunk-yjank04c.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type InfiniteData, type UseMutationOptions } from "@tanstack/react-query";
|
|
2
2
|
import { type Options } from "../sdk.gen";
|
|
3
|
-
import type { AbortFileUploadData, AbortFileUploadError, AbortFileUploadResponse, AddConnectorConnectionData, AddConnectorConnectionError, AddConnectorConnectionResponse, AppendTelemetryData, AppendTelemetryError, AppendTelemetryResponse, CancelAgentRunData, CancelAgentRunError, CancelAgentRunResponse, CancelWorkflowInterventionData, CancelWorkflowInterventionError, CancelWorkflowInterventionResponse, CancelWorkflowRunData, CancelWorkflowRunError, CancelWorkflowRunResponse, CompleteFileUploadData, CompleteFileUploadError, CompleteFileUploadResponse, CountObjectsData, CountObjectsError, CountObjectsResponse, CreateAgentThreadData, CreateAgentThreadError, CreateAgentThreadResponse, CreateAuthInvitationData, CreateAuthInvitationError, CreateAuthInvitationResponse, CreateAuthPersonalAccessTokenData, CreateAuthPersonalAccessTokenError, CreateAuthPersonalAccessTokenResponse, CreateAuthServiceAccountAccessTokenData, CreateAuthServiceAccountAccessTokenError, CreateAuthServiceAccountAccessTokenResponse, CreateAuthServiceAccountData, CreateAuthServiceAccountError, CreateAuthServiceAccountResponse, CreateFileUploadData, CreateFileUploadError, CreateFileUploadResponse, DisableAuthServiceAccountData, DisableAuthServiceAccountError, DisableAuthServiceAccountResponse, DisconnectConnectorConnectionData, DisconnectConnectorConnectionError, DisconnectConnectorConnectionResponse, ExistsObjectsData, ExistsObjectsError, ExistsObjectsResponse, FacetObjectsData, FacetObjectsError, FacetObjectsResponse, GetActionData, GetActionRunData, GetActionRunError, GetActionRunFileContentData, GetActionRunFileContentResponse, GetAgentData, GetAgentMessageFileContentData, GetAgentMessageFileContentResponse, GetAgentRunData, GetAgentRunError, GetAgentThreadData, GetAgentThreadError, GetAuthAccessManagementOptionsData, GetAuthAccessManagementOptionsError, GetAuthInvitationOptionsData, GetAuthInvitationOptionsError, GetAuthMembershipOptionsData, GetAuthMembershipOptionsError, GetAuthSessionData, GetBulkTelemetryHistoryData, GetBulkTelemetryHistoryError, GetBulkTelemetryHistoryResponse, GetConnectorConnectionRunData, GetConnectorConnectionRunError, GetConnectorData, GetDatasetData, GetDatasetError, GetDatasetVersionData, GetDatasetVersionError, GetLatestTelemetryData, GetLatestTelemetryError, GetObjectData, GetObjectFileContentData, GetObjectFileContentResponse, GetObjectTypeData, GetPipelineData, GetPipelineRunData, GetPipelineRunError, GetProjectInfoData, GetProjectionData, GetProjectionRunData, GetProjectionRunError, GetRuleData, GetStatusData, GetSyncData, GetTelemetryHistoryData, GetTelemetryHistoryError, GetWorkflowAgentNodeExecutionData, GetWorkflowAgentNodeExecutionError, GetWorkflowData, GetWorkflowInterventionData, GetWorkflowInterventionError, GetWorkflowNodeRunFileContentData, GetWorkflowNodeRunFileContentResponse, GetWorkflowRunData, GetWorkflowRunError, GetWorkflowRunFileContentData, GetWorkflowRunFileContentResponse, ListActionRunsData, ListActionRunsError, ListActionsData, ListAgentsData, ListAgentThreadMessagesData, ListAgentThreadMessagesError, ListAgentThreadRunsData, ListAgentThreadRunsError, ListAgentThreadsData, ListAgentThreadsError, ListAuthAccessTokensData, ListAuthAccessTokensError, ListAuthInvitationsData, ListAuthInvitationsError, ListAuthMembersData, ListAuthMembersError, ListAuthServiceAccountAccessTokensData, ListAuthServiceAccountAccessTokensError, ListAuthServiceAccountsData, ListAuthServiceAccountsError, ListAuthSessionsData, ListConnectorConnectionsData, ListConnectorConnectionsError, ListConnectorsData, ListDatasetRowsData, ListDatasetRowsError, ListDatasetsData, ListDatasetVersionsData, ListDatasetVersionsError, ListEventsData, ListEventsError, ListLogsData, ListLogsError, ListObjectLinksData, ListObjectLinksError, ListObjectsData, ListObjectsError, ListObjectTypesData, ListPipelineRunsData, ListPipelineRunsError, ListPipelinesData, ListProjectionRunsData, ListProjectionRunsError, ListProjectionsData, ListRuleStatesData, ListRuleStatesError, ListRulesData, ListSyncRunsData, ListSyncRunsError, ListSyncsData, ListWebhookRunsData, ListWebhookRunsError, ListWorkflowInterventionsData, ListWorkflowInterventionsError, ListWorkflowRunsData, ListWorkflowRunsError, ListWorkflowsData, PostAgentThreadMessageData, PostAgentThreadMessageError, PostAgentThreadMessageResponse, QueryObjectsData, QueryObjectsError, QueryObjectsResponse, ReactivateAuthMemberData, ReactivateAuthMemberError, ReactivateAuthMemberResponse, ReauthorizeConnectorConnectionData, ReauthorizeConnectorConnectionError, ReauthorizeConnectorConnectionResponse, RemoveObjectLinkData, RemoveObjectLinkError, RemoveObjectLinkResponse, RequestActionData, RequestActionError, RequestActionResponse, RequestPipelineRunData, RequestPipelineRunError, RequestPipelineRunResponse, RequestSyncRunData, RequestSyncRunError, RequestSyncRunResponse, RequestWorkflowRunData, RequestWorkflowRunError, RequestWorkflowRunResponse, RetryAgentRunData, RetryAgentRunError, RetryAgentRunResponse, RevokeAuthAccessTokenData, RevokeAuthAccessTokenError, RevokeAuthAccessTokenResponse, RevokeAuthInvitationData, RevokeAuthInvitationError, RevokeAuthInvitationResponse, RevokeAuthServiceAccountAccessTokenData, RevokeAuthServiceAccountAccessTokenError, RevokeAuthServiceAccountAccessTokenResponse, RevokeAuthSessionData, RevokeAuthSessionError, RevokeAuthSessionResponse, RevokeConnectorConnectionData, RevokeConnectorConnectionError, RevokeConnectorConnectionResponse, SearchObjectsData, SearchObjectsError, SelectConnectorConnectionRunAccountData, SelectConnectorConnectionRunAccountError, SelectConnectorConnectionRunAccountResponse, SignFileUploadPartData, SignFileUploadPartError, SignFileUploadPartResponse, SignOutAllData, SignOutAllError, SignOutAllResponse, SignOutData, SignOutError, SignOutResponse, StartConnectorConnectionRunData, StartConnectorConnectionRunError, StartConnectorConnectionRunResponse, SubmitWorkflowInterventionData, SubmitWorkflowInterventionError, SubmitWorkflowInterventionResponse, SuspendAuthMemberData, SuspendAuthMemberError, SuspendAuthMemberResponse, UpdateAuthMemberGroupsData, UpdateAuthMemberGroupsError, UpdateAuthMemberGroupsResponse, UploadFileContentData, UploadFileContentError, UploadFileContentResponse, UploadFileRawData, UploadFileRawError, UploadFileRawResponse, UpsertObjectData, UpsertObjectError, UpsertObjectLinkData, UpsertObjectLinkError, UpsertObjectLinkResponse, UpsertObjectResponse } from "../types.gen";
|
|
3
|
+
import type { AbortFileUploadData, AbortFileUploadError, AbortFileUploadResponse, AddConnectorConnectionData, AddConnectorConnectionError, AddConnectorConnectionResponse, AppendTelemetryData, AppendTelemetryError, AppendTelemetryResponse, CancelAgentRunData, CancelAgentRunError, CancelAgentRunResponse, CancelWorkflowInterventionData, CancelWorkflowInterventionError, CancelWorkflowInterventionResponse, CancelWorkflowRunData, CancelWorkflowRunError, CancelWorkflowRunResponse, CompleteFileUploadData, CompleteFileUploadError, CompleteFileUploadResponse, CountObjectsData, CountObjectsError, CountObjectsResponse, CreateAgentThreadData, CreateAgentThreadError, CreateAgentThreadResponse, CreateAuthInvitationData, CreateAuthInvitationError, CreateAuthInvitationResponse, CreateAuthPersonalAccessTokenData, CreateAuthPersonalAccessTokenError, CreateAuthPersonalAccessTokenResponse, CreateAuthServiceAccountAccessTokenData, CreateAuthServiceAccountAccessTokenError, CreateAuthServiceAccountAccessTokenResponse, CreateAuthServiceAccountData, CreateAuthServiceAccountError, CreateAuthServiceAccountResponse, CreateFileUploadData, CreateFileUploadError, CreateFileUploadResponse, DisableAuthServiceAccountData, DisableAuthServiceAccountError, DisableAuthServiceAccountResponse, DisconnectConnectorConnectionData, DisconnectConnectorConnectionError, DisconnectConnectorConnectionResponse, ExistsObjectsData, ExistsObjectsError, ExistsObjectsResponse, FacetObjectsData, FacetObjectsError, FacetObjectsResponse, GetActionData, GetActionRunData, GetActionRunError, GetActionRunFileContentData, GetActionRunFileContentResponse, GetAgentData, GetAgentMessageFileContentData, GetAgentMessageFileContentResponse, GetAgentRunData, GetAgentRunError, GetAgentThreadData, GetAgentThreadError, GetAiAccountingOverviewData, GetAiAccountingOverviewError, GetAuthAccessManagementOptionsData, GetAuthAccessManagementOptionsError, GetAuthInvitationOptionsData, GetAuthInvitationOptionsError, GetAuthMembershipOptionsData, GetAuthMembershipOptionsError, GetAuthSessionData, GetBulkTelemetryHistoryData, GetBulkTelemetryHistoryError, GetBulkTelemetryHistoryResponse, GetConnectorConnectionRunData, GetConnectorConnectionRunError, GetConnectorData, GetDatasetData, GetDatasetError, GetDatasetVersionData, GetDatasetVersionError, GetLatestTelemetryData, GetLatestTelemetryError, GetObjectData, GetObjectFileContentData, GetObjectFileContentResponse, GetObjectTypeData, GetPipelineData, GetPipelineRunData, GetPipelineRunError, GetProjectInfoData, GetProjectionData, GetProjectionRunData, GetProjectionRunError, GetRuleData, GetStatusData, GetSyncData, GetTelemetryHistoryData, GetTelemetryHistoryError, GetWorkflowAgentNodeExecutionData, GetWorkflowAgentNodeExecutionError, GetWorkflowData, GetWorkflowInterventionData, GetWorkflowInterventionError, GetWorkflowNodeRunFileContentData, GetWorkflowNodeRunFileContentResponse, GetWorkflowRunData, GetWorkflowRunError, GetWorkflowRunFileContentData, GetWorkflowRunFileContentResponse, ListActionRunsData, ListActionRunsError, ListActionsData, ListAgentsData, ListAgentThreadMessagesData, ListAgentThreadMessagesError, ListAgentThreadRunsData, ListAgentThreadRunsError, ListAgentThreadsData, ListAgentThreadsError, ListAiModelCallsData, ListAiModelCallsError, ListAuthAccessTokensData, ListAuthAccessTokensError, ListAuthInvitationsData, ListAuthInvitationsError, ListAuthMembersData, ListAuthMembersError, ListAuthServiceAccountAccessTokensData, ListAuthServiceAccountAccessTokensError, ListAuthServiceAccountsData, ListAuthServiceAccountsError, ListAuthSessionsData, ListConnectorConnectionsData, ListConnectorConnectionsError, ListConnectorsData, ListDatasetRowsData, ListDatasetRowsError, ListDatasetsData, ListDatasetVersionsData, ListDatasetVersionsError, ListEventsData, ListEventsError, ListLogsData, ListLogsError, ListObjectLinksData, ListObjectLinksError, ListObjectsData, ListObjectsError, ListObjectTypesData, ListPipelineRunsData, ListPipelineRunsError, ListPipelinesData, ListProjectionRunsData, ListProjectionRunsError, ListProjectionsData, ListRuleStatesData, ListRuleStatesError, ListRulesData, ListSyncRunsData, ListSyncRunsError, ListSyncsData, ListWebhookRunsData, ListWebhookRunsError, ListWorkflowInterventionsData, ListWorkflowInterventionsError, ListWorkflowRunsData, ListWorkflowRunsError, ListWorkflowsData, PostAgentThreadMessageData, PostAgentThreadMessageError, PostAgentThreadMessageResponse, QueryObjectsData, QueryObjectsError, QueryObjectsResponse, ReactivateAuthMemberData, ReactivateAuthMemberError, ReactivateAuthMemberResponse, ReauthorizeConnectorConnectionData, ReauthorizeConnectorConnectionError, ReauthorizeConnectorConnectionResponse, RemoveObjectLinkData, RemoveObjectLinkError, RemoveObjectLinkResponse, RequestActionData, RequestActionError, RequestActionResponse, RequestPipelineRunData, RequestPipelineRunError, RequestPipelineRunResponse, RequestSyncRunData, RequestSyncRunError, RequestSyncRunResponse, RequestWorkflowRunData, RequestWorkflowRunError, RequestWorkflowRunResponse, RetryAgentRunData, RetryAgentRunError, RetryAgentRunResponse, RevokeAuthAccessTokenData, RevokeAuthAccessTokenError, RevokeAuthAccessTokenResponse, RevokeAuthInvitationData, RevokeAuthInvitationError, RevokeAuthInvitationResponse, RevokeAuthServiceAccountAccessTokenData, RevokeAuthServiceAccountAccessTokenError, RevokeAuthServiceAccountAccessTokenResponse, RevokeAuthSessionData, RevokeAuthSessionError, RevokeAuthSessionResponse, RevokeConnectorConnectionData, RevokeConnectorConnectionError, RevokeConnectorConnectionResponse, SearchObjectsData, SearchObjectsError, SelectConnectorConnectionRunAccountData, SelectConnectorConnectionRunAccountError, SelectConnectorConnectionRunAccountResponse, SignFileUploadPartData, SignFileUploadPartError, SignFileUploadPartResponse, SignOutAllData, SignOutAllError, SignOutAllResponse, SignOutData, SignOutError, SignOutResponse, StartConnectorConnectionRunData, StartConnectorConnectionRunError, StartConnectorConnectionRunResponse, SubmitWorkflowInterventionData, SubmitWorkflowInterventionError, SubmitWorkflowInterventionResponse, SuspendAuthMemberData, SuspendAuthMemberError, SuspendAuthMemberResponse, UpdateAuthMemberGroupsData, UpdateAuthMemberGroupsError, UpdateAuthMemberGroupsResponse, UploadFileContentData, UploadFileContentError, UploadFileContentResponse, UploadFileRawData, UploadFileRawError, UploadFileRawResponse, UpsertObjectData, UpsertObjectError, UpsertObjectLinkData, UpsertObjectLinkError, UpsertObjectLinkResponse, UpsertObjectResponse } from "../types.gen";
|
|
4
4
|
export type QueryKey<TOptions extends Options> = [
|
|
5
5
|
Pick<TOptions, "baseUrl" | "body" | "headers" | "path" | "query"> & {
|
|
6
6
|
_id: string;
|
|
@@ -1150,6 +1150,1530 @@ export declare const suspendAuthMemberMutation: (options?: Partial<Options<Suspe
|
|
|
1150
1150
|
* Reactivate an auth member
|
|
1151
1151
|
*/
|
|
1152
1152
|
export declare const reactivateAuthMemberMutation: (options?: Partial<Options<ReactivateAuthMemberData>>) => UseMutationOptions<ReactivateAuthMemberResponse, ReactivateAuthMemberError, Options<ReactivateAuthMemberData>>;
|
|
1153
|
+
export declare const getAiAccountingOverviewQueryKey: (options: Options<GetAiAccountingOverviewData>) => [Pick<Options<GetAiAccountingOverviewData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1154
|
+
_id: string;
|
|
1155
|
+
_infinite?: boolean;
|
|
1156
|
+
tags?: ReadonlyArray<string>;
|
|
1157
|
+
}];
|
|
1158
|
+
/**
|
|
1159
|
+
* Get project AI usage and cost analytics
|
|
1160
|
+
*/
|
|
1161
|
+
export declare const getAiAccountingOverviewOptions: (options: Options<GetAiAccountingOverviewData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
1162
|
+
range: {
|
|
1163
|
+
from: string;
|
|
1164
|
+
to: string;
|
|
1165
|
+
};
|
|
1166
|
+
bucket: "hour" | "day" | "week";
|
|
1167
|
+
totals: {
|
|
1168
|
+
modelCallCount: number;
|
|
1169
|
+
usage: {
|
|
1170
|
+
inputTokens?: number;
|
|
1171
|
+
outputTokens?: number;
|
|
1172
|
+
totalTokens?: number;
|
|
1173
|
+
uncachedInputTokens?: number;
|
|
1174
|
+
cacheReadInputTokens?: number;
|
|
1175
|
+
cacheWriteInputTokens?: number;
|
|
1176
|
+
textOutputTokens?: number;
|
|
1177
|
+
reasoningOutputTokens?: number;
|
|
1178
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1179
|
+
};
|
|
1180
|
+
costs: {
|
|
1181
|
+
amounts: Array<{
|
|
1182
|
+
currency: string;
|
|
1183
|
+
amountNanos: string;
|
|
1184
|
+
}>;
|
|
1185
|
+
ratedCallCount: number;
|
|
1186
|
+
unpriceableCallCount: number;
|
|
1187
|
+
unvaluedCallCount: number;
|
|
1188
|
+
};
|
|
1189
|
+
};
|
|
1190
|
+
series: Array<{
|
|
1191
|
+
modelCallCount: number;
|
|
1192
|
+
usage: {
|
|
1193
|
+
inputTokens?: number;
|
|
1194
|
+
outputTokens?: number;
|
|
1195
|
+
totalTokens?: number;
|
|
1196
|
+
uncachedInputTokens?: number;
|
|
1197
|
+
cacheReadInputTokens?: number;
|
|
1198
|
+
cacheWriteInputTokens?: number;
|
|
1199
|
+
textOutputTokens?: number;
|
|
1200
|
+
reasoningOutputTokens?: number;
|
|
1201
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1202
|
+
};
|
|
1203
|
+
costs: {
|
|
1204
|
+
amounts: Array<{
|
|
1205
|
+
currency: string;
|
|
1206
|
+
amountNanos: string;
|
|
1207
|
+
}>;
|
|
1208
|
+
ratedCallCount: number;
|
|
1209
|
+
unpriceableCallCount: number;
|
|
1210
|
+
unvaluedCallCount: number;
|
|
1211
|
+
};
|
|
1212
|
+
start: string;
|
|
1213
|
+
end: string;
|
|
1214
|
+
}>;
|
|
1215
|
+
models: Array<{
|
|
1216
|
+
modelCallCount: number;
|
|
1217
|
+
usage: {
|
|
1218
|
+
inputTokens?: number;
|
|
1219
|
+
outputTokens?: number;
|
|
1220
|
+
totalTokens?: number;
|
|
1221
|
+
uncachedInputTokens?: number;
|
|
1222
|
+
cacheReadInputTokens?: number;
|
|
1223
|
+
cacheWriteInputTokens?: number;
|
|
1224
|
+
textOutputTokens?: number;
|
|
1225
|
+
reasoningOutputTokens?: number;
|
|
1226
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1227
|
+
};
|
|
1228
|
+
costs: {
|
|
1229
|
+
amounts: Array<{
|
|
1230
|
+
currency: string;
|
|
1231
|
+
amountNanos: string;
|
|
1232
|
+
}>;
|
|
1233
|
+
ratedCallCount: number;
|
|
1234
|
+
unpriceableCallCount: number;
|
|
1235
|
+
unvaluedCallCount: number;
|
|
1236
|
+
};
|
|
1237
|
+
providerId: string;
|
|
1238
|
+
modelId: string;
|
|
1239
|
+
}>;
|
|
1240
|
+
agents: Array<{
|
|
1241
|
+
modelCallCount: number;
|
|
1242
|
+
usage: {
|
|
1243
|
+
inputTokens?: number;
|
|
1244
|
+
outputTokens?: number;
|
|
1245
|
+
totalTokens?: number;
|
|
1246
|
+
uncachedInputTokens?: number;
|
|
1247
|
+
cacheReadInputTokens?: number;
|
|
1248
|
+
cacheWriteInputTokens?: number;
|
|
1249
|
+
textOutputTokens?: number;
|
|
1250
|
+
reasoningOutputTokens?: number;
|
|
1251
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1252
|
+
};
|
|
1253
|
+
costs: {
|
|
1254
|
+
amounts: Array<{
|
|
1255
|
+
currency: string;
|
|
1256
|
+
amountNanos: string;
|
|
1257
|
+
}>;
|
|
1258
|
+
ratedCallCount: number;
|
|
1259
|
+
unpriceableCallCount: number;
|
|
1260
|
+
unvaluedCallCount: number;
|
|
1261
|
+
};
|
|
1262
|
+
agentId: string;
|
|
1263
|
+
}>;
|
|
1264
|
+
workflows: Array<{
|
|
1265
|
+
modelCallCount: number;
|
|
1266
|
+
usage: {
|
|
1267
|
+
inputTokens?: number;
|
|
1268
|
+
outputTokens?: number;
|
|
1269
|
+
totalTokens?: number;
|
|
1270
|
+
uncachedInputTokens?: number;
|
|
1271
|
+
cacheReadInputTokens?: number;
|
|
1272
|
+
cacheWriteInputTokens?: number;
|
|
1273
|
+
textOutputTokens?: number;
|
|
1274
|
+
reasoningOutputTokens?: number;
|
|
1275
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1276
|
+
};
|
|
1277
|
+
costs: {
|
|
1278
|
+
amounts: Array<{
|
|
1279
|
+
currency: string;
|
|
1280
|
+
amountNanos: string;
|
|
1281
|
+
}>;
|
|
1282
|
+
ratedCallCount: number;
|
|
1283
|
+
unpriceableCallCount: number;
|
|
1284
|
+
unvaluedCallCount: number;
|
|
1285
|
+
};
|
|
1286
|
+
workflowId: string;
|
|
1287
|
+
}>;
|
|
1288
|
+
}, GetAiAccountingOverviewError, {
|
|
1289
|
+
range: {
|
|
1290
|
+
from: string;
|
|
1291
|
+
to: string;
|
|
1292
|
+
};
|
|
1293
|
+
bucket: "hour" | "day" | "week";
|
|
1294
|
+
totals: {
|
|
1295
|
+
modelCallCount: number;
|
|
1296
|
+
usage: {
|
|
1297
|
+
inputTokens?: number;
|
|
1298
|
+
outputTokens?: number;
|
|
1299
|
+
totalTokens?: number;
|
|
1300
|
+
uncachedInputTokens?: number;
|
|
1301
|
+
cacheReadInputTokens?: number;
|
|
1302
|
+
cacheWriteInputTokens?: number;
|
|
1303
|
+
textOutputTokens?: number;
|
|
1304
|
+
reasoningOutputTokens?: number;
|
|
1305
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1306
|
+
};
|
|
1307
|
+
costs: {
|
|
1308
|
+
amounts: Array<{
|
|
1309
|
+
currency: string;
|
|
1310
|
+
amountNanos: string;
|
|
1311
|
+
}>;
|
|
1312
|
+
ratedCallCount: number;
|
|
1313
|
+
unpriceableCallCount: number;
|
|
1314
|
+
unvaluedCallCount: number;
|
|
1315
|
+
};
|
|
1316
|
+
};
|
|
1317
|
+
series: Array<{
|
|
1318
|
+
modelCallCount: number;
|
|
1319
|
+
usage: {
|
|
1320
|
+
inputTokens?: number;
|
|
1321
|
+
outputTokens?: number;
|
|
1322
|
+
totalTokens?: number;
|
|
1323
|
+
uncachedInputTokens?: number;
|
|
1324
|
+
cacheReadInputTokens?: number;
|
|
1325
|
+
cacheWriteInputTokens?: number;
|
|
1326
|
+
textOutputTokens?: number;
|
|
1327
|
+
reasoningOutputTokens?: number;
|
|
1328
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1329
|
+
};
|
|
1330
|
+
costs: {
|
|
1331
|
+
amounts: Array<{
|
|
1332
|
+
currency: string;
|
|
1333
|
+
amountNanos: string;
|
|
1334
|
+
}>;
|
|
1335
|
+
ratedCallCount: number;
|
|
1336
|
+
unpriceableCallCount: number;
|
|
1337
|
+
unvaluedCallCount: number;
|
|
1338
|
+
};
|
|
1339
|
+
start: string;
|
|
1340
|
+
end: string;
|
|
1341
|
+
}>;
|
|
1342
|
+
models: Array<{
|
|
1343
|
+
modelCallCount: number;
|
|
1344
|
+
usage: {
|
|
1345
|
+
inputTokens?: number;
|
|
1346
|
+
outputTokens?: number;
|
|
1347
|
+
totalTokens?: number;
|
|
1348
|
+
uncachedInputTokens?: number;
|
|
1349
|
+
cacheReadInputTokens?: number;
|
|
1350
|
+
cacheWriteInputTokens?: number;
|
|
1351
|
+
textOutputTokens?: number;
|
|
1352
|
+
reasoningOutputTokens?: number;
|
|
1353
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1354
|
+
};
|
|
1355
|
+
costs: {
|
|
1356
|
+
amounts: Array<{
|
|
1357
|
+
currency: string;
|
|
1358
|
+
amountNanos: string;
|
|
1359
|
+
}>;
|
|
1360
|
+
ratedCallCount: number;
|
|
1361
|
+
unpriceableCallCount: number;
|
|
1362
|
+
unvaluedCallCount: number;
|
|
1363
|
+
};
|
|
1364
|
+
providerId: string;
|
|
1365
|
+
modelId: string;
|
|
1366
|
+
}>;
|
|
1367
|
+
agents: Array<{
|
|
1368
|
+
modelCallCount: number;
|
|
1369
|
+
usage: {
|
|
1370
|
+
inputTokens?: number;
|
|
1371
|
+
outputTokens?: number;
|
|
1372
|
+
totalTokens?: number;
|
|
1373
|
+
uncachedInputTokens?: number;
|
|
1374
|
+
cacheReadInputTokens?: number;
|
|
1375
|
+
cacheWriteInputTokens?: number;
|
|
1376
|
+
textOutputTokens?: number;
|
|
1377
|
+
reasoningOutputTokens?: number;
|
|
1378
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1379
|
+
};
|
|
1380
|
+
costs: {
|
|
1381
|
+
amounts: Array<{
|
|
1382
|
+
currency: string;
|
|
1383
|
+
amountNanos: string;
|
|
1384
|
+
}>;
|
|
1385
|
+
ratedCallCount: number;
|
|
1386
|
+
unpriceableCallCount: number;
|
|
1387
|
+
unvaluedCallCount: number;
|
|
1388
|
+
};
|
|
1389
|
+
agentId: string;
|
|
1390
|
+
}>;
|
|
1391
|
+
workflows: Array<{
|
|
1392
|
+
modelCallCount: number;
|
|
1393
|
+
usage: {
|
|
1394
|
+
inputTokens?: number;
|
|
1395
|
+
outputTokens?: number;
|
|
1396
|
+
totalTokens?: number;
|
|
1397
|
+
uncachedInputTokens?: number;
|
|
1398
|
+
cacheReadInputTokens?: number;
|
|
1399
|
+
cacheWriteInputTokens?: number;
|
|
1400
|
+
textOutputTokens?: number;
|
|
1401
|
+
reasoningOutputTokens?: number;
|
|
1402
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1403
|
+
};
|
|
1404
|
+
costs: {
|
|
1405
|
+
amounts: Array<{
|
|
1406
|
+
currency: string;
|
|
1407
|
+
amountNanos: string;
|
|
1408
|
+
}>;
|
|
1409
|
+
ratedCallCount: number;
|
|
1410
|
+
unpriceableCallCount: number;
|
|
1411
|
+
unvaluedCallCount: number;
|
|
1412
|
+
};
|
|
1413
|
+
workflowId: string;
|
|
1414
|
+
}>;
|
|
1415
|
+
}, [Pick<Options<GetAiAccountingOverviewData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1416
|
+
_id: string;
|
|
1417
|
+
_infinite?: boolean;
|
|
1418
|
+
tags?: ReadonlyArray<string>;
|
|
1419
|
+
}]>, "queryFn"> & {
|
|
1420
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
1421
|
+
range: {
|
|
1422
|
+
from: string;
|
|
1423
|
+
to: string;
|
|
1424
|
+
};
|
|
1425
|
+
bucket: "hour" | "day" | "week";
|
|
1426
|
+
totals: {
|
|
1427
|
+
modelCallCount: number;
|
|
1428
|
+
usage: {
|
|
1429
|
+
inputTokens?: number;
|
|
1430
|
+
outputTokens?: number;
|
|
1431
|
+
totalTokens?: number;
|
|
1432
|
+
uncachedInputTokens?: number;
|
|
1433
|
+
cacheReadInputTokens?: number;
|
|
1434
|
+
cacheWriteInputTokens?: number;
|
|
1435
|
+
textOutputTokens?: number;
|
|
1436
|
+
reasoningOutputTokens?: number;
|
|
1437
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1438
|
+
};
|
|
1439
|
+
costs: {
|
|
1440
|
+
amounts: Array<{
|
|
1441
|
+
currency: string;
|
|
1442
|
+
amountNanos: string;
|
|
1443
|
+
}>;
|
|
1444
|
+
ratedCallCount: number;
|
|
1445
|
+
unpriceableCallCount: number;
|
|
1446
|
+
unvaluedCallCount: number;
|
|
1447
|
+
};
|
|
1448
|
+
};
|
|
1449
|
+
series: Array<{
|
|
1450
|
+
modelCallCount: number;
|
|
1451
|
+
usage: {
|
|
1452
|
+
inputTokens?: number;
|
|
1453
|
+
outputTokens?: number;
|
|
1454
|
+
totalTokens?: number;
|
|
1455
|
+
uncachedInputTokens?: number;
|
|
1456
|
+
cacheReadInputTokens?: number;
|
|
1457
|
+
cacheWriteInputTokens?: number;
|
|
1458
|
+
textOutputTokens?: number;
|
|
1459
|
+
reasoningOutputTokens?: number;
|
|
1460
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1461
|
+
};
|
|
1462
|
+
costs: {
|
|
1463
|
+
amounts: Array<{
|
|
1464
|
+
currency: string;
|
|
1465
|
+
amountNanos: string;
|
|
1466
|
+
}>;
|
|
1467
|
+
ratedCallCount: number;
|
|
1468
|
+
unpriceableCallCount: number;
|
|
1469
|
+
unvaluedCallCount: number;
|
|
1470
|
+
};
|
|
1471
|
+
start: string;
|
|
1472
|
+
end: string;
|
|
1473
|
+
}>;
|
|
1474
|
+
models: Array<{
|
|
1475
|
+
modelCallCount: number;
|
|
1476
|
+
usage: {
|
|
1477
|
+
inputTokens?: number;
|
|
1478
|
+
outputTokens?: number;
|
|
1479
|
+
totalTokens?: number;
|
|
1480
|
+
uncachedInputTokens?: number;
|
|
1481
|
+
cacheReadInputTokens?: number;
|
|
1482
|
+
cacheWriteInputTokens?: number;
|
|
1483
|
+
textOutputTokens?: number;
|
|
1484
|
+
reasoningOutputTokens?: number;
|
|
1485
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1486
|
+
};
|
|
1487
|
+
costs: {
|
|
1488
|
+
amounts: Array<{
|
|
1489
|
+
currency: string;
|
|
1490
|
+
amountNanos: string;
|
|
1491
|
+
}>;
|
|
1492
|
+
ratedCallCount: number;
|
|
1493
|
+
unpriceableCallCount: number;
|
|
1494
|
+
unvaluedCallCount: number;
|
|
1495
|
+
};
|
|
1496
|
+
providerId: string;
|
|
1497
|
+
modelId: string;
|
|
1498
|
+
}>;
|
|
1499
|
+
agents: Array<{
|
|
1500
|
+
modelCallCount: number;
|
|
1501
|
+
usage: {
|
|
1502
|
+
inputTokens?: number;
|
|
1503
|
+
outputTokens?: number;
|
|
1504
|
+
totalTokens?: number;
|
|
1505
|
+
uncachedInputTokens?: number;
|
|
1506
|
+
cacheReadInputTokens?: number;
|
|
1507
|
+
cacheWriteInputTokens?: number;
|
|
1508
|
+
textOutputTokens?: number;
|
|
1509
|
+
reasoningOutputTokens?: number;
|
|
1510
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1511
|
+
};
|
|
1512
|
+
costs: {
|
|
1513
|
+
amounts: Array<{
|
|
1514
|
+
currency: string;
|
|
1515
|
+
amountNanos: string;
|
|
1516
|
+
}>;
|
|
1517
|
+
ratedCallCount: number;
|
|
1518
|
+
unpriceableCallCount: number;
|
|
1519
|
+
unvaluedCallCount: number;
|
|
1520
|
+
};
|
|
1521
|
+
agentId: string;
|
|
1522
|
+
}>;
|
|
1523
|
+
workflows: Array<{
|
|
1524
|
+
modelCallCount: number;
|
|
1525
|
+
usage: {
|
|
1526
|
+
inputTokens?: number;
|
|
1527
|
+
outputTokens?: number;
|
|
1528
|
+
totalTokens?: number;
|
|
1529
|
+
uncachedInputTokens?: number;
|
|
1530
|
+
cacheReadInputTokens?: number;
|
|
1531
|
+
cacheWriteInputTokens?: number;
|
|
1532
|
+
textOutputTokens?: number;
|
|
1533
|
+
reasoningOutputTokens?: number;
|
|
1534
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1535
|
+
};
|
|
1536
|
+
costs: {
|
|
1537
|
+
amounts: Array<{
|
|
1538
|
+
currency: string;
|
|
1539
|
+
amountNanos: string;
|
|
1540
|
+
}>;
|
|
1541
|
+
ratedCallCount: number;
|
|
1542
|
+
unpriceableCallCount: number;
|
|
1543
|
+
unvaluedCallCount: number;
|
|
1544
|
+
};
|
|
1545
|
+
workflowId: string;
|
|
1546
|
+
}>;
|
|
1547
|
+
}, [Pick<Options<GetAiAccountingOverviewData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1548
|
+
_id: string;
|
|
1549
|
+
_infinite?: boolean;
|
|
1550
|
+
tags?: ReadonlyArray<string>;
|
|
1551
|
+
}], never> | undefined;
|
|
1552
|
+
} & {
|
|
1553
|
+
queryKey: [Pick<Options<GetAiAccountingOverviewData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1554
|
+
_id: string;
|
|
1555
|
+
_infinite?: boolean;
|
|
1556
|
+
tags?: ReadonlyArray<string>;
|
|
1557
|
+
}] & {
|
|
1558
|
+
[dataTagSymbol]: {
|
|
1559
|
+
range: {
|
|
1560
|
+
from: string;
|
|
1561
|
+
to: string;
|
|
1562
|
+
};
|
|
1563
|
+
bucket: "hour" | "day" | "week";
|
|
1564
|
+
totals: {
|
|
1565
|
+
modelCallCount: number;
|
|
1566
|
+
usage: {
|
|
1567
|
+
inputTokens?: number;
|
|
1568
|
+
outputTokens?: number;
|
|
1569
|
+
totalTokens?: number;
|
|
1570
|
+
uncachedInputTokens?: number;
|
|
1571
|
+
cacheReadInputTokens?: number;
|
|
1572
|
+
cacheWriteInputTokens?: number;
|
|
1573
|
+
textOutputTokens?: number;
|
|
1574
|
+
reasoningOutputTokens?: number;
|
|
1575
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1576
|
+
};
|
|
1577
|
+
costs: {
|
|
1578
|
+
amounts: Array<{
|
|
1579
|
+
currency: string;
|
|
1580
|
+
amountNanos: string;
|
|
1581
|
+
}>;
|
|
1582
|
+
ratedCallCount: number;
|
|
1583
|
+
unpriceableCallCount: number;
|
|
1584
|
+
unvaluedCallCount: number;
|
|
1585
|
+
};
|
|
1586
|
+
};
|
|
1587
|
+
series: Array<{
|
|
1588
|
+
modelCallCount: number;
|
|
1589
|
+
usage: {
|
|
1590
|
+
inputTokens?: number;
|
|
1591
|
+
outputTokens?: number;
|
|
1592
|
+
totalTokens?: number;
|
|
1593
|
+
uncachedInputTokens?: number;
|
|
1594
|
+
cacheReadInputTokens?: number;
|
|
1595
|
+
cacheWriteInputTokens?: number;
|
|
1596
|
+
textOutputTokens?: number;
|
|
1597
|
+
reasoningOutputTokens?: number;
|
|
1598
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1599
|
+
};
|
|
1600
|
+
costs: {
|
|
1601
|
+
amounts: Array<{
|
|
1602
|
+
currency: string;
|
|
1603
|
+
amountNanos: string;
|
|
1604
|
+
}>;
|
|
1605
|
+
ratedCallCount: number;
|
|
1606
|
+
unpriceableCallCount: number;
|
|
1607
|
+
unvaluedCallCount: number;
|
|
1608
|
+
};
|
|
1609
|
+
start: string;
|
|
1610
|
+
end: string;
|
|
1611
|
+
}>;
|
|
1612
|
+
models: Array<{
|
|
1613
|
+
modelCallCount: number;
|
|
1614
|
+
usage: {
|
|
1615
|
+
inputTokens?: number;
|
|
1616
|
+
outputTokens?: number;
|
|
1617
|
+
totalTokens?: number;
|
|
1618
|
+
uncachedInputTokens?: number;
|
|
1619
|
+
cacheReadInputTokens?: number;
|
|
1620
|
+
cacheWriteInputTokens?: number;
|
|
1621
|
+
textOutputTokens?: number;
|
|
1622
|
+
reasoningOutputTokens?: number;
|
|
1623
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1624
|
+
};
|
|
1625
|
+
costs: {
|
|
1626
|
+
amounts: Array<{
|
|
1627
|
+
currency: string;
|
|
1628
|
+
amountNanos: string;
|
|
1629
|
+
}>;
|
|
1630
|
+
ratedCallCount: number;
|
|
1631
|
+
unpriceableCallCount: number;
|
|
1632
|
+
unvaluedCallCount: number;
|
|
1633
|
+
};
|
|
1634
|
+
providerId: string;
|
|
1635
|
+
modelId: string;
|
|
1636
|
+
}>;
|
|
1637
|
+
agents: Array<{
|
|
1638
|
+
modelCallCount: number;
|
|
1639
|
+
usage: {
|
|
1640
|
+
inputTokens?: number;
|
|
1641
|
+
outputTokens?: number;
|
|
1642
|
+
totalTokens?: number;
|
|
1643
|
+
uncachedInputTokens?: number;
|
|
1644
|
+
cacheReadInputTokens?: number;
|
|
1645
|
+
cacheWriteInputTokens?: number;
|
|
1646
|
+
textOutputTokens?: number;
|
|
1647
|
+
reasoningOutputTokens?: number;
|
|
1648
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1649
|
+
};
|
|
1650
|
+
costs: {
|
|
1651
|
+
amounts: Array<{
|
|
1652
|
+
currency: string;
|
|
1653
|
+
amountNanos: string;
|
|
1654
|
+
}>;
|
|
1655
|
+
ratedCallCount: number;
|
|
1656
|
+
unpriceableCallCount: number;
|
|
1657
|
+
unvaluedCallCount: number;
|
|
1658
|
+
};
|
|
1659
|
+
agentId: string;
|
|
1660
|
+
}>;
|
|
1661
|
+
workflows: Array<{
|
|
1662
|
+
modelCallCount: number;
|
|
1663
|
+
usage: {
|
|
1664
|
+
inputTokens?: number;
|
|
1665
|
+
outputTokens?: number;
|
|
1666
|
+
totalTokens?: number;
|
|
1667
|
+
uncachedInputTokens?: number;
|
|
1668
|
+
cacheReadInputTokens?: number;
|
|
1669
|
+
cacheWriteInputTokens?: number;
|
|
1670
|
+
textOutputTokens?: number;
|
|
1671
|
+
reasoningOutputTokens?: number;
|
|
1672
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1673
|
+
};
|
|
1674
|
+
costs: {
|
|
1675
|
+
amounts: Array<{
|
|
1676
|
+
currency: string;
|
|
1677
|
+
amountNanos: string;
|
|
1678
|
+
}>;
|
|
1679
|
+
ratedCallCount: number;
|
|
1680
|
+
unpriceableCallCount: number;
|
|
1681
|
+
unvaluedCallCount: number;
|
|
1682
|
+
};
|
|
1683
|
+
workflowId: string;
|
|
1684
|
+
}>;
|
|
1685
|
+
};
|
|
1686
|
+
[dataTagErrorSymbol]: GetAiAccountingOverviewError;
|
|
1687
|
+
};
|
|
1688
|
+
};
|
|
1689
|
+
export declare const listAiModelCallsQueryKey: (options: Options<ListAiModelCallsData>) => [Pick<Options<ListAiModelCallsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1690
|
+
_id: string;
|
|
1691
|
+
_infinite?: boolean;
|
|
1692
|
+
tags?: ReadonlyArray<string>;
|
|
1693
|
+
}];
|
|
1694
|
+
/**
|
|
1695
|
+
* List project AI model-call accounting records
|
|
1696
|
+
*/
|
|
1697
|
+
export declare const listAiModelCallsOptions: (options: Options<ListAiModelCallsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
1698
|
+
items: Array<{
|
|
1699
|
+
usage: {
|
|
1700
|
+
id: string;
|
|
1701
|
+
executionId: string;
|
|
1702
|
+
attempt: number;
|
|
1703
|
+
callId: string;
|
|
1704
|
+
providerId: string;
|
|
1705
|
+
requestedModelId: string;
|
|
1706
|
+
responseModelId?: string;
|
|
1707
|
+
responseId: string;
|
|
1708
|
+
usage: {
|
|
1709
|
+
inputTokens?: number;
|
|
1710
|
+
outputTokens?: number;
|
|
1711
|
+
totalTokens?: number;
|
|
1712
|
+
uncachedInputTokens?: number;
|
|
1713
|
+
cacheReadInputTokens?: number;
|
|
1714
|
+
cacheWriteInputTokens?: number;
|
|
1715
|
+
textOutputTokens?: number;
|
|
1716
|
+
reasoningOutputTokens?: number;
|
|
1717
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1718
|
+
};
|
|
1719
|
+
occurredAt: string;
|
|
1720
|
+
recordedAt: string;
|
|
1721
|
+
};
|
|
1722
|
+
attribution?: {
|
|
1723
|
+
kind: "agent";
|
|
1724
|
+
agentId: string;
|
|
1725
|
+
agentRunId: string;
|
|
1726
|
+
threadId: string;
|
|
1727
|
+
} | {
|
|
1728
|
+
kind: "workflowAgent";
|
|
1729
|
+
agentId: string;
|
|
1730
|
+
nodeRunId: string;
|
|
1731
|
+
workflowId: string;
|
|
1732
|
+
workflowRunId: string;
|
|
1733
|
+
};
|
|
1734
|
+
cost?: {
|
|
1735
|
+
status: "rated";
|
|
1736
|
+
billingIdentity: {
|
|
1737
|
+
providerId: string;
|
|
1738
|
+
modelId: string;
|
|
1739
|
+
};
|
|
1740
|
+
pricingContext: {
|
|
1741
|
+
serviceTier?: string;
|
|
1742
|
+
batch?: boolean;
|
|
1743
|
+
region?: string;
|
|
1744
|
+
inferenceGeo?: string;
|
|
1745
|
+
routedProviderId?: string;
|
|
1746
|
+
deploymentId?: string;
|
|
1747
|
+
inferenceProfileId?: string;
|
|
1748
|
+
cacheWriteTtlSeconds?: number;
|
|
1749
|
+
mode?: string;
|
|
1750
|
+
};
|
|
1751
|
+
priceSource: {
|
|
1752
|
+
sourceId: string;
|
|
1753
|
+
sourceEntryId: string;
|
|
1754
|
+
sourceVersion: string;
|
|
1755
|
+
sourceUrl: string;
|
|
1756
|
+
observedAt: string;
|
|
1757
|
+
};
|
|
1758
|
+
money: {
|
|
1759
|
+
currency: string;
|
|
1760
|
+
amountNanos: string;
|
|
1761
|
+
};
|
|
1762
|
+
components: Array<{
|
|
1763
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
1764
|
+
quantity: string;
|
|
1765
|
+
rateAmountNanosPerMillion: string;
|
|
1766
|
+
chargeAmountNanos: string;
|
|
1767
|
+
}>;
|
|
1768
|
+
ratedAt: string;
|
|
1769
|
+
} | {
|
|
1770
|
+
status: "unpriceable";
|
|
1771
|
+
billingIdentity?: {
|
|
1772
|
+
providerId: string;
|
|
1773
|
+
modelId: string;
|
|
1774
|
+
};
|
|
1775
|
+
pricingContext: {
|
|
1776
|
+
serviceTier?: string;
|
|
1777
|
+
batch?: boolean;
|
|
1778
|
+
region?: string;
|
|
1779
|
+
inferenceGeo?: string;
|
|
1780
|
+
routedProviderId?: string;
|
|
1781
|
+
deploymentId?: string;
|
|
1782
|
+
inferenceProfileId?: string;
|
|
1783
|
+
cacheWriteTtlSeconds?: number;
|
|
1784
|
+
mode?: string;
|
|
1785
|
+
};
|
|
1786
|
+
priceSource: {
|
|
1787
|
+
sourceId: string;
|
|
1788
|
+
sourceEntryId: string;
|
|
1789
|
+
sourceVersion: string;
|
|
1790
|
+
sourceUrl: string;
|
|
1791
|
+
observedAt: string;
|
|
1792
|
+
};
|
|
1793
|
+
reason: "missingBillingIdentity" | "missingCatalogEntry" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
1794
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
1795
|
+
ratedAt: string;
|
|
1796
|
+
};
|
|
1797
|
+
valuationStatus: "rated" | "unpriceable" | "unvalued";
|
|
1798
|
+
}>;
|
|
1799
|
+
hasMore: boolean;
|
|
1800
|
+
total: number;
|
|
1801
|
+
}, ListAiModelCallsError, {
|
|
1802
|
+
items: Array<{
|
|
1803
|
+
usage: {
|
|
1804
|
+
id: string;
|
|
1805
|
+
executionId: string;
|
|
1806
|
+
attempt: number;
|
|
1807
|
+
callId: string;
|
|
1808
|
+
providerId: string;
|
|
1809
|
+
requestedModelId: string;
|
|
1810
|
+
responseModelId?: string;
|
|
1811
|
+
responseId: string;
|
|
1812
|
+
usage: {
|
|
1813
|
+
inputTokens?: number;
|
|
1814
|
+
outputTokens?: number;
|
|
1815
|
+
totalTokens?: number;
|
|
1816
|
+
uncachedInputTokens?: number;
|
|
1817
|
+
cacheReadInputTokens?: number;
|
|
1818
|
+
cacheWriteInputTokens?: number;
|
|
1819
|
+
textOutputTokens?: number;
|
|
1820
|
+
reasoningOutputTokens?: number;
|
|
1821
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1822
|
+
};
|
|
1823
|
+
occurredAt: string;
|
|
1824
|
+
recordedAt: string;
|
|
1825
|
+
};
|
|
1826
|
+
attribution?: {
|
|
1827
|
+
kind: "agent";
|
|
1828
|
+
agentId: string;
|
|
1829
|
+
agentRunId: string;
|
|
1830
|
+
threadId: string;
|
|
1831
|
+
} | {
|
|
1832
|
+
kind: "workflowAgent";
|
|
1833
|
+
agentId: string;
|
|
1834
|
+
nodeRunId: string;
|
|
1835
|
+
workflowId: string;
|
|
1836
|
+
workflowRunId: string;
|
|
1837
|
+
};
|
|
1838
|
+
cost?: {
|
|
1839
|
+
status: "rated";
|
|
1840
|
+
billingIdentity: {
|
|
1841
|
+
providerId: string;
|
|
1842
|
+
modelId: string;
|
|
1843
|
+
};
|
|
1844
|
+
pricingContext: {
|
|
1845
|
+
serviceTier?: string;
|
|
1846
|
+
batch?: boolean;
|
|
1847
|
+
region?: string;
|
|
1848
|
+
inferenceGeo?: string;
|
|
1849
|
+
routedProviderId?: string;
|
|
1850
|
+
deploymentId?: string;
|
|
1851
|
+
inferenceProfileId?: string;
|
|
1852
|
+
cacheWriteTtlSeconds?: number;
|
|
1853
|
+
mode?: string;
|
|
1854
|
+
};
|
|
1855
|
+
priceSource: {
|
|
1856
|
+
sourceId: string;
|
|
1857
|
+
sourceEntryId: string;
|
|
1858
|
+
sourceVersion: string;
|
|
1859
|
+
sourceUrl: string;
|
|
1860
|
+
observedAt: string;
|
|
1861
|
+
};
|
|
1862
|
+
money: {
|
|
1863
|
+
currency: string;
|
|
1864
|
+
amountNanos: string;
|
|
1865
|
+
};
|
|
1866
|
+
components: Array<{
|
|
1867
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
1868
|
+
quantity: string;
|
|
1869
|
+
rateAmountNanosPerMillion: string;
|
|
1870
|
+
chargeAmountNanos: string;
|
|
1871
|
+
}>;
|
|
1872
|
+
ratedAt: string;
|
|
1873
|
+
} | {
|
|
1874
|
+
status: "unpriceable";
|
|
1875
|
+
billingIdentity?: {
|
|
1876
|
+
providerId: string;
|
|
1877
|
+
modelId: string;
|
|
1878
|
+
};
|
|
1879
|
+
pricingContext: {
|
|
1880
|
+
serviceTier?: string;
|
|
1881
|
+
batch?: boolean;
|
|
1882
|
+
region?: string;
|
|
1883
|
+
inferenceGeo?: string;
|
|
1884
|
+
routedProviderId?: string;
|
|
1885
|
+
deploymentId?: string;
|
|
1886
|
+
inferenceProfileId?: string;
|
|
1887
|
+
cacheWriteTtlSeconds?: number;
|
|
1888
|
+
mode?: string;
|
|
1889
|
+
};
|
|
1890
|
+
priceSource: {
|
|
1891
|
+
sourceId: string;
|
|
1892
|
+
sourceEntryId: string;
|
|
1893
|
+
sourceVersion: string;
|
|
1894
|
+
sourceUrl: string;
|
|
1895
|
+
observedAt: string;
|
|
1896
|
+
};
|
|
1897
|
+
reason: "missingBillingIdentity" | "missingCatalogEntry" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
1898
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
1899
|
+
ratedAt: string;
|
|
1900
|
+
};
|
|
1901
|
+
valuationStatus: "rated" | "unpriceable" | "unvalued";
|
|
1902
|
+
}>;
|
|
1903
|
+
hasMore: boolean;
|
|
1904
|
+
total: number;
|
|
1905
|
+
}, [Pick<Options<ListAiModelCallsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1906
|
+
_id: string;
|
|
1907
|
+
_infinite?: boolean;
|
|
1908
|
+
tags?: ReadonlyArray<string>;
|
|
1909
|
+
}]>, "queryFn"> & {
|
|
1910
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
1911
|
+
items: Array<{
|
|
1912
|
+
usage: {
|
|
1913
|
+
id: string;
|
|
1914
|
+
executionId: string;
|
|
1915
|
+
attempt: number;
|
|
1916
|
+
callId: string;
|
|
1917
|
+
providerId: string;
|
|
1918
|
+
requestedModelId: string;
|
|
1919
|
+
responseModelId?: string;
|
|
1920
|
+
responseId: string;
|
|
1921
|
+
usage: {
|
|
1922
|
+
inputTokens?: number;
|
|
1923
|
+
outputTokens?: number;
|
|
1924
|
+
totalTokens?: number;
|
|
1925
|
+
uncachedInputTokens?: number;
|
|
1926
|
+
cacheReadInputTokens?: number;
|
|
1927
|
+
cacheWriteInputTokens?: number;
|
|
1928
|
+
textOutputTokens?: number;
|
|
1929
|
+
reasoningOutputTokens?: number;
|
|
1930
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1931
|
+
};
|
|
1932
|
+
occurredAt: string;
|
|
1933
|
+
recordedAt: string;
|
|
1934
|
+
};
|
|
1935
|
+
attribution?: {
|
|
1936
|
+
kind: "agent";
|
|
1937
|
+
agentId: string;
|
|
1938
|
+
agentRunId: string;
|
|
1939
|
+
threadId: string;
|
|
1940
|
+
} | {
|
|
1941
|
+
kind: "workflowAgent";
|
|
1942
|
+
agentId: string;
|
|
1943
|
+
nodeRunId: string;
|
|
1944
|
+
workflowId: string;
|
|
1945
|
+
workflowRunId: string;
|
|
1946
|
+
};
|
|
1947
|
+
cost?: {
|
|
1948
|
+
status: "rated";
|
|
1949
|
+
billingIdentity: {
|
|
1950
|
+
providerId: string;
|
|
1951
|
+
modelId: string;
|
|
1952
|
+
};
|
|
1953
|
+
pricingContext: {
|
|
1954
|
+
serviceTier?: string;
|
|
1955
|
+
batch?: boolean;
|
|
1956
|
+
region?: string;
|
|
1957
|
+
inferenceGeo?: string;
|
|
1958
|
+
routedProviderId?: string;
|
|
1959
|
+
deploymentId?: string;
|
|
1960
|
+
inferenceProfileId?: string;
|
|
1961
|
+
cacheWriteTtlSeconds?: number;
|
|
1962
|
+
mode?: string;
|
|
1963
|
+
};
|
|
1964
|
+
priceSource: {
|
|
1965
|
+
sourceId: string;
|
|
1966
|
+
sourceEntryId: string;
|
|
1967
|
+
sourceVersion: string;
|
|
1968
|
+
sourceUrl: string;
|
|
1969
|
+
observedAt: string;
|
|
1970
|
+
};
|
|
1971
|
+
money: {
|
|
1972
|
+
currency: string;
|
|
1973
|
+
amountNanos: string;
|
|
1974
|
+
};
|
|
1975
|
+
components: Array<{
|
|
1976
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
1977
|
+
quantity: string;
|
|
1978
|
+
rateAmountNanosPerMillion: string;
|
|
1979
|
+
chargeAmountNanos: string;
|
|
1980
|
+
}>;
|
|
1981
|
+
ratedAt: string;
|
|
1982
|
+
} | {
|
|
1983
|
+
status: "unpriceable";
|
|
1984
|
+
billingIdentity?: {
|
|
1985
|
+
providerId: string;
|
|
1986
|
+
modelId: string;
|
|
1987
|
+
};
|
|
1988
|
+
pricingContext: {
|
|
1989
|
+
serviceTier?: string;
|
|
1990
|
+
batch?: boolean;
|
|
1991
|
+
region?: string;
|
|
1992
|
+
inferenceGeo?: string;
|
|
1993
|
+
routedProviderId?: string;
|
|
1994
|
+
deploymentId?: string;
|
|
1995
|
+
inferenceProfileId?: string;
|
|
1996
|
+
cacheWriteTtlSeconds?: number;
|
|
1997
|
+
mode?: string;
|
|
1998
|
+
};
|
|
1999
|
+
priceSource: {
|
|
2000
|
+
sourceId: string;
|
|
2001
|
+
sourceEntryId: string;
|
|
2002
|
+
sourceVersion: string;
|
|
2003
|
+
sourceUrl: string;
|
|
2004
|
+
observedAt: string;
|
|
2005
|
+
};
|
|
2006
|
+
reason: "missingBillingIdentity" | "missingCatalogEntry" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
2007
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2008
|
+
ratedAt: string;
|
|
2009
|
+
};
|
|
2010
|
+
valuationStatus: "rated" | "unpriceable" | "unvalued";
|
|
2011
|
+
}>;
|
|
2012
|
+
hasMore: boolean;
|
|
2013
|
+
total: number;
|
|
2014
|
+
}, [Pick<Options<ListAiModelCallsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
2015
|
+
_id: string;
|
|
2016
|
+
_infinite?: boolean;
|
|
2017
|
+
tags?: ReadonlyArray<string>;
|
|
2018
|
+
}], never> | undefined;
|
|
2019
|
+
} & {
|
|
2020
|
+
queryKey: [Pick<Options<ListAiModelCallsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
2021
|
+
_id: string;
|
|
2022
|
+
_infinite?: boolean;
|
|
2023
|
+
tags?: ReadonlyArray<string>;
|
|
2024
|
+
}] & {
|
|
2025
|
+
[dataTagSymbol]: {
|
|
2026
|
+
items: Array<{
|
|
2027
|
+
usage: {
|
|
2028
|
+
id: string;
|
|
2029
|
+
executionId: string;
|
|
2030
|
+
attempt: number;
|
|
2031
|
+
callId: string;
|
|
2032
|
+
providerId: string;
|
|
2033
|
+
requestedModelId: string;
|
|
2034
|
+
responseModelId?: string;
|
|
2035
|
+
responseId: string;
|
|
2036
|
+
usage: {
|
|
2037
|
+
inputTokens?: number;
|
|
2038
|
+
outputTokens?: number;
|
|
2039
|
+
totalTokens?: number;
|
|
2040
|
+
uncachedInputTokens?: number;
|
|
2041
|
+
cacheReadInputTokens?: number;
|
|
2042
|
+
cacheWriteInputTokens?: number;
|
|
2043
|
+
textOutputTokens?: number;
|
|
2044
|
+
reasoningOutputTokens?: number;
|
|
2045
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2046
|
+
};
|
|
2047
|
+
occurredAt: string;
|
|
2048
|
+
recordedAt: string;
|
|
2049
|
+
};
|
|
2050
|
+
attribution?: {
|
|
2051
|
+
kind: "agent";
|
|
2052
|
+
agentId: string;
|
|
2053
|
+
agentRunId: string;
|
|
2054
|
+
threadId: string;
|
|
2055
|
+
} | {
|
|
2056
|
+
kind: "workflowAgent";
|
|
2057
|
+
agentId: string;
|
|
2058
|
+
nodeRunId: string;
|
|
2059
|
+
workflowId: string;
|
|
2060
|
+
workflowRunId: string;
|
|
2061
|
+
};
|
|
2062
|
+
cost?: {
|
|
2063
|
+
status: "rated";
|
|
2064
|
+
billingIdentity: {
|
|
2065
|
+
providerId: string;
|
|
2066
|
+
modelId: string;
|
|
2067
|
+
};
|
|
2068
|
+
pricingContext: {
|
|
2069
|
+
serviceTier?: string;
|
|
2070
|
+
batch?: boolean;
|
|
2071
|
+
region?: string;
|
|
2072
|
+
inferenceGeo?: string;
|
|
2073
|
+
routedProviderId?: string;
|
|
2074
|
+
deploymentId?: string;
|
|
2075
|
+
inferenceProfileId?: string;
|
|
2076
|
+
cacheWriteTtlSeconds?: number;
|
|
2077
|
+
mode?: string;
|
|
2078
|
+
};
|
|
2079
|
+
priceSource: {
|
|
2080
|
+
sourceId: string;
|
|
2081
|
+
sourceEntryId: string;
|
|
2082
|
+
sourceVersion: string;
|
|
2083
|
+
sourceUrl: string;
|
|
2084
|
+
observedAt: string;
|
|
2085
|
+
};
|
|
2086
|
+
money: {
|
|
2087
|
+
currency: string;
|
|
2088
|
+
amountNanos: string;
|
|
2089
|
+
};
|
|
2090
|
+
components: Array<{
|
|
2091
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
2092
|
+
quantity: string;
|
|
2093
|
+
rateAmountNanosPerMillion: string;
|
|
2094
|
+
chargeAmountNanos: string;
|
|
2095
|
+
}>;
|
|
2096
|
+
ratedAt: string;
|
|
2097
|
+
} | {
|
|
2098
|
+
status: "unpriceable";
|
|
2099
|
+
billingIdentity?: {
|
|
2100
|
+
providerId: string;
|
|
2101
|
+
modelId: string;
|
|
2102
|
+
};
|
|
2103
|
+
pricingContext: {
|
|
2104
|
+
serviceTier?: string;
|
|
2105
|
+
batch?: boolean;
|
|
2106
|
+
region?: string;
|
|
2107
|
+
inferenceGeo?: string;
|
|
2108
|
+
routedProviderId?: string;
|
|
2109
|
+
deploymentId?: string;
|
|
2110
|
+
inferenceProfileId?: string;
|
|
2111
|
+
cacheWriteTtlSeconds?: number;
|
|
2112
|
+
mode?: string;
|
|
2113
|
+
};
|
|
2114
|
+
priceSource: {
|
|
2115
|
+
sourceId: string;
|
|
2116
|
+
sourceEntryId: string;
|
|
2117
|
+
sourceVersion: string;
|
|
2118
|
+
sourceUrl: string;
|
|
2119
|
+
observedAt: string;
|
|
2120
|
+
};
|
|
2121
|
+
reason: "missingBillingIdentity" | "missingCatalogEntry" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
2122
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2123
|
+
ratedAt: string;
|
|
2124
|
+
};
|
|
2125
|
+
valuationStatus: "rated" | "unpriceable" | "unvalued";
|
|
2126
|
+
}>;
|
|
2127
|
+
hasMore: boolean;
|
|
2128
|
+
total: number;
|
|
2129
|
+
};
|
|
2130
|
+
[dataTagErrorSymbol]: ListAiModelCallsError;
|
|
2131
|
+
};
|
|
2132
|
+
};
|
|
2133
|
+
export declare const listAiModelCallsInfiniteQueryKey: (options: Options<ListAiModelCallsData>) => QueryKey<Options<ListAiModelCallsData>>;
|
|
2134
|
+
/**
|
|
2135
|
+
* List project AI model-call accounting records
|
|
2136
|
+
*/
|
|
2137
|
+
export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiModelCallsData>) => import("@tanstack/react-query").UseInfiniteQueryOptions<{
|
|
2138
|
+
items: Array<{
|
|
2139
|
+
usage: {
|
|
2140
|
+
id: string;
|
|
2141
|
+
executionId: string;
|
|
2142
|
+
attempt: number;
|
|
2143
|
+
callId: string;
|
|
2144
|
+
providerId: string;
|
|
2145
|
+
requestedModelId: string;
|
|
2146
|
+
responseModelId?: string;
|
|
2147
|
+
responseId: string;
|
|
2148
|
+
usage: {
|
|
2149
|
+
inputTokens?: number;
|
|
2150
|
+
outputTokens?: number;
|
|
2151
|
+
totalTokens?: number;
|
|
2152
|
+
uncachedInputTokens?: number;
|
|
2153
|
+
cacheReadInputTokens?: number;
|
|
2154
|
+
cacheWriteInputTokens?: number;
|
|
2155
|
+
textOutputTokens?: number;
|
|
2156
|
+
reasoningOutputTokens?: number;
|
|
2157
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2158
|
+
};
|
|
2159
|
+
occurredAt: string;
|
|
2160
|
+
recordedAt: string;
|
|
2161
|
+
};
|
|
2162
|
+
attribution?: {
|
|
2163
|
+
kind: "agent";
|
|
2164
|
+
agentId: string;
|
|
2165
|
+
agentRunId: string;
|
|
2166
|
+
threadId: string;
|
|
2167
|
+
} | {
|
|
2168
|
+
kind: "workflowAgent";
|
|
2169
|
+
agentId: string;
|
|
2170
|
+
nodeRunId: string;
|
|
2171
|
+
workflowId: string;
|
|
2172
|
+
workflowRunId: string;
|
|
2173
|
+
};
|
|
2174
|
+
cost?: {
|
|
2175
|
+
status: "rated";
|
|
2176
|
+
billingIdentity: {
|
|
2177
|
+
providerId: string;
|
|
2178
|
+
modelId: string;
|
|
2179
|
+
};
|
|
2180
|
+
pricingContext: {
|
|
2181
|
+
serviceTier?: string;
|
|
2182
|
+
batch?: boolean;
|
|
2183
|
+
region?: string;
|
|
2184
|
+
inferenceGeo?: string;
|
|
2185
|
+
routedProviderId?: string;
|
|
2186
|
+
deploymentId?: string;
|
|
2187
|
+
inferenceProfileId?: string;
|
|
2188
|
+
cacheWriteTtlSeconds?: number;
|
|
2189
|
+
mode?: string;
|
|
2190
|
+
};
|
|
2191
|
+
priceSource: {
|
|
2192
|
+
sourceId: string;
|
|
2193
|
+
sourceEntryId: string;
|
|
2194
|
+
sourceVersion: string;
|
|
2195
|
+
sourceUrl: string;
|
|
2196
|
+
observedAt: string;
|
|
2197
|
+
};
|
|
2198
|
+
money: {
|
|
2199
|
+
currency: string;
|
|
2200
|
+
amountNanos: string;
|
|
2201
|
+
};
|
|
2202
|
+
components: Array<{
|
|
2203
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
2204
|
+
quantity: string;
|
|
2205
|
+
rateAmountNanosPerMillion: string;
|
|
2206
|
+
chargeAmountNanos: string;
|
|
2207
|
+
}>;
|
|
2208
|
+
ratedAt: string;
|
|
2209
|
+
} | {
|
|
2210
|
+
status: "unpriceable";
|
|
2211
|
+
billingIdentity?: {
|
|
2212
|
+
providerId: string;
|
|
2213
|
+
modelId: string;
|
|
2214
|
+
};
|
|
2215
|
+
pricingContext: {
|
|
2216
|
+
serviceTier?: string;
|
|
2217
|
+
batch?: boolean;
|
|
2218
|
+
region?: string;
|
|
2219
|
+
inferenceGeo?: string;
|
|
2220
|
+
routedProviderId?: string;
|
|
2221
|
+
deploymentId?: string;
|
|
2222
|
+
inferenceProfileId?: string;
|
|
2223
|
+
cacheWriteTtlSeconds?: number;
|
|
2224
|
+
mode?: string;
|
|
2225
|
+
};
|
|
2226
|
+
priceSource: {
|
|
2227
|
+
sourceId: string;
|
|
2228
|
+
sourceEntryId: string;
|
|
2229
|
+
sourceVersion: string;
|
|
2230
|
+
sourceUrl: string;
|
|
2231
|
+
observedAt: string;
|
|
2232
|
+
};
|
|
2233
|
+
reason: "missingBillingIdentity" | "missingCatalogEntry" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
2234
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2235
|
+
ratedAt: string;
|
|
2236
|
+
};
|
|
2237
|
+
valuationStatus: "rated" | "unpriceable" | "unvalued";
|
|
2238
|
+
}>;
|
|
2239
|
+
hasMore: boolean;
|
|
2240
|
+
total: number;
|
|
2241
|
+
}, ListAiModelCallsError, InfiniteData<{
|
|
2242
|
+
items: Array<{
|
|
2243
|
+
usage: {
|
|
2244
|
+
id: string;
|
|
2245
|
+
executionId: string;
|
|
2246
|
+
attempt: number;
|
|
2247
|
+
callId: string;
|
|
2248
|
+
providerId: string;
|
|
2249
|
+
requestedModelId: string;
|
|
2250
|
+
responseModelId?: string;
|
|
2251
|
+
responseId: string;
|
|
2252
|
+
usage: {
|
|
2253
|
+
inputTokens?: number;
|
|
2254
|
+
outputTokens?: number;
|
|
2255
|
+
totalTokens?: number;
|
|
2256
|
+
uncachedInputTokens?: number;
|
|
2257
|
+
cacheReadInputTokens?: number;
|
|
2258
|
+
cacheWriteInputTokens?: number;
|
|
2259
|
+
textOutputTokens?: number;
|
|
2260
|
+
reasoningOutputTokens?: number;
|
|
2261
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2262
|
+
};
|
|
2263
|
+
occurredAt: string;
|
|
2264
|
+
recordedAt: string;
|
|
2265
|
+
};
|
|
2266
|
+
attribution?: {
|
|
2267
|
+
kind: "agent";
|
|
2268
|
+
agentId: string;
|
|
2269
|
+
agentRunId: string;
|
|
2270
|
+
threadId: string;
|
|
2271
|
+
} | {
|
|
2272
|
+
kind: "workflowAgent";
|
|
2273
|
+
agentId: string;
|
|
2274
|
+
nodeRunId: string;
|
|
2275
|
+
workflowId: string;
|
|
2276
|
+
workflowRunId: string;
|
|
2277
|
+
};
|
|
2278
|
+
cost?: {
|
|
2279
|
+
status: "rated";
|
|
2280
|
+
billingIdentity: {
|
|
2281
|
+
providerId: string;
|
|
2282
|
+
modelId: string;
|
|
2283
|
+
};
|
|
2284
|
+
pricingContext: {
|
|
2285
|
+
serviceTier?: string;
|
|
2286
|
+
batch?: boolean;
|
|
2287
|
+
region?: string;
|
|
2288
|
+
inferenceGeo?: string;
|
|
2289
|
+
routedProviderId?: string;
|
|
2290
|
+
deploymentId?: string;
|
|
2291
|
+
inferenceProfileId?: string;
|
|
2292
|
+
cacheWriteTtlSeconds?: number;
|
|
2293
|
+
mode?: string;
|
|
2294
|
+
};
|
|
2295
|
+
priceSource: {
|
|
2296
|
+
sourceId: string;
|
|
2297
|
+
sourceEntryId: string;
|
|
2298
|
+
sourceVersion: string;
|
|
2299
|
+
sourceUrl: string;
|
|
2300
|
+
observedAt: string;
|
|
2301
|
+
};
|
|
2302
|
+
money: {
|
|
2303
|
+
currency: string;
|
|
2304
|
+
amountNanos: string;
|
|
2305
|
+
};
|
|
2306
|
+
components: Array<{
|
|
2307
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
2308
|
+
quantity: string;
|
|
2309
|
+
rateAmountNanosPerMillion: string;
|
|
2310
|
+
chargeAmountNanos: string;
|
|
2311
|
+
}>;
|
|
2312
|
+
ratedAt: string;
|
|
2313
|
+
} | {
|
|
2314
|
+
status: "unpriceable";
|
|
2315
|
+
billingIdentity?: {
|
|
2316
|
+
providerId: string;
|
|
2317
|
+
modelId: string;
|
|
2318
|
+
};
|
|
2319
|
+
pricingContext: {
|
|
2320
|
+
serviceTier?: string;
|
|
2321
|
+
batch?: boolean;
|
|
2322
|
+
region?: string;
|
|
2323
|
+
inferenceGeo?: string;
|
|
2324
|
+
routedProviderId?: string;
|
|
2325
|
+
deploymentId?: string;
|
|
2326
|
+
inferenceProfileId?: string;
|
|
2327
|
+
cacheWriteTtlSeconds?: number;
|
|
2328
|
+
mode?: string;
|
|
2329
|
+
};
|
|
2330
|
+
priceSource: {
|
|
2331
|
+
sourceId: string;
|
|
2332
|
+
sourceEntryId: string;
|
|
2333
|
+
sourceVersion: string;
|
|
2334
|
+
sourceUrl: string;
|
|
2335
|
+
observedAt: string;
|
|
2336
|
+
};
|
|
2337
|
+
reason: "missingBillingIdentity" | "missingCatalogEntry" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
2338
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2339
|
+
ratedAt: string;
|
|
2340
|
+
};
|
|
2341
|
+
valuationStatus: "rated" | "unpriceable" | "unvalued";
|
|
2342
|
+
}>;
|
|
2343
|
+
hasMore: boolean;
|
|
2344
|
+
total: number;
|
|
2345
|
+
}, unknown>, QueryKey<Options<ListAiModelCallsData>>, string | Pick<Pick<Options<ListAiModelCallsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
2346
|
+
_id: string;
|
|
2347
|
+
_infinite?: boolean;
|
|
2348
|
+
tags?: ReadonlyArray<string>;
|
|
2349
|
+
}, "query" | "body" | "headers" | "path">> & {
|
|
2350
|
+
initialData: InfiniteData<{
|
|
2351
|
+
items: Array<{
|
|
2352
|
+
usage: {
|
|
2353
|
+
id: string;
|
|
2354
|
+
executionId: string;
|
|
2355
|
+
attempt: number;
|
|
2356
|
+
callId: string;
|
|
2357
|
+
providerId: string;
|
|
2358
|
+
requestedModelId: string;
|
|
2359
|
+
responseModelId?: string;
|
|
2360
|
+
responseId: string;
|
|
2361
|
+
usage: {
|
|
2362
|
+
inputTokens?: number;
|
|
2363
|
+
outputTokens?: number;
|
|
2364
|
+
totalTokens?: number;
|
|
2365
|
+
uncachedInputTokens?: number;
|
|
2366
|
+
cacheReadInputTokens?: number;
|
|
2367
|
+
cacheWriteInputTokens?: number;
|
|
2368
|
+
textOutputTokens?: number;
|
|
2369
|
+
reasoningOutputTokens?: number;
|
|
2370
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2371
|
+
};
|
|
2372
|
+
occurredAt: string;
|
|
2373
|
+
recordedAt: string;
|
|
2374
|
+
};
|
|
2375
|
+
attribution?: {
|
|
2376
|
+
kind: "agent";
|
|
2377
|
+
agentId: string;
|
|
2378
|
+
agentRunId: string;
|
|
2379
|
+
threadId: string;
|
|
2380
|
+
} | {
|
|
2381
|
+
kind: "workflowAgent";
|
|
2382
|
+
agentId: string;
|
|
2383
|
+
nodeRunId: string;
|
|
2384
|
+
workflowId: string;
|
|
2385
|
+
workflowRunId: string;
|
|
2386
|
+
};
|
|
2387
|
+
cost?: {
|
|
2388
|
+
status: "rated";
|
|
2389
|
+
billingIdentity: {
|
|
2390
|
+
providerId: string;
|
|
2391
|
+
modelId: string;
|
|
2392
|
+
};
|
|
2393
|
+
pricingContext: {
|
|
2394
|
+
serviceTier?: string;
|
|
2395
|
+
batch?: boolean;
|
|
2396
|
+
region?: string;
|
|
2397
|
+
inferenceGeo?: string;
|
|
2398
|
+
routedProviderId?: string;
|
|
2399
|
+
deploymentId?: string;
|
|
2400
|
+
inferenceProfileId?: string;
|
|
2401
|
+
cacheWriteTtlSeconds?: number;
|
|
2402
|
+
mode?: string;
|
|
2403
|
+
};
|
|
2404
|
+
priceSource: {
|
|
2405
|
+
sourceId: string;
|
|
2406
|
+
sourceEntryId: string;
|
|
2407
|
+
sourceVersion: string;
|
|
2408
|
+
sourceUrl: string;
|
|
2409
|
+
observedAt: string;
|
|
2410
|
+
};
|
|
2411
|
+
money: {
|
|
2412
|
+
currency: string;
|
|
2413
|
+
amountNanos: string;
|
|
2414
|
+
};
|
|
2415
|
+
components: Array<{
|
|
2416
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
2417
|
+
quantity: string;
|
|
2418
|
+
rateAmountNanosPerMillion: string;
|
|
2419
|
+
chargeAmountNanos: string;
|
|
2420
|
+
}>;
|
|
2421
|
+
ratedAt: string;
|
|
2422
|
+
} | {
|
|
2423
|
+
status: "unpriceable";
|
|
2424
|
+
billingIdentity?: {
|
|
2425
|
+
providerId: string;
|
|
2426
|
+
modelId: string;
|
|
2427
|
+
};
|
|
2428
|
+
pricingContext: {
|
|
2429
|
+
serviceTier?: string;
|
|
2430
|
+
batch?: boolean;
|
|
2431
|
+
region?: string;
|
|
2432
|
+
inferenceGeo?: string;
|
|
2433
|
+
routedProviderId?: string;
|
|
2434
|
+
deploymentId?: string;
|
|
2435
|
+
inferenceProfileId?: string;
|
|
2436
|
+
cacheWriteTtlSeconds?: number;
|
|
2437
|
+
mode?: string;
|
|
2438
|
+
};
|
|
2439
|
+
priceSource: {
|
|
2440
|
+
sourceId: string;
|
|
2441
|
+
sourceEntryId: string;
|
|
2442
|
+
sourceVersion: string;
|
|
2443
|
+
sourceUrl: string;
|
|
2444
|
+
observedAt: string;
|
|
2445
|
+
};
|
|
2446
|
+
reason: "missingBillingIdentity" | "missingCatalogEntry" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
2447
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2448
|
+
ratedAt: string;
|
|
2449
|
+
};
|
|
2450
|
+
valuationStatus: "rated" | "unpriceable" | "unvalued";
|
|
2451
|
+
}>;
|
|
2452
|
+
hasMore: boolean;
|
|
2453
|
+
total: number;
|
|
2454
|
+
}, string | Pick<Pick<Options<ListAiModelCallsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
2455
|
+
_id: string;
|
|
2456
|
+
_infinite?: boolean;
|
|
2457
|
+
tags?: ReadonlyArray<string>;
|
|
2458
|
+
}, "query" | "body" | "headers" | "path">> | (() => InfiniteData<{
|
|
2459
|
+
items: Array<{
|
|
2460
|
+
usage: {
|
|
2461
|
+
id: string;
|
|
2462
|
+
executionId: string;
|
|
2463
|
+
attempt: number;
|
|
2464
|
+
callId: string;
|
|
2465
|
+
providerId: string;
|
|
2466
|
+
requestedModelId: string;
|
|
2467
|
+
responseModelId?: string;
|
|
2468
|
+
responseId: string;
|
|
2469
|
+
usage: {
|
|
2470
|
+
inputTokens?: number;
|
|
2471
|
+
outputTokens?: number;
|
|
2472
|
+
totalTokens?: number;
|
|
2473
|
+
uncachedInputTokens?: number;
|
|
2474
|
+
cacheReadInputTokens?: number;
|
|
2475
|
+
cacheWriteInputTokens?: number;
|
|
2476
|
+
textOutputTokens?: number;
|
|
2477
|
+
reasoningOutputTokens?: number;
|
|
2478
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2479
|
+
};
|
|
2480
|
+
occurredAt: string;
|
|
2481
|
+
recordedAt: string;
|
|
2482
|
+
};
|
|
2483
|
+
attribution?: {
|
|
2484
|
+
kind: "agent";
|
|
2485
|
+
agentId: string;
|
|
2486
|
+
agentRunId: string;
|
|
2487
|
+
threadId: string;
|
|
2488
|
+
} | {
|
|
2489
|
+
kind: "workflowAgent";
|
|
2490
|
+
agentId: string;
|
|
2491
|
+
nodeRunId: string;
|
|
2492
|
+
workflowId: string;
|
|
2493
|
+
workflowRunId: string;
|
|
2494
|
+
};
|
|
2495
|
+
cost?: {
|
|
2496
|
+
status: "rated";
|
|
2497
|
+
billingIdentity: {
|
|
2498
|
+
providerId: string;
|
|
2499
|
+
modelId: string;
|
|
2500
|
+
};
|
|
2501
|
+
pricingContext: {
|
|
2502
|
+
serviceTier?: string;
|
|
2503
|
+
batch?: boolean;
|
|
2504
|
+
region?: string;
|
|
2505
|
+
inferenceGeo?: string;
|
|
2506
|
+
routedProviderId?: string;
|
|
2507
|
+
deploymentId?: string;
|
|
2508
|
+
inferenceProfileId?: string;
|
|
2509
|
+
cacheWriteTtlSeconds?: number;
|
|
2510
|
+
mode?: string;
|
|
2511
|
+
};
|
|
2512
|
+
priceSource: {
|
|
2513
|
+
sourceId: string;
|
|
2514
|
+
sourceEntryId: string;
|
|
2515
|
+
sourceVersion: string;
|
|
2516
|
+
sourceUrl: string;
|
|
2517
|
+
observedAt: string;
|
|
2518
|
+
};
|
|
2519
|
+
money: {
|
|
2520
|
+
currency: string;
|
|
2521
|
+
amountNanos: string;
|
|
2522
|
+
};
|
|
2523
|
+
components: Array<{
|
|
2524
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
2525
|
+
quantity: string;
|
|
2526
|
+
rateAmountNanosPerMillion: string;
|
|
2527
|
+
chargeAmountNanos: string;
|
|
2528
|
+
}>;
|
|
2529
|
+
ratedAt: string;
|
|
2530
|
+
} | {
|
|
2531
|
+
status: "unpriceable";
|
|
2532
|
+
billingIdentity?: {
|
|
2533
|
+
providerId: string;
|
|
2534
|
+
modelId: string;
|
|
2535
|
+
};
|
|
2536
|
+
pricingContext: {
|
|
2537
|
+
serviceTier?: string;
|
|
2538
|
+
batch?: boolean;
|
|
2539
|
+
region?: string;
|
|
2540
|
+
inferenceGeo?: string;
|
|
2541
|
+
routedProviderId?: string;
|
|
2542
|
+
deploymentId?: string;
|
|
2543
|
+
inferenceProfileId?: string;
|
|
2544
|
+
cacheWriteTtlSeconds?: number;
|
|
2545
|
+
mode?: string;
|
|
2546
|
+
};
|
|
2547
|
+
priceSource: {
|
|
2548
|
+
sourceId: string;
|
|
2549
|
+
sourceEntryId: string;
|
|
2550
|
+
sourceVersion: string;
|
|
2551
|
+
sourceUrl: string;
|
|
2552
|
+
observedAt: string;
|
|
2553
|
+
};
|
|
2554
|
+
reason: "missingBillingIdentity" | "missingCatalogEntry" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
2555
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2556
|
+
ratedAt: string;
|
|
2557
|
+
};
|
|
2558
|
+
valuationStatus: "rated" | "unpriceable" | "unvalued";
|
|
2559
|
+
}>;
|
|
2560
|
+
hasMore: boolean;
|
|
2561
|
+
total: number;
|
|
2562
|
+
}, string | Pick<Pick<Options<ListAiModelCallsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
2563
|
+
_id: string;
|
|
2564
|
+
_infinite?: boolean;
|
|
2565
|
+
tags?: ReadonlyArray<string>;
|
|
2566
|
+
}, "query" | "body" | "headers" | "path">>) | undefined;
|
|
2567
|
+
} & {
|
|
2568
|
+
queryKey: QueryKey<Options<ListAiModelCallsData>> & {
|
|
2569
|
+
[dataTagSymbol]: InfiniteData<{
|
|
2570
|
+
items: Array<{
|
|
2571
|
+
usage: {
|
|
2572
|
+
id: string;
|
|
2573
|
+
executionId: string;
|
|
2574
|
+
attempt: number;
|
|
2575
|
+
callId: string;
|
|
2576
|
+
providerId: string;
|
|
2577
|
+
requestedModelId: string;
|
|
2578
|
+
responseModelId?: string;
|
|
2579
|
+
responseId: string;
|
|
2580
|
+
usage: {
|
|
2581
|
+
inputTokens?: number;
|
|
2582
|
+
outputTokens?: number;
|
|
2583
|
+
totalTokens?: number;
|
|
2584
|
+
uncachedInputTokens?: number;
|
|
2585
|
+
cacheReadInputTokens?: number;
|
|
2586
|
+
cacheWriteInputTokens?: number;
|
|
2587
|
+
textOutputTokens?: number;
|
|
2588
|
+
reasoningOutputTokens?: number;
|
|
2589
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
2590
|
+
};
|
|
2591
|
+
occurredAt: string;
|
|
2592
|
+
recordedAt: string;
|
|
2593
|
+
};
|
|
2594
|
+
attribution?: {
|
|
2595
|
+
kind: "agent";
|
|
2596
|
+
agentId: string;
|
|
2597
|
+
agentRunId: string;
|
|
2598
|
+
threadId: string;
|
|
2599
|
+
} | {
|
|
2600
|
+
kind: "workflowAgent";
|
|
2601
|
+
agentId: string;
|
|
2602
|
+
nodeRunId: string;
|
|
2603
|
+
workflowId: string;
|
|
2604
|
+
workflowRunId: string;
|
|
2605
|
+
};
|
|
2606
|
+
cost?: {
|
|
2607
|
+
status: "rated";
|
|
2608
|
+
billingIdentity: {
|
|
2609
|
+
providerId: string;
|
|
2610
|
+
modelId: string;
|
|
2611
|
+
};
|
|
2612
|
+
pricingContext: {
|
|
2613
|
+
serviceTier?: string;
|
|
2614
|
+
batch?: boolean;
|
|
2615
|
+
region?: string;
|
|
2616
|
+
inferenceGeo?: string;
|
|
2617
|
+
routedProviderId?: string;
|
|
2618
|
+
deploymentId?: string;
|
|
2619
|
+
inferenceProfileId?: string;
|
|
2620
|
+
cacheWriteTtlSeconds?: number;
|
|
2621
|
+
mode?: string;
|
|
2622
|
+
};
|
|
2623
|
+
priceSource: {
|
|
2624
|
+
sourceId: string;
|
|
2625
|
+
sourceEntryId: string;
|
|
2626
|
+
sourceVersion: string;
|
|
2627
|
+
sourceUrl: string;
|
|
2628
|
+
observedAt: string;
|
|
2629
|
+
};
|
|
2630
|
+
money: {
|
|
2631
|
+
currency: string;
|
|
2632
|
+
amountNanos: string;
|
|
2633
|
+
};
|
|
2634
|
+
components: Array<{
|
|
2635
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
2636
|
+
quantity: string;
|
|
2637
|
+
rateAmountNanosPerMillion: string;
|
|
2638
|
+
chargeAmountNanos: string;
|
|
2639
|
+
}>;
|
|
2640
|
+
ratedAt: string;
|
|
2641
|
+
} | {
|
|
2642
|
+
status: "unpriceable";
|
|
2643
|
+
billingIdentity?: {
|
|
2644
|
+
providerId: string;
|
|
2645
|
+
modelId: string;
|
|
2646
|
+
};
|
|
2647
|
+
pricingContext: {
|
|
2648
|
+
serviceTier?: string;
|
|
2649
|
+
batch?: boolean;
|
|
2650
|
+
region?: string;
|
|
2651
|
+
inferenceGeo?: string;
|
|
2652
|
+
routedProviderId?: string;
|
|
2653
|
+
deploymentId?: string;
|
|
2654
|
+
inferenceProfileId?: string;
|
|
2655
|
+
cacheWriteTtlSeconds?: number;
|
|
2656
|
+
mode?: string;
|
|
2657
|
+
};
|
|
2658
|
+
priceSource: {
|
|
2659
|
+
sourceId: string;
|
|
2660
|
+
sourceEntryId: string;
|
|
2661
|
+
sourceVersion: string;
|
|
2662
|
+
sourceUrl: string;
|
|
2663
|
+
observedAt: string;
|
|
2664
|
+
};
|
|
2665
|
+
reason: "missingBillingIdentity" | "missingCatalogEntry" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
2666
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2667
|
+
ratedAt: string;
|
|
2668
|
+
};
|
|
2669
|
+
valuationStatus: "rated" | "unpriceable" | "unvalued";
|
|
2670
|
+
}>;
|
|
2671
|
+
hasMore: boolean;
|
|
2672
|
+
total: number;
|
|
2673
|
+
}, unknown>;
|
|
2674
|
+
[dataTagErrorSymbol]: ListAiModelCallsError;
|
|
2675
|
+
};
|
|
2676
|
+
};
|
|
1153
2677
|
export declare const getProjectInfoQueryKey: (options?: Options<GetProjectInfoData>) => [Pick<Options<GetProjectInfoData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
1154
2678
|
_id: string;
|
|
1155
2679
|
_infinite?: boolean;
|
|
@@ -4761,7 +6285,13 @@ export declare const getPipelineRunOptions: (options: Options<GetPipelineRunData
|
|
|
4761
6285
|
details?: string | number | boolean | Array<unknown> | {
|
|
4762
6286
|
[key: string]: unknown;
|
|
4763
6287
|
} | null;
|
|
4764
|
-
truncated
|
|
6288
|
+
truncated
|
|
6289
|
+
/**
|
|
6290
|
+
* Get agent metadata
|
|
6291
|
+
*/
|
|
6292
|
+
? /**
|
|
6293
|
+
* Get agent metadata
|
|
6294
|
+
*/: true;
|
|
4765
6295
|
};
|
|
4766
6296
|
};
|
|
4767
6297
|
steps: Array<{
|
|
@@ -4816,7 +6346,13 @@ export declare const getPipelineRunOptions: (options: Options<GetPipelineRunData
|
|
|
4816
6346
|
details?: string | number | boolean | Array<unknown> | {
|
|
4817
6347
|
[key: string]: unknown;
|
|
4818
6348
|
} | null;
|
|
4819
|
-
truncated
|
|
6349
|
+
truncated
|
|
6350
|
+
/**
|
|
6351
|
+
* Get agent metadata
|
|
6352
|
+
*/
|
|
6353
|
+
? /**
|
|
6354
|
+
* Get agent metadata
|
|
6355
|
+
*/: true;
|
|
4820
6356
|
};
|
|
4821
6357
|
};
|
|
4822
6358
|
steps: Array<{
|
|
@@ -4876,7 +6412,13 @@ export declare const getPipelineRunOptions: (options: Options<GetPipelineRunData
|
|
|
4876
6412
|
details?: string | number | boolean | Array<unknown> | {
|
|
4877
6413
|
[key: string]: unknown;
|
|
4878
6414
|
} | null;
|
|
4879
|
-
truncated
|
|
6415
|
+
truncated
|
|
6416
|
+
/**
|
|
6417
|
+
* Get agent metadata
|
|
6418
|
+
*/
|
|
6419
|
+
? /**
|
|
6420
|
+
* Get agent metadata
|
|
6421
|
+
*/: true;
|
|
4880
6422
|
};
|
|
4881
6423
|
};
|
|
4882
6424
|
steps: Array<{
|
|
@@ -4942,7 +6484,13 @@ export declare const getPipelineRunOptions: (options: Options<GetPipelineRunData
|
|
|
4942
6484
|
details?: string | number | boolean | Array<unknown> | {
|
|
4943
6485
|
[key: string]: unknown;
|
|
4944
6486
|
} | null;
|
|
4945
|
-
truncated
|
|
6487
|
+
truncated
|
|
6488
|
+
/**
|
|
6489
|
+
* Get agent metadata
|
|
6490
|
+
*/
|
|
6491
|
+
? /**
|
|
6492
|
+
* Get agent metadata
|
|
6493
|
+
*/: true;
|
|
4946
6494
|
};
|
|
4947
6495
|
};
|
|
4948
6496
|
steps: Array<{
|
|
@@ -6764,6 +8312,15 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
|
|
|
6764
8312
|
reasoningOutputTokens?: number;
|
|
6765
8313
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
6766
8314
|
};
|
|
8315
|
+
cost?: {
|
|
8316
|
+
amounts: Array<{
|
|
8317
|
+
currency: string;
|
|
8318
|
+
amountNanos: string;
|
|
8319
|
+
}>;
|
|
8320
|
+
ratedCallCount: number;
|
|
8321
|
+
unpriceableCallCount: number;
|
|
8322
|
+
unvaluedCallCount: number;
|
|
8323
|
+
};
|
|
6767
8324
|
startedAt?: string;
|
|
6768
8325
|
completedAt?: string;
|
|
6769
8326
|
};
|
|
@@ -6851,6 +8408,15 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
|
|
|
6851
8408
|
reasoningOutputTokens?: number;
|
|
6852
8409
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
6853
8410
|
};
|
|
8411
|
+
cost?: {
|
|
8412
|
+
amounts: Array<{
|
|
8413
|
+
currency: string;
|
|
8414
|
+
amountNanos: string;
|
|
8415
|
+
}>;
|
|
8416
|
+
ratedCallCount: number;
|
|
8417
|
+
unpriceableCallCount: number;
|
|
8418
|
+
unvaluedCallCount: number;
|
|
8419
|
+
};
|
|
6854
8420
|
startedAt?: string;
|
|
6855
8421
|
completedAt?: string;
|
|
6856
8422
|
};
|
|
@@ -6943,6 +8509,15 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
|
|
|
6943
8509
|
reasoningOutputTokens?: number;
|
|
6944
8510
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
6945
8511
|
};
|
|
8512
|
+
cost?: {
|
|
8513
|
+
amounts: Array<{
|
|
8514
|
+
currency: string;
|
|
8515
|
+
amountNanos: string;
|
|
8516
|
+
}>;
|
|
8517
|
+
ratedCallCount: number;
|
|
8518
|
+
unpriceableCallCount: number;
|
|
8519
|
+
unvaluedCallCount: number;
|
|
8520
|
+
};
|
|
6946
8521
|
startedAt?: string;
|
|
6947
8522
|
completedAt?: string;
|
|
6948
8523
|
};
|
|
@@ -7041,6 +8616,15 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
|
|
|
7041
8616
|
reasoningOutputTokens?: number;
|
|
7042
8617
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
7043
8618
|
};
|
|
8619
|
+
cost?: {
|
|
8620
|
+
amounts: Array<{
|
|
8621
|
+
currency: string;
|
|
8622
|
+
amountNanos: string;
|
|
8623
|
+
}>;
|
|
8624
|
+
ratedCallCount: number;
|
|
8625
|
+
unpriceableCallCount: number;
|
|
8626
|
+
unvaluedCallCount: number;
|
|
8627
|
+
};
|
|
7044
8628
|
startedAt?: string;
|
|
7045
8629
|
completedAt?: string;
|
|
7046
8630
|
};
|
|
@@ -7074,12 +8658,99 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
|
|
|
7074
8658
|
reasoningOutputTokens?: number;
|
|
7075
8659
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
7076
8660
|
};
|
|
8661
|
+
cost?: {
|
|
8662
|
+
amounts: Array<{
|
|
8663
|
+
currency: string;
|
|
8664
|
+
amountNanos: string;
|
|
8665
|
+
}>;
|
|
8666
|
+
ratedCallCount: number;
|
|
8667
|
+
unpriceableCallCount: number;
|
|
8668
|
+
unvaluedCallCount: number;
|
|
8669
|
+
};
|
|
7077
8670
|
startedAt?: string;
|
|
7078
8671
|
completedAt?: string;
|
|
7079
8672
|
nodeRunId: string;
|
|
7080
8673
|
prompt: string;
|
|
7081
|
-
trace?: Array<
|
|
7082
|
-
|
|
8674
|
+
trace?: Array<{
|
|
8675
|
+
type: "text";
|
|
8676
|
+
text: string;
|
|
8677
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
8678
|
+
[key: string]: unknown;
|
|
8679
|
+
} | null;
|
|
8680
|
+
} | {
|
|
8681
|
+
type: "reasoning";
|
|
8682
|
+
text: string;
|
|
8683
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
8684
|
+
[key: string]: unknown;
|
|
8685
|
+
} | null;
|
|
8686
|
+
} | {
|
|
8687
|
+
type: "step-start";
|
|
8688
|
+
} | {
|
|
8689
|
+
type: "file";
|
|
8690
|
+
fileRef: {
|
|
8691
|
+
blobId: string;
|
|
8692
|
+
digest: string;
|
|
8693
|
+
sizeBytes: number;
|
|
8694
|
+
fileName?: string;
|
|
8695
|
+
mediaType?: string;
|
|
8696
|
+
logicalPath?: string;
|
|
8697
|
+
};
|
|
8698
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
8699
|
+
[key: string]: unknown;
|
|
8700
|
+
} | null;
|
|
8701
|
+
} | {
|
|
8702
|
+
context: {
|
|
8703
|
+
kind: "object";
|
|
8704
|
+
ref: {
|
|
8705
|
+
objectTypeId: string;
|
|
8706
|
+
primaryId: string;
|
|
8707
|
+
};
|
|
8708
|
+
} | {
|
|
8709
|
+
kind: "app-state";
|
|
8710
|
+
id: string;
|
|
8711
|
+
label: string;
|
|
8712
|
+
description: string;
|
|
8713
|
+
value: string | number | boolean | Array<unknown> | {
|
|
8714
|
+
[key: string]: unknown;
|
|
8715
|
+
} | null;
|
|
8716
|
+
};
|
|
8717
|
+
origin: "ambient" | "explicit";
|
|
8718
|
+
type: "context";
|
|
8719
|
+
} | {
|
|
8720
|
+
type: "tool-call";
|
|
8721
|
+
toolCallId: string;
|
|
8722
|
+
toolName: string;
|
|
8723
|
+
dynamic?: boolean;
|
|
8724
|
+
providerExecuted?: boolean;
|
|
8725
|
+
input: string | number | boolean | Array<unknown> | {
|
|
8726
|
+
[key: string]: unknown;
|
|
8727
|
+
} | null;
|
|
8728
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
8729
|
+
[key: string]: unknown;
|
|
8730
|
+
} | null;
|
|
8731
|
+
state: "output-available";
|
|
8732
|
+
output: string | number | boolean | Array<unknown> | {
|
|
8733
|
+
[key: string]: unknown;
|
|
8734
|
+
} | null;
|
|
8735
|
+
} | {
|
|
8736
|
+
type: "tool-call";
|
|
8737
|
+
toolCallId: string;
|
|
8738
|
+
toolName: string;
|
|
8739
|
+
dynamic?: boolean;
|
|
8740
|
+
providerExecuted?: boolean;
|
|
8741
|
+
input: string | number | boolean | Array<unknown> | {
|
|
8742
|
+
[key: string]: unknown;
|
|
8743
|
+
} | null;
|
|
8744
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
8745
|
+
[key: string]: unknown;
|
|
8746
|
+
} | null;
|
|
8747
|
+
state: "output-error";
|
|
8748
|
+
errorText: string;
|
|
8749
|
+
}>;
|
|
8750
|
+
diagnostics?: Array<string | number | boolean | Array<unknown> | {
|
|
8751
|
+
[key: string]: unknown;
|
|
8752
|
+
} | null>;
|
|
8753
|
+
failurePhase?: "agent-loop" | "structured-finalizer";
|
|
7083
8754
|
error?: {
|
|
7084
8755
|
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
|
|
7085
8756
|
message: string;
|
|
@@ -7108,12 +8779,99 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
|
|
|
7108
8779
|
reasoningOutputTokens?: number;
|
|
7109
8780
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
7110
8781
|
};
|
|
8782
|
+
cost?: {
|
|
8783
|
+
amounts: Array<{
|
|
8784
|
+
currency: string;
|
|
8785
|
+
amountNanos: string;
|
|
8786
|
+
}>;
|
|
8787
|
+
ratedCallCount: number;
|
|
8788
|
+
unpriceableCallCount: number;
|
|
8789
|
+
unvaluedCallCount: number;
|
|
8790
|
+
};
|
|
7111
8791
|
startedAt?: string;
|
|
7112
8792
|
completedAt?: string;
|
|
7113
8793
|
nodeRunId: string;
|
|
7114
8794
|
prompt: string;
|
|
7115
|
-
trace?: Array<
|
|
7116
|
-
|
|
8795
|
+
trace?: Array<{
|
|
8796
|
+
type: "text";
|
|
8797
|
+
text: string;
|
|
8798
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
8799
|
+
[key: string]: unknown;
|
|
8800
|
+
} | null;
|
|
8801
|
+
} | {
|
|
8802
|
+
type: "reasoning";
|
|
8803
|
+
text: string;
|
|
8804
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
8805
|
+
[key: string]: unknown;
|
|
8806
|
+
} | null;
|
|
8807
|
+
} | {
|
|
8808
|
+
type: "step-start";
|
|
8809
|
+
} | {
|
|
8810
|
+
type: "file";
|
|
8811
|
+
fileRef: {
|
|
8812
|
+
blobId: string;
|
|
8813
|
+
digest: string;
|
|
8814
|
+
sizeBytes: number;
|
|
8815
|
+
fileName?: string;
|
|
8816
|
+
mediaType?: string;
|
|
8817
|
+
logicalPath?: string;
|
|
8818
|
+
};
|
|
8819
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
8820
|
+
[key: string]: unknown;
|
|
8821
|
+
} | null;
|
|
8822
|
+
} | {
|
|
8823
|
+
context: {
|
|
8824
|
+
kind: "object";
|
|
8825
|
+
ref: {
|
|
8826
|
+
objectTypeId: string;
|
|
8827
|
+
primaryId: string;
|
|
8828
|
+
};
|
|
8829
|
+
} | {
|
|
8830
|
+
kind: "app-state";
|
|
8831
|
+
id: string;
|
|
8832
|
+
label: string;
|
|
8833
|
+
description: string;
|
|
8834
|
+
value: string | number | boolean | Array<unknown> | {
|
|
8835
|
+
[key: string]: unknown;
|
|
8836
|
+
} | null;
|
|
8837
|
+
};
|
|
8838
|
+
origin: "ambient" | "explicit";
|
|
8839
|
+
type: "context";
|
|
8840
|
+
} | {
|
|
8841
|
+
type: "tool-call";
|
|
8842
|
+
toolCallId: string;
|
|
8843
|
+
toolName: string;
|
|
8844
|
+
dynamic?: boolean;
|
|
8845
|
+
providerExecuted?: boolean;
|
|
8846
|
+
input: string | number | boolean | Array<unknown> | {
|
|
8847
|
+
[key: string]: unknown;
|
|
8848
|
+
} | null;
|
|
8849
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
8850
|
+
[key: string]: unknown;
|
|
8851
|
+
} | null;
|
|
8852
|
+
state: "output-available";
|
|
8853
|
+
output: string | number | boolean | Array<unknown> | {
|
|
8854
|
+
[key: string]: unknown;
|
|
8855
|
+
} | null;
|
|
8856
|
+
} | {
|
|
8857
|
+
type: "tool-call";
|
|
8858
|
+
toolCallId: string;
|
|
8859
|
+
toolName: string;
|
|
8860
|
+
dynamic?: boolean;
|
|
8861
|
+
providerExecuted?: boolean;
|
|
8862
|
+
input: string | number | boolean | Array<unknown> | {
|
|
8863
|
+
[key: string]: unknown;
|
|
8864
|
+
} | null;
|
|
8865
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
8866
|
+
[key: string]: unknown;
|
|
8867
|
+
} | null;
|
|
8868
|
+
state: "output-error";
|
|
8869
|
+
errorText: string;
|
|
8870
|
+
}>;
|
|
8871
|
+
diagnostics?: Array<string | number | boolean | Array<unknown> | {
|
|
8872
|
+
[key: string]: unknown;
|
|
8873
|
+
} | null>;
|
|
8874
|
+
failurePhase?: "agent-loop" | "structured-finalizer";
|
|
7117
8875
|
error?: {
|
|
7118
8876
|
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
|
|
7119
8877
|
message: string;
|
|
@@ -7147,12 +8905,99 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
|
|
|
7147
8905
|
reasoningOutputTokens?: number;
|
|
7148
8906
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
7149
8907
|
};
|
|
8908
|
+
cost?: {
|
|
8909
|
+
amounts: Array<{
|
|
8910
|
+
currency: string;
|
|
8911
|
+
amountNanos: string;
|
|
8912
|
+
}>;
|
|
8913
|
+
ratedCallCount: number;
|
|
8914
|
+
unpriceableCallCount: number;
|
|
8915
|
+
unvaluedCallCount: number;
|
|
8916
|
+
};
|
|
7150
8917
|
startedAt?: string;
|
|
7151
8918
|
completedAt?: string;
|
|
7152
8919
|
nodeRunId: string;
|
|
7153
8920
|
prompt: string;
|
|
7154
|
-
trace?: Array<
|
|
7155
|
-
|
|
8921
|
+
trace?: Array<{
|
|
8922
|
+
type: "text";
|
|
8923
|
+
text: string;
|
|
8924
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
8925
|
+
[key: string]: unknown;
|
|
8926
|
+
} | null;
|
|
8927
|
+
} | {
|
|
8928
|
+
type: "reasoning";
|
|
8929
|
+
text: string;
|
|
8930
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
8931
|
+
[key: string]: unknown;
|
|
8932
|
+
} | null;
|
|
8933
|
+
} | {
|
|
8934
|
+
type: "step-start";
|
|
8935
|
+
} | {
|
|
8936
|
+
type: "file";
|
|
8937
|
+
fileRef: {
|
|
8938
|
+
blobId: string;
|
|
8939
|
+
digest: string;
|
|
8940
|
+
sizeBytes: number;
|
|
8941
|
+
fileName?: string;
|
|
8942
|
+
mediaType?: string;
|
|
8943
|
+
logicalPath?: string;
|
|
8944
|
+
};
|
|
8945
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
8946
|
+
[key: string]: unknown;
|
|
8947
|
+
} | null;
|
|
8948
|
+
} | {
|
|
8949
|
+
context: {
|
|
8950
|
+
kind: "object";
|
|
8951
|
+
ref: {
|
|
8952
|
+
objectTypeId: string;
|
|
8953
|
+
primaryId: string;
|
|
8954
|
+
};
|
|
8955
|
+
} | {
|
|
8956
|
+
kind: "app-state";
|
|
8957
|
+
id: string;
|
|
8958
|
+
label: string;
|
|
8959
|
+
description: string;
|
|
8960
|
+
value: string | number | boolean | Array<unknown> | {
|
|
8961
|
+
[key: string]: unknown;
|
|
8962
|
+
} | null;
|
|
8963
|
+
};
|
|
8964
|
+
origin: "ambient" | "explicit";
|
|
8965
|
+
type: "context";
|
|
8966
|
+
} | {
|
|
8967
|
+
type: "tool-call";
|
|
8968
|
+
toolCallId: string;
|
|
8969
|
+
toolName: string;
|
|
8970
|
+
dynamic?: boolean;
|
|
8971
|
+
providerExecuted?: boolean;
|
|
8972
|
+
input: string | number | boolean | Array<unknown> | {
|
|
8973
|
+
[key: string]: unknown;
|
|
8974
|
+
} | null;
|
|
8975
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
8976
|
+
[key: string]: unknown;
|
|
8977
|
+
} | null;
|
|
8978
|
+
state: "output-available";
|
|
8979
|
+
output: string | number | boolean | Array<unknown> | {
|
|
8980
|
+
[key: string]: unknown;
|
|
8981
|
+
} | null;
|
|
8982
|
+
} | {
|
|
8983
|
+
type: "tool-call";
|
|
8984
|
+
toolCallId: string;
|
|
8985
|
+
toolName: string;
|
|
8986
|
+
dynamic?: boolean;
|
|
8987
|
+
providerExecuted?: boolean;
|
|
8988
|
+
input: string | number | boolean | Array<unknown> | {
|
|
8989
|
+
[key: string]: unknown;
|
|
8990
|
+
} | null;
|
|
8991
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
8992
|
+
[key: string]: unknown;
|
|
8993
|
+
} | null;
|
|
8994
|
+
state: "output-error";
|
|
8995
|
+
errorText: string;
|
|
8996
|
+
}>;
|
|
8997
|
+
diagnostics?: Array<string | number | boolean | Array<unknown> | {
|
|
8998
|
+
[key: string]: unknown;
|
|
8999
|
+
} | null>;
|
|
9000
|
+
failurePhase?: "agent-loop" | "structured-finalizer";
|
|
7156
9001
|
error?: {
|
|
7157
9002
|
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
|
|
7158
9003
|
message: string;
|
|
@@ -7192,12 +9037,99 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
|
|
|
7192
9037
|
reasoningOutputTokens?: number;
|
|
7193
9038
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
7194
9039
|
};
|
|
9040
|
+
cost?: {
|
|
9041
|
+
amounts: Array<{
|
|
9042
|
+
currency: string;
|
|
9043
|
+
amountNanos: string;
|
|
9044
|
+
}>;
|
|
9045
|
+
ratedCallCount: number;
|
|
9046
|
+
unpriceableCallCount: number;
|
|
9047
|
+
unvaluedCallCount: number;
|
|
9048
|
+
};
|
|
7195
9049
|
startedAt?: string;
|
|
7196
9050
|
completedAt?: string;
|
|
7197
9051
|
nodeRunId: string;
|
|
7198
9052
|
prompt: string;
|
|
7199
|
-
trace?: Array<
|
|
7200
|
-
|
|
9053
|
+
trace?: Array<{
|
|
9054
|
+
type: "text";
|
|
9055
|
+
text: string;
|
|
9056
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
9057
|
+
[key: string]: unknown;
|
|
9058
|
+
} | null;
|
|
9059
|
+
} | {
|
|
9060
|
+
type: "reasoning";
|
|
9061
|
+
text: string;
|
|
9062
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
9063
|
+
[key: string]: unknown;
|
|
9064
|
+
} | null;
|
|
9065
|
+
} | {
|
|
9066
|
+
type: "step-start";
|
|
9067
|
+
} | {
|
|
9068
|
+
type: "file";
|
|
9069
|
+
fileRef: {
|
|
9070
|
+
blobId: string;
|
|
9071
|
+
digest: string;
|
|
9072
|
+
sizeBytes: number;
|
|
9073
|
+
fileName?: string;
|
|
9074
|
+
mediaType?: string;
|
|
9075
|
+
logicalPath?: string;
|
|
9076
|
+
};
|
|
9077
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
9078
|
+
[key: string]: unknown;
|
|
9079
|
+
} | null;
|
|
9080
|
+
} | {
|
|
9081
|
+
context: {
|
|
9082
|
+
kind: "object";
|
|
9083
|
+
ref: {
|
|
9084
|
+
objectTypeId: string;
|
|
9085
|
+
primaryId: string;
|
|
9086
|
+
};
|
|
9087
|
+
} | {
|
|
9088
|
+
kind: "app-state";
|
|
9089
|
+
id: string;
|
|
9090
|
+
label: string;
|
|
9091
|
+
description: string;
|
|
9092
|
+
value: string | number | boolean | Array<unknown> | {
|
|
9093
|
+
[key: string]: unknown;
|
|
9094
|
+
} | null;
|
|
9095
|
+
};
|
|
9096
|
+
origin: "ambient" | "explicit";
|
|
9097
|
+
type: "context";
|
|
9098
|
+
} | {
|
|
9099
|
+
type: "tool-call";
|
|
9100
|
+
toolCallId: string;
|
|
9101
|
+
toolName: string;
|
|
9102
|
+
dynamic?: boolean;
|
|
9103
|
+
providerExecuted?: boolean;
|
|
9104
|
+
input: string | number | boolean | Array<unknown> | {
|
|
9105
|
+
[key: string]: unknown;
|
|
9106
|
+
} | null;
|
|
9107
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
9108
|
+
[key: string]: unknown;
|
|
9109
|
+
} | null;
|
|
9110
|
+
state: "output-available";
|
|
9111
|
+
output: string | number | boolean | Array<unknown> | {
|
|
9112
|
+
[key: string]: unknown;
|
|
9113
|
+
} | null;
|
|
9114
|
+
} | {
|
|
9115
|
+
type: "tool-call";
|
|
9116
|
+
toolCallId: string;
|
|
9117
|
+
toolName: string;
|
|
9118
|
+
dynamic?: boolean;
|
|
9119
|
+
providerExecuted?: boolean;
|
|
9120
|
+
input: string | number | boolean | Array<unknown> | {
|
|
9121
|
+
[key: string]: unknown;
|
|
9122
|
+
} | null;
|
|
9123
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
9124
|
+
[key: string]: unknown;
|
|
9125
|
+
} | null;
|
|
9126
|
+
state: "output-error";
|
|
9127
|
+
errorText: string;
|
|
9128
|
+
}>;
|
|
9129
|
+
diagnostics?: Array<string | number | boolean | Array<unknown> | {
|
|
9130
|
+
[key: string]: unknown;
|
|
9131
|
+
} | null>;
|
|
9132
|
+
failurePhase?: "agent-loop" | "structured-finalizer";
|
|
7201
9133
|
error?: {
|
|
7202
9134
|
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
|
|
7203
9135
|
message: string;
|
|
@@ -11678,7 +13610,7 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
|
|
|
11678
13610
|
};
|
|
11679
13611
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
11680
13612
|
modelId?: string;
|
|
11681
|
-
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown";
|
|
13613
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
11682
13614
|
usage?: {
|
|
11683
13615
|
inputTokens?: number;
|
|
11684
13616
|
outputTokens?: number;
|
|
@@ -11690,6 +13622,15 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
|
|
|
11690
13622
|
reasoningOutputTokens?: number;
|
|
11691
13623
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
11692
13624
|
};
|
|
13625
|
+
cost?: {
|
|
13626
|
+
amounts: Array<{
|
|
13627
|
+
currency: string;
|
|
13628
|
+
amountNanos: string;
|
|
13629
|
+
}>;
|
|
13630
|
+
ratedCallCount: number;
|
|
13631
|
+
unpriceableCallCount: number;
|
|
13632
|
+
unvaluedCallCount: number;
|
|
13633
|
+
};
|
|
11693
13634
|
diagnostics?: Array<{
|
|
11694
13635
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
11695
13636
|
severity: "warning" | "error";
|
|
@@ -11728,7 +13669,7 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
|
|
|
11728
13669
|
};
|
|
11729
13670
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
11730
13671
|
modelId?: string;
|
|
11731
|
-
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown";
|
|
13672
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
11732
13673
|
usage?: {
|
|
11733
13674
|
inputTokens?: number;
|
|
11734
13675
|
outputTokens?: number;
|
|
@@ -11740,6 +13681,15 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
|
|
|
11740
13681
|
reasoningOutputTokens?: number;
|
|
11741
13682
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
11742
13683
|
};
|
|
13684
|
+
cost?: {
|
|
13685
|
+
amounts: Array<{
|
|
13686
|
+
currency: string;
|
|
13687
|
+
amountNanos: string;
|
|
13688
|
+
}>;
|
|
13689
|
+
ratedCallCount: number;
|
|
13690
|
+
unpriceableCallCount: number;
|
|
13691
|
+
unvaluedCallCount: number;
|
|
13692
|
+
};
|
|
11743
13693
|
diagnostics?: Array<{
|
|
11744
13694
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
11745
13695
|
severity: "warning" | "error";
|
|
@@ -11783,7 +13733,7 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
|
|
|
11783
13733
|
};
|
|
11784
13734
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
11785
13735
|
modelId?: string;
|
|
11786
|
-
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown";
|
|
13736
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
11787
13737
|
usage?: {
|
|
11788
13738
|
inputTokens?: number;
|
|
11789
13739
|
outputTokens?: number;
|
|
@@ -11795,6 +13745,15 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
|
|
|
11795
13745
|
reasoningOutputTokens?: number;
|
|
11796
13746
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
11797
13747
|
};
|
|
13748
|
+
cost?: {
|
|
13749
|
+
amounts: Array<{
|
|
13750
|
+
currency: string;
|
|
13751
|
+
amountNanos: string;
|
|
13752
|
+
}>;
|
|
13753
|
+
ratedCallCount: number;
|
|
13754
|
+
unpriceableCallCount: number;
|
|
13755
|
+
unvaluedCallCount: number;
|
|
13756
|
+
};
|
|
11798
13757
|
diagnostics?: Array<{
|
|
11799
13758
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
11800
13759
|
severity: "warning" | "error";
|
|
@@ -11844,7 +13803,7 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
|
|
|
11844
13803
|
};
|
|
11845
13804
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
11846
13805
|
modelId?: string;
|
|
11847
|
-
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown";
|
|
13806
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
11848
13807
|
usage?: {
|
|
11849
13808
|
inputTokens?: number;
|
|
11850
13809
|
outputTokens?: number;
|
|
@@ -11856,6 +13815,15 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
|
|
|
11856
13815
|
reasoningOutputTokens?: number;
|
|
11857
13816
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
11858
13817
|
};
|
|
13818
|
+
cost?: {
|
|
13819
|
+
amounts: Array<{
|
|
13820
|
+
currency: string;
|
|
13821
|
+
amountNanos: string;
|
|
13822
|
+
}>;
|
|
13823
|
+
ratedCallCount: number;
|
|
13824
|
+
unpriceableCallCount: number;
|
|
13825
|
+
unvaluedCallCount: number;
|
|
13826
|
+
};
|
|
11859
13827
|
diagnostics?: Array<{
|
|
11860
13828
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
11861
13829
|
severity: "warning" | "error";
|
|
@@ -11902,7 +13870,7 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
|
|
|
11902
13870
|
};
|
|
11903
13871
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
11904
13872
|
modelId?: string;
|
|
11905
|
-
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown";
|
|
13873
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
11906
13874
|
usage?: {
|
|
11907
13875
|
inputTokens?: number;
|
|
11908
13876
|
outputTokens?: number;
|
|
@@ -11914,6 +13882,15 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
|
|
|
11914
13882
|
reasoningOutputTokens?: number;
|
|
11915
13883
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
11916
13884
|
};
|
|
13885
|
+
cost?: {
|
|
13886
|
+
amounts: Array<{
|
|
13887
|
+
currency: string;
|
|
13888
|
+
amountNanos: string;
|
|
13889
|
+
}>;
|
|
13890
|
+
ratedCallCount: number;
|
|
13891
|
+
unpriceableCallCount: number;
|
|
13892
|
+
unvaluedCallCount: number;
|
|
13893
|
+
};
|
|
11917
13894
|
diagnostics?: Array<{
|
|
11918
13895
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
11919
13896
|
severity: "warning" | "error";
|
|
@@ -11952,7 +13929,7 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
|
|
|
11952
13929
|
};
|
|
11953
13930
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
11954
13931
|
modelId?: string;
|
|
11955
|
-
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown";
|
|
13932
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
11956
13933
|
usage?: {
|
|
11957
13934
|
inputTokens?: number;
|
|
11958
13935
|
outputTokens?: number;
|
|
@@ -11964,6 +13941,15 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
|
|
|
11964
13941
|
reasoningOutputTokens?: number;
|
|
11965
13942
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
11966
13943
|
};
|
|
13944
|
+
cost?: {
|
|
13945
|
+
amounts: Array<{
|
|
13946
|
+
currency: string;
|
|
13947
|
+
amountNanos: string;
|
|
13948
|
+
}>;
|
|
13949
|
+
ratedCallCount: number;
|
|
13950
|
+
unpriceableCallCount: number;
|
|
13951
|
+
unvaluedCallCount: number;
|
|
13952
|
+
};
|
|
11967
13953
|
diagnostics?: Array<{
|
|
11968
13954
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
11969
13955
|
severity: "warning" | "error";
|
|
@@ -12007,7 +13993,7 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
|
|
|
12007
13993
|
};
|
|
12008
13994
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
12009
13995
|
modelId?: string;
|
|
12010
|
-
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown";
|
|
13996
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
12011
13997
|
usage?: {
|
|
12012
13998
|
inputTokens?: number;
|
|
12013
13999
|
outputTokens?: number;
|
|
@@ -12019,6 +14005,15 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
|
|
|
12019
14005
|
reasoningOutputTokens?: number;
|
|
12020
14006
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
12021
14007
|
};
|
|
14008
|
+
cost?: {
|
|
14009
|
+
amounts: Array<{
|
|
14010
|
+
currency: string;
|
|
14011
|
+
amountNanos: string;
|
|
14012
|
+
}>;
|
|
14013
|
+
ratedCallCount: number;
|
|
14014
|
+
unpriceableCallCount: number;
|
|
14015
|
+
unvaluedCallCount: number;
|
|
14016
|
+
};
|
|
12022
14017
|
diagnostics?: Array<{
|
|
12023
14018
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
12024
14019
|
severity: "warning" | "error";
|
|
@@ -12061,7 +14056,7 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
|
|
|
12061
14056
|
};
|
|
12062
14057
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
12063
14058
|
modelId?: string;
|
|
12064
|
-
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown";
|
|
14059
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
12065
14060
|
usage?: {
|
|
12066
14061
|
inputTokens?: number;
|
|
12067
14062
|
outputTokens?: number;
|
|
@@ -12073,6 +14068,15 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
|
|
|
12073
14068
|
reasoningOutputTokens?: number;
|
|
12074
14069
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
12075
14070
|
};
|
|
14071
|
+
cost?: {
|
|
14072
|
+
amounts: Array<{
|
|
14073
|
+
currency: string;
|
|
14074
|
+
amountNanos: string;
|
|
14075
|
+
}>;
|
|
14076
|
+
ratedCallCount: number;
|
|
14077
|
+
unpriceableCallCount: number;
|
|
14078
|
+
unvaluedCallCount: number;
|
|
14079
|
+
};
|
|
12076
14080
|
diagnostics?: Array<{
|
|
12077
14081
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
12078
14082
|
severity: "warning" | "error";
|
|
@@ -12118,7 +14122,7 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
|
|
|
12118
14122
|
};
|
|
12119
14123
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
12120
14124
|
modelId?: string;
|
|
12121
|
-
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown";
|
|
14125
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
12122
14126
|
usage?: {
|
|
12123
14127
|
inputTokens?: number;
|
|
12124
14128
|
outputTokens?: number;
|
|
@@ -12130,6 +14134,15 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
|
|
|
12130
14134
|
reasoningOutputTokens?: number;
|
|
12131
14135
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
12132
14136
|
};
|
|
14137
|
+
cost?: {
|
|
14138
|
+
amounts: Array<{
|
|
14139
|
+
currency: string;
|
|
14140
|
+
amountNanos: string;
|
|
14141
|
+
}>;
|
|
14142
|
+
ratedCallCount: number;
|
|
14143
|
+
unpriceableCallCount: number;
|
|
14144
|
+
unvaluedCallCount: number;
|
|
14145
|
+
};
|
|
12133
14146
|
diagnostics?: Array<{
|
|
12134
14147
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
12135
14148
|
severity: "warning" | "error";
|
|
@@ -12179,7 +14192,7 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
|
|
|
12179
14192
|
};
|
|
12180
14193
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
12181
14194
|
modelId?: string;
|
|
12182
|
-
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown";
|
|
14195
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
12183
14196
|
usage?: {
|
|
12184
14197
|
inputTokens?: number;
|
|
12185
14198
|
outputTokens?: number;
|
|
@@ -12191,6 +14204,15 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
|
|
|
12191
14204
|
reasoningOutputTokens?: number;
|
|
12192
14205
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
12193
14206
|
};
|
|
14207
|
+
cost?: {
|
|
14208
|
+
amounts: Array<{
|
|
14209
|
+
currency: string;
|
|
14210
|
+
amountNanos: string;
|
|
14211
|
+
}>;
|
|
14212
|
+
ratedCallCount: number;
|
|
14213
|
+
unpriceableCallCount: number;
|
|
14214
|
+
unvaluedCallCount: number;
|
|
14215
|
+
};
|
|
12194
14216
|
diagnostics?: Array<{
|
|
12195
14217
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
12196
14218
|
severity: "warning" | "error";
|
|
@@ -12225,7 +14247,7 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
|
|
|
12225
14247
|
};
|
|
12226
14248
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
12227
14249
|
modelId?: string;
|
|
12228
|
-
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown";
|
|
14250
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
12229
14251
|
usage?: {
|
|
12230
14252
|
inputTokens?: number;
|
|
12231
14253
|
outputTokens?: number;
|
|
@@ -12237,6 +14259,15 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
|
|
|
12237
14259
|
reasoningOutputTokens?: number;
|
|
12238
14260
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
12239
14261
|
};
|
|
14262
|
+
cost?: {
|
|
14263
|
+
amounts: Array<{
|
|
14264
|
+
currency: string;
|
|
14265
|
+
amountNanos: string;
|
|
14266
|
+
}>;
|
|
14267
|
+
ratedCallCount: number;
|
|
14268
|
+
unpriceableCallCount: number;
|
|
14269
|
+
unvaluedCallCount: number;
|
|
14270
|
+
};
|
|
12240
14271
|
diagnostics?: Array<{
|
|
12241
14272
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
12242
14273
|
severity: "warning" | "error";
|
|
@@ -12276,7 +14307,7 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
|
|
|
12276
14307
|
};
|
|
12277
14308
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
12278
14309
|
modelId?: string;
|
|
12279
|
-
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown";
|
|
14310
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
12280
14311
|
usage?: {
|
|
12281
14312
|
inputTokens?: number;
|
|
12282
14313
|
outputTokens?: number;
|
|
@@ -12288,6 +14319,15 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
|
|
|
12288
14319
|
reasoningOutputTokens?: number;
|
|
12289
14320
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
12290
14321
|
};
|
|
14322
|
+
cost?: {
|
|
14323
|
+
amounts: Array<{
|
|
14324
|
+
currency: string;
|
|
14325
|
+
amountNanos: string;
|
|
14326
|
+
}>;
|
|
14327
|
+
ratedCallCount: number;
|
|
14328
|
+
unpriceableCallCount: number;
|
|
14329
|
+
unvaluedCallCount: number;
|
|
14330
|
+
};
|
|
12291
14331
|
diagnostics?: Array<{
|
|
12292
14332
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
12293
14333
|
severity: "warning" | "error";
|
|
@@ -12333,7 +14373,7 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
|
|
|
12333
14373
|
};
|
|
12334
14374
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
12335
14375
|
modelId?: string;
|
|
12336
|
-
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown";
|
|
14376
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
12337
14377
|
usage?: {
|
|
12338
14378
|
inputTokens?: number;
|
|
12339
14379
|
outputTokens?: number;
|
|
@@ -12345,6 +14385,15 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
|
|
|
12345
14385
|
reasoningOutputTokens?: number;
|
|
12346
14386
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
12347
14387
|
};
|
|
14388
|
+
cost?: {
|
|
14389
|
+
amounts: Array<{
|
|
14390
|
+
currency: string;
|
|
14391
|
+
amountNanos: string;
|
|
14392
|
+
}>;
|
|
14393
|
+
ratedCallCount: number;
|
|
14394
|
+
unpriceableCallCount: number;
|
|
14395
|
+
unvaluedCallCount: number;
|
|
14396
|
+
};
|
|
12348
14397
|
diagnostics?: Array<{
|
|
12349
14398
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
12350
14399
|
severity: "warning" | "error";
|
|
@@ -14924,6 +16973,12 @@ export declare const listProjectionsOptions: (options?: Options<ListProjectionsD
|
|
|
14924
16973
|
targetObjectTypeId: string;
|
|
14925
16974
|
};
|
|
14926
16975
|
};
|
|
16976
|
+
conflictResolution: {
|
|
16977
|
+
strategy: "editsWin";
|
|
16978
|
+
} | {
|
|
16979
|
+
strategy: "mostRecent";
|
|
16980
|
+
sourceTimestamp: string;
|
|
16981
|
+
};
|
|
14927
16982
|
latestRun: {
|
|
14928
16983
|
id: string;
|
|
14929
16984
|
projectId: string;
|
|
@@ -15320,6 +17375,12 @@ export declare const listProjectionsOptions: (options?: Options<ListProjectionsD
|
|
|
15320
17375
|
targetObjectTypeId: string;
|
|
15321
17376
|
};
|
|
15322
17377
|
};
|
|
17378
|
+
conflictResolution: {
|
|
17379
|
+
strategy: "editsWin";
|
|
17380
|
+
} | {
|
|
17381
|
+
strategy: "mostRecent";
|
|
17382
|
+
sourceTimestamp: string;
|
|
17383
|
+
};
|
|
15323
17384
|
latestRun: {
|
|
15324
17385
|
id: string;
|
|
15325
17386
|
projectId: string;
|
|
@@ -15721,6 +17782,12 @@ export declare const listProjectionsOptions: (options?: Options<ListProjectionsD
|
|
|
15721
17782
|
targetObjectTypeId: string;
|
|
15722
17783
|
};
|
|
15723
17784
|
};
|
|
17785
|
+
conflictResolution: {
|
|
17786
|
+
strategy: "editsWin";
|
|
17787
|
+
} | {
|
|
17788
|
+
strategy: "mostRecent";
|
|
17789
|
+
sourceTimestamp: string;
|
|
17790
|
+
};
|
|
15724
17791
|
latestRun: {
|
|
15725
17792
|
id: string;
|
|
15726
17793
|
projectId: string;
|
|
@@ -16128,6 +18195,12 @@ export declare const listProjectionsOptions: (options?: Options<ListProjectionsD
|
|
|
16128
18195
|
targetObjectTypeId: string;
|
|
16129
18196
|
};
|
|
16130
18197
|
};
|
|
18198
|
+
conflictResolution: {
|
|
18199
|
+
strategy: "editsWin";
|
|
18200
|
+
} | {
|
|
18201
|
+
strategy: "mostRecent";
|
|
18202
|
+
sourceTimestamp: string;
|
|
18203
|
+
};
|
|
16131
18204
|
latestRun: {
|
|
16132
18205
|
id: string;
|
|
16133
18206
|
projectId: string;
|
|
@@ -16535,6 +18608,12 @@ export declare const getProjectionOptions: (options: Options<GetProjectionData>)
|
|
|
16535
18608
|
targetObjectTypeId: string;
|
|
16536
18609
|
};
|
|
16537
18610
|
};
|
|
18611
|
+
conflictResolution: {
|
|
18612
|
+
strategy: "editsWin";
|
|
18613
|
+
} | {
|
|
18614
|
+
strategy: "mostRecent";
|
|
18615
|
+
sourceTimestamp: string;
|
|
18616
|
+
};
|
|
16538
18617
|
latestRun: {
|
|
16539
18618
|
id: string;
|
|
16540
18619
|
projectId: string;
|
|
@@ -16929,6 +19008,12 @@ export declare const getProjectionOptions: (options: Options<GetProjectionData>)
|
|
|
16929
19008
|
targetObjectTypeId: string;
|
|
16930
19009
|
};
|
|
16931
19010
|
};
|
|
19011
|
+
conflictResolution: {
|
|
19012
|
+
strategy: "editsWin";
|
|
19013
|
+
} | {
|
|
19014
|
+
strategy: "mostRecent";
|
|
19015
|
+
sourceTimestamp: string;
|
|
19016
|
+
};
|
|
16932
19017
|
latestRun: {
|
|
16933
19018
|
id: string;
|
|
16934
19019
|
projectId: string;
|
|
@@ -17326,6 +19411,12 @@ export declare const getProjectionOptions: (options: Options<GetProjectionData>)
|
|
|
17326
19411
|
targetObjectTypeId: string;
|
|
17327
19412
|
};
|
|
17328
19413
|
};
|
|
19414
|
+
conflictResolution: {
|
|
19415
|
+
strategy: "editsWin";
|
|
19416
|
+
} | {
|
|
19417
|
+
strategy: "mostRecent";
|
|
19418
|
+
sourceTimestamp: string;
|
|
19419
|
+
};
|
|
17329
19420
|
latestRun: {
|
|
17330
19421
|
id: string;
|
|
17331
19422
|
projectId: string;
|
|
@@ -17729,6 +19820,12 @@ export declare const getProjectionOptions: (options: Options<GetProjectionData>)
|
|
|
17729
19820
|
targetObjectTypeId: string;
|
|
17730
19821
|
};
|
|
17731
19822
|
};
|
|
19823
|
+
conflictResolution: {
|
|
19824
|
+
strategy: "editsWin";
|
|
19825
|
+
} | {
|
|
19826
|
+
strategy: "mostRecent";
|
|
19827
|
+
sourceTimestamp: string;
|
|
19828
|
+
};
|
|
17732
19829
|
latestRun: {
|
|
17733
19830
|
id: string;
|
|
17734
19831
|
projectId: string;
|