@elevasis/sdk 1.10.0 → 1.11.0

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.
@@ -1,158 +1,114 @@
1
- ---
2
- title: Gate by Feature or Admin
3
- description: Decision table and step-by-step recipes for gating routes, nav items, and UI elements by feature flag or admin role.
4
- ---
5
-
6
- # Gate by Feature or Admin
7
-
8
- End-to-end: gate a route, nav item, or UI element. Steps are sequential.
9
-
10
- See [glossary.md](../reference/glossary.md) under **FeatureGuard**, **AdminGuard**, **featureId**, **featureKey**, **Settings asymmetry**, and **MembershipFeatureConfig**. See [contracts.md](../reference/contracts.md) for `MembershipFeatureConfig` shape and the settings-asymmetry callout.
11
-
12
- For the three-concept model in full detail, see [feature-flags-and-gating.md](../ui/feature-flags-and-gating.md).
13
-
14
- ---
15
-
16
- ## 1. Decide: feature-level or admin-level?
17
-
18
- | Scenario | Gate to use |
19
- | -------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
20
- | Surface should be off by default for all members, toggled org-wide or per member | `FeatureGuard` + `featureKey` on nav entry |
21
- | Surface is always visible to authenticated members but restricted to admins only | `AdminGuard` + `requiresAdmin` on nav entry |
22
- | Surface is both feature-gated and admin-only | Both: `FeatureGuard` wrapping `AdminGuard`, plus both nav-entry fields |
23
-
24
- Do not substitute one for the other. `FeatureGuard` reads feature flags; `AdminGuard` reads admin role. They are independent.
25
-
26
- ---
27
-
28
- ## 2. Feature gate -- org level
29
-
30
- Ensure a feature object with the matching `id` exists in the org model. File: `core/config/organization-model.ts`.
31
-
32
- ```ts
33
- import { defineOrganizationModel, OPERATIONS_FEATURE_ID, SALES_FEATURE_ID } from '@elevasis/core/organization-model'
34
-
35
- // In the features[] array inside defineOrganizationModel:
36
- features: [
37
- // ... existing features
38
- { id: 'analytics', label: 'Analytics', enabled: false, entityIds: [], surfaceIds: [], resourceIds: [], capabilityIds: [] }
39
- ]
40
- ```
41
-
42
- Use typed constants for the 7 platform features (`SALES_FEATURE_ID`, `OPERATIONS_FEATURE_ID`, etc.); use string literals for project-specific features you invent. In this example, `'analytics'` is a project-local feature and stays as a string literal.
43
-
44
- See [add-a-feature.md](add-a-feature.md) step 2 for the full feature object shape.
45
-
46
- Set `enabled: true` to enable for all members by default.
47
-
48
- ---
49
-
50
- ## 3. Feature gate -- route level
51
-
52
- Wrap the route layout with `FeatureGuard` inside `ProtectedRoute`. The template-local `FeatureGuard` resolves key aliases automatically.
53
-
54
- ```tsx
55
- import { ProtectedRoute } from '@/features/auth'
56
- import { FeatureGuard } from '@/features/auth/guards/FeatureGuard'
57
- import { createFileRoute, Outlet } from '@tanstack/react-router'
58
-
59
- export const Route = createFileRoute('/analytics')({ component: AnalyticsLayout })
60
-
61
- function AnalyticsLayout() {
62
- return (
63
- <ProtectedRoute>
64
- <FeatureGuard featureKey="analytics">
65
- <Outlet />
66
- </FeatureGuard>
67
- </ProtectedRoute>
68
- )
69
- }
70
- ```
71
-
72
- `FeatureGuard` redirects to `/` with a Mantine notification when the feature is off. All child routes under this layout are automatically protected -- no need to repeat the guard in children.
73
-
74
- Import path: `@/features/auth/guards/FeatureGuard` (template-local). Do not import `FeatureGuard` from `@elevasis/ui/features` -- that version does not close over the local org model. See [feature-flags-and-gating.md](../ui/feature-flags-and-gating.md) for the import-paths table.
75
-
76
- ---
77
-
78
- ## 4. Admin gate -- route level
79
-
80
- Wrap with `AdminGuard` inside `ProtectedRoute`. `AdminGuard` redirects non-admins to `redirectTo` (default `/`).
81
-
82
- ```tsx
83
- import { ProtectedRoute } from '@/features/auth'
84
- import { AdminGuard } from '@elevasis/ui/auth'
85
- import { createFileRoute, Outlet } from '@tanstack/react-router'
86
-
87
- export const Route = createFileRoute('/admin')({ component: AdminLayout })
88
-
89
- function AdminLayout() {
90
- return (
91
- <ProtectedRoute>
92
- <AdminGuard>
93
- <Outlet />
94
- </AdminGuard>
95
- </ProtectedRoute>
96
- )
97
- }
98
- ```
99
-
100
- Import path: `@elevasis/ui/auth` (published). Always nest inside `ProtectedRoute` -- the guard depends on the user profile being loaded.
101
-
102
- ---
103
-
104
- ## 5. Nav-item visibility
105
-
106
- Declare `featureKey` on the nav entry to have the shell auto-hide it when the feature is off. Declare `requiresAdmin: true` to hide it for non-admin members.
107
-
108
- ```ts
109
- // In FeatureModule.navEntry (manifest-backed features):
110
- navEntry: {
111
- label: 'Analytics',
112
- icon: IconChartBar,
113
- link: '/analytics',
114
- featureKey: 'analytics' // optional -- featureId already gates the whole module
115
- }
116
-
117
- // In nav-items.ts (app-local nav):
118
- { label: 'Analytics', icon: IconChartBar, link: '/analytics', featureKey: 'analytics' }
119
- { label: 'Admin', icon: IconShield, link: '/admin', requiresAdmin: true }
120
- ```
121
-
122
- `featureKey` on a nav entry is a display hint only -- it does not protect the route. Always pair with a route-level `FeatureGuard`. See [glossary.md](../reference/glossary.md) under **featureId vs featureKey** for the distinction. When the `featureKey` is one of the 7 platform features, prefer the typed constant (e.g., `featureKey: SALES_FEATURE_ID`) over a string literal to catch renames at compile time.
123
-
124
- ---
125
-
126
- ## 6. Per-member override
127
-
128
- `MembershipFeatureConfig.features` (stored in `org_memberships.config`) overrides org-level defaults per member. Full shape is in [contracts.md](../reference/contracts.md#membershipfeatureconfig).
129
-
130
- ```ts
131
- // Disable analytics for a specific member (stored in their membership record):
132
- {
133
- features: { analytics: false }
134
- }
135
- ```
136
-
137
- `MembershipFeatureConfig.features` is `Record<string, boolean>` -- a dynamic map keyed by feature ID. Any feature ID from the org model can be overridden per member without schema changes.
138
-
139
- **Settings asymmetry -- read this before writing membership config.** The `settings` feature is intentionally excluded from per-member overrides: settings access is controlled by `requiresAdmin` and `AdminGuard`, not per-member feature flags. Writing a `settings` key to `org_memberships.config` has no effect. See [contracts.md](../reference/contracts.md#membershipfeatureconfig) for the full callout, and [glossary.md](../reference/glossary.md) under **Settings asymmetry**.
140
-
141
- Membership config is read/written directly via the Supabase client (`org_memberships.config` column). There is no dedicated API route for bulk updates.
142
-
143
- ---
144
-
145
- ## 7. Verify
146
-
147
- State matrix -- confirm each combination:
148
-
149
- | Org feature enabled | Member override | Admin | Expected result |
150
- | ------------------- | --------------- | --------- | --------------------------------------------- |
151
- | true | (absent) | any | Route accessible, nav visible |
152
- | true | false | any | Route redirects, nav hidden |
153
- | false | (absent) | any | Route redirects, nav hidden |
154
- | false | true | any | Route redirects (org gate wins) |
155
- | true | (absent) | non-admin | Admin-gated route redirects, admin nav hidden |
156
- | true | (absent) | admin | Admin-gated route accessible, nav visible |
157
-
158
- Check each gate independently: feature toggle in `core/config/organization-model.ts`, membership config in `org_memberships.config`, and admin status in the user profile.
1
+ ---
2
+ title: Gate by Feature or Admin
3
+ description: Decision table and recipes for gating routes, sidebar entries, and UI elements by Organization Model feature ID or admin role.
4
+ ---
5
+
6
+ # Gate by Feature or Admin
7
+
8
+ Feature visibility starts in `core/config/organization-model.ts`. Routes still enforce access with guards.
9
+
10
+ ## Decide the gate
11
+
12
+ | Scenario | Gate to use |
13
+ | --- | --- |
14
+ | Surface can be enabled or disabled per organization/member | `FeatureGuard` with the feature ID |
15
+ | Surface is always available to members but restricted to admins | `AdminGuard` plus `requiresAdmin: true` on the feature node |
16
+ | Surface is both feature-gated and admin-only | Both guards, plus `requiresAdmin: true` on the feature node |
17
+
18
+ ## Feature gate in the org model
19
+
20
+ Add or update the feature in `features`.
21
+
22
+ ```ts
23
+ features: [
24
+ {
25
+ id: 'analytics',
26
+ label: 'Analytics',
27
+ enabled: false,
28
+ path: '/analytics',
29
+ icon: 'chart',
30
+ uiPosition: 'sidebar-primary'
31
+ }
32
+ ]
33
+ ```
34
+
35
+ Set `enabled: true` to enable it for all members by default. Dotted IDs such as `analytics.reports` inherit feature state and shell placement from their ancestors unless they declare their own value.
36
+
37
+ ## Route-level feature gate
38
+
39
+ ```tsx
40
+ import { ProtectedRoute } from '@/features/auth'
41
+ import { FeatureGuard } from '@/features/auth/guards/FeatureGuard'
42
+ import { createFileRoute, Outlet } from '@tanstack/react-router'
43
+
44
+ export const Route = createFileRoute('/analytics')({ component: AnalyticsLayout })
45
+
46
+ function AnalyticsLayout() {
47
+ return (
48
+ <ProtectedRoute>
49
+ <FeatureGuard featureKey="analytics">
50
+ <Outlet />
51
+ </FeatureGuard>
52
+ </ProtectedRoute>
53
+ )
54
+ }
55
+ ```
56
+
57
+ The sidebar is derived from `OrganizationModel.features`; hiding a node there is display behavior only. Keep route guards in place for direct URL access.
58
+
59
+ ## Admin-only route
60
+
61
+ ```tsx
62
+ import { ProtectedRoute } from '@/features/auth'
63
+ import { AdminGuard } from '@elevasis/ui/auth'
64
+ import { createFileRoute, Outlet } from '@tanstack/react-router'
65
+
66
+ export const Route = createFileRoute('/admin')({ component: AdminLayout })
67
+
68
+ function AdminLayout() {
69
+ return (
70
+ <ProtectedRoute>
71
+ <AdminGuard>
72
+ <Outlet />
73
+ </AdminGuard>
74
+ </ProtectedRoute>
75
+ )
76
+ }
77
+ ```
78
+
79
+ Pair the route guard with the feature node:
80
+
81
+ ```ts
82
+ {
83
+ id: 'admin',
84
+ label: 'Admin',
85
+ enabled: true,
86
+ path: '/admin',
87
+ uiPosition: 'sidebar-bottom',
88
+ requiresAdmin: true
89
+ }
90
+ ```
91
+
92
+ ## Per-member override
93
+
94
+ `MembershipFeatureConfig.features` in `org_memberships.config` overrides enabled state per member.
95
+
96
+ ```ts
97
+ {
98
+ features: { analytics: false }
99
+ }
100
+ ```
101
+
102
+ Settings and admin-only pages should use admin checks, not per-member feature flags.
103
+
104
+ ## Verify
105
+
106
+ Check the state matrix:
107
+
108
+ | Org feature enabled | Member override | Admin | Expected result |
109
+ | --- | --- | --- | --- |
110
+ | true | absent | any | Route accessible, sidebar visible |
111
+ | true | false | any | Route redirects, sidebar hidden |
112
+ | false | absent | any | Route redirects, sidebar hidden |
113
+ | true | absent | non-admin | Admin route redirects, admin sidebar hidden |
114
+ | true | absent | admin | Admin route accessible, admin sidebar visible |
@@ -45,22 +45,28 @@ export type OrganizationModelProjects = z.infer<typeof OrganizationModelProjects
45
45
  export type OrganizationModelFeature = z.infer<typeof FeatureSchema>
46
46
  ```
47
47
 
48
- ### `OrganizationModelNavigation`
48
+ ### `NodeIdPath`
49
49
 
50
50
  ```typescript
51
- export type OrganizationModelNavigation = z.infer<typeof OrganizationModelNavigationSchema>
51
+ export type NodeIdPath = z.infer<typeof NodeIdPathSchema>
52
52
  ```
53
53
 
54
- ### `OrganizationModelSurface`
54
+ ### `NodeIdString`
55
55
 
56
56
  ```typescript
57
- export type OrganizationModelSurface = z.infer<typeof SurfaceDefinitionSchema>
57
+ export type NodeIdString = z.infer<typeof NodeIdStringSchema>
58
+ ```
59
+
60
+ ### `OrganizationModelNavigation`
61
+
62
+ ```typescript
63
+ export type OrganizationModelNavigation = z.infer<typeof OrganizationModelNavigationSchema>
58
64
  ```
59
65
 
60
- ### `OrganizationModelResourceMapping`
66
+ ### `OrganizationModelSurface`
61
67
 
62
68
  ```typescript
63
- export type OrganizationModelResourceMapping = z.infer<typeof ResourceMappingSchema>
69
+ export type OrganizationModelSurface = z.infer<typeof SurfaceDefinitionSchema>
64
70
  ```
65
71
 
66
72
  ### `OrganizationModelTechStackEntry`
@@ -179,64 +185,34 @@ export type DeepPartial<T> = T extends Array<infer U> ? Array<DeepPartial<U>> :
179
185
 
180
186
  ## Feature System
181
187
 
182
- ### `FeatureNavLink`
183
-
184
- ```typescript
185
- export interface FeatureNavLink {
186
- label: string
187
- link: string
188
- featureKey?: string
189
- onClick?: () => void
190
- links?: FeatureNavLink[]
191
- }
192
- ```
193
-
194
- ### `FeatureNavEntry`
188
+ ### `FeatureSidebarComponent`
195
189
 
196
190
  ```typescript
197
- export interface FeatureNavEntry {
198
- label: string
199
- icon: ComponentType
200
- link?: string
201
- featureKey?: string
202
- requiresAdmin?: boolean
203
- dataOnboardingTourId?: string
204
- links?: FeatureNavLink[]
205
- }
191
+ export type FeatureSidebarComponent = ComponentType
192
+ export type FeatureIconComponent = ComponentType<{ size?: number;
206
193
  ```
207
194
 
208
- ### `FeatureSidebarComponent`
195
+ ### `FeatureIconComponent`
209
196
 
210
197
  ```typescript
211
- export type FeatureSidebarComponent = ComponentType
198
+ export type FeatureIconComponent = ComponentType<{ size?: number;
212
199
  ```
213
200
 
214
201
  ### `FeatureModule`
215
202
 
216
203
  ```typescript
217
204
  export interface FeatureModule {
218
- /** Unique stable identifier for this feature (e.g. `'crm'`, `'projects'`). */
205
+ /** Unique stable identifier for this feature module. */
219
206
  key: string
220
- /** Feature ID used for access-flag gating — must match the `id` of a feature in the organization model. */
207
+ /** Organization Model feature id this module presents. */
221
208
  featureId: string
222
- /**
223
- * Capability identifiers contributed by this feature.
224
- * Merged into `ResolvedFeatureSemantics.capabilityIds` at resolution time.
225
- * Not queried at runtime — kept for semantic graph completeness so that
226
- * capability membership is fully represented in the resolved model even when
227
- * a surface does not declare it directly.
228
- */
209
+ /** Capability identifiers contributed by this feature module. */
229
210
  capabilityIds?: string[]
230
- /** Top-level navigation entry rendered in the app shell when this feature is enabled. */
231
- navEntry?: FeatureNavEntry
232
- /** Sidebar component rendered when a matching subshell route is active. */
211
+ /** Icon used when this feature node appears in shell navigation. */
212
+ icon?: FeatureIconComponent
213
+ /** Sidebar component rendered when this feature's subtree route is active. */
233
214
  sidebar?: FeatureSidebarComponent
234
- /** Route path prefixes that activate this feature's sidebar and subshell context. */
235
- subshellRoutes?: string[]
236
- /**
237
- * Operations-only bridge surface connecting this feature to the organization graph.
238
- * Ignored by all other features. Only one manifest in the registry should set this.
239
- */
215
+ /** Operations-only bridge connecting this feature to the organization graph node. */
240
216
  organizationGraph?: OrganizationGraphFeatureBridge
241
217
  }
242
218
  ```
@@ -255,8 +231,6 @@ export interface ResolvedFeatureAccess {
255
231
  ```typescript
256
232
  export interface ResolvedFeatureSemantics {
257
233
  capabilityIds: string[]
258
- surfaceIds: string[]
259
- surfaces: OrganizationModelSurface[]
260
234
  }
261
235
  ```
262
236
 
@@ -269,25 +243,11 @@ export interface ResolvedFeatureModule extends FeatureModule {
269
243
  }
270
244
  ```
271
245
 
272
- ### `ShellNavPlacement`
273
-
274
- ```typescript
275
- export type ShellNavPlacement = 'primary' | 'bottom'
276
- ```
277
-
278
- ### `ShellNavSource`
279
-
280
- ```typescript
281
- export type ShellNavSource = 'app' | 'feature'
282
- ```
283
-
284
- ### `ResolvedShellNavItem`
246
+ ### `ResolvedShellFeature`
285
247
 
286
248
  ```typescript
287
- export interface ResolvedShellNavItem extends FeatureNavEntry {
288
- placement: ShellNavPlacement
289
- source: ShellNavSource
290
- featureId?: string
249
+ export interface ResolvedShellFeature extends OrganizationModelFeature {
250
+ iconComponent?: FeatureIconComponent
291
251
  }
292
252
  ```
293
253
 
@@ -295,16 +255,16 @@ export interface ResolvedShellNavItem extends FeatureNavEntry {
295
255
 
296
256
  ```typescript
297
257
  export interface ResolvedShellModel {
298
- navItems: ResolvedShellNavItem[]
299
- }
300
- ```
301
-
302
- ### `AppShellOverrides`
303
-
304
- ```typescript
305
- export interface AppShellOverrides {
306
- primaryNavItems?: FeatureNavEntry[]
307
- bottomNavItems?: FeatureNavEntry[]
258
+ features: readonly ResolvedShellFeature[]
259
+ findByPath: (path: string) => ResolvedShellFeature | undefined
260
+ findById: (id: string) => ResolvedShellFeature | undefined
261
+ childrenOf: (id: string) => ResolvedShellFeature[]
262
+ ancestorsOf: (id: string) => ResolvedShellFeature[]
263
+ parentOf: (id: string) => ResolvedShellFeature | undefined
264
+ topLevel: () => ResolvedShellFeature[]
265
+ uiPositionFor: (id: string) => OrganizationModelFeature['uiPosition'] | undefined
266
+ requiresAdminFor: (id: string) => boolean
267
+ devOnlyFor: (id: string) => boolean
308
268
  }
309
269
  ```
310
270
 
@@ -321,8 +281,7 @@ export interface ResolvedShellRouteMatch {
321
281
  status: ShellRouteMatchStatus
322
282
  path: string
323
283
  feature?: ResolvedFeatureModule
324
- navItem?: ResolvedShellNavItem
325
- navLink?: FeatureNavLink
284
+ node?: ResolvedShellFeature
326
285
  }
327
286
  ```
328
287
 
@@ -338,7 +297,7 @@ export interface ShellRuntime {
338
297
 
339
298
  ```typescript
340
299
  export interface OrganizationGraphFeatureBridge {
341
- surfaceId: string
300
+ featureId: string
342
301
  }
343
302
  ```
344
303
 
@@ -347,10 +306,8 @@ export interface OrganizationGraphFeatureBridge {
347
306
  ```typescript
348
307
  export interface OrganizationGraphContextValue {
349
308
  available: boolean
350
- surfaceId?: string
351
- surfacePath?: string
352
- surfaceType?: OrganizationModelSurface['surfaceType']
353
309
  featureId?: string
310
+ featurePath?: string
354
311
  }
355
312
  ```
356
313
 
@@ -360,7 +317,6 @@ export interface OrganizationGraphContextValue {
360
317
  export interface ElevasisFeaturesProviderProps {
361
318
  features: FeatureModule[]
362
319
  organizationModel?: OrganizationModel
363
- appShellOverrides?: AppShellOverrides
364
320
  timeRange?: TimeRange
365
321
  operationsApiUrl?: string
366
322
  operationsSSEManager?: SSEConnectionManagerLike
@@ -401,8 +357,8 @@ export interface ElevasisFeaturesContextValue {
401
357
  * Resource Registry type definitions
402
358
  */
403
359
 
404
- import type { IntegrationType } from '../../execution/engine/tools/integration'
405
- import type { ResourceDomain } from './domains'
360
+ import type { IntegrationType } from '../../execution/engine/tools/integration'
361
+ import type { ResourceCategory, ResourceLink } from './resource-link'
406
362
 
407
363
  // ============================================================================
408
364
  // Core Resource Type Definitions
@@ -479,8 +435,11 @@ export interface ResourceDefinition {
479
435
  /** Environment/deployment status */
480
436
  status: ResourceStatus
481
437
 
482
- /** Domain tags for filtering and organization */
483
- domains?: ResourceDomain[]
438
+ /** Graph links to Organization Model nodes */
439
+ links?: ResourceLink[]
440
+
441
+ /** Infrastructure category for filtering */
442
+ category?: ResourceCategory
484
443
 
485
444
  /** Whether the agent supports multi-turn sessions (agents only) */
486
445
  sessionCapable?: boolean
@@ -493,7 +452,7 @@ export interface ResourceDefinition {
493
452
  }
494
453
  ```
495
454
 
496
- ### `DomainDefinition`
455
+ ### `ResourceList`
497
456
 
498
457
  ```typescript
499
458
  /** Unique resource identifier */
@@ -514,8 +473,11 @@ export interface ResourceDefinition {
514
473
  /** Environment/deployment status */
515
474
  status: ResourceStatus
516
475
 
517
- /** Domain tags for filtering and organization */
518
- domains?: ResourceDomain[]
476
+ /** Graph links to Organization Model nodes */
477
+ links?: ResourceLink[]
478
+
479
+ /** Infrastructure category for filtering */
480
+ category?: ResourceCategory
519
481
 
520
482
  /** Whether the agent supports multi-turn sessions (agents only) */
521
483
  sessionCapable?: boolean
@@ -527,57 +489,9 @@ export interface ResourceDefinition {
527
489
  archived?: boolean
528
490
  }
529
491
 
530
- // ============================================================================
531
- // Domain Definition Types
532
- // ============================================================================
533
-
534
- /**
535
- * Domain definition for Command View filtering
536
- *
537
- * Domains are organizational metadata for UI filtering/grouping.
538
- * No execution impact - purely for visualization.
539
- *
540
- * @example
541
- * {
542
- * id: 'support',
543
- * name: 'Customer Support',
544
- * description: 'Ticket triage, knowledge base, escalations',
545
- * color: 'green',
546
- * icon: 'IconHeadset'
547
- * }
548
- */
549
- export interface DomainDefinition {
550
- /** Unique identifier (e.g., 'support') */
551
- id: string
552
- /** Display name (e.g., 'Customer Support') */
553
- name: string
554
- /** Purpose description */
555
- description: string
556
- /** Optional Mantine color for UI (e.g., 'blue', 'green', 'orange') */
557
- color?: string
558
- /** Optional Tabler icon name (e.g., 'IconHeadset') */
559
- icon?: string
560
- }
561
- ```
562
-
563
- ### `ResourceList`
564
-
565
- ```typescript
566
- /** Unique identifier (e.g., 'support') */
567
- id: string
568
- /** Display name (e.g., 'Customer Support') */
569
- name: string
570
- /** Purpose description */
571
- description: string
572
- /** Optional Mantine color for UI (e.g., 'blue', 'green', 'orange') */
573
- color?: string
574
- /** Optional Tabler icon name (e.g., 'IconHeadset') */
575
- icon?: string
576
- }
577
-
578
- /**
579
- * Resource list for organization
580
- * Returns ResourceDefinition metadata (not full definitions)
492
+ /**
493
+ * Resource list for organization
494
+ * Returns ResourceDefinition metadata (not full definitions)
581
495
  */
582
496
  export interface ResourceList {
583
497
  workflows: ResourceDefinition[]
@@ -676,7 +590,7 @@ export type TriggerConfig = WebhookTriggerConfig | ScheduleTriggerConfig | Event
676
590
  * scheduled cron jobs, platform events, or manual user actions.
677
591
  *
678
592
  * BREAKING CHANGES (2025-11-30):
679
- * - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, domains)
593
+ * - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, links, category)
680
594
  * - Field renames: `id` -> `resourceId` (inherited), `type` -> `triggerType`
681
595
  * - Relationship rename: `invokes` -> `triggers` (unified vocabulary)
682
596
  * - New required fields: `version` (inherited), `type: 'trigger'` (inherited)
@@ -712,7 +626,7 @@ export type TriggerConfig = WebhookTriggerConfig | ScheduleTriggerConfig | Event
712
626
  * scheduled cron jobs, platform events, or manual user actions.
713
627
  *
714
628
  * BREAKING CHANGES (2025-11-30):
715
- * - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, domains)
629
+ * - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, links, category)
716
630
  * - Field renames: `id` -> `resourceId` (inherited), `type` -> `triggerType`
717
631
  * - Relationship rename: `invokes` -> `triggers` (unified vocabulary)
718
632
  * - New required fields: `version` (inherited), `type: 'trigger'` (inherited)
@@ -790,7 +704,7 @@ export interface TriggerDefinition extends ResourceDefinition {
790
704
  * stored here (queried at runtime from credentials table).
791
705
  *
792
706
  * BREAKING CHANGES (2025-11-30):
793
- * - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, domains)
707
+ * - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, links, category)
794
708
  * - Field renames: `id` -> `resourceId` (inherited)
795
709
  * - New required field: `status` (inherited) - organizations must add status to all integrations
796
710
  * - New required field: `version` (inherited) - organizations must add version to all integrations
@@ -919,7 +833,7 @@ export type ExternalPlatform = 'n8n' | 'make' | 'zapier' | 'other'
919
833
  * no API integration with external platforms, no status syncing.
920
834
  *
921
835
  * BREAKING CHANGES (2025-11-30):
922
- * - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, domains)
836
+ * - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, links, category)
923
837
  * - Field renames: `id` -> `resourceId` (inherited)
924
838
  * - New required field: `version` (inherited) - organizations must add version to all external resources
925
839
  * - New required field: `type: 'external'` (inherited) - resource type discriminator
@@ -954,7 +868,7 @@ export type ExternalPlatform = 'n8n' | 'make' | 'zapier' | 'other'
954
868
  * no API integration with external platforms, no status syncing.
955
869
  *
956
870
  * BREAKING CHANGES (2025-11-30):
957
- * - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, domains)
871
+ * - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, links, category)
958
872
  * - Field renames: `id` -> `resourceId` (inherited)
959
873
  * - New required field: `version` (inherited) - organizations must add version to all external resources
960
874
  * - New required field: `type: 'external'` (inherited) - resource type discriminator
@@ -1048,7 +962,7 @@ export interface ExternalResourceDefinition extends ResourceDefinition {
1048
962
  * Tasks with matching command_queue_group are routed to this checkpoint.
1049
963
  *
1050
964
  * BREAKING CHANGES (2025-11-30):
1051
- * - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, domains)
965
+ * - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, links, category)
1052
966
  * - Field renames: `id` -> `resourceId` (inherited)
1053
967
  * - description is now REQUIRED (was optional) - organizations must add description to all human checkpoints
1054
968
  * - New required field: `version` (inherited) - organizations must add version to all human checkpoints