@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.
- package/dist/api/index.js +2 -2
- package/dist/app/index.d.ts +20 -0
- package/dist/app/index.js +5 -5
- package/dist/auth/index.js +5 -5
- package/dist/charts/index.js +5 -5
- package/dist/{chunk-XDOC3ULZ.js → chunk-3WVZRN37.js} +42 -19
- package/dist/{chunk-DRQPEMJI.js → chunk-4DV4ECMG.js} +3 -0
- package/dist/{chunk-KRWALB24.js → chunk-6SSQGWK7.js} +1 -1
- package/dist/{chunk-I3CFGE3N.js → chunk-BLXJEIQS.js} +1 -1
- package/dist/{chunk-7AJKZM4F.js → chunk-JFBZ6XDW.js} +2 -1
- package/dist/{chunk-FVOMKZ7S.js → chunk-Y6I3IC45.js} +3 -6
- package/dist/components/chat/index.js +1 -1
- package/dist/components/index.d.ts +108 -56
- package/dist/components/index.js +5 -5
- package/dist/components/navigation/index.js +5 -5
- package/dist/execution/index.js +2 -2
- package/dist/features/auth/index.d.ts +87 -2
- package/dist/features/auth/index.js +143 -8
- package/dist/features/clients/index.js +5 -5
- package/dist/features/crm/index.d.ts +20 -0
- package/dist/features/crm/index.js +5 -5
- package/dist/features/dashboard/index.js +5 -5
- package/dist/features/delivery/index.d.ts +20 -0
- package/dist/features/delivery/index.js +5 -5
- package/dist/features/knowledge/index.js +5 -5
- package/dist/features/lead-gen/index.js +5 -5
- package/dist/features/monitoring/index.js +5 -5
- package/dist/features/monitoring/requests/index.js +6 -6
- package/dist/features/operations/index.d.ts +36 -1
- package/dist/features/operations/index.js +5 -5
- package/dist/features/public-agent-chat/index.js +2 -2
- package/dist/features/settings/index.d.ts +20 -0
- package/dist/features/settings/index.js +5 -5
- package/dist/hooks/access/index.js +5 -5
- package/dist/hooks/delivery/index.d.ts +20 -0
- package/dist/hooks/delivery/index.js +5 -5
- package/dist/hooks/index.d.ts +53 -1
- package/dist/hooks/index.js +5 -5
- package/dist/hooks/published.d.ts +53 -1
- package/dist/hooks/published.js +5 -5
- package/dist/index.d.ts +109 -57
- package/dist/index.js +5 -5
- package/dist/initialization/index.d.ts +34 -0
- package/dist/knowledge/index.js +6 -6
- package/dist/layout/index.js +5 -5
- package/dist/organization/index.d.ts +14 -0
- package/dist/organization/index.js +5 -5
- package/dist/profile/index.d.ts +20 -0
- package/dist/provider/index.d.ts +20 -0
- package/dist/provider/index.js +5 -5
- package/dist/provider/published.d.ts +20 -0
- package/dist/provider/published.js +5 -5
- package/dist/supabase/index.d.ts +40 -0
- package/dist/test-utils/index.d.ts +5 -0
- package/dist/test-utils/index.js +4 -4
- package/dist/test-utils/setup-integration.js +1 -1
- package/dist/test-utils/setup.js +1 -1
- package/dist/types/index.d.ts +237 -57
- package/dist/utils/index.js +2 -2
- package/package.json +8 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ConfirmationModal, RequestModal, usePaginationState, useRequestsList, useUpdateRequestStatus, useDeleteRequest, useTableSelection, PageTitleCaption, FilterBar, TableSelectionToolbar, CustomModal, useRequest, ContextViewer, JsonViewer } from '../../../chunk-
|
|
2
|
-
export { RequestActionIcon, RequestModal, requestTopbarActionManifest } from '../../../chunk-
|
|
1
|
+
import { ConfirmationModal, RequestModal, usePaginationState, useRequestsList, useUpdateRequestStatus, useDeleteRequest, useTableSelection, PageTitleCaption, FilterBar, TableSelectionToolbar, CustomModal, useRequest, ContextViewer, JsonViewer } from '../../../chunk-3WVZRN37.js';
|
|
2
|
+
export { RequestActionIcon, RequestModal, requestTopbarActionManifest } from '../../../chunk-3WVZRN37.js';
|
|
3
3
|
import '../../../chunk-4OEVLV66.js';
|
|
4
4
|
import '../../../chunk-RBGVNPA6.js';
|
|
5
5
|
import '../../../chunk-ZTWA5H77.js';
|
|
@@ -13,16 +13,16 @@ import { CardHeader } from '../../../chunk-62GVNH5U.js';
|
|
|
13
13
|
import '../../../chunk-LO7GWG24.js';
|
|
14
14
|
import '../../../chunk-DD3CCMCZ.js';
|
|
15
15
|
import '../../../chunk-M7WWRZ5Z.js';
|
|
16
|
-
import '../../../chunk-
|
|
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-
|
|
20
|
+
import '../../../chunk-BLXJEIQS.js';
|
|
21
21
|
import '../../../chunk-RNP5R5I3.js';
|
|
22
22
|
import '../../../chunk-EIXSQONC.js';
|
|
23
23
|
import { formatTimeAgo } from '../../../chunk-I7BZVVVU.js';
|
|
24
|
-
import '../../../chunk-
|
|
25
|
-
import '../../../chunk-
|
|
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';
|
|
@@ -350,6 +350,14 @@ type ResourceEntry = z.infer<typeof ResourceEntrySchema>;
|
|
|
350
350
|
* Memory types mirror action types for clarity and filtering
|
|
351
351
|
*/
|
|
352
352
|
type MemoryEntryType = 'context' | 'input' | 'reasoning' | 'tool-result' | 'delegation-result' | 'error';
|
|
353
|
+
/**
|
|
354
|
+
* Who authored an entry's content.
|
|
355
|
+
*
|
|
356
|
+
* This is what lets the assembled prompt tell framework-authored text apart from text that
|
|
357
|
+
* originated outside the trust boundary. `'framework'` content is ours; the other three are not
|
|
358
|
+
* and are rendered inside the JSON data envelope (see `MemoryManager.toContextParts`).
|
|
359
|
+
*/
|
|
360
|
+
type MemoryEntrySource = 'framework' | 'user' | 'tool' | 'model';
|
|
353
361
|
/**
|
|
354
362
|
* Memory entry - represents a single entry in agent memory
|
|
355
363
|
* Stored in agent memory, translated by adapters to vendor-specific formats
|
|
@@ -360,6 +368,16 @@ interface MemoryEntry {
|
|
|
360
368
|
timestamp: number;
|
|
361
369
|
turnNumber: number | null;
|
|
362
370
|
iterationNumber: number | null;
|
|
371
|
+
/**
|
|
372
|
+
* Provenance. **Optional on purpose** — `undefined` means unknown, which is what every
|
|
373
|
+
* pre-existing snapshot and every not-yet-redeployed tenant bundle produces. Read sites MUST
|
|
374
|
+
* test `== null`, never `=== undefined`: the `inTurnScope` predicate in `manager.ts` is the
|
|
375
|
+
* cautionary precedent, where a `=== undefined` check silently dropped every `null`-stamped
|
|
376
|
+
* entry. `isMemoryEntry` is deliberately NOT tightened to require this field; doing so would
|
|
377
|
+
* make every stored snapshot fail validation, and `restoreSessionMemory` fails open by
|
|
378
|
+
* starting the agent with empty memory rather than throwing.
|
|
379
|
+
*/
|
|
380
|
+
source?: MemoryEntrySource;
|
|
363
381
|
}
|
|
364
382
|
/**
|
|
365
383
|
* Agent memory - Self-orchestrated memory with session + working storage
|
|
@@ -2165,6 +2183,12 @@ interface SessionConversationViewProps {
|
|
|
2165
2183
|
* and avoids a double-send.
|
|
2166
2184
|
*/
|
|
2167
2185
|
onPendingSent?: () => void;
|
|
2186
|
+
/**
|
|
2187
|
+
* Opt-in for agent-activity bubbles (reasoning, tool calls/results, errors).
|
|
2188
|
+
* Defaults to false: the session chat shows the conversation only, matching
|
|
2189
|
+
* PublicAgentChat. Pass true from a debugging surface that wants the trace.
|
|
2190
|
+
*/
|
|
2191
|
+
showAgentActivity?: boolean;
|
|
2168
2192
|
}
|
|
2169
2193
|
/**
|
|
2170
2194
|
* Shared session-detail chat body.
|
|
@@ -2177,7 +2201,7 @@ interface SessionConversationViewProps {
|
|
|
2177
2201
|
* connection is suppressed. The first submitted message is handed to onFirstSend, which
|
|
2178
2202
|
* creates the real session row, swaps the URL, and sends turn #1.
|
|
2179
2203
|
*/
|
|
2180
|
-
declare function SessionConversationView({ sessionId, apiUrl, onConnectionStateChange, emptyStateText, emptyStateSubtext, placeholder, onFirstSend, pendingFirstMessage, onPendingSent }: SessionConversationViewProps): react_jsx_runtime.JSX.Element;
|
|
2204
|
+
declare function SessionConversationView({ sessionId, apiUrl, onConnectionStateChange, emptyStateText, emptyStateSubtext, placeholder, onFirstSend, pendingFirstMessage, onPendingSent, showAgentActivity }: SessionConversationViewProps): react_jsx_runtime.JSX.Element;
|
|
2181
2205
|
|
|
2182
2206
|
interface SessionsPageProps {
|
|
2183
2207
|
/** Whether the organization context is ready; blocks render until true */
|
|
@@ -2300,6 +2324,17 @@ interface SessionHeaderProps {
|
|
|
2300
2324
|
* Header component for session chat page.
|
|
2301
2325
|
* Displays session title and connection status. Session details have moved to
|
|
2302
2326
|
* the Info view's SessionDetailsPanel, so there is no longer a sidebar toggle.
|
|
2327
|
+
*
|
|
2328
|
+
* TODO: wire up the context-usage bar. Real token data already exists end to end
|
|
2329
|
+
* — the API emits SessionTokenUsage (cumulativeInputTokens / cumulativeOutputTokens /
|
|
2330
|
+
* contextWindowSize) on the `turn:complete` WebSocket event, and useSessionWebSocket
|
|
2331
|
+
* exposes it as `lastTokenUsage`. It is not reachable from here: this header renders
|
|
2332
|
+
* above SessionChatInterface, while the WS hook lives inside the injected conversation
|
|
2333
|
+
* view below it. To finish, lift `lastTokenUsage` out of the conversation view (mirror
|
|
2334
|
+
* the `onTokenUsage` callback that command-center's ConversationView already uses) and
|
|
2335
|
+
* pass `{ used: cumulativeInput + cumulativeOutput, total: contextWindowSize }` as
|
|
2336
|
+
* `tokenUsage`. Until then the prop stays unset and ChatHeader hides the bar — a mock
|
|
2337
|
+
* 45000/128000 constant used to live here and displayed a permanent, meaningless 35%.
|
|
2303
2338
|
*/
|
|
2304
2339
|
declare function SessionHeader({ session: _session, connectionState, tokenUsage }: SessionHeaderProps): react_jsx_runtime.JSX.Element;
|
|
2305
2340
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AgentExecutionPanel, AgentSessionGroup, CommandQueueDetailPage, CommandQueuePage, CommandQueueShell, CommandViewPage, DashboardOperationsOverview, ExecuteWorkflowModal, ExecutionPanel, OperationsOverview, OperationsSidebar, OperationsSidebarMiddle, OperationsSidebarTop, OrganizationGraphPage, ResourceDetailPage, ResourcesPage, ResourcesSidebar, SessionChatArea, SessionChatInterface, SessionChatPage, SessionConversationView, SessionDetailsPanel, SessionExecutionLogs, SessionHeader, SessionListItem, SessionsPage, SessionsSidebar, SystemOpsView, WorkflowExecutionPanel, aggregateSystemMetrics, formatResourceAttribution, operationsManifest } from '../../chunk-
|
|
1
|
+
export { AgentExecutionPanel, AgentSessionGroup, CommandQueueDetailPage, CommandQueuePage, CommandQueueShell, CommandViewPage, DashboardOperationsOverview, ExecuteWorkflowModal, ExecutionPanel, OperationsOverview, OperationsSidebar, OperationsSidebarMiddle, OperationsSidebarTop, OrganizationGraphPage, ResourceDetailPage, ResourcesPage, ResourcesSidebar, SessionChatArea, SessionChatInterface, SessionChatPage, SessionConversationView, SessionDetailsPanel, SessionExecutionLogs, SessionHeader, SessionListItem, SessionsPage, SessionsSidebar, SystemOpsView, WorkflowExecutionPanel, aggregateSystemMetrics, formatResourceAttribution, operationsManifest } 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
|
import '../../chunk-M7WWRZ5Z.js';
|
|
15
|
-
import '../../chunk-
|
|
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-
|
|
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-
|
|
24
|
-
import '../../chunk-
|
|
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';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WebSocketSessionTurnSchema, getWebSocketBaseUrl, createLiveTempMessageIdentity, formatMessageEvent, mergeSessionMessages } from '../../chunk-M7WWRZ5Z.js';
|
|
2
|
-
import { ChatInterface } from '../../chunk-
|
|
3
|
-
import { WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, validateTokenLimit, TOKEN_LIMITS } from '../../chunk-
|
|
2
|
+
import { ChatInterface } from '../../chunk-JFBZ6XDW.js';
|
|
3
|
+
import { WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, validateTokenLimit, TOKEN_LIMITS } from '../../chunk-Y6I3IC45.js';
|
|
4
4
|
import { UuidSchema } from '../../chunk-TVTSASST.js';
|
|
5
5
|
import '../../chunk-I2KLQ2HA.js';
|
|
6
6
|
import { Center, Loader, Paper, Stack, Group, Title, Alert, PasswordInput, Button, Text, List, TextInput, Box, Badge, Divider } from '@mantine/core';
|
|
@@ -2746,6 +2746,7 @@ type Database = {
|
|
|
2746
2746
|
deleted_at: string | null;
|
|
2747
2747
|
ended_at: string | null;
|
|
2748
2748
|
memory_snapshot: Json;
|
|
2749
|
+
memory_version: number;
|
|
2749
2750
|
metadata: Json | null;
|
|
2750
2751
|
organization_id: string;
|
|
2751
2752
|
resource_id: string;
|
|
@@ -2762,6 +2763,7 @@ type Database = {
|
|
|
2762
2763
|
deleted_at?: string | null;
|
|
2763
2764
|
ended_at?: string | null;
|
|
2764
2765
|
memory_snapshot: Json;
|
|
2766
|
+
memory_version?: number;
|
|
2765
2767
|
metadata?: Json | null;
|
|
2766
2768
|
organization_id: string;
|
|
2767
2769
|
resource_id: string;
|
|
@@ -2778,6 +2780,7 @@ type Database = {
|
|
|
2778
2780
|
deleted_at?: string | null;
|
|
2779
2781
|
ended_at?: string | null;
|
|
2780
2782
|
memory_snapshot?: Json;
|
|
2783
|
+
memory_version?: number;
|
|
2781
2784
|
metadata?: Json | null;
|
|
2782
2785
|
organization_id?: string;
|
|
2783
2786
|
resource_id?: string;
|
|
@@ -3115,9 +3118,14 @@ type Database = {
|
|
|
3115
3118
|
p_session_id: string;
|
|
3116
3119
|
};
|
|
3117
3120
|
Returns: {
|
|
3121
|
+
context_window_size: number;
|
|
3118
3122
|
created_at: string;
|
|
3123
|
+
cumulative_input_tokens: number;
|
|
3124
|
+
cumulative_output_tokens: number;
|
|
3125
|
+
deleted_at: string;
|
|
3119
3126
|
ended_at: string;
|
|
3120
3127
|
memory_snapshot: Json;
|
|
3128
|
+
memory_version: number;
|
|
3121
3129
|
metadata: Json;
|
|
3122
3130
|
organization_id: string;
|
|
3123
3131
|
resource_id: string;
|
|
@@ -3159,6 +3167,18 @@ type Database = {
|
|
|
3159
3167
|
};
|
|
3160
3168
|
Returns: boolean;
|
|
3161
3169
|
};
|
|
3170
|
+
increment_session_tokens: {
|
|
3171
|
+
Args: {
|
|
3172
|
+
p_input_tokens: number;
|
|
3173
|
+
p_output_tokens: number;
|
|
3174
|
+
p_session_id: string;
|
|
3175
|
+
};
|
|
3176
|
+
Returns: {
|
|
3177
|
+
context_window_size: number;
|
|
3178
|
+
cumulative_input_tokens: number;
|
|
3179
|
+
cumulative_output_tokens: number;
|
|
3180
|
+
}[];
|
|
3181
|
+
};
|
|
3162
3182
|
is_org_member: {
|
|
3163
3183
|
Args: {
|
|
3164
3184
|
org_id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AccountSettings, AppearanceSettings, CreateWebhookEndpointModal, EditCredentialModal, EditWebhookEndpointModal, MemberAccessModal, MyRolesPage, OAuthIntegrationsCard, OrgMembersList, OrganizationSettings, WebhookEndpointList, WebhookEndpointSettings, settingsManifest } from '../../chunk-
|
|
1
|
+
export { AccountSettings, AppearanceSettings, CreateWebhookEndpointModal, EditCredentialModal, EditWebhookEndpointModal, MemberAccessModal, MyRolesPage, OAuthIntegrationsCard, OrgMembersList, OrganizationSettings, WebhookEndpointList, WebhookEndpointSettings, settingsManifest } 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
|
import '../../chunk-M7WWRZ5Z.js';
|
|
15
|
-
import '../../chunk-
|
|
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-
|
|
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-
|
|
24
|
-
import '../../chunk-
|
|
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';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AccessKeys, useAccess } from '../../chunk-
|
|
1
|
+
export { AccessKeys, useAccess } 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
|
import '../../chunk-M7WWRZ5Z.js';
|
|
15
|
-
import '../../chunk-
|
|
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-
|
|
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-
|
|
24
|
-
import '../../chunk-
|
|
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';
|
|
@@ -2744,6 +2744,7 @@ type Database = {
|
|
|
2744
2744
|
deleted_at: string | null;
|
|
2745
2745
|
ended_at: string | null;
|
|
2746
2746
|
memory_snapshot: Json;
|
|
2747
|
+
memory_version: number;
|
|
2747
2748
|
metadata: Json | null;
|
|
2748
2749
|
organization_id: string;
|
|
2749
2750
|
resource_id: string;
|
|
@@ -2760,6 +2761,7 @@ type Database = {
|
|
|
2760
2761
|
deleted_at?: string | null;
|
|
2761
2762
|
ended_at?: string | null;
|
|
2762
2763
|
memory_snapshot: Json;
|
|
2764
|
+
memory_version?: number;
|
|
2763
2765
|
metadata?: Json | null;
|
|
2764
2766
|
organization_id: string;
|
|
2765
2767
|
resource_id: string;
|
|
@@ -2776,6 +2778,7 @@ type Database = {
|
|
|
2776
2778
|
deleted_at?: string | null;
|
|
2777
2779
|
ended_at?: string | null;
|
|
2778
2780
|
memory_snapshot?: Json;
|
|
2781
|
+
memory_version?: number;
|
|
2779
2782
|
metadata?: Json | null;
|
|
2780
2783
|
organization_id?: string;
|
|
2781
2784
|
resource_id?: string;
|
|
@@ -3113,9 +3116,14 @@ type Database = {
|
|
|
3113
3116
|
p_session_id: string;
|
|
3114
3117
|
};
|
|
3115
3118
|
Returns: {
|
|
3119
|
+
context_window_size: number;
|
|
3116
3120
|
created_at: string;
|
|
3121
|
+
cumulative_input_tokens: number;
|
|
3122
|
+
cumulative_output_tokens: number;
|
|
3123
|
+
deleted_at: string;
|
|
3117
3124
|
ended_at: string;
|
|
3118
3125
|
memory_snapshot: Json;
|
|
3126
|
+
memory_version: number;
|
|
3119
3127
|
metadata: Json;
|
|
3120
3128
|
organization_id: string;
|
|
3121
3129
|
resource_id: string;
|
|
@@ -3157,6 +3165,18 @@ type Database = {
|
|
|
3157
3165
|
};
|
|
3158
3166
|
Returns: boolean;
|
|
3159
3167
|
};
|
|
3168
|
+
increment_session_tokens: {
|
|
3169
|
+
Args: {
|
|
3170
|
+
p_input_tokens: number;
|
|
3171
|
+
p_output_tokens: number;
|
|
3172
|
+
p_session_id: string;
|
|
3173
|
+
};
|
|
3174
|
+
Returns: {
|
|
3175
|
+
context_window_size: number;
|
|
3176
|
+
cumulative_input_tokens: number;
|
|
3177
|
+
cumulative_output_tokens: number;
|
|
3178
|
+
}[];
|
|
3179
|
+
};
|
|
3160
3180
|
is_org_member: {
|
|
3161
3181
|
Args: {
|
|
3162
3182
|
org_id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { milestoneKeys, noteKeys, projectKeys, taskKeys, useCreateMilestone, useCreateNote, useCreateProject, useCreateTask, useDeleteMilestone, useDeleteProject, useDeleteTask2 as useDeleteTask, useMilestones, useProject, useProjectMilestones, useProjectNotes, useProjectTasks, useProjects, useTasks, useUpdateMilestone, useUpdateProject, useUpdateTask } from '../../chunk-
|
|
1
|
+
export { milestoneKeys, noteKeys, projectKeys, taskKeys, useCreateMilestone, useCreateNote, useCreateProject, useCreateTask, useDeleteMilestone, useDeleteProject, useDeleteTask2 as useDeleteTask, useMilestones, useProject, useProjectMilestones, useProjectNotes, useProjectTasks, useProjects, useTasks, useUpdateMilestone, useUpdateProject, useUpdateTask } 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
|
import '../../chunk-M7WWRZ5Z.js';
|
|
15
|
-
import '../../chunk-
|
|
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-
|
|
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-
|
|
24
|
-
import '../../chunk-
|
|
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';
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -160,10 +160,24 @@ interface ListMembershipsResponse {
|
|
|
160
160
|
after?: string | null;
|
|
161
161
|
};
|
|
162
162
|
}
|
|
163
|
+
/**
|
|
164
|
+
* How a membership row relates to the two systems that describe it.
|
|
165
|
+
*
|
|
166
|
+
* - `linked` — an `org_memberships` row that carries a `workos_membership_id`
|
|
167
|
+
* - `pre_provisioned` — an `org_memberships` row with no `workos_membership_id`;
|
|
168
|
+
* the invitee was provisioned but has not completed signup
|
|
169
|
+
* - `workos_only` — a WorkOS membership with no `org_memberships` row (a sync gap)
|
|
170
|
+
*/
|
|
171
|
+
type MembershipProvisioningState = 'linked' | 'pre_provisioned' | 'workos_only';
|
|
163
172
|
/**
|
|
164
173
|
* Extended membership with user and organization details for UI
|
|
165
174
|
*/
|
|
166
175
|
interface MembershipWithDetails extends OrganizationMembership {
|
|
176
|
+
/**
|
|
177
|
+
* Set by `GET /memberships`. Optional so existing consumers are unaffected;
|
|
178
|
+
* treat `undefined` as "not reported by this endpoint".
|
|
179
|
+
*/
|
|
180
|
+
provisioningState?: MembershipProvisioningState;
|
|
167
181
|
user?: {
|
|
168
182
|
id: string;
|
|
169
183
|
email: string;
|
|
@@ -2927,6 +2941,7 @@ type Database = {
|
|
|
2927
2941
|
deleted_at: string | null;
|
|
2928
2942
|
ended_at: string | null;
|
|
2929
2943
|
memory_snapshot: Json;
|
|
2944
|
+
memory_version: number;
|
|
2930
2945
|
metadata: Json | null;
|
|
2931
2946
|
organization_id: string;
|
|
2932
2947
|
resource_id: string;
|
|
@@ -2943,6 +2958,7 @@ type Database = {
|
|
|
2943
2958
|
deleted_at?: string | null;
|
|
2944
2959
|
ended_at?: string | null;
|
|
2945
2960
|
memory_snapshot: Json;
|
|
2961
|
+
memory_version?: number;
|
|
2946
2962
|
metadata?: Json | null;
|
|
2947
2963
|
organization_id: string;
|
|
2948
2964
|
resource_id: string;
|
|
@@ -2959,6 +2975,7 @@ type Database = {
|
|
|
2959
2975
|
deleted_at?: string | null;
|
|
2960
2976
|
ended_at?: string | null;
|
|
2961
2977
|
memory_snapshot?: Json;
|
|
2978
|
+
memory_version?: number;
|
|
2962
2979
|
metadata?: Json | null;
|
|
2963
2980
|
organization_id?: string;
|
|
2964
2981
|
resource_id?: string;
|
|
@@ -3296,9 +3313,14 @@ type Database = {
|
|
|
3296
3313
|
p_session_id: string;
|
|
3297
3314
|
};
|
|
3298
3315
|
Returns: {
|
|
3316
|
+
context_window_size: number;
|
|
3299
3317
|
created_at: string;
|
|
3318
|
+
cumulative_input_tokens: number;
|
|
3319
|
+
cumulative_output_tokens: number;
|
|
3320
|
+
deleted_at: string;
|
|
3300
3321
|
ended_at: string;
|
|
3301
3322
|
memory_snapshot: Json;
|
|
3323
|
+
memory_version: number;
|
|
3302
3324
|
metadata: Json;
|
|
3303
3325
|
organization_id: string;
|
|
3304
3326
|
resource_id: string;
|
|
@@ -3340,6 +3362,18 @@ type Database = {
|
|
|
3340
3362
|
};
|
|
3341
3363
|
Returns: boolean;
|
|
3342
3364
|
};
|
|
3365
|
+
increment_session_tokens: {
|
|
3366
|
+
Args: {
|
|
3367
|
+
p_input_tokens: number;
|
|
3368
|
+
p_output_tokens: number;
|
|
3369
|
+
p_session_id: string;
|
|
3370
|
+
};
|
|
3371
|
+
Returns: {
|
|
3372
|
+
context_window_size: number;
|
|
3373
|
+
cumulative_input_tokens: number;
|
|
3374
|
+
cumulative_output_tokens: number;
|
|
3375
|
+
}[];
|
|
3376
|
+
};
|
|
3343
3377
|
is_org_member: {
|
|
3344
3378
|
Args: {
|
|
3345
3379
|
org_id: string;
|
|
@@ -4216,6 +4250,14 @@ interface FormSchema {
|
|
|
4216
4250
|
* Memory types mirror action types for clarity and filtering
|
|
4217
4251
|
*/
|
|
4218
4252
|
type MemoryEntryType = 'context' | 'input' | 'reasoning' | 'tool-result' | 'delegation-result' | 'error';
|
|
4253
|
+
/**
|
|
4254
|
+
* Who authored an entry's content.
|
|
4255
|
+
*
|
|
4256
|
+
* This is what lets the assembled prompt tell framework-authored text apart from text that
|
|
4257
|
+
* originated outside the trust boundary. `'framework'` content is ours; the other three are not
|
|
4258
|
+
* and are rendered inside the JSON data envelope (see `MemoryManager.toContextParts`).
|
|
4259
|
+
*/
|
|
4260
|
+
type MemoryEntrySource = 'framework' | 'user' | 'tool' | 'model';
|
|
4219
4261
|
/**
|
|
4220
4262
|
* Memory entry - represents a single entry in agent memory
|
|
4221
4263
|
* Stored in agent memory, translated by adapters to vendor-specific formats
|
|
@@ -4226,6 +4268,16 @@ interface MemoryEntry {
|
|
|
4226
4268
|
timestamp: number;
|
|
4227
4269
|
turnNumber: number | null;
|
|
4228
4270
|
iterationNumber: number | null;
|
|
4271
|
+
/**
|
|
4272
|
+
* Provenance. **Optional on purpose** — `undefined` means unknown, which is what every
|
|
4273
|
+
* pre-existing snapshot and every not-yet-redeployed tenant bundle produces. Read sites MUST
|
|
4274
|
+
* test `== null`, never `=== undefined`: the `inTurnScope` predicate in `manager.ts` is the
|
|
4275
|
+
* cautionary precedent, where a `=== undefined` check silently dropped every `null`-stamped
|
|
4276
|
+
* entry. `isMemoryEntry` is deliberately NOT tightened to require this field; doing so would
|
|
4277
|
+
* make every stored snapshot fail validation, and `restoreSessionMemory` fails open by
|
|
4278
|
+
* starting the agent with empty memory rather than throwing.
|
|
4279
|
+
*/
|
|
4280
|
+
source?: MemoryEntrySource;
|
|
4229
4281
|
}
|
|
4230
4282
|
/**
|
|
4231
4283
|
* Agent memory - Self-orchestrated memory with session + working storage
|
|
@@ -10083,7 +10135,7 @@ declare function useExecutionLogsFilters(_timeRange: TimeRange): {
|
|
|
10083
10135
|
* so consumers can query for a specific organization independently.
|
|
10084
10136
|
*
|
|
10085
10137
|
* @param organizationId - The organization to fetch members for
|
|
10086
|
-
* @param params - Optional additional filters
|
|
10138
|
+
* @param params - Optional additional filters, forwarded to the API
|
|
10087
10139
|
* @returns TanStack Query result with MembershipWithDetails array
|
|
10088
10140
|
*
|
|
10089
10141
|
* @example
|
package/dist/hooks/index.js
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
24
|
-
import '../chunk-
|
|
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';
|
|
@@ -160,10 +160,24 @@ interface ListMembershipsResponse {
|
|
|
160
160
|
after?: string | null;
|
|
161
161
|
};
|
|
162
162
|
}
|
|
163
|
+
/**
|
|
164
|
+
* How a membership row relates to the two systems that describe it.
|
|
165
|
+
*
|
|
166
|
+
* - `linked` — an `org_memberships` row that carries a `workos_membership_id`
|
|
167
|
+
* - `pre_provisioned` — an `org_memberships` row with no `workos_membership_id`;
|
|
168
|
+
* the invitee was provisioned but has not completed signup
|
|
169
|
+
* - `workos_only` — a WorkOS membership with no `org_memberships` row (a sync gap)
|
|
170
|
+
*/
|
|
171
|
+
type MembershipProvisioningState = 'linked' | 'pre_provisioned' | 'workos_only';
|
|
163
172
|
/**
|
|
164
173
|
* Extended membership with user and organization details for UI
|
|
165
174
|
*/
|
|
166
175
|
interface MembershipWithDetails extends OrganizationMembership {
|
|
176
|
+
/**
|
|
177
|
+
* Set by `GET /memberships`. Optional so existing consumers are unaffected;
|
|
178
|
+
* treat `undefined` as "not reported by this endpoint".
|
|
179
|
+
*/
|
|
180
|
+
provisioningState?: MembershipProvisioningState;
|
|
167
181
|
user?: {
|
|
168
182
|
id: string;
|
|
169
183
|
email: string;
|
|
@@ -2927,6 +2941,7 @@ type Database = {
|
|
|
2927
2941
|
deleted_at: string | null;
|
|
2928
2942
|
ended_at: string | null;
|
|
2929
2943
|
memory_snapshot: Json;
|
|
2944
|
+
memory_version: number;
|
|
2930
2945
|
metadata: Json | null;
|
|
2931
2946
|
organization_id: string;
|
|
2932
2947
|
resource_id: string;
|
|
@@ -2943,6 +2958,7 @@ type Database = {
|
|
|
2943
2958
|
deleted_at?: string | null;
|
|
2944
2959
|
ended_at?: string | null;
|
|
2945
2960
|
memory_snapshot: Json;
|
|
2961
|
+
memory_version?: number;
|
|
2946
2962
|
metadata?: Json | null;
|
|
2947
2963
|
organization_id: string;
|
|
2948
2964
|
resource_id: string;
|
|
@@ -2959,6 +2975,7 @@ type Database = {
|
|
|
2959
2975
|
deleted_at?: string | null;
|
|
2960
2976
|
ended_at?: string | null;
|
|
2961
2977
|
memory_snapshot?: Json;
|
|
2978
|
+
memory_version?: number;
|
|
2962
2979
|
metadata?: Json | null;
|
|
2963
2980
|
organization_id?: string;
|
|
2964
2981
|
resource_id?: string;
|
|
@@ -3296,9 +3313,14 @@ type Database = {
|
|
|
3296
3313
|
p_session_id: string;
|
|
3297
3314
|
};
|
|
3298
3315
|
Returns: {
|
|
3316
|
+
context_window_size: number;
|
|
3299
3317
|
created_at: string;
|
|
3318
|
+
cumulative_input_tokens: number;
|
|
3319
|
+
cumulative_output_tokens: number;
|
|
3320
|
+
deleted_at: string;
|
|
3300
3321
|
ended_at: string;
|
|
3301
3322
|
memory_snapshot: Json;
|
|
3323
|
+
memory_version: number;
|
|
3302
3324
|
metadata: Json;
|
|
3303
3325
|
organization_id: string;
|
|
3304
3326
|
resource_id: string;
|
|
@@ -3340,6 +3362,18 @@ type Database = {
|
|
|
3340
3362
|
};
|
|
3341
3363
|
Returns: boolean;
|
|
3342
3364
|
};
|
|
3365
|
+
increment_session_tokens: {
|
|
3366
|
+
Args: {
|
|
3367
|
+
p_input_tokens: number;
|
|
3368
|
+
p_output_tokens: number;
|
|
3369
|
+
p_session_id: string;
|
|
3370
|
+
};
|
|
3371
|
+
Returns: {
|
|
3372
|
+
context_window_size: number;
|
|
3373
|
+
cumulative_input_tokens: number;
|
|
3374
|
+
cumulative_output_tokens: number;
|
|
3375
|
+
}[];
|
|
3376
|
+
};
|
|
3343
3377
|
is_org_member: {
|
|
3344
3378
|
Args: {
|
|
3345
3379
|
org_id: string;
|
|
@@ -4216,6 +4250,14 @@ interface FormSchema {
|
|
|
4216
4250
|
* Memory types mirror action types for clarity and filtering
|
|
4217
4251
|
*/
|
|
4218
4252
|
type MemoryEntryType = 'context' | 'input' | 'reasoning' | 'tool-result' | 'delegation-result' | 'error';
|
|
4253
|
+
/**
|
|
4254
|
+
* Who authored an entry's content.
|
|
4255
|
+
*
|
|
4256
|
+
* This is what lets the assembled prompt tell framework-authored text apart from text that
|
|
4257
|
+
* originated outside the trust boundary. `'framework'` content is ours; the other three are not
|
|
4258
|
+
* and are rendered inside the JSON data envelope (see `MemoryManager.toContextParts`).
|
|
4259
|
+
*/
|
|
4260
|
+
type MemoryEntrySource = 'framework' | 'user' | 'tool' | 'model';
|
|
4219
4261
|
/**
|
|
4220
4262
|
* Memory entry - represents a single entry in agent memory
|
|
4221
4263
|
* Stored in agent memory, translated by adapters to vendor-specific formats
|
|
@@ -4226,6 +4268,16 @@ interface MemoryEntry {
|
|
|
4226
4268
|
timestamp: number;
|
|
4227
4269
|
turnNumber: number | null;
|
|
4228
4270
|
iterationNumber: number | null;
|
|
4271
|
+
/**
|
|
4272
|
+
* Provenance. **Optional on purpose** — `undefined` means unknown, which is what every
|
|
4273
|
+
* pre-existing snapshot and every not-yet-redeployed tenant bundle produces. Read sites MUST
|
|
4274
|
+
* test `== null`, never `=== undefined`: the `inTurnScope` predicate in `manager.ts` is the
|
|
4275
|
+
* cautionary precedent, where a `=== undefined` check silently dropped every `null`-stamped
|
|
4276
|
+
* entry. `isMemoryEntry` is deliberately NOT tightened to require this field; doing so would
|
|
4277
|
+
* make every stored snapshot fail validation, and `restoreSessionMemory` fails open by
|
|
4278
|
+
* starting the agent with empty memory rather than throwing.
|
|
4279
|
+
*/
|
|
4280
|
+
source?: MemoryEntrySource;
|
|
4229
4281
|
}
|
|
4230
4282
|
/**
|
|
4231
4283
|
* Agent memory - Self-orchestrated memory with session + working storage
|
|
@@ -10083,7 +10135,7 @@ declare function useExecutionLogsFilters(_timeRange: TimeRange): {
|
|
|
10083
10135
|
* so consumers can query for a specific organization independently.
|
|
10084
10136
|
*
|
|
10085
10137
|
* @param organizationId - The organization to fetch members for
|
|
10086
|
-
* @param params - Optional additional filters
|
|
10138
|
+
* @param params - Optional additional filters, forwarded to the API
|
|
10087
10139
|
* @returns TanStack Query result with MembershipWithDetails array
|
|
10088
10140
|
*
|
|
10089
10141
|
* @example
|