Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(properties/tools): add user to accepted types (#2770)

Seamus7511f22b95c4
diff --git a/js/app/packages/service-clients/service-cognition/generated/tools/schemas.ts b/js/app/packages/service-clients/service-cognition/generated/tools/schemas.ts
index c10fc4784b..71b80fa42c 100644
--- a/js/app/packages/service-clients/service-cognition/generated/tools/schemas.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/tools/schemas.ts
@@ -344,6 +344,7 @@ export const GetEntityProperties = z
'chat',
'thread',
'channel',
+ 'user',
]),
})
.strict();
@@ -736,6 +737,7 @@ export const SetEntityProperty = z
'chat',
'thread',
'channel',
+ 'user',
]),
})
.strict(),
@@ -753,6 +755,7 @@ export const SetEntityProperty = z
'chat',
'thread',
'channel',
+ 'user',
]),
})
.strict()
@@ -766,6 +769,7 @@ export const SetEntityProperty = z
'chat',
'thread',
'channel',
+ 'user',
]),
link_url: z.union([z.string(), z.null()]).default(null),
link_urls: z.union([z.array(z.string()), z.null()]).default(null),
diff --git a/js/app/packages/service-clients/service-cognition/generated/tools/types.ts b/js/app/packages/service-clients/service-cognition/generated/tools/types.ts
index b309f8e770..841649be44 100644
--- a/js/app/packages/service-clients/service-cognition/generated/tools/types.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/tools/types.ts
@@ -640,7 +640,14 @@ export interface GetEntityProperties {
/**
* The type of entity.
*/
- entity_type: 'document' | 'task' | 'project' | 'chat' | 'thread' | 'channel';
+ entity_type:
+ | 'document'
+ | 'task'
+ | 'project'
+ | 'chat'
+ | 'thread'
+ | 'channel'
+ | 'user';
}
/* eslint-disable */
@@ -1287,7 +1294,14 @@ export interface SetEntityProperty {
*/
entity_ref: {
entityId: string;
- entityType: 'document' | 'task' | 'project' | 'chat' | 'thread' | 'channel';
+ entityType:
+ | 'document'
+ | 'task'
+ | 'project'
+ | 'chat'
+ | 'thread'
+ | 'channel'
+ | 'user';
} | null;
/**
* For multi entity reference properties.
@@ -1301,13 +1315,21 @@ export interface SetEntityProperty {
| 'project'
| 'chat'
| 'thread'
- | 'channel';
+ | 'channel'
+ | 'user';
}[]
| null;
/**
* The type of entity.
*/
- entity_type: 'document' | 'task' | 'project' | 'chat' | 'thread' | 'channel';
+ entity_type:
+ | 'document'
+ | 'task'
+ | 'project'
+ | 'chat'
+ | 'thread'
+ | 'channel'
+ | 'user';
/**
* For single link properties.
*/
diff --git a/rust/cloud-storage/properties/src/inbound/toolset/get_entity_properties.rs b/rust/cloud-storage/properties/src/inbound/toolset/get_entity_properties.rs
index ab623f3f9b..6b57f4f8e3 100644
--- a/rust/cloud-storage/properties/src/inbound/toolset/get_entity_properties.rs
+++ b/rust/cloud-storage/properties/src/inbound/toolset/get_entity_properties.rs
@@ -22,6 +22,7 @@ pub enum ToolEntityType {
Chat,
Thread,
Channel,
+ User,
}
impl From<ToolEntityType> for EntityType {
@@ -33,6 +34,7 @@ impl From<ToolEntityType> for EntityType {
ToolEntityType::Chat => EntityType::Chat,
ToolEntityType::Thread => EntityType::Thread,
ToolEntityType::Channel => EntityType::Channel,
+ ToolEntityType::User => EntityType::User,
}
}
}