@camunda8/orchestration-cluster-api 10.0.0-alpha.5 → 10.0.0-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,6 +15,21 @@ var zAgentInstanceDefinition = z.object({
15
15
  }).register(z.globalRegistry, {
16
16
  description: "The static definition of an agent instance, set once at creation."
17
17
  });
18
+ var zAgentTool = z.object({
19
+ name: z.string().register(z.globalRegistry, {
20
+ description: "The tool name as visible to the LLM."
21
+ }),
22
+ description: z.union([
23
+ z.string(),
24
+ z.null()
25
+ ]),
26
+ elementId: z.union([
27
+ z.string(),
28
+ z.null()
29
+ ])
30
+ }).register(z.globalRegistry, {
31
+ description: "A tool available to the agent."
32
+ });
18
33
  var zAgentInstanceMetrics = z.object({
19
34
  inputTokens: z.coerce.number().int().register(z.globalRegistry, {
20
35
  description: "Total input tokens consumed across all model calls."
@@ -54,6 +69,31 @@ var zAgentInstanceStatusEnum = z.enum([
54
69
  ]).register(z.globalRegistry, {
55
70
  description: "The current status of an agent instance."
56
71
  });
72
+ var zAgentInstanceMetricsDelta = z.object({
73
+ inputTokens: z.optional(z.coerce.number().int().gte(0).register(z.globalRegistry, {
74
+ description: "Increment to apply to the total input token counter."
75
+ })),
76
+ outputTokens: z.optional(z.coerce.number().int().gte(0).register(z.globalRegistry, {
77
+ description: "Increment to apply to the total output token counter."
78
+ })),
79
+ modelCalls: z.optional(z.coerce.number().int().gte(0).register(z.globalRegistry, {
80
+ description: "Increment to apply to the total model call counter."
81
+ })),
82
+ toolCalls: z.optional(z.coerce.number().int().gte(0).register(z.globalRegistry, {
83
+ description: "Increment to apply to the total tool call counter."
84
+ }))
85
+ }).register(z.globalRegistry, {
86
+ description: "Metric increments to apply to the agent instance aggregate counters. The engine\naccumulates these deltas into running totals on each UPDATED event. All fields\nare optional; omit a field to leave the corresponding counter unchanged.\n"
87
+ });
88
+ var zAgentInstanceUpdateRequest = z.object({
89
+ status: z.optional(zAgentInstanceStatusEnum),
90
+ metrics: z.optional(zAgentInstanceMetricsDelta),
91
+ tools: z.optional(z.array(zAgentTool).register(z.globalRegistry, {
92
+ description: "The complete list of tools available to the agent, replacing any previously\nstored tools. When provided, the engine replaces the existing tool list with\nthis value.\n"
93
+ }))
94
+ }).register(z.globalRegistry, {
95
+ description: "Request to update the mutable state of an agent instance. At least one of\nstatus, metrics, or tools must be provided.\n"
96
+ });
57
97
  var zAuditLogEntityKey = z.string().register(z.globalRegistry, {
58
98
  description: "System-generated entity key for an audit log entry."
59
99
  });
@@ -1644,6 +1684,13 @@ var zIncidentProcessInstanceStatisticsByDefinitionResult = z.object({
1644
1684
  })
1645
1685
  });
1646
1686
  var zElementInstanceKey = zLongKey;
1687
+ var zAgentInstanceCreationRequest = z.object({
1688
+ elementInstanceKey: zElementInstanceKey,
1689
+ definition: zAgentInstanceDefinition,
1690
+ limits: z.optional(zAgentInstanceLimits)
1691
+ }).register(z.globalRegistry, {
1692
+ description: "Request to create a new agent instance."
1693
+ });
1647
1694
  var zUserTaskKey = zLongKey;
1648
1695
  var zFormKey = zLongKey;
1649
1696
  var zDeploymentFormResult = z.object({
@@ -2353,6 +2400,9 @@ var zAgentInstanceResult = z.object({
2353
2400
  definition: zAgentInstanceDefinition,
2354
2401
  metrics: zAgentInstanceMetrics,
2355
2402
  limits: zAgentInstanceLimits,
2403
+ tools: z.array(zAgentTool).register(z.globalRegistry, {
2404
+ description: "The tools available to the agent."
2405
+ }),
2356
2406
  elementId: zElementId,
2357
2407
  processInstanceKey: zProcessInstanceKey,
2358
2408
  processDefinitionKey: zProcessDefinitionKey,
@@ -2366,7 +2416,15 @@ var zAgentInstanceResult = z.object({
2366
2416
  completionDate: z.union([
2367
2417
  z.iso.datetime(),
2368
2418
  z.null()
2369
- ])
2419
+ ]),
2420
+ elementInstanceKeys: z.array(zElementInstanceKey).register(z.globalRegistry, {
2421
+ description: "The keys of all element instances associated with this agent instance."
2422
+ })
2423
+ });
2424
+ var zAgentInstanceCreationResult = z.object({
2425
+ agentInstanceKey: zAgentInstanceKey
2426
+ }).register(z.globalRegistry, {
2427
+ description: "Response returned after successfully creating an agent instance."
2370
2428
  });
2371
2429
  var zAuditLogKey = zLongKey;
2372
2430
  var zAuditLogResult = z.object({
@@ -2848,8 +2906,8 @@ var zMessageSubscriptionResult = z.object({
2848
2906
  z.null()
2849
2907
  ]),
2850
2908
  messageSubscriptionType: zMessageSubscriptionTypeEnum,
2851
- extensionProperties: z.record(z.string(), z.string()).register(z.globalRegistry, {
2852
- description: "The `zeebe:properties` extension properties extracted from the BPMN element associated\nwith this subscription. Empty object when no properties are defined.\n"
2909
+ toolProperties: z.record(z.string(), z.string()).register(z.globalRegistry, {
2910
+ description: "The subset of `zeebe:properties` extension properties whose keys start with the\n`io.camunda.tool:` prefix, extracted from the BPMN element associated with this\nsubscription. Empty object when no matching properties are defined.\n"
2853
2911
  }),
2854
2912
  processDefinitionName: z.union([
2855
2913
  z.string(),
@@ -4356,8 +4414,83 @@ var zJobMetricsConfigurationResponse = z.object({
4356
4414
  }).register(z.globalRegistry, {
4357
4415
  description: "Configuration for job metrics collection and export."
4358
4416
  });
4417
+ var zDeploymentConfigurationResponse = z.object({
4418
+ isEnterprise: z.boolean().register(z.globalRegistry, {
4419
+ description: "Whether this is an enterprise deployment."
4420
+ }),
4421
+ isMultiTenancyEnabled: z.boolean().register(z.globalRegistry, {
4422
+ description: "Whether multi-tenancy is enabled."
4423
+ }),
4424
+ contextPath: z.string().register(z.globalRegistry, {
4425
+ description: "The servlet context path for the deployment."
4426
+ }),
4427
+ maxRequestSize: z.coerce.number().int().register(z.globalRegistry, {
4428
+ description: "The maximum HTTP request size in bytes."
4429
+ })
4430
+ }).register(z.globalRegistry, {
4431
+ description: "Configuration for deployment characteristics."
4432
+ });
4433
+ var zAuthenticationConfigurationResponse = z.object({
4434
+ canLogout: z.boolean().register(z.globalRegistry, {
4435
+ description: "Whether users can log out (false for SaaS deployments)."
4436
+ }),
4437
+ isLoginDelegated: z.boolean().register(z.globalRegistry, {
4438
+ description: "Whether login is delegated to an external identity provider."
4439
+ })
4440
+ }).register(z.globalRegistry, {
4441
+ description: "Configuration for authentication and session management."
4442
+ });
4443
+ var zWebappComponent = z.enum([
4444
+ "operate",
4445
+ "tasklist",
4446
+ "admin"
4447
+ ]).register(z.globalRegistry, {
4448
+ description: "A Camunda webapp component name."
4449
+ });
4450
+ var zComponentsConfigurationResponse = z.object({
4451
+ active: z.array(zWebappComponent).register(z.globalRegistry, {
4452
+ description: "List of webapp components whose UI is enabled in this deployment."
4453
+ })
4454
+ }).register(z.globalRegistry, {
4455
+ description: "Configuration for active Camunda components in the deployment."
4456
+ });
4457
+ var zCloudStage = z.enum([
4458
+ "dev",
4459
+ "int",
4460
+ "prod"
4461
+ ]).register(z.globalRegistry, {
4462
+ description: "The cloud deployment stage."
4463
+ });
4464
+ var zCloudConfigurationResponse = z.object({
4465
+ organizationId: z.union([
4466
+ z.string(),
4467
+ z.null()
4468
+ ]),
4469
+ clusterId: z.union([
4470
+ z.string(),
4471
+ z.null()
4472
+ ]),
4473
+ stage: z.union([
4474
+ zCloudStage,
4475
+ z.null()
4476
+ ]),
4477
+ mixpanelToken: z.union([
4478
+ z.string(),
4479
+ z.null()
4480
+ ]),
4481
+ mixpanelAPIHost: z.union([
4482
+ z.string(),
4483
+ z.null()
4484
+ ])
4485
+ }).register(z.globalRegistry, {
4486
+ description: "Configuration for SaaS/cloud-specific settings."
4487
+ });
4359
4488
  var zSystemConfigurationResponse = z.object({
4360
- jobMetrics: zJobMetricsConfigurationResponse
4489
+ jobMetrics: zJobMetricsConfigurationResponse,
4490
+ components: zComponentsConfigurationResponse,
4491
+ deployment: zDeploymentConfigurationResponse,
4492
+ authentication: zAuthenticationConfigurationResponse,
4493
+ cloud: zCloudConfigurationResponse
4361
4494
  }).register(z.globalRegistry, {
4362
4495
  description: "Envelope for all system configuration sections. Each property\nrepresents a feature area.\n"
4363
4496
  });
@@ -5344,7 +5477,10 @@ var zAgentInstanceFilter = z.object({
5344
5477
  tenantId: z.optional(zStringFilterProperty),
5345
5478
  creationDate: z.optional(zDateTimeFilterProperty),
5346
5479
  lastUpdatedDate: z.optional(zDateTimeFilterProperty),
5347
- completionDate: z.optional(zDateTimeFilterProperty)
5480
+ completionDate: z.optional(zDateTimeFilterProperty),
5481
+ elementInstanceKeys: z.optional(z.array(zElementInstanceKeyFilterProperty).register(z.globalRegistry, {
5482
+ description: "The keys of element instances associated with this agent instance.\nIf multiple keys are provided, the filter matches agent instances associated with all of the provided keys at the same time."
5483
+ }))
5348
5484
  }).register(z.globalRegistry, {
5349
5485
  description: "Agent instance search filter."
5350
5486
  });
@@ -5663,6 +5799,12 @@ var zUserTaskSearchQuery = zSearchQueryRequest.and(z.object({
5663
5799
  }).register(z.globalRegistry, {
5664
5800
  description: "User task search query request."
5665
5801
  }));
5802
+ var zCreateAgentInstanceData = z.object({
5803
+ body: zAgentInstanceCreationRequest,
5804
+ path: z.optional(z.never()),
5805
+ query: z.optional(z.never())
5806
+ });
5807
+ var zCreateAgentInstanceResponse = zAgentInstanceCreationResult;
5666
5808
  var zGetAgentInstanceData = z.object({
5667
5809
  body: z.optional(z.never()),
5668
5810
  path: z.object({
@@ -5671,6 +5813,16 @@ var zGetAgentInstanceData = z.object({
5671
5813
  query: z.optional(z.never())
5672
5814
  });
5673
5815
  var zGetAgentInstanceResponse = zAgentInstanceResult;
5816
+ var zUpdateAgentInstanceData = z.object({
5817
+ body: zAgentInstanceUpdateRequest,
5818
+ path: z.object({
5819
+ agentInstanceKey: zAgentInstanceKey
5820
+ }),
5821
+ query: z.optional(z.never())
5822
+ });
5823
+ var zUpdateAgentInstanceResponse = z.void().register(z.globalRegistry, {
5824
+ description: "The agent instance was updated successfully."
5825
+ });
5674
5826
  var zSearchAgentInstancesData = z.object({
5675
5827
  body: z.optional(zAgentInstanceSearchQuery),
5676
5828
  path: z.optional(z.never()),
@@ -6117,6 +6269,14 @@ var zEvaluateExpressionData = z.object({
6117
6269
  query: z.optional(z.never())
6118
6270
  });
6119
6271
  var zEvaluateExpressionResponse = zExpressionEvaluationResult;
6272
+ var zGetFormByKeyData = z.object({
6273
+ body: z.optional(z.never()),
6274
+ path: z.object({
6275
+ formKey: zFormKey
6276
+ }),
6277
+ query: z.optional(z.never())
6278
+ });
6279
+ var zGetFormByKeyResponse = zFormResult;
6120
6280
  var zCreateGlobalTaskListenerData = z.object({
6121
6281
  body: zCreateGlobalTaskListenerRequest,
6122
6282
  path: z.optional(z.never()),
@@ -6697,7 +6857,17 @@ var zGetResourceContentData = z.object({
6697
6857
  }),
6698
6858
  query: z.optional(z.never())
6699
6859
  });
6700
- var zGetResourceContentResponse = z.string().register(z.globalRegistry, {
6860
+ var zGetResourceContentResponse = z.record(z.string(), z.unknown()).register(z.globalRegistry, {
6861
+ description: "The resource content is successfully returned."
6862
+ });
6863
+ var zGetResourceContentBinaryData = z.object({
6864
+ body: z.optional(z.never()),
6865
+ path: z.object({
6866
+ resourceKey: zResourceKey
6867
+ }),
6868
+ query: z.optional(z.never())
6869
+ });
6870
+ var zGetResourceContentBinaryResponse = z.string().register(z.globalRegistry, {
6701
6871
  description: "The resource content is successfully returned."
6702
6872
  });
6703
6873
  var zDeleteResourceData = z.object({
@@ -7319,6 +7489,8 @@ export {
7319
7489
  zAdvancedStringFilter,
7320
7490
  zAdvancedUserTaskStateFilter,
7321
7491
  zAdvancedVariableKeyFilter,
7492
+ zAgentInstanceCreationRequest,
7493
+ zAgentInstanceCreationResult,
7322
7494
  zAgentInstanceDefinition,
7323
7495
  zAgentInstanceFilter,
7324
7496
  zAgentInstanceKey,
@@ -7326,6 +7498,7 @@ export {
7326
7498
  zAgentInstanceKeyFilterProperty,
7327
7499
  zAgentInstanceLimits,
7328
7500
  zAgentInstanceMetrics,
7501
+ zAgentInstanceMetricsDelta,
7329
7502
  zAgentInstanceResult,
7330
7503
  zAgentInstanceSearchQuery,
7331
7504
  zAgentInstanceSearchQueryResult,
@@ -7333,6 +7506,8 @@ export {
7333
7506
  zAgentInstanceStatusEnum,
7334
7507
  zAgentInstanceStatusExactMatch,
7335
7508
  zAgentInstanceStatusFilterProperty,
7509
+ zAgentInstanceUpdateRequest,
7510
+ zAgentTool,
7336
7511
  zAncestorScopeInstruction,
7337
7512
  zAssignClientToGroupData,
7338
7513
  zAssignClientToGroupResponse,
@@ -7380,6 +7555,7 @@ export {
7380
7555
  zAuditLogSearchQueryRequest,
7381
7556
  zAuditLogSearchQueryResult,
7382
7557
  zAuditLogSearchQuerySortRequest,
7558
+ zAuthenticationConfigurationResponse,
7383
7559
  zAuthorizationCreateResult,
7384
7560
  zAuthorizationFilter,
7385
7561
  zAuthorizationIdBasedRequest,
@@ -7432,6 +7608,8 @@ export {
7432
7608
  zChangeset,
7433
7609
  zClientId,
7434
7610
  zClockPinRequest,
7611
+ zCloudConfigurationResponse,
7612
+ zCloudStage,
7435
7613
  zClusterVariableName,
7436
7614
  zClusterVariableResult,
7437
7615
  zClusterVariableResultBase,
@@ -7447,6 +7625,7 @@ export {
7447
7625
  zCompleteJobResponse,
7448
7626
  zCompleteUserTaskData,
7449
7627
  zCompleteUserTaskResponse,
7628
+ zComponentsConfigurationResponse,
7450
7629
  zConditionalEvaluationInstruction,
7451
7630
  zConditionalEvaluationKey,
7452
7631
  zCorrelateMessageData,
@@ -7458,6 +7637,8 @@ export {
7458
7637
  zCorrelatedMessageSubscriptionSearchQuerySortRequest,
7459
7638
  zCreateAdminUserData,
7460
7639
  zCreateAdminUserResponse,
7640
+ zCreateAgentInstanceData,
7641
+ zCreateAgentInstanceResponse,
7461
7642
  zCreateAuthorizationData,
7462
7643
  zCreateAuthorizationResponse,
7463
7644
  zCreateClusterVariableRequest,
@@ -7566,6 +7747,7 @@ export {
7566
7747
  zDeleteTenantResponse,
7567
7748
  zDeleteUserData,
7568
7749
  zDeleteUserResponse,
7750
+ zDeploymentConfigurationResponse,
7569
7751
  zDeploymentDecisionRequirementsResult,
7570
7752
  zDeploymentDecisionResult,
7571
7753
  zDeploymentFormResult,
@@ -7647,6 +7829,8 @@ export {
7647
7829
  zGetDocumentResponse,
7648
7830
  zGetElementInstanceData,
7649
7831
  zGetElementInstanceResponse,
7832
+ zGetFormByKeyData,
7833
+ zGetFormByKeyResponse,
7650
7834
  zGetGlobalClusterVariableData,
7651
7835
  zGetGlobalClusterVariableResponse,
7652
7836
  zGetGlobalJobStatisticsData,
@@ -7693,6 +7877,8 @@ export {
7693
7877
  zGetProcessInstanceStatisticsByErrorResponse,
7694
7878
  zGetProcessInstanceStatisticsData,
7695
7879
  zGetProcessInstanceStatisticsResponse,
7880
+ zGetResourceContentBinaryData,
7881
+ zGetResourceContentBinaryResponse,
7696
7882
  zGetResourceContentData,
7697
7883
  zGetResourceContentResponse,
7698
7884
  zGetResourceData,
@@ -8154,6 +8340,8 @@ export {
8154
8340
  zUnassignUserFromTenantResponse,
8155
8341
  zUnassignUserTaskData,
8156
8342
  zUnassignUserTaskResponse,
8343
+ zUpdateAgentInstanceData,
8344
+ zUpdateAgentInstanceResponse,
8157
8345
  zUpdateAuthorizationData,
8158
8346
  zUpdateAuthorizationResponse,
8159
8347
  zUpdateClusterVariableRequest,
@@ -8220,6 +8408,7 @@ export {
8220
8408
  zVariableSearchQueryResult,
8221
8409
  zVariableSearchQuerySortRequest,
8222
8410
  zVariableSearchResult,
8223
- zVariableValueFilterProperty
8411
+ zVariableValueFilterProperty,
8412
+ zWebappComponent
8224
8413
  };
8225
- //# sourceMappingURL=zod.gen-UJLBQNEH.js.map
8414
+ //# sourceMappingURL=zod.gen-SZE2T4QF.js.map