@stndrds/schema 1.0.0-alpha.191 → 1.0.0-alpha.193

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/index.d.mts CHANGED
@@ -765,7 +765,7 @@ type Action = "read" | "create" | "update" | "delete" | "manage" | "observe";
765
765
  * - `workspace`: Tenant settings and workspace-level configuration
766
766
  * - `architect`: Architect settings, templates, and configurations
767
767
  */
768
- type SystemResource = "people" | "workspace" | "architect" | "feature-flags" | "files" | "views" | "forms" | "documents" | "audit" | "api-keys" | "session";
768
+ type SystemResource = "people" | "workspace" | "architect" | "feature-flags" | "files" | "views" | "forms" | "documents" | "audit" | "api-keys" | "env-vars" | "session";
769
769
  /**
770
770
  * Preset access levels for simplified permission configuration.
771
771
  * - `full`: All CRUD actions
@@ -1033,6 +1033,27 @@ interface CreateApiKeyInput {
1033
1033
  actorMetadata?: Record<string, unknown>;
1034
1034
  }
1035
1035
 
1036
+ /** Scope of an env var — consumer type + ID (e.g. agent definition). */
1037
+ interface EnvVarScope {
1038
+ type: string;
1039
+ id: string;
1040
+ }
1041
+ /**
1042
+ * Returned by list endpoints.
1043
+ * The encrypted value is NEVER included — only metadata.
1044
+ * `isSet: true` is the only indicator that a value exists.
1045
+ */
1046
+ interface EnvVarEntry {
1047
+ id: string;
1048
+ key: string;
1049
+ isSensitive: boolean;
1050
+ isSet: true;
1051
+ scopeType: string;
1052
+ scopeId: string | null;
1053
+ createdAt: string;
1054
+ updatedAt: string;
1055
+ }
1056
+
1036
1057
  /**
1037
1058
  * Type of mentionable entity
1038
1059
  */
@@ -1235,6 +1256,22 @@ interface AuditServiceOptions {
1235
1256
  */
1236
1257
  flushIntervalMs?: number;
1237
1258
  }
1259
+ /**
1260
+ * A single field-level history entry, derived from an audit log change.
1261
+ * Client-safe — no tenant or internal IDs.
1262
+ */
1263
+ interface FieldHistoryEntry {
1264
+ id: string;
1265
+ field: string;
1266
+ oldValue: unknown;
1267
+ newValue: unknown;
1268
+ oldLabel?: string;
1269
+ newLabel?: string;
1270
+ oldLabels?: string[];
1271
+ newLabels?: string[];
1272
+ actorEmail?: string;
1273
+ createdAt: Date;
1274
+ }
1238
1275
 
1239
1276
  type AgentRunStatus = "pending" | "running" | "completed" | "failed" | "cancelled" | "paused";
1240
1277
  type AgentSessionStatus = "active" | "idle" | "completed" | "failed" | "cancelled" | "waiting_human" | "timeout" | "expired";
@@ -3367,6 +3404,8 @@ declare const SYSTEM_RESOURCES: {
3367
3404
  readonly AUDIT: "audit";
3368
3405
  /** Programmatic access keys */
3369
3406
  readonly API_KEYS: "api-keys";
3407
+ /** Environment variables for agents */
3408
+ readonly ENV_VARS: "env-vars";
3370
3409
  /** Agent session visibility — required for an agent actor to read its own sessions */
3371
3410
  readonly SESSION: "session";
3372
3411
  };
@@ -6679,4 +6718,4 @@ interface QualifiedRuleValidationContext {
6679
6718
  }
6680
6719
  declare function validateQualifiedRule(rule: FilterRule, context: QualifiedRuleValidationContext): void;
6681
6720
 
6682
- export { type AIAvailableModel, type AIBatchQuestion, type AIBatchQuestionAnswer, type AIBatchQuestionOption, type AIChatMessage, type AIChatMessagePart, type AIChatMessagePartType, type AICompactionSummary, type AIMemoryEntry, type AIMemoryType, type AIMessageRole, type AIProviderMetrics, type AIQuestion, type AIQuestionAnswer, type AIQuestionOption, type AIQuestionType, type AITodoItem, type AITodoList, type AITodoStatus, type AIToolCall, type AIToolCallStatus, type AIUsageMetrics, ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, type AccessAction, type AccessActionList, AccessDeniedError, type AccessLevel, type AccessPolicy, type AccessPolicyPreset, type AccessResourceType, type Action, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddAttributeInput, type AgentConfig, type AgentContextEntry, type AgentDashboard, type AgentDefinition, type AgentEvent, type AgentExecutionConfig, type AgentExecutionPolicy, type AgentMessageAttachment, type AgentMessagePart, type AgentQuestion, type AgentRun, type AgentRunStatus, type AgentSchedule, type AgentSession, type AgentSessionMessage, type AgentSessionMode, type AgentSessionStatus, type AgentToolCall, type AgentTriggerDefinition, type AgentTriggerType, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type AssignActorRoleInput, type AssignRoleInput, Attribute, AttributeGroupField, AttributeInUseError, AttributeNotFoundError, AttributeType, type AttributeUsage, type AuditAction, type AuditActorType, type AuditChange, type AuditListOptions, type AuditLogEntry, type AuditResourceType, type AuditServiceOptions, type AuditSortField, BEHAVIOR_PROPERTIES, BilateralConfig, type BoundingBox, type BuilderConfig, ChangeTypeNotSupportedError, CheckboxAttribute, CompletionStatus, ConcurrentModificationError, ConfigOverrides, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateCustomObjectInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type CreateFile, CreateMode, type CreateObjectRecord, type CreatePermissionInput, type CreateRoleInput, type CreateSandboxExecution, type CreateUserProfile, type CreateViewInput, type CriticConfig, Currency, CurrencyAttribute, type CustomAttributeValue, CustomTabConfig, type DBAttribute, type DBForm, type DBFormSubmission, type DBObject, type DBView, type DBViewOverlay, DB_COLUMN_FIELDS, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DateAttribute, type DefaultRoleName, type DeletedMode, DestructiveSyncNotAllowedError, DetailViewBuilder, DetailViewConfig, DetailViewDefinition, DetailViewLayout, DocumentAttribute, DocumentLayout, DocumentSlotConfig, DocumentSlotValidationError, DocumentsTabConfig, type DomainEvent, DuplicateError, EMPTY_VALUE_PLACEHOLDER, type EffectivePermissions, type EventDataMap, type EventType, type ExtractRecord, type ExtractRecordInput, type ExtractRecordInputStrict, type ExtractRecordStrict, type ExtractRecordUpdate, type ExtractRecordUpdateStrict, FORM_FORBIDDEN_ATTRIBUTE_TYPES, FeatureFlagDefinition, FeatureFlagsRepository, FeatureGate, Field, FieldGroup, type File, FileAttribute, type FileListOptions, type FileVisibility, FilterOperator, FilterRule, FilterState, FilterValue, FlagLevel, FlagRegistry, FlagService, FlagValueType, ForbiddenError, FormBuilder, type FormDefinition, type FormFieldRef, type FormFieldsRow, type FormFreeFieldRef, type FormHeadingRow, FormRegistry, type FormRow, FormRowBuilder, type FormSeparatorRow, type FormSlot, type FormSlotFieldRef, type FormStatus, type FormStep, FormStepBuilder, type FormSubmission, type FormSubmissionStatus, type FormSubmittedAgentEvent, type FormTextRow, FormulaAttribute, type FormulaResult, FormulaReturnType, type GeocodingAdapter, type GeocodingAutocompleteParams, type GeocodingParams, type GeocodingSuggestion, type GlobalSearchGroupedOptions, type GlobalSearchGroupedResult, type GlobalSearchOptions, type GlobalSearchResultItem, type GrantResourceAccessInput, Group, GroupBuilder, IDENTITY_PROPERTIES, type InferAttributeValue, type InferQualifiedProps, InvalidPathError, type InviteUserInput, type ListOptions, ListViewBuilder, ListViewConfig, ListViewDefinition, ListViewTab, ListViewTabConfigBuilder, Location, LocationAttribute, LocationGranularity, MaxDepthExceededError, MemoryNotFoundError, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, MigrationTimeoutError, type ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NoopGeocodingAdapter, NotFoundError, NotImplementedError, NumberAttribute, OPERATOR_SPECS, ObjectBuilder, ObjectDefinition, ObjectNotFoundError, type ObjectPermissions, ObjectReferencedError, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, type OperatorSpec, Option, OrphanSystemAttributeError, PRESENTATION_PROPERTIES, type PageInfo, type PageOptions, type PageResponse, type ParsedAttribute, type PathCardinality, type PathSegment, type PathSegmentType, type Permission, type PermissionScope, Phone, PhoneAttribute, type PrincipalType, PropertySchema, ProtectedResourceError, ProtectedRoleError, type ProviderName, QUALIFIED_SEPARATOR, type QualifiedDocumentBrand, type QuestionResponse, type QuestionStatus, RatingAttribute, type ReasoningPartData, type RecordAgentEvent, type RecordMetadata, RecordNotFoundError, type RecordReference, RecordReferencedError, RelationAttribute, RelationGroup, RelationGroupBuilder, type RelationOption, type RelationOptionsResponse, RelationTarget, RepositoryError, type RepositoryOperation, ResolvedFlag, type ResourceAccess, type ResourceRef, type RetryPolicy, type ReverseGeocodingParams, RichtextAttribute, RichtextFeature, RichtextTabConfig, type Role, RoleNotFoundError, RollupAttribute, RollupFunction, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, type SandboxExecution, type SandboxExecutionInput, type SandboxExecutionResult, type SandboxExecutionStatus, type SandboxMode, type SandboxTrigger, SchemaError, SchemaErrorCode, SchemaOperation, type SchemaResolver, type SearchOptions, SelectAttribute, SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, SortRule, type SpecificAccessAction, type StandardSchemaIssue, type StandardSchemaResult, StaticFlagDefault, StatusAttribute, StorageError, type StorageOperation, type StorageProvider, type StreamEventCompactionEnd, type StreamEventCompactionFailed, type StreamEventCompactionStart, type StreamEventMessagePersisted, SyncCascadeError, SyncConflictError, SyncError, type SystemAttribute, type SystemAttributeI18nKey, SystemEntityImmutableError, type SystemFields, type SystemPermissions, type SystemResource, Tab, TabBuilder, TableTab, TableTabConfig, TenantId, TextAreaAttribute, TextAttribute, type TextPartData, type ThinkingPartData, type TimeoutPolicy, Timestamps, type ToolPartData, type ToolPartState, type TriggerEventType, USER_STATUSES, type UpdateActorInput, type UpdateDBAttribute, type UpdateDBForm, type UpdateDBFormSubmission, type UpdateDBObject, type UpdateDBView, type UpdateDBViewOverlay, type UpdateFile, type UpdateObjectInput, type UpdateRoleInput, type UpdateUserProfile, type UpdateViewInput, type UpsertAccessPolicyInput, type UpsertDBAttribute, type UpsertDBObject, type UpsertDBView, UserAttribute, type UserProfile, type UserRoleAssignment, type UserStatus, Uuid, ValidationError, type ValidationErrorDetail, ViewConfig, ViewDefinition, ViewType, type WithCustomAttributes$1 as WithCustomAttributes, accessLevelToActions, actionsToAccessLevel, applyPipes, booleanFlag, buildPropertySchema, buildQualifiedAttribute, checkbox, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, date, detailView, document, evaluateFilterState, evaluateFormula, evaluateFormulaAttribute, evaluateFormulaWithResult, extractAttributeNames, extractFormulaVariables, extractRelationNames, extractRelationReferences, file, flagRegistry, flattenRelationsForEval, form, formRegistry, formatAttributeValue, formatFormulaResult, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getErrorMessage, getOperatorPolarity, getPathDepth, getRelationPath, getSystemAttributeI18nKey, getSystemAttributeList, getTargetAttributeName, group, hasRelationReferences, isAttributeInUseError, isDefaultRole, isDocumentAttribute, isEmptyObject, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isNotEmpty, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isStandardSchema, isValidationError, jsonFlag, listView, location, matchesMime, multiselect, normaliseDocumentSlots, normalizeForEdgeRpc, number, numberFlag, object, parsePath, parseQualifiedAttribute, pathHasManyCardinality, phone, rating, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, select, status, stringFlag, text, textarea, toUndefinedIfEmpty, user, validateAttributeName, validateFormulaExpression, validatePath, validateQualifiedRule, validateSlotAgainstConfig, viewRegistry };
6721
+ export { type AIAvailableModel, type AIBatchQuestion, type AIBatchQuestionAnswer, type AIBatchQuestionOption, type AIChatMessage, type AIChatMessagePart, type AIChatMessagePartType, type AICompactionSummary, type AIMemoryEntry, type AIMemoryType, type AIMessageRole, type AIProviderMetrics, type AIQuestion, type AIQuestionAnswer, type AIQuestionOption, type AIQuestionType, type AITodoItem, type AITodoList, type AITodoStatus, type AIToolCall, type AIToolCallStatus, type AIUsageMetrics, ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, type AccessAction, type AccessActionList, AccessDeniedError, type AccessLevel, type AccessPolicy, type AccessPolicyPreset, type AccessResourceType, type Action, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddAttributeInput, type AgentConfig, type AgentContextEntry, type AgentDashboard, type AgentDefinition, type AgentEvent, type AgentExecutionConfig, type AgentExecutionPolicy, type AgentMessageAttachment, type AgentMessagePart, type AgentQuestion, type AgentRun, type AgentRunStatus, type AgentSchedule, type AgentSession, type AgentSessionMessage, type AgentSessionMode, type AgentSessionStatus, type AgentToolCall, type AgentTriggerDefinition, type AgentTriggerType, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type AssignActorRoleInput, type AssignRoleInput, Attribute, AttributeGroupField, AttributeInUseError, AttributeNotFoundError, AttributeType, type AttributeUsage, type AuditAction, type AuditActorType, type AuditChange, type AuditListOptions, type AuditLogEntry, type AuditResourceType, type AuditServiceOptions, type AuditSortField, BEHAVIOR_PROPERTIES, BilateralConfig, type BoundingBox, type BuilderConfig, ChangeTypeNotSupportedError, CheckboxAttribute, CompletionStatus, ConcurrentModificationError, ConfigOverrides, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateCustomObjectInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type CreateFile, CreateMode, type CreateObjectRecord, type CreatePermissionInput, type CreateRoleInput, type CreateSandboxExecution, type CreateUserProfile, type CreateViewInput, type CriticConfig, Currency, CurrencyAttribute, type CustomAttributeValue, CustomTabConfig, type DBAttribute, type DBForm, type DBFormSubmission, type DBObject, type DBView, type DBViewOverlay, DB_COLUMN_FIELDS, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DateAttribute, type DefaultRoleName, type DeletedMode, DestructiveSyncNotAllowedError, DetailViewBuilder, DetailViewConfig, DetailViewDefinition, DetailViewLayout, DocumentAttribute, DocumentLayout, DocumentSlotConfig, DocumentSlotValidationError, DocumentsTabConfig, type DomainEvent, DuplicateError, EMPTY_VALUE_PLACEHOLDER, type EffectivePermissions, type EnvVarEntry, type EnvVarScope, type EventDataMap, type EventType, type ExtractRecord, type ExtractRecordInput, type ExtractRecordInputStrict, type ExtractRecordStrict, type ExtractRecordUpdate, type ExtractRecordUpdateStrict, FORM_FORBIDDEN_ATTRIBUTE_TYPES, FeatureFlagDefinition, FeatureFlagsRepository, FeatureGate, Field, FieldGroup, type FieldHistoryEntry, type File, FileAttribute, type FileListOptions, type FileVisibility, FilterOperator, FilterRule, FilterState, FilterValue, FlagLevel, FlagRegistry, FlagService, FlagValueType, ForbiddenError, FormBuilder, type FormDefinition, type FormFieldRef, type FormFieldsRow, type FormFreeFieldRef, type FormHeadingRow, FormRegistry, type FormRow, FormRowBuilder, type FormSeparatorRow, type FormSlot, type FormSlotFieldRef, type FormStatus, type FormStep, FormStepBuilder, type FormSubmission, type FormSubmissionStatus, type FormSubmittedAgentEvent, type FormTextRow, FormulaAttribute, type FormulaResult, FormulaReturnType, type GeocodingAdapter, type GeocodingAutocompleteParams, type GeocodingParams, type GeocodingSuggestion, type GlobalSearchGroupedOptions, type GlobalSearchGroupedResult, type GlobalSearchOptions, type GlobalSearchResultItem, type GrantResourceAccessInput, Group, GroupBuilder, IDENTITY_PROPERTIES, type InferAttributeValue, type InferQualifiedProps, InvalidPathError, type InviteUserInput, type ListOptions, ListViewBuilder, ListViewConfig, ListViewDefinition, ListViewTab, ListViewTabConfigBuilder, Location, LocationAttribute, LocationGranularity, MaxDepthExceededError, MemoryNotFoundError, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, MigrationTimeoutError, type ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NoopGeocodingAdapter, NotFoundError, NotImplementedError, NumberAttribute, OPERATOR_SPECS, ObjectBuilder, ObjectDefinition, ObjectNotFoundError, type ObjectPermissions, ObjectReferencedError, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, type OperatorSpec, Option, OrphanSystemAttributeError, PRESENTATION_PROPERTIES, type PageInfo, type PageOptions, type PageResponse, type ParsedAttribute, type PathCardinality, type PathSegment, type PathSegmentType, type Permission, type PermissionScope, Phone, PhoneAttribute, type PrincipalType, PropertySchema, ProtectedResourceError, ProtectedRoleError, type ProviderName, QUALIFIED_SEPARATOR, type QualifiedDocumentBrand, type QuestionResponse, type QuestionStatus, RatingAttribute, type ReasoningPartData, type RecordAgentEvent, type RecordMetadata, RecordNotFoundError, type RecordReference, RecordReferencedError, RelationAttribute, RelationGroup, RelationGroupBuilder, type RelationOption, type RelationOptionsResponse, RelationTarget, RepositoryError, type RepositoryOperation, ResolvedFlag, type ResourceAccess, type ResourceRef, type RetryPolicy, type ReverseGeocodingParams, RichtextAttribute, RichtextFeature, RichtextTabConfig, type Role, RoleNotFoundError, RollupAttribute, RollupFunction, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, type SandboxExecution, type SandboxExecutionInput, type SandboxExecutionResult, type SandboxExecutionStatus, type SandboxMode, type SandboxTrigger, SchemaError, SchemaErrorCode, SchemaOperation, type SchemaResolver, type SearchOptions, SelectAttribute, SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, SortRule, type SpecificAccessAction, type StandardSchemaIssue, type StandardSchemaResult, StaticFlagDefault, StatusAttribute, StorageError, type StorageOperation, type StorageProvider, type StreamEventCompactionEnd, type StreamEventCompactionFailed, type StreamEventCompactionStart, type StreamEventMessagePersisted, SyncCascadeError, SyncConflictError, SyncError, type SystemAttribute, type SystemAttributeI18nKey, SystemEntityImmutableError, type SystemFields, type SystemPermissions, type SystemResource, Tab, TabBuilder, TableTab, TableTabConfig, TenantId, TextAreaAttribute, TextAttribute, type TextPartData, type ThinkingPartData, type TimeoutPolicy, Timestamps, type ToolPartData, type ToolPartState, type TriggerEventType, USER_STATUSES, type UpdateActorInput, type UpdateDBAttribute, type UpdateDBForm, type UpdateDBFormSubmission, type UpdateDBObject, type UpdateDBView, type UpdateDBViewOverlay, type UpdateFile, type UpdateObjectInput, type UpdateRoleInput, type UpdateUserProfile, type UpdateViewInput, type UpsertAccessPolicyInput, type UpsertDBAttribute, type UpsertDBObject, type UpsertDBView, UserAttribute, type UserProfile, type UserRoleAssignment, type UserStatus, Uuid, ValidationError, type ValidationErrorDetail, ViewConfig, ViewDefinition, ViewType, type WithCustomAttributes$1 as WithCustomAttributes, accessLevelToActions, actionsToAccessLevel, applyPipes, booleanFlag, buildPropertySchema, buildQualifiedAttribute, checkbox, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, date, detailView, document, evaluateFilterState, evaluateFormula, evaluateFormulaAttribute, evaluateFormulaWithResult, extractAttributeNames, extractFormulaVariables, extractRelationNames, extractRelationReferences, file, flagRegistry, flattenRelationsForEval, form, formRegistry, formatAttributeValue, formatFormulaResult, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getErrorMessage, getOperatorPolarity, getPathDepth, getRelationPath, getSystemAttributeI18nKey, getSystemAttributeList, getTargetAttributeName, group, hasRelationReferences, isAttributeInUseError, isDefaultRole, isDocumentAttribute, isEmptyObject, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isNotEmpty, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isStandardSchema, isValidationError, jsonFlag, listView, location, matchesMime, multiselect, normaliseDocumentSlots, normalizeForEdgeRpc, number, numberFlag, object, parsePath, parseQualifiedAttribute, pathHasManyCardinality, phone, rating, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, select, status, stringFlag, text, textarea, toUndefinedIfEmpty, user, validateAttributeName, validateFormulaExpression, validatePath, validateQualifiedRule, validateSlotAgainstConfig, viewRegistry };
package/dist/index.d.ts CHANGED
@@ -765,7 +765,7 @@ type Action = "read" | "create" | "update" | "delete" | "manage" | "observe";
765
765
  * - `workspace`: Tenant settings and workspace-level configuration
766
766
  * - `architect`: Architect settings, templates, and configurations
767
767
  */
768
- type SystemResource = "people" | "workspace" | "architect" | "feature-flags" | "files" | "views" | "forms" | "documents" | "audit" | "api-keys" | "session";
768
+ type SystemResource = "people" | "workspace" | "architect" | "feature-flags" | "files" | "views" | "forms" | "documents" | "audit" | "api-keys" | "env-vars" | "session";
769
769
  /**
770
770
  * Preset access levels for simplified permission configuration.
771
771
  * - `full`: All CRUD actions
@@ -1033,6 +1033,27 @@ interface CreateApiKeyInput {
1033
1033
  actorMetadata?: Record<string, unknown>;
1034
1034
  }
1035
1035
 
1036
+ /** Scope of an env var — consumer type + ID (e.g. agent definition). */
1037
+ interface EnvVarScope {
1038
+ type: string;
1039
+ id: string;
1040
+ }
1041
+ /**
1042
+ * Returned by list endpoints.
1043
+ * The encrypted value is NEVER included — only metadata.
1044
+ * `isSet: true` is the only indicator that a value exists.
1045
+ */
1046
+ interface EnvVarEntry {
1047
+ id: string;
1048
+ key: string;
1049
+ isSensitive: boolean;
1050
+ isSet: true;
1051
+ scopeType: string;
1052
+ scopeId: string | null;
1053
+ createdAt: string;
1054
+ updatedAt: string;
1055
+ }
1056
+
1036
1057
  /**
1037
1058
  * Type of mentionable entity
1038
1059
  */
@@ -1235,6 +1256,22 @@ interface AuditServiceOptions {
1235
1256
  */
1236
1257
  flushIntervalMs?: number;
1237
1258
  }
1259
+ /**
1260
+ * A single field-level history entry, derived from an audit log change.
1261
+ * Client-safe — no tenant or internal IDs.
1262
+ */
1263
+ interface FieldHistoryEntry {
1264
+ id: string;
1265
+ field: string;
1266
+ oldValue: unknown;
1267
+ newValue: unknown;
1268
+ oldLabel?: string;
1269
+ newLabel?: string;
1270
+ oldLabels?: string[];
1271
+ newLabels?: string[];
1272
+ actorEmail?: string;
1273
+ createdAt: Date;
1274
+ }
1238
1275
 
1239
1276
  type AgentRunStatus = "pending" | "running" | "completed" | "failed" | "cancelled" | "paused";
1240
1277
  type AgentSessionStatus = "active" | "idle" | "completed" | "failed" | "cancelled" | "waiting_human" | "timeout" | "expired";
@@ -3367,6 +3404,8 @@ declare const SYSTEM_RESOURCES: {
3367
3404
  readonly AUDIT: "audit";
3368
3405
  /** Programmatic access keys */
3369
3406
  readonly API_KEYS: "api-keys";
3407
+ /** Environment variables for agents */
3408
+ readonly ENV_VARS: "env-vars";
3370
3409
  /** Agent session visibility — required for an agent actor to read its own sessions */
3371
3410
  readonly SESSION: "session";
3372
3411
  };
@@ -6679,4 +6718,4 @@ interface QualifiedRuleValidationContext {
6679
6718
  }
6680
6719
  declare function validateQualifiedRule(rule: FilterRule, context: QualifiedRuleValidationContext): void;
6681
6720
 
6682
- export { type AIAvailableModel, type AIBatchQuestion, type AIBatchQuestionAnswer, type AIBatchQuestionOption, type AIChatMessage, type AIChatMessagePart, type AIChatMessagePartType, type AICompactionSummary, type AIMemoryEntry, type AIMemoryType, type AIMessageRole, type AIProviderMetrics, type AIQuestion, type AIQuestionAnswer, type AIQuestionOption, type AIQuestionType, type AITodoItem, type AITodoList, type AITodoStatus, type AIToolCall, type AIToolCallStatus, type AIUsageMetrics, ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, type AccessAction, type AccessActionList, AccessDeniedError, type AccessLevel, type AccessPolicy, type AccessPolicyPreset, type AccessResourceType, type Action, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddAttributeInput, type AgentConfig, type AgentContextEntry, type AgentDashboard, type AgentDefinition, type AgentEvent, type AgentExecutionConfig, type AgentExecutionPolicy, type AgentMessageAttachment, type AgentMessagePart, type AgentQuestion, type AgentRun, type AgentRunStatus, type AgentSchedule, type AgentSession, type AgentSessionMessage, type AgentSessionMode, type AgentSessionStatus, type AgentToolCall, type AgentTriggerDefinition, type AgentTriggerType, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type AssignActorRoleInput, type AssignRoleInput, Attribute, AttributeGroupField, AttributeInUseError, AttributeNotFoundError, AttributeType, type AttributeUsage, type AuditAction, type AuditActorType, type AuditChange, type AuditListOptions, type AuditLogEntry, type AuditResourceType, type AuditServiceOptions, type AuditSortField, BEHAVIOR_PROPERTIES, BilateralConfig, type BoundingBox, type BuilderConfig, ChangeTypeNotSupportedError, CheckboxAttribute, CompletionStatus, ConcurrentModificationError, ConfigOverrides, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateCustomObjectInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type CreateFile, CreateMode, type CreateObjectRecord, type CreatePermissionInput, type CreateRoleInput, type CreateSandboxExecution, type CreateUserProfile, type CreateViewInput, type CriticConfig, Currency, CurrencyAttribute, type CustomAttributeValue, CustomTabConfig, type DBAttribute, type DBForm, type DBFormSubmission, type DBObject, type DBView, type DBViewOverlay, DB_COLUMN_FIELDS, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DateAttribute, type DefaultRoleName, type DeletedMode, DestructiveSyncNotAllowedError, DetailViewBuilder, DetailViewConfig, DetailViewDefinition, DetailViewLayout, DocumentAttribute, DocumentLayout, DocumentSlotConfig, DocumentSlotValidationError, DocumentsTabConfig, type DomainEvent, DuplicateError, EMPTY_VALUE_PLACEHOLDER, type EffectivePermissions, type EventDataMap, type EventType, type ExtractRecord, type ExtractRecordInput, type ExtractRecordInputStrict, type ExtractRecordStrict, type ExtractRecordUpdate, type ExtractRecordUpdateStrict, FORM_FORBIDDEN_ATTRIBUTE_TYPES, FeatureFlagDefinition, FeatureFlagsRepository, FeatureGate, Field, FieldGroup, type File, FileAttribute, type FileListOptions, type FileVisibility, FilterOperator, FilterRule, FilterState, FilterValue, FlagLevel, FlagRegistry, FlagService, FlagValueType, ForbiddenError, FormBuilder, type FormDefinition, type FormFieldRef, type FormFieldsRow, type FormFreeFieldRef, type FormHeadingRow, FormRegistry, type FormRow, FormRowBuilder, type FormSeparatorRow, type FormSlot, type FormSlotFieldRef, type FormStatus, type FormStep, FormStepBuilder, type FormSubmission, type FormSubmissionStatus, type FormSubmittedAgentEvent, type FormTextRow, FormulaAttribute, type FormulaResult, FormulaReturnType, type GeocodingAdapter, type GeocodingAutocompleteParams, type GeocodingParams, type GeocodingSuggestion, type GlobalSearchGroupedOptions, type GlobalSearchGroupedResult, type GlobalSearchOptions, type GlobalSearchResultItem, type GrantResourceAccessInput, Group, GroupBuilder, IDENTITY_PROPERTIES, type InferAttributeValue, type InferQualifiedProps, InvalidPathError, type InviteUserInput, type ListOptions, ListViewBuilder, ListViewConfig, ListViewDefinition, ListViewTab, ListViewTabConfigBuilder, Location, LocationAttribute, LocationGranularity, MaxDepthExceededError, MemoryNotFoundError, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, MigrationTimeoutError, type ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NoopGeocodingAdapter, NotFoundError, NotImplementedError, NumberAttribute, OPERATOR_SPECS, ObjectBuilder, ObjectDefinition, ObjectNotFoundError, type ObjectPermissions, ObjectReferencedError, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, type OperatorSpec, Option, OrphanSystemAttributeError, PRESENTATION_PROPERTIES, type PageInfo, type PageOptions, type PageResponse, type ParsedAttribute, type PathCardinality, type PathSegment, type PathSegmentType, type Permission, type PermissionScope, Phone, PhoneAttribute, type PrincipalType, PropertySchema, ProtectedResourceError, ProtectedRoleError, type ProviderName, QUALIFIED_SEPARATOR, type QualifiedDocumentBrand, type QuestionResponse, type QuestionStatus, RatingAttribute, type ReasoningPartData, type RecordAgentEvent, type RecordMetadata, RecordNotFoundError, type RecordReference, RecordReferencedError, RelationAttribute, RelationGroup, RelationGroupBuilder, type RelationOption, type RelationOptionsResponse, RelationTarget, RepositoryError, type RepositoryOperation, ResolvedFlag, type ResourceAccess, type ResourceRef, type RetryPolicy, type ReverseGeocodingParams, RichtextAttribute, RichtextFeature, RichtextTabConfig, type Role, RoleNotFoundError, RollupAttribute, RollupFunction, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, type SandboxExecution, type SandboxExecutionInput, type SandboxExecutionResult, type SandboxExecutionStatus, type SandboxMode, type SandboxTrigger, SchemaError, SchemaErrorCode, SchemaOperation, type SchemaResolver, type SearchOptions, SelectAttribute, SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, SortRule, type SpecificAccessAction, type StandardSchemaIssue, type StandardSchemaResult, StaticFlagDefault, StatusAttribute, StorageError, type StorageOperation, type StorageProvider, type StreamEventCompactionEnd, type StreamEventCompactionFailed, type StreamEventCompactionStart, type StreamEventMessagePersisted, SyncCascadeError, SyncConflictError, SyncError, type SystemAttribute, type SystemAttributeI18nKey, SystemEntityImmutableError, type SystemFields, type SystemPermissions, type SystemResource, Tab, TabBuilder, TableTab, TableTabConfig, TenantId, TextAreaAttribute, TextAttribute, type TextPartData, type ThinkingPartData, type TimeoutPolicy, Timestamps, type ToolPartData, type ToolPartState, type TriggerEventType, USER_STATUSES, type UpdateActorInput, type UpdateDBAttribute, type UpdateDBForm, type UpdateDBFormSubmission, type UpdateDBObject, type UpdateDBView, type UpdateDBViewOverlay, type UpdateFile, type UpdateObjectInput, type UpdateRoleInput, type UpdateUserProfile, type UpdateViewInput, type UpsertAccessPolicyInput, type UpsertDBAttribute, type UpsertDBObject, type UpsertDBView, UserAttribute, type UserProfile, type UserRoleAssignment, type UserStatus, Uuid, ValidationError, type ValidationErrorDetail, ViewConfig, ViewDefinition, ViewType, type WithCustomAttributes$1 as WithCustomAttributes, accessLevelToActions, actionsToAccessLevel, applyPipes, booleanFlag, buildPropertySchema, buildQualifiedAttribute, checkbox, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, date, detailView, document, evaluateFilterState, evaluateFormula, evaluateFormulaAttribute, evaluateFormulaWithResult, extractAttributeNames, extractFormulaVariables, extractRelationNames, extractRelationReferences, file, flagRegistry, flattenRelationsForEval, form, formRegistry, formatAttributeValue, formatFormulaResult, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getErrorMessage, getOperatorPolarity, getPathDepth, getRelationPath, getSystemAttributeI18nKey, getSystemAttributeList, getTargetAttributeName, group, hasRelationReferences, isAttributeInUseError, isDefaultRole, isDocumentAttribute, isEmptyObject, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isNotEmpty, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isStandardSchema, isValidationError, jsonFlag, listView, location, matchesMime, multiselect, normaliseDocumentSlots, normalizeForEdgeRpc, number, numberFlag, object, parsePath, parseQualifiedAttribute, pathHasManyCardinality, phone, rating, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, select, status, stringFlag, text, textarea, toUndefinedIfEmpty, user, validateAttributeName, validateFormulaExpression, validatePath, validateQualifiedRule, validateSlotAgainstConfig, viewRegistry };
6721
+ export { type AIAvailableModel, type AIBatchQuestion, type AIBatchQuestionAnswer, type AIBatchQuestionOption, type AIChatMessage, type AIChatMessagePart, type AIChatMessagePartType, type AICompactionSummary, type AIMemoryEntry, type AIMemoryType, type AIMessageRole, type AIProviderMetrics, type AIQuestion, type AIQuestionAnswer, type AIQuestionOption, type AIQuestionType, type AITodoItem, type AITodoList, type AITodoStatus, type AIToolCall, type AIToolCallStatus, type AIUsageMetrics, ALLOWED_PROPERTY_TYPES, ALL_ACTIONS, ALL_SYSTEM_RESOURCES, type AccessAction, type AccessActionList, AccessDeniedError, type AccessLevel, type AccessPolicy, type AccessPolicyPreset, type AccessResourceType, type Action, ActivityTabConfig, type Actor, type ActorRoleAssignment, type ActorStatus, type ActorType, type AddAttributeInput, type AgentConfig, type AgentContextEntry, type AgentDashboard, type AgentDefinition, type AgentEvent, type AgentExecutionConfig, type AgentExecutionPolicy, type AgentMessageAttachment, type AgentMessagePart, type AgentQuestion, type AgentRun, type AgentRunStatus, type AgentSchedule, type AgentSession, type AgentSessionMessage, type AgentSessionMode, type AgentSessionStatus, type AgentToolCall, type AgentTriggerDefinition, type AgentTriggerType, type ApiKey, type ApiKeyAuthContext, type ApiKeyPermission, type ApiKeyWithSecret, type AssignActorRoleInput, type AssignRoleInput, Attribute, AttributeGroupField, AttributeInUseError, AttributeNotFoundError, AttributeType, type AttributeUsage, type AuditAction, type AuditActorType, type AuditChange, type AuditListOptions, type AuditLogEntry, type AuditResourceType, type AuditServiceOptions, type AuditSortField, BEHAVIOR_PROPERTIES, BilateralConfig, type BoundingBox, type BuilderConfig, ChangeTypeNotSupportedError, CheckboxAttribute, CompletionStatus, ConcurrentModificationError, ConfigOverrides, type CountMode, type CreateActorInput, type CreateApiKeyInput, type CreateAuditLogInput, type CreateCustomObjectInput, type CreateDBAttribute, type CreateDBForm, type CreateDBFormSubmission, type CreateDBObject, type CreateDBView, type CreateDBViewOverlay, type CreateFile, CreateMode, type CreateObjectRecord, type CreatePermissionInput, type CreateRoleInput, type CreateSandboxExecution, type CreateUserProfile, type CreateViewInput, type CriticConfig, Currency, CurrencyAttribute, type CustomAttributeValue, CustomTabConfig, type DBAttribute, type DBForm, type DBFormSubmission, type DBObject, type DBView, type DBViewOverlay, DB_COLUMN_FIELDS, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DOCUMENT_SYSTEM_ATTRIBUTES, DateAttribute, type DefaultRoleName, type DeletedMode, DestructiveSyncNotAllowedError, DetailViewBuilder, DetailViewConfig, DetailViewDefinition, DetailViewLayout, DocumentAttribute, DocumentLayout, DocumentSlotConfig, DocumentSlotValidationError, DocumentsTabConfig, type DomainEvent, DuplicateError, EMPTY_VALUE_PLACEHOLDER, type EffectivePermissions, type EnvVarEntry, type EnvVarScope, type EventDataMap, type EventType, type ExtractRecord, type ExtractRecordInput, type ExtractRecordInputStrict, type ExtractRecordStrict, type ExtractRecordUpdate, type ExtractRecordUpdateStrict, FORM_FORBIDDEN_ATTRIBUTE_TYPES, FeatureFlagDefinition, FeatureFlagsRepository, FeatureGate, Field, FieldGroup, type FieldHistoryEntry, type File, FileAttribute, type FileListOptions, type FileVisibility, FilterOperator, FilterRule, FilterState, FilterValue, FlagLevel, FlagRegistry, FlagService, FlagValueType, ForbiddenError, FormBuilder, type FormDefinition, type FormFieldRef, type FormFieldsRow, type FormFreeFieldRef, type FormHeadingRow, FormRegistry, type FormRow, FormRowBuilder, type FormSeparatorRow, type FormSlot, type FormSlotFieldRef, type FormStatus, type FormStep, FormStepBuilder, type FormSubmission, type FormSubmissionStatus, type FormSubmittedAgentEvent, type FormTextRow, FormulaAttribute, type FormulaResult, FormulaReturnType, type GeocodingAdapter, type GeocodingAutocompleteParams, type GeocodingParams, type GeocodingSuggestion, type GlobalSearchGroupedOptions, type GlobalSearchGroupedResult, type GlobalSearchOptions, type GlobalSearchResultItem, type GrantResourceAccessInput, Group, GroupBuilder, IDENTITY_PROPERTIES, type InferAttributeValue, type InferQualifiedProps, InvalidPathError, type InviteUserInput, type ListOptions, ListViewBuilder, ListViewConfig, ListViewDefinition, ListViewTab, ListViewTabConfigBuilder, Location, LocationAttribute, LocationGranularity, MaxDepthExceededError, MemoryNotFoundError, type MentionEntityType, type MentionReference, type MentionedContext, type MentionedEntityContext, MigrationDefinition, MigrationTimeoutError, type ModelDefinition, MultiRelationAttribute, MultiselectAttribute, NoopGeocodingAdapter, NotFoundError, NotImplementedError, NumberAttribute, OPERATOR_SPECS, ObjectBuilder, ObjectDefinition, ObjectNotFoundError, type ObjectPermissions, ObjectReferencedError, type OcrAdapter, type OcrInput, type OcrOptions, type OcrPage, type OcrResult, type OcrTextBlock, type OperatorSpec, Option, OrphanSystemAttributeError, PRESENTATION_PROPERTIES, type PageInfo, type PageOptions, type PageResponse, type ParsedAttribute, type PathCardinality, type PathSegment, type PathSegmentType, type Permission, type PermissionScope, Phone, PhoneAttribute, type PrincipalType, PropertySchema, ProtectedResourceError, ProtectedRoleError, type ProviderName, QUALIFIED_SEPARATOR, type QualifiedDocumentBrand, type QuestionResponse, type QuestionStatus, RatingAttribute, type ReasoningPartData, type RecordAgentEvent, type RecordMetadata, RecordNotFoundError, type RecordReference, RecordReferencedError, RelationAttribute, RelationGroup, RelationGroupBuilder, type RelationOption, type RelationOptionsResponse, RelationTarget, RepositoryError, type RepositoryOperation, ResolvedFlag, type ResourceAccess, type ResourceRef, type RetryPolicy, type ReverseGeocodingParams, RichtextAttribute, RichtextFeature, RichtextTabConfig, type Role, RoleNotFoundError, RollupAttribute, RollupFunction, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_ATTRIBUTE_I18N_KEYS, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, type SandboxExecution, type SandboxExecutionInput, type SandboxExecutionResult, type SandboxExecutionStatus, type SandboxMode, type SandboxTrigger, SchemaError, SchemaErrorCode, SchemaOperation, type SchemaResolver, type SearchOptions, SelectAttribute, SidePanelConfig, type SidebarExtraItem, SingleRelationAttribute, type SlotMode, SortRule, type SpecificAccessAction, type StandardSchemaIssue, type StandardSchemaResult, StaticFlagDefault, StatusAttribute, StorageError, type StorageOperation, type StorageProvider, type StreamEventCompactionEnd, type StreamEventCompactionFailed, type StreamEventCompactionStart, type StreamEventMessagePersisted, SyncCascadeError, SyncConflictError, SyncError, type SystemAttribute, type SystemAttributeI18nKey, SystemEntityImmutableError, type SystemFields, type SystemPermissions, type SystemResource, Tab, TabBuilder, TableTab, TableTabConfig, TenantId, TextAreaAttribute, TextAttribute, type TextPartData, type ThinkingPartData, type TimeoutPolicy, Timestamps, type ToolPartData, type ToolPartState, type TriggerEventType, USER_STATUSES, type UpdateActorInput, type UpdateDBAttribute, type UpdateDBForm, type UpdateDBFormSubmission, type UpdateDBObject, type UpdateDBView, type UpdateDBViewOverlay, type UpdateFile, type UpdateObjectInput, type UpdateRoleInput, type UpdateUserProfile, type UpdateViewInput, type UpsertAccessPolicyInput, type UpsertDBAttribute, type UpsertDBObject, type UpsertDBView, UserAttribute, type UserProfile, type UserRoleAssignment, type UserStatus, Uuid, ValidationError, type ValidationErrorDetail, ViewConfig, ViewDefinition, ViewType, type WithCustomAttributes$1 as WithCustomAttributes, accessLevelToActions, actionsToAccessLevel, applyPipes, booleanFlag, buildPropertySchema, buildQualifiedAttribute, checkbox, createFlagRegistry, createFlagService, createStandardSchemaProps, currency, date, detailView, document, evaluateFilterState, evaluateFormula, evaluateFormulaAttribute, evaluateFormulaWithResult, extractAttributeNames, extractFormulaVariables, extractRelationNames, extractRelationReferences, file, flagRegistry, flattenRelationsForEval, form, formRegistry, formatAttributeValue, formatFormulaResult, formula, generateDefaultDetailView, generateDefaultListView, getActiveTab, getErrorMessage, getOperatorPolarity, getPathDepth, getRelationPath, getSystemAttributeI18nKey, getSystemAttributeList, getTargetAttributeName, group, hasRelationReferences, isAttributeInUseError, isDefaultRole, isDocumentAttribute, isEmptyObject, isFormDefinition, isFormFieldsRow, isFormFreeFieldRef, isFormHeadingRow, isFormSeparatorRow, isFormSlotFieldRef, isFormTextRow, isLabelExpression, isNotEmpty, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isStandardSchema, isValidationError, jsonFlag, listView, location, matchesMime, multiselect, normaliseDocumentSlots, normalizeForEdgeRpc, number, numberFlag, object, parsePath, parseQualifiedAttribute, pathHasManyCardinality, phone, rating, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, select, status, stringFlag, text, textarea, toUndefinedIfEmpty, user, validateAttributeName, validateFormulaExpression, validatePath, validateQualifiedRule, validateSlotAgainstConfig, viewRegistry };
package/dist/index.js CHANGED
@@ -2,9 +2,7 @@
2
2
 
3
3
  var chunkFRCDMQER_js = require('./chunk-FRCDMQER.js');
4
4
  require('./chunk-PGERPYDR.js');
5
- var chunkYQROI4IE_js = require('./chunk-YQROI4IE.js');
6
- var chunkFQ2ZYOVS_js = require('./chunk-FQ2ZYOVS.js');
7
- require('./chunk-MAKSIK3P.js');
5
+ var chunkC47FE5UG_js = require('./chunk-C47FE5UG.js');
8
6
  require('./chunk-J5HRK3WD.js');
9
7
  require('./chunk-TKN73433.js');
10
8
  require('./chunk-D7WFIGXW.js');
@@ -14,6 +12,8 @@ require('./chunk-EZHMVZQ4.js');
14
12
  require('./chunk-VXOTYFEW.js');
15
13
  require('./chunk-OAQWRMTP.js');
16
14
  require('./chunk-ACQ3TUFK.js');
15
+ var chunkYQROI4IE_js = require('./chunk-YQROI4IE.js');
16
+ require('./chunk-MAKSIK3P.js');
17
17
  require('./chunk-DC7YYE3U.js');
18
18
  require('./chunk-ROAZLZA2.js');
19
19
  require('./chunk-CCB4OY2O.js');
@@ -839,6 +839,8 @@ var SYSTEM_RESOURCES = {
839
839
  AUDIT: "audit",
840
840
  /** Programmatic access keys */
841
841
  API_KEYS: "api-keys",
842
+ /** Environment variables for agents */
843
+ ENV_VARS: "env-vars",
842
844
  /** Agent session visibility — required for an agent actor to read its own sessions */
843
845
  SESSION: "session"
844
846
  };
@@ -853,6 +855,7 @@ var ALL_SYSTEM_RESOURCES = [
853
855
  SYSTEM_RESOURCES.DOCUMENTS,
854
856
  SYSTEM_RESOURCES.AUDIT,
855
857
  SYSTEM_RESOURCES.API_KEYS,
858
+ SYSTEM_RESOURCES.ENV_VARS,
856
859
  SYSTEM_RESOURCES.SESSION
857
860
  ];
858
861
  var SYSTEM_RESOURCE_LABELS = {
@@ -866,6 +869,7 @@ var SYSTEM_RESOURCE_LABELS = {
866
869
  documents: "Documents",
867
870
  audit: "Audit",
868
871
  "api-keys": "API keys",
872
+ "env-vars": "Environment variables",
869
873
  session: "Agent sessions"
870
874
  };
871
875
  var DEFAULT_ROLES = {
@@ -903,6 +907,7 @@ var DEFAULT_ROLE_PERMISSIONS = {
903
907
  system: [
904
908
  { target: "documents", actions: ["read", "create", "update"] },
905
909
  { target: "files", actions: ["read", "create", "update"] },
910
+ { target: "env-vars", actions: ["read"] },
906
911
  // Required so the agent actor can read its own sessions when the worker
907
912
  // resumes a queued job under the agent's identity (runAsAgentActor).
908
913
  { target: "session", actions: ["observe"] }
@@ -1048,7 +1053,7 @@ var BaseAttributeBuilder = class {
1048
1053
  * @see https://standardschema.dev/
1049
1054
  */
1050
1055
  get "~standard"() {
1051
- const zodSchema = chunkFQ2ZYOVS_js.createAttributeValidator(this.build());
1056
+ const zodSchema = chunkC47FE5UG_js.createAttributeValidator(this.build());
1052
1057
  return createStandardSchemaProps(zodSchema);
1053
1058
  }
1054
1059
  constructor(type, name, label) {
@@ -2426,7 +2431,7 @@ var ObjectBuilder = class {
2426
2431
  * @see https://standardschema.dev/
2427
2432
  */
2428
2433
  get "~standard"() {
2429
- const zodSchema = chunkFQ2ZYOVS_js.createObjectValidator(this.build());
2434
+ const zodSchema = chunkC47FE5UG_js.createObjectValidator(this.build());
2430
2435
  return createStandardSchemaProps(zodSchema);
2431
2436
  }
2432
2437
  /**
@@ -2593,17 +2598,17 @@ var ObjectBuilder = class {
2593
2598
  throw new Error("[ObjectBuilder] Missing required field: label");
2594
2599
  }
2595
2600
  if (!this._labelExpression) {
2596
- throw new chunkFQ2ZYOVS_js.SchemaError(
2601
+ throw new chunkC47FE5UG_js.SchemaError(
2597
2602
  `Object "${this.obj.name}" must have a labelExpression. The labelExpression defines how records are displayed in lists and relations (e.g. "{{ name }}").`,
2598
- chunkFQ2ZYOVS_js.SchemaErrorCode.VALIDATION_FAILED
2603
+ chunkC47FE5UG_js.SchemaErrorCode.VALIDATION_FAILED
2599
2604
  );
2600
2605
  }
2601
2606
  const labelResult = labelExpressionSchema.safeParse(this._labelExpression);
2602
2607
  if (!labelResult.success) {
2603
2608
  const errorMsg = labelResult.error.issues[0]?.message ?? "Invalid labelExpression";
2604
- throw new chunkFQ2ZYOVS_js.SchemaError(
2609
+ throw new chunkC47FE5UG_js.SchemaError(
2605
2610
  `Invalid labelExpression for "${this.obj.name}": ${errorMsg}`,
2606
- chunkFQ2ZYOVS_js.SchemaErrorCode.VALIDATION_FAILED
2611
+ chunkC47FE5UG_js.SchemaErrorCode.VALIDATION_FAILED
2607
2612
  );
2608
2613
  }
2609
2614
  const sortedVersions = [...this._migrations].sort((a, b) => a.version - b.version);
@@ -2640,7 +2645,7 @@ var ObjectBuilder = class {
2640
2645
  objectNameSchema.parse(name);
2641
2646
  } catch (error) {
2642
2647
  if (error instanceof z3__default.default.ZodError) {
2643
- throw new chunkFQ2ZYOVS_js.SchemaError(error.issues[0].message, chunkFQ2ZYOVS_js.SchemaErrorCode.INVALID_OBJECT_NAME);
2648
+ throw new chunkC47FE5UG_js.SchemaError(error.issues[0].message, chunkC47FE5UG_js.SchemaErrorCode.INVALID_OBJECT_NAME);
2644
2649
  }
2645
2650
  throw error;
2646
2651
  }
@@ -5393,7 +5398,7 @@ function assertOperatorForType(operator, type, context) {
5393
5398
  if (!ops?.includes(operator)) {
5394
5399
  const validList = ops?.length ? ops.join(", ") : "(no operators registered for this type)";
5395
5400
  const summary = `Operator "${operator}" is not valid for ${context} type "${type}". Valid operators: ${validList}.`;
5396
- throw new chunkFQ2ZYOVS_js.ValidationError(summary, [
5401
+ throw new chunkC47FE5UG_js.ValidationError(summary, [
5397
5402
  {
5398
5403
  path: ["operator"],
5399
5404
  message: summary
@@ -5405,19 +5410,19 @@ function validateQualifiedRule(rule, context) {
5405
5410
  const rootAttr = context.attributes.find((a) => a.name === rule.attribute);
5406
5411
  const systemOps = SYSTEM_FILTER_OPERATORS[rule.attribute];
5407
5412
  if (!(rootAttr || systemOps)) {
5408
- throw new chunkFQ2ZYOVS_js.ValidationError(`Unknown attribute: ${rule.attribute}`, [
5413
+ throw new chunkC47FE5UG_js.ValidationError(`Unknown attribute: ${rule.attribute}`, [
5409
5414
  { path: ["attribute"], message: `Unknown attribute: ${rule.attribute}` }
5410
5415
  ]);
5411
5416
  }
5412
5417
  if (!rootAttr) {
5413
5418
  if (rule.property) {
5414
- throw new chunkFQ2ZYOVS_js.ValidationError(`Cannot qualify system attribute "${rule.attribute}"`, [
5419
+ throw new chunkC47FE5UG_js.ValidationError(`Cannot qualify system attribute "${rule.attribute}"`, [
5415
5420
  { path: ["property"], message: `"${rule.attribute}" is a system column, not a reference` }
5416
5421
  ]);
5417
5422
  }
5418
5423
  if (!systemOps.includes(rule.operator)) {
5419
5424
  const summary = `Operator "${rule.operator}" is not valid for system attribute "${rule.attribute}". Valid operators: ${systemOps.join(", ")}.`;
5420
- throw new chunkFQ2ZYOVS_js.ValidationError(summary, [{ path: ["operator"], message: summary }]);
5425
+ throw new chunkC47FE5UG_js.ValidationError(summary, [{ path: ["operator"], message: summary }]);
5421
5426
  }
5422
5427
  return;
5423
5428
  }
@@ -5429,19 +5434,19 @@ function validateQualifiedRule(rule, context) {
5429
5434
  return;
5430
5435
  }
5431
5436
  if (!REFERENCE_TYPES.has(rootAttr.type)) {
5432
- throw new chunkFQ2ZYOVS_js.ValidationError(`Cannot qualify ${rootAttr.type} attribute "${rule.attribute}"`, [
5437
+ throw new chunkC47FE5UG_js.ValidationError(`Cannot qualify ${rootAttr.type} attribute "${rule.attribute}"`, [
5433
5438
  { path: ["property"], message: `Attribute "${rule.attribute}" is not a reference type` }
5434
5439
  ]);
5435
5440
  }
5436
5441
  const propSchema = rootAttr.properties;
5437
5442
  if (!propSchema) {
5438
- throw new chunkFQ2ZYOVS_js.ValidationError(`Attribute "${rule.attribute}" has no qualifyWith schema`, [
5443
+ throw new chunkC47FE5UG_js.ValidationError(`Attribute "${rule.attribute}" has no qualifyWith schema`, [
5439
5444
  { path: ["property"], message: `"${rule.attribute}" has no qualifyWith` }
5440
5445
  ]);
5441
5446
  }
5442
5447
  const propDef = propSchema.definitions.find((p) => p.name === rule.property);
5443
5448
  if (!propDef) {
5444
- throw new chunkFQ2ZYOVS_js.ValidationError(
5449
+ throw new chunkC47FE5UG_js.ValidationError(
5445
5450
  `Property "${rule.property}" not defined on "${rule.attribute}".qualifyWith()`,
5446
5451
  [{ path: ["property"], message: `Unknown property: ${rule.property}` }]
5447
5452
  );
@@ -5469,177 +5474,177 @@ Object.defineProperty(exports, "indexBy", {
5469
5474
  enumerable: true,
5470
5475
  get: function () { return chunkFRCDMQER_js.indexBy; }
5471
5476
  });
5472
- Object.defineProperty(exports, "parseAttributeConfig", {
5473
- enumerable: true,
5474
- get: function () { return chunkYQROI4IE_js.parseAttributeConfig; }
5475
- });
5476
5477
  Object.defineProperty(exports, "AccessDeniedError", {
5477
5478
  enumerable: true,
5478
- get: function () { return chunkFQ2ZYOVS_js.AccessDeniedError; }
5479
+ get: function () { return chunkC47FE5UG_js.AccessDeniedError; }
5479
5480
  });
5480
5481
  Object.defineProperty(exports, "AttributeInUseError", {
5481
5482
  enumerable: true,
5482
- get: function () { return chunkFQ2ZYOVS_js.AttributeInUseError; }
5483
+ get: function () { return chunkC47FE5UG_js.AttributeInUseError; }
5483
5484
  });
5484
5485
  Object.defineProperty(exports, "AttributeNotFoundError", {
5485
5486
  enumerable: true,
5486
- get: function () { return chunkFQ2ZYOVS_js.AttributeNotFoundError; }
5487
+ get: function () { return chunkC47FE5UG_js.AttributeNotFoundError; }
5487
5488
  });
5488
5489
  Object.defineProperty(exports, "ChangeTypeNotSupportedError", {
5489
5490
  enumerable: true,
5490
- get: function () { return chunkFQ2ZYOVS_js.ChangeTypeNotSupportedError; }
5491
+ get: function () { return chunkC47FE5UG_js.ChangeTypeNotSupportedError; }
5491
5492
  });
5492
5493
  Object.defineProperty(exports, "ConcurrentModificationError", {
5493
5494
  enumerable: true,
5494
- get: function () { return chunkFQ2ZYOVS_js.ConcurrentModificationError; }
5495
+ get: function () { return chunkC47FE5UG_js.ConcurrentModificationError; }
5495
5496
  });
5496
5497
  Object.defineProperty(exports, "DestructiveSyncNotAllowedError", {
5497
5498
  enumerable: true,
5498
- get: function () { return chunkFQ2ZYOVS_js.DestructiveSyncNotAllowedError; }
5499
+ get: function () { return chunkC47FE5UG_js.DestructiveSyncNotAllowedError; }
5499
5500
  });
5500
5501
  Object.defineProperty(exports, "DuplicateError", {
5501
5502
  enumerable: true,
5502
- get: function () { return chunkFQ2ZYOVS_js.DuplicateError; }
5503
+ get: function () { return chunkC47FE5UG_js.DuplicateError; }
5503
5504
  });
5504
5505
  Object.defineProperty(exports, "ForbiddenError", {
5505
5506
  enumerable: true,
5506
- get: function () { return chunkFQ2ZYOVS_js.ForbiddenError; }
5507
+ get: function () { return chunkC47FE5UG_js.ForbiddenError; }
5507
5508
  });
5508
5509
  Object.defineProperty(exports, "MemoryNotFoundError", {
5509
5510
  enumerable: true,
5510
- get: function () { return chunkFQ2ZYOVS_js.MemoryNotFoundError; }
5511
+ get: function () { return chunkC47FE5UG_js.MemoryNotFoundError; }
5511
5512
  });
5512
5513
  Object.defineProperty(exports, "MigrationTimeoutError", {
5513
5514
  enumerable: true,
5514
- get: function () { return chunkFQ2ZYOVS_js.MigrationTimeoutError; }
5515
+ get: function () { return chunkC47FE5UG_js.MigrationTimeoutError; }
5515
5516
  });
5516
5517
  Object.defineProperty(exports, "NotFoundError", {
5517
5518
  enumerable: true,
5518
- get: function () { return chunkFQ2ZYOVS_js.NotFoundError; }
5519
+ get: function () { return chunkC47FE5UG_js.NotFoundError; }
5519
5520
  });
5520
5521
  Object.defineProperty(exports, "NotImplementedError", {
5521
5522
  enumerable: true,
5522
- get: function () { return chunkFQ2ZYOVS_js.NotImplementedError; }
5523
+ get: function () { return chunkC47FE5UG_js.NotImplementedError; }
5523
5524
  });
5524
5525
  Object.defineProperty(exports, "ObjectNotFoundError", {
5525
5526
  enumerable: true,
5526
- get: function () { return chunkFQ2ZYOVS_js.ObjectNotFoundError; }
5527
+ get: function () { return chunkC47FE5UG_js.ObjectNotFoundError; }
5527
5528
  });
5528
5529
  Object.defineProperty(exports, "ObjectReferencedError", {
5529
5530
  enumerable: true,
5530
- get: function () { return chunkFQ2ZYOVS_js.ObjectReferencedError; }
5531
+ get: function () { return chunkC47FE5UG_js.ObjectReferencedError; }
5531
5532
  });
5532
5533
  Object.defineProperty(exports, "OrphanSystemAttributeError", {
5533
5534
  enumerable: true,
5534
- get: function () { return chunkFQ2ZYOVS_js.OrphanSystemAttributeError; }
5535
+ get: function () { return chunkC47FE5UG_js.OrphanSystemAttributeError; }
5535
5536
  });
5536
5537
  Object.defineProperty(exports, "ProtectedResourceError", {
5537
5538
  enumerable: true,
5538
- get: function () { return chunkFQ2ZYOVS_js.ProtectedResourceError; }
5539
+ get: function () { return chunkC47FE5UG_js.ProtectedResourceError; }
5539
5540
  });
5540
5541
  Object.defineProperty(exports, "ProtectedRoleError", {
5541
5542
  enumerable: true,
5542
- get: function () { return chunkFQ2ZYOVS_js.ProtectedRoleError; }
5543
+ get: function () { return chunkC47FE5UG_js.ProtectedRoleError; }
5543
5544
  });
5544
5545
  Object.defineProperty(exports, "RecordNotFoundError", {
5545
5546
  enumerable: true,
5546
- get: function () { return chunkFQ2ZYOVS_js.RecordNotFoundError; }
5547
+ get: function () { return chunkC47FE5UG_js.RecordNotFoundError; }
5547
5548
  });
5548
5549
  Object.defineProperty(exports, "RecordReferencedError", {
5549
5550
  enumerable: true,
5550
- get: function () { return chunkFQ2ZYOVS_js.RecordReferencedError; }
5551
+ get: function () { return chunkC47FE5UG_js.RecordReferencedError; }
5551
5552
  });
5552
5553
  Object.defineProperty(exports, "RepositoryError", {
5553
5554
  enumerable: true,
5554
- get: function () { return chunkFQ2ZYOVS_js.RepositoryError; }
5555
+ get: function () { return chunkC47FE5UG_js.RepositoryError; }
5555
5556
  });
5556
5557
  Object.defineProperty(exports, "RoleNotFoundError", {
5557
5558
  enumerable: true,
5558
- get: function () { return chunkFQ2ZYOVS_js.RoleNotFoundError; }
5559
+ get: function () { return chunkC47FE5UG_js.RoleNotFoundError; }
5559
5560
  });
5560
5561
  Object.defineProperty(exports, "SchemaError", {
5561
5562
  enumerable: true,
5562
- get: function () { return chunkFQ2ZYOVS_js.SchemaError; }
5563
+ get: function () { return chunkC47FE5UG_js.SchemaError; }
5563
5564
  });
5564
5565
  Object.defineProperty(exports, "SchemaErrorCode", {
5565
5566
  enumerable: true,
5566
- get: function () { return chunkFQ2ZYOVS_js.SchemaErrorCode; }
5567
+ get: function () { return chunkC47FE5UG_js.SchemaErrorCode; }
5567
5568
  });
5568
5569
  Object.defineProperty(exports, "StorageError", {
5569
5570
  enumerable: true,
5570
- get: function () { return chunkFQ2ZYOVS_js.StorageError; }
5571
+ get: function () { return chunkC47FE5UG_js.StorageError; }
5571
5572
  });
5572
5573
  Object.defineProperty(exports, "SyncCascadeError", {
5573
5574
  enumerable: true,
5574
- get: function () { return chunkFQ2ZYOVS_js.SyncCascadeError; }
5575
+ get: function () { return chunkC47FE5UG_js.SyncCascadeError; }
5575
5576
  });
5576
5577
  Object.defineProperty(exports, "SyncConflictError", {
5577
5578
  enumerable: true,
5578
- get: function () { return chunkFQ2ZYOVS_js.SyncConflictError; }
5579
+ get: function () { return chunkC47FE5UG_js.SyncConflictError; }
5579
5580
  });
5580
5581
  Object.defineProperty(exports, "SyncError", {
5581
5582
  enumerable: true,
5582
- get: function () { return chunkFQ2ZYOVS_js.SyncError; }
5583
+ get: function () { return chunkC47FE5UG_js.SyncError; }
5583
5584
  });
5584
5585
  Object.defineProperty(exports, "SystemEntityImmutableError", {
5585
5586
  enumerable: true,
5586
- get: function () { return chunkFQ2ZYOVS_js.SystemEntityImmutableError; }
5587
+ get: function () { return chunkC47FE5UG_js.SystemEntityImmutableError; }
5587
5588
  });
5588
5589
  Object.defineProperty(exports, "ValidationError", {
5589
5590
  enumerable: true,
5590
- get: function () { return chunkFQ2ZYOVS_js.ValidationError; }
5591
+ get: function () { return chunkC47FE5UG_js.ValidationError; }
5591
5592
  });
5592
5593
  Object.defineProperty(exports, "computeRecordStatus", {
5593
5594
  enumerable: true,
5594
- get: function () { return chunkFQ2ZYOVS_js.computeRecordStatus; }
5595
+ get: function () { return chunkC47FE5UG_js.computeRecordStatus; }
5595
5596
  });
5596
5597
  Object.defineProperty(exports, "createFormAttributeValidator", {
5597
5598
  enumerable: true,
5598
- get: function () { return chunkFQ2ZYOVS_js.createFormAttributeValidator; }
5599
+ get: function () { return chunkC47FE5UG_js.createFormAttributeValidator; }
5599
5600
  });
5600
5601
  Object.defineProperty(exports, "isAttributeInUseError", {
5601
5602
  enumerable: true,
5602
- get: function () { return chunkFQ2ZYOVS_js.isAttributeInUseError; }
5603
+ get: function () { return chunkC47FE5UG_js.isAttributeInUseError; }
5603
5604
  });
5604
5605
  Object.defineProperty(exports, "isNotFoundError", {
5605
5606
  enumerable: true,
5606
- get: function () { return chunkFQ2ZYOVS_js.isNotFoundError; }
5607
+ get: function () { return chunkC47FE5UG_js.isNotFoundError; }
5607
5608
  });
5608
5609
  Object.defineProperty(exports, "isObjectReferencedError", {
5609
5610
  enumerable: true,
5610
- get: function () { return chunkFQ2ZYOVS_js.isObjectReferencedError; }
5611
+ get: function () { return chunkC47FE5UG_js.isObjectReferencedError; }
5611
5612
  });
5612
5613
  Object.defineProperty(exports, "isProtectedResourceError", {
5613
5614
  enumerable: true,
5614
- get: function () { return chunkFQ2ZYOVS_js.isProtectedResourceError; }
5615
+ get: function () { return chunkC47FE5UG_js.isProtectedResourceError; }
5615
5616
  });
5616
5617
  Object.defineProperty(exports, "isRecordReferencedError", {
5617
5618
  enumerable: true,
5618
- get: function () { return chunkFQ2ZYOVS_js.isRecordReferencedError; }
5619
+ get: function () { return chunkC47FE5UG_js.isRecordReferencedError; }
5619
5620
  });
5620
5621
  Object.defineProperty(exports, "isSchemaError", {
5621
5622
  enumerable: true,
5622
- get: function () { return chunkFQ2ZYOVS_js.isSchemaError; }
5623
+ get: function () { return chunkC47FE5UG_js.isSchemaError; }
5623
5624
  });
5624
5625
  Object.defineProperty(exports, "isValidationError", {
5625
5626
  enumerable: true,
5626
- get: function () { return chunkFQ2ZYOVS_js.isValidationError; }
5627
+ get: function () { return chunkC47FE5UG_js.isValidationError; }
5627
5628
  });
5628
5629
  Object.defineProperty(exports, "validateDraft", {
5629
5630
  enumerable: true,
5630
- get: function () { return chunkFQ2ZYOVS_js.validateDraft; }
5631
+ get: function () { return chunkC47FE5UG_js.validateDraft; }
5631
5632
  });
5632
5633
  Object.defineProperty(exports, "validateDraftOrThrow", {
5633
5634
  enumerable: true,
5634
- get: function () { return chunkFQ2ZYOVS_js.validateDraftOrThrow; }
5635
+ get: function () { return chunkC47FE5UG_js.validateDraftOrThrow; }
5635
5636
  });
5636
5637
  Object.defineProperty(exports, "validateObject", {
5637
5638
  enumerable: true,
5638
- get: function () { return chunkFQ2ZYOVS_js.validateObject; }
5639
+ get: function () { return chunkC47FE5UG_js.validateObject; }
5639
5640
  });
5640
5641
  Object.defineProperty(exports, "validateObjectOrThrow", {
5641
5642
  enumerable: true,
5642
- get: function () { return chunkFQ2ZYOVS_js.validateObjectOrThrow; }
5643
+ get: function () { return chunkC47FE5UG_js.validateObjectOrThrow; }
5644
+ });
5645
+ Object.defineProperty(exports, "parseAttributeConfig", {
5646
+ enumerable: true,
5647
+ get: function () { return chunkYQROI4IE_js.parseAttributeConfig; }
5643
5648
  });
5644
5649
  Object.defineProperty(exports, "DEFAULT_VALIDATION_MESSAGES", {
5645
5650
  enumerable: true,
package/dist/index.mjs CHANGED
@@ -1,10 +1,8 @@
1
1
  import { generateId } from './chunk-QY6QFRRV.mjs';
2
2
  export { asTenantId, asUserId, deepEqual, generateId, indexBy } from './chunk-QY6QFRRV.mjs';
3
3
  import './chunk-SP3PNHYF.mjs';
4
- export { parseAttributeConfig } from './chunk-U4JC7P6D.mjs';
5
- import { createObjectValidator, SchemaError, SchemaErrorCode, ValidationError, createAttributeValidator } from './chunk-LTHSU4NF.mjs';
6
- export { AccessDeniedError, AttributeInUseError, AttributeNotFoundError, ChangeTypeNotSupportedError, ConcurrentModificationError, DestructiveSyncNotAllowedError, DuplicateError, ForbiddenError, MemoryNotFoundError, MigrationTimeoutError, NotFoundError, NotImplementedError, ObjectNotFoundError, ObjectReferencedError, OrphanSystemAttributeError, ProtectedResourceError, ProtectedRoleError, RecordNotFoundError, RecordReferencedError, RepositoryError, RoleNotFoundError, SchemaError, SchemaErrorCode, StorageError, SyncCascadeError, SyncConflictError, SyncError, SystemEntityImmutableError, ValidationError, computeRecordStatus, createFormAttributeValidator, isAttributeInUseError, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isValidationError, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from './chunk-LTHSU4NF.mjs';
7
- import './chunk-TMYBEXBT.mjs';
4
+ import { createObjectValidator, SchemaError, SchemaErrorCode, ValidationError, createAttributeValidator } from './chunk-4KY24N26.mjs';
5
+ export { AccessDeniedError, AttributeInUseError, AttributeNotFoundError, ChangeTypeNotSupportedError, ConcurrentModificationError, DestructiveSyncNotAllowedError, DuplicateError, ForbiddenError, MemoryNotFoundError, MigrationTimeoutError, NotFoundError, NotImplementedError, ObjectNotFoundError, ObjectReferencedError, OrphanSystemAttributeError, ProtectedResourceError, ProtectedRoleError, RecordNotFoundError, RecordReferencedError, RepositoryError, RoleNotFoundError, SchemaError, SchemaErrorCode, StorageError, SyncCascadeError, SyncConflictError, SyncError, SystemEntityImmutableError, ValidationError, computeRecordStatus, createFormAttributeValidator, isAttributeInUseError, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isValidationError, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from './chunk-4KY24N26.mjs';
8
6
  import './chunk-4KRLCWJM.mjs';
9
7
  import './chunk-KNYZH2WD.mjs';
10
8
  import './chunk-RUYUFXNW.mjs';
@@ -14,6 +12,8 @@ import './chunk-SMOHDR6M.mjs';
14
12
  import './chunk-ITTQ4FGR.mjs';
15
13
  import './chunk-IRTRJH37.mjs';
16
14
  import './chunk-OLJLCVNY.mjs';
15
+ export { parseAttributeConfig } from './chunk-U4JC7P6D.mjs';
16
+ import './chunk-TMYBEXBT.mjs';
17
17
  import './chunk-TEQNVO7W.mjs';
18
18
  import './chunk-4TC27SMF.mjs';
19
19
  import './chunk-TBYXYSGA.mjs';
@@ -835,6 +835,8 @@ var SYSTEM_RESOURCES = {
835
835
  AUDIT: "audit",
836
836
  /** Programmatic access keys */
837
837
  API_KEYS: "api-keys",
838
+ /** Environment variables for agents */
839
+ ENV_VARS: "env-vars",
838
840
  /** Agent session visibility — required for an agent actor to read its own sessions */
839
841
  SESSION: "session"
840
842
  };
@@ -849,6 +851,7 @@ var ALL_SYSTEM_RESOURCES = [
849
851
  SYSTEM_RESOURCES.DOCUMENTS,
850
852
  SYSTEM_RESOURCES.AUDIT,
851
853
  SYSTEM_RESOURCES.API_KEYS,
854
+ SYSTEM_RESOURCES.ENV_VARS,
852
855
  SYSTEM_RESOURCES.SESSION
853
856
  ];
854
857
  var SYSTEM_RESOURCE_LABELS = {
@@ -862,6 +865,7 @@ var SYSTEM_RESOURCE_LABELS = {
862
865
  documents: "Documents",
863
866
  audit: "Audit",
864
867
  "api-keys": "API keys",
868
+ "env-vars": "Environment variables",
865
869
  session: "Agent sessions"
866
870
  };
867
871
  var DEFAULT_ROLES = {
@@ -899,6 +903,7 @@ var DEFAULT_ROLE_PERMISSIONS = {
899
903
  system: [
900
904
  { target: "documents", actions: ["read", "create", "update"] },
901
905
  { target: "files", actions: ["read", "create", "update"] },
906
+ { target: "env-vars", actions: ["read"] },
902
907
  // Required so the agent actor can read its own sessions when the worker
903
908
  // resumes a queued job under the agent's identity (runAsAgentActor).
904
909
  { target: "session", actions: ["observe"] }
@@ -1,9 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  require('../chunk-PGERPYDR.js');
4
- var chunkYQROI4IE_js = require('../chunk-YQROI4IE.js');
5
- var chunkFQ2ZYOVS_js = require('../chunk-FQ2ZYOVS.js');
6
- require('../chunk-MAKSIK3P.js');
4
+ var chunkC47FE5UG_js = require('../chunk-C47FE5UG.js');
7
5
  require('../chunk-J5HRK3WD.js');
8
6
  require('../chunk-TKN73433.js');
9
7
  require('../chunk-D7WFIGXW.js');
@@ -13,6 +11,8 @@ require('../chunk-EZHMVZQ4.js');
13
11
  require('../chunk-VXOTYFEW.js');
14
12
  require('../chunk-OAQWRMTP.js');
15
13
  require('../chunk-ACQ3TUFK.js');
14
+ var chunkYQROI4IE_js = require('../chunk-YQROI4IE.js');
15
+ require('../chunk-MAKSIK3P.js');
16
16
  require('../chunk-DC7YYE3U.js');
17
17
  require('../chunk-ROAZLZA2.js');
18
18
  require('../chunk-CCB4OY2O.js');
@@ -22,33 +22,33 @@ var chunkT225DB55_js = require('../chunk-T225DB55.js');
22
22
 
23
23
 
24
24
 
25
- Object.defineProperty(exports, "parseAttributeConfig", {
26
- enumerable: true,
27
- get: function () { return chunkYQROI4IE_js.parseAttributeConfig; }
28
- });
29
25
  Object.defineProperty(exports, "computeRecordStatus", {
30
26
  enumerable: true,
31
- get: function () { return chunkFQ2ZYOVS_js.computeRecordStatus; }
27
+ get: function () { return chunkC47FE5UG_js.computeRecordStatus; }
32
28
  });
33
29
  Object.defineProperty(exports, "createFormAttributeValidator", {
34
30
  enumerable: true,
35
- get: function () { return chunkFQ2ZYOVS_js.createFormAttributeValidator; }
31
+ get: function () { return chunkC47FE5UG_js.createFormAttributeValidator; }
36
32
  });
37
33
  Object.defineProperty(exports, "validateDraft", {
38
34
  enumerable: true,
39
- get: function () { return chunkFQ2ZYOVS_js.validateDraft; }
35
+ get: function () { return chunkC47FE5UG_js.validateDraft; }
40
36
  });
41
37
  Object.defineProperty(exports, "validateDraftOrThrow", {
42
38
  enumerable: true,
43
- get: function () { return chunkFQ2ZYOVS_js.validateDraftOrThrow; }
39
+ get: function () { return chunkC47FE5UG_js.validateDraftOrThrow; }
44
40
  });
45
41
  Object.defineProperty(exports, "validateObject", {
46
42
  enumerable: true,
47
- get: function () { return chunkFQ2ZYOVS_js.validateObject; }
43
+ get: function () { return chunkC47FE5UG_js.validateObject; }
48
44
  });
49
45
  Object.defineProperty(exports, "validateObjectOrThrow", {
50
46
  enumerable: true,
51
- get: function () { return chunkFQ2ZYOVS_js.validateObjectOrThrow; }
47
+ get: function () { return chunkC47FE5UG_js.validateObjectOrThrow; }
48
+ });
49
+ Object.defineProperty(exports, "parseAttributeConfig", {
50
+ enumerable: true,
51
+ get: function () { return chunkYQROI4IE_js.parseAttributeConfig; }
52
52
  });
53
53
  Object.defineProperty(exports, "DEFAULT_VALIDATION_MESSAGES", {
54
54
  enumerable: true,
@@ -1,7 +1,5 @@
1
1
  import '../chunk-SP3PNHYF.mjs';
2
- export { parseAttributeConfig } from '../chunk-U4JC7P6D.mjs';
3
- export { computeRecordStatus, createFormAttributeValidator, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from '../chunk-LTHSU4NF.mjs';
4
- import '../chunk-TMYBEXBT.mjs';
2
+ export { computeRecordStatus, createFormAttributeValidator, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from '../chunk-4KY24N26.mjs';
5
3
  import '../chunk-4KRLCWJM.mjs';
6
4
  import '../chunk-KNYZH2WD.mjs';
7
5
  import '../chunk-RUYUFXNW.mjs';
@@ -11,6 +9,8 @@ import '../chunk-SMOHDR6M.mjs';
11
9
  import '../chunk-ITTQ4FGR.mjs';
12
10
  import '../chunk-IRTRJH37.mjs';
13
11
  import '../chunk-OLJLCVNY.mjs';
12
+ export { parseAttributeConfig } from '../chunk-U4JC7P6D.mjs';
13
+ import '../chunk-TMYBEXBT.mjs';
14
14
  import '../chunk-TEQNVO7W.mjs';
15
15
  import '../chunk-4TC27SMF.mjs';
16
16
  import '../chunk-TBYXYSGA.mjs';
@@ -1,7 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkFQ2ZYOVS_js = require('../../chunk-FQ2ZYOVS.js');
4
- require('../../chunk-MAKSIK3P.js');
3
+ var chunkC47FE5UG_js = require('../../chunk-C47FE5UG.js');
5
4
  require('../../chunk-J5HRK3WD.js');
6
5
  require('../../chunk-TKN73433.js');
7
6
  require('../../chunk-D7WFIGXW.js');
@@ -11,6 +10,7 @@ require('../../chunk-EZHMVZQ4.js');
11
10
  require('../../chunk-VXOTYFEW.js');
12
11
  require('../../chunk-OAQWRMTP.js');
13
12
  require('../../chunk-ACQ3TUFK.js');
13
+ require('../../chunk-MAKSIK3P.js');
14
14
  require('../../chunk-DC7YYE3U.js');
15
15
  require('../../chunk-ROAZLZA2.js');
16
16
  require('../../chunk-CCB4OY2O.js');
@@ -22,49 +22,49 @@ require('../../chunk-T225DB55.js');
22
22
 
23
23
  Object.defineProperty(exports, "computeRecordStatus", {
24
24
  enumerable: true,
25
- get: function () { return chunkFQ2ZYOVS_js.computeRecordStatus; }
25
+ get: function () { return chunkC47FE5UG_js.computeRecordStatus; }
26
26
  });
27
27
  Object.defineProperty(exports, "createAttributeValidator", {
28
28
  enumerable: true,
29
- get: function () { return chunkFQ2ZYOVS_js.createAttributeValidator; }
29
+ get: function () { return chunkC47FE5UG_js.createAttributeValidator; }
30
30
  });
31
31
  Object.defineProperty(exports, "createDraftValidator", {
32
32
  enumerable: true,
33
- get: function () { return chunkFQ2ZYOVS_js.createDraftValidator; }
33
+ get: function () { return chunkC47FE5UG_js.createDraftValidator; }
34
34
  });
35
35
  Object.defineProperty(exports, "createFormAttributeValidator", {
36
36
  enumerable: true,
37
- get: function () { return chunkFQ2ZYOVS_js.createFormAttributeValidator; }
37
+ get: function () { return chunkC47FE5UG_js.createFormAttributeValidator; }
38
38
  });
39
39
  Object.defineProperty(exports, "createObjectValidator", {
40
40
  enumerable: true,
41
- get: function () { return chunkFQ2ZYOVS_js.createObjectValidator; }
41
+ get: function () { return chunkC47FE5UG_js.createObjectValidator; }
42
42
  });
43
43
  Object.defineProperty(exports, "getMissingRequiredAttributes", {
44
44
  enumerable: true,
45
- get: function () { return chunkFQ2ZYOVS_js.getMissingRequiredAttributes; }
45
+ get: function () { return chunkC47FE5UG_js.getMissingRequiredAttributes; }
46
46
  });
47
47
  Object.defineProperty(exports, "isRecordComplete", {
48
48
  enumerable: true,
49
- get: function () { return chunkFQ2ZYOVS_js.isRecordComplete; }
49
+ get: function () { return chunkC47FE5UG_js.isRecordComplete; }
50
50
  });
51
51
  Object.defineProperty(exports, "validateAttribute", {
52
52
  enumerable: true,
53
- get: function () { return chunkFQ2ZYOVS_js.validateAttribute; }
53
+ get: function () { return chunkC47FE5UG_js.validateAttribute; }
54
54
  });
55
55
  Object.defineProperty(exports, "validateDraft", {
56
56
  enumerable: true,
57
- get: function () { return chunkFQ2ZYOVS_js.validateDraft; }
57
+ get: function () { return chunkC47FE5UG_js.validateDraft; }
58
58
  });
59
59
  Object.defineProperty(exports, "validateDraftOrThrow", {
60
60
  enumerable: true,
61
- get: function () { return chunkFQ2ZYOVS_js.validateDraftOrThrow; }
61
+ get: function () { return chunkC47FE5UG_js.validateDraftOrThrow; }
62
62
  });
63
63
  Object.defineProperty(exports, "validateObject", {
64
64
  enumerable: true,
65
- get: function () { return chunkFQ2ZYOVS_js.validateObject; }
65
+ get: function () { return chunkC47FE5UG_js.validateObject; }
66
66
  });
67
67
  Object.defineProperty(exports, "validateObjectOrThrow", {
68
68
  enumerable: true,
69
- get: function () { return chunkFQ2ZYOVS_js.validateObjectOrThrow; }
69
+ get: function () { return chunkC47FE5UG_js.validateObjectOrThrow; }
70
70
  });
@@ -1,5 +1,4 @@
1
- export { computeRecordStatus, createAttributeValidator, createDraftValidator, createFormAttributeValidator, createObjectValidator, getMissingRequiredAttributes, isRecordComplete, validateAttribute, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from '../../chunk-LTHSU4NF.mjs';
2
- import '../../chunk-TMYBEXBT.mjs';
1
+ export { computeRecordStatus, createAttributeValidator, createDraftValidator, createFormAttributeValidator, createObjectValidator, getMissingRequiredAttributes, isRecordComplete, validateAttribute, validateDraft, validateDraftOrThrow, validateObject, validateObjectOrThrow } from '../../chunk-4KY24N26.mjs';
3
2
  import '../../chunk-4KRLCWJM.mjs';
4
3
  import '../../chunk-KNYZH2WD.mjs';
5
4
  import '../../chunk-RUYUFXNW.mjs';
@@ -9,6 +8,7 @@ import '../../chunk-SMOHDR6M.mjs';
9
8
  import '../../chunk-ITTQ4FGR.mjs';
10
9
  import '../../chunk-IRTRJH37.mjs';
11
10
  import '../../chunk-OLJLCVNY.mjs';
11
+ import '../../chunk-TMYBEXBT.mjs';
12
12
  import '../../chunk-TEQNVO7W.mjs';
13
13
  import '../../chunk-4TC27SMF.mjs';
14
14
  import '../../chunk-TBYXYSGA.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stndrds/schema",
3
- "version": "1.0.0-alpha.191",
3
+ "version": "1.0.0-alpha.193",
4
4
  "description": "Standard schema definitions and utilities",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -131,7 +131,7 @@
131
131
  "expr-eval": "^2.0.2",
132
132
  "libphonenumber-js": "^1.12.31",
133
133
  "zod": "^4.2.1",
134
- "@stndrds/constants": "1.0.0-alpha.191"
134
+ "@stndrds/constants": "1.0.0-alpha.193"
135
135
  },
136
136
  "devDependencies": {
137
137
  "@types/node": "^25.0.3",
@@ -1,4 +1,3 @@
1
- import { createCheckboxValidator } from './chunk-TMYBEXBT.mjs';
2
1
  import { createDateValidator } from './chunk-4KRLCWJM.mjs';
3
2
  import { createNumberValidator } from './chunk-KNYZH2WD.mjs';
4
3
  import { createRatingValidator } from './chunk-RUYUFXNW.mjs';
@@ -8,6 +7,7 @@ import { createMultiselectValidator, createSelectValidator, createStatusValidato
8
7
  import { createUserValidator } from './chunk-ITTQ4FGR.mjs';
9
8
  import { createFormulaValidator } from './chunk-IRTRJH37.mjs';
10
9
  import { createRollupValidator } from './chunk-OLJLCVNY.mjs';
10
+ import { createCheckboxValidator } from './chunk-TMYBEXBT.mjs';
11
11
  import { createCurrencyValidator } from './chunk-TEQNVO7W.mjs';
12
12
  import { createFileValidator } from './chunk-4TC27SMF.mjs';
13
13
  import { createLocationValidator } from './chunk-TBYXYSGA.mjs';
@@ -1,6 +1,5 @@
1
1
  'use strict';
2
2
 
3
- var chunkMAKSIK3P_js = require('./chunk-MAKSIK3P.js');
4
3
  var chunkJ5HRK3WD_js = require('./chunk-J5HRK3WD.js');
5
4
  var chunkTKN73433_js = require('./chunk-TKN73433.js');
6
5
  var chunkD7WFIGXW_js = require('./chunk-D7WFIGXW.js');
@@ -10,6 +9,7 @@ var chunkEZHMVZQ4_js = require('./chunk-EZHMVZQ4.js');
10
9
  var chunkVXOTYFEW_js = require('./chunk-VXOTYFEW.js');
11
10
  var chunkOAQWRMTP_js = require('./chunk-OAQWRMTP.js');
12
11
  var chunkACQ3TUFK_js = require('./chunk-ACQ3TUFK.js');
12
+ var chunkMAKSIK3P_js = require('./chunk-MAKSIK3P.js');
13
13
  var chunkDC7YYE3U_js = require('./chunk-DC7YYE3U.js');
14
14
  var chunkROAZLZA2_js = require('./chunk-ROAZLZA2.js');
15
15
  var chunkCCB4OY2O_js = require('./chunk-CCB4OY2O.js');