@vertesia/common 1.6.0-dev.20261004.085740Z → 1.6.0-dev.20261009.095813Z

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.
Files changed (84) hide show
  1. package/lib/api-contract/components.generated.json +572 -403
  2. package/lib/api-contract/engine.d.ts +65 -0
  3. package/lib/api-contract/engine.d.ts.map +1 -0
  4. package/lib/api-contract/engine.js +572 -0
  5. package/lib/api-contract/engine.js.map +1 -0
  6. package/lib/api-contract/index.d.ts +22 -183
  7. package/lib/api-contract/index.d.ts.map +1 -1
  8. package/lib/api-contract/index.js +13 -551
  9. package/lib/api-contract/index.js.map +1 -1
  10. package/lib/api-contract/types.d.ts +70 -0
  11. package/lib/api-contract/types.d.ts.map +1 -0
  12. package/lib/api-contract/types.js +2 -0
  13. package/lib/api-contract/types.js.map +1 -0
  14. package/lib/api-schemas/account.d.ts +0 -5
  15. package/lib/api-schemas/account.d.ts.map +1 -1
  16. package/lib/api-schemas/account.js +0 -7
  17. package/lib/api-schemas/account.js.map +1 -1
  18. package/lib/api-schemas/audit-trail.d.ts +255 -0
  19. package/lib/api-schemas/audit-trail.d.ts.map +1 -1
  20. package/lib/api-schemas/audit-trail.js +150 -1
  21. package/lib/api-schemas/audit-trail.js.map +1 -1
  22. package/lib/api-schemas/cost-analytics.d.ts +1 -0
  23. package/lib/api-schemas/cost-analytics.d.ts.map +1 -1
  24. package/lib/api-schemas/cost-analytics.js +7 -0
  25. package/lib/api-schemas/cost-analytics.js.map +1 -1
  26. package/lib/api-schemas/group.d.ts +2 -0
  27. package/lib/api-schemas/group.d.ts.map +1 -1
  28. package/lib/api-schemas/group.js +5 -0
  29. package/lib/api-schemas/group.js.map +1 -1
  30. package/lib/api-schemas/index.d.ts +1 -0
  31. package/lib/api-schemas/index.d.ts.map +1 -1
  32. package/lib/api-schemas/index.js +1 -0
  33. package/lib/api-schemas/index.js.map +1 -1
  34. package/lib/api-schemas/registry.d.ts +270 -186
  35. package/lib/api-schemas/registry.d.ts.map +1 -1
  36. package/lib/api-schemas/registry.js +26 -29
  37. package/lib/api-schemas/registry.js.map +1 -1
  38. package/lib/api-schemas/run-budget.d.ts +0 -36
  39. package/lib/api-schemas/run-budget.d.ts.map +1 -1
  40. package/lib/api-schemas/run-budget.js +0 -33
  41. package/lib/api-schemas/run-budget.js.map +1 -1
  42. package/lib/api-schemas/secrets.d.ts +0 -71
  43. package/lib/api-schemas/secrets.d.ts.map +1 -1
  44. package/lib/api-schemas/secrets.js +0 -73
  45. package/lib/api-schemas/secrets.js.map +1 -1
  46. package/lib/audit-trail.d.ts +14 -2
  47. package/lib/audit-trail.d.ts.map +1 -1
  48. package/lib/audit-trail.js +4 -0
  49. package/lib/audit-trail.js.map +1 -1
  50. package/lib/index.d.ts +1 -1
  51. package/lib/index.d.ts.map +1 -1
  52. package/lib/index.js.map +1 -1
  53. package/lib/platform-event.d.ts +0 -20
  54. package/lib/platform-event.d.ts.map +1 -1
  55. package/lib/run-budget.d.ts +0 -4
  56. package/lib/run-budget.d.ts.map +1 -1
  57. package/lib/secrets.d.ts +0 -10
  58. package/lib/secrets.d.ts.map +1 -1
  59. package/lib/user.d.ts +0 -1
  60. package/lib/user.d.ts.map +1 -1
  61. package/lib/vertesia-common.js +1 -1
  62. package/lib/vertesia-common.js.map +1 -1
  63. package/lib/wire-types.generated.d.ts +102 -105
  64. package/lib/wire-types.generated.d.ts.map +1 -1
  65. package/package.json +6 -6
  66. package/src/api-contract/components.generated.json +572 -403
  67. package/src/api-contract/engine.ts +644 -0
  68. package/src/api-contract/index.ts +32 -663
  69. package/src/api-contract/types.ts +108 -0
  70. package/src/api-schemas/account.ts +0 -8
  71. package/src/api-schemas/audit-trail.ts +169 -1
  72. package/src/api-schemas/cost-analytics.ts +8 -0
  73. package/src/api-schemas/group.ts +5 -0
  74. package/src/api-schemas/index.ts +1 -0
  75. package/src/api-schemas/registry.ts +41 -139
  76. package/src/api-schemas/run-budget.ts +0 -37
  77. package/src/api-schemas/secrets.ts +0 -84
  78. package/src/audit-trail.ts +17 -0
  79. package/src/index.ts +0 -4
  80. package/src/platform-event.ts +0 -25
  81. package/src/run-budget.ts +0 -4
  82. package/src/secrets.ts +0 -11
  83. package/src/user.ts +0 -2
  84. package/src/wire-types.generated.ts +103 -103
@@ -1,11 +1,6 @@
1
1
  import type { z } from 'zod';
2
- import type { CreateEventSubscriptionPayload, EventDeliveryTarget, EventDeliveryTargetInput, EventSubscription, EventSubscriptionMutationResponse, ProcessEventDeliveryTarget, UpdateEventSubscriptionPayload } from '../platform-event.js';
3
- import type { AgentRunInternals, AgentRunResponse, BindRunWorkflowPayload, ListAgentRunsResponse, ProgrammaticRunResponse, RecordRunPayload, SupervisedRunResponse, UpdateAgentRunStatusPayload } from '../store/agent-run.js';
4
- import type * as DSLWorkflowTypes from '../store/dsl-workflow.js';
5
- import type { DSLChildWorkflowStep, DSLWorkflowDefinition, DSLWorkflowDefinitionResponse, DSLWorkflowSpec, DSLWorkflowSpecWithSteps, DSLWorkflowStep } from '../store/dsl-workflow.js';
6
- import type { BranchNodeBranchDefinition, CreateProcessDefinitionPayload, NodeDefinition, ProcessDefinition, ProcessDefinitionBody, UpdateProcessDefinitionPayload } from '../store/process.js';
7
- import type { ViewNavigationNode } from '../views.js';
8
- import type { ApiComponentTypes } from '../wire-types.generated.js';
2
+ import type { ApiComponentType } from '../api-contract/types.js';
3
+ export type { ApiComponentType } from '../api-contract/types.js';
9
4
  import { type JsonObject } from './adapter.js';
10
5
  import { AsyncCompletionModeSchema, AsyncCompletionOptionsSchema, AsyncConversationExecutionPayloadSchema, AsyncExecutionPayloadSchema, AsyncExecutionResultSchema, AsyncInteractionExecutionPayloadSchema, ComputeRunFacetPayloadSchema, ComputeRunFacetsResponseSchema, ExecuteInteractionByEndpointHeadersSchema, ExecuteInteractionByEndpointQuerySchema, ExecutionResponseSchema, ExecutionRunDocRefSchema, ExecutionRunInteractionSchema, ExecutionRunRefArraySchema, ExecutionRunRefSchema, ExecutionRunSchema, ExecutionRunStatusSchema, ExecutionRunWorkflowSchema, FindRunResultArraySchema, FindRunResultSchema, InteractionExecutionErrorSchema, InteractionExecutionPayloadSchema, InteractionExecutionResultSchema, LegacyExecutionRunResultSchema, LegacyPopulatedExecutionRunResultSchema, NamedInteractionExecutionPayloadSchema, PopulatedExecutionRunResultSchema, RateLimitRequestPayloadSchema, RateLimitRequestResponseSchema, ResultStorageOptionsSchema, RunClonePayloadSchema, RunCreatePayloadSchema, RunListQuerySchema, RunSearchMetaResponseSchema, RunSearchPayloadSchema, RunSearchQuerySchema, RunSourceSchema, RunSourceTypesSchema, SortOptionSchema, SortOrderSchema, ToolResultsPayloadSchema, UpdateExecutionRunPayloadSchema, UserMessagePayloadSchema } from './interaction.js';
11
6
  import { ColumnLayoutSchema, ContentObjectTypeCatalogEntryArraySchema, ContentObjectTypeCatalogEntrySchema, ContentObjectTypeCatalogQuerySchema, ContentObjectTypeItemArraySchema, ContentObjectTypeItemSchema, ContentObjectTypeListQuerySchema, ContentObjectTypeSchema, ContentObjectTypeStatusSchema, ContentTypeEditingPolicySchema, CreateContentObjectTypePayloadSchema, InCodeTypeDefinitionSchema, InteractionExecutionConfigurationSchema, UpdateContentObjectTypePayloadSchema } from './store.js';
@@ -36,9 +31,6 @@ import { ColumnLayoutSchema, ContentObjectTypeCatalogEntryArraySchema, ContentOb
36
31
  * group approaches the proven-safe size.
37
32
  */
38
33
  declare const IAM_AND_ACCOUNT_SCHEMAS: {
39
- readonly AccountApiVersionPolicy: z.ZodObject<{
40
- default_api_version: z.ZodOptional<z.ZodEnum<typeof import("../versions.js").ApiVersions>>;
41
- }, z.core.$strict>;
42
34
  readonly Account: z.ZodObject<{
43
35
  id: z.ZodString;
44
36
  name: z.ZodString;
@@ -230,6 +222,7 @@ declare const IAM_AND_ACCOUNT_SCHEMAS: {
230
222
  clearance: z.ZodOptional<z.ZodNumber>;
231
223
  compartments: z.ZodOptional<z.ZodArray<z.ZodString>>;
232
224
  allowed_projects: z.ZodOptional<z.ZodArray<z.ZodString>>;
225
+ member_count: z.ZodOptional<z.ZodNumber>;
233
226
  }, z.core.$strip>;
234
227
  readonly UserGroupArray: z.ZodArray<z.ZodObject<{
235
228
  id: z.ZodString;
@@ -245,6 +238,7 @@ declare const IAM_AND_ACCOUNT_SCHEMAS: {
245
238
  clearance: z.ZodOptional<z.ZodNumber>;
246
239
  compartments: z.ZodOptional<z.ZodArray<z.ZodString>>;
247
240
  allowed_projects: z.ZodOptional<z.ZodArray<z.ZodString>>;
241
+ member_count: z.ZodOptional<z.ZodNumber>;
248
242
  }, z.core.$strip>>;
249
243
  readonly UserGroupRef: z.ZodObject<{
250
244
  id: z.ZodString;
@@ -54651,6 +54645,7 @@ declare const COST_ANALYTICS_SCHEMAS: {
54651
54645
  workflow_run_id: z.ZodOptional<z.ZodString>;
54652
54646
  run_id: z.ZodOptional<z.ZodString>;
54653
54647
  agent_run_id: z.ZodOptional<z.ZodString>;
54648
+ agent_only: z.ZodOptional<z.ZodBoolean>;
54654
54649
  interaction_id: z.ZodOptional<z.ZodString>;
54655
54650
  principal_id: z.ZodOptional<z.ZodString>;
54656
54651
  account_id: z.ZodOptional<z.ZodString>;
@@ -90877,7 +90872,7 @@ declare const WORKFLOW_TASK_SCHEMAS: {
90877
90872
  }, z.core.$strict>], "type">;
90878
90873
  };
90879
90874
  declare const VIEW_EXECUTION_SCHEMAS: {
90880
- readonly ViewNavigationNode: z.ZodType<ViewNavigationNode, unknown, z.core.$ZodTypeInternals<ViewNavigationNode, unknown>>;
90875
+ readonly ViewNavigationNode: z.ZodType<import("../views.js").ViewNavigationNode, unknown, z.core.$ZodTypeInternals<import("../views.js").ViewNavigationNode, unknown>>;
90881
90876
  readonly ViewHitAnnotation: z.ZodObject<{
90882
90877
  why_match: z.ZodOptional<z.ZodString>;
90883
90878
  answer: z.ZodOptional<z.ZodString>;
@@ -90909,9 +90904,9 @@ declare const VIEW_EXECUTION_SCHEMAS: {
90909
90904
  readonly ViewNavigationResult: z.ZodObject<{
90910
90905
  id: z.ZodString;
90911
90906
  selected: z.ZodArray<z.ZodString>;
90912
- nodes: z.ZodArray<z.ZodType<ViewNavigationNode, unknown, z.core.$ZodTypeInternals<ViewNavigationNode, unknown>>>;
90907
+ nodes: z.ZodArray<z.ZodType<import("../views.js").ViewNavigationNode, unknown, z.core.$ZodTypeInternals<import("../views.js").ViewNavigationNode, unknown>>>;
90913
90908
  query: z.ZodOptional<z.ZodString>;
90914
- breadcrumbs: z.ZodOptional<z.ZodArray<z.ZodType<ViewNavigationNode, unknown, z.core.$ZodTypeInternals<ViewNavigationNode, unknown>>>>;
90909
+ breadcrumbs: z.ZodOptional<z.ZodArray<z.ZodType<import("../views.js").ViewNavigationNode, unknown, z.core.$ZodTypeInternals<import("../views.js").ViewNavigationNode, unknown>>>>;
90915
90910
  truncated: z.ZodOptional<z.ZodBoolean>;
90916
90911
  }, z.core.$strict>;
90917
90912
  readonly ViewExecutionQueryPlan: z.ZodObject<{
@@ -91004,9 +90999,9 @@ declare const VIEW_EXECUTION_SCHEMAS: {
91004
90999
  readonly ViewNavigationResultMap: z.ZodObject<{}, z.core.$catchall<z.ZodObject<{
91005
91000
  id: z.ZodString;
91006
91001
  selected: z.ZodArray<z.ZodString>;
91007
- nodes: z.ZodArray<z.ZodType<ViewNavigationNode, unknown, z.core.$ZodTypeInternals<ViewNavigationNode, unknown>>>;
91002
+ nodes: z.ZodArray<z.ZodType<import("../views.js").ViewNavigationNode, unknown, z.core.$ZodTypeInternals<import("../views.js").ViewNavigationNode, unknown>>>;
91008
91003
  query: z.ZodOptional<z.ZodString>;
91009
- breadcrumbs: z.ZodOptional<z.ZodArray<z.ZodType<ViewNavigationNode, unknown, z.core.$ZodTypeInternals<ViewNavigationNode, unknown>>>>;
91004
+ breadcrumbs: z.ZodOptional<z.ZodArray<z.ZodType<import("../views.js").ViewNavigationNode, unknown, z.core.$ZodTypeInternals<import("../views.js").ViewNavigationNode, unknown>>>>;
91010
91005
  truncated: z.ZodOptional<z.ZodBoolean>;
91011
91006
  }, z.core.$strict>>>;
91012
91007
  readonly ViewExecutionSearchResult: z.ZodObject<{
@@ -92978,9 +92973,9 @@ declare const VIEW_EXECUTION_SCHEMAS: {
92978
92973
  navigation: z.ZodObject<{}, z.core.$catchall<z.ZodObject<{
92979
92974
  id: z.ZodString;
92980
92975
  selected: z.ZodArray<z.ZodString>;
92981
- nodes: z.ZodArray<z.ZodType<ViewNavigationNode, unknown, z.core.$ZodTypeInternals<ViewNavigationNode, unknown>>>;
92976
+ nodes: z.ZodArray<z.ZodType<import("../views.js").ViewNavigationNode, unknown, z.core.$ZodTypeInternals<import("../views.js").ViewNavigationNode, unknown>>>;
92982
92977
  query: z.ZodOptional<z.ZodString>;
92983
- breadcrumbs: z.ZodOptional<z.ZodArray<z.ZodType<ViewNavigationNode, unknown, z.core.$ZodTypeInternals<ViewNavigationNode, unknown>>>>;
92978
+ breadcrumbs: z.ZodOptional<z.ZodArray<z.ZodType<import("../views.js").ViewNavigationNode, unknown, z.core.$ZodTypeInternals<import("../views.js").ViewNavigationNode, unknown>>>>;
92984
92979
  truncated: z.ZodOptional<z.ZodBoolean>;
92985
92980
  }, z.core.$strict>>>;
92986
92981
  took: z.ZodNumber;
@@ -93935,6 +93930,238 @@ declare const REMOTE_MCP_SCHEMAS: {
93935
93930
  }, z.core.$strict>;
93936
93931
  };
93937
93932
  declare const AUDIT_TRAIL_SCHEMAS: {
93933
+ readonly AuditAdoptionActiveDays: z.ZodObject<{
93934
+ days: z.ZodNumber;
93935
+ users: z.ZodNumber;
93936
+ }, z.core.$strict>;
93937
+ readonly AuditAdoptionBucket: z.ZodObject<{
93938
+ from: z.ZodString;
93939
+ to: z.ZodString;
93940
+ partial: z.ZodBoolean;
93941
+ active_users: z.ZodNumber;
93942
+ }, z.core.$strict>;
93943
+ readonly AuditAdoptionFilter: z.ZodObject<{
93944
+ actions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
93945
+ attach: "attach";
93946
+ bulk_change_type: "bulk_change_type";
93947
+ bulk_create: "bulk_create";
93948
+ bulk_delete: "bulk_delete";
93949
+ bulk_update: "bulk_update";
93950
+ create: "create";
93951
+ credentials_fill: "credentials_fill";
93952
+ credentials_totp_generation: "credentials_totp_generation";
93953
+ delete: "delete";
93954
+ detach: "detach";
93955
+ document_processed: "document_processed";
93956
+ embedding: "embedding";
93957
+ image_generation: "image_generation";
93958
+ inference: "inference";
93959
+ publish: "publish";
93960
+ read: "read";
93961
+ search: "search";
93962
+ unpublish: "unpublish";
93963
+ update: "update";
93964
+ }>, z.ZodString]>>>;
93965
+ resourceTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
93966
+ eventCategories: z.ZodOptional<z.ZodArray<z.ZodEnum<{
93967
+ billing: "billing";
93968
+ content: "content";
93969
+ external: "external";
93970
+ security: "security";
93971
+ system: "system";
93972
+ workflow: "workflow";
93973
+ }>>>;
93974
+ }, z.core.$strict>;
93975
+ readonly AuditAdoptionHistory: z.ZodObject<{
93976
+ earliest_observed_at: z.ZodNullable<z.ZodString>;
93977
+ coverage_from: z.ZodNullable<z.ZodString>;
93978
+ completeness: z.ZodEnum<{
93979
+ insufficient: "insufficient";
93980
+ unknown: "unknown";
93981
+ verified: "verified";
93982
+ }>;
93983
+ retention_unavailable_reason: z.ZodNullable<z.ZodEnum<{
93984
+ insufficient_history: "insufficient_history";
93985
+ no_previous_users: "no_previous_users";
93986
+ }>>;
93987
+ }, z.core.$strict>;
93988
+ readonly AuditAdoptionPeriod: z.ZodObject<{
93989
+ from: z.ZodString;
93990
+ to: z.ZodString;
93991
+ }, z.core.$strict>;
93992
+ readonly AuditAdoptionProject: z.ZodObject<{
93993
+ project_id: z.ZodString;
93994
+ project_name: z.ZodNullable<z.ZodString>;
93995
+ active_users: z.ZodNumber;
93996
+ active_user_days: z.ZodNumber;
93997
+ }, z.core.$strict>;
93998
+ readonly AuditAdoptionQuery: z.ZodObject<{
93999
+ projectId: z.ZodOptional<z.ZodString>;
94000
+ from: z.ZodOptional<z.ZodString>;
94001
+ to: z.ZodOptional<z.ZodString>;
94002
+ filter: z.ZodOptional<z.ZodObject<{
94003
+ actions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
94004
+ attach: "attach";
94005
+ bulk_change_type: "bulk_change_type";
94006
+ bulk_create: "bulk_create";
94007
+ bulk_delete: "bulk_delete";
94008
+ bulk_update: "bulk_update";
94009
+ create: "create";
94010
+ credentials_fill: "credentials_fill";
94011
+ credentials_totp_generation: "credentials_totp_generation";
94012
+ delete: "delete";
94013
+ detach: "detach";
94014
+ document_processed: "document_processed";
94015
+ embedding: "embedding";
94016
+ image_generation: "image_generation";
94017
+ inference: "inference";
94018
+ publish: "publish";
94019
+ read: "read";
94020
+ search: "search";
94021
+ unpublish: "unpublish";
94022
+ update: "update";
94023
+ }>, z.ZodString]>>>;
94024
+ resourceTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
94025
+ eventCategories: z.ZodOptional<z.ZodArray<z.ZodEnum<{
94026
+ billing: "billing";
94027
+ content: "content";
94028
+ external: "external";
94029
+ security: "security";
94030
+ system: "system";
94031
+ workflow: "workflow";
94032
+ }>>>;
94033
+ }, z.core.$strict>>;
94034
+ }, z.core.$strict>;
94035
+ readonly AuditAdoptionResponse: z.ZodObject<{
94036
+ period: z.ZodObject<{
94037
+ from: z.ZodString;
94038
+ to: z.ZodString;
94039
+ }, z.core.$strict>;
94040
+ previous_period: z.ZodObject<{
94041
+ from: z.ZodString;
94042
+ to: z.ZodString;
94043
+ }, z.core.$strict>;
94044
+ resolution: z.ZodEnum<{
94045
+ day: "day";
94046
+ week: "week";
94047
+ }>;
94048
+ active_users: z.ZodNumber;
94049
+ previous_active_users: z.ZodNumber;
94050
+ retained_users: z.ZodNumber;
94051
+ observed_retention: z.ZodNullable<z.ZodNumber>;
94052
+ returning_user_share: z.ZodNullable<z.ZodNumber>;
94053
+ repeat_user_share: z.ZodNullable<z.ZodNumber>;
94054
+ median_active_days: z.ZodNullable<z.ZodNumber>;
94055
+ active_projects: z.ZodNullable<z.ZodNumber>;
94056
+ timeline: z.ZodArray<z.ZodObject<{
94057
+ from: z.ZodString;
94058
+ to: z.ZodString;
94059
+ partial: z.ZodBoolean;
94060
+ active_users: z.ZodNumber;
94061
+ }, z.core.$strict>>;
94062
+ active_day_distribution: z.ZodArray<z.ZodObject<{
94063
+ days: z.ZodNumber;
94064
+ users: z.ZodNumber;
94065
+ }, z.core.$strict>>;
94066
+ top_projects: z.ZodArray<z.ZodObject<{
94067
+ project_id: z.ZodString;
94068
+ project_name: z.ZodNullable<z.ZodString>;
94069
+ active_users: z.ZodNumber;
94070
+ active_user_days: z.ZodNumber;
94071
+ }, z.core.$strict>>;
94072
+ history: z.ZodObject<{
94073
+ earliest_observed_at: z.ZodNullable<z.ZodString>;
94074
+ coverage_from: z.ZodNullable<z.ZodString>;
94075
+ completeness: z.ZodEnum<{
94076
+ insufficient: "insufficient";
94077
+ unknown: "unknown";
94078
+ verified: "verified";
94079
+ }>;
94080
+ retention_unavailable_reason: z.ZodNullable<z.ZodEnum<{
94081
+ insufficient_history: "insufficient_history";
94082
+ no_previous_users: "no_previous_users";
94083
+ }>>;
94084
+ }, z.core.$strict>;
94085
+ }, z.core.$strict>;
94086
+ readonly AuditUsageQuery: z.ZodObject<{
94087
+ projectId: z.ZodOptional<z.ZodString>;
94088
+ from: z.ZodOptional<z.ZodString>;
94089
+ to: z.ZodOptional<z.ZodString>;
94090
+ resolution: z.ZodOptional<z.ZodEnum<{
94091
+ day: "day";
94092
+ month: "month";
94093
+ week: "week";
94094
+ }>>;
94095
+ }, z.core.$strict>;
94096
+ readonly AuditUsageCounts: z.ZodObject<{
94097
+ active_users: z.ZodNumber;
94098
+ agent_runs: z.ZodNumber;
94099
+ user_agent_runs: z.ZodNumber;
94100
+ automated_agent_runs: z.ZodNumber;
94101
+ agent_users: z.ZodNumber;
94102
+ direct_calls: z.ZodNumber;
94103
+ direct_call_users: z.ZodNumber;
94104
+ content_objects: z.ZodNumber;
94105
+ user_content_objects: z.ZodNumber;
94106
+ other_content_objects: z.ZodNumber;
94107
+ }, z.core.$strict>;
94108
+ readonly AuditUsageBucket: z.ZodObject<{
94109
+ from: z.ZodString;
94110
+ to: z.ZodString;
94111
+ partial: z.ZodBoolean;
94112
+ counts: z.ZodObject<{
94113
+ active_users: z.ZodNumber;
94114
+ agent_runs: z.ZodNumber;
94115
+ user_agent_runs: z.ZodNumber;
94116
+ automated_agent_runs: z.ZodNumber;
94117
+ agent_users: z.ZodNumber;
94118
+ direct_calls: z.ZodNumber;
94119
+ direct_call_users: z.ZodNumber;
94120
+ content_objects: z.ZodNumber;
94121
+ user_content_objects: z.ZodNumber;
94122
+ other_content_objects: z.ZodNumber;
94123
+ }, z.core.$strict>;
94124
+ }, z.core.$strict>;
94125
+ readonly AuditUsageResponse: z.ZodObject<{
94126
+ period: z.ZodObject<{
94127
+ from: z.ZodString;
94128
+ to: z.ZodString;
94129
+ }, z.core.$strict>;
94130
+ resolution: z.ZodEnum<{
94131
+ day: "day";
94132
+ month: "month";
94133
+ week: "week";
94134
+ }>;
94135
+ totals: z.ZodObject<{
94136
+ active_users: z.ZodNumber;
94137
+ agent_runs: z.ZodNumber;
94138
+ user_agent_runs: z.ZodNumber;
94139
+ automated_agent_runs: z.ZodNumber;
94140
+ agent_users: z.ZodNumber;
94141
+ direct_calls: z.ZodNumber;
94142
+ direct_call_users: z.ZodNumber;
94143
+ content_objects: z.ZodNumber;
94144
+ user_content_objects: z.ZodNumber;
94145
+ other_content_objects: z.ZodNumber;
94146
+ }, z.core.$strict>;
94147
+ timeline: z.ZodArray<z.ZodObject<{
94148
+ from: z.ZodString;
94149
+ to: z.ZodString;
94150
+ partial: z.ZodBoolean;
94151
+ counts: z.ZodObject<{
94152
+ active_users: z.ZodNumber;
94153
+ agent_runs: z.ZodNumber;
94154
+ user_agent_runs: z.ZodNumber;
94155
+ automated_agent_runs: z.ZodNumber;
94156
+ agent_users: z.ZodNumber;
94157
+ direct_calls: z.ZodNumber;
94158
+ direct_call_users: z.ZodNumber;
94159
+ content_objects: z.ZodNumber;
94160
+ user_content_objects: z.ZodNumber;
94161
+ other_content_objects: z.ZodNumber;
94162
+ }, z.core.$strict>;
94163
+ }, z.core.$strict>>;
94164
+ }, z.core.$strict>;
93938
94165
  readonly AuditMeter: z.ZodObject<{
93939
94166
  category: z.ZodString;
93940
94167
  type: z.ZodString;
@@ -93956,6 +94183,8 @@ declare const AUDIT_TRAIL_SCHEMAS: {
93956
94183
  image_generation: "image_generation";
93957
94184
  inference: "inference";
93958
94185
  publish: "publish";
94186
+ read: "read";
94187
+ search: "search";
93959
94188
  unpublish: "unpublish";
93960
94189
  update: "update";
93961
94190
  }>;
@@ -93976,6 +94205,7 @@ declare const AUDIT_TRAIL_SCHEMAS: {
93976
94205
  project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93977
94206
  principal_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93978
94207
  actor_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94208
+ user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93979
94209
  'details.pipeline': z.ZodOptional<z.ZodNullable<z.ZodString>>;
93980
94210
  'details.verdict': z.ZodOptional<z.ZodNullable<z.ZodString>>;
93981
94211
  'details.workflow_type': z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -93987,6 +94217,7 @@ declare const AUDIT_TRAIL_SCHEMAS: {
93987
94217
  principal_id: "principal_id";
93988
94218
  request_id: "request_id";
93989
94219
  resource_id: "resource_id";
94220
+ user_id: "user_id";
93990
94221
  }>;
93991
94222
  readonly AuditAggregationOperation: z.ZodEnum<{
93992
94223
  average_meter: "average_meter";
@@ -94014,6 +94245,7 @@ declare const AUDIT_TRAIL_SCHEMAS: {
94014
94245
  provider: "provider";
94015
94246
  resource_type: "resource_type";
94016
94247
  time: "time";
94248
+ user_id: "user_id";
94017
94249
  }>;
94018
94250
  readonly AuditAggregationDetailField: z.ZodEnum<{
94019
94251
  pipeline: "pipeline";
@@ -94037,6 +94269,8 @@ declare const AUDIT_TRAIL_SCHEMAS: {
94037
94269
  image_generation: "image_generation";
94038
94270
  inference: "inference";
94039
94271
  publish: "publish";
94272
+ read: "read";
94273
+ search: "search";
94040
94274
  unpublish: "unpublish";
94041
94275
  update: "update";
94042
94276
  }>, z.ZodString]>;
@@ -94050,6 +94284,7 @@ declare const AUDIT_TRAIL_SCHEMAS: {
94050
94284
  project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94051
94285
  principal_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94052
94286
  actor_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94287
+ user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94053
94288
  'details.pipeline': z.ZodOptional<z.ZodNullable<z.ZodString>>;
94054
94289
  'details.verdict': z.ZodOptional<z.ZodNullable<z.ZodString>>;
94055
94290
  'details.workflow_type': z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -94071,6 +94306,7 @@ declare const AUDIT_TRAIL_SCHEMAS: {
94071
94306
  principal_id: "principal_id";
94072
94307
  request_id: "request_id";
94073
94308
  resource_id: "resource_id";
94309
+ user_id: "user_id";
94074
94310
  }>>;
94075
94311
  meterCategory: z.ZodOptional<z.ZodString>;
94076
94312
  meterType: z.ZodOptional<z.ZodString>;
@@ -94090,6 +94326,7 @@ declare const AUDIT_TRAIL_SCHEMAS: {
94090
94326
  provider: "provider";
94091
94327
  resource_type: "resource_type";
94092
94328
  time: "time";
94329
+ user_id: "user_id";
94093
94330
  }>;
94094
94331
  resolution: z.ZodOptional<z.ZodEnum<{
94095
94332
  day: "day";
@@ -94142,6 +94379,8 @@ declare const AUDIT_TRAIL_SCHEMAS: {
94142
94379
  image_generation: "image_generation";
94143
94380
  inference: "inference";
94144
94381
  publish: "publish";
94382
+ read: "read";
94383
+ search: "search";
94145
94384
  unpublish: "unpublish";
94146
94385
  update: "update";
94147
94386
  }>, z.ZodString]>;
@@ -94179,6 +94418,7 @@ declare const AUDIT_TRAIL_SCHEMAS: {
94179
94418
  project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94180
94419
  principal_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94181
94420
  actor_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94421
+ user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94182
94422
  'details.pipeline': z.ZodOptional<z.ZodNullable<z.ZodString>>;
94183
94423
  'details.verdict': z.ZodOptional<z.ZodNullable<z.ZodString>>;
94184
94424
  'details.workflow_type': z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -94207,6 +94447,8 @@ declare const AUDIT_TRAIL_SCHEMAS: {
94207
94447
  image_generation: "image_generation";
94208
94448
  inference: "inference";
94209
94449
  publish: "publish";
94450
+ read: "read";
94451
+ search: "search";
94210
94452
  unpublish: "unpublish";
94211
94453
  update: "update";
94212
94454
  }>, z.ZodString]>>>;
@@ -94268,6 +94510,8 @@ declare const AUDIT_TRAIL_SCHEMAS: {
94268
94510
  image_generation: "image_generation";
94269
94511
  inference: "inference";
94270
94512
  publish: "publish";
94513
+ read: "read";
94514
+ search: "search";
94271
94515
  unpublish: "unpublish";
94272
94516
  update: "update";
94273
94517
  }>, z.ZodString]>;
@@ -94319,6 +94563,8 @@ declare const AUDIT_TRAIL_SCHEMAS: {
94319
94563
  image_generation: "image_generation";
94320
94564
  inference: "inference";
94321
94565
  publish: "publish";
94566
+ read: "read";
94567
+ search: "search";
94322
94568
  unpublish: "unpublish";
94323
94569
  update: "update";
94324
94570
  }>, z.ZodString]>>>;
@@ -94359,6 +94605,7 @@ declare const AUDIT_TRAIL_SCHEMAS: {
94359
94605
  provider: "provider";
94360
94606
  resource_type: "resource_type";
94361
94607
  time: "time";
94608
+ user_id: "user_id";
94362
94609
  }>;
94363
94610
  resolution: z.ZodOptional<z.ZodEnum<{
94364
94611
  day: "day";
@@ -94380,6 +94627,7 @@ declare const AUDIT_TRAIL_SCHEMAS: {
94380
94627
  principal_id: "principal_id";
94381
94628
  request_id: "request_id";
94382
94629
  resource_id: "resource_id";
94630
+ user_id: "user_id";
94383
94631
  }>>;
94384
94632
  meterCategory: z.ZodOptional<z.ZodString>;
94385
94633
  meterType: z.ZodOptional<z.ZodString>;
@@ -94403,6 +94651,8 @@ declare const AUDIT_TRAIL_SCHEMAS: {
94403
94651
  image_generation: "image_generation";
94404
94652
  inference: "inference";
94405
94653
  publish: "publish";
94654
+ read: "read";
94655
+ search: "search";
94406
94656
  unpublish: "unpublish";
94407
94657
  update: "update";
94408
94658
  }>, z.ZodString]>>>;
@@ -100086,77 +100336,6 @@ declare const SECRET_SCHEMAS: {
100086
100336
  project_id: z.ZodOptional<z.ZodString>;
100087
100337
  kind: z.ZodOptional<z.ZodLiteral<"website_credential">>;
100088
100338
  }, z.core.$strip>;
100089
- readonly EventWebhookSigningSecretRequest: z.ZodObject<{
100090
- account_id: z.ZodOptional<z.ZodString>;
100091
- project_id: z.ZodString;
100092
- }, z.core.$strict>;
100093
- readonly EventWebhookSigningSecretResponse: z.ZodObject<{
100094
- subscription_id: z.ZodString;
100095
- secret: z.ZodString;
100096
- secret_label: z.ZodString;
100097
- }, z.core.$strict>;
100098
- readonly SignEventWebhookRequest: z.ZodObject<{
100099
- account_id: z.ZodOptional<z.ZodString>;
100100
- project_id: z.ZodString;
100101
- delivery_id: z.ZodString;
100102
- body: z.ZodString;
100103
- event_id: z.ZodString;
100104
- event_category: z.ZodEnum<{
100105
- billing: "billing";
100106
- content: "content";
100107
- external: "external";
100108
- security: "security";
100109
- system: "system";
100110
- workflow: "workflow";
100111
- }>;
100112
- action: z.ZodString;
100113
- timestamp: z.ZodOptional<z.ZodNumber>;
100114
- }, z.core.$strict>;
100115
- readonly SignEventWebhookResponse: z.ZodObject<{
100116
- headers: z.ZodRecord<z.ZodString, z.ZodString>;
100117
- timestamp: z.ZodNumber;
100118
- signature: z.ZodString;
100119
- }, z.core.$strict>;
100120
- readonly EventIngestSigningSecretRequest: z.ZodObject<{
100121
- account_id: z.ZodOptional<z.ZodString>;
100122
- project_id: z.ZodString;
100123
- }, z.core.$strict>;
100124
- readonly EventIngestSigningSecretResponse: z.ZodObject<{
100125
- channel_id: z.ZodString;
100126
- secret: z.ZodString;
100127
- secret_label: z.ZodString;
100128
- }, z.core.$strict>;
100129
- readonly VerifyEventIngestSignatureRequest: z.ZodObject<{
100130
- account_id: z.ZodOptional<z.ZodString>;
100131
- project_id: z.ZodString;
100132
- body: z.ZodString;
100133
- signature_header: z.ZodString;
100134
- algorithm: z.ZodOptional<z.ZodEnum<{
100135
- sha1: "sha1";
100136
- sha256: "sha256";
100137
- }>>;
100138
- encoding: z.ZodOptional<z.ZodEnum<{
100139
- base64: "base64";
100140
- hex: "hex";
100141
- }>>;
100142
- prefix: z.ZodOptional<z.ZodString>;
100143
- }, z.core.$strict>;
100144
- readonly VerifyEventIngestSignatureResponse: z.ZodObject<{
100145
- valid: z.ZodBoolean;
100146
- }, z.core.$strict>;
100147
- readonly GithubInstallationTokenRequest: z.ZodObject<{
100148
- account_id: z.ZodOptional<z.ZodString>;
100149
- project_id: z.ZodString;
100150
- installation_id: z.ZodString;
100151
- repo: z.ZodString;
100152
- }, z.core.$strict>;
100153
- readonly GithubInstallationTokenResponse: z.ZodObject<{
100154
- token: z.ZodString;
100155
- expires_at: z.ZodOptional<z.ZodString>;
100156
- }, z.core.$strict>;
100157
- readonly InternalSecretDeleteResponse: z.ZodObject<{
100158
- deleted: z.ZodLiteral<true>;
100159
- }, z.core.$strict>;
100160
100339
  };
100161
100340
  declare const INTEGRATION_SCHEMAS: {
100162
100341
  readonly SupportedIntegrations_ask_user_webhook: z.ZodLiteral<import("../integrations.js").SupportedIntegrations.ask_user_webhook>;
@@ -106004,7 +106183,7 @@ declare const APP_MANIFEST_SCHEMAS: {
106004
106183
  }, z.core.$strict>>;
106005
106184
  title: z.ZodOptional<z.ZodString>;
106006
106185
  }, z.core.$strict>>>;
106007
- processes: z.ZodOptional<z.ZodArray<z.ZodType<import("../store/process.js").InCodeProcessDefinition, unknown, z.core.$ZodTypeInternals<import("../store/process.js").InCodeProcessDefinition, unknown>>>>;
106186
+ processes: z.ZodOptional<z.ZodArray<z.ZodType<import("../index.js").InCodeProcessDefinition, unknown, z.core.$ZodTypeInternals<import("../index.js").InCodeProcessDefinition, unknown>>>>;
106008
106187
  views: z.ZodOptional<z.ZodArray<z.ZodObject<{
106009
106188
  id: z.ZodString;
106010
106189
  name: z.ZodString;
@@ -113336,7 +113515,7 @@ declare const APP_INSTALLATION_SCHEMAS: {
113336
113515
  title: z.ZodOptional<z.ZodString>;
113337
113516
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
113338
113517
  }, z.core.$strip>>;
113339
- readonly InCodeProcessDefinition: z.ZodType<import("../store/process.js").InCodeProcessDefinition, unknown, z.core.$ZodTypeInternals<import("../store/process.js").InCodeProcessDefinition, unknown>>;
113518
+ readonly InCodeProcessDefinition: z.ZodType<import("../index.js").InCodeProcessDefinition, unknown, z.core.$ZodTypeInternals<import("../index.js").InCodeProcessDefinition, unknown>>;
113340
113519
  readonly AppInstallation: z.ZodObject<{
113341
113520
  id: z.ZodString;
113342
113521
  project: z.ZodString;
@@ -113955,7 +114134,7 @@ declare const APP_INSTALLATION_SCHEMAS: {
113955
114134
  }, z.core.$strict>>;
113956
114135
  }, z.core.$strict>;
113957
114136
  }, z.core.$strict>>;
113958
- readonly InCodeProcessDefinitionArray: z.ZodArray<z.ZodType<import("../store/process.js").InCodeProcessDefinition, unknown, z.core.$ZodTypeInternals<import("../store/process.js").InCodeProcessDefinition, unknown>>>;
114137
+ readonly InCodeProcessDefinitionArray: z.ZodArray<z.ZodType<import("../index.js").InCodeProcessDefinition, unknown, z.core.$ZodTypeInternals<import("../index.js").InCodeProcessDefinition, unknown>>>;
113959
114138
  readonly AppInstallationWithManifest: z.ZodObject<{
113960
114139
  id: z.ZodString;
113961
114140
  project: z.ZodString;
@@ -115124,41 +115303,6 @@ declare const DELEGATION_SCHEMAS: {
115124
115303
  }, z.core.$strict>>;
115125
115304
  };
115126
115305
  declare const RUN_BUDGET_SCHEMAS: {
115127
- RunBudgetOwner: z.ZodObject<{
115128
- workflow_id: z.ZodString;
115129
- first_run_id: z.ZodString;
115130
- }, z.core.$strict>;
115131
- RunBudgetUsage: z.ZodObject<{
115132
- input: z.ZodNumber;
115133
- cached_input: z.ZodNumber;
115134
- output: z.ZodNumber;
115135
- }, z.core.$strict>;
115136
- ReadRunBudgetUsagePayload: z.ZodObject<{
115137
- account_id: z.ZodString;
115138
- project_id: z.ZodString;
115139
- agent_run_id: z.ZodString;
115140
- owner: z.ZodObject<{
115141
- workflow_id: z.ZodString;
115142
- first_run_id: z.ZodString;
115143
- }, z.core.$strict>;
115144
- require_estimates: z.ZodOptional<z.ZodBoolean>;
115145
- }, z.core.$strict>;
115146
- RunBudgetTotals: z.ZodObject<{
115147
- measured: z.ZodObject<{
115148
- input: z.ZodNumber;
115149
- cached_input: z.ZodNumber;
115150
- output: z.ZodNumber;
115151
- }, z.core.$strict>;
115152
- unpriced: z.ZodObject<{
115153
- input: z.ZodNumber;
115154
- cached_input: z.ZodNumber;
115155
- output: z.ZodNumber;
115156
- }, z.core.$strict>;
115157
- reported_nano_usd: z.ZodNumber;
115158
- estimated_nano_usd: z.ZodNumber;
115159
- unmeasured_calls: z.ZodNumber;
115160
- missing_usage_calls: z.ZodNumber;
115161
- }, z.core.$strict>;
115162
115306
  RunBudgetCapability: z.ZodObject<{
115163
115307
  supported: z.ZodBoolean;
115164
115308
  source: z.ZodEnum<{
@@ -115194,66 +115338,6 @@ export type ApiComponentName = keyof ApiSchemaMap;
115194
115338
  * two and fails on drift. Everything else should read `ApiSchemaComponents`.
115195
115339
  */
115196
115340
  export declare function buildApiSchemaComponents(): Readonly<Record<string, JsonObject>>;
115197
- /**
115198
- * Explicit TypeScript recursion boundary for schemas whose runtime graph is lazy.
115199
- *
115200
- * Zod cannot infer a finite named type through a mutually-recursive graph. The schemas remain the
115201
- * runtime and OpenAPI authority; these names preserve the recursive TypeScript declarations until
115202
- * TypeScript can infer recursive aliases without collapsing them to `unknown`.
115203
- */
115204
- interface ZenoRecursiveComponentTypes {
115205
- ViewNavigationNode: ViewNavigationNode;
115206
- AgentRunResponse: AgentRunResponse;
115207
- AgentRunInternals: AgentRunInternals;
115208
- BindRunWorkflowPayload: BindRunWorkflowPayload;
115209
- BranchNodeBranchDefinition: BranchNodeBranchDefinition;
115210
- CreateEventSubscriptionPayload: CreateEventSubscriptionPayload;
115211
- CreateProcessDefinitionPayload: CreateProcessDefinitionPayload;
115212
- DSLChildWorkflowStep: DSLChildWorkflowStep;
115213
- DSLWorkflowDefinition: DSLWorkflowDefinition;
115214
- DSLWorkflowDefinitionResponse: DSLWorkflowDefinitionResponse;
115215
- DSLWorkflowSpec: DSLWorkflowSpec;
115216
- DSLWorkflowSpecWithActivities: DSLWorkflowTypes.DSLWorkflowSpecWithActivities;
115217
- DSLWorkflowSpecWithSteps: DSLWorkflowSpecWithSteps;
115218
- DSLWorkflowStep: DSLWorkflowStep;
115219
- EventDeliveryTarget: EventDeliveryTarget;
115220
- EventDeliveryTargetInput: EventDeliveryTargetInput;
115221
- EventSubscription: EventSubscription;
115222
- EventSubscriptionArray: EventSubscription[];
115223
- EventSubscriptionMutationResponse: EventSubscriptionMutationResponse;
115224
- ListAgentRunsResponse: ListAgentRunsResponse;
115225
- NodeDefinition: NodeDefinition;
115226
- NodeDefinitionMap: Record<string, NodeDefinition>;
115227
- ProcessDefinition: ProcessDefinition;
115228
- ProcessDefinitionArray: ProcessDefinition[];
115229
- ProcessDefinitionBody: ProcessDefinitionBody;
115230
- ProcessEventDeliveryTarget: ProcessEventDeliveryTarget;
115231
- ProgrammaticRunResponse: ProgrammaticRunResponse;
115232
- RecordRunPayload: RecordRunPayload;
115233
- SupervisedRunResponse: SupervisedRunResponse;
115234
- UpdateAgentRunStatusPayload: UpdateAgentRunStatusPayload;
115235
- UpdateEventSubscriptionPayload: UpdateEventSubscriptionPayload;
115236
- UpdateProcessDefinitionPayload: UpdateProcessDefinitionPayload;
115237
- WorkflowDefinitionPayload: DSLWorkflowTypes.WorkflowDefinitionPayload;
115238
- WorkflowDefinitionPayloadWithActivities: DSLWorkflowTypes.WorkflowDefinitionPayloadWithActivities;
115239
- WorkflowDefinitionPayloadWithSteps: DSLWorkflowTypes.WorkflowDefinitionPayloadWithSteps;
115240
- }
115241
- /**
115242
- * The wire type a component publishes.
115243
- *
115244
- * `ApiComponentType<'Account'>` is the plain type `gen:schemas` writes for `AccountSchema` into
115245
- * `ApiComponentTypes`, which `wire-types.generated.test.ts` proves identical to its `z.infer`. Indexing
115246
- * that map rather than `z.infer<ApiSchemaMap[N]>` keeps Zod's inference out of every program that names
115247
- * a component. A component the generator has not seen yet resolves to `never`, which
115248
- * `registry-groups.test.ts` rejects.
115249
- *
115250
- * It is wrapped in `NoInfer` because `N` always comes from a component-name argument and can never be
115251
- * recovered from the wire type. Without it, a call whose result has a contextual type — a destructuring
115252
- * `const { file } = validatedQuery(ctx, 'FileMetadataQuery')`, an `await`, a typed `return` — makes the
115253
- * checker infer `N` from that context while `N` is still unresolved, which evaluates `z.infer` across
115254
- * every component in the registry: about 500k types, 1 GB and 2 s of `tsc` in each consuming program.
115255
- */
115256
- export type ApiComponentType<N extends ApiComponentName> = NoInfer<N extends keyof ZenoRecursiveComponentTypes ? ZenoRecursiveComponentTypes[N] : N extends keyof ApiComponentTypes ? ApiComponentTypes[N] : never>;
115257
115341
  /**
115258
115342
  * Names a published component from inside a handler signature:
115259
115343
  * `Promise<ApiSchemaOf<'Account'>>`.