@onereach/types-hitl-api 0.0.35-rc.4 → 0.0.35-rc.6

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.
@@ -1,6 +1,7 @@
1
1
  import { IAgentStatus } from '@/interfaces/api/agents';
2
2
  import { ITimestamps } from '@/interfaces/api/common';
3
3
  export interface IAgentMeta extends ITimestamps {
4
+ readonly id: string;
4
5
  readonly agentId: string;
5
6
  readonly ruleGroupIds: string[];
6
7
  readonly statusData: Omit<IAgentStatus, 'agentId'>;
@@ -7,6 +7,7 @@ export interface IAgent {
7
7
  readonly role: string;
8
8
  readonly email: string;
9
9
  readonly username: string;
10
+ readonly data: object;
10
11
  readonly ruleGroupIds: string[];
11
12
  readonly statusData?: Omit<IAgentStatus, 'agentId'>;
12
13
  readonly meta?: object;
@@ -66,8 +67,8 @@ export interface IPutAgentMetaBody {
66
67
  export interface IPutAgentRuleGroupsOptions {
67
68
  readonly accountId: string;
68
69
  readonly agentId: string;
69
- readonly addRuleGroupIds: string[];
70
- readonly removeRuleGroupIds: string[];
70
+ readonly addRuleGroupIds?: string[];
71
+ readonly removeRuleGroupIds?: string[];
71
72
  }
72
73
  export declare type IPutAgentRuleGroupsQuery = ISetAgentStatusQuery;
73
74
  export declare type IPutAgentRuleGroupsBody = Omit<IPutAgentRuleGroupsOptions, 'accountId' | 'agentId'>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/types-hitl-api",
3
- "version": "0.0.35-rc.4",
3
+ "version": "0.0.35-rc.6",
4
4
  "author": "OneReach.ai",
5
5
  "main": "dist/types/index.types.js",
6
6
  "types": "dist/types/index.types.d.ts",