@happyvertical/smrt-images 0.44.1 → 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.1",
5
+ "packageVersion": "0.45.0",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-images:Image": {
8
8
  "name": "image",
@@ -127,554 +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
- {
438
- "name": "options",
439
- "type": "SmrtDeleteOptions",
440
- "optional": true
441
- }
442
- ],
443
- "returnType": "Promise<void>",
444
- "isStatic": false,
445
- "isPublic": true
446
- },
447
- "isRelatedLoaded": {
448
- "name": "isRelatedLoaded",
449
- "async": false,
450
- "parameters": [
451
- {
452
- "name": "fieldName",
453
- "type": "string",
454
- "optional": false
455
- }
456
- ],
457
- "returnType": "boolean",
458
- "isStatic": false,
459
- "isPublic": true
460
- },
461
- "_setLoadedRelationship": {
462
- "name": "_setLoadedRelationship",
463
- "async": false,
464
- "parameters": [
465
- {
466
- "name": "fieldName",
467
- "type": "string",
468
- "optional": false
469
- },
470
- {
471
- "name": "value",
472
- "type": "any",
473
- "optional": false
474
- }
475
- ],
476
- "returnType": "void",
477
- "isStatic": false,
478
- "isPublic": true
479
- },
480
- "loadRelated": {
481
- "name": "loadRelated",
482
- "async": true,
483
- "parameters": [
484
- {
485
- "name": "fieldName",
486
- "type": "string",
487
- "optional": false
488
- },
489
- {
490
- "name": "opts",
491
- "type": "LoadRelatedOptions",
492
- "optional": true
493
- }
494
- ],
495
- "returnType": "Promise<any>",
496
- "isStatic": false,
497
- "isPublic": true
498
- },
499
- "loadRelatedMany": {
500
- "name": "loadRelatedMany",
501
- "async": true,
502
- "parameters": [
503
- {
504
- "name": "fieldName",
505
- "type": "string",
506
- "optional": false
507
- },
508
- {
509
- "name": "opts",
510
- "type": "LoadRelatedOptions",
511
- "optional": true
512
- }
513
- ],
514
- "returnType": "Promise<any[]>",
515
- "isStatic": false,
516
- "isPublic": true
517
- },
518
- "getRelated": {
519
- "name": "getRelated",
520
- "async": true,
521
- "parameters": [
522
- {
523
- "name": "fieldName",
524
- "type": "string",
525
- "optional": false
526
- },
527
- {
528
- "name": "opts",
529
- "type": "LoadRelatedOptions",
530
- "optional": true
531
- }
532
- ],
533
- "returnType": "Promise<any>",
534
- "isStatic": false,
535
- "isPublic": true
536
- },
537
- "getAvailableTools": {
538
- "name": "getAvailableTools",
539
- "async": false,
540
- "parameters": [],
541
- "returnType": "AITool[]",
542
- "isStatic": false,
543
- "isPublic": true
544
- },
545
- "executeToolCall": {
546
- "name": "executeToolCall",
547
- "async": true,
548
- "parameters": [
549
- {
550
- "name": "toolCall",
551
- "type": "ToolCall",
552
- "optional": false
553
- }
554
- ],
555
- "returnType": "Promise<ToolCallResult>",
556
- "isStatic": false,
557
- "isPublic": true
558
- },
559
- "remember": {
560
- "name": "remember",
561
- "async": true,
562
- "parameters": [
563
- {
564
- "name": "options",
565
- "type": "object",
566
- "optional": false
567
- }
568
- ],
569
- "returnType": "Promise<void>",
570
- "isStatic": false,
571
- "isPublic": true
572
- },
573
- "recall": {
574
- "name": "recall",
575
- "async": true,
576
- "parameters": [
577
- {
578
- "name": "options",
579
- "type": "object",
580
- "optional": false
581
- }
582
- ],
583
- "returnType": "Promise",
584
- "isStatic": false,
585
- "isPublic": true
586
- },
587
- "recallAll": {
588
- "name": "recallAll",
589
- "async": true,
590
- "parameters": [
591
- {
592
- "name": "options",
593
- "type": "object",
594
- "optional": true
595
- }
596
- ],
597
- "returnType": "Promise<Map<string>>",
598
- "isStatic": false,
599
- "isPublic": true
600
- },
601
- "forget": {
602
- "name": "forget",
603
- "async": true,
604
- "parameters": [
605
- {
606
- "name": "options",
607
- "type": "object",
608
- "optional": false
609
- }
610
- ],
611
- "returnType": "Promise<void>",
612
- "isStatic": false,
613
- "isPublic": true
614
- },
615
- "forgetScope": {
616
- "name": "forgetScope",
617
- "async": true,
618
- "parameters": [
619
- {
620
- "name": "options",
621
- "type": "object",
622
- "optional": false
623
- }
624
- ],
625
- "returnType": "Promise<number>",
626
- "isStatic": false,
627
- "isPublic": true
628
- },
629
- "generateEmbeddings": {
630
- "name": "generateEmbeddings",
631
- "async": true,
632
- "parameters": [
633
- {
634
- "name": "options",
635
- "type": "GenerateEmbeddingsOptions",
636
- "optional": true
637
- }
638
- ],
639
- "returnType": "Promise<void>",
640
- "isStatic": false,
641
- "isPublic": true
642
- },
643
- "getEmbedding": {
644
- "name": "getEmbedding",
645
- "async": true,
646
- "parameters": [
647
- {
648
- "name": "fieldName",
649
- "type": "string",
650
- "optional": false
651
- },
652
- {
653
- "name": "model",
654
- "type": "string",
655
- "optional": true
656
- }
657
- ],
658
- "returnType": "Promise<number[] | null>",
659
- "isStatic": false,
660
- "isPublic": true
661
- },
662
- "hasStaleEmbeddings": {
663
- "name": "hasStaleEmbeddings",
664
- "async": true,
665
- "parameters": [],
666
- "returnType": "Promise<boolean>",
667
- "isStatic": false,
668
- "isPublic": true
669
- },
670
- "clearEmbeddings": {
671
- "name": "clearEmbeddings",
672
- "async": true,
673
- "parameters": [],
674
- "returnType": "Promise<void>",
675
- "isStatic": false,
676
- "isPublic": true
677
- },
678
130
  "getMetadata": {
679
131
  "name": "getMetadata",
680
132
  "async": false,