@camunda8/orchestration-cluster-api 1.0.0

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.
package/dist/index.js ADDED
@@ -0,0 +1,730 @@
1
+ import {
2
+ CamundaValidationError,
3
+ EventualConsistencyTimeoutError,
4
+ JobActionReceipt,
5
+ createCamundaClient,
6
+ createCamundaFpClient,
7
+ isLeft,
8
+ isRight
9
+ } from "./chunk-W4C2PQ2F.js";
10
+ import "./chunk-5JT7PDVS.js";
11
+
12
+ // src/loose.ts
13
+ function createCamundaClientLoose(...args) {
14
+ const strict = createCamundaClient(...args);
15
+ return strict;
16
+ }
17
+
18
+ // src/resultClient.ts
19
+ var isOk = (r) => r.ok;
20
+ var isErr = (r) => !r.ok;
21
+ function isPromise(v) {
22
+ return v && typeof v.then === "function";
23
+ }
24
+ function createCamundaResultClient(options) {
25
+ const base = createCamundaClient(options);
26
+ const handler = {
27
+ get(_target, prop, _recv) {
28
+ if (prop === "inner") return base;
29
+ const value = base[prop];
30
+ if (typeof value !== "function") return value;
31
+ return (...args) => {
32
+ try {
33
+ const out = value.apply(base, args);
34
+ if (isPromise(out)) {
35
+ return out.then((v) => ({ ok: true, value: v })).catch((e) => ({ ok: false, error: e }));
36
+ }
37
+ return Promise.resolve({ ok: true, value: out });
38
+ } catch (e) {
39
+ return Promise.resolve({ ok: false, error: e });
40
+ }
41
+ };
42
+ }
43
+ };
44
+ return new Proxy({}, handler);
45
+ }
46
+
47
+ // src/gen/types.gen.ts
48
+ function assertConstraint(value, label, c) {
49
+ if (c.pattern && !new RegExp(c.pattern).test(value)) throw new Error(`\x1B[31mInvalid pattern for ${label}: '${value}'.\x1B[0m Needs to match: ${JSON.stringify(c)}
50
+ `);
51
+ if (typeof c.minLength === "number" && value.length < c.minLength) throw new Error(`Value too short for ${label}`);
52
+ if (typeof c.maxLength === "number" && value.length > c.maxLength) throw new Error(`Value too long for ${label}`);
53
+ }
54
+ var AuthorizationKey;
55
+ ((AuthorizationKey2) => {
56
+ function assumeExists(value) {
57
+ assertConstraint(value, "AuthorizationKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
58
+ return value;
59
+ }
60
+ AuthorizationKey2.assumeExists = assumeExists;
61
+ function getValue(key) {
62
+ return key;
63
+ }
64
+ AuthorizationKey2.getValue = getValue;
65
+ function isValid(value) {
66
+ try {
67
+ assertConstraint(value, "AuthorizationKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
68
+ return true;
69
+ } catch {
70
+ return false;
71
+ }
72
+ }
73
+ AuthorizationKey2.isValid = isValid;
74
+ })(AuthorizationKey || (AuthorizationKey = {}));
75
+ var BatchOperationKey;
76
+ ((BatchOperationKey2) => {
77
+ function assumeExists(value) {
78
+ return value;
79
+ }
80
+ BatchOperationKey2.assumeExists = assumeExists;
81
+ function getValue(key) {
82
+ return key;
83
+ }
84
+ BatchOperationKey2.getValue = getValue;
85
+ function isValid(value) {
86
+ return true;
87
+ }
88
+ BatchOperationKey2.isValid = isValid;
89
+ })(BatchOperationKey || (BatchOperationKey = {}));
90
+ var DecisionDefinitionId;
91
+ ((DecisionDefinitionId2) => {
92
+ function assumeExists(value) {
93
+ assertConstraint(value, "DecisionDefinitionId", { pattern: "^[A-Za-z0-9_@.+-]+$", minLength: 1, maxLength: 256 });
94
+ return value;
95
+ }
96
+ DecisionDefinitionId2.assumeExists = assumeExists;
97
+ function getValue(key) {
98
+ return key;
99
+ }
100
+ DecisionDefinitionId2.getValue = getValue;
101
+ function isValid(value) {
102
+ try {
103
+ assertConstraint(value, "DecisionDefinitionId", { pattern: "^[A-Za-z0-9_@.+-]+$", minLength: 1, maxLength: 256 });
104
+ return true;
105
+ } catch {
106
+ return false;
107
+ }
108
+ }
109
+ DecisionDefinitionId2.isValid = isValid;
110
+ })(DecisionDefinitionId || (DecisionDefinitionId = {}));
111
+ var DecisionDefinitionKey;
112
+ ((DecisionDefinitionKey2) => {
113
+ function assumeExists(value) {
114
+ assertConstraint(value, "DecisionDefinitionKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
115
+ return value;
116
+ }
117
+ DecisionDefinitionKey2.assumeExists = assumeExists;
118
+ function getValue(key) {
119
+ return key;
120
+ }
121
+ DecisionDefinitionKey2.getValue = getValue;
122
+ function isValid(value) {
123
+ try {
124
+ assertConstraint(value, "DecisionDefinitionKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
125
+ return true;
126
+ } catch {
127
+ return false;
128
+ }
129
+ }
130
+ DecisionDefinitionKey2.isValid = isValid;
131
+ })(DecisionDefinitionKey || (DecisionDefinitionKey = {}));
132
+ var DecisionEvaluationInstanceKey;
133
+ ((DecisionEvaluationInstanceKey2) => {
134
+ function assumeExists(value) {
135
+ assertConstraint(value, "DecisionEvaluationInstanceKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
136
+ return value;
137
+ }
138
+ DecisionEvaluationInstanceKey2.assumeExists = assumeExists;
139
+ function getValue(key) {
140
+ return key;
141
+ }
142
+ DecisionEvaluationInstanceKey2.getValue = getValue;
143
+ function isValid(value) {
144
+ try {
145
+ assertConstraint(value, "DecisionEvaluationInstanceKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
146
+ return true;
147
+ } catch {
148
+ return false;
149
+ }
150
+ }
151
+ DecisionEvaluationInstanceKey2.isValid = isValid;
152
+ })(DecisionEvaluationInstanceKey || (DecisionEvaluationInstanceKey = {}));
153
+ var DecisionEvaluationKey;
154
+ ((DecisionEvaluationKey2) => {
155
+ function assumeExists(value) {
156
+ assertConstraint(value, "DecisionEvaluationKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
157
+ return value;
158
+ }
159
+ DecisionEvaluationKey2.assumeExists = assumeExists;
160
+ function getValue(key) {
161
+ return key;
162
+ }
163
+ DecisionEvaluationKey2.getValue = getValue;
164
+ function isValid(value) {
165
+ try {
166
+ assertConstraint(value, "DecisionEvaluationKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
167
+ return true;
168
+ } catch {
169
+ return false;
170
+ }
171
+ }
172
+ DecisionEvaluationKey2.isValid = isValid;
173
+ })(DecisionEvaluationKey || (DecisionEvaluationKey = {}));
174
+ var DecisionInstanceKey;
175
+ ((DecisionInstanceKey2) => {
176
+ function assumeExists(value) {
177
+ assertConstraint(value, "DecisionInstanceKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
178
+ return value;
179
+ }
180
+ DecisionInstanceKey2.assumeExists = assumeExists;
181
+ function getValue(key) {
182
+ return key;
183
+ }
184
+ DecisionInstanceKey2.getValue = getValue;
185
+ function isValid(value) {
186
+ try {
187
+ assertConstraint(value, "DecisionInstanceKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
188
+ return true;
189
+ } catch {
190
+ return false;
191
+ }
192
+ }
193
+ DecisionInstanceKey2.isValid = isValid;
194
+ })(DecisionInstanceKey || (DecisionInstanceKey = {}));
195
+ var DecisionRequirementsKey;
196
+ ((DecisionRequirementsKey2) => {
197
+ function assumeExists(value) {
198
+ assertConstraint(value, "DecisionRequirementsKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
199
+ return value;
200
+ }
201
+ DecisionRequirementsKey2.assumeExists = assumeExists;
202
+ function getValue(key) {
203
+ return key;
204
+ }
205
+ DecisionRequirementsKey2.getValue = getValue;
206
+ function isValid(value) {
207
+ try {
208
+ assertConstraint(value, "DecisionRequirementsKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
209
+ return true;
210
+ } catch {
211
+ return false;
212
+ }
213
+ }
214
+ DecisionRequirementsKey2.isValid = isValid;
215
+ })(DecisionRequirementsKey || (DecisionRequirementsKey = {}));
216
+ var DeploymentKey;
217
+ ((DeploymentKey2) => {
218
+ function assumeExists(value) {
219
+ assertConstraint(value, "DeploymentKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
220
+ return value;
221
+ }
222
+ DeploymentKey2.assumeExists = assumeExists;
223
+ function getValue(key) {
224
+ return key;
225
+ }
226
+ DeploymentKey2.getValue = getValue;
227
+ function isValid(value) {
228
+ try {
229
+ assertConstraint(value, "DeploymentKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
230
+ return true;
231
+ } catch {
232
+ return false;
233
+ }
234
+ }
235
+ DeploymentKey2.isValid = isValid;
236
+ })(DeploymentKey || (DeploymentKey = {}));
237
+ var DocumentId;
238
+ ((DocumentId2) => {
239
+ function assumeExists(value) {
240
+ return value;
241
+ }
242
+ DocumentId2.assumeExists = assumeExists;
243
+ function getValue(key) {
244
+ return key;
245
+ }
246
+ DocumentId2.getValue = getValue;
247
+ function isValid(value) {
248
+ return true;
249
+ }
250
+ DocumentId2.isValid = isValid;
251
+ })(DocumentId || (DocumentId = {}));
252
+ var ElementId;
253
+ ((ElementId2) => {
254
+ function assumeExists(value) {
255
+ return value;
256
+ }
257
+ ElementId2.assumeExists = assumeExists;
258
+ function getValue(key) {
259
+ return key;
260
+ }
261
+ ElementId2.getValue = getValue;
262
+ function isValid(value) {
263
+ return true;
264
+ }
265
+ ElementId2.isValid = isValid;
266
+ })(ElementId || (ElementId = {}));
267
+ var ElementInstanceKey;
268
+ ((ElementInstanceKey2) => {
269
+ function assumeExists(value) {
270
+ assertConstraint(value, "ElementInstanceKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
271
+ return value;
272
+ }
273
+ ElementInstanceKey2.assumeExists = assumeExists;
274
+ function getValue(key) {
275
+ return key;
276
+ }
277
+ ElementInstanceKey2.getValue = getValue;
278
+ function isValid(value) {
279
+ try {
280
+ assertConstraint(value, "ElementInstanceKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
281
+ return true;
282
+ } catch {
283
+ return false;
284
+ }
285
+ }
286
+ ElementInstanceKey2.isValid = isValid;
287
+ })(ElementInstanceKey || (ElementInstanceKey = {}));
288
+ var EndCursor;
289
+ ((EndCursor2) => {
290
+ function assumeExists(value) {
291
+ assertConstraint(value, "EndCursor", { pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}(?:==)?|[A-Za-z0-9+/]{3}=)?$", minLength: 2, maxLength: 300 });
292
+ return value;
293
+ }
294
+ EndCursor2.assumeExists = assumeExists;
295
+ function getValue(key) {
296
+ return key;
297
+ }
298
+ EndCursor2.getValue = getValue;
299
+ function isValid(value) {
300
+ try {
301
+ assertConstraint(value, "EndCursor", { pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}(?:==)?|[A-Za-z0-9+/]{3}=)?$", minLength: 2, maxLength: 300 });
302
+ return true;
303
+ } catch {
304
+ return false;
305
+ }
306
+ }
307
+ EndCursor2.isValid = isValid;
308
+ })(EndCursor || (EndCursor = {}));
309
+ var FormId;
310
+ ((FormId2) => {
311
+ function assumeExists(value) {
312
+ return value;
313
+ }
314
+ FormId2.assumeExists = assumeExists;
315
+ function getValue(key) {
316
+ return key;
317
+ }
318
+ FormId2.getValue = getValue;
319
+ function isValid(value) {
320
+ return true;
321
+ }
322
+ FormId2.isValid = isValid;
323
+ })(FormId || (FormId = {}));
324
+ var FormKey;
325
+ ((FormKey2) => {
326
+ function assumeExists(value) {
327
+ assertConstraint(value, "FormKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
328
+ return value;
329
+ }
330
+ FormKey2.assumeExists = assumeExists;
331
+ function getValue(key) {
332
+ return key;
333
+ }
334
+ FormKey2.getValue = getValue;
335
+ function isValid(value) {
336
+ try {
337
+ assertConstraint(value, "FormKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
338
+ return true;
339
+ } catch {
340
+ return false;
341
+ }
342
+ }
343
+ FormKey2.isValid = isValid;
344
+ })(FormKey || (FormKey = {}));
345
+ var IncidentKey;
346
+ ((IncidentKey2) => {
347
+ function assumeExists(value) {
348
+ assertConstraint(value, "IncidentKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
349
+ return value;
350
+ }
351
+ IncidentKey2.assumeExists = assumeExists;
352
+ function getValue(key) {
353
+ return key;
354
+ }
355
+ IncidentKey2.getValue = getValue;
356
+ function isValid(value) {
357
+ try {
358
+ assertConstraint(value, "IncidentKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
359
+ return true;
360
+ } catch {
361
+ return false;
362
+ }
363
+ }
364
+ IncidentKey2.isValid = isValid;
365
+ })(IncidentKey || (IncidentKey = {}));
366
+ var JobKey;
367
+ ((JobKey2) => {
368
+ function assumeExists(value) {
369
+ assertConstraint(value, "JobKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
370
+ return value;
371
+ }
372
+ JobKey2.assumeExists = assumeExists;
373
+ function getValue(key) {
374
+ return key;
375
+ }
376
+ JobKey2.getValue = getValue;
377
+ function isValid(value) {
378
+ try {
379
+ assertConstraint(value, "JobKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
380
+ return true;
381
+ } catch {
382
+ return false;
383
+ }
384
+ }
385
+ JobKey2.isValid = isValid;
386
+ })(JobKey || (JobKey = {}));
387
+ var MessageCorrelationKey;
388
+ ((MessageCorrelationKey2) => {
389
+ function assumeExists(value) {
390
+ assertConstraint(value, "MessageCorrelationKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
391
+ return value;
392
+ }
393
+ MessageCorrelationKey2.assumeExists = assumeExists;
394
+ function getValue(key) {
395
+ return key;
396
+ }
397
+ MessageCorrelationKey2.getValue = getValue;
398
+ function isValid(value) {
399
+ try {
400
+ assertConstraint(value, "MessageCorrelationKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
401
+ return true;
402
+ } catch {
403
+ return false;
404
+ }
405
+ }
406
+ MessageCorrelationKey2.isValid = isValid;
407
+ })(MessageCorrelationKey || (MessageCorrelationKey = {}));
408
+ var MessageKey;
409
+ ((MessageKey2) => {
410
+ function assumeExists(value) {
411
+ assertConstraint(value, "MessageKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
412
+ return value;
413
+ }
414
+ MessageKey2.assumeExists = assumeExists;
415
+ function getValue(key) {
416
+ return key;
417
+ }
418
+ MessageKey2.getValue = getValue;
419
+ function isValid(value) {
420
+ try {
421
+ assertConstraint(value, "MessageKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
422
+ return true;
423
+ } catch {
424
+ return false;
425
+ }
426
+ }
427
+ MessageKey2.isValid = isValid;
428
+ })(MessageKey || (MessageKey = {}));
429
+ var MessageSubscriptionKey;
430
+ ((MessageSubscriptionKey2) => {
431
+ function assumeExists(value) {
432
+ assertConstraint(value, "MessageSubscriptionKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
433
+ return value;
434
+ }
435
+ MessageSubscriptionKey2.assumeExists = assumeExists;
436
+ function getValue(key) {
437
+ return key;
438
+ }
439
+ MessageSubscriptionKey2.getValue = getValue;
440
+ function isValid(value) {
441
+ try {
442
+ assertConstraint(value, "MessageSubscriptionKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
443
+ return true;
444
+ } catch {
445
+ return false;
446
+ }
447
+ }
448
+ MessageSubscriptionKey2.isValid = isValid;
449
+ })(MessageSubscriptionKey || (MessageSubscriptionKey = {}));
450
+ var ProcessDefinitionId;
451
+ ((ProcessDefinitionId2) => {
452
+ function assumeExists(value) {
453
+ assertConstraint(value, "ProcessDefinitionId", { pattern: "^[a-zA-Z_][a-zA-Z0-9_\\-\\.]*$", minLength: 1 });
454
+ return value;
455
+ }
456
+ ProcessDefinitionId2.assumeExists = assumeExists;
457
+ function getValue(key) {
458
+ return key;
459
+ }
460
+ ProcessDefinitionId2.getValue = getValue;
461
+ function isValid(value) {
462
+ try {
463
+ assertConstraint(value, "ProcessDefinitionId", { pattern: "^[a-zA-Z_][a-zA-Z0-9_\\-\\.]*$", minLength: 1 });
464
+ return true;
465
+ } catch {
466
+ return false;
467
+ }
468
+ }
469
+ ProcessDefinitionId2.isValid = isValid;
470
+ })(ProcessDefinitionId || (ProcessDefinitionId = {}));
471
+ var ProcessDefinitionKey;
472
+ ((ProcessDefinitionKey2) => {
473
+ function assumeExists(value) {
474
+ assertConstraint(value, "ProcessDefinitionKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
475
+ return value;
476
+ }
477
+ ProcessDefinitionKey2.assumeExists = assumeExists;
478
+ function getValue(key) {
479
+ return key;
480
+ }
481
+ ProcessDefinitionKey2.getValue = getValue;
482
+ function isValid(value) {
483
+ try {
484
+ assertConstraint(value, "ProcessDefinitionKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
485
+ return true;
486
+ } catch {
487
+ return false;
488
+ }
489
+ }
490
+ ProcessDefinitionKey2.isValid = isValid;
491
+ })(ProcessDefinitionKey || (ProcessDefinitionKey = {}));
492
+ var ProcessInstanceKey;
493
+ ((ProcessInstanceKey2) => {
494
+ function assumeExists(value) {
495
+ assertConstraint(value, "ProcessInstanceKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
496
+ return value;
497
+ }
498
+ ProcessInstanceKey2.assumeExists = assumeExists;
499
+ function getValue(key) {
500
+ return key;
501
+ }
502
+ ProcessInstanceKey2.getValue = getValue;
503
+ function isValid(value) {
504
+ try {
505
+ assertConstraint(value, "ProcessInstanceKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
506
+ return true;
507
+ } catch {
508
+ return false;
509
+ }
510
+ }
511
+ ProcessInstanceKey2.isValid = isValid;
512
+ })(ProcessInstanceKey || (ProcessInstanceKey = {}));
513
+ var ScopeKey;
514
+ ((ScopeKey2) => {
515
+ function assumeExists(value) {
516
+ assertConstraint(value, "ScopeKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
517
+ return value;
518
+ }
519
+ ScopeKey2.assumeExists = assumeExists;
520
+ function getValue(key) {
521
+ return key;
522
+ }
523
+ ScopeKey2.getValue = getValue;
524
+ function isValid(value) {
525
+ try {
526
+ assertConstraint(value, "ScopeKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
527
+ return true;
528
+ } catch {
529
+ return false;
530
+ }
531
+ }
532
+ ScopeKey2.isValid = isValid;
533
+ })(ScopeKey || (ScopeKey = {}));
534
+ var SignalKey;
535
+ ((SignalKey2) => {
536
+ function assumeExists(value) {
537
+ assertConstraint(value, "SignalKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
538
+ return value;
539
+ }
540
+ SignalKey2.assumeExists = assumeExists;
541
+ function getValue(key) {
542
+ return key;
543
+ }
544
+ SignalKey2.getValue = getValue;
545
+ function isValid(value) {
546
+ try {
547
+ assertConstraint(value, "SignalKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
548
+ return true;
549
+ } catch {
550
+ return false;
551
+ }
552
+ }
553
+ SignalKey2.isValid = isValid;
554
+ })(SignalKey || (SignalKey = {}));
555
+ var StartCursor;
556
+ ((StartCursor2) => {
557
+ function assumeExists(value) {
558
+ assertConstraint(value, "StartCursor", { pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}(?:==)?|[A-Za-z0-9+/]{3}=)?$", minLength: 2, maxLength: 300 });
559
+ return value;
560
+ }
561
+ StartCursor2.assumeExists = assumeExists;
562
+ function getValue(key) {
563
+ return key;
564
+ }
565
+ StartCursor2.getValue = getValue;
566
+ function isValid(value) {
567
+ try {
568
+ assertConstraint(value, "StartCursor", { pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}(?:==)?|[A-Za-z0-9+/]{3}=)?$", minLength: 2, maxLength: 300 });
569
+ return true;
570
+ } catch {
571
+ return false;
572
+ }
573
+ }
574
+ StartCursor2.isValid = isValid;
575
+ })(StartCursor || (StartCursor = {}));
576
+ var Tag;
577
+ ((Tag2) => {
578
+ function fromString(value) {
579
+ assertConstraint(value, "Tag", { pattern: "^[A-Za-z][A-Za-z0-9_\\-:.]{0,99}$", minLength: 1, maxLength: 100 });
580
+ return value;
581
+ }
582
+ Tag2.fromString = fromString;
583
+ function getValue(key) {
584
+ return key;
585
+ }
586
+ Tag2.getValue = getValue;
587
+ function isValid(value) {
588
+ try {
589
+ assertConstraint(value, "Tag", { pattern: "^[A-Za-z][A-Za-z0-9_\\-:.]{0,99}$", minLength: 1, maxLength: 100 });
590
+ return true;
591
+ } catch {
592
+ return false;
593
+ }
594
+ }
595
+ Tag2.isValid = isValid;
596
+ })(Tag || (Tag = {}));
597
+ var TenantId;
598
+ ((TenantId2) => {
599
+ function assumeExists(value) {
600
+ assertConstraint(value, "TenantId", { pattern: "^(<default>|[A-Za-z0-9_@.+-]+)$", minLength: 1, maxLength: 256 });
601
+ return value;
602
+ }
603
+ TenantId2.assumeExists = assumeExists;
604
+ function getValue(key) {
605
+ return key;
606
+ }
607
+ TenantId2.getValue = getValue;
608
+ function isValid(value) {
609
+ try {
610
+ assertConstraint(value, "TenantId", { pattern: "^(<default>|[A-Za-z0-9_@.+-]+)$", minLength: 1, maxLength: 256 });
611
+ return true;
612
+ } catch {
613
+ return false;
614
+ }
615
+ }
616
+ TenantId2.isValid = isValid;
617
+ })(TenantId || (TenantId = {}));
618
+ var Username;
619
+ ((Username2) => {
620
+ function assumeExists(value) {
621
+ assertConstraint(value, "Username", { pattern: "^(<default>|[A-Za-z0-9_@.+-]+)$", minLength: 1, maxLength: 256 });
622
+ return value;
623
+ }
624
+ Username2.assumeExists = assumeExists;
625
+ function getValue(key) {
626
+ return key;
627
+ }
628
+ Username2.getValue = getValue;
629
+ function isValid(value) {
630
+ try {
631
+ assertConstraint(value, "Username", { pattern: "^(<default>|[A-Za-z0-9_@.+-]+)$", minLength: 1, maxLength: 256 });
632
+ return true;
633
+ } catch {
634
+ return false;
635
+ }
636
+ }
637
+ Username2.isValid = isValid;
638
+ })(Username || (Username = {}));
639
+ var UserTaskKey;
640
+ ((UserTaskKey2) => {
641
+ function assumeExists(value) {
642
+ assertConstraint(value, "UserTaskKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
643
+ return value;
644
+ }
645
+ UserTaskKey2.assumeExists = assumeExists;
646
+ function getValue(key) {
647
+ return key;
648
+ }
649
+ UserTaskKey2.getValue = getValue;
650
+ function isValid(value) {
651
+ try {
652
+ assertConstraint(value, "UserTaskKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
653
+ return true;
654
+ } catch {
655
+ return false;
656
+ }
657
+ }
658
+ UserTaskKey2.isValid = isValid;
659
+ })(UserTaskKey || (UserTaskKey = {}));
660
+ var VariableKey;
661
+ ((VariableKey2) => {
662
+ function assumeExists(value) {
663
+ assertConstraint(value, "VariableKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
664
+ return value;
665
+ }
666
+ VariableKey2.assumeExists = assumeExists;
667
+ function getValue(key) {
668
+ return key;
669
+ }
670
+ VariableKey2.getValue = getValue;
671
+ function isValid(value) {
672
+ try {
673
+ assertConstraint(value, "VariableKey", { pattern: "^-?[0-9]+$", minLength: 1, maxLength: 25 });
674
+ return true;
675
+ } catch {
676
+ return false;
677
+ }
678
+ }
679
+ VariableKey2.isValid = isValid;
680
+ })(VariableKey || (VariableKey = {}));
681
+
682
+ // src/index.ts
683
+ var index_default = createCamundaClient;
684
+ export {
685
+ AuthorizationKey,
686
+ BatchOperationKey,
687
+ CamundaValidationError,
688
+ DecisionDefinitionId,
689
+ DecisionDefinitionKey,
690
+ DecisionEvaluationInstanceKey,
691
+ DecisionEvaluationKey,
692
+ DecisionInstanceKey,
693
+ DecisionRequirementsKey,
694
+ DeploymentKey,
695
+ DocumentId,
696
+ ElementId,
697
+ ElementInstanceKey,
698
+ EndCursor,
699
+ EventualConsistencyTimeoutError,
700
+ FormId,
701
+ FormKey,
702
+ IncidentKey,
703
+ JobActionReceipt as JobActionReceiptSymbol,
704
+ JobKey,
705
+ MessageCorrelationKey,
706
+ MessageKey,
707
+ MessageSubscriptionKey,
708
+ ProcessDefinitionId,
709
+ ProcessDefinitionKey,
710
+ ProcessInstanceKey,
711
+ ScopeKey,
712
+ SignalKey,
713
+ StartCursor,
714
+ Tag,
715
+ TenantId,
716
+ UserTaskKey,
717
+ Username,
718
+ VariableKey,
719
+ assertConstraint,
720
+ createCamundaClient,
721
+ createCamundaClientLoose,
722
+ createCamundaFpClient,
723
+ createCamundaResultClient,
724
+ index_default as default,
725
+ isErr,
726
+ isLeft,
727
+ isOk,
728
+ isRight
729
+ };
730
+ //# sourceMappingURL=index.js.map