@sixb/client 0.1.20 → 0.1.21

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 (45) hide show
  1. package/dist/activity-attribution.d.ts +29 -0
  2. package/dist/activity-attribution.d.ts.map +1 -0
  3. package/dist/activity-tracker.d.ts +105 -0
  4. package/dist/activity-tracker.d.ts.map +1 -0
  5. package/dist/browser.d.ts +2 -0
  6. package/dist/browser.d.ts.map +1 -1
  7. package/dist/browser.js +513 -11
  8. package/dist/browser.js.map +6 -4
  9. package/dist/{chunk-g05ar78c.js → chunk-3b154p8n.js} +3 -3
  10. package/dist/{chunk-tkjkrcdt.js → chunk-3f2pjdzk.js} +155 -2
  11. package/dist/chunk-3f2pjdzk.js.map +19 -0
  12. package/dist/{chunk-awbb496e.js → chunk-9wd8x2em.js} +1 -1
  13. package/dist/{chunk-3aa3m9z6.js → chunk-ana8rtgb.js} +2 -2
  14. package/dist/{chunk-95bnb04n.js → chunk-qdq5gfqx.js} +1 -1
  15. package/dist/{chunk-12s8gbwj.js → chunk-s5zamywm.js} +2 -2
  16. package/dist/generated/@tanstack/react-query.gen.d.ts +2281 -591
  17. package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
  18. package/dist/generated/index.d.ts +2 -2
  19. package/dist/generated/index.d.ts.map +1 -1
  20. package/dist/generated/sdk.gen.d.ts +89 -1
  21. package/dist/generated/sdk.gen.d.ts.map +1 -1
  22. package/dist/generated/types.gen.d.ts +1669 -448
  23. package/dist/generated/types.gen.d.ts.map +1 -1
  24. package/dist/hooks.js +299 -6
  25. package/dist/hooks.js.map +3 -3
  26. package/dist/index.js +40 -6
  27. package/dist/index.js.map +1 -1
  28. package/dist/logs.js +3 -3
  29. package/dist/models.js +36 -2
  30. package/dist/models.js.map +1 -1
  31. package/dist/query.js +3 -3
  32. package/package.json +2 -2
  33. package/src/activity-attribution.ts +211 -0
  34. package/src/activity-tracker.ts +527 -0
  35. package/src/browser.ts +14 -1
  36. package/src/generated/@tanstack/react-query.gen.ts +580 -0
  37. package/src/generated/index.ts +101 -0
  38. package/src/generated/sdk.gen.ts +389 -0
  39. package/src/generated/types.gen.ts +2405 -1090
  40. package/dist/chunk-tkjkrcdt.js.map +0 -19
  41. /package/dist/{chunk-g05ar78c.js.map → chunk-3b154p8n.js.map} +0 -0
  42. /package/dist/{chunk-awbb496e.js.map → chunk-9wd8x2em.js.map} +0 -0
  43. /package/dist/{chunk-3aa3m9z6.js.map → chunk-ana8rtgb.js.map} +0 -0
  44. /package/dist/{chunk-95bnb04n.js.map → chunk-qdq5gfqx.js.map} +0 -0
  45. /package/dist/{chunk-12s8gbwj.js.map → chunk-s5zamywm.js.map} +0 -0
@@ -1,6 +1,6 @@
1
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, 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, ListPendingConnectorConnectionRunsData, ListPendingConnectorConnectionRunsError, 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, RecreateAgentThreadSandboxData, RecreateAgentThreadSandboxError, RecreateAgentThreadSandboxResponse, RefreshAuthSessionData, RefreshAuthSessionError, RefreshAuthSessionResponse, 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";
3
+ import type { AbortFileUploadData, AbortFileUploadError, AbortFileUploadResponse, AddConnectorConnectionData, AddConnectorConnectionError, AddConnectorConnectionResponse, AppendTelemetryData, AppendTelemetryError, AppendTelemetryResponse, CancelAgentRunData, CancelAgentRunError, CancelAgentRunResponse, CancelWorkflowInterventionData, CancelWorkflowInterventionError, CancelWorkflowInterventionResponse, CancelWorkflowRunData, CancelWorkflowRunError, CancelWorkflowRunResponse, CaptureActivityData, CaptureActivityError, CaptureActivityResponse, CompleteFileUploadData, CompleteFileUploadError, CompleteFileUploadResponse, CountObjectsData, CountObjectsError, CountObjectsResponse, CreateAgentThreadData, CreateAgentThreadError, CreateAgentThreadResponse, CreateAiLimitPolicyData, CreateAiLimitPolicyError, CreateAiLimitPolicyResponse, CreateArtifactData, CreateArtifactError, CreateArtifactFrameData, CreateArtifactFrameError, CreateArtifactFrameResponse, CreateArtifactResponse, CreateAuthInvitationData, CreateAuthInvitationError, CreateAuthInvitationResponse, CreateAuthPersonalAccessTokenData, CreateAuthPersonalAccessTokenError, CreateAuthPersonalAccessTokenResponse, CreateAuthServiceAccountAccessTokenData, CreateAuthServiceAccountAccessTokenError, CreateAuthServiceAccountAccessTokenResponse, CreateAuthServiceAccountData, CreateAuthServiceAccountError, CreateAuthServiceAccountResponse, CreateDeviceAuthorizationData, CreateDeviceAuthorizationError, CreateDeviceAuthorizationResponse, CreateFileUploadData, CreateFileUploadError, CreateFileUploadResponse, DeleteAiLimitPolicyData, DeleteAiLimitPolicyError, DeleteAiLimitPolicyResponse, DeleteArtifactData, DeleteArtifactError, DeleteArtifactResponse, DisableAuthServiceAccountData, DisableAuthServiceAccountError, DisableAuthServiceAccountResponse, DisconnectConnectorConnectionData, DisconnectConnectorConnectionError, DisconnectConnectorConnectionResponse, ExchangeDeviceAuthorizationData, ExchangeDeviceAuthorizationResponse, ExchangeSharedAccessData, ExchangeSharedAccessError, ExchangeSharedAccessResponse, ExistsObjectsData, ExistsObjectsError, ExistsObjectsResponse, FacetObjectsData, FacetObjectsError, FacetObjectsResponse, GetActionData, GetActionRunData, GetActionRunError, GetActionRunFileContentData, GetActionRunFileContentResponse, GetActivityCalendarData, GetActivityCalendarError, GetActivityCaptureConfigData, GetActivityCaptureConfigError, GetActivitySummaryData, GetActivitySummaryError, GetActivityVisitTimelineData, GetActivityVisitTimelineError, GetAgentData, GetAgentMessageFileContentData, GetAgentMessageFileContentResponse, GetAgentRunData, GetAgentRunError, GetAgentThreadData, GetAgentThreadError, GetAiAccountingOverviewData, GetAiAccountingOverviewError, GetAiLimitStatusData, GetAiLimitStatusError, GetAiLimitSubjectOptionsData, GetAiLimitSubjectOptionsError, GetArtifactData, GetArtifactError, GetArtifactFileContentData, GetArtifactFileContentResponse, GetArtifactVersionData, GetArtifactVersionError, 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, ListActivityConnectionsData, ListActivityConnectionsError, ListActivityUsersData, ListActivityUsersError, ListActivityVisitsData, ListActivityVisitsError, ListAgentThreadMessagesData, ListAgentThreadMessagesError, ListAgentThreadRunsData, ListAgentThreadRunsError, ListAgentThreadsData, ListAgentThreadsError, ListAiLimitPoliciesData, ListAiLimitPoliciesError, ListAiModelCallGroupsData, ListAiModelCallGroupsError, ListAiModelCallsData, ListAiModelCallsError, ListArtifactsData, ListArtifactsError, 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, ListPendingConnectorConnectionRunsData, ListPendingConnectorConnectionRunsError, ListPipelineRunsData, ListPipelineRunsError, ListPipelinesData, ListProjectionRunsData, ListProjectionRunsError, ListProjectionsData, ListRuleStatesData, ListRuleStatesError, ListRulesData, ListSharedAccessGrantsData, ListSharedAccessGrantsError, ListSyncRunsData, ListSyncRunsError, ListSyncsData, ListWebhookRunsData, ListWebhookRunsError, ListWorkflowInterventionsData, ListWorkflowInterventionsError, ListWorkflowRunsData, ListWorkflowRunsError, ListWorkflowsData, PostAgentThreadMessageData, PostAgentThreadMessageError, PostAgentThreadMessageResponse, PublishArtifactVersionData, PublishArtifactVersionError, PublishArtifactVersionResponse, QueryObjectLinksData, QueryObjectLinksError, QueryObjectLinksResponse, QueryObjectsData, QueryObjectsError, QueryObjectsResponse, ReactivateAuthMemberData, ReactivateAuthMemberError, ReactivateAuthMemberResponse, ReauthorizeConnectorConnectionData, ReauthorizeConnectorConnectionError, ReauthorizeConnectorConnectionResponse, RecreateAgentThreadSandboxData, RecreateAgentThreadSandboxError, RecreateAgentThreadSandboxResponse, RefreshAuthSessionData, RefreshAuthSessionError, RefreshAuthSessionResponse, 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
4
  /**
5
5
  * Start device authorization
6
6
  */
@@ -1280,11 +1280,7 @@ export declare const getAiAccountingOverviewOptions: (options: Options<GetAiAcco
1280
1280
  cacheWriteInputTokens?: number;
1281
1281
  textOutputTokens?: number;
1282
1282
  reasoningOutputTokens?: number;
1283
- audioDurationMs
1284
- /**
1285
- * List project AI model-call accounting records
1286
- */
1287
- ?: number;
1283
+ audioDurationMs?: number;
1288
1284
  reportingStatus: "complete" | "partial" | "unavailable";
1289
1285
  };
1290
1286
  usageCoverage: {
@@ -1520,11 +1516,7 @@ export declare const getAiAccountingOverviewOptions: (options: Options<GetAiAcco
1520
1516
  cacheWriteInputTokens?: number;
1521
1517
  textOutputTokens?: number;
1522
1518
  reasoningOutputTokens?: number;
1523
- audioDurationMs
1524
- /**
1525
- * List project AI model-call accounting records
1526
- */
1527
- ?: number;
1519
+ audioDurationMs?: number;
1528
1520
  reportingStatus: "complete" | "partial" | "unavailable";
1529
1521
  };
1530
1522
  usageCoverage: {
@@ -1765,11 +1757,7 @@ export declare const getAiAccountingOverviewOptions: (options: Options<GetAiAcco
1765
1757
  cacheWriteInputTokens?: number;
1766
1758
  textOutputTokens?: number;
1767
1759
  reasoningOutputTokens?: number;
1768
- audioDurationMs
1769
- /**
1770
- * List project AI model-call accounting records
1771
- */
1772
- ?: number;
1760
+ audioDurationMs?: number;
1773
1761
  reportingStatus: "complete" | "partial" | "unavailable";
1774
1762
  };
1775
1763
  usageCoverage: {
@@ -2016,11 +2004,7 @@ export declare const getAiAccountingOverviewOptions: (options: Options<GetAiAcco
2016
2004
  cacheWriteInputTokens?: number;
2017
2005
  textOutputTokens?: number;
2018
2006
  reasoningOutputTokens?: number;
2019
- audioDurationMs
2020
- /**
2021
- * List project AI model-call accounting records
2022
- */
2023
- ?: number;
2007
+ audioDurationMs?: number;
2024
2008
  reportingStatus: "complete" | "partial" | "unavailable";
2025
2009
  };
2026
2010
  usageCoverage: {
@@ -9477,13 +9461,7 @@ export declare const getPipelineRunOptions: (options: Options<GetPipelineRunData
9477
9461
  datasetId: string;
9478
9462
  versionId: string;
9479
9463
  }>;
9480
- output
9481
- /**
9482
- * Read domain events
9483
- */
9484
- ? /**
9485
- * Read domain events
9486
- */: {
9464
+ output?: {
9487
9465
  datasetId: string;
9488
9466
  versionId: string;
9489
9467
  };
@@ -9542,13 +9520,7 @@ export declare const getPipelineRunOptions: (options: Options<GetPipelineRunData
9542
9520
  datasetId: string;
9543
9521
  versionId: string;
9544
9522
  }>;
9545
- output
9546
- /**
9547
- * Read domain events
9548
- */
9549
- ? /**
9550
- * Read domain events
9551
- */: {
9523
+ output?: {
9552
9524
  datasetId: string;
9553
9525
  versionId: string;
9554
9526
  };
@@ -9612,13 +9584,7 @@ export declare const getPipelineRunOptions: (options: Options<GetPipelineRunData
9612
9584
  datasetId: string;
9613
9585
  versionId: string;
9614
9586
  }>;
9615
- output
9616
- /**
9617
- * Read domain events
9618
- */
9619
- ? /**
9620
- * Read domain events
9621
- */: {
9587
+ output?: {
9622
9588
  datasetId: string;
9623
9589
  versionId: string;
9624
9590
  };
@@ -9688,13 +9654,7 @@ export declare const getPipelineRunOptions: (options: Options<GetPipelineRunData
9688
9654
  datasetId: string;
9689
9655
  versionId: string;
9690
9656
  }>;
9691
- output
9692
- /**
9693
- * Read domain events
9694
- */
9695
- ? /**
9696
- * Read domain events
9697
- */: {
9657
+ output?: {
9698
9658
  datasetId: string;
9699
9659
  versionId: string;
9700
9660
  };
@@ -16534,10 +16494,9 @@ export declare const listAgentThreadMessagesOptions: (options: Options<ListAgent
16534
16494
  errorText: string;
16535
16495
  }>;
16536
16496
  annotations: Array<{
16537
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
16497
+ code: "step_limit_reached";
16538
16498
  severity: "warning" | "error";
16539
- scope: "output" | "run";
16540
- path?: string;
16499
+ scope: "run";
16541
16500
  message: string;
16542
16501
  }>;
16543
16502
  compaction?: {
@@ -16652,10 +16611,9 @@ export declare const listAgentThreadMessagesOptions: (options: Options<ListAgent
16652
16611
  errorText: string;
16653
16612
  }>;
16654
16613
  annotations: Array<{
16655
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
16614
+ code: "step_limit_reached";
16656
16615
  severity: "warning" | "error";
16657
- scope: "output" | "run";
16658
- path?: string;
16616
+ scope: "run";
16659
16617
  message: string;
16660
16618
  }>;
16661
16619
  compaction?: {
@@ -16775,10 +16733,9 @@ export declare const listAgentThreadMessagesOptions: (options: Options<ListAgent
16775
16733
  errorText: string;
16776
16734
  }>;
16777
16735
  annotations: Array<{
16778
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
16736
+ code: "step_limit_reached";
16779
16737
  severity: "warning" | "error";
16780
- scope: "output" | "run";
16781
- path?: string;
16738
+ scope: "run";
16782
16739
  message: string;
16783
16740
  }>;
16784
16741
  compaction?: {
@@ -16904,10 +16861,9 @@ export declare const listAgentThreadMessagesOptions: (options: Options<ListAgent
16904
16861
  errorText: string;
16905
16862
  }>;
16906
16863
  annotations: Array<{
16907
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
16864
+ code: "step_limit_reached";
16908
16865
  severity: "warning" | "error";
16909
- scope: "output" | "run";
16910
- path?: string;
16866
+ scope: "run";
16911
16867
  message: string;
16912
16868
  }>;
16913
16869
  compaction?: {
@@ -17030,10 +16986,9 @@ export declare const listAgentThreadMessagesInfiniteOptions: (options: Options<L
17030
16986
  errorText: string;
17031
16987
  }>;
17032
16988
  annotations: Array<{
17033
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
16989
+ code: "step_limit_reached";
17034
16990
  severity: "warning" | "error";
17035
- scope: "output" | "run";
17036
- path?: string;
16991
+ scope: "run";
17037
16992
  message: string;
17038
16993
  }>;
17039
16994
  compaction?: {
@@ -17148,10 +17103,9 @@ export declare const listAgentThreadMessagesInfiniteOptions: (options: Options<L
17148
17103
  errorText: string;
17149
17104
  }>;
17150
17105
  annotations: Array<{
17151
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
17106
+ code: "step_limit_reached";
17152
17107
  severity: "warning" | "error";
17153
- scope: "output" | "run";
17154
- path?: string;
17108
+ scope: "run";
17155
17109
  message: string;
17156
17110
  }>;
17157
17111
  compaction?: {
@@ -17271,10 +17225,9 @@ export declare const listAgentThreadMessagesInfiniteOptions: (options: Options<L
17271
17225
  errorText: string;
17272
17226
  }>;
17273
17227
  annotations: Array<{
17274
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
17228
+ code: "step_limit_reached";
17275
17229
  severity: "warning" | "error";
17276
- scope: "output" | "run";
17277
- path?: string;
17230
+ scope: "run";
17278
17231
  message: string;
17279
17232
  }>;
17280
17233
  compaction?: {
@@ -17393,10 +17346,9 @@ export declare const listAgentThreadMessagesInfiniteOptions: (options: Options<L
17393
17346
  errorText: string;
17394
17347
  }>;
17395
17348
  annotations: Array<{
17396
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
17349
+ code: "step_limit_reached";
17397
17350
  severity: "warning" | "error";
17398
- scope: "output" | "run";
17399
- path?: string;
17351
+ scope: "run";
17400
17352
  message: string;
17401
17353
  }>;
17402
17354
  compaction?: {
@@ -17518,10 +17470,9 @@ export declare const listAgentThreadMessagesInfiniteOptions: (options: Options<L
17518
17470
  errorText: string;
17519
17471
  }>;
17520
17472
  annotations: Array<{
17521
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
17473
+ code: "step_limit_reached";
17522
17474
  severity: "warning" | "error";
17523
- scope: "output" | "run";
17524
- path?: string;
17475
+ scope: "run";
17525
17476
  message: string;
17526
17477
  }>;
17527
17478
  compaction?: {
@@ -17632,10 +17583,9 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
17632
17583
  unvaluedCallCount: number;
17633
17584
  };
17634
17585
  diagnostics?: Array<{
17635
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
17586
+ code: "step_limit_reached";
17636
17587
  severity: "warning" | "error";
17637
- scope: "output" | "run";
17638
- path?: string;
17588
+ scope: "run";
17639
17589
  message: string;
17640
17590
  }>;
17641
17591
  error?: {
@@ -17700,10 +17650,9 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
17700
17650
  unvaluedCallCount: number;
17701
17651
  };
17702
17652
  diagnostics?: Array<{
17703
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
17653
+ code: "step_limit_reached";
17704
17654
  severity: "warning" | "error";
17705
- scope: "output" | "run";
17706
- path?: string;
17655
+ scope: "run";
17707
17656
  message: string;
17708
17657
  }>;
17709
17658
  error?: {
@@ -17773,10 +17722,9 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
17773
17722
  unvaluedCallCount: number;
17774
17723
  };
17775
17724
  diagnostics?: Array<{
17776
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
17725
+ code: "step_limit_reached";
17777
17726
  severity: "warning" | "error";
17778
- scope: "output" | "run";
17779
- path?: string;
17727
+ scope: "run";
17780
17728
  message: string;
17781
17729
  }>;
17782
17730
  error?: {
@@ -17852,10 +17800,9 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
17852
17800
  unvaluedCallCount: number;
17853
17801
  };
17854
17802
  diagnostics?: Array<{
17855
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
17803
+ code: "step_limit_reached";
17856
17804
  severity: "warning" | "error";
17857
- scope: "output" | "run";
17858
- path?: string;
17805
+ scope: "run";
17859
17806
  message: string;
17860
17807
  }>;
17861
17808
  error?: {
@@ -17928,10 +17875,9 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
17928
17875
  unvaluedCallCount: number;
17929
17876
  };
17930
17877
  diagnostics?: Array<{
17931
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
17878
+ code: "step_limit_reached";
17932
17879
  severity: "warning" | "error";
17933
- scope: "output" | "run";
17934
- path?: string;
17880
+ scope: "run";
17935
17881
  message: string;
17936
17882
  }>;
17937
17883
  error?: {
@@ -17996,10 +17942,9 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
17996
17942
  unvaluedCallCount: number;
17997
17943
  };
17998
17944
  diagnostics?: Array<{
17999
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
17945
+ code: "step_limit_reached";
18000
17946
  severity: "warning" | "error";
18001
- scope: "output" | "run";
18002
- path?: string;
17947
+ scope: "run";
18003
17948
  message: string;
18004
17949
  }>;
18005
17950
  error?: {
@@ -18069,10 +18014,9 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
18069
18014
  unvaluedCallCount: number;
18070
18015
  };
18071
18016
  diagnostics?: Array<{
18072
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
18017
+ code: "step_limit_reached";
18073
18018
  severity: "warning" | "error";
18074
- scope: "output" | "run";
18075
- path?: string;
18019
+ scope: "run";
18076
18020
  message: string;
18077
18021
  }>;
18078
18022
  error?: {
@@ -18141,10 +18085,9 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
18141
18085
  unvaluedCallCount: number;
18142
18086
  };
18143
18087
  diagnostics?: Array<{
18144
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
18088
+ code: "step_limit_reached";
18145
18089
  severity: "warning" | "error";
18146
- scope: "output" | "run";
18147
- path?: string;
18090
+ scope: "run";
18148
18091
  message: string;
18149
18092
  }>;
18150
18093
  error?: {
@@ -18216,10 +18159,9 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
18216
18159
  unvaluedCallCount: number;
18217
18160
  };
18218
18161
  diagnostics?: Array<{
18219
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
18162
+ code: "step_limit_reached";
18220
18163
  severity: "warning" | "error";
18221
- scope: "output" | "run";
18222
- path?: string;
18164
+ scope: "run";
18223
18165
  message: string;
18224
18166
  }>;
18225
18167
  error?: {
@@ -18295,10 +18237,9 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
18295
18237
  unvaluedCallCount: number;
18296
18238
  };
18297
18239
  diagnostics?: Array<{
18298
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
18240
+ code: "step_limit_reached";
18299
18241
  severity: "warning" | "error";
18300
- scope: "output" | "run";
18301
- path?: string;
18242
+ scope: "run";
18302
18243
  message: string;
18303
18244
  }>;
18304
18245
  error?: {
@@ -18359,10 +18300,9 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
18359
18300
  unvaluedCallCount: number;
18360
18301
  };
18361
18302
  diagnostics?: Array<{
18362
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
18303
+ code: "step_limit_reached";
18363
18304
  severity: "warning" | "error";
18364
- scope: "output" | "run";
18365
- path?: string;
18305
+ scope: "run";
18366
18306
  message: string;
18367
18307
  }>;
18368
18308
  error?: {
@@ -18428,10 +18368,9 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
18428
18368
  unvaluedCallCount: number;
18429
18369
  };
18430
18370
  diagnostics?: Array<{
18431
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
18371
+ code: "step_limit_reached";
18432
18372
  severity: "warning" | "error";
18433
- scope: "output" | "run";
18434
- path?: string;
18373
+ scope: "run";
18435
18374
  message: string;
18436
18375
  }>;
18437
18376
  error?: {
@@ -18503,10 +18442,9 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
18503
18442
  unvaluedCallCount: number;
18504
18443
  };
18505
18444
  diagnostics?: Array<{
18506
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
18445
+ code: "step_limit_reached";
18507
18446
  severity: "warning" | "error";
18508
- scope: "output" | "run";
18509
- path?: string;
18447
+ scope: "run";
18510
18448
  message: string;
18511
18449
  }>;
18512
18450
  error?: {
@@ -18530,475 +18468,915 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
18530
18468
  [dataTagErrorSymbol]: GetAgentRunError;
18531
18469
  };
18532
18470
  };
18533
- export declare const listModelsQueryKey: (options?: Options<ListModelsData>) => [Pick<Options<ListModelsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18471
+ export declare const listArtifactsQueryKey: (options?: Options<ListArtifactsData>) => [Pick<Options<ListArtifactsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18534
18472
  _id: string;
18535
18473
  _infinite?: boolean;
18536
18474
  tags?: ReadonlyArray<string>;
18537
18475
  }];
18538
18476
  /**
18539
- * List the project model catalog
18477
+ * List artifacts
18478
+ *
18479
+ * The caller's artifacts, most recently updated first.
18540
18480
  */
18541
- export declare const listModelsOptions: (options?: Options<ListModelsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
18542
- language: Array<{
18543
- provider: string;
18544
- modelId: string;
18545
- isDefault: boolean;
18546
- name: string;
18547
- description?: string;
18548
- publisher: {
18481
+ export declare const listArtifactsOptions: (options?: Options<ListArtifactsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
18482
+ artifacts: Array<{
18483
+ id: string;
18484
+ projectId: string;
18485
+ kind: "document" | "sheet" | "slides" | "file";
18486
+ title: string;
18487
+ owner: {
18488
+ type: "user" | "serviceAccount" | "system";
18549
18489
  id: string;
18550
- name: string;
18551
- };
18552
- via?: string;
18553
- capabilities: {
18554
- input: Array<"text" | "image" | "audio" | "video" | "pdf">;
18555
- output: Array<"text" | "image" | "audio" | "video" | "pdf">;
18556
- attachments?: boolean;
18557
- reasoning?: boolean;
18558
- tools?: boolean;
18559
- structuredOutput?: boolean;
18560
- contextWindowTokens?: number;
18561
18490
  };
18562
- reasoningLevels: Array<"provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max">;
18563
- defaultReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
18491
+ latestVersion: number;
18492
+ createdAt: string;
18493
+ updatedAt: string;
18564
18494
  }>;
18565
- }, Error, {
18566
- language: Array<{
18567
- provider: string;
18568
- modelId: string;
18569
- isDefault: boolean;
18570
- name: string;
18571
- description?: string;
18572
- publisher: {
18495
+ hasMore: boolean;
18496
+ total: number;
18497
+ }, ListArtifactsError, {
18498
+ artifacts: Array<{
18499
+ id: string;
18500
+ projectId: string;
18501
+ kind: "document" | "sheet" | "slides" | "file";
18502
+ title: string;
18503
+ owner: {
18504
+ type: "user" | "serviceAccount" | "system";
18573
18505
  id: string;
18574
- name: string;
18575
- };
18576
- via?: string;
18577
- capabilities: {
18578
- input: Array<"text" | "image" | "audio" | "video" | "pdf">;
18579
- output: Array<"text" | "image" | "audio" | "video" | "pdf">;
18580
- attachments?: boolean;
18581
- reasoning?: boolean;
18582
- tools?: boolean;
18583
- structuredOutput?: boolean;
18584
- contextWindowTokens?: number;
18585
18506
  };
18586
- reasoningLevels: Array<"provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max">;
18587
- defaultReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
18507
+ latestVersion: number;
18508
+ createdAt: string;
18509
+ updatedAt: string;
18588
18510
  }>;
18589
- }, [Pick<Options<ListModelsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18511
+ hasMore: boolean;
18512
+ total: number;
18513
+ }, [Pick<Options<ListArtifactsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18590
18514
  _id: string;
18591
18515
  _infinite?: boolean;
18592
18516
  tags?: ReadonlyArray<string>;
18593
18517
  }]>, "queryFn"> & {
18594
18518
  queryFn?: import("@tanstack/react-query").QueryFunction<{
18595
- language: Array<{
18596
- provider: string;
18597
- modelId: string;
18598
- isDefault: boolean;
18599
- name: string;
18600
- description?: string;
18601
- publisher: {
18519
+ artifacts: Array<{
18520
+ id: string;
18521
+ projectId: string;
18522
+ kind: "document" | "sheet" | "slides" | "file";
18523
+ title: string;
18524
+ owner: {
18525
+ type: "user" | "serviceAccount" | "system";
18602
18526
  id: string;
18603
- name: string;
18604
- };
18605
- via?: string;
18606
- capabilities: {
18607
- input: Array<"text" | "image" | "audio" | "video" | "pdf">;
18608
- output: Array<"text" | "image" | "audio" | "video" | "pdf">;
18609
- attachments?: boolean;
18610
- reasoning?: boolean;
18611
- tools?: boolean;
18612
- structuredOutput?: boolean;
18613
- contextWindowTokens?: number;
18614
18527
  };
18615
- reasoningLevels: Array<"provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max">;
18616
- defaultReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
18528
+ latestVersion: number;
18529
+ createdAt: string;
18530
+ updatedAt: string;
18617
18531
  }>;
18618
- }, [Pick<Options<ListModelsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18532
+ hasMore: boolean;
18533
+ total: number;
18534
+ }, [Pick<Options<ListArtifactsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18619
18535
  _id: string;
18620
18536
  _infinite?: boolean;
18621
18537
  tags?: ReadonlyArray<string>;
18622
18538
  }], never> | undefined;
18623
18539
  } & {
18624
- queryKey: [Pick<Options<ListModelsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18540
+ queryKey: [Pick<Options<ListArtifactsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18625
18541
  _id: string;
18626
18542
  _infinite?: boolean;
18627
18543
  tags?: ReadonlyArray<string>;
18628
18544
  }] & {
18629
18545
  [dataTagSymbol]: {
18630
- language: Array<{
18631
- provider: string;
18632
- modelId: string;
18633
- isDefault: boolean;
18634
- name: string;
18635
- description?: string;
18636
- publisher: {
18546
+ artifacts: Array<{
18547
+ id: string;
18548
+ projectId: string;
18549
+ kind: "document" | "sheet" | "slides" | "file";
18550
+ title: string;
18551
+ owner: {
18552
+ type: "user" | "serviceAccount" | "system";
18637
18553
  id: string;
18638
- name: string;
18639
18554
  };
18640
- via?: string;
18641
- capabilities: {
18642
- input: Array<"text" | "image" | "audio" | "video" | "pdf">;
18643
- output: Array<"text" | "image" | "audio" | "video" | "pdf">;
18644
- attachments?: boolean;
18645
- reasoning?: boolean;
18646
- tools?: boolean;
18647
- structuredOutput?: boolean;
18648
- contextWindowTokens?: number;
18649
- };
18650
- reasoningLevels: Array<"provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max">;
18651
- defaultReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
18555
+ latestVersion: number;
18556
+ createdAt: string;
18557
+ updatedAt: string;
18652
18558
  }>;
18559
+ hasMore: boolean;
18560
+ total: number;
18653
18561
  };
18654
- [dataTagErrorSymbol]: Error;
18562
+ [dataTagErrorSymbol]: ListArtifactsError;
18655
18563
  };
18656
18564
  };
18565
+ export declare const listArtifactsInfiniteQueryKey: (options?: Options<ListArtifactsData>) => QueryKey<Options<ListArtifactsData>>;
18657
18566
  /**
18658
- * Remove object link
18659
- */
18660
- export declare const removeObjectLinkMutation: (options?: Partial<Options<RemoveObjectLinkData>>) => UseMutationOptions<RemoveObjectLinkResponse, RemoveObjectLinkError, Options<RemoveObjectLinkData>>;
18661
- /**
18662
- * Create or update object link
18663
- */
18664
- export declare const upsertObjectLinkMutation: (options?: Partial<Options<UpsertObjectLinkData>>) => UseMutationOptions<UpsertObjectLinkResponse, UpsertObjectLinkError, Options<UpsertObjectLinkData>>;
18665
- /**
18666
- * Append telemetry point
18667
- */
18668
- export declare const appendTelemetryMutation: (options?: Partial<Options<AppendTelemetryData>>) => UseMutationOptions<AppendTelemetryResponse, AppendTelemetryError, Options<AppendTelemetryData>>;
18669
- /**
18670
- * Get bulk telemetry history
18671
- */
18672
- export declare const getBulkTelemetryHistoryMutation: (options?: Partial<Options<GetBulkTelemetryHistoryData>>) => UseMutationOptions<GetBulkTelemetryHistoryResponse, GetBulkTelemetryHistoryError, Options<GetBulkTelemetryHistoryData>>;
18673
- export declare const getTelemetryHistoryQueryKey: (options: Options<GetTelemetryHistoryData>) => [Pick<Options<GetTelemetryHistoryData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18674
- _id: string;
18675
- _infinite?: boolean;
18676
- tags?: ReadonlyArray<string>;
18677
- }];
18678
- /**
18679
- * Get telemetry history
18567
+ * List artifacts
18568
+ *
18569
+ * The caller's artifacts, most recently updated first.
18680
18570
  */
18681
- export declare const getTelemetryHistoryOptions: (options: Options<GetTelemetryHistoryData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
18682
- projectId: string;
18683
- objectTypeId: string;
18684
- objectId: string;
18685
- propertyId: string;
18686
- value?: unknown;
18687
- unit?: string;
18688
- at: string;
18689
- }[], GetTelemetryHistoryError, {
18690
- projectId: string;
18691
- objectTypeId: string;
18692
- objectId: string;
18693
- propertyId: string;
18694
- value?: unknown;
18695
- unit?: string;
18696
- at: string;
18697
- }[], [Pick<Options<GetTelemetryHistoryData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18571
+ export declare const listArtifactsInfiniteOptions: (options?: Options<ListArtifactsData>) => import("@tanstack/react-query").UseInfiniteQueryOptions<{
18572
+ artifacts: Array<{
18573
+ id: string;
18574
+ projectId: string;
18575
+ kind: "document" | "sheet" | "slides" | "file";
18576
+ title: string;
18577
+ owner: {
18578
+ type: "user" | "serviceAccount" | "system";
18579
+ id: string;
18580
+ };
18581
+ latestVersion: number;
18582
+ createdAt: string;
18583
+ updatedAt: string;
18584
+ }>;
18585
+ hasMore: boolean;
18586
+ total: number;
18587
+ }, ListArtifactsError, InfiniteData<{
18588
+ artifacts: Array<{
18589
+ id: string;
18590
+ projectId: string;
18591
+ kind: "document" | "sheet" | "slides" | "file";
18592
+ title: string;
18593
+ owner: {
18594
+ type: "user" | "serviceAccount" | "system";
18595
+ id: string;
18596
+ };
18597
+ latestVersion: number;
18598
+ createdAt: string;
18599
+ updatedAt: string;
18600
+ }>;
18601
+ hasMore: boolean;
18602
+ total: number;
18603
+ }, unknown>, QueryKey<Options<ListArtifactsData>>, string | Pick<Pick<Options<ListArtifactsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18698
18604
  _id: string;
18699
18605
  _infinite?: boolean;
18700
18606
  tags?: ReadonlyArray<string>;
18701
- }]>, "queryFn"> & {
18702
- queryFn?: import("@tanstack/react-query").QueryFunction<{
18703
- projectId: string;
18704
- objectTypeId: string;
18705
- objectId: string;
18706
- propertyId: string;
18707
- value?: unknown;
18708
- unit?: string;
18709
- at: string;
18710
- }[], [Pick<Options<GetTelemetryHistoryData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18607
+ }, "query" | "body" | "headers" | "path">> & {
18608
+ initialData: InfiniteData<{
18609
+ artifacts: Array<{
18610
+ id: string;
18611
+ projectId: string;
18612
+ kind: "document" | "sheet" | "slides" | "file";
18613
+ title: string;
18614
+ owner: {
18615
+ type: "user" | "serviceAccount" | "system";
18616
+ id: string;
18617
+ };
18618
+ latestVersion: number;
18619
+ createdAt: string;
18620
+ updatedAt: string;
18621
+ }>;
18622
+ hasMore: boolean;
18623
+ total: number;
18624
+ }, string | Pick<Pick<Options<ListArtifactsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18711
18625
  _id: string;
18712
18626
  _infinite?: boolean;
18713
18627
  tags?: ReadonlyArray<string>;
18714
- }], never> | undefined;
18715
- } & {
18716
- queryKey: [Pick<Options<GetTelemetryHistoryData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18628
+ }, "query" | "body" | "headers" | "path">> | (() => InfiniteData<{
18629
+ artifacts: Array<{
18630
+ id: string;
18631
+ projectId: string;
18632
+ kind: "document" | "sheet" | "slides" | "file";
18633
+ title: string;
18634
+ owner: {
18635
+ type: "user" | "serviceAccount" | "system";
18636
+ id: string;
18637
+ };
18638
+ latestVersion: number;
18639
+ createdAt: string;
18640
+ updatedAt: string;
18641
+ }>;
18642
+ hasMore: boolean;
18643
+ total: number;
18644
+ }, string | Pick<Pick<Options<ListArtifactsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18717
18645
  _id: string;
18718
18646
  _infinite?: boolean;
18719
18647
  tags?: ReadonlyArray<string>;
18720
- }] & {
18721
- [dataTagSymbol]: {
18722
- projectId: string;
18723
- objectTypeId: string;
18724
- objectId: string;
18725
- propertyId: string;
18726
- value?: unknown;
18727
- unit?: string;
18728
- at: string;
18729
- }[];
18730
- [dataTagErrorSymbol]: GetTelemetryHistoryError;
18648
+ }, "query" | "body" | "headers" | "path">>) | undefined;
18649
+ } & {
18650
+ queryKey: QueryKey<Options<ListArtifactsData>> & {
18651
+ [dataTagSymbol]: InfiniteData<{
18652
+ artifacts: Array<{
18653
+ id: string;
18654
+ projectId: string;
18655
+ kind: "document" | "sheet" | "slides" | "file";
18656
+ title: string;
18657
+ owner: {
18658
+ type: "user" | "serviceAccount" | "system";
18659
+ id: string;
18660
+ };
18661
+ latestVersion: number;
18662
+ createdAt: string;
18663
+ updatedAt: string;
18664
+ }>;
18665
+ hasMore: boolean;
18666
+ total: number;
18667
+ }, unknown>;
18668
+ [dataTagErrorSymbol]: ListArtifactsError;
18731
18669
  };
18732
18670
  };
18733
- export declare const getLatestTelemetryQueryKey: (options: Options<GetLatestTelemetryData>) => [Pick<Options<GetLatestTelemetryData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18671
+ /**
18672
+ * Create an artifact
18673
+ *
18674
+ * Creates an artifact owned by the caller, with its first version. Store each file with POST /api/files first.
18675
+ */
18676
+ export declare const createArtifactMutation: (options?: Partial<Options<CreateArtifactData>>) => UseMutationOptions<CreateArtifactResponse, CreateArtifactError, Options<CreateArtifactData>>;
18677
+ /**
18678
+ * Delete an artifact
18679
+ *
18680
+ * Deletes the artifact with every version.
18681
+ */
18682
+ export declare const deleteArtifactMutation: (options?: Partial<Options<DeleteArtifactData>>) => UseMutationOptions<DeleteArtifactResponse, DeleteArtifactError, Options<DeleteArtifactData>>;
18683
+ export declare const getArtifactQueryKey: (options: Options<GetArtifactData>) => [Pick<Options<GetArtifactData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18734
18684
  _id: string;
18735
18685
  _infinite?: boolean;
18736
18686
  tags?: ReadonlyArray<string>;
18737
18687
  }];
18738
18688
  /**
18739
- * Get latest telemetry point
18689
+ * Get an artifact and its versions
18740
18690
  */
18741
- export declare const getLatestTelemetryOptions: (options: Options<GetLatestTelemetryData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
18742
- projectId: string;
18743
- objectTypeId: string;
18744
- objectId: string;
18745
- propertyId: string;
18746
- value?: unknown;
18747
- unit?: string;
18748
- at: string;
18749
- }, GetLatestTelemetryError, {
18750
- projectId: string;
18751
- objectTypeId: string;
18752
- objectId: string;
18753
- propertyId: string;
18754
- value?: unknown;
18755
- unit?: string;
18756
- at: string;
18757
- }, [Pick<Options<GetLatestTelemetryData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18691
+ export declare const getArtifactOptions: (options: Options<GetArtifactData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
18692
+ artifact: {
18693
+ id: string;
18694
+ projectId: string;
18695
+ kind: "document" | "sheet" | "slides" | "file";
18696
+ title: string;
18697
+ owner: {
18698
+ type: "user" | "serviceAccount" | "system";
18699
+ id: string;
18700
+ };
18701
+ latestVersion: number;
18702
+ createdAt: string;
18703
+ updatedAt: string;
18704
+ };
18705
+ versions: Array<{
18706
+ version: number;
18707
+ title: string;
18708
+ author: {
18709
+ type: "user" | "serviceAccount" | "system";
18710
+ id: string;
18711
+ };
18712
+ origin?: {
18713
+ threadId: string;
18714
+ runId: string;
18715
+ };
18716
+ createdAt: string;
18717
+ }>;
18718
+ }, GetArtifactError, {
18719
+ artifact: {
18720
+ id: string;
18721
+ projectId: string;
18722
+ kind: "document" | "sheet" | "slides" | "file";
18723
+ title: string;
18724
+ owner: {
18725
+ type: "user" | "serviceAccount" | "system";
18726
+ id: string;
18727
+ };
18728
+ latestVersion: number;
18729
+ createdAt: string;
18730
+ updatedAt: string;
18731
+ };
18732
+ versions: Array<{
18733
+ version: number;
18734
+ title: string;
18735
+ author: {
18736
+ type: "user" | "serviceAccount" | "system";
18737
+ id: string;
18738
+ };
18739
+ origin?: {
18740
+ threadId: string;
18741
+ runId: string;
18742
+ };
18743
+ createdAt: string;
18744
+ }>;
18745
+ }, [Pick<Options<GetArtifactData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18758
18746
  _id: string;
18759
18747
  _infinite?: boolean;
18760
18748
  tags?: ReadonlyArray<string>;
18761
18749
  }]>, "queryFn"> & {
18762
18750
  queryFn?: import("@tanstack/react-query").QueryFunction<{
18763
- projectId: string;
18764
- objectTypeId: string;
18765
- objectId: string;
18766
- propertyId: string;
18767
- value?: unknown;
18768
- unit?: string;
18769
- at: string;
18770
- }, [Pick<Options<GetLatestTelemetryData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18751
+ artifact: {
18752
+ id: string;
18753
+ projectId: string;
18754
+ kind: "document" | "sheet" | "slides" | "file";
18755
+ title: string;
18756
+ owner: {
18757
+ type: "user" | "serviceAccount" | "system";
18758
+ id: string;
18759
+ };
18760
+ latestVersion: number;
18761
+ createdAt: string;
18762
+ updatedAt: string;
18763
+ };
18764
+ versions: Array<{
18765
+ version: number;
18766
+ title: string;
18767
+ author: {
18768
+ type: "user" | "serviceAccount" | "system";
18769
+ id: string;
18770
+ };
18771
+ origin?: {
18772
+ threadId: string;
18773
+ runId: string;
18774
+ };
18775
+ createdAt: string;
18776
+ }>;
18777
+ }, [Pick<Options<GetArtifactData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18771
18778
  _id: string;
18772
18779
  _infinite?: boolean;
18773
18780
  tags?: ReadonlyArray<string>;
18774
18781
  }], never> | undefined;
18775
18782
  } & {
18776
- queryKey: [Pick<Options<GetLatestTelemetryData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18783
+ queryKey: [Pick<Options<GetArtifactData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18777
18784
  _id: string;
18778
18785
  _infinite?: boolean;
18779
18786
  tags?: ReadonlyArray<string>;
18780
18787
  }] & {
18781
18788
  [dataTagSymbol]: {
18782
- projectId: string;
18783
- objectTypeId: string;
18784
- objectId: string;
18785
- propertyId: string;
18786
- value?: unknown;
18787
- unit?: string;
18788
- at: string;
18789
+ artifact: {
18790
+ id: string;
18791
+ projectId: string;
18792
+ kind: "document" | "sheet" | "slides" | "file";
18793
+ title: string;
18794
+ owner: {
18795
+ type: "user" | "serviceAccount" | "system";
18796
+ id: string;
18797
+ };
18798
+ latestVersion: number;
18799
+ createdAt: string;
18800
+ updatedAt: string;
18801
+ };
18802
+ versions: Array<{
18803
+ version: number;
18804
+ title: string;
18805
+ author: {
18806
+ type: "user" | "serviceAccount" | "system";
18807
+ id: string;
18808
+ };
18809
+ origin?: {
18810
+ threadId: string;
18811
+ runId: string;
18812
+ };
18813
+ createdAt: string;
18814
+ }>;
18789
18815
  };
18790
- [dataTagErrorSymbol]: GetLatestTelemetryError;
18816
+ [dataTagErrorSymbol]: GetArtifactError;
18791
18817
  };
18792
18818
  };
18793
- export declare const listEventsQueryKey: (options?: Options<ListEventsData>) => [Pick<Options<ListEventsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18819
+ /**
18820
+ * Publish an artifact's next version
18821
+ *
18822
+ * The kind must be the artifact's. The new version becomes the latest.
18823
+ */
18824
+ export declare const publishArtifactVersionMutation: (options?: Partial<Options<PublishArtifactVersionData>>) => UseMutationOptions<PublishArtifactVersionResponse, PublishArtifactVersionError, Options<PublishArtifactVersionData>>;
18825
+ /**
18826
+ * Open a deck's version in a frame
18827
+ *
18828
+ * A short-lived path that serves a slides version's files to a sandboxed frame. It expires within an hour. Any other kind is refused with 409 artifact_kind_mismatch.
18829
+ */
18830
+ export declare const createArtifactFrameMutation: (options?: Partial<Options<CreateArtifactFrameData>>) => UseMutationOptions<CreateArtifactFrameResponse, CreateArtifactFrameError, Options<CreateArtifactFrameData>>;
18831
+ export declare const getArtifactVersionQueryKey: (options: Options<GetArtifactVersionData>) => [Pick<Options<GetArtifactVersionData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18794
18832
  _id: string;
18795
18833
  _infinite?: boolean;
18796
18834
  tags?: ReadonlyArray<string>;
18797
18835
  }];
18798
18836
  /**
18799
- * Read domain events
18837
+ * Get an artifact version
18838
+ *
18839
+ * Its files, outline, and references. Use "latest" for the newest version.
18800
18840
  */
18801
- export declare const listEventsOptions: (options?: Options<ListEventsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
18802
- count: number;
18803
- events: Array<{
18841
+ export declare const getArtifactVersionOptions: (options: Options<GetArtifactVersionData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
18842
+ artifactId: string;
18843
+ version: number;
18844
+ title: string;
18845
+ entry: string;
18846
+ files: Array<{
18847
+ path: string;
18848
+ file: {
18849
+ blobId: string;
18850
+ digest: string;
18851
+ sizeBytes: number;
18852
+ fileName?: string;
18853
+ mediaType?: string;
18854
+ logicalPath?: string;
18855
+ };
18856
+ }>;
18857
+ outline: {
18858
+ kind: "document";
18859
+ headings: Array<{
18860
+ depth: number;
18861
+ text: string;
18862
+ slug: string;
18863
+ }>;
18864
+ } | {
18865
+ kind: "sheet";
18866
+ sheets: Array<{
18867
+ name: string;
18868
+ rows: number;
18869
+ columns: Array<string>;
18870
+ }>;
18871
+ charts: Array<string>;
18872
+ } | {
18873
+ kind: "slides";
18874
+ slides: Array<{
18875
+ title?: string;
18876
+ }>;
18877
+ } | {
18878
+ kind: "file";
18879
+ mediaType: string;
18880
+ };
18881
+ references: Array<{
18882
+ address: string;
18883
+ as: "embed" | "link";
18884
+ at: string;
18885
+ resolvedVersion: number;
18886
+ }>;
18887
+ author: {
18888
+ type: "user" | "serviceAccount" | "system";
18804
18889
  id: string;
18805
- cursor: string;
18806
- schemaVersion: 1;
18807
- projectId: string;
18808
- occurredAt: string;
18809
- partitionKey: string;
18810
- origin: {
18811
- kind: "action";
18812
- actionId: string;
18813
- runId: string;
18890
+ };
18891
+ origin?: {
18892
+ threadId: string;
18893
+ runId: string;
18894
+ };
18895
+ createdAt: string;
18896
+ }, GetArtifactVersionError, {
18897
+ artifactId: string;
18898
+ version: number;
18899
+ title: string;
18900
+ entry: string;
18901
+ files: Array<{
18902
+ path: string;
18903
+ file: {
18904
+ blobId: string;
18905
+ digest: string;
18906
+ sizeBytes: number;
18907
+ fileName?: string;
18908
+ mediaType?: string;
18909
+ logicalPath?: string;
18910
+ };
18911
+ }>;
18912
+ outline: {
18913
+ kind: "document";
18914
+ headings: Array<{
18915
+ depth: number;
18916
+ text: string;
18917
+ slug: string;
18918
+ }>;
18919
+ } | {
18920
+ kind: "sheet";
18921
+ sheets: Array<{
18922
+ name: string;
18923
+ rows: number;
18924
+ columns: Array<string>;
18925
+ }>;
18926
+ charts: Array<string>;
18927
+ } | {
18928
+ kind: "slides";
18929
+ slides: Array<{
18930
+ title?: string;
18931
+ }>;
18932
+ } | {
18933
+ kind: "file";
18934
+ mediaType: string;
18935
+ };
18936
+ references: Array<{
18937
+ address: string;
18938
+ as: "embed" | "link";
18939
+ at: string;
18940
+ resolvedVersion: number;
18941
+ }>;
18942
+ author: {
18943
+ type: "user" | "serviceAccount" | "system";
18944
+ id: string;
18945
+ };
18946
+ origin?: {
18947
+ threadId: string;
18948
+ runId: string;
18949
+ };
18950
+ createdAt: string;
18951
+ }, [Pick<Options<GetArtifactVersionData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18952
+ _id: string;
18953
+ _infinite?: boolean;
18954
+ tags?: ReadonlyArray<string>;
18955
+ }]>, "queryFn"> & {
18956
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
18957
+ artifactId: string;
18958
+ version: number;
18959
+ title: string;
18960
+ entry: string;
18961
+ files: Array<{
18962
+ path: string;
18963
+ file: {
18964
+ blobId: string;
18965
+ digest: string;
18966
+ sizeBytes: number;
18967
+ fileName?: string;
18968
+ mediaType?: string;
18969
+ logicalPath?: string;
18970
+ };
18971
+ }>;
18972
+ outline: {
18973
+ kind: "document";
18974
+ headings: Array<{
18975
+ depth: number;
18976
+ text: string;
18977
+ slug: string;
18978
+ }>;
18814
18979
  } | {
18815
- kind: "runtime";
18816
- requestId: string;
18980
+ kind: "sheet";
18981
+ sheets: Array<{
18982
+ name: string;
18983
+ rows: number;
18984
+ columns: Array<string>;
18985
+ }>;
18986
+ charts: Array<string>;
18817
18987
  } | {
18818
- kind: "projection";
18819
- projectionId: string;
18820
- projectionRunId: string;
18821
- datasetId: string;
18822
- datasetVersionId: string;
18988
+ kind: "slides";
18989
+ slides: Array<{
18990
+ title?: string;
18991
+ }>;
18823
18992
  } | {
18824
- kind: "telemetry";
18825
- source: {
18826
- kind: "runtime";
18827
- requestId: string;
18828
- } | {
18829
- kind: "projection";
18830
- projectionId: string;
18831
- projectionRunId: string;
18832
- datasetId: string;
18833
- datasetVersionId: string;
18834
- batchOrdinal: number;
18835
- };
18993
+ kind: "file";
18994
+ mediaType: string;
18836
18995
  };
18837
- requestedBy?: {
18838
- type: "user" | "serviceAccount";
18996
+ references: Array<{
18997
+ address: string;
18998
+ as: "embed" | "link";
18999
+ at: string;
19000
+ resolvedVersion: number;
19001
+ }>;
19002
+ author: {
19003
+ type: "user" | "serviceAccount" | "system";
18839
19004
  id: string;
18840
19005
  };
18841
- executor: {
18842
- type: "request";
18843
- requestId: string;
18844
- } | {
18845
- type: "primitive";
18846
- kind: "action" | "pipeline" | "projection" | "rule" | "sync" | "webhook" | "workflow";
18847
- id: string;
18848
- runId: string;
18849
- } | {
18850
- type: "agent";
19006
+ origin?: {
19007
+ threadId: string;
18851
19008
  runId: string;
18852
- } | {
18853
- type: "kernel";
18854
- operation: {
18855
- type: "ontology.recover";
18856
- recoveryId: string;
18857
- } | {
18858
- type: "ontology.indexVectors";
18859
- indexingId: string;
18860
- };
18861
19009
  };
18862
- commitId: string;
18863
- commitOrdinal: number;
18864
- type: "object.created";
18865
- topic: "objects";
18866
- payload: {
18867
- objectTypeId: string;
18868
- primaryId: string;
18869
- properties: {
18870
- [key: string]: string | number | boolean | Array<unknown> | {
18871
- [key: string]: unknown;
18872
- } | null;
18873
- };
18874
- propertyChanges: {
18875
- [key: string]: {
18876
- operation: "created";
18877
- after: string | number | boolean | Array<unknown> | {
18878
- [key: string]: unknown;
18879
- } | null;
18880
- } | {
18881
- operation: "updated";
18882
- before: string | number | boolean | Array<unknown> | {
18883
- [key: string]: unknown;
18884
- } | null;
18885
- after: string | number | boolean | Array<unknown> | {
18886
- [key: string]: unknown;
18887
- } | null;
18888
- } | {
18889
- operation: "cleared";
18890
- before: string | number | boolean | Array<unknown> | {
18891
- [key: string]: unknown;
18892
- } | null;
18893
- after: null;
19010
+ createdAt: string;
19011
+ }, [Pick<Options<GetArtifactVersionData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
19012
+ _id: string;
19013
+ _infinite?: boolean;
19014
+ tags?: ReadonlyArray<string>;
19015
+ }], never> | undefined;
19016
+ } & {
19017
+ queryKey: [Pick<Options<GetArtifactVersionData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
19018
+ _id: string;
19019
+ _infinite?: boolean;
19020
+ tags?: ReadonlyArray<string>;
19021
+ }] & {
19022
+ [dataTagSymbol]: {
19023
+ artifactId: string;
19024
+ version: number;
19025
+ title: string;
19026
+ entry: string;
19027
+ files: Array<{
19028
+ path: string;
19029
+ file: {
19030
+ blobId: string;
19031
+ digest: string;
19032
+ sizeBytes: number;
19033
+ fileName?: string;
19034
+ mediaType?: string;
19035
+ logicalPath?: string;
18894
19036
  };
19037
+ }>;
19038
+ outline: {
19039
+ kind: "document";
19040
+ headings: Array<{
19041
+ depth: number;
19042
+ text: string;
19043
+ slug: string;
19044
+ }>;
19045
+ } | {
19046
+ kind: "sheet";
19047
+ sheets: Array<{
19048
+ name: string;
19049
+ rows: number;
19050
+ columns: Array<string>;
19051
+ }>;
19052
+ charts: Array<string>;
19053
+ } | {
19054
+ kind: "slides";
19055
+ slides: Array<{
19056
+ title?: string;
19057
+ }>;
19058
+ } | {
19059
+ kind: "file";
19060
+ mediaType: string;
18895
19061
  };
18896
- redactions?: {
18897
- [key: string]: {
18898
- reason: "missing_clearance";
18899
- };
19062
+ references: Array<{
19063
+ address: string;
19064
+ as: "embed" | "link";
19065
+ at: string;
19066
+ resolvedVersion: number;
19067
+ }>;
19068
+ author: {
19069
+ type: "user" | "serviceAccount" | "system";
19070
+ id: string;
18900
19071
  };
18901
- };
18902
- } | {
18903
- id: string;
18904
- cursor: string;
18905
- schemaVersion: 1;
18906
- projectId: string;
18907
- occurredAt: string;
18908
- partitionKey: string;
18909
- origin: {
18910
- kind: "action";
18911
- actionId: string;
18912
- runId: string;
18913
- } | {
18914
- kind: "runtime";
18915
- requestId: string;
18916
- } | {
18917
- kind: "projection";
18918
- projectionId: string;
18919
- projectionRunId: string;
18920
- datasetId: string;
18921
- datasetVersionId: string;
18922
- } | {
18923
- kind: "telemetry";
18924
- source: {
18925
- kind: "runtime";
18926
- requestId: string;
18927
- } | {
18928
- kind: "projection";
18929
- projectionId: string;
18930
- projectionRunId: string;
18931
- datasetId: string;
18932
- datasetVersionId: string;
18933
- batchOrdinal: number;
19072
+ origin?: {
19073
+ threadId: string;
19074
+ runId: string;
18934
19075
  };
19076
+ createdAt: string;
18935
19077
  };
18936
- requestedBy?: {
18937
- type: "user" | "serviceAccount";
19078
+ [dataTagErrorSymbol]: GetArtifactVersionError;
19079
+ };
19080
+ };
19081
+ export declare const getArtifactFileContentQueryKey: (options: Options<GetArtifactFileContentData>) => [Pick<Options<GetArtifactFileContentData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
19082
+ _id: string;
19083
+ _infinite?: boolean;
19084
+ tags?: ReadonlyArray<string>;
19085
+ }];
19086
+ /**
19087
+ * Get a file of an artifact version
19088
+ */
19089
+ export declare const getArtifactFileContentOptions: (options: Options<GetArtifactFileContentData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<GetArtifactFileContentResponse, unknown, GetArtifactFileContentResponse, [Pick<Options<GetArtifactFileContentData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
19090
+ _id: string;
19091
+ _infinite?: boolean;
19092
+ tags?: ReadonlyArray<string>;
19093
+ }]>, "queryFn"> & {
19094
+ queryFn?: import("@tanstack/react-query").QueryFunction<GetArtifactFileContentResponse, [Pick<Options<GetArtifactFileContentData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
19095
+ _id: string;
19096
+ _infinite?: boolean;
19097
+ tags?: ReadonlyArray<string>;
19098
+ }], never> | undefined;
19099
+ } & {
19100
+ queryKey: [Pick<Options<GetArtifactFileContentData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
19101
+ _id: string;
19102
+ _infinite?: boolean;
19103
+ tags?: ReadonlyArray<string>;
19104
+ }] & {
19105
+ [dataTagSymbol]: GetArtifactFileContentResponse;
19106
+ [dataTagErrorSymbol]: unknown;
19107
+ };
19108
+ };
19109
+ export declare const listModelsQueryKey: (options?: Options<ListModelsData>) => [Pick<Options<ListModelsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
19110
+ _id: string;
19111
+ _infinite?: boolean;
19112
+ tags?: ReadonlyArray<string>;
19113
+ }];
19114
+ /**
19115
+ * List the project model catalog
19116
+ */
19117
+ export declare const listModelsOptions: (options?: Options<ListModelsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
19118
+ language: Array<{
19119
+ provider: string;
19120
+ modelId: string;
19121
+ isDefault: boolean;
19122
+ name: string;
19123
+ description?: string;
19124
+ publisher: {
18938
19125
  id: string;
19126
+ name: string;
18939
19127
  };
18940
- executor: {
18941
- type: "request";
18942
- requestId: string;
18943
- } | {
18944
- type: "primitive";
18945
- kind: "action" | "pipeline" | "projection" | "rule" | "sync" | "webhook" | "workflow";
19128
+ via?: string;
19129
+ capabilities: {
19130
+ input: Array<"text" | "image" | "audio" | "video" | "pdf">;
19131
+ output: Array<"text" | "image" | "audio" | "video" | "pdf">;
19132
+ attachments?: boolean;
19133
+ reasoning?: boolean;
19134
+ tools?: boolean;
19135
+ structuredOutput?: boolean;
19136
+ contextWindowTokens?: number;
19137
+ };
19138
+ reasoningLevels: Array<"provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max">;
19139
+ defaultReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
19140
+ }>;
19141
+ }, Error, {
19142
+ language: Array<{
19143
+ provider: string;
19144
+ modelId: string;
19145
+ isDefault: boolean;
19146
+ name: string;
19147
+ description?: string;
19148
+ publisher: {
18946
19149
  id: string;
18947
- runId: string;
18948
- } | {
18949
- type: "agent";
18950
- runId: string;
18951
- } | {
18952
- type: "kernel";
18953
- operation: {
18954
- type: "ontology.recover";
18955
- recoveryId: string;
18956
- } | {
18957
- type: "ontology.indexVectors";
18958
- indexingId: string;
18959
- };
19150
+ name: string;
18960
19151
  };
18961
- commitId: string;
18962
- commitOrdinal: number;
18963
- type: "object.updated";
18964
- topic: "objects";
18965
- payload: {
18966
- objectTypeId: string;
18967
- primaryId: string;
18968
- properties: {
18969
- [key: string]: string | number | boolean | Array<unknown> | {
18970
- [key: string]: unknown;
18971
- } | null;
19152
+ via?: string;
19153
+ capabilities: {
19154
+ input: Array<"text" | "image" | "audio" | "video" | "pdf">;
19155
+ output: Array<"text" | "image" | "audio" | "video" | "pdf">;
19156
+ attachments?: boolean;
19157
+ reasoning?: boolean;
19158
+ tools?: boolean;
19159
+ structuredOutput?: boolean;
19160
+ contextWindowTokens?: number;
19161
+ };
19162
+ reasoningLevels: Array<"provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max">;
19163
+ defaultReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
19164
+ }>;
19165
+ }, [Pick<Options<ListModelsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
19166
+ _id: string;
19167
+ _infinite?: boolean;
19168
+ tags?: ReadonlyArray<string>;
19169
+ }]>, "queryFn"> & {
19170
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
19171
+ language: Array<{
19172
+ provider: string;
19173
+ modelId: string;
19174
+ isDefault: boolean;
19175
+ name: string;
19176
+ description?: string;
19177
+ publisher: {
19178
+ id: string;
19179
+ name: string;
18972
19180
  };
18973
- propertyChanges: {
18974
- [key: string]: {
18975
- operation: "created";
18976
- after: string | number | boolean | Array<unknown> | {
18977
- [key: string]: unknown;
18978
- } | null;
18979
- } | {
18980
- operation: "updated";
18981
- before: string | number | boolean | Array<unknown> | {
18982
- [key: string]: unknown;
18983
- } | null;
18984
- after: string | number | boolean | Array<unknown> | {
18985
- [key: string]: unknown;
18986
- } | null;
18987
- } | {
18988
- operation: "cleared";
18989
- before: string | number | boolean | Array<unknown> | {
18990
- [key: string]: unknown;
18991
- } | null;
18992
- after: null;
18993
- };
19181
+ via?: string;
19182
+ capabilities: {
19183
+ input: Array<"text" | "image" | "audio" | "video" | "pdf">;
19184
+ output: Array<"text" | "image" | "audio" | "video" | "pdf">;
19185
+ attachments?: boolean;
19186
+ reasoning?: boolean;
19187
+ tools?: boolean;
19188
+ structuredOutput?: boolean;
19189
+ contextWindowTokens?: number;
18994
19190
  };
18995
- redactions?: {
18996
- [key: string]: {
18997
- reason: "missing_clearance";
19191
+ reasoningLevels: Array<"provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max">;
19192
+ defaultReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
19193
+ }>;
19194
+ }, [Pick<Options<ListModelsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
19195
+ _id: string;
19196
+ _infinite?: boolean;
19197
+ tags?: ReadonlyArray<string>;
19198
+ }], never> | undefined;
19199
+ } & {
19200
+ queryKey: [Pick<Options<ListModelsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
19201
+ _id: string;
19202
+ _infinite?: boolean;
19203
+ tags?: ReadonlyArray<string>;
19204
+ }] & {
19205
+ [dataTagSymbol]: {
19206
+ language: Array<{
19207
+ provider: string;
19208
+ modelId: string;
19209
+ isDefault: boolean;
19210
+ name: string;
19211
+ description?: string;
19212
+ publisher: {
19213
+ id: string;
19214
+ name: string;
18998
19215
  };
18999
- };
19216
+ via?: string;
19217
+ capabilities: {
19218
+ input: Array<"text" | "image" | "audio" | "video" | "pdf">;
19219
+ output: Array<"text" | "image" | "audio" | "video" | "pdf">;
19220
+ attachments?: boolean;
19221
+ reasoning?: boolean;
19222
+ tools?: boolean;
19223
+ structuredOutput?: boolean;
19224
+ contextWindowTokens?: number;
19225
+ };
19226
+ reasoningLevels: Array<"provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max">;
19227
+ defaultReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
19228
+ }>;
19000
19229
  };
19001
- } | {
19230
+ [dataTagErrorSymbol]: Error;
19231
+ };
19232
+ };
19233
+ /**
19234
+ * Remove object link
19235
+ */
19236
+ export declare const removeObjectLinkMutation: (options?: Partial<Options<RemoveObjectLinkData>>) => UseMutationOptions<RemoveObjectLinkResponse, RemoveObjectLinkError, Options<RemoveObjectLinkData>>;
19237
+ /**
19238
+ * Create or update object link
19239
+ */
19240
+ export declare const upsertObjectLinkMutation: (options?: Partial<Options<UpsertObjectLinkData>>) => UseMutationOptions<UpsertObjectLinkResponse, UpsertObjectLinkError, Options<UpsertObjectLinkData>>;
19241
+ /**
19242
+ * Append telemetry point
19243
+ */
19244
+ export declare const appendTelemetryMutation: (options?: Partial<Options<AppendTelemetryData>>) => UseMutationOptions<AppendTelemetryResponse, AppendTelemetryError, Options<AppendTelemetryData>>;
19245
+ /**
19246
+ * Get bulk telemetry history
19247
+ */
19248
+ export declare const getBulkTelemetryHistoryMutation: (options?: Partial<Options<GetBulkTelemetryHistoryData>>) => UseMutationOptions<GetBulkTelemetryHistoryResponse, GetBulkTelemetryHistoryError, Options<GetBulkTelemetryHistoryData>>;
19249
+ export declare const getTelemetryHistoryQueryKey: (options: Options<GetTelemetryHistoryData>) => [Pick<Options<GetTelemetryHistoryData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
19250
+ _id: string;
19251
+ _infinite?: boolean;
19252
+ tags?: ReadonlyArray<string>;
19253
+ }];
19254
+ /**
19255
+ * Get telemetry history
19256
+ */
19257
+ export declare const getTelemetryHistoryOptions: (options: Options<GetTelemetryHistoryData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
19258
+ projectId: string;
19259
+ objectTypeId: string;
19260
+ objectId: string;
19261
+ propertyId: string;
19262
+ value?: unknown;
19263
+ unit?: string;
19264
+ at: string;
19265
+ }[], GetTelemetryHistoryError, {
19266
+ projectId: string;
19267
+ objectTypeId: string;
19268
+ objectId: string;
19269
+ propertyId: string;
19270
+ value?: unknown;
19271
+ unit?: string;
19272
+ at: string;
19273
+ }[], [Pick<Options<GetTelemetryHistoryData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
19274
+ _id: string;
19275
+ _infinite?: boolean;
19276
+ tags?: ReadonlyArray<string>;
19277
+ }]>, "queryFn"> & {
19278
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
19279
+ projectId: string;
19280
+ objectTypeId: string;
19281
+ objectId: string;
19282
+ propertyId: string;
19283
+ value?: unknown;
19284
+ unit?: string;
19285
+ at: string;
19286
+ }[], [Pick<Options<GetTelemetryHistoryData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
19287
+ _id: string;
19288
+ _infinite?: boolean;
19289
+ tags?: ReadonlyArray<string>;
19290
+ }], never> | undefined;
19291
+ } & {
19292
+ queryKey: [Pick<Options<GetTelemetryHistoryData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
19293
+ _id: string;
19294
+ _infinite?: boolean;
19295
+ tags?: ReadonlyArray<string>;
19296
+ }] & {
19297
+ [dataTagSymbol]: {
19298
+ projectId: string;
19299
+ objectTypeId: string;
19300
+ objectId: string;
19301
+ propertyId: string;
19302
+ value?: unknown;
19303
+ unit?: string;
19304
+ at: string;
19305
+ }[];
19306
+ [dataTagErrorSymbol]: GetTelemetryHistoryError;
19307
+ };
19308
+ };
19309
+ export declare const getLatestTelemetryQueryKey: (options: Options<GetLatestTelemetryData>) => [Pick<Options<GetLatestTelemetryData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
19310
+ _id: string;
19311
+ _infinite?: boolean;
19312
+ tags?: ReadonlyArray<string>;
19313
+ }];
19314
+ /**
19315
+ * Get latest telemetry point
19316
+ */
19317
+ export declare const getLatestTelemetryOptions: (options: Options<GetLatestTelemetryData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
19318
+ projectId: string;
19319
+ objectTypeId: string;
19320
+ objectId: string;
19321
+ propertyId: string;
19322
+ value?: unknown;
19323
+ unit?: string;
19324
+ at: string;
19325
+ }, GetLatestTelemetryError, {
19326
+ projectId: string;
19327
+ objectTypeId: string;
19328
+ objectId: string;
19329
+ propertyId: string;
19330
+ value?: unknown;
19331
+ unit?: string;
19332
+ at: string;
19333
+ }, [Pick<Options<GetLatestTelemetryData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
19334
+ _id: string;
19335
+ _infinite?: boolean;
19336
+ tags?: ReadonlyArray<string>;
19337
+ }]>, "queryFn"> & {
19338
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
19339
+ projectId: string;
19340
+ objectTypeId: string;
19341
+ objectId: string;
19342
+ propertyId: string;
19343
+ value?: unknown;
19344
+ unit?: string;
19345
+ at: string;
19346
+ }, [Pick<Options<GetLatestTelemetryData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
19347
+ _id: string;
19348
+ _infinite?: boolean;
19349
+ tags?: ReadonlyArray<string>;
19350
+ }], never> | undefined;
19351
+ } & {
19352
+ queryKey: [Pick<Options<GetLatestTelemetryData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
19353
+ _id: string;
19354
+ _infinite?: boolean;
19355
+ tags?: ReadonlyArray<string>;
19356
+ }] & {
19357
+ [dataTagSymbol]: {
19358
+ projectId: string;
19359
+ objectTypeId: string;
19360
+ objectId: string;
19361
+ propertyId: string;
19362
+ value?: unknown;
19363
+ unit?: string;
19364
+ at: string;
19365
+ };
19366
+ [dataTagErrorSymbol]: GetLatestTelemetryError;
19367
+ };
19368
+ };
19369
+ export declare const listEventsQueryKey: (options?: Options<ListEventsData>) => [Pick<Options<ListEventsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
19370
+ _id: string;
19371
+ _infinite?: boolean;
19372
+ tags?: ReadonlyArray<string>;
19373
+ }];
19374
+ /**
19375
+ * Read domain events
19376
+ */
19377
+ export declare const listEventsOptions: (options?: Options<ListEventsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
19378
+ count: number;
19379
+ events: Array<{
19002
19380
  id: string;
19003
19381
  cursor: string;
19004
19382
  schemaVersion: 1;
@@ -19059,11 +19437,16 @@ export declare const listEventsOptions: (options?: Options<ListEventsData>) => i
19059
19437
  };
19060
19438
  commitId: string;
19061
19439
  commitOrdinal: number;
19062
- type: "object.deleted";
19440
+ type: "object.created";
19063
19441
  topic: "objects";
19064
19442
  payload: {
19065
19443
  objectTypeId: string;
19066
19444
  primaryId: string;
19445
+ properties: {
19446
+ [key: string]: string | number | boolean | Array<unknown> | {
19447
+ [key: string]: unknown;
19448
+ } | null;
19449
+ };
19067
19450
  propertyChanges: {
19068
19451
  [key: string]: {
19069
19452
  operation: "created";
@@ -19153,17 +19536,43 @@ export declare const listEventsOptions: (options?: Options<ListEventsData>) => i
19153
19536
  };
19154
19537
  commitId: string;
19155
19538
  commitOrdinal: number;
19156
- type: "telemetry.appended";
19157
- topic: "telemetry";
19539
+ type: "object.updated";
19540
+ topic: "objects";
19158
19541
  payload: {
19159
19542
  objectTypeId: string;
19160
- objectId: string;
19161
- propertyId: string;
19162
- value: string | number | boolean | Array<unknown> | {
19163
- [key: string]: unknown;
19164
- } | null;
19165
- unit?: string;
19166
- at: string;
19543
+ primaryId: string;
19544
+ properties: {
19545
+ [key: string]: string | number | boolean | Array<unknown> | {
19546
+ [key: string]: unknown;
19547
+ } | null;
19548
+ };
19549
+ propertyChanges: {
19550
+ [key: string]: {
19551
+ operation: "created";
19552
+ after: string | number | boolean | Array<unknown> | {
19553
+ [key: string]: unknown;
19554
+ } | null;
19555
+ } | {
19556
+ operation: "updated";
19557
+ before: string | number | boolean | Array<unknown> | {
19558
+ [key: string]: unknown;
19559
+ } | null;
19560
+ after: string | number | boolean | Array<unknown> | {
19561
+ [key: string]: unknown;
19562
+ } | null;
19563
+ } | {
19564
+ operation: "cleared";
19565
+ before: string | number | boolean | Array<unknown> | {
19566
+ [key: string]: unknown;
19567
+ } | null;
19568
+ after: null;
19569
+ };
19570
+ };
19571
+ redactions?: {
19572
+ [key: string]: {
19573
+ reason: "missing_clearance";
19574
+ };
19575
+ };
19167
19576
  };
19168
19577
  } | {
19169
19578
  id: string;
@@ -19226,19 +19635,186 @@ export declare const listEventsOptions: (options?: Options<ListEventsData>) => i
19226
19635
  };
19227
19636
  commitId: string;
19228
19637
  commitOrdinal: number;
19229
- type: "link.created";
19230
- topic: "links";
19638
+ type: "object.deleted";
19639
+ topic: "objects";
19231
19640
  payload: {
19232
- sourceTypeId: string;
19233
- sourceId: string;
19234
- linkId: string;
19235
- targetTypeId: string;
19236
- targetId: string;
19237
- properties?: {
19238
- [key: string]: string | number | boolean | Array<unknown> | {
19239
- [key: string]: unknown;
19240
- } | null;
19241
- };
19641
+ objectTypeId: string;
19642
+ primaryId: string;
19643
+ propertyChanges: {
19644
+ [key: string]: {
19645
+ operation: "created";
19646
+ after: string | number | boolean | Array<unknown> | {
19647
+ [key: string]: unknown;
19648
+ } | null;
19649
+ } | {
19650
+ operation: "updated";
19651
+ before: string | number | boolean | Array<unknown> | {
19652
+ [key: string]: unknown;
19653
+ } | null;
19654
+ after: string | number | boolean | Array<unknown> | {
19655
+ [key: string]: unknown;
19656
+ } | null;
19657
+ } | {
19658
+ operation: "cleared";
19659
+ before: string | number | boolean | Array<unknown> | {
19660
+ [key: string]: unknown;
19661
+ } | null;
19662
+ after: null;
19663
+ };
19664
+ };
19665
+ redactions?: {
19666
+ [key: string]: {
19667
+ reason: "missing_clearance";
19668
+ };
19669
+ };
19670
+ };
19671
+ } | {
19672
+ id: string;
19673
+ cursor: string;
19674
+ schemaVersion: 1;
19675
+ projectId: string;
19676
+ occurredAt: string;
19677
+ partitionKey: string;
19678
+ origin: {
19679
+ kind: "action";
19680
+ actionId: string;
19681
+ runId: string;
19682
+ } | {
19683
+ kind: "runtime";
19684
+ requestId: string;
19685
+ } | {
19686
+ kind: "projection";
19687
+ projectionId: string;
19688
+ projectionRunId: string;
19689
+ datasetId: string;
19690
+ datasetVersionId: string;
19691
+ } | {
19692
+ kind: "telemetry";
19693
+ source: {
19694
+ kind: "runtime";
19695
+ requestId: string;
19696
+ } | {
19697
+ kind: "projection";
19698
+ projectionId: string;
19699
+ projectionRunId: string;
19700
+ datasetId: string;
19701
+ datasetVersionId: string;
19702
+ batchOrdinal: number;
19703
+ };
19704
+ };
19705
+ requestedBy?: {
19706
+ type: "user" | "serviceAccount";
19707
+ id: string;
19708
+ };
19709
+ executor: {
19710
+ type: "request";
19711
+ requestId: string;
19712
+ } | {
19713
+ type: "primitive";
19714
+ kind: "action" | "pipeline" | "projection" | "rule" | "sync" | "webhook" | "workflow";
19715
+ id: string;
19716
+ runId: string;
19717
+ } | {
19718
+ type: "agent";
19719
+ runId: string;
19720
+ } | {
19721
+ type: "kernel";
19722
+ operation: {
19723
+ type: "ontology.recover";
19724
+ recoveryId: string;
19725
+ } | {
19726
+ type: "ontology.indexVectors";
19727
+ indexingId: string;
19728
+ };
19729
+ };
19730
+ commitId: string;
19731
+ commitOrdinal: number;
19732
+ type: "telemetry.appended";
19733
+ topic: "telemetry";
19734
+ payload: {
19735
+ objectTypeId: string;
19736
+ objectId: string;
19737
+ propertyId: string;
19738
+ value: string | number | boolean | Array<unknown> | {
19739
+ [key: string]: unknown;
19740
+ } | null;
19741
+ unit?: string;
19742
+ at: string;
19743
+ };
19744
+ } | {
19745
+ id: string;
19746
+ cursor: string;
19747
+ schemaVersion: 1;
19748
+ projectId: string;
19749
+ occurredAt: string;
19750
+ partitionKey: string;
19751
+ origin: {
19752
+ kind: "action";
19753
+ actionId: string;
19754
+ runId: string;
19755
+ } | {
19756
+ kind: "runtime";
19757
+ requestId: string;
19758
+ } | {
19759
+ kind: "projection";
19760
+ projectionId: string;
19761
+ projectionRunId: string;
19762
+ datasetId: string;
19763
+ datasetVersionId: string;
19764
+ } | {
19765
+ kind: "telemetry";
19766
+ source: {
19767
+ kind: "runtime";
19768
+ requestId: string;
19769
+ } | {
19770
+ kind: "projection";
19771
+ projectionId: string;
19772
+ projectionRunId: string;
19773
+ datasetId: string;
19774
+ datasetVersionId: string;
19775
+ batchOrdinal: number;
19776
+ };
19777
+ };
19778
+ requestedBy?: {
19779
+ type: "user" | "serviceAccount";
19780
+ id: string;
19781
+ };
19782
+ executor: {
19783
+ type: "request";
19784
+ requestId: string;
19785
+ } | {
19786
+ type: "primitive";
19787
+ kind: "action" | "pipeline" | "projection" | "rule" | "sync" | "webhook" | "workflow";
19788
+ id: string;
19789
+ runId: string;
19790
+ } | {
19791
+ type: "agent";
19792
+ runId: string;
19793
+ } | {
19794
+ type: "kernel";
19795
+ operation: {
19796
+ type: "ontology.recover";
19797
+ recoveryId: string;
19798
+ } | {
19799
+ type: "ontology.indexVectors";
19800
+ indexingId: string;
19801
+ };
19802
+ };
19803
+ commitId: string;
19804
+ commitOrdinal: number;
19805
+ type: "link.created";
19806
+ topic: "links";
19807
+ payload: {
19808
+ sourceTypeId: string;
19809
+ sourceId: string;
19810
+ linkId: string;
19811
+ targetTypeId: string;
19812
+ targetId: string;
19813
+ properties?: {
19814
+ [key: string]: string | number | boolean | Array<unknown> | {
19815
+ [key: string]: unknown;
19816
+ } | null;
19817
+ };
19242
19818
  propertyChanges: {
19243
19819
  [key: string]: {
19244
19820
  operation: "created";
@@ -21612,130 +22188,1244 @@ export declare const listEventsOptions: (options?: Options<ListEventsData>) => i
21612
22188
  [key: string]: unknown;
21613
22189
  } | null;
21614
22190
  };
21615
- type: "schedule.triggered" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed" | "rule.triggered" | "rule.resolved";
21616
- topic: "objects" | "telemetry" | "links" | "schedules" | "syncs" | "pipelines" | "workflows" | "datasets" | "rules";
21617
- payload: {
21618
- [key: string]: unknown;
22191
+ type: "schedule.triggered" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed" | "rule.triggered" | "rule.resolved";
22192
+ topic: "objects" | "telemetry" | "links" | "schedules" | "syncs" | "pipelines" | "workflows" | "datasets" | "rules";
22193
+ payload: {
22194
+ [key: string]: unknown;
22195
+ };
22196
+ }>;
22197
+ };
22198
+ [dataTagErrorSymbol]: ListEventsError;
22199
+ };
22200
+ };
22201
+ export declare const listLogsQueryKey: (options?: Options<ListLogsData>) => [Pick<Options<ListLogsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
22202
+ _id: string;
22203
+ _infinite?: boolean;
22204
+ tags?: ReadonlyArray<string>;
22205
+ }];
22206
+ /**
22207
+ * Read run logs
22208
+ */
22209
+ export declare const listLogsOptions: (options?: Options<ListLogsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
22210
+ count: number;
22211
+ lines: Array<{
22212
+ level: "debug" | "info" | "warn" | "error";
22213
+ message: string;
22214
+ fields?: {
22215
+ [key: string]: unknown;
22216
+ };
22217
+ at: string;
22218
+ context: {
22219
+ run: {
22220
+ kind: "action" | "agent" | "pipeline" | "projection" | "sync" | "webhook" | "workflow";
22221
+ id: string;
22222
+ };
22223
+ stepId?: string;
22224
+ phase?: string;
22225
+ attempt?: number;
22226
+ };
22227
+ cursor: string;
22228
+ }>;
22229
+ cursor?: string;
22230
+ hasMore: boolean;
22231
+ }, ListLogsError, {
22232
+ count: number;
22233
+ lines: Array<{
22234
+ level: "debug" | "info" | "warn" | "error";
22235
+ message: string;
22236
+ fields?: {
22237
+ [key: string]: unknown;
22238
+ };
22239
+ at: string;
22240
+ context: {
22241
+ run: {
22242
+ kind: "action" | "agent" | "pipeline" | "projection" | "sync" | "webhook" | "workflow";
22243
+ id: string;
22244
+ };
22245
+ stepId?: string;
22246
+ phase?: string;
22247
+ attempt?: number;
22248
+ };
22249
+ cursor: string;
22250
+ }>;
22251
+ cursor?: string;
22252
+ hasMore: boolean;
22253
+ }, [Pick<Options<ListLogsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
22254
+ _id: string;
22255
+ _infinite?: boolean;
22256
+ tags?: ReadonlyArray<string>;
22257
+ }]>, "queryFn"> & {
22258
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
22259
+ count: number;
22260
+ lines: Array<{
22261
+ level: "debug" | "info" | "warn" | "error";
22262
+ message: string;
22263
+ fields?: {
22264
+ [key: string]: unknown;
22265
+ };
22266
+ at: string;
22267
+ context: {
22268
+ run: {
22269
+ kind: "action" | "agent" | "pipeline" | "projection" | "sync" | "webhook" | "workflow";
22270
+ id: string;
22271
+ };
22272
+ stepId?: string;
22273
+ phase?: string;
22274
+ attempt?: number;
22275
+ };
22276
+ cursor: string;
22277
+ }>;
22278
+ cursor?: string;
22279
+ hasMore: boolean;
22280
+ }, [Pick<Options<ListLogsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
22281
+ _id: string;
22282
+ _infinite?: boolean;
22283
+ tags?: ReadonlyArray<string>;
22284
+ }], never> | undefined;
22285
+ } & {
22286
+ queryKey: [Pick<Options<ListLogsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
22287
+ _id: string;
22288
+ _infinite?: boolean;
22289
+ tags?: ReadonlyArray<string>;
22290
+ }] & {
22291
+ [dataTagSymbol]: {
22292
+ count: number;
22293
+ lines: Array<{
22294
+ level: "debug" | "info" | "warn" | "error";
22295
+ message: string;
22296
+ fields?: {
22297
+ [key: string]: unknown;
22298
+ };
22299
+ at: string;
22300
+ context: {
22301
+ run: {
22302
+ kind: "action" | "agent" | "pipeline" | "projection" | "sync" | "webhook" | "workflow";
22303
+ id: string;
22304
+ };
22305
+ stepId?: string;
22306
+ phase?: string;
22307
+ attempt?: number;
22308
+ };
22309
+ cursor: string;
22310
+ }>;
22311
+ cursor?: string;
22312
+ hasMore: boolean;
22313
+ };
22314
+ [dataTagErrorSymbol]: ListLogsError;
22315
+ };
22316
+ };
22317
+ export declare const getActivityCaptureConfigQueryKey: (options?: Options<GetActivityCaptureConfigData>) => [Pick<Options<GetActivityCaptureConfigData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
22318
+ _id: string;
22319
+ _infinite?: boolean;
22320
+ tags?: ReadonlyArray<string>;
22321
+ }];
22322
+ /**
22323
+ * Read whether this browser session records activity
22324
+ *
22325
+ * A browser or shared-link session only; a native client's session gets 403.
22326
+ */
22327
+ export declare const getActivityCaptureConfigOptions: (options?: Options<GetActivityCaptureConfigData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
22328
+ enabled: boolean;
22329
+ idleTimeoutMs: number;
22330
+ }, GetActivityCaptureConfigError, {
22331
+ enabled: boolean;
22332
+ idleTimeoutMs: number;
22333
+ }, [Pick<Options<GetActivityCaptureConfigData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
22334
+ _id: string;
22335
+ _infinite?: boolean;
22336
+ tags?: ReadonlyArray<string>;
22337
+ }]>, "queryFn"> & {
22338
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
22339
+ enabled: boolean;
22340
+ idleTimeoutMs: number;
22341
+ }, [Pick<Options<GetActivityCaptureConfigData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
22342
+ _id: string;
22343
+ _infinite?: boolean;
22344
+ tags?: ReadonlyArray<string>;
22345
+ }], never> | undefined;
22346
+ } & {
22347
+ queryKey: [Pick<Options<GetActivityCaptureConfigData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
22348
+ _id: string;
22349
+ _infinite?: boolean;
22350
+ tags?: ReadonlyArray<string>;
22351
+ }] & {
22352
+ [dataTagSymbol]: {
22353
+ enabled: boolean;
22354
+ idleTimeoutMs: number;
22355
+ };
22356
+ [dataTagErrorSymbol]: GetActivityCaptureConfigError;
22357
+ };
22358
+ };
22359
+ /**
22360
+ * Record page views, activity and interactions for this browser session
22361
+ *
22362
+ * A browser or shared-link session only; a native client's session gets 403. The visit belongs to the calling session.
22363
+ */
22364
+ export declare const captureActivityMutation: (options?: Partial<Options<CaptureActivityData>>) => UseMutationOptions<CaptureActivityResponse, CaptureActivityError, Options<CaptureActivityData>>;
22365
+ export declare const listActivityVisitsQueryKey: (options: Options<ListActivityVisitsData>) => [Pick<Options<ListActivityVisitsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
22366
+ _id: string;
22367
+ _infinite?: boolean;
22368
+ tags?: ReadonlyArray<string>;
22369
+ }];
22370
+ /**
22371
+ * List the visits active in a period
22372
+ */
22373
+ export declare const listActivityVisitsOptions: (options: Options<ListActivityVisitsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
22374
+ visits: Array<{
22375
+ id: string;
22376
+ actor: {
22377
+ type: "user";
22378
+ userId: string;
22379
+ } | {
22380
+ type: "share";
22381
+ grantId: string;
22382
+ definitionId?: string;
22383
+ };
22384
+ attribution: {
22385
+ source?: string;
22386
+ medium?: string;
22387
+ campaign?: string;
22388
+ referrer?: string;
22389
+ } | null;
22390
+ startedAt: string;
22391
+ lastSeenAt: string;
22392
+ pageViews: number;
22393
+ interactions: number;
22394
+ }>;
22395
+ hasMore: boolean;
22396
+ }, ListActivityVisitsError, {
22397
+ visits: Array<{
22398
+ id: string;
22399
+ actor: {
22400
+ type: "user";
22401
+ userId: string;
22402
+ } | {
22403
+ type: "share";
22404
+ grantId: string;
22405
+ definitionId?: string;
22406
+ };
22407
+ attribution: {
22408
+ source?: string;
22409
+ medium?: string;
22410
+ campaign?: string;
22411
+ referrer?: string;
22412
+ } | null;
22413
+ startedAt: string;
22414
+ lastSeenAt: string;
22415
+ pageViews: number;
22416
+ interactions: number;
22417
+ }>;
22418
+ hasMore: boolean;
22419
+ }, [Pick<Options<ListActivityVisitsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
22420
+ _id: string;
22421
+ _infinite?: boolean;
22422
+ tags?: ReadonlyArray<string>;
22423
+ }]>, "queryFn"> & {
22424
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
22425
+ visits: Array<{
22426
+ id: string;
22427
+ actor: {
22428
+ type: "user";
22429
+ userId: string;
22430
+ } | {
22431
+ type: "share";
22432
+ grantId: string;
22433
+ definitionId?: string;
22434
+ };
22435
+ attribution: {
22436
+ source?: string;
22437
+ medium?: string;
22438
+ campaign?: string;
22439
+ referrer?: string;
22440
+ } | null;
22441
+ startedAt: string;
22442
+ lastSeenAt: string;
22443
+ pageViews: number;
22444
+ interactions: number;
22445
+ }>;
22446
+ hasMore: boolean;
22447
+ }, [Pick<Options<ListActivityVisitsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
22448
+ _id: string;
22449
+ _infinite?: boolean;
22450
+ tags?: ReadonlyArray<string>;
22451
+ }], never> | undefined;
22452
+ } & {
22453
+ queryKey: [Pick<Options<ListActivityVisitsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
22454
+ _id: string;
22455
+ _infinite?: boolean;
22456
+ tags?: ReadonlyArray<string>;
22457
+ }] & {
22458
+ [dataTagSymbol]: {
22459
+ visits: Array<{
22460
+ id: string;
22461
+ actor: {
22462
+ type: "user";
22463
+ userId: string;
22464
+ } | {
22465
+ type: "share";
22466
+ grantId: string;
22467
+ definitionId?: string;
22468
+ };
22469
+ attribution: {
22470
+ source?: string;
22471
+ medium?: string;
22472
+ campaign?: string;
22473
+ referrer?: string;
22474
+ } | null;
22475
+ startedAt: string;
22476
+ lastSeenAt: string;
22477
+ pageViews: number;
22478
+ interactions: number;
22479
+ }>;
22480
+ hasMore: boolean;
22481
+ };
22482
+ [dataTagErrorSymbol]: ListActivityVisitsError;
22483
+ };
22484
+ };
22485
+ export declare const listActivityUsersQueryKey: (options: Options<ListActivityUsersData>) => [Pick<Options<ListActivityUsersData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
22486
+ _id: string;
22487
+ _infinite?: boolean;
22488
+ tags?: ReadonlyArray<string>;
22489
+ }];
22490
+ /**
22491
+ * List the signed-in users active in a period
22492
+ */
22493
+ export declare const listActivityUsersOptions: (options: Options<ListActivityUsersData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
22494
+ users: Array<{
22495
+ userId: string;
22496
+ displayName?: string;
22497
+ lastSeenAt: string;
22498
+ visits: number;
22499
+ pageViews: number;
22500
+ }>;
22501
+ hasMore: boolean;
22502
+ }, ListActivityUsersError, {
22503
+ users: Array<{
22504
+ userId: string;
22505
+ displayName?: string;
22506
+ lastSeenAt: string;
22507
+ visits: number;
22508
+ pageViews: number;
22509
+ }>;
22510
+ hasMore: boolean;
22511
+ }, [Pick<Options<ListActivityUsersData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
22512
+ _id: string;
22513
+ _infinite?: boolean;
22514
+ tags?: ReadonlyArray<string>;
22515
+ }]>, "queryFn"> & {
22516
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
22517
+ users: Array<{
22518
+ userId: string;
22519
+ displayName?: string;
22520
+ lastSeenAt: string;
22521
+ visits: number;
22522
+ pageViews: number;
22523
+ }>;
22524
+ hasMore: boolean;
22525
+ }, [Pick<Options<ListActivityUsersData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
22526
+ _id: string;
22527
+ _infinite?: boolean;
22528
+ tags?: ReadonlyArray<string>;
22529
+ }], never> | undefined;
22530
+ } & {
22531
+ queryKey: [Pick<Options<ListActivityUsersData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
22532
+ _id: string;
22533
+ _infinite?: boolean;
22534
+ tags?: ReadonlyArray<string>;
22535
+ }] & {
22536
+ [dataTagSymbol]: {
22537
+ users: Array<{
22538
+ userId: string;
22539
+ displayName?: string;
22540
+ lastSeenAt: string;
22541
+ visits: number;
22542
+ pageViews: number;
22543
+ }>;
22544
+ hasMore: boolean;
22545
+ };
22546
+ [dataTagErrorSymbol]: ListActivityUsersError;
22547
+ };
22548
+ };
22549
+ export declare const getActivitySummaryQueryKey: (options: Options<GetActivitySummaryData>) => [Pick<Options<GetActivitySummaryData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
22550
+ _id: string;
22551
+ _infinite?: boolean;
22552
+ tags?: ReadonlyArray<string>;
22553
+ }];
22554
+ /**
22555
+ * Count the users, visits and page views of a period
22556
+ */
22557
+ export declare const getActivitySummaryOptions: (options: Options<GetActivitySummaryData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
22558
+ users: number;
22559
+ visits: number;
22560
+ sharedVisits: number;
22561
+ pageViews: number;
22562
+ }, GetActivitySummaryError, {
22563
+ users: number;
22564
+ visits: number;
22565
+ sharedVisits: number;
22566
+ pageViews: number;
22567
+ }, [Pick<Options<GetActivitySummaryData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
22568
+ _id: string;
22569
+ _infinite?: boolean;
22570
+ tags?: ReadonlyArray<string>;
22571
+ }]>, "queryFn"> & {
22572
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
22573
+ users: number;
22574
+ visits: number;
22575
+ sharedVisits: number;
22576
+ pageViews: number;
22577
+ }, [Pick<Options<GetActivitySummaryData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
22578
+ _id: string;
22579
+ _infinite?: boolean;
22580
+ tags?: ReadonlyArray<string>;
22581
+ }], never> | undefined;
22582
+ } & {
22583
+ queryKey: [Pick<Options<GetActivitySummaryData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
22584
+ _id: string;
22585
+ _infinite?: boolean;
22586
+ tags?: ReadonlyArray<string>;
22587
+ }] & {
22588
+ [dataTagSymbol]: {
22589
+ users: number;
22590
+ visits: number;
22591
+ sharedVisits: number;
22592
+ pageViews: number;
22593
+ };
22594
+ [dataTagErrorSymbol]: GetActivitySummaryError;
22595
+ };
22596
+ };
22597
+ export declare const getActivityCalendarQueryKey: (options: Options<GetActivityCalendarData>) => [Pick<Options<GetActivityCalendarData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
22598
+ _id: string;
22599
+ _infinite?: boolean;
22600
+ tags?: ReadonlyArray<string>;
22601
+ }];
22602
+ /**
22603
+ * Read a user's active days in a UTC year
22604
+ */
22605
+ export declare const getActivityCalendarOptions: (options: Options<GetActivityCalendarData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
22606
+ userId: string;
22607
+ year: number;
22608
+ days: Array<{
22609
+ day: string;
22610
+ visits: number;
22611
+ pageViews: number;
22612
+ }>;
22613
+ }, GetActivityCalendarError, {
22614
+ userId: string;
22615
+ year: number;
22616
+ days: Array<{
22617
+ day: string;
22618
+ visits: number;
22619
+ pageViews: number;
22620
+ }>;
22621
+ }, [Pick<Options<GetActivityCalendarData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
22622
+ _id: string;
22623
+ _infinite?: boolean;
22624
+ tags?: ReadonlyArray<string>;
22625
+ }]>, "queryFn"> & {
22626
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
22627
+ userId: string;
22628
+ year: number;
22629
+ days: Array<{
22630
+ day: string;
22631
+ visits: number;
22632
+ pageViews: number;
22633
+ }>;
22634
+ }, [Pick<Options<GetActivityCalendarData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
22635
+ _id: string;
22636
+ _infinite?: boolean;
22637
+ tags?: ReadonlyArray<string>;
22638
+ }], never> | undefined;
22639
+ } & {
22640
+ queryKey: [Pick<Options<GetActivityCalendarData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
22641
+ _id: string;
22642
+ _infinite?: boolean;
22643
+ tags?: ReadonlyArray<string>;
22644
+ }] & {
22645
+ [dataTagSymbol]: {
22646
+ userId: string;
22647
+ year: number;
22648
+ days: Array<{
22649
+ day: string;
22650
+ visits: number;
22651
+ pageViews: number;
22652
+ }>;
22653
+ };
22654
+ [dataTagErrorSymbol]: GetActivityCalendarError;
22655
+ };
22656
+ };
22657
+ export declare const getActivityVisitTimelineQueryKey: (options: Options<GetActivityVisitTimelineData>) => [Pick<Options<GetActivityVisitTimelineData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
22658
+ _id: string;
22659
+ _infinite?: boolean;
22660
+ tags?: ReadonlyArray<string>;
22661
+ }];
22662
+ /**
22663
+ * Read what one visit did
22664
+ *
22665
+ * Its page views and interactions, with the actions, workflows and Agent runs its session started, and the connection it came through. At most 200 page views and interactions, and 200 recorded executions: see truncated.
22666
+ */
22667
+ export declare const getActivityVisitTimelineOptions: (options: Options<GetActivityVisitTimelineData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
22668
+ visit: {
22669
+ id: string;
22670
+ actor: {
22671
+ type: "user";
22672
+ userId: string;
22673
+ } | {
22674
+ type: "share";
22675
+ grantId: string;
22676
+ definitionId?: string;
22677
+ };
22678
+ attribution: {
22679
+ source?: string;
22680
+ medium?: string;
22681
+ campaign?: string;
22682
+ referrer?: string;
22683
+ } | null;
22684
+ startedAt: string;
22685
+ lastSeenAt: string;
22686
+ pageViews: number;
22687
+ interactions: number;
22688
+ };
22689
+ connection?: {
22690
+ type: "session";
22691
+ device: {
22692
+ browser?: string;
22693
+ os?: string;
22694
+ };
22695
+ clientName?: string;
22696
+ status: "active" | "expired" | "revoked";
22697
+ createdAt: string;
22698
+ lastSeenAt?: string;
22699
+ revokedAt?: string;
22700
+ } | {
22701
+ type: "share";
22702
+ grantId: string;
22703
+ definitionId?: string;
22704
+ status: "active" | "expired" | "revoked";
22705
+ createdAt: string;
22706
+ revokedAt?: string;
22707
+ };
22708
+ entries: Array<{
22709
+ kind: "page";
22710
+ at: string;
22711
+ sequence: number;
22712
+ route: string;
22713
+ } | {
22714
+ kind: "interaction";
22715
+ at: string;
22716
+ sequence: number;
22717
+ name: string;
22718
+ route: string;
22719
+ } | {
22720
+ kind: "action";
22721
+ at: string;
22722
+ executionId: string;
22723
+ actionId: string;
22724
+ runId: string;
22725
+ status: "succeeded" | "failed" | "incomplete";
22726
+ runVisible: boolean;
22727
+ object?: {
22728
+ objectTypeId: string;
22729
+ primaryId: string;
22730
+ };
22731
+ } | {
22732
+ kind: "workflow";
22733
+ at: string;
22734
+ executionId: string;
22735
+ workflowId: string;
22736
+ runId: string;
22737
+ status: "queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled" | "incomplete";
22738
+ runVisible: boolean;
22739
+ } | {
22740
+ kind: "agent";
22741
+ at: string;
22742
+ executionId: string;
22743
+ runId: string;
22744
+ threadId: string;
22745
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
22746
+ messages: number;
22747
+ cost?: {
22748
+ amounts: Array<{
22749
+ currency: string;
22750
+ amountNanos: string;
22751
+ }>;
22752
+ ratedCallCount: number;
22753
+ unpriceableCallCount: number;
22754
+ unvaluedCallCount: number;
22755
+ };
22756
+ }>;
22757
+ truncated: boolean;
22758
+ }, GetActivityVisitTimelineError, {
22759
+ visit: {
22760
+ id: string;
22761
+ actor: {
22762
+ type: "user";
22763
+ userId: string;
22764
+ } | {
22765
+ type: "share";
22766
+ grantId: string;
22767
+ definitionId?: string;
22768
+ };
22769
+ attribution: {
22770
+ source?: string;
22771
+ medium?: string;
22772
+ campaign?: string;
22773
+ referrer?: string;
22774
+ } | null;
22775
+ startedAt: string;
22776
+ lastSeenAt: string;
22777
+ pageViews: number;
22778
+ interactions: number;
22779
+ };
22780
+ connection?: {
22781
+ type: "session";
22782
+ device: {
22783
+ browser?: string;
22784
+ os?: string;
22785
+ };
22786
+ clientName?: string;
22787
+ status: "active" | "expired" | "revoked";
22788
+ createdAt: string;
22789
+ lastSeenAt?: string;
22790
+ revokedAt?: string;
22791
+ } | {
22792
+ type: "share";
22793
+ grantId: string;
22794
+ definitionId?: string;
22795
+ status: "active" | "expired" | "revoked";
22796
+ createdAt: string;
22797
+ revokedAt?: string;
22798
+ };
22799
+ entries: Array<{
22800
+ kind: "page";
22801
+ at: string;
22802
+ sequence: number;
22803
+ route: string;
22804
+ } | {
22805
+ kind: "interaction";
22806
+ at: string;
22807
+ sequence: number;
22808
+ name: string;
22809
+ route: string;
22810
+ } | {
22811
+ kind: "action";
22812
+ at: string;
22813
+ executionId: string;
22814
+ actionId: string;
22815
+ runId: string;
22816
+ status: "succeeded" | "failed" | "incomplete";
22817
+ runVisible: boolean;
22818
+ object?: {
22819
+ objectTypeId: string;
22820
+ primaryId: string;
22821
+ };
22822
+ } | {
22823
+ kind: "workflow";
22824
+ at: string;
22825
+ executionId: string;
22826
+ workflowId: string;
22827
+ runId: string;
22828
+ status: "queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled" | "incomplete";
22829
+ runVisible: boolean;
22830
+ } | {
22831
+ kind: "agent";
22832
+ at: string;
22833
+ executionId: string;
22834
+ runId: string;
22835
+ threadId: string;
22836
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
22837
+ messages: number;
22838
+ cost?: {
22839
+ amounts: Array<{
22840
+ currency: string;
22841
+ amountNanos: string;
22842
+ }>;
22843
+ ratedCallCount: number;
22844
+ unpriceableCallCount: number;
22845
+ unvaluedCallCount: number;
22846
+ };
22847
+ }>;
22848
+ truncated: boolean;
22849
+ }, [Pick<Options<GetActivityVisitTimelineData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
22850
+ _id: string;
22851
+ _infinite?: boolean;
22852
+ tags?: ReadonlyArray<string>;
22853
+ }]>, "queryFn"> & {
22854
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
22855
+ visit: {
22856
+ id: string;
22857
+ actor: {
22858
+ type: "user";
22859
+ userId: string;
22860
+ } | {
22861
+ type: "share";
22862
+ grantId: string;
22863
+ definitionId?: string;
22864
+ };
22865
+ attribution: {
22866
+ source?: string;
22867
+ medium?: string;
22868
+ campaign?: string;
22869
+ referrer?: string;
22870
+ } | null;
22871
+ startedAt: string;
22872
+ lastSeenAt: string;
22873
+ pageViews: number;
22874
+ interactions: number;
22875
+ };
22876
+ connection?: {
22877
+ type: "session";
22878
+ device: {
22879
+ browser?: string;
22880
+ os?: string;
22881
+ };
22882
+ clientName?: string;
22883
+ status: "active" | "expired" | "revoked";
22884
+ createdAt: string;
22885
+ lastSeenAt?: string;
22886
+ revokedAt?: string;
22887
+ } | {
22888
+ type: "share";
22889
+ grantId: string;
22890
+ definitionId?: string;
22891
+ status: "active" | "expired" | "revoked";
22892
+ createdAt: string;
22893
+ revokedAt?: string;
22894
+ };
22895
+ entries: Array<{
22896
+ kind: "page";
22897
+ at: string;
22898
+ sequence: number;
22899
+ route: string;
22900
+ } | {
22901
+ kind: "interaction";
22902
+ at: string;
22903
+ sequence: number;
22904
+ name: string;
22905
+ route: string;
22906
+ } | {
22907
+ kind: "action";
22908
+ at: string;
22909
+ executionId: string;
22910
+ actionId: string;
22911
+ runId: string;
22912
+ status: "succeeded" | "failed" | "incomplete";
22913
+ runVisible: boolean;
22914
+ object?: {
22915
+ objectTypeId: string;
22916
+ primaryId: string;
22917
+ };
22918
+ } | {
22919
+ kind: "workflow";
22920
+ at: string;
22921
+ executionId: string;
22922
+ workflowId: string;
22923
+ runId: string;
22924
+ status: "queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled" | "incomplete";
22925
+ runVisible: boolean;
22926
+ } | {
22927
+ kind: "agent";
22928
+ at: string;
22929
+ executionId: string;
22930
+ runId: string;
22931
+ threadId: string;
22932
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
22933
+ messages: number;
22934
+ cost?: {
22935
+ amounts: Array<{
22936
+ currency: string;
22937
+ amountNanos: string;
22938
+ }>;
22939
+ ratedCallCount: number;
22940
+ unpriceableCallCount: number;
22941
+ unvaluedCallCount: number;
22942
+ };
22943
+ }>;
22944
+ truncated: boolean;
22945
+ }, [Pick<Options<GetActivityVisitTimelineData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
22946
+ _id: string;
22947
+ _infinite?: boolean;
22948
+ tags?: ReadonlyArray<string>;
22949
+ }], never> | undefined;
22950
+ } & {
22951
+ queryKey: [Pick<Options<GetActivityVisitTimelineData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
22952
+ _id: string;
22953
+ _infinite?: boolean;
22954
+ tags?: ReadonlyArray<string>;
22955
+ }] & {
22956
+ [dataTagSymbol]: {
22957
+ visit: {
22958
+ id: string;
22959
+ actor: {
22960
+ type: "user";
22961
+ userId: string;
22962
+ } | {
22963
+ type: "share";
22964
+ grantId: string;
22965
+ definitionId?: string;
22966
+ };
22967
+ attribution: {
22968
+ source?: string;
22969
+ medium?: string;
22970
+ campaign?: string;
22971
+ referrer?: string;
22972
+ } | null;
22973
+ startedAt: string;
22974
+ lastSeenAt: string;
22975
+ pageViews: number;
22976
+ interactions: number;
22977
+ };
22978
+ connection?: {
22979
+ type: "session";
22980
+ device: {
22981
+ browser?: string;
22982
+ os?: string;
22983
+ };
22984
+ clientName?: string;
22985
+ status: "active" | "expired" | "revoked";
22986
+ createdAt: string;
22987
+ lastSeenAt?: string;
22988
+ revokedAt?: string;
22989
+ } | {
22990
+ type: "share";
22991
+ grantId: string;
22992
+ definitionId?: string;
22993
+ status: "active" | "expired" | "revoked";
22994
+ createdAt: string;
22995
+ revokedAt?: string;
22996
+ };
22997
+ entries: Array<{
22998
+ kind: "page";
22999
+ at: string;
23000
+ sequence: number;
23001
+ route: string;
23002
+ } | {
23003
+ kind: "interaction";
23004
+ at: string;
23005
+ sequence: number;
23006
+ name: string;
23007
+ route: string;
23008
+ } | {
23009
+ kind: "action";
23010
+ at: string;
23011
+ executionId: string;
23012
+ actionId: string;
23013
+ runId: string;
23014
+ status: "succeeded" | "failed" | "incomplete";
23015
+ runVisible: boolean;
23016
+ object?: {
23017
+ objectTypeId: string;
23018
+ primaryId: string;
23019
+ };
23020
+ } | {
23021
+ kind: "workflow";
23022
+ at: string;
23023
+ executionId: string;
23024
+ workflowId: string;
23025
+ runId: string;
23026
+ status: "queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled" | "incomplete";
23027
+ runVisible: boolean;
23028
+ } | {
23029
+ kind: "agent";
23030
+ at: string;
23031
+ executionId: string;
23032
+ runId: string;
23033
+ threadId: string;
23034
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
23035
+ messages: number;
23036
+ cost?: {
23037
+ amounts: Array<{
23038
+ currency: string;
23039
+ amountNanos: string;
23040
+ }>;
23041
+ ratedCallCount: number;
23042
+ unpriceableCallCount: number;
23043
+ unvaluedCallCount: number;
21619
23044
  };
21620
23045
  }>;
23046
+ truncated: boolean;
21621
23047
  };
21622
- [dataTagErrorSymbol]: ListEventsError;
23048
+ [dataTagErrorSymbol]: GetActivityVisitTimelineError;
21623
23049
  };
21624
23050
  };
21625
- export declare const listLogsQueryKey: (options?: Options<ListLogsData>) => [Pick<Options<ListLogsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
23051
+ export declare const listActivityConnectionsQueryKey: (options: Options<ListActivityConnectionsData>) => [Pick<Options<ListActivityConnectionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
21626
23052
  _id: string;
21627
23053
  _infinite?: boolean;
21628
23054
  tags?: ReadonlyArray<string>;
21629
23055
  }];
21630
23056
  /**
21631
- * Read run logs
23057
+ * List a user's sign-ins with the visits each opened
23058
+ *
23059
+ * Newest first, revoked and expired sessions included.
21632
23060
  */
21633
- export declare const listLogsOptions: (options?: Options<ListLogsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
21634
- count: number;
21635
- lines: Array<{
21636
- level: "debug" | "info" | "warn" | "error";
21637
- message: string;
21638
- fields?: {
21639
- [key: string]: unknown;
23061
+ export declare const listActivityConnectionsOptions: (options: Options<ListActivityConnectionsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
23062
+ connections: Array<{
23063
+ type: "session";
23064
+ device: {
23065
+ browser?: string;
23066
+ os?: string;
21640
23067
  };
21641
- at: string;
21642
- context: {
21643
- run: {
21644
- kind: "action" | "agent" | "pipeline" | "projection" | "sync" | "webhook" | "workflow";
21645
- id: string;
23068
+ clientName?: string;
23069
+ status: "active" | "expired" | "revoked";
23070
+ createdAt: string;
23071
+ lastSeenAt?: string;
23072
+ revokedAt?: string;
23073
+ visits: number;
23074
+ latestVisits: Array<{
23075
+ id: string;
23076
+ actor: {
23077
+ type: "user";
23078
+ userId: string;
23079
+ } | {
23080
+ type: "share";
23081
+ grantId: string;
23082
+ definitionId?: string;
21646
23083
  };
21647
- stepId?: string;
21648
- phase?: string;
21649
- attempt?: number;
21650
- };
21651
- cursor: string;
23084
+ attribution: {
23085
+ source?: string;
23086
+ medium?: string;
23087
+ campaign?: string;
23088
+ referrer?: string;
23089
+ } | null;
23090
+ startedAt: string;
23091
+ lastSeenAt: string;
23092
+ pageViews: number;
23093
+ interactions: number;
23094
+ }>;
21652
23095
  }>;
21653
- cursor?: string;
21654
- hasMore: boolean;
21655
- }, ListLogsError, {
21656
- count: number;
21657
- lines: Array<{
21658
- level: "debug" | "info" | "warn" | "error";
21659
- message: string;
21660
- fields?: {
21661
- [key: string]: unknown;
23096
+ nextCursor?: string;
23097
+ }, ListActivityConnectionsError, {
23098
+ connections: Array<{
23099
+ type: "session";
23100
+ device: {
23101
+ browser?: string;
23102
+ os?: string;
21662
23103
  };
21663
- at: string;
21664
- context: {
21665
- run: {
21666
- kind: "action" | "agent" | "pipeline" | "projection" | "sync" | "webhook" | "workflow";
21667
- id: string;
23104
+ clientName?: string;
23105
+ status: "active" | "expired" | "revoked";
23106
+ createdAt: string;
23107
+ lastSeenAt?: string;
23108
+ revokedAt?: string;
23109
+ visits: number;
23110
+ latestVisits: Array<{
23111
+ id: string;
23112
+ actor: {
23113
+ type: "user";
23114
+ userId: string;
23115
+ } | {
23116
+ type: "share";
23117
+ grantId: string;
23118
+ definitionId?: string;
21668
23119
  };
21669
- stepId?: string;
21670
- phase?: string;
21671
- attempt?: number;
21672
- };
21673
- cursor: string;
23120
+ attribution: {
23121
+ source?: string;
23122
+ medium?: string;
23123
+ campaign?: string;
23124
+ referrer?: string;
23125
+ } | null;
23126
+ startedAt: string;
23127
+ lastSeenAt: string;
23128
+ pageViews: number;
23129
+ interactions: number;
23130
+ }>;
21674
23131
  }>;
21675
- cursor?: string;
21676
- hasMore: boolean;
21677
- }, [Pick<Options<ListLogsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
23132
+ nextCursor?: string;
23133
+ }, [Pick<Options<ListActivityConnectionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
21678
23134
  _id: string;
21679
23135
  _infinite?: boolean;
21680
23136
  tags?: ReadonlyArray<string>;
21681
23137
  }]>, "queryFn"> & {
21682
23138
  queryFn?: import("@tanstack/react-query").QueryFunction<{
21683
- count: number;
21684
- lines: Array<{
21685
- level: "debug" | "info" | "warn" | "error";
21686
- message: string;
21687
- fields?: {
21688
- [key: string]: unknown;
21689
- };
21690
- at: string;
21691
- context: {
21692
- run: {
21693
- kind: "action" | "agent" | "pipeline" | "projection" | "sync" | "webhook" | "workflow";
21694
- id: string;
21695
- };
21696
- stepId?: string;
21697
- phase?: string;
21698
- attempt?: number;
23139
+ connections: Array<{
23140
+ type: "session";
23141
+ device: {
23142
+ browser?: string;
23143
+ os?: string;
21699
23144
  };
21700
- cursor: string;
23145
+ clientName?: string;
23146
+ status: "active" | "expired" | "revoked";
23147
+ createdAt: string;
23148
+ lastSeenAt?: string;
23149
+ revokedAt?: string;
23150
+ visits: number;
23151
+ latestVisits: Array<{
23152
+ id: string;
23153
+ actor: {
23154
+ type: "user";
23155
+ userId: string;
23156
+ } | {
23157
+ type: "share";
23158
+ grantId: string;
23159
+ definitionId?: string;
23160
+ };
23161
+ attribution: {
23162
+ source?: string;
23163
+ medium?: string;
23164
+ campaign?: string;
23165
+ referrer?: string;
23166
+ } | null;
23167
+ startedAt: string;
23168
+ lastSeenAt: string;
23169
+ pageViews: number;
23170
+ interactions: number;
23171
+ }>;
21701
23172
  }>;
21702
- cursor?: string;
21703
- hasMore: boolean;
21704
- }, [Pick<Options<ListLogsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
23173
+ nextCursor?: string;
23174
+ }, [Pick<Options<ListActivityConnectionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
21705
23175
  _id: string;
21706
23176
  _infinite?: boolean;
21707
23177
  tags?: ReadonlyArray<string>;
21708
23178
  }], never> | undefined;
21709
23179
  } & {
21710
- queryKey: [Pick<Options<ListLogsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
23180
+ queryKey: [Pick<Options<ListActivityConnectionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
21711
23181
  _id: string;
21712
23182
  _infinite?: boolean;
21713
23183
  tags?: ReadonlyArray<string>;
21714
23184
  }] & {
21715
23185
  [dataTagSymbol]: {
21716
- count: number;
21717
- lines: Array<{
21718
- level: "debug" | "info" | "warn" | "error";
21719
- message: string;
21720
- fields?: {
21721
- [key: string]: unknown;
23186
+ connections: Array<{
23187
+ type: "session";
23188
+ device: {
23189
+ browser?: string;
23190
+ os?: string;
21722
23191
  };
21723
- at: string;
21724
- context: {
21725
- run: {
21726
- kind: "action" | "agent" | "pipeline" | "projection" | "sync" | "webhook" | "workflow";
21727
- id: string;
23192
+ clientName?: string;
23193
+ status: "active" | "expired" | "revoked";
23194
+ createdAt: string;
23195
+ lastSeenAt?: string;
23196
+ revokedAt?: string;
23197
+ visits: number;
23198
+ latestVisits: Array<{
23199
+ id: string;
23200
+ actor: {
23201
+ type: "user";
23202
+ userId: string;
23203
+ } | {
23204
+ type: "share";
23205
+ grantId: string;
23206
+ definitionId?: string;
21728
23207
  };
21729
- stepId?: string;
21730
- phase?: string;
21731
- attempt?: number;
21732
- };
21733
- cursor: string;
23208
+ attribution: {
23209
+ source?: string;
23210
+ medium?: string;
23211
+ campaign?: string;
23212
+ referrer?: string;
23213
+ } | null;
23214
+ startedAt: string;
23215
+ lastSeenAt: string;
23216
+ pageViews: number;
23217
+ interactions: number;
23218
+ }>;
21734
23219
  }>;
21735
- cursor?: string;
21736
- hasMore: boolean;
23220
+ nextCursor?: string;
21737
23221
  };
21738
- [dataTagErrorSymbol]: ListLogsError;
23222
+ [dataTagErrorSymbol]: ListActivityConnectionsError;
23223
+ };
23224
+ };
23225
+ export declare const listActivityConnectionsInfiniteQueryKey: (options: Options<ListActivityConnectionsData>) => QueryKey<Options<ListActivityConnectionsData>>;
23226
+ /**
23227
+ * List a user's sign-ins with the visits each opened
23228
+ *
23229
+ * Newest first, revoked and expired sessions included.
23230
+ */
23231
+ export declare const listActivityConnectionsInfiniteOptions: (options: Options<ListActivityConnectionsData>) => import("@tanstack/react-query").UseInfiniteQueryOptions<{
23232
+ connections: Array<{
23233
+ type: "session";
23234
+ device: {
23235
+ browser?: string;
23236
+ os?: string;
23237
+ };
23238
+ clientName?: string;
23239
+ status: "active" | "expired" | "revoked";
23240
+ createdAt: string;
23241
+ lastSeenAt?: string;
23242
+ revokedAt?: string;
23243
+ visits: number;
23244
+ latestVisits: Array<{
23245
+ id: string;
23246
+ actor: {
23247
+ type: "user";
23248
+ userId: string;
23249
+ } | {
23250
+ type: "share";
23251
+ grantId: string;
23252
+ definitionId?: string;
23253
+ };
23254
+ attribution: {
23255
+ source?: string;
23256
+ medium?: string;
23257
+ campaign?: string;
23258
+ referrer?: string;
23259
+ } | null;
23260
+ startedAt: string;
23261
+ lastSeenAt: string;
23262
+ pageViews: number;
23263
+ interactions: number;
23264
+ }>;
23265
+ }>;
23266
+ nextCursor?: string;
23267
+ }, ListActivityConnectionsError, InfiniteData<{
23268
+ connections: Array<{
23269
+ type: "session";
23270
+ device: {
23271
+ browser?: string;
23272
+ os?: string;
23273
+ };
23274
+ clientName?: string;
23275
+ status: "active" | "expired" | "revoked";
23276
+ createdAt: string;
23277
+ lastSeenAt?: string;
23278
+ revokedAt?: string;
23279
+ visits: number;
23280
+ latestVisits: Array<{
23281
+ id: string;
23282
+ actor: {
23283
+ type: "user";
23284
+ userId: string;
23285
+ } | {
23286
+ type: "share";
23287
+ grantId: string;
23288
+ definitionId?: string;
23289
+ };
23290
+ attribution: {
23291
+ source?: string;
23292
+ medium?: string;
23293
+ campaign?: string;
23294
+ referrer?: string;
23295
+ } | null;
23296
+ startedAt: string;
23297
+ lastSeenAt: string;
23298
+ pageViews: number;
23299
+ interactions: number;
23300
+ }>;
23301
+ }>;
23302
+ nextCursor?: string;
23303
+ }, unknown>, QueryKey<Options<ListActivityConnectionsData>>, string | Pick<Pick<Options<ListActivityConnectionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
23304
+ _id: string;
23305
+ _infinite?: boolean;
23306
+ tags?: ReadonlyArray<string>;
23307
+ }, "query" | "body" | "headers" | "path">> & {
23308
+ initialData: InfiniteData<{
23309
+ connections: Array<{
23310
+ type: "session";
23311
+ device: {
23312
+ browser?: string;
23313
+ os?: string;
23314
+ };
23315
+ clientName?: string;
23316
+ status: "active" | "expired" | "revoked";
23317
+ createdAt: string;
23318
+ lastSeenAt?: string;
23319
+ revokedAt?: string;
23320
+ visits: number;
23321
+ latestVisits: Array<{
23322
+ id: string;
23323
+ actor: {
23324
+ type: "user";
23325
+ userId: string;
23326
+ } | {
23327
+ type: "share";
23328
+ grantId: string;
23329
+ definitionId?: string;
23330
+ };
23331
+ attribution: {
23332
+ source?: string;
23333
+ medium?: string;
23334
+ campaign?: string;
23335
+ referrer?: string;
23336
+ } | null;
23337
+ startedAt: string;
23338
+ lastSeenAt: string;
23339
+ pageViews: number;
23340
+ interactions: number;
23341
+ }>;
23342
+ }>;
23343
+ nextCursor?: string;
23344
+ }, string | Pick<Pick<Options<ListActivityConnectionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
23345
+ _id: string;
23346
+ _infinite?: boolean;
23347
+ tags?: ReadonlyArray<string>;
23348
+ }, "query" | "body" | "headers" | "path">> | (() => InfiniteData<{
23349
+ connections: Array<{
23350
+ type: "session";
23351
+ device: {
23352
+ browser?: string;
23353
+ os?: string;
23354
+ };
23355
+ clientName?: string;
23356
+ status: "active" | "expired" | "revoked";
23357
+ createdAt: string;
23358
+ lastSeenAt?: string;
23359
+ revokedAt?: string;
23360
+ visits: number;
23361
+ latestVisits: Array<{
23362
+ id: string;
23363
+ actor: {
23364
+ type: "user";
23365
+ userId: string;
23366
+ } | {
23367
+ type: "share";
23368
+ grantId: string;
23369
+ definitionId?: string;
23370
+ };
23371
+ attribution: {
23372
+ source?: string;
23373
+ medium?: string;
23374
+ campaign?: string;
23375
+ referrer?: string;
23376
+ } | null;
23377
+ startedAt: string;
23378
+ lastSeenAt: string;
23379
+ pageViews: number;
23380
+ interactions: number;
23381
+ }>;
23382
+ }>;
23383
+ nextCursor?: string;
23384
+ }, string | Pick<Pick<Options<ListActivityConnectionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
23385
+ _id: string;
23386
+ _infinite?: boolean;
23387
+ tags?: ReadonlyArray<string>;
23388
+ }, "query" | "body" | "headers" | "path">>) | undefined;
23389
+ } & {
23390
+ queryKey: QueryKey<Options<ListActivityConnectionsData>> & {
23391
+ [dataTagSymbol]: InfiniteData<{
23392
+ connections: Array<{
23393
+ type: "session";
23394
+ device: {
23395
+ browser?: string;
23396
+ os?: string;
23397
+ };
23398
+ clientName?: string;
23399
+ status: "active" | "expired" | "revoked";
23400
+ createdAt: string;
23401
+ lastSeenAt?: string;
23402
+ revokedAt?: string;
23403
+ visits: number;
23404
+ latestVisits: Array<{
23405
+ id: string;
23406
+ actor: {
23407
+ type: "user";
23408
+ userId: string;
23409
+ } | {
23410
+ type: "share";
23411
+ grantId: string;
23412
+ definitionId?: string;
23413
+ };
23414
+ attribution: {
23415
+ source?: string;
23416
+ medium?: string;
23417
+ campaign?: string;
23418
+ referrer?: string;
23419
+ } | null;
23420
+ startedAt: string;
23421
+ lastSeenAt: string;
23422
+ pageViews: number;
23423
+ interactions: number;
23424
+ }>;
23425
+ }>;
23426
+ nextCursor?: string;
23427
+ }, unknown>;
23428
+ [dataTagErrorSymbol]: ListActivityConnectionsError;
21739
23429
  };
21740
23430
  };
21741
23431
  export declare const listProjectionsQueryKey: (options?: Options<ListProjectionsData>) => [Pick<Options<ListProjectionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {