@elevasis/ui 2.78.0 → 2.80.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-PSTKG4B3.js → CoreAuthKitInner-5J7P7ZDL.js} +1 -1
- package/dist/api/index.js +6 -6
- package/dist/app/index.js +18 -18
- package/dist/auth/index.js +10 -10
- package/dist/charts/index.d.ts +4 -4
- package/dist/charts/index.js +10 -10
- package/dist/{chunk-BLXJEIQS.js → chunk-2HXDI4RY.js} +1 -1
- package/dist/{chunk-FI66TKYS.js → chunk-2KXSFLU2.js} +8 -2
- package/dist/{chunk-TVTSASST.js → chunk-34B3ACOZ.js} +9 -1
- package/dist/{chunk-KXNRTJAE.js → chunk-3HMRK3RC.js} +1 -1
- package/dist/{chunk-S3ETKY5C.js → chunk-3UO2CJTR.js} +1 -1
- package/dist/{chunk-YUWR4UX7.js → chunk-52G4B33T.js} +13 -7
- package/dist/{chunk-4A6S4WAT.js → chunk-6IWH757Q.js} +4 -3
- package/dist/{chunk-4TABB2PA.js → chunk-6MWTTBBT.js} +6 -6
- package/dist/{chunk-M3DWVFRT.js → chunk-7A25EJ4A.js} +148 -85
- package/dist/{chunk-SVZR4GYA.js → chunk-A32PJ2DO.js} +1 -1
- package/dist/{chunk-LMAYDNQL.js → chunk-BG7VCCFB.js} +1 -1
- package/dist/{chunk-WGSEITGL.js → chunk-BXFZ676L.js} +222 -191
- package/dist/{chunk-5ZK7K7YP.js → chunk-CIGWHY7C.js} +23 -21
- package/dist/{chunk-FFVZB25A.js → chunk-CSEADI37.js} +3 -3
- package/dist/{chunk-3RK2NNJX.js → chunk-DFGQG32T.js} +1 -1
- package/dist/{chunk-VM2OWOXL.js → chunk-GY7FXTC4.js} +2 -3
- package/dist/{chunk-P6HHXMLJ.js → chunk-HVNDBY42.js} +10 -9
- package/dist/{chunk-VBGXFKZ2.js → chunk-I5SYS6DT.js} +5 -5
- package/dist/{chunk-2GIJBHZT.js → chunk-IIMC4TRH.js} +3 -3
- package/dist/{chunk-JKNIXSJT.js → chunk-JDPPV2XI.js} +21 -14
- package/dist/{chunk-NBG3V52P.js → chunk-JZBMZLD3.js} +1 -1
- package/dist/{chunk-JZQNUQE4.js → chunk-KGUBFIMQ.js} +1 -1
- package/dist/{chunk-GFSOQH3N.js → chunk-MJIDC25O.js} +8 -11
- package/dist/{chunk-IWNVPPWF.js → chunk-MMOR2HQZ.js} +38 -78
- package/dist/{chunk-L42Z3VZM.js → chunk-NGRRAYMO.js} +22 -39
- package/dist/{chunk-TRACEZWZ.js → chunk-NKMBW7WE.js} +26 -21
- package/dist/{chunk-57QSONG5.js → chunk-Q6HRTWA6.js} +1 -1
- package/dist/{chunk-FD3XRRKM.js → chunk-QQKYBGBX.js} +22 -11
- package/dist/{chunk-B74K5EC2.js → chunk-QSN7BWI3.js} +1 -1
- package/dist/{chunk-MWWBHRFO.js → chunk-SPH5WW44.js} +5 -5
- package/dist/{chunk-WJWYTXGQ.js → chunk-T6AOVZAI.js} +14 -10
- package/dist/{chunk-AVGXLMSH.js → chunk-U3GB5PDF.js} +4 -4
- package/dist/{chunk-SU4T5DCZ.js → chunk-VHK5J55Q.js} +8 -8
- package/dist/{chunk-F3YFAATR.js → chunk-VKA4LQ7N.js} +1 -1
- package/dist/{chunk-IYLJ4CBC.js → chunk-W6QOWA3L.js} +11 -10
- package/dist/{chunk-N6K2Q5BM.js → chunk-WDABHUIL.js} +9 -21
- package/dist/{chunk-2LLCOS4V.js → chunk-WOYW24U7.js} +1 -1
- package/dist/{chunk-Y2IHJRHM.js → chunk-XEO2UG4J.js} +15 -9
- package/dist/{chunk-UD657ICS.js → chunk-YJ437RDY.js} +29 -16
- package/dist/{chunk-INCEZAM3.js → chunk-YSFLFD4U.js} +1 -1
- package/dist/{chunk-5OBIZIWW.js → chunk-ZU676PFP.js} +38 -14
- package/dist/components/index.d.ts +18 -6
- package/dist/components/index.js +48 -48
- package/dist/components/navigation/index.js +11 -11
- package/dist/execution/index.js +2 -2
- package/dist/features/auth/index.js +12 -12
- package/dist/features/clients/index.js +14 -15
- package/dist/features/content/index.js +13 -13
- package/dist/features/crm/index.js +16 -16
- package/dist/features/dashboard/index.d.ts +8 -8
- package/dist/features/dashboard/index.js +13 -13
- package/dist/features/delivery/index.js +25 -25
- package/dist/features/knowledge/index.js +10 -10
- package/dist/features/lead-gen/index.d.ts +49 -32
- package/dist/features/lead-gen/index.js +17 -17
- package/dist/features/monitoring/index.d.ts +10 -10
- package/dist/features/monitoring/index.js +15 -15
- package/dist/features/monitoring/requests/index.js +12 -12
- package/dist/features/notes/index.js +1 -1
- package/dist/features/operations/index.d.ts +12 -12
- package/dist/features/operations/index.js +18 -18
- package/dist/features/public-agent-chat/index.js +4 -4
- package/dist/features/seo/index.js +13 -13
- package/dist/features/settings/index.js +13 -13
- package/dist/hooks/access/index.d.ts +60 -1
- package/dist/hooks/access/index.js +10 -10
- package/dist/hooks/delivery/index.js +6 -6
- package/dist/hooks/published.d.ts +332 -99
- package/dist/hooks/published.js +23 -23
- package/dist/hooks/user-notes/index.js +1 -1
- package/dist/initialization/index.d.ts +12 -0
- package/dist/initialization/index.js +1 -1
- package/dist/knowledge/index.js +22 -20
- package/dist/{knowledge-search-index-6GQK55IQ.js → knowledge-search-index-YU6V3FTK.js} +4 -4
- package/dist/layout/index.js +14 -14
- package/dist/organization/index.d.ts +17 -1
- package/dist/organization/index.js +2 -2
- package/dist/profile/index.js +1 -1
- package/dist/provider/ElevasisServiceContext.js +1 -1
- package/dist/provider/index.js +10 -10
- package/dist/provider/published.js +10 -10
- package/dist/sse/index.js +14 -0
- package/dist/test-utils/index.js +6 -6
- package/dist/types/index.d.ts +12 -0
- package/dist/utils/index.d.ts +20 -2
- package/dist/utils/index.js +4 -4
- package/package.json +24 -14
- /package/dist/{chunk-Y6I3IC45.js → chunk-6XBZPKMI.js} +0 -0
- /package/dist/{chunk-6SSQGWK7.js → chunk-7ZUXA2NW.js} +0 -0
|
@@ -244,6 +244,18 @@ interface MembershipWithDetails extends OrganizationMembership {
|
|
|
244
244
|
workos_org_id: string;
|
|
245
245
|
primaryDomain?: string;
|
|
246
246
|
is_test?: boolean;
|
|
247
|
+
/**
|
|
248
|
+
* The organization's lifecycle status (`active | suspended | archived |
|
|
249
|
+
* deleting | delete_failed` -- a DB CHECK constraint, not a TS enum).
|
|
250
|
+
* `GET /memberships/my-memberships` annotates every row with this field
|
|
251
|
+
* rather than filtering non-`active` organizations out of the response,
|
|
252
|
+
* so a member whose organization was archived or is being deleted still
|
|
253
|
+
* sees it (and can be told why) instead of the row silently vanishing.
|
|
254
|
+
* Consumers that auto-select a membership (e.g. `OrganizationProvider`)
|
|
255
|
+
* must check this before entering an organization on the caller's
|
|
256
|
+
* behalf. Optional for backward compatibility with callers and fixtures
|
|
257
|
+
* that predate this field; treat a missing value as serviceable.
|
|
258
|
+
*/
|
|
247
259
|
status?: string;
|
|
248
260
|
metadata?: Record<string, unknown>;
|
|
249
261
|
config?: Record<string, unknown>;
|
|
@@ -5656,14 +5668,14 @@ declare const ReorderContentItemSourceAssetsRequestSchema: z.ZodObject<{
|
|
|
5656
5668
|
orderedAssetIds: z.ZodArray<z.ZodString>;
|
|
5657
5669
|
}, z.core.$strict>;
|
|
5658
5670
|
declare const ListContentItemsQuerySchema: z.ZodObject<{
|
|
5671
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
5672
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
5659
5673
|
status: z.ZodOptional<z.ZodString>;
|
|
5660
5674
|
pillar: z.ZodOptional<z.ZodString>;
|
|
5661
5675
|
pipelineId: z.ZodOptional<z.ZodString>;
|
|
5662
5676
|
clientId: z.ZodOptional<z.ZodString>;
|
|
5663
5677
|
reviewedBy: z.ZodOptional<z.ZodString>;
|
|
5664
5678
|
search: z.ZodOptional<z.ZodString>;
|
|
5665
|
-
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
5666
|
-
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
5667
5679
|
}, z.core.$strict>;
|
|
5668
5680
|
declare const ContentItemResponseSchema: z.ZodObject<{
|
|
5669
5681
|
id: z.ZodString;
|
|
@@ -5915,11 +5927,11 @@ declare const UpdateContentSourceAssetRequestSchema: z.ZodObject<{
|
|
|
5915
5927
|
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5916
5928
|
}, z.core.$strict>;
|
|
5917
5929
|
declare const ListContentDistributionsQuerySchema: z.ZodObject<{
|
|
5930
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
5931
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
5918
5932
|
contentItemId: z.ZodOptional<z.ZodString>;
|
|
5919
5933
|
platform: z.ZodOptional<z.ZodString>;
|
|
5920
5934
|
status: z.ZodOptional<z.ZodString>;
|
|
5921
|
-
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
5922
|
-
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
5923
5935
|
}, z.core.$strict>;
|
|
5924
5936
|
declare const ContentDistributionResponseSchema: z.ZodObject<{
|
|
5925
5937
|
id: z.ZodString;
|
|
@@ -8003,6 +8015,19 @@ interface UseAccessResult extends AccessAnswer {
|
|
|
8003
8015
|
*/
|
|
8004
8016
|
declare function useAccess(key: AccessKeyInput): UseAccessResult;
|
|
8005
8017
|
|
|
8018
|
+
/**
|
|
8019
|
+
* Query keys for the effective-permissions fetch behind `useAccess`.
|
|
8020
|
+
*
|
|
8021
|
+
* Note the org id here is the SUPABASE org id, not the WorkOS one every other hook
|
|
8022
|
+
* domain keys on -- `useAccess` reads it from `OrganizationContextValue`, and the
|
|
8023
|
+
* `/memberships/my-permissions/:id` route it calls expects that form. Keying on the
|
|
8024
|
+
* WorkOS id would produce a key that looks right and caches the wrong tenant's answer.
|
|
8025
|
+
*/
|
|
8026
|
+
declare const accessKeys: {
|
|
8027
|
+
all: readonly ["access-permissions"];
|
|
8028
|
+
permissions: (organizationId: SupabaseOrgId | null) => readonly ["access-permissions", SupabaseOrgId | null];
|
|
8029
|
+
};
|
|
8030
|
+
|
|
8006
8031
|
type ExecutionStatus = 'pending' | 'running' | 'completed' | 'failed' | 'warning';
|
|
8007
8032
|
/**
|
|
8008
8033
|
* Event sent when new execution starts
|
|
@@ -8444,6 +8469,22 @@ interface CloudStorageListResult {
|
|
|
8444
8469
|
nextCursor?: string;
|
|
8445
8470
|
}
|
|
8446
8471
|
|
|
8472
|
+
/**
|
|
8473
|
+
* Default applied when a component receives no `timeRange` prop. Matches
|
|
8474
|
+
* `createTimeRangeSlice`'s own default (`packages/ui/src/zustand/slices/timeRange.ts`),
|
|
8475
|
+
* so an app that composes that slice sees identical behavior whether it threads its
|
|
8476
|
+
* live selection through or a consumer omits the prop entirely.
|
|
8477
|
+
*/
|
|
8478
|
+
declare const DEFAULT_TIME_RANGE: TimeRange;
|
|
8479
|
+
/**
|
|
8480
|
+
* Resolves an optional `timeRange` prop to a concrete `TimeRange`, falling back to
|
|
8481
|
+
* `DEFAULT_TIME_RANGE`. Lets shared components make `timeRange` optional instead of
|
|
8482
|
+
* forcing every caller to thread a value down from its own store, while a caller that
|
|
8483
|
+
* does have a live selection (e.g. Command Center's `timeRange` Zustand slice) keeps
|
|
8484
|
+
* passing it through unchanged -- this never overrides an explicitly supplied value.
|
|
8485
|
+
*/
|
|
8486
|
+
declare function useResolvedTimeRange(timeRange?: TimeRange): TimeRange;
|
|
8487
|
+
|
|
8447
8488
|
/**
|
|
8448
8489
|
* Query key factory for executions TanStack Query hooks.
|
|
8449
8490
|
* Uses organization UUID (not name) for cache isolation.
|
|
@@ -8467,21 +8508,37 @@ declare const executionsKeys: {
|
|
|
8467
8508
|
* successful one as though nothing happened.
|
|
8468
8509
|
*/
|
|
8469
8510
|
declare const TERMINAL_EXECUTION_STATUSES: readonly ExecutionStatus[];
|
|
8511
|
+
/**
|
|
8512
|
+
* The two statuses an execution can still leave.
|
|
8513
|
+
*
|
|
8514
|
+
* These and `TERMINAL_EXECUTION_STATUSES` partition `ExecutionStatus`, and a test in
|
|
8515
|
+
* `__tests__/useExecution.test.tsx` asserts it, so adding a member to the union in
|
|
8516
|
+
* `@repo/core` fails there rather than silently landing on one side.
|
|
8517
|
+
*
|
|
8518
|
+
* Naming the in-flight side rather than deriving it as "not terminal" is what lets
|
|
8519
|
+
* `isExecutionInFlight` accept an unvalidated string -- see its note.
|
|
8520
|
+
*/
|
|
8521
|
+
declare const IN_FLIGHT_EXECUTION_STATUSES: readonly ["pending", "running"];
|
|
8470
8522
|
/**
|
|
8471
8523
|
* Whether an execution is still going.
|
|
8472
8524
|
*
|
|
8473
8525
|
* Ask this rather than testing for `'running'`. The two are the same question only by
|
|
8474
8526
|
* coincidence: `ExecutionStatus` also carries `pending`, which no writer on the
|
|
8475
8527
|
* execution-engine path currently produces -- rows are inserted `running` and the
|
|
8476
|
-
* detail route passes the column through untouched.
|
|
8477
|
-
*
|
|
8478
|
-
*
|
|
8528
|
+
* detail route passes the column through untouched.
|
|
8529
|
+
*
|
|
8530
|
+
* Takes a plain `string` because not every caller holds a typed status.
|
|
8531
|
+
* `GET /acquisition/lists/{listId}/executions` types its `status` column as a bare
|
|
8532
|
+
* `string` and the API substitutes the literal `'unknown'` whenever the `execution_logs`
|
|
8533
|
+
* join misses, so a value in neither list is a status that could not be read, not a
|
|
8534
|
+
* running execution -- treating it as in flight would poll it forever. Anything outside
|
|
8535
|
+
* the two in-flight statuses is not in flight, `'unknown'` included.
|
|
8479
8536
|
*
|
|
8480
8537
|
* No status at all counts as not in flight: nothing has been read yet, so either the
|
|
8481
8538
|
* first fetch is still going -- which react-query is already driving -- or it failed,
|
|
8482
8539
|
* and polling a failed read is a retry loop rather than a poll.
|
|
8483
8540
|
*/
|
|
8484
|
-
declare function isExecutionInFlight(status:
|
|
8541
|
+
declare function isExecutionInFlight(status: string | undefined | null): status is (typeof IN_FLIGHT_EXECUTION_STATUSES)[number];
|
|
8485
8542
|
|
|
8486
8543
|
/**
|
|
8487
8544
|
* Fetch the execution list for a given resource.
|
|
@@ -8502,7 +8559,21 @@ interface UseInFlightExecutionsOptions {
|
|
|
8502
8559
|
offset?: number;
|
|
8503
8560
|
listId?: string;
|
|
8504
8561
|
}
|
|
8505
|
-
|
|
8562
|
+
/**
|
|
8563
|
+
* Rows carry `resourceId` so the list-scoped query can be shared.
|
|
8564
|
+
*
|
|
8565
|
+
* `GET /acquisition/lists/{listId}/executions` returns every resource's executions for
|
|
8566
|
+
* the list, so keying the query per resource made N callers on one page issue N copies
|
|
8567
|
+
* of the same request. The fetch is keyed by list only and each caller narrows to its
|
|
8568
|
+
* own resource in `select`, which react-query runs per observer.
|
|
8569
|
+
*/
|
|
8570
|
+
type InFlightExecutionRow = APIExecutionSummary & {
|
|
8571
|
+
resourceId: string;
|
|
8572
|
+
};
|
|
8573
|
+
interface InFlightExecutionsData extends APIExecutionListResponse {
|
|
8574
|
+
executions: InFlightExecutionRow[];
|
|
8575
|
+
}
|
|
8576
|
+
declare function useInFlightExecutions(resourceId: string, options?: UseInFlightExecutionsOptions): _tanstack_react_query.UseQueryResult<InFlightExecutionsData, Error>;
|
|
8506
8577
|
|
|
8507
8578
|
/**
|
|
8508
8579
|
* Fetch a single execution detail.
|
|
@@ -8984,6 +9055,25 @@ declare function useCancelSchedule(): _tanstack_react_query.UseMutationResult<Ta
|
|
|
8984
9055
|
*/
|
|
8985
9056
|
declare function useDeleteSchedule(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
|
|
8986
9057
|
|
|
9058
|
+
/**
|
|
9059
|
+
* Query keys for the org-wide activity feed.
|
|
9060
|
+
*
|
|
9061
|
+
* The two queries live in `hooks/monitoring/useActivities.ts` and the Realtime
|
|
9062
|
+
* subscription that invalidates them lives here in `useActivitiesRealtime.ts`, so the
|
|
9063
|
+
* `['activities']` prefix was previously written out in both places. Invalidating `all`
|
|
9064
|
+
* matches `list` and `trend` alike, which is the behavior `useActivitiesRealtime` relies
|
|
9065
|
+
* on when a row is inserted.
|
|
9066
|
+
*
|
|
9067
|
+
* Project-scoped activities are a separate root -- see `projectActivityKeys` in
|
|
9068
|
+
* `useProjectActivities.ts`. They hit the same endpoint with an entity filter but are
|
|
9069
|
+
* invalidated independently, so merging the two roots would over-invalidate both.
|
|
9070
|
+
*/
|
|
9071
|
+
declare const activityKeys: {
|
|
9072
|
+
all: readonly ["activities"];
|
|
9073
|
+
list: (organizationId: WorkOsOrgId | null, params: unknown) => readonly ["activities", "list", WorkOsOrgId | null, unknown];
|
|
9074
|
+
trend: (organizationId: WorkOsOrgId | null, params: unknown) => readonly ["activities", "trend", WorkOsOrgId | null, unknown];
|
|
9075
|
+
};
|
|
9076
|
+
|
|
8987
9077
|
/**
|
|
8988
9078
|
* Subscribe to Supabase Realtime for activity INSERT events.
|
|
8989
9079
|
*
|
|
@@ -9022,6 +9112,28 @@ declare const projectActivityKeys: {
|
|
|
9022
9112
|
*/
|
|
9023
9113
|
declare function useProjectActivities(projectId: string, enabled?: boolean): _tanstack_react_query.UseQueryResult<Activity[], Error>;
|
|
9024
9114
|
|
|
9115
|
+
/**
|
|
9116
|
+
* Query keys for the monitoring detail page.
|
|
9117
|
+
*
|
|
9118
|
+
* Two roots, not one, because that is what the cache already holds: execution health and
|
|
9119
|
+
* execution logs sit under `monitoring`, while the cost summary sits under
|
|
9120
|
+
* `cost-analytics` alongside the `observability/` hooks it shares an endpoint family
|
|
9121
|
+
* with. Folding the cost key under `monitoring` would change every key it produces, so
|
|
9122
|
+
* the split is preserved rather than tidied.
|
|
9123
|
+
*
|
|
9124
|
+
* The activity feed and notifications also render on this page but are keyed from their
|
|
9125
|
+
* own domains -- see `hooks/activities/queryKeys.ts` and `hooks/notifications/queryKeys.ts`.
|
|
9126
|
+
*/
|
|
9127
|
+
declare const monitoringKeys: {
|
|
9128
|
+
all: readonly ["monitoring"];
|
|
9129
|
+
executionHealth: (organizationId: WorkOsOrgId | null, timeRange: TimeRange) => readonly ["monitoring", "execution-health", WorkOsOrgId | null, TimeRange];
|
|
9130
|
+
executionLogs: (organizationId: WorkOsOrgId | null, params: unknown) => readonly ["monitoring", "execution-logs", WorkOsOrgId | null, unknown];
|
|
9131
|
+
};
|
|
9132
|
+
declare const costAnalyticsKeys: {
|
|
9133
|
+
all: readonly ["cost-analytics"];
|
|
9134
|
+
summary: (organizationId: WorkOsOrgId | null, timeRange: TimeRange) => readonly ["cost-analytics", "cost-summary", WorkOsOrgId | null, TimeRange];
|
|
9135
|
+
};
|
|
9136
|
+
|
|
9025
9137
|
interface UseActivitiesParams {
|
|
9026
9138
|
limit?: number;
|
|
9027
9139
|
offset?: number;
|
|
@@ -9368,6 +9480,28 @@ interface UseRecentExecutionsByResourceParams {
|
|
|
9368
9480
|
*/
|
|
9369
9481
|
declare function useRecentExecutionsByResource({ timeRange, limit }: UseRecentExecutionsByResourceParams): _tanstack_react_query.UseQueryResult<RecentExecutionsByResourceResponse, Error>;
|
|
9370
9482
|
|
|
9483
|
+
/**
|
|
9484
|
+
* Query keys for the notifications domain.
|
|
9485
|
+
*
|
|
9486
|
+
* The queries live in `hooks/monitoring/` while the mutations that invalidate them live
|
|
9487
|
+
* here, and `components/notifications/NotificationBell.tsx` runs a third copy of the
|
|
9488
|
+
* unread-count query. All three reconstructed `['notifications', ...]` from string
|
|
9489
|
+
* literals, so a typo in any one of them would silently stop invalidating rather than
|
|
9490
|
+
* error. They share this factory now; the `all` prefix is what the mutations invalidate,
|
|
9491
|
+
* which matches both `list` and `unreadCount` by TanStack's prefix rule.
|
|
9492
|
+
*/
|
|
9493
|
+
declare const notificationKeys: {
|
|
9494
|
+
all: readonly ["notifications"];
|
|
9495
|
+
list: (organizationId: WorkOsOrgId | null, page: {
|
|
9496
|
+
limit: number;
|
|
9497
|
+
offset: number;
|
|
9498
|
+
}) => readonly ["notifications", WorkOsOrgId | null, {
|
|
9499
|
+
limit: number;
|
|
9500
|
+
offset: number;
|
|
9501
|
+
}];
|
|
9502
|
+
unreadCount: (organizationId: WorkOsOrgId | null) => readonly ["notifications", "unread-count", WorkOsOrgId | null];
|
|
9503
|
+
};
|
|
9504
|
+
|
|
9371
9505
|
declare function useMarkAsRead(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
|
|
9372
9506
|
|
|
9373
9507
|
declare function useMarkAllAsRead(): _tanstack_react_query.UseMutationResult<void, Error, void, unknown>;
|
|
@@ -9759,6 +9893,39 @@ declare function useSessionWebSocket(sessionId: string, apiUrl: string): {
|
|
|
9759
9893
|
*/
|
|
9760
9894
|
declare function mergeSessionMessages(historyMessages: ChatMessage[], liveMessages: ChatMessage[]): ChatMessage[];
|
|
9761
9895
|
|
|
9896
|
+
interface CommandQueueListKeyFilters {
|
|
9897
|
+
status?: QueueTaskStatus;
|
|
9898
|
+
humanCheckpoint?: string;
|
|
9899
|
+
timeRange?: TimeRange;
|
|
9900
|
+
priorityMin?: number;
|
|
9901
|
+
priorityMax?: number;
|
|
9902
|
+
limit?: number;
|
|
9903
|
+
offset?: number;
|
|
9904
|
+
}
|
|
9905
|
+
/**
|
|
9906
|
+
* Query keys for the command queue.
|
|
9907
|
+
*
|
|
9908
|
+
* `lists()` is deliberately the two-element prefix `['command-queue', 'list']` and NOT a
|
|
9909
|
+
* full key: three mutations (`useSubmitAction`, `usePatchTask`, `useDeleteTask`) reach
|
|
9910
|
+
* every cached list page at once through `cancelQueries` / `getQueriesData` /
|
|
9911
|
+
* `setQueriesData` with exactly that prefix, then roll the snapshot back on error. A
|
|
9912
|
+
* `lists()` that appended the org id or the filters would narrow those calls to one page,
|
|
9913
|
+
* and the optimistic update would apply to the visible list while leaving every other
|
|
9914
|
+
* cached page stale -- silently, since none of those three APIs error on a key that
|
|
9915
|
+
* matches nothing.
|
|
9916
|
+
*
|
|
9917
|
+
* `list()` spreads the filters positionally in the order the query already used. The
|
|
9918
|
+
* order is part of the key, so reordering these arguments invalidates every cached page
|
|
9919
|
+
* rather than reusing it.
|
|
9920
|
+
*/
|
|
9921
|
+
declare const commandQueueKeys: {
|
|
9922
|
+
all: readonly ["command-queue"];
|
|
9923
|
+
lists: () => readonly ["command-queue", "list"];
|
|
9924
|
+
list: (organizationId: WorkOsOrgId | null, filters: CommandQueueListKeyFilters) => readonly ["command-queue", "list", WorkOsOrgId | null, QueueTaskStatus | undefined, string | undefined, TimeRange | undefined, number | undefined, number | undefined, number | undefined, number | undefined];
|
|
9925
|
+
detail: (organizationId: WorkOsOrgId | null, taskId: string | undefined) => readonly ["command-queue", "detail", WorkOsOrgId | null, string | undefined];
|
|
9926
|
+
checkpoints: (organizationId: WorkOsOrgId | null, filters: Pick<CommandQueueListKeyFilters, "timeRange" | "priorityMin" | "priorityMax" | "status">) => readonly ["command-queue", "checkpoints", WorkOsOrgId | null, TimeRange | undefined, number | undefined, number | undefined, QueueTaskStatus | undefined];
|
|
9927
|
+
};
|
|
9928
|
+
|
|
9762
9929
|
declare function useCommandQueue({ status, limit, offset, humanCheckpoint, timeRange, priorityMin, priorityMax }?: {
|
|
9763
9930
|
status?: QueueTaskStatus;
|
|
9764
9931
|
limit?: number;
|
|
@@ -9796,7 +9963,17 @@ interface SubmitActionResponse {
|
|
|
9796
9963
|
error?: ExecutionErrorDetails;
|
|
9797
9964
|
};
|
|
9798
9965
|
}
|
|
9799
|
-
|
|
9966
|
+
interface UseSubmitActionOptions {
|
|
9967
|
+
/**
|
|
9968
|
+
* Show the default error notification on failure. Defaults to true.
|
|
9969
|
+
* Callers that already surface the error inline (e.g. CommandQueueDetailPage's
|
|
9970
|
+
* own `onError` passed to `mutate()`) should pass `false` to avoid reporting
|
|
9971
|
+
* the same failure twice — TanStack Query calls both the hook-level `onError`
|
|
9972
|
+
* and any per-call `onError` passed to `mutate()`.
|
|
9973
|
+
*/
|
|
9974
|
+
notifyOnError?: boolean;
|
|
9975
|
+
}
|
|
9976
|
+
declare function useSubmitAction(options?: UseSubmitActionOptions): _tanstack_react_query.UseMutationResult<SubmitActionResponse, Error, SubmitActionRequest, OptimisticContext>;
|
|
9800
9977
|
|
|
9801
9978
|
declare function useDeleteTask$1(): _tanstack_react_query.UseMutationResult<void, Error, string, {
|
|
9802
9979
|
previousData: Map<readonly unknown[], CommandQueueListResponse | undefined>;
|
|
@@ -12716,25 +12893,6 @@ interface AcqCompanyFacetsResponse {
|
|
|
12716
12893
|
categories: string[];
|
|
12717
12894
|
statuses: Array<AcqCompanyResponse['status']>;
|
|
12718
12895
|
}
|
|
12719
|
-
declare const companyKeys: {
|
|
12720
|
-
all: readonly ["acquisition-companies"];
|
|
12721
|
-
list: (organizationId: WorkOsOrgId | null, filters: Partial<ListCompaniesQuery>) => readonly ["acquisition-companies", "list", WorkOsOrgId | null, Partial<{
|
|
12722
|
-
limit: number;
|
|
12723
|
-
offset: number;
|
|
12724
|
-
search?: string | undefined;
|
|
12725
|
-
listId?: string | undefined;
|
|
12726
|
-
domain?: string | undefined;
|
|
12727
|
-
website?: string | undefined;
|
|
12728
|
-
segment?: string | undefined;
|
|
12729
|
-
category?: string | undefined;
|
|
12730
|
-
pipelineStatus?: unknown;
|
|
12731
|
-
batchId?: string | undefined;
|
|
12732
|
-
status?: "active" | "invalid" | undefined;
|
|
12733
|
-
includeAll?: boolean | undefined;
|
|
12734
|
-
}>];
|
|
12735
|
-
facets: (organizationId: WorkOsOrgId | null) => readonly ["acquisition-companies", "facets", WorkOsOrgId | null];
|
|
12736
|
-
detail: (organizationId: WorkOsOrgId | null, companyId: string) => readonly ["acquisition-companies", "detail", WorkOsOrgId | null, string];
|
|
12737
|
-
};
|
|
12738
12896
|
declare function useCompanies(filters?: Partial<ListCompaniesQuery>): _tanstack_react_query.UseQueryResult<{
|
|
12739
12897
|
data: {
|
|
12740
12898
|
id: string;
|
|
@@ -12902,19 +13060,6 @@ declare function useUpdateCompany(companyId: string): _tanstack_react_query.UseM
|
|
|
12902
13060
|
declare function useDeleteCompanies(): _tanstack_react_query.UseMutationResult<void, Error, string[], unknown>;
|
|
12903
13061
|
|
|
12904
13062
|
type AcqContactWithCompany = AcqContactResponse;
|
|
12905
|
-
declare const contactKeys: {
|
|
12906
|
-
all: readonly ["acquisition-contacts"];
|
|
12907
|
-
list: (organizationId: WorkOsOrgId | null, filters: Partial<ListContactsQuery>) => readonly ["acquisition-contacts", "list", WorkOsOrgId | null, Partial<{
|
|
12908
|
-
limit: number;
|
|
12909
|
-
offset: number;
|
|
12910
|
-
search?: string | undefined;
|
|
12911
|
-
listId?: string | undefined;
|
|
12912
|
-
openingLineIsNull?: boolean | undefined;
|
|
12913
|
-
batchId?: string | undefined;
|
|
12914
|
-
contactStatus?: "active" | "invalid" | undefined;
|
|
12915
|
-
}>];
|
|
12916
|
-
detail: (organizationId: WorkOsOrgId | null, contactId: string) => readonly ["acquisition-contacts", "detail", WorkOsOrgId | null, string];
|
|
12917
|
-
};
|
|
12918
13063
|
declare function useContacts(filters?: Partial<ListContactsQuery>): _tanstack_react_query.UseQueryResult<{
|
|
12919
13064
|
data: {
|
|
12920
13065
|
id: string;
|
|
@@ -13109,6 +13254,55 @@ declare function useUpdateContact(contactId: string): _tanstack_react_query.UseM
|
|
|
13109
13254
|
}, unknown>;
|
|
13110
13255
|
declare function useDeleteContacts(): _tanstack_react_query.UseMutationResult<void, Error, string[], unknown>;
|
|
13111
13256
|
|
|
13257
|
+
/**
|
|
13258
|
+
* Query keys for the acquisition companies and contacts domains.
|
|
13259
|
+
*
|
|
13260
|
+
* These two live together, apart from the hooks that use them, for one reason: every company
|
|
13261
|
+
* mutation must invalidate contacts and every contact mutation must invalidate companies, because
|
|
13262
|
+
* a contact row carries its company's denormalized fields. Defining each key next to its own hook
|
|
13263
|
+
* meant `useCompanies` and `useContacts` importing each other -- a cycle that happens to work,
|
|
13264
|
+
* since both references sit inside function bodies rather than at module scope, but that turns into
|
|
13265
|
+
* a temporal-dead-zone error the moment someone reads a key at module eval time. This module is
|
|
13266
|
+
* what makes the cross-invalidation expressible without the cycle.
|
|
13267
|
+
*
|
|
13268
|
+
* The rest of the acquisition domain keeps its keys colocated with its hooks (`acquisitionListKeys`
|
|
13269
|
+
* in `useLists`, `dealKeys` in `useDeals`, and so on). That convention is intact -- these two are
|
|
13270
|
+
* here because they are mutually dependent, not because the convention changed.
|
|
13271
|
+
*/
|
|
13272
|
+
|
|
13273
|
+
declare const companyKeys: {
|
|
13274
|
+
all: readonly ["acquisition-companies"];
|
|
13275
|
+
list: (organizationId: WorkOsOrgId | null, filters: Partial<ListCompaniesQuery>) => readonly ["acquisition-companies", "list", WorkOsOrgId | null, Partial<{
|
|
13276
|
+
limit: number;
|
|
13277
|
+
offset: number;
|
|
13278
|
+
search?: string | undefined;
|
|
13279
|
+
listId?: string | undefined;
|
|
13280
|
+
domain?: string | undefined;
|
|
13281
|
+
website?: string | undefined;
|
|
13282
|
+
segment?: string | undefined;
|
|
13283
|
+
category?: string | undefined;
|
|
13284
|
+
pipelineStatus?: unknown;
|
|
13285
|
+
batchId?: string | undefined;
|
|
13286
|
+
status?: "active" | "invalid" | undefined;
|
|
13287
|
+
includeAll?: boolean | undefined;
|
|
13288
|
+
}>];
|
|
13289
|
+
facets: (organizationId: WorkOsOrgId | null) => readonly ["acquisition-companies", "facets", WorkOsOrgId | null];
|
|
13290
|
+
detail: (organizationId: WorkOsOrgId | null, companyId: string) => readonly ["acquisition-companies", "detail", WorkOsOrgId | null, string];
|
|
13291
|
+
};
|
|
13292
|
+
declare const contactKeys: {
|
|
13293
|
+
all: readonly ["acquisition-contacts"];
|
|
13294
|
+
list: (organizationId: WorkOsOrgId | null, filters: Partial<ListContactsQuery>) => readonly ["acquisition-contacts", "list", WorkOsOrgId | null, Partial<{
|
|
13295
|
+
limit: number;
|
|
13296
|
+
offset: number;
|
|
13297
|
+
search?: string | undefined;
|
|
13298
|
+
listId?: string | undefined;
|
|
13299
|
+
openingLineIsNull?: boolean | undefined;
|
|
13300
|
+
batchId?: string | undefined;
|
|
13301
|
+
contactStatus?: "active" | "invalid" | undefined;
|
|
13302
|
+
}>];
|
|
13303
|
+
detail: (organizationId: WorkOsOrgId | null, contactId: string) => readonly ["acquisition-contacts", "detail", WorkOsOrgId | null, string];
|
|
13304
|
+
};
|
|
13305
|
+
|
|
13112
13306
|
declare const leadGenArtifactKeys: {
|
|
13113
13307
|
all: readonly ["lead-gen-artifacts"];
|
|
13114
13308
|
list: (organizationId: WorkOsOrgId | null, ownerKind: AcqArtifactOwnerKind, ownerId: string | null | undefined) => readonly ["lead-gen-artifacts", WorkOsOrgId | null, "company" | "contact" | "list" | "organization" | "deal" | "list_member", string | null | undefined];
|
|
@@ -13287,10 +13481,10 @@ interface CreateApiKeyResponse {
|
|
|
13287
13481
|
interface ListApiKeysResponse {
|
|
13288
13482
|
keys: ApiKeyListItem[];
|
|
13289
13483
|
}
|
|
13290
|
-
type ApiRequest$
|
|
13484
|
+
type ApiRequest$2 = <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
13291
13485
|
declare class ApiKeyService {
|
|
13292
13486
|
private apiRequest;
|
|
13293
|
-
constructor(apiRequest: ApiRequest$
|
|
13487
|
+
constructor(apiRequest: ApiRequest$2);
|
|
13294
13488
|
/**
|
|
13295
13489
|
* List API keys for the current organization
|
|
13296
13490
|
*/
|
|
@@ -13311,6 +13505,11 @@ declare class ApiKeyService {
|
|
|
13311
13505
|
deleteApiKey(keyId: string): Promise<void>;
|
|
13312
13506
|
}
|
|
13313
13507
|
|
|
13508
|
+
declare const apiKeysKeys: {
|
|
13509
|
+
all: readonly ["api-keys"];
|
|
13510
|
+
list: (organizationId: WorkOsOrgId | null | undefined) => readonly ["api-keys", WorkOsOrgId | null | undefined];
|
|
13511
|
+
};
|
|
13512
|
+
|
|
13314
13513
|
declare function useListApiKeys(): _tanstack_react_query.UseQueryResult<ApiKeyListItem[], Error>;
|
|
13315
13514
|
|
|
13316
13515
|
declare function useCreateApiKey(): _tanstack_react_query.UseMutationResult<CreateApiKeyResponse, Error, CreateApiKeyRequest, unknown>;
|
|
@@ -13342,10 +13541,10 @@ interface VerifyCredentialResponse {
|
|
|
13342
13541
|
message?: string;
|
|
13343
13542
|
details?: Record<string, unknown>;
|
|
13344
13543
|
}
|
|
13345
|
-
type ApiRequest$
|
|
13544
|
+
type ApiRequest$1 = <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
13346
13545
|
declare class CredentialService {
|
|
13347
13546
|
private apiRequest;
|
|
13348
|
-
constructor(apiRequest: ApiRequest$
|
|
13547
|
+
constructor(apiRequest: ApiRequest$1);
|
|
13349
13548
|
/**
|
|
13350
13549
|
* List credentials for the current organization
|
|
13351
13550
|
* Organization context is provided via workos-organization-id header
|
|
@@ -13375,6 +13574,11 @@ declare class CredentialService {
|
|
|
13375
13574
|
verifyCredential(credentialId: string): Promise<VerifyCredentialResponse>;
|
|
13376
13575
|
}
|
|
13377
13576
|
|
|
13577
|
+
declare const credentialsKeys: {
|
|
13578
|
+
all: readonly ["credentials"];
|
|
13579
|
+
list: (organizationId: WorkOsOrgId | null | undefined) => readonly ["credentials", WorkOsOrgId | null | undefined];
|
|
13580
|
+
};
|
|
13581
|
+
|
|
13378
13582
|
declare function useCredentials(): _tanstack_react_query.UseQueryResult<{
|
|
13379
13583
|
id: string;
|
|
13380
13584
|
name: string;
|
|
@@ -13397,10 +13601,10 @@ interface UpdateCredentialParams {
|
|
|
13397
13601
|
}
|
|
13398
13602
|
declare function useUpdateCredential(): _tanstack_react_query.UseMutationResult<void, Error, UpdateCredentialParams, unknown>;
|
|
13399
13603
|
|
|
13400
|
-
type ApiRequest
|
|
13604
|
+
type ApiRequest = <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
13401
13605
|
declare class DeploymentService {
|
|
13402
13606
|
private apiRequest;
|
|
13403
|
-
constructor(apiRequest: ApiRequest
|
|
13607
|
+
constructor(apiRequest: ApiRequest);
|
|
13404
13608
|
listDeployments(): Promise<Deployment[]>;
|
|
13405
13609
|
getDeployment(id: string): Promise<Deployment>;
|
|
13406
13610
|
activateDeployment(id: string): Promise<Deployment>;
|
|
@@ -13408,61 +13612,67 @@ declare class DeploymentService {
|
|
|
13408
13612
|
deleteDeployment(id: string): Promise<void>;
|
|
13409
13613
|
}
|
|
13410
13614
|
|
|
13615
|
+
declare const deploymentsKeys: {
|
|
13616
|
+
all: readonly ["deployments"];
|
|
13617
|
+
list: (organizationId: WorkOsOrgId | null | undefined) => readonly ["deployments", WorkOsOrgId | null | undefined];
|
|
13618
|
+
};
|
|
13619
|
+
|
|
13411
13620
|
declare function useListDeployments(): _tanstack_react_query.UseQueryResult<Deployment[], Error>;
|
|
13412
13621
|
|
|
13413
13622
|
declare function useActivateDeployment(): _tanstack_react_query.UseMutationResult<Deployment, Error, string, unknown>;
|
|
13414
13623
|
declare function useDeactivateDeployment(): _tanstack_react_query.UseMutationResult<Deployment, Error, string, unknown>;
|
|
13415
13624
|
declare function useDeleteDeployment(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
|
|
13416
13625
|
|
|
13417
|
-
type
|
|
13418
|
-
|
|
13419
|
-
|
|
13420
|
-
|
|
13421
|
-
|
|
13422
|
-
|
|
13423
|
-
|
|
13424
|
-
|
|
13425
|
-
|
|
13426
|
-
|
|
13427
|
-
|
|
13428
|
-
|
|
13429
|
-
|
|
13430
|
-
|
|
13431
|
-
|
|
13432
|
-
|
|
13433
|
-
|
|
13434
|
-
|
|
13435
|
-
|
|
13436
|
-
|
|
13437
|
-
|
|
13438
|
-
|
|
13439
|
-
|
|
13440
|
-
|
|
13441
|
-
|
|
13442
|
-
|
|
13443
|
-
|
|
13444
|
-
|
|
13445
|
-
|
|
13446
|
-
|
|
13447
|
-
|
|
13448
|
-
|
|
13449
|
-
|
|
13450
|
-
|
|
13451
|
-
|
|
13452
|
-
|
|
13453
|
-
|
|
13454
|
-
|
|
13455
|
-
|
|
13456
|
-
|
|
13457
|
-
|
|
13458
|
-
|
|
13459
|
-
|
|
13460
|
-
|
|
13461
|
-
|
|
13462
|
-
|
|
13463
|
-
|
|
13464
|
-
|
|
13465
|
-
|
|
13626
|
+
type MembershipApiRequest = <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
13627
|
+
/**
|
|
13628
|
+
* Get user's organization memberships
|
|
13629
|
+
*/
|
|
13630
|
+
declare function getUserMemberships(apiRequest: MembershipApiRequest, userId: string): Promise<MembershipWithDetails[]>;
|
|
13631
|
+
/**
|
|
13632
|
+
* Get organization members
|
|
13633
|
+
*/
|
|
13634
|
+
declare function getOrganizationMembers(apiRequest: MembershipApiRequest, organizationId: SupabaseOrgId): Promise<MembershipWithDetails[]>;
|
|
13635
|
+
/**
|
|
13636
|
+
* List memberships with filtering
|
|
13637
|
+
*/
|
|
13638
|
+
declare function listMemberships(apiRequest: MembershipApiRequest, params?: ListMembershipsParams): Promise<ListMembershipsResponse>;
|
|
13639
|
+
/**
|
|
13640
|
+
* Get a single membership by ID
|
|
13641
|
+
*/
|
|
13642
|
+
declare function getMembership(apiRequest: MembershipApiRequest, membershipId: string): Promise<MembershipWithDetails>;
|
|
13643
|
+
/**
|
|
13644
|
+
* Create a new organization membership
|
|
13645
|
+
*/
|
|
13646
|
+
declare function createMembership(apiRequest: MembershipApiRequest, data: CreateMembershipRequest): Promise<MembershipWithDetails>;
|
|
13647
|
+
/**
|
|
13648
|
+
* Update an existing membership
|
|
13649
|
+
*/
|
|
13650
|
+
declare function updateMembership(apiRequest: MembershipApiRequest, membershipId: string, data: UpdateMembershipRequest): Promise<MembershipWithDetails>;
|
|
13651
|
+
/**
|
|
13652
|
+
* Delete a membership
|
|
13653
|
+
*/
|
|
13654
|
+
declare function deleteMembership(apiRequest: MembershipApiRequest, membershipId: string): Promise<void>;
|
|
13655
|
+
/**
|
|
13656
|
+
* Deactivate a membership (soft delete)
|
|
13657
|
+
*/
|
|
13658
|
+
declare function deactivateMembership(apiRequest: MembershipApiRequest, membershipId: string): Promise<MembershipWithDetails>;
|
|
13659
|
+
/**
|
|
13660
|
+
* Reactivate a membership
|
|
13661
|
+
*/
|
|
13662
|
+
declare function reactivateMembership(apiRequest: MembershipApiRequest, membershipId: string): Promise<MembershipWithDetails>;
|
|
13663
|
+
/**
|
|
13664
|
+
* Write the WorkOS membership link the acceptance path failed to record --
|
|
13665
|
+
* the repair for a membership reported as `accepted_unlinked`.
|
|
13666
|
+
*
|
|
13667
|
+
* Idempotent on the server: an already-linked row returns unchanged. A row in
|
|
13668
|
+
* any other state is refused with a 409 rather than guessed at.
|
|
13669
|
+
*/
|
|
13670
|
+
declare function repairMembershipLink(apiRequest: MembershipApiRequest, membershipId: string): Promise<MembershipWithDetails>;
|
|
13671
|
+
|
|
13672
|
+
declare const membershipsKeys: {
|
|
13673
|
+
all: readonly ["memberships"];
|
|
13674
|
+
user: (userId: string, params?: Omit<ListMembershipsParams, "userId">) => readonly ["memberships", "user", string, Omit<ListMembershipsParams, "userId"> | undefined];
|
|
13675
|
+
};
|
|
13466
13676
|
|
|
13467
13677
|
declare function useUserMemberships(userId: string, params?: Omit<ListMembershipsParams, 'userId'>): _tanstack_react_query.UseQueryResult<MembershipWithDetails[], Error>;
|
|
13468
13678
|
|
|
@@ -13540,6 +13750,24 @@ type RevokeRoleInput = {
|
|
|
13540
13750
|
roleId: string;
|
|
13541
13751
|
};
|
|
13542
13752
|
|
|
13753
|
+
/**
|
|
13754
|
+
* `useOrgRoles` is the sole producer of this key. Every mutation that must
|
|
13755
|
+
* refresh the role list (`useCreateOrgRole`, `useDeleteOrgRole`,
|
|
13756
|
+
* `useUpdateOrgRole`, `useAssignRole`/`useRevokeRole` in `useMemberRoles`)
|
|
13757
|
+
* imports this factory rather than reconstructing `['org-roles', orgId]`
|
|
13758
|
+
* locally -- see `useMemberRoles`'s note on the org-id mismatch this class of
|
|
13759
|
+
* bug already caused once here.
|
|
13760
|
+
*/
|
|
13761
|
+
declare const orgRolesKeys: {
|
|
13762
|
+
all: readonly ["org-roles"];
|
|
13763
|
+
list: (organizationId: SupabaseOrgId | null | undefined) => readonly ["org-roles", SupabaseOrgId | null | undefined];
|
|
13764
|
+
};
|
|
13765
|
+
/** `useEffectivePermissions` is the sole producer; `useMemberRoles` invalidates it. */
|
|
13766
|
+
declare const memberRolesKeys: {
|
|
13767
|
+
all: readonly ["member-roles"];
|
|
13768
|
+
detail: (organizationId: SupabaseOrgId | null | undefined, membershipId: string | undefined) => readonly ["member-roles", SupabaseOrgId | null | undefined, string | undefined];
|
|
13769
|
+
};
|
|
13770
|
+
|
|
13543
13771
|
/**
|
|
13544
13772
|
* Roles for an organization, keyed on the **Supabase organization UUID**.
|
|
13545
13773
|
*
|
|
@@ -13606,6 +13834,11 @@ declare function useListWebhookEndpoints(): _tanstack_react_query.UseQueryResult
|
|
|
13606
13834
|
key?: string | undefined;
|
|
13607
13835
|
}[], Error>;
|
|
13608
13836
|
|
|
13837
|
+
declare const webhookEndpointsKeys: {
|
|
13838
|
+
all: readonly ["webhook-endpoints"];
|
|
13839
|
+
list: (organizationId: WorkOsOrgId | null | undefined) => readonly ["webhook-endpoints", WorkOsOrgId | null | undefined];
|
|
13840
|
+
};
|
|
13841
|
+
|
|
13609
13842
|
declare function useCreateWebhookEndpoint(): _tanstack_react_query.UseMutationResult<{
|
|
13610
13843
|
id: string;
|
|
13611
13844
|
organizationId: string;
|
|
@@ -14299,5 +14532,5 @@ declare function useCreateNote(): _tanstack_react_query.UseMutationResult<{
|
|
|
14299
14532
|
type?: string;
|
|
14300
14533
|
}, "organization_id">, unknown>;
|
|
14301
14534
|
|
|
14302
|
-
export { AccessKeys, ApiKeyService, CredentialService, DeploymentService,
|
|
14303
|
-
export type { AccessKeyInput, AcqCompanyWithCount, AcqContactWithCompany, AcqDealNote, AcqDealTask, AcqDealTaskKind, ActivityFilters, ActivityTrendResponse, AddCompaniesToListResult, AddContactsToListResult, AssignRoleInput, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CancelExecutionParams, CancelExecutionResult, ChatMessage, ClientDetailResponse, ClientResponse, ClientStatus, ClientStatusResponse, ClientsListFilters, CloudStorageDimensionMap, CloudStorageDimensions, CloudStorageFolderFilters, CloudStorageFolderParams, CloudStorageFolderResponse, CloudStorageImageDimensionsResult, CloudStorageTemporaryLink, CloudStorageTemporaryLinkMap, CloudStorageTemporaryLinksResult, CloudStorageThumbnailMap, CloudStorageThumbnailsResult, ContentAssetCrop, ContentAssetCropInput, ContentDistributionListResponse, ContentDistributionMetrics, ContentDistributionMetricsListResponse, ContentDistributionMetricsResponse, ContentDistributionResponse, ContentDistributionsListFilters, ContentItemAttemptListResponse, ContentItemAttemptResponse, ContentItemListResponse, ContentItemResponse, ContentItemReviewDecision, ContentItemSourceAssetDetail, ContentItemSourceAssetDetailsResult, ContentItemSourceAssetExpansion, ContentItemSourceAssetInput, ContentItemSourceAssetListResponse, ContentItemSourceAssetResponse, ContentItemStatus, ContentItemsListFilters, ContentPillar, ContentPipelineId, ContentPipelineSummary, ContentSourceAssetKind, ContentSourceAssetListResponse, ContentSourceAssetResponse, ContentSourceAssetsListFilters, CreateApiKeyRequest, CreateApiKeyResponse, CreateClientRequest, CreateContentDistributionRequest, CreateContentSourceAssetRequest, CreateCredentialRequest, CreateCredentialResponse, CreateOrgRoleInput, CreateScheduleInput, CreateSessionResponse, CredentialListItem, DealDetail, DealLookupFilters, DealLookupItem, DealSummaryStageItem, DealsSummaryResponse, DeleteExecutionParams, Deployment, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteActionInput, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsFilters, ExecutionLogsPageResponse, FailingResource, GetMessagesResponse, ListActivitiesResponse, ListApiKeysResponse, ListCredentialsResponse, ListExecutionsFilters, ListRecordsFilters, ListSchedulesFilters, ListSchedulesResponse, ListWebhookEndpointsResponse, MessageEvent, MessageType, OrgRole, OrganizationModelDriftState, RemoveCompaniesFromListResult, ReorderContentItemSourceAssetsRequest, RequestRow, RequestSeverity, RequestType, RequestsListFilters, ResourceFilterFacet, ResourcesResponse, RetryExecutionParams, ReviewContentItemRequest, RevokeRoleInput, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, SortDirection, SortState, StaleDealSummaryItem, StatefulItem, StatusFilter, StorageObjectRef, StorageSignedUrlMap, StorageSignedUrlsResult, SubmitActionRequest, SubmitActionResponse, SubmitRequestInput, SystemHealthExecutionSummary, SystemHealthResponse, TaskSchedule, TopFailingResourcesParams, TransitionItemInput, TransitionListCompanyInput, TransitionListMemberInput, TransitionStateInput, UpdateClientRequest, UpdateContentDistributionRequest, UpdateContentItemRequest, UpdateContentItemSourceAssetRequest, UpdateContentSourceAssetRequest, UpdateListStatusInput, UpdateOrgRoleInput, UpdateScheduleInput, UploadStorageFileParams, UploadStorageFileResult, UseAccessResult, UseActivitiesParams, UseActivityTrendParams, UseArtifactsParams, UseBatchedResourcesHealthParams, UseExecuteResourceOptions, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseExecutionSSEOptions, UseExecutionSSEResult, UseInFlightExecutionsOptions, UseListProgressOptions, UseNotificationCountArgs, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, UseSystemHealthParams, UseWorkflowExecutionOptions, UseWorkflowExecutionResult, VerifyCredentialResponse, WebSocketState, WorkflowExecutionTriggerParams };
|
|
14535
|
+
export { AccessKeys, ApiKeyService, CredentialService, DEFAULT_TIME_RANGE, DeploymentService, IN_FLIGHT_EXECUTION_STATUSES, OperationsService, REFETCH_INTERVAL_RUNNING, SIGNED_URL_EXPIRES_IN_SECONDS, TEMPORARY_LINK_STALE_MS, TERMINAL_EXECUTION_STATUSES, THUMBNAIL_BATCH_SIZE, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, WebhookEndpointService, accessKeys, acquisitionListKeys, activityKeys, apiKeysKeys, chunkIntoBatches, clientsKeys, cloudStorageKeys, collectResourceFilterFacets, commandQueueKeys, companyKeys, contactKeys, contentKeys, costAnalyticsKeys, createMembership, credentialsKeys, deactivateMembership, dealKeys, dealNoteKeys, dealTaskKeys, deleteMembership, deploymentsKeys, executionsKeys, filterByDomainFilters, getMembership, getOrganizationMembers, getResourceFilterFacetIds, getUserMemberships, isExecutionInFlight, isSessionCapable, joinSourceAssetDetails, labelResourceFilterFacet, leadGenArtifactKeys, leadGenListCompanyKeys, leadGenListMemberKeys, listMemberships, measureImageDimensions, memberRolesKeys, membershipsKeys, mergeSessionMessages, mergeThumbnailBatches, milestoneKeys, monitoringKeys, noteKeys, notificationKeys, observabilityKeys, operationsKeys, orgRolesKeys, pickCoverSourceAsset, pickLatestRunAt, projectActivityKeys, projectKeys, reactivateMembership, readItemSourceAssets, repairMembershipLink, requestsKeys, scheduleKeys, sessionsKeys, sortData, storageKeys, storageObjectRefKey, sumStatusCounts, taskKeys, updateMembership, useAccess, useActivateDeployment, useActivities, useActivitiesRealtime, useActivityFilters, useActivityTrend, useAddCompaniesToList, useAddContactsToList, useAddContentItemSourceAsset, useArchiveSession, useArchivedLogs, useArtifacts, useAssignRole, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCheckpointTasks, useClient, useClientStatus, useClients, useCloudStorageFolder, useCloudStorageImageDimensions, useCloudStorageTemporaryLinks, useCloudStorageThumbnails, useCommandQueue, useCommandQueueTask, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewStats, useCommandViewStore, useCompanies, useCompany, useCompanyFacets, useCompleteDealTask, useContact, useContacts, useContentDistribution, useContentDistributionMetrics, useContentDistributions, useContentItem, useContentItemAttempts, useContentItemSourceAssetDetails, useContentItemSourceAssets, useContentItems, useContentPipelineSummary, useContentSourceAsset, useContentSourceAssets, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateArtifact, useCreateClient, useCreateCompany, useCreateContact, useCreateContentDistribution, useCreateContentItem, useCreateContentSourceAsset, 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, useDeleteTask as useDeleteDeliveryTask, useDeleteDeployment, useDeleteExecution, useDeleteList, useDeleteMilestone, useDeleteOrgRole, useDeleteRequest, useDeleteSchedule, useDeleteSession, useDeleteTask$1 as 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, useMergedExecution, useMilestones, useNotificationCount as useNotificationCountSSE, useNotifications, useOrgRoles, useOrganizationMembers, useOrganizationModelDrift, usePaginationState, usePatchTask, usePauseSchedule, usePermissionCatalog, useProject, useProjectActivities, useProjectMilestones, useProjectNotes, useProjectRealtime, useProjectTasks, useProjects, useReactivateMembership, useRecentExecutionsByResource, useRemoveCompaniesFromList, useRemoveContentItemSourceAsset, useReorderContentItemSourceAssets, useRequest, useRequestsList, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResolvedTimeRange, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useReviewContentItem, useRevokeRole, useSSEConnection, useScheduledTasks, useSession, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useStatusFilter, useStorageSignedUrls, useSubmitAction, useSubmitRequest, useSuccessNotification, useSystemHealth, useTableSelection, useTableSort, useTasks, useTestNotification, useTimeRangeDates, useTopFailingResources, useTransitionItem, useTransitionListCompany, useTransitionListMember, useTransitionState, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateClient, useUpdateCompany, useUpdateContact, useUpdateContentDistribution, useUpdateContentItem, useUpdateContentItemSourceAsset, useUpdateContentSourceAsset, useUpdateCredential, useUpdateProject as useUpdateDeliveryProject, useUpdateList, useUpdateListConfig, useUpdateListStatus, useUpdateMilestone, useUpdateOrgRole, useUpdateRequestStatus, useUpdateSchedule, useUpdateTask, useUpdateWebhookEndpoint, useUploadStorageFile, useUserMemberships, useVerifyCredential, useVisibleResources, useWarningNotification, useWorkflowExecution, webhookEndpointsKeys };
|
|
14536
|
+
export type { AccessKeyInput, AcqCompanyWithCount, AcqContactWithCompany, AcqDealNote, AcqDealTask, AcqDealTaskKind, ActivityFilters, ActivityTrendResponse, AddCompaniesToListResult, AddContactsToListResult, AssignRoleInput, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CancelExecutionParams, CancelExecutionResult, ChatMessage, ClientDetailResponse, ClientResponse, ClientStatus, ClientStatusResponse, ClientsListFilters, CloudStorageDimensionMap, CloudStorageDimensions, CloudStorageFolderFilters, CloudStorageFolderParams, CloudStorageFolderResponse, CloudStorageImageDimensionsResult, CloudStorageTemporaryLink, CloudStorageTemporaryLinkMap, CloudStorageTemporaryLinksResult, CloudStorageThumbnailMap, CloudStorageThumbnailsResult, CommandQueueListKeyFilters, ContentAssetCrop, ContentAssetCropInput, ContentDistributionListResponse, ContentDistributionMetrics, ContentDistributionMetricsListResponse, ContentDistributionMetricsResponse, ContentDistributionResponse, ContentDistributionsListFilters, ContentItemAttemptListResponse, ContentItemAttemptResponse, ContentItemListResponse, ContentItemResponse, ContentItemReviewDecision, ContentItemSourceAssetDetail, ContentItemSourceAssetDetailsResult, ContentItemSourceAssetExpansion, ContentItemSourceAssetInput, ContentItemSourceAssetListResponse, ContentItemSourceAssetResponse, ContentItemStatus, ContentItemsListFilters, ContentPillar, ContentPipelineId, ContentPipelineSummary, ContentSourceAssetKind, ContentSourceAssetListResponse, ContentSourceAssetResponse, ContentSourceAssetsListFilters, CreateApiKeyRequest, CreateApiKeyResponse, CreateClientRequest, CreateContentDistributionRequest, CreateContentSourceAssetRequest, CreateCredentialRequest, CreateCredentialResponse, CreateOrgRoleInput, CreateScheduleInput, CreateSessionResponse, CredentialListItem, DealDetail, DealLookupFilters, DealLookupItem, DealSummaryStageItem, DealsSummaryResponse, DeleteExecutionParams, Deployment, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteActionInput, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsFilters, ExecutionLogsPageResponse, FailingResource, GetMessagesResponse, ListActivitiesResponse, ListApiKeysResponse, ListCredentialsResponse, ListExecutionsFilters, ListRecordsFilters, ListSchedulesFilters, ListSchedulesResponse, ListWebhookEndpointsResponse, MembershipApiRequest, MessageEvent, MessageType, OrgRole, OrganizationModelDriftState, RemoveCompaniesFromListResult, ReorderContentItemSourceAssetsRequest, RequestRow, RequestSeverity, RequestType, RequestsListFilters, ResourceFilterFacet, ResourcesResponse, RetryExecutionParams, ReviewContentItemRequest, RevokeRoleInput, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, SortDirection, SortState, StaleDealSummaryItem, StatefulItem, StatusFilter, StorageObjectRef, StorageSignedUrlMap, StorageSignedUrlsResult, SubmitActionRequest, SubmitActionResponse, SubmitRequestInput, SystemHealthExecutionSummary, SystemHealthResponse, TaskSchedule, TopFailingResourcesParams, TransitionItemInput, TransitionListCompanyInput, TransitionListMemberInput, TransitionStateInput, UpdateClientRequest, UpdateContentDistributionRequest, UpdateContentItemRequest, UpdateContentItemSourceAssetRequest, UpdateContentSourceAssetRequest, UpdateListStatusInput, UpdateOrgRoleInput, UpdateScheduleInput, UploadStorageFileParams, UploadStorageFileResult, UseAccessResult, UseActivitiesParams, UseActivityTrendParams, UseArtifactsParams, UseBatchedResourcesHealthParams, UseExecuteResourceOptions, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseExecutionSSEOptions, UseExecutionSSEResult, UseInFlightExecutionsOptions, UseListProgressOptions, UseNotificationCountArgs, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, UseSubmitActionOptions, UseSystemHealthParams, UseWorkflowExecutionOptions, UseWorkflowExecutionResult, VerifyCredentialResponse, WebSocketState, WorkflowExecutionTriggerParams };
|