@dvina/sdk 4.0.106 → 4.0.121

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.
@@ -4,7 +4,7 @@ var chunk342BFYZZ_cjs = require('./chunk-342BFYZZ.cjs');
4
4
  var chunkUELAE75E_cjs = require('./chunk-UELAE75E.cjs');
5
5
  var chunkBL3GFOZR_cjs = require('./chunk-BL3GFOZR.cjs');
6
6
  var chunkKV5SP7RP_cjs = require('./chunk-KV5SP7RP.cjs');
7
- var chunk5IUEWNZ6_cjs = require('./chunk-5IUEWNZ6.cjs');
7
+ var chunkGL6CUR7S_cjs = require('./chunk-GL6CUR7S.cjs');
8
8
  var chunkDZUJEN5N_cjs = require('./chunk-DZUJEN5N.cjs');
9
9
 
10
10
  // ../../node_modules/.pnpm/dexie@4.3.0/node_modules/dexie/dist/dexie.js
@@ -8423,6 +8423,8 @@ var QueryExecutor = class {
8423
8423
  *
8424
8424
  * For connection queries, also writes the ordered entity IDs to `_queryResults`
8425
8425
  * so that `watch()` can reconstruct the same ordered list from the store.
8426
+ * Singular entity roots also get a lightweight cache marker so exact-query
8427
+ * `watch()` calls can cold-start from Dexie instead of re-fetching.
8426
8428
  *
8427
8429
  * Concurrent calls with the same operationName + variables are deduplicated:
8428
8430
  * only one HTTP request is made and all callers receive the same result.
@@ -8452,9 +8454,15 @@ var QueryExecutor = class {
8452
8454
  if (rootField) {
8453
8455
  const { entities, connection, nestedConnections } = normalize(data, rootField);
8454
8456
  await this.writeEntities(entities);
8455
- if (connection && operationName) {
8457
+ if (operationName) {
8456
8458
  const queryKey = buildQueryKey(operationName, variables, document2);
8457
- await this._cache.writeQueryResult(queryKey, connection);
8459
+ const rootValue = data[rootField];
8460
+ const rootEntity = getRootEntityCacheEntry(rootValue);
8461
+ if (connection) {
8462
+ await this._cache.writeQueryResult(queryKey, connection);
8463
+ } else if (rootEntity) {
8464
+ await this._cache.writeQueryResult(queryKey, rootEntity);
8465
+ }
8458
8466
  }
8459
8467
  if (nestedConnections) {
8460
8468
  for (const [connKey, connInfo] of nestedConnections) {
@@ -8601,6 +8609,29 @@ var QueryExecutor = class {
8601
8609
  return tables;
8602
8610
  }
8603
8611
  };
8612
+ function getRootEntityCacheEntry(value) {
8613
+ if (!value || typeof value !== "object" || Array.isArray(value)) {
8614
+ return void 0;
8615
+ }
8616
+ const record = value;
8617
+ const typename = record["__typename"];
8618
+ if (typeof typename !== "string") {
8619
+ return void 0;
8620
+ }
8621
+ const entityType = TYPENAME_TO_TABLE[typename];
8622
+ if (!entityType) {
8623
+ return void 0;
8624
+ }
8625
+ const pkField = getPrimaryKeyField(entityType);
8626
+ const entityId = Array.isArray(pkField) ? pkField.every((field) => record[field] !== void 0 && record[field] !== null) ? pkField.map((field) => String(record[field])).join(":") : void 0 : record[pkField] !== void 0 && record[pkField] !== null ? String(record[pkField]) : void 0;
8627
+ if (!entityId) {
8628
+ return void 0;
8629
+ }
8630
+ return {
8631
+ entityIds: [entityId],
8632
+ entityType
8633
+ };
8634
+ }
8604
8635
 
8605
8636
  // src/store/optimistic-manager.ts
8606
8637
  var TEMP_ID_PREFIX = "_temp_";
@@ -9586,7 +9617,7 @@ function createLazySyncEngine(httpTransport, sseUrl, syncPolicyUrl, getToken, ge
9586
9617
  var DEFAULT_UPLOAD_CONTENT_TYPE = "application/octet-stream";
9587
9618
  var AZURE_BLOCK_BLOB_TYPE = "BlockBlob";
9588
9619
  async function uploadFile(request, getToken, file, name, options) {
9589
- const { GenerateUploadUriDocument: GenerateUploadUriDocument2 } = await import('./_generated_documents-BIPMKLWN.cjs');
9620
+ const { GenerateUploadUriDocument: GenerateUploadUriDocument2 } = await import('./_generated_documents-H4JUEJGN.cjs');
9590
9621
  const key = `upload_${Date.now()}`;
9591
9622
  const response = await request(
9592
9623
  GenerateUploadUriDocument2,
@@ -12109,7 +12140,7 @@ var AgentSubBuilder = class {
12109
12140
  _includes = [];
12110
12141
  /** Include chats in the parent query. */
12111
12142
  chats(variables, builder) {
12112
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Agent_ChatsDocument, "chats", ["id"]);
12143
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Agent_ChatsDocument, "chats", ["id"]);
12113
12144
  let children;
12114
12145
  if (builder) {
12115
12146
  const sub = new ChatSubBuilder();
@@ -12118,7 +12149,7 @@ var AgentSubBuilder = class {
12118
12149
  }
12119
12150
  this._includes.push({
12120
12151
  fieldName: "chats",
12121
- fragmentDoc: chunk5IUEWNZ6_cjs.ChatConnectionFragmentDoc,
12152
+ fragmentDoc: chunkGL6CUR7S_cjs.ChatConnectionFragmentDoc,
12122
12153
  variables,
12123
12154
  isConnection: true,
12124
12155
  isList: false,
@@ -12140,7 +12171,7 @@ var ArtifactSubBuilder = class {
12140
12171
  _includes = [];
12141
12172
  /** Include chat in the parent query. */
12142
12173
  chat(variables, builder) {
12143
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Artifact_ChatDocument, "chat", ["id"]);
12174
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Artifact_ChatDocument, "chat", ["id"]);
12144
12175
  let children;
12145
12176
  if (builder) {
12146
12177
  const sub = new ChatSubBuilder();
@@ -12149,7 +12180,7 @@ var ArtifactSubBuilder = class {
12149
12180
  }
12150
12181
  this._includes.push({
12151
12182
  fieldName: "chat",
12152
- fragmentDoc: chunk5IUEWNZ6_cjs.ChatFragmentDoc,
12183
+ fragmentDoc: chunkGL6CUR7S_cjs.ChatFragmentDoc,
12153
12184
  variables,
12154
12185
  isConnection: false,
12155
12186
  isList: false,
@@ -12166,10 +12197,10 @@ var ArtifactSubBuilder = class {
12166
12197
  }
12167
12198
  /** Include file in the parent query. */
12168
12199
  file(variables) {
12169
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Artifact_FileDocument, "file", ["id"]);
12200
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Artifact_FileDocument, "file", ["id"]);
12170
12201
  this._includes.push({
12171
12202
  fieldName: "file",
12172
- fragmentDoc: chunk5IUEWNZ6_cjs.FileFragmentDoc,
12203
+ fragmentDoc: chunkGL6CUR7S_cjs.FileFragmentDoc,
12173
12204
  variables,
12174
12205
  isConnection: false,
12175
12206
  isList: false,
@@ -12185,7 +12216,7 @@ var ArtifactSubBuilder = class {
12185
12216
  }
12186
12217
  /** Include message in the parent query. */
12187
12218
  message(variables, builder) {
12188
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Artifact_MessageDocument, "message", ["id"]);
12219
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Artifact_MessageDocument, "message", ["id"]);
12189
12220
  let children;
12190
12221
  if (builder) {
12191
12222
  const sub = new ChatMessageSubBuilder();
@@ -12194,7 +12225,7 @@ var ArtifactSubBuilder = class {
12194
12225
  }
12195
12226
  this._includes.push({
12196
12227
  fieldName: "message",
12197
- fragmentDoc: chunk5IUEWNZ6_cjs.ChatMessageFragmentDoc,
12228
+ fragmentDoc: chunkGL6CUR7S_cjs.ChatMessageFragmentDoc,
12198
12229
  variables,
12199
12230
  isConnection: false,
12200
12231
  isList: false,
@@ -12215,7 +12246,7 @@ var ChatSubBuilder = class {
12215
12246
  _includes = [];
12216
12247
  /** Include agents in the parent query. */
12217
12248
  agents(variables, builder) {
12218
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Chat_AgentsDocument, "agents", ["id"]);
12249
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Chat_AgentsDocument, "agents", ["id"]);
12219
12250
  let children;
12220
12251
  if (builder) {
12221
12252
  const sub = new AgentSubBuilder();
@@ -12224,7 +12255,7 @@ var ChatSubBuilder = class {
12224
12255
  }
12225
12256
  this._includes.push({
12226
12257
  fieldName: "agents",
12227
- fragmentDoc: chunk5IUEWNZ6_cjs.AgentConnectionFragmentDoc,
12258
+ fragmentDoc: chunkGL6CUR7S_cjs.AgentConnectionFragmentDoc,
12228
12259
  variables,
12229
12260
  isConnection: true,
12230
12261
  isList: false,
@@ -12242,7 +12273,7 @@ var ChatSubBuilder = class {
12242
12273
  }
12243
12274
  /** Include artifacts in the parent query. */
12244
12275
  artifacts(variables, builder) {
12245
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Chat_ArtifactsDocument, "artifacts", ["id"]);
12276
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Chat_ArtifactsDocument, "artifacts", ["id"]);
12246
12277
  let children;
12247
12278
  if (builder) {
12248
12279
  const sub = new ArtifactSubBuilder();
@@ -12251,7 +12282,7 @@ var ChatSubBuilder = class {
12251
12282
  }
12252
12283
  this._includes.push({
12253
12284
  fieldName: "artifacts",
12254
- fragmentDoc: chunk5IUEWNZ6_cjs.ArtifactConnectionFragmentDoc,
12285
+ fragmentDoc: chunkGL6CUR7S_cjs.ArtifactConnectionFragmentDoc,
12255
12286
  variables,
12256
12287
  isConnection: true,
12257
12288
  isList: false,
@@ -12269,7 +12300,7 @@ var ChatSubBuilder = class {
12269
12300
  }
12270
12301
  /** Include insight in the parent query. */
12271
12302
  insight(variables, builder) {
12272
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Chat_InsightDocument, "insight", ["id"]);
12303
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Chat_InsightDocument, "insight", ["id"]);
12273
12304
  let children;
12274
12305
  if (builder) {
12275
12306
  const sub = new InsightSubBuilder();
@@ -12278,7 +12309,7 @@ var ChatSubBuilder = class {
12278
12309
  }
12279
12310
  this._includes.push({
12280
12311
  fieldName: "insight",
12281
- fragmentDoc: chunk5IUEWNZ6_cjs.InsightFragmentDoc,
12312
+ fragmentDoc: chunkGL6CUR7S_cjs.InsightFragmentDoc,
12282
12313
  variables,
12283
12314
  isConnection: false,
12284
12315
  isList: false,
@@ -12295,7 +12326,7 @@ var ChatSubBuilder = class {
12295
12326
  }
12296
12327
  /** Include messages in the parent query. */
12297
12328
  messages(variables, builder) {
12298
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Chat_MessagesDocument, "messages", ["id"]);
12329
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Chat_MessagesDocument, "messages", ["id"]);
12299
12330
  let children;
12300
12331
  if (builder) {
12301
12332
  const sub = new ChatMessageSubBuilder();
@@ -12304,7 +12335,7 @@ var ChatSubBuilder = class {
12304
12335
  }
12305
12336
  this._includes.push({
12306
12337
  fieldName: "messages",
12307
- fragmentDoc: chunk5IUEWNZ6_cjs.ChatMessageConnectionFragmentDoc,
12338
+ fragmentDoc: chunkGL6CUR7S_cjs.ChatMessageConnectionFragmentDoc,
12308
12339
  variables,
12309
12340
  isConnection: true,
12310
12341
  isList: false,
@@ -12326,7 +12357,7 @@ var ChatMessageSubBuilder = class {
12326
12357
  _includes = [];
12327
12358
  /** Include artifacts in the parent query. */
12328
12359
  artifacts(variables, builder) {
12329
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.ChatMessage_ArtifactsDocument, "artifacts", ["id"]);
12360
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.ChatMessage_ArtifactsDocument, "artifacts", ["id"]);
12330
12361
  let children;
12331
12362
  if (builder) {
12332
12363
  const sub = new ArtifactSubBuilder();
@@ -12335,7 +12366,7 @@ var ChatMessageSubBuilder = class {
12335
12366
  }
12336
12367
  this._includes.push({
12337
12368
  fieldName: "artifacts",
12338
- fragmentDoc: chunk5IUEWNZ6_cjs.ArtifactConnectionFragmentDoc,
12369
+ fragmentDoc: chunkGL6CUR7S_cjs.ArtifactConnectionFragmentDoc,
12339
12370
  variables,
12340
12371
  isConnection: true,
12341
12372
  isList: false,
@@ -12353,7 +12384,7 @@ var ChatMessageSubBuilder = class {
12353
12384
  }
12354
12385
  /** Include chat in the parent query. */
12355
12386
  chat(variables, builder) {
12356
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.ChatMessage_ChatDocument, "chat", ["id"]);
12387
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.ChatMessage_ChatDocument, "chat", ["id"]);
12357
12388
  let children;
12358
12389
  if (builder) {
12359
12390
  const sub = new ChatSubBuilder();
@@ -12362,7 +12393,7 @@ var ChatMessageSubBuilder = class {
12362
12393
  }
12363
12394
  this._includes.push({
12364
12395
  fieldName: "chat",
12365
- fragmentDoc: chunk5IUEWNZ6_cjs.ChatFragmentDoc,
12396
+ fragmentDoc: chunkGL6CUR7S_cjs.ChatFragmentDoc,
12366
12397
  variables,
12367
12398
  isConnection: false,
12368
12399
  isList: false,
@@ -12379,10 +12410,10 @@ var ChatMessageSubBuilder = class {
12379
12410
  }
12380
12411
  /** Include contents in the parent query. */
12381
12412
  contents(variables) {
12382
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.ChatMessage_ContentsDocument, "contents", ["id"]);
12413
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.ChatMessage_ContentsDocument, "contents", ["id"]);
12383
12414
  this._includes.push({
12384
12415
  fieldName: "contents",
12385
- fragmentDoc: chunk5IUEWNZ6_cjs.ContentBlockFragmentDoc,
12416
+ fragmentDoc: chunkGL6CUR7S_cjs.ContentBlockFragmentDoc,
12386
12417
  variables,
12387
12418
  isConnection: false,
12388
12419
  isList: true,
@@ -12398,10 +12429,10 @@ var ChatMessageSubBuilder = class {
12398
12429
  }
12399
12430
  /** Include feedback in the parent query. */
12400
12431
  feedback(variables) {
12401
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.ChatMessage_FeedbackDocument, "feedback", ["id"]);
12432
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.ChatMessage_FeedbackDocument, "feedback", ["id"]);
12402
12433
  this._includes.push({
12403
12434
  fieldName: "feedback",
12404
- fragmentDoc: chunk5IUEWNZ6_cjs.FeedbackFragmentDoc,
12435
+ fragmentDoc: chunkGL6CUR7S_cjs.FeedbackFragmentDoc,
12405
12436
  variables,
12406
12437
  isConnection: false,
12407
12438
  isList: false,
@@ -12421,10 +12452,10 @@ var DatabaseSubBuilder = class {
12421
12452
  _includes = [];
12422
12453
  /** Include engine in the parent query. */
12423
12454
  engine(variables) {
12424
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Database_EngineDocument, "engine", ["id"]);
12455
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Database_EngineDocument, "engine", ["id"]);
12425
12456
  this._includes.push({
12426
12457
  fieldName: "engine",
12427
- fragmentDoc: chunk5IUEWNZ6_cjs.DatabaseEngineFragmentDoc,
12458
+ fragmentDoc: chunkGL6CUR7S_cjs.DatabaseEngineFragmentDoc,
12428
12459
  variables,
12429
12460
  isConnection: false,
12430
12461
  isList: false,
@@ -12440,7 +12471,7 @@ var DatabaseSubBuilder = class {
12440
12471
  }
12441
12472
  /** Include tables in the parent query. */
12442
12473
  tables(variables, builder) {
12443
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Database_TablesDocument, "tables", ["id"]);
12474
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Database_TablesDocument, "tables", ["id"]);
12444
12475
  let children;
12445
12476
  if (builder) {
12446
12477
  const sub = new TableSubBuilder();
@@ -12449,7 +12480,7 @@ var DatabaseSubBuilder = class {
12449
12480
  }
12450
12481
  this._includes.push({
12451
12482
  fieldName: "tables",
12452
- fragmentDoc: chunk5IUEWNZ6_cjs.TableConnectionFragmentDoc,
12483
+ fragmentDoc: chunkGL6CUR7S_cjs.TableConnectionFragmentDoc,
12453
12484
  variables,
12454
12485
  isConnection: true,
12455
12486
  isList: false,
@@ -12471,10 +12502,10 @@ var DatabaseCatalogSubBuilder = class {
12471
12502
  _includes = [];
12472
12503
  /** Include engine in the parent query. */
12473
12504
  engine(variables) {
12474
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.DatabaseCatalog_EngineDocument, "engine", []);
12505
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.DatabaseCatalog_EngineDocument, "engine", []);
12475
12506
  this._includes.push({
12476
12507
  fieldName: "engine",
12477
- fragmentDoc: chunk5IUEWNZ6_cjs.DatabaseEngineFragmentDoc,
12508
+ fragmentDoc: chunkGL6CUR7S_cjs.DatabaseEngineFragmentDoc,
12478
12509
  variables,
12479
12510
  isConnection: false,
12480
12511
  isList: false,
@@ -12494,10 +12525,10 @@ var DocumentSubBuilder = class {
12494
12525
  _includes = [];
12495
12526
  /** Include contents in the parent query. */
12496
12527
  contents(variables) {
12497
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Document_ContentsDocument, "contents", ["id"]);
12528
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Document_ContentsDocument, "contents", ["id"]);
12498
12529
  this._includes.push({
12499
12530
  fieldName: "contents",
12500
- fragmentDoc: chunk5IUEWNZ6_cjs.DocumentContentFragmentDoc,
12531
+ fragmentDoc: chunkGL6CUR7S_cjs.DocumentContentFragmentDoc,
12501
12532
  variables,
12502
12533
  isConnection: false,
12503
12534
  isList: true,
@@ -12513,10 +12544,10 @@ var DocumentSubBuilder = class {
12513
12544
  }
12514
12545
  /** Include file in the parent query. */
12515
12546
  file(variables) {
12516
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Document_FileDocument, "file", ["id"]);
12547
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Document_FileDocument, "file", ["id"]);
12517
12548
  this._includes.push({
12518
12549
  fieldName: "file",
12519
- fragmentDoc: chunk5IUEWNZ6_cjs.FileFragmentDoc,
12550
+ fragmentDoc: chunkGL6CUR7S_cjs.FileFragmentDoc,
12520
12551
  variables,
12521
12552
  isConnection: false,
12522
12553
  isList: false,
@@ -12532,10 +12563,10 @@ var DocumentSubBuilder = class {
12532
12563
  }
12533
12564
  /** Include format in the parent query. */
12534
12565
  format(variables) {
12535
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Document_FormatDocument, "format", ["id"]);
12566
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Document_FormatDocument, "format", ["id"]);
12536
12567
  this._includes.push({
12537
12568
  fieldName: "format",
12538
- fragmentDoc: chunk5IUEWNZ6_cjs.DocumentFormatFragmentDoc,
12569
+ fragmentDoc: chunkGL6CUR7S_cjs.DocumentFormatFragmentDoc,
12539
12570
  variables,
12540
12571
  isConnection: false,
12541
12572
  isList: false,
@@ -12551,7 +12582,7 @@ var DocumentSubBuilder = class {
12551
12582
  }
12552
12583
  /** Include tables in the parent query. */
12553
12584
  tables(variables, builder) {
12554
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Document_TablesDocument, "tables", ["id"]);
12585
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Document_TablesDocument, "tables", ["id"]);
12555
12586
  let children;
12556
12587
  if (builder) {
12557
12588
  const sub = new TableSubBuilder();
@@ -12560,7 +12591,7 @@ var DocumentSubBuilder = class {
12560
12591
  }
12561
12592
  this._includes.push({
12562
12593
  fieldName: "tables",
12563
- fragmentDoc: chunk5IUEWNZ6_cjs.TableConnectionFragmentDoc,
12594
+ fragmentDoc: chunkGL6CUR7S_cjs.TableConnectionFragmentDoc,
12564
12595
  variables,
12565
12596
  isConnection: true,
12566
12597
  isList: false,
@@ -12582,10 +12613,10 @@ var DocumentCatalogSubBuilder = class {
12582
12613
  _includes = [];
12583
12614
  /** Include format in the parent query. */
12584
12615
  format(variables) {
12585
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.DocumentCatalog_FormatDocument, "format", []);
12616
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.DocumentCatalog_FormatDocument, "format", []);
12586
12617
  this._includes.push({
12587
12618
  fieldName: "format",
12588
- fragmentDoc: chunk5IUEWNZ6_cjs.DocumentFormatFragmentDoc,
12619
+ fragmentDoc: chunkGL6CUR7S_cjs.DocumentFormatFragmentDoc,
12589
12620
  variables,
12590
12621
  isConnection: false,
12591
12622
  isList: false,
@@ -12605,10 +12636,10 @@ var FeedItemSubBuilder = class {
12605
12636
  _includes = [];
12606
12637
  /** Include action in the parent query. */
12607
12638
  action(variables) {
12608
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.FeedItem_ActionDocument, "action", ["id"]);
12639
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.FeedItem_ActionDocument, "action", ["id"]);
12609
12640
  this._includes.push({
12610
12641
  fieldName: "action",
12611
- fragmentDoc: chunk5IUEWNZ6_cjs.FeedSendMessageActionFragmentDoc,
12642
+ fragmentDoc: chunkGL6CUR7S_cjs.FeedSendMessageActionFragmentDoc,
12612
12643
  variables,
12613
12644
  isConnection: false,
12614
12645
  isList: false,
@@ -12624,10 +12655,10 @@ var FeedItemSubBuilder = class {
12624
12655
  }
12625
12656
  /** Include data in the parent query. */
12626
12657
  data(variables) {
12627
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.FeedItem_DataDocument, "data", ["id"]);
12658
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.FeedItem_DataDocument, "data", ["id"]);
12628
12659
  this._includes.push({
12629
12660
  fieldName: "data",
12630
- fragmentDoc: chunk5IUEWNZ6_cjs.FeedArtifactDataFragmentDoc,
12661
+ fragmentDoc: chunkGL6CUR7S_cjs.FeedArtifactDataFragmentDoc,
12631
12662
  variables,
12632
12663
  isConnection: false,
12633
12664
  isList: true,
@@ -12647,7 +12678,7 @@ var InsightSubBuilder = class {
12647
12678
  _includes = [];
12648
12679
  /** Include chat in the parent query. */
12649
12680
  chat(variables, builder) {
12650
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Insight_ChatDocument, "chat", ["id"]);
12681
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Insight_ChatDocument, "chat", ["id"]);
12651
12682
  let children;
12652
12683
  if (builder) {
12653
12684
  const sub = new ChatSubBuilder();
@@ -12656,7 +12687,7 @@ var InsightSubBuilder = class {
12656
12687
  }
12657
12688
  this._includes.push({
12658
12689
  fieldName: "chat",
12659
- fragmentDoc: chunk5IUEWNZ6_cjs.ChatFragmentDoc,
12690
+ fragmentDoc: chunkGL6CUR7S_cjs.ChatFragmentDoc,
12660
12691
  variables,
12661
12692
  isConnection: false,
12662
12693
  isList: false,
@@ -12673,10 +12704,10 @@ var InsightSubBuilder = class {
12673
12704
  }
12674
12705
  /** Include reportMembers in the parent query. */
12675
12706
  reportMembers(variables) {
12676
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Insight_ReportMembersDocument, "reportMembers", ["id"]);
12707
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Insight_ReportMembersDocument, "reportMembers", ["id"]);
12677
12708
  this._includes.push({
12678
12709
  fieldName: "reportMembers",
12679
- fragmentDoc: chunk5IUEWNZ6_cjs.ReportMemberFragmentDoc,
12710
+ fragmentDoc: chunkGL6CUR7S_cjs.ReportMemberFragmentDoc,
12680
12711
  variables,
12681
12712
  isConnection: false,
12682
12713
  isList: true,
@@ -12692,7 +12723,7 @@ var InsightSubBuilder = class {
12692
12723
  }
12693
12724
  /** Include reports in the parent query. */
12694
12725
  reports(variables, builder) {
12695
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Insight_ReportsDocument, "reports", ["id"]);
12726
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Insight_ReportsDocument, "reports", ["id"]);
12696
12727
  let children;
12697
12728
  if (builder) {
12698
12729
  const sub = new ReportSubBuilder();
@@ -12701,7 +12732,7 @@ var InsightSubBuilder = class {
12701
12732
  }
12702
12733
  this._includes.push({
12703
12734
  fieldName: "reports",
12704
- fragmentDoc: chunk5IUEWNZ6_cjs.ReportConnectionFragmentDoc,
12735
+ fragmentDoc: chunkGL6CUR7S_cjs.ReportConnectionFragmentDoc,
12705
12736
  variables,
12706
12737
  isConnection: true,
12707
12738
  isList: false,
@@ -12719,10 +12750,10 @@ var InsightSubBuilder = class {
12719
12750
  }
12720
12751
  /** Include thumbnailFile in the parent query. */
12721
12752
  thumbnailFile(variables) {
12722
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Insight_ThumbnailFileDocument, "thumbnailFile", ["id"]);
12753
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Insight_ThumbnailFileDocument, "thumbnailFile", ["id"]);
12723
12754
  this._includes.push({
12724
12755
  fieldName: "thumbnailFile",
12725
- fragmentDoc: chunk5IUEWNZ6_cjs.FileFragmentDoc,
12756
+ fragmentDoc: chunkGL6CUR7S_cjs.FileFragmentDoc,
12726
12757
  variables,
12727
12758
  isConnection: false,
12728
12759
  isList: false,
@@ -12742,10 +12773,10 @@ var IntegrationSubBuilder = class {
12742
12773
  _includes = [];
12743
12774
  /** Include provider in the parent query. */
12744
12775
  provider(variables) {
12745
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Integration_ProviderDocument, "provider", ["id"]);
12776
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Integration_ProviderDocument, "provider", ["id"]);
12746
12777
  this._includes.push({
12747
12778
  fieldName: "provider",
12748
- fragmentDoc: chunk5IUEWNZ6_cjs.IntegrationProviderFragmentDoc,
12779
+ fragmentDoc: chunkGL6CUR7S_cjs.IntegrationProviderFragmentDoc,
12749
12780
  variables,
12750
12781
  isConnection: false,
12751
12782
  isList: false,
@@ -12765,10 +12796,10 @@ var IntegrationCatalogSubBuilder = class {
12765
12796
  _includes = [];
12766
12797
  /** Include provider in the parent query. */
12767
12798
  provider(variables) {
12768
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.IntegrationCatalog_ProviderDocument, "provider", []);
12799
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.IntegrationCatalog_ProviderDocument, "provider", []);
12769
12800
  this._includes.push({
12770
12801
  fieldName: "provider",
12771
- fragmentDoc: chunk5IUEWNZ6_cjs.IntegrationProviderFragmentDoc,
12802
+ fragmentDoc: chunkGL6CUR7S_cjs.IntegrationProviderFragmentDoc,
12772
12803
  variables,
12773
12804
  isConnection: false,
12774
12805
  isList: false,
@@ -12788,7 +12819,7 @@ var PulseEventSubBuilder = class {
12788
12819
  _includes = [];
12789
12820
  /** Include integration in the parent query. */
12790
12821
  integration(variables, builder) {
12791
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.PulseEvent_IntegrationDocument, "integration", ["id"]);
12822
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.PulseEvent_IntegrationDocument, "integration", ["id"]);
12792
12823
  let children;
12793
12824
  if (builder) {
12794
12825
  const sub = new IntegrationSubBuilder();
@@ -12797,7 +12828,7 @@ var PulseEventSubBuilder = class {
12797
12828
  }
12798
12829
  this._includes.push({
12799
12830
  fieldName: "integration",
12800
- fragmentDoc: chunk5IUEWNZ6_cjs.IntegrationFragmentDoc,
12831
+ fragmentDoc: chunkGL6CUR7S_cjs.IntegrationFragmentDoc,
12801
12832
  variables,
12802
12833
  isConnection: false,
12803
12834
  isList: false,
@@ -12818,7 +12849,7 @@ var ReportSubBuilder = class {
12818
12849
  _includes = [];
12819
12850
  /** Include insights in the parent query. */
12820
12851
  insights(variables, builder) {
12821
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Report_InsightsDocument, "insights", ["id"]);
12852
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Report_InsightsDocument, "insights", ["id"]);
12822
12853
  let children;
12823
12854
  if (builder) {
12824
12855
  const sub = new InsightSubBuilder();
@@ -12827,7 +12858,7 @@ var ReportSubBuilder = class {
12827
12858
  }
12828
12859
  this._includes.push({
12829
12860
  fieldName: "insights",
12830
- fragmentDoc: chunk5IUEWNZ6_cjs.InsightConnectionFragmentDoc,
12861
+ fragmentDoc: chunkGL6CUR7S_cjs.InsightConnectionFragmentDoc,
12831
12862
  variables,
12832
12863
  isConnection: true,
12833
12864
  isList: false,
@@ -12845,10 +12876,10 @@ var ReportSubBuilder = class {
12845
12876
  }
12846
12877
  /** Include layout in the parent query. */
12847
12878
  layout(variables) {
12848
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Report_LayoutDocument, "layout", ["id"]);
12879
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Report_LayoutDocument, "layout", ["id"]);
12849
12880
  this._includes.push({
12850
12881
  fieldName: "layout",
12851
- fragmentDoc: chunk5IUEWNZ6_cjs.ReportMemberFragmentDoc,
12882
+ fragmentDoc: chunkGL6CUR7S_cjs.ReportMemberFragmentDoc,
12852
12883
  variables,
12853
12884
  isConnection: false,
12854
12885
  isList: true,
@@ -12868,7 +12899,7 @@ var TableSubBuilder = class {
12868
12899
  _includes = [];
12869
12900
  /** Include database in the parent query. */
12870
12901
  database(variables, builder) {
12871
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Table_DatabaseDocument, "database", ["id"]);
12902
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Table_DatabaseDocument, "database", ["id"]);
12872
12903
  let children;
12873
12904
  if (builder) {
12874
12905
  const sub = new DatabaseSubBuilder();
@@ -12877,7 +12908,7 @@ var TableSubBuilder = class {
12877
12908
  }
12878
12909
  this._includes.push({
12879
12910
  fieldName: "database",
12880
- fragmentDoc: chunk5IUEWNZ6_cjs.DatabaseFragmentDoc,
12911
+ fragmentDoc: chunkGL6CUR7S_cjs.DatabaseFragmentDoc,
12881
12912
  variables,
12882
12913
  isConnection: false,
12883
12914
  isList: false,
@@ -12894,7 +12925,7 @@ var TableSubBuilder = class {
12894
12925
  }
12895
12926
  /** Include document in the parent query. */
12896
12927
  document(variables, builder) {
12897
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Table_DocumentDocument, "document", ["id"]);
12928
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Table_DocumentDocument, "document", ["id"]);
12898
12929
  let children;
12899
12930
  if (builder) {
12900
12931
  const sub = new DocumentSubBuilder();
@@ -12903,7 +12934,7 @@ var TableSubBuilder = class {
12903
12934
  }
12904
12935
  this._includes.push({
12905
12936
  fieldName: "document",
12906
- fragmentDoc: chunk5IUEWNZ6_cjs.DocumentFragmentDoc,
12937
+ fragmentDoc: chunkGL6CUR7S_cjs.DocumentFragmentDoc,
12907
12938
  variables,
12908
12939
  isConnection: false,
12909
12940
  isList: false,
@@ -12920,10 +12951,10 @@ var TableSubBuilder = class {
12920
12951
  }
12921
12952
  /** Include fromRelations in the parent query. */
12922
12953
  fromRelations(variables) {
12923
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Table_FromRelationsDocument, "fromRelations", ["id"]);
12954
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Table_FromRelationsDocument, "fromRelations", ["id"]);
12924
12955
  this._includes.push({
12925
12956
  fieldName: "fromRelations",
12926
- fragmentDoc: chunk5IUEWNZ6_cjs.RelationFragmentDoc,
12957
+ fragmentDoc: chunkGL6CUR7S_cjs.RelationFragmentDoc,
12927
12958
  variables,
12928
12959
  isConnection: false,
12929
12960
  isList: true,
@@ -12939,10 +12970,10 @@ var TableSubBuilder = class {
12939
12970
  }
12940
12971
  /** Include toRelations in the parent query. */
12941
12972
  toRelations(variables) {
12942
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Table_ToRelationsDocument, "toRelations", ["id"]);
12973
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Table_ToRelationsDocument, "toRelations", ["id"]);
12943
12974
  this._includes.push({
12944
12975
  fieldName: "toRelations",
12945
- fragmentDoc: chunk5IUEWNZ6_cjs.RelationFragmentDoc,
12976
+ fragmentDoc: chunkGL6CUR7S_cjs.RelationFragmentDoc,
12946
12977
  variables,
12947
12978
  isConnection: false,
12948
12979
  isList: true,
@@ -12959,420 +12990,427 @@ var TableSubBuilder = class {
12959
12990
  };
12960
12991
  var AddInsightToReportMutation = class extends chunk342BFYZZ_cjs.Request {
12961
12992
  async fetch(variables, options) {
12962
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.AddInsightToReportDocument, variables, MUTATION_CACHE_RULES["addInsightToReport"]);
12993
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.AddInsightToReportDocument, variables, MUTATION_CACHE_RULES["addInsightToReport"]);
12963
12994
  const data = response.addInsightToReport;
12964
12995
  return new Report(this._request, data, this._syncEngine, this._baseUrl);
12965
12996
  }
12966
12997
  };
12967
12998
  var CancelOauthFlowMutation = class extends chunk342BFYZZ_cjs.Request {
12968
12999
  async fetch(variables) {
12969
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.CancelOauthFlowDocument, variables, MUTATION_CACHE_RULES["cancelOauthFlow"]);
13000
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.CancelOauthFlowDocument, variables, MUTATION_CACHE_RULES["cancelOauthFlow"]);
12970
13001
  return response.cancelOauthFlow;
12971
13002
  }
12972
13003
  };
12973
13004
  var CancelWorkspaceDeletionMutation = class extends chunk342BFYZZ_cjs.Request {
12974
13005
  async fetch(variables) {
12975
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.CancelWorkspaceDeletionDocument, variables, MUTATION_CACHE_RULES["cancelWorkspaceDeletion"]);
13006
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.CancelWorkspaceDeletionDocument, variables, MUTATION_CACHE_RULES["cancelWorkspaceDeletion"]);
12976
13007
  return response.cancelWorkspaceDeletion;
12977
13008
  }
12978
13009
  };
12979
13010
  var ConnectIntegrationMutation = class extends chunk342BFYZZ_cjs.Request {
12980
13011
  async fetch(variables, options) {
12981
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.ConnectIntegrationDocument, variables, MUTATION_CACHE_RULES["connectIntegration"]);
13012
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.ConnectIntegrationDocument, variables, MUTATION_CACHE_RULES["connectIntegration"]);
12982
13013
  const data = response.connectIntegration;
12983
13014
  return new CreateIntegrationOutput(this._request, data, this._syncEngine, this._baseUrl);
12984
13015
  }
12985
13016
  };
12986
13017
  var ConsumePulseEventsMutation = class extends chunk342BFYZZ_cjs.Request {
12987
13018
  async fetch(variables) {
12988
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.ConsumePulseEventsDocument, variables, MUTATION_CACHE_RULES["consumePulseEvents"]);
13019
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.ConsumePulseEventsDocument, variables, MUTATION_CACHE_RULES["consumePulseEvents"]);
12989
13020
  return response.consumePulseEvents;
12990
13021
  }
12991
13022
  };
12992
13023
  var ContinueImportedChatMutation = class extends chunk342BFYZZ_cjs.Request {
12993
13024
  async fetch(variables) {
12994
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.ContinueImportedChatDocument, variables, MUTATION_CACHE_RULES["continueImportedChat"]);
13025
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.ContinueImportedChatDocument, variables, MUTATION_CACHE_RULES["continueImportedChat"]);
12995
13026
  return response.continueImportedChat;
12996
13027
  }
12997
13028
  };
12998
13029
  var ContinueInterpretationMutation = class extends chunk342BFYZZ_cjs.Request {
12999
13030
  async fetch(variables) {
13000
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.ContinueInterpretationDocument, variables, MUTATION_CACHE_RULES["continueInterpretation"]);
13031
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.ContinueInterpretationDocument, variables, MUTATION_CACHE_RULES["continueInterpretation"]);
13001
13032
  return response.continueInterpretation;
13002
13033
  }
13003
13034
  };
13004
13035
  var CreateAgentMutation = class extends chunk342BFYZZ_cjs.Request {
13005
13036
  async fetch(variables, options) {
13006
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.CreateAgentDocument, variables, MUTATION_CACHE_RULES["createAgent"]);
13037
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.CreateAgentDocument, variables, MUTATION_CACHE_RULES["createAgent"]);
13007
13038
  const data = response.createAgent;
13008
13039
  return new Agent(this._request, data, this._syncEngine, this._baseUrl);
13009
13040
  }
13010
13041
  };
13011
13042
  var CreateChatMutation = class extends chunk342BFYZZ_cjs.Request {
13012
13043
  async fetch(variables, options) {
13013
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.CreateChatDocument, variables, MUTATION_CACHE_RULES["createChat"]);
13044
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.CreateChatDocument, variables, MUTATION_CACHE_RULES["createChat"]);
13014
13045
  const data = response.createChat;
13015
13046
  return new Chat(this._request, data, this._syncEngine, this._baseUrl);
13016
13047
  }
13017
13048
  };
13018
13049
  var CreateDatabaseMutation = class extends chunk342BFYZZ_cjs.Request {
13019
13050
  async fetch(variables, options) {
13020
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.CreateDatabaseDocument, variables, MUTATION_CACHE_RULES["createDatabase"]);
13051
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.CreateDatabaseDocument, variables, MUTATION_CACHE_RULES["createDatabase"]);
13021
13052
  const data = response.createDatabase;
13022
13053
  return new Database(this._request, data, this._syncEngine, this._baseUrl);
13023
13054
  }
13024
13055
  };
13025
13056
  var CreateDocumentMutation = class extends chunk342BFYZZ_cjs.Request {
13026
13057
  async fetch(variables, options) {
13027
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.CreateDocumentDocument, variables, MUTATION_CACHE_RULES["createDocument"]);
13058
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.CreateDocumentDocument, variables, MUTATION_CACHE_RULES["createDocument"]);
13028
13059
  const data = response.createDocument;
13029
13060
  return new Document(this._request, data, this._syncEngine, this._baseUrl);
13030
13061
  }
13031
13062
  };
13032
13063
  var CreateFeedbackMutation = class extends chunk342BFYZZ_cjs.Request {
13033
13064
  async fetch(variables, options) {
13034
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.CreateFeedbackDocument, variables, MUTATION_CACHE_RULES["createFeedback"]);
13065
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.CreateFeedbackDocument, variables, MUTATION_CACHE_RULES["createFeedback"]);
13035
13066
  const data = response.createFeedback;
13036
13067
  return new Feedback(this._request, data, this._syncEngine, this._baseUrl);
13037
13068
  }
13038
13069
  };
13039
13070
  var CreateFolderMutation = class extends chunk342BFYZZ_cjs.Request {
13040
13071
  async fetch(variables, options) {
13041
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.CreateFolderDocument, variables, MUTATION_CACHE_RULES["createFolder"]);
13072
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.CreateFolderDocument, variables, MUTATION_CACHE_RULES["createFolder"]);
13042
13073
  const data = response.createFolder;
13043
13074
  return new Folder(this._request, data, this._syncEngine, this._baseUrl);
13044
13075
  }
13045
13076
  };
13046
13077
  var CreateInsightMutation = class extends chunk342BFYZZ_cjs.Request {
13047
13078
  async fetch(variables, options) {
13048
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.CreateInsightDocument, variables, MUTATION_CACHE_RULES["createInsight"]);
13079
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.CreateInsightDocument, variables, MUTATION_CACHE_RULES["createInsight"]);
13049
13080
  const data = response.createInsight;
13050
13081
  return new Insight(this._request, data, this._syncEngine, this._baseUrl);
13051
13082
  }
13052
13083
  };
13053
13084
  var CreateIntegrationMutation = class extends chunk342BFYZZ_cjs.Request {
13054
13085
  async fetch(variables, options) {
13055
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.CreateIntegrationDocument, variables, MUTATION_CACHE_RULES["createIntegration"]);
13086
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.CreateIntegrationDocument, variables, MUTATION_CACHE_RULES["createIntegration"]);
13056
13087
  const data = response.createIntegration;
13057
13088
  return new CreateIntegrationOutput(this._request, data, this._syncEngine, this._baseUrl);
13058
13089
  }
13059
13090
  };
13060
13091
  var CreateReportMutation = class extends chunk342BFYZZ_cjs.Request {
13061
13092
  async fetch(variables, options) {
13062
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.CreateReportDocument, variables, MUTATION_CACHE_RULES["createReport"]);
13093
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.CreateReportDocument, variables, MUTATION_CACHE_RULES["createReport"]);
13063
13094
  const data = response.createReport;
13064
13095
  return new Report(this._request, data, this._syncEngine, this._baseUrl);
13065
13096
  }
13066
13097
  };
13067
13098
  var CreateTableMutation = class extends chunk342BFYZZ_cjs.Request {
13068
13099
  async fetch(variables, options) {
13069
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.CreateTableDocument, variables, MUTATION_CACHE_RULES["createTable"]);
13100
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.CreateTableDocument, variables, MUTATION_CACHE_RULES["createTable"]);
13070
13101
  const data = response.createTable;
13071
13102
  return new Table(this._request, data, this._syncEngine, this._baseUrl);
13072
13103
  }
13073
13104
  };
13074
13105
  var CreateUserSkillFileMutation = class extends chunk342BFYZZ_cjs.Request {
13075
13106
  async fetch(variables, options) {
13076
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.CreateUserSkillFileDocument, variables, MUTATION_CACHE_RULES["createUserSkillFile"]);
13107
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.CreateUserSkillFileDocument, variables, MUTATION_CACHE_RULES["createUserSkillFile"]);
13077
13108
  const data = response.createUserSkillFile;
13078
13109
  return new UserSkillFileModel(this._request, data, this._syncEngine, this._baseUrl);
13079
13110
  }
13080
13111
  };
13081
13112
  var CreateUserSkillFolderMutation = class extends chunk342BFYZZ_cjs.Request {
13082
13113
  async fetch(variables, options) {
13083
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.CreateUserSkillFolderDocument, variables, MUTATION_CACHE_RULES["createUserSkillFolder"]);
13114
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.CreateUserSkillFolderDocument, variables, MUTATION_CACHE_RULES["createUserSkillFolder"]);
13084
13115
  const data = response.createUserSkillFolder;
13085
13116
  return new UserSkillFolderModel(this._request, data, this._syncEngine, this._baseUrl);
13086
13117
  }
13087
13118
  };
13088
13119
  var DeleteAgentMutation = class extends chunk342BFYZZ_cjs.Request {
13089
13120
  async fetch(variables, options) {
13090
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.DeleteAgentDocument, variables, MUTATION_CACHE_RULES["deleteAgent"]);
13121
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.DeleteAgentDocument, variables, MUTATION_CACHE_RULES["deleteAgent"]);
13091
13122
  const data = response.deleteAgent;
13092
13123
  return new Agent(this._request, data, this._syncEngine, this._baseUrl);
13093
13124
  }
13094
13125
  };
13095
13126
  var DeleteArtifactMutation = class extends chunk342BFYZZ_cjs.Request {
13096
13127
  async fetch(variables, options) {
13097
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.DeleteArtifactDocument, variables, MUTATION_CACHE_RULES["deleteArtifact"]);
13128
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.DeleteArtifactDocument, variables, MUTATION_CACHE_RULES["deleteArtifact"]);
13098
13129
  const data = response.deleteArtifact;
13099
13130
  return new Artifact(this._request, data, this._syncEngine, this._baseUrl);
13100
13131
  }
13101
13132
  };
13102
13133
  var DeleteChatMutation = class extends chunk342BFYZZ_cjs.Request {
13103
13134
  async fetch(variables, options) {
13104
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.DeleteChatDocument, variables, MUTATION_CACHE_RULES["deleteChat"]);
13135
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.DeleteChatDocument, variables, MUTATION_CACHE_RULES["deleteChat"]);
13105
13136
  const data = response.deleteChat;
13106
13137
  return new Chat(this._request, data, this._syncEngine, this._baseUrl);
13107
13138
  }
13108
13139
  };
13109
13140
  var DeleteDatabaseMutation = class extends chunk342BFYZZ_cjs.Request {
13110
13141
  async fetch(variables, options) {
13111
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.DeleteDatabaseDocument, variables, MUTATION_CACHE_RULES["deleteDatabase"]);
13142
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.DeleteDatabaseDocument, variables, MUTATION_CACHE_RULES["deleteDatabase"]);
13112
13143
  const data = response.deleteDatabase;
13113
13144
  return new Database(this._request, data, this._syncEngine, this._baseUrl);
13114
13145
  }
13115
13146
  };
13116
13147
  var DeleteDocumentMutation = class extends chunk342BFYZZ_cjs.Request {
13117
13148
  async fetch(variables, options) {
13118
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.DeleteDocumentDocument, variables, MUTATION_CACHE_RULES["deleteDocument"]);
13149
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.DeleteDocumentDocument, variables, MUTATION_CACHE_RULES["deleteDocument"]);
13119
13150
  const data = response.deleteDocument;
13120
13151
  return new Document(this._request, data, this._syncEngine, this._baseUrl);
13121
13152
  }
13122
13153
  };
13123
13154
  var DeleteFolderMutation = class extends chunk342BFYZZ_cjs.Request {
13124
13155
  async fetch(variables, options) {
13125
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.DeleteFolderDocument, variables, MUTATION_CACHE_RULES["deleteFolder"]);
13156
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.DeleteFolderDocument, variables, MUTATION_CACHE_RULES["deleteFolder"]);
13126
13157
  const data = response.deleteFolder;
13127
13158
  return new Folder(this._request, data, this._syncEngine, this._baseUrl);
13128
13159
  }
13129
13160
  };
13130
13161
  var DeleteInsightMutation = class extends chunk342BFYZZ_cjs.Request {
13131
13162
  async fetch(variables, options) {
13132
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.DeleteInsightDocument, variables, MUTATION_CACHE_RULES["deleteInsight"]);
13163
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.DeleteInsightDocument, variables, MUTATION_CACHE_RULES["deleteInsight"]);
13133
13164
  const data = response.deleteInsight;
13134
13165
  return new Insight(this._request, data, this._syncEngine, this._baseUrl);
13135
13166
  }
13136
13167
  };
13137
13168
  var DeleteInsightsMutation = class extends chunk342BFYZZ_cjs.Request {
13138
13169
  async fetch(variables, options) {
13139
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.DeleteInsightsDocument, variables, MUTATION_CACHE_RULES["deleteInsights"]);
13170
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.DeleteInsightsDocument, variables, MUTATION_CACHE_RULES["deleteInsights"]);
13140
13171
  const data = response.deleteInsights;
13141
13172
  return new Insight(this._request, data, this._syncEngine, this._baseUrl);
13142
13173
  }
13143
13174
  };
13144
13175
  var DeleteIntegrationMutation = class extends chunk342BFYZZ_cjs.Request {
13145
13176
  async fetch(variables) {
13146
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.DeleteIntegrationDocument, variables, MUTATION_CACHE_RULES["deleteIntegration"]);
13177
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.DeleteIntegrationDocument, variables, MUTATION_CACHE_RULES["deleteIntegration"]);
13147
13178
  return response.deleteIntegration;
13148
13179
  }
13149
13180
  };
13150
13181
  var DeleteReportMutation = class extends chunk342BFYZZ_cjs.Request {
13151
13182
  async fetch(variables, options) {
13152
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.DeleteReportDocument, variables, MUTATION_CACHE_RULES["deleteReport"]);
13183
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.DeleteReportDocument, variables, MUTATION_CACHE_RULES["deleteReport"]);
13153
13184
  const data = response.deleteReport;
13154
13185
  return new Report(this._request, data, this._syncEngine, this._baseUrl);
13155
13186
  }
13156
13187
  };
13157
13188
  var DeleteTableMutation = class extends chunk342BFYZZ_cjs.Request {
13158
13189
  async fetch(variables, options) {
13159
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.DeleteTableDocument, variables, MUTATION_CACHE_RULES["deleteTable"]);
13190
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.DeleteTableDocument, variables, MUTATION_CACHE_RULES["deleteTable"]);
13160
13191
  const data = response.deleteTable;
13161
13192
  return new Table(this._request, data, this._syncEngine, this._baseUrl);
13162
13193
  }
13163
13194
  };
13164
13195
  var DeleteUserSkillFileMutation = class extends chunk342BFYZZ_cjs.Request {
13165
13196
  async fetch(variables, options) {
13166
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.DeleteUserSkillFileDocument, variables, MUTATION_CACHE_RULES["deleteUserSkillFile"]);
13197
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.DeleteUserSkillFileDocument, variables, MUTATION_CACHE_RULES["deleteUserSkillFile"]);
13167
13198
  const data = response.deleteUserSkillFile;
13168
13199
  return new UserSkillFileModel(this._request, data, this._syncEngine, this._baseUrl);
13169
13200
  }
13170
13201
  };
13171
13202
  var DeleteUserSkillFolderMutation = class extends chunk342BFYZZ_cjs.Request {
13172
13203
  async fetch(variables, options) {
13173
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.DeleteUserSkillFolderDocument, variables, MUTATION_CACHE_RULES["deleteUserSkillFolder"]);
13204
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.DeleteUserSkillFolderDocument, variables, MUTATION_CACHE_RULES["deleteUserSkillFolder"]);
13174
13205
  const data = response.deleteUserSkillFolder;
13175
13206
  return new UserSkillFolderModel(this._request, data, this._syncEngine, this._baseUrl);
13176
13207
  }
13177
13208
  };
13178
13209
  var DisconnectIntegrationMutation = class extends chunk342BFYZZ_cjs.Request {
13179
13210
  async fetch(variables) {
13180
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.DisconnectIntegrationDocument, variables, MUTATION_CACHE_RULES["disconnectIntegration"]);
13211
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.DisconnectIntegrationDocument, variables, MUTATION_CACHE_RULES["disconnectIntegration"]);
13181
13212
  return response.disconnectIntegration;
13182
13213
  }
13183
13214
  };
13184
13215
  var DismissPulseEventMutation = class extends chunk342BFYZZ_cjs.Request {
13185
13216
  async fetch(variables, options) {
13186
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.DismissPulseEventDocument, variables, MUTATION_CACHE_RULES["dismissPulseEvent"]);
13217
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.DismissPulseEventDocument, variables, MUTATION_CACHE_RULES["dismissPulseEvent"]);
13187
13218
  const data = response.dismissPulseEvent;
13188
13219
  return new PulseEvent(this._request, data, this._syncEngine, this._baseUrl);
13189
13220
  }
13190
13221
  };
13191
13222
  var ExecuteChatImportMutation = class extends chunk342BFYZZ_cjs.Request {
13192
13223
  async fetch(variables, options) {
13193
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.ExecuteChatImportDocument, variables, MUTATION_CACHE_RULES["executeChatImport"]);
13224
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.ExecuteChatImportDocument, variables, MUTATION_CACHE_RULES["executeChatImport"]);
13194
13225
  const data = response.executeChatImport;
13195
13226
  return new ChatImportExecuteOutput(this._request, data, this._syncEngine, this._baseUrl);
13196
13227
  }
13197
13228
  };
13198
13229
  var GenerateUploadUriMutation = class extends chunk342BFYZZ_cjs.Request {
13199
13230
  async fetch(variables, options) {
13200
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.GenerateUploadUriDocument, variables, MUTATION_CACHE_RULES["generateUploadUri"]);
13231
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.GenerateUploadUriDocument, variables, MUTATION_CACHE_RULES["generateUploadUri"]);
13201
13232
  const data = response.generateUploadUri;
13202
13233
  return new FileModel(this._request, data, this._syncEngine, this._baseUrl);
13203
13234
  }
13204
13235
  };
13205
13236
  var PreviewChatImportMutation = class extends chunk342BFYZZ_cjs.Request {
13206
13237
  async fetch(variables, options) {
13207
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.PreviewChatImportDocument, variables, MUTATION_CACHE_RULES["previewChatImport"]);
13238
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.PreviewChatImportDocument, variables, MUTATION_CACHE_RULES["previewChatImport"]);
13208
13239
  const data = response.previewChatImport;
13209
13240
  return new ChatImportPreviewOutput(this._request, data, this._syncEngine, this._baseUrl);
13210
13241
  }
13211
13242
  };
13212
13243
  var ReanalyzeDocumentMutation = class extends chunk342BFYZZ_cjs.Request {
13213
13244
  async fetch(variables, options) {
13214
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.ReanalyzeDocumentDocument, variables, MUTATION_CACHE_RULES["reanalyzeDocument"]);
13245
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.ReanalyzeDocumentDocument, variables, MUTATION_CACHE_RULES["reanalyzeDocument"]);
13215
13246
  const data = response.reanalyzeDocument;
13216
13247
  return new Document(this._request, data, this._syncEngine, this._baseUrl);
13217
13248
  }
13218
13249
  };
13219
13250
  var RefineMindInstructionMutation = class extends chunk342BFYZZ_cjs.Request {
13220
13251
  async fetch(variables) {
13221
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.RefineMindInstructionDocument, variables, MUTATION_CACHE_RULES["refineMindInstruction"]);
13252
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.RefineMindInstructionDocument, variables, MUTATION_CACHE_RULES["refineMindInstruction"]);
13222
13253
  return response.refineMindInstruction;
13223
13254
  }
13224
13255
  };
13225
13256
  var RefreshDatabaseSchemaMutation = class extends chunk342BFYZZ_cjs.Request {
13226
13257
  async fetch(variables) {
13227
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.RefreshDatabaseSchemaDocument, variables, MUTATION_CACHE_RULES["refreshDatabaseSchema"]);
13258
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.RefreshDatabaseSchemaDocument, variables, MUTATION_CACHE_RULES["refreshDatabaseSchema"]);
13228
13259
  return response.refreshDatabaseSchema;
13229
13260
  }
13230
13261
  };
13262
+ var RefreshInsightMutation = class extends chunk342BFYZZ_cjs.Request {
13263
+ async fetch(variables, options) {
13264
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.RefreshInsightDocument, variables, MUTATION_CACHE_RULES["refreshInsight"]);
13265
+ const data = response.refreshInsight;
13266
+ return new Insight(this._request, data, this._syncEngine, this._baseUrl);
13267
+ }
13268
+ };
13231
13269
  var ReinterpretSourceMutation = class extends chunk342BFYZZ_cjs.Request {
13232
13270
  async fetch(variables) {
13233
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.ReinterpretSourceDocument, variables, MUTATION_CACHE_RULES["reinterpretSource"]);
13271
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.ReinterpretSourceDocument, variables, MUTATION_CACHE_RULES["reinterpretSource"]);
13234
13272
  return response.reinterpretSource;
13235
13273
  }
13236
13274
  };
13237
13275
  var ReinterpretSourcesOfuserMutation = class extends chunk342BFYZZ_cjs.Request {
13238
13276
  async fetch(variables) {
13239
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.ReinterpretSourcesOfuserDocument, variables, MUTATION_CACHE_RULES["reinterpretSourcesOfuser"]);
13277
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.ReinterpretSourcesOfuserDocument, variables, MUTATION_CACHE_RULES["reinterpretSourcesOfuser"]);
13240
13278
  return response.reinterpretSourcesOfuser;
13241
13279
  }
13242
13280
  };
13243
13281
  var RelocateInsightMutation = class extends chunk342BFYZZ_cjs.Request {
13244
13282
  async fetch(variables, options) {
13245
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.RelocateInsightDocument, variables, MUTATION_CACHE_RULES["relocateInsight"]);
13283
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.RelocateInsightDocument, variables, MUTATION_CACHE_RULES["relocateInsight"]);
13246
13284
  const data = response.relocateInsight;
13247
13285
  return new Report(this._request, data, this._syncEngine, this._baseUrl);
13248
13286
  }
13249
13287
  };
13250
13288
  var RemoveInsightFromReportMutation = class extends chunk342BFYZZ_cjs.Request {
13251
13289
  async fetch(variables, options) {
13252
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.RemoveInsightFromReportDocument, variables, MUTATION_CACHE_RULES["removeInsightFromReport"]);
13290
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.RemoveInsightFromReportDocument, variables, MUTATION_CACHE_RULES["removeInsightFromReport"]);
13253
13291
  const data = response.removeInsightFromReport;
13254
13292
  return new Report(this._request, data, this._syncEngine, this._baseUrl);
13255
13293
  }
13256
13294
  };
13257
13295
  var ResetWorkspaceMutation = class extends chunk342BFYZZ_cjs.Request {
13258
13296
  async fetch(variables) {
13259
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.ResetWorkspaceDocument, variables, MUTATION_CACHE_RULES["resetWorkspace"]);
13297
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.ResetWorkspaceDocument, variables, MUTATION_CACHE_RULES["resetWorkspace"]);
13260
13298
  return response.resetWorkspace;
13261
13299
  }
13262
13300
  };
13263
13301
  var ResolvePulseEventMutation = class extends chunk342BFYZZ_cjs.Request {
13264
13302
  async fetch(variables, options) {
13265
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.ResolvePulseEventDocument, variables, MUTATION_CACHE_RULES["resolvePulseEvent"]);
13303
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.ResolvePulseEventDocument, variables, MUTATION_CACHE_RULES["resolvePulseEvent"]);
13266
13304
  const data = response.resolvePulseEvent;
13267
13305
  return new PulseEvent(this._request, data, this._syncEngine, this._baseUrl);
13268
13306
  }
13269
13307
  };
13270
13308
  var ScheduleWorkspaceDeletionMutation = class extends chunk342BFYZZ_cjs.Request {
13271
13309
  async fetch(variables, options) {
13272
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.ScheduleWorkspaceDeletionDocument, variables, MUTATION_CACHE_RULES["scheduleWorkspaceDeletion"]);
13310
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.ScheduleWorkspaceDeletionDocument, variables, MUTATION_CACHE_RULES["scheduleWorkspaceDeletion"]);
13273
13311
  const data = response.scheduleWorkspaceDeletion;
13274
13312
  return new WorkspaceDeleteSchedule(this._request, data, this._syncEngine, this._baseUrl);
13275
13313
  }
13276
13314
  };
13277
13315
  var SetDatabasePrimaryKeyMutation = class extends chunk342BFYZZ_cjs.Request {
13278
13316
  async fetch(variables) {
13279
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.SetDatabasePrimaryKeyDocument, variables, MUTATION_CACHE_RULES["setDatabasePrimaryKey"]);
13317
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.SetDatabasePrimaryKeyDocument, variables, MUTATION_CACHE_RULES["setDatabasePrimaryKey"]);
13280
13318
  return response.setDatabasePrimaryKey;
13281
13319
  }
13282
13320
  };
13283
13321
  var UpdateAgentMutation = class extends chunk342BFYZZ_cjs.Request {
13284
13322
  async fetch(variables, options) {
13285
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.UpdateAgentDocument, variables, MUTATION_CACHE_RULES["updateAgent"]);
13323
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.UpdateAgentDocument, variables, MUTATION_CACHE_RULES["updateAgent"]);
13286
13324
  const data = response.updateAgent;
13287
13325
  return new Agent(this._request, data, this._syncEngine, this._baseUrl);
13288
13326
  }
13289
13327
  };
13290
13328
  var UpdateChatMutation = class extends chunk342BFYZZ_cjs.Request {
13291
13329
  async fetch(variables, options) {
13292
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.UpdateChatDocument, variables, MUTATION_CACHE_RULES["updateChat"]);
13330
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.UpdateChatDocument, variables, MUTATION_CACHE_RULES["updateChat"]);
13293
13331
  const data = response.updateChat;
13294
13332
  return new Chat(this._request, data, this._syncEngine, this._baseUrl);
13295
13333
  }
13296
13334
  };
13297
13335
  var UpdateDatabaseMutation = class extends chunk342BFYZZ_cjs.Request {
13298
13336
  async fetch(variables, options) {
13299
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.UpdateDatabaseDocument, variables, MUTATION_CACHE_RULES["updateDatabase"]);
13337
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.UpdateDatabaseDocument, variables, MUTATION_CACHE_RULES["updateDatabase"]);
13300
13338
  const data = response.updateDatabase;
13301
13339
  return new Database(this._request, data, this._syncEngine, this._baseUrl);
13302
13340
  }
13303
13341
  };
13304
13342
  var UpdateDocumentMutation = class extends chunk342BFYZZ_cjs.Request {
13305
13343
  async fetch(variables, options) {
13306
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.UpdateDocumentDocument, variables, MUTATION_CACHE_RULES["updateDocument"]);
13344
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.UpdateDocumentDocument, variables, MUTATION_CACHE_RULES["updateDocument"]);
13307
13345
  const data = response.updateDocument;
13308
13346
  return new Document(this._request, data, this._syncEngine, this._baseUrl);
13309
13347
  }
13310
13348
  };
13311
13349
  var UpdateFolderMutation = class extends chunk342BFYZZ_cjs.Request {
13312
13350
  async fetch(variables, options) {
13313
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.UpdateFolderDocument, variables, MUTATION_CACHE_RULES["updateFolder"]);
13351
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.UpdateFolderDocument, variables, MUTATION_CACHE_RULES["updateFolder"]);
13314
13352
  const data = response.updateFolder;
13315
13353
  return new Folder(this._request, data, this._syncEngine, this._baseUrl);
13316
13354
  }
13317
13355
  };
13318
13356
  var UpdateInsightMutation = class extends chunk342BFYZZ_cjs.Request {
13319
13357
  async fetch(variables, options) {
13320
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.UpdateInsightDocument, variables, MUTATION_CACHE_RULES["updateInsight"]);
13358
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.UpdateInsightDocument, variables, MUTATION_CACHE_RULES["updateInsight"]);
13321
13359
  const data = response.updateInsight;
13322
13360
  return new Insight(this._request, data, this._syncEngine, this._baseUrl);
13323
13361
  }
13324
13362
  };
13325
13363
  var UpdateInsightInReportMutation = class extends chunk342BFYZZ_cjs.Request {
13326
13364
  async fetch(variables, options) {
13327
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.UpdateInsightInReportDocument, variables, MUTATION_CACHE_RULES["updateInsightInReport"]);
13365
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.UpdateInsightInReportDocument, variables, MUTATION_CACHE_RULES["updateInsightInReport"]);
13328
13366
  const data = response.updateInsightInReport;
13329
13367
  return new Report(this._request, data, this._syncEngine, this._baseUrl);
13330
13368
  }
13331
13369
  };
13332
13370
  var UpdateInsightThumbnailMutation = class extends chunk342BFYZZ_cjs.Request {
13333
13371
  async fetch(variables) {
13334
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.UpdateInsightThumbnailDocument, variables, MUTATION_CACHE_RULES["updateInsightThumbnail"]);
13372
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.UpdateInsightThumbnailDocument, variables, MUTATION_CACHE_RULES["updateInsightThumbnail"]);
13335
13373
  return response.updateInsightThumbnail;
13336
13374
  }
13337
13375
  };
13338
13376
  var UpdateInterpMutation = class extends chunk342BFYZZ_cjs.Request {
13339
13377
  async fetch(variables, options) {
13340
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.UpdateInterpDocument, variables, MUTATION_CACHE_RULES["updateInterp"]);
13378
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.UpdateInterpDocument, variables, MUTATION_CACHE_RULES["updateInterp"]);
13341
13379
  const data = response.updateInterp;
13342
13380
  return new Interpretation(this._request, data, this._syncEngine, this._baseUrl);
13343
13381
  }
13344
13382
  };
13345
13383
  var UpdatePulseTriggerMutation = class extends chunk342BFYZZ_cjs.Request {
13346
13384
  async fetch(variables, options) {
13347
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.UpdatePulseTriggerDocument, variables, MUTATION_CACHE_RULES["updatePulseTrigger"]);
13385
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.UpdatePulseTriggerDocument, variables, MUTATION_CACHE_RULES["updatePulseTrigger"]);
13348
13386
  const data = response.updatePulseTrigger;
13349
13387
  return new PulseTriggerSettingModel(this._request, data, this._syncEngine, this._baseUrl);
13350
13388
  }
13351
13389
  };
13352
13390
  var UpdateReportMutation = class extends chunk342BFYZZ_cjs.Request {
13353
13391
  async fetch(variables, options) {
13354
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.UpdateReportDocument, variables, MUTATION_CACHE_RULES["updateReport"]);
13392
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.UpdateReportDocument, variables, MUTATION_CACHE_RULES["updateReport"]);
13355
13393
  const data = response.updateReport;
13356
13394
  return new Report(this._request, data, this._syncEngine, this._baseUrl);
13357
13395
  }
13358
13396
  };
13359
13397
  var UpdateTableMutation = class extends chunk342BFYZZ_cjs.Request {
13360
13398
  async fetch(variables, options) {
13361
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.UpdateTableDocument, variables, MUTATION_CACHE_RULES["updateTable"]);
13399
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.UpdateTableDocument, variables, MUTATION_CACHE_RULES["updateTable"]);
13362
13400
  const data = response.updateTable;
13363
13401
  return new Table(this._request, data, this._syncEngine, this._baseUrl);
13364
13402
  }
13365
13403
  };
13366
13404
  var UpdateUserSkillFileMutation = class extends chunk342BFYZZ_cjs.Request {
13367
13405
  async fetch(variables, options) {
13368
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.UpdateUserSkillFileDocument, variables, MUTATION_CACHE_RULES["updateUserSkillFile"]);
13406
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.UpdateUserSkillFileDocument, variables, MUTATION_CACHE_RULES["updateUserSkillFile"]);
13369
13407
  const data = response.updateUserSkillFile;
13370
13408
  return new UserSkillFileModel(this._request, data, this._syncEngine, this._baseUrl);
13371
13409
  }
13372
13410
  };
13373
13411
  var UpdateUserSkillFolderMutation = class extends chunk342BFYZZ_cjs.Request {
13374
13412
  async fetch(variables, options) {
13375
- const response = await this._syncEngine.mutate(chunk5IUEWNZ6_cjs.UpdateUserSkillFolderDocument, variables, MUTATION_CACHE_RULES["updateUserSkillFolder"]);
13413
+ const response = await this._syncEngine.mutate(chunkGL6CUR7S_cjs.UpdateUserSkillFolderDocument, variables, MUTATION_CACHE_RULES["updateUserSkillFolder"]);
13376
13414
  const data = response.updateUserSkillFolder;
13377
13415
  return new UserSkillFolderModel(this._request, data, this._syncEngine, this._baseUrl);
13378
13416
  }
@@ -13386,7 +13424,7 @@ var AgentQuery = class extends chunk342BFYZZ_cjs.Request {
13386
13424
  }
13387
13425
  async fetch(options) {
13388
13426
  const variables = this._variables;
13389
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.AgentDocument, "agent", this._includes, variables);
13427
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.AgentDocument, "agent", this._includes, variables);
13390
13428
  const response = await this._syncEngine.query(queryDoc, mergedVars, "agent");
13391
13429
  const data = response.agent;
13392
13430
  const instance = new Agent(this._request, data, this._syncEngine, this._baseUrl);
@@ -13398,7 +13436,7 @@ var AgentQuery = class extends chunk342BFYZZ_cjs.Request {
13398
13436
  watch(options) {
13399
13437
  const variables = this._variables;
13400
13438
  const includes = this._includes;
13401
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.AgentDocument, "agent", includes, variables);
13439
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.AgentDocument, "agent", includes, variables);
13402
13440
  const raw = this._syncEngine.watch(
13403
13441
  queryDoc,
13404
13442
  mergedVars,
@@ -13428,7 +13466,7 @@ var AgentQuery = class extends chunk342BFYZZ_cjs.Request {
13428
13466
  }
13429
13467
  /** Include chats in this query (Smart Fetch — single HTTP request). */
13430
13468
  chats(variables, builder) {
13431
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Agent_ChatsDocument, "chats", ["id"]);
13469
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Agent_ChatsDocument, "chats", ["id"]);
13432
13470
  let children;
13433
13471
  if (builder) {
13434
13472
  const sub = new ChatSubBuilder();
@@ -13437,7 +13475,7 @@ var AgentQuery = class extends chunk342BFYZZ_cjs.Request {
13437
13475
  }
13438
13476
  this._includes.push({
13439
13477
  fieldName: "chats",
13440
- fragmentDoc: chunk5IUEWNZ6_cjs.ChatConnectionFragmentDoc,
13478
+ fragmentDoc: chunkGL6CUR7S_cjs.ChatConnectionFragmentDoc,
13441
13479
  variables,
13442
13480
  isConnection: true,
13443
13481
  isList: false,
@@ -13462,18 +13500,18 @@ var Agent_ChatsQuery = class _Agent_ChatsQuery extends chunk342BFYZZ_cjs.Request
13462
13500
  }
13463
13501
  async fetch(options) {
13464
13502
  const variables = this._variables;
13465
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Agent_ChatsDocument, variables, "agent");
13503
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Agent_ChatsDocument, variables, "agent");
13466
13504
  const data = response.agent?.chats;
13467
13505
  return new ChatConnection(this._request, (conn, opts) => new _Agent_ChatsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
13468
13506
  }
13469
13507
  watch(options) {
13470
13508
  const variables = this._variables;
13471
13509
  const raw = this._syncEngine.watch(
13472
- chunk5IUEWNZ6_cjs.Agent_ChatsDocument,
13510
+ chunkGL6CUR7S_cjs.Agent_ChatsDocument,
13473
13511
  variables,
13474
13512
  "agent",
13475
13513
  async (db) => {
13476
- const qr = await db._queryResults.get(buildQueryKey("agent", variables, chunk5IUEWNZ6_cjs.Agent_ChatsDocument));
13514
+ const qr = await db._queryResults.get(buildQueryKey("agent", variables, chunkGL6CUR7S_cjs.Agent_ChatsDocument));
13477
13515
  const nodes = qr ? await db.table("chats").bulkGet(qr.entityIds) : [];
13478
13516
  return { agent: { chats: { __typename: "ChatConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
13479
13517
  }
@@ -13493,7 +13531,7 @@ var AgentsQuery = class _AgentsQuery extends chunk342BFYZZ_cjs.Request {
13493
13531
  }
13494
13532
  async fetch(options) {
13495
13533
  const variables = this._variables;
13496
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.AgentsDocument, "agents", this._includes, variables, true);
13534
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.AgentsDocument, "agents", this._includes, variables, true);
13497
13535
  const response = await this._syncEngine.query(queryDoc, mergedVars, "agents");
13498
13536
  const data = response.agents;
13499
13537
  const connection = new AgentConnection(this._request, (conn, opts) => new _AgentsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
@@ -13510,7 +13548,7 @@ var AgentsQuery = class _AgentsQuery extends chunk342BFYZZ_cjs.Request {
13510
13548
  const subscriptionId = crypto.randomUUID();
13511
13549
  const includes = this._includes;
13512
13550
  const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
13513
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.AgentsDocument, "agents", includes, variables, true);
13551
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.AgentsDocument, "agents", includes, variables, true);
13514
13552
  const raw = this._syncEngine.watch(
13515
13553
  queryDoc,
13516
13554
  mergedVars,
@@ -13545,7 +13583,7 @@ var AgentsQuery = class _AgentsQuery extends chunk342BFYZZ_cjs.Request {
13545
13583
  }
13546
13584
  /** Include chats in this query (Smart Fetch — single HTTP request). */
13547
13585
  chats(variables, builder) {
13548
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Agent_ChatsDocument, "chats", ["id"]);
13586
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Agent_ChatsDocument, "chats", ["id"]);
13549
13587
  let children;
13550
13588
  if (builder) {
13551
13589
  const sub = new ChatSubBuilder();
@@ -13554,7 +13592,7 @@ var AgentsQuery = class _AgentsQuery extends chunk342BFYZZ_cjs.Request {
13554
13592
  }
13555
13593
  this._includes.push({
13556
13594
  fieldName: "chats",
13557
- fragmentDoc: chunk5IUEWNZ6_cjs.ChatConnectionFragmentDoc,
13595
+ fragmentDoc: chunkGL6CUR7S_cjs.ChatConnectionFragmentDoc,
13558
13596
  variables,
13559
13597
  isConnection: true,
13560
13598
  isList: false,
@@ -13580,7 +13618,7 @@ var ArtifactQuery = class extends chunk342BFYZZ_cjs.Request {
13580
13618
  }
13581
13619
  async fetch(options) {
13582
13620
  const variables = this._variables;
13583
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.ArtifactDocument, "artifact", this._includes, variables);
13621
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.ArtifactDocument, "artifact", this._includes, variables);
13584
13622
  const response = await this._syncEngine.query(queryDoc, mergedVars, "artifact");
13585
13623
  const data = response.artifact;
13586
13624
  const instance = new Artifact(this._request, data, this._syncEngine, this._baseUrl);
@@ -13592,7 +13630,7 @@ var ArtifactQuery = class extends chunk342BFYZZ_cjs.Request {
13592
13630
  watch(options) {
13593
13631
  const variables = this._variables;
13594
13632
  const includes = this._includes;
13595
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.ArtifactDocument, "artifact", includes, variables);
13633
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.ArtifactDocument, "artifact", includes, variables);
13596
13634
  const raw = this._syncEngine.watch(
13597
13635
  queryDoc,
13598
13636
  mergedVars,
@@ -13622,7 +13660,7 @@ var ArtifactQuery = class extends chunk342BFYZZ_cjs.Request {
13622
13660
  }
13623
13661
  /** Include chat in this query (Smart Fetch — single HTTP request). */
13624
13662
  chat(variables, builder) {
13625
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Artifact_ChatDocument, "chat", ["id"]);
13663
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Artifact_ChatDocument, "chat", ["id"]);
13626
13664
  let children;
13627
13665
  if (builder) {
13628
13666
  const sub = new ChatSubBuilder();
@@ -13631,7 +13669,7 @@ var ArtifactQuery = class extends chunk342BFYZZ_cjs.Request {
13631
13669
  }
13632
13670
  this._includes.push({
13633
13671
  fieldName: "chat",
13634
- fragmentDoc: chunk5IUEWNZ6_cjs.ChatFragmentDoc,
13672
+ fragmentDoc: chunkGL6CUR7S_cjs.ChatFragmentDoc,
13635
13673
  variables,
13636
13674
  isConnection: false,
13637
13675
  isList: false,
@@ -13648,10 +13686,10 @@ var ArtifactQuery = class extends chunk342BFYZZ_cjs.Request {
13648
13686
  }
13649
13687
  /** Include file in this query (Smart Fetch — single HTTP request). */
13650
13688
  file(variables) {
13651
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Artifact_FileDocument, "file", ["id"]);
13689
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Artifact_FileDocument, "file", ["id"]);
13652
13690
  this._includes.push({
13653
13691
  fieldName: "file",
13654
- fragmentDoc: chunk5IUEWNZ6_cjs.FileFragmentDoc,
13692
+ fragmentDoc: chunkGL6CUR7S_cjs.FileFragmentDoc,
13655
13693
  variables,
13656
13694
  isConnection: false,
13657
13695
  isList: false,
@@ -13667,7 +13705,7 @@ var ArtifactQuery = class extends chunk342BFYZZ_cjs.Request {
13667
13705
  }
13668
13706
  /** Include message in this query (Smart Fetch — single HTTP request). */
13669
13707
  message(variables, builder) {
13670
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Artifact_MessageDocument, "message", ["id"]);
13708
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Artifact_MessageDocument, "message", ["id"]);
13671
13709
  let children;
13672
13710
  if (builder) {
13673
13711
  const sub = new ChatMessageSubBuilder();
@@ -13676,7 +13714,7 @@ var ArtifactQuery = class extends chunk342BFYZZ_cjs.Request {
13676
13714
  }
13677
13715
  this._includes.push({
13678
13716
  fieldName: "message",
13679
- fragmentDoc: chunk5IUEWNZ6_cjs.ChatMessageFragmentDoc,
13717
+ fragmentDoc: chunkGL6CUR7S_cjs.ChatMessageFragmentDoc,
13680
13718
  variables,
13681
13719
  isConnection: false,
13682
13720
  isList: false,
@@ -13700,14 +13738,14 @@ var Artifact_ChatQuery = class extends chunk342BFYZZ_cjs.Request {
13700
13738
  }
13701
13739
  async fetch(options) {
13702
13740
  const variables = this._variables;
13703
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Artifact_ChatDocument, variables, "artifact");
13741
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Artifact_ChatDocument, variables, "artifact");
13704
13742
  const data = response.artifact?.chat;
13705
13743
  return data ? new Chat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
13706
13744
  }
13707
13745
  watch(options) {
13708
13746
  const variables = this._variables;
13709
13747
  const raw = this._syncEngine.watch(
13710
- chunk5IUEWNZ6_cjs.Artifact_ChatDocument,
13748
+ chunkGL6CUR7S_cjs.Artifact_ChatDocument,
13711
13749
  variables,
13712
13750
  "artifact",
13713
13751
  async (db) => {
@@ -13730,14 +13768,14 @@ var Artifact_Chat_InsightQuery = class extends chunk342BFYZZ_cjs.Request {
13730
13768
  }
13731
13769
  async fetch(options) {
13732
13770
  const variables = this._variables;
13733
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Artifact_Chat_InsightDocument, variables, "artifact");
13771
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Artifact_Chat_InsightDocument, variables, "artifact");
13734
13772
  const data = response.artifact?.chat?.insight;
13735
13773
  return data ? new Insight(this._request, data, this._syncEngine, this._baseUrl) : void 0;
13736
13774
  }
13737
13775
  watch(options) {
13738
13776
  const variables = this._variables;
13739
13777
  const raw = this._syncEngine.watch(
13740
- chunk5IUEWNZ6_cjs.Artifact_Chat_InsightDocument,
13778
+ chunkGL6CUR7S_cjs.Artifact_Chat_InsightDocument,
13741
13779
  variables,
13742
13780
  "artifact",
13743
13781
  async (db) => {
@@ -13760,14 +13798,14 @@ var Artifact_FileQuery = class extends chunk342BFYZZ_cjs.Request {
13760
13798
  }
13761
13799
  async fetch(options) {
13762
13800
  const variables = this._variables;
13763
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Artifact_FileDocument, variables, "artifact");
13801
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Artifact_FileDocument, variables, "artifact");
13764
13802
  const data = response.artifact?.file;
13765
13803
  return data ? new File(this._request, data, this._syncEngine, this._baseUrl) : void 0;
13766
13804
  }
13767
13805
  watch(options) {
13768
13806
  const variables = this._variables;
13769
13807
  const raw = this._syncEngine.watch(
13770
- chunk5IUEWNZ6_cjs.Artifact_FileDocument,
13808
+ chunkGL6CUR7S_cjs.Artifact_FileDocument,
13771
13809
  variables,
13772
13810
  "artifact",
13773
13811
  async (db) => {
@@ -13790,14 +13828,14 @@ var Artifact_MessageQuery = class extends chunk342BFYZZ_cjs.Request {
13790
13828
  }
13791
13829
  async fetch(options) {
13792
13830
  const variables = this._variables;
13793
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Artifact_MessageDocument, variables, "artifact");
13831
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Artifact_MessageDocument, variables, "artifact");
13794
13832
  const data = response.artifact?.message;
13795
13833
  return data ? new ChatMessage(this._request, data, this._syncEngine, this._baseUrl) : void 0;
13796
13834
  }
13797
13835
  watch(options) {
13798
13836
  const variables = this._variables;
13799
13837
  const raw = this._syncEngine.watch(
13800
- chunk5IUEWNZ6_cjs.Artifact_MessageDocument,
13838
+ chunkGL6CUR7S_cjs.Artifact_MessageDocument,
13801
13839
  variables,
13802
13840
  "artifact",
13803
13841
  async (db) => {
@@ -13820,14 +13858,14 @@ var Artifact_Message_ChatQuery = class extends chunk342BFYZZ_cjs.Request {
13820
13858
  }
13821
13859
  async fetch(options) {
13822
13860
  const variables = this._variables;
13823
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Artifact_Message_ChatDocument, variables, "artifact");
13861
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Artifact_Message_ChatDocument, variables, "artifact");
13824
13862
  const data = response.artifact?.message?.chat;
13825
13863
  return data ? new Chat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
13826
13864
  }
13827
13865
  watch(options) {
13828
13866
  const variables = this._variables;
13829
13867
  const raw = this._syncEngine.watch(
13830
- chunk5IUEWNZ6_cjs.Artifact_Message_ChatDocument,
13868
+ chunkGL6CUR7S_cjs.Artifact_Message_ChatDocument,
13831
13869
  variables,
13832
13870
  "artifact",
13833
13871
  async (db) => {
@@ -13849,7 +13887,7 @@ var Artifact_Message_ContentsQuery = class extends chunk342BFYZZ_cjs.Request {
13849
13887
  this._variables = variables;
13850
13888
  }
13851
13889
  async fetch(options) {
13852
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Artifact_Message_ContentsDocument, this._variables, "artifact");
13890
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Artifact_Message_ContentsDocument, this._variables, "artifact");
13853
13891
  const data = response.artifact?.message?.contents;
13854
13892
  if (!Array.isArray(data)) return [];
13855
13893
  return data.map((item) => new ContentBlock(this._request, item, this._syncEngine, this._baseUrl));
@@ -13863,14 +13901,14 @@ var Artifact_Message_FeedbackQuery = class extends chunk342BFYZZ_cjs.Request {
13863
13901
  }
13864
13902
  async fetch(options) {
13865
13903
  const variables = this._variables;
13866
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Artifact_Message_FeedbackDocument, variables, "artifact");
13904
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Artifact_Message_FeedbackDocument, variables, "artifact");
13867
13905
  const data = response.artifact?.message?.feedback;
13868
13906
  return data ? new Feedback(this._request, data, this._syncEngine, this._baseUrl) : void 0;
13869
13907
  }
13870
13908
  watch(options) {
13871
13909
  const variables = this._variables;
13872
13910
  const raw = this._syncEngine.watch(
13873
- chunk5IUEWNZ6_cjs.Artifact_Message_FeedbackDocument,
13911
+ chunkGL6CUR7S_cjs.Artifact_Message_FeedbackDocument,
13874
13912
  variables,
13875
13913
  "artifact",
13876
13914
  async (db) => {
@@ -13894,7 +13932,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk342BFYZZ_cjs.Request {
13894
13932
  }
13895
13933
  async fetch(options) {
13896
13934
  const variables = this._variables;
13897
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.ArtifactsDocument, "artifacts", this._includes, variables, true);
13935
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.ArtifactsDocument, "artifacts", this._includes, variables, true);
13898
13936
  const response = await this._syncEngine.query(queryDoc, mergedVars, "artifacts");
13899
13937
  const data = response.artifacts;
13900
13938
  const connection = new ArtifactConnection(this._request, (conn, opts) => new _ArtifactsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
@@ -13911,7 +13949,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk342BFYZZ_cjs.Request {
13911
13949
  const subscriptionId = crypto.randomUUID();
13912
13950
  const includes = this._includes;
13913
13951
  const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
13914
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.ArtifactsDocument, "artifacts", includes, variables, true);
13952
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.ArtifactsDocument, "artifacts", includes, variables, true);
13915
13953
  const raw = this._syncEngine.watch(
13916
13954
  queryDoc,
13917
13955
  mergedVars,
@@ -13946,7 +13984,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk342BFYZZ_cjs.Request {
13946
13984
  }
13947
13985
  /** Include chat in this query (Smart Fetch — single HTTP request). */
13948
13986
  chat(variables, builder) {
13949
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Artifact_ChatDocument, "chat", ["id"]);
13987
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Artifact_ChatDocument, "chat", ["id"]);
13950
13988
  let children;
13951
13989
  if (builder) {
13952
13990
  const sub = new ChatSubBuilder();
@@ -13955,7 +13993,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk342BFYZZ_cjs.Request {
13955
13993
  }
13956
13994
  this._includes.push({
13957
13995
  fieldName: "chat",
13958
- fragmentDoc: chunk5IUEWNZ6_cjs.ChatFragmentDoc,
13996
+ fragmentDoc: chunkGL6CUR7S_cjs.ChatFragmentDoc,
13959
13997
  variables,
13960
13998
  isConnection: false,
13961
13999
  isList: false,
@@ -13972,10 +14010,10 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk342BFYZZ_cjs.Request {
13972
14010
  }
13973
14011
  /** Include file in this query (Smart Fetch — single HTTP request). */
13974
14012
  file(variables) {
13975
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Artifact_FileDocument, "file", ["id"]);
14013
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Artifact_FileDocument, "file", ["id"]);
13976
14014
  this._includes.push({
13977
14015
  fieldName: "file",
13978
- fragmentDoc: chunk5IUEWNZ6_cjs.FileFragmentDoc,
14016
+ fragmentDoc: chunkGL6CUR7S_cjs.FileFragmentDoc,
13979
14017
  variables,
13980
14018
  isConnection: false,
13981
14019
  isList: false,
@@ -13991,7 +14029,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk342BFYZZ_cjs.Request {
13991
14029
  }
13992
14030
  /** Include message in this query (Smart Fetch — single HTTP request). */
13993
14031
  message(variables, builder) {
13994
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Artifact_MessageDocument, "message", ["id"]);
14032
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Artifact_MessageDocument, "message", ["id"]);
13995
14033
  let children;
13996
14034
  if (builder) {
13997
14035
  const sub = new ChatMessageSubBuilder();
@@ -14000,7 +14038,7 @@ var ArtifactsQuery = class _ArtifactsQuery extends chunk342BFYZZ_cjs.Request {
14000
14038
  }
14001
14039
  this._includes.push({
14002
14040
  fieldName: "message",
14003
- fragmentDoc: chunk5IUEWNZ6_cjs.ChatMessageFragmentDoc,
14041
+ fragmentDoc: chunkGL6CUR7S_cjs.ChatMessageFragmentDoc,
14004
14042
  variables,
14005
14043
  isConnection: false,
14006
14044
  isList: false,
@@ -14025,7 +14063,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
14025
14063
  }
14026
14064
  async fetch(options) {
14027
14065
  const variables = this._variables;
14028
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.ChatDocument, "chat", this._includes, variables);
14066
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.ChatDocument, "chat", this._includes, variables);
14029
14067
  const response = await this._syncEngine.query(queryDoc, mergedVars, "chat");
14030
14068
  const data = response.chat;
14031
14069
  const instance = new Chat(this._request, data, this._syncEngine, this._baseUrl);
@@ -14037,7 +14075,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
14037
14075
  watch(options) {
14038
14076
  const variables = this._variables;
14039
14077
  const includes = this._includes;
14040
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.ChatDocument, "chat", includes, variables);
14078
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.ChatDocument, "chat", includes, variables);
14041
14079
  const raw = this._syncEngine.watch(
14042
14080
  queryDoc,
14043
14081
  mergedVars,
@@ -14067,7 +14105,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
14067
14105
  }
14068
14106
  /** Include agents in this query (Smart Fetch — single HTTP request). */
14069
14107
  agents(variables, builder) {
14070
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Chat_AgentsDocument, "agents", ["id"]);
14108
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Chat_AgentsDocument, "agents", ["id"]);
14071
14109
  let children;
14072
14110
  if (builder) {
14073
14111
  const sub = new AgentSubBuilder();
@@ -14076,7 +14114,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
14076
14114
  }
14077
14115
  this._includes.push({
14078
14116
  fieldName: "agents",
14079
- fragmentDoc: chunk5IUEWNZ6_cjs.AgentConnectionFragmentDoc,
14117
+ fragmentDoc: chunkGL6CUR7S_cjs.AgentConnectionFragmentDoc,
14080
14118
  variables,
14081
14119
  isConnection: true,
14082
14120
  isList: false,
@@ -14094,7 +14132,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
14094
14132
  }
14095
14133
  /** Include artifacts in this query (Smart Fetch — single HTTP request). */
14096
14134
  artifacts(variables, builder) {
14097
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Chat_ArtifactsDocument, "artifacts", ["id"]);
14135
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Chat_ArtifactsDocument, "artifacts", ["id"]);
14098
14136
  let children;
14099
14137
  if (builder) {
14100
14138
  const sub = new ArtifactSubBuilder();
@@ -14103,7 +14141,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
14103
14141
  }
14104
14142
  this._includes.push({
14105
14143
  fieldName: "artifacts",
14106
- fragmentDoc: chunk5IUEWNZ6_cjs.ArtifactConnectionFragmentDoc,
14144
+ fragmentDoc: chunkGL6CUR7S_cjs.ArtifactConnectionFragmentDoc,
14107
14145
  variables,
14108
14146
  isConnection: true,
14109
14147
  isList: false,
@@ -14121,7 +14159,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
14121
14159
  }
14122
14160
  /** Include insight in this query (Smart Fetch — single HTTP request). */
14123
14161
  insight(variables, builder) {
14124
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Chat_InsightDocument, "insight", ["id"]);
14162
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Chat_InsightDocument, "insight", ["id"]);
14125
14163
  let children;
14126
14164
  if (builder) {
14127
14165
  const sub = new InsightSubBuilder();
@@ -14130,7 +14168,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
14130
14168
  }
14131
14169
  this._includes.push({
14132
14170
  fieldName: "insight",
14133
- fragmentDoc: chunk5IUEWNZ6_cjs.InsightFragmentDoc,
14171
+ fragmentDoc: chunkGL6CUR7S_cjs.InsightFragmentDoc,
14134
14172
  variables,
14135
14173
  isConnection: false,
14136
14174
  isList: false,
@@ -14147,7 +14185,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
14147
14185
  }
14148
14186
  /** Include messages in this query (Smart Fetch — single HTTP request). */
14149
14187
  messages(variables, builder) {
14150
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Chat_MessagesDocument, "messages", ["id"]);
14188
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Chat_MessagesDocument, "messages", ["id"]);
14151
14189
  let children;
14152
14190
  if (builder) {
14153
14191
  const sub = new ChatMessageSubBuilder();
@@ -14156,7 +14194,7 @@ var ChatQuery = class extends chunk342BFYZZ_cjs.Request {
14156
14194
  }
14157
14195
  this._includes.push({
14158
14196
  fieldName: "messages",
14159
- fragmentDoc: chunk5IUEWNZ6_cjs.ChatMessageConnectionFragmentDoc,
14197
+ fragmentDoc: chunkGL6CUR7S_cjs.ChatMessageConnectionFragmentDoc,
14160
14198
  variables,
14161
14199
  isConnection: true,
14162
14200
  isList: false,
@@ -14181,18 +14219,18 @@ var Chat_AgentsQuery = class _Chat_AgentsQuery extends chunk342BFYZZ_cjs.Request
14181
14219
  }
14182
14220
  async fetch(options) {
14183
14221
  const variables = this._variables;
14184
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Chat_AgentsDocument, variables, "chat");
14222
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Chat_AgentsDocument, variables, "chat");
14185
14223
  const data = response.chat?.agents;
14186
14224
  return new AgentConnection(this._request, (conn, opts) => new _Chat_AgentsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
14187
14225
  }
14188
14226
  watch(options) {
14189
14227
  const variables = this._variables;
14190
14228
  const raw = this._syncEngine.watch(
14191
- chunk5IUEWNZ6_cjs.Chat_AgentsDocument,
14229
+ chunkGL6CUR7S_cjs.Chat_AgentsDocument,
14192
14230
  variables,
14193
14231
  "chat",
14194
14232
  async (db) => {
14195
- const qr = await db._queryResults.get(buildQueryKey("chat", variables, chunk5IUEWNZ6_cjs.Chat_AgentsDocument));
14233
+ const qr = await db._queryResults.get(buildQueryKey("chat", variables, chunkGL6CUR7S_cjs.Chat_AgentsDocument));
14196
14234
  const nodes = qr ? await db.table("agents").bulkGet(qr.entityIds) : [];
14197
14235
  return { chat: { agents: { __typename: "AgentConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
14198
14236
  }
@@ -14211,18 +14249,18 @@ var Chat_ArtifactsQuery = class _Chat_ArtifactsQuery extends chunk342BFYZZ_cjs.R
14211
14249
  }
14212
14250
  async fetch(options) {
14213
14251
  const variables = this._variables;
14214
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Chat_ArtifactsDocument, variables, "chat");
14252
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Chat_ArtifactsDocument, variables, "chat");
14215
14253
  const data = response.chat?.artifacts;
14216
14254
  return new ArtifactConnection(this._request, (conn, opts) => new _Chat_ArtifactsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
14217
14255
  }
14218
14256
  watch(options) {
14219
14257
  const variables = this._variables;
14220
14258
  const raw = this._syncEngine.watch(
14221
- chunk5IUEWNZ6_cjs.Chat_ArtifactsDocument,
14259
+ chunkGL6CUR7S_cjs.Chat_ArtifactsDocument,
14222
14260
  variables,
14223
14261
  "chat",
14224
14262
  async (db) => {
14225
- const qr = await db._queryResults.get(buildQueryKey("chat", variables, chunk5IUEWNZ6_cjs.Chat_ArtifactsDocument));
14263
+ const qr = await db._queryResults.get(buildQueryKey("chat", variables, chunkGL6CUR7S_cjs.Chat_ArtifactsDocument));
14226
14264
  const nodes = qr ? await db.table("artifacts").bulkGet(qr.entityIds) : [];
14227
14265
  return { chat: { artifacts: { __typename: "ArtifactConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
14228
14266
  }
@@ -14241,14 +14279,14 @@ var Chat_InsightQuery = class extends chunk342BFYZZ_cjs.Request {
14241
14279
  }
14242
14280
  async fetch(options) {
14243
14281
  const variables = this._variables;
14244
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Chat_InsightDocument, variables, "chat");
14282
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Chat_InsightDocument, variables, "chat");
14245
14283
  const data = response.chat?.insight;
14246
14284
  return data ? new Insight(this._request, data, this._syncEngine, this._baseUrl) : void 0;
14247
14285
  }
14248
14286
  watch(options) {
14249
14287
  const variables = this._variables;
14250
14288
  const raw = this._syncEngine.watch(
14251
- chunk5IUEWNZ6_cjs.Chat_InsightDocument,
14289
+ chunkGL6CUR7S_cjs.Chat_InsightDocument,
14252
14290
  variables,
14253
14291
  "chat",
14254
14292
  async (db) => {
@@ -14270,7 +14308,7 @@ var Chat_Insight_ReportMembersQuery = class extends chunk342BFYZZ_cjs.Request {
14270
14308
  this._variables = variables;
14271
14309
  }
14272
14310
  async fetch(options) {
14273
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Chat_Insight_ReportMembersDocument, this._variables, "chat");
14311
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Chat_Insight_ReportMembersDocument, this._variables, "chat");
14274
14312
  const data = response.chat?.insight?.reportMembers;
14275
14313
  if (!Array.isArray(data)) return [];
14276
14314
  return data.map((item) => new ReportMember(this._request, item, this._syncEngine, this._baseUrl));
@@ -14284,14 +14322,14 @@ var Chat_Insight_ThumbnailFileQuery = class extends chunk342BFYZZ_cjs.Request {
14284
14322
  }
14285
14323
  async fetch(options) {
14286
14324
  const variables = this._variables;
14287
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Chat_Insight_ThumbnailFileDocument, variables, "chat");
14325
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Chat_Insight_ThumbnailFileDocument, variables, "chat");
14288
14326
  const data = response.chat?.insight?.thumbnailFile;
14289
14327
  return data ? new File(this._request, data, this._syncEngine, this._baseUrl) : void 0;
14290
14328
  }
14291
14329
  watch(options) {
14292
14330
  const variables = this._variables;
14293
14331
  const raw = this._syncEngine.watch(
14294
- chunk5IUEWNZ6_cjs.Chat_Insight_ThumbnailFileDocument,
14332
+ chunkGL6CUR7S_cjs.Chat_Insight_ThumbnailFileDocument,
14295
14333
  variables,
14296
14334
  "chat",
14297
14335
  async (db) => {
@@ -14314,18 +14352,18 @@ var Chat_MessagesQuery = class _Chat_MessagesQuery extends chunk342BFYZZ_cjs.Req
14314
14352
  }
14315
14353
  async fetch(options) {
14316
14354
  const variables = this._variables;
14317
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Chat_MessagesDocument, variables, "chat");
14355
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Chat_MessagesDocument, variables, "chat");
14318
14356
  const data = response.chat?.messages;
14319
14357
  return new ChatMessageConnection(this._request, (conn, opts) => new _Chat_MessagesQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
14320
14358
  }
14321
14359
  watch(options) {
14322
14360
  const variables = this._variables;
14323
14361
  const raw = this._syncEngine.watch(
14324
- chunk5IUEWNZ6_cjs.Chat_MessagesDocument,
14362
+ chunkGL6CUR7S_cjs.Chat_MessagesDocument,
14325
14363
  variables,
14326
14364
  "chat",
14327
14365
  async (db) => {
14328
- const qr = await db._queryResults.get(buildQueryKey("chat", variables, chunk5IUEWNZ6_cjs.Chat_MessagesDocument));
14366
+ const qr = await db._queryResults.get(buildQueryKey("chat", variables, chunkGL6CUR7S_cjs.Chat_MessagesDocument));
14329
14367
  const nodes = qr ? await db.table("chatMessages").bulkGet(qr.entityIds) : [];
14330
14368
  return { chat: { messages: { __typename: "ChatMessageConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
14331
14369
  }
@@ -14345,7 +14383,7 @@ var ChatMessageQuery = class extends chunk342BFYZZ_cjs.Request {
14345
14383
  }
14346
14384
  async fetch(options) {
14347
14385
  const variables = this._variables;
14348
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.ChatMessageDocument, "chatMessage", this._includes, variables);
14386
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.ChatMessageDocument, "chatMessage", this._includes, variables);
14349
14387
  const response = await this._syncEngine.query(queryDoc, mergedVars, "chatMessage");
14350
14388
  const data = response.chatMessage;
14351
14389
  const instance = new ChatMessage(this._request, data, this._syncEngine, this._baseUrl);
@@ -14357,7 +14395,7 @@ var ChatMessageQuery = class extends chunk342BFYZZ_cjs.Request {
14357
14395
  watch(options) {
14358
14396
  const variables = this._variables;
14359
14397
  const includes = this._includes;
14360
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.ChatMessageDocument, "chatMessage", includes, variables);
14398
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.ChatMessageDocument, "chatMessage", includes, variables);
14361
14399
  const raw = this._syncEngine.watch(
14362
14400
  queryDoc,
14363
14401
  mergedVars,
@@ -14387,7 +14425,7 @@ var ChatMessageQuery = class extends chunk342BFYZZ_cjs.Request {
14387
14425
  }
14388
14426
  /** Include artifacts in this query (Smart Fetch — single HTTP request). */
14389
14427
  artifacts(variables, builder) {
14390
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.ChatMessage_ArtifactsDocument, "artifacts", ["id"]);
14428
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.ChatMessage_ArtifactsDocument, "artifacts", ["id"]);
14391
14429
  let children;
14392
14430
  if (builder) {
14393
14431
  const sub = new ArtifactSubBuilder();
@@ -14396,7 +14434,7 @@ var ChatMessageQuery = class extends chunk342BFYZZ_cjs.Request {
14396
14434
  }
14397
14435
  this._includes.push({
14398
14436
  fieldName: "artifacts",
14399
- fragmentDoc: chunk5IUEWNZ6_cjs.ArtifactConnectionFragmentDoc,
14437
+ fragmentDoc: chunkGL6CUR7S_cjs.ArtifactConnectionFragmentDoc,
14400
14438
  variables,
14401
14439
  isConnection: true,
14402
14440
  isList: false,
@@ -14414,7 +14452,7 @@ var ChatMessageQuery = class extends chunk342BFYZZ_cjs.Request {
14414
14452
  }
14415
14453
  /** Include chat in this query (Smart Fetch — single HTTP request). */
14416
14454
  chat(variables, builder) {
14417
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.ChatMessage_ChatDocument, "chat", ["id"]);
14455
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.ChatMessage_ChatDocument, "chat", ["id"]);
14418
14456
  let children;
14419
14457
  if (builder) {
14420
14458
  const sub = new ChatSubBuilder();
@@ -14423,7 +14461,7 @@ var ChatMessageQuery = class extends chunk342BFYZZ_cjs.Request {
14423
14461
  }
14424
14462
  this._includes.push({
14425
14463
  fieldName: "chat",
14426
- fragmentDoc: chunk5IUEWNZ6_cjs.ChatFragmentDoc,
14464
+ fragmentDoc: chunkGL6CUR7S_cjs.ChatFragmentDoc,
14427
14465
  variables,
14428
14466
  isConnection: false,
14429
14467
  isList: false,
@@ -14440,10 +14478,10 @@ var ChatMessageQuery = class extends chunk342BFYZZ_cjs.Request {
14440
14478
  }
14441
14479
  /** Include contents in this query (Smart Fetch — single HTTP request). */
14442
14480
  contents(variables) {
14443
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.ChatMessage_ContentsDocument, "contents", ["id"]);
14481
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.ChatMessage_ContentsDocument, "contents", ["id"]);
14444
14482
  this._includes.push({
14445
14483
  fieldName: "contents",
14446
- fragmentDoc: chunk5IUEWNZ6_cjs.ContentBlockFragmentDoc,
14484
+ fragmentDoc: chunkGL6CUR7S_cjs.ContentBlockFragmentDoc,
14447
14485
  variables,
14448
14486
  isConnection: false,
14449
14487
  isList: true,
@@ -14459,10 +14497,10 @@ var ChatMessageQuery = class extends chunk342BFYZZ_cjs.Request {
14459
14497
  }
14460
14498
  /** Include feedback in this query (Smart Fetch — single HTTP request). */
14461
14499
  feedback(variables) {
14462
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.ChatMessage_FeedbackDocument, "feedback", ["id"]);
14500
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.ChatMessage_FeedbackDocument, "feedback", ["id"]);
14463
14501
  this._includes.push({
14464
14502
  fieldName: "feedback",
14465
- fragmentDoc: chunk5IUEWNZ6_cjs.FeedbackFragmentDoc,
14503
+ fragmentDoc: chunkGL6CUR7S_cjs.FeedbackFragmentDoc,
14466
14504
  variables,
14467
14505
  isConnection: false,
14468
14506
  isList: false,
@@ -14485,18 +14523,18 @@ var ChatMessage_ArtifactsQuery = class _ChatMessage_ArtifactsQuery extends chunk
14485
14523
  }
14486
14524
  async fetch(options) {
14487
14525
  const variables = this._variables;
14488
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.ChatMessage_ArtifactsDocument, variables, "chatMessage");
14526
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.ChatMessage_ArtifactsDocument, variables, "chatMessage");
14489
14527
  const data = response.chatMessage?.artifacts;
14490
14528
  return new ArtifactConnection(this._request, (conn, opts) => new _ChatMessage_ArtifactsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
14491
14529
  }
14492
14530
  watch(options) {
14493
14531
  const variables = this._variables;
14494
14532
  const raw = this._syncEngine.watch(
14495
- chunk5IUEWNZ6_cjs.ChatMessage_ArtifactsDocument,
14533
+ chunkGL6CUR7S_cjs.ChatMessage_ArtifactsDocument,
14496
14534
  variables,
14497
14535
  "chatMessage",
14498
14536
  async (db) => {
14499
- const qr = await db._queryResults.get(buildQueryKey("chatMessage", variables, chunk5IUEWNZ6_cjs.ChatMessage_ArtifactsDocument));
14537
+ const qr = await db._queryResults.get(buildQueryKey("chatMessage", variables, chunkGL6CUR7S_cjs.ChatMessage_ArtifactsDocument));
14500
14538
  const nodes = qr ? await db.table("artifacts").bulkGet(qr.entityIds) : [];
14501
14539
  return { chatMessage: { artifacts: { __typename: "ArtifactConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
14502
14540
  }
@@ -14515,14 +14553,14 @@ var ChatMessage_ChatQuery = class extends chunk342BFYZZ_cjs.Request {
14515
14553
  }
14516
14554
  async fetch(options) {
14517
14555
  const variables = this._variables;
14518
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.ChatMessage_ChatDocument, variables, "chatMessage");
14556
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.ChatMessage_ChatDocument, variables, "chatMessage");
14519
14557
  const data = response.chatMessage?.chat;
14520
14558
  return data ? new Chat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
14521
14559
  }
14522
14560
  watch(options) {
14523
14561
  const variables = this._variables;
14524
14562
  const raw = this._syncEngine.watch(
14525
- chunk5IUEWNZ6_cjs.ChatMessage_ChatDocument,
14563
+ chunkGL6CUR7S_cjs.ChatMessage_ChatDocument,
14526
14564
  variables,
14527
14565
  "chatMessage",
14528
14566
  async (db) => {
@@ -14545,14 +14583,14 @@ var ChatMessage_Chat_InsightQuery = class extends chunk342BFYZZ_cjs.Request {
14545
14583
  }
14546
14584
  async fetch(options) {
14547
14585
  const variables = this._variables;
14548
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.ChatMessage_Chat_InsightDocument, variables, "chatMessage");
14586
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.ChatMessage_Chat_InsightDocument, variables, "chatMessage");
14549
14587
  const data = response.chatMessage?.chat?.insight;
14550
14588
  return data ? new Insight(this._request, data, this._syncEngine, this._baseUrl) : void 0;
14551
14589
  }
14552
14590
  watch(options) {
14553
14591
  const variables = this._variables;
14554
14592
  const raw = this._syncEngine.watch(
14555
- chunk5IUEWNZ6_cjs.ChatMessage_Chat_InsightDocument,
14593
+ chunkGL6CUR7S_cjs.ChatMessage_Chat_InsightDocument,
14556
14594
  variables,
14557
14595
  "chatMessage",
14558
14596
  async (db) => {
@@ -14574,7 +14612,7 @@ var ChatMessage_ContentsQuery = class extends chunk342BFYZZ_cjs.Request {
14574
14612
  this._variables = variables;
14575
14613
  }
14576
14614
  async fetch(options) {
14577
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.ChatMessage_ContentsDocument, this._variables, "chatMessage");
14615
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.ChatMessage_ContentsDocument, this._variables, "chatMessage");
14578
14616
  const data = response.chatMessage?.contents;
14579
14617
  if (!Array.isArray(data)) return [];
14580
14618
  return data.map((item) => new ContentBlock(this._request, item, this._syncEngine, this._baseUrl));
@@ -14588,14 +14626,14 @@ var ChatMessage_FeedbackQuery = class extends chunk342BFYZZ_cjs.Request {
14588
14626
  }
14589
14627
  async fetch(options) {
14590
14628
  const variables = this._variables;
14591
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.ChatMessage_FeedbackDocument, variables, "chatMessage");
14629
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.ChatMessage_FeedbackDocument, variables, "chatMessage");
14592
14630
  const data = response.chatMessage?.feedback;
14593
14631
  return data ? new Feedback(this._request, data, this._syncEngine, this._baseUrl) : void 0;
14594
14632
  }
14595
14633
  watch(options) {
14596
14634
  const variables = this._variables;
14597
14635
  const raw = this._syncEngine.watch(
14598
- chunk5IUEWNZ6_cjs.ChatMessage_FeedbackDocument,
14636
+ chunkGL6CUR7S_cjs.ChatMessage_FeedbackDocument,
14599
14637
  variables,
14600
14638
  "chatMessage",
14601
14639
  async (db) => {
@@ -14619,7 +14657,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk342BFYZZ_cjs.Reque
14619
14657
  }
14620
14658
  async fetch(options) {
14621
14659
  const variables = this._variables;
14622
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.ChatMessagesDocument, "chatMessages", this._includes, variables, true);
14660
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.ChatMessagesDocument, "chatMessages", this._includes, variables, true);
14623
14661
  const response = await this._syncEngine.query(queryDoc, mergedVars, "chatMessages");
14624
14662
  const data = response.chatMessages;
14625
14663
  const connection = new ChatMessageConnection(this._request, (conn, opts) => new _ChatMessagesQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
@@ -14636,7 +14674,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk342BFYZZ_cjs.Reque
14636
14674
  const subscriptionId = crypto.randomUUID();
14637
14675
  const includes = this._includes;
14638
14676
  const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
14639
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.ChatMessagesDocument, "chatMessages", includes, variables, true);
14677
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.ChatMessagesDocument, "chatMessages", includes, variables, true);
14640
14678
  const raw = this._syncEngine.watch(
14641
14679
  queryDoc,
14642
14680
  mergedVars,
@@ -14671,7 +14709,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk342BFYZZ_cjs.Reque
14671
14709
  }
14672
14710
  /** Include artifacts in this query (Smart Fetch — single HTTP request). */
14673
14711
  artifacts(variables, builder) {
14674
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.ChatMessage_ArtifactsDocument, "artifacts", ["id"]);
14712
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.ChatMessage_ArtifactsDocument, "artifacts", ["id"]);
14675
14713
  let children;
14676
14714
  if (builder) {
14677
14715
  const sub = new ArtifactSubBuilder();
@@ -14680,7 +14718,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk342BFYZZ_cjs.Reque
14680
14718
  }
14681
14719
  this._includes.push({
14682
14720
  fieldName: "artifacts",
14683
- fragmentDoc: chunk5IUEWNZ6_cjs.ArtifactConnectionFragmentDoc,
14721
+ fragmentDoc: chunkGL6CUR7S_cjs.ArtifactConnectionFragmentDoc,
14684
14722
  variables,
14685
14723
  isConnection: true,
14686
14724
  isList: false,
@@ -14698,7 +14736,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk342BFYZZ_cjs.Reque
14698
14736
  }
14699
14737
  /** Include chat in this query (Smart Fetch — single HTTP request). */
14700
14738
  chat(variables, builder) {
14701
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.ChatMessage_ChatDocument, "chat", ["id"]);
14739
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.ChatMessage_ChatDocument, "chat", ["id"]);
14702
14740
  let children;
14703
14741
  if (builder) {
14704
14742
  const sub = new ChatSubBuilder();
@@ -14707,7 +14745,7 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk342BFYZZ_cjs.Reque
14707
14745
  }
14708
14746
  this._includes.push({
14709
14747
  fieldName: "chat",
14710
- fragmentDoc: chunk5IUEWNZ6_cjs.ChatFragmentDoc,
14748
+ fragmentDoc: chunkGL6CUR7S_cjs.ChatFragmentDoc,
14711
14749
  variables,
14712
14750
  isConnection: false,
14713
14751
  isList: false,
@@ -14724,10 +14762,10 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk342BFYZZ_cjs.Reque
14724
14762
  }
14725
14763
  /** Include contents in this query (Smart Fetch — single HTTP request). */
14726
14764
  contents(variables) {
14727
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.ChatMessage_ContentsDocument, "contents", ["id"]);
14765
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.ChatMessage_ContentsDocument, "contents", ["id"]);
14728
14766
  this._includes.push({
14729
14767
  fieldName: "contents",
14730
- fragmentDoc: chunk5IUEWNZ6_cjs.ContentBlockFragmentDoc,
14768
+ fragmentDoc: chunkGL6CUR7S_cjs.ContentBlockFragmentDoc,
14731
14769
  variables,
14732
14770
  isConnection: false,
14733
14771
  isList: true,
@@ -14743,10 +14781,10 @@ var ChatMessagesQuery = class _ChatMessagesQuery extends chunk342BFYZZ_cjs.Reque
14743
14781
  }
14744
14782
  /** Include feedback in this query (Smart Fetch — single HTTP request). */
14745
14783
  feedback(variables) {
14746
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.ChatMessage_FeedbackDocument, "feedback", ["id"]);
14784
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.ChatMessage_FeedbackDocument, "feedback", ["id"]);
14747
14785
  this._includes.push({
14748
14786
  fieldName: "feedback",
14749
- fragmentDoc: chunk5IUEWNZ6_cjs.FeedbackFragmentDoc,
14787
+ fragmentDoc: chunkGL6CUR7S_cjs.FeedbackFragmentDoc,
14750
14788
  variables,
14751
14789
  isConnection: false,
14752
14790
  isList: false,
@@ -14770,7 +14808,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
14770
14808
  }
14771
14809
  async fetch(options) {
14772
14810
  const variables = this._variables;
14773
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.ChatsDocument, "chats", this._includes, variables, true);
14811
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.ChatsDocument, "chats", this._includes, variables, true);
14774
14812
  const response = await this._syncEngine.query(queryDoc, mergedVars, "chats");
14775
14813
  const data = response.chats;
14776
14814
  const connection = new ChatConnection(this._request, (conn, opts) => new _ChatsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
@@ -14787,7 +14825,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
14787
14825
  const subscriptionId = crypto.randomUUID();
14788
14826
  const includes = this._includes;
14789
14827
  const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
14790
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.ChatsDocument, "chats", includes, variables, true);
14828
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.ChatsDocument, "chats", includes, variables, true);
14791
14829
  const raw = this._syncEngine.watch(
14792
14830
  queryDoc,
14793
14831
  mergedVars,
@@ -14822,7 +14860,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
14822
14860
  }
14823
14861
  /** Include agents in this query (Smart Fetch — single HTTP request). */
14824
14862
  agents(variables, builder) {
14825
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Chat_AgentsDocument, "agents", ["id"]);
14863
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Chat_AgentsDocument, "agents", ["id"]);
14826
14864
  let children;
14827
14865
  if (builder) {
14828
14866
  const sub = new AgentSubBuilder();
@@ -14831,7 +14869,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
14831
14869
  }
14832
14870
  this._includes.push({
14833
14871
  fieldName: "agents",
14834
- fragmentDoc: chunk5IUEWNZ6_cjs.AgentConnectionFragmentDoc,
14872
+ fragmentDoc: chunkGL6CUR7S_cjs.AgentConnectionFragmentDoc,
14835
14873
  variables,
14836
14874
  isConnection: true,
14837
14875
  isList: false,
@@ -14849,7 +14887,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
14849
14887
  }
14850
14888
  /** Include artifacts in this query (Smart Fetch — single HTTP request). */
14851
14889
  artifacts(variables, builder) {
14852
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Chat_ArtifactsDocument, "artifacts", ["id"]);
14890
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Chat_ArtifactsDocument, "artifacts", ["id"]);
14853
14891
  let children;
14854
14892
  if (builder) {
14855
14893
  const sub = new ArtifactSubBuilder();
@@ -14858,7 +14896,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
14858
14896
  }
14859
14897
  this._includes.push({
14860
14898
  fieldName: "artifacts",
14861
- fragmentDoc: chunk5IUEWNZ6_cjs.ArtifactConnectionFragmentDoc,
14899
+ fragmentDoc: chunkGL6CUR7S_cjs.ArtifactConnectionFragmentDoc,
14862
14900
  variables,
14863
14901
  isConnection: true,
14864
14902
  isList: false,
@@ -14876,7 +14914,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
14876
14914
  }
14877
14915
  /** Include insight in this query (Smart Fetch — single HTTP request). */
14878
14916
  insight(variables, builder) {
14879
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Chat_InsightDocument, "insight", ["id"]);
14917
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Chat_InsightDocument, "insight", ["id"]);
14880
14918
  let children;
14881
14919
  if (builder) {
14882
14920
  const sub = new InsightSubBuilder();
@@ -14885,7 +14923,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
14885
14923
  }
14886
14924
  this._includes.push({
14887
14925
  fieldName: "insight",
14888
- fragmentDoc: chunk5IUEWNZ6_cjs.InsightFragmentDoc,
14926
+ fragmentDoc: chunkGL6CUR7S_cjs.InsightFragmentDoc,
14889
14927
  variables,
14890
14928
  isConnection: false,
14891
14929
  isList: false,
@@ -14902,7 +14940,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
14902
14940
  }
14903
14941
  /** Include messages in this query (Smart Fetch — single HTTP request). */
14904
14942
  messages(variables, builder) {
14905
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Chat_MessagesDocument, "messages", ["id"]);
14943
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Chat_MessagesDocument, "messages", ["id"]);
14906
14944
  let children;
14907
14945
  if (builder) {
14908
14946
  const sub = new ChatMessageSubBuilder();
@@ -14911,7 +14949,7 @@ var ChatsQuery = class _ChatsQuery extends chunk342BFYZZ_cjs.Request {
14911
14949
  }
14912
14950
  this._includes.push({
14913
14951
  fieldName: "messages",
14914
- fragmentDoc: chunk5IUEWNZ6_cjs.ChatMessageConnectionFragmentDoc,
14952
+ fragmentDoc: chunkGL6CUR7S_cjs.ChatMessageConnectionFragmentDoc,
14915
14953
  variables,
14916
14954
  isConnection: true,
14917
14955
  isList: false,
@@ -14937,7 +14975,7 @@ var DatabaseQuery = class extends chunk342BFYZZ_cjs.Request {
14937
14975
  }
14938
14976
  async fetch(options) {
14939
14977
  const variables = this._variables;
14940
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.DatabaseDocument, "database", this._includes, variables);
14978
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.DatabaseDocument, "database", this._includes, variables);
14941
14979
  const response = await this._syncEngine.query(queryDoc, mergedVars, "database");
14942
14980
  const data = response.database;
14943
14981
  const instance = new Database(this._request, data, this._syncEngine, this._baseUrl);
@@ -14949,7 +14987,7 @@ var DatabaseQuery = class extends chunk342BFYZZ_cjs.Request {
14949
14987
  watch(options) {
14950
14988
  const variables = this._variables;
14951
14989
  const includes = this._includes;
14952
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.DatabaseDocument, "database", includes, variables);
14990
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.DatabaseDocument, "database", includes, variables);
14953
14991
  const raw = this._syncEngine.watch(
14954
14992
  queryDoc,
14955
14993
  mergedVars,
@@ -14979,10 +15017,10 @@ var DatabaseQuery = class extends chunk342BFYZZ_cjs.Request {
14979
15017
  }
14980
15018
  /** Include engine in this query (Smart Fetch — single HTTP request). */
14981
15019
  engine(variables) {
14982
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Database_EngineDocument, "engine", ["id"]);
15020
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Database_EngineDocument, "engine", ["id"]);
14983
15021
  this._includes.push({
14984
15022
  fieldName: "engine",
14985
- fragmentDoc: chunk5IUEWNZ6_cjs.DatabaseEngineFragmentDoc,
15023
+ fragmentDoc: chunkGL6CUR7S_cjs.DatabaseEngineFragmentDoc,
14986
15024
  variables,
14987
15025
  isConnection: false,
14988
15026
  isList: false,
@@ -14998,7 +15036,7 @@ var DatabaseQuery = class extends chunk342BFYZZ_cjs.Request {
14998
15036
  }
14999
15037
  /** Include tables in this query (Smart Fetch — single HTTP request). */
15000
15038
  tables(variables, builder) {
15001
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Database_TablesDocument, "tables", ["id"]);
15039
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Database_TablesDocument, "tables", ["id"]);
15002
15040
  let children;
15003
15041
  if (builder) {
15004
15042
  const sub = new TableSubBuilder();
@@ -15007,7 +15045,7 @@ var DatabaseQuery = class extends chunk342BFYZZ_cjs.Request {
15007
15045
  }
15008
15046
  this._includes.push({
15009
15047
  fieldName: "tables",
15010
- fragmentDoc: chunk5IUEWNZ6_cjs.TableConnectionFragmentDoc,
15048
+ fragmentDoc: chunkGL6CUR7S_cjs.TableConnectionFragmentDoc,
15011
15049
  variables,
15012
15050
  isConnection: true,
15013
15051
  isList: false,
@@ -15032,14 +15070,14 @@ var Database_EngineQuery = class extends chunk342BFYZZ_cjs.Request {
15032
15070
  }
15033
15071
  async fetch(options) {
15034
15072
  const variables = this._variables;
15035
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Database_EngineDocument, variables, "database");
15073
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Database_EngineDocument, variables, "database");
15036
15074
  const data = response.database?.engine;
15037
15075
  return data ? new DatabaseEngine(this._request, data, this._syncEngine, this._baseUrl) : void 0;
15038
15076
  }
15039
15077
  watch(options) {
15040
15078
  const variables = this._variables;
15041
15079
  const raw = this._syncEngine.watch(
15042
- chunk5IUEWNZ6_cjs.Database_EngineDocument,
15080
+ chunkGL6CUR7S_cjs.Database_EngineDocument,
15043
15081
  variables,
15044
15082
  "database",
15045
15083
  async (db) => {
@@ -15062,14 +15100,14 @@ var Database_Engine_CatalogQuery = class extends chunk342BFYZZ_cjs.Request {
15062
15100
  }
15063
15101
  async fetch(options) {
15064
15102
  const variables = this._variables;
15065
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Database_Engine_CatalogDocument, variables, "database");
15103
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Database_Engine_CatalogDocument, variables, "database");
15066
15104
  const data = response.database?.engine?.catalog;
15067
15105
  return data ? new DatabaseCatalog(this._request, data, this._syncEngine, this._baseUrl) : void 0;
15068
15106
  }
15069
15107
  watch(options) {
15070
15108
  const variables = this._variables;
15071
15109
  const raw = this._syncEngine.watch(
15072
- chunk5IUEWNZ6_cjs.Database_Engine_CatalogDocument,
15110
+ chunkGL6CUR7S_cjs.Database_Engine_CatalogDocument,
15073
15111
  variables,
15074
15112
  "database",
15075
15113
  async (db) => {
@@ -15092,18 +15130,18 @@ var Database_TablesQuery = class _Database_TablesQuery extends chunk342BFYZZ_cjs
15092
15130
  }
15093
15131
  async fetch(options) {
15094
15132
  const variables = this._variables;
15095
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Database_TablesDocument, variables, "database");
15133
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Database_TablesDocument, variables, "database");
15096
15134
  const data = response.database?.tables;
15097
15135
  return new TableConnection(this._request, (conn, opts) => new _Database_TablesQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
15098
15136
  }
15099
15137
  watch(options) {
15100
15138
  const variables = this._variables;
15101
15139
  const raw = this._syncEngine.watch(
15102
- chunk5IUEWNZ6_cjs.Database_TablesDocument,
15140
+ chunkGL6CUR7S_cjs.Database_TablesDocument,
15103
15141
  variables,
15104
15142
  "database",
15105
15143
  async (db) => {
15106
- const qr = await db._queryResults.get(buildQueryKey("database", variables, chunk5IUEWNZ6_cjs.Database_TablesDocument));
15144
+ const qr = await db._queryResults.get(buildQueryKey("database", variables, chunkGL6CUR7S_cjs.Database_TablesDocument));
15107
15145
  const nodes = qr ? await db.table("tables").bulkGet(qr.entityIds) : [];
15108
15146
  return { database: { tables: { __typename: "TableConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
15109
15147
  }
@@ -15123,7 +15161,7 @@ var DatabaseCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
15123
15161
  }
15124
15162
  async fetch(options) {
15125
15163
  const variables = this._variables;
15126
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.DatabaseCatalogDocument, "databaseCatalog", this._includes, variables);
15164
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.DatabaseCatalogDocument, "databaseCatalog", this._includes, variables);
15127
15165
  const response = await this._syncEngine.query(queryDoc, mergedVars, "databaseCatalog");
15128
15166
  const data = response.databaseCatalog;
15129
15167
  const instance = new DatabaseCatalog(this._request, data, this._syncEngine, this._baseUrl);
@@ -15135,7 +15173,7 @@ var DatabaseCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
15135
15173
  watch(options) {
15136
15174
  const variables = this._variables;
15137
15175
  const includes = this._includes;
15138
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.DatabaseCatalogDocument, "databaseCatalog", includes, variables);
15176
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.DatabaseCatalogDocument, "databaseCatalog", includes, variables);
15139
15177
  const raw = this._syncEngine.watch(
15140
15178
  queryDoc,
15141
15179
  mergedVars,
@@ -15165,10 +15203,10 @@ var DatabaseCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
15165
15203
  }
15166
15204
  /** Include engine in this query (Smart Fetch — single HTTP request). */
15167
15205
  engine(variables) {
15168
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.DatabaseCatalog_EngineDocument, "engine", []);
15206
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.DatabaseCatalog_EngineDocument, "engine", []);
15169
15207
  this._includes.push({
15170
15208
  fieldName: "engine",
15171
- fragmentDoc: chunk5IUEWNZ6_cjs.DatabaseEngineFragmentDoc,
15209
+ fragmentDoc: chunkGL6CUR7S_cjs.DatabaseEngineFragmentDoc,
15172
15210
  variables,
15173
15211
  isConnection: false,
15174
15212
  isList: false,
@@ -15191,14 +15229,14 @@ var DatabaseCatalog_EngineQuery = class extends chunk342BFYZZ_cjs.Request {
15191
15229
  }
15192
15230
  async fetch(options) {
15193
15231
  const variables = this._variables;
15194
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.DatabaseCatalog_EngineDocument, variables, "databaseCatalog");
15232
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.DatabaseCatalog_EngineDocument, variables, "databaseCatalog");
15195
15233
  const data = response.databaseCatalog?.engine;
15196
15234
  return data ? new DatabaseEngine(this._request, data, this._syncEngine, this._baseUrl) : void 0;
15197
15235
  }
15198
15236
  watch(options) {
15199
15237
  const variables = this._variables;
15200
15238
  const raw = this._syncEngine.watch(
15201
- chunk5IUEWNZ6_cjs.DatabaseCatalog_EngineDocument,
15239
+ chunkGL6CUR7S_cjs.DatabaseCatalog_EngineDocument,
15202
15240
  variables,
15203
15241
  "databaseCatalog",
15204
15242
  async (db) => {
@@ -15222,7 +15260,7 @@ var DatabaseCatalogsQuery = class _DatabaseCatalogsQuery extends chunk342BFYZZ_c
15222
15260
  }
15223
15261
  async fetch(options) {
15224
15262
  const variables = this._variables;
15225
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.DatabaseCatalogsDocument, "databaseCatalogs", this._includes, variables, true);
15263
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.DatabaseCatalogsDocument, "databaseCatalogs", this._includes, variables, true);
15226
15264
  const response = await this._syncEngine.query(queryDoc, mergedVars, "databaseCatalogs");
15227
15265
  const data = response.databaseCatalogs;
15228
15266
  const connection = new DatabaseCatalogConnection(this._request, (conn, opts) => new _DatabaseCatalogsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
@@ -15239,7 +15277,7 @@ var DatabaseCatalogsQuery = class _DatabaseCatalogsQuery extends chunk342BFYZZ_c
15239
15277
  const subscriptionId = crypto.randomUUID();
15240
15278
  const includes = this._includes;
15241
15279
  const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
15242
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.DatabaseCatalogsDocument, "databaseCatalogs", includes, variables, true);
15280
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.DatabaseCatalogsDocument, "databaseCatalogs", includes, variables, true);
15243
15281
  const raw = this._syncEngine.watch(
15244
15282
  queryDoc,
15245
15283
  mergedVars,
@@ -15274,10 +15312,10 @@ var DatabaseCatalogsQuery = class _DatabaseCatalogsQuery extends chunk342BFYZZ_c
15274
15312
  }
15275
15313
  /** Include engine in this query (Smart Fetch — single HTTP request). */
15276
15314
  engine(variables) {
15277
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.DatabaseCatalog_EngineDocument, "engine", []);
15315
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.DatabaseCatalog_EngineDocument, "engine", []);
15278
15316
  this._includes.push({
15279
15317
  fieldName: "engine",
15280
- fragmentDoc: chunk5IUEWNZ6_cjs.DatabaseEngineFragmentDoc,
15318
+ fragmentDoc: chunkGL6CUR7S_cjs.DatabaseEngineFragmentDoc,
15281
15319
  variables,
15282
15320
  isConnection: false,
15283
15321
  isList: false,
@@ -15294,7 +15332,7 @@ var DatabaseCatalogsQuery = class _DatabaseCatalogsQuery extends chunk342BFYZZ_c
15294
15332
  };
15295
15333
  var DatabaseSchemaQuery = class extends chunk342BFYZZ_cjs.Request {
15296
15334
  async fetch(variables) {
15297
- const response = await this._request(chunk5IUEWNZ6_cjs.DatabaseSchemaDocument, variables);
15335
+ const response = await this._request(chunkGL6CUR7S_cjs.DatabaseSchemaDocument, variables);
15298
15336
  return response.databaseSchema;
15299
15337
  }
15300
15338
  };
@@ -15307,7 +15345,7 @@ var DatabasesQuery = class _DatabasesQuery extends chunk342BFYZZ_cjs.Request {
15307
15345
  }
15308
15346
  async fetch(options) {
15309
15347
  const variables = this._variables;
15310
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.DatabasesDocument, "databases", this._includes, variables, true);
15348
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.DatabasesDocument, "databases", this._includes, variables, true);
15311
15349
  const response = await this._syncEngine.query(queryDoc, mergedVars, "databases");
15312
15350
  const data = response.databases;
15313
15351
  const connection = new DatabaseConnection(this._request, (conn, opts) => new _DatabasesQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
@@ -15324,7 +15362,7 @@ var DatabasesQuery = class _DatabasesQuery extends chunk342BFYZZ_cjs.Request {
15324
15362
  const subscriptionId = crypto.randomUUID();
15325
15363
  const includes = this._includes;
15326
15364
  const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
15327
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.DatabasesDocument, "databases", includes, variables, true);
15365
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.DatabasesDocument, "databases", includes, variables, true);
15328
15366
  const raw = this._syncEngine.watch(
15329
15367
  queryDoc,
15330
15368
  mergedVars,
@@ -15359,10 +15397,10 @@ var DatabasesQuery = class _DatabasesQuery extends chunk342BFYZZ_cjs.Request {
15359
15397
  }
15360
15398
  /** Include engine in this query (Smart Fetch — single HTTP request). */
15361
15399
  engine(variables) {
15362
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Database_EngineDocument, "engine", ["id"]);
15400
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Database_EngineDocument, "engine", ["id"]);
15363
15401
  this._includes.push({
15364
15402
  fieldName: "engine",
15365
- fragmentDoc: chunk5IUEWNZ6_cjs.DatabaseEngineFragmentDoc,
15403
+ fragmentDoc: chunkGL6CUR7S_cjs.DatabaseEngineFragmentDoc,
15366
15404
  variables,
15367
15405
  isConnection: false,
15368
15406
  isList: false,
@@ -15378,7 +15416,7 @@ var DatabasesQuery = class _DatabasesQuery extends chunk342BFYZZ_cjs.Request {
15378
15416
  }
15379
15417
  /** Include tables in this query (Smart Fetch — single HTTP request). */
15380
15418
  tables(variables, builder) {
15381
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Database_TablesDocument, "tables", ["id"]);
15419
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Database_TablesDocument, "tables", ["id"]);
15382
15420
  let children;
15383
15421
  if (builder) {
15384
15422
  const sub = new TableSubBuilder();
@@ -15387,7 +15425,7 @@ var DatabasesQuery = class _DatabasesQuery extends chunk342BFYZZ_cjs.Request {
15387
15425
  }
15388
15426
  this._includes.push({
15389
15427
  fieldName: "tables",
15390
- fragmentDoc: chunk5IUEWNZ6_cjs.TableConnectionFragmentDoc,
15428
+ fragmentDoc: chunkGL6CUR7S_cjs.TableConnectionFragmentDoc,
15391
15429
  variables,
15392
15430
  isConnection: true,
15393
15431
  isList: false,
@@ -15413,7 +15451,7 @@ var DocumentQuery = class extends chunk342BFYZZ_cjs.Request {
15413
15451
  }
15414
15452
  async fetch(options) {
15415
15453
  const variables = this._variables;
15416
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.DocumentDocument, "document", this._includes, variables);
15454
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.DocumentDocument, "document", this._includes, variables);
15417
15455
  const response = await this._syncEngine.query(queryDoc, mergedVars, "document");
15418
15456
  const data = response.document;
15419
15457
  const instance = new Document(this._request, data, this._syncEngine, this._baseUrl);
@@ -15425,7 +15463,7 @@ var DocumentQuery = class extends chunk342BFYZZ_cjs.Request {
15425
15463
  watch(options) {
15426
15464
  const variables = this._variables;
15427
15465
  const includes = this._includes;
15428
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.DocumentDocument, "document", includes, variables);
15466
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.DocumentDocument, "document", includes, variables);
15429
15467
  const raw = this._syncEngine.watch(
15430
15468
  queryDoc,
15431
15469
  mergedVars,
@@ -15455,10 +15493,10 @@ var DocumentQuery = class extends chunk342BFYZZ_cjs.Request {
15455
15493
  }
15456
15494
  /** Include contents in this query (Smart Fetch — single HTTP request). */
15457
15495
  contents(variables) {
15458
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Document_ContentsDocument, "contents", ["id"]);
15496
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Document_ContentsDocument, "contents", ["id"]);
15459
15497
  this._includes.push({
15460
15498
  fieldName: "contents",
15461
- fragmentDoc: chunk5IUEWNZ6_cjs.DocumentContentFragmentDoc,
15499
+ fragmentDoc: chunkGL6CUR7S_cjs.DocumentContentFragmentDoc,
15462
15500
  variables,
15463
15501
  isConnection: false,
15464
15502
  isList: true,
@@ -15474,10 +15512,10 @@ var DocumentQuery = class extends chunk342BFYZZ_cjs.Request {
15474
15512
  }
15475
15513
  /** Include file in this query (Smart Fetch — single HTTP request). */
15476
15514
  file(variables) {
15477
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Document_FileDocument, "file", ["id"]);
15515
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Document_FileDocument, "file", ["id"]);
15478
15516
  this._includes.push({
15479
15517
  fieldName: "file",
15480
- fragmentDoc: chunk5IUEWNZ6_cjs.FileFragmentDoc,
15518
+ fragmentDoc: chunkGL6CUR7S_cjs.FileFragmentDoc,
15481
15519
  variables,
15482
15520
  isConnection: false,
15483
15521
  isList: false,
@@ -15493,10 +15531,10 @@ var DocumentQuery = class extends chunk342BFYZZ_cjs.Request {
15493
15531
  }
15494
15532
  /** Include format in this query (Smart Fetch — single HTTP request). */
15495
15533
  format(variables) {
15496
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Document_FormatDocument, "format", ["id"]);
15534
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Document_FormatDocument, "format", ["id"]);
15497
15535
  this._includes.push({
15498
15536
  fieldName: "format",
15499
- fragmentDoc: chunk5IUEWNZ6_cjs.DocumentFormatFragmentDoc,
15537
+ fragmentDoc: chunkGL6CUR7S_cjs.DocumentFormatFragmentDoc,
15500
15538
  variables,
15501
15539
  isConnection: false,
15502
15540
  isList: false,
@@ -15512,7 +15550,7 @@ var DocumentQuery = class extends chunk342BFYZZ_cjs.Request {
15512
15550
  }
15513
15551
  /** Include tables in this query (Smart Fetch — single HTTP request). */
15514
15552
  tables(variables, builder) {
15515
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Document_TablesDocument, "tables", ["id"]);
15553
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Document_TablesDocument, "tables", ["id"]);
15516
15554
  let children;
15517
15555
  if (builder) {
15518
15556
  const sub = new TableSubBuilder();
@@ -15521,7 +15559,7 @@ var DocumentQuery = class extends chunk342BFYZZ_cjs.Request {
15521
15559
  }
15522
15560
  this._includes.push({
15523
15561
  fieldName: "tables",
15524
- fragmentDoc: chunk5IUEWNZ6_cjs.TableConnectionFragmentDoc,
15562
+ fragmentDoc: chunkGL6CUR7S_cjs.TableConnectionFragmentDoc,
15525
15563
  variables,
15526
15564
  isConnection: true,
15527
15565
  isList: false,
@@ -15545,7 +15583,7 @@ var Document_ContentsQuery = class extends chunk342BFYZZ_cjs.Request {
15545
15583
  this._variables = variables;
15546
15584
  }
15547
15585
  async fetch(options) {
15548
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Document_ContentsDocument, this._variables, "document");
15586
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Document_ContentsDocument, this._variables, "document");
15549
15587
  const data = response.document?.contents;
15550
15588
  if (!Array.isArray(data)) return [];
15551
15589
  return data.map((item) => new DocumentContent(this._request, item, this._syncEngine, this._baseUrl));
@@ -15559,14 +15597,14 @@ var Document_FileQuery = class extends chunk342BFYZZ_cjs.Request {
15559
15597
  }
15560
15598
  async fetch(options) {
15561
15599
  const variables = this._variables;
15562
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Document_FileDocument, variables, "document");
15600
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Document_FileDocument, variables, "document");
15563
15601
  const data = response.document?.file;
15564
15602
  return data ? new File(this._request, data, this._syncEngine, this._baseUrl) : void 0;
15565
15603
  }
15566
15604
  watch(options) {
15567
15605
  const variables = this._variables;
15568
15606
  const raw = this._syncEngine.watch(
15569
- chunk5IUEWNZ6_cjs.Document_FileDocument,
15607
+ chunkGL6CUR7S_cjs.Document_FileDocument,
15570
15608
  variables,
15571
15609
  "document",
15572
15610
  async (db) => {
@@ -15589,14 +15627,14 @@ var Document_FormatQuery = class extends chunk342BFYZZ_cjs.Request {
15589
15627
  }
15590
15628
  async fetch(options) {
15591
15629
  const variables = this._variables;
15592
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Document_FormatDocument, variables, "document");
15630
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Document_FormatDocument, variables, "document");
15593
15631
  const data = response.document?.format;
15594
15632
  return data ? new DocumentFormat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
15595
15633
  }
15596
15634
  watch(options) {
15597
15635
  const variables = this._variables;
15598
15636
  const raw = this._syncEngine.watch(
15599
- chunk5IUEWNZ6_cjs.Document_FormatDocument,
15637
+ chunkGL6CUR7S_cjs.Document_FormatDocument,
15600
15638
  variables,
15601
15639
  "document",
15602
15640
  async (db) => {
@@ -15619,14 +15657,14 @@ var Document_Format_CatalogQuery = class extends chunk342BFYZZ_cjs.Request {
15619
15657
  }
15620
15658
  async fetch(options) {
15621
15659
  const variables = this._variables;
15622
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Document_Format_CatalogDocument, variables, "document");
15660
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Document_Format_CatalogDocument, variables, "document");
15623
15661
  const data = response.document?.format?.catalog;
15624
15662
  return data ? new DocumentCatalog(this._request, data, this._syncEngine, this._baseUrl) : void 0;
15625
15663
  }
15626
15664
  watch(options) {
15627
15665
  const variables = this._variables;
15628
15666
  const raw = this._syncEngine.watch(
15629
- chunk5IUEWNZ6_cjs.Document_Format_CatalogDocument,
15667
+ chunkGL6CUR7S_cjs.Document_Format_CatalogDocument,
15630
15668
  variables,
15631
15669
  "document",
15632
15670
  async (db) => {
@@ -15649,18 +15687,18 @@ var Document_TablesQuery = class _Document_TablesQuery extends chunk342BFYZZ_cjs
15649
15687
  }
15650
15688
  async fetch(options) {
15651
15689
  const variables = this._variables;
15652
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Document_TablesDocument, variables, "document");
15690
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Document_TablesDocument, variables, "document");
15653
15691
  const data = response.document?.tables;
15654
15692
  return new TableConnection(this._request, (conn, opts) => new _Document_TablesQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
15655
15693
  }
15656
15694
  watch(options) {
15657
15695
  const variables = this._variables;
15658
15696
  const raw = this._syncEngine.watch(
15659
- chunk5IUEWNZ6_cjs.Document_TablesDocument,
15697
+ chunkGL6CUR7S_cjs.Document_TablesDocument,
15660
15698
  variables,
15661
15699
  "document",
15662
15700
  async (db) => {
15663
- const qr = await db._queryResults.get(buildQueryKey("document", variables, chunk5IUEWNZ6_cjs.Document_TablesDocument));
15701
+ const qr = await db._queryResults.get(buildQueryKey("document", variables, chunkGL6CUR7S_cjs.Document_TablesDocument));
15664
15702
  const nodes = qr ? await db.table("tables").bulkGet(qr.entityIds) : [];
15665
15703
  return { document: { tables: { __typename: "TableConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
15666
15704
  }
@@ -15680,7 +15718,7 @@ var DocumentCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
15680
15718
  }
15681
15719
  async fetch(options) {
15682
15720
  const variables = this._variables;
15683
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.DocumentCatalogDocument, "documentCatalog", this._includes, variables);
15721
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.DocumentCatalogDocument, "documentCatalog", this._includes, variables);
15684
15722
  const response = await this._syncEngine.query(queryDoc, mergedVars, "documentCatalog");
15685
15723
  const data = response.documentCatalog;
15686
15724
  const instance = new DocumentCatalog(this._request, data, this._syncEngine, this._baseUrl);
@@ -15692,7 +15730,7 @@ var DocumentCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
15692
15730
  watch(options) {
15693
15731
  const variables = this._variables;
15694
15732
  const includes = this._includes;
15695
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.DocumentCatalogDocument, "documentCatalog", includes, variables);
15733
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.DocumentCatalogDocument, "documentCatalog", includes, variables);
15696
15734
  const raw = this._syncEngine.watch(
15697
15735
  queryDoc,
15698
15736
  mergedVars,
@@ -15722,10 +15760,10 @@ var DocumentCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
15722
15760
  }
15723
15761
  /** Include format in this query (Smart Fetch — single HTTP request). */
15724
15762
  format(variables) {
15725
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.DocumentCatalog_FormatDocument, "format", []);
15763
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.DocumentCatalog_FormatDocument, "format", []);
15726
15764
  this._includes.push({
15727
15765
  fieldName: "format",
15728
- fragmentDoc: chunk5IUEWNZ6_cjs.DocumentFormatFragmentDoc,
15766
+ fragmentDoc: chunkGL6CUR7S_cjs.DocumentFormatFragmentDoc,
15729
15767
  variables,
15730
15768
  isConnection: false,
15731
15769
  isList: false,
@@ -15748,14 +15786,14 @@ var DocumentCatalog_FormatQuery = class extends chunk342BFYZZ_cjs.Request {
15748
15786
  }
15749
15787
  async fetch(options) {
15750
15788
  const variables = this._variables;
15751
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.DocumentCatalog_FormatDocument, variables, "documentCatalog");
15789
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.DocumentCatalog_FormatDocument, variables, "documentCatalog");
15752
15790
  const data = response.documentCatalog?.format;
15753
15791
  return data ? new DocumentFormat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
15754
15792
  }
15755
15793
  watch(options) {
15756
15794
  const variables = this._variables;
15757
15795
  const raw = this._syncEngine.watch(
15758
- chunk5IUEWNZ6_cjs.DocumentCatalog_FormatDocument,
15796
+ chunkGL6CUR7S_cjs.DocumentCatalog_FormatDocument,
15759
15797
  variables,
15760
15798
  "documentCatalog",
15761
15799
  async (db) => {
@@ -15779,7 +15817,7 @@ var DocumentCatalogsQuery = class _DocumentCatalogsQuery extends chunk342BFYZZ_c
15779
15817
  }
15780
15818
  async fetch(options) {
15781
15819
  const variables = this._variables;
15782
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.DocumentCatalogsDocument, "documentCatalogs", this._includes, variables, true);
15820
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.DocumentCatalogsDocument, "documentCatalogs", this._includes, variables, true);
15783
15821
  const response = await this._syncEngine.query(queryDoc, mergedVars, "documentCatalogs");
15784
15822
  const data = response.documentCatalogs;
15785
15823
  const connection = new DocumentCatalogConnection(this._request, (conn, opts) => new _DocumentCatalogsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
@@ -15796,7 +15834,7 @@ var DocumentCatalogsQuery = class _DocumentCatalogsQuery extends chunk342BFYZZ_c
15796
15834
  const subscriptionId = crypto.randomUUID();
15797
15835
  const includes = this._includes;
15798
15836
  const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
15799
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.DocumentCatalogsDocument, "documentCatalogs", includes, variables, true);
15837
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.DocumentCatalogsDocument, "documentCatalogs", includes, variables, true);
15800
15838
  const raw = this._syncEngine.watch(
15801
15839
  queryDoc,
15802
15840
  mergedVars,
@@ -15831,10 +15869,10 @@ var DocumentCatalogsQuery = class _DocumentCatalogsQuery extends chunk342BFYZZ_c
15831
15869
  }
15832
15870
  /** Include format in this query (Smart Fetch — single HTTP request). */
15833
15871
  format(variables) {
15834
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.DocumentCatalog_FormatDocument, "format", []);
15872
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.DocumentCatalog_FormatDocument, "format", []);
15835
15873
  this._includes.push({
15836
15874
  fieldName: "format",
15837
- fragmentDoc: chunk5IUEWNZ6_cjs.DocumentFormatFragmentDoc,
15875
+ fragmentDoc: chunkGL6CUR7S_cjs.DocumentFormatFragmentDoc,
15838
15876
  variables,
15839
15877
  isConnection: false,
15840
15878
  isList: false,
@@ -15858,7 +15896,7 @@ var DocumentsQuery = class _DocumentsQuery extends chunk342BFYZZ_cjs.Request {
15858
15896
  }
15859
15897
  async fetch(options) {
15860
15898
  const variables = this._variables;
15861
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.DocumentsDocument, "documents", this._includes, variables, true);
15899
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.DocumentsDocument, "documents", this._includes, variables, true);
15862
15900
  const response = await this._syncEngine.query(queryDoc, mergedVars, "documents");
15863
15901
  const data = response.documents;
15864
15902
  const connection = new DocumentConnection(this._request, (conn, opts) => new _DocumentsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
@@ -15875,7 +15913,7 @@ var DocumentsQuery = class _DocumentsQuery extends chunk342BFYZZ_cjs.Request {
15875
15913
  const subscriptionId = crypto.randomUUID();
15876
15914
  const includes = this._includes;
15877
15915
  const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
15878
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.DocumentsDocument, "documents", includes, variables, true);
15916
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.DocumentsDocument, "documents", includes, variables, true);
15879
15917
  const raw = this._syncEngine.watch(
15880
15918
  queryDoc,
15881
15919
  mergedVars,
@@ -15910,10 +15948,10 @@ var DocumentsQuery = class _DocumentsQuery extends chunk342BFYZZ_cjs.Request {
15910
15948
  }
15911
15949
  /** Include contents in this query (Smart Fetch — single HTTP request). */
15912
15950
  contents(variables) {
15913
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Document_ContentsDocument, "contents", ["id"]);
15951
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Document_ContentsDocument, "contents", ["id"]);
15914
15952
  this._includes.push({
15915
15953
  fieldName: "contents",
15916
- fragmentDoc: chunk5IUEWNZ6_cjs.DocumentContentFragmentDoc,
15954
+ fragmentDoc: chunkGL6CUR7S_cjs.DocumentContentFragmentDoc,
15917
15955
  variables,
15918
15956
  isConnection: false,
15919
15957
  isList: true,
@@ -15929,10 +15967,10 @@ var DocumentsQuery = class _DocumentsQuery extends chunk342BFYZZ_cjs.Request {
15929
15967
  }
15930
15968
  /** Include file in this query (Smart Fetch — single HTTP request). */
15931
15969
  file(variables) {
15932
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Document_FileDocument, "file", ["id"]);
15970
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Document_FileDocument, "file", ["id"]);
15933
15971
  this._includes.push({
15934
15972
  fieldName: "file",
15935
- fragmentDoc: chunk5IUEWNZ6_cjs.FileFragmentDoc,
15973
+ fragmentDoc: chunkGL6CUR7S_cjs.FileFragmentDoc,
15936
15974
  variables,
15937
15975
  isConnection: false,
15938
15976
  isList: false,
@@ -15948,10 +15986,10 @@ var DocumentsQuery = class _DocumentsQuery extends chunk342BFYZZ_cjs.Request {
15948
15986
  }
15949
15987
  /** Include format in this query (Smart Fetch — single HTTP request). */
15950
15988
  format(variables) {
15951
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Document_FormatDocument, "format", ["id"]);
15989
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Document_FormatDocument, "format", ["id"]);
15952
15990
  this._includes.push({
15953
15991
  fieldName: "format",
15954
- fragmentDoc: chunk5IUEWNZ6_cjs.DocumentFormatFragmentDoc,
15992
+ fragmentDoc: chunkGL6CUR7S_cjs.DocumentFormatFragmentDoc,
15955
15993
  variables,
15956
15994
  isConnection: false,
15957
15995
  isList: false,
@@ -15967,7 +16005,7 @@ var DocumentsQuery = class _DocumentsQuery extends chunk342BFYZZ_cjs.Request {
15967
16005
  }
15968
16006
  /** Include tables in this query (Smart Fetch — single HTTP request). */
15969
16007
  tables(variables, builder) {
15970
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Document_TablesDocument, "tables", ["id"]);
16008
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Document_TablesDocument, "tables", ["id"]);
15971
16009
  let children;
15972
16010
  if (builder) {
15973
16011
  const sub = new TableSubBuilder();
@@ -15976,7 +16014,7 @@ var DocumentsQuery = class _DocumentsQuery extends chunk342BFYZZ_cjs.Request {
15976
16014
  }
15977
16015
  this._includes.push({
15978
16016
  fieldName: "tables",
15979
- fragmentDoc: chunk5IUEWNZ6_cjs.TableConnectionFragmentDoc,
16017
+ fragmentDoc: chunkGL6CUR7S_cjs.TableConnectionFragmentDoc,
15980
16018
  variables,
15981
16019
  isConnection: true,
15982
16020
  isList: false,
@@ -15995,13 +16033,13 @@ var DocumentsQuery = class _DocumentsQuery extends chunk342BFYZZ_cjs.Request {
15995
16033
  };
15996
16034
  var ExportQuery = class extends chunk342BFYZZ_cjs.Request {
15997
16035
  async fetch(variables) {
15998
- const response = await this._request(chunk5IUEWNZ6_cjs.ExportDocument, variables);
16036
+ const response = await this._request(chunkGL6CUR7S_cjs.ExportDocument, variables);
15999
16037
  return response.export;
16000
16038
  }
16001
16039
  };
16002
16040
  var ExportWithInsightIdQuery = class extends chunk342BFYZZ_cjs.Request {
16003
16041
  async fetch(variables) {
16004
- const response = await this._request(chunk5IUEWNZ6_cjs.ExportWithInsightIdDocument, variables);
16042
+ const response = await this._request(chunkGL6CUR7S_cjs.ExportWithInsightIdDocument, variables);
16005
16043
  return response.exportWithInsightId;
16006
16044
  }
16007
16045
  };
@@ -16014,7 +16052,7 @@ var FeedItemQuery = class extends chunk342BFYZZ_cjs.Request {
16014
16052
  }
16015
16053
  async fetch(options) {
16016
16054
  const variables = this._variables;
16017
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.FeedItemDocument, "feedItem", this._includes, variables);
16055
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.FeedItemDocument, "feedItem", this._includes, variables);
16018
16056
  const response = await this._syncEngine.query(queryDoc, mergedVars, "feedItem");
16019
16057
  const data = response.feedItem;
16020
16058
  if (!data) return void 0;
@@ -16027,7 +16065,7 @@ var FeedItemQuery = class extends chunk342BFYZZ_cjs.Request {
16027
16065
  watch(options) {
16028
16066
  const variables = this._variables;
16029
16067
  const includes = this._includes;
16030
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.FeedItemDocument, "feedItem", includes, variables);
16068
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.FeedItemDocument, "feedItem", includes, variables);
16031
16069
  const raw = this._syncEngine.watch(
16032
16070
  queryDoc,
16033
16071
  mergedVars,
@@ -16058,10 +16096,10 @@ var FeedItemQuery = class extends chunk342BFYZZ_cjs.Request {
16058
16096
  }
16059
16097
  /** Include action in this query (Smart Fetch — single HTTP request). */
16060
16098
  action(variables) {
16061
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.FeedItem_ActionDocument, "action", ["id"]);
16099
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.FeedItem_ActionDocument, "action", ["id"]);
16062
16100
  this._includes.push({
16063
16101
  fieldName: "action",
16064
- fragmentDoc: chunk5IUEWNZ6_cjs.FeedSendMessageActionFragmentDoc,
16102
+ fragmentDoc: chunkGL6CUR7S_cjs.FeedSendMessageActionFragmentDoc,
16065
16103
  variables,
16066
16104
  isConnection: false,
16067
16105
  isList: false,
@@ -16077,10 +16115,10 @@ var FeedItemQuery = class extends chunk342BFYZZ_cjs.Request {
16077
16115
  }
16078
16116
  /** Include data in this query (Smart Fetch — single HTTP request). */
16079
16117
  data(variables) {
16080
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.FeedItem_DataDocument, "data", ["id"]);
16118
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.FeedItem_DataDocument, "data", ["id"]);
16081
16119
  this._includes.push({
16082
16120
  fieldName: "data",
16083
- fragmentDoc: chunk5IUEWNZ6_cjs.FeedArtifactDataFragmentDoc,
16121
+ fragmentDoc: chunkGL6CUR7S_cjs.FeedArtifactDataFragmentDoc,
16084
16122
  variables,
16085
16123
  isConnection: false,
16086
16124
  isList: true,
@@ -16103,14 +16141,14 @@ var FeedItem_ActionQuery = class extends chunk342BFYZZ_cjs.Request {
16103
16141
  }
16104
16142
  async fetch(options) {
16105
16143
  const variables = this._variables;
16106
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.FeedItem_ActionDocument, variables, "feedItem");
16144
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.FeedItem_ActionDocument, variables, "feedItem");
16107
16145
  const data = response.feedItem?.action;
16108
16146
  return data ? new FeedSendMessageAction(this._request, data, this._syncEngine, this._baseUrl) : void 0;
16109
16147
  }
16110
16148
  watch(options) {
16111
16149
  const variables = this._variables;
16112
16150
  const raw = this._syncEngine.watch(
16113
- chunk5IUEWNZ6_cjs.FeedItem_ActionDocument,
16151
+ chunkGL6CUR7S_cjs.FeedItem_ActionDocument,
16114
16152
  variables,
16115
16153
  "feedItem",
16116
16154
  async (db) => {
@@ -16132,7 +16170,7 @@ var FeedItem_DataQuery = class extends chunk342BFYZZ_cjs.Request {
16132
16170
  this._variables = variables;
16133
16171
  }
16134
16172
  async fetch(options) {
16135
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.FeedItem_DataDocument, this._variables, "feedItem");
16173
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.FeedItem_DataDocument, this._variables, "feedItem");
16136
16174
  const data = response.feedItem?.data;
16137
16175
  if (!Array.isArray(data)) return [];
16138
16176
  return data.map((item) => new FeedArtifactData(this._request, item, this._syncEngine, this._baseUrl));
@@ -16147,7 +16185,7 @@ var FeedItemsQuery = class _FeedItemsQuery extends chunk342BFYZZ_cjs.Request {
16147
16185
  }
16148
16186
  async fetch(options) {
16149
16187
  const variables = this._variables;
16150
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.FeedItemsDocument, "feedItems", this._includes, variables, true);
16188
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.FeedItemsDocument, "feedItems", this._includes, variables, true);
16151
16189
  const response = await this._syncEngine.query(queryDoc, mergedVars, "feedItems");
16152
16190
  const data = response.feedItems;
16153
16191
  const connection = new FeedConnection(this._request, (conn, opts) => new _FeedItemsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
@@ -16164,7 +16202,7 @@ var FeedItemsQuery = class _FeedItemsQuery extends chunk342BFYZZ_cjs.Request {
16164
16202
  const subscriptionId = crypto.randomUUID();
16165
16203
  const includes = this._includes;
16166
16204
  const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
16167
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.FeedItemsDocument, "feedItems", includes, variables, true);
16205
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.FeedItemsDocument, "feedItems", includes, variables, true);
16168
16206
  const raw = this._syncEngine.watch(
16169
16207
  queryDoc,
16170
16208
  mergedVars,
@@ -16199,10 +16237,10 @@ var FeedItemsQuery = class _FeedItemsQuery extends chunk342BFYZZ_cjs.Request {
16199
16237
  }
16200
16238
  /** Include action in this query (Smart Fetch — single HTTP request). */
16201
16239
  action(variables) {
16202
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.FeedItem_ActionDocument, "action", ["id"]);
16240
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.FeedItem_ActionDocument, "action", ["id"]);
16203
16241
  this._includes.push({
16204
16242
  fieldName: "action",
16205
- fragmentDoc: chunk5IUEWNZ6_cjs.FeedSendMessageActionFragmentDoc,
16243
+ fragmentDoc: chunkGL6CUR7S_cjs.FeedSendMessageActionFragmentDoc,
16206
16244
  variables,
16207
16245
  isConnection: false,
16208
16246
  isList: false,
@@ -16218,10 +16256,10 @@ var FeedItemsQuery = class _FeedItemsQuery extends chunk342BFYZZ_cjs.Request {
16218
16256
  }
16219
16257
  /** Include data in this query (Smart Fetch — single HTTP request). */
16220
16258
  data(variables) {
16221
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.FeedItem_DataDocument, "data", ["id"]);
16259
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.FeedItem_DataDocument, "data", ["id"]);
16222
16260
  this._includes.push({
16223
16261
  fieldName: "data",
16224
- fragmentDoc: chunk5IUEWNZ6_cjs.FeedArtifactDataFragmentDoc,
16262
+ fragmentDoc: chunkGL6CUR7S_cjs.FeedArtifactDataFragmentDoc,
16225
16263
  variables,
16226
16264
  isConnection: false,
16227
16265
  isList: true,
@@ -16238,7 +16276,7 @@ var FeedItemsQuery = class _FeedItemsQuery extends chunk342BFYZZ_cjs.Request {
16238
16276
  };
16239
16277
  var FileQuery = class extends chunk342BFYZZ_cjs.Request {
16240
16278
  async fetch(variables) {
16241
- const response = await this._request(chunk5IUEWNZ6_cjs.FileDocument, variables);
16279
+ const response = await this._request(chunkGL6CUR7S_cjs.FileDocument, variables);
16242
16280
  return response.file;
16243
16281
  }
16244
16282
  };
@@ -16251,7 +16289,7 @@ var FileMetaQuery = class extends chunk342BFYZZ_cjs.Request {
16251
16289
  }
16252
16290
  async fetch(options) {
16253
16291
  const variables = this._variables;
16254
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.FileMetaDocument, "fileMeta", this._includes, variables);
16292
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.FileMetaDocument, "fileMeta", this._includes, variables);
16255
16293
  const response = await this._syncEngine.query(queryDoc, mergedVars, "fileMeta");
16256
16294
  const data = response.fileMeta;
16257
16295
  if (!data) return void 0;
@@ -16264,7 +16302,7 @@ var FileMetaQuery = class extends chunk342BFYZZ_cjs.Request {
16264
16302
  watch(options) {
16265
16303
  const variables = this._variables;
16266
16304
  const includes = this._includes;
16267
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.FileMetaDocument, "fileMeta", includes, variables);
16305
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.FileMetaDocument, "fileMeta", includes, variables);
16268
16306
  const raw = this._syncEngine.watch(
16269
16307
  queryDoc,
16270
16308
  mergedVars,
@@ -16302,7 +16340,7 @@ var FileUrlsQuery = class extends chunk342BFYZZ_cjs.Request {
16302
16340
  this._variables = variables;
16303
16341
  }
16304
16342
  async fetch(options) {
16305
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.FileUrlsDocument, "fileUrls", this._includes, this._variables);
16343
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.FileUrlsDocument, "fileUrls", this._includes, this._variables);
16306
16344
  const response = await this._syncEngine.query(queryDoc, mergedVars, "fileUrls");
16307
16345
  const data = response.fileUrls;
16308
16346
  if (!Array.isArray(data)) return [];
@@ -16311,7 +16349,7 @@ var FileUrlsQuery = class extends chunk342BFYZZ_cjs.Request {
16311
16349
  };
16312
16350
  var FindFitTierQuery = class extends chunk342BFYZZ_cjs.Request {
16313
16351
  async fetch(variables) {
16314
- const response = await this._request(chunk5IUEWNZ6_cjs.FindFitTierDocument, variables);
16352
+ const response = await this._request(chunkGL6CUR7S_cjs.FindFitTierDocument, variables);
16315
16353
  return response.findFitTier ?? void 0;
16316
16354
  }
16317
16355
  };
@@ -16324,7 +16362,7 @@ var FolderQuery = class extends chunk342BFYZZ_cjs.Request {
16324
16362
  }
16325
16363
  async fetch(options) {
16326
16364
  const variables = this._variables;
16327
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.FolderDocument, "folder", this._includes, variables);
16365
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.FolderDocument, "folder", this._includes, variables);
16328
16366
  const response = await this._syncEngine.query(queryDoc, mergedVars, "folder");
16329
16367
  const data = response.folder;
16330
16368
  const instance = new Folder(this._request, data, this._syncEngine, this._baseUrl);
@@ -16336,7 +16374,7 @@ var FolderQuery = class extends chunk342BFYZZ_cjs.Request {
16336
16374
  watch(options) {
16337
16375
  const variables = this._variables;
16338
16376
  const includes = this._includes;
16339
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.FolderDocument, "folder", includes, variables);
16377
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.FolderDocument, "folder", includes, variables);
16340
16378
  const raw = this._syncEngine.watch(
16341
16379
  queryDoc,
16342
16380
  mergedVars,
@@ -16374,7 +16412,7 @@ var FoldersQuery = class _FoldersQuery extends chunk342BFYZZ_cjs.Request {
16374
16412
  }
16375
16413
  async fetch(options) {
16376
16414
  const variables = this._variables;
16377
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.FoldersDocument, "folders", this._includes, variables, true);
16415
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.FoldersDocument, "folders", this._includes, variables, true);
16378
16416
  const response = await this._syncEngine.query(queryDoc, mergedVars, "folders");
16379
16417
  const data = response.folders;
16380
16418
  const connection = new FolderConnection(this._request, (conn, opts) => new _FoldersQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
@@ -16391,7 +16429,7 @@ var FoldersQuery = class _FoldersQuery extends chunk342BFYZZ_cjs.Request {
16391
16429
  const subscriptionId = crypto.randomUUID();
16392
16430
  const includes = this._includes;
16393
16431
  const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
16394
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.FoldersDocument, "folders", includes, variables, true);
16432
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.FoldersDocument, "folders", includes, variables, true);
16395
16433
  const raw = this._syncEngine.watch(
16396
16434
  queryDoc,
16397
16435
  mergedVars,
@@ -16427,7 +16465,7 @@ var FoldersQuery = class _FoldersQuery extends chunk342BFYZZ_cjs.Request {
16427
16465
  };
16428
16466
  var GetCapabilityQuery = class extends chunk342BFYZZ_cjs.Request {
16429
16467
  async fetch(variables) {
16430
- const response = await this._request(chunk5IUEWNZ6_cjs.GetCapabilityDocument, variables);
16468
+ const response = await this._request(chunkGL6CUR7S_cjs.GetCapabilityDocument, variables);
16431
16469
  return response.getCapability;
16432
16470
  }
16433
16471
  };
@@ -16440,7 +16478,7 @@ var GetDevAccessTokenQuery = class extends chunk342BFYZZ_cjs.Request {
16440
16478
  }
16441
16479
  async fetch(options) {
16442
16480
  const variables = this._variables;
16443
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.GetDevAccessTokenDocument, "getDevAccessToken", this._includes, variables);
16481
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.GetDevAccessTokenDocument, "getDevAccessToken", this._includes, variables);
16444
16482
  const response = await this._syncEngine.query(queryDoc, mergedVars, "getDevAccessToken");
16445
16483
  const data = response.getDevAccessToken;
16446
16484
  const instance = new DevAccessTokenOutput(this._request, data, this._syncEngine, this._baseUrl);
@@ -16452,7 +16490,7 @@ var GetDevAccessTokenQuery = class extends chunk342BFYZZ_cjs.Request {
16452
16490
  watch(options) {
16453
16491
  const variables = this._variables;
16454
16492
  const includes = this._includes;
16455
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.GetDevAccessTokenDocument, "getDevAccessToken", includes, variables);
16493
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.GetDevAccessTokenDocument, "getDevAccessToken", includes, variables);
16456
16494
  const raw = this._syncEngine.watch(
16457
16495
  queryDoc,
16458
16496
  mergedVars,
@@ -16483,13 +16521,13 @@ var GetDevAccessTokenQuery = class extends chunk342BFYZZ_cjs.Request {
16483
16521
  };
16484
16522
  var GetLimitQuery = class extends chunk342BFYZZ_cjs.Request {
16485
16523
  async fetch(variables) {
16486
- const response = await this._request(chunk5IUEWNZ6_cjs.GetLimitDocument, variables);
16524
+ const response = await this._request(chunkGL6CUR7S_cjs.GetLimitDocument, variables);
16487
16525
  return response.getLimit ?? void 0;
16488
16526
  }
16489
16527
  };
16490
16528
  var GetRemainingQuery = class extends chunk342BFYZZ_cjs.Request {
16491
16529
  async fetch(variables) {
16492
- const response = await this._request(chunk5IUEWNZ6_cjs.GetRemainingDocument, variables);
16530
+ const response = await this._request(chunkGL6CUR7S_cjs.GetRemainingDocument, variables);
16493
16531
  return response.getRemaining ?? void 0;
16494
16532
  }
16495
16533
  };
@@ -16501,7 +16539,7 @@ var GetTokenUsageByModelQuery = class extends chunk342BFYZZ_cjs.Request {
16501
16539
  this._variables = variables;
16502
16540
  }
16503
16541
  async fetch(options) {
16504
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.GetTokenUsageByModelDocument, "getTokenUsageByModel", this._includes, this._variables);
16542
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.GetTokenUsageByModelDocument, "getTokenUsageByModel", this._includes, this._variables);
16505
16543
  const response = await this._syncEngine.query(queryDoc, mergedVars, "getTokenUsageByModel");
16506
16544
  const data = response.getTokenUsageByModel;
16507
16545
  if (!Array.isArray(data)) return [];
@@ -16516,7 +16554,7 @@ var GetTokenUsageHistoryQuery = class extends chunk342BFYZZ_cjs.Request {
16516
16554
  this._variables = variables;
16517
16555
  }
16518
16556
  async fetch(options) {
16519
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.GetTokenUsageHistoryDocument, "getTokenUsageHistory", this._includes, this._variables);
16557
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.GetTokenUsageHistoryDocument, "getTokenUsageHistory", this._includes, this._variables);
16520
16558
  const response = await this._syncEngine.query(queryDoc, mergedVars, "getTokenUsageHistory");
16521
16559
  const data = response.getTokenUsageHistory;
16522
16560
  if (!Array.isArray(data)) return [];
@@ -16532,7 +16570,7 @@ var GetTokenUsageStatusQuery = class extends chunk342BFYZZ_cjs.Request {
16532
16570
  }
16533
16571
  async fetch(options) {
16534
16572
  const variables = this._variables;
16535
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.GetTokenUsageStatusDocument, "getTokenUsageStatus", this._includes, variables);
16573
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.GetTokenUsageStatusDocument, "getTokenUsageStatus", this._includes, variables);
16536
16574
  const response = await this._syncEngine.query(queryDoc, mergedVars, "getTokenUsageStatus");
16537
16575
  const data = response.getTokenUsageStatus;
16538
16576
  const instance = new UsageStatus(this._request, data, this._syncEngine, this._baseUrl);
@@ -16544,7 +16582,7 @@ var GetTokenUsageStatusQuery = class extends chunk342BFYZZ_cjs.Request {
16544
16582
  watch(options) {
16545
16583
  const variables = this._variables;
16546
16584
  const includes = this._includes;
16547
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.GetTokenUsageStatusDocument, "getTokenUsageStatus", includes, variables);
16585
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.GetTokenUsageStatusDocument, "getTokenUsageStatus", includes, variables);
16548
16586
  const raw = this._syncEngine.watch(
16549
16587
  queryDoc,
16550
16588
  mergedVars,
@@ -16574,10 +16612,10 @@ var GetTokenUsageStatusQuery = class extends chunk342BFYZZ_cjs.Request {
16574
16612
  }
16575
16613
  /** Include windows in this query (Smart Fetch — single HTTP request). */
16576
16614
  windows(variables) {
16577
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.GetTokenUsageStatus_WindowsDocument, "windows", []);
16615
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.GetTokenUsageStatus_WindowsDocument, "windows", []);
16578
16616
  this._includes.push({
16579
16617
  fieldName: "windows",
16580
- fragmentDoc: chunk5IUEWNZ6_cjs.UsageWindowsStatusTypeFragmentDoc,
16618
+ fragmentDoc: chunkGL6CUR7S_cjs.UsageWindowsStatusTypeFragmentDoc,
16581
16619
  variables,
16582
16620
  isConnection: false,
16583
16621
  isList: false,
@@ -16600,14 +16638,14 @@ var GetTokenUsageStatus_WindowsQuery = class extends chunk342BFYZZ_cjs.Request {
16600
16638
  }
16601
16639
  async fetch(options) {
16602
16640
  const variables = this._variables;
16603
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.GetTokenUsageStatus_WindowsDocument, variables, "getTokenUsageStatus");
16641
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.GetTokenUsageStatus_WindowsDocument, variables, "getTokenUsageStatus");
16604
16642
  const data = response.getTokenUsageStatus?.windows;
16605
16643
  return data ? new UsageWindowsStatusType(this._request, data, this._syncEngine, this._baseUrl) : void 0;
16606
16644
  }
16607
16645
  watch(options) {
16608
16646
  const variables = this._variables;
16609
16647
  const raw = this._syncEngine.watch(
16610
- chunk5IUEWNZ6_cjs.GetTokenUsageStatus_WindowsDocument,
16648
+ chunkGL6CUR7S_cjs.GetTokenUsageStatus_WindowsDocument,
16611
16649
  variables,
16612
16650
  "getTokenUsageStatus",
16613
16651
  async (db) => {
@@ -16630,14 +16668,14 @@ var GetTokenUsageStatus_Windows_DayQuery = class extends chunk342BFYZZ_cjs.Reque
16630
16668
  }
16631
16669
  async fetch(options) {
16632
16670
  const variables = this._variables;
16633
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.GetTokenUsageStatus_Windows_DayDocument, variables, "getTokenUsageStatus");
16671
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.GetTokenUsageStatus_Windows_DayDocument, variables, "getTokenUsageStatus");
16634
16672
  const data = response.getTokenUsageStatus?.windows?.day;
16635
16673
  return data ? new WindowDetailType(this._request, data, this._syncEngine, this._baseUrl) : void 0;
16636
16674
  }
16637
16675
  watch(options) {
16638
16676
  const variables = this._variables;
16639
16677
  const raw = this._syncEngine.watch(
16640
- chunk5IUEWNZ6_cjs.GetTokenUsageStatus_Windows_DayDocument,
16678
+ chunkGL6CUR7S_cjs.GetTokenUsageStatus_Windows_DayDocument,
16641
16679
  variables,
16642
16680
  "getTokenUsageStatus",
16643
16681
  async (db) => {
@@ -16660,14 +16698,14 @@ var GetTokenUsageStatus_Windows_FiveHourQuery = class extends chunk342BFYZZ_cjs.
16660
16698
  }
16661
16699
  async fetch(options) {
16662
16700
  const variables = this._variables;
16663
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.GetTokenUsageStatus_Windows_FiveHourDocument, variables, "getTokenUsageStatus");
16701
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.GetTokenUsageStatus_Windows_FiveHourDocument, variables, "getTokenUsageStatus");
16664
16702
  const data = response.getTokenUsageStatus?.windows?.fiveHour;
16665
16703
  return data ? new WindowDetailType(this._request, data, this._syncEngine, this._baseUrl) : void 0;
16666
16704
  }
16667
16705
  watch(options) {
16668
16706
  const variables = this._variables;
16669
16707
  const raw = this._syncEngine.watch(
16670
- chunk5IUEWNZ6_cjs.GetTokenUsageStatus_Windows_FiveHourDocument,
16708
+ chunkGL6CUR7S_cjs.GetTokenUsageStatus_Windows_FiveHourDocument,
16671
16709
  variables,
16672
16710
  "getTokenUsageStatus",
16673
16711
  async (db) => {
@@ -16690,14 +16728,14 @@ var GetTokenUsageStatus_Windows_WeekQuery = class extends chunk342BFYZZ_cjs.Requ
16690
16728
  }
16691
16729
  async fetch(options) {
16692
16730
  const variables = this._variables;
16693
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.GetTokenUsageStatus_Windows_WeekDocument, variables, "getTokenUsageStatus");
16731
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.GetTokenUsageStatus_Windows_WeekDocument, variables, "getTokenUsageStatus");
16694
16732
  const data = response.getTokenUsageStatus?.windows?.week;
16695
16733
  return data ? new WindowDetailType(this._request, data, this._syncEngine, this._baseUrl) : void 0;
16696
16734
  }
16697
16735
  watch(options) {
16698
16736
  const variables = this._variables;
16699
16737
  const raw = this._syncEngine.watch(
16700
- chunk5IUEWNZ6_cjs.GetTokenUsageStatus_Windows_WeekDocument,
16738
+ chunkGL6CUR7S_cjs.GetTokenUsageStatus_Windows_WeekDocument,
16701
16739
  variables,
16702
16740
  "getTokenUsageStatus",
16703
16741
  async (db) => {
@@ -16714,7 +16752,7 @@ var GetTokenUsageStatus_Windows_WeekQuery = class extends chunk342BFYZZ_cjs.Requ
16714
16752
  };
16715
16753
  var GetUsageQuery = class extends chunk342BFYZZ_cjs.Request {
16716
16754
  async fetch(variables) {
16717
- const response = await this._request(chunk5IUEWNZ6_cjs.GetUsageDocument, variables);
16755
+ const response = await this._request(chunkGL6CUR7S_cjs.GetUsageDocument, variables);
16718
16756
  return response.getUsage ?? void 0;
16719
16757
  }
16720
16758
  };
@@ -16727,7 +16765,7 @@ var InsightQuery = class extends chunk342BFYZZ_cjs.Request {
16727
16765
  }
16728
16766
  async fetch(options) {
16729
16767
  const variables = this._variables;
16730
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.InsightDocument, "insight", this._includes, variables);
16768
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.InsightDocument, "insight", this._includes, variables);
16731
16769
  const response = await this._syncEngine.query(queryDoc, mergedVars, "insight");
16732
16770
  const data = response.insight;
16733
16771
  const instance = new Insight(this._request, data, this._syncEngine, this._baseUrl);
@@ -16739,7 +16777,7 @@ var InsightQuery = class extends chunk342BFYZZ_cjs.Request {
16739
16777
  watch(options) {
16740
16778
  const variables = this._variables;
16741
16779
  const includes = this._includes;
16742
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.InsightDocument, "insight", includes, variables);
16780
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.InsightDocument, "insight", includes, variables);
16743
16781
  const raw = this._syncEngine.watch(
16744
16782
  queryDoc,
16745
16783
  mergedVars,
@@ -16769,7 +16807,7 @@ var InsightQuery = class extends chunk342BFYZZ_cjs.Request {
16769
16807
  }
16770
16808
  /** Include chat in this query (Smart Fetch — single HTTP request). */
16771
16809
  chat(variables, builder) {
16772
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Insight_ChatDocument, "chat", ["id"]);
16810
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Insight_ChatDocument, "chat", ["id"]);
16773
16811
  let children;
16774
16812
  if (builder) {
16775
16813
  const sub = new ChatSubBuilder();
@@ -16778,7 +16816,7 @@ var InsightQuery = class extends chunk342BFYZZ_cjs.Request {
16778
16816
  }
16779
16817
  this._includes.push({
16780
16818
  fieldName: "chat",
16781
- fragmentDoc: chunk5IUEWNZ6_cjs.ChatFragmentDoc,
16819
+ fragmentDoc: chunkGL6CUR7S_cjs.ChatFragmentDoc,
16782
16820
  variables,
16783
16821
  isConnection: false,
16784
16822
  isList: false,
@@ -16795,10 +16833,10 @@ var InsightQuery = class extends chunk342BFYZZ_cjs.Request {
16795
16833
  }
16796
16834
  /** Include reportMembers in this query (Smart Fetch — single HTTP request). */
16797
16835
  reportMembers(variables) {
16798
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Insight_ReportMembersDocument, "reportMembers", ["id"]);
16836
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Insight_ReportMembersDocument, "reportMembers", ["id"]);
16799
16837
  this._includes.push({
16800
16838
  fieldName: "reportMembers",
16801
- fragmentDoc: chunk5IUEWNZ6_cjs.ReportMemberFragmentDoc,
16839
+ fragmentDoc: chunkGL6CUR7S_cjs.ReportMemberFragmentDoc,
16802
16840
  variables,
16803
16841
  isConnection: false,
16804
16842
  isList: true,
@@ -16814,7 +16852,7 @@ var InsightQuery = class extends chunk342BFYZZ_cjs.Request {
16814
16852
  }
16815
16853
  /** Include reports in this query (Smart Fetch — single HTTP request). */
16816
16854
  reports(variables, builder) {
16817
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Insight_ReportsDocument, "reports", ["id"]);
16855
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Insight_ReportsDocument, "reports", ["id"]);
16818
16856
  let children;
16819
16857
  if (builder) {
16820
16858
  const sub = new ReportSubBuilder();
@@ -16823,7 +16861,7 @@ var InsightQuery = class extends chunk342BFYZZ_cjs.Request {
16823
16861
  }
16824
16862
  this._includes.push({
16825
16863
  fieldName: "reports",
16826
- fragmentDoc: chunk5IUEWNZ6_cjs.ReportConnectionFragmentDoc,
16864
+ fragmentDoc: chunkGL6CUR7S_cjs.ReportConnectionFragmentDoc,
16827
16865
  variables,
16828
16866
  isConnection: true,
16829
16867
  isList: false,
@@ -16841,10 +16879,10 @@ var InsightQuery = class extends chunk342BFYZZ_cjs.Request {
16841
16879
  }
16842
16880
  /** Include thumbnailFile in this query (Smart Fetch — single HTTP request). */
16843
16881
  thumbnailFile(variables) {
16844
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Insight_ThumbnailFileDocument, "thumbnailFile", ["id"]);
16882
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Insight_ThumbnailFileDocument, "thumbnailFile", ["id"]);
16845
16883
  this._includes.push({
16846
16884
  fieldName: "thumbnailFile",
16847
- fragmentDoc: chunk5IUEWNZ6_cjs.FileFragmentDoc,
16885
+ fragmentDoc: chunkGL6CUR7S_cjs.FileFragmentDoc,
16848
16886
  variables,
16849
16887
  isConnection: false,
16850
16888
  isList: false,
@@ -16867,14 +16905,14 @@ var Insight_ChatQuery = class extends chunk342BFYZZ_cjs.Request {
16867
16905
  }
16868
16906
  async fetch(options) {
16869
16907
  const variables = this._variables;
16870
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Insight_ChatDocument, variables, "insight");
16908
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Insight_ChatDocument, variables, "insight");
16871
16909
  const data = response.insight?.chat;
16872
16910
  return data ? new Chat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
16873
16911
  }
16874
16912
  watch(options) {
16875
16913
  const variables = this._variables;
16876
16914
  const raw = this._syncEngine.watch(
16877
- chunk5IUEWNZ6_cjs.Insight_ChatDocument,
16915
+ chunkGL6CUR7S_cjs.Insight_ChatDocument,
16878
16916
  variables,
16879
16917
  "insight",
16880
16918
  async (db) => {
@@ -16896,7 +16934,7 @@ var Insight_ReportMembersQuery = class extends chunk342BFYZZ_cjs.Request {
16896
16934
  this._variables = variables;
16897
16935
  }
16898
16936
  async fetch(options) {
16899
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Insight_ReportMembersDocument, this._variables, "insight");
16937
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Insight_ReportMembersDocument, this._variables, "insight");
16900
16938
  const data = response.insight?.reportMembers;
16901
16939
  if (!Array.isArray(data)) return [];
16902
16940
  return data.map((item) => new ReportMember(this._request, item, this._syncEngine, this._baseUrl));
@@ -16910,18 +16948,18 @@ var Insight_ReportsQuery = class _Insight_ReportsQuery extends chunk342BFYZZ_cjs
16910
16948
  }
16911
16949
  async fetch(options) {
16912
16950
  const variables = this._variables;
16913
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Insight_ReportsDocument, variables, "insight");
16951
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Insight_ReportsDocument, variables, "insight");
16914
16952
  const data = response.insight?.reports;
16915
16953
  return new ReportConnection(this._request, (conn, opts) => new _Insight_ReportsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
16916
16954
  }
16917
16955
  watch(options) {
16918
16956
  const variables = this._variables;
16919
16957
  const raw = this._syncEngine.watch(
16920
- chunk5IUEWNZ6_cjs.Insight_ReportsDocument,
16958
+ chunkGL6CUR7S_cjs.Insight_ReportsDocument,
16921
16959
  variables,
16922
16960
  "insight",
16923
16961
  async (db) => {
16924
- const qr = await db._queryResults.get(buildQueryKey("insight", variables, chunk5IUEWNZ6_cjs.Insight_ReportsDocument));
16962
+ const qr = await db._queryResults.get(buildQueryKey("insight", variables, chunkGL6CUR7S_cjs.Insight_ReportsDocument));
16925
16963
  const nodes = qr ? await db.table("reports").bulkGet(qr.entityIds) : [];
16926
16964
  return { insight: { reports: { __typename: "ReportConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
16927
16965
  }
@@ -16940,14 +16978,14 @@ var Insight_ThumbnailFileQuery = class extends chunk342BFYZZ_cjs.Request {
16940
16978
  }
16941
16979
  async fetch(options) {
16942
16980
  const variables = this._variables;
16943
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Insight_ThumbnailFileDocument, variables, "insight");
16981
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Insight_ThumbnailFileDocument, variables, "insight");
16944
16982
  const data = response.insight?.thumbnailFile;
16945
16983
  return data ? new File(this._request, data, this._syncEngine, this._baseUrl) : void 0;
16946
16984
  }
16947
16985
  watch(options) {
16948
16986
  const variables = this._variables;
16949
16987
  const raw = this._syncEngine.watch(
16950
- chunk5IUEWNZ6_cjs.Insight_ThumbnailFileDocument,
16988
+ chunkGL6CUR7S_cjs.Insight_ThumbnailFileDocument,
16951
16989
  variables,
16952
16990
  "insight",
16953
16991
  async (db) => {
@@ -16971,7 +17009,7 @@ var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
16971
17009
  }
16972
17010
  async fetch(options) {
16973
17011
  const variables = this._variables;
16974
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.InsightsDocument, "insights", this._includes, variables, true);
17012
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.InsightsDocument, "insights", this._includes, variables, true);
16975
17013
  const response = await this._syncEngine.query(queryDoc, mergedVars, "insights");
16976
17014
  const data = response.insights;
16977
17015
  const connection = new InsightConnection(this._request, (conn, opts) => new _InsightsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
@@ -16988,7 +17026,7 @@ var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
16988
17026
  const subscriptionId = crypto.randomUUID();
16989
17027
  const includes = this._includes;
16990
17028
  const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
16991
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.InsightsDocument, "insights", includes, variables, true);
17029
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.InsightsDocument, "insights", includes, variables, true);
16992
17030
  const raw = this._syncEngine.watch(
16993
17031
  queryDoc,
16994
17032
  mergedVars,
@@ -17023,7 +17061,7 @@ var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
17023
17061
  }
17024
17062
  /** Include chat in this query (Smart Fetch — single HTTP request). */
17025
17063
  chat(variables, builder) {
17026
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Insight_ChatDocument, "chat", ["id"]);
17064
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Insight_ChatDocument, "chat", ["id"]);
17027
17065
  let children;
17028
17066
  if (builder) {
17029
17067
  const sub = new ChatSubBuilder();
@@ -17032,7 +17070,7 @@ var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
17032
17070
  }
17033
17071
  this._includes.push({
17034
17072
  fieldName: "chat",
17035
- fragmentDoc: chunk5IUEWNZ6_cjs.ChatFragmentDoc,
17073
+ fragmentDoc: chunkGL6CUR7S_cjs.ChatFragmentDoc,
17036
17074
  variables,
17037
17075
  isConnection: false,
17038
17076
  isList: false,
@@ -17049,10 +17087,10 @@ var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
17049
17087
  }
17050
17088
  /** Include reportMembers in this query (Smart Fetch — single HTTP request). */
17051
17089
  reportMembers(variables) {
17052
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Insight_ReportMembersDocument, "reportMembers", ["id"]);
17090
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Insight_ReportMembersDocument, "reportMembers", ["id"]);
17053
17091
  this._includes.push({
17054
17092
  fieldName: "reportMembers",
17055
- fragmentDoc: chunk5IUEWNZ6_cjs.ReportMemberFragmentDoc,
17093
+ fragmentDoc: chunkGL6CUR7S_cjs.ReportMemberFragmentDoc,
17056
17094
  variables,
17057
17095
  isConnection: false,
17058
17096
  isList: true,
@@ -17068,7 +17106,7 @@ var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
17068
17106
  }
17069
17107
  /** Include reports in this query (Smart Fetch — single HTTP request). */
17070
17108
  reports(variables, builder) {
17071
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Insight_ReportsDocument, "reports", ["id"]);
17109
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Insight_ReportsDocument, "reports", ["id"]);
17072
17110
  let children;
17073
17111
  if (builder) {
17074
17112
  const sub = new ReportSubBuilder();
@@ -17077,7 +17115,7 @@ var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
17077
17115
  }
17078
17116
  this._includes.push({
17079
17117
  fieldName: "reports",
17080
- fragmentDoc: chunk5IUEWNZ6_cjs.ReportConnectionFragmentDoc,
17118
+ fragmentDoc: chunkGL6CUR7S_cjs.ReportConnectionFragmentDoc,
17081
17119
  variables,
17082
17120
  isConnection: true,
17083
17121
  isList: false,
@@ -17095,10 +17133,10 @@ var InsightsQuery = class _InsightsQuery extends chunk342BFYZZ_cjs.Request {
17095
17133
  }
17096
17134
  /** Include thumbnailFile in this query (Smart Fetch — single HTTP request). */
17097
17135
  thumbnailFile(variables) {
17098
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Insight_ThumbnailFileDocument, "thumbnailFile", ["id"]);
17136
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Insight_ThumbnailFileDocument, "thumbnailFile", ["id"]);
17099
17137
  this._includes.push({
17100
17138
  fieldName: "thumbnailFile",
17101
- fragmentDoc: chunk5IUEWNZ6_cjs.FileFragmentDoc,
17139
+ fragmentDoc: chunkGL6CUR7S_cjs.FileFragmentDoc,
17102
17140
  variables,
17103
17141
  isConnection: false,
17104
17142
  isList: false,
@@ -17122,7 +17160,7 @@ var IntegrationQuery = class extends chunk342BFYZZ_cjs.Request {
17122
17160
  }
17123
17161
  async fetch(options) {
17124
17162
  const variables = this._variables;
17125
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.IntegrationDocument, "integration", this._includes, variables);
17163
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.IntegrationDocument, "integration", this._includes, variables);
17126
17164
  const response = await this._syncEngine.query(queryDoc, mergedVars, "integration");
17127
17165
  const data = response.integration;
17128
17166
  const instance = new Integration(this._request, data, this._syncEngine, this._baseUrl);
@@ -17134,7 +17172,7 @@ var IntegrationQuery = class extends chunk342BFYZZ_cjs.Request {
17134
17172
  watch(options) {
17135
17173
  const variables = this._variables;
17136
17174
  const includes = this._includes;
17137
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.IntegrationDocument, "integration", includes, variables);
17175
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.IntegrationDocument, "integration", includes, variables);
17138
17176
  const raw = this._syncEngine.watch(
17139
17177
  queryDoc,
17140
17178
  mergedVars,
@@ -17164,10 +17202,10 @@ var IntegrationQuery = class extends chunk342BFYZZ_cjs.Request {
17164
17202
  }
17165
17203
  /** Include provider in this query (Smart Fetch — single HTTP request). */
17166
17204
  provider(variables) {
17167
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Integration_ProviderDocument, "provider", ["id"]);
17205
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Integration_ProviderDocument, "provider", ["id"]);
17168
17206
  this._includes.push({
17169
17207
  fieldName: "provider",
17170
- fragmentDoc: chunk5IUEWNZ6_cjs.IntegrationProviderFragmentDoc,
17208
+ fragmentDoc: chunkGL6CUR7S_cjs.IntegrationProviderFragmentDoc,
17171
17209
  variables,
17172
17210
  isConnection: false,
17173
17211
  isList: false,
@@ -17190,14 +17228,14 @@ var Integration_ProviderQuery = class extends chunk342BFYZZ_cjs.Request {
17190
17228
  }
17191
17229
  async fetch(options) {
17192
17230
  const variables = this._variables;
17193
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Integration_ProviderDocument, variables, "integration");
17231
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Integration_ProviderDocument, variables, "integration");
17194
17232
  const data = response.integration?.provider;
17195
17233
  return data ? new IntegrationProvider(this._request, data, this._syncEngine, this._baseUrl) : void 0;
17196
17234
  }
17197
17235
  watch(options) {
17198
17236
  const variables = this._variables;
17199
17237
  const raw = this._syncEngine.watch(
17200
- chunk5IUEWNZ6_cjs.Integration_ProviderDocument,
17238
+ chunkGL6CUR7S_cjs.Integration_ProviderDocument,
17201
17239
  variables,
17202
17240
  "integration",
17203
17241
  async (db) => {
@@ -17220,14 +17258,14 @@ var Integration_Provider_CatalogQuery = class extends chunk342BFYZZ_cjs.Request
17220
17258
  }
17221
17259
  async fetch(options) {
17222
17260
  const variables = this._variables;
17223
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Integration_Provider_CatalogDocument, variables, "integration");
17261
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Integration_Provider_CatalogDocument, variables, "integration");
17224
17262
  const data = response.integration?.provider?.catalog;
17225
17263
  return data ? new IntegrationCatalog(this._request, data, this._syncEngine, this._baseUrl) : void 0;
17226
17264
  }
17227
17265
  watch(options) {
17228
17266
  const variables = this._variables;
17229
17267
  const raw = this._syncEngine.watch(
17230
- chunk5IUEWNZ6_cjs.Integration_Provider_CatalogDocument,
17268
+ chunkGL6CUR7S_cjs.Integration_Provider_CatalogDocument,
17231
17269
  variables,
17232
17270
  "integration",
17233
17271
  async (db) => {
@@ -17251,7 +17289,7 @@ var IntegrationCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
17251
17289
  }
17252
17290
  async fetch(options) {
17253
17291
  const variables = this._variables;
17254
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.IntegrationCatalogDocument, "integrationCatalog", this._includes, variables);
17292
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.IntegrationCatalogDocument, "integrationCatalog", this._includes, variables);
17255
17293
  const response = await this._syncEngine.query(queryDoc, mergedVars, "integrationCatalog");
17256
17294
  const data = response.integrationCatalog;
17257
17295
  const instance = new IntegrationCatalog(this._request, data, this._syncEngine, this._baseUrl);
@@ -17263,7 +17301,7 @@ var IntegrationCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
17263
17301
  watch(options) {
17264
17302
  const variables = this._variables;
17265
17303
  const includes = this._includes;
17266
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.IntegrationCatalogDocument, "integrationCatalog", includes, variables);
17304
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.IntegrationCatalogDocument, "integrationCatalog", includes, variables);
17267
17305
  const raw = this._syncEngine.watch(
17268
17306
  queryDoc,
17269
17307
  mergedVars,
@@ -17293,10 +17331,10 @@ var IntegrationCatalogQuery = class extends chunk342BFYZZ_cjs.Request {
17293
17331
  }
17294
17332
  /** Include provider in this query (Smart Fetch — single HTTP request). */
17295
17333
  provider(variables) {
17296
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.IntegrationCatalog_ProviderDocument, "provider", []);
17334
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.IntegrationCatalog_ProviderDocument, "provider", []);
17297
17335
  this._includes.push({
17298
17336
  fieldName: "provider",
17299
- fragmentDoc: chunk5IUEWNZ6_cjs.IntegrationProviderFragmentDoc,
17337
+ fragmentDoc: chunkGL6CUR7S_cjs.IntegrationProviderFragmentDoc,
17300
17338
  variables,
17301
17339
  isConnection: false,
17302
17340
  isList: false,
@@ -17319,14 +17357,14 @@ var IntegrationCatalog_ProviderQuery = class extends chunk342BFYZZ_cjs.Request {
17319
17357
  }
17320
17358
  async fetch(options) {
17321
17359
  const variables = this._variables;
17322
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.IntegrationCatalog_ProviderDocument, variables, "integrationCatalog");
17360
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.IntegrationCatalog_ProviderDocument, variables, "integrationCatalog");
17323
17361
  const data = response.integrationCatalog?.provider;
17324
17362
  return data ? new IntegrationProvider(this._request, data, this._syncEngine, this._baseUrl) : void 0;
17325
17363
  }
17326
17364
  watch(options) {
17327
17365
  const variables = this._variables;
17328
17366
  const raw = this._syncEngine.watch(
17329
- chunk5IUEWNZ6_cjs.IntegrationCatalog_ProviderDocument,
17367
+ chunkGL6CUR7S_cjs.IntegrationCatalog_ProviderDocument,
17330
17368
  variables,
17331
17369
  "integrationCatalog",
17332
17370
  async (db) => {
@@ -17343,7 +17381,7 @@ var IntegrationCatalog_ProviderQuery = class extends chunk342BFYZZ_cjs.Request {
17343
17381
  };
17344
17382
  var IntegrationCatalogToolsQuery = class extends chunk342BFYZZ_cjs.Request {
17345
17383
  async fetch(variables) {
17346
- const response = await this._request(chunk5IUEWNZ6_cjs.IntegrationCatalogToolsDocument, variables);
17384
+ const response = await this._request(chunkGL6CUR7S_cjs.IntegrationCatalogToolsDocument, variables);
17347
17385
  return response.integrationCatalogTools;
17348
17386
  }
17349
17387
  };
@@ -17356,7 +17394,7 @@ var IntegrationCatalogsQuery = class _IntegrationCatalogsQuery extends chunk342B
17356
17394
  }
17357
17395
  async fetch(options) {
17358
17396
  const variables = this._variables;
17359
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.IntegrationCatalogsDocument, "integrationCatalogs", this._includes, variables, true);
17397
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.IntegrationCatalogsDocument, "integrationCatalogs", this._includes, variables, true);
17360
17398
  const response = await this._syncEngine.query(queryDoc, mergedVars, "integrationCatalogs");
17361
17399
  const data = response.integrationCatalogs;
17362
17400
  const connection = new IntegrationCatalogConnection(this._request, (conn, opts) => new _IntegrationCatalogsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
@@ -17373,7 +17411,7 @@ var IntegrationCatalogsQuery = class _IntegrationCatalogsQuery extends chunk342B
17373
17411
  const subscriptionId = crypto.randomUUID();
17374
17412
  const includes = this._includes;
17375
17413
  const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
17376
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.IntegrationCatalogsDocument, "integrationCatalogs", includes, variables, true);
17414
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.IntegrationCatalogsDocument, "integrationCatalogs", includes, variables, true);
17377
17415
  const raw = this._syncEngine.watch(
17378
17416
  queryDoc,
17379
17417
  mergedVars,
@@ -17408,10 +17446,10 @@ var IntegrationCatalogsQuery = class _IntegrationCatalogsQuery extends chunk342B
17408
17446
  }
17409
17447
  /** Include provider in this query (Smart Fetch — single HTTP request). */
17410
17448
  provider(variables) {
17411
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.IntegrationCatalog_ProviderDocument, "provider", []);
17449
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.IntegrationCatalog_ProviderDocument, "provider", []);
17412
17450
  this._includes.push({
17413
17451
  fieldName: "provider",
17414
- fragmentDoc: chunk5IUEWNZ6_cjs.IntegrationProviderFragmentDoc,
17452
+ fragmentDoc: chunkGL6CUR7S_cjs.IntegrationProviderFragmentDoc,
17415
17453
  variables,
17416
17454
  isConnection: false,
17417
17455
  isList: false,
@@ -17435,7 +17473,7 @@ var IntegrationsQuery = class _IntegrationsQuery extends chunk342BFYZZ_cjs.Reque
17435
17473
  }
17436
17474
  async fetch(options) {
17437
17475
  const variables = this._variables;
17438
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.IntegrationsDocument, "integrations", this._includes, variables, true);
17476
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.IntegrationsDocument, "integrations", this._includes, variables, true);
17439
17477
  const response = await this._syncEngine.query(queryDoc, mergedVars, "integrations");
17440
17478
  const data = response.integrations;
17441
17479
  const connection = new IntegrationConnection(this._request, (conn, opts) => new _IntegrationsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
@@ -17452,7 +17490,7 @@ var IntegrationsQuery = class _IntegrationsQuery extends chunk342BFYZZ_cjs.Reque
17452
17490
  const subscriptionId = crypto.randomUUID();
17453
17491
  const includes = this._includes;
17454
17492
  const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
17455
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.IntegrationsDocument, "integrations", includes, variables, true);
17493
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.IntegrationsDocument, "integrations", includes, variables, true);
17456
17494
  const raw = this._syncEngine.watch(
17457
17495
  queryDoc,
17458
17496
  mergedVars,
@@ -17487,10 +17525,10 @@ var IntegrationsQuery = class _IntegrationsQuery extends chunk342BFYZZ_cjs.Reque
17487
17525
  }
17488
17526
  /** Include provider in this query (Smart Fetch — single HTTP request). */
17489
17527
  provider(variables) {
17490
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Integration_ProviderDocument, "provider", ["id"]);
17528
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Integration_ProviderDocument, "provider", ["id"]);
17491
17529
  this._includes.push({
17492
17530
  fieldName: "provider",
17493
- fragmentDoc: chunk5IUEWNZ6_cjs.IntegrationProviderFragmentDoc,
17531
+ fragmentDoc: chunkGL6CUR7S_cjs.IntegrationProviderFragmentDoc,
17494
17532
  variables,
17495
17533
  isConnection: false,
17496
17534
  isList: false,
@@ -17514,7 +17552,7 @@ var InterpretationsQuery = class _InterpretationsQuery extends chunk342BFYZZ_cjs
17514
17552
  }
17515
17553
  async fetch(options) {
17516
17554
  const variables = this._variables;
17517
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.InterpretationsDocument, "interpretations", this._includes, variables, true);
17555
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.InterpretationsDocument, "interpretations", this._includes, variables, true);
17518
17556
  const response = await this._syncEngine.query(queryDoc, mergedVars, "interpretations");
17519
17557
  const data = response.interpretations;
17520
17558
  const connection = new InterpretationConnection(this._request, (conn, opts) => new _InterpretationsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
@@ -17531,7 +17569,7 @@ var InterpretationsQuery = class _InterpretationsQuery extends chunk342BFYZZ_cjs
17531
17569
  const subscriptionId = crypto.randomUUID();
17532
17570
  const includes = this._includes;
17533
17571
  const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
17534
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.InterpretationsDocument, "interpretations", includes, variables, true);
17572
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.InterpretationsDocument, "interpretations", includes, variables, true);
17535
17573
  const raw = this._syncEngine.watch(
17536
17574
  queryDoc,
17537
17575
  mergedVars,
@@ -17574,7 +17612,7 @@ var NotificationQuery = class extends chunk342BFYZZ_cjs.Request {
17574
17612
  }
17575
17613
  async fetch(options) {
17576
17614
  const variables = this._variables;
17577
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.NotificationDocument, "notification", this._includes, variables);
17615
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.NotificationDocument, "notification", this._includes, variables);
17578
17616
  const response = await this._syncEngine.query(queryDoc, mergedVars, "notification");
17579
17617
  const data = response.notification;
17580
17618
  const instance = new Notification(this._request, data, this._syncEngine, this._baseUrl);
@@ -17586,7 +17624,7 @@ var NotificationQuery = class extends chunk342BFYZZ_cjs.Request {
17586
17624
  watch(options) {
17587
17625
  const variables = this._variables;
17588
17626
  const includes = this._includes;
17589
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.NotificationDocument, "notification", includes, variables);
17627
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.NotificationDocument, "notification", includes, variables);
17590
17628
  const raw = this._syncEngine.watch(
17591
17629
  queryDoc,
17592
17630
  mergedVars,
@@ -17624,7 +17662,7 @@ var NotificationsQuery = class _NotificationsQuery extends chunk342BFYZZ_cjs.Req
17624
17662
  }
17625
17663
  async fetch(options) {
17626
17664
  const variables = this._variables;
17627
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.NotificationsDocument, "notifications", this._includes, variables, true);
17665
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.NotificationsDocument, "notifications", this._includes, variables, true);
17628
17666
  const response = await this._syncEngine.query(queryDoc, mergedVars, "notifications");
17629
17667
  const data = response.notifications;
17630
17668
  const connection = new NotificationConnection(this._request, (conn, opts) => new _NotificationsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
@@ -17641,7 +17679,7 @@ var NotificationsQuery = class _NotificationsQuery extends chunk342BFYZZ_cjs.Req
17641
17679
  const subscriptionId = crypto.randomUUID();
17642
17680
  const includes = this._includes;
17643
17681
  const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
17644
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.NotificationsDocument, "notifications", includes, variables, true);
17682
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.NotificationsDocument, "notifications", includes, variables, true);
17645
17683
  const raw = this._syncEngine.watch(
17646
17684
  queryDoc,
17647
17685
  mergedVars,
@@ -17683,7 +17721,7 @@ var NotificationsByReferenceQuery = class extends chunk342BFYZZ_cjs.Request {
17683
17721
  this._variables = variables;
17684
17722
  }
17685
17723
  async fetch(options) {
17686
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.NotificationsByReferenceDocument, "notificationsByReference", this._includes, this._variables);
17724
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.NotificationsByReferenceDocument, "notificationsByReference", this._includes, this._variables);
17687
17725
  const response = await this._syncEngine.query(queryDoc, mergedVars, "notificationsByReference");
17688
17726
  const data = response.notificationsByReference;
17689
17727
  if (!Array.isArray(data)) return [];
@@ -17699,7 +17737,7 @@ var PrivacyStatsQuery = class extends chunk342BFYZZ_cjs.Request {
17699
17737
  }
17700
17738
  async fetch(options) {
17701
17739
  const variables = this._variables;
17702
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.PrivacyStatsDocument, "privacyStats", this._includes, variables);
17740
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.PrivacyStatsDocument, "privacyStats", this._includes, variables);
17703
17741
  const response = await this._syncEngine.query(queryDoc, mergedVars, "privacyStats");
17704
17742
  const data = response.privacyStats;
17705
17743
  const instance = new PrivacyStats(this._request, data, this._syncEngine, this._baseUrl);
@@ -17711,7 +17749,7 @@ var PrivacyStatsQuery = class extends chunk342BFYZZ_cjs.Request {
17711
17749
  watch(options) {
17712
17750
  const variables = this._variables;
17713
17751
  const includes = this._includes;
17714
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.PrivacyStatsDocument, "privacyStats", includes, variables);
17752
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.PrivacyStatsDocument, "privacyStats", includes, variables);
17715
17753
  const raw = this._syncEngine.watch(
17716
17754
  queryDoc,
17717
17755
  mergedVars,
@@ -17749,7 +17787,7 @@ var PulseAppSummaryQuery = class extends chunk342BFYZZ_cjs.Request {
17749
17787
  }
17750
17788
  async fetch(options) {
17751
17789
  const variables = this._variables;
17752
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.PulseAppSummaryDocument, "pulseAppSummary", this._includes, variables);
17790
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.PulseAppSummaryDocument, "pulseAppSummary", this._includes, variables);
17753
17791
  const response = await this._syncEngine.query(queryDoc, mergedVars, "pulseAppSummary");
17754
17792
  const data = response.pulseAppSummary;
17755
17793
  if (!data) return void 0;
@@ -17762,7 +17800,7 @@ var PulseAppSummaryQuery = class extends chunk342BFYZZ_cjs.Request {
17762
17800
  watch(options) {
17763
17801
  const variables = this._variables;
17764
17802
  const includes = this._includes;
17765
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.PulseAppSummaryDocument, "pulseAppSummary", includes, variables);
17803
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.PulseAppSummaryDocument, "pulseAppSummary", includes, variables);
17766
17804
  const raw = this._syncEngine.watch(
17767
17805
  queryDoc,
17768
17806
  mergedVars,
@@ -17801,7 +17839,7 @@ var PulseEventQuery = class extends chunk342BFYZZ_cjs.Request {
17801
17839
  }
17802
17840
  async fetch(options) {
17803
17841
  const variables = this._variables;
17804
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.PulseEventDocument, "pulseEvent", this._includes, variables);
17842
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.PulseEventDocument, "pulseEvent", this._includes, variables);
17805
17843
  const response = await this._syncEngine.query(queryDoc, mergedVars, "pulseEvent");
17806
17844
  const data = response.pulseEvent;
17807
17845
  const instance = new PulseEvent(this._request, data, this._syncEngine, this._baseUrl);
@@ -17813,7 +17851,7 @@ var PulseEventQuery = class extends chunk342BFYZZ_cjs.Request {
17813
17851
  watch(options) {
17814
17852
  const variables = this._variables;
17815
17853
  const includes = this._includes;
17816
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.PulseEventDocument, "pulseEvent", includes, variables);
17854
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.PulseEventDocument, "pulseEvent", includes, variables);
17817
17855
  const raw = this._syncEngine.watch(
17818
17856
  queryDoc,
17819
17857
  mergedVars,
@@ -17843,7 +17881,7 @@ var PulseEventQuery = class extends chunk342BFYZZ_cjs.Request {
17843
17881
  }
17844
17882
  /** Include integration in this query (Smart Fetch — single HTTP request). */
17845
17883
  integration(variables, builder) {
17846
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.PulseEvent_IntegrationDocument, "integration", ["id"]);
17884
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.PulseEvent_IntegrationDocument, "integration", ["id"]);
17847
17885
  let children;
17848
17886
  if (builder) {
17849
17887
  const sub = new IntegrationSubBuilder();
@@ -17852,7 +17890,7 @@ var PulseEventQuery = class extends chunk342BFYZZ_cjs.Request {
17852
17890
  }
17853
17891
  this._includes.push({
17854
17892
  fieldName: "integration",
17855
- fragmentDoc: chunk5IUEWNZ6_cjs.IntegrationFragmentDoc,
17893
+ fragmentDoc: chunkGL6CUR7S_cjs.IntegrationFragmentDoc,
17856
17894
  variables,
17857
17895
  isConnection: false,
17858
17896
  isList: false,
@@ -17876,14 +17914,14 @@ var PulseEvent_IntegrationQuery = class extends chunk342BFYZZ_cjs.Request {
17876
17914
  }
17877
17915
  async fetch(options) {
17878
17916
  const variables = this._variables;
17879
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.PulseEvent_IntegrationDocument, variables, "pulseEvent");
17917
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.PulseEvent_IntegrationDocument, variables, "pulseEvent");
17880
17918
  const data = response.pulseEvent?.integration;
17881
17919
  return data ? new Integration(this._request, data, this._syncEngine, this._baseUrl) : void 0;
17882
17920
  }
17883
17921
  watch(options) {
17884
17922
  const variables = this._variables;
17885
17923
  const raw = this._syncEngine.watch(
17886
- chunk5IUEWNZ6_cjs.PulseEvent_IntegrationDocument,
17924
+ chunkGL6CUR7S_cjs.PulseEvent_IntegrationDocument,
17887
17925
  variables,
17888
17926
  "pulseEvent",
17889
17927
  async (db) => {
@@ -17906,14 +17944,14 @@ var PulseEvent_Integration_ProviderQuery = class extends chunk342BFYZZ_cjs.Reque
17906
17944
  }
17907
17945
  async fetch(options) {
17908
17946
  const variables = this._variables;
17909
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.PulseEvent_Integration_ProviderDocument, variables, "pulseEvent");
17947
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.PulseEvent_Integration_ProviderDocument, variables, "pulseEvent");
17910
17948
  const data = response.pulseEvent?.integration?.provider;
17911
17949
  return data ? new IntegrationProvider(this._request, data, this._syncEngine, this._baseUrl) : void 0;
17912
17950
  }
17913
17951
  watch(options) {
17914
17952
  const variables = this._variables;
17915
17953
  const raw = this._syncEngine.watch(
17916
- chunk5IUEWNZ6_cjs.PulseEvent_Integration_ProviderDocument,
17954
+ chunkGL6CUR7S_cjs.PulseEvent_Integration_ProviderDocument,
17917
17955
  variables,
17918
17956
  "pulseEvent",
17919
17957
  async (db) => {
@@ -17937,7 +17975,7 @@ var PulseEventsQuery = class _PulseEventsQuery extends chunk342BFYZZ_cjs.Request
17937
17975
  }
17938
17976
  async fetch(options) {
17939
17977
  const variables = this._variables;
17940
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.PulseEventsDocument, "pulseEvents", this._includes, variables, true);
17978
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.PulseEventsDocument, "pulseEvents", this._includes, variables, true);
17941
17979
  const response = await this._syncEngine.query(queryDoc, mergedVars, "pulseEvents");
17942
17980
  const data = response.pulseEvents;
17943
17981
  const connection = new PulseEventConnection(this._request, (conn, opts) => new _PulseEventsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
@@ -17954,7 +17992,7 @@ var PulseEventsQuery = class _PulseEventsQuery extends chunk342BFYZZ_cjs.Request
17954
17992
  const subscriptionId = crypto.randomUUID();
17955
17993
  const includes = this._includes;
17956
17994
  const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
17957
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.PulseEventsDocument, "pulseEvents", includes, variables, true);
17995
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.PulseEventsDocument, "pulseEvents", includes, variables, true);
17958
17996
  const raw = this._syncEngine.watch(
17959
17997
  queryDoc,
17960
17998
  mergedVars,
@@ -17989,7 +18027,7 @@ var PulseEventsQuery = class _PulseEventsQuery extends chunk342BFYZZ_cjs.Request
17989
18027
  }
17990
18028
  /** Include integration in this query (Smart Fetch — single HTTP request). */
17991
18029
  integration(variables, builder) {
17992
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.PulseEvent_IntegrationDocument, "integration", ["id"]);
18030
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.PulseEvent_IntegrationDocument, "integration", ["id"]);
17993
18031
  let children;
17994
18032
  if (builder) {
17995
18033
  const sub = new IntegrationSubBuilder();
@@ -17998,7 +18036,7 @@ var PulseEventsQuery = class _PulseEventsQuery extends chunk342BFYZZ_cjs.Request
17998
18036
  }
17999
18037
  this._includes.push({
18000
18038
  fieldName: "integration",
18001
- fragmentDoc: chunk5IUEWNZ6_cjs.IntegrationFragmentDoc,
18039
+ fragmentDoc: chunkGL6CUR7S_cjs.IntegrationFragmentDoc,
18002
18040
  variables,
18003
18041
  isConnection: false,
18004
18042
  isList: false,
@@ -18022,7 +18060,7 @@ var PulseTriggerSettingsQuery = class extends chunk342BFYZZ_cjs.Request {
18022
18060
  this._variables = variables;
18023
18061
  }
18024
18062
  async fetch(options) {
18025
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.PulseTriggerSettingsDocument, "pulseTriggerSettings", this._includes, this._variables);
18063
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.PulseTriggerSettingsDocument, "pulseTriggerSettings", this._includes, this._variables);
18026
18064
  const response = await this._syncEngine.query(queryDoc, mergedVars, "pulseTriggerSettings");
18027
18065
  const data = response.pulseTriggerSettings;
18028
18066
  if (!Array.isArray(data)) return [];
@@ -18031,19 +18069,19 @@ var PulseTriggerSettingsQuery = class extends chunk342BFYZZ_cjs.Request {
18031
18069
  };
18032
18070
  var QueryQuery = class extends chunk342BFYZZ_cjs.Request {
18033
18071
  async fetch(variables) {
18034
- const response = await this._request(chunk5IUEWNZ6_cjs.QueryDocument, variables);
18072
+ const response = await this._request(chunkGL6CUR7S_cjs.QueryDocument, variables);
18035
18073
  return response.query;
18036
18074
  }
18037
18075
  };
18038
18076
  var QueryWithInsightIdQuery = class extends chunk342BFYZZ_cjs.Request {
18039
18077
  async fetch(variables) {
18040
- const response = await this._request(chunk5IUEWNZ6_cjs.QueryWithInsightIdDocument, variables);
18078
+ const response = await this._request(chunkGL6CUR7S_cjs.QueryWithInsightIdDocument, variables);
18041
18079
  return response.queryWithInsightId;
18042
18080
  }
18043
18081
  };
18044
18082
  var QueryWithMessageIdQuery = class extends chunk342BFYZZ_cjs.Request {
18045
18083
  async fetch(variables) {
18046
- const response = await this._request(chunk5IUEWNZ6_cjs.QueryWithMessageIdDocument, variables);
18084
+ const response = await this._request(chunkGL6CUR7S_cjs.QueryWithMessageIdDocument, variables);
18047
18085
  return response.queryWithMessageId;
18048
18086
  }
18049
18087
  };
@@ -18056,7 +18094,7 @@ var ReportQuery = class extends chunk342BFYZZ_cjs.Request {
18056
18094
  }
18057
18095
  async fetch(options) {
18058
18096
  const variables = this._variables;
18059
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.ReportDocument, "report", this._includes, variables);
18097
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.ReportDocument, "report", this._includes, variables);
18060
18098
  const response = await this._syncEngine.query(queryDoc, mergedVars, "report");
18061
18099
  const data = response.report;
18062
18100
  const instance = new Report(this._request, data, this._syncEngine, this._baseUrl);
@@ -18068,7 +18106,7 @@ var ReportQuery = class extends chunk342BFYZZ_cjs.Request {
18068
18106
  watch(options) {
18069
18107
  const variables = this._variables;
18070
18108
  const includes = this._includes;
18071
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.ReportDocument, "report", includes, variables);
18109
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.ReportDocument, "report", includes, variables);
18072
18110
  const raw = this._syncEngine.watch(
18073
18111
  queryDoc,
18074
18112
  mergedVars,
@@ -18098,7 +18136,7 @@ var ReportQuery = class extends chunk342BFYZZ_cjs.Request {
18098
18136
  }
18099
18137
  /** Include insights in this query (Smart Fetch — single HTTP request). */
18100
18138
  insights(variables, builder) {
18101
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Report_InsightsDocument, "insights", ["id"]);
18139
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Report_InsightsDocument, "insights", ["id"]);
18102
18140
  let children;
18103
18141
  if (builder) {
18104
18142
  const sub = new InsightSubBuilder();
@@ -18107,7 +18145,7 @@ var ReportQuery = class extends chunk342BFYZZ_cjs.Request {
18107
18145
  }
18108
18146
  this._includes.push({
18109
18147
  fieldName: "insights",
18110
- fragmentDoc: chunk5IUEWNZ6_cjs.InsightConnectionFragmentDoc,
18148
+ fragmentDoc: chunkGL6CUR7S_cjs.InsightConnectionFragmentDoc,
18111
18149
  variables,
18112
18150
  isConnection: true,
18113
18151
  isList: false,
@@ -18125,10 +18163,10 @@ var ReportQuery = class extends chunk342BFYZZ_cjs.Request {
18125
18163
  }
18126
18164
  /** Include layout in this query (Smart Fetch — single HTTP request). */
18127
18165
  layout(variables) {
18128
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Report_LayoutDocument, "layout", ["id"]);
18166
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Report_LayoutDocument, "layout", ["id"]);
18129
18167
  this._includes.push({
18130
18168
  fieldName: "layout",
18131
- fragmentDoc: chunk5IUEWNZ6_cjs.ReportMemberFragmentDoc,
18169
+ fragmentDoc: chunkGL6CUR7S_cjs.ReportMemberFragmentDoc,
18132
18170
  variables,
18133
18171
  isConnection: false,
18134
18172
  isList: true,
@@ -18151,18 +18189,18 @@ var Report_InsightsQuery = class _Report_InsightsQuery extends chunk342BFYZZ_cjs
18151
18189
  }
18152
18190
  async fetch(options) {
18153
18191
  const variables = this._variables;
18154
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Report_InsightsDocument, variables, "report");
18192
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Report_InsightsDocument, variables, "report");
18155
18193
  const data = response.report?.insights;
18156
18194
  return new InsightConnection(this._request, (conn, opts) => new _Report_InsightsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
18157
18195
  }
18158
18196
  watch(options) {
18159
18197
  const variables = this._variables;
18160
18198
  const raw = this._syncEngine.watch(
18161
- chunk5IUEWNZ6_cjs.Report_InsightsDocument,
18199
+ chunkGL6CUR7S_cjs.Report_InsightsDocument,
18162
18200
  variables,
18163
18201
  "report",
18164
18202
  async (db) => {
18165
- const qr = await db._queryResults.get(buildQueryKey("report", variables, chunk5IUEWNZ6_cjs.Report_InsightsDocument));
18203
+ const qr = await db._queryResults.get(buildQueryKey("report", variables, chunkGL6CUR7S_cjs.Report_InsightsDocument));
18166
18204
  const nodes = qr ? await db.table("insights").bulkGet(qr.entityIds) : [];
18167
18205
  return { report: { insights: { __typename: "InsightConnection", nodes: nodes.filter(Boolean), pageInfo: qr?.pageInfo ?? { hasNextPage: false, hasPreviousPage: false }, totalCount: qr?.totalCount ?? 0 } } };
18168
18206
  }
@@ -18180,7 +18218,7 @@ var Report_LayoutQuery = class extends chunk342BFYZZ_cjs.Request {
18180
18218
  this._variables = variables;
18181
18219
  }
18182
18220
  async fetch(options) {
18183
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Report_LayoutDocument, this._variables, "report");
18221
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Report_LayoutDocument, this._variables, "report");
18184
18222
  const data = response.report?.layout;
18185
18223
  if (!Array.isArray(data)) return [];
18186
18224
  return data.map((item) => new ReportMember(this._request, item, this._syncEngine, this._baseUrl));
@@ -18195,7 +18233,7 @@ var ReportsQuery = class _ReportsQuery extends chunk342BFYZZ_cjs.Request {
18195
18233
  }
18196
18234
  async fetch(options) {
18197
18235
  const variables = this._variables;
18198
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.ReportsDocument, "reports", this._includes, variables, true);
18236
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.ReportsDocument, "reports", this._includes, variables, true);
18199
18237
  const response = await this._syncEngine.query(queryDoc, mergedVars, "reports");
18200
18238
  const data = response.reports;
18201
18239
  const connection = new ReportConnection(this._request, (conn, opts) => new _ReportsQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
@@ -18212,7 +18250,7 @@ var ReportsQuery = class _ReportsQuery extends chunk342BFYZZ_cjs.Request {
18212
18250
  const subscriptionId = crypto.randomUUID();
18213
18251
  const includes = this._includes;
18214
18252
  const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
18215
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.ReportsDocument, "reports", includes, variables, true);
18253
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.ReportsDocument, "reports", includes, variables, true);
18216
18254
  const raw = this._syncEngine.watch(
18217
18255
  queryDoc,
18218
18256
  mergedVars,
@@ -18247,7 +18285,7 @@ var ReportsQuery = class _ReportsQuery extends chunk342BFYZZ_cjs.Request {
18247
18285
  }
18248
18286
  /** Include insights in this query (Smart Fetch — single HTTP request). */
18249
18287
  insights(variables, builder) {
18250
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Report_InsightsDocument, "insights", ["id"]);
18288
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Report_InsightsDocument, "insights", ["id"]);
18251
18289
  let children;
18252
18290
  if (builder) {
18253
18291
  const sub = new InsightSubBuilder();
@@ -18256,7 +18294,7 @@ var ReportsQuery = class _ReportsQuery extends chunk342BFYZZ_cjs.Request {
18256
18294
  }
18257
18295
  this._includes.push({
18258
18296
  fieldName: "insights",
18259
- fragmentDoc: chunk5IUEWNZ6_cjs.InsightConnectionFragmentDoc,
18297
+ fragmentDoc: chunkGL6CUR7S_cjs.InsightConnectionFragmentDoc,
18260
18298
  variables,
18261
18299
  isConnection: true,
18262
18300
  isList: false,
@@ -18274,10 +18312,10 @@ var ReportsQuery = class _ReportsQuery extends chunk342BFYZZ_cjs.Request {
18274
18312
  }
18275
18313
  /** Include layout in this query (Smart Fetch — single HTTP request). */
18276
18314
  layout(variables) {
18277
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Report_LayoutDocument, "layout", ["id"]);
18315
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Report_LayoutDocument, "layout", ["id"]);
18278
18316
  this._includes.push({
18279
18317
  fieldName: "layout",
18280
- fragmentDoc: chunk5IUEWNZ6_cjs.ReportMemberFragmentDoc,
18318
+ fragmentDoc: chunkGL6CUR7S_cjs.ReportMemberFragmentDoc,
18281
18319
  variables,
18282
18320
  isConnection: false,
18283
18321
  isList: true,
@@ -18300,7 +18338,7 @@ var SearchQuery = class extends chunk342BFYZZ_cjs.Request {
18300
18338
  this._variables = variables;
18301
18339
  }
18302
18340
  async fetch(options) {
18303
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.SearchDocument, "search", this._includes, this._variables);
18341
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.SearchDocument, "search", this._includes, this._variables);
18304
18342
  const response = await this._syncEngine.query(queryDoc, mergedVars, "search");
18305
18343
  const data = response.search;
18306
18344
  if (!Array.isArray(data)) return [];
@@ -18316,7 +18354,7 @@ var TableQuery = class extends chunk342BFYZZ_cjs.Request {
18316
18354
  }
18317
18355
  async fetch(options) {
18318
18356
  const variables = this._variables;
18319
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.TableDocument, "table", this._includes, variables);
18357
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.TableDocument, "table", this._includes, variables);
18320
18358
  const response = await this._syncEngine.query(queryDoc, mergedVars, "table");
18321
18359
  const data = response.table;
18322
18360
  const instance = new Table(this._request, data, this._syncEngine, this._baseUrl);
@@ -18328,7 +18366,7 @@ var TableQuery = class extends chunk342BFYZZ_cjs.Request {
18328
18366
  watch(options) {
18329
18367
  const variables = this._variables;
18330
18368
  const includes = this._includes;
18331
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.TableDocument, "table", includes, variables);
18369
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.TableDocument, "table", includes, variables);
18332
18370
  const raw = this._syncEngine.watch(
18333
18371
  queryDoc,
18334
18372
  mergedVars,
@@ -18358,7 +18396,7 @@ var TableQuery = class extends chunk342BFYZZ_cjs.Request {
18358
18396
  }
18359
18397
  /** Include database in this query (Smart Fetch — single HTTP request). */
18360
18398
  database(variables, builder) {
18361
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Table_DatabaseDocument, "database", ["id"]);
18399
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Table_DatabaseDocument, "database", ["id"]);
18362
18400
  let children;
18363
18401
  if (builder) {
18364
18402
  const sub = new DatabaseSubBuilder();
@@ -18367,7 +18405,7 @@ var TableQuery = class extends chunk342BFYZZ_cjs.Request {
18367
18405
  }
18368
18406
  this._includes.push({
18369
18407
  fieldName: "database",
18370
- fragmentDoc: chunk5IUEWNZ6_cjs.DatabaseFragmentDoc,
18408
+ fragmentDoc: chunkGL6CUR7S_cjs.DatabaseFragmentDoc,
18371
18409
  variables,
18372
18410
  isConnection: false,
18373
18411
  isList: false,
@@ -18384,7 +18422,7 @@ var TableQuery = class extends chunk342BFYZZ_cjs.Request {
18384
18422
  }
18385
18423
  /** Include document in this query (Smart Fetch — single HTTP request). */
18386
18424
  document(variables, builder) {
18387
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Table_DocumentDocument, "document", ["id"]);
18425
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Table_DocumentDocument, "document", ["id"]);
18388
18426
  let children;
18389
18427
  if (builder) {
18390
18428
  const sub = new DocumentSubBuilder();
@@ -18393,7 +18431,7 @@ var TableQuery = class extends chunk342BFYZZ_cjs.Request {
18393
18431
  }
18394
18432
  this._includes.push({
18395
18433
  fieldName: "document",
18396
- fragmentDoc: chunk5IUEWNZ6_cjs.DocumentFragmentDoc,
18434
+ fragmentDoc: chunkGL6CUR7S_cjs.DocumentFragmentDoc,
18397
18435
  variables,
18398
18436
  isConnection: false,
18399
18437
  isList: false,
@@ -18410,10 +18448,10 @@ var TableQuery = class extends chunk342BFYZZ_cjs.Request {
18410
18448
  }
18411
18449
  /** Include fromRelations in this query (Smart Fetch — single HTTP request). */
18412
18450
  fromRelations(variables) {
18413
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Table_FromRelationsDocument, "fromRelations", ["id"]);
18451
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Table_FromRelationsDocument, "fromRelations", ["id"]);
18414
18452
  this._includes.push({
18415
18453
  fieldName: "fromRelations",
18416
- fragmentDoc: chunk5IUEWNZ6_cjs.RelationFragmentDoc,
18454
+ fragmentDoc: chunkGL6CUR7S_cjs.RelationFragmentDoc,
18417
18455
  variables,
18418
18456
  isConnection: false,
18419
18457
  isList: true,
@@ -18429,10 +18467,10 @@ var TableQuery = class extends chunk342BFYZZ_cjs.Request {
18429
18467
  }
18430
18468
  /** Include toRelations in this query (Smart Fetch — single HTTP request). */
18431
18469
  toRelations(variables) {
18432
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Table_ToRelationsDocument, "toRelations", ["id"]);
18470
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Table_ToRelationsDocument, "toRelations", ["id"]);
18433
18471
  this._includes.push({
18434
18472
  fieldName: "toRelations",
18435
- fragmentDoc: chunk5IUEWNZ6_cjs.RelationFragmentDoc,
18473
+ fragmentDoc: chunkGL6CUR7S_cjs.RelationFragmentDoc,
18436
18474
  variables,
18437
18475
  isConnection: false,
18438
18476
  isList: true,
@@ -18455,14 +18493,14 @@ var Table_DatabaseQuery = class extends chunk342BFYZZ_cjs.Request {
18455
18493
  }
18456
18494
  async fetch(options) {
18457
18495
  const variables = this._variables;
18458
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Table_DatabaseDocument, variables, "table");
18496
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Table_DatabaseDocument, variables, "table");
18459
18497
  const data = response.table?.database;
18460
18498
  return data ? new Database(this._request, data, this._syncEngine, this._baseUrl) : void 0;
18461
18499
  }
18462
18500
  watch(options) {
18463
18501
  const variables = this._variables;
18464
18502
  const raw = this._syncEngine.watch(
18465
- chunk5IUEWNZ6_cjs.Table_DatabaseDocument,
18503
+ chunkGL6CUR7S_cjs.Table_DatabaseDocument,
18466
18504
  variables,
18467
18505
  "table",
18468
18506
  async (db) => {
@@ -18485,14 +18523,14 @@ var Table_Database_EngineQuery = class extends chunk342BFYZZ_cjs.Request {
18485
18523
  }
18486
18524
  async fetch(options) {
18487
18525
  const variables = this._variables;
18488
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Table_Database_EngineDocument, variables, "table");
18526
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Table_Database_EngineDocument, variables, "table");
18489
18527
  const data = response.table?.database?.engine;
18490
18528
  return data ? new DatabaseEngine(this._request, data, this._syncEngine, this._baseUrl) : void 0;
18491
18529
  }
18492
18530
  watch(options) {
18493
18531
  const variables = this._variables;
18494
18532
  const raw = this._syncEngine.watch(
18495
- chunk5IUEWNZ6_cjs.Table_Database_EngineDocument,
18533
+ chunkGL6CUR7S_cjs.Table_Database_EngineDocument,
18496
18534
  variables,
18497
18535
  "table",
18498
18536
  async (db) => {
@@ -18515,14 +18553,14 @@ var Table_DocumentQuery = class extends chunk342BFYZZ_cjs.Request {
18515
18553
  }
18516
18554
  async fetch(options) {
18517
18555
  const variables = this._variables;
18518
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Table_DocumentDocument, variables, "table");
18556
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Table_DocumentDocument, variables, "table");
18519
18557
  const data = response.table?.document;
18520
18558
  return data ? new Document(this._request, data, this._syncEngine, this._baseUrl) : void 0;
18521
18559
  }
18522
18560
  watch(options) {
18523
18561
  const variables = this._variables;
18524
18562
  const raw = this._syncEngine.watch(
18525
- chunk5IUEWNZ6_cjs.Table_DocumentDocument,
18563
+ chunkGL6CUR7S_cjs.Table_DocumentDocument,
18526
18564
  variables,
18527
18565
  "table",
18528
18566
  async (db) => {
@@ -18544,7 +18582,7 @@ var Table_Document_ContentsQuery = class extends chunk342BFYZZ_cjs.Request {
18544
18582
  this._variables = variables;
18545
18583
  }
18546
18584
  async fetch(options) {
18547
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Table_Document_ContentsDocument, this._variables, "table");
18585
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Table_Document_ContentsDocument, this._variables, "table");
18548
18586
  const data = response.table?.document?.contents;
18549
18587
  if (!Array.isArray(data)) return [];
18550
18588
  return data.map((item) => new DocumentContent(this._request, item, this._syncEngine, this._baseUrl));
@@ -18558,14 +18596,14 @@ var Table_Document_FileQuery = class extends chunk342BFYZZ_cjs.Request {
18558
18596
  }
18559
18597
  async fetch(options) {
18560
18598
  const variables = this._variables;
18561
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Table_Document_FileDocument, variables, "table");
18599
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Table_Document_FileDocument, variables, "table");
18562
18600
  const data = response.table?.document?.file;
18563
18601
  return data ? new File(this._request, data, this._syncEngine, this._baseUrl) : void 0;
18564
18602
  }
18565
18603
  watch(options) {
18566
18604
  const variables = this._variables;
18567
18605
  const raw = this._syncEngine.watch(
18568
- chunk5IUEWNZ6_cjs.Table_Document_FileDocument,
18606
+ chunkGL6CUR7S_cjs.Table_Document_FileDocument,
18569
18607
  variables,
18570
18608
  "table",
18571
18609
  async (db) => {
@@ -18588,14 +18626,14 @@ var Table_Document_FormatQuery = class extends chunk342BFYZZ_cjs.Request {
18588
18626
  }
18589
18627
  async fetch(options) {
18590
18628
  const variables = this._variables;
18591
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Table_Document_FormatDocument, variables, "table");
18629
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Table_Document_FormatDocument, variables, "table");
18592
18630
  const data = response.table?.document?.format;
18593
18631
  return data ? new DocumentFormat(this._request, data, this._syncEngine, this._baseUrl) : void 0;
18594
18632
  }
18595
18633
  watch(options) {
18596
18634
  const variables = this._variables;
18597
18635
  const raw = this._syncEngine.watch(
18598
- chunk5IUEWNZ6_cjs.Table_Document_FormatDocument,
18636
+ chunkGL6CUR7S_cjs.Table_Document_FormatDocument,
18599
18637
  variables,
18600
18638
  "table",
18601
18639
  async (db) => {
@@ -18617,7 +18655,7 @@ var Table_FromRelationsQuery = class extends chunk342BFYZZ_cjs.Request {
18617
18655
  this._variables = variables;
18618
18656
  }
18619
18657
  async fetch(options) {
18620
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Table_FromRelationsDocument, this._variables, "table");
18658
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Table_FromRelationsDocument, this._variables, "table");
18621
18659
  const data = response.table?.fromRelations;
18622
18660
  if (!Array.isArray(data)) return [];
18623
18661
  return data.map((item) => new Relation(this._request, item, this._syncEngine, this._baseUrl));
@@ -18630,7 +18668,7 @@ var Table_ToRelationsQuery = class extends chunk342BFYZZ_cjs.Request {
18630
18668
  this._variables = variables;
18631
18669
  }
18632
18670
  async fetch(options) {
18633
- const response = await this._syncEngine.query(chunk5IUEWNZ6_cjs.Table_ToRelationsDocument, this._variables, "table");
18671
+ const response = await this._syncEngine.query(chunkGL6CUR7S_cjs.Table_ToRelationsDocument, this._variables, "table");
18634
18672
  const data = response.table?.toRelations;
18635
18673
  if (!Array.isArray(data)) return [];
18636
18674
  return data.map((item) => new Relation(this._request, item, this._syncEngine, this._baseUrl));
@@ -18645,7 +18683,7 @@ var TablesQuery = class _TablesQuery extends chunk342BFYZZ_cjs.Request {
18645
18683
  }
18646
18684
  async fetch(options) {
18647
18685
  const variables = this._variables;
18648
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.TablesDocument, "tables", this._includes, variables, true);
18686
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.TablesDocument, "tables", this._includes, variables, true);
18649
18687
  const response = await this._syncEngine.query(queryDoc, mergedVars, "tables");
18650
18688
  const data = response.tables;
18651
18689
  const connection = new TableConnection(this._request, (conn, opts) => new _TablesQuery(this._request, this._syncEngine, chunk342BFYZZ_cjs.defaultConnection({ ...variables, ...conn }), this._baseUrl).fetch(opts), data, this._syncEngine, this._baseUrl);
@@ -18662,7 +18700,7 @@ var TablesQuery = class _TablesQuery extends chunk342BFYZZ_cjs.Request {
18662
18700
  const subscriptionId = crypto.randomUUID();
18663
18701
  const includes = this._includes;
18664
18702
  const watchedRelations = includes.flatMap((include) => include.syncMetadata ? [{ fieldName: include.fieldName, entityType: include.syncMetadata.entityType, requiredFields: include.syncMetadata.requiredFields, isConnection: include.isConnection, isList: Boolean(include.isList), hasNestedIncludes: Boolean(include.children?.length) }] : []);
18665
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.TablesDocument, "tables", includes, variables, true);
18703
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.TablesDocument, "tables", includes, variables, true);
18666
18704
  const raw = this._syncEngine.watch(
18667
18705
  queryDoc,
18668
18706
  mergedVars,
@@ -18697,7 +18735,7 @@ var TablesQuery = class _TablesQuery extends chunk342BFYZZ_cjs.Request {
18697
18735
  }
18698
18736
  /** Include database in this query (Smart Fetch — single HTTP request). */
18699
18737
  database(variables, builder) {
18700
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Table_DatabaseDocument, "database", ["id"]);
18738
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Table_DatabaseDocument, "database", ["id"]);
18701
18739
  let children;
18702
18740
  if (builder) {
18703
18741
  const sub = new DatabaseSubBuilder();
@@ -18706,7 +18744,7 @@ var TablesQuery = class _TablesQuery extends chunk342BFYZZ_cjs.Request {
18706
18744
  }
18707
18745
  this._includes.push({
18708
18746
  fieldName: "database",
18709
- fragmentDoc: chunk5IUEWNZ6_cjs.DatabaseFragmentDoc,
18747
+ fragmentDoc: chunkGL6CUR7S_cjs.DatabaseFragmentDoc,
18710
18748
  variables,
18711
18749
  isConnection: false,
18712
18750
  isList: false,
@@ -18723,7 +18761,7 @@ var TablesQuery = class _TablesQuery extends chunk342BFYZZ_cjs.Request {
18723
18761
  }
18724
18762
  /** Include document in this query (Smart Fetch — single HTTP request). */
18725
18763
  document(variables, builder) {
18726
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Table_DocumentDocument, "document", ["id"]);
18764
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Table_DocumentDocument, "document", ["id"]);
18727
18765
  let children;
18728
18766
  if (builder) {
18729
18767
  const sub = new DocumentSubBuilder();
@@ -18732,7 +18770,7 @@ var TablesQuery = class _TablesQuery extends chunk342BFYZZ_cjs.Request {
18732
18770
  }
18733
18771
  this._includes.push({
18734
18772
  fieldName: "document",
18735
- fragmentDoc: chunk5IUEWNZ6_cjs.DocumentFragmentDoc,
18773
+ fragmentDoc: chunkGL6CUR7S_cjs.DocumentFragmentDoc,
18736
18774
  variables,
18737
18775
  isConnection: false,
18738
18776
  isList: false,
@@ -18749,10 +18787,10 @@ var TablesQuery = class _TablesQuery extends chunk342BFYZZ_cjs.Request {
18749
18787
  }
18750
18788
  /** Include fromRelations in this query (Smart Fetch — single HTTP request). */
18751
18789
  fromRelations(variables) {
18752
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Table_FromRelationsDocument, "fromRelations", ["id"]);
18790
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Table_FromRelationsDocument, "fromRelations", ["id"]);
18753
18791
  this._includes.push({
18754
18792
  fieldName: "fromRelations",
18755
- fragmentDoc: chunk5IUEWNZ6_cjs.RelationFragmentDoc,
18793
+ fragmentDoc: chunkGL6CUR7S_cjs.RelationFragmentDoc,
18756
18794
  variables,
18757
18795
  isConnection: false,
18758
18796
  isList: true,
@@ -18768,10 +18806,10 @@ var TablesQuery = class _TablesQuery extends chunk342BFYZZ_cjs.Request {
18768
18806
  }
18769
18807
  /** Include toRelations in this query (Smart Fetch — single HTTP request). */
18770
18808
  toRelations(variables) {
18771
- const info = extractIncludeInfo(chunk5IUEWNZ6_cjs.Table_ToRelationsDocument, "toRelations", ["id"]);
18809
+ const info = extractIncludeInfo(chunkGL6CUR7S_cjs.Table_ToRelationsDocument, "toRelations", ["id"]);
18772
18810
  this._includes.push({
18773
18811
  fieldName: "toRelations",
18774
- fragmentDoc: chunk5IUEWNZ6_cjs.RelationFragmentDoc,
18812
+ fragmentDoc: chunkGL6CUR7S_cjs.RelationFragmentDoc,
18775
18813
  variables,
18776
18814
  isConnection: false,
18777
18815
  isList: true,
@@ -18795,7 +18833,7 @@ var UserSkillFileQuery = class extends chunk342BFYZZ_cjs.Request {
18795
18833
  }
18796
18834
  async fetch(options) {
18797
18835
  const variables = this._variables;
18798
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.UserSkillFileDocument, "userSkillFile", this._includes, variables);
18836
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.UserSkillFileDocument, "userSkillFile", this._includes, variables);
18799
18837
  const response = await this._syncEngine.query(queryDoc, mergedVars, "userSkillFile");
18800
18838
  const data = response.userSkillFile;
18801
18839
  const instance = new UserSkillFileModel(this._request, data, this._syncEngine, this._baseUrl);
@@ -18807,7 +18845,7 @@ var UserSkillFileQuery = class extends chunk342BFYZZ_cjs.Request {
18807
18845
  watch(options) {
18808
18846
  const variables = this._variables;
18809
18847
  const includes = this._includes;
18810
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.UserSkillFileDocument, "userSkillFile", includes, variables);
18848
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.UserSkillFileDocument, "userSkillFile", includes, variables);
18811
18849
  const raw = this._syncEngine.watch(
18812
18850
  queryDoc,
18813
18851
  mergedVars,
@@ -18844,7 +18882,7 @@ var UserSkillFilesQuery = class extends chunk342BFYZZ_cjs.Request {
18844
18882
  this._variables = variables;
18845
18883
  }
18846
18884
  async fetch(options) {
18847
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.UserSkillFilesDocument, "userSkillFiles", this._includes, this._variables);
18885
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.UserSkillFilesDocument, "userSkillFiles", this._includes, this._variables);
18848
18886
  const response = await this._syncEngine.query(queryDoc, mergedVars, "userSkillFiles");
18849
18887
  const data = response.userSkillFiles;
18850
18888
  if (!Array.isArray(data)) return [];
@@ -18860,7 +18898,7 @@ var UserSkillFolderQuery = class extends chunk342BFYZZ_cjs.Request {
18860
18898
  }
18861
18899
  async fetch(options) {
18862
18900
  const variables = this._variables;
18863
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.UserSkillFolderDocument, "userSkillFolder", this._includes, variables);
18901
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.UserSkillFolderDocument, "userSkillFolder", this._includes, variables);
18864
18902
  const response = await this._syncEngine.query(queryDoc, mergedVars, "userSkillFolder");
18865
18903
  const data = response.userSkillFolder;
18866
18904
  const instance = new UserSkillFolderModel(this._request, data, this._syncEngine, this._baseUrl);
@@ -18872,7 +18910,7 @@ var UserSkillFolderQuery = class extends chunk342BFYZZ_cjs.Request {
18872
18910
  watch(options) {
18873
18911
  const variables = this._variables;
18874
18912
  const includes = this._includes;
18875
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.UserSkillFolderDocument, "userSkillFolder", includes, variables);
18913
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.UserSkillFolderDocument, "userSkillFolder", includes, variables);
18876
18914
  const raw = this._syncEngine.watch(
18877
18915
  queryDoc,
18878
18916
  mergedVars,
@@ -18909,7 +18947,7 @@ var UserSkillFoldersQuery = class extends chunk342BFYZZ_cjs.Request {
18909
18947
  this._variables = variables;
18910
18948
  }
18911
18949
  async fetch(options) {
18912
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.UserSkillFoldersDocument, "userSkillFolders", this._includes, this._variables);
18950
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.UserSkillFoldersDocument, "userSkillFolders", this._includes, this._variables);
18913
18951
  const response = await this._syncEngine.query(queryDoc, mergedVars, "userSkillFolders");
18914
18952
  const data = response.userSkillFolders;
18915
18953
  if (!Array.isArray(data)) return [];
@@ -18925,7 +18963,7 @@ var WorkspaceDeletionScheduleQuery = class extends chunk342BFYZZ_cjs.Request {
18925
18963
  }
18926
18964
  async fetch(options) {
18927
18965
  const variables = this._variables;
18928
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.WorkspaceDeletionScheduleDocument, "workspaceDeletionSchedule", this._includes, variables);
18966
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.WorkspaceDeletionScheduleDocument, "workspaceDeletionSchedule", this._includes, variables);
18929
18967
  const response = await this._syncEngine.query(queryDoc, mergedVars, "workspaceDeletionSchedule");
18930
18968
  const data = response.workspaceDeletionSchedule;
18931
18969
  if (!data) return void 0;
@@ -18938,7 +18976,7 @@ var WorkspaceDeletionScheduleQuery = class extends chunk342BFYZZ_cjs.Request {
18938
18976
  watch(options) {
18939
18977
  const variables = this._variables;
18940
18978
  const includes = this._includes;
18941
- const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunk5IUEWNZ6_cjs.WorkspaceDeletionScheduleDocument, "workspaceDeletionSchedule", includes, variables);
18979
+ const { document: queryDoc, variables: mergedVars } = buildSmartQuery(chunkGL6CUR7S_cjs.WorkspaceDeletionScheduleDocument, "workspaceDeletionSchedule", includes, variables);
18942
18980
  const raw = this._syncEngine.watch(
18943
18981
  queryDoc,
18944
18982
  mergedVars,
@@ -18970,7 +19008,7 @@ var WorkspaceDeletionScheduleQuery = class extends chunk342BFYZZ_cjs.Request {
18970
19008
  };
18971
19009
  var McpAuthUpdatesSubscription = class extends chunk342BFYZZ_cjs.Request {
18972
19010
  async *subscribe(variables) {
18973
- for await (const response of this._subscribe(chunk5IUEWNZ6_cjs.McpAuthUpdatesDocument, variables)) {
19011
+ for await (const response of this._subscribe(chunkGL6CUR7S_cjs.McpAuthUpdatesDocument, variables)) {
18974
19012
  const data = response.mcpAuthUpdates;
18975
19013
  yield new McpAuthUpdateModel(this._request, data, this._syncEngine, this._baseUrl);
18976
19014
  }
@@ -18978,12 +19016,12 @@ var McpAuthUpdatesSubscription = class extends chunk342BFYZZ_cjs.Request {
18978
19016
  };
18979
19017
  var SendMessageStreamSubscription = class extends chunk342BFYZZ_cjs.Request {
18980
19018
  subscribe(variables) {
18981
- return this._subscribe(chunk5IUEWNZ6_cjs.SendMessageStreamDocument, variables);
19019
+ return this._subscribe(chunkGL6CUR7S_cjs.SendMessageStreamDocument, variables);
18982
19020
  }
18983
19021
  };
18984
19022
  var TokenUsageUpdatesSubscription = class extends chunk342BFYZZ_cjs.Request {
18985
19023
  async *subscribe(variables) {
18986
- for await (const response of this._subscribe(chunk5IUEWNZ6_cjs.TokenUsageUpdatesDocument, variables)) {
19024
+ for await (const response of this._subscribe(chunkGL6CUR7S_cjs.TokenUsageUpdatesDocument, variables)) {
18987
19025
  const data = response.tokenUsageUpdates;
18988
19026
  yield new UsageStatus(this._request, data, this._syncEngine, this._baseUrl);
18989
19027
  }
@@ -19169,6 +19207,10 @@ var DvinaSdk = class extends chunk342BFYZZ_cjs.Request {
19169
19207
  refreshDatabaseSchema(variables) {
19170
19208
  return new RefreshDatabaseSchemaMutation(this._request, this._syncEngine).fetch(variables);
19171
19209
  }
19210
+ /** Mutation: refreshInsight */
19211
+ refreshInsight(variables) {
19212
+ return new RefreshInsightMutation(this._request, this._syncEngine, void 0, this._baseUrl).fetch(variables);
19213
+ }
19172
19214
  /** Mutation: reinterpretSource (scalar) */
19173
19215
  reinterpretSource(variables) {
19174
19216
  return new ReinterpretSourceMutation(this._request, this._syncEngine).fetch(variables);
@@ -19807,6 +19849,7 @@ exports.ReanalyzeDocumentMutation = ReanalyzeDocumentMutation;
19807
19849
  exports.ReasoningEventOutput = ReasoningEventOutput;
19808
19850
  exports.RefineMindInstructionMutation = RefineMindInstructionMutation;
19809
19851
  exports.RefreshDatabaseSchemaMutation = RefreshDatabaseSchemaMutation;
19852
+ exports.RefreshInsightMutation = RefreshInsightMutation;
19810
19853
  exports.ReinterpretSourceMutation = ReinterpretSourceMutation;
19811
19854
  exports.ReinterpretSourcesOfuserMutation = ReinterpretSourcesOfuserMutation;
19812
19855
  exports.Relation = Relation;
@@ -19893,5 +19936,5 @@ exports.getOrCreateDatabase = getOrCreateDatabase;
19893
19936
  exports.reconstructConnectionNodes = reconstructConnectionNodes;
19894
19937
  exports.reconstructEntity = reconstructEntity;
19895
19938
  exports.uploadFile = uploadFile;
19896
- //# sourceMappingURL=chunk-KH5LMKKK.cjs.map
19897
- //# sourceMappingURL=chunk-KH5LMKKK.cjs.map
19939
+ //# sourceMappingURL=chunk-ZWQVDMIR.cjs.map
19940
+ //# sourceMappingURL=chunk-ZWQVDMIR.cjs.map