@vertesia/appgen-docs 1.6.0-dev.20260923.085325Z → 1.6.0-dev.20261008.064737Z

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.
@@ -10,7 +10,7 @@
10
10
  // -----------------------------------------------------------------------------
11
11
  // @vertesia/common: index.d.ts
12
12
  // -----------------------------------------------------------------------------
13
- export type { AudioResult, OpenAiAudioOptions, OpenAiSpeechOptions, OpenAiTranscriptionOptions, VertexAIGeminiOmniVideoOptions, VideoResult, } from '@llumiverse/common';
13
+ export type { AudioResult, OpenAiAudioOptions, OpenAiImageGenerationMask, OpenAiImageGenerationOptions, OpenAiSpeechOptions, OpenAiTranscriptionOptions, VertexAIGeminiOmniVideoOptions, VideoResult, } from '@llumiverse/common';
14
14
  export * from './access-control.js';
15
15
  export * from './analytics.js';
16
16
  /**
@@ -36,6 +36,7 @@ export * from './embeddings.js';
36
36
  export * from './environment.js';
37
37
  export * from './facets.js';
38
38
  export * from './group.js';
39
+ export type { CreateInferenceProfilePayload, InferenceProfile, InferenceProfileId, InferenceProfileName, InferenceProfileRecord, InferenceProfileRecordArray, InferenceProfileSnapshot, InferenceProfileUsage, InferenceProfileUsageEntry, InferenceProfileUsageQuery, InteractionConfigurationRecord, InteractionConfigurationResult, ProjectInferenceProfiles, UpdateInferenceProfilePayload, UpdateInteractionConfigurationPayload, } from './inference-profile.js';
39
40
  export * from './integrations.js';
40
41
  export * from './interaction.js';
41
42
  export * from './json.js';
@@ -55,6 +56,7 @@ export * from './query.js';
55
56
  export * from './rate-limiter.js';
56
57
  export * from './refs.js';
57
58
  export * from './roles/types.js';
59
+ export type { RunBudgetCapability, RunBudgetCapabilityQuery, } from './run-budget.js';
58
60
  export * from './runs.js';
59
61
  export * from './schema-for-extraction.js';
60
62
  export * from './secrets.js';
@@ -80,12 +82,7 @@ export * from './workflow-analytics.js';
80
82
  // -----------------------------------------------------------------------------
81
83
  // @vertesia/common: apps.d.ts
82
84
  // -----------------------------------------------------------------------------
83
- import type { z } from 'zod';
84
- import type { AgentToolApprovalClassSchema, AgentToolDefinitionSchema, AppApiKeyCollectionParamsSchema, AppBuildProgressSchema, AppBuildProgressStatusSchema, AppBuildTriggerSchema, AppDeleteSummarySchema, AppDevelopmentTaskDetailsSchema, AppDevelopmentTaskListSchema, AppDevelopmentTaskSchema, AppInspectionCapabilityReportSchema, AppInspectionIssueSchema, AppInspectionResultSchema, AppInstallationKindSchema, AppInstallationOAuthBindingSchema, AppInstallationPayloadSchema, AppInstallationProjectsQuerySchema, AppInstallationProviderBindingSchema, AppInstallationsQuerySchema, AppListScopeSchema, AppOAuthCollectionParamsSchema, AppOAuthProviderParamsSchema, AppRepoBranchSchema, AppRepoCommitSchema, AppRepoCommitsSchema, AppRepoDocumentCommitSchema, AppRepoRefSchema, AppRepoRefsSchema, AppRepoTreeEntrySchema, AppRepoTreeSchema, AppScaffoldModuleSchema, AppScaffoldProgressSchema, AppScaffoldProgressStatusSchema, AppsQuerySchema, AppToolCollectionSchema, AppVersionGitRefTypeSchema, AppVersionGitSourceSchema, AppVersionKindSchema, AppVersionRecordSchema, AppVersionStateSchema, AppVersionStorageSchema, AppVersionTargetSchema, AppVersionUrlsSchema, DeleteAppVersionResponseSchema, McpApiKeyCredentialSchema, OAuthClientCredentialsSchema, StartAppBuildRequestSchema, StartAppBuildResponseSchema, StartAppDevelopmentTaskRequestSchema, StartAppScaffoldRequestSchema, StartAppScaffoldResponseSchema, UpdateAppInstallationOAuthApprovalPayloadSchema, UpdateAppInstallationToolAllowlistPayloadSchema, UpsertAppVersionRequestSchema, ValidateUrlRequestSchema, ValidateUrlResponseSchema } from './api-schemas/app-lifecycle.js';
85
- import type { AppEventHookDeliverySchema, AppEventHookPayloadSchema, AppEventSubscriptionDefinitionSchema, AppInstallationListEntrySchema, AppInstallationSchema, AppInstallationWithManifestSchema, AppManifestDataSchema, AppManifestSchema, AppPackageEventHookSchema, AppPackageHooksSchema, AppPackageSchema, AppWidgetInfoSchema, CompositeAppCardOverridesSchema, CompositeAppConfigPayloadSchema, CompositeAppConfigSchema, CompositeAppEntrySchema, CompositeAppHeaderItemKindSchema, CompositeAppHeaderItemSchema, CompositeAppHeaderItemTargetSchema, CompositeAppHeaderOverridesSchema, CompositeAppHomePluginSchema, CompositeAppLogoOverridesSchema, CompositeAppMenuSectionSchema, CompositeAppMessageOverridesSchema, CompositeAppMessageStyleSchema, CompositeAppNavItemPermissionsSchema, CompositeAppSidebarOverridesSchema, CompositeAppSwitchersOverridesSchema, CompositeAppThemeOverridesSchema, CompositeAppUserMenuOverridesSchema, PromoteAppVersionResponseSchema, UpdateAppPayloadSchema } from './api-schemas/app-runtime.js';
86
- import type { AppAccessControlSchema, AppAvailableInSchema, AppCapabilitiesSchema, AppGitSourceConfigSchema, AppManifestSourceSchema, AppSourceConfigSchema, AppUIConfigSchema, MCPApiKeyConfigSchema, MCPOAuthConfigSchema, MCPToolAnnotationsSchema, MCPToolCollectionObjectSchema, McpApiKeyStatusSchema, McpOAuthConnectResponseSchema, McpOAuthDisconnectResponseSchema, McpOAuthTokenRequestSchema, McpOAuthTokenResponseSchema, OAuthAuthorizeResponseSchema, OAuthAuthStatusSchema, OAuthMetadataResponseSchema, SetMcpApiKeyRequestSchema, ToolCollectionAuthTypeSchema, ToolCollectionObjectSchema, VertesiaSDKToolCollectionObjectSchema } from './api-schemas/apps.js';
87
- import type { RemoteActivityDefinitionSchema } from './api-schemas/integrations.js';
88
- import type { ProjectToolInfoSchema, RenderingTemplateDefinitionRefSchema, RenderingTemplateDefinitionSchema } from './api-schemas/project.js';
85
+ import type * as Wire from './wire-types.generated.js';
89
86
  /** Allowed values for AppUINavItem.preferredSection */
90
87
  export declare const PREFERRED_SECTIONS: readonly ['default', 'footer', 'settings'];
91
88
  /**
@@ -114,18 +111,18 @@ export interface AppUINavItem {
114
111
  */
115
112
  preferredSection?: (typeof PREFERRED_SECTIONS)[number];
116
113
  }
117
- export type AppUIConfig = z.infer<typeof AppUIConfigSchema>;
118
- export type AppInstallationProjectsQuery = z.infer<typeof AppInstallationProjectsQuerySchema>;
119
- export type AppInstallationsQuery = z.infer<typeof AppInstallationsQuerySchema>;
120
- export type AppListScope = z.infer<typeof AppListScopeSchema>;
121
- export type AppsQuery = z.infer<typeof AppsQuerySchema>;
122
- export type ToolCollectionAuthType = z.infer<typeof ToolCollectionAuthTypeSchema>;
123
- export type MCPOAuthConfig = z.infer<typeof MCPOAuthConfigSchema>;
114
+ export type AppUIConfig = Wire.AppUIConfig;
115
+ export type AppInstallationProjectsQuery = Wire.AppInstallationProjectsQuery;
116
+ export type AppInstallationsQuery = Wire.AppInstallationsQuery;
117
+ export type AppListScope = Wire.AppListScope;
118
+ export type AppsQuery = Wire.AppsQuery;
119
+ export type ToolCollectionAuthType = Wire.ToolCollectionAuthType;
120
+ export type MCPOAuthConfig = Wire.MCPOAuthConfig;
124
121
  /** Install-time provisioning blueprint for an `auth: 'api_key'` MCP collection. Never holds the key. */
125
- export type MCPApiKeyConfig = z.infer<typeof MCPApiKeyConfigSchema>;
126
- export type MCPToolCollectionObject = z.infer<typeof MCPToolCollectionObjectSchema>;
127
- export type VertesiaSDKToolCollectionObject = z.infer<typeof VertesiaSDKToolCollectionObjectSchema>;
128
- export type ToolCollectionObject = z.infer<typeof ToolCollectionObjectSchema>;
122
+ export type MCPApiKeyConfig = Wire.MCPApiKeyConfig;
123
+ export type MCPToolCollectionObject = Wire.MCPToolCollectionObject;
124
+ export type VertesiaSDKToolCollectionObject = Wire.VertesiaSDKToolCollectionObject;
125
+ export type ToolCollectionObject = Wire.ToolCollectionObject;
129
126
  /**
130
127
  * Normalizes a tool collection to the object format.
131
128
  * Applies optional `{{var}}` substitution to the URL so manifests can reference
@@ -139,7 +136,7 @@ export declare function normalizeToolCollection(collection: ToolCollectionObject
139
136
  /**
140
137
  * Metadata hints from MCP tool annotations (per MCP spec).
141
138
  */
142
- export type MCPToolAnnotations = z.infer<typeof MCPToolAnnotationsSchema>;
139
+ export type MCPToolAnnotations = Wire.MCPToolAnnotations;
143
140
  /**
144
141
  * Approval behavior class for a tool exposed to agents.
145
142
  *
@@ -148,58 +145,58 @@ export type MCPToolAnnotations = z.infer<typeof MCPToolAnnotationsSchema>;
148
145
  * - `control`: affects agent control flow or tool availability, not user data or external systems.
149
146
  * - `requires_confirmation`: high-impact action that must ask the user even in interactive full-control mode.
150
147
  */
151
- export type AgentToolApprovalClass = z.infer<typeof AgentToolApprovalClassSchema>;
148
+ export type AgentToolApprovalClass = Wire.AgentToolApprovalClass;
152
149
  /**
153
150
  * Tool definition with optional activation control for agent exposure.
154
151
  */
155
- export type AgentToolDefinition = z.infer<typeof AgentToolDefinitionSchema>;
152
+ export type AgentToolDefinition = Wire.AgentToolDefinition;
156
153
  /**
157
154
  * Definition of a remote activity exposed by a tool server for use in DSL workflows.
158
155
  * Remote activities are identified in workflow steps using colon-separated names:
159
156
  * `app:<app_name>:<collection>:<activity_name>` (e.g. `app:my-nlp-app:examples:word_count`).
160
157
  */
161
- export type RemoteActivityDefinition = z.infer<typeof RemoteActivityDefinitionSchema>;
158
+ export type RemoteActivityDefinition = Wire.RemoteActivityDefinition;
162
159
  /**
163
160
  * Canonical app capabilities Studio renders/supports. The public type is derived from
164
161
  * this list so runtime validation and TypeScript cannot drift.
165
162
  */
166
163
  export declare const APP_CAPABILITIES: readonly ['ui', 'tools', 'interactions', 'types', 'processes', 'views', 'templates', 'dashboards'];
167
- export type AppCapabilities = z.infer<typeof AppCapabilitiesSchema>;
164
+ export type AppCapabilities = Wire.AppCapabilities;
168
165
  /**
169
166
  * Header carrying the app version a generated-app UI is running, so studio/zeno resolve app-owned
170
167
  * capability refs (`app:<app>:...`) against that exact version instead of the promoted version.
171
168
  * Resolution-time only; never persisted. Set by the generated app template via client.withAppVersion.
172
169
  */
173
170
  export declare const APP_VERSION_HEADER = "x-vertesia-app-version";
174
- export type AppAvailableIn = z.infer<typeof AppAvailableInSchema>;
175
- export type AppVersionKind = z.infer<typeof AppVersionKindSchema>;
176
- export type AppVersionState = z.infer<typeof AppVersionStateSchema>;
177
- export type AppVersionTarget = z.infer<typeof AppVersionTargetSchema>;
178
- export type AppVersionGitRefType = z.infer<typeof AppVersionGitRefTypeSchema>;
179
- export type AppBuildTrigger = z.infer<typeof AppBuildTriggerSchema>;
180
- export type AppVersionStorage = z.infer<typeof AppVersionStorageSchema>;
181
- export type AppVersionGitSource = z.infer<typeof AppVersionGitSourceSchema>;
182
- export type AppVersionUrls = z.infer<typeof AppVersionUrlsSchema>;
183
- export type AppVersionRecord = z.infer<typeof AppVersionRecordSchema>;
184
- export type DeleteAppVersionResponse = z.infer<typeof DeleteAppVersionResponseSchema>;
185
- export type UpsertAppVersionRequest = z.infer<typeof UpsertAppVersionRequestSchema>;
171
+ export type AppAvailableIn = Wire.AppAvailableIn;
172
+ export type AppVersionKind = Wire.AppVersionKind;
173
+ export type AppVersionState = Wire.AppVersionState;
174
+ export type AppVersionTarget = Wire.AppVersionTarget;
175
+ export type AppVersionGitRefType = Wire.AppVersionGitRefType;
176
+ export type AppBuildTrigger = Wire.AppBuildTrigger;
177
+ export type AppVersionStorage = Wire.AppVersionStorage;
178
+ export type AppVersionGitSource = Wire.AppVersionGitSource;
179
+ export type AppVersionUrls = Wire.AppVersionUrls;
180
+ export type AppVersionRecord = Wire.AppVersionRecord;
181
+ export type DeleteAppVersionResponse = Wire.DeleteAppVersionResponse;
182
+ export type UpsertAppVersionRequest = Wire.UpsertAppVersionRequest;
186
183
  export interface AppVersionListQuery {
187
184
  app_id?: string;
188
185
  kind?: AppVersionKind;
189
186
  include_expired?: boolean;
190
187
  limit?: number;
191
188
  }
192
- export type PromoteAppVersionResponse = z.infer<typeof PromoteAppVersionResponseSchema>;
193
- export type StartAppBuildRequest = z.infer<typeof StartAppBuildRequestSchema>;
194
- export type StartAppBuildResponse = z.infer<typeof StartAppBuildResponseSchema>;
195
- export type AppBuildProgressStatus = z.infer<typeof AppBuildProgressStatusSchema>;
196
- export type AppBuildProgress = z.infer<typeof AppBuildProgressSchema>;
197
- export type AppScaffoldModule = z.infer<typeof AppScaffoldModuleSchema>;
198
- export type StartAppScaffoldRequest = z.infer<typeof StartAppScaffoldRequestSchema>;
199
- export type StartAppScaffoldResponse = z.infer<typeof StartAppScaffoldResponseSchema>;
200
- export type StartAppDevelopmentTaskRequest = z.infer<typeof StartAppDevelopmentTaskRequestSchema>;
201
- export type AppScaffoldProgressStatus = z.infer<typeof AppScaffoldProgressStatusSchema>;
202
- export type AppScaffoldProgress = z.infer<typeof AppScaffoldProgressSchema>;
189
+ export type PromoteAppVersionResponse = Wire.PromoteAppVersionResponse;
190
+ export type StartAppBuildRequest = Wire.StartAppBuildRequest;
191
+ export type StartAppBuildResponse = Wire.StartAppBuildResponse;
192
+ export type AppBuildProgressStatus = Wire.AppBuildProgressStatus;
193
+ export type AppBuildProgress = Wire.AppBuildProgress;
194
+ export type AppScaffoldModule = Wire.AppScaffoldModule;
195
+ export type StartAppScaffoldRequest = Wire.StartAppScaffoldRequest;
196
+ export type StartAppScaffoldResponse = Wire.StartAppScaffoldResponse;
197
+ export type StartAppDevelopmentTaskRequest = Wire.StartAppDevelopmentTaskRequest;
198
+ export type AppScaffoldProgressStatus = Wire.AppScaffoldProgressStatus;
199
+ export type AppScaffoldProgress = Wire.AppScaffoldProgress;
203
200
  /**
204
201
  * Access control policy for an app installation.
205
202
  * Declares which access surfaces are gated by per-user ACEs.
@@ -212,11 +209,11 @@ export type AppScaffoldProgress = z.infer<typeof AppScaffoldProgressSchema>;
212
209
  *
213
210
  * Declared on the manifest as the app's default. May be overridden per-installation.
214
211
  */
215
- export type AppAccessControl = z.infer<typeof AppAccessControlSchema>;
216
- export type AppManifestData = z.infer<typeof AppManifestDataSchema>;
217
- export type UpdateAppPayload = z.infer<typeof UpdateAppPayloadSchema>;
218
- export type AppGitSourceConfig = z.infer<typeof AppGitSourceConfigSchema>;
219
- export type AppSourceConfig = z.infer<typeof AppSourceConfigSchema>;
212
+ export type AppAccessControl = Wire.AppAccessControl;
213
+ export type AppManifestData = Wire.AppManifestData;
214
+ export type UpdateAppPayload = Wire.UpdateAppPayload;
215
+ export type AppGitSourceConfig = Wire.AppGitSourceConfig;
216
+ export type AppSourceConfig = Wire.AppSourceConfig;
220
217
  /**
221
218
  * Deployment-time URL endpoints that can be referenced in app manifest URLs
222
219
  * via `{{key}}` placeholders. The caller (typically studio-server) supplies
@@ -238,53 +235,53 @@ export interface Endpoints {
238
235
  gateway?: string;
239
236
  }
240
237
  /** One entry in an app git-repo directory listing (see {@link AppRepoTree}). */
241
- export type AppRepoTreeEntry = z.infer<typeof AppRepoTreeEntrySchema>;
238
+ export type AppRepoTreeEntry = Wire.AppRepoTreeEntry;
242
239
  /** A non-recursive listing of an app git repo directory at a given ref. */
243
- export type AppRepoTree = z.infer<typeof AppRepoTreeSchema>;
240
+ export type AppRepoTree = Wire.AppRepoTree;
244
241
  /** Result of committing one or more uploaded documents to an app repository. */
245
- export type AppRepoDocumentCommit = z.infer<typeof AppRepoDocumentCommitSchema>;
242
+ export type AppRepoDocumentCommit = Wire.AppRepoDocumentCommit;
246
243
  /** One commit that inserted or changed a file in an app git repository. */
247
- export type AppRepoCommit = z.infer<typeof AppRepoCommitSchema>;
244
+ export type AppRepoCommit = Wire.AppRepoCommit;
248
245
  /** Commit history in an app git repository, optionally filtered to a file. */
249
- export type AppRepoCommits = z.infer<typeof AppRepoCommitsSchema>;
246
+ export type AppRepoCommits = Wire.AppRepoCommits;
250
247
  /** A branch or tag in an app git repo, resolved to its latest commit. */
251
- export type AppRepoRef = z.infer<typeof AppRepoRefSchema>;
248
+ export type AppRepoRef = Wire.AppRepoRef;
252
249
  /** The branches and tags of an app git repo (see {@link AppRepoRef}). */
253
- export type AppRepoRefs = z.infer<typeof AppRepoRefsSchema>;
250
+ export type AppRepoRefs = Wire.AppRepoRefs;
254
251
  /** A mutable app development task represented by an `agent/*` Git branch. */
255
- export type AppDevelopmentTask = z.infer<typeof AppDevelopmentTaskSchema>;
252
+ export type AppDevelopmentTask = Wire.AppDevelopmentTask;
256
253
  /** Git-backed development tasks and the branch used for new tasks by default. */
257
- export type AppDevelopmentTaskList = z.infer<typeof AppDevelopmentTaskListSchema>;
254
+ export type AppDevelopmentTaskList = Wire.AppDevelopmentTaskList;
258
255
  /** Development task details, including the latest parent assistant run when one exists. */
259
- export type AppDevelopmentTaskDetails = z.infer<typeof AppDevelopmentTaskDetailsSchema>;
256
+ export type AppDevelopmentTaskDetails = Wire.AppDevelopmentTaskDetails;
260
257
  /** Request to create a branch from an existing branch, tag, or commit. */
261
258
  export interface CreateAppRepoBranchRequest {
262
259
  name: string;
263
260
  source_ref: string;
264
261
  }
265
262
  /** A newly created app repository branch. */
266
- export type AppRepoBranch = z.infer<typeof AppRepoBranchSchema>;
263
+ export type AppRepoBranch = Wire.AppRepoBranch;
267
264
  /**
268
265
  * Canonical package scopes, including the catch-all `all`. The public type is derived
269
266
  * from this list so request parsing and TypeScript cannot drift.
270
267
  */
271
268
  export declare const APP_PACKAGE_SCOPES: readonly ['ui', 'tools', 'interactions', 'types', 'processes', 'views', 'templates', 'dashboards', 'settings', 'widgets', 'activities', 'hooks', 'subscriptions', 'all'];
272
269
  export type AppPackageScope = (typeof APP_PACKAGE_SCOPES)[number];
273
- export type AppPackageEventHook = z.infer<typeof AppPackageEventHookSchema>;
274
- export type AppPackageHooks = z.infer<typeof AppPackageHooksSchema>;
275
- export type AppEventHookDelivery = z.infer<typeof AppEventHookDeliverySchema>;
276
- export type AppEventHookPayload = z.infer<typeof AppEventHookPayloadSchema>;
277
- export type AppEventSubscriptionDefinition = z.infer<typeof AppEventSubscriptionDefinitionSchema>;
278
- export type AppPackage = z.infer<typeof AppPackageSchema>;
270
+ export type AppPackageEventHook = Wire.AppPackageEventHook;
271
+ export type AppPackageHooks = Wire.AppPackageHooks;
272
+ export type AppEventHookDelivery = Wire.AppEventHookDelivery;
273
+ export type AppEventHookPayload = Wire.AppEventHookPayload;
274
+ export type AppEventSubscriptionDefinition = Wire.AppEventSubscriptionDefinition;
275
+ export type AppPackage = Wire.AppPackage;
279
276
  /**
280
277
  * A single diagnostic produced while inspecting an app's registration state.
281
278
  */
282
- export type AppInspectionIssue = z.infer<typeof AppInspectionIssueSchema>;
279
+ export type AppInspectionIssue = Wire.AppInspectionIssue;
283
280
  /**
284
281
  * Per-capability report of what an app's promoted package actually exposes,
285
282
  * compared against what its manifest declares.
286
283
  */
287
- export type AppInspectionCapabilityReport = z.infer<typeof AppInspectionCapabilityReportSchema>;
284
+ export type AppInspectionCapabilityReport = Wire.AppInspectionCapabilityReport;
288
285
  /**
289
286
  * Result of inspecting an app's registration: the resolved manifest state, what
290
287
  * the promoted package actually exposes per capability, and diagnostics. This
@@ -292,92 +289,92 @@ export type AppInspectionCapabilityReport = z.infer<typeof AppInspectionCapabili
292
289
  * Build › App inspection UI to verify what is registered vs declared, instead of
293
290
  * inferring it from failed object/import calls.
294
291
  */
295
- export type AppInspectionResult = z.infer<typeof AppInspectionResultSchema>;
296
- export type AppWidgetInfo = z.infer<typeof AppWidgetInfoSchema>;
297
- export type RenderingTemplateDefinition = z.infer<typeof RenderingTemplateDefinitionSchema>;
298
- export type RenderingTemplateDefinitionRef = z.infer<typeof RenderingTemplateDefinitionRefSchema>;
299
- export type AppManifest = z.infer<typeof AppManifestSchema>;
300
- export type AppManifestSource = z.infer<typeof AppManifestSourceSchema>;
292
+ export type AppInspectionResult = Wire.AppInspectionResult;
293
+ export type AppWidgetInfo = Wire.AppWidgetInfo;
294
+ export type RenderingTemplateDefinition = Wire.RenderingTemplateDefinition;
295
+ export type RenderingTemplateDefinitionRef = Wire.RenderingTemplateDefinitionRef;
296
+ export type AppManifest = Wire.AppManifest;
297
+ export type AppManifestSource = Wire.AppManifestSource;
301
298
  /**
302
299
  * Binding between an MCP collection and an OAuth provider created at install time.
303
300
  * Stored on AppInstallation so the runtime can look up the correct OAuth provider by ID,
304
301
  * independent of manifest oauth_provider references (which may change).
305
302
  */
306
- export type AppInstallationOAuthBinding = z.infer<typeof AppInstallationOAuthBindingSchema>;
303
+ export type AppInstallationOAuthBinding = Wire.AppInstallationOAuthBinding;
307
304
  /**
308
305
  * Binding between a named OAuth provider and the OAuth provider created for it at install time.
309
306
  * Stored on AppInstallation so the runtime can resolve the correct OAuth provider for collections
310
307
  * that reference a shared provider via MCPToolCollectionObject.oauth_provider.
311
308
  */
312
- export type AppInstallationProviderBinding = z.infer<typeof AppInstallationProviderBindingSchema>;
313
- export type AppInstallation = z.infer<typeof AppInstallationSchema>;
314
- export type AppInstallationWithManifest = z.infer<typeof AppInstallationWithManifestSchema>;
309
+ export type AppInstallationProviderBinding = Wire.AppInstallationProviderBinding;
310
+ export type AppInstallation = Wire.AppInstallation;
311
+ export type AppInstallationWithManifest = Wire.AppInstallationWithManifest;
315
312
  /** An installation whose app manifest could not be resolved (the app was deleted or is unpublished). */
316
313
  export interface OrphanedAppInstallation extends Omit<AppInstallation, 'manifest'> {
317
314
  manifest: null;
318
315
  }
319
- export type AppInstallationListEntry = z.infer<typeof AppInstallationListEntrySchema>;
320
- export type OAuthClientCredentials = z.infer<typeof OAuthClientCredentialsSchema>;
321
- export type AppOAuthCollectionParams = z.infer<typeof AppOAuthCollectionParamsSchema>;
316
+ export type AppInstallationListEntry = Wire.AppInstallationListEntry;
317
+ export type OAuthClientCredentials = Wire.OAuthClientCredentials;
318
+ export type AppOAuthCollectionParams = Wire.AppOAuthCollectionParams;
322
319
  /** One installer-supplied MCP API key. */
323
- export type McpApiKeyCredential = z.infer<typeof McpApiKeyCredentialSchema>;
320
+ export type McpApiKeyCredential = Wire.McpApiKeyCredential;
324
321
  /** Installer-supplied MCP API keys, keyed by collection id. */
325
- export type AppApiKeyCollectionParams = z.infer<typeof AppApiKeyCollectionParamsSchema>;
326
- export type AppOAuthProviderParams = z.infer<typeof AppOAuthProviderParamsSchema>;
327
- export type AppInstallationPayload = z.infer<typeof AppInstallationPayloadSchema>;
328
- export type UpdateAppInstallationToolAllowlistPayload = z.infer<typeof UpdateAppInstallationToolAllowlistPayloadSchema>;
329
- export type AppInstallationKind = z.infer<typeof AppInstallationKindSchema>;
322
+ export type AppApiKeyCollectionParams = Wire.AppApiKeyCollectionParams;
323
+ export type AppOAuthProviderParams = Wire.AppOAuthProviderParams;
324
+ export type AppInstallationPayload = Wire.AppInstallationPayload;
325
+ export type UpdateAppInstallationToolAllowlistPayload = Wire.UpdateAppInstallationToolAllowlistPayload;
326
+ export type AppInstallationKind = Wire.AppInstallationKind;
330
327
  /**
331
328
  * A description of the tools provided by an app
332
329
  */
333
- export type AppToolCollection = z.infer<typeof AppToolCollectionSchema>;
330
+ export type AppToolCollection = Wire.AppToolCollection;
334
331
  /**
335
332
  * A tool and the app installation that provides it, inferred from `./api-schemas/project.js` — the
336
333
  * module that owns it, because it converted with the Projects batch rather than with Apps.
337
334
  */
338
- export type ProjectToolInfo = z.infer<typeof ProjectToolInfoSchema>;
335
+ export type ProjectToolInfo = Wire.ProjectToolInfo;
339
336
  /**
340
337
  * OAuth authentication status for an MCP tool collection
341
338
  */
342
- export type OAuthAuthStatus = z.infer<typeof OAuthAuthStatusSchema>;
339
+ export type OAuthAuthStatus = Wire.OAuthAuthStatus;
343
340
  /**
344
341
  * Response from OAuth authorization endpoint
345
342
  */
346
- export type OAuthAuthorizeResponse = z.infer<typeof OAuthAuthorizeResponseSchema>;
343
+ export type OAuthAuthorizeResponse = Wire.OAuthAuthorizeResponse;
347
344
  /**
348
345
  * Payload for storing the static bearer token of an `auth: 'api_key'` MCP collection.
349
346
  * The key is write-only — it is never echoed back by any endpoint.
350
347
  */
351
- export type SetMcpApiKeyRequest = z.infer<typeof SetMcpApiKeyRequestSchema>;
348
+ export type SetMcpApiKeyRequest = Wire.SetMcpApiKeyRequest;
352
349
  /** Whether an `auth: 'api_key'` MCP collection has a key stored, plus a display-only hint. */
353
- export type McpApiKeyStatus = z.infer<typeof McpApiKeyStatusSchema>;
354
- export type McpOAuthTokenRequest = z.infer<typeof McpOAuthTokenRequestSchema>;
355
- export type McpOAuthTokenResponse = z.infer<typeof McpOAuthTokenResponseSchema>;
356
- export type McpOAuthConnectResponse = z.infer<typeof McpOAuthConnectResponseSchema>;
357
- export type McpOAuthDisconnectResponse = z.infer<typeof McpOAuthDisconnectResponseSchema>;
350
+ export type McpApiKeyStatus = Wire.McpApiKeyStatus;
351
+ export type McpOAuthTokenRequest = Wire.McpOAuthTokenRequest;
352
+ export type McpOAuthTokenResponse = Wire.McpOAuthTokenResponse;
353
+ export type McpOAuthConnectResponse = Wire.McpOAuthConnectResponse;
354
+ export type McpOAuthDisconnectResponse = Wire.McpOAuthDisconnectResponse;
358
355
  /**
359
356
  * Response from OAuth metadata endpoint
360
357
  */
361
- export type OAuthMetadataResponse = z.infer<typeof OAuthMetadataResponseSchema>;
358
+ export type OAuthMetadataResponse = Wire.OAuthMetadataResponse;
362
359
  /**
363
360
  * Configuration entry for an individual app in the CompositeApp shell.
364
361
  * References an app installation by name.
365
362
  */
366
- export type CompositeAppEntry = z.infer<typeof CompositeAppEntrySchema>;
363
+ export type CompositeAppEntry = Wire.CompositeAppEntry;
367
364
  /**
368
365
  * Logo overrides for the CompositeApp shell header.
369
366
  * When provided, these URLs replace the default Vertesia logo.
370
367
  */
371
- export type CompositeAppLogoOverrides = z.infer<typeof CompositeAppLogoOverridesSchema>;
368
+ export type CompositeAppLogoOverrides = Wire.CompositeAppLogoOverrides;
372
369
  /**
373
370
  * Message banner overrides for the shell header.
374
371
  */
375
- export type CompositeAppMessageStyle = z.infer<typeof CompositeAppMessageStyleSchema>;
376
- export type CompositeAppMessageOverrides = z.infer<typeof CompositeAppMessageOverridesSchema>;
372
+ export type CompositeAppMessageStyle = Wire.CompositeAppMessageStyle;
373
+ export type CompositeAppMessageOverrides = Wire.CompositeAppMessageOverrides;
377
374
  /**
378
375
  * Switcher visibility overrides for the CompositeApp header.
379
376
  */
380
- export type CompositeAppSwitchersOverrides = z.infer<typeof CompositeAppSwitchersOverridesSchema>;
377
+ export type CompositeAppSwitchersOverrides = Wire.CompositeAppSwitchersOverrides;
381
378
  /**
382
379
  * Header button visibility overrides for the CompositeApp header.
383
380
  *
@@ -385,7 +382,7 @@ export type CompositeAppSwitchersOverrides = z.infer<typeof CompositeAppSwitcher
385
382
  * Retained for backward compatibility and to seed the default header menu when no
386
383
  * `headerMenu` has been configured yet.
387
384
  */
388
- export type CompositeAppHeaderOverrides = z.infer<typeof CompositeAppHeaderOverridesSchema>;
385
+ export type CompositeAppHeaderOverrides = Wire.CompositeAppHeaderOverrides;
389
386
  /**
390
387
  * User menu overrides for the CompositeApp.
391
388
  *
@@ -393,22 +390,22 @@ export type CompositeAppHeaderOverrides = z.infer<typeof CompositeAppHeaderOverr
393
390
  * Retained for backward compatibility and to seed the default header menu when no
394
391
  * `headerMenu` has been configured yet.
395
392
  */
396
- export type CompositeAppUserMenuOverrides = z.infer<typeof CompositeAppUserMenuOverridesSchema>;
393
+ export type CompositeAppUserMenuOverrides = Wire.CompositeAppUserMenuOverrides;
397
394
  /**
398
395
  * Theme overrides for the CompositeApp.
399
396
  */
400
- export type CompositeAppThemeOverrides = z.infer<typeof CompositeAppThemeOverridesSchema>;
397
+ export type CompositeAppThemeOverrides = Wire.CompositeAppThemeOverrides;
401
398
  /**
402
399
  * Sidebar display overrides for the CompositeApp.
403
400
  */
404
- export type CompositeAppSidebarOverrides = z.infer<typeof CompositeAppSidebarOverridesSchema>;
401
+ export type CompositeAppSidebarOverrides = Wire.CompositeAppSidebarOverrides;
405
402
  /**
406
403
  * Card display overrides for the CompositeApp in the App Portal.
407
404
  * Similar to AppManifest display properties, but specific to the CompositeApp card.
408
405
  * Allows customers to customize the app portal card (not otherwise possible if using a
409
406
  * shared, Vertesia-managed manifest across accounts).
410
407
  */
411
- export type CompositeAppCardOverrides = z.infer<typeof CompositeAppCardOverridesSchema>;
408
+ export type CompositeAppCardOverrides = Wire.CompositeAppCardOverrides;
412
409
  /**
413
410
  * Access control settings for a composite app nav item.
414
411
  *
@@ -416,7 +413,7 @@ export type CompositeAppCardOverrides = z.infer<typeof CompositeAppCardOverrides
416
413
  * access is granted when the user matches ANY list (OR logic).
417
414
  * All empty/absent means visible to everyone. Admin users bypass all checks.
418
415
  */
419
- export type CompositeAppNavItemPermissions = z.infer<typeof CompositeAppNavItemPermissionsSchema>;
416
+ export type CompositeAppNavItemPermissions = Wire.CompositeAppNavItemPermissions;
420
417
  /**
421
418
  * A navigable item in the sidebar menu.
422
419
  * An "app" is just a nav-item with `appName` + `route: "/"` that has children.
@@ -452,17 +449,17 @@ export interface CompositeAppMenuNavItem {
452
449
  * A top-level section heading in the sidebar menu.
453
450
  * Sections are always at root level and contain nav-items.
454
451
  */
455
- export type CompositeAppMenuSection = z.infer<typeof CompositeAppMenuSectionSchema>;
456
- export type CompositeAppHomePlugin = z.infer<typeof CompositeAppHomePluginSchema>;
452
+ export type CompositeAppMenuSection = Wire.CompositeAppMenuSection;
453
+ export type CompositeAppHomePlugin = Wire.CompositeAppHomePlugin;
457
454
  /**
458
455
  * Discriminator for a header item.
459
456
  * The four built-ins (`app_portal`, `docs`, `help`, `user_menu`) seed the default
460
457
  * header and cannot be deleted (only hidden/customized); `custom` items are fully
461
458
  * user-defined buttons.
462
459
  */
463
- export type CompositeAppHeaderItemKind = z.infer<typeof CompositeAppHeaderItemKindSchema>;
460
+ export type CompositeAppHeaderItemKind = Wire.CompositeAppHeaderItemKind;
464
461
  /** Where a header link opens. */
465
- export type CompositeAppHeaderItemTarget = z.infer<typeof CompositeAppHeaderItemTargetSchema>;
462
+ export type CompositeAppHeaderItemTarget = Wire.CompositeAppHeaderItemTarget;
466
463
  /**
467
464
  * A single button in the CompositeApp header bar.
468
465
  *
@@ -471,16 +468,16 @@ export type CompositeAppHeaderItemTarget = z.infer<typeof CompositeAppHeaderItem
471
468
  * The `user_menu` item is special — it renders the account dropdown, so its `icon`,
472
469
  * `href`, and `target` are ignored.
473
470
  */
474
- export type CompositeAppHeaderItem = z.infer<typeof CompositeAppHeaderItemSchema>;
471
+ export type CompositeAppHeaderItem = Wire.CompositeAppHeaderItem;
475
472
  /**
476
473
  * CompositeApp shell configuration.
477
474
  * This is the main configuration interface for storing CompositeApp settings.
478
475
  * Used as the MongoDB model for persisting CompositeApp configurations.
479
476
  */
480
- export type CompositeAppConfig = z.infer<typeof CompositeAppConfigSchema>;
481
- export type CompositeAppConfigPayload = z.infer<typeof CompositeAppConfigPayloadSchema>;
482
- export type ValidateUrlRequest = z.infer<typeof ValidateUrlRequestSchema>;
483
- export type ValidateUrlResponse = z.infer<typeof ValidateUrlResponseSchema>;
477
+ export type CompositeAppConfig = Wire.CompositeAppConfig;
478
+ export type CompositeAppConfigPayload = Wire.CompositeAppConfigPayload;
479
+ export type ValidateUrlRequest = Wire.ValidateUrlRequest;
480
+ export type ValidateUrlResponse = Wire.ValidateUrlResponse;
484
481
  /**
485
482
  * Result of DELETE /api/v1/apps/:id. With `?confirm=true` the cascade runs and
486
483
  * `deleted: true` is set; without it the endpoint returns a dry-run summary so
@@ -492,22 +489,13 @@ export type ValidateUrlResponse = z.infer<typeof ValidateUrlResponseSchema>;
492
489
  * the check fails closed, that surfaced as a 500 raised AFTER the app was
493
490
  * already deleted. Deriving the type is what keeps the two from drifting again.
494
491
  */
495
- export type AppDeleteSummary = z.infer<typeof AppDeleteSummarySchema>;
496
- export type UpdateAppInstallationOAuthApprovalPayload = z.infer<typeof UpdateAppInstallationOAuthApprovalPayloadSchema>;
492
+ export type AppDeleteSummary = Wire.AppDeleteSummary;
493
+ export type UpdateAppInstallationOAuthApprovalPayload = Wire.UpdateAppInstallationOAuthApprovalPayload;
497
494
 
498
495
  // -----------------------------------------------------------------------------
499
496
  // @vertesia/common: data-platform.d.ts
500
497
  // -----------------------------------------------------------------------------
501
- import type { AppDashboardDefinitionSchema } from './api-schemas/app-runtime.js';
502
- /**
503
- * Data Platform Types
504
- *
505
- * Types for managing versioned analytical data stores with DuckDB + GCS storage.
506
- * Supports AI-manageable schemas and multi-table atomic operations.
507
- */
508
- import type { z } from 'zod';
509
- import type { CreateDashboardPayloadSchema, CreateDashboardSnapshotPayloadSchema, DashboardArchiveResultSchema, DashboardBulkArchiveResultSchema, DashboardBulkDeleteResultSchema, DashboardDataSourceSchema, DashboardElasticsearchDslSchema, DashboardElasticsearchResultMappingSchema, DashboardItemSchema, DashboardLayoutSchema, DashboardPanelPositionSchema, DashboardPanelSchema, DashboardQuerySchema, DashboardSchema, DashboardSqlDataSourceSchema, DashboardStatusSchema, DashboardStoreElasticsearchDataSourceSchema, DashboardVersionItemSchema, DashboardVersioningPayloadSchema, DashboardVersioningStatusResponseSchema, DashboardVersionSchema, PromoteDashboardVersionPayloadSchema, UpdateDashboardPayloadSchema } from './api-schemas/dashboard.js';
510
- import type { AlterTableOperationSchema, AlterTablePayloadSchema, BatchQueryPayloadSchema, BatchQueryResultItemSchema, BatchQueryResultSchema, CreateDataStorePayloadSchema, CreateSnapshotPayloadSchema, CreateTablePayloadSchema, CreateTablesPayloadSchema, DataColumnForAISchema, DataColumnSchema, DataColumnTypeSchema, DataColumnUpdateSchema, DataForeignKeyForAISchema, DataForeignKeySchema, DataIndexSchema, DataRelationshipForAISchema, DataRelationshipSchema, DataRelationshipTypeSchema, DataSchemaForAISchema, DataSchemaSchema, DataStoreArchiveResultSchema, DataStoreDownloadInfoSchema, DataStoreFullSchemaResponseSchema, DataStoreItemSchema, DataStoreMutateRowsPayloadSchema, DataStoreMutateRowsResultSchema, DataStoreSchema, DataStoreSchemaResponseSchema, DataStoreStatusSchema, DataStoreTableDetailSchema, DataStoreTableDropResultSchema, DataStoreVersionSchema, DataStoreVersionTableStateSchema, DataTableForAISchema, DataTableSchema, DataTableSemanticTypeSchema, DataTableSummarySchema, GetDataStoreTableQuerySchema, ImportDataFormatSchema, ImportDataPayloadSchema, ImportDataSourceSchema, ImportJobSchema, ImportStatusSchema, ImportTableDataSchema, ListDataStoreVersionsQuerySchema, QueryPayloadSchema, QueryResultColumnSchema, QueryResultSchema, QueryValidationErrorSchema, QueryValidationPayloadSchema, QueryValidationResultSchema, SemanticColumnTypeSchema, UpdateSchemaPayloadSchema } from './api-schemas/data-store.js';
498
+ import type * as Wire from './wire-types.generated.js';
511
499
  /**
512
500
  * Supported column data types for DuckDB tables.
513
501
  */
@@ -523,7 +511,7 @@ export declare const DataColumnType: {
523
511
  readonly TIMESTAMP: 'TIMESTAMP';
524
512
  readonly JSON: 'JSON';
525
513
  };
526
- export type DataColumnType = z.infer<typeof DataColumnTypeSchema>;
514
+ export type DataColumnType = Wire.DataColumnType;
527
515
  /**
528
516
  * Semantic types that provide AI agents with context about column meaning.
529
517
  */
@@ -539,7 +527,7 @@ export declare const SemanticColumnType: {
539
527
  readonly DATE_ISO: 'date_iso';
540
528
  readonly IDENTIFIER: 'identifier';
541
529
  };
542
- export type SemanticColumnType = z.infer<typeof SemanticColumnTypeSchema>;
530
+ export type SemanticColumnType = Wire.SemanticColumnType;
543
531
  /**
544
532
  * Mapping from DataColumnType to DuckDB SQL types.
545
533
  */
@@ -547,40 +535,40 @@ export declare const DATA_COLUMN_TYPE_TO_DUCKDB: Record<DataColumnType, string>;
547
535
  /**
548
536
  * Column definition for a data table.
549
537
  */
550
- export type DataColumn = z.infer<typeof DataColumnSchema>;
538
+ export type DataColumn = Wire.DataColumn;
551
539
  /**
552
540
  * Foreign key constraint definition.
553
541
  */
554
- export type DataForeignKey = z.infer<typeof DataForeignKeySchema>;
542
+ export type DataForeignKey = Wire.DataForeignKey;
555
543
  /**
556
544
  * Index definition for a table.
557
545
  */
558
- export type DataIndex = z.infer<typeof DataIndexSchema>;
546
+ export type DataIndex = Wire.DataIndex;
559
547
  /**
560
548
  * Semantic type categorization for tables.
561
549
  */
562
- export type DataTableSemanticType = z.infer<typeof DataTableSemanticTypeSchema>;
550
+ export type DataTableSemanticType = Wire.DataTableSemanticType;
563
551
  /**
564
552
  * Table definition within a data schema.
565
553
  */
566
- export type DataTable = z.infer<typeof DataTableSchema>;
554
+ export type DataTable = Wire.DataTable;
567
555
  /**
568
556
  * Summary view of a data table (for listings).
569
557
  */
570
- export type DataTableSummary = z.infer<typeof DataTableSummarySchema>;
558
+ export type DataTableSummary = Wire.DataTableSummary;
571
559
  /**
572
560
  * Relationship type between tables.
573
561
  */
574
- export type DataRelationshipType = z.infer<typeof DataRelationshipTypeSchema>;
562
+ export type DataRelationshipType = Wire.DataRelationshipType;
575
563
  /**
576
564
  * Semantic relationship between tables for AI understanding.
577
565
  */
578
- export type DataRelationship = z.infer<typeof DataRelationshipSchema>;
566
+ export type DataRelationship = Wire.DataRelationship;
579
567
  /**
580
568
  * Complete schema definition for a data store.
581
569
  */
582
- export type DataSchema = z.infer<typeof DataSchemaSchema>;
583
- export type DataStoreFullSchemaResponse = z.infer<typeof DataStoreFullSchemaResponseSchema>;
570
+ export type DataSchema = Wire.DataSchema;
571
+ export type DataStoreFullSchemaResponse = Wire.DataStoreFullSchemaResponse;
584
572
  /**
585
573
  * Data store lifecycle status.
586
574
  */
@@ -590,25 +578,25 @@ export declare const DataStoreStatus: {
590
578
  readonly ERROR: 'error';
591
579
  readonly ARCHIVED: 'archived';
592
580
  };
593
- export type DataStoreStatus = z.infer<typeof DataStoreStatusSchema>;
581
+ export type DataStoreStatus = Wire.DataStoreStatus;
594
582
  /**
595
583
  * Summary view of a data store (for listings).
596
584
  */
597
- export type DataStoreItem = z.infer<typeof DataStoreItemSchema>;
585
+ export type DataStoreItem = Wire.DataStoreItem;
598
586
  /**
599
587
  * Full data store with schema details.
600
588
  */
601
- export type DataStore = z.infer<typeof DataStoreSchema>;
589
+ export type DataStore = Wire.DataStore;
602
590
  /**
603
591
  * Table state within a version.
604
592
  */
605
- export type DataStoreVersionTableState = z.infer<typeof DataStoreVersionTableStateSchema>;
593
+ export type DataStoreVersionTableState = Wire.DataStoreVersionTableState;
606
594
  /**
607
595
  * A point-in-time version of a data store.
608
596
  */
609
- export type DataStoreVersion = z.infer<typeof DataStoreVersionSchema>;
610
- export type ListDataStoreVersionsQuery = z.infer<typeof ListDataStoreVersionsQuerySchema>;
611
- export type GetDataStoreTableQuery = z.infer<typeof GetDataStoreTableQuerySchema>;
597
+ export type DataStoreVersion = Wire.DataStoreVersion;
598
+ export type ListDataStoreVersionsQuery = Wire.ListDataStoreVersionsQuery;
599
+ export type GetDataStoreTableQuery = Wire.GetDataStoreTableQuery;
612
600
  /**
613
601
  * Import job status.
614
602
  */
@@ -619,40 +607,40 @@ export declare const ImportStatus: {
619
607
  readonly FAILED: 'failed';
620
608
  readonly ROLLED_BACK: 'rolled_back';
621
609
  };
622
- export type ImportStatus = z.infer<typeof ImportStatusSchema>;
610
+ export type ImportStatus = Wire.ImportStatus;
623
611
  /**
624
612
  * Import job tracking.
625
613
  */
626
- export type ImportJob = z.infer<typeof ImportJobSchema>;
614
+ export type ImportJob = Wire.ImportJob;
627
615
  /**
628
616
  * Payload for creating a new data store.
629
617
  */
630
- export type CreateDataStorePayload = z.infer<typeof CreateDataStorePayloadSchema>;
618
+ export type CreateDataStorePayload = Wire.CreateDataStorePayload;
631
619
  /**
632
620
  * Payload for creating a new table.
633
621
  */
634
- export type CreateTablePayload = z.infer<typeof CreateTablePayloadSchema>;
622
+ export type CreateTablePayload = Wire.CreateTablePayload;
635
623
  /**
636
624
  * Payload for creating multiple tables atomically.
637
625
  */
638
- export type CreateTablesPayload = z.infer<typeof CreateTablesPayloadSchema>;
639
- export type QueryValidationPayload = z.infer<typeof QueryValidationPayloadSchema>;
640
- export type BatchQueryPayload = z.infer<typeof BatchQueryPayloadSchema>;
626
+ export type CreateTablesPayload = Wire.CreateTablesPayload;
627
+ export type QueryValidationPayload = Wire.QueryValidationPayload;
628
+ export type BatchQueryPayload = Wire.BatchQueryPayload;
641
629
  /**
642
630
  * Schema change operation types.
643
631
  */
644
632
  /**
645
633
  * @discriminator op
646
634
  */
647
- export type AlterTableOperation = z.infer<typeof AlterTableOperationSchema>;
635
+ export type AlterTableOperation = Wire.AlterTableOperation;
648
636
  /**
649
637
  * Payload for altering a table schema.
650
638
  */
651
- export type AlterTablePayload = z.infer<typeof AlterTablePayloadSchema>;
639
+ export type AlterTablePayload = Wire.AlterTablePayload;
652
640
  /**
653
641
  * Payload for AI-driven bulk schema updates.
654
642
  */
655
- export type UpdateSchemaPayload = z.infer<typeof UpdateSchemaPayloadSchema>;
643
+ export type UpdateSchemaPayload = Wire.UpdateSchemaPayload;
656
644
  /**
657
645
  * Data source for import.
658
646
  * - 'inline': data provided directly in the payload
@@ -660,81 +648,81 @@ export type UpdateSchemaPayload = z.infer<typeof UpdateSchemaPayloadSchema>;
660
648
  * - 'url': data at an HTTPS URL
661
649
  * - 'artifact': data from workflow artifact (resolved to GCS by tool)
662
650
  */
663
- export type ImportDataSource = z.infer<typeof ImportDataSourceSchema>;
651
+ export type ImportDataSource = Wire.ImportDataSource;
664
652
  /**
665
653
  * Data format for external sources.
666
654
  */
667
- export type ImportDataFormat = z.infer<typeof ImportDataFormatSchema>;
655
+ export type ImportDataFormat = Wire.ImportDataFormat;
668
656
  /**
669
657
  * Table data specification for import.
670
658
  */
671
- export type ImportTableData = z.infer<typeof ImportTableDataSchema>;
659
+ export type ImportTableData = Wire.ImportTableData;
672
660
  /**
673
661
  * Payload for importing data into tables.
674
662
  */
675
- export type ImportDataPayload = z.infer<typeof ImportDataPayloadSchema>;
663
+ export type ImportDataPayload = Wire.ImportDataPayload;
676
664
  /**
677
665
  * Payload for creating a named snapshot.
678
666
  */
679
- export type CreateSnapshotPayload = z.infer<typeof CreateSnapshotPayloadSchema>;
667
+ export type CreateSnapshotPayload = Wire.CreateSnapshotPayload;
680
668
  /**
681
669
  * Payload for executing a query.
682
670
  */
683
- export type QueryPayload = z.infer<typeof QueryPayloadSchema>;
671
+ export type QueryPayload = Wire.QueryPayload;
684
672
  /**
685
673
  * Payload for mutating data rows with a single SQL statement.
686
674
  */
687
- export type DataStoreMutateRowsPayload = z.infer<typeof DataStoreMutateRowsPayloadSchema>;
675
+ export type DataStoreMutateRowsPayload = Wire.DataStoreMutateRowsPayload;
688
676
  /**
689
677
  * Result from mutating rows in a data store.
690
678
  */
691
- export type DataStoreMutateRowsResult = z.infer<typeof DataStoreMutateRowsResultSchema>;
679
+ export type DataStoreMutateRowsResult = Wire.DataStoreMutateRowsResult;
692
680
  /**
693
681
  * Column metadata in query results.
694
682
  */
695
- export type QueryResultColumn = z.infer<typeof QueryResultColumnSchema>;
683
+ export type QueryResultColumn = Wire.QueryResultColumn;
696
684
  /**
697
685
  * Query execution result.
698
686
  */
699
- export type QueryResult = z.infer<typeof QueryResultSchema>;
700
- export type BatchQueryResultItem = z.infer<typeof BatchQueryResultItemSchema>;
701
- export type BatchQueryResult = z.infer<typeof BatchQueryResultSchema>;
702
- export type QueryValidationError = z.infer<typeof QueryValidationErrorSchema>;
703
- export type QueryValidationResult = z.infer<typeof QueryValidationResultSchema>;
704
- export type DataStoreDownloadInfo = z.infer<typeof DataStoreDownloadInfoSchema>;
705
- export type DataStoreArchiveResult = z.infer<typeof DataStoreArchiveResultSchema>;
687
+ export type QueryResult = Wire.QueryResult;
688
+ export type BatchQueryResultItem = Wire.BatchQueryResultItem;
689
+ export type BatchQueryResult = Wire.BatchQueryResult;
690
+ export type QueryValidationError = Wire.QueryValidationError;
691
+ export type QueryValidationResult = Wire.QueryValidationResult;
692
+ export type DataStoreDownloadInfo = Wire.DataStoreDownloadInfo;
693
+ export type DataStoreArchiveResult = Wire.DataStoreArchiveResult;
706
694
  /**
707
695
  * @discriminator schema_format
708
696
  */
709
- export type DataStoreSchemaResponse = z.infer<typeof DataStoreSchemaResponseSchema>;
710
- export type DataStoreTableDetail = z.infer<typeof DataStoreTableDetailSchema>;
711
- export type DataStoreTableDropResult = z.infer<typeof DataStoreTableDropResultSchema>;
712
- export type DashboardArchiveResult = z.infer<typeof DashboardArchiveResultSchema>;
713
- export type DashboardBulkArchiveResult = z.infer<typeof DashboardBulkArchiveResultSchema>;
714
- export type DashboardBulkDeleteResult = z.infer<typeof DashboardBulkDeleteResultSchema>;
715
- export type DashboardVersioningStatusResponse = z.infer<typeof DashboardVersioningStatusResponseSchema>;
716
- export type DashboardVersioningPayload = z.infer<typeof DashboardVersioningPayloadSchema>;
697
+ export type DataStoreSchemaResponse = Wire.DataStoreSchemaResponse;
698
+ export type DataStoreTableDetail = Wire.DataStoreTableDetail;
699
+ export type DataStoreTableDropResult = Wire.DataStoreTableDropResult;
700
+ export type DashboardArchiveResult = Wire.DashboardArchiveResult;
701
+ export type DashboardBulkArchiveResult = Wire.DashboardBulkArchiveResult;
702
+ export type DashboardBulkDeleteResult = Wire.DashboardBulkDeleteResult;
703
+ export type DashboardVersioningStatusResponse = Wire.DashboardVersioningStatusResponse;
704
+ export type DashboardVersioningPayload = Wire.DashboardVersioningPayload;
717
705
  /**
718
706
  * Simplified column representation for AI agents.
719
707
  */
720
- export type DataColumnForAI = z.infer<typeof DataColumnForAISchema>;
708
+ export type DataColumnForAI = Wire.DataColumnForAI;
721
709
  /**
722
710
  * Simplified foreign key representation for AI agents.
723
711
  */
724
- export type DataForeignKeyForAI = z.infer<typeof DataForeignKeyForAISchema>;
712
+ export type DataForeignKeyForAI = Wire.DataForeignKeyForAI;
725
713
  /**
726
714
  * Simplified table representation for AI agents.
727
715
  */
728
- export type DataTableForAI = z.infer<typeof DataTableForAISchema>;
716
+ export type DataTableForAI = Wire.DataTableForAI;
729
717
  /**
730
718
  * Simplified relationship representation for AI agents.
731
719
  */
732
- export type DataRelationshipForAI = z.infer<typeof DataRelationshipForAISchema>;
720
+ export type DataRelationshipForAI = Wire.DataRelationshipForAI;
733
721
  /**
734
722
  * Simplified schema representation optimized for AI agent consumption.
735
723
  * Provides semantic context for understanding the data model.
736
724
  */
737
- export type DataSchemaForAI = z.infer<typeof DataSchemaForAISchema>;
725
+ export type DataSchemaForAI = Wire.DataSchemaForAI;
738
726
  /**
739
727
  * Version retention configuration.
740
728
  */
@@ -757,7 +745,7 @@ export declare const DashboardStatus: {
757
745
  /** Dashboard has been archived (soft deleted) */
758
746
  readonly ARCHIVED: 'archived';
759
747
  };
760
- export type DashboardStatus = z.infer<typeof DashboardStatusSchema>;
748
+ export type DashboardStatus = Wire.DashboardStatus;
761
749
  /**
762
750
  * Named SQL query that maps to a Vega data source.
763
751
  * Supports parameterized SQL with {{param_name}} placeholders.
@@ -765,26 +753,26 @@ export type DashboardStatus = z.infer<typeof DashboardStatusSchema>;
765
753
  * @deprecated Use single `query` field on Dashboard instead. Multiple queries
766
754
  * prevent cross-panel interactivity. Use JOINs/CTEs in a single query.
767
755
  */
768
- export type DashboardQuery = z.infer<typeof DashboardQuerySchema>;
756
+ export type DashboardQuery = Wire.DashboardQuery;
769
757
  /**
770
758
  * Panel position within the dashboard grid.
771
759
  *
772
760
  * @deprecated Use combined Vega-Lite spec with vconcat/hconcat instead.
773
761
  */
774
- export type DashboardPanelPosition = z.infer<typeof DashboardPanelPositionSchema>;
762
+ export type DashboardPanelPosition = Wire.DashboardPanelPosition;
775
763
  /**
776
764
  * Dashboard panel with Vega/Vega-Lite visualization.
777
765
  *
778
766
  * @deprecated Use combined Vega-Lite spec with vconcat/hconcat instead.
779
767
  * Combined specs enable cross-panel interactivity (selections filtering other panels).
780
768
  */
781
- export type DashboardPanel = z.infer<typeof DashboardPanelSchema>;
769
+ export type DashboardPanel = Wire.DashboardPanel;
782
770
  /**
783
771
  * Dashboard layout configuration.
784
772
  *
785
773
  * @deprecated Layout is now handled within the Vega-Lite spec via vconcat/hconcat.
786
774
  */
787
- export type DashboardLayout = z.infer<typeof DashboardLayoutSchema>;
775
+ export type DashboardLayout = Wire.DashboardLayout;
788
776
  /**
789
777
  * Default layout configuration for dashboards.
790
778
  *
@@ -795,34 +783,34 @@ export declare const DEFAULT_DASHBOARD_LAYOUT: DashboardLayout;
795
783
  * Elasticsearch DSL supported by dashboard data sources.
796
784
  * Queries execute through Vertesia Store, so project/security filtering remains server-side.
797
785
  */
798
- export type DashboardElasticsearchDsl = z.infer<typeof DashboardElasticsearchDslSchema>;
786
+ export type DashboardElasticsearchDsl = Wire.DashboardElasticsearchDsl;
799
787
  /**
800
788
  * How an Elasticsearch DSL result should be converted into Vega rows.
801
789
  */
802
- export type DashboardElasticsearchResultMapping = z.infer<typeof DashboardElasticsearchResultMappingSchema>;
790
+ export type DashboardElasticsearchResultMapping = Wire.DashboardElasticsearchResultMapping;
803
791
  /**
804
792
  * Dashboard data source backed by a Data Platform SQL query.
805
793
  */
806
- export type DashboardSqlDataSource = z.infer<typeof DashboardSqlDataSourceSchema>;
794
+ export type DashboardSqlDataSource = Wire.DashboardSqlDataSource;
807
795
  /**
808
796
  * Dashboard data source backed by Vertesia Store Elasticsearch DSL.
809
797
  */
810
- export type DashboardStoreElasticsearchDataSource = z.infer<typeof DashboardStoreElasticsearchDataSourceSchema>;
798
+ export type DashboardStoreElasticsearchDataSource = Wire.DashboardStoreElasticsearchDataSource;
811
799
  /**
812
800
  * Data source for a Vega dashboard.
813
801
  */
814
- export type DashboardDataSource = z.infer<typeof DashboardDataSourceSchema>;
802
+ export type DashboardDataSource = Wire.DashboardDataSource;
815
803
  /**
816
804
  * Dashboard definition contributed by an app package.
817
805
  *
818
806
  * App dashboard IDs are local to the app. The platform exposes them as
819
807
  * `app:<app_name>:<id>` when listing or retrieving dashboards.
820
808
  */
821
- export type AppDashboardDefinition = z.infer<typeof AppDashboardDefinitionSchema>;
809
+ export type AppDashboardDefinition = Wire.AppDashboardDefinition;
822
810
  /**
823
811
  * Summary view of a dashboard (for listings).
824
812
  */
825
- export type DashboardItem = z.infer<typeof DashboardItemSchema>;
813
+ export type DashboardItem = Wire.DashboardItem;
826
814
  /**
827
815
  * Full dashboard with SQL query and Vega-Lite specification.
828
816
  *
@@ -838,16 +826,16 @@ export type DashboardItem = z.infer<typeof DashboardItemSchema>;
838
826
  * - `layout` for grid positioning
839
827
  * - No cross-panel interactivity
840
828
  */
841
- export type Dashboard = z.infer<typeof DashboardSchema>;
829
+ export type Dashboard = Wire.Dashboard;
842
830
  /**
843
831
  * Payload for creating a new dashboard.
844
832
  * Requires a data source and spec (Vega-Lite).
845
833
  */
846
- export type CreateDashboardPayload = z.infer<typeof CreateDashboardPayloadSchema>;
834
+ export type CreateDashboardPayload = Wire.CreateDashboardPayload;
847
835
  /**
848
836
  * Payload for updating a dashboard.
849
837
  */
850
- export type UpdateDashboardPayload = z.infer<typeof UpdateDashboardPayloadSchema>;
838
+ export type UpdateDashboardPayload = Wire.UpdateDashboardPayload;
851
839
  /**
852
840
  * Options for rendering a dashboard.
853
841
  */
@@ -863,53 +851,52 @@ export interface RenderDashboardOptions {
863
851
  * A point-in-time version of a dashboard.
864
852
  * Stores full snapshot inline (no external storage needed for small JSON documents).
865
853
  */
866
- export type DashboardVersion = z.infer<typeof DashboardVersionSchema>;
854
+ export type DashboardVersion = Wire.DashboardVersion;
867
855
  /**
868
856
  * Summary view of a dashboard version (for listings).
869
857
  */
870
- export type DashboardVersionItem = z.infer<typeof DashboardVersionItemSchema>;
858
+ export type DashboardVersionItem = Wire.DashboardVersionItem;
871
859
  /**
872
860
  * Payload for creating a named snapshot.
873
861
  */
874
- export type CreateDashboardSnapshotPayload = z.infer<typeof CreateDashboardSnapshotPayloadSchema>;
862
+ export type CreateDashboardSnapshotPayload = Wire.CreateDashboardSnapshotPayload;
875
863
  /**
876
864
  * Payload for promoting a version to current.
877
865
  */
878
- export type PromoteDashboardVersionPayload = z.infer<typeof PromoteDashboardVersionPayloadSchema>;
879
- export type DataColumnUpdate = z.infer<typeof DataColumnUpdateSchema>;
866
+ export type PromoteDashboardVersionPayload = Wire.PromoteDashboardVersionPayload;
867
+ export type DataColumnUpdate = Wire.DataColumnUpdate;
880
868
  export {};
881
869
 
882
870
  // -----------------------------------------------------------------------------
883
871
  // @vertesia/common: interaction.d.ts
884
872
  // -----------------------------------------------------------------------------
885
873
  import type { CompletionResult, ExecutionTokenUsage, JSONSchema, Modalities, PromptCacheDiagnostic, StatelessExecutionOptions, ToolUse } from '@llumiverse/common';
886
- import type { z } from 'zod';
887
- import type { AgentResourceActionSchema, AgentResourceReferenceSchema, AgentResourceTypeSchema, AgentRunnerOptionsSchema, AsyncCompletionModeSchema, AsyncCompletionOptionsSchema, AsyncConversationExecutionPayloadSchema, AsyncExecutionPayloadSchema, AsyncExecutionResultSchema, AsyncInteractionExecutionPayloadSchema, CachePolicySchema, CatalogInteractionRefSchema, ConversationStripOptionsSchema, ConversationVisibilitySchema, ExecutionRunInteractionSchema, ExecutionRunRefSchema, ExecutionRunWorkflowSchema, GeneratedInteractionDefinitionSchema, GeneratedInteractionPromptSegmentSchema, GeneratedInteractionPromptTemplateSchema, GeneratedTestDataRecordSchema, GenerateInteractionPayloadSchema, GenerateTestDataPayloadSchema, ImprovePromptPayloadConfigSchema, ImprovePromptPayloadSchema, InCodeInteractionSchema, InCodePromptSchema, InitialToolCallSchema, InteractionCreatePayloadSchema, InteractionEndpointQuerySchema, InteractionEndpointSchema, InteractionExecutionErrorSchema, InteractionExecutionPayloadSchema, InteractionForkPayloadSchema, InteractionNameSchema, InteractionPublishPayloadSchema, InteractionRefSchema, InteractionRefWithSchemaSchema, InteractionSchema, InteractionsExportPayloadSchema, InteractionTagsSchema, InteractionUpdatePayloadSchema, InteractionVisibilitySchema, NamedInteractionExecutionPayloadSchema, PromptImprovementResponseSchema, PromptModalitiesSchema, RateLimitRequestPayloadSchema, RateLimitRequestResponseSchema, ResolvedCatalogInteractionSchema, ResolvedEnvironmentInfoSchema, ResolvedInteractionExecutionInfoSchema, ResolvedRuntimeConfigSchema, ResultStorageOptionsSchema, RunSourceSchema, SchemaRefSchema, SkillContextTriggersSchema, StreamingOptionsSchema, StreamingTelemetryContextSchema, ToolResultMetaSchema, ToolResultSchema, ToolResultsPayloadSchema, UpdateExecutionRunPayloadSchema, UserMessagePayloadSchema } from './api-schemas/interaction.js';
888
- import type { InteractionExecutionConfigurationSchema } from './api-schemas/store.js';
889
874
  import type { ExecutionEnvironmentRef } from './environment.js';
875
+ import type { InferenceProfileSnapshot } from './inference-profile.js';
890
876
  import type { ProjectRef } from './project.js';
891
877
  import type { PopulatedPromptSegmentDef } from './prompt.js';
892
878
  import type { TextArtifactReference } from './store/conversation-state.js';
893
879
  import type { AccountRef } from './user.js';
880
+ import type * as Wire from './wire-types.generated.js';
894
881
  /**
895
882
  * `RunDataStorageLevel` and `ConfigModes` live in `./interaction-values.js` so the API schemas can
896
883
  * read them without importing this module back. Re-exported here so every existing import path keeps
897
884
  * working.
898
885
  */
899
886
  export * from './interaction-values.js';
900
- export type InteractionExecutionError = z.infer<typeof InteractionExecutionErrorSchema>;
887
+ export type InteractionExecutionError = Wire.InteractionExecutionError;
901
888
  /**
902
889
  * Configuration for stripping large data from conversation history
903
890
  * to prevent JSON serialization issues and reduce storage bloat.
904
891
  */
905
- export type ConversationStripOptions = z.infer<typeof ConversationStripOptionsSchema>;
892
+ export type ConversationStripOptions = Wire.ConversationStripOptions;
906
893
  /**
907
894
  * Reference to an interaction in the catalog.
908
895
  * Used in catalog listing. The id is composed of the namespace and the interaction name.
909
896
  * Stored interactions can use `oid:` prefix.
910
897
  * If no prefix is used it fallback on `oid:`.
911
898
  */
912
- export type CatalogInteractionRef = z.infer<typeof CatalogInteractionRefSchema>;
899
+ export type CatalogInteractionRef = Wire.CatalogInteractionRef;
913
900
  export interface CatalogTagQuery {
914
901
  tag?: string;
915
902
  }
@@ -923,28 +910,23 @@ export interface ExecuteInteractionByEndpointQuery {
923
910
  export interface ExecuteInteractionByEndpointHeaders {
924
911
  'x-interaction-tag'?: string;
925
912
  }
926
- export interface ResolveInteractionQuery {
927
- environment?: string;
928
- model?: string;
929
- hasImage?: boolean;
930
- hasVideo?: boolean;
931
- }
932
- export type InCodePrompt = z.infer<typeof InCodePromptSchema>;
933
- export type InCodeInteraction = z.infer<typeof InCodeInteractionSchema>;
934
- export type ResolvedCatalogInteraction = z.infer<typeof ResolvedCatalogInteractionSchema>;
913
+ export type ResolveInteractionQuery = Wire.ResolveInteractionQuery;
914
+ export type InCodePrompt = Wire.InCodePrompt;
915
+ export type InCodeInteraction = Wire.InCodeInteraction;
916
+ export type ResolvedCatalogInteraction = Wire.ResolvedCatalogInteraction;
935
917
  export type InteractionSpec = Omit<InCodeInteraction, 'id' | 'runtime' | 'type' | 'published' | 'version'>;
936
918
  /**
937
919
  * The payload to query the interaction endpoints
938
920
  */
939
- export type InteractionEndpointQuery = z.infer<typeof InteractionEndpointQuerySchema>;
921
+ export type InteractionEndpointQuery = Wire.InteractionEndpointQuery;
940
922
  /**
941
923
  * A description of an interaction endpoint.
942
924
  */
943
- export type InteractionEndpoint = z.infer<typeof InteractionEndpointSchema>;
944
- export type InteractionTags = z.infer<typeof InteractionTagsSchema>;
945
- export type InteractionRef = z.infer<typeof InteractionRefSchema>;
925
+ export type InteractionEndpoint = Wire.InteractionEndpoint;
926
+ export type InteractionTags = Wire.InteractionTags;
927
+ export type InteractionRef = Wire.InteractionRef;
946
928
  /** An interaction reduced to the fields a name picker needs. */
947
- export type InteractionName = z.infer<typeof InteractionNameSchema>;
929
+ export type InteractionName = Wire.InteractionName;
948
930
  /**
949
931
  * An interaction reference carrying the schemas an export needs to reconstruct it.
950
932
  *
@@ -953,8 +935,8 @@ export type InteractionName = z.infer<typeof InteractionNameSchema>;
953
935
  * canonical alias — the alias publishes as a bare reference, with no members to omit — and the
954
936
  * interface also overstated each prompt template, which an export populates with `inputSchema` alone.
955
937
  */
956
- export type InteractionRefWithSchema = z.infer<typeof InteractionRefWithSchemaSchema>;
957
- export type InteractionsExportPayload = z.infer<typeof InteractionsExportPayloadSchema>;
938
+ export type InteractionRefWithSchema = Wire.InteractionRefWithSchema;
939
+ export type InteractionsExportPayload = Wire.InteractionsExportPayload;
958
940
  export declare enum InteractionStatus {
959
941
  draft = "draft",
960
942
  published = "published",
@@ -972,13 +954,13 @@ export declare enum ExecutionRunStatus {
972
954
  * Schema can be stored or specified as a reference to an external schema.
973
955
  * We only support "store:" references for now
974
956
  */
975
- export type SchemaRef = z.infer<typeof SchemaRefSchema>;
976
- export type CachePolicy = z.infer<typeof CachePolicySchema>;
977
- export type InteractionVisibility = z.infer<typeof InteractionVisibilitySchema>;
978
- export type Interaction = z.infer<typeof InteractionSchema>;
979
- export type InteractionCreatePayload = z.infer<typeof InteractionCreatePayloadSchema>;
980
- export type InteractionUpdatePayload = z.infer<typeof InteractionUpdatePayloadSchema>;
981
- export type InteractionPublishPayload = z.infer<typeof InteractionPublishPayloadSchema>;
957
+ export type SchemaRef = Wire.SchemaRef;
958
+ export type CachePolicy = Wire.CachePolicy;
959
+ export type InteractionVisibility = Wire.InteractionVisibility;
960
+ export type Interaction = Wire.Interaction;
961
+ export type InteractionCreatePayload = Wire.InteractionCreatePayload;
962
+ export type InteractionUpdatePayload = Wire.InteractionUpdatePayload;
963
+ export type InteractionPublishPayload = Wire.InteractionPublishPayload;
982
964
  export interface InteractionDeletePayload {
983
965
  /**
984
966
  * When true, also delete every interaction in the same family as the target:
@@ -988,10 +970,10 @@ export interface InteractionDeletePayload {
988
970
  */
989
971
  cascade?: boolean;
990
972
  }
991
- export type InteractionForkPayload = z.infer<typeof InteractionForkPayloadSchema>;
992
- export type InteractionExecutionPayload = z.infer<typeof InteractionExecutionPayloadSchema>;
993
- export type NamedInteractionExecutionPayload = z.infer<typeof NamedInteractionExecutionPayloadSchema>;
994
- export type ConversationVisibility = z.infer<typeof ConversationVisibilitySchema>;
973
+ export type InteractionForkPayload = Wire.InteractionForkPayload;
974
+ export type InteractionExecutionPayload = Wire.InteractionExecutionPayload;
975
+ export type NamedInteractionExecutionPayload = Wire.NamedInteractionExecutionPayload;
976
+ export type ConversationVisibility = Wire.ConversationVisibility;
995
977
  /**
996
978
  * Defines the scope for agent search operations.
997
979
  */
@@ -1005,63 +987,63 @@ export declare enum AgentSearchScope {
1005
987
  * Context triggers for auto-injection of skills.
1006
988
  * When these conditions match, the skill is automatically injected into the agent context.
1007
989
  */
1008
- export type SkillContextTriggers = z.infer<typeof SkillContextTriggersSchema>;
990
+ export type SkillContextTriggers = Wire.SkillContextTriggers;
1009
991
  /**
1010
992
  * Configuration options for Agent Runner functionality.
1011
993
  * These options control how interactions are exposed and executed in the Agent Runner.
1012
994
  */
1013
- export type AgentRunnerOptions = z.infer<typeof AgentRunnerOptionsSchema>;
995
+ export type AgentRunnerOptions = Wire.AgentRunnerOptions;
1014
996
  export type { EmailChannel, EmailRouteData, InteractiveChannel, UserChannel, } from './email.js';
1015
997
  export { isEmailChannel, isInteractiveChannel, } from './email.js';
1016
998
  /**
1017
999
  * A tool invocation executed before the first model turn of a conversation.
1018
1000
  * Results are injected into the initial context so the agent starts with them in hand.
1019
1001
  */
1020
- export type InitialToolCall = z.infer<typeof InitialToolCallSchema>;
1021
- export type AsyncConversationExecutionPayload = z.infer<typeof AsyncConversationExecutionPayloadSchema>;
1022
- export type AsyncInteractionExecutionPayload = z.infer<typeof AsyncInteractionExecutionPayloadSchema>;
1002
+ export type InitialToolCall = Wire.InitialToolCall;
1003
+ export type AsyncConversationExecutionPayload = Wire.AsyncConversationExecutionPayload;
1004
+ export type AsyncInteractionExecutionPayload = Wire.AsyncInteractionExecutionPayload;
1023
1005
  /**
1024
1006
  * @discriminator type
1025
1007
  */
1026
- export type AsyncExecutionPayload = z.infer<typeof AsyncExecutionPayloadSchema>;
1027
- export type AsyncExecutionResult = z.infer<typeof AsyncExecutionResultSchema>;
1008
+ export type AsyncExecutionPayload = Wire.AsyncExecutionPayload;
1009
+ export type AsyncExecutionResult = Wire.AsyncExecutionResult;
1028
1010
  /**
1029
1011
  * Telemetry context for streaming mode.
1030
1012
  * Contains info not available in current_state needed to send LlmCallEvent.
1031
1013
  */
1032
- export type StreamingTelemetryContext = z.infer<typeof StreamingTelemetryContextSchema>;
1014
+ export type StreamingTelemetryContext = Wire.StreamingTelemetryContext;
1033
1015
  /**
1034
1016
  * Options for storing inference results to cloud storage
1035
1017
  */
1036
- export type ResultStorageOptions = z.infer<typeof ResultStorageOptionsSchema>;
1037
- export type AsyncCompletionMode = z.infer<typeof AsyncCompletionModeSchema>;
1018
+ export type ResultStorageOptions = Wire.ResultStorageOptions;
1019
+ export type AsyncCompletionMode = Wire.AsyncCompletionMode;
1038
1020
  /**
1039
1021
  * Streaming-specific options (only needed when stream=true)
1040
1022
  */
1041
- export type StreamingOptions = z.infer<typeof StreamingOptionsSchema>;
1023
+ export type StreamingOptions = Wire.StreamingOptions;
1042
1024
  /**
1043
1025
  * Options for async completion and/or streaming LLM responses
1044
1026
  */
1045
- export type AsyncCompletionOptions = z.infer<typeof AsyncCompletionOptionsSchema>;
1027
+ export type AsyncCompletionOptions = Wire.AsyncCompletionOptions;
1046
1028
  /**
1047
1029
  * The kinds of Vertesia resource an agent tool can report having created, updated, or deleted.
1048
1030
  * Restricted to resources that have a real detail route to navigate to — do not emit a reference
1049
1031
  * for a mutation with no meaningful navigation target. Add new kinds only once their route exists.
1050
1032
  */
1051
- export type AgentResourceType = z.infer<typeof AgentResourceTypeSchema>;
1052
- export type AgentResourceAction = z.infer<typeof AgentResourceActionSchema>;
1033
+ export type AgentResourceType = Wire.AgentResourceType;
1034
+ export type AgentResourceAction = Wire.AgentResourceAction;
1053
1035
  /**
1054
1036
  * A navigable reference to a resource an agent tool mutated. Tools return these as tool-result
1055
1037
  * metadata (see {@link ToolResultMeta.resources}); the conversation runtime promotes them onto the
1056
1038
  * tool's completed lifecycle message so the UI can render deterministic deep links and an
1057
1039
  * end-of-turn "resources changed" summary — independent of any link the model writes in prose.
1058
1040
  */
1059
- export type AgentResourceReference = z.infer<typeof AgentResourceReferenceSchema>;
1041
+ export type AgentResourceReference = Wire.AgentResourceReference;
1060
1042
  /**
1061
1043
  * Metadata a tool executor may attach to its result. Kept as an open record for forward
1062
1044
  * compatibility while typing the fields the runtime interprets.
1063
1045
  */
1064
- export type ToolResultMeta = z.infer<typeof ToolResultMetaSchema>;
1046
+ export type ToolResultMeta = Wire.ToolResultMeta;
1065
1047
  export interface ToolResultContent {
1066
1048
  content: string;
1067
1049
  /**
@@ -1089,12 +1071,12 @@ export interface ToolResultContent {
1089
1071
  * rather than throwing, and an empty/absent label falls back to the id.
1090
1072
  */
1091
1073
  export declare function normalizeAgentResources(value: unknown): AgentResourceReference[];
1092
- export type ToolResult = z.infer<typeof ToolResultSchema>;
1074
+ export type ToolResult = Wire.ToolResult;
1093
1075
  /**
1094
1076
  * The payload to sent the tool responses back to the target LLM
1095
1077
  */
1096
- export type ToolResultsPayload = z.infer<typeof ToolResultsPayloadSchema>;
1097
- export type UserMessagePayload = z.infer<typeof UserMessagePayloadSchema>;
1078
+ export type ToolResultsPayload = Wire.ToolResultsPayload;
1079
+ export type UserMessagePayload = Wire.UserMessagePayload;
1098
1080
  export declare enum RunSourceTypes {
1099
1081
  api = "api",
1100
1082
  cli = "cli",
@@ -1104,8 +1086,8 @@ export declare enum RunSourceTypes {
1104
1086
  system = "system",
1105
1087
  schedule = "schedule"
1106
1088
  }
1107
- export type RunSource = z.infer<typeof RunSourceSchema>;
1108
- export type ExecutionRunInteraction = z.infer<typeof ExecutionRunInteractionSchema>;
1089
+ export type RunSource = Wire.RunSource;
1090
+ export type ExecutionRunInteraction = Wire.ExecutionRunInteraction;
1109
1091
  export interface BaseExecutionRun<P = unknown> {
1110
1092
  readonly id: string;
1111
1093
  /**
@@ -1145,6 +1127,7 @@ export interface BaseExecutionRun<P = unknown> {
1145
1127
  account: AccountRef;
1146
1128
  project: ProjectRef;
1147
1129
  config: InteractionExecutionConfiguration;
1130
+ inference_profile?: InferenceProfileSnapshot;
1148
1131
  error?: InteractionExecutionError;
1149
1132
  source: RunSource;
1150
1133
  /**
@@ -1168,8 +1151,8 @@ export interface ExecutionRun<P = unknown> extends BaseExecutionRun<P> {
1168
1151
  export interface PopulatedExecutionRun<P = unknown> extends BaseExecutionRun<P> {
1169
1152
  interaction?: ExecutionRunInteraction;
1170
1153
  }
1171
- export type ExecutionRunWorkflow = z.infer<typeof ExecutionRunWorkflowSchema>;
1172
- export type PromptModalities = z.infer<typeof PromptModalitiesSchema>;
1154
+ export type ExecutionRunWorkflow = Wire.ExecutionRunWorkflow;
1155
+ export type PromptModalities = Wire.PromptModalities;
1173
1156
  export interface InteractionExecutionResult<P = unknown> extends Omit<ExecutionRun<P>, 'account' | 'project' | 'interaction'> {
1174
1157
  account: string;
1175
1158
  project: string;
@@ -1178,19 +1161,19 @@ export interface InteractionExecutionResult<P = unknown> extends Omit<ExecutionR
1178
1161
  conversation?: unknown;
1179
1162
  options?: StatelessExecutionOptions;
1180
1163
  }
1181
- export type ExecutionRunRef = z.infer<typeof ExecutionRunRefSchema>;
1182
- export type InteractionExecutionConfiguration = z.infer<typeof InteractionExecutionConfigurationSchema>;
1183
- export type GenerateInteractionPayload = z.infer<typeof GenerateInteractionPayloadSchema>;
1184
- export type GenerateTestDataPayload = z.infer<typeof GenerateTestDataPayloadSchema>;
1185
- export type GeneratedTestDataRecord = z.infer<typeof GeneratedTestDataRecordSchema>;
1186
- export type ImprovePromptPayloadConfig = z.infer<typeof ImprovePromptPayloadConfigSchema>;
1187
- export type ImprovePromptPayload = z.infer<typeof ImprovePromptPayloadSchema>;
1188
- export type GeneratedInteractionPromptTemplate = z.infer<typeof GeneratedInteractionPromptTemplateSchema>;
1189
- export type GeneratedInteractionPromptSegment = z.infer<typeof GeneratedInteractionPromptSegmentSchema>;
1190
- export type GeneratedInteractionDefinition = z.infer<typeof GeneratedInteractionDefinitionSchema>;
1191
- export type PromptImprovementResponse = z.infer<typeof PromptImprovementResponseSchema>;
1192
- export type RateLimitRequestPayload = z.infer<typeof RateLimitRequestPayloadSchema>;
1193
- export type RateLimitRequestResponse = z.infer<typeof RateLimitRequestResponseSchema>;
1164
+ export type ExecutionRunRef = Wire.ExecutionRunRef;
1165
+ export type InteractionExecutionConfiguration = Wire.InteractionExecutionConfiguration;
1166
+ export type GenerateInteractionPayload = Wire.GenerateInteractionPayload;
1167
+ export type GenerateTestDataPayload = Wire.GenerateTestDataPayload;
1168
+ export type GeneratedTestDataRecord = Wire.GeneratedTestDataRecord;
1169
+ export type ImprovePromptPayloadConfig = Wire.ImprovePromptPayloadConfig;
1170
+ export type ImprovePromptPayload = Wire.ImprovePromptPayload;
1171
+ export type GeneratedInteractionPromptTemplate = Wire.GeneratedInteractionPromptTemplate;
1172
+ export type GeneratedInteractionPromptSegment = Wire.GeneratedInteractionPromptSegment;
1173
+ export type GeneratedInteractionDefinition = Wire.GeneratedInteractionDefinition;
1174
+ export type PromptImprovementResponse = Wire.PromptImprovementResponse;
1175
+ export type RateLimitRequestPayload = Wire.RateLimitRequestPayload;
1176
+ export type RateLimitRequestResponse = Wire.RateLimitRequestResponse;
1194
1177
  /**
1195
1178
  * Source of the resolved model configuration
1196
1179
  */
@@ -1213,29 +1196,27 @@ export declare enum ModelSource {
1213
1196
  /**
1214
1197
  * Resolved environment information
1215
1198
  */
1216
- export type ResolvedEnvironmentInfo = z.infer<typeof ResolvedEnvironmentInfoSchema>;
1199
+ export type ResolvedEnvironmentInfo = Wire.ResolvedEnvironmentInfo;
1217
1200
  /**
1218
1201
  * Resolved runtime configuration for an interaction
1219
1202
  */
1220
- export type ResolvedRuntimeConfig = z.infer<typeof ResolvedRuntimeConfigSchema>;
1203
+ export type ResolvedRuntimeConfig = Wire.ResolvedRuntimeConfig;
1221
1204
  /**
1222
1205
  * Resolved execution info for an interaction.
1223
1206
  * Contains the interaction ID, basic metadata, and the resolved runtime configuration
1224
1207
  * (environment, model) that would be used at execution time.
1225
1208
  */
1226
- export type ResolvedInteractionExecutionInfo = z.infer<typeof ResolvedInteractionExecutionInfoSchema>;
1209
+ export type ResolvedInteractionExecutionInfo = Wire.ResolvedInteractionExecutionInfo;
1227
1210
  export interface PopulatedInteraction extends Omit<Interaction, 'prompts'> {
1228
1211
  prompts: PopulatedPromptSegmentDef[];
1229
1212
  }
1230
- export type UpdateExecutionRunPayload = z.infer<typeof UpdateExecutionRunPayloadSchema>;
1213
+ export type UpdateExecutionRunPayload = Wire.UpdateExecutionRunPayload;
1231
1214
 
1232
1215
  // -----------------------------------------------------------------------------
1233
1216
  // @vertesia/common: prompt.d.ts
1234
1217
  // -----------------------------------------------------------------------------
1235
1218
  import type { JSONSchema, PromptRole } from '@llumiverse/common';
1236
- import type { z } from 'zod';
1237
- import type { ExportedPromptTemplateRefSchema, InteractionPromptSegmentInputSchema, InteractionPromptTemplateInputSchema, PromptTemplateCreatePayloadSchema, PromptTemplateRefSchema, PromptTemplateSchema, PromptTemplateUpdatePayloadSchema } from './api-schemas/interaction.js';
1238
- import type { PromptTemplateForkPayloadSchema, PromptTemplateInteractionsResponseSchema, PromptTemplateInteractionUsageSchema, PromptTemplateInteractionVersionSchema, RenderPromptPayloadSchema, RenderPromptResponseSchema } from './api-schemas/prompt.js';
1219
+ import type * as Wire from './wire-types.generated.js';
1239
1220
  export interface ChatPromptSchema {
1240
1221
  role: PromptRole.user | PromptRole.assistant;
1241
1222
  content: string;
@@ -1264,7 +1245,7 @@ export interface PopulatedPromptSegmentDef extends Omit<PromptSegmentDef, 'templ
1264
1245
  export interface ExecutablePromptSegmentDef extends Omit<PromptSegmentDef, 'template'> {
1265
1246
  template?: ExecutablePromptTemplate;
1266
1247
  }
1267
- export type PromptTemplateRef = z.infer<typeof PromptTemplateRefSchema>;
1248
+ export type PromptTemplateRef = Wire.PromptTemplateRef;
1268
1249
  export declare enum TemplateType {
1269
1250
  jst = "jst",
1270
1251
  handlebars = "handlebars",
@@ -1276,35 +1257,31 @@ export interface ExecutablePromptTemplate {
1276
1257
  content_type: TemplateType;
1277
1258
  inputSchema?: JSONSchema;
1278
1259
  }
1279
- export type PromptTemplate = z.infer<typeof PromptTemplateSchema>;
1280
- export type InteractionPromptTemplateInput = z.infer<typeof InteractionPromptTemplateInputSchema>;
1281
- export type InteractionPromptSegmentInput = z.infer<typeof InteractionPromptSegmentInputSchema>;
1282
- export type PromptTemplateForkPayload = z.infer<typeof PromptTemplateForkPayloadSchema>;
1283
- export type PromptTemplateCreatePayload = z.infer<typeof PromptTemplateCreatePayloadSchema>;
1284
- export type PromptTemplateUpdatePayload = z.infer<typeof PromptTemplateUpdatePayloadSchema>;
1285
- export type PromptTemplateInteractionVersion = z.infer<typeof PromptTemplateInteractionVersionSchema>;
1286
- export type PromptTemplateInteractionUsage = z.infer<typeof PromptTemplateInteractionUsageSchema>;
1287
- export type PromptTemplateInteractionsResponse = z.infer<typeof PromptTemplateInteractionsResponseSchema>;
1288
- export type RenderPromptPayload = z.infer<typeof RenderPromptPayloadSchema>;
1260
+ export type PromptTemplate = Wire.PromptTemplate;
1261
+ export type InteractionPromptTemplateInput = Wire.InteractionPromptTemplateInput;
1262
+ export type InteractionPromptSegmentInput = Wire.InteractionPromptSegmentInput;
1263
+ export type PromptTemplateForkPayload = Wire.PromptTemplateForkPayload;
1264
+ export type PromptTemplateCreatePayload = Wire.PromptTemplateCreatePayload;
1265
+ export type PromptTemplateUpdatePayload = Wire.PromptTemplateUpdatePayload;
1266
+ export type PromptTemplateInteractionVersion = Wire.PromptTemplateInteractionVersion;
1267
+ export type PromptTemplateInteractionUsage = Wire.PromptTemplateInteractionUsage;
1268
+ export type PromptTemplateInteractionsResponse = Wire.PromptTemplateInteractionsResponse;
1269
+ export type RenderPromptPayload = Wire.RenderPromptPayload;
1289
1270
  /**
1290
1271
  * What `POST /prompts/:id/render` answers with: the segment identity plus the rendered body.
1291
1272
  *
1292
1273
  * Stated here for the first time — the endpoint declared its response inline, so there has never
1293
1274
  * been a name for it on either side of the wire.
1294
1275
  */
1295
- export type RenderPromptResponse = z.infer<typeof RenderPromptResponseSchema>;
1296
- export type ExportedPromptTemplateRef = z.infer<typeof ExportedPromptTemplateRefSchema>;
1276
+ export type RenderPromptResponse = Wire.RenderPromptResponse;
1277
+ export type ExportedPromptTemplateRef = Wire.ExportedPromptTemplateRef;
1297
1278
 
1298
1279
  // -----------------------------------------------------------------------------
1299
1280
  // @vertesia/common: project.d.ts
1300
1281
  // -----------------------------------------------------------------------------
1301
- import type { z } from 'zod';
1302
- import type { ProjectRefSchema } from './api-schemas/apikey.js';
1303
- import type { EmbeddingsStatusResponseSchema, ProjectConfigurationEmbeddingEnablePayloadSchema } from './api-schemas/embeddings.js';
1304
- import type { DriftAnalysisProgressSchema, DriftAnalysisResultSchema, DriftAnalysisStatusResponseSchema, IndexingStatusResponseSchema, ReindexAgentRunsPayloadSchema, ReindexAgentRunsResponseSchema, StartProjectReindexPayloadSchema } from './api-schemas/indexing.js';
1305
- import type { CreateProjectPayloadFromSchema, ListProjectsQuerySchema, ProjectIntegrationListEntrySchema, ProjectIntegrationListResponseSchema, ProjectPluginsUpdatePayloadSchema, ProjectSchema, ProjectTagQuerySchema, UpdateProjectConfigurationPayloadSchema, UpdateProjectPayloadSchema } from './api-schemas/project.js';
1306
- import type { AgentCheckpointConfigurationSchema, AgentProjectConfigurationSchema, BrowserUseProjectConfigurationSchema, BrowserUseRiskPolicySchema, BrowserUseScreenshotCaptureSchema, ElasticsearchBackendSchema, IntakeVisionProfileSettingsUpdateSchema, ModalityDefaultsSchema, ModelDefaultSchema, ProjectConfigurationEmbeddingSchema, ProjectConfigurationSchema, ProjectIndexingConfigurationSchema, ProjectIntakeConfigurationSchema, ProjectIntakeSniffConfigurationSchema, ProjectModelDefaultsSchema, ProjectSearchPropertyMappingSchema, ProjectSearchPropertyTypeSchema, ProjectSearchTierSchema, SystemDefaultsSchema } from './api-schemas/project-configuration.js';
1282
+ import type { CreateProjectPayloadFromSchema } from './api-schemas/project.js';
1307
1283
  import type { AccountRef } from './user.js';
1284
+ import type * as Wire from './wire-types.generated.js';
1308
1285
  /**
1309
1286
  * `SystemRoles` lives in `./project-values.js` so the API schemas can read it without importing this
1310
1287
  * module back. Re-exported here so every existing import path keeps working.
@@ -1316,11 +1293,11 @@ export interface PopulatedProjectRef {
1316
1293
  name: string;
1317
1294
  account: AccountRef;
1318
1295
  }
1319
- export type ProjectRef = z.infer<typeof ProjectRefSchema>;
1320
- export type ProjectTagQuery = z.infer<typeof ProjectTagQuerySchema>;
1321
- export type ListProjectsQuery = z.infer<typeof ListProjectsQuerySchema>;
1322
- export type ModelDefault = z.infer<typeof ModelDefaultSchema>;
1323
- export type ModalityDefaults = z.infer<typeof ModalityDefaultsSchema>;
1296
+ export type ProjectRef = Wire.ProjectRef;
1297
+ export type ProjectTagQuery = Wire.ProjectTagQuery;
1298
+ export type ListProjectsQuery = Wire.ListProjectsQuery;
1299
+ export type ModelDefault = Wire.ModelDefault;
1300
+ export type ModalityDefaults = Wire.ModalityDefaults;
1324
1301
  /**
1325
1302
  * System interaction category enum.
1326
1303
  * Categories group one or more system interactions for default model assignment.
@@ -1343,10 +1320,10 @@ export declare const SYSTEM_INTERACTION_CATEGORIES: Record<string, SystemInterac
1343
1320
  * asserts that its keys are exactly the category union — a new category has to be added in both
1344
1321
  * places, and fails to compile until it is.
1345
1322
  */
1346
- export type SystemDefaults = z.infer<typeof SystemDefaultsSchema>;
1347
- export type ProjectModelDefaults = z.infer<typeof ProjectModelDefaultsSchema>;
1348
- export type BrowserUseRiskPolicy = z.infer<typeof BrowserUseRiskPolicySchema>;
1349
- export type BrowserUseScreenshotCapture = z.infer<typeof BrowserUseScreenshotCaptureSchema>;
1323
+ export type SystemDefaults = Wire.SystemDefaults;
1324
+ export type ProjectModelDefaults = Wire.ProjectModelDefaults;
1325
+ export type BrowserUseRiskPolicy = Wire.BrowserUseRiskPolicy;
1326
+ export type BrowserUseScreenshotCapture = Wire.BrowserUseScreenshotCapture;
1350
1327
  /**
1351
1328
  * Project defaults and caps for `browser_use` agent workstreams.
1352
1329
  *
@@ -1354,17 +1331,18 @@ export type BrowserUseScreenshotCapture = z.infer<typeof BrowserUseScreenshotCap
1354
1331
  * interface. Nothing read it, and its descriptions had already drifted from the TSDoc the published
1355
1332
  * component was derived from — the schema module is now the only statement of the shape.
1356
1333
  */
1357
- export type BrowserUseProjectConfiguration = z.infer<typeof BrowserUseProjectConfigurationSchema>;
1358
- export type ProjectSearchTier = z.infer<typeof ProjectSearchTierSchema>;
1359
- export type ElasticsearchBackend = z.infer<typeof ElasticsearchBackendSchema>;
1360
- export type ProjectIntakeSniffConfiguration = z.infer<typeof ProjectIntakeSniffConfigurationSchema>;
1361
- export type ProjectIntakeConfiguration = z.infer<typeof ProjectIntakeConfigurationSchema>;
1362
- export type ProjectConfiguration = z.infer<typeof ProjectConfigurationSchema>;
1363
- export type AgentProjectConfiguration = z.infer<typeof AgentProjectConfigurationSchema>;
1364
- export type AgentCheckpointConfiguration = z.infer<typeof AgentCheckpointConfigurationSchema>;
1365
- export type ProjectSearchPropertyType = z.infer<typeof ProjectSearchPropertyTypeSchema>;
1366
- export type ProjectSearchPropertyMapping = z.infer<typeof ProjectSearchPropertyMappingSchema>;
1367
- export type ProjectIndexingConfiguration = z.infer<typeof ProjectIndexingConfigurationSchema>;
1334
+ export type BrowserUseProjectConfiguration = Wire.BrowserUseProjectConfiguration;
1335
+ export type ProjectSearchTier = Wire.ProjectSearchTier;
1336
+ export type ElasticsearchBackend = Wire.ElasticsearchBackend;
1337
+ export type ProjectIntakeSniffConfiguration = Wire.ProjectIntakeSniffConfiguration;
1338
+ export type ProjectIntakeConfiguration = Wire.ProjectIntakeConfiguration;
1339
+ export type ProjectConfiguration = Wire.ProjectConfiguration;
1340
+ export type AgentProjectConfiguration = Wire.AgentProjectConfiguration;
1341
+ export type AgentCheckpointConfiguration = Wire.AgentCheckpointConfiguration;
1342
+ export type AgentBudgetConfiguration = Wire.AgentBudgetConfiguration;
1343
+ export type ProjectSearchPropertyType = Wire.ProjectSearchPropertyType;
1344
+ export type ProjectSearchPropertyMapping = Wire.ProjectSearchPropertyMapping;
1345
+ export type ProjectIndexingConfiguration = Wire.ProjectIndexingConfiguration;
1368
1346
  export declare enum SupportedEmbeddingTypes {
1369
1347
  text = "text",
1370
1348
  image = "image",
@@ -1380,19 +1358,19 @@ export declare const SearchTypes: {
1380
1358
  readonly properties: SupportedEmbeddingTypes.properties;
1381
1359
  readonly full_text: FullTextType.full_text;
1382
1360
  };
1383
- export type ProjectConfigurationEmbedding = z.infer<typeof ProjectConfigurationEmbeddingSchema>;
1384
- export type ProjectConfigurationEmbeddingEnablePayload = z.infer<typeof ProjectConfigurationEmbeddingEnablePayloadSchema>;
1385
- export type Project = z.infer<typeof ProjectSchema>;
1386
- export type ProjectPluginsUpdatePayload = z.infer<typeof ProjectPluginsUpdatePayloadSchema>;
1361
+ export type ProjectConfigurationEmbedding = Wire.ProjectConfigurationEmbedding;
1362
+ export type ProjectConfigurationEmbeddingEnablePayload = Wire.ProjectConfigurationEmbeddingEnablePayload;
1363
+ export type Project = Wire.Project;
1364
+ export type ProjectPluginsUpdatePayload = Wire.ProjectPluginsUpdatePayload;
1387
1365
  export declare const ProjectRefPopulate = "id name account";
1388
- export type EmbeddingsStatusResponse = z.infer<typeof EmbeddingsStatusResponseSchema>;
1366
+ export type EmbeddingsStatusResponse = Wire.EmbeddingsStatusResponse;
1389
1367
  /**
1390
1368
  * Response from indexing status endpoint
1391
1369
  */
1392
- export type IndexingStatusResponse = z.infer<typeof IndexingStatusResponseSchema>;
1393
- export type StartProjectReindexPayload = z.infer<typeof StartProjectReindexPayloadSchema>;
1394
- export type ReindexAgentRunsPayload = z.infer<typeof ReindexAgentRunsPayloadSchema>;
1395
- export type ReindexAgentRunsResponse = z.infer<typeof ReindexAgentRunsResponseSchema>;
1370
+ export type IndexingStatusResponse = Wire.IndexingStatusResponse;
1371
+ export type StartProjectReindexPayload = Wire.StartProjectReindexPayload;
1372
+ export type ReindexAgentRunsPayload = Wire.ReindexAgentRunsPayload;
1373
+ export type ReindexAgentRunsResponse = Wire.ReindexAgentRunsResponse;
1396
1374
  /**
1397
1375
  * Indexed (`_source`) shape of the content type ref. Unlike the public
1398
1376
  * ContentObjectTypeRef discriminated union, the index stores BOTH kinds under
@@ -1577,6 +1555,8 @@ export interface SwapAliasRequest {
1577
1555
  backend?: ElasticsearchBackend;
1578
1556
  /** ES alias name. If not provided, the Go service derives it from the tenant ID. */
1579
1557
  alias?: string;
1558
+ /** Delete superseded versioned indices after the target has been validated. */
1559
+ cleanup?: boolean;
1580
1560
  }
1581
1561
  export interface SwapAliasResult {
1582
1562
  status: string;
@@ -1735,38 +1715,37 @@ export interface AnalyzeDriftBatchResult {
1735
1715
  sample_missing_ids: string[];
1736
1716
  sample_stale_ids: string[];
1737
1717
  }
1738
- export type DriftAnalysisProgress = z.infer<typeof DriftAnalysisProgressSchema>;
1739
- export type DriftAnalysisResult = z.infer<typeof DriftAnalysisResultSchema>;
1740
- export type DriftAnalysisStatusResponse = z.infer<typeof DriftAnalysisStatusResponseSchema>;
1741
- export type ProjectIntegrationListEntry = z.infer<typeof ProjectIntegrationListEntrySchema>;
1742
- export type ProjectIntegrationListResponse = z.infer<typeof ProjectIntegrationListResponseSchema>;
1743
- export type UpdateProjectPayload = z.infer<typeof UpdateProjectPayloadSchema>;
1744
- export type UpdateProjectConfigurationPayload = z.infer<typeof UpdateProjectConfigurationPayloadSchema>;
1745
- export type IntakeVisionProfileSettingsUpdate = z.infer<typeof IntakeVisionProfileSettingsUpdateSchema>;
1718
+ export type DriftAnalysisProgress = Wire.DriftAnalysisProgress;
1719
+ export type DriftAnalysisResult = Wire.DriftAnalysisResult;
1720
+ export type DriftAnalysisStatusResponse = Wire.DriftAnalysisStatusResponse;
1721
+ export type ProjectIntegrationListEntry = Wire.ProjectIntegrationListEntry;
1722
+ export type ProjectIntegrationListResponse = Wire.ProjectIntegrationListResponse;
1723
+ export type UpdateProjectPayload = Wire.UpdateProjectPayload;
1724
+ export type UpdateProjectConfigurationPayload = Wire.UpdateProjectConfigurationPayload;
1725
+ export type IntakeVisionProfileSettingsUpdate = Wire.IntakeVisionProfileSettingsUpdate;
1746
1726
 
1747
1727
  // -----------------------------------------------------------------------------
1748
1728
  // @vertesia/common: runs.d.ts
1749
1729
  // -----------------------------------------------------------------------------
1750
- import type { z } from 'zod';
1751
- import type { ComputeRunFacetsResponseSchema, ExecutionRunDocRefSchema, FindRunResultArraySchema, FindRunResultSchema, PopulatedExecutionRunResultSchema, RunClonePayloadSchema, RunCreatePayloadSchema, RunSearchMetaResponseSchema } from './api-schemas/interaction.js';
1730
+ import type * as Wire from './wire-types.generated.js';
1752
1731
  /**
1753
1732
  * The run ref is used to identify a run document in the storage
1754
1733
  */
1755
- export type ExecutionRunDocRef = z.infer<typeof ExecutionRunDocRefSchema>;
1756
- export type FindRunResult = z.infer<typeof FindRunResultSchema>;
1757
- export type FindRunResultArray = z.infer<typeof FindRunResultArraySchema>;
1758
- export type PopulatedExecutionRunResult = z.infer<typeof PopulatedExecutionRunResultSchema>;
1734
+ export type ExecutionRunDocRef = Wire.ExecutionRunDocRef;
1735
+ export type FindRunResult = Wire.FindRunResult;
1736
+ export type FindRunResultArray = Wire.FindRunResultArray;
1737
+ export type PopulatedExecutionRunResult = Wire.PopulatedExecutionRunResult;
1759
1738
  /**
1760
1739
  * Interaction execution payload for creating a new run
1761
1740
  * It uses interaction field (from NamedInteractionExecutionPayload) to pass the interaction ID to run
1762
1741
  */
1763
- export type RunCreatePayload = z.infer<typeof RunCreatePayloadSchema>;
1742
+ export type RunCreatePayload = Wire.RunCreatePayload;
1764
1743
  /**
1765
1744
  * Payload for cloning an existing ExecutionRun.
1766
1745
  * Creates a new run document with the same interaction/config but fresh status.
1767
1746
  * Used by fork flows to create a new ExecutionRun for the forked workflow.
1768
1747
  */
1769
- export type RunClonePayload = z.infer<typeof RunClonePayloadSchema>;
1748
+ export type RunClonePayload = Wire.RunClonePayload;
1770
1749
  /**
1771
1750
  * To be used as a value for a numeric or date filters
1772
1751
  */
@@ -1776,8 +1755,8 @@ export interface RangeValue {
1776
1755
  lt?: number | string;
1777
1756
  lte?: number | string;
1778
1757
  }
1779
- export type RunSearchMetaResponse = z.infer<typeof RunSearchMetaResponseSchema>;
1780
- export type ComputeRunFacetsResponse = z.infer<typeof ComputeRunFacetsResponseSchema>;
1758
+ export type RunSearchMetaResponse = Wire.RunSearchMetaResponse;
1759
+ export type ComputeRunFacetsResponse = Wire.ComputeRunFacetsResponse;
1781
1760
 
1782
1761
  // -----------------------------------------------------------------------------
1783
1762
  // @vertesia/common: skill.d.ts
@@ -1851,15 +1830,9 @@ export interface InjectedSkill {
1851
1830
  // -----------------------------------------------------------------------------
1852
1831
  // @vertesia/common: store/store.d.ts
1853
1832
  // -----------------------------------------------------------------------------
1854
- import type { z } from 'zod';
1855
- import type { ContentObjectTypeRefSchema, InCodeTypeRefSchema, StoredTypeRefSchema } from '../api-schemas/app-lifecycle.js';
1856
- import type { ComplexSearchPayloadSchema, ContentObjectApiResponseSchema, ContentObjectApiRevisionSchema, ContentObjectApiTypeRefSchema, ContentObjectExportArtifactFileSchema, ContentObjectExportArtifactSchema, ContentObjectExportProgressSchema, ContentObjectExportResultSchema, ContentObjectExportStatusResponseSchema, ContentObjectItemApiResponseSchema, ContentObjectTextResponseSchema, ContentObjectUserPermissionsSchema, ContentSourceSchema, CreateContentObjectHeadersSchema, CreateContentObjectPayloadSchema, CreateContentObjectQuerySchema, DeleteContentObjectExportResponseSchema, DeleteContentObjectResultSchema, EmbeddingSchema, ExportContentObjectsFilterSchema, ExportContentObjectsIncludeOptionsSchema, GenerationRunMetadataSchema, GetObjectRenditionQuerySchema, GetRenditionResponseSchema, InheritedPropertyMetadataSchema, ListContentObjectExportsResponseSchema, ObjectSearchResponseSchema, ProjectedContentObjectApiResponseSchema, RevisionInfoSchema, SetObjectEmbeddingsResponseSchema, StartContentObjectExportRequestSchema, StartContentObjectExportResponseSchema, TranscriptSchema, TranscriptSegmentSchema, UpdateContentObjectHeadersSchema, UpdateContentObjectPayloadSchema, UpdateContentObjectQuerySchema } from '../api-schemas/content.js';
1857
- import type { MarkdownRenditionFormatSchema } from '../api-schemas/document-processing.js';
1858
- import type { CreateWorkflowRulePayloadSchema, UpdateWorkflowRulePayloadSchema, WorkflowRuleItemSchema, WorkflowRuleSchema } from '../api-schemas/events.js';
1859
- import type { BucketCreateAccessStatusResponseSchema, BucketReadAccessStatusResponseSchema, BulkUploadUrlsPayloadSchema, BulkUploadUrlsResponseSchema, CopyFilePayloadSchema, CopyFileResponseSchema, DeleteFileResultSchema, EnsureBucketCreateAccessPayloadSchema, EnsureBucketCreateAccessResponseSchema, EnsureBucketReadAccessPayloadSchema, EnsureBucketReadAccessResponseSchema, FileBucketResponseSchema, FileDeleteQuerySchema, FileListQuerySchema, FileListResponseSchema, FileMetadataQuerySchema, FileMetadataResponseSchema, FileMetadataUpdateResultSchema, GetFileUrlPayloadSchema, GetFileUrlResponseSchema, GetUploadUrlPayloadSchema, SetFileMetadataPayloadSchema } from '../api-schemas/files.js';
1860
- import type { ColumnLayoutSchema, ContentObjectTypeCatalogEntrySchema, ContentObjectTypeCatalogQuerySchema, ContentObjectTypeItemSchema, ContentObjectTypeListQuerySchema, ContentObjectTypeSchema, ContentObjectTypeStatusSchema, ContentTypeEditingPolicySchema, ContentTypeExtractionGroundingPolicySchema, ContentTypeExtractionGroundingReviewPolicySchema, ContentTypeIntakePolicySchema, CreateContentObjectTypePayloadSchema, InCodeTypeDefinitionSchema, IntakePageRangesSchema, IntakePageScopeSchema, IntakeVisionDetailSchema, UpdateContentObjectTypePayloadSchema } from '../api-schemas/store.js';
1861
1833
  import type { JSONObject } from '../json.js';
1862
1834
  import type { SupportedEmbeddingTypes } from '../project.js';
1835
+ import type * as Wire from '../wire-types.generated.js';
1863
1836
  import type { BaseObject } from './common.js';
1864
1837
  export declare enum ContentObjectApiHeaders {
1865
1838
  COLLECTION_ID = "x-collection-id",
@@ -1871,11 +1844,11 @@ export declare enum ContentObjectApiHeaders {
1871
1844
  */
1872
1845
  SUPPRESS_WORKFLOWS = "x-suppress-workflows"
1873
1846
  }
1874
- export type CreateContentObjectQuery = z.infer<typeof CreateContentObjectQuerySchema>;
1875
- export type CreateContentObjectHeaders = z.infer<typeof CreateContentObjectHeadersSchema>;
1876
- export type UpdateContentObjectQuery = z.infer<typeof UpdateContentObjectQuerySchema>;
1877
- export type UpdateContentObjectHeaders = z.infer<typeof UpdateContentObjectHeadersSchema>;
1878
- export type GetObjectRenditionQuery = z.infer<typeof GetObjectRenditionQuerySchema>;
1847
+ export type CreateContentObjectQuery = Wire.CreateContentObjectQuery;
1848
+ export type CreateContentObjectHeaders = Wire.CreateContentObjectHeaders;
1849
+ export type UpdateContentObjectQuery = Wire.UpdateContentObjectQuery;
1850
+ export type UpdateContentObjectHeaders = Wire.UpdateContentObjectHeaders;
1851
+ export type GetObjectRenditionQuery = Wire.GetObjectRenditionQuery;
1879
1852
  /**
1880
1853
  * Headers for Data Store API calls.
1881
1854
  * Used for Cloud Run session affinity to route requests to the same instance.
@@ -1892,11 +1865,11 @@ export declare enum ContentObjectStatus {
1892
1865
  failed = "failed",
1893
1866
  archived = "archived"
1894
1867
  }
1895
- export type Embedding = z.infer<typeof EmbeddingSchema>;
1896
- export type ExportContentObjectsIncludeOptions = z.infer<typeof ExportContentObjectsIncludeOptionsSchema>;
1897
- export type ExportContentObjectsFilter = z.infer<typeof ExportContentObjectsFilterSchema>;
1898
- export type StartContentObjectExportRequest = z.infer<typeof StartContentObjectExportRequestSchema>;
1899
- export type StartContentObjectExportResponse = z.infer<typeof StartContentObjectExportResponseSchema>;
1868
+ export type Embedding = Wire.Embedding;
1869
+ export type ExportContentObjectsIncludeOptions = Wire.ExportContentObjectsIncludeOptions;
1870
+ export type ExportContentObjectsFilter = Wire.ExportContentObjectsFilter;
1871
+ export type StartContentObjectExportRequest = Wire.StartContentObjectExportRequest;
1872
+ export type StartContentObjectExportResponse = Wire.StartContentObjectExportResponse;
1900
1873
  export interface ZenoBulkContentObjectExportRequest extends Omit<StartContentObjectExportRequest, 'compression'> {
1901
1874
  tenant_id: string;
1902
1875
  project_id: string;
@@ -1953,23 +1926,23 @@ export interface ZenoBulkContentObjectExportComposeRequest extends ZenoBulkConte
1953
1926
  */
1954
1927
  started_at?: string;
1955
1928
  }
1956
- export type ContentObjectExportResult = z.infer<typeof ContentObjectExportResultSchema>;
1957
- export type ContentObjectExportProgress = z.infer<typeof ContentObjectExportProgressSchema>;
1958
- export type ContentObjectExportStatusResponse = z.infer<typeof ContentObjectExportStatusResponseSchema>;
1959
- export type ContentObjectExportArtifact = z.infer<typeof ContentObjectExportArtifactSchema>;
1960
- export type ContentObjectExportArtifactFile = z.infer<typeof ContentObjectExportArtifactFileSchema>;
1961
- export type ListContentObjectExportsResponse = z.infer<typeof ListContentObjectExportsResponseSchema>;
1962
- export type DeleteContentObjectExportResponse = z.infer<typeof DeleteContentObjectExportResponseSchema>;
1963
- export type InheritedPropertyMetadata = z.infer<typeof InheritedPropertyMetadataSchema>;
1964
- export type ContentObjectUserPermissions = z.infer<typeof ContentObjectUserPermissionsSchema>;
1965
- export type ContentObjectTextResponse = z.infer<typeof ContentObjectTextResponseSchema>;
1966
- export type DeleteContentObjectResult = z.infer<typeof DeleteContentObjectResultSchema>;
1967
- export type SetObjectEmbeddingsResponse = z.infer<typeof SetObjectEmbeddingsResponseSchema>;
1968
- export type ContentObjectApiTypeRef = z.infer<typeof ContentObjectApiTypeRefSchema>;
1969
- export type ContentObjectApiRevision = z.infer<typeof ContentObjectApiRevisionSchema>;
1970
- export type ContentObjectItemApiResponse = z.infer<typeof ContentObjectItemApiResponseSchema>;
1971
- export type ContentObjectApiResponse = z.infer<typeof ContentObjectApiResponseSchema>;
1972
- export type ProjectedContentObjectApiResponse = z.infer<typeof ProjectedContentObjectApiResponseSchema>;
1929
+ export type ContentObjectExportResult = Wire.ContentObjectExportResult;
1930
+ export type ContentObjectExportProgress = Wire.ContentObjectExportProgress;
1931
+ export type ContentObjectExportStatusResponse = Wire.ContentObjectExportStatusResponse;
1932
+ export type ContentObjectExportArtifact = Wire.ContentObjectExportArtifact;
1933
+ export type ContentObjectExportArtifactFile = Wire.ContentObjectExportArtifactFile;
1934
+ export type ListContentObjectExportsResponse = Wire.ListContentObjectExportsResponse;
1935
+ export type DeleteContentObjectExportResponse = Wire.DeleteContentObjectExportResponse;
1936
+ export type InheritedPropertyMetadata = Wire.InheritedPropertyMetadata;
1937
+ export type ContentObjectUserPermissions = Wire.ContentObjectUserPermissions;
1938
+ export type ContentObjectTextResponse = Wire.ContentObjectTextResponse;
1939
+ export type DeleteContentObjectResult = Wire.DeleteContentObjectResult;
1940
+ export type SetObjectEmbeddingsResponse = Wire.SetObjectEmbeddingsResponse;
1941
+ export type ContentObjectApiTypeRef = Wire.ContentObjectApiTypeRef;
1942
+ export type ContentObjectApiRevision = Wire.ContentObjectApiRevision;
1943
+ export type ContentObjectItemApiResponse = Wire.ContentObjectItemApiResponse;
1944
+ export type ContentObjectApiResponse = Wire.ContentObjectApiResponse;
1945
+ export type ProjectedContentObjectApiResponse = Wire.ProjectedContentObjectApiResponse;
1973
1946
  export type FullObjectSearchResponse = Omit<ObjectSearchResponse, 'results'> & {
1974
1947
  results: ContentObjectItemApiResponse[];
1975
1948
  };
@@ -1985,6 +1958,13 @@ export interface ContentObject<T = JSONObject> extends ContentObjectItem<T> {
1985
1958
  sensitivity?: number;
1986
1959
  /** Compartments — set directly or inherited from collections (union across collections). */
1987
1960
  compartments?: string[];
1961
+ /** Effective shared state (readable by non-members via matching shared-content ABAC rules): true
1962
+ * iff this document is a member of an effectively-shared collection (inherited; sync-managed).
1963
+ * Combine with `shared_root` for full readability. */
1964
+ shared?: boolean;
1965
+ /** True iff this document was explicitly shared via the API (a root of the project shared space).
1966
+ * Never set by the sync. */
1967
+ shared_root?: boolean;
1988
1968
  /**
1989
1969
  * Inherited properties metadata - tracks which properties were inherited from parent collections.
1990
1970
  * Used to display readonly inherited properties in the UI and enable incremental sync optimization.
@@ -2007,7 +1987,7 @@ export interface Location {
2007
1987
  latitude: number;
2008
1988
  longitude: number;
2009
1989
  }
2010
- export type GenerationRunMetadata = z.infer<typeof GenerationRunMetadataSchema>;
1990
+ export type GenerationRunMetadata = Wire.GenerationRunMetadata;
2011
1991
  export interface Rendition {
2012
1992
  name: string;
2013
1993
  content: ContentSource;
@@ -2167,10 +2147,10 @@ interface GroundedMetadata {
2167
2147
  source_text_etag?: string | null;
2168
2148
  [key: string]: unknown;
2169
2149
  }
2170
- export type Transcript = z.infer<typeof TranscriptSchema>;
2171
- export type TranscriptSegment = z.infer<typeof TranscriptSegmentSchema>;
2172
- export type ContentSource = z.infer<typeof ContentSourceSchema>;
2173
- export type RevisionInfo = z.infer<typeof RevisionInfoSchema>;
2150
+ export type Transcript = Wire.Transcript;
2151
+ export type TranscriptSegment = Wire.TranscriptSegment;
2152
+ export type ContentSource = Wire.ContentSource;
2153
+ export type RevisionInfo = Wire.RevisionInfo;
2174
2154
  /**
2175
2155
  * The content object item is a simplified version of the ContentObject that is returned by the store API when listing objects.
2176
2156
  */
@@ -2232,19 +2212,19 @@ export interface ContentObjectItem<T = JSONObject> extends BaseObject {
2232
2212
  */
2233
2213
  user_permissions?: ContentObjectUserPermissions;
2234
2214
  }
2235
- type CreateContentObjectPayloadWire = z.infer<typeof CreateContentObjectPayloadSchema>;
2215
+ type CreateContentObjectPayloadWire = Wire.CreateContentObjectPayloadWire;
2236
2216
  export type CreateContentObjectPayload<T = JSONObject> = Omit<CreateContentObjectPayloadWire, 'properties' | 'metadata'> & {
2237
2217
  properties?: T;
2238
2218
  /** Known metadata interfaces remain assignable; the runtime contract deliberately accepts any object keys. */
2239
2219
  metadata?: ContentObjectItem['metadata'];
2240
2220
  };
2241
2221
  export declare function getContentTypeRefId(type: ContentObjectTypeRef): string;
2242
- export type ContentObjectTypeRef = z.infer<typeof ContentObjectTypeRefSchema>;
2243
- export type ComplexSearchPayload = z.infer<typeof ComplexSearchPayloadSchema>;
2244
- export type ColumnLayout = z.infer<typeof ColumnLayoutSchema>;
2245
- export type ContentObjectTypeStatus = z.infer<typeof ContentObjectTypeStatusSchema>;
2246
- export type IntakeVisionDetail = z.infer<typeof IntakeVisionDetailSchema>;
2247
- export type IntakePageScope = z.infer<typeof IntakePageScopeSchema>;
2222
+ export type ContentObjectTypeRef = Wire.ContentObjectTypeRef;
2223
+ export type ComplexSearchPayload = Wire.ComplexSearchPayload;
2224
+ export type ColumnLayout = Wire.ColumnLayout;
2225
+ export type ContentObjectTypeStatus = Wire.ContentObjectTypeStatus;
2226
+ export type IntakeVisionDetail = Wire.IntakeVisionDetail;
2227
+ export type IntakePageScope = Wire.IntakePageScope;
2248
2228
  /**
2249
2229
  * Inclusive `[start, end]` pairs.
2250
2230
  *
@@ -2253,29 +2233,29 @@ export type IntakePageScope = z.infer<typeof IntakePageScopeSchema>;
2253
2233
  * tuple, and reproducing it is what keeps the generated clients unchanged. The length is still
2254
2234
  * enforced at runtime.
2255
2235
  */
2256
- export type IntakePageRanges = z.infer<typeof IntakePageRangesSchema>;
2257
- export type ContentTypeExtractionGroundingReviewPolicy = z.infer<typeof ContentTypeExtractionGroundingReviewPolicySchema>;
2258
- export type ContentTypeExtractionGroundingPolicy = z.infer<typeof ContentTypeExtractionGroundingPolicySchema>;
2259
- export type ContentTypeIntakePolicy = z.infer<typeof ContentTypeIntakePolicySchema>;
2260
- export type ContentTypeEditingPolicy = z.infer<typeof ContentTypeEditingPolicySchema>;
2261
- export type ContentObjectType = z.infer<typeof ContentObjectTypeSchema>;
2262
- export type ContentObjectTypeItem = z.infer<typeof ContentObjectTypeItemSchema>;
2263
- export type InCodeTypeDefinition = z.infer<typeof InCodeTypeDefinitionSchema>;
2264
- export type ContentObjectTypeCatalogEntry = z.infer<typeof ContentObjectTypeCatalogEntrySchema>;
2236
+ export type IntakePageRanges = Wire.IntakePageRanges;
2237
+ export type ContentTypeExtractionGroundingReviewPolicy = Wire.ContentTypeExtractionGroundingReviewPolicy;
2238
+ export type ContentTypeExtractionGroundingPolicy = Wire.ContentTypeExtractionGroundingPolicy;
2239
+ export type ContentTypeIntakePolicy = Wire.ContentTypeIntakePolicy;
2240
+ export type ContentTypeEditingPolicy = Wire.ContentTypeEditingPolicy;
2241
+ export type ContentObjectType = Wire.ContentObjectType;
2242
+ export type ContentObjectTypeItem = Wire.ContentObjectTypeItem;
2243
+ export type InCodeTypeDefinition = Wire.InCodeTypeDefinition;
2244
+ export type ContentObjectTypeCatalogEntry = Wire.ContentObjectTypeCatalogEntry;
2265
2245
  /**
2266
2246
  * The itnerface to be used whend efining types in a plugin app.
2267
2247
  */
2268
2248
  export type InCodeTypeSpec = Omit<InCodeTypeDefinition, 'id'>;
2269
- export type CreateContentObjectTypePayload = z.infer<typeof CreateContentObjectTypePayloadSchema>;
2270
- export type UpdateContentObjectTypePayload = z.infer<typeof UpdateContentObjectTypePayloadSchema>;
2249
+ export type CreateContentObjectTypePayload = Wire.CreateContentObjectTypePayload;
2250
+ export type UpdateContentObjectTypePayload = Wire.UpdateContentObjectTypePayload;
2271
2251
  export declare enum WorkflowRuleInputType {
2272
2252
  single = "single",
2273
2253
  multiple = "multiple",
2274
2254
  none = "none"
2275
2255
  }
2276
- export type WorkflowRuleItem = z.infer<typeof WorkflowRuleItemSchema>;
2277
- export type WorkflowRule = z.infer<typeof WorkflowRuleSchema>;
2278
- export type CreateWorkflowRulePayload = z.infer<typeof CreateWorkflowRulePayloadSchema>;
2256
+ export type WorkflowRuleItem = Wire.WorkflowRuleItem;
2257
+ export type WorkflowRule = Wire.WorkflowRule;
2258
+ export type CreateWorkflowRulePayload = Wire.CreateWorkflowRulePayload;
2279
2259
  export interface UploadWorkflowRulePayload extends Partial<Omit<WorkflowRule, 'id' | 'created_at' | 'updated_at' | 'owner'>> {
2280
2260
  }
2281
2261
  export declare enum ImageRenditionFormat {
@@ -2287,7 +2267,7 @@ export declare const MarkdownRenditionFormat: {
2287
2267
  readonly docx: 'docx';
2288
2268
  readonly pdf: 'pdf';
2289
2269
  };
2290
- export type MarkdownRenditionFormat = z.infer<typeof MarkdownRenditionFormatSchema>;
2270
+ export type MarkdownRenditionFormat = Wire.MarkdownRenditionFormat;
2291
2271
  export interface GetRenditionParams {
2292
2272
  format: ImageRenditionFormat | MarkdownRenditionFormat;
2293
2273
  max_hw?: number;
@@ -2295,8 +2275,8 @@ export interface GetRenditionParams {
2295
2275
  sign_url?: boolean;
2296
2276
  block_on_generation?: boolean;
2297
2277
  }
2298
- export type GetRenditionResponse = z.infer<typeof GetRenditionResponseSchema>;
2299
- export type ObjectSearchResponse = z.infer<typeof ObjectSearchResponseSchema>;
2278
+ export type GetRenditionResponse = Wire.GetRenditionResponse;
2279
+ export type ObjectSearchResponse = Wire.ObjectSearchResponse;
2300
2280
  type RenditionFormat = ImageRenditionFormat | MarkdownRenditionFormat;
2301
2281
  /**
2302
2282
  * Check if a specific rendition format can be generated from a content type.
@@ -2311,30 +2291,30 @@ type RenditionFormat = ImageRenditionFormat | MarkdownRenditionFormat;
2311
2291
  * canGenerateRendition('text/markdown', MarkdownRenditionFormat.pdf) // true
2312
2292
  */
2313
2293
  export declare function canGenerateRendition(contentType: string | undefined, format: RenditionFormat | string): boolean;
2314
- export type GetUploadUrlPayload = z.infer<typeof GetUploadUrlPayloadSchema>;
2315
- export type GetFileUrlPayload = z.infer<typeof GetFileUrlPayloadSchema>;
2316
- export type GetFileUrlResponse = z.infer<typeof GetFileUrlResponseSchema>;
2317
- export type EnsureBucketReadAccessPayload = z.infer<typeof EnsureBucketReadAccessPayloadSchema>;
2318
- export type EnsureBucketReadAccessResponse = z.infer<typeof EnsureBucketReadAccessResponseSchema>;
2319
- export type BucketReadAccessStatusResponse = z.infer<typeof BucketReadAccessStatusResponseSchema>;
2320
- export type EnsureBucketCreateAccessPayload = z.infer<typeof EnsureBucketCreateAccessPayloadSchema>;
2321
- export type EnsureBucketCreateAccessResponse = z.infer<typeof EnsureBucketCreateAccessResponseSchema>;
2322
- export type BucketCreateAccessStatusResponse = z.infer<typeof BucketCreateAccessStatusResponseSchema>;
2323
- export type FileMetadataResponse = z.infer<typeof FileMetadataResponseSchema>;
2324
- export type SetFileMetadataPayload = z.infer<typeof SetFileMetadataPayloadSchema>;
2325
- export type FileMetadataUpdateResult = z.infer<typeof FileMetadataUpdateResultSchema>;
2326
- export type BulkUploadUrlsPayload = z.infer<typeof BulkUploadUrlsPayloadSchema>;
2327
- export type BulkUploadUrlsResponse = z.infer<typeof BulkUploadUrlsResponseSchema>;
2328
- export type FileBucketResponse = z.infer<typeof FileBucketResponseSchema>;
2329
- export type FileListResponse = z.infer<typeof FileListResponseSchema>;
2330
- export type FileMetadataQuery = z.infer<typeof FileMetadataQuerySchema>;
2331
- export type FileListQuery = z.infer<typeof FileListQuerySchema>;
2332
- export type FileDeleteQuery = z.infer<typeof FileDeleteQuerySchema>;
2333
- export type ContentObjectTypeCatalogQuery = z.infer<typeof ContentObjectTypeCatalogQuerySchema>;
2334
- export type ContentObjectTypeListQuery = z.infer<typeof ContentObjectTypeListQuerySchema>;
2335
- export type CopyFilePayload = z.infer<typeof CopyFilePayloadSchema>;
2336
- export type CopyFileResponse = z.infer<typeof CopyFileResponseSchema>;
2337
- export type DeleteFileResult = z.infer<typeof DeleteFileResultSchema>;
2294
+ export type GetUploadUrlPayload = Wire.GetUploadUrlPayload;
2295
+ export type GetFileUrlPayload = Wire.GetFileUrlPayload;
2296
+ export type GetFileUrlResponse = Wire.GetFileUrlResponse;
2297
+ export type EnsureBucketReadAccessPayload = Wire.EnsureBucketReadAccessPayload;
2298
+ export type EnsureBucketReadAccessResponse = Wire.EnsureBucketReadAccessResponse;
2299
+ export type BucketReadAccessStatusResponse = Wire.BucketReadAccessStatusResponse;
2300
+ export type EnsureBucketCreateAccessPayload = Wire.EnsureBucketCreateAccessPayload;
2301
+ export type EnsureBucketCreateAccessResponse = Wire.EnsureBucketCreateAccessResponse;
2302
+ export type BucketCreateAccessStatusResponse = Wire.BucketCreateAccessStatusResponse;
2303
+ export type FileMetadataResponse = Wire.FileMetadataResponse;
2304
+ export type SetFileMetadataPayload = Wire.SetFileMetadataPayload;
2305
+ export type FileMetadataUpdateResult = Wire.FileMetadataUpdateResult;
2306
+ export type BulkUploadUrlsPayload = Wire.BulkUploadUrlsPayload;
2307
+ export type BulkUploadUrlsResponse = Wire.BulkUploadUrlsResponse;
2308
+ export type FileBucketResponse = Wire.FileBucketResponse;
2309
+ export type FileListResponse = Wire.FileListResponse;
2310
+ export type FileMetadataQuery = Wire.FileMetadataQuery;
2311
+ export type FileListQuery = Wire.FileListQuery;
2312
+ export type FileDeleteQuery = Wire.FileDeleteQuery;
2313
+ export type ContentObjectTypeCatalogQuery = Wire.ContentObjectTypeCatalogQuery;
2314
+ export type ContentObjectTypeListQuery = Wire.ContentObjectTypeListQuery;
2315
+ export type CopyFilePayload = Wire.CopyFilePayload;
2316
+ export type CopyFileResponse = Wire.CopyFileResponse;
2317
+ export type DeleteFileResult = Wire.DeleteFileResult;
2338
2318
  export declare enum ContentObjectProcessingPriority {
2339
2319
  normal = "normal",
2340
2320
  low = "low"
@@ -2392,9 +2372,9 @@ export declare function getSupportedRenditionFormats(contentType: string | undef
2392
2372
  * supportsVisualRendition('text/markdown') // false
2393
2373
  */
2394
2374
  export declare function supportsVisualRendition(contentType: string | undefined): boolean;
2395
- export type InCodeTypeRef = z.infer<typeof InCodeTypeRefSchema>;
2396
- export type StoredTypeRef = z.infer<typeof StoredTypeRefSchema>;
2397
- type UpdateContentObjectPayloadWire = z.infer<typeof UpdateContentObjectPayloadSchema>;
2375
+ export type InCodeTypeRef = Wire.InCodeTypeRef;
2376
+ export type StoredTypeRef = Wire.StoredTypeRef;
2377
+ type UpdateContentObjectPayloadWire = Wire.UpdateContentObjectPayloadWire;
2398
2378
  /**
2399
2379
  * Mirrors {@link CreateContentObjectPayload}: `properties` and `metadata` are reopened over the wire
2400
2380
  * type so the known metadata interfaces stay assignable and callers can name their property shape.
@@ -2404,21 +2384,20 @@ export type UpdateContentObjectPayload<T = JSONObject> = Omit<UpdateContentObjec
2404
2384
  properties?: T;
2405
2385
  metadata?: ContentObjectItem['metadata'];
2406
2386
  };
2407
- export type UpdateWorkflowRulePayload = z.infer<typeof UpdateWorkflowRulePayloadSchema>;
2387
+ export type UpdateWorkflowRulePayload = Wire.UpdateWorkflowRulePayload;
2408
2388
  export {};
2409
2389
 
2410
2390
  // -----------------------------------------------------------------------------
2411
2391
  // @vertesia/common: store/collections.d.ts
2412
2392
  // -----------------------------------------------------------------------------
2413
- import type { z } from 'zod';
2414
- import type { CollectionChildrenUpdatePayloadSchema, CollectionChildrenUpdateResultSchema, CollectionMembersQuerySchema, CollectionMembersUpdatePayloadSchema, CollectionMembersUpdateResultSchema, CollectionPropagationResponseSchema, CollectionSchema, CollectionSecuritySettingsResponseSchema, CreateCollectionPayloadSchema, UpdateCollectionPayloadSchema } from '../api-schemas/content.js';
2393
+ import type * as Wire from '../wire-types.generated.js';
2415
2394
  import type { BaseObject } from './common.js';
2416
2395
  import type { ColumnLayout, ContentObjectTypeRef } from './store.js';
2417
2396
  export declare enum CollectionStatus {
2418
2397
  active = "active",
2419
2398
  archived = "archived"
2420
2399
  }
2421
- export type CreateCollectionPayload = z.infer<typeof CreateCollectionPayloadSchema>;
2400
+ export type CreateCollectionPayload = Wire.CreateCollectionPayload;
2422
2401
  export interface CollectionItem extends BaseObject {
2423
2402
  /**
2424
2403
  * A flag to indicate if the collection is dynamic or static.
@@ -2448,7 +2427,7 @@ export interface CollectionItem extends BaseObject {
2448
2427
  */
2449
2428
  allowed_types?: string[];
2450
2429
  }
2451
- export type Collection = z.infer<typeof CollectionSchema>;
2430
+ export type Collection = Wire.Collection;
2452
2431
  export interface DynamicCollection extends Collection {
2453
2432
  dynamic: true;
2454
2433
  }
@@ -2462,47 +2441,45 @@ export interface CollectionSearchPayload {
2462
2441
  type?: string;
2463
2442
  types?: string[];
2464
2443
  }
2465
- export type CollectionMembersUpdateResult = z.infer<typeof CollectionMembersUpdateResultSchema>;
2466
- export type CollectionSecuritySettingsResponse = z.infer<typeof CollectionSecuritySettingsResponseSchema>;
2467
- export type CollectionPropagationResponse = z.infer<typeof CollectionPropagationResponseSchema>;
2468
- export type CollectionChildrenUpdateResult = z.infer<typeof CollectionChildrenUpdateResultSchema>;
2469
- export type CollectionMembersUpdatePayload = z.infer<typeof CollectionMembersUpdatePayloadSchema>;
2470
- export type CollectionChildrenUpdatePayload = z.infer<typeof CollectionChildrenUpdatePayloadSchema>;
2471
- export type CollectionMembersQuery = z.infer<typeof CollectionMembersQuerySchema>;
2472
- export type UpdateCollectionPayload = z.infer<typeof UpdateCollectionPayloadSchema>;
2444
+ export type CollectionMembersUpdateResult = Wire.CollectionMembersUpdateResult;
2445
+ export type CollectionSecuritySettingsResponse = Wire.CollectionSecuritySettingsResponse;
2446
+ export type CollectionPropagationResponse = Wire.CollectionPropagationResponse;
2447
+ export type CollectionChildrenUpdateResult = Wire.CollectionChildrenUpdateResult;
2448
+ export type CollectionMembersUpdatePayload = Wire.CollectionMembersUpdatePayload;
2449
+ export type CollectionChildrenUpdatePayload = Wire.CollectionChildrenUpdatePayload;
2450
+ export type CollectionMembersQuery = Wire.CollectionMembersQuery;
2451
+ export type UpdateCollectionPayload = Wire.UpdateCollectionPayload;
2473
2452
 
2474
2453
  // -----------------------------------------------------------------------------
2475
2454
  // @vertesia/common: store/process.d.ts
2476
2455
  // -----------------------------------------------------------------------------
2477
- import type { z } from 'zod';
2478
- 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';
2479
- import type { ProcessAgentExecutionPolicySchema, ProcessAgentPhaseResetSchema, ProcessAgentToolInputContainsSchema, ProcessAgentToolPhaseSchema } from '../api-schemas/process-agent-policy.js';
2480
2456
  import type { JSONSchema } from '../json-schema.js';
2481
- export type JsonLogicRule = z.infer<typeof JsonLogicRuleSchema>;
2482
- export type ProcessDefinitionStatus = z.infer<typeof ProcessDefinitionStatusSchema>;
2483
- export type ListProcessDefinitionsQuery = z.infer<typeof ListProcessDefinitionsQuerySchema>;
2484
- export type ListProcessTestRunsQuery = z.infer<typeof ListProcessTestRunsQuerySchema>;
2457
+ import type * as Wire from '../wire-types.generated.js';
2458
+ export type JsonLogicRule = Wire.JsonLogicRule;
2459
+ export type ProcessDefinitionStatus = Wire.ProcessDefinitionStatus;
2460
+ export type ListProcessDefinitionsQuery = Wire.ListProcessDefinitionsQuery;
2461
+ export type ListProcessTestRunsQuery = Wire.ListProcessTestRunsQuery;
2485
2462
  export declare const PROCESS_DEFINITION_FORMAT_VERSION: 1;
2486
- export type ProcessDefinitionFormatVersion = z.infer<typeof ProcessDefinitionFormatVersionSchema>;
2487
- export type ProcessNodeType = z.infer<typeof ProcessNodeTypeSchema>;
2488
- export type TransitionTrigger = z.infer<typeof TransitionTriggerSchema>;
2489
- export type ParallelFailurePolicy = z.infer<typeof ParallelFailurePolicySchema>;
2490
- export type ProcessNodeRunType = z.infer<typeof ProcessNodeRunTypeSchema>;
2491
- export type ParallelCollectMode = z.infer<typeof ParallelCollectModeSchema>;
2492
- export type BranchJoinPolicy = z.infer<typeof BranchJoinPolicySchema>;
2493
- export type ProcessDefinitionMetadata = z.infer<typeof ProcessDefinitionMetadataSchema>;
2494
- export type ProcessAgentToolPhase = z.infer<typeof ProcessAgentToolPhaseSchema>;
2495
- export type ProcessAgentToolInputContains = z.infer<typeof ProcessAgentToolInputContainsSchema>;
2496
- export type ProcessAgentPhaseReset = z.infer<typeof ProcessAgentPhaseResetSchema>;
2497
- export type ProcessAgentExecutionPolicy = z.infer<typeof ProcessAgentExecutionPolicySchema>;
2498
- export type ProcessScriptLanguage = z.infer<typeof ProcessScriptLanguageSchema>;
2499
- export type ProcessScriptInlineSource = z.infer<typeof ProcessScriptInlineSourceSchema>;
2500
- export type ProcessScriptSource = z.infer<typeof ProcessScriptSourceSchema>;
2501
- export type ProcessScriptResource = z.infer<typeof ProcessScriptResourceSchema>;
2502
- export type ProcessResourcesDefinition = z.infer<typeof ProcessResourcesDefinitionSchema>;
2503
- export type ParallelCollectField = z.infer<typeof ParallelCollectFieldSchema>;
2504
- export type TransitionDefinition = z.infer<typeof TransitionDefinitionSchema>;
2505
- export type BranchDefinition = z.infer<typeof BranchDefinitionSchema>;
2463
+ export type ProcessDefinitionFormatVersion = Wire.ProcessDefinitionFormatVersion;
2464
+ export type ProcessNodeType = Wire.ProcessNodeType;
2465
+ export type TransitionTrigger = Wire.TransitionTrigger;
2466
+ export type ParallelFailurePolicy = Wire.ParallelFailurePolicy;
2467
+ export type ProcessNodeRunType = Wire.ProcessNodeRunType;
2468
+ export type ParallelCollectMode = Wire.ParallelCollectMode;
2469
+ export type BranchJoinPolicy = Wire.BranchJoinPolicy;
2470
+ export type ProcessDefinitionMetadata = Wire.ProcessDefinitionMetadata;
2471
+ export type ProcessAgentToolPhase = Wire.ProcessAgentToolPhase;
2472
+ export type ProcessAgentToolInputContains = Wire.ProcessAgentToolInputContains;
2473
+ export type ProcessAgentPhaseReset = Wire.ProcessAgentPhaseReset;
2474
+ export type ProcessAgentExecutionPolicy = Wire.ProcessAgentExecutionPolicy;
2475
+ export type ProcessScriptLanguage = Wire.ProcessScriptLanguage;
2476
+ export type ProcessScriptInlineSource = Wire.ProcessScriptInlineSource;
2477
+ export type ProcessScriptSource = Wire.ProcessScriptSource;
2478
+ export type ProcessScriptResource = Wire.ProcessScriptResource;
2479
+ export type ProcessResourcesDefinition = Wire.ProcessResourcesDefinition;
2480
+ export type ParallelCollectField = Wire.ParallelCollectField;
2481
+ export type TransitionDefinition = Wire.TransitionDefinition;
2482
+ export type BranchDefinition = Wire.BranchDefinition;
2506
2483
  export interface BranchNodeBranchDefinition {
2507
2484
  id: string;
2508
2485
  title?: string;
@@ -2510,9 +2487,9 @@ export interface BranchNodeBranchDefinition {
2510
2487
  node: NodeDefinition;
2511
2488
  metadata?: ProcessDefinitionMetadata;
2512
2489
  }
2513
- export type HumanTaskDefinition = z.infer<typeof HumanTaskDefinitionSchema>;
2514
- export type ProcessNodeReturnsDefinition = z.infer<typeof ProcessNodeReturnsDefinitionSchema>;
2515
- export type ParallelCollectDefinition = z.infer<typeof ParallelCollectDefinitionSchema>;
2490
+ export type HumanTaskDefinition = Wire.HumanTaskDefinition;
2491
+ export type ProcessNodeReturnsDefinition = Wire.ProcessNodeReturnsDefinition;
2492
+ export type ParallelCollectDefinition = Wire.ParallelCollectDefinition;
2516
2493
  export interface NodeDefinition {
2517
2494
  type: ProcessNodeType;
2518
2495
  tool?: string;
@@ -2581,7 +2558,7 @@ export interface NodeDefinition {
2581
2558
  branches?: BranchDefinition[] | BranchNodeBranchDefinition[];
2582
2559
  metadata?: ProcessDefinitionMetadata;
2583
2560
  }
2584
- export type ProcessContextDefinition = z.infer<typeof ProcessContextDefinitionSchema>;
2561
+ export type ProcessContextDefinition = Wire.ProcessContextDefinition;
2585
2562
  export interface ProcessDefinitionBody {
2586
2563
  format_version: ProcessDefinitionFormatVersion;
2587
2564
  process: string;
@@ -2606,7 +2583,7 @@ export interface InCodeProcessDefinition {
2606
2583
  tags?: string[];
2607
2584
  definition: ProcessDefinitionBody;
2608
2585
  }
2609
- export type ProcessDefinitionRevisionInfo = z.infer<typeof ProcessDefinitionRevisionInfoSchema>;
2586
+ export type ProcessDefinitionRevisionInfo = Wire.ProcessDefinitionRevisionInfo;
2610
2587
  export interface ProcessDefinition {
2611
2588
  id: string;
2612
2589
  edit_revision: number;
@@ -2624,15 +2601,18 @@ export interface ProcessDefinition {
2624
2601
  created_by: string;
2625
2602
  updated_by: string;
2626
2603
  }
2627
- export type NodeHistoryEntry = z.infer<typeof NodeHistoryEntrySchema>;
2628
- export type ProcessHistoryRef = z.infer<typeof ProcessHistoryRefSchema>;
2604
+ export type NodeHistoryEntry = Wire.NodeHistoryEntry;
2605
+ export type ProcessHistoryRef = Wire.ProcessHistoryRef;
2629
2606
  export interface ProcessHistoryCheckpoint {
2630
2607
  sequence: number;
2631
2608
  current_node: string;
2632
2609
  written_at: Date | string;
2633
2610
  entries: NodeHistoryEntry[];
2634
2611
  }
2635
- export type ProcessState = z.infer<typeof ProcessStateSchema>;
2612
+ export type ProcessState = Wire.ProcessState;
2613
+ export type ProcessTerminalReason = Wire.ProcessTerminalReason;
2614
+ export type ProcessBudgetState = Wire.ProcessBudgetState;
2615
+ export type ProcessBudgetSummary = Wire.ProcessBudgetSummary;
2636
2616
  export interface CreateProcessDefinitionPayload {
2637
2617
  name: string;
2638
2618
  description?: string;
@@ -2663,61 +2643,55 @@ export interface UpdateProcessDefinitionPayload {
2663
2643
  tags?: string[];
2664
2644
  definition?: ProcessDefinitionBody;
2665
2645
  }
2666
- export type PublishProcessDefinitionPayload = z.infer<typeof PublishProcessDefinitionPayloadSchema>;
2667
- export type RevertProcessDefinitionPayload = z.infer<typeof RevertProcessDefinitionPayloadSchema>;
2668
- export type AdvanceProcessPayload = z.infer<typeof AdvanceProcessPayloadSchema>;
2669
- export type AnswerProcessTaskPayload = z.infer<typeof AnswerProcessTaskPayloadSchema>;
2670
- export type RetryProcessNodePayload = z.infer<typeof RetryProcessNodePayloadSchema>;
2671
- export type ProcessContextResponse = z.infer<typeof ProcessContextResponseSchema>;
2672
- export type ProcessHistoryResponse = z.infer<typeof ProcessHistoryResponseSchema>;
2673
- export type ProcessTestRunStatus = z.infer<typeof ProcessTestRunStatusSchema>;
2674
- export type ProcessTestVirtualActor = z.infer<typeof ProcessTestVirtualActorSchema>;
2675
- export type ProcessTestFixtureResult = z.infer<typeof ProcessTestFixtureResultSchema>;
2676
- export type ProcessTestFixtureError = z.infer<typeof ProcessTestFixtureErrorSchema>;
2677
- export type ProcessTestFixtureResponse = z.infer<typeof ProcessTestFixtureResponseSchema>;
2678
- export type ProcessTestNodeFixture = z.infer<typeof ProcessTestNodeFixtureSchema>;
2679
- export type ProcessTestHumanAction = z.infer<typeof ProcessTestHumanActionSchema>;
2680
- export type ProcessTestAssertions = z.infer<typeof ProcessTestAssertionsSchema>;
2681
- export type ProcessTestScenario = z.infer<typeof ProcessTestScenarioSchema>;
2682
- export type ProcessTestSuite = z.infer<typeof ProcessTestSuiteSchema>;
2683
- export type CreateProcessTestSuitePayload = z.infer<typeof CreateProcessTestSuitePayloadSchema>;
2684
- export type UpdateProcessTestSuitePayload = z.infer<typeof UpdateProcessTestSuitePayloadSchema>;
2685
- export type StartProcessTestRunPayload = z.infer<typeof StartProcessTestRunPayloadSchema>;
2686
- export type ProcessTestAssertionResult = z.infer<typeof ProcessTestAssertionResultSchema>;
2687
- export type ProcessTestActorDecision = z.infer<typeof ProcessTestActorDecisionSchema>;
2688
- export type ProcessTestCoverage = z.infer<typeof ProcessTestCoverageSchema>;
2689
- export type ProcessTestChildTrace = z.infer<typeof ProcessTestChildTraceSchema>;
2690
- export type ProcessTestScenarioResult = z.infer<typeof ProcessTestScenarioResultSchema>;
2691
- export type ProcessTestRun = Omit<z.infer<typeof ProcessTestRunSchema>, 'process_definition_snapshot'> & {
2646
+ export type PublishProcessDefinitionPayload = Wire.PublishProcessDefinitionPayload;
2647
+ export type RevertProcessDefinitionPayload = Wire.RevertProcessDefinitionPayload;
2648
+ export type AdvanceProcessPayload = Wire.AdvanceProcessPayload;
2649
+ export type AnswerProcessTaskPayload = Wire.AnswerProcessTaskPayload;
2650
+ export type RetryProcessNodePayload = Wire.RetryProcessNodePayload;
2651
+ export type ProcessContextResponse = Wire.ProcessContextResponse;
2652
+ export type ProcessHistoryResponse = Wire.ProcessHistoryResponse;
2653
+ export type ProcessTestRunStatus = Wire.ProcessTestRunStatus;
2654
+ export type ProcessTestVirtualActor = Wire.ProcessTestVirtualActor;
2655
+ export type ProcessTestFixtureResult = Wire.ProcessTestFixtureResult;
2656
+ export type ProcessTestFixtureError = Wire.ProcessTestFixtureError;
2657
+ export type ProcessTestFixtureResponse = Wire.ProcessTestFixtureResponse;
2658
+ export type ProcessTestNodeFixture = Wire.ProcessTestNodeFixture;
2659
+ export type ProcessTestHumanAction = Wire.ProcessTestHumanAction;
2660
+ export type ProcessTestAssertions = Wire.ProcessTestAssertions;
2661
+ export type ProcessTestScenario = Wire.ProcessTestScenario;
2662
+ export type ProcessTestSuite = Wire.ProcessTestSuite;
2663
+ export type CreateProcessTestSuitePayload = Wire.CreateProcessTestSuitePayload;
2664
+ export type UpdateProcessTestSuitePayload = Wire.UpdateProcessTestSuitePayload;
2665
+ export type StartProcessTestRunPayload = Wire.StartProcessTestRunPayload;
2666
+ export type ProcessTestAssertionResult = Wire.ProcessTestAssertionResult;
2667
+ export type ProcessTestActorDecision = Wire.ProcessTestActorDecision;
2668
+ export type ProcessTestCoverage = Wire.ProcessTestCoverage;
2669
+ export type ProcessTestChildTrace = Wire.ProcessTestChildTrace;
2670
+ export type ProcessTestScenarioResult = Wire.ProcessTestScenarioResult;
2671
+ export type ProcessTestRun = Omit<Wire.ProcessTestRunWire, 'process_definition_snapshot'> & {
2692
2672
  process_definition_snapshot: ProcessDefinitionBody;
2693
2673
  };
2694
- export type ProcessTestStoredSubject = z.infer<typeof ProcessTestStoredSubjectSchema>;
2695
- export type ProcessTestResolvedSubject = z.infer<typeof ProcessTestResolvedSubjectSchema>;
2696
- export type ProcessTestInlineSubject = z.infer<typeof ProcessTestInlineSubjectSchema>;
2697
- export type ProcessTestSubject = z.infer<typeof ProcessTestSubjectSchema>;
2698
- export type ProcessTestTargetById = z.infer<typeof ProcessTestTargetByIdSchema>;
2699
- export type ProcessTestTargetWithDefinition = Omit<z.infer<typeof ProcessTestTargetWithDefinitionSchema>, 'definition'> & {
2674
+ export type ProcessTestStoredSubject = Wire.ProcessTestStoredSubject;
2675
+ export type ProcessTestResolvedSubject = Wire.ProcessTestResolvedSubject;
2676
+ export type ProcessTestInlineSubject = Wire.ProcessTestInlineSubject;
2677
+ export type ProcessTestSubject = Wire.ProcessTestSubject;
2678
+ export type ProcessTestTargetById = Wire.ProcessTestTargetById;
2679
+ export type ProcessTestTargetWithDefinition = Omit<Wire.ProcessTestTargetWithDefinitionWire, 'definition'> & {
2700
2680
  definition: ProcessDefinitionBody;
2701
2681
  };
2702
2682
  export type ProcessTestTarget = ProcessTestTargetById | ProcessTestTargetWithDefinition;
2703
- export type SubmitProcessTestRunPayload = Omit<z.infer<typeof SubmitProcessTestRunPayloadSchema>, 'process'> & {
2683
+ export type SubmitProcessTestRunPayload = Omit<Wire.SubmitProcessTestRunPayloadWire, 'process'> & {
2704
2684
  process: ProcessTestTarget;
2705
2685
  };
2706
- export type UpdateProcessTestScenarioPayload = z.infer<typeof UpdateProcessTestScenarioPayloadSchema>;
2686
+ export type UpdateProcessTestScenarioPayload = Wire.UpdateProcessTestScenarioPayload;
2707
2687
 
2708
2688
  // -----------------------------------------------------------------------------
2709
2689
  // @vertesia/common: store/workflow.d.ts
2710
2690
  // -----------------------------------------------------------------------------
2711
2691
  import type { HttpTimeoutOptions, ModelOptions } from '@llumiverse/common';
2712
- import type { z } from 'zod';
2713
- import type { AgentMessageDetailsSchema, CompactMessageSchema, ConversationFileSchema } from '../api-schemas/agent-runs.js';
2714
- import type { ConversationActivityStateSchema } from '../api-schemas/app-lifecycle.js';
2715
- import type { WorkflowExecutionStatusSchema } from '../api-schemas/document-processing.js';
2716
- import type { PlanSchema, PlanTaskSchema, WorkflowAncestorSchema } from '../api-schemas/interaction.js';
2717
- import type { WorkflowExecutionStartResultSchema } from '../api-schemas/process.js';
2718
- import type { ActivityTaskSchema, AgentTaskSchema, ChildWorkflowTaskSchema, EventErrorSchema, ExecuteWorkflowPayloadSchema, ListWorkflowInteractionsResponseSchema, ListWorkflowRunsPayloadSchema, ListWorkflowRunsResponseSchema, PendingActivitySchema, SignalEventPropertiesSchema, SignalTaskSchema, TimerTaskSchema, WorkflowActionResponseSchema, WorkflowHistorySchema, WorkflowInteractionVarsSchema, WorkflowQueryResultSchema, WorkflowRunDetailsQuerySchema, WorkflowRunEventSchema, WorkflowRunSchema, WorkflowRunStreamQuerySchema, WorkflowRunUpdatesQuerySchema, WorkflowRunUpdatesResponseSchema, WorkflowRunWithDetailsSchema, WorkflowTaskSchema, WorkflowUpdatePublishResponseSchema } from '../api-schemas/workflow-runs.js';
2719
2692
  import type { AgentResourceReference, InteractionExecutionConfiguration } from '../interaction.js';
2720
2693
  import type { SupportedEmbeddingTypes } from '../project.js';
2694
+ import type * as Wire from '../wire-types.generated.js';
2721
2695
  import type { WorkflowInput } from './dsl-workflow.js';
2722
2696
  export declare enum ContentEventName {
2723
2697
  create = "create",
@@ -2734,7 +2708,7 @@ export interface Queue {
2734
2708
  queue_suffix?: string;
2735
2709
  queue_full_name?: string;
2736
2710
  }
2737
- export type WorkflowAncestor = z.infer<typeof WorkflowAncestorSchema>;
2711
+ export type WorkflowAncestor = Wire.WorkflowAncestor;
2738
2712
  export interface WorkflowExecutionBaseParams<T = Record<string, unknown>> {
2739
2713
  /** Effective principal for private scheduled runs; server supplied. */
2740
2714
  subject?: string;
@@ -2850,12 +2824,12 @@ export interface WorkflowExecutionPayload<T = Record<string, unknown>, EventName
2850
2824
  auth_token: string;
2851
2825
  }
2852
2826
  export declare function getDocumentIds(payload: WorkflowExecutionPayload<Record<string, unknown>>): string[];
2853
- export type ExecuteWorkflowPayload = z.infer<typeof ExecuteWorkflowPayloadSchema>;
2854
- export type ConversationActivityState = z.infer<typeof ConversationActivityStateSchema>;
2855
- export type ListWorkflowRunsPayload = z.infer<typeof ListWorkflowRunsPayloadSchema>;
2856
- export type SignalEventProperties = z.infer<typeof SignalEventPropertiesSchema>;
2857
- export type EventError = z.infer<typeof EventErrorSchema>;
2858
- export type WorkflowRunEvent = z.infer<typeof WorkflowRunEventSchema>;
2827
+ export type ExecuteWorkflowPayload = Wire.ExecuteWorkflowPayload;
2828
+ export type ConversationActivityState = Wire.ConversationActivityState;
2829
+ export type ListWorkflowRunsPayload = Wire.ListWorkflowRunsPayload;
2830
+ export type SignalEventProperties = Wire.SignalEventProperties;
2831
+ export type EventError = Wire.EventError;
2832
+ export type WorkflowRunEvent = Wire.WorkflowRunEvent;
2859
2833
  export declare enum TaskStatus {
2860
2834
  SCHEDULED = "scheduled",
2861
2835
  RUNNING = "running",
@@ -2873,27 +2847,27 @@ export declare enum TaskType {
2873
2847
  SIGNAL = "signal",
2874
2848
  TIMER = "timer"
2875
2849
  }
2876
- export type ActivityTask = z.infer<typeof ActivityTaskSchema>;
2877
- export type ChildWorkflowTask = z.infer<typeof ChildWorkflowTaskSchema>;
2878
- export type SignalTask = z.infer<typeof SignalTaskSchema>;
2879
- export type TimerTask = z.infer<typeof TimerTaskSchema>;
2880
- export type WorkflowTask = z.infer<typeof WorkflowTaskSchema>;
2881
- export type WorkflowHistory = z.infer<typeof WorkflowHistorySchema>;
2882
- export type AgentTask = z.infer<typeof AgentTaskSchema>;
2883
- export type WorkflowRun = z.infer<typeof WorkflowRunSchema>;
2884
- export type PendingActivity = z.infer<typeof PendingActivitySchema>;
2885
- export type WorkflowRunWithDetails = z.infer<typeof WorkflowRunWithDetailsSchema>;
2886
- export type ListWorkflowRunsResponse = z.infer<typeof ListWorkflowRunsResponseSchema>;
2887
- export type WorkflowExecutionStartResult = z.infer<typeof WorkflowExecutionStartResultSchema>;
2888
- export type ListWorkflowInteractionsResponse = z.infer<typeof ListWorkflowInteractionsResponseSchema>;
2889
- export type WorkflowRunUpdatesResponse = z.infer<typeof WorkflowRunUpdatesResponseSchema>;
2890
- export type WorkflowRunDetailsQuery = z.infer<typeof WorkflowRunDetailsQuerySchema>;
2891
- export type WorkflowRunUpdatesQuery = z.infer<typeof WorkflowRunUpdatesQuerySchema>;
2892
- export type WorkflowRunStreamQuery = z.infer<typeof WorkflowRunStreamQuerySchema>;
2893
- export type WorkflowUpdatePublishResponse = z.infer<typeof WorkflowUpdatePublishResponseSchema>;
2894
- export type WorkflowActionResponse = z.infer<typeof WorkflowActionResponseSchema>;
2895
- export type WorkflowQueryResult = z.infer<typeof WorkflowQueryResultSchema>;
2896
- export type WorkflowInteractionVars = z.infer<typeof WorkflowInteractionVarsSchema>;
2850
+ export type ActivityTask = Wire.ActivityTask;
2851
+ export type ChildWorkflowTask = Wire.ChildWorkflowTask;
2852
+ export type SignalTask = Wire.SignalTask;
2853
+ export type TimerTask = Wire.TimerTask;
2854
+ export type WorkflowTask = Wire.WorkflowTask;
2855
+ export type WorkflowHistory = Wire.WorkflowHistory;
2856
+ export type AgentTask = Wire.AgentTask;
2857
+ export type WorkflowRun = Wire.WorkflowRun;
2858
+ export type PendingActivity = Wire.PendingActivity;
2859
+ export type WorkflowRunWithDetails = Wire.WorkflowRunWithDetails;
2860
+ export type ListWorkflowRunsResponse = Wire.ListWorkflowRunsResponse;
2861
+ export type WorkflowExecutionStartResult = Wire.WorkflowExecutionStartResult;
2862
+ export type ListWorkflowInteractionsResponse = Wire.ListWorkflowInteractionsResponse;
2863
+ export type WorkflowRunUpdatesResponse = Wire.WorkflowRunUpdatesResponse;
2864
+ export type WorkflowRunDetailsQuery = Wire.WorkflowRunDetailsQuery;
2865
+ export type WorkflowRunUpdatesQuery = Wire.WorkflowRunUpdatesQuery;
2866
+ export type WorkflowRunStreamQuery = Wire.WorkflowRunStreamQuery;
2867
+ export type WorkflowUpdatePublishResponse = Wire.WorkflowUpdatePublishResponse;
2868
+ export type WorkflowActionResponse = Wire.WorkflowActionResponse;
2869
+ export type WorkflowQueryResult = Wire.WorkflowQueryResult;
2870
+ export type WorkflowInteractionVars = Wire.WorkflowInteractionVars;
2897
2871
  export declare const WorkflowExecutionStatusValues: {
2898
2872
  readonly UNKNOWN: 0;
2899
2873
  readonly RUNNING: 1;
@@ -2905,7 +2879,7 @@ export declare const WorkflowExecutionStatusValues: {
2905
2879
  readonly TIMED_OUT: 7;
2906
2880
  };
2907
2881
  export declare const WorkflowExecutionStatus: typeof WorkflowExecutionStatusValues & Readonly<Record<number, string>>;
2908
- export type WorkflowExecutionStatus = z.infer<typeof WorkflowExecutionStatusSchema>;
2882
+ export type WorkflowExecutionStatus = Wire.WorkflowExecutionStatus;
2909
2883
  /**
2910
2884
  * Basic response for anything run with an async workflow
2911
2885
  */
@@ -2942,7 +2916,7 @@ export declare enum AgentMessageType {
2942
2916
  BATCH_PROGRESS = 13,
2943
2917
  RESTARTING = 14
2944
2918
  }
2945
- export type AgentMessageDetails = z.infer<typeof AgentMessageDetailsSchema>;
2919
+ export type AgentMessageDetails = Wire.AgentMessageDetails;
2946
2920
  /**
2947
2921
  * Details for THOUGHT messages representing tool calls (event_class: 'activity').
2948
2922
  */
@@ -2986,7 +2960,7 @@ export interface StreamingChunkDetails {
2986
2960
  * Primary type used throughout the system.
2987
2961
  * ~85% smaller than legacy AgentMessage format.
2988
2962
  */
2989
- export type CompactMessage = z.infer<typeof CompactMessageSchema>;
2963
+ export type CompactMessage = Wire.CompactMessage;
2990
2964
  /**
2991
2965
  * Legacy message format for backward compatibility.
2992
2966
  * @deprecated Use CompactMessage instead
@@ -3079,7 +3053,7 @@ export declare enum FileProcessingStatus {
3079
3053
  /** File processing failed */
3080
3054
  ERROR = "error"
3081
3055
  }
3082
- export type ConversationFile = z.infer<typeof ConversationFileSchema>;
3056
+ export type ConversationFile = Wire.ConversationFile;
3083
3057
  /**
3084
3058
  * Details for file processing SYSTEM messages.
3085
3059
  * Used when type is AgentMessageType.SYSTEM with system_type: 'file_processing'.
@@ -3146,8 +3120,8 @@ export interface ConversationFileRemovedRef {
3146
3120
  /** Client-generated unique ID */
3147
3121
  id: string;
3148
3122
  }
3149
- export type PlanTask = z.infer<typeof PlanTaskSchema>;
3150
- export type Plan = z.infer<typeof PlanSchema>;
3123
+ export type PlanTask = Wire.PlanTask;
3124
+ export type Plan = Wire.Plan;
3151
3125
  export declare const LOW_PRIORITY_TASK_QUEUE = "low_priority";
3152
3126
  /**
3153
3127
  * WebSocket message types for bidirectional communication