@elevasis/ui 2.64.0 → 2.65.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.
Files changed (60) hide show
  1. package/dist/api/index.js +2 -2
  2. package/dist/app/index.d.ts +20 -0
  3. package/dist/app/index.js +5 -5
  4. package/dist/auth/index.js +5 -5
  5. package/dist/charts/index.js +5 -5
  6. package/dist/{chunk-XDOC3ULZ.js → chunk-3WVZRN37.js} +42 -19
  7. package/dist/{chunk-DRQPEMJI.js → chunk-4DV4ECMG.js} +3 -0
  8. package/dist/{chunk-KRWALB24.js → chunk-6SSQGWK7.js} +1 -1
  9. package/dist/{chunk-I3CFGE3N.js → chunk-BLXJEIQS.js} +1 -1
  10. package/dist/{chunk-7AJKZM4F.js → chunk-JFBZ6XDW.js} +2 -1
  11. package/dist/{chunk-FVOMKZ7S.js → chunk-Y6I3IC45.js} +3 -6
  12. package/dist/components/chat/index.js +1 -1
  13. package/dist/components/index.d.ts +108 -56
  14. package/dist/components/index.js +5 -5
  15. package/dist/components/navigation/index.js +5 -5
  16. package/dist/execution/index.js +2 -2
  17. package/dist/features/auth/index.d.ts +87 -2
  18. package/dist/features/auth/index.js +143 -8
  19. package/dist/features/clients/index.js +5 -5
  20. package/dist/features/crm/index.d.ts +20 -0
  21. package/dist/features/crm/index.js +5 -5
  22. package/dist/features/dashboard/index.js +5 -5
  23. package/dist/features/delivery/index.d.ts +20 -0
  24. package/dist/features/delivery/index.js +5 -5
  25. package/dist/features/knowledge/index.js +5 -5
  26. package/dist/features/lead-gen/index.js +5 -5
  27. package/dist/features/monitoring/index.js +5 -5
  28. package/dist/features/monitoring/requests/index.js +6 -6
  29. package/dist/features/operations/index.d.ts +36 -1
  30. package/dist/features/operations/index.js +5 -5
  31. package/dist/features/public-agent-chat/index.js +2 -2
  32. package/dist/features/settings/index.d.ts +20 -0
  33. package/dist/features/settings/index.js +5 -5
  34. package/dist/hooks/access/index.js +5 -5
  35. package/dist/hooks/delivery/index.d.ts +20 -0
  36. package/dist/hooks/delivery/index.js +5 -5
  37. package/dist/hooks/index.d.ts +53 -1
  38. package/dist/hooks/index.js +5 -5
  39. package/dist/hooks/published.d.ts +53 -1
  40. package/dist/hooks/published.js +5 -5
  41. package/dist/index.d.ts +109 -57
  42. package/dist/index.js +5 -5
  43. package/dist/initialization/index.d.ts +34 -0
  44. package/dist/knowledge/index.js +6 -6
  45. package/dist/layout/index.js +5 -5
  46. package/dist/organization/index.d.ts +14 -0
  47. package/dist/organization/index.js +5 -5
  48. package/dist/profile/index.d.ts +20 -0
  49. package/dist/provider/index.d.ts +20 -0
  50. package/dist/provider/index.js +5 -5
  51. package/dist/provider/published.d.ts +20 -0
  52. package/dist/provider/published.js +5 -5
  53. package/dist/supabase/index.d.ts +40 -0
  54. package/dist/test-utils/index.d.ts +5 -0
  55. package/dist/test-utils/index.js +4 -4
  56. package/dist/test-utils/setup-integration.js +1 -1
  57. package/dist/test-utils/setup.js +1 -1
  58. package/dist/types/index.d.ts +237 -57
  59. package/dist/utils/index.js +2 -2
  60. package/package.json +8 -6
@@ -1,4 +1,4 @@
1
- export { AccessKeys, ApiKeyService, CredentialService, DeploymentService, OperationsService, OrganizationMembershipService, WebhookEndpointService, acquisitionListKeys, clientsKeys, collectResourceFilterFacets, companyKeys, contactKeys, dealKeys, dealNoteKeys, dealTaskKeys, executionsKeys, filterByDomainFilters, getResourceFilterFacetIds, isSessionCapable, labelResourceFilterFacet, leadGenArtifactKeys, leadGenListCompanyKeys, leadGenListMemberKeys, milestoneKeys, noteKeys, observabilityKeys, operationsKeys, projectActivityKeys, projectKeys, requestsKeys, scheduleKeys, sessionsKeys, sortData, taskKeys, useAccess, useActivateDeployment, useActivities, useActivitiesRealtime, useActivityFilters, useActivityTrend, useAddCompaniesToList, useAddContactsToList, useArchiveSession, useArchivedLogs, useArtifacts, useAssignRole, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCheckpointTasks, useClient, useClientStatus, useClients, useCommandQueue, useCommandQueueTask, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewStats, useCommandViewStore, useCompanies, useCompany, useCompanyFacets, useCompleteDealTask, useContact, useContacts, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateArtifact, useCreateClient, useCreateCompany, useCreateContact, useCreateCredential, useCreateDealNote, useCreateDealTask, useCreateProject as useCreateDeliveryProject, useCreateList, useCreateMilestone, useCreateNote, useCreateOrgRole, useCreateSchedule, useCreateSession, useCreateTask, useCreateWebhookEndpoint, useCredentials, useDashboardMetrics, useDeactivateDeployment, useDeactivateMembership, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDealsLookup, useDealsSummary, useDeleteApiKey, useDeleteClient, useDeleteCompanies, useDeleteContacts, useDeleteCredential, useDeleteDeal, useDeleteProject as useDeleteDeliveryProject, useDeleteTask2 as useDeleteDeliveryTask, useDeleteDeployment, useDeleteExecution, useDeleteList, useDeleteMilestone, useDeleteOrgRole, useDeleteRequest, useDeleteSchedule, useDeleteSession, useDeleteTask, useDeleteWebhookEndpoint, useDeriveActions, useEffectivePermissions, useEndSession, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAction, useExecuteAsync, useExecuteResource, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutionSSE, useExecutions, useGetExecutionHistory, useGetSchedule, useInFlightExecutions, useList, useListApiKeys, useListDeployments, useListExecutions, useListMember, useListMembers, useListProgress, useListRecords, useListSchedules, useListWebhookEndpoints, useLists, useListsTelemetry, useMarkAllAsRead, useMarkAsRead, useMilestones, useNotificationCount as useNotificationCountSSE, useNotifications, useOrgRoles, useOrganizationMembers, usePaginationState, usePatchTask, usePauseSchedule, usePermissionCatalog, useProject, useProjectActivities, useProjectMilestones, useProjectNotes, useProjectRealtime, useProjectTasks, useProjects, useReactivateMembership, useRecentExecutionsByResource, useRemoveCompaniesFromList, useRequest, useRequestsList, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useRevokeRole, useSSEConnection, useScheduledTasks, useSession, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useStatusFilter, useSubmitAction, useSubmitRequest, useSuccessNotification, useSystemHealth, useTableSelection, useTableSort, useTasks, useTestNotification, useTimeRangeDates, useTopFailingResources, useTransitionItem, useTransitionListCompany, useTransitionListMember, useTransitionState, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateClient, useUpdateCompany, useUpdateContact, useUpdateCredential, useUpdateProject as useUpdateDeliveryProject, useUpdateList, useUpdateListConfig, useUpdateListStatus, useUpdateMilestone, useUpdateOrgRole, useUpdateRequestStatus, useUpdateSchedule, useUpdateTask, useUpdateWebhookEndpoint, useUserMemberships, useVerifyCredential, useVisibleResources, useWarningNotification, useWorkflowExecution } from '../chunk-XDOC3ULZ.js';
1
+ export { AccessKeys, ApiKeyService, CredentialService, DeploymentService, OperationsService, OrganizationMembershipService, WebhookEndpointService, acquisitionListKeys, clientsKeys, collectResourceFilterFacets, companyKeys, contactKeys, dealKeys, dealNoteKeys, dealTaskKeys, executionsKeys, filterByDomainFilters, getResourceFilterFacetIds, isSessionCapable, labelResourceFilterFacet, leadGenArtifactKeys, leadGenListCompanyKeys, leadGenListMemberKeys, milestoneKeys, noteKeys, observabilityKeys, operationsKeys, projectActivityKeys, projectKeys, requestsKeys, scheduleKeys, sessionsKeys, sortData, taskKeys, useAccess, useActivateDeployment, useActivities, useActivitiesRealtime, useActivityFilters, useActivityTrend, useAddCompaniesToList, useAddContactsToList, useArchiveSession, useArchivedLogs, useArtifacts, useAssignRole, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCheckpointTasks, useClient, useClientStatus, useClients, useCommandQueue, useCommandQueueTask, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewStats, useCommandViewStore, useCompanies, useCompany, useCompanyFacets, useCompleteDealTask, useContact, useContacts, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateArtifact, useCreateClient, useCreateCompany, useCreateContact, useCreateCredential, useCreateDealNote, useCreateDealTask, useCreateProject as useCreateDeliveryProject, useCreateList, useCreateMilestone, useCreateNote, useCreateOrgRole, useCreateSchedule, useCreateSession, useCreateTask, useCreateWebhookEndpoint, useCredentials, useDashboardMetrics, useDeactivateDeployment, useDeactivateMembership, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDealsLookup, useDealsSummary, useDeleteApiKey, useDeleteClient, useDeleteCompanies, useDeleteContacts, useDeleteCredential, useDeleteDeal, useDeleteProject as useDeleteDeliveryProject, useDeleteTask2 as useDeleteDeliveryTask, useDeleteDeployment, useDeleteExecution, useDeleteList, useDeleteMilestone, useDeleteOrgRole, useDeleteRequest, useDeleteSchedule, useDeleteSession, useDeleteTask, useDeleteWebhookEndpoint, useDeriveActions, useEffectivePermissions, useEndSession, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAction, useExecuteAsync, useExecuteResource, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutionSSE, useExecutions, useGetExecutionHistory, useGetSchedule, useInFlightExecutions, useList, useListApiKeys, useListDeployments, useListExecutions, useListMember, useListMembers, useListProgress, useListRecords, useListSchedules, useListWebhookEndpoints, useLists, useListsTelemetry, useMarkAllAsRead, useMarkAsRead, useMilestones, useNotificationCount as useNotificationCountSSE, useNotifications, useOrgRoles, useOrganizationMembers, usePaginationState, usePatchTask, usePauseSchedule, usePermissionCatalog, useProject, useProjectActivities, useProjectMilestones, useProjectNotes, useProjectRealtime, useProjectTasks, useProjects, useReactivateMembership, useRecentExecutionsByResource, useRemoveCompaniesFromList, useRequest, useRequestsList, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useRevokeRole, useSSEConnection, useScheduledTasks, useSession, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useStatusFilter, useSubmitAction, useSubmitRequest, useSuccessNotification, useSystemHealth, useTableSelection, useTableSort, useTasks, useTestNotification, useTimeRangeDates, useTopFailingResources, useTransitionItem, useTransitionListCompany, useTransitionListMember, useTransitionState, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateClient, useUpdateCompany, useUpdateContact, useUpdateCredential, useUpdateProject as useUpdateDeliveryProject, useUpdateList, useUpdateListConfig, useUpdateListStatus, useUpdateMilestone, useUpdateOrgRole, useUpdateRequestStatus, useUpdateSchedule, useUpdateTask, useUpdateWebhookEndpoint, useUserMemberships, useVerifyCredential, useVisibleResources, useWarningNotification, useWorkflowExecution } from '../chunk-3WVZRN37.js';
2
2
  import '../chunk-4OEVLV66.js';
3
3
  import '../chunk-RBGVNPA6.js';
4
4
  import '../chunk-ZTWA5H77.js';
@@ -12,16 +12,16 @@ import '../chunk-62GVNH5U.js';
12
12
  import '../chunk-LO7GWG24.js';
13
13
  import '../chunk-DD3CCMCZ.js';
14
14
  export { mergeSessionMessages } from '../chunk-M7WWRZ5Z.js';
15
- import '../chunk-7AJKZM4F.js';
15
+ import '../chunk-JFBZ6XDW.js';
16
16
  import '../chunk-2IFYDILW.js';
17
17
  import '../chunk-Q7DJKLEN.js';
18
18
  import '../chunk-HENXLGVD.js';
19
- export { useMergedExecution } from '../chunk-I3CFGE3N.js';
19
+ export { useMergedExecution } from '../chunk-BLXJEIQS.js';
20
20
  import '../chunk-RNP5R5I3.js';
21
21
  import '../chunk-EIXSQONC.js';
22
22
  import '../chunk-I7BZVVVU.js';
23
- export { REFETCH_INTERVAL_RUNNING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY } from '../chunk-FVOMKZ7S.js';
24
- import '../chunk-KRWALB24.js';
23
+ export { REFETCH_INTERVAL_RUNNING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY } from '../chunk-Y6I3IC45.js';
24
+ import '../chunk-6SSQGWK7.js';
25
25
  import '../chunk-BI5VDO2K.js';
26
26
  import '../chunk-MQZE7SUI.js';
27
27
  import '../chunk-TVTSASST.js';
package/dist/index.d.ts CHANGED
@@ -801,6 +801,14 @@ interface ExecutionPathState {
801
801
  * Memory types mirror action types for clarity and filtering
802
802
  */
803
803
  type MemoryEntryType = 'context' | 'input' | 'reasoning' | 'tool-result' | 'delegation-result' | 'error';
804
+ /**
805
+ * Who authored an entry's content.
806
+ *
807
+ * This is what lets the assembled prompt tell framework-authored text apart from text that
808
+ * originated outside the trust boundary. `'framework'` content is ours; the other three are not
809
+ * and are rendered inside the JSON data envelope (see `MemoryManager.toContextParts`).
810
+ */
811
+ type MemoryEntrySource = 'framework' | 'user' | 'tool' | 'model';
804
812
  /**
805
813
  * Memory entry - represents a single entry in agent memory
806
814
  * Stored in agent memory, translated by adapters to vendor-specific formats
@@ -811,6 +819,16 @@ interface MemoryEntry {
811
819
  timestamp: number;
812
820
  turnNumber: number | null;
813
821
  iterationNumber: number | null;
822
+ /**
823
+ * Provenance. **Optional on purpose** — `undefined` means unknown, which is what every
824
+ * pre-existing snapshot and every not-yet-redeployed tenant bundle produces. Read sites MUST
825
+ * test `== null`, never `=== undefined`: the `inTurnScope` predicate in `manager.ts` is the
826
+ * cautionary precedent, where a `=== undefined` check silently dropped every `null`-stamped
827
+ * entry. `isMemoryEntry` is deliberately NOT tightened to require this field; doing so would
828
+ * make every stored snapshot fail validation, and `restoreSessionMemory` fails open by
829
+ * starting the agent with empty memory rather than throwing.
830
+ */
831
+ source?: MemoryEntrySource;
814
832
  }
815
833
  /**
816
834
  * Agent memory - Self-orchestrated memory with session + working storage
@@ -832,6 +850,62 @@ interface AgentMemory {
832
850
  history: MemoryEntry[];
833
851
  }
834
852
 
853
+ /**
854
+ * Agent timeline and observability types
855
+ * Used for UI timeline visualization and backend processing
856
+ */
857
+
858
+ /**
859
+ * Sub-activity within an iteration
860
+ * Represents reasoning, actions, or tool calls with timing
861
+ */
862
+ interface SubActivity {
863
+ type: 'reasoning' | 'action' | 'tool-call';
864
+ startTime: number;
865
+ endTime: number;
866
+ duration: number;
867
+ details: AgentIterationEvent | AgentToolCallEvent;
868
+ }
869
+ /**
870
+ * Agent iteration state
871
+ * Aggregates lifecycle events and sub-activities for a single iteration
872
+ */
873
+ interface AgentIteration {
874
+ iterationNumber: number;
875
+ status: 'running' | 'completed' | 'failed' | 'pending';
876
+ iterationEvents: AgentIterationEvent[];
877
+ duration?: number;
878
+ timestamp: number;
879
+ subActivities: SubActivity[];
880
+ startTime?: number;
881
+ endTime?: number;
882
+ }
883
+ /**
884
+ * Agent lifecycle node state
885
+ * Represents initialization or completion phase
886
+ */
887
+ interface AgentLifecycleNode {
888
+ type: 'initialization' | 'completion';
889
+ status: 'running' | 'completed' | 'failed' | 'pending';
890
+ duration?: number;
891
+ timestamp?: number;
892
+ startTime?: number;
893
+ endTime?: number;
894
+ }
895
+ /**
896
+ * Complete agent execution data for timeline visualization
897
+ * Parsed from execution logs
898
+ */
899
+ interface AgentIterationData {
900
+ initialization: AgentLifecycleNode;
901
+ iterations: AgentIteration[];
902
+ completion: AgentLifecycleNode;
903
+ currentIteration: number | null;
904
+ totalIterations: number;
905
+ totalDuration?: number;
906
+ status: 'running' | 'completed' | 'failed' | 'warning';
907
+ }
908
+
835
909
  type Json = string | number | boolean | null | {
836
910
  [key: string]: Json | undefined;
837
911
  } | Json[];
@@ -3576,6 +3650,7 @@ type Database = {
3576
3650
  deleted_at: string | null;
3577
3651
  ended_at: string | null;
3578
3652
  memory_snapshot: Json;
3653
+ memory_version: number;
3579
3654
  metadata: Json | null;
3580
3655
  organization_id: string;
3581
3656
  resource_id: string;
@@ -3592,6 +3667,7 @@ type Database = {
3592
3667
  deleted_at?: string | null;
3593
3668
  ended_at?: string | null;
3594
3669
  memory_snapshot: Json;
3670
+ memory_version?: number;
3595
3671
  metadata?: Json | null;
3596
3672
  organization_id: string;
3597
3673
  resource_id: string;
@@ -3608,6 +3684,7 @@ type Database = {
3608
3684
  deleted_at?: string | null;
3609
3685
  ended_at?: string | null;
3610
3686
  memory_snapshot?: Json;
3687
+ memory_version?: number;
3611
3688
  metadata?: Json | null;
3612
3689
  organization_id?: string;
3613
3690
  resource_id?: string;
@@ -3945,9 +4022,14 @@ type Database = {
3945
4022
  p_session_id: string;
3946
4023
  };
3947
4024
  Returns: {
4025
+ context_window_size: number;
3948
4026
  created_at: string;
4027
+ cumulative_input_tokens: number;
4028
+ cumulative_output_tokens: number;
4029
+ deleted_at: string;
3949
4030
  ended_at: string;
3950
4031
  memory_snapshot: Json;
4032
+ memory_version: number;
3951
4033
  metadata: Json;
3952
4034
  organization_id: string;
3953
4035
  resource_id: string;
@@ -3989,6 +4071,18 @@ type Database = {
3989
4071
  };
3990
4072
  Returns: boolean;
3991
4073
  };
4074
+ increment_session_tokens: {
4075
+ Args: {
4076
+ p_input_tokens: number;
4077
+ p_output_tokens: number;
4078
+ p_session_id: string;
4079
+ };
4080
+ Returns: {
4081
+ context_window_size: number;
4082
+ cumulative_input_tokens: number;
4083
+ cumulative_output_tokens: number;
4084
+ }[];
4085
+ };
3992
4086
  is_org_member: {
3993
4087
  Args: {
3994
4088
  org_id: string;
@@ -4120,62 +4214,6 @@ type SupabaseApiKey = Tables<'api_keys'>;
4120
4214
  /** API response type for API key list items (omits sensitive key_hash) */
4121
4215
  type ApiKeyListItem = Omit<SupabaseApiKey, 'key_hash'>;
4122
4216
 
4123
- /**
4124
- * Agent timeline and observability types
4125
- * Used for UI timeline visualization and backend processing
4126
- */
4127
-
4128
- /**
4129
- * Sub-activity within an iteration
4130
- * Represents reasoning, actions, or tool calls with timing
4131
- */
4132
- interface SubActivity {
4133
- type: 'reasoning' | 'action' | 'tool-call';
4134
- startTime: number;
4135
- endTime: number;
4136
- duration: number;
4137
- details: AgentIterationEvent | AgentToolCallEvent;
4138
- }
4139
- /**
4140
- * Agent iteration state
4141
- * Aggregates lifecycle events and sub-activities for a single iteration
4142
- */
4143
- interface AgentIteration {
4144
- iterationNumber: number;
4145
- status: 'running' | 'completed' | 'failed' | 'pending';
4146
- iterationEvents: AgentIterationEvent[];
4147
- duration?: number;
4148
- timestamp: number;
4149
- subActivities: SubActivity[];
4150
- startTime?: number;
4151
- endTime?: number;
4152
- }
4153
- /**
4154
- * Agent lifecycle node state
4155
- * Represents initialization or completion phase
4156
- */
4157
- interface AgentLifecycleNode {
4158
- type: 'initialization' | 'completion';
4159
- status: 'running' | 'completed' | 'failed' | 'pending';
4160
- duration?: number;
4161
- timestamp?: number;
4162
- startTime?: number;
4163
- endTime?: number;
4164
- }
4165
- /**
4166
- * Complete agent execution data for timeline visualization
4167
- * Parsed from execution logs
4168
- */
4169
- interface AgentIterationData {
4170
- initialization: AgentLifecycleNode;
4171
- iterations: AgentIteration[];
4172
- completion: AgentLifecycleNode;
4173
- currentIteration: number | null;
4174
- totalIterations: number;
4175
- totalDuration?: number;
4176
- status: 'running' | 'completed' | 'failed' | 'warning';
4177
- }
4178
-
4179
4217
  declare const RecordColumnConfigSchema: z$1.ZodObject<{
4180
4218
  key: z$1.ZodString;
4181
4219
  label: z$1.ZodString;
@@ -6446,10 +6484,24 @@ interface ListMembershipsResponse {
6446
6484
  after?: string | null;
6447
6485
  };
6448
6486
  }
6487
+ /**
6488
+ * How a membership row relates to the two systems that describe it.
6489
+ *
6490
+ * - `linked` — an `org_memberships` row that carries a `workos_membership_id`
6491
+ * - `pre_provisioned` — an `org_memberships` row with no `workos_membership_id`;
6492
+ * the invitee was provisioned but has not completed signup
6493
+ * - `workos_only` — a WorkOS membership with no `org_memberships` row (a sync gap)
6494
+ */
6495
+ type MembershipProvisioningState = 'linked' | 'pre_provisioned' | 'workos_only';
6449
6496
  /**
6450
6497
  * Extended membership with user and organization details for UI
6451
6498
  */
6452
6499
  interface MembershipWithDetails extends OrganizationMembership {
6500
+ /**
6501
+ * Set by `GET /memberships`. Optional so existing consumers are unaffected;
6502
+ * treat `undefined` as "not reported by this endpoint".
6503
+ */
6504
+ provisioningState?: MembershipProvisioningState;
6453
6505
  user?: {
6454
6506
  id: string;
6455
6507
  email: string;
@@ -12672,7 +12724,7 @@ declare function useExecutionLogsFilters(_timeRange: TimeRange): {
12672
12724
  * so consumers can query for a specific organization independently.
12673
12725
  *
12674
12726
  * @param organizationId - The organization to fetch members for
12675
- * @param params - Optional additional filters (reserved for future use)
12727
+ * @param params - Optional additional filters, forwarded to the API
12676
12728
  * @returns TanStack Query result with MembershipWithDetails array
12677
12729
  *
12678
12730
  * @example
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export { createElevasisQueryClient } from './chunk-M535KHLW.js';
2
- export { APIErrorAlert, AbsoluteScheduleForm, AccessGuard, AccessKeys, ActionModal, ActivityCard, ActivityFeedWidget, ActivityFilters as ActivityFiltersBar, ActivityTable, ActivityTimeline, ActivityTrendChart, AgentDefinitionDisplay, AgentExecutionLogs, AgentExecutionTimeline, AgentExecutionVisualizer, AgentIterationDetailPanel, AgentIterationEdge, AgentIterationNode, AllTasksPage, ApiKeyDisplayModal, ApiKeyList, ApiKeyService, ApiKeySettings, AppErrorBoundary, AppShellCenteredContainer, AppShellContainer, AppShellContentContainer, AppShellError, AppShellLoader, AppShellRightSideContainer, AppShellRightSideOuterContainer, AppTopbarAdjusterWrapper, AppearanceProvider, BaseEdge, BaseExecutionLogs, BaseExecutionLogsHeader, BaseExecutionLogsStates, BaseNode, Breadcrumbs, BusinessImpactCard, CenteredErrorState, ChartFrame, CheckpointGroup, CollapsibleJsonSection, CollapsibleSection, CollapsibleSidebarGroup, CombinedTrendChart, CommandQueueSidebar, CommandQueueSidebarMiddle, CommandQueueSidebarTop, CommandQueueTaskRow, CompanyDetailPage, ConfigCard, ConfirmationInputModal, ConfirmationModal, ContactDetailPage, ContentSections, ContextUsageBadge, ContextViewer, ContractDisplay, CostBreakdownCard, CostByModelTable, CostMetricsCard, CostTrendChart, CrashErrorFallback, CreateApiKeyModal, CreateCredentialModal, CreateRoleModal, CreateScheduleModal, CredentialList, CredentialService, CredentialSettings, CrmActionsProvider, CrmOverview, CrmSidebar, CrmSidebarMiddle, CrmSidebarTop, CustomModal, CustomSelector, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, CyberParticles, DEAL_STAGES, DEFAULT_KANBAN_CONFIG, DEFAULT_SEMANTIC_ICON_REGISTRY, DealDetailPage, DealKanbanCard, DealsListPage, DeleteScheduleModal, DeploymentDetailModal, DeploymentList, DeploymentService, DeploymentSettings, DeploymentStatusBadge, DetailCardSkeleton, EditApiKeyModal, ElevasisCoreProvider, ElevasisLoader, ElevasisSystemsProvider, ElevasisUIProvider, EmptyState, EmptyVisualizer, ErrorAnalysisCard, ErrorBreakdownTable, ErrorReportCard, ExecutionBreakdownTable, ExecutionErrorSection, ExecutionHealthCard, ExecutionLogsFilters as ExecutionLogsFilterBar, ExecutionLogsTable, ExecutionStats, ExecutionStatusBadge, FeatureUnavailableState, FilterBar, GlowDot, GraphBackground, GraphContainer, GraphFitViewButton, GraphFitViewHandler, GraphLegend, HealthStatusCard, HeroStatsRow, JsonViewer, KanbanBoard, LEAD_GEN_ROUTE_LINKS, LeadGenCompaniesPage, LeadGenContactsPage, LeadGenListDetailPage, LeadGenListsPage, LeadGenOverviewPage, LeadGenRouteShell, LeadGenSidebar, LeadGenSidebarMiddle, LeadGenSidebarTop, LinksGroup, ListActionsProvider, ListSkeleton, LogEntry, LogGroup, MdxRenderer, MembershipStatusBadge, MetricsStrip, MilestoneTimeline, MyTasksPanel, NavigationButton, NewKnowledgeMapEdge, NewKnowledgeMapGraph, NewKnowledgeMapNode, NoAccessState, NotificationBell, NotificationItem, NotificationList, NotificationPanel, NotificationProvider, OAuthConnectModal, OperationsService, OperationsSidebar, OperationsSidebarMiddle, OperationsSidebarTop, OrganizationMembershipService, OrganizationMembershipsList, OrganizationProvider, OrganizationSwitcher, OrganizationSwitcherConnected, PIPELINE_FUNNEL_ORDER, PageContainer, PageNotFound, PageTitleCaption, PermissionMatrix, PipelineFunnelWidget, ProjectDetailPage, ProjectsListPage, ProjectsSidebar, ProjectsSidebarMiddle, ProjectsSidebarTop, ProtectedRoute, QuickCreateActions, RecurringScheduleForm, RelativeScheduleForm, ResourceCard, ResourceDefinitionSection, ResourceErrorState, ResourceFilter, ResourceHeader, ResourceHealthChart, ResourceHealthPanel, ResourceNotFoundState, RichTextEditor, RoleBadge, RunResourceButton, SAVED_VIEW_PRESETS, SavedViewsPanel, ScheduleCard, ScheduleDetailModal, ScheduleTypeSelector, SemanticIcon, SessionMemory, Sidebar, SidebarContext, SidebarProvider, SortableHeader, StatCard, StatCardSkeleton, StatsCardSkeleton, StatusBadge, StepConfigForm, SubshellContainer, SubshellContentContainer, SubshellLoader, SubshellNavList, SubshellRightSideContainer, SubshellSidebar, SubshellSidebarLoader, SystemShell, TabCountBadge, TabSection, TableSelectionToolbar, TaskCard, TaskScheduler, TimeRangeSelector, TimelineAxis, TimelineBar, TimelineContainer, TimelineRow, ToolsListDisplay, Topbar, TopbarActions, TopbarContainer, TrendIndicator, UnifiedWorkflowEdge, UnifiedWorkflowGraph, UnifiedWorkflowNode, UpcomingMilestonesPage, Vignette, VisualizerContainer, WebhookEndpointService, WebhookUrlDisplayModal, WorkflowDefinitionDisplay, WorkflowExecutionLogs, WorkflowExecutionTimeline, ZodFormRenderer, acquisitionListKeys, buildErrorReport, calculateProgress, clientsKeys, collectResourceFilterFacets, companyKeys, contactKeys, createOrganizationsSlice, createTestSystemsProvider, createUseOrgInitialization, createUseOrganizations, crmManifest, dealKeys, dealNoteKeys, dealTaskKeys, deliveryManifest, executionsKeys, extendSemanticIconRegistry, filterByDomainFilters, formatStatusLabel, getEnrichmentColor, getExecutionStatusConfig, getGraphBackgroundStyles, getHealthColor, getIcon, getLogLevelConfig, getResourceFilterFacetIds, getSemanticIconComponent, getSeriesColor, getStatusColor, iconMap, isSessionCapable, labelResourceFilterFacet, leadGenArtifactKeys, leadGenListCompanyKeys, leadGenListMemberKeys, leadGenManifest, mdxComponents, milestoneKeys, milestoneStatusColors, monitoringManifest, noteKeys, noteTypeColors, observabilityKeys, operationsKeys, operationsManifest, projectActivityKeys, projectKeys, projectStatusColors, requestsKeys, resolveSemanticIconComponent, scheduleKeys, sessionsKeys, settingsManifest, showApiErrorNotification, showAuthError, showErrorNotification, showInfoNotification, showSuccessNotification, showWarningNotification, sortData, subsidebarWidth, taskKeys, taskStatusColors, taskTypeColors, useAccess, useActivateDeployment, useActivities, useActivitiesRealtime, useActivityFilters, useActivityTrend, useAddCompaniesToList, useAddContactsToList, useAppearance, useArchiveSession, useArchivedLogs, useArtifacts, useAssignRole, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBreadcrumbs, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCheckpointTasks, useClient, useClientStatus, useClients, useCommandQueue, useCommandQueueTask, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewStats, useCommandViewStore, useCompanies, useCompany, useCompanyFacets, useCompleteDealTask, useContact, useContacts, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateArtifact, useCreateClient, useCreateCompany, useCreateContact, useCreateCredential, useCreateDealNote, useCreateDealTask, useCreateProject as useCreateDeliveryProject, useCreateList, useCreateMilestone, useCreateNote, useCreateOrgRole, useCreateSchedule, useCreateSession, useCreateTask, useCreateWebhookEndpoint, useCredentials, useCrmActions, useCrmPipelineSummary, useCrmQuickMetrics, useCyberColors, useDashboardMetrics, useDeactivateDeployment, useDeactivateMembership, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDealsLookup, useDealsSummary, useDeleteApiKey, useDeleteClient, useDeleteCompanies, useDeleteContacts, useDeleteCredential, useDeleteDeal, useDeleteProject as useDeleteDeliveryProject, useDeleteTask2 as useDeleteDeliveryTask, useDeleteDeployment, useDeleteExecution, useDeleteList, useDeleteLists, useDeleteMilestone, useDeleteOrgRole, useDeleteRequest, useDeleteSchedule, useDeleteSession, useDeleteTask, useDeleteWebhookEndpoint, useDeriveActions, useEffectivePermissions, useElevasisSystems, useEndSession, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAction, useExecuteAsync, useExecuteResource, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutionSSE, useExecutions, useGetExecutionHistory, useGetSchedule, useGraphBackgroundStyles, useGraphTheme, useInFlightExecutions, useList, useListActions, useListApiKeys, useListDeployments, useListExecutions, useListMember, useListMembers, useListProgress, useListRecords, useListSchedules, useListWebhookEndpoints, useLists, useListsTelemetry, useMarkAllAsRead, useMarkAsRead, useMilestones, useNewKnowledgeMapLayout, useNotificationAdapter, useNotificationCount as useNotificationCountSSE, useNotifications, useOptionalElevasisSystems, useOrgRoles, useOrganizationMembers, usePaginationState, usePatchTask, usePauseSchedule, usePermissionCatalog, useProject, useProjectActivities, useProjectMilestones, useProjectNotes, useProjectRealtime, useProjectTasks, useProjects, useReactivateMembership, useRecentCrmActivity, useRecentExecutionsByResource, useSessionCheck as useRefocusSessionCheck, useRemoveCompaniesFromList, useRequest, useRequestsList, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResolvedOrganizationModel, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useRevokeRole, useSSEConnection, useScheduledTasks, useSession, useSessionCheck, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSidebar, useSidebarCollapse, useSortedData, useStableAccessToken, useStatusFilter, useSubmitAction, useSubmitRequest, useSuccessNotification, useSystemHealth, useTableSelection, useTableSort, useTasks, useTestNotification, useTimeRangeDates, useTopFailingResources, useTransitionItem, useTransitionListCompany, useTransitionListMember, useTransitionState, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateClient, useUpdateCompany, useUpdateContact, useUpdateCredential, useUpdateProject as useUpdateDeliveryProject, useUpdateList, useUpdateListConfig, useUpdateListStatus, useUpdateMilestone, useUpdateOrgRole, useUpdateRequestStatus, useUpdateSchedule, useUpdateTask, useUpdateWebhookEndpoint, useUserMemberships, useVerifyCredential, useVisibleResources, useWarningNotification, useWorkflowExecution } from './chunk-XDOC3ULZ.js';
2
+ export { APIErrorAlert, AbsoluteScheduleForm, AccessGuard, AccessKeys, ActionModal, ActivityCard, ActivityFeedWidget, ActivityFilters as ActivityFiltersBar, ActivityTable, ActivityTimeline, ActivityTrendChart, AgentDefinitionDisplay, AgentExecutionLogs, AgentExecutionTimeline, AgentExecutionVisualizer, AgentIterationDetailPanel, AgentIterationEdge, AgentIterationNode, AllTasksPage, ApiKeyDisplayModal, ApiKeyList, ApiKeyService, ApiKeySettings, AppErrorBoundary, AppShellCenteredContainer, AppShellContainer, AppShellContentContainer, AppShellError, AppShellLoader, AppShellRightSideContainer, AppShellRightSideOuterContainer, AppTopbarAdjusterWrapper, AppearanceProvider, BaseEdge, BaseExecutionLogs, BaseExecutionLogsHeader, BaseExecutionLogsStates, BaseNode, Breadcrumbs, BusinessImpactCard, CenteredErrorState, ChartFrame, CheckpointGroup, CollapsibleJsonSection, CollapsibleSection, CollapsibleSidebarGroup, CombinedTrendChart, CommandQueueSidebar, CommandQueueSidebarMiddle, CommandQueueSidebarTop, CommandQueueTaskRow, CompanyDetailPage, ConfigCard, ConfirmationInputModal, ConfirmationModal, ContactDetailPage, ContentSections, ContextUsageBadge, ContextViewer, ContractDisplay, CostBreakdownCard, CostByModelTable, CostMetricsCard, CostTrendChart, CrashErrorFallback, CreateApiKeyModal, CreateCredentialModal, CreateRoleModal, CreateScheduleModal, CredentialList, CredentialService, CredentialSettings, CrmActionsProvider, CrmOverview, CrmSidebar, CrmSidebarMiddle, CrmSidebarTop, CustomModal, CustomSelector, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, CyberParticles, DEAL_STAGES, DEFAULT_KANBAN_CONFIG, DEFAULT_SEMANTIC_ICON_REGISTRY, DealDetailPage, DealKanbanCard, DealsListPage, DeleteScheduleModal, DeploymentDetailModal, DeploymentList, DeploymentService, DeploymentSettings, DeploymentStatusBadge, DetailCardSkeleton, EditApiKeyModal, ElevasisCoreProvider, ElevasisLoader, ElevasisSystemsProvider, ElevasisUIProvider, EmptyState, EmptyVisualizer, ErrorAnalysisCard, ErrorBreakdownTable, ErrorReportCard, ExecutionBreakdownTable, ExecutionErrorSection, ExecutionHealthCard, ExecutionLogsFilters as ExecutionLogsFilterBar, ExecutionLogsTable, ExecutionStats, ExecutionStatusBadge, FeatureUnavailableState, FilterBar, GlowDot, GraphBackground, GraphContainer, GraphFitViewButton, GraphFitViewHandler, GraphLegend, HealthStatusCard, HeroStatsRow, JsonViewer, KanbanBoard, LEAD_GEN_ROUTE_LINKS, LeadGenCompaniesPage, LeadGenContactsPage, LeadGenListDetailPage, LeadGenListsPage, LeadGenOverviewPage, LeadGenRouteShell, LeadGenSidebar, LeadGenSidebarMiddle, LeadGenSidebarTop, LinksGroup, ListActionsProvider, ListSkeleton, LogEntry, LogGroup, MdxRenderer, MembershipStatusBadge, MetricsStrip, MilestoneTimeline, MyTasksPanel, NavigationButton, NewKnowledgeMapEdge, NewKnowledgeMapGraph, NewKnowledgeMapNode, NoAccessState, NotificationBell, NotificationItem, NotificationList, NotificationPanel, NotificationProvider, OAuthConnectModal, OperationsService, OperationsSidebar, OperationsSidebarMiddle, OperationsSidebarTop, OrganizationMembershipService, OrganizationMembershipsList, OrganizationProvider, OrganizationSwitcher, OrganizationSwitcherConnected, PIPELINE_FUNNEL_ORDER, PageContainer, PageNotFound, PageTitleCaption, PermissionMatrix, PipelineFunnelWidget, ProjectDetailPage, ProjectsListPage, ProjectsSidebar, ProjectsSidebarMiddle, ProjectsSidebarTop, ProtectedRoute, QuickCreateActions, RecurringScheduleForm, RelativeScheduleForm, ResourceCard, ResourceDefinitionSection, ResourceErrorState, ResourceFilter, ResourceHeader, ResourceHealthChart, ResourceHealthPanel, ResourceNotFoundState, RichTextEditor, RoleBadge, RunResourceButton, SAVED_VIEW_PRESETS, SavedViewsPanel, ScheduleCard, ScheduleDetailModal, ScheduleTypeSelector, SemanticIcon, SessionMemory, Sidebar, SidebarContext, SidebarProvider, SortableHeader, StatCard, StatCardSkeleton, StatsCardSkeleton, StatusBadge, StepConfigForm, SubshellContainer, SubshellContentContainer, SubshellLoader, SubshellNavList, SubshellRightSideContainer, SubshellSidebar, SubshellSidebarLoader, SystemShell, TabCountBadge, TabSection, TableSelectionToolbar, TaskCard, TaskScheduler, TimeRangeSelector, TimelineAxis, TimelineBar, TimelineContainer, TimelineRow, ToolsListDisplay, Topbar, TopbarActions, TopbarContainer, TrendIndicator, UnifiedWorkflowEdge, UnifiedWorkflowGraph, UnifiedWorkflowNode, UpcomingMilestonesPage, Vignette, VisualizerContainer, WebhookEndpointService, WebhookUrlDisplayModal, WorkflowDefinitionDisplay, WorkflowExecutionLogs, WorkflowExecutionTimeline, ZodFormRenderer, acquisitionListKeys, buildErrorReport, calculateProgress, clientsKeys, collectResourceFilterFacets, companyKeys, contactKeys, createOrganizationsSlice, createTestSystemsProvider, createUseOrgInitialization, createUseOrganizations, crmManifest, dealKeys, dealNoteKeys, dealTaskKeys, deliveryManifest, executionsKeys, extendSemanticIconRegistry, filterByDomainFilters, formatStatusLabel, getEnrichmentColor, getExecutionStatusConfig, getGraphBackgroundStyles, getHealthColor, getIcon, getLogLevelConfig, getResourceFilterFacetIds, getSemanticIconComponent, getSeriesColor, getStatusColor, iconMap, isSessionCapable, labelResourceFilterFacet, leadGenArtifactKeys, leadGenListCompanyKeys, leadGenListMemberKeys, leadGenManifest, mdxComponents, milestoneKeys, milestoneStatusColors, monitoringManifest, noteKeys, noteTypeColors, observabilityKeys, operationsKeys, operationsManifest, projectActivityKeys, projectKeys, projectStatusColors, requestsKeys, resolveSemanticIconComponent, scheduleKeys, sessionsKeys, settingsManifest, showApiErrorNotification, showAuthError, showErrorNotification, showInfoNotification, showSuccessNotification, showWarningNotification, sortData, subsidebarWidth, taskKeys, taskStatusColors, taskTypeColors, useAccess, useActivateDeployment, useActivities, useActivitiesRealtime, useActivityFilters, useActivityTrend, useAddCompaniesToList, useAddContactsToList, useAppearance, useArchiveSession, useArchivedLogs, useArtifacts, useAssignRole, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBreadcrumbs, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCheckpointTasks, useClient, useClientStatus, useClients, useCommandQueue, useCommandQueueTask, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewStats, useCommandViewStore, useCompanies, useCompany, useCompanyFacets, useCompleteDealTask, useContact, useContacts, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateArtifact, useCreateClient, useCreateCompany, useCreateContact, useCreateCredential, useCreateDealNote, useCreateDealTask, useCreateProject as useCreateDeliveryProject, useCreateList, useCreateMilestone, useCreateNote, useCreateOrgRole, useCreateSchedule, useCreateSession, useCreateTask, useCreateWebhookEndpoint, useCredentials, useCrmActions, useCrmPipelineSummary, useCrmQuickMetrics, useCyberColors, useDashboardMetrics, useDeactivateDeployment, useDeactivateMembership, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDealsLookup, useDealsSummary, useDeleteApiKey, useDeleteClient, useDeleteCompanies, useDeleteContacts, useDeleteCredential, useDeleteDeal, useDeleteProject as useDeleteDeliveryProject, useDeleteTask2 as useDeleteDeliveryTask, useDeleteDeployment, useDeleteExecution, useDeleteList, useDeleteLists, useDeleteMilestone, useDeleteOrgRole, useDeleteRequest, useDeleteSchedule, useDeleteSession, useDeleteTask, useDeleteWebhookEndpoint, useDeriveActions, useEffectivePermissions, useElevasisSystems, useEndSession, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAction, useExecuteAsync, useExecuteResource, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutionSSE, useExecutions, useGetExecutionHistory, useGetSchedule, useGraphBackgroundStyles, useGraphTheme, useInFlightExecutions, useList, useListActions, useListApiKeys, useListDeployments, useListExecutions, useListMember, useListMembers, useListProgress, useListRecords, useListSchedules, useListWebhookEndpoints, useLists, useListsTelemetry, useMarkAllAsRead, useMarkAsRead, useMilestones, useNewKnowledgeMapLayout, useNotificationAdapter, useNotificationCount as useNotificationCountSSE, useNotifications, useOptionalElevasisSystems, useOrgRoles, useOrganizationMembers, usePaginationState, usePatchTask, usePauseSchedule, usePermissionCatalog, useProject, useProjectActivities, useProjectMilestones, useProjectNotes, useProjectRealtime, useProjectTasks, useProjects, useReactivateMembership, useRecentCrmActivity, useRecentExecutionsByResource, useSessionCheck as useRefocusSessionCheck, useRemoveCompaniesFromList, useRequest, useRequestsList, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResolvedOrganizationModel, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useRevokeRole, useSSEConnection, useScheduledTasks, useSession, useSessionCheck, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSidebar, useSidebarCollapse, useSortedData, useStableAccessToken, useStatusFilter, useSubmitAction, useSubmitRequest, useSuccessNotification, useSystemHealth, useTableSelection, useTableSort, useTasks, useTestNotification, useTimeRangeDates, useTopFailingResources, useTransitionItem, useTransitionListCompany, useTransitionListMember, useTransitionState, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateClient, useUpdateCompany, useUpdateContact, useUpdateCredential, useUpdateProject as useUpdateDeliveryProject, useUpdateList, useUpdateListConfig, useUpdateListStatus, useUpdateMilestone, useUpdateOrgRole, useUpdateRequestStatus, useUpdateSchedule, useUpdateTask, useUpdateWebhookEndpoint, useUserMemberships, useVerifyCredential, useVisibleResources, useWarningNotification, useWorkflowExecution } from './chunk-3WVZRN37.js';
3
3
  export { PresetsProvider, TOKEN_VAR_MAP, componentThemes, createCssVariablesResolver, mantineThemeOverride, useAvailablePresets, usePresetsContext } from './chunk-4OEVLV66.js';
4
4
  export { AmbientBloomGrid, AppBackground, CyberBackground, FilmGrain, FloatingMotes, FloatingOrbs, PerspectiveGrid, RadiantGlow, WaveBackground, generateShades, getPreset, PRESETS as presets } from './chunk-RBGVNPA6.js';
5
5
  import './chunk-ZTWA5H77.js';
@@ -13,16 +13,16 @@ export { CardHeader } from './chunk-62GVNH5U.js';
13
13
  export { InitializationContext, InitializationProvider, useInitialization } from './chunk-LO7GWG24.js';
14
14
  export { OrganizationContext, useOrganization } from './chunk-DD3CCMCZ.js';
15
15
  export { mergeSessionMessages } from './chunk-M7WWRZ5Z.js';
16
- export { StyledMarkdown } from './chunk-7AJKZM4F.js';
16
+ export { StyledMarkdown } from './chunk-JFBZ6XDW.js';
17
17
  export { ScrollToTop, TanStackRouterBridge } from './chunk-2IFYDILW.js';
18
18
  export { RouterProvider, useRouterContext } from './chunk-Q7DJKLEN.js';
19
19
  export { GRAPH_CONSTANTS, calculateGraphHeight, Graph_module_css_default as graphStyles, useConnectionHighlight, useDirectedChainHighlighting, useFitViewTrigger, useGraphHighlighting, useNodeSelection } from './chunk-HENXLGVD.js';
20
- export { AGENT_CONSTANTS, CONTAINER_CONSTANTS, SHARED_VIZ_CONSTANTS, STATUS_COLORS, TIMELINE_CONSTANTS, WORKFLOW_CONSTANTS, calculateBarPosition, formatDuration, getEdgeColor, getEdgeOpacity, getResourceStatusColor, getStatusColors, getStatusIcon, shouldAnimateEdge, useAgentIterationData, useExecutionPath, useMergedExecution, useReactFlowAgent, useTimelineData, useUnifiedWorkflowLayout, useWorkflowStepsLayout } from './chunk-I3CFGE3N.js';
20
+ export { AGENT_CONSTANTS, CONTAINER_CONSTANTS, SHARED_VIZ_CONSTANTS, STATUS_COLORS, TIMELINE_CONSTANTS, WORKFLOW_CONSTANTS, calculateBarPosition, formatDuration, getEdgeColor, getEdgeOpacity, getResourceStatusColor, getStatusColors, getStatusIcon, shouldAnimateEdge, useAgentIterationData, useExecutionPath, useMergedExecution, useReactFlowAgent, useTimelineData, useUnifiedWorkflowLayout, useWorkflowStepsLayout } from './chunk-BLXJEIQS.js';
21
21
  import './chunk-RNP5R5I3.js';
22
22
  export { ProfileProvider, UserProfileService, useProfile, useUserProfile } from './chunk-EIXSQONC.js';
23
23
  export { APIClientError, API_URL, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, LIMIT_ACTIVITY_FEED, OAUTH_FLOW_TIMEOUT, PAGE_SIZE_DEFAULT, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, formatChartAxisDate, formatDate, formatDateTime, formatErrorMessage, formatRelativeTime, formatTimeAgo, getErrorInfo, getErrorTitle, getResourceColor, getResourceIcon, isAPIClientError, restoreConsole, setupBrowserMocks, suppressKnownWarnings, validateEmail } from './chunk-I7BZVVVU.js';
24
- export { REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_REALTIME, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_RUNNING_FAST, SSE_CLOSE_GRACE_PERIOD, SSE_TOKEN_REFRESH_DELAY, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, debounce, getTimeRangeDates, getTimeRangeLabel } from './chunk-FVOMKZ7S.js';
25
- export { ResourceStatusColors } from './chunk-KRWALB24.js';
24
+ export { REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_REALTIME, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_RUNNING_FAST, SSE_CLOSE_GRACE_PERIOD, SSE_TOKEN_REFRESH_DELAY, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, debounce, getTimeRangeDates, getTimeRangeLabel } from './chunk-Y6I3IC45.js';
25
+ export { ResourceStatusColors } from './chunk-6SSQGWK7.js';
26
26
  export { ElevasisServiceProvider, useElevasisServices } from './chunk-BI5VDO2K.js';
27
27
  import './chunk-MQZE7SUI.js';
28
28
  import './chunk-TVTSASST.js';
@@ -2745,6 +2745,7 @@ type Database = {
2745
2745
  deleted_at: string | null;
2746
2746
  ended_at: string | null;
2747
2747
  memory_snapshot: Json;
2748
+ memory_version: number;
2748
2749
  metadata: Json | null;
2749
2750
  organization_id: string;
2750
2751
  resource_id: string;
@@ -2761,6 +2762,7 @@ type Database = {
2761
2762
  deleted_at?: string | null;
2762
2763
  ended_at?: string | null;
2763
2764
  memory_snapshot: Json;
2765
+ memory_version?: number;
2764
2766
  metadata?: Json | null;
2765
2767
  organization_id: string;
2766
2768
  resource_id: string;
@@ -2777,6 +2779,7 @@ type Database = {
2777
2779
  deleted_at?: string | null;
2778
2780
  ended_at?: string | null;
2779
2781
  memory_snapshot?: Json;
2782
+ memory_version?: number;
2780
2783
  metadata?: Json | null;
2781
2784
  organization_id?: string;
2782
2785
  resource_id?: string;
@@ -3114,9 +3117,14 @@ type Database = {
3114
3117
  p_session_id: string;
3115
3118
  };
3116
3119
  Returns: {
3120
+ context_window_size: number;
3117
3121
  created_at: string;
3122
+ cumulative_input_tokens: number;
3123
+ cumulative_output_tokens: number;
3124
+ deleted_at: string;
3118
3125
  ended_at: string;
3119
3126
  memory_snapshot: Json;
3127
+ memory_version: number;
3120
3128
  metadata: Json;
3121
3129
  organization_id: string;
3122
3130
  resource_id: string;
@@ -3158,6 +3166,18 @@ type Database = {
3158
3166
  };
3159
3167
  Returns: boolean;
3160
3168
  };
3169
+ increment_session_tokens: {
3170
+ Args: {
3171
+ p_input_tokens: number;
3172
+ p_output_tokens: number;
3173
+ p_session_id: string;
3174
+ };
3175
+ Returns: {
3176
+ context_window_size: number;
3177
+ cumulative_input_tokens: number;
3178
+ cumulative_output_tokens: number;
3179
+ }[];
3180
+ };
3161
3181
  is_org_member: {
3162
3182
  Args: {
3163
3183
  org_id: string;
@@ -3267,10 +3287,24 @@ interface OrganizationMembership {
3267
3287
  createdAt: string;
3268
3288
  updatedAt: string;
3269
3289
  }
3290
+ /**
3291
+ * How a membership row relates to the two systems that describe it.
3292
+ *
3293
+ * - `linked` — an `org_memberships` row that carries a `workos_membership_id`
3294
+ * - `pre_provisioned` — an `org_memberships` row with no `workos_membership_id`;
3295
+ * the invitee was provisioned but has not completed signup
3296
+ * - `workos_only` — a WorkOS membership with no `org_memberships` row (a sync gap)
3297
+ */
3298
+ type MembershipProvisioningState = 'linked' | 'pre_provisioned' | 'workos_only';
3270
3299
  /**
3271
3300
  * Extended membership with user and organization details for UI
3272
3301
  */
3273
3302
  interface MembershipWithDetails extends OrganizationMembership {
3303
+ /**
3304
+ * Set by `GET /memberships`. Optional so existing consumers are unaffected;
3305
+ * treat `undefined` as "not reported by this endpoint".
3306
+ */
3307
+ provisioningState?: MembershipProvisioningState;
3274
3308
  user?: {
3275
3309
  id: string;
3276
3310
  email: string;
@@ -1,5 +1,5 @@
1
- import { getConceptDefinition, normaliseConceptKey, SemanticIcon, getKnowledgeIconToken, PageContainer, getKnowledgeGraphNodeCommand, IdentityDomainSchema, WorkflowResourceEntrySchema, AgentResourceEntrySchema, IntegrationResourceEntrySchema, ScriptResourceEntrySchema, findOmTreeGroup, SubshellContentContainer, getKnowledgeNodeReadCommand, getKnowledgeOntologyProjection, getPrimaryOntologyItemsForDomain, projectNavigationSurfaces, projectNavigationGroups, SurfaceDefinitionSchema, RoleSchema, PolicySchema, getOntologyDomainLabel, getKnowledgeDomainFolderCommand, buildKnowledgeOmTreeData, findKnowledgeTreeNodeByValue, getKnowledgeTreeFolderCommand, KNOWLEDGE_DOMAINS_WITH_PANELS } from '../chunk-XDOC3ULZ.js';
2
- export { FILTERABLE_DOMAIN_KEYS, KNOWLEDGE_DOMAINS_WITH_PANELS, KNOWLEDGE_ICON_TOKEN_BY_KIND, KnowledgeSearchBar, KnowledgeTree, OM_NESTED_TREE_GROUPS, OM_TREE_GROUPS, SemanticIcon, buildKnowledgeOmTreeData, extendSemanticIconRegistry, findKnowledgeTreeNodeByValue, findOmTreeGroup, getKnowledgeIconToken, getSemanticIconComponent, getSharedOrganizationGraph, resolveSemanticIconComponent } from '../chunk-XDOC3ULZ.js';
1
+ import { getConceptDefinition, normaliseConceptKey, SemanticIcon, getKnowledgeIconToken, PageContainer, getKnowledgeGraphNodeCommand, IdentityDomainSchema, WorkflowResourceEntrySchema, AgentResourceEntrySchema, IntegrationResourceEntrySchema, ScriptResourceEntrySchema, findOmTreeGroup, SubshellContentContainer, getKnowledgeNodeReadCommand, getKnowledgeOntologyProjection, getPrimaryOntologyItemsForDomain, projectNavigationSurfaces, projectNavigationGroups, SurfaceDefinitionSchema, RoleSchema, PolicySchema, getOntologyDomainLabel, getKnowledgeDomainFolderCommand, buildKnowledgeOmTreeData, findKnowledgeTreeNodeByValue, getKnowledgeTreeFolderCommand, KNOWLEDGE_DOMAINS_WITH_PANELS } from '../chunk-3WVZRN37.js';
2
+ export { FILTERABLE_DOMAIN_KEYS, KNOWLEDGE_DOMAINS_WITH_PANELS, KNOWLEDGE_ICON_TOKEN_BY_KIND, KnowledgeSearchBar, KnowledgeTree, OM_NESTED_TREE_GROUPS, OM_TREE_GROUPS, SemanticIcon, buildKnowledgeOmTreeData, extendSemanticIconRegistry, findKnowledgeTreeNodeByValue, findOmTreeGroup, getKnowledgeIconToken, getSemanticIconComponent, getSharedOrganizationGraph, resolveSemanticIconComponent } from '../chunk-3WVZRN37.js';
3
3
  import { usePresetsContext } from '../chunk-4OEVLV66.js';
4
4
  import '../chunk-RBGVNPA6.js';
5
5
  import '../chunk-ZTWA5H77.js';
@@ -13,16 +13,16 @@ import '../chunk-62GVNH5U.js';
13
13
  import '../chunk-LO7GWG24.js';
14
14
  import '../chunk-DD3CCMCZ.js';
15
15
  import '../chunk-M7WWRZ5Z.js';
16
- import '../chunk-7AJKZM4F.js';
16
+ import '../chunk-JFBZ6XDW.js';
17
17
  import '../chunk-2IFYDILW.js';
18
18
  import '../chunk-Q7DJKLEN.js';
19
19
  import '../chunk-HENXLGVD.js';
20
- import '../chunk-I3CFGE3N.js';
20
+ import '../chunk-BLXJEIQS.js';
21
21
  import '../chunk-RNP5R5I3.js';
22
22
  import '../chunk-EIXSQONC.js';
23
23
  import { getSystem, SystemEntrySchema, EntitySchema, ActionSchema, OntologyIdSchema, ontologyGraphNodeId, compileOrganizationOntology, parseOntologyId } from '../chunk-I7BZVVVU.js';
24
- import '../chunk-FVOMKZ7S.js';
25
- import '../chunk-KRWALB24.js';
24
+ import '../chunk-Y6I3IC45.js';
25
+ import '../chunk-6SSQGWK7.js';
26
26
  import '../chunk-BI5VDO2K.js';
27
27
  import '../chunk-MQZE7SUI.js';
28
28
  import '../chunk-TVTSASST.js';
@@ -1,4 +1,4 @@
1
- export { AppShellCenteredContainer, AppShellContainer, AppShellContentContainer, AppShellError, AppShellLoader, AppShellRightSideContainer, AppShellRightSideOuterContainer, AppTopbarAdjusterWrapper, CollapsibleSidebarGroup, CyberParticles, LinksGroup, PageContainer, Sidebar, SidebarContext, SidebarProvider, SubshellContainer, SubshellContentContainer, SubshellLoader, SubshellNavList, SubshellRightSideContainer, SubshellSidebar, SubshellSidebarLoader, Topbar, TopbarActions, TopbarContainer, Vignette, subsidebarWidth, useSidebar, useSidebarCollapse } from '../chunk-XDOC3ULZ.js';
1
+ export { AppShellCenteredContainer, AppShellContainer, AppShellContentContainer, AppShellError, AppShellLoader, AppShellRightSideContainer, AppShellRightSideOuterContainer, AppTopbarAdjusterWrapper, CollapsibleSidebarGroup, CyberParticles, LinksGroup, PageContainer, Sidebar, SidebarContext, SidebarProvider, SubshellContainer, SubshellContentContainer, SubshellLoader, SubshellNavList, SubshellRightSideContainer, SubshellSidebar, SubshellSidebarLoader, Topbar, TopbarActions, TopbarContainer, Vignette, subsidebarWidth, useSidebar, useSidebarCollapse } from '../chunk-3WVZRN37.js';
2
2
  import '../chunk-4OEVLV66.js';
3
3
  export { AmbientBloomGrid, AppBackground, CyberBackground, FilmGrain, FloatingMotes, FloatingOrbs, PerspectiveGrid, RadiantGlow, WaveBackground } from '../chunk-RBGVNPA6.js';
4
4
  import '../chunk-ZTWA5H77.js';
@@ -12,16 +12,16 @@ import '../chunk-62GVNH5U.js';
12
12
  import '../chunk-LO7GWG24.js';
13
13
  import '../chunk-DD3CCMCZ.js';
14
14
  import '../chunk-M7WWRZ5Z.js';
15
- import '../chunk-7AJKZM4F.js';
15
+ import '../chunk-JFBZ6XDW.js';
16
16
  import '../chunk-2IFYDILW.js';
17
17
  import '../chunk-Q7DJKLEN.js';
18
18
  import '../chunk-HENXLGVD.js';
19
- import '../chunk-I3CFGE3N.js';
19
+ import '../chunk-BLXJEIQS.js';
20
20
  import '../chunk-RNP5R5I3.js';
21
21
  import '../chunk-EIXSQONC.js';
22
22
  import '../chunk-I7BZVVVU.js';
23
- import '../chunk-FVOMKZ7S.js';
24
- import '../chunk-KRWALB24.js';
23
+ import '../chunk-Y6I3IC45.js';
24
+ import '../chunk-6SSQGWK7.js';
25
25
  import '../chunk-BI5VDO2K.js';
26
26
  import '../chunk-MQZE7SUI.js';
27
27
  import '../chunk-TVTSASST.js';
@@ -52,10 +52,24 @@ interface OrganizationMembership {
52
52
  createdAt: string;
53
53
  updatedAt: string;
54
54
  }
55
+ /**
56
+ * How a membership row relates to the two systems that describe it.
57
+ *
58
+ * - `linked` — an `org_memberships` row that carries a `workos_membership_id`
59
+ * - `pre_provisioned` — an `org_memberships` row with no `workos_membership_id`;
60
+ * the invitee was provisioned but has not completed signup
61
+ * - `workos_only` — a WorkOS membership with no `org_memberships` row (a sync gap)
62
+ */
63
+ type MembershipProvisioningState = 'linked' | 'pre_provisioned' | 'workos_only';
55
64
  /**
56
65
  * Extended membership with user and organization details for UI
57
66
  */
58
67
  interface MembershipWithDetails extends OrganizationMembership {
68
+ /**
69
+ * Set by `GET /memberships`. Optional so existing consumers are unaffected;
70
+ * treat `undefined` as "not reported by this endpoint".
71
+ */
72
+ provisioningState?: MembershipProvisioningState;
59
73
  user?: {
60
74
  id: string;
61
75
  email: string;
@@ -1,4 +1,4 @@
1
- export { OrganizationProvider, OrganizationSwitcher, OrganizationSwitcherConnected, createOrganizationsSlice, createUseOrgInitialization, createUseOrganizations } from '../chunk-XDOC3ULZ.js';
1
+ export { OrganizationProvider, OrganizationSwitcher, OrganizationSwitcherConnected, createOrganizationsSlice, createUseOrgInitialization, createUseOrganizations } from '../chunk-3WVZRN37.js';
2
2
  import '../chunk-4OEVLV66.js';
3
3
  import '../chunk-RBGVNPA6.js';
4
4
  import '../chunk-ZTWA5H77.js';
@@ -12,16 +12,16 @@ import '../chunk-62GVNH5U.js';
12
12
  import '../chunk-LO7GWG24.js';
13
13
  export { OrganizationContext, useOrganization } from '../chunk-DD3CCMCZ.js';
14
14
  import '../chunk-M7WWRZ5Z.js';
15
- import '../chunk-7AJKZM4F.js';
15
+ import '../chunk-JFBZ6XDW.js';
16
16
  import '../chunk-2IFYDILW.js';
17
17
  import '../chunk-Q7DJKLEN.js';
18
18
  import '../chunk-HENXLGVD.js';
19
- import '../chunk-I3CFGE3N.js';
19
+ import '../chunk-BLXJEIQS.js';
20
20
  import '../chunk-RNP5R5I3.js';
21
21
  import '../chunk-EIXSQONC.js';
22
22
  import '../chunk-I7BZVVVU.js';
23
- import '../chunk-FVOMKZ7S.js';
24
- import '../chunk-KRWALB24.js';
23
+ import '../chunk-Y6I3IC45.js';
24
+ import '../chunk-6SSQGWK7.js';
25
25
  import '../chunk-BI5VDO2K.js';
26
26
  import '../chunk-MQZE7SUI.js';
27
27
  import '../chunk-TVTSASST.js';
@@ -2745,6 +2745,7 @@ type Database = {
2745
2745
  deleted_at: string | null;
2746
2746
  ended_at: string | null;
2747
2747
  memory_snapshot: Json;
2748
+ memory_version: number;
2748
2749
  metadata: Json | null;
2749
2750
  organization_id: string;
2750
2751
  resource_id: string;
@@ -2761,6 +2762,7 @@ type Database = {
2761
2762
  deleted_at?: string | null;
2762
2763
  ended_at?: string | null;
2763
2764
  memory_snapshot: Json;
2765
+ memory_version?: number;
2764
2766
  metadata?: Json | null;
2765
2767
  organization_id: string;
2766
2768
  resource_id: string;
@@ -2777,6 +2779,7 @@ type Database = {
2777
2779
  deleted_at?: string | null;
2778
2780
  ended_at?: string | null;
2779
2781
  memory_snapshot?: Json;
2782
+ memory_version?: number;
2780
2783
  metadata?: Json | null;
2781
2784
  organization_id?: string;
2782
2785
  resource_id?: string;
@@ -3114,9 +3117,14 @@ type Database = {
3114
3117
  p_session_id: string;
3115
3118
  };
3116
3119
  Returns: {
3120
+ context_window_size: number;
3117
3121
  created_at: string;
3122
+ cumulative_input_tokens: number;
3123
+ cumulative_output_tokens: number;
3124
+ deleted_at: string;
3118
3125
  ended_at: string;
3119
3126
  memory_snapshot: Json;
3127
+ memory_version: number;
3120
3128
  metadata: Json;
3121
3129
  organization_id: string;
3122
3130
  resource_id: string;
@@ -3158,6 +3166,18 @@ type Database = {
3158
3166
  };
3159
3167
  Returns: boolean;
3160
3168
  };
3169
+ increment_session_tokens: {
3170
+ Args: {
3171
+ p_input_tokens: number;
3172
+ p_output_tokens: number;
3173
+ p_session_id: string;
3174
+ };
3175
+ Returns: {
3176
+ context_window_size: number;
3177
+ cumulative_input_tokens: number;
3178
+ cumulative_output_tokens: number;
3179
+ }[];
3180
+ };
3161
3181
  is_org_member: {
3162
3182
  Args: {
3163
3183
  org_id: string;