@burdenoff/microfe-botmanor 2026.1123.5 → 2026.1123.7
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/botlit/hooks/useExecutions.js +3 -2
- package/dist/botlit/hooks/useExecutions.js.map +1 -1
- package/dist/generated/wspace-operations.d.ts +46 -38
- package/dist/generated/wspace-operations.js +26 -23
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +2166 -10
- package/dist/generated/wspace-types.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetExecutionDocument as e, GetExecutionSummaryDocument as t,
|
|
1
|
+
import { GetExecutionDocument as e, GetExecutionSummaryDocument as t, ListBotmanorExecutionsPageDocument as n } from "../../generated/wspace-operations.js";
|
|
2
2
|
import { fieldsOf as r } from "./internal/mutationInput.js";
|
|
3
3
|
import { useWorkspaceId as i, useWorkspacePaginatedQuery as a, useWorkspaceQuery as o } from "./internal/workspaceGateway.js";
|
|
4
4
|
import { useMemo as s } from "react";
|
|
@@ -35,7 +35,8 @@ function f(e) {
|
|
|
35
35
|
document: n,
|
|
36
36
|
variables: o,
|
|
37
37
|
pageSize: c,
|
|
38
|
-
extractRows: (e) => e?.
|
|
38
|
+
extractRows: (e) => e?.listBotmanorExecutionsPage.items ?? l,
|
|
39
|
+
extractNextOffset: (e) => e?.listBotmanorExecutionsPage.nextOffset ?? null,
|
|
39
40
|
select: d,
|
|
40
41
|
fallback: l,
|
|
41
42
|
enabled: !!t,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useExecutions.js","names":["LIST_LIMIT","fieldsOf","NO_EXECUTIONS","toFilterInput","search","filter","identityRows","rows","useExecutions","workspaceId","useWorkspaceId","key","variables","useMemo","useWorkspacePaginatedQuery","ListExecutionsDocument","data","useExecutionSummary","useWorkspaceQuery","GetExecutionSummaryDocument","useExecution","executionId","GetExecutionDocument"],"sources":["../../../src/botlit/hooks/useExecutions.ts"],"sourcesContent":["/**\n * Executions Hooks\n * @module botlit/hooks\n *\n * Backed by the live `listExecutions` / `getExecution` / `getExecutionMetrics`\n * operations plus the `createExecution` / `updateExecutionStatus` mutations on\n * wspace-botlit-svc.\n *\n * Filtering (BOFF-12618): status sets, text search, agent, bot and date range\n * are all applied by the service, so every page — and the summary tiles from\n * `getExecutionSummary` — describe the whole history, not the loaded rows.\n */\n\nimport { useMemo } from 'react';\nimport {\n CreateExecutionDocument,\n GetExecutionDocument,\n GetExecutionMetricsDocument,\n GetExecutionSummaryDocument,\n ListExecutionsDocument,\n UpdateExecutionStatusDocument,\n type CreateExecutionMutation,\n type GetExecutionMetricsQuery,\n type GetExecutionQuery,\n type GetExecutionSummaryQuery,\n type ListExecutionsQuery,\n type UpdateExecutionStatusMutation,\n} from '../../generated/wspace-operations';\nimport type {\n CreateExecutionInput,\n ExecutionStatus,\n ExecutionType,\n} from '../../generated/wspace-types';\nimport { buildMutationInput, fieldsOf, type GraphQLInput } from './internal/mutationInput';\nimport {\n useWorkspaceId,\n useWorkspaceMutation,\n useWorkspacePaginatedQuery,\n useWorkspaceQuery,\n type PaginatedQueryResult,\n type QueryResult,\n} from './internal/workspaceGateway';\n\nconst LIST_LIMIT = 100;\n\nexport interface ExecutionRecord {\n id: string;\n status: string;\n type: string;\n input: string;\n output?: string | null;\n agentId?: string | null;\n appId?: string | null;\n /** BOFF-12619 — display names; null when the agent or bot no longer exists. */\n agentName?: string | null;\n appName?: string | null;\n conversationId?: string | null;\n cost?: number | null;\n duration?: number | null;\n tokensUsed?: number | null;\n errorCode?: string | null;\n errorMessage?: string | null;\n errorDetails?: Record<string, unknown> | null;\n metadata?: Record<string, unknown> | null;\n completedAt?: string | null;\n createdAt: string;\n workspaceId: string;\n /** BOFF-12620 — token split and cost recorded when the run finished. */\n metrics?: ExecutionMetricsRecord | null;\n}\n\nexport interface ExecutionMetricsRecord {\n executionId: string;\n cost: number;\n inputTokens: number;\n outputTokens: number;\n totalTokens: number;\n ragChunks: number;\n toolCalls: number;\n}\n\nexport interface ExecutionsFilter {\n search?: string;\n status?: ExecutionStatus[];\n agentId?: string;\n appId?: string;\n conversationId?: string;\n type?: ExecutionType;\n /** ISO timestamp — runs created at or after it. */\n startDate?: string;\n /** ISO timestamp — runs created at or before it. */\n endDate?: string;\n}\n\n/** Totals over every run matching a filter (`getExecutionSummary`). */\nexport interface ExecutionSummaryRecord {\n total: number;\n succeeded: number;\n failed: number;\n inProgress: number;\n avgDurationMs?: number | null;\n timedRuns: number;\n totalTokens: number;\n totalCost?: number | null;\n pricedRuns: number;\n unpricedRuns: number;\n}\n\nexport interface ExecutionMetricsFilter {\n agentId?: string;\n appId?: string;\n startDate?: string;\n endDate?: string;\n}\n\nexport interface CreateExecutionVariables {\n input: GraphQLInput<CreateExecutionInput>;\n}\n\nconst CREATE_EXECUTION_FIELDS = fieldsOf<CreateExecutionInput>({\n agentId: true,\n appId: true,\n conversationId: true,\n input: true,\n metadata: true,\n type: true,\n workspaceId: true,\n});\n\nexport interface UpdateExecutionStatusVariables {\n id: string;\n status: ExecutionStatus;\n output?: string;\n error?: Record<string, unknown>;\n}\n\nconst NO_EXECUTIONS: ExecutionRecord[] = [];\n\nexport const executionKeys = {\n all: ['executions'] as const,\n lists: () => [...executionKeys.all, 'list'] as const,\n list: (filter?: ExecutionsFilter) => [...executionKeys.lists(), filter] as const,\n details: () => [...executionKeys.all, 'detail'] as const,\n detail: (id: string) => [...executionKeys.details(), id] as const,\n metrics: () => [...executionKeys.all, 'metrics'] as const,\n};\n\n/** The `ExecutionFilterInput` for a page filter; empty values are left out. */\nfunction toFilterInput(workspaceId: string | undefined, filter?: ExecutionsFilter) {\n const search = filter?.search?.trim();\n return {\n workspaceId,\n statuses: filter?.status && filter.status.length > 0 ? filter.status : undefined,\n search: search ? search : undefined,\n agentId: filter?.agentId || undefined,\n appId: filter?.appId || undefined,\n conversationId: filter?.conversationId || undefined,\n type: filter?.type,\n startDate: filter?.startDate || undefined,\n endDate: filter?.endDate || undefined,\n };\n}\n\nconst identityRows = (rows: ExecutionRecord[]): ExecutionRecord[] => rows;\n\nexport function useExecutions(filter?: ExecutionsFilter): PaginatedQueryResult<ExecutionRecord[]> {\n const workspaceId = useWorkspaceId();\n const key = JSON.stringify(toFilterInput(workspaceId, filter));\n const variables = useMemo(\n () => ({ filters: JSON.parse(key) as ReturnType<typeof toFilterInput> }),\n [key]\n );\n\n return useWorkspacePaginatedQuery<ListExecutionsQuery, ExecutionRecord, ExecutionRecord[]>({\n document: ListExecutionsDocument,\n variables,\n pageSize: LIST_LIMIT,\n extractRows: (data) => data?.listExecutions ?? NO_EXECUTIONS,\n select: identityRows,\n fallback: NO_EXECUTIONS,\n enabled: Boolean(workspaceId),\n errorMessage: 'Failed to load executions',\n });\n}\n\n/**\n * Totals over every run matching the same filter as {@link useExecutions}\n * (BOFF-12614) — computed by the service over the whole history.\n */\nexport function useExecutionSummary(\n filter?: ExecutionsFilter\n): QueryResult<ExecutionSummaryRecord | null> {\n const workspaceId = useWorkspaceId();\n const key = JSON.stringify(toFilterInput(workspaceId, filter));\n const variables = useMemo(\n () => ({ filters: JSON.parse(key) as ReturnType<typeof toFilterInput> }),\n [key]\n );\n\n return useWorkspaceQuery<GetExecutionSummaryQuery, ExecutionSummaryRecord | null>({\n document: GetExecutionSummaryDocument,\n variables,\n select: (data) => data?.getExecutionSummary ?? null,\n fallback: null,\n enabled: Boolean(workspaceId),\n errorMessage: 'Failed to load the execution summary',\n });\n}\n\nexport function useExecution(executionId: string | undefined): QueryResult<ExecutionRecord | null> {\n const variables = useMemo(() => ({ id: executionId ?? '' }), [executionId]);\n\n return useWorkspaceQuery<GetExecutionQuery, ExecutionRecord | null>({\n document: GetExecutionDocument,\n variables,\n select: (data) => data?.getExecution ?? null,\n fallback: null,\n enabled: Boolean(executionId),\n errorMessage: 'Failed to load execution',\n });\n}\n\n/**\n * Token/cost metrics for the workspace, optionally narrowed to an agent, app or\n * date window. Returns `null` when the service has nothing recorded yet.\n */\nexport function useExecutionMetrics(\n filter?: ExecutionMetricsFilter\n): QueryResult<ExecutionMetricsRecord | null> {\n const workspaceId = useWorkspaceId();\n const { agentId, appId, startDate, endDate } = filter ?? {};\n\n const variables = useMemo(\n () => ({ filter: { workspaceId, agentId, appId, startDate, endDate } }),\n [workspaceId, agentId, appId, startDate, endDate]\n );\n\n return useWorkspaceQuery<GetExecutionMetricsQuery, ExecutionMetricsRecord | null>({\n document: GetExecutionMetricsDocument,\n variables,\n select: (data) => data?.getExecutionMetrics ?? null,\n fallback: null,\n enabled: Boolean(workspaceId),\n errorMessage: 'Failed to load execution metrics',\n });\n}\n\nexport function useCreateExecution() {\n return useWorkspaceMutation<CreateExecutionMutation, CreateExecutionVariables, ExecutionRecord>({\n document: CreateExecutionDocument,\n variables: ({ input }) => ({ input: buildMutationInput(input, CREATE_EXECUTION_FIELDS) }),\n select: (data) => data?.createExecution,\n errorMessage: 'Failed to start execution',\n });\n}\n\nexport function useUpdateExecutionStatus() {\n return useWorkspaceMutation<\n UpdateExecutionStatusMutation,\n UpdateExecutionStatusVariables,\n ExecutionRecord\n >({\n document: UpdateExecutionStatusDocument,\n variables: ({ id, status, output, error }) => ({\n id,\n input: {\n status,\n output,\n // The subgraph takes the failure as a message plus a JSON detail blob\n // (UpdateExecutionStatusInput); pass the caller's object through whole.\n errorMessage: typeof error?.message === 'string' ? error.message : undefined,\n errorDetails: error,\n },\n }),\n select: (data) => data?.updateExecutionStatus,\n errorMessage: 'Failed to update execution status',\n });\n}\n"],"mappings":";;;;;AA2CA,IAAMA,IAAa;AA4EaC,EAA+B;CAC7D,SAAS;CACT,OAAO;CACP,gBAAgB;CAChB,OAAO;CACP,UAAU;CACV,MAAM;CACN,aAAa;AACf,CAAC;AASD,IAAMC,IAAmC,CAAC;AAY1C,SAASC,EAAc,GAAiC,GAA2B;CACjF,IAAMC,IAASC,GAAQ,QAAQ,KAAK;CACpC,OAAO;EACL;EACA,UAAUA,GA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version":3,"file":"useExecutions.js","names":["LIST_LIMIT","fieldsOf","NO_EXECUTIONS","toFilterInput","search","filter","identityRows","rows","useExecutions","workspaceId","useWorkspaceId","key","variables","useMemo","useWorkspacePaginatedQuery","ListBotmanorExecutionsPageDocument","data","useExecutionSummary","useWorkspaceQuery","GetExecutionSummaryDocument","useExecution","executionId","GetExecutionDocument"],"sources":["../../../src/botlit/hooks/useExecutions.ts"],"sourcesContent":["/**\n * Executions Hooks\n * @module botlit/hooks\n *\n * Uses `listBotmanorExecutionsPage`, `getExecution` and `getExecutionMetrics`,\n * together with the `createExecution` and `updateExecutionStatus` mutations.\n *\n * Filtering (BOFF-12618): status sets, text search, agent, bot and date range\n * are all applied by the service, so every page — and the summary tiles from\n * `getExecutionSummary` — describe the whole history, not the loaded rows.\n */\n\nimport { useMemo } from 'react';\nimport {\n CreateExecutionDocument,\n GetExecutionDocument,\n GetExecutionMetricsDocument,\n GetExecutionSummaryDocument,\n ListBotmanorExecutionsPageDocument,\n UpdateExecutionStatusDocument,\n type CreateExecutionMutation,\n type GetExecutionMetricsQuery,\n type GetExecutionQuery,\n type GetExecutionSummaryQuery,\n type ListBotmanorExecutionsPageQuery,\n type UpdateExecutionStatusMutation,\n} from '../../generated/wspace-operations';\nimport type {\n CreateExecutionInput,\n ExecutionStatus,\n ExecutionType,\n} from '../../generated/wspace-types';\nimport { buildMutationInput, fieldsOf, type GraphQLInput } from './internal/mutationInput';\nimport {\n useWorkspaceId,\n useWorkspaceMutation,\n useWorkspacePaginatedQuery,\n useWorkspaceQuery,\n type PaginatedQueryResult,\n type QueryResult,\n} from './internal/workspaceGateway';\n\nconst LIST_LIMIT = 100;\n\nexport interface ExecutionRecord {\n id: string;\n status: string;\n type: string;\n input: string;\n output?: string | null;\n agentId?: string | null;\n appId?: string | null;\n /** BOFF-12619 — display names; null when the agent or bot no longer exists. */\n agentName?: string | null;\n appName?: string | null;\n conversationId?: string | null;\n cost?: number | null;\n duration?: number | null;\n tokensUsed?: number | null;\n errorCode?: string | null;\n errorMessage?: string | null;\n errorDetails?: Record<string, unknown> | null;\n metadata?: Record<string, unknown> | null;\n completedAt?: string | null;\n createdAt: string;\n workspaceId: string;\n /** BOFF-12620 — token split and cost recorded when the run finished. */\n metrics?: ExecutionMetricsRecord | null;\n}\n\nexport interface ExecutionMetricsRecord {\n executionId: string;\n cost: number;\n inputTokens: number;\n outputTokens: number;\n totalTokens: number;\n ragChunks: number;\n toolCalls: number;\n}\n\nexport interface ExecutionsFilter {\n search?: string;\n status?: ExecutionStatus[];\n agentId?: string;\n appId?: string;\n conversationId?: string;\n type?: ExecutionType;\n /** ISO timestamp — runs created at or after it. */\n startDate?: string;\n /** ISO timestamp — runs created at or before it. */\n endDate?: string;\n}\n\n/** Totals over every run matching a filter (`getExecutionSummary`). */\nexport interface ExecutionSummaryRecord {\n total: number;\n succeeded: number;\n failed: number;\n inProgress: number;\n avgDurationMs?: number | null;\n timedRuns: number;\n totalTokens: number;\n totalCost?: number | null;\n pricedRuns: number;\n unpricedRuns: number;\n}\n\nexport interface ExecutionMetricsFilter {\n agentId?: string;\n appId?: string;\n startDate?: string;\n endDate?: string;\n}\n\nexport interface CreateExecutionVariables {\n input: GraphQLInput<CreateExecutionInput>;\n}\n\nconst CREATE_EXECUTION_FIELDS = fieldsOf<CreateExecutionInput>({\n agentId: true,\n appId: true,\n conversationId: true,\n input: true,\n metadata: true,\n type: true,\n workspaceId: true,\n});\n\nexport interface UpdateExecutionStatusVariables {\n id: string;\n status: ExecutionStatus;\n output?: string;\n error?: Record<string, unknown>;\n}\n\nconst NO_EXECUTIONS: ExecutionRecord[] = [];\n\nexport const executionKeys = {\n all: ['executions'] as const,\n lists: () => [...executionKeys.all, 'list'] as const,\n list: (filter?: ExecutionsFilter) => [...executionKeys.lists(), filter] as const,\n details: () => [...executionKeys.all, 'detail'] as const,\n detail: (id: string) => [...executionKeys.details(), id] as const,\n metrics: () => [...executionKeys.all, 'metrics'] as const,\n};\n\n/** The `ExecutionFilterInput` for a page filter; empty values are left out. */\nfunction toFilterInput(workspaceId: string | undefined, filter?: ExecutionsFilter) {\n const search = filter?.search?.trim();\n return {\n workspaceId,\n statuses: filter?.status && filter.status.length > 0 ? filter.status : undefined,\n search: search ? search : undefined,\n agentId: filter?.agentId || undefined,\n appId: filter?.appId || undefined,\n conversationId: filter?.conversationId || undefined,\n type: filter?.type,\n startDate: filter?.startDate || undefined,\n endDate: filter?.endDate || undefined,\n };\n}\n\nconst identityRows = (rows: ExecutionRecord[]): ExecutionRecord[] => rows;\n\nexport function useExecutions(filter?: ExecutionsFilter): PaginatedQueryResult<ExecutionRecord[]> {\n const workspaceId = useWorkspaceId();\n const key = JSON.stringify(toFilterInput(workspaceId, filter));\n const variables = useMemo(\n () => ({ filters: JSON.parse(key) as ReturnType<typeof toFilterInput> }),\n [key]\n );\n\n return useWorkspacePaginatedQuery<\n ListBotmanorExecutionsPageQuery,\n ExecutionRecord,\n ExecutionRecord[]\n >({\n document: ListBotmanorExecutionsPageDocument,\n variables,\n pageSize: LIST_LIMIT,\n extractRows: (data) => data?.listBotmanorExecutionsPage.items ?? NO_EXECUTIONS,\n extractNextOffset: (data) => data?.listBotmanorExecutionsPage.nextOffset ?? null,\n select: identityRows,\n fallback: NO_EXECUTIONS,\n enabled: Boolean(workspaceId),\n errorMessage: 'Failed to load executions',\n });\n}\n\n/**\n * Totals over every run matching the same filter as {@link useExecutions}\n * (BOFF-12614) — computed by the service over the whole history.\n */\nexport function useExecutionSummary(\n filter?: ExecutionsFilter\n): QueryResult<ExecutionSummaryRecord | null> {\n const workspaceId = useWorkspaceId();\n const key = JSON.stringify(toFilterInput(workspaceId, filter));\n const variables = useMemo(\n () => ({ filters: JSON.parse(key) as ReturnType<typeof toFilterInput> }),\n [key]\n );\n\n return useWorkspaceQuery<GetExecutionSummaryQuery, ExecutionSummaryRecord | null>({\n document: GetExecutionSummaryDocument,\n variables,\n select: (data) => data?.getExecutionSummary ?? null,\n fallback: null,\n enabled: Boolean(workspaceId),\n errorMessage: 'Failed to load the execution summary',\n });\n}\n\nexport function useExecution(executionId: string | undefined): QueryResult<ExecutionRecord | null> {\n const variables = useMemo(() => ({ id: executionId ?? '' }), [executionId]);\n\n return useWorkspaceQuery<GetExecutionQuery, ExecutionRecord | null>({\n document: GetExecutionDocument,\n variables,\n select: (data) => data?.getExecution ?? null,\n fallback: null,\n enabled: Boolean(executionId),\n errorMessage: 'Failed to load execution',\n });\n}\n\n/**\n * Token/cost metrics for the workspace, optionally narrowed to an agent, app or\n * date window. Returns `null` when the service has nothing recorded yet.\n */\nexport function useExecutionMetrics(\n filter?: ExecutionMetricsFilter\n): QueryResult<ExecutionMetricsRecord | null> {\n const workspaceId = useWorkspaceId();\n const { agentId, appId, startDate, endDate } = filter ?? {};\n\n const variables = useMemo(\n () => ({ filter: { workspaceId, agentId, appId, startDate, endDate } }),\n [workspaceId, agentId, appId, startDate, endDate]\n );\n\n return useWorkspaceQuery<GetExecutionMetricsQuery, ExecutionMetricsRecord | null>({\n document: GetExecutionMetricsDocument,\n variables,\n select: (data) => data?.getExecutionMetrics ?? null,\n fallback: null,\n enabled: Boolean(workspaceId),\n errorMessage: 'Failed to load execution metrics',\n });\n}\n\nexport function useCreateExecution() {\n return useWorkspaceMutation<CreateExecutionMutation, CreateExecutionVariables, ExecutionRecord>({\n document: CreateExecutionDocument,\n variables: ({ input }) => ({ input: buildMutationInput(input, CREATE_EXECUTION_FIELDS) }),\n select: (data) => data?.createExecution,\n errorMessage: 'Failed to start execution',\n });\n}\n\nexport function useUpdateExecutionStatus() {\n return useWorkspaceMutation<\n UpdateExecutionStatusMutation,\n UpdateExecutionStatusVariables,\n ExecutionRecord\n >({\n document: UpdateExecutionStatusDocument,\n variables: ({ id, status, output, error }) => ({\n id,\n input: {\n status,\n output,\n // The subgraph takes the failure as a message plus a JSON detail blob\n // (UpdateExecutionStatusInput); pass the caller's object through whole.\n errorMessage: typeof error?.message === 'string' ? error.message : undefined,\n errorDetails: error,\n },\n }),\n select: (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EAA2E;EAChF,UAAUC;EACV;EACA,SAAS,MAASH,GAAM,uBAAuB;EAC/C,UAAU;EACV,SAAS,EAAQP;EACjB,cAAc;CAChB,CAAC;AACH;AAEA,SAAgBW,EAAa,GAAsE;CACjG,IAAMR,IAAYC,SAAe,EAAE,IAAIQ,KAAe,GAAG,IAAI,CAACA,CAAW,CAAC;CAE1E,OAAOH,EAA6D;EAClE,UAAUI;EACV;EACA,SAAS,MAASN,GAAM,gBAAgB;EACxC,UAAU;EACV,SAAS,EAAQK;EACjB,cAAc;CAChB,CAAC;AACH"}
|
|
@@ -102,6 +102,11 @@ export type BotmanorLlmProviderFilterInput = {
|
|
|
102
102
|
workspaceId?: string | number | null | undefined;
|
|
103
103
|
};
|
|
104
104
|
export type BotmanorLlmProviderType = 'ANTHROPIC' | 'AWS_BEDROCK' | 'AZURE_OPENAI' | 'COHERE' | 'CUSTOM' | 'GOOGLE' | 'GROQ' | 'HUGGINGFACE' | 'MISTRAL' | 'OPENAI' | 'TOGETHER';
|
|
105
|
+
/** An offset page for BotManor lists that report totals and continuation. */
|
|
106
|
+
export type BotmanorOffsetPaginationInput = {
|
|
107
|
+
limit?: number | null | undefined;
|
|
108
|
+
offset?: number | null | undefined;
|
|
109
|
+
};
|
|
105
110
|
export type BucketFilterInput = {
|
|
106
111
|
context?: ContextFilterInput | null | undefined;
|
|
107
112
|
parentBucketId?: string | number | null | undefined;
|
|
@@ -2105,33 +2110,36 @@ export type GetExecutionQuery = {
|
|
|
2105
2110
|
} | null;
|
|
2106
2111
|
} | null;
|
|
2107
2112
|
};
|
|
2108
|
-
export type
|
|
2113
|
+
export type ListBotmanorExecutionsPageQueryVariables = Exact<{
|
|
2109
2114
|
filters?: Types.ExecutionFilterInput | null | undefined;
|
|
2110
|
-
pagination?: Types.
|
|
2115
|
+
pagination?: Types.BotmanorOffsetPaginationInput | null | undefined;
|
|
2111
2116
|
}>;
|
|
2112
|
-
export type
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2117
|
+
export type ListBotmanorExecutionsPageQuery = {
|
|
2118
|
+
listBotmanorExecutionsPage: {
|
|
2119
|
+
nextOffset: number | null;
|
|
2120
|
+
items: Array<{
|
|
2121
|
+
agentId: string | null;
|
|
2122
|
+
appId: string | null;
|
|
2123
|
+
completedAt: string | null;
|
|
2124
|
+
conversationId: string | null;
|
|
2125
|
+
cost: number | null;
|
|
2126
|
+
createdAt: string;
|
|
2127
|
+
duration: number | null;
|
|
2128
|
+
errorCode: string | null;
|
|
2129
|
+
errorDetails: Record<string, unknown> | null;
|
|
2130
|
+
errorMessage: string | null;
|
|
2131
|
+
id: string;
|
|
2132
|
+
input: string;
|
|
2133
|
+
metadata: Record<string, unknown> | null;
|
|
2134
|
+
output: string | null;
|
|
2135
|
+
status: Types.ExecutionStatus;
|
|
2136
|
+
tokensUsed: number | null;
|
|
2137
|
+
type: Types.ExecutionType;
|
|
2138
|
+
workspaceId: string;
|
|
2139
|
+
agentName: string | null;
|
|
2140
|
+
appName: string | null;
|
|
2141
|
+
}>;
|
|
2142
|
+
};
|
|
2135
2143
|
};
|
|
2136
2144
|
export type GetExecutionMetricsQueryVariables = Exact<{
|
|
2137
2145
|
filter: Types.ExecutionMetricsFilterInput;
|
|
@@ -5828,32 +5836,32 @@ export type GetExecutionQueryHookResult = ReturnType<typeof useGetExecutionQuery
|
|
|
5828
5836
|
export type GetExecutionLazyQueryHookResult = ReturnType<typeof useGetExecutionLazyQuery>;
|
|
5829
5837
|
export type GetExecutionSuspenseQueryHookResult = ReturnType<typeof useGetExecutionSuspenseQuery>;
|
|
5830
5838
|
export type GetExecutionQueryResult = Apollo.QueryResult<Types.GetExecutionQuery, Types.GetExecutionQueryVariables>;
|
|
5831
|
-
export declare const
|
|
5839
|
+
export declare const ListBotmanorExecutionsPageDocument: Apollo.DocumentNode;
|
|
5832
5840
|
/**
|
|
5833
|
-
*
|
|
5841
|
+
* __useListBotmanorExecutionsPageQuery__
|
|
5834
5842
|
*
|
|
5835
|
-
* To run a query within a React component, call `
|
|
5836
|
-
* When your component renders, `
|
|
5843
|
+
* To run a query within a React component, call `useListBotmanorExecutionsPageQuery` and pass it any options that fit your needs.
|
|
5844
|
+
* When your component renders, `useListBotmanorExecutionsPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
5837
5845
|
* you can use to render your UI.
|
|
5838
5846
|
*
|
|
5839
5847
|
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
5840
5848
|
*
|
|
5841
5849
|
* @example
|
|
5842
|
-
* const { data, loading, error } =
|
|
5850
|
+
* const { data, loading, error } = useListBotmanorExecutionsPageQuery({
|
|
5843
5851
|
* variables: {
|
|
5844
5852
|
* filters: // value for 'filters'
|
|
5845
5853
|
* pagination: // value for 'pagination'
|
|
5846
5854
|
* },
|
|
5847
5855
|
* });
|
|
5848
5856
|
*/
|
|
5849
|
-
export declare function
|
|
5850
|
-
export declare function
|
|
5851
|
-
export declare function
|
|
5852
|
-
export declare function
|
|
5853
|
-
export type
|
|
5854
|
-
export type
|
|
5855
|
-
export type
|
|
5856
|
-
export type
|
|
5857
|
+
export declare function useListBotmanorExecutionsPageQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<Types.ListBotmanorExecutionsPageQuery, Types.ListBotmanorExecutionsPageQueryVariables>): ApolloReactHooks.useQuery.Result<Types.ListBotmanorExecutionsPageQuery, Types.ListBotmanorExecutionsPageQueryVariables, "empty" | "complete" | "streaming", Types.ListBotmanorExecutionsPageQueryVariables, undefined>;
|
|
5858
|
+
export declare function useListBotmanorExecutionsPageLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.ListBotmanorExecutionsPageQuery, Types.ListBotmanorExecutionsPageQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.ListBotmanorExecutionsPageQuery, Types.ListBotmanorExecutionsPageQueryVariables, "empty" | "complete" | "streaming", undefined>;
|
|
5859
|
+
export declare function useListBotmanorExecutionsPageSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.ListBotmanorExecutionsPageQuery, Types.ListBotmanorExecutionsPageQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.ListBotmanorExecutionsPageQuery, Types.ListBotmanorExecutionsPageQueryVariables>;
|
|
5860
|
+
export declare function useListBotmanorExecutionsPageSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.ListBotmanorExecutionsPageQuery, Types.ListBotmanorExecutionsPageQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.ListBotmanorExecutionsPageQuery | undefined, Types.ListBotmanorExecutionsPageQueryVariables>;
|
|
5861
|
+
export type ListBotmanorExecutionsPageQueryHookResult = ReturnType<typeof useListBotmanorExecutionsPageQuery>;
|
|
5862
|
+
export type ListBotmanorExecutionsPageLazyQueryHookResult = ReturnType<typeof useListBotmanorExecutionsPageLazyQuery>;
|
|
5863
|
+
export type ListBotmanorExecutionsPageSuspenseQueryHookResult = ReturnType<typeof useListBotmanorExecutionsPageSuspenseQuery>;
|
|
5864
|
+
export type ListBotmanorExecutionsPageQueryResult = Apollo.QueryResult<Types.ListBotmanorExecutionsPageQuery, Types.ListBotmanorExecutionsPageQueryVariables>;
|
|
5857
5865
|
export declare const GetExecutionMetricsDocument: Apollo.DocumentNode;
|
|
5858
5866
|
/**
|
|
5859
5867
|
* __useGetExecutionMetricsQuery__
|
|
@@ -1061,28 +1061,31 @@ var U = e`
|
|
|
1061
1061
|
}
|
|
1062
1062
|
}
|
|
1063
1063
|
`, J = e`
|
|
1064
|
-
query
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1064
|
+
query ListBotmanorExecutionsPage($filters: ExecutionFilterInput, $pagination: BotmanorOffsetPaginationInput) {
|
|
1065
|
+
listBotmanorExecutionsPage(filters: $filters, pagination: $pagination) {
|
|
1066
|
+
items {
|
|
1067
|
+
agentId
|
|
1068
|
+
appId
|
|
1069
|
+
completedAt
|
|
1070
|
+
conversationId
|
|
1071
|
+
cost
|
|
1072
|
+
createdAt
|
|
1073
|
+
duration
|
|
1074
|
+
errorCode
|
|
1075
|
+
errorDetails
|
|
1076
|
+
errorMessage
|
|
1077
|
+
id
|
|
1078
|
+
input
|
|
1079
|
+
metadata
|
|
1080
|
+
output
|
|
1081
|
+
status
|
|
1082
|
+
tokensUsed
|
|
1083
|
+
type
|
|
1084
|
+
workspaceId
|
|
1085
|
+
agentName
|
|
1086
|
+
appName
|
|
1087
|
+
}
|
|
1088
|
+
nextOffset
|
|
1086
1089
|
}
|
|
1087
1090
|
}
|
|
1088
1091
|
`;
|
|
@@ -2630,6 +2633,6 @@ var Ot = e`
|
|
|
2630
2633
|
}
|
|
2631
2634
|
}
|
|
2632
2635
|
`;
|
|
2633
|
-
export { oe as AcceptHandoffDocument, t as AgentBindingsFieldsFragmentDoc, Pt as AgentExecutionUpdatedDocument, $e as ApplyBotmanorRetentionDocument, se as AssignHandoffDocument, Nt as BotmanorExecutionUpdatedDocument, X as BotmanorGettingStartedKnowledgeDocument, ne as BotmanorMyIntegrationConnectionsDocument, Ie as BotmanorPlanUsageDocument, Qe as BotmanorRetentionStatusDocument, Q as BotmanorWorkspaceMemberIdentitiesDocument, Z as BotmanorWorkspaceMembersDocument, I as ChannelOverviewDocument, U as ChatAssistantsDocument, ee as CheckA2APlanQuotaDocument, x as ConfigureSupervisorDocument, A as CountBucketsDocument, kt as CountInstalledPackagesDocument, Ot as CountStorePackagesDocument, c as CreateA2ARegistryEntryDocument, Ee as CreateBotmanorLlmModelDocument, $ as CreateBotmanorLlmProviderDocument, D as CreateBucketDocument, L as CreateChannelConnectorDocument, B as CreateChannelRouteDocument, ge as CreateKnowledgeBaseDocument, je as CreateMcpConnectionDocument, _t as CreatePolicyBundleDraftDocument, ze as CreatePolicyDocument, We as CreatePromptTemplateDocument, nt as CreateRetrievalProfileDocument, st as CreateSkillDocument, mt as CreateStorePackageDraftDocument, u as DeleteA2ARegistryEntryDocument, k as DeleteBucketDocument, z as DeleteChannelConnectorDocument, H as DeleteChannelRouteDocument, ve as DeleteKnowledgeBaseDocument, Ne as DeleteMcpConnectionDocument, Ve as DeletePolicyDocument, Ke as DeletePromptTemplateDocument, it as DeleteRetrievalProfileDocument, lt as DeleteSkillDocument, gt as DeleteStorePackageDraftDocument, qe as DuplicatePromptTemplateDocument, te as GetA2ARegistryEntryDocument, f as GetA2ARegistryEntryUsageDocument, p as GetAgentBindingsDocument, At as GetAgentRunStatsDocument, jt as GetBotRunStatsDocument, M as GetBucketContentsDocument, T as GetBucketDocument, N as GetChannelConnectorDocument, Mt as GetDailyUsageStatsDocument, q as GetExecutionDocument, Y as GetExecutionSummaryDocument, me as GetKnowledgeBaseDocument, xe as GetKnowledgeBaseUsageDocument, De as GetMcpConnectionDocument, Le as GetPolicyDocument, He as GetPromptTemplateDocument, Ze as GetPromptTemplateVersionsDocument, et as GetRetrievalProfileDocument, at as GetSkillDocument, St as GetStorePackageBySlugDocument, g as GetSupervisorConfigDocument, re as HandoffConfigDocument, ie as HandoffQueueDocument, le as HandoffTranscriptDocument, Tt as InstallPackageDocument, o as InstalledPackageFieldsFragmentDoc, s as ListA2ARegistryEntriesDocument, v as ListAiPredictionsDocument, w as ListBotAppsPageDocument, h as ListBotmanorAgentsPageDocument, we as ListBotmanorLlmModelsDocument, Se as ListBotmanorLlmProvidersDocument, E as ListBucketsDocument, P as ListChannelConnectorsDocument, F as ListChannelRoutesDocument,
|
|
2636
|
+
export { oe as AcceptHandoffDocument, t as AgentBindingsFieldsFragmentDoc, Pt as AgentExecutionUpdatedDocument, $e as ApplyBotmanorRetentionDocument, se as AssignHandoffDocument, Nt as BotmanorExecutionUpdatedDocument, X as BotmanorGettingStartedKnowledgeDocument, ne as BotmanorMyIntegrationConnectionsDocument, Ie as BotmanorPlanUsageDocument, Qe as BotmanorRetentionStatusDocument, Q as BotmanorWorkspaceMemberIdentitiesDocument, Z as BotmanorWorkspaceMembersDocument, I as ChannelOverviewDocument, U as ChatAssistantsDocument, ee as CheckA2APlanQuotaDocument, x as ConfigureSupervisorDocument, A as CountBucketsDocument, kt as CountInstalledPackagesDocument, Ot as CountStorePackagesDocument, c as CreateA2ARegistryEntryDocument, Ee as CreateBotmanorLlmModelDocument, $ as CreateBotmanorLlmProviderDocument, D as CreateBucketDocument, L as CreateChannelConnectorDocument, B as CreateChannelRouteDocument, ge as CreateKnowledgeBaseDocument, je as CreateMcpConnectionDocument, _t as CreatePolicyBundleDraftDocument, ze as CreatePolicyDocument, We as CreatePromptTemplateDocument, nt as CreateRetrievalProfileDocument, st as CreateSkillDocument, mt as CreateStorePackageDraftDocument, u as DeleteA2ARegistryEntryDocument, k as DeleteBucketDocument, z as DeleteChannelConnectorDocument, H as DeleteChannelRouteDocument, ve as DeleteKnowledgeBaseDocument, Ne as DeleteMcpConnectionDocument, Ve as DeletePolicyDocument, Ke as DeletePromptTemplateDocument, it as DeleteRetrievalProfileDocument, lt as DeleteSkillDocument, gt as DeleteStorePackageDraftDocument, qe as DuplicatePromptTemplateDocument, te as GetA2ARegistryEntryDocument, f as GetA2ARegistryEntryUsageDocument, p as GetAgentBindingsDocument, At as GetAgentRunStatsDocument, jt as GetBotRunStatsDocument, M as GetBucketContentsDocument, T as GetBucketDocument, N as GetChannelConnectorDocument, Mt as GetDailyUsageStatsDocument, q as GetExecutionDocument, Y as GetExecutionSummaryDocument, me as GetKnowledgeBaseDocument, xe as GetKnowledgeBaseUsageDocument, De as GetMcpConnectionDocument, Le as GetPolicyDocument, He as GetPromptTemplateDocument, Ze as GetPromptTemplateVersionsDocument, et as GetRetrievalProfileDocument, at as GetSkillDocument, St as GetStorePackageBySlugDocument, g as GetSupervisorConfigDocument, re as HandoffConfigDocument, ie as HandoffQueueDocument, le as HandoffTranscriptDocument, Tt as InstallPackageDocument, o as InstalledPackageFieldsFragmentDoc, s as ListA2ARegistryEntriesDocument, v as ListAiPredictionsDocument, w as ListBotAppsPageDocument, h as ListBotmanorAgentsPageDocument, J as ListBotmanorExecutionsPageDocument, we as ListBotmanorLlmModelsDocument, Se as ListBotmanorLlmProvidersDocument, E as ListBucketsDocument, P as ListChannelConnectorsDocument, F as ListChannelRoutesDocument, wt as ListInstalledPackagesDocument, pe as ListKnowledgeBasesDocument, he as ListKnowledgeDocumentsDocument, Oe as ListMcpConnectionsDocument, Ae as ListMcpResourcesDocument, ke as ListMcpToolsDocument, pt as ListOwnStorePackagesDocument, Re as ListPoliciesDocument, Ue as ListPromptTemplatesDocument, tt as ListRetrievalProfilesDocument, ot as ListSkillsDocument, dt as ListStorePackageSubmissionsDocument, Ct as ListStorePackagesDocument, _ as ListSupervisorRunsDocument, W as MyAssistantConversationRetentionDocument, G as MyAssistantWorkflowConversationsDocument, i as OwnStorePackageFieldsFragmentDoc, C as PauseBotmanorAgentForSupervisorDocument, ye as RebuildKnowledgeBaseIndexDocument, S as RebuildKnowledgeBaseIndexForSupervisorDocument, fe as RejectHandoffDocument, ue as ReleaseHandoffDocument, be as RemoveKnowledgeDocumentDocument, Je as RenderPromptTemplateDocument, ce as ReplyToHandoffDocument, de as ResolveHandoffDocument, K as RetireMyAssistantConversationDocument, bt as ReviewStorePackageSubmissionDocument, b as RunSupervisorNowDocument, Xe as SavePromptTemplateVersionDocument, j as SearchBucketsDocument, m as SetAgentBindingsDocument, y as SetAiPredictionStatusDocument, a as StorePackageFieldsFragmentDoc, ft as StorePackageReviewQueueDocument, r as StorePackageSubmissionFieldsFragmentDoc, n as StorePackageValidationFieldsFragmentDoc, vt as SubmitStorePackageForReviewDocument, Te as TestLlmConnectionDocument, Pe as TestMcpConnectionDocument, Ye as TestPromptTemplateDocument, Dt as UninstallPackageDocument, xt as UnpublishStorePackageDocument, l as UpdateA2ARegistryEntryDocument, Ce as UpdateBotmanorLlmProviderDocument, O as UpdateBucketDocument, R as UpdateChannelConnectorDocument, V as UpdateChannelRouteDocument, Et as UpdateInstalledPackageDocument, _e as UpdateKnowledgeBaseDocument, Me as UpdateMcpConnectionDocument, Fe as UpdateMcpToolDocument, Be as UpdatePolicyDocument, Ge as UpdatePromptTemplateDocument, rt as UpdateRetrievalProfileDocument, ct as UpdateSkillDocument, ht as UpdateStorePackageDraftDocument, ae as UpsertHandoffConfigDocument, ut as ValidateStorePackageDocument, d as VerifyA2ARegistryEntryDocument, yt as WithdrawStorePackageSubmissionDocument };
|
|
2634
2637
|
|
|
2635
2638
|
//# sourceMappingURL=wspace-operations.js.map
|