@happyvertical/smrt-images 0.44.0 → 0.45.0

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.
@@ -2,7 +2,7 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-images",
5
- "packageVersion": "0.44.0",
5
+ "packageVersion": "0.45.0",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-images:Image": {
8
8
  "name": "image",
@@ -127,548 +127,6 @@
127
127
  }
128
128
  },
129
129
  "methods": {
130
- "withDatabase": {
131
- "name": "withDatabase",
132
- "async": true,
133
- "parameters": [
134
- {
135
- "name": "db",
136
- "type": "DatabaseInterface",
137
- "optional": false
138
- },
139
- {
140
- "name": "operation",
141
- "type": "Function",
142
- "optional": false
143
- }
144
- ],
145
- "returnType": "Promise<T>",
146
- "isStatic": false,
147
- "isPublic": true
148
- },
149
- "getAiUsageSnapshot": {
150
- "name": "getAiUsageSnapshot",
151
- "async": false,
152
- "parameters": [],
153
- "returnType": "AiUsageSnapshot | undefined",
154
- "isStatic": false,
155
- "isPublic": true
156
- },
157
- "resetAiUsage": {
158
- "name": "resetAiUsage",
159
- "async": false,
160
- "parameters": [],
161
- "returnType": "void",
162
- "isStatic": false,
163
- "isPublic": true
164
- },
165
- "listAiUsage": {
166
- "name": "listAiUsage",
167
- "async": true,
168
- "parameters": [
169
- {
170
- "name": "options",
171
- "type": "AiUsageListOptions",
172
- "optional": true
173
- }
174
- ],
175
- "returnType": "Promise<SmrtAiUsageRecord[]>",
176
- "isStatic": false,
177
- "isPublic": true
178
- },
179
- "summarizeAiUsage": {
180
- "name": "summarizeAiUsage",
181
- "async": true,
182
- "parameters": [
183
- {
184
- "name": "options",
185
- "type": "AiUsageSummaryOptions",
186
- "optional": true
187
- }
188
- ],
189
- "returnType": "Promise<Record<string, AiUsageStats>>",
190
- "isStatic": false,
191
- "isPublic": true
192
- },
193
- "destroy": {
194
- "name": "destroy",
195
- "async": false,
196
- "parameters": [],
197
- "returnType": "void",
198
- "isStatic": false,
199
- "isPublic": true
200
- },
201
- "markAsPersisted": {
202
- "name": "markAsPersisted",
203
- "async": false,
204
- "parameters": [],
205
- "returnType": "void",
206
- "isStatic": false,
207
- "isPublic": true
208
- },
209
- "requireInsertOnSave": {
210
- "name": "requireInsertOnSave",
211
- "async": false,
212
- "parameters": [],
213
- "returnType": "void",
214
- "isStatic": false,
215
- "isPublic": true
216
- },
217
- "withTransaction": {
218
- "name": "withTransaction",
219
- "async": true,
220
- "parameters": [
221
- {
222
- "name": "operation",
223
- "type": "Function",
224
- "optional": false
225
- }
226
- ],
227
- "returnType": "Promise<T>",
228
- "isStatic": false,
229
- "isPublic": true
230
- },
231
- "initialize": {
232
- "name": "initialize",
233
- "async": true,
234
- "parameters": [],
235
- "returnType": "Promise",
236
- "isStatic": false,
237
- "isPublic": true
238
- },
239
- "loadDataFromDb": {
240
- "name": "loadDataFromDb",
241
- "async": true,
242
- "parameters": [
243
- {
244
- "name": "data",
245
- "type": "Record<string>",
246
- "optional": false
247
- }
248
- ],
249
- "returnType": "any",
250
- "isStatic": false,
251
- "isPublic": true
252
- },
253
- "getFields": {
254
- "name": "getFields",
255
- "async": true,
256
- "parameters": [],
257
- "returnType": "Promise<any>",
258
- "isStatic": false,
259
- "isPublic": true
260
- },
261
- "toJSON": {
262
- "name": "toJSON",
263
- "async": false,
264
- "parameters": [],
265
- "returnType": "any",
266
- "isStatic": false,
267
- "isPublic": true
268
- },
269
- "toPlainObject": {
270
- "name": "toPlainObject",
271
- "async": false,
272
- "parameters": [],
273
- "returnType": "Record<string>",
274
- "isStatic": false,
275
- "isPublic": true
276
- },
277
- "toPublicJSON": {
278
- "name": "toPublicJSON",
279
- "async": false,
280
- "parameters": [
281
- {
282
- "name": "options",
283
- "type": "PublicJsonOptions",
284
- "optional": true
285
- }
286
- ],
287
- "returnType": "Record<string>",
288
- "isStatic": false,
289
- "isPublic": true
290
- },
291
- "getId": {
292
- "name": "getId",
293
- "async": true,
294
- "parameters": [],
295
- "returnType": "any",
296
- "isStatic": false,
297
- "isPublic": true
298
- },
299
- "getSlug": {
300
- "name": "getSlug",
301
- "async": true,
302
- "parameters": [],
303
- "returnType": "any",
304
- "isStatic": false,
305
- "isPublic": true
306
- },
307
- "getSavedId": {
308
- "name": "getSavedId",
309
- "async": true,
310
- "parameters": [],
311
- "returnType": "any",
312
- "isStatic": false,
313
- "isPublic": true
314
- },
315
- "isSaved": {
316
- "name": "isSaved",
317
- "async": true,
318
- "parameters": [],
319
- "returnType": "any",
320
- "isStatic": false,
321
- "isPublic": true
322
- },
323
- "save": {
324
- "name": "save",
325
- "async": true,
326
- "parameters": [
327
- {
328
- "name": "options",
329
- "type": "SmrtSaveOptions",
330
- "optional": true
331
- }
332
- ],
333
- "returnType": "any",
334
- "isStatic": false,
335
- "isPublic": true
336
- },
337
- "claimRevision": {
338
- "name": "claimRevision",
339
- "async": true,
340
- "parameters": [
341
- {
342
- "name": "expectedUpdatedAt",
343
- "type": "Date | string",
344
- "optional": false
345
- }
346
- ],
347
- "returnType": "Promise",
348
- "isStatic": false,
349
- "isPublic": true
350
- },
351
- "classifyConstraintError": {
352
- "name": "classifyConstraintError",
353
- "async": false,
354
- "parameters": [
355
- {
356
- "name": "message",
357
- "type": "string",
358
- "optional": false
359
- }
360
- ],
361
- "returnType": "'unique' | 'not_null' | null",
362
- "isStatic": true,
363
- "isPublic": true
364
- },
365
- "loadFromId": {
366
- "name": "loadFromId",
367
- "async": true,
368
- "parameters": [],
369
- "returnType": "any",
370
- "isStatic": false,
371
- "isPublic": true
372
- },
373
- "loadFromSlug": {
374
- "name": "loadFromSlug",
375
- "async": true,
376
- "parameters": [],
377
- "returnType": "any",
378
- "isStatic": false,
379
- "isPublic": true
380
- },
381
- "is": {
382
- "name": "is",
383
- "async": true,
384
- "parameters": [
385
- {
386
- "name": "criteria",
387
- "type": "string",
388
- "optional": false
389
- },
390
- {
391
- "name": "options",
392
- "type": "AiOperationOptions",
393
- "optional": true
394
- }
395
- ],
396
- "returnType": "any",
397
- "isStatic": false,
398
- "isPublic": true
399
- },
400
- "do": {
401
- "name": "do",
402
- "async": true,
403
- "parameters": [
404
- {
405
- "name": "instructions",
406
- "type": "string",
407
- "optional": false
408
- },
409
- {
410
- "name": "options",
411
- "type": "AiOperationOptions",
412
- "optional": true
413
- }
414
- ],
415
- "returnType": "any",
416
- "isStatic": false,
417
- "isPublic": true
418
- },
419
- "describe": {
420
- "name": "describe",
421
- "async": true,
422
- "parameters": [
423
- {
424
- "name": "options",
425
- "type": "AiOperationOptions",
426
- "optional": true
427
- }
428
- ],
429
- "returnType": "any",
430
- "isStatic": false,
431
- "isPublic": true
432
- },
433
- "delete": {
434
- "name": "delete",
435
- "async": true,
436
- "parameters": [],
437
- "returnType": "Promise<void>",
438
- "isStatic": false,
439
- "isPublic": true
440
- },
441
- "isRelatedLoaded": {
442
- "name": "isRelatedLoaded",
443
- "async": false,
444
- "parameters": [
445
- {
446
- "name": "fieldName",
447
- "type": "string",
448
- "optional": false
449
- }
450
- ],
451
- "returnType": "boolean",
452
- "isStatic": false,
453
- "isPublic": true
454
- },
455
- "_setLoadedRelationship": {
456
- "name": "_setLoadedRelationship",
457
- "async": false,
458
- "parameters": [
459
- {
460
- "name": "fieldName",
461
- "type": "string",
462
- "optional": false
463
- },
464
- {
465
- "name": "value",
466
- "type": "any",
467
- "optional": false
468
- }
469
- ],
470
- "returnType": "void",
471
- "isStatic": false,
472
- "isPublic": true
473
- },
474
- "loadRelated": {
475
- "name": "loadRelated",
476
- "async": true,
477
- "parameters": [
478
- {
479
- "name": "fieldName",
480
- "type": "string",
481
- "optional": false
482
- },
483
- {
484
- "name": "opts",
485
- "type": "LoadRelatedOptions",
486
- "optional": true
487
- }
488
- ],
489
- "returnType": "Promise<any>",
490
- "isStatic": false,
491
- "isPublic": true
492
- },
493
- "loadRelatedMany": {
494
- "name": "loadRelatedMany",
495
- "async": true,
496
- "parameters": [
497
- {
498
- "name": "fieldName",
499
- "type": "string",
500
- "optional": false
501
- },
502
- {
503
- "name": "opts",
504
- "type": "LoadRelatedOptions",
505
- "optional": true
506
- }
507
- ],
508
- "returnType": "Promise<any[]>",
509
- "isStatic": false,
510
- "isPublic": true
511
- },
512
- "getRelated": {
513
- "name": "getRelated",
514
- "async": true,
515
- "parameters": [
516
- {
517
- "name": "fieldName",
518
- "type": "string",
519
- "optional": false
520
- },
521
- {
522
- "name": "opts",
523
- "type": "LoadRelatedOptions",
524
- "optional": true
525
- }
526
- ],
527
- "returnType": "Promise<any>",
528
- "isStatic": false,
529
- "isPublic": true
530
- },
531
- "getAvailableTools": {
532
- "name": "getAvailableTools",
533
- "async": false,
534
- "parameters": [],
535
- "returnType": "AITool[]",
536
- "isStatic": false,
537
- "isPublic": true
538
- },
539
- "executeToolCall": {
540
- "name": "executeToolCall",
541
- "async": true,
542
- "parameters": [
543
- {
544
- "name": "toolCall",
545
- "type": "ToolCall",
546
- "optional": false
547
- }
548
- ],
549
- "returnType": "Promise<ToolCallResult>",
550
- "isStatic": false,
551
- "isPublic": true
552
- },
553
- "remember": {
554
- "name": "remember",
555
- "async": true,
556
- "parameters": [
557
- {
558
- "name": "options",
559
- "type": "object",
560
- "optional": false
561
- }
562
- ],
563
- "returnType": "Promise<void>",
564
- "isStatic": false,
565
- "isPublic": true
566
- },
567
- "recall": {
568
- "name": "recall",
569
- "async": true,
570
- "parameters": [
571
- {
572
- "name": "options",
573
- "type": "object",
574
- "optional": false
575
- }
576
- ],
577
- "returnType": "Promise",
578
- "isStatic": false,
579
- "isPublic": true
580
- },
581
- "recallAll": {
582
- "name": "recallAll",
583
- "async": true,
584
- "parameters": [
585
- {
586
- "name": "options",
587
- "type": "object",
588
- "optional": true
589
- }
590
- ],
591
- "returnType": "Promise<Map<string>>",
592
- "isStatic": false,
593
- "isPublic": true
594
- },
595
- "forget": {
596
- "name": "forget",
597
- "async": true,
598
- "parameters": [
599
- {
600
- "name": "options",
601
- "type": "object",
602
- "optional": false
603
- }
604
- ],
605
- "returnType": "Promise<void>",
606
- "isStatic": false,
607
- "isPublic": true
608
- },
609
- "forgetScope": {
610
- "name": "forgetScope",
611
- "async": true,
612
- "parameters": [
613
- {
614
- "name": "options",
615
- "type": "object",
616
- "optional": false
617
- }
618
- ],
619
- "returnType": "Promise<number>",
620
- "isStatic": false,
621
- "isPublic": true
622
- },
623
- "generateEmbeddings": {
624
- "name": "generateEmbeddings",
625
- "async": true,
626
- "parameters": [
627
- {
628
- "name": "options",
629
- "type": "GenerateEmbeddingsOptions",
630
- "optional": true
631
- }
632
- ],
633
- "returnType": "Promise<void>",
634
- "isStatic": false,
635
- "isPublic": true
636
- },
637
- "getEmbedding": {
638
- "name": "getEmbedding",
639
- "async": true,
640
- "parameters": [
641
- {
642
- "name": "fieldName",
643
- "type": "string",
644
- "optional": false
645
- },
646
- {
647
- "name": "model",
648
- "type": "string",
649
- "optional": true
650
- }
651
- ],
652
- "returnType": "Promise<number[] | null>",
653
- "isStatic": false,
654
- "isPublic": true
655
- },
656
- "hasStaleEmbeddings": {
657
- "name": "hasStaleEmbeddings",
658
- "async": true,
659
- "parameters": [],
660
- "returnType": "Promise<boolean>",
661
- "isStatic": false,
662
- "isPublic": true
663
- },
664
- "clearEmbeddings": {
665
- "name": "clearEmbeddings",
666
- "async": true,
667
- "parameters": [],
668
- "returnType": "Promise<void>",
669
- "isStatic": false,
670
- "isPublic": true
671
- },
672
130
  "getMetadata": {
673
131
  "name": "getMetadata",
674
132
  "async": false,