@dvina/sdk 4.0.121 → 4.0.142
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.
- package/README.md +12 -8
- package/dist/_generated_documents-3N6BQ5SR.js +4 -0
- package/dist/{_generated_documents-XATE7GCV.js.map → _generated_documents-3N6BQ5SR.js.map} +1 -1
- package/dist/{_generated_documents-H4JUEJGN.cjs → _generated_documents-R4Q64XRB.cjs} +642 -514
- package/dist/{_generated_documents-H4JUEJGN.cjs.map → _generated_documents-R4Q64XRB.cjs.map} +1 -1
- package/dist/adapters/angular/index.cjs +4 -4
- package/dist/adapters/angular/index.d.cts +1 -1
- package/dist/adapters/angular/index.d.ts +1 -1
- package/dist/adapters/angular/index.js +2 -2
- package/dist/{chunk-Q7MZGXS4.js → chunk-4BKKU67P.js} +76 -44
- package/dist/chunk-4BKKU67P.js.map +1 -0
- package/dist/{chunk-ZN2TPYCR.js → chunk-AYE3QJ2O.js} +843 -56
- package/dist/chunk-AYE3QJ2O.js.map +1 -0
- package/dist/{chunk-GL6CUR7S.cjs → chunk-D7AKD4KG.cjs} +111 -47
- package/dist/chunk-D7AKD4KG.cjs.map +1 -0
- package/dist/{chunk-ZWQVDMIR.cjs → chunk-UDXG6COO.cjs} +1346 -548
- package/dist/chunk-UDXG6COO.cjs.map +1 -0
- package/dist/client-BK4gb0rI.d.ts +6171 -0
- package/dist/client-Bqg_UhDO.d.cts +6171 -0
- package/dist/index.cjs +432 -388
- package/dist/index.d.cts +99 -5799
- package/dist/index.d.ts +99 -5799
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/_generated_documents-XATE7GCV.js +0 -4
- package/dist/chunk-GL6CUR7S.cjs.map +0 -1
- package/dist/chunk-Q7MZGXS4.js.map +0 -1
- package/dist/chunk-ZN2TPYCR.js.map +0 -1
- package/dist/chunk-ZWQVDMIR.cjs.map +0 -1
- package/dist/client-B5LbpEC3.d.ts +0 -77
- package/dist/client-Dp5JOq16.d.cts +0 -77
|
@@ -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, IntegrationFragmentDoc, InsightConnectionFragmentDoc, DatabaseFragmentDoc, DocumentFragmentDoc, RelationFragmentDoc, 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, RefineMindInstructionDocument, RefreshDatabaseSchemaDocument, RefreshInsightDocument, ReinterpretSourceDocument, ReinterpretSourcesOfuserDocument, RelocateInsightDocument, RemoveInsightFromReportDocument, ResetWorkspaceDocument, ResolvePulseEventDocument, ScheduleWorkspaceDeletionDocument, SetDatabasePrimaryKeyDocument, UpdateAgentDocument, UpdateChatDocument, UpdateDatabaseDocument, UpdateDocumentDocument, UpdateFolderDocument, UpdateInsightDocument, UpdateInsightInReportDocument, UpdateInsightThumbnailDocument, UpdateInterpDocument, 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_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, NotificationDocument, NotificationsDocument, NotificationsByReferenceDocument, PrivacyStatsDocument, PulseAppSummaryDocument, PulseEventDocument, PulseEvent_IntegrationDocument, PulseEvent_Integration_ProviderDocument, PulseEventsDocument, PulseTriggerSettingsDocument, QueryDocument, QueryWithInsightIdDocument, QueryWithMessageIdDocument, ReportDocument, Report_InsightsDocument, Report_LayoutDocument, ReportsDocument,
|
|
5
|
+
import { ChatConnectionFragmentDoc, ChatFragmentDoc, FileFragmentDoc, ChatMessageFragmentDoc, AgentConnectionFragmentDoc, ArtifactConnectionFragmentDoc, InsightFragmentDoc, ChatMessageConnectionFragmentDoc, ContentBlockFragmentDoc, FeedbackFragmentDoc, DatabaseEngineFragmentDoc, TableConnectionFragmentDoc, DocumentContentFragmentDoc, DocumentFormatFragmentDoc, FeedSendMessageActionFragmentDoc, FeedArtifactDataFragmentDoc, ReportMemberFragmentDoc, ReportConnectionFragmentDoc, IntegrationProviderFragmentDoc, 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, RefineMindInstructionDocument, 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, 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-4BKKU67P.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
|
|
@@ -6030,6 +6030,569 @@ var require_dexie = __commonJS({
|
|
|
6030
6030
|
}
|
|
6031
6031
|
});
|
|
6032
6032
|
|
|
6033
|
+
// src/chat-stream.ts
|
|
6034
|
+
var INITIAL_RECONNECT_DELAY_MS = 1e3;
|
|
6035
|
+
var MAX_RECONNECT_DELAY_MS = 3e4;
|
|
6036
|
+
var RECONNECT_BACKOFF_MULTIPLIER = 2;
|
|
6037
|
+
var MAX_CONSECUTIVE_AUTH_FAILURES = 3;
|
|
6038
|
+
var AuthChatStreamError = class extends Error {
|
|
6039
|
+
constructor(status) {
|
|
6040
|
+
super(`Chat stream auth failed: ${status}`);
|
|
6041
|
+
this.status = status;
|
|
6042
|
+
this.name = "AuthChatStreamError";
|
|
6043
|
+
}
|
|
6044
|
+
};
|
|
6045
|
+
var ChatStreamConnection = class {
|
|
6046
|
+
constructor(chatId, options, onEmpty) {
|
|
6047
|
+
this.chatId = chatId;
|
|
6048
|
+
this.options = options;
|
|
6049
|
+
this.onEmpty = onEmpty;
|
|
6050
|
+
}
|
|
6051
|
+
abortController;
|
|
6052
|
+
consecutiveAuthFailures = 0;
|
|
6053
|
+
destroyed = false;
|
|
6054
|
+
lastEventId;
|
|
6055
|
+
needsForceRefresh = false;
|
|
6056
|
+
reconnectDelay = INITIAL_RECONNECT_DELAY_MS;
|
|
6057
|
+
reconnectTimer;
|
|
6058
|
+
shouldReconnect = false;
|
|
6059
|
+
subscribers = /* @__PURE__ */ new Set();
|
|
6060
|
+
addSubscriber(subscriber) {
|
|
6061
|
+
if (this.destroyed) {
|
|
6062
|
+
throw new Error(`Chat stream '${this.chatId}' is closed`);
|
|
6063
|
+
}
|
|
6064
|
+
this.subscribers.add(subscriber);
|
|
6065
|
+
if (!this.shouldReconnect) {
|
|
6066
|
+
this.shouldReconnect = true;
|
|
6067
|
+
void this.doConnect();
|
|
6068
|
+
}
|
|
6069
|
+
}
|
|
6070
|
+
removeSubscriber(subscriber) {
|
|
6071
|
+
this.subscribers.delete(subscriber);
|
|
6072
|
+
if (this.subscribers.size === 0) {
|
|
6073
|
+
this.close();
|
|
6074
|
+
}
|
|
6075
|
+
}
|
|
6076
|
+
close(error) {
|
|
6077
|
+
this.shouldReconnect = false;
|
|
6078
|
+
this.destroyed = true;
|
|
6079
|
+
if (this.reconnectTimer) {
|
|
6080
|
+
clearTimeout(this.reconnectTimer);
|
|
6081
|
+
this.reconnectTimer = void 0;
|
|
6082
|
+
}
|
|
6083
|
+
if (this.abortController) {
|
|
6084
|
+
this.abortController.abort();
|
|
6085
|
+
this.abortController = void 0;
|
|
6086
|
+
}
|
|
6087
|
+
for (const subscriber of Array.from(this.subscribers)) {
|
|
6088
|
+
subscriber.finish(error);
|
|
6089
|
+
}
|
|
6090
|
+
this.subscribers.clear();
|
|
6091
|
+
this.onEmpty(this.chatId, this);
|
|
6092
|
+
}
|
|
6093
|
+
get isDestroyed() {
|
|
6094
|
+
return this.destroyed;
|
|
6095
|
+
}
|
|
6096
|
+
async doConnect() {
|
|
6097
|
+
if (!this.shouldReconnect || this.destroyed || this.subscribers.size === 0) {
|
|
6098
|
+
return;
|
|
6099
|
+
}
|
|
6100
|
+
this.abortController = new AbortController();
|
|
6101
|
+
try {
|
|
6102
|
+
const forceRefresh = this.needsForceRefresh;
|
|
6103
|
+
this.needsForceRefresh = false;
|
|
6104
|
+
const token = await this.options.getToken(forceRefresh ? { forceRefresh: true } : void 0);
|
|
6105
|
+
const url = new URL(`${this.options.baseUrl}/${encodeURIComponent(this.chatId)}/stream`);
|
|
6106
|
+
if (this.lastEventId) {
|
|
6107
|
+
url.searchParams.set("lastEventId", this.lastEventId);
|
|
6108
|
+
}
|
|
6109
|
+
const response = await fetch(url.toString(), {
|
|
6110
|
+
method: "GET",
|
|
6111
|
+
headers: {
|
|
6112
|
+
Accept: "text/event-stream",
|
|
6113
|
+
Authorization: `Bearer ${token}`,
|
|
6114
|
+
"Cache-Control": "no-cache",
|
|
6115
|
+
...this.lastEventId ? { "Last-Event-ID": this.lastEventId } : {}
|
|
6116
|
+
},
|
|
6117
|
+
signal: this.abortController.signal
|
|
6118
|
+
});
|
|
6119
|
+
if (!response.ok) {
|
|
6120
|
+
if (response.status === 401 || response.status === 403) {
|
|
6121
|
+
throw new AuthChatStreamError(response.status);
|
|
6122
|
+
}
|
|
6123
|
+
throw new Error(`Chat stream connection failed: ${response.status} ${response.statusText}`);
|
|
6124
|
+
}
|
|
6125
|
+
if (!response.body) {
|
|
6126
|
+
throw new Error("Chat stream response has no body");
|
|
6127
|
+
}
|
|
6128
|
+
this.consecutiveAuthFailures = 0;
|
|
6129
|
+
this.reconnectDelay = INITIAL_RECONNECT_DELAY_MS;
|
|
6130
|
+
await this.parseSseStream(response.body, this.abortController.signal);
|
|
6131
|
+
} catch (error) {
|
|
6132
|
+
if (error.name === "AbortError") {
|
|
6133
|
+
return;
|
|
6134
|
+
}
|
|
6135
|
+
if (!this.shouldReconnect || this.destroyed || this.subscribers.size === 0) {
|
|
6136
|
+
return;
|
|
6137
|
+
}
|
|
6138
|
+
const isAuthError2 = error instanceof AuthChatStreamError;
|
|
6139
|
+
if (isAuthError2) {
|
|
6140
|
+
this.consecutiveAuthFailures += 1;
|
|
6141
|
+
if (this.consecutiveAuthFailures >= MAX_CONSECUTIVE_AUTH_FAILURES) {
|
|
6142
|
+
const authError = new DvinaAuthenticationError("Chat SSE stream authentication failed permanently");
|
|
6143
|
+
this.options.onError?.(authError);
|
|
6144
|
+
this.close(authError);
|
|
6145
|
+
return;
|
|
6146
|
+
}
|
|
6147
|
+
this.needsForceRefresh = true;
|
|
6148
|
+
}
|
|
6149
|
+
const delay = isAuthError2 ? INITIAL_RECONNECT_DELAY_MS : this.reconnectDelay;
|
|
6150
|
+
this.scheduleReconnect(delay);
|
|
6151
|
+
if (!isAuthError2) {
|
|
6152
|
+
this.reconnectDelay = Math.min(
|
|
6153
|
+
this.reconnectDelay * RECONNECT_BACKOFF_MULTIPLIER,
|
|
6154
|
+
MAX_RECONNECT_DELAY_MS
|
|
6155
|
+
);
|
|
6156
|
+
}
|
|
6157
|
+
}
|
|
6158
|
+
}
|
|
6159
|
+
async parseSseStream(body, signal) {
|
|
6160
|
+
const reader = body.getReader();
|
|
6161
|
+
const decoder = new TextDecoder();
|
|
6162
|
+
let buffer = "";
|
|
6163
|
+
try {
|
|
6164
|
+
while (!signal.aborted && this.shouldReconnect && !this.destroyed) {
|
|
6165
|
+
const { done, value } = await reader.read();
|
|
6166
|
+
if (done) {
|
|
6167
|
+
break;
|
|
6168
|
+
}
|
|
6169
|
+
buffer += decoder.decode(value, { stream: true });
|
|
6170
|
+
const parts = buffer.split(/(?:\r\n|\r|\n){2}/);
|
|
6171
|
+
buffer = parts.pop() ?? "";
|
|
6172
|
+
for (const part of parts) {
|
|
6173
|
+
this.processEventBlock(part.trim());
|
|
6174
|
+
}
|
|
6175
|
+
}
|
|
6176
|
+
} finally {
|
|
6177
|
+
reader.releaseLock();
|
|
6178
|
+
}
|
|
6179
|
+
if (this.shouldReconnect && !this.destroyed && this.subscribers.size > 0) {
|
|
6180
|
+
this.scheduleReconnect(this.reconnectDelay);
|
|
6181
|
+
}
|
|
6182
|
+
}
|
|
6183
|
+
processEventBlock(block) {
|
|
6184
|
+
if (!block || block.startsWith(":")) {
|
|
6185
|
+
return;
|
|
6186
|
+
}
|
|
6187
|
+
let eventId;
|
|
6188
|
+
let eventType;
|
|
6189
|
+
const dataLines = [];
|
|
6190
|
+
for (const line of block.split(/\r\n|\r|\n/)) {
|
|
6191
|
+
if (line.startsWith("id: ")) {
|
|
6192
|
+
eventId = line.slice(4).trim();
|
|
6193
|
+
} else if (line.startsWith("event: ")) {
|
|
6194
|
+
eventType = line.slice(7).trim();
|
|
6195
|
+
} else if (line.startsWith("data: ")) {
|
|
6196
|
+
dataLines.push(line.slice(6));
|
|
6197
|
+
}
|
|
6198
|
+
}
|
|
6199
|
+
if (eventType === "token-expired") {
|
|
6200
|
+
this.needsForceRefresh = true;
|
|
6201
|
+
return;
|
|
6202
|
+
}
|
|
6203
|
+
if (!eventId || dataLines.length === 0) {
|
|
6204
|
+
return;
|
|
6205
|
+
}
|
|
6206
|
+
this.lastEventId = eventId;
|
|
6207
|
+
try {
|
|
6208
|
+
const payload = JSON.parse(dataLines.join("\n"));
|
|
6209
|
+
this.push(payload);
|
|
6210
|
+
} catch {
|
|
6211
|
+
}
|
|
6212
|
+
}
|
|
6213
|
+
push(value) {
|
|
6214
|
+
for (const subscriber of this.subscribers) {
|
|
6215
|
+
subscriber.push(value);
|
|
6216
|
+
}
|
|
6217
|
+
}
|
|
6218
|
+
scheduleReconnect(delay) {
|
|
6219
|
+
if (!this.shouldReconnect || this.destroyed || this.subscribers.size === 0) {
|
|
6220
|
+
return;
|
|
6221
|
+
}
|
|
6222
|
+
if (this.reconnectTimer) {
|
|
6223
|
+
clearTimeout(this.reconnectTimer);
|
|
6224
|
+
}
|
|
6225
|
+
this.reconnectTimer = setTimeout(() => {
|
|
6226
|
+
this.reconnectTimer = void 0;
|
|
6227
|
+
void this.doConnect();
|
|
6228
|
+
}, delay);
|
|
6229
|
+
}
|
|
6230
|
+
};
|
|
6231
|
+
var ActiveChatStreamConnection = class {
|
|
6232
|
+
constructor(options, onEmpty) {
|
|
6233
|
+
this.options = options;
|
|
6234
|
+
this.onEmpty = onEmpty;
|
|
6235
|
+
}
|
|
6236
|
+
abortController;
|
|
6237
|
+
consecutiveAuthFailures = 0;
|
|
6238
|
+
destroyed = false;
|
|
6239
|
+
needsForceRefresh = false;
|
|
6240
|
+
reconnectDelay = INITIAL_RECONNECT_DELAY_MS;
|
|
6241
|
+
reconnectTimer;
|
|
6242
|
+
shouldReconnect = false;
|
|
6243
|
+
subscribers = /* @__PURE__ */ new Set();
|
|
6244
|
+
addSubscriber(subscriber) {
|
|
6245
|
+
if (this.destroyed) {
|
|
6246
|
+
throw new Error("Active chat stream is closed");
|
|
6247
|
+
}
|
|
6248
|
+
this.subscribers.add(subscriber);
|
|
6249
|
+
if (!this.shouldReconnect) {
|
|
6250
|
+
this.shouldReconnect = true;
|
|
6251
|
+
void this.doConnect();
|
|
6252
|
+
}
|
|
6253
|
+
}
|
|
6254
|
+
removeSubscriber(subscriber) {
|
|
6255
|
+
this.subscribers.delete(subscriber);
|
|
6256
|
+
if (this.subscribers.size === 0) {
|
|
6257
|
+
this.close();
|
|
6258
|
+
}
|
|
6259
|
+
}
|
|
6260
|
+
close(error) {
|
|
6261
|
+
this.shouldReconnect = false;
|
|
6262
|
+
this.destroyed = true;
|
|
6263
|
+
if (this.reconnectTimer) {
|
|
6264
|
+
clearTimeout(this.reconnectTimer);
|
|
6265
|
+
this.reconnectTimer = void 0;
|
|
6266
|
+
}
|
|
6267
|
+
if (this.abortController) {
|
|
6268
|
+
this.abortController.abort();
|
|
6269
|
+
this.abortController = void 0;
|
|
6270
|
+
}
|
|
6271
|
+
for (const subscriber of Array.from(this.subscribers)) {
|
|
6272
|
+
subscriber.finish(error);
|
|
6273
|
+
}
|
|
6274
|
+
this.subscribers.clear();
|
|
6275
|
+
this.onEmpty(this);
|
|
6276
|
+
}
|
|
6277
|
+
get isDestroyed() {
|
|
6278
|
+
return this.destroyed;
|
|
6279
|
+
}
|
|
6280
|
+
async doConnect() {
|
|
6281
|
+
if (!this.shouldReconnect || this.destroyed || this.subscribers.size === 0) {
|
|
6282
|
+
return;
|
|
6283
|
+
}
|
|
6284
|
+
this.abortController = new AbortController();
|
|
6285
|
+
try {
|
|
6286
|
+
const forceRefresh = this.needsForceRefresh;
|
|
6287
|
+
this.needsForceRefresh = false;
|
|
6288
|
+
const token = await this.options.getToken(forceRefresh ? { forceRefresh: true } : void 0);
|
|
6289
|
+
const response = await fetch(new URL(`${this.options.baseUrl}/active`).toString(), {
|
|
6290
|
+
method: "GET",
|
|
6291
|
+
headers: {
|
|
6292
|
+
Accept: "text/event-stream",
|
|
6293
|
+
Authorization: `Bearer ${token}`,
|
|
6294
|
+
"Cache-Control": "no-cache"
|
|
6295
|
+
},
|
|
6296
|
+
signal: this.abortController.signal
|
|
6297
|
+
});
|
|
6298
|
+
if (!response.ok) {
|
|
6299
|
+
if (response.status === 401 || response.status === 403) {
|
|
6300
|
+
throw new AuthChatStreamError(response.status);
|
|
6301
|
+
}
|
|
6302
|
+
throw new Error(`Active chat stream connection failed: ${response.status} ${response.statusText}`);
|
|
6303
|
+
}
|
|
6304
|
+
if (!response.body) {
|
|
6305
|
+
throw new Error("Active chat stream response has no body");
|
|
6306
|
+
}
|
|
6307
|
+
this.consecutiveAuthFailures = 0;
|
|
6308
|
+
this.reconnectDelay = INITIAL_RECONNECT_DELAY_MS;
|
|
6309
|
+
await this.parseSseStream(response.body, this.abortController.signal);
|
|
6310
|
+
} catch (error) {
|
|
6311
|
+
if (error.name === "AbortError") {
|
|
6312
|
+
return;
|
|
6313
|
+
}
|
|
6314
|
+
if (!this.shouldReconnect || this.destroyed || this.subscribers.size === 0) {
|
|
6315
|
+
return;
|
|
6316
|
+
}
|
|
6317
|
+
const isAuthError2 = error instanceof AuthChatStreamError;
|
|
6318
|
+
if (isAuthError2) {
|
|
6319
|
+
this.consecutiveAuthFailures += 1;
|
|
6320
|
+
if (this.consecutiveAuthFailures >= MAX_CONSECUTIVE_AUTH_FAILURES) {
|
|
6321
|
+
const authError = new DvinaAuthenticationError(
|
|
6322
|
+
"Active chat SSE stream authentication failed permanently"
|
|
6323
|
+
);
|
|
6324
|
+
this.options.onError?.(authError);
|
|
6325
|
+
this.close(authError);
|
|
6326
|
+
return;
|
|
6327
|
+
}
|
|
6328
|
+
this.needsForceRefresh = true;
|
|
6329
|
+
}
|
|
6330
|
+
const delay = isAuthError2 ? INITIAL_RECONNECT_DELAY_MS : this.reconnectDelay;
|
|
6331
|
+
this.scheduleReconnect(delay);
|
|
6332
|
+
if (!isAuthError2) {
|
|
6333
|
+
this.reconnectDelay = Math.min(
|
|
6334
|
+
this.reconnectDelay * RECONNECT_BACKOFF_MULTIPLIER,
|
|
6335
|
+
MAX_RECONNECT_DELAY_MS
|
|
6336
|
+
);
|
|
6337
|
+
}
|
|
6338
|
+
}
|
|
6339
|
+
}
|
|
6340
|
+
async parseSseStream(body, signal) {
|
|
6341
|
+
const reader = body.getReader();
|
|
6342
|
+
const decoder = new TextDecoder();
|
|
6343
|
+
let buffer = "";
|
|
6344
|
+
try {
|
|
6345
|
+
while (!signal.aborted && this.shouldReconnect && !this.destroyed) {
|
|
6346
|
+
const { done, value } = await reader.read();
|
|
6347
|
+
if (done) {
|
|
6348
|
+
break;
|
|
6349
|
+
}
|
|
6350
|
+
buffer += decoder.decode(value, { stream: true });
|
|
6351
|
+
const parts = buffer.split(/(?:\r\n|\r|\n){2}/);
|
|
6352
|
+
buffer = parts.pop() ?? "";
|
|
6353
|
+
for (const part of parts) {
|
|
6354
|
+
this.processEventBlock(part.trim());
|
|
6355
|
+
}
|
|
6356
|
+
}
|
|
6357
|
+
} finally {
|
|
6358
|
+
reader.releaseLock();
|
|
6359
|
+
}
|
|
6360
|
+
if (this.shouldReconnect && !this.destroyed && this.subscribers.size > 0) {
|
|
6361
|
+
this.scheduleReconnect(this.reconnectDelay);
|
|
6362
|
+
}
|
|
6363
|
+
}
|
|
6364
|
+
processEventBlock(block) {
|
|
6365
|
+
if (!block || block.startsWith(":")) {
|
|
6366
|
+
return;
|
|
6367
|
+
}
|
|
6368
|
+
let eventType;
|
|
6369
|
+
const dataLines = [];
|
|
6370
|
+
for (const line of block.split(/\r\n|\r|\n/)) {
|
|
6371
|
+
if (line.startsWith("event: ")) {
|
|
6372
|
+
eventType = line.slice(7).trim();
|
|
6373
|
+
} else if (line.startsWith("data: ")) {
|
|
6374
|
+
dataLines.push(line.slice(6));
|
|
6375
|
+
}
|
|
6376
|
+
}
|
|
6377
|
+
if (eventType === "token-expired") {
|
|
6378
|
+
this.needsForceRefresh = true;
|
|
6379
|
+
return;
|
|
6380
|
+
}
|
|
6381
|
+
if (eventType !== "active" || dataLines.length === 0) {
|
|
6382
|
+
return;
|
|
6383
|
+
}
|
|
6384
|
+
try {
|
|
6385
|
+
const payload = JSON.parse(dataLines.join("\n"));
|
|
6386
|
+
if (!Array.isArray(payload) || payload.some((chatId) => typeof chatId !== "string")) {
|
|
6387
|
+
return;
|
|
6388
|
+
}
|
|
6389
|
+
this.push(payload);
|
|
6390
|
+
} catch {
|
|
6391
|
+
}
|
|
6392
|
+
}
|
|
6393
|
+
push(value) {
|
|
6394
|
+
for (const subscriber of this.subscribers) {
|
|
6395
|
+
subscriber.push(value);
|
|
6396
|
+
}
|
|
6397
|
+
}
|
|
6398
|
+
scheduleReconnect(delay) {
|
|
6399
|
+
if (!this.shouldReconnect || this.destroyed || this.subscribers.size === 0) {
|
|
6400
|
+
return;
|
|
6401
|
+
}
|
|
6402
|
+
if (this.reconnectTimer) {
|
|
6403
|
+
clearTimeout(this.reconnectTimer);
|
|
6404
|
+
}
|
|
6405
|
+
this.reconnectTimer = setTimeout(() => {
|
|
6406
|
+
this.reconnectTimer = void 0;
|
|
6407
|
+
void this.doConnect();
|
|
6408
|
+
}, delay);
|
|
6409
|
+
}
|
|
6410
|
+
};
|
|
6411
|
+
function createChatStreamClient(options) {
|
|
6412
|
+
const connections = /* @__PURE__ */ new Map();
|
|
6413
|
+
let activeConnection;
|
|
6414
|
+
function getConnection(chatId) {
|
|
6415
|
+
const existing = connections.get(chatId);
|
|
6416
|
+
if (existing && !existing.isDestroyed) {
|
|
6417
|
+
return existing;
|
|
6418
|
+
}
|
|
6419
|
+
const connection = new ChatStreamConnection(chatId, options, (emptyChatId, currentConnection) => {
|
|
6420
|
+
if (connections.get(emptyChatId) === currentConnection) {
|
|
6421
|
+
connections.delete(emptyChatId);
|
|
6422
|
+
}
|
|
6423
|
+
});
|
|
6424
|
+
connections.set(chatId, connection);
|
|
6425
|
+
return connection;
|
|
6426
|
+
}
|
|
6427
|
+
function getActiveConnection() {
|
|
6428
|
+
if (activeConnection && !activeConnection.isDestroyed) {
|
|
6429
|
+
return activeConnection;
|
|
6430
|
+
}
|
|
6431
|
+
activeConnection = new ActiveChatStreamConnection(options, (currentConnection) => {
|
|
6432
|
+
if (activeConnection === currentConnection) {
|
|
6433
|
+
activeConnection = void 0;
|
|
6434
|
+
}
|
|
6435
|
+
});
|
|
6436
|
+
return activeConnection;
|
|
6437
|
+
}
|
|
6438
|
+
function stream(chatId) {
|
|
6439
|
+
return {
|
|
6440
|
+
[Symbol.asyncIterator]() {
|
|
6441
|
+
const connection = getConnection(chatId);
|
|
6442
|
+
const queue = [];
|
|
6443
|
+
let done = false;
|
|
6444
|
+
let pending = null;
|
|
6445
|
+
let terminalError;
|
|
6446
|
+
const subscriber = {
|
|
6447
|
+
finish(error) {
|
|
6448
|
+
if (done) {
|
|
6449
|
+
return;
|
|
6450
|
+
}
|
|
6451
|
+
done = true;
|
|
6452
|
+
terminalError = error;
|
|
6453
|
+
if (pending) {
|
|
6454
|
+
if (error) {
|
|
6455
|
+
pending.reject(error);
|
|
6456
|
+
} else {
|
|
6457
|
+
pending.resolve({ value: void 0, done: true });
|
|
6458
|
+
}
|
|
6459
|
+
pending = null;
|
|
6460
|
+
}
|
|
6461
|
+
},
|
|
6462
|
+
push(value) {
|
|
6463
|
+
if (done) {
|
|
6464
|
+
return;
|
|
6465
|
+
}
|
|
6466
|
+
if (pending) {
|
|
6467
|
+
pending.resolve({ value, done: false });
|
|
6468
|
+
pending = null;
|
|
6469
|
+
return;
|
|
6470
|
+
}
|
|
6471
|
+
queue.push(value);
|
|
6472
|
+
}
|
|
6473
|
+
};
|
|
6474
|
+
connection.addSubscriber(subscriber);
|
|
6475
|
+
return {
|
|
6476
|
+
async next() {
|
|
6477
|
+
if (queue.length > 0) {
|
|
6478
|
+
return { value: queue.shift(), done: false };
|
|
6479
|
+
}
|
|
6480
|
+
if (done) {
|
|
6481
|
+
if (terminalError) {
|
|
6482
|
+
throw terminalError;
|
|
6483
|
+
}
|
|
6484
|
+
return { value: void 0, done: true };
|
|
6485
|
+
}
|
|
6486
|
+
return new Promise((resolve, reject) => {
|
|
6487
|
+
pending = { resolve, reject };
|
|
6488
|
+
});
|
|
6489
|
+
},
|
|
6490
|
+
async return() {
|
|
6491
|
+
done = true;
|
|
6492
|
+
connection.removeSubscriber(subscriber);
|
|
6493
|
+
if (pending) {
|
|
6494
|
+
pending.resolve({ value: void 0, done: true });
|
|
6495
|
+
pending = null;
|
|
6496
|
+
}
|
|
6497
|
+
return { value: void 0, done: true };
|
|
6498
|
+
},
|
|
6499
|
+
[Symbol.asyncIterator]() {
|
|
6500
|
+
return this;
|
|
6501
|
+
}
|
|
6502
|
+
};
|
|
6503
|
+
}
|
|
6504
|
+
};
|
|
6505
|
+
}
|
|
6506
|
+
function listen(chatId, handlers) {
|
|
6507
|
+
const iterator = stream(chatId)[Symbol.asyncIterator]();
|
|
6508
|
+
let stopped = false;
|
|
6509
|
+
let cleanupStarted = false;
|
|
6510
|
+
const cleanup = () => {
|
|
6511
|
+
if (cleanupStarted) {
|
|
6512
|
+
return;
|
|
6513
|
+
}
|
|
6514
|
+
cleanupStarted = true;
|
|
6515
|
+
if (typeof iterator.return === "function") {
|
|
6516
|
+
void iterator.return().catch(() => void 0);
|
|
6517
|
+
}
|
|
6518
|
+
};
|
|
6519
|
+
void (async () => {
|
|
6520
|
+
try {
|
|
6521
|
+
while (!stopped) {
|
|
6522
|
+
const result = await iterator.next();
|
|
6523
|
+
if (result.done || stopped) {
|
|
6524
|
+
break;
|
|
6525
|
+
}
|
|
6526
|
+
handlers.next(result.value);
|
|
6527
|
+
}
|
|
6528
|
+
} catch (error) {
|
|
6529
|
+
if (!stopped) {
|
|
6530
|
+
handlers.error?.(error);
|
|
6531
|
+
}
|
|
6532
|
+
} finally {
|
|
6533
|
+
cleanup();
|
|
6534
|
+
}
|
|
6535
|
+
})();
|
|
6536
|
+
return {
|
|
6537
|
+
chatId,
|
|
6538
|
+
stop() {
|
|
6539
|
+
if (stopped) {
|
|
6540
|
+
return;
|
|
6541
|
+
}
|
|
6542
|
+
stopped = true;
|
|
6543
|
+
cleanup();
|
|
6544
|
+
}
|
|
6545
|
+
};
|
|
6546
|
+
}
|
|
6547
|
+
function listenActive(handlers) {
|
|
6548
|
+
const connection = getActiveConnection();
|
|
6549
|
+
let stopped = false;
|
|
6550
|
+
const subscriber = {
|
|
6551
|
+
finish(error) {
|
|
6552
|
+
if (stopped) {
|
|
6553
|
+
return;
|
|
6554
|
+
}
|
|
6555
|
+
stopped = true;
|
|
6556
|
+
if (error) {
|
|
6557
|
+
handlers.error?.(error);
|
|
6558
|
+
}
|
|
6559
|
+
},
|
|
6560
|
+
push(value) {
|
|
6561
|
+
if (stopped) {
|
|
6562
|
+
return;
|
|
6563
|
+
}
|
|
6564
|
+
handlers.next(value);
|
|
6565
|
+
}
|
|
6566
|
+
};
|
|
6567
|
+
connection.addSubscriber(subscriber);
|
|
6568
|
+
return {
|
|
6569
|
+
stop() {
|
|
6570
|
+
if (stopped) {
|
|
6571
|
+
return;
|
|
6572
|
+
}
|
|
6573
|
+
stopped = true;
|
|
6574
|
+
connection.removeSubscriber(subscriber);
|
|
6575
|
+
}
|
|
6576
|
+
};
|
|
6577
|
+
}
|
|
6578
|
+
function destroy() {
|
|
6579
|
+
for (const connection of Array.from(connections.values())) {
|
|
6580
|
+
connection.close();
|
|
6581
|
+
}
|
|
6582
|
+
connections.clear();
|
|
6583
|
+
activeConnection?.close();
|
|
6584
|
+
activeConnection = void 0;
|
|
6585
|
+
}
|
|
6586
|
+
return {
|
|
6587
|
+
active: {
|
|
6588
|
+
listen: listenActive
|
|
6589
|
+
},
|
|
6590
|
+
listen,
|
|
6591
|
+
stream,
|
|
6592
|
+
destroy
|
|
6593
|
+
};
|
|
6594
|
+
}
|
|
6595
|
+
|
|
6033
6596
|
// ../../node_modules/.pnpm/graphql-ws@6.0.7_graphql@16.9.0_ws@8.19.0/node_modules/graphql-ws/dist/common-CGW11Fyb.js
|
|
6034
6597
|
function extendedTypeof(val) {
|
|
6035
6598
|
if (val === null) {
|
|
@@ -6996,11 +7559,13 @@ function createWsTransport(options) {
|
|
|
6996
7559
|
}
|
|
6997
7560
|
|
|
6998
7561
|
// src/_generated_store.ts
|
|
6999
|
-
var SCHEMA_HASH = "
|
|
7562
|
+
var SCHEMA_HASH = "a5a8b191f68c634e";
|
|
7000
7563
|
var DB_ENTITY_SCHEMA = {
|
|
7001
7564
|
actions: "id",
|
|
7002
7565
|
agents: "id",
|
|
7003
7566
|
artifacts: "id",
|
|
7567
|
+
candidateEvidences: "id",
|
|
7568
|
+
candidates: "id",
|
|
7004
7569
|
chatMessages: "id",
|
|
7005
7570
|
chats: "id",
|
|
7006
7571
|
contentBlocks: "id",
|
|
@@ -7014,6 +7579,8 @@ var DB_ENTITY_SCHEMA = {
|
|
|
7014
7579
|
documentContents: "id",
|
|
7015
7580
|
documentFormats: "key",
|
|
7016
7581
|
documents: "id",
|
|
7582
|
+
evidences: "id",
|
|
7583
|
+
failedSyncEventIngestions: "id",
|
|
7017
7584
|
feedArtifactDatas: "id",
|
|
7018
7585
|
feedback: "id, &chatMessageId",
|
|
7019
7586
|
feedDatabaseDatas: "id",
|
|
@@ -7021,6 +7588,7 @@ var DB_ENTITY_SCHEMA = {
|
|
|
7021
7588
|
feedIntegrationDatas: "id",
|
|
7022
7589
|
feedItemGenerateds: "id",
|
|
7023
7590
|
feedItems: "id",
|
|
7591
|
+
feedLiveContextDatas: "id",
|
|
7024
7592
|
feedPulseDatas: "id",
|
|
7025
7593
|
feedSendMessageActions: "id",
|
|
7026
7594
|
files: "id",
|
|
@@ -7032,6 +7600,7 @@ var DB_ENTITY_SCHEMA = {
|
|
|
7032
7600
|
integrations: "id",
|
|
7033
7601
|
interpretations: "id",
|
|
7034
7602
|
invocations: "id",
|
|
7603
|
+
liveContexts: "id",
|
|
7035
7604
|
mcpClientInformations: "id",
|
|
7036
7605
|
mcpCodeVerifiers: "id",
|
|
7037
7606
|
mcpServers: "id",
|
|
@@ -7046,6 +7615,8 @@ var DB_ENTITY_SCHEMA = {
|
|
|
7046
7615
|
reportMembers: "[reportId+insightId]",
|
|
7047
7616
|
reports: "id",
|
|
7048
7617
|
resolvedFileUrls: "id",
|
|
7618
|
+
streamEventSchemaAnchors: "id",
|
|
7619
|
+
syncEventCursors: "id",
|
|
7049
7620
|
syncEvents: "id",
|
|
7050
7621
|
tables: "id",
|
|
7051
7622
|
tokenUsages: "id",
|
|
@@ -7060,6 +7631,8 @@ var TYPENAME_TO_TABLE = {
|
|
|
7060
7631
|
Action: "actions",
|
|
7061
7632
|
Agent: "agents",
|
|
7062
7633
|
Artifact: "artifacts",
|
|
7634
|
+
Candidate: "candidates",
|
|
7635
|
+
CandidateEvidence: "candidateEvidences",
|
|
7063
7636
|
Chat: "chats",
|
|
7064
7637
|
ChatMessage: "chatMessages",
|
|
7065
7638
|
ContentBlock: "contentBlocks",
|
|
@@ -7073,6 +7646,8 @@ var TYPENAME_TO_TABLE = {
|
|
|
7073
7646
|
DocumentCatalog: "documentCatalogs",
|
|
7074
7647
|
DocumentContent: "documentContents",
|
|
7075
7648
|
DocumentFormat: "documentFormats",
|
|
7649
|
+
Evidence: "evidences",
|
|
7650
|
+
FailedSyncEventIngestion: "failedSyncEventIngestions",
|
|
7076
7651
|
FeedArtifactData: "feedArtifactDatas",
|
|
7077
7652
|
Feedback: "feedback",
|
|
7078
7653
|
FeedDatabaseData: "feedDatabaseDatas",
|
|
@@ -7080,6 +7655,7 @@ var TYPENAME_TO_TABLE = {
|
|
|
7080
7655
|
FeedIntegrationData: "feedIntegrationDatas",
|
|
7081
7656
|
FeedItem: "feedItems",
|
|
7082
7657
|
FeedItemGenerated: "feedItemGenerateds",
|
|
7658
|
+
FeedLiveContextData: "feedLiveContextDatas",
|
|
7083
7659
|
FeedPulseData: "feedPulseDatas",
|
|
7084
7660
|
FeedSendMessageAction: "feedSendMessageActions",
|
|
7085
7661
|
File: "files",
|
|
@@ -7091,6 +7667,7 @@ var TYPENAME_TO_TABLE = {
|
|
|
7091
7667
|
IntegrationProvider: "integrationProviders",
|
|
7092
7668
|
Interpretation: "interpretations",
|
|
7093
7669
|
Invocation: "invocations",
|
|
7670
|
+
LiveContext: "liveContexts",
|
|
7094
7671
|
McpClientInformation: "mcpClientInformations",
|
|
7095
7672
|
McpCodeVerifier: "mcpCodeVerifiers",
|
|
7096
7673
|
McpServer: "mcpServers",
|
|
@@ -7105,7 +7682,9 @@ var TYPENAME_TO_TABLE = {
|
|
|
7105
7682
|
Report: "reports",
|
|
7106
7683
|
ReportMember: "reportMembers",
|
|
7107
7684
|
ResolvedFileUrl: "resolvedFileUrls",
|
|
7685
|
+
StreamEventSchemaAnchor: "streamEventSchemaAnchors",
|
|
7108
7686
|
SyncEvent: "syncEvents",
|
|
7687
|
+
SyncEventCursor: "syncEventCursors",
|
|
7109
7688
|
Table: "tables",
|
|
7110
7689
|
TokenUsage: "tokenUsages",
|
|
7111
7690
|
UsageWindowsStatusType: "usageWindowsStatusTypes",
|
|
@@ -7119,6 +7698,8 @@ var TABLE_TO_TYPENAME = {
|
|
|
7119
7698
|
actions: "Action",
|
|
7120
7699
|
agents: "Agent",
|
|
7121
7700
|
artifacts: "Artifact",
|
|
7701
|
+
candidateEvidences: "CandidateEvidence",
|
|
7702
|
+
candidates: "Candidate",
|
|
7122
7703
|
chatMessages: "ChatMessage",
|
|
7123
7704
|
chats: "Chat",
|
|
7124
7705
|
contentBlocks: "ContentBlock",
|
|
@@ -7132,6 +7713,8 @@ var TABLE_TO_TYPENAME = {
|
|
|
7132
7713
|
documentContents: "DocumentContent",
|
|
7133
7714
|
documentFormats: "DocumentFormat",
|
|
7134
7715
|
documents: "Document",
|
|
7716
|
+
evidences: "Evidence",
|
|
7717
|
+
failedSyncEventIngestions: "FailedSyncEventIngestion",
|
|
7135
7718
|
feedArtifactDatas: "FeedArtifactData",
|
|
7136
7719
|
feedback: "Feedback",
|
|
7137
7720
|
feedDatabaseDatas: "FeedDatabaseData",
|
|
@@ -7139,6 +7722,7 @@ var TABLE_TO_TYPENAME = {
|
|
|
7139
7722
|
feedIntegrationDatas: "FeedIntegrationData",
|
|
7140
7723
|
feedItemGenerateds: "FeedItemGenerated",
|
|
7141
7724
|
feedItems: "FeedItem",
|
|
7725
|
+
feedLiveContextDatas: "FeedLiveContextData",
|
|
7142
7726
|
feedPulseDatas: "FeedPulseData",
|
|
7143
7727
|
feedSendMessageActions: "FeedSendMessageAction",
|
|
7144
7728
|
files: "File",
|
|
@@ -7150,6 +7734,7 @@ var TABLE_TO_TYPENAME = {
|
|
|
7150
7734
|
integrations: "Integration",
|
|
7151
7735
|
interpretations: "Interpretation",
|
|
7152
7736
|
invocations: "Invocation",
|
|
7737
|
+
liveContexts: "LiveContext",
|
|
7153
7738
|
mcpClientInformations: "McpClientInformation",
|
|
7154
7739
|
mcpCodeVerifiers: "McpCodeVerifier",
|
|
7155
7740
|
mcpServers: "McpServer",
|
|
@@ -7164,6 +7749,8 @@ var TABLE_TO_TYPENAME = {
|
|
|
7164
7749
|
reportMembers: "ReportMember",
|
|
7165
7750
|
reports: "Report",
|
|
7166
7751
|
resolvedFileUrls: "ResolvedFileUrl",
|
|
7752
|
+
streamEventSchemaAnchors: "StreamEventSchemaAnchor",
|
|
7753
|
+
syncEventCursors: "SyncEventCursor",
|
|
7167
7754
|
syncEvents: "SyncEvent",
|
|
7168
7755
|
tables: "Table",
|
|
7169
7756
|
tokenUsages: "TokenUsage",
|
|
@@ -7217,6 +7804,7 @@ var MUTATION_CACHE_RULES = {
|
|
|
7217
7804
|
updateDocument: { type: "update", entityType: "documents" },
|
|
7218
7805
|
updateFolder: { type: "update", entityType: "folders" },
|
|
7219
7806
|
updateInsight: { type: "update", entityType: "insights" },
|
|
7807
|
+
updateLiveContext: { type: "update", entityType: "liveContexts" },
|
|
7220
7808
|
updateReport: { type: "update", entityType: "reports" },
|
|
7221
7809
|
updateTable: { type: "update", entityType: "tables" },
|
|
7222
7810
|
updateUserSkillFile: { type: "update", entityType: "userSkillFiles" },
|
|
@@ -7469,15 +8057,15 @@ var AuthSseError = class extends Error {
|
|
|
7469
8057
|
this.name = "AuthSseError";
|
|
7470
8058
|
}
|
|
7471
8059
|
};
|
|
7472
|
-
var
|
|
7473
|
-
var
|
|
7474
|
-
var
|
|
7475
|
-
var
|
|
8060
|
+
var INITIAL_RECONNECT_DELAY_MS2 = 1e3;
|
|
8061
|
+
var MAX_RECONNECT_DELAY_MS2 = 3e4;
|
|
8062
|
+
var RECONNECT_BACKOFF_MULTIPLIER2 = 2;
|
|
8063
|
+
var MAX_CONSECUTIVE_AUTH_FAILURES2 = 3;
|
|
7476
8064
|
var SUBSCRIPTION_REFRESH_INTERVAL_MS = 5 * 60 * 1e3;
|
|
7477
8065
|
function createSseTransport(options) {
|
|
7478
8066
|
let abortController;
|
|
7479
8067
|
let isConnected = false;
|
|
7480
|
-
let reconnectDelay =
|
|
8068
|
+
let reconnectDelay = INITIAL_RECONNECT_DELAY_MS2;
|
|
7481
8069
|
let reconnectTimer;
|
|
7482
8070
|
let refreshTimer;
|
|
7483
8071
|
let shouldReconnect = false;
|
|
@@ -7524,7 +8112,7 @@ function createSseTransport(options) {
|
|
|
7524
8112
|
}
|
|
7525
8113
|
isConnected = true;
|
|
7526
8114
|
consecutiveAuthFailures = 0;
|
|
7527
|
-
reconnectDelay =
|
|
8115
|
+
reconnectDelay = INITIAL_RECONNECT_DELAY_MS2;
|
|
7528
8116
|
options.onStateChange?.("connected");
|
|
7529
8117
|
const isReconnect = hasConnectedOnce;
|
|
7530
8118
|
hasConnectedOnce = true;
|
|
@@ -7545,18 +8133,18 @@ function createSseTransport(options) {
|
|
|
7545
8133
|
const isAuth = err instanceof AuthSseError;
|
|
7546
8134
|
if (isAuth) {
|
|
7547
8135
|
consecutiveAuthFailures++;
|
|
7548
|
-
if (consecutiveAuthFailures >=
|
|
8136
|
+
if (consecutiveAuthFailures >= MAX_CONSECUTIVE_AUTH_FAILURES2) {
|
|
7549
8137
|
disconnect();
|
|
7550
8138
|
return;
|
|
7551
8139
|
}
|
|
7552
8140
|
needsForceRefresh = true;
|
|
7553
8141
|
}
|
|
7554
|
-
const delay = isAuth ?
|
|
8142
|
+
const delay = isAuth ? INITIAL_RECONNECT_DELAY_MS2 : reconnectDelay;
|
|
7555
8143
|
reconnectTimer = setTimeout(() => {
|
|
7556
8144
|
doConnect();
|
|
7557
8145
|
}, delay);
|
|
7558
8146
|
if (!isAuth) {
|
|
7559
|
-
reconnectDelay = Math.min(reconnectDelay *
|
|
8147
|
+
reconnectDelay = Math.min(reconnectDelay * RECONNECT_BACKOFF_MULTIPLIER2, MAX_RECONNECT_DELAY_MS2);
|
|
7560
8148
|
}
|
|
7561
8149
|
}
|
|
7562
8150
|
}
|
|
@@ -9615,7 +10203,7 @@ function createLazySyncEngine(httpTransport, sseUrl, syncPolicyUrl, getToken, ge
|
|
|
9615
10203
|
var DEFAULT_UPLOAD_CONTENT_TYPE = "application/octet-stream";
|
|
9616
10204
|
var AZURE_BLOCK_BLOB_TYPE = "BlockBlob";
|
|
9617
10205
|
async function uploadFile(request, getToken, file, name, options) {
|
|
9618
|
-
const { GenerateUploadUriDocument: GenerateUploadUriDocument2 } = await import('./_generated_documents-
|
|
10206
|
+
const { GenerateUploadUriDocument: GenerateUploadUriDocument2 } = await import('./_generated_documents-3N6BQ5SR.js');
|
|
9619
10207
|
const key = `upload_${Date.now()}`;
|
|
9620
10208
|
const response = await request(
|
|
9621
10209
|
GenerateUploadUriDocument2,
|
|
@@ -9782,6 +10370,7 @@ function createDvinaClient(options) {
|
|
|
9782
10370
|
const httpUrl = `${httpProtocol}://${baseUrl}/graphql`;
|
|
9783
10371
|
const wsUrl = `${wsProtocol}://${baseUrl}/graphql`;
|
|
9784
10372
|
const sseUrl = `${httpProtocol}://${baseUrl}/api/sync/stream`;
|
|
10373
|
+
const chatStreamBaseUrl = `${httpProtocol}://${baseUrl}/api/chat`;
|
|
9785
10374
|
const syncPolicyUrl = `${httpProtocol}://${baseUrl}/api/sync/cache-policy`;
|
|
9786
10375
|
const getToken = resolveGetToken(options);
|
|
9787
10376
|
const getLanguage = resolveLanguage(options.language);
|
|
@@ -9809,6 +10398,11 @@ function createDvinaClient(options) {
|
|
|
9809
10398
|
const subscribe = (document2, variables) => {
|
|
9810
10399
|
return getWsTransport().subscribe(document2, variables);
|
|
9811
10400
|
};
|
|
10401
|
+
const chatStream = createChatStreamClient({
|
|
10402
|
+
baseUrl: chatStreamBaseUrl,
|
|
10403
|
+
getToken,
|
|
10404
|
+
onError: options.onError
|
|
10405
|
+
});
|
|
9812
10406
|
let db;
|
|
9813
10407
|
let dbInitPromise;
|
|
9814
10408
|
function getDb() {
|
|
@@ -9841,6 +10435,7 @@ function createDvinaClient(options) {
|
|
|
9841
10435
|
syncEngine,
|
|
9842
10436
|
request,
|
|
9843
10437
|
subscribe,
|
|
10438
|
+
chatStream,
|
|
9844
10439
|
getToken,
|
|
9845
10440
|
terminateWs: () => wsTransport?.terminate(),
|
|
9846
10441
|
closeDb: async () => {
|
|
@@ -10367,6 +10962,36 @@ var AudioEventOutput = class extends DvinaModel {
|
|
|
10367
10962
|
this.type = data.type;
|
|
10368
10963
|
}
|
|
10369
10964
|
};
|
|
10965
|
+
var Candidate = class extends DvinaModel {
|
|
10966
|
+
createdAt;
|
|
10967
|
+
decidedAt;
|
|
10968
|
+
decisionPassed;
|
|
10969
|
+
decisionReason;
|
|
10970
|
+
id;
|
|
10971
|
+
userId;
|
|
10972
|
+
workspaceId;
|
|
10973
|
+
constructor(request, data, syncEngine, baseUrl) {
|
|
10974
|
+
super(request, syncEngine, baseUrl);
|
|
10975
|
+
this.createdAt = new Date(data.createdAt);
|
|
10976
|
+
this.decidedAt = data.decidedAt ? new Date(data.decidedAt) : void 0;
|
|
10977
|
+
this.decisionPassed = data.decisionPassed ?? void 0;
|
|
10978
|
+
this.decisionReason = data.decisionReason ?? void 0;
|
|
10979
|
+
this.id = data.id;
|
|
10980
|
+
this.userId = data.userId;
|
|
10981
|
+
this.workspaceId = data.workspaceId;
|
|
10982
|
+
}
|
|
10983
|
+
};
|
|
10984
|
+
var CandidateEvidence = class extends DvinaModel {
|
|
10985
|
+
candidateId;
|
|
10986
|
+
evidenceId;
|
|
10987
|
+
id;
|
|
10988
|
+
constructor(request, data, syncEngine, baseUrl) {
|
|
10989
|
+
super(request, syncEngine, baseUrl);
|
|
10990
|
+
this.candidateId = data.candidateId;
|
|
10991
|
+
this.evidenceId = data.evidenceId;
|
|
10992
|
+
this.id = data.id;
|
|
10993
|
+
}
|
|
10994
|
+
};
|
|
10370
10995
|
var Chat = class extends DvinaModel {
|
|
10371
10996
|
closedAt;
|
|
10372
10997
|
createdAt;
|
|
@@ -10761,6 +11386,44 @@ var DocumentFormat = class extends DvinaModel {
|
|
|
10761
11386
|
return new DocumentCatalogQuery(this._request, this._syncEngine, { formatKey: this._catalog?.formatKey }, this._baseUrl);
|
|
10762
11387
|
}
|
|
10763
11388
|
};
|
|
11389
|
+
var Evidence = class extends DvinaModel {
|
|
11390
|
+
content;
|
|
11391
|
+
deletedAt;
|
|
11392
|
+
generatedAt;
|
|
11393
|
+
id;
|
|
11394
|
+
isProcessed;
|
|
11395
|
+
metadata;
|
|
11396
|
+
userId;
|
|
11397
|
+
workspaceId;
|
|
11398
|
+
constructor(request, data, syncEngine, baseUrl) {
|
|
11399
|
+
super(request, syncEngine, baseUrl);
|
|
11400
|
+
this.content = data.content;
|
|
11401
|
+
this.deletedAt = data.deletedAt ? new Date(data.deletedAt) : void 0;
|
|
11402
|
+
this.generatedAt = new Date(data.generatedAt);
|
|
11403
|
+
this.id = data.id;
|
|
11404
|
+
this.isProcessed = data.isProcessed;
|
|
11405
|
+
this.metadata = data.metadata;
|
|
11406
|
+
this.userId = data.userId;
|
|
11407
|
+
this.workspaceId = data.workspaceId;
|
|
11408
|
+
}
|
|
11409
|
+
};
|
|
11410
|
+
var FailedSyncEventIngestion = class extends DvinaModel {
|
|
11411
|
+
createdAt;
|
|
11412
|
+
entityId;
|
|
11413
|
+
error;
|
|
11414
|
+
id;
|
|
11415
|
+
modelName;
|
|
11416
|
+
stack;
|
|
11417
|
+
constructor(request, data, syncEngine, baseUrl) {
|
|
11418
|
+
super(request, syncEngine, baseUrl);
|
|
11419
|
+
this.createdAt = new Date(data.createdAt);
|
|
11420
|
+
this.entityId = data.entityId;
|
|
11421
|
+
this.error = data.error;
|
|
11422
|
+
this.id = data.id;
|
|
11423
|
+
this.modelName = data.modelName;
|
|
11424
|
+
this.stack = data.stack ?? void 0;
|
|
11425
|
+
}
|
|
11426
|
+
};
|
|
10764
11427
|
var FeedArtifactData = class extends DvinaModel {
|
|
10765
11428
|
artifactKind;
|
|
10766
11429
|
fileId;
|
|
@@ -10844,6 +11507,8 @@ var FeedItem = class extends DvinaModel {
|
|
|
10844
11507
|
return new FeedDocumentData(request, value, syncEngine, baseUrl);
|
|
10845
11508
|
case "FeedIntegrationData":
|
|
10846
11509
|
return new FeedIntegrationData(request, value, syncEngine, baseUrl);
|
|
11510
|
+
case "FeedLiveContextData":
|
|
11511
|
+
return new FeedLiveContextData(request, value, syncEngine, baseUrl);
|
|
10847
11512
|
case "FeedPulseData":
|
|
10848
11513
|
return new FeedPulseData(request, value, syncEngine, baseUrl);
|
|
10849
11514
|
default:
|
|
@@ -10883,6 +11548,15 @@ var FeedItemGenerated = class extends DvinaModel {
|
|
|
10883
11548
|
this.workspaceId = data.workspaceId;
|
|
10884
11549
|
}
|
|
10885
11550
|
};
|
|
11551
|
+
var FeedLiveContextData = class extends DvinaModel {
|
|
11552
|
+
kind;
|
|
11553
|
+
summary;
|
|
11554
|
+
constructor(request, data, syncEngine, baseUrl) {
|
|
11555
|
+
super(request, syncEngine, baseUrl);
|
|
11556
|
+
this.kind = data.kind;
|
|
11557
|
+
this.summary = data.summary ?? void 0;
|
|
11558
|
+
}
|
|
11559
|
+
};
|
|
10886
11560
|
var FeedPulseData = class extends DvinaModel {
|
|
10887
11561
|
kind;
|
|
10888
11562
|
priority;
|
|
@@ -10999,15 +11673,6 @@ var ImportedChatSummaryOutput = class extends DvinaModel {
|
|
|
10999
11673
|
this.provider = data.provider;
|
|
11000
11674
|
}
|
|
11001
11675
|
};
|
|
11002
|
-
var IndexContentObject = class extends DvinaModel {
|
|
11003
|
-
content;
|
|
11004
|
-
metadata;
|
|
11005
|
-
constructor(request, data, syncEngine, baseUrl) {
|
|
11006
|
-
super(request, syncEngine, baseUrl);
|
|
11007
|
-
this.content = data.content;
|
|
11008
|
-
this.metadata = data.metadata;
|
|
11009
|
-
}
|
|
11010
|
-
};
|
|
11011
11676
|
var InferenceRequestAudit = class extends DvinaModel {
|
|
11012
11677
|
assistantResponse;
|
|
11013
11678
|
createdAt;
|
|
@@ -11233,6 +11898,27 @@ var Invocation = class extends DvinaModel {
|
|
|
11233
11898
|
return new ChatMessageQuery(this._request, this._syncEngine, { id: this.chatMessageId }, this._baseUrl);
|
|
11234
11899
|
}
|
|
11235
11900
|
};
|
|
11901
|
+
var LiveContext = class extends DvinaModel {
|
|
11902
|
+
createdAt;
|
|
11903
|
+
id;
|
|
11904
|
+
sourceId;
|
|
11905
|
+
status;
|
|
11906
|
+
suggestedPrompt;
|
|
11907
|
+
summary;
|
|
11908
|
+
title;
|
|
11909
|
+
updatedAt;
|
|
11910
|
+
constructor(request, data, syncEngine, baseUrl) {
|
|
11911
|
+
super(request, syncEngine, baseUrl);
|
|
11912
|
+
this.createdAt = new Date(data.createdAt);
|
|
11913
|
+
this.id = data.id;
|
|
11914
|
+
this.sourceId = data.sourceId;
|
|
11915
|
+
this.status = data.status;
|
|
11916
|
+
this.suggestedPrompt = data.suggestedPrompt ?? void 0;
|
|
11917
|
+
this.summary = data.summary;
|
|
11918
|
+
this.title = data.title;
|
|
11919
|
+
this.updatedAt = new Date(data.updatedAt);
|
|
11920
|
+
}
|
|
11921
|
+
};
|
|
11236
11922
|
var McpAuthUpdateModel = class extends DvinaModel {
|
|
11237
11923
|
authorizationUrl;
|
|
11238
11924
|
error;
|
|
@@ -11564,6 +12250,43 @@ var ResolvedFileUrl = class extends DvinaModel {
|
|
|
11564
12250
|
this.url = data.url;
|
|
11565
12251
|
}
|
|
11566
12252
|
};
|
|
12253
|
+
var StreamEventSchemaAnchor = class extends DvinaModel {
|
|
12254
|
+
event;
|
|
12255
|
+
constructor(request, data, syncEngine, baseUrl) {
|
|
12256
|
+
super(request, syncEngine, baseUrl);
|
|
12257
|
+
this.event = (() => {
|
|
12258
|
+
const value = data.event;
|
|
12259
|
+
switch (value.__typename) {
|
|
12260
|
+
case "AudioEventOutput":
|
|
12261
|
+
return new AudioEventOutput(request, value, syncEngine, baseUrl);
|
|
12262
|
+
case "ChatTitleEventOutput":
|
|
12263
|
+
return new ChatTitleEventOutput(request, value, syncEngine, baseUrl);
|
|
12264
|
+
case "FinalContentEventOutput":
|
|
12265
|
+
return new FinalContentEventOutput(request, value, syncEngine, baseUrl);
|
|
12266
|
+
case "MessageEndEventOutput":
|
|
12267
|
+
return new MessageEndEventOutput(request, value, syncEngine, baseUrl);
|
|
12268
|
+
case "MessageStartEventOutput":
|
|
12269
|
+
return new MessageStartEventOutput(request, value, syncEngine, baseUrl);
|
|
12270
|
+
case "ReasoningEventOutput":
|
|
12271
|
+
return new ReasoningEventOutput(request, value, syncEngine, baseUrl);
|
|
12272
|
+
case "StreamableUiDeltaEventOutput":
|
|
12273
|
+
return new StreamableUiDeltaEventOutput(request, value, syncEngine, baseUrl);
|
|
12274
|
+
case "TextBlockEventOutput":
|
|
12275
|
+
return new TextBlockEventOutput(request, value, syncEngine, baseUrl);
|
|
12276
|
+
case "TextDeltaEventOutput":
|
|
12277
|
+
return new TextDeltaEventOutput(request, value, syncEngine, baseUrl);
|
|
12278
|
+
case "ToolInputDeltaEventOutput":
|
|
12279
|
+
return new ToolInputDeltaEventOutput(request, value, syncEngine, baseUrl);
|
|
12280
|
+
case "ToolResultEventOutput":
|
|
12281
|
+
return new ToolResultEventOutput(request, value, syncEngine, baseUrl);
|
|
12282
|
+
case "ToolStartEventOutput":
|
|
12283
|
+
return new ToolStartEventOutput(request, value, syncEngine, baseUrl);
|
|
12284
|
+
default:
|
|
12285
|
+
throw new Error("Unknown AgentStreamEvent member for StreamEventSchemaAnchor.event.");
|
|
12286
|
+
}
|
|
12287
|
+
})();
|
|
12288
|
+
}
|
|
12289
|
+
};
|
|
11567
12290
|
var StreamMessageContentOutput = class extends DvinaModel {
|
|
11568
12291
|
chatMessageId;
|
|
11569
12292
|
content;
|
|
@@ -11634,6 +12357,17 @@ var SyncEvent = class extends DvinaModel {
|
|
|
11634
12357
|
this.workspaceId = data.workspaceId;
|
|
11635
12358
|
}
|
|
11636
12359
|
};
|
|
12360
|
+
var SyncEventCursor = class extends DvinaModel {
|
|
12361
|
+
createdAt;
|
|
12362
|
+
key;
|
|
12363
|
+
updatedAt;
|
|
12364
|
+
constructor(request, data, syncEngine, baseUrl) {
|
|
12365
|
+
super(request, syncEngine, baseUrl);
|
|
12366
|
+
this.createdAt = new Date(data.createdAt);
|
|
12367
|
+
this.key = data.key;
|
|
12368
|
+
this.updatedAt = new Date(data.updatedAt);
|
|
12369
|
+
}
|
|
12370
|
+
};
|
|
11637
12371
|
var Table = class extends DvinaModel {
|
|
11638
12372
|
clearName;
|
|
11639
12373
|
createdAt;
|
|
@@ -11705,6 +12439,7 @@ var TokenUsage = class extends DvinaModel {
|
|
|
11705
12439
|
model;
|
|
11706
12440
|
outputTokens;
|
|
11707
12441
|
reasoningTokens;
|
|
12442
|
+
scope;
|
|
11708
12443
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11709
12444
|
super(request, syncEngine, baseUrl);
|
|
11710
12445
|
this.cacheCreation1hTokens = data.cacheCreation1hTokens ?? void 0;
|
|
@@ -11718,6 +12453,7 @@ var TokenUsage = class extends DvinaModel {
|
|
|
11718
12453
|
this.model = data.model;
|
|
11719
12454
|
this.outputTokens = data.outputTokens;
|
|
11720
12455
|
this.reasoningTokens = data.reasoningTokens ?? void 0;
|
|
12456
|
+
this.scope = data.scope;
|
|
11721
12457
|
}
|
|
11722
12458
|
};
|
|
11723
12459
|
var ToolInputDeltaEventOutput = class extends DvinaModel {
|
|
@@ -11821,14 +12557,16 @@ var UsageWindowsStatusType = class extends DvinaModel {
|
|
|
11821
12557
|
unlocksAt;
|
|
11822
12558
|
day;
|
|
11823
12559
|
fiveHour;
|
|
12560
|
+
month;
|
|
11824
12561
|
week;
|
|
11825
12562
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11826
12563
|
super(request, syncEngine, baseUrl);
|
|
11827
12564
|
this.activeWindow = data.activeWindow ?? void 0;
|
|
11828
12565
|
this.unlocksAt = data.unlocksAt ? new Date(data.unlocksAt) : void 0;
|
|
11829
|
-
this.day = new WindowDetailType(request, data.day, syncEngine, baseUrl);
|
|
11830
|
-
this.fiveHour = new WindowDetailType(request, data.fiveHour, syncEngine, baseUrl);
|
|
11831
|
-
this.
|
|
12566
|
+
this.day = data.day ? new WindowDetailType(request, data.day, syncEngine, baseUrl) : void 0;
|
|
12567
|
+
this.fiveHour = data.fiveHour ? new WindowDetailType(request, data.fiveHour, syncEngine, baseUrl) : void 0;
|
|
12568
|
+
this.month = data.month ? new WindowDetailType(request, data.month, syncEngine, baseUrl) : void 0;
|
|
12569
|
+
this.week = data.week ? new WindowDetailType(request, data.week, syncEngine, baseUrl) : void 0;
|
|
11832
12570
|
}
|
|
11833
12571
|
};
|
|
11834
12572
|
var UserSkillFile = class extends DvinaModel {
|
|
@@ -12986,6 +13724,12 @@ var TableSubBuilder = class {
|
|
|
12986
13724
|
return this;
|
|
12987
13725
|
}
|
|
12988
13726
|
};
|
|
13727
|
+
var AbortChatMutation = class extends Request {
|
|
13728
|
+
async fetch(variables) {
|
|
13729
|
+
const response = await this._syncEngine.mutate(AbortChatDocument, variables, MUTATION_CACHE_RULES["abortChat"]);
|
|
13730
|
+
return response.abortChat;
|
|
13731
|
+
}
|
|
13732
|
+
};
|
|
12989
13733
|
var AddInsightToReportMutation = class extends Request {
|
|
12990
13734
|
async fetch(variables, options) {
|
|
12991
13735
|
const response = await this._syncEngine.mutate(AddInsightToReportDocument, variables, MUTATION_CACHE_RULES["addInsightToReport"]);
|
|
@@ -13310,6 +14054,13 @@ var ScheduleWorkspaceDeletionMutation = class extends Request {
|
|
|
13310
14054
|
return new WorkspaceDeleteSchedule(this._request, data, this._syncEngine, this._baseUrl);
|
|
13311
14055
|
}
|
|
13312
14056
|
};
|
|
14057
|
+
var SendMessageMutation = class extends Request {
|
|
14058
|
+
async fetch(variables, options) {
|
|
14059
|
+
const response = await this._syncEngine.mutate(SendMessageDocument, variables, MUTATION_CACHE_RULES["sendMessage"]);
|
|
14060
|
+
const data = response.sendMessage;
|
|
14061
|
+
return new ChatMessage(this._request, data, this._syncEngine, this._baseUrl);
|
|
14062
|
+
}
|
|
14063
|
+
};
|
|
13313
14064
|
var SetDatabasePrimaryKeyMutation = class extends Request {
|
|
13314
14065
|
async fetch(variables) {
|
|
13315
14066
|
const response = await this._syncEngine.mutate(SetDatabasePrimaryKeyDocument, variables, MUTATION_CACHE_RULES["setDatabasePrimaryKey"]);
|
|
@@ -13323,6 +14074,13 @@ var UpdateAgentMutation = class extends Request {
|
|
|
13323
14074
|
return new Agent(this._request, data, this._syncEngine, this._baseUrl);
|
|
13324
14075
|
}
|
|
13325
14076
|
};
|
|
14077
|
+
var UpdateArtifactNameMutation = class extends Request {
|
|
14078
|
+
async fetch(variables, options) {
|
|
14079
|
+
const response = await this._syncEngine.mutate(UpdateArtifactNameDocument, variables, MUTATION_CACHE_RULES["updateArtifactName"]);
|
|
14080
|
+
const data = response.updateArtifactName;
|
|
14081
|
+
return new Artifact(this._request, data, this._syncEngine, this._baseUrl);
|
|
14082
|
+
}
|
|
14083
|
+
};
|
|
13326
14084
|
var UpdateChatMutation = class extends Request {
|
|
13327
14085
|
async fetch(variables, options) {
|
|
13328
14086
|
const response = await this._syncEngine.mutate(UpdateChatDocument, variables, MUTATION_CACHE_RULES["updateChat"]);
|
|
@@ -13378,6 +14136,13 @@ var UpdateInterpMutation = class extends Request {
|
|
|
13378
14136
|
return new Interpretation(this._request, data, this._syncEngine, this._baseUrl);
|
|
13379
14137
|
}
|
|
13380
14138
|
};
|
|
14139
|
+
var UpdateLiveContextMutation = class extends Request {
|
|
14140
|
+
async fetch(variables, options) {
|
|
14141
|
+
const response = await this._syncEngine.mutate(UpdateLiveContextDocument, variables, MUTATION_CACHE_RULES["updateLiveContext"]);
|
|
14142
|
+
const data = response.updateLiveContext;
|
|
14143
|
+
return new LiveContext(this._request, data, this._syncEngine, this._baseUrl);
|
|
14144
|
+
}
|
|
14145
|
+
};
|
|
13381
14146
|
var UpdatePulseTriggerMutation = class extends Request {
|
|
13382
14147
|
async fetch(variables, options) {
|
|
13383
14148
|
const response = await this._syncEngine.mutate(UpdatePulseTriggerDocument, variables, MUTATION_CACHE_RULES["updatePulseTrigger"]);
|
|
@@ -16718,6 +17483,36 @@ var GetTokenUsageStatus_Windows_FiveHourQuery = class extends Request {
|
|
|
16718
17483
|
});
|
|
16719
17484
|
}
|
|
16720
17485
|
};
|
|
17486
|
+
var GetTokenUsageStatus_Windows_MonthQuery = class extends Request {
|
|
17487
|
+
_variables;
|
|
17488
|
+
constructor(request, syncEngine, variables = {}, baseUrl) {
|
|
17489
|
+
super(request, syncEngine, void 0, baseUrl);
|
|
17490
|
+
this._variables = variables;
|
|
17491
|
+
}
|
|
17492
|
+
async fetch(options) {
|
|
17493
|
+
const variables = this._variables;
|
|
17494
|
+
const response = await this._syncEngine.query(GetTokenUsageStatus_Windows_MonthDocument, variables, "getTokenUsageStatus");
|
|
17495
|
+
const data = response.getTokenUsageStatus?.windows?.month;
|
|
17496
|
+
return data ? new WindowDetailType(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
17497
|
+
}
|
|
17498
|
+
watch(options) {
|
|
17499
|
+
const variables = this._variables;
|
|
17500
|
+
const raw = this._syncEngine.watch(
|
|
17501
|
+
GetTokenUsageStatus_Windows_MonthDocument,
|
|
17502
|
+
variables,
|
|
17503
|
+
"getTokenUsageStatus",
|
|
17504
|
+
async (db) => {
|
|
17505
|
+
const vars = variables;
|
|
17506
|
+
const entity = vars?.id ? await db.table("windowDetailTypes").get(vars.id) : void 0;
|
|
17507
|
+
return { getTokenUsageStatus: { windows: { month: entity ?? null } } };
|
|
17508
|
+
}
|
|
17509
|
+
);
|
|
17510
|
+
return new MappedDvinaQueryRef(raw, (response) => {
|
|
17511
|
+
const data = response.getTokenUsageStatus?.windows?.month;
|
|
17512
|
+
return data ? new WindowDetailType(this._request, data, this._syncEngine, this._baseUrl) : void 0;
|
|
17513
|
+
});
|
|
17514
|
+
}
|
|
17515
|
+
};
|
|
16721
17516
|
var GetTokenUsageStatus_Windows_WeekQuery = class extends Request {
|
|
16722
17517
|
_variables;
|
|
16723
17518
|
constructor(request, syncEngine, variables = {}, baseUrl) {
|
|
@@ -18328,21 +19123,6 @@ var ReportsQuery = class _ReportsQuery extends Request {
|
|
|
18328
19123
|
return this;
|
|
18329
19124
|
}
|
|
18330
19125
|
};
|
|
18331
|
-
var SearchQuery = class extends Request {
|
|
18332
|
-
_variables;
|
|
18333
|
-
_includes = [];
|
|
18334
|
-
constructor(request, syncEngine, variables = {}, baseUrl) {
|
|
18335
|
-
super(request, syncEngine, void 0, baseUrl);
|
|
18336
|
-
this._variables = variables;
|
|
18337
|
-
}
|
|
18338
|
-
async fetch(options) {
|
|
18339
|
-
const { document: queryDoc, variables: mergedVars } = buildSmartQuery(SearchDocument, "search", this._includes, this._variables);
|
|
18340
|
-
const response = await this._syncEngine.query(queryDoc, mergedVars, "search");
|
|
18341
|
-
const data = response.search;
|
|
18342
|
-
if (!Array.isArray(data)) return [];
|
|
18343
|
-
return data.map((item) => new IndexContentObject(this._request, item, this._syncEngine, this._baseUrl));
|
|
18344
|
-
}
|
|
18345
|
-
};
|
|
18346
19126
|
var TableQuery = class extends Request {
|
|
18347
19127
|
_variables;
|
|
18348
19128
|
_includes = [];
|
|
@@ -19012,11 +19792,6 @@ var McpAuthUpdatesSubscription = class extends Request {
|
|
|
19012
19792
|
}
|
|
19013
19793
|
}
|
|
19014
19794
|
};
|
|
19015
|
-
var SendMessageStreamSubscription = class extends Request {
|
|
19016
|
-
subscribe(variables) {
|
|
19017
|
-
return this._subscribe(SendMessageStreamDocument, variables);
|
|
19018
|
-
}
|
|
19019
|
-
};
|
|
19020
19795
|
var TokenUsageUpdatesSubscription = class extends Request {
|
|
19021
19796
|
async *subscribe(variables) {
|
|
19022
19797
|
for await (const response of this._subscribe(TokenUsageUpdatesDocument, variables)) {
|
|
@@ -19028,6 +19803,8 @@ var TokenUsageUpdatesSubscription = class extends Request {
|
|
|
19028
19803
|
var DvinaSdk = class extends Request {
|
|
19029
19804
|
/** The SyncEngine instance managing the local Dexie store and server sync. */
|
|
19030
19805
|
syncEngine;
|
|
19806
|
+
/** Chat SSE client for chat-scoped stream listeners. */
|
|
19807
|
+
chatStream;
|
|
19031
19808
|
_getToken;
|
|
19032
19809
|
_terminateWs;
|
|
19033
19810
|
_closeDb;
|
|
@@ -19036,15 +19813,20 @@ var DvinaSdk = class extends Request {
|
|
|
19036
19813
|
/** Billing client for the Dvina Billing API (plans, subscriptions, seats, sessions). */
|
|
19037
19814
|
billing;
|
|
19038
19815
|
constructor(options) {
|
|
19039
|
-
const { syncEngine, request, subscribe, getToken, terminateWs, closeDb, inference, billing, baseUrl } = createDvinaClient(options);
|
|
19816
|
+
const { syncEngine, request, subscribe, chatStream, getToken, terminateWs, closeDb, inference, billing, baseUrl } = createDvinaClient(options);
|
|
19040
19817
|
super(request, syncEngine, subscribe, baseUrl);
|
|
19041
19818
|
this.syncEngine = syncEngine;
|
|
19819
|
+
this.chatStream = chatStream;
|
|
19042
19820
|
this._getToken = getToken;
|
|
19043
19821
|
this._terminateWs = terminateWs;
|
|
19044
19822
|
this._closeDb = closeDb;
|
|
19045
19823
|
this.inference = inference;
|
|
19046
19824
|
this.billing = billing;
|
|
19047
19825
|
}
|
|
19826
|
+
/** Mutation: abortChat (scalar) */
|
|
19827
|
+
abortChat(variables) {
|
|
19828
|
+
return new AbortChatMutation(this._request, this._syncEngine).fetch(variables);
|
|
19829
|
+
}
|
|
19048
19830
|
/** Mutation: addInsightToReport */
|
|
19049
19831
|
addInsightToReport(variables) {
|
|
19050
19832
|
return new AddInsightToReportMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
|
|
@@ -19237,6 +20019,10 @@ var DvinaSdk = class extends Request {
|
|
|
19237
20019
|
scheduleWorkspaceDeletion() {
|
|
19238
20020
|
return new ScheduleWorkspaceDeletionMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(void 0);
|
|
19239
20021
|
}
|
|
20022
|
+
/** Mutation: sendMessage */
|
|
20023
|
+
sendMessage(variables) {
|
|
20024
|
+
return new SendMessageMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
|
|
20025
|
+
}
|
|
19240
20026
|
/** Mutation: setDatabasePrimaryKey (scalar) */
|
|
19241
20027
|
setDatabasePrimaryKey(variables) {
|
|
19242
20028
|
return new SetDatabasePrimaryKeyMutation(this._request, this._syncEngine).fetch(variables);
|
|
@@ -19245,6 +20031,10 @@ var DvinaSdk = class extends Request {
|
|
|
19245
20031
|
updateAgent(variables) {
|
|
19246
20032
|
return new UpdateAgentMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
|
|
19247
20033
|
}
|
|
20034
|
+
/** Mutation: updateArtifactName */
|
|
20035
|
+
updateArtifactName(variables) {
|
|
20036
|
+
return new UpdateArtifactNameMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
|
|
20037
|
+
}
|
|
19248
20038
|
/** Mutation: updateChat */
|
|
19249
20039
|
updateChat(variables) {
|
|
19250
20040
|
return new UpdateChatMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
|
|
@@ -19277,6 +20067,10 @@ var DvinaSdk = class extends Request {
|
|
|
19277
20067
|
updateInterp(variables) {
|
|
19278
20068
|
return new UpdateInterpMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
|
|
19279
20069
|
}
|
|
20070
|
+
/** Mutation: updateLiveContext */
|
|
20071
|
+
updateLiveContext(variables) {
|
|
20072
|
+
return new UpdateLiveContextMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
|
|
20073
|
+
}
|
|
19280
20074
|
/** Mutation: updatePulseTrigger */
|
|
19281
20075
|
updatePulseTrigger(variables) {
|
|
19282
20076
|
return new UpdatePulseTriggerMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
|
|
@@ -19521,10 +20315,6 @@ var DvinaSdk = class extends Request {
|
|
|
19521
20315
|
reports(variables) {
|
|
19522
20316
|
return new ReportsQuery(this._request, this._syncEngine, variables, this._baseUrl);
|
|
19523
20317
|
}
|
|
19524
|
-
/** Query: search — call .fetch() or .watch() to execute. */
|
|
19525
|
-
search(variables) {
|
|
19526
|
-
return new SearchQuery(this._request, this._syncEngine, variables, this._baseUrl);
|
|
19527
|
-
}
|
|
19528
20318
|
/** Query: table — call .fetch() or .watch() to execute. */
|
|
19529
20319
|
table(variables) {
|
|
19530
20320
|
return new TableQuery(this._request, this._syncEngine, variables, this._baseUrl);
|
|
@@ -19557,10 +20347,6 @@ var DvinaSdk = class extends Request {
|
|
|
19557
20347
|
mcpAuthUpdates(variables) {
|
|
19558
20348
|
return new McpAuthUpdatesSubscription(this._request, this._syncEngine, this._subscribe).subscribe(variables);
|
|
19559
20349
|
}
|
|
19560
|
-
/** sendMessageStream subscription */
|
|
19561
|
-
sendMessageStream(variables) {
|
|
19562
|
-
return new SendMessageStreamSubscription(this._request, this._syncEngine, this._subscribe).subscribe(variables);
|
|
19563
|
-
}
|
|
19564
20350
|
/** tokenUsageUpdates subscription */
|
|
19565
20351
|
tokenUsageUpdates(variables) {
|
|
19566
20352
|
return new TokenUsageUpdatesSubscription(this._request, this._syncEngine, this._subscribe).subscribe(variables);
|
|
@@ -19605,12 +20391,13 @@ var DvinaSdk = class extends Request {
|
|
|
19605
20391
|
*/
|
|
19606
20392
|
async destroy() {
|
|
19607
20393
|
this.syncEngine.stopSync();
|
|
20394
|
+
this.chatStream.destroy();
|
|
19608
20395
|
this._terminateWs();
|
|
19609
20396
|
this.billing.destroy();
|
|
19610
20397
|
await this._closeDb();
|
|
19611
20398
|
}
|
|
19612
20399
|
};
|
|
19613
20400
|
|
|
19614
|
-
export { 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, 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, ExecuteChatImportMutation, ExportQuery, ExportWithInsightIdQuery, FeedArtifactData, FeedConnection, FeedDatabaseData, FeedDocumentData, FeedIntegrationData, FeedItem, FeedItemGenerated, FeedItemQuery, FeedItemSubBuilder, FeedItem_ActionQuery, FeedItem_DataQuery, FeedItemsQuery, 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_WeekQuery, GetUsageQuery, ImportedChatSummaryOutput,
|
|
19615
|
-
//# sourceMappingURL=chunk-
|
|
19616
|
-
//# sourceMappingURL=chunk-
|
|
20401
|
+
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, 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, 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, PulseAppSummaryModel, PulseAppSummaryQuery, PulseEvent, PulseEventConnection, PulseEventQuery, PulseEventSubBuilder, PulseEvent_IntegrationQuery, PulseEvent_Integration_ProviderQuery, PulseEventsQuery, PulseTriggerSettingModel, PulseTriggerSettingsQuery, QueryQuery, QueryWithInsightIdQuery, QueryWithMessageIdQuery, ReanalyzeDocumentMutation, ReasoningEventOutput, RefineMindInstructionMutation, 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, StreamableUiDeltaEventOutput, 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, WindowDetailType, WorkspaceDeleteSchedule, WorkspaceDeletionScheduleQuery, closeDatabase, createChatStreamClient, createDvinaClient, createLazySyncEngine, createSseTransport, createWsTransport, deleteDatabase, getOrCreateDatabase, reconstructConnectionNodes, reconstructEntity, uploadFile };
|
|
20402
|
+
//# sourceMappingURL=chunk-AYE3QJ2O.js.map
|
|
20403
|
+
//# sourceMappingURL=chunk-AYE3QJ2O.js.map
|