@awarevue/agent-sdk 2.0.85 → 2.0.86

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/agent-app.js CHANGED
@@ -136,15 +136,13 @@ class AgentApp {
136
136
  refs: result,
137
137
  })));
138
138
  case 'describe-object': {
139
- if (!this.agent.find$) {
139
+ if (!this.agent.describeObject$) {
140
140
  return (0, rxjs_1.throwError)(() => new agent_error_1.AgentError(`Agent ${context.provider} does not support object description`, 'NOT_SUPPORTED')).pipe(this.handleResponse$(message.id));
141
141
  }
142
- const find$ = this.agent.find$;
143
- return find$(context, message.objectKind, [
144
- message.objectAssignedRef,
145
- ]).pipe((0, rxjs_1.map)((result) => {
146
- const data = result[message.objectAssignedRef];
147
- return data !== undefined
142
+ return this.agent
143
+ .describeObject$(context, message.objectKind, message.objectAssignedRef)
144
+ .pipe((0, rxjs_1.map)((data) => {
145
+ return data !== null
148
146
  ? {
149
147
  objectKind: message.objectKind,
150
148
  objectAssignedRef: message.objectAssignedRef,
package/dist/agent.d.ts CHANGED
@@ -26,6 +26,7 @@ export interface Agent {
26
26
  getResult$?: (context: Context, query: QueryRq) => Observable<unknown>;
27
27
  validateAccessChange$?: (context: AccessChangeContext, change: AccessValidateChangeRq) => Observable<AccessChangeIssue[]>;
28
28
  applyAccessChange$?: (context: AccessChangeContext, change: AccessApplyChange) => Observable<AccessRefMap>;
29
- find$?: <K extends AccessObjectKind>(context: Context, objectKind: K, objectIds: string[]) => Observable<Record<string, ExternalObjectProps[K]>>;
29
+ find$?: <K extends AccessObjectKind>(context: Context, objectKind: K, objectIds: string[]) => Observable<Record<string, Record<string, unknown>>>;
30
+ describeObject$?: <K extends AccessObjectKind>(context: Context, objectKind: K, objectRef: string) => Observable<ExternalObjectProps[K] | null>;
30
31
  pushFile?: (context: Context, req: PushFile) => Observable<boolean>;
31
32
  }
package/dist/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/Linc-Security-Systems/aware-essentials.git"
6
6
  },
7
- "version": "2.0.85",
7
+ "version": "2.0.86",
8
8
  "description": "SDK for building Agent implementations that speak the agent protocol.",
9
9
  "author": "Yaser Awajan",
10
10
  "license": "MIT",
@@ -31,13 +31,13 @@
31
31
  "lint:fix": "yarn lint --fix"
32
32
  },
33
33
  "peerDependencies": {
34
- "@awarevue/api-types": "2.0.85",
34
+ "@awarevue/api-types": "2.0.86",
35
35
  "rxjs": "^7.8.2",
36
36
  "ws": "^8",
37
37
  "zod": "4.4.3"
38
38
  },
39
39
  "devDependencies": {
40
- "@awarevue/api-types": "2.0.85",
40
+ "@awarevue/api-types": "2.0.86",
41
41
  "@types/node": "^20.12.7",
42
42
  "@types/ws": "^8.18.1",
43
43
  "@typescript-eslint/eslint-plugin": "^8.31.1",
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/Linc-Security-Systems/aware-essentials.git"
6
6
  },
7
- "version": "2.0.85",
7
+ "version": "2.0.86",
8
8
  "description": "SDK for building Agent implementations that speak the agent protocol.",
9
9
  "author": "Yaser Awajan",
10
10
  "license": "MIT",
@@ -31,13 +31,13 @@
31
31
  "lint:fix": "yarn lint --fix"
32
32
  },
33
33
  "peerDependencies": {
34
- "@awarevue/api-types": "2.0.85",
34
+ "@awarevue/api-types": "2.0.86",
35
35
  "rxjs": "^7.8.2",
36
36
  "ws": "^8",
37
37
  "zod": "4.4.3"
38
38
  },
39
39
  "devDependencies": {
40
- "@awarevue/api-types": "2.0.85",
40
+ "@awarevue/api-types": "2.0.86",
41
41
  "@types/node": "^20.12.7",
42
42
  "@types/ws": "^8.18.1",
43
43
  "@typescript-eslint/eslint-plugin": "^8.31.1",