@sixb/client 0.1.19 → 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 (55) hide show
  1. package/README.md +5 -8
  2. package/dist/activity-attribution.d.ts +29 -0
  3. package/dist/activity-attribution.d.ts.map +1 -0
  4. package/dist/activity-tracker.d.ts +105 -0
  5. package/dist/activity-tracker.d.ts.map +1 -0
  6. package/dist/browser.d.ts +3 -4
  7. package/dist/browser.d.ts.map +1 -1
  8. package/dist/browser.js +514 -14
  9. package/dist/browser.js.map +6 -4
  10. package/dist/{chunk-j512cs3e.js → chunk-3b154p8n.js} +5 -6
  11. package/dist/{chunk-j512cs3e.js.map → chunk-3b154p8n.js.map} +4 -4
  12. package/dist/{chunk-tkjkrcdt.js → chunk-3f2pjdzk.js} +155 -2
  13. package/dist/chunk-3f2pjdzk.js.map +19 -0
  14. package/dist/{chunk-awbb496e.js → chunk-9wd8x2em.js} +1 -1
  15. package/dist/{chunk-3aa3m9z6.js → chunk-ana8rtgb.js} +2 -2
  16. package/dist/{chunk-jh4ts8mt.js → chunk-m2rmbshc.js} +3 -2
  17. package/dist/{chunk-jh4ts8mt.js.map → chunk-m2rmbshc.js.map} +3 -3
  18. package/dist/{chunk-95bnb04n.js → chunk-qdq5gfqx.js} +1 -1
  19. package/dist/{chunk-12s8gbwj.js → chunk-s5zamywm.js} +2 -2
  20. package/dist/connectors/queries.d.ts.map +1 -1
  21. package/dist/file.d.ts +1 -3
  22. package/dist/file.d.ts.map +1 -1
  23. package/dist/generated/@tanstack/react-query.gen.d.ts +2250 -572
  24. package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
  25. package/dist/generated/index.d.ts +2 -2
  26. package/dist/generated/index.d.ts.map +1 -1
  27. package/dist/generated/sdk.gen.d.ts +89 -1
  28. package/dist/generated/sdk.gen.d.ts.map +1 -1
  29. package/dist/generated/types.gen.d.ts +1910 -734
  30. package/dist/generated/types.gen.d.ts.map +1 -1
  31. package/dist/hooks.js +300 -7
  32. package/dist/hooks.js.map +3 -3
  33. package/dist/index.js +41 -7
  34. package/dist/index.js.map +1 -1
  35. package/dist/logs.js +3 -3
  36. package/dist/models.d.ts.map +1 -1
  37. package/dist/models.js +37 -3
  38. package/dist/models.js.map +1 -1
  39. package/dist/query.js +3 -3
  40. package/package.json +2 -2
  41. package/src/activity-attribution.ts +211 -0
  42. package/src/activity-tracker.ts +527 -0
  43. package/src/agent-streams.ts +1 -1
  44. package/src/browser.ts +15 -7
  45. package/src/file.ts +1 -4
  46. package/src/generated/@tanstack/react-query.gen.ts +580 -0
  47. package/src/generated/index.ts +101 -0
  48. package/src/generated/sdk.gen.ts +389 -0
  49. package/src/generated/types.gen.ts +1947 -677
  50. package/src/models.ts +5 -3
  51. package/dist/chunk-tkjkrcdt.js.map +0 -19
  52. /package/dist/{chunk-awbb496e.js.map → chunk-9wd8x2em.js.map} +0 -0
  53. /package/dist/{chunk-3aa3m9z6.js.map → chunk-ana8rtgb.js.map} +0 -0
  54. /package/dist/{chunk-95bnb04n.js.map → chunk-qdq5gfqx.js.map} +0 -0
  55. /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
  */
@@ -34,10 +34,6 @@ export declare const getAuthSessionOptions: (options?: Options<GetAuthSessionDat
34
34
  } | {
35
35
  authenticated: true;
36
36
  csrfToken?: string;
37
- applicationAccess: {
38
- allowed: boolean;
39
- audience: "atlas" | "app";
40
- };
41
37
  user: {
42
38
  id: string;
43
39
  email: string;
@@ -55,10 +51,6 @@ export declare const getAuthSessionOptions: (options?: Options<GetAuthSessionDat
55
51
  } | {
56
52
  authenticated: true;
57
53
  csrfToken?: string;
58
- applicationAccess: {
59
- allowed: boolean;
60
- audience: "atlas" | "app";
61
- };
62
54
  user: {
63
55
  id: string;
64
56
  email: string;
@@ -81,10 +73,6 @@ export declare const getAuthSessionOptions: (options?: Options<GetAuthSessionDat
81
73
  } | {
82
74
  authenticated: true;
83
75
  csrfToken?: string;
84
- applicationAccess: {
85
- allowed: boolean;
86
- audience: "atlas" | "app";
87
- };
88
76
  user: {
89
77
  id: string;
90
78
  email: string;
@@ -113,10 +101,6 @@ export declare const getAuthSessionOptions: (options?: Options<GetAuthSessionDat
113
101
  } | {
114
102
  authenticated: true;
115
103
  csrfToken?: string;
116
- applicationAccess: {
117
- allowed: boolean;
118
- audience: "atlas" | "app";
119
- };
120
104
  user: {
121
105
  id: string;
122
106
  email: string;
@@ -147,7 +131,6 @@ export declare const listAuthSessionsQueryKey: (options?: Options<ListAuthSessio
147
131
  export declare const listAuthSessionsOptions: (options?: Options<ListAuthSessionsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
148
132
  sessions: Array<{
149
133
  id: string;
150
- audience?: "atlas" | "app";
151
134
  current: boolean;
152
135
  createdAt: string;
153
136
  expiresAt: string;
@@ -161,7 +144,6 @@ export declare const listAuthSessionsOptions: (options?: Options<ListAuthSession
161
144
  }, {
162
145
  sessions: Array<{
163
146
  id: string;
164
- audience?: "atlas" | "app";
165
147
  current: boolean;
166
148
  createdAt: string;
167
149
  expiresAt: string;
@@ -178,7 +160,6 @@ export declare const listAuthSessionsOptions: (options?: Options<ListAuthSession
178
160
  queryFn?: import("@tanstack/react-query").QueryFunction<{
179
161
  sessions: Array<{
180
162
  id: string;
181
- audience?: "atlas" | "app";
182
163
  current: boolean;
183
164
  createdAt: string;
184
165
  expiresAt: string;
@@ -201,7 +182,6 @@ export declare const listAuthSessionsOptions: (options?: Options<ListAuthSession
201
182
  [dataTagSymbol]: {
202
183
  sessions: Array<{
203
184
  id: string;
204
- audience?: "atlas" | "app";
205
185
  current: boolean;
206
186
  createdAt: string;
207
187
  expiresAt: string;
@@ -772,11 +752,6 @@ export declare const getAuthInvitationOptionsOptions: (options?: Options<GetAuth
772
752
  label?: string;
773
753
  description?: string;
774
754
  }>;
775
- destinations: Array<{
776
- id: "atlas" | "app";
777
- label: string;
778
- }>;
779
- defaultDestinationId?: "atlas" | "app";
780
755
  canInviteWithoutGroups: boolean;
781
756
  capabilities: {
782
757
  createInvitation: {
@@ -792,11 +767,6 @@ export declare const getAuthInvitationOptionsOptions: (options?: Options<GetAuth
792
767
  label?: string;
793
768
  description?: string;
794
769
  }>;
795
- destinations: Array<{
796
- id: "atlas" | "app";
797
- label: string;
798
- }>;
799
- defaultDestinationId?: "atlas" | "app";
800
770
  canInviteWithoutGroups: boolean;
801
771
  capabilities: {
802
772
  createInvitation: {
@@ -817,11 +787,6 @@ export declare const getAuthInvitationOptionsOptions: (options?: Options<GetAuth
817
787
  label?: string;
818
788
  description?: string;
819
789
  }>;
820
- destinations: Array<{
821
- id: "atlas" | "app";
822
- label: string;
823
- }>;
824
- defaultDestinationId?: "atlas" | "app";
825
790
  canInviteWithoutGroups: boolean;
826
791
  capabilities: {
827
792
  createInvitation: {
@@ -848,11 +813,6 @@ export declare const getAuthInvitationOptionsOptions: (options?: Options<GetAuth
848
813
  label?: string;
849
814
  description?: string;
850
815
  }>;
851
- destinations: Array<{
852
- id: "atlas" | "app";
853
- label: string;
854
- }>;
855
- defaultDestinationId?: "atlas" | "app";
856
816
  canInviteWithoutGroups: boolean;
857
817
  capabilities: {
858
818
  createInvitation: {
@@ -884,10 +844,16 @@ export declare const getAuthMembershipOptionsOptions: (options?: Options<GetAuth
884
844
  label?: string;
885
845
  description?: string;
886
846
  }>;
847
+ serviceAccountGroups: Array<{
848
+ id: string;
849
+ label?: string;
850
+ description?: string;
851
+ }>;
887
852
  capabilities: {
888
853
  invite: boolean;
889
854
  assignGroups: boolean;
890
855
  suspend: boolean;
856
+ serviceAccounts: boolean;
891
857
  };
892
858
  }, GetAuthMembershipOptionsError, {
893
859
  groups: Array<{
@@ -895,10 +861,16 @@ export declare const getAuthMembershipOptionsOptions: (options?: Options<GetAuth
895
861
  label?: string;
896
862
  description?: string;
897
863
  }>;
864
+ serviceAccountGroups: Array<{
865
+ id: string;
866
+ label?: string;
867
+ description?: string;
868
+ }>;
898
869
  capabilities: {
899
870
  invite: boolean;
900
871
  assignGroups: boolean;
901
872
  suspend: boolean;
873
+ serviceAccounts: boolean;
902
874
  };
903
875
  }, [Pick<Options<GetAuthMembershipOptionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
904
876
  _id: string;
@@ -911,10 +883,16 @@ export declare const getAuthMembershipOptionsOptions: (options?: Options<GetAuth
911
883
  label?: string;
912
884
  description?: string;
913
885
  }>;
886
+ serviceAccountGroups: Array<{
887
+ id: string;
888
+ label?: string;
889
+ description?: string;
890
+ }>;
914
891
  capabilities: {
915
892
  invite: boolean;
916
893
  assignGroups: boolean;
917
894
  suspend: boolean;
895
+ serviceAccounts: boolean;
918
896
  };
919
897
  }, [Pick<Options<GetAuthMembershipOptionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
920
898
  _id: string;
@@ -933,10 +911,16 @@ export declare const getAuthMembershipOptionsOptions: (options?: Options<GetAuth
933
911
  label?: string;
934
912
  description?: string;
935
913
  }>;
914
+ serviceAccountGroups: Array<{
915
+ id: string;
916
+ label?: string;
917
+ description?: string;
918
+ }>;
936
919
  capabilities: {
937
920
  invite: boolean;
938
921
  assignGroups: boolean;
939
922
  suspend: boolean;
923
+ serviceAccounts: boolean;
940
924
  };
941
925
  };
942
926
  [dataTagErrorSymbol]: GetAuthMembershipOptionsError;
@@ -2266,11 +2250,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
2266
2250
  region?: string;
2267
2251
  inferenceGeo?: string;
2268
2252
  routedProviderId?: string;
2269
- routedModelId
2270
- /**
2271
- * List connector connections
2272
- */
2273
- ?: string;
2253
+ routedModelId?: string;
2274
2254
  deploymentId?: string;
2275
2255
  inferenceProfileId?: string;
2276
2256
  cacheWriteTtlSeconds?: number;
@@ -2436,11 +2416,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
2436
2416
  region?: string;
2437
2417
  inferenceGeo?: string;
2438
2418
  routedProviderId?: string;
2439
- routedModelId
2440
- /**
2441
- * List connector connections
2442
- */
2443
- ?: string;
2419
+ routedModelId?: string;
2444
2420
  deploymentId?: string;
2445
2421
  inferenceProfileId?: string;
2446
2422
  cacheWriteTtlSeconds?: number;
@@ -2611,11 +2587,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
2611
2587
  region?: string;
2612
2588
  inferenceGeo?: string;
2613
2589
  routedProviderId?: string;
2614
- routedModelId
2615
- /**
2616
- * List connector connections
2617
- */
2618
- ?: string;
2590
+ routedModelId?: string;
2619
2591
  deploymentId?: string;
2620
2592
  inferenceProfileId?: string;
2621
2593
  cacheWriteTtlSeconds?: number;
@@ -2792,11 +2764,7 @@ export declare const listAiModelCallsOptions: (options: Options<ListAiModelCalls
2792
2764
  region?: string;
2793
2765
  inferenceGeo?: string;
2794
2766
  routedProviderId?: string;
2795
- routedModelId
2796
- /**
2797
- * List connector connections
2798
- */
2799
- ?: string;
2767
+ routedModelId?: string;
2800
2768
  deploymentId?: string;
2801
2769
  inferenceProfileId?: string;
2802
2770
  cacheWriteTtlSeconds?: number;
@@ -2970,11 +2938,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
2970
2938
  region?: string;
2971
2939
  inferenceGeo?: string;
2972
2940
  routedProviderId?: string;
2973
- routedModelId
2974
- /**
2975
- * List connector connections
2976
- */
2977
- ?: string;
2941
+ routedModelId?: string;
2978
2942
  deploymentId?: string;
2979
2943
  inferenceProfileId?: string;
2980
2944
  cacheWriteTtlSeconds?: number;
@@ -3140,11 +3104,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
3140
3104
  region?: string;
3141
3105
  inferenceGeo?: string;
3142
3106
  routedProviderId?: string;
3143
- routedModelId
3144
- /**
3145
- * List connector connections
3146
- */
3147
- ?: string;
3107
+ routedModelId?: string;
3148
3108
  deploymentId?: string;
3149
3109
  inferenceProfileId?: string;
3150
3110
  cacheWriteTtlSeconds?: number;
@@ -3315,11 +3275,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
3315
3275
  region?: string;
3316
3276
  inferenceGeo?: string;
3317
3277
  routedProviderId?: string;
3318
- routedModelId
3319
- /**
3320
- * List connector connections
3321
- */
3322
- ?: string;
3278
+ routedModelId?: string;
3323
3279
  deploymentId?: string;
3324
3280
  inferenceProfileId?: string;
3325
3281
  cacheWriteTtlSeconds?: number;
@@ -3489,11 +3445,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
3489
3445
  region?: string;
3490
3446
  inferenceGeo?: string;
3491
3447
  routedProviderId?: string;
3492
- routedModelId
3493
- /**
3494
- * List connector connections
3495
- */
3496
- ?: string;
3448
+ routedModelId?: string;
3497
3449
  deploymentId?: string;
3498
3450
  inferenceProfileId?: string;
3499
3451
  cacheWriteTtlSeconds?: number;
@@ -3666,11 +3618,7 @@ export declare const listAiModelCallsInfiniteOptions: (options: Options<ListAiMo
3666
3618
  region?: string;
3667
3619
  inferenceGeo?: string;
3668
3620
  routedProviderId?: string;
3669
- routedModelId
3670
- /**
3671
- * List connector connections
3672
- */
3673
- ?: string;
3621
+ routedModelId?: string;
3674
3622
  deploymentId?: string;
3675
3623
  inferenceProfileId?: string;
3676
3624
  cacheWriteTtlSeconds?: number;
@@ -16546,10 +16494,9 @@ export declare const listAgentThreadMessagesOptions: (options: Options<ListAgent
16546
16494
  errorText: string;
16547
16495
  }>;
16548
16496
  annotations: Array<{
16549
- 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";
16550
16498
  severity: "warning" | "error";
16551
- scope: "output" | "run";
16552
- path?: string;
16499
+ scope: "run";
16553
16500
  message: string;
16554
16501
  }>;
16555
16502
  compaction?: {
@@ -16664,10 +16611,9 @@ export declare const listAgentThreadMessagesOptions: (options: Options<ListAgent
16664
16611
  errorText: string;
16665
16612
  }>;
16666
16613
  annotations: Array<{
16667
- 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";
16668
16615
  severity: "warning" | "error";
16669
- scope: "output" | "run";
16670
- path?: string;
16616
+ scope: "run";
16671
16617
  message: string;
16672
16618
  }>;
16673
16619
  compaction?: {
@@ -16787,10 +16733,9 @@ export declare const listAgentThreadMessagesOptions: (options: Options<ListAgent
16787
16733
  errorText: string;
16788
16734
  }>;
16789
16735
  annotations: Array<{
16790
- 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";
16791
16737
  severity: "warning" | "error";
16792
- scope: "output" | "run";
16793
- path?: string;
16738
+ scope: "run";
16794
16739
  message: string;
16795
16740
  }>;
16796
16741
  compaction?: {
@@ -16916,10 +16861,9 @@ export declare const listAgentThreadMessagesOptions: (options: Options<ListAgent
16916
16861
  errorText: string;
16917
16862
  }>;
16918
16863
  annotations: Array<{
16919
- 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";
16920
16865
  severity: "warning" | "error";
16921
- scope: "output" | "run";
16922
- path?: string;
16866
+ scope: "run";
16923
16867
  message: string;
16924
16868
  }>;
16925
16869
  compaction?: {
@@ -17042,10 +16986,9 @@ export declare const listAgentThreadMessagesInfiniteOptions: (options: Options<L
17042
16986
  errorText: string;
17043
16987
  }>;
17044
16988
  annotations: Array<{
17045
- 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";
17046
16990
  severity: "warning" | "error";
17047
- scope: "output" | "run";
17048
- path?: string;
16991
+ scope: "run";
17049
16992
  message: string;
17050
16993
  }>;
17051
16994
  compaction?: {
@@ -17160,10 +17103,9 @@ export declare const listAgentThreadMessagesInfiniteOptions: (options: Options<L
17160
17103
  errorText: string;
17161
17104
  }>;
17162
17105
  annotations: Array<{
17163
- 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";
17164
17107
  severity: "warning" | "error";
17165
- scope: "output" | "run";
17166
- path?: string;
17108
+ scope: "run";
17167
17109
  message: string;
17168
17110
  }>;
17169
17111
  compaction?: {
@@ -17283,10 +17225,9 @@ export declare const listAgentThreadMessagesInfiniteOptions: (options: Options<L
17283
17225
  errorText: string;
17284
17226
  }>;
17285
17227
  annotations: Array<{
17286
- 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";
17287
17229
  severity: "warning" | "error";
17288
- scope: "output" | "run";
17289
- path?: string;
17230
+ scope: "run";
17290
17231
  message: string;
17291
17232
  }>;
17292
17233
  compaction?: {
@@ -17405,10 +17346,9 @@ export declare const listAgentThreadMessagesInfiniteOptions: (options: Options<L
17405
17346
  errorText: string;
17406
17347
  }>;
17407
17348
  annotations: Array<{
17408
- 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";
17409
17350
  severity: "warning" | "error";
17410
- scope: "output" | "run";
17411
- path?: string;
17351
+ scope: "run";
17412
17352
  message: string;
17413
17353
  }>;
17414
17354
  compaction?: {
@@ -17530,10 +17470,9 @@ export declare const listAgentThreadMessagesInfiniteOptions: (options: Options<L
17530
17470
  errorText: string;
17531
17471
  }>;
17532
17472
  annotations: Array<{
17533
- 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";
17534
17474
  severity: "warning" | "error";
17535
- scope: "output" | "run";
17536
- path?: string;
17475
+ scope: "run";
17537
17476
  message: string;
17538
17477
  }>;
17539
17478
  compaction?: {
@@ -17644,10 +17583,9 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
17644
17583
  unvaluedCallCount: number;
17645
17584
  };
17646
17585
  diagnostics?: Array<{
17647
- 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";
17648
17587
  severity: "warning" | "error";
17649
- scope: "output" | "run";
17650
- path?: string;
17588
+ scope: "run";
17651
17589
  message: string;
17652
17590
  }>;
17653
17591
  error?: {
@@ -17712,10 +17650,9 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
17712
17650
  unvaluedCallCount: number;
17713
17651
  };
17714
17652
  diagnostics?: Array<{
17715
- 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";
17716
17654
  severity: "warning" | "error";
17717
- scope: "output" | "run";
17718
- path?: string;
17655
+ scope: "run";
17719
17656
  message: string;
17720
17657
  }>;
17721
17658
  error?: {
@@ -17785,10 +17722,9 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
17785
17722
  unvaluedCallCount: number;
17786
17723
  };
17787
17724
  diagnostics?: Array<{
17788
- 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";
17789
17726
  severity: "warning" | "error";
17790
- scope: "output" | "run";
17791
- path?: string;
17727
+ scope: "run";
17792
17728
  message: string;
17793
17729
  }>;
17794
17730
  error?: {
@@ -17864,10 +17800,9 @@ export declare const listAgentThreadRunsOptions: (options: Options<ListAgentThre
17864
17800
  unvaluedCallCount: number;
17865
17801
  };
17866
17802
  diagnostics?: Array<{
17867
- 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";
17868
17804
  severity: "warning" | "error";
17869
- scope: "output" | "run";
17870
- path?: string;
17805
+ scope: "run";
17871
17806
  message: string;
17872
17807
  }>;
17873
17808
  error?: {
@@ -17940,10 +17875,9 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
17940
17875
  unvaluedCallCount: number;
17941
17876
  };
17942
17877
  diagnostics?: Array<{
17943
- 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";
17944
17879
  severity: "warning" | "error";
17945
- scope: "output" | "run";
17946
- path?: string;
17880
+ scope: "run";
17947
17881
  message: string;
17948
17882
  }>;
17949
17883
  error?: {
@@ -18008,10 +17942,9 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
18008
17942
  unvaluedCallCount: number;
18009
17943
  };
18010
17944
  diagnostics?: Array<{
18011
- 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";
18012
17946
  severity: "warning" | "error";
18013
- scope: "output" | "run";
18014
- path?: string;
17947
+ scope: "run";
18015
17948
  message: string;
18016
17949
  }>;
18017
17950
  error?: {
@@ -18081,10 +18014,9 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
18081
18014
  unvaluedCallCount: number;
18082
18015
  };
18083
18016
  diagnostics?: Array<{
18084
- 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";
18085
18018
  severity: "warning" | "error";
18086
- scope: "output" | "run";
18087
- path?: string;
18019
+ scope: "run";
18088
18020
  message: string;
18089
18021
  }>;
18090
18022
  error?: {
@@ -18153,10 +18085,9 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
18153
18085
  unvaluedCallCount: number;
18154
18086
  };
18155
18087
  diagnostics?: Array<{
18156
- 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";
18157
18089
  severity: "warning" | "error";
18158
- scope: "output" | "run";
18159
- path?: string;
18090
+ scope: "run";
18160
18091
  message: string;
18161
18092
  }>;
18162
18093
  error?: {
@@ -18228,10 +18159,9 @@ export declare const listAgentThreadRunsInfiniteOptions: (options: Options<ListA
18228
18159
  unvaluedCallCount: number;
18229
18160
  };
18230
18161
  diagnostics?: Array<{
18231
- 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";
18232
18163
  severity: "warning" | "error";
18233
- scope: "output" | "run";
18234
- path?: string;
18164
+ scope: "run";
18235
18165
  message: string;
18236
18166
  }>;
18237
18167
  error?: {
@@ -18307,10 +18237,9 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
18307
18237
  unvaluedCallCount: number;
18308
18238
  };
18309
18239
  diagnostics?: Array<{
18310
- 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";
18311
18241
  severity: "warning" | "error";
18312
- scope: "output" | "run";
18313
- path?: string;
18242
+ scope: "run";
18314
18243
  message: string;
18315
18244
  }>;
18316
18245
  error?: {
@@ -18371,10 +18300,9 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
18371
18300
  unvaluedCallCount: number;
18372
18301
  };
18373
18302
  diagnostics?: Array<{
18374
- 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";
18375
18304
  severity: "warning" | "error";
18376
- scope: "output" | "run";
18377
- path?: string;
18305
+ scope: "run";
18378
18306
  message: string;
18379
18307
  }>;
18380
18308
  error?: {
@@ -18440,10 +18368,9 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
18440
18368
  unvaluedCallCount: number;
18441
18369
  };
18442
18370
  diagnostics?: Array<{
18443
- 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";
18444
18372
  severity: "warning" | "error";
18445
- scope: "output" | "run";
18446
- path?: string;
18373
+ scope: "run";
18447
18374
  message: string;
18448
18375
  }>;
18449
18376
  error?: {
@@ -18515,10 +18442,9 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
18515
18442
  unvaluedCallCount: number;
18516
18443
  };
18517
18444
  diagnostics?: Array<{
18518
- 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";
18519
18446
  severity: "warning" | "error";
18520
- scope: "output" | "run";
18521
- path?: string;
18447
+ scope: "run";
18522
18448
  message: string;
18523
18449
  }>;
18524
18450
  error?: {
@@ -18542,408 +18468,947 @@ export declare const getAgentRunOptions: (options: Options<GetAgentRunData>) =>
18542
18468
  [dataTagErrorSymbol]: GetAgentRunError;
18543
18469
  };
18544
18470
  };
18545
- 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"> & {
18546
18472
  _id: string;
18547
18473
  _infinite?: boolean;
18548
18474
  tags?: ReadonlyArray<string>;
18549
18475
  }];
18550
18476
  /**
18551
- * List the project model catalog
18477
+ * List artifacts
18478
+ *
18479
+ * The caller's artifacts, most recently updated first.
18552
18480
  */
18553
- export declare const listModelsOptions: (options?: Options<ListModelsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
18554
- language: Array<{
18555
- provider: string;
18556
- modelId: string;
18557
- isDefault: boolean;
18558
- name: string;
18559
- description?: string;
18560
- 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";
18561
18489
  id: string;
18562
- name: string;
18563
- };
18564
- via?: string;
18565
- capabilities: {
18566
- input: Array<"text" | "image" | "audio" | "video" | "pdf">;
18567
- output: Array<"text" | "image" | "audio" | "video" | "pdf">;
18568
- attachments?: boolean;
18569
- reasoning?: boolean;
18570
- tools?: boolean;
18571
- structuredOutput?: boolean;
18572
- contextWindowTokens?: number;
18573
18490
  };
18574
- reasoningLevels: Array<"provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max">;
18575
- defaultReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
18491
+ latestVersion: number;
18492
+ createdAt: string;
18493
+ updatedAt: string;
18576
18494
  }>;
18577
- }, Error, {
18578
- language: Array<{
18579
- provider: string;
18580
- modelId: string;
18581
- isDefault: boolean;
18582
- name: string;
18583
- description?: string;
18584
- 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";
18585
18505
  id: string;
18586
- name: string;
18587
- };
18588
- via?: string;
18589
- capabilities: {
18590
- input: Array<"text" | "image" | "audio" | "video" | "pdf">;
18591
- output: Array<"text" | "image" | "audio" | "video" | "pdf">;
18592
- attachments?: boolean;
18593
- reasoning?: boolean;
18594
- tools?: boolean;
18595
- structuredOutput?: boolean;
18596
- contextWindowTokens?: number;
18597
18506
  };
18598
- reasoningLevels: Array<"provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max">;
18599
- defaultReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
18507
+ latestVersion: number;
18508
+ createdAt: string;
18509
+ updatedAt: string;
18600
18510
  }>;
18601
- }, [Pick<Options<ListModelsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18511
+ hasMore: boolean;
18512
+ total: number;
18513
+ }, [Pick<Options<ListArtifactsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18602
18514
  _id: string;
18603
18515
  _infinite?: boolean;
18604
18516
  tags?: ReadonlyArray<string>;
18605
18517
  }]>, "queryFn"> & {
18606
18518
  queryFn?: import("@tanstack/react-query").QueryFunction<{
18607
- language: Array<{
18608
- provider: string;
18609
- modelId: string;
18610
- isDefault: boolean;
18611
- name: string;
18612
- description?: string;
18613
- 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";
18614
18526
  id: string;
18615
- name: string;
18616
- };
18617
- via?: string;
18618
- capabilities: {
18619
- input: Array<"text" | "image" | "audio" | "video" | "pdf">;
18620
- output: Array<"text" | "image" | "audio" | "video" | "pdf">;
18621
- attachments?: boolean;
18622
- reasoning?: boolean;
18623
- tools?: boolean;
18624
- structuredOutput?: boolean;
18625
- contextWindowTokens?: number;
18626
18527
  };
18627
- reasoningLevels: Array<"provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max">;
18628
- defaultReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
18528
+ latestVersion: number;
18529
+ createdAt: string;
18530
+ updatedAt: string;
18629
18531
  }>;
18630
- }, [Pick<Options<ListModelsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18532
+ hasMore: boolean;
18533
+ total: number;
18534
+ }, [Pick<Options<ListArtifactsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18631
18535
  _id: string;
18632
18536
  _infinite?: boolean;
18633
18537
  tags?: ReadonlyArray<string>;
18634
18538
  }], never> | undefined;
18635
18539
  } & {
18636
- queryKey: [Pick<Options<ListModelsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18540
+ queryKey: [Pick<Options<ListArtifactsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18637
18541
  _id: string;
18638
18542
  _infinite?: boolean;
18639
18543
  tags?: ReadonlyArray<string>;
18640
18544
  }] & {
18641
18545
  [dataTagSymbol]: {
18642
- language: Array<{
18643
- provider: string;
18644
- modelId: string;
18645
- isDefault: boolean;
18646
- name: string;
18647
- description?: string;
18648
- 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";
18649
18553
  id: string;
18650
- name: string;
18651
- };
18652
- via?: string;
18653
- capabilities: {
18654
- input: Array<"text" | "image" | "audio" | "video" | "pdf">;
18655
- output: Array<"text" | "image" | "audio" | "video" | "pdf">;
18656
- attachments?: boolean;
18657
- reasoning?: boolean;
18658
- tools?: boolean;
18659
- structuredOutput?: boolean;
18660
- contextWindowTokens?: number;
18661
18554
  };
18662
- reasoningLevels: Array<"provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max">;
18663
- defaultReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
18555
+ latestVersion: number;
18556
+ createdAt: string;
18557
+ updatedAt: string;
18664
18558
  }>;
18559
+ hasMore: boolean;
18560
+ total: number;
18665
18561
  };
18666
- [dataTagErrorSymbol]: Error;
18562
+ [dataTagErrorSymbol]: ListArtifactsError;
18667
18563
  };
18668
18564
  };
18565
+ export declare const listArtifactsInfiniteQueryKey: (options?: Options<ListArtifactsData>) => QueryKey<Options<ListArtifactsData>>;
18669
18566
  /**
18670
- * Remove object link
18671
- */
18672
- export declare const removeObjectLinkMutation: (options?: Partial<Options<RemoveObjectLinkData>>) => UseMutationOptions<RemoveObjectLinkResponse, RemoveObjectLinkError, Options<RemoveObjectLinkData>>;
18673
- /**
18674
- * Create or update object link
18567
+ * List artifacts
18568
+ *
18569
+ * The caller's artifacts, most recently updated first.
18675
18570
  */
18676
- export declare const upsertObjectLinkMutation: (options?: Partial<Options<UpsertObjectLinkData>>) => UseMutationOptions<UpsertObjectLinkResponse, UpsertObjectLinkError, Options<UpsertObjectLinkData>>;
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"> & {
18604
+ _id: string;
18605
+ _infinite?: boolean;
18606
+ tags?: ReadonlyArray<string>;
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"> & {
18625
+ _id: string;
18626
+ _infinite?: boolean;
18627
+ tags?: ReadonlyArray<string>;
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"> & {
18645
+ _id: string;
18646
+ _infinite?: boolean;
18647
+ tags?: ReadonlyArray<string>;
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;
18669
+ };
18670
+ };
18677
18671
  /**
18678
- * Append telemetry point
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.
18679
18675
  */
18680
- export declare const appendTelemetryMutation: (options?: Partial<Options<AppendTelemetryData>>) => UseMutationOptions<AppendTelemetryResponse, AppendTelemetryError, Options<AppendTelemetryData>>;
18676
+ export declare const createArtifactMutation: (options?: Partial<Options<CreateArtifactData>>) => UseMutationOptions<CreateArtifactResponse, CreateArtifactError, Options<CreateArtifactData>>;
18681
18677
  /**
18682
- * Get bulk telemetry history
18678
+ * Delete an artifact
18679
+ *
18680
+ * Deletes the artifact with every version.
18683
18681
  */
18684
- export declare const getBulkTelemetryHistoryMutation: (options?: Partial<Options<GetBulkTelemetryHistoryData>>) => UseMutationOptions<GetBulkTelemetryHistoryResponse, GetBulkTelemetryHistoryError, Options<GetBulkTelemetryHistoryData>>;
18685
- export declare const getTelemetryHistoryQueryKey: (options: Options<GetTelemetryHistoryData>) => [Pick<Options<GetTelemetryHistoryData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
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"> & {
18686
18684
  _id: string;
18687
18685
  _infinite?: boolean;
18688
18686
  tags?: ReadonlyArray<string>;
18689
18687
  }];
18690
18688
  /**
18691
- * Get telemetry history
18689
+ * Get an artifact and its versions
18692
18690
  */
18693
- export declare const getTelemetryHistoryOptions: (options: Options<GetTelemetryHistoryData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
18694
- projectId: string;
18695
- objectTypeId: string;
18696
- objectId: string;
18697
- propertyId: string;
18698
- value?: unknown;
18699
- unit?: string;
18700
- at: string;
18701
- }[], GetTelemetryHistoryError, {
18702
- projectId: string;
18703
- objectTypeId: string;
18704
- objectId: string;
18705
- propertyId: string;
18706
- value?: unknown;
18707
- unit?: string;
18708
- at: string;
18709
- }[], [Pick<Options<GetTelemetryHistoryData>, "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"> & {
18710
18746
  _id: string;
18711
18747
  _infinite?: boolean;
18712
18748
  tags?: ReadonlyArray<string>;
18713
18749
  }]>, "queryFn"> & {
18714
18750
  queryFn?: import("@tanstack/react-query").QueryFunction<{
18715
- projectId: string;
18716
- objectTypeId: string;
18717
- objectId: string;
18718
- propertyId: string;
18719
- value?: unknown;
18720
- unit?: string;
18721
- at: string;
18722
- }[], [Pick<Options<GetTelemetryHistoryData>, "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"> & {
18723
18778
  _id: string;
18724
18779
  _infinite?: boolean;
18725
18780
  tags?: ReadonlyArray<string>;
18726
18781
  }], never> | undefined;
18727
18782
  } & {
18728
- queryKey: [Pick<Options<GetTelemetryHistoryData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18783
+ queryKey: [Pick<Options<GetArtifactData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18729
18784
  _id: string;
18730
18785
  _infinite?: boolean;
18731
18786
  tags?: ReadonlyArray<string>;
18732
18787
  }] & {
18733
18788
  [dataTagSymbol]: {
18734
- projectId: string;
18735
- objectTypeId: string;
18736
- objectId: string;
18737
- propertyId: string;
18738
- value?: unknown;
18739
- unit?: string;
18740
- at: string;
18741
- }[];
18742
- [dataTagErrorSymbol]: GetTelemetryHistoryError;
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
+ }>;
18815
+ };
18816
+ [dataTagErrorSymbol]: GetArtifactError;
18743
18817
  };
18744
18818
  };
18745
- export declare const getLatestTelemetryQueryKey: (options: Options<GetLatestTelemetryData>) => [Pick<Options<GetLatestTelemetryData>, "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"> & {
18746
18832
  _id: string;
18747
18833
  _infinite?: boolean;
18748
18834
  tags?: ReadonlyArray<string>;
18749
18835
  }];
18750
18836
  /**
18751
- * Get latest telemetry point
18837
+ * Get an artifact version
18838
+ *
18839
+ * Its files, outline, and references. Use "latest" for the newest version.
18752
18840
  */
18753
- export declare const getLatestTelemetryOptions: (options: Options<GetLatestTelemetryData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
18754
- projectId: string;
18755
- objectTypeId: string;
18756
- objectId: string;
18757
- propertyId: string;
18758
- value?: unknown;
18759
- unit?: string;
18760
- at: string;
18761
- }, GetLatestTelemetryError, {
18762
- projectId: string;
18763
- objectTypeId: string;
18764
- objectId: string;
18765
- propertyId: string;
18766
- value?: unknown;
18767
- unit?: string;
18768
- at: string;
18769
- }, [Pick<Options<GetLatestTelemetryData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
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";
18889
+ id: 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"> & {
18770
18952
  _id: string;
18771
18953
  _infinite?: boolean;
18772
18954
  tags?: ReadonlyArray<string>;
18773
18955
  }]>, "queryFn"> & {
18774
18956
  queryFn?: import("@tanstack/react-query").QueryFunction<{
18775
- projectId: string;
18776
- objectTypeId: string;
18777
- objectId: string;
18778
- propertyId: string;
18779
- value?: unknown;
18780
- unit?: string;
18781
- at: string;
18782
- }, [Pick<Options<GetLatestTelemetryData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
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
+ }>;
18979
+ } | {
18980
+ kind: "sheet";
18981
+ sheets: Array<{
18982
+ name: string;
18983
+ rows: number;
18984
+ columns: Array<string>;
18985
+ }>;
18986
+ charts: Array<string>;
18987
+ } | {
18988
+ kind: "slides";
18989
+ slides: Array<{
18990
+ title?: string;
18991
+ }>;
18992
+ } | {
18993
+ kind: "file";
18994
+ mediaType: string;
18995
+ };
18996
+ references: Array<{
18997
+ address: string;
18998
+ as: "embed" | "link";
18999
+ at: string;
19000
+ resolvedVersion: number;
19001
+ }>;
19002
+ author: {
19003
+ type: "user" | "serviceAccount" | "system";
19004
+ id: string;
19005
+ };
19006
+ origin?: {
19007
+ threadId: string;
19008
+ runId: string;
19009
+ };
19010
+ createdAt: string;
19011
+ }, [Pick<Options<GetArtifactVersionData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18783
19012
  _id: string;
18784
19013
  _infinite?: boolean;
18785
19014
  tags?: ReadonlyArray<string>;
18786
19015
  }], never> | undefined;
18787
19016
  } & {
18788
- queryKey: [Pick<Options<GetLatestTelemetryData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
19017
+ queryKey: [Pick<Options<GetArtifactVersionData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18789
19018
  _id: string;
18790
19019
  _infinite?: boolean;
18791
19020
  tags?: ReadonlyArray<string>;
18792
19021
  }] & {
18793
19022
  [dataTagSymbol]: {
18794
- projectId: string;
18795
- objectTypeId: string;
18796
- objectId: string;
18797
- propertyId: string;
18798
- value?: unknown;
18799
- unit?: string;
18800
- at: string;
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;
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;
19061
+ };
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;
19071
+ };
19072
+ origin?: {
19073
+ threadId: string;
19074
+ runId: string;
19075
+ };
19076
+ createdAt: string;
18801
19077
  };
18802
- [dataTagErrorSymbol]: GetLatestTelemetryError;
19078
+ [dataTagErrorSymbol]: GetArtifactVersionError;
18803
19079
  };
18804
19080
  };
18805
- export declare const listEventsQueryKey: (options?: Options<ListEventsData>) => [Pick<Options<ListEventsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
19081
+ export declare const getArtifactFileContentQueryKey: (options: Options<GetArtifactFileContentData>) => [Pick<Options<GetArtifactFileContentData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
18806
19082
  _id: string;
18807
19083
  _infinite?: boolean;
18808
19084
  tags?: ReadonlyArray<string>;
18809
19085
  }];
18810
19086
  /**
18811
- * Read domain events
19087
+ * Get a file of an artifact version
18812
19088
  */
18813
- export declare const listEventsOptions: (options?: Options<ListEventsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
18814
- count: number;
18815
- events: Array<{
18816
- id: string;
18817
- cursor: string;
18818
- schemaVersion: 1;
18819
- projectId: string;
18820
- occurredAt: string;
18821
- partitionKey: string;
18822
- origin: {
18823
- kind: "action";
18824
- actionId: string;
18825
- runId: string;
18826
- } | {
18827
- kind: "runtime";
18828
- requestId: string;
18829
- } | {
18830
- kind: "projection";
18831
- projectionId: string;
18832
- projectionRunId: string;
18833
- datasetId: string;
18834
- datasetVersionId: string;
18835
- } | {
18836
- kind: "telemetry";
18837
- source: {
18838
- kind: "runtime";
18839
- requestId: string;
18840
- } | {
18841
- kind: "projection";
18842
- projectionId: string;
18843
- projectionRunId: string;
18844
- datasetId: string;
18845
- datasetVersionId: string;
18846
- batchOrdinal: number;
18847
- };
18848
- };
18849
- requestedBy?: {
18850
- type: "user" | "serviceAccount";
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: {
18851
19125
  id: string;
19126
+ name: string;
18852
19127
  };
18853
- executor: {
18854
- type: "request";
18855
- requestId: string;
18856
- } | {
18857
- type: "primitive";
18858
- 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: {
18859
19149
  id: string;
18860
- runId: string;
18861
- } | {
18862
- type: "agent";
18863
- runId: string;
18864
- } | {
18865
- type: "kernel";
18866
- operation: {
18867
- type: "ontology.recover";
18868
- recoveryId: string;
18869
- } | {
18870
- type: "ontology.indexVectors";
18871
- indexingId: string;
18872
- };
19150
+ name: string;
18873
19151
  };
18874
- commitId: string;
18875
- commitOrdinal: number;
18876
- type: "object.created";
18877
- topic: "objects";
18878
- payload: {
18879
- objectTypeId: string;
18880
- primaryId: string;
18881
- properties: {
18882
- [key: string]: string | number | boolean | Array<unknown> | {
18883
- [key: string]: unknown;
18884
- } | 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;
18885
19180
  };
18886
- propertyChanges: {
18887
- [key: string]: {
18888
- operation: "created";
18889
- after: string | number | boolean | Array<unknown> | {
18890
- [key: string]: unknown;
18891
- } | null;
18892
- } | {
18893
- operation: "updated";
18894
- before: string | number | boolean | Array<unknown> | {
18895
- [key: string]: unknown;
18896
- } | null;
18897
- after: string | number | boolean | Array<unknown> | {
18898
- [key: string]: unknown;
18899
- } | null;
18900
- } | {
18901
- operation: "cleared";
18902
- before: string | number | boolean | Array<unknown> | {
18903
- [key: string]: unknown;
18904
- } | null;
18905
- after: null;
18906
- };
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;
18907
19190
  };
18908
- redactions?: {
18909
- [key: string]: {
18910
- 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;
18911
19215
  };
18912
- };
18913
- };
18914
- } | {
18915
- id: string;
18916
- cursor: string;
18917
- schemaVersion: 1;
18918
- projectId: string;
18919
- occurredAt: string;
18920
- partitionKey: string;
18921
- origin: {
18922
- kind: "action";
18923
- actionId: string;
18924
- runId: string;
18925
- } | {
18926
- kind: "runtime";
18927
- requestId: string;
18928
- } | {
18929
- kind: "projection";
18930
- projectionId: string;
18931
- projectionRunId: string;
18932
- datasetId: string;
18933
- datasetVersionId: string;
18934
- } | {
18935
- kind: "telemetry";
18936
- source: {
18937
- kind: "runtime";
18938
- requestId: string;
18939
- } | {
18940
- kind: "projection";
18941
- projectionId: string;
18942
- projectionRunId: string;
18943
- datasetId: string;
18944
- datasetVersionId: string;
18945
- batchOrdinal: number;
18946
- };
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
+ }>;
19229
+ };
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<{
19380
+ id: string;
19381
+ cursor: string;
19382
+ schemaVersion: 1;
19383
+ projectId: string;
19384
+ occurredAt: string;
19385
+ partitionKey: string;
19386
+ origin: {
19387
+ kind: "action";
19388
+ actionId: string;
19389
+ runId: string;
19390
+ } | {
19391
+ kind: "runtime";
19392
+ requestId: string;
19393
+ } | {
19394
+ kind: "projection";
19395
+ projectionId: string;
19396
+ projectionRunId: string;
19397
+ datasetId: string;
19398
+ datasetVersionId: string;
19399
+ } | {
19400
+ kind: "telemetry";
19401
+ source: {
19402
+ kind: "runtime";
19403
+ requestId: string;
19404
+ } | {
19405
+ kind: "projection";
19406
+ projectionId: string;
19407
+ projectionRunId: string;
19408
+ datasetId: string;
19409
+ datasetVersionId: string;
19410
+ batchOrdinal: number;
19411
+ };
18947
19412
  };
18948
19413
  requestedBy?: {
18949
19414
  type: "user" | "serviceAccount";
@@ -18972,7 +19437,7 @@ export declare const listEventsOptions: (options?: Options<ListEventsData>) => i
18972
19437
  };
18973
19438
  commitId: string;
18974
19439
  commitOrdinal: number;
18975
- type: "object.updated";
19440
+ type: "object.created";
18976
19441
  topic: "objects";
18977
19442
  payload: {
18978
19443
  objectTypeId: string;
@@ -19071,11 +19536,16 @@ export declare const listEventsOptions: (options?: Options<ListEventsData>) => i
19071
19536
  };
19072
19537
  commitId: string;
19073
19538
  commitOrdinal: number;
19074
- type: "object.deleted";
19539
+ type: "object.updated";
19075
19540
  topic: "objects";
19076
19541
  payload: {
19077
19542
  objectTypeId: string;
19078
19543
  primaryId: string;
19544
+ properties: {
19545
+ [key: string]: string | number | boolean | Array<unknown> | {
19546
+ [key: string]: unknown;
19547
+ } | null;
19548
+ };
19079
19549
  propertyChanges: {
19080
19550
  [key: string]: {
19081
19551
  operation: "created";
@@ -19165,17 +19635,38 @@ export declare const listEventsOptions: (options?: Options<ListEventsData>) => i
19165
19635
  };
19166
19636
  commitId: string;
19167
19637
  commitOrdinal: number;
19168
- type: "telemetry.appended";
19169
- topic: "telemetry";
19638
+ type: "object.deleted";
19639
+ topic: "objects";
19170
19640
  payload: {
19171
19641
  objectTypeId: string;
19172
- objectId: string;
19173
- propertyId: string;
19174
- value: string | number | boolean | Array<unknown> | {
19175
- [key: string]: unknown;
19176
- } | null;
19177
- unit?: string;
19178
- at: 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
+ };
19179
19670
  };
19180
19671
  } | {
19181
19672
  id: string;
@@ -19238,30 +19729,103 @@ export declare const listEventsOptions: (options?: Options<ListEventsData>) => i
19238
19729
  };
19239
19730
  commitId: string;
19240
19731
  commitOrdinal: number;
19241
- type: "link.created";
19242
- topic: "links";
19732
+ type: "telemetry.appended";
19733
+ topic: "telemetry";
19243
19734
  payload: {
19244
- sourceTypeId: string;
19245
- sourceId: string;
19246
- linkId: string;
19247
- targetTypeId: string;
19248
- targetId: string;
19249
- properties?: {
19250
- [key: string]: string | number | boolean | Array<unknown> | {
19251
- [key: string]: unknown;
19252
- } | null;
19253
- };
19254
- propertyChanges: {
19255
- [key: string]: {
19256
- operation: "created";
19257
- after: string | number | boolean | Array<unknown> | {
19258
- [key: string]: unknown;
19259
- } | null;
19260
- } | {
19261
- operation: "updated";
19262
- before: string | number | boolean | Array<unknown> | {
19263
- [key: string]: unknown;
19264
- } | null;
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
+ };
19818
+ propertyChanges: {
19819
+ [key: string]: {
19820
+ operation: "created";
19821
+ after: string | number | boolean | Array<unknown> | {
19822
+ [key: string]: unknown;
19823
+ } | null;
19824
+ } | {
19825
+ operation: "updated";
19826
+ before: string | number | boolean | Array<unknown> | {
19827
+ [key: string]: unknown;
19828
+ } | null;
19265
19829
  after: string | number | boolean | Array<unknown> | {
19266
19830
  [key: string]: unknown;
19267
19831
  } | null;
@@ -21624,130 +22188,1244 @@ export declare const listEventsOptions: (options?: Options<ListEventsData>) => i
21624
22188
  [key: string]: unknown;
21625
22189
  } | null;
21626
22190
  };
21627
- 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";
21628
- topic: "objects" | "telemetry" | "links" | "schedules" | "syncs" | "pipelines" | "workflows" | "datasets" | "rules";
21629
- payload: {
21630
- [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;
21631
23044
  };
21632
23045
  }>;
23046
+ truncated: boolean;
21633
23047
  };
21634
- [dataTagErrorSymbol]: ListEventsError;
23048
+ [dataTagErrorSymbol]: GetActivityVisitTimelineError;
21635
23049
  };
21636
23050
  };
21637
- 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"> & {
21638
23052
  _id: string;
21639
23053
  _infinite?: boolean;
21640
23054
  tags?: ReadonlyArray<string>;
21641
23055
  }];
21642
23056
  /**
21643
- * Read run logs
23057
+ * List a user's sign-ins with the visits each opened
23058
+ *
23059
+ * Newest first, revoked and expired sessions included.
21644
23060
  */
21645
- export declare const listLogsOptions: (options?: Options<ListLogsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
21646
- count: number;
21647
- lines: Array<{
21648
- level: "debug" | "info" | "warn" | "error";
21649
- message: string;
21650
- fields?: {
21651
- [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;
21652
23067
  };
21653
- at: string;
21654
- context: {
21655
- run: {
21656
- kind: "action" | "agent" | "pipeline" | "projection" | "sync" | "webhook" | "workflow";
21657
- 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;
21658
23083
  };
21659
- stepId?: string;
21660
- phase?: string;
21661
- attempt?: number;
21662
- };
21663
- 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
+ }>;
21664
23095
  }>;
21665
- cursor?: string;
21666
- hasMore: boolean;
21667
- }, ListLogsError, {
21668
- count: number;
21669
- lines: Array<{
21670
- level: "debug" | "info" | "warn" | "error";
21671
- message: string;
21672
- fields?: {
21673
- [key: string]: unknown;
23096
+ nextCursor?: string;
23097
+ }, ListActivityConnectionsError, {
23098
+ connections: Array<{
23099
+ type: "session";
23100
+ device: {
23101
+ browser?: string;
23102
+ os?: string;
21674
23103
  };
21675
- at: string;
21676
- context: {
21677
- run: {
21678
- kind: "action" | "agent" | "pipeline" | "projection" | "sync" | "webhook" | "workflow";
21679
- 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;
21680
23119
  };
21681
- stepId?: string;
21682
- phase?: string;
21683
- attempt?: number;
21684
- };
21685
- 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
+ }>;
21686
23131
  }>;
21687
- cursor?: string;
21688
- hasMore: boolean;
21689
- }, [Pick<Options<ListLogsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
23132
+ nextCursor?: string;
23133
+ }, [Pick<Options<ListActivityConnectionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
21690
23134
  _id: string;
21691
23135
  _infinite?: boolean;
21692
23136
  tags?: ReadonlyArray<string>;
21693
23137
  }]>, "queryFn"> & {
21694
23138
  queryFn?: import("@tanstack/react-query").QueryFunction<{
21695
- count: number;
21696
- lines: Array<{
21697
- level: "debug" | "info" | "warn" | "error";
21698
- message: string;
21699
- fields?: {
21700
- [key: string]: unknown;
21701
- };
21702
- at: string;
21703
- context: {
21704
- run: {
21705
- kind: "action" | "agent" | "pipeline" | "projection" | "sync" | "webhook" | "workflow";
21706
- id: string;
21707
- };
21708
- stepId?: string;
21709
- phase?: string;
21710
- attempt?: number;
23139
+ connections: Array<{
23140
+ type: "session";
23141
+ device: {
23142
+ browser?: string;
23143
+ os?: string;
21711
23144
  };
21712
- 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
+ }>;
21713
23172
  }>;
21714
- cursor?: string;
21715
- hasMore: boolean;
21716
- }, [Pick<Options<ListLogsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
23173
+ nextCursor?: string;
23174
+ }, [Pick<Options<ListActivityConnectionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
21717
23175
  _id: string;
21718
23176
  _infinite?: boolean;
21719
23177
  tags?: ReadonlyArray<string>;
21720
23178
  }], never> | undefined;
21721
23179
  } & {
21722
- queryKey: [Pick<Options<ListLogsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
23180
+ queryKey: [Pick<Options<ListActivityConnectionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
21723
23181
  _id: string;
21724
23182
  _infinite?: boolean;
21725
23183
  tags?: ReadonlyArray<string>;
21726
23184
  }] & {
21727
23185
  [dataTagSymbol]: {
21728
- count: number;
21729
- lines: Array<{
21730
- level: "debug" | "info" | "warn" | "error";
21731
- message: string;
21732
- fields?: {
21733
- [key: string]: unknown;
23186
+ connections: Array<{
23187
+ type: "session";
23188
+ device: {
23189
+ browser?: string;
23190
+ os?: string;
21734
23191
  };
21735
- at: string;
21736
- context: {
21737
- run: {
21738
- kind: "action" | "agent" | "pipeline" | "projection" | "sync" | "webhook" | "workflow";
21739
- 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;
21740
23207
  };
21741
- stepId?: string;
21742
- phase?: string;
21743
- attempt?: number;
21744
- };
21745
- 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
+ }>;
21746
23219
  }>;
21747
- cursor?: string;
21748
- hasMore: boolean;
23220
+ nextCursor?: string;
21749
23221
  };
21750
- [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;
21751
23429
  };
21752
23430
  };
21753
23431
  export declare const listProjectionsQueryKey: (options?: Options<ListProjectionsData>) => [Pick<Options<ListProjectionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {