@elevasis/ui 2.65.0 → 2.66.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/app/index.d.ts +6 -0
- package/dist/app/index.js +5 -5
- package/dist/auth/index.d.ts +12 -5
- package/dist/auth/index.js +5 -5
- package/dist/charts/index.js +5 -5
- package/dist/{chunk-ZTWA5H77.js → chunk-6ZAP3FOA.js} +0 -1
- package/dist/{chunk-3WVZRN37.js → chunk-ANNM5R7S.js} +235 -365
- package/dist/chunk-L7BZZ4SI.js +56 -0
- package/dist/chunk-P45GQ3ZW.js +104 -0
- package/dist/{chunk-EIXSQONC.js → chunk-RT4KRGZT.js} +37 -59
- package/dist/components/index.d.ts +240 -209
- package/dist/components/index.js +5 -5
- package/dist/components/navigation/index.js +5 -5
- package/dist/execution/index.d.ts +115 -104
- package/dist/features/auth/index.d.ts +39 -8
- package/dist/features/auth/index.js +14 -9
- package/dist/features/clients/index.js +5 -5
- package/dist/features/crm/index.js +5 -5
- package/dist/features/dashboard/index.js +5 -5
- 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/notes/index.js +2 -2
- package/dist/features/operations/index.d.ts +141 -105
- package/dist/features/operations/index.js +5 -5
- package/dist/features/settings/index.d.ts +1 -0
- package/dist/features/settings/index.js +5 -5
- package/dist/hooks/access/index.js +5 -5
- package/dist/hooks/delivery/index.js +5 -5
- package/dist/hooks/index.d.ts +284 -162
- package/dist/hooks/index.js +5 -5
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +0 -2
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.js +1 -1
- package/dist/hooks/published.d.ts +284 -162
- package/dist/hooks/published.js +5 -5
- package/dist/index.d.ts +374 -236
- package/dist/index.js +5 -5
- package/dist/initialization/index.d.ts +61 -28
- package/dist/initialization/index.js +3 -3
- package/dist/knowledge/index.js +9 -9
- package/dist/{knowledge-search-index-JOPRYZN6.js → knowledge-search-index-6EZNBNSR.js} +4 -4
- package/dist/layout/index.js +5 -5
- package/dist/organization/index.d.ts +49 -4
- package/dist/organization/index.js +5 -5
- package/dist/profile/index.d.ts +23 -2
- package/dist/profile/index.js +1 -1
- package/dist/provider/index.js +5 -5
- package/dist/provider/published.js +5 -5
- package/dist/types/index.d.ts +330 -271
- package/package.json +3 -3
- package/dist/chunk-LO7GWG24.js +0 -75
- package/dist/chunk-T4LA4RY2.js +0 -56
|
@@ -171,6 +171,20 @@ interface ListMembershipsResponse {
|
|
|
171
171
|
type MembershipProvisioningState = 'linked' | 'pre_provisioned' | 'workos_only';
|
|
172
172
|
/**
|
|
173
173
|
* Extended membership with user and organization details for UI
|
|
174
|
+
*
|
|
175
|
+
* **ID convention (step 17 of the auth/invitations architecture refactor):**
|
|
176
|
+
* `id`, `userId`, and `organizationId` are the canonical Supabase UUIDs
|
|
177
|
+
* (`org_memberships.id` / `users.id` / `organizations.id`) on every producer
|
|
178
|
+
* of this type. `workosMembershipId` / `workosUserId` /
|
|
179
|
+
* `organization.workos_org_id` carry the WorkOS-side forms explicitly instead
|
|
180
|
+
* -- the contract does not overload the canonical fields with either form.
|
|
181
|
+
*
|
|
182
|
+
* The one exception: a `workos_only` row (a WorkOS membership with no
|
|
183
|
+
* `org_memberships` row -- a sync gap) has no canonical membership UUID to
|
|
184
|
+
* report, because no such row exists. `id` stays the WorkOS `om_...` form for
|
|
185
|
+
* that `provisioningState` alone; `userId` / `organizationId` are still
|
|
186
|
+
* resolved to their Supabase forms where the user/organization themselves
|
|
187
|
+
* exist.
|
|
174
188
|
*/
|
|
175
189
|
interface MembershipWithDetails extends OrganizationMembership {
|
|
176
190
|
/**
|
|
@@ -178,6 +192,18 @@ interface MembershipWithDetails extends OrganizationMembership {
|
|
|
178
192
|
* treat `undefined` as "not reported by this endpoint".
|
|
179
193
|
*/
|
|
180
194
|
provisioningState?: MembershipProvisioningState;
|
|
195
|
+
/**
|
|
196
|
+
* WorkOS `om_...` form of `id`. `null` when the membership is
|
|
197
|
+
* pre-provisioned (invited, signup not completed -- no WorkOS record yet).
|
|
198
|
+
* Explicit companion to the canonical `id`; see the type-level doc comment.
|
|
199
|
+
*/
|
|
200
|
+
workosMembershipId?: string | null;
|
|
201
|
+
/**
|
|
202
|
+
* WorkOS `user_...` form of `userId`. `null` when the member has not
|
|
203
|
+
* completed WorkOS signup yet. Explicit companion to the canonical
|
|
204
|
+
* `userId`; see the type-level doc comment.
|
|
205
|
+
*/
|
|
206
|
+
workosUserId?: string | null;
|
|
181
207
|
user?: {
|
|
182
208
|
id: string;
|
|
183
209
|
email: string;
|
|
@@ -4087,107 +4113,87 @@ type ResourceCategory = z.infer<typeof ResourceCategorySchema>;
|
|
|
4087
4113
|
type ResourceLink = Link;
|
|
4088
4114
|
|
|
4089
4115
|
/**
|
|
4090
|
-
*
|
|
4116
|
+
* Memory type definitions
|
|
4117
|
+
* Types for agent memory management with semantic entry types
|
|
4118
|
+
*/
|
|
4119
|
+
/**
|
|
4120
|
+
* Semantic memory entry types
|
|
4121
|
+
* Use-case agnostic types that describe the purpose of each entry
|
|
4122
|
+
* Memory types mirror action types for clarity and filtering
|
|
4123
|
+
*/
|
|
4124
|
+
type MemoryEntryType = 'context' | 'input' | 'reasoning' | 'tool-result' | 'error';
|
|
4125
|
+
/**
|
|
4126
|
+
* Who authored an entry's content.
|
|
4091
4127
|
*
|
|
4092
|
-
*
|
|
4093
|
-
*
|
|
4128
|
+
* This is what lets the assembled prompt tell framework-authored text apart from text that
|
|
4129
|
+
* originated outside the trust boundary. `'framework'` content is ours; the other three are not
|
|
4130
|
+
* and are rendered inside the JSON data envelope (see `MemoryManager.toContextParts`).
|
|
4094
4131
|
*/
|
|
4095
|
-
|
|
4132
|
+
type MemoryEntrySource = 'framework' | 'user' | 'tool' | 'model';
|
|
4096
4133
|
/**
|
|
4097
|
-
*
|
|
4098
|
-
*
|
|
4134
|
+
* Memory entry - represents a single entry in agent memory
|
|
4135
|
+
* Stored in agent memory, translated by adapters to vendor-specific formats
|
|
4099
4136
|
*/
|
|
4100
|
-
interface
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
contract: {
|
|
4133
|
-
inputSchema: object;
|
|
4134
|
-
outputSchema?: object;
|
|
4135
|
-
};
|
|
4136
|
-
tools: Array<{
|
|
4137
|
-
name: string;
|
|
4138
|
-
description: string;
|
|
4139
|
-
inputSchema?: object;
|
|
4140
|
-
outputSchema?: object;
|
|
4141
|
-
}>;
|
|
4142
|
-
knowledgeMap?: {
|
|
4143
|
-
nodeCount: number;
|
|
4144
|
-
nodes: Array<{
|
|
4145
|
-
id: string;
|
|
4146
|
-
description: string;
|
|
4147
|
-
loaded: boolean;
|
|
4148
|
-
hasPrompt: boolean;
|
|
4149
|
-
}>;
|
|
4137
|
+
interface MemoryEntry {
|
|
4138
|
+
type: MemoryEntryType;
|
|
4139
|
+
content: string;
|
|
4140
|
+
timestamp: number;
|
|
4141
|
+
turnNumber: number | null;
|
|
4142
|
+
iterationNumber: number | null;
|
|
4143
|
+
/**
|
|
4144
|
+
* Provenance. **Optional on purpose** — `undefined` means unknown, which is what every
|
|
4145
|
+
* pre-existing snapshot and every not-yet-redeployed tenant bundle produces. Read sites MUST
|
|
4146
|
+
* test `== null`, never `=== undefined`: the `inTurnScope` predicate in `manager.ts` is the
|
|
4147
|
+
* cautionary precedent, where a `=== undefined` check silently dropped every `null`-stamped
|
|
4148
|
+
* entry. `isMemoryEntry` is deliberately NOT tightened to require this field; doing so would
|
|
4149
|
+
* make every stored snapshot fail validation, and `restoreSessionMemory` fails open by
|
|
4150
|
+
* starting the agent with empty memory rather than throwing.
|
|
4151
|
+
*/
|
|
4152
|
+
source?: MemoryEntrySource;
|
|
4153
|
+
/**
|
|
4154
|
+
* Which tool produced this entry. Set on `tool-result` entries so the model can tell N parallel
|
|
4155
|
+
* results apart -- the framework instructs batching independent tool calls in one iteration, and
|
|
4156
|
+
* an anonymous result is unattributable the moment two land in the same iteration. `addToolError`
|
|
4157
|
+
* already carries this (folded into its `content` JSON); this is the same fact for the success
|
|
4158
|
+
* path, carried as a real field instead of prose the caller has to parse back out.
|
|
4159
|
+
*/
|
|
4160
|
+
toolName?: string;
|
|
4161
|
+
/**
|
|
4162
|
+
* Present when `truncateContent` cut this entry's `content` to fit its token budget. A sibling
|
|
4163
|
+
* field, never text appended into `content` -- the notice used to be spliced into the string
|
|
4164
|
+
* itself, which could (and did) land inside a JSON string literal `truncateContent` had just cut
|
|
4165
|
+
* open, breaking `JSON.parse` on the far end. Absent means never truncated.
|
|
4166
|
+
*/
|
|
4167
|
+
truncated?: {
|
|
4168
|
+
omittedTokens: number;
|
|
4150
4169
|
};
|
|
4151
|
-
|
|
4170
|
+
/**
|
|
4171
|
+
* Prompt-injection warning types found in `content`, screened once here -- when the entry is
|
|
4172
|
+
* written -- instead of by re-scanning the whole accumulated envelope on every iteration it gets
|
|
4173
|
+
* re-sent for (`screenRequest`'s `data-envelope` slot used to do exactly that). Empty array means
|
|
4174
|
+
* screened and clean; `undefined` means never screened (entries that bypass `addToHistory`/`set`,
|
|
4175
|
+
* or pre-existing snapshots from before this field existed).
|
|
4176
|
+
*/
|
|
4177
|
+
warnings?: string[];
|
|
4152
4178
|
}
|
|
4153
4179
|
/**
|
|
4154
|
-
*
|
|
4155
|
-
*
|
|
4180
|
+
* Agent memory - Self-orchestrated memory with session + working storage
|
|
4181
|
+
* Agent has full control over what persists, framework handles auto-compaction
|
|
4156
4182
|
*/
|
|
4157
|
-
interface
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
steps: Array<{
|
|
4172
|
-
id: string;
|
|
4173
|
-
name: string;
|
|
4174
|
-
description: string;
|
|
4175
|
-
inputSchema?: object;
|
|
4176
|
-
outputSchema?: object;
|
|
4177
|
-
next: {
|
|
4178
|
-
type: 'linear' | 'conditional';
|
|
4179
|
-
target?: string;
|
|
4180
|
-
routes?: Array<{
|
|
4181
|
-
target: string;
|
|
4182
|
-
}>;
|
|
4183
|
-
default?: string;
|
|
4184
|
-
} | null;
|
|
4185
|
-
}>;
|
|
4186
|
-
contract: {
|
|
4187
|
-
inputSchema: object;
|
|
4188
|
-
outputSchema?: object;
|
|
4189
|
-
};
|
|
4190
|
-
metricsConfig?: object;
|
|
4183
|
+
interface AgentMemory {
|
|
4184
|
+
/**
|
|
4185
|
+
* Session memory - Persists for session/conversation duration
|
|
4186
|
+
* Never auto-trimmed by framework
|
|
4187
|
+
* Agent-managed key-value store for critical information
|
|
4188
|
+
* Agent provides strings, framework wraps in MemoryEntry
|
|
4189
|
+
*/
|
|
4190
|
+
sessionMemory: Record<string, MemoryEntry>;
|
|
4191
|
+
/**
|
|
4192
|
+
* Working memory - Execution history
|
|
4193
|
+
* Automatically compacted by framework when needed
|
|
4194
|
+
* Agent doesn't control compaction
|
|
4195
|
+
*/
|
|
4196
|
+
history: MemoryEntry[];
|
|
4191
4197
|
}
|
|
4192
4198
|
|
|
4193
4199
|
/**
|
|
@@ -4240,65 +4246,6 @@ interface FormSchema {
|
|
|
4240
4246
|
fields: FormField[];
|
|
4241
4247
|
}
|
|
4242
4248
|
|
|
4243
|
-
/**
|
|
4244
|
-
* Memory type definitions
|
|
4245
|
-
* Types for agent memory management with semantic entry types
|
|
4246
|
-
*/
|
|
4247
|
-
/**
|
|
4248
|
-
* Semantic memory entry types
|
|
4249
|
-
* Use-case agnostic types that describe the purpose of each entry
|
|
4250
|
-
* Memory types mirror action types for clarity and filtering
|
|
4251
|
-
*/
|
|
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';
|
|
4261
|
-
/**
|
|
4262
|
-
* Memory entry - represents a single entry in agent memory
|
|
4263
|
-
* Stored in agent memory, translated by adapters to vendor-specific formats
|
|
4264
|
-
*/
|
|
4265
|
-
interface MemoryEntry {
|
|
4266
|
-
type: MemoryEntryType;
|
|
4267
|
-
content: string;
|
|
4268
|
-
timestamp: number;
|
|
4269
|
-
turnNumber: number | null;
|
|
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;
|
|
4281
|
-
}
|
|
4282
|
-
/**
|
|
4283
|
-
* Agent memory - Self-orchestrated memory with session + working storage
|
|
4284
|
-
* Agent has full control over what persists, framework handles auto-compaction
|
|
4285
|
-
*/
|
|
4286
|
-
interface AgentMemory {
|
|
4287
|
-
/**
|
|
4288
|
-
* Session memory - Persists for session/conversation duration
|
|
4289
|
-
* Never auto-trimmed by framework
|
|
4290
|
-
* Agent-managed key-value store for critical information
|
|
4291
|
-
* Agent provides strings, framework wraps in MemoryEntry
|
|
4292
|
-
*/
|
|
4293
|
-
sessionMemory: Record<string, MemoryEntry>;
|
|
4294
|
-
/**
|
|
4295
|
-
* Working memory - Execution history
|
|
4296
|
-
* Automatically compacted by framework when needed
|
|
4297
|
-
* Agent doesn't control compaction
|
|
4298
|
-
*/
|
|
4299
|
-
history: MemoryEntry[];
|
|
4300
|
-
}
|
|
4301
|
-
|
|
4302
4249
|
declare const TransitionItemRequestSchema: z.ZodObject<{
|
|
4303
4250
|
pipelineKey: z.ZodString;
|
|
4304
4251
|
stageKey: z.ZodString;
|
|
@@ -5291,6 +5238,121 @@ interface CostByModelResponse {
|
|
|
5291
5238
|
totalCallCount: number;
|
|
5292
5239
|
}
|
|
5293
5240
|
|
|
5241
|
+
/**
|
|
5242
|
+
* Agent-specific type definitions
|
|
5243
|
+
* Types for autonomous agents with tools, memory, and constraints
|
|
5244
|
+
*/
|
|
5245
|
+
|
|
5246
|
+
type AgentKind = 'orchestrator' | 'specialist' | 'utility' | 'platform';
|
|
5247
|
+
|
|
5248
|
+
/**
|
|
5249
|
+
* Serialized Registry Types
|
|
5250
|
+
*
|
|
5251
|
+
* Pre-computed JSON-safe types for API responses and Command View.
|
|
5252
|
+
* Serialization happens once at API startup, enabling instant response times.
|
|
5253
|
+
*/
|
|
5254
|
+
|
|
5255
|
+
/**
|
|
5256
|
+
* Serialized agent definition (JSON-safe)
|
|
5257
|
+
* Result of serializeDefinition(AgentDefinition)
|
|
5258
|
+
*/
|
|
5259
|
+
interface SerializedAgentDefinition {
|
|
5260
|
+
config: {
|
|
5261
|
+
resourceId: string;
|
|
5262
|
+
name: string;
|
|
5263
|
+
description: string;
|
|
5264
|
+
version: string;
|
|
5265
|
+
type: 'agent';
|
|
5266
|
+
/**
|
|
5267
|
+
* Imported from the runtime type instead of hand-copied. It used to be a hand-written literal
|
|
5268
|
+
* union that said `'system'` where `AgentKind`'s fourth member is `'platform'` -- undetected
|
|
5269
|
+
* because `serializeDefinition` returns `any` and every call site casts the result to this
|
|
5270
|
+
* interface, so the literal union was never actually checked against real data. Deriving from
|
|
5271
|
+
* the source of truth makes that class of drift a type error instead of a silent typo.
|
|
5272
|
+
*/
|
|
5273
|
+
kind: AgentKind;
|
|
5274
|
+
status: 'dev' | 'prod';
|
|
5275
|
+
links?: ResourceLink[];
|
|
5276
|
+
category?: ResourceCategory;
|
|
5277
|
+
/** Whether this resource is archived and should be excluded from registration and deployment */
|
|
5278
|
+
archived?: boolean;
|
|
5279
|
+
systemPrompt: string;
|
|
5280
|
+
constraints?: {
|
|
5281
|
+
maxIterations?: number;
|
|
5282
|
+
timeout?: number;
|
|
5283
|
+
maxSessionMemoryKeys?: number;
|
|
5284
|
+
maxMemoryTokens?: number;
|
|
5285
|
+
};
|
|
5286
|
+
sessionCapable?: boolean;
|
|
5287
|
+
memoryPreferences?: string;
|
|
5288
|
+
};
|
|
5289
|
+
modelConfig: {
|
|
5290
|
+
provider: string;
|
|
5291
|
+
model: string;
|
|
5292
|
+
apiKey: string;
|
|
5293
|
+
/**
|
|
5294
|
+
* Optional here, matching `ModelConfig` -- this used to be required even though neither real
|
|
5295
|
+
* agent literal in the monorepo (`local-test-agent`, the `createPlatformToolAgent` test fixture)
|
|
5296
|
+
* sets it, and nothing caught the mismatch for the same `serializeDefinition`-returns-`any`
|
|
5297
|
+
* reason `kind` drifted above.
|
|
5298
|
+
*/
|
|
5299
|
+
temperature?: number;
|
|
5300
|
+
maxOutputTokens?: number;
|
|
5301
|
+
topP?: number;
|
|
5302
|
+
modelOptions?: Record<string, unknown>;
|
|
5303
|
+
};
|
|
5304
|
+
contract: {
|
|
5305
|
+
inputSchema: object;
|
|
5306
|
+
outputSchema?: object;
|
|
5307
|
+
};
|
|
5308
|
+
tools: Array<{
|
|
5309
|
+
name: string;
|
|
5310
|
+
description: string;
|
|
5311
|
+
inputSchema?: object;
|
|
5312
|
+
outputSchema?: object;
|
|
5313
|
+
}>;
|
|
5314
|
+
metricsConfig?: object;
|
|
5315
|
+
}
|
|
5316
|
+
/**
|
|
5317
|
+
* Serialized workflow definition (JSON-safe)
|
|
5318
|
+
* Result of serializeDefinition(WorkflowDefinition)
|
|
5319
|
+
*/
|
|
5320
|
+
interface SerializedWorkflowDefinition {
|
|
5321
|
+
config: {
|
|
5322
|
+
resourceId: string;
|
|
5323
|
+
name: string;
|
|
5324
|
+
description: string;
|
|
5325
|
+
version: string;
|
|
5326
|
+
type: 'workflow';
|
|
5327
|
+
status: 'dev' | 'prod';
|
|
5328
|
+
links?: ResourceLink[];
|
|
5329
|
+
category?: ResourceCategory;
|
|
5330
|
+
/** Whether this resource is archived and should be excluded from registration and deployment */
|
|
5331
|
+
archived?: boolean;
|
|
5332
|
+
};
|
|
5333
|
+
entryPoint: string;
|
|
5334
|
+
steps: Array<{
|
|
5335
|
+
id: string;
|
|
5336
|
+
name: string;
|
|
5337
|
+
description: string;
|
|
5338
|
+
inputSchema?: object;
|
|
5339
|
+
outputSchema?: object;
|
|
5340
|
+
next: {
|
|
5341
|
+
type: 'linear' | 'conditional';
|
|
5342
|
+
target?: string;
|
|
5343
|
+
routes?: Array<{
|
|
5344
|
+
target: string;
|
|
5345
|
+
}>;
|
|
5346
|
+
default?: string;
|
|
5347
|
+
} | null;
|
|
5348
|
+
}>;
|
|
5349
|
+
contract: {
|
|
5350
|
+
inputSchema: object;
|
|
5351
|
+
outputSchema?: object;
|
|
5352
|
+
};
|
|
5353
|
+
metricsConfig?: object;
|
|
5354
|
+
}
|
|
5355
|
+
|
|
5294
5356
|
/**
|
|
5295
5357
|
* Base Execution Engine type definitions
|
|
5296
5358
|
* Core types shared across all Execution Engine resources
|
|
@@ -5643,7 +5705,6 @@ interface CommandViewAgent extends ResourceDefinition {
|
|
|
5643
5705
|
modelProvider: string;
|
|
5644
5706
|
modelId: string;
|
|
5645
5707
|
toolCount: number;
|
|
5646
|
-
hasKnowledgeMap: boolean;
|
|
5647
5708
|
hasMemory: boolean;
|
|
5648
5709
|
sessionCapable: boolean;
|
|
5649
5710
|
}
|
|
@@ -9786,21 +9847,56 @@ declare function useUserMemberships(userId: string, params?: Omit<ListMembership
|
|
|
9786
9847
|
|
|
9787
9848
|
interface DeactivateMembershipMutationData {
|
|
9788
9849
|
membershipId: string;
|
|
9850
|
+
/**
|
|
9851
|
+
* Accepted and ignored. These were read by an optimistic-update path that was
|
|
9852
|
+
* removed after it was found never to have executed -- see the note on the
|
|
9853
|
+
* hook below. They are kept in the signature because this hook is published
|
|
9854
|
+
* as part of `@elevasis/ui`, and narrowing a parameter type is a breaking
|
|
9855
|
+
* change; they should be dropped in the next deliberate major alongside the
|
|
9856
|
+
* other batched removals.
|
|
9857
|
+
*/
|
|
9789
9858
|
userId?: string;
|
|
9790
9859
|
organizationId?: string;
|
|
9791
9860
|
}
|
|
9792
|
-
|
|
9793
|
-
|
|
9794
|
-
|
|
9861
|
+
/**
|
|
9862
|
+
* Deactivate an organization membership.
|
|
9863
|
+
*
|
|
9864
|
+
* NO OPTIMISTIC UPDATE, DELIBERATELY. This hook previously carried an
|
|
9865
|
+
* `onMutate` that patched two cache keys and an `onError` that rolled the patch
|
|
9866
|
+
* back. None of it ever ran: the only producer of a `memberships` key is
|
|
9867
|
+
* `useUserMemberships`, at `['memberships', 'user', userId, params]` -- four
|
|
9868
|
+
* elements -- while the patch wrote `['memberships', 'user', userId]` at three,
|
|
9869
|
+
* and `setQueryData` requires exact key equality. Its second branch targeted
|
|
9870
|
+
* `['memberships', 'organization', orgId]`, which no query produces at all. The
|
|
9871
|
+
* rollback snapshot was likewise always `undefined`.
|
|
9872
|
+
*
|
|
9873
|
+
* The list has therefore always refreshed via the invalidation below, and that
|
|
9874
|
+
* is now the only mechanism. Repairing the keys was considered and rejected: it
|
|
9875
|
+
* would switch on rollback logic that has never executed, on a surface where a
|
|
9876
|
+
* wrong patch shows an administrator a member as deactivated when the call
|
|
9877
|
+
* actually failed. If optimistic updates are wanted here, write them
|
|
9878
|
+
* deliberately with the rollback exercised by tests.
|
|
9879
|
+
*/
|
|
9880
|
+
declare function useDeactivateMembership(): _tanstack_react_query.UseMutationResult<MembershipWithDetails, Error, DeactivateMembershipMutationData, unknown>;
|
|
9795
9881
|
|
|
9796
9882
|
interface ReactivateMembershipMutationData {
|
|
9797
9883
|
membershipId: string;
|
|
9884
|
+
/**
|
|
9885
|
+
* Accepted and ignored -- see the note on `useDeactivateMembership`. Kept
|
|
9886
|
+
* because this hook is published as part of `@elevasis/ui` and narrowing a
|
|
9887
|
+
* parameter type is a breaking change; drop in the next deliberate major.
|
|
9888
|
+
*/
|
|
9798
9889
|
userId?: string;
|
|
9799
9890
|
organizationId?: string;
|
|
9800
9891
|
}
|
|
9801
|
-
|
|
9802
|
-
|
|
9803
|
-
|
|
9892
|
+
/**
|
|
9893
|
+
* Reactivate an organization membership.
|
|
9894
|
+
*
|
|
9895
|
+
* NO OPTIMISTIC UPDATE, DELIBERATELY -- the removed `onMutate`/rollback pair
|
|
9896
|
+
* never executed. The full diagnosis is on `useDeactivateMembership`, which
|
|
9897
|
+
* carried an identical copy of the same dead machinery.
|
|
9898
|
+
*/
|
|
9899
|
+
declare function useReactivateMembership(): _tanstack_react_query.UseMutationResult<MembershipWithDetails, Error, ReactivateMembershipMutationData, unknown>;
|
|
9804
9900
|
|
|
9805
9901
|
type OrgRolDefinitionRow = Database['public']['Tables']['org_rol_definitions']['Row'];
|
|
9806
9902
|
type OrgRole = OrgRolDefinitionRow & {
|
|
@@ -9823,7 +9919,18 @@ type RevokeRoleInput = {
|
|
|
9823
9919
|
roleId: string;
|
|
9824
9920
|
};
|
|
9825
9921
|
|
|
9826
|
-
|
|
9922
|
+
/**
|
|
9923
|
+
* Roles for an organization, keyed on the **Supabase organization UUID**.
|
|
9924
|
+
*
|
|
9925
|
+
* `GET /organizations/:orgId/roles` compares the route param against
|
|
9926
|
+
* `getOrganizationId(request)` for a non-platform-admin caller, and that is
|
|
9927
|
+
* always the Supabase UUID (`requireMatchingOrganization` in
|
|
9928
|
+
* `role-management/handlers.ts`) -- the WorkOS `org_...` form 403s there.
|
|
9929
|
+
* Defaults to the caller's currently selected organization (read via
|
|
9930
|
+
* `OrganizationContext` rather than the throwing `useOrganization()` hook,
|
|
9931
|
+
* so this still works in trees that only mount `ElevasisServiceProvider`).
|
|
9932
|
+
*/
|
|
9933
|
+
declare function useOrgRoles(orgId?: SupabaseOrgId): _tanstack_react_query.UseQueryResult<{
|
|
9827
9934
|
roles: OrgRole[];
|
|
9828
9935
|
}, Error>;
|
|
9829
9936
|
|
|
@@ -9831,19 +9938,34 @@ declare function usePermissionCatalog(): _tanstack_react_query.UseQueryResult<{
|
|
|
9831
9938
|
permissions: PermissionDescriptor[];
|
|
9832
9939
|
}, Error>;
|
|
9833
9940
|
|
|
9941
|
+
/**
|
|
9942
|
+
* Posts to `/organizations/:orgId/roles` using the **Supabase organization
|
|
9943
|
+
* UUID** -- see `useOrgRoles` for why the WorkOS form 403s here for a
|
|
9944
|
+
* non-platform-admin caller.
|
|
9945
|
+
*/
|
|
9834
9946
|
declare function useCreateOrgRole(): _tanstack_react_query.UseMutationResult<OrgRole, Error, CreateOrgRoleInput, unknown>;
|
|
9835
9947
|
|
|
9836
9948
|
interface UpdateOrgRoleParams {
|
|
9837
9949
|
roleId: string;
|
|
9838
9950
|
input: UpdateOrgRoleInput;
|
|
9839
9951
|
}
|
|
9952
|
+
/** Keyed on the Supabase organization UUID -- see `useOrgRoles`. */
|
|
9840
9953
|
declare function useUpdateOrgRole(): _tanstack_react_query.UseMutationResult<OrgRole, Error, UpdateOrgRoleParams, unknown>;
|
|
9841
9954
|
|
|
9955
|
+
/** Keyed on the Supabase organization UUID -- see `useOrgRoles`. */
|
|
9842
9956
|
declare function useDeleteOrgRole(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
|
|
9843
9957
|
|
|
9958
|
+
/**
|
|
9959
|
+
* Both mutations invalidate on the **Supabase organization UUID** -- the same
|
|
9960
|
+
* key space `useOrgRoles` and `useEffectivePermissions` read on. Previously
|
|
9961
|
+
* this invalidated `workOSOrganizationId`-keyed entries while `useOrgRoles`
|
|
9962
|
+
* callers such as `MemberAccessModal` read Supabase-UUID-keyed entries, so a
|
|
9963
|
+
* role change here never invalidated the cache the modal displayed.
|
|
9964
|
+
*/
|
|
9844
9965
|
declare function useAssignRole(): _tanstack_react_query.UseMutationResult<void, Error, AssignRoleInput, unknown>;
|
|
9845
9966
|
declare function useRevokeRole(): _tanstack_react_query.UseMutationResult<void, Error, RevokeRoleInput, unknown>;
|
|
9846
9967
|
|
|
9968
|
+
/** Keyed on the Supabase organization UUID -- see `useAssignRole`/`useRevokeRole`. */
|
|
9847
9969
|
declare function useEffectivePermissions(membershipId: string | undefined): _tanstack_react_query.UseQueryResult<{
|
|
9848
9970
|
permissions: string[];
|
|
9849
9971
|
}, Error>;
|
|
@@ -10134,7 +10256,7 @@ declare function useExecutionLogsFilters(_timeRange: TimeRange): {
|
|
|
10134
10256
|
* Note: `organizationId` is passed as a parameter (not read from context)
|
|
10135
10257
|
* so consumers can query for a specific organization independently.
|
|
10136
10258
|
*
|
|
10137
|
-
* @param organizationId - The organization to fetch members for
|
|
10259
|
+
* @param organizationId - The Supabase organization UUID to fetch members for
|
|
10138
10260
|
* @param params - Optional additional filters, forwarded to the API
|
|
10139
10261
|
* @returns TanStack Query result with MembershipWithDetails array
|
|
10140
10262
|
*
|
|
@@ -10143,7 +10265,7 @@ declare function useExecutionLogsFilters(_timeRange: TimeRange): {
|
|
|
10143
10265
|
* const { data: members, isLoading } = useOrganizationMembers(organizationId)
|
|
10144
10266
|
* ```
|
|
10145
10267
|
*/
|
|
10146
|
-
declare function useOrganizationMembers(organizationId:
|
|
10268
|
+
declare function useOrganizationMembers(organizationId: SupabaseOrgId, params?: Omit<ListMembershipsParams, 'organizationId'>): _tanstack_react_query.UseQueryResult<MembershipWithDetails[], Error>;
|
|
10147
10269
|
|
|
10148
10270
|
/**
|
|
10149
10271
|
* Subscribe to the org-scoped delivery SSE stream.
|
package/dist/hooks/published.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
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-ANNM5R7S.js';
|
|
2
2
|
import '../chunk-4OEVLV66.js';
|
|
3
3
|
import '../chunk-RBGVNPA6.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-6ZAP3FOA.js';
|
|
5
5
|
import '../chunk-AUDNF2Q7.js';
|
|
6
6
|
import '../chunk-6M6OLGQY.js';
|
|
7
7
|
import '../chunk-MKH2KOAO.js';
|
|
8
8
|
import '../chunk-XNW3O6QW.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-L7BZZ4SI.js';
|
|
10
10
|
import '../chunk-GMXGDO3I.js';
|
|
11
11
|
import '../chunk-62GVNH5U.js';
|
|
12
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-P45GQ3ZW.js';
|
|
13
13
|
import '../chunk-DD3CCMCZ.js';
|
|
14
14
|
export { mergeSessionMessages } from '../chunk-M7WWRZ5Z.js';
|
|
15
15
|
import '../chunk-JFBZ6XDW.js';
|
|
@@ -18,7 +18,7 @@ import '../chunk-Q7DJKLEN.js';
|
|
|
18
18
|
import '../chunk-HENXLGVD.js';
|
|
19
19
|
export { useMergedExecution } from '../chunk-BLXJEIQS.js';
|
|
20
20
|
import '../chunk-RNP5R5I3.js';
|
|
21
|
-
import '../chunk-
|
|
21
|
+
import '../chunk-RT4KRGZT.js';
|
|
22
22
|
import '../chunk-I7BZVVVU.js';
|
|
23
23
|
export { REFETCH_INTERVAL_RUNNING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY } from '../chunk-Y6I3IC45.js';
|
|
24
24
|
import '../chunk-6SSQGWK7.js';
|