@vertesia/appgen-docs 1.5.0-dev.20260910.052912Z → 1.6.0-dev.20260912.110338Z
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.
|
@@ -16,6 +16,7 @@ import type { AsyncExecutionResult } from '@vertesia/common';
|
|
|
16
16
|
export type { EnableEnvironmentModelPayload, OrphanedAppInstallation } from '@vertesia/common';
|
|
17
17
|
export { getOAuthPermissionScopes, Permission } from '@vertesia/common';
|
|
18
18
|
export * from './client.js';
|
|
19
|
+
export { default as DelegationGrantsApi } from './DelegationGrantsApi.js';
|
|
19
20
|
export type { GroupsQueryOptions } from './GroupsApi.js';
|
|
20
21
|
export * from './InteractionBase.js';
|
|
21
22
|
export * from './InteractionOutput.js';
|
|
@@ -46,6 +47,7 @@ import { ApiKeysApi } from './ApiKeysApi.js';
|
|
|
46
47
|
import AppsApi from './AppsApi.js';
|
|
47
48
|
import AuditTrailApi from './AuditTrailApi.js';
|
|
48
49
|
import CommandsApi from './CommandsApi.js';
|
|
50
|
+
import DelegationGrantsApi from './DelegationGrantsApi.js';
|
|
49
51
|
import EnvironmentsApi from './EnvironmentsApi.js';
|
|
50
52
|
import { IamApi } from './IamApi.js';
|
|
51
53
|
import InteractionsApi from './InteractionsApi.js';
|
|
@@ -213,6 +215,7 @@ export declare class VertesiaClient extends AbstractFetchClient<VertesiaClient>
|
|
|
213
215
|
analytics: AnalyticsApi;
|
|
214
216
|
auditTrail: AuditTrailApi;
|
|
215
217
|
training: TrainingApi;
|
|
218
|
+
delegationGrants: DelegationGrantsApi;
|
|
216
219
|
users: UsersApi;
|
|
217
220
|
iam: IamApi;
|
|
218
221
|
refs: RefsApi;
|
|
@@ -543,7 +546,7 @@ export default class InteractionsApi extends ApiTopic {
|
|
|
543
546
|
* @param onChunk
|
|
544
547
|
* @returns
|
|
545
548
|
*/
|
|
546
|
-
executeByName<ResultT = unknown, ParamsT = unknown>(nameWithTag: string, payload?: InteractionExecutionPayload, onChunk?: (chunk: string) => void): Promise<EnhancedInteractionExecutionResult<ResultT, ParamsT>>;
|
|
549
|
+
executeByName<ResultT = unknown, ParamsT = unknown>(nameWithTag: string, payload?: InteractionExecutionPayload, onChunk?: (chunk: string) => void, requestOptions?: IRequestParams): Promise<EnhancedInteractionExecutionResult<ResultT, ParamsT>>;
|
|
547
550
|
/**
|
|
548
551
|
* Execute an interaction in an workflow
|
|
549
552
|
* @param payload
|
|
@@ -746,7 +749,7 @@ export default class SkillsApi extends ApiTopic {
|
|
|
746
749
|
// @vertesia/client: RunsApi.d.ts
|
|
747
750
|
// -----------------------------------------------------------------------------
|
|
748
751
|
import type { ExecutionResponse } from '@llumiverse/common';
|
|
749
|
-
import { ApiTopic, type ClientBase } from '@vertesia/api-fetch-client';
|
|
752
|
+
import { ApiTopic, type ClientBase, type IRequestParams } from '@vertesia/api-fetch-client';
|
|
750
753
|
import type { ComputeRunFacetPayload, ComputeRunFacetsResponse, ExecutionRunDocRef, ExecutionRunRef, FindPayload, FindRunResult, PopulatedExecutionRun, RunClonePayload, RunCreatePayload, RunListingFilters, RunListingQueryOptions, RunSearchPayload, ToolResultsPayload, UserMessagePayload } from '@vertesia/common';
|
|
751
754
|
import { type EnhancedExecutionRun, type EnhancedInteractionExecutionResult } from './InteractionOutput.js';
|
|
752
755
|
export interface FilterOption {
|
|
@@ -755,6 +758,7 @@ export interface FilterOption {
|
|
|
755
758
|
count: number;
|
|
756
759
|
}
|
|
757
760
|
export type { ComputeRunFacetsResponse } from '@vertesia/common';
|
|
761
|
+
type ResumeRequestOptions = Pick<IRequestParams, 'headers' | 'signal' | 'timeoutMs'>;
|
|
758
762
|
export declare class RunsApi extends ApiTopic {
|
|
759
763
|
constructor(parent: ClientBase);
|
|
760
764
|
/**
|
|
@@ -787,19 +791,13 @@ export declare class RunsApi extends ApiTopic {
|
|
|
787
791
|
* @param payload
|
|
788
792
|
* @returns
|
|
789
793
|
*/
|
|
790
|
-
sendToolResults(payload: ToolResultsPayload, options?:
|
|
791
|
-
timeoutMs?: number | false | null;
|
|
792
|
-
signal?: AbortSignal;
|
|
793
|
-
}): Promise<ExecutionResponse>;
|
|
794
|
+
sendToolResults(payload: ToolResultsPayload, options?: ResumeRequestOptions): Promise<ExecutionResponse>;
|
|
794
795
|
/**
|
|
795
796
|
*
|
|
796
797
|
* @param payload
|
|
797
798
|
* @returns
|
|
798
799
|
*/
|
|
799
|
-
sendUserMessage(payload: UserMessagePayload, options?:
|
|
800
|
-
timeoutMs?: number | false | null;
|
|
801
|
-
signal?: AbortSignal;
|
|
802
|
-
}): Promise<ExecutionResponse>;
|
|
800
|
+
sendUserMessage(payload: UserMessagePayload, options?: ResumeRequestOptions): Promise<ExecutionResponse>;
|
|
803
801
|
/**
|
|
804
802
|
* Get the list of all runs facets
|
|
805
803
|
* @param payload query payload to filter facet search
|
|
@@ -1150,7 +1148,7 @@ export declare class CollectionsApi extends ApiTopic {
|
|
|
1150
1148
|
// @vertesia/client: store/AgentsApi.d.ts
|
|
1151
1149
|
// -----------------------------------------------------------------------------
|
|
1152
1150
|
import { ApiTopic, type ClientBase } from '@vertesia/api-fetch-client';
|
|
1153
|
-
import { type ActiveWorkstreamsQueryResult, type AgentArtifactContentResponse, type AgentArtifactUrlResponse, type AgentEvent, type AgentMessage, type AgentRun, type AgentRunDetailsStreamEvent, type AgentRunInternals, type AgentRunResponse, type BindRunWorkflowPayload, type CreateAgentRunPayload, type CreateProcessRunPayload, type ErrorAnalyticsResponse, type FirstResponseBehaviorAnalyticsResponse, type IngestAgentEventsResponse, type LatencyAnalyticsResponse, type ListAgentRunsQuery, type ListAgentRunsResponse, type ListWorkflowRunsResponse, type PostAgentRunUpdatePayload, type PostAgentRunUpdateResponse, type ProcessRun, type ProcessState, type PromptSizeAnalyticsResponse, type RecordAgentRunPayload, type RecordProcessRunPayload, type RunsByAgentAnalyticsResponse, type SearchAgentRunsQuery, type SearchAgentRunsResponse, type SignalAgentPayload, type SignalAgentResponse, type TerminateAgentRunResponse, type TimeToFirstResponseAnalyticsResponse, type TokenUsageAnalyticsResponse, type ToolAnalyticsResponse, type ToolParameterAnalyticsResponse, type TopPrincipalsAnalyticsResponse, type UpdateAgentArtifactContentPayload, type UpdateAgentArtifactContentResponse, type UpdateAgentRunStatusPayload, type WorkflowAnalyticsFilterOptionsResponse, type WorkflowAnalyticsSummaryQuery, type WorkflowAnalyticsSummaryResponse, type WorkflowAnalyticsTimeSeriesQuery, type WorkflowRunWithDetails, type WorkflowToolParametersQuery } from '@vertesia/common';
|
|
1151
|
+
import { type ActiveWorkstreamsQueryResult, type AgentArtifactContentResponse, type AgentArtifactUrlResponse, type AgentEvent, type AgentMessage, type AgentRun, type AgentRunDetailsStreamEvent, type AgentRunFeedbackPayload, type AgentRunFeedbackResponse, type AgentRunInternals, type AgentRunResponse, type BindRunWorkflowPayload, type CreateAgentRunPayload, type CreateProcessRunPayload, type ErrorAnalyticsResponse, type FirstResponseBehaviorAnalyticsResponse, type IngestAgentEventsResponse, type LatencyAnalyticsResponse, type ListAgentRunsQuery, type ListAgentRunsResponse, type ListWorkflowRunsResponse, type PostAgentRunUpdatePayload, type PostAgentRunUpdateResponse, type ProcessRun, type ProcessState, type PromptSizeAnalyticsResponse, type RecordAgentRunPayload, type RecordProcessRunPayload, type RunsByAgentAnalyticsResponse, type SearchAgentRunsQuery, type SearchAgentRunsResponse, type SignalAgentPayload, type SignalAgentResponse, type TerminateAgentRunResponse, type TimeToFirstResponseAnalyticsResponse, type TokenUsageAnalyticsResponse, type ToolAnalyticsResponse, type ToolParameterAnalyticsResponse, type TopPrincipalsAnalyticsResponse, type UpdateAgentArtifactContentPayload, type UpdateAgentArtifactContentResponse, type UpdateAgentRunStatusPayload, type WorkflowAnalyticsFilterOptionsResponse, type WorkflowAnalyticsSummaryQuery, type WorkflowAnalyticsSummaryResponse, type WorkflowAnalyticsTimeSeriesQuery, type WorkflowRunWithDetails, type WorkflowToolParametersQuery } from '@vertesia/common';
|
|
1154
1152
|
export interface AgentRunStreamMessagesOptions {
|
|
1155
1153
|
/** Resolve the stream when the root conversation becomes idle. Headless followers should opt in. */
|
|
1156
1154
|
closeOnIdle?: boolean;
|
|
@@ -1194,6 +1192,15 @@ export declare class AgentsApi extends ApiTopic {
|
|
|
1194
1192
|
list(query?: ListAgentRunsQuery): Promise<ListAgentRunsResponse>;
|
|
1195
1193
|
listProcessRuns(query?: Omit<ListAgentRunsQuery, 'run_kind'>): Promise<ProcessRun[]>;
|
|
1196
1194
|
private buildListQueryParams;
|
|
1195
|
+
/**
|
|
1196
|
+
* Rate an agent run: thumbs up or down, with an optional reason code and comment.
|
|
1197
|
+
*
|
|
1198
|
+
* `feedback_id` is the client's idempotency key: a retried request with the same id is a no-op.
|
|
1199
|
+
* `status: 'replaced'` means an earlier rating by the same user on the same scope was
|
|
1200
|
+
* superseded; `disabled` means this deployment does not record feedback. All answer 200 because
|
|
1201
|
+
* a rating is never the user's error.
|
|
1202
|
+
*/
|
|
1203
|
+
recordFeedback(id: string, payload: AgentRunFeedbackPayload): Promise<AgentRunFeedbackResponse>;
|
|
1197
1204
|
/**
|
|
1198
1205
|
* Search agent runs via Elasticsearch (full-text + filters).
|
|
1199
1206
|
*/
|
|
@@ -1293,6 +1300,7 @@ export declare class AgentsApi extends ApiTopic {
|
|
|
1293
1300
|
getRunDetails(id: string, options?: {
|
|
1294
1301
|
includeHistory?: boolean;
|
|
1295
1302
|
hydratePayloads?: boolean;
|
|
1303
|
+
from?: string;
|
|
1296
1304
|
}): Promise<WorkflowRunWithDetails>;
|
|
1297
1305
|
/**
|
|
1298
1306
|
* Stream Temporal history events via SSE (handles continueAsNew).
|
|
@@ -1310,6 +1318,7 @@ export declare class AgentsApi extends ApiTopic {
|
|
|
1310
1318
|
getChildDetails(id: string, childWorkflowId: string, options?: {
|
|
1311
1319
|
includeHistory?: boolean;
|
|
1312
1320
|
hydratePayloads?: boolean;
|
|
1321
|
+
from?: string;
|
|
1313
1322
|
}): Promise<WorkflowRunWithDetails>;
|
|
1314
1323
|
/**
|
|
1315
1324
|
* List artifacts for an agent run.
|
|
@@ -2644,7 +2653,7 @@ export {};
|
|
|
2644
2653
|
*/
|
|
2645
2654
|
import type { ReasoningEffort } from '@llumiverse/common';
|
|
2646
2655
|
import type { z } from 'zod';
|
|
2647
|
-
import type { AgentArtifactContentResponseSchema, AgentArtifactUrlResponseSchema, AgentRunArchiveStateSchema, AgentRunArtifactQuerySchema, AgentRunArtifactsQuerySchema, AgentRunArtifactUploadHeadersSchema, AgentRunDetailsQuerySchema, AgentRunSchema, AgentRunUpdatesQuerySchema, AgentRunUpdatesResponseSchema, CreateAgentRunPayloadSchema, CreateProcessRunByIdPayloadSchema, CreateProcessRunWithDefinitionPayloadSchema, CreateRunPayloadSchema, IngestAgentEventsPayloadSchema, IngestAgentEventsResponseSchema, ListAgentRunsQuerySchema, PostAgentRunUpdatePayloadSchema, PostAgentRunUpdateResponseSchema, SearchAgentRunsQuerySchema, SearchAgentRunsResponseSchema, SignalAgentResponseSchema, StreamAgentRunQuerySchema, TerminateAgentRunResponseSchema, UpdateAgentArtifactContentPayloadSchema, UpdateAgentArtifactContentResponseSchema } from '../api-schemas/agent-runs.js';
|
|
2656
|
+
import type { AgentArtifactContentResponseSchema, AgentArtifactUrlResponseSchema, AgentRunArchiveStateSchema, AgentRunArtifactQuerySchema, AgentRunArtifactsQuerySchema, AgentRunArtifactUploadHeadersSchema, AgentRunContradictionReasonSchema, AgentRunDetailsQuerySchema, AgentRunEvaluationRollupSchema, AgentRunEvaluationSchema, AgentRunFeedbackCountsSchema, AgentRunFeedbackEntrySchema, AgentRunFeedbackPayloadSchema, AgentRunFeedbackRatingSchema, AgentRunFeedbackReasonCodeSchema, AgentRunFeedbackResponseSchema, AgentRunFeedbackStatusSchema, AgentRunJudgeResultSchema, AgentRunSchema, AgentRunUpdatesQuerySchema, AgentRunUpdatesResponseSchema, CreateAgentRunPayloadSchema, CreateProcessRunByIdPayloadSchema, CreateProcessRunWithDefinitionPayloadSchema, CreateRunPayloadSchema, IngestAgentEventsPayloadSchema, IngestAgentEventsResponseSchema, ListAgentRunsEvaluationSeveritySchema, ListAgentRunsQuerySchema, PostAgentRunUpdatePayloadSchema, PostAgentRunUpdateResponseSchema, SearchAgentRunsQuerySchema, SearchAgentRunsResponseSchema, SignalAgentResponseSchema, StreamAgentRunQuerySchema, TerminateAgentRunResponseSchema, UpdateAgentArtifactContentPayloadSchema, UpdateAgentArtifactContentResponseSchema } from '../api-schemas/agent-runs.js';
|
|
2648
2657
|
import type { AgentRunSearchHitSchema, AgentRunStatusSchema, AgentRunTypeSchema, RunKindSchema, RunTypeSchema } from '../api-schemas/app-lifecycle.js';
|
|
2649
2658
|
import type { ProcessRunConfigSchema, ProcessRunTypeSchema } from '../api-schemas/process.js';
|
|
2650
2659
|
import type { BindRunWorkflowPayloadSchema, RestartAgentRunPayloadSchema } from '../api-schemas/workflow-runs.js';
|
|
@@ -2654,6 +2663,7 @@ import type { AgentToolApprovalMode } from './agent-approval.js';
|
|
|
2654
2663
|
import type { ProcessDefinitionBody, ProcessState } from './process.js';
|
|
2655
2664
|
import type { ModelConfigChangedSignal, StopSignal, UserInputSignal } from './signals.js';
|
|
2656
2665
|
import type { ConversationActivityState, ConversationFileBatchRef, ConversationFileRef, ConversationFileRemovedRef, WorkflowRunEvent } from './workflow.js';
|
|
2666
|
+
export * from './agent-run-values.js';
|
|
2657
2667
|
export type AgentRunStatus = z.infer<typeof AgentRunStatusSchema>;
|
|
2658
2668
|
export type AgentRunArchiveState = z.infer<typeof AgentRunArchiveStateSchema>;
|
|
2659
2669
|
export type AgentRunType = z.infer<typeof AgentRunTypeSchema>;
|
|
@@ -2803,6 +2813,8 @@ export interface RecordAgentRunPayload<TData = Record<string, unknown>> extends
|
|
|
2803
2813
|
export interface RecordProcessRunPayload<TData = Record<string, unknown>, TSource = RunSource> extends ProcessRunInputPayload<TData, TSource>, RecordRunWorkflowPayload {
|
|
2804
2814
|
run_kind: 'process';
|
|
2805
2815
|
run_type?: ProcessRunType;
|
|
2816
|
+
schedule_id?: string;
|
|
2817
|
+
type?: AgentRunType;
|
|
2806
2818
|
}
|
|
2807
2819
|
export type RecordRunPayload<TData = Record<string, unknown>, TSource = RunSource> = RecordAgentRunPayload<TData> | RecordProcessRunPayload<TData, TSource>;
|
|
2808
2820
|
/**
|
|
@@ -2811,6 +2823,17 @@ export type RecordRunPayload<TData = Record<string, unknown>, TSource = RunSourc
|
|
|
2811
2823
|
*/
|
|
2812
2824
|
export type BindRunWorkflowPayload = z.infer<typeof BindRunWorkflowPayloadSchema>;
|
|
2813
2825
|
export type TerminateAgentRunResponse = z.infer<typeof TerminateAgentRunResponseSchema>;
|
|
2826
|
+
export type AgentRunFeedbackRating = z.infer<typeof AgentRunFeedbackRatingSchema>;
|
|
2827
|
+
export type AgentRunFeedbackReasonCode = z.infer<typeof AgentRunFeedbackReasonCodeSchema>;
|
|
2828
|
+
export type AgentRunFeedbackPayload = z.infer<typeof AgentRunFeedbackPayloadSchema>;
|
|
2829
|
+
export type AgentRunFeedbackStatus = z.infer<typeof AgentRunFeedbackStatusSchema>;
|
|
2830
|
+
export type AgentRunFeedbackCounts = z.infer<typeof AgentRunFeedbackCountsSchema>;
|
|
2831
|
+
export type AgentRunFeedbackResponse = z.infer<typeof AgentRunFeedbackResponseSchema>;
|
|
2832
|
+
export type AgentRunFeedbackEntry = z.infer<typeof AgentRunFeedbackEntrySchema>;
|
|
2833
|
+
export type AgentRunEvaluationRollup = z.infer<typeof AgentRunEvaluationRollupSchema>;
|
|
2834
|
+
export type AgentRunJudgeResult = z.infer<typeof AgentRunJudgeResultSchema>;
|
|
2835
|
+
export type AgentRunContradictionReason = z.infer<typeof AgentRunContradictionReasonSchema>;
|
|
2836
|
+
export type AgentRunEvaluation = z.infer<typeof AgentRunEvaluationSchema>;
|
|
2814
2837
|
/**
|
|
2815
2838
|
* Payload for updating an AgentRun's lifecycle and derived metadata.
|
|
2816
2839
|
*/
|
|
@@ -2842,6 +2865,11 @@ export interface UpdateAgentRunStatusPayload {
|
|
|
2842
2865
|
last_archive_error?: string;
|
|
2843
2866
|
sequence?: number;
|
|
2844
2867
|
process_state?: ProcessState;
|
|
2868
|
+
/**
|
|
2869
|
+
* Fold of the run's turn evaluations, written by the conversation workflow. The server applies
|
|
2870
|
+
* it atomically and ignores a rollup whose `seq` is not newer than the one it holds.
|
|
2871
|
+
*/
|
|
2872
|
+
evaluation_rollup?: AgentRunEvaluationRollup;
|
|
2845
2873
|
}
|
|
2846
2874
|
export type SignalAgentPayload = UserInputSignal | StopSignal | ModelConfigChangedSignal | ConversationFileRef | ConversationFileRemovedRef | ConversationFileBatchRef | Record<string, unknown>;
|
|
2847
2875
|
export type SignalAgentResponse = z.infer<typeof SignalAgentResponseSchema>;
|
|
@@ -2902,6 +2930,8 @@ export type AgentRunDetailsStreamEvent = {
|
|
|
2902
2930
|
type: 'error';
|
|
2903
2931
|
data: AgentRunDetailsErrorStreamEvent;
|
|
2904
2932
|
};
|
|
2933
|
+
/** Evaluation severity filter values; `unrated` selects runs without an evaluation. */
|
|
2934
|
+
export type ListAgentRunsEvaluationSeverity = z.infer<typeof ListAgentRunsEvaluationSeveritySchema>;
|
|
2905
2935
|
/**
|
|
2906
2936
|
* Filters for listing agent runs.
|
|
2907
2937
|
*/
|
|
@@ -2947,7 +2977,6 @@ export type CreateProcessRunByIdPayload = z.infer<typeof CreateProcessRunByIdPay
|
|
|
2947
2977
|
export type CreateProcessRunWithDefinitionPayload = z.infer<typeof CreateProcessRunWithDefinitionPayloadSchema>;
|
|
2948
2978
|
export type CreateRunPayload = z.infer<typeof CreateRunPayloadSchema>;
|
|
2949
2979
|
export type RestartAgentRunPayload = z.infer<typeof RestartAgentRunPayloadSchema>;
|
|
2950
|
-
export {};
|
|
2951
2980
|
|
|
2952
2981
|
// -----------------------------------------------------------------------------
|
|
2953
2982
|
// @vertesia/common: store/collections.d.ts
|
|
@@ -3018,6 +3047,7 @@ export type UpdateCollectionPayload = z.infer<typeof UpdateCollectionPayloadSche
|
|
|
3018
3047
|
// -----------------------------------------------------------------------------
|
|
3019
3048
|
import type { z } from 'zod';
|
|
3020
3049
|
import type { AdvanceProcessPayloadSchema, AnswerProcessTaskPayloadSchema, BranchDefinitionSchema, BranchJoinPolicySchema, CreateProcessTestSuitePayloadSchema, HumanTaskDefinitionSchema, JsonLogicRuleSchema, ListProcessDefinitionsQuerySchema, ListProcessTestRunsQuerySchema, NodeHistoryEntrySchema, ParallelCollectDefinitionSchema, ParallelCollectFieldSchema, ParallelCollectModeSchema, ParallelFailurePolicySchema, ProcessContextDefinitionSchema, ProcessContextResponseSchema, ProcessDefinitionFormatVersionSchema, ProcessDefinitionMetadataSchema, ProcessDefinitionRevisionInfoSchema, ProcessDefinitionStatusSchema, ProcessHistoryRefSchema, ProcessHistoryResponseSchema, ProcessNodeReturnsDefinitionSchema, ProcessNodeRunTypeSchema, ProcessNodeTypeSchema, ProcessResourcesDefinitionSchema, ProcessScriptInlineSourceSchema, ProcessScriptLanguageSchema, ProcessScriptResourceSchema, ProcessScriptSourceSchema, ProcessStateSchema, ProcessTestActorDecisionSchema, ProcessTestAssertionResultSchema, ProcessTestAssertionsSchema, ProcessTestChildTraceSchema, ProcessTestCoverageSchema, ProcessTestFixtureErrorSchema, ProcessTestFixtureResponseSchema, ProcessTestFixtureResultSchema, ProcessTestHumanActionSchema, ProcessTestInlineSubjectSchema, ProcessTestNodeFixtureSchema, ProcessTestResolvedSubjectSchema, ProcessTestRunSchema, ProcessTestRunStatusSchema, ProcessTestScenarioResultSchema, ProcessTestScenarioSchema, ProcessTestStoredSubjectSchema, ProcessTestSubjectSchema, ProcessTestSuiteSchema, ProcessTestTargetByIdSchema, ProcessTestTargetWithDefinitionSchema, ProcessTestVirtualActorSchema, PublishProcessDefinitionPayloadSchema, RetryProcessNodePayloadSchema, RevertProcessDefinitionPayloadSchema, StartProcessTestRunPayloadSchema, SubmitProcessTestRunPayloadSchema, TransitionDefinitionSchema, TransitionTriggerSchema, UpdateProcessTestScenarioPayloadSchema, UpdateProcessTestSuitePayloadSchema } from '../api-schemas/process.js';
|
|
3050
|
+
import type { ProcessAgentExecutionPolicySchema, ProcessAgentPhaseResetSchema, ProcessAgentToolInputContainsSchema, ProcessAgentToolPhaseSchema } from '../api-schemas/process-agent-policy.js';
|
|
3021
3051
|
import type { JSONSchema } from '../json-schema.js';
|
|
3022
3052
|
export type JsonLogicRule = z.infer<typeof JsonLogicRuleSchema>;
|
|
3023
3053
|
export type ProcessDefinitionStatus = z.infer<typeof ProcessDefinitionStatusSchema>;
|
|
@@ -3032,6 +3062,10 @@ export type ProcessNodeRunType = z.infer<typeof ProcessNodeRunTypeSchema>;
|
|
|
3032
3062
|
export type ParallelCollectMode = z.infer<typeof ParallelCollectModeSchema>;
|
|
3033
3063
|
export type BranchJoinPolicy = z.infer<typeof BranchJoinPolicySchema>;
|
|
3034
3064
|
export type ProcessDefinitionMetadata = z.infer<typeof ProcessDefinitionMetadataSchema>;
|
|
3065
|
+
export type ProcessAgentToolPhase = z.infer<typeof ProcessAgentToolPhaseSchema>;
|
|
3066
|
+
export type ProcessAgentToolInputContains = z.infer<typeof ProcessAgentToolInputContainsSchema>;
|
|
3067
|
+
export type ProcessAgentPhaseReset = z.infer<typeof ProcessAgentPhaseResetSchema>;
|
|
3068
|
+
export type ProcessAgentExecutionPolicy = z.infer<typeof ProcessAgentExecutionPolicySchema>;
|
|
3035
3069
|
export type ProcessScriptLanguage = z.infer<typeof ProcessScriptLanguageSchema>;
|
|
3036
3070
|
export type ProcessScriptInlineSource = z.infer<typeof ProcessScriptInlineSourceSchema>;
|
|
3037
3071
|
export type ProcessScriptSource = z.infer<typeof ProcessScriptSourceSchema>;
|
|
@@ -3071,6 +3105,12 @@ export interface NodeDefinition {
|
|
|
3071
3105
|
result_schema?: JSONSchema;
|
|
3072
3106
|
prompt?: string;
|
|
3073
3107
|
input?: Record<string, unknown>;
|
|
3108
|
+
/**
|
|
3109
|
+
* Whether interaction and custom-agent nodes receive the complete process
|
|
3110
|
+
* context in addition to resolved `input`. Defaults to true for backward
|
|
3111
|
+
* compatibility. Set false to keep specialist prompts input-only.
|
|
3112
|
+
*/
|
|
3113
|
+
inherit_context?: boolean;
|
|
3074
3114
|
config?: Record<string, unknown>;
|
|
3075
3115
|
title?: string;
|
|
3076
3116
|
description?: string;
|
|
@@ -3087,6 +3127,12 @@ export interface NodeDefinition {
|
|
|
3087
3127
|
max_retries?: number;
|
|
3088
3128
|
transitions?: TransitionDefinition[];
|
|
3089
3129
|
tools?: string[];
|
|
3130
|
+
/** Builtin system skills activated before the agent node's first model turn. */
|
|
3131
|
+
initial_skills?: string[];
|
|
3132
|
+
/** Execution-time tool denylist for the agent node's child conversation. */
|
|
3133
|
+
excluded_tools?: string[];
|
|
3134
|
+
/** Process-owned successful-tool phases and completion behavior for this agent node. */
|
|
3135
|
+
agent_policy?: ProcessAgentExecutionPolicy;
|
|
3090
3136
|
/**
|
|
3091
3137
|
* Model id override for this node. If unset, falls back to the process
|
|
3092
3138
|
* run's `config.model`, then to the project's default. Useful when a
|
|
@@ -3261,6 +3307,8 @@ export interface Queue {
|
|
|
3261
3307
|
}
|
|
3262
3308
|
export type WorkflowAncestor = z.infer<typeof WorkflowAncestorSchema>;
|
|
3263
3309
|
export interface WorkflowExecutionBaseParams<T = Record<string, unknown>> {
|
|
3310
|
+
/** Effective principal for private scheduled runs; server supplied. */
|
|
3311
|
+
subject?: string;
|
|
3264
3312
|
/**
|
|
3265
3313
|
* The ref of the user who initiated the workflow.
|
|
3266
3314
|
*/
|
|
@@ -30,6 +30,7 @@ export * from './common.js';
|
|
|
30
30
|
export * from './content-query.js';
|
|
31
31
|
export * from './cost-analytics.js';
|
|
32
32
|
export * from './data-platform.js';
|
|
33
|
+
export type { CreateDelegationGrantPayload, DelegationGrant, DelegationGrantArray, DelegationTokenClaim, } from './delegation.js';
|
|
33
34
|
export * from './email.js';
|
|
34
35
|
export * from './embeddings.js';
|
|
35
36
|
export * from './environment.js';
|
|
@@ -2473,6 +2474,7 @@ export type UpdateCollectionPayload = z.infer<typeof UpdateCollectionPayloadSche
|
|
|
2473
2474
|
// -----------------------------------------------------------------------------
|
|
2474
2475
|
import type { z } from 'zod';
|
|
2475
2476
|
import type { AdvanceProcessPayloadSchema, AnswerProcessTaskPayloadSchema, BranchDefinitionSchema, BranchJoinPolicySchema, CreateProcessTestSuitePayloadSchema, HumanTaskDefinitionSchema, JsonLogicRuleSchema, ListProcessDefinitionsQuerySchema, ListProcessTestRunsQuerySchema, NodeHistoryEntrySchema, ParallelCollectDefinitionSchema, ParallelCollectFieldSchema, ParallelCollectModeSchema, ParallelFailurePolicySchema, ProcessContextDefinitionSchema, ProcessContextResponseSchema, ProcessDefinitionFormatVersionSchema, ProcessDefinitionMetadataSchema, ProcessDefinitionRevisionInfoSchema, ProcessDefinitionStatusSchema, ProcessHistoryRefSchema, ProcessHistoryResponseSchema, ProcessNodeReturnsDefinitionSchema, ProcessNodeRunTypeSchema, ProcessNodeTypeSchema, ProcessResourcesDefinitionSchema, ProcessScriptInlineSourceSchema, ProcessScriptLanguageSchema, ProcessScriptResourceSchema, ProcessScriptSourceSchema, ProcessStateSchema, ProcessTestActorDecisionSchema, ProcessTestAssertionResultSchema, ProcessTestAssertionsSchema, ProcessTestChildTraceSchema, ProcessTestCoverageSchema, ProcessTestFixtureErrorSchema, ProcessTestFixtureResponseSchema, ProcessTestFixtureResultSchema, ProcessTestHumanActionSchema, ProcessTestInlineSubjectSchema, ProcessTestNodeFixtureSchema, ProcessTestResolvedSubjectSchema, ProcessTestRunSchema, ProcessTestRunStatusSchema, ProcessTestScenarioResultSchema, ProcessTestScenarioSchema, ProcessTestStoredSubjectSchema, ProcessTestSubjectSchema, ProcessTestSuiteSchema, ProcessTestTargetByIdSchema, ProcessTestTargetWithDefinitionSchema, ProcessTestVirtualActorSchema, PublishProcessDefinitionPayloadSchema, RetryProcessNodePayloadSchema, RevertProcessDefinitionPayloadSchema, StartProcessTestRunPayloadSchema, SubmitProcessTestRunPayloadSchema, TransitionDefinitionSchema, TransitionTriggerSchema, UpdateProcessTestScenarioPayloadSchema, UpdateProcessTestSuitePayloadSchema } from '../api-schemas/process.js';
|
|
2477
|
+
import type { ProcessAgentExecutionPolicySchema, ProcessAgentPhaseResetSchema, ProcessAgentToolInputContainsSchema, ProcessAgentToolPhaseSchema } from '../api-schemas/process-agent-policy.js';
|
|
2476
2478
|
import type { JSONSchema } from '../json-schema.js';
|
|
2477
2479
|
export type JsonLogicRule = z.infer<typeof JsonLogicRuleSchema>;
|
|
2478
2480
|
export type ProcessDefinitionStatus = z.infer<typeof ProcessDefinitionStatusSchema>;
|
|
@@ -2487,6 +2489,10 @@ export type ProcessNodeRunType = z.infer<typeof ProcessNodeRunTypeSchema>;
|
|
|
2487
2489
|
export type ParallelCollectMode = z.infer<typeof ParallelCollectModeSchema>;
|
|
2488
2490
|
export type BranchJoinPolicy = z.infer<typeof BranchJoinPolicySchema>;
|
|
2489
2491
|
export type ProcessDefinitionMetadata = z.infer<typeof ProcessDefinitionMetadataSchema>;
|
|
2492
|
+
export type ProcessAgentToolPhase = z.infer<typeof ProcessAgentToolPhaseSchema>;
|
|
2493
|
+
export type ProcessAgentToolInputContains = z.infer<typeof ProcessAgentToolInputContainsSchema>;
|
|
2494
|
+
export type ProcessAgentPhaseReset = z.infer<typeof ProcessAgentPhaseResetSchema>;
|
|
2495
|
+
export type ProcessAgentExecutionPolicy = z.infer<typeof ProcessAgentExecutionPolicySchema>;
|
|
2490
2496
|
export type ProcessScriptLanguage = z.infer<typeof ProcessScriptLanguageSchema>;
|
|
2491
2497
|
export type ProcessScriptInlineSource = z.infer<typeof ProcessScriptInlineSourceSchema>;
|
|
2492
2498
|
export type ProcessScriptSource = z.infer<typeof ProcessScriptSourceSchema>;
|
|
@@ -2526,6 +2532,12 @@ export interface NodeDefinition {
|
|
|
2526
2532
|
result_schema?: JSONSchema;
|
|
2527
2533
|
prompt?: string;
|
|
2528
2534
|
input?: Record<string, unknown>;
|
|
2535
|
+
/**
|
|
2536
|
+
* Whether interaction and custom-agent nodes receive the complete process
|
|
2537
|
+
* context in addition to resolved `input`. Defaults to true for backward
|
|
2538
|
+
* compatibility. Set false to keep specialist prompts input-only.
|
|
2539
|
+
*/
|
|
2540
|
+
inherit_context?: boolean;
|
|
2529
2541
|
config?: Record<string, unknown>;
|
|
2530
2542
|
title?: string;
|
|
2531
2543
|
description?: string;
|
|
@@ -2542,6 +2554,12 @@ export interface NodeDefinition {
|
|
|
2542
2554
|
max_retries?: number;
|
|
2543
2555
|
transitions?: TransitionDefinition[];
|
|
2544
2556
|
tools?: string[];
|
|
2557
|
+
/** Builtin system skills activated before the agent node's first model turn. */
|
|
2558
|
+
initial_skills?: string[];
|
|
2559
|
+
/** Execution-time tool denylist for the agent node's child conversation. */
|
|
2560
|
+
excluded_tools?: string[];
|
|
2561
|
+
/** Process-owned successful-tool phases and completion behavior for this agent node. */
|
|
2562
|
+
agent_policy?: ProcessAgentExecutionPolicy;
|
|
2545
2563
|
/**
|
|
2546
2564
|
* Model id override for this node. If unset, falls back to the process
|
|
2547
2565
|
* run's `config.model`, then to the project's default. Useful when a
|
|
@@ -2716,6 +2734,8 @@ export interface Queue {
|
|
|
2716
2734
|
}
|
|
2717
2735
|
export type WorkflowAncestor = z.infer<typeof WorkflowAncestorSchema>;
|
|
2718
2736
|
export interface WorkflowExecutionBaseParams<T = Record<string, unknown>> {
|
|
2737
|
+
/** Effective principal for private scheduled runs; server supplied. */
|
|
2738
|
+
subject?: string;
|
|
2719
2739
|
/**
|
|
2720
2740
|
* The ref of the user who initiated the workflow.
|
|
2721
2741
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vertesia/appgen-docs",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0-dev.20260912.110338Z",
|
|
4
4
|
"description": "Generated SDK references and development guidance for Vertesia app agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/node": "^24.13.3",
|
|
20
|
-
"
|
|
21
|
-
"@vertesia/
|
|
22
|
-
"@vertesia/
|
|
23
|
-
"@vertesia/ui": "1.
|
|
24
|
-
"
|
|
20
|
+
"@vertesia/client": "1.6.0-dev.20260912.110338Z",
|
|
21
|
+
"@vertesia/common": "1.6.0-dev.20260912.110338Z",
|
|
22
|
+
"@vertesia/tsconfig": "0.1.0",
|
|
23
|
+
"@vertesia/ui": "1.6.0-dev.20260912.110338Z",
|
|
24
|
+
"typescript": "7.0.2"
|
|
25
25
|
},
|
|
26
26
|
"repository": {
|
|
27
27
|
"type": "git",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"documentation",
|
|
35
35
|
"app-development"
|
|
36
36
|
],
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "504e8df031c3950ec324c865385caf460b1c1cd7",
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "pnpm run clean && tsc -p tsconfig.json && node ./scripts/generate-docs.mjs",
|
|
40
40
|
"clean": "rimraf ./lib ./docs ./tsconfig.tsbuildinfo",
|