@sixb/client 0.1.6 → 0.1.8

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.
Files changed (65) hide show
  1. package/README.md +25 -0
  2. package/dist/api.d.ts +5 -0
  3. package/dist/api.d.ts.map +1 -1
  4. package/dist/browser.d.ts +18 -1
  5. package/dist/browser.d.ts.map +1 -1
  6. package/dist/browser.js +180 -35
  7. package/dist/browser.js.map +3 -3
  8. package/dist/{chunk-hwg7mwq7.js → chunk-0g4bg41z.js} +46 -7
  9. package/dist/chunk-0g4bg41z.js.map +17 -0
  10. package/dist/chunk-3gvmb0w6.js +23 -0
  11. package/dist/chunk-3gvmb0w6.js.map +10 -0
  12. package/dist/{chunk-g19v53kt.js → chunk-cmfd585n.js} +17 -2
  13. package/dist/chunk-cmfd585n.js.map +10 -0
  14. package/dist/{chunk-ehjnq01h.js → chunk-n4160ht2.js} +179 -28
  15. package/dist/chunk-n4160ht2.js.map +19 -0
  16. package/dist/{chunk-ks27bq5b.js → chunk-se1tydhh.js} +2 -2
  17. package/dist/{chunk-9bwme2g7.js → chunk-v8q8185t.js} +61 -6
  18. package/dist/chunk-v8q8185t.js.map +10 -0
  19. package/dist/{chunk-5y58b4tr.js → chunk-x6pk2xhn.js} +21 -4
  20. package/dist/chunk-x6pk2xhn.js.map +12 -0
  21. package/dist/client-authority.d.ts +6 -0
  22. package/dist/client-authority.d.ts.map +1 -0
  23. package/dist/connectors/queries.d.ts.map +1 -1
  24. package/dist/events-builder.d.ts.map +1 -1
  25. package/dist/file.d.ts +11 -0
  26. package/dist/file.d.ts.map +1 -1
  27. package/dist/generated/@tanstack/react-query.gen.d.ts +2687 -378
  28. package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
  29. package/dist/generated/index.d.ts +2 -2
  30. package/dist/generated/index.d.ts.map +1 -1
  31. package/dist/generated/sdk.gen.d.ts +65 -7
  32. package/dist/generated/sdk.gen.d.ts.map +1 -1
  33. package/dist/generated/types.gen.d.ts +3539 -2377
  34. package/dist/generated/types.gen.d.ts.map +1 -1
  35. package/dist/hooks.js +280 -22
  36. package/dist/hooks.js.map +3 -3
  37. package/dist/index.js +41 -8
  38. package/dist/index.js.map +1 -1
  39. package/dist/logs-builder.d.ts.map +1 -1
  40. package/dist/logs.js +5 -4
  41. package/dist/logs.js.map +1 -1
  42. package/dist/models.js +32 -4
  43. package/dist/models.js.map +1 -1
  44. package/dist/query.js +5 -4
  45. package/dist/query.js.map +1 -1
  46. package/dist/ws-socket.d.ts.map +1 -1
  47. package/package.json +2 -2
  48. package/src/agent-streams.ts +0 -1
  49. package/src/api.ts +92 -3
  50. package/src/browser.ts +257 -48
  51. package/src/client-authority.ts +31 -0
  52. package/src/events-builder.ts +18 -1
  53. package/src/file.ts +36 -0
  54. package/src/generated/@tanstack/react-query.gen.ts +549 -31
  55. package/src/generated/index.ts +88 -4
  56. package/src/generated/sdk.gen.ts +375 -30
  57. package/src/generated/types.gen.ts +1746 -227
  58. package/src/logs-builder.ts +14 -1
  59. package/src/ws-socket.ts +11 -0
  60. package/dist/chunk-5y58b4tr.js.map +0 -12
  61. package/dist/chunk-9bwme2g7.js.map +0 -10
  62. package/dist/chunk-ehjnq01h.js.map +0 -19
  63. package/dist/chunk-g19v53kt.js.map +0 -10
  64. package/dist/chunk-hwg7mwq7.js.map +0 -17
  65. /package/dist/{chunk-ks27bq5b.js.map → chunk-se1tydhh.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, ListAgentsData, ListAgentThreadMessagesData, ListAgentThreadMessagesError, ListAgentThreadRunsData, ListAgentThreadRunsError, ListAgentThreadsData, ListAgentThreadsError, ListAiModelCallsData, ListAiModelCallsError, ListAuthAccessTokensData, ListAuthAccessTokensError, ListAuthInvitationsData, ListAuthInvitationsError, ListAuthMembersData, ListAuthMembersError, ListAuthServiceAccountAccessTokensData, ListAuthServiceAccountAccessTokensError, ListAuthServiceAccountsData, ListAuthServiceAccountsError, ListAuthSessionsData, ListConnectorConnectionsData, ListConnectorConnectionsError, ListConnectorsData, ListDatasetRowsData, ListDatasetRowsError, ListDatasetsData, ListDatasetVersionsData, ListDatasetVersionsError, ListEventsData, ListEventsError, ListLogsData, ListLogsError, 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, UpdateAuthMemberGroupsData, UpdateAuthMemberGroupsError, UpdateAuthMemberGroupsResponse, UploadFileContentData, UploadFileContentError, UploadFileContentResponse, UploadFileRawData, UploadFileRawError, UploadFileRawResponse, UpsertObjectData, UpsertObjectError, UpsertObjectLinkData, UpsertObjectLinkError, UpsertObjectLinkResponse, UpsertObjectResponse } from "../types.gen";
3
+ import type { AbortFileUploadData, AbortFileUploadError, AbortFileUploadResponse, AddConnectorConnectionData, AddConnectorConnectionError, AddConnectorConnectionResponse, AppendTelemetryData, AppendTelemetryError, AppendTelemetryResponse, CancelAgentRunData, CancelAgentRunError, CancelAgentRunResponse, CancelWorkflowInterventionData, CancelWorkflowInterventionError, CancelWorkflowInterventionResponse, CancelWorkflowRunData, CancelWorkflowRunError, CancelWorkflowRunResponse, CompleteFileUploadData, CompleteFileUploadError, CompleteFileUploadResponse, CountObjectsData, CountObjectsError, CountObjectsResponse, CreateAgentThreadData, CreateAgentThreadError, CreateAgentThreadResponse, 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, ExchangeSharedAccessData, ExchangeSharedAccessError, ExchangeSharedAccessResponse, 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, GetSharedAccessSessionData, GetSharedAccessSessionError, GetStatusData, GetSyncData, GetTelemetryHistoryData, GetTelemetryHistoryError, GetWorkflowAgentNodeExecutionData, GetWorkflowAgentNodeExecutionError, GetWorkflowData, GetWorkflowInterventionData, GetWorkflowInterventionError, GetWorkflowNodeRunFileContentData, GetWorkflowNodeRunFileContentResponse, GetWorkflowRunData, GetWorkflowRunError, GetWorkflowRunFileContentData, GetWorkflowRunFileContentResponse, IssueSharedAccessGrantData, IssueSharedAccessGrantError, IssueSharedAccessGrantResponse, 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, ListSharedAccessGrantsData, ListSharedAccessGrantsError, 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, RevokeSharedAccessGrantData, RevokeSharedAccessGrantError, RevokeSharedAccessGrantResponse, SearchObjectsData, SearchObjectsError, SelectConnectorConnectionRunAccountData, SelectConnectorConnectionRunAccountError, SelectConnectorConnectionRunAccountResponse, SignFileUploadPartData, SignFileUploadPartError, SignFileUploadPartResponse, SignOutAllData, SignOutAllError, SignOutAllResponse, SignOutData, SignOutError, SignOutResponse, SignOutSharedAccessData, SignOutSharedAccessError, SignOutSharedAccessResponse, 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
- agentId: string;
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
- agentId: string;
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
- agentId: string;
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
- agentId: string;
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,8 +1811,16 @@ 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;
@@ -1721,18 +1837,39 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
1721
1837
  };
1722
1838
  attribution?: {
1723
1839
  kind: "agent";
1724
- agentId: string;
1725
1840
  agentRunId: string;
1726
1841
  threadId: string;
1727
1842
  } | {
1728
1843
  kind: "workflowAgent";
1729
- agentId: string;
1844
+ agentStepId: string;
1730
1845
  nodeRunId: string;
1731
1846
  workflowId: string;
1732
1847
  workflowRunId: string;
1848
+ } | {
1849
+ kind: "subagent";
1850
+ subagentRunId: string;
1851
+ parentRunId: string;
1733
1852
  };
1734
1853
  cost?: {
1735
1854
  status: "rated";
1855
+ source: "estimate" | "provider" | "unknown";
1856
+ estimate?: {
1857
+ status: "rated";
1858
+ money: {
1859
+ currency: string;
1860
+ amountNanos: string;
1861
+ };
1862
+ components: Array<{
1863
+ 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";
1864
+ quantity: string;
1865
+ rateAmountNanosPerMillion: string;
1866
+ chargeAmountNanos: string;
1867
+ }>;
1868
+ } | {
1869
+ status: "unpriceable";
1870
+ reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
1871
+ 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">;
1872
+ };
1736
1873
  billingIdentity: {
1737
1874
  providerId: string;
1738
1875
  modelId: string;
@@ -1743,6 +1880,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
1743
1880
  region?: string;
1744
1881
  inferenceGeo?: string;
1745
1882
  routedProviderId?: string;
1883
+ routedModelId?: string;
1746
1884
  deploymentId?: string;
1747
1885
  inferenceProfileId?: string;
1748
1886
  cacheWriteTtlSeconds?: number;
@@ -1752,7 +1890,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
1752
1890
  sourceId: string;
1753
1891
  sourceEntryId: string;
1754
1892
  sourceVersion: string;
1755
- sourceUrl: string;
1893
+ sourceUrl?: string;
1756
1894
  observedAt: string;
1757
1895
  };
1758
1896
  money: {
@@ -1760,7 +1898,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
1760
1898
  amountNanos: string;
1761
1899
  };
1762
1900
  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";
1901
+ 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
1902
  quantity: string;
1765
1903
  rateAmountNanosPerMillion: string;
1766
1904
  chargeAmountNanos: string;
@@ -1768,6 +1906,24 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
1768
1906
  ratedAt: string;
1769
1907
  } | {
1770
1908
  status: "unpriceable";
1909
+ source: "estimate" | "provider" | "unknown";
1910
+ estimate?: {
1911
+ status: "rated";
1912
+ money: {
1913
+ currency: string;
1914
+ amountNanos: string;
1915
+ };
1916
+ components: Array<{
1917
+ 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";
1918
+ quantity: string;
1919
+ rateAmountNanosPerMillion: string;
1920
+ chargeAmountNanos: string;
1921
+ }>;
1922
+ } | {
1923
+ status: "unpriceable";
1924
+ reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
1925
+ 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">;
1926
+ };
1771
1927
  billingIdentity?: {
1772
1928
  providerId: string;
1773
1929
  modelId: string;
@@ -1778,20 +1934,21 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
1778
1934
  region?: string;
1779
1935
  inferenceGeo?: string;
1780
1936
  routedProviderId?: string;
1937
+ routedModelId?: string;
1781
1938
  deploymentId?: string;
1782
1939
  inferenceProfileId?: string;
1783
1940
  cacheWriteTtlSeconds?: number;
1784
1941
  mode?: string;
1785
1942
  };
1786
- priceSource: {
1943
+ priceSource?: {
1787
1944
  sourceId: string;
1788
1945
  sourceEntryId: string;
1789
1946
  sourceVersion: string;
1790
- sourceUrl: string;
1947
+ sourceUrl?: string;
1791
1948
  observedAt: string;
1792
1949
  };
1793
- reason: "missingBillingIdentity" | "missingCatalogEntry" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
1794
- missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
1950
+ reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
1951
+ 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
1952
  ratedAt: string;
1796
1953
  };
1797
1954
  valuationStatus: "rated" | "unpriceable" | "unvalued";
@@ -1807,8 +1964,16 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
1807
1964
  callId: string;
1808
1965
  providerId: string;
1809
1966
  requestedModelId: string;
1967
+ requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
1968
+ budgetTokens: number;
1969
+ };
1810
1970
  responseModelId?: string;
1811
1971
  responseId: string;
1972
+ providerIds: {
1973
+ requestId?: string;
1974
+ responseId?: string;
1975
+ generationId?: string;
1976
+ } | null;
1812
1977
  usage: {
1813
1978
  inputTokens?: number;
1814
1979
  outputTokens?: number;
@@ -1825,18 +1990,39 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
1825
1990
  };
1826
1991
  attribution?: {
1827
1992
  kind: "agent";
1828
- agentId: string;
1829
1993
  agentRunId: string;
1830
1994
  threadId: string;
1831
1995
  } | {
1832
1996
  kind: "workflowAgent";
1833
- agentId: string;
1997
+ agentStepId: string;
1834
1998
  nodeRunId: string;
1835
1999
  workflowId: string;
1836
2000
  workflowRunId: string;
2001
+ } | {
2002
+ kind: "subagent";
2003
+ subagentRunId: string;
2004
+ parentRunId: string;
1837
2005
  };
1838
2006
  cost?: {
1839
2007
  status: "rated";
2008
+ source: "estimate" | "provider" | "unknown";
2009
+ estimate?: {
2010
+ status: "rated";
2011
+ money: {
2012
+ currency: string;
2013
+ amountNanos: string;
2014
+ };
2015
+ components: Array<{
2016
+ 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";
2017
+ quantity: string;
2018
+ rateAmountNanosPerMillion: string;
2019
+ chargeAmountNanos: string;
2020
+ }>;
2021
+ } | {
2022
+ status: "unpriceable";
2023
+ reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
2024
+ 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">;
2025
+ };
1840
2026
  billingIdentity: {
1841
2027
  providerId: string;
1842
2028
  modelId: string;
@@ -1847,6 +2033,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
1847
2033
  region?: string;
1848
2034
  inferenceGeo?: string;
1849
2035
  routedProviderId?: string;
2036
+ routedModelId?: string;
1850
2037
  deploymentId?: string;
1851
2038
  inferenceProfileId?: string;
1852
2039
  cacheWriteTtlSeconds?: number;
@@ -1856,7 +2043,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
1856
2043
  sourceId: string;
1857
2044
  sourceEntryId: string;
1858
2045
  sourceVersion: string;
1859
- sourceUrl: string;
2046
+ sourceUrl?: string;
1860
2047
  observedAt: string;
1861
2048
  };
1862
2049
  money: {
@@ -1864,7 +2051,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
1864
2051
  amountNanos: string;
1865
2052
  };
1866
2053
  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";
2054
+ 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
2055
  quantity: string;
1869
2056
  rateAmountNanosPerMillion: string;
1870
2057
  chargeAmountNanos: string;
@@ -1872,6 +2059,24 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
1872
2059
  ratedAt: string;
1873
2060
  } | {
1874
2061
  status: "unpriceable";
2062
+ source: "estimate" | "provider" | "unknown";
2063
+ estimate?: {
2064
+ status: "rated";
2065
+ money: {
2066
+ currency: string;
2067
+ amountNanos: string;
2068
+ };
2069
+ components: Array<{
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";
2071
+ quantity: string;
2072
+ rateAmountNanosPerMillion: string;
2073
+ chargeAmountNanos: string;
2074
+ }>;
2075
+ } | {
2076
+ status: "unpriceable";
2077
+ reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
2078
+ 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">;
2079
+ };
1875
2080
  billingIdentity?: {
1876
2081
  providerId: string;
1877
2082
  modelId: string;
@@ -1882,20 +2087,21 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
1882
2087
  region?: string;
1883
2088
  inferenceGeo?: string;
1884
2089
  routedProviderId?: string;
2090
+ routedModelId?: string;
1885
2091
  deploymentId?: string;
1886
2092
  inferenceProfileId?: string;
1887
2093
  cacheWriteTtlSeconds?: number;
1888
2094
  mode?: string;
1889
2095
  };
1890
- priceSource: {
2096
+ priceSource?: {
1891
2097
  sourceId: string;
1892
2098
  sourceEntryId: string;
1893
2099
  sourceVersion: string;
1894
- sourceUrl: string;
2100
+ sourceUrl?: string;
1895
2101
  observedAt: string;
1896
2102
  };
1897
- reason: "missingBillingIdentity" | "missingCatalogEntry" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
1898
- missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
2103
+ reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
2104
+ 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
2105
  ratedAt: string;
1900
2106
  };
1901
2107
  valuationStatus: "rated" | "unpriceable" | "unvalued";
@@ -1916,8 +2122,16 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
1916
2122
  callId: string;
1917
2123
  providerId: string;
1918
2124
  requestedModelId: string;
2125
+ requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
2126
+ budgetTokens: number;
2127
+ };
1919
2128
  responseModelId?: string;
1920
2129
  responseId: string;
2130
+ providerIds: {
2131
+ requestId?: string;
2132
+ responseId?: string;
2133
+ generationId?: string;
2134
+ } | null;
1921
2135
  usage: {
1922
2136
  inputTokens?: number;
1923
2137
  outputTokens?: number;
@@ -1934,18 +2148,39 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
1934
2148
  };
1935
2149
  attribution?: {
1936
2150
  kind: "agent";
1937
- agentId: string;
1938
2151
  agentRunId: string;
1939
2152
  threadId: string;
1940
2153
  } | {
1941
2154
  kind: "workflowAgent";
1942
- agentId: string;
2155
+ agentStepId: string;
1943
2156
  nodeRunId: string;
1944
2157
  workflowId: string;
1945
2158
  workflowRunId: string;
2159
+ } | {
2160
+ kind: "subagent";
2161
+ subagentRunId: string;
2162
+ parentRunId: string;
1946
2163
  };
1947
2164
  cost?: {
1948
2165
  status: "rated";
2166
+ source: "estimate" | "provider" | "unknown";
2167
+ estimate?: {
2168
+ status: "rated";
2169
+ money: {
2170
+ currency: string;
2171
+ amountNanos: string;
2172
+ };
2173
+ components: Array<{
2174
+ 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";
2175
+ quantity: string;
2176
+ rateAmountNanosPerMillion: string;
2177
+ chargeAmountNanos: string;
2178
+ }>;
2179
+ } | {
2180
+ status: "unpriceable";
2181
+ reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
2182
+ 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">;
2183
+ };
1949
2184
  billingIdentity: {
1950
2185
  providerId: string;
1951
2186
  modelId: string;
@@ -1956,6 +2191,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
1956
2191
  region?: string;
1957
2192
  inferenceGeo?: string;
1958
2193
  routedProviderId?: string;
2194
+ routedModelId?: string;
1959
2195
  deploymentId?: string;
1960
2196
  inferenceProfileId?: string;
1961
2197
  cacheWriteTtlSeconds?: number;
@@ -1965,7 +2201,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
1965
2201
  sourceId: string;
1966
2202
  sourceEntryId: string;
1967
2203
  sourceVersion: string;
1968
- sourceUrl: string;
2204
+ sourceUrl?: string;
1969
2205
  observedAt: string;
1970
2206
  };
1971
2207
  money: {
@@ -1973,7 +2209,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
1973
2209
  amountNanos: string;
1974
2210
  };
1975
2211
  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";
2212
+ 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
2213
  quantity: string;
1978
2214
  rateAmountNanosPerMillion: string;
1979
2215
  chargeAmountNanos: string;
@@ -1981,6 +2217,24 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
1981
2217
  ratedAt: string;
1982
2218
  } | {
1983
2219
  status: "unpriceable";
2220
+ source: "estimate" | "provider" | "unknown";
2221
+ estimate?: {
2222
+ status: "rated";
2223
+ money: {
2224
+ currency: string;
2225
+ amountNanos: string;
2226
+ };
2227
+ components: Array<{
2228
+ 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";
2229
+ quantity: string;
2230
+ rateAmountNanosPerMillion: string;
2231
+ chargeAmountNanos: string;
2232
+ }>;
2233
+ } | {
2234
+ status: "unpriceable";
2235
+ reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
2236
+ 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">;
2237
+ };
1984
2238
  billingIdentity?: {
1985
2239
  providerId: string;
1986
2240
  modelId: string;
@@ -1991,20 +2245,21 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
1991
2245
  region?: string;
1992
2246
  inferenceGeo?: string;
1993
2247
  routedProviderId?: string;
2248
+ routedModelId?: string;
1994
2249
  deploymentId?: string;
1995
2250
  inferenceProfileId?: string;
1996
2251
  cacheWriteTtlSeconds?: number;
1997
2252
  mode?: string;
1998
2253
  };
1999
- priceSource: {
2254
+ priceSource?: {
2000
2255
  sourceId: string;
2001
2256
  sourceEntryId: string;
2002
2257
  sourceVersion: string;
2003
- sourceUrl: string;
2258
+ sourceUrl?: string;
2004
2259
  observedAt: string;
2005
2260
  };
2006
- reason: "missingBillingIdentity" | "missingCatalogEntry" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
2007
- missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
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">;
2008
2263
  ratedAt: string;
2009
2264
  };
2010
2265
  valuationStatus: "rated" | "unpriceable" | "unvalued";
@@ -2031,8 +2286,16 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
2031
2286
  callId: string;
2032
2287
  providerId: string;
2033
2288
  requestedModelId: string;
2289
+ requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
2290
+ budgetTokens: number;
2291
+ };
2034
2292
  responseModelId?: string;
2035
2293
  responseId: string;
2294
+ providerIds: {
2295
+ requestId?: string;
2296
+ responseId?: string;
2297
+ generationId?: string;
2298
+ } | null;
2036
2299
  usage: {
2037
2300
  inputTokens?: number;
2038
2301
  outputTokens?: number;
@@ -2049,18 +2312,39 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
2049
2312
  };
2050
2313
  attribution?: {
2051
2314
  kind: "agent";
2052
- agentId: string;
2053
2315
  agentRunId: string;
2054
2316
  threadId: string;
2055
2317
  } | {
2056
2318
  kind: "workflowAgent";
2057
- agentId: string;
2319
+ agentStepId: string;
2058
2320
  nodeRunId: string;
2059
2321
  workflowId: string;
2060
2322
  workflowRunId: string;
2323
+ } | {
2324
+ kind: "subagent";
2325
+ subagentRunId: string;
2326
+ parentRunId: string;
2061
2327
  };
2062
2328
  cost?: {
2063
2329
  status: "rated";
2330
+ source: "estimate" | "provider" | "unknown";
2331
+ estimate?: {
2332
+ status: "rated";
2333
+ money: {
2334
+ currency: string;
2335
+ amountNanos: string;
2336
+ };
2337
+ components: Array<{
2338
+ 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";
2339
+ quantity: string;
2340
+ rateAmountNanosPerMillion: string;
2341
+ chargeAmountNanos: string;
2342
+ }>;
2343
+ } | {
2344
+ status: "unpriceable";
2345
+ reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
2346
+ 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">;
2347
+ };
2064
2348
  billingIdentity: {
2065
2349
  providerId: string;
2066
2350
  modelId: string;
@@ -2071,6 +2355,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
2071
2355
  region?: string;
2072
2356
  inferenceGeo?: string;
2073
2357
  routedProviderId?: string;
2358
+ routedModelId?: string;
2074
2359
  deploymentId?: string;
2075
2360
  inferenceProfileId?: string;
2076
2361
  cacheWriteTtlSeconds?: number;
@@ -2080,7 +2365,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
2080
2365
  sourceId: string;
2081
2366
  sourceEntryId: string;
2082
2367
  sourceVersion: string;
2083
- sourceUrl: string;
2368
+ sourceUrl?: string;
2084
2369
  observedAt: string;
2085
2370
  };
2086
2371
  money: {
@@ -2088,7 +2373,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
2088
2373
  amountNanos: string;
2089
2374
  };
2090
2375
  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";
2376
+ 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
2377
  quantity: string;
2093
2378
  rateAmountNanosPerMillion: string;
2094
2379
  chargeAmountNanos: string;
@@ -2096,6 +2381,24 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
2096
2381
  ratedAt: string;
2097
2382
  } | {
2098
2383
  status: "unpriceable";
2384
+ source: "estimate" | "provider" | "unknown";
2385
+ estimate?: {
2386
+ status: "rated";
2387
+ money: {
2388
+ currency: string;
2389
+ amountNanos: string;
2390
+ };
2391
+ components: Array<{
2392
+ 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";
2393
+ quantity: string;
2394
+ rateAmountNanosPerMillion: string;
2395
+ chargeAmountNanos: string;
2396
+ }>;
2397
+ } | {
2398
+ status: "unpriceable";
2399
+ reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
2400
+ 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">;
2401
+ };
2099
2402
  billingIdentity?: {
2100
2403
  providerId: string;
2101
2404
  modelId: string;
@@ -2106,20 +2409,21 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
2106
2409
  region?: string;
2107
2410
  inferenceGeo?: string;
2108
2411
  routedProviderId?: string;
2412
+ routedModelId?: string;
2109
2413
  deploymentId?: string;
2110
2414
  inferenceProfileId?: string;
2111
2415
  cacheWriteTtlSeconds?: number;
2112
2416
  mode?: string;
2113
2417
  };
2114
- priceSource: {
2418
+ priceSource?: {
2115
2419
  sourceId: string;
2116
2420
  sourceEntryId: string;
2117
2421
  sourceVersion: string;
2118
- sourceUrl: string;
2422
+ sourceUrl?: string;
2119
2423
  observedAt: string;
2120
2424
  };
2121
- reason: "missingBillingIdentity" | "missingCatalogEntry" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
2122
- missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
2425
+ reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
2426
+ 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
2427
  ratedAt: string;
2124
2428
  };
2125
2429
  valuationStatus: "rated" | "unpriceable" | "unvalued";
@@ -2143,8 +2447,16 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
2143
2447
  callId: string;
2144
2448
  providerId: string;
2145
2449
  requestedModelId: string;
2450
+ requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
2451
+ budgetTokens: number;
2452
+ };
2146
2453
  responseModelId?: string;
2147
2454
  responseId: string;
2455
+ providerIds: {
2456
+ requestId?: string;
2457
+ responseId?: string;
2458
+ generationId?: string;
2459
+ } | null;
2148
2460
  usage: {
2149
2461
  inputTokens?: number;
2150
2462
  outputTokens?: number;
@@ -2161,18 +2473,39 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
2161
2473
  };
2162
2474
  attribution?: {
2163
2475
  kind: "agent";
2164
- agentId: string;
2165
2476
  agentRunId: string;
2166
2477
  threadId: string;
2167
2478
  } | {
2168
2479
  kind: "workflowAgent";
2169
- agentId: string;
2480
+ agentStepId: string;
2170
2481
  nodeRunId: string;
2171
2482
  workflowId: string;
2172
2483
  workflowRunId: string;
2484
+ } | {
2485
+ kind: "subagent";
2486
+ subagentRunId: string;
2487
+ parentRunId: string;
2173
2488
  };
2174
2489
  cost?: {
2175
2490
  status: "rated";
2491
+ source: "estimate" | "provider" | "unknown";
2492
+ estimate?: {
2493
+ status: "rated";
2494
+ money: {
2495
+ currency: string;
2496
+ amountNanos: string;
2497
+ };
2498
+ components: Array<{
2499
+ 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";
2500
+ quantity: string;
2501
+ rateAmountNanosPerMillion: string;
2502
+ chargeAmountNanos: string;
2503
+ }>;
2504
+ } | {
2505
+ status: "unpriceable";
2506
+ reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
2507
+ 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">;
2508
+ };
2176
2509
  billingIdentity: {
2177
2510
  providerId: string;
2178
2511
  modelId: string;
@@ -2183,6 +2516,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
2183
2516
  region?: string;
2184
2517
  inferenceGeo?: string;
2185
2518
  routedProviderId?: string;
2519
+ routedModelId?: string;
2186
2520
  deploymentId?: string;
2187
2521
  inferenceProfileId?: string;
2188
2522
  cacheWriteTtlSeconds?: number;
@@ -2192,7 +2526,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
2192
2526
  sourceId: string;
2193
2527
  sourceEntryId: string;
2194
2528
  sourceVersion: string;
2195
- sourceUrl: string;
2529
+ sourceUrl?: string;
2196
2530
  observedAt: string;
2197
2531
  };
2198
2532
  money: {
@@ -2200,7 +2534,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
2200
2534
  amountNanos: string;
2201
2535
  };
2202
2536
  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";
2537
+ 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
2538
  quantity: string;
2205
2539
  rateAmountNanosPerMillion: string;
2206
2540
  chargeAmountNanos: string;
@@ -2208,6 +2542,24 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
2208
2542
  ratedAt: string;
2209
2543
  } | {
2210
2544
  status: "unpriceable";
2545
+ source: "estimate" | "provider" | "unknown";
2546
+ estimate?: {
2547
+ status: "rated";
2548
+ money: {
2549
+ currency: string;
2550
+ amountNanos: string;
2551
+ };
2552
+ components: Array<{
2553
+ 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";
2554
+ quantity: string;
2555
+ rateAmountNanosPerMillion: string;
2556
+ chargeAmountNanos: string;
2557
+ }>;
2558
+ } | {
2559
+ status: "unpriceable";
2560
+ reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
2561
+ 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">;
2562
+ };
2211
2563
  billingIdentity?: {
2212
2564
  providerId: string;
2213
2565
  modelId: string;
@@ -2218,20 +2570,21 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
2218
2570
  region?: string;
2219
2571
  inferenceGeo?: string;
2220
2572
  routedProviderId?: string;
2573
+ routedModelId?: string;
2221
2574
  deploymentId?: string;
2222
2575
  inferenceProfileId?: string;
2223
2576
  cacheWriteTtlSeconds?: number;
2224
2577
  mode?: string;
2225
2578
  };
2226
- priceSource: {
2579
+ priceSource?: {
2227
2580
  sourceId: string;
2228
2581
  sourceEntryId: string;
2229
2582
  sourceVersion: string;
2230
- sourceUrl: string;
2583
+ sourceUrl?: string;
2231
2584
  observedAt: string;
2232
2585
  };
2233
- reason: "missingBillingIdentity" | "missingCatalogEntry" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
2234
- missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
2586
+ reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
2587
+ 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
2588
  ratedAt: string;
2236
2589
  };
2237
2590
  valuationStatus: "rated" | "unpriceable" | "unvalued";
@@ -2247,8 +2600,16 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
2247
2600
  callId: string;
2248
2601
  providerId: string;
2249
2602
  requestedModelId: string;
2603
+ requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
2604
+ budgetTokens: number;
2605
+ };
2250
2606
  responseModelId?: string;
2251
2607
  responseId: string;
2608
+ providerIds: {
2609
+ requestId?: string;
2610
+ responseId?: string;
2611
+ generationId?: string;
2612
+ } | null;
2252
2613
  usage: {
2253
2614
  inputTokens?: number;
2254
2615
  outputTokens?: number;
@@ -2265,18 +2626,39 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
2265
2626
  };
2266
2627
  attribution?: {
2267
2628
  kind: "agent";
2268
- agentId: string;
2269
2629
  agentRunId: string;
2270
2630
  threadId: string;
2271
2631
  } | {
2272
2632
  kind: "workflowAgent";
2273
- agentId: string;
2633
+ agentStepId: string;
2274
2634
  nodeRunId: string;
2275
2635
  workflowId: string;
2276
2636
  workflowRunId: string;
2637
+ } | {
2638
+ kind: "subagent";
2639
+ subagentRunId: string;
2640
+ parentRunId: string;
2277
2641
  };
2278
2642
  cost?: {
2279
2643
  status: "rated";
2644
+ source: "estimate" | "provider" | "unknown";
2645
+ estimate?: {
2646
+ status: "rated";
2647
+ money: {
2648
+ currency: string;
2649
+ amountNanos: string;
2650
+ };
2651
+ components: Array<{
2652
+ 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";
2653
+ quantity: string;
2654
+ rateAmountNanosPerMillion: string;
2655
+ chargeAmountNanos: string;
2656
+ }>;
2657
+ } | {
2658
+ status: "unpriceable";
2659
+ reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
2660
+ 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">;
2661
+ };
2280
2662
  billingIdentity: {
2281
2663
  providerId: string;
2282
2664
  modelId: string;
@@ -2287,6 +2669,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
2287
2669
  region?: string;
2288
2670
  inferenceGeo?: string;
2289
2671
  routedProviderId?: string;
2672
+ routedModelId?: string;
2290
2673
  deploymentId?: string;
2291
2674
  inferenceProfileId?: string;
2292
2675
  cacheWriteTtlSeconds?: number;
@@ -2296,7 +2679,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
2296
2679
  sourceId: string;
2297
2680
  sourceEntryId: string;
2298
2681
  sourceVersion: string;
2299
- sourceUrl: string;
2682
+ sourceUrl?: string;
2300
2683
  observedAt: string;
2301
2684
  };
2302
2685
  money: {
@@ -2304,7 +2687,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
2304
2687
  amountNanos: string;
2305
2688
  };
2306
2689
  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";
2690
+ 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
2691
  quantity: string;
2309
2692
  rateAmountNanosPerMillion: string;
2310
2693
  chargeAmountNanos: string;
@@ -2312,30 +2695,49 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
2312
2695
  ratedAt: string;
2313
2696
  } | {
2314
2697
  status: "unpriceable";
2315
- billingIdentity?: {
2316
- providerId: string;
2317
- modelId: string;
2318
- };
2698
+ source: "estimate" | "provider" | "unknown";
2699
+ estimate?: {
2700
+ status: "rated";
2701
+ money: {
2702
+ currency: string;
2703
+ amountNanos: string;
2704
+ };
2705
+ components: Array<{
2706
+ 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";
2707
+ quantity: string;
2708
+ rateAmountNanosPerMillion: string;
2709
+ chargeAmountNanos: string;
2710
+ }>;
2711
+ } | {
2712
+ status: "unpriceable";
2713
+ reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
2714
+ 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">;
2715
+ };
2716
+ billingIdentity?: {
2717
+ providerId: string;
2718
+ modelId: string;
2719
+ };
2319
2720
  pricingContext: {
2320
2721
  serviceTier?: string;
2321
2722
  batch?: boolean;
2322
2723
  region?: string;
2323
2724
  inferenceGeo?: string;
2324
2725
  routedProviderId?: string;
2726
+ routedModelId?: string;
2325
2727
  deploymentId?: string;
2326
2728
  inferenceProfileId?: string;
2327
2729
  cacheWriteTtlSeconds?: number;
2328
2730
  mode?: string;
2329
2731
  };
2330
- priceSource: {
2732
+ priceSource?: {
2331
2733
  sourceId: string;
2332
2734
  sourceEntryId: string;
2333
2735
  sourceVersion: string;
2334
- sourceUrl: string;
2736
+ sourceUrl?: string;
2335
2737
  observedAt: string;
2336
2738
  };
2337
- reason: "missingBillingIdentity" | "missingCatalogEntry" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
2338
- missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
2739
+ reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
2740
+ 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
2741
  ratedAt: string;
2340
2742
  };
2341
2743
  valuationStatus: "rated" | "unpriceable" | "unvalued";
@@ -2356,8 +2758,16 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
2356
2758
  callId: string;
2357
2759
  providerId: string;
2358
2760
  requestedModelId: string;
2761
+ requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
2762
+ budgetTokens: number;
2763
+ };
2359
2764
  responseModelId?: string;
2360
2765
  responseId: string;
2766
+ providerIds: {
2767
+ requestId?: string;
2768
+ responseId?: string;
2769
+ generationId?: string;
2770
+ } | null;
2361
2771
  usage: {
2362
2772
  inputTokens?: number;
2363
2773
  outputTokens?: number;
@@ -2374,18 +2784,39 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
2374
2784
  };
2375
2785
  attribution?: {
2376
2786
  kind: "agent";
2377
- agentId: string;
2378
2787
  agentRunId: string;
2379
2788
  threadId: string;
2380
2789
  } | {
2381
2790
  kind: "workflowAgent";
2382
- agentId: string;
2791
+ agentStepId: string;
2383
2792
  nodeRunId: string;
2384
2793
  workflowId: string;
2385
2794
  workflowRunId: string;
2795
+ } | {
2796
+ kind: "subagent";
2797
+ subagentRunId: string;
2798
+ parentRunId: string;
2386
2799
  };
2387
2800
  cost?: {
2388
2801
  status: "rated";
2802
+ source: "estimate" | "provider" | "unknown";
2803
+ estimate?: {
2804
+ status: "rated";
2805
+ money: {
2806
+ currency: string;
2807
+ amountNanos: string;
2808
+ };
2809
+ components: Array<{
2810
+ 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";
2811
+ quantity: string;
2812
+ rateAmountNanosPerMillion: string;
2813
+ chargeAmountNanos: string;
2814
+ }>;
2815
+ } | {
2816
+ status: "unpriceable";
2817
+ reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
2818
+ 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">;
2819
+ };
2389
2820
  billingIdentity: {
2390
2821
  providerId: string;
2391
2822
  modelId: string;
@@ -2396,6 +2827,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
2396
2827
  region?: string;
2397
2828
  inferenceGeo?: string;
2398
2829
  routedProviderId?: string;
2830
+ routedModelId?: string;
2399
2831
  deploymentId?: string;
2400
2832
  inferenceProfileId?: string;
2401
2833
  cacheWriteTtlSeconds?: number;
@@ -2405,7 +2837,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
2405
2837
  sourceId: string;
2406
2838
  sourceEntryId: string;
2407
2839
  sourceVersion: string;
2408
- sourceUrl: string;
2840
+ sourceUrl?: string;
2409
2841
  observedAt: string;
2410
2842
  };
2411
2843
  money: {
@@ -2413,7 +2845,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
2413
2845
  amountNanos: string;
2414
2846
  };
2415
2847
  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";
2848
+ 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
2849
  quantity: string;
2418
2850
  rateAmountNanosPerMillion: string;
2419
2851
  chargeAmountNanos: string;
@@ -2421,6 +2853,24 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
2421
2853
  ratedAt: string;
2422
2854
  } | {
2423
2855
  status: "unpriceable";
2856
+ source: "estimate" | "provider" | "unknown";
2857
+ estimate?: {
2858
+ status: "rated";
2859
+ money: {
2860
+ currency: string;
2861
+ amountNanos: string;
2862
+ };
2863
+ components: Array<{
2864
+ 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";
2865
+ quantity: string;
2866
+ rateAmountNanosPerMillion: string;
2867
+ chargeAmountNanos: string;
2868
+ }>;
2869
+ } | {
2870
+ status: "unpriceable";
2871
+ reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
2872
+ 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">;
2873
+ };
2424
2874
  billingIdentity?: {
2425
2875
  providerId: string;
2426
2876
  modelId: string;
@@ -2431,20 +2881,21 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
2431
2881
  region?: string;
2432
2882
  inferenceGeo?: string;
2433
2883
  routedProviderId?: string;
2884
+ routedModelId?: string;
2434
2885
  deploymentId?: string;
2435
2886
  inferenceProfileId?: string;
2436
2887
  cacheWriteTtlSeconds?: number;
2437
2888
  mode?: string;
2438
2889
  };
2439
- priceSource: {
2890
+ priceSource?: {
2440
2891
  sourceId: string;
2441
2892
  sourceEntryId: string;
2442
2893
  sourceVersion: string;
2443
- sourceUrl: string;
2894
+ sourceUrl?: string;
2444
2895
  observedAt: string;
2445
2896
  };
2446
- reason: "missingBillingIdentity" | "missingCatalogEntry" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
2447
- missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
2897
+ reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
2898
+ 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
2899
  ratedAt: string;
2449
2900
  };
2450
2901
  valuationStatus: "rated" | "unpriceable" | "unvalued";
@@ -2464,8 +2915,16 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
2464
2915
  callId: string;
2465
2916
  providerId: string;
2466
2917
  requestedModelId: string;
2918
+ requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
2919
+ budgetTokens: number;
2920
+ };
2467
2921
  responseModelId?: string;
2468
2922
  responseId: string;
2923
+ providerIds: {
2924
+ requestId?: string;
2925
+ responseId?: string;
2926
+ generationId?: string;
2927
+ } | null;
2469
2928
  usage: {
2470
2929
  inputTokens?: number;
2471
2930
  outputTokens?: number;
@@ -2482,18 +2941,39 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
2482
2941
  };
2483
2942
  attribution?: {
2484
2943
  kind: "agent";
2485
- agentId: string;
2486
2944
  agentRunId: string;
2487
2945
  threadId: string;
2488
2946
  } | {
2489
2947
  kind: "workflowAgent";
2490
- agentId: string;
2948
+ agentStepId: string;
2491
2949
  nodeRunId: string;
2492
2950
  workflowId: string;
2493
2951
  workflowRunId: string;
2952
+ } | {
2953
+ kind: "subagent";
2954
+ subagentRunId: string;
2955
+ parentRunId: string;
2494
2956
  };
2495
2957
  cost?: {
2496
2958
  status: "rated";
2959
+ source: "estimate" | "provider" | "unknown";
2960
+ estimate?: {
2961
+ status: "rated";
2962
+ money: {
2963
+ currency: string;
2964
+ amountNanos: string;
2965
+ };
2966
+ components: Array<{
2967
+ 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";
2968
+ quantity: string;
2969
+ rateAmountNanosPerMillion: string;
2970
+ chargeAmountNanos: string;
2971
+ }>;
2972
+ } | {
2973
+ status: "unpriceable";
2974
+ reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
2975
+ 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">;
2976
+ };
2497
2977
  billingIdentity: {
2498
2978
  providerId: string;
2499
2979
  modelId: string;
@@ -2504,6 +2984,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
2504
2984
  region?: string;
2505
2985
  inferenceGeo?: string;
2506
2986
  routedProviderId?: string;
2987
+ routedModelId?: string;
2507
2988
  deploymentId?: string;
2508
2989
  inferenceProfileId?: string;
2509
2990
  cacheWriteTtlSeconds?: number;
@@ -2513,7 +2994,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
2513
2994
  sourceId: string;
2514
2995
  sourceEntryId: string;
2515
2996
  sourceVersion: string;
2516
- sourceUrl: string;
2997
+ sourceUrl?: string;
2517
2998
  observedAt: string;
2518
2999
  };
2519
3000
  money: {
@@ -2521,7 +3002,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
2521
3002
  amountNanos: string;
2522
3003
  };
2523
3004
  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";
3005
+ 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
3006
  quantity: string;
2526
3007
  rateAmountNanosPerMillion: string;
2527
3008
  chargeAmountNanos: string;
@@ -2529,6 +3010,24 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
2529
3010
  ratedAt: string;
2530
3011
  } | {
2531
3012
  status: "unpriceable";
3013
+ source: "estimate" | "provider" | "unknown";
3014
+ estimate?: {
3015
+ status: "rated";
3016
+ money: {
3017
+ currency: string;
3018
+ amountNanos: string;
3019
+ };
3020
+ components: Array<{
3021
+ 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";
3022
+ quantity: string;
3023
+ rateAmountNanosPerMillion: string;
3024
+ chargeAmountNanos: string;
3025
+ }>;
3026
+ } | {
3027
+ status: "unpriceable";
3028
+ reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
3029
+ 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">;
3030
+ };
2532
3031
  billingIdentity?: {
2533
3032
  providerId: string;
2534
3033
  modelId: string;
@@ -2539,20 +3038,21 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
2539
3038
  region?: string;
2540
3039
  inferenceGeo?: string;
2541
3040
  routedProviderId?: string;
3041
+ routedModelId?: string;
2542
3042
  deploymentId?: string;
2543
3043
  inferenceProfileId?: string;
2544
3044
  cacheWriteTtlSeconds?: number;
2545
3045
  mode?: string;
2546
3046
  };
2547
- priceSource: {
3047
+ priceSource?: {
2548
3048
  sourceId: string;
2549
3049
  sourceEntryId: string;
2550
3050
  sourceVersion: string;
2551
- sourceUrl: string;
3051
+ sourceUrl?: string;
2552
3052
  observedAt: string;
2553
3053
  };
2554
- reason: "missingBillingIdentity" | "missingCatalogEntry" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
2555
- missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
3054
+ reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
3055
+ 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
3056
  ratedAt: string;
2557
3057
  };
2558
3058
  valuationStatus: "rated" | "unpriceable" | "unvalued";
@@ -2575,8 +3075,16 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
2575
3075
  callId: string;
2576
3076
  providerId: string;
2577
3077
  requestedModelId: string;
3078
+ requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
3079
+ budgetTokens: number;
3080
+ };
2578
3081
  responseModelId?: string;
2579
3082
  responseId: string;
3083
+ providerIds: {
3084
+ requestId?: string;
3085
+ responseId?: string;
3086
+ generationId?: string;
3087
+ } | null;
2580
3088
  usage: {
2581
3089
  inputTokens?: number;
2582
3090
  outputTokens?: number;
@@ -2593,18 +3101,39 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
2593
3101
  };
2594
3102
  attribution?: {
2595
3103
  kind: "agent";
2596
- agentId: string;
2597
3104
  agentRunId: string;
2598
3105
  threadId: string;
2599
3106
  } | {
2600
3107
  kind: "workflowAgent";
2601
- agentId: string;
3108
+ agentStepId: string;
2602
3109
  nodeRunId: string;
2603
3110
  workflowId: string;
2604
3111
  workflowRunId: string;
3112
+ } | {
3113
+ kind: "subagent";
3114
+ subagentRunId: string;
3115
+ parentRunId: string;
2605
3116
  };
2606
3117
  cost?: {
2607
3118
  status: "rated";
3119
+ source: "estimate" | "provider" | "unknown";
3120
+ estimate?: {
3121
+ status: "rated";
3122
+ money: {
3123
+ currency: string;
3124
+ amountNanos: string;
3125
+ };
3126
+ components: Array<{
3127
+ 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";
3128
+ quantity: string;
3129
+ rateAmountNanosPerMillion: string;
3130
+ chargeAmountNanos: string;
3131
+ }>;
3132
+ } | {
3133
+ status: "unpriceable";
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">;
3136
+ };
2608
3137
  billingIdentity: {
2609
3138
  providerId: string;
2610
3139
  modelId: string;
@@ -2615,6 +3144,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
2615
3144
  region?: string;
2616
3145
  inferenceGeo?: string;
2617
3146
  routedProviderId?: string;
3147
+ routedModelId?: string;
2618
3148
  deploymentId?: string;
2619
3149
  inferenceProfileId?: string;
2620
3150
  cacheWriteTtlSeconds?: number;
@@ -2624,54 +3154,1419 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
2624
3154
  sourceId: string;
2625
3155
  sourceEntryId: string;
2626
3156
  sourceVersion: string;
2627
- sourceUrl: string;
3157
+ sourceUrl?: string;
2628
3158
  observedAt: string;
2629
3159
  };
2630
3160
  money: {
2631
3161
  currency: string;
2632
3162
  amountNanos: string;
2633
3163
  };
2634
- components: Array<{
2635
- meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
2636
- quantity: string;
2637
- rateAmountNanosPerMillion: string;
2638
- chargeAmountNanos: string;
2639
- }>;
2640
- ratedAt: string;
2641
- } | {
2642
- status: "unpriceable";
2643
- billingIdentity?: {
3164
+ components: Array<{
3165
+ 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";
3166
+ quantity: string;
3167
+ rateAmountNanosPerMillion: string;
3168
+ chargeAmountNanos: string;
3169
+ }>;
3170
+ ratedAt: string;
3171
+ } | {
3172
+ status: "unpriceable";
3173
+ source: "estimate" | "provider" | "unknown";
3174
+ estimate?: {
3175
+ status: "rated";
3176
+ money: {
3177
+ currency: string;
3178
+ amountNanos: string;
3179
+ };
3180
+ components: Array<{
3181
+ 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";
3182
+ quantity: string;
3183
+ rateAmountNanosPerMillion: string;
3184
+ chargeAmountNanos: string;
3185
+ }>;
3186
+ } | {
3187
+ status: "unpriceable";
3188
+ reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
3189
+ 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">;
3190
+ };
3191
+ billingIdentity?: {
3192
+ providerId: string;
3193
+ modelId: string;
3194
+ };
3195
+ pricingContext: {
3196
+ serviceTier?: string;
3197
+ batch?: boolean;
3198
+ region?: string;
3199
+ inferenceGeo?: string;
3200
+ routedProviderId?: string;
3201
+ routedModelId?: string;
3202
+ deploymentId?: string;
3203
+ inferenceProfileId?: string;
3204
+ cacheWriteTtlSeconds?: number;
3205
+ mode?: string;
3206
+ };
3207
+ priceSource?: {
3208
+ sourceId: string;
3209
+ sourceEntryId: string;
3210
+ sourceVersion: string;
3211
+ sourceUrl?: string;
3212
+ observedAt: string;
3213
+ };
3214
+ reason: "missingBillingIdentity" | "missingRateCard" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
3215
+ 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">;
3216
+ ratedAt: string;
3217
+ };
3218
+ valuationStatus: "rated" | "unpriceable" | "unvalued";
3219
+ }>;
3220
+ hasMore: boolean;
3221
+ total: number;
3222
+ }, unknown>;
3223
+ [dataTagErrorSymbol]: ListAiModelCallsError;
3224
+ };
3225
+ };
3226
+ export declare const listAiLimitPoliciesQueryKey: (options?: Options<ListAiLimitPoliciesData>) => [Pick<Options<ListAiLimitPoliciesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
3227
+ _id: string;
3228
+ _infinite?: boolean;
3229
+ tags?: ReadonlyArray<string>;
3230
+ }];
3231
+ /**
3232
+ * List project AI usage-limit policies
3233
+ */
3234
+ export declare const listAiLimitPoliciesOptions: (options?: Options<ListAiLimitPoliciesData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
3235
+ items: Array<{
3236
+ id: string;
3237
+ subject: {
3238
+ type: "project";
3239
+ } | {
3240
+ type: "group";
3241
+ id: string;
3242
+ } | {
3243
+ type: "user";
3244
+ id: string;
3245
+ } | {
3246
+ type: "serviceAccount";
3247
+ id: string;
3248
+ };
3249
+ limit: {
3250
+ meter: "tokens.total";
3251
+ amount: number;
3252
+ } | {
3253
+ meter: "cost.catalogEstimated";
3254
+ amount: {
3255
+ currency: "USD";
3256
+ amountNanos: string;
3257
+ };
3258
+ };
3259
+ period: "calendarMonth";
3260
+ enabled: boolean;
3261
+ createdAt: string;
3262
+ updatedAt: string;
3263
+ }>;
3264
+ capabilities: {
3265
+ manage: boolean;
3266
+ };
3267
+ }, ListAiLimitPoliciesError, {
3268
+ items: Array<{
3269
+ id: string;
3270
+ subject: {
3271
+ type: "project";
3272
+ } | {
3273
+ type: "group";
3274
+ id: string;
3275
+ } | {
3276
+ type: "user";
3277
+ id: string;
3278
+ } | {
3279
+ type: "serviceAccount";
3280
+ id: string;
3281
+ };
3282
+ limit: {
3283
+ meter: "tokens.total";
3284
+ amount: number;
3285
+ } | {
3286
+ meter: "cost.catalogEstimated";
3287
+ amount: {
3288
+ currency: "USD";
3289
+ amountNanos: string;
3290
+ };
3291
+ };
3292
+ period: "calendarMonth";
3293
+ enabled: boolean;
3294
+ createdAt: string;
3295
+ updatedAt: string;
3296
+ }>;
3297
+ capabilities: {
3298
+ manage: boolean;
3299
+ };
3300
+ }, [Pick<Options<ListAiLimitPoliciesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
3301
+ _id: string;
3302
+ _infinite?: boolean;
3303
+ tags?: ReadonlyArray<string>;
3304
+ }]>, "queryFn"> & {
3305
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
3306
+ items: Array<{
3307
+ id: string;
3308
+ subject: {
3309
+ type: "project";
3310
+ } | {
3311
+ type: "group";
3312
+ id: string;
3313
+ } | {
3314
+ type: "user";
3315
+ id: string;
3316
+ } | {
3317
+ type: "serviceAccount";
3318
+ id: string;
3319
+ };
3320
+ limit: {
3321
+ meter: "tokens.total";
3322
+ amount: number;
3323
+ } | {
3324
+ meter: "cost.catalogEstimated";
3325
+ amount: {
3326
+ currency: "USD";
3327
+ amountNanos: string;
3328
+ };
3329
+ };
3330
+ period: "calendarMonth";
3331
+ enabled: boolean;
3332
+ createdAt: string;
3333
+ updatedAt: string;
3334
+ }>;
3335
+ capabilities: {
3336
+ manage: boolean;
3337
+ };
3338
+ }, [Pick<Options<ListAiLimitPoliciesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
3339
+ _id: string;
3340
+ _infinite?: boolean;
3341
+ tags?: ReadonlyArray<string>;
3342
+ }], never> | undefined;
3343
+ } & {
3344
+ queryKey: [Pick<Options<ListAiLimitPoliciesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
3345
+ _id: string;
3346
+ _infinite?: boolean;
3347
+ tags?: ReadonlyArray<string>;
3348
+ }] & {
3349
+ [dataTagSymbol]: {
3350
+ items: Array<{
3351
+ id: string;
3352
+ subject: {
3353
+ type: "project";
3354
+ } | {
3355
+ type: "group";
3356
+ id: string;
3357
+ } | {
3358
+ type: "user";
3359
+ id: string;
3360
+ } | {
3361
+ type: "serviceAccount";
3362
+ id: string;
3363
+ };
3364
+ limit: {
3365
+ meter: "tokens.total";
3366
+ amount: number;
3367
+ } | {
3368
+ meter: "cost.catalogEstimated";
3369
+ amount: {
3370
+ currency: "USD";
3371
+ amountNanos: string;
3372
+ };
3373
+ };
3374
+ period: "calendarMonth";
3375
+ enabled: boolean;
3376
+ createdAt: string;
3377
+ updatedAt: string;
3378
+ }>;
3379
+ capabilities: {
3380
+ manage: boolean;
3381
+ };
3382
+ };
3383
+ [dataTagErrorSymbol]: ListAiLimitPoliciesError;
3384
+ };
3385
+ };
3386
+ /**
3387
+ * Create an AI usage-limit policy
3388
+ */
3389
+ export declare const createAiLimitPolicyMutation: (options?: Partial<Options<CreateAiLimitPolicyData>>) => UseMutationOptions<CreateAiLimitPolicyResponse, CreateAiLimitPolicyError, Options<CreateAiLimitPolicyData>>;
3390
+ export declare const getAiLimitStatusQueryKey: (options?: Options<GetAiLimitStatusData>) => [Pick<Options<GetAiLimitStatusData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
3391
+ _id: string;
3392
+ _infinite?: boolean;
3393
+ tags?: ReadonlyArray<string>;
3394
+ }];
3395
+ /**
3396
+ * Get current project AI usage-limit status
3397
+ */
3398
+ export declare const getAiLimitStatusOptions: (options?: Options<GetAiLimitStatusData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
3399
+ items: Array<{
3400
+ policy: {
3401
+ id: string;
3402
+ subject: {
3403
+ type: "project";
3404
+ } | {
3405
+ type: "group";
3406
+ id: string;
3407
+ } | {
3408
+ type: "user";
3409
+ id: string;
3410
+ } | {
3411
+ type: "serviceAccount";
3412
+ id: string;
3413
+ };
3414
+ limit: {
3415
+ meter: "tokens.total";
3416
+ amount: number;
3417
+ } | {
3418
+ meter: "cost.catalogEstimated";
3419
+ amount: {
3420
+ currency: "USD";
3421
+ amountNanos: string;
3422
+ };
3423
+ };
3424
+ period: "calendarMonth";
3425
+ enabled: boolean;
3426
+ createdAt: string;
3427
+ updatedAt: string;
3428
+ };
3429
+ period: {
3430
+ kind: "calendarMonth";
3431
+ start: string;
3432
+ end: string;
3433
+ resetAt: string;
3434
+ };
3435
+ consumption: {
3436
+ actual: {
3437
+ meter: "tokens.total";
3438
+ amount: number;
3439
+ } | {
3440
+ meter: "cost.catalogEstimated";
3441
+ amount: {
3442
+ currency: "USD";
3443
+ amountNanos: string;
3444
+ };
3445
+ };
3446
+ reserved: {
3447
+ meter: "tokens.total";
3448
+ amount: number;
3449
+ } | {
3450
+ meter: "cost.catalogEstimated";
3451
+ amount: {
3452
+ currency: "USD";
3453
+ amountNanos: string;
3454
+ };
3455
+ };
3456
+ unknown: {
3457
+ meter: "tokens.total";
3458
+ amount: number;
3459
+ } | {
3460
+ meter: "cost.catalogEstimated";
3461
+ amount: {
3462
+ currency: "USD";
3463
+ amountNanos: string;
3464
+ };
3465
+ };
3466
+ remaining: {
3467
+ meter: "tokens.total";
3468
+ amount: number;
3469
+ } | {
3470
+ meter: "cost.catalogEstimated";
3471
+ amount: {
3472
+ currency: "USD";
3473
+ amountNanos: string;
3474
+ };
3475
+ };
3476
+ };
3477
+ accountingStatus: "complete" | "unavailable";
3478
+ exhausted: boolean;
3479
+ orphaned: boolean;
3480
+ }>;
3481
+ capabilities: {
3482
+ manage: boolean;
3483
+ };
3484
+ }, GetAiLimitStatusError, {
3485
+ items: Array<{
3486
+ policy: {
3487
+ id: string;
3488
+ subject: {
3489
+ type: "project";
3490
+ } | {
3491
+ type: "group";
3492
+ id: string;
3493
+ } | {
3494
+ type: "user";
3495
+ id: string;
3496
+ } | {
3497
+ type: "serviceAccount";
3498
+ id: string;
3499
+ };
3500
+ limit: {
3501
+ meter: "tokens.total";
3502
+ amount: number;
3503
+ } | {
3504
+ meter: "cost.catalogEstimated";
3505
+ amount: {
3506
+ currency: "USD";
3507
+ amountNanos: string;
3508
+ };
3509
+ };
3510
+ period: "calendarMonth";
3511
+ enabled: boolean;
3512
+ createdAt: string;
3513
+ updatedAt: string;
3514
+ };
3515
+ period: {
3516
+ kind: "calendarMonth";
3517
+ start: string;
3518
+ end: string;
3519
+ resetAt: string;
3520
+ };
3521
+ consumption: {
3522
+ actual: {
3523
+ meter: "tokens.total";
3524
+ amount: number;
3525
+ } | {
3526
+ meter: "cost.catalogEstimated";
3527
+ amount: {
3528
+ currency: "USD";
3529
+ amountNanos: string;
3530
+ };
3531
+ };
3532
+ reserved: {
3533
+ meter: "tokens.total";
3534
+ amount: number;
3535
+ } | {
3536
+ meter: "cost.catalogEstimated";
3537
+ amount: {
3538
+ currency: "USD";
3539
+ amountNanos: string;
3540
+ };
3541
+ };
3542
+ unknown: {
3543
+ meter: "tokens.total";
3544
+ amount: number;
3545
+ } | {
3546
+ meter: "cost.catalogEstimated";
3547
+ amount: {
3548
+ currency: "USD";
3549
+ amountNanos: string;
3550
+ };
3551
+ };
3552
+ remaining: {
3553
+ meter: "tokens.total";
3554
+ amount: number;
3555
+ } | {
3556
+ meter: "cost.catalogEstimated";
3557
+ amount: {
3558
+ currency: "USD";
3559
+ amountNanos: string;
3560
+ };
3561
+ };
3562
+ };
3563
+ accountingStatus: "complete" | "unavailable";
3564
+ exhausted: boolean;
3565
+ orphaned: boolean;
3566
+ }>;
3567
+ capabilities: {
3568
+ manage: boolean;
3569
+ };
3570
+ }, [Pick<Options<GetAiLimitStatusData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
3571
+ _id: string;
3572
+ _infinite?: boolean;
3573
+ tags?: ReadonlyArray<string>;
3574
+ }]>, "queryFn"> & {
3575
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
3576
+ items: Array<{
3577
+ policy: {
3578
+ id: string;
3579
+ subject: {
3580
+ type: "project";
3581
+ } | {
3582
+ type: "group";
3583
+ id: string;
3584
+ } | {
3585
+ type: "user";
3586
+ id: string;
3587
+ } | {
3588
+ type: "serviceAccount";
3589
+ id: string;
3590
+ };
3591
+ limit: {
3592
+ meter: "tokens.total";
3593
+ amount: number;
3594
+ } | {
3595
+ meter: "cost.catalogEstimated";
3596
+ amount: {
3597
+ currency: "USD";
3598
+ amountNanos: string;
3599
+ };
3600
+ };
3601
+ period: "calendarMonth";
3602
+ enabled: boolean;
3603
+ createdAt: string;
3604
+ updatedAt: string;
3605
+ };
3606
+ period: {
3607
+ kind: "calendarMonth";
3608
+ start: string;
3609
+ end: string;
3610
+ resetAt: string;
3611
+ };
3612
+ consumption: {
3613
+ actual: {
3614
+ meter: "tokens.total";
3615
+ amount: number;
3616
+ } | {
3617
+ meter: "cost.catalogEstimated";
3618
+ amount: {
3619
+ currency: "USD";
3620
+ amountNanos: string;
3621
+ };
3622
+ };
3623
+ reserved: {
3624
+ meter: "tokens.total";
3625
+ amount: number;
3626
+ } | {
3627
+ meter: "cost.catalogEstimated";
3628
+ amount: {
3629
+ currency: "USD";
3630
+ amountNanos: string;
3631
+ };
3632
+ };
3633
+ unknown: {
3634
+ meter: "tokens.total";
3635
+ amount: number;
3636
+ } | {
3637
+ meter: "cost.catalogEstimated";
3638
+ amount: {
3639
+ currency: "USD";
3640
+ amountNanos: string;
3641
+ };
3642
+ };
3643
+ remaining: {
3644
+ meter: "tokens.total";
3645
+ amount: number;
3646
+ } | {
3647
+ meter: "cost.catalogEstimated";
3648
+ amount: {
3649
+ currency: "USD";
3650
+ amountNanos: string;
3651
+ };
3652
+ };
3653
+ };
3654
+ accountingStatus: "complete" | "unavailable";
3655
+ exhausted: boolean;
3656
+ orphaned: boolean;
3657
+ }>;
3658
+ capabilities: {
3659
+ manage: boolean;
3660
+ };
3661
+ }, [Pick<Options<GetAiLimitStatusData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
3662
+ _id: string;
3663
+ _infinite?: boolean;
3664
+ tags?: ReadonlyArray<string>;
3665
+ }], never> | undefined;
3666
+ } & {
3667
+ queryKey: [Pick<Options<GetAiLimitStatusData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
3668
+ _id: string;
3669
+ _infinite?: boolean;
3670
+ tags?: ReadonlyArray<string>;
3671
+ }] & {
3672
+ [dataTagSymbol]: {
3673
+ items: Array<{
3674
+ policy: {
3675
+ id: string;
3676
+ subject: {
3677
+ type: "project";
3678
+ } | {
3679
+ type: "group";
3680
+ id: string;
3681
+ } | {
3682
+ type: "user";
3683
+ id: string;
3684
+ } | {
3685
+ type: "serviceAccount";
3686
+ id: string;
3687
+ };
3688
+ limit: {
3689
+ meter: "tokens.total";
3690
+ amount: number;
3691
+ } | {
3692
+ meter: "cost.catalogEstimated";
3693
+ amount: {
3694
+ currency: "USD";
3695
+ amountNanos: string;
3696
+ };
3697
+ };
3698
+ period: "calendarMonth";
3699
+ enabled: boolean;
3700
+ createdAt: string;
3701
+ updatedAt: string;
3702
+ };
3703
+ period: {
3704
+ kind: "calendarMonth";
3705
+ start: string;
3706
+ end: string;
3707
+ resetAt: string;
3708
+ };
3709
+ consumption: {
3710
+ actual: {
3711
+ meter: "tokens.total";
3712
+ amount: number;
3713
+ } | {
3714
+ meter: "cost.catalogEstimated";
3715
+ amount: {
3716
+ currency: "USD";
3717
+ amountNanos: string;
3718
+ };
3719
+ };
3720
+ reserved: {
3721
+ meter: "tokens.total";
3722
+ amount: number;
3723
+ } | {
3724
+ meter: "cost.catalogEstimated";
3725
+ amount: {
3726
+ currency: "USD";
3727
+ amountNanos: string;
3728
+ };
3729
+ };
3730
+ unknown: {
3731
+ meter: "tokens.total";
3732
+ amount: number;
3733
+ } | {
3734
+ meter: "cost.catalogEstimated";
3735
+ amount: {
3736
+ currency: "USD";
3737
+ amountNanos: string;
3738
+ };
3739
+ };
3740
+ remaining: {
3741
+ meter: "tokens.total";
3742
+ amount: number;
3743
+ } | {
3744
+ meter: "cost.catalogEstimated";
3745
+ amount: {
3746
+ currency: "USD";
3747
+ amountNanos: string;
3748
+ };
3749
+ };
3750
+ };
3751
+ accountingStatus: "complete" | "unavailable";
3752
+ exhausted: boolean;
3753
+ orphaned: boolean;
3754
+ }>;
3755
+ capabilities: {
3756
+ manage: boolean;
3757
+ };
3758
+ };
3759
+ [dataTagErrorSymbol]: GetAiLimitStatusError;
3760
+ };
3761
+ };
3762
+ export declare const getAiLimitSubjectOptionsQueryKey: (options?: Options<GetAiLimitSubjectOptionsData>) => [Pick<Options<GetAiLimitSubjectOptionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
3763
+ _id: string;
3764
+ _infinite?: boolean;
3765
+ tags?: ReadonlyArray<string>;
3766
+ }];
3767
+ /**
3768
+ * Get selectable AI usage-limit subjects
3769
+ *
3770
+ * Lists registered groups and auth principals available for AI usage-limit policies.
3771
+ */
3772
+ export declare const getAiLimitSubjectOptionsOptions: (options?: Options<GetAiLimitSubjectOptionsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
3773
+ groups: Array<{
3774
+ id: string;
3775
+ label?: string;
3776
+ description?: string;
3777
+ }>;
3778
+ users: Array<{
3779
+ id: string;
3780
+ email: string;
3781
+ displayName?: string;
3782
+ status: "active" | "suspended";
3783
+ }>;
3784
+ serviceAccounts: Array<{
3785
+ id: string;
3786
+ name: string;
3787
+ description?: string;
3788
+ status: "active" | "suspended";
3789
+ }>;
3790
+ }, GetAiLimitSubjectOptionsError, {
3791
+ groups: Array<{
3792
+ id: string;
3793
+ label?: string;
3794
+ description?: string;
3795
+ }>;
3796
+ users: Array<{
3797
+ id: string;
3798
+ email: string;
3799
+ displayName?: string;
3800
+ status: "active" | "suspended";
3801
+ }>;
3802
+ serviceAccounts: Array<{
3803
+ id: string;
3804
+ name: string;
3805
+ description?: string;
3806
+ status: "active" | "suspended";
3807
+ }>;
3808
+ }, [Pick<Options<GetAiLimitSubjectOptionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
3809
+ _id: string;
3810
+ _infinite?: boolean;
3811
+ tags?: ReadonlyArray<string>;
3812
+ }]>, "queryFn"> & {
3813
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
3814
+ groups: Array<{
3815
+ id: string;
3816
+ label?: string;
3817
+ description?: string;
3818
+ }>;
3819
+ users: Array<{
3820
+ id: string;
3821
+ email: string;
3822
+ displayName?: string;
3823
+ status: "active" | "suspended";
3824
+ }>;
3825
+ serviceAccounts: Array<{
3826
+ id: string;
3827
+ name: string;
3828
+ description?: string;
3829
+ status: "active" | "suspended";
3830
+ }>;
3831
+ }, [Pick<Options<GetAiLimitSubjectOptionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
3832
+ _id: string;
3833
+ _infinite?: boolean;
3834
+ tags?: ReadonlyArray<string>;
3835
+ }], never> | undefined;
3836
+ } & {
3837
+ queryKey: [Pick<Options<GetAiLimitSubjectOptionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
3838
+ _id: string;
3839
+ _infinite?: boolean;
3840
+ tags?: ReadonlyArray<string>;
3841
+ }] & {
3842
+ [dataTagSymbol]: {
3843
+ groups: Array<{
3844
+ id: string;
3845
+ label?: string;
3846
+ description?: string;
3847
+ }>;
3848
+ users: Array<{
3849
+ id: string;
3850
+ email: string;
3851
+ displayName?: string;
3852
+ status: "active" | "suspended";
3853
+ }>;
3854
+ serviceAccounts: Array<{
3855
+ id: string;
3856
+ name: string;
3857
+ description?: string;
3858
+ status: "active" | "suspended";
3859
+ }>;
3860
+ };
3861
+ [dataTagErrorSymbol]: GetAiLimitSubjectOptionsError;
3862
+ };
3863
+ };
3864
+ /**
3865
+ * Delete an AI usage-limit policy
3866
+ */
3867
+ export declare const deleteAiLimitPolicyMutation: (options?: Partial<Options<DeleteAiLimitPolicyData>>) => UseMutationOptions<DeleteAiLimitPolicyResponse, DeleteAiLimitPolicyError, Options<DeleteAiLimitPolicyData>>;
3868
+ /**
3869
+ * Update an AI usage-limit policy
3870
+ */
3871
+ export declare const updateAiLimitPolicyMutation: (options?: Partial<Options<UpdateAiLimitPolicyData>>) => UseMutationOptions<UpdateAiLimitPolicyResponse, UpdateAiLimitPolicyError, Options<UpdateAiLimitPolicyData>>;
3872
+ export declare const listAiModelCallGroupsQueryKey: (options: Options<ListAiModelCallGroupsData>) => [Pick<Options<ListAiModelCallGroupsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
3873
+ _id: string;
3874
+ _infinite?: boolean;
3875
+ tags?: ReadonlyArray<string>;
3876
+ }];
3877
+ /**
3878
+ * List AI model calls grouped by initiating execution
3879
+ */
3880
+ export declare const listAiModelCallGroupsOptions: (options: Options<ListAiModelCallGroupsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
3881
+ items: Array<{
3882
+ executionId: string;
3883
+ attribution?: {
3884
+ kind: "agent";
3885
+ agentRunId: string;
3886
+ threadId: string;
3887
+ } | {
3888
+ kind: "workflowAgent";
3889
+ agentStepId: string;
3890
+ nodeRunId: string;
3891
+ workflowId: string;
3892
+ workflowRunId: string;
3893
+ } | {
3894
+ kind: "subagent";
3895
+ subagentRunId: string;
3896
+ parentRunId: string;
3897
+ };
3898
+ modelCallCount: number;
3899
+ totalTokens?: number;
3900
+ costs: {
3901
+ amounts: Array<{
3902
+ currency: string;
3903
+ amountNanos: string;
3904
+ }>;
3905
+ ratedCallCount: number;
3906
+ unpriceableCallCount: number;
3907
+ unvaluedCallCount: number;
3908
+ };
3909
+ firstCallAt: string;
3910
+ lastCallAt: string;
3911
+ label?: string;
3912
+ executions: Array<{
3913
+ executionId: string;
3914
+ attribution?: {
3915
+ kind: "agent";
3916
+ agentRunId: string;
3917
+ threadId: string;
3918
+ } | {
3919
+ kind: "workflowAgent";
3920
+ agentStepId: string;
3921
+ nodeRunId: string;
3922
+ workflowId: string;
3923
+ workflowRunId: string;
3924
+ } | {
3925
+ kind: "subagent";
3926
+ subagentRunId: string;
3927
+ parentRunId: string;
3928
+ };
3929
+ modelCallCount: number;
3930
+ totalTokens?: number;
3931
+ costs: {
3932
+ amounts: Array<{
3933
+ currency: string;
3934
+ amountNanos: string;
3935
+ }>;
3936
+ ratedCallCount: number;
3937
+ unpriceableCallCount: number;
3938
+ unvaluedCallCount: number;
3939
+ };
3940
+ firstCallAt: string;
3941
+ lastCallAt: string;
3942
+ models: Array<{
3943
+ providerId: string;
3944
+ modelId: string;
3945
+ }>;
3946
+ label?: string;
3947
+ }>;
3948
+ canOpenThread: boolean;
3949
+ }>;
3950
+ total: number;
3951
+ hasMore: boolean;
3952
+ }, ListAiModelCallGroupsError, {
3953
+ items: Array<{
3954
+ executionId: string;
3955
+ attribution?: {
3956
+ kind: "agent";
3957
+ agentRunId: string;
3958
+ threadId: string;
3959
+ } | {
3960
+ kind: "workflowAgent";
3961
+ agentStepId: string;
3962
+ nodeRunId: string;
3963
+ workflowId: string;
3964
+ workflowRunId: string;
3965
+ } | {
3966
+ kind: "subagent";
3967
+ subagentRunId: string;
3968
+ parentRunId: string;
3969
+ };
3970
+ modelCallCount: number;
3971
+ totalTokens?: number;
3972
+ costs: {
3973
+ amounts: Array<{
3974
+ currency: string;
3975
+ amountNanos: string;
3976
+ }>;
3977
+ ratedCallCount: number;
3978
+ unpriceableCallCount: number;
3979
+ unvaluedCallCount: number;
3980
+ };
3981
+ firstCallAt: string;
3982
+ lastCallAt: string;
3983
+ label?: string;
3984
+ executions: Array<{
3985
+ executionId: string;
3986
+ attribution?: {
3987
+ kind: "agent";
3988
+ agentRunId: string;
3989
+ threadId: string;
3990
+ } | {
3991
+ kind: "workflowAgent";
3992
+ agentStepId: string;
3993
+ nodeRunId: string;
3994
+ workflowId: string;
3995
+ workflowRunId: string;
3996
+ } | {
3997
+ kind: "subagent";
3998
+ subagentRunId: string;
3999
+ parentRunId: string;
4000
+ };
4001
+ modelCallCount: number;
4002
+ totalTokens?: number;
4003
+ costs: {
4004
+ amounts: Array<{
4005
+ currency: string;
4006
+ amountNanos: string;
4007
+ }>;
4008
+ ratedCallCount: number;
4009
+ unpriceableCallCount: number;
4010
+ unvaluedCallCount: number;
4011
+ };
4012
+ firstCallAt: string;
4013
+ lastCallAt: string;
4014
+ models: Array<{
4015
+ providerId: string;
4016
+ modelId: string;
4017
+ }>;
4018
+ label?: string;
4019
+ }>;
4020
+ canOpenThread: boolean;
4021
+ }>;
4022
+ total: number;
4023
+ hasMore: boolean;
4024
+ }, [Pick<Options<ListAiModelCallGroupsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
4025
+ _id: string;
4026
+ _infinite?: boolean;
4027
+ tags?: ReadonlyArray<string>;
4028
+ }]>, "queryFn"> & {
4029
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
4030
+ items: Array<{
4031
+ executionId: string;
4032
+ attribution?: {
4033
+ kind: "agent";
4034
+ agentRunId: string;
4035
+ threadId: string;
4036
+ } | {
4037
+ kind: "workflowAgent";
4038
+ agentStepId: string;
4039
+ nodeRunId: string;
4040
+ workflowId: string;
4041
+ workflowRunId: string;
4042
+ } | {
4043
+ kind: "subagent";
4044
+ subagentRunId: string;
4045
+ parentRunId: string;
4046
+ };
4047
+ modelCallCount: number;
4048
+ totalTokens?: number;
4049
+ costs: {
4050
+ amounts: Array<{
4051
+ currency: string;
4052
+ amountNanos: string;
4053
+ }>;
4054
+ ratedCallCount: number;
4055
+ unpriceableCallCount: number;
4056
+ unvaluedCallCount: number;
4057
+ };
4058
+ firstCallAt: string;
4059
+ lastCallAt: string;
4060
+ label?: string;
4061
+ executions: Array<{
4062
+ executionId: string;
4063
+ attribution?: {
4064
+ kind: "agent";
4065
+ agentRunId: string;
4066
+ threadId: string;
4067
+ } | {
4068
+ kind: "workflowAgent";
4069
+ agentStepId: string;
4070
+ nodeRunId: string;
4071
+ workflowId: string;
4072
+ workflowRunId: string;
4073
+ } | {
4074
+ kind: "subagent";
4075
+ subagentRunId: string;
4076
+ parentRunId: string;
4077
+ };
4078
+ modelCallCount: number;
4079
+ totalTokens?: number;
4080
+ costs: {
4081
+ amounts: Array<{
4082
+ currency: string;
4083
+ amountNanos: string;
4084
+ }>;
4085
+ ratedCallCount: number;
4086
+ unpriceableCallCount: number;
4087
+ unvaluedCallCount: number;
4088
+ };
4089
+ firstCallAt: string;
4090
+ lastCallAt: string;
4091
+ models: Array<{
4092
+ providerId: string;
4093
+ modelId: string;
4094
+ }>;
4095
+ label?: string;
4096
+ }>;
4097
+ canOpenThread: boolean;
4098
+ }>;
4099
+ total: number;
4100
+ hasMore: boolean;
4101
+ }, [Pick<Options<ListAiModelCallGroupsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
4102
+ _id: string;
4103
+ _infinite?: boolean;
4104
+ tags?: ReadonlyArray<string>;
4105
+ }], never> | undefined;
4106
+ } & {
4107
+ queryKey: [Pick<Options<ListAiModelCallGroupsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
4108
+ _id: string;
4109
+ _infinite?: boolean;
4110
+ tags?: ReadonlyArray<string>;
4111
+ }] & {
4112
+ [dataTagSymbol]: {
4113
+ items: Array<{
4114
+ executionId: string;
4115
+ attribution?: {
4116
+ kind: "agent";
4117
+ agentRunId: string;
4118
+ threadId: string;
4119
+ } | {
4120
+ kind: "workflowAgent";
4121
+ agentStepId: string;
4122
+ nodeRunId: string;
4123
+ workflowId: string;
4124
+ workflowRunId: string;
4125
+ } | {
4126
+ kind: "subagent";
4127
+ subagentRunId: string;
4128
+ parentRunId: string;
4129
+ };
4130
+ modelCallCount: number;
4131
+ totalTokens?: number;
4132
+ costs: {
4133
+ amounts: Array<{
4134
+ currency: string;
4135
+ amountNanos: string;
4136
+ }>;
4137
+ ratedCallCount: number;
4138
+ unpriceableCallCount: number;
4139
+ unvaluedCallCount: number;
4140
+ };
4141
+ firstCallAt: string;
4142
+ lastCallAt: string;
4143
+ label?: string;
4144
+ executions: Array<{
4145
+ executionId: string;
4146
+ attribution?: {
4147
+ kind: "agent";
4148
+ agentRunId: string;
4149
+ threadId: string;
4150
+ } | {
4151
+ kind: "workflowAgent";
4152
+ agentStepId: string;
4153
+ nodeRunId: string;
4154
+ workflowId: string;
4155
+ workflowRunId: string;
4156
+ } | {
4157
+ kind: "subagent";
4158
+ subagentRunId: string;
4159
+ parentRunId: string;
4160
+ };
4161
+ modelCallCount: number;
4162
+ totalTokens?: number;
4163
+ costs: {
4164
+ amounts: Array<{
4165
+ currency: string;
4166
+ amountNanos: string;
4167
+ }>;
4168
+ ratedCallCount: number;
4169
+ unpriceableCallCount: number;
4170
+ unvaluedCallCount: number;
4171
+ };
4172
+ firstCallAt: string;
4173
+ lastCallAt: string;
4174
+ models: Array<{
4175
+ providerId: string;
4176
+ modelId: string;
4177
+ }>;
4178
+ label?: string;
4179
+ }>;
4180
+ canOpenThread: boolean;
4181
+ }>;
4182
+ total: number;
4183
+ hasMore: boolean;
4184
+ };
4185
+ [dataTagErrorSymbol]: ListAiModelCallGroupsError;
4186
+ };
4187
+ };
4188
+ export declare const listAiModelCallGroupsInfiniteQueryKey: (options: Options<ListAiModelCallGroupsData>) => QueryKey<Options<ListAiModelCallGroupsData>>;
4189
+ /**
4190
+ * List AI model calls grouped by initiating execution
4191
+ */
4192
+ export declare const listAiModelCallGroupsInfiniteOptions: (options: Options<ListAiModelCallGroupsData>) => import("@tanstack/react-query").UseInfiniteQueryOptions<{
4193
+ items: Array<{
4194
+ executionId: string;
4195
+ attribution?: {
4196
+ kind: "agent";
4197
+ agentRunId: string;
4198
+ threadId: string;
4199
+ } | {
4200
+ kind: "workflowAgent";
4201
+ agentStepId: string;
4202
+ nodeRunId: string;
4203
+ workflowId: string;
4204
+ workflowRunId: string;
4205
+ } | {
4206
+ kind: "subagent";
4207
+ subagentRunId: string;
4208
+ parentRunId: string;
4209
+ };
4210
+ modelCallCount: number;
4211
+ totalTokens?: number;
4212
+ costs: {
4213
+ amounts: Array<{
4214
+ currency: string;
4215
+ amountNanos: string;
4216
+ }>;
4217
+ ratedCallCount: number;
4218
+ unpriceableCallCount: number;
4219
+ unvaluedCallCount: number;
4220
+ };
4221
+ firstCallAt: string;
4222
+ lastCallAt: string;
4223
+ label?: string;
4224
+ executions: Array<{
4225
+ executionId: string;
4226
+ attribution?: {
4227
+ kind: "agent";
4228
+ agentRunId: string;
4229
+ threadId: string;
4230
+ } | {
4231
+ kind: "workflowAgent";
4232
+ agentStepId: string;
4233
+ nodeRunId: string;
4234
+ workflowId: string;
4235
+ workflowRunId: string;
4236
+ } | {
4237
+ kind: "subagent";
4238
+ subagentRunId: string;
4239
+ parentRunId: string;
4240
+ };
4241
+ modelCallCount: number;
4242
+ totalTokens?: number;
4243
+ costs: {
4244
+ amounts: Array<{
4245
+ currency: string;
4246
+ amountNanos: string;
4247
+ }>;
4248
+ ratedCallCount: number;
4249
+ unpriceableCallCount: number;
4250
+ unvaluedCallCount: number;
4251
+ };
4252
+ firstCallAt: string;
4253
+ lastCallAt: string;
4254
+ models: Array<{
4255
+ providerId: string;
4256
+ modelId: string;
4257
+ }>;
4258
+ label?: string;
4259
+ }>;
4260
+ canOpenThread: boolean;
4261
+ }>;
4262
+ total: number;
4263
+ hasMore: boolean;
4264
+ }, ListAiModelCallGroupsError, InfiniteData<{
4265
+ items: Array<{
4266
+ executionId: string;
4267
+ attribution?: {
4268
+ kind: "agent";
4269
+ agentRunId: string;
4270
+ threadId: string;
4271
+ } | {
4272
+ kind: "workflowAgent";
4273
+ agentStepId: string;
4274
+ nodeRunId: string;
4275
+ workflowId: string;
4276
+ workflowRunId: string;
4277
+ } | {
4278
+ kind: "subagent";
4279
+ subagentRunId: string;
4280
+ parentRunId: string;
4281
+ };
4282
+ modelCallCount: number;
4283
+ totalTokens?: number;
4284
+ costs: {
4285
+ amounts: Array<{
4286
+ currency: string;
4287
+ amountNanos: string;
4288
+ }>;
4289
+ ratedCallCount: number;
4290
+ unpriceableCallCount: number;
4291
+ unvaluedCallCount: number;
4292
+ };
4293
+ firstCallAt: string;
4294
+ lastCallAt: string;
4295
+ label?: string;
4296
+ executions: Array<{
4297
+ executionId: string;
4298
+ attribution?: {
4299
+ kind: "agent";
4300
+ agentRunId: string;
4301
+ threadId: string;
4302
+ } | {
4303
+ kind: "workflowAgent";
4304
+ agentStepId: string;
4305
+ nodeRunId: string;
4306
+ workflowId: string;
4307
+ workflowRunId: string;
4308
+ } | {
4309
+ kind: "subagent";
4310
+ subagentRunId: string;
4311
+ parentRunId: string;
4312
+ };
4313
+ modelCallCount: number;
4314
+ totalTokens?: number;
4315
+ costs: {
4316
+ amounts: Array<{
4317
+ currency: string;
4318
+ amountNanos: string;
4319
+ }>;
4320
+ ratedCallCount: number;
4321
+ unpriceableCallCount: number;
4322
+ unvaluedCallCount: number;
4323
+ };
4324
+ firstCallAt: string;
4325
+ lastCallAt: string;
4326
+ models: Array<{
4327
+ providerId: string;
4328
+ modelId: string;
4329
+ }>;
4330
+ label?: string;
4331
+ }>;
4332
+ canOpenThread: boolean;
4333
+ }>;
4334
+ total: number;
4335
+ hasMore: boolean;
4336
+ }, unknown>, QueryKey<Options<ListAiModelCallGroupsData>>, string | Pick<Pick<Options<ListAiModelCallGroupsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
4337
+ _id: string;
4338
+ _infinite?: boolean;
4339
+ tags?: ReadonlyArray<string>;
4340
+ }, "query" | "body" | "headers" | "path">> & {
4341
+ initialData: InfiniteData<{
4342
+ items: Array<{
4343
+ executionId: string;
4344
+ attribution?: {
4345
+ kind: "agent";
4346
+ agentRunId: string;
4347
+ threadId: string;
4348
+ } | {
4349
+ kind: "workflowAgent";
4350
+ agentStepId: string;
4351
+ nodeRunId: string;
4352
+ workflowId: string;
4353
+ workflowRunId: string;
4354
+ } | {
4355
+ kind: "subagent";
4356
+ subagentRunId: string;
4357
+ parentRunId: string;
4358
+ };
4359
+ modelCallCount: number;
4360
+ totalTokens?: number;
4361
+ costs: {
4362
+ amounts: Array<{
4363
+ currency: string;
4364
+ amountNanos: string;
4365
+ }>;
4366
+ ratedCallCount: number;
4367
+ unpriceableCallCount: number;
4368
+ unvaluedCallCount: number;
4369
+ };
4370
+ firstCallAt: string;
4371
+ lastCallAt: string;
4372
+ label?: string;
4373
+ executions: Array<{
4374
+ executionId: string;
4375
+ attribution?: {
4376
+ kind: "agent";
4377
+ agentRunId: string;
4378
+ threadId: string;
4379
+ } | {
4380
+ kind: "workflowAgent";
4381
+ agentStepId: string;
4382
+ nodeRunId: string;
4383
+ workflowId: string;
4384
+ workflowRunId: string;
4385
+ } | {
4386
+ kind: "subagent";
4387
+ subagentRunId: string;
4388
+ parentRunId: string;
4389
+ };
4390
+ modelCallCount: number;
4391
+ totalTokens?: number;
4392
+ costs: {
4393
+ amounts: Array<{
4394
+ currency: string;
4395
+ amountNanos: string;
4396
+ }>;
4397
+ ratedCallCount: number;
4398
+ unpriceableCallCount: number;
4399
+ unvaluedCallCount: number;
4400
+ };
4401
+ firstCallAt: string;
4402
+ lastCallAt: string;
4403
+ models: Array<{
4404
+ providerId: string;
4405
+ modelId: string;
4406
+ }>;
4407
+ label?: string;
4408
+ }>;
4409
+ canOpenThread: boolean;
4410
+ }>;
4411
+ total: number;
4412
+ hasMore: boolean;
4413
+ }, string | Pick<Pick<Options<ListAiModelCallGroupsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
4414
+ _id: string;
4415
+ _infinite?: boolean;
4416
+ tags?: ReadonlyArray<string>;
4417
+ }, "query" | "body" | "headers" | "path">> | (() => InfiniteData<{
4418
+ items: Array<{
4419
+ executionId: string;
4420
+ attribution?: {
4421
+ kind: "agent";
4422
+ agentRunId: string;
4423
+ threadId: string;
4424
+ } | {
4425
+ kind: "workflowAgent";
4426
+ agentStepId: string;
4427
+ nodeRunId: string;
4428
+ workflowId: string;
4429
+ workflowRunId: string;
4430
+ } | {
4431
+ kind: "subagent";
4432
+ subagentRunId: string;
4433
+ parentRunId: string;
4434
+ };
4435
+ modelCallCount: number;
4436
+ totalTokens?: number;
4437
+ costs: {
4438
+ amounts: Array<{
4439
+ currency: string;
4440
+ amountNanos: string;
4441
+ }>;
4442
+ ratedCallCount: number;
4443
+ unpriceableCallCount: number;
4444
+ unvaluedCallCount: number;
4445
+ };
4446
+ firstCallAt: string;
4447
+ lastCallAt: string;
4448
+ label?: string;
4449
+ executions: Array<{
4450
+ executionId: string;
4451
+ attribution?: {
4452
+ kind: "agent";
4453
+ agentRunId: string;
4454
+ threadId: string;
4455
+ } | {
4456
+ kind: "workflowAgent";
4457
+ agentStepId: string;
4458
+ nodeRunId: string;
4459
+ workflowId: string;
4460
+ workflowRunId: string;
4461
+ } | {
4462
+ kind: "subagent";
4463
+ subagentRunId: string;
4464
+ parentRunId: string;
4465
+ };
4466
+ modelCallCount: number;
4467
+ totalTokens?: number;
4468
+ costs: {
4469
+ amounts: Array<{
4470
+ currency: string;
4471
+ amountNanos: string;
4472
+ }>;
4473
+ ratedCallCount: number;
4474
+ unpriceableCallCount: number;
4475
+ unvaluedCallCount: number;
4476
+ };
4477
+ firstCallAt: string;
4478
+ lastCallAt: string;
4479
+ models: Array<{
4480
+ providerId: string;
4481
+ modelId: string;
4482
+ }>;
4483
+ label?: string;
4484
+ }>;
4485
+ canOpenThread: boolean;
4486
+ }>;
4487
+ total: number;
4488
+ hasMore: boolean;
4489
+ }, string | Pick<Pick<Options<ListAiModelCallGroupsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
4490
+ _id: string;
4491
+ _infinite?: boolean;
4492
+ tags?: ReadonlyArray<string>;
4493
+ }, "query" | "body" | "headers" | "path">>) | undefined;
4494
+ } & {
4495
+ queryKey: QueryKey<Options<ListAiModelCallGroupsData>> & {
4496
+ [dataTagSymbol]: InfiniteData<{
4497
+ items: Array<{
4498
+ executionId: string;
4499
+ attribution?: {
4500
+ kind: "agent";
4501
+ agentRunId: string;
4502
+ threadId: string;
4503
+ } | {
4504
+ kind: "workflowAgent";
4505
+ agentStepId: string;
4506
+ nodeRunId: string;
4507
+ workflowId: string;
4508
+ workflowRunId: string;
4509
+ } | {
4510
+ kind: "subagent";
4511
+ subagentRunId: string;
4512
+ parentRunId: string;
4513
+ };
4514
+ modelCallCount: number;
4515
+ totalTokens?: number;
4516
+ costs: {
4517
+ amounts: Array<{
4518
+ currency: string;
4519
+ amountNanos: string;
4520
+ }>;
4521
+ ratedCallCount: number;
4522
+ unpriceableCallCount: number;
4523
+ unvaluedCallCount: number;
4524
+ };
4525
+ firstCallAt: string;
4526
+ lastCallAt: string;
4527
+ label?: string;
4528
+ executions: Array<{
4529
+ executionId: string;
4530
+ attribution?: {
4531
+ kind: "agent";
4532
+ agentRunId: string;
4533
+ threadId: string;
4534
+ } | {
4535
+ kind: "workflowAgent";
4536
+ agentStepId: string;
4537
+ nodeRunId: string;
4538
+ workflowId: string;
4539
+ workflowRunId: string;
4540
+ } | {
4541
+ kind: "subagent";
4542
+ subagentRunId: string;
4543
+ parentRunId: string;
4544
+ };
4545
+ modelCallCount: number;
4546
+ totalTokens?: number;
4547
+ costs: {
4548
+ amounts: Array<{
4549
+ currency: string;
4550
+ amountNanos: string;
4551
+ }>;
4552
+ ratedCallCount: number;
4553
+ unpriceableCallCount: number;
4554
+ unvaluedCallCount: number;
4555
+ };
4556
+ firstCallAt: string;
4557
+ lastCallAt: string;
4558
+ models: Array<{
2644
4559
  providerId: string;
2645
4560
  modelId: string;
2646
- };
2647
- pricingContext: {
2648
- serviceTier?: string;
2649
- batch?: boolean;
2650
- region?: string;
2651
- inferenceGeo?: string;
2652
- routedProviderId?: string;
2653
- deploymentId?: string;
2654
- inferenceProfileId?: string;
2655
- cacheWriteTtlSeconds?: number;
2656
- mode?: string;
2657
- };
2658
- priceSource: {
2659
- sourceId: string;
2660
- sourceEntryId: string;
2661
- sourceVersion: string;
2662
- sourceUrl: string;
2663
- observedAt: string;
2664
- };
2665
- reason: "missingBillingIdentity" | "missingCatalogEntry" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
2666
- missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
2667
- ratedAt: string;
2668
- };
2669
- valuationStatus: "rated" | "unpriceable" | "unvalued";
4561
+ }>;
4562
+ label?: string;
4563
+ }>;
4564
+ canOpenThread: boolean;
2670
4565
  }>;
2671
- hasMore: boolean;
2672
4566
  total: number;
4567
+ hasMore: boolean;
2673
4568
  }, unknown>;
2674
- [dataTagErrorSymbol]: ListAiModelCallsError;
4569
+ [dataTagErrorSymbol]: ListAiModelCallGroupsError;
2675
4570
  };
2676
4571
  };
2677
4572
  export declare const getProjectInfoQueryKey: (options?: Options<GetProjectInfoData>) => [Pick<Options<GetProjectInfoData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
@@ -3590,6 +5485,7 @@ export declare const listDatasetsOptions: (options?: Options<ListDatasetsData>)
3590
5485
  id: string;
3591
5486
  description?: string;
3592
5487
  primaryKey?: string | Array<string>;
5488
+ sequenceBy?: string;
3593
5489
  partitionBy?: Array<string>;
3594
5490
  schema: {
3595
5491
  columns: Array<{
@@ -3617,6 +5513,7 @@ export declare const listDatasetsOptions: (options?: Options<ListDatasetsData>)
3617
5513
  id: string;
3618
5514
  description?: string;
3619
5515
  primaryKey?: string | Array<string>;
5516
+ sequenceBy?: string;
3620
5517
  partitionBy?: Array<string>;
3621
5518
  schema: {
3622
5519
  columns: Array<{
@@ -3647,6 +5544,7 @@ export declare const listDatasetsOptions: (options?: Options<ListDatasetsData>)
3647
5544
  id: string;
3648
5545
  description?: string;
3649
5546
  primaryKey?: string | Array<string>;
5547
+ sequenceBy?: string;
3650
5548
  partitionBy?: Array<string>;
3651
5549
  schema: {
3652
5550
  columns: Array<{
@@ -3683,6 +5581,7 @@ export declare const listDatasetsOptions: (options?: Options<ListDatasetsData>)
3683
5581
  id: string;
3684
5582
  description?: string;
3685
5583
  primaryKey?: string | Array<string>;
5584
+ sequenceBy?: string;
3686
5585
  partitionBy?: Array<string>;
3687
5586
  schema: {
3688
5587
  columns: Array<{
@@ -3722,6 +5621,7 @@ export declare const getDatasetOptions: (options: Options<GetDatasetData>) => im
3722
5621
  id: string;
3723
5622
  description?: string;
3724
5623
  primaryKey?: string | Array<string>;
5624
+ sequenceBy?: string;
3725
5625
  partitionBy?: Array<string>;
3726
5626
  schema: {
3727
5627
  columns: Array<{
@@ -3747,6 +5647,7 @@ export declare const getDatasetOptions: (options: Options<GetDatasetData>) => im
3747
5647
  id: string;
3748
5648
  description?: string;
3749
5649
  primaryKey?: string | Array<string>;
5650
+ sequenceBy?: string;
3750
5651
  partitionBy?: Array<string>;
3751
5652
  schema: {
3752
5653
  columns: Array<{
@@ -3777,6 +5678,7 @@ export declare const getDatasetOptions: (options: Options<GetDatasetData>) => im
3777
5678
  id: string;
3778
5679
  description?: string;
3779
5680
  primaryKey?: string | Array<string>;
5681
+ sequenceBy?: string;
3780
5682
  partitionBy?: Array<string>;
3781
5683
  schema: {
3782
5684
  columns: Array<{
@@ -3813,6 +5715,7 @@ export declare const getDatasetOptions: (options: Options<GetDatasetData>) => im
3813
5715
  id: string;
3814
5716
  description?: string;
3815
5717
  primaryKey?: string | Array<string>;
5718
+ sequenceBy?: string;
3816
5719
  partitionBy?: Array<string>;
3817
5720
  schema: {
3818
5721
  columns: Array<{
@@ -3861,7 +5764,7 @@ export declare const listDatasetVersionsOptions: (options: Options<ListDatasetVe
3861
5764
  }>;
3862
5765
  };
3863
5766
  producer?: {
3864
- kind: "sync" | "pipeline";
5767
+ kind: "sync" | "pipeline" | "ingest";
3865
5768
  id?: string;
3866
5769
  runId?: string;
3867
5770
  };
@@ -3888,7 +5791,7 @@ export declare const listDatasetVersionsOptions: (options: Options<ListDatasetVe
3888
5791
  }>;
3889
5792
  };
3890
5793
  producer?: {
3891
- kind: "sync" | "pipeline";
5794
+ kind: "sync" | "pipeline" | "ingest";
3892
5795
  id?: string;
3893
5796
  runId?: string;
3894
5797
  };
@@ -3920,7 +5823,7 @@ export declare const listDatasetVersionsOptions: (options: Options<ListDatasetVe
3920
5823
  }>;
3921
5824
  };
3922
5825
  producer?: {
3923
- kind: "sync" | "pipeline";
5826
+ kind: "sync" | "pipeline" | "ingest";
3924
5827
  id?: string;
3925
5828
  runId?: string;
3926
5829
  };
@@ -3958,7 +5861,7 @@ export declare const listDatasetVersionsOptions: (options: Options<ListDatasetVe
3958
5861
  }>;
3959
5862
  };
3960
5863
  producer?: {
3961
- kind: "sync" | "pipeline";
5864
+ kind: "sync" | "pipeline" | "ingest";
3962
5865
  id?: string;
3963
5866
  runId?: string;
3964
5867
  };
@@ -3996,7 +5899,7 @@ export declare const getDatasetVersionOptions: (options: Options<GetDatasetVersi
3996
5899
  }>;
3997
5900
  };
3998
5901
  producer?: {
3999
- kind: "sync" | "pipeline";
5902
+ kind: "sync" | "pipeline" | "ingest";
4000
5903
  id?: string;
4001
5904
  runId?: string;
4002
5905
  };
@@ -4020,7 +5923,7 @@ export declare const getDatasetVersionOptions: (options: Options<GetDatasetVersi
4020
5923
  }>;
4021
5924
  };
4022
5925
  producer?: {
4023
- kind: "sync" | "pipeline";
5926
+ kind: "sync" | "pipeline" | "ingest";
4024
5927
  id?: string;
4025
5928
  runId?: string;
4026
5929
  };
@@ -4049,7 +5952,7 @@ export declare const getDatasetVersionOptions: (options: Options<GetDatasetVersi
4049
5952
  }>;
4050
5953
  };
4051
5954
  producer?: {
4052
- kind: "sync" | "pipeline";
5955
+ kind: "sync" | "pipeline" | "ingest";
4053
5956
  id?: string;
4054
5957
  runId?: string;
4055
5958
  };
@@ -4084,7 +5987,7 @@ export declare const getDatasetVersionOptions: (options: Options<GetDatasetVersi
4084
5987
  }>;
4085
5988
  };
4086
5989
  producer?: {
4087
- kind: "sync" | "pipeline";
5990
+ kind: "sync" | "pipeline" | "ingest";
4088
5991
  id?: string;
4089
5992
  runId?: string;
4090
5993
  };
@@ -4123,7 +6026,7 @@ export declare const listDatasetRowsOptions: (options: Options<ListDatasetRowsDa
4123
6026
  }>;
4124
6027
  };
4125
6028
  producer?: {
4126
- kind: "sync" | "pipeline";
6029
+ kind: "sync" | "pipeline" | "ingest";
4127
6030
  id?: string;
4128
6031
  runId?: string;
4129
6032
  };
@@ -4160,7 +6063,7 @@ export declare const listDatasetRowsOptions: (options: Options<ListDatasetRowsDa
4160
6063
  }>;
4161
6064
  };
4162
6065
  producer?: {
4163
- kind: "sync" | "pipeline";
6066
+ kind: "sync" | "pipeline" | "ingest";
4164
6067
  id?: string;
4165
6068
  runId?: string;
4166
6069
  };
@@ -4202,7 +6105,7 @@ export declare const listDatasetRowsOptions: (options: Options<ListDatasetRowsDa
4202
6105
  }>;
4203
6106
  };
4204
6107
  producer?: {
4205
- kind: "sync" | "pipeline";
6108
+ kind: "sync" | "pipeline" | "ingest";
4206
6109
  id?: string;
4207
6110
  runId?: string;
4208
6111
  };
@@ -4250,7 +6153,7 @@ export declare const listDatasetRowsOptions: (options: Options<ListDatasetRowsDa
4250
6153
  }>;
4251
6154
  };
4252
6155
  producer?: {
4253
- kind: "sync" | "pipeline";
6156
+ kind: "sync" | "pipeline" | "ingest";
4254
6157
  id?: string;
4255
6158
  runId?: string;
4256
6159
  };
@@ -4295,7 +6198,7 @@ export declare const listDatasetRowsInfiniteOptions: (options: Options<ListDatas
4295
6198
  }>;
4296
6199
  };
4297
6200
  producer?: {
4298
- kind: "sync" | "pipeline";
6201
+ kind: "sync" | "pipeline" | "ingest";
4299
6202
  id?: string;
4300
6203
  runId?: string;
4301
6204
  };
@@ -4332,7 +6235,7 @@ export declare const listDatasetRowsInfiniteOptions: (options: Options<ListDatas
4332
6235
  }>;
4333
6236
  };
4334
6237
  producer?: {
4335
- kind: "sync" | "pipeline";
6238
+ kind: "sync" | "pipeline" | "ingest";
4336
6239
  id?: string;
4337
6240
  runId?: string;
4338
6241
  };
@@ -4374,7 +6277,7 @@ export declare const listDatasetRowsInfiniteOptions: (options: Options<ListDatas
4374
6277
  }>;
4375
6278
  };
4376
6279
  producer?: {
4377
- kind: "sync" | "pipeline";
6280
+ kind: "sync" | "pipeline" | "ingest";
4378
6281
  id?: string;
4379
6282
  runId?: string;
4380
6283
  };
@@ -4415,7 +6318,7 @@ export declare const listDatasetRowsInfiniteOptions: (options: Options<ListDatas
4415
6318
  }>;
4416
6319
  };
4417
6320
  producer?: {
4418
- kind: "sync" | "pipeline";
6321
+ kind: "sync" | "pipeline" | "ingest";
4419
6322
  id?: string;
4420
6323
  runId?: string;
4421
6324
  };
@@ -4459,7 +6362,7 @@ export declare const listDatasetRowsInfiniteOptions: (options: Options<ListDatas
4459
6362
  }>;
4460
6363
  };
4461
6364
  producer?: {
4462
- kind: "sync" | "pipeline";
6365
+ kind: "sync" | "pipeline" | "ingest";
4463
6366
  id?: string;
4464
6367
  runId?: string;
4465
6368
  };
@@ -4504,6 +6407,7 @@ export declare const listSyncsOptions: (options?: Options<ListSyncsData>) => imp
4504
6407
  id: string;
4505
6408
  description?: string;
4506
6409
  primaryKey?: string | Array<string>;
6410
+ sequenceBy?: string;
4507
6411
  partitionBy?: Array<string>;
4508
6412
  schema: {
4509
6413
  columns: Array<{
@@ -4559,6 +6463,7 @@ export declare const listSyncsOptions: (options?: Options<ListSyncsData>) => imp
4559
6463
  id: string;
4560
6464
  description?: string;
4561
6465
  primaryKey?: string | Array<string>;
6466
+ sequenceBy?: string;
4562
6467
  partitionBy?: Array<string>;
4563
6468
  schema: {
4564
6469
  columns: Array<{
@@ -4619,6 +6524,7 @@ export declare const listSyncsOptions: (options?: Options<ListSyncsData>) => imp
4619
6524
  id: string;
4620
6525
  description?: string;
4621
6526
  primaryKey?: string | Array<string>;
6527
+ sequenceBy?: string;
4622
6528
  partitionBy?: Array<string>;
4623
6529
  schema: {
4624
6530
  columns: Array<{
@@ -4685,6 +6591,7 @@ export declare const listSyncsOptions: (options?: Options<ListSyncsData>) => imp
4685
6591
  id: string;
4686
6592
  description?: string;
4687
6593
  primaryKey?: string | Array<string>;
6594
+ sequenceBy?: string;
4688
6595
  partitionBy?: Array<string>;
4689
6596
  schema: {
4690
6597
  columns: Array<{
@@ -4752,6 +6659,7 @@ export declare const getSyncOptions: (options: Options<GetSyncData>) => import("
4752
6659
  id: string;
4753
6660
  description?: string;
4754
6661
  primaryKey?: string | Array<string>;
6662
+ sequenceBy?: string;
4755
6663
  partitionBy?: Array<string>;
4756
6664
  schema: {
4757
6665
  columns: Array<{
@@ -4809,6 +6717,7 @@ export declare const getSyncOptions: (options: Options<GetSyncData>) => import("
4809
6717
  id: string;
4810
6718
  description?: string;
4811
6719
  primaryKey?: string | Array<string>;
6720
+ sequenceBy?: string;
4812
6721
  partitionBy?: Array<string>;
4813
6722
  schema: {
4814
6723
  columns: Array<{
@@ -4869,6 +6778,7 @@ export declare const getSyncOptions: (options: Options<GetSyncData>) => import("
4869
6778
  id: string;
4870
6779
  description?: string;
4871
6780
  primaryKey?: string | Array<string>;
6781
+ sequenceBy?: string;
4872
6782
  partitionBy?: Array<string>;
4873
6783
  schema: {
4874
6784
  columns: Array<{
@@ -4935,6 +6845,7 @@ export declare const getSyncOptions: (options: Options<GetSyncData>) => import("
4935
6845
  id: string;
4936
6846
  description?: string;
4937
6847
  primaryKey?: string | Array<string>;
6848
+ sequenceBy?: string;
4938
6849
  partitionBy?: Array<string>;
4939
6850
  schema: {
4940
6851
  columns: Array<{
@@ -5351,6 +7262,7 @@ export declare const listPipelinesOptions: (options?: Options<ListPipelinesData>
5351
7262
  id: string;
5352
7263
  description?: string;
5353
7264
  primaryKey?: string | Array<string>;
7265
+ sequenceBy?: string;
5354
7266
  partitionBy?: Array<string>;
5355
7267
  schema: {
5356
7268
  columns: Array<{
@@ -5365,6 +7277,7 @@ export declare const listPipelinesOptions: (options?: Options<ListPipelinesData>
5365
7277
  id: string;
5366
7278
  description?: string;
5367
7279
  primaryKey?: string | Array<string>;
7280
+ sequenceBy?: string;
5368
7281
  partitionBy?: Array<string>;
5369
7282
  schema: {
5370
7283
  columns: Array<{
@@ -5425,6 +7338,7 @@ export declare const listPipelinesOptions: (options?: Options<ListPipelinesData>
5425
7338
  id: string;
5426
7339
  description?: string;
5427
7340
  primaryKey?: string | Array<string>;
7341
+ sequenceBy?: string;
5428
7342
  partitionBy?: Array<string>;
5429
7343
  schema: {
5430
7344
  columns: Array<{
@@ -5439,6 +7353,7 @@ export declare const listPipelinesOptions: (options?: Options<ListPipelinesData>
5439
7353
  id: string;
5440
7354
  description?: string;
5441
7355
  primaryKey?: string | Array<string>;
7356
+ sequenceBy?: string;
5442
7357
  partitionBy?: Array<string>;
5443
7358
  schema: {
5444
7359
  columns: Array<{
@@ -5504,6 +7419,7 @@ export declare const listPipelinesOptions: (options?: Options<ListPipelinesData>
5504
7419
  id: string;
5505
7420
  description?: string;
5506
7421
  primaryKey?: string | Array<string>;
7422
+ sequenceBy?: string;
5507
7423
  partitionBy?: Array<string>;
5508
7424
  schema: {
5509
7425
  columns: Array<{
@@ -5518,6 +7434,7 @@ export declare const listPipelinesOptions: (options?: Options<ListPipelinesData>
5518
7434
  id: string;
5519
7435
  description?: string;
5520
7436
  primaryKey?: string | Array<string>;
7437
+ sequenceBy?: string;
5521
7438
  partitionBy?: Array<string>;
5522
7439
  schema: {
5523
7440
  columns: Array<{
@@ -5589,6 +7506,7 @@ export declare const listPipelinesOptions: (options?: Options<ListPipelinesData>
5589
7506
  id: string;
5590
7507
  description?: string;
5591
7508
  primaryKey?: string | Array<string>;
7509
+ sequenceBy?: string;
5592
7510
  partitionBy?: Array<string>;
5593
7511
  schema: {
5594
7512
  columns: Array<{
@@ -5603,6 +7521,7 @@ export declare const listPipelinesOptions: (options?: Options<ListPipelinesData>
5603
7521
  id: string;
5604
7522
  description?: string;
5605
7523
  primaryKey?: string | Array<string>;
7524
+ sequenceBy?: string;
5606
7525
  partitionBy?: Array<string>;
5607
7526
  schema: {
5608
7527
  columns: Array<{
@@ -5675,6 +7594,7 @@ export declare const getPipelineOptions: (options: Options<GetPipelineData>) =>
5675
7594
  id: string;
5676
7595
  description?: string;
5677
7596
  primaryKey?: string | Array<string>;
7597
+ sequenceBy?: string;
5678
7598
  partitionBy?: Array<string>;
5679
7599
  schema: {
5680
7600
  columns: Array<{
@@ -5689,6 +7609,7 @@ export declare const getPipelineOptions: (options: Options<GetPipelineData>) =>
5689
7609
  id: string;
5690
7610
  description?: string;
5691
7611
  primaryKey?: string | Array<string>;
7612
+ sequenceBy?: string;
5692
7613
  partitionBy?: Array<string>;
5693
7614
  schema: {
5694
7615
  columns: Array<{
@@ -5751,6 +7672,7 @@ export declare const getPipelineOptions: (options: Options<GetPipelineData>) =>
5751
7672
  id: string;
5752
7673
  description?: string;
5753
7674
  primaryKey?: string | Array<string>;
7675
+ sequenceBy?: string;
5754
7676
  partitionBy?: Array<string>;
5755
7677
  schema: {
5756
7678
  columns: Array<{
@@ -5765,6 +7687,7 @@ export declare const getPipelineOptions: (options: Options<GetPipelineData>) =>
5765
7687
  id: string;
5766
7688
  description?: string;
5767
7689
  primaryKey?: string | Array<string>;
7690
+ sequenceBy?: string;
5768
7691
  partitionBy?: Array<string>;
5769
7692
  schema: {
5770
7693
  columns: Array<{
@@ -5830,6 +7753,7 @@ export declare const getPipelineOptions: (options: Options<GetPipelineData>) =>
5830
7753
  id: string;
5831
7754
  description?: string;
5832
7755
  primaryKey?: string | Array<string>;
7756
+ sequenceBy?: string;
5833
7757
  partitionBy?: Array<string>;
5834
7758
  schema: {
5835
7759
  columns: Array<{
@@ -5844,6 +7768,7 @@ export declare const getPipelineOptions: (options: Options<GetPipelineData>) =>
5844
7768
  id: string;
5845
7769
  description?: string;
5846
7770
  primaryKey?: string | Array<string>;
7771
+ sequenceBy?: string;
5847
7772
  partitionBy?: Array<string>;
5848
7773
  schema: {
5849
7774
  columns: Array<{
@@ -5915,6 +7840,7 @@ export declare const getPipelineOptions: (options: Options<GetPipelineData>) =>
5915
7840
  id: string;
5916
7841
  description?: string;
5917
7842
  primaryKey?: string | Array<string>;
7843
+ sequenceBy?: string;
5918
7844
  partitionBy?: Array<string>;
5919
7845
  schema: {
5920
7846
  columns: Array<{
@@ -5929,6 +7855,7 @@ export declare const getPipelineOptions: (options: Options<GetPipelineData>) =>
5929
7855
  id: string;
5930
7856
  description?: string;
5931
7857
  primaryKey?: string | Array<string>;
7858
+ sequenceBy?: string;
5932
7859
  partitionBy?: Array<string>;
5933
7860
  schema: {
5934
7861
  columns: Array<{
@@ -6570,7 +8497,6 @@ export declare const listWorkflowsOptions: (options?: Options<ListWorkflowsData>
6570
8497
  type: "agent";
6571
8498
  id: string;
6572
8499
  key: string;
6573
- agentId: string;
6574
8500
  input: {
6575
8501
  [key: string]: string | number | boolean | Array<unknown> | {
6576
8502
  [key: string]: unknown;
@@ -6591,7 +8517,7 @@ export declare const listWorkflowsOptions: (options?: Options<ListWorkflowsData>
6591
8517
  startedAt: string;
6592
8518
  finishedAt?: string;
6593
8519
  error?: {
6594
- code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
8520
+ code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
6595
8521
  message: string;
6596
8522
  retryable: boolean;
6597
8523
  at: string;
@@ -6659,7 +8585,6 @@ export declare const listWorkflowsOptions: (options?: Options<ListWorkflowsData>
6659
8585
  type: "agent";
6660
8586
  id: string;
6661
8587
  key: string;
6662
- agentId: string;
6663
8588
  input: {
6664
8589
  [key: string]: string | number | boolean | Array<unknown> | {
6665
8590
  [key: string]: unknown;
@@ -6680,7 +8605,7 @@ export declare const listWorkflowsOptions: (options?: Options<ListWorkflowsData>
6680
8605
  startedAt: string;
6681
8606
  finishedAt?: string;
6682
8607
  error?: {
6683
- code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
8608
+ code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
6684
8609
  message: string;
6685
8610
  retryable: boolean;
6686
8611
  at: string;
@@ -6753,7 +8678,6 @@ export declare const listWorkflowsOptions: (options?: Options<ListWorkflowsData>
6753
8678
  type: "agent";
6754
8679
  id: string;
6755
8680
  key: string;
6756
- agentId: string;
6757
8681
  input: {
6758
8682
  [key: string]: string | number | boolean | Array<unknown> | {
6759
8683
  [key: string]: unknown;
@@ -6774,7 +8698,7 @@ export declare const listWorkflowsOptions: (options?: Options<ListWorkflowsData>
6774
8698
  startedAt: string;
6775
8699
  finishedAt?: string;
6776
8700
  error?: {
6777
- code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
8701
+ code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
6778
8702
  message: string;
6779
8703
  retryable: boolean;
6780
8704
  at: string;
@@ -6853,7 +8777,6 @@ export declare const listWorkflowsOptions: (options?: Options<ListWorkflowsData>
6853
8777
  type: "agent";
6854
8778
  id: string;
6855
8779
  key: string;
6856
- agentId: string;
6857
8780
  input: {
6858
8781
  [key: string]: string | number | boolean | Array<unknown> | {
6859
8782
  [key: string]: unknown;
@@ -6874,7 +8797,7 @@ export declare const listWorkflowsOptions: (options?: Options<ListWorkflowsData>
6874
8797
  startedAt: string;
6875
8798
  finishedAt?: string;
6876
8799
  error?: {
6877
- code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
8800
+ code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
6878
8801
  message: string;
6879
8802
  retryable: boolean;
6880
8803
  at: string;
@@ -6954,7 +8877,6 @@ export declare const getWorkflowOptions: (options: Options<GetWorkflowData>) =>
6954
8877
  type: "agent";
6955
8878
  id: string;
6956
8879
  key: string;
6957
- agentId: string;
6958
8880
  input: {
6959
8881
  [key: string]: string | number | boolean | Array<unknown> | {
6960
8882
  [key: string]: unknown;
@@ -6975,7 +8897,7 @@ export declare const getWorkflowOptions: (options: Options<GetWorkflowData>) =>
6975
8897
  startedAt: string;
6976
8898
  finishedAt?: string;
6977
8899
  error?: {
6978
- code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
8900
+ code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
6979
8901
  message: string;
6980
8902
  retryable: boolean;
6981
8903
  at: string;
@@ -7045,7 +8967,6 @@ export declare const getWorkflowOptions: (options: Options<GetWorkflowData>) =>
7045
8967
  type: "agent";
7046
8968
  id: string;
7047
8969
  key: string;
7048
- agentId: string;
7049
8970
  input: {
7050
8971
  [key: string]: string | number | boolean | Array<unknown> | {
7051
8972
  [key: string]: unknown;
@@ -7066,7 +8987,7 @@ export declare const getWorkflowOptions: (options: Options<GetWorkflowData>) =>
7066
8987
  startedAt: string;
7067
8988
  finishedAt?: string;
7068
8989
  error?: {
7069
- code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
8990
+ code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
7070
8991
  message: string;
7071
8992
  retryable: boolean;
7072
8993
  at: string;
@@ -7139,7 +9060,6 @@ export declare const getWorkflowOptions: (options: Options<GetWorkflowData>) =>
7139
9060
  type: "agent";
7140
9061
  id: string;
7141
9062
  key: string;
7142
- agentId: string;
7143
9063
  input: {
7144
9064
  [key: string]: string | number | boolean | Array<unknown> | {
7145
9065
  [key: string]: unknown;
@@ -7160,7 +9080,7 @@ export declare const getWorkflowOptions: (options: Options<GetWorkflowData>) =>
7160
9080
  startedAt: string;
7161
9081
  finishedAt?: string;
7162
9082
  error?: {
7163
- code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
9083
+ code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
7164
9084
  message: string;
7165
9085
  retryable: boolean;
7166
9086
  at: string;
@@ -7239,7 +9159,6 @@ export declare const getWorkflowOptions: (options: Options<GetWorkflowData>) =>
7239
9159
  type: "agent";
7240
9160
  id: string;
7241
9161
  key: string;
7242
- agentId: string;
7243
9162
  input: {
7244
9163
  [key: string]: string | number | boolean | Array<unknown> | {
7245
9164
  [key: string]: unknown;
@@ -7260,7 +9179,7 @@ export declare const getWorkflowOptions: (options: Options<GetWorkflowData>) =>
7260
9179
  startedAt: string;
7261
9180
  finishedAt?: string;
7262
9181
  error?: {
7263
- code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
9182
+ code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
7264
9183
  message: string;
7265
9184
  retryable: boolean;
7266
9185
  at: string;
@@ -7929,7 +9848,7 @@ export declare const listWorkflowRunsOptions: (options?: Options<ListWorkflowRun
7929
9848
  startedAt: string;
7930
9849
  finishedAt?: string;
7931
9850
  error?: {
7932
- code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
9851
+ code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
7933
9852
  message: string;
7934
9853
  retryable: boolean;
7935
9854
  at: string;
@@ -7955,7 +9874,7 @@ export declare const listWorkflowRunsOptions: (options?: Options<ListWorkflowRun
7955
9874
  startedAt: string;
7956
9875
  finishedAt?: string;
7957
9876
  error?: {
7958
- code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
9877
+ code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
7959
9878
  message: string;
7960
9879
  retryable: boolean;
7961
9880
  at: string;
@@ -7986,7 +9905,7 @@ export declare const listWorkflowRunsOptions: (options?: Options<ListWorkflowRun
7986
9905
  startedAt: string;
7987
9906
  finishedAt?: string;
7988
9907
  error?: {
7989
- code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
9908
+ code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
7990
9909
  message: string;
7991
9910
  retryable: boolean;
7992
9911
  at: string;
@@ -8023,7 +9942,7 @@ export declare const listWorkflowRunsOptions: (options?: Options<ListWorkflowRun
8023
9942
  startedAt: string;
8024
9943
  finishedAt?: string;
8025
9944
  error?: {
8026
- code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
9945
+ code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
8027
9946
  message: string;
8028
9947
  retryable: boolean;
8029
9948
  at: string;
@@ -8057,7 +9976,7 @@ export declare const listWorkflowRunsInfiniteOptions: (options?: Options<ListWor
8057
9976
  startedAt: string;
8058
9977
  finishedAt?: string;
8059
9978
  error?: {
8060
- code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
9979
+ code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
8061
9980
  message: string;
8062
9981
  retryable: boolean;
8063
9982
  at: string;
@@ -8083,7 +10002,7 @@ export declare const listWorkflowRunsInfiniteOptions: (options?: Options<ListWor
8083
10002
  startedAt: string;
8084
10003
  finishedAt?: string;
8085
10004
  error?: {
8086
- code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
10005
+ code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
8087
10006
  message: string;
8088
10007
  retryable: boolean;
8089
10008
  at: string;
@@ -8114,7 +10033,7 @@ export declare const listWorkflowRunsInfiniteOptions: (options?: Options<ListWor
8114
10033
  startedAt: string;
8115
10034
  finishedAt?: string;
8116
10035
  error?: {
8117
- code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
10036
+ code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
8118
10037
  message: string;
8119
10038
  retryable: boolean;
8120
10039
  at: string;
@@ -8144,7 +10063,7 @@ export declare const listWorkflowRunsInfiniteOptions: (options?: Options<ListWor
8144
10063
  startedAt: string;
8145
10064
  finishedAt?: string;
8146
10065
  error?: {
8147
- code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
10066
+ code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
8148
10067
  message: string;
8149
10068
  retryable: boolean;
8150
10069
  at: string;
@@ -8177,7 +10096,7 @@ export declare const listWorkflowRunsInfiniteOptions: (options?: Options<ListWor
8177
10096
  startedAt: string;
8178
10097
  finishedAt?: string;
8179
10098
  error?: {
8180
- code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
10099
+ code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
8181
10100
  message: string;
8182
10101
  retryable: boolean;
8183
10102
  at: string;
@@ -8215,7 +10134,7 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
8215
10134
  startedAt: string;
8216
10135
  finishedAt?: string;
8217
10136
  error?: {
8218
- code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
10137
+ code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
8219
10138
  message: string;
8220
10139
  retryable: boolean;
8221
10140
  at: string;
@@ -8262,7 +10181,7 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
8262
10181
  } | null;
8263
10182
  };
8264
10183
  error?: {
8265
- code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
10184
+ code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
8266
10185
  message: string;
8267
10186
  retryable: boolean;
8268
10187
  at: string;
@@ -8272,7 +10191,6 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
8272
10191
  truncated?: true;
8273
10192
  };
8274
10193
  agentExecution?: {
8275
- agentId: string;
8276
10194
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
8277
10195
  attempt: number;
8278
10196
  modelId?: string;
@@ -8311,7 +10229,7 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
8311
10229
  startedAt: string;
8312
10230
  finishedAt?: string;
8313
10231
  error?: {
8314
- code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
10232
+ code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
8315
10233
  message: string;
8316
10234
  retryable: boolean;
8317
10235
  at: string;
@@ -8358,7 +10276,7 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
8358
10276
  } | null;
8359
10277
  };
8360
10278
  error?: {
8361
- code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
10279
+ code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
8362
10280
  message: string;
8363
10281
  retryable: boolean;
8364
10282
  at: string;
@@ -8368,7 +10286,6 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
8368
10286
  truncated?: true;
8369
10287
  };
8370
10288
  agentExecution?: {
8371
- agentId: string;
8372
10289
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
8373
10290
  attempt: number;
8374
10291
  modelId?: string;
@@ -8412,7 +10329,7 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
8412
10329
  startedAt: string;
8413
10330
  finishedAt?: string;
8414
10331
  error?: {
8415
- code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
10332
+ code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
8416
10333
  message: string;
8417
10334
  retryable: boolean;
8418
10335
  at: string;
@@ -8459,7 +10376,7 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
8459
10376
  } | null;
8460
10377
  };
8461
10378
  error?: {
8462
- code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
10379
+ code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
8463
10380
  message: string;
8464
10381
  retryable: boolean;
8465
10382
  at: string;
@@ -8469,7 +10386,6 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
8469
10386
  truncated?: true;
8470
10387
  };
8471
10388
  agentExecution?: {
8472
- agentId: string;
8473
10389
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
8474
10390
  attempt: number;
8475
10391
  modelId?: string;
@@ -8519,7 +10435,7 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
8519
10435
  startedAt: string;
8520
10436
  finishedAt?: string;
8521
10437
  error?: {
8522
- code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
10438
+ code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
8523
10439
  message: string;
8524
10440
  retryable: boolean;
8525
10441
  at: string;
@@ -8566,7 +10482,7 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
8566
10482
  } | null;
8567
10483
  };
8568
10484
  error?: {
8569
- code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
10485
+ code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
8570
10486
  message: string;
8571
10487
  retryable: boolean;
8572
10488
  at: string;
@@ -8576,7 +10492,6 @@ export declare const getWorkflowRunOptions: (options: Options<GetWorkflowRunData
8576
10492
  truncated?: true;
8577
10493
  };
8578
10494
  agentExecution?: {
8579
- agentId: string;
8580
10495
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
8581
10496
  attempt: number;
8582
10497
  modelId?: string;
@@ -8618,7 +10533,6 @@ export declare const getWorkflowAgentNodeExecutionQueryKey: (options: Options<Ge
8618
10533
  * Get workflow agent node execution detail
8619
10534
  */
8620
10535
  export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<GetWorkflowAgentNodeExecutionData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
8621
- agentId: string;
8622
10536
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
8623
10537
  attempt: number;
8624
10538
  modelId?: string;
@@ -8674,6 +10588,12 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
8674
10588
  providerMetadata?: string | number | boolean | Array<unknown> | {
8675
10589
  [key: string]: unknown;
8676
10590
  } | null;
10591
+ } | {
10592
+ type: "provider-state";
10593
+ providerId: string;
10594
+ data: string | number | boolean | Array<unknown> | {
10595
+ [key: string]: unknown;
10596
+ } | null;
8677
10597
  } | {
8678
10598
  context: {
8679
10599
  kind: "object";
@@ -8728,7 +10648,7 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
8728
10648
  } | null>;
8729
10649
  failurePhase?: "agent-loop" | "structured-finalizer";
8730
10650
  error?: {
8731
- code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
10651
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
8732
10652
  message: string;
8733
10653
  retryable: boolean;
8734
10654
  at: string;
@@ -8739,7 +10659,6 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
8739
10659
  };
8740
10660
  createdAt: string;
8741
10661
  }, GetWorkflowAgentNodeExecutionError, {
8742
- agentId: string;
8743
10662
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
8744
10663
  attempt: number;
8745
10664
  modelId?: string;
@@ -8795,6 +10714,12 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
8795
10714
  providerMetadata?: string | number | boolean | Array<unknown> | {
8796
10715
  [key: string]: unknown;
8797
10716
  } | null;
10717
+ } | {
10718
+ type: "provider-state";
10719
+ providerId: string;
10720
+ data: string | number | boolean | Array<unknown> | {
10721
+ [key: string]: unknown;
10722
+ } | null;
8798
10723
  } | {
8799
10724
  context: {
8800
10725
  kind: "object";
@@ -8849,7 +10774,7 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
8849
10774
  } | null>;
8850
10775
  failurePhase?: "agent-loop" | "structured-finalizer";
8851
10776
  error?: {
8852
- code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
10777
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
8853
10778
  message: string;
8854
10779
  retryable: boolean;
8855
10780
  at: string;
@@ -8865,7 +10790,6 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
8865
10790
  tags?: ReadonlyArray<string>;
8866
10791
  }]>, "queryFn"> & {
8867
10792
  queryFn?: import("@tanstack/react-query").QueryFunction<{
8868
- agentId: string;
8869
10793
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
8870
10794
  attempt: number;
8871
10795
  modelId?: string;
@@ -8921,6 +10845,12 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
8921
10845
  providerMetadata?: string | number | boolean | Array<unknown> | {
8922
10846
  [key: string]: unknown;
8923
10847
  } | null;
10848
+ } | {
10849
+ type: "provider-state";
10850
+ providerId: string;
10851
+ data: string | number | boolean | Array<unknown> | {
10852
+ [key: string]: unknown;
10853
+ } | null;
8924
10854
  } | {
8925
10855
  context: {
8926
10856
  kind: "object";
@@ -8975,7 +10905,7 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
8975
10905
  } | null>;
8976
10906
  failurePhase?: "agent-loop" | "structured-finalizer";
8977
10907
  error?: {
8978
- code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
10908
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
8979
10909
  message: string;
8980
10910
  retryable: boolean;
8981
10911
  at: string;
@@ -8997,7 +10927,6 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
8997
10927
  tags?: ReadonlyArray<string>;
8998
10928
  }] & {
8999
10929
  [dataTagSymbol]: {
9000
- agentId: string;
9001
10930
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
9002
10931
  attempt: number;
9003
10932
  modelId?: string;
@@ -9053,6 +10982,12 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
9053
10982
  providerMetadata?: string | number | boolean | Array<unknown> | {
9054
10983
  [key: string]: unknown;
9055
10984
  } | null;
10985
+ } | {
10986
+ type: "provider-state";
10987
+ providerId: string;
10988
+ data: string | number | boolean | Array<unknown> | {
10989
+ [key: string]: unknown;
10990
+ } | null;
9056
10991
  } | {
9057
10992
  context: {
9058
10993
  kind: "object";
@@ -9107,7 +11042,7 @@ export declare const getWorkflowAgentNodeExecutionOptions: (options: Options<Get
9107
11042
  } | null>;
9108
11043
  failurePhase?: "agent-loop" | "structured-finalizer";
9109
11044
  error?: {
9110
- code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
11045
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
9111
11046
  message: string;
9112
11047
  retryable: boolean;
9113
11048
  at: string;
@@ -10094,30 +12029,357 @@ export declare const listRuleStatesInfiniteOptions: (options?: Options<ListRuleS
10094
12029
  }>;
10095
12030
  hasMore: boolean;
10096
12031
  total: number;
10097
- }, string | Pick<Pick<Options<ListRuleStatesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
12032
+ }, string | Pick<Pick<Options<ListRuleStatesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
12033
+ _id: string;
12034
+ _infinite?: boolean;
12035
+ tags?: ReadonlyArray<string>;
12036
+ }, "query" | "body" | "headers" | "path">>) | undefined;
12037
+ } & {
12038
+ queryKey: QueryKey<Options<ListRuleStatesData>> & {
12039
+ [dataTagSymbol]: InfiniteData<{
12040
+ states: Array<{
12041
+ projectId: string;
12042
+ ruleId: string;
12043
+ subject: {
12044
+ kind: "object";
12045
+ objectTypeId: string;
12046
+ primaryId: string;
12047
+ };
12048
+ triggeredAt: string;
12049
+ }>;
12050
+ hasMore: boolean;
12051
+ total: number;
12052
+ }, unknown>;
12053
+ [dataTagErrorSymbol]: ListRuleStatesError;
12054
+ };
12055
+ };
12056
+ export declare const listSharedAccessGrantsQueryKey: (options: Options<ListSharedAccessGrantsData>) => [Pick<Options<ListSharedAccessGrantsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
12057
+ _id: string;
12058
+ _infinite?: boolean;
12059
+ tags?: ReadonlyArray<string>;
12060
+ }];
12061
+ /**
12062
+ * List shared-access grants
12063
+ */
12064
+ export declare const listSharedAccessGrantsOptions: (options: Options<ListSharedAccessGrantsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
12065
+ grants: Array<{
12066
+ id: string;
12067
+ definitionId: string;
12068
+ target: {
12069
+ objectTypeId: string;
12070
+ primaryId: string;
12071
+ };
12072
+ issuedBy: {
12073
+ type: "user" | "serviceAccount";
12074
+ id: string;
12075
+ };
12076
+ destinationPath: string;
12077
+ createdAt: string;
12078
+ expiresAt: string;
12079
+ revokedAt?: string;
12080
+ revokedBy?: {
12081
+ type: "user" | "serviceAccount" | "system";
12082
+ id: string;
12083
+ };
12084
+ }>;
12085
+ hasMore: boolean;
12086
+ total: number;
12087
+ }, ListSharedAccessGrantsError, {
12088
+ grants: Array<{
12089
+ id: string;
12090
+ definitionId: string;
12091
+ target: {
12092
+ objectTypeId: string;
12093
+ primaryId: string;
12094
+ };
12095
+ issuedBy: {
12096
+ type: "user" | "serviceAccount";
12097
+ id: string;
12098
+ };
12099
+ destinationPath: string;
12100
+ createdAt: string;
12101
+ expiresAt: string;
12102
+ revokedAt?: string;
12103
+ revokedBy?: {
12104
+ type: "user" | "serviceAccount" | "system";
12105
+ id: string;
12106
+ };
12107
+ }>;
12108
+ hasMore: boolean;
12109
+ total: number;
12110
+ }, [Pick<Options<ListSharedAccessGrantsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
12111
+ _id: string;
12112
+ _infinite?: boolean;
12113
+ tags?: ReadonlyArray<string>;
12114
+ }]>, "queryFn"> & {
12115
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
12116
+ grants: Array<{
12117
+ id: string;
12118
+ definitionId: string;
12119
+ target: {
12120
+ objectTypeId: string;
12121
+ primaryId: string;
12122
+ };
12123
+ issuedBy: {
12124
+ type: "user" | "serviceAccount";
12125
+ id: string;
12126
+ };
12127
+ destinationPath: string;
12128
+ createdAt: string;
12129
+ expiresAt: string;
12130
+ revokedAt?: string;
12131
+ revokedBy?: {
12132
+ type: "user" | "serviceAccount" | "system";
12133
+ id: string;
12134
+ };
12135
+ }>;
12136
+ hasMore: boolean;
12137
+ total: number;
12138
+ }, [Pick<Options<ListSharedAccessGrantsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
12139
+ _id: string;
12140
+ _infinite?: boolean;
12141
+ tags?: ReadonlyArray<string>;
12142
+ }], never> | undefined;
12143
+ } & {
12144
+ queryKey: [Pick<Options<ListSharedAccessGrantsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
12145
+ _id: string;
12146
+ _infinite?: boolean;
12147
+ tags?: ReadonlyArray<string>;
12148
+ }] & {
12149
+ [dataTagSymbol]: {
12150
+ grants: Array<{
12151
+ id: string;
12152
+ definitionId: string;
12153
+ target: {
12154
+ objectTypeId: string;
12155
+ primaryId: string;
12156
+ };
12157
+ issuedBy: {
12158
+ type: "user" | "serviceAccount";
12159
+ id: string;
12160
+ };
12161
+ destinationPath: string;
12162
+ createdAt: string;
12163
+ expiresAt: string;
12164
+ revokedAt?: string;
12165
+ revokedBy?: {
12166
+ type: "user" | "serviceAccount" | "system";
12167
+ id: string;
12168
+ };
12169
+ }>;
12170
+ hasMore: boolean;
12171
+ total: number;
12172
+ };
12173
+ [dataTagErrorSymbol]: ListSharedAccessGrantsError;
12174
+ };
12175
+ };
12176
+ export declare const listSharedAccessGrantsInfiniteQueryKey: (options: Options<ListSharedAccessGrantsData>) => QueryKey<Options<ListSharedAccessGrantsData>>;
12177
+ /**
12178
+ * List shared-access grants
12179
+ */
12180
+ export declare const listSharedAccessGrantsInfiniteOptions: (options: Options<ListSharedAccessGrantsData>) => import("@tanstack/react-query").UseInfiniteQueryOptions<{
12181
+ grants: Array<{
12182
+ id: string;
12183
+ definitionId: string;
12184
+ target: {
12185
+ objectTypeId: string;
12186
+ primaryId: string;
12187
+ };
12188
+ issuedBy: {
12189
+ type: "user" | "serviceAccount";
12190
+ id: string;
12191
+ };
12192
+ destinationPath: string;
12193
+ createdAt: string;
12194
+ expiresAt: string;
12195
+ revokedAt?: string;
12196
+ revokedBy?: {
12197
+ type: "user" | "serviceAccount" | "system";
12198
+ id: string;
12199
+ };
12200
+ }>;
12201
+ hasMore: boolean;
12202
+ total: number;
12203
+ }, ListSharedAccessGrantsError, InfiniteData<{
12204
+ grants: Array<{
12205
+ id: string;
12206
+ definitionId: string;
12207
+ target: {
12208
+ objectTypeId: string;
12209
+ primaryId: string;
12210
+ };
12211
+ issuedBy: {
12212
+ type: "user" | "serviceAccount";
12213
+ id: string;
12214
+ };
12215
+ destinationPath: string;
12216
+ createdAt: string;
12217
+ expiresAt: string;
12218
+ revokedAt?: string;
12219
+ revokedBy?: {
12220
+ type: "user" | "serviceAccount" | "system";
12221
+ id: string;
12222
+ };
12223
+ }>;
12224
+ hasMore: boolean;
12225
+ total: number;
12226
+ }, unknown>, QueryKey<Options<ListSharedAccessGrantsData>>, number | Pick<Pick<Options<ListSharedAccessGrantsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
12227
+ _id: string;
12228
+ _infinite?: boolean;
12229
+ tags?: ReadonlyArray<string>;
12230
+ }, "query" | "body" | "headers" | "path">> & {
12231
+ initialData: InfiniteData<{
12232
+ grants: Array<{
12233
+ id: string;
12234
+ definitionId: string;
12235
+ target: {
12236
+ objectTypeId: string;
12237
+ primaryId: string;
12238
+ };
12239
+ issuedBy: {
12240
+ type: "user" | "serviceAccount";
12241
+ id: string;
12242
+ };
12243
+ destinationPath: string;
12244
+ createdAt: string;
12245
+ expiresAt: string;
12246
+ revokedAt?: string;
12247
+ revokedBy?: {
12248
+ type: "user" | "serviceAccount" | "system";
12249
+ id: string;
12250
+ };
12251
+ }>;
12252
+ hasMore: boolean;
12253
+ total: number;
12254
+ }, number | Pick<Pick<Options<ListSharedAccessGrantsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
12255
+ _id: string;
12256
+ _infinite?: boolean;
12257
+ tags?: ReadonlyArray<string>;
12258
+ }, "query" | "body" | "headers" | "path">> | (() => InfiniteData<{
12259
+ grants: Array<{
12260
+ id: string;
12261
+ definitionId: string;
12262
+ target: {
12263
+ objectTypeId: string;
12264
+ primaryId: string;
12265
+ };
12266
+ issuedBy: {
12267
+ type: "user" | "serviceAccount";
12268
+ id: string;
12269
+ };
12270
+ destinationPath: string;
12271
+ createdAt: string;
12272
+ expiresAt: string;
12273
+ revokedAt?: string;
12274
+ revokedBy?: {
12275
+ type: "user" | "serviceAccount" | "system";
12276
+ id: string;
12277
+ };
12278
+ }>;
12279
+ hasMore: boolean;
12280
+ total: number;
12281
+ }, number | Pick<Pick<Options<ListSharedAccessGrantsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
10098
12282
  _id: string;
10099
12283
  _infinite?: boolean;
10100
12284
  tags?: ReadonlyArray<string>;
10101
12285
  }, "query" | "body" | "headers" | "path">>) | undefined;
10102
12286
  } & {
10103
- queryKey: QueryKey<Options<ListRuleStatesData>> & {
12287
+ queryKey: QueryKey<Options<ListSharedAccessGrantsData>> & {
10104
12288
  [dataTagSymbol]: InfiniteData<{
10105
- states: Array<{
10106
- projectId: string;
10107
- ruleId: string;
10108
- subject: {
10109
- kind: "object";
12289
+ grants: Array<{
12290
+ id: string;
12291
+ definitionId: string;
12292
+ target: {
10110
12293
  objectTypeId: string;
10111
12294
  primaryId: string;
10112
12295
  };
10113
- triggeredAt: string;
12296
+ issuedBy: {
12297
+ type: "user" | "serviceAccount";
12298
+ id: string;
12299
+ };
12300
+ destinationPath: string;
12301
+ createdAt: string;
12302
+ expiresAt: string;
12303
+ revokedAt?: string;
12304
+ revokedBy?: {
12305
+ type: "user" | "serviceAccount" | "system";
12306
+ id: string;
12307
+ };
10114
12308
  }>;
10115
12309
  hasMore: boolean;
10116
12310
  total: number;
10117
12311
  }, unknown>;
10118
- [dataTagErrorSymbol]: ListRuleStatesError;
12312
+ [dataTagErrorSymbol]: ListSharedAccessGrantsError;
12313
+ };
12314
+ };
12315
+ /**
12316
+ * Issue a shared-access grant
12317
+ */
12318
+ export declare const issueSharedAccessGrantMutation: (options?: Partial<Options<IssueSharedAccessGrantData>>) => UseMutationOptions<IssueSharedAccessGrantResponse, IssueSharedAccessGrantError, Options<IssueSharedAccessGrantData>>;
12319
+ /**
12320
+ * Revoke a shared-access grant
12321
+ */
12322
+ export declare const revokeSharedAccessGrantMutation: (options?: Partial<Options<RevokeSharedAccessGrantData>>) => UseMutationOptions<RevokeSharedAccessGrantResponse, RevokeSharedAccessGrantError, Options<RevokeSharedAccessGrantData>>;
12323
+ /**
12324
+ * Exchange a shared link for a short-lived session
12325
+ */
12326
+ export declare const exchangeSharedAccessMutation: (options?: Partial<Options<ExchangeSharedAccessData>>) => UseMutationOptions<ExchangeSharedAccessResponse, ExchangeSharedAccessError, Options<ExchangeSharedAccessData>>;
12327
+ export declare const getSharedAccessSessionQueryKey: (options: Options<GetSharedAccessSessionData>) => [Pick<Options<GetSharedAccessSessionData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
12328
+ _id: string;
12329
+ _infinite?: boolean;
12330
+ tags?: ReadonlyArray<string>;
12331
+ }];
12332
+ /**
12333
+ * Get the current shared-access session
12334
+ */
12335
+ export declare const getSharedAccessSessionOptions: (options: Options<GetSharedAccessSessionData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
12336
+ grantId: string;
12337
+ destinationPath: string;
12338
+ expiresAt: string;
12339
+ absoluteExpiresAt: string;
12340
+ csrfToken: string;
12341
+ }, GetSharedAccessSessionError, {
12342
+ grantId: string;
12343
+ destinationPath: string;
12344
+ expiresAt: string;
12345
+ absoluteExpiresAt: string;
12346
+ csrfToken: string;
12347
+ }, [Pick<Options<GetSharedAccessSessionData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
12348
+ _id: string;
12349
+ _infinite?: boolean;
12350
+ tags?: ReadonlyArray<string>;
12351
+ }]>, "queryFn"> & {
12352
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
12353
+ grantId: string;
12354
+ destinationPath: string;
12355
+ expiresAt: string;
12356
+ absoluteExpiresAt: string;
12357
+ csrfToken: string;
12358
+ }, [Pick<Options<GetSharedAccessSessionData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
12359
+ _id: string;
12360
+ _infinite?: boolean;
12361
+ tags?: ReadonlyArray<string>;
12362
+ }], never> | undefined;
12363
+ } & {
12364
+ queryKey: [Pick<Options<GetSharedAccessSessionData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
12365
+ _id: string;
12366
+ _infinite?: boolean;
12367
+ tags?: ReadonlyArray<string>;
12368
+ }] & {
12369
+ [dataTagSymbol]: {
12370
+ grantId: string;
12371
+ destinationPath: string;
12372
+ expiresAt: string;
12373
+ absoluteExpiresAt: string;
12374
+ csrfToken: string;
12375
+ };
12376
+ [dataTagErrorSymbol]: GetSharedAccessSessionError;
10119
12377
  };
10120
12378
  };
12379
+ /**
12380
+ * Sign out a shared-access session
12381
+ */
12382
+ export declare const signOutSharedAccessMutation: (options?: Partial<Options<SignOutSharedAccessData>>) => UseMutationOptions<SignOutSharedAccessResponse, SignOutSharedAccessError, Options<SignOutSharedAccessData>>;
10121
12383
  export declare const listObjectTypesQueryKey: (options?: Options<ListObjectTypesData>) => [Pick<Options<ListObjectTypesData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
10122
12384
  _id: string;
10123
12385
  _infinite?: boolean;
@@ -12082,145 +14344,27 @@ export declare const getActionRunFileContentOptions: (options: Options<GetAction
12082
14344
  [dataTagErrorSymbol]: unknown;
12083
14345
  };
12084
14346
  };
12085
- export declare const listAgentsQueryKey: (options?: Options<ListAgentsData>) => [Pick<Options<ListAgentsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
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"> & {
14347
+ export declare const getAgentQueryKey: (options?: Options<GetAgentData>) => [Pick<Options<GetAgentData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
12182
14348
  _id: string;
12183
14349
  _infinite?: boolean;
12184
14350
  tags?: ReadonlyArray<string>;
12185
14351
  }];
12186
14352
  /**
12187
- * Get agent metadata
14353
+ * Get the project Agent
12188
14354
  */
12189
- export declare const getAgentOptions: (options: Options<GetAgentData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
12190
- id: string;
14355
+ export declare const getAgentOptions: (options?: Options<GetAgentData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
12191
14356
  name: string;
12192
- description?: string;
12193
- modelId?: string;
12194
- reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
12195
- groupIds: Array<string>;
12196
- loop?: {
12197
- stopWhen?: {
12198
- maxSteps?: number;
12199
- };
12200
- context?: {
12201
- windowTokens?: number;
12202
- reserveTokens?: number;
12203
- keepRecentTokens?: number;
12204
- };
14357
+ model: {
14358
+ provider: string;
14359
+ modelId: string;
12205
14360
  };
12206
14361
  }, {
12207
14362
  error: string;
12208
14363
  }, {
12209
- id: string;
12210
14364
  name: string;
12211
- description?: string;
12212
- modelId?: string;
12213
- reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
12214
- groupIds: Array<string>;
12215
- loop?: {
12216
- stopWhen?: {
12217
- maxSteps?: number;
12218
- };
12219
- context?: {
12220
- windowTokens?: number;
12221
- reserveTokens?: number;
12222
- keepRecentTokens?: number;
12223
- };
14365
+ model: {
14366
+ provider: string;
14367
+ modelId: string;
12224
14368
  };
12225
14369
  }, [Pick<Options<GetAgentData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
12226
14370
  _id: string;
@@ -12228,21 +14372,10 @@ export declare const getAgentOptions: (options: Options<GetAgentData>) => import
12228
14372
  tags?: ReadonlyArray<string>;
12229
14373
  }]>, "queryFn"> & {
12230
14374
  queryFn?: import("@tanstack/react-query").QueryFunction<{
12231
- id: string;
12232
14375
  name: string;
12233
- description?: string;
12234
- modelId?: string;
12235
- reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
12236
- groupIds: Array<string>;
12237
- loop?: {
12238
- stopWhen?: {
12239
- maxSteps?: number;
12240
- };
12241
- context?: {
12242
- windowTokens?: number;
12243
- reserveTokens?: number;
12244
- keepRecentTokens?: number;
12245
- };
14376
+ model: {
14377
+ provider: string;
14378
+ modelId: string;
12246
14379
  };
12247
14380
  }, [Pick<Options<GetAgentData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
12248
14381
  _id: string;
@@ -12256,21 +14389,10 @@ export declare const getAgentOptions: (options: Options<GetAgentData>) => import
12256
14389
  tags?: ReadonlyArray<string>;
12257
14390
  }] & {
12258
14391
  [dataTagSymbol]: {
12259
- id: string;
12260
14392
  name: string;
12261
- description?: string;
12262
- modelId?: string;
12263
- reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
12264
- groupIds: Array<string>;
12265
- loop?: {
12266
- stopWhen?: {
12267
- maxSteps?: number;
12268
- };
12269
- context?: {
12270
- windowTokens?: number;
12271
- reserveTokens?: number;
12272
- keepRecentTokens?: number;
12273
- };
14393
+ model: {
14394
+ provider: string;
14395
+ modelId: string;
12274
14396
  };
12275
14397
  };
12276
14398
  [dataTagErrorSymbol]: {
@@ -12290,7 +14412,6 @@ export declare const listAgentThreadsOptions: (options?: Options<ListAgentThread
12290
14412
  threads: Array<{
12291
14413
  id: string;
12292
14414
  projectId: string;
12293
- agentId: string;
12294
14415
  ownerPrincipal: {
12295
14416
  type: "user" | "serviceAccount" | "system";
12296
14417
  id: string;
@@ -12309,7 +14430,6 @@ export declare const listAgentThreadsOptions: (options?: Options<ListAgentThread
12309
14430
  threads: Array<{
12310
14431
  id: string;
12311
14432
  projectId: string;
12312
- agentId: string;
12313
14433
  ownerPrincipal: {
12314
14434
  type: "user" | "serviceAccount" | "system";
12315
14435
  id: string;
@@ -12333,7 +14453,6 @@ export declare const listAgentThreadsOptions: (options?: Options<ListAgentThread
12333
14453
  threads: Array<{
12334
14454
  id: string;
12335
14455
  projectId: string;
12336
- agentId: string;
12337
14456
  ownerPrincipal: {
12338
14457
  type: "user" | "serviceAccount" | "system";
12339
14458
  id: string;
@@ -12363,7 +14482,6 @@ export declare const listAgentThreadsOptions: (options?: Options<ListAgentThread
12363
14482
  threads: Array<{
12364
14483
  id: string;
12365
14484
  projectId: string;
12366
- agentId: string;
12367
14485
  ownerPrincipal: {
12368
14486
  type: "user" | "serviceAccount" | "system";
12369
14487
  id: string;
@@ -12390,7 +14508,6 @@ export declare const listAgentThreadsInfiniteOptions: (options?: Options<ListAge
12390
14508
  threads: Array<{
12391
14509
  id: string;
12392
14510
  projectId: string;
12393
- agentId: string;
12394
14511
  ownerPrincipal: {
12395
14512
  type: "user" | "serviceAccount" | "system";
12396
14513
  id: string;
@@ -12409,7 +14526,6 @@ export declare const listAgentThreadsInfiniteOptions: (options?: Options<ListAge
12409
14526
  threads: Array<{
12410
14527
  id: string;
12411
14528
  projectId: string;
12412
- agentId: string;
12413
14529
  ownerPrincipal: {
12414
14530
  type: "user" | "serviceAccount" | "system";
12415
14531
  id: string;
@@ -12433,7 +14549,6 @@ export declare const listAgentThreadsInfiniteOptions: (options?: Options<ListAge
12433
14549
  threads: Array<{
12434
14550
  id: string;
12435
14551
  projectId: string;
12436
- agentId: string;
12437
14552
  ownerPrincipal: {
12438
14553
  type: "user" | "serviceAccount" | "system";
12439
14554
  id: string;
@@ -12456,7 +14571,6 @@ export declare const listAgentThreadsInfiniteOptions: (options?: Options<ListAge
12456
14571
  threads: Array<{
12457
14572
  id: string;
12458
14573
  projectId: string;
12459
- agentId: string;
12460
14574
  ownerPrincipal: {
12461
14575
  type: "user" | "serviceAccount" | "system";
12462
14576
  id: string;
@@ -12482,7 +14596,6 @@ export declare const listAgentThreadsInfiniteOptions: (options?: Options<ListAge
12482
14596
  threads: Array<{
12483
14597
  id: string;
12484
14598
  projectId: string;
12485
- agentId: string;
12486
14599
  ownerPrincipal: {
12487
14600
  type: "user" | "serviceAccount" | "system";
12488
14601
  id: string;
@@ -12516,7 +14629,6 @@ export declare const getAgentThreadQueryKey: (options: Options<GetAgentThreadDat
12516
14629
  export declare const getAgentThreadOptions: (options: Options<GetAgentThreadData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
12517
14630
  id: string;
12518
14631
  projectId: string;
12519
- agentId: string;
12520
14632
  ownerPrincipal: {
12521
14633
  type: "user" | "serviceAccount" | "system";
12522
14634
  id: string;
@@ -12531,7 +14643,6 @@ export declare const getAgentThreadOptions: (options: Options<GetAgentThreadData
12531
14643
  }, GetAgentThreadError, {
12532
14644
  id: string;
12533
14645
  projectId: string;
12534
- agentId: string;
12535
14646
  ownerPrincipal: {
12536
14647
  type: "user" | "serviceAccount" | "system";
12537
14648
  id: string;
@@ -12551,7 +14662,6 @@ export declare const getAgentThreadOptions: (options: Options<GetAgentThreadData
12551
14662
  queryFn?: import("@tanstack/react-query").QueryFunction<{
12552
14663
  id: string;
12553
14664
  projectId: string;
12554
- agentId: string;
12555
14665
  ownerPrincipal: {
12556
14666
  type: "user" | "serviceAccount" | "system";
12557
14667
  id: string;
@@ -12577,7 +14687,6 @@ export declare const getAgentThreadOptions: (options: Options<GetAgentThreadData
12577
14687
  [dataTagSymbol]: {
12578
14688
  id: string;
12579
14689
  projectId: string;
12580
- agentId: string;
12581
14690
  ownerPrincipal: {
12582
14691
  type: "user" | "serviceAccount" | "system";
12583
14692
  id: string;
@@ -12640,6 +14749,12 @@ export declare const listAgentThreadMessagesOptions: (options: Options<ListAgent
12640
14749
  providerMetadata?: string | number | boolean | Array<unknown> | {
12641
14750
  [key: string]: unknown;
12642
14751
  } | null;
14752
+ } | {
14753
+ type: "provider-state";
14754
+ providerId: string;
14755
+ data: string | number | boolean | Array<unknown> | {
14756
+ [key: string]: unknown;
14757
+ } | null;
12643
14758
  } | {
12644
14759
  context: {
12645
14760
  kind: "object";
@@ -12749,6 +14864,12 @@ export declare const listAgentThreadMessagesOptions: (options: Options<ListAgent
12749
14864
  providerMetadata?: string | number | boolean | Array<unknown> | {
12750
14865
  [key: string]: unknown;
12751
14866
  } | null;
14867
+ } | {
14868
+ type: "provider-state";
14869
+ providerId: string;
14870
+ data: string | number | boolean | Array<unknown> | {
14871
+ [key: string]: unknown;
14872
+ } | null;
12752
14873
  } | {
12753
14874
  context: {
12754
14875
  kind: "object";
@@ -12863,6 +14984,12 @@ export declare const listAgentThreadMessagesOptions: (options: Options<ListAgent
12863
14984
  providerMetadata?: string | number | boolean | Array<unknown> | {
12864
14985
  [key: string]: unknown;
12865
14986
  } | null;
14987
+ } | {
14988
+ type: "provider-state";
14989
+ providerId: string;
14990
+ data: string | number | boolean | Array<unknown> | {
14991
+ [key: string]: unknown;
14992
+ } | null;
12866
14993
  } | {
12867
14994
  context: {
12868
14995
  kind: "object";
@@ -12983,6 +15110,12 @@ export declare const listAgentThreadMessagesOptions: (options: Options<ListAgent
12983
15110
  providerMetadata?: string | number | boolean | Array<unknown> | {
12984
15111
  [key: string]: unknown;
12985
15112
  } | null;
15113
+ } | {
15114
+ type: "provider-state";
15115
+ providerId: string;
15116
+ data: string | number | boolean | Array<unknown> | {
15117
+ [key: string]: unknown;
15118
+ } | null;
12986
15119
  } | {
12987
15120
  context: {
12988
15121
  kind: "object";
@@ -13100,6 +15233,12 @@ export declare const listAgentThreadMessagesInfiniteOptions: (options: Options<L
13100
15233
  providerMetadata?: string | number | boolean | Array<unknown> | {
13101
15234
  [key: string]: unknown;
13102
15235
  } | null;
15236
+ } | {
15237
+ type: "provider-state";
15238
+ providerId: string;
15239
+ data: string | number | boolean | Array<unknown> | {
15240
+ [key: string]: unknown;
15241
+ } | null;
13103
15242
  } | {
13104
15243
  context: {
13105
15244
  kind: "object";
@@ -13209,6 +15348,12 @@ export declare const listAgentThreadMessagesInfiniteOptions: (options: Options<L
13209
15348
  providerMetadata?: string | number | boolean | Array<unknown> | {
13210
15349
  [key: string]: unknown;
13211
15350
  } | null;
15351
+ } | {
15352
+ type: "provider-state";
15353
+ providerId: string;
15354
+ data: string | number | boolean | Array<unknown> | {
15355
+ [key: string]: unknown;
15356
+ } | null;
13212
15357
  } | {
13213
15358
  context: {
13214
15359
  kind: "object";
@@ -13323,6 +15468,12 @@ export declare const listAgentThreadMessagesInfiniteOptions: (options: Options<L
13323
15468
  providerMetadata?: string | number | boolean | Array<unknown> | {
13324
15469
  [key: string]: unknown;
13325
15470
  } | null;
15471
+ } | {
15472
+ type: "provider-state";
15473
+ providerId: string;
15474
+ data: string | number | boolean | Array<unknown> | {
15475
+ [key: string]: unknown;
15476
+ } | null;
13326
15477
  } | {
13327
15478
  context: {
13328
15479
  kind: "object";
@@ -13436,6 +15587,12 @@ export declare const listAgentThreadMessagesInfiniteOptions: (options: Options<L
13436
15587
  providerMetadata?: string | number | boolean | Array<unknown> | {
13437
15588
  [key: string]: unknown;
13438
15589
  } | null;
15590
+ } | {
15591
+ type: "provider-state";
15592
+ providerId: string;
15593
+ data: string | number | boolean | Array<unknown> | {
15594
+ [key: string]: unknown;
15595
+ } | null;
13439
15596
  } | {
13440
15597
  context: {
13441
15598
  kind: "object";
@@ -13552,6 +15709,12 @@ export declare const listAgentThreadMessagesInfiniteOptions: (options: Options<L
13552
15709
  providerMetadata?: string | number | boolean | Array<unknown> | {
13553
15710
  [key: string]: unknown;
13554
15711
  } | null;
15712
+ } | {
15713
+ type: "provider-state";
15714
+ providerId: string;
15715
+ data: string | number | boolean | Array<unknown> | {
15716
+ [key: string]: unknown;
15717
+ } | null;
13555
15718
  } | {
13556
15719
  context: {
13557
15720
  kind: "object";
@@ -13679,13 +15842,19 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
13679
15842
  id: string;
13680
15843
  projectId: string;
13681
15844
  threadId: string;
13682
- agentId: string;
13683
15845
  triggerMessageId: string;
13684
15846
  requestedBy?: {
13685
15847
  type: "user" | "serviceAccount";
13686
15848
  id: string;
13687
15849
  };
13688
15850
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
15851
+ model?: {
15852
+ provider: string;
15853
+ modelId: string;
15854
+ };
15855
+ reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
15856
+ budgetTokens: number;
15857
+ };
13689
15858
  modelId?: string;
13690
15859
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
13691
15860
  usage?: {
@@ -13716,7 +15885,7 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
13716
15885
  message: string;
13717
15886
  }>;
13718
15887
  error?: {
13719
- code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
15888
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
13720
15889
  message: string;
13721
15890
  retryable: boolean;
13722
15891
  at: string;
@@ -13738,13 +15907,19 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
13738
15907
  id: string;
13739
15908
  projectId: string;
13740
15909
  threadId: string;
13741
- agentId: string;
13742
15910
  triggerMessageId: string;
13743
15911
  requestedBy?: {
13744
15912
  type: "user" | "serviceAccount";
13745
15913
  id: string;
13746
15914
  };
13747
15915
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
15916
+ model?: {
15917
+ provider: string;
15918
+ modelId: string;
15919
+ };
15920
+ reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
15921
+ budgetTokens: number;
15922
+ };
13748
15923
  modelId?: string;
13749
15924
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
13750
15925
  usage?: {
@@ -13775,7 +15950,7 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
13775
15950
  message: string;
13776
15951
  }>;
13777
15952
  error?: {
13778
- code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
15953
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
13779
15954
  message: string;
13780
15955
  retryable: boolean;
13781
15956
  at: string;
@@ -13802,13 +15977,19 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
13802
15977
  id: string;
13803
15978
  projectId: string;
13804
15979
  threadId: string;
13805
- agentId: string;
13806
15980
  triggerMessageId: string;
13807
15981
  requestedBy?: {
13808
15982
  type: "user" | "serviceAccount";
13809
15983
  id: string;
13810
15984
  };
13811
15985
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
15986
+ model?: {
15987
+ provider: string;
15988
+ modelId: string;
15989
+ };
15990
+ reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
15991
+ budgetTokens: number;
15992
+ };
13812
15993
  modelId?: string;
13813
15994
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
13814
15995
  usage?: {
@@ -13839,7 +16020,7 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
13839
16020
  message: string;
13840
16021
  }>;
13841
16022
  error?: {
13842
- code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
16023
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
13843
16024
  message: string;
13844
16025
  retryable: boolean;
13845
16026
  at: string;
@@ -13872,13 +16053,19 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
13872
16053
  id: string;
13873
16054
  projectId: string;
13874
16055
  threadId: string;
13875
- agentId: string;
13876
16056
  triggerMessageId: string;
13877
16057
  requestedBy?: {
13878
16058
  type: "user" | "serviceAccount";
13879
16059
  id: string;
13880
16060
  };
13881
16061
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
16062
+ model?: {
16063
+ provider: string;
16064
+ modelId: string;
16065
+ };
16066
+ reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
16067
+ budgetTokens: number;
16068
+ };
13882
16069
  modelId?: string;
13883
16070
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
13884
16071
  usage?: {
@@ -13909,7 +16096,7 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
13909
16096
  message: string;
13910
16097
  }>;
13911
16098
  error?: {
13912
- code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
16099
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
13913
16100
  message: string;
13914
16101
  retryable: boolean;
13915
16102
  at: string;
@@ -13939,13 +16126,19 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
13939
16126
  id: string;
13940
16127
  projectId: string;
13941
16128
  threadId: string;
13942
- agentId: string;
13943
16129
  triggerMessageId: string;
13944
16130
  requestedBy?: {
13945
16131
  type: "user" | "serviceAccount";
13946
16132
  id: string;
13947
16133
  };
13948
16134
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
16135
+ model?: {
16136
+ provider: string;
16137
+ modelId: string;
16138
+ };
16139
+ reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
16140
+ budgetTokens: number;
16141
+ };
13949
16142
  modelId?: string;
13950
16143
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
13951
16144
  usage?: {
@@ -13976,7 +16169,7 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
13976
16169
  message: string;
13977
16170
  }>;
13978
16171
  error?: {
13979
- code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
16172
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
13980
16173
  message: string;
13981
16174
  retryable: boolean;
13982
16175
  at: string;
@@ -13998,13 +16191,19 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
13998
16191
  id: string;
13999
16192
  projectId: string;
14000
16193
  threadId: string;
14001
- agentId: string;
14002
16194
  triggerMessageId: string;
14003
16195
  requestedBy?: {
14004
16196
  type: "user" | "serviceAccount";
14005
16197
  id: string;
14006
16198
  };
14007
16199
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
16200
+ model?: {
16201
+ provider: string;
16202
+ modelId: string;
16203
+ };
16204
+ reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
16205
+ budgetTokens: number;
16206
+ };
14008
16207
  modelId?: string;
14009
16208
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
14010
16209
  usage?: {
@@ -14035,7 +16234,7 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
14035
16234
  message: string;
14036
16235
  }>;
14037
16236
  error?: {
14038
- code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
16237
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
14039
16238
  message: string;
14040
16239
  retryable: boolean;
14041
16240
  at: string;
@@ -14062,13 +16261,19 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
14062
16261
  id: string;
14063
16262
  projectId: string;
14064
16263
  threadId: string;
14065
- agentId: string;
14066
16264
  triggerMessageId: string;
14067
16265
  requestedBy?: {
14068
16266
  type: "user" | "serviceAccount";
14069
16267
  id: string;
14070
16268
  };
14071
16269
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
16270
+ model?: {
16271
+ provider: string;
16272
+ modelId: string;
16273
+ };
16274
+ reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
16275
+ budgetTokens: number;
16276
+ };
14072
16277
  modelId?: string;
14073
16278
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
14074
16279
  usage?: {
@@ -14099,7 +16304,7 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
14099
16304
  message: string;
14100
16305
  }>;
14101
16306
  error?: {
14102
- code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
16307
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
14103
16308
  message: string;
14104
16309
  retryable: boolean;
14105
16310
  at: string;
@@ -14125,13 +16330,19 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
14125
16330
  id: string;
14126
16331
  projectId: string;
14127
16332
  threadId: string;
14128
- agentId: string;
14129
16333
  triggerMessageId: string;
14130
16334
  requestedBy?: {
14131
16335
  type: "user" | "serviceAccount";
14132
16336
  id: string;
14133
16337
  };
14134
16338
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
16339
+ model?: {
16340
+ provider: string;
16341
+ modelId: string;
16342
+ };
16343
+ reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
16344
+ budgetTokens: number;
16345
+ };
14135
16346
  modelId?: string;
14136
16347
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
14137
16348
  usage?: {
@@ -14162,7 +16373,7 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
14162
16373
  message: string;
14163
16374
  }>;
14164
16375
  error?: {
14165
- code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
16376
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
14166
16377
  message: string;
14167
16378
  retryable: boolean;
14168
16379
  at: string;
@@ -14191,13 +16402,19 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
14191
16402
  id: string;
14192
16403
  projectId: string;
14193
16404
  threadId: string;
14194
- agentId: string;
14195
16405
  triggerMessageId: string;
14196
16406
  requestedBy?: {
14197
16407
  type: "user" | "serviceAccount";
14198
16408
  id: string;
14199
16409
  };
14200
16410
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
16411
+ model?: {
16412
+ provider: string;
16413
+ modelId: string;
16414
+ };
16415
+ reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
16416
+ budgetTokens: number;
16417
+ };
14201
16418
  modelId?: string;
14202
16419
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
14203
16420
  usage?: {
@@ -14228,7 +16445,7 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
14228
16445
  message: string;
14229
16446
  }>;
14230
16447
  error?: {
14231
- code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
16448
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
14232
16449
  message: string;
14233
16450
  retryable: boolean;
14234
16451
  at: string;
@@ -14261,13 +16478,19 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
14261
16478
  id: string;
14262
16479
  projectId: string;
14263
16480
  threadId: string;
14264
- agentId: string;
14265
16481
  triggerMessageId: string;
14266
16482
  requestedBy?: {
14267
16483
  type: "user" | "serviceAccount";
14268
16484
  id: string;
14269
16485
  };
14270
16486
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
16487
+ model?: {
16488
+ provider: string;
16489
+ modelId: string;
16490
+ };
16491
+ reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
16492
+ budgetTokens: number;
16493
+ };
14271
16494
  modelId?: string;
14272
16495
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
14273
16496
  usage?: {
@@ -14298,7 +16521,7 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
14298
16521
  message: string;
14299
16522
  }>;
14300
16523
  error?: {
14301
- code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
16524
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
14302
16525
  message: string;
14303
16526
  retryable: boolean;
14304
16527
  at: string;
@@ -14316,13 +16539,19 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
14316
16539
  id: string;
14317
16540
  projectId: string;
14318
16541
  threadId: string;
14319
- agentId: string;
14320
16542
  triggerMessageId: string;
14321
16543
  requestedBy?: {
14322
16544
  type: "user" | "serviceAccount";
14323
16545
  id: string;
14324
16546
  };
14325
16547
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
16548
+ model?: {
16549
+ provider: string;
16550
+ modelId: string;
16551
+ };
16552
+ reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
16553
+ budgetTokens: number;
16554
+ };
14326
16555
  modelId?: string;
14327
16556
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
14328
16557
  usage?: {
@@ -14353,7 +16582,7 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
14353
16582
  message: string;
14354
16583
  }>;
14355
16584
  error?: {
14356
- code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
16585
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
14357
16586
  message: string;
14358
16587
  retryable: boolean;
14359
16588
  at: string;
@@ -14376,13 +16605,19 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
14376
16605
  id: string;
14377
16606
  projectId: string;
14378
16607
  threadId: string;
14379
- agentId: string;
14380
16608
  triggerMessageId: string;
14381
16609
  requestedBy?: {
14382
16610
  type: "user" | "serviceAccount";
14383
16611
  id: string;
14384
16612
  };
14385
16613
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
16614
+ model?: {
16615
+ provider: string;
16616
+ modelId: string;
16617
+ };
16618
+ reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
16619
+ budgetTokens: number;
16620
+ };
14386
16621
  modelId?: string;
14387
16622
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
14388
16623
  usage?: {
@@ -14413,7 +16648,7 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
14413
16648
  message: string;
14414
16649
  }>;
14415
16650
  error?: {
14416
- code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
16651
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
14417
16652
  message: string;
14418
16653
  retryable: boolean;
14419
16654
  at: string;
@@ -14442,13 +16677,19 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
14442
16677
  id: string;
14443
16678
  projectId: string;
14444
16679
  threadId: string;
14445
- agentId: string;
14446
16680
  triggerMessageId: string;
14447
16681
  requestedBy?: {
14448
16682
  type: "user" | "serviceAccount";
14449
16683
  id: string;
14450
16684
  };
14451
16685
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
16686
+ model?: {
16687
+ provider: string;
16688
+ modelId: string;
16689
+ };
16690
+ reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
16691
+ budgetTokens: number;
16692
+ };
14452
16693
  modelId?: string;
14453
16694
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
14454
16695
  usage?: {
@@ -14479,7 +16720,7 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
14479
16720
  message: string;
14480
16721
  }>;
14481
16722
  error?: {
14482
- code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
16723
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
14483
16724
  message: string;
14484
16725
  retryable: boolean;
14485
16726
  at: string;
@@ -14510,12 +16751,46 @@ export declare const listModelsOptions: (options?: Options<ListModelsData>) => i
14510
16751
  provider: string;
14511
16752
  modelId: string;
14512
16753
  isDefault: boolean;
16754
+ name: string;
16755
+ description?: string;
16756
+ publisher: {
16757
+ id: string;
16758
+ name: string;
16759
+ };
16760
+ via?: string;
16761
+ capabilities: {
16762
+ input: Array<"text" | "image" | "audio" | "video" | "pdf">;
16763
+ output: Array<"text" | "image" | "audio" | "video" | "pdf">;
16764
+ attachments?: boolean;
16765
+ reasoning?: boolean;
16766
+ tools?: boolean;
16767
+ structuredOutput?: boolean;
16768
+ contextWindowTokens?: number;
16769
+ };
16770
+ reasoningLevels: Array<"provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max">;
14513
16771
  }>;
14514
16772
  }, Error, {
14515
16773
  language: Array<{
14516
16774
  provider: string;
14517
16775
  modelId: string;
14518
16776
  isDefault: boolean;
16777
+ name: string;
16778
+ description?: string;
16779
+ publisher: {
16780
+ id: string;
16781
+ name: string;
16782
+ };
16783
+ via?: string;
16784
+ capabilities: {
16785
+ input: Array<"text" | "image" | "audio" | "video" | "pdf">;
16786
+ output: Array<"text" | "image" | "audio" | "video" | "pdf">;
16787
+ attachments?: boolean;
16788
+ reasoning?: boolean;
16789
+ tools?: boolean;
16790
+ structuredOutput?: boolean;
16791
+ contextWindowTokens?: number;
16792
+ };
16793
+ reasoningLevels: Array<"provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max">;
14519
16794
  }>;
14520
16795
  }, [Pick<Options<ListModelsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
14521
16796
  _id: string;
@@ -14527,6 +16802,23 @@ export declare const listModelsOptions: (options?: Options<ListModelsData>) => i
14527
16802
  provider: string;
14528
16803
  modelId: string;
14529
16804
  isDefault: boolean;
16805
+ name: string;
16806
+ description?: string;
16807
+ publisher: {
16808
+ id: string;
16809
+ name: string;
16810
+ };
16811
+ via?: string;
16812
+ capabilities: {
16813
+ input: Array<"text" | "image" | "audio" | "video" | "pdf">;
16814
+ output: Array<"text" | "image" | "audio" | "video" | "pdf">;
16815
+ attachments?: boolean;
16816
+ reasoning?: boolean;
16817
+ tools?: boolean;
16818
+ structuredOutput?: boolean;
16819
+ contextWindowTokens?: number;
16820
+ };
16821
+ reasoningLevels: Array<"provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max">;
14530
16822
  }>;
14531
16823
  }, [Pick<Options<ListModelsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
14532
16824
  _id: string;
@@ -14544,6 +16836,23 @@ export declare const listModelsOptions: (options?: Options<ListModelsData>) => i
14544
16836
  provider: string;
14545
16837
  modelId: string;
14546
16838
  isDefault: boolean;
16839
+ name: string;
16840
+ description?: string;
16841
+ publisher: {
16842
+ id: string;
16843
+ name: string;
16844
+ };
16845
+ via?: string;
16846
+ capabilities: {
16847
+ input: Array<"text" | "image" | "audio" | "video" | "pdf">;
16848
+ output: Array<"text" | "image" | "audio" | "video" | "pdf">;
16849
+ attachments?: boolean;
16850
+ reasoning?: boolean;
16851
+ tools?: boolean;
16852
+ structuredOutput?: boolean;
16853
+ contextWindowTokens?: number;
16854
+ };
16855
+ reasoningLevels: Array<"provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max">;
14547
16856
  }>;
14548
16857
  };
14549
16858
  [dataTagErrorSymbol]: Error;