@elevasis/core 0.11.0 → 0.11.2

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.
Files changed (32) hide show
  1. package/dist/index.d.ts +3 -2
  2. package/dist/index.js +8 -13
  3. package/dist/organization-model/index.d.ts +3 -2
  4. package/dist/organization-model/index.js +8 -13
  5. package/dist/test-utils/index.d.ts +175 -0
  6. package/dist/test-utils/index.js +8 -8
  7. package/package.json +1 -1
  8. package/src/__tests__/template-core-compatibility.test.ts +6 -15
  9. package/src/_gen/__tests__/__snapshots__/contracts.md.snap +36 -38
  10. package/src/auth/multi-tenancy/index.ts +20 -17
  11. package/src/auth/multi-tenancy/memberships/api-schemas.ts +142 -126
  12. package/src/auth/multi-tenancy/memberships/index.ts +26 -22
  13. package/src/auth/multi-tenancy/permissions.test.ts +42 -0
  14. package/src/auth/multi-tenancy/permissions.ts +104 -0
  15. package/src/organization-model/README.md +1 -0
  16. package/src/organization-model/__tests__/defaults.test.ts +19 -6
  17. package/src/organization-model/contracts.ts +3 -3
  18. package/src/organization-model/defaults.ts +3 -8
  19. package/src/organization-model/domains/navigation.ts +26 -32
  20. package/src/organization-model/foundation.ts +2 -3
  21. package/src/organization-model/organization-model.mdx +3 -0
  22. package/src/organization-model/published.ts +5 -5
  23. package/src/platform/constants/versions.ts +3 -3
  24. package/src/platform/registry/index.ts +86 -91
  25. package/src/platform/registry/resource-registry.ts +905 -866
  26. package/src/reference/_generated/contracts.md +36 -38
  27. package/src/scaffold-registry/__tests__/index.test.ts +125 -1
  28. package/src/scaffold-registry/__tests__/schema.test.ts +48 -20
  29. package/src/scaffold-registry/index.ts +236 -188
  30. package/src/scaffold-registry/schema.ts +47 -22
  31. package/src/supabase/database.types.ts +2880 -2719
  32. package/src/test-utils/fixtures/memberships.ts +82 -80
@@ -11,11 +11,11 @@ export {
11
11
  OPERATIONS_FEATURE_ID,
12
12
  MONITORING_FEATURE_ID,
13
13
  SETTINGS_FEATURE_ID,
14
- SEO_FEATURE_ID,
15
- SALES_PIPELINE_SURFACE_ID,
16
- PROSPECTING_LISTS_SURFACE_ID,
17
- OPERATIONS_ORGANIZATION_GRAPH_SURFACE_ID
18
- } from './contracts'
14
+ SEO_FEATURE_ID,
15
+ SALES_PIPELINE_SURFACE_ID,
16
+ PROSPECTING_LISTS_SURFACE_ID,
17
+ OPERATIONS_COMMAND_VIEW_SURFACE_ID
18
+ } from './contracts'
19
19
  export { DEFAULT_ORGANIZATION_MODEL } from './defaults'
20
20
  export {
21
21
  DEFAULT_ORGANIZATION_MODEL_STATUSES,
@@ -1,3 +1,3 @@
1
- export const VERSION = {
2
- CURRENT: '1.6.9'
3
- }
1
+ export const VERSION = {
2
+ CURRENT: '1.6.11'
3
+ }
@@ -1,98 +1,93 @@
1
- /**
2
- * Resource Registry exports
3
- */
4
-
5
- export {
6
- ResourceCategorySchema,
7
- ResourceLinkSchema,
8
- kindPrefix,
9
- validateNodeId
10
- } from './resource-link'
1
+ /**
2
+ * Resource Registry exports
3
+ */
4
+
5
+ export { ResourceCategorySchema, ResourceLinkSchema, kindPrefix, validateNodeId } from './resource-link'
11
6
  export type { ResourceCategory, ResourceLink } from './resource-link'
12
-
13
- export { RESERVED_RESOURCE_IDS, SYSTEM_RESOURCE_IDS, isReservedResourceId } from './reserved'
14
-
15
- export { ResourceRegistry } from './resource-registry'
16
- export type { DeploymentSpec, OrganizationRegistry, RemoteOrgConfig } from './resource-registry'
17
-
18
- // Validation utilities
19
- export {
20
- validateDeploymentSpec,
21
- validateRelationships,
22
- validateExecutionInterface,
23
- RegistryValidationError
24
- } from './validation'
25
-
26
- // Serialization utilities
27
- export { serializeAllOrganizations, serializeOrganization, buildEdges } from './serialization'
28
-
29
- // Types
30
- export type {
31
- ResourceStatus,
32
- ResourceType,
33
- ExecutableResourceType,
34
- ResourceDefinition,
35
- ResourceList,
36
- TriggerDefinition,
37
- IntegrationDefinition,
7
+
8
+ export { RESERVED_RESOURCE_IDS, SYSTEM_RESOURCE_IDS, isReservedResourceId } from './reserved'
9
+
10
+ export { ResourceRegistry } from './resource-registry'
11
+ export type { DeploymentSpec, OrganizationRegistry, RemoteOrgConfig, SystemConfig } from './resource-registry'
12
+
13
+ // Validation utilities
14
+ export {
15
+ validateDeploymentSpec,
16
+ validateRelationships,
17
+ validateExecutionInterface,
18
+ RegistryValidationError
19
+ } from './validation'
20
+
21
+ // Serialization utilities
22
+ export { serializeAllOrganizations, serializeOrganization, buildEdges } from './serialization'
23
+
24
+ // Types
25
+ export type {
26
+ ResourceStatus,
27
+ ResourceType,
28
+ ExecutableResourceType,
29
+ ResourceDefinition,
30
+ ResourceList,
31
+ TriggerDefinition,
32
+ IntegrationDefinition,
38
33
  RelationshipDeclaration,
39
34
  ResourceRelationships,
40
35
  ExternalPlatform,
41
36
  ExternalResourceDefinition,
42
37
  HumanCheckpointDefinition,
43
38
  WebhookProviderType,
44
- WebhookTriggerConfig,
45
- ScheduleTriggerConfig,
46
- EventTriggerConfig,
47
- TriggerConfig
48
- } from './types'
49
-
50
- // Serialized Types (for API responses)
51
- export type {
52
- SerializedAgentDefinition,
53
- SerializedWorkflowDefinition,
54
- SerializedExecutionInterface,
55
- SerializedExecutionFormSchema,
56
- SerializedFormField,
57
- SerializedFormSchema,
58
- SerializedOrganizationData
59
- } from './serialized-types'
60
-
61
- // Command View Types (for graph visualization)
62
- export type {
63
- CommandViewAgent,
64
- CommandViewWorkflow,
65
- CommandViewNode,
66
- CommandViewNodeType,
67
- CommandViewEdge,
68
- CommandViewData,
69
- RelationshipType
70
- } from './command-view'
71
-
72
- // Command View Utilities
73
- export {
74
- isAgent,
75
- isWorkflow,
76
- isTrigger,
77
- isIntegration,
78
- isExternalResource,
79
- isHumanCheckpoint,
80
- getNodeId,
81
- getNodeType
82
- } from './command-view'
83
-
84
- // Command View Stats types (moved from command-view/)
85
- export type {
86
- StatsTimeRange,
87
- ResourceStats,
88
- ResourceErrorsResponse,
89
- ErrorSummary,
90
- CommandViewExecution,
91
- ResourceExecutionsResponse,
92
- HumanCheckpointStats,
93
- CommandViewStatsResponse
94
- } from './stats-types'
95
-
96
- // Resource Metadata (icon names, colors)
97
- export type { ResourceDefinitionType, NodeColorType } from './resource-metadata'
98
- export { resourceTypeIconNames, resourceTypeColors, getResourceIconName, getResourceColor } from './resource-metadata'
39
+ WebhookTriggerConfig,
40
+ ScheduleTriggerConfig,
41
+ EventTriggerConfig,
42
+ TriggerConfig
43
+ } from './types'
44
+
45
+ // Serialized Types (for API responses)
46
+ export type {
47
+ SerializedAgentDefinition,
48
+ SerializedWorkflowDefinition,
49
+ SerializedExecutionInterface,
50
+ SerializedExecutionFormSchema,
51
+ SerializedFormField,
52
+ SerializedFormSchema,
53
+ SerializedOrganizationData
54
+ } from './serialized-types'
55
+
56
+ // Command View Types (for graph visualization)
57
+ export type {
58
+ CommandViewAgent,
59
+ CommandViewWorkflow,
60
+ CommandViewNode,
61
+ CommandViewNodeType,
62
+ CommandViewEdge,
63
+ CommandViewData,
64
+ RelationshipType
65
+ } from './command-view'
66
+
67
+ // Command View Utilities
68
+ export {
69
+ isAgent,
70
+ isWorkflow,
71
+ isTrigger,
72
+ isIntegration,
73
+ isExternalResource,
74
+ isHumanCheckpoint,
75
+ getNodeId,
76
+ getNodeType
77
+ } from './command-view'
78
+
79
+ // Command View Stats types (moved from command-view/)
80
+ export type {
81
+ StatsTimeRange,
82
+ ResourceStats,
83
+ ResourceErrorsResponse,
84
+ ErrorSummary,
85
+ CommandViewExecution,
86
+ ResourceExecutionsResponse,
87
+ HumanCheckpointStats,
88
+ CommandViewStatsResponse
89
+ } from './stats-types'
90
+
91
+ // Resource Metadata (icon names, colors)
92
+ export type { ResourceDefinitionType, NodeColorType } from './resource-metadata'
93
+ export { resourceTypeIconNames, resourceTypeColors, getResourceIconName, getResourceColor } from './resource-metadata'