@dvina/sdk 4.0.204 → 4.0.209

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-3SAYA2VU.js +4 -0
  2. package/dist/{_generated_documents-F3ZIS3JM.js.map → _generated_documents-3SAYA2VU.js.map} +1 -1
  3. package/dist/{_generated_documents-CRKVFZQI.cjs → _generated_documents-XGKMTVFS.cjs} +621 -617
  4. package/dist/{_generated_documents-CRKVFZQI.cjs.map → _generated_documents-XGKMTVFS.cjs.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-SQU7RYLF.cjs → chunk-5VW6LFR4.cjs} +1000 -817
  10. package/dist/chunk-5VW6LFR4.cjs.map +1 -0
  11. package/dist/{chunk-CHUY7Y2H.js → chunk-BZVKKVUX.js} +36 -29
  12. package/dist/chunk-BZVKKVUX.js.map +1 -0
  13. package/dist/{chunk-YWW2VBNQ.js → chunk-V75R2VZY.js} +419 -236
  14. package/dist/chunk-V75R2VZY.js.map +1 -0
  15. package/dist/{chunk-F4NHYL2R.cjs → chunk-YDFRY555.cjs} +42 -34
  16. package/dist/chunk-YDFRY555.cjs.map +1 -0
  17. package/dist/{client-BsG-S2_P.d.cts → client-CcOfALGK.d.cts} +82 -58
  18. package/dist/{client-cnmS1OmF.d.ts → client-YW3i-iSh.d.ts} +82 -58
  19. package/dist/index.cjs +463 -459
  20. package/dist/index.d.cts +77 -69
  21. package/dist/index.d.ts +77 -69
  22. package/dist/index.js +2 -2
  23. package/package.json +1 -1
  24. package/dist/_generated_documents-F3ZIS3JM.js +0 -4
  25. package/dist/chunk-CHUY7Y2H.js.map +0 -1
  26. package/dist/chunk-F4NHYL2R.cjs.map +0 -1
  27. package/dist/chunk-SQU7RYLF.cjs.map +0 -1
  28. package/dist/chunk-YWW2VBNQ.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, 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-CHUY7Y2H.js';
5
+ import { ChatConnectionFragmentDoc, ChatFragmentDoc, FileFragmentDoc, ChatMessageFragmentDoc, AgentConnectionFragmentDoc, ArtifactConnectionFragmentDoc, DesktopDeviceFragmentDoc, InsightFragmentDoc, ChatMessageConnectionFragmentDoc, ProjectFragmentDoc, ContentBlockFragmentDoc, FeedbackFragmentDoc, DatabaseEngineFragmentDoc, TableConnectionFragmentDoc, ProjectDesktopBindingFragmentDoc, 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, 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, DesktopDeviceDocument, DesktopDevice_ChatsDocument, DesktopDevice_DesktopBindingsDocument, 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, LocalSandboxDeviceStatusesDocument, 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-BZVKKVUX.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 = "1438f7de63b12149";
7562
+ var SCHEMA_HASH = "6465f4fa32a46977";
7563
7563
  var DB_ENTITY_SCHEMA = {
7564
7564
  actions: "id",
7565
7565
  agents: "id",
@@ -7575,7 +7575,6 @@ var DB_ENTITY_SCHEMA = {
7575
7575
  databaseEngines: "key",
7576
7576
  databases: "id",
7577
7577
  deepAnalysisUsages: "id",
7578
- desktopDeviceModels: "id",
7579
7578
  desktopDevices: "id",
7580
7579
  documentCatalogs: "formatKey",
7581
7580
  documentContents: "id",
@@ -7605,8 +7604,6 @@ var DB_ENTITY_SCHEMA = {
7605
7604
  interpretations: "id",
7606
7605
  invocations: "id",
7607
7606
  liveContexts: "id",
7608
- localRuntimeDeviceModels: "id",
7609
- localRuntimeOverviewModels: "id",
7610
7607
  localSandboxDeviceStatusModels: "deviceId",
7611
7608
  mcpClientInformations: "id",
7612
7609
  mcpCodeVerifiers: "id",
@@ -7652,7 +7649,6 @@ var TYPENAME_TO_TABLE = {
7652
7649
  DatabaseEngine: "databaseEngines",
7653
7650
  DeepAnalysisUsage: "deepAnalysisUsages",
7654
7651
  DesktopDevice: "desktopDevices",
7655
- DesktopDeviceModel: "desktopDeviceModels",
7656
7652
  Document: "documents",
7657
7653
  DocumentCatalog: "documentCatalogs",
7658
7654
  DocumentContent: "documentContents",
@@ -7681,8 +7677,6 @@ var TYPENAME_TO_TABLE = {
7681
7677
  Interpretation: "interpretations",
7682
7678
  Invocation: "invocations",
7683
7679
  LiveContext: "liveContexts",
7684
- LocalRuntimeDeviceModel: "localRuntimeDeviceModels",
7685
- LocalRuntimeOverviewModel: "localRuntimeOverviewModels",
7686
7680
  LocalSandboxDeviceStatusModel: "localSandboxDeviceStatusModels",
7687
7681
  McpClientInformation: "mcpClientInformations",
7688
7682
  McpCodeVerifier: "mcpCodeVerifiers",
@@ -7727,7 +7721,6 @@ var TABLE_TO_TYPENAME = {
7727
7721
  databaseEngines: "DatabaseEngine",
7728
7722
  databases: "Database",
7729
7723
  deepAnalysisUsages: "DeepAnalysisUsage",
7730
- desktopDeviceModels: "DesktopDeviceModel",
7731
7724
  desktopDevices: "DesktopDevice",
7732
7725
  documentCatalogs: "DocumentCatalog",
7733
7726
  documentContents: "DocumentContent",
@@ -7757,8 +7750,6 @@ var TABLE_TO_TYPENAME = {
7757
7750
  interpretations: "Interpretation",
7758
7751
  invocations: "Invocation",
7759
7752
  liveContexts: "LiveContext",
7760
- localRuntimeDeviceModels: "LocalRuntimeDeviceModel",
7761
- localRuntimeOverviewModels: "LocalRuntimeOverviewModel",
7762
7753
  localSandboxDeviceStatusModels: "LocalSandboxDeviceStatusModel",
7763
7754
  mcpClientInformations: "McpClientInformation",
7764
7755
  mcpCodeVerifiers: "McpCodeVerifier",
@@ -10286,6 +10277,9 @@ function createLazySyncEngine(httpTransport, sseUrl, syncPolicyUrl, getToken, ge
10286
10277
  });
10287
10278
  }
10288
10279
  return realEngine;
10280
+ }).catch((error) => {
10281
+ initPromise = void 0;
10282
+ throw error;
10289
10283
  });
10290
10284
  return initPromise;
10291
10285
  }
@@ -10368,7 +10362,7 @@ function createLazySyncEngine(httpTransport, sseUrl, syncPolicyUrl, getToken, ge
10368
10362
  var DEFAULT_UPLOAD_CONTENT_TYPE = "application/octet-stream";
10369
10363
  var AZURE_BLOCK_BLOB_TYPE = "BlockBlob";
10370
10364
  async function uploadFile(request, getToken, file, name, options) {
10371
- const { GenerateUploadUriDocument: GenerateUploadUriDocument2 } = await import('./_generated_documents-F3ZIS3JM.js');
10365
+ const { GenerateUploadUriDocument: GenerateUploadUriDocument2 } = await import('./_generated_documents-3SAYA2VU.js');
10372
10366
  const key = `upload_${Date.now()}`;
10373
10367
  const response = await request(
10374
10368
  GenerateUploadUriDocument2,
@@ -10515,6 +10509,8 @@ function isBrowserRuntime() {
10515
10509
 
10516
10510
  // src/client.ts
10517
10511
  var DEFAULT_BASE_URL = "api.dvina.ai";
10512
+ var DB_INIT_TOKEN_POLL_INTERVAL_MS = 100;
10513
+ var DB_INIT_TOKEN_TIMEOUT_MS = 15e3;
10518
10514
  function resolveGetToken(options) {
10519
10515
  if ("getToken" in options && options.getToken) {
10520
10516
  return options.getToken;
@@ -10527,6 +10523,30 @@ function resolveLanguage(language) {
10527
10523
  if (typeof language === "function") return language;
10528
10524
  return () => language;
10529
10525
  }
10526
+ function hasUsableToken(token) {
10527
+ return typeof token === "string" && token.trim().length > 0;
10528
+ }
10529
+ function sleep(ms) {
10530
+ return new Promise((resolve) => setTimeout(resolve, ms));
10531
+ }
10532
+ async function waitForDatabaseToken(getToken) {
10533
+ const deadlineAt = Date.now() + DB_INIT_TOKEN_TIMEOUT_MS;
10534
+ let lastError;
10535
+ for (; ; ) {
10536
+ try {
10537
+ const token = await getToken();
10538
+ if (hasUsableToken(token)) {
10539
+ return token;
10540
+ }
10541
+ } catch (error) {
10542
+ lastError = error;
10543
+ }
10544
+ if (Date.now() >= deadlineAt) {
10545
+ throw lastError instanceof Error ? lastError : new Error("Authentication token not available yet.");
10546
+ }
10547
+ await sleep(DB_INIT_TOKEN_POLL_INTERVAL_MS);
10548
+ }
10549
+ }
10530
10550
  function createDvinaClient(options) {
10531
10551
  const baseUrl = options.baseUrl ?? DEFAULT_BASE_URL;
10532
10552
  const isLocalhost = baseUrl.includes("localhost") || baseUrl.includes("127.0.0.1");
@@ -10573,7 +10593,7 @@ function createDvinaClient(options) {
10573
10593
  function getDb() {
10574
10594
  if (db) return Promise.resolve(db);
10575
10595
  if (dbInitPromise) return dbInitPromise;
10576
- dbInitPromise = getToken().then((token) => getOrCreateDatabase(token)).then((database) => {
10596
+ dbInitPromise = waitForDatabaseToken(getToken).then((token) => getOrCreateDatabase(token)).then((database) => {
10577
10597
  db = database;
10578
10598
  return db;
10579
10599
  }).catch((error) => {
@@ -11311,6 +11331,7 @@ var CandidateEvidence = class extends DvinaModel {
11311
11331
  var Chat = class extends DvinaModel {
11312
11332
  id;
11313
11333
  name;
11334
+ reasoningEffort;
11314
11335
  piiSanitizationEnabled;
11315
11336
  piiMaskRules;
11316
11337
  closedAt;
@@ -11321,10 +11342,12 @@ var Chat = class extends DvinaModel {
11321
11342
  createdAt;
11322
11343
  updatedAt;
11323
11344
  sourceProvider;
11345
+ _desktopDevice;
11324
11346
  constructor(request, data, syncEngine, baseUrl) {
11325
11347
  super(request, syncEngine, baseUrl);
11326
11348
  this.id = data.id;
11327
11349
  this.name = data.name;
11350
+ this.reasoningEffort = data.reasoningEffort;
11328
11351
  this.piiSanitizationEnabled = data.piiSanitizationEnabled;
11329
11352
  this.piiMaskRules = data.piiMaskRules ?? void 0;
11330
11353
  this.closedAt = data.closedAt ? new Date(data.closedAt) : void 0;
@@ -11335,6 +11358,11 @@ var Chat = class extends DvinaModel {
11335
11358
  this.createdAt = new Date(data.createdAt);
11336
11359
  this.updatedAt = new Date(data.updatedAt);
11337
11360
  this.sourceProvider = data.sourceProvider ?? void 0;
11361
+ this._desktopDevice = data.desktopDevice ?? void 0;
11362
+ }
11363
+ /** ID reference for lazy-fetching the desktopDevice relation. */
11364
+ get desktopDeviceId() {
11365
+ return this._desktopDevice?.id;
11338
11366
  }
11339
11367
  /** Query the agents relation for this Chat. Call .fetch() or .watch() to execute. */
11340
11368
  agents(variables) {
@@ -11631,30 +11659,13 @@ var DesktopDevice = class extends DvinaModel {
11631
11659
  this.createdAt = new Date(data.createdAt);
11632
11660
  this.updatedAt = new Date(data.updatedAt);
11633
11661
  }
11634
- };
11635
- var DesktopDeviceModel = class extends DvinaModel {
11636
- deviceId;
11637
- deviceLabel;
11638
- platform;
11639
- deviceType;
11640
- manufacturer;
11641
- modelName;
11642
- modelYear;
11643
- appVersion;
11644
- lastSeenAt;
11645
- state;
11646
- constructor(request, data, syncEngine, baseUrl) {
11647
- super(request, syncEngine, baseUrl);
11648
- this.deviceId = data.deviceId;
11649
- this.deviceLabel = data.deviceLabel;
11650
- this.platform = data.platform ?? void 0;
11651
- this.deviceType = data.deviceType ?? void 0;
11652
- this.manufacturer = data.manufacturer ?? void 0;
11653
- this.modelName = data.modelName ?? void 0;
11654
- this.modelYear = data.modelYear ?? void 0;
11655
- this.appVersion = data.appVersion ?? void 0;
11656
- this.lastSeenAt = data.lastSeenAt ?? void 0;
11657
- this.state = data.state;
11662
+ /** Query the chats relation for this DesktopDevice. Call .fetch() or .watch() to execute. */
11663
+ chats(variables) {
11664
+ return new DesktopDevice_ChatsQuery(this._request, this._syncEngine, { ...variables, id: this.id }, this._baseUrl);
11665
+ }
11666
+ /** Query the desktopBindings relation for this DesktopDevice. Call .fetch() or .watch() to execute. */
11667
+ desktopBindings(variables) {
11668
+ return new DesktopDevice_DesktopBindingsQuery(this._request, this._syncEngine, { ...variables, id: this.id }, this._baseUrl);
11658
11669
  }
11659
11670
  };
11660
11671
  var DevAccessTokenOutput = class extends DvinaModel {
@@ -12339,48 +12350,6 @@ var LiveContext = class extends DvinaModel {
12339
12350
  return new LiveContext_SourceQuery(this._request, this._syncEngine, { ...variables, id: this.id }, this._baseUrl);
12340
12351
  }
12341
12352
  };
12342
- var LocalRuntimeDeviceModel = class extends DvinaModel {
12343
- deviceId;
12344
- label;
12345
- platform;
12346
- deviceType;
12347
- manufacturer;
12348
- modelName;
12349
- modelYear;
12350
- lastSeenAt;
12351
- state;
12352
- isPreferred;
12353
- isResolved;
12354
- constructor(request, data, syncEngine, baseUrl) {
12355
- super(request, syncEngine, baseUrl);
12356
- this.deviceId = data.deviceId;
12357
- this.label = data.label;
12358
- this.platform = data.platform ?? void 0;
12359
- this.deviceType = data.deviceType ?? void 0;
12360
- this.manufacturer = data.manufacturer ?? void 0;
12361
- this.modelName = data.modelName ?? void 0;
12362
- this.modelYear = data.modelYear ?? void 0;
12363
- this.lastSeenAt = data.lastSeenAt ?? void 0;
12364
- this.state = data.state;
12365
- this.isPreferred = data.isPreferred;
12366
- this.isResolved = data.isResolved;
12367
- }
12368
- };
12369
- var LocalRuntimeOverviewModel = class extends DvinaModel {
12370
- state;
12371
- resolvedDeviceId;
12372
- resolvedDeviceLabel;
12373
- connectedDeviceCount;
12374
- devices;
12375
- constructor(request, data, syncEngine, baseUrl) {
12376
- super(request, syncEngine, baseUrl);
12377
- this.state = data.state;
12378
- this.resolvedDeviceId = data.resolvedDeviceId ?? void 0;
12379
- this.resolvedDeviceLabel = data.resolvedDeviceLabel ?? void 0;
12380
- this.connectedDeviceCount = data.connectedDeviceCount;
12381
- this.devices = Array.isArray(data.devices) ? data.devices.filter(Boolean).map((item) => new LocalRuntimeDeviceModel(request, item, syncEngine, baseUrl)) : [];
12382
- }
12383
- };
12384
12353
  var LocalSandboxDeviceStatusModel = class extends DvinaModel {
12385
12354
  state;
12386
12355
  deviceId;
@@ -12621,6 +12590,10 @@ var ProjectDesktopBinding = class extends DvinaModel {
12621
12590
  project() {
12622
12591
  return new ProjectQuery(this._request, this._syncEngine, { id: this.projectId }, this._baseUrl);
12623
12592
  }
12593
+ /** Lazy-fetch the device relation. Call .fetch() or .watch() to execute. */
12594
+ device() {
12595
+ return new DesktopDeviceQuery(this._request, this._syncEngine, { id: this.deviceId }, this._baseUrl);
12596
+ }
12624
12597
  };
12625
12598
  var PulseAppSummaryModel = class extends DvinaModel {
12626
12599
  activeTriggerCount;
@@ -13324,6 +13297,17 @@ var DatabaseConnection = class extends Connection {
13324
13297
  );
13325
13298
  }
13326
13299
  };
13300
+ var DesktopDeviceConnection = class extends Connection {
13301
+ constructor(request, fetch2, data, syncEngine, baseUrl) {
13302
+ super(
13303
+ request,
13304
+ fetch2,
13305
+ data.nodes?.map((node) => new DesktopDevice(request, node, syncEngine, baseUrl)) ?? [],
13306
+ new PageInfo(data.pageInfo),
13307
+ data.totalCount ?? void 0
13308
+ );
13309
+ }
13310
+ };
13327
13311
  var DocumentCatalogConnection = class extends Connection {
13328
13312
  constructor(request, fetch2, data, syncEngine, baseUrl) {
13329
13313
  super(
@@ -13500,7 +13484,7 @@ var AgentSubBuilder = class {
13500
13484
  fieldArguments: info.fieldArguments,
13501
13485
  syncMetadata: {
13502
13486
  entityType: "chats",
13503
- requiredFields: ["id", "name", "piiSanitizationEnabled", "createdAt", "updatedAt"]
13487
+ requiredFields: ["id", "name", "reasoningEffort", "piiSanitizationEnabled", "createdAt", "updatedAt"]
13504
13488
  },
13505
13489
  children,
13506
13490
  modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu),
@@ -13531,7 +13515,7 @@ var ArtifactSubBuilder = class {
13531
13515
  fieldArguments: info.fieldArguments,
13532
13516
  syncMetadata: {
13533
13517
  entityType: "chats",
13534
- requiredFields: ["id", "name", "piiSanitizationEnabled", "createdAt", "updatedAt"]
13518
+ requiredFields: ["id", "name", "reasoningEffort", "piiSanitizationEnabled", "createdAt", "updatedAt"]
13535
13519
  },
13536
13520
  children,
13537
13521
  modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu)
@@ -13642,8 +13626,14 @@ var ChatSubBuilder = class {
13642
13626
  return this;
13643
13627
  }
13644
13628
  /** Include desktopDevice in the parent query. */
13645
- desktopDevice(variables) {
13629
+ desktopDevice(variables, builder) {
13646
13630
  const info = extractIncludeInfo(Chat_DesktopDeviceDocument, "desktopDevice", ["id"]);
13631
+ let children;
13632
+ if (builder) {
13633
+ const sub = new DesktopDeviceSubBuilder();
13634
+ builder(sub);
13635
+ children = sub._includes;
13636
+ }
13647
13637
  this._includes.push({
13648
13638
  fieldName: "desktopDevice",
13649
13639
  fragmentDoc: DesktopDeviceFragmentDoc,
@@ -13656,6 +13646,7 @@ var ChatSubBuilder = class {
13656
13646
  entityType: "desktopDevices",
13657
13647
  requiredFields: ["id", "deviceLabel", "createdAt", "updatedAt"]
13658
13648
  },
13649
+ children,
13659
13650
  modelFactory: (req, data, se, bu) => new DesktopDevice(req, data, se, bu)
13660
13651
  });
13661
13652
  return this;
@@ -13789,7 +13780,7 @@ var ChatMessageSubBuilder = class {
13789
13780
  fieldArguments: info.fieldArguments,
13790
13781
  syncMetadata: {
13791
13782
  entityType: "chats",
13792
- requiredFields: ["id", "name", "piiSanitizationEnabled", "createdAt", "updatedAt"]
13783
+ requiredFields: ["id", "name", "reasoningEffort", "piiSanitizationEnabled", "createdAt", "updatedAt"]
13793
13784
  },
13794
13785
  children,
13795
13786
  modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu)
@@ -13908,6 +13899,56 @@ var DatabaseCatalogSubBuilder = class {
13908
13899
  return this;
13909
13900
  }
13910
13901
  };
13902
+ var DesktopDeviceSubBuilder = class {
13903
+ /** @internal */
13904
+ _includes = [];
13905
+ /** Include chats in the parent query. */
13906
+ chats(variables, builder) {
13907
+ const info = extractIncludeInfo(DesktopDevice_ChatsDocument, "chats", ["id"]);
13908
+ let children;
13909
+ if (builder) {
13910
+ const sub = new ChatSubBuilder();
13911
+ builder(sub);
13912
+ children = sub._includes;
13913
+ }
13914
+ this._includes.push({
13915
+ fieldName: "chats",
13916
+ fragmentDoc: ChatConnectionFragmentDoc,
13917
+ variables,
13918
+ isConnection: true,
13919
+ isList: false,
13920
+ variableDefinitions: info.variableDefinitions,
13921
+ fieldArguments: info.fieldArguments,
13922
+ syncMetadata: {
13923
+ entityType: "chats",
13924
+ requiredFields: ["id", "name", "reasoningEffort", "piiSanitizationEnabled", "createdAt", "updatedAt"]
13925
+ },
13926
+ children,
13927
+ modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu),
13928
+ connectionFactory: (req, fetch2, data, se, bu) => new ChatConnection(req, fetch2, data, se, bu)
13929
+ });
13930
+ return this;
13931
+ }
13932
+ /** Include desktopBindings in the parent query. */
13933
+ desktopBindings(variables) {
13934
+ const info = extractIncludeInfo(DesktopDevice_DesktopBindingsDocument, "desktopBindings", ["id"]);
13935
+ this._includes.push({
13936
+ fieldName: "desktopBindings",
13937
+ fragmentDoc: ProjectDesktopBindingFragmentDoc,
13938
+ variables,
13939
+ isConnection: false,
13940
+ isList: true,
13941
+ variableDefinitions: info.variableDefinitions,
13942
+ fieldArguments: info.fieldArguments,
13943
+ syncMetadata: {
13944
+ entityType: "projectDesktopBindings",
13945
+ requiredFields: ["projectId", "deviceId", "kind", "rootPath", "createdAt", "updatedAt"]
13946
+ },
13947
+ modelFactory: (req, data, se, bu) => new ProjectDesktopBinding(req, data, se, bu)
13948
+ });
13949
+ return this;
13950
+ }
13951
+ };
13911
13952
  var DocumentSubBuilder = class {
13912
13953
  /** @internal */
13913
13954
  _includes = [];
@@ -14083,7 +14124,7 @@ var InsightSubBuilder = class {
14083
14124
  fieldArguments: info.fieldArguments,
14084
14125
  syncMetadata: {
14085
14126
  entityType: "chats",
14086
- requiredFields: ["id", "name", "piiSanitizationEnabled", "createdAt", "updatedAt"]
14127
+ requiredFields: ["id", "name", "reasoningEffort", "piiSanitizationEnabled", "createdAt", "updatedAt"]
14087
14128
  },
14088
14129
  children,
14089
14130
  modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu)
@@ -14266,7 +14307,7 @@ var ProjectSubBuilder = class {
14266
14307
  fieldArguments: info.fieldArguments,
14267
14308
  syncMetadata: {
14268
14309
  entityType: "chats",
14269
- requiredFields: ["id", "name", "piiSanitizationEnabled", "createdAt", "updatedAt"]
14310
+ requiredFields: ["id", "name", "reasoningEffort", "piiSanitizationEnabled", "createdAt", "updatedAt"]
14270
14311
  },
14271
14312
  children,
14272
14313
  modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu),
@@ -14776,7 +14817,7 @@ var RegisterDesktopDeviceMutation = class extends Request {
14776
14817
  async fetch(variables, options) {
14777
14818
  const response = await this._syncEngine.mutate(RegisterDesktopDeviceDocument, variables, MUTATION_CACHE_RULES["registerDesktopDevice"]);
14778
14819
  const data = response.registerDesktopDevice;
14779
- return new DesktopDeviceModel(this._request, data, this._syncEngine, this._baseUrl);
14820
+ return new DesktopDevice(this._request, data, this._syncEngine, this._baseUrl);
14780
14821
  }
14781
14822
  };
14782
14823
  var ReinterpretSourceMutation = class extends Request {
@@ -15031,7 +15072,7 @@ var AgentQuery = class extends Request {
15031
15072
  fieldArguments: info.fieldArguments,
15032
15073
  syncMetadata: {
15033
15074
  entityType: "chats",
15034
- requiredFields: ["id", "name", "piiSanitizationEnabled", "createdAt", "updatedAt"]
15075
+ requiredFields: ["id", "name", "reasoningEffort", "piiSanitizationEnabled", "createdAt", "updatedAt"]
15035
15076
  },
15036
15077
  children,
15037
15078
  modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu),
@@ -15163,7 +15204,7 @@ var AgentsQuery = class _AgentsQuery extends Request {
15163
15204
  fieldArguments: info.fieldArguments,
15164
15205
  syncMetadata: {
15165
15206
  entityType: "chats",
15166
- requiredFields: ["id", "name", "piiSanitizationEnabled", "createdAt", "updatedAt"]
15207
+ requiredFields: ["id", "name", "reasoningEffort", "piiSanitizationEnabled", "createdAt", "updatedAt"]
15167
15208
  },
15168
15209
  children,
15169
15210
  modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu),
@@ -15240,7 +15281,7 @@ var ArtifactQuery = class extends Request {
15240
15281
  fieldArguments: info.fieldArguments,
15241
15282
  syncMetadata: {
15242
15283
  entityType: "chats",
15243
- requiredFields: ["id", "name", "piiSanitizationEnabled", "createdAt", "updatedAt"]
15284
+ requiredFields: ["id", "name", "reasoningEffort", "piiSanitizationEnabled", "createdAt", "updatedAt"]
15244
15285
  },
15245
15286
  children,
15246
15287
  modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu)
@@ -15631,7 +15672,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends Request {
15631
15672
  fieldArguments: info.fieldArguments,
15632
15673
  syncMetadata: {
15633
15674
  entityType: "chats",
15634
- requiredFields: ["id", "name", "piiSanitizationEnabled", "createdAt", "updatedAt"]
15675
+ requiredFields: ["id", "name", "reasoningEffort", "piiSanitizationEnabled", "createdAt", "updatedAt"]
15635
15676
  },
15636
15677
  children,
15637
15678
  modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu)
@@ -15788,8 +15829,14 @@ var ChatQuery = class extends Request {
15788
15829
  return this;
15789
15830
  }
15790
15831
  /** Include desktopDevice in this query (Smart Fetch — single HTTP request). */
15791
- desktopDevice(variables) {
15832
+ desktopDevice(variables, builder) {
15792
15833
  const info = extractIncludeInfo(Chat_DesktopDeviceDocument, "desktopDevice", ["id"]);
15834
+ let children;
15835
+ if (builder) {
15836
+ const sub = new DesktopDeviceSubBuilder();
15837
+ builder(sub);
15838
+ children = sub._includes;
15839
+ }
15793
15840
  this._includes.push({
15794
15841
  fieldName: "desktopDevice",
15795
15842
  fragmentDoc: DesktopDeviceFragmentDoc,
@@ -15802,6 +15849,7 @@ var ChatQuery = class extends Request {
15802
15849
  entityType: "desktopDevices",
15803
15850
  requiredFields: ["id", "deviceLabel", "createdAt", "updatedAt"]
15804
15851
  },
15852
+ children,
15805
15853
  modelFactory: (req, data, se, bu) => new DesktopDevice(req, data, se, bu)
15806
15854
  });
15807
15855
  return this;
@@ -16271,7 +16319,7 @@ var ChatMessageQuery = class extends Request {
16271
16319
  fieldArguments: info.fieldArguments,
16272
16320
  syncMetadata: {
16273
16321
  entityType: "chats",
16274
- requiredFields: ["id", "name", "piiSanitizationEnabled", "createdAt", "updatedAt"]
16322
+ requiredFields: ["id", "name", "reasoningEffort", "piiSanitizationEnabled", "createdAt", "updatedAt"]
16275
16323
  },
16276
16324
  children,
16277
16325
  modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu)
@@ -16630,7 +16678,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends Request {
16630
16678
  fieldArguments: info.fieldArguments,
16631
16679
  syncMetadata: {
16632
16680
  entityType: "chats",
16633
- requiredFields: ["id", "name", "piiSanitizationEnabled", "createdAt", "updatedAt"]
16681
+ requiredFields: ["id", "name", "reasoningEffort", "piiSanitizationEnabled", "createdAt", "updatedAt"]
16634
16682
  },
16635
16683
  children,
16636
16684
  modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu)
@@ -16797,8 +16845,14 @@ var ChatsQuery = class _ChatsQuery extends Request {
16797
16845
  return this;
16798
16846
  }
16799
16847
  /** Include desktopDevice in this query (Smart Fetch — single HTTP request). */
16800
- desktopDevice(variables) {
16848
+ desktopDevice(variables, builder) {
16801
16849
  const info = extractIncludeInfo(Chat_DesktopDeviceDocument, "desktopDevice", ["id"]);
16850
+ let children;
16851
+ if (builder) {
16852
+ const sub = new DesktopDeviceSubBuilder();
16853
+ builder(sub);
16854
+ children = sub._includes;
16855
+ }
16802
16856
  this._includes.push({
16803
16857
  fieldName: "desktopDevice",
16804
16858
  fragmentDoc: DesktopDeviceFragmentDoc,
@@ -16811,6 +16865,7 @@ var ChatsQuery = class _ChatsQuery extends Request {
16811
16865
  entityType: "desktopDevices",
16812
16866
  requiredFields: ["id", "deviceLabel", "createdAt", "updatedAt"]
16813
16867
  },
16868
+ children,
16814
16869
  modelFactory: (req, data, se, bu) => new DesktopDevice(req, data, se, bu)
16815
16870
  });
16816
16871
  return this;
@@ -17393,7 +17448,154 @@ var DatabasesQuery = class _DatabasesQuery extends Request {
17393
17448
  return this;
17394
17449
  }
17395
17450
  };
17396
- var DesktopDevicesQuery = class extends Request {
17451
+ var DesktopDeviceQuery = class extends Request {
17452
+ _variables;
17453
+ _includes = [];
17454
+ constructor(request, syncEngine, variables = {}, baseUrl) {
17455
+ super(request, syncEngine, void 0, baseUrl);
17456
+ this._variables = variables;
17457
+ }
17458
+ async fetch(options) {
17459
+ const variables = this._variables;
17460
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(DesktopDeviceDocument, "desktopDevice", this._includes, variables);
17461
+ const response = await this._syncEngine.query(queryDoc, mergedVars, "desktopDevice");
17462
+ const data = response.desktopDevice;
17463
+ const instance = new DesktopDevice(this._request, data, this._syncEngine, this._baseUrl);
17464
+ if (this._includes.length > 0) {
17465
+ hydrateIncludes(instance, data, this._includes, this._request, this._syncEngine, this._baseUrl);
17466
+ }
17467
+ return instance;
17468
+ }
17469
+ watch(options) {
17470
+ const variables = this._variables;
17471
+ const includes = this._includes;
17472
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(DesktopDeviceDocument, "desktopDevice", includes, variables);
17473
+ const raw = this._syncEngine.watch(
17474
+ queryDoc,
17475
+ mergedVars,
17476
+ "desktopDevice",
17477
+ async (db) => {
17478
+ const vars = variables;
17479
+ const pkField = getPrimaryKeyField("desktopDevices");
17480
+ const entityKey = Array.isArray(pkField) ? pkField.map((field) => vars?.[field]) : vars?.[pkField];
17481
+ const hasEntityKey = Array.isArray(entityKey) ? entityKey.every((part) => part !== void 0 && part !== null) : entityKey !== void 0 && entityKey !== null;
17482
+ const entity = hasEntityKey ? await db.table("desktopDevices").get(entityKey) : void 0;
17483
+ if (includes.length > 0 && entity) {
17484
+ const parentId = Array.isArray(entityKey) ? entityKey.map((part) => String(part)).join(":") : String(entityKey);
17485
+ const result = await reconstructEntity(db, "desktopDevices", parentId, includes);
17486
+ return { desktopDevice: result };
17487
+ }
17488
+ return { desktopDevice: entity ?? null };
17489
+ }
17490
+ );
17491
+ return new MappedDvinaQueryRef(raw, (response) => {
17492
+ const data = response.desktopDevice;
17493
+ const instance = new DesktopDevice(this._request, data, this._syncEngine, this._baseUrl);
17494
+ if (includes.length > 0) {
17495
+ hydrateIncludes(instance, data, includes, this._request, this._syncEngine, this._baseUrl);
17496
+ }
17497
+ return instance;
17498
+ });
17499
+ }
17500
+ /** Include chats in this query (Smart Fetch — single HTTP request). */
17501
+ chats(variables, builder) {
17502
+ const info = extractIncludeInfo(DesktopDevice_ChatsDocument, "chats", ["id"]);
17503
+ let children;
17504
+ if (builder) {
17505
+ const sub = new ChatSubBuilder();
17506
+ builder(sub);
17507
+ children = sub._includes;
17508
+ }
17509
+ this._includes.push({
17510
+ fieldName: "chats",
17511
+ fragmentDoc: ChatConnectionFragmentDoc,
17512
+ variables,
17513
+ isConnection: true,
17514
+ isList: false,
17515
+ variableDefinitions: info.variableDefinitions,
17516
+ fieldArguments: info.fieldArguments,
17517
+ syncMetadata: {
17518
+ entityType: "chats",
17519
+ requiredFields: ["id", "name", "reasoningEffort", "piiSanitizationEnabled", "createdAt", "updatedAt"]
17520
+ },
17521
+ children,
17522
+ modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu),
17523
+ connectionFactory: (req, fetch2, data, se, bu) => new ChatConnection(req, fetch2, data, se, bu)
17524
+ });
17525
+ return this;
17526
+ }
17527
+ /** Include desktopBindings in this query (Smart Fetch — single HTTP request). */
17528
+ desktopBindings(variables) {
17529
+ const info = extractIncludeInfo(DesktopDevice_DesktopBindingsDocument, "desktopBindings", ["id"]);
17530
+ this._includes.push({
17531
+ fieldName: "desktopBindings",
17532
+ fragmentDoc: ProjectDesktopBindingFragmentDoc,
17533
+ variables,
17534
+ isConnection: false,
17535
+ isList: true,
17536
+ variableDefinitions: info.variableDefinitions,
17537
+ fieldArguments: info.fieldArguments,
17538
+ syncMetadata: {
17539
+ entityType: "projectDesktopBindings",
17540
+ requiredFields: ["projectId", "deviceId", "kind", "rootPath", "createdAt", "updatedAt"]
17541
+ },
17542
+ modelFactory: (req, data, se, bu) => new ProjectDesktopBinding(req, data, se, bu)
17543
+ });
17544
+ return this;
17545
+ }
17546
+ };
17547
+ var DesktopDevice_ChatsQuery = class _DesktopDevice_ChatsQuery extends Request {
17548
+ _variables;
17549
+ constructor(request, syncEngine, variables = {}, baseUrl) {
17550
+ super(request, syncEngine, void 0, baseUrl);
17551
+ this._variables = variables;
17552
+ }
17553
+ async fetch(options) {
17554
+ const variables = this._variables;
17555
+ const response = await this._syncEngine.query(DesktopDevice_ChatsDocument, variables, "desktopDevice");
17556
+ const data = response.desktopDevice?.chats;
17557
+ return new ChatConnection(this._request, (conn, opts) => new _DesktopDevice_ChatsQuery(this._request, this._syncEngine, defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
17558
+ }
17559
+ watch(options) {
17560
+ const variables = this._variables;
17561
+ const raw = this._syncEngine.watch(
17562
+ DesktopDevice_ChatsDocument,
17563
+ variables,
17564
+ "desktopDevice",
17565
+ async (db) => {
17566
+ const queryKey = buildQueryKey("desktopDevice", variables, DesktopDevice_ChatsDocument);
17567
+ const qr = await db._queryResults.get(queryKey);
17568
+ if (!qr) {
17569
+ throw new DvinaCacheMissError(queryKey);
17570
+ }
17571
+ const nodes = await db.table("chats").bulkGet(qr.entityIds);
17572
+ const filteredNodes = nodes.filter(Boolean);
17573
+ if (filteredNodes.length !== qr.entityIds.length) {
17574
+ throw new DvinaCacheMissError(queryKey);
17575
+ }
17576
+ return { desktopDevice: { chats: { __typename: "ChatConnection", nodes: filteredNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
17577
+ }
17578
+ );
17579
+ return new MappedDvinaQueryRef(raw, (response) => {
17580
+ const data = response.desktopDevice?.chats;
17581
+ return new ChatConnection(this._request, (conn, opts) => new _DesktopDevice_ChatsQuery(this._request, this._syncEngine, defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
17582
+ });
17583
+ }
17584
+ };
17585
+ var DesktopDevice_DesktopBindingsQuery = class extends Request {
17586
+ _variables;
17587
+ constructor(request, syncEngine, variables = {}, baseUrl) {
17588
+ super(request, syncEngine, void 0, baseUrl);
17589
+ this._variables = variables;
17590
+ }
17591
+ async fetch(options) {
17592
+ const response = await this._syncEngine.query(DesktopDevice_DesktopBindingsDocument, this._variables, "desktopDevice");
17593
+ const data = response.desktopDevice?.desktopBindings;
17594
+ if (!Array.isArray(data)) return [];
17595
+ return data.map((item) => new ProjectDesktopBinding(this._request, item, this._syncEngine, this._baseUrl));
17596
+ }
17597
+ };
17598
+ var DesktopDevicesQuery = class _DesktopDevicesQuery extends Request {
17397
17599
  _variables;
17398
17600
  _includes = [];
17399
17601
  constructor(request, syncEngine, variables = {}, baseUrl) {
@@ -17401,11 +17603,109 @@ var DesktopDevicesQuery = class extends Request {
17401
17603
  this._variables = variables;
17402
17604
  }
17403
17605
  async fetch(options) {
17404
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(DesktopDevicesDocument, "desktopDevices", this._includes, this._variables);
17606
+ const variables = this._variables;
17607
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(DesktopDevicesDocument, "desktopDevices", this._includes, variables, true);
17405
17608
  const response = await this._syncEngine.query(queryDoc, mergedVars, "desktopDevices");
17406
17609
  const data = response.desktopDevices;
17407
- if (!Array.isArray(data)) return [];
17408
- return data.map((item) => new DesktopDeviceModel(this._request, item, this._syncEngine, this._baseUrl));
17610
+ const connection = new DesktopDeviceConnection(this._request, (conn, opts) => new _DesktopDevicesQuery(this._request, this._syncEngine, defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
17611
+ if (this._includes.length > 0) {
17612
+ const rawNodes = data.nodes ?? [];
17613
+ for (let i = 0; i < connection.nodes.length; i++) {
17614
+ hydrateIncludes(connection.nodes[i], rawNodes[i] ?? {}, this._includes, this._request, this._syncEngine, this._baseUrl);
17615
+ }
17616
+ }
17617
+ return connection;
17618
+ }
17619
+ watch(options) {
17620
+ const variables = this._variables;
17621
+ const subscriptionId = crypto.randomUUID();
17622
+ const includes = this._includes;
17623
+ 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) }] : []);
17624
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(DesktopDevicesDocument, "desktopDevices", includes, variables, true);
17625
+ const raw = this._syncEngine.watch(
17626
+ queryDoc,
17627
+ mergedVars,
17628
+ "desktopDevices",
17629
+ async (db) => {
17630
+ const queryKey = buildQueryKey("desktopDevices", mergedVars, queryDoc);
17631
+ const qr = await db._queryResults.get(queryKey);
17632
+ if (!qr) {
17633
+ throw new DvinaCacheMissError(queryKey);
17634
+ }
17635
+ const nodes = await db.table("desktopDevices").bulkGet(qr.entityIds);
17636
+ const filteredNodes = nodes.filter(Boolean);
17637
+ if (filteredNodes.length !== qr.entityIds.length) {
17638
+ throw new DvinaCacheMissError(queryKey);
17639
+ }
17640
+ const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "desktopDevices", filteredNodes, includes) : filteredNodes;
17641
+ return { desktopDevices: { __typename: "DesktopDeviceConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
17642
+ },
17643
+ {
17644
+ id: subscriptionId,
17645
+ entityType: "desktopDevices",
17646
+ operationName: "desktopDevices",
17647
+ modelName: "DesktopDevice",
17648
+ filter: variables?.filter
17649
+ },
17650
+ watchedRelations
17651
+ );
17652
+ return new MappedDvinaQueryRef(raw, (response) => {
17653
+ const data = response.desktopDevices;
17654
+ const connection = new DesktopDeviceConnection(this._request, (conn, opts) => new _DesktopDevicesQuery(this._request, this._syncEngine, defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
17655
+ if (includes.length > 0) {
17656
+ const rawNodes = data.nodes ?? [];
17657
+ for (let i = 0; i < connection.nodes.length; i++) {
17658
+ hydrateIncludes(connection.nodes[i], rawNodes[i] ?? {}, includes, this._request, this._syncEngine, this._baseUrl);
17659
+ }
17660
+ }
17661
+ return connection;
17662
+ });
17663
+ }
17664
+ /** Include chats in this query (Smart Fetch — single HTTP request). */
17665
+ chats(variables, builder) {
17666
+ const info = extractIncludeInfo(DesktopDevice_ChatsDocument, "chats", ["id"]);
17667
+ let children;
17668
+ if (builder) {
17669
+ const sub = new ChatSubBuilder();
17670
+ builder(sub);
17671
+ children = sub._includes;
17672
+ }
17673
+ this._includes.push({
17674
+ fieldName: "chats",
17675
+ fragmentDoc: ChatConnectionFragmentDoc,
17676
+ variables,
17677
+ isConnection: true,
17678
+ isList: false,
17679
+ variableDefinitions: info.variableDefinitions,
17680
+ fieldArguments: info.fieldArguments,
17681
+ syncMetadata: {
17682
+ entityType: "chats",
17683
+ requiredFields: ["id", "name", "reasoningEffort", "piiSanitizationEnabled", "createdAt", "updatedAt"]
17684
+ },
17685
+ children,
17686
+ modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu),
17687
+ connectionFactory: (req, fetch2, data, se, bu) => new ChatConnection(req, fetch2, data, se, bu)
17688
+ });
17689
+ return this;
17690
+ }
17691
+ /** Include desktopBindings in this query (Smart Fetch — single HTTP request). */
17692
+ desktopBindings(variables) {
17693
+ const info = extractIncludeInfo(DesktopDevice_DesktopBindingsDocument, "desktopBindings", ["id"]);
17694
+ this._includes.push({
17695
+ fieldName: "desktopBindings",
17696
+ fragmentDoc: ProjectDesktopBindingFragmentDoc,
17697
+ variables,
17698
+ isConnection: false,
17699
+ isList: true,
17700
+ variableDefinitions: info.variableDefinitions,
17701
+ fieldArguments: info.fieldArguments,
17702
+ syncMetadata: {
17703
+ entityType: "projectDesktopBindings",
17704
+ requiredFields: ["projectId", "deviceId", "kind", "rootPath", "createdAt", "updatedAt"]
17705
+ },
17706
+ modelFactory: (req, data, se, bu) => new ProjectDesktopBinding(req, data, se, bu)
17707
+ });
17708
+ return this;
17409
17709
  }
17410
17710
  };
17411
17711
  var DocumentQuery = class extends Request {
@@ -18856,7 +19156,7 @@ var InsightQuery = class extends Request {
18856
19156
  fieldArguments: info.fieldArguments,
18857
19157
  syncMetadata: {
18858
19158
  entityType: "chats",
18859
- requiredFields: ["id", "name", "piiSanitizationEnabled", "createdAt", "updatedAt"]
19159
+ requiredFields: ["id", "name", "reasoningEffort", "piiSanitizationEnabled", "createdAt", "updatedAt"]
18860
19160
  },
18861
19161
  children,
18862
19162
  modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu)
@@ -19185,7 +19485,7 @@ var InsightsQuery = class _InsightsQuery extends Request {
19185
19485
  fieldArguments: info.fieldArguments,
19186
19486
  syncMetadata: {
19187
19487
  entityType: "chats",
19188
- requiredFields: ["id", "name", "piiSanitizationEnabled", "createdAt", "updatedAt"]
19488
+ requiredFields: ["id", "name", "reasoningEffort", "piiSanitizationEnabled", "createdAt", "updatedAt"]
19189
19489
  },
19190
19490
  children,
19191
19491
  modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu)
@@ -19980,7 +20280,7 @@ var LiveContextsQuery = class _LiveContextsQuery extends Request {
19980
20280
  return this;
19981
20281
  }
19982
20282
  };
19983
- var LocalRuntimeOverviewQuery = class extends Request {
20283
+ var LocalSandboxDeviceStatusesQuery = class extends Request {
19984
20284
  _variables;
19985
20285
  _includes = [];
19986
20286
  constructor(request, syncEngine, variables = {}, baseUrl) {
@@ -19988,128 +20288,11 @@ var LocalRuntimeOverviewQuery = class extends Request {
19988
20288
  this._variables = variables;
19989
20289
  }
19990
20290
  async fetch(options) {
19991
- const variables = this._variables;
19992
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(LocalRuntimeOverviewDocument, "localRuntimeOverview", this._includes, variables);
19993
- const response = await this._syncEngine.query(queryDoc, mergedVars, "localRuntimeOverview");
19994
- const data = response.localRuntimeOverview;
19995
- const instance = new LocalRuntimeOverviewModel(this._request, data, this._syncEngine, this._baseUrl);
19996
- if (this._includes.length > 0) {
19997
- hydrateIncludes(instance, data, this._includes, this._request, this._syncEngine, this._baseUrl);
19998
- }
19999
- return instance;
20000
- }
20001
- watch(options) {
20002
- const variables = this._variables;
20003
- const includes = this._includes;
20004
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(LocalRuntimeOverviewDocument, "localRuntimeOverview", includes, variables);
20005
- const raw = this._syncEngine.watch(
20006
- queryDoc,
20007
- mergedVars,
20008
- "localRuntimeOverview",
20009
- async (db) => {
20010
- const vars = variables;
20011
- const pkField = getPrimaryKeyField("localRuntimeOverviewModels");
20012
- const entityKey = Array.isArray(pkField) ? pkField.map((field) => vars?.[field]) : vars?.[pkField];
20013
- const hasEntityKey = Array.isArray(entityKey) ? entityKey.every((part) => part !== void 0 && part !== null) : entityKey !== void 0 && entityKey !== null;
20014
- const entity = hasEntityKey ? await db.table("localRuntimeOverviewModels").get(entityKey) : void 0;
20015
- if (includes.length > 0 && entity) {
20016
- const parentId = Array.isArray(entityKey) ? entityKey.map((part) => String(part)).join(":") : String(entityKey);
20017
- const result = await reconstructEntity(db, "localRuntimeOverviewModels", parentId, includes);
20018
- return { localRuntimeOverview: result };
20019
- }
20020
- return { localRuntimeOverview: entity ?? null };
20021
- }
20022
- );
20023
- return new MappedDvinaQueryRef(raw, (response) => {
20024
- const data = response.localRuntimeOverview;
20025
- const instance = new LocalRuntimeOverviewModel(this._request, data, this._syncEngine, this._baseUrl);
20026
- if (includes.length > 0) {
20027
- hydrateIncludes(instance, data, includes, this._request, this._syncEngine, this._baseUrl);
20028
- }
20029
- return instance;
20030
- });
20031
- }
20032
- /** Include devices in this query (Smart Fetch — single HTTP request). */
20033
- devices(variables) {
20034
- const info = extractIncludeInfo(LocalRuntimeOverview_DevicesDocument, "devices", []);
20035
- this._includes.push({
20036
- fieldName: "devices",
20037
- fragmentDoc: LocalRuntimeDeviceModelFragmentDoc,
20038
- variables,
20039
- isConnection: false,
20040
- isList: true,
20041
- variableDefinitions: info.variableDefinitions,
20042
- fieldArguments: info.fieldArguments,
20043
- syncMetadata: {
20044
- entityType: "localRuntimeDeviceModels",
20045
- requiredFields: ["deviceId", "label", "state", "isPreferred", "isResolved"]
20046
- },
20047
- modelFactory: (req, data, se, bu) => new LocalRuntimeDeviceModel(req, data, se, bu)
20048
- });
20049
- return this;
20050
- }
20051
- };
20052
- var LocalRuntimeOverview_DevicesQuery = class extends Request {
20053
- _variables;
20054
- constructor(request, syncEngine, variables = {}, baseUrl) {
20055
- super(request, syncEngine, void 0, baseUrl);
20056
- this._variables = variables;
20057
- }
20058
- async fetch(options) {
20059
- const response = await this._syncEngine.query(LocalRuntimeOverview_DevicesDocument, this._variables, "localRuntimeOverview");
20060
- const data = response.localRuntimeOverview?.devices;
20291
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(LocalSandboxDeviceStatusesDocument, "localSandboxDeviceStatuses", this._includes, this._variables);
20292
+ const response = await this._syncEngine.query(queryDoc, mergedVars, "localSandboxDeviceStatuses");
20293
+ const data = response.localSandboxDeviceStatuses;
20061
20294
  if (!Array.isArray(data)) return [];
20062
- return data.map((item) => new LocalRuntimeDeviceModel(this._request, item, this._syncEngine, this._baseUrl));
20063
- }
20064
- };
20065
- var LocalSandboxDeviceStatusQuery = class extends Request {
20066
- _variables;
20067
- _includes = [];
20068
- constructor(request, syncEngine, variables = {}, baseUrl) {
20069
- super(request, syncEngine, void 0, baseUrl);
20070
- this._variables = variables;
20071
- }
20072
- async fetch(options) {
20073
- const variables = this._variables;
20074
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(LocalSandboxDeviceStatusDocument, "localSandboxDeviceStatus", this._includes, variables);
20075
- const response = await this._syncEngine.query(queryDoc, mergedVars, "localSandboxDeviceStatus");
20076
- const data = response.localSandboxDeviceStatus;
20077
- const instance = new LocalSandboxDeviceStatusModel(this._request, data, this._syncEngine, this._baseUrl);
20078
- if (this._includes.length > 0) {
20079
- hydrateIncludes(instance, data, this._includes, this._request, this._syncEngine, this._baseUrl);
20080
- }
20081
- return instance;
20082
- }
20083
- watch(options) {
20084
- const variables = this._variables;
20085
- const includes = this._includes;
20086
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(LocalSandboxDeviceStatusDocument, "localSandboxDeviceStatus", includes, variables);
20087
- const raw = this._syncEngine.watch(
20088
- queryDoc,
20089
- mergedVars,
20090
- "localSandboxDeviceStatus",
20091
- async (db) => {
20092
- const vars = variables;
20093
- const pkField = getPrimaryKeyField("localSandboxDeviceStatusModels");
20094
- const entityKey = Array.isArray(pkField) ? pkField.map((field) => vars?.[field]) : vars?.[pkField];
20095
- const hasEntityKey = Array.isArray(entityKey) ? entityKey.every((part) => part !== void 0 && part !== null) : entityKey !== void 0 && entityKey !== null;
20096
- const entity = hasEntityKey ? await db.table("localSandboxDeviceStatusModels").get(entityKey) : void 0;
20097
- if (includes.length > 0 && entity) {
20098
- const parentId = Array.isArray(entityKey) ? entityKey.map((part) => String(part)).join(":") : String(entityKey);
20099
- const result = await reconstructEntity(db, "localSandboxDeviceStatusModels", parentId, includes);
20100
- return { localSandboxDeviceStatus: result };
20101
- }
20102
- return { localSandboxDeviceStatus: entity ?? null };
20103
- }
20104
- );
20105
- return new MappedDvinaQueryRef(raw, (response) => {
20106
- const data = response.localSandboxDeviceStatus;
20107
- const instance = new LocalSandboxDeviceStatusModel(this._request, data, this._syncEngine, this._baseUrl);
20108
- if (includes.length > 0) {
20109
- hydrateIncludes(instance, data, includes, this._request, this._syncEngine, this._baseUrl);
20110
- }
20111
- return instance;
20112
- });
20295
+ return data.map((item) => new LocalSandboxDeviceStatusModel(this._request, item, this._syncEngine, this._baseUrl));
20113
20296
  }
20114
20297
  };
20115
20298
  var NotificationQuery = class extends Request {
@@ -20362,7 +20545,7 @@ var ProjectQuery = class extends Request {
20362
20545
  fieldArguments: info.fieldArguments,
20363
20546
  syncMetadata: {
20364
20547
  entityType: "chats",
20365
- requiredFields: ["id", "name", "piiSanitizationEnabled", "createdAt", "updatedAt"]
20548
+ requiredFields: ["id", "name", "reasoningEffort", "piiSanitizationEnabled", "createdAt", "updatedAt"]
20366
20549
  },
20367
20550
  children,
20368
20551
  modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu),
@@ -20573,7 +20756,7 @@ var ProjectsQuery = class _ProjectsQuery extends Request {
20573
20756
  fieldArguments: info.fieldArguments,
20574
20757
  syncMetadata: {
20575
20758
  entityType: "chats",
20576
- requiredFields: ["id", "name", "piiSanitizationEnabled", "createdAt", "updatedAt"]
20759
+ requiredFields: ["id", "name", "reasoningEffort", "piiSanitizationEnabled", "createdAt", "updatedAt"]
20577
20760
  },
20578
20761
  children,
20579
20762
  modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu),
@@ -22226,9 +22409,13 @@ var DvinaSdk = class extends Request {
22226
22409
  databases(variables) {
22227
22410
  return new DatabasesQuery(this._request, this._syncEngine, variables, this._baseUrl);
22228
22411
  }
22412
+ /** Query: desktopDevice — call .fetch() or .watch() to execute. */
22413
+ desktopDevice(variables) {
22414
+ return new DesktopDeviceQuery(this._request, this._syncEngine, variables, this._baseUrl);
22415
+ }
22229
22416
  /** Query: desktopDevices — call .fetch() or .watch() to execute. */
22230
- desktopDevices() {
22231
- return new DesktopDevicesQuery(this._request, this._syncEngine, {}, this._baseUrl);
22417
+ desktopDevices(variables) {
22418
+ return new DesktopDevicesQuery(this._request, this._syncEngine, variables, this._baseUrl);
22232
22419
  }
22233
22420
  /** Query: document — call .fetch() or .watch() to execute. */
22234
22421
  document(variables) {
@@ -22358,13 +22545,9 @@ var DvinaSdk = class extends Request {
22358
22545
  liveContexts(variables) {
22359
22546
  return new LiveContextsQuery(this._request, this._syncEngine, variables, this._baseUrl);
22360
22547
  }
22361
- /** Query: localRuntimeOverview — call .fetch() or .watch() to execute. */
22362
- localRuntimeOverview(variables) {
22363
- return new LocalRuntimeOverviewQuery(this._request, this._syncEngine, variables, this._baseUrl);
22364
- }
22365
- /** Query: localSandboxDeviceStatus — call .fetch() or .watch() to execute. */
22366
- localSandboxDeviceStatus(variables) {
22367
- return new LocalSandboxDeviceStatusQuery(this._request, this._syncEngine, variables, this._baseUrl);
22548
+ /** Query: localSandboxDeviceStatuses — call .fetch() or .watch() to execute. */
22549
+ localSandboxDeviceStatuses(variables) {
22550
+ return new LocalSandboxDeviceStatusesQuery(this._request, this._syncEngine, variables, this._baseUrl);
22368
22551
  }
22369
22552
  /** Query: notification — call .fetch() or .watch() to execute. */
22370
22553
  notification(variables) {
@@ -22509,6 +22692,6 @@ var DvinaSdk = class extends Request {
22509
22692
  }
22510
22693
  };
22511
22694
 
22512
- 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, FeedProjectData, 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 };
22513
- //# sourceMappingURL=chunk-YWW2VBNQ.js.map
22514
- //# sourceMappingURL=chunk-YWW2VBNQ.js.map
22695
+ 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, DesktopDeviceConnection, DesktopDeviceQuery, DesktopDeviceSubBuilder, DesktopDevice_ChatsQuery, DesktopDevice_DesktopBindingsQuery, 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, FeedProjectData, 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, LocalSandboxDeviceStatusModel, LocalSandboxDeviceStatusesQuery, 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 };
22696
+ //# sourceMappingURL=chunk-V75R2VZY.js.map
22697
+ //# sourceMappingURL=chunk-V75R2VZY.js.map