@kinotic-ai/core 1.2.1 → 1.2.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.
package/dist/index.cjs CHANGED
@@ -79,7 +79,6 @@ __export(exports_src, {
79
79
  OffsetPageable: () => OffsetPageable,
80
80
  NullHandling: () => NullHandling,
81
81
  KinoticSingleton: () => KinoticSingleton,
82
- KinoticProjectConfig: () => KinoticProjectConfig,
83
82
  KinoticError: () => KinoticError,
84
83
  Kinotic: () => Kinotic,
85
84
  JsonEventFactory: () => JsonEventFactory,
@@ -994,7 +993,7 @@ var import_operators2 = require("rxjs/operators");
994
993
  // packages/core/package.json
995
994
  var package_default = {
996
995
  name: "@kinotic-ai/core",
997
- version: "1.2.1",
996
+ version: "1.2.2",
998
997
  type: "module",
999
998
  files: [
1000
999
  "dist"
@@ -1022,44 +1021,44 @@ var package_default = {
1022
1021
  },
1023
1022
  scripts: {
1024
1023
  "type-check": "tsc --noEmit",
1025
- test: "vitest run",
1024
+ test: "vitest run --mode development",
1026
1025
  coverage: "vitest run --coverage",
1027
1026
  "ui-test": "vitest --ui --coverage.enabled=true --mode development"
1028
1027
  },
1029
1028
  devDependencies: {
1030
- "@opentelemetry/exporter-trace-otlp-grpc": "^0.212.0",
1031
- "@opentelemetry/resources": "^2.5.1",
1032
- "@opentelemetry/sdk-metrics": "^2.5.1",
1033
- "@opentelemetry/sdk-node": "^0.212.0",
1034
- "@opentelemetry/sdk-trace-node": "^2.5.1",
1035
- "@types/node": "^25.3.2",
1029
+ "@opentelemetry/exporter-trace-otlp-grpc": "^0.214.0",
1030
+ "@opentelemetry/resources": "^2.6.1",
1031
+ "@opentelemetry/sdk-metrics": "^2.6.1",
1032
+ "@opentelemetry/sdk-node": "^0.214.0",
1033
+ "@opentelemetry/sdk-trace-node": "^2.6.1",
1034
+ "@types/node": "^25.6.0",
1036
1035
  "@types/uuid": "^11.0.0",
1037
1036
  "@types/ws": "^8.18.1",
1038
- "@vitest/coverage-v8": "^4.0.18",
1039
- "@vitest/runner": "^4.0.18",
1040
- "@vitest/ui": "^4.0.18",
1041
- allure: "^3.3.1",
1042
- "allure-vitest": "^3.5.0",
1043
- dotenv: "^17.3.1",
1044
- "properties-file": "^3.6.4",
1045
- testcontainers: "^11.12.0",
1037
+ "@vitest/coverage-v8": "^4.1.4",
1038
+ "@vitest/runner": "^4.1.4",
1039
+ "@vitest/ui": "^4.1.4",
1040
+ allure: "^3.4.1",
1041
+ "allure-vitest": "^3.7.1",
1042
+ dotenv: "^17.4.1",
1043
+ "properties-file": "^4.0.0",
1044
+ testcontainers: "^11.14.0",
1046
1045
  tslib: "^2.8.1",
1047
- typescript: "^5.9.3",
1048
- vitest: "^4.0.18",
1049
- ws: "^8.19.0"
1046
+ typescript: "^6.0.2",
1047
+ vitest: "^4.1.4",
1048
+ ws: "^8.20.0"
1050
1049
  },
1051
1050
  dependencies: {
1052
- "@opentelemetry/api": "^1.9.0",
1051
+ "@opentelemetry/api": "^1.9.1",
1053
1052
  "@opentelemetry/semantic-conventions": "^1.40.0",
1054
1053
  "@stomp/rx-stomp": "^2.3.0",
1055
1054
  "@stomp/stompjs": "^7.3.0",
1056
- "@types/debug": "^4.1.12",
1055
+ "@types/debug": "^4.1.13",
1057
1056
  debug: "^4.4.3",
1058
1057
  "p-tap": "^4.0.0",
1059
1058
  "reflect-metadata": "^0.2.2",
1060
1059
  rxjs: "^7.8.2",
1061
1060
  "typescript-optional": "3.0.0-alpha.3",
1062
- uuid: "^11.0.0"
1061
+ uuid: "^13.0.0"
1063
1062
  },
1064
1063
  peerDependenciesMeta: {
1065
1064
  typescript: {
@@ -1243,16 +1242,6 @@ class KinoticSingleton {
1243
1242
  }
1244
1243
  }
1245
1244
  var Kinotic = new KinoticSingleton;
1246
- // packages/core/src/api/KinoticProjectConfig.ts
1247
- class KinoticProjectConfig {
1248
- name;
1249
- description;
1250
- application;
1251
- entitiesPaths;
1252
- generatedPath;
1253
- fileExtensionForImports = ".js";
1254
- validate;
1255
- }
1256
1245
  // packages/core/src/api/crud/AbstractIterablePage.ts
1257
1246
  class AbstractIterablePage {
1258
1247
  pageable;
@@ -1354,6 +1343,9 @@ class CrudServiceProxy {
1354
1343
  create(entity) {
1355
1344
  return this.serviceProxy.invoke("create", [entity]);
1356
1345
  }
1346
+ createSync(entity) {
1347
+ return this.serviceProxy.invoke("createSync", [entity]);
1348
+ }
1357
1349
  deleteById(id) {
1358
1350
  return this.serviceProxy.invoke("deleteById", [id]);
1359
1351
  }
@@ -1503,11 +1495,15 @@ class ConnectedInfo {
1503
1495
  class Participant {
1504
1496
  id;
1505
1497
  tenantId;
1498
+ authScopeType;
1499
+ authScopeId;
1506
1500
  metadata;
1507
1501
  roles;
1508
- constructor(id, tenantId, metadata, roles) {
1502
+ constructor(id, tenantId, authScopeType, authScopeId, metadata, roles) {
1509
1503
  this.id = id;
1510
1504
  this.tenantId = tenantId;
1505
+ this.authScopeType = authScopeType;
1506
+ this.authScopeId = authScopeId;
1511
1507
  this.metadata = metadata || new Map;
1512
1508
  this.roles = roles || [];
1513
1509
  }
package/dist/index.d.cts CHANGED
@@ -59,6 +59,19 @@ interface IParticipant extends Identifiable<string> {
59
59
  */
60
60
  tenantId?: string | null;
61
61
  /**
62
+ * The scope layer this participant authenticated against.
63
+ * Well-known values are "SYSTEM", "ORGANIZATION", and "APPLICATION",
64
+ * but custom values are allowed for extensibility.
65
+ */
66
+ authScopeType?: string | null;
67
+ /**
68
+ * The identifier of the specific scope this participant belongs to.
69
+ * For example, "kinotic" for system scope, an organization ID, or an application ID.
70
+ * Together with {@link authScopeType}, uniquely identifies which user pool
71
+ * this participant was authenticated from.
72
+ */
73
+ authScopeId?: string | null;
74
+ /**
62
75
  * Metadata is a map of key value pairs that can be used to store additional information about a participant
63
76
  *
64
77
  * @return a map of key value pairs
@@ -77,9 +90,11 @@ interface IParticipant extends Identifiable<string> {
77
90
  declare class Participant implements IParticipant {
78
91
  id: string;
79
92
  tenantId?: string | null;
93
+ authScopeType?: string | null;
94
+ authScopeId?: string | null;
80
95
  metadata: Map<string, string>;
81
96
  roles: string[];
82
- constructor(id: string, tenantId?: string, metadata?: Map<string, string>, roles?: string[]);
97
+ constructor(id: string, tenantId?: string, authScopeType?: string, authScopeId?: string, metadata?: Map<string, string>, roles?: string[]);
83
98
  }
84
99
  /**
85
100
  * Contains information about the connection that was established
@@ -641,66 +656,6 @@ declare function Version(version: string): (target: Function) => void;
641
656
  declare function Context(): (target: any, propertyKey: string, parameterIndex: number) => void;
642
657
  declare function Publish(namespace: string, name?: string): (target: Function) => any;
643
658
  /**
644
- * Configuration for a single entities path and its corresponding repository output.
645
- */
646
- type EntitiesPathConfig = {
647
- /**
648
- * The path to search for classes decorated with @Entity.
649
- */
650
- path: string;
651
- /**
652
- * The path where generated Repository classes will be placed.
653
- */
654
- repositoryPath: string;
655
- /**
656
- * If true, the subfolder structure under the entities path will be mirrored under the repository path.
657
- * For example, if entitiesPath is "src/model" and contains "payments/Payment.ts",
658
- * the generated repository will be placed in "repositoryPath/payments/".
659
- * If false, all generated repositories are placed directly in the repositoryPath.
660
- * Defaults to true.
661
- */
662
- mirrorFolderStructure?: boolean;
663
- };
664
- /**
665
- * The project configuration for a Kinotic project.
666
- */
667
- declare class KinoticProjectConfig {
668
- /**
669
- * The name of the project or undefined if a project name is used.
670
- * i.e. if the project is typescript the package.json name will be used.
671
- */
672
- name?: string;
673
- /**
674
- * The description of the project.
675
- */
676
- description?: string;
677
- /**
678
- * The Kinotic Application that this project belongs to.
679
- */
680
- application: string;
681
- /**
682
- * The paths to search for classes decorated with @Entity that Kinotic will be created for.
683
- * Each entry can be a string (simple path) or an {@link EntitiesPathConfig} object for full control
684
- * over where repository classes are generated.
685
- *
686
- * When a plain string is provided, the {@link generatedPath} will be used as the repository output path.
687
- */
688
- entitiesPaths: (string | EntitiesPathConfig)[];
689
- /**
690
- * The default path to where generated files will be placed when entitiesPaths contains plain strings.
691
- * Ignored for entitiesPaths entries that use {@link EntitiesPathConfig}.
692
- */
693
- generatedPath?: string;
694
- /**
695
- * The file extension to use for imports in generated files.
696
- */
697
- fileExtensionForImports: string;
698
- /**
699
- * If true the generated Repository classes will validate all data before sending to the server.
700
- */
701
- validate?: boolean;
702
- }
703
- /**
704
659
  * A page is a sublist of a list of objects.
705
660
  * @author Navid Mitchell
706
661
  */
@@ -949,6 +904,15 @@ interface ICrudServiceProxy<T extends Identifiable<string>> extends IEditableDat
949
904
  */
950
905
  create(entity: T): Promise<T>;
951
906
  /**
907
+ * Creates a new entity if one does not already exist for the given id, and waits for the
908
+ * change to be visible in search results before returning.
909
+ * Use this when you need read-your-write consistency immediately after creation.
910
+ *
911
+ * @param entity to create if one does not already exist
912
+ * @return a {@link Promise} containing the new entity after it is searchable, or an error if an exception occurred
913
+ */
914
+ createSync(entity: T): Promise<T>;
915
+ /**
952
916
  * Saves a given entity. Use the returned instance for further operations as the save operation might have changed the
953
917
  * entity instance completely.
954
918
  *
@@ -1017,6 +981,7 @@ declare class CrudServiceProxy<T extends Identifiable<string>> implements ICrudS
1017
981
  constructor(serviceProxy: IServiceProxy);
1018
982
  count(): Promise<number>;
1019
983
  create(entity: T): Promise<T>;
984
+ createSync(entity: T): Promise<T>;
1020
985
  deleteById(id: string): Promise<void>;
1021
986
  findAll(pageable: Pageable): Promise<IterablePage<T>>;
1022
987
  findAllSinglePage(pageable: Pageable): Promise<Page<T>>;
@@ -1152,4 +1117,4 @@ declare class ParticipantConstants {
1152
1117
  static readonly PARTICIPANT_TYPE_NODE: string;
1153
1118
  static readonly CLI_PARTICIPANT_ID: string;
1154
1119
  }
1155
- export { createCRI, Version, TextEventFactory, Sort, ServiceRegistry, ServiceContext, ServerInfo, Scope, Publish, ParticipantConstants, Participant, Pageable, Page, Order, OffsetPageable, NullHandling, KinoticSingleton, KinoticProjectConfig, KinoticPlugin, KinoticError, Kinotic, JsonEventFactory, IterablePage, Identifiable, IServiceRegistry, IServiceProxy, IParticipant, IKinotic, IEventFactory, IEventBus, IEvent, IEditableDataSource, IDataSource, ICrudServiceProxyFactory, ICrudServiceProxy, FunctionalIterablePage, EventConstants, EventBus, Event, EntitiesPathConfig, Direction, DefaultCRI, DataSourceUtils, CursorPageable, CrudServiceProxyFactory, CrudServiceProxy, ContextInterceptor, Context, ConnectionInfo, ConnectedInfo, ConnectHeaders, CRI, CONTEXT_METADATA_KEY, AuthorizationError, AuthenticationError, AbstractIterablePage };
1120
+ export { createCRI, Version, TextEventFactory, Sort, ServiceRegistry, ServiceContext, ServerInfo, Scope, Publish, ParticipantConstants, Participant, Pageable, Page, Order, OffsetPageable, NullHandling, KinoticSingleton, KinoticPlugin, KinoticError, Kinotic, JsonEventFactory, IterablePage, Identifiable, IServiceRegistry, IServiceProxy, IParticipant, IKinotic, IEventFactory, IEventBus, IEvent, IEditableDataSource, IDataSource, ICrudServiceProxyFactory, ICrudServiceProxy, FunctionalIterablePage, EventConstants, EventBus, Event, Direction, DefaultCRI, DataSourceUtils, CursorPageable, CrudServiceProxyFactory, CrudServiceProxy, ContextInterceptor, Context, ConnectionInfo, ConnectedInfo, ConnectHeaders, CRI, CONTEXT_METADATA_KEY, AuthorizationError, AuthenticationError, AbstractIterablePage };
package/dist/index.d.ts CHANGED
@@ -59,6 +59,19 @@ interface IParticipant extends Identifiable<string> {
59
59
  */
60
60
  tenantId?: string | null;
61
61
  /**
62
+ * The scope layer this participant authenticated against.
63
+ * Well-known values are "SYSTEM", "ORGANIZATION", and "APPLICATION",
64
+ * but custom values are allowed for extensibility.
65
+ */
66
+ authScopeType?: string | null;
67
+ /**
68
+ * The identifier of the specific scope this participant belongs to.
69
+ * For example, "kinotic" for system scope, an organization ID, or an application ID.
70
+ * Together with {@link authScopeType}, uniquely identifies which user pool
71
+ * this participant was authenticated from.
72
+ */
73
+ authScopeId?: string | null;
74
+ /**
62
75
  * Metadata is a map of key value pairs that can be used to store additional information about a participant
63
76
  *
64
77
  * @return a map of key value pairs
@@ -77,9 +90,11 @@ interface IParticipant extends Identifiable<string> {
77
90
  declare class Participant implements IParticipant {
78
91
  id: string;
79
92
  tenantId?: string | null;
93
+ authScopeType?: string | null;
94
+ authScopeId?: string | null;
80
95
  metadata: Map<string, string>;
81
96
  roles: string[];
82
- constructor(id: string, tenantId?: string, metadata?: Map<string, string>, roles?: string[]);
97
+ constructor(id: string, tenantId?: string, authScopeType?: string, authScopeId?: string, metadata?: Map<string, string>, roles?: string[]);
83
98
  }
84
99
  /**
85
100
  * Contains information about the connection that was established
@@ -641,66 +656,6 @@ declare function Version(version: string): (target: Function) => void;
641
656
  declare function Context(): (target: any, propertyKey: string, parameterIndex: number) => void;
642
657
  declare function Publish(namespace: string, name?: string): (target: Function) => any;
643
658
  /**
644
- * Configuration for a single entities path and its corresponding repository output.
645
- */
646
- type EntitiesPathConfig = {
647
- /**
648
- * The path to search for classes decorated with @Entity.
649
- */
650
- path: string;
651
- /**
652
- * The path where generated Repository classes will be placed.
653
- */
654
- repositoryPath: string;
655
- /**
656
- * If true, the subfolder structure under the entities path will be mirrored under the repository path.
657
- * For example, if entitiesPath is "src/model" and contains "payments/Payment.ts",
658
- * the generated repository will be placed in "repositoryPath/payments/".
659
- * If false, all generated repositories are placed directly in the repositoryPath.
660
- * Defaults to true.
661
- */
662
- mirrorFolderStructure?: boolean;
663
- };
664
- /**
665
- * The project configuration for a Kinotic project.
666
- */
667
- declare class KinoticProjectConfig {
668
- /**
669
- * The name of the project or undefined if a project name is used.
670
- * i.e. if the project is typescript the package.json name will be used.
671
- */
672
- name?: string;
673
- /**
674
- * The description of the project.
675
- */
676
- description?: string;
677
- /**
678
- * The Kinotic Application that this project belongs to.
679
- */
680
- application: string;
681
- /**
682
- * The paths to search for classes decorated with @Entity that Kinotic will be created for.
683
- * Each entry can be a string (simple path) or an {@link EntitiesPathConfig} object for full control
684
- * over where repository classes are generated.
685
- *
686
- * When a plain string is provided, the {@link generatedPath} will be used as the repository output path.
687
- */
688
- entitiesPaths: (string | EntitiesPathConfig)[];
689
- /**
690
- * The default path to where generated files will be placed when entitiesPaths contains plain strings.
691
- * Ignored for entitiesPaths entries that use {@link EntitiesPathConfig}.
692
- */
693
- generatedPath?: string;
694
- /**
695
- * The file extension to use for imports in generated files.
696
- */
697
- fileExtensionForImports: string;
698
- /**
699
- * If true the generated Repository classes will validate all data before sending to the server.
700
- */
701
- validate?: boolean;
702
- }
703
- /**
704
659
  * A page is a sublist of a list of objects.
705
660
  * @author Navid Mitchell
706
661
  */
@@ -949,6 +904,15 @@ interface ICrudServiceProxy<T extends Identifiable<string>> extends IEditableDat
949
904
  */
950
905
  create(entity: T): Promise<T>;
951
906
  /**
907
+ * Creates a new entity if one does not already exist for the given id, and waits for the
908
+ * change to be visible in search results before returning.
909
+ * Use this when you need read-your-write consistency immediately after creation.
910
+ *
911
+ * @param entity to create if one does not already exist
912
+ * @return a {@link Promise} containing the new entity after it is searchable, or an error if an exception occurred
913
+ */
914
+ createSync(entity: T): Promise<T>;
915
+ /**
952
916
  * Saves a given entity. Use the returned instance for further operations as the save operation might have changed the
953
917
  * entity instance completely.
954
918
  *
@@ -1017,6 +981,7 @@ declare class CrudServiceProxy<T extends Identifiable<string>> implements ICrudS
1017
981
  constructor(serviceProxy: IServiceProxy);
1018
982
  count(): Promise<number>;
1019
983
  create(entity: T): Promise<T>;
984
+ createSync(entity: T): Promise<T>;
1020
985
  deleteById(id: string): Promise<void>;
1021
986
  findAll(pageable: Pageable): Promise<IterablePage<T>>;
1022
987
  findAllSinglePage(pageable: Pageable): Promise<Page<T>>;
@@ -1152,4 +1117,4 @@ declare class ParticipantConstants {
1152
1117
  static readonly PARTICIPANT_TYPE_NODE: string;
1153
1118
  static readonly CLI_PARTICIPANT_ID: string;
1154
1119
  }
1155
- export { createCRI, Version, TextEventFactory, Sort, ServiceRegistry, ServiceContext, ServerInfo, Scope, Publish, ParticipantConstants, Participant, Pageable, Page, Order, OffsetPageable, NullHandling, KinoticSingleton, KinoticProjectConfig, KinoticPlugin, KinoticError, Kinotic, JsonEventFactory, IterablePage, Identifiable, IServiceRegistry, IServiceProxy, IParticipant, IKinotic, IEventFactory, IEventBus, IEvent, IEditableDataSource, IDataSource, ICrudServiceProxyFactory, ICrudServiceProxy, FunctionalIterablePage, EventConstants, EventBus, Event, EntitiesPathConfig, Direction, DefaultCRI, DataSourceUtils, CursorPageable, CrudServiceProxyFactory, CrudServiceProxy, ContextInterceptor, Context, ConnectionInfo, ConnectedInfo, ConnectHeaders, CRI, CONTEXT_METADATA_KEY, AuthorizationError, AuthenticationError, AbstractIterablePage };
1120
+ export { createCRI, Version, TextEventFactory, Sort, ServiceRegistry, ServiceContext, ServerInfo, Scope, Publish, ParticipantConstants, Participant, Pageable, Page, Order, OffsetPageable, NullHandling, KinoticSingleton, KinoticPlugin, KinoticError, Kinotic, JsonEventFactory, IterablePage, Identifiable, IServiceRegistry, IServiceProxy, IParticipant, IKinotic, IEventFactory, IEventBus, IEvent, IEditableDataSource, IDataSource, ICrudServiceProxyFactory, ICrudServiceProxy, FunctionalIterablePage, EventConstants, EventBus, Event, Direction, DefaultCRI, DataSourceUtils, CursorPageable, CrudServiceProxyFactory, CrudServiceProxy, ContextInterceptor, Context, ConnectionInfo, ConnectedInfo, ConnectHeaders, CRI, CONTEXT_METADATA_KEY, AuthorizationError, AuthenticationError, AbstractIterablePage };
package/dist/index.js CHANGED
@@ -894,7 +894,7 @@ import { first, map as map2 } from "rxjs/operators";
894
894
  // packages/core/package.json
895
895
  var package_default = {
896
896
  name: "@kinotic-ai/core",
897
- version: "1.2.1",
897
+ version: "1.2.2",
898
898
  type: "module",
899
899
  files: [
900
900
  "dist"
@@ -922,44 +922,44 @@ var package_default = {
922
922
  },
923
923
  scripts: {
924
924
  "type-check": "tsc --noEmit",
925
- test: "vitest run",
925
+ test: "vitest run --mode development",
926
926
  coverage: "vitest run --coverage",
927
927
  "ui-test": "vitest --ui --coverage.enabled=true --mode development"
928
928
  },
929
929
  devDependencies: {
930
- "@opentelemetry/exporter-trace-otlp-grpc": "^0.212.0",
931
- "@opentelemetry/resources": "^2.5.1",
932
- "@opentelemetry/sdk-metrics": "^2.5.1",
933
- "@opentelemetry/sdk-node": "^0.212.0",
934
- "@opentelemetry/sdk-trace-node": "^2.5.1",
935
- "@types/node": "^25.3.2",
930
+ "@opentelemetry/exporter-trace-otlp-grpc": "^0.214.0",
931
+ "@opentelemetry/resources": "^2.6.1",
932
+ "@opentelemetry/sdk-metrics": "^2.6.1",
933
+ "@opentelemetry/sdk-node": "^0.214.0",
934
+ "@opentelemetry/sdk-trace-node": "^2.6.1",
935
+ "@types/node": "^25.6.0",
936
936
  "@types/uuid": "^11.0.0",
937
937
  "@types/ws": "^8.18.1",
938
- "@vitest/coverage-v8": "^4.0.18",
939
- "@vitest/runner": "^4.0.18",
940
- "@vitest/ui": "^4.0.18",
941
- allure: "^3.3.1",
942
- "allure-vitest": "^3.5.0",
943
- dotenv: "^17.3.1",
944
- "properties-file": "^3.6.4",
945
- testcontainers: "^11.12.0",
938
+ "@vitest/coverage-v8": "^4.1.4",
939
+ "@vitest/runner": "^4.1.4",
940
+ "@vitest/ui": "^4.1.4",
941
+ allure: "^3.4.1",
942
+ "allure-vitest": "^3.7.1",
943
+ dotenv: "^17.4.1",
944
+ "properties-file": "^4.0.0",
945
+ testcontainers: "^11.14.0",
946
946
  tslib: "^2.8.1",
947
- typescript: "^5.9.3",
948
- vitest: "^4.0.18",
949
- ws: "^8.19.0"
947
+ typescript: "^6.0.2",
948
+ vitest: "^4.1.4",
949
+ ws: "^8.20.0"
950
950
  },
951
951
  dependencies: {
952
- "@opentelemetry/api": "^1.9.0",
952
+ "@opentelemetry/api": "^1.9.1",
953
953
  "@opentelemetry/semantic-conventions": "^1.40.0",
954
954
  "@stomp/rx-stomp": "^2.3.0",
955
955
  "@stomp/stompjs": "^7.3.0",
956
- "@types/debug": "^4.1.12",
956
+ "@types/debug": "^4.1.13",
957
957
  debug: "^4.4.3",
958
958
  "p-tap": "^4.0.0",
959
959
  "reflect-metadata": "^0.2.2",
960
960
  rxjs: "^7.8.2",
961
961
  "typescript-optional": "3.0.0-alpha.3",
962
- uuid: "^11.0.0"
962
+ uuid: "^13.0.0"
963
963
  },
964
964
  peerDependenciesMeta: {
965
965
  typescript: {
@@ -1143,16 +1143,6 @@ class KinoticSingleton {
1143
1143
  }
1144
1144
  }
1145
1145
  var Kinotic = new KinoticSingleton;
1146
- // packages/core/src/api/KinoticProjectConfig.ts
1147
- class KinoticProjectConfig {
1148
- name;
1149
- description;
1150
- application;
1151
- entitiesPaths;
1152
- generatedPath;
1153
- fileExtensionForImports = ".js";
1154
- validate;
1155
- }
1156
1146
  // packages/core/src/api/crud/AbstractIterablePage.ts
1157
1147
  class AbstractIterablePage {
1158
1148
  pageable;
@@ -1254,6 +1244,9 @@ class CrudServiceProxy {
1254
1244
  create(entity) {
1255
1245
  return this.serviceProxy.invoke("create", [entity]);
1256
1246
  }
1247
+ createSync(entity) {
1248
+ return this.serviceProxy.invoke("createSync", [entity]);
1249
+ }
1257
1250
  deleteById(id) {
1258
1251
  return this.serviceProxy.invoke("deleteById", [id]);
1259
1252
  }
@@ -1403,11 +1396,15 @@ class ConnectedInfo {
1403
1396
  class Participant {
1404
1397
  id;
1405
1398
  tenantId;
1399
+ authScopeType;
1400
+ authScopeId;
1406
1401
  metadata;
1407
1402
  roles;
1408
- constructor(id, tenantId, metadata, roles) {
1403
+ constructor(id, tenantId, authScopeType, authScopeId, metadata, roles) {
1409
1404
  this.id = id;
1410
1405
  this.tenantId = tenantId;
1406
+ this.authScopeType = authScopeType;
1407
+ this.authScopeId = authScopeId;
1411
1408
  this.metadata = metadata || new Map;
1412
1409
  this.roles = roles || [];
1413
1410
  }
@@ -1437,7 +1434,6 @@ export {
1437
1434
  OffsetPageable,
1438
1435
  NullHandling,
1439
1436
  KinoticSingleton,
1440
- KinoticProjectConfig,
1441
1437
  KinoticError,
1442
1438
  Kinotic,
1443
1439
  JsonEventFactory,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kinotic-ai/core",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -28,44 +28,44 @@
28
28
  },
29
29
  "scripts": {
30
30
  "type-check": "tsc --noEmit",
31
- "test": "vitest run",
31
+ "test": "vitest run --mode development",
32
32
  "coverage": "vitest run --coverage",
33
33
  "ui-test": "vitest --ui --coverage.enabled=true --mode development"
34
34
  },
35
35
  "devDependencies": {
36
- "@opentelemetry/exporter-trace-otlp-grpc": "^0.212.0",
37
- "@opentelemetry/resources": "^2.5.1",
38
- "@opentelemetry/sdk-metrics": "^2.5.1",
39
- "@opentelemetry/sdk-node": "^0.212.0",
40
- "@opentelemetry/sdk-trace-node": "^2.5.1",
41
- "@types/node": "^25.3.2",
36
+ "@opentelemetry/exporter-trace-otlp-grpc": "^0.214.0",
37
+ "@opentelemetry/resources": "^2.6.1",
38
+ "@opentelemetry/sdk-metrics": "^2.6.1",
39
+ "@opentelemetry/sdk-node": "^0.214.0",
40
+ "@opentelemetry/sdk-trace-node": "^2.6.1",
41
+ "@types/node": "^25.6.0",
42
42
  "@types/uuid": "^11.0.0",
43
43
  "@types/ws": "^8.18.1",
44
- "@vitest/coverage-v8": "^4.0.18",
45
- "@vitest/runner": "^4.0.18",
46
- "@vitest/ui": "^4.0.18",
47
- "allure": "^3.3.1",
48
- "allure-vitest": "^3.5.0",
49
- "dotenv": "^17.3.1",
50
- "properties-file": "^3.6.4",
51
- "testcontainers": "^11.12.0",
44
+ "@vitest/coverage-v8": "^4.1.4",
45
+ "@vitest/runner": "^4.1.4",
46
+ "@vitest/ui": "^4.1.4",
47
+ "allure": "^3.4.1",
48
+ "allure-vitest": "^3.7.1",
49
+ "dotenv": "^17.4.1",
50
+ "properties-file": "^4.0.0",
51
+ "testcontainers": "^11.14.0",
52
52
  "tslib": "^2.8.1",
53
- "typescript": "^5.9.3",
54
- "vitest": "^4.0.18",
55
- "ws": "^8.19.0"
53
+ "typescript": "^6.0.2",
54
+ "vitest": "^4.1.4",
55
+ "ws": "^8.20.0"
56
56
  },
57
57
  "dependencies": {
58
- "@opentelemetry/api": "^1.9.0",
58
+ "@opentelemetry/api": "^1.9.1",
59
59
  "@opentelemetry/semantic-conventions": "^1.40.0",
60
60
  "@stomp/rx-stomp": "^2.3.0",
61
61
  "@stomp/stompjs": "^7.3.0",
62
- "@types/debug": "^4.1.12",
62
+ "@types/debug": "^4.1.13",
63
63
  "debug": "^4.4.3",
64
64
  "p-tap": "^4.0.0",
65
65
  "reflect-metadata": "^0.2.2",
66
66
  "rxjs": "^7.8.2",
67
67
  "typescript-optional": "3.0.0-alpha.3",
68
- "uuid": "^11.0.0"
68
+ "uuid": "^13.0.0"
69
69
  },
70
70
  "peerDependenciesMeta": {
71
71
  "typescript": {