@sixb/client 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -0
- package/dist/browser.js +2 -2
- package/dist/{chunk-9bwme2g7.js → chunk-b3bfdm80.js} +1 -1
- package/dist/{chunk-hwg7mwq7.js → chunk-dcebhkmz.js} +25 -6
- package/dist/{chunk-hwg7mwq7.js.map → chunk-dcebhkmz.js.map} +4 -4
- package/dist/{chunk-g19v53kt.js → chunk-h80qj1f8.js} +1 -1
- package/dist/{chunk-5y58b4tr.js → chunk-m4by7m5r.js} +2 -2
- package/dist/{chunk-ks27bq5b.js → chunk-p0xrjaz6.js} +2 -2
- package/dist/{chunk-ehjnq01h.js → chunk-r8p88mbg.js} +78 -9
- package/dist/chunk-r8p88mbg.js.map +19 -0
- package/dist/connectors/queries.d.ts.map +1 -1
- package/dist/file.d.ts +11 -0
- package/dist/file.d.ts.map +1 -1
- package/dist/generated/@tanstack/react-query.gen.d.ts +2411 -395
- 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 +41 -7
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.d.ts +980 -172
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/hooks.js +166 -22
- package/dist/hooks.js.map +3 -3
- package/dist/index.js +26 -8
- package/dist/index.js.map +1 -1
- package/dist/logs.js +3 -3
- package/dist/models.js +20 -4
- package/dist/models.js.map +1 -1
- package/dist/query.js +3 -3
- package/package.json +2 -2
- package/src/agent-streams.ts +0 -1
- package/src/file.ts +36 -0
- package/src/generated/@tanstack/react-query.gen.ts +320 -31
- package/src/generated/index.ts +52 -4
- package/src/generated/sdk.gen.ts +197 -18
- package/src/generated/types.gen.ts +1271 -146
- package/dist/chunk-ehjnq01h.js.map +0 -19
- /package/dist/{chunk-9bwme2g7.js.map → chunk-b3bfdm80.js.map} +0 -0
- /package/dist/{chunk-g19v53kt.js.map → chunk-h80qj1f8.js.map} +0 -0
- /package/dist/{chunk-5y58b4tr.js.map → chunk-m4by7m5r.js.map} +0 -0
- /package/dist/{chunk-ks27bq5b.js.map → chunk-p0xrjaz6.js.map} +0 -0
|
@@ -1,6 +1,14 @@
|
|
|
1
|
-
import { type InfiniteData, type UseMutationOptions } from "@tanstack/react-query";
|
|
1
|
+
import { type DefaultError, 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, 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,
|
|
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, CreateAiLimitPolicyData, CreateAiLimitPolicyError, CreateAiLimitPolicyResponse, CreateAuthInvitationData, CreateAuthInvitationError, CreateAuthInvitationResponse, CreateAuthPersonalAccessTokenData, CreateAuthPersonalAccessTokenError, CreateAuthPersonalAccessTokenResponse, CreateAuthServiceAccountAccessTokenData, CreateAuthServiceAccountAccessTokenError, CreateAuthServiceAccountAccessTokenResponse, CreateAuthServiceAccountData, CreateAuthServiceAccountError, CreateAuthServiceAccountResponse, CreateDeviceAuthorizationData, CreateDeviceAuthorizationError, CreateDeviceAuthorizationResponse, CreateFileUploadData, CreateFileUploadError, CreateFileUploadResponse, DeleteAiLimitPolicyData, DeleteAiLimitPolicyError, DeleteAiLimitPolicyResponse, DisableAuthServiceAccountData, DisableAuthServiceAccountError, DisableAuthServiceAccountResponse, DisconnectConnectorConnectionData, DisconnectConnectorConnectionError, DisconnectConnectorConnectionResponse, ExchangeDeviceAuthorizationData, ExchangeDeviceAuthorizationResponse, ExistsObjectsData, ExistsObjectsError, ExistsObjectsResponse, FacetObjectsData, FacetObjectsError, FacetObjectsResponse, GetActionData, GetActionRunData, GetActionRunError, GetActionRunFileContentData, GetActionRunFileContentResponse, GetAgentData, GetAgentMessageFileContentData, GetAgentMessageFileContentResponse, GetAgentRunData, GetAgentRunError, GetAgentThreadData, GetAgentThreadError, GetAiAccountingOverviewData, GetAiAccountingOverviewError, GetAiLimitStatusData, GetAiLimitStatusError, GetAiLimitSubjectOptionsData, GetAiLimitSubjectOptionsError, 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, ListAgentThreadMessagesData, ListAgentThreadMessagesError, ListAgentThreadRunsData, ListAgentThreadRunsError, ListAgentThreadsData, ListAgentThreadsError, ListAiLimitPoliciesData, ListAiLimitPoliciesError, ListAiModelCallGroupsData, ListAiModelCallGroupsError, 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, ListModelsData, 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, QueryObjectLinksData, QueryObjectLinksError, QueryObjectLinksResponse, 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, UpdateAiLimitPolicyData, UpdateAiLimitPolicyError, UpdateAiLimitPolicyResponse, UpdateAuthMemberGroupsData, UpdateAuthMemberGroupsError, UpdateAuthMemberGroupsResponse, UploadFileContentData, UploadFileContentError, UploadFileContentResponse, UploadFileRawData, UploadFileRawError, UploadFileRawResponse, UpsertObjectData, UpsertObjectError, UpsertObjectLinkData, UpsertObjectLinkError, UpsertObjectLinkResponse, UpsertObjectResponse } from "../types.gen";
|
|
4
|
+
/**
|
|
5
|
+
* Start device authorization
|
|
6
|
+
*/
|
|
7
|
+
export declare const createDeviceAuthorizationMutation: (options?: Partial<Options<CreateDeviceAuthorizationData>>) => UseMutationOptions<CreateDeviceAuthorizationResponse, CreateDeviceAuthorizationError, Options<CreateDeviceAuthorizationData>>;
|
|
8
|
+
/**
|
|
9
|
+
* Exchange an approved device authorization
|
|
10
|
+
*/
|
|
11
|
+
export declare const exchangeDeviceAuthorizationMutation: (options?: Partial<Options<ExchangeDeviceAuthorizationData>>) => UseMutationOptions<ExchangeDeviceAuthorizationResponse, DefaultError, Options<ExchangeDeviceAuthorizationData>>;
|
|
4
12
|
export type QueryKey<TOptions extends Options> = [
|
|
5
13
|
Pick<TOptions, "baseUrl" | "body" | "headers" | "path" | "query"> & {
|
|
6
14
|
_id: string;
|
|
@@ -1173,13 +1181,7 @@ export declare const getAiAccountingOverviewOptions: (options: Options<GetAiAcco
|
|
|
1173
1181
|
uncachedInputTokens?: number;
|
|
1174
1182
|
cacheReadInputTokens?: number;
|
|
1175
1183
|
cacheWriteInputTokens?: number;
|
|
1176
|
-
textOutputTokens
|
|
1177
|
-
/**
|
|
1178
|
-
* Suspend an auth member
|
|
1179
|
-
*/
|
|
1180
|
-
? /**
|
|
1181
|
-
* Suspend an auth member
|
|
1182
|
-
*/: number;
|
|
1184
|
+
textOutputTokens?: number;
|
|
1183
1185
|
reasoningOutputTokens?: number;
|
|
1184
1186
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1185
1187
|
};
|
|
@@ -1265,7 +1267,32 @@ export declare const getAiAccountingOverviewOptions: (options: Options<GetAiAcco
|
|
|
1265
1267
|
unpriceableCallCount: number;
|
|
1266
1268
|
unvaluedCallCount: number;
|
|
1267
1269
|
};
|
|
1268
|
-
|
|
1270
|
+
kind: "agent";
|
|
1271
|
+
} | {
|
|
1272
|
+
modelCallCount: number;
|
|
1273
|
+
usage: {
|
|
1274
|
+
inputTokens?: number;
|
|
1275
|
+
outputTokens?: number;
|
|
1276
|
+
totalTokens?: number;
|
|
1277
|
+
uncachedInputTokens?: number;
|
|
1278
|
+
cacheReadInputTokens?: number;
|
|
1279
|
+
cacheWriteInputTokens?: number;
|
|
1280
|
+
textOutputTokens?: number;
|
|
1281
|
+
reasoningOutputTokens?: number;
|
|
1282
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1283
|
+
};
|
|
1284
|
+
costs: {
|
|
1285
|
+
amounts: Array<{
|
|
1286
|
+
currency: string;
|
|
1287
|
+
amountNanos: string;
|
|
1288
|
+
}>;
|
|
1289
|
+
ratedCallCount: number;
|
|
1290
|
+
unpriceableCallCount: number;
|
|
1291
|
+
unvaluedCallCount: number;
|
|
1292
|
+
};
|
|
1293
|
+
kind: "workflowAgent";
|
|
1294
|
+
workflowId: string;
|
|
1295
|
+
agentStepId: string;
|
|
1269
1296
|
}>;
|
|
1270
1297
|
workflows: Array<{
|
|
1271
1298
|
modelCallCount: number;
|
|
@@ -1306,13 +1333,7 @@ export declare const getAiAccountingOverviewOptions: (options: Options<GetAiAcco
|
|
|
1306
1333
|
uncachedInputTokens?: number;
|
|
1307
1334
|
cacheReadInputTokens?: number;
|
|
1308
1335
|
cacheWriteInputTokens?: number;
|
|
1309
|
-
textOutputTokens
|
|
1310
|
-
/**
|
|
1311
|
-
* Suspend an auth member
|
|
1312
|
-
*/
|
|
1313
|
-
? /**
|
|
1314
|
-
* Suspend an auth member
|
|
1315
|
-
*/: number;
|
|
1336
|
+
textOutputTokens?: number;
|
|
1316
1337
|
reasoningOutputTokens?: number;
|
|
1317
1338
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1318
1339
|
};
|
|
@@ -1398,7 +1419,32 @@ export declare const getAiAccountingOverviewOptions: (options: Options<GetAiAcco
|
|
|
1398
1419
|
unpriceableCallCount: number;
|
|
1399
1420
|
unvaluedCallCount: number;
|
|
1400
1421
|
};
|
|
1401
|
-
|
|
1422
|
+
kind: "agent";
|
|
1423
|
+
} | {
|
|
1424
|
+
modelCallCount: number;
|
|
1425
|
+
usage: {
|
|
1426
|
+
inputTokens?: number;
|
|
1427
|
+
outputTokens?: number;
|
|
1428
|
+
totalTokens?: number;
|
|
1429
|
+
uncachedInputTokens?: number;
|
|
1430
|
+
cacheReadInputTokens?: number;
|
|
1431
|
+
cacheWriteInputTokens?: number;
|
|
1432
|
+
textOutputTokens?: number;
|
|
1433
|
+
reasoningOutputTokens?: number;
|
|
1434
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1435
|
+
};
|
|
1436
|
+
costs: {
|
|
1437
|
+
amounts: Array<{
|
|
1438
|
+
currency: string;
|
|
1439
|
+
amountNanos: string;
|
|
1440
|
+
}>;
|
|
1441
|
+
ratedCallCount: number;
|
|
1442
|
+
unpriceableCallCount: number;
|
|
1443
|
+
unvaluedCallCount: number;
|
|
1444
|
+
};
|
|
1445
|
+
kind: "workflowAgent";
|
|
1446
|
+
workflowId: string;
|
|
1447
|
+
agentStepId: string;
|
|
1402
1448
|
}>;
|
|
1403
1449
|
workflows: Array<{
|
|
1404
1450
|
modelCallCount: number;
|
|
@@ -1444,13 +1490,7 @@ export declare const getAiAccountingOverviewOptions: (options: Options<GetAiAcco
|
|
|
1444
1490
|
uncachedInputTokens?: number;
|
|
1445
1491
|
cacheReadInputTokens?: number;
|
|
1446
1492
|
cacheWriteInputTokens?: number;
|
|
1447
|
-
textOutputTokens
|
|
1448
|
-
/**
|
|
1449
|
-
* Suspend an auth member
|
|
1450
|
-
*/
|
|
1451
|
-
? /**
|
|
1452
|
-
* Suspend an auth member
|
|
1453
|
-
*/: number;
|
|
1493
|
+
textOutputTokens?: number;
|
|
1454
1494
|
reasoningOutputTokens?: number;
|
|
1455
1495
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1456
1496
|
};
|
|
@@ -1536,7 +1576,32 @@ export declare const getAiAccountingOverviewOptions: (options: Options<GetAiAcco
|
|
|
1536
1576
|
unpriceableCallCount: number;
|
|
1537
1577
|
unvaluedCallCount: number;
|
|
1538
1578
|
};
|
|
1539
|
-
|
|
1579
|
+
kind: "agent";
|
|
1580
|
+
} | {
|
|
1581
|
+
modelCallCount: number;
|
|
1582
|
+
usage: {
|
|
1583
|
+
inputTokens?: number;
|
|
1584
|
+
outputTokens?: number;
|
|
1585
|
+
totalTokens?: number;
|
|
1586
|
+
uncachedInputTokens?: number;
|
|
1587
|
+
cacheReadInputTokens?: number;
|
|
1588
|
+
cacheWriteInputTokens?: number;
|
|
1589
|
+
textOutputTokens?: number;
|
|
1590
|
+
reasoningOutputTokens?: number;
|
|
1591
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1592
|
+
};
|
|
1593
|
+
costs: {
|
|
1594
|
+
amounts: Array<{
|
|
1595
|
+
currency: string;
|
|
1596
|
+
amountNanos: string;
|
|
1597
|
+
}>;
|
|
1598
|
+
ratedCallCount: number;
|
|
1599
|
+
unpriceableCallCount: number;
|
|
1600
|
+
unvaluedCallCount: number;
|
|
1601
|
+
};
|
|
1602
|
+
kind: "workflowAgent";
|
|
1603
|
+
workflowId: string;
|
|
1604
|
+
agentStepId: string;
|
|
1540
1605
|
}>;
|
|
1541
1606
|
workflows: Array<{
|
|
1542
1607
|
modelCallCount: number;
|
|
@@ -1588,13 +1653,7 @@ export declare const getAiAccountingOverviewOptions: (options: Options<GetAiAcco
|
|
|
1588
1653
|
uncachedInputTokens?: number;
|
|
1589
1654
|
cacheReadInputTokens?: number;
|
|
1590
1655
|
cacheWriteInputTokens?: number;
|
|
1591
|
-
textOutputTokens
|
|
1592
|
-
/**
|
|
1593
|
-
* Suspend an auth member
|
|
1594
|
-
*/
|
|
1595
|
-
? /**
|
|
1596
|
-
* Suspend an auth member
|
|
1597
|
-
*/: number;
|
|
1656
|
+
textOutputTokens?: number;
|
|
1598
1657
|
reasoningOutputTokens?: number;
|
|
1599
1658
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1600
1659
|
};
|
|
@@ -1680,7 +1739,32 @@ export declare const getAiAccountingOverviewOptions: (options: Options<GetAiAcco
|
|
|
1680
1739
|
unpriceableCallCount: number;
|
|
1681
1740
|
unvaluedCallCount: number;
|
|
1682
1741
|
};
|
|
1683
|
-
|
|
1742
|
+
kind: "agent";
|
|
1743
|
+
} | {
|
|
1744
|
+
modelCallCount: number;
|
|
1745
|
+
usage: {
|
|
1746
|
+
inputTokens?: number;
|
|
1747
|
+
outputTokens?: number;
|
|
1748
|
+
totalTokens?: number;
|
|
1749
|
+
uncachedInputTokens?: number;
|
|
1750
|
+
cacheReadInputTokens?: number;
|
|
1751
|
+
cacheWriteInputTokens?: number;
|
|
1752
|
+
textOutputTokens?: number;
|
|
1753
|
+
reasoningOutputTokens?: number;
|
|
1754
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1755
|
+
};
|
|
1756
|
+
costs: {
|
|
1757
|
+
amounts: Array<{
|
|
1758
|
+
currency: string;
|
|
1759
|
+
amountNanos: string;
|
|
1760
|
+
}>;
|
|
1761
|
+
ratedCallCount: number;
|
|
1762
|
+
unpriceableCallCount: number;
|
|
1763
|
+
unvaluedCallCount: number;
|
|
1764
|
+
};
|
|
1765
|
+
kind: "workflowAgent";
|
|
1766
|
+
workflowId: string;
|
|
1767
|
+
agentStepId: string;
|
|
1684
1768
|
}>;
|
|
1685
1769
|
workflows: Array<{
|
|
1686
1770
|
modelCallCount: number;
|
|
@@ -1727,12 +1811,26 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1727
1811
|
callId: string;
|
|
1728
1812
|
providerId: string;
|
|
1729
1813
|
requestedModelId: string;
|
|
1814
|
+
requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
1815
|
+
budgetTokens: number;
|
|
1816
|
+
};
|
|
1730
1817
|
responseModelId?: string;
|
|
1731
1818
|
responseId: string;
|
|
1819
|
+
providerIds: {
|
|
1820
|
+
requestId?: string;
|
|
1821
|
+
responseId?: string;
|
|
1822
|
+
generationId?: string;
|
|
1823
|
+
} | null;
|
|
1732
1824
|
usage: {
|
|
1733
1825
|
inputTokens?: number;
|
|
1734
1826
|
outputTokens?: number;
|
|
1735
|
-
totalTokens
|
|
1827
|
+
totalTokens
|
|
1828
|
+
/**
|
|
1829
|
+
* Create an AI usage-limit policy
|
|
1830
|
+
*/
|
|
1831
|
+
? /**
|
|
1832
|
+
* Create an AI usage-limit policy
|
|
1833
|
+
*/: number;
|
|
1736
1834
|
uncachedInputTokens?: number;
|
|
1737
1835
|
cacheReadInputTokens?: number;
|
|
1738
1836
|
cacheWriteInputTokens?: number;
|
|
@@ -1745,18 +1843,39 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1745
1843
|
};
|
|
1746
1844
|
attribution?: {
|
|
1747
1845
|
kind: "agent";
|
|
1748
|
-
agentId: string;
|
|
1749
1846
|
agentRunId: string;
|
|
1750
1847
|
threadId: string;
|
|
1751
1848
|
} | {
|
|
1752
1849
|
kind: "workflowAgent";
|
|
1753
|
-
|
|
1850
|
+
agentStepId: string;
|
|
1754
1851
|
nodeRunId: string;
|
|
1755
1852
|
workflowId: string;
|
|
1756
1853
|
workflowRunId: string;
|
|
1854
|
+
} | {
|
|
1855
|
+
kind: "subagent";
|
|
1856
|
+
subagentRunId: string;
|
|
1857
|
+
parentRunId: string;
|
|
1757
1858
|
};
|
|
1758
1859
|
cost?: {
|
|
1759
1860
|
status: "rated";
|
|
1861
|
+
source: "estimate" | "provider" | "unknown";
|
|
1862
|
+
estimate?: {
|
|
1863
|
+
status: "rated";
|
|
1864
|
+
money: {
|
|
1865
|
+
currency: string;
|
|
1866
|
+
amountNanos: string;
|
|
1867
|
+
};
|
|
1868
|
+
components: Array<{
|
|
1869
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
1870
|
+
quantity: string;
|
|
1871
|
+
rateAmountNanosPerMillion: string;
|
|
1872
|
+
chargeAmountNanos: string;
|
|
1873
|
+
}>;
|
|
1874
|
+
} | {
|
|
1875
|
+
status: "unpriceable";
|
|
1876
|
+
reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
1877
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
1878
|
+
};
|
|
1760
1879
|
billingIdentity: {
|
|
1761
1880
|
providerId: string;
|
|
1762
1881
|
modelId: string;
|
|
@@ -1767,6 +1886,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1767
1886
|
region?: string;
|
|
1768
1887
|
inferenceGeo?: string;
|
|
1769
1888
|
routedProviderId?: string;
|
|
1889
|
+
routedModelId?: string;
|
|
1770
1890
|
deploymentId?: string;
|
|
1771
1891
|
inferenceProfileId?: string;
|
|
1772
1892
|
cacheWriteTtlSeconds?: number;
|
|
@@ -1776,7 +1896,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1776
1896
|
sourceId: string;
|
|
1777
1897
|
sourceEntryId: string;
|
|
1778
1898
|
sourceVersion: string;
|
|
1779
|
-
sourceUrl
|
|
1899
|
+
sourceUrl?: string;
|
|
1780
1900
|
observedAt: string;
|
|
1781
1901
|
};
|
|
1782
1902
|
money: {
|
|
@@ -1784,7 +1904,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1784
1904
|
amountNanos: string;
|
|
1785
1905
|
};
|
|
1786
1906
|
components: Array<{
|
|
1787
|
-
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
1907
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
1788
1908
|
quantity: string;
|
|
1789
1909
|
rateAmountNanosPerMillion: string;
|
|
1790
1910
|
chargeAmountNanos: string;
|
|
@@ -1792,7 +1912,29 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1792
1912
|
ratedAt: string;
|
|
1793
1913
|
} | {
|
|
1794
1914
|
status: "unpriceable";
|
|
1795
|
-
|
|
1915
|
+
source: "estimate" | "provider" | "unknown";
|
|
1916
|
+
estimate?: {
|
|
1917
|
+
status: "rated";
|
|
1918
|
+
money: {
|
|
1919
|
+
currency: string;
|
|
1920
|
+
amountNanos: string;
|
|
1921
|
+
};
|
|
1922
|
+
components: Array<{
|
|
1923
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
1924
|
+
quantity: string;
|
|
1925
|
+
rateAmountNanosPerMillion: string;
|
|
1926
|
+
chargeAmountNanos: string;
|
|
1927
|
+
}>;
|
|
1928
|
+
} | {
|
|
1929
|
+
status: "unpriceable";
|
|
1930
|
+
reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
1931
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
1932
|
+
};
|
|
1933
|
+
billingIdentity
|
|
1934
|
+
/**
|
|
1935
|
+
* Get current project metadata
|
|
1936
|
+
*/
|
|
1937
|
+
?: {
|
|
1796
1938
|
providerId: string;
|
|
1797
1939
|
modelId: string;
|
|
1798
1940
|
};
|
|
@@ -1802,20 +1944,21 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1802
1944
|
region?: string;
|
|
1803
1945
|
inferenceGeo?: string;
|
|
1804
1946
|
routedProviderId?: string;
|
|
1947
|
+
routedModelId?: string;
|
|
1805
1948
|
deploymentId?: string;
|
|
1806
1949
|
inferenceProfileId?: string;
|
|
1807
1950
|
cacheWriteTtlSeconds?: number;
|
|
1808
1951
|
mode?: string;
|
|
1809
1952
|
};
|
|
1810
|
-
priceSource
|
|
1953
|
+
priceSource?: {
|
|
1811
1954
|
sourceId: string;
|
|
1812
1955
|
sourceEntryId: string;
|
|
1813
1956
|
sourceVersion: string;
|
|
1814
|
-
sourceUrl
|
|
1957
|
+
sourceUrl?: string;
|
|
1815
1958
|
observedAt: string;
|
|
1816
1959
|
};
|
|
1817
|
-
reason: "missingBillingIdentity" | "
|
|
1818
|
-
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
1960
|
+
reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
1961
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
1819
1962
|
ratedAt: string;
|
|
1820
1963
|
};
|
|
1821
1964
|
valuationStatus: "rated" | "unpriceable" | "unvalued";
|
|
@@ -1831,12 +1974,26 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1831
1974
|
callId: string;
|
|
1832
1975
|
providerId: string;
|
|
1833
1976
|
requestedModelId: string;
|
|
1977
|
+
requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
1978
|
+
budgetTokens: number;
|
|
1979
|
+
};
|
|
1834
1980
|
responseModelId?: string;
|
|
1835
1981
|
responseId: string;
|
|
1982
|
+
providerIds: {
|
|
1983
|
+
requestId?: string;
|
|
1984
|
+
responseId?: string;
|
|
1985
|
+
generationId?: string;
|
|
1986
|
+
} | null;
|
|
1836
1987
|
usage: {
|
|
1837
1988
|
inputTokens?: number;
|
|
1838
1989
|
outputTokens?: number;
|
|
1839
|
-
totalTokens
|
|
1990
|
+
totalTokens
|
|
1991
|
+
/**
|
|
1992
|
+
* Create an AI usage-limit policy
|
|
1993
|
+
*/
|
|
1994
|
+
? /**
|
|
1995
|
+
* Create an AI usage-limit policy
|
|
1996
|
+
*/: number;
|
|
1840
1997
|
uncachedInputTokens?: number;
|
|
1841
1998
|
cacheReadInputTokens?: number;
|
|
1842
1999
|
cacheWriteInputTokens?: number;
|
|
@@ -1849,18 +2006,39 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1849
2006
|
};
|
|
1850
2007
|
attribution?: {
|
|
1851
2008
|
kind: "agent";
|
|
1852
|
-
agentId: string;
|
|
1853
2009
|
agentRunId: string;
|
|
1854
2010
|
threadId: string;
|
|
1855
2011
|
} | {
|
|
1856
2012
|
kind: "workflowAgent";
|
|
1857
|
-
|
|
2013
|
+
agentStepId: string;
|
|
1858
2014
|
nodeRunId: string;
|
|
1859
2015
|
workflowId: string;
|
|
1860
2016
|
workflowRunId: string;
|
|
2017
|
+
} | {
|
|
2018
|
+
kind: "subagent";
|
|
2019
|
+
subagentRunId: string;
|
|
2020
|
+
parentRunId: string;
|
|
1861
2021
|
};
|
|
1862
2022
|
cost?: {
|
|
1863
2023
|
status: "rated";
|
|
2024
|
+
source: "estimate" | "provider" | "unknown";
|
|
2025
|
+
estimate?: {
|
|
2026
|
+
status: "rated";
|
|
2027
|
+
money: {
|
|
2028
|
+
currency: string;
|
|
2029
|
+
amountNanos: string;
|
|
2030
|
+
};
|
|
2031
|
+
components: Array<{
|
|
2032
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
2033
|
+
quantity: string;
|
|
2034
|
+
rateAmountNanosPerMillion: string;
|
|
2035
|
+
chargeAmountNanos: string;
|
|
2036
|
+
}>;
|
|
2037
|
+
} | {
|
|
2038
|
+
status: "unpriceable";
|
|
2039
|
+
reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
2040
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2041
|
+
};
|
|
1864
2042
|
billingIdentity: {
|
|
1865
2043
|
providerId: string;
|
|
1866
2044
|
modelId: string;
|
|
@@ -1871,6 +2049,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1871
2049
|
region?: string;
|
|
1872
2050
|
inferenceGeo?: string;
|
|
1873
2051
|
routedProviderId?: string;
|
|
2052
|
+
routedModelId?: string;
|
|
1874
2053
|
deploymentId?: string;
|
|
1875
2054
|
inferenceProfileId?: string;
|
|
1876
2055
|
cacheWriteTtlSeconds?: number;
|
|
@@ -1880,7 +2059,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1880
2059
|
sourceId: string;
|
|
1881
2060
|
sourceEntryId: string;
|
|
1882
2061
|
sourceVersion: string;
|
|
1883
|
-
sourceUrl
|
|
2062
|
+
sourceUrl?: string;
|
|
1884
2063
|
observedAt: string;
|
|
1885
2064
|
};
|
|
1886
2065
|
money: {
|
|
@@ -1888,7 +2067,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1888
2067
|
amountNanos: string;
|
|
1889
2068
|
};
|
|
1890
2069
|
components: Array<{
|
|
1891
|
-
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
2070
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
1892
2071
|
quantity: string;
|
|
1893
2072
|
rateAmountNanosPerMillion: string;
|
|
1894
2073
|
chargeAmountNanos: string;
|
|
@@ -1896,7 +2075,29 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1896
2075
|
ratedAt: string;
|
|
1897
2076
|
} | {
|
|
1898
2077
|
status: "unpriceable";
|
|
1899
|
-
|
|
2078
|
+
source: "estimate" | "provider" | "unknown";
|
|
2079
|
+
estimate?: {
|
|
2080
|
+
status: "rated";
|
|
2081
|
+
money: {
|
|
2082
|
+
currency: string;
|
|
2083
|
+
amountNanos: string;
|
|
2084
|
+
};
|
|
2085
|
+
components: Array<{
|
|
2086
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
2087
|
+
quantity: string;
|
|
2088
|
+
rateAmountNanosPerMillion: string;
|
|
2089
|
+
chargeAmountNanos: string;
|
|
2090
|
+
}>;
|
|
2091
|
+
} | {
|
|
2092
|
+
status: "unpriceable";
|
|
2093
|
+
reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
2094
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2095
|
+
};
|
|
2096
|
+
billingIdentity
|
|
2097
|
+
/**
|
|
2098
|
+
* Get current project metadata
|
|
2099
|
+
*/
|
|
2100
|
+
?: {
|
|
1900
2101
|
providerId: string;
|
|
1901
2102
|
modelId: string;
|
|
1902
2103
|
};
|
|
@@ -1906,20 +2107,21 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1906
2107
|
region?: string;
|
|
1907
2108
|
inferenceGeo?: string;
|
|
1908
2109
|
routedProviderId?: string;
|
|
2110
|
+
routedModelId?: string;
|
|
1909
2111
|
deploymentId?: string;
|
|
1910
2112
|
inferenceProfileId?: string;
|
|
1911
2113
|
cacheWriteTtlSeconds?: number;
|
|
1912
2114
|
mode?: string;
|
|
1913
2115
|
};
|
|
1914
|
-
priceSource
|
|
2116
|
+
priceSource?: {
|
|
1915
2117
|
sourceId: string;
|
|
1916
2118
|
sourceEntryId: string;
|
|
1917
2119
|
sourceVersion: string;
|
|
1918
|
-
sourceUrl
|
|
2120
|
+
sourceUrl?: string;
|
|
1919
2121
|
observedAt: string;
|
|
1920
2122
|
};
|
|
1921
|
-
reason: "missingBillingIdentity" | "
|
|
1922
|
-
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2123
|
+
reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
2124
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
1923
2125
|
ratedAt: string;
|
|
1924
2126
|
};
|
|
1925
2127
|
valuationStatus: "rated" | "unpriceable" | "unvalued";
|
|
@@ -1940,12 +2142,26 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1940
2142
|
callId: string;
|
|
1941
2143
|
providerId: string;
|
|
1942
2144
|
requestedModelId: string;
|
|
2145
|
+
requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
2146
|
+
budgetTokens: number;
|
|
2147
|
+
};
|
|
1943
2148
|
responseModelId?: string;
|
|
1944
2149
|
responseId: string;
|
|
2150
|
+
providerIds: {
|
|
2151
|
+
requestId?: string;
|
|
2152
|
+
responseId?: string;
|
|
2153
|
+
generationId?: string;
|
|
2154
|
+
} | null;
|
|
1945
2155
|
usage: {
|
|
1946
2156
|
inputTokens?: number;
|
|
1947
2157
|
outputTokens?: number;
|
|
1948
|
-
totalTokens
|
|
2158
|
+
totalTokens
|
|
2159
|
+
/**
|
|
2160
|
+
* Create an AI usage-limit policy
|
|
2161
|
+
*/
|
|
2162
|
+
? /**
|
|
2163
|
+
* Create an AI usage-limit policy
|
|
2164
|
+
*/: number;
|
|
1949
2165
|
uncachedInputTokens?: number;
|
|
1950
2166
|
cacheReadInputTokens?: number;
|
|
1951
2167
|
cacheWriteInputTokens?: number;
|
|
@@ -1958,18 +2174,39 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1958
2174
|
};
|
|
1959
2175
|
attribution?: {
|
|
1960
2176
|
kind: "agent";
|
|
1961
|
-
agentId: string;
|
|
1962
2177
|
agentRunId: string;
|
|
1963
2178
|
threadId: string;
|
|
1964
2179
|
} | {
|
|
1965
2180
|
kind: "workflowAgent";
|
|
1966
|
-
|
|
2181
|
+
agentStepId: string;
|
|
1967
2182
|
nodeRunId: string;
|
|
1968
2183
|
workflowId: string;
|
|
1969
2184
|
workflowRunId: string;
|
|
2185
|
+
} | {
|
|
2186
|
+
kind: "subagent";
|
|
2187
|
+
subagentRunId: string;
|
|
2188
|
+
parentRunId: string;
|
|
1970
2189
|
};
|
|
1971
2190
|
cost?: {
|
|
1972
2191
|
status: "rated";
|
|
2192
|
+
source: "estimate" | "provider" | "unknown";
|
|
2193
|
+
estimate?: {
|
|
2194
|
+
status: "rated";
|
|
2195
|
+
money: {
|
|
2196
|
+
currency: string;
|
|
2197
|
+
amountNanos: string;
|
|
2198
|
+
};
|
|
2199
|
+
components: Array<{
|
|
2200
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
2201
|
+
quantity: string;
|
|
2202
|
+
rateAmountNanosPerMillion: string;
|
|
2203
|
+
chargeAmountNanos: string;
|
|
2204
|
+
}>;
|
|
2205
|
+
} | {
|
|
2206
|
+
status: "unpriceable";
|
|
2207
|
+
reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
2208
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2209
|
+
};
|
|
1973
2210
|
billingIdentity: {
|
|
1974
2211
|
providerId: string;
|
|
1975
2212
|
modelId: string;
|
|
@@ -1980,6 +2217,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1980
2217
|
region?: string;
|
|
1981
2218
|
inferenceGeo?: string;
|
|
1982
2219
|
routedProviderId?: string;
|
|
2220
|
+
routedModelId?: string;
|
|
1983
2221
|
deploymentId?: string;
|
|
1984
2222
|
inferenceProfileId?: string;
|
|
1985
2223
|
cacheWriteTtlSeconds?: number;
|
|
@@ -1989,7 +2227,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1989
2227
|
sourceId: string;
|
|
1990
2228
|
sourceEntryId: string;
|
|
1991
2229
|
sourceVersion: string;
|
|
1992
|
-
sourceUrl
|
|
2230
|
+
sourceUrl?: string;
|
|
1993
2231
|
observedAt: string;
|
|
1994
2232
|
};
|
|
1995
2233
|
money: {
|
|
@@ -1997,7 +2235,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1997
2235
|
amountNanos: string;
|
|
1998
2236
|
};
|
|
1999
2237
|
components: Array<{
|
|
2000
|
-
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
2238
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
2001
2239
|
quantity: string;
|
|
2002
2240
|
rateAmountNanosPerMillion: string;
|
|
2003
2241
|
chargeAmountNanos: string;
|
|
@@ -2005,7 +2243,29 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
2005
2243
|
ratedAt: string;
|
|
2006
2244
|
} | {
|
|
2007
2245
|
status: "unpriceable";
|
|
2008
|
-
|
|
2246
|
+
source: "estimate" | "provider" | "unknown";
|
|
2247
|
+
estimate?: {
|
|
2248
|
+
status: "rated";
|
|
2249
|
+
money: {
|
|
2250
|
+
currency: string;
|
|
2251
|
+
amountNanos: string;
|
|
2252
|
+
};
|
|
2253
|
+
components: Array<{
|
|
2254
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
2255
|
+
quantity: string;
|
|
2256
|
+
rateAmountNanosPerMillion: string;
|
|
2257
|
+
chargeAmountNanos: string;
|
|
2258
|
+
}>;
|
|
2259
|
+
} | {
|
|
2260
|
+
status: "unpriceable";
|
|
2261
|
+
reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
2262
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2263
|
+
};
|
|
2264
|
+
billingIdentity
|
|
2265
|
+
/**
|
|
2266
|
+
* Get current project metadata
|
|
2267
|
+
*/
|
|
2268
|
+
?: {
|
|
2009
2269
|
providerId: string;
|
|
2010
2270
|
modelId: string;
|
|
2011
2271
|
};
|
|
@@ -2015,20 +2275,21 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
2015
2275
|
region?: string;
|
|
2016
2276
|
inferenceGeo?: string;
|
|
2017
2277
|
routedProviderId?: string;
|
|
2278
|
+
routedModelId?: string;
|
|
2018
2279
|
deploymentId?: string;
|
|
2019
2280
|
inferenceProfileId?: string;
|
|
2020
2281
|
cacheWriteTtlSeconds?: number;
|
|
2021
2282
|
mode?: string;
|
|
2022
2283
|
};
|
|
2023
|
-
priceSource
|
|
2284
|
+
priceSource?: {
|
|
2024
2285
|
sourceId: string;
|
|
2025
2286
|
sourceEntryId: string;
|
|
2026
2287
|
sourceVersion: string;
|
|
2027
|
-
sourceUrl
|
|
2288
|
+
sourceUrl?: string;
|
|
2028
2289
|
observedAt: string;
|
|
2029
2290
|
};
|
|
2030
|
-
reason: "missingBillingIdentity" | "
|
|
2031
|
-
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2291
|
+
reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
2292
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2032
2293
|
ratedAt: string;
|
|
2033
2294
|
};
|
|
2034
2295
|
valuationStatus: "rated" | "unpriceable" | "unvalued";
|
|
@@ -2055,12 +2316,26 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
2055
2316
|
callId: string;
|
|
2056
2317
|
providerId: string;
|
|
2057
2318
|
requestedModelId: string;
|
|
2319
|
+
requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
2320
|
+
budgetTokens: number;
|
|
2321
|
+
};
|
|
2058
2322
|
responseModelId?: string;
|
|
2059
2323
|
responseId: string;
|
|
2324
|
+
providerIds: {
|
|
2325
|
+
requestId?: string;
|
|
2326
|
+
responseId?: string;
|
|
2327
|
+
generationId?: string;
|
|
2328
|
+
} | null;
|
|
2060
2329
|
usage: {
|
|
2061
2330
|
inputTokens?: number;
|
|
2062
2331
|
outputTokens?: number;
|
|
2063
|
-
totalTokens
|
|
2332
|
+
totalTokens
|
|
2333
|
+
/**
|
|
2334
|
+
* Create an AI usage-limit policy
|
|
2335
|
+
*/
|
|
2336
|
+
? /**
|
|
2337
|
+
* Create an AI usage-limit policy
|
|
2338
|
+
*/: number;
|
|
2064
2339
|
uncachedInputTokens?: number;
|
|
2065
2340
|
cacheReadInputTokens?: number;
|
|
2066
2341
|
cacheWriteInputTokens?: number;
|
|
@@ -2073,18 +2348,39 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
2073
2348
|
};
|
|
2074
2349
|
attribution?: {
|
|
2075
2350
|
kind: "agent";
|
|
2076
|
-
agentId: string;
|
|
2077
2351
|
agentRunId: string;
|
|
2078
2352
|
threadId: string;
|
|
2079
2353
|
} | {
|
|
2080
2354
|
kind: "workflowAgent";
|
|
2081
|
-
|
|
2355
|
+
agentStepId: string;
|
|
2082
2356
|
nodeRunId: string;
|
|
2083
2357
|
workflowId: string;
|
|
2084
2358
|
workflowRunId: string;
|
|
2359
|
+
} | {
|
|
2360
|
+
kind: "subagent";
|
|
2361
|
+
subagentRunId: string;
|
|
2362
|
+
parentRunId: string;
|
|
2085
2363
|
};
|
|
2086
2364
|
cost?: {
|
|
2087
2365
|
status: "rated";
|
|
2366
|
+
source: "estimate" | "provider" | "unknown";
|
|
2367
|
+
estimate?: {
|
|
2368
|
+
status: "rated";
|
|
2369
|
+
money: {
|
|
2370
|
+
currency: string;
|
|
2371
|
+
amountNanos: string;
|
|
2372
|
+
};
|
|
2373
|
+
components: Array<{
|
|
2374
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
2375
|
+
quantity: string;
|
|
2376
|
+
rateAmountNanosPerMillion: string;
|
|
2377
|
+
chargeAmountNanos: string;
|
|
2378
|
+
}>;
|
|
2379
|
+
} | {
|
|
2380
|
+
status: "unpriceable";
|
|
2381
|
+
reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
2382
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2383
|
+
};
|
|
2088
2384
|
billingIdentity: {
|
|
2089
2385
|
providerId: string;
|
|
2090
2386
|
modelId: string;
|
|
@@ -2095,6 +2391,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
2095
2391
|
region?: string;
|
|
2096
2392
|
inferenceGeo?: string;
|
|
2097
2393
|
routedProviderId?: string;
|
|
2394
|
+
routedModelId?: string;
|
|
2098
2395
|
deploymentId?: string;
|
|
2099
2396
|
inferenceProfileId?: string;
|
|
2100
2397
|
cacheWriteTtlSeconds?: number;
|
|
@@ -2104,7 +2401,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
2104
2401
|
sourceId: string;
|
|
2105
2402
|
sourceEntryId: string;
|
|
2106
2403
|
sourceVersion: string;
|
|
2107
|
-
sourceUrl
|
|
2404
|
+
sourceUrl?: string;
|
|
2108
2405
|
observedAt: string;
|
|
2109
2406
|
};
|
|
2110
2407
|
money: {
|
|
@@ -2112,7 +2409,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
2112
2409
|
amountNanos: string;
|
|
2113
2410
|
};
|
|
2114
2411
|
components: Array<{
|
|
2115
|
-
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
2412
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
2116
2413
|
quantity: string;
|
|
2117
2414
|
rateAmountNanosPerMillion: string;
|
|
2118
2415
|
chargeAmountNanos: string;
|
|
@@ -2120,7 +2417,29 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
2120
2417
|
ratedAt: string;
|
|
2121
2418
|
} | {
|
|
2122
2419
|
status: "unpriceable";
|
|
2123
|
-
|
|
2420
|
+
source: "estimate" | "provider" | "unknown";
|
|
2421
|
+
estimate?: {
|
|
2422
|
+
status: "rated";
|
|
2423
|
+
money: {
|
|
2424
|
+
currency: string;
|
|
2425
|
+
amountNanos: string;
|
|
2426
|
+
};
|
|
2427
|
+
components: Array<{
|
|
2428
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
2429
|
+
quantity: string;
|
|
2430
|
+
rateAmountNanosPerMillion: string;
|
|
2431
|
+
chargeAmountNanos: string;
|
|
2432
|
+
}>;
|
|
2433
|
+
} | {
|
|
2434
|
+
status: "unpriceable";
|
|
2435
|
+
reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
2436
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2437
|
+
};
|
|
2438
|
+
billingIdentity
|
|
2439
|
+
/**
|
|
2440
|
+
* Get current project metadata
|
|
2441
|
+
*/
|
|
2442
|
+
?: {
|
|
2124
2443
|
providerId: string;
|
|
2125
2444
|
modelId: string;
|
|
2126
2445
|
};
|
|
@@ -2130,20 +2449,21 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
2130
2449
|
region?: string;
|
|
2131
2450
|
inferenceGeo?: string;
|
|
2132
2451
|
routedProviderId?: string;
|
|
2452
|
+
routedModelId?: string;
|
|
2133
2453
|
deploymentId?: string;
|
|
2134
2454
|
inferenceProfileId?: string;
|
|
2135
2455
|
cacheWriteTtlSeconds?: number;
|
|
2136
2456
|
mode?: string;
|
|
2137
2457
|
};
|
|
2138
|
-
priceSource
|
|
2458
|
+
priceSource?: {
|
|
2139
2459
|
sourceId: string;
|
|
2140
2460
|
sourceEntryId: string;
|
|
2141
2461
|
sourceVersion: string;
|
|
2142
|
-
sourceUrl
|
|
2462
|
+
sourceUrl?: string;
|
|
2143
2463
|
observedAt: string;
|
|
2144
2464
|
};
|
|
2145
|
-
reason: "missingBillingIdentity" | "
|
|
2146
|
-
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2465
|
+
reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
2466
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2147
2467
|
ratedAt: string;
|
|
2148
2468
|
};
|
|
2149
2469
|
valuationStatus: "rated" | "unpriceable" | "unvalued";
|
|
@@ -2167,12 +2487,26 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2167
2487
|
callId: string;
|
|
2168
2488
|
providerId: string;
|
|
2169
2489
|
requestedModelId: string;
|
|
2490
|
+
requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
2491
|
+
budgetTokens: number;
|
|
2492
|
+
};
|
|
2170
2493
|
responseModelId?: string;
|
|
2171
2494
|
responseId: string;
|
|
2495
|
+
providerIds: {
|
|
2496
|
+
requestId?: string;
|
|
2497
|
+
responseId?: string;
|
|
2498
|
+
generationId?: string;
|
|
2499
|
+
} | null;
|
|
2172
2500
|
usage: {
|
|
2173
2501
|
inputTokens?: number;
|
|
2174
2502
|
outputTokens?: number;
|
|
2175
|
-
totalTokens
|
|
2503
|
+
totalTokens
|
|
2504
|
+
/**
|
|
2505
|
+
* Create an AI usage-limit policy
|
|
2506
|
+
*/
|
|
2507
|
+
? /**
|
|
2508
|
+
* Create an AI usage-limit policy
|
|
2509
|
+
*/: number;
|
|
2176
2510
|
uncachedInputTokens?: number;
|
|
2177
2511
|
cacheReadInputTokens?: number;
|
|
2178
2512
|
cacheWriteInputTokens?: number;
|
|
@@ -2185,20 +2519,41 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2185
2519
|
};
|
|
2186
2520
|
attribution?: {
|
|
2187
2521
|
kind: "agent";
|
|
2188
|
-
agentId: string;
|
|
2189
2522
|
agentRunId: string;
|
|
2190
2523
|
threadId: string;
|
|
2191
2524
|
} | {
|
|
2192
2525
|
kind: "workflowAgent";
|
|
2193
|
-
|
|
2526
|
+
agentStepId: string;
|
|
2194
2527
|
nodeRunId: string;
|
|
2195
2528
|
workflowId: string;
|
|
2196
2529
|
workflowRunId: string;
|
|
2530
|
+
} | {
|
|
2531
|
+
kind: "subagent";
|
|
2532
|
+
subagentRunId: string;
|
|
2533
|
+
parentRunId: string;
|
|
2197
2534
|
};
|
|
2198
2535
|
cost?: {
|
|
2199
2536
|
status: "rated";
|
|
2200
|
-
|
|
2201
|
-
|
|
2537
|
+
source: "estimate" | "provider" | "unknown";
|
|
2538
|
+
estimate?: {
|
|
2539
|
+
status: "rated";
|
|
2540
|
+
money: {
|
|
2541
|
+
currency: string;
|
|
2542
|
+
amountNanos: string;
|
|
2543
|
+
};
|
|
2544
|
+
components: Array<{
|
|
2545
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
2546
|
+
quantity: string;
|
|
2547
|
+
rateAmountNanosPerMillion: string;
|
|
2548
|
+
chargeAmountNanos: string;
|
|
2549
|
+
}>;
|
|
2550
|
+
} | {
|
|
2551
|
+
status: "unpriceable";
|
|
2552
|
+
reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
2553
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2554
|
+
};
|
|
2555
|
+
billingIdentity: {
|
|
2556
|
+
providerId: string;
|
|
2202
2557
|
modelId: string;
|
|
2203
2558
|
};
|
|
2204
2559
|
pricingContext: {
|
|
@@ -2207,6 +2562,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2207
2562
|
region?: string;
|
|
2208
2563
|
inferenceGeo?: string;
|
|
2209
2564
|
routedProviderId?: string;
|
|
2565
|
+
routedModelId?: string;
|
|
2210
2566
|
deploymentId?: string;
|
|
2211
2567
|
inferenceProfileId?: string;
|
|
2212
2568
|
cacheWriteTtlSeconds?: number;
|
|
@@ -2216,7 +2572,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2216
2572
|
sourceId: string;
|
|
2217
2573
|
sourceEntryId: string;
|
|
2218
2574
|
sourceVersion: string;
|
|
2219
|
-
sourceUrl
|
|
2575
|
+
sourceUrl?: string;
|
|
2220
2576
|
observedAt: string;
|
|
2221
2577
|
};
|
|
2222
2578
|
money: {
|
|
@@ -2224,7 +2580,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2224
2580
|
amountNanos: string;
|
|
2225
2581
|
};
|
|
2226
2582
|
components: Array<{
|
|
2227
|
-
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
2583
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
2228
2584
|
quantity: string;
|
|
2229
2585
|
rateAmountNanosPerMillion: string;
|
|
2230
2586
|
chargeAmountNanos: string;
|
|
@@ -2232,7 +2588,29 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2232
2588
|
ratedAt: string;
|
|
2233
2589
|
} | {
|
|
2234
2590
|
status: "unpriceable";
|
|
2235
|
-
|
|
2591
|
+
source: "estimate" | "provider" | "unknown";
|
|
2592
|
+
estimate?: {
|
|
2593
|
+
status: "rated";
|
|
2594
|
+
money: {
|
|
2595
|
+
currency: string;
|
|
2596
|
+
amountNanos: string;
|
|
2597
|
+
};
|
|
2598
|
+
components: Array<{
|
|
2599
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
2600
|
+
quantity: string;
|
|
2601
|
+
rateAmountNanosPerMillion: string;
|
|
2602
|
+
chargeAmountNanos: string;
|
|
2603
|
+
}>;
|
|
2604
|
+
} | {
|
|
2605
|
+
status: "unpriceable";
|
|
2606
|
+
reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
2607
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2608
|
+
};
|
|
2609
|
+
billingIdentity
|
|
2610
|
+
/**
|
|
2611
|
+
* Get current project metadata
|
|
2612
|
+
*/
|
|
2613
|
+
?: {
|
|
2236
2614
|
providerId: string;
|
|
2237
2615
|
modelId: string;
|
|
2238
2616
|
};
|
|
@@ -2242,20 +2620,21 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2242
2620
|
region?: string;
|
|
2243
2621
|
inferenceGeo?: string;
|
|
2244
2622
|
routedProviderId?: string;
|
|
2623
|
+
routedModelId?: string;
|
|
2245
2624
|
deploymentId?: string;
|
|
2246
2625
|
inferenceProfileId?: string;
|
|
2247
2626
|
cacheWriteTtlSeconds?: number;
|
|
2248
2627
|
mode?: string;
|
|
2249
2628
|
};
|
|
2250
|
-
priceSource
|
|
2629
|
+
priceSource?: {
|
|
2251
2630
|
sourceId: string;
|
|
2252
2631
|
sourceEntryId: string;
|
|
2253
2632
|
sourceVersion: string;
|
|
2254
|
-
sourceUrl
|
|
2633
|
+
sourceUrl?: string;
|
|
2255
2634
|
observedAt: string;
|
|
2256
2635
|
};
|
|
2257
|
-
reason: "missingBillingIdentity" | "
|
|
2258
|
-
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2636
|
+
reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
2637
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2259
2638
|
ratedAt: string;
|
|
2260
2639
|
};
|
|
2261
2640
|
valuationStatus: "rated" | "unpriceable" | "unvalued";
|
|
@@ -2271,12 +2650,26 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2271
2650
|
callId: string;
|
|
2272
2651
|
providerId: string;
|
|
2273
2652
|
requestedModelId: string;
|
|
2653
|
+
requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
2654
|
+
budgetTokens: number;
|
|
2655
|
+
};
|
|
2274
2656
|
responseModelId?: string;
|
|
2275
2657
|
responseId: string;
|
|
2658
|
+
providerIds: {
|
|
2659
|
+
requestId?: string;
|
|
2660
|
+
responseId?: string;
|
|
2661
|
+
generationId?: string;
|
|
2662
|
+
} | null;
|
|
2276
2663
|
usage: {
|
|
2277
2664
|
inputTokens?: number;
|
|
2278
2665
|
outputTokens?: number;
|
|
2279
|
-
totalTokens
|
|
2666
|
+
totalTokens
|
|
2667
|
+
/**
|
|
2668
|
+
* Create an AI usage-limit policy
|
|
2669
|
+
*/
|
|
2670
|
+
? /**
|
|
2671
|
+
* Create an AI usage-limit policy
|
|
2672
|
+
*/: number;
|
|
2280
2673
|
uncachedInputTokens?: number;
|
|
2281
2674
|
cacheReadInputTokens?: number;
|
|
2282
2675
|
cacheWriteInputTokens?: number;
|
|
@@ -2289,18 +2682,39 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2289
2682
|
};
|
|
2290
2683
|
attribution?: {
|
|
2291
2684
|
kind: "agent";
|
|
2292
|
-
agentId: string;
|
|
2293
2685
|
agentRunId: string;
|
|
2294
2686
|
threadId: string;
|
|
2295
2687
|
} | {
|
|
2296
2688
|
kind: "workflowAgent";
|
|
2297
|
-
|
|
2689
|
+
agentStepId: string;
|
|
2298
2690
|
nodeRunId: string;
|
|
2299
2691
|
workflowId: string;
|
|
2300
2692
|
workflowRunId: string;
|
|
2693
|
+
} | {
|
|
2694
|
+
kind: "subagent";
|
|
2695
|
+
subagentRunId: string;
|
|
2696
|
+
parentRunId: string;
|
|
2301
2697
|
};
|
|
2302
2698
|
cost?: {
|
|
2303
2699
|
status: "rated";
|
|
2700
|
+
source: "estimate" | "provider" | "unknown";
|
|
2701
|
+
estimate?: {
|
|
2702
|
+
status: "rated";
|
|
2703
|
+
money: {
|
|
2704
|
+
currency: string;
|
|
2705
|
+
amountNanos: string;
|
|
2706
|
+
};
|
|
2707
|
+
components: Array<{
|
|
2708
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
2709
|
+
quantity: string;
|
|
2710
|
+
rateAmountNanosPerMillion: string;
|
|
2711
|
+
chargeAmountNanos: string;
|
|
2712
|
+
}>;
|
|
2713
|
+
} | {
|
|
2714
|
+
status: "unpriceable";
|
|
2715
|
+
reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
2716
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2717
|
+
};
|
|
2304
2718
|
billingIdentity: {
|
|
2305
2719
|
providerId: string;
|
|
2306
2720
|
modelId: string;
|
|
@@ -2311,6 +2725,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2311
2725
|
region?: string;
|
|
2312
2726
|
inferenceGeo?: string;
|
|
2313
2727
|
routedProviderId?: string;
|
|
2728
|
+
routedModelId?: string;
|
|
2314
2729
|
deploymentId?: string;
|
|
2315
2730
|
inferenceProfileId?: string;
|
|
2316
2731
|
cacheWriteTtlSeconds?: number;
|
|
@@ -2320,7 +2735,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2320
2735
|
sourceId: string;
|
|
2321
2736
|
sourceEntryId: string;
|
|
2322
2737
|
sourceVersion: string;
|
|
2323
|
-
sourceUrl
|
|
2738
|
+
sourceUrl?: string;
|
|
2324
2739
|
observedAt: string;
|
|
2325
2740
|
};
|
|
2326
2741
|
money: {
|
|
@@ -2328,7 +2743,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2328
2743
|
amountNanos: string;
|
|
2329
2744
|
};
|
|
2330
2745
|
components: Array<{
|
|
2331
|
-
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
2746
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
2332
2747
|
quantity: string;
|
|
2333
2748
|
rateAmountNanosPerMillion: string;
|
|
2334
2749
|
chargeAmountNanos: string;
|
|
@@ -2336,7 +2751,29 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2336
2751
|
ratedAt: string;
|
|
2337
2752
|
} | {
|
|
2338
2753
|
status: "unpriceable";
|
|
2339
|
-
|
|
2754
|
+
source: "estimate" | "provider" | "unknown";
|
|
2755
|
+
estimate?: {
|
|
2756
|
+
status: "rated";
|
|
2757
|
+
money: {
|
|
2758
|
+
currency: string;
|
|
2759
|
+
amountNanos: string;
|
|
2760
|
+
};
|
|
2761
|
+
components: Array<{
|
|
2762
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
2763
|
+
quantity: string;
|
|
2764
|
+
rateAmountNanosPerMillion: string;
|
|
2765
|
+
chargeAmountNanos: string;
|
|
2766
|
+
}>;
|
|
2767
|
+
} | {
|
|
2768
|
+
status: "unpriceable";
|
|
2769
|
+
reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
2770
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2771
|
+
};
|
|
2772
|
+
billingIdentity
|
|
2773
|
+
/**
|
|
2774
|
+
* Get current project metadata
|
|
2775
|
+
*/
|
|
2776
|
+
?: {
|
|
2340
2777
|
providerId: string;
|
|
2341
2778
|
modelId: string;
|
|
2342
2779
|
};
|
|
@@ -2346,20 +2783,21 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2346
2783
|
region?: string;
|
|
2347
2784
|
inferenceGeo?: string;
|
|
2348
2785
|
routedProviderId?: string;
|
|
2786
|
+
routedModelId?: string;
|
|
2349
2787
|
deploymentId?: string;
|
|
2350
2788
|
inferenceProfileId?: string;
|
|
2351
2789
|
cacheWriteTtlSeconds?: number;
|
|
2352
2790
|
mode?: string;
|
|
2353
2791
|
};
|
|
2354
|
-
priceSource
|
|
2792
|
+
priceSource?: {
|
|
2355
2793
|
sourceId: string;
|
|
2356
2794
|
sourceEntryId: string;
|
|
2357
2795
|
sourceVersion: string;
|
|
2358
|
-
sourceUrl
|
|
2796
|
+
sourceUrl?: string;
|
|
2359
2797
|
observedAt: string;
|
|
2360
2798
|
};
|
|
2361
|
-
reason: "missingBillingIdentity" | "
|
|
2362
|
-
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2799
|
+
reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
2800
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2363
2801
|
ratedAt: string;
|
|
2364
2802
|
};
|
|
2365
2803
|
valuationStatus: "rated" | "unpriceable" | "unvalued";
|
|
@@ -2380,12 +2818,26 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2380
2818
|
callId: string;
|
|
2381
2819
|
providerId: string;
|
|
2382
2820
|
requestedModelId: string;
|
|
2821
|
+
requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
2822
|
+
budgetTokens: number;
|
|
2823
|
+
};
|
|
2383
2824
|
responseModelId?: string;
|
|
2384
2825
|
responseId: string;
|
|
2826
|
+
providerIds: {
|
|
2827
|
+
requestId?: string;
|
|
2828
|
+
responseId?: string;
|
|
2829
|
+
generationId?: string;
|
|
2830
|
+
} | null;
|
|
2385
2831
|
usage: {
|
|
2386
2832
|
inputTokens?: number;
|
|
2387
2833
|
outputTokens?: number;
|
|
2388
|
-
totalTokens
|
|
2834
|
+
totalTokens
|
|
2835
|
+
/**
|
|
2836
|
+
* Create an AI usage-limit policy
|
|
2837
|
+
*/
|
|
2838
|
+
? /**
|
|
2839
|
+
* Create an AI usage-limit policy
|
|
2840
|
+
*/: number;
|
|
2389
2841
|
uncachedInputTokens?: number;
|
|
2390
2842
|
cacheReadInputTokens?: number;
|
|
2391
2843
|
cacheWriteInputTokens?: number;
|
|
@@ -2398,18 +2850,39 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2398
2850
|
};
|
|
2399
2851
|
attribution?: {
|
|
2400
2852
|
kind: "agent";
|
|
2401
|
-
agentId: string;
|
|
2402
2853
|
agentRunId: string;
|
|
2403
2854
|
threadId: string;
|
|
2404
2855
|
} | {
|
|
2405
2856
|
kind: "workflowAgent";
|
|
2406
|
-
|
|
2857
|
+
agentStepId: string;
|
|
2407
2858
|
nodeRunId: string;
|
|
2408
2859
|
workflowId: string;
|
|
2409
2860
|
workflowRunId: string;
|
|
2861
|
+
} | {
|
|
2862
|
+
kind: "subagent";
|
|
2863
|
+
subagentRunId: string;
|
|
2864
|
+
parentRunId: string;
|
|
2410
2865
|
};
|
|
2411
2866
|
cost?: {
|
|
2412
2867
|
status: "rated";
|
|
2868
|
+
source: "estimate" | "provider" | "unknown";
|
|
2869
|
+
estimate?: {
|
|
2870
|
+
status: "rated";
|
|
2871
|
+
money: {
|
|
2872
|
+
currency: string;
|
|
2873
|
+
amountNanos: string;
|
|
2874
|
+
};
|
|
2875
|
+
components: Array<{
|
|
2876
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
2877
|
+
quantity: string;
|
|
2878
|
+
rateAmountNanosPerMillion: string;
|
|
2879
|
+
chargeAmountNanos: string;
|
|
2880
|
+
}>;
|
|
2881
|
+
} | {
|
|
2882
|
+
status: "unpriceable";
|
|
2883
|
+
reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
2884
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2885
|
+
};
|
|
2413
2886
|
billingIdentity: {
|
|
2414
2887
|
providerId: string;
|
|
2415
2888
|
modelId: string;
|
|
@@ -2420,6 +2893,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2420
2893
|
region?: string;
|
|
2421
2894
|
inferenceGeo?: string;
|
|
2422
2895
|
routedProviderId?: string;
|
|
2896
|
+
routedModelId?: string;
|
|
2423
2897
|
deploymentId?: string;
|
|
2424
2898
|
inferenceProfileId?: string;
|
|
2425
2899
|
cacheWriteTtlSeconds?: number;
|
|
@@ -2429,7 +2903,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2429
2903
|
sourceId: string;
|
|
2430
2904
|
sourceEntryId: string;
|
|
2431
2905
|
sourceVersion: string;
|
|
2432
|
-
sourceUrl
|
|
2906
|
+
sourceUrl?: string;
|
|
2433
2907
|
observedAt: string;
|
|
2434
2908
|
};
|
|
2435
2909
|
money: {
|
|
@@ -2437,7 +2911,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2437
2911
|
amountNanos: string;
|
|
2438
2912
|
};
|
|
2439
2913
|
components: Array<{
|
|
2440
|
-
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
2914
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
2441
2915
|
quantity: string;
|
|
2442
2916
|
rateAmountNanosPerMillion: string;
|
|
2443
2917
|
chargeAmountNanos: string;
|
|
@@ -2445,7 +2919,29 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2445
2919
|
ratedAt: string;
|
|
2446
2920
|
} | {
|
|
2447
2921
|
status: "unpriceable";
|
|
2448
|
-
|
|
2922
|
+
source: "estimate" | "provider" | "unknown";
|
|
2923
|
+
estimate?: {
|
|
2924
|
+
status: "rated";
|
|
2925
|
+
money: {
|
|
2926
|
+
currency: string;
|
|
2927
|
+
amountNanos: string;
|
|
2928
|
+
};
|
|
2929
|
+
components: Array<{
|
|
2930
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
2931
|
+
quantity: string;
|
|
2932
|
+
rateAmountNanosPerMillion: string;
|
|
2933
|
+
chargeAmountNanos: string;
|
|
2934
|
+
}>;
|
|
2935
|
+
} | {
|
|
2936
|
+
status: "unpriceable";
|
|
2937
|
+
reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
2938
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2939
|
+
};
|
|
2940
|
+
billingIdentity
|
|
2941
|
+
/**
|
|
2942
|
+
* Get current project metadata
|
|
2943
|
+
*/
|
|
2944
|
+
?: {
|
|
2449
2945
|
providerId: string;
|
|
2450
2946
|
modelId: string;
|
|
2451
2947
|
};
|
|
@@ -2455,20 +2951,21 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2455
2951
|
region?: string;
|
|
2456
2952
|
inferenceGeo?: string;
|
|
2457
2953
|
routedProviderId?: string;
|
|
2954
|
+
routedModelId?: string;
|
|
2458
2955
|
deploymentId?: string;
|
|
2459
2956
|
inferenceProfileId?: string;
|
|
2460
2957
|
cacheWriteTtlSeconds?: number;
|
|
2461
2958
|
mode?: string;
|
|
2462
2959
|
};
|
|
2463
|
-
priceSource
|
|
2960
|
+
priceSource?: {
|
|
2464
2961
|
sourceId: string;
|
|
2465
2962
|
sourceEntryId: string;
|
|
2466
2963
|
sourceVersion: string;
|
|
2467
|
-
sourceUrl
|
|
2964
|
+
sourceUrl?: string;
|
|
2468
2965
|
observedAt: string;
|
|
2469
2966
|
};
|
|
2470
|
-
reason: "missingBillingIdentity" | "
|
|
2471
|
-
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2967
|
+
reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
2968
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2472
2969
|
ratedAt: string;
|
|
2473
2970
|
};
|
|
2474
2971
|
valuationStatus: "rated" | "unpriceable" | "unvalued";
|
|
@@ -2488,12 +2985,26 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2488
2985
|
callId: string;
|
|
2489
2986
|
providerId: string;
|
|
2490
2987
|
requestedModelId: string;
|
|
2988
|
+
requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
2989
|
+
budgetTokens: number;
|
|
2990
|
+
};
|
|
2491
2991
|
responseModelId?: string;
|
|
2492
2992
|
responseId: string;
|
|
2993
|
+
providerIds: {
|
|
2994
|
+
requestId?: string;
|
|
2995
|
+
responseId?: string;
|
|
2996
|
+
generationId?: string;
|
|
2997
|
+
} | null;
|
|
2493
2998
|
usage: {
|
|
2494
2999
|
inputTokens?: number;
|
|
2495
3000
|
outputTokens?: number;
|
|
2496
|
-
totalTokens
|
|
3001
|
+
totalTokens
|
|
3002
|
+
/**
|
|
3003
|
+
* Create an AI usage-limit policy
|
|
3004
|
+
*/
|
|
3005
|
+
? /**
|
|
3006
|
+
* Create an AI usage-limit policy
|
|
3007
|
+
*/: number;
|
|
2497
3008
|
uncachedInputTokens?: number;
|
|
2498
3009
|
cacheReadInputTokens?: number;
|
|
2499
3010
|
cacheWriteInputTokens?: number;
|
|
@@ -2506,18 +3017,39 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2506
3017
|
};
|
|
2507
3018
|
attribution?: {
|
|
2508
3019
|
kind: "agent";
|
|
2509
|
-
agentId: string;
|
|
2510
3020
|
agentRunId: string;
|
|
2511
3021
|
threadId: string;
|
|
2512
3022
|
} | {
|
|
2513
3023
|
kind: "workflowAgent";
|
|
2514
|
-
|
|
3024
|
+
agentStepId: string;
|
|
2515
3025
|
nodeRunId: string;
|
|
2516
3026
|
workflowId: string;
|
|
2517
3027
|
workflowRunId: string;
|
|
3028
|
+
} | {
|
|
3029
|
+
kind: "subagent";
|
|
3030
|
+
subagentRunId: string;
|
|
3031
|
+
parentRunId: string;
|
|
2518
3032
|
};
|
|
2519
3033
|
cost?: {
|
|
2520
3034
|
status: "rated";
|
|
3035
|
+
source: "estimate" | "provider" | "unknown";
|
|
3036
|
+
estimate?: {
|
|
3037
|
+
status: "rated";
|
|
3038
|
+
money: {
|
|
3039
|
+
currency: string;
|
|
3040
|
+
amountNanos: string;
|
|
3041
|
+
};
|
|
3042
|
+
components: Array<{
|
|
3043
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
3044
|
+
quantity: string;
|
|
3045
|
+
rateAmountNanosPerMillion: string;
|
|
3046
|
+
chargeAmountNanos: string;
|
|
3047
|
+
}>;
|
|
3048
|
+
} | {
|
|
3049
|
+
status: "unpriceable";
|
|
3050
|
+
reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
3051
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
3052
|
+
};
|
|
2521
3053
|
billingIdentity: {
|
|
2522
3054
|
providerId: string;
|
|
2523
3055
|
modelId: string;
|
|
@@ -2528,6 +3060,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2528
3060
|
region?: string;
|
|
2529
3061
|
inferenceGeo?: string;
|
|
2530
3062
|
routedProviderId?: string;
|
|
3063
|
+
routedModelId?: string;
|
|
2531
3064
|
deploymentId?: string;
|
|
2532
3065
|
inferenceProfileId?: string;
|
|
2533
3066
|
cacheWriteTtlSeconds?: number;
|
|
@@ -2537,7 +3070,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2537
3070
|
sourceId: string;
|
|
2538
3071
|
sourceEntryId: string;
|
|
2539
3072
|
sourceVersion: string;
|
|
2540
|
-
sourceUrl
|
|
3073
|
+
sourceUrl?: string;
|
|
2541
3074
|
observedAt: string;
|
|
2542
3075
|
};
|
|
2543
3076
|
money: {
|
|
@@ -2545,7 +3078,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2545
3078
|
amountNanos: string;
|
|
2546
3079
|
};
|
|
2547
3080
|
components: Array<{
|
|
2548
|
-
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
3081
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
2549
3082
|
quantity: string;
|
|
2550
3083
|
rateAmountNanosPerMillion: string;
|
|
2551
3084
|
chargeAmountNanos: string;
|
|
@@ -2553,7 +3086,29 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2553
3086
|
ratedAt: string;
|
|
2554
3087
|
} | {
|
|
2555
3088
|
status: "unpriceable";
|
|
2556
|
-
|
|
3089
|
+
source: "estimate" | "provider" | "unknown";
|
|
3090
|
+
estimate?: {
|
|
3091
|
+
status: "rated";
|
|
3092
|
+
money: {
|
|
3093
|
+
currency: string;
|
|
3094
|
+
amountNanos: string;
|
|
3095
|
+
};
|
|
3096
|
+
components: Array<{
|
|
3097
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
3098
|
+
quantity: string;
|
|
3099
|
+
rateAmountNanosPerMillion: string;
|
|
3100
|
+
chargeAmountNanos: string;
|
|
3101
|
+
}>;
|
|
3102
|
+
} | {
|
|
3103
|
+
status: "unpriceable";
|
|
3104
|
+
reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
3105
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
3106
|
+
};
|
|
3107
|
+
billingIdentity
|
|
3108
|
+
/**
|
|
3109
|
+
* Get current project metadata
|
|
3110
|
+
*/
|
|
3111
|
+
?: {
|
|
2557
3112
|
providerId: string;
|
|
2558
3113
|
modelId: string;
|
|
2559
3114
|
};
|
|
@@ -2563,20 +3118,21 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2563
3118
|
region?: string;
|
|
2564
3119
|
inferenceGeo?: string;
|
|
2565
3120
|
routedProviderId?: string;
|
|
3121
|
+
routedModelId?: string;
|
|
2566
3122
|
deploymentId?: string;
|
|
2567
3123
|
inferenceProfileId?: string;
|
|
2568
3124
|
cacheWriteTtlSeconds?: number;
|
|
2569
3125
|
mode?: string;
|
|
2570
3126
|
};
|
|
2571
|
-
priceSource
|
|
3127
|
+
priceSource?: {
|
|
2572
3128
|
sourceId: string;
|
|
2573
3129
|
sourceEntryId: string;
|
|
2574
3130
|
sourceVersion: string;
|
|
2575
|
-
sourceUrl
|
|
3131
|
+
sourceUrl?: string;
|
|
2576
3132
|
observedAt: string;
|
|
2577
3133
|
};
|
|
2578
|
-
reason: "missingBillingIdentity" | "
|
|
2579
|
-
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
3134
|
+
reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
3135
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2580
3136
|
ratedAt: string;
|
|
2581
3137
|
};
|
|
2582
3138
|
valuationStatus: "rated" | "unpriceable" | "unvalued";
|
|
@@ -2599,12 +3155,26 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2599
3155
|
callId: string;
|
|
2600
3156
|
providerId: string;
|
|
2601
3157
|
requestedModelId: string;
|
|
3158
|
+
requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
3159
|
+
budgetTokens: number;
|
|
3160
|
+
};
|
|
2602
3161
|
responseModelId?: string;
|
|
2603
3162
|
responseId: string;
|
|
3163
|
+
providerIds: {
|
|
3164
|
+
requestId?: string;
|
|
3165
|
+
responseId?: string;
|
|
3166
|
+
generationId?: string;
|
|
3167
|
+
} | null;
|
|
2604
3168
|
usage: {
|
|
2605
3169
|
inputTokens?: number;
|
|
2606
3170
|
outputTokens?: number;
|
|
2607
|
-
totalTokens
|
|
3171
|
+
totalTokens
|
|
3172
|
+
/**
|
|
3173
|
+
* Create an AI usage-limit policy
|
|
3174
|
+
*/
|
|
3175
|
+
? /**
|
|
3176
|
+
* Create an AI usage-limit policy
|
|
3177
|
+
*/: number;
|
|
2608
3178
|
uncachedInputTokens?: number;
|
|
2609
3179
|
cacheReadInputTokens?: number;
|
|
2610
3180
|
cacheWriteInputTokens?: number;
|
|
@@ -2617,18 +3187,39 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2617
3187
|
};
|
|
2618
3188
|
attribution?: {
|
|
2619
3189
|
kind: "agent";
|
|
2620
|
-
agentId: string;
|
|
2621
3190
|
agentRunId: string;
|
|
2622
3191
|
threadId: string;
|
|
2623
3192
|
} | {
|
|
2624
3193
|
kind: "workflowAgent";
|
|
2625
|
-
|
|
3194
|
+
agentStepId: string;
|
|
2626
3195
|
nodeRunId: string;
|
|
2627
3196
|
workflowId: string;
|
|
2628
3197
|
workflowRunId: string;
|
|
3198
|
+
} | {
|
|
3199
|
+
kind: "subagent";
|
|
3200
|
+
subagentRunId: string;
|
|
3201
|
+
parentRunId: string;
|
|
2629
3202
|
};
|
|
2630
3203
|
cost?: {
|
|
2631
3204
|
status: "rated";
|
|
3205
|
+
source: "estimate" | "provider" | "unknown";
|
|
3206
|
+
estimate?: {
|
|
3207
|
+
status: "rated";
|
|
3208
|
+
money: {
|
|
3209
|
+
currency: string;
|
|
3210
|
+
amountNanos: string;
|
|
3211
|
+
};
|
|
3212
|
+
components: Array<{
|
|
3213
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
3214
|
+
quantity: string;
|
|
3215
|
+
rateAmountNanosPerMillion: string;
|
|
3216
|
+
chargeAmountNanos: string;
|
|
3217
|
+
}>;
|
|
3218
|
+
} | {
|
|
3219
|
+
status: "unpriceable";
|
|
3220
|
+
reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
3221
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
3222
|
+
};
|
|
2632
3223
|
billingIdentity: {
|
|
2633
3224
|
providerId: string;
|
|
2634
3225
|
modelId: string;
|
|
@@ -2639,6 +3230,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2639
3230
|
region?: string;
|
|
2640
3231
|
inferenceGeo?: string;
|
|
2641
3232
|
routedProviderId?: string;
|
|
3233
|
+
routedModelId?: string;
|
|
2642
3234
|
deploymentId?: string;
|
|
2643
3235
|
inferenceProfileId?: string;
|
|
2644
3236
|
cacheWriteTtlSeconds?: number;
|
|
@@ -2648,54 +3240,1423 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2648
3240
|
sourceId: string;
|
|
2649
3241
|
sourceEntryId: string;
|
|
2650
3242
|
sourceVersion: string;
|
|
2651
|
-
sourceUrl
|
|
3243
|
+
sourceUrl?: string;
|
|
2652
3244
|
observedAt: string;
|
|
2653
3245
|
};
|
|
2654
3246
|
money: {
|
|
2655
3247
|
currency: string;
|
|
2656
3248
|
amountNanos: string;
|
|
2657
3249
|
};
|
|
2658
|
-
components: Array<{
|
|
2659
|
-
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
2660
|
-
quantity: string;
|
|
2661
|
-
rateAmountNanosPerMillion: string;
|
|
2662
|
-
chargeAmountNanos: string;
|
|
2663
|
-
}>;
|
|
2664
|
-
ratedAt: string;
|
|
2665
|
-
} | {
|
|
2666
|
-
status: "unpriceable";
|
|
2667
|
-
|
|
3250
|
+
components: Array<{
|
|
3251
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
3252
|
+
quantity: string;
|
|
3253
|
+
rateAmountNanosPerMillion: string;
|
|
3254
|
+
chargeAmountNanos: string;
|
|
3255
|
+
}>;
|
|
3256
|
+
ratedAt: string;
|
|
3257
|
+
} | {
|
|
3258
|
+
status: "unpriceable";
|
|
3259
|
+
source: "estimate" | "provider" | "unknown";
|
|
3260
|
+
estimate?: {
|
|
3261
|
+
status: "rated";
|
|
3262
|
+
money: {
|
|
3263
|
+
currency: string;
|
|
3264
|
+
amountNanos: string;
|
|
3265
|
+
};
|
|
3266
|
+
components: Array<{
|
|
3267
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
3268
|
+
quantity: string;
|
|
3269
|
+
rateAmountNanosPerMillion: string;
|
|
3270
|
+
chargeAmountNanos: string;
|
|
3271
|
+
}>;
|
|
3272
|
+
} | {
|
|
3273
|
+
status: "unpriceable";
|
|
3274
|
+
reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
3275
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
3276
|
+
};
|
|
3277
|
+
billingIdentity
|
|
3278
|
+
/**
|
|
3279
|
+
* Get current project metadata
|
|
3280
|
+
*/
|
|
3281
|
+
?: {
|
|
3282
|
+
providerId: string;
|
|
3283
|
+
modelId: string;
|
|
3284
|
+
};
|
|
3285
|
+
pricingContext: {
|
|
3286
|
+
serviceTier?: string;
|
|
3287
|
+
batch?: boolean;
|
|
3288
|
+
region?: string;
|
|
3289
|
+
inferenceGeo?: string;
|
|
3290
|
+
routedProviderId?: string;
|
|
3291
|
+
routedModelId?: string;
|
|
3292
|
+
deploymentId?: string;
|
|
3293
|
+
inferenceProfileId?: string;
|
|
3294
|
+
cacheWriteTtlSeconds?: number;
|
|
3295
|
+
mode?: string;
|
|
3296
|
+
};
|
|
3297
|
+
priceSource?: {
|
|
3298
|
+
sourceId: string;
|
|
3299
|
+
sourceEntryId: string;
|
|
3300
|
+
sourceVersion: string;
|
|
3301
|
+
sourceUrl?: string;
|
|
3302
|
+
observedAt: string;
|
|
3303
|
+
};
|
|
3304
|
+
reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
3305
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.input.cacheWrite5m" | "tokens.input.cacheWrite1h" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
3306
|
+
ratedAt: string;
|
|
3307
|
+
};
|
|
3308
|
+
valuationStatus: "rated" | "unpriceable" | "unvalued";
|
|
3309
|
+
}>;
|
|
3310
|
+
hasMore: boolean;
|
|
3311
|
+
total: number;
|
|
3312
|
+
}, unknown>;
|
|
3313
|
+
[dataTagErrorSymbol]: ListAiModelCallsError;
|
|
3314
|
+
};
|
|
3315
|
+
};
|
|
3316
|
+
export declare const listAiLimitPoliciesQueryKey: (options?: Options<ListAiLimitPoliciesData>) => [Pick<Options<ListAiLimitPoliciesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
3317
|
+
_id: string;
|
|
3318
|
+
_infinite?: boolean;
|
|
3319
|
+
tags?: ReadonlyArray<string>;
|
|
3320
|
+
}];
|
|
3321
|
+
/**
|
|
3322
|
+
* List project AI usage-limit policies
|
|
3323
|
+
*/
|
|
3324
|
+
export declare const listAiLimitPoliciesOptions: (options?: Options<ListAiLimitPoliciesData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
3325
|
+
items: Array<{
|
|
3326
|
+
id: string;
|
|
3327
|
+
subject: {
|
|
3328
|
+
type: "project";
|
|
3329
|
+
} | {
|
|
3330
|
+
type: "group";
|
|
3331
|
+
id: string;
|
|
3332
|
+
} | {
|
|
3333
|
+
type: "user";
|
|
3334
|
+
id: string;
|
|
3335
|
+
} | {
|
|
3336
|
+
type: "serviceAccount";
|
|
3337
|
+
id: string;
|
|
3338
|
+
};
|
|
3339
|
+
limit: {
|
|
3340
|
+
meter: "tokens.total";
|
|
3341
|
+
amount: number;
|
|
3342
|
+
} | {
|
|
3343
|
+
meter: "cost.catalogEstimated";
|
|
3344
|
+
amount: {
|
|
3345
|
+
currency: "USD";
|
|
3346
|
+
amountNanos: string;
|
|
3347
|
+
};
|
|
3348
|
+
};
|
|
3349
|
+
period: "calendarMonth";
|
|
3350
|
+
enabled: boolean;
|
|
3351
|
+
createdAt: string;
|
|
3352
|
+
updatedAt: string;
|
|
3353
|
+
}>;
|
|
3354
|
+
capabilities: {
|
|
3355
|
+
manage: boolean;
|
|
3356
|
+
};
|
|
3357
|
+
}, ListAiLimitPoliciesError, {
|
|
3358
|
+
items: Array<{
|
|
3359
|
+
id: string;
|
|
3360
|
+
subject: {
|
|
3361
|
+
type: "project";
|
|
3362
|
+
} | {
|
|
3363
|
+
type: "group";
|
|
3364
|
+
id: string;
|
|
3365
|
+
} | {
|
|
3366
|
+
type: "user";
|
|
3367
|
+
id: string;
|
|
3368
|
+
} | {
|
|
3369
|
+
type: "serviceAccount";
|
|
3370
|
+
id: string;
|
|
3371
|
+
};
|
|
3372
|
+
limit: {
|
|
3373
|
+
meter: "tokens.total";
|
|
3374
|
+
amount: number;
|
|
3375
|
+
} | {
|
|
3376
|
+
meter: "cost.catalogEstimated";
|
|
3377
|
+
amount: {
|
|
3378
|
+
currency: "USD";
|
|
3379
|
+
amountNanos: string;
|
|
3380
|
+
};
|
|
3381
|
+
};
|
|
3382
|
+
period: "calendarMonth";
|
|
3383
|
+
enabled: boolean;
|
|
3384
|
+
createdAt: string;
|
|
3385
|
+
updatedAt: string;
|
|
3386
|
+
}>;
|
|
3387
|
+
capabilities: {
|
|
3388
|
+
manage: boolean;
|
|
3389
|
+
};
|
|
3390
|
+
}, [Pick<Options<ListAiLimitPoliciesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
3391
|
+
_id: string;
|
|
3392
|
+
_infinite?: boolean;
|
|
3393
|
+
tags?: ReadonlyArray<string>;
|
|
3394
|
+
}]>, "queryFn"> & {
|
|
3395
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
3396
|
+
items: Array<{
|
|
3397
|
+
id: string;
|
|
3398
|
+
subject: {
|
|
3399
|
+
type: "project";
|
|
3400
|
+
} | {
|
|
3401
|
+
type: "group";
|
|
3402
|
+
id: string;
|
|
3403
|
+
} | {
|
|
3404
|
+
type: "user";
|
|
3405
|
+
id: string;
|
|
3406
|
+
} | {
|
|
3407
|
+
type: "serviceAccount";
|
|
3408
|
+
id: string;
|
|
3409
|
+
};
|
|
3410
|
+
limit: {
|
|
3411
|
+
meter: "tokens.total";
|
|
3412
|
+
amount: number;
|
|
3413
|
+
} | {
|
|
3414
|
+
meter: "cost.catalogEstimated";
|
|
3415
|
+
amount: {
|
|
3416
|
+
currency: "USD";
|
|
3417
|
+
amountNanos: string;
|
|
3418
|
+
};
|
|
3419
|
+
};
|
|
3420
|
+
period: "calendarMonth";
|
|
3421
|
+
enabled: boolean;
|
|
3422
|
+
createdAt: string;
|
|
3423
|
+
updatedAt: string;
|
|
3424
|
+
}>;
|
|
3425
|
+
capabilities: {
|
|
3426
|
+
manage: boolean;
|
|
3427
|
+
};
|
|
3428
|
+
}, [Pick<Options<ListAiLimitPoliciesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
3429
|
+
_id: string;
|
|
3430
|
+
_infinite?: boolean;
|
|
3431
|
+
tags?: ReadonlyArray<string>;
|
|
3432
|
+
}], never> | undefined;
|
|
3433
|
+
} & {
|
|
3434
|
+
queryKey: [Pick<Options<ListAiLimitPoliciesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
3435
|
+
_id: string;
|
|
3436
|
+
_infinite?: boolean;
|
|
3437
|
+
tags?: ReadonlyArray<string>;
|
|
3438
|
+
}] & {
|
|
3439
|
+
[dataTagSymbol]: {
|
|
3440
|
+
items: Array<{
|
|
3441
|
+
id: string;
|
|
3442
|
+
subject: {
|
|
3443
|
+
type: "project";
|
|
3444
|
+
} | {
|
|
3445
|
+
type: "group";
|
|
3446
|
+
id: string;
|
|
3447
|
+
} | {
|
|
3448
|
+
type: "user";
|
|
3449
|
+
id: string;
|
|
3450
|
+
} | {
|
|
3451
|
+
type: "serviceAccount";
|
|
3452
|
+
id: string;
|
|
3453
|
+
};
|
|
3454
|
+
limit: {
|
|
3455
|
+
meter: "tokens.total";
|
|
3456
|
+
amount: number;
|
|
3457
|
+
} | {
|
|
3458
|
+
meter: "cost.catalogEstimated";
|
|
3459
|
+
amount: {
|
|
3460
|
+
currency: "USD";
|
|
3461
|
+
amountNanos: string;
|
|
3462
|
+
};
|
|
3463
|
+
};
|
|
3464
|
+
period: "calendarMonth";
|
|
3465
|
+
enabled: boolean;
|
|
3466
|
+
createdAt: string;
|
|
3467
|
+
updatedAt: string;
|
|
3468
|
+
}>;
|
|
3469
|
+
capabilities: {
|
|
3470
|
+
manage: boolean;
|
|
3471
|
+
};
|
|
3472
|
+
};
|
|
3473
|
+
[dataTagErrorSymbol]: ListAiLimitPoliciesError;
|
|
3474
|
+
};
|
|
3475
|
+
};
|
|
3476
|
+
/**
|
|
3477
|
+
* Create an AI usage-limit policy
|
|
3478
|
+
*/
|
|
3479
|
+
export declare const createAiLimitPolicyMutation: (options?: Partial<Options<CreateAiLimitPolicyData>>) => UseMutationOptions<CreateAiLimitPolicyResponse, CreateAiLimitPolicyError, Options<CreateAiLimitPolicyData>>;
|
|
3480
|
+
export declare const getAiLimitStatusQueryKey: (options?: Options<GetAiLimitStatusData>) => [Pick<Options<GetAiLimitStatusData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
3481
|
+
_id: string;
|
|
3482
|
+
_infinite?: boolean;
|
|
3483
|
+
tags?: ReadonlyArray<string>;
|
|
3484
|
+
}];
|
|
3485
|
+
/**
|
|
3486
|
+
* Get current project AI usage-limit status
|
|
3487
|
+
*/
|
|
3488
|
+
export declare const getAiLimitStatusOptions: (options?: Options<GetAiLimitStatusData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
3489
|
+
items: Array<{
|
|
3490
|
+
policy: {
|
|
3491
|
+
id: string;
|
|
3492
|
+
subject: {
|
|
3493
|
+
type: "project";
|
|
3494
|
+
} | {
|
|
3495
|
+
type: "group";
|
|
3496
|
+
id: string;
|
|
3497
|
+
} | {
|
|
3498
|
+
type: "user";
|
|
3499
|
+
id: string;
|
|
3500
|
+
} | {
|
|
3501
|
+
type: "serviceAccount";
|
|
3502
|
+
id: string;
|
|
3503
|
+
};
|
|
3504
|
+
limit: {
|
|
3505
|
+
meter: "tokens.total";
|
|
3506
|
+
amount: number;
|
|
3507
|
+
} | {
|
|
3508
|
+
meter: "cost.catalogEstimated";
|
|
3509
|
+
amount: {
|
|
3510
|
+
currency: "USD";
|
|
3511
|
+
amountNanos: string;
|
|
3512
|
+
};
|
|
3513
|
+
};
|
|
3514
|
+
period: "calendarMonth";
|
|
3515
|
+
enabled: boolean;
|
|
3516
|
+
createdAt: string;
|
|
3517
|
+
updatedAt: string;
|
|
3518
|
+
};
|
|
3519
|
+
period: {
|
|
3520
|
+
kind: "calendarMonth";
|
|
3521
|
+
start: string;
|
|
3522
|
+
end: string;
|
|
3523
|
+
resetAt: string;
|
|
3524
|
+
};
|
|
3525
|
+
consumption: {
|
|
3526
|
+
actual: {
|
|
3527
|
+
meter: "tokens.total";
|
|
3528
|
+
amount: number;
|
|
3529
|
+
} | {
|
|
3530
|
+
meter: "cost.catalogEstimated";
|
|
3531
|
+
amount: {
|
|
3532
|
+
currency: "USD";
|
|
3533
|
+
amountNanos: string;
|
|
3534
|
+
};
|
|
3535
|
+
};
|
|
3536
|
+
reserved: {
|
|
3537
|
+
meter: "tokens.total";
|
|
3538
|
+
amount: number;
|
|
3539
|
+
} | {
|
|
3540
|
+
meter: "cost.catalogEstimated";
|
|
3541
|
+
amount: {
|
|
3542
|
+
currency: "USD";
|
|
3543
|
+
amountNanos: string;
|
|
3544
|
+
};
|
|
3545
|
+
};
|
|
3546
|
+
unknown: {
|
|
3547
|
+
meter: "tokens.total";
|
|
3548
|
+
amount: number;
|
|
3549
|
+
} | {
|
|
3550
|
+
meter: "cost.catalogEstimated";
|
|
3551
|
+
amount: {
|
|
3552
|
+
currency: "USD";
|
|
3553
|
+
amountNanos: string;
|
|
3554
|
+
};
|
|
3555
|
+
};
|
|
3556
|
+
remaining: {
|
|
3557
|
+
meter: "tokens.total";
|
|
3558
|
+
amount: number;
|
|
3559
|
+
} | {
|
|
3560
|
+
meter: "cost.catalogEstimated";
|
|
3561
|
+
amount: {
|
|
3562
|
+
currency: "USD";
|
|
3563
|
+
amountNanos: string;
|
|
3564
|
+
};
|
|
3565
|
+
};
|
|
3566
|
+
};
|
|
3567
|
+
accountingStatus: "complete" | "unavailable";
|
|
3568
|
+
exhausted: boolean;
|
|
3569
|
+
orphaned: boolean;
|
|
3570
|
+
}>;
|
|
3571
|
+
capabilities: {
|
|
3572
|
+
manage: boolean;
|
|
3573
|
+
};
|
|
3574
|
+
}, GetAiLimitStatusError, {
|
|
3575
|
+
items: Array<{
|
|
3576
|
+
policy: {
|
|
3577
|
+
id: string;
|
|
3578
|
+
subject: {
|
|
3579
|
+
type: "project";
|
|
3580
|
+
} | {
|
|
3581
|
+
type: "group";
|
|
3582
|
+
id: string;
|
|
3583
|
+
} | {
|
|
3584
|
+
type: "user";
|
|
3585
|
+
id: string;
|
|
3586
|
+
} | {
|
|
3587
|
+
type: "serviceAccount";
|
|
3588
|
+
id: string;
|
|
3589
|
+
};
|
|
3590
|
+
limit: {
|
|
3591
|
+
meter: "tokens.total";
|
|
3592
|
+
amount: number;
|
|
3593
|
+
} | {
|
|
3594
|
+
meter: "cost.catalogEstimated";
|
|
3595
|
+
amount: {
|
|
3596
|
+
currency: "USD";
|
|
3597
|
+
amountNanos: string;
|
|
3598
|
+
};
|
|
3599
|
+
};
|
|
3600
|
+
period: "calendarMonth";
|
|
3601
|
+
enabled: boolean;
|
|
3602
|
+
createdAt: string;
|
|
3603
|
+
updatedAt: string;
|
|
3604
|
+
};
|
|
3605
|
+
period: {
|
|
3606
|
+
kind: "calendarMonth";
|
|
3607
|
+
start: string;
|
|
3608
|
+
end: string;
|
|
3609
|
+
resetAt: string;
|
|
3610
|
+
};
|
|
3611
|
+
consumption: {
|
|
3612
|
+
actual: {
|
|
3613
|
+
meter: "tokens.total";
|
|
3614
|
+
amount: number;
|
|
3615
|
+
} | {
|
|
3616
|
+
meter: "cost.catalogEstimated";
|
|
3617
|
+
amount: {
|
|
3618
|
+
currency: "USD";
|
|
3619
|
+
amountNanos: string;
|
|
3620
|
+
};
|
|
3621
|
+
};
|
|
3622
|
+
reserved: {
|
|
3623
|
+
meter: "tokens.total";
|
|
3624
|
+
amount: number;
|
|
3625
|
+
} | {
|
|
3626
|
+
meter: "cost.catalogEstimated";
|
|
3627
|
+
amount: {
|
|
3628
|
+
currency: "USD";
|
|
3629
|
+
amountNanos: string;
|
|
3630
|
+
};
|
|
3631
|
+
};
|
|
3632
|
+
unknown: {
|
|
3633
|
+
meter: "tokens.total";
|
|
3634
|
+
amount: number;
|
|
3635
|
+
} | {
|
|
3636
|
+
meter: "cost.catalogEstimated";
|
|
3637
|
+
amount: {
|
|
3638
|
+
currency: "USD";
|
|
3639
|
+
amountNanos: string;
|
|
3640
|
+
};
|
|
3641
|
+
};
|
|
3642
|
+
remaining: {
|
|
3643
|
+
meter: "tokens.total";
|
|
3644
|
+
amount: number;
|
|
3645
|
+
} | {
|
|
3646
|
+
meter: "cost.catalogEstimated";
|
|
3647
|
+
amount: {
|
|
3648
|
+
currency: "USD";
|
|
3649
|
+
amountNanos: string;
|
|
3650
|
+
};
|
|
3651
|
+
};
|
|
3652
|
+
};
|
|
3653
|
+
accountingStatus: "complete" | "unavailable";
|
|
3654
|
+
exhausted: boolean;
|
|
3655
|
+
orphaned: boolean;
|
|
3656
|
+
}>;
|
|
3657
|
+
capabilities: {
|
|
3658
|
+
manage: boolean;
|
|
3659
|
+
};
|
|
3660
|
+
}, [Pick<Options<GetAiLimitStatusData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
3661
|
+
_id: string;
|
|
3662
|
+
_infinite?: boolean;
|
|
3663
|
+
tags?: ReadonlyArray<string>;
|
|
3664
|
+
}]>, "queryFn"> & {
|
|
3665
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
3666
|
+
items: Array<{
|
|
3667
|
+
policy: {
|
|
3668
|
+
id: string;
|
|
3669
|
+
subject: {
|
|
3670
|
+
type: "project";
|
|
3671
|
+
} | {
|
|
3672
|
+
type: "group";
|
|
3673
|
+
id: string;
|
|
3674
|
+
} | {
|
|
3675
|
+
type: "user";
|
|
3676
|
+
id: string;
|
|
3677
|
+
} | {
|
|
3678
|
+
type: "serviceAccount";
|
|
3679
|
+
id: string;
|
|
3680
|
+
};
|
|
3681
|
+
limit: {
|
|
3682
|
+
meter: "tokens.total";
|
|
3683
|
+
amount: number;
|
|
3684
|
+
} | {
|
|
3685
|
+
meter: "cost.catalogEstimated";
|
|
3686
|
+
amount: {
|
|
3687
|
+
currency: "USD";
|
|
3688
|
+
amountNanos: string;
|
|
3689
|
+
};
|
|
3690
|
+
};
|
|
3691
|
+
period: "calendarMonth";
|
|
3692
|
+
enabled: boolean;
|
|
3693
|
+
createdAt: string;
|
|
3694
|
+
updatedAt: string;
|
|
3695
|
+
};
|
|
3696
|
+
period: {
|
|
3697
|
+
kind: "calendarMonth";
|
|
3698
|
+
start: string;
|
|
3699
|
+
end: string;
|
|
3700
|
+
resetAt: string;
|
|
3701
|
+
};
|
|
3702
|
+
consumption: {
|
|
3703
|
+
actual: {
|
|
3704
|
+
meter: "tokens.total";
|
|
3705
|
+
amount: number;
|
|
3706
|
+
} | {
|
|
3707
|
+
meter: "cost.catalogEstimated";
|
|
3708
|
+
amount: {
|
|
3709
|
+
currency: "USD";
|
|
3710
|
+
amountNanos: string;
|
|
3711
|
+
};
|
|
3712
|
+
};
|
|
3713
|
+
reserved: {
|
|
3714
|
+
meter: "tokens.total";
|
|
3715
|
+
amount: number;
|
|
3716
|
+
} | {
|
|
3717
|
+
meter: "cost.catalogEstimated";
|
|
3718
|
+
amount: {
|
|
3719
|
+
currency: "USD";
|
|
3720
|
+
amountNanos: string;
|
|
3721
|
+
};
|
|
3722
|
+
};
|
|
3723
|
+
unknown: {
|
|
3724
|
+
meter: "tokens.total";
|
|
3725
|
+
amount: number;
|
|
3726
|
+
} | {
|
|
3727
|
+
meter: "cost.catalogEstimated";
|
|
3728
|
+
amount: {
|
|
3729
|
+
currency: "USD";
|
|
3730
|
+
amountNanos: string;
|
|
3731
|
+
};
|
|
3732
|
+
};
|
|
3733
|
+
remaining: {
|
|
3734
|
+
meter: "tokens.total";
|
|
3735
|
+
amount: number;
|
|
3736
|
+
} | {
|
|
3737
|
+
meter: "cost.catalogEstimated";
|
|
3738
|
+
amount: {
|
|
3739
|
+
currency: "USD";
|
|
3740
|
+
amountNanos: string;
|
|
3741
|
+
};
|
|
3742
|
+
};
|
|
3743
|
+
};
|
|
3744
|
+
accountingStatus: "complete" | "unavailable";
|
|
3745
|
+
exhausted: boolean;
|
|
3746
|
+
orphaned: boolean;
|
|
3747
|
+
}>;
|
|
3748
|
+
capabilities: {
|
|
3749
|
+
manage: boolean;
|
|
3750
|
+
};
|
|
3751
|
+
}, [Pick<Options<GetAiLimitStatusData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
3752
|
+
_id: string;
|
|
3753
|
+
_infinite?: boolean;
|
|
3754
|
+
tags?: ReadonlyArray<string>;
|
|
3755
|
+
}], never> | undefined;
|
|
3756
|
+
} & {
|
|
3757
|
+
queryKey: [Pick<Options<GetAiLimitStatusData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
3758
|
+
_id: string;
|
|
3759
|
+
_infinite?: boolean;
|
|
3760
|
+
tags?: ReadonlyArray<string>;
|
|
3761
|
+
}] & {
|
|
3762
|
+
[dataTagSymbol]: {
|
|
3763
|
+
items: Array<{
|
|
3764
|
+
policy: {
|
|
3765
|
+
id: string;
|
|
3766
|
+
subject: {
|
|
3767
|
+
type: "project";
|
|
3768
|
+
} | {
|
|
3769
|
+
type: "group";
|
|
3770
|
+
id: string;
|
|
3771
|
+
} | {
|
|
3772
|
+
type: "user";
|
|
3773
|
+
id: string;
|
|
3774
|
+
} | {
|
|
3775
|
+
type: "serviceAccount";
|
|
3776
|
+
id: string;
|
|
3777
|
+
};
|
|
3778
|
+
limit: {
|
|
3779
|
+
meter: "tokens.total";
|
|
3780
|
+
amount: number;
|
|
3781
|
+
} | {
|
|
3782
|
+
meter: "cost.catalogEstimated";
|
|
3783
|
+
amount: {
|
|
3784
|
+
currency: "USD";
|
|
3785
|
+
amountNanos: string;
|
|
3786
|
+
};
|
|
3787
|
+
};
|
|
3788
|
+
period: "calendarMonth";
|
|
3789
|
+
enabled: boolean;
|
|
3790
|
+
createdAt: string;
|
|
3791
|
+
updatedAt: string;
|
|
3792
|
+
};
|
|
3793
|
+
period: {
|
|
3794
|
+
kind: "calendarMonth";
|
|
3795
|
+
start: string;
|
|
3796
|
+
end: string;
|
|
3797
|
+
resetAt: string;
|
|
3798
|
+
};
|
|
3799
|
+
consumption: {
|
|
3800
|
+
actual: {
|
|
3801
|
+
meter: "tokens.total";
|
|
3802
|
+
amount: number;
|
|
3803
|
+
} | {
|
|
3804
|
+
meter: "cost.catalogEstimated";
|
|
3805
|
+
amount: {
|
|
3806
|
+
currency: "USD";
|
|
3807
|
+
amountNanos: string;
|
|
3808
|
+
};
|
|
3809
|
+
};
|
|
3810
|
+
reserved: {
|
|
3811
|
+
meter: "tokens.total";
|
|
3812
|
+
amount: number;
|
|
3813
|
+
} | {
|
|
3814
|
+
meter: "cost.catalogEstimated";
|
|
3815
|
+
amount: {
|
|
3816
|
+
currency: "USD";
|
|
3817
|
+
amountNanos: string;
|
|
3818
|
+
};
|
|
3819
|
+
};
|
|
3820
|
+
unknown: {
|
|
3821
|
+
meter: "tokens.total";
|
|
3822
|
+
amount: number;
|
|
3823
|
+
} | {
|
|
3824
|
+
meter: "cost.catalogEstimated";
|
|
3825
|
+
amount: {
|
|
3826
|
+
currency: "USD";
|
|
3827
|
+
amountNanos: string;
|
|
3828
|
+
};
|
|
3829
|
+
};
|
|
3830
|
+
remaining: {
|
|
3831
|
+
meter: "tokens.total";
|
|
3832
|
+
amount: number;
|
|
3833
|
+
} | {
|
|
3834
|
+
meter: "cost.catalogEstimated";
|
|
3835
|
+
amount: {
|
|
3836
|
+
currency: "USD";
|
|
3837
|
+
amountNanos: string;
|
|
3838
|
+
};
|
|
3839
|
+
};
|
|
3840
|
+
};
|
|
3841
|
+
accountingStatus: "complete" | "unavailable";
|
|
3842
|
+
exhausted: boolean;
|
|
3843
|
+
orphaned: boolean;
|
|
3844
|
+
}>;
|
|
3845
|
+
capabilities: {
|
|
3846
|
+
manage: boolean;
|
|
3847
|
+
};
|
|
3848
|
+
};
|
|
3849
|
+
[dataTagErrorSymbol]: GetAiLimitStatusError;
|
|
3850
|
+
};
|
|
3851
|
+
};
|
|
3852
|
+
export declare const getAiLimitSubjectOptionsQueryKey: (options?: Options<GetAiLimitSubjectOptionsData>) => [Pick<Options<GetAiLimitSubjectOptionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
3853
|
+
_id: string;
|
|
3854
|
+
_infinite?: boolean;
|
|
3855
|
+
tags?: ReadonlyArray<string>;
|
|
3856
|
+
}];
|
|
3857
|
+
/**
|
|
3858
|
+
* Get selectable AI usage-limit subjects
|
|
3859
|
+
*
|
|
3860
|
+
* Lists registered groups and auth principals available for AI usage-limit policies.
|
|
3861
|
+
*/
|
|
3862
|
+
export declare const getAiLimitSubjectOptionsOptions: (options?: Options<GetAiLimitSubjectOptionsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
3863
|
+
groups: Array<{
|
|
3864
|
+
id: string;
|
|
3865
|
+
label?: string;
|
|
3866
|
+
description?: string;
|
|
3867
|
+
}>;
|
|
3868
|
+
users: Array<{
|
|
3869
|
+
id: string;
|
|
3870
|
+
email: string;
|
|
3871
|
+
displayName?: string;
|
|
3872
|
+
status: "active" | "suspended";
|
|
3873
|
+
}>;
|
|
3874
|
+
serviceAccounts: Array<{
|
|
3875
|
+
id: string;
|
|
3876
|
+
name: string;
|
|
3877
|
+
description?: string;
|
|
3878
|
+
status: "active" | "suspended";
|
|
3879
|
+
}>;
|
|
3880
|
+
}, GetAiLimitSubjectOptionsError, {
|
|
3881
|
+
groups: Array<{
|
|
3882
|
+
id: string;
|
|
3883
|
+
label?: string;
|
|
3884
|
+
description?: string;
|
|
3885
|
+
}>;
|
|
3886
|
+
users: Array<{
|
|
3887
|
+
id: string;
|
|
3888
|
+
email: string;
|
|
3889
|
+
displayName?: string;
|
|
3890
|
+
status: "active" | "suspended";
|
|
3891
|
+
}>;
|
|
3892
|
+
serviceAccounts: Array<{
|
|
3893
|
+
id: string;
|
|
3894
|
+
name: string;
|
|
3895
|
+
description?: string;
|
|
3896
|
+
status: "active" | "suspended";
|
|
3897
|
+
}>;
|
|
3898
|
+
}, [Pick<Options<GetAiLimitSubjectOptionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
3899
|
+
_id: string;
|
|
3900
|
+
_infinite?: boolean;
|
|
3901
|
+
tags?: ReadonlyArray<string>;
|
|
3902
|
+
}]>, "queryFn"> & {
|
|
3903
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
3904
|
+
groups: Array<{
|
|
3905
|
+
id: string;
|
|
3906
|
+
label?: string;
|
|
3907
|
+
description?: string;
|
|
3908
|
+
}>;
|
|
3909
|
+
users: Array<{
|
|
3910
|
+
id: string;
|
|
3911
|
+
email: string;
|
|
3912
|
+
displayName?: string;
|
|
3913
|
+
status: "active" | "suspended";
|
|
3914
|
+
}>;
|
|
3915
|
+
serviceAccounts: Array<{
|
|
3916
|
+
id: string;
|
|
3917
|
+
name: string;
|
|
3918
|
+
description?: string;
|
|
3919
|
+
status: "active" | "suspended";
|
|
3920
|
+
}>;
|
|
3921
|
+
}, [Pick<Options<GetAiLimitSubjectOptionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
3922
|
+
_id: string;
|
|
3923
|
+
_infinite?: boolean;
|
|
3924
|
+
tags?: ReadonlyArray<string>;
|
|
3925
|
+
}], never> | undefined;
|
|
3926
|
+
} & {
|
|
3927
|
+
queryKey: [Pick<Options<GetAiLimitSubjectOptionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
3928
|
+
_id: string;
|
|
3929
|
+
_infinite?: boolean;
|
|
3930
|
+
tags?: ReadonlyArray<string>;
|
|
3931
|
+
}] & {
|
|
3932
|
+
[dataTagSymbol]: {
|
|
3933
|
+
groups: Array<{
|
|
3934
|
+
id: string;
|
|
3935
|
+
label?: string;
|
|
3936
|
+
description?: string;
|
|
3937
|
+
}>;
|
|
3938
|
+
users: Array<{
|
|
3939
|
+
id: string;
|
|
3940
|
+
email: string;
|
|
3941
|
+
displayName?: string;
|
|
3942
|
+
status: "active" | "suspended";
|
|
3943
|
+
}>;
|
|
3944
|
+
serviceAccounts: Array<{
|
|
3945
|
+
id: string;
|
|
3946
|
+
name: string;
|
|
3947
|
+
description?: string;
|
|
3948
|
+
status: "active" | "suspended";
|
|
3949
|
+
}>;
|
|
3950
|
+
};
|
|
3951
|
+
[dataTagErrorSymbol]: GetAiLimitSubjectOptionsError;
|
|
3952
|
+
};
|
|
3953
|
+
};
|
|
3954
|
+
/**
|
|
3955
|
+
* Delete an AI usage-limit policy
|
|
3956
|
+
*/
|
|
3957
|
+
export declare const deleteAiLimitPolicyMutation: (options?: Partial<Options<DeleteAiLimitPolicyData>>) => UseMutationOptions<DeleteAiLimitPolicyResponse, DeleteAiLimitPolicyError, Options<DeleteAiLimitPolicyData>>;
|
|
3958
|
+
/**
|
|
3959
|
+
* Update an AI usage-limit policy
|
|
3960
|
+
*/
|
|
3961
|
+
export declare const updateAiLimitPolicyMutation: (options?: Partial<Options<UpdateAiLimitPolicyData>>) => UseMutationOptions<UpdateAiLimitPolicyResponse, UpdateAiLimitPolicyError, Options<UpdateAiLimitPolicyData>>;
|
|
3962
|
+
export declare const listAiModelCallGroupsQueryKey: (options: Options<ListAiModelCallGroupsData>) => [Pick<Options<ListAiModelCallGroupsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
3963
|
+
_id: string;
|
|
3964
|
+
_infinite?: boolean;
|
|
3965
|
+
tags?: ReadonlyArray<string>;
|
|
3966
|
+
}];
|
|
3967
|
+
/**
|
|
3968
|
+
* List AI model calls grouped by initiating execution
|
|
3969
|
+
*/
|
|
3970
|
+
export declare const listAiModelCallGroupsOptions: (options: Options<ListAiModelCallGroupsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
3971
|
+
items: Array<{
|
|
3972
|
+
executionId: string;
|
|
3973
|
+
attribution?: {
|
|
3974
|
+
kind: "agent";
|
|
3975
|
+
agentRunId: string;
|
|
3976
|
+
threadId: string;
|
|
3977
|
+
} | {
|
|
3978
|
+
kind: "workflowAgent";
|
|
3979
|
+
agentStepId: string;
|
|
3980
|
+
nodeRunId: string;
|
|
3981
|
+
workflowId: string;
|
|
3982
|
+
workflowRunId: string;
|
|
3983
|
+
} | {
|
|
3984
|
+
kind: "subagent";
|
|
3985
|
+
subagentRunId: string;
|
|
3986
|
+
parentRunId: string;
|
|
3987
|
+
};
|
|
3988
|
+
modelCallCount: number;
|
|
3989
|
+
totalTokens?: number;
|
|
3990
|
+
costs: {
|
|
3991
|
+
amounts: Array<{
|
|
3992
|
+
currency: string;
|
|
3993
|
+
amountNanos: string;
|
|
3994
|
+
}>;
|
|
3995
|
+
ratedCallCount: number;
|
|
3996
|
+
unpriceableCallCount: number;
|
|
3997
|
+
unvaluedCallCount: number;
|
|
3998
|
+
};
|
|
3999
|
+
firstCallAt: string;
|
|
4000
|
+
lastCallAt: string;
|
|
4001
|
+
label?: string;
|
|
4002
|
+
executions: Array<{
|
|
4003
|
+
executionId: string;
|
|
4004
|
+
attribution?: {
|
|
4005
|
+
kind: "agent";
|
|
4006
|
+
agentRunId: string;
|
|
4007
|
+
threadId: string;
|
|
4008
|
+
} | {
|
|
4009
|
+
kind: "workflowAgent";
|
|
4010
|
+
agentStepId: string;
|
|
4011
|
+
nodeRunId: string;
|
|
4012
|
+
workflowId: string;
|
|
4013
|
+
workflowRunId: string;
|
|
4014
|
+
} | {
|
|
4015
|
+
kind: "subagent";
|
|
4016
|
+
subagentRunId: string;
|
|
4017
|
+
parentRunId: string;
|
|
4018
|
+
};
|
|
4019
|
+
modelCallCount: number;
|
|
4020
|
+
totalTokens?: number;
|
|
4021
|
+
costs: {
|
|
4022
|
+
amounts: Array<{
|
|
4023
|
+
currency: string;
|
|
4024
|
+
amountNanos: string;
|
|
4025
|
+
}>;
|
|
4026
|
+
ratedCallCount: number;
|
|
4027
|
+
unpriceableCallCount: number;
|
|
4028
|
+
unvaluedCallCount: number;
|
|
4029
|
+
};
|
|
4030
|
+
firstCallAt: string;
|
|
4031
|
+
lastCallAt: string;
|
|
4032
|
+
models: Array<{
|
|
4033
|
+
providerId: string;
|
|
4034
|
+
modelId: string;
|
|
4035
|
+
}>;
|
|
4036
|
+
label?: string;
|
|
4037
|
+
}>;
|
|
4038
|
+
canOpenThread: boolean;
|
|
4039
|
+
}>;
|
|
4040
|
+
total: number;
|
|
4041
|
+
hasMore: boolean;
|
|
4042
|
+
}, ListAiModelCallGroupsError, {
|
|
4043
|
+
items: Array<{
|
|
4044
|
+
executionId: string;
|
|
4045
|
+
attribution?: {
|
|
4046
|
+
kind: "agent";
|
|
4047
|
+
agentRunId: string;
|
|
4048
|
+
threadId: string;
|
|
4049
|
+
} | {
|
|
4050
|
+
kind: "workflowAgent";
|
|
4051
|
+
agentStepId: string;
|
|
4052
|
+
nodeRunId: string;
|
|
4053
|
+
workflowId: string;
|
|
4054
|
+
workflowRunId: string;
|
|
4055
|
+
} | {
|
|
4056
|
+
kind: "subagent";
|
|
4057
|
+
subagentRunId: string;
|
|
4058
|
+
parentRunId: string;
|
|
4059
|
+
};
|
|
4060
|
+
modelCallCount: number;
|
|
4061
|
+
totalTokens?: number;
|
|
4062
|
+
costs: {
|
|
4063
|
+
amounts: Array<{
|
|
4064
|
+
currency: string;
|
|
4065
|
+
amountNanos: string;
|
|
4066
|
+
}>;
|
|
4067
|
+
ratedCallCount: number;
|
|
4068
|
+
unpriceableCallCount: number;
|
|
4069
|
+
unvaluedCallCount: number;
|
|
4070
|
+
};
|
|
4071
|
+
firstCallAt: string;
|
|
4072
|
+
lastCallAt: string;
|
|
4073
|
+
label?: string;
|
|
4074
|
+
executions: Array<{
|
|
4075
|
+
executionId: string;
|
|
4076
|
+
attribution?: {
|
|
4077
|
+
kind: "agent";
|
|
4078
|
+
agentRunId: string;
|
|
4079
|
+
threadId: string;
|
|
4080
|
+
} | {
|
|
4081
|
+
kind: "workflowAgent";
|
|
4082
|
+
agentStepId: string;
|
|
4083
|
+
nodeRunId: string;
|
|
4084
|
+
workflowId: string;
|
|
4085
|
+
workflowRunId: string;
|
|
4086
|
+
} | {
|
|
4087
|
+
kind: "subagent";
|
|
4088
|
+
subagentRunId: string;
|
|
4089
|
+
parentRunId: string;
|
|
4090
|
+
};
|
|
4091
|
+
modelCallCount: number;
|
|
4092
|
+
totalTokens?: number;
|
|
4093
|
+
costs: {
|
|
4094
|
+
amounts: Array<{
|
|
4095
|
+
currency: string;
|
|
4096
|
+
amountNanos: string;
|
|
4097
|
+
}>;
|
|
4098
|
+
ratedCallCount: number;
|
|
4099
|
+
unpriceableCallCount: number;
|
|
4100
|
+
unvaluedCallCount: number;
|
|
4101
|
+
};
|
|
4102
|
+
firstCallAt: string;
|
|
4103
|
+
lastCallAt: string;
|
|
4104
|
+
models: Array<{
|
|
4105
|
+
providerId: string;
|
|
4106
|
+
modelId: string;
|
|
4107
|
+
}>;
|
|
4108
|
+
label?: string;
|
|
4109
|
+
}>;
|
|
4110
|
+
canOpenThread: boolean;
|
|
4111
|
+
}>;
|
|
4112
|
+
total: number;
|
|
4113
|
+
hasMore: boolean;
|
|
4114
|
+
}, [Pick<Options<ListAiModelCallGroupsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
4115
|
+
_id: string;
|
|
4116
|
+
_infinite?: boolean;
|
|
4117
|
+
tags?: ReadonlyArray<string>;
|
|
4118
|
+
}]>, "queryFn"> & {
|
|
4119
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
4120
|
+
items: Array<{
|
|
4121
|
+
executionId: string;
|
|
4122
|
+
attribution?: {
|
|
4123
|
+
kind: "agent";
|
|
4124
|
+
agentRunId: string;
|
|
4125
|
+
threadId: string;
|
|
4126
|
+
} | {
|
|
4127
|
+
kind: "workflowAgent";
|
|
4128
|
+
agentStepId: string;
|
|
4129
|
+
nodeRunId: string;
|
|
4130
|
+
workflowId: string;
|
|
4131
|
+
workflowRunId: string;
|
|
4132
|
+
} | {
|
|
4133
|
+
kind: "subagent";
|
|
4134
|
+
subagentRunId: string;
|
|
4135
|
+
parentRunId: string;
|
|
4136
|
+
};
|
|
4137
|
+
modelCallCount: number;
|
|
4138
|
+
totalTokens?: number;
|
|
4139
|
+
costs: {
|
|
4140
|
+
amounts: Array<{
|
|
4141
|
+
currency: string;
|
|
4142
|
+
amountNanos: string;
|
|
4143
|
+
}>;
|
|
4144
|
+
ratedCallCount: number;
|
|
4145
|
+
unpriceableCallCount: number;
|
|
4146
|
+
unvaluedCallCount: number;
|
|
4147
|
+
};
|
|
4148
|
+
firstCallAt: string;
|
|
4149
|
+
lastCallAt: string;
|
|
4150
|
+
label?: string;
|
|
4151
|
+
executions: Array<{
|
|
4152
|
+
executionId: string;
|
|
4153
|
+
attribution?: {
|
|
4154
|
+
kind: "agent";
|
|
4155
|
+
agentRunId: string;
|
|
4156
|
+
threadId: string;
|
|
4157
|
+
} | {
|
|
4158
|
+
kind: "workflowAgent";
|
|
4159
|
+
agentStepId: string;
|
|
4160
|
+
nodeRunId: string;
|
|
4161
|
+
workflowId: string;
|
|
4162
|
+
workflowRunId: string;
|
|
4163
|
+
} | {
|
|
4164
|
+
kind: "subagent";
|
|
4165
|
+
subagentRunId: string;
|
|
4166
|
+
parentRunId: string;
|
|
4167
|
+
};
|
|
4168
|
+
modelCallCount: number;
|
|
4169
|
+
totalTokens?: number;
|
|
4170
|
+
costs: {
|
|
4171
|
+
amounts: Array<{
|
|
4172
|
+
currency: string;
|
|
4173
|
+
amountNanos: string;
|
|
4174
|
+
}>;
|
|
4175
|
+
ratedCallCount: number;
|
|
4176
|
+
unpriceableCallCount: number;
|
|
4177
|
+
unvaluedCallCount: number;
|
|
4178
|
+
};
|
|
4179
|
+
firstCallAt: string;
|
|
4180
|
+
lastCallAt: string;
|
|
4181
|
+
models: Array<{
|
|
4182
|
+
providerId: string;
|
|
4183
|
+
modelId: string;
|
|
4184
|
+
}>;
|
|
4185
|
+
label?: string;
|
|
4186
|
+
}>;
|
|
4187
|
+
canOpenThread: boolean;
|
|
4188
|
+
}>;
|
|
4189
|
+
total: number;
|
|
4190
|
+
hasMore: boolean;
|
|
4191
|
+
}, [Pick<Options<ListAiModelCallGroupsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
4192
|
+
_id: string;
|
|
4193
|
+
_infinite?: boolean;
|
|
4194
|
+
tags?: ReadonlyArray<string>;
|
|
4195
|
+
}], never> | undefined;
|
|
4196
|
+
} & {
|
|
4197
|
+
queryKey: [Pick<Options<ListAiModelCallGroupsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
4198
|
+
_id: string;
|
|
4199
|
+
_infinite?: boolean;
|
|
4200
|
+
tags?: ReadonlyArray<string>;
|
|
4201
|
+
}] & {
|
|
4202
|
+
[dataTagSymbol]: {
|
|
4203
|
+
items: Array<{
|
|
4204
|
+
executionId: string;
|
|
4205
|
+
attribution?: {
|
|
4206
|
+
kind: "agent";
|
|
4207
|
+
agentRunId: string;
|
|
4208
|
+
threadId: string;
|
|
4209
|
+
} | {
|
|
4210
|
+
kind: "workflowAgent";
|
|
4211
|
+
agentStepId: string;
|
|
4212
|
+
nodeRunId: string;
|
|
4213
|
+
workflowId: string;
|
|
4214
|
+
workflowRunId: string;
|
|
4215
|
+
} | {
|
|
4216
|
+
kind: "subagent";
|
|
4217
|
+
subagentRunId: string;
|
|
4218
|
+
parentRunId: string;
|
|
4219
|
+
};
|
|
4220
|
+
modelCallCount: number;
|
|
4221
|
+
totalTokens?: number;
|
|
4222
|
+
costs: {
|
|
4223
|
+
amounts: Array<{
|
|
4224
|
+
currency: string;
|
|
4225
|
+
amountNanos: string;
|
|
4226
|
+
}>;
|
|
4227
|
+
ratedCallCount: number;
|
|
4228
|
+
unpriceableCallCount: number;
|
|
4229
|
+
unvaluedCallCount: number;
|
|
4230
|
+
};
|
|
4231
|
+
firstCallAt: string;
|
|
4232
|
+
lastCallAt: string;
|
|
4233
|
+
label?: string;
|
|
4234
|
+
executions: Array<{
|
|
4235
|
+
executionId: string;
|
|
4236
|
+
attribution?: {
|
|
4237
|
+
kind: "agent";
|
|
4238
|
+
agentRunId: string;
|
|
4239
|
+
threadId: string;
|
|
4240
|
+
} | {
|
|
4241
|
+
kind: "workflowAgent";
|
|
4242
|
+
agentStepId: string;
|
|
4243
|
+
nodeRunId: string;
|
|
4244
|
+
workflowId: string;
|
|
4245
|
+
workflowRunId: string;
|
|
4246
|
+
} | {
|
|
4247
|
+
kind: "subagent";
|
|
4248
|
+
subagentRunId: string;
|
|
4249
|
+
parentRunId: string;
|
|
4250
|
+
};
|
|
4251
|
+
modelCallCount: number;
|
|
4252
|
+
totalTokens?: number;
|
|
4253
|
+
costs: {
|
|
4254
|
+
amounts: Array<{
|
|
4255
|
+
currency: string;
|
|
4256
|
+
amountNanos: string;
|
|
4257
|
+
}>;
|
|
4258
|
+
ratedCallCount: number;
|
|
4259
|
+
unpriceableCallCount: number;
|
|
4260
|
+
unvaluedCallCount: number;
|
|
4261
|
+
};
|
|
4262
|
+
firstCallAt: string;
|
|
4263
|
+
lastCallAt: string;
|
|
4264
|
+
models: Array<{
|
|
4265
|
+
providerId: string;
|
|
4266
|
+
modelId: string;
|
|
4267
|
+
}>;
|
|
4268
|
+
label?: string;
|
|
4269
|
+
}>;
|
|
4270
|
+
canOpenThread: boolean;
|
|
4271
|
+
}>;
|
|
4272
|
+
total: number;
|
|
4273
|
+
hasMore: boolean;
|
|
4274
|
+
};
|
|
4275
|
+
[dataTagErrorSymbol]: ListAiModelCallGroupsError;
|
|
4276
|
+
};
|
|
4277
|
+
};
|
|
4278
|
+
export declare const listAiModelCallGroupsInfiniteQueryKey: (options: Options<ListAiModelCallGroupsData>) => QueryKey<Options<ListAiModelCallGroupsData>>;
|
|
4279
|
+
/**
|
|
4280
|
+
* List AI model calls grouped by initiating execution
|
|
4281
|
+
*/
|
|
4282
|
+
export declare const listAiModelCallGroupsInfiniteOptions: (options: Options<ListAiModelCallGroupsData>) => import("@tanstack/react-query").UseInfiniteQueryOptions<{
|
|
4283
|
+
items: Array<{
|
|
4284
|
+
executionId: string;
|
|
4285
|
+
attribution?: {
|
|
4286
|
+
kind: "agent";
|
|
4287
|
+
agentRunId: string;
|
|
4288
|
+
threadId: string;
|
|
4289
|
+
} | {
|
|
4290
|
+
kind: "workflowAgent";
|
|
4291
|
+
agentStepId: string;
|
|
4292
|
+
nodeRunId: string;
|
|
4293
|
+
workflowId: string;
|
|
4294
|
+
workflowRunId: string;
|
|
4295
|
+
} | {
|
|
4296
|
+
kind: "subagent";
|
|
4297
|
+
subagentRunId: string;
|
|
4298
|
+
parentRunId: string;
|
|
4299
|
+
};
|
|
4300
|
+
modelCallCount: number;
|
|
4301
|
+
totalTokens?: number;
|
|
4302
|
+
costs: {
|
|
4303
|
+
amounts: Array<{
|
|
4304
|
+
currency: string;
|
|
4305
|
+
amountNanos: string;
|
|
4306
|
+
}>;
|
|
4307
|
+
ratedCallCount: number;
|
|
4308
|
+
unpriceableCallCount: number;
|
|
4309
|
+
unvaluedCallCount: number;
|
|
4310
|
+
};
|
|
4311
|
+
firstCallAt: string;
|
|
4312
|
+
lastCallAt: string;
|
|
4313
|
+
label?: string;
|
|
4314
|
+
executions: Array<{
|
|
4315
|
+
executionId: string;
|
|
4316
|
+
attribution?: {
|
|
4317
|
+
kind: "agent";
|
|
4318
|
+
agentRunId: string;
|
|
4319
|
+
threadId: string;
|
|
4320
|
+
} | {
|
|
4321
|
+
kind: "workflowAgent";
|
|
4322
|
+
agentStepId: string;
|
|
4323
|
+
nodeRunId: string;
|
|
4324
|
+
workflowId: string;
|
|
4325
|
+
workflowRunId: string;
|
|
4326
|
+
} | {
|
|
4327
|
+
kind: "subagent";
|
|
4328
|
+
subagentRunId: string;
|
|
4329
|
+
parentRunId: string;
|
|
4330
|
+
};
|
|
4331
|
+
modelCallCount: number;
|
|
4332
|
+
totalTokens?: number;
|
|
4333
|
+
costs: {
|
|
4334
|
+
amounts: Array<{
|
|
4335
|
+
currency: string;
|
|
4336
|
+
amountNanos: string;
|
|
4337
|
+
}>;
|
|
4338
|
+
ratedCallCount: number;
|
|
4339
|
+
unpriceableCallCount: number;
|
|
4340
|
+
unvaluedCallCount: number;
|
|
4341
|
+
};
|
|
4342
|
+
firstCallAt: string;
|
|
4343
|
+
lastCallAt: string;
|
|
4344
|
+
models: Array<{
|
|
4345
|
+
providerId: string;
|
|
4346
|
+
modelId: string;
|
|
4347
|
+
}>;
|
|
4348
|
+
label?: string;
|
|
4349
|
+
}>;
|
|
4350
|
+
canOpenThread: boolean;
|
|
4351
|
+
}>;
|
|
4352
|
+
total: number;
|
|
4353
|
+
hasMore: boolean;
|
|
4354
|
+
}, ListAiModelCallGroupsError, InfiniteData<{
|
|
4355
|
+
items: Array<{
|
|
4356
|
+
executionId: string;
|
|
4357
|
+
attribution?: {
|
|
4358
|
+
kind: "agent";
|
|
4359
|
+
agentRunId: string;
|
|
4360
|
+
threadId: string;
|
|
4361
|
+
} | {
|
|
4362
|
+
kind: "workflowAgent";
|
|
4363
|
+
agentStepId: string;
|
|
4364
|
+
nodeRunId: string;
|
|
4365
|
+
workflowId: string;
|
|
4366
|
+
workflowRunId: string;
|
|
4367
|
+
} | {
|
|
4368
|
+
kind: "subagent";
|
|
4369
|
+
subagentRunId: string;
|
|
4370
|
+
parentRunId: string;
|
|
4371
|
+
};
|
|
4372
|
+
modelCallCount: number;
|
|
4373
|
+
totalTokens?: number;
|
|
4374
|
+
costs: {
|
|
4375
|
+
amounts: Array<{
|
|
4376
|
+
currency: string;
|
|
4377
|
+
amountNanos: string;
|
|
4378
|
+
}>;
|
|
4379
|
+
ratedCallCount: number;
|
|
4380
|
+
unpriceableCallCount: number;
|
|
4381
|
+
unvaluedCallCount: number;
|
|
4382
|
+
};
|
|
4383
|
+
firstCallAt: string;
|
|
4384
|
+
lastCallAt: string;
|
|
4385
|
+
label?: string;
|
|
4386
|
+
executions: Array<{
|
|
4387
|
+
executionId: string;
|
|
4388
|
+
attribution?: {
|
|
4389
|
+
kind: "agent";
|
|
4390
|
+
agentRunId: string;
|
|
4391
|
+
threadId: string;
|
|
4392
|
+
} | {
|
|
4393
|
+
kind: "workflowAgent";
|
|
4394
|
+
agentStepId: string;
|
|
4395
|
+
nodeRunId: string;
|
|
4396
|
+
workflowId: string;
|
|
4397
|
+
workflowRunId: string;
|
|
4398
|
+
} | {
|
|
4399
|
+
kind: "subagent";
|
|
4400
|
+
subagentRunId: string;
|
|
4401
|
+
parentRunId: string;
|
|
4402
|
+
};
|
|
4403
|
+
modelCallCount: number;
|
|
4404
|
+
totalTokens?: number;
|
|
4405
|
+
costs: {
|
|
4406
|
+
amounts: Array<{
|
|
4407
|
+
currency: string;
|
|
4408
|
+
amountNanos: string;
|
|
4409
|
+
}>;
|
|
4410
|
+
ratedCallCount: number;
|
|
4411
|
+
unpriceableCallCount: number;
|
|
4412
|
+
unvaluedCallCount: number;
|
|
4413
|
+
};
|
|
4414
|
+
firstCallAt: string;
|
|
4415
|
+
lastCallAt: string;
|
|
4416
|
+
models: Array<{
|
|
4417
|
+
providerId: string;
|
|
4418
|
+
modelId: string;
|
|
4419
|
+
}>;
|
|
4420
|
+
label?: string;
|
|
4421
|
+
}>;
|
|
4422
|
+
canOpenThread: boolean;
|
|
4423
|
+
}>;
|
|
4424
|
+
total: number;
|
|
4425
|
+
hasMore: boolean;
|
|
4426
|
+
}, unknown>, QueryKey<Options<ListAiModelCallGroupsData>>, string | Pick<Pick<Options<ListAiModelCallGroupsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
4427
|
+
_id: string;
|
|
4428
|
+
_infinite?: boolean;
|
|
4429
|
+
tags?: ReadonlyArray<string>;
|
|
4430
|
+
}, "query" | "body" | "headers" | "path">> & {
|
|
4431
|
+
initialData: InfiniteData<{
|
|
4432
|
+
items: Array<{
|
|
4433
|
+
executionId: string;
|
|
4434
|
+
attribution?: {
|
|
4435
|
+
kind: "agent";
|
|
4436
|
+
agentRunId: string;
|
|
4437
|
+
threadId: string;
|
|
4438
|
+
} | {
|
|
4439
|
+
kind: "workflowAgent";
|
|
4440
|
+
agentStepId: string;
|
|
4441
|
+
nodeRunId: string;
|
|
4442
|
+
workflowId: string;
|
|
4443
|
+
workflowRunId: string;
|
|
4444
|
+
} | {
|
|
4445
|
+
kind: "subagent";
|
|
4446
|
+
subagentRunId: string;
|
|
4447
|
+
parentRunId: string;
|
|
4448
|
+
};
|
|
4449
|
+
modelCallCount: number;
|
|
4450
|
+
totalTokens?: number;
|
|
4451
|
+
costs: {
|
|
4452
|
+
amounts: Array<{
|
|
4453
|
+
currency: string;
|
|
4454
|
+
amountNanos: string;
|
|
4455
|
+
}>;
|
|
4456
|
+
ratedCallCount: number;
|
|
4457
|
+
unpriceableCallCount: number;
|
|
4458
|
+
unvaluedCallCount: number;
|
|
4459
|
+
};
|
|
4460
|
+
firstCallAt: string;
|
|
4461
|
+
lastCallAt: string;
|
|
4462
|
+
label?: string;
|
|
4463
|
+
executions: Array<{
|
|
4464
|
+
executionId: string;
|
|
4465
|
+
attribution?: {
|
|
4466
|
+
kind: "agent";
|
|
4467
|
+
agentRunId: string;
|
|
4468
|
+
threadId: string;
|
|
4469
|
+
} | {
|
|
4470
|
+
kind: "workflowAgent";
|
|
4471
|
+
agentStepId: string;
|
|
4472
|
+
nodeRunId: string;
|
|
4473
|
+
workflowId: string;
|
|
4474
|
+
workflowRunId: string;
|
|
4475
|
+
} | {
|
|
4476
|
+
kind: "subagent";
|
|
4477
|
+
subagentRunId: string;
|
|
4478
|
+
parentRunId: string;
|
|
4479
|
+
};
|
|
4480
|
+
modelCallCount: number;
|
|
4481
|
+
totalTokens?: number;
|
|
4482
|
+
costs: {
|
|
4483
|
+
amounts: Array<{
|
|
4484
|
+
currency: string;
|
|
4485
|
+
amountNanos: string;
|
|
4486
|
+
}>;
|
|
4487
|
+
ratedCallCount: number;
|
|
4488
|
+
unpriceableCallCount: number;
|
|
4489
|
+
unvaluedCallCount: number;
|
|
4490
|
+
};
|
|
4491
|
+
firstCallAt: string;
|
|
4492
|
+
lastCallAt: string;
|
|
4493
|
+
models: Array<{
|
|
4494
|
+
providerId: string;
|
|
4495
|
+
modelId: string;
|
|
4496
|
+
}>;
|
|
4497
|
+
label?: string;
|
|
4498
|
+
}>;
|
|
4499
|
+
canOpenThread: boolean;
|
|
4500
|
+
}>;
|
|
4501
|
+
total: number;
|
|
4502
|
+
hasMore: boolean;
|
|
4503
|
+
}, string | Pick<Pick<Options<ListAiModelCallGroupsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
4504
|
+
_id: string;
|
|
4505
|
+
_infinite?: boolean;
|
|
4506
|
+
tags?: ReadonlyArray<string>;
|
|
4507
|
+
}, "query" | "body" | "headers" | "path">> | (() => InfiniteData<{
|
|
4508
|
+
items: Array<{
|
|
4509
|
+
executionId: string;
|
|
4510
|
+
attribution?: {
|
|
4511
|
+
kind: "agent";
|
|
4512
|
+
agentRunId: string;
|
|
4513
|
+
threadId: string;
|
|
4514
|
+
} | {
|
|
4515
|
+
kind: "workflowAgent";
|
|
4516
|
+
agentStepId: string;
|
|
4517
|
+
nodeRunId: string;
|
|
4518
|
+
workflowId: string;
|
|
4519
|
+
workflowRunId: string;
|
|
4520
|
+
} | {
|
|
4521
|
+
kind: "subagent";
|
|
4522
|
+
subagentRunId: string;
|
|
4523
|
+
parentRunId: string;
|
|
4524
|
+
};
|
|
4525
|
+
modelCallCount: number;
|
|
4526
|
+
totalTokens?: number;
|
|
4527
|
+
costs: {
|
|
4528
|
+
amounts: Array<{
|
|
4529
|
+
currency: string;
|
|
4530
|
+
amountNanos: string;
|
|
4531
|
+
}>;
|
|
4532
|
+
ratedCallCount: number;
|
|
4533
|
+
unpriceableCallCount: number;
|
|
4534
|
+
unvaluedCallCount: number;
|
|
4535
|
+
};
|
|
4536
|
+
firstCallAt: string;
|
|
4537
|
+
lastCallAt: string;
|
|
4538
|
+
label?: string;
|
|
4539
|
+
executions: Array<{
|
|
4540
|
+
executionId: string;
|
|
4541
|
+
attribution?: {
|
|
4542
|
+
kind: "agent";
|
|
4543
|
+
agentRunId: string;
|
|
4544
|
+
threadId: string;
|
|
4545
|
+
} | {
|
|
4546
|
+
kind: "workflowAgent";
|
|
4547
|
+
agentStepId: string;
|
|
4548
|
+
nodeRunId: string;
|
|
4549
|
+
workflowId: string;
|
|
4550
|
+
workflowRunId: string;
|
|
4551
|
+
} | {
|
|
4552
|
+
kind: "subagent";
|
|
4553
|
+
subagentRunId: string;
|
|
4554
|
+
parentRunId: string;
|
|
4555
|
+
};
|
|
4556
|
+
modelCallCount: number;
|
|
4557
|
+
totalTokens?: number;
|
|
4558
|
+
costs: {
|
|
4559
|
+
amounts: Array<{
|
|
4560
|
+
currency: string;
|
|
4561
|
+
amountNanos: string;
|
|
4562
|
+
}>;
|
|
4563
|
+
ratedCallCount: number;
|
|
4564
|
+
unpriceableCallCount: number;
|
|
4565
|
+
unvaluedCallCount: number;
|
|
4566
|
+
};
|
|
4567
|
+
firstCallAt: string;
|
|
4568
|
+
lastCallAt: string;
|
|
4569
|
+
models: Array<{
|
|
4570
|
+
providerId: string;
|
|
4571
|
+
modelId: string;
|
|
4572
|
+
}>;
|
|
4573
|
+
label?: string;
|
|
4574
|
+
}>;
|
|
4575
|
+
canOpenThread: boolean;
|
|
4576
|
+
}>;
|
|
4577
|
+
total: number;
|
|
4578
|
+
hasMore: boolean;
|
|
4579
|
+
}, string | Pick<Pick<Options<ListAiModelCallGroupsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
4580
|
+
_id: string;
|
|
4581
|
+
_infinite?: boolean;
|
|
4582
|
+
tags?: ReadonlyArray<string>;
|
|
4583
|
+
}, "query" | "body" | "headers" | "path">>) | undefined;
|
|
4584
|
+
} & {
|
|
4585
|
+
queryKey: QueryKey<Options<ListAiModelCallGroupsData>> & {
|
|
4586
|
+
[dataTagSymbol]: InfiniteData<{
|
|
4587
|
+
items: Array<{
|
|
4588
|
+
executionId: string;
|
|
4589
|
+
attribution?: {
|
|
4590
|
+
kind: "agent";
|
|
4591
|
+
agentRunId: string;
|
|
4592
|
+
threadId: string;
|
|
4593
|
+
} | {
|
|
4594
|
+
kind: "workflowAgent";
|
|
4595
|
+
agentStepId: string;
|
|
4596
|
+
nodeRunId: string;
|
|
4597
|
+
workflowId: string;
|
|
4598
|
+
workflowRunId: string;
|
|
4599
|
+
} | {
|
|
4600
|
+
kind: "subagent";
|
|
4601
|
+
subagentRunId: string;
|
|
4602
|
+
parentRunId: string;
|
|
4603
|
+
};
|
|
4604
|
+
modelCallCount: number;
|
|
4605
|
+
totalTokens?: number;
|
|
4606
|
+
costs: {
|
|
4607
|
+
amounts: Array<{
|
|
4608
|
+
currency: string;
|
|
4609
|
+
amountNanos: string;
|
|
4610
|
+
}>;
|
|
4611
|
+
ratedCallCount: number;
|
|
4612
|
+
unpriceableCallCount: number;
|
|
4613
|
+
unvaluedCallCount: number;
|
|
4614
|
+
};
|
|
4615
|
+
firstCallAt: string;
|
|
4616
|
+
lastCallAt: string;
|
|
4617
|
+
label?: string;
|
|
4618
|
+
executions: Array<{
|
|
4619
|
+
executionId: string;
|
|
4620
|
+
attribution?: {
|
|
4621
|
+
kind: "agent";
|
|
4622
|
+
agentRunId: string;
|
|
4623
|
+
threadId: string;
|
|
4624
|
+
} | {
|
|
4625
|
+
kind: "workflowAgent";
|
|
4626
|
+
agentStepId: string;
|
|
4627
|
+
nodeRunId: string;
|
|
4628
|
+
workflowId: string;
|
|
4629
|
+
workflowRunId: string;
|
|
4630
|
+
} | {
|
|
4631
|
+
kind: "subagent";
|
|
4632
|
+
subagentRunId: string;
|
|
4633
|
+
parentRunId: string;
|
|
4634
|
+
};
|
|
4635
|
+
modelCallCount: number;
|
|
4636
|
+
totalTokens?: number;
|
|
4637
|
+
costs: {
|
|
4638
|
+
amounts: Array<{
|
|
4639
|
+
currency: string;
|
|
4640
|
+
amountNanos: string;
|
|
4641
|
+
}>;
|
|
4642
|
+
ratedCallCount: number;
|
|
4643
|
+
unpriceableCallCount: number;
|
|
4644
|
+
unvaluedCallCount: number;
|
|
4645
|
+
};
|
|
4646
|
+
firstCallAt: string;
|
|
4647
|
+
lastCallAt: string;
|
|
4648
|
+
models: Array<{
|
|
2668
4649
|
providerId: string;
|
|
2669
4650
|
modelId: string;
|
|
2670
|
-
}
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
region?: string;
|
|
2675
|
-
inferenceGeo?: string;
|
|
2676
|
-
routedProviderId?: string;
|
|
2677
|
-
deploymentId?: string;
|
|
2678
|
-
inferenceProfileId?: string;
|
|
2679
|
-
cacheWriteTtlSeconds?: number;
|
|
2680
|
-
mode?: string;
|
|
2681
|
-
};
|
|
2682
|
-
priceSource: {
|
|
2683
|
-
sourceId: string;
|
|
2684
|
-
sourceEntryId: string;
|
|
2685
|
-
sourceVersion: string;
|
|
2686
|
-
sourceUrl: string;
|
|
2687
|
-
observedAt: string;
|
|
2688
|
-
};
|
|
2689
|
-
reason: "missingBillingIdentity" | "missingCatalogEntry" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
2690
|
-
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2691
|
-
ratedAt: string;
|
|
2692
|
-
};
|
|
2693
|
-
valuationStatus: "rated" | "unpriceable" | "unvalued";
|
|
4651
|
+
}>;
|
|
4652
|
+
label?: string;
|
|
4653
|
+
}>;
|
|
4654
|
+
canOpenThread: boolean;
|
|
2694
4655
|
}>;
|
|
2695
|
-
hasMore: boolean;
|
|
2696
4656
|
total: number;
|
|
4657
|
+
hasMore: boolean;
|
|
2697
4658
|
}, unknown>;
|
|
2698
|
-
[dataTagErrorSymbol]:
|
|
4659
|
+
[dataTagErrorSymbol]: ListAiModelCallGroupsError;
|
|
2699
4660
|
};
|
|
2700
4661
|
};
|
|
2701
4662
|
export declare const getProjectInfoQueryKey: (options?: Options<GetProjectInfoData>) => [Pick<Options<GetProjectInfoData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
@@ -6594,7 +8555,6 @@ export declare const listWorkflowsOptions: (options?: Options<ListWorkflowsData>
|
|
|
6594
8555
|
type: "agent";
|
|
6595
8556
|
id: string;
|
|
6596
8557
|
key: string;
|
|
6597
|
-
agentId: string;
|
|
6598
8558
|
input: {
|
|
6599
8559
|
[key: string]: string | number | boolean | Array<unknown> | {
|
|
6600
8560
|
[key: string]: unknown;
|
|
@@ -6615,7 +8575,7 @@ export declare const listWorkflowsOptions: (options?: Options<ListWorkflowsData>
|
|
|
6615
8575
|
startedAt: string;
|
|
6616
8576
|
finishedAt?: string;
|
|
6617
8577
|
error?: {
|
|
6618
|
-
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
|
|
8578
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
6619
8579
|
message: string;
|
|
6620
8580
|
retryable: boolean;
|
|
6621
8581
|
at: string;
|
|
@@ -6683,7 +8643,6 @@ export declare const listWorkflowsOptions: (options?: Options<ListWorkflowsData>
|
|
|
6683
8643
|
type: "agent";
|
|
6684
8644
|
id: string;
|
|
6685
8645
|
key: string;
|
|
6686
|
-
agentId: string;
|
|
6687
8646
|
input: {
|
|
6688
8647
|
[key: string]: string | number | boolean | Array<unknown> | {
|
|
6689
8648
|
[key: string]: unknown;
|
|
@@ -6704,7 +8663,7 @@ export declare const listWorkflowsOptions: (options?: Options<ListWorkflowsData>
|
|
|
6704
8663
|
startedAt: string;
|
|
6705
8664
|
finishedAt?: string;
|
|
6706
8665
|
error?: {
|
|
6707
|
-
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
|
|
8666
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
6708
8667
|
message: string;
|
|
6709
8668
|
retryable: boolean;
|
|
6710
8669
|
at: string;
|
|
@@ -6777,7 +8736,6 @@ export declare const listWorkflowsOptions: (options?: Options<ListWorkflowsData>
|
|
|
6777
8736
|
type: "agent";
|
|
6778
8737
|
id: string;
|
|
6779
8738
|
key: string;
|
|
6780
|
-
agentId: string;
|
|
6781
8739
|
input: {
|
|
6782
8740
|
[key: string]: string | number | boolean | Array<unknown> | {
|
|
6783
8741
|
[key: string]: unknown;
|
|
@@ -6798,7 +8756,7 @@ export declare const listWorkflowsOptions: (options?: Options<ListWorkflowsData>
|
|
|
6798
8756
|
startedAt: string;
|
|
6799
8757
|
finishedAt?: string;
|
|
6800
8758
|
error?: {
|
|
6801
|
-
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
|
|
8759
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
6802
8760
|
message: string;
|
|
6803
8761
|
retryable: boolean;
|
|
6804
8762
|
at: string;
|
|
@@ -6877,7 +8835,6 @@ export declare const listWorkflowsOptions: (options?: Options<ListWorkflowsData>
|
|
|
6877
8835
|
type: "agent";
|
|
6878
8836
|
id: string;
|
|
6879
8837
|
key: string;
|
|
6880
|
-
agentId: string;
|
|
6881
8838
|
input: {
|
|
6882
8839
|
[key: string]: string | number | boolean | Array<unknown> | {
|
|
6883
8840
|
[key: string]: unknown;
|
|
@@ -6898,7 +8855,7 @@ export declare const listWorkflowsOptions: (options?: Options<ListWorkflowsData>
|
|
|
6898
8855
|
startedAt: string;
|
|
6899
8856
|
finishedAt?: string;
|
|
6900
8857
|
error?: {
|
|
6901
|
-
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
|
|
8858
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
6902
8859
|
message: string;
|
|
6903
8860
|
retryable: boolean;
|
|
6904
8861
|
at: string;
|
|
@@ -6978,7 +8935,6 @@ export declare const getWorkflowOptions: (options: Options<GetWorkflowData>) =>
|
|
|
6978
8935
|
type: "agent";
|
|
6979
8936
|
id: string;
|
|
6980
8937
|
key: string;
|
|
6981
|
-
agentId: string;
|
|
6982
8938
|
input: {
|
|
6983
8939
|
[key: string]: string | number | boolean | Array<unknown> | {
|
|
6984
8940
|
[key: string]: unknown;
|
|
@@ -6999,7 +8955,7 @@ export declare const getWorkflowOptions: (options: Options<GetWorkflowData>) =>
|
|
|
6999
8955
|
startedAt: string;
|
|
7000
8956
|
finishedAt?: string;
|
|
7001
8957
|
error?: {
|
|
7002
|
-
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
|
|
8958
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
7003
8959
|
message: string;
|
|
7004
8960
|
retryable: boolean;
|
|
7005
8961
|
at: string;
|
|
@@ -7069,7 +9025,6 @@ export declare const getWorkflowOptions: (options: Options<GetWorkflowData>) =>
|
|
|
7069
9025
|
type: "agent";
|
|
7070
9026
|
id: string;
|
|
7071
9027
|
key: string;
|
|
7072
|
-
agentId: string;
|
|
7073
9028
|
input: {
|
|
7074
9029
|
[key: string]: string | number | boolean | Array<unknown> | {
|
|
7075
9030
|
[key: string]: unknown;
|
|
@@ -7090,7 +9045,7 @@ export declare const getWorkflowOptions: (options: Options<GetWorkflowData>) =>
|
|
|
7090
9045
|
startedAt: string;
|
|
7091
9046
|
finishedAt?: string;
|
|
7092
9047
|
error?: {
|
|
7093
|
-
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
|
|
9048
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
7094
9049
|
message: string;
|
|
7095
9050
|
retryable: boolean;
|
|
7096
9051
|
at: string;
|
|
@@ -7163,7 +9118,6 @@ export declare const getWorkflowOptions: (options: Options<GetWorkflowData>) =>
|
|
|
7163
9118
|
type: "agent";
|
|
7164
9119
|
id: string;
|
|
7165
9120
|
key: string;
|
|
7166
|
-
agentId: string;
|
|
7167
9121
|
input: {
|
|
7168
9122
|
[key: string]: string | number | boolean | Array<unknown> | {
|
|
7169
9123
|
[key: string]: unknown;
|
|
@@ -7184,7 +9138,7 @@ export declare const getWorkflowOptions: (options: Options<GetWorkflowData>) =>
|
|
|
7184
9138
|
startedAt: string;
|
|
7185
9139
|
finishedAt?: string;
|
|
7186
9140
|
error?: {
|
|
7187
|
-
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
|
|
9141
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
7188
9142
|
message: string;
|
|
7189
9143
|
retryable: boolean;
|
|
7190
9144
|
at: string;
|
|
@@ -7263,7 +9217,6 @@ export declare const getWorkflowOptions: (options: Options<GetWorkflowData>) =>
|
|
|
7263
9217
|
type: "agent";
|
|
7264
9218
|
id: string;
|
|
7265
9219
|
key: string;
|
|
7266
|
-
agentId: string;
|
|
7267
9220
|
input: {
|
|
7268
9221
|
[key: string]: string | number | boolean | Array<unknown> | {
|
|
7269
9222
|
[key: string]: unknown;
|
|
@@ -7284,7 +9237,7 @@ export declare const getWorkflowOptions: (options: Options<GetWorkflowData>) =>
|
|
|
7284
9237
|
startedAt: string;
|
|
7285
9238
|
finishedAt?: string;
|
|
7286
9239
|
error?: {
|
|
7287
|
-
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
|
|
9240
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
7288
9241
|
message: string;
|
|
7289
9242
|
retryable: boolean;
|
|
7290
9243
|
at: string;
|
|
@@ -7953,7 +9906,7 @@ export declare const listWorkflowRunsOptions: (options?: Options<ListWorkflowRun
|
|
|
7953
9906
|
startedAt: string;
|
|
7954
9907
|
finishedAt?: string;
|
|
7955
9908
|
error?: {
|
|
7956
|
-
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
|
|
9909
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
7957
9910
|
message: string;
|
|
7958
9911
|
retryable: boolean;
|
|
7959
9912
|
at: string;
|
|
@@ -7979,7 +9932,7 @@ export declare const listWorkflowRunsOptions: (options?: Options<ListWorkflowRun
|
|
|
7979
9932
|
startedAt: string;
|
|
7980
9933
|
finishedAt?: string;
|
|
7981
9934
|
error?: {
|
|
7982
|
-
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
|
|
9935
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
7983
9936
|
message: string;
|
|
7984
9937
|
retryable: boolean;
|
|
7985
9938
|
at: string;
|
|
@@ -8010,7 +9963,7 @@ export declare const listWorkflowRunsOptions: (options?: Options<ListWorkflowRun
|
|
|
8010
9963
|
startedAt: string;
|
|
8011
9964
|
finishedAt?: string;
|
|
8012
9965
|
error?: {
|
|
8013
|
-
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
|
|
9966
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
8014
9967
|
message: string;
|
|
8015
9968
|
retryable: boolean;
|
|
8016
9969
|
at: string;
|
|
@@ -8047,7 +10000,7 @@ export declare const listWorkflowRunsOptions: (options?: Options<ListWorkflowRun
|
|
|
8047
10000
|
startedAt: string;
|
|
8048
10001
|
finishedAt?: string;
|
|
8049
10002
|
error?: {
|
|
8050
|
-
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
|
|
10003
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
8051
10004
|
message: string;
|
|
8052
10005
|
retryable: boolean;
|
|
8053
10006
|
at: string;
|
|
@@ -8081,7 +10034,7 @@ export declare const listWorkflowRunsInfiniteOptions: (options?: Options<ListWor
|
|
|
8081
10034
|
startedAt: string;
|
|
8082
10035
|
finishedAt?: string;
|
|
8083
10036
|
error?: {
|
|
8084
|
-
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
|
|
10037
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
8085
10038
|
message: string;
|
|
8086
10039
|
retryable: boolean;
|
|
8087
10040
|
at: string;
|
|
@@ -8107,7 +10060,7 @@ export declare const listWorkflowRunsInfiniteOptions: (options?: Options<ListWor
|
|
|
8107
10060
|
startedAt: string;
|
|
8108
10061
|
finishedAt?: string;
|
|
8109
10062
|
error?: {
|
|
8110
|
-
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
|
|
10063
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
8111
10064
|
message: string;
|
|
8112
10065
|
retryable: boolean;
|
|
8113
10066
|
at: string;
|
|
@@ -8138,7 +10091,7 @@ export declare const listWorkflowRunsInfiniteOptions: (options?: Options<ListWor
|
|
|
8138
10091
|
startedAt: string;
|
|
8139
10092
|
finishedAt?: string;
|
|
8140
10093
|
error?: {
|
|
8141
|
-
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
|
|
10094
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
8142
10095
|
message: string;
|
|
8143
10096
|
retryable: boolean;
|
|
8144
10097
|
at: string;
|
|
@@ -8168,7 +10121,7 @@ export declare const listWorkflowRunsInfiniteOptions: (options?: Options<ListWor
|
|
|
8168
10121
|
startedAt: string;
|
|
8169
10122
|
finishedAt?: string;
|
|
8170
10123
|
error?: {
|
|
8171
|
-
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
|
|
10124
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
8172
10125
|
message: string;
|
|
8173
10126
|
retryable: boolean;
|
|
8174
10127
|
at: string;
|
|
@@ -8201,7 +10154,7 @@ export declare const listWorkflowRunsInfiniteOptions: (options?: Options<ListWor
|
|
|
8201
10154
|
startedAt: string;
|
|
8202
10155
|
finishedAt?: string;
|
|
8203
10156
|
error?: {
|
|
8204
|
-
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
|
|
10157
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
8205
10158
|
message: string;
|
|
8206
10159
|
retryable: boolean;
|
|
8207
10160
|
at: string;
|
|
@@ -8239,7 +10192,7 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
|
|
|
8239
10192
|
startedAt: string;
|
|
8240
10193
|
finishedAt?: string;
|
|
8241
10194
|
error?: {
|
|
8242
|
-
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
|
|
10195
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
8243
10196
|
message: string;
|
|
8244
10197
|
retryable: boolean;
|
|
8245
10198
|
at: string;
|
|
@@ -8286,7 +10239,7 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
|
|
|
8286
10239
|
} | null;
|
|
8287
10240
|
};
|
|
8288
10241
|
error?: {
|
|
8289
|
-
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
|
|
10242
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
8290
10243
|
message: string;
|
|
8291
10244
|
retryable: boolean;
|
|
8292
10245
|
at: string;
|
|
@@ -8296,7 +10249,6 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
|
|
|
8296
10249
|
truncated?: true;
|
|
8297
10250
|
};
|
|
8298
10251
|
agentExecution?: {
|
|
8299
|
-
agentId: string;
|
|
8300
10252
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
8301
10253
|
attempt: number;
|
|
8302
10254
|
modelId?: string;
|
|
@@ -8335,7 +10287,7 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
|
|
|
8335
10287
|
startedAt: string;
|
|
8336
10288
|
finishedAt?: string;
|
|
8337
10289
|
error?: {
|
|
8338
|
-
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
|
|
10290
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
8339
10291
|
message: string;
|
|
8340
10292
|
retryable: boolean;
|
|
8341
10293
|
at: string;
|
|
@@ -8382,7 +10334,7 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
|
|
|
8382
10334
|
} | null;
|
|
8383
10335
|
};
|
|
8384
10336
|
error?: {
|
|
8385
|
-
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
|
|
10337
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
8386
10338
|
message: string;
|
|
8387
10339
|
retryable: boolean;
|
|
8388
10340
|
at: string;
|
|
@@ -8392,7 +10344,6 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
|
|
|
8392
10344
|
truncated?: true;
|
|
8393
10345
|
};
|
|
8394
10346
|
agentExecution?: {
|
|
8395
|
-
agentId: string;
|
|
8396
10347
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
8397
10348
|
attempt: number;
|
|
8398
10349
|
modelId?: string;
|
|
@@ -8436,7 +10387,7 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
|
|
|
8436
10387
|
startedAt: string;
|
|
8437
10388
|
finishedAt?: string;
|
|
8438
10389
|
error?: {
|
|
8439
|
-
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
|
|
10390
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
8440
10391
|
message: string;
|
|
8441
10392
|
retryable: boolean;
|
|
8442
10393
|
at: string;
|
|
@@ -8483,7 +10434,7 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
|
|
|
8483
10434
|
} | null;
|
|
8484
10435
|
};
|
|
8485
10436
|
error?: {
|
|
8486
|
-
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
|
|
10437
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
8487
10438
|
message: string;
|
|
8488
10439
|
retryable: boolean;
|
|
8489
10440
|
at: string;
|
|
@@ -8493,7 +10444,6 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
|
|
|
8493
10444
|
truncated?: true;
|
|
8494
10445
|
};
|
|
8495
10446
|
agentExecution?: {
|
|
8496
|
-
agentId: string;
|
|
8497
10447
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
8498
10448
|
attempt: number;
|
|
8499
10449
|
modelId?: string;
|
|
@@ -8543,7 +10493,7 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
|
|
|
8543
10493
|
startedAt: string;
|
|
8544
10494
|
finishedAt?: string;
|
|
8545
10495
|
error?: {
|
|
8546
|
-
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
|
|
10496
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
8547
10497
|
message: string;
|
|
8548
10498
|
retryable: boolean;
|
|
8549
10499
|
at: string;
|
|
@@ -8590,7 +10540,7 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
|
|
|
8590
10540
|
} | null;
|
|
8591
10541
|
};
|
|
8592
10542
|
error?: {
|
|
8593
|
-
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
|
|
10543
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
8594
10544
|
message: string;
|
|
8595
10545
|
retryable: boolean;
|
|
8596
10546
|
at: string;
|
|
@@ -8600,7 +10550,6 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
|
|
|
8600
10550
|
truncated?: true;
|
|
8601
10551
|
};
|
|
8602
10552
|
agentExecution?: {
|
|
8603
|
-
agentId: string;
|
|
8604
10553
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
8605
10554
|
attempt: number;
|
|
8606
10555
|
modelId?: string;
|
|
@@ -8642,7 +10591,6 @@ export declare const getWorkflowAgentNodeExecutionQueryKey: (options: Options<Ge
|
|
|
8642
10591
|
* Get workflow agent node execution detail
|
|
8643
10592
|
*/
|
|
8644
10593
|
export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<GetWorkflowAgentNodeExecutionData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
8645
|
-
agentId: string;
|
|
8646
10594
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
8647
10595
|
attempt: number;
|
|
8648
10596
|
modelId?: string;
|
|
@@ -8698,6 +10646,12 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
|
|
|
8698
10646
|
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
8699
10647
|
[key: string]: unknown;
|
|
8700
10648
|
} | null;
|
|
10649
|
+
} | {
|
|
10650
|
+
type: "provider-state";
|
|
10651
|
+
providerId: string;
|
|
10652
|
+
data: string | number | boolean | Array<unknown> | {
|
|
10653
|
+
[key: string]: unknown;
|
|
10654
|
+
} | null;
|
|
8701
10655
|
} | {
|
|
8702
10656
|
context: {
|
|
8703
10657
|
kind: "object";
|
|
@@ -8752,7 +10706,7 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
|
|
|
8752
10706
|
} | null>;
|
|
8753
10707
|
failurePhase?: "agent-loop" | "structured-finalizer";
|
|
8754
10708
|
error?: {
|
|
8755
|
-
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
|
|
10709
|
+
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
8756
10710
|
message: string;
|
|
8757
10711
|
retryable: boolean;
|
|
8758
10712
|
at: string;
|
|
@@ -8763,7 +10717,6 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
|
|
|
8763
10717
|
};
|
|
8764
10718
|
createdAt: string;
|
|
8765
10719
|
}, GetWorkflowAgentNodeExecutionError, {
|
|
8766
|
-
agentId: string;
|
|
8767
10720
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
8768
10721
|
attempt: number;
|
|
8769
10722
|
modelId?: string;
|
|
@@ -8819,6 +10772,12 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
|
|
|
8819
10772
|
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
8820
10773
|
[key: string]: unknown;
|
|
8821
10774
|
} | null;
|
|
10775
|
+
} | {
|
|
10776
|
+
type: "provider-state";
|
|
10777
|
+
providerId: string;
|
|
10778
|
+
data: string | number | boolean | Array<unknown> | {
|
|
10779
|
+
[key: string]: unknown;
|
|
10780
|
+
} | null;
|
|
8822
10781
|
} | {
|
|
8823
10782
|
context: {
|
|
8824
10783
|
kind: "object";
|
|
@@ -8873,7 +10832,7 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
|
|
|
8873
10832
|
} | null>;
|
|
8874
10833
|
failurePhase?: "agent-loop" | "structured-finalizer";
|
|
8875
10834
|
error?: {
|
|
8876
|
-
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
|
|
10835
|
+
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
8877
10836
|
message: string;
|
|
8878
10837
|
retryable: boolean;
|
|
8879
10838
|
at: string;
|
|
@@ -8889,7 +10848,6 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
|
|
|
8889
10848
|
tags?: ReadonlyArray<string>;
|
|
8890
10849
|
}]>, "queryFn"> & {
|
|
8891
10850
|
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
8892
|
-
agentId: string;
|
|
8893
10851
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
8894
10852
|
attempt: number;
|
|
8895
10853
|
modelId?: string;
|
|
@@ -8945,6 +10903,12 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
|
|
|
8945
10903
|
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
8946
10904
|
[key: string]: unknown;
|
|
8947
10905
|
} | null;
|
|
10906
|
+
} | {
|
|
10907
|
+
type: "provider-state";
|
|
10908
|
+
providerId: string;
|
|
10909
|
+
data: string | number | boolean | Array<unknown> | {
|
|
10910
|
+
[key: string]: unknown;
|
|
10911
|
+
} | null;
|
|
8948
10912
|
} | {
|
|
8949
10913
|
context: {
|
|
8950
10914
|
kind: "object";
|
|
@@ -8999,7 +10963,7 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
|
|
|
8999
10963
|
} | null>;
|
|
9000
10964
|
failurePhase?: "agent-loop" | "structured-finalizer";
|
|
9001
10965
|
error?: {
|
|
9002
|
-
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
|
|
10966
|
+
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
9003
10967
|
message: string;
|
|
9004
10968
|
retryable: boolean;
|
|
9005
10969
|
at: string;
|
|
@@ -9021,7 +10985,6 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
|
|
|
9021
10985
|
tags?: ReadonlyArray<string>;
|
|
9022
10986
|
}] & {
|
|
9023
10987
|
[dataTagSymbol]: {
|
|
9024
|
-
agentId: string;
|
|
9025
10988
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
9026
10989
|
attempt: number;
|
|
9027
10990
|
modelId?: string;
|
|
@@ -9077,6 +11040,12 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
|
|
|
9077
11040
|
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
9078
11041
|
[key: string]: unknown;
|
|
9079
11042
|
} | null;
|
|
11043
|
+
} | {
|
|
11044
|
+
type: "provider-state";
|
|
11045
|
+
providerId: string;
|
|
11046
|
+
data: string | number | boolean | Array<unknown> | {
|
|
11047
|
+
[key: string]: unknown;
|
|
11048
|
+
} | null;
|
|
9080
11049
|
} | {
|
|
9081
11050
|
context: {
|
|
9082
11051
|
kind: "object";
|
|
@@ -9131,7 +11100,7 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
|
|
|
9131
11100
|
} | null>;
|
|
9132
11101
|
failurePhase?: "agent-loop" | "structured-finalizer";
|
|
9133
11102
|
error?: {
|
|
9134
|
-
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
|
|
11103
|
+
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
9135
11104
|
message: string;
|
|
9136
11105
|
retryable: boolean;
|
|
9137
11106
|
at: string;
|
|
@@ -12106,145 +14075,27 @@ export declare const getActionRunFileContentOptions: (options: Options<GetAction
|
|
|
12106
14075
|
[dataTagErrorSymbol]: unknown;
|
|
12107
14076
|
};
|
|
12108
14077
|
};
|
|
12109
|
-
export declare const
|
|
12110
|
-
_id: string;
|
|
12111
|
-
_infinite?: boolean;
|
|
12112
|
-
tags?: ReadonlyArray<string>;
|
|
12113
|
-
}];
|
|
12114
|
-
/**
|
|
12115
|
-
* List registered agents
|
|
12116
|
-
*/
|
|
12117
|
-
export declare const listAgentsOptions: (options?: Options<ListAgentsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
12118
|
-
id: string;
|
|
12119
|
-
name: string;
|
|
12120
|
-
description?: string;
|
|
12121
|
-
modelId?: string;
|
|
12122
|
-
reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
|
|
12123
|
-
groupIds: Array<string>;
|
|
12124
|
-
loop?: {
|
|
12125
|
-
stopWhen?: {
|
|
12126
|
-
maxSteps?: number;
|
|
12127
|
-
};
|
|
12128
|
-
context?: {
|
|
12129
|
-
windowTokens?: number;
|
|
12130
|
-
reserveTokens?: number;
|
|
12131
|
-
keepRecentTokens?: number;
|
|
12132
|
-
};
|
|
12133
|
-
};
|
|
12134
|
-
}[], Error, {
|
|
12135
|
-
id: string;
|
|
12136
|
-
name: string;
|
|
12137
|
-
description?: string;
|
|
12138
|
-
modelId?: string;
|
|
12139
|
-
reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
|
|
12140
|
-
groupIds: Array<string>;
|
|
12141
|
-
loop?: {
|
|
12142
|
-
stopWhen?: {
|
|
12143
|
-
maxSteps?: number;
|
|
12144
|
-
};
|
|
12145
|
-
context?: {
|
|
12146
|
-
windowTokens?: number;
|
|
12147
|
-
reserveTokens?: number;
|
|
12148
|
-
keepRecentTokens?: number;
|
|
12149
|
-
};
|
|
12150
|
-
};
|
|
12151
|
-
}[], [Pick<Options<ListAgentsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
12152
|
-
_id: string;
|
|
12153
|
-
_infinite?: boolean;
|
|
12154
|
-
tags?: ReadonlyArray<string>;
|
|
12155
|
-
}]>, "queryFn"> & {
|
|
12156
|
-
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
12157
|
-
id: string;
|
|
12158
|
-
name: string;
|
|
12159
|
-
description?: string;
|
|
12160
|
-
modelId?: string;
|
|
12161
|
-
reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
|
|
12162
|
-
groupIds: Array<string>;
|
|
12163
|
-
loop?: {
|
|
12164
|
-
stopWhen?: {
|
|
12165
|
-
maxSteps?: number;
|
|
12166
|
-
};
|
|
12167
|
-
context?: {
|
|
12168
|
-
windowTokens?: number;
|
|
12169
|
-
reserveTokens?: number;
|
|
12170
|
-
keepRecentTokens?: number;
|
|
12171
|
-
};
|
|
12172
|
-
};
|
|
12173
|
-
}[], [Pick<Options<ListAgentsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
12174
|
-
_id: string;
|
|
12175
|
-
_infinite?: boolean;
|
|
12176
|
-
tags?: ReadonlyArray<string>;
|
|
12177
|
-
}], never> | undefined;
|
|
12178
|
-
} & {
|
|
12179
|
-
queryKey: [Pick<Options<ListAgentsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
12180
|
-
_id: string;
|
|
12181
|
-
_infinite?: boolean;
|
|
12182
|
-
tags?: ReadonlyArray<string>;
|
|
12183
|
-
}] & {
|
|
12184
|
-
[dataTagSymbol]: {
|
|
12185
|
-
id: string;
|
|
12186
|
-
name: string;
|
|
12187
|
-
description?: string;
|
|
12188
|
-
modelId?: string;
|
|
12189
|
-
reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
|
|
12190
|
-
groupIds: Array<string>;
|
|
12191
|
-
loop?: {
|
|
12192
|
-
stopWhen?: {
|
|
12193
|
-
maxSteps?: number;
|
|
12194
|
-
};
|
|
12195
|
-
context?: {
|
|
12196
|
-
windowTokens?: number;
|
|
12197
|
-
reserveTokens?: number;
|
|
12198
|
-
keepRecentTokens?: number;
|
|
12199
|
-
};
|
|
12200
|
-
};
|
|
12201
|
-
}[];
|
|
12202
|
-
[dataTagErrorSymbol]: Error;
|
|
12203
|
-
};
|
|
12204
|
-
};
|
|
12205
|
-
export declare const getAgentQueryKey: (options: Options<GetAgentData>) => [Pick<Options<GetAgentData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
14078
|
+
export declare const getAgentQueryKey: (options?: Options<GetAgentData>) => [Pick<Options<GetAgentData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
12206
14079
|
_id: string;
|
|
12207
14080
|
_infinite?: boolean;
|
|
12208
14081
|
tags?: ReadonlyArray<string>;
|
|
12209
14082
|
}];
|
|
12210
14083
|
/**
|
|
12211
|
-
* Get
|
|
14084
|
+
* Get the project Agent
|
|
12212
14085
|
*/
|
|
12213
|
-
export declare const getAgentOptions: (options
|
|
12214
|
-
id: string;
|
|
14086
|
+
export declare const getAgentOptions: (options?: Options<GetAgentData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
12215
14087
|
name: string;
|
|
12216
|
-
|
|
12217
|
-
|
|
12218
|
-
|
|
12219
|
-
groupIds: Array<string>;
|
|
12220
|
-
loop?: {
|
|
12221
|
-
stopWhen?: {
|
|
12222
|
-
maxSteps?: number;
|
|
12223
|
-
};
|
|
12224
|
-
context?: {
|
|
12225
|
-
windowTokens?: number;
|
|
12226
|
-
reserveTokens?: number;
|
|
12227
|
-
keepRecentTokens?: number;
|
|
12228
|
-
};
|
|
14088
|
+
model: {
|
|
14089
|
+
provider: string;
|
|
14090
|
+
modelId: string;
|
|
12229
14091
|
};
|
|
12230
14092
|
}, {
|
|
12231
14093
|
error: string;
|
|
12232
14094
|
}, {
|
|
12233
|
-
id: string;
|
|
12234
14095
|
name: string;
|
|
12235
|
-
|
|
12236
|
-
|
|
12237
|
-
|
|
12238
|
-
groupIds: Array<string>;
|
|
12239
|
-
loop?: {
|
|
12240
|
-
stopWhen?: {
|
|
12241
|
-
maxSteps?: number;
|
|
12242
|
-
};
|
|
12243
|
-
context?: {
|
|
12244
|
-
windowTokens?: number;
|
|
12245
|
-
reserveTokens?: number;
|
|
12246
|
-
keepRecentTokens?: number;
|
|
12247
|
-
};
|
|
14096
|
+
model: {
|
|
14097
|
+
provider: string;
|
|
14098
|
+
modelId: string;
|
|
12248
14099
|
};
|
|
12249
14100
|
}, [Pick<Options<GetAgentData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
12250
14101
|
_id: string;
|
|
@@ -12252,21 +14103,10 @@ export declare const getAgentOptions: (options: Options<GetAgentData>) => import
|
|
|
12252
14103
|
tags?: ReadonlyArray<string>;
|
|
12253
14104
|
}]>, "queryFn"> & {
|
|
12254
14105
|
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
12255
|
-
id: string;
|
|
12256
14106
|
name: string;
|
|
12257
|
-
|
|
12258
|
-
|
|
12259
|
-
|
|
12260
|
-
groupIds: Array<string>;
|
|
12261
|
-
loop?: {
|
|
12262
|
-
stopWhen?: {
|
|
12263
|
-
maxSteps?: number;
|
|
12264
|
-
};
|
|
12265
|
-
context?: {
|
|
12266
|
-
windowTokens?: number;
|
|
12267
|
-
reserveTokens?: number;
|
|
12268
|
-
keepRecentTokens?: number;
|
|
12269
|
-
};
|
|
14107
|
+
model: {
|
|
14108
|
+
provider: string;
|
|
14109
|
+
modelId: string;
|
|
12270
14110
|
};
|
|
12271
14111
|
}, [Pick<Options<GetAgentData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
12272
14112
|
_id: string;
|
|
@@ -12280,21 +14120,10 @@ export declare const getAgentOptions: (options: Options<GetAgentData>) => import
|
|
|
12280
14120
|
tags?: ReadonlyArray<string>;
|
|
12281
14121
|
}] & {
|
|
12282
14122
|
[dataTagSymbol]: {
|
|
12283
|
-
id: string;
|
|
12284
14123
|
name: string;
|
|
12285
|
-
|
|
12286
|
-
|
|
12287
|
-
|
|
12288
|
-
groupIds: Array<string>;
|
|
12289
|
-
loop?: {
|
|
12290
|
-
stopWhen?: {
|
|
12291
|
-
maxSteps?: number;
|
|
12292
|
-
};
|
|
12293
|
-
context?: {
|
|
12294
|
-
windowTokens?: number;
|
|
12295
|
-
reserveTokens?: number;
|
|
12296
|
-
keepRecentTokens?: number;
|
|
12297
|
-
};
|
|
14124
|
+
model: {
|
|
14125
|
+
provider: string;
|
|
14126
|
+
modelId: string;
|
|
12298
14127
|
};
|
|
12299
14128
|
};
|
|
12300
14129
|
[dataTagErrorSymbol]: {
|
|
@@ -12314,7 +14143,6 @@ export declare const listAgentThreadsOptions: (options?: Options<ListAgentThread
|
|
|
12314
14143
|
threads: Array<{
|
|
12315
14144
|
id: string;
|
|
12316
14145
|
projectId: string;
|
|
12317
|
-
agentId: string;
|
|
12318
14146
|
ownerPrincipal: {
|
|
12319
14147
|
type: "user" | "serviceAccount" | "system";
|
|
12320
14148
|
id: string;
|
|
@@ -12333,7 +14161,6 @@ export declare const listAgentThreadsOptions: (options?: Options<ListAgentThread
|
|
|
12333
14161
|
threads: Array<{
|
|
12334
14162
|
id: string;
|
|
12335
14163
|
projectId: string;
|
|
12336
|
-
agentId: string;
|
|
12337
14164
|
ownerPrincipal: {
|
|
12338
14165
|
type: "user" | "serviceAccount" | "system";
|
|
12339
14166
|
id: string;
|
|
@@ -12357,7 +14184,6 @@ export declare const listAgentThreadsOptions: (options?: Options<ListAgentThread
|
|
|
12357
14184
|
threads: Array<{
|
|
12358
14185
|
id: string;
|
|
12359
14186
|
projectId: string;
|
|
12360
|
-
agentId: string;
|
|
12361
14187
|
ownerPrincipal: {
|
|
12362
14188
|
type: "user" | "serviceAccount" | "system";
|
|
12363
14189
|
id: string;
|
|
@@ -12387,7 +14213,6 @@ export declare const listAgentThreadsOptions: (options?: Options<ListAgentThread
|
|
|
12387
14213
|
threads: Array<{
|
|
12388
14214
|
id: string;
|
|
12389
14215
|
projectId: string;
|
|
12390
|
-
agentId: string;
|
|
12391
14216
|
ownerPrincipal: {
|
|
12392
14217
|
type: "user" | "serviceAccount" | "system";
|
|
12393
14218
|
id: string;
|
|
@@ -12414,7 +14239,6 @@ export declare const listAgentThreadsInfiniteOptions: (options?: Options<ListAge
|
|
|
12414
14239
|
threads: Array<{
|
|
12415
14240
|
id: string;
|
|
12416
14241
|
projectId: string;
|
|
12417
|
-
agentId: string;
|
|
12418
14242
|
ownerPrincipal: {
|
|
12419
14243
|
type: "user" | "serviceAccount" | "system";
|
|
12420
14244
|
id: string;
|
|
@@ -12433,7 +14257,6 @@ export declare const listAgentThreadsInfiniteOptions: (options?: Options<ListAge
|
|
|
12433
14257
|
threads: Array<{
|
|
12434
14258
|
id: string;
|
|
12435
14259
|
projectId: string;
|
|
12436
|
-
agentId: string;
|
|
12437
14260
|
ownerPrincipal: {
|
|
12438
14261
|
type: "user" | "serviceAccount" | "system";
|
|
12439
14262
|
id: string;
|
|
@@ -12457,7 +14280,6 @@ export declare const listAgentThreadsInfiniteOptions: (options?: Options<ListAge
|
|
|
12457
14280
|
threads: Array<{
|
|
12458
14281
|
id: string;
|
|
12459
14282
|
projectId: string;
|
|
12460
|
-
agentId: string;
|
|
12461
14283
|
ownerPrincipal: {
|
|
12462
14284
|
type: "user" | "serviceAccount" | "system";
|
|
12463
14285
|
id: string;
|
|
@@ -12480,7 +14302,6 @@ export declare const listAgentThreadsInfiniteOptions: (options?: Options<ListAge
|
|
|
12480
14302
|
threads: Array<{
|
|
12481
14303
|
id: string;
|
|
12482
14304
|
projectId: string;
|
|
12483
|
-
agentId: string;
|
|
12484
14305
|
ownerPrincipal: {
|
|
12485
14306
|
type: "user" | "serviceAccount" | "system";
|
|
12486
14307
|
id: string;
|
|
@@ -12506,7 +14327,6 @@ export declare const listAgentThreadsInfiniteOptions: (options?: Options<ListAge
|
|
|
12506
14327
|
threads: Array<{
|
|
12507
14328
|
id: string;
|
|
12508
14329
|
projectId: string;
|
|
12509
|
-
agentId: string;
|
|
12510
14330
|
ownerPrincipal: {
|
|
12511
14331
|
type: "user" | "serviceAccount" | "system";
|
|
12512
14332
|
id: string;
|
|
@@ -12540,7 +14360,6 @@ export declare const getAgentThreadQueryKey: (options: Options<GetAgentThreadDat
|
|
|
12540
14360
|
export declare const getAgentThreadOptions: (options: Options<GetAgentThreadData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
12541
14361
|
id: string;
|
|
12542
14362
|
projectId: string;
|
|
12543
|
-
agentId: string;
|
|
12544
14363
|
ownerPrincipal: {
|
|
12545
14364
|
type: "user" | "serviceAccount" | "system";
|
|
12546
14365
|
id: string;
|
|
@@ -12555,7 +14374,6 @@ export declare const getAgentThreadOptions: (options: Options<GetAgentThreadData
|
|
|
12555
14374
|
}, GetAgentThreadError, {
|
|
12556
14375
|
id: string;
|
|
12557
14376
|
projectId: string;
|
|
12558
|
-
agentId: string;
|
|
12559
14377
|
ownerPrincipal: {
|
|
12560
14378
|
type: "user" | "serviceAccount" | "system";
|
|
12561
14379
|
id: string;
|
|
@@ -12575,7 +14393,6 @@ export declare const getAgentThreadOptions: (options: Options<GetAgentThreadData
|
|
|
12575
14393
|
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
12576
14394
|
id: string;
|
|
12577
14395
|
projectId: string;
|
|
12578
|
-
agentId: string;
|
|
12579
14396
|
ownerPrincipal: {
|
|
12580
14397
|
type: "user" | "serviceAccount" | "system";
|
|
12581
14398
|
id: string;
|
|
@@ -12601,7 +14418,6 @@ export declare const getAgentThreadOptions: (options: Options<GetAgentThreadData
|
|
|
12601
14418
|
[dataTagSymbol]: {
|
|
12602
14419
|
id: string;
|
|
12603
14420
|
projectId: string;
|
|
12604
|
-
agentId: string;
|
|
12605
14421
|
ownerPrincipal: {
|
|
12606
14422
|
type: "user" | "serviceAccount" | "system";
|
|
12607
14423
|
id: string;
|
|
@@ -12664,6 +14480,12 @@ export declare const listAgentThreadMessagesOptions: (options: Options<ListAgent
|
|
|
12664
14480
|
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
12665
14481
|
[key: string]: unknown;
|
|
12666
14482
|
} | null;
|
|
14483
|
+
} | {
|
|
14484
|
+
type: "provider-state";
|
|
14485
|
+
providerId: string;
|
|
14486
|
+
data: string | number | boolean | Array<unknown> | {
|
|
14487
|
+
[key: string]: unknown;
|
|
14488
|
+
} | null;
|
|
12667
14489
|
} | {
|
|
12668
14490
|
context: {
|
|
12669
14491
|
kind: "object";
|
|
@@ -12773,6 +14595,12 @@ export declare const listAgentThreadMessagesOptions: (options: Options<ListAgent
|
|
|
12773
14595
|
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
12774
14596
|
[key: string]: unknown;
|
|
12775
14597
|
} | null;
|
|
14598
|
+
} | {
|
|
14599
|
+
type: "provider-state";
|
|
14600
|
+
providerId: string;
|
|
14601
|
+
data: string | number | boolean | Array<unknown> | {
|
|
14602
|
+
[key: string]: unknown;
|
|
14603
|
+
} | null;
|
|
12776
14604
|
} | {
|
|
12777
14605
|
context: {
|
|
12778
14606
|
kind: "object";
|
|
@@ -12887,6 +14715,12 @@ export declare const listAgentThreadMessagesOptions: (options: Options<ListAgent
|
|
|
12887
14715
|
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
12888
14716
|
[key: string]: unknown;
|
|
12889
14717
|
} | null;
|
|
14718
|
+
} | {
|
|
14719
|
+
type: "provider-state";
|
|
14720
|
+
providerId: string;
|
|
14721
|
+
data: string | number | boolean | Array<unknown> | {
|
|
14722
|
+
[key: string]: unknown;
|
|
14723
|
+
} | null;
|
|
12890
14724
|
} | {
|
|
12891
14725
|
context: {
|
|
12892
14726
|
kind: "object";
|
|
@@ -13007,6 +14841,12 @@ export declare const listAgentThreadMessagesOptions: (options: Options<ListAgent
|
|
|
13007
14841
|
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
13008
14842
|
[key: string]: unknown;
|
|
13009
14843
|
} | null;
|
|
14844
|
+
} | {
|
|
14845
|
+
type: "provider-state";
|
|
14846
|
+
providerId: string;
|
|
14847
|
+
data: string | number | boolean | Array<unknown> | {
|
|
14848
|
+
[key: string]: unknown;
|
|
14849
|
+
} | null;
|
|
13010
14850
|
} | {
|
|
13011
14851
|
context: {
|
|
13012
14852
|
kind: "object";
|
|
@@ -13124,6 +14964,12 @@ export declare const listAgentThreadMessagesInfiniteOptions: (options: Options<L
|
|
|
13124
14964
|
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
13125
14965
|
[key: string]: unknown;
|
|
13126
14966
|
} | null;
|
|
14967
|
+
} | {
|
|
14968
|
+
type: "provider-state";
|
|
14969
|
+
providerId: string;
|
|
14970
|
+
data: string | number | boolean | Array<unknown> | {
|
|
14971
|
+
[key: string]: unknown;
|
|
14972
|
+
} | null;
|
|
13127
14973
|
} | {
|
|
13128
14974
|
context: {
|
|
13129
14975
|
kind: "object";
|
|
@@ -13233,6 +15079,12 @@ export declare const listAgentThreadMessagesInfiniteOptions: (options: Options<L
|
|
|
13233
15079
|
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
13234
15080
|
[key: string]: unknown;
|
|
13235
15081
|
} | null;
|
|
15082
|
+
} | {
|
|
15083
|
+
type: "provider-state";
|
|
15084
|
+
providerId: string;
|
|
15085
|
+
data: string | number | boolean | Array<unknown> | {
|
|
15086
|
+
[key: string]: unknown;
|
|
15087
|
+
} | null;
|
|
13236
15088
|
} | {
|
|
13237
15089
|
context: {
|
|
13238
15090
|
kind: "object";
|
|
@@ -13347,6 +15199,12 @@ export declare const listAgentThreadMessagesInfiniteOptions: (options: Options<L
|
|
|
13347
15199
|
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
13348
15200
|
[key: string]: unknown;
|
|
13349
15201
|
} | null;
|
|
15202
|
+
} | {
|
|
15203
|
+
type: "provider-state";
|
|
15204
|
+
providerId: string;
|
|
15205
|
+
data: string | number | boolean | Array<unknown> | {
|
|
15206
|
+
[key: string]: unknown;
|
|
15207
|
+
} | null;
|
|
13350
15208
|
} | {
|
|
13351
15209
|
context: {
|
|
13352
15210
|
kind: "object";
|
|
@@ -13460,6 +15318,12 @@ export declare const listAgentThreadMessagesInfiniteOptions: (options: Options<L
|
|
|
13460
15318
|
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
13461
15319
|
[key: string]: unknown;
|
|
13462
15320
|
} | null;
|
|
15321
|
+
} | {
|
|
15322
|
+
type: "provider-state";
|
|
15323
|
+
providerId: string;
|
|
15324
|
+
data: string | number | boolean | Array<unknown> | {
|
|
15325
|
+
[key: string]: unknown;
|
|
15326
|
+
} | null;
|
|
13463
15327
|
} | {
|
|
13464
15328
|
context: {
|
|
13465
15329
|
kind: "object";
|
|
@@ -13576,6 +15440,12 @@ export declare const listAgentThreadMessagesInfiniteOptions: (options: Options<L
|
|
|
13576
15440
|
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
13577
15441
|
[key: string]: unknown;
|
|
13578
15442
|
} | null;
|
|
15443
|
+
} | {
|
|
15444
|
+
type: "provider-state";
|
|
15445
|
+
providerId: string;
|
|
15446
|
+
data: string | number | boolean | Array<unknown> | {
|
|
15447
|
+
[key: string]: unknown;
|
|
15448
|
+
} | null;
|
|
13579
15449
|
} | {
|
|
13580
15450
|
context: {
|
|
13581
15451
|
kind: "object";
|
|
@@ -13703,13 +15573,19 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
|
|
|
13703
15573
|
id: string;
|
|
13704
15574
|
projectId: string;
|
|
13705
15575
|
threadId: string;
|
|
13706
|
-
agentId: string;
|
|
13707
15576
|
triggerMessageId: string;
|
|
13708
15577
|
requestedBy?: {
|
|
13709
15578
|
type: "user" | "serviceAccount";
|
|
13710
15579
|
id: string;
|
|
13711
15580
|
};
|
|
13712
15581
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
15582
|
+
model?: {
|
|
15583
|
+
provider: string;
|
|
15584
|
+
modelId: string;
|
|
15585
|
+
};
|
|
15586
|
+
reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
15587
|
+
budgetTokens: number;
|
|
15588
|
+
};
|
|
13713
15589
|
modelId?: string;
|
|
13714
15590
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
13715
15591
|
usage?: {
|
|
@@ -13740,7 +15616,7 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
|
|
|
13740
15616
|
message: string;
|
|
13741
15617
|
}>;
|
|
13742
15618
|
error?: {
|
|
13743
|
-
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
|
|
15619
|
+
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
13744
15620
|
message: string;
|
|
13745
15621
|
retryable: boolean;
|
|
13746
15622
|
at: string;
|
|
@@ -13762,13 +15638,19 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
|
|
|
13762
15638
|
id: string;
|
|
13763
15639
|
projectId: string;
|
|
13764
15640
|
threadId: string;
|
|
13765
|
-
agentId: string;
|
|
13766
15641
|
triggerMessageId: string;
|
|
13767
15642
|
requestedBy?: {
|
|
13768
15643
|
type: "user" | "serviceAccount";
|
|
13769
15644
|
id: string;
|
|
13770
15645
|
};
|
|
13771
15646
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
15647
|
+
model?: {
|
|
15648
|
+
provider: string;
|
|
15649
|
+
modelId: string;
|
|
15650
|
+
};
|
|
15651
|
+
reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
15652
|
+
budgetTokens: number;
|
|
15653
|
+
};
|
|
13772
15654
|
modelId?: string;
|
|
13773
15655
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
13774
15656
|
usage?: {
|
|
@@ -13799,7 +15681,7 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
|
|
|
13799
15681
|
message: string;
|
|
13800
15682
|
}>;
|
|
13801
15683
|
error?: {
|
|
13802
|
-
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
|
|
15684
|
+
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
13803
15685
|
message: string;
|
|
13804
15686
|
retryable: boolean;
|
|
13805
15687
|
at: string;
|
|
@@ -13826,13 +15708,19 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
|
|
|
13826
15708
|
id: string;
|
|
13827
15709
|
projectId: string;
|
|
13828
15710
|
threadId: string;
|
|
13829
|
-
agentId: string;
|
|
13830
15711
|
triggerMessageId: string;
|
|
13831
15712
|
requestedBy?: {
|
|
13832
15713
|
type: "user" | "serviceAccount";
|
|
13833
15714
|
id: string;
|
|
13834
15715
|
};
|
|
13835
15716
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
15717
|
+
model?: {
|
|
15718
|
+
provider: string;
|
|
15719
|
+
modelId: string;
|
|
15720
|
+
};
|
|
15721
|
+
reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
15722
|
+
budgetTokens: number;
|
|
15723
|
+
};
|
|
13836
15724
|
modelId?: string;
|
|
13837
15725
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
13838
15726
|
usage?: {
|
|
@@ -13863,7 +15751,7 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
|
|
|
13863
15751
|
message: string;
|
|
13864
15752
|
}>;
|
|
13865
15753
|
error?: {
|
|
13866
|
-
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
|
|
15754
|
+
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
13867
15755
|
message: string;
|
|
13868
15756
|
retryable: boolean;
|
|
13869
15757
|
at: string;
|
|
@@ -13896,13 +15784,19 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
|
|
|
13896
15784
|
id: string;
|
|
13897
15785
|
projectId: string;
|
|
13898
15786
|
threadId: string;
|
|
13899
|
-
agentId: string;
|
|
13900
15787
|
triggerMessageId: string;
|
|
13901
15788
|
requestedBy?: {
|
|
13902
15789
|
type: "user" | "serviceAccount";
|
|
13903
15790
|
id: string;
|
|
13904
15791
|
};
|
|
13905
15792
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
15793
|
+
model?: {
|
|
15794
|
+
provider: string;
|
|
15795
|
+
modelId: string;
|
|
15796
|
+
};
|
|
15797
|
+
reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
15798
|
+
budgetTokens: number;
|
|
15799
|
+
};
|
|
13906
15800
|
modelId?: string;
|
|
13907
15801
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
13908
15802
|
usage?: {
|
|
@@ -13933,7 +15827,7 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
|
|
|
13933
15827
|
message: string;
|
|
13934
15828
|
}>;
|
|
13935
15829
|
error?: {
|
|
13936
|
-
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
|
|
15830
|
+
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
13937
15831
|
message: string;
|
|
13938
15832
|
retryable: boolean;
|
|
13939
15833
|
at: string;
|
|
@@ -13963,13 +15857,19 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
|
|
|
13963
15857
|
id: string;
|
|
13964
15858
|
projectId: string;
|
|
13965
15859
|
threadId: string;
|
|
13966
|
-
agentId: string;
|
|
13967
15860
|
triggerMessageId: string;
|
|
13968
15861
|
requestedBy?: {
|
|
13969
15862
|
type: "user" | "serviceAccount";
|
|
13970
15863
|
id: string;
|
|
13971
15864
|
};
|
|
13972
15865
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
15866
|
+
model?: {
|
|
15867
|
+
provider: string;
|
|
15868
|
+
modelId: string;
|
|
15869
|
+
};
|
|
15870
|
+
reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
15871
|
+
budgetTokens: number;
|
|
15872
|
+
};
|
|
13973
15873
|
modelId?: string;
|
|
13974
15874
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
13975
15875
|
usage?: {
|
|
@@ -14000,7 +15900,7 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
|
|
|
14000
15900
|
message: string;
|
|
14001
15901
|
}>;
|
|
14002
15902
|
error?: {
|
|
14003
|
-
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
|
|
15903
|
+
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
14004
15904
|
message: string;
|
|
14005
15905
|
retryable: boolean;
|
|
14006
15906
|
at: string;
|
|
@@ -14022,13 +15922,19 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
|
|
|
14022
15922
|
id: string;
|
|
14023
15923
|
projectId: string;
|
|
14024
15924
|
threadId: string;
|
|
14025
|
-
agentId: string;
|
|
14026
15925
|
triggerMessageId: string;
|
|
14027
15926
|
requestedBy?: {
|
|
14028
15927
|
type: "user" | "serviceAccount";
|
|
14029
15928
|
id: string;
|
|
14030
15929
|
};
|
|
14031
15930
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
15931
|
+
model?: {
|
|
15932
|
+
provider: string;
|
|
15933
|
+
modelId: string;
|
|
15934
|
+
};
|
|
15935
|
+
reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
15936
|
+
budgetTokens: number;
|
|
15937
|
+
};
|
|
14032
15938
|
modelId?: string;
|
|
14033
15939
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
14034
15940
|
usage?: {
|
|
@@ -14059,7 +15965,7 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
|
|
|
14059
15965
|
message: string;
|
|
14060
15966
|
}>;
|
|
14061
15967
|
error?: {
|
|
14062
|
-
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
|
|
15968
|
+
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
14063
15969
|
message: string;
|
|
14064
15970
|
retryable: boolean;
|
|
14065
15971
|
at: string;
|
|
@@ -14086,13 +15992,19 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
|
|
|
14086
15992
|
id: string;
|
|
14087
15993
|
projectId: string;
|
|
14088
15994
|
threadId: string;
|
|
14089
|
-
agentId: string;
|
|
14090
15995
|
triggerMessageId: string;
|
|
14091
15996
|
requestedBy?: {
|
|
14092
15997
|
type: "user" | "serviceAccount";
|
|
14093
15998
|
id: string;
|
|
14094
15999
|
};
|
|
14095
16000
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
16001
|
+
model?: {
|
|
16002
|
+
provider: string;
|
|
16003
|
+
modelId: string;
|
|
16004
|
+
};
|
|
16005
|
+
reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
16006
|
+
budgetTokens: number;
|
|
16007
|
+
};
|
|
14096
16008
|
modelId?: string;
|
|
14097
16009
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
14098
16010
|
usage?: {
|
|
@@ -14123,7 +16035,7 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
|
|
|
14123
16035
|
message: string;
|
|
14124
16036
|
}>;
|
|
14125
16037
|
error?: {
|
|
14126
|
-
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
|
|
16038
|
+
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
14127
16039
|
message: string;
|
|
14128
16040
|
retryable: boolean;
|
|
14129
16041
|
at: string;
|
|
@@ -14149,13 +16061,19 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
|
|
|
14149
16061
|
id: string;
|
|
14150
16062
|
projectId: string;
|
|
14151
16063
|
threadId: string;
|
|
14152
|
-
agentId: string;
|
|
14153
16064
|
triggerMessageId: string;
|
|
14154
16065
|
requestedBy?: {
|
|
14155
16066
|
type: "user" | "serviceAccount";
|
|
14156
16067
|
id: string;
|
|
14157
16068
|
};
|
|
14158
16069
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
16070
|
+
model?: {
|
|
16071
|
+
provider: string;
|
|
16072
|
+
modelId: string;
|
|
16073
|
+
};
|
|
16074
|
+
reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
16075
|
+
budgetTokens: number;
|
|
16076
|
+
};
|
|
14159
16077
|
modelId?: string;
|
|
14160
16078
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
14161
16079
|
usage?: {
|
|
@@ -14186,7 +16104,7 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
|
|
|
14186
16104
|
message: string;
|
|
14187
16105
|
}>;
|
|
14188
16106
|
error?: {
|
|
14189
|
-
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
|
|
16107
|
+
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
14190
16108
|
message: string;
|
|
14191
16109
|
retryable: boolean;
|
|
14192
16110
|
at: string;
|
|
@@ -14215,13 +16133,19 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
|
|
|
14215
16133
|
id: string;
|
|
14216
16134
|
projectId: string;
|
|
14217
16135
|
threadId: string;
|
|
14218
|
-
agentId: string;
|
|
14219
16136
|
triggerMessageId: string;
|
|
14220
16137
|
requestedBy?: {
|
|
14221
16138
|
type: "user" | "serviceAccount";
|
|
14222
16139
|
id: string;
|
|
14223
16140
|
};
|
|
14224
16141
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
16142
|
+
model?: {
|
|
16143
|
+
provider: string;
|
|
16144
|
+
modelId: string;
|
|
16145
|
+
};
|
|
16146
|
+
reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
16147
|
+
budgetTokens: number;
|
|
16148
|
+
};
|
|
14225
16149
|
modelId?: string;
|
|
14226
16150
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
14227
16151
|
usage?: {
|
|
@@ -14252,7 +16176,7 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
|
|
|
14252
16176
|
message: string;
|
|
14253
16177
|
}>;
|
|
14254
16178
|
error?: {
|
|
14255
|
-
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
|
|
16179
|
+
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
14256
16180
|
message: string;
|
|
14257
16181
|
retryable: boolean;
|
|
14258
16182
|
at: string;
|
|
@@ -14285,13 +16209,19 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
|
|
|
14285
16209
|
id: string;
|
|
14286
16210
|
projectId: string;
|
|
14287
16211
|
threadId: string;
|
|
14288
|
-
agentId: string;
|
|
14289
16212
|
triggerMessageId: string;
|
|
14290
16213
|
requestedBy?: {
|
|
14291
16214
|
type: "user" | "serviceAccount";
|
|
14292
16215
|
id: string;
|
|
14293
16216
|
};
|
|
14294
16217
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
16218
|
+
model?: {
|
|
16219
|
+
provider: string;
|
|
16220
|
+
modelId: string;
|
|
16221
|
+
};
|
|
16222
|
+
reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
16223
|
+
budgetTokens: number;
|
|
16224
|
+
};
|
|
14295
16225
|
modelId?: string;
|
|
14296
16226
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
14297
16227
|
usage?: {
|
|
@@ -14322,7 +16252,7 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
|
|
|
14322
16252
|
message: string;
|
|
14323
16253
|
}>;
|
|
14324
16254
|
error?: {
|
|
14325
|
-
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
|
|
16255
|
+
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
14326
16256
|
message: string;
|
|
14327
16257
|
retryable: boolean;
|
|
14328
16258
|
at: string;
|
|
@@ -14340,13 +16270,19 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
|
|
|
14340
16270
|
id: string;
|
|
14341
16271
|
projectId: string;
|
|
14342
16272
|
threadId: string;
|
|
14343
|
-
agentId: string;
|
|
14344
16273
|
triggerMessageId: string;
|
|
14345
16274
|
requestedBy?: {
|
|
14346
16275
|
type: "user" | "serviceAccount";
|
|
14347
16276
|
id: string;
|
|
14348
16277
|
};
|
|
14349
16278
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
16279
|
+
model?: {
|
|
16280
|
+
provider: string;
|
|
16281
|
+
modelId: string;
|
|
16282
|
+
};
|
|
16283
|
+
reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
16284
|
+
budgetTokens: number;
|
|
16285
|
+
};
|
|
14350
16286
|
modelId?: string;
|
|
14351
16287
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
14352
16288
|
usage?: {
|
|
@@ -14377,7 +16313,7 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
|
|
|
14377
16313
|
message: string;
|
|
14378
16314
|
}>;
|
|
14379
16315
|
error?: {
|
|
14380
|
-
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
|
|
16316
|
+
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
14381
16317
|
message: string;
|
|
14382
16318
|
retryable: boolean;
|
|
14383
16319
|
at: string;
|
|
@@ -14400,13 +16336,19 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
|
|
|
14400
16336
|
id: string;
|
|
14401
16337
|
projectId: string;
|
|
14402
16338
|
threadId: string;
|
|
14403
|
-
agentId: string;
|
|
14404
16339
|
triggerMessageId: string;
|
|
14405
16340
|
requestedBy?: {
|
|
14406
16341
|
type: "user" | "serviceAccount";
|
|
14407
16342
|
id: string;
|
|
14408
16343
|
};
|
|
14409
16344
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
16345
|
+
model?: {
|
|
16346
|
+
provider: string;
|
|
16347
|
+
modelId: string;
|
|
16348
|
+
};
|
|
16349
|
+
reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
16350
|
+
budgetTokens: number;
|
|
16351
|
+
};
|
|
14410
16352
|
modelId?: string;
|
|
14411
16353
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
14412
16354
|
usage?: {
|
|
@@ -14437,7 +16379,7 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
|
|
|
14437
16379
|
message: string;
|
|
14438
16380
|
}>;
|
|
14439
16381
|
error?: {
|
|
14440
|
-
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
|
|
16382
|
+
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
14441
16383
|
message: string;
|
|
14442
16384
|
retryable: boolean;
|
|
14443
16385
|
at: string;
|
|
@@ -14466,13 +16408,19 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
|
|
|
14466
16408
|
id: string;
|
|
14467
16409
|
projectId: string;
|
|
14468
16410
|
threadId: string;
|
|
14469
|
-
agentId: string;
|
|
14470
16411
|
triggerMessageId: string;
|
|
14471
16412
|
requestedBy?: {
|
|
14472
16413
|
type: "user" | "serviceAccount";
|
|
14473
16414
|
id: string;
|
|
14474
16415
|
};
|
|
14475
16416
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
16417
|
+
model?: {
|
|
16418
|
+
provider: string;
|
|
16419
|
+
modelId: string;
|
|
16420
|
+
};
|
|
16421
|
+
reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
16422
|
+
budgetTokens: number;
|
|
16423
|
+
};
|
|
14476
16424
|
modelId?: string;
|
|
14477
16425
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
14478
16426
|
usage?: {
|
|
@@ -14503,7 +16451,7 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
|
|
|
14503
16451
|
message: string;
|
|
14504
16452
|
}>;
|
|
14505
16453
|
error?: {
|
|
14506
|
-
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
|
|
16454
|
+
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
14507
16455
|
message: string;
|
|
14508
16456
|
retryable: boolean;
|
|
14509
16457
|
at: string;
|
|
@@ -14534,12 +16482,46 @@ export declare const listModelsOptions: (options?: Options<ListModelsData>) => i
|
|
|
14534
16482
|
provider: string;
|
|
14535
16483
|
modelId: string;
|
|
14536
16484
|
isDefault: boolean;
|
|
16485
|
+
name: string;
|
|
16486
|
+
description?: string;
|
|
16487
|
+
publisher: {
|
|
16488
|
+
id: string;
|
|
16489
|
+
name: string;
|
|
16490
|
+
};
|
|
16491
|
+
via?: string;
|
|
16492
|
+
capabilities: {
|
|
16493
|
+
input: Array<"text" | "image" | "audio" | "video" | "pdf">;
|
|
16494
|
+
output: Array<"text" | "image" | "audio" | "video" | "pdf">;
|
|
16495
|
+
attachments?: boolean;
|
|
16496
|
+
reasoning?: boolean;
|
|
16497
|
+
tools?: boolean;
|
|
16498
|
+
structuredOutput?: boolean;
|
|
16499
|
+
contextWindowTokens?: number;
|
|
16500
|
+
};
|
|
16501
|
+
reasoningLevels: Array<"provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max">;
|
|
14537
16502
|
}>;
|
|
14538
16503
|
}, Error, {
|
|
14539
16504
|
language: Array<{
|
|
14540
16505
|
provider: string;
|
|
14541
16506
|
modelId: string;
|
|
14542
16507
|
isDefault: boolean;
|
|
16508
|
+
name: string;
|
|
16509
|
+
description?: string;
|
|
16510
|
+
publisher: {
|
|
16511
|
+
id: string;
|
|
16512
|
+
name: string;
|
|
16513
|
+
};
|
|
16514
|
+
via?: string;
|
|
16515
|
+
capabilities: {
|
|
16516
|
+
input: Array<"text" | "image" | "audio" | "video" | "pdf">;
|
|
16517
|
+
output: Array<"text" | "image" | "audio" | "video" | "pdf">;
|
|
16518
|
+
attachments?: boolean;
|
|
16519
|
+
reasoning?: boolean;
|
|
16520
|
+
tools?: boolean;
|
|
16521
|
+
structuredOutput?: boolean;
|
|
16522
|
+
contextWindowTokens?: number;
|
|
16523
|
+
};
|
|
16524
|
+
reasoningLevels: Array<"provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max">;
|
|
14543
16525
|
}>;
|
|
14544
16526
|
}, [Pick<Options<ListModelsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
14545
16527
|
_id: string;
|
|
@@ -14551,6 +16533,23 @@ export declare const listModelsOptions: (options?: Options<ListModelsData>) => i
|
|
|
14551
16533
|
provider: string;
|
|
14552
16534
|
modelId: string;
|
|
14553
16535
|
isDefault: boolean;
|
|
16536
|
+
name: string;
|
|
16537
|
+
description?: string;
|
|
16538
|
+
publisher: {
|
|
16539
|
+
id: string;
|
|
16540
|
+
name: string;
|
|
16541
|
+
};
|
|
16542
|
+
via?: string;
|
|
16543
|
+
capabilities: {
|
|
16544
|
+
input: Array<"text" | "image" | "audio" | "video" | "pdf">;
|
|
16545
|
+
output: Array<"text" | "image" | "audio" | "video" | "pdf">;
|
|
16546
|
+
attachments?: boolean;
|
|
16547
|
+
reasoning?: boolean;
|
|
16548
|
+
tools?: boolean;
|
|
16549
|
+
structuredOutput?: boolean;
|
|
16550
|
+
contextWindowTokens?: number;
|
|
16551
|
+
};
|
|
16552
|
+
reasoningLevels: Array<"provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max">;
|
|
14554
16553
|
}>;
|
|
14555
16554
|
}, [Pick<Options<ListModelsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
14556
16555
|
_id: string;
|
|
@@ -14568,6 +16567,23 @@ export declare const listModelsOptions: (options?: Options<ListModelsData>) => i
|
|
|
14568
16567
|
provider: string;
|
|
14569
16568
|
modelId: string;
|
|
14570
16569
|
isDefault: boolean;
|
|
16570
|
+
name: string;
|
|
16571
|
+
description?: string;
|
|
16572
|
+
publisher: {
|
|
16573
|
+
id: string;
|
|
16574
|
+
name: string;
|
|
16575
|
+
};
|
|
16576
|
+
via?: string;
|
|
16577
|
+
capabilities: {
|
|
16578
|
+
input: Array<"text" | "image" | "audio" | "video" | "pdf">;
|
|
16579
|
+
output: Array<"text" | "image" | "audio" | "video" | "pdf">;
|
|
16580
|
+
attachments?: boolean;
|
|
16581
|
+
reasoning?: boolean;
|
|
16582
|
+
tools?: boolean;
|
|
16583
|
+
structuredOutput?: boolean;
|
|
16584
|
+
contextWindowTokens?: number;
|
|
16585
|
+
};
|
|
16586
|
+
reasoningLevels: Array<"provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max">;
|
|
14571
16587
|
}>;
|
|
14572
16588
|
};
|
|
14573
16589
|
[dataTagErrorSymbol]: Error;
|