@sixb/client 0.1.6 → 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 +2407 -367
- 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 +975 -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 +1266 -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;
|
|
@@ -1259,7 +1267,32 @@ export declare const getAiAccountingOverviewOptions: (options: Options<GetAiAcco
|
|
|
1259
1267
|
unpriceableCallCount: number;
|
|
1260
1268
|
unvaluedCallCount: number;
|
|
1261
1269
|
};
|
|
1262
|
-
|
|
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;
|
|
1263
1296
|
}>;
|
|
1264
1297
|
workflows: Array<{
|
|
1265
1298
|
modelCallCount: number;
|
|
@@ -1386,7 +1419,32 @@ export declare const getAiAccountingOverviewOptions: (options: Options<GetAiAcco
|
|
|
1386
1419
|
unpriceableCallCount: number;
|
|
1387
1420
|
unvaluedCallCount: number;
|
|
1388
1421
|
};
|
|
1389
|
-
|
|
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;
|
|
1390
1448
|
}>;
|
|
1391
1449
|
workflows: Array<{
|
|
1392
1450
|
modelCallCount: number;
|
|
@@ -1518,7 +1576,32 @@ export declare const getAiAccountingOverviewOptions: (options: Options<GetAiAcco
|
|
|
1518
1576
|
unpriceableCallCount: number;
|
|
1519
1577
|
unvaluedCallCount: number;
|
|
1520
1578
|
};
|
|
1521
|
-
|
|
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;
|
|
1522
1605
|
}>;
|
|
1523
1606
|
workflows: Array<{
|
|
1524
1607
|
modelCallCount: number;
|
|
@@ -1656,7 +1739,32 @@ export declare const getAiAccountingOverviewOptions: (options: Options<GetAiAcco
|
|
|
1656
1739
|
unpriceableCallCount: number;
|
|
1657
1740
|
unvaluedCallCount: number;
|
|
1658
1741
|
};
|
|
1659
|
-
|
|
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;
|
|
1660
1768
|
}>;
|
|
1661
1769
|
workflows: Array<{
|
|
1662
1770
|
modelCallCount: number;
|
|
@@ -1703,12 +1811,26 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1703
1811
|
callId: string;
|
|
1704
1812
|
providerId: string;
|
|
1705
1813
|
requestedModelId: string;
|
|
1814
|
+
requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
1815
|
+
budgetTokens: number;
|
|
1816
|
+
};
|
|
1706
1817
|
responseModelId?: string;
|
|
1707
1818
|
responseId: string;
|
|
1819
|
+
providerIds: {
|
|
1820
|
+
requestId?: string;
|
|
1821
|
+
responseId?: string;
|
|
1822
|
+
generationId?: string;
|
|
1823
|
+
} | null;
|
|
1708
1824
|
usage: {
|
|
1709
1825
|
inputTokens?: number;
|
|
1710
1826
|
outputTokens?: number;
|
|
1711
|
-
totalTokens
|
|
1827
|
+
totalTokens
|
|
1828
|
+
/**
|
|
1829
|
+
* Create an AI usage-limit policy
|
|
1830
|
+
*/
|
|
1831
|
+
? /**
|
|
1832
|
+
* Create an AI usage-limit policy
|
|
1833
|
+
*/: number;
|
|
1712
1834
|
uncachedInputTokens?: number;
|
|
1713
1835
|
cacheReadInputTokens?: number;
|
|
1714
1836
|
cacheWriteInputTokens?: number;
|
|
@@ -1721,18 +1843,39 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1721
1843
|
};
|
|
1722
1844
|
attribution?: {
|
|
1723
1845
|
kind: "agent";
|
|
1724
|
-
agentId: string;
|
|
1725
1846
|
agentRunId: string;
|
|
1726
1847
|
threadId: string;
|
|
1727
1848
|
} | {
|
|
1728
1849
|
kind: "workflowAgent";
|
|
1729
|
-
|
|
1850
|
+
agentStepId: string;
|
|
1730
1851
|
nodeRunId: string;
|
|
1731
1852
|
workflowId: string;
|
|
1732
1853
|
workflowRunId: string;
|
|
1854
|
+
} | {
|
|
1855
|
+
kind: "subagent";
|
|
1856
|
+
subagentRunId: string;
|
|
1857
|
+
parentRunId: string;
|
|
1733
1858
|
};
|
|
1734
1859
|
cost?: {
|
|
1735
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
|
+
};
|
|
1736
1879
|
billingIdentity: {
|
|
1737
1880
|
providerId: string;
|
|
1738
1881
|
modelId: string;
|
|
@@ -1743,6 +1886,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1743
1886
|
region?: string;
|
|
1744
1887
|
inferenceGeo?: string;
|
|
1745
1888
|
routedProviderId?: string;
|
|
1889
|
+
routedModelId?: string;
|
|
1746
1890
|
deploymentId?: string;
|
|
1747
1891
|
inferenceProfileId?: string;
|
|
1748
1892
|
cacheWriteTtlSeconds?: number;
|
|
@@ -1752,7 +1896,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1752
1896
|
sourceId: string;
|
|
1753
1897
|
sourceEntryId: string;
|
|
1754
1898
|
sourceVersion: string;
|
|
1755
|
-
sourceUrl
|
|
1899
|
+
sourceUrl?: string;
|
|
1756
1900
|
observedAt: string;
|
|
1757
1901
|
};
|
|
1758
1902
|
money: {
|
|
@@ -1760,7 +1904,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1760
1904
|
amountNanos: string;
|
|
1761
1905
|
};
|
|
1762
1906
|
components: Array<{
|
|
1763
|
-
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
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";
|
|
1764
1908
|
quantity: string;
|
|
1765
1909
|
rateAmountNanosPerMillion: string;
|
|
1766
1910
|
chargeAmountNanos: string;
|
|
@@ -1768,7 +1912,29 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1768
1912
|
ratedAt: string;
|
|
1769
1913
|
} | {
|
|
1770
1914
|
status: "unpriceable";
|
|
1771
|
-
|
|
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
|
+
?: {
|
|
1772
1938
|
providerId: string;
|
|
1773
1939
|
modelId: string;
|
|
1774
1940
|
};
|
|
@@ -1778,20 +1944,21 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1778
1944
|
region?: string;
|
|
1779
1945
|
inferenceGeo?: string;
|
|
1780
1946
|
routedProviderId?: string;
|
|
1947
|
+
routedModelId?: string;
|
|
1781
1948
|
deploymentId?: string;
|
|
1782
1949
|
inferenceProfileId?: string;
|
|
1783
1950
|
cacheWriteTtlSeconds?: number;
|
|
1784
1951
|
mode?: string;
|
|
1785
1952
|
};
|
|
1786
|
-
priceSource
|
|
1953
|
+
priceSource?: {
|
|
1787
1954
|
sourceId: string;
|
|
1788
1955
|
sourceEntryId: string;
|
|
1789
1956
|
sourceVersion: string;
|
|
1790
|
-
sourceUrl
|
|
1957
|
+
sourceUrl?: string;
|
|
1791
1958
|
observedAt: string;
|
|
1792
1959
|
};
|
|
1793
|
-
reason: "missingBillingIdentity" | "
|
|
1794
|
-
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">;
|
|
1795
1962
|
ratedAt: string;
|
|
1796
1963
|
};
|
|
1797
1964
|
valuationStatus: "rated" | "unpriceable" | "unvalued";
|
|
@@ -1807,12 +1974,26 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1807
1974
|
callId: string;
|
|
1808
1975
|
providerId: string;
|
|
1809
1976
|
requestedModelId: string;
|
|
1977
|
+
requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
1978
|
+
budgetTokens: number;
|
|
1979
|
+
};
|
|
1810
1980
|
responseModelId?: string;
|
|
1811
1981
|
responseId: string;
|
|
1982
|
+
providerIds: {
|
|
1983
|
+
requestId?: string;
|
|
1984
|
+
responseId?: string;
|
|
1985
|
+
generationId?: string;
|
|
1986
|
+
} | null;
|
|
1812
1987
|
usage: {
|
|
1813
1988
|
inputTokens?: number;
|
|
1814
1989
|
outputTokens?: number;
|
|
1815
|
-
totalTokens
|
|
1990
|
+
totalTokens
|
|
1991
|
+
/**
|
|
1992
|
+
* Create an AI usage-limit policy
|
|
1993
|
+
*/
|
|
1994
|
+
? /**
|
|
1995
|
+
* Create an AI usage-limit policy
|
|
1996
|
+
*/: number;
|
|
1816
1997
|
uncachedInputTokens?: number;
|
|
1817
1998
|
cacheReadInputTokens?: number;
|
|
1818
1999
|
cacheWriteInputTokens?: number;
|
|
@@ -1825,18 +2006,39 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1825
2006
|
};
|
|
1826
2007
|
attribution?: {
|
|
1827
2008
|
kind: "agent";
|
|
1828
|
-
agentId: string;
|
|
1829
2009
|
agentRunId: string;
|
|
1830
2010
|
threadId: string;
|
|
1831
2011
|
} | {
|
|
1832
2012
|
kind: "workflowAgent";
|
|
1833
|
-
|
|
2013
|
+
agentStepId: string;
|
|
1834
2014
|
nodeRunId: string;
|
|
1835
2015
|
workflowId: string;
|
|
1836
2016
|
workflowRunId: string;
|
|
2017
|
+
} | {
|
|
2018
|
+
kind: "subagent";
|
|
2019
|
+
subagentRunId: string;
|
|
2020
|
+
parentRunId: string;
|
|
1837
2021
|
};
|
|
1838
2022
|
cost?: {
|
|
1839
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
|
+
};
|
|
1840
2042
|
billingIdentity: {
|
|
1841
2043
|
providerId: string;
|
|
1842
2044
|
modelId: string;
|
|
@@ -1847,6 +2049,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1847
2049
|
region?: string;
|
|
1848
2050
|
inferenceGeo?: string;
|
|
1849
2051
|
routedProviderId?: string;
|
|
2052
|
+
routedModelId?: string;
|
|
1850
2053
|
deploymentId?: string;
|
|
1851
2054
|
inferenceProfileId?: string;
|
|
1852
2055
|
cacheWriteTtlSeconds?: number;
|
|
@@ -1856,7 +2059,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1856
2059
|
sourceId: string;
|
|
1857
2060
|
sourceEntryId: string;
|
|
1858
2061
|
sourceVersion: string;
|
|
1859
|
-
sourceUrl
|
|
2062
|
+
sourceUrl?: string;
|
|
1860
2063
|
observedAt: string;
|
|
1861
2064
|
};
|
|
1862
2065
|
money: {
|
|
@@ -1864,7 +2067,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1864
2067
|
amountNanos: string;
|
|
1865
2068
|
};
|
|
1866
2069
|
components: Array<{
|
|
1867
|
-
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
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";
|
|
1868
2071
|
quantity: string;
|
|
1869
2072
|
rateAmountNanosPerMillion: string;
|
|
1870
2073
|
chargeAmountNanos: string;
|
|
@@ -1872,7 +2075,29 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1872
2075
|
ratedAt: string;
|
|
1873
2076
|
} | {
|
|
1874
2077
|
status: "unpriceable";
|
|
1875
|
-
|
|
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
|
+
?: {
|
|
1876
2101
|
providerId: string;
|
|
1877
2102
|
modelId: string;
|
|
1878
2103
|
};
|
|
@@ -1882,20 +2107,21 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1882
2107
|
region?: string;
|
|
1883
2108
|
inferenceGeo?: string;
|
|
1884
2109
|
routedProviderId?: string;
|
|
2110
|
+
routedModelId?: string;
|
|
1885
2111
|
deploymentId?: string;
|
|
1886
2112
|
inferenceProfileId?: string;
|
|
1887
2113
|
cacheWriteTtlSeconds?: number;
|
|
1888
2114
|
mode?: string;
|
|
1889
2115
|
};
|
|
1890
|
-
priceSource
|
|
2116
|
+
priceSource?: {
|
|
1891
2117
|
sourceId: string;
|
|
1892
2118
|
sourceEntryId: string;
|
|
1893
2119
|
sourceVersion: string;
|
|
1894
|
-
sourceUrl
|
|
2120
|
+
sourceUrl?: string;
|
|
1895
2121
|
observedAt: string;
|
|
1896
2122
|
};
|
|
1897
|
-
reason: "missingBillingIdentity" | "
|
|
1898
|
-
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">;
|
|
1899
2125
|
ratedAt: string;
|
|
1900
2126
|
};
|
|
1901
2127
|
valuationStatus: "rated" | "unpriceable" | "unvalued";
|
|
@@ -1916,12 +2142,26 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1916
2142
|
callId: string;
|
|
1917
2143
|
providerId: string;
|
|
1918
2144
|
requestedModelId: string;
|
|
2145
|
+
requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
2146
|
+
budgetTokens: number;
|
|
2147
|
+
};
|
|
1919
2148
|
responseModelId?: string;
|
|
1920
2149
|
responseId: string;
|
|
2150
|
+
providerIds: {
|
|
2151
|
+
requestId?: string;
|
|
2152
|
+
responseId?: string;
|
|
2153
|
+
generationId?: string;
|
|
2154
|
+
} | null;
|
|
1921
2155
|
usage: {
|
|
1922
2156
|
inputTokens?: number;
|
|
1923
2157
|
outputTokens?: number;
|
|
1924
|
-
totalTokens
|
|
2158
|
+
totalTokens
|
|
2159
|
+
/**
|
|
2160
|
+
* Create an AI usage-limit policy
|
|
2161
|
+
*/
|
|
2162
|
+
? /**
|
|
2163
|
+
* Create an AI usage-limit policy
|
|
2164
|
+
*/: number;
|
|
1925
2165
|
uncachedInputTokens?: number;
|
|
1926
2166
|
cacheReadInputTokens?: number;
|
|
1927
2167
|
cacheWriteInputTokens?: number;
|
|
@@ -1934,18 +2174,39 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1934
2174
|
};
|
|
1935
2175
|
attribution?: {
|
|
1936
2176
|
kind: "agent";
|
|
1937
|
-
agentId: string;
|
|
1938
2177
|
agentRunId: string;
|
|
1939
2178
|
threadId: string;
|
|
1940
2179
|
} | {
|
|
1941
2180
|
kind: "workflowAgent";
|
|
1942
|
-
|
|
2181
|
+
agentStepId: string;
|
|
1943
2182
|
nodeRunId: string;
|
|
1944
2183
|
workflowId: string;
|
|
1945
2184
|
workflowRunId: string;
|
|
2185
|
+
} | {
|
|
2186
|
+
kind: "subagent";
|
|
2187
|
+
subagentRunId: string;
|
|
2188
|
+
parentRunId: string;
|
|
1946
2189
|
};
|
|
1947
2190
|
cost?: {
|
|
1948
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
|
+
};
|
|
1949
2210
|
billingIdentity: {
|
|
1950
2211
|
providerId: string;
|
|
1951
2212
|
modelId: string;
|
|
@@ -1956,6 +2217,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1956
2217
|
region?: string;
|
|
1957
2218
|
inferenceGeo?: string;
|
|
1958
2219
|
routedProviderId?: string;
|
|
2220
|
+
routedModelId?: string;
|
|
1959
2221
|
deploymentId?: string;
|
|
1960
2222
|
inferenceProfileId?: string;
|
|
1961
2223
|
cacheWriteTtlSeconds?: number;
|
|
@@ -1965,7 +2227,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1965
2227
|
sourceId: string;
|
|
1966
2228
|
sourceEntryId: string;
|
|
1967
2229
|
sourceVersion: string;
|
|
1968
|
-
sourceUrl
|
|
2230
|
+
sourceUrl?: string;
|
|
1969
2231
|
observedAt: string;
|
|
1970
2232
|
};
|
|
1971
2233
|
money: {
|
|
@@ -1973,7 +2235,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1973
2235
|
amountNanos: string;
|
|
1974
2236
|
};
|
|
1975
2237
|
components: Array<{
|
|
1976
|
-
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
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";
|
|
1977
2239
|
quantity: string;
|
|
1978
2240
|
rateAmountNanosPerMillion: string;
|
|
1979
2241
|
chargeAmountNanos: string;
|
|
@@ -1981,7 +2243,29 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1981
2243
|
ratedAt: string;
|
|
1982
2244
|
} | {
|
|
1983
2245
|
status: "unpriceable";
|
|
1984
|
-
|
|
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
|
+
?: {
|
|
1985
2269
|
providerId: string;
|
|
1986
2270
|
modelId: string;
|
|
1987
2271
|
};
|
|
@@ -1991,20 +2275,21 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
1991
2275
|
region?: string;
|
|
1992
2276
|
inferenceGeo?: string;
|
|
1993
2277
|
routedProviderId?: string;
|
|
2278
|
+
routedModelId?: string;
|
|
1994
2279
|
deploymentId?: string;
|
|
1995
2280
|
inferenceProfileId?: string;
|
|
1996
2281
|
cacheWriteTtlSeconds?: number;
|
|
1997
2282
|
mode?: string;
|
|
1998
2283
|
};
|
|
1999
|
-
priceSource
|
|
2284
|
+
priceSource?: {
|
|
2000
2285
|
sourceId: string;
|
|
2001
2286
|
sourceEntryId: string;
|
|
2002
2287
|
sourceVersion: string;
|
|
2003
|
-
sourceUrl
|
|
2288
|
+
sourceUrl?: string;
|
|
2004
2289
|
observedAt: string;
|
|
2005
2290
|
};
|
|
2006
|
-
reason: "missingBillingIdentity" | "
|
|
2007
|
-
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">;
|
|
2008
2293
|
ratedAt: string;
|
|
2009
2294
|
};
|
|
2010
2295
|
valuationStatus: "rated" | "unpriceable" | "unvalued";
|
|
@@ -2031,12 +2316,26 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
2031
2316
|
callId: string;
|
|
2032
2317
|
providerId: string;
|
|
2033
2318
|
requestedModelId: string;
|
|
2319
|
+
requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
2320
|
+
budgetTokens: number;
|
|
2321
|
+
};
|
|
2034
2322
|
responseModelId?: string;
|
|
2035
2323
|
responseId: string;
|
|
2324
|
+
providerIds: {
|
|
2325
|
+
requestId?: string;
|
|
2326
|
+
responseId?: string;
|
|
2327
|
+
generationId?: string;
|
|
2328
|
+
} | null;
|
|
2036
2329
|
usage: {
|
|
2037
2330
|
inputTokens?: number;
|
|
2038
2331
|
outputTokens?: number;
|
|
2039
|
-
totalTokens
|
|
2332
|
+
totalTokens
|
|
2333
|
+
/**
|
|
2334
|
+
* Create an AI usage-limit policy
|
|
2335
|
+
*/
|
|
2336
|
+
? /**
|
|
2337
|
+
* Create an AI usage-limit policy
|
|
2338
|
+
*/: number;
|
|
2040
2339
|
uncachedInputTokens?: number;
|
|
2041
2340
|
cacheReadInputTokens?: number;
|
|
2042
2341
|
cacheWriteInputTokens?: number;
|
|
@@ -2049,18 +2348,39 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
2049
2348
|
};
|
|
2050
2349
|
attribution?: {
|
|
2051
2350
|
kind: "agent";
|
|
2052
|
-
agentId: string;
|
|
2053
2351
|
agentRunId: string;
|
|
2054
2352
|
threadId: string;
|
|
2055
2353
|
} | {
|
|
2056
2354
|
kind: "workflowAgent";
|
|
2057
|
-
|
|
2355
|
+
agentStepId: string;
|
|
2058
2356
|
nodeRunId: string;
|
|
2059
2357
|
workflowId: string;
|
|
2060
2358
|
workflowRunId: string;
|
|
2359
|
+
} | {
|
|
2360
|
+
kind: "subagent";
|
|
2361
|
+
subagentRunId: string;
|
|
2362
|
+
parentRunId: string;
|
|
2061
2363
|
};
|
|
2062
2364
|
cost?: {
|
|
2063
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
|
+
};
|
|
2064
2384
|
billingIdentity: {
|
|
2065
2385
|
providerId: string;
|
|
2066
2386
|
modelId: string;
|
|
@@ -2071,6 +2391,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
2071
2391
|
region?: string;
|
|
2072
2392
|
inferenceGeo?: string;
|
|
2073
2393
|
routedProviderId?: string;
|
|
2394
|
+
routedModelId?: string;
|
|
2074
2395
|
deploymentId?: string;
|
|
2075
2396
|
inferenceProfileId?: string;
|
|
2076
2397
|
cacheWriteTtlSeconds?: number;
|
|
@@ -2080,7 +2401,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
2080
2401
|
sourceId: string;
|
|
2081
2402
|
sourceEntryId: string;
|
|
2082
2403
|
sourceVersion: string;
|
|
2083
|
-
sourceUrl
|
|
2404
|
+
sourceUrl?: string;
|
|
2084
2405
|
observedAt: string;
|
|
2085
2406
|
};
|
|
2086
2407
|
money: {
|
|
@@ -2088,7 +2409,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
2088
2409
|
amountNanos: string;
|
|
2089
2410
|
};
|
|
2090
2411
|
components: Array<{
|
|
2091
|
-
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
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";
|
|
2092
2413
|
quantity: string;
|
|
2093
2414
|
rateAmountNanosPerMillion: string;
|
|
2094
2415
|
chargeAmountNanos: string;
|
|
@@ -2096,7 +2417,29 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
2096
2417
|
ratedAt: string;
|
|
2097
2418
|
} | {
|
|
2098
2419
|
status: "unpriceable";
|
|
2099
|
-
|
|
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
|
+
?: {
|
|
2100
2443
|
providerId: string;
|
|
2101
2444
|
modelId: string;
|
|
2102
2445
|
};
|
|
@@ -2106,20 +2449,21 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
|
|
|
2106
2449
|
region?: string;
|
|
2107
2450
|
inferenceGeo?: string;
|
|
2108
2451
|
routedProviderId?: string;
|
|
2452
|
+
routedModelId?: string;
|
|
2109
2453
|
deploymentId?: string;
|
|
2110
2454
|
inferenceProfileId?: string;
|
|
2111
2455
|
cacheWriteTtlSeconds?: number;
|
|
2112
2456
|
mode?: string;
|
|
2113
2457
|
};
|
|
2114
|
-
priceSource
|
|
2458
|
+
priceSource?: {
|
|
2115
2459
|
sourceId: string;
|
|
2116
2460
|
sourceEntryId: string;
|
|
2117
2461
|
sourceVersion: string;
|
|
2118
|
-
sourceUrl
|
|
2462
|
+
sourceUrl?: string;
|
|
2119
2463
|
observedAt: string;
|
|
2120
2464
|
};
|
|
2121
|
-
reason: "missingBillingIdentity" | "
|
|
2122
|
-
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">;
|
|
2123
2467
|
ratedAt: string;
|
|
2124
2468
|
};
|
|
2125
2469
|
valuationStatus: "rated" | "unpriceable" | "unvalued";
|
|
@@ -2143,12 +2487,26 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2143
2487
|
callId: string;
|
|
2144
2488
|
providerId: string;
|
|
2145
2489
|
requestedModelId: string;
|
|
2490
|
+
requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
2491
|
+
budgetTokens: number;
|
|
2492
|
+
};
|
|
2146
2493
|
responseModelId?: string;
|
|
2147
2494
|
responseId: string;
|
|
2495
|
+
providerIds: {
|
|
2496
|
+
requestId?: string;
|
|
2497
|
+
responseId?: string;
|
|
2498
|
+
generationId?: string;
|
|
2499
|
+
} | null;
|
|
2148
2500
|
usage: {
|
|
2149
2501
|
inputTokens?: number;
|
|
2150
2502
|
outputTokens?: number;
|
|
2151
|
-
totalTokens
|
|
2503
|
+
totalTokens
|
|
2504
|
+
/**
|
|
2505
|
+
* Create an AI usage-limit policy
|
|
2506
|
+
*/
|
|
2507
|
+
? /**
|
|
2508
|
+
* Create an AI usage-limit policy
|
|
2509
|
+
*/: number;
|
|
2152
2510
|
uncachedInputTokens?: number;
|
|
2153
2511
|
cacheReadInputTokens?: number;
|
|
2154
2512
|
cacheWriteInputTokens?: number;
|
|
@@ -2161,18 +2519,39 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2161
2519
|
};
|
|
2162
2520
|
attribution?: {
|
|
2163
2521
|
kind: "agent";
|
|
2164
|
-
agentId: string;
|
|
2165
2522
|
agentRunId: string;
|
|
2166
2523
|
threadId: string;
|
|
2167
2524
|
} | {
|
|
2168
2525
|
kind: "workflowAgent";
|
|
2169
|
-
|
|
2526
|
+
agentStepId: string;
|
|
2170
2527
|
nodeRunId: string;
|
|
2171
2528
|
workflowId: string;
|
|
2172
2529
|
workflowRunId: string;
|
|
2530
|
+
} | {
|
|
2531
|
+
kind: "subagent";
|
|
2532
|
+
subagentRunId: string;
|
|
2533
|
+
parentRunId: string;
|
|
2173
2534
|
};
|
|
2174
2535
|
cost?: {
|
|
2175
2536
|
status: "rated";
|
|
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
|
+
};
|
|
2176
2555
|
billingIdentity: {
|
|
2177
2556
|
providerId: string;
|
|
2178
2557
|
modelId: string;
|
|
@@ -2183,6 +2562,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2183
2562
|
region?: string;
|
|
2184
2563
|
inferenceGeo?: string;
|
|
2185
2564
|
routedProviderId?: string;
|
|
2565
|
+
routedModelId?: string;
|
|
2186
2566
|
deploymentId?: string;
|
|
2187
2567
|
inferenceProfileId?: string;
|
|
2188
2568
|
cacheWriteTtlSeconds?: number;
|
|
@@ -2192,7 +2572,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2192
2572
|
sourceId: string;
|
|
2193
2573
|
sourceEntryId: string;
|
|
2194
2574
|
sourceVersion: string;
|
|
2195
|
-
sourceUrl
|
|
2575
|
+
sourceUrl?: string;
|
|
2196
2576
|
observedAt: string;
|
|
2197
2577
|
};
|
|
2198
2578
|
money: {
|
|
@@ -2200,7 +2580,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2200
2580
|
amountNanos: string;
|
|
2201
2581
|
};
|
|
2202
2582
|
components: Array<{
|
|
2203
|
-
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
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";
|
|
2204
2584
|
quantity: string;
|
|
2205
2585
|
rateAmountNanosPerMillion: string;
|
|
2206
2586
|
chargeAmountNanos: string;
|
|
@@ -2208,7 +2588,29 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2208
2588
|
ratedAt: string;
|
|
2209
2589
|
} | {
|
|
2210
2590
|
status: "unpriceable";
|
|
2211
|
-
|
|
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
|
+
?: {
|
|
2212
2614
|
providerId: string;
|
|
2213
2615
|
modelId: string;
|
|
2214
2616
|
};
|
|
@@ -2218,20 +2620,21 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2218
2620
|
region?: string;
|
|
2219
2621
|
inferenceGeo?: string;
|
|
2220
2622
|
routedProviderId?: string;
|
|
2623
|
+
routedModelId?: string;
|
|
2221
2624
|
deploymentId?: string;
|
|
2222
2625
|
inferenceProfileId?: string;
|
|
2223
2626
|
cacheWriteTtlSeconds?: number;
|
|
2224
2627
|
mode?: string;
|
|
2225
2628
|
};
|
|
2226
|
-
priceSource
|
|
2629
|
+
priceSource?: {
|
|
2227
2630
|
sourceId: string;
|
|
2228
2631
|
sourceEntryId: string;
|
|
2229
2632
|
sourceVersion: string;
|
|
2230
|
-
sourceUrl
|
|
2633
|
+
sourceUrl?: string;
|
|
2231
2634
|
observedAt: string;
|
|
2232
2635
|
};
|
|
2233
|
-
reason: "missingBillingIdentity" | "
|
|
2234
|
-
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">;
|
|
2235
2638
|
ratedAt: string;
|
|
2236
2639
|
};
|
|
2237
2640
|
valuationStatus: "rated" | "unpriceable" | "unvalued";
|
|
@@ -2247,12 +2650,26 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2247
2650
|
callId: string;
|
|
2248
2651
|
providerId: string;
|
|
2249
2652
|
requestedModelId: string;
|
|
2653
|
+
requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
2654
|
+
budgetTokens: number;
|
|
2655
|
+
};
|
|
2250
2656
|
responseModelId?: string;
|
|
2251
2657
|
responseId: string;
|
|
2658
|
+
providerIds: {
|
|
2659
|
+
requestId?: string;
|
|
2660
|
+
responseId?: string;
|
|
2661
|
+
generationId?: string;
|
|
2662
|
+
} | null;
|
|
2252
2663
|
usage: {
|
|
2253
2664
|
inputTokens?: number;
|
|
2254
2665
|
outputTokens?: number;
|
|
2255
|
-
totalTokens
|
|
2666
|
+
totalTokens
|
|
2667
|
+
/**
|
|
2668
|
+
* Create an AI usage-limit policy
|
|
2669
|
+
*/
|
|
2670
|
+
? /**
|
|
2671
|
+
* Create an AI usage-limit policy
|
|
2672
|
+
*/: number;
|
|
2256
2673
|
uncachedInputTokens?: number;
|
|
2257
2674
|
cacheReadInputTokens?: number;
|
|
2258
2675
|
cacheWriteInputTokens?: number;
|
|
@@ -2265,18 +2682,39 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2265
2682
|
};
|
|
2266
2683
|
attribution?: {
|
|
2267
2684
|
kind: "agent";
|
|
2268
|
-
agentId: string;
|
|
2269
2685
|
agentRunId: string;
|
|
2270
2686
|
threadId: string;
|
|
2271
2687
|
} | {
|
|
2272
2688
|
kind: "workflowAgent";
|
|
2273
|
-
|
|
2689
|
+
agentStepId: string;
|
|
2274
2690
|
nodeRunId: string;
|
|
2275
2691
|
workflowId: string;
|
|
2276
2692
|
workflowRunId: string;
|
|
2693
|
+
} | {
|
|
2694
|
+
kind: "subagent";
|
|
2695
|
+
subagentRunId: string;
|
|
2696
|
+
parentRunId: string;
|
|
2277
2697
|
};
|
|
2278
2698
|
cost?: {
|
|
2279
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
|
+
};
|
|
2280
2718
|
billingIdentity: {
|
|
2281
2719
|
providerId: string;
|
|
2282
2720
|
modelId: string;
|
|
@@ -2287,6 +2725,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2287
2725
|
region?: string;
|
|
2288
2726
|
inferenceGeo?: string;
|
|
2289
2727
|
routedProviderId?: string;
|
|
2728
|
+
routedModelId?: string;
|
|
2290
2729
|
deploymentId?: string;
|
|
2291
2730
|
inferenceProfileId?: string;
|
|
2292
2731
|
cacheWriteTtlSeconds?: number;
|
|
@@ -2296,7 +2735,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2296
2735
|
sourceId: string;
|
|
2297
2736
|
sourceEntryId: string;
|
|
2298
2737
|
sourceVersion: string;
|
|
2299
|
-
sourceUrl
|
|
2738
|
+
sourceUrl?: string;
|
|
2300
2739
|
observedAt: string;
|
|
2301
2740
|
};
|
|
2302
2741
|
money: {
|
|
@@ -2304,7 +2743,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2304
2743
|
amountNanos: string;
|
|
2305
2744
|
};
|
|
2306
2745
|
components: Array<{
|
|
2307
|
-
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
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";
|
|
2308
2747
|
quantity: string;
|
|
2309
2748
|
rateAmountNanosPerMillion: string;
|
|
2310
2749
|
chargeAmountNanos: string;
|
|
@@ -2312,9 +2751,31 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2312
2751
|
ratedAt: string;
|
|
2313
2752
|
} | {
|
|
2314
2753
|
status: "unpriceable";
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
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
|
+
?: {
|
|
2777
|
+
providerId: string;
|
|
2778
|
+
modelId: string;
|
|
2318
2779
|
};
|
|
2319
2780
|
pricingContext: {
|
|
2320
2781
|
serviceTier?: string;
|
|
@@ -2322,20 +2783,21 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2322
2783
|
region?: string;
|
|
2323
2784
|
inferenceGeo?: string;
|
|
2324
2785
|
routedProviderId?: string;
|
|
2786
|
+
routedModelId?: string;
|
|
2325
2787
|
deploymentId?: string;
|
|
2326
2788
|
inferenceProfileId?: string;
|
|
2327
2789
|
cacheWriteTtlSeconds?: number;
|
|
2328
2790
|
mode?: string;
|
|
2329
2791
|
};
|
|
2330
|
-
priceSource
|
|
2792
|
+
priceSource?: {
|
|
2331
2793
|
sourceId: string;
|
|
2332
2794
|
sourceEntryId: string;
|
|
2333
2795
|
sourceVersion: string;
|
|
2334
|
-
sourceUrl
|
|
2796
|
+
sourceUrl?: string;
|
|
2335
2797
|
observedAt: string;
|
|
2336
2798
|
};
|
|
2337
|
-
reason: "missingBillingIdentity" | "
|
|
2338
|
-
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">;
|
|
2339
2801
|
ratedAt: string;
|
|
2340
2802
|
};
|
|
2341
2803
|
valuationStatus: "rated" | "unpriceable" | "unvalued";
|
|
@@ -2356,12 +2818,26 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2356
2818
|
callId: string;
|
|
2357
2819
|
providerId: string;
|
|
2358
2820
|
requestedModelId: string;
|
|
2821
|
+
requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
2822
|
+
budgetTokens: number;
|
|
2823
|
+
};
|
|
2359
2824
|
responseModelId?: string;
|
|
2360
2825
|
responseId: string;
|
|
2826
|
+
providerIds: {
|
|
2827
|
+
requestId?: string;
|
|
2828
|
+
responseId?: string;
|
|
2829
|
+
generationId?: string;
|
|
2830
|
+
} | null;
|
|
2361
2831
|
usage: {
|
|
2362
2832
|
inputTokens?: number;
|
|
2363
2833
|
outputTokens?: number;
|
|
2364
|
-
totalTokens
|
|
2834
|
+
totalTokens
|
|
2835
|
+
/**
|
|
2836
|
+
* Create an AI usage-limit policy
|
|
2837
|
+
*/
|
|
2838
|
+
? /**
|
|
2839
|
+
* Create an AI usage-limit policy
|
|
2840
|
+
*/: number;
|
|
2365
2841
|
uncachedInputTokens?: number;
|
|
2366
2842
|
cacheReadInputTokens?: number;
|
|
2367
2843
|
cacheWriteInputTokens?: number;
|
|
@@ -2374,18 +2850,39 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2374
2850
|
};
|
|
2375
2851
|
attribution?: {
|
|
2376
2852
|
kind: "agent";
|
|
2377
|
-
agentId: string;
|
|
2378
2853
|
agentRunId: string;
|
|
2379
2854
|
threadId: string;
|
|
2380
2855
|
} | {
|
|
2381
2856
|
kind: "workflowAgent";
|
|
2382
|
-
|
|
2857
|
+
agentStepId: string;
|
|
2383
2858
|
nodeRunId: string;
|
|
2384
2859
|
workflowId: string;
|
|
2385
2860
|
workflowRunId: string;
|
|
2861
|
+
} | {
|
|
2862
|
+
kind: "subagent";
|
|
2863
|
+
subagentRunId: string;
|
|
2864
|
+
parentRunId: string;
|
|
2386
2865
|
};
|
|
2387
2866
|
cost?: {
|
|
2388
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
|
+
};
|
|
2389
2886
|
billingIdentity: {
|
|
2390
2887
|
providerId: string;
|
|
2391
2888
|
modelId: string;
|
|
@@ -2396,6 +2893,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2396
2893
|
region?: string;
|
|
2397
2894
|
inferenceGeo?: string;
|
|
2398
2895
|
routedProviderId?: string;
|
|
2896
|
+
routedModelId?: string;
|
|
2399
2897
|
deploymentId?: string;
|
|
2400
2898
|
inferenceProfileId?: string;
|
|
2401
2899
|
cacheWriteTtlSeconds?: number;
|
|
@@ -2405,7 +2903,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2405
2903
|
sourceId: string;
|
|
2406
2904
|
sourceEntryId: string;
|
|
2407
2905
|
sourceVersion: string;
|
|
2408
|
-
sourceUrl
|
|
2906
|
+
sourceUrl?: string;
|
|
2409
2907
|
observedAt: string;
|
|
2410
2908
|
};
|
|
2411
2909
|
money: {
|
|
@@ -2413,7 +2911,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2413
2911
|
amountNanos: string;
|
|
2414
2912
|
};
|
|
2415
2913
|
components: Array<{
|
|
2416
|
-
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
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";
|
|
2417
2915
|
quantity: string;
|
|
2418
2916
|
rateAmountNanosPerMillion: string;
|
|
2419
2917
|
chargeAmountNanos: string;
|
|
@@ -2421,7 +2919,29 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2421
2919
|
ratedAt: string;
|
|
2422
2920
|
} | {
|
|
2423
2921
|
status: "unpriceable";
|
|
2424
|
-
|
|
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
|
+
?: {
|
|
2425
2945
|
providerId: string;
|
|
2426
2946
|
modelId: string;
|
|
2427
2947
|
};
|
|
@@ -2431,20 +2951,21 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2431
2951
|
region?: string;
|
|
2432
2952
|
inferenceGeo?: string;
|
|
2433
2953
|
routedProviderId?: string;
|
|
2954
|
+
routedModelId?: string;
|
|
2434
2955
|
deploymentId?: string;
|
|
2435
2956
|
inferenceProfileId?: string;
|
|
2436
2957
|
cacheWriteTtlSeconds?: number;
|
|
2437
2958
|
mode?: string;
|
|
2438
2959
|
};
|
|
2439
|
-
priceSource
|
|
2960
|
+
priceSource?: {
|
|
2440
2961
|
sourceId: string;
|
|
2441
2962
|
sourceEntryId: string;
|
|
2442
2963
|
sourceVersion: string;
|
|
2443
|
-
sourceUrl
|
|
2964
|
+
sourceUrl?: string;
|
|
2444
2965
|
observedAt: string;
|
|
2445
2966
|
};
|
|
2446
|
-
reason: "missingBillingIdentity" | "
|
|
2447
|
-
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">;
|
|
2448
2969
|
ratedAt: string;
|
|
2449
2970
|
};
|
|
2450
2971
|
valuationStatus: "rated" | "unpriceable" | "unvalued";
|
|
@@ -2464,12 +2985,26 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2464
2985
|
callId: string;
|
|
2465
2986
|
providerId: string;
|
|
2466
2987
|
requestedModelId: string;
|
|
2988
|
+
requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
2989
|
+
budgetTokens: number;
|
|
2990
|
+
};
|
|
2467
2991
|
responseModelId?: string;
|
|
2468
2992
|
responseId: string;
|
|
2993
|
+
providerIds: {
|
|
2994
|
+
requestId?: string;
|
|
2995
|
+
responseId?: string;
|
|
2996
|
+
generationId?: string;
|
|
2997
|
+
} | null;
|
|
2469
2998
|
usage: {
|
|
2470
2999
|
inputTokens?: number;
|
|
2471
3000
|
outputTokens?: number;
|
|
2472
|
-
totalTokens
|
|
3001
|
+
totalTokens
|
|
3002
|
+
/**
|
|
3003
|
+
* Create an AI usage-limit policy
|
|
3004
|
+
*/
|
|
3005
|
+
? /**
|
|
3006
|
+
* Create an AI usage-limit policy
|
|
3007
|
+
*/: number;
|
|
2473
3008
|
uncachedInputTokens?: number;
|
|
2474
3009
|
cacheReadInputTokens?: number;
|
|
2475
3010
|
cacheWriteInputTokens?: number;
|
|
@@ -2482,18 +3017,39 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2482
3017
|
};
|
|
2483
3018
|
attribution?: {
|
|
2484
3019
|
kind: "agent";
|
|
2485
|
-
agentId: string;
|
|
2486
3020
|
agentRunId: string;
|
|
2487
3021
|
threadId: string;
|
|
2488
3022
|
} | {
|
|
2489
3023
|
kind: "workflowAgent";
|
|
2490
|
-
|
|
3024
|
+
agentStepId: string;
|
|
2491
3025
|
nodeRunId: string;
|
|
2492
3026
|
workflowId: string;
|
|
2493
3027
|
workflowRunId: string;
|
|
3028
|
+
} | {
|
|
3029
|
+
kind: "subagent";
|
|
3030
|
+
subagentRunId: string;
|
|
3031
|
+
parentRunId: string;
|
|
2494
3032
|
};
|
|
2495
3033
|
cost?: {
|
|
2496
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
|
+
};
|
|
2497
3053
|
billingIdentity: {
|
|
2498
3054
|
providerId: string;
|
|
2499
3055
|
modelId: string;
|
|
@@ -2504,6 +3060,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2504
3060
|
region?: string;
|
|
2505
3061
|
inferenceGeo?: string;
|
|
2506
3062
|
routedProviderId?: string;
|
|
3063
|
+
routedModelId?: string;
|
|
2507
3064
|
deploymentId?: string;
|
|
2508
3065
|
inferenceProfileId?: string;
|
|
2509
3066
|
cacheWriteTtlSeconds?: number;
|
|
@@ -2513,7 +3070,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2513
3070
|
sourceId: string;
|
|
2514
3071
|
sourceEntryId: string;
|
|
2515
3072
|
sourceVersion: string;
|
|
2516
|
-
sourceUrl
|
|
3073
|
+
sourceUrl?: string;
|
|
2517
3074
|
observedAt: string;
|
|
2518
3075
|
};
|
|
2519
3076
|
money: {
|
|
@@ -2521,7 +3078,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2521
3078
|
amountNanos: string;
|
|
2522
3079
|
};
|
|
2523
3080
|
components: Array<{
|
|
2524
|
-
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
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";
|
|
2525
3082
|
quantity: string;
|
|
2526
3083
|
rateAmountNanosPerMillion: string;
|
|
2527
3084
|
chargeAmountNanos: string;
|
|
@@ -2529,7 +3086,29 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2529
3086
|
ratedAt: string;
|
|
2530
3087
|
} | {
|
|
2531
3088
|
status: "unpriceable";
|
|
2532
|
-
|
|
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
|
+
?: {
|
|
2533
3112
|
providerId: string;
|
|
2534
3113
|
modelId: string;
|
|
2535
3114
|
};
|
|
@@ -2539,20 +3118,21 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2539
3118
|
region?: string;
|
|
2540
3119
|
inferenceGeo?: string;
|
|
2541
3120
|
routedProviderId?: string;
|
|
3121
|
+
routedModelId?: string;
|
|
2542
3122
|
deploymentId?: string;
|
|
2543
3123
|
inferenceProfileId?: string;
|
|
2544
3124
|
cacheWriteTtlSeconds?: number;
|
|
2545
3125
|
mode?: string;
|
|
2546
3126
|
};
|
|
2547
|
-
priceSource
|
|
3127
|
+
priceSource?: {
|
|
2548
3128
|
sourceId: string;
|
|
2549
3129
|
sourceEntryId: string;
|
|
2550
3130
|
sourceVersion: string;
|
|
2551
|
-
sourceUrl
|
|
3131
|
+
sourceUrl?: string;
|
|
2552
3132
|
observedAt: string;
|
|
2553
3133
|
};
|
|
2554
|
-
reason: "missingBillingIdentity" | "
|
|
2555
|
-
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">;
|
|
2556
3136
|
ratedAt: string;
|
|
2557
3137
|
};
|
|
2558
3138
|
valuationStatus: "rated" | "unpriceable" | "unvalued";
|
|
@@ -2575,12 +3155,26 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2575
3155
|
callId: string;
|
|
2576
3156
|
providerId: string;
|
|
2577
3157
|
requestedModelId: string;
|
|
3158
|
+
requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
3159
|
+
budgetTokens: number;
|
|
3160
|
+
};
|
|
2578
3161
|
responseModelId?: string;
|
|
2579
3162
|
responseId: string;
|
|
3163
|
+
providerIds: {
|
|
3164
|
+
requestId?: string;
|
|
3165
|
+
responseId?: string;
|
|
3166
|
+
generationId?: string;
|
|
3167
|
+
} | null;
|
|
2580
3168
|
usage: {
|
|
2581
3169
|
inputTokens?: number;
|
|
2582
3170
|
outputTokens?: number;
|
|
2583
|
-
totalTokens
|
|
3171
|
+
totalTokens
|
|
3172
|
+
/**
|
|
3173
|
+
* Create an AI usage-limit policy
|
|
3174
|
+
*/
|
|
3175
|
+
? /**
|
|
3176
|
+
* Create an AI usage-limit policy
|
|
3177
|
+
*/: number;
|
|
2584
3178
|
uncachedInputTokens?: number;
|
|
2585
3179
|
cacheReadInputTokens?: number;
|
|
2586
3180
|
cacheWriteInputTokens?: number;
|
|
@@ -2593,18 +3187,39 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2593
3187
|
};
|
|
2594
3188
|
attribution?: {
|
|
2595
3189
|
kind: "agent";
|
|
2596
|
-
agentId: string;
|
|
2597
3190
|
agentRunId: string;
|
|
2598
3191
|
threadId: string;
|
|
2599
3192
|
} | {
|
|
2600
3193
|
kind: "workflowAgent";
|
|
2601
|
-
|
|
3194
|
+
agentStepId: string;
|
|
2602
3195
|
nodeRunId: string;
|
|
2603
3196
|
workflowId: string;
|
|
2604
3197
|
workflowRunId: string;
|
|
3198
|
+
} | {
|
|
3199
|
+
kind: "subagent";
|
|
3200
|
+
subagentRunId: string;
|
|
3201
|
+
parentRunId: string;
|
|
2605
3202
|
};
|
|
2606
3203
|
cost?: {
|
|
2607
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
|
+
};
|
|
2608
3223
|
billingIdentity: {
|
|
2609
3224
|
providerId: string;
|
|
2610
3225
|
modelId: string;
|
|
@@ -2615,6 +3230,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2615
3230
|
region?: string;
|
|
2616
3231
|
inferenceGeo?: string;
|
|
2617
3232
|
routedProviderId?: string;
|
|
3233
|
+
routedModelId?: string;
|
|
2618
3234
|
deploymentId?: string;
|
|
2619
3235
|
inferenceProfileId?: string;
|
|
2620
3236
|
cacheWriteTtlSeconds?: number;
|
|
@@ -2624,54 +3240,1423 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
|
|
|
2624
3240
|
sourceId: string;
|
|
2625
3241
|
sourceEntryId: string;
|
|
2626
3242
|
sourceVersion: string;
|
|
2627
|
-
sourceUrl
|
|
3243
|
+
sourceUrl?: string;
|
|
2628
3244
|
observedAt: string;
|
|
2629
3245
|
};
|
|
2630
3246
|
money: {
|
|
2631
3247
|
currency: string;
|
|
2632
3248
|
amountNanos: string;
|
|
2633
3249
|
};
|
|
2634
|
-
components: Array<{
|
|
2635
|
-
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
2636
|
-
quantity: string;
|
|
2637
|
-
rateAmountNanosPerMillion: string;
|
|
2638
|
-
chargeAmountNanos: string;
|
|
2639
|
-
}>;
|
|
2640
|
-
ratedAt: string;
|
|
2641
|
-
} | {
|
|
2642
|
-
status: "unpriceable";
|
|
2643
|
-
|
|
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<{
|
|
2644
4649
|
providerId: string;
|
|
2645
4650
|
modelId: string;
|
|
2646
|
-
}
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
region?: string;
|
|
2651
|
-
inferenceGeo?: string;
|
|
2652
|
-
routedProviderId?: string;
|
|
2653
|
-
deploymentId?: string;
|
|
2654
|
-
inferenceProfileId?: string;
|
|
2655
|
-
cacheWriteTtlSeconds?: number;
|
|
2656
|
-
mode?: string;
|
|
2657
|
-
};
|
|
2658
|
-
priceSource: {
|
|
2659
|
-
sourceId: string;
|
|
2660
|
-
sourceEntryId: string;
|
|
2661
|
-
sourceVersion: string;
|
|
2662
|
-
sourceUrl: string;
|
|
2663
|
-
observedAt: string;
|
|
2664
|
-
};
|
|
2665
|
-
reason: "missingBillingIdentity" | "missingCatalogEntry" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
2666
|
-
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
2667
|
-
ratedAt: string;
|
|
2668
|
-
};
|
|
2669
|
-
valuationStatus: "rated" | "unpriceable" | "unvalued";
|
|
4651
|
+
}>;
|
|
4652
|
+
label?: string;
|
|
4653
|
+
}>;
|
|
4654
|
+
canOpenThread: boolean;
|
|
2670
4655
|
}>;
|
|
2671
|
-
hasMore: boolean;
|
|
2672
4656
|
total: number;
|
|
4657
|
+
hasMore: boolean;
|
|
2673
4658
|
}, unknown>;
|
|
2674
|
-
[dataTagErrorSymbol]:
|
|
4659
|
+
[dataTagErrorSymbol]: ListAiModelCallGroupsError;
|
|
2675
4660
|
};
|
|
2676
4661
|
};
|
|
2677
4662
|
export declare const getProjectInfoQueryKey: (options?: Options<GetProjectInfoData>) => [Pick<Options<GetProjectInfoData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
@@ -6570,7 +8555,6 @@ export declare const listWorkflowsOptions: (options?: Options<ListWorkflowsData>
|
|
|
6570
8555
|
type: "agent";
|
|
6571
8556
|
id: string;
|
|
6572
8557
|
key: string;
|
|
6573
|
-
agentId: string;
|
|
6574
8558
|
input: {
|
|
6575
8559
|
[key: string]: string | number | boolean | Array<unknown> | {
|
|
6576
8560
|
[key: string]: unknown;
|
|
@@ -6591,7 +8575,7 @@ export declare const listWorkflowsOptions: (options?: Options<ListWorkflowsData>
|
|
|
6591
8575
|
startedAt: string;
|
|
6592
8576
|
finishedAt?: string;
|
|
6593
8577
|
error?: {
|
|
6594
|
-
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";
|
|
6595
8579
|
message: string;
|
|
6596
8580
|
retryable: boolean;
|
|
6597
8581
|
at: string;
|
|
@@ -6659,7 +8643,6 @@ export declare const listWorkflowsOptions: (options?: Options<ListWorkflowsData>
|
|
|
6659
8643
|
type: "agent";
|
|
6660
8644
|
id: string;
|
|
6661
8645
|
key: string;
|
|
6662
|
-
agentId: string;
|
|
6663
8646
|
input: {
|
|
6664
8647
|
[key: string]: string | number | boolean | Array<unknown> | {
|
|
6665
8648
|
[key: string]: unknown;
|
|
@@ -6680,7 +8663,7 @@ export declare const listWorkflowsOptions: (options?: Options<ListWorkflowsData>
|
|
|
6680
8663
|
startedAt: string;
|
|
6681
8664
|
finishedAt?: string;
|
|
6682
8665
|
error?: {
|
|
6683
|
-
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";
|
|
6684
8667
|
message: string;
|
|
6685
8668
|
retryable: boolean;
|
|
6686
8669
|
at: string;
|
|
@@ -6753,7 +8736,6 @@ export declare const listWorkflowsOptions: (options?: Options<ListWorkflowsData>
|
|
|
6753
8736
|
type: "agent";
|
|
6754
8737
|
id: string;
|
|
6755
8738
|
key: string;
|
|
6756
|
-
agentId: string;
|
|
6757
8739
|
input: {
|
|
6758
8740
|
[key: string]: string | number | boolean | Array<unknown> | {
|
|
6759
8741
|
[key: string]: unknown;
|
|
@@ -6774,7 +8756,7 @@ export declare const listWorkflowsOptions: (options?: Options<ListWorkflowsData>
|
|
|
6774
8756
|
startedAt: string;
|
|
6775
8757
|
finishedAt?: string;
|
|
6776
8758
|
error?: {
|
|
6777
|
-
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";
|
|
6778
8760
|
message: string;
|
|
6779
8761
|
retryable: boolean;
|
|
6780
8762
|
at: string;
|
|
@@ -6853,7 +8835,6 @@ export declare const listWorkflowsOptions: (options?: Options<ListWorkflowsData>
|
|
|
6853
8835
|
type: "agent";
|
|
6854
8836
|
id: string;
|
|
6855
8837
|
key: string;
|
|
6856
|
-
agentId: string;
|
|
6857
8838
|
input: {
|
|
6858
8839
|
[key: string]: string | number | boolean | Array<unknown> | {
|
|
6859
8840
|
[key: string]: unknown;
|
|
@@ -6874,7 +8855,7 @@ export declare const listWorkflowsOptions: (options?: Options<ListWorkflowsData>
|
|
|
6874
8855
|
startedAt: string;
|
|
6875
8856
|
finishedAt?: string;
|
|
6876
8857
|
error?: {
|
|
6877
|
-
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";
|
|
6878
8859
|
message: string;
|
|
6879
8860
|
retryable: boolean;
|
|
6880
8861
|
at: string;
|
|
@@ -6954,7 +8935,6 @@ export declare const getWorkflowOptions: (options: Options<GetWorkflowData>) =>
|
|
|
6954
8935
|
type: "agent";
|
|
6955
8936
|
id: string;
|
|
6956
8937
|
key: string;
|
|
6957
|
-
agentId: string;
|
|
6958
8938
|
input: {
|
|
6959
8939
|
[key: string]: string | number | boolean | Array<unknown> | {
|
|
6960
8940
|
[key: string]: unknown;
|
|
@@ -6975,7 +8955,7 @@ export declare const getWorkflowOptions: (options: Options<GetWorkflowData>) =>
|
|
|
6975
8955
|
startedAt: string;
|
|
6976
8956
|
finishedAt?: string;
|
|
6977
8957
|
error?: {
|
|
6978
|
-
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";
|
|
6979
8959
|
message: string;
|
|
6980
8960
|
retryable: boolean;
|
|
6981
8961
|
at: string;
|
|
@@ -7045,7 +9025,6 @@ export declare const getWorkflowOptions: (options: Options<GetWorkflowData>) =>
|
|
|
7045
9025
|
type: "agent";
|
|
7046
9026
|
id: string;
|
|
7047
9027
|
key: string;
|
|
7048
|
-
agentId: string;
|
|
7049
9028
|
input: {
|
|
7050
9029
|
[key: string]: string | number | boolean | Array<unknown> | {
|
|
7051
9030
|
[key: string]: unknown;
|
|
@@ -7066,7 +9045,7 @@ export declare const getWorkflowOptions: (options: Options<GetWorkflowData>) =>
|
|
|
7066
9045
|
startedAt: string;
|
|
7067
9046
|
finishedAt?: string;
|
|
7068
9047
|
error?: {
|
|
7069
|
-
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";
|
|
7070
9049
|
message: string;
|
|
7071
9050
|
retryable: boolean;
|
|
7072
9051
|
at: string;
|
|
@@ -7139,7 +9118,6 @@ export declare const getWorkflowOptions: (options: Options<GetWorkflowData>) =>
|
|
|
7139
9118
|
type: "agent";
|
|
7140
9119
|
id: string;
|
|
7141
9120
|
key: string;
|
|
7142
|
-
agentId: string;
|
|
7143
9121
|
input: {
|
|
7144
9122
|
[key: string]: string | number | boolean | Array<unknown> | {
|
|
7145
9123
|
[key: string]: unknown;
|
|
@@ -7160,7 +9138,7 @@ export declare const getWorkflowOptions: (options: Options<GetWorkflowData>) =>
|
|
|
7160
9138
|
startedAt: string;
|
|
7161
9139
|
finishedAt?: string;
|
|
7162
9140
|
error?: {
|
|
7163
|
-
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";
|
|
7164
9142
|
message: string;
|
|
7165
9143
|
retryable: boolean;
|
|
7166
9144
|
at: string;
|
|
@@ -7239,7 +9217,6 @@ export declare const getWorkflowOptions: (options: Options<GetWorkflowData>) =>
|
|
|
7239
9217
|
type: "agent";
|
|
7240
9218
|
id: string;
|
|
7241
9219
|
key: string;
|
|
7242
|
-
agentId: string;
|
|
7243
9220
|
input: {
|
|
7244
9221
|
[key: string]: string | number | boolean | Array<unknown> | {
|
|
7245
9222
|
[key: string]: unknown;
|
|
@@ -7260,7 +9237,7 @@ export declare const getWorkflowOptions: (options: Options<GetWorkflowData>) =>
|
|
|
7260
9237
|
startedAt: string;
|
|
7261
9238
|
finishedAt?: string;
|
|
7262
9239
|
error?: {
|
|
7263
|
-
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";
|
|
7264
9241
|
message: string;
|
|
7265
9242
|
retryable: boolean;
|
|
7266
9243
|
at: string;
|
|
@@ -7929,7 +9906,7 @@ export declare const listWorkflowRunsOptions: (options?: Options<ListWorkflowRun
|
|
|
7929
9906
|
startedAt: string;
|
|
7930
9907
|
finishedAt?: string;
|
|
7931
9908
|
error?: {
|
|
7932
|
-
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";
|
|
7933
9910
|
message: string;
|
|
7934
9911
|
retryable: boolean;
|
|
7935
9912
|
at: string;
|
|
@@ -7955,7 +9932,7 @@ export declare const listWorkflowRunsOptions: (options?: Options<ListWorkflowRun
|
|
|
7955
9932
|
startedAt: string;
|
|
7956
9933
|
finishedAt?: string;
|
|
7957
9934
|
error?: {
|
|
7958
|
-
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";
|
|
7959
9936
|
message: string;
|
|
7960
9937
|
retryable: boolean;
|
|
7961
9938
|
at: string;
|
|
@@ -7986,7 +9963,7 @@ export declare const listWorkflowRunsOptions: (options?: Options<ListWorkflowRun
|
|
|
7986
9963
|
startedAt: string;
|
|
7987
9964
|
finishedAt?: string;
|
|
7988
9965
|
error?: {
|
|
7989
|
-
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";
|
|
7990
9967
|
message: string;
|
|
7991
9968
|
retryable: boolean;
|
|
7992
9969
|
at: string;
|
|
@@ -8023,7 +10000,7 @@ export declare const listWorkflowRunsOptions: (options?: Options<ListWorkflowRun
|
|
|
8023
10000
|
startedAt: string;
|
|
8024
10001
|
finishedAt?: string;
|
|
8025
10002
|
error?: {
|
|
8026
|
-
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";
|
|
8027
10004
|
message: string;
|
|
8028
10005
|
retryable: boolean;
|
|
8029
10006
|
at: string;
|
|
@@ -8057,7 +10034,7 @@ export declare const listWorkflowRunsInfiniteOptions: (options?: Options<ListWor
|
|
|
8057
10034
|
startedAt: string;
|
|
8058
10035
|
finishedAt?: string;
|
|
8059
10036
|
error?: {
|
|
8060
|
-
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";
|
|
8061
10038
|
message: string;
|
|
8062
10039
|
retryable: boolean;
|
|
8063
10040
|
at: string;
|
|
@@ -8083,7 +10060,7 @@ export declare const listWorkflowRunsInfiniteOptions: (options?: Options<ListWor
|
|
|
8083
10060
|
startedAt: string;
|
|
8084
10061
|
finishedAt?: string;
|
|
8085
10062
|
error?: {
|
|
8086
|
-
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";
|
|
8087
10064
|
message: string;
|
|
8088
10065
|
retryable: boolean;
|
|
8089
10066
|
at: string;
|
|
@@ -8114,7 +10091,7 @@ export declare const listWorkflowRunsInfiniteOptions: (options?: Options<ListWor
|
|
|
8114
10091
|
startedAt: string;
|
|
8115
10092
|
finishedAt?: string;
|
|
8116
10093
|
error?: {
|
|
8117
|
-
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";
|
|
8118
10095
|
message: string;
|
|
8119
10096
|
retryable: boolean;
|
|
8120
10097
|
at: string;
|
|
@@ -8144,7 +10121,7 @@ export declare const listWorkflowRunsInfiniteOptions: (options?: Options<ListWor
|
|
|
8144
10121
|
startedAt: string;
|
|
8145
10122
|
finishedAt?: string;
|
|
8146
10123
|
error?: {
|
|
8147
|
-
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";
|
|
8148
10125
|
message: string;
|
|
8149
10126
|
retryable: boolean;
|
|
8150
10127
|
at: string;
|
|
@@ -8177,7 +10154,7 @@ export declare const listWorkflowRunsInfiniteOptions: (options?: Options<ListWor
|
|
|
8177
10154
|
startedAt: string;
|
|
8178
10155
|
finishedAt?: string;
|
|
8179
10156
|
error?: {
|
|
8180
|
-
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";
|
|
8181
10158
|
message: string;
|
|
8182
10159
|
retryable: boolean;
|
|
8183
10160
|
at: string;
|
|
@@ -8215,7 +10192,7 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
|
|
|
8215
10192
|
startedAt: string;
|
|
8216
10193
|
finishedAt?: string;
|
|
8217
10194
|
error?: {
|
|
8218
|
-
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";
|
|
8219
10196
|
message: string;
|
|
8220
10197
|
retryable: boolean;
|
|
8221
10198
|
at: string;
|
|
@@ -8262,7 +10239,7 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
|
|
|
8262
10239
|
} | null;
|
|
8263
10240
|
};
|
|
8264
10241
|
error?: {
|
|
8265
|
-
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";
|
|
8266
10243
|
message: string;
|
|
8267
10244
|
retryable: boolean;
|
|
8268
10245
|
at: string;
|
|
@@ -8272,7 +10249,6 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
|
|
|
8272
10249
|
truncated?: true;
|
|
8273
10250
|
};
|
|
8274
10251
|
agentExecution?: {
|
|
8275
|
-
agentId: string;
|
|
8276
10252
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
8277
10253
|
attempt: number;
|
|
8278
10254
|
modelId?: string;
|
|
@@ -8311,7 +10287,7 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
|
|
|
8311
10287
|
startedAt: string;
|
|
8312
10288
|
finishedAt?: string;
|
|
8313
10289
|
error?: {
|
|
8314
|
-
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";
|
|
8315
10291
|
message: string;
|
|
8316
10292
|
retryable: boolean;
|
|
8317
10293
|
at: string;
|
|
@@ -8358,7 +10334,7 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
|
|
|
8358
10334
|
} | null;
|
|
8359
10335
|
};
|
|
8360
10336
|
error?: {
|
|
8361
|
-
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";
|
|
8362
10338
|
message: string;
|
|
8363
10339
|
retryable: boolean;
|
|
8364
10340
|
at: string;
|
|
@@ -8368,7 +10344,6 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
|
|
|
8368
10344
|
truncated?: true;
|
|
8369
10345
|
};
|
|
8370
10346
|
agentExecution?: {
|
|
8371
|
-
agentId: string;
|
|
8372
10347
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
8373
10348
|
attempt: number;
|
|
8374
10349
|
modelId?: string;
|
|
@@ -8412,7 +10387,7 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
|
|
|
8412
10387
|
startedAt: string;
|
|
8413
10388
|
finishedAt?: string;
|
|
8414
10389
|
error?: {
|
|
8415
|
-
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";
|
|
8416
10391
|
message: string;
|
|
8417
10392
|
retryable: boolean;
|
|
8418
10393
|
at: string;
|
|
@@ -8459,7 +10434,7 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
|
|
|
8459
10434
|
} | null;
|
|
8460
10435
|
};
|
|
8461
10436
|
error?: {
|
|
8462
|
-
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";
|
|
8463
10438
|
message: string;
|
|
8464
10439
|
retryable: boolean;
|
|
8465
10440
|
at: string;
|
|
@@ -8469,7 +10444,6 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
|
|
|
8469
10444
|
truncated?: true;
|
|
8470
10445
|
};
|
|
8471
10446
|
agentExecution?: {
|
|
8472
|
-
agentId: string;
|
|
8473
10447
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
8474
10448
|
attempt: number;
|
|
8475
10449
|
modelId?: string;
|
|
@@ -8519,7 +10493,7 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
|
|
|
8519
10493
|
startedAt: string;
|
|
8520
10494
|
finishedAt?: string;
|
|
8521
10495
|
error?: {
|
|
8522
|
-
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";
|
|
8523
10497
|
message: string;
|
|
8524
10498
|
retryable: boolean;
|
|
8525
10499
|
at: string;
|
|
@@ -8566,7 +10540,7 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
|
|
|
8566
10540
|
} | null;
|
|
8567
10541
|
};
|
|
8568
10542
|
error?: {
|
|
8569
|
-
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";
|
|
8570
10544
|
message: string;
|
|
8571
10545
|
retryable: boolean;
|
|
8572
10546
|
at: string;
|
|
@@ -8576,7 +10550,6 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
|
|
|
8576
10550
|
truncated?: true;
|
|
8577
10551
|
};
|
|
8578
10552
|
agentExecution?: {
|
|
8579
|
-
agentId: string;
|
|
8580
10553
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
8581
10554
|
attempt: number;
|
|
8582
10555
|
modelId?: string;
|
|
@@ -8618,7 +10591,6 @@ export declare const getWorkflowAgentNodeExecutionQueryKey: (options: Options<Ge
|
|
|
8618
10591
|
* Get workflow agent node execution detail
|
|
8619
10592
|
*/
|
|
8620
10593
|
export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<GetWorkflowAgentNodeExecutionData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
8621
|
-
agentId: string;
|
|
8622
10594
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
8623
10595
|
attempt: number;
|
|
8624
10596
|
modelId?: string;
|
|
@@ -8674,6 +10646,12 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
|
|
|
8674
10646
|
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
8675
10647
|
[key: string]: unknown;
|
|
8676
10648
|
} | null;
|
|
10649
|
+
} | {
|
|
10650
|
+
type: "provider-state";
|
|
10651
|
+
providerId: string;
|
|
10652
|
+
data: string | number | boolean | Array<unknown> | {
|
|
10653
|
+
[key: string]: unknown;
|
|
10654
|
+
} | null;
|
|
8677
10655
|
} | {
|
|
8678
10656
|
context: {
|
|
8679
10657
|
kind: "object";
|
|
@@ -8728,7 +10706,7 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
|
|
|
8728
10706
|
} | null>;
|
|
8729
10707
|
failurePhase?: "agent-loop" | "structured-finalizer";
|
|
8730
10708
|
error?: {
|
|
8731
|
-
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";
|
|
8732
10710
|
message: string;
|
|
8733
10711
|
retryable: boolean;
|
|
8734
10712
|
at: string;
|
|
@@ -8739,7 +10717,6 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
|
|
|
8739
10717
|
};
|
|
8740
10718
|
createdAt: string;
|
|
8741
10719
|
}, GetWorkflowAgentNodeExecutionError, {
|
|
8742
|
-
agentId: string;
|
|
8743
10720
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
8744
10721
|
attempt: number;
|
|
8745
10722
|
modelId?: string;
|
|
@@ -8795,6 +10772,12 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
|
|
|
8795
10772
|
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
8796
10773
|
[key: string]: unknown;
|
|
8797
10774
|
} | null;
|
|
10775
|
+
} | {
|
|
10776
|
+
type: "provider-state";
|
|
10777
|
+
providerId: string;
|
|
10778
|
+
data: string | number | boolean | Array<unknown> | {
|
|
10779
|
+
[key: string]: unknown;
|
|
10780
|
+
} | null;
|
|
8798
10781
|
} | {
|
|
8799
10782
|
context: {
|
|
8800
10783
|
kind: "object";
|
|
@@ -8849,7 +10832,7 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
|
|
|
8849
10832
|
} | null>;
|
|
8850
10833
|
failurePhase?: "agent-loop" | "structured-finalizer";
|
|
8851
10834
|
error?: {
|
|
8852
|
-
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";
|
|
8853
10836
|
message: string;
|
|
8854
10837
|
retryable: boolean;
|
|
8855
10838
|
at: string;
|
|
@@ -8865,7 +10848,6 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
|
|
|
8865
10848
|
tags?: ReadonlyArray<string>;
|
|
8866
10849
|
}]>, "queryFn"> & {
|
|
8867
10850
|
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
8868
|
-
agentId: string;
|
|
8869
10851
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
8870
10852
|
attempt: number;
|
|
8871
10853
|
modelId?: string;
|
|
@@ -8921,6 +10903,12 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
|
|
|
8921
10903
|
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
8922
10904
|
[key: string]: unknown;
|
|
8923
10905
|
} | null;
|
|
10906
|
+
} | {
|
|
10907
|
+
type: "provider-state";
|
|
10908
|
+
providerId: string;
|
|
10909
|
+
data: string | number | boolean | Array<unknown> | {
|
|
10910
|
+
[key: string]: unknown;
|
|
10911
|
+
} | null;
|
|
8924
10912
|
} | {
|
|
8925
10913
|
context: {
|
|
8926
10914
|
kind: "object";
|
|
@@ -8975,7 +10963,7 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
|
|
|
8975
10963
|
} | null>;
|
|
8976
10964
|
failurePhase?: "agent-loop" | "structured-finalizer";
|
|
8977
10965
|
error?: {
|
|
8978
|
-
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";
|
|
8979
10967
|
message: string;
|
|
8980
10968
|
retryable: boolean;
|
|
8981
10969
|
at: string;
|
|
@@ -8997,7 +10985,6 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
|
|
|
8997
10985
|
tags?: ReadonlyArray<string>;
|
|
8998
10986
|
}] & {
|
|
8999
10987
|
[dataTagSymbol]: {
|
|
9000
|
-
agentId: string;
|
|
9001
10988
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
9002
10989
|
attempt: number;
|
|
9003
10990
|
modelId?: string;
|
|
@@ -9053,6 +11040,12 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
|
|
|
9053
11040
|
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
9054
11041
|
[key: string]: unknown;
|
|
9055
11042
|
} | null;
|
|
11043
|
+
} | {
|
|
11044
|
+
type: "provider-state";
|
|
11045
|
+
providerId: string;
|
|
11046
|
+
data: string | number | boolean | Array<unknown> | {
|
|
11047
|
+
[key: string]: unknown;
|
|
11048
|
+
} | null;
|
|
9056
11049
|
} | {
|
|
9057
11050
|
context: {
|
|
9058
11051
|
kind: "object";
|
|
@@ -9107,7 +11100,7 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
|
|
|
9107
11100
|
} | null>;
|
|
9108
11101
|
failurePhase?: "agent-loop" | "structured-finalizer";
|
|
9109
11102
|
error?: {
|
|
9110
|
-
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";
|
|
9111
11104
|
message: string;
|
|
9112
11105
|
retryable: boolean;
|
|
9113
11106
|
at: string;
|
|
@@ -12082,145 +14075,27 @@ export declare const getActionRunFileContentOptions: (options: Options<GetAction
|
|
|
12082
14075
|
[dataTagErrorSymbol]: unknown;
|
|
12083
14076
|
};
|
|
12084
14077
|
};
|
|
12085
|
-
export declare const
|
|
12086
|
-
_id: string;
|
|
12087
|
-
_infinite?: boolean;
|
|
12088
|
-
tags?: ReadonlyArray<string>;
|
|
12089
|
-
}];
|
|
12090
|
-
/**
|
|
12091
|
-
* List registered agents
|
|
12092
|
-
*/
|
|
12093
|
-
export declare const listAgentsOptions: (options?: Options<ListAgentsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
12094
|
-
id: string;
|
|
12095
|
-
name: string;
|
|
12096
|
-
description?: string;
|
|
12097
|
-
modelId?: string;
|
|
12098
|
-
reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
|
|
12099
|
-
groupIds: Array<string>;
|
|
12100
|
-
loop?: {
|
|
12101
|
-
stopWhen?: {
|
|
12102
|
-
maxSteps?: number;
|
|
12103
|
-
};
|
|
12104
|
-
context?: {
|
|
12105
|
-
windowTokens?: number;
|
|
12106
|
-
reserveTokens?: number;
|
|
12107
|
-
keepRecentTokens?: number;
|
|
12108
|
-
};
|
|
12109
|
-
};
|
|
12110
|
-
}[], Error, {
|
|
12111
|
-
id: string;
|
|
12112
|
-
name: string;
|
|
12113
|
-
description?: string;
|
|
12114
|
-
modelId?: string;
|
|
12115
|
-
reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
|
|
12116
|
-
groupIds: Array<string>;
|
|
12117
|
-
loop?: {
|
|
12118
|
-
stopWhen?: {
|
|
12119
|
-
maxSteps?: number;
|
|
12120
|
-
};
|
|
12121
|
-
context?: {
|
|
12122
|
-
windowTokens?: number;
|
|
12123
|
-
reserveTokens?: number;
|
|
12124
|
-
keepRecentTokens?: number;
|
|
12125
|
-
};
|
|
12126
|
-
};
|
|
12127
|
-
}[], [Pick<Options<ListAgentsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
12128
|
-
_id: string;
|
|
12129
|
-
_infinite?: boolean;
|
|
12130
|
-
tags?: ReadonlyArray<string>;
|
|
12131
|
-
}]>, "queryFn"> & {
|
|
12132
|
-
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
12133
|
-
id: string;
|
|
12134
|
-
name: string;
|
|
12135
|
-
description?: string;
|
|
12136
|
-
modelId?: string;
|
|
12137
|
-
reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
|
|
12138
|
-
groupIds: Array<string>;
|
|
12139
|
-
loop?: {
|
|
12140
|
-
stopWhen?: {
|
|
12141
|
-
maxSteps?: number;
|
|
12142
|
-
};
|
|
12143
|
-
context?: {
|
|
12144
|
-
windowTokens?: number;
|
|
12145
|
-
reserveTokens?: number;
|
|
12146
|
-
keepRecentTokens?: number;
|
|
12147
|
-
};
|
|
12148
|
-
};
|
|
12149
|
-
}[], [Pick<Options<ListAgentsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
12150
|
-
_id: string;
|
|
12151
|
-
_infinite?: boolean;
|
|
12152
|
-
tags?: ReadonlyArray<string>;
|
|
12153
|
-
}], never> | undefined;
|
|
12154
|
-
} & {
|
|
12155
|
-
queryKey: [Pick<Options<ListAgentsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
12156
|
-
_id: string;
|
|
12157
|
-
_infinite?: boolean;
|
|
12158
|
-
tags?: ReadonlyArray<string>;
|
|
12159
|
-
}] & {
|
|
12160
|
-
[dataTagSymbol]: {
|
|
12161
|
-
id: string;
|
|
12162
|
-
name: string;
|
|
12163
|
-
description?: string;
|
|
12164
|
-
modelId?: string;
|
|
12165
|
-
reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
|
|
12166
|
-
groupIds: Array<string>;
|
|
12167
|
-
loop?: {
|
|
12168
|
-
stopWhen?: {
|
|
12169
|
-
maxSteps?: number;
|
|
12170
|
-
};
|
|
12171
|
-
context?: {
|
|
12172
|
-
windowTokens?: number;
|
|
12173
|
-
reserveTokens?: number;
|
|
12174
|
-
keepRecentTokens?: number;
|
|
12175
|
-
};
|
|
12176
|
-
};
|
|
12177
|
-
}[];
|
|
12178
|
-
[dataTagErrorSymbol]: Error;
|
|
12179
|
-
};
|
|
12180
|
-
};
|
|
12181
|
-
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"> & {
|
|
12182
14079
|
_id: string;
|
|
12183
14080
|
_infinite?: boolean;
|
|
12184
14081
|
tags?: ReadonlyArray<string>;
|
|
12185
14082
|
}];
|
|
12186
14083
|
/**
|
|
12187
|
-
* Get
|
|
14084
|
+
* Get the project Agent
|
|
12188
14085
|
*/
|
|
12189
|
-
export declare const getAgentOptions: (options
|
|
12190
|
-
id: string;
|
|
14086
|
+
export declare const getAgentOptions: (options?: Options<GetAgentData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
12191
14087
|
name: string;
|
|
12192
|
-
|
|
12193
|
-
|
|
12194
|
-
|
|
12195
|
-
groupIds: Array<string>;
|
|
12196
|
-
loop?: {
|
|
12197
|
-
stopWhen?: {
|
|
12198
|
-
maxSteps?: number;
|
|
12199
|
-
};
|
|
12200
|
-
context?: {
|
|
12201
|
-
windowTokens?: number;
|
|
12202
|
-
reserveTokens?: number;
|
|
12203
|
-
keepRecentTokens?: number;
|
|
12204
|
-
};
|
|
14088
|
+
model: {
|
|
14089
|
+
provider: string;
|
|
14090
|
+
modelId: string;
|
|
12205
14091
|
};
|
|
12206
14092
|
}, {
|
|
12207
14093
|
error: string;
|
|
12208
14094
|
}, {
|
|
12209
|
-
id: string;
|
|
12210
14095
|
name: string;
|
|
12211
|
-
|
|
12212
|
-
|
|
12213
|
-
|
|
12214
|
-
groupIds: Array<string>;
|
|
12215
|
-
loop?: {
|
|
12216
|
-
stopWhen?: {
|
|
12217
|
-
maxSteps?: number;
|
|
12218
|
-
};
|
|
12219
|
-
context?: {
|
|
12220
|
-
windowTokens?: number;
|
|
12221
|
-
reserveTokens?: number;
|
|
12222
|
-
keepRecentTokens?: number;
|
|
12223
|
-
};
|
|
14096
|
+
model: {
|
|
14097
|
+
provider: string;
|
|
14098
|
+
modelId: string;
|
|
12224
14099
|
};
|
|
12225
14100
|
}, [Pick<Options<GetAgentData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
12226
14101
|
_id: string;
|
|
@@ -12228,21 +14103,10 @@ export declare const getAgentOptions: (options: Options<GetAgentData>) => import
|
|
|
12228
14103
|
tags?: ReadonlyArray<string>;
|
|
12229
14104
|
}]>, "queryFn"> & {
|
|
12230
14105
|
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
12231
|
-
id: string;
|
|
12232
14106
|
name: string;
|
|
12233
|
-
|
|
12234
|
-
|
|
12235
|
-
|
|
12236
|
-
groupIds: Array<string>;
|
|
12237
|
-
loop?: {
|
|
12238
|
-
stopWhen?: {
|
|
12239
|
-
maxSteps?: number;
|
|
12240
|
-
};
|
|
12241
|
-
context?: {
|
|
12242
|
-
windowTokens?: number;
|
|
12243
|
-
reserveTokens?: number;
|
|
12244
|
-
keepRecentTokens?: number;
|
|
12245
|
-
};
|
|
14107
|
+
model: {
|
|
14108
|
+
provider: string;
|
|
14109
|
+
modelId: string;
|
|
12246
14110
|
};
|
|
12247
14111
|
}, [Pick<Options<GetAgentData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
12248
14112
|
_id: string;
|
|
@@ -12256,21 +14120,10 @@ export declare const getAgentOptions: (options: Options<GetAgentData>) => import
|
|
|
12256
14120
|
tags?: ReadonlyArray<string>;
|
|
12257
14121
|
}] & {
|
|
12258
14122
|
[dataTagSymbol]: {
|
|
12259
|
-
id: string;
|
|
12260
14123
|
name: string;
|
|
12261
|
-
|
|
12262
|
-
|
|
12263
|
-
|
|
12264
|
-
groupIds: Array<string>;
|
|
12265
|
-
loop?: {
|
|
12266
|
-
stopWhen?: {
|
|
12267
|
-
maxSteps?: number;
|
|
12268
|
-
};
|
|
12269
|
-
context?: {
|
|
12270
|
-
windowTokens?: number;
|
|
12271
|
-
reserveTokens?: number;
|
|
12272
|
-
keepRecentTokens?: number;
|
|
12273
|
-
};
|
|
14124
|
+
model: {
|
|
14125
|
+
provider: string;
|
|
14126
|
+
modelId: string;
|
|
12274
14127
|
};
|
|
12275
14128
|
};
|
|
12276
14129
|
[dataTagErrorSymbol]: {
|
|
@@ -12290,7 +14143,6 @@ export declare const listAgentThreadsOptions: (options?: Options<ListAgentThread
|
|
|
12290
14143
|
threads: Array<{
|
|
12291
14144
|
id: string;
|
|
12292
14145
|
projectId: string;
|
|
12293
|
-
agentId: string;
|
|
12294
14146
|
ownerPrincipal: {
|
|
12295
14147
|
type: "user" | "serviceAccount" | "system";
|
|
12296
14148
|
id: string;
|
|
@@ -12309,7 +14161,6 @@ export declare const listAgentThreadsOptions: (options?: Options<ListAgentThread
|
|
|
12309
14161
|
threads: Array<{
|
|
12310
14162
|
id: string;
|
|
12311
14163
|
projectId: string;
|
|
12312
|
-
agentId: string;
|
|
12313
14164
|
ownerPrincipal: {
|
|
12314
14165
|
type: "user" | "serviceAccount" | "system";
|
|
12315
14166
|
id: string;
|
|
@@ -12333,7 +14184,6 @@ export declare const listAgentThreadsOptions: (options?: Options<ListAgentThread
|
|
|
12333
14184
|
threads: Array<{
|
|
12334
14185
|
id: string;
|
|
12335
14186
|
projectId: string;
|
|
12336
|
-
agentId: string;
|
|
12337
14187
|
ownerPrincipal: {
|
|
12338
14188
|
type: "user" | "serviceAccount" | "system";
|
|
12339
14189
|
id: string;
|
|
@@ -12363,7 +14213,6 @@ export declare const listAgentThreadsOptions: (options?: Options<ListAgentThread
|
|
|
12363
14213
|
threads: Array<{
|
|
12364
14214
|
id: string;
|
|
12365
14215
|
projectId: string;
|
|
12366
|
-
agentId: string;
|
|
12367
14216
|
ownerPrincipal: {
|
|
12368
14217
|
type: "user" | "serviceAccount" | "system";
|
|
12369
14218
|
id: string;
|
|
@@ -12390,7 +14239,6 @@ export declare const listAgentThreadsInfiniteOptions: (options?: Options<ListAge
|
|
|
12390
14239
|
threads: Array<{
|
|
12391
14240
|
id: string;
|
|
12392
14241
|
projectId: string;
|
|
12393
|
-
agentId: string;
|
|
12394
14242
|
ownerPrincipal: {
|
|
12395
14243
|
type: "user" | "serviceAccount" | "system";
|
|
12396
14244
|
id: string;
|
|
@@ -12409,7 +14257,6 @@ export declare const listAgentThreadsInfiniteOptions: (options?: Options<ListAge
|
|
|
12409
14257
|
threads: Array<{
|
|
12410
14258
|
id: string;
|
|
12411
14259
|
projectId: string;
|
|
12412
|
-
agentId: string;
|
|
12413
14260
|
ownerPrincipal: {
|
|
12414
14261
|
type: "user" | "serviceAccount" | "system";
|
|
12415
14262
|
id: string;
|
|
@@ -12433,7 +14280,6 @@ export declare const listAgentThreadsInfiniteOptions: (options?: Options<ListAge
|
|
|
12433
14280
|
threads: Array<{
|
|
12434
14281
|
id: string;
|
|
12435
14282
|
projectId: string;
|
|
12436
|
-
agentId: string;
|
|
12437
14283
|
ownerPrincipal: {
|
|
12438
14284
|
type: "user" | "serviceAccount" | "system";
|
|
12439
14285
|
id: string;
|
|
@@ -12456,7 +14302,6 @@ export declare const listAgentThreadsInfiniteOptions: (options?: Options<ListAge
|
|
|
12456
14302
|
threads: Array<{
|
|
12457
14303
|
id: string;
|
|
12458
14304
|
projectId: string;
|
|
12459
|
-
agentId: string;
|
|
12460
14305
|
ownerPrincipal: {
|
|
12461
14306
|
type: "user" | "serviceAccount" | "system";
|
|
12462
14307
|
id: string;
|
|
@@ -12482,7 +14327,6 @@ export declare const listAgentThreadsInfiniteOptions: (options?: Options<ListAge
|
|
|
12482
14327
|
threads: Array<{
|
|
12483
14328
|
id: string;
|
|
12484
14329
|
projectId: string;
|
|
12485
|
-
agentId: string;
|
|
12486
14330
|
ownerPrincipal: {
|
|
12487
14331
|
type: "user" | "serviceAccount" | "system";
|
|
12488
14332
|
id: string;
|
|
@@ -12516,7 +14360,6 @@ export declare const getAgentThreadQueryKey: (options: Options<GetAgentThreadDat
|
|
|
12516
14360
|
export declare const getAgentThreadOptions: (options: Options<GetAgentThreadData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
12517
14361
|
id: string;
|
|
12518
14362
|
projectId: string;
|
|
12519
|
-
agentId: string;
|
|
12520
14363
|
ownerPrincipal: {
|
|
12521
14364
|
type: "user" | "serviceAccount" | "system";
|
|
12522
14365
|
id: string;
|
|
@@ -12531,7 +14374,6 @@ export declare const getAgentThreadOptions: (options: Options<GetAgentThreadData
|
|
|
12531
14374
|
}, GetAgentThreadError, {
|
|
12532
14375
|
id: string;
|
|
12533
14376
|
projectId: string;
|
|
12534
|
-
agentId: string;
|
|
12535
14377
|
ownerPrincipal: {
|
|
12536
14378
|
type: "user" | "serviceAccount" | "system";
|
|
12537
14379
|
id: string;
|
|
@@ -12551,7 +14393,6 @@ export declare const getAgentThreadOptions: (options: Options<GetAgentThreadData
|
|
|
12551
14393
|
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
12552
14394
|
id: string;
|
|
12553
14395
|
projectId: string;
|
|
12554
|
-
agentId: string;
|
|
12555
14396
|
ownerPrincipal: {
|
|
12556
14397
|
type: "user" | "serviceAccount" | "system";
|
|
12557
14398
|
id: string;
|
|
@@ -12577,7 +14418,6 @@ export declare const getAgentThreadOptions: (options: Options<GetAgentThreadData
|
|
|
12577
14418
|
[dataTagSymbol]: {
|
|
12578
14419
|
id: string;
|
|
12579
14420
|
projectId: string;
|
|
12580
|
-
agentId: string;
|
|
12581
14421
|
ownerPrincipal: {
|
|
12582
14422
|
type: "user" | "serviceAccount" | "system";
|
|
12583
14423
|
id: string;
|
|
@@ -12640,6 +14480,12 @@ export declare const listAgentThreadMessagesOptions: (options: Options<ListAgent
|
|
|
12640
14480
|
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
12641
14481
|
[key: string]: unknown;
|
|
12642
14482
|
} | null;
|
|
14483
|
+
} | {
|
|
14484
|
+
type: "provider-state";
|
|
14485
|
+
providerId: string;
|
|
14486
|
+
data: string | number | boolean | Array<unknown> | {
|
|
14487
|
+
[key: string]: unknown;
|
|
14488
|
+
} | null;
|
|
12643
14489
|
} | {
|
|
12644
14490
|
context: {
|
|
12645
14491
|
kind: "object";
|
|
@@ -12749,6 +14595,12 @@ export declare const listAgentThreadMessagesOptions: (options: Options<ListAgent
|
|
|
12749
14595
|
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
12750
14596
|
[key: string]: unknown;
|
|
12751
14597
|
} | null;
|
|
14598
|
+
} | {
|
|
14599
|
+
type: "provider-state";
|
|
14600
|
+
providerId: string;
|
|
14601
|
+
data: string | number | boolean | Array<unknown> | {
|
|
14602
|
+
[key: string]: unknown;
|
|
14603
|
+
} | null;
|
|
12752
14604
|
} | {
|
|
12753
14605
|
context: {
|
|
12754
14606
|
kind: "object";
|
|
@@ -12863,6 +14715,12 @@ export declare const listAgentThreadMessagesOptions: (options: Options<ListAgent
|
|
|
12863
14715
|
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
12864
14716
|
[key: string]: unknown;
|
|
12865
14717
|
} | null;
|
|
14718
|
+
} | {
|
|
14719
|
+
type: "provider-state";
|
|
14720
|
+
providerId: string;
|
|
14721
|
+
data: string | number | boolean | Array<unknown> | {
|
|
14722
|
+
[key: string]: unknown;
|
|
14723
|
+
} | null;
|
|
12866
14724
|
} | {
|
|
12867
14725
|
context: {
|
|
12868
14726
|
kind: "object";
|
|
@@ -12983,6 +14841,12 @@ export declare const listAgentThreadMessagesOptions: (options: Options<ListAgent
|
|
|
12983
14841
|
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
12984
14842
|
[key: string]: unknown;
|
|
12985
14843
|
} | null;
|
|
14844
|
+
} | {
|
|
14845
|
+
type: "provider-state";
|
|
14846
|
+
providerId: string;
|
|
14847
|
+
data: string | number | boolean | Array<unknown> | {
|
|
14848
|
+
[key: string]: unknown;
|
|
14849
|
+
} | null;
|
|
12986
14850
|
} | {
|
|
12987
14851
|
context: {
|
|
12988
14852
|
kind: "object";
|
|
@@ -13100,6 +14964,12 @@ export declare const listAgentThreadMessagesInfiniteOptions: (options: Options<L
|
|
|
13100
14964
|
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
13101
14965
|
[key: string]: unknown;
|
|
13102
14966
|
} | null;
|
|
14967
|
+
} | {
|
|
14968
|
+
type: "provider-state";
|
|
14969
|
+
providerId: string;
|
|
14970
|
+
data: string | number | boolean | Array<unknown> | {
|
|
14971
|
+
[key: string]: unknown;
|
|
14972
|
+
} | null;
|
|
13103
14973
|
} | {
|
|
13104
14974
|
context: {
|
|
13105
14975
|
kind: "object";
|
|
@@ -13209,6 +15079,12 @@ export declare const listAgentThreadMessagesInfiniteOptions: (options: Options<L
|
|
|
13209
15079
|
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
13210
15080
|
[key: string]: unknown;
|
|
13211
15081
|
} | null;
|
|
15082
|
+
} | {
|
|
15083
|
+
type: "provider-state";
|
|
15084
|
+
providerId: string;
|
|
15085
|
+
data: string | number | boolean | Array<unknown> | {
|
|
15086
|
+
[key: string]: unknown;
|
|
15087
|
+
} | null;
|
|
13212
15088
|
} | {
|
|
13213
15089
|
context: {
|
|
13214
15090
|
kind: "object";
|
|
@@ -13323,6 +15199,12 @@ export declare const listAgentThreadMessagesInfiniteOptions: (options: Options<L
|
|
|
13323
15199
|
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
13324
15200
|
[key: string]: unknown;
|
|
13325
15201
|
} | null;
|
|
15202
|
+
} | {
|
|
15203
|
+
type: "provider-state";
|
|
15204
|
+
providerId: string;
|
|
15205
|
+
data: string | number | boolean | Array<unknown> | {
|
|
15206
|
+
[key: string]: unknown;
|
|
15207
|
+
} | null;
|
|
13326
15208
|
} | {
|
|
13327
15209
|
context: {
|
|
13328
15210
|
kind: "object";
|
|
@@ -13436,6 +15318,12 @@ export declare const listAgentThreadMessagesInfiniteOptions: (options: Options<L
|
|
|
13436
15318
|
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
13437
15319
|
[key: string]: unknown;
|
|
13438
15320
|
} | null;
|
|
15321
|
+
} | {
|
|
15322
|
+
type: "provider-state";
|
|
15323
|
+
providerId: string;
|
|
15324
|
+
data: string | number | boolean | Array<unknown> | {
|
|
15325
|
+
[key: string]: unknown;
|
|
15326
|
+
} | null;
|
|
13439
15327
|
} | {
|
|
13440
15328
|
context: {
|
|
13441
15329
|
kind: "object";
|
|
@@ -13552,6 +15440,12 @@ export declare const listAgentThreadMessagesInfiniteOptions: (options: Options<L
|
|
|
13552
15440
|
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
13553
15441
|
[key: string]: unknown;
|
|
13554
15442
|
} | null;
|
|
15443
|
+
} | {
|
|
15444
|
+
type: "provider-state";
|
|
15445
|
+
providerId: string;
|
|
15446
|
+
data: string | number | boolean | Array<unknown> | {
|
|
15447
|
+
[key: string]: unknown;
|
|
15448
|
+
} | null;
|
|
13555
15449
|
} | {
|
|
13556
15450
|
context: {
|
|
13557
15451
|
kind: "object";
|
|
@@ -13679,13 +15573,19 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
|
|
|
13679
15573
|
id: string;
|
|
13680
15574
|
projectId: string;
|
|
13681
15575
|
threadId: string;
|
|
13682
|
-
agentId: string;
|
|
13683
15576
|
triggerMessageId: string;
|
|
13684
15577
|
requestedBy?: {
|
|
13685
15578
|
type: "user" | "serviceAccount";
|
|
13686
15579
|
id: string;
|
|
13687
15580
|
};
|
|
13688
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
|
+
};
|
|
13689
15589
|
modelId?: string;
|
|
13690
15590
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
13691
15591
|
usage?: {
|
|
@@ -13716,7 +15616,7 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
|
|
|
13716
15616
|
message: string;
|
|
13717
15617
|
}>;
|
|
13718
15618
|
error?: {
|
|
13719
|
-
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";
|
|
13720
15620
|
message: string;
|
|
13721
15621
|
retryable: boolean;
|
|
13722
15622
|
at: string;
|
|
@@ -13738,13 +15638,19 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
|
|
|
13738
15638
|
id: string;
|
|
13739
15639
|
projectId: string;
|
|
13740
15640
|
threadId: string;
|
|
13741
|
-
agentId: string;
|
|
13742
15641
|
triggerMessageId: string;
|
|
13743
15642
|
requestedBy?: {
|
|
13744
15643
|
type: "user" | "serviceAccount";
|
|
13745
15644
|
id: string;
|
|
13746
15645
|
};
|
|
13747
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
|
+
};
|
|
13748
15654
|
modelId?: string;
|
|
13749
15655
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
13750
15656
|
usage?: {
|
|
@@ -13775,7 +15681,7 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
|
|
|
13775
15681
|
message: string;
|
|
13776
15682
|
}>;
|
|
13777
15683
|
error?: {
|
|
13778
|
-
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";
|
|
13779
15685
|
message: string;
|
|
13780
15686
|
retryable: boolean;
|
|
13781
15687
|
at: string;
|
|
@@ -13802,13 +15708,19 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
|
|
|
13802
15708
|
id: string;
|
|
13803
15709
|
projectId: string;
|
|
13804
15710
|
threadId: string;
|
|
13805
|
-
agentId: string;
|
|
13806
15711
|
triggerMessageId: string;
|
|
13807
15712
|
requestedBy?: {
|
|
13808
15713
|
type: "user" | "serviceAccount";
|
|
13809
15714
|
id: string;
|
|
13810
15715
|
};
|
|
13811
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
|
+
};
|
|
13812
15724
|
modelId?: string;
|
|
13813
15725
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
13814
15726
|
usage?: {
|
|
@@ -13839,7 +15751,7 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
|
|
|
13839
15751
|
message: string;
|
|
13840
15752
|
}>;
|
|
13841
15753
|
error?: {
|
|
13842
|
-
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";
|
|
13843
15755
|
message: string;
|
|
13844
15756
|
retryable: boolean;
|
|
13845
15757
|
at: string;
|
|
@@ -13872,13 +15784,19 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
|
|
|
13872
15784
|
id: string;
|
|
13873
15785
|
projectId: string;
|
|
13874
15786
|
threadId: string;
|
|
13875
|
-
agentId: string;
|
|
13876
15787
|
triggerMessageId: string;
|
|
13877
15788
|
requestedBy?: {
|
|
13878
15789
|
type: "user" | "serviceAccount";
|
|
13879
15790
|
id: string;
|
|
13880
15791
|
};
|
|
13881
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
|
+
};
|
|
13882
15800
|
modelId?: string;
|
|
13883
15801
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
13884
15802
|
usage?: {
|
|
@@ -13909,7 +15827,7 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
|
|
|
13909
15827
|
message: string;
|
|
13910
15828
|
}>;
|
|
13911
15829
|
error?: {
|
|
13912
|
-
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";
|
|
13913
15831
|
message: string;
|
|
13914
15832
|
retryable: boolean;
|
|
13915
15833
|
at: string;
|
|
@@ -13939,13 +15857,19 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
|
|
|
13939
15857
|
id: string;
|
|
13940
15858
|
projectId: string;
|
|
13941
15859
|
threadId: string;
|
|
13942
|
-
agentId: string;
|
|
13943
15860
|
triggerMessageId: string;
|
|
13944
15861
|
requestedBy?: {
|
|
13945
15862
|
type: "user" | "serviceAccount";
|
|
13946
15863
|
id: string;
|
|
13947
15864
|
};
|
|
13948
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
|
+
};
|
|
13949
15873
|
modelId?: string;
|
|
13950
15874
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
13951
15875
|
usage?: {
|
|
@@ -13976,7 +15900,7 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
|
|
|
13976
15900
|
message: string;
|
|
13977
15901
|
}>;
|
|
13978
15902
|
error?: {
|
|
13979
|
-
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";
|
|
13980
15904
|
message: string;
|
|
13981
15905
|
retryable: boolean;
|
|
13982
15906
|
at: string;
|
|
@@ -13998,13 +15922,19 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
|
|
|
13998
15922
|
id: string;
|
|
13999
15923
|
projectId: string;
|
|
14000
15924
|
threadId: string;
|
|
14001
|
-
agentId: string;
|
|
14002
15925
|
triggerMessageId: string;
|
|
14003
15926
|
requestedBy?: {
|
|
14004
15927
|
type: "user" | "serviceAccount";
|
|
14005
15928
|
id: string;
|
|
14006
15929
|
};
|
|
14007
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
|
+
};
|
|
14008
15938
|
modelId?: string;
|
|
14009
15939
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
14010
15940
|
usage?: {
|
|
@@ -14035,7 +15965,7 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
|
|
|
14035
15965
|
message: string;
|
|
14036
15966
|
}>;
|
|
14037
15967
|
error?: {
|
|
14038
|
-
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";
|
|
14039
15969
|
message: string;
|
|
14040
15970
|
retryable: boolean;
|
|
14041
15971
|
at: string;
|
|
@@ -14062,13 +15992,19 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
|
|
|
14062
15992
|
id: string;
|
|
14063
15993
|
projectId: string;
|
|
14064
15994
|
threadId: string;
|
|
14065
|
-
agentId: string;
|
|
14066
15995
|
triggerMessageId: string;
|
|
14067
15996
|
requestedBy?: {
|
|
14068
15997
|
type: "user" | "serviceAccount";
|
|
14069
15998
|
id: string;
|
|
14070
15999
|
};
|
|
14071
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
|
+
};
|
|
14072
16008
|
modelId?: string;
|
|
14073
16009
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
14074
16010
|
usage?: {
|
|
@@ -14099,7 +16035,7 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
|
|
|
14099
16035
|
message: string;
|
|
14100
16036
|
}>;
|
|
14101
16037
|
error?: {
|
|
14102
|
-
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";
|
|
14103
16039
|
message: string;
|
|
14104
16040
|
retryable: boolean;
|
|
14105
16041
|
at: string;
|
|
@@ -14125,13 +16061,19 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
|
|
|
14125
16061
|
id: string;
|
|
14126
16062
|
projectId: string;
|
|
14127
16063
|
threadId: string;
|
|
14128
|
-
agentId: string;
|
|
14129
16064
|
triggerMessageId: string;
|
|
14130
16065
|
requestedBy?: {
|
|
14131
16066
|
type: "user" | "serviceAccount";
|
|
14132
16067
|
id: string;
|
|
14133
16068
|
};
|
|
14134
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
|
+
};
|
|
14135
16077
|
modelId?: string;
|
|
14136
16078
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
14137
16079
|
usage?: {
|
|
@@ -14162,7 +16104,7 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
|
|
|
14162
16104
|
message: string;
|
|
14163
16105
|
}>;
|
|
14164
16106
|
error?: {
|
|
14165
|
-
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";
|
|
14166
16108
|
message: string;
|
|
14167
16109
|
retryable: boolean;
|
|
14168
16110
|
at: string;
|
|
@@ -14191,13 +16133,19 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
|
|
|
14191
16133
|
id: string;
|
|
14192
16134
|
projectId: string;
|
|
14193
16135
|
threadId: string;
|
|
14194
|
-
agentId: string;
|
|
14195
16136
|
triggerMessageId: string;
|
|
14196
16137
|
requestedBy?: {
|
|
14197
16138
|
type: "user" | "serviceAccount";
|
|
14198
16139
|
id: string;
|
|
14199
16140
|
};
|
|
14200
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
|
+
};
|
|
14201
16149
|
modelId?: string;
|
|
14202
16150
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
14203
16151
|
usage?: {
|
|
@@ -14228,7 +16176,7 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
|
|
|
14228
16176
|
message: string;
|
|
14229
16177
|
}>;
|
|
14230
16178
|
error?: {
|
|
14231
|
-
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";
|
|
14232
16180
|
message: string;
|
|
14233
16181
|
retryable: boolean;
|
|
14234
16182
|
at: string;
|
|
@@ -14261,13 +16209,19 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
|
|
|
14261
16209
|
id: string;
|
|
14262
16210
|
projectId: string;
|
|
14263
16211
|
threadId: string;
|
|
14264
|
-
agentId: string;
|
|
14265
16212
|
triggerMessageId: string;
|
|
14266
16213
|
requestedBy?: {
|
|
14267
16214
|
type: "user" | "serviceAccount";
|
|
14268
16215
|
id: string;
|
|
14269
16216
|
};
|
|
14270
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
|
+
};
|
|
14271
16225
|
modelId?: string;
|
|
14272
16226
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
14273
16227
|
usage?: {
|
|
@@ -14298,7 +16252,7 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
|
|
|
14298
16252
|
message: string;
|
|
14299
16253
|
}>;
|
|
14300
16254
|
error?: {
|
|
14301
|
-
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";
|
|
14302
16256
|
message: string;
|
|
14303
16257
|
retryable: boolean;
|
|
14304
16258
|
at: string;
|
|
@@ -14316,13 +16270,19 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
|
|
|
14316
16270
|
id: string;
|
|
14317
16271
|
projectId: string;
|
|
14318
16272
|
threadId: string;
|
|
14319
|
-
agentId: string;
|
|
14320
16273
|
triggerMessageId: string;
|
|
14321
16274
|
requestedBy?: {
|
|
14322
16275
|
type: "user" | "serviceAccount";
|
|
14323
16276
|
id: string;
|
|
14324
16277
|
};
|
|
14325
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
|
+
};
|
|
14326
16286
|
modelId?: string;
|
|
14327
16287
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
14328
16288
|
usage?: {
|
|
@@ -14353,7 +16313,7 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
|
|
|
14353
16313
|
message: string;
|
|
14354
16314
|
}>;
|
|
14355
16315
|
error?: {
|
|
14356
|
-
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";
|
|
14357
16317
|
message: string;
|
|
14358
16318
|
retryable: boolean;
|
|
14359
16319
|
at: string;
|
|
@@ -14376,13 +16336,19 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
|
|
|
14376
16336
|
id: string;
|
|
14377
16337
|
projectId: string;
|
|
14378
16338
|
threadId: string;
|
|
14379
|
-
agentId: string;
|
|
14380
16339
|
triggerMessageId: string;
|
|
14381
16340
|
requestedBy?: {
|
|
14382
16341
|
type: "user" | "serviceAccount";
|
|
14383
16342
|
id: string;
|
|
14384
16343
|
};
|
|
14385
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
|
+
};
|
|
14386
16352
|
modelId?: string;
|
|
14387
16353
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
14388
16354
|
usage?: {
|
|
@@ -14413,7 +16379,7 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
|
|
|
14413
16379
|
message: string;
|
|
14414
16380
|
}>;
|
|
14415
16381
|
error?: {
|
|
14416
|
-
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";
|
|
14417
16383
|
message: string;
|
|
14418
16384
|
retryable: boolean;
|
|
14419
16385
|
at: string;
|
|
@@ -14442,13 +16408,19 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
|
|
|
14442
16408
|
id: string;
|
|
14443
16409
|
projectId: string;
|
|
14444
16410
|
threadId: string;
|
|
14445
|
-
agentId: string;
|
|
14446
16411
|
triggerMessageId: string;
|
|
14447
16412
|
requestedBy?: {
|
|
14448
16413
|
type: "user" | "serviceAccount";
|
|
14449
16414
|
id: string;
|
|
14450
16415
|
};
|
|
14451
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
|
+
};
|
|
14452
16424
|
modelId?: string;
|
|
14453
16425
|
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
14454
16426
|
usage?: {
|
|
@@ -14479,7 +16451,7 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
|
|
|
14479
16451
|
message: string;
|
|
14480
16452
|
}>;
|
|
14481
16453
|
error?: {
|
|
14482
|
-
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";
|
|
14483
16455
|
message: string;
|
|
14484
16456
|
retryable: boolean;
|
|
14485
16457
|
at: string;
|
|
@@ -14510,12 +16482,46 @@ export declare const listModelsOptions: (options?: Options<ListModelsData>) => i
|
|
|
14510
16482
|
provider: string;
|
|
14511
16483
|
modelId: string;
|
|
14512
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">;
|
|
14513
16502
|
}>;
|
|
14514
16503
|
}, Error, {
|
|
14515
16504
|
language: Array<{
|
|
14516
16505
|
provider: string;
|
|
14517
16506
|
modelId: string;
|
|
14518
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">;
|
|
14519
16525
|
}>;
|
|
14520
16526
|
}, [Pick<Options<ListModelsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
14521
16527
|
_id: string;
|
|
@@ -14527,6 +16533,23 @@ export declare const listModelsOptions: (options?: Options<ListModelsData>) => i
|
|
|
14527
16533
|
provider: string;
|
|
14528
16534
|
modelId: string;
|
|
14529
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">;
|
|
14530
16553
|
}>;
|
|
14531
16554
|
}, [Pick<Options<ListModelsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
14532
16555
|
_id: string;
|
|
@@ -14544,6 +16567,23 @@ export declare const listModelsOptions: (options?: Options<ListModelsData>) => i
|
|
|
14544
16567
|
provider: string;
|
|
14545
16568
|
modelId: string;
|
|
14546
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">;
|
|
14547
16587
|
}>;
|
|
14548
16588
|
};
|
|
14549
16589
|
[dataTagErrorSymbol]: Error;
|