@dvina/sdk 4.0.163 → 4.0.170
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/dist/{_generated_documents-GBXPBIEJ.js → _generated_documents-36ZYXZ66.js} +3 -3
- package/dist/{_generated_documents-GBXPBIEJ.js.map → _generated_documents-36ZYXZ66.js.map} +1 -1
- package/dist/{_generated_documents-QQXURV5T.cjs → _generated_documents-4WIHZZLW.cjs} +546 -542
- package/dist/{_generated_documents-QQXURV5T.cjs.map → _generated_documents-4WIHZZLW.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-VYYPPIWZ.cjs → chunk-EPBZUR7O.cjs} +1386 -1161
- package/dist/chunk-EPBZUR7O.cjs.map +1 -0
- package/dist/{chunk-3QH7N6AT.js → chunk-GSDBWMKI.js} +20 -19
- package/dist/chunk-GSDBWMKI.js.map +1 -0
- package/dist/{chunk-NEAQRDPR.js → chunk-SCU64JSH.js} +899 -675
- package/dist/chunk-SCU64JSH.js.map +1 -0
- package/dist/{chunk-MFVKPMD4.cjs → chunk-WPBTVJKH.cjs} +21 -19
- package/dist/chunk-WPBTVJKH.cjs.map +1 -0
- package/dist/{client-Dly4UNbO.d.ts → client-DPkc8UWv.d.ts} +368 -432
- package/dist/{client-DLtMCNRg.d.cts → client-PERalzV3.d.cts} +368 -432
- package/dist/index.cjs +400 -396
- package/dist/index.d.cts +255 -252
- package/dist/index.d.ts +255 -252
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-3QH7N6AT.js.map +0 -1
- package/dist/chunk-MFVKPMD4.cjs.map +0 -1
- package/dist/chunk-NEAQRDPR.js.map +0 -1
- package/dist/chunk-VYYPPIWZ.cjs.map +0 -1
|
@@ -2,7 +2,7 @@ import { Request, Connection, PageInfo, defaultConnection } from './chunk-KEM6SU
|
|
|
2
2
|
import { createInferenceClientInternal } from './chunk-PDM2KR7T.js';
|
|
3
3
|
import { createHttpTransport, BillingClient, print, Kind } from './chunk-5TAY5I34.js';
|
|
4
4
|
import { GRAPHQL_ERROR_CODES, DvinaAuthenticationError, DvinaNetworkError, DvinaGraphQLError, DvinaError, createGraphQLError } from './chunk-7XBJ77RJ.js';
|
|
5
|
-
import { ChatConnectionFragmentDoc, ChatFragmentDoc, FileFragmentDoc, ChatMessageFragmentDoc, AgentConnectionFragmentDoc, ArtifactConnectionFragmentDoc, InsightFragmentDoc, ChatMessageConnectionFragmentDoc, ContentBlockFragmentDoc, FeedbackFragmentDoc, DatabaseEngineFragmentDoc, TableConnectionFragmentDoc, DocumentContentFragmentDoc, DocumentFormatFragmentDoc, FeedSendMessageActionFragmentDoc, FeedArtifactDataFragmentDoc, ReportMemberFragmentDoc, ReportConnectionFragmentDoc, IntegrationProviderFragmentDoc, 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,
|
|
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, RefineAgentInstructionDocument, RefineSkillInstructionDocument, RefreshDatabaseSchemaDocument, RefreshInsightDocument, ReinterpretSourceDocument, ReinterpretSourcesOfuserDocument, RelocateInsightDocument, RemoveInsightFromReportDocument, ResetWorkspaceDocument, ResolvePulseEventDocument, ScheduleWorkspaceDeletionDocument, SendMessageDocument, SetDatabasePrimaryKeyDocument, UpdateAgentDocument, UpdateArtifactNameDocument, UpdateChatDocument, UpdateDatabaseDocument, UpdateDocumentDocument, UpdateFolderDocument, UpdateInsightDocument, UpdateInsightInReportDocument, UpdateInsightThumbnailDocument, UpdateInterpDocument, UpdateLiveContextDocument, UpdatePulseTriggerDocument, UpdateReportDocument, UpdateTableDocument, UpdateUserSkillFileDocument, UpdateUserSkillFolderDocument, AgentDocument, Agent_ChatsDocument, AgentsDocument, ArtifactDocument, Artifact_ChatDocument, Artifact_Chat_InsightDocument, Artifact_FileDocument, Artifact_MessageDocument, Artifact_Message_ChatDocument, Artifact_Message_ContentsDocument, Artifact_Message_FeedbackDocument, ArtifactsDocument, ChatDocument, Chat_AgentsDocument, Chat_ArtifactsDocument, Chat_InsightDocument, Chat_Insight_ReportMembersDocument, Chat_Insight_ThumbnailFileDocument, Chat_MessagesDocument, ChatMessageDocument, ChatMessage_ArtifactsDocument, ChatMessage_ChatDocument, ChatMessage_Chat_InsightDocument, ChatMessage_ContentsDocument, ChatMessage_FeedbackDocument, ChatMessagesDocument, ChatsDocument, DatabaseDocument, Database_EngineDocument, Database_Engine_CatalogDocument, Database_TablesDocument, DatabaseCatalogDocument, DatabaseCatalog_EngineDocument, DatabaseCatalogsDocument, DatabaseSchemaDocument, DatabasesDocument, DocumentDocument, Document_ContentsDocument, Document_FileDocument, Document_FormatDocument, Document_Format_CatalogDocument, Document_TablesDocument, DocumentCatalogDocument, DocumentCatalog_FormatDocument, DocumentCatalogsDocument, DocumentsDocument, ExportDocument, ExportWithInsightIdDocument, FeedItemDocument, FeedItem_ActionDocument, FeedItem_DataDocument, FeedItemsDocument, FileDocument, FileMetaDocument, FileUrlsDocument, FindFitTierDocument, FolderDocument, FoldersDocument, GetCapabilityDocument, GetDevAccessTokenDocument, GetLimitDocument, GetRemainingDocument, GetTokenUsageByModelDocument, GetTokenUsageHistoryDocument, GetTokenUsageStatusDocument, UsageWindowsStatusTypeFragmentDoc, GetTokenUsageStatus_WindowsDocument, GetTokenUsageStatus_Windows_DayDocument, GetTokenUsageStatus_Windows_FiveHourDocument, GetTokenUsageStatus_Windows_MonthDocument, GetTokenUsageStatus_Windows_WeekDocument, GetUsageDocument, InsightDocument, Insight_ChatDocument, Insight_ReportMembersDocument, Insight_ReportsDocument, Insight_ThumbnailFileDocument, InsightsDocument, IntegrationDocument, Integration_ProviderDocument, Integration_Provider_CatalogDocument, IntegrationCatalogDocument, IntegrationCatalog_ProviderDocument, IntegrationCatalogToolsDocument, IntegrationCatalogsDocument, IntegrationsDocument, InterpretationsDocument, 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-GSDBWMKI.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
|
|
@@ -9094,6 +9094,15 @@ function isMissingDexieTableError(error) {
|
|
|
9094
9094
|
}
|
|
9095
9095
|
return /table\s+.+\s+does not exist/i.test(error.message);
|
|
9096
9096
|
}
|
|
9097
|
+
var DvinaCacheMissError = class extends Error {
|
|
9098
|
+
constructor(queryKey) {
|
|
9099
|
+
super(`Cache miss for watch query: ${queryKey}`);
|
|
9100
|
+
this.name = "DvinaCacheMissError";
|
|
9101
|
+
}
|
|
9102
|
+
};
|
|
9103
|
+
function isDvinaCacheMissError(error) {
|
|
9104
|
+
return error instanceof DvinaCacheMissError;
|
|
9105
|
+
}
|
|
9097
9106
|
var QueryExecutor = class {
|
|
9098
9107
|
constructor(_db, _http, _cache) {
|
|
9099
9108
|
this._db = _db;
|
|
@@ -9180,6 +9189,13 @@ var QueryExecutor = class {
|
|
|
9180
9189
|
try {
|
|
9181
9190
|
return await buildResult(this._db);
|
|
9182
9191
|
} catch (error) {
|
|
9192
|
+
if (isDvinaCacheMissError(error)) {
|
|
9193
|
+
try {
|
|
9194
|
+
return await this.query(document2, variables, operationName);
|
|
9195
|
+
} catch {
|
|
9196
|
+
return ref.current;
|
|
9197
|
+
}
|
|
9198
|
+
}
|
|
9183
9199
|
if (isMissingDexieTableError(error)) {
|
|
9184
9200
|
return ref.current;
|
|
9185
9201
|
}
|
|
@@ -9234,7 +9250,7 @@ var QueryExecutor = class {
|
|
|
9234
9250
|
}
|
|
9235
9251
|
return;
|
|
9236
9252
|
} catch (cacheReadError) {
|
|
9237
|
-
if (!isMissingDexieTableError(cacheReadError)) {
|
|
9253
|
+
if (!isMissingDexieTableError(cacheReadError) && !isDvinaCacheMissError(cacheReadError)) {
|
|
9238
9254
|
throw cacheReadError;
|
|
9239
9255
|
}
|
|
9240
9256
|
}
|
|
@@ -9244,7 +9260,7 @@ var QueryExecutor = class {
|
|
|
9244
9260
|
const result = await buildResult(this._db);
|
|
9245
9261
|
ref._markInitialized(result);
|
|
9246
9262
|
} catch (storeReadError) {
|
|
9247
|
-
if (isMissingDexieTableError(storeReadError)) {
|
|
9263
|
+
if (isMissingDexieTableError(storeReadError) || isDvinaCacheMissError(storeReadError)) {
|
|
9248
9264
|
ref._markInitialized(networkResult);
|
|
9249
9265
|
return;
|
|
9250
9266
|
}
|
|
@@ -9254,7 +9270,11 @@ var QueryExecutor = class {
|
|
|
9254
9270
|
try {
|
|
9255
9271
|
const result = await buildResult(this._db);
|
|
9256
9272
|
ref._markInitialized(result);
|
|
9257
|
-
} catch {
|
|
9273
|
+
} catch (cacheReadError) {
|
|
9274
|
+
if (isDvinaCacheMissError(cacheReadError)) {
|
|
9275
|
+
ref._markFailed(fetchError);
|
|
9276
|
+
return;
|
|
9277
|
+
}
|
|
9258
9278
|
ref._markFailed(fetchError);
|
|
9259
9279
|
}
|
|
9260
9280
|
}
|
|
@@ -10319,7 +10339,7 @@ function createLazySyncEngine(httpTransport, sseUrl, syncPolicyUrl, getToken, ge
|
|
|
10319
10339
|
var DEFAULT_UPLOAD_CONTENT_TYPE = "application/octet-stream";
|
|
10320
10340
|
var AZURE_BLOCK_BLOB_TYPE = "BlockBlob";
|
|
10321
10341
|
async function uploadFile(request, getToken, file, name, options) {
|
|
10322
|
-
const { GenerateUploadUriDocument: GenerateUploadUriDocument2 } = await import('./_generated_documents-
|
|
10342
|
+
const { GenerateUploadUriDocument: GenerateUploadUriDocument2 } = await import('./_generated_documents-36ZYXZ66.js');
|
|
10323
10343
|
const key = `upload_${Date.now()}`;
|
|
10324
10344
|
const response = await request(
|
|
10325
10345
|
GenerateUploadUriDocument2,
|
|
@@ -11127,19 +11147,19 @@ function hydrateIncludes(instance, rawData, includes, request, syncEngine, baseU
|
|
|
11127
11147
|
|
|
11128
11148
|
// src/_generated_sdk.ts
|
|
11129
11149
|
var Action = class extends DvinaModel {
|
|
11150
|
+
id;
|
|
11130
11151
|
chatMessageId;
|
|
11152
|
+
type;
|
|
11131
11153
|
count;
|
|
11132
11154
|
createdAt;
|
|
11133
|
-
id;
|
|
11134
|
-
type;
|
|
11135
11155
|
updatedAt;
|
|
11136
11156
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11137
11157
|
super(request, syncEngine, baseUrl);
|
|
11158
|
+
this.id = data.id;
|
|
11138
11159
|
this.chatMessageId = data.chatMessageId ?? void 0;
|
|
11160
|
+
this.type = data.type;
|
|
11139
11161
|
this.count = data.count;
|
|
11140
11162
|
this.createdAt = new Date(data.createdAt);
|
|
11141
|
-
this.id = data.id;
|
|
11142
|
-
this.type = data.type;
|
|
11143
11163
|
this.updatedAt = new Date(data.updatedAt);
|
|
11144
11164
|
}
|
|
11145
11165
|
/** Lazy-fetch the chatMessage relation. Call .fetch() or .watch() to execute. */
|
|
@@ -11148,19 +11168,19 @@ var Action = class extends DvinaModel {
|
|
|
11148
11168
|
}
|
|
11149
11169
|
};
|
|
11150
11170
|
var Agent = class extends DvinaModel {
|
|
11151
|
-
createdAt;
|
|
11152
|
-
emoji;
|
|
11153
11171
|
id;
|
|
11154
|
-
instruction;
|
|
11155
11172
|
name;
|
|
11173
|
+
emoji;
|
|
11174
|
+
instruction;
|
|
11175
|
+
createdAt;
|
|
11156
11176
|
updatedAt;
|
|
11157
11177
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11158
11178
|
super(request, syncEngine, baseUrl);
|
|
11159
|
-
this.createdAt = new Date(data.createdAt);
|
|
11160
|
-
this.emoji = data.emoji ?? void 0;
|
|
11161
11179
|
this.id = data.id;
|
|
11162
|
-
this.instruction = data.instruction ?? void 0;
|
|
11163
11180
|
this.name = data.name ?? void 0;
|
|
11181
|
+
this.emoji = data.emoji ?? void 0;
|
|
11182
|
+
this.instruction = data.instruction ?? void 0;
|
|
11183
|
+
this.createdAt = new Date(data.createdAt);
|
|
11164
11184
|
this.updatedAt = new Date(data.updatedAt);
|
|
11165
11185
|
}
|
|
11166
11186
|
/** Query the chats relation for this Agent. Call .fetch() or .watch() to execute. */
|
|
@@ -11169,26 +11189,26 @@ var Agent = class extends DvinaModel {
|
|
|
11169
11189
|
}
|
|
11170
11190
|
};
|
|
11171
11191
|
var Artifact = class extends DvinaModel {
|
|
11172
|
-
chatId;
|
|
11173
|
-
createdAt;
|
|
11174
|
-
fileId;
|
|
11175
11192
|
id;
|
|
11193
|
+
createdAt;
|
|
11194
|
+
updatedAt;
|
|
11176
11195
|
kind;
|
|
11196
|
+
fileId;
|
|
11197
|
+
chatId;
|
|
11177
11198
|
messageId;
|
|
11178
11199
|
toolCallId;
|
|
11179
|
-
updatedAt;
|
|
11180
11200
|
userId;
|
|
11181
11201
|
workspaceId;
|
|
11182
11202
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11183
11203
|
super(request, syncEngine, baseUrl);
|
|
11184
|
-
this.chatId = data.chatId ?? void 0;
|
|
11185
|
-
this.createdAt = new Date(data.createdAt);
|
|
11186
|
-
this.fileId = data.fileId;
|
|
11187
11204
|
this.id = data.id;
|
|
11205
|
+
this.createdAt = new Date(data.createdAt);
|
|
11206
|
+
this.updatedAt = new Date(data.updatedAt);
|
|
11188
11207
|
this.kind = data.kind;
|
|
11208
|
+
this.fileId = data.fileId;
|
|
11209
|
+
this.chatId = data.chatId ?? void 0;
|
|
11189
11210
|
this.messageId = data.messageId ?? void 0;
|
|
11190
11211
|
this.toolCallId = data.toolCallId ?? void 0;
|
|
11191
|
-
this.updatedAt = new Date(data.updatedAt);
|
|
11192
11212
|
this.userId = data.userId ?? void 0;
|
|
11193
11213
|
this.workspaceId = data.workspaceId ?? void 0;
|
|
11194
11214
|
}
|
|
@@ -11206,66 +11226,66 @@ var Artifact = class extends DvinaModel {
|
|
|
11206
11226
|
}
|
|
11207
11227
|
};
|
|
11208
11228
|
var AudioEventOutput = class extends DvinaModel {
|
|
11229
|
+
type;
|
|
11209
11230
|
data;
|
|
11210
11231
|
duration;
|
|
11211
|
-
type;
|
|
11212
11232
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11213
11233
|
super(request, syncEngine, baseUrl);
|
|
11234
|
+
this.type = data.type;
|
|
11214
11235
|
this.data = data.data;
|
|
11215
11236
|
this.duration = data.duration;
|
|
11216
|
-
this.type = data.type;
|
|
11217
11237
|
}
|
|
11218
11238
|
};
|
|
11219
11239
|
var Candidate = class extends DvinaModel {
|
|
11220
|
-
createdAt;
|
|
11221
|
-
decidedAt;
|
|
11222
|
-
decisionPassed;
|
|
11223
|
-
decisionReason;
|
|
11224
11240
|
id;
|
|
11225
11241
|
userId;
|
|
11226
11242
|
workspaceId;
|
|
11243
|
+
decisionPassed;
|
|
11244
|
+
decisionReason;
|
|
11245
|
+
decidedAt;
|
|
11246
|
+
createdAt;
|
|
11227
11247
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11228
11248
|
super(request, syncEngine, baseUrl);
|
|
11229
|
-
this.createdAt = new Date(data.createdAt);
|
|
11230
|
-
this.decidedAt = data.decidedAt ? new Date(data.decidedAt) : void 0;
|
|
11231
|
-
this.decisionPassed = data.decisionPassed ?? void 0;
|
|
11232
|
-
this.decisionReason = data.decisionReason ?? void 0;
|
|
11233
11249
|
this.id = data.id;
|
|
11234
11250
|
this.userId = data.userId;
|
|
11235
11251
|
this.workspaceId = data.workspaceId;
|
|
11252
|
+
this.decisionPassed = data.decisionPassed ?? void 0;
|
|
11253
|
+
this.decisionReason = data.decisionReason ?? void 0;
|
|
11254
|
+
this.decidedAt = data.decidedAt ? new Date(data.decidedAt) : void 0;
|
|
11255
|
+
this.createdAt = new Date(data.createdAt);
|
|
11236
11256
|
}
|
|
11237
11257
|
};
|
|
11238
11258
|
var CandidateEvidence = class extends DvinaModel {
|
|
11259
|
+
id;
|
|
11239
11260
|
candidateId;
|
|
11240
11261
|
evidenceId;
|
|
11241
|
-
id;
|
|
11242
11262
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11243
11263
|
super(request, syncEngine, baseUrl);
|
|
11264
|
+
this.id = data.id;
|
|
11244
11265
|
this.candidateId = data.candidateId;
|
|
11245
11266
|
this.evidenceId = data.evidenceId;
|
|
11246
|
-
this.id = data.id;
|
|
11247
11267
|
}
|
|
11248
11268
|
};
|
|
11249
11269
|
var Chat = class extends DvinaModel {
|
|
11250
|
-
closedAt;
|
|
11251
|
-
createdAt;
|
|
11252
11270
|
id;
|
|
11253
|
-
insightId;
|
|
11254
11271
|
name;
|
|
11255
|
-
originMeta;
|
|
11256
|
-
piiMaskRules;
|
|
11257
11272
|
piiSanitizationEnabled;
|
|
11273
|
+
piiMaskRules;
|
|
11274
|
+
closedAt;
|
|
11275
|
+
originMeta;
|
|
11276
|
+
insightId;
|
|
11277
|
+
createdAt;
|
|
11258
11278
|
updatedAt;
|
|
11259
11279
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11260
11280
|
super(request, syncEngine, baseUrl);
|
|
11261
|
-
this.closedAt = data.closedAt ? new Date(data.closedAt) : void 0;
|
|
11262
|
-
this.createdAt = new Date(data.createdAt);
|
|
11263
11281
|
this.id = data.id;
|
|
11264
|
-
this.insightId = data.insightId ?? void 0;
|
|
11265
11282
|
this.name = data.name;
|
|
11266
|
-
this.originMeta = data.originMeta ?? void 0;
|
|
11267
|
-
this.piiMaskRules = data.piiMaskRules ?? void 0;
|
|
11268
11283
|
this.piiSanitizationEnabled = data.piiSanitizationEnabled;
|
|
11284
|
+
this.piiMaskRules = data.piiMaskRules ?? void 0;
|
|
11285
|
+
this.closedAt = data.closedAt ? new Date(data.closedAt) : void 0;
|
|
11286
|
+
this.originMeta = data.originMeta ?? void 0;
|
|
11287
|
+
this.insightId = data.insightId ?? void 0;
|
|
11288
|
+
this.createdAt = new Date(data.createdAt);
|
|
11269
11289
|
this.updatedAt = new Date(data.updatedAt);
|
|
11270
11290
|
}
|
|
11271
11291
|
/** Query the agents relation for this Chat. Call .fetch() or .watch() to execute. */
|
|
@@ -11328,20 +11348,20 @@ var ChatImportPreviewOutput = class extends DvinaModel {
|
|
|
11328
11348
|
}
|
|
11329
11349
|
};
|
|
11330
11350
|
var ChatMessage = class extends DvinaModel {
|
|
11331
|
-
actions;
|
|
11332
|
-
chatId;
|
|
11333
|
-
from;
|
|
11334
11351
|
id;
|
|
11335
|
-
|
|
11352
|
+
from;
|
|
11336
11353
|
sentAt;
|
|
11354
|
+
originMeta;
|
|
11355
|
+
chatId;
|
|
11356
|
+
actions;
|
|
11337
11357
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11338
11358
|
super(request, syncEngine, baseUrl);
|
|
11339
|
-
this.actions = data.actions;
|
|
11340
|
-
this.chatId = data.chatId;
|
|
11341
|
-
this.from = data.from;
|
|
11342
11359
|
this.id = data.id;
|
|
11343
|
-
this.
|
|
11360
|
+
this.from = data.from;
|
|
11344
11361
|
this.sentAt = new Date(data.sentAt);
|
|
11362
|
+
this.originMeta = data.originMeta ?? void 0;
|
|
11363
|
+
this.chatId = data.chatId;
|
|
11364
|
+
this.actions = data.actions;
|
|
11345
11365
|
}
|
|
11346
11366
|
/** Query the artifacts relation for this ChatMessage. Call .fetch() or .watch() to execute. */
|
|
11347
11367
|
artifacts(variables) {
|
|
@@ -11361,27 +11381,27 @@ var ChatMessage = class extends DvinaModel {
|
|
|
11361
11381
|
}
|
|
11362
11382
|
};
|
|
11363
11383
|
var ChatTitleEventOutput = class extends DvinaModel {
|
|
11364
|
-
title;
|
|
11365
11384
|
type;
|
|
11385
|
+
title;
|
|
11366
11386
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11367
11387
|
super(request, syncEngine, baseUrl);
|
|
11368
|
-
this.title = data.title;
|
|
11369
11388
|
this.type = data.type;
|
|
11389
|
+
this.title = data.title;
|
|
11370
11390
|
}
|
|
11371
11391
|
};
|
|
11372
11392
|
var ContentBlock = class extends DvinaModel {
|
|
11373
|
-
chatMessageId;
|
|
11374
|
-
content;
|
|
11375
11393
|
id;
|
|
11376
|
-
index;
|
|
11377
11394
|
type;
|
|
11395
|
+
content;
|
|
11396
|
+
chatMessageId;
|
|
11397
|
+
index;
|
|
11378
11398
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11379
11399
|
super(request, syncEngine, baseUrl);
|
|
11380
|
-
this.chatMessageId = data.chatMessageId;
|
|
11381
|
-
this.content = data.content;
|
|
11382
11400
|
this.id = data.id;
|
|
11383
|
-
this.index = data.index;
|
|
11384
11401
|
this.type = data.type;
|
|
11402
|
+
this.content = data.content;
|
|
11403
|
+
this.chatMessageId = data.chatMessageId;
|
|
11404
|
+
this.index = data.index;
|
|
11385
11405
|
}
|
|
11386
11406
|
/** Lazy-fetch the chatMessage relation. Call .fetch() or .watch() to execute. */
|
|
11387
11407
|
chatMessage() {
|
|
@@ -11389,29 +11409,29 @@ var ContentBlock = class extends DvinaModel {
|
|
|
11389
11409
|
}
|
|
11390
11410
|
};
|
|
11391
11411
|
var ContentMask = class extends DvinaModel {
|
|
11412
|
+
id;
|
|
11392
11413
|
content;
|
|
11393
|
-
contentBlockId;
|
|
11394
11414
|
contentMasked;
|
|
11395
|
-
id;
|
|
11396
11415
|
piiMetadata;
|
|
11416
|
+
contentBlockId;
|
|
11397
11417
|
contentBlock;
|
|
11398
11418
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11399
11419
|
super(request, syncEngine, baseUrl);
|
|
11420
|
+
this.id = data.id;
|
|
11400
11421
|
this.content = data.content;
|
|
11401
|
-
this.contentBlockId = data.contentBlockId;
|
|
11402
11422
|
this.contentMasked = data.contentMasked ?? void 0;
|
|
11403
|
-
this.id = data.id;
|
|
11404
11423
|
this.piiMetadata = data.piiMetadata ?? void 0;
|
|
11424
|
+
this.contentBlockId = data.contentBlockId;
|
|
11405
11425
|
this.contentBlock = new ContentBlock(request, data.contentBlock, syncEngine, baseUrl);
|
|
11406
11426
|
}
|
|
11407
11427
|
};
|
|
11408
11428
|
var CreateIntegrationOutput = class extends DvinaModel {
|
|
11409
|
-
error;
|
|
11410
11429
|
success;
|
|
11430
|
+
error;
|
|
11411
11431
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11412
11432
|
super(request, syncEngine, baseUrl);
|
|
11413
|
-
this.error = data.error ?? void 0;
|
|
11414
11433
|
this.success = data.success;
|
|
11434
|
+
this.error = data.error ?? void 0;
|
|
11415
11435
|
}
|
|
11416
11436
|
};
|
|
11417
11437
|
var CubeModel = class extends DvinaModel {
|
|
@@ -11434,19 +11454,19 @@ var CubeModel = class extends DvinaModel {
|
|
|
11434
11454
|
}
|
|
11435
11455
|
};
|
|
11436
11456
|
var Database = class extends DvinaModel {
|
|
11437
|
-
createdAt;
|
|
11438
|
-
engineKey;
|
|
11439
11457
|
id;
|
|
11440
|
-
isReady;
|
|
11441
11458
|
name;
|
|
11459
|
+
engineKey;
|
|
11460
|
+
isReady;
|
|
11461
|
+
createdAt;
|
|
11442
11462
|
updatedAt;
|
|
11443
11463
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11444
11464
|
super(request, syncEngine, baseUrl);
|
|
11445
|
-
this.createdAt = new Date(data.createdAt);
|
|
11446
|
-
this.engineKey = data.engineKey;
|
|
11447
11465
|
this.id = data.id;
|
|
11448
|
-
this.isReady = data.isReady;
|
|
11449
11466
|
this.name = data.name;
|
|
11467
|
+
this.engineKey = data.engineKey;
|
|
11468
|
+
this.isReady = data.isReady;
|
|
11469
|
+
this.createdAt = new Date(data.createdAt);
|
|
11450
11470
|
this.updatedAt = new Date(data.updatedAt);
|
|
11451
11471
|
}
|
|
11452
11472
|
/** Query the engine relation for this Database. Call .fetch() or .watch() to execute. */
|
|
@@ -11459,36 +11479,36 @@ var Database = class extends DvinaModel {
|
|
|
11459
11479
|
}
|
|
11460
11480
|
};
|
|
11461
11481
|
var DatabaseCatalog = class extends DvinaModel {
|
|
11462
|
-
|
|
11463
|
-
|
|
11482
|
+
engineKey;
|
|
11483
|
+
label;
|
|
11484
|
+
order;
|
|
11464
11485
|
category;
|
|
11465
11486
|
description;
|
|
11466
|
-
|
|
11467
|
-
engineKey;
|
|
11487
|
+
longDescription;
|
|
11468
11488
|
icon;
|
|
11469
|
-
iconClass;
|
|
11470
11489
|
iconType;
|
|
11471
|
-
|
|
11472
|
-
|
|
11473
|
-
|
|
11474
|
-
|
|
11490
|
+
iconClass;
|
|
11491
|
+
authorName;
|
|
11492
|
+
authorUrl;
|
|
11493
|
+
documentationUrl;
|
|
11475
11494
|
supportUrl;
|
|
11495
|
+
privacyUrl;
|
|
11476
11496
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11477
11497
|
super(request, syncEngine, baseUrl);
|
|
11478
|
-
this.
|
|
11479
|
-
this.
|
|
11498
|
+
this.engineKey = data.engineKey;
|
|
11499
|
+
this.label = data.label;
|
|
11500
|
+
this.order = data.order;
|
|
11480
11501
|
this.category = data.category;
|
|
11481
11502
|
this.description = data.description ?? void 0;
|
|
11482
|
-
this.
|
|
11483
|
-
this.engineKey = data.engineKey;
|
|
11503
|
+
this.longDescription = data.longDescription ?? void 0;
|
|
11484
11504
|
this.icon = this.resolveAssetUrl(data.icon ?? void 0);
|
|
11485
|
-
this.iconClass = data.iconClass ?? void 0;
|
|
11486
11505
|
this.iconType = data.iconType ?? void 0;
|
|
11487
|
-
this.
|
|
11488
|
-
this.
|
|
11489
|
-
this.
|
|
11490
|
-
this.
|
|
11506
|
+
this.iconClass = data.iconClass ?? void 0;
|
|
11507
|
+
this.authorName = data.authorName ?? void 0;
|
|
11508
|
+
this.authorUrl = data.authorUrl ?? void 0;
|
|
11509
|
+
this.documentationUrl = data.documentationUrl ?? void 0;
|
|
11491
11510
|
this.supportUrl = data.supportUrl ?? void 0;
|
|
11511
|
+
this.privacyUrl = data.privacyUrl ?? void 0;
|
|
11492
11512
|
}
|
|
11493
11513
|
/** Query the engine relation for this DatabaseCatalog. Call .fetch() or .watch() to execute. */
|
|
11494
11514
|
engine(variables) {
|
|
@@ -11513,18 +11533,18 @@ var DatabaseEngine = class extends DvinaModel {
|
|
|
11513
11533
|
}
|
|
11514
11534
|
};
|
|
11515
11535
|
var DeepAnalysisUsage = class extends DvinaModel {
|
|
11516
|
-
characterCount;
|
|
11517
|
-
createdAt;
|
|
11518
11536
|
id;
|
|
11537
|
+
characterCount;
|
|
11519
11538
|
numberOfImages;
|
|
11520
11539
|
tokenCost;
|
|
11540
|
+
createdAt;
|
|
11521
11541
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11522
11542
|
super(request, syncEngine, baseUrl);
|
|
11523
|
-
this.characterCount = data.characterCount ?? void 0;
|
|
11524
|
-
this.createdAt = new Date(data.createdAt);
|
|
11525
11543
|
this.id = data.id;
|
|
11544
|
+
this.characterCount = data.characterCount ?? void 0;
|
|
11526
11545
|
this.numberOfImages = data.numberOfImages ?? void 0;
|
|
11527
11546
|
this.tokenCost = data.tokenCost ?? void 0;
|
|
11547
|
+
this.createdAt = new Date(data.createdAt);
|
|
11528
11548
|
}
|
|
11529
11549
|
};
|
|
11530
11550
|
var DevAccessTokenOutput = class extends DvinaModel {
|
|
@@ -11535,27 +11555,27 @@ var DevAccessTokenOutput = class extends DvinaModel {
|
|
|
11535
11555
|
}
|
|
11536
11556
|
};
|
|
11537
11557
|
var Document = class extends DvinaModel {
|
|
11538
|
-
|
|
11558
|
+
id;
|
|
11559
|
+
path;
|
|
11560
|
+
name;
|
|
11539
11561
|
fileId;
|
|
11540
11562
|
formatKey;
|
|
11541
|
-
id;
|
|
11542
|
-
isDeepAnalyzed;
|
|
11543
11563
|
isReady;
|
|
11544
11564
|
isStructured;
|
|
11545
|
-
|
|
11546
|
-
|
|
11565
|
+
isDeepAnalyzed;
|
|
11566
|
+
createdAt;
|
|
11547
11567
|
updatedAt;
|
|
11548
11568
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11549
11569
|
super(request, syncEngine, baseUrl);
|
|
11550
|
-
this.
|
|
11570
|
+
this.id = data.id;
|
|
11571
|
+
this.path = data.path;
|
|
11572
|
+
this.name = data.name;
|
|
11551
11573
|
this.fileId = data.fileId;
|
|
11552
11574
|
this.formatKey = data.formatKey;
|
|
11553
|
-
this.id = data.id;
|
|
11554
|
-
this.isDeepAnalyzed = data.isDeepAnalyzed;
|
|
11555
11575
|
this.isReady = data.isReady;
|
|
11556
11576
|
this.isStructured = data.isStructured;
|
|
11557
|
-
this.
|
|
11558
|
-
this.
|
|
11577
|
+
this.isDeepAnalyzed = data.isDeepAnalyzed;
|
|
11578
|
+
this.createdAt = new Date(data.createdAt);
|
|
11559
11579
|
this.updatedAt = new Date(data.updatedAt);
|
|
11560
11580
|
}
|
|
11561
11581
|
/** Query the contents relation for this Document. Call .fetch() or .watch() to execute. */
|
|
@@ -11577,19 +11597,19 @@ var Document = class extends DvinaModel {
|
|
|
11577
11597
|
};
|
|
11578
11598
|
var DocumentCatalog = class extends DvinaModel {
|
|
11579
11599
|
formatKey;
|
|
11580
|
-
icon;
|
|
11581
|
-
iconClass;
|
|
11582
|
-
iconType;
|
|
11583
11600
|
label;
|
|
11584
11601
|
order;
|
|
11602
|
+
icon;
|
|
11603
|
+
iconType;
|
|
11604
|
+
iconClass;
|
|
11585
11605
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11586
11606
|
super(request, syncEngine, baseUrl);
|
|
11587
11607
|
this.formatKey = data.formatKey;
|
|
11588
|
-
this.icon = this.resolveAssetUrl(data.icon ?? void 0);
|
|
11589
|
-
this.iconClass = data.iconClass ?? void 0;
|
|
11590
|
-
this.iconType = data.iconType ?? void 0;
|
|
11591
11608
|
this.label = data.label;
|
|
11592
11609
|
this.order = data.order;
|
|
11610
|
+
this.icon = this.resolveAssetUrl(data.icon ?? void 0);
|
|
11611
|
+
this.iconType = data.iconType ?? void 0;
|
|
11612
|
+
this.iconClass = data.iconClass ?? void 0;
|
|
11593
11613
|
}
|
|
11594
11614
|
/** Query the format relation for this DocumentCatalog. Call .fetch() or .watch() to execute. */
|
|
11595
11615
|
format(variables) {
|
|
@@ -11597,21 +11617,21 @@ var DocumentCatalog = class extends DvinaModel {
|
|
|
11597
11617
|
}
|
|
11598
11618
|
};
|
|
11599
11619
|
var DocumentContent = class extends DvinaModel {
|
|
11600
|
-
content;
|
|
11601
|
-
createdAt;
|
|
11602
|
-
documentId;
|
|
11603
11620
|
id;
|
|
11604
|
-
|
|
11621
|
+
documentId;
|
|
11605
11622
|
pageNumber;
|
|
11623
|
+
index;
|
|
11624
|
+
content;
|
|
11625
|
+
createdAt;
|
|
11606
11626
|
updatedAt;
|
|
11607
11627
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11608
11628
|
super(request, syncEngine, baseUrl);
|
|
11609
|
-
this.content = data.content;
|
|
11610
|
-
this.createdAt = new Date(data.createdAt);
|
|
11611
|
-
this.documentId = data.documentId;
|
|
11612
11629
|
this.id = data.id;
|
|
11613
|
-
this.
|
|
11630
|
+
this.documentId = data.documentId;
|
|
11614
11631
|
this.pageNumber = data.pageNumber;
|
|
11632
|
+
this.index = data.index ?? void 0;
|
|
11633
|
+
this.content = data.content;
|
|
11634
|
+
this.createdAt = new Date(data.createdAt);
|
|
11615
11635
|
this.updatedAt = new Date(data.updatedAt);
|
|
11616
11636
|
}
|
|
11617
11637
|
/** Lazy-fetch the document relation. Call .fetch() or .watch() to execute. */
|
|
@@ -11620,15 +11640,15 @@ var DocumentContent = class extends DvinaModel {
|
|
|
11620
11640
|
}
|
|
11621
11641
|
};
|
|
11622
11642
|
var DocumentFormat = class extends DvinaModel {
|
|
11623
|
-
createsTables;
|
|
11624
11643
|
key;
|
|
11625
11644
|
supportsDeepAnalysis;
|
|
11645
|
+
createsTables;
|
|
11626
11646
|
_catalog;
|
|
11627
11647
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11628
11648
|
super(request, syncEngine, baseUrl);
|
|
11629
|
-
this.createsTables = data.createsTables;
|
|
11630
11649
|
this.key = data.key;
|
|
11631
11650
|
this.supportsDeepAnalysis = data.supportsDeepAnalysis;
|
|
11651
|
+
this.createsTables = data.createsTables;
|
|
11632
11652
|
this._catalog = data.catalog ?? void 0;
|
|
11633
11653
|
}
|
|
11634
11654
|
/** ID reference for lazy-fetching the catalog relation. */
|
|
@@ -11641,41 +11661,41 @@ var DocumentFormat = class extends DvinaModel {
|
|
|
11641
11661
|
}
|
|
11642
11662
|
};
|
|
11643
11663
|
var Evidence = class extends DvinaModel {
|
|
11644
|
-
content;
|
|
11645
|
-
deletedAt;
|
|
11646
|
-
generatedAt;
|
|
11647
11664
|
id;
|
|
11648
|
-
|
|
11665
|
+
content;
|
|
11649
11666
|
metadata;
|
|
11667
|
+
refreshedAt;
|
|
11650
11668
|
userId;
|
|
11651
11669
|
workspaceId;
|
|
11670
|
+
isProcessed;
|
|
11671
|
+
deletedAt;
|
|
11652
11672
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11653
11673
|
super(request, syncEngine, baseUrl);
|
|
11654
|
-
this.content = data.content;
|
|
11655
|
-
this.deletedAt = data.deletedAt ? new Date(data.deletedAt) : void 0;
|
|
11656
|
-
this.generatedAt = new Date(data.generatedAt);
|
|
11657
11674
|
this.id = data.id;
|
|
11658
|
-
this.
|
|
11675
|
+
this.content = data.content;
|
|
11659
11676
|
this.metadata = data.metadata;
|
|
11677
|
+
this.refreshedAt = new Date(data.refreshedAt);
|
|
11660
11678
|
this.userId = data.userId;
|
|
11661
11679
|
this.workspaceId = data.workspaceId;
|
|
11680
|
+
this.isProcessed = data.isProcessed;
|
|
11681
|
+
this.deletedAt = data.deletedAt ? new Date(data.deletedAt) : void 0;
|
|
11662
11682
|
}
|
|
11663
11683
|
};
|
|
11664
11684
|
var FailedSyncEventIngestion = class extends DvinaModel {
|
|
11665
|
-
createdAt;
|
|
11666
|
-
entityId;
|
|
11667
|
-
error;
|
|
11668
11685
|
id;
|
|
11669
11686
|
modelName;
|
|
11687
|
+
entityId;
|
|
11688
|
+
error;
|
|
11670
11689
|
stack;
|
|
11690
|
+
createdAt;
|
|
11671
11691
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11672
11692
|
super(request, syncEngine, baseUrl);
|
|
11673
|
-
this.createdAt = new Date(data.createdAt);
|
|
11674
|
-
this.entityId = data.entityId;
|
|
11675
|
-
this.error = data.error;
|
|
11676
11693
|
this.id = data.id;
|
|
11677
11694
|
this.modelName = data.modelName;
|
|
11695
|
+
this.entityId = data.entityId;
|
|
11696
|
+
this.error = data.error;
|
|
11678
11697
|
this.stack = data.stack ?? void 0;
|
|
11698
|
+
this.createdAt = new Date(data.createdAt);
|
|
11679
11699
|
}
|
|
11680
11700
|
};
|
|
11681
11701
|
var FeedArtifactData = class extends DvinaModel {
|
|
@@ -11721,28 +11741,28 @@ var FeedInsightData = class extends DvinaModel {
|
|
|
11721
11741
|
kind;
|
|
11722
11742
|
output;
|
|
11723
11743
|
pivotConfig;
|
|
11744
|
+
thumbnailFileId;
|
|
11724
11745
|
presentation;
|
|
11725
11746
|
query;
|
|
11726
|
-
thumbnailFileId;
|
|
11727
11747
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11728
11748
|
super(request, syncEngine, baseUrl);
|
|
11729
11749
|
this.kind = data.kind;
|
|
11730
11750
|
this.output = data.output ?? void 0;
|
|
11731
11751
|
this.pivotConfig = data.pivotConfig ?? void 0;
|
|
11752
|
+
this.thumbnailFileId = data.thumbnailFileId ?? void 0;
|
|
11732
11753
|
this.presentation = data.presentation;
|
|
11733
11754
|
this.query = data.query;
|
|
11734
|
-
this.thumbnailFileId = data.thumbnailFileId ?? void 0;
|
|
11735
11755
|
}
|
|
11736
11756
|
};
|
|
11737
11757
|
var FeedIntegrationData = class extends DvinaModel {
|
|
11738
|
-
integrationProviderKey;
|
|
11739
11758
|
kind;
|
|
11759
|
+
integrationProviderKey;
|
|
11740
11760
|
status;
|
|
11741
11761
|
unreadPulseCount;
|
|
11742
11762
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11743
11763
|
super(request, syncEngine, baseUrl);
|
|
11744
|
-
this.integrationProviderKey = data.integrationProviderKey ?? void 0;
|
|
11745
11764
|
this.kind = data.kind;
|
|
11765
|
+
this.integrationProviderKey = data.integrationProviderKey ?? void 0;
|
|
11746
11766
|
this.status = data.status ?? void 0;
|
|
11747
11767
|
this.unreadPulseCount = data.unreadPulseCount ?? void 0;
|
|
11748
11768
|
}
|
|
@@ -11754,8 +11774,6 @@ var FeedItem = class extends DvinaModel {
|
|
|
11754
11774
|
sourceRef;
|
|
11755
11775
|
title;
|
|
11756
11776
|
updatedAt;
|
|
11757
|
-
userId;
|
|
11758
|
-
workspaceId;
|
|
11759
11777
|
data;
|
|
11760
11778
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11761
11779
|
super(request, syncEngine, baseUrl);
|
|
@@ -11765,17 +11783,15 @@ var FeedItem = class extends DvinaModel {
|
|
|
11765
11783
|
this.sourceRef = data.sourceRef ?? void 0;
|
|
11766
11784
|
this.title = data.title;
|
|
11767
11785
|
this.updatedAt = new Date(data.updatedAt);
|
|
11768
|
-
this.userId = data.userId;
|
|
11769
|
-
this.workspaceId = data.workspaceId;
|
|
11770
11786
|
this.data = (() => {
|
|
11771
11787
|
const value = data.data;
|
|
11772
11788
|
switch (value.__typename) {
|
|
11789
|
+
case "FeedDocumentData":
|
|
11790
|
+
return new FeedDocumentData(request, value, syncEngine, baseUrl);
|
|
11773
11791
|
case "FeedArtifactData":
|
|
11774
11792
|
return new FeedArtifactData(request, value, syncEngine, baseUrl);
|
|
11775
11793
|
case "FeedDatabaseData":
|
|
11776
11794
|
return new FeedDatabaseData(request, value, syncEngine, baseUrl);
|
|
11777
|
-
case "FeedDocumentData":
|
|
11778
|
-
return new FeedDocumentData(request, value, syncEngine, baseUrl);
|
|
11779
11795
|
case "FeedInsightData":
|
|
11780
11796
|
return new FeedInsightData(request, value, syncEngine, baseUrl);
|
|
11781
11797
|
case "FeedIntegrationData":
|
|
@@ -11795,39 +11811,39 @@ var FeedItem = class extends DvinaModel {
|
|
|
11795
11811
|
}
|
|
11796
11812
|
};
|
|
11797
11813
|
var FeedItemGenerated = class extends DvinaModel {
|
|
11798
|
-
action;
|
|
11799
|
-
actionType;
|
|
11800
|
-
createdAt;
|
|
11801
|
-
data;
|
|
11802
11814
|
id;
|
|
11803
11815
|
kind;
|
|
11804
11816
|
sourceRef;
|
|
11805
11817
|
title;
|
|
11818
|
+
action;
|
|
11819
|
+
actionType;
|
|
11820
|
+
data;
|
|
11821
|
+
createdAt;
|
|
11806
11822
|
updatedAt;
|
|
11807
|
-
userId;
|
|
11808
|
-
workspaceId;
|
|
11809
11823
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11810
11824
|
super(request, syncEngine, baseUrl);
|
|
11811
|
-
this.action = data.action ?? void 0;
|
|
11812
|
-
this.actionType = data.actionType ?? void 0;
|
|
11813
|
-
this.createdAt = new Date(data.createdAt);
|
|
11814
|
-
this.data = data.data;
|
|
11815
11825
|
this.id = data.id;
|
|
11816
11826
|
this.kind = data.kind;
|
|
11817
11827
|
this.sourceRef = data.sourceRef ?? void 0;
|
|
11818
11828
|
this.title = data.title;
|
|
11829
|
+
this.action = data.action ?? void 0;
|
|
11830
|
+
this.actionType = data.actionType ?? void 0;
|
|
11831
|
+
this.data = data.data;
|
|
11832
|
+
this.createdAt = new Date(data.createdAt);
|
|
11819
11833
|
this.updatedAt = new Date(data.updatedAt);
|
|
11820
|
-
this.userId = data.userId;
|
|
11821
|
-
this.workspaceId = data.workspaceId;
|
|
11822
11834
|
}
|
|
11823
11835
|
};
|
|
11824
11836
|
var FeedLiveContextData = class extends DvinaModel {
|
|
11825
11837
|
kind;
|
|
11826
11838
|
summary;
|
|
11839
|
+
suggestedPrompt;
|
|
11840
|
+
sources;
|
|
11827
11841
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11828
11842
|
super(request, syncEngine, baseUrl);
|
|
11829
11843
|
this.kind = data.kind;
|
|
11830
11844
|
this.summary = data.summary ?? void 0;
|
|
11845
|
+
this.suggestedPrompt = data.suggestedPrompt ?? void 0;
|
|
11846
|
+
this.sources = data.sources;
|
|
11831
11847
|
}
|
|
11832
11848
|
};
|
|
11833
11849
|
var FeedPulseData = class extends DvinaModel {
|
|
@@ -11853,18 +11869,18 @@ var FeedSendMessageAction = class extends DvinaModel {
|
|
|
11853
11869
|
}
|
|
11854
11870
|
};
|
|
11855
11871
|
var Feedback = class extends DvinaModel {
|
|
11856
|
-
|
|
11872
|
+
id;
|
|
11873
|
+
feedback;
|
|
11857
11874
|
comment;
|
|
11875
|
+
chatMessageId;
|
|
11858
11876
|
createdAt;
|
|
11859
|
-
feedback;
|
|
11860
|
-
id;
|
|
11861
11877
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11862
11878
|
super(request, syncEngine, baseUrl);
|
|
11863
|
-
this.
|
|
11879
|
+
this.id = data.id;
|
|
11880
|
+
this.feedback = data.feedback;
|
|
11864
11881
|
this.comment = data.comment ?? void 0;
|
|
11882
|
+
this.chatMessageId = data.chatMessageId;
|
|
11865
11883
|
this.createdAt = new Date(data.createdAt);
|
|
11866
|
-
this.feedback = data.feedback;
|
|
11867
|
-
this.id = data.id;
|
|
11868
11884
|
}
|
|
11869
11885
|
/** Lazy-fetch the chatMessage relation. Call .fetch() or .watch() to execute. */
|
|
11870
11886
|
chatMessage() {
|
|
@@ -11872,34 +11888,34 @@ var Feedback = class extends DvinaModel {
|
|
|
11872
11888
|
}
|
|
11873
11889
|
};
|
|
11874
11890
|
var File = class extends DvinaModel {
|
|
11875
|
-
createdAt;
|
|
11876
|
-
extension;
|
|
11877
11891
|
id;
|
|
11878
|
-
|
|
11879
|
-
|
|
11892
|
+
createdAt;
|
|
11893
|
+
updatedAt;
|
|
11880
11894
|
path;
|
|
11895
|
+
name;
|
|
11896
|
+
extension;
|
|
11881
11897
|
size;
|
|
11882
|
-
|
|
11898
|
+
mimeType;
|
|
11883
11899
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11884
11900
|
super(request, syncEngine, baseUrl);
|
|
11885
|
-
this.createdAt = new Date(data.createdAt);
|
|
11886
|
-
this.extension = data.extension ?? void 0;
|
|
11887
11901
|
this.id = data.id;
|
|
11888
|
-
this.
|
|
11889
|
-
this.
|
|
11902
|
+
this.createdAt = new Date(data.createdAt);
|
|
11903
|
+
this.updatedAt = new Date(data.updatedAt);
|
|
11890
11904
|
this.path = data.path;
|
|
11905
|
+
this.name = data.name ?? void 0;
|
|
11906
|
+
this.extension = data.extension ?? void 0;
|
|
11891
11907
|
this.size = data.size ?? void 0;
|
|
11892
|
-
this.
|
|
11908
|
+
this.mimeType = data.mimeType ?? void 0;
|
|
11893
11909
|
}
|
|
11894
11910
|
};
|
|
11895
11911
|
var FileModel = class extends DvinaModel {
|
|
11896
|
-
id;
|
|
11897
11912
|
key;
|
|
11913
|
+
id;
|
|
11898
11914
|
uploadUri;
|
|
11899
11915
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11900
11916
|
super(request, syncEngine, baseUrl);
|
|
11901
|
-
this.id = data.id;
|
|
11902
11917
|
this.key = data.key;
|
|
11918
|
+
this.id = data.id;
|
|
11903
11919
|
this.uploadUri = data.uploadUri;
|
|
11904
11920
|
}
|
|
11905
11921
|
};
|
|
@@ -11915,20 +11931,20 @@ var FinalContentEventOutput = class extends DvinaModel {
|
|
|
11915
11931
|
}
|
|
11916
11932
|
};
|
|
11917
11933
|
var Folder = class extends DvinaModel {
|
|
11918
|
-
createdAt;
|
|
11919
11934
|
id;
|
|
11920
|
-
itemCount;
|
|
11921
|
-
name;
|
|
11922
11935
|
path;
|
|
11936
|
+
createdAt;
|
|
11923
11937
|
updatedAt;
|
|
11938
|
+
name;
|
|
11939
|
+
itemCount;
|
|
11924
11940
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11925
11941
|
super(request, syncEngine, baseUrl);
|
|
11926
|
-
this.createdAt = new Date(data.createdAt);
|
|
11927
11942
|
this.id = data.id;
|
|
11928
|
-
this.itemCount = data.itemCount;
|
|
11929
|
-
this.name = data.name;
|
|
11930
11943
|
this.path = data.path;
|
|
11944
|
+
this.createdAt = new Date(data.createdAt);
|
|
11931
11945
|
this.updatedAt = new Date(data.updatedAt);
|
|
11946
|
+
this.name = data.name;
|
|
11947
|
+
this.itemCount = data.itemCount;
|
|
11932
11948
|
}
|
|
11933
11949
|
};
|
|
11934
11950
|
var ImportedChatSummaryOutput = class extends DvinaModel {
|
|
@@ -11947,75 +11963,75 @@ var ImportedChatSummaryOutput = class extends DvinaModel {
|
|
|
11947
11963
|
}
|
|
11948
11964
|
};
|
|
11949
11965
|
var InferenceRequestAudit = class extends DvinaModel {
|
|
11950
|
-
assistantResponse;
|
|
11951
|
-
createdAt;
|
|
11952
|
-
deploymentId;
|
|
11953
|
-
errorMessage;
|
|
11954
|
-
gatewayRequestId;
|
|
11955
|
-
gatewayRequestIdHeader;
|
|
11956
|
-
httpStatus;
|
|
11957
11966
|
id;
|
|
11958
|
-
model;
|
|
11959
|
-
operation;
|
|
11960
11967
|
provider;
|
|
11968
|
+
operation;
|
|
11969
|
+
model;
|
|
11970
|
+
deploymentId;
|
|
11961
11971
|
providerRequestId;
|
|
11962
11972
|
providerRequestIdHeader;
|
|
11963
|
-
|
|
11964
|
-
|
|
11965
|
-
status;
|
|
11973
|
+
gatewayRequestId;
|
|
11974
|
+
gatewayRequestIdHeader;
|
|
11966
11975
|
stream;
|
|
11967
|
-
|
|
11968
|
-
|
|
11976
|
+
status;
|
|
11977
|
+
httpStatus;
|
|
11969
11978
|
userMessage;
|
|
11979
|
+
assistantResponse;
|
|
11980
|
+
errorMessage;
|
|
11981
|
+
userId;
|
|
11970
11982
|
workspaceId;
|
|
11983
|
+
requestStartedAt;
|
|
11984
|
+
requestCompletedAt;
|
|
11985
|
+
createdAt;
|
|
11986
|
+
updatedAt;
|
|
11971
11987
|
constructor(request, data, syncEngine, baseUrl) {
|
|
11972
11988
|
super(request, syncEngine, baseUrl);
|
|
11973
|
-
this.assistantResponse = data.assistantResponse ?? void 0;
|
|
11974
|
-
this.createdAt = new Date(data.createdAt);
|
|
11975
|
-
this.deploymentId = data.deploymentId ?? void 0;
|
|
11976
|
-
this.errorMessage = data.errorMessage ?? void 0;
|
|
11977
|
-
this.gatewayRequestId = data.gatewayRequestId ?? void 0;
|
|
11978
|
-
this.gatewayRequestIdHeader = data.gatewayRequestIdHeader ?? void 0;
|
|
11979
|
-
this.httpStatus = data.httpStatus ?? void 0;
|
|
11980
11989
|
this.id = data.id;
|
|
11981
|
-
this.model = data.model ?? void 0;
|
|
11982
|
-
this.operation = data.operation ?? void 0;
|
|
11983
11990
|
this.provider = data.provider ?? void 0;
|
|
11991
|
+
this.operation = data.operation ?? void 0;
|
|
11992
|
+
this.model = data.model ?? void 0;
|
|
11993
|
+
this.deploymentId = data.deploymentId ?? void 0;
|
|
11984
11994
|
this.providerRequestId = data.providerRequestId ?? void 0;
|
|
11985
11995
|
this.providerRequestIdHeader = data.providerRequestIdHeader ?? void 0;
|
|
11986
|
-
this.
|
|
11987
|
-
this.
|
|
11988
|
-
this.status = data.status;
|
|
11996
|
+
this.gatewayRequestId = data.gatewayRequestId ?? void 0;
|
|
11997
|
+
this.gatewayRequestIdHeader = data.gatewayRequestIdHeader ?? void 0;
|
|
11989
11998
|
this.stream = data.stream ?? void 0;
|
|
11990
|
-
this.
|
|
11991
|
-
this.
|
|
11999
|
+
this.status = data.status;
|
|
12000
|
+
this.httpStatus = data.httpStatus ?? void 0;
|
|
11992
12001
|
this.userMessage = data.userMessage ?? void 0;
|
|
12002
|
+
this.assistantResponse = data.assistantResponse ?? void 0;
|
|
12003
|
+
this.errorMessage = data.errorMessage ?? void 0;
|
|
12004
|
+
this.userId = data.userId ?? void 0;
|
|
11993
12005
|
this.workspaceId = data.workspaceId ?? void 0;
|
|
12006
|
+
this.requestStartedAt = data.requestStartedAt ? new Date(data.requestStartedAt) : void 0;
|
|
12007
|
+
this.requestCompletedAt = data.requestCompletedAt ? new Date(data.requestCompletedAt) : void 0;
|
|
12008
|
+
this.createdAt = new Date(data.createdAt);
|
|
12009
|
+
this.updatedAt = new Date(data.updatedAt);
|
|
11994
12010
|
}
|
|
11995
12011
|
};
|
|
11996
12012
|
var Insight = class extends DvinaModel {
|
|
11997
|
-
createdAt;
|
|
11998
|
-
description;
|
|
11999
12013
|
id;
|
|
12000
12014
|
name;
|
|
12015
|
+
description;
|
|
12016
|
+
query;
|
|
12001
12017
|
output;
|
|
12002
12018
|
pivotConfig;
|
|
12003
12019
|
presentation;
|
|
12004
|
-
query;
|
|
12005
12020
|
thumbnailFileId;
|
|
12021
|
+
createdAt;
|
|
12006
12022
|
updatedAt;
|
|
12007
12023
|
_chat;
|
|
12008
12024
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12009
12025
|
super(request, syncEngine, baseUrl);
|
|
12010
|
-
this.createdAt = new Date(data.createdAt);
|
|
12011
|
-
this.description = data.description ?? void 0;
|
|
12012
12026
|
this.id = data.id;
|
|
12013
12027
|
this.name = data.name;
|
|
12028
|
+
this.description = data.description ?? void 0;
|
|
12029
|
+
this.query = data.query;
|
|
12014
12030
|
this.output = data.output ?? void 0;
|
|
12015
12031
|
this.pivotConfig = data.pivotConfig ?? void 0;
|
|
12016
12032
|
this.presentation = data.presentation;
|
|
12017
|
-
this.query = data.query;
|
|
12018
12033
|
this.thumbnailFileId = data.thumbnailFileId ?? void 0;
|
|
12034
|
+
this.createdAt = new Date(data.createdAt);
|
|
12019
12035
|
this.updatedAt = new Date(data.updatedAt);
|
|
12020
12036
|
this._chat = data.chat ?? void 0;
|
|
12021
12037
|
}
|
|
@@ -12041,21 +12057,21 @@ var Insight = class extends DvinaModel {
|
|
|
12041
12057
|
}
|
|
12042
12058
|
};
|
|
12043
12059
|
var Integration = class extends DvinaModel {
|
|
12044
|
-
connectedAt;
|
|
12045
|
-
createdAt;
|
|
12046
12060
|
id;
|
|
12047
12061
|
providerKey;
|
|
12062
|
+
connectedAt;
|
|
12048
12063
|
status;
|
|
12049
12064
|
unreadPulseCount;
|
|
12065
|
+
createdAt;
|
|
12050
12066
|
updatedAt;
|
|
12051
12067
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12052
12068
|
super(request, syncEngine, baseUrl);
|
|
12053
|
-
this.connectedAt = data.connectedAt ? new Date(data.connectedAt) : void 0;
|
|
12054
|
-
this.createdAt = new Date(data.createdAt);
|
|
12055
12069
|
this.id = data.id;
|
|
12056
12070
|
this.providerKey = data.providerKey;
|
|
12071
|
+
this.connectedAt = data.connectedAt ? new Date(data.connectedAt) : void 0;
|
|
12057
12072
|
this.status = data.status;
|
|
12058
12073
|
this.unreadPulseCount = data.unreadPulseCount;
|
|
12074
|
+
this.createdAt = new Date(data.createdAt);
|
|
12059
12075
|
this.updatedAt = new Date(data.updatedAt);
|
|
12060
12076
|
}
|
|
12061
12077
|
/** Query the provider relation for this Integration. Call .fetch() or .watch() to execute. */
|
|
@@ -12064,40 +12080,40 @@ var Integration = class extends DvinaModel {
|
|
|
12064
12080
|
}
|
|
12065
12081
|
};
|
|
12066
12082
|
var IntegrationCatalog = class extends DvinaModel {
|
|
12067
|
-
|
|
12068
|
-
|
|
12069
|
-
|
|
12083
|
+
providerKey;
|
|
12084
|
+
label;
|
|
12085
|
+
order;
|
|
12070
12086
|
category;
|
|
12071
12087
|
description;
|
|
12072
|
-
|
|
12088
|
+
longDescription;
|
|
12073
12089
|
icon;
|
|
12074
|
-
|
|
12090
|
+
appIcon;
|
|
12075
12091
|
iconType;
|
|
12076
|
-
|
|
12077
|
-
|
|
12078
|
-
|
|
12092
|
+
iconClass;
|
|
12093
|
+
authorName;
|
|
12094
|
+
authorUrl;
|
|
12095
|
+
documentationUrl;
|
|
12096
|
+
supportUrl;
|
|
12079
12097
|
privacyUrl;
|
|
12080
|
-
providerKey;
|
|
12081
12098
|
status;
|
|
12082
|
-
supportUrl;
|
|
12083
12099
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12084
12100
|
super(request, syncEngine, baseUrl);
|
|
12085
|
-
this.
|
|
12086
|
-
this.
|
|
12087
|
-
this.
|
|
12101
|
+
this.providerKey = data.providerKey;
|
|
12102
|
+
this.label = data.label;
|
|
12103
|
+
this.order = data.order;
|
|
12088
12104
|
this.category = data.category;
|
|
12089
12105
|
this.description = data.description ?? void 0;
|
|
12090
|
-
this.
|
|
12106
|
+
this.longDescription = data.longDescription ?? void 0;
|
|
12091
12107
|
this.icon = this.resolveAssetUrl(data.icon ?? void 0);
|
|
12092
|
-
this.
|
|
12108
|
+
this.appIcon = this.resolveAssetUrl(data.appIcon ?? void 0);
|
|
12093
12109
|
this.iconType = data.iconType ?? void 0;
|
|
12094
|
-
this.
|
|
12095
|
-
this.
|
|
12096
|
-
this.
|
|
12110
|
+
this.iconClass = data.iconClass ?? void 0;
|
|
12111
|
+
this.authorName = data.authorName ?? void 0;
|
|
12112
|
+
this.authorUrl = data.authorUrl ?? void 0;
|
|
12113
|
+
this.documentationUrl = data.documentationUrl ?? void 0;
|
|
12114
|
+
this.supportUrl = data.supportUrl ?? void 0;
|
|
12097
12115
|
this.privacyUrl = data.privacyUrl ?? void 0;
|
|
12098
|
-
this.providerKey = data.providerKey;
|
|
12099
12116
|
this.status = data.status;
|
|
12100
|
-
this.supportUrl = data.supportUrl ?? void 0;
|
|
12101
12117
|
}
|
|
12102
12118
|
/** Query the provider relation for this IntegrationCatalog. Call .fetch() or .watch() to execute. */
|
|
12103
12119
|
provider(variables) {
|
|
@@ -12105,13 +12121,13 @@ var IntegrationCatalog = class extends DvinaModel {
|
|
|
12105
12121
|
}
|
|
12106
12122
|
};
|
|
12107
12123
|
var IntegrationProvider = class extends DvinaModel {
|
|
12108
|
-
composioToolkitSlug;
|
|
12109
12124
|
key;
|
|
12125
|
+
composioToolkitSlug;
|
|
12110
12126
|
_catalog;
|
|
12111
12127
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12112
12128
|
super(request, syncEngine, baseUrl);
|
|
12113
|
-
this.composioToolkitSlug = data.composioToolkitSlug ?? void 0;
|
|
12114
12129
|
this.key = data.key;
|
|
12130
|
+
this.composioToolkitSlug = data.composioToolkitSlug ?? void 0;
|
|
12115
12131
|
this._catalog = data.catalog ?? void 0;
|
|
12116
12132
|
}
|
|
12117
12133
|
/** ID reference for lazy-fetching the catalog relation. */
|
|
@@ -12124,46 +12140,46 @@ var IntegrationProvider = class extends DvinaModel {
|
|
|
12124
12140
|
}
|
|
12125
12141
|
};
|
|
12126
12142
|
var Interpretation = class extends DvinaModel {
|
|
12143
|
+
id;
|
|
12144
|
+
type;
|
|
12127
12145
|
content;
|
|
12128
12146
|
createdAt;
|
|
12129
|
-
id;
|
|
12130
12147
|
resourceId;
|
|
12131
12148
|
resourceType;
|
|
12132
|
-
type;
|
|
12133
12149
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12134
12150
|
super(request, syncEngine, baseUrl);
|
|
12151
|
+
this.id = data.id;
|
|
12152
|
+
this.type = data.type;
|
|
12135
12153
|
this.content = data.content;
|
|
12136
12154
|
this.createdAt = new Date(data.createdAt);
|
|
12137
|
-
this.id = data.id;
|
|
12138
12155
|
this.resourceId = data.resourceId;
|
|
12139
12156
|
this.resourceType = data.resourceType;
|
|
12140
|
-
this.type = data.type;
|
|
12141
12157
|
}
|
|
12142
12158
|
};
|
|
12143
12159
|
var Invocation = class extends DvinaModel {
|
|
12144
|
-
cachedTokensInput;
|
|
12145
|
-
chatMessageId;
|
|
12146
|
-
cost;
|
|
12147
|
-
createdAt;
|
|
12148
12160
|
id;
|
|
12161
|
+
chatMessageId;
|
|
12149
12162
|
label;
|
|
12150
|
-
model;
|
|
12151
|
-
timeTaken;
|
|
12152
12163
|
tokensInput;
|
|
12164
|
+
cachedTokensInput;
|
|
12153
12165
|
tokensOutput;
|
|
12166
|
+
timeTaken;
|
|
12167
|
+
model;
|
|
12168
|
+
cost;
|
|
12169
|
+
createdAt;
|
|
12154
12170
|
updatedAt;
|
|
12155
12171
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12156
12172
|
super(request, syncEngine, baseUrl);
|
|
12157
|
-
this.cachedTokensInput = data.cachedTokensInput ?? void 0;
|
|
12158
|
-
this.chatMessageId = data.chatMessageId ?? void 0;
|
|
12159
|
-
this.cost = data.cost ?? void 0;
|
|
12160
|
-
this.createdAt = new Date(data.createdAt);
|
|
12161
12173
|
this.id = data.id;
|
|
12174
|
+
this.chatMessageId = data.chatMessageId ?? void 0;
|
|
12162
12175
|
this.label = data.label ?? void 0;
|
|
12163
|
-
this.model = data.model ?? void 0;
|
|
12164
|
-
this.timeTaken = data.timeTaken ?? void 0;
|
|
12165
12176
|
this.tokensInput = data.tokensInput ?? void 0;
|
|
12177
|
+
this.cachedTokensInput = data.cachedTokensInput ?? void 0;
|
|
12166
12178
|
this.tokensOutput = data.tokensOutput ?? void 0;
|
|
12179
|
+
this.timeTaken = data.timeTaken ?? void 0;
|
|
12180
|
+
this.model = data.model ?? void 0;
|
|
12181
|
+
this.cost = data.cost ?? void 0;
|
|
12182
|
+
this.createdAt = new Date(data.createdAt);
|
|
12167
12183
|
this.updatedAt = new Date(data.updatedAt);
|
|
12168
12184
|
}
|
|
12169
12185
|
/** Lazy-fetch the chatMessage relation. Call .fetch() or .watch() to execute. */
|
|
@@ -12172,117 +12188,117 @@ var Invocation = class extends DvinaModel {
|
|
|
12172
12188
|
}
|
|
12173
12189
|
};
|
|
12174
12190
|
var LiveContext = class extends DvinaModel {
|
|
12175
|
-
createdAt;
|
|
12176
12191
|
id;
|
|
12177
|
-
sourceId;
|
|
12178
|
-
status;
|
|
12179
|
-
suggestedPrompt;
|
|
12180
|
-
summary;
|
|
12181
12192
|
title;
|
|
12182
|
-
|
|
12183
|
-
|
|
12184
|
-
|
|
12185
|
-
|
|
12193
|
+
summary;
|
|
12194
|
+
suggestedPrompt;
|
|
12195
|
+
status;
|
|
12196
|
+
sourceId;
|
|
12197
|
+
createdAt;
|
|
12198
|
+
updatedAt;
|
|
12199
|
+
constructor(request, data, syncEngine, baseUrl) {
|
|
12200
|
+
super(request, syncEngine, baseUrl);
|
|
12186
12201
|
this.id = data.id;
|
|
12187
|
-
this.sourceId = data.sourceId;
|
|
12188
|
-
this.status = data.status;
|
|
12189
|
-
this.suggestedPrompt = data.suggestedPrompt ?? void 0;
|
|
12190
|
-
this.summary = data.summary;
|
|
12191
12202
|
this.title = data.title;
|
|
12203
|
+
this.summary = data.summary;
|
|
12204
|
+
this.suggestedPrompt = data.suggestedPrompt ?? void 0;
|
|
12205
|
+
this.status = data.status;
|
|
12206
|
+
this.sourceId = data.sourceId;
|
|
12207
|
+
this.createdAt = new Date(data.createdAt);
|
|
12192
12208
|
this.updatedAt = new Date(data.updatedAt);
|
|
12193
12209
|
}
|
|
12194
12210
|
};
|
|
12195
12211
|
var McpAuthUpdateModel = class extends DvinaModel {
|
|
12212
|
+
provider;
|
|
12213
|
+
phase;
|
|
12196
12214
|
authorizationUrl;
|
|
12197
12215
|
error;
|
|
12198
|
-
phase;
|
|
12199
|
-
provider;
|
|
12200
12216
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12201
12217
|
super(request, syncEngine, baseUrl);
|
|
12218
|
+
this.provider = data.provider;
|
|
12219
|
+
this.phase = data.phase;
|
|
12202
12220
|
this.authorizationUrl = data.authorizationUrl ?? void 0;
|
|
12203
12221
|
this.error = data.error ?? void 0;
|
|
12204
|
-
this.phase = data.phase;
|
|
12205
|
-
this.provider = data.provider;
|
|
12206
12222
|
}
|
|
12207
12223
|
};
|
|
12208
12224
|
var McpClientInformation = class extends DvinaModel {
|
|
12209
|
-
content;
|
|
12210
|
-
createdAt;
|
|
12211
12225
|
id;
|
|
12212
12226
|
provider;
|
|
12227
|
+
content;
|
|
12228
|
+
createdAt;
|
|
12213
12229
|
updatedAt;
|
|
12214
12230
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12215
12231
|
super(request, syncEngine, baseUrl);
|
|
12216
|
-
this.content = data.content;
|
|
12217
|
-
this.createdAt = new Date(data.createdAt);
|
|
12218
12232
|
this.id = data.id;
|
|
12219
12233
|
this.provider = data.provider;
|
|
12234
|
+
this.content = data.content;
|
|
12235
|
+
this.createdAt = new Date(data.createdAt);
|
|
12220
12236
|
this.updatedAt = new Date(data.updatedAt);
|
|
12221
12237
|
}
|
|
12222
12238
|
};
|
|
12223
12239
|
var McpCodeVerifier = class extends DvinaModel {
|
|
12224
|
-
content;
|
|
12225
|
-
createdAt;
|
|
12226
12240
|
id;
|
|
12227
12241
|
provider;
|
|
12242
|
+
content;
|
|
12243
|
+
createdAt;
|
|
12228
12244
|
updatedAt;
|
|
12229
12245
|
userId;
|
|
12230
12246
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12231
12247
|
super(request, syncEngine, baseUrl);
|
|
12232
|
-
this.content = data.content;
|
|
12233
|
-
this.createdAt = new Date(data.createdAt);
|
|
12234
12248
|
this.id = data.id;
|
|
12235
12249
|
this.provider = data.provider;
|
|
12250
|
+
this.content = data.content;
|
|
12251
|
+
this.createdAt = new Date(data.createdAt);
|
|
12236
12252
|
this.updatedAt = new Date(data.updatedAt);
|
|
12237
12253
|
this.userId = data.userId;
|
|
12238
12254
|
}
|
|
12239
12255
|
};
|
|
12240
12256
|
var McpServer = class extends DvinaModel {
|
|
12241
|
-
authType;
|
|
12242
12257
|
id;
|
|
12243
12258
|
provider;
|
|
12244
12259
|
serverUrl;
|
|
12260
|
+
authType;
|
|
12245
12261
|
transport;
|
|
12246
12262
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12247
12263
|
super(request, syncEngine, baseUrl);
|
|
12248
|
-
this.authType = data.authType ?? void 0;
|
|
12249
12264
|
this.id = data.id;
|
|
12250
12265
|
this.provider = data.provider;
|
|
12251
12266
|
this.serverUrl = data.serverUrl;
|
|
12267
|
+
this.authType = data.authType ?? void 0;
|
|
12252
12268
|
this.transport = data.transport ?? void 0;
|
|
12253
12269
|
}
|
|
12254
12270
|
};
|
|
12255
12271
|
var McpTokens = class extends DvinaModel {
|
|
12256
|
-
content;
|
|
12257
|
-
createdAt;
|
|
12258
12272
|
id;
|
|
12259
12273
|
provider;
|
|
12274
|
+
content;
|
|
12275
|
+
createdAt;
|
|
12260
12276
|
updatedAt;
|
|
12261
12277
|
userId;
|
|
12262
12278
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12263
12279
|
super(request, syncEngine, baseUrl);
|
|
12264
|
-
this.content = data.content;
|
|
12265
|
-
this.createdAt = new Date(data.createdAt);
|
|
12266
12280
|
this.id = data.id;
|
|
12267
12281
|
this.provider = data.provider;
|
|
12282
|
+
this.content = data.content;
|
|
12283
|
+
this.createdAt = new Date(data.createdAt);
|
|
12268
12284
|
this.updatedAt = new Date(data.updatedAt);
|
|
12269
12285
|
this.userId = data.userId;
|
|
12270
12286
|
}
|
|
12271
12287
|
};
|
|
12272
12288
|
var McpTool = class extends DvinaModel {
|
|
12273
|
-
createdAt;
|
|
12274
|
-
description;
|
|
12275
12289
|
id;
|
|
12276
|
-
name;
|
|
12277
12290
|
provider;
|
|
12291
|
+
name;
|
|
12292
|
+
description;
|
|
12293
|
+
createdAt;
|
|
12278
12294
|
updatedAt;
|
|
12279
12295
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12280
12296
|
super(request, syncEngine, baseUrl);
|
|
12281
|
-
this.createdAt = new Date(data.createdAt);
|
|
12282
|
-
this.description = data.description ?? void 0;
|
|
12283
12297
|
this.id = data.id;
|
|
12284
|
-
this.name = data.name;
|
|
12285
12298
|
this.provider = data.provider;
|
|
12299
|
+
this.name = data.name;
|
|
12300
|
+
this.description = data.description ?? void 0;
|
|
12301
|
+
this.createdAt = new Date(data.createdAt);
|
|
12286
12302
|
this.updatedAt = new Date(data.updatedAt);
|
|
12287
12303
|
}
|
|
12288
12304
|
};
|
|
@@ -12303,60 +12319,60 @@ var MessageStartEventOutput = class extends DvinaModel {
|
|
|
12303
12319
|
}
|
|
12304
12320
|
};
|
|
12305
12321
|
var ModelTokenUsage = class extends DvinaModel {
|
|
12306
|
-
cacheCreation1hTokens;
|
|
12307
|
-
cacheCreationTokens;
|
|
12308
|
-
cachedInputTokens;
|
|
12309
|
-
cost;
|
|
12310
|
-
inputTokens;
|
|
12311
12322
|
model;
|
|
12323
|
+
inputTokens;
|
|
12312
12324
|
outputTokens;
|
|
12313
12325
|
reasoningTokens;
|
|
12326
|
+
cachedInputTokens;
|
|
12327
|
+
cacheCreationTokens;
|
|
12328
|
+
cacheCreation1hTokens;
|
|
12329
|
+
cost;
|
|
12314
12330
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12315
12331
|
super(request, syncEngine, baseUrl);
|
|
12316
|
-
this.cacheCreation1hTokens = data.cacheCreation1hTokens;
|
|
12317
|
-
this.cacheCreationTokens = data.cacheCreationTokens;
|
|
12318
|
-
this.cachedInputTokens = data.cachedInputTokens;
|
|
12319
|
-
this.cost = data.cost;
|
|
12320
|
-
this.inputTokens = data.inputTokens;
|
|
12321
12332
|
this.model = data.model;
|
|
12333
|
+
this.inputTokens = data.inputTokens;
|
|
12322
12334
|
this.outputTokens = data.outputTokens;
|
|
12323
12335
|
this.reasoningTokens = data.reasoningTokens;
|
|
12336
|
+
this.cachedInputTokens = data.cachedInputTokens;
|
|
12337
|
+
this.cacheCreationTokens = data.cacheCreationTokens;
|
|
12338
|
+
this.cacheCreation1hTokens = data.cacheCreation1hTokens;
|
|
12339
|
+
this.cost = data.cost;
|
|
12324
12340
|
}
|
|
12325
12341
|
};
|
|
12326
12342
|
var Notification = class extends DvinaModel {
|
|
12327
|
-
category;
|
|
12328
|
-
createdAt;
|
|
12329
12343
|
id;
|
|
12330
|
-
message;
|
|
12331
|
-
metadata;
|
|
12332
|
-
priority;
|
|
12333
12344
|
referenceId;
|
|
12345
|
+
category;
|
|
12346
|
+
priority;
|
|
12334
12347
|
status;
|
|
12335
12348
|
title;
|
|
12349
|
+
message;
|
|
12350
|
+
metadata;
|
|
12351
|
+
createdAt;
|
|
12336
12352
|
updatedAt;
|
|
12337
12353
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12338
12354
|
super(request, syncEngine, baseUrl);
|
|
12339
|
-
this.category = data.category ?? void 0;
|
|
12340
|
-
this.createdAt = new Date(data.createdAt);
|
|
12341
12355
|
this.id = data.id;
|
|
12342
|
-
this.message = data.message ?? void 0;
|
|
12343
|
-
this.metadata = data.metadata ?? void 0;
|
|
12344
|
-
this.priority = data.priority;
|
|
12345
12356
|
this.referenceId = data.referenceId ?? void 0;
|
|
12357
|
+
this.category = data.category ?? void 0;
|
|
12358
|
+
this.priority = data.priority;
|
|
12346
12359
|
this.status = data.status ?? void 0;
|
|
12347
12360
|
this.title = data.title;
|
|
12361
|
+
this.message = data.message ?? void 0;
|
|
12362
|
+
this.metadata = data.metadata ?? void 0;
|
|
12363
|
+
this.createdAt = new Date(data.createdAt);
|
|
12348
12364
|
this.updatedAt = new Date(data.updatedAt);
|
|
12349
12365
|
}
|
|
12350
12366
|
};
|
|
12351
12367
|
var PrivacyStats = class extends DvinaModel {
|
|
12352
|
-
automaticallyMaskedData;
|
|
12353
|
-
dataKeptAwayFromThirdParties;
|
|
12354
12368
|
messagesProtectedFromTraining;
|
|
12369
|
+
dataKeptAwayFromThirdParties;
|
|
12370
|
+
automaticallyMaskedData;
|
|
12355
12371
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12356
12372
|
super(request, syncEngine, baseUrl);
|
|
12357
|
-
this.automaticallyMaskedData = data.automaticallyMaskedData ?? void 0;
|
|
12358
|
-
this.dataKeptAwayFromThirdParties = data.dataKeptAwayFromThirdParties ?? void 0;
|
|
12359
12373
|
this.messagesProtectedFromTraining = data.messagesProtectedFromTraining ?? void 0;
|
|
12374
|
+
this.dataKeptAwayFromThirdParties = data.dataKeptAwayFromThirdParties ?? void 0;
|
|
12375
|
+
this.automaticallyMaskedData = data.automaticallyMaskedData ?? void 0;
|
|
12360
12376
|
}
|
|
12361
12377
|
};
|
|
12362
12378
|
var PulseAppSummaryModel = class extends DvinaModel {
|
|
@@ -12371,42 +12387,42 @@ var PulseAppSummaryModel = class extends DvinaModel {
|
|
|
12371
12387
|
}
|
|
12372
12388
|
};
|
|
12373
12389
|
var PulseEvent = class extends DvinaModel {
|
|
12374
|
-
actions;
|
|
12375
|
-
createdAt;
|
|
12376
|
-
dismissedAt;
|
|
12377
12390
|
id;
|
|
12378
12391
|
integrationId;
|
|
12379
|
-
kind;
|
|
12380
|
-
message;
|
|
12381
|
-
payload;
|
|
12382
|
-
priority;
|
|
12383
12392
|
providerKey;
|
|
12384
12393
|
remoteEventId;
|
|
12385
|
-
remoteLogId;
|
|
12386
12394
|
remoteTriggerId;
|
|
12387
|
-
|
|
12388
|
-
title;
|
|
12395
|
+
remoteLogId;
|
|
12389
12396
|
triggerSlug;
|
|
12397
|
+
title;
|
|
12398
|
+
message;
|
|
12399
|
+
priority;
|
|
12400
|
+
kind;
|
|
12401
|
+
payload;
|
|
12402
|
+
actions;
|
|
12403
|
+
createdAt;
|
|
12390
12404
|
updatedAt;
|
|
12405
|
+
resolvedAt;
|
|
12406
|
+
dismissedAt;
|
|
12391
12407
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12392
12408
|
super(request, syncEngine, baseUrl);
|
|
12393
|
-
this.actions = data.actions ?? void 0;
|
|
12394
|
-
this.createdAt = new Date(data.createdAt);
|
|
12395
|
-
this.dismissedAt = data.dismissedAt ? new Date(data.dismissedAt) : void 0;
|
|
12396
12409
|
this.id = data.id;
|
|
12397
12410
|
this.integrationId = data.integrationId;
|
|
12398
|
-
this.kind = data.kind;
|
|
12399
|
-
this.message = data.message ?? void 0;
|
|
12400
|
-
this.payload = data.payload ?? void 0;
|
|
12401
|
-
this.priority = data.priority;
|
|
12402
12411
|
this.providerKey = data.providerKey;
|
|
12403
12412
|
this.remoteEventId = data.remoteEventId;
|
|
12404
|
-
this.remoteLogId = data.remoteLogId ?? void 0;
|
|
12405
12413
|
this.remoteTriggerId = data.remoteTriggerId ?? void 0;
|
|
12406
|
-
this.
|
|
12407
|
-
this.title = data.title;
|
|
12414
|
+
this.remoteLogId = data.remoteLogId ?? void 0;
|
|
12408
12415
|
this.triggerSlug = data.triggerSlug;
|
|
12416
|
+
this.title = data.title;
|
|
12417
|
+
this.message = data.message ?? void 0;
|
|
12418
|
+
this.priority = data.priority;
|
|
12419
|
+
this.kind = data.kind;
|
|
12420
|
+
this.payload = data.payload ?? void 0;
|
|
12421
|
+
this.actions = data.actions ?? void 0;
|
|
12422
|
+
this.createdAt = new Date(data.createdAt);
|
|
12409
12423
|
this.updatedAt = new Date(data.updatedAt);
|
|
12424
|
+
this.resolvedAt = data.resolvedAt ? new Date(data.resolvedAt) : void 0;
|
|
12425
|
+
this.dismissedAt = data.dismissedAt ? new Date(data.dismissedAt) : void 0;
|
|
12410
12426
|
}
|
|
12411
12427
|
/** Query the integration relation for this PulseEvent. Call .fetch() or .watch() to execute. */
|
|
12412
12428
|
integration(variables) {
|
|
@@ -12414,16 +12430,16 @@ var PulseEvent = class extends DvinaModel {
|
|
|
12414
12430
|
}
|
|
12415
12431
|
};
|
|
12416
12432
|
var PulseTriggerSettingModel = class extends DvinaModel {
|
|
12417
|
-
integrationId;
|
|
12418
12433
|
isEnabled;
|
|
12434
|
+
integrationId;
|
|
12419
12435
|
message;
|
|
12420
12436
|
name;
|
|
12421
12437
|
providerKey;
|
|
12422
12438
|
slug;
|
|
12423
12439
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12424
12440
|
super(request, syncEngine, baseUrl);
|
|
12425
|
-
this.integrationId = data.integrationId;
|
|
12426
12441
|
this.isEnabled = data.isEnabled;
|
|
12442
|
+
this.integrationId = data.integrationId;
|
|
12427
12443
|
this.message = data.message ?? void 0;
|
|
12428
12444
|
this.name = data.name;
|
|
12429
12445
|
this.providerKey = data.providerKey;
|
|
@@ -12431,32 +12447,32 @@ var PulseTriggerSettingModel = class extends DvinaModel {
|
|
|
12431
12447
|
}
|
|
12432
12448
|
};
|
|
12433
12449
|
var ReasoningEventOutput = class extends DvinaModel {
|
|
12434
|
-
delta;
|
|
12435
12450
|
type;
|
|
12451
|
+
delta;
|
|
12436
12452
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12437
12453
|
super(request, syncEngine, baseUrl);
|
|
12438
|
-
this.delta = data.delta;
|
|
12439
12454
|
this.type = data.type;
|
|
12455
|
+
this.delta = data.delta;
|
|
12440
12456
|
}
|
|
12441
12457
|
};
|
|
12442
12458
|
var Relation = class extends DvinaModel {
|
|
12443
|
-
createdAt;
|
|
12444
|
-
fromTableColumn;
|
|
12445
|
-
fromTableId;
|
|
12446
12459
|
id;
|
|
12447
|
-
|
|
12460
|
+
fromTableId;
|
|
12461
|
+
fromTableColumn;
|
|
12448
12462
|
toTableId;
|
|
12463
|
+
toTableColumn;
|
|
12449
12464
|
type;
|
|
12465
|
+
createdAt;
|
|
12450
12466
|
updatedAt;
|
|
12451
12467
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12452
12468
|
super(request, syncEngine, baseUrl);
|
|
12453
|
-
this.createdAt = new Date(data.createdAt);
|
|
12454
|
-
this.fromTableColumn = data.fromTableColumn;
|
|
12455
|
-
this.fromTableId = data.fromTableId;
|
|
12456
12469
|
this.id = data.id;
|
|
12457
|
-
this.
|
|
12470
|
+
this.fromTableId = data.fromTableId;
|
|
12471
|
+
this.fromTableColumn = data.fromTableColumn;
|
|
12458
12472
|
this.toTableId = data.toTableId;
|
|
12473
|
+
this.toTableColumn = data.toTableColumn;
|
|
12459
12474
|
this.type = data.type;
|
|
12475
|
+
this.createdAt = new Date(data.createdAt);
|
|
12460
12476
|
this.updatedAt = new Date(data.updatedAt);
|
|
12461
12477
|
}
|
|
12462
12478
|
/** Lazy-fetch the fromTable relation. Call .fetch() or .watch() to execute. */
|
|
@@ -12469,17 +12485,17 @@ var Relation = class extends DvinaModel {
|
|
|
12469
12485
|
}
|
|
12470
12486
|
};
|
|
12471
12487
|
var Report = class extends DvinaModel {
|
|
12472
|
-
createdAt;
|
|
12473
|
-
description;
|
|
12474
12488
|
id;
|
|
12475
12489
|
name;
|
|
12490
|
+
description;
|
|
12491
|
+
createdAt;
|
|
12476
12492
|
updatedAt;
|
|
12477
12493
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12478
12494
|
super(request, syncEngine, baseUrl);
|
|
12479
|
-
this.createdAt = new Date(data.createdAt);
|
|
12480
|
-
this.description = data.description ?? void 0;
|
|
12481
12495
|
this.id = data.id;
|
|
12482
12496
|
this.name = data.name;
|
|
12497
|
+
this.description = data.description ?? void 0;
|
|
12498
|
+
this.createdAt = new Date(data.createdAt);
|
|
12483
12499
|
this.updatedAt = new Date(data.updatedAt);
|
|
12484
12500
|
}
|
|
12485
12501
|
/** Query the insights relation for this Report. Call .fetch() or .watch() to execute. */
|
|
@@ -12492,27 +12508,27 @@ var Report = class extends DvinaModel {
|
|
|
12492
12508
|
}
|
|
12493
12509
|
};
|
|
12494
12510
|
var ReportMember = class extends DvinaModel {
|
|
12511
|
+
reportId;
|
|
12495
12512
|
insightId;
|
|
12496
12513
|
order;
|
|
12497
|
-
presentation;
|
|
12498
|
-
reportId;
|
|
12499
12514
|
size;
|
|
12515
|
+
presentation;
|
|
12500
12516
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12501
12517
|
super(request, syncEngine, baseUrl);
|
|
12518
|
+
this.reportId = data.reportId;
|
|
12502
12519
|
this.insightId = data.insightId;
|
|
12503
12520
|
this.order = data.order;
|
|
12504
|
-
this.presentation = data.presentation;
|
|
12505
|
-
this.reportId = data.reportId;
|
|
12506
12521
|
this.size = data.size;
|
|
12507
|
-
|
|
12508
|
-
/** Lazy-fetch the insight relation. Call .fetch() or .watch() to execute. */
|
|
12509
|
-
insight() {
|
|
12510
|
-
return new InsightQuery(this._request, this._syncEngine, { id: this.insightId }, this._baseUrl);
|
|
12522
|
+
this.presentation = data.presentation;
|
|
12511
12523
|
}
|
|
12512
12524
|
/** Lazy-fetch the report relation. Call .fetch() or .watch() to execute. */
|
|
12513
12525
|
report() {
|
|
12514
12526
|
return new ReportQuery(this._request, this._syncEngine, { id: this.reportId }, this._baseUrl);
|
|
12515
12527
|
}
|
|
12528
|
+
/** Lazy-fetch the insight relation. Call .fetch() or .watch() to execute. */
|
|
12529
|
+
insight() {
|
|
12530
|
+
return new InsightQuery(this._request, this._syncEngine, { id: this.insightId }, this._baseUrl);
|
|
12531
|
+
}
|
|
12516
12532
|
};
|
|
12517
12533
|
var ResolvedFileUrl = class extends DvinaModel {
|
|
12518
12534
|
id;
|
|
@@ -12530,36 +12546,36 @@ var StreamEventSchemaAnchor = class extends DvinaModel {
|
|
|
12530
12546
|
this.event = (() => {
|
|
12531
12547
|
const value = data.event;
|
|
12532
12548
|
switch (value.__typename) {
|
|
12533
|
-
case "AudioEventOutput":
|
|
12534
|
-
return new AudioEventOutput(request, value, syncEngine, baseUrl);
|
|
12535
|
-
case "ChatTitleEventOutput":
|
|
12536
|
-
return new ChatTitleEventOutput(request, value, syncEngine, baseUrl);
|
|
12537
|
-
case "FinalContentEventOutput":
|
|
12538
|
-
return new FinalContentEventOutput(request, value, syncEngine, baseUrl);
|
|
12539
|
-
case "MessageEndEventOutput":
|
|
12540
|
-
return new MessageEndEventOutput(request, value, syncEngine, baseUrl);
|
|
12541
12549
|
case "MessageStartEventOutput":
|
|
12542
12550
|
return new MessageStartEventOutput(request, value, syncEngine, baseUrl);
|
|
12543
|
-
case "
|
|
12544
|
-
return new
|
|
12551
|
+
case "MessageEndEventOutput":
|
|
12552
|
+
return new MessageEndEventOutput(request, value, syncEngine, baseUrl);
|
|
12553
|
+
case "ChatTitleEventOutput":
|
|
12554
|
+
return new ChatTitleEventOutput(request, value, syncEngine, baseUrl);
|
|
12555
|
+
case "AudioEventOutput":
|
|
12556
|
+
return new AudioEventOutput(request, value, syncEngine, baseUrl);
|
|
12545
12557
|
case "TextBlockEventOutput":
|
|
12546
12558
|
return new TextBlockEventOutput(request, value, syncEngine, baseUrl);
|
|
12547
12559
|
case "TextDeltaEventOutput":
|
|
12548
12560
|
return new TextDeltaEventOutput(request, value, syncEngine, baseUrl);
|
|
12549
|
-
case "ToolInputDeltaEventOutput":
|
|
12550
|
-
return new ToolInputDeltaEventOutput(request, value, syncEngine, baseUrl);
|
|
12551
|
-
case "ToolResultEventOutput":
|
|
12552
|
-
return new ToolResultEventOutput(request, value, syncEngine, baseUrl);
|
|
12553
|
-
case "ToolStartEventOutput":
|
|
12554
|
-
return new ToolStartEventOutput(request, value, syncEngine, baseUrl);
|
|
12555
|
-
case "WidgetBlockCompleteEventOutput":
|
|
12556
|
-
return new WidgetBlockCompleteEventOutput(request, value, syncEngine, baseUrl);
|
|
12557
|
-
case "WidgetBlockErrorEventOutput":
|
|
12558
|
-
return new WidgetBlockErrorEventOutput(request, value, syncEngine, baseUrl);
|
|
12559
12561
|
case "WidgetBlockStartEventOutput":
|
|
12560
12562
|
return new WidgetBlockStartEventOutput(request, value, syncEngine, baseUrl);
|
|
12561
12563
|
case "WidgetHtmlDeltaEventOutput":
|
|
12562
12564
|
return new WidgetHtmlDeltaEventOutput(request, value, syncEngine, baseUrl);
|
|
12565
|
+
case "WidgetBlockCompleteEventOutput":
|
|
12566
|
+
return new WidgetBlockCompleteEventOutput(request, value, syncEngine, baseUrl);
|
|
12567
|
+
case "WidgetBlockErrorEventOutput":
|
|
12568
|
+
return new WidgetBlockErrorEventOutput(request, value, syncEngine, baseUrl);
|
|
12569
|
+
case "ToolStartEventOutput":
|
|
12570
|
+
return new ToolStartEventOutput(request, value, syncEngine, baseUrl);
|
|
12571
|
+
case "ToolInputDeltaEventOutput":
|
|
12572
|
+
return new ToolInputDeltaEventOutput(request, value, syncEngine, baseUrl);
|
|
12573
|
+
case "ToolResultEventOutput":
|
|
12574
|
+
return new ToolResultEventOutput(request, value, syncEngine, baseUrl);
|
|
12575
|
+
case "ReasoningEventOutput":
|
|
12576
|
+
return new ReasoningEventOutput(request, value, syncEngine, baseUrl);
|
|
12577
|
+
case "FinalContentEventOutput":
|
|
12578
|
+
return new FinalContentEventOutput(request, value, syncEngine, baseUrl);
|
|
12563
12579
|
default:
|
|
12564
12580
|
throw new Error("Unknown AgentStreamEvent member for StreamEventSchemaAnchor.event.");
|
|
12565
12581
|
}
|
|
@@ -12567,96 +12583,96 @@ var StreamEventSchemaAnchor = class extends DvinaModel {
|
|
|
12567
12583
|
}
|
|
12568
12584
|
};
|
|
12569
12585
|
var StreamMessageContentOutput = class extends DvinaModel {
|
|
12570
|
-
chatMessageId;
|
|
12571
|
-
content;
|
|
12572
12586
|
id;
|
|
12573
|
-
index;
|
|
12574
12587
|
type;
|
|
12588
|
+
content;
|
|
12589
|
+
chatMessageId;
|
|
12590
|
+
index;
|
|
12575
12591
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12576
12592
|
super(request, syncEngine, baseUrl);
|
|
12577
|
-
this.chatMessageId = data.chatMessageId;
|
|
12578
|
-
this.content = data.content;
|
|
12579
12593
|
this.id = data.id;
|
|
12580
|
-
this.index = data.index;
|
|
12581
12594
|
this.type = data.type;
|
|
12595
|
+
this.content = data.content;
|
|
12596
|
+
this.chatMessageId = data.chatMessageId;
|
|
12597
|
+
this.index = data.index;
|
|
12582
12598
|
}
|
|
12583
12599
|
};
|
|
12584
12600
|
var StreamMessageOutput = class extends DvinaModel {
|
|
12585
|
-
actions;
|
|
12586
|
-
chatId;
|
|
12587
|
-
from;
|
|
12588
12601
|
id;
|
|
12589
|
-
|
|
12602
|
+
from;
|
|
12590
12603
|
sentAt;
|
|
12604
|
+
originMeta;
|
|
12605
|
+
chatId;
|
|
12606
|
+
actions;
|
|
12591
12607
|
contents;
|
|
12592
12608
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12593
12609
|
super(request, syncEngine, baseUrl);
|
|
12594
|
-
this.actions = data.actions ?? void 0;
|
|
12595
|
-
this.chatId = data.chatId;
|
|
12596
|
-
this.from = data.from;
|
|
12597
12610
|
this.id = data.id;
|
|
12598
|
-
this.
|
|
12611
|
+
this.from = data.from;
|
|
12599
12612
|
this.sentAt = new Date(data.sentAt);
|
|
12613
|
+
this.originMeta = data.originMeta ?? void 0;
|
|
12614
|
+
this.chatId = data.chatId;
|
|
12615
|
+
this.actions = data.actions ?? void 0;
|
|
12600
12616
|
this.contents = Array.isArray(data.contents) ? data.contents.filter(Boolean).map((item) => new StreamMessageContentOutput(request, item, syncEngine, baseUrl)) : [];
|
|
12601
12617
|
}
|
|
12602
12618
|
};
|
|
12603
12619
|
var SyncEvent = class extends DvinaModel {
|
|
12604
|
-
createdAt;
|
|
12605
|
-
entityId;
|
|
12606
12620
|
id;
|
|
12621
|
+
type;
|
|
12607
12622
|
modelName;
|
|
12623
|
+
entityId;
|
|
12608
12624
|
payload;
|
|
12609
|
-
|
|
12625
|
+
workspaceId;
|
|
12610
12626
|
userId;
|
|
12611
12627
|
visibility;
|
|
12612
|
-
|
|
12628
|
+
createdAt;
|
|
12613
12629
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12614
12630
|
super(request, syncEngine, baseUrl);
|
|
12615
|
-
this.createdAt = new Date(data.createdAt);
|
|
12616
|
-
this.entityId = data.entityId;
|
|
12617
12631
|
this.id = data.id;
|
|
12632
|
+
this.type = data.type;
|
|
12618
12633
|
this.modelName = data.modelName;
|
|
12634
|
+
this.entityId = data.entityId;
|
|
12619
12635
|
this.payload = data.payload ?? void 0;
|
|
12620
|
-
this.
|
|
12636
|
+
this.workspaceId = data.workspaceId;
|
|
12621
12637
|
this.userId = data.userId ?? void 0;
|
|
12622
12638
|
this.visibility = data.visibility ?? void 0;
|
|
12623
|
-
this.
|
|
12639
|
+
this.createdAt = new Date(data.createdAt);
|
|
12624
12640
|
}
|
|
12625
12641
|
};
|
|
12626
12642
|
var SyncEventCursor = class extends DvinaModel {
|
|
12627
|
-
createdAt;
|
|
12628
12643
|
key;
|
|
12644
|
+
createdAt;
|
|
12629
12645
|
updatedAt;
|
|
12630
12646
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12631
12647
|
super(request, syncEngine, baseUrl);
|
|
12632
|
-
this.createdAt = new Date(data.createdAt);
|
|
12633
12648
|
this.key = data.key;
|
|
12649
|
+
this.createdAt = new Date(data.createdAt);
|
|
12634
12650
|
this.updatedAt = new Date(data.updatedAt);
|
|
12635
12651
|
}
|
|
12636
12652
|
};
|
|
12637
12653
|
var Table = class extends DvinaModel {
|
|
12638
|
-
clearName;
|
|
12639
|
-
createdAt;
|
|
12640
|
-
databaseId;
|
|
12641
|
-
documentId;
|
|
12642
12654
|
id;
|
|
12643
|
-
model;
|
|
12644
12655
|
name;
|
|
12645
|
-
|
|
12656
|
+
clearName;
|
|
12646
12657
|
title;
|
|
12658
|
+
status;
|
|
12659
|
+
documentId;
|
|
12660
|
+
databaseId;
|
|
12661
|
+
createdAt;
|
|
12647
12662
|
updatedAt;
|
|
12663
|
+
model;
|
|
12648
12664
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12649
12665
|
super(request, syncEngine, baseUrl);
|
|
12650
|
-
this.clearName = data.clearName ?? void 0;
|
|
12651
|
-
this.createdAt = new Date(data.createdAt);
|
|
12652
|
-
this.databaseId = data.databaseId ?? void 0;
|
|
12653
|
-
this.documentId = data.documentId ?? void 0;
|
|
12654
12666
|
this.id = data.id;
|
|
12655
|
-
this.model = data.model;
|
|
12656
12667
|
this.name = data.name;
|
|
12657
|
-
this.
|
|
12668
|
+
this.clearName = data.clearName ?? void 0;
|
|
12658
12669
|
this.title = data.title ?? void 0;
|
|
12670
|
+
this.status = data.status;
|
|
12671
|
+
this.documentId = data.documentId ?? void 0;
|
|
12672
|
+
this.databaseId = data.databaseId ?? void 0;
|
|
12673
|
+
this.createdAt = new Date(data.createdAt);
|
|
12659
12674
|
this.updatedAt = new Date(data.updatedAt);
|
|
12675
|
+
this.model = data.model;
|
|
12660
12676
|
}
|
|
12661
12677
|
/** Query the database relation for this Table. Call .fetch() or .watch() to execute. */
|
|
12662
12678
|
database(variables) {
|
|
@@ -12676,65 +12692,65 @@ var Table = class extends DvinaModel {
|
|
|
12676
12692
|
}
|
|
12677
12693
|
};
|
|
12678
12694
|
var TextBlockEventOutput = class extends DvinaModel {
|
|
12679
|
-
text;
|
|
12680
12695
|
type;
|
|
12696
|
+
text;
|
|
12681
12697
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12682
12698
|
super(request, syncEngine, baseUrl);
|
|
12683
|
-
this.text = data.text;
|
|
12684
12699
|
this.type = data.type;
|
|
12700
|
+
this.text = data.text;
|
|
12685
12701
|
}
|
|
12686
12702
|
};
|
|
12687
12703
|
var TextDeltaEventOutput = class extends DvinaModel {
|
|
12688
|
-
delta;
|
|
12689
12704
|
type;
|
|
12705
|
+
delta;
|
|
12690
12706
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12691
12707
|
super(request, syncEngine, baseUrl);
|
|
12692
|
-
this.delta = data.delta;
|
|
12693
12708
|
this.type = data.type;
|
|
12709
|
+
this.delta = data.delta;
|
|
12694
12710
|
}
|
|
12695
12711
|
};
|
|
12696
12712
|
var TokenUsage = class extends DvinaModel {
|
|
12697
|
-
cacheCreation1hTokens;
|
|
12698
|
-
cacheCreationTokens;
|
|
12699
|
-
cachedInputTokens;
|
|
12700
|
-
cost;
|
|
12701
|
-
createdAt;
|
|
12702
12713
|
id;
|
|
12703
|
-
inputTokens;
|
|
12704
12714
|
label;
|
|
12705
|
-
|
|
12715
|
+
inputTokens;
|
|
12716
|
+
cachedInputTokens;
|
|
12717
|
+
cacheCreationTokens;
|
|
12718
|
+
cacheCreation1hTokens;
|
|
12706
12719
|
outputTokens;
|
|
12707
12720
|
reasoningTokens;
|
|
12721
|
+
model;
|
|
12722
|
+
cost;
|
|
12708
12723
|
scope;
|
|
12724
|
+
createdAt;
|
|
12709
12725
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12710
12726
|
super(request, syncEngine, baseUrl);
|
|
12711
|
-
this.cacheCreation1hTokens = data.cacheCreation1hTokens ?? void 0;
|
|
12712
|
-
this.cacheCreationTokens = data.cacheCreationTokens ?? void 0;
|
|
12713
|
-
this.cachedInputTokens = data.cachedInputTokens ?? void 0;
|
|
12714
|
-
this.cost = data.cost;
|
|
12715
|
-
this.createdAt = new Date(data.createdAt);
|
|
12716
12727
|
this.id = data.id;
|
|
12717
|
-
this.inputTokens = data.inputTokens;
|
|
12718
12728
|
this.label = data.label ?? void 0;
|
|
12719
|
-
this.
|
|
12729
|
+
this.inputTokens = data.inputTokens;
|
|
12730
|
+
this.cachedInputTokens = data.cachedInputTokens ?? void 0;
|
|
12731
|
+
this.cacheCreationTokens = data.cacheCreationTokens ?? void 0;
|
|
12732
|
+
this.cacheCreation1hTokens = data.cacheCreation1hTokens ?? void 0;
|
|
12720
12733
|
this.outputTokens = data.outputTokens;
|
|
12721
12734
|
this.reasoningTokens = data.reasoningTokens ?? void 0;
|
|
12735
|
+
this.model = data.model;
|
|
12736
|
+
this.cost = data.cost;
|
|
12722
12737
|
this.scope = data.scope;
|
|
12738
|
+
this.createdAt = new Date(data.createdAt);
|
|
12723
12739
|
}
|
|
12724
12740
|
};
|
|
12725
12741
|
var ToolInputDeltaEventOutput = class extends DvinaModel {
|
|
12742
|
+
type;
|
|
12743
|
+
name;
|
|
12726
12744
|
args;
|
|
12727
12745
|
index;
|
|
12728
|
-
name;
|
|
12729
12746
|
toolCallId;
|
|
12730
|
-
type;
|
|
12731
12747
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12732
12748
|
super(request, syncEngine, baseUrl);
|
|
12749
|
+
this.type = data.type;
|
|
12750
|
+
this.name = data.name;
|
|
12733
12751
|
this.args = data.args;
|
|
12734
12752
|
this.index = data.index;
|
|
12735
|
-
this.name = data.name;
|
|
12736
12753
|
this.toolCallId = data.toolCallId;
|
|
12737
|
-
this.type = data.type;
|
|
12738
12754
|
}
|
|
12739
12755
|
};
|
|
12740
12756
|
var ToolResultArtifactOutput = class extends DvinaModel {
|
|
@@ -12751,106 +12767,106 @@ var ToolResultArtifactOutput = class extends DvinaModel {
|
|
|
12751
12767
|
}
|
|
12752
12768
|
};
|
|
12753
12769
|
var ToolResultEventOutput = class extends DvinaModel {
|
|
12754
|
-
|
|
12755
|
-
input;
|
|
12770
|
+
type;
|
|
12756
12771
|
name;
|
|
12772
|
+
toolKit;
|
|
12773
|
+
input;
|
|
12757
12774
|
output;
|
|
12775
|
+
index;
|
|
12758
12776
|
toolCallId;
|
|
12759
|
-
toolKit;
|
|
12760
|
-
type;
|
|
12761
12777
|
artifacts;
|
|
12762
12778
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12763
12779
|
super(request, syncEngine, baseUrl);
|
|
12764
|
-
this.
|
|
12765
|
-
this.input = data.input;
|
|
12780
|
+
this.type = data.type;
|
|
12766
12781
|
this.name = data.name;
|
|
12782
|
+
this.toolKit = data.toolKit;
|
|
12783
|
+
this.input = data.input;
|
|
12767
12784
|
this.output = data.output;
|
|
12785
|
+
this.index = data.index;
|
|
12768
12786
|
this.toolCallId = data.toolCallId;
|
|
12769
|
-
this.toolKit = data.toolKit;
|
|
12770
|
-
this.type = data.type;
|
|
12771
12787
|
this.artifacts = Array.isArray(data.artifacts) ? data.artifacts.filter(Boolean).map((item) => new ToolResultArtifactOutput(request, item, syncEngine, baseUrl)) : [];
|
|
12772
12788
|
}
|
|
12773
12789
|
};
|
|
12774
12790
|
var ToolStartEventOutput = class extends DvinaModel {
|
|
12775
|
-
|
|
12791
|
+
type;
|
|
12776
12792
|
name;
|
|
12777
|
-
toolCallId;
|
|
12778
12793
|
toolKit;
|
|
12779
|
-
|
|
12794
|
+
index;
|
|
12795
|
+
toolCallId;
|
|
12780
12796
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12781
12797
|
super(request, syncEngine, baseUrl);
|
|
12782
|
-
this.
|
|
12798
|
+
this.type = data.type;
|
|
12783
12799
|
this.name = data.name;
|
|
12784
|
-
this.toolCallId = data.toolCallId;
|
|
12785
12800
|
this.toolKit = data.toolKit;
|
|
12786
|
-
this.
|
|
12801
|
+
this.index = data.index;
|
|
12802
|
+
this.toolCallId = data.toolCallId;
|
|
12787
12803
|
}
|
|
12788
12804
|
};
|
|
12789
12805
|
var UsageMetaOutput = class extends DvinaModel {
|
|
12790
|
-
cachedPromptTokens;
|
|
12791
|
-
completionTokens;
|
|
12792
12806
|
promptTokens;
|
|
12807
|
+
completionTokens;
|
|
12793
12808
|
totalTokens;
|
|
12809
|
+
cachedPromptTokens;
|
|
12794
12810
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12795
12811
|
super(request, syncEngine, baseUrl);
|
|
12796
|
-
this.cachedPromptTokens = data.cachedPromptTokens ?? void 0;
|
|
12797
|
-
this.completionTokens = data.completionTokens;
|
|
12798
12812
|
this.promptTokens = data.promptTokens;
|
|
12813
|
+
this.completionTokens = data.completionTokens;
|
|
12799
12814
|
this.totalTokens = data.totalTokens;
|
|
12815
|
+
this.cachedPromptTokens = data.cachedPromptTokens ?? void 0;
|
|
12800
12816
|
}
|
|
12801
12817
|
};
|
|
12802
12818
|
var UsageStatus = class extends DvinaModel {
|
|
12803
|
-
hardTokenUsageLimit;
|
|
12804
12819
|
limit;
|
|
12805
|
-
tokenUsageCost;
|
|
12806
12820
|
unlocksAt;
|
|
12807
|
-
|
|
12821
|
+
tokenUsageCost;
|
|
12808
12822
|
windowStart;
|
|
12823
|
+
windowEnd;
|
|
12824
|
+
hardTokenUsageLimit;
|
|
12809
12825
|
windows;
|
|
12810
12826
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12811
12827
|
super(request, syncEngine, baseUrl);
|
|
12812
|
-
this.hardTokenUsageLimit = data.hardTokenUsageLimit ?? void 0;
|
|
12813
12828
|
this.limit = data.limit ?? void 0;
|
|
12814
|
-
this.tokenUsageCost = data.tokenUsageCost ?? void 0;
|
|
12815
12829
|
this.unlocksAt = data.unlocksAt ? new Date(data.unlocksAt) : void 0;
|
|
12816
|
-
this.
|
|
12830
|
+
this.tokenUsageCost = data.tokenUsageCost ?? void 0;
|
|
12817
12831
|
this.windowStart = data.windowStart ? new Date(data.windowStart) : void 0;
|
|
12832
|
+
this.windowEnd = data.windowEnd ? new Date(data.windowEnd) : void 0;
|
|
12833
|
+
this.hardTokenUsageLimit = data.hardTokenUsageLimit ?? void 0;
|
|
12818
12834
|
this.windows = data.windows ? new UsageWindowsStatusType(request, data.windows, syncEngine, baseUrl) : void 0;
|
|
12819
12835
|
}
|
|
12820
12836
|
};
|
|
12821
12837
|
var UsageWindowsStatusType = class extends DvinaModel {
|
|
12822
12838
|
activeWindow;
|
|
12823
12839
|
unlocksAt;
|
|
12824
|
-
day;
|
|
12825
12840
|
fiveHour;
|
|
12826
|
-
|
|
12841
|
+
day;
|
|
12827
12842
|
week;
|
|
12843
|
+
month;
|
|
12828
12844
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12829
12845
|
super(request, syncEngine, baseUrl);
|
|
12830
12846
|
this.activeWindow = data.activeWindow ?? void 0;
|
|
12831
12847
|
this.unlocksAt = data.unlocksAt ? new Date(data.unlocksAt) : void 0;
|
|
12832
|
-
this.day = data.day ? new WindowDetailType(request, data.day, syncEngine, baseUrl) : void 0;
|
|
12833
12848
|
this.fiveHour = data.fiveHour ? new WindowDetailType(request, data.fiveHour, syncEngine, baseUrl) : void 0;
|
|
12834
|
-
this.
|
|
12849
|
+
this.day = data.day ? new WindowDetailType(request, data.day, syncEngine, baseUrl) : void 0;
|
|
12835
12850
|
this.week = data.week ? new WindowDetailType(request, data.week, syncEngine, baseUrl) : void 0;
|
|
12851
|
+
this.month = data.month ? new WindowDetailType(request, data.month, syncEngine, baseUrl) : void 0;
|
|
12836
12852
|
}
|
|
12837
12853
|
};
|
|
12838
12854
|
var UserSkillFile = class extends DvinaModel {
|
|
12839
|
-
createdAt;
|
|
12840
|
-
fileId;
|
|
12841
|
-
formatKey;
|
|
12842
12855
|
id;
|
|
12843
|
-
name;
|
|
12844
12856
|
path;
|
|
12857
|
+
name;
|
|
12858
|
+
fileId;
|
|
12859
|
+
formatKey;
|
|
12860
|
+
createdAt;
|
|
12845
12861
|
updatedAt;
|
|
12846
12862
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12847
12863
|
super(request, syncEngine, baseUrl);
|
|
12848
|
-
this.createdAt = new Date(data.createdAt);
|
|
12849
|
-
this.fileId = data.fileId;
|
|
12850
|
-
this.formatKey = data.formatKey;
|
|
12851
12864
|
this.id = data.id;
|
|
12852
|
-
this.name = data.name;
|
|
12853
12865
|
this.path = data.path;
|
|
12866
|
+
this.name = data.name;
|
|
12867
|
+
this.fileId = data.fileId;
|
|
12868
|
+
this.formatKey = data.formatKey;
|
|
12869
|
+
this.createdAt = new Date(data.createdAt);
|
|
12854
12870
|
this.updatedAt = new Date(data.updatedAt);
|
|
12855
12871
|
}
|
|
12856
12872
|
/** Lazy-fetch the file relation. Call .fetch() or .watch() to execute. */
|
|
@@ -12859,138 +12875,138 @@ var UserSkillFile = class extends DvinaModel {
|
|
|
12859
12875
|
}
|
|
12860
12876
|
};
|
|
12861
12877
|
var UserSkillFileModel = class extends DvinaModel {
|
|
12862
|
-
createdAt;
|
|
12863
|
-
fileId;
|
|
12864
|
-
formatKey;
|
|
12865
12878
|
id;
|
|
12866
|
-
mimeType;
|
|
12867
|
-
name;
|
|
12868
12879
|
path;
|
|
12880
|
+
name;
|
|
12881
|
+
formatKey;
|
|
12882
|
+
mimeType;
|
|
12869
12883
|
size;
|
|
12884
|
+
createdAt;
|
|
12870
12885
|
updatedAt;
|
|
12886
|
+
fileId;
|
|
12871
12887
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12872
12888
|
super(request, syncEngine, baseUrl);
|
|
12873
|
-
this.createdAt = new Date(data.createdAt);
|
|
12874
|
-
this.fileId = data.fileId;
|
|
12875
|
-
this.formatKey = data.formatKey;
|
|
12876
12889
|
this.id = data.id;
|
|
12877
|
-
this.mimeType = data.mimeType ?? void 0;
|
|
12878
|
-
this.name = data.name;
|
|
12879
12890
|
this.path = data.path;
|
|
12891
|
+
this.name = data.name;
|
|
12892
|
+
this.formatKey = data.formatKey;
|
|
12893
|
+
this.mimeType = data.mimeType ?? void 0;
|
|
12880
12894
|
this.size = data.size ?? void 0;
|
|
12895
|
+
this.createdAt = new Date(data.createdAt);
|
|
12881
12896
|
this.updatedAt = new Date(data.updatedAt);
|
|
12897
|
+
this.fileId = data.fileId;
|
|
12882
12898
|
}
|
|
12883
12899
|
};
|
|
12884
12900
|
var UserSkillFolder = class extends DvinaModel {
|
|
12885
|
-
createdAt;
|
|
12886
12901
|
id;
|
|
12887
12902
|
path;
|
|
12903
|
+
createdAt;
|
|
12888
12904
|
updatedAt;
|
|
12889
12905
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12890
12906
|
super(request, syncEngine, baseUrl);
|
|
12891
|
-
this.createdAt = new Date(data.createdAt);
|
|
12892
12907
|
this.id = data.id;
|
|
12893
12908
|
this.path = data.path;
|
|
12909
|
+
this.createdAt = new Date(data.createdAt);
|
|
12894
12910
|
this.updatedAt = new Date(data.updatedAt);
|
|
12895
12911
|
}
|
|
12896
12912
|
};
|
|
12897
12913
|
var UserSkillFolderModel = class extends DvinaModel {
|
|
12898
|
-
createdAt;
|
|
12899
12914
|
id;
|
|
12900
|
-
itemCount;
|
|
12901
12915
|
path;
|
|
12916
|
+
createdAt;
|
|
12902
12917
|
updatedAt;
|
|
12918
|
+
itemCount;
|
|
12903
12919
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12904
12920
|
super(request, syncEngine, baseUrl);
|
|
12905
|
-
this.createdAt = new Date(data.createdAt);
|
|
12906
12921
|
this.id = data.id;
|
|
12907
|
-
this.itemCount = data.itemCount;
|
|
12908
12922
|
this.path = data.path;
|
|
12923
|
+
this.createdAt = new Date(data.createdAt);
|
|
12909
12924
|
this.updatedAt = new Date(data.updatedAt);
|
|
12925
|
+
this.itemCount = data.itemCount;
|
|
12910
12926
|
}
|
|
12911
12927
|
};
|
|
12912
12928
|
var WidgetBlockCompleteEventOutput = class extends DvinaModel {
|
|
12929
|
+
type;
|
|
12913
12930
|
index;
|
|
12914
|
-
summary;
|
|
12915
12931
|
toolCallId;
|
|
12916
|
-
|
|
12932
|
+
summary;
|
|
12917
12933
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12918
12934
|
super(request, syncEngine, baseUrl);
|
|
12935
|
+
this.type = data.type;
|
|
12919
12936
|
this.index = data.index;
|
|
12920
|
-
this.summary = data.summary ?? void 0;
|
|
12921
12937
|
this.toolCallId = data.toolCallId;
|
|
12922
|
-
this.
|
|
12938
|
+
this.summary = data.summary ?? void 0;
|
|
12923
12939
|
}
|
|
12924
12940
|
};
|
|
12925
12941
|
var WidgetBlockErrorEventOutput = class extends DvinaModel {
|
|
12926
|
-
|
|
12942
|
+
type;
|
|
12927
12943
|
index;
|
|
12928
12944
|
toolCallId;
|
|
12929
|
-
|
|
12945
|
+
errorMessage;
|
|
12930
12946
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12931
12947
|
super(request, syncEngine, baseUrl);
|
|
12932
|
-
this.
|
|
12948
|
+
this.type = data.type;
|
|
12933
12949
|
this.index = data.index;
|
|
12934
12950
|
this.toolCallId = data.toolCallId;
|
|
12935
|
-
this.
|
|
12951
|
+
this.errorMessage = data.errorMessage;
|
|
12936
12952
|
}
|
|
12937
12953
|
};
|
|
12938
12954
|
var WidgetBlockStartEventOutput = class extends DvinaModel {
|
|
12955
|
+
type;
|
|
12939
12956
|
index;
|
|
12940
|
-
summary;
|
|
12941
12957
|
toolCallId;
|
|
12942
|
-
|
|
12958
|
+
summary;
|
|
12943
12959
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12944
12960
|
super(request, syncEngine, baseUrl);
|
|
12961
|
+
this.type = data.type;
|
|
12945
12962
|
this.index = data.index;
|
|
12946
|
-
this.summary = data.summary ?? void 0;
|
|
12947
12963
|
this.toolCallId = data.toolCallId;
|
|
12948
|
-
this.
|
|
12964
|
+
this.summary = data.summary ?? void 0;
|
|
12949
12965
|
}
|
|
12950
12966
|
};
|
|
12951
12967
|
var WidgetHtmlDeltaEventOutput = class extends DvinaModel {
|
|
12968
|
+
type;
|
|
12952
12969
|
delta;
|
|
12953
12970
|
index;
|
|
12954
|
-
summary;
|
|
12955
12971
|
toolCallId;
|
|
12956
|
-
|
|
12972
|
+
summary;
|
|
12957
12973
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12958
12974
|
super(request, syncEngine, baseUrl);
|
|
12975
|
+
this.type = data.type;
|
|
12959
12976
|
this.delta = data.delta;
|
|
12960
12977
|
this.index = data.index;
|
|
12961
|
-
this.summary = data.summary ?? void 0;
|
|
12962
12978
|
this.toolCallId = data.toolCallId;
|
|
12963
|
-
this.
|
|
12979
|
+
this.summary = data.summary ?? void 0;
|
|
12964
12980
|
}
|
|
12965
12981
|
};
|
|
12966
12982
|
var WindowDetailType = class extends DvinaModel {
|
|
12967
12983
|
cost;
|
|
12968
|
-
isExceeded;
|
|
12969
12984
|
limit;
|
|
12970
|
-
windowEnd;
|
|
12971
12985
|
windowStart;
|
|
12986
|
+
windowEnd;
|
|
12987
|
+
isExceeded;
|
|
12972
12988
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12973
12989
|
super(request, syncEngine, baseUrl);
|
|
12974
12990
|
this.cost = data.cost;
|
|
12975
|
-
this.isExceeded = data.isExceeded;
|
|
12976
12991
|
this.limit = data.limit ?? void 0;
|
|
12977
|
-
this.windowEnd = data.windowEnd ? new Date(data.windowEnd) : void 0;
|
|
12978
12992
|
this.windowStart = data.windowStart ? new Date(data.windowStart) : void 0;
|
|
12993
|
+
this.windowEnd = data.windowEnd ? new Date(data.windowEnd) : void 0;
|
|
12994
|
+
this.isExceeded = data.isExceeded;
|
|
12979
12995
|
}
|
|
12980
12996
|
};
|
|
12981
12997
|
var WorkspaceDeleteSchedule = class extends DvinaModel {
|
|
12982
|
-
createdAt;
|
|
12983
12998
|
id;
|
|
12999
|
+
workspaceId;
|
|
12984
13000
|
scheduledAt;
|
|
13001
|
+
createdAt;
|
|
12985
13002
|
updatedAt;
|
|
12986
|
-
workspaceId;
|
|
12987
13003
|
constructor(request, data, syncEngine, baseUrl) {
|
|
12988
13004
|
super(request, syncEngine, baseUrl);
|
|
12989
|
-
this.createdAt = new Date(data.createdAt);
|
|
12990
13005
|
this.id = data.id;
|
|
13006
|
+
this.workspaceId = data.workspaceId;
|
|
12991
13007
|
this.scheduledAt = new Date(data.scheduledAt);
|
|
13008
|
+
this.createdAt = new Date(data.createdAt);
|
|
12992
13009
|
this.updatedAt = new Date(data.updatedAt);
|
|
12993
|
-
this.workspaceId = data.workspaceId;
|
|
12994
13010
|
}
|
|
12995
13011
|
};
|
|
12996
13012
|
var AgentConnection = class extends Connection {
|
|
@@ -13213,7 +13229,7 @@ var AgentSubBuilder = class {
|
|
|
13213
13229
|
fieldArguments: info.fieldArguments,
|
|
13214
13230
|
syncMetadata: {
|
|
13215
13231
|
entityType: "chats",
|
|
13216
|
-
requiredFields: ["
|
|
13232
|
+
requiredFields: ["id", "name", "piiSanitizationEnabled", "createdAt", "updatedAt"]
|
|
13217
13233
|
},
|
|
13218
13234
|
children,
|
|
13219
13235
|
modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu),
|
|
@@ -13244,7 +13260,7 @@ var ArtifactSubBuilder = class {
|
|
|
13244
13260
|
fieldArguments: info.fieldArguments,
|
|
13245
13261
|
syncMetadata: {
|
|
13246
13262
|
entityType: "chats",
|
|
13247
|
-
requiredFields: ["
|
|
13263
|
+
requiredFields: ["id", "name", "piiSanitizationEnabled", "createdAt", "updatedAt"]
|
|
13248
13264
|
},
|
|
13249
13265
|
children,
|
|
13250
13266
|
modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu)
|
|
@@ -13264,7 +13280,7 @@ var ArtifactSubBuilder = class {
|
|
|
13264
13280
|
fieldArguments: info.fieldArguments,
|
|
13265
13281
|
syncMetadata: {
|
|
13266
13282
|
entityType: "files",
|
|
13267
|
-
requiredFields: ["
|
|
13283
|
+
requiredFields: ["id", "createdAt", "updatedAt", "path"]
|
|
13268
13284
|
},
|
|
13269
13285
|
modelFactory: (req, data, se, bu) => new File(req, data, se, bu)
|
|
13270
13286
|
});
|
|
@@ -13289,7 +13305,7 @@ var ArtifactSubBuilder = class {
|
|
|
13289
13305
|
fieldArguments: info.fieldArguments,
|
|
13290
13306
|
syncMetadata: {
|
|
13291
13307
|
entityType: "chatMessages",
|
|
13292
|
-
requiredFields: ["
|
|
13308
|
+
requiredFields: ["id", "from", "sentAt", "chatId", "actions"]
|
|
13293
13309
|
},
|
|
13294
13310
|
children,
|
|
13295
13311
|
modelFactory: (req, data, se, bu) => new ChatMessage(req, data, se, bu)
|
|
@@ -13319,7 +13335,7 @@ var ChatSubBuilder = class {
|
|
|
13319
13335
|
fieldArguments: info.fieldArguments,
|
|
13320
13336
|
syncMetadata: {
|
|
13321
13337
|
entityType: "agents",
|
|
13322
|
-
requiredFields: ["
|
|
13338
|
+
requiredFields: ["id", "createdAt", "updatedAt"]
|
|
13323
13339
|
},
|
|
13324
13340
|
children,
|
|
13325
13341
|
modelFactory: (req, data, se, bu) => new Agent(req, data, se, bu),
|
|
@@ -13346,7 +13362,7 @@ var ChatSubBuilder = class {
|
|
|
13346
13362
|
fieldArguments: info.fieldArguments,
|
|
13347
13363
|
syncMetadata: {
|
|
13348
13364
|
entityType: "artifacts",
|
|
13349
|
-
requiredFields: ["
|
|
13365
|
+
requiredFields: ["id", "createdAt", "updatedAt", "kind", "fileId"]
|
|
13350
13366
|
},
|
|
13351
13367
|
children,
|
|
13352
13368
|
modelFactory: (req, data, se, bu) => new Artifact(req, data, se, bu),
|
|
@@ -13373,7 +13389,7 @@ var ChatSubBuilder = class {
|
|
|
13373
13389
|
fieldArguments: info.fieldArguments,
|
|
13374
13390
|
syncMetadata: {
|
|
13375
13391
|
entityType: "insights",
|
|
13376
|
-
requiredFields: ["
|
|
13392
|
+
requiredFields: ["id", "name", "query", "presentation", "createdAt", "updatedAt"]
|
|
13377
13393
|
},
|
|
13378
13394
|
children,
|
|
13379
13395
|
modelFactory: (req, data, se, bu) => new Insight(req, data, se, bu)
|
|
@@ -13399,7 +13415,7 @@ var ChatSubBuilder = class {
|
|
|
13399
13415
|
fieldArguments: info.fieldArguments,
|
|
13400
13416
|
syncMetadata: {
|
|
13401
13417
|
entityType: "chatMessages",
|
|
13402
|
-
requiredFields: ["
|
|
13418
|
+
requiredFields: ["id", "from", "sentAt", "chatId", "actions"]
|
|
13403
13419
|
},
|
|
13404
13420
|
children,
|
|
13405
13421
|
modelFactory: (req, data, se, bu) => new ChatMessage(req, data, se, bu),
|
|
@@ -13430,7 +13446,7 @@ var ChatMessageSubBuilder = class {
|
|
|
13430
13446
|
fieldArguments: info.fieldArguments,
|
|
13431
13447
|
syncMetadata: {
|
|
13432
13448
|
entityType: "artifacts",
|
|
13433
|
-
requiredFields: ["
|
|
13449
|
+
requiredFields: ["id", "createdAt", "updatedAt", "kind", "fileId"]
|
|
13434
13450
|
},
|
|
13435
13451
|
children,
|
|
13436
13452
|
modelFactory: (req, data, se, bu) => new Artifact(req, data, se, bu),
|
|
@@ -13457,7 +13473,7 @@ var ChatMessageSubBuilder = class {
|
|
|
13457
13473
|
fieldArguments: info.fieldArguments,
|
|
13458
13474
|
syncMetadata: {
|
|
13459
13475
|
entityType: "chats",
|
|
13460
|
-
requiredFields: ["
|
|
13476
|
+
requiredFields: ["id", "name", "piiSanitizationEnabled", "createdAt", "updatedAt"]
|
|
13461
13477
|
},
|
|
13462
13478
|
children,
|
|
13463
13479
|
modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu)
|
|
@@ -13477,7 +13493,7 @@ var ChatMessageSubBuilder = class {
|
|
|
13477
13493
|
fieldArguments: info.fieldArguments,
|
|
13478
13494
|
syncMetadata: {
|
|
13479
13495
|
entityType: "contentBlocks",
|
|
13480
|
-
requiredFields: ["
|
|
13496
|
+
requiredFields: ["id", "type", "content", "chatMessageId", "index"]
|
|
13481
13497
|
},
|
|
13482
13498
|
modelFactory: (req, data, se, bu) => new ContentBlock(req, data, se, bu)
|
|
13483
13499
|
});
|
|
@@ -13496,7 +13512,7 @@ var ChatMessageSubBuilder = class {
|
|
|
13496
13512
|
fieldArguments: info.fieldArguments,
|
|
13497
13513
|
syncMetadata: {
|
|
13498
13514
|
entityType: "feedback",
|
|
13499
|
-
requiredFields: ["
|
|
13515
|
+
requiredFields: ["id", "feedback", "chatMessageId", "createdAt"]
|
|
13500
13516
|
},
|
|
13501
13517
|
modelFactory: (req, data, se, bu) => new Feedback(req, data, se, bu)
|
|
13502
13518
|
});
|
|
@@ -13544,7 +13560,7 @@ var DatabaseSubBuilder = class {
|
|
|
13544
13560
|
fieldArguments: info.fieldArguments,
|
|
13545
13561
|
syncMetadata: {
|
|
13546
13562
|
entityType: "tables",
|
|
13547
|
-
requiredFields: ["
|
|
13563
|
+
requiredFields: ["id", "name", "status", "createdAt", "updatedAt", "model"]
|
|
13548
13564
|
},
|
|
13549
13565
|
children,
|
|
13550
13566
|
modelFactory: (req, data, se, bu) => new Table(req, data, se, bu),
|
|
@@ -13592,7 +13608,7 @@ var DocumentSubBuilder = class {
|
|
|
13592
13608
|
fieldArguments: info.fieldArguments,
|
|
13593
13609
|
syncMetadata: {
|
|
13594
13610
|
entityType: "documentContents",
|
|
13595
|
-
requiredFields: ["
|
|
13611
|
+
requiredFields: ["id", "documentId", "pageNumber", "content", "createdAt", "updatedAt"]
|
|
13596
13612
|
},
|
|
13597
13613
|
modelFactory: (req, data, se, bu) => new DocumentContent(req, data, se, bu)
|
|
13598
13614
|
});
|
|
@@ -13611,7 +13627,7 @@ var DocumentSubBuilder = class {
|
|
|
13611
13627
|
fieldArguments: info.fieldArguments,
|
|
13612
13628
|
syncMetadata: {
|
|
13613
13629
|
entityType: "files",
|
|
13614
|
-
requiredFields: ["
|
|
13630
|
+
requiredFields: ["id", "createdAt", "updatedAt", "path"]
|
|
13615
13631
|
},
|
|
13616
13632
|
modelFactory: (req, data, se, bu) => new File(req, data, se, bu)
|
|
13617
13633
|
});
|
|
@@ -13630,7 +13646,7 @@ var DocumentSubBuilder = class {
|
|
|
13630
13646
|
fieldArguments: info.fieldArguments,
|
|
13631
13647
|
syncMetadata: {
|
|
13632
13648
|
entityType: "documentFormats",
|
|
13633
|
-
requiredFields: ["
|
|
13649
|
+
requiredFields: ["key", "supportsDeepAnalysis", "createsTables"]
|
|
13634
13650
|
},
|
|
13635
13651
|
modelFactory: (req, data, se, bu) => new DocumentFormat(req, data, se, bu)
|
|
13636
13652
|
});
|
|
@@ -13655,7 +13671,7 @@ var DocumentSubBuilder = class {
|
|
|
13655
13671
|
fieldArguments: info.fieldArguments,
|
|
13656
13672
|
syncMetadata: {
|
|
13657
13673
|
entityType: "tables",
|
|
13658
|
-
requiredFields: ["
|
|
13674
|
+
requiredFields: ["id", "name", "status", "createdAt", "updatedAt", "model"]
|
|
13659
13675
|
},
|
|
13660
13676
|
children,
|
|
13661
13677
|
modelFactory: (req, data, se, bu) => new Table(req, data, se, bu),
|
|
@@ -13680,7 +13696,7 @@ var DocumentCatalogSubBuilder = class {
|
|
|
13680
13696
|
fieldArguments: info.fieldArguments,
|
|
13681
13697
|
syncMetadata: {
|
|
13682
13698
|
entityType: "documentFormats",
|
|
13683
|
-
requiredFields: ["
|
|
13699
|
+
requiredFields: ["key", "supportsDeepAnalysis", "createsTables"]
|
|
13684
13700
|
},
|
|
13685
13701
|
modelFactory: (req, data, se, bu) => new DocumentFormat(req, data, se, bu)
|
|
13686
13702
|
});
|
|
@@ -13751,7 +13767,7 @@ var InsightSubBuilder = class {
|
|
|
13751
13767
|
fieldArguments: info.fieldArguments,
|
|
13752
13768
|
syncMetadata: {
|
|
13753
13769
|
entityType: "chats",
|
|
13754
|
-
requiredFields: ["
|
|
13770
|
+
requiredFields: ["id", "name", "piiSanitizationEnabled", "createdAt", "updatedAt"]
|
|
13755
13771
|
},
|
|
13756
13772
|
children,
|
|
13757
13773
|
modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu)
|
|
@@ -13771,7 +13787,7 @@ var InsightSubBuilder = class {
|
|
|
13771
13787
|
fieldArguments: info.fieldArguments,
|
|
13772
13788
|
syncMetadata: {
|
|
13773
13789
|
entityType: "reportMembers",
|
|
13774
|
-
requiredFields: ["
|
|
13790
|
+
requiredFields: ["reportId", "insightId", "order", "size", "presentation"]
|
|
13775
13791
|
},
|
|
13776
13792
|
modelFactory: (req, data, se, bu) => new ReportMember(req, data, se, bu)
|
|
13777
13793
|
});
|
|
@@ -13796,7 +13812,7 @@ var InsightSubBuilder = class {
|
|
|
13796
13812
|
fieldArguments: info.fieldArguments,
|
|
13797
13813
|
syncMetadata: {
|
|
13798
13814
|
entityType: "reports",
|
|
13799
|
-
requiredFields: ["
|
|
13815
|
+
requiredFields: ["id", "name", "createdAt", "updatedAt"]
|
|
13800
13816
|
},
|
|
13801
13817
|
children,
|
|
13802
13818
|
modelFactory: (req, data, se, bu) => new Report(req, data, se, bu),
|
|
@@ -13817,7 +13833,7 @@ var InsightSubBuilder = class {
|
|
|
13817
13833
|
fieldArguments: info.fieldArguments,
|
|
13818
13834
|
syncMetadata: {
|
|
13819
13835
|
entityType: "files",
|
|
13820
|
-
requiredFields: ["
|
|
13836
|
+
requiredFields: ["id", "createdAt", "updatedAt", "path"]
|
|
13821
13837
|
},
|
|
13822
13838
|
modelFactory: (req, data, se, bu) => new File(req, data, se, bu)
|
|
13823
13839
|
});
|
|
@@ -13892,7 +13908,7 @@ var PulseEventSubBuilder = class {
|
|
|
13892
13908
|
fieldArguments: info.fieldArguments,
|
|
13893
13909
|
syncMetadata: {
|
|
13894
13910
|
entityType: "integrations",
|
|
13895
|
-
requiredFields: ["
|
|
13911
|
+
requiredFields: ["id", "providerKey", "status", "unreadPulseCount", "createdAt", "updatedAt"]
|
|
13896
13912
|
},
|
|
13897
13913
|
children,
|
|
13898
13914
|
modelFactory: (req, data, se, bu) => new Integration(req, data, se, bu)
|
|
@@ -13922,7 +13938,7 @@ var ReportSubBuilder = class {
|
|
|
13922
13938
|
fieldArguments: info.fieldArguments,
|
|
13923
13939
|
syncMetadata: {
|
|
13924
13940
|
entityType: "insights",
|
|
13925
|
-
requiredFields: ["
|
|
13941
|
+
requiredFields: ["id", "name", "query", "presentation", "createdAt", "updatedAt"]
|
|
13926
13942
|
},
|
|
13927
13943
|
children,
|
|
13928
13944
|
modelFactory: (req, data, se, bu) => new Insight(req, data, se, bu),
|
|
@@ -13943,7 +13959,7 @@ var ReportSubBuilder = class {
|
|
|
13943
13959
|
fieldArguments: info.fieldArguments,
|
|
13944
13960
|
syncMetadata: {
|
|
13945
13961
|
entityType: "reportMembers",
|
|
13946
|
-
requiredFields: ["
|
|
13962
|
+
requiredFields: ["reportId", "insightId", "order", "size", "presentation"]
|
|
13947
13963
|
},
|
|
13948
13964
|
modelFactory: (req, data, se, bu) => new ReportMember(req, data, se, bu)
|
|
13949
13965
|
});
|
|
@@ -13972,7 +13988,7 @@ var TableSubBuilder = class {
|
|
|
13972
13988
|
fieldArguments: info.fieldArguments,
|
|
13973
13989
|
syncMetadata: {
|
|
13974
13990
|
entityType: "databases",
|
|
13975
|
-
requiredFields: ["
|
|
13991
|
+
requiredFields: ["id", "name", "engineKey", "isReady", "createdAt", "updatedAt"]
|
|
13976
13992
|
},
|
|
13977
13993
|
children,
|
|
13978
13994
|
modelFactory: (req, data, se, bu) => new Database(req, data, se, bu)
|
|
@@ -13998,7 +14014,7 @@ var TableSubBuilder = class {
|
|
|
13998
14014
|
fieldArguments: info.fieldArguments,
|
|
13999
14015
|
syncMetadata: {
|
|
14000
14016
|
entityType: "documents",
|
|
14001
|
-
requiredFields: ["
|
|
14017
|
+
requiredFields: ["id", "path", "name", "fileId", "formatKey", "isReady", "isStructured", "isDeepAnalyzed", "createdAt", "updatedAt"]
|
|
14002
14018
|
},
|
|
14003
14019
|
children,
|
|
14004
14020
|
modelFactory: (req, data, se, bu) => new Document(req, data, se, bu)
|
|
@@ -14018,7 +14034,7 @@ var TableSubBuilder = class {
|
|
|
14018
14034
|
fieldArguments: info.fieldArguments,
|
|
14019
14035
|
syncMetadata: {
|
|
14020
14036
|
entityType: "relations",
|
|
14021
|
-
requiredFields: ["
|
|
14037
|
+
requiredFields: ["id", "fromTableId", "fromTableColumn", "toTableId", "toTableColumn", "type", "createdAt", "updatedAt"]
|
|
14022
14038
|
},
|
|
14023
14039
|
modelFactory: (req, data, se, bu) => new Relation(req, data, se, bu)
|
|
14024
14040
|
});
|
|
@@ -14037,7 +14053,7 @@ var TableSubBuilder = class {
|
|
|
14037
14053
|
fieldArguments: info.fieldArguments,
|
|
14038
14054
|
syncMetadata: {
|
|
14039
14055
|
entityType: "relations",
|
|
14040
|
-
requiredFields: ["
|
|
14056
|
+
requiredFields: ["id", "fromTableId", "fromTableColumn", "toTableId", "toTableColumn", "type", "createdAt", "updatedAt"]
|
|
14041
14057
|
},
|
|
14042
14058
|
modelFactory: (req, data, se, bu) => new Relation(req, data, se, bu)
|
|
14043
14059
|
});
|
|
@@ -14309,10 +14325,16 @@ var ReanalyzeDocumentMutation = class extends Request {
|
|
|
14309
14325
|
return new Document(this._request, data, this._syncEngine, this._baseUrl);
|
|
14310
14326
|
}
|
|
14311
14327
|
};
|
|
14312
|
-
var
|
|
14328
|
+
var RefineAgentInstructionMutation = class extends Request {
|
|
14329
|
+
async fetch(variables) {
|
|
14330
|
+
const response = await this._syncEngine.mutate(RefineAgentInstructionDocument, variables, MUTATION_CACHE_RULES["refineAgentInstruction"]);
|
|
14331
|
+
return response.refineAgentInstruction;
|
|
14332
|
+
}
|
|
14333
|
+
};
|
|
14334
|
+
var RefineSkillInstructionMutation = class extends Request {
|
|
14313
14335
|
async fetch(variables) {
|
|
14314
|
-
const response = await this._syncEngine.mutate(
|
|
14315
|
-
return response.
|
|
14336
|
+
const response = await this._syncEngine.mutate(RefineSkillInstructionDocument, variables, MUTATION_CACHE_RULES["refineSkillInstruction"]);
|
|
14337
|
+
return response.refineSkillInstruction;
|
|
14316
14338
|
}
|
|
14317
14339
|
};
|
|
14318
14340
|
var RefreshDatabaseSchemaMutation = class extends Request {
|
|
@@ -14566,7 +14588,7 @@ var AgentQuery = class extends Request {
|
|
|
14566
14588
|
fieldArguments: info.fieldArguments,
|
|
14567
14589
|
syncMetadata: {
|
|
14568
14590
|
entityType: "chats",
|
|
14569
|
-
requiredFields: ["
|
|
14591
|
+
requiredFields: ["id", "name", "piiSanitizationEnabled", "createdAt", "updatedAt"]
|
|
14570
14592
|
},
|
|
14571
14593
|
children,
|
|
14572
14594
|
modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu),
|
|
@@ -14594,9 +14616,17 @@ var Agent_ChatsQuery = class _Agent_ChatsQuery extends Request {
|
|
|
14594
14616
|
variables,
|
|
14595
14617
|
"agent",
|
|
14596
14618
|
async (db) => {
|
|
14597
|
-
const
|
|
14598
|
-
const
|
|
14599
|
-
|
|
14619
|
+
const queryKey = buildQueryKey("agent", variables, Agent_ChatsDocument);
|
|
14620
|
+
const qr = await db._queryResults.get(queryKey);
|
|
14621
|
+
if (!qr) {
|
|
14622
|
+
throw new DvinaCacheMissError(queryKey);
|
|
14623
|
+
}
|
|
14624
|
+
const nodes = await db.table("chats").bulkGet(qr.entityIds);
|
|
14625
|
+
const filteredNodes = nodes.filter(Boolean);
|
|
14626
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
14627
|
+
throw new DvinaCacheMissError(queryKey);
|
|
14628
|
+
}
|
|
14629
|
+
return { agent: { chats: { __typename: "ChatConnection", nodes: filteredNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
14600
14630
|
}
|
|
14601
14631
|
);
|
|
14602
14632
|
return new MappedDvinaQueryRef(raw, (response) => {
|
|
@@ -14637,9 +14667,16 @@ var AgentsQuery = class _AgentsQuery extends Request {
|
|
|
14637
14667
|
mergedVars,
|
|
14638
14668
|
"agents",
|
|
14639
14669
|
async (db) => {
|
|
14640
|
-
const
|
|
14641
|
-
const
|
|
14670
|
+
const queryKey = buildQueryKey("agents", mergedVars, queryDoc);
|
|
14671
|
+
const qr = await db._queryResults.get(queryKey);
|
|
14672
|
+
if (!qr) {
|
|
14673
|
+
throw new DvinaCacheMissError(queryKey);
|
|
14674
|
+
}
|
|
14675
|
+
const nodes = await db.table("agents").bulkGet(qr.entityIds);
|
|
14642
14676
|
const filteredNodes = nodes.filter(Boolean);
|
|
14677
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
14678
|
+
throw new DvinaCacheMissError(queryKey);
|
|
14679
|
+
}
|
|
14643
14680
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "agents", filteredNodes, includes) : filteredNodes;
|
|
14644
14681
|
return { agents: { __typename: "AgentConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
14645
14682
|
},
|
|
@@ -14683,7 +14720,7 @@ var AgentsQuery = class _AgentsQuery extends Request {
|
|
|
14683
14720
|
fieldArguments: info.fieldArguments,
|
|
14684
14721
|
syncMetadata: {
|
|
14685
14722
|
entityType: "chats",
|
|
14686
|
-
requiredFields: ["
|
|
14723
|
+
requiredFields: ["id", "name", "piiSanitizationEnabled", "createdAt", "updatedAt"]
|
|
14687
14724
|
},
|
|
14688
14725
|
children,
|
|
14689
14726
|
modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu),
|
|
@@ -14760,7 +14797,7 @@ var ArtifactQuery = class extends Request {
|
|
|
14760
14797
|
fieldArguments: info.fieldArguments,
|
|
14761
14798
|
syncMetadata: {
|
|
14762
14799
|
entityType: "chats",
|
|
14763
|
-
requiredFields: ["
|
|
14800
|
+
requiredFields: ["id", "name", "piiSanitizationEnabled", "createdAt", "updatedAt"]
|
|
14764
14801
|
},
|
|
14765
14802
|
children,
|
|
14766
14803
|
modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu)
|
|
@@ -14780,7 +14817,7 @@ var ArtifactQuery = class extends Request {
|
|
|
14780
14817
|
fieldArguments: info.fieldArguments,
|
|
14781
14818
|
syncMetadata: {
|
|
14782
14819
|
entityType: "files",
|
|
14783
|
-
requiredFields: ["
|
|
14820
|
+
requiredFields: ["id", "createdAt", "updatedAt", "path"]
|
|
14784
14821
|
},
|
|
14785
14822
|
modelFactory: (req, data, se, bu) => new File(req, data, se, bu)
|
|
14786
14823
|
});
|
|
@@ -14805,7 +14842,7 @@ var ArtifactQuery = class extends Request {
|
|
|
14805
14842
|
fieldArguments: info.fieldArguments,
|
|
14806
14843
|
syncMetadata: {
|
|
14807
14844
|
entityType: "chatMessages",
|
|
14808
|
-
requiredFields: ["
|
|
14845
|
+
requiredFields: ["id", "from", "sentAt", "chatId", "actions"]
|
|
14809
14846
|
},
|
|
14810
14847
|
children,
|
|
14811
14848
|
modelFactory: (req, data, se, bu) => new ChatMessage(req, data, se, bu)
|
|
@@ -15038,9 +15075,16 @@ var ArtifactsQuery = class _ArtifactsQuery extends Request {
|
|
|
15038
15075
|
mergedVars,
|
|
15039
15076
|
"artifacts",
|
|
15040
15077
|
async (db) => {
|
|
15041
|
-
const
|
|
15042
|
-
const
|
|
15078
|
+
const queryKey = buildQueryKey("artifacts", mergedVars, queryDoc);
|
|
15079
|
+
const qr = await db._queryResults.get(queryKey);
|
|
15080
|
+
if (!qr) {
|
|
15081
|
+
throw new DvinaCacheMissError(queryKey);
|
|
15082
|
+
}
|
|
15083
|
+
const nodes = await db.table("artifacts").bulkGet(qr.entityIds);
|
|
15043
15084
|
const filteredNodes = nodes.filter(Boolean);
|
|
15085
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
15086
|
+
throw new DvinaCacheMissError(queryKey);
|
|
15087
|
+
}
|
|
15044
15088
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "artifacts", filteredNodes, includes) : filteredNodes;
|
|
15045
15089
|
return { artifacts: { __typename: "ArtifactConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
15046
15090
|
},
|
|
@@ -15084,7 +15128,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends Request {
|
|
|
15084
15128
|
fieldArguments: info.fieldArguments,
|
|
15085
15129
|
syncMetadata: {
|
|
15086
15130
|
entityType: "chats",
|
|
15087
|
-
requiredFields: ["
|
|
15131
|
+
requiredFields: ["id", "name", "piiSanitizationEnabled", "createdAt", "updatedAt"]
|
|
15088
15132
|
},
|
|
15089
15133
|
children,
|
|
15090
15134
|
modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu)
|
|
@@ -15104,7 +15148,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends Request {
|
|
|
15104
15148
|
fieldArguments: info.fieldArguments,
|
|
15105
15149
|
syncMetadata: {
|
|
15106
15150
|
entityType: "files",
|
|
15107
|
-
requiredFields: ["
|
|
15151
|
+
requiredFields: ["id", "createdAt", "updatedAt", "path"]
|
|
15108
15152
|
},
|
|
15109
15153
|
modelFactory: (req, data, se, bu) => new File(req, data, se, bu)
|
|
15110
15154
|
});
|
|
@@ -15129,7 +15173,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends Request {
|
|
|
15129
15173
|
fieldArguments: info.fieldArguments,
|
|
15130
15174
|
syncMetadata: {
|
|
15131
15175
|
entityType: "chatMessages",
|
|
15132
|
-
requiredFields: ["
|
|
15176
|
+
requiredFields: ["id", "from", "sentAt", "chatId", "actions"]
|
|
15133
15177
|
},
|
|
15134
15178
|
children,
|
|
15135
15179
|
modelFactory: (req, data, se, bu) => new ChatMessage(req, data, se, bu)
|
|
@@ -15205,7 +15249,7 @@ var ChatQuery = class extends Request {
|
|
|
15205
15249
|
fieldArguments: info.fieldArguments,
|
|
15206
15250
|
syncMetadata: {
|
|
15207
15251
|
entityType: "agents",
|
|
15208
|
-
requiredFields: ["
|
|
15252
|
+
requiredFields: ["id", "createdAt", "updatedAt"]
|
|
15209
15253
|
},
|
|
15210
15254
|
children,
|
|
15211
15255
|
modelFactory: (req, data, se, bu) => new Agent(req, data, se, bu),
|
|
@@ -15232,7 +15276,7 @@ var ChatQuery = class extends Request {
|
|
|
15232
15276
|
fieldArguments: info.fieldArguments,
|
|
15233
15277
|
syncMetadata: {
|
|
15234
15278
|
entityType: "artifacts",
|
|
15235
|
-
requiredFields: ["
|
|
15279
|
+
requiredFields: ["id", "createdAt", "updatedAt", "kind", "fileId"]
|
|
15236
15280
|
},
|
|
15237
15281
|
children,
|
|
15238
15282
|
modelFactory: (req, data, se, bu) => new Artifact(req, data, se, bu),
|
|
@@ -15259,7 +15303,7 @@ var ChatQuery = class extends Request {
|
|
|
15259
15303
|
fieldArguments: info.fieldArguments,
|
|
15260
15304
|
syncMetadata: {
|
|
15261
15305
|
entityType: "insights",
|
|
15262
|
-
requiredFields: ["
|
|
15306
|
+
requiredFields: ["id", "name", "query", "presentation", "createdAt", "updatedAt"]
|
|
15263
15307
|
},
|
|
15264
15308
|
children,
|
|
15265
15309
|
modelFactory: (req, data, se, bu) => new Insight(req, data, se, bu)
|
|
@@ -15285,7 +15329,7 @@ var ChatQuery = class extends Request {
|
|
|
15285
15329
|
fieldArguments: info.fieldArguments,
|
|
15286
15330
|
syncMetadata: {
|
|
15287
15331
|
entityType: "chatMessages",
|
|
15288
|
-
requiredFields: ["
|
|
15332
|
+
requiredFields: ["id", "from", "sentAt", "chatId", "actions"]
|
|
15289
15333
|
},
|
|
15290
15334
|
children,
|
|
15291
15335
|
modelFactory: (req, data, se, bu) => new ChatMessage(req, data, se, bu),
|
|
@@ -15313,9 +15357,17 @@ var Chat_AgentsQuery = class _Chat_AgentsQuery extends Request {
|
|
|
15313
15357
|
variables,
|
|
15314
15358
|
"chat",
|
|
15315
15359
|
async (db) => {
|
|
15316
|
-
const
|
|
15317
|
-
const
|
|
15318
|
-
|
|
15360
|
+
const queryKey = buildQueryKey("chat", variables, Chat_AgentsDocument);
|
|
15361
|
+
const qr = await db._queryResults.get(queryKey);
|
|
15362
|
+
if (!qr) {
|
|
15363
|
+
throw new DvinaCacheMissError(queryKey);
|
|
15364
|
+
}
|
|
15365
|
+
const nodes = await db.table("agents").bulkGet(qr.entityIds);
|
|
15366
|
+
const filteredNodes = nodes.filter(Boolean);
|
|
15367
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
15368
|
+
throw new DvinaCacheMissError(queryKey);
|
|
15369
|
+
}
|
|
15370
|
+
return { chat: { agents: { __typename: "AgentConnection", nodes: filteredNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
15319
15371
|
}
|
|
15320
15372
|
);
|
|
15321
15373
|
return new MappedDvinaQueryRef(raw, (response) => {
|
|
@@ -15343,9 +15395,17 @@ var Chat_ArtifactsQuery = class _Chat_ArtifactsQuery extends Request {
|
|
|
15343
15395
|
variables,
|
|
15344
15396
|
"chat",
|
|
15345
15397
|
async (db) => {
|
|
15346
|
-
const
|
|
15347
|
-
const
|
|
15348
|
-
|
|
15398
|
+
const queryKey = buildQueryKey("chat", variables, Chat_ArtifactsDocument);
|
|
15399
|
+
const qr = await db._queryResults.get(queryKey);
|
|
15400
|
+
if (!qr) {
|
|
15401
|
+
throw new DvinaCacheMissError(queryKey);
|
|
15402
|
+
}
|
|
15403
|
+
const nodes = await db.table("artifacts").bulkGet(qr.entityIds);
|
|
15404
|
+
const filteredNodes = nodes.filter(Boolean);
|
|
15405
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
15406
|
+
throw new DvinaCacheMissError(queryKey);
|
|
15407
|
+
}
|
|
15408
|
+
return { chat: { artifacts: { __typename: "ArtifactConnection", nodes: filteredNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
15349
15409
|
}
|
|
15350
15410
|
);
|
|
15351
15411
|
return new MappedDvinaQueryRef(raw, (response) => {
|
|
@@ -15446,9 +15506,17 @@ var Chat_MessagesQuery = class _Chat_MessagesQuery extends Request {
|
|
|
15446
15506
|
variables,
|
|
15447
15507
|
"chat",
|
|
15448
15508
|
async (db) => {
|
|
15449
|
-
const
|
|
15450
|
-
const
|
|
15451
|
-
|
|
15509
|
+
const queryKey = buildQueryKey("chat", variables, Chat_MessagesDocument);
|
|
15510
|
+
const qr = await db._queryResults.get(queryKey);
|
|
15511
|
+
if (!qr) {
|
|
15512
|
+
throw new DvinaCacheMissError(queryKey);
|
|
15513
|
+
}
|
|
15514
|
+
const nodes = await db.table("chatMessages").bulkGet(qr.entityIds);
|
|
15515
|
+
const filteredNodes = nodes.filter(Boolean);
|
|
15516
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
15517
|
+
throw new DvinaCacheMissError(queryKey);
|
|
15518
|
+
}
|
|
15519
|
+
return { chat: { messages: { __typename: "ChatMessageConnection", nodes: filteredNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
15452
15520
|
}
|
|
15453
15521
|
);
|
|
15454
15522
|
return new MappedDvinaQueryRef(raw, (response) => {
|
|
@@ -15525,7 +15593,7 @@ var ChatMessageQuery = class extends Request {
|
|
|
15525
15593
|
fieldArguments: info.fieldArguments,
|
|
15526
15594
|
syncMetadata: {
|
|
15527
15595
|
entityType: "artifacts",
|
|
15528
|
-
requiredFields: ["
|
|
15596
|
+
requiredFields: ["id", "createdAt", "updatedAt", "kind", "fileId"]
|
|
15529
15597
|
},
|
|
15530
15598
|
children,
|
|
15531
15599
|
modelFactory: (req, data, se, bu) => new Artifact(req, data, se, bu),
|
|
@@ -15552,7 +15620,7 @@ var ChatMessageQuery = class extends Request {
|
|
|
15552
15620
|
fieldArguments: info.fieldArguments,
|
|
15553
15621
|
syncMetadata: {
|
|
15554
15622
|
entityType: "chats",
|
|
15555
|
-
requiredFields: ["
|
|
15623
|
+
requiredFields: ["id", "name", "piiSanitizationEnabled", "createdAt", "updatedAt"]
|
|
15556
15624
|
},
|
|
15557
15625
|
children,
|
|
15558
15626
|
modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu)
|
|
@@ -15572,7 +15640,7 @@ var ChatMessageQuery = class extends Request {
|
|
|
15572
15640
|
fieldArguments: info.fieldArguments,
|
|
15573
15641
|
syncMetadata: {
|
|
15574
15642
|
entityType: "contentBlocks",
|
|
15575
|
-
requiredFields: ["
|
|
15643
|
+
requiredFields: ["id", "type", "content", "chatMessageId", "index"]
|
|
15576
15644
|
},
|
|
15577
15645
|
modelFactory: (req, data, se, bu) => new ContentBlock(req, data, se, bu)
|
|
15578
15646
|
});
|
|
@@ -15591,7 +15659,7 @@ var ChatMessageQuery = class extends Request {
|
|
|
15591
15659
|
fieldArguments: info.fieldArguments,
|
|
15592
15660
|
syncMetadata: {
|
|
15593
15661
|
entityType: "feedback",
|
|
15594
|
-
requiredFields: ["
|
|
15662
|
+
requiredFields: ["id", "feedback", "chatMessageId", "createdAt"]
|
|
15595
15663
|
},
|
|
15596
15664
|
modelFactory: (req, data, se, bu) => new Feedback(req, data, se, bu)
|
|
15597
15665
|
});
|
|
@@ -15617,9 +15685,17 @@ var ChatMessage_ArtifactsQuery = class _ChatMessage_ArtifactsQuery extends Reque
|
|
|
15617
15685
|
variables,
|
|
15618
15686
|
"chatMessage",
|
|
15619
15687
|
async (db) => {
|
|
15620
|
-
const
|
|
15621
|
-
const
|
|
15622
|
-
|
|
15688
|
+
const queryKey = buildQueryKey("chatMessage", variables, ChatMessage_ArtifactsDocument);
|
|
15689
|
+
const qr = await db._queryResults.get(queryKey);
|
|
15690
|
+
if (!qr) {
|
|
15691
|
+
throw new DvinaCacheMissError(queryKey);
|
|
15692
|
+
}
|
|
15693
|
+
const nodes = await db.table("artifacts").bulkGet(qr.entityIds);
|
|
15694
|
+
const filteredNodes = nodes.filter(Boolean);
|
|
15695
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
15696
|
+
throw new DvinaCacheMissError(queryKey);
|
|
15697
|
+
}
|
|
15698
|
+
return { chatMessage: { artifacts: { __typename: "ArtifactConnection", nodes: filteredNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
15623
15699
|
}
|
|
15624
15700
|
);
|
|
15625
15701
|
return new MappedDvinaQueryRef(raw, (response) => {
|
|
@@ -15763,9 +15839,16 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends Request {
|
|
|
15763
15839
|
mergedVars,
|
|
15764
15840
|
"chatMessages",
|
|
15765
15841
|
async (db) => {
|
|
15766
|
-
const
|
|
15767
|
-
const
|
|
15842
|
+
const queryKey = buildQueryKey("chatMessages", mergedVars, queryDoc);
|
|
15843
|
+
const qr = await db._queryResults.get(queryKey);
|
|
15844
|
+
if (!qr) {
|
|
15845
|
+
throw new DvinaCacheMissError(queryKey);
|
|
15846
|
+
}
|
|
15847
|
+
const nodes = await db.table("chatMessages").bulkGet(qr.entityIds);
|
|
15768
15848
|
const filteredNodes = nodes.filter(Boolean);
|
|
15849
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
15850
|
+
throw new DvinaCacheMissError(queryKey);
|
|
15851
|
+
}
|
|
15769
15852
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "chatMessages", filteredNodes, includes) : filteredNodes;
|
|
15770
15853
|
return { chatMessages: { __typename: "ChatMessageConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
15771
15854
|
},
|
|
@@ -15809,7 +15892,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends Request {
|
|
|
15809
15892
|
fieldArguments: info.fieldArguments,
|
|
15810
15893
|
syncMetadata: {
|
|
15811
15894
|
entityType: "artifacts",
|
|
15812
|
-
requiredFields: ["
|
|
15895
|
+
requiredFields: ["id", "createdAt", "updatedAt", "kind", "fileId"]
|
|
15813
15896
|
},
|
|
15814
15897
|
children,
|
|
15815
15898
|
modelFactory: (req, data, se, bu) => new Artifact(req, data, se, bu),
|
|
@@ -15836,7 +15919,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends Request {
|
|
|
15836
15919
|
fieldArguments: info.fieldArguments,
|
|
15837
15920
|
syncMetadata: {
|
|
15838
15921
|
entityType: "chats",
|
|
15839
|
-
requiredFields: ["
|
|
15922
|
+
requiredFields: ["id", "name", "piiSanitizationEnabled", "createdAt", "updatedAt"]
|
|
15840
15923
|
},
|
|
15841
15924
|
children,
|
|
15842
15925
|
modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu)
|
|
@@ -15856,7 +15939,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends Request {
|
|
|
15856
15939
|
fieldArguments: info.fieldArguments,
|
|
15857
15940
|
syncMetadata: {
|
|
15858
15941
|
entityType: "contentBlocks",
|
|
15859
|
-
requiredFields: ["
|
|
15942
|
+
requiredFields: ["id", "type", "content", "chatMessageId", "index"]
|
|
15860
15943
|
},
|
|
15861
15944
|
modelFactory: (req, data, se, bu) => new ContentBlock(req, data, se, bu)
|
|
15862
15945
|
});
|
|
@@ -15875,7 +15958,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends Request {
|
|
|
15875
15958
|
fieldArguments: info.fieldArguments,
|
|
15876
15959
|
syncMetadata: {
|
|
15877
15960
|
entityType: "feedback",
|
|
15878
|
-
requiredFields: ["
|
|
15961
|
+
requiredFields: ["id", "feedback", "chatMessageId", "createdAt"]
|
|
15879
15962
|
},
|
|
15880
15963
|
modelFactory: (req, data, se, bu) => new Feedback(req, data, se, bu)
|
|
15881
15964
|
});
|
|
@@ -15914,9 +15997,16 @@ var ChatsQuery = class _ChatsQuery extends Request {
|
|
|
15914
15997
|
mergedVars,
|
|
15915
15998
|
"chats",
|
|
15916
15999
|
async (db) => {
|
|
15917
|
-
const
|
|
15918
|
-
const
|
|
16000
|
+
const queryKey = buildQueryKey("chats", mergedVars, queryDoc);
|
|
16001
|
+
const qr = await db._queryResults.get(queryKey);
|
|
16002
|
+
if (!qr) {
|
|
16003
|
+
throw new DvinaCacheMissError(queryKey);
|
|
16004
|
+
}
|
|
16005
|
+
const nodes = await db.table("chats").bulkGet(qr.entityIds);
|
|
15919
16006
|
const filteredNodes = nodes.filter(Boolean);
|
|
16007
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
16008
|
+
throw new DvinaCacheMissError(queryKey);
|
|
16009
|
+
}
|
|
15920
16010
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "chats", filteredNodes, includes) : filteredNodes;
|
|
15921
16011
|
return { chats: { __typename: "ChatConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
15922
16012
|
},
|
|
@@ -15960,7 +16050,7 @@ var ChatsQuery = class _ChatsQuery extends Request {
|
|
|
15960
16050
|
fieldArguments: info.fieldArguments,
|
|
15961
16051
|
syncMetadata: {
|
|
15962
16052
|
entityType: "agents",
|
|
15963
|
-
requiredFields: ["
|
|
16053
|
+
requiredFields: ["id", "createdAt", "updatedAt"]
|
|
15964
16054
|
},
|
|
15965
16055
|
children,
|
|
15966
16056
|
modelFactory: (req, data, se, bu) => new Agent(req, data, se, bu),
|
|
@@ -15987,7 +16077,7 @@ var ChatsQuery = class _ChatsQuery extends Request {
|
|
|
15987
16077
|
fieldArguments: info.fieldArguments,
|
|
15988
16078
|
syncMetadata: {
|
|
15989
16079
|
entityType: "artifacts",
|
|
15990
|
-
requiredFields: ["
|
|
16080
|
+
requiredFields: ["id", "createdAt", "updatedAt", "kind", "fileId"]
|
|
15991
16081
|
},
|
|
15992
16082
|
children,
|
|
15993
16083
|
modelFactory: (req, data, se, bu) => new Artifact(req, data, se, bu),
|
|
@@ -16014,7 +16104,7 @@ var ChatsQuery = class _ChatsQuery extends Request {
|
|
|
16014
16104
|
fieldArguments: info.fieldArguments,
|
|
16015
16105
|
syncMetadata: {
|
|
16016
16106
|
entityType: "insights",
|
|
16017
|
-
requiredFields: ["
|
|
16107
|
+
requiredFields: ["id", "name", "query", "presentation", "createdAt", "updatedAt"]
|
|
16018
16108
|
},
|
|
16019
16109
|
children,
|
|
16020
16110
|
modelFactory: (req, data, se, bu) => new Insight(req, data, se, bu)
|
|
@@ -16040,7 +16130,7 @@ var ChatsQuery = class _ChatsQuery extends Request {
|
|
|
16040
16130
|
fieldArguments: info.fieldArguments,
|
|
16041
16131
|
syncMetadata: {
|
|
16042
16132
|
entityType: "chatMessages",
|
|
16043
|
-
requiredFields: ["
|
|
16133
|
+
requiredFields: ["id", "from", "sentAt", "chatId", "actions"]
|
|
16044
16134
|
},
|
|
16045
16135
|
children,
|
|
16046
16136
|
modelFactory: (req, data, se, bu) => new ChatMessage(req, data, se, bu),
|
|
@@ -16136,7 +16226,7 @@ var DatabaseQuery = class extends Request {
|
|
|
16136
16226
|
fieldArguments: info.fieldArguments,
|
|
16137
16227
|
syncMetadata: {
|
|
16138
16228
|
entityType: "tables",
|
|
16139
|
-
requiredFields: ["
|
|
16229
|
+
requiredFields: ["id", "name", "status", "createdAt", "updatedAt", "model"]
|
|
16140
16230
|
},
|
|
16141
16231
|
children,
|
|
16142
16232
|
modelFactory: (req, data, se, bu) => new Table(req, data, se, bu),
|
|
@@ -16224,9 +16314,17 @@ var Database_TablesQuery = class _Database_TablesQuery extends Request {
|
|
|
16224
16314
|
variables,
|
|
16225
16315
|
"database",
|
|
16226
16316
|
async (db) => {
|
|
16227
|
-
const
|
|
16228
|
-
const
|
|
16229
|
-
|
|
16317
|
+
const queryKey = buildQueryKey("database", variables, Database_TablesDocument);
|
|
16318
|
+
const qr = await db._queryResults.get(queryKey);
|
|
16319
|
+
if (!qr) {
|
|
16320
|
+
throw new DvinaCacheMissError(queryKey);
|
|
16321
|
+
}
|
|
16322
|
+
const nodes = await db.table("tables").bulkGet(qr.entityIds);
|
|
16323
|
+
const filteredNodes = nodes.filter(Boolean);
|
|
16324
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
16325
|
+
throw new DvinaCacheMissError(queryKey);
|
|
16326
|
+
}
|
|
16327
|
+
return { database: { tables: { __typename: "TableConnection", nodes: filteredNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
16230
16328
|
}
|
|
16231
16329
|
);
|
|
16232
16330
|
return new MappedDvinaQueryRef(raw, (response) => {
|
|
@@ -16366,9 +16464,16 @@ var DatabaseCatalogsQuery = class _DatabaseCatalogsQuery extends Request {
|
|
|
16366
16464
|
mergedVars,
|
|
16367
16465
|
"databaseCatalogs",
|
|
16368
16466
|
async (db) => {
|
|
16369
|
-
const
|
|
16370
|
-
const
|
|
16467
|
+
const queryKey = buildQueryKey("databaseCatalogs", mergedVars, queryDoc);
|
|
16468
|
+
const qr = await db._queryResults.get(queryKey);
|
|
16469
|
+
if (!qr) {
|
|
16470
|
+
throw new DvinaCacheMissError(queryKey);
|
|
16471
|
+
}
|
|
16472
|
+
const nodes = await db.table("databaseCatalogs").bulkGet(qr.entityIds);
|
|
16371
16473
|
const filteredNodes = nodes.filter(Boolean);
|
|
16474
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
16475
|
+
throw new DvinaCacheMissError(queryKey);
|
|
16476
|
+
}
|
|
16372
16477
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "databaseCatalogs", filteredNodes, includes) : filteredNodes;
|
|
16373
16478
|
return { databaseCatalogs: { __typename: "DatabaseCatalogConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
16374
16479
|
},
|
|
@@ -16451,9 +16556,16 @@ var DatabasesQuery = class _DatabasesQuery extends Request {
|
|
|
16451
16556
|
mergedVars,
|
|
16452
16557
|
"databases",
|
|
16453
16558
|
async (db) => {
|
|
16454
|
-
const
|
|
16455
|
-
const
|
|
16559
|
+
const queryKey = buildQueryKey("databases", mergedVars, queryDoc);
|
|
16560
|
+
const qr = await db._queryResults.get(queryKey);
|
|
16561
|
+
if (!qr) {
|
|
16562
|
+
throw new DvinaCacheMissError(queryKey);
|
|
16563
|
+
}
|
|
16564
|
+
const nodes = await db.table("databases").bulkGet(qr.entityIds);
|
|
16456
16565
|
const filteredNodes = nodes.filter(Boolean);
|
|
16566
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
16567
|
+
throw new DvinaCacheMissError(queryKey);
|
|
16568
|
+
}
|
|
16457
16569
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "databases", filteredNodes, includes) : filteredNodes;
|
|
16458
16570
|
return { databases: { __typename: "DatabaseConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
16459
16571
|
},
|
|
@@ -16516,7 +16628,7 @@ var DatabasesQuery = class _DatabasesQuery extends Request {
|
|
|
16516
16628
|
fieldArguments: info.fieldArguments,
|
|
16517
16629
|
syncMetadata: {
|
|
16518
16630
|
entityType: "tables",
|
|
16519
|
-
requiredFields: ["
|
|
16631
|
+
requiredFields: ["id", "name", "status", "createdAt", "updatedAt", "model"]
|
|
16520
16632
|
},
|
|
16521
16633
|
children,
|
|
16522
16634
|
modelFactory: (req, data, se, bu) => new Table(req, data, se, bu),
|
|
@@ -16587,7 +16699,7 @@ var DocumentQuery = class extends Request {
|
|
|
16587
16699
|
fieldArguments: info.fieldArguments,
|
|
16588
16700
|
syncMetadata: {
|
|
16589
16701
|
entityType: "documentContents",
|
|
16590
|
-
requiredFields: ["
|
|
16702
|
+
requiredFields: ["id", "documentId", "pageNumber", "content", "createdAt", "updatedAt"]
|
|
16591
16703
|
},
|
|
16592
16704
|
modelFactory: (req, data, se, bu) => new DocumentContent(req, data, se, bu)
|
|
16593
16705
|
});
|
|
@@ -16606,7 +16718,7 @@ var DocumentQuery = class extends Request {
|
|
|
16606
16718
|
fieldArguments: info.fieldArguments,
|
|
16607
16719
|
syncMetadata: {
|
|
16608
16720
|
entityType: "files",
|
|
16609
|
-
requiredFields: ["
|
|
16721
|
+
requiredFields: ["id", "createdAt", "updatedAt", "path"]
|
|
16610
16722
|
},
|
|
16611
16723
|
modelFactory: (req, data, se, bu) => new File(req, data, se, bu)
|
|
16612
16724
|
});
|
|
@@ -16625,7 +16737,7 @@ var DocumentQuery = class extends Request {
|
|
|
16625
16737
|
fieldArguments: info.fieldArguments,
|
|
16626
16738
|
syncMetadata: {
|
|
16627
16739
|
entityType: "documentFormats",
|
|
16628
|
-
requiredFields: ["
|
|
16740
|
+
requiredFields: ["key", "supportsDeepAnalysis", "createsTables"]
|
|
16629
16741
|
},
|
|
16630
16742
|
modelFactory: (req, data, se, bu) => new DocumentFormat(req, data, se, bu)
|
|
16631
16743
|
});
|
|
@@ -16650,7 +16762,7 @@ var DocumentQuery = class extends Request {
|
|
|
16650
16762
|
fieldArguments: info.fieldArguments,
|
|
16651
16763
|
syncMetadata: {
|
|
16652
16764
|
entityType: "tables",
|
|
16653
|
-
requiredFields: ["
|
|
16765
|
+
requiredFields: ["id", "name", "status", "createdAt", "updatedAt", "model"]
|
|
16654
16766
|
},
|
|
16655
16767
|
children,
|
|
16656
16768
|
modelFactory: (req, data, se, bu) => new Table(req, data, se, bu),
|
|
@@ -16781,9 +16893,17 @@ var Document_TablesQuery = class _Document_TablesQuery extends Request {
|
|
|
16781
16893
|
variables,
|
|
16782
16894
|
"document",
|
|
16783
16895
|
async (db) => {
|
|
16784
|
-
const
|
|
16785
|
-
const
|
|
16786
|
-
|
|
16896
|
+
const queryKey = buildQueryKey("document", variables, Document_TablesDocument);
|
|
16897
|
+
const qr = await db._queryResults.get(queryKey);
|
|
16898
|
+
if (!qr) {
|
|
16899
|
+
throw new DvinaCacheMissError(queryKey);
|
|
16900
|
+
}
|
|
16901
|
+
const nodes = await db.table("tables").bulkGet(qr.entityIds);
|
|
16902
|
+
const filteredNodes = nodes.filter(Boolean);
|
|
16903
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
16904
|
+
throw new DvinaCacheMissError(queryKey);
|
|
16905
|
+
}
|
|
16906
|
+
return { document: { tables: { __typename: "TableConnection", nodes: filteredNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
16787
16907
|
}
|
|
16788
16908
|
);
|
|
16789
16909
|
return new MappedDvinaQueryRef(raw, (response) => {
|
|
@@ -16854,7 +16974,7 @@ var DocumentCatalogQuery = class extends Request {
|
|
|
16854
16974
|
fieldArguments: info.fieldArguments,
|
|
16855
16975
|
syncMetadata: {
|
|
16856
16976
|
entityType: "documentFormats",
|
|
16857
|
-
requiredFields: ["
|
|
16977
|
+
requiredFields: ["key", "supportsDeepAnalysis", "createsTables"]
|
|
16858
16978
|
},
|
|
16859
16979
|
modelFactory: (req, data, se, bu) => new DocumentFormat(req, data, se, bu)
|
|
16860
16980
|
});
|
|
@@ -16923,9 +17043,16 @@ var DocumentCatalogsQuery = class _DocumentCatalogsQuery extends Request {
|
|
|
16923
17043
|
mergedVars,
|
|
16924
17044
|
"documentCatalogs",
|
|
16925
17045
|
async (db) => {
|
|
16926
|
-
const
|
|
16927
|
-
const
|
|
17046
|
+
const queryKey = buildQueryKey("documentCatalogs", mergedVars, queryDoc);
|
|
17047
|
+
const qr = await db._queryResults.get(queryKey);
|
|
17048
|
+
if (!qr) {
|
|
17049
|
+
throw new DvinaCacheMissError(queryKey);
|
|
17050
|
+
}
|
|
17051
|
+
const nodes = await db.table("documentCatalogs").bulkGet(qr.entityIds);
|
|
16928
17052
|
const filteredNodes = nodes.filter(Boolean);
|
|
17053
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
17054
|
+
throw new DvinaCacheMissError(queryKey);
|
|
17055
|
+
}
|
|
16929
17056
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "documentCatalogs", filteredNodes, includes) : filteredNodes;
|
|
16930
17057
|
return { documentCatalogs: { __typename: "DocumentCatalogConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
16931
17058
|
},
|
|
@@ -16963,7 +17090,7 @@ var DocumentCatalogsQuery = class _DocumentCatalogsQuery extends Request {
|
|
|
16963
17090
|
fieldArguments: info.fieldArguments,
|
|
16964
17091
|
syncMetadata: {
|
|
16965
17092
|
entityType: "documentFormats",
|
|
16966
|
-
requiredFields: ["
|
|
17093
|
+
requiredFields: ["key", "supportsDeepAnalysis", "createsTables"]
|
|
16967
17094
|
},
|
|
16968
17095
|
modelFactory: (req, data, se, bu) => new DocumentFormat(req, data, se, bu)
|
|
16969
17096
|
});
|
|
@@ -17002,9 +17129,16 @@ var DocumentsQuery = class _DocumentsQuery extends Request {
|
|
|
17002
17129
|
mergedVars,
|
|
17003
17130
|
"documents",
|
|
17004
17131
|
async (db) => {
|
|
17005
|
-
const
|
|
17006
|
-
const
|
|
17132
|
+
const queryKey = buildQueryKey("documents", mergedVars, queryDoc);
|
|
17133
|
+
const qr = await db._queryResults.get(queryKey);
|
|
17134
|
+
if (!qr) {
|
|
17135
|
+
throw new DvinaCacheMissError(queryKey);
|
|
17136
|
+
}
|
|
17137
|
+
const nodes = await db.table("documents").bulkGet(qr.entityIds);
|
|
17007
17138
|
const filteredNodes = nodes.filter(Boolean);
|
|
17139
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
17140
|
+
throw new DvinaCacheMissError(queryKey);
|
|
17141
|
+
}
|
|
17008
17142
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "documents", filteredNodes, includes) : filteredNodes;
|
|
17009
17143
|
return { documents: { __typename: "DocumentConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
17010
17144
|
},
|
|
@@ -17042,7 +17176,7 @@ var DocumentsQuery = class _DocumentsQuery extends Request {
|
|
|
17042
17176
|
fieldArguments: info.fieldArguments,
|
|
17043
17177
|
syncMetadata: {
|
|
17044
17178
|
entityType: "documentContents",
|
|
17045
|
-
requiredFields: ["
|
|
17179
|
+
requiredFields: ["id", "documentId", "pageNumber", "content", "createdAt", "updatedAt"]
|
|
17046
17180
|
},
|
|
17047
17181
|
modelFactory: (req, data, se, bu) => new DocumentContent(req, data, se, bu)
|
|
17048
17182
|
});
|
|
@@ -17061,7 +17195,7 @@ var DocumentsQuery = class _DocumentsQuery extends Request {
|
|
|
17061
17195
|
fieldArguments: info.fieldArguments,
|
|
17062
17196
|
syncMetadata: {
|
|
17063
17197
|
entityType: "files",
|
|
17064
|
-
requiredFields: ["
|
|
17198
|
+
requiredFields: ["id", "createdAt", "updatedAt", "path"]
|
|
17065
17199
|
},
|
|
17066
17200
|
modelFactory: (req, data, se, bu) => new File(req, data, se, bu)
|
|
17067
17201
|
});
|
|
@@ -17080,7 +17214,7 @@ var DocumentsQuery = class _DocumentsQuery extends Request {
|
|
|
17080
17214
|
fieldArguments: info.fieldArguments,
|
|
17081
17215
|
syncMetadata: {
|
|
17082
17216
|
entityType: "documentFormats",
|
|
17083
|
-
requiredFields: ["
|
|
17217
|
+
requiredFields: ["key", "supportsDeepAnalysis", "createsTables"]
|
|
17084
17218
|
},
|
|
17085
17219
|
modelFactory: (req, data, se, bu) => new DocumentFormat(req, data, se, bu)
|
|
17086
17220
|
});
|
|
@@ -17105,7 +17239,7 @@ var DocumentsQuery = class _DocumentsQuery extends Request {
|
|
|
17105
17239
|
fieldArguments: info.fieldArguments,
|
|
17106
17240
|
syncMetadata: {
|
|
17107
17241
|
entityType: "tables",
|
|
17108
|
-
requiredFields: ["
|
|
17242
|
+
requiredFields: ["id", "name", "status", "createdAt", "updatedAt", "model"]
|
|
17109
17243
|
},
|
|
17110
17244
|
children,
|
|
17111
17245
|
modelFactory: (req, data, se, bu) => new Table(req, data, se, bu),
|
|
@@ -17291,9 +17425,16 @@ var FeedItemsQuery = class _FeedItemsQuery extends Request {
|
|
|
17291
17425
|
mergedVars,
|
|
17292
17426
|
"feedItems",
|
|
17293
17427
|
async (db) => {
|
|
17294
|
-
const
|
|
17295
|
-
const
|
|
17428
|
+
const queryKey = buildQueryKey("feedItems", mergedVars, queryDoc);
|
|
17429
|
+
const qr = await db._queryResults.get(queryKey);
|
|
17430
|
+
if (!qr) {
|
|
17431
|
+
throw new DvinaCacheMissError(queryKey);
|
|
17432
|
+
}
|
|
17433
|
+
const nodes = await db.table("feedItems").bulkGet(qr.entityIds);
|
|
17296
17434
|
const filteredNodes = nodes.filter(Boolean);
|
|
17435
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
17436
|
+
throw new DvinaCacheMissError(queryKey);
|
|
17437
|
+
}
|
|
17297
17438
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "feedItems", filteredNodes, includes) : filteredNodes;
|
|
17298
17439
|
return { feedItems: { __typename: "FeedConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
17299
17440
|
},
|
|
@@ -17518,9 +17659,16 @@ var FoldersQuery = class _FoldersQuery extends Request {
|
|
|
17518
17659
|
mergedVars,
|
|
17519
17660
|
"folders",
|
|
17520
17661
|
async (db) => {
|
|
17521
|
-
const
|
|
17522
|
-
const
|
|
17662
|
+
const queryKey = buildQueryKey("folders", mergedVars, queryDoc);
|
|
17663
|
+
const qr = await db._queryResults.get(queryKey);
|
|
17664
|
+
if (!qr) {
|
|
17665
|
+
throw new DvinaCacheMissError(queryKey);
|
|
17666
|
+
}
|
|
17667
|
+
const nodes = await db.table("folders").bulkGet(qr.entityIds);
|
|
17523
17668
|
const filteredNodes = nodes.filter(Boolean);
|
|
17669
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
17670
|
+
throw new DvinaCacheMissError(queryKey);
|
|
17671
|
+
}
|
|
17524
17672
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "folders", filteredNodes, includes) : filteredNodes;
|
|
17525
17673
|
return { folders: { __typename: "FolderConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
17526
17674
|
},
|
|
@@ -17937,7 +18085,7 @@ var InsightQuery = class extends Request {
|
|
|
17937
18085
|
fieldArguments: info.fieldArguments,
|
|
17938
18086
|
syncMetadata: {
|
|
17939
18087
|
entityType: "chats",
|
|
17940
|
-
requiredFields: ["
|
|
18088
|
+
requiredFields: ["id", "name", "piiSanitizationEnabled", "createdAt", "updatedAt"]
|
|
17941
18089
|
},
|
|
17942
18090
|
children,
|
|
17943
18091
|
modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu)
|
|
@@ -17957,7 +18105,7 @@ var InsightQuery = class extends Request {
|
|
|
17957
18105
|
fieldArguments: info.fieldArguments,
|
|
17958
18106
|
syncMetadata: {
|
|
17959
18107
|
entityType: "reportMembers",
|
|
17960
|
-
requiredFields: ["
|
|
18108
|
+
requiredFields: ["reportId", "insightId", "order", "size", "presentation"]
|
|
17961
18109
|
},
|
|
17962
18110
|
modelFactory: (req, data, se, bu) => new ReportMember(req, data, se, bu)
|
|
17963
18111
|
});
|
|
@@ -17982,7 +18130,7 @@ var InsightQuery = class extends Request {
|
|
|
17982
18130
|
fieldArguments: info.fieldArguments,
|
|
17983
18131
|
syncMetadata: {
|
|
17984
18132
|
entityType: "reports",
|
|
17985
|
-
requiredFields: ["
|
|
18133
|
+
requiredFields: ["id", "name", "createdAt", "updatedAt"]
|
|
17986
18134
|
},
|
|
17987
18135
|
children,
|
|
17988
18136
|
modelFactory: (req, data, se, bu) => new Report(req, data, se, bu),
|
|
@@ -18003,7 +18151,7 @@ var InsightQuery = class extends Request {
|
|
|
18003
18151
|
fieldArguments: info.fieldArguments,
|
|
18004
18152
|
syncMetadata: {
|
|
18005
18153
|
entityType: "files",
|
|
18006
|
-
requiredFields: ["
|
|
18154
|
+
requiredFields: ["id", "createdAt", "updatedAt", "path"]
|
|
18007
18155
|
},
|
|
18008
18156
|
modelFactory: (req, data, se, bu) => new File(req, data, se, bu)
|
|
18009
18157
|
});
|
|
@@ -18072,9 +18220,17 @@ var Insight_ReportsQuery = class _Insight_ReportsQuery extends Request {
|
|
|
18072
18220
|
variables,
|
|
18073
18221
|
"insight",
|
|
18074
18222
|
async (db) => {
|
|
18075
|
-
const
|
|
18076
|
-
const
|
|
18077
|
-
|
|
18223
|
+
const queryKey = buildQueryKey("insight", variables, Insight_ReportsDocument);
|
|
18224
|
+
const qr = await db._queryResults.get(queryKey);
|
|
18225
|
+
if (!qr) {
|
|
18226
|
+
throw new DvinaCacheMissError(queryKey);
|
|
18227
|
+
}
|
|
18228
|
+
const nodes = await db.table("reports").bulkGet(qr.entityIds);
|
|
18229
|
+
const filteredNodes = nodes.filter(Boolean);
|
|
18230
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
18231
|
+
throw new DvinaCacheMissError(queryKey);
|
|
18232
|
+
}
|
|
18233
|
+
return { insight: { reports: { __typename: "ReportConnection", nodes: filteredNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
18078
18234
|
}
|
|
18079
18235
|
);
|
|
18080
18236
|
return new MappedDvinaQueryRef(raw, (response) => {
|
|
@@ -18145,9 +18301,16 @@ var InsightsQuery = class _InsightsQuery extends Request {
|
|
|
18145
18301
|
mergedVars,
|
|
18146
18302
|
"insights",
|
|
18147
18303
|
async (db) => {
|
|
18148
|
-
const
|
|
18149
|
-
const
|
|
18304
|
+
const queryKey = buildQueryKey("insights", mergedVars, queryDoc);
|
|
18305
|
+
const qr = await db._queryResults.get(queryKey);
|
|
18306
|
+
if (!qr) {
|
|
18307
|
+
throw new DvinaCacheMissError(queryKey);
|
|
18308
|
+
}
|
|
18309
|
+
const nodes = await db.table("insights").bulkGet(qr.entityIds);
|
|
18150
18310
|
const filteredNodes = nodes.filter(Boolean);
|
|
18311
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
18312
|
+
throw new DvinaCacheMissError(queryKey);
|
|
18313
|
+
}
|
|
18151
18314
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "insights", filteredNodes, includes) : filteredNodes;
|
|
18152
18315
|
return { insights: { __typename: "InsightConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
18153
18316
|
},
|
|
@@ -18191,7 +18354,7 @@ var InsightsQuery = class _InsightsQuery extends Request {
|
|
|
18191
18354
|
fieldArguments: info.fieldArguments,
|
|
18192
18355
|
syncMetadata: {
|
|
18193
18356
|
entityType: "chats",
|
|
18194
|
-
requiredFields: ["
|
|
18357
|
+
requiredFields: ["id", "name", "piiSanitizationEnabled", "createdAt", "updatedAt"]
|
|
18195
18358
|
},
|
|
18196
18359
|
children,
|
|
18197
18360
|
modelFactory: (req, data, se, bu) => new Chat(req, data, se, bu)
|
|
@@ -18211,7 +18374,7 @@ var InsightsQuery = class _InsightsQuery extends Request {
|
|
|
18211
18374
|
fieldArguments: info.fieldArguments,
|
|
18212
18375
|
syncMetadata: {
|
|
18213
18376
|
entityType: "reportMembers",
|
|
18214
|
-
requiredFields: ["
|
|
18377
|
+
requiredFields: ["reportId", "insightId", "order", "size", "presentation"]
|
|
18215
18378
|
},
|
|
18216
18379
|
modelFactory: (req, data, se, bu) => new ReportMember(req, data, se, bu)
|
|
18217
18380
|
});
|
|
@@ -18236,7 +18399,7 @@ var InsightsQuery = class _InsightsQuery extends Request {
|
|
|
18236
18399
|
fieldArguments: info.fieldArguments,
|
|
18237
18400
|
syncMetadata: {
|
|
18238
18401
|
entityType: "reports",
|
|
18239
|
-
requiredFields: ["
|
|
18402
|
+
requiredFields: ["id", "name", "createdAt", "updatedAt"]
|
|
18240
18403
|
},
|
|
18241
18404
|
children,
|
|
18242
18405
|
modelFactory: (req, data, se, bu) => new Report(req, data, se, bu),
|
|
@@ -18257,7 +18420,7 @@ var InsightsQuery = class _InsightsQuery extends Request {
|
|
|
18257
18420
|
fieldArguments: info.fieldArguments,
|
|
18258
18421
|
syncMetadata: {
|
|
18259
18422
|
entityType: "files",
|
|
18260
|
-
requiredFields: ["
|
|
18423
|
+
requiredFields: ["id", "createdAt", "updatedAt", "path"]
|
|
18261
18424
|
},
|
|
18262
18425
|
modelFactory: (req, data, se, bu) => new File(req, data, se, bu)
|
|
18263
18426
|
});
|
|
@@ -18530,9 +18693,16 @@ var IntegrationCatalogsQuery = class _IntegrationCatalogsQuery extends Request {
|
|
|
18530
18693
|
mergedVars,
|
|
18531
18694
|
"integrationCatalogs",
|
|
18532
18695
|
async (db) => {
|
|
18533
|
-
const
|
|
18534
|
-
const
|
|
18696
|
+
const queryKey = buildQueryKey("integrationCatalogs", mergedVars, queryDoc);
|
|
18697
|
+
const qr = await db._queryResults.get(queryKey);
|
|
18698
|
+
if (!qr) {
|
|
18699
|
+
throw new DvinaCacheMissError(queryKey);
|
|
18700
|
+
}
|
|
18701
|
+
const nodes = await db.table("integrationCatalogs").bulkGet(qr.entityIds);
|
|
18535
18702
|
const filteredNodes = nodes.filter(Boolean);
|
|
18703
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
18704
|
+
throw new DvinaCacheMissError(queryKey);
|
|
18705
|
+
}
|
|
18536
18706
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "integrationCatalogs", filteredNodes, includes) : filteredNodes;
|
|
18537
18707
|
return { integrationCatalogs: { __typename: "IntegrationCatalogConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
18538
18708
|
},
|
|
@@ -18609,9 +18779,16 @@ var IntegrationsQuery = class _IntegrationsQuery extends Request {
|
|
|
18609
18779
|
mergedVars,
|
|
18610
18780
|
"integrations",
|
|
18611
18781
|
async (db) => {
|
|
18612
|
-
const
|
|
18613
|
-
const
|
|
18782
|
+
const queryKey = buildQueryKey("integrations", mergedVars, queryDoc);
|
|
18783
|
+
const qr = await db._queryResults.get(queryKey);
|
|
18784
|
+
if (!qr) {
|
|
18785
|
+
throw new DvinaCacheMissError(queryKey);
|
|
18786
|
+
}
|
|
18787
|
+
const nodes = await db.table("integrations").bulkGet(qr.entityIds);
|
|
18614
18788
|
const filteredNodes = nodes.filter(Boolean);
|
|
18789
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
18790
|
+
throw new DvinaCacheMissError(queryKey);
|
|
18791
|
+
}
|
|
18615
18792
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "integrations", filteredNodes, includes) : filteredNodes;
|
|
18616
18793
|
return { integrations: { __typename: "IntegrationConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
18617
18794
|
},
|
|
@@ -18688,9 +18865,16 @@ var InterpretationsQuery = class _InterpretationsQuery extends Request {
|
|
|
18688
18865
|
mergedVars,
|
|
18689
18866
|
"interpretations",
|
|
18690
18867
|
async (db) => {
|
|
18691
|
-
const
|
|
18692
|
-
const
|
|
18868
|
+
const queryKey = buildQueryKey("interpretations", mergedVars, queryDoc);
|
|
18869
|
+
const qr = await db._queryResults.get(queryKey);
|
|
18870
|
+
if (!qr) {
|
|
18871
|
+
throw new DvinaCacheMissError(queryKey);
|
|
18872
|
+
}
|
|
18873
|
+
const nodes = await db.table("interpretations").bulkGet(qr.entityIds);
|
|
18693
18874
|
const filteredNodes = nodes.filter(Boolean);
|
|
18875
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
18876
|
+
throw new DvinaCacheMissError(queryKey);
|
|
18877
|
+
}
|
|
18694
18878
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "interpretations", filteredNodes, includes) : filteredNodes;
|
|
18695
18879
|
return { interpretations: { __typename: "InterpretationConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
18696
18880
|
},
|
|
@@ -18798,9 +18982,16 @@ var NotificationsQuery = class _NotificationsQuery extends Request {
|
|
|
18798
18982
|
mergedVars,
|
|
18799
18983
|
"notifications",
|
|
18800
18984
|
async (db) => {
|
|
18801
|
-
const
|
|
18802
|
-
const
|
|
18985
|
+
const queryKey = buildQueryKey("notifications", mergedVars, queryDoc);
|
|
18986
|
+
const qr = await db._queryResults.get(queryKey);
|
|
18987
|
+
if (!qr) {
|
|
18988
|
+
throw new DvinaCacheMissError(queryKey);
|
|
18989
|
+
}
|
|
18990
|
+
const nodes = await db.table("notifications").bulkGet(qr.entityIds);
|
|
18803
18991
|
const filteredNodes = nodes.filter(Boolean);
|
|
18992
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
18993
|
+
throw new DvinaCacheMissError(queryKey);
|
|
18994
|
+
}
|
|
18804
18995
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "notifications", filteredNodes, includes) : filteredNodes;
|
|
18805
18996
|
return { notifications: { __typename: "NotificationConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
18806
18997
|
},
|
|
@@ -19011,7 +19202,7 @@ var PulseEventQuery = class extends Request {
|
|
|
19011
19202
|
fieldArguments: info.fieldArguments,
|
|
19012
19203
|
syncMetadata: {
|
|
19013
19204
|
entityType: "integrations",
|
|
19014
|
-
requiredFields: ["
|
|
19205
|
+
requiredFields: ["id", "providerKey", "status", "unreadPulseCount", "createdAt", "updatedAt"]
|
|
19015
19206
|
},
|
|
19016
19207
|
children,
|
|
19017
19208
|
modelFactory: (req, data, se, bu) => new Integration(req, data, se, bu)
|
|
@@ -19111,9 +19302,16 @@ var PulseEventsQuery = class _PulseEventsQuery extends Request {
|
|
|
19111
19302
|
mergedVars,
|
|
19112
19303
|
"pulseEvents",
|
|
19113
19304
|
async (db) => {
|
|
19114
|
-
const
|
|
19115
|
-
const
|
|
19305
|
+
const queryKey = buildQueryKey("pulseEvents", mergedVars, queryDoc);
|
|
19306
|
+
const qr = await db._queryResults.get(queryKey);
|
|
19307
|
+
if (!qr) {
|
|
19308
|
+
throw new DvinaCacheMissError(queryKey);
|
|
19309
|
+
}
|
|
19310
|
+
const nodes = await db.table("pulseEvents").bulkGet(qr.entityIds);
|
|
19116
19311
|
const filteredNodes = nodes.filter(Boolean);
|
|
19312
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
19313
|
+
throw new DvinaCacheMissError(queryKey);
|
|
19314
|
+
}
|
|
19117
19315
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "pulseEvents", filteredNodes, includes) : filteredNodes;
|
|
19118
19316
|
return { pulseEvents: { __typename: "PulseEventConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
19119
19317
|
},
|
|
@@ -19157,7 +19355,7 @@ var PulseEventsQuery = class _PulseEventsQuery extends Request {
|
|
|
19157
19355
|
fieldArguments: info.fieldArguments,
|
|
19158
19356
|
syncMetadata: {
|
|
19159
19357
|
entityType: "integrations",
|
|
19160
|
-
requiredFields: ["
|
|
19358
|
+
requiredFields: ["id", "providerKey", "status", "unreadPulseCount", "createdAt", "updatedAt"]
|
|
19161
19359
|
},
|
|
19162
19360
|
children,
|
|
19163
19361
|
modelFactory: (req, data, se, bu) => new Integration(req, data, se, bu)
|
|
@@ -19266,7 +19464,7 @@ var ReportQuery = class extends Request {
|
|
|
19266
19464
|
fieldArguments: info.fieldArguments,
|
|
19267
19465
|
syncMetadata: {
|
|
19268
19466
|
entityType: "insights",
|
|
19269
|
-
requiredFields: ["
|
|
19467
|
+
requiredFields: ["id", "name", "query", "presentation", "createdAt", "updatedAt"]
|
|
19270
19468
|
},
|
|
19271
19469
|
children,
|
|
19272
19470
|
modelFactory: (req, data, se, bu) => new Insight(req, data, se, bu),
|
|
@@ -19287,7 +19485,7 @@ var ReportQuery = class extends Request {
|
|
|
19287
19485
|
fieldArguments: info.fieldArguments,
|
|
19288
19486
|
syncMetadata: {
|
|
19289
19487
|
entityType: "reportMembers",
|
|
19290
|
-
requiredFields: ["
|
|
19488
|
+
requiredFields: ["reportId", "insightId", "order", "size", "presentation"]
|
|
19291
19489
|
},
|
|
19292
19490
|
modelFactory: (req, data, se, bu) => new ReportMember(req, data, se, bu)
|
|
19293
19491
|
});
|
|
@@ -19313,9 +19511,17 @@ var Report_InsightsQuery = class _Report_InsightsQuery extends Request {
|
|
|
19313
19511
|
variables,
|
|
19314
19512
|
"report",
|
|
19315
19513
|
async (db) => {
|
|
19316
|
-
const
|
|
19317
|
-
const
|
|
19318
|
-
|
|
19514
|
+
const queryKey = buildQueryKey("report", variables, Report_InsightsDocument);
|
|
19515
|
+
const qr = await db._queryResults.get(queryKey);
|
|
19516
|
+
if (!qr) {
|
|
19517
|
+
throw new DvinaCacheMissError(queryKey);
|
|
19518
|
+
}
|
|
19519
|
+
const nodes = await db.table("insights").bulkGet(qr.entityIds);
|
|
19520
|
+
const filteredNodes = nodes.filter(Boolean);
|
|
19521
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
19522
|
+
throw new DvinaCacheMissError(queryKey);
|
|
19523
|
+
}
|
|
19524
|
+
return { report: { insights: { __typename: "InsightConnection", nodes: filteredNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
|
|
19319
19525
|
}
|
|
19320
19526
|
);
|
|
19321
19527
|
return new MappedDvinaQueryRef(raw, (response) => {
|
|
@@ -19369,9 +19575,16 @@ var ReportsQuery = class _ReportsQuery extends Request {
|
|
|
19369
19575
|
mergedVars,
|
|
19370
19576
|
"reports",
|
|
19371
19577
|
async (db) => {
|
|
19372
|
-
const
|
|
19373
|
-
const
|
|
19578
|
+
const queryKey = buildQueryKey("reports", mergedVars, queryDoc);
|
|
19579
|
+
const qr = await db._queryResults.get(queryKey);
|
|
19580
|
+
if (!qr) {
|
|
19581
|
+
throw new DvinaCacheMissError(queryKey);
|
|
19582
|
+
}
|
|
19583
|
+
const nodes = await db.table("reports").bulkGet(qr.entityIds);
|
|
19374
19584
|
const filteredNodes = nodes.filter(Boolean);
|
|
19585
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
19586
|
+
throw new DvinaCacheMissError(queryKey);
|
|
19587
|
+
}
|
|
19375
19588
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "reports", filteredNodes, includes) : filteredNodes;
|
|
19376
19589
|
return { reports: { __typename: "ReportConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
19377
19590
|
},
|
|
@@ -19415,7 +19628,7 @@ var ReportsQuery = class _ReportsQuery extends Request {
|
|
|
19415
19628
|
fieldArguments: info.fieldArguments,
|
|
19416
19629
|
syncMetadata: {
|
|
19417
19630
|
entityType: "insights",
|
|
19418
|
-
requiredFields: ["
|
|
19631
|
+
requiredFields: ["id", "name", "query", "presentation", "createdAt", "updatedAt"]
|
|
19419
19632
|
},
|
|
19420
19633
|
children,
|
|
19421
19634
|
modelFactory: (req, data, se, bu) => new Insight(req, data, se, bu),
|
|
@@ -19436,7 +19649,7 @@ var ReportsQuery = class _ReportsQuery extends Request {
|
|
|
19436
19649
|
fieldArguments: info.fieldArguments,
|
|
19437
19650
|
syncMetadata: {
|
|
19438
19651
|
entityType: "reportMembers",
|
|
19439
|
-
requiredFields: ["
|
|
19652
|
+
requiredFields: ["reportId", "insightId", "order", "size", "presentation"]
|
|
19440
19653
|
},
|
|
19441
19654
|
modelFactory: (req, data, se, bu) => new ReportMember(req, data, se, bu)
|
|
19442
19655
|
});
|
|
@@ -19511,7 +19724,7 @@ var TableQuery = class extends Request {
|
|
|
19511
19724
|
fieldArguments: info.fieldArguments,
|
|
19512
19725
|
syncMetadata: {
|
|
19513
19726
|
entityType: "databases",
|
|
19514
|
-
requiredFields: ["
|
|
19727
|
+
requiredFields: ["id", "name", "engineKey", "isReady", "createdAt", "updatedAt"]
|
|
19515
19728
|
},
|
|
19516
19729
|
children,
|
|
19517
19730
|
modelFactory: (req, data, se, bu) => new Database(req, data, se, bu)
|
|
@@ -19537,7 +19750,7 @@ var TableQuery = class extends Request {
|
|
|
19537
19750
|
fieldArguments: info.fieldArguments,
|
|
19538
19751
|
syncMetadata: {
|
|
19539
19752
|
entityType: "documents",
|
|
19540
|
-
requiredFields: ["
|
|
19753
|
+
requiredFields: ["id", "path", "name", "fileId", "formatKey", "isReady", "isStructured", "isDeepAnalyzed", "createdAt", "updatedAt"]
|
|
19541
19754
|
},
|
|
19542
19755
|
children,
|
|
19543
19756
|
modelFactory: (req, data, se, bu) => new Document(req, data, se, bu)
|
|
@@ -19557,7 +19770,7 @@ var TableQuery = class extends Request {
|
|
|
19557
19770
|
fieldArguments: info.fieldArguments,
|
|
19558
19771
|
syncMetadata: {
|
|
19559
19772
|
entityType: "relations",
|
|
19560
|
-
requiredFields: ["
|
|
19773
|
+
requiredFields: ["id", "fromTableId", "fromTableColumn", "toTableId", "toTableColumn", "type", "createdAt", "updatedAt"]
|
|
19561
19774
|
},
|
|
19562
19775
|
modelFactory: (req, data, se, bu) => new Relation(req, data, se, bu)
|
|
19563
19776
|
});
|
|
@@ -19576,7 +19789,7 @@ var TableQuery = class extends Request {
|
|
|
19576
19789
|
fieldArguments: info.fieldArguments,
|
|
19577
19790
|
syncMetadata: {
|
|
19578
19791
|
entityType: "relations",
|
|
19579
|
-
requiredFields: ["
|
|
19792
|
+
requiredFields: ["id", "fromTableId", "fromTableColumn", "toTableId", "toTableColumn", "type", "createdAt", "updatedAt"]
|
|
19580
19793
|
},
|
|
19581
19794
|
modelFactory: (req, data, se, bu) => new Relation(req, data, se, bu)
|
|
19582
19795
|
});
|
|
@@ -19804,9 +20017,16 @@ var TablesQuery = class _TablesQuery extends Request {
|
|
|
19804
20017
|
mergedVars,
|
|
19805
20018
|
"tables",
|
|
19806
20019
|
async (db) => {
|
|
19807
|
-
const
|
|
19808
|
-
const
|
|
20020
|
+
const queryKey = buildQueryKey("tables", mergedVars, queryDoc);
|
|
20021
|
+
const qr = await db._queryResults.get(queryKey);
|
|
20022
|
+
if (!qr) {
|
|
20023
|
+
throw new DvinaCacheMissError(queryKey);
|
|
20024
|
+
}
|
|
20025
|
+
const nodes = await db.table("tables").bulkGet(qr.entityIds);
|
|
19809
20026
|
const filteredNodes = nodes.filter(Boolean);
|
|
20027
|
+
if (filteredNodes.length !== qr.entityIds.length) {
|
|
20028
|
+
throw new DvinaCacheMissError(queryKey);
|
|
20029
|
+
}
|
|
19810
20030
|
const enrichedNodes = includes.length > 0 ? await reconstructConnectionNodes(db, "tables", filteredNodes, includes) : filteredNodes;
|
|
19811
20031
|
return { tables: { __typename: "TableConnection", nodes: enrichedNodes, pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } };
|
|
19812
20032
|
},
|
|
@@ -19850,7 +20070,7 @@ var TablesQuery = class _TablesQuery extends Request {
|
|
|
19850
20070
|
fieldArguments: info.fieldArguments,
|
|
19851
20071
|
syncMetadata: {
|
|
19852
20072
|
entityType: "databases",
|
|
19853
|
-
requiredFields: ["
|
|
20073
|
+
requiredFields: ["id", "name", "engineKey", "isReady", "createdAt", "updatedAt"]
|
|
19854
20074
|
},
|
|
19855
20075
|
children,
|
|
19856
20076
|
modelFactory: (req, data, se, bu) => new Database(req, data, se, bu)
|
|
@@ -19876,7 +20096,7 @@ var TablesQuery = class _TablesQuery extends Request {
|
|
|
19876
20096
|
fieldArguments: info.fieldArguments,
|
|
19877
20097
|
syncMetadata: {
|
|
19878
20098
|
entityType: "documents",
|
|
19879
|
-
requiredFields: ["
|
|
20099
|
+
requiredFields: ["id", "path", "name", "fileId", "formatKey", "isReady", "isStructured", "isDeepAnalyzed", "createdAt", "updatedAt"]
|
|
19880
20100
|
},
|
|
19881
20101
|
children,
|
|
19882
20102
|
modelFactory: (req, data, se, bu) => new Document(req, data, se, bu)
|
|
@@ -19896,7 +20116,7 @@ var TablesQuery = class _TablesQuery extends Request {
|
|
|
19896
20116
|
fieldArguments: info.fieldArguments,
|
|
19897
20117
|
syncMetadata: {
|
|
19898
20118
|
entityType: "relations",
|
|
19899
|
-
requiredFields: ["
|
|
20119
|
+
requiredFields: ["id", "fromTableId", "fromTableColumn", "toTableId", "toTableColumn", "type", "createdAt", "updatedAt"]
|
|
19900
20120
|
},
|
|
19901
20121
|
modelFactory: (req, data, se, bu) => new Relation(req, data, se, bu)
|
|
19902
20122
|
});
|
|
@@ -19915,7 +20135,7 @@ var TablesQuery = class _TablesQuery extends Request {
|
|
|
19915
20135
|
fieldArguments: info.fieldArguments,
|
|
19916
20136
|
syncMetadata: {
|
|
19917
20137
|
entityType: "relations",
|
|
19918
|
-
requiredFields: ["
|
|
20138
|
+
requiredFields: ["id", "fromTableId", "fromTableColumn", "toTableId", "toTableColumn", "type", "createdAt", "updatedAt"]
|
|
19919
20139
|
},
|
|
19920
20140
|
modelFactory: (req, data, se, bu) => new Relation(req, data, se, bu)
|
|
19921
20141
|
});
|
|
@@ -20299,9 +20519,13 @@ var DvinaSdk = class extends Request {
|
|
|
20299
20519
|
reanalyzeDocument(variables) {
|
|
20300
20520
|
return new ReanalyzeDocumentMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
|
|
20301
20521
|
}
|
|
20302
|
-
/** Mutation:
|
|
20303
|
-
|
|
20304
|
-
return new
|
|
20522
|
+
/** Mutation: refineAgentInstruction (scalar) */
|
|
20523
|
+
refineAgentInstruction(variables) {
|
|
20524
|
+
return new RefineAgentInstructionMutation(this._request, this._syncEngine).fetch(variables);
|
|
20525
|
+
}
|
|
20526
|
+
/** Mutation: refineSkillInstruction (scalar) */
|
|
20527
|
+
refineSkillInstruction(variables) {
|
|
20528
|
+
return new RefineSkillInstructionMutation(this._request, this._syncEngine).fetch(variables);
|
|
20305
20529
|
}
|
|
20306
20530
|
/** Mutation: refreshDatabaseSchema (scalar) */
|
|
20307
20531
|
refreshDatabaseSchema(variables) {
|
|
@@ -20718,6 +20942,6 @@ var DvinaSdk = class extends Request {
|
|
|
20718
20942
|
}
|
|
20719
20943
|
};
|
|
20720
20944
|
|
|
20721
|
-
export { AbortChatMutation, Action, AddInsightToReportMutation, Agent, AgentConnection, AgentQuery, AgentSubBuilder, Agent_ChatsQuery, AgentsQuery, Artifact, ArtifactConnection, ArtifactQuery, ArtifactSubBuilder, Artifact_ChatQuery, Artifact_Chat_InsightQuery, Artifact_FileQuery, Artifact_MessageQuery, Artifact_Message_ChatQuery, Artifact_Message_ContentsQuery, Artifact_Message_FeedbackQuery, ArtifactsQuery, AudioEventOutput, CancelOauthFlowMutation, CancelWorkspaceDeletionMutation, Candidate, CandidateEvidence, Chat, ChatConnection, ChatImportExecuteOutput, ChatImportPreviewOutput, ChatMessage, ChatMessageConnection, ChatMessageQuery, ChatMessageSubBuilder, ChatMessage_ArtifactsQuery, ChatMessage_ChatQuery, ChatMessage_Chat_InsightQuery, ChatMessage_ContentsQuery, ChatMessage_FeedbackQuery, ChatMessagesQuery, ChatQuery, ChatSubBuilder, ChatTitleEventOutput, Chat_AgentsQuery, Chat_ArtifactsQuery, Chat_InsightQuery, Chat_Insight_ReportMembersQuery, Chat_Insight_ThumbnailFileQuery, Chat_MessagesQuery, ChatsQuery, ConnectIntegrationMutation, ConsumePulseEventsMutation, ContentBlock, ContentMask, ContinueImportedChatMutation, ContinueInterpretationMutation, CreateAgentMutation, CreateChatMutation, CreateDatabaseMutation, CreateDocumentMutation, CreateFeedbackMutation, CreateFolderMutation, CreateInsightMutation, CreateIntegrationMutation, CreateIntegrationOutput, CreateReportMutation, CreateTableMutation, CreateUserSkillFileMutation, CreateUserSkillFolderMutation, CubeModel, DB_ENTITY_SCHEMA, Database, DatabaseCatalog, DatabaseCatalogConnection, DatabaseCatalogQuery, DatabaseCatalogSubBuilder, DatabaseCatalog_EngineQuery, DatabaseCatalogsQuery, DatabaseConnection, DatabaseEngine, DatabaseQuery, DatabaseSchemaQuery, DatabaseSubBuilder, Database_EngineQuery, Database_Engine_CatalogQuery, Database_TablesQuery, DatabasesQuery, DeepAnalysisUsage, DeferredDvinaQueryRef, DeleteAgentMutation, DeleteArtifactMutation, DeleteChatMutation, DeleteDatabaseMutation, DeleteDocumentMutation, DeleteFolderMutation, DeleteInsightMutation, DeleteInsightsMutation, DeleteIntegrationMutation, DeleteReportMutation, DeleteTableMutation, DeleteUserSkillFileMutation, DeleteUserSkillFolderMutation, DevAccessTokenOutput, DexieLiveQueryRef, DisconnectIntegrationMutation, DismissPulseEventMutation, Document, DocumentCatalog, DocumentCatalogConnection, DocumentCatalogQuery, DocumentCatalogSubBuilder, DocumentCatalog_FormatQuery, DocumentCatalogsQuery, DocumentConnection, DocumentContent, DocumentFormat, DocumentQuery, DocumentSubBuilder, Document_ContentsQuery, Document_FileQuery, Document_FormatQuery, Document_Format_CatalogQuery, Document_TablesQuery, DocumentsQuery, DvinaDatabase, DvinaModel, DvinaSdk, Evidence, ExecuteChatImportMutation, ExportQuery, ExportWithInsightIdQuery, FailedSyncEventIngestion, FeedArtifactData, FeedConnection, FeedDatabaseData, FeedDocumentData, FeedInsightData, FeedIntegrationData, FeedItem, FeedItemGenerated, FeedItemQuery, FeedItemSubBuilder, FeedItem_ActionQuery, FeedItem_DataQuery, FeedItemsQuery, FeedLiveContextData, FeedPulseData, FeedSendMessageAction, Feedback, File, FileMetaQuery, FileModel, FileQuery, FileUrlsQuery, FinalContentEventOutput, FindFitTierQuery, Folder, FolderConnection, FolderQuery, FoldersQuery, GenerateUploadUriMutation, GetCapabilityQuery, GetDevAccessTokenQuery, GetLimitQuery, GetRemainingQuery, GetTokenUsageByModelQuery, GetTokenUsageHistoryQuery, GetTokenUsageStatusQuery, GetTokenUsageStatus_WindowsQuery, GetTokenUsageStatus_Windows_DayQuery, GetTokenUsageStatus_Windows_FiveHourQuery, GetTokenUsageStatus_Windows_MonthQuery, GetTokenUsageStatus_Windows_WeekQuery, GetUsageQuery, ImportedChatSummaryOutput, InferenceRequestAudit, Insight, InsightConnection, InsightQuery, InsightSubBuilder, Insight_ChatQuery, Insight_ReportMembersQuery, Insight_ReportsQuery, Insight_ThumbnailFileQuery, InsightsQuery, Integration, IntegrationCatalog, IntegrationCatalogConnection, IntegrationCatalogQuery, IntegrationCatalogSubBuilder, IntegrationCatalogToolsQuery, IntegrationCatalog_ProviderQuery, IntegrationCatalogsQuery, IntegrationConnection, IntegrationProvider, IntegrationQuery, IntegrationSubBuilder, Integration_ProviderQuery, Integration_Provider_CatalogQuery, IntegrationsQuery, Interpretation, InterpretationConnection, InterpretationsQuery, Invocation, LiveContext, 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,
|
|
20722
|
-
//# sourceMappingURL=chunk-
|
|
20723
|
-
//# sourceMappingURL=chunk-
|
|
20945
|
+
export { AbortChatMutation, Action, AddInsightToReportMutation, Agent, AgentConnection, AgentQuery, AgentSubBuilder, Agent_ChatsQuery, AgentsQuery, Artifact, ArtifactConnection, ArtifactQuery, ArtifactSubBuilder, Artifact_ChatQuery, Artifact_Chat_InsightQuery, Artifact_FileQuery, Artifact_MessageQuery, Artifact_Message_ChatQuery, Artifact_Message_ContentsQuery, Artifact_Message_FeedbackQuery, ArtifactsQuery, AudioEventOutput, CancelOauthFlowMutation, CancelWorkspaceDeletionMutation, Candidate, CandidateEvidence, Chat, ChatConnection, ChatImportExecuteOutput, ChatImportPreviewOutput, ChatMessage, ChatMessageConnection, ChatMessageQuery, ChatMessageSubBuilder, ChatMessage_ArtifactsQuery, ChatMessage_ChatQuery, ChatMessage_Chat_InsightQuery, ChatMessage_ContentsQuery, ChatMessage_FeedbackQuery, ChatMessagesQuery, ChatQuery, ChatSubBuilder, ChatTitleEventOutput, Chat_AgentsQuery, Chat_ArtifactsQuery, Chat_InsightQuery, Chat_Insight_ReportMembersQuery, Chat_Insight_ThumbnailFileQuery, Chat_MessagesQuery, ChatsQuery, ConnectIntegrationMutation, ConsumePulseEventsMutation, ContentBlock, ContentMask, ContinueImportedChatMutation, ContinueInterpretationMutation, CreateAgentMutation, CreateChatMutation, CreateDatabaseMutation, CreateDocumentMutation, CreateFeedbackMutation, CreateFolderMutation, CreateInsightMutation, CreateIntegrationMutation, CreateIntegrationOutput, CreateReportMutation, CreateTableMutation, CreateUserSkillFileMutation, CreateUserSkillFolderMutation, CubeModel, DB_ENTITY_SCHEMA, Database, DatabaseCatalog, DatabaseCatalogConnection, DatabaseCatalogQuery, DatabaseCatalogSubBuilder, DatabaseCatalog_EngineQuery, DatabaseCatalogsQuery, DatabaseConnection, DatabaseEngine, DatabaseQuery, DatabaseSchemaQuery, DatabaseSubBuilder, Database_EngineQuery, Database_Engine_CatalogQuery, Database_TablesQuery, DatabasesQuery, DeepAnalysisUsage, DeferredDvinaQueryRef, DeleteAgentMutation, DeleteArtifactMutation, DeleteChatMutation, DeleteDatabaseMutation, DeleteDocumentMutation, DeleteFolderMutation, DeleteInsightMutation, DeleteInsightsMutation, DeleteIntegrationMutation, DeleteReportMutation, DeleteTableMutation, DeleteUserSkillFileMutation, DeleteUserSkillFolderMutation, DevAccessTokenOutput, DexieLiveQueryRef, DisconnectIntegrationMutation, DismissPulseEventMutation, Document, DocumentCatalog, DocumentCatalogConnection, DocumentCatalogQuery, DocumentCatalogSubBuilder, DocumentCatalog_FormatQuery, DocumentCatalogsQuery, DocumentConnection, DocumentContent, DocumentFormat, DocumentQuery, DocumentSubBuilder, Document_ContentsQuery, Document_FileQuery, Document_FormatQuery, Document_Format_CatalogQuery, Document_TablesQuery, DocumentsQuery, DvinaDatabase, DvinaModel, DvinaSdk, Evidence, ExecuteChatImportMutation, ExportQuery, ExportWithInsightIdQuery, FailedSyncEventIngestion, FeedArtifactData, FeedConnection, FeedDatabaseData, FeedDocumentData, FeedInsightData, FeedIntegrationData, FeedItem, FeedItemGenerated, FeedItemQuery, FeedItemSubBuilder, FeedItem_ActionQuery, FeedItem_DataQuery, FeedItemsQuery, FeedLiveContextData, FeedPulseData, FeedSendMessageAction, Feedback, File, FileMetaQuery, FileModel, FileQuery, FileUrlsQuery, FinalContentEventOutput, FindFitTierQuery, Folder, FolderConnection, FolderQuery, FoldersQuery, GenerateUploadUriMutation, GetCapabilityQuery, GetDevAccessTokenQuery, GetLimitQuery, GetRemainingQuery, GetTokenUsageByModelQuery, GetTokenUsageHistoryQuery, GetTokenUsageStatusQuery, GetTokenUsageStatus_WindowsQuery, GetTokenUsageStatus_Windows_DayQuery, GetTokenUsageStatus_Windows_FiveHourQuery, GetTokenUsageStatus_Windows_MonthQuery, GetTokenUsageStatus_Windows_WeekQuery, GetUsageQuery, ImportedChatSummaryOutput, InferenceRequestAudit, Insight, InsightConnection, InsightQuery, InsightSubBuilder, Insight_ChatQuery, Insight_ReportMembersQuery, Insight_ReportsQuery, Insight_ThumbnailFileQuery, InsightsQuery, Integration, IntegrationCatalog, IntegrationCatalogConnection, IntegrationCatalogQuery, IntegrationCatalogSubBuilder, IntegrationCatalogToolsQuery, IntegrationCatalog_ProviderQuery, IntegrationCatalogsQuery, IntegrationConnection, IntegrationProvider, IntegrationQuery, IntegrationSubBuilder, Integration_ProviderQuery, Integration_Provider_CatalogQuery, IntegrationsQuery, Interpretation, InterpretationConnection, InterpretationsQuery, Invocation, LiveContext, 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, RefineAgentInstructionMutation, RefineSkillInstructionMutation, RefreshDatabaseSchemaMutation, RefreshInsightMutation, ReinterpretSourceMutation, ReinterpretSourcesOfuserMutation, Relation, RelocateInsightMutation, RemoveInsightFromReportMutation, Report, ReportConnection, ReportMember, ReportQuery, ReportSubBuilder, Report_InsightsQuery, Report_LayoutQuery, ReportsQuery, ResetWorkspaceMutation, ResolvePulseEventMutation, ResolvedFileUrl, ScheduleWorkspaceDeletionMutation, SendMessageMutation, SetDatabasePrimaryKeyMutation, StreamEventSchemaAnchor, StreamMessageContentOutput, StreamMessageOutput, SyncEngine, SyncEvent, SyncEventCursor, TABLE_TO_TYPENAME, TYPENAME_TO_TABLE, Table, TableConnection, TableQuery, TableSubBuilder, Table_DatabaseQuery, Table_Database_EngineQuery, Table_DocumentQuery, Table_Document_ContentsQuery, Table_Document_FileQuery, Table_Document_FormatQuery, Table_FromRelationsQuery, Table_ToRelationsQuery, TablesQuery, TextBlockEventOutput, TextDeltaEventOutput, TokenUsage, TokenUsageUpdatesSubscription, ToolInputDeltaEventOutput, ToolResultArtifactOutput, ToolResultEventOutput, ToolStartEventOutput, UpdateAgentMutation, UpdateArtifactNameMutation, UpdateChatMutation, UpdateDatabaseMutation, UpdateDocumentMutation, UpdateFolderMutation, UpdateInsightInReportMutation, UpdateInsightMutation, UpdateInsightThumbnailMutation, UpdateInterpMutation, UpdateLiveContextMutation, UpdatePulseTriggerMutation, UpdateReportMutation, UpdateTableMutation, UpdateUserSkillFileMutation, UpdateUserSkillFolderMutation, UsageMetaOutput, UsageStatus, UsageWindowsStatusType, UserSkillFile, UserSkillFileModel, UserSkillFileQuery, UserSkillFilesQuery, UserSkillFolder, UserSkillFolderModel, UserSkillFolderQuery, UserSkillFoldersQuery, WidgetBlockCompleteEventOutput, WidgetBlockErrorEventOutput, WidgetBlockStartEventOutput, WidgetHtmlDeltaEventOutput, WindowDetailType, WorkspaceDeleteSchedule, WorkspaceDeletionScheduleQuery, closeDatabase, createChatStreamClient, createDvinaClient, createLazySyncEngine, createSseTransport, createWsTransport, deleteDatabase, getOrCreateDatabase, reconstructConnectionNodes, reconstructEntity, uploadFile };
|
|
20946
|
+
//# sourceMappingURL=chunk-SCU64JSH.js.map
|
|
20947
|
+
//# sourceMappingURL=chunk-SCU64JSH.js.map
|