@openkaiden/api 0.3.0 → 0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openkaiden/api",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "API for Kaiden extensions",
5
5
  "repository": "https://github.com/openkaiden/kaiden",
6
6
  "publishConfig": {
@@ -13,7 +13,7 @@
13
13
  "src"
14
14
  ],
15
15
  "dependencies": {
16
- "@ai-sdk/provider": "^4.0.2",
16
+ "@ai-sdk/provider": "^4.0.3",
17
17
  "@openkaiden/workspace-configuration": "^0.14.0"
18
18
  },
19
19
  "scripts": {
@@ -787,6 +787,20 @@ declare module '@openkaiden/api' {
787
787
  create(params: { [key: string]: any }, logger?: Logger, token?: CancellationToken): Promise<void>;
788
788
  }
789
789
 
790
+ export interface SemanticRouterCreateParams {
791
+ name: string;
792
+ config: string;
793
+ }
794
+
795
+ export interface SemanticRouter {
796
+ connectionId: string;
797
+ }
798
+
799
+ export interface SemanticRouterFactory extends ProviderConnectionFactory {
800
+ readonly type: string;
801
+ create(params: SemanticRouterCreateParams, logger?: Logger, token?: CancellationToken): Promise<SemanticRouter>;
802
+ }
803
+
790
804
  // create a kubernetes provider
791
805
  export interface KubernetesProviderConnectionFactory extends ProviderConnectionFactory {
792
806
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -999,6 +1013,11 @@ declare module '@openkaiden/api' {
999
1013
  connectionAuditor?: Auditor,
1000
1014
  ): Disposable;
1001
1015
 
1016
+ setSemanticRouterConnectionFactory(
1017
+ semanticRouterConnectionFactory: SemanticRouterFactory,
1018
+ connectionAuditor?: Auditor,
1019
+ ): Disposable;
1020
+
1002
1021
  registerContainerProviderConnection(connection: ContainerProviderConnection): Disposable;
1003
1022
  registerKubernetesProviderConnection(connection: KubernetesProviderConnection): Disposable;
1004
1023
  registerVmProviderConnection(connection: VmProviderConnection): Disposable;