@camunda8/cli 3.3.0 → 3.4.0-alpha.2

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.
@@ -5,7 +5,7 @@
5
5
  * Consumers (help, completion, validation, dispatch) derive their
6
6
  * data from this registry instead of maintaining separate copies.
7
7
  */
8
- import { AuthorizationKey, ElementInstanceKey, IncidentKey, JobKey, ProcessDefinitionId, ProcessDefinitionKey, ProcessInstanceKey, TenantId, Username, UserTaskKey } from "@camunda8/orchestration-cluster-api";
8
+ import { AuthorizationKey, BusinessId, ElementInstanceKey, IncidentKey, JobKey, ProcessDefinitionId, ProcessDefinitionKey, ProcessInstanceKey, TenantId, Username, UserTaskKey } from "@camunda8/orchestration-cluster-api";
9
9
  export interface FlagDef {
10
10
  /** Value type: "string" expects an argument, "boolean" is a presence flag. */
11
11
  type: "string" | "boolean";
@@ -300,6 +300,11 @@ export declare const COMMAND_REGISTRY: {
300
300
  };
301
301
  };
302
302
  "process-instance": {
303
+ readonly businessId: {
304
+ readonly type: "string";
305
+ readonly description: "Filter by Business ID (Camunda 8.9+)";
306
+ readonly validate: typeof BusinessId.assumeExists;
307
+ };
303
308
  readonly bpmnProcessId: {
304
309
  readonly type: "string";
305
310
  readonly description: "Filter by BPMN process ID";
@@ -588,6 +593,11 @@ export declare const COMMAND_REGISTRY: {
588
593
  };
589
594
  };
590
595
  "process-instance": {
596
+ readonly businessId: {
597
+ readonly type: "string";
598
+ readonly description: "Filter by Business ID (Camunda 8.9+)";
599
+ readonly validate: typeof BusinessId.assumeExists;
600
+ };
591
601
  readonly bpmnProcessId: {
592
602
  readonly type: "string";
593
603
  readonly description: "Filter by BPMN process ID";
@@ -1011,80 +1021,112 @@ export declare const COMMAND_REGISTRY: {
1011
1021
  description: string;
1012
1022
  }[];
1013
1023
  resources: string[];
1014
- flags: {
1015
- processDefinitionId: {
1016
- type: "string";
1017
- description: string;
1018
- validate: typeof ProcessDefinitionId.assumeExists;
1019
- };
1020
- id: {
1021
- type: "string";
1022
- description: string;
1023
- };
1024
- bpmnProcessId: {
1025
- type: "string";
1026
- description: string;
1027
- };
1028
- variables: {
1029
- type: "string";
1030
- description: string;
1031
- };
1032
- awaitCompletion: {
1033
- type: "boolean";
1034
- description: string;
1035
- };
1036
- fetchVariables: {
1037
- type: "boolean";
1038
- description: string;
1039
- };
1040
- requestTimeout: {
1041
- type: "string";
1042
- description: string;
1043
- };
1044
- username: {
1045
- type: "string";
1046
- description: string;
1047
- validate: typeof Username.assumeExists;
1048
- };
1049
- name: {
1050
- type: "string";
1051
- description: string;
1052
- };
1053
- email: {
1054
- type: "string";
1055
- description: string;
1056
- };
1057
- password: {
1058
- type: "string";
1059
- description: string;
1060
- };
1061
- roleId: {
1062
- type: "string";
1063
- description: string;
1024
+ flags: {};
1025
+ resourceFlags: {
1026
+ "process-instance": {
1027
+ readonly processDefinitionId: {
1028
+ readonly type: "string";
1029
+ readonly description: "Process definition ID (BPMN process ID)";
1030
+ readonly validate: typeof ProcessDefinitionId.assumeExists;
1031
+ };
1032
+ readonly id: {
1033
+ readonly type: "string";
1034
+ readonly description: "Process definition ID (alias for --processDefinitionId)";
1035
+ };
1036
+ readonly bpmnProcessId: {
1037
+ readonly type: "string";
1038
+ readonly description: "BPMN process ID (alias for --processDefinitionId)";
1039
+ };
1040
+ readonly businessId: {
1041
+ readonly type: "string";
1042
+ readonly description: "Business ID for the process instance (Camunda 8.9+)";
1043
+ readonly validate: typeof BusinessId.assumeExists;
1044
+ };
1045
+ readonly variables: {
1046
+ readonly type: "string";
1047
+ readonly description: "JSON variables";
1048
+ };
1049
+ readonly awaitCompletion: {
1050
+ readonly type: "boolean";
1051
+ readonly description: "Wait for process to complete";
1052
+ };
1053
+ readonly fetchVariables: {
1054
+ readonly type: "boolean";
1055
+ readonly description: "Fetch result variables on completion";
1056
+ };
1057
+ readonly requestTimeout: {
1058
+ readonly type: "string";
1059
+ readonly description: "Await timeout in milliseconds";
1060
+ };
1064
1061
  };
1065
- groupId: {
1066
- type: "string";
1067
- description: string;
1062
+ user: {
1063
+ readonly username: {
1064
+ readonly type: "string";
1065
+ readonly description: "Username";
1066
+ readonly validate: typeof Username.assumeExists;
1067
+ };
1068
+ readonly name: {
1069
+ readonly type: "string";
1070
+ readonly description: "Display name";
1071
+ };
1072
+ readonly email: {
1073
+ readonly type: "string";
1074
+ readonly description: "Email address";
1075
+ };
1076
+ readonly password: {
1077
+ readonly type: "string";
1078
+ readonly description: "Password";
1079
+ };
1068
1080
  };
1069
- tenantId: {
1070
- type: "string";
1071
- description: string;
1072
- validate: typeof TenantId.assumeExists;
1081
+ role: {
1082
+ readonly roleId: {
1083
+ readonly type: "string";
1084
+ readonly description: "Role ID";
1085
+ };
1086
+ readonly name: {
1087
+ readonly type: "string";
1088
+ readonly description: "Display name";
1089
+ };
1073
1090
  };
1074
- mappingRuleId: {
1075
- type: "string";
1076
- description: string;
1091
+ group: {
1092
+ readonly groupId: {
1093
+ readonly type: "string";
1094
+ readonly description: "Group ID";
1095
+ };
1096
+ readonly name: {
1097
+ readonly type: "string";
1098
+ readonly description: "Display name";
1099
+ };
1077
1100
  };
1078
- claimName: {
1079
- type: "string";
1080
- description: string;
1101
+ tenant: {
1102
+ readonly tenantId: {
1103
+ readonly type: "string";
1104
+ readonly description: "Tenant ID";
1105
+ readonly validate: typeof TenantId.assumeExists;
1106
+ };
1107
+ readonly name: {
1108
+ readonly type: "string";
1109
+ readonly description: "Display name";
1110
+ };
1081
1111
  };
1082
- claimValue: {
1083
- type: "string";
1084
- description: string;
1112
+ "mapping-rule": {
1113
+ readonly mappingRuleId: {
1114
+ readonly type: "string";
1115
+ readonly description: "Mapping rule ID";
1116
+ };
1117
+ readonly name: {
1118
+ readonly type: "string";
1119
+ readonly description: "Display name";
1120
+ };
1121
+ readonly claimName: {
1122
+ readonly type: "string";
1123
+ readonly description: "Claim name";
1124
+ };
1125
+ readonly claimValue: {
1126
+ readonly type: "string";
1127
+ readonly description: "Claim value";
1128
+ };
1085
1129
  };
1086
- };
1087
- resourceFlags: {
1088
1130
  authorization: {
1089
1131
  ownerId: {
1090
1132
  type: "string";
@@ -1204,6 +1246,11 @@ export declare const COMMAND_REGISTRY: {
1204
1246
  type: "string";
1205
1247
  description: string;
1206
1248
  };
1249
+ businessId: {
1250
+ type: "string";
1251
+ description: string;
1252
+ validate: typeof BusinessId.assumeExists;
1253
+ };
1207
1254
  variables: {
1208
1255
  type: "string";
1209
1256
  description: string;
@@ -1493,6 +1540,11 @@ export declare const COMMAND_REGISTRY: {
1493
1540
  }[];
1494
1541
  resources: never[];
1495
1542
  flags: {
1543
+ businessId: {
1544
+ type: "string";
1545
+ description: string;
1546
+ validate: typeof BusinessId.assumeExists;
1547
+ };
1496
1548
  variables: {
1497
1549
  type: "string";
1498
1550
  description: string;
@@ -1 +1 @@
1
- {"version":3,"file":"command-registry.d.ts","sourceRoot":"","sources":["../../src/framework/command-registry.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACN,gBAAgB,EAChB,kBAAkB,EAClB,WAAW,EACX,MAAM,EACN,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,MAAM,qCAAqC,CAAC;AAI7C,MAAM,WAAW,OAAO;IACvB,8EAA8E;IAC9E,IAAI,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC3B,+DAA+D;IAC/D,WAAW,EAAE,MAAM,CAAC;IACpB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wEAAwE;IACxE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,wFAAwF;IACxF,GAAG,CAAC,EAAE,OAAO,CAAC;IACd;;;;;;OAMG;IAEH,QAAQ,CAAC,EAA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M,GAAG,OAAO,CAWtE;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CACrC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GACnD,MAAM,CACR,MAAM,EACN;IAAE,IAAI,EAAE,QAAQ,GAAG,SAAS,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAClE,CAiDA"}
@@ -5,7 +5,7 @@
5
5
  * Consumers (help, completion, validation, dispatch) derive their
6
6
  * data from this registry instead of maintaining separate copies.
7
7
  */
8
- import { AuthorizationKey, ElementInstanceKey, IncidentKey, JobKey, ProcessDefinitionId, ProcessDefinitionKey, ProcessInstanceKey, TenantId, Username, UserTaskKey, } from "@camunda8/orchestration-cluster-api";
8
+ import { AuthorizationKey, BusinessId, ElementInstanceKey, IncidentKey, JobKey, ProcessDefinitionId, ProcessDefinitionKey, ProcessInstanceKey, TenantId, Username, UserTaskKey, } from "@camunda8/orchestration-cluster-api";
9
9
  // ─── Resource Aliases ────────────────────────────────────────────────────────
10
10
  /**
11
11
  * Maps short/plural resource names to their canonical singular form.
@@ -100,6 +100,11 @@ export const SEARCH_FLAGS = {
100
100
  };
101
101
  // ─── Reusable flag sets ──────────────────────────────────────────────────────
102
102
  const PI_SEARCH_FLAGS = {
103
+ businessId: {
104
+ type: "string",
105
+ description: "Filter by Business ID (Camunda 8.9+)",
106
+ validate: BusinessId.assumeExists,
107
+ },
103
108
  bpmnProcessId: {
104
109
  type: "string",
105
110
  description: "Filter by BPMN process ID",
@@ -130,6 +135,71 @@ const PI_SEARCH_FLAGS = {
130
135
  description: "Case-insensitive filter by BPMN process ID",
131
136
  },
132
137
  };
138
+ const CREATE_PI_FLAGS = {
139
+ processDefinitionId: {
140
+ type: "string",
141
+ description: "Process definition ID (BPMN process ID)",
142
+ validate: ProcessDefinitionId.assumeExists,
143
+ },
144
+ id: {
145
+ type: "string",
146
+ description: "Process definition ID (alias for --processDefinitionId)",
147
+ },
148
+ bpmnProcessId: {
149
+ type: "string",
150
+ description: "BPMN process ID (alias for --processDefinitionId)",
151
+ },
152
+ businessId: {
153
+ type: "string",
154
+ description: "Business ID for the process instance (Camunda 8.9+)",
155
+ validate: BusinessId.assumeExists,
156
+ },
157
+ variables: { type: "string", description: "JSON variables" },
158
+ awaitCompletion: {
159
+ type: "boolean",
160
+ description: "Wait for process to complete",
161
+ },
162
+ fetchVariables: {
163
+ type: "boolean",
164
+ description: "Fetch result variables on completion",
165
+ },
166
+ requestTimeout: {
167
+ type: "string",
168
+ description: "Await timeout in milliseconds",
169
+ },
170
+ };
171
+ const CREATE_USER_FLAGS = {
172
+ username: {
173
+ type: "string",
174
+ description: "Username",
175
+ validate: Username.assumeExists,
176
+ },
177
+ name: { type: "string", description: "Display name" },
178
+ email: { type: "string", description: "Email address" },
179
+ password: { type: "string", description: "Password" },
180
+ };
181
+ const CREATE_ROLE_FLAGS = {
182
+ roleId: { type: "string", description: "Role ID" },
183
+ name: { type: "string", description: "Display name" },
184
+ };
185
+ const CREATE_GROUP_FLAGS = {
186
+ groupId: { type: "string", description: "Group ID" },
187
+ name: { type: "string", description: "Display name" },
188
+ };
189
+ const CREATE_TENANT_FLAGS = {
190
+ tenantId: {
191
+ type: "string",
192
+ description: "Tenant ID",
193
+ validate: TenantId.assumeExists,
194
+ },
195
+ name: { type: "string", description: "Display name" },
196
+ };
197
+ const CREATE_MAPPING_RULE_FLAGS = {
198
+ mappingRuleId: { type: "string", description: "Mapping rule ID" },
199
+ name: { type: "string", description: "Display name" },
200
+ claimName: { type: "string", description: "Claim name" },
201
+ claimValue: { type: "string", description: "Claim value" },
202
+ };
133
203
  const PD_SEARCH_FLAGS = {
134
204
  bpmnProcessId: {
135
205
  type: "string",
@@ -616,7 +686,7 @@ export const COMMAND_REGISTRY = {
616
686
  "tenants",
617
687
  "auth",
618
688
  "mapping-rules",
619
- "wait-state",
689
+ "ws",
620
690
  ],
621
691
  // Verb-level `flags` holds only genuinely shared flags. Per-resource
622
692
  // flags live exclusively in `resourceFlags` so unknown-flag detection
@@ -729,8 +799,8 @@ export const COMMAND_REGISTRY = {
729
799
  requiresResource: true,
730
800
  helpExamples: [
731
801
  {
732
- command: "c8ctl create pi --id=myProcess",
733
- description: "Create a process instance",
802
+ command: "c8ctl create pi --id=myProcess --businessId=order-123",
803
+ description: "Create a process instance with a Business ID",
734
804
  },
735
805
  {
736
806
  command: "c8ctl create pi --id=myProcess --awaitCompletion",
@@ -750,66 +820,16 @@ export const COMMAND_REGISTRY = {
750
820
  "auth",
751
821
  "mapping-rule",
752
822
  ],
753
- flags: {
754
- // Process instance creation
755
- processDefinitionId: {
756
- type: "string",
757
- description: "Process definition ID (BPMN process ID)",
758
- validate: ProcessDefinitionId.assumeExists,
759
- },
760
- id: {
761
- type: "string",
762
- description: "Process definition ID (alias for --processDefinitionId)",
763
- },
764
- bpmnProcessId: {
765
- type: "string",
766
- description: "BPMN process ID (alias for --processDefinitionId)",
767
- },
768
- variables: { type: "string", description: "JSON variables" },
769
- awaitCompletion: {
770
- type: "boolean",
771
- description: "Wait for process to complete",
772
- },
773
- fetchVariables: {
774
- type: "boolean",
775
- description: "Fetch result variables on completion",
776
- },
777
- requestTimeout: {
778
- type: "string",
779
- description: "Await timeout in milliseconds",
780
- },
781
- // Identity user
782
- username: {
783
- type: "string",
784
- description: "Username",
785
- validate: Username.assumeExists,
786
- },
787
- name: { type: "string", description: "Display name" },
788
- email: { type: "string", description: "Email address" },
789
- password: { type: "string", description: "Password" },
790
- // Identity role
791
- roleId: { type: "string", description: "Role ID" },
792
- // Identity group
793
- groupId: { type: "string", description: "Group ID" },
794
- // Identity tenant
795
- tenantId: {
796
- type: "string",
797
- description: "Tenant ID",
798
- validate: TenantId.assumeExists,
799
- },
800
- // Identity mapping rule
801
- mappingRuleId: {
802
- type: "string",
803
- description: "Mapping rule ID",
804
- },
805
- claimName: { type: "string", description: "Claim name" },
806
- claimValue: { type: "string", description: "Claim value" },
807
- },
808
- // Resource-scoped flags: the authorization-specific flags below are
809
- // only required when creating an authorization. Declaring them at the
810
- // verb level would force every `create <resource>` invocation to
811
- // supply them (see #308 — required-flag enforcement).
823
+ flags: {},
824
+ // Resource-scoped flags prevent options for one resource from being
825
+ // accepted or required by unrelated create handlers (#308).
812
826
  resourceFlags: {
827
+ "process-instance": CREATE_PI_FLAGS,
828
+ user: CREATE_USER_FLAGS,
829
+ role: CREATE_ROLE_FLAGS,
830
+ group: CREATE_GROUP_FLAGS,
831
+ tenant: CREATE_TENANT_FLAGS,
832
+ "mapping-rule": CREATE_MAPPING_RULE_FLAGS,
813
833
  authorization: {
814
834
  ownerId: {
815
835
  type: "string",
@@ -886,8 +906,8 @@ export const COMMAND_REGISTRY = {
886
906
  requiresResource: true,
887
907
  helpExamples: [
888
908
  {
889
- command: "c8ctl await pi --id=myProcess",
890
- description: "Create and wait for completion",
909
+ command: "c8ctl await pi --id=myProcess --businessId=claim-456",
910
+ description: "Create with a Business ID and wait for completion",
891
911
  },
892
912
  ],
893
913
  resources: ["pi"],
@@ -905,6 +925,11 @@ export const COMMAND_REGISTRY = {
905
925
  type: "string",
906
926
  description: "BPMN process ID (alias for --processDefinitionId)",
907
927
  },
928
+ businessId: {
929
+ type: "string",
930
+ description: "Business ID for the process instance (Camunda 8.9+)",
931
+ validate: BusinessId.assumeExists,
932
+ },
908
933
  variables: { type: "string", description: "JSON variables" },
909
934
  fetchVariables: {
910
935
  type: "boolean",
@@ -1199,12 +1224,17 @@ export const COMMAND_REGISTRY = {
1199
1224
  requiresResource: true,
1200
1225
  helpExamples: [
1201
1226
  {
1202
- command: "c8ctl run ./my-process.bpmn",
1203
- description: "Deploy and start process",
1227
+ command: "c8ctl run ./my-process.bpmn --businessId=order-123",
1228
+ description: "Deploy and start a process with a Business ID",
1204
1229
  },
1205
1230
  ],
1206
1231
  resources: [],
1207
1232
  flags: {
1233
+ businessId: {
1234
+ type: "string",
1235
+ description: "Business ID for the process instance (Camunda 8.9+)",
1236
+ validate: BusinessId.assumeExists,
1237
+ },
1208
1238
  variables: { type: "string", description: "JSON variables" },
1209
1239
  force: {
1210
1240
  type: "boolean",