@uug-ai/models 1.3.0 → 1.3.2

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.
Files changed (2) hide show
  1. package/dist/types.d.ts +230 -324
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -393,162 +393,6 @@ export interface paths {
393
393
  patch?: never;
394
394
  trace?: never;
395
395
  };
396
- "/internal/addstrategyerrorresponse": {
397
- parameters: {
398
- query?: never;
399
- header?: never;
400
- path?: never;
401
- cookie?: never;
402
- };
403
- /**
404
- * Get AddStrategyErrorResponse (schema generation only)
405
- * @description Internal endpoint used only to ensure AddStrategyErrorResponse schema is generated in OpenAPI spec
406
- */
407
- get: {
408
- parameters: {
409
- query?: never;
410
- header?: never;
411
- path?: never;
412
- cookie?: never;
413
- };
414
- requestBody?: never;
415
- responses: {
416
- /** @description OK */
417
- 200: {
418
- headers: {
419
- [name: string]: unknown;
420
- };
421
- content: {
422
- "application/json": components["schemas"]["api.AddStrategyErrorResponse"];
423
- };
424
- };
425
- };
426
- };
427
- put?: never;
428
- post?: never;
429
- delete?: never;
430
- options?: never;
431
- head?: never;
432
- patch?: never;
433
- trace?: never;
434
- };
435
- "/internal/addstrategyrequest": {
436
- parameters: {
437
- query?: never;
438
- header?: never;
439
- path?: never;
440
- cookie?: never;
441
- };
442
- /**
443
- * Get AddStrategyRequest (schema generation only)
444
- * @description Internal endpoint used only to ensure AddStrategyRequest schema is generated in OpenAPI spec
445
- */
446
- get: {
447
- parameters: {
448
- query?: never;
449
- header?: never;
450
- path?: never;
451
- cookie?: never;
452
- };
453
- requestBody?: never;
454
- responses: {
455
- /** @description OK */
456
- 200: {
457
- headers: {
458
- [name: string]: unknown;
459
- };
460
- content: {
461
- "application/json": components["schemas"]["api.AddStrategyRequest"];
462
- };
463
- };
464
- };
465
- };
466
- put?: never;
467
- post?: never;
468
- delete?: never;
469
- options?: never;
470
- head?: never;
471
- patch?: never;
472
- trace?: never;
473
- };
474
- "/internal/addstrategyresponse": {
475
- parameters: {
476
- query?: never;
477
- header?: never;
478
- path?: never;
479
- cookie?: never;
480
- };
481
- /**
482
- * Get AddStrategyResponse (schema generation only)
483
- * @description Internal endpoint used only to ensure AddStrategyResponse schema is generated in OpenAPI spec
484
- */
485
- get: {
486
- parameters: {
487
- query?: never;
488
- header?: never;
489
- path?: never;
490
- cookie?: never;
491
- };
492
- requestBody?: never;
493
- responses: {
494
- /** @description OK */
495
- 200: {
496
- headers: {
497
- [name: string]: unknown;
498
- };
499
- content: {
500
- "application/json": components["schemas"]["api.AddStrategyResponse"];
501
- };
502
- };
503
- };
504
- };
505
- put?: never;
506
- post?: never;
507
- delete?: never;
508
- options?: never;
509
- head?: never;
510
- patch?: never;
511
- trace?: never;
512
- };
513
- "/internal/addstrategysuccessresponse": {
514
- parameters: {
515
- query?: never;
516
- header?: never;
517
- path?: never;
518
- cookie?: never;
519
- };
520
- /**
521
- * Get AddStrategySuccessResponse (schema generation only)
522
- * @description Internal endpoint used only to ensure AddStrategySuccessResponse schema is generated in OpenAPI spec
523
- */
524
- get: {
525
- parameters: {
526
- query?: never;
527
- header?: never;
528
- path?: never;
529
- cookie?: never;
530
- };
531
- requestBody?: never;
532
- responses: {
533
- /** @description OK */
534
- 200: {
535
- headers: {
536
- [name: string]: unknown;
537
- };
538
- content: {
539
- "application/json": components["schemas"]["api.AddStrategySuccessResponse"];
540
- };
541
- };
542
- };
543
- };
544
- put?: never;
545
- post?: never;
546
- delete?: never;
547
- options?: never;
548
- head?: never;
549
- patch?: never;
550
- trace?: never;
551
- };
552
396
  "/internal/alertfeatures": {
553
397
  parameters: {
554
398
  query?: never;
@@ -1602,7 +1446,7 @@ export interface paths {
1602
1446
  patch?: never;
1603
1447
  trace?: never;
1604
1448
  };
1605
- "/internal/deletestrategyerrorresponse": {
1449
+ "/internal/deletestateerrorresponse": {
1606
1450
  parameters: {
1607
1451
  query?: never;
1608
1452
  header?: never;
@@ -1610,8 +1454,8 @@ export interface paths {
1610
1454
  cookie?: never;
1611
1455
  };
1612
1456
  /**
1613
- * Get DeleteStrategyErrorResponse (schema generation only)
1614
- * @description Internal endpoint used only to ensure DeleteStrategyErrorResponse schema is generated in OpenAPI spec
1457
+ * Get DeleteStateErrorResponse (schema generation only)
1458
+ * @description Internal endpoint used only to ensure DeleteStateErrorResponse schema is generated in OpenAPI spec
1615
1459
  */
1616
1460
  get: {
1617
1461
  parameters: {
@@ -1628,7 +1472,7 @@ export interface paths {
1628
1472
  [name: string]: unknown;
1629
1473
  };
1630
1474
  content: {
1631
- "application/json": components["schemas"]["api.DeleteStrategyErrorResponse"];
1475
+ "application/json": components["schemas"]["api.DeleteStateErrorResponse"];
1632
1476
  };
1633
1477
  };
1634
1478
  };
@@ -1641,7 +1485,7 @@ export interface paths {
1641
1485
  patch?: never;
1642
1486
  trace?: never;
1643
1487
  };
1644
- "/internal/deletestrategyrequest": {
1488
+ "/internal/deletestaterequest": {
1645
1489
  parameters: {
1646
1490
  query?: never;
1647
1491
  header?: never;
@@ -1649,8 +1493,8 @@ export interface paths {
1649
1493
  cookie?: never;
1650
1494
  };
1651
1495
  /**
1652
- * Get DeleteStrategyRequest (schema generation only)
1653
- * @description Internal endpoint used only to ensure DeleteStrategyRequest schema is generated in OpenAPI spec
1496
+ * Get DeleteStateRequest (schema generation only)
1497
+ * @description Internal endpoint used only to ensure DeleteStateRequest schema is generated in OpenAPI spec
1654
1498
  */
1655
1499
  get: {
1656
1500
  parameters: {
@@ -1667,7 +1511,7 @@ export interface paths {
1667
1511
  [name: string]: unknown;
1668
1512
  };
1669
1513
  content: {
1670
- "application/json": components["schemas"]["api.DeleteStrategyRequest"];
1514
+ "application/json": components["schemas"]["api.DeleteStateRequest"];
1671
1515
  };
1672
1516
  };
1673
1517
  };
@@ -1680,7 +1524,7 @@ export interface paths {
1680
1524
  patch?: never;
1681
1525
  trace?: never;
1682
1526
  };
1683
- "/internal/deletestrategyresponse": {
1527
+ "/internal/deletestateresponse": {
1684
1528
  parameters: {
1685
1529
  query?: never;
1686
1530
  header?: never;
@@ -1688,8 +1532,8 @@ export interface paths {
1688
1532
  cookie?: never;
1689
1533
  };
1690
1534
  /**
1691
- * Get DeleteStrategyResponse (schema generation only)
1692
- * @description Internal endpoint used only to ensure DeleteStrategyResponse schema is generated in OpenAPI spec
1535
+ * Get DeleteStateResponse (schema generation only)
1536
+ * @description Internal endpoint used only to ensure DeleteStateResponse schema is generated in OpenAPI spec
1693
1537
  */
1694
1538
  get: {
1695
1539
  parameters: {
@@ -1706,7 +1550,7 @@ export interface paths {
1706
1550
  [name: string]: unknown;
1707
1551
  };
1708
1552
  content: {
1709
- "application/json": components["schemas"]["api.DeleteStrategyResponse"];
1553
+ "application/json": components["schemas"]["api.DeleteStateResponse"];
1710
1554
  };
1711
1555
  };
1712
1556
  };
@@ -1719,7 +1563,7 @@ export interface paths {
1719
1563
  patch?: never;
1720
1564
  trace?: never;
1721
1565
  };
1722
- "/internal/deletestrategysuccessresponse": {
1566
+ "/internal/deletestatesuccessresponse": {
1723
1567
  parameters: {
1724
1568
  query?: never;
1725
1569
  header?: never;
@@ -1727,8 +1571,8 @@ export interface paths {
1727
1571
  cookie?: never;
1728
1572
  };
1729
1573
  /**
1730
- * Get DeleteStrategySuccessResponse (schema generation only)
1731
- * @description Internal endpoint used only to ensure DeleteStrategySuccessResponse schema is generated in OpenAPI spec
1574
+ * Get DeleteStateSuccessResponse (schema generation only)
1575
+ * @description Internal endpoint used only to ensure DeleteStateSuccessResponse schema is generated in OpenAPI spec
1732
1576
  */
1733
1577
  get: {
1734
1578
  parameters: {
@@ -1745,7 +1589,7 @@ export interface paths {
1745
1589
  [name: string]: unknown;
1746
1590
  };
1747
1591
  content: {
1748
- "application/json": components["schemas"]["api.DeleteStrategySuccessResponse"];
1592
+ "application/json": components["schemas"]["api.DeleteStateSuccessResponse"];
1749
1593
  };
1750
1594
  };
1751
1595
  };
@@ -4566,7 +4410,7 @@ export interface paths {
4566
4410
  patch?: never;
4567
4411
  trace?: never;
4568
4412
  };
4569
- "/internal/getstrategieserrorresponse": {
4413
+ "/internal/getstateserrorresponse": {
4570
4414
  parameters: {
4571
4415
  query?: never;
4572
4416
  header?: never;
@@ -4574,8 +4418,8 @@ export interface paths {
4574
4418
  cookie?: never;
4575
4419
  };
4576
4420
  /**
4577
- * Get GetStrategiesErrorResponse (schema generation only)
4578
- * @description Internal endpoint used only to ensure GetStrategiesErrorResponse schema is generated in OpenAPI spec
4421
+ * Get GetStatesErrorResponse (schema generation only)
4422
+ * @description Internal endpoint used only to ensure GetStatesErrorResponse schema is generated in OpenAPI spec
4579
4423
  */
4580
4424
  get: {
4581
4425
  parameters: {
@@ -4592,7 +4436,7 @@ export interface paths {
4592
4436
  [name: string]: unknown;
4593
4437
  };
4594
4438
  content: {
4595
- "application/json": components["schemas"]["api.GetStrategiesErrorResponse"];
4439
+ "application/json": components["schemas"]["api.GetStatesErrorResponse"];
4596
4440
  };
4597
4441
  };
4598
4442
  };
@@ -4605,7 +4449,7 @@ export interface paths {
4605
4449
  patch?: never;
4606
4450
  trace?: never;
4607
4451
  };
4608
- "/internal/getstrategiesrequest": {
4452
+ "/internal/getstatesrequest": {
4609
4453
  parameters: {
4610
4454
  query?: never;
4611
4455
  header?: never;
@@ -4613,8 +4457,8 @@ export interface paths {
4613
4457
  cookie?: never;
4614
4458
  };
4615
4459
  /**
4616
- * Get GetStrategiesRequest (schema generation only)
4617
- * @description Internal endpoint used only to ensure GetStrategiesRequest schema is generated in OpenAPI spec
4460
+ * Get GetStatesRequest (schema generation only)
4461
+ * @description Internal endpoint used only to ensure GetStatesRequest schema is generated in OpenAPI spec
4618
4462
  */
4619
4463
  get: {
4620
4464
  parameters: {
@@ -4631,7 +4475,7 @@ export interface paths {
4631
4475
  [name: string]: unknown;
4632
4476
  };
4633
4477
  content: {
4634
- "application/json": components["schemas"]["api.GetStrategiesRequest"];
4478
+ "application/json": components["schemas"]["api.GetStatesRequest"];
4635
4479
  };
4636
4480
  };
4637
4481
  };
@@ -4644,7 +4488,7 @@ export interface paths {
4644
4488
  patch?: never;
4645
4489
  trace?: never;
4646
4490
  };
4647
- "/internal/getstrategiesresponse": {
4491
+ "/internal/getstatesresponse": {
4648
4492
  parameters: {
4649
4493
  query?: never;
4650
4494
  header?: never;
@@ -4652,8 +4496,8 @@ export interface paths {
4652
4496
  cookie?: never;
4653
4497
  };
4654
4498
  /**
4655
- * Get GetStrategiesResponse (schema generation only)
4656
- * @description Internal endpoint used only to ensure GetStrategiesResponse schema is generated in OpenAPI spec
4499
+ * Get GetStatesResponse (schema generation only)
4500
+ * @description Internal endpoint used only to ensure GetStatesResponse schema is generated in OpenAPI spec
4657
4501
  */
4658
4502
  get: {
4659
4503
  parameters: {
@@ -4670,7 +4514,7 @@ export interface paths {
4670
4514
  [name: string]: unknown;
4671
4515
  };
4672
4516
  content: {
4673
- "application/json": components["schemas"]["api.GetStrategiesResponse"];
4517
+ "application/json": components["schemas"]["api.GetStatesResponse"];
4674
4518
  };
4675
4519
  };
4676
4520
  };
@@ -4683,7 +4527,7 @@ export interface paths {
4683
4527
  patch?: never;
4684
4528
  trace?: never;
4685
4529
  };
4686
- "/internal/getstrategiessuccessresponse": {
4530
+ "/internal/getstatessuccessresponse": {
4687
4531
  parameters: {
4688
4532
  query?: never;
4689
4533
  header?: never;
@@ -4691,8 +4535,8 @@ export interface paths {
4691
4535
  cookie?: never;
4692
4536
  };
4693
4537
  /**
4694
- * Get GetStrategiesSuccessResponse (schema generation only)
4695
- * @description Internal endpoint used only to ensure GetStrategiesSuccessResponse schema is generated in OpenAPI spec
4538
+ * Get GetStatesSuccessResponse (schema generation only)
4539
+ * @description Internal endpoint used only to ensure GetStatesSuccessResponse schema is generated in OpenAPI spec
4696
4540
  */
4697
4541
  get: {
4698
4542
  parameters: {
@@ -4709,7 +4553,7 @@ export interface paths {
4709
4553
  [name: string]: unknown;
4710
4554
  };
4711
4555
  content: {
4712
- "application/json": components["schemas"]["api.GetStrategiesSuccessResponse"];
4556
+ "application/json": components["schemas"]["api.GetStatesSuccessResponse"];
4713
4557
  };
4714
4558
  };
4715
4559
  };
@@ -7920,7 +7764,7 @@ export interface paths {
7920
7764
  patch?: never;
7921
7765
  trace?: never;
7922
7766
  };
7923
- "/internal/storage": {
7767
+ "/internal/state": {
7924
7768
  parameters: {
7925
7769
  query?: never;
7926
7770
  header?: never;
@@ -7928,8 +7772,8 @@ export interface paths {
7928
7772
  cookie?: never;
7929
7773
  };
7930
7774
  /**
7931
- * Get Storage (schema generation only)
7932
- * @description Internal endpoint used only to ensure Storage schema is generated in OpenAPI spec
7775
+ * Get State (schema generation only)
7776
+ * @description Internal endpoint used only to ensure State schema is generated in OpenAPI spec
7933
7777
  */
7934
7778
  get: {
7935
7779
  parameters: {
@@ -7946,7 +7790,7 @@ export interface paths {
7946
7790
  [name: string]: unknown;
7947
7791
  };
7948
7792
  content: {
7949
- "application/json": components["schemas"]["models.Storage"];
7793
+ "application/json": components["schemas"]["models.State"];
7950
7794
  };
7951
7795
  };
7952
7796
  };
@@ -7959,7 +7803,7 @@ export interface paths {
7959
7803
  patch?: never;
7960
7804
  trace?: never;
7961
7805
  };
7962
- "/internal/strategy": {
7806
+ "/internal/stateatruntimemetadata": {
7963
7807
  parameters: {
7964
7808
  query?: never;
7965
7809
  header?: never;
@@ -7967,8 +7811,8 @@ export interface paths {
7967
7811
  cookie?: never;
7968
7812
  };
7969
7813
  /**
7970
- * Get Strategy (schema generation only)
7971
- * @description Internal endpoint used only to ensure Strategy schema is generated in OpenAPI spec
7814
+ * Get StateAtRuntimeMetadata (schema generation only)
7815
+ * @description Internal endpoint used only to ensure StateAtRuntimeMetadata schema is generated in OpenAPI spec
7972
7816
  */
7973
7817
  get: {
7974
7818
  parameters: {
@@ -7985,7 +7829,7 @@ export interface paths {
7985
7829
  [name: string]: unknown;
7986
7830
  };
7987
7831
  content: {
7988
- "application/json": components["schemas"]["models.Strategy"];
7832
+ "application/json": components["schemas"]["models.StateAtRuntimeMetadata"];
7989
7833
  };
7990
7834
  };
7991
7835
  };
@@ -7998,7 +7842,7 @@ export interface paths {
7998
7842
  patch?: never;
7999
7843
  trace?: never;
8000
7844
  };
8001
- "/internal/strategyatruntimemetadata": {
7845
+ "/internal/statemetadata": {
8002
7846
  parameters: {
8003
7847
  query?: never;
8004
7848
  header?: never;
@@ -8006,8 +7850,8 @@ export interface paths {
8006
7850
  cookie?: never;
8007
7851
  };
8008
7852
  /**
8009
- * Get StrategyAtRuntimeMetadata (schema generation only)
8010
- * @description Internal endpoint used only to ensure StrategyAtRuntimeMetadata schema is generated in OpenAPI spec
7853
+ * Get StateMetadata (schema generation only)
7854
+ * @description Internal endpoint used only to ensure StateMetadata schema is generated in OpenAPI spec
8011
7855
  */
8012
7856
  get: {
8013
7857
  parameters: {
@@ -8024,7 +7868,7 @@ export interface paths {
8024
7868
  [name: string]: unknown;
8025
7869
  };
8026
7870
  content: {
8027
- "application/json": components["schemas"]["models.StrategyAtRuntimeMetadata"];
7871
+ "application/json": components["schemas"]["models.StateMetadata"];
8028
7872
  };
8029
7873
  };
8030
7874
  };
@@ -8037,7 +7881,7 @@ export interface paths {
8037
7881
  patch?: never;
8038
7882
  trace?: never;
8039
7883
  };
8040
- "/internal/strategymetadata": {
7884
+ "/internal/storage": {
8041
7885
  parameters: {
8042
7886
  query?: never;
8043
7887
  header?: never;
@@ -8045,8 +7889,8 @@ export interface paths {
8045
7889
  cookie?: never;
8046
7890
  };
8047
7891
  /**
8048
- * Get StrategyMetadata (schema generation only)
8049
- * @description Internal endpoint used only to ensure StrategyMetadata schema is generated in OpenAPI spec
7892
+ * Get Storage (schema generation only)
7893
+ * @description Internal endpoint used only to ensure Storage schema is generated in OpenAPI spec
8050
7894
  */
8051
7895
  get: {
8052
7896
  parameters: {
@@ -8063,7 +7907,7 @@ export interface paths {
8063
7907
  [name: string]: unknown;
8064
7908
  };
8065
7909
  content: {
8066
- "application/json": components["schemas"]["models.StrategyMetadata"];
7910
+ "application/json": components["schemas"]["models.Storage"];
8067
7911
  };
8068
7912
  };
8069
7913
  };
@@ -8505,6 +8349,45 @@ export interface paths {
8505
8349
  patch?: never;
8506
8350
  trace?: never;
8507
8351
  };
8352
+ "/internal/timeschedule": {
8353
+ parameters: {
8354
+ query?: never;
8355
+ header?: never;
8356
+ path?: never;
8357
+ cookie?: never;
8358
+ };
8359
+ /**
8360
+ * Get TimeSchedule (schema generation only)
8361
+ * @description Internal endpoint used only to ensure TimeSchedule schema is generated in OpenAPI spec
8362
+ */
8363
+ get: {
8364
+ parameters: {
8365
+ query?: never;
8366
+ header?: never;
8367
+ path?: never;
8368
+ cookie?: never;
8369
+ };
8370
+ requestBody?: never;
8371
+ responses: {
8372
+ /** @description OK */
8373
+ 200: {
8374
+ headers: {
8375
+ [name: string]: unknown;
8376
+ };
8377
+ content: {
8378
+ "application/json": components["schemas"]["models.TimeSchedule"];
8379
+ };
8380
+ };
8381
+ };
8382
+ };
8383
+ put?: never;
8384
+ post?: never;
8385
+ delete?: never;
8386
+ options?: never;
8387
+ head?: never;
8388
+ patch?: never;
8389
+ trace?: never;
8390
+ };
8508
8391
  "/internal/timewindow": {
8509
8392
  parameters: {
8510
8393
  query?: never;
@@ -8934,7 +8817,7 @@ export interface paths {
8934
8817
  patch?: never;
8935
8818
  trace?: never;
8936
8819
  };
8937
- "/internal/updatestrategyerrorresponse": {
8820
+ "/internal/upsertstateerrorresponse": {
8938
8821
  parameters: {
8939
8822
  query?: never;
8940
8823
  header?: never;
@@ -8942,8 +8825,8 @@ export interface paths {
8942
8825
  cookie?: never;
8943
8826
  };
8944
8827
  /**
8945
- * Get UpdateStrategyErrorResponse (schema generation only)
8946
- * @description Internal endpoint used only to ensure UpdateStrategyErrorResponse schema is generated in OpenAPI spec
8828
+ * Get UpsertStateErrorResponse (schema generation only)
8829
+ * @description Internal endpoint used only to ensure UpsertStateErrorResponse schema is generated in OpenAPI spec
8947
8830
  */
8948
8831
  get: {
8949
8832
  parameters: {
@@ -8960,7 +8843,7 @@ export interface paths {
8960
8843
  [name: string]: unknown;
8961
8844
  };
8962
8845
  content: {
8963
- "application/json": components["schemas"]["api.UpdateStrategyErrorResponse"];
8846
+ "application/json": components["schemas"]["api.UpsertStateErrorResponse"];
8964
8847
  };
8965
8848
  };
8966
8849
  };
@@ -8973,7 +8856,7 @@ export interface paths {
8973
8856
  patch?: never;
8974
8857
  trace?: never;
8975
8858
  };
8976
- "/internal/updatestrategyrequest": {
8859
+ "/internal/upsertstaterequest": {
8977
8860
  parameters: {
8978
8861
  query?: never;
8979
8862
  header?: never;
@@ -8981,8 +8864,8 @@ export interface paths {
8981
8864
  cookie?: never;
8982
8865
  };
8983
8866
  /**
8984
- * Get UpdateStrategyRequest (schema generation only)
8985
- * @description Internal endpoint used only to ensure UpdateStrategyRequest schema is generated in OpenAPI spec
8867
+ * Get UpsertStateRequest (schema generation only)
8868
+ * @description Internal endpoint used only to ensure UpsertStateRequest schema is generated in OpenAPI spec
8986
8869
  */
8987
8870
  get: {
8988
8871
  parameters: {
@@ -8999,7 +8882,7 @@ export interface paths {
8999
8882
  [name: string]: unknown;
9000
8883
  };
9001
8884
  content: {
9002
- "application/json": components["schemas"]["api.UpdateStrategyRequest"];
8885
+ "application/json": components["schemas"]["api.UpsertStateRequest"];
9003
8886
  };
9004
8887
  };
9005
8888
  };
@@ -9012,7 +8895,7 @@ export interface paths {
9012
8895
  patch?: never;
9013
8896
  trace?: never;
9014
8897
  };
9015
- "/internal/updatestrategyresponse": {
8898
+ "/internal/upsertstateresponse": {
9016
8899
  parameters: {
9017
8900
  query?: never;
9018
8901
  header?: never;
@@ -9020,8 +8903,8 @@ export interface paths {
9020
8903
  cookie?: never;
9021
8904
  };
9022
8905
  /**
9023
- * Get UpdateStrategyResponse (schema generation only)
9024
- * @description Internal endpoint used only to ensure UpdateStrategyResponse schema is generated in OpenAPI spec
8906
+ * Get UpsertStateResponse (schema generation only)
8907
+ * @description Internal endpoint used only to ensure UpsertStateResponse schema is generated in OpenAPI spec
9025
8908
  */
9026
8909
  get: {
9027
8910
  parameters: {
@@ -9038,7 +8921,7 @@ export interface paths {
9038
8921
  [name: string]: unknown;
9039
8922
  };
9040
8923
  content: {
9041
- "application/json": components["schemas"]["api.UpdateStrategyResponse"];
8924
+ "application/json": components["schemas"]["api.UpsertStateResponse"];
9042
8925
  };
9043
8926
  };
9044
8927
  };
@@ -9051,7 +8934,7 @@ export interface paths {
9051
8934
  patch?: never;
9052
8935
  trace?: never;
9053
8936
  };
9054
- "/internal/updatestrategysuccessresponse": {
8937
+ "/internal/upsertstatesuccessresponse": {
9055
8938
  parameters: {
9056
8939
  query?: never;
9057
8940
  header?: never;
@@ -9059,8 +8942,8 @@ export interface paths {
9059
8942
  cookie?: never;
9060
8943
  };
9061
8944
  /**
9062
- * Get UpdateStrategySuccessResponse (schema generation only)
9063
- * @description Internal endpoint used only to ensure UpdateStrategySuccessResponse schema is generated in OpenAPI spec
8945
+ * Get UpsertStateSuccessResponse (schema generation only)
8946
+ * @description Internal endpoint used only to ensure UpsertStateSuccessResponse schema is generated in OpenAPI spec
9064
8947
  */
9065
8948
  get: {
9066
8949
  parameters: {
@@ -9077,7 +8960,7 @@ export interface paths {
9077
8960
  [name: string]: unknown;
9078
8961
  };
9079
8962
  content: {
9080
- "application/json": components["schemas"]["api.UpdateStrategySuccessResponse"];
8963
+ "application/json": components["schemas"]["api.UpsertStateSuccessResponse"];
9081
8964
  };
9082
8965
  };
9083
8966
  };
@@ -9494,37 +9377,6 @@ export interface components {
9494
9377
  /** @description Additional metadata about the response, such as timestamps and request IDs */
9495
9378
  metadata?: components["schemas"]["api.Metadata"];
9496
9379
  };
9497
- "api.AddStrategyErrorResponse": {
9498
- /** @description Application-specific error code */
9499
- applicationStatusCode?: string;
9500
- /** @description Entity-specific error code */
9501
- entityStatusCode?: string;
9502
- /** @description HTTP status code for the error */
9503
- httpStatusCode?: number;
9504
- /** @description Error message describing the issue */
9505
- message?: string;
9506
- /** @description Additional metadata about the error, such as timestamps and request IDs */
9507
- metadata?: components["schemas"]["api.Metadata"];
9508
- };
9509
- "api.AddStrategyRequest": {
9510
- strategy: components["schemas"]["models.Strategy"];
9511
- };
9512
- "api.AddStrategyResponse": {
9513
- strategy?: components["schemas"]["models.Strategy"];
9514
- };
9515
- "api.AddStrategySuccessResponse": {
9516
- /** @description Application-specific status code */
9517
- applicationStatusCode?: string;
9518
- data?: components["schemas"]["api.AddStrategyResponse"];
9519
- /** @description Entity-specific status code */
9520
- entityStatusCode?: string;
9521
- /** @description HTTP status code for the response */
9522
- httpStatusCode?: number;
9523
- /** @description Success message describing the operation */
9524
- message?: string;
9525
- /** @description Additional metadata about the response, such as timestamps and request IDs */
9526
- metadata?: components["schemas"]["api.Metadata"];
9527
- };
9528
9380
  /** @enum {string} */
9529
9381
  "api.AnalysisStatus": "analysis_face_redaction_binding_failed" | "analysis_save_redaction_success" | "analysis_save_redaction_failed" | "analysis_submit_redaction_success" | "analysis_submit_redaction_failed" | "analysis_file_name_missing" | "analysis_signed_url_missing" | "analysis_all_frame_coordinates_missing" | "analysis_not_found" | "analysis_found" | "analysisId_missing" | "analysis_started" | "analysis_queue_subscribed" | "analysis_stage_monitor_missing" | "analysis_completed" | "analysis_decode_failed" | "analysis_insert_failed" | "analysis_update_failed" | "analysis_notification_update_failed" | "analysis_sequence_update_failed" | "analysis_task_update_failed";
9530
9382
  "api.CallerInfo": {
@@ -9584,7 +9436,7 @@ export interface components {
9584
9436
  /** @description Additional metadata about the response, such as timestamps and request IDs */
9585
9437
  metadata?: components["schemas"]["api.Metadata"];
9586
9438
  };
9587
- "api.DeleteStrategyErrorResponse": {
9439
+ "api.DeleteStateErrorResponse": {
9588
9440
  /** @description Application-specific error code */
9589
9441
  applicationStatusCode?: string;
9590
9442
  /** @description Entity-specific error code */
@@ -9596,12 +9448,12 @@ export interface components {
9596
9448
  /** @description Additional metadata about the error, such as timestamps and request IDs */
9597
9449
  metadata?: components["schemas"]["api.Metadata"];
9598
9450
  };
9599
- "api.DeleteStrategyRequest": Record<string, never>;
9600
- "api.DeleteStrategyResponse": Record<string, never>;
9601
- "api.DeleteStrategySuccessResponse": {
9451
+ "api.DeleteStateRequest": Record<string, never>;
9452
+ "api.DeleteStateResponse": Record<string, never>;
9453
+ "api.DeleteStateSuccessResponse": {
9602
9454
  /** @description Application-specific status code */
9603
9455
  applicationStatusCode?: string;
9604
- data?: components["schemas"]["api.DeleteStrategyResponse"];
9456
+ data?: components["schemas"]["api.DeleteStateResponse"];
9605
9457
  /** @description Entity-specific status code */
9606
9458
  entityStatusCode?: string;
9607
9459
  /** @description HTTP status code for the response */
@@ -10080,7 +9932,7 @@ export interface components {
10080
9932
  /** @description Additional metadata about the response, such as timestamps and request IDs */
10081
9933
  metadata?: components["schemas"]["api.Metadata"];
10082
9934
  };
10083
- "api.GetStrategiesErrorResponse": {
9935
+ "api.GetStatesErrorResponse": {
10084
9936
  /** @description Application-specific error code */
10085
9937
  applicationStatusCode?: string;
10086
9938
  /** @description Entity-specific error code */
@@ -10092,14 +9944,14 @@ export interface components {
10092
9944
  /** @description Additional metadata about the error, such as timestamps and request IDs */
10093
9945
  metadata?: components["schemas"]["api.Metadata"];
10094
9946
  };
10095
- "api.GetStrategiesRequest": Record<string, never>;
10096
- "api.GetStrategiesResponse": {
10097
- strategies?: components["schemas"]["models.Strategy"][];
9947
+ "api.GetStatesRequest": Record<string, never>;
9948
+ "api.GetStatesResponse": {
9949
+ states?: components["schemas"]["models.State"][];
10098
9950
  };
10099
- "api.GetStrategiesSuccessResponse": {
9951
+ "api.GetStatesSuccessResponse": {
10100
9952
  /** @description Application-specific status code */
10101
9953
  applicationStatusCode?: string;
10102
- data?: components["schemas"]["api.GetStrategiesResponse"];
9954
+ data?: components["schemas"]["api.GetStatesResponse"];
10103
9955
  /** @description Entity-specific status code */
10104
9956
  entityStatusCode?: string;
10105
9957
  /** @description HTTP status code for the response */
@@ -10529,7 +10381,7 @@ export interface components {
10529
10381
  /** @description Additional metadata about the response, such as timestamps and request IDs */
10530
10382
  metadata?: components["schemas"]["api.Metadata"];
10531
10383
  };
10532
- "api.UpdateStrategyErrorResponse": {
10384
+ "api.UpsertStateErrorResponse": {
10533
10385
  /** @description Application-specific error code */
10534
10386
  applicationStatusCode?: string;
10535
10387
  /** @description Entity-specific error code */
@@ -10541,16 +10393,16 @@ export interface components {
10541
10393
  /** @description Additional metadata about the error, such as timestamps and request IDs */
10542
10394
  metadata?: components["schemas"]["api.Metadata"];
10543
10395
  };
10544
- "api.UpdateStrategyRequest": {
10545
- strategy: components["schemas"]["models.Strategy"];
10396
+ "api.UpsertStateRequest": {
10397
+ state: components["schemas"]["models.State"];
10546
10398
  };
10547
- "api.UpdateStrategyResponse": {
10548
- strategy?: components["schemas"]["models.Strategy"];
10399
+ "api.UpsertStateResponse": {
10400
+ state?: components["schemas"]["models.State"];
10549
10401
  };
10550
- "api.UpdateStrategySuccessResponse": {
10402
+ "api.UpsertStateSuccessResponse": {
10551
10403
  /** @description Application-specific status code */
10552
10404
  applicationStatusCode?: string;
10553
- data?: components["schemas"]["api.UpdateStrategyResponse"];
10405
+ data?: components["schemas"]["api.UpsertStateResponse"];
10554
10406
  /** @description Entity-specific status code */
10555
10407
  entityStatusCode?: string;
10556
10408
  /** @description HTTP status code for the response */
@@ -11721,82 +11573,86 @@ export interface components {
11721
11573
  interval?: number;
11722
11574
  provider?: string;
11723
11575
  };
11724
- /** @enum {string} */
11725
- "models.Status": "pending" | "skipped" | "assigned" | "inProgress" | "completed" | "failed";
11726
- "models.Storage": {
11727
- access_key?: string;
11728
- secret_key?: string;
11729
- uri?: string;
11730
- };
11731
- "models.Strategy": {
11732
- /**
11733
- * @description Indicates if the strategy is currently active
11734
- * @example true
11735
- */
11736
- active?: boolean;
11576
+ "models.State": {
11737
11577
  /**
11738
11578
  * @description AtRuntimeMetadata contains metadata that is generated at runtime, which can include
11739
11579
  * more verbose information about the device's current state, capabilities, or configuration.
11740
11580
  * for example the linked sites details, etc.
11741
11581
  */
11742
- atRuntimeMetadata?: components["schemas"]["models.StrategyAtRuntimeMetadata"];
11582
+ atRuntimeMetadata?: components["schemas"]["models.StateAtRuntimeMetadata"];
11743
11583
  /** @description Audit information */
11744
11584
  audit?: components["schemas"]["models.Audit"];
11745
11585
  /**
11746
- * @description Description of the marker
11586
+ * @description Description of the status
11747
11587
  * @example Person forcably opened a door
11748
11588
  */
11749
11589
  description?: string;
11750
11590
  /**
11751
- * @description RBAC information
11752
- * @example 686a906345c1df594939f9j25f4
11591
+ * @description Timing information (all timestamps are in seconds)
11592
+ * @example active
11753
11593
  */
11754
- deviceId?: string;
11594
+ desiredState?: components["schemas"]["models.StateEnum"];
11755
11595
  /**
11756
- * @description Duration of the strategy in seconds
11757
- * @example 11
11596
+ * @description Timestamp when the desired state should stop being applied
11597
+ * @example 1784018068
11758
11598
  */
11759
- duration?: number;
11599
+ desiredStateEndTimestamp?: number;
11760
11600
  /**
11761
- * @description End timestamp of the marker in seconds since epoch
11762
- * @example 1752482079
11601
+ * @description Timestamp when the desired state should start being applied
11602
+ * @example 1752482068
11763
11603
  */
11764
- endTimestamp?: number;
11604
+ desiredStateStartTimestamp?: number;
11765
11605
  /**
11766
- * @description GroupId is used to identify the group of markers
11767
- * @example 686a906345c1df594pmt41w4
11606
+ * @description Resource identification, to which this state applies
11607
+ * @example 686a906345c1df594939f9j25f4
11768
11608
  */
11769
- groupId?: string;
11609
+ deviceId?: string;
11770
11610
  /**
11771
- * @description Unique identifier for the strategy
11772
- * @example strategy-123
11611
+ * @description List of device IDs associated with the state
11612
+ * @example [
11613
+ * "[\"686a906345c1df594939f9j25f4\"",
11614
+ * "\"686a906345c1df594939f9j25f5\"]"
11615
+ * ]
11773
11616
  */
11617
+ devices?: string[];
11618
+ /**
11619
+ * @description GroupId is used to identify the group for which the state is relevant
11620
+ * @example 686a906345c1df594pmt41w4
11621
+ */
11622
+ groupId?: string;
11623
+ /** @description Unique identifier for the state */
11774
11624
  id?: string;
11775
11625
  /** @description Additional metadata */
11776
- metadata?: components["schemas"]["models.StrategyMetadata"];
11626
+ metadata?: components["schemas"]["models.StateMetadata"];
11777
11627
  /**
11778
- * @description Name of the strategy
11779
- * @example Default Strategy
11628
+ * @description Name of the state
11629
+ * @example Default State
11780
11630
  */
11781
11631
  name?: string;
11782
11632
  /**
11783
- * @description OrganisationId is used to identify the organisation that owns the marker, retrieved from the user's access token
11633
+ * @description OrganisationId is used to identify the organisation that owns the state.
11784
11634
  * @example 686a906345c1df594pad69f0
11785
11635
  */
11786
11636
  organisationId?: string;
11787
11637
  /**
11788
- * @description SiteId is used to identify the site where the marker is located
11638
+ * @description SiteId is used to identify the site for which the state is relevant
11789
11639
  * @example 686a906345c1df594pcsr3r45
11790
11640
  */
11791
11641
  siteId?: string;
11792
- /**
11793
- * @description Timing information (all timestamps are in seconds)
11794
- * @example 1752482068
11795
- */
11796
- startTimestamp?: number;
11642
+ /** @description Conditions for the state to be applied */
11643
+ timeSchedule?: components["schemas"]["models.TimeSchedule"];
11644
+ };
11645
+ "models.StateAtRuntimeMetadata": Record<string, never>;
11646
+ /** @enum {string} */
11647
+ "models.StateEnum": "default" | "debug" | "paused" | "no_recording" | "no_live_view";
11648
+ "models.StateMetadata": Record<string, never>;
11649
+ /** @enum {string} */
11650
+ "models.Status": "pending" | "skipped" | "assigned" | "inProgress" | "completed" | "failed";
11651
+ "models.Storage": {
11652
+ access_key?: string;
11653
+ secret_key?: string;
11654
+ uri?: string;
11797
11655
  };
11798
- "models.StrategyAtRuntimeMetadata": Record<string, never>;
11799
- "models.StrategyMetadata": Record<string, never>;
11800
11656
  "models.Subscription": {
11801
11657
  ends_at?: string;
11802
11658
  id?: string;
@@ -11846,6 +11702,59 @@ export interface components {
11846
11702
  end?: number;
11847
11703
  start?: number;
11848
11704
  };
11705
+ "models.TimeSchedule": {
11706
+ /**
11707
+ * @description Cron expression (minute, hour, day of month, month, day of week)
11708
+ * @example 0 9 * * 1-5
11709
+ */
11710
+ cron?: string;
11711
+ /**
11712
+ * @description Days of week (0=Sunday, 1=Monday, ..., 6=Saturday) - alternative to cron
11713
+ * @example [
11714
+ * 1,
11715
+ * 2,
11716
+ * 3,
11717
+ * 4,
11718
+ * 5
11719
+ * ]
11720
+ */
11721
+ daysOfWeek?: number[];
11722
+ /**
11723
+ * @description Duration in seconds for how long the state remains active after trigger
11724
+ * @example 28800
11725
+ */
11726
+ duration?: number;
11727
+ /**
11728
+ * @description Whether the time schedule is enabled
11729
+ * @example true
11730
+ */
11731
+ enabled?: boolean;
11732
+ /**
11733
+ * @description Optional end date (epoch seconds) until when the schedule is valid
11734
+ * @example 1784018068
11735
+ */
11736
+ endDate?: number;
11737
+ /**
11738
+ * @description End time in HH:MM format - alternative to cron
11739
+ * @example 17:00
11740
+ */
11741
+ endTime?: string;
11742
+ /**
11743
+ * @description Optional start date (epoch seconds) from when the schedule is valid
11744
+ * @example 1752482068
11745
+ */
11746
+ startDate?: number;
11747
+ /**
11748
+ * @description Start time in HH:MM format - alternative to cron
11749
+ * @example 09:00
11750
+ */
11751
+ startTime?: string;
11752
+ /**
11753
+ * @description Timezone for the schedule (IANA format)
11754
+ * @example Europe/Amsterdam
11755
+ */
11756
+ timezone?: string;
11757
+ };
11849
11758
  "models.TimeWindow": {
11850
11759
  timeRange1MaxFriday?: number;
11851
11760
  timeRange1MaxMonday?: number;
@@ -12065,8 +11974,8 @@ export declare namespace models {
12065
11974
  type SiteMetadata = components['schemas']['models.SiteMetadata'];
12066
11975
  type SiteOption = components['schemas']['models.SiteOption'];
12067
11976
  type Sprite = components['schemas']['models.Sprite'];
11977
+ type State = components['schemas']['models.State'];
12068
11978
  type Storage = components['schemas']['models.Storage'];
12069
- type Strategy = components['schemas']['models.Strategy'];
12070
11979
  type Subscription = components['schemas']['models.Subscription'];
12071
11980
  type Synchronize = components['schemas']['models.Synchronize'];
12072
11981
  type SynchronizeEvent = components['schemas']['models.SynchronizeEvent'];
@@ -12074,6 +11983,7 @@ export declare namespace models {
12074
11983
  type Thumbnail = components['schemas']['models.Thumbnail'];
12075
11984
  type Thumby = components['schemas']['models.Thumby'];
12076
11985
  type TimeRange = components['schemas']['models.TimeRange'];
11986
+ type TimeSchedule = components['schemas']['models.TimeSchedule'];
12077
11987
  type TimeWindow = components['schemas']['models.TimeWindow'];
12078
11988
  type TrackBox = components['schemas']['models.TrackBox'];
12079
11989
  type User = components['schemas']['models.User'];
@@ -12091,17 +12001,13 @@ export declare namespace api {
12091
12001
  type AddMarkerRequest = components['schemas']['api.AddMarkerRequest'];
12092
12002
  type AddMarkerResponse = components['schemas']['api.AddMarkerResponse'];
12093
12003
  type AddMarkerSuccessResponse = components['schemas']['api.AddMarkerSuccessResponse'];
12094
- type AddStrategyErrorResponse = components['schemas']['api.AddStrategyErrorResponse'];
12095
- type AddStrategyRequest = components['schemas']['api.AddStrategyRequest'];
12096
- type AddStrategyResponse = components['schemas']['api.AddStrategyResponse'];
12097
- type AddStrategySuccessResponse = components['schemas']['api.AddStrategySuccessResponse'];
12098
12004
  type CallerInfo = components['schemas']['api.CallerInfo'];
12099
12005
  type CursorPagination = components['schemas']['api.CursorPagination'];
12100
12006
  type DebugResponse = components['schemas']['api.DebugResponse'];
12101
12007
  type DeleteAccessTokenErrorResponse = components['schemas']['api.DeleteAccessTokenErrorResponse'];
12102
12008
  type DeleteAccessTokenSuccessResponse = components['schemas']['api.DeleteAccessTokenSuccessResponse'];
12103
- type DeleteStrategyErrorResponse = components['schemas']['api.DeleteStrategyErrorResponse'];
12104
- type DeleteStrategySuccessResponse = components['schemas']['api.DeleteStrategySuccessResponse'];
12009
+ type DeleteStateErrorResponse = components['schemas']['api.DeleteStateErrorResponse'];
12010
+ type DeleteStateSuccessResponse = components['schemas']['api.DeleteStateSuccessResponse'];
12105
12011
  type DeviceFilter = components['schemas']['api.DeviceFilter'];
12106
12012
  type ErrorResponse = components['schemas']['api.ErrorResponse'];
12107
12013
  type FaceRedactionMessage = components['schemas']['api.FaceRedactionMessage'];
@@ -12157,9 +12063,9 @@ export declare namespace api {
12157
12063
  type GetSiteOptionsRequest = components['schemas']['api.GetSiteOptionsRequest'];
12158
12064
  type GetSiteOptionsResponse = components['schemas']['api.GetSiteOptionsResponse'];
12159
12065
  type GetSiteOptionsSuccessResponse = components['schemas']['api.GetSiteOptionsSuccessResponse'];
12160
- type GetStrategiesErrorResponse = components['schemas']['api.GetStrategiesErrorResponse'];
12161
- type GetStrategiesResponse = components['schemas']['api.GetStrategiesResponse'];
12162
- type GetStrategiesSuccessResponse = components['schemas']['api.GetStrategiesSuccessResponse'];
12066
+ type GetStatesErrorResponse = components['schemas']['api.GetStatesErrorResponse'];
12067
+ type GetStatesResponse = components['schemas']['api.GetStatesResponse'];
12068
+ type GetStatesSuccessResponse = components['schemas']['api.GetStatesSuccessResponse'];
12163
12069
  type GetTimelineErrorResponse = components['schemas']['api.GetTimelineErrorResponse'];
12164
12070
  type GetTimelineEventsErrorResponse = components['schemas']['api.GetTimelineEventsErrorResponse'];
12165
12071
  type GetTimelineEventsRequest = components['schemas']['api.GetTimelineEventsRequest'];
@@ -12209,10 +12115,10 @@ export declare namespace api {
12209
12115
  type UpdateMediaRequest = components['schemas']['api.UpdateMediaRequest'];
12210
12116
  type UpdateMediaResponse = components['schemas']['api.UpdateMediaResponse'];
12211
12117
  type UpdateMediaSuccessResponse = components['schemas']['api.UpdateMediaSuccessResponse'];
12212
- type UpdateStrategyErrorResponse = components['schemas']['api.UpdateStrategyErrorResponse'];
12213
- type UpdateStrategyRequest = components['schemas']['api.UpdateStrategyRequest'];
12214
- type UpdateStrategyResponse = components['schemas']['api.UpdateStrategyResponse'];
12215
- type UpdateStrategySuccessResponse = components['schemas']['api.UpdateStrategySuccessResponse'];
12118
+ type UpsertStateErrorResponse = components['schemas']['api.UpsertStateErrorResponse'];
12119
+ type UpsertStateRequest = components['schemas']['api.UpsertStateRequest'];
12120
+ type UpsertStateResponse = components['schemas']['api.UpsertStateResponse'];
12121
+ type UpsertStateSuccessResponse = components['schemas']['api.UpsertStateSuccessResponse'];
12216
12122
  type WarningResponse = components['schemas']['api.WarningResponse'];
12217
12123
  type mediaMetadataPatch = components['schemas']['api.mediaMetadataPatch'];
12218
12124
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uug-ai/models",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "TypeScript type definitions for Go models",
5
5
  "main": "dist/types.js",
6
6
  "types": "dist/types.d.ts",