| 1 | // GENERATED CODE - DO NOT MODIFY BY HAND |
| 2 | // This code was generated by ObjectBox. To update it run the generator again |
| 3 | // with `dart run build_runner build`. |
| 4 | // See also https://docs.objectbox.io/getting-started#generate-objectbox-code |
| 5 | |
| 6 | // ignore_for_file: camel_case_types, depend_on_referenced_packages |
| 7 | // coverage:ignore-file |
| 8 | |
| 9 | import 'dart:typed_data'; |
| 10 | |
| 11 | import 'package:flat_buffers/flat_buffers.dart' as fb; |
| 12 | import 'package:objectbox/internal.dart' |
| 13 | as obx_int; // generated code can access "internal" functionality |
| 14 | import 'package:objectbox/objectbox.dart' as obx; |
| 15 | import 'package:objectbox_flutter_libs/objectbox_flutter_libs.dart'; |
| 16 | |
| 17 | import 'core/storage/entities.dart'; |
| 18 | |
| 19 | export 'package:objectbox/objectbox.dart'; // so that callers only have to import this file |
| 20 | |
| 21 | final _entities = <obx_int.ModelEntity>[ |
| 22 | obx_int.ModelEntity( |
| 23 | id: const obx_int.IdUid(1, 6060443518060866028), |
| 24 | name: 'ConversationEntity', |
| 25 | lastPropertyId: const obx_int.IdUid(24, 2324488738774851555), |
| 26 | flags: 0, |
| 27 | properties: <obx_int.ModelProperty>[ |
| 28 | obx_int.ModelProperty( |
| 29 | id: const obx_int.IdUid(1, 7250988890405982940), |
| 30 | name: 'internalId', |
| 31 | type: 6, |
| 32 | flags: 1, |
| 33 | ), |
| 34 | obx_int.ModelProperty( |
| 35 | id: const obx_int.IdUid(2, 6585352959757183870), |
| 36 | name: 'id', |
| 37 | type: 9, |
| 38 | flags: 2048, |
| 39 | indexId: const obx_int.IdUid(1, 4841541219215160349), |
| 40 | ), |
| 41 | obx_int.ModelProperty( |
| 42 | id: const obx_int.IdUid(3, 4528360812098110067), |
| 43 | name: 'title', |
| 44 | type: 9, |
| 45 | flags: 0, |
| 46 | ), |
| 47 | obx_int.ModelProperty( |
| 48 | id: const obx_int.IdUid(4, 6318468918758166025), |
| 49 | name: 'createdAt', |
| 50 | type: 10, |
| 51 | flags: 0, |
| 52 | ), |
| 53 | obx_int.ModelProperty( |
| 54 | id: const obx_int.IdUid(5, 3060834012974707866), |
| 55 | name: 'updatedAt', |
| 56 | type: 10, |
| 57 | flags: 0, |
| 58 | ), |
| 59 | obx_int.ModelProperty( |
| 60 | id: const obx_int.IdUid(6, 617250549526069739), |
| 61 | name: 'isPinned', |
| 62 | type: 1, |
| 63 | flags: 0, |
| 64 | ), |
| 65 | obx_int.ModelProperty( |
| 66 | id: const obx_int.IdUid(7, 5786554614037038633), |
| 67 | name: 'personaId', |
| 68 | type: 9, |
| 69 | flags: 0, |
| 70 | ), |
| 71 | obx_int.ModelProperty( |
| 72 | id: const obx_int.IdUid(8, 2861907472509737489), |
| 73 | name: 'serverId', |
| 74 | type: 9, |
| 75 | flags: 0, |
| 76 | ), |
| 77 | obx_int.ModelProperty( |
| 78 | id: const obx_int.IdUid(9, 7707788543167527562), |
| 79 | name: 'modelId', |
| 80 | type: 9, |
| 81 | flags: 0, |
| 82 | ), |
| 83 | obx_int.ModelProperty( |
| 84 | id: const obx_int.IdUid(10, 6820164520934907732), |
| 85 | name: 'messageCount', |
| 86 | type: 6, |
| 87 | flags: 0, |
| 88 | ), |
| 89 | obx_int.ModelProperty( |
| 90 | id: const obx_int.IdUid(11, 3808591552035911328), |
| 91 | name: 'lastMessagePreview', |
| 92 | type: 9, |
| 93 | flags: 0, |
| 94 | ), |
| 95 | obx_int.ModelProperty( |
| 96 | id: const obx_int.IdUid(12, 768672924450595967), |
| 97 | name: 'systemPrompt', |
| 98 | type: 9, |
| 99 | flags: 0, |
| 100 | ), |
| 101 | obx_int.ModelProperty( |
| 102 | id: const obx_int.IdUid(13, 2024052842140577753), |
| 103 | name: 'temperature', |
| 104 | type: 8, |
| 105 | flags: 0, |
| 106 | ), |
| 107 | obx_int.ModelProperty( |
| 108 | id: const obx_int.IdUid(14, 4666617501498182545), |
| 109 | name: 'topP', |
| 110 | type: 8, |
| 111 | flags: 0, |
| 112 | ), |
| 113 | obx_int.ModelProperty( |
| 114 | id: const obx_int.IdUid(15, 6140239983637101227), |
| 115 | name: 'maxTokens', |
| 116 | type: 6, |
| 117 | flags: 0, |
| 118 | ), |
| 119 | obx_int.ModelProperty( |
| 120 | id: const obx_int.IdUid(16, 9154328066006661329), |
| 121 | name: 'contextLength', |
| 122 | type: 6, |
| 123 | flags: 0, |
| 124 | ), |
| 125 | obx_int.ModelProperty( |
| 126 | id: const obx_int.IdUid(17, 8783340423572117942), |
| 127 | name: 'mcpEnabled', |
| 128 | type: 1, |
| 129 | flags: 0, |
| 130 | ), |
| 131 | obx_int.ModelProperty( |
| 132 | id: const obx_int.IdUid(18, 2260684969168742247), |
| 133 | name: 'smartRepliesJson', |
| 134 | type: 9, |
| 135 | flags: 0, |
| 136 | ), |
| 137 | obx_int.ModelProperty( |
| 138 | id: const obx_int.IdUid(19, 2437473986237603139), |
| 139 | name: 'smartRepliesLastMessageId', |
| 140 | type: 9, |
| 141 | flags: 0, |
| 142 | ), |
| 143 | obx_int.ModelProperty( |
| 144 | id: const obx_int.IdUid(20, 6746128880040296628), |
| 145 | name: 'folderId', |
| 146 | type: 9, |
| 147 | flags: 0, |
| 148 | ), |
| 149 | obx_int.ModelProperty( |
| 150 | id: const obx_int.IdUid(21, 4372897463643655414), |
| 151 | name: 'isTemporary', |
| 152 | type: 1, |
| 153 | flags: 0, |
| 154 | ), |
| 155 | obx_int.ModelProperty( |
| 156 | id: const obx_int.IdUid(22, 2980396196878246454), |
| 157 | name: 'isArchived', |
| 158 | type: 1, |
| 159 | flags: 0, |
| 160 | ), |
| 161 | obx_int.ModelProperty( |
| 162 | id: const obx_int.IdUid(23, 3122805731877931734), |
| 163 | name: 'characterCount', |
| 164 | type: 6, |
| 165 | flags: 0, |
| 166 | ), |
| 167 | obx_int.ModelProperty( |
| 168 | id: const obx_int.IdUid(24, 2324488738774851555), |
| 169 | name: 'totalTokenCount', |
| 170 | type: 6, |
| 171 | flags: 0, |
| 172 | ), |
| 173 | ], |
| 174 | relations: <obx_int.ModelRelation>[], |
| 175 | backlinks: <obx_int.ModelBacklink>[ |
| 176 | obx_int.ModelBacklink( |
| 177 | name: 'messages', |
| 178 | srcEntity: 'MessageEntity', |
| 179 | srcField: '', |
| 180 | ), |
| 181 | ], |
| 182 | ), |
| 183 | obx_int.ModelEntity( |
| 184 | id: const obx_int.IdUid(2, 196881068437544233), |
| 185 | name: 'MessageEntity', |
| 186 | lastPropertyId: const obx_int.IdUid(29, 6028398201373029019), |
| 187 | flags: 0, |
| 188 | properties: <obx_int.ModelProperty>[ |
| 189 | obx_int.ModelProperty( |
| 190 | id: const obx_int.IdUid(1, 3923220810652427930), |
| 191 | name: 'internalId', |
| 192 | type: 6, |
| 193 | flags: 1, |
| 194 | ), |
| 195 | obx_int.ModelProperty( |
| 196 | id: const obx_int.IdUid(2, 4538486775689812159), |
| 197 | name: 'id', |
| 198 | type: 9, |
| 199 | flags: 2048, |
| 200 | indexId: const obx_int.IdUid(2, 2170902273804247015), |
| 201 | ), |
| 202 | obx_int.ModelProperty( |
| 203 | id: const obx_int.IdUid(3, 2455937359218896797), |
| 204 | name: 'conversationId', |
| 205 | type: 11, |
| 206 | flags: 520, |
| 207 | indexId: const obx_int.IdUid(3, 169510492024268969), |
| 208 | relationField: 'conversation', |
| 209 | relationTarget: 'ConversationEntity', |
| 210 | ), |
| 211 | obx_int.ModelProperty( |
| 212 | id: const obx_int.IdUid(4, 9041846205772997953), |
| 213 | name: 'conversationUid', |
| 214 | type: 9, |
| 215 | flags: 2048, |
| 216 | indexId: const obx_int.IdUid(4, 7620462177544383533), |
| 217 | ), |
| 218 | obx_int.ModelProperty( |
| 219 | id: const obx_int.IdUid(5, 3967309868246732396), |
| 220 | name: 'roleIndex', |
| 221 | type: 5, |
| 222 | flags: 0, |
| 223 | ), |
| 224 | obx_int.ModelProperty( |
| 225 | id: const obx_int.IdUid(6, 5292209498807417151), |
| 226 | name: 'content', |
| 227 | type: 9, |
| 228 | flags: 0, |
| 229 | ), |
| 230 | obx_int.ModelProperty( |
| 231 | id: const obx_int.IdUid(7, 4728980799803110489), |
| 232 | name: 'createdAt', |
| 233 | type: 10, |
| 234 | flags: 0, |
| 235 | ), |
| 236 | obx_int.ModelProperty( |
| 237 | id: const obx_int.IdUid(8, 4723736841925529304), |
| 238 | name: 'statusIndex', |
| 239 | type: 5, |
| 240 | flags: 0, |
| 241 | ), |
| 242 | obx_int.ModelProperty( |
| 243 | id: const obx_int.IdUid(9, 5749988360982169067), |
| 244 | name: 'modelId', |
| 245 | type: 9, |
| 246 | flags: 0, |
| 247 | ), |
| 248 | obx_int.ModelProperty( |
| 249 | id: const obx_int.IdUid(10, 5208151897806410090), |
| 250 | name: 'tokenCount', |
| 251 | type: 6, |
| 252 | flags: 0, |
| 253 | ), |
| 254 | obx_int.ModelProperty( |
| 255 | id: const obx_int.IdUid(11, 5046757142081916519), |
| 256 | name: 'errorMessage', |
| 257 | type: 9, |
| 258 | flags: 0, |
| 259 | ), |
| 260 | obx_int.ModelProperty( |
| 261 | id: const obx_int.IdUid(12, 3014900088652314818), |
| 262 | name: 'attachmentPathsJson', |
| 263 | type: 9, |
| 264 | flags: 0, |
| 265 | ), |
| 266 | obx_int.ModelProperty( |
| 267 | id: const obx_int.IdUid(13, 754466339638382368), |
| 268 | name: 'generationTimeMs', |
| 269 | type: 6, |
| 270 | flags: 0, |
| 271 | ), |
| 272 | obx_int.ModelProperty( |
| 273 | id: const obx_int.IdUid(14, 6735567839050317594), |
| 274 | name: 'reasoningContent', |
| 275 | type: 9, |
| 276 | flags: 0, |
| 277 | ), |
| 278 | obx_int.ModelProperty( |
| 279 | id: const obx_int.IdUid(15, 2001265758949765605), |
| 280 | name: 'toolCallsJson', |
| 281 | type: 9, |
| 282 | flags: 0, |
| 283 | ), |
| 284 | obx_int.ModelProperty( |
| 285 | id: const obx_int.IdUid(16, 6649517364442324198), |
| 286 | name: 'toolCallId', |
| 287 | type: 9, |
| 288 | flags: 0, |
| 289 | ), |
| 290 | obx_int.ModelProperty( |
| 291 | id: const obx_int.IdUid(17, 6197342254666211356), |
| 292 | name: 'isProcessing', |
| 293 | type: 1, |
| 294 | flags: 0, |
| 295 | ), |
| 296 | obx_int.ModelProperty( |
| 297 | id: const obx_int.IdUid(18, 3862782083473953676), |
| 298 | name: 'toolSessionId', |
| 299 | type: 9, |
| 300 | flags: 0, |
| 301 | ), |
| 302 | obx_int.ModelProperty( |
| 303 | id: const obx_int.IdUid(19, 5573835801528383007), |
| 304 | name: 'toolEventsJson', |
| 305 | type: 9, |
| 306 | flags: 0, |
| 307 | ), |
| 308 | obx_int.ModelProperty( |
| 309 | id: const obx_int.IdUid(20, 1744774964291030898), |
| 310 | name: 'variantGroupId', |
| 311 | type: 9, |
| 312 | flags: 0, |
| 313 | ), |
| 314 | obx_int.ModelProperty( |
| 315 | id: const obx_int.IdUid(21, 6711322182948396736), |
| 316 | name: 'variantIndex', |
| 317 | type: 6, |
| 318 | flags: 0, |
| 319 | ), |
| 320 | obx_int.ModelProperty( |
| 321 | id: const obx_int.IdUid(22, 5971161269391176967), |
| 322 | name: 'threadOrder', |
| 323 | type: 6, |
| 324 | flags: 0, |
| 325 | ), |
| 326 | obx_int.ModelProperty( |
| 327 | id: const obx_int.IdUid(23, 245069546630142341), |
| 328 | name: 'isActiveVariant', |
| 329 | type: 1, |
| 330 | flags: 0, |
| 331 | ), |
| 332 | obx_int.ModelProperty( |
| 333 | id: const obx_int.IdUid(24, 5960797950716320436), |
| 334 | name: 'parentMessageId', |
| 335 | type: 9, |
| 336 | flags: 0, |
| 337 | ), |
| 338 | obx_int.ModelProperty( |
| 339 | id: const obx_int.IdUid(25, 1552629421552033386), |
| 340 | name: 'inputTokenCount', |
| 341 | type: 6, |
| 342 | flags: 0, |
| 343 | ), |
| 344 | obx_int.ModelProperty( |
| 345 | id: const obx_int.IdUid(26, 1965067209419994290), |
| 346 | name: 'tokensPerSecond', |
| 347 | type: 8, |
| 348 | flags: 0, |
| 349 | ), |
| 350 | obx_int.ModelProperty( |
| 351 | id: const obx_int.IdUid(27, 7785830711210478899), |
| 352 | name: 'ttftMs', |
| 353 | type: 6, |
| 354 | flags: 0, |
| 355 | ), |
| 356 | obx_int.ModelProperty( |
| 357 | id: const obx_int.IdUid(28, 8162956617579414275), |
| 358 | name: 'stopReason', |
| 359 | type: 9, |
| 360 | flags: 0, |
| 361 | ), |
| 362 | obx_int.ModelProperty( |
| 363 | id: const obx_int.IdUid(29, 6028398201373029019), |
| 364 | name: 'contentTokenCount', |
| 365 | type: 6, |
| 366 | flags: 0, |
| 367 | ), |
| 368 | ], |
| 369 | relations: <obx_int.ModelRelation>[], |
| 370 | backlinks: <obx_int.ModelBacklink>[], |
| 371 | ), |
| 372 | obx_int.ModelEntity( |
| 373 | id: const obx_int.IdUid(3, 2653818534060300073), |
| 374 | name: 'PersonaEntity', |
| 375 | lastPropertyId: const obx_int.IdUid(11, 6109868781061218611), |
| 376 | flags: 0, |
| 377 | properties: <obx_int.ModelProperty>[ |
| 378 | obx_int.ModelProperty( |
| 379 | id: const obx_int.IdUid(1, 5387772201885529069), |
| 380 | name: 'internalId', |
| 381 | type: 6, |
| 382 | flags: 1, |
| 383 | ), |
| 384 | obx_int.ModelProperty( |
| 385 | id: const obx_int.IdUid(2, 943547030981649537), |
| 386 | name: 'id', |
| 387 | type: 9, |
| 388 | flags: 2048, |
| 389 | indexId: const obx_int.IdUid(5, 271490381912735587), |
| 390 | ), |
| 391 | obx_int.ModelProperty( |
| 392 | id: const obx_int.IdUid(3, 5296359738005988766), |
| 393 | name: 'name', |
| 394 | type: 9, |
| 395 | flags: 0, |
| 396 | ), |
| 397 | obx_int.ModelProperty( |
| 398 | id: const obx_int.IdUid(4, 1099248784524684443), |
| 399 | name: 'emoji', |
| 400 | type: 9, |
| 401 | flags: 0, |
| 402 | ), |
| 403 | obx_int.ModelProperty( |
| 404 | id: const obx_int.IdUid(5, 5744781536100424228), |
| 405 | name: 'systemPrompt', |
| 406 | type: 9, |
| 407 | flags: 0, |
| 408 | ), |
| 409 | obx_int.ModelProperty( |
| 410 | id: const obx_int.IdUid(6, 7306493291640402510), |
| 411 | name: 'description', |
| 412 | type: 9, |
| 413 | flags: 0, |
| 414 | ), |
| 415 | obx_int.ModelProperty( |
| 416 | id: const obx_int.IdUid(7, 3478346354108827230), |
| 417 | name: 'isBuiltIn', |
| 418 | type: 1, |
| 419 | flags: 0, |
| 420 | ), |
| 421 | obx_int.ModelProperty( |
| 422 | id: const obx_int.IdUid(8, 2536114129168373905), |
| 423 | name: 'createdAt', |
| 424 | type: 10, |
| 425 | flags: 0, |
| 426 | ), |
| 427 | obx_int.ModelProperty( |
| 428 | id: const obx_int.IdUid(9, 2004523499979292665), |
| 429 | name: 'updatedAt', |
| 430 | type: 10, |
| 431 | flags: 0, |
| 432 | ), |
| 433 | obx_int.ModelProperty( |
| 434 | id: const obx_int.IdUid(10, 4803561724777818572), |
| 435 | name: 'category', |
| 436 | type: 9, |
| 437 | flags: 0, |
| 438 | ), |
| 439 | obx_int.ModelProperty( |
| 440 | id: const obx_int.IdUid(11, 6109868781061218611), |
| 441 | name: 'preferredParamsJson', |
| 442 | type: 9, |
| 443 | flags: 0, |
| 444 | ), |
| 445 | ], |
| 446 | relations: <obx_int.ModelRelation>[], |
| 447 | backlinks: <obx_int.ModelBacklink>[], |
| 448 | ), |
| 449 | obx_int.ModelEntity( |
| 450 | id: const obx_int.IdUid(4, 6971506781199819057), |
| 451 | name: 'ServerEntity', |
| 452 | lastPropertyId: const obx_int.IdUid(15, 6058370228992885505), |
| 453 | flags: 0, |
| 454 | properties: <obx_int.ModelProperty>[ |
| 455 | obx_int.ModelProperty( |
| 456 | id: const obx_int.IdUid(1, 1193214592990508905), |
| 457 | name: 'internalId', |
| 458 | type: 6, |
| 459 | flags: 1, |
| 460 | ), |
| 461 | obx_int.ModelProperty( |
| 462 | id: const obx_int.IdUid(2, 1949522104474427292), |
| 463 | name: 'id', |
| 464 | type: 9, |
| 465 | flags: 2048, |
| 466 | indexId: const obx_int.IdUid(6, 4529386251594949074), |
| 467 | ), |
| 468 | obx_int.ModelProperty( |
| 469 | id: const obx_int.IdUid(3, 5435197030913688688), |
| 470 | name: 'name', |
| 471 | type: 9, |
| 472 | flags: 0, |
| 473 | ), |
| 474 | obx_int.ModelProperty( |
| 475 | id: const obx_int.IdUid(4, 5859746794128897561), |
| 476 | name: 'typeIndex', |
| 477 | type: 5, |
| 478 | flags: 0, |
| 479 | ), |
| 480 | obx_int.ModelProperty( |
| 481 | id: const obx_int.IdUid(5, 7884292605074234260), |
| 482 | name: 'host', |
| 483 | type: 9, |
| 484 | flags: 0, |
| 485 | ), |
| 486 | obx_int.ModelProperty( |
| 487 | id: const obx_int.IdUid(6, 2516802883134110310), |
| 488 | name: 'port', |
| 489 | type: 6, |
| 490 | flags: 0, |
| 491 | ), |
| 492 | obx_int.ModelProperty( |
| 493 | id: const obx_int.IdUid(7, 9034988768868935282), |
| 494 | name: 'apiKey', |
| 495 | type: 9, |
| 496 | flags: 0, |
| 497 | ), |
| 498 | obx_int.ModelProperty( |
| 499 | id: const obx_int.IdUid(8, 7825400106697971993), |
| 500 | name: 'isDefault', |
| 501 | type: 1, |
| 502 | flags: 0, |
| 503 | ), |
| 504 | obx_int.ModelProperty( |
| 505 | id: const obx_int.IdUid(9, 6761441426018420644), |
| 506 | name: 'createdAt', |
| 507 | type: 10, |
| 508 | flags: 0, |
| 509 | ), |
| 510 | obx_int.ModelProperty( |
| 511 | id: const obx_int.IdUid(10, 9150237084363813165), |
| 512 | name: 'lastConnectedAt', |
| 513 | type: 10, |
| 514 | flags: 0, |
| 515 | ), |
| 516 | obx_int.ModelProperty( |
| 517 | id: const obx_int.IdUid(11, 7342462043799432941), |
| 518 | name: 'statusIndex', |
| 519 | type: 5, |
| 520 | flags: 0, |
| 521 | ), |
| 522 | obx_int.ModelProperty( |
| 523 | id: const obx_int.IdUid(12, 4662365603702428254), |
| 524 | name: 'iconName', |
| 525 | type: 9, |
| 526 | flags: 0, |
| 527 | ), |
| 528 | obx_int.ModelProperty( |
| 529 | id: const obx_int.IdUid(13, 6207430374144016939), |
| 530 | name: 'pathPrefix', |
| 531 | type: 9, |
| 532 | flags: 0, |
| 533 | ), |
| 534 | obx_int.ModelProperty( |
| 535 | id: const obx_int.IdUid(14, 5253774322138008698), |
| 536 | name: 'availableRamGb', |
| 537 | type: 6, |
| 538 | flags: 0, |
| 539 | ), |
| 540 | obx_int.ModelProperty( |
| 541 | id: const obx_int.IdUid(15, 6058370228992885505), |
| 542 | name: 'availableVramGb', |
| 543 | type: 6, |
| 544 | flags: 0, |
| 545 | ), |
| 546 | ], |
| 547 | relations: <obx_int.ModelRelation>[], |
| 548 | backlinks: <obx_int.ModelBacklink>[], |
| 549 | ), |
| 550 | obx_int.ModelEntity( |
| 551 | id: const obx_int.IdUid(5, 8961477194169140955), |
| 552 | name: 'ConversationFolderEntity', |
| 553 | lastPropertyId: const obx_int.IdUid(5, 3017762750413225828), |
| 554 | flags: 0, |
| 555 | properties: <obx_int.ModelProperty>[ |
| 556 | obx_int.ModelProperty( |
| 557 | id: const obx_int.IdUid(1, 6352437205361204397), |
| 558 | name: 'internalId', |
| 559 | type: 6, |
| 560 | flags: 1, |
| 561 | ), |
| 562 | obx_int.ModelProperty( |
| 563 | id: const obx_int.IdUid(2, 2340734036954615718), |
| 564 | name: 'id', |
| 565 | type: 9, |
| 566 | flags: 2048, |
| 567 | indexId: const obx_int.IdUid(7, 2357039312556022508), |
| 568 | ), |
| 569 | obx_int.ModelProperty( |
| 570 | id: const obx_int.IdUid(3, 3556260745512005959), |
| 571 | name: 'name', |
| 572 | type: 9, |
| 573 | flags: 0, |
| 574 | ), |
| 575 | obx_int.ModelProperty( |
| 576 | id: const obx_int.IdUid(4, 4019578934915258468), |
| 577 | name: 'sortOrder', |
| 578 | type: 6, |
| 579 | flags: 0, |
| 580 | ), |
| 581 | obx_int.ModelProperty( |
| 582 | id: const obx_int.IdUid(5, 3017762750413225828), |
| 583 | name: 'createdAt', |
| 584 | type: 10, |
| 585 | flags: 0, |
| 586 | ), |
| 587 | ], |
| 588 | relations: <obx_int.ModelRelation>[], |
| 589 | backlinks: <obx_int.ModelBacklink>[], |
| 590 | ), |
| 591 | obx_int.ModelEntity( |
| 592 | id: const obx_int.IdUid(6, 152573122645768072), |
| 593 | name: 'SavedMessageEntity', |
| 594 | lastPropertyId: const obx_int.IdUid(11, 8907657125307211651), |
| 595 | flags: 0, |
| 596 | properties: <obx_int.ModelProperty>[ |
| 597 | obx_int.ModelProperty( |
| 598 | id: const obx_int.IdUid(1, 5595034332359148209), |
| 599 | name: 'internalId', |
| 600 | type: 6, |
| 601 | flags: 1, |
| 602 | ), |
| 603 | obx_int.ModelProperty( |
| 604 | id: const obx_int.IdUid(2, 5096668802007679304), |
| 605 | name: 'id', |
| 606 | type: 9, |
| 607 | flags: 2048, |
| 608 | indexId: const obx_int.IdUid(8, 22783346841342476), |
| 609 | ), |
| 610 | obx_int.ModelProperty( |
| 611 | id: const obx_int.IdUid(3, 1050610104311264456), |
| 612 | name: 'sourceMessageId', |
| 613 | type: 9, |
| 614 | flags: 2048, |
| 615 | indexId: const obx_int.IdUid(9, 1110570128952634448), |
| 616 | ), |
| 617 | obx_int.ModelProperty( |
| 618 | id: const obx_int.IdUid(4, 7798325361628325620), |
| 619 | name: 'conversationId', |
| 620 | type: 9, |
| 621 | flags: 2048, |
| 622 | indexId: const obx_int.IdUid(10, 8583926456518887322), |
| 623 | ), |
| 624 | obx_int.ModelProperty( |
| 625 | id: const obx_int.IdUid(5, 3050316078893132430), |
| 626 | name: 'conversationTitle', |
| 627 | type: 9, |
| 628 | flags: 0, |
| 629 | ), |
| 630 | obx_int.ModelProperty( |
| 631 | id: const obx_int.IdUid(6, 7383260001962467499), |
| 632 | name: 'roleIndex', |
| 633 | type: 5, |
| 634 | flags: 0, |
| 635 | ), |
| 636 | obx_int.ModelProperty( |
| 637 | id: const obx_int.IdUid(7, 7504405387353170036), |
| 638 | name: 'content', |
| 639 | type: 9, |
| 640 | flags: 0, |
| 641 | ), |
| 642 | obx_int.ModelProperty( |
| 643 | id: const obx_int.IdUid(8, 4458386748227842718), |
| 644 | name: 'modelId', |
| 645 | type: 9, |
| 646 | flags: 0, |
| 647 | ), |
| 648 | obx_int.ModelProperty( |
| 649 | id: const obx_int.IdUid(9, 6741841406448273760), |
| 650 | name: 'folderId', |
| 651 | type: 9, |
| 652 | flags: 0, |
| 653 | ), |
| 654 | obx_int.ModelProperty( |
| 655 | id: const obx_int.IdUid(10, 431621328894537301), |
| 656 | name: 'savedAt', |
| 657 | type: 10, |
| 658 | flags: 0, |
| 659 | ), |
| 660 | obx_int.ModelProperty( |
| 661 | id: const obx_int.IdUid(11, 8907657125307211651), |
| 662 | name: 'isArchived', |
| 663 | type: 1, |
| 664 | flags: 0, |
| 665 | ), |
| 666 | ], |
| 667 | relations: <obx_int.ModelRelation>[], |
| 668 | backlinks: <obx_int.ModelBacklink>[], |
| 669 | ), |
| 670 | obx_int.ModelEntity( |
| 671 | id: const obx_int.IdUid(7, 3071607342535269584), |
| 672 | name: 'SavedMessageFolderEntity', |
| 673 | lastPropertyId: const obx_int.IdUid(5, 3331891664317498140), |
| 674 | flags: 0, |
| 675 | properties: <obx_int.ModelProperty>[ |
| 676 | obx_int.ModelProperty( |
| 677 | id: const obx_int.IdUid(1, 7591361223634591419), |
| 678 | name: 'internalId', |
| 679 | type: 6, |
| 680 | flags: 1, |
| 681 | ), |
| 682 | obx_int.ModelProperty( |
| 683 | id: const obx_int.IdUid(2, 2427537233466774281), |
| 684 | name: 'id', |
| 685 | type: 9, |
| 686 | flags: 2048, |
| 687 | indexId: const obx_int.IdUid(11, 4226689279810093888), |
| 688 | ), |
| 689 | obx_int.ModelProperty( |
| 690 | id: const obx_int.IdUid(3, 2751147963490618792), |
| 691 | name: 'name', |
| 692 | type: 9, |
| 693 | flags: 0, |
| 694 | ), |
| 695 | obx_int.ModelProperty( |
| 696 | id: const obx_int.IdUid(4, 3384073655383318255), |
| 697 | name: 'sortOrder', |
| 698 | type: 6, |
| 699 | flags: 0, |
| 700 | ), |
| 701 | obx_int.ModelProperty( |
| 702 | id: const obx_int.IdUid(5, 3331891664317498140), |
| 703 | name: 'createdAt', |
| 704 | type: 10, |
| 705 | flags: 0, |
| 706 | ), |
| 707 | ], |
| 708 | relations: <obx_int.ModelRelation>[], |
| 709 | backlinks: <obx_int.ModelBacklink>[], |
| 710 | ), |
| 711 | ]; |
| 712 | |
| 713 | /// Shortcut for [obx.Store.new] that passes [getObjectBoxModel] and for Flutter |
| 714 | /// apps by default a [directory] using `defaultStoreDirectory()` from the |
| 715 | /// ObjectBox Flutter library. |
| 716 | /// |
| 717 | /// Note: for desktop apps it is recommended to specify a unique [directory]. |
| 718 | /// |
| 719 | /// See [obx.Store.new] for an explanation of all parameters. |
| 720 | /// |
| 721 | /// For Flutter apps, also calls `loadObjectBoxLibraryAndroidCompat()` from |
| 722 | /// the ObjectBox Flutter library to fix loading the native ObjectBox library |
| 723 | /// on Android 6 and older. |
| 724 | Future<obx.Store> openStore({ |
| 725 | String? directory, |
| 726 | int? maxDBSizeInKB, |
| 727 | int? maxDataSizeInKB, |
| 728 | int? fileMode, |
| 729 | int? maxReaders, |
| 730 | bool queriesCaseSensitiveDefault = true, |
| 731 | String? macosApplicationGroup, |
| 732 | }) async { |
| 733 | await loadObjectBoxLibraryAndroidCompat(); |
| 734 | return obx.Store( |
| 735 | getObjectBoxModel(), |
| 736 | directory: directory ?? (await defaultStoreDirectory()).path, |
| 737 | maxDBSizeInKB: maxDBSizeInKB, |
| 738 | maxDataSizeInKB: maxDataSizeInKB, |
| 739 | fileMode: fileMode, |
| 740 | maxReaders: maxReaders, |
| 741 | queriesCaseSensitiveDefault: queriesCaseSensitiveDefault, |
| 742 | macosApplicationGroup: macosApplicationGroup, |
| 743 | ); |
| 744 | } |
| 745 | |
| 746 | /// Returns the ObjectBox model definition for this project for use with |
| 747 | /// [obx.Store.new]. |
| 748 | obx_int.ModelDefinition getObjectBoxModel() { |
| 749 | final model = obx_int.ModelInfo( |
| 750 | // If this version is not found, it means that this file was generated |
| 751 | // with an older version of the ObjectBox Dart generator. |
| 752 | // Please regenerate this file with the current generator version. |
| 753 | // Typically, this is done with `dart run build_runner build`. |
| 754 | generatorVersion: obx_int.GeneratorVersion.v2025_12_16, |
| 755 | entities: _entities, |
| 756 | lastEntityId: const obx_int.IdUid(7, 3071607342535269584), |
| 757 | lastIndexId: const obx_int.IdUid(11, 4226689279810093888), |
| 758 | lastRelationId: const obx_int.IdUid(0, 0), |
| 759 | lastSequenceId: const obx_int.IdUid(0, 0), |
| 760 | retiredEntityUids: const [], |
| 761 | retiredIndexUids: const [], |
| 762 | retiredPropertyUids: const [], |
| 763 | retiredRelationUids: const [], |
| 764 | modelVersion: 5, |
| 765 | modelVersionParserMinimum: 5, |
| 766 | version: 1, |
| 767 | ); |
| 768 | |
| 769 | final bindings = <Type, obx_int.EntityDefinition>{ |
| 770 | ConversationEntity: obx_int.EntityDefinition<ConversationEntity>( |
| 771 | model: _entities[0], |
| 772 | toOneRelations: (ConversationEntity object) => [], |
| 773 | toManyRelations: (ConversationEntity object) => { |
| 774 | obx_int.RelInfo<MessageEntity>.toOneBacklink( |
| 775 | 3, |
| 776 | object.internalId, |
| 777 | (MessageEntity srcObject) => srcObject.conversation, |
| 778 | ): object.messages, |
| 779 | }, |
| 780 | getId: (ConversationEntity object) => object.internalId, |
| 781 | setId: (ConversationEntity object, int id) { |
| 782 | object.internalId = id; |
| 783 | }, |
| 784 | objectToFB: (ConversationEntity object, fb.Builder fbb) { |
| 785 | final idOffset = fbb.writeString(object.id); |
| 786 | final titleOffset = fbb.writeString(object.title); |
| 787 | final personaIdOffset = object.personaId == null |
| 788 | ? null |
| 789 | : fbb.writeString(object.personaId!); |
| 790 | final serverIdOffset = object.serverId == null |
| 791 | ? null |
| 792 | : fbb.writeString(object.serverId!); |
| 793 | final modelIdOffset = object.modelId == null |
| 794 | ? null |
| 795 | : fbb.writeString(object.modelId!); |
| 796 | final lastMessagePreviewOffset = object.lastMessagePreview == null |
| 797 | ? null |
| 798 | : fbb.writeString(object.lastMessagePreview!); |
| 799 | final systemPromptOffset = object.systemPrompt == null |
| 800 | ? null |
| 801 | : fbb.writeString(object.systemPrompt!); |
| 802 | final smartRepliesJsonOffset = object.smartRepliesJson == null |
| 803 | ? null |
| 804 | : fbb.writeString(object.smartRepliesJson!); |
| 805 | final smartRepliesLastMessageIdOffset = |
| 806 | object.smartRepliesLastMessageId == null |
| 807 | ? null |
| 808 | : fbb.writeString(object.smartRepliesLastMessageId!); |
| 809 | final folderIdOffset = object.folderId == null |
| 810 | ? null |
| 811 | : fbb.writeString(object.folderId!); |
| 812 | fbb.startTable(25); |
| 813 | fbb.addInt64(0, object.internalId); |
| 814 | fbb.addOffset(1, idOffset); |
| 815 | fbb.addOffset(2, titleOffset); |
| 816 | fbb.addInt64(3, object.createdAt.millisecondsSinceEpoch); |
| 817 | fbb.addInt64(4, object.updatedAt.millisecondsSinceEpoch); |
| 818 | fbb.addBool(5, object.isPinned); |
| 819 | fbb.addOffset(6, personaIdOffset); |
| 820 | fbb.addOffset(7, serverIdOffset); |
| 821 | fbb.addOffset(8, modelIdOffset); |
| 822 | fbb.addInt64(9, object.messageCount); |
| 823 | fbb.addOffset(10, lastMessagePreviewOffset); |
| 824 | fbb.addOffset(11, systemPromptOffset); |
| 825 | fbb.addFloat64(12, object.temperature); |
| 826 | fbb.addFloat64(13, object.topP); |
| 827 | fbb.addInt64(14, object.maxTokens); |
| 828 | fbb.addInt64(15, object.contextLength); |
| 829 | fbb.addBool(16, object.mcpEnabled); |
| 830 | fbb.addOffset(17, smartRepliesJsonOffset); |
| 831 | fbb.addOffset(18, smartRepliesLastMessageIdOffset); |
| 832 | fbb.addOffset(19, folderIdOffset); |
| 833 | fbb.addBool(20, object.isTemporary); |
| 834 | fbb.addBool(21, object.isArchived); |
| 835 | fbb.addInt64(22, object.characterCount); |
| 836 | fbb.addInt64(23, object.totalTokenCount); |
| 837 | fbb.finish(fbb.endTable()); |
| 838 | return object.internalId; |
| 839 | }, |
| 840 | objectFromFB: (obx.Store store, ByteData fbData) { |
| 841 | final buffer = fb.BufferContext(fbData); |
| 842 | final rootOffset = buffer.derefObject(0); |
| 843 | final internalIdParam = const fb.Int64Reader().vTableGet( |
| 844 | buffer, |
| 845 | rootOffset, |
| 846 | 4, |
| 847 | 0, |
| 848 | ); |
| 849 | final idParam = const fb.StringReader( |
| 850 | asciiOptimization: true, |
| 851 | ).vTableGet(buffer, rootOffset, 6, ''); |
| 852 | final titleParam = const fb.StringReader( |
| 853 | asciiOptimization: true, |
| 854 | ).vTableGet(buffer, rootOffset, 8, ''); |
| 855 | final createdAtParam = DateTime.fromMillisecondsSinceEpoch( |
| 856 | const fb.Int64Reader().vTableGet(buffer, rootOffset, 10, 0), |
| 857 | ); |
| 858 | final updatedAtParam = DateTime.fromMillisecondsSinceEpoch( |
| 859 | const fb.Int64Reader().vTableGet(buffer, rootOffset, 12, 0), |
| 860 | ); |
| 861 | final isPinnedParam = const fb.BoolReader().vTableGet( |
| 862 | buffer, |
| 863 | rootOffset, |
| 864 | 14, |
| 865 | false, |
| 866 | ); |
| 867 | final personaIdParam = const fb.StringReader( |
| 868 | asciiOptimization: true, |
| 869 | ).vTableGetNullable(buffer, rootOffset, 16); |
| 870 | final serverIdParam = const fb.StringReader( |
| 871 | asciiOptimization: true, |
| 872 | ).vTableGetNullable(buffer, rootOffset, 18); |
| 873 | final modelIdParam = const fb.StringReader( |
| 874 | asciiOptimization: true, |
| 875 | ).vTableGetNullable(buffer, rootOffset, 20); |
| 876 | final messageCountParam = const fb.Int64Reader().vTableGet( |
| 877 | buffer, |
| 878 | rootOffset, |
| 879 | 22, |
| 880 | 0, |
| 881 | ); |
| 882 | final lastMessagePreviewParam = const fb.StringReader( |
| 883 | asciiOptimization: true, |
| 884 | ).vTableGetNullable(buffer, rootOffset, 24); |
| 885 | final systemPromptParam = const fb.StringReader( |
| 886 | asciiOptimization: true, |
| 887 | ).vTableGetNullable(buffer, rootOffset, 26); |
| 888 | final temperatureParam = const fb.Float64Reader().vTableGetNullable( |
| 889 | buffer, |
| 890 | rootOffset, |
| 891 | 28, |
| 892 | ); |
| 893 | final topPParam = const fb.Float64Reader().vTableGetNullable( |
| 894 | buffer, |
| 895 | rootOffset, |
| 896 | 30, |
| 897 | ); |
| 898 | final maxTokensParam = const fb.Int64Reader().vTableGetNullable( |
| 899 | buffer, |
| 900 | rootOffset, |
| 901 | 32, |
| 902 | ); |
| 903 | final contextLengthParam = const fb.Int64Reader().vTableGetNullable( |
| 904 | buffer, |
| 905 | rootOffset, |
| 906 | 34, |
| 907 | ); |
| 908 | final mcpEnabledParam = const fb.BoolReader().vTableGetNullable( |
| 909 | buffer, |
| 910 | rootOffset, |
| 911 | 36, |
| 912 | ); |
| 913 | final smartRepliesJsonParam = const fb.StringReader( |
| 914 | asciiOptimization: true, |
| 915 | ).vTableGetNullable(buffer, rootOffset, 38); |
| 916 | final smartRepliesLastMessageIdParam = const fb.StringReader( |
| 917 | asciiOptimization: true, |
| 918 | ).vTableGetNullable(buffer, rootOffset, 40); |
| 919 | final folderIdParam = const fb.StringReader( |
| 920 | asciiOptimization: true, |
| 921 | ).vTableGetNullable(buffer, rootOffset, 42); |
| 922 | final isTemporaryParam = const fb.BoolReader().vTableGet( |
| 923 | buffer, |
| 924 | rootOffset, |
| 925 | 44, |
| 926 | false, |
| 927 | ); |
| 928 | final isArchivedParam = const fb.BoolReader().vTableGet( |
| 929 | buffer, |
| 930 | rootOffset, |
| 931 | 46, |
| 932 | false, |
| 933 | ); |
| 934 | final characterCountParam = const fb.Int64Reader().vTableGet( |
| 935 | buffer, |
| 936 | rootOffset, |
| 937 | 48, |
| 938 | 0, |
| 939 | ); |
| 940 | final totalTokenCountParam = const fb.Int64Reader().vTableGetNullable( |
| 941 | buffer, |
| 942 | rootOffset, |
| 943 | 50, |
| 944 | ); |
| 945 | final object = ConversationEntity( |
| 946 | internalId: internalIdParam, |
| 947 | id: idParam, |
| 948 | title: titleParam, |
| 949 | createdAt: createdAtParam, |
| 950 | updatedAt: updatedAtParam, |
| 951 | isPinned: isPinnedParam, |
| 952 | personaId: personaIdParam, |
| 953 | serverId: serverIdParam, |
| 954 | modelId: modelIdParam, |
| 955 | messageCount: messageCountParam, |
| 956 | lastMessagePreview: lastMessagePreviewParam, |
| 957 | systemPrompt: systemPromptParam, |
| 958 | temperature: temperatureParam, |
| 959 | topP: topPParam, |
| 960 | maxTokens: maxTokensParam, |
| 961 | contextLength: contextLengthParam, |
| 962 | mcpEnabled: mcpEnabledParam, |
| 963 | smartRepliesJson: smartRepliesJsonParam, |
| 964 | smartRepliesLastMessageId: smartRepliesLastMessageIdParam, |
| 965 | folderId: folderIdParam, |
| 966 | isTemporary: isTemporaryParam, |
| 967 | isArchived: isArchivedParam, |
| 968 | characterCount: characterCountParam, |
| 969 | totalTokenCount: totalTokenCountParam, |
| 970 | ); |
| 971 | obx_int.InternalToManyAccess.setRelInfo<ConversationEntity>( |
| 972 | object.messages, |
| 973 | store, |
| 974 | obx_int.RelInfo<MessageEntity>.toOneBacklink( |
| 975 | 3, |
| 976 | object.internalId, |
| 977 | (MessageEntity srcObject) => srcObject.conversation, |
| 978 | ), |
| 979 | ); |
| 980 | return object; |
| 981 | }, |
| 982 | ), |
| 983 | MessageEntity: obx_int.EntityDefinition<MessageEntity>( |
| 984 | model: _entities[1], |
| 985 | toOneRelations: (MessageEntity object) => [object.conversation], |
| 986 | toManyRelations: (MessageEntity object) => {}, |
| 987 | getId: (MessageEntity object) => object.internalId, |
| 988 | setId: (MessageEntity object, int id) { |
| 989 | object.internalId = id; |
| 990 | }, |
| 991 | objectToFB: (MessageEntity object, fb.Builder fbb) { |
| 992 | final idOffset = fbb.writeString(object.id); |
| 993 | final conversationUidOffset = fbb.writeString(object.conversationUid); |
| 994 | final contentOffset = fbb.writeString(object.content); |
| 995 | final modelIdOffset = object.modelId == null |
| 996 | ? null |
| 997 | : fbb.writeString(object.modelId!); |
| 998 | final errorMessageOffset = object.errorMessage == null |
| 999 | ? null |
| 1000 | : fbb.writeString(object.errorMessage!); |
| 1001 | final attachmentPathsJsonOffset = object.attachmentPathsJson == null |
| 1002 | ? null |
| 1003 | : fbb.writeString(object.attachmentPathsJson!); |
| 1004 | final reasoningContentOffset = object.reasoningContent == null |
| 1005 | ? null |
| 1006 | : fbb.writeString(object.reasoningContent!); |
| 1007 | final toolCallsJsonOffset = object.toolCallsJson == null |
| 1008 | ? null |
| 1009 | : fbb.writeString(object.toolCallsJson!); |
| 1010 | final toolCallIdOffset = object.toolCallId == null |
| 1011 | ? null |
| 1012 | : fbb.writeString(object.toolCallId!); |
| 1013 | final toolSessionIdOffset = object.toolSessionId == null |
| 1014 | ? null |
| 1015 | : fbb.writeString(object.toolSessionId!); |
| 1016 | final toolEventsJsonOffset = object.toolEventsJson == null |
| 1017 | ? null |
| 1018 | : fbb.writeString(object.toolEventsJson!); |
| 1019 | final variantGroupIdOffset = object.variantGroupId == null |
| 1020 | ? null |
| 1021 | : fbb.writeString(object.variantGroupId!); |
| 1022 | final parentMessageIdOffset = object.parentMessageId == null |
| 1023 | ? null |
| 1024 | : fbb.writeString(object.parentMessageId!); |
| 1025 | final stopReasonOffset = object.stopReason == null |
| 1026 | ? null |
| 1027 | : fbb.writeString(object.stopReason!); |
| 1028 | fbb.startTable(30); |
| 1029 | fbb.addInt64(0, object.internalId); |
| 1030 | fbb.addOffset(1, idOffset); |
| 1031 | fbb.addInt64(2, object.conversation.targetId); |
| 1032 | fbb.addOffset(3, conversationUidOffset); |
| 1033 | fbb.addInt32(4, object.roleIndex); |
| 1034 | fbb.addOffset(5, contentOffset); |
| 1035 | fbb.addInt64(6, object.createdAt.millisecondsSinceEpoch); |
| 1036 | fbb.addInt32(7, object.statusIndex); |
| 1037 | fbb.addOffset(8, modelIdOffset); |
| 1038 | fbb.addInt64(9, object.tokenCount); |
| 1039 | fbb.addOffset(10, errorMessageOffset); |
| 1040 | fbb.addOffset(11, attachmentPathsJsonOffset); |
| 1041 | fbb.addInt64(12, object.generationTimeMs); |
| 1042 | fbb.addOffset(13, reasoningContentOffset); |
| 1043 | fbb.addOffset(14, toolCallsJsonOffset); |
| 1044 | fbb.addOffset(15, toolCallIdOffset); |
| 1045 | fbb.addBool(16, object.isProcessing); |
| 1046 | fbb.addOffset(17, toolSessionIdOffset); |
| 1047 | fbb.addOffset(18, toolEventsJsonOffset); |
| 1048 | fbb.addOffset(19, variantGroupIdOffset); |
| 1049 | fbb.addInt64(20, object.variantIndex); |
| 1050 | fbb.addInt64(21, object.threadOrder); |
| 1051 | fbb.addBool(22, object.isActiveVariant); |
| 1052 | fbb.addOffset(23, parentMessageIdOffset); |
| 1053 | fbb.addInt64(24, object.inputTokenCount); |
| 1054 | fbb.addFloat64(25, object.tokensPerSecond); |
| 1055 | fbb.addInt64(26, object.ttftMs); |
| 1056 | fbb.addOffset(27, stopReasonOffset); |
| 1057 | fbb.addInt64(28, object.contentTokenCount); |
| 1058 | fbb.finish(fbb.endTable()); |
| 1059 | return object.internalId; |
| 1060 | }, |
| 1061 | objectFromFB: (obx.Store store, ByteData fbData) { |
| 1062 | final buffer = fb.BufferContext(fbData); |
| 1063 | final rootOffset = buffer.derefObject(0); |
| 1064 | final internalIdParam = const fb.Int64Reader().vTableGet( |
| 1065 | buffer, |
| 1066 | rootOffset, |
| 1067 | 4, |
| 1068 | 0, |
| 1069 | ); |
| 1070 | final idParam = const fb.StringReader( |
| 1071 | asciiOptimization: true, |
| 1072 | ).vTableGet(buffer, rootOffset, 6, ''); |
| 1073 | final conversationUidParam = const fb.StringReader( |
| 1074 | asciiOptimization: true, |
| 1075 | ).vTableGet(buffer, rootOffset, 10, ''); |
| 1076 | final roleIndexParam = const fb.Int32Reader().vTableGet( |
| 1077 | buffer, |
| 1078 | rootOffset, |
| 1079 | 12, |
| 1080 | 0, |
| 1081 | ); |
| 1082 | final contentParam = const fb.StringReader( |
| 1083 | asciiOptimization: true, |
| 1084 | ).vTableGet(buffer, rootOffset, 14, ''); |
| 1085 | final createdAtParam = DateTime.fromMillisecondsSinceEpoch( |
| 1086 | const fb.Int64Reader().vTableGet(buffer, rootOffset, 16, 0), |
| 1087 | ); |
| 1088 | final statusIndexParam = const fb.Int32Reader().vTableGet( |
| 1089 | buffer, |
| 1090 | rootOffset, |
| 1091 | 18, |
| 1092 | 0, |
| 1093 | ); |
| 1094 | final modelIdParam = const fb.StringReader( |
| 1095 | asciiOptimization: true, |
| 1096 | ).vTableGetNullable(buffer, rootOffset, 20); |
| 1097 | final tokenCountParam = const fb.Int64Reader().vTableGetNullable( |
| 1098 | buffer, |
| 1099 | rootOffset, |
| 1100 | 22, |
| 1101 | ); |
| 1102 | final inputTokenCountParam = const fb.Int64Reader().vTableGetNullable( |
| 1103 | buffer, |
| 1104 | rootOffset, |
| 1105 | 52, |
| 1106 | ); |
| 1107 | final tokensPerSecondParam = const fb.Float64Reader().vTableGetNullable( |
| 1108 | buffer, |
| 1109 | rootOffset, |
| 1110 | 54, |
| 1111 | ); |
| 1112 | final ttftMsParam = const fb.Int64Reader().vTableGetNullable( |
| 1113 | buffer, |
| 1114 | rootOffset, |
| 1115 | 56, |
| 1116 | ); |
| 1117 | final stopReasonParam = const fb.StringReader( |
| 1118 | asciiOptimization: true, |
| 1119 | ).vTableGetNullable(buffer, rootOffset, 58); |
| 1120 | final errorMessageParam = const fb.StringReader( |
| 1121 | asciiOptimization: true, |
| 1122 | ).vTableGetNullable(buffer, rootOffset, 24); |
| 1123 | final attachmentPathsJsonParam = const fb.StringReader( |
| 1124 | asciiOptimization: true, |
| 1125 | ).vTableGetNullable(buffer, rootOffset, 26); |
| 1126 | final generationTimeMsParam = const fb.Int64Reader().vTableGetNullable( |
| 1127 | buffer, |
| 1128 | rootOffset, |
| 1129 | 28, |
| 1130 | ); |
| 1131 | final reasoningContentParam = const fb.StringReader( |
| 1132 | asciiOptimization: true, |
| 1133 | ).vTableGetNullable(buffer, rootOffset, 30); |
| 1134 | final toolCallsJsonParam = const fb.StringReader( |
| 1135 | asciiOptimization: true, |
| 1136 | ).vTableGetNullable(buffer, rootOffset, 32); |
| 1137 | final toolCallIdParam = const fb.StringReader( |
| 1138 | asciiOptimization: true, |
| 1139 | ).vTableGetNullable(buffer, rootOffset, 34); |
| 1140 | final isProcessingParam = const fb.BoolReader().vTableGet( |
| 1141 | buffer, |
| 1142 | rootOffset, |
| 1143 | 36, |
| 1144 | false, |
| 1145 | ); |
| 1146 | final toolSessionIdParam = const fb.StringReader( |
| 1147 | asciiOptimization: true, |
| 1148 | ).vTableGetNullable(buffer, rootOffset, 38); |
| 1149 | final toolEventsJsonParam = const fb.StringReader( |
| 1150 | asciiOptimization: true, |
| 1151 | ).vTableGetNullable(buffer, rootOffset, 40); |
| 1152 | final variantGroupIdParam = const fb.StringReader( |
| 1153 | asciiOptimization: true, |
| 1154 | ).vTableGetNullable(buffer, rootOffset, 42); |
| 1155 | final variantIndexParam = const fb.Int64Reader().vTableGet( |
| 1156 | buffer, |
| 1157 | rootOffset, |
| 1158 | 44, |
| 1159 | 0, |
| 1160 | ); |
| 1161 | final threadOrderParam = const fb.Int64Reader().vTableGet( |
| 1162 | buffer, |
| 1163 | rootOffset, |
| 1164 | 46, |
| 1165 | 0, |
| 1166 | ); |
| 1167 | final isActiveVariantParam = const fb.BoolReader().vTableGet( |
| 1168 | buffer, |
| 1169 | rootOffset, |
| 1170 | 48, |
| 1171 | false, |
| 1172 | ); |
| 1173 | final parentMessageIdParam = const fb.StringReader( |
| 1174 | asciiOptimization: true, |
| 1175 | ).vTableGetNullable(buffer, rootOffset, 50); |
| 1176 | final contentTokenCountParam = const fb.Int64Reader().vTableGetNullable( |
| 1177 | buffer, |
| 1178 | rootOffset, |
| 1179 | 60, |
| 1180 | ); |
| 1181 | final object = MessageEntity( |
| 1182 | internalId: internalIdParam, |
| 1183 | id: idParam, |
| 1184 | conversationUid: conversationUidParam, |
| 1185 | roleIndex: roleIndexParam, |
| 1186 | content: contentParam, |
| 1187 | createdAt: createdAtParam, |
| 1188 | statusIndex: statusIndexParam, |
| 1189 | modelId: modelIdParam, |
| 1190 | tokenCount: tokenCountParam, |
| 1191 | inputTokenCount: inputTokenCountParam, |
| 1192 | tokensPerSecond: tokensPerSecondParam, |
| 1193 | ttftMs: ttftMsParam, |
| 1194 | stopReason: stopReasonParam, |
| 1195 | errorMessage: errorMessageParam, |
| 1196 | attachmentPathsJson: attachmentPathsJsonParam, |
| 1197 | generationTimeMs: generationTimeMsParam, |
| 1198 | reasoningContent: reasoningContentParam, |
| 1199 | toolCallsJson: toolCallsJsonParam, |
| 1200 | toolCallId: toolCallIdParam, |
| 1201 | isProcessing: isProcessingParam, |
| 1202 | toolSessionId: toolSessionIdParam, |
| 1203 | toolEventsJson: toolEventsJsonParam, |
| 1204 | variantGroupId: variantGroupIdParam, |
| 1205 | variantIndex: variantIndexParam, |
| 1206 | threadOrder: threadOrderParam, |
| 1207 | isActiveVariant: isActiveVariantParam, |
| 1208 | parentMessageId: parentMessageIdParam, |
| 1209 | contentTokenCount: contentTokenCountParam, |
| 1210 | ); |
| 1211 | object.conversation.targetId = const fb.Int64Reader().vTableGet( |
| 1212 | buffer, |
| 1213 | rootOffset, |
| 1214 | 8, |
| 1215 | 0, |
| 1216 | ); |
| 1217 | object.conversation.attach(store); |
| 1218 | return object; |
| 1219 | }, |
| 1220 | ), |
| 1221 | PersonaEntity: obx_int.EntityDefinition<PersonaEntity>( |
| 1222 | model: _entities[2], |
| 1223 | toOneRelations: (PersonaEntity object) => [], |
| 1224 | toManyRelations: (PersonaEntity object) => {}, |
| 1225 | getId: (PersonaEntity object) => object.internalId, |
| 1226 | setId: (PersonaEntity object, int id) { |
| 1227 | object.internalId = id; |
| 1228 | }, |
| 1229 | objectToFB: (PersonaEntity object, fb.Builder fbb) { |
| 1230 | final idOffset = fbb.writeString(object.id); |
| 1231 | final nameOffset = fbb.writeString(object.name); |
| 1232 | final emojiOffset = fbb.writeString(object.emoji); |
| 1233 | final systemPromptOffset = fbb.writeString(object.systemPrompt); |
| 1234 | final descriptionOffset = object.description == null |
| 1235 | ? null |
| 1236 | : fbb.writeString(object.description!); |
| 1237 | final categoryOffset = object.category == null |
| 1238 | ? null |
| 1239 | : fbb.writeString(object.category!); |
| 1240 | final preferredParamsJsonOffset = object.preferredParamsJson == null |
| 1241 | ? null |
| 1242 | : fbb.writeString(object.preferredParamsJson!); |
| 1243 | fbb.startTable(12); |
| 1244 | fbb.addInt64(0, object.internalId); |
| 1245 | fbb.addOffset(1, idOffset); |
| 1246 | fbb.addOffset(2, nameOffset); |
| 1247 | fbb.addOffset(3, emojiOffset); |
| 1248 | fbb.addOffset(4, systemPromptOffset); |
| 1249 | fbb.addOffset(5, descriptionOffset); |
| 1250 | fbb.addBool(6, object.isBuiltIn); |
| 1251 | fbb.addInt64(7, object.createdAt.millisecondsSinceEpoch); |
| 1252 | fbb.addInt64(8, object.updatedAt.millisecondsSinceEpoch); |
| 1253 | fbb.addOffset(9, categoryOffset); |
| 1254 | fbb.addOffset(10, preferredParamsJsonOffset); |
| 1255 | fbb.finish(fbb.endTable()); |
| 1256 | return object.internalId; |
| 1257 | }, |
| 1258 | objectFromFB: (obx.Store store, ByteData fbData) { |
| 1259 | final buffer = fb.BufferContext(fbData); |
| 1260 | final rootOffset = buffer.derefObject(0); |
| 1261 | final internalIdParam = const fb.Int64Reader().vTableGet( |
| 1262 | buffer, |
| 1263 | rootOffset, |
| 1264 | 4, |
| 1265 | 0, |
| 1266 | ); |
| 1267 | final idParam = const fb.StringReader( |
| 1268 | asciiOptimization: true, |
| 1269 | ).vTableGet(buffer, rootOffset, 6, ''); |
| 1270 | final nameParam = const fb.StringReader( |
| 1271 | asciiOptimization: true, |
| 1272 | ).vTableGet(buffer, rootOffset, 8, ''); |
| 1273 | final emojiParam = const fb.StringReader( |
| 1274 | asciiOptimization: true, |
| 1275 | ).vTableGet(buffer, rootOffset, 10, ''); |
| 1276 | final systemPromptParam = const fb.StringReader( |
| 1277 | asciiOptimization: true, |
| 1278 | ).vTableGet(buffer, rootOffset, 12, ''); |
| 1279 | final descriptionParam = const fb.StringReader( |
| 1280 | asciiOptimization: true, |
| 1281 | ).vTableGetNullable(buffer, rootOffset, 14); |
| 1282 | final isBuiltInParam = const fb.BoolReader().vTableGet( |
| 1283 | buffer, |
| 1284 | rootOffset, |
| 1285 | 16, |
| 1286 | false, |
| 1287 | ); |
| 1288 | final createdAtParam = DateTime.fromMillisecondsSinceEpoch( |
| 1289 | const fb.Int64Reader().vTableGet(buffer, rootOffset, 18, 0), |
| 1290 | ); |
| 1291 | final updatedAtParam = DateTime.fromMillisecondsSinceEpoch( |
| 1292 | const fb.Int64Reader().vTableGet(buffer, rootOffset, 20, 0), |
| 1293 | ); |
| 1294 | final categoryParam = const fb.StringReader( |
| 1295 | asciiOptimization: true, |
| 1296 | ).vTableGetNullable(buffer, rootOffset, 22); |
| 1297 | final preferredParamsJsonParam = const fb.StringReader( |
| 1298 | asciiOptimization: true, |
| 1299 | ).vTableGetNullable(buffer, rootOffset, 24); |
| 1300 | final object = PersonaEntity( |
| 1301 | internalId: internalIdParam, |
| 1302 | id: idParam, |
| 1303 | name: nameParam, |
| 1304 | emoji: emojiParam, |
| 1305 | systemPrompt: systemPromptParam, |
| 1306 | description: descriptionParam, |
| 1307 | isBuiltIn: isBuiltInParam, |
| 1308 | createdAt: createdAtParam, |
| 1309 | updatedAt: updatedAtParam, |
| 1310 | category: categoryParam, |
| 1311 | preferredParamsJson: preferredParamsJsonParam, |
| 1312 | ); |
| 1313 | |
| 1314 | return object; |
| 1315 | }, |
| 1316 | ), |
| 1317 | ServerEntity: obx_int.EntityDefinition<ServerEntity>( |
| 1318 | model: _entities[3], |
| 1319 | toOneRelations: (ServerEntity object) => [], |
| 1320 | toManyRelations: (ServerEntity object) => {}, |
| 1321 | getId: (ServerEntity object) => object.internalId, |
| 1322 | setId: (ServerEntity object, int id) { |
| 1323 | object.internalId = id; |
| 1324 | }, |
| 1325 | objectToFB: (ServerEntity object, fb.Builder fbb) { |
| 1326 | final idOffset = fbb.writeString(object.id); |
| 1327 | final nameOffset = fbb.writeString(object.name); |
| 1328 | final hostOffset = fbb.writeString(object.host); |
| 1329 | final apiKeyOffset = object.apiKey == null |
| 1330 | ? null |
| 1331 | : fbb.writeString(object.apiKey!); |
| 1332 | final iconNameOffset = object.iconName == null |
| 1333 | ? null |
| 1334 | : fbb.writeString(object.iconName!); |
| 1335 | final pathPrefixOffset = object.pathPrefix == null |
| 1336 | ? null |
| 1337 | : fbb.writeString(object.pathPrefix!); |
| 1338 | fbb.startTable(16); |
| 1339 | fbb.addInt64(0, object.internalId); |
| 1340 | fbb.addOffset(1, idOffset); |
| 1341 | fbb.addOffset(2, nameOffset); |
| 1342 | fbb.addInt32(3, object.typeIndex); |
| 1343 | fbb.addOffset(4, hostOffset); |
| 1344 | fbb.addInt64(5, object.port); |
| 1345 | fbb.addOffset(6, apiKeyOffset); |
| 1346 | fbb.addBool(7, object.isDefault); |
| 1347 | fbb.addInt64(8, object.createdAt.millisecondsSinceEpoch); |
| 1348 | fbb.addInt64(9, object.lastConnectedAt.millisecondsSinceEpoch); |
| 1349 | fbb.addInt32(10, object.statusIndex); |
| 1350 | fbb.addOffset(11, iconNameOffset); |
| 1351 | fbb.addOffset(12, pathPrefixOffset); |
| 1352 | fbb.addInt64(13, object.availableRamGb); |
| 1353 | fbb.addInt64(14, object.availableVramGb); |
| 1354 | fbb.finish(fbb.endTable()); |
| 1355 | return object.internalId; |
| 1356 | }, |
| 1357 | objectFromFB: (obx.Store store, ByteData fbData) { |
| 1358 | final buffer = fb.BufferContext(fbData); |
| 1359 | final rootOffset = buffer.derefObject(0); |
| 1360 | final internalIdParam = const fb.Int64Reader().vTableGet( |
| 1361 | buffer, |
| 1362 | rootOffset, |
| 1363 | 4, |
| 1364 | 0, |
| 1365 | ); |
| 1366 | final idParam = const fb.StringReader( |
| 1367 | asciiOptimization: true, |
| 1368 | ).vTableGet(buffer, rootOffset, 6, ''); |
| 1369 | final nameParam = const fb.StringReader( |
| 1370 | asciiOptimization: true, |
| 1371 | ).vTableGet(buffer, rootOffset, 8, ''); |
| 1372 | final typeIndexParam = const fb.Int32Reader().vTableGet( |
| 1373 | buffer, |
| 1374 | rootOffset, |
| 1375 | 10, |
| 1376 | 0, |
| 1377 | ); |
| 1378 | final hostParam = const fb.StringReader( |
| 1379 | asciiOptimization: true, |
| 1380 | ).vTableGet(buffer, rootOffset, 12, ''); |
| 1381 | final portParam = const fb.Int64Reader().vTableGet( |
| 1382 | buffer, |
| 1383 | rootOffset, |
| 1384 | 14, |
| 1385 | 0, |
| 1386 | ); |
| 1387 | final apiKeyParam = const fb.StringReader( |
| 1388 | asciiOptimization: true, |
| 1389 | ).vTableGetNullable(buffer, rootOffset, 16); |
| 1390 | final isDefaultParam = const fb.BoolReader().vTableGet( |
| 1391 | buffer, |
| 1392 | rootOffset, |
| 1393 | 18, |
| 1394 | false, |
| 1395 | ); |
| 1396 | final createdAtParam = DateTime.fromMillisecondsSinceEpoch( |
| 1397 | const fb.Int64Reader().vTableGet(buffer, rootOffset, 20, 0), |
| 1398 | ); |
| 1399 | final lastConnectedAtParam = DateTime.fromMillisecondsSinceEpoch( |
| 1400 | const fb.Int64Reader().vTableGet(buffer, rootOffset, 22, 0), |
| 1401 | ); |
| 1402 | final statusIndexParam = const fb.Int32Reader().vTableGet( |
| 1403 | buffer, |
| 1404 | rootOffset, |
| 1405 | 24, |
| 1406 | 0, |
| 1407 | ); |
| 1408 | final iconNameParam = const fb.StringReader( |
| 1409 | asciiOptimization: true, |
| 1410 | ).vTableGetNullable(buffer, rootOffset, 26); |
| 1411 | final pathPrefixParam = const fb.StringReader( |
| 1412 | asciiOptimization: true, |
| 1413 | ).vTableGetNullable(buffer, rootOffset, 28); |
| 1414 | final availableRamGbParam = const fb.Int64Reader().vTableGetNullable( |
| 1415 | buffer, |
| 1416 | rootOffset, |
| 1417 | 30, |
| 1418 | ); |
| 1419 | final availableVramGbParam = const fb.Int64Reader().vTableGetNullable( |
| 1420 | buffer, |
| 1421 | rootOffset, |
| 1422 | 32, |
| 1423 | ); |
| 1424 | final object = ServerEntity( |
| 1425 | internalId: internalIdParam, |
| 1426 | id: idParam, |
| 1427 | name: nameParam, |
| 1428 | typeIndex: typeIndexParam, |
| 1429 | host: hostParam, |
| 1430 | port: portParam, |
| 1431 | apiKey: apiKeyParam, |
| 1432 | isDefault: isDefaultParam, |
| 1433 | createdAt: createdAtParam, |
| 1434 | lastConnectedAt: lastConnectedAtParam, |
| 1435 | statusIndex: statusIndexParam, |
| 1436 | iconName: iconNameParam, |
| 1437 | pathPrefix: pathPrefixParam, |
| 1438 | availableRamGb: availableRamGbParam, |
| 1439 | availableVramGb: availableVramGbParam, |
| 1440 | ); |
| 1441 | |
| 1442 | return object; |
| 1443 | }, |
| 1444 | ), |
| 1445 | ConversationFolderEntity: |
| 1446 | obx_int.EntityDefinition<ConversationFolderEntity>( |
| 1447 | model: _entities[4], |
| 1448 | toOneRelations: (ConversationFolderEntity object) => [], |
| 1449 | toManyRelations: (ConversationFolderEntity object) => {}, |
| 1450 | getId: (ConversationFolderEntity object) => object.internalId, |
| 1451 | setId: (ConversationFolderEntity object, int id) { |
| 1452 | object.internalId = id; |
| 1453 | }, |
| 1454 | objectToFB: (ConversationFolderEntity object, fb.Builder fbb) { |
| 1455 | final idOffset = fbb.writeString(object.id); |
| 1456 | final nameOffset = fbb.writeString(object.name); |
| 1457 | fbb.startTable(6); |
| 1458 | fbb.addInt64(0, object.internalId); |
| 1459 | fbb.addOffset(1, idOffset); |
| 1460 | fbb.addOffset(2, nameOffset); |
| 1461 | fbb.addInt64(3, object.sortOrder); |
| 1462 | fbb.addInt64(4, object.createdAt.millisecondsSinceEpoch); |
| 1463 | fbb.finish(fbb.endTable()); |
| 1464 | return object.internalId; |
| 1465 | }, |
| 1466 | objectFromFB: (obx.Store store, ByteData fbData) { |
| 1467 | final buffer = fb.BufferContext(fbData); |
| 1468 | final rootOffset = buffer.derefObject(0); |
| 1469 | final internalIdParam = const fb.Int64Reader().vTableGet( |
| 1470 | buffer, |
| 1471 | rootOffset, |
| 1472 | 4, |
| 1473 | 0, |
| 1474 | ); |
| 1475 | final idParam = const fb.StringReader( |
| 1476 | asciiOptimization: true, |
| 1477 | ).vTableGet(buffer, rootOffset, 6, ''); |
| 1478 | final nameParam = const fb.StringReader( |
| 1479 | asciiOptimization: true, |
| 1480 | ).vTableGet(buffer, rootOffset, 8, ''); |
| 1481 | final sortOrderParam = const fb.Int64Reader().vTableGet( |
| 1482 | buffer, |
| 1483 | rootOffset, |
| 1484 | 10, |
| 1485 | 0, |
| 1486 | ); |
| 1487 | final createdAtParam = DateTime.fromMillisecondsSinceEpoch( |
| 1488 | const fb.Int64Reader().vTableGet(buffer, rootOffset, 12, 0), |
| 1489 | ); |
| 1490 | final object = ConversationFolderEntity( |
| 1491 | internalId: internalIdParam, |
| 1492 | id: idParam, |
| 1493 | name: nameParam, |
| 1494 | sortOrder: sortOrderParam, |
| 1495 | createdAt: createdAtParam, |
| 1496 | ); |
| 1497 | |
| 1498 | return object; |
| 1499 | }, |
| 1500 | ), |
| 1501 | SavedMessageEntity: obx_int.EntityDefinition<SavedMessageEntity>( |
| 1502 | model: _entities[5], |
| 1503 | toOneRelations: (SavedMessageEntity object) => [], |
| 1504 | toManyRelations: (SavedMessageEntity object) => {}, |
| 1505 | getId: (SavedMessageEntity object) => object.internalId, |
| 1506 | setId: (SavedMessageEntity object, int id) { |
| 1507 | object.internalId = id; |
| 1508 | }, |
| 1509 | objectToFB: (SavedMessageEntity object, fb.Builder fbb) { |
| 1510 | final idOffset = fbb.writeString(object.id); |
| 1511 | final sourceMessageIdOffset = fbb.writeString(object.sourceMessageId); |
| 1512 | final conversationIdOffset = fbb.writeString(object.conversationId); |
| 1513 | final conversationTitleOffset = fbb.writeString( |
| 1514 | object.conversationTitle, |
| 1515 | ); |
| 1516 | final contentOffset = fbb.writeString(object.content); |
| 1517 | final modelIdOffset = object.modelId == null |
| 1518 | ? null |
| 1519 | : fbb.writeString(object.modelId!); |
| 1520 | final folderIdOffset = object.folderId == null |
| 1521 | ? null |
| 1522 | : fbb.writeString(object.folderId!); |
| 1523 | fbb.startTable(12); |
| 1524 | fbb.addInt64(0, object.internalId); |
| 1525 | fbb.addOffset(1, idOffset); |
| 1526 | fbb.addOffset(2, sourceMessageIdOffset); |
| 1527 | fbb.addOffset(3, conversationIdOffset); |
| 1528 | fbb.addOffset(4, conversationTitleOffset); |
| 1529 | fbb.addInt32(5, object.roleIndex); |
| 1530 | fbb.addOffset(6, contentOffset); |
| 1531 | fbb.addOffset(7, modelIdOffset); |
| 1532 | fbb.addOffset(8, folderIdOffset); |
| 1533 | fbb.addInt64(9, object.savedAt.millisecondsSinceEpoch); |
| 1534 | fbb.addBool(10, object.isArchived); |
| 1535 | fbb.finish(fbb.endTable()); |
| 1536 | return object.internalId; |
| 1537 | }, |
| 1538 | objectFromFB: (obx.Store store, ByteData fbData) { |
| 1539 | final buffer = fb.BufferContext(fbData); |
| 1540 | final rootOffset = buffer.derefObject(0); |
| 1541 | final internalIdParam = const fb.Int64Reader().vTableGet( |
| 1542 | buffer, |
| 1543 | rootOffset, |
| 1544 | 4, |
| 1545 | 0, |
| 1546 | ); |
| 1547 | final idParam = const fb.StringReader( |
| 1548 | asciiOptimization: true, |
| 1549 | ).vTableGet(buffer, rootOffset, 6, ''); |
| 1550 | final sourceMessageIdParam = const fb.StringReader( |
| 1551 | asciiOptimization: true, |
| 1552 | ).vTableGet(buffer, rootOffset, 8, ''); |
| 1553 | final conversationIdParam = const fb.StringReader( |
| 1554 | asciiOptimization: true, |
| 1555 | ).vTableGet(buffer, rootOffset, 10, ''); |
| 1556 | final conversationTitleParam = const fb.StringReader( |
| 1557 | asciiOptimization: true, |
| 1558 | ).vTableGet(buffer, rootOffset, 12, ''); |
| 1559 | final roleIndexParam = const fb.Int32Reader().vTableGet( |
| 1560 | buffer, |
| 1561 | rootOffset, |
| 1562 | 14, |
| 1563 | 0, |
| 1564 | ); |
| 1565 | final contentParam = const fb.StringReader( |
| 1566 | asciiOptimization: true, |
| 1567 | ).vTableGet(buffer, rootOffset, 16, ''); |
| 1568 | final modelIdParam = const fb.StringReader( |
| 1569 | asciiOptimization: true, |
| 1570 | ).vTableGetNullable(buffer, rootOffset, 18); |
| 1571 | final folderIdParam = const fb.StringReader( |
| 1572 | asciiOptimization: true, |
| 1573 | ).vTableGetNullable(buffer, rootOffset, 20); |
| 1574 | final savedAtParam = DateTime.fromMillisecondsSinceEpoch( |
| 1575 | const fb.Int64Reader().vTableGet(buffer, rootOffset, 22, 0), |
| 1576 | ); |
| 1577 | final isArchivedParam = const fb.BoolReader().vTableGet( |
| 1578 | buffer, |
| 1579 | rootOffset, |
| 1580 | 24, |
| 1581 | false, |
| 1582 | ); |
| 1583 | final object = SavedMessageEntity( |
| 1584 | internalId: internalIdParam, |
| 1585 | id: idParam, |
| 1586 | sourceMessageId: sourceMessageIdParam, |
| 1587 | conversationId: conversationIdParam, |
| 1588 | conversationTitle: conversationTitleParam, |
| 1589 | roleIndex: roleIndexParam, |
| 1590 | content: contentParam, |
| 1591 | modelId: modelIdParam, |
| 1592 | folderId: folderIdParam, |
| 1593 | savedAt: savedAtParam, |
| 1594 | isArchived: isArchivedParam, |
| 1595 | ); |
| 1596 | |
| 1597 | return object; |
| 1598 | }, |
| 1599 | ), |
| 1600 | SavedMessageFolderEntity: |
| 1601 | obx_int.EntityDefinition<SavedMessageFolderEntity>( |
| 1602 | model: _entities[6], |
| 1603 | toOneRelations: (SavedMessageFolderEntity object) => [], |
| 1604 | toManyRelations: (SavedMessageFolderEntity object) => {}, |
| 1605 | getId: (SavedMessageFolderEntity object) => object.internalId, |
| 1606 | setId: (SavedMessageFolderEntity object, int id) { |
| 1607 | object.internalId = id; |
| 1608 | }, |
| 1609 | objectToFB: (SavedMessageFolderEntity object, fb.Builder fbb) { |
| 1610 | final idOffset = fbb.writeString(object.id); |
| 1611 | final nameOffset = fbb.writeString(object.name); |
| 1612 | fbb.startTable(6); |
| 1613 | fbb.addInt64(0, object.internalId); |
| 1614 | fbb.addOffset(1, idOffset); |
| 1615 | fbb.addOffset(2, nameOffset); |
| 1616 | fbb.addInt64(3, object.sortOrder); |
| 1617 | fbb.addInt64(4, object.createdAt.millisecondsSinceEpoch); |
| 1618 | fbb.finish(fbb.endTable()); |
| 1619 | return object.internalId; |
| 1620 | }, |
| 1621 | objectFromFB: (obx.Store store, ByteData fbData) { |
| 1622 | final buffer = fb.BufferContext(fbData); |
| 1623 | final rootOffset = buffer.derefObject(0); |
| 1624 | final internalIdParam = const fb.Int64Reader().vTableGet( |
| 1625 | buffer, |
| 1626 | rootOffset, |
| 1627 | 4, |
| 1628 | 0, |
| 1629 | ); |
| 1630 | final idParam = const fb.StringReader( |
| 1631 | asciiOptimization: true, |
| 1632 | ).vTableGet(buffer, rootOffset, 6, ''); |
| 1633 | final nameParam = const fb.StringReader( |
| 1634 | asciiOptimization: true, |
| 1635 | ).vTableGet(buffer, rootOffset, 8, ''); |
| 1636 | final sortOrderParam = const fb.Int64Reader().vTableGet( |
| 1637 | buffer, |
| 1638 | rootOffset, |
| 1639 | 10, |
| 1640 | 0, |
| 1641 | ); |
| 1642 | final createdAtParam = DateTime.fromMillisecondsSinceEpoch( |
| 1643 | const fb.Int64Reader().vTableGet(buffer, rootOffset, 12, 0), |
| 1644 | ); |
| 1645 | final object = SavedMessageFolderEntity( |
| 1646 | internalId: internalIdParam, |
| 1647 | id: idParam, |
| 1648 | name: nameParam, |
| 1649 | sortOrder: sortOrderParam, |
| 1650 | createdAt: createdAtParam, |
| 1651 | ); |
| 1652 | |
| 1653 | return object; |
| 1654 | }, |
| 1655 | ), |
| 1656 | }; |
| 1657 | |
| 1658 | return obx_int.ModelDefinition(model, bindings); |
| 1659 | } |
| 1660 | |
| 1661 | /// [ConversationEntity] entity fields to define ObjectBox queries. |
| 1662 | class ConversationEntity_ { |
| 1663 | /// See [ConversationEntity.internalId]. |
| 1664 | static final internalId = obx.QueryIntegerProperty<ConversationEntity>( |
| 1665 | _entities[0].properties[0], |
| 1666 | ); |
| 1667 | |
| 1668 | /// See [ConversationEntity.id]. |
| 1669 | static final id = obx.QueryStringProperty<ConversationEntity>( |
| 1670 | _entities[0].properties[1], |
| 1671 | ); |
| 1672 | |
| 1673 | /// See [ConversationEntity.title]. |
| 1674 | static final title = obx.QueryStringProperty<ConversationEntity>( |
| 1675 | _entities[0].properties[2], |
| 1676 | ); |
| 1677 | |
| 1678 | /// See [ConversationEntity.createdAt]. |
| 1679 | static final createdAt = obx.QueryDateProperty<ConversationEntity>( |
| 1680 | _entities[0].properties[3], |
| 1681 | ); |
| 1682 | |
| 1683 | /// See [ConversationEntity.updatedAt]. |
| 1684 | static final updatedAt = obx.QueryDateProperty<ConversationEntity>( |
| 1685 | _entities[0].properties[4], |
| 1686 | ); |
| 1687 | |
| 1688 | /// See [ConversationEntity.isPinned]. |
| 1689 | static final isPinned = obx.QueryBooleanProperty<ConversationEntity>( |
| 1690 | _entities[0].properties[5], |
| 1691 | ); |
| 1692 | |
| 1693 | /// See [ConversationEntity.personaId]. |
| 1694 | static final personaId = obx.QueryStringProperty<ConversationEntity>( |
| 1695 | _entities[0].properties[6], |
| 1696 | ); |
| 1697 | |
| 1698 | /// See [ConversationEntity.serverId]. |
| 1699 | static final serverId = obx.QueryStringProperty<ConversationEntity>( |
| 1700 | _entities[0].properties[7], |
| 1701 | ); |
| 1702 | |
| 1703 | /// See [ConversationEntity.modelId]. |
| 1704 | static final modelId = obx.QueryStringProperty<ConversationEntity>( |
| 1705 | _entities[0].properties[8], |
| 1706 | ); |
| 1707 | |
| 1708 | /// See [ConversationEntity.messageCount]. |
| 1709 | static final messageCount = obx.QueryIntegerProperty<ConversationEntity>( |
| 1710 | _entities[0].properties[9], |
| 1711 | ); |
| 1712 | |
| 1713 | /// See [ConversationEntity.lastMessagePreview]. |
| 1714 | static final lastMessagePreview = obx.QueryStringProperty<ConversationEntity>( |
| 1715 | _entities[0].properties[10], |
| 1716 | ); |
| 1717 | |
| 1718 | /// See [ConversationEntity.systemPrompt]. |
| 1719 | static final systemPrompt = obx.QueryStringProperty<ConversationEntity>( |
| 1720 | _entities[0].properties[11], |
| 1721 | ); |
| 1722 | |
| 1723 | /// See [ConversationEntity.temperature]. |
| 1724 | static final temperature = obx.QueryDoubleProperty<ConversationEntity>( |
| 1725 | _entities[0].properties[12], |
| 1726 | ); |
| 1727 | |
| 1728 | /// See [ConversationEntity.topP]. |
| 1729 | static final topP = obx.QueryDoubleProperty<ConversationEntity>( |
| 1730 | _entities[0].properties[13], |
| 1731 | ); |
| 1732 | |
| 1733 | /// See [ConversationEntity.maxTokens]. |
| 1734 | static final maxTokens = obx.QueryIntegerProperty<ConversationEntity>( |
| 1735 | _entities[0].properties[14], |
| 1736 | ); |
| 1737 | |
| 1738 | /// See [ConversationEntity.contextLength]. |
| 1739 | static final contextLength = obx.QueryIntegerProperty<ConversationEntity>( |
| 1740 | _entities[0].properties[15], |
| 1741 | ); |
| 1742 | |
| 1743 | /// See [ConversationEntity.mcpEnabled]. |
| 1744 | static final mcpEnabled = obx.QueryBooleanProperty<ConversationEntity>( |
| 1745 | _entities[0].properties[16], |
| 1746 | ); |
| 1747 | |
| 1748 | /// See [ConversationEntity.smartRepliesJson]. |
| 1749 | static final smartRepliesJson = obx.QueryStringProperty<ConversationEntity>( |
| 1750 | _entities[0].properties[17], |
| 1751 | ); |
| 1752 | |
| 1753 | /// See [ConversationEntity.smartRepliesLastMessageId]. |
| 1754 | static final smartRepliesLastMessageId = |
| 1755 | obx.QueryStringProperty<ConversationEntity>(_entities[0].properties[18]); |
| 1756 | |
| 1757 | /// See [ConversationEntity.folderId]. |
| 1758 | static final folderId = obx.QueryStringProperty<ConversationEntity>( |
| 1759 | _entities[0].properties[19], |
| 1760 | ); |
| 1761 | |
| 1762 | /// See [ConversationEntity.isTemporary]. |
| 1763 | static final isTemporary = obx.QueryBooleanProperty<ConversationEntity>( |
| 1764 | _entities[0].properties[20], |
| 1765 | ); |
| 1766 | |
| 1767 | /// See [ConversationEntity.isArchived]. |
| 1768 | static final isArchived = obx.QueryBooleanProperty<ConversationEntity>( |
| 1769 | _entities[0].properties[21], |
| 1770 | ); |
| 1771 | |
| 1772 | /// See [ConversationEntity.characterCount]. |
| 1773 | static final characterCount = obx.QueryIntegerProperty<ConversationEntity>( |
| 1774 | _entities[0].properties[22], |
| 1775 | ); |
| 1776 | |
| 1777 | /// See [ConversationEntity.totalTokenCount]. |
| 1778 | static final totalTokenCount = obx.QueryIntegerProperty<ConversationEntity>( |
| 1779 | _entities[0].properties[23], |
| 1780 | ); |
| 1781 | |
| 1782 | /// see [ConversationEntity.messages] |
| 1783 | static final messages = |
| 1784 | obx.QueryBacklinkToMany<MessageEntity, ConversationEntity>( |
| 1785 | MessageEntity_.conversation, |
| 1786 | ); |
| 1787 | } |
| 1788 | |
| 1789 | /// [MessageEntity] entity fields to define ObjectBox queries. |
| 1790 | class MessageEntity_ { |
| 1791 | /// See [MessageEntity.internalId]. |
| 1792 | static final internalId = obx.QueryIntegerProperty<MessageEntity>( |
| 1793 | _entities[1].properties[0], |
| 1794 | ); |
| 1795 | |
| 1796 | /// See [MessageEntity.id]. |
| 1797 | static final id = obx.QueryStringProperty<MessageEntity>( |
| 1798 | _entities[1].properties[1], |
| 1799 | ); |
| 1800 | |
| 1801 | /// See [MessageEntity.conversation]. |
| 1802 | static final conversation = |
| 1803 | obx.QueryRelationToOne<MessageEntity, ConversationEntity>( |
| 1804 | _entities[1].properties[2], |
| 1805 | ); |
| 1806 | |
| 1807 | /// See [MessageEntity.conversationUid]. |
| 1808 | static final conversationUid = obx.QueryStringProperty<MessageEntity>( |
| 1809 | _entities[1].properties[3], |
| 1810 | ); |
| 1811 | |
| 1812 | /// See [MessageEntity.roleIndex]. |
| 1813 | static final roleIndex = obx.QueryIntegerProperty<MessageEntity>( |
| 1814 | _entities[1].properties[4], |
| 1815 | ); |
| 1816 | |
| 1817 | /// See [MessageEntity.content]. |
| 1818 | static final content = obx.QueryStringProperty<MessageEntity>( |
| 1819 | _entities[1].properties[5], |
| 1820 | ); |
| 1821 | |
| 1822 | /// See [MessageEntity.createdAt]. |
| 1823 | static final createdAt = obx.QueryDateProperty<MessageEntity>( |
| 1824 | _entities[1].properties[6], |
| 1825 | ); |
| 1826 | |
| 1827 | /// See [MessageEntity.statusIndex]. |
| 1828 | static final statusIndex = obx.QueryIntegerProperty<MessageEntity>( |
| 1829 | _entities[1].properties[7], |
| 1830 | ); |
| 1831 | |
| 1832 | /// See [MessageEntity.modelId]. |
| 1833 | static final modelId = obx.QueryStringProperty<MessageEntity>( |
| 1834 | _entities[1].properties[8], |
| 1835 | ); |
| 1836 | |
| 1837 | /// See [MessageEntity.tokenCount]. |
| 1838 | static final tokenCount = obx.QueryIntegerProperty<MessageEntity>( |
| 1839 | _entities[1].properties[9], |
| 1840 | ); |
| 1841 | |
| 1842 | /// See [MessageEntity.errorMessage]. |
| 1843 | static final errorMessage = obx.QueryStringProperty<MessageEntity>( |
| 1844 | _entities[1].properties[10], |
| 1845 | ); |
| 1846 | |
| 1847 | /// See [MessageEntity.attachmentPathsJson]. |
| 1848 | static final attachmentPathsJson = obx.QueryStringProperty<MessageEntity>( |
| 1849 | _entities[1].properties[11], |
| 1850 | ); |
| 1851 | |
| 1852 | /// See [MessageEntity.generationTimeMs]. |
| 1853 | static final generationTimeMs = obx.QueryIntegerProperty<MessageEntity>( |
| 1854 | _entities[1].properties[12], |
| 1855 | ); |
| 1856 | |
| 1857 | /// See [MessageEntity.reasoningContent]. |
| 1858 | static final reasoningContent = obx.QueryStringProperty<MessageEntity>( |
| 1859 | _entities[1].properties[13], |
| 1860 | ); |
| 1861 | |
| 1862 | /// See [MessageEntity.toolCallsJson]. |
| 1863 | static final toolCallsJson = obx.QueryStringProperty<MessageEntity>( |
| 1864 | _entities[1].properties[14], |
| 1865 | ); |
| 1866 | |
| 1867 | /// See [MessageEntity.toolCallId]. |
| 1868 | static final toolCallId = obx.QueryStringProperty<MessageEntity>( |
| 1869 | _entities[1].properties[15], |
| 1870 | ); |
| 1871 | |
| 1872 | /// See [MessageEntity.isProcessing]. |
| 1873 | static final isProcessing = obx.QueryBooleanProperty<MessageEntity>( |
| 1874 | _entities[1].properties[16], |
| 1875 | ); |
| 1876 | |
| 1877 | /// See [MessageEntity.toolSessionId]. |
| 1878 | static final toolSessionId = obx.QueryStringProperty<MessageEntity>( |
| 1879 | _entities[1].properties[17], |
| 1880 | ); |
| 1881 | |
| 1882 | /// See [MessageEntity.toolEventsJson]. |
| 1883 | static final toolEventsJson = obx.QueryStringProperty<MessageEntity>( |
| 1884 | _entities[1].properties[18], |
| 1885 | ); |
| 1886 | |
| 1887 | /// See [MessageEntity.variantGroupId]. |
| 1888 | static final variantGroupId = obx.QueryStringProperty<MessageEntity>( |
| 1889 | _entities[1].properties[19], |
| 1890 | ); |
| 1891 | |
| 1892 | /// See [MessageEntity.variantIndex]. |
| 1893 | static final variantIndex = obx.QueryIntegerProperty<MessageEntity>( |
| 1894 | _entities[1].properties[20], |
| 1895 | ); |
| 1896 | |
| 1897 | /// See [MessageEntity.threadOrder]. |
| 1898 | static final threadOrder = obx.QueryIntegerProperty<MessageEntity>( |
| 1899 | _entities[1].properties[21], |
| 1900 | ); |
| 1901 | |
| 1902 | /// See [MessageEntity.isActiveVariant]. |
| 1903 | static final isActiveVariant = obx.QueryBooleanProperty<MessageEntity>( |
| 1904 | _entities[1].properties[22], |
| 1905 | ); |
| 1906 | |
| 1907 | /// See [MessageEntity.parentMessageId]. |
| 1908 | static final parentMessageId = obx.QueryStringProperty<MessageEntity>( |
| 1909 | _entities[1].properties[23], |
| 1910 | ); |
| 1911 | |
| 1912 | /// See [MessageEntity.inputTokenCount]. |
| 1913 | static final inputTokenCount = obx.QueryIntegerProperty<MessageEntity>( |
| 1914 | _entities[1].properties[24], |
| 1915 | ); |
| 1916 | |
| 1917 | /// See [MessageEntity.tokensPerSecond]. |
| 1918 | static final tokensPerSecond = obx.QueryDoubleProperty<MessageEntity>( |
| 1919 | _entities[1].properties[25], |
| 1920 | ); |
| 1921 | |
| 1922 | /// See [MessageEntity.ttftMs]. |
| 1923 | static final ttftMs = obx.QueryIntegerProperty<MessageEntity>( |
| 1924 | _entities[1].properties[26], |
| 1925 | ); |
| 1926 | |
| 1927 | /// See [MessageEntity.stopReason]. |
| 1928 | static final stopReason = obx.QueryStringProperty<MessageEntity>( |
| 1929 | _entities[1].properties[27], |
| 1930 | ); |
| 1931 | |
| 1932 | /// See [MessageEntity.contentTokenCount]. |
| 1933 | static final contentTokenCount = obx.QueryIntegerProperty<MessageEntity>( |
| 1934 | _entities[1].properties[28], |
| 1935 | ); |
| 1936 | } |
| 1937 | |
| 1938 | /// [PersonaEntity] entity fields to define ObjectBox queries. |
| 1939 | class PersonaEntity_ { |
| 1940 | /// See [PersonaEntity.internalId]. |
| 1941 | static final internalId = obx.QueryIntegerProperty<PersonaEntity>( |
| 1942 | _entities[2].properties[0], |
| 1943 | ); |
| 1944 | |
| 1945 | /// See [PersonaEntity.id]. |
| 1946 | static final id = obx.QueryStringProperty<PersonaEntity>( |
| 1947 | _entities[2].properties[1], |
| 1948 | ); |
| 1949 | |
| 1950 | /// See [PersonaEntity.name]. |
| 1951 | static final name = obx.QueryStringProperty<PersonaEntity>( |
| 1952 | _entities[2].properties[2], |
| 1953 | ); |
| 1954 | |
| 1955 | /// See [PersonaEntity.emoji]. |
| 1956 | static final emoji = obx.QueryStringProperty<PersonaEntity>( |
| 1957 | _entities[2].properties[3], |
| 1958 | ); |
| 1959 | |
| 1960 | /// See [PersonaEntity.systemPrompt]. |
| 1961 | static final systemPrompt = obx.QueryStringProperty<PersonaEntity>( |
| 1962 | _entities[2].properties[4], |
| 1963 | ); |
| 1964 | |
| 1965 | /// See [PersonaEntity.description]. |
| 1966 | static final description = obx.QueryStringProperty<PersonaEntity>( |
| 1967 | _entities[2].properties[5], |
| 1968 | ); |
| 1969 | |
| 1970 | /// See [PersonaEntity.isBuiltIn]. |
| 1971 | static final isBuiltIn = obx.QueryBooleanProperty<PersonaEntity>( |
| 1972 | _entities[2].properties[6], |
| 1973 | ); |
| 1974 | |
| 1975 | /// See [PersonaEntity.createdAt]. |
| 1976 | static final createdAt = obx.QueryDateProperty<PersonaEntity>( |
| 1977 | _entities[2].properties[7], |
| 1978 | ); |
| 1979 | |
| 1980 | /// See [PersonaEntity.updatedAt]. |
| 1981 | static final updatedAt = obx.QueryDateProperty<PersonaEntity>( |
| 1982 | _entities[2].properties[8], |
| 1983 | ); |
| 1984 | |
| 1985 | /// See [PersonaEntity.category]. |
| 1986 | static final category = obx.QueryStringProperty<PersonaEntity>( |
| 1987 | _entities[2].properties[9], |
| 1988 | ); |
| 1989 | |
| 1990 | /// See [PersonaEntity.preferredParamsJson]. |
| 1991 | static final preferredParamsJson = obx.QueryStringProperty<PersonaEntity>( |
| 1992 | _entities[2].properties[10], |
| 1993 | ); |
| 1994 | } |
| 1995 | |
| 1996 | /// [ServerEntity] entity fields to define ObjectBox queries. |
| 1997 | class ServerEntity_ { |
| 1998 | /// See [ServerEntity.internalId]. |
| 1999 | static final internalId = obx.QueryIntegerProperty<ServerEntity>( |
| 2000 | _entities[3].properties[0], |
| 2001 | ); |
| 2002 | |
| 2003 | /// See [ServerEntity.id]. |
| 2004 | static final id = obx.QueryStringProperty<ServerEntity>( |
| 2005 | _entities[3].properties[1], |
| 2006 | ); |
| 2007 | |
| 2008 | /// See [ServerEntity.name]. |
| 2009 | static final name = obx.QueryStringProperty<ServerEntity>( |
| 2010 | _entities[3].properties[2], |
| 2011 | ); |
| 2012 | |
| 2013 | /// See [ServerEntity.typeIndex]. |
| 2014 | static final typeIndex = obx.QueryIntegerProperty<ServerEntity>( |
| 2015 | _entities[3].properties[3], |
| 2016 | ); |
| 2017 | |
| 2018 | /// See [ServerEntity.host]. |
| 2019 | static final host = obx.QueryStringProperty<ServerEntity>( |
| 2020 | _entities[3].properties[4], |
| 2021 | ); |
| 2022 | |
| 2023 | /// See [ServerEntity.port]. |
| 2024 | static final port = obx.QueryIntegerProperty<ServerEntity>( |
| 2025 | _entities[3].properties[5], |
| 2026 | ); |
| 2027 | |
| 2028 | /// See [ServerEntity.apiKey]. |
| 2029 | static final apiKey = obx.QueryStringProperty<ServerEntity>( |
| 2030 | _entities[3].properties[6], |
| 2031 | ); |
| 2032 | |
| 2033 | /// See [ServerEntity.isDefault]. |
| 2034 | static final isDefault = obx.QueryBooleanProperty<ServerEntity>( |
| 2035 | _entities[3].properties[7], |
| 2036 | ); |
| 2037 | |
| 2038 | /// See [ServerEntity.createdAt]. |
| 2039 | static final createdAt = obx.QueryDateProperty<ServerEntity>( |
| 2040 | _entities[3].properties[8], |
| 2041 | ); |
| 2042 | |
| 2043 | /// See [ServerEntity.lastConnectedAt]. |
| 2044 | static final lastConnectedAt = obx.QueryDateProperty<ServerEntity>( |
| 2045 | _entities[3].properties[9], |
| 2046 | ); |
| 2047 | |
| 2048 | /// See [ServerEntity.statusIndex]. |
| 2049 | static final statusIndex = obx.QueryIntegerProperty<ServerEntity>( |
| 2050 | _entities[3].properties[10], |
| 2051 | ); |
| 2052 | |
| 2053 | /// See [ServerEntity.iconName]. |
| 2054 | static final iconName = obx.QueryStringProperty<ServerEntity>( |
| 2055 | _entities[3].properties[11], |
| 2056 | ); |
| 2057 | |
| 2058 | /// See [ServerEntity.pathPrefix]. |
| 2059 | static final pathPrefix = obx.QueryStringProperty<ServerEntity>( |
| 2060 | _entities[3].properties[12], |
| 2061 | ); |
| 2062 | |
| 2063 | /// See [ServerEntity.availableRamGb]. |
| 2064 | static final availableRamGb = obx.QueryIntegerProperty<ServerEntity>( |
| 2065 | _entities[3].properties[13], |
| 2066 | ); |
| 2067 | |
| 2068 | /// See [ServerEntity.availableVramGb]. |
| 2069 | static final availableVramGb = obx.QueryIntegerProperty<ServerEntity>( |
| 2070 | _entities[3].properties[14], |
| 2071 | ); |
| 2072 | } |
| 2073 | |
| 2074 | /// [ConversationFolderEntity] entity fields to define ObjectBox queries. |
| 2075 | class ConversationFolderEntity_ { |
| 2076 | /// See [ConversationFolderEntity.internalId]. |
| 2077 | static final internalId = obx.QueryIntegerProperty<ConversationFolderEntity>( |
| 2078 | _entities[4].properties[0], |
| 2079 | ); |
| 2080 | |
| 2081 | /// See [ConversationFolderEntity.id]. |
| 2082 | static final id = obx.QueryStringProperty<ConversationFolderEntity>( |
| 2083 | _entities[4].properties[1], |
| 2084 | ); |
| 2085 | |
| 2086 | /// See [ConversationFolderEntity.name]. |
| 2087 | static final name = obx.QueryStringProperty<ConversationFolderEntity>( |
| 2088 | _entities[4].properties[2], |
| 2089 | ); |
| 2090 | |
| 2091 | /// See [ConversationFolderEntity.sortOrder]. |
| 2092 | static final sortOrder = obx.QueryIntegerProperty<ConversationFolderEntity>( |
| 2093 | _entities[4].properties[3], |
| 2094 | ); |
| 2095 | |
| 2096 | /// See [ConversationFolderEntity.createdAt]. |
| 2097 | static final createdAt = obx.QueryDateProperty<ConversationFolderEntity>( |
| 2098 | _entities[4].properties[4], |
| 2099 | ); |
| 2100 | } |
| 2101 | |
| 2102 | /// [SavedMessageEntity] entity fields to define ObjectBox queries. |
| 2103 | class SavedMessageEntity_ { |
| 2104 | /// See [SavedMessageEntity.internalId]. |
| 2105 | static final internalId = obx.QueryIntegerProperty<SavedMessageEntity>( |
| 2106 | _entities[5].properties[0], |
| 2107 | ); |
| 2108 | |
| 2109 | /// See [SavedMessageEntity.id]. |
| 2110 | static final id = obx.QueryStringProperty<SavedMessageEntity>( |
| 2111 | _entities[5].properties[1], |
| 2112 | ); |
| 2113 | |
| 2114 | /// See [SavedMessageEntity.sourceMessageId]. |
| 2115 | static final sourceMessageId = obx.QueryStringProperty<SavedMessageEntity>( |
| 2116 | _entities[5].properties[2], |
| 2117 | ); |
| 2118 | |
| 2119 | /// See [SavedMessageEntity.conversationId]. |
| 2120 | static final conversationId = obx.QueryStringProperty<SavedMessageEntity>( |
| 2121 | _entities[5].properties[3], |
| 2122 | ); |
| 2123 | |
| 2124 | /// See [SavedMessageEntity.conversationTitle]. |
| 2125 | static final conversationTitle = obx.QueryStringProperty<SavedMessageEntity>( |
| 2126 | _entities[5].properties[4], |
| 2127 | ); |
| 2128 | |
| 2129 | /// See [SavedMessageEntity.roleIndex]. |
| 2130 | static final roleIndex = obx.QueryIntegerProperty<SavedMessageEntity>( |
| 2131 | _entities[5].properties[5], |
| 2132 | ); |
| 2133 | |
| 2134 | /// See [SavedMessageEntity.content]. |
| 2135 | static final content = obx.QueryStringProperty<SavedMessageEntity>( |
| 2136 | _entities[5].properties[6], |
| 2137 | ); |
| 2138 | |
| 2139 | /// See [SavedMessageEntity.modelId]. |
| 2140 | static final modelId = obx.QueryStringProperty<SavedMessageEntity>( |
| 2141 | _entities[5].properties[7], |
| 2142 | ); |
| 2143 | |
| 2144 | /// See [SavedMessageEntity.folderId]. |
| 2145 | static final folderId = obx.QueryStringProperty<SavedMessageEntity>( |
| 2146 | _entities[5].properties[8], |
| 2147 | ); |
| 2148 | |
| 2149 | /// See [SavedMessageEntity.savedAt]. |
| 2150 | static final savedAt = obx.QueryDateProperty<SavedMessageEntity>( |
| 2151 | _entities[5].properties[9], |
| 2152 | ); |
| 2153 | |
| 2154 | /// See [SavedMessageEntity.isArchived]. |
| 2155 | static final isArchived = obx.QueryBooleanProperty<SavedMessageEntity>( |
| 2156 | _entities[5].properties[10], |
| 2157 | ); |
| 2158 | } |
| 2159 | |
| 2160 | /// [SavedMessageFolderEntity] entity fields to define ObjectBox queries. |
| 2161 | class SavedMessageFolderEntity_ { |
| 2162 | /// See [SavedMessageFolderEntity.internalId]. |
| 2163 | static final internalId = obx.QueryIntegerProperty<SavedMessageFolderEntity>( |
| 2164 | _entities[6].properties[0], |
| 2165 | ); |
| 2166 | |
| 2167 | /// See [SavedMessageFolderEntity.id]. |
| 2168 | static final id = obx.QueryStringProperty<SavedMessageFolderEntity>( |
| 2169 | _entities[6].properties[1], |
| 2170 | ); |
| 2171 | |
| 2172 | /// See [SavedMessageFolderEntity.name]. |
| 2173 | static final name = obx.QueryStringProperty<SavedMessageFolderEntity>( |
| 2174 | _entities[6].properties[2], |
| 2175 | ); |
| 2176 | |
| 2177 | /// See [SavedMessageFolderEntity.sortOrder]. |
| 2178 | static final sortOrder = obx.QueryIntegerProperty<SavedMessageFolderEntity>( |
| 2179 | _entities[6].properties[3], |
| 2180 | ); |
| 2181 | |
| 2182 | /// See [SavedMessageFolderEntity.createdAt]. |
| 2183 | static final createdAt = obx.QueryDateProperty<SavedMessageFolderEntity>( |
| 2184 | _entities[6].properties[4], |
| 2185 | ); |
| 2186 | } |