Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
change casing (#4644)
Sean Aye3cb8b8d7a96a
diff --git a/js/app/packages/service-clients/service-storage/graphql/generated/graphql.ts b/js/app/packages/service-clients/service-storage/graphql/generated/graphql.tsindex 9c7e1bf0e3..57a786d829 100644--- a/js/app/packages/service-clients/service-storage/graphql/generated/graphql.ts+++ b/js/app/packages/service-clients/service-storage/graphql/generated/graphql.ts@@ -303,6 +303,26 @@ export type GraphqlSimpleSortMethod =/** Sort by viewed timestamp, falling back to updated timestamp. */| 'VIEWED_UPDATED';+export type GraphqlSoupDataType =+ /** Boolean true/false values. */+ | 'BOOLEAN'+ /** Date and time values. */+ | 'DATE'+ /** Entity reference property. */+ | 'ENTITY'+ /** Link value Property. */+ | 'LINK'+ /** Numeric values. */+ | 'NUMBER'+ /** Select property with numeric options. */+ | 'SELECT_NUMBER'+ /** Select property with string options. */+ | 'SELECT_STRING'+ /** String/text values. */+ | 'STRING'+ /** Tag property - user- or team-scoped colored labels (always multi-select). */+ | 'TAG';+/** GraphQL representation of Soup entity types. */export type GraphqlSoupEntityType =/** Call entity. */@@ -326,6 +346,16 @@ export type GraphqlSoupEntityType =/** Unknown or unsupported entity type. */| 'UNKNOWN';+export type GraphqlSoupPropertyEntityType =+ | 'CHANNEL'+ | 'CHAT'+ | 'COMPANY'+ | 'DOCUMENT'+ | 'PROJECT'+ | 'TASK'+ | 'THREAD'+ | 'USER';+/** Input for `Query.soup`. */export type SoupInput = {/** Opaque cursor returned by a previous GraphQL Soup response. */@@ -354,15 +384,15 @@ export type SoupQuery = { user: { id: string, soup: { nextCursor: string | null,| { __typename: 'GraphqlSoupCall', id: string, channelId: string, channelName: string | null, createdBy: string, customName: string | null, summary: string | null, startedAt: string, endedAt: string | null, durationMs: number | null, isActive: boolean, status: string, attended: boolean, participants: Array<{ userId: string, joinedAt: string, leftAt: string | null }> }| { __typename: 'GraphqlSoupChannel', id: string, channelType: string, ownerId: string, organizationId: string | null, createdAt: string, updatedAt: string, viewedAt: string | null, interactedAt: string | null, channelName: string | null, channelTeamId: string | null, participants: Array<{ channelId: string, userId: string, role: string, joinedAt: string, leftAt: string | null }>, latestMessage: { id: string, threadId: string | null, senderId: string, content: string, createdAt: string, updatedAt: string, deletedAt: string | null, mentions: Array<string> } | null, latestNonThreadMessage: { id: string, threadId: string | null, senderId: string, content: string, createdAt: string, updatedAt: string, deletedAt: string | null, mentions: Array<string> } | null }| { __typename: 'GraphqlSoupChannelThread', id: string, channelId: string, senderId: string, content: string, createdAt: string, updatedAt: string, effectiveUpdatedAt: string, replyCount: number }- | { __typename: 'GraphqlSoupChat', id: string, ownerId: string, projectId: string | null, isPersistent: boolean, createdAt: string, updatedAt: string, viewedAt: string | null, deletedAt: string | null, chatName: string, properties: Array<{ propertyDefinitionId: string, displayName: string, dataType: string, isMultiSelect: boolean, specificEntityType: string | null, isSystem: boolean, isMetadata: boolean, value: { kind: string, boolValue: boolean | null, numberValue: number | null, stringValue: string | null, dateValue: string | null, selectOptionIds: Array<string>, links: Array<string>, entityReferences: Array<{ entityId: string, entityType: string, specificMessageId: string | null }> } | null }> }- | { __typename: 'GraphqlSoupCrmCompany', id: string, description: string | null, emailSync: boolean, hidden: boolean, createdAt: string, updatedAt: string, viewedAt: string | null, domains: Array<string>, crmTeamId: string, crmCompanyName: string | null, properties: Array<{ propertyDefinitionId: string, displayName: string, dataType: string, isMultiSelect: boolean, specificEntityType: string | null, isSystem: boolean, isMetadata: boolean, value: { kind: string, boolValue: boolean | null, numberValue: number | null, stringValue: string | null, dateValue: string | null, selectOptionIds: Array<string>, links: Array<string>, entityReferences: Array<{ entityId: string, entityType: string, specificMessageId: string | null }> } | null }> }- | { __typename: 'GraphqlSoupDocument', id: string, ownerId: string, fileType: string | null, projectId: string | null, createdAt: string, updatedAt: string, viewedAt: string | null, deletedAt: string | null, documentName: string, subType: { kind: string, isCompleted: boolean | null } | null, properties: Array<{ propertyDefinitionId: string, displayName: string, dataType: string, isMultiSelect: boolean, specificEntityType: string | null, isSystem: boolean, isMetadata: boolean, value: { kind: string, boolValue: boolean | null, numberValue: number | null, stringValue: string | null, dateValue: string | null, selectOptionIds: Array<string>, links: Array<string>, entityReferences: Array<{ entityId: string, entityType: string, specificMessageId: string | null }> } | null }> }- | { __typename: 'GraphqlSoupEmailThread', id: string, providerId: string | null, ownerId: string, inboxVisible: boolean, linkId: string | null, snippet: string | null, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null, isRead: boolean, isDraft: boolean, isImportant: boolean, projectId: string | null, sortTs: string, createdAt: string, updatedAt: string, viewedAt: string | null, emailName: string | null, participants: Array<{ id: string, linkId: string, name: string | null, email: string | null, sfsPhotoUrl: string | null }>, attachments: Array<{ id: string, messageId: string, providerAttachmentId: string | null, filename: string | null, mimeType: string | null, sizeBytes: number | null, contentId: string | null, createdAt: string }>, labels: Array<{ id: string, linkId: string, providerLabelId: string, name: string, createdAt: string, messageListVisibility: string, labelListVisibility: string, type: string }>, properties: Array<{ propertyDefinitionId: string, displayName: string, dataType: string, isMultiSelect: boolean, specificEntityType: string | null, isSystem: boolean, isMetadata: boolean, value: { kind: string, boolValue: boolean | null, numberValue: number | null, stringValue: string | null, dateValue: string | null, selectOptionIds: Array<string>, links: Array<string>, entityReferences: Array<{ entityId: string, entityType: string, specificMessageId: string | null }> } | null }> }+ | { __typename: 'GraphqlSoupChat', id: string, ownerId: string, projectId: string | null, isPersistent: boolean, createdAt: string, updatedAt: string, viewedAt: string | null, deletedAt: string | null, chatName: string, properties: Array<{ propertyDefinitionId: string, displayName: string, dataType: GraphqlSoupDataType, isMultiSelect: boolean, specificEntityType: string | null, isSystem: boolean, isMetadata: boolean, value: { kind: string, boolValue: boolean | null, numberValue: number | null, stringValue: string | null, dateValue: string | null, selectOptionIds: Array<string>, links: Array<string>, entityReferences: Array<{ entityId: string, entityType: GraphqlSoupPropertyEntityType, specificMessageId: string | null }> } | null }> }+ | { __typename: 'GraphqlSoupCrmCompany', id: string, description: string | null, emailSync: boolean, hidden: boolean, createdAt: string, updatedAt: string, viewedAt: string | null, domains: Array<string>, crmTeamId: string, crmCompanyName: string | null, properties: Array<{ propertyDefinitionId: string, displayName: string, dataType: GraphqlSoupDataType, isMultiSelect: boolean, specificEntityType: string | null, isSystem: boolean, isMetadata: boolean, value: { kind: string, boolValue: boolean | null, numberValue: number | null, stringValue: string | null, dateValue: string | null, selectOptionIds: Array<string>, links: Array<string>, entityReferences: Array<{ entityId: string, entityType: GraphqlSoupPropertyEntityType, specificMessageId: string | null }> } | null }> }+ | { __typename: 'GraphqlSoupDocument', id: string, ownerId: string, fileType: string | null, projectId: string | null, createdAt: string, updatedAt: string, viewedAt: string | null, deletedAt: string | null, documentName: string, subType: { kind: string, isCompleted: boolean | null } | null, properties: Array<{ propertyDefinitionId: string, displayName: string, dataType: GraphqlSoupDataType, isMultiSelect: boolean, specificEntityType: string | null, isSystem: boolean, isMetadata: boolean, value: { kind: string, boolValue: boolean | null, numberValue: number | null, stringValue: string | null, dateValue: string | null, selectOptionIds: Array<string>, links: Array<string>, entityReferences: Array<{ entityId: string, entityType: GraphqlSoupPropertyEntityType, specificMessageId: string | null }> } | null }> }+ | { __typename: 'GraphqlSoupEmailThread', id: string, providerId: string | null, ownerId: string, inboxVisible: boolean, linkId: string | null, snippet: string | null, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null, isRead: boolean, isDraft: boolean, isImportant: boolean, projectId: string | null, sortTs: string, createdAt: string, updatedAt: string, viewedAt: string | null, emailName: string | null, participants: Array<{ id: string, linkId: string, name: string | null, email: string | null, sfsPhotoUrl: string | null }>, attachments: Array<{ id: string, messageId: string, providerAttachmentId: string | null, filename: string | null, mimeType: string | null, sizeBytes: number | null, contentId: string | null, createdAt: string }>, labels: Array<{ id: string, linkId: string, providerLabelId: string, name: string, createdAt: string, messageListVisibility: string, labelListVisibility: string, type: string }>, properties: Array<{ propertyDefinitionId: string, displayName: string, dataType: GraphqlSoupDataType, isMultiSelect: boolean, specificEntityType: string | null, isSystem: boolean, isMetadata: boolean, value: { kind: string, boolValue: boolean | null, numberValue: number | null, stringValue: string | null, dateValue: string | null, selectOptionIds: Array<string>, links: Array<string>, entityReferences: Array<{ entityId: string, entityType: GraphqlSoupPropertyEntityType, specificMessageId: string | null }> } | null }> }| { __typename: 'GraphqlSoupForeignEntity', id: string, foreignEntityId: string, foreignEntitySource: string, storedForId: string, storedForAuthEntity: string, metadata: unknown, createdAt: string, updatedAt: string }- | { __typename: 'GraphqlSoupProject', id: string, ownerId: string, parentId: string | null, createdAt: string, updatedAt: string, viewedAt: string | null, deletedAt: string | null, projectName: string, properties: Array<{ propertyDefinitionId: string, displayName: string, dataType: string, isMultiSelect: boolean, specificEntityType: string | null, isSystem: boolean, isMetadata: boolean, value: { kind: string, boolValue: boolean | null, numberValue: number | null, stringValue: string | null, dateValue: string | null, selectOptionIds: Array<string>, links: Array<string>, entityReferences: Array<{ entityId: string, entityType: string, specificMessageId: string | null }> } | null }> }+ | { __typename: 'GraphqlSoupProject', id: string, ownerId: string, parentId: string | null, createdAt: string, updatedAt: string, viewedAt: string | null, deletedAt: string | null, projectName: string, properties: Array<{ propertyDefinitionId: string, displayName: string, dataType: GraphqlSoupDataType, isMultiSelect: boolean, specificEntityType: string | null, isSystem: boolean, isMetadata: boolean, value: { kind: string, boolValue: boolean | null, numberValue: number | null, stringValue: string | null, dateValue: string | null, selectOptionIds: Array<string>, links: Array<string>, entityReferences: Array<{ entityId: string, entityType: GraphqlSoupPropertyEntityType, specificMessageId: string | null }> } | null }> }}> } } };-export type SoupPropertyFieldsFragment = { propertyDefinitionId: string, displayName: string, dataType: string, isMultiSelect: boolean, specificEntityType: string | null, isSystem: boolean, isMetadata: boolean, value: { kind: string, boolValue: boolean | null, numberValue: number | null, stringValue: string | null, dateValue: string | null, selectOptionIds: Array<string>, links: Array<string>, entityReferences: Array<{ entityId: string, entityType: string, specificMessageId: string | null }> } | null };+export type SoupPropertyFieldsFragment = { propertyDefinitionId: string, displayName: string, dataType: GraphqlSoupDataType, isMultiSelect: boolean, specificEntityType: string | null, isSystem: boolean, isMetadata: boolean, value: { kind: string, boolValue: boolean | null, numberValue: number | null, stringValue: string | null, dateValue: string | null, selectOptionIds: Array<string>, links: Array<string>, entityReferences: Array<{ entityId: string, entityType: GraphqlSoupPropertyEntityType, specificMessageId: string | null }> } | null };export type SoupChannelMessageFieldsFragment = { id: string, threadId: string | null, senderId: string, content: string, createdAt: string, updatedAt: string, deletedAt: string | null, mentions: Array<string> };diff --git a/rust/cloud-storage/graphql_soup/src/objects.rs b/rust/cloud-storage/graphql_soup/src/objects.rsindex 4d1455767a..df7f1c3025 100644--- a/rust/cloud-storage/graphql_soup/src/objects.rs+++ b/rust/cloud-storage/graphql_soup/src/objects.rs@@ -347,6 +347,44 @@ async fn load_entity_notifications(.collect())}+#[derive(Enum, Clone, Copy, PartialEq, Eq)]+pub enum GraphqlSoupDataType {+ /// Boolean true/false values.+ Boolean,+ /// Date and time values.+ Date,+ /// Numeric values.+ Number,+ /// String/text values.+ String,+ /// Select property with numeric options.+ SelectNumber,+ /// Select property with string options.+ SelectString,+ /// Tag property - user- or team-scoped colored labels (always multi-select).+ Tag,+ /// Entity reference property.+ Entity,+ /// Link value Property.+ Link,+}++impl GraphqlSoupDataType {+ fn from_properties_data_type(dt: models_properties::DataType) -> Self {+ match dt {+ models_properties::DataType::Boolean => Self::Boolean,+ models_properties::DataType::Date => Self::Date,+ models_properties::DataType::Number => Self::Number,+ models_properties::DataType::String => Self::String,+ models_properties::DataType::SelectNumber => Self::SelectNumber,+ models_properties::DataType::SelectString => Self::SelectString,+ models_properties::DataType::Tag => Self::Tag,+ models_properties::DataType::Entity => Self::Entity,+ models_properties::DataType::Link => Self::Link,+ }+ }+}+/// GraphQL property attached to a Soup entity.pub struct GraphqlSoupProperty(SoupProperty);@@ -364,8 +402,8 @@ impl GraphqlSoupProperty {&self.0.definition.display_name}- async fn data_type(&self) -> String {- format!("{:?}", self.0.definition.data_type)+ async fn data_type(&self) -> GraphqlSoupDataType {+ GraphqlSoupDataType::from_properties_data_type(self.0.definition.data_type)}async fn is_multi_select(&self) -> bool {@@ -489,15 +527,42 @@ impl From<&PropertyValue> for GraphqlSoupPropertyValue {#[derive(SimpleObject)]pub struct GraphqlSoupPropertyEntityReference {entity_id: String,- entity_type: String,+ entity_type: GraphqlSoupPropertyEntityType,specific_message_id: Option<ID>,}+#[derive(Enum, Clone, Copy, PartialEq, Eq)]+pub enum GraphqlSoupPropertyEntityType {+ Channel,+ Chat,+ Company,+ Document,+ Project,+ Task,+ Thread,+ User,+}++impl GraphqlSoupPropertyEntityType {+ fn from_property_entity(entity: models_properties::EntityType) -> Self {+ match entity {+ models_properties::EntityType::Channel => Self::Channel,+ models_properties::EntityType::Chat => Self::Chat,+ models_properties::EntityType::Company => Self::Company,+ models_properties::EntityType::Document => Self::Document,+ models_properties::EntityType::Project => Self::Project,+ models_properties::EntityType::Task => Self::Task,+ models_properties::EntityType::Thread => Self::Thread,+ models_properties::EntityType::User => Self::User,+ }+ }+}+impl From<&models_properties::EntityReference> for GraphqlSoupPropertyEntityReference {fn from(value: &models_properties::EntityReference) -> Self {Self {entity_id: value.entity_id.clone(),- entity_type: value.entity_type.to_string(),+ entity_type: GraphqlSoupPropertyEntityType::from_property_entity(value.entity_type),specific_message_id: value.specific_message_id.map(|message_id| ID(message_id.to_string())),diff --git a/rust/cloud-storage/schema.graphql b/rust/cloud-storage/schema.graphqlindex e3dd5ecd2b..d161ae29eb 100644--- a/rust/cloud-storage/schema.graphql+++ b/rust/cloud-storage/schema.graphql@@ -446,6 +446,45 @@ type GraphqlSoupCrmCompany {notifications: [GraphqlSoupNotification!]!}+enum GraphqlSoupDataType {+ """+ Boolean true/false values.+ """+ BOOLEAN+ """+ Date and time values.+ """+ DATE+ """+ Numeric values.+ """+ NUMBER+ """+ String/text values.+ """+ STRING+ """+ Select property with numeric options.+ """+ SELECT_NUMBER+ """+ Select property with string options.+ """+ SELECT_STRING+ """+ Tag property - user- or team-scoped colored labels (always multi-select).+ """+ TAG+ """+ Entity reference property.+ """+ ENTITY+ """+ Link value Property.+ """+ LINK+}+type GraphqlSoupDocument {id: ID!name: String!@@ -631,7 +670,7 @@ type GraphqlSoupProperty {"""propertyDefinitionId: ID!displayName: String!- dataType: String!+ dataType: GraphqlSoupDataType!isMultiSelect: Boolean!specificEntityType: StringisSystem: Boolean!@@ -644,10 +683,21 @@ GraphQL entity reference stored in a property value."""type GraphqlSoupPropertyEntityReference {entityId: String!- entityType: String!+ entityType: GraphqlSoupPropertyEntityType!specificMessageId: ID}+enum GraphqlSoupPropertyEntityType {+ CHANNEL+ CHAT+ COMPANY+ DOCUMENT+ PROJECT+ TASK+ THREAD+ USER+}+"""GraphQL representation of a property value."""