@dvina/sdk 4.0.175 → 4.0.199

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 (28) hide show
  1. package/dist/{_generated_documents-IY3FWPNP.cjs → _generated_documents-AR6ISLTA.cjs} +746 -550
  2. package/dist/{_generated_documents-IY3FWPNP.cjs.map → _generated_documents-AR6ISLTA.cjs.map} +1 -1
  3. package/dist/_generated_documents-XGXYPVHZ.js +4 -0
  4. package/dist/{_generated_documents-Q6OTMWZ6.js.map → _generated_documents-XGXYPVHZ.js.map} +1 -1
  5. package/dist/adapters/angular/index.cjs +4 -4
  6. package/dist/adapters/angular/index.d.cts +1 -1
  7. package/dist/adapters/angular/index.d.ts +1 -1
  8. package/dist/adapters/angular/index.js +2 -2
  9. package/dist/{chunk-MF2FZGXV.js → chunk-NE4IXNQK.js} +107 -18
  10. package/dist/chunk-NE4IXNQK.js.map +1 -0
  11. package/dist/{chunk-K3X4BLL7.cjs → chunk-SLPANKVO.cjs} +155 -17
  12. package/dist/chunk-SLPANKVO.cjs.map +1 -0
  13. package/dist/{chunk-IHJ5KI6X.cjs → chunk-SMEJRZG2.cjs} +1764 -530
  14. package/dist/chunk-SMEJRZG2.cjs.map +1 -0
  15. package/dist/{chunk-4G7NIJ4M.js → chunk-U3M3VJSQ.js} +1214 -13
  16. package/dist/chunk-U3M3VJSQ.js.map +1 -0
  17. package/dist/{client-DE3e6SwA.d.cts → client-Bcq6vHcs.d.cts} +978 -1
  18. package/dist/{client-3CExTHwf.d.ts → client-VdxyMRd6.d.ts} +978 -1
  19. package/dist/index.cjs +561 -405
  20. package/dist/index.d.cts +300 -3
  21. package/dist/index.d.ts +300 -3
  22. package/dist/index.js +2 -2
  23. package/package.json +1 -1
  24. package/dist/_generated_documents-Q6OTMWZ6.js +0 -4
  25. package/dist/chunk-4G7NIJ4M.js.map +0 -1
  26. package/dist/chunk-IHJ5KI6X.cjs.map +0 -1
  27. package/dist/chunk-K3X4BLL7.cjs.map +0 -1
  28. package/dist/chunk-MF2FZGXV.js.map +0 -1
@@ -2,7 +2,7 @@ import { Request, Connection, PageInfo, defaultConnection } from './chunk-KEM6SU
2
2
  import { createInferenceClientInternal } from './chunk-PDM2KR7T.js';
3
3
  import { createHttpTransport, BillingClient, print, Kind } from './chunk-5TAY5I34.js';
4
4
  import { GRAPHQL_ERROR_CODES, DvinaAuthenticationError, DvinaNetworkError, DvinaGraphQLError, DvinaError, createGraphQLError } from './chunk-7XBJ77RJ.js';
5
- import { ChatConnectionFragmentDoc, ChatFragmentDoc, FileFragmentDoc, ChatMessageFragmentDoc, AgentConnectionFragmentDoc, ArtifactConnectionFragmentDoc, InsightFragmentDoc, ChatMessageConnectionFragmentDoc, ContentBlockFragmentDoc, FeedbackFragmentDoc, DatabaseEngineFragmentDoc, TableConnectionFragmentDoc, DocumentContentFragmentDoc, DocumentFormatFragmentDoc, FeedSendMessageActionFragmentDoc, FeedArtifactDataFragmentDoc, ReportMemberFragmentDoc, ReportConnectionFragmentDoc, IntegrationProviderFragmentDoc, FeedItemGeneratedFragmentDoc, CandidateFragmentDoc, IntegrationFragmentDoc, InsightConnectionFragmentDoc, DatabaseFragmentDoc, DocumentFragmentDoc, RelationFragmentDoc, AbortChatDocument, AddInsightToReportDocument, CancelOauthFlowDocument, CancelWorkspaceDeletionDocument, ConnectIntegrationDocument, ConsumePulseEventsDocument, ContinueImportedChatDocument, ContinueInterpretationDocument, CreateAgentDocument, CreateChatDocument, CreateDatabaseDocument, CreateDocumentDocument, CreateFeedbackDocument, CreateFolderDocument, CreateInsightDocument, CreateIntegrationDocument, CreateReportDocument, CreateTableDocument, CreateUserSkillFileDocument, CreateUserSkillFolderDocument, DeleteAgentDocument, DeleteArtifactDocument, DeleteChatDocument, DeleteDatabaseDocument, DeleteDocumentDocument, DeleteFolderDocument, DeleteInsightDocument, DeleteInsightsDocument, DeleteIntegrationDocument, DeleteReportDocument, DeleteTableDocument, DeleteUserSkillFileDocument, DeleteUserSkillFolderDocument, DisconnectIntegrationDocument, DismissPulseEventDocument, ExecuteChatImportDocument, GenerateUploadUriDocument, PreviewChatImportDocument, ReanalyzeDocumentDocument, RefineAgentInstructionDocument, RefineSkillInstructionDocument, RefreshDatabaseSchemaDocument, RefreshInsightDocument, ReinterpretSourceDocument, ReinterpretSourcesOfuserDocument, RelocateInsightDocument, RemoveInsightFromReportDocument, ResetWorkspaceDocument, ResolvePulseEventDocument, ScheduleWorkspaceDeletionDocument, SendMessageDocument, SetDatabasePrimaryKeyDocument, UpdateAgentDocument, UpdateArtifactNameDocument, UpdateChatDocument, UpdateDatabaseDocument, UpdateDocumentDocument, UpdateFolderDocument, UpdateInsightDocument, UpdateInsightInReportDocument, UpdateInsightThumbnailDocument, UpdateInterpDocument, UpdateLiveContextDocument, UpdatePulseTriggerDocument, UpdateReportDocument, UpdateTableDocument, UpdateUserSkillFileDocument, UpdateUserSkillFolderDocument, AgentDocument, Agent_ChatsDocument, AgentsDocument, ArtifactDocument, Artifact_ChatDocument, Artifact_Chat_InsightDocument, Artifact_FileDocument, Artifact_MessageDocument, Artifact_Message_ChatDocument, Artifact_Message_ContentsDocument, Artifact_Message_FeedbackDocument, ArtifactsDocument, ChatDocument, Chat_AgentsDocument, Chat_ArtifactsDocument, Chat_InsightDocument, Chat_Insight_ReportMembersDocument, Chat_Insight_ThumbnailFileDocument, Chat_MessagesDocument, ChatMessageDocument, ChatMessage_ArtifactsDocument, ChatMessage_ChatDocument, ChatMessage_Chat_InsightDocument, ChatMessage_ContentsDocument, ChatMessage_FeedbackDocument, ChatMessagesDocument, ChatsDocument, DatabaseDocument, Database_EngineDocument, Database_Engine_CatalogDocument, Database_TablesDocument, DatabaseCatalogDocument, DatabaseCatalog_EngineDocument, DatabaseCatalogsDocument, DatabaseSchemaDocument, DatabasesDocument, DocumentDocument, Document_ContentsDocument, Document_FileDocument, Document_FormatDocument, Document_Format_CatalogDocument, Document_TablesDocument, DocumentCatalogDocument, DocumentCatalog_FormatDocument, DocumentCatalogsDocument, DocumentsDocument, ExportDocument, ExportWithInsightIdDocument, FeedItemDocument, FeedItem_ActionDocument, FeedItem_DataDocument, FeedItemsDocument, FileDocument, FileMetaDocument, FileUrlsDocument, FindFitTierDocument, FolderDocument, FoldersDocument, GetCapabilityDocument, GetDevAccessTokenDocument, GetLimitDocument, GetRemainingDocument, GetTokenUsageByModelDocument, GetTokenUsageHistoryDocument, GetTokenUsageStatusDocument, UsageWindowsStatusTypeFragmentDoc, GetTokenUsageStatus_WindowsDocument, GetTokenUsageStatus_Windows_DayDocument, GetTokenUsageStatus_Windows_FiveHourDocument, GetTokenUsageStatus_Windows_MonthDocument, GetTokenUsageStatus_Windows_WeekDocument, GetUsageDocument, InsightDocument, Insight_ChatDocument, Insight_ReportMembersDocument, Insight_ReportsDocument, Insight_ThumbnailFileDocument, InsightsDocument, IntegrationDocument, Integration_ProviderDocument, Integration_Provider_CatalogDocument, IntegrationCatalogDocument, IntegrationCatalog_ProviderDocument, IntegrationCatalogToolsDocument, IntegrationCatalogsDocument, IntegrationsDocument, InterpretationsDocument, LiveContextDocument, LiveContext_ItemsDocument, LiveContext_SourceDocument, LiveContext_Source_EvidencesDocument, LiveContextsDocument, NotificationDocument, NotificationsDocument, NotificationsByReferenceDocument, PrivacyStatsDocument, PulseAppSummaryDocument, PulseEventDocument, PulseEvent_IntegrationDocument, PulseEvent_Integration_ProviderDocument, PulseEventsDocument, PulseTriggerSettingsDocument, QueryDocument, QueryWithInsightIdDocument, QueryWithMessageIdDocument, ReportDocument, Report_InsightsDocument, Report_LayoutDocument, ReportsDocument, TableDocument, Table_DatabaseDocument, Table_Database_EngineDocument, Table_DocumentDocument, Table_Document_ContentsDocument, Table_Document_FileDocument, Table_Document_FormatDocument, Table_FromRelationsDocument, Table_ToRelationsDocument, TablesDocument, UserSkillFileDocument, UserSkillFilesDocument, UserSkillFolderDocument, UserSkillFoldersDocument, WorkspaceDeletionScheduleDocument, McpAuthUpdatesDocument, TokenUsageUpdatesDocument } from './chunk-MF2FZGXV.js';
5
+ import { ChatConnectionFragmentDoc, ChatFragmentDoc, FileFragmentDoc, ChatMessageFragmentDoc, AgentConnectionFragmentDoc, ArtifactConnectionFragmentDoc, DesktopDeviceFragmentDoc, InsightFragmentDoc, ChatMessageConnectionFragmentDoc, ProjectFragmentDoc, ContentBlockFragmentDoc, FeedbackFragmentDoc, DatabaseEngineFragmentDoc, TableConnectionFragmentDoc, DocumentContentFragmentDoc, DocumentFormatFragmentDoc, FeedSendMessageActionFragmentDoc, FeedArtifactDataFragmentDoc, ReportMemberFragmentDoc, ReportConnectionFragmentDoc, IntegrationProviderFragmentDoc, FeedItemGeneratedFragmentDoc, CandidateFragmentDoc, ProjectDesktopBindingFragmentDoc, IntegrationFragmentDoc, InsightConnectionFragmentDoc, DatabaseFragmentDoc, DocumentFragmentDoc, RelationFragmentDoc, AbortChatDocument, AddInsightToReportDocument, CancelOauthFlowDocument, CancelWorkspaceDeletionDocument, ConnectIntegrationDocument, ConsumePulseEventsDocument, ContinueImportedChatDocument, ContinueInterpretationDocument, CreateAgentDocument, CreateChatDocument, CreateDatabaseDocument, CreateDocumentDocument, CreateFeedbackDocument, CreateFolderDocument, CreateInsightDocument, CreateIntegrationDocument, CreateProjectDocument, CreateReportDocument, CreateTableDocument, CreateUserSkillFileDocument, CreateUserSkillFolderDocument, DeleteAgentDocument, DeleteArtifactDocument, DeleteChatDocument, DeleteDatabaseDocument, DeleteDocumentDocument, DeleteFolderDocument, DeleteInsightDocument, DeleteInsightsDocument, DeleteIntegrationDocument, DeleteProjectDocument, DeleteReportDocument, DeleteTableDocument, DeleteUserSkillFileDocument, DeleteUserSkillFolderDocument, DisconnectIntegrationDocument, DismissPulseEventDocument, ExecuteChatImportDocument, GenerateUploadUriDocument, PreviewChatImportDocument, ReanalyzeDocumentDocument, RefineAgentInstructionDocument, RefineSkillInstructionDocument, RefreshDatabaseSchemaDocument, RefreshInsightDocument, RegisterDesktopDeviceDocument, ReinterpretSourceDocument, ReinterpretSourcesOfuserDocument, RelocateInsightDocument, RemoveInsightFromReportDocument, ResetWorkspaceDocument, ResolvePulseEventDocument, ScheduleWorkspaceDeletionDocument, SendMessageDocument, SetDatabasePrimaryKeyDocument, SyncProjectDesktopBindingDocument, UpdateAgentDocument, UpdateArtifactNameDocument, UpdateChatDocument, UpdateDatabaseDocument, UpdateDocumentDocument, UpdateFolderDocument, UpdateInsightDocument, UpdateInsightInReportDocument, UpdateInsightThumbnailDocument, UpdateInterpDocument, UpdateLiveContextDocument, UpdateProjectDocument, UpdatePulseTriggerDocument, UpdateReportDocument, UpdateTableDocument, UpdateUserSkillFileDocument, UpdateUserSkillFolderDocument, AgentDocument, Agent_ChatsDocument, AgentsDocument, ArtifactDocument, Artifact_ChatDocument, Artifact_Chat_DesktopDeviceDocument, Artifact_Chat_InsightDocument, Artifact_Chat_ProjectDocument, Artifact_FileDocument, Artifact_MessageDocument, Artifact_Message_ChatDocument, Artifact_Message_ContentsDocument, Artifact_Message_FeedbackDocument, ArtifactsDocument, ChatDocument, Chat_AgentsDocument, Chat_ArtifactsDocument, Chat_DesktopDeviceDocument, Chat_DesktopDevice_DesktopBindingsDocument, Chat_InsightDocument, Chat_Insight_ReportMembersDocument, Chat_Insight_ThumbnailFileDocument, Chat_MessagesDocument, Chat_ProjectDocument, Chat_Project_DesktopBindingDocument, ChatMessageDocument, ChatMessage_ArtifactsDocument, ChatMessage_ChatDocument, ChatMessage_Chat_DesktopDeviceDocument, ChatMessage_Chat_InsightDocument, ChatMessage_Chat_ProjectDocument, ChatMessage_ContentsDocument, ChatMessage_FeedbackDocument, ChatMessagesDocument, ChatsDocument, DatabaseDocument, Database_EngineDocument, Database_Engine_CatalogDocument, Database_TablesDocument, DatabaseCatalogDocument, DatabaseCatalog_EngineDocument, DatabaseCatalogsDocument, DatabaseSchemaDocument, DatabasesDocument, DesktopDevicesDocument, DocumentDocument, Document_ContentsDocument, Document_FileDocument, Document_FormatDocument, Document_Format_CatalogDocument, Document_TablesDocument, DocumentCatalogDocument, DocumentCatalog_FormatDocument, DocumentCatalogsDocument, DocumentsDocument, ExportDocument, ExportWithInsightIdDocument, FeedItemDocument, FeedItem_ActionDocument, FeedItem_DataDocument, FeedItemsDocument, FileDocument, FileMetaDocument, FileUrlsDocument, FindFitTierDocument, FolderDocument, FoldersDocument, GetCapabilityDocument, GetDevAccessTokenDocument, GetLimitDocument, GetRemainingDocument, GetTokenUsageByModelDocument, GetTokenUsageHistoryDocument, GetTokenUsageStatusDocument, UsageWindowsStatusTypeFragmentDoc, GetTokenUsageStatus_WindowsDocument, GetTokenUsageStatus_Windows_DayDocument, GetTokenUsageStatus_Windows_FiveHourDocument, GetTokenUsageStatus_Windows_MonthDocument, GetTokenUsageStatus_Windows_WeekDocument, GetUsageDocument, InsightDocument, Insight_ChatDocument, Insight_Chat_DesktopDeviceDocument, Insight_Chat_ProjectDocument, Insight_ReportMembersDocument, Insight_ReportsDocument, Insight_ThumbnailFileDocument, InsightsDocument, IntegrationDocument, Integration_ProviderDocument, Integration_Provider_CatalogDocument, IntegrationCatalogDocument, IntegrationCatalog_ProviderDocument, IntegrationCatalogToolsDocument, IntegrationCatalogsDocument, IntegrationsDocument, InterpretationsDocument, LiveContextDocument, LiveContext_ItemsDocument, LiveContext_SourceDocument, LiveContext_Source_EvidencesDocument, LiveContextsDocument, LocalRuntimeOverviewDocument, LocalRuntimeDeviceModelFragmentDoc, LocalRuntimeOverview_DevicesDocument, LocalSandboxDeviceStatusDocument, NotificationDocument, NotificationsDocument, NotificationsByReferenceDocument, PrivacyStatsDocument, ProjectDocument, Project_ChatsDocument, Project_DesktopBindingDocument, Project_DesktopBinding_DeviceDocument, ProjectsDocument, PulseAppSummaryDocument, PulseEventDocument, PulseEvent_IntegrationDocument, PulseEvent_Integration_ProviderDocument, PulseEventsDocument, PulseTriggerSettingsDocument, QueryDocument, QueryWithInsightIdDocument, QueryWithMessageIdDocument, ReportDocument, Report_InsightsDocument, Report_LayoutDocument, ReportsDocument, TableDocument, Table_DatabaseDocument, Table_Database_EngineDocument, Table_DocumentDocument, Table_Document_ContentsDocument, Table_Document_FileDocument, Table_Document_FormatDocument, Table_FromRelationsDocument, Table_ToRelationsDocument, TablesDocument, UserSkillFileDocument, UserSkillFilesDocument, UserSkillFolderDocument, UserSkillFoldersDocument, WorkspaceDeletionScheduleDocument, McpAuthUpdatesDocument, TokenUsageUpdatesDocument } from './chunk-NE4IXNQK.js';
6
6
  import { __commonJS, __toESM } from './chunk-5WRI5ZAA.js';
7
7
 
8
8
  // ../../node_modules/.pnpm/dexie@4.3.0/node_modules/dexie/dist/dexie.js
@@ -7559,7 +7559,7 @@ function createWsTransport(options) {
7559
7559
  }
7560
7560
 
7561
7561
  // src/_generated_store.ts
7562
- var SCHEMA_HASH = "fb892580cf13df3b";
7562
+ var SCHEMA_HASH = "2d7bc544fb7a5f3f";
7563
7563
  var DB_ENTITY_SCHEMA = {
7564
7564
  actions: "id",
7565
7565
  agents: "id",
@@ -7575,6 +7575,8 @@ var DB_ENTITY_SCHEMA = {
7575
7575
  databaseEngines: "key",
7576
7576
  databases: "id",
7577
7577
  deepAnalysisUsages: "id",
7578
+ desktopDeviceModels: "id",
7579
+ desktopDevices: "id",
7578
7580
  documentCatalogs: "formatKey",
7579
7581
  documentContents: "id",
7580
7582
  documentFormats: "key",
@@ -7602,6 +7604,9 @@ var DB_ENTITY_SCHEMA = {
7602
7604
  interpretations: "id",
7603
7605
  invocations: "id",
7604
7606
  liveContexts: "id",
7607
+ localRuntimeDeviceModels: "id",
7608
+ localRuntimeOverviewModels: "id",
7609
+ localSandboxDeviceStatusModels: "deviceId",
7605
7610
  mcpClientInformations: "id",
7606
7611
  mcpCodeVerifiers: "id",
7607
7612
  mcpServers: "id",
@@ -7609,6 +7614,8 @@ var DB_ENTITY_SCHEMA = {
7609
7614
  mcpTools: "id",
7610
7615
  modelTokenUsages: "id",
7611
7616
  notifications: "id",
7617
+ projectDesktopBindings: "projectId",
7618
+ projects: "id",
7612
7619
  pulseAppSummaryModels: "integrationId",
7613
7620
  pulseEvents: "id",
7614
7621
  pulseTriggerSettingModels: "[integrationId+slug]",
@@ -7643,6 +7650,8 @@ var TYPENAME_TO_TABLE = {
7643
7650
  DatabaseCatalog: "databaseCatalogs",
7644
7651
  DatabaseEngine: "databaseEngines",
7645
7652
  DeepAnalysisUsage: "deepAnalysisUsages",
7653
+ DesktopDevice: "desktopDevices",
7654
+ DesktopDeviceModel: "desktopDeviceModels",
7646
7655
  Document: "documents",
7647
7656
  DocumentCatalog: "documentCatalogs",
7648
7657
  DocumentContent: "documentContents",
@@ -7670,6 +7679,9 @@ var TYPENAME_TO_TABLE = {
7670
7679
  Interpretation: "interpretations",
7671
7680
  Invocation: "invocations",
7672
7681
  LiveContext: "liveContexts",
7682
+ LocalRuntimeDeviceModel: "localRuntimeDeviceModels",
7683
+ LocalRuntimeOverviewModel: "localRuntimeOverviewModels",
7684
+ LocalSandboxDeviceStatusModel: "localSandboxDeviceStatusModels",
7673
7685
  McpClientInformation: "mcpClientInformations",
7674
7686
  McpCodeVerifier: "mcpCodeVerifiers",
7675
7687
  McpServer: "mcpServers",
@@ -7677,6 +7689,8 @@ var TYPENAME_TO_TABLE = {
7677
7689
  McpTool: "mcpTools",
7678
7690
  ModelTokenUsage: "modelTokenUsages",
7679
7691
  Notification: "notifications",
7692
+ Project: "projects",
7693
+ ProjectDesktopBinding: "projectDesktopBindings",
7680
7694
  PulseAppSummaryModel: "pulseAppSummaryModels",
7681
7695
  PulseEvent: "pulseEvents",
7682
7696
  PulseTriggerSettingModel: "pulseTriggerSettingModels",
@@ -7711,6 +7725,8 @@ var TABLE_TO_TYPENAME = {
7711
7725
  databaseEngines: "DatabaseEngine",
7712
7726
  databases: "Database",
7713
7727
  deepAnalysisUsages: "DeepAnalysisUsage",
7728
+ desktopDeviceModels: "DesktopDeviceModel",
7729
+ desktopDevices: "DesktopDevice",
7714
7730
  documentCatalogs: "DocumentCatalog",
7715
7731
  documentContents: "DocumentContent",
7716
7732
  documentFormats: "DocumentFormat",
@@ -7738,6 +7754,9 @@ var TABLE_TO_TYPENAME = {
7738
7754
  interpretations: "Interpretation",
7739
7755
  invocations: "Invocation",
7740
7756
  liveContexts: "LiveContext",
7757
+ localRuntimeDeviceModels: "LocalRuntimeDeviceModel",
7758
+ localRuntimeOverviewModels: "LocalRuntimeOverviewModel",
7759
+ localSandboxDeviceStatusModels: "LocalSandboxDeviceStatusModel",
7741
7760
  mcpClientInformations: "McpClientInformation",
7742
7761
  mcpCodeVerifiers: "McpCodeVerifier",
7743
7762
  mcpServers: "McpServer",
@@ -7745,6 +7764,8 @@ var TABLE_TO_TYPENAME = {
7745
7764
  mcpTools: "McpTool",
7746
7765
  modelTokenUsages: "ModelTokenUsage",
7747
7766
  notifications: "Notification",
7767
+ projectDesktopBindings: "ProjectDesktopBinding",
7768
+ projects: "Project",
7748
7769
  pulseAppSummaryModels: "PulseAppSummaryModel",
7749
7770
  pulseEvents: "PulseEvent",
7750
7771
  pulseTriggerSettingModels: "PulseTriggerSettingModel",
@@ -7771,6 +7792,8 @@ var PRIMARY_KEY_CONFIG = {
7771
7792
  documentFormats: "key",
7772
7793
  integrationCatalogs: "providerKey",
7773
7794
  integrationProviders: "key",
7795
+ localSandboxDeviceStatusModels: "deviceId",
7796
+ projectDesktopBindings: "projectId",
7774
7797
  pulseAppSummaryModels: "integrationId",
7775
7798
  pulseTriggerSettingModels: ["integrationId", "slug"],
7776
7799
  reportMembers: ["reportId", "insightId"]
@@ -7784,6 +7807,7 @@ var MUTATION_CACHE_RULES = {
7784
7807
  createFolder: { type: "create", entityType: "folders", connectionFields: ["folders"] },
7785
7808
  createInsight: { type: "create", entityType: "insights", connectionFields: ["insights"] },
7786
7809
  createIntegration: { type: "create", entityType: "integrations", connectionFields: ["integrations"] },
7810
+ createProject: { type: "create", entityType: "projects", connectionFields: ["projects"] },
7787
7811
  createReport: { type: "create", entityType: "reports", connectionFields: ["reports"] },
7788
7812
  createTable: { type: "create", entityType: "tables", connectionFields: ["tables"] },
7789
7813
  createUserSkillFile: { type: "create", entityType: "userSkillFiles", connectionFields: ["userSkillFiles"] },
@@ -7797,6 +7821,7 @@ var MUTATION_CACHE_RULES = {
7797
7821
  deleteInsight: { type: "delete", entityType: "insights", connectionFields: ["insights"], cascadeDelete: [{ entityType: "reportMembers" }] },
7798
7822
  deleteInsights: { type: "delete", entityType: "insights", connectionFields: ["insights"], cascadeDelete: [{ entityType: "reportMembers" }] },
7799
7823
  deleteIntegration: { type: "delete", entityType: "integrations", connectionFields: ["integrations"] },
7824
+ deleteProject: { type: "delete", entityType: "projects", connectionFields: ["projects"] },
7800
7825
  deleteReport: { type: "delete", entityType: "reports", connectionFields: ["reports"], cascadeDelete: [{ entityType: "reportMembers" }] },
7801
7826
  deleteTable: { type: "delete", entityType: "tables", connectionFields: ["tables"], cascadeDelete: [{ entityType: "relations", relationFields: ["fromTableId", "toTableId"] }, { entityType: "cubeModels", relationFields: ["id"] }] },
7802
7827
  deleteUserSkillFile: { type: "delete", entityType: "userSkillFiles", connectionFields: ["userSkillFiles"] },
@@ -7808,6 +7833,7 @@ var MUTATION_CACHE_RULES = {
7808
7833
  updateFolder: { type: "update", entityType: "folders" },
7809
7834
  updateInsight: { type: "update", entityType: "insights" },
7810
7835
  updateLiveContext: { type: "update", entityType: "liveContexts" },
7836
+ updateProject: { type: "update", entityType: "projects" },
7811
7837
  updateReport: { type: "update", entityType: "reports" },
7812
7838
  updateTable: { type: "update", entityType: "tables" },
7813
7839
  updateUserSkillFile: { type: "update", entityType: "userSkillFiles" },
@@ -10339,7 +10365,7 @@ function createLazySyncEngine(httpTransport, sseUrl, syncPolicyUrl, getToken, ge
10339
10365
  var DEFAULT_UPLOAD_CONTENT_TYPE = "application/octet-stream";
10340
10366
  var AZURE_BLOCK_BLOB_TYPE = "BlockBlob";
10341
10367
  async function uploadFile(request, getToken, file, name, options) {
10342
- const { GenerateUploadUriDocument: GenerateUploadUriDocument2 } = await import('./_generated_documents-Q6OTMWZ6.js');
10368
+ const { GenerateUploadUriDocument: GenerateUploadUriDocument2 } = await import('./_generated_documents-XGXYPVHZ.js');
10343
10369
  const key = `upload_${Date.now()}`;
10344
10370
  const response = await request(
10345
10371
  GenerateUploadUriDocument2,
@@ -11284,8 +11310,11 @@ var Chat = class extends DvinaModel {
11284
11310
  closedAt;
11285
11311
  originMeta;
11286
11312
  insightId;
11313
+ projectId;
11314
+ deviceId;
11287
11315
  createdAt;
11288
11316
  updatedAt;
11317
+ sourceProvider;
11289
11318
  constructor(request, data, syncEngine, baseUrl) {
11290
11319
  super(request, syncEngine, baseUrl);
11291
11320
  this.id = data.id;
@@ -11295,8 +11324,11 @@ var Chat = class extends DvinaModel {
11295
11324
  this.closedAt = data.closedAt ? new Date(data.closedAt) : void 0;
11296
11325
  this.originMeta = data.originMeta ?? void 0;
11297
11326
  this.insightId = data.insightId ?? void 0;
11327
+ this.projectId = data.projectId ?? void 0;
11328
+ this.deviceId = data.deviceId ?? void 0;
11298
11329
  this.createdAt = new Date(data.createdAt);
11299
11330
  this.updatedAt = new Date(data.updatedAt);
11331
+ this.sourceProvider = data.sourceProvider ?? void 0;
11300
11332
  }
11301
11333
  /** Query the agents relation for this Chat. Call .fetch() or .watch() to execute. */
11302
11334
  agents(variables) {
@@ -11306,6 +11338,10 @@ var Chat = class extends DvinaModel {
11306
11338
  artifacts(variables) {
11307
11339
  return new Chat_ArtifactsQuery(this._request, this._syncEngine, { ...variables, id: this.id }, this._baseUrl);
11308
11340
  }
11341
+ /** Query the desktopDevice relation for this Chat. Call .fetch() or .watch() to execute. */
11342
+ desktopDevice(variables) {
11343
+ return new Chat_DesktopDeviceQuery(this._request, this._syncEngine, { ...variables, id: this.id }, this._baseUrl);
11344
+ }
11309
11345
  /** Query the insight relation for this Chat. Call .fetch() or .watch() to execute. */
11310
11346
  insight(variables) {
11311
11347
  return new Chat_InsightQuery(this._request, this._syncEngine, { ...variables, id: this.id }, this._baseUrl);
@@ -11314,6 +11350,10 @@ var Chat = class extends DvinaModel {
11314
11350
  messages(variables) {
11315
11351
  return new Chat_MessagesQuery(this._request, this._syncEngine, { ...variables, id: this.id }, this._baseUrl);
11316
11352
  }
11353
+ /** Query the project relation for this Chat. Call .fetch() or .watch() to execute. */
11354
+ project(variables) {
11355
+ return new Chat_ProjectQuery(this._request, this._syncEngine, { ...variables, id: this.id }, this._baseUrl);
11356
+ }
11317
11357
  };
11318
11358
  var ChatImportExecuteOutput = class extends DvinaModel {
11319
11359
  archiveHash;
@@ -11557,6 +11597,60 @@ var DeepAnalysisUsage = class extends DvinaModel {
11557
11597
  this.createdAt = new Date(data.createdAt);
11558
11598
  }
11559
11599
  };
11600
+ var DesktopDevice = class extends DvinaModel {
11601
+ id;
11602
+ deviceLabel;
11603
+ platform;
11604
+ deviceType;
11605
+ manufacturer;
11606
+ modelName;
11607
+ modelYear;
11608
+ macAddress;
11609
+ appVersion;
11610
+ lastSeenAt;
11611
+ createdAt;
11612
+ updatedAt;
11613
+ constructor(request, data, syncEngine, baseUrl) {
11614
+ super(request, syncEngine, baseUrl);
11615
+ this.id = data.id;
11616
+ this.deviceLabel = data.deviceLabel;
11617
+ this.platform = data.platform ?? void 0;
11618
+ this.deviceType = data.deviceType ?? void 0;
11619
+ this.manufacturer = data.manufacturer ?? void 0;
11620
+ this.modelName = data.modelName ?? void 0;
11621
+ this.modelYear = data.modelYear ?? void 0;
11622
+ this.macAddress = data.macAddress ?? void 0;
11623
+ this.appVersion = data.appVersion ?? void 0;
11624
+ this.lastSeenAt = data.lastSeenAt ? new Date(data.lastSeenAt) : void 0;
11625
+ this.createdAt = new Date(data.createdAt);
11626
+ this.updatedAt = new Date(data.updatedAt);
11627
+ }
11628
+ };
11629
+ var DesktopDeviceModel = class extends DvinaModel {
11630
+ deviceId;
11631
+ deviceLabel;
11632
+ platform;
11633
+ deviceType;
11634
+ manufacturer;
11635
+ modelName;
11636
+ modelYear;
11637
+ appVersion;
11638
+ lastSeenAt;
11639
+ state;
11640
+ constructor(request, data, syncEngine, baseUrl) {
11641
+ super(request, syncEngine, baseUrl);
11642
+ this.deviceId = data.deviceId;
11643
+ this.deviceLabel = data.deviceLabel;
11644
+ this.platform = data.platform ?? void 0;
11645
+ this.deviceType = data.deviceType ?? void 0;
11646
+ this.manufacturer = data.manufacturer ?? void 0;
11647
+ this.modelName = data.modelName ?? void 0;
11648
+ this.modelYear = data.modelYear ?? void 0;
11649
+ this.appVersion = data.appVersion ?? void 0;
11650
+ this.lastSeenAt = data.lastSeenAt ?? void 0;
11651
+ this.state = data.state;
11652
+ }
11653
+ };
11560
11654
  var DevAccessTokenOutput = class extends DvinaModel {
11561
11655
  access_token;
11562
11656
  constructor(request, data, syncEngine, baseUrl) {
@@ -12226,6 +12320,59 @@ var LiveContext = class extends DvinaModel {
12226
12320
  return new LiveContext_SourceQuery(this._request, this._syncEngine, { ...variables, id: this.id }, this._baseUrl);
12227
12321
  }
12228
12322
  };
12323
+ var LocalRuntimeDeviceModel = class extends DvinaModel {
12324
+ deviceId;
12325
+ label;
12326
+ platform;
12327
+ deviceType;
12328
+ manufacturer;
12329
+ modelName;
12330
+ modelYear;
12331
+ lastSeenAt;
12332
+ state;
12333
+ isPreferred;
12334
+ isResolved;
12335
+ constructor(request, data, syncEngine, baseUrl) {
12336
+ super(request, syncEngine, baseUrl);
12337
+ this.deviceId = data.deviceId;
12338
+ this.label = data.label;
12339
+ this.platform = data.platform ?? void 0;
12340
+ this.deviceType = data.deviceType ?? void 0;
12341
+ this.manufacturer = data.manufacturer ?? void 0;
12342
+ this.modelName = data.modelName ?? void 0;
12343
+ this.modelYear = data.modelYear ?? void 0;
12344
+ this.lastSeenAt = data.lastSeenAt ?? void 0;
12345
+ this.state = data.state;
12346
+ this.isPreferred = data.isPreferred;
12347
+ this.isResolved = data.isResolved;
12348
+ }
12349
+ };
12350
+ var LocalRuntimeOverviewModel = class extends DvinaModel {
12351
+ state;
12352
+ resolvedDeviceId;
12353
+ resolvedDeviceLabel;
12354
+ connectedDeviceCount;
12355
+ devices;
12356
+ constructor(request, data, syncEngine, baseUrl) {
12357
+ super(request, syncEngine, baseUrl);
12358
+ this.state = data.state;
12359
+ this.resolvedDeviceId = data.resolvedDeviceId ?? void 0;
12360
+ this.resolvedDeviceLabel = data.resolvedDeviceLabel ?? void 0;
12361
+ this.connectedDeviceCount = data.connectedDeviceCount;
12362
+ this.devices = Array.isArray(data.devices) ? data.devices.filter(Boolean).map((item) => new LocalRuntimeDeviceModel(request, item, syncEngine, baseUrl)) : [];
12363
+ }
12364
+ };
12365
+ var LocalSandboxDeviceStatusModel = class extends DvinaModel {
12366
+ state;
12367
+ deviceId;
12368
+ lastSeenAt;
12369
+ constructor(request, data, syncEngine, baseUrl) {
12370
+ super(request, syncEngine, baseUrl);
12371
+ this.state = data.state;
12372
+ this.deviceId = data.deviceId;
12373
+ this.lastSeenAt = data.lastSeenAt ?? void 0;
12374
+ }
12375
+ };
12229
12376
  var McpAuthUpdateModel = class extends DvinaModel {
12230
12377
  provider;
12231
12378
  phase;
@@ -12410,6 +12557,52 @@ var ProgressSummaryEventOutput = class extends DvinaModel {
12410
12557
  this.targetToolCallId = data.targetToolCallId ?? void 0;
12411
12558
  }
12412
12559
  };
12560
+ var Project = class extends DvinaModel {
12561
+ id;
12562
+ name;
12563
+ source;
12564
+ iconDataUrl;
12565
+ createdAt;
12566
+ updatedAt;
12567
+ constructor(request, data, syncEngine, baseUrl) {
12568
+ super(request, syncEngine, baseUrl);
12569
+ this.id = data.id;
12570
+ this.name = data.name;
12571
+ this.source = data.source;
12572
+ this.iconDataUrl = data.iconDataUrl ?? void 0;
12573
+ this.createdAt = new Date(data.createdAt);
12574
+ this.updatedAt = new Date(data.updatedAt);
12575
+ }
12576
+ /** Query the chats relation for this Project. Call .fetch() or .watch() to execute. */
12577
+ chats(variables) {
12578
+ return new Project_ChatsQuery(this._request, this._syncEngine, { ...variables, id: this.id }, this._baseUrl);
12579
+ }
12580
+ /** Query the desktopBinding relation for this Project. Call .fetch() or .watch() to execute. */
12581
+ desktopBinding(variables) {
12582
+ return new Project_DesktopBindingQuery(this._request, this._syncEngine, { ...variables, id: this.id }, this._baseUrl);
12583
+ }
12584
+ };
12585
+ var ProjectDesktopBinding = class extends DvinaModel {
12586
+ projectId;
12587
+ deviceId;
12588
+ kind;
12589
+ rootPath;
12590
+ createdAt;
12591
+ updatedAt;
12592
+ constructor(request, data, syncEngine, baseUrl) {
12593
+ super(request, syncEngine, baseUrl);
12594
+ this.projectId = data.projectId;
12595
+ this.deviceId = data.deviceId;
12596
+ this.kind = data.kind;
12597
+ this.rootPath = data.rootPath;
12598
+ this.createdAt = new Date(data.createdAt);
12599
+ this.updatedAt = new Date(data.updatedAt);
12600
+ }
12601
+ /** Lazy-fetch the project relation. Call .fetch() or .watch() to execute. */
12602
+ project() {
12603
+ return new ProjectQuery(this._request, this._syncEngine, { id: this.projectId }, this._baseUrl);
12604
+ }
12605
+ };
12413
12606
  var PulseAppSummaryModel = class extends DvinaModel {
12414
12607
  activeTriggerCount;
12415
12608
  integrationId;
@@ -13222,6 +13415,17 @@ var NotificationConnection = class extends Connection {
13222
13415
  );
13223
13416
  }
13224
13417
  };
13418
+ var ProjectConnection = class extends Connection {
13419
+ constructor(request, fetch2, data, syncEngine, baseUrl) {
13420
+ super(
13421
+ request,
13422
+ fetch2,
13423
+ data.nodes?.map((node) => new Project(request, node, syncEngine, baseUrl)) ?? [],
13424
+ new PageInfo(data.pageInfo),
13425
+ data.totalCount ?? void 0
13426
+ );
13427
+ }
13428
+ };
13225
13429
  var PulseEventConnection = class extends Connection {
13226
13430
  constructor(request, fetch2, data, syncEngine, baseUrl) {
13227
13431
  super(
@@ -13418,6 +13622,25 @@ var ChatSubBuilder = class {
13418
13622
  });
13419
13623
  return this;
13420
13624
  }
13625
+ /** Include desktopDevice in the parent query. */
13626
+ desktopDevice(variables) {
13627
+ const info = extractIncludeInfo(Chat_DesktopDeviceDocument, "desktopDevice", ["id"]);
13628
+ this._includes.push({
13629
+ fieldName: "desktopDevice",
13630
+ fragmentDoc: DesktopDeviceFragmentDoc,
13631
+ variables,
13632
+ isConnection: false,
13633
+ isList: false,
13634
+ variableDefinitions: info.variableDefinitions,
13635
+ fieldArguments: info.fieldArguments,
13636
+ syncMetadata: {
13637
+ entityType: "desktopDevices",
13638
+ requiredFields: ["id", "deviceLabel", "createdAt", "updatedAt"]
13639
+ },
13640
+ modelFactory: (req, data, se, bu) => new DesktopDevice(req, data, se, bu)
13641
+ });
13642
+ return this;
13643
+ }
13421
13644
  /** Include insight in the parent query. */
13422
13645
  insight(variables, builder) {
13423
13646
  const info = extractIncludeInfo(Chat_InsightDocument, "insight", ["id"]);
@@ -13471,6 +13694,32 @@ var ChatSubBuilder = class {
13471
13694
  });
13472
13695
  return this;
13473
13696
  }
13697
+ /** Include project in the parent query. */
13698
+ project(variables, builder) {
13699
+ const info = extractIncludeInfo(Chat_ProjectDocument, "project", ["id"]);
13700
+ let children;
13701
+ if (builder) {
13702
+ const sub = new ProjectSubBuilder();
13703
+ builder(sub);
13704
+ children = sub._includes;
13705
+ }
13706
+ this._includes.push({
13707
+ fieldName: "project",
13708
+ fragmentDoc: ProjectFragmentDoc,
13709
+ variables,
13710
+ isConnection: false,
13711
+ isList: false,
13712
+ variableDefinitions: info.variableDefinitions,
13713
+ fieldArguments: info.fieldArguments,
13714
+ syncMetadata: {
13715
+ entityType: "projects",
13716
+ requiredFields: ["id", "name", "source", "createdAt", "updatedAt"]
13717
+ },
13718
+ children,
13719
+ modelFactory: (req, data, se, bu) => new Project(req, data, se, bu)
13720
+ });
13721
+ return this;
13722
+ }
13474
13723
  };
13475
13724
  var ChatMessageSubBuilder = class {
13476
13725
  /** @internal */
@@ -13976,6 +14225,56 @@ var LiveContextSubBuilder = class {
13976
14225
  return this;
13977
14226
  }
13978
14227
  };
14228
+ var ProjectSubBuilder = class {
14229
+ /** @internal */
14230
+ _includes = [];
14231
+ /** Include chats in the parent query. */
14232
+ chats(variables, builder) {
14233
+ const info = extractIncludeInfo(Project_ChatsDocument, "chats", ["id"]);
14234
+ let children;
14235
+ if (builder) {
14236
+ const sub = new ChatSubBuilder();
14237
+ builder(sub);
14238
+ children = sub._includes;
14239
+ }
14240
+ this._includes.push({
14241
+ fieldName: "chats",
14242
+ fragmentDoc: ChatConnectionFragmentDoc,
14243
+ variables,
14244
+ isConnection: true,
14245
+ isList: false,
14246
+ variableDefinitions: info.variableDefinitions,
14247
+ fieldArguments: info.fieldArguments,
14248
+ syncMetadata: {
14249
+ entityType: "chats",
14250
+ requiredFields: ["id", "name", "piiSanitizationEnabled", "createdAt", "updatedAt"]
14251
+ },
14252
+ children,
14253
+ modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu),
14254
+ connectionFactory: (req, fetch2, data, se, bu) => new ChatConnection(req, fetch2, data, se, bu)
14255
+ });
14256
+ return this;
14257
+ }
14258
+ /** Include desktopBinding in the parent query. */
14259
+ desktopBinding(variables) {
14260
+ const info = extractIncludeInfo(Project_DesktopBindingDocument, "desktopBinding", ["id"]);
14261
+ this._includes.push({
14262
+ fieldName: "desktopBinding",
14263
+ fragmentDoc: ProjectDesktopBindingFragmentDoc,
14264
+ variables,
14265
+ isConnection: false,
14266
+ isList: false,
14267
+ variableDefinitions: info.variableDefinitions,
14268
+ fieldArguments: info.fieldArguments,
14269
+ syncMetadata: {
14270
+ entityType: "projectDesktopBindings",
14271
+ requiredFields: ["projectId", "deviceId", "kind", "rootPath", "createdAt", "updatedAt"]
14272
+ },
14273
+ modelFactory: (req, data, se, bu) => new ProjectDesktopBinding(req, data, se, bu)
14274
+ });
14275
+ return this;
14276
+ }
14277
+ };
13979
14278
  var PulseEventSubBuilder = class {
13980
14279
  /** @internal */
13981
14280
  _includes = [];
@@ -14256,6 +14555,13 @@ var CreateIntegrationMutation = class extends Request {
14256
14555
  return new CreateIntegrationOutput(this._request, data, this._syncEngine, this._baseUrl);
14257
14556
  }
14258
14557
  };
14558
+ var CreateProjectMutation = class extends Request {
14559
+ async fetch(variables, options) {
14560
+ const response = await this._syncEngine.mutate(CreateProjectDocument, variables, MUTATION_CACHE_RULES["createProject"]);
14561
+ const data = response.createProject;
14562
+ return new Project(this._request, data, this._syncEngine, this._baseUrl);
14563
+ }
14564
+ };
14259
14565
  var CreateReportMutation = class extends Request {
14260
14566
  async fetch(variables, options) {
14261
14567
  const response = await this._syncEngine.mutate(CreateReportDocument, variables, MUTATION_CACHE_RULES["createReport"]);
@@ -14346,6 +14652,13 @@ var DeleteIntegrationMutation = class extends Request {
14346
14652
  return response.deleteIntegration;
14347
14653
  }
14348
14654
  };
14655
+ var DeleteProjectMutation = class extends Request {
14656
+ async fetch(variables, options) {
14657
+ const response = await this._syncEngine.mutate(DeleteProjectDocument, variables, MUTATION_CACHE_RULES["deleteProject"]);
14658
+ const data = response.deleteProject;
14659
+ return new Project(this._request, data, this._syncEngine, this._baseUrl);
14660
+ }
14661
+ };
14349
14662
  var DeleteReportMutation = class extends Request {
14350
14663
  async fetch(variables, options) {
14351
14664
  const response = await this._syncEngine.mutate(DeleteReportDocument, variables, MUTATION_CACHE_RULES["deleteReport"]);
@@ -14440,6 +14753,13 @@ var RefreshInsightMutation = class extends Request {
14440
14753
  return new Insight(this._request, data, this._syncEngine, this._baseUrl);
14441
14754
  }
14442
14755
  };
14756
+ var RegisterDesktopDeviceMutation = class extends Request {
14757
+ async fetch(variables, options) {
14758
+ const response = await this._syncEngine.mutate(RegisterDesktopDeviceDocument, variables, MUTATION_CACHE_RULES["registerDesktopDevice"]);
14759
+ const data = response.registerDesktopDevice;
14760
+ return new DesktopDeviceModel(this._request, data, this._syncEngine, this._baseUrl);
14761
+ }
14762
+ };
14443
14763
  var ReinterpretSourceMutation = class extends Request {
14444
14764
  async fetch(variables) {
14445
14765
  const response = await this._syncEngine.mutate(ReinterpretSourceDocument, variables, MUTATION_CACHE_RULES["reinterpretSource"]);
@@ -14499,6 +14819,13 @@ var SetDatabasePrimaryKeyMutation = class extends Request {
14499
14819
  return response.setDatabasePrimaryKey;
14500
14820
  }
14501
14821
  };
14822
+ var SyncProjectDesktopBindingMutation = class extends Request {
14823
+ async fetch(variables, options) {
14824
+ const response = await this._syncEngine.mutate(SyncProjectDesktopBindingDocument, variables, MUTATION_CACHE_RULES["syncProjectDesktopBinding"]);
14825
+ const data = response.syncProjectDesktopBinding;
14826
+ return new Project(this._request, data, this._syncEngine, this._baseUrl);
14827
+ }
14828
+ };
14502
14829
  var UpdateAgentMutation = class extends Request {
14503
14830
  async fetch(variables, options) {
14504
14831
  const response = await this._syncEngine.mutate(UpdateAgentDocument, variables, MUTATION_CACHE_RULES["updateAgent"]);
@@ -14575,6 +14902,13 @@ var UpdateLiveContextMutation = class extends Request {
14575
14902
  return new LiveContext(this._request, data, this._syncEngine, this._baseUrl);
14576
14903
  }
14577
14904
  };
14905
+ var UpdateProjectMutation = class extends Request {
14906
+ async fetch(variables, options) {
14907
+ const response = await this._syncEngine.mutate(UpdateProjectDocument, variables, MUTATION_CACHE_RULES["updateProject"]);
14908
+ const data = response.updateProject;
14909
+ return new Project(this._request, data, this._syncEngine, this._baseUrl);
14910
+ }
14911
+ };
14578
14912
  var UpdatePulseTriggerMutation = class extends Request {
14579
14913
  async fetch(variables, options) {
14580
14914
  const response = await this._syncEngine.mutate(UpdatePulseTriggerDocument, variables, MUTATION_CACHE_RULES["updatePulseTrigger"]);
@@ -14970,6 +15304,36 @@ var Artifact_ChatQuery = class extends Request {
14970
15304
  });
14971
15305
  }
14972
15306
  };
15307
+ var Artifact_Chat_DesktopDeviceQuery = class extends Request {
15308
+ _variables;
15309
+ constructor(request, syncEngine, variables = {}, baseUrl) {
15310
+ super(request, syncEngine, void 0, baseUrl);
15311
+ this._variables = variables;
15312
+ }
15313
+ async fetch(options) {
15314
+ const variables = this._variables;
15315
+ const response = await this._syncEngine.query(Artifact_Chat_DesktopDeviceDocument, variables, "artifact");
15316
+ const data = response.artifact?.chat?.desktopDevice;
15317
+ return data ? new DesktopDevice(this._request, data, this._syncEngine, this._baseUrl) : void 0;
15318
+ }
15319
+ watch(options) {
15320
+ const variables = this._variables;
15321
+ const raw = this._syncEngine.watch(
15322
+ Artifact_Chat_DesktopDeviceDocument,
15323
+ variables,
15324
+ "artifact",
15325
+ async (db) => {
15326
+ const vars = variables;
15327
+ const entity = vars?.id ? await db.table("desktopDevices").get(vars.id) : void 0;
15328
+ return { artifact: { chat: { desktopDevice: entity ?? null } } };
15329
+ }
15330
+ );
15331
+ return new MappedDvinaQueryRef(raw, (response) => {
15332
+ const data = response.artifact?.chat?.desktopDevice;
15333
+ return data ? new DesktopDevice(this._request, data, this._syncEngine, this._baseUrl) : void 0;
15334
+ });
15335
+ }
15336
+ };
14973
15337
  var Artifact_Chat_InsightQuery = class extends Request {
14974
15338
  _variables;
14975
15339
  constructor(request, syncEngine, variables = {}, baseUrl) {
@@ -15000,6 +15364,36 @@ var Artifact_Chat_InsightQuery = class extends Request {
15000
15364
  });
15001
15365
  }
15002
15366
  };
15367
+ var Artifact_Chat_ProjectQuery = class extends Request {
15368
+ _variables;
15369
+ constructor(request, syncEngine, variables = {}, baseUrl) {
15370
+ super(request, syncEngine, void 0, baseUrl);
15371
+ this._variables = variables;
15372
+ }
15373
+ async fetch(options) {
15374
+ const variables = this._variables;
15375
+ const response = await this._syncEngine.query(Artifact_Chat_ProjectDocument, variables, "artifact");
15376
+ const data = response.artifact?.chat?.project;
15377
+ return data ? new Project(this._request, data, this._syncEngine, this._baseUrl) : void 0;
15378
+ }
15379
+ watch(options) {
15380
+ const variables = this._variables;
15381
+ const raw = this._syncEngine.watch(
15382
+ Artifact_Chat_ProjectDocument,
15383
+ variables,
15384
+ "artifact",
15385
+ async (db) => {
15386
+ const vars = variables;
15387
+ const entity = vars?.id ? await db.table("projects").get(vars.id) : void 0;
15388
+ return { artifact: { chat: { project: entity ?? null } } };
15389
+ }
15390
+ );
15391
+ return new MappedDvinaQueryRef(raw, (response) => {
15392
+ const data = response.artifact?.chat?.project;
15393
+ return data ? new Project(this._request, data, this._syncEngine, this._baseUrl) : void 0;
15394
+ });
15395
+ }
15396
+ };
15003
15397
  var Artifact_FileQuery = class extends Request {
15004
15398
  _variables;
15005
15399
  constructor(request, syncEngine, variables = {}, baseUrl) {
@@ -15374,6 +15768,25 @@ var ChatQuery = class extends Request {
15374
15768
  });
15375
15769
  return this;
15376
15770
  }
15771
+ /** Include desktopDevice in this query (Smart Fetch — single HTTP request). */
15772
+ desktopDevice(variables) {
15773
+ const info = extractIncludeInfo(Chat_DesktopDeviceDocument, "desktopDevice", ["id"]);
15774
+ this._includes.push({
15775
+ fieldName: "desktopDevice",
15776
+ fragmentDoc: DesktopDeviceFragmentDoc,
15777
+ variables,
15778
+ isConnection: false,
15779
+ isList: false,
15780
+ variableDefinitions: info.variableDefinitions,
15781
+ fieldArguments: info.fieldArguments,
15782
+ syncMetadata: {
15783
+ entityType: "desktopDevices",
15784
+ requiredFields: ["id", "deviceLabel", "createdAt", "updatedAt"]
15785
+ },
15786
+ modelFactory: (req, data, se, bu) => new DesktopDevice(req, data, se, bu)
15787
+ });
15788
+ return this;
15789
+ }
15377
15790
  /** Include insight in this query (Smart Fetch — single HTTP request). */
15378
15791
  insight(variables, builder) {
15379
15792
  const info = extractIncludeInfo(Chat_InsightDocument, "insight", ["id"]);
@@ -15427,6 +15840,32 @@ var ChatQuery = class extends Request {
15427
15840
  });
15428
15841
  return this;
15429
15842
  }
15843
+ /** Include project in this query (Smart Fetch — single HTTP request). */
15844
+ project(variables, builder) {
15845
+ const info = extractIncludeInfo(Chat_ProjectDocument, "project", ["id"]);
15846
+ let children;
15847
+ if (builder) {
15848
+ const sub = new ProjectSubBuilder();
15849
+ builder(sub);
15850
+ children = sub._includes;
15851
+ }
15852
+ this._includes.push({
15853
+ fieldName: "project",
15854
+ fragmentDoc: ProjectFragmentDoc,
15855
+ variables,
15856
+ isConnection: false,
15857
+ isList: false,
15858
+ variableDefinitions: info.variableDefinitions,
15859
+ fieldArguments: info.fieldArguments,
15860
+ syncMetadata: {
15861
+ entityType: "projects",
15862
+ requiredFields: ["id", "name", "source", "createdAt", "updatedAt"]
15863
+ },
15864
+ children,
15865
+ modelFactory: (req, data, se, bu) => new Project(req, data, se, bu)
15866
+ });
15867
+ return this;
15868
+ }
15430
15869
  };
15431
15870
  var Chat_AgentsQuery = class _Chat_AgentsQuery extends Request {
15432
15871
  _variables;
@@ -15504,6 +15943,49 @@ var Chat_ArtifactsQuery = class _Chat_ArtifactsQuery extends Request {
15504
15943
  });
15505
15944
  }
15506
15945
  };
15946
+ var Chat_DesktopDeviceQuery = class extends Request {
15947
+ _variables;
15948
+ constructor(request, syncEngine, variables = {}, baseUrl) {
15949
+ super(request, syncEngine, void 0, baseUrl);
15950
+ this._variables = variables;
15951
+ }
15952
+ async fetch(options) {
15953
+ const variables = this._variables;
15954
+ const response = await this._syncEngine.query(Chat_DesktopDeviceDocument, variables, "chat");
15955
+ const data = response.chat?.desktopDevice;
15956
+ return data ? new DesktopDevice(this._request, data, this._syncEngine, this._baseUrl) : void 0;
15957
+ }
15958
+ watch(options) {
15959
+ const variables = this._variables;
15960
+ const raw = this._syncEngine.watch(
15961
+ Chat_DesktopDeviceDocument,
15962
+ variables,
15963
+ "chat",
15964
+ async (db) => {
15965
+ const vars = variables;
15966
+ const entity = vars?.id ? await db.table("desktopDevices").get(vars.id) : void 0;
15967
+ return { chat: { desktopDevice: entity ?? null } };
15968
+ }
15969
+ );
15970
+ return new MappedDvinaQueryRef(raw, (response) => {
15971
+ const data = response.chat?.desktopDevice;
15972
+ return data ? new DesktopDevice(this._request, data, this._syncEngine, this._baseUrl) : void 0;
15973
+ });
15974
+ }
15975
+ };
15976
+ var Chat_DesktopDevice_DesktopBindingsQuery = class extends Request {
15977
+ _variables;
15978
+ constructor(request, syncEngine, variables = {}, baseUrl) {
15979
+ super(request, syncEngine, void 0, baseUrl);
15980
+ this._variables = variables;
15981
+ }
15982
+ async fetch(options) {
15983
+ const response = await this._syncEngine.query(Chat_DesktopDevice_DesktopBindingsDocument, this._variables, "chat");
15984
+ const data = response.chat?.desktopDevice?.desktopBindings;
15985
+ if (!Array.isArray(data)) return [];
15986
+ return data.map((item) => new ProjectDesktopBinding(this._request, item, this._syncEngine, this._baseUrl));
15987
+ }
15988
+ };
15507
15989
  var Chat_InsightQuery = class extends Request {
15508
15990
  _variables;
15509
15991
  constructor(request, syncEngine, variables = {}, baseUrl) {
@@ -15615,20 +16097,80 @@ var Chat_MessagesQuery = class _Chat_MessagesQuery extends Request {
15615
16097
  });
15616
16098
  }
15617
16099
  };
15618
- var ChatMessageQuery = class extends Request {
16100
+ var Chat_ProjectQuery = class extends Request {
15619
16101
  _variables;
15620
- _includes = [];
15621
16102
  constructor(request, syncEngine, variables = {}, baseUrl) {
15622
16103
  super(request, syncEngine, void 0, baseUrl);
15623
16104
  this._variables = variables;
15624
16105
  }
15625
16106
  async fetch(options) {
15626
16107
  const variables = this._variables;
15627
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(ChatMessageDocument, "chatMessage", this._includes, variables);
15628
- const response = await this._syncEngine.query(queryDoc, mergedVars, "chatMessage");
15629
- const data = response.chatMessage;
15630
- const instance = new ChatMessage(this._request, data, this._syncEngine, this._baseUrl);
15631
- if (this._includes.length > 0) {
16108
+ const response = await this._syncEngine.query(Chat_ProjectDocument, variables, "chat");
16109
+ const data = response.chat?.project;
16110
+ return data ? new Project(this._request, data, this._syncEngine, this._baseUrl) : void 0;
16111
+ }
16112
+ watch(options) {
16113
+ const variables = this._variables;
16114
+ const raw = this._syncEngine.watch(
16115
+ Chat_ProjectDocument,
16116
+ variables,
16117
+ "chat",
16118
+ async (db) => {
16119
+ const vars = variables;
16120
+ const entity = vars?.id ? await db.table("projects").get(vars.id) : void 0;
16121
+ return { chat: { project: entity ?? null } };
16122
+ }
16123
+ );
16124
+ return new MappedDvinaQueryRef(raw, (response) => {
16125
+ const data = response.chat?.project;
16126
+ return data ? new Project(this._request, data, this._syncEngine, this._baseUrl) : void 0;
16127
+ });
16128
+ }
16129
+ };
16130
+ var Chat_Project_DesktopBindingQuery = class extends Request {
16131
+ _variables;
16132
+ constructor(request, syncEngine, variables = {}, baseUrl) {
16133
+ super(request, syncEngine, void 0, baseUrl);
16134
+ this._variables = variables;
16135
+ }
16136
+ async fetch(options) {
16137
+ const variables = this._variables;
16138
+ const response = await this._syncEngine.query(Chat_Project_DesktopBindingDocument, variables, "chat");
16139
+ const data = response.chat?.project?.desktopBinding;
16140
+ return data ? new ProjectDesktopBinding(this._request, data, this._syncEngine, this._baseUrl) : void 0;
16141
+ }
16142
+ watch(options) {
16143
+ const variables = this._variables;
16144
+ const raw = this._syncEngine.watch(
16145
+ Chat_Project_DesktopBindingDocument,
16146
+ variables,
16147
+ "chat",
16148
+ async (db) => {
16149
+ const vars = variables;
16150
+ const entity = vars?.id ? await db.table("projectDesktopBindings").get(vars.id) : void 0;
16151
+ return { chat: { project: { desktopBinding: entity ?? null } } };
16152
+ }
16153
+ );
16154
+ return new MappedDvinaQueryRef(raw, (response) => {
16155
+ const data = response.chat?.project?.desktopBinding;
16156
+ return data ? new ProjectDesktopBinding(this._request, data, this._syncEngine, this._baseUrl) : void 0;
16157
+ });
16158
+ }
16159
+ };
16160
+ var ChatMessageQuery = class extends Request {
16161
+ _variables;
16162
+ _includes = [];
16163
+ constructor(request, syncEngine, variables = {}, baseUrl) {
16164
+ super(request, syncEngine, void 0, baseUrl);
16165
+ this._variables = variables;
16166
+ }
16167
+ async fetch(options) {
16168
+ const variables = this._variables;
16169
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(ChatMessageDocument, "chatMessage", this._includes, variables);
16170
+ const response = await this._syncEngine.query(queryDoc, mergedVars, "chatMessage");
16171
+ const data = response.chatMessage;
16172
+ const instance = new ChatMessage(this._request, data, this._syncEngine, this._baseUrl);
16173
+ if (this._includes.length > 0) {
15632
16174
  hydrateIncludes(instance, data, this._includes, this._request, this._syncEngine, this._baseUrl);
15633
16175
  }
15634
16176
  return instance;
@@ -15824,6 +16366,36 @@ var ChatMessage_ChatQuery = class extends Request {
15824
16366
  });
15825
16367
  }
15826
16368
  };
16369
+ var ChatMessage_Chat_DesktopDeviceQuery = class extends Request {
16370
+ _variables;
16371
+ constructor(request, syncEngine, variables = {}, baseUrl) {
16372
+ super(request, syncEngine, void 0, baseUrl);
16373
+ this._variables = variables;
16374
+ }
16375
+ async fetch(options) {
16376
+ const variables = this._variables;
16377
+ const response = await this._syncEngine.query(ChatMessage_Chat_DesktopDeviceDocument, variables, "chatMessage");
16378
+ const data = response.chatMessage?.chat?.desktopDevice;
16379
+ return data ? new DesktopDevice(this._request, data, this._syncEngine, this._baseUrl) : void 0;
16380
+ }
16381
+ watch(options) {
16382
+ const variables = this._variables;
16383
+ const raw = this._syncEngine.watch(
16384
+ ChatMessage_Chat_DesktopDeviceDocument,
16385
+ variables,
16386
+ "chatMessage",
16387
+ async (db) => {
16388
+ const vars = variables;
16389
+ const entity = vars?.id ? await db.table("desktopDevices").get(vars.id) : void 0;
16390
+ return { chatMessage: { chat: { desktopDevice: entity ?? null } } };
16391
+ }
16392
+ );
16393
+ return new MappedDvinaQueryRef(raw, (response) => {
16394
+ const data = response.chatMessage?.chat?.desktopDevice;
16395
+ return data ? new DesktopDevice(this._request, data, this._syncEngine, this._baseUrl) : void 0;
16396
+ });
16397
+ }
16398
+ };
15827
16399
  var ChatMessage_Chat_InsightQuery = class extends Request {
15828
16400
  _variables;
15829
16401
  constructor(request, syncEngine, variables = {}, baseUrl) {
@@ -15854,6 +16426,36 @@ var ChatMessage_Chat_InsightQuery = class extends Request {
15854
16426
  });
15855
16427
  }
15856
16428
  };
16429
+ var ChatMessage_Chat_ProjectQuery = class extends Request {
16430
+ _variables;
16431
+ constructor(request, syncEngine, variables = {}, baseUrl) {
16432
+ super(request, syncEngine, void 0, baseUrl);
16433
+ this._variables = variables;
16434
+ }
16435
+ async fetch(options) {
16436
+ const variables = this._variables;
16437
+ const response = await this._syncEngine.query(ChatMessage_Chat_ProjectDocument, variables, "chatMessage");
16438
+ const data = response.chatMessage?.chat?.project;
16439
+ return data ? new Project(this._request, data, this._syncEngine, this._baseUrl) : void 0;
16440
+ }
16441
+ watch(options) {
16442
+ const variables = this._variables;
16443
+ const raw = this._syncEngine.watch(
16444
+ ChatMessage_Chat_ProjectDocument,
16445
+ variables,
16446
+ "chatMessage",
16447
+ async (db) => {
16448
+ const vars = variables;
16449
+ const entity = vars?.id ? await db.table("projects").get(vars.id) : void 0;
16450
+ return { chatMessage: { chat: { project: entity ?? null } } };
16451
+ }
16452
+ );
16453
+ return new MappedDvinaQueryRef(raw, (response) => {
16454
+ const data = response.chatMessage?.chat?.project;
16455
+ return data ? new Project(this._request, data, this._syncEngine, this._baseUrl) : void 0;
16456
+ });
16457
+ }
16458
+ };
15857
16459
  var ChatMessage_ContentsQuery = class extends Request {
15858
16460
  _variables;
15859
16461
  constructor(request, syncEngine, variables = {}, baseUrl) {
@@ -16175,6 +16777,25 @@ var ChatsQuery = class _ChatsQuery extends Request {
16175
16777
  });
16176
16778
  return this;
16177
16779
  }
16780
+ /** Include desktopDevice in this query (Smart Fetch — single HTTP request). */
16781
+ desktopDevice(variables) {
16782
+ const info = extractIncludeInfo(Chat_DesktopDeviceDocument, "desktopDevice", ["id"]);
16783
+ this._includes.push({
16784
+ fieldName: "desktopDevice",
16785
+ fragmentDoc: DesktopDeviceFragmentDoc,
16786
+ variables,
16787
+ isConnection: false,
16788
+ isList: false,
16789
+ variableDefinitions: info.variableDefinitions,
16790
+ fieldArguments: info.fieldArguments,
16791
+ syncMetadata: {
16792
+ entityType: "desktopDevices",
16793
+ requiredFields: ["id", "deviceLabel", "createdAt", "updatedAt"]
16794
+ },
16795
+ modelFactory: (req, data, se, bu) => new DesktopDevice(req, data, se, bu)
16796
+ });
16797
+ return this;
16798
+ }
16178
16799
  /** Include insight in this query (Smart Fetch — single HTTP request). */
16179
16800
  insight(variables, builder) {
16180
16801
  const info = extractIncludeInfo(Chat_InsightDocument, "insight", ["id"]);
@@ -16228,6 +16849,32 @@ var ChatsQuery = class _ChatsQuery extends Request {
16228
16849
  });
16229
16850
  return this;
16230
16851
  }
16852
+ /** Include project in this query (Smart Fetch — single HTTP request). */
16853
+ project(variables, builder) {
16854
+ const info = extractIncludeInfo(Chat_ProjectDocument, "project", ["id"]);
16855
+ let children;
16856
+ if (builder) {
16857
+ const sub = new ProjectSubBuilder();
16858
+ builder(sub);
16859
+ children = sub._includes;
16860
+ }
16861
+ this._includes.push({
16862
+ fieldName: "project",
16863
+ fragmentDoc: ProjectFragmentDoc,
16864
+ variables,
16865
+ isConnection: false,
16866
+ isList: false,
16867
+ variableDefinitions: info.variableDefinitions,
16868
+ fieldArguments: info.fieldArguments,
16869
+ syncMetadata: {
16870
+ entityType: "projects",
16871
+ requiredFields: ["id", "name", "source", "createdAt", "updatedAt"]
16872
+ },
16873
+ children,
16874
+ modelFactory: (req, data, se, bu) => new Project(req, data, se, bu)
16875
+ });
16876
+ return this;
16877
+ }
16231
16878
  };
16232
16879
  var DatabaseQuery = class extends Request {
16233
16880
  _variables;
@@ -16727,6 +17374,21 @@ var DatabasesQuery = class _DatabasesQuery extends Request {
16727
17374
  return this;
16728
17375
  }
16729
17376
  };
17377
+ var DesktopDevicesQuery = class extends Request {
17378
+ _variables;
17379
+ _includes = [];
17380
+ constructor(request, syncEngine, variables = {}, baseUrl) {
17381
+ super(request, syncEngine, void 0, baseUrl);
17382
+ this._variables = variables;
17383
+ }
17384
+ async fetch(options) {
17385
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(DesktopDevicesDocument, "desktopDevices", this._includes, this._variables);
17386
+ const response = await this._syncEngine.query(queryDoc, mergedVars, "desktopDevices");
17387
+ const data = response.desktopDevices;
17388
+ if (!Array.isArray(data)) return [];
17389
+ return data.map((item) => new DesktopDeviceModel(this._request, item, this._syncEngine, this._baseUrl));
17390
+ }
17391
+ };
16730
17392
  var DocumentQuery = class extends Request {
16731
17393
  _variables;
16732
17394
  _includes = [];
@@ -18278,6 +18940,66 @@ var Insight_ChatQuery = class extends Request {
18278
18940
  });
18279
18941
  }
18280
18942
  };
18943
+ var Insight_Chat_DesktopDeviceQuery = class extends Request {
18944
+ _variables;
18945
+ constructor(request, syncEngine, variables = {}, baseUrl) {
18946
+ super(request, syncEngine, void 0, baseUrl);
18947
+ this._variables = variables;
18948
+ }
18949
+ async fetch(options) {
18950
+ const variables = this._variables;
18951
+ const response = await this._syncEngine.query(Insight_Chat_DesktopDeviceDocument, variables, "insight");
18952
+ const data = response.insight?.chat?.desktopDevice;
18953
+ return data ? new DesktopDevice(this._request, data, this._syncEngine, this._baseUrl) : void 0;
18954
+ }
18955
+ watch(options) {
18956
+ const variables = this._variables;
18957
+ const raw = this._syncEngine.watch(
18958
+ Insight_Chat_DesktopDeviceDocument,
18959
+ variables,
18960
+ "insight",
18961
+ async (db) => {
18962
+ const vars = variables;
18963
+ const entity = vars?.id ? await db.table("desktopDevices").get(vars.id) : void 0;
18964
+ return { insight: { chat: { desktopDevice: entity ?? null } } };
18965
+ }
18966
+ );
18967
+ return new MappedDvinaQueryRef(raw, (response) => {
18968
+ const data = response.insight?.chat?.desktopDevice;
18969
+ return data ? new DesktopDevice(this._request, data, this._syncEngine, this._baseUrl) : void 0;
18970
+ });
18971
+ }
18972
+ };
18973
+ var Insight_Chat_ProjectQuery = class extends Request {
18974
+ _variables;
18975
+ constructor(request, syncEngine, variables = {}, baseUrl) {
18976
+ super(request, syncEngine, void 0, baseUrl);
18977
+ this._variables = variables;
18978
+ }
18979
+ async fetch(options) {
18980
+ const variables = this._variables;
18981
+ const response = await this._syncEngine.query(Insight_Chat_ProjectDocument, variables, "insight");
18982
+ const data = response.insight?.chat?.project;
18983
+ return data ? new Project(this._request, data, this._syncEngine, this._baseUrl) : void 0;
18984
+ }
18985
+ watch(options) {
18986
+ const variables = this._variables;
18987
+ const raw = this._syncEngine.watch(
18988
+ Insight_Chat_ProjectDocument,
18989
+ variables,
18990
+ "insight",
18991
+ async (db) => {
18992
+ const vars = variables;
18993
+ const entity = vars?.id ? await db.table("projects").get(vars.id) : void 0;
18994
+ return { insight: { chat: { project: entity ?? null } } };
18995
+ }
18996
+ );
18997
+ return new MappedDvinaQueryRef(raw, (response) => {
18998
+ const data = response.insight?.chat?.project;
18999
+ return data ? new Project(this._request, data, this._syncEngine, this._baseUrl) : void 0;
19000
+ });
19001
+ }
19002
+ };
18281
19003
  var Insight_ReportMembersQuery = class extends Request {
18282
19004
  _variables;
18283
19005
  constructor(request, syncEngine, variables = {}, baseUrl) {
@@ -19239,6 +19961,138 @@ var LiveContextsQuery = class _LiveContextsQuery extends Request {
19239
19961
  return this;
19240
19962
  }
19241
19963
  };
19964
+ var LocalRuntimeOverviewQuery = class extends Request {
19965
+ _variables;
19966
+ _includes = [];
19967
+ constructor(request, syncEngine, variables = {}, baseUrl) {
19968
+ super(request, syncEngine, void 0, baseUrl);
19969
+ this._variables = variables;
19970
+ }
19971
+ async fetch(options) {
19972
+ const variables = this._variables;
19973
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(LocalRuntimeOverviewDocument, "localRuntimeOverview", this._includes, variables);
19974
+ const response = await this._syncEngine.query(queryDoc, mergedVars, "localRuntimeOverview");
19975
+ const data = response.localRuntimeOverview;
19976
+ const instance = new LocalRuntimeOverviewModel(this._request, data, this._syncEngine, this._baseUrl);
19977
+ if (this._includes.length > 0) {
19978
+ hydrateIncludes(instance, data, this._includes, this._request, this._syncEngine, this._baseUrl);
19979
+ }
19980
+ return instance;
19981
+ }
19982
+ watch(options) {
19983
+ const variables = this._variables;
19984
+ const includes = this._includes;
19985
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(LocalRuntimeOverviewDocument, "localRuntimeOverview", includes, variables);
19986
+ const raw = this._syncEngine.watch(
19987
+ queryDoc,
19988
+ mergedVars,
19989
+ "localRuntimeOverview",
19990
+ async (db) => {
19991
+ const vars = variables;
19992
+ const pkField = getPrimaryKeyField("localRuntimeOverviewModels");
19993
+ const entityKey = Array.isArray(pkField) ? pkField.map((field) => vars?.[field]) : vars?.[pkField];
19994
+ const hasEntityKey = Array.isArray(entityKey) ? entityKey.every((part) => part !== void 0 && part !== null) : entityKey !== void 0 && entityKey !== null;
19995
+ const entity = hasEntityKey ? await db.table("localRuntimeOverviewModels").get(entityKey) : void 0;
19996
+ if (includes.length > 0 && entity) {
19997
+ const parentId = Array.isArray(entityKey) ? entityKey.map((part) => String(part)).join(":") : String(entityKey);
19998
+ const result = await reconstructEntity(db, "localRuntimeOverviewModels", parentId, includes);
19999
+ return { localRuntimeOverview: result };
20000
+ }
20001
+ return { localRuntimeOverview: entity ?? null };
20002
+ }
20003
+ );
20004
+ return new MappedDvinaQueryRef(raw, (response) => {
20005
+ const data = response.localRuntimeOverview;
20006
+ const instance = new LocalRuntimeOverviewModel(this._request, data, this._syncEngine, this._baseUrl);
20007
+ if (includes.length > 0) {
20008
+ hydrateIncludes(instance, data, includes, this._request, this._syncEngine, this._baseUrl);
20009
+ }
20010
+ return instance;
20011
+ });
20012
+ }
20013
+ /** Include devices in this query (Smart Fetch — single HTTP request). */
20014
+ devices(variables) {
20015
+ const info = extractIncludeInfo(LocalRuntimeOverview_DevicesDocument, "devices", []);
20016
+ this._includes.push({
20017
+ fieldName: "devices",
20018
+ fragmentDoc: LocalRuntimeDeviceModelFragmentDoc,
20019
+ variables,
20020
+ isConnection: false,
20021
+ isList: true,
20022
+ variableDefinitions: info.variableDefinitions,
20023
+ fieldArguments: info.fieldArguments,
20024
+ syncMetadata: {
20025
+ entityType: "localRuntimeDeviceModels",
20026
+ requiredFields: ["deviceId", "label", "state", "isPreferred", "isResolved"]
20027
+ },
20028
+ modelFactory: (req, data, se, bu) => new LocalRuntimeDeviceModel(req, data, se, bu)
20029
+ });
20030
+ return this;
20031
+ }
20032
+ };
20033
+ var LocalRuntimeOverview_DevicesQuery = class extends Request {
20034
+ _variables;
20035
+ constructor(request, syncEngine, variables = {}, baseUrl) {
20036
+ super(request, syncEngine, void 0, baseUrl);
20037
+ this._variables = variables;
20038
+ }
20039
+ async fetch(options) {
20040
+ const response = await this._syncEngine.query(LocalRuntimeOverview_DevicesDocument, this._variables, "localRuntimeOverview");
20041
+ const data = response.localRuntimeOverview?.devices;
20042
+ if (!Array.isArray(data)) return [];
20043
+ return data.map((item) => new LocalRuntimeDeviceModel(this._request, item, this._syncEngine, this._baseUrl));
20044
+ }
20045
+ };
20046
+ var LocalSandboxDeviceStatusQuery = class extends Request {
20047
+ _variables;
20048
+ _includes = [];
20049
+ constructor(request, syncEngine, variables = {}, baseUrl) {
20050
+ super(request, syncEngine, void 0, baseUrl);
20051
+ this._variables = variables;
20052
+ }
20053
+ async fetch(options) {
20054
+ const variables = this._variables;
20055
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(LocalSandboxDeviceStatusDocument, "localSandboxDeviceStatus", this._includes, variables);
20056
+ const response = await this._syncEngine.query(queryDoc, mergedVars, "localSandboxDeviceStatus");
20057
+ const data = response.localSandboxDeviceStatus;
20058
+ const instance = new LocalSandboxDeviceStatusModel(this._request, data, this._syncEngine, this._baseUrl);
20059
+ if (this._includes.length > 0) {
20060
+ hydrateIncludes(instance, data, this._includes, this._request, this._syncEngine, this._baseUrl);
20061
+ }
20062
+ return instance;
20063
+ }
20064
+ watch(options) {
20065
+ const variables = this._variables;
20066
+ const includes = this._includes;
20067
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(LocalSandboxDeviceStatusDocument, "localSandboxDeviceStatus", includes, variables);
20068
+ const raw = this._syncEngine.watch(
20069
+ queryDoc,
20070
+ mergedVars,
20071
+ "localSandboxDeviceStatus",
20072
+ async (db) => {
20073
+ const vars = variables;
20074
+ const pkField = getPrimaryKeyField("localSandboxDeviceStatusModels");
20075
+ const entityKey = Array.isArray(pkField) ? pkField.map((field) => vars?.[field]) : vars?.[pkField];
20076
+ const hasEntityKey = Array.isArray(entityKey) ? entityKey.every((part) => part !== void 0 && part !== null) : entityKey !== void 0 && entityKey !== null;
20077
+ const entity = hasEntityKey ? await db.table("localSandboxDeviceStatusModels").get(entityKey) : void 0;
20078
+ if (includes.length > 0 && entity) {
20079
+ const parentId = Array.isArray(entityKey) ? entityKey.map((part) => String(part)).join(":") : String(entityKey);
20080
+ const result = await reconstructEntity(db, "localSandboxDeviceStatusModels", parentId, includes);
20081
+ return { localSandboxDeviceStatus: result };
20082
+ }
20083
+ return { localSandboxDeviceStatus: entity ?? null };
20084
+ }
20085
+ );
20086
+ return new MappedDvinaQueryRef(raw, (response) => {
20087
+ const data = response.localSandboxDeviceStatus;
20088
+ const instance = new LocalSandboxDeviceStatusModel(this._request, data, this._syncEngine, this._baseUrl);
20089
+ if (includes.length > 0) {
20090
+ hydrateIncludes(instance, data, includes, this._request, this._syncEngine, this._baseUrl);
20091
+ }
20092
+ return instance;
20093
+ });
20094
+ }
20095
+ };
19242
20096
  var NotificationQuery = class extends Request {
19243
20097
  _variables;
19244
20098
  _includes = [];
@@ -19421,6 +20275,313 @@ var PrivacyStatsQuery = class extends Request {
19421
20275
  });
19422
20276
  }
19423
20277
  };
20278
+ var ProjectQuery = class extends Request {
20279
+ _variables;
20280
+ _includes = [];
20281
+ constructor(request, syncEngine, variables = {}, baseUrl) {
20282
+ super(request, syncEngine, void 0, baseUrl);
20283
+ this._variables = variables;
20284
+ }
20285
+ async fetch(options) {
20286
+ const variables = this._variables;
20287
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(ProjectDocument, "project", this._includes, variables);
20288
+ const response = await this._syncEngine.query(queryDoc, mergedVars, "project");
20289
+ const data = response.project;
20290
+ const instance = new Project(this._request, data, this._syncEngine, this._baseUrl);
20291
+ if (this._includes.length > 0) {
20292
+ hydrateIncludes(instance, data, this._includes, this._request, this._syncEngine, this._baseUrl);
20293
+ }
20294
+ return instance;
20295
+ }
20296
+ watch(options) {
20297
+ const variables = this._variables;
20298
+ const includes = this._includes;
20299
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(ProjectDocument, "project", includes, variables);
20300
+ const raw = this._syncEngine.watch(
20301
+ queryDoc,
20302
+ mergedVars,
20303
+ "project",
20304
+ async (db) => {
20305
+ const vars = variables;
20306
+ const pkField = getPrimaryKeyField("projects");
20307
+ const entityKey = Array.isArray(pkField) ? pkField.map((field) => vars?.[field]) : vars?.[pkField];
20308
+ const hasEntityKey = Array.isArray(entityKey) ? entityKey.every((part) => part !== void 0 && part !== null) : entityKey !== void 0 && entityKey !== null;
20309
+ const entity = hasEntityKey ? await db.table("projects").get(entityKey) : void 0;
20310
+ if (includes.length > 0 && entity) {
20311
+ const parentId = Array.isArray(entityKey) ? entityKey.map((part) => String(part)).join(":") : String(entityKey);
20312
+ const result = await reconstructEntity(db, "projects", parentId, includes);
20313
+ return { project: result };
20314
+ }
20315
+ return { project: entity ?? null };
20316
+ }
20317
+ );
20318
+ return new MappedDvinaQueryRef(raw, (response) => {
20319
+ const data = response.project;
20320
+ const instance = new Project(this._request, data, this._syncEngine, this._baseUrl);
20321
+ if (includes.length > 0) {
20322
+ hydrateIncludes(instance, data, includes, this._request, this._syncEngine, this._baseUrl);
20323
+ }
20324
+ return instance;
20325
+ });
20326
+ }
20327
+ /** Include chats in this query (Smart Fetch — single HTTP request). */
20328
+ chats(variables, builder) {
20329
+ const info = extractIncludeInfo(Project_ChatsDocument, "chats", ["id"]);
20330
+ let children;
20331
+ if (builder) {
20332
+ const sub = new ChatSubBuilder();
20333
+ builder(sub);
20334
+ children = sub._includes;
20335
+ }
20336
+ this._includes.push({
20337
+ fieldName: "chats",
20338
+ fragmentDoc: ChatConnectionFragmentDoc,
20339
+ variables,
20340
+ isConnection: true,
20341
+ isList: false,
20342
+ variableDefinitions: info.variableDefinitions,
20343
+ fieldArguments: info.fieldArguments,
20344
+ syncMetadata: {
20345
+ entityType: "chats",
20346
+ requiredFields: ["id", "name", "piiSanitizationEnabled", "createdAt", "updatedAt"]
20347
+ },
20348
+ children,
20349
+ modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu),
20350
+ connectionFactory: (req, fetch2, data, se, bu) => new ChatConnection(req, fetch2, data, se, bu)
20351
+ });
20352
+ return this;
20353
+ }
20354
+ /** Include desktopBinding in this query (Smart Fetch — single HTTP request). */
20355
+ desktopBinding(variables) {
20356
+ const info = extractIncludeInfo(Project_DesktopBindingDocument, "desktopBinding", ["id"]);
20357
+ this._includes.push({
20358
+ fieldName: "desktopBinding",
20359
+ fragmentDoc: ProjectDesktopBindingFragmentDoc,
20360
+ variables,
20361
+ isConnection: false,
20362
+ isList: false,
20363
+ variableDefinitions: info.variableDefinitions,
20364
+ fieldArguments: info.fieldArguments,
20365
+ syncMetadata: {
20366
+ entityType: "projectDesktopBindings",
20367
+ requiredFields: ["projectId", "deviceId", "kind", "rootPath", "createdAt", "updatedAt"]
20368
+ },
20369
+ modelFactory: (req, data, se, bu) => new ProjectDesktopBinding(req, data, se, bu)
20370
+ });
20371
+ return this;
20372
+ }
20373
+ };
20374
+ var Project_ChatsQuery = class _Project_ChatsQuery extends Request {
20375
+ _variables;
20376
+ constructor(request, syncEngine, variables = {}, baseUrl) {
20377
+ super(request, syncEngine, void 0, baseUrl);
20378
+ this._variables = variables;
20379
+ }
20380
+ async fetch(options) {
20381
+ const variables = this._variables;
20382
+ const response = await this._syncEngine.query(Project_ChatsDocument, variables, "project");
20383
+ const data = response.project?.chats;
20384
+ return new ChatConnection(this._request, (conn, opts) => new _Project_ChatsQuery(this._request, this._syncEngine, defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
20385
+ }
20386
+ watch(options) {
20387
+ const variables = this._variables;
20388
+ const raw = this._syncEngine.watch(
20389
+ Project_ChatsDocument,
20390
+ variables,
20391
+ "project",
20392
+ async (db) => {
20393
+ const queryKey = buildQueryKey("project", variables, Project_ChatsDocument);
20394
+ const qr = await db._queryResults.get(queryKey);
20395
+ if (!qr) {
20396
+ throw new DvinaCacheMissError(queryKey);
20397
+ }
20398
+ const nodes = await db.table("chats").bulkGet(qr.entityIds);
20399
+ const filteredNodes = nodes.filter(Boolean);
20400
+ if (filteredNodes.length !== qr.entityIds.length) {
20401
+ throw new DvinaCacheMissError(queryKey);
20402
+ }
20403
+ return { project: { chats: { __typename: "ChatConnection", nodes: filteredNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
20404
+ }
20405
+ );
20406
+ return new MappedDvinaQueryRef(raw, (response) => {
20407
+ const data = response.project?.chats;
20408
+ return new ChatConnection(this._request, (conn, opts) => new _Project_ChatsQuery(this._request, this._syncEngine, defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
20409
+ });
20410
+ }
20411
+ };
20412
+ var Project_DesktopBindingQuery = class extends Request {
20413
+ _variables;
20414
+ constructor(request, syncEngine, variables = {}, baseUrl) {
20415
+ super(request, syncEngine, void 0, baseUrl);
20416
+ this._variables = variables;
20417
+ }
20418
+ async fetch(options) {
20419
+ const variables = this._variables;
20420
+ const response = await this._syncEngine.query(Project_DesktopBindingDocument, variables, "project");
20421
+ const data = response.project?.desktopBinding;
20422
+ return data ? new ProjectDesktopBinding(this._request, data, this._syncEngine, this._baseUrl) : void 0;
20423
+ }
20424
+ watch(options) {
20425
+ const variables = this._variables;
20426
+ const raw = this._syncEngine.watch(
20427
+ Project_DesktopBindingDocument,
20428
+ variables,
20429
+ "project",
20430
+ async (db) => {
20431
+ const vars = variables;
20432
+ const entity = vars?.id ? await db.table("projectDesktopBindings").get(vars.id) : void 0;
20433
+ return { project: { desktopBinding: entity ?? null } };
20434
+ }
20435
+ );
20436
+ return new MappedDvinaQueryRef(raw, (response) => {
20437
+ const data = response.project?.desktopBinding;
20438
+ return data ? new ProjectDesktopBinding(this._request, data, this._syncEngine, this._baseUrl) : void 0;
20439
+ });
20440
+ }
20441
+ };
20442
+ var Project_DesktopBinding_DeviceQuery = class extends Request {
20443
+ _variables;
20444
+ constructor(request, syncEngine, variables = {}, baseUrl) {
20445
+ super(request, syncEngine, void 0, baseUrl);
20446
+ this._variables = variables;
20447
+ }
20448
+ async fetch(options) {
20449
+ const variables = this._variables;
20450
+ const response = await this._syncEngine.query(Project_DesktopBinding_DeviceDocument, variables, "project");
20451
+ const data = response.project?.desktopBinding?.device;
20452
+ return data ? new DesktopDevice(this._request, data, this._syncEngine, this._baseUrl) : void 0;
20453
+ }
20454
+ watch(options) {
20455
+ const variables = this._variables;
20456
+ const raw = this._syncEngine.watch(
20457
+ Project_DesktopBinding_DeviceDocument,
20458
+ variables,
20459
+ "project",
20460
+ async (db) => {
20461
+ const vars = variables;
20462
+ const entity = vars?.id ? await db.table("desktopDevices").get(vars.id) : void 0;
20463
+ return { project: { desktopBinding: { device: entity ?? null } } };
20464
+ }
20465
+ );
20466
+ return new MappedDvinaQueryRef(raw, (response) => {
20467
+ const data = response.project?.desktopBinding?.device;
20468
+ return data ? new DesktopDevice(this._request, data, this._syncEngine, this._baseUrl) : void 0;
20469
+ });
20470
+ }
20471
+ };
20472
+ var ProjectsQuery = class _ProjectsQuery extends Request {
20473
+ _variables;
20474
+ _includes = [];
20475
+ constructor(request, syncEngine, variables = {}, baseUrl) {
20476
+ super(request, syncEngine, void 0, baseUrl);
20477
+ this._variables = variables;
20478
+ }
20479
+ async fetch(options) {
20480
+ const variables = this._variables;
20481
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(ProjectsDocument, "projects", this._includes, variables, true);
20482
+ const response = await this._syncEngine.query(queryDoc, mergedVars, "projects");
20483
+ const data = response.projects;
20484
+ const connection = new ProjectConnection(this._request, (conn, opts) => new _ProjectsQuery(this._request, this._syncEngine, defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
20485
+ if (this._includes.length > 0) {
20486
+ const rawNodes = data.nodes ?? [];
20487
+ for (let i = 0; i < connection.nodes.length; i++) {
20488
+ hydrateIncludes(connection.nodes[i], rawNodes[i] ?? {}, this._includes, this._request, this._syncEngine, this._baseUrl);
20489
+ }
20490
+ }
20491
+ return connection;
20492
+ }
20493
+ watch(options) {
20494
+ const variables = this._variables;
20495
+ const subscriptionId = crypto.randomUUID();
20496
+ const includes = this._includes;
20497
+ const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
20498
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(ProjectsDocument, "projects", includes, variables, true);
20499
+ const raw = this._syncEngine.watch(
20500
+ queryDoc,
20501
+ mergedVars,
20502
+ "projects",
20503
+ async (db) => {
20504
+ const queryKey = buildQueryKey("projects", mergedVars, queryDoc);
20505
+ const qr = await db._queryResults.get(queryKey);
20506
+ if (!qr) {
20507
+ throw new DvinaCacheMissError(queryKey);
20508
+ }
20509
+ const nodes = await db.table("projects").bulkGet(qr.entityIds);
20510
+ const filteredNodes = nodes.filter(Boolean);
20511
+ if (filteredNodes.length !== qr.entityIds.length) {
20512
+ throw new DvinaCacheMissError(queryKey);
20513
+ }
20514
+ const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "projects", filteredNodes, includes) : filteredNodes;
20515
+ return { projects: { __typename: "ProjectConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
20516
+ },
20517
+ {
20518
+ id: subscriptionId,
20519
+ entityType: "projects",
20520
+ operationName: "projects",
20521
+ modelName: "Project",
20522
+ filter: variables?.filter
20523
+ },
20524
+ watchedRelations
20525
+ );
20526
+ return new MappedDvinaQueryRef(raw, (response) => {
20527
+ const data = response.projects;
20528
+ const connection = new ProjectConnection(this._request, (conn, opts) => new _ProjectsQuery(this._request, this._syncEngine, defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
20529
+ if (includes.length > 0) {
20530
+ const rawNodes = data.nodes ?? [];
20531
+ for (let i = 0; i < connection.nodes.length; i++) {
20532
+ hydrateIncludes(connection.nodes[i], rawNodes[i] ?? {}, includes, this._request, this._syncEngine, this._baseUrl);
20533
+ }
20534
+ }
20535
+ return connection;
20536
+ });
20537
+ }
20538
+ /** Include chats in this query (Smart Fetch — single HTTP request). */
20539
+ chats(variables, builder) {
20540
+ const info = extractIncludeInfo(Project_ChatsDocument, "chats", ["id"]);
20541
+ let children;
20542
+ if (builder) {
20543
+ const sub = new ChatSubBuilder();
20544
+ builder(sub);
20545
+ children = sub._includes;
20546
+ }
20547
+ this._includes.push({
20548
+ fieldName: "chats",
20549
+ fragmentDoc: ChatConnectionFragmentDoc,
20550
+ variables,
20551
+ isConnection: true,
20552
+ isList: false,
20553
+ variableDefinitions: info.variableDefinitions,
20554
+ fieldArguments: info.fieldArguments,
20555
+ syncMetadata: {
20556
+ entityType: "chats",
20557
+ requiredFields: ["id", "name", "piiSanitizationEnabled", "createdAt", "updatedAt"]
20558
+ },
20559
+ children,
20560
+ modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu),
20561
+ connectionFactory: (req, fetch2, data, se, bu) => new ChatConnection(req, fetch2, data, se, bu)
20562
+ });
20563
+ return this;
20564
+ }
20565
+ /** Include desktopBinding in this query (Smart Fetch — single HTTP request). */
20566
+ desktopBinding(variables) {
20567
+ const info = extractIncludeInfo(Project_DesktopBindingDocument, "desktopBinding", ["id"]);
20568
+ this._includes.push({
20569
+ fieldName: "desktopBinding",
20570
+ fragmentDoc: ProjectDesktopBindingFragmentDoc,
20571
+ variables,
20572
+ isConnection: false,
20573
+ isList: false,
20574
+ variableDefinitions: info.variableDefinitions,
20575
+ fieldArguments: info.fieldArguments,
20576
+ syncMetadata: {
20577
+ entityType: "projectDesktopBindings",
20578
+ requiredFields: ["projectId", "deviceId", "kind", "rootPath", "createdAt", "updatedAt"]
20579
+ },
20580
+ modelFactory: (req, data, se, bu) => new ProjectDesktopBinding(req, data, se, bu)
20581
+ });
20582
+ return this;
20583
+ }
20584
+ };
19424
20585
  var PulseAppSummaryQuery = class extends Request {
19425
20586
  _variables;
19426
20587
  _includes = [];
@@ -20766,6 +21927,10 @@ var DvinaSdk = class extends Request {
20766
21927
  createIntegration(variables) {
20767
21928
  return new CreateIntegrationMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
20768
21929
  }
21930
+ /** Mutation: createProject */
21931
+ createProject(variables) {
21932
+ return new CreateProjectMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
21933
+ }
20769
21934
  /** Mutation: createReport */
20770
21935
  createReport(variables) {
20771
21936
  return new CreateReportMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
@@ -20818,6 +21983,10 @@ var DvinaSdk = class extends Request {
20818
21983
  deleteIntegration(variables) {
20819
21984
  return new DeleteIntegrationMutation(this._request, this._syncEngine).fetch(variables);
20820
21985
  }
21986
+ /** Mutation: deleteProject */
21987
+ deleteProject(variables) {
21988
+ return new DeleteProjectMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
21989
+ }
20821
21990
  /** Mutation: deleteReport */
20822
21991
  deleteReport(variables) {
20823
21992
  return new DeleteReportMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
@@ -20874,6 +22043,10 @@ var DvinaSdk = class extends Request {
20874
22043
  refreshInsight(variables) {
20875
22044
  return new RefreshInsightMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
20876
22045
  }
22046
+ /** Mutation: registerDesktopDevice */
22047
+ registerDesktopDevice(variables) {
22048
+ return new RegisterDesktopDeviceMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
22049
+ }
20877
22050
  /** Mutation: reinterpretSource (scalar) */
20878
22051
  reinterpretSource(variables) {
20879
22052
  return new ReinterpretSourceMutation(this._request, this._syncEngine).fetch(variables);
@@ -20910,6 +22083,10 @@ var DvinaSdk = class extends Request {
20910
22083
  setDatabasePrimaryKey(variables) {
20911
22084
  return new SetDatabasePrimaryKeyMutation(this._request, this._syncEngine).fetch(variables);
20912
22085
  }
22086
+ /** Mutation: syncProjectDesktopBinding */
22087
+ syncProjectDesktopBinding(variables) {
22088
+ return new SyncProjectDesktopBindingMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
22089
+ }
20913
22090
  /** Mutation: updateAgent */
20914
22091
  updateAgent(variables) {
20915
22092
  return new UpdateAgentMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
@@ -20954,6 +22131,10 @@ var DvinaSdk = class extends Request {
20954
22131
  updateLiveContext(variables) {
20955
22132
  return new UpdateLiveContextMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
20956
22133
  }
22134
+ /** Mutation: updateProject */
22135
+ updateProject(variables) {
22136
+ return new UpdateProjectMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
22137
+ }
20957
22138
  /** Mutation: updatePulseTrigger */
20958
22139
  updatePulseTrigger(variables) {
20959
22140
  return new UpdatePulseTriggerMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
@@ -21026,6 +22207,10 @@ var DvinaSdk = class extends Request {
21026
22207
  databases(variables) {
21027
22208
  return new DatabasesQuery(this._request, this._syncEngine, variables, this._baseUrl);
21028
22209
  }
22210
+ /** Query: desktopDevices — call .fetch() or .watch() to execute. */
22211
+ desktopDevices() {
22212
+ return new DesktopDevicesQuery(this._request, this._syncEngine, {}, this._baseUrl);
22213
+ }
21029
22214
  /** Query: document — call .fetch() or .watch() to execute. */
21030
22215
  document(variables) {
21031
22216
  return new DocumentQuery(this._request, this._syncEngine, variables, this._baseUrl);
@@ -21154,6 +22339,14 @@ var DvinaSdk = class extends Request {
21154
22339
  liveContexts(variables) {
21155
22340
  return new LiveContextsQuery(this._request, this._syncEngine, variables, this._baseUrl);
21156
22341
  }
22342
+ /** Query: localRuntimeOverview — call .fetch() or .watch() to execute. */
22343
+ localRuntimeOverview(variables) {
22344
+ return new LocalRuntimeOverviewQuery(this._request, this._syncEngine, variables, this._baseUrl);
22345
+ }
22346
+ /** Query: localSandboxDeviceStatus — call .fetch() or .watch() to execute. */
22347
+ localSandboxDeviceStatus(variables) {
22348
+ return new LocalSandboxDeviceStatusQuery(this._request, this._syncEngine, variables, this._baseUrl);
22349
+ }
21157
22350
  /** Query: notification — call .fetch() or .watch() to execute. */
21158
22351
  notification(variables) {
21159
22352
  return new NotificationQuery(this._request, this._syncEngine, variables, this._baseUrl);
@@ -21170,6 +22363,14 @@ var DvinaSdk = class extends Request {
21170
22363
  privacyStats() {
21171
22364
  return new PrivacyStatsQuery(this._request, this._syncEngine, {}, this._baseUrl);
21172
22365
  }
22366
+ /** Query: project — call .fetch() or .watch() to execute. */
22367
+ project(variables) {
22368
+ return new ProjectQuery(this._request, this._syncEngine, variables, this._baseUrl);
22369
+ }
22370
+ /** Query: projects — call .fetch() or .watch() to execute. */
22371
+ projects(variables) {
22372
+ return new ProjectsQuery(this._request, this._syncEngine, variables, this._baseUrl);
22373
+ }
21173
22374
  /** Query: pulseAppSummary — call .fetch() or .watch() to execute. */
21174
22375
  pulseAppSummary(variables) {
21175
22376
  return new PulseAppSummaryQuery(this._request, this._syncEngine, variables, this._baseUrl);
@@ -21289,6 +22490,6 @@ var DvinaSdk = class extends Request {
21289
22490
  }
21290
22491
  };
21291
22492
 
21292
- export { AbortChatMutation, Action, AddInsightToReportMutation, Agent, AgentConnection, AgentQuery, AgentSubBuilder, Agent_ChatsQuery, AgentsQuery, Artifact, ArtifactConnection, ArtifactQuery, ArtifactSubBuilder, Artifact_ChatQuery, Artifact_Chat_InsightQuery, Artifact_FileQuery, Artifact_MessageQuery, Artifact_Message_ChatQuery, Artifact_Message_ContentsQuery, Artifact_Message_FeedbackQuery, ArtifactsQuery, AudioEventOutput, CancelOauthFlowMutation, CancelWorkspaceDeletionMutation, Candidate, CandidateEvidence, Chat, ChatConnection, ChatImportExecuteOutput, ChatImportPreviewOutput, ChatMessage, ChatMessageConnection, ChatMessageQuery, ChatMessageSubBuilder, ChatMessage_ArtifactsQuery, ChatMessage_ChatQuery, ChatMessage_Chat_InsightQuery, ChatMessage_ContentsQuery, ChatMessage_FeedbackQuery, ChatMessagesQuery, ChatQuery, ChatSubBuilder, ChatTitleEventOutput, Chat_AgentsQuery, Chat_ArtifactsQuery, Chat_InsightQuery, Chat_Insight_ReportMembersQuery, Chat_Insight_ThumbnailFileQuery, Chat_MessagesQuery, ChatsQuery, ConnectIntegrationMutation, ConsumePulseEventsMutation, ContentBlock, ContentMask, ContinueImportedChatMutation, ContinueInterpretationMutation, CreateAgentMutation, CreateChatMutation, CreateDatabaseMutation, CreateDocumentMutation, CreateFeedbackMutation, CreateFolderMutation, CreateInsightMutation, CreateIntegrationMutation, CreateIntegrationOutput, CreateReportMutation, CreateTableMutation, CreateUserSkillFileMutation, CreateUserSkillFolderMutation, CubeModel, DB_ENTITY_SCHEMA, Database, DatabaseCatalog, DatabaseCatalogConnection, DatabaseCatalogQuery, DatabaseCatalogSubBuilder, DatabaseCatalog_EngineQuery, DatabaseCatalogsQuery, DatabaseConnection, DatabaseEngine, DatabaseQuery, DatabaseSchemaQuery, DatabaseSubBuilder, Database_EngineQuery, Database_Engine_CatalogQuery, Database_TablesQuery, DatabasesQuery, DeepAnalysisUsage, DeferredDvinaQueryRef, DeleteAgentMutation, DeleteArtifactMutation, DeleteChatMutation, DeleteDatabaseMutation, DeleteDocumentMutation, DeleteFolderMutation, DeleteInsightMutation, DeleteInsightsMutation, DeleteIntegrationMutation, DeleteReportMutation, DeleteTableMutation, DeleteUserSkillFileMutation, DeleteUserSkillFolderMutation, DevAccessTokenOutput, DexieLiveQueryRef, DisconnectIntegrationMutation, DismissPulseEventMutation, Document, DocumentCatalog, DocumentCatalogConnection, DocumentCatalogQuery, DocumentCatalogSubBuilder, DocumentCatalog_FormatQuery, DocumentCatalogsQuery, DocumentConnection, DocumentContent, DocumentFormat, DocumentQuery, DocumentSubBuilder, Document_ContentsQuery, Document_FileQuery, Document_FormatQuery, Document_Format_CatalogQuery, Document_TablesQuery, DocumentsQuery, DvinaDatabase, DvinaModel, DvinaSdk, Evidence, ExecuteChatImportMutation, ExportQuery, ExportWithInsightIdQuery, FailedSyncEventIngestion, FeedArtifactData, FeedConnection, FeedDatabaseData, FeedDocumentData, FeedInsightData, FeedIntegrationData, FeedItem, FeedItemGenerated, FeedItemQuery, FeedItemSubBuilder, FeedItem_ActionQuery, FeedItem_DataQuery, FeedItemsQuery, FeedLiveContextData, FeedPulseData, FeedSendMessageAction, Feedback, File, FileMetaQuery, FileModel, FileQuery, FileUrlsQuery, FinalContentEventOutput, FindFitTierQuery, Folder, FolderConnection, FolderQuery, FoldersQuery, GenerateUploadUriMutation, GetCapabilityQuery, GetDevAccessTokenQuery, GetLimitQuery, GetRemainingQuery, GetTokenUsageByModelQuery, GetTokenUsageHistoryQuery, GetTokenUsageStatusQuery, GetTokenUsageStatus_WindowsQuery, GetTokenUsageStatus_Windows_DayQuery, GetTokenUsageStatus_Windows_FiveHourQuery, GetTokenUsageStatus_Windows_MonthQuery, GetTokenUsageStatus_Windows_WeekQuery, GetUsageQuery, ImportedChatSummaryOutput, InferenceRequestAudit, Insight, InsightConnection, InsightQuery, InsightSubBuilder, Insight_ChatQuery, Insight_ReportMembersQuery, Insight_ReportsQuery, Insight_ThumbnailFileQuery, InsightsQuery, Integration, IntegrationCatalog, IntegrationCatalogConnection, IntegrationCatalogQuery, IntegrationCatalogSubBuilder, IntegrationCatalogToolsQuery, IntegrationCatalog_ProviderQuery, IntegrationCatalogsQuery, IntegrationConnection, IntegrationProvider, IntegrationQuery, IntegrationSubBuilder, Integration_ProviderQuery, Integration_Provider_CatalogQuery, IntegrationsQuery, Interpretation, InterpretationConnection, InterpretationsQuery, Invocation, LiveContext, LiveContextConnection, LiveContextQuery, LiveContextSubBuilder, LiveContext_ItemsQuery, LiveContext_SourceQuery, LiveContext_Source_EvidencesQuery, LiveContextsQuery, MUTATION_CACHE_RULES, MappedDvinaQueryRef, McpAuthUpdateModel, McpAuthUpdatesSubscription, McpClientInformation, McpCodeVerifier, McpServer, McpTokens, McpTool, MessageEndEventOutput, MessageStartEventOutput, ModelTokenUsage, Notification, NotificationConnection, NotificationQuery, NotificationsByReferenceQuery, NotificationsQuery, PRIMARY_KEY_CONFIG, PreviewChatImportMutation, PrivacyStats, PrivacyStatsQuery, ProgressSummaryEventOutput, PulseAppSummaryModel, PulseAppSummaryQuery, PulseEvent, PulseEventConnection, PulseEventQuery, PulseEventSubBuilder, PulseEvent_IntegrationQuery, PulseEvent_Integration_ProviderQuery, PulseEventsQuery, PulseTriggerSettingModel, PulseTriggerSettingsQuery, QueryQuery, QueryWithInsightIdQuery, QueryWithMessageIdQuery, ReanalyzeDocumentMutation, ReasoningEventOutput, RefineAgentInstructionMutation, RefineSkillInstructionMutation, RefreshDatabaseSchemaMutation, RefreshInsightMutation, ReinterpretSourceMutation, ReinterpretSourcesOfuserMutation, Relation, RelocateInsightMutation, RemoveInsightFromReportMutation, Report, ReportConnection, ReportMember, ReportQuery, ReportSubBuilder, Report_InsightsQuery, Report_LayoutQuery, ReportsQuery, ResetWorkspaceMutation, ResolvePulseEventMutation, ResolvedFileUrl, ScheduleWorkspaceDeletionMutation, SendMessageMutation, SetDatabasePrimaryKeyMutation, StreamEventSchemaAnchor, StreamMessageContentOutput, StreamMessageOutput, SyncEngine, SyncEvent, SyncEventCursor, TABLE_TO_TYPENAME, TYPENAME_TO_TABLE, Table, TableConnection, TableQuery, TableSubBuilder, Table_DatabaseQuery, Table_Database_EngineQuery, Table_DocumentQuery, Table_Document_ContentsQuery, Table_Document_FileQuery, Table_Document_FormatQuery, Table_FromRelationsQuery, Table_ToRelationsQuery, TablesQuery, TextBlockEventOutput, TextDeltaEventOutput, TokenUsage, TokenUsageUpdatesSubscription, ToolInputDeltaEventOutput, ToolResultArtifactOutput, ToolResultEventOutput, ToolStartEventOutput, UpdateAgentMutation, UpdateArtifactNameMutation, UpdateChatMutation, UpdateDatabaseMutation, UpdateDocumentMutation, UpdateFolderMutation, UpdateInsightInReportMutation, UpdateInsightMutation, UpdateInsightThumbnailMutation, UpdateInterpMutation, UpdateLiveContextMutation, UpdatePulseTriggerMutation, UpdateReportMutation, UpdateTableMutation, UpdateUserSkillFileMutation, UpdateUserSkillFolderMutation, UsageMetaOutput, UsageStatus, UsageWindowsStatusType, UserSkillFile, UserSkillFileModel, UserSkillFileQuery, UserSkillFilesQuery, UserSkillFolder, UserSkillFolderModel, UserSkillFolderQuery, UserSkillFoldersQuery, WidgetBlockCompleteEventOutput, WidgetBlockErrorEventOutput, WidgetBlockStartEventOutput, WidgetHtmlDeltaEventOutput, WindowDetailType, WorkspaceDeleteSchedule, WorkspaceDeletionScheduleQuery, closeDatabase, createChatStreamClient, createDvinaClient, createLazySyncEngine, createSseTransport, createWsTransport, deleteDatabase, getOrCreateDatabase, reconstructConnectionNodes, reconstructEntity, uploadFile };
21293
- //# sourceMappingURL=chunk-4G7NIJ4M.js.map
21294
- //# sourceMappingURL=chunk-4G7NIJ4M.js.map
22493
+ export { AbortChatMutation, Action, AddInsightToReportMutation, Agent, AgentConnection, AgentQuery, AgentSubBuilder, Agent_ChatsQuery, AgentsQuery, Artifact, ArtifactConnection, ArtifactQuery, ArtifactSubBuilder, Artifact_ChatQuery, Artifact_Chat_DesktopDeviceQuery, Artifact_Chat_InsightQuery, Artifact_Chat_ProjectQuery, Artifact_FileQuery, Artifact_MessageQuery, Artifact_Message_ChatQuery, Artifact_Message_ContentsQuery, Artifact_Message_FeedbackQuery, ArtifactsQuery, AudioEventOutput, CancelOauthFlowMutation, CancelWorkspaceDeletionMutation, Candidate, CandidateEvidence, Chat, ChatConnection, ChatImportExecuteOutput, ChatImportPreviewOutput, ChatMessage, ChatMessageConnection, ChatMessageQuery, ChatMessageSubBuilder, ChatMessage_ArtifactsQuery, ChatMessage_ChatQuery, ChatMessage_Chat_DesktopDeviceQuery, ChatMessage_Chat_InsightQuery, ChatMessage_Chat_ProjectQuery, ChatMessage_ContentsQuery, ChatMessage_FeedbackQuery, ChatMessagesQuery, ChatQuery, ChatSubBuilder, ChatTitleEventOutput, Chat_AgentsQuery, Chat_ArtifactsQuery, Chat_DesktopDeviceQuery, Chat_DesktopDevice_DesktopBindingsQuery, Chat_InsightQuery, Chat_Insight_ReportMembersQuery, Chat_Insight_ThumbnailFileQuery, Chat_MessagesQuery, Chat_ProjectQuery, Chat_Project_DesktopBindingQuery, ChatsQuery, ConnectIntegrationMutation, ConsumePulseEventsMutation, ContentBlock, ContentMask, ContinueImportedChatMutation, ContinueInterpretationMutation, CreateAgentMutation, CreateChatMutation, CreateDatabaseMutation, CreateDocumentMutation, CreateFeedbackMutation, CreateFolderMutation, CreateInsightMutation, CreateIntegrationMutation, CreateIntegrationOutput, CreateProjectMutation, CreateReportMutation, CreateTableMutation, CreateUserSkillFileMutation, CreateUserSkillFolderMutation, CubeModel, DB_ENTITY_SCHEMA, Database, DatabaseCatalog, DatabaseCatalogConnection, DatabaseCatalogQuery, DatabaseCatalogSubBuilder, DatabaseCatalog_EngineQuery, DatabaseCatalogsQuery, DatabaseConnection, DatabaseEngine, DatabaseQuery, DatabaseSchemaQuery, DatabaseSubBuilder, Database_EngineQuery, Database_Engine_CatalogQuery, Database_TablesQuery, DatabasesQuery, DeepAnalysisUsage, DeferredDvinaQueryRef, DeleteAgentMutation, DeleteArtifactMutation, DeleteChatMutation, DeleteDatabaseMutation, DeleteDocumentMutation, DeleteFolderMutation, DeleteInsightMutation, DeleteInsightsMutation, DeleteIntegrationMutation, DeleteProjectMutation, DeleteReportMutation, DeleteTableMutation, DeleteUserSkillFileMutation, DeleteUserSkillFolderMutation, DesktopDevice, DesktopDeviceModel, DesktopDevicesQuery, DevAccessTokenOutput, DexieLiveQueryRef, DisconnectIntegrationMutation, DismissPulseEventMutation, Document, DocumentCatalog, DocumentCatalogConnection, DocumentCatalogQuery, DocumentCatalogSubBuilder, DocumentCatalog_FormatQuery, DocumentCatalogsQuery, DocumentConnection, DocumentContent, DocumentFormat, DocumentQuery, DocumentSubBuilder, Document_ContentsQuery, Document_FileQuery, Document_FormatQuery, Document_Format_CatalogQuery, Document_TablesQuery, DocumentsQuery, DvinaDatabase, DvinaModel, DvinaSdk, Evidence, ExecuteChatImportMutation, ExportQuery, ExportWithInsightIdQuery, FailedSyncEventIngestion, FeedArtifactData, FeedConnection, FeedDatabaseData, FeedDocumentData, FeedInsightData, FeedIntegrationData, FeedItem, FeedItemGenerated, FeedItemQuery, FeedItemSubBuilder, FeedItem_ActionQuery, FeedItem_DataQuery, FeedItemsQuery, FeedLiveContextData, FeedPulseData, FeedSendMessageAction, Feedback, File, FileMetaQuery, FileModel, FileQuery, FileUrlsQuery, FinalContentEventOutput, FindFitTierQuery, Folder, FolderConnection, FolderQuery, FoldersQuery, GenerateUploadUriMutation, GetCapabilityQuery, GetDevAccessTokenQuery, GetLimitQuery, GetRemainingQuery, GetTokenUsageByModelQuery, GetTokenUsageHistoryQuery, GetTokenUsageStatusQuery, GetTokenUsageStatus_WindowsQuery, GetTokenUsageStatus_Windows_DayQuery, GetTokenUsageStatus_Windows_FiveHourQuery, GetTokenUsageStatus_Windows_MonthQuery, GetTokenUsageStatus_Windows_WeekQuery, GetUsageQuery, ImportedChatSummaryOutput, InferenceRequestAudit, Insight, InsightConnection, InsightQuery, InsightSubBuilder, Insight_ChatQuery, Insight_Chat_DesktopDeviceQuery, Insight_Chat_ProjectQuery, Insight_ReportMembersQuery, Insight_ReportsQuery, Insight_ThumbnailFileQuery, InsightsQuery, Integration, IntegrationCatalog, IntegrationCatalogConnection, IntegrationCatalogQuery, IntegrationCatalogSubBuilder, IntegrationCatalogToolsQuery, IntegrationCatalog_ProviderQuery, IntegrationCatalogsQuery, IntegrationConnection, IntegrationProvider, IntegrationQuery, IntegrationSubBuilder, Integration_ProviderQuery, Integration_Provider_CatalogQuery, IntegrationsQuery, Interpretation, InterpretationConnection, InterpretationsQuery, Invocation, LiveContext, LiveContextConnection, LiveContextQuery, LiveContextSubBuilder, LiveContext_ItemsQuery, LiveContext_SourceQuery, LiveContext_Source_EvidencesQuery, LiveContextsQuery, LocalRuntimeDeviceModel, LocalRuntimeOverviewModel, LocalRuntimeOverviewQuery, LocalRuntimeOverview_DevicesQuery, LocalSandboxDeviceStatusModel, LocalSandboxDeviceStatusQuery, MUTATION_CACHE_RULES, MappedDvinaQueryRef, McpAuthUpdateModel, McpAuthUpdatesSubscription, McpClientInformation, McpCodeVerifier, McpServer, McpTokens, McpTool, MessageEndEventOutput, MessageStartEventOutput, ModelTokenUsage, Notification, NotificationConnection, NotificationQuery, NotificationsByReferenceQuery, NotificationsQuery, PRIMARY_KEY_CONFIG, PreviewChatImportMutation, PrivacyStats, PrivacyStatsQuery, ProgressSummaryEventOutput, Project, ProjectConnection, ProjectDesktopBinding, ProjectQuery, ProjectSubBuilder, Project_ChatsQuery, Project_DesktopBindingQuery, Project_DesktopBinding_DeviceQuery, ProjectsQuery, PulseAppSummaryModel, PulseAppSummaryQuery, PulseEvent, PulseEventConnection, PulseEventQuery, PulseEventSubBuilder, PulseEvent_IntegrationQuery, PulseEvent_Integration_ProviderQuery, PulseEventsQuery, PulseTriggerSettingModel, PulseTriggerSettingsQuery, QueryQuery, QueryWithInsightIdQuery, QueryWithMessageIdQuery, ReanalyzeDocumentMutation, ReasoningEventOutput, RefineAgentInstructionMutation, RefineSkillInstructionMutation, RefreshDatabaseSchemaMutation, RefreshInsightMutation, RegisterDesktopDeviceMutation, ReinterpretSourceMutation, ReinterpretSourcesOfuserMutation, Relation, RelocateInsightMutation, RemoveInsightFromReportMutation, Report, ReportConnection, ReportMember, ReportQuery, ReportSubBuilder, Report_InsightsQuery, Report_LayoutQuery, ReportsQuery, ResetWorkspaceMutation, ResolvePulseEventMutation, ResolvedFileUrl, ScheduleWorkspaceDeletionMutation, SendMessageMutation, SetDatabasePrimaryKeyMutation, StreamEventSchemaAnchor, StreamMessageContentOutput, StreamMessageOutput, SyncEngine, SyncEvent, SyncEventCursor, SyncProjectDesktopBindingMutation, TABLE_TO_TYPENAME, TYPENAME_TO_TABLE, Table, TableConnection, TableQuery, TableSubBuilder, Table_DatabaseQuery, Table_Database_EngineQuery, Table_DocumentQuery, Table_Document_ContentsQuery, Table_Document_FileQuery, Table_Document_FormatQuery, Table_FromRelationsQuery, Table_ToRelationsQuery, TablesQuery, TextBlockEventOutput, TextDeltaEventOutput, TokenUsage, TokenUsageUpdatesSubscription, ToolInputDeltaEventOutput, ToolResultArtifactOutput, ToolResultEventOutput, ToolStartEventOutput, UpdateAgentMutation, UpdateArtifactNameMutation, UpdateChatMutation, UpdateDatabaseMutation, UpdateDocumentMutation, UpdateFolderMutation, UpdateInsightInReportMutation, UpdateInsightMutation, UpdateInsightThumbnailMutation, UpdateInterpMutation, UpdateLiveContextMutation, UpdateProjectMutation, UpdatePulseTriggerMutation, UpdateReportMutation, UpdateTableMutation, UpdateUserSkillFileMutation, UpdateUserSkillFolderMutation, UsageMetaOutput, UsageStatus, UsageWindowsStatusType, UserSkillFile, UserSkillFileModel, UserSkillFileQuery, UserSkillFilesQuery, UserSkillFolder, UserSkillFolderModel, UserSkillFolderQuery, UserSkillFoldersQuery, WidgetBlockCompleteEventOutput, WidgetBlockErrorEventOutput, WidgetBlockStartEventOutput, WidgetHtmlDeltaEventOutput, WindowDetailType, WorkspaceDeleteSchedule, WorkspaceDeletionScheduleQuery, closeDatabase, createChatStreamClient, createDvinaClient, createLazySyncEngine, createSseTransport, createWsTransport, deleteDatabase, getOrCreateDatabase, reconstructConnectionNodes, reconstructEntity, uploadFile };
22494
+ //# sourceMappingURL=chunk-U3M3VJSQ.js.map
22495
+ //# sourceMappingURL=chunk-U3M3VJSQ.js.map