@elevasis/ui 2.38.2 → 2.39.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/{CoreAuthKitInner-QC62UHTZ.js → CoreAuthKitInner-PSTKG4B3.js} +3 -1
- package/dist/api/index.js +4 -2
- package/dist/app/index.d.ts +12 -0
- package/dist/app/index.js +16 -13
- package/dist/auth/context.d.ts +7 -1
- package/dist/auth/index.d.ts +80 -74
- package/dist/auth/index.js +10 -7
- package/dist/charts/index.js +13 -10
- package/dist/{chunk-C6BDBZRO.js → chunk-23YQ2WH5.js} +2 -1
- package/dist/{chunk-KJ3QUBNU.js → chunk-2FTX4WO2.js} +2 -2
- package/dist/chunk-43ZU647H.js +612 -0
- package/dist/{chunk-4UCAUBOL.js → chunk-5GZVSTVH.js} +2 -2
- package/dist/{chunk-533DUEQY.js → chunk-6DO4PE3O.js} +1 -1
- package/dist/{chunk-AUB3T7OY.js → chunk-CXLDZSAQ.js} +5 -5
- package/dist/{chunk-Y3JQBSKQ.js → chunk-FAO7SWSL.js} +1 -1
- package/dist/{chunk-566XWGPP.js → chunk-GLBPGEDD.js} +53 -611
- package/dist/{chunk-P34FFSOX.js → chunk-HOAMD35V.js} +2 -1
- package/dist/{chunk-JXVNHVK7.js → chunk-K7E352VG.js} +1 -1
- package/dist/{chunk-BEVGBPHW.js → chunk-L2H5CIQF.js} +11 -10
- package/dist/chunk-MQZE7SUI.js +9 -0
- package/dist/{chunk-7GQFIWP4.js → chunk-O53S32QR.js} +3 -3
- package/dist/{chunk-OPKXEGE4.js → chunk-PVXM4O6V.js} +297 -182
- package/dist/{chunk-I53EX4VU.js → chunk-RG2S6NIU.js} +1 -1
- package/dist/{chunk-JBWJ6WHZ.js → chunk-SJHM4WDG.js} +1 -1
- package/dist/{chunk-M7Q4UBRY.js → chunk-SNDRAYMF.js} +1 -1
- package/dist/chunk-TVTSASST.js +28 -0
- package/dist/{chunk-2Q2JQSQO.js → chunk-W2SFTXMT.js} +1 -1
- package/dist/chunk-ZJ3FG7FE.js +801 -0
- package/dist/{chunk-YGUNUIME.js → chunk-ZRZYRDXX.js} +5 -4
- package/dist/components/index.d.ts +12 -0
- package/dist/components/index.js +19 -16
- package/dist/components/navigation/index.js +4 -3
- package/dist/features/auth/index.js +20 -17
- package/dist/features/clients/index.js +19 -16
- package/dist/features/crm/index.js +19 -16
- package/dist/features/dashboard/index.d.ts +12 -0
- package/dist/features/dashboard/index.js +19 -16
- package/dist/features/delivery/index.js +19 -16
- package/dist/features/knowledge/index.js +4 -3
- package/dist/features/lead-gen/index.d.ts +58 -12
- package/dist/features/lead-gen/index.js +19 -16
- package/dist/features/monitoring/index.js +19 -16
- package/dist/features/monitoring/requests/index.js +19 -16
- package/dist/features/notes/index.js +6 -4
- package/dist/features/operations/index.d.ts +12 -0
- package/dist/features/operations/index.js +19 -16
- package/dist/features/settings/index.js +19 -16
- package/dist/hooks/access/index.js +9 -6
- package/dist/hooks/delivery/index.js +19 -16
- package/dist/hooks/index.d.ts +260 -203
- package/dist/hooks/index.js +19 -16
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +12 -0
- package/dist/hooks/published.d.ts +260 -203
- package/dist/hooks/published.js +19 -16
- package/dist/hooks/user-notes/index.js +4 -2
- package/dist/index.d.ts +141 -84
- package/dist/index.js +19 -16
- package/dist/initialization/index.js +6 -4
- package/dist/knowledge/index.d.ts +12 -0
- package/dist/knowledge/index.js +5 -4
- package/dist/organization/index.d.ts +44 -10
- package/dist/organization/index.js +19 -16
- package/dist/profile/index.js +4 -2
- package/dist/provider/ElevasisServiceContext.d.ts +13 -4
- package/dist/provider/ElevasisServiceContext.js +3 -1
- package/dist/provider/index.d.ts +25 -4
- package/dist/provider/index.js +15 -12
- package/dist/provider/published.d.ts +25 -4
- package/dist/provider/published.js +14 -11
- package/dist/test-utils/index.d.ts +13 -4
- package/dist/test-utils/index.js +6 -3
- package/dist/types/index.d.ts +12 -0
- package/dist/utils/index.d.ts +12 -0
- package/dist/utils/index.js +3 -1
- package/package.json +3 -3
- package/dist/chunk-X66MVMZT.js +0 -373
package/dist/hooks/index.d.ts
CHANGED
|
@@ -5,6 +5,40 @@ import * as react from 'react';
|
|
|
5
5
|
import * as zustand_middleware from 'zustand/middleware';
|
|
6
6
|
import * as zustand from 'zustand';
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Branded organization identifiers.
|
|
10
|
+
*
|
|
11
|
+
* Every organization carries TWO distinct ID values that are both plain
|
|
12
|
+
* strings at runtime but mean different things:
|
|
13
|
+
*
|
|
14
|
+
* - WorkOS organization id (`org_...`) -- the auth/JWT identity. Used for API
|
|
15
|
+
* requests, SSE headers, and org-scoped query keys.
|
|
16
|
+
* - Supabase organization id (UUID) -- the database key. Used for
|
|
17
|
+
* `.eq('organization_id', ...)` queries and RLS scoping.
|
|
18
|
+
*
|
|
19
|
+
* They are not interchangeable, yet both are `string` -- so a swap compiles
|
|
20
|
+
* cleanly and fails silently (zero rows on the Supabase side, cross-pollinated
|
|
21
|
+
* cache keys on the API side). These brands make the two non-assignable to one
|
|
22
|
+
* another, turning that silent footgun into a compile error at the sink.
|
|
23
|
+
*
|
|
24
|
+
* Mint a brand only through the `as*` factories below: they are the single
|
|
25
|
+
* validate-and-tag boundary (compile-time brand + runtime format check). The
|
|
26
|
+
* type predicates double as the cast, so no raw `as` cast is needed anywhere.
|
|
27
|
+
*
|
|
28
|
+
* Lives on the published `@repo/core` / `@repo/core/auth` surface so the UI,
|
|
29
|
+
* the API, and the dogfooding `@repo/elevasis-*` packages can all use it.
|
|
30
|
+
*/
|
|
31
|
+
declare const supabaseOrgIdBrand: unique symbol;
|
|
32
|
+
declare const workOsOrgIdBrand: unique symbol;
|
|
33
|
+
/** A Supabase organization id (UUID) -- the database key for RLS-scoped rows. */
|
|
34
|
+
type SupabaseOrgId = string & {
|
|
35
|
+
readonly [supabaseOrgIdBrand]: true;
|
|
36
|
+
};
|
|
37
|
+
/** A WorkOS organization id (`org_...`) -- the auth identity for API/SSE/query keys. */
|
|
38
|
+
type WorkOsOrgId = string & {
|
|
39
|
+
readonly [workOsOrgIdBrand]: true;
|
|
40
|
+
};
|
|
41
|
+
|
|
8
42
|
/**
|
|
9
43
|
* Canonical permission catalog.
|
|
10
44
|
*
|
|
@@ -3413,6 +3447,17 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
3413
3447
|
}, z.core.$strip>>;
|
|
3414
3448
|
type OntologyScope = z.infer<typeof OntologyScopeSchema>;
|
|
3415
3449
|
|
|
3450
|
+
declare const SystemApiInterfaceSchema: z.ZodObject<{
|
|
3451
|
+
lifecycle: z.ZodDefault<z.ZodEnum<{
|
|
3452
|
+
active: "active";
|
|
3453
|
+
deprecated: "deprecated";
|
|
3454
|
+
draft: "draft";
|
|
3455
|
+
archived: "archived";
|
|
3456
|
+
disabled: "disabled";
|
|
3457
|
+
}>>;
|
|
3458
|
+
readinessProfile: z.ZodOptional<z.ZodString>;
|
|
3459
|
+
resourceIds: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
3460
|
+
}, z.core.$strict>;
|
|
3416
3461
|
type JsonPrimitive = string | number | boolean | null;
|
|
3417
3462
|
type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
3418
3463
|
[key: string]: JsonValue;
|
|
@@ -3441,6 +3486,7 @@ interface SystemEntry {
|
|
|
3441
3486
|
}[];
|
|
3442
3487
|
policies?: string[];
|
|
3443
3488
|
drivesGoals?: string[];
|
|
3489
|
+
apiInterface?: z.infer<typeof SystemApiInterfaceSchema>;
|
|
3444
3490
|
/** @deprecated Use lifecycle. Accepted for one publish cycle. */
|
|
3445
3491
|
status?: 'active' | 'deprecated' | 'archived';
|
|
3446
3492
|
path?: string;
|
|
@@ -5599,19 +5645,6 @@ interface UseAccessResult extends AccessAnswer {
|
|
|
5599
5645
|
*/
|
|
5600
5646
|
declare function useAccess(key: AccessKeyInput): UseAccessResult;
|
|
5601
5647
|
|
|
5602
|
-
/**
|
|
5603
|
-
* Query key factory for executions TanStack Query hooks.
|
|
5604
|
-
* Uses organization UUID (not name) for cache isolation.
|
|
5605
|
-
*/
|
|
5606
|
-
declare const executionsKeys: {
|
|
5607
|
-
all: readonly ["executions"];
|
|
5608
|
-
resources: (orgId: string | null) => readonly ["executions", "resources", string | null];
|
|
5609
|
-
resourceDefinition: (orgId: string | null, resourceId: string) => readonly ["executions", "definition", string | null, string];
|
|
5610
|
-
executionsListBase: (orgId: string | null, resourceId: string) => readonly ["executions", "list", string | null, string];
|
|
5611
|
-
executions: (orgId: string | null, resourceId: string, resourceStatus?: string, limit?: number, offset?: number) => readonly ["executions", "list", string | null, string, string, number | null, number];
|
|
5612
|
-
execution: (orgId: string | null, resourceId: string, executionId: string) => readonly ["executions", "execution", string | null, string, string];
|
|
5613
|
-
};
|
|
5614
|
-
|
|
5615
5648
|
type ExecutionStatus = 'pending' | 'running' | 'completed' | 'failed' | 'warning';
|
|
5616
5649
|
/**
|
|
5617
5650
|
* Event sent when new execution starts
|
|
@@ -5691,128 +5724,6 @@ interface APIExecutionListResponse {
|
|
|
5691
5724
|
hasMore?: boolean;
|
|
5692
5725
|
}
|
|
5693
5726
|
|
|
5694
|
-
/**
|
|
5695
|
-
* Execution history item.
|
|
5696
|
-
* Represents a single execution triggered by a schedule.
|
|
5697
|
-
*/
|
|
5698
|
-
declare const ExecutionHistoryItemSchema: z.ZodObject<{
|
|
5699
|
-
id: z.ZodString;
|
|
5700
|
-
createdAt: z.ZodString;
|
|
5701
|
-
status: z.ZodEnum<{
|
|
5702
|
-
completed: "completed";
|
|
5703
|
-
failed: "failed";
|
|
5704
|
-
running: "running";
|
|
5705
|
-
cancelled: "cancelled";
|
|
5706
|
-
}>;
|
|
5707
|
-
step: z.ZodNullable<z.ZodNumber>;
|
|
5708
|
-
itemLabel: z.ZodNullable<z.ZodString>;
|
|
5709
|
-
duration: z.ZodNullable<z.ZodNumber>;
|
|
5710
|
-
error: z.ZodNullable<z.ZodString>;
|
|
5711
|
-
}, z.core.$strip>;
|
|
5712
|
-
/**
|
|
5713
|
-
* Execution history response.
|
|
5714
|
-
* Returned by GET /schedules/:id/executions with pagination.
|
|
5715
|
-
*/
|
|
5716
|
-
declare const ExecutionHistoryResponseSchema: z.ZodObject<{
|
|
5717
|
-
executions: z.ZodArray<z.ZodObject<{
|
|
5718
|
-
id: z.ZodString;
|
|
5719
|
-
createdAt: z.ZodString;
|
|
5720
|
-
status: z.ZodEnum<{
|
|
5721
|
-
completed: "completed";
|
|
5722
|
-
failed: "failed";
|
|
5723
|
-
running: "running";
|
|
5724
|
-
cancelled: "cancelled";
|
|
5725
|
-
}>;
|
|
5726
|
-
step: z.ZodNullable<z.ZodNumber>;
|
|
5727
|
-
itemLabel: z.ZodNullable<z.ZodString>;
|
|
5728
|
-
duration: z.ZodNullable<z.ZodNumber>;
|
|
5729
|
-
error: z.ZodNullable<z.ZodString>;
|
|
5730
|
-
}, z.core.$strip>>;
|
|
5731
|
-
total: z.ZodNumber;
|
|
5732
|
-
limit: z.ZodNumber;
|
|
5733
|
-
offset: z.ZodNumber;
|
|
5734
|
-
}, z.core.$strip>;
|
|
5735
|
-
type ExecutionHistoryItem = z.infer<typeof ExecutionHistoryItemSchema>;
|
|
5736
|
-
type ExecutionHistoryResponse = z.infer<typeof ExecutionHistoryResponseSchema>;
|
|
5737
|
-
|
|
5738
|
-
/**
|
|
5739
|
-
* Fetch the execution list for a given resource.
|
|
5740
|
-
*
|
|
5741
|
-
* @example
|
|
5742
|
-
* const { data, isLoading } = useExecutions(resourceId)
|
|
5743
|
-
*
|
|
5744
|
-
* @example
|
|
5745
|
-
* // With status filter and limit
|
|
5746
|
-
* const { data } = useExecutions(resourceId, 'running', 20)
|
|
5747
|
-
*/
|
|
5748
|
-
declare function useExecutions(resourceId: string, resourceStatus?: ResourceStatus | 'all', limit?: number, offset?: number): _tanstack_react_query.UseQueryResult<APIExecutionListResponse, Error>;
|
|
5749
|
-
|
|
5750
|
-
interface UseInFlightExecutionsOptions {
|
|
5751
|
-
enabled?: boolean;
|
|
5752
|
-
refetchInterval?: number | false;
|
|
5753
|
-
limit?: number;
|
|
5754
|
-
offset?: number;
|
|
5755
|
-
listId?: string;
|
|
5756
|
-
}
|
|
5757
|
-
declare function useInFlightExecutions(resourceId: string, options?: UseInFlightExecutionsOptions): _tanstack_react_query.UseQueryResult<APIExecutionListResponse, Error>;
|
|
5758
|
-
|
|
5759
|
-
/**
|
|
5760
|
-
* Fetch a single execution detail.
|
|
5761
|
-
* Automatically polls every 2 seconds while the execution status is 'running'.
|
|
5762
|
-
*
|
|
5763
|
-
* @example
|
|
5764
|
-
* const { data: execution, isLoading } = useExecution(resourceId, executionId)
|
|
5765
|
-
*/
|
|
5766
|
-
declare function useExecution(resourceId: string, executionId: string): _tanstack_react_query.UseQueryResult<APIExecutionDetail, Error>;
|
|
5767
|
-
|
|
5768
|
-
interface ExecuteAsyncParams {
|
|
5769
|
-
resourceId: string;
|
|
5770
|
-
resourceType: ResourceType;
|
|
5771
|
-
input: unknown;
|
|
5772
|
-
listId?: string;
|
|
5773
|
-
}
|
|
5774
|
-
interface ExecuteAsyncResult {
|
|
5775
|
-
executionId: string;
|
|
5776
|
-
status: string;
|
|
5777
|
-
resourceId: string;
|
|
5778
|
-
}
|
|
5779
|
-
/**
|
|
5780
|
-
* Trigger an async execution for a workflow or agent.
|
|
5781
|
-
* Invalidates the executions list on success so the new execution appears immediately.
|
|
5782
|
-
*
|
|
5783
|
-
* @example
|
|
5784
|
-
* const { mutate: execute, isPending } = useExecuteAsync()
|
|
5785
|
-
* execute({ resourceId, resourceType: 'workflow', input: { ... } })
|
|
5786
|
-
*/
|
|
5787
|
-
declare function useExecuteAsync(): _tanstack_react_query.UseMutationResult<ExecuteAsyncResult, Error, ExecuteAsyncParams, unknown>;
|
|
5788
|
-
|
|
5789
|
-
interface UseWorkflowExecutionOptions {
|
|
5790
|
-
workflowId: string;
|
|
5791
|
-
listId?: string;
|
|
5792
|
-
}
|
|
5793
|
-
interface WorkflowExecutionTriggerParams {
|
|
5794
|
-
input: unknown;
|
|
5795
|
-
}
|
|
5796
|
-
interface UseWorkflowExecutionResult {
|
|
5797
|
-
execute: (params: WorkflowExecutionTriggerParams) => Promise<ExecuteAsyncResult>;
|
|
5798
|
-
executionId: string | null;
|
|
5799
|
-
status: string | null;
|
|
5800
|
-
isIdle: boolean;
|
|
5801
|
-
isPending: boolean;
|
|
5802
|
-
isSuccess: boolean;
|
|
5803
|
-
isError: boolean;
|
|
5804
|
-
error: Error | null;
|
|
5805
|
-
data: ExecuteAsyncResult | undefined;
|
|
5806
|
-
reset: () => void;
|
|
5807
|
-
}
|
|
5808
|
-
/**
|
|
5809
|
-
* List-builder-friendly wrapper around async workflow execution.
|
|
5810
|
-
*
|
|
5811
|
-
* Binds a workflow ID once, exposes a small trigger API, and refreshes both
|
|
5812
|
-
* platform execution lists and list execution history when a list ID is known.
|
|
5813
|
-
*/
|
|
5814
|
-
declare function useWorkflowExecution({ workflowId, listId }: UseWorkflowExecutionOptions): UseWorkflowExecutionResult;
|
|
5815
|
-
|
|
5816
5727
|
/**
|
|
5817
5728
|
* @deprecated Use TimeRange from '@elevasis/core' directly. Kept as alias for backward compatibility.
|
|
5818
5729
|
*/
|
|
@@ -5890,6 +5801,50 @@ interface Activity {
|
|
|
5890
5801
|
createdAt: Date;
|
|
5891
5802
|
}
|
|
5892
5803
|
|
|
5804
|
+
/**
|
|
5805
|
+
* Execution history item.
|
|
5806
|
+
* Represents a single execution triggered by a schedule.
|
|
5807
|
+
*/
|
|
5808
|
+
declare const ExecutionHistoryItemSchema: z.ZodObject<{
|
|
5809
|
+
id: z.ZodString;
|
|
5810
|
+
createdAt: z.ZodString;
|
|
5811
|
+
status: z.ZodEnum<{
|
|
5812
|
+
completed: "completed";
|
|
5813
|
+
failed: "failed";
|
|
5814
|
+
running: "running";
|
|
5815
|
+
cancelled: "cancelled";
|
|
5816
|
+
}>;
|
|
5817
|
+
step: z.ZodNullable<z.ZodNumber>;
|
|
5818
|
+
itemLabel: z.ZodNullable<z.ZodString>;
|
|
5819
|
+
duration: z.ZodNullable<z.ZodNumber>;
|
|
5820
|
+
error: z.ZodNullable<z.ZodString>;
|
|
5821
|
+
}, z.core.$strip>;
|
|
5822
|
+
/**
|
|
5823
|
+
* Execution history response.
|
|
5824
|
+
* Returned by GET /schedules/:id/executions with pagination.
|
|
5825
|
+
*/
|
|
5826
|
+
declare const ExecutionHistoryResponseSchema: z.ZodObject<{
|
|
5827
|
+
executions: z.ZodArray<z.ZodObject<{
|
|
5828
|
+
id: z.ZodString;
|
|
5829
|
+
createdAt: z.ZodString;
|
|
5830
|
+
status: z.ZodEnum<{
|
|
5831
|
+
completed: "completed";
|
|
5832
|
+
failed: "failed";
|
|
5833
|
+
running: "running";
|
|
5834
|
+
cancelled: "cancelled";
|
|
5835
|
+
}>;
|
|
5836
|
+
step: z.ZodNullable<z.ZodNumber>;
|
|
5837
|
+
itemLabel: z.ZodNullable<z.ZodString>;
|
|
5838
|
+
duration: z.ZodNullable<z.ZodNumber>;
|
|
5839
|
+
error: z.ZodNullable<z.ZodString>;
|
|
5840
|
+
}, z.core.$strip>>;
|
|
5841
|
+
total: z.ZodNumber;
|
|
5842
|
+
limit: z.ZodNumber;
|
|
5843
|
+
offset: z.ZodNumber;
|
|
5844
|
+
}, z.core.$strip>;
|
|
5845
|
+
type ExecutionHistoryItem = z.infer<typeof ExecutionHistoryItemSchema>;
|
|
5846
|
+
type ExecutionHistoryResponse = z.infer<typeof ExecutionHistoryResponseSchema>;
|
|
5847
|
+
|
|
5893
5848
|
/**
|
|
5894
5849
|
* Deployment types — browser-safe
|
|
5895
5850
|
*
|
|
@@ -6051,6 +6006,97 @@ declare const ListCredentialsResponseSchema: z.ZodObject<{
|
|
|
6051
6006
|
/** API response type for a single credential list item */
|
|
6052
6007
|
type CredentialListItem = z.infer<typeof ListCredentialsResponseSchema>['credentials'][number];
|
|
6053
6008
|
|
|
6009
|
+
/**
|
|
6010
|
+
* Query key factory for executions TanStack Query hooks.
|
|
6011
|
+
* Uses organization UUID (not name) for cache isolation.
|
|
6012
|
+
*/
|
|
6013
|
+
declare const executionsKeys: {
|
|
6014
|
+
all: readonly ["executions"];
|
|
6015
|
+
resources: (orgId: WorkOsOrgId | null) => readonly ["executions", "resources", WorkOsOrgId | null];
|
|
6016
|
+
resourceDefinition: (orgId: WorkOsOrgId | null, resourceId: string) => readonly ["executions", "definition", WorkOsOrgId | null, string];
|
|
6017
|
+
executionsListBase: (orgId: WorkOsOrgId | null, resourceId: string) => readonly ["executions", "list", WorkOsOrgId | null, string];
|
|
6018
|
+
executions: (orgId: WorkOsOrgId | null, resourceId: string, resourceStatus?: string, limit?: number, offset?: number) => readonly ["executions", "list", WorkOsOrgId | null, string, string, number | null, number];
|
|
6019
|
+
execution: (orgId: WorkOsOrgId | null, resourceId: string, executionId: string) => readonly ["executions", "execution", WorkOsOrgId | null, string, string];
|
|
6020
|
+
};
|
|
6021
|
+
|
|
6022
|
+
/**
|
|
6023
|
+
* Fetch the execution list for a given resource.
|
|
6024
|
+
*
|
|
6025
|
+
* @example
|
|
6026
|
+
* const { data, isLoading } = useExecutions(resourceId)
|
|
6027
|
+
*
|
|
6028
|
+
* @example
|
|
6029
|
+
* // With status filter and limit
|
|
6030
|
+
* const { data } = useExecutions(resourceId, 'running', 20)
|
|
6031
|
+
*/
|
|
6032
|
+
declare function useExecutions(resourceId: string, resourceStatus?: ResourceStatus | 'all', limit?: number, offset?: number): _tanstack_react_query.UseQueryResult<APIExecutionListResponse, Error>;
|
|
6033
|
+
|
|
6034
|
+
interface UseInFlightExecutionsOptions {
|
|
6035
|
+
enabled?: boolean;
|
|
6036
|
+
refetchInterval?: number | false;
|
|
6037
|
+
limit?: number;
|
|
6038
|
+
offset?: number;
|
|
6039
|
+
listId?: string;
|
|
6040
|
+
}
|
|
6041
|
+
declare function useInFlightExecutions(resourceId: string, options?: UseInFlightExecutionsOptions): _tanstack_react_query.UseQueryResult<APIExecutionListResponse, Error>;
|
|
6042
|
+
|
|
6043
|
+
/**
|
|
6044
|
+
* Fetch a single execution detail.
|
|
6045
|
+
* Automatically polls every 2 seconds while the execution status is 'running'.
|
|
6046
|
+
*
|
|
6047
|
+
* @example
|
|
6048
|
+
* const { data: execution, isLoading } = useExecution(resourceId, executionId)
|
|
6049
|
+
*/
|
|
6050
|
+
declare function useExecution(resourceId: string, executionId: string): _tanstack_react_query.UseQueryResult<APIExecutionDetail, Error>;
|
|
6051
|
+
|
|
6052
|
+
interface ExecuteAsyncParams {
|
|
6053
|
+
resourceId: string;
|
|
6054
|
+
resourceType: ResourceType;
|
|
6055
|
+
input: unknown;
|
|
6056
|
+
listId?: string;
|
|
6057
|
+
}
|
|
6058
|
+
interface ExecuteAsyncResult {
|
|
6059
|
+
executionId: string;
|
|
6060
|
+
status: string;
|
|
6061
|
+
resourceId: string;
|
|
6062
|
+
}
|
|
6063
|
+
/**
|
|
6064
|
+
* Trigger an async execution for a workflow or agent.
|
|
6065
|
+
* Invalidates the executions list on success so the new execution appears immediately.
|
|
6066
|
+
*
|
|
6067
|
+
* @example
|
|
6068
|
+
* const { mutate: execute, isPending } = useExecuteAsync()
|
|
6069
|
+
* execute({ resourceId, resourceType: 'workflow', input: { ... } })
|
|
6070
|
+
*/
|
|
6071
|
+
declare function useExecuteAsync(): _tanstack_react_query.UseMutationResult<ExecuteAsyncResult, Error, ExecuteAsyncParams, unknown>;
|
|
6072
|
+
|
|
6073
|
+
interface UseWorkflowExecutionOptions {
|
|
6074
|
+
workflowId: string;
|
|
6075
|
+
listId?: string;
|
|
6076
|
+
}
|
|
6077
|
+
interface WorkflowExecutionTriggerParams {
|
|
6078
|
+
input: unknown;
|
|
6079
|
+
}
|
|
6080
|
+
interface UseWorkflowExecutionResult {
|
|
6081
|
+
execute: (params: WorkflowExecutionTriggerParams) => Promise<ExecuteAsyncResult>;
|
|
6082
|
+
executionId: string | null;
|
|
6083
|
+
status: string | null;
|
|
6084
|
+
isIdle: boolean;
|
|
6085
|
+
isPending: boolean;
|
|
6086
|
+
isSuccess: boolean;
|
|
6087
|
+
isError: boolean;
|
|
6088
|
+
error: Error | null;
|
|
6089
|
+
data: ExecuteAsyncResult | undefined;
|
|
6090
|
+
reset: () => void;
|
|
6091
|
+
}
|
|
6092
|
+
/**
|
|
6093
|
+
* List-builder-friendly wrapper around async workflow execution.
|
|
6094
|
+
*
|
|
6095
|
+
* Binds a workflow ID once, exposes a small trigger API, and refreshes both
|
|
6096
|
+
* platform execution lists and list execution history when a list ID is known.
|
|
6097
|
+
*/
|
|
6098
|
+
declare function useWorkflowExecution({ workflowId, listId }: UseWorkflowExecutionOptions): UseWorkflowExecutionResult;
|
|
6099
|
+
|
|
6054
6100
|
interface FetchEventSourceWithTokenRefreshOptions {
|
|
6055
6101
|
url: string;
|
|
6056
6102
|
getToken: () => Promise<string | undefined>;
|
|
@@ -6270,12 +6316,12 @@ declare function useScheduledTasks(options?: UseScheduledTasksOptions): _tanstac
|
|
|
6270
6316
|
* Uses organizationId (UUID) for tenant-scoped cache isolation.
|
|
6271
6317
|
*/
|
|
6272
6318
|
declare const scheduleKeys: {
|
|
6273
|
-
all: (orgId:
|
|
6274
|
-
lists: (orgId:
|
|
6275
|
-
list: (orgId:
|
|
6276
|
-
details: (orgId:
|
|
6277
|
-
detail: (orgId:
|
|
6278
|
-
executions: (orgId:
|
|
6319
|
+
all: (orgId: WorkOsOrgId | null) => readonly ["schedules", WorkOsOrgId | null];
|
|
6320
|
+
lists: (orgId: WorkOsOrgId | null) => readonly ["schedules", WorkOsOrgId | null, "list"];
|
|
6321
|
+
list: (orgId: WorkOsOrgId | null, filters?: ListSchedulesFilters) => readonly ["schedules", WorkOsOrgId | null, "list", ListSchedulesFilters | undefined];
|
|
6322
|
+
details: (orgId: WorkOsOrgId | null) => readonly ["schedules", WorkOsOrgId | null, "detail"];
|
|
6323
|
+
detail: (orgId: WorkOsOrgId | null, id: string) => readonly ["schedules", WorkOsOrgId | null, "detail", string];
|
|
6324
|
+
executions: (orgId: WorkOsOrgId | null, id: string) => readonly ["schedules", WorkOsOrgId | null, "detail", string, "executions"];
|
|
6279
6325
|
};
|
|
6280
6326
|
/**
|
|
6281
6327
|
* Filters for list schedules query.
|
|
@@ -6490,7 +6536,7 @@ declare function useDeleteSchedule(): _tanstack_react_query.UseMutationResult<vo
|
|
|
6490
6536
|
* @param organizationId - Supabase UUID for the current org (used as RLS filter)
|
|
6491
6537
|
* @param enabled - Whether to open the subscription (route-gating)
|
|
6492
6538
|
*/
|
|
6493
|
-
declare function useActivitiesRealtime(organizationId:
|
|
6539
|
+
declare function useActivitiesRealtime(organizationId: SupabaseOrgId | null, enabled: boolean): void;
|
|
6494
6540
|
|
|
6495
6541
|
declare const projectActivityKeys: {
|
|
6496
6542
|
all: readonly ["project-activities"];
|
|
@@ -6663,21 +6709,21 @@ declare function useNotificationCount(args: UseNotificationCountArgs): {
|
|
|
6663
6709
|
*/
|
|
6664
6710
|
declare const observabilityKeys: {
|
|
6665
6711
|
all: readonly ["observability"];
|
|
6666
|
-
errorAnalysis: (organizationId:
|
|
6667
|
-
errorDetails: (organizationId:
|
|
6668
|
-
errorDetail: (organizationId:
|
|
6669
|
-
errorTrends: (organizationId:
|
|
6670
|
-
errorDistribution: (organizationId:
|
|
6671
|
-
topFailingResources: (organizationId:
|
|
6672
|
-
costTrends: (organizationId:
|
|
6673
|
-
costByModel: (organizationId:
|
|
6674
|
-
costBreakdown: (organizationId:
|
|
6675
|
-
dashboardMetrics: (organizationId:
|
|
6676
|
-
businessImpact: (organizationId:
|
|
6677
|
-
resourcesHealth: (organizationId:
|
|
6678
|
-
systemHealth: (organizationId:
|
|
6679
|
-
unresolvedErrors: (organizationId:
|
|
6680
|
-
recentExecutionsByResource: (organizationId:
|
|
6712
|
+
errorAnalysis: (organizationId: WorkOsOrgId | null, timeRange: string) => readonly ["observability", "error-analysis", WorkOsOrgId | null, string];
|
|
6713
|
+
errorDetails: (organizationId: WorkOsOrgId | null, filters: object) => readonly ["observability", "error-details", WorkOsOrgId | null, object];
|
|
6714
|
+
errorDetail: (organizationId: WorkOsOrgId | null, executionId: string | null) => readonly ["observability", "error-detail", WorkOsOrgId | null, string | null];
|
|
6715
|
+
errorTrends: (organizationId: WorkOsOrgId | null, startDate: string, endDate: string, granularity: string) => readonly ["observability", "error-trends", WorkOsOrgId | null, string, string, string];
|
|
6716
|
+
errorDistribution: (organizationId: WorkOsOrgId | null, startDate: string, endDate: string, groupBy: string) => readonly ["observability", "error-distribution", WorkOsOrgId | null, string, string, string];
|
|
6717
|
+
topFailingResources: (organizationId: WorkOsOrgId | null, startDate: string, endDate: string, limit: number) => readonly ["observability", "top-failing-resources", WorkOsOrgId | null, string, string, number];
|
|
6718
|
+
costTrends: (organizationId: WorkOsOrgId | null, timeRange: string, granularity: string) => readonly ["observability", "cost-trends", WorkOsOrgId | null, string, string];
|
|
6719
|
+
costByModel: (organizationId: WorkOsOrgId | null, timeRange: string) => readonly ["observability", "cost-by-model", WorkOsOrgId | null, string];
|
|
6720
|
+
costBreakdown: (organizationId: WorkOsOrgId | null, timeRange: string) => readonly ["observability", "cost-breakdown", WorkOsOrgId | null, string];
|
|
6721
|
+
dashboardMetrics: (organizationId: WorkOsOrgId | null, timeRange: string) => readonly ["observability", "dashboard-metrics", WorkOsOrgId | null, string];
|
|
6722
|
+
businessImpact: (organizationId: WorkOsOrgId | null, timeRange: string) => readonly ["observability", "business-impact", WorkOsOrgId | null, string];
|
|
6723
|
+
resourcesHealth: (organizationId: WorkOsOrgId | null, resources: string, startDate: string, endDate: string, granularity: string) => readonly ["observability", "resources-health", WorkOsOrgId | null, string, string, string, string];
|
|
6724
|
+
systemHealth: (organizationId: WorkOsOrgId | null, systemPath: string, timeRange: string, includeDescendants: boolean, descendantMode: string, resourceSet: string, startDate: string, endDate: string, directResources: readonly unknown[], descendantResources: readonly unknown[]) => readonly ["observability", "system-health", WorkOsOrgId | null, string, string, boolean, string, string, string, string, readonly unknown[], readonly unknown[]];
|
|
6725
|
+
unresolvedErrors: (organizationId: WorkOsOrgId | null, startDate: string, endDate: string) => readonly ["observability", "unresolved-errors", WorkOsOrgId | null, string, string];
|
|
6726
|
+
recentExecutionsByResource: (organizationId: WorkOsOrgId | null, timeRange: string, limit: number | undefined) => readonly ["observability", "recent-executions-by-resource", WorkOsOrgId | null, string, number | undefined];
|
|
6681
6727
|
};
|
|
6682
6728
|
|
|
6683
6729
|
declare function useErrorAnalysis(timeRange: TimeRange): _tanstack_react_query.UseQueryResult<ErrorAnalysisMetrics, Error>;
|
|
@@ -7102,18 +7148,26 @@ declare function useSSEConnection({ manager, connectionKey, url, enabled, header
|
|
|
7102
7148
|
/**
|
|
7103
7149
|
* Session-scoped query key factory.
|
|
7104
7150
|
* Organization identifier is always included for cache isolation.
|
|
7151
|
+
*
|
|
7152
|
+
* Keyed by the Supabase org UUID (`SupabaseOrgId`) — the stable discriminator used
|
|
7153
|
+
* across all session hooks. (Previously keyed inconsistently: org name in the
|
|
7154
|
+
* list/CRUD hooks vs Supabase UUID in the execution/message/WebSocket hooks, which
|
|
7155
|
+
* caused a silent cache-invalidation mismatch — `useSessionWebSocket` invalidated
|
|
7156
|
+
* `session(supabaseId, …)` while `useSession` cached under `session(orgName, …)`.
|
|
7157
|
+
* Unified to the Supabase UUID on 2026-05-23; surfaced by the dual-org-ID brand.)
|
|
7105
7158
|
*/
|
|
7159
|
+
|
|
7106
7160
|
declare const sessionsKeys: {
|
|
7107
7161
|
all: readonly ["sessions"];
|
|
7108
|
-
sessions: (org:
|
|
7162
|
+
sessions: (org: SupabaseOrgId | null, params?: {
|
|
7109
7163
|
resourceId?: string;
|
|
7110
|
-
}) => readonly ["sessions", "list",
|
|
7164
|
+
}) => readonly ["sessions", "list", SupabaseOrgId | null, {
|
|
7111
7165
|
resourceId?: string;
|
|
7112
7166
|
} | undefined];
|
|
7113
|
-
session: (org:
|
|
7114
|
-
executions: (org:
|
|
7115
|
-
execution: (org:
|
|
7116
|
-
messages: (org:
|
|
7167
|
+
session: (org: SupabaseOrgId | null, sessionId: string) => readonly ["sessions", "detail", SupabaseOrgId | null, string];
|
|
7168
|
+
executions: (org: SupabaseOrgId | null, sessionId: string) => readonly ["sessions", SupabaseOrgId | null, string, "executions"];
|
|
7169
|
+
execution: (org: SupabaseOrgId | null, sessionId: string, executionId: string) => readonly ["sessions", SupabaseOrgId | null, string, "executions", string];
|
|
7170
|
+
messages: (org: SupabaseOrgId | null, sessionId: string) => readonly ["sessions", SupabaseOrgId | null, string, "messages"];
|
|
7117
7171
|
};
|
|
7118
7172
|
|
|
7119
7173
|
interface SessionExecution {
|
|
@@ -7327,9 +7381,9 @@ interface RequestsListFilters {
|
|
|
7327
7381
|
declare const requestsKeys: {
|
|
7328
7382
|
all: readonly ["requests"];
|
|
7329
7383
|
lists: () => readonly ["requests", "list"];
|
|
7330
|
-
list: (organizationId:
|
|
7384
|
+
list: (organizationId: WorkOsOrgId | null | undefined, filters: RequestsListFilters) => readonly ["requests", "list", WorkOsOrgId | null | undefined, RequestsListFilters];
|
|
7331
7385
|
details: () => readonly ["requests", "detail"];
|
|
7332
|
-
detail: (organizationId:
|
|
7386
|
+
detail: (organizationId: WorkOsOrgId | null | undefined, id: string | undefined) => readonly ["requests", "detail", WorkOsOrgId | null | undefined, string | undefined];
|
|
7333
7387
|
};
|
|
7334
7388
|
|
|
7335
7389
|
type RequestRow = Database['public']['Tables']['reported_requests']['Row'];
|
|
@@ -7413,11 +7467,11 @@ interface ClientsListFilters {
|
|
|
7413
7467
|
declare const clientsKeys: {
|
|
7414
7468
|
all: readonly ["clients"];
|
|
7415
7469
|
lists: () => readonly ["clients", "list"];
|
|
7416
|
-
list: (organizationId:
|
|
7470
|
+
list: (organizationId: WorkOsOrgId | null | undefined, filters: ClientsListFilters) => readonly ["clients", "list", WorkOsOrgId | null | undefined, ClientsListFilters];
|
|
7417
7471
|
statuses: () => readonly ["clients", "status"];
|
|
7418
|
-
status: (organizationId:
|
|
7472
|
+
status: (organizationId: WorkOsOrgId | null | undefined) => readonly ["clients", "status", WorkOsOrgId | null | undefined];
|
|
7419
7473
|
details: () => readonly ["clients", "detail"];
|
|
7420
|
-
detail: (organizationId:
|
|
7474
|
+
detail: (organizationId: WorkOsOrgId | null | undefined, id: string | undefined) => readonly ["clients", "detail", WorkOsOrgId | null | undefined, string | undefined];
|
|
7421
7475
|
};
|
|
7422
7476
|
|
|
7423
7477
|
declare function useClients(filters?: ClientsListFilters): _tanstack_react_query.UseQueryResult<{
|
|
@@ -7543,18 +7597,18 @@ declare function useDeleteClient(): _tanstack_react_query.UseMutationResult<void
|
|
|
7543
7597
|
|
|
7544
7598
|
declare const operationsKeys: {
|
|
7545
7599
|
all: readonly ["operations"];
|
|
7546
|
-
workflows: (org?:
|
|
7547
|
-
workflowDetails: (org?:
|
|
7548
|
-
workflow: (id: string, org?:
|
|
7549
|
-
agents: (org?:
|
|
7550
|
-
agentDetails: (org?:
|
|
7551
|
-
agent: (id: string, org?:
|
|
7552
|
-
sessions: (org:
|
|
7600
|
+
workflows: (org?: WorkOsOrgId) => readonly ["operations", "workflows", WorkOsOrgId | undefined];
|
|
7601
|
+
workflowDetails: (org?: WorkOsOrgId) => readonly ["operations", "workflows", WorkOsOrgId | undefined, "details"];
|
|
7602
|
+
workflow: (id: string, org?: WorkOsOrgId) => readonly ["operations", "workflows", WorkOsOrgId | undefined, string];
|
|
7603
|
+
agents: (org?: WorkOsOrgId) => readonly ["operations", "agents", WorkOsOrgId | undefined];
|
|
7604
|
+
agentDetails: (org?: WorkOsOrgId) => readonly ["operations", "agents", WorkOsOrgId | undefined, "details"];
|
|
7605
|
+
agent: (id: string, org?: WorkOsOrgId) => readonly ["operations", "agents", WorkOsOrgId | undefined, string];
|
|
7606
|
+
sessions: (org: WorkOsOrgId, params?: {
|
|
7553
7607
|
resourceId?: string;
|
|
7554
|
-
}) => readonly ["operations", "sessions",
|
|
7608
|
+
}) => readonly ["operations", "sessions", WorkOsOrgId, {
|
|
7555
7609
|
resourceId?: string;
|
|
7556
7610
|
} | undefined];
|
|
7557
|
-
session: (org:
|
|
7611
|
+
session: (org: WorkOsOrgId, sessionId: string) => readonly ["operations", "session", WorkOsOrgId, string];
|
|
7558
7612
|
};
|
|
7559
7613
|
|
|
7560
7614
|
interface UseExecutionPanelStateOptions {
|
|
@@ -7851,11 +7905,11 @@ interface UseDealsLookupOptions {
|
|
|
7851
7905
|
declare const dealKeys: {
|
|
7852
7906
|
all: readonly ["deals"];
|
|
7853
7907
|
lists: () => readonly ["deals", "list"];
|
|
7854
|
-
list: (orgId:
|
|
7908
|
+
list: (orgId: WorkOsOrgId | null, filters: DealFilters) => readonly ["deals", "list", WorkOsOrgId | null, DealFilters];
|
|
7855
7909
|
summaries: () => readonly ["deals", "summary"];
|
|
7856
|
-
summary: (orgId:
|
|
7910
|
+
summary: (orgId: WorkOsOrgId | null) => readonly ["deals", "summary", WorkOsOrgId | null];
|
|
7857
7911
|
lookups: () => readonly ["deals", "lookup"];
|
|
7858
|
-
lookup: (orgId:
|
|
7912
|
+
lookup: (orgId: WorkOsOrgId | null, filters: DealLookupFilters) => readonly ["deals", "lookup", WorkOsOrgId | null, DealLookupFilters];
|
|
7859
7913
|
details: () => readonly ["deals", "detail"];
|
|
7860
7914
|
detail: (id: string) => readonly ["deals", "detail", string];
|
|
7861
7915
|
};
|
|
@@ -8088,7 +8142,7 @@ declare function useExecuteAction({ dealId }: {
|
|
|
8088
8142
|
*/
|
|
8089
8143
|
declare const dealNoteKeys: {
|
|
8090
8144
|
all: readonly ["deal-notes"];
|
|
8091
|
-
list: (organizationId:
|
|
8145
|
+
list: (organizationId: WorkOsOrgId | null, dealId: string) => readonly ["deal-notes", WorkOsOrgId | null, string];
|
|
8092
8146
|
};
|
|
8093
8147
|
/**
|
|
8094
8148
|
* Fetch notes for a specific deal, newest-first.
|
|
@@ -8110,8 +8164,8 @@ declare function useCreateDealNote(): _tanstack_react_query.UseMutationResult<Ac
|
|
|
8110
8164
|
*/
|
|
8111
8165
|
declare const dealTaskKeys: {
|
|
8112
8166
|
all: readonly ["deal-tasks"];
|
|
8113
|
-
list: (orgId:
|
|
8114
|
-
due: (orgId:
|
|
8167
|
+
list: (orgId: WorkOsOrgId | null, dealId: string) => readonly ["deal-tasks", WorkOsOrgId | null, string];
|
|
8168
|
+
due: (orgId: WorkOsOrgId | null, window: string, assigneeUserId: string | null) => readonly ["deal-tasks-due", WorkOsOrgId | null, string, string | null];
|
|
8115
8169
|
};
|
|
8116
8170
|
/**
|
|
8117
8171
|
* Fetch all tasks for a specific deal, ordered by due date ascending (nulls last).
|
|
@@ -8161,13 +8215,13 @@ declare function useCompleteDealTask(): _tanstack_react_query.UseMutationResult<
|
|
|
8161
8215
|
|
|
8162
8216
|
declare const acquisitionListKeys: {
|
|
8163
8217
|
all: readonly ["acquisition-lists"];
|
|
8164
|
-
list: (organizationId:
|
|
8165
|
-
detail: (organizationId:
|
|
8166
|
-
telemetry: (organizationId:
|
|
8167
|
-
progress: (organizationId:
|
|
8168
|
-
executionsBase: (organizationId:
|
|
8169
|
-
records: (organizationId:
|
|
8170
|
-
executions: (organizationId:
|
|
8218
|
+
list: (organizationId: WorkOsOrgId | null) => readonly ["acquisition-lists", WorkOsOrgId | null];
|
|
8219
|
+
detail: (organizationId: WorkOsOrgId | null, listId: string) => readonly ["acquisition-lists", WorkOsOrgId | null, string];
|
|
8220
|
+
telemetry: (organizationId: WorkOsOrgId | null) => readonly ["acquisition-lists", "telemetry", WorkOsOrgId | null];
|
|
8221
|
+
progress: (organizationId: WorkOsOrgId | null, listId: string) => readonly ["acquisition-lists", "progress", WorkOsOrgId | null, string];
|
|
8222
|
+
executionsBase: (organizationId: WorkOsOrgId | null, listId: string) => readonly ["acquisition-lists", "executions", WorkOsOrgId | null, string];
|
|
8223
|
+
records: (organizationId: WorkOsOrgId | null, listId: string, filters: ListRecordsFilters) => readonly ["acquisition-lists", "records", WorkOsOrgId | null, string, "company" | "contact", string | null, number | null, number | null];
|
|
8224
|
+
executions: (organizationId: WorkOsOrgId | null, listId: string, filters?: ListExecutionsFilters) => readonly ["acquisition-lists", "executions", WorkOsOrgId | null, string, string | null, number | null];
|
|
8171
8225
|
};
|
|
8172
8226
|
interface ListRecordsFilters {
|
|
8173
8227
|
entity: ListRecordEntity;
|
|
@@ -8808,7 +8862,7 @@ interface AcqCompanyFacetsResponse {
|
|
|
8808
8862
|
}
|
|
8809
8863
|
declare const companyKeys: {
|
|
8810
8864
|
all: readonly ["acquisition-companies"];
|
|
8811
|
-
list: (organizationId:
|
|
8865
|
+
list: (organizationId: WorkOsOrgId | null, filters: Partial<ListCompaniesQuery>) => readonly ["acquisition-companies", "list", WorkOsOrgId | null, Partial<{
|
|
8812
8866
|
limit: number;
|
|
8813
8867
|
offset: number;
|
|
8814
8868
|
search?: string | undefined;
|
|
@@ -8822,8 +8876,8 @@ declare const companyKeys: {
|
|
|
8822
8876
|
status?: "active" | "invalid" | undefined;
|
|
8823
8877
|
includeAll?: boolean | undefined;
|
|
8824
8878
|
}>];
|
|
8825
|
-
facets: (organizationId:
|
|
8826
|
-
detail: (organizationId:
|
|
8879
|
+
facets: (organizationId: WorkOsOrgId | null) => readonly ["acquisition-companies", "facets", WorkOsOrgId | null];
|
|
8880
|
+
detail: (organizationId: WorkOsOrgId | null, companyId: string) => readonly ["acquisition-companies", "detail", WorkOsOrgId | null, string];
|
|
8827
8881
|
};
|
|
8828
8882
|
declare function useCompanies(filters?: Partial<ListCompaniesQuery>): _tanstack_react_query.UseQueryResult<{
|
|
8829
8883
|
data: {
|
|
@@ -8994,7 +9048,7 @@ declare function useDeleteCompanies(): _tanstack_react_query.UseMutationResult<v
|
|
|
8994
9048
|
type AcqContactWithCompany = AcqContactResponse;
|
|
8995
9049
|
declare const contactKeys: {
|
|
8996
9050
|
all: readonly ["acquisition-contacts"];
|
|
8997
|
-
list: (organizationId:
|
|
9051
|
+
list: (organizationId: WorkOsOrgId | null, filters: Partial<ListContactsQuery>) => readonly ["acquisition-contacts", "list", WorkOsOrgId | null, Partial<{
|
|
8998
9052
|
limit: number;
|
|
8999
9053
|
offset: number;
|
|
9000
9054
|
search?: string | undefined;
|
|
@@ -9003,7 +9057,7 @@ declare const contactKeys: {
|
|
|
9003
9057
|
batchId?: string | undefined;
|
|
9004
9058
|
contactStatus?: "active" | "invalid" | undefined;
|
|
9005
9059
|
}>];
|
|
9006
|
-
detail: (organizationId:
|
|
9060
|
+
detail: (organizationId: WorkOsOrgId | null, contactId: string) => readonly ["acquisition-contacts", "detail", WorkOsOrgId | null, string];
|
|
9007
9061
|
};
|
|
9008
9062
|
declare function useContacts(filters?: Partial<ListContactsQuery>): _tanstack_react_query.UseQueryResult<{
|
|
9009
9063
|
data: {
|
|
@@ -9201,7 +9255,7 @@ declare function useDeleteContacts(): _tanstack_react_query.UseMutationResult<vo
|
|
|
9201
9255
|
|
|
9202
9256
|
declare const leadGenArtifactKeys: {
|
|
9203
9257
|
all: readonly ["lead-gen-artifacts"];
|
|
9204
|
-
list: (organizationId:
|
|
9258
|
+
list: (organizationId: WorkOsOrgId | null, ownerKind: AcqArtifactOwnerKind, ownerId: string) => readonly ["lead-gen-artifacts", WorkOsOrgId | null, "company" | "contact" | "list" | "deal" | "list_member", string];
|
|
9205
9259
|
};
|
|
9206
9260
|
interface UseArtifactsParams {
|
|
9207
9261
|
ownerKind: AcqArtifactOwnerKind;
|
|
@@ -9242,8 +9296,8 @@ declare function useCreateArtifact(): _tanstack_react_query.UseMutationResult<{
|
|
|
9242
9296
|
|
|
9243
9297
|
declare const leadGenListMemberKeys: {
|
|
9244
9298
|
all: readonly ["lead-gen-list-members"];
|
|
9245
|
-
list: (organizationId:
|
|
9246
|
-
detail: (organizationId:
|
|
9299
|
+
list: (organizationId: WorkOsOrgId | null, listId: string) => readonly ["lead-gen-list-members", WorkOsOrgId | null, "list", string];
|
|
9300
|
+
detail: (organizationId: WorkOsOrgId | null, memberId: string) => readonly ["lead-gen-list-members", WorkOsOrgId | null, "detail", string];
|
|
9247
9301
|
};
|
|
9248
9302
|
declare function useListMembers({ listId }: {
|
|
9249
9303
|
listId: string;
|
|
@@ -9307,7 +9361,7 @@ declare function useTransitionListMember(): _tanstack_react_query.UseMutationRes
|
|
|
9307
9361
|
|
|
9308
9362
|
declare const leadGenListCompanyKeys: {
|
|
9309
9363
|
all: readonly ["lead-gen-list-companies"];
|
|
9310
|
-
detail: (organizationId:
|
|
9364
|
+
detail: (organizationId: WorkOsOrgId | null, listCompanyId: string) => readonly ["lead-gen-list-companies", WorkOsOrgId | null, "detail", string];
|
|
9311
9365
|
};
|
|
9312
9366
|
interface TransitionListCompanyInput extends TransitionItemRequest {
|
|
9313
9367
|
listCompanyId: string;
|
|
@@ -9717,10 +9771,13 @@ declare function useUpdateWebhookEndpoint(): _tanstack_react_query.UseMutationRe
|
|
|
9717
9771
|
*/
|
|
9718
9772
|
interface ElevasisServiceContextValue {
|
|
9719
9773
|
apiRequest: <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
9720
|
-
/**
|
|
9721
|
-
|
|
9722
|
-
|
|
9723
|
-
|
|
9774
|
+
/**
|
|
9775
|
+
* @deprecated Alias of `workOSOrganizationId` retained for existing query-key consumers.
|
|
9776
|
+
* Resolves to the WorkOS `org_xxx` id (NOT the Supabase UUID). Prefer `workOSOrganizationId`.
|
|
9777
|
+
*/
|
|
9778
|
+
organizationId: WorkOsOrgId | null;
|
|
9779
|
+
/** WorkOS `org_xxx` id for the current organization. */
|
|
9780
|
+
workOSOrganizationId: WorkOsOrgId | null;
|
|
9724
9781
|
isReady: boolean;
|
|
9725
9782
|
}
|
|
9726
9783
|
|