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
add [properties-fe] - system properties in properties panel (#500)
Daniel Kweon0d47370fa134
diff --git a/js/app/packages/core/component/Properties/api/converters.ts b/js/app/packages/core/component/Properties/api/converters.tsindex 65026397ce..81dcaeef8e 100644--- a/js/app/packages/core/component/Properties/api/converters.ts+++ b/js/app/packages/core/component/Properties/api/converters.ts@@ -40,6 +40,7 @@ export function entityPropertyFromApi(displayName: apiProperty.definition.display_name,isMultiSelect: apiProperty.definition.is_multi_select,isMetadata: apiProperty.definition.is_metadata,+ isSystemProperty: apiProperty.definition.is_system,options: apiProperty.options ?? undefined,owner: apiProperty.definition.owner,specificEntityType: apiProperty.definition.specific_entity_type,diff --git a/js/app/packages/core/component/Properties/component/modal/EditPropertyValueModal.tsx b/js/app/packages/core/component/Properties/component/modal/EditPropertyValueModal.tsxindex 12a6eff2cc..ab456e89c9 100644--- a/js/app/packages/core/component/Properties/component/modal/EditPropertyValueModal.tsx+++ b/js/app/packages/core/component/Properties/component/modal/EditPropertyValueModal.tsx@@ -249,7 +249,9 @@ export function EditPropertyValueModal(props: PropertyEditorProps) {selectedOptions={() => editorState().selectedOptions}onToggleOption={toggleOption}onRetry={fetchOptions}- onAddOption={addOption}+ onAddOption={+ props.property.isSystemProperty ? undefined : addOption+ }/></Show></div>diff --git a/js/app/packages/core/component/Properties/component/modal/shared/PropertyOptionSelector.tsx b/js/app/packages/core/component/Properties/component/modal/shared/PropertyOptionSelector.tsxindex 082ab88c31..85dd6f45c3 100644--- a/js/app/packages/core/component/Properties/component/modal/shared/PropertyOptionSelector.tsx+++ b/js/app/packages/core/component/Properties/component/modal/shared/PropertyOptionSelector.tsx@@ -187,9 +187,11 @@ export const PropertyOptionSelector = (props: SelectOptionsProps) => {value={searchQuery()}onInput={(e) => setSearchQuery(e.currentTarget.value)}placeholder={- props.property.valueType === 'SELECT_NUMBER'- ? 'Search or add new number...'- : 'Search or add new option...'+ props.onAddOption+ ? props.property.valueType === 'SELECT_NUMBER'+ ? 'Search or add new number...'+ : 'Search or add new option...'+ : 'Search options...'}class={`${PROPERTY_STYLES.input.search} relative z-0`}/>@@ -199,14 +201,16 @@ export const PropertyOptionSelector = (props: SelectOptionsProps) => {when={props.options.length > 0}fallback={<div class="space-y-3">- <Show when={isValidNewOption() && props.onAddOption}>+ <Show+ when={isValidNewOption() && props.onAddOption}+ fallback={+ <div class="text-center py-6 text-ink-muted text-sm">+ No options available+ </div>+ }+ ><AddOptionButton /></Show>- <Show when={!isValidNewOption()}>- <div class="text-center py-6 text-ink-muted text-sm">- No options available- </div>- </Show></div>}>@@ -218,7 +222,7 @@ export const PropertyOptionSelector = (props: SelectOptionsProps) => {<Showwhen={filteredOptions().length > 0}fallback={- <Show when={!isValidNewOption()}>+ <Show when={!isValidNewOption() || !props.onAddOption}><div class="text-center py-4 text-ink-muted text-sm">No options match your search</div>diff --git a/js/app/packages/core/component/Properties/component/panel/PropertyGrid.tsx b/js/app/packages/core/component/Properties/component/panel/PropertyGrid.tsxindex 9a691d7265..d5a6ae6af9 100644--- a/js/app/packages/core/component/Properties/component/panel/PropertyGrid.tsx+++ b/js/app/packages/core/component/Properties/component/panel/PropertyGrid.tsx@@ -1,4 +1,6 @@+import { useBlockName } from '@core/block';import { type Component, createMemo, For, Show } from 'solid-js';+import { getBuiltinPropertyIds } from '../../constants';import { usePropertiesContext } from '../../context/PropertiesContext';import type { Property } from '../../types';import { PropertyRow } from './PropertyRow';@@ -9,12 +11,14 @@ interface PropertiesListProps {export const PropertyGrid: Component<PropertiesListProps> = (props) => {const { openPropertyEditor, openDatePicker } = usePropertiesContext();+ const blockName = useBlockName();+ const builtinPropertyIds = getBuiltinPropertyIds(blockName);- // Single pass through properties array to split into metadata and editable- // More efficient than two separate filter operations+ // Single pass through properties array to split into metadata, builtin, and user propertiesconst propertyGroups = createMemo(() => {const metadata: Property[] = [];- const editable: Property[] = [];+ const builtinProperties: Property[] = [];+ const userProperties: Property[] = [];for (const prop of props.properties) {if (prop.isMetadata) {@@ -22,18 +26,34 @@ export const PropertyGrid: Component<PropertiesListProps> = (props) => {if (prop.value != null) {metadata.push(prop);}+ } else if (builtinPropertyIds.includes(prop.propertyDefinitionId)) {+ builtinProperties.push(prop);} else {- editable.push(prop);+ userProperties.push(prop);}}- return { metadata, editable };+ // Sort builtin properties by the order defined in constants+ builtinProperties.sort((a, b) => {+ const indexA = builtinPropertyIds.indexOf(a.propertyDefinitionId);+ const indexB = builtinPropertyIds.indexOf(b.propertyDefinitionId);+ return indexA - indexB;+ });++ return { metadata, builtinProperties, userProperties };});- const showSeparator = createMemo(+ const showSeparatorAboveBuiltin = createMemo(() =>propertyGroups().metadata.length > 0 &&- propertyGroups().editable.length > 0+ propertyGroups().builtinProperties.length > 0+ );++ const showSeparatorAboveUser = createMemo(+ () =>+ (propertyGroups().metadata.length > 0 ||+ propertyGroups().builtinProperties.length > 0) &&+ propertyGroups().userProperties.length > 0);const handleValueClick = (property: Property, anchor?: HTMLElement) => {@@ -59,6 +79,7 @@ export const PropertyGrid: Component<PropertiesListProps> = (props) => {}><div class="grid grid-cols-[minmax(120px,50%)_minmax(150px,1fr)] gap-x-4 gap-y-3 pt-2 min-w-fit">+ {/* Metadata properties */}<Show when={propertyGroups().metadata.length > 0}><For each={propertyGroups().metadata}>{(property) => (@@ -70,12 +91,31 @@ export const PropertyGrid: Component<PropertiesListProps> = (props) => {</For></Show>- <Show when={showSeparator()}>- <div class="col-span-2 border-t border-edge my-4" />+ {/* Builtin properties (block-specific, non-removable) */}+ <Show when={propertyGroups().builtinProperties.length > 0}>+ {/* Separator above builtin */}+ <Show when={showSeparatorAboveBuiltin()}>+ <div class="col-span-2 border-t border-edge my-4" />+ </Show>++ <For each={propertyGroups().builtinProperties}>+ {(property) => (+ <PropertyRow+ property={property}+ onValueClick={handleValueClick}+ />+ )}+ </For></Show>- <Show when={propertyGroups().editable.length > 0}>- <For each={propertyGroups().editable}>+ {/* User properties */}+ <Show when={propertyGroups().userProperties.length > 0}>+ {/* Separator between above user */}+ <Show when={showSeparatorAboveUser()}>+ <div class="col-span-2 border-t border-edge my-4" />+ </Show>++ <For each={propertyGroups().userProperties}>{(property) => (<PropertyRowproperty={property}diff --git a/js/app/packages/core/component/Properties/component/panel/PropertyLabel.tsx b/js/app/packages/core/component/Properties/component/panel/PropertyLabel.tsxindex 7a8ca632c6..01b0cde6c0 100644--- a/js/app/packages/core/component/Properties/component/panel/PropertyLabel.tsx+++ b/js/app/packages/core/component/Properties/component/panel/PropertyLabel.tsx@@ -1,3 +1,4 @@+import { useBlockName } from '@core/block';import { IconButton } from '@core/component/IconButton';import DeleteIcon from '@icon/bold/x-bold.svg';import PinIcon from '@icon/regular/push-pin.svg';@@ -6,6 +7,7 @@ import XIcon from '@icon/regular/x.svg';import { Dialog } from '@kobalte/core/dialog';import { type Component, createMemo, createSignal, Show } from 'solid-js';import { deleteEntityProperty } from '../../api';+import { getBuiltinPropertyIds } from '../../constants';import { usePropertiesContext } from '../../context/PropertiesContext';import type { Property } from '../../types';import { PropertyDataTypeIcon } from '../../utils';@@ -23,6 +25,10 @@ export const PropertyLabel: Component<PropertyLabelProps> = (props) => {onPropertyUnpinned,pinnedPropertyIds,} = usePropertiesContext();+ const blockName = useBlockName();+ const isBuiltin = getBuiltinPropertyIds(blockName).includes(+ props.property.propertyDefinitionId+ );const isPinned = createMemo(() => pinnedPropertyIds?.()?.includes(props.property.propertyId) ?? false@@ -99,20 +105,22 @@ export const PropertyLabel: Component<PropertyLabelProps> = (props) => {</div></Show>- <div- class={`flex-shrink-0 transition-opacity ${- isHovered() ? 'opacity-100' : 'opacity-0'- }`}- >- <IconButton- icon={DeleteIcon}- theme="clear"- size="xs"- class="!text-failure hover:!bg-failure/15"- tooltip={{ label: 'Remove property' }}- onClick={handleDeleteClick}- />- </div>+ <Show when={!isBuiltin}>+ <div+ class={`flex-shrink-0 transition-opacity ${+ isHovered() ? 'opacity-100' : 'opacity-0'+ }`}+ >+ <IconButton+ icon={DeleteIcon}+ theme="clear"+ size="xs"+ class="!text-failure hover:!bg-failure/15"+ tooltip={{ label: 'Remove property' }}+ onClick={handleDeleteClick}+ />+ </div>+ </Show></Show></div>diff --git a/js/app/packages/core/component/Properties/constants.ts b/js/app/packages/core/component/Properties/constants.tsindex b3b5646800..869f5f2c07 100644--- a/js/app/packages/core/component/Properties/constants.ts+++ b/js/app/packages/core/component/Properties/constants.ts@@ -3,8 +3,64 @@* For styling constants, see styles/styles.ts (PROPERTY_STYLES)*/+import type { BlockName } from '@core/block';+export const NUMBER_DECIMAL_PLACES = 4; // Matches backend precision+/**+ * System property definition IDs (from backend seed migration).+ * These are stable UUIDs that match the database.+ */+export const SYSTEM_PROPERTY_IDS = {+ // Task properties+ ASSIGNEES: '00000001-0000-0000-0000-000000000001',+ STATUS: '00000001-0000-0000-0000-000000000002',+ PRIORITY: '00000001-0000-0000-0000-000000000003',+ DUE_DATE: '00000001-0000-0000-0000-000000000004',+ PARENT_TASK: '00000001-0000-0000-0000-000000000005',+ SUBTASKS: '00000001-0000-0000-0000-000000000006',+ DEPENDS_ON: '00000001-0000-0000-0000-000000000007',+ EFFORT: '00000001-0000-0000-0000-000000000008',+ STORY_POINTS: '00000001-0000-0000-0000-000000000009',+ RELEVANT_DOCUMENTS: '00000001-0000-0000-0000-00000000000a',+ // Email attachment properties+ SOURCE: '00000001-0000-0000-0000-00000000000b',+ COMPANIES: '00000001-0000-0000-0000-00000000000c',+ SENDER: '00000001-0000-0000-0000-00000000000d',+ RECIPIENTS: '00000001-0000-0000-0000-00000000000e',+ SUBJECT: '00000001-0000-0000-0000-00000000000f',+} as const;++/**+ * Builtin property definition IDs by block type.+ * These properties are automatically attached to entities of this block type+ * and cannot be removed. Order matches backend (display order).+ */+export const BUILTIN_PROPERTIES_BY_BLOCK: Partial<+ Record<BlockName, readonly string[]>+> = {+ task: [+ SYSTEM_PROPERTY_IDS.ASSIGNEES,+ SYSTEM_PROPERTY_IDS.STATUS,+ SYSTEM_PROPERTY_IDS.PRIORITY,+ SYSTEM_PROPERTY_IDS.DUE_DATE,+ SYSTEM_PROPERTY_IDS.PARENT_TASK,+ SYSTEM_PROPERTY_IDS.SUBTASKS,+ SYSTEM_PROPERTY_IDS.DEPENDS_ON,+ SYSTEM_PROPERTY_IDS.EFFORT,+ SYSTEM_PROPERTY_IDS.STORY_POINTS,+ SYSTEM_PROPERTY_IDS.RELEVANT_DOCUMENTS,+ ],+} as const;++/**+ * Get the builtin property definition IDs for a block type.+ * Returns empty array if block has no builtin properties.+ */+export function getBuiltinPropertyIds(blockType: BlockName): readonly string[] {+ return BUILTIN_PROPERTIES_BY_BLOCK[blockType] ?? [];+}+export const FOCUS_CONFIG = {DELAY: 100, // Delay before focusing element after it's connected to DOM} as const;diff --git a/js/app/packages/core/component/Properties/types.ts b/js/app/packages/core/component/Properties/types.tsindex c11add6a13..5c5632183c 100644--- a/js/app/packages/core/component/Properties/types.ts+++ b/js/app/packages/core/component/Properties/types.ts@@ -48,6 +48,7 @@ export type Property = {displayName: string;isMultiSelect: boolean;isMetadata?: boolean;+ isSystemProperty?: boolean;options?: PropertyOption[];owner: PropertyOwner;specificEntityType?: EntityType | null;diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/listPropertiesParams.ts b/js/app/packages/service-clients/service-properties/generated/schemas/listPropertiesParams.tsindex 21d561a2c8..602d3d6580 100644--- a/js/app/packages/service-clients/service-properties/generated/schemas/listPropertiesParams.ts+++ b/js/app/packages/service-clients/service-properties/generated/schemas/listPropertiesParams.ts@@ -8,7 +8,7 @@ import type { PropertyScope } from './propertyScope';export type ListPropertiesParams = {/**- * Filter by scope: 'user' for user-scoped only, 'org' for organization-scoped only, 'all' for both scopes+ * Filter by scope: 'user', 'org', 'system', or 'all'*/scope: PropertyScope;/**diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyDefinition.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyDefinition.tsindex e1fab003e9..af8e6445a3 100644--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyDefinition.ts+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyDefinition.ts@@ -20,6 +20,8 @@ export interface PropertyDefinition {Not stored in database - computed at service layer. */is_metadata: boolean;is_multi_select: boolean;+ /** Flag to indicate if this is a system property (stored in DB). */+ is_system: boolean;owner: PropertyOwner;specific_entity_type?: PropertyDefinitionSpecificEntityType;updated_at: string;diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyOwner.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyOwner.tsindex 9bf3f34820..6eb86c2968 100644--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyOwner.ts+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyOwner.ts@@ -7,8 +7,9 @@import type { PropertyOwnerOneOf } from './propertyOwnerOneOf';import type { PropertyOwnerOneOfThree } from './propertyOwnerOneOfThree';import type { PropertyOwnerOneOfFive } from './propertyOwnerOneOfFive';+import type { PropertyOwnerOneOfSeven } from './propertyOwnerOneOfSeven';/**- * Defines who owns a property - user-scoped, org-scoped, or both.+ * Defines who owns a property - user-scoped, org-scoped, system, or both user and org.*/-export type PropertyOwner = PropertyOwnerOneOf | PropertyOwnerOneOfThree | PropertyOwnerOneOfFive;+export type PropertyOwner = PropertyOwnerOneOf | PropertyOwnerOneOfThree | PropertyOwnerOneOfFive | PropertyOwnerOneOfSeven;diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyOwnerOneOfSeven.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyOwnerOneOfSeven.tsnew file mode 100644index 0000000000..0c745f7b9f--- /dev/null+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyOwnerOneOfSeven.ts@@ -0,0 +1,14 @@+/**+ * Generated by orval v7.13.0 🍺+ * Do not edit manually.+ * properties_service+ * OpenAPI spec version: 0.1.0+ */+import type { PropertyOwnerOneOfSevenScope } from './propertyOwnerOneOfSevenScope';++/**+ * System-owned property (no user or org owner)+ */+export type PropertyOwnerOneOfSeven = {+ scope: PropertyOwnerOneOfSevenScope;+};diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyOwnerOneOfSevenScope.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyOwnerOneOfSevenScope.tsnew file mode 100644index 0000000000..0ea9037965--- /dev/null+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyOwnerOneOfSevenScope.ts@@ -0,0 +1,14 @@+/**+ * Generated by orval v7.13.0 🍺+ * Do not edit manually.+ * properties_service+ * OpenAPI spec version: 0.1.0+ */++export type PropertyOwnerOneOfSevenScope = typeof PropertyOwnerOneOfSevenScope[keyof typeof PropertyOwnerOneOfSevenScope];+++// eslint-disable-next-line @typescript-eslint/no-redeclare+export const PropertyOwnerOneOfSevenScope = {+ system: 'system',+} as const;diff --git a/js/app/packages/service-clients/service-properties/generated/schemas/propertyScope.ts b/js/app/packages/service-clients/service-properties/generated/schemas/propertyScope.tsindex bdc9134a72..ae4a579d19 100644--- a/js/app/packages/service-clients/service-properties/generated/schemas/propertyScope.ts+++ b/js/app/packages/service-clients/service-properties/generated/schemas/propertyScope.ts@@ -15,5 +15,6 @@ export type PropertyScope = typeof PropertyScope[keyof typeof PropertyScope];export const PropertyScope = {user: 'user',org: 'org',+ system: 'system',all: 'all',} as const;diff --git a/js/app/packages/service-clients/service-properties/generated/zod.ts b/js/app/packages/service-clients/service-properties/generated/zod.tsindex 9680d7c391..c95f717383 100644--- a/js/app/packages/service-clients/service-properties/generated/zod.ts+++ b/js/app/packages/service-clients/service-properties/generated/zod.ts@@ -13,7 +13,7 @@ import {* @summary List property definitions with flexible filtering*/export const listPropertiesQueryParams = zod.object({- "scope": zod.enum(['user', 'org', 'all']).describe('Filter by scope: \'user\' for user-scoped only, \'org\' for organization-scoped only, \'all\' for both scopes'),+ "scope": zod.enum(['user', 'org', 'system', 'all']).describe('Filter by scope: \'user\', \'org\', \'system\', or \'all\''),"include_options": zod.boolean().optional().describe('Whether to include property options in the response')})@@ -24,6 +24,7 @@ export const listPropertiesResponseItem = zod.union([zod.object({"id": zod.string().uuid(),"is_metadata": zod.boolean().describe('Flag to indicate if this is a system-generated metadata property.\nNot stored in database - computed at service layer.'),"is_multi_select": zod.boolean(),+ "is_system": zod.boolean().describe('Flag to indicate if this is a system property (stored in DB).'),"owner": zod.union([zod.object({"scope": zod.enum(['user']),"user_id": zod.string()@@ -34,7 +35,9 @@ export const listPropertiesResponseItem = zod.union([zod.object({"organization_id": zod.number(),"scope": zod.enum(['user_and_organization']),"user_id": zod.string()-}).describe('Both user and organization-scoped')]).describe('Defines who owns a property - user-scoped, org-scoped, or both.'),+}).describe('Both user and organization-scoped'),zod.object({+ "scope": zod.enum(['system'])+}).describe('System-owned property (no user or org owner)')]).describe('Defines who owns a property - user-scoped, org-scoped, system, or both user and org.'),"specific_entity_type": zod.union([zod.null(),zod.enum(['CHANNEL', 'CHAT', 'COMPANY', 'DOCUMENT', 'PROJECT', 'TASK', 'THREAD', 'USER']).describe('Type of entity that can be referenced by entity properties.')]).optional(),"updated_at": zod.string().datetime({})}).describe('Property definition model (service representation).'),zod.object({@@ -45,6 +48,7 @@ export const listPropertiesResponseItem = zod.union([zod.object({"id": zod.string().uuid(),"is_metadata": zod.boolean().describe('Flag to indicate if this is a system-generated metadata property.\nNot stored in database - computed at service layer.'),"is_multi_select": zod.boolean(),+ "is_system": zod.boolean().describe('Flag to indicate if this is a system property (stored in DB).'),"owner": zod.union([zod.object({"scope": zod.enum(['user']),"user_id": zod.string()@@ -55,7 +59,9 @@ export const listPropertiesResponseItem = zod.union([zod.object({"organization_id": zod.number(),"scope": zod.enum(['user_and_organization']),"user_id": zod.string()-}).describe('Both user and organization-scoped')]).describe('Defines who owns a property - user-scoped, org-scoped, or both.'),+}).describe('Both user and organization-scoped'),zod.object({+ "scope": zod.enum(['system'])+}).describe('System-owned property (no user or org owner)')]).describe('Defines who owns a property - user-scoped, org-scoped, system, or both user and org.'),"specific_entity_type": zod.union([zod.null(),zod.enum(['CHANNEL', 'CHAT', 'COMPANY', 'DOCUMENT', 'PROJECT', 'TASK', 'THREAD', 'USER']).describe('Type of entity that can be referenced by entity properties.')]).optional(),"updated_at": zod.string().datetime({})}).describe('Property definition model (service representation).'),@@ -90,7 +96,9 @@ export const createPropertyDefinitionBody = zod.union([zod.object({"organization_id": zod.number(),"scope": zod.enum(['user_and_organization']),"user_id": zod.string()-}).describe('Both user and organization-scoped')]).describe('Defines who owns a property - user-scoped, org-scoped, or both.').and(zod.object({+}).describe('Both user and organization-scoped'),zod.object({+ "scope": zod.enum(['system'])+}).describe('System-owned property (no user or org owner)')]).describe('Defines who owns a property - user-scoped, org-scoped, system, or both user and org.').and(zod.object({"data_type": zod.union([zod.object({"type": zod.enum(['boolean'])}).describe('Boolean true/false values.'),zod.object({@@ -210,6 +218,7 @@ export const getEntityPropertiesResponse = zod.object({"id": zod.string().uuid(),"is_metadata": zod.boolean().describe('Flag to indicate if this is a system-generated metadata property.\nNot stored in database - computed at service layer.'),"is_multi_select": zod.boolean(),+ "is_system": zod.boolean().describe('Flag to indicate if this is a system property (stored in DB).'),"owner": zod.union([zod.object({"scope": zod.enum(['user']),"user_id": zod.string()@@ -220,7 +229,9 @@ export const getEntityPropertiesResponse = zod.object({"organization_id": zod.number(),"scope": zod.enum(['user_and_organization']),"user_id": zod.string()-}).describe('Both user and organization-scoped')]).describe('Defines who owns a property - user-scoped, org-scoped, or both.'),+}).describe('Both user and organization-scoped'),zod.object({+ "scope": zod.enum(['system'])+}).describe('System-owned property (no user or org owner)')]).describe('Defines who owns a property - user-scoped, org-scoped, system, or both user and org.'),"specific_entity_type": zod.union([zod.null(),zod.enum(['CHANNEL', 'CHAT', 'COMPANY', 'DOCUMENT', 'PROJECT', 'TASK', 'THREAD', 'USER']).describe('Type of entity that can be referenced by entity properties.')]).optional(),"updated_at": zod.string().datetime({})}).describe('Property definition model (service representation).'),diff --git a/js/app/packages/service-clients/service-properties/openapi.json b/js/app/packages/service-clients/service-properties/openapi.jsonindex 03809148a5..9306dafcb8 100644--- a/js/app/packages/service-clients/service-properties/openapi.json+++ b/js/app/packages/service-clients/service-properties/openapi.json@@ -17,7 +17,7 @@{"name": "scope","in": "query",- "description": "Filter by scope: 'user' for user-scoped only, 'org' for organization-scoped only, 'all' for both scopes",+ "description": "Filter by scope: 'user', 'org', 'system', or 'all'","required": true,"schema": { "$ref": "#/components/schemas/PropertyScope" }},@@ -92,6 +92,7 @@"responses": {"204": { "description": "Property definition deleted successfully" },"400": { "description": "Invalid property ID" },+ "403": { "description": "Cannot modify system properties" },"404": { "description": "Property definition not found" },"500": { "description": "Internal server error" }}@@ -160,6 +161,7 @@}},"400": { "description": "Invalid request" },+ "403": { "description": "Cannot modify system properties" },"404": { "description": "Property not found" },"500": { "description": "Internal server error" }}@@ -189,6 +191,7 @@"responses": {"204": { "description": "Property option deleted successfully" },"400": { "description": "Invalid option ID" },+ "403": { "description": "Cannot modify system properties" },"404": { "description": "Property option not found" },"500": { "description": "Internal server error" }}@@ -624,6 +627,7 @@"is_multi_select","created_at","updated_at",+ "is_system","is_metadata"],"properties": {@@ -636,6 +640,10 @@"description": "Flag to indicate if this is a system-generated metadata property.\nNot stored in database - computed at service layer."},"is_multi_select": { "type": "boolean" },+ "is_system": {+ "type": "boolean",+ "description": "Flag to indicate if this is a system property (stored in DB)."+ },"owner": { "$ref": "#/components/schemas/PropertyOwner" },"specific_entity_type": {"oneOf": [@@ -769,14 +777,20 @@"scope": { "type": "string", "enum": ["user_and_organization"] },"user_id": { "type": "string" }}+ },+ {+ "type": "object",+ "description": "System-owned property (no user or org owner)",+ "required": ["scope"],+ "properties": { "scope": { "type": "string", "enum": ["system"] } }}],- "description": "Defines who owns a property - user-scoped, org-scoped, or both."+ "description": "Defines who owns a property - user-scoped, org-scoped, system, or both user and org."},"PropertyScope": {"type": "string","description": "Scope filter for property queries",- "enum": ["user", "org", "all"]+ "enum": ["user", "org", "system", "all"]},"PropertyValue": {"oneOf": [