openxiangda-contracts 2.78.0 → 2.81.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.
Files changed (172) hide show
  1. package/dist/ai.d.ts +321 -21
  2. package/dist/ai.d.ts.map +1 -1
  3. package/dist/ai.js +37 -14
  4. package/dist/ai.js.map +1 -1
  5. package/dist/application-agent.d.ts +540 -0
  6. package/dist/application-agent.d.ts.map +1 -0
  7. package/dist/application-agent.js +98 -0
  8. package/dist/application-agent.js.map +1 -0
  9. package/dist/browser.d.ts +15 -0
  10. package/dist/browser.d.ts.map +1 -1
  11. package/dist/browser.js +14 -0
  12. package/dist/browser.js.map +1 -1
  13. package/dist/cli.d.ts +5 -0
  14. package/dist/cli.d.ts.map +1 -1
  15. package/dist/data-field-validation.js +26 -23
  16. package/dist/data-field-validation.js.map +1 -1
  17. package/dist/field-value-schemas.d.ts +2 -1427
  18. package/dist/field-value-schemas.d.ts.map +1 -1
  19. package/dist/field-value-schemas.js +2 -261
  20. package/dist/field-value-schemas.js.map +1 -1
  21. package/dist/index.d.ts +13 -0
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +13 -0
  24. package/dist/index.js.map +1 -1
  25. package/dist/native-compiler/address-value.d.ts +13 -0
  26. package/dist/native-compiler/address-value.d.ts.map +1 -0
  27. package/dist/native-compiler/address-value.js +70 -0
  28. package/dist/native-compiler/address-value.js.map +1 -0
  29. package/dist/native-compiler/application-agent.d.ts +39 -0
  30. package/dist/native-compiler/application-agent.d.ts.map +1 -0
  31. package/dist/native-compiler/application-agent.js +344 -0
  32. package/dist/native-compiler/application-agent.js.map +1 -0
  33. package/dist/native-compiler/cascade-value.d.ts +6 -0
  34. package/dist/native-compiler/cascade-value.d.ts.map +1 -0
  35. package/dist/native-compiler/cascade-value.js +47 -0
  36. package/dist/native-compiler/cascade-value.js.map +1 -0
  37. package/dist/native-compiler/compiler.d.ts +1 -1
  38. package/dist/native-compiler/compiler.d.ts.map +1 -1
  39. package/dist/native-compiler/compiler.js +85 -56
  40. package/dist/native-compiler/compiler.js.map +1 -1
  41. package/dist/native-compiler/data-field.d.ts +3 -0
  42. package/dist/native-compiler/data-field.d.ts.map +1 -1
  43. package/dist/native-compiler/data-field.js +10 -2
  44. package/dist/native-compiler/data-field.js.map +1 -1
  45. package/dist/native-compiler/declaration-capacity.d.ts +3 -0
  46. package/dist/native-compiler/declaration-capacity.d.ts.map +1 -1
  47. package/dist/native-compiler/declaration-capacity.js +1 -1
  48. package/dist/native-compiler/declaration-capacity.js.map +1 -1
  49. package/dist/native-compiler/field-value-schemas.d.ts +1428 -0
  50. package/dist/native-compiler/field-value-schemas.d.ts.map +1 -0
  51. package/dist/native-compiler/field-value-schemas.js +262 -0
  52. package/dist/native-compiler/field-value-schemas.js.map +1 -0
  53. package/dist/native-compiler/index.cjs +4 -4
  54. package/dist/native-compiler/index.d.ts +17 -0
  55. package/dist/native-compiler/index.d.ts.map +1 -1
  56. package/dist/native-compiler/index.js +4 -4
  57. package/dist/native-compiler/resource-query.d.ts +21 -0
  58. package/dist/native-compiler/resource-query.d.ts.map +1 -0
  59. package/dist/native-compiler/resource-query.js +154 -0
  60. package/dist/native-compiler/resource-query.js.map +1 -0
  61. package/dist/native-compiler/workflow-approval-empty.d.ts +1 -1
  62. package/dist/native-compiler/workflow-approval-empty.d.ts.map +1 -1
  63. package/dist/native-compiler/workflow-approval-empty.js +1 -1
  64. package/dist/native-compiler/workflow-approval-empty.js.map +1 -1
  65. package/dist/native-compiler/workflow-authoring.d.ts +24 -0
  66. package/dist/native-compiler/workflow-authoring.d.ts.map +1 -0
  67. package/dist/native-compiler/workflow-authoring.js +84 -0
  68. package/dist/native-compiler/workflow-authoring.js.map +1 -0
  69. package/dist/native-compiler/workflow-business-step.d.ts +13 -2
  70. package/dist/native-compiler/workflow-business-step.d.ts.map +1 -1
  71. package/dist/native-compiler/workflow-business-step.js +31 -6
  72. package/dist/native-compiler/workflow-business-step.js.map +1 -1
  73. package/dist/native-compiler/workflow-completion-deadline.d.ts +1 -0
  74. package/dist/native-compiler/workflow-completion-deadline.d.ts.map +1 -1
  75. package/dist/native-compiler/workflow-completion-deadline.js +1 -1
  76. package/dist/native-compiler/workflow-completion-deadline.js.map +1 -1
  77. package/dist/native-compiler/workflow-correction.d.ts +1 -0
  78. package/dist/native-compiler/workflow-correction.d.ts.map +1 -1
  79. package/dist/native-compiler/workflow-correction.js +5 -4
  80. package/dist/native-compiler/workflow-correction.js.map +1 -1
  81. package/dist/native-compiler/workflow-designer.d.ts +134 -0
  82. package/dist/native-compiler/workflow-designer.d.ts.map +1 -0
  83. package/dist/native-compiler/workflow-designer.js +407 -0
  84. package/dist/native-compiler/workflow-designer.js.map +1 -0
  85. package/dist/native-compiler/workflow-events.d.ts +8 -0
  86. package/dist/native-compiler/workflow-events.d.ts.map +1 -0
  87. package/dist/native-compiler/workflow-events.js +53 -0
  88. package/dist/native-compiler/workflow-events.js.map +1 -0
  89. package/dist/native-compiler/workflow-expression.d.ts +4 -0
  90. package/dist/native-compiler/workflow-expression.d.ts.map +1 -0
  91. package/dist/native-compiler/workflow-expression.js +47 -0
  92. package/dist/native-compiler/workflow-expression.js.map +1 -0
  93. package/dist/native-compiler/workflow-graph.d.ts +16 -1
  94. package/dist/native-compiler/workflow-graph.d.ts.map +1 -1
  95. package/dist/native-compiler/workflow-graph.js +27 -5
  96. package/dist/native-compiler/workflow-graph.js.map +1 -1
  97. package/dist/native-compiler/workflow-handle.d.ts +4 -0
  98. package/dist/native-compiler/workflow-handle.d.ts.map +1 -0
  99. package/dist/native-compiler/workflow-handle.js +20 -0
  100. package/dist/native-compiler/workflow-handle.js.map +1 -0
  101. package/dist/native-compiler/workflow-initiator-approval.d.ts +1 -0
  102. package/dist/native-compiler/workflow-initiator-approval.d.ts.map +1 -1
  103. package/dist/native-compiler/workflow-initiator-approval.js +1 -1
  104. package/dist/native-compiler/workflow-initiator-approval.js.map +1 -1
  105. package/dist/native-compiler/workflow-node-administration.d.ts +12 -1
  106. package/dist/native-compiler/workflow-node-administration.d.ts.map +1 -1
  107. package/dist/native-compiler/workflow-node-administration.js +66 -14
  108. package/dist/native-compiler/workflow-node-administration.js.map +1 -1
  109. package/dist/native-compiler/workflow-parallel.d.ts +69 -0
  110. package/dist/native-compiler/workflow-parallel.d.ts.map +1 -0
  111. package/dist/native-compiler/workflow-parallel.js +178 -0
  112. package/dist/native-compiler/workflow-parallel.js.map +1 -0
  113. package/dist/native-compiler/workflow-platform-notify.d.ts +41 -0
  114. package/dist/native-compiler/workflow-platform-notify.d.ts.map +1 -0
  115. package/dist/native-compiler/workflow-platform-notify.js +49 -0
  116. package/dist/native-compiler/workflow-platform-notify.js.map +1 -0
  117. package/dist/native-compiler/workflow-reminders.d.ts +11 -0
  118. package/dist/native-compiler/workflow-reminders.d.ts.map +1 -0
  119. package/dist/native-compiler/workflow-reminders.js +12 -0
  120. package/dist/native-compiler/workflow-reminders.js.map +1 -0
  121. package/dist/native-compiler/workflow-return-eligibility.d.ts +8 -0
  122. package/dist/native-compiler/workflow-return-eligibility.d.ts.map +1 -0
  123. package/dist/native-compiler/workflow-return-eligibility.js +32 -0
  124. package/dist/native-compiler/workflow-return-eligibility.js.map +1 -0
  125. package/dist/native-compiler/workflow-return-policy.d.ts +20 -0
  126. package/dist/native-compiler/workflow-return-policy.d.ts.map +1 -0
  127. package/dist/native-compiler/workflow-return-policy.js +37 -0
  128. package/dist/native-compiler/workflow-return-policy.js.map +1 -0
  129. package/dist/native-compiler/workflow-role-union.d.ts +5 -1
  130. package/dist/native-compiler/workflow-role-union.d.ts.map +1 -1
  131. package/dist/native-compiler/workflow-role-union.js +1 -1
  132. package/dist/native-compiler/workflow-role-union.js.map +1 -1
  133. package/dist/native-compiler/workflow-schema-constants.d.ts +5 -0
  134. package/dist/native-compiler/workflow-schema-constants.d.ts.map +1 -0
  135. package/dist/native-compiler/workflow-schema-constants.js +5 -0
  136. package/dist/native-compiler/workflow-schema-constants.js.map +1 -0
  137. package/dist/native-compiler/workflow-schema.d.ts +1634 -0
  138. package/dist/native-compiler/workflow-schema.d.ts.map +1 -0
  139. package/dist/native-compiler/workflow-schema.js +519 -0
  140. package/dist/native-compiler/workflow-schema.js.map +1 -0
  141. package/dist/native-compiler/workflow-source-sync.d.ts +109 -0
  142. package/dist/native-compiler/workflow-source-sync.d.ts.map +1 -0
  143. package/dist/native-compiler/workflow-source-sync.js +116 -0
  144. package/dist/native-compiler/workflow-source-sync.js.map +1 -0
  145. package/dist/native-compiler/workflow-supervisor-chain.d.ts +16 -0
  146. package/dist/native-compiler/workflow-supervisor-chain.d.ts.map +1 -0
  147. package/dist/native-compiler/workflow-supervisor-chain.js +44 -0
  148. package/dist/native-compiler/workflow-supervisor-chain.js.map +1 -0
  149. package/dist/native-compiler/workflow-task-page.js +1 -1
  150. package/dist/native-compiler/workflow-task-page.js.map +1 -1
  151. package/dist/native-version.d.ts +7 -0
  152. package/dist/native-version.d.ts.map +1 -1
  153. package/dist/native-version.js +7 -0
  154. package/dist/native-version.js.map +1 -1
  155. package/dist/native.d.ts +10 -0
  156. package/dist/native.d.ts.map +1 -1
  157. package/dist/native.js.map +1 -1
  158. package/dist/references.d.ts +4 -0
  159. package/dist/references.d.ts.map +1 -1
  160. package/dist/schemas.d.ts +1485 -1088
  161. package/dist/schemas.d.ts.map +1 -1
  162. package/dist/schemas.js +33 -449
  163. package/dist/schemas.js.map +1 -1
  164. package/dist/types.d.ts +48 -12
  165. package/dist/types.d.ts.map +1 -1
  166. package/dist/types.js +4 -42
  167. package/dist/types.js.map +1 -1
  168. package/dist/workflow-summary.d.ts +1 -1
  169. package/dist/workflow-summary.d.ts.map +1 -1
  170. package/dist/workflow-summary.js +2 -1
  171. package/dist/workflow-summary.js.map +1 -1
  172. package/package.json +1 -1
@@ -0,0 +1,1634 @@
1
+ export declare const workflowBusinessStepNodeSchema: {
2
+ readonly type: "object";
3
+ readonly additionalProperties: false;
4
+ readonly required: readonly ["id", "kind", "title", "next", "handler", "inputSchema", "outputSchema", "inputs"];
5
+ readonly properties: {
6
+ readonly id: {
7
+ readonly type: "string";
8
+ readonly minLength: 1;
9
+ };
10
+ readonly kind: {
11
+ readonly const: "action";
12
+ };
13
+ readonly title: {
14
+ readonly type: "string";
15
+ readonly minLength: 1;
16
+ };
17
+ readonly next: {
18
+ readonly type: "string";
19
+ readonly minLength: 1;
20
+ };
21
+ readonly handler: {
22
+ readonly type: "object";
23
+ readonly additionalProperties: false;
24
+ readonly required: readonly ["code", "version", "mode"];
25
+ readonly properties: {
26
+ readonly code: {
27
+ readonly type: "string";
28
+ readonly pattern: "^[a-z][a-z0-9-]{0,100}$";
29
+ };
30
+ readonly version: {
31
+ readonly type: "integer";
32
+ readonly minimum: 1;
33
+ readonly maximum: 1000000;
34
+ };
35
+ readonly mode: {
36
+ readonly enum: readonly ["pure", "reconciled-effect"];
37
+ };
38
+ readonly dataTransaction: {
39
+ readonly const: true;
40
+ };
41
+ };
42
+ readonly allOf: readonly [{
43
+ readonly if: {
44
+ readonly required: readonly ["dataTransaction"];
45
+ };
46
+ readonly then: {
47
+ readonly properties: {
48
+ readonly mode: {
49
+ readonly const: "reconciled-effect";
50
+ };
51
+ };
52
+ };
53
+ }];
54
+ };
55
+ readonly notification: {
56
+ readonly type: "object";
57
+ readonly additionalProperties: false;
58
+ readonly required: readonly ["template", "recipients"];
59
+ readonly properties: {
60
+ readonly template: {
61
+ readonly const: "workflow_message";
62
+ };
63
+ readonly recipients: {
64
+ readonly oneOf: readonly [{
65
+ readonly type: "object";
66
+ readonly additionalProperties: false;
67
+ readonly required: readonly ["provider"];
68
+ readonly properties: {
69
+ readonly provider: {
70
+ readonly const: "initiator";
71
+ };
72
+ };
73
+ }, {
74
+ readonly type: "object";
75
+ readonly additionalProperties: false;
76
+ readonly required: readonly ["provider", "users"];
77
+ readonly properties: {
78
+ readonly provider: {
79
+ readonly const: "fixed_users";
80
+ };
81
+ readonly users: {
82
+ readonly type: "array";
83
+ readonly minItems: 1;
84
+ readonly maxItems: 50;
85
+ readonly uniqueItems: true;
86
+ readonly items: {
87
+ readonly type: "string";
88
+ readonly minLength: 1;
89
+ readonly maxLength: 255;
90
+ };
91
+ };
92
+ };
93
+ }, {
94
+ readonly type: "object";
95
+ readonly additionalProperties: false;
96
+ readonly required: readonly ["provider", "roleCode"];
97
+ readonly properties: {
98
+ readonly provider: {
99
+ readonly const: "app_role";
100
+ };
101
+ readonly roleCode: {
102
+ readonly type: "string";
103
+ readonly minLength: 1;
104
+ };
105
+ };
106
+ }, {
107
+ readonly type: "object";
108
+ readonly additionalProperties: false;
109
+ readonly required: readonly ["provider", "inputPath"];
110
+ readonly properties: {
111
+ readonly provider: {
112
+ readonly const: "form_field_users";
113
+ };
114
+ readonly inputPath: {
115
+ readonly type: "string";
116
+ readonly minLength: 1;
117
+ };
118
+ };
119
+ }];
120
+ };
121
+ };
122
+ };
123
+ readonly inputSchema: {
124
+ readonly type: "object";
125
+ };
126
+ readonly outputSchema: {
127
+ readonly type: "object";
128
+ };
129
+ readonly inputs: {
130
+ readonly type: "object";
131
+ readonly maxProperties: 32;
132
+ readonly additionalProperties: {
133
+ readonly oneOf: readonly [{
134
+ readonly type: "object";
135
+ readonly additionalProperties: false;
136
+ readonly required: readonly ["source", "path"];
137
+ readonly properties: {
138
+ readonly source: {
139
+ readonly const: "fact";
140
+ };
141
+ readonly path: {
142
+ readonly type: "string";
143
+ readonly minLength: 1;
144
+ readonly maxLength: 256;
145
+ };
146
+ };
147
+ }, {
148
+ readonly type: "object";
149
+ readonly additionalProperties: false;
150
+ readonly required: readonly ["source", "value"];
151
+ readonly properties: {
152
+ readonly source: {
153
+ readonly const: "literal";
154
+ };
155
+ readonly value: {};
156
+ };
157
+ }];
158
+ };
159
+ };
160
+ };
161
+ };
162
+ export declare const workflowDefinitionSchema: {
163
+ readonly $id: "openxiangda.workflow-definition/v2";
164
+ readonly type: "object";
165
+ readonly additionalProperties: false;
166
+ readonly required: readonly ["schemaVersion", "code", "title", "acceptedCommandDeactivationPolicy", "subject", "startAt", "inputSchema", "nodes"];
167
+ readonly properties: {
168
+ readonly schemaVersion: {
169
+ readonly const: "openxiangda.workflow-definition/v2";
170
+ };
171
+ readonly authoring: {
172
+ readonly type: "object";
173
+ readonly additionalProperties: false;
174
+ readonly properties: {
175
+ readonly businessSteps: {
176
+ readonly type: "array";
177
+ readonly maxItems: 100;
178
+ readonly items: {
179
+ readonly type: "object";
180
+ readonly additionalProperties: false;
181
+ readonly required: readonly ["title", "handler", "inputSchema", "outputSchema"];
182
+ readonly properties: {
183
+ readonly title: {
184
+ readonly type: "string";
185
+ readonly minLength: 1;
186
+ readonly maxLength: 160;
187
+ };
188
+ readonly handler: {
189
+ readonly type: "object";
190
+ readonly additionalProperties: false;
191
+ readonly required: readonly ["code", "version", "mode"];
192
+ readonly properties: {
193
+ readonly code: {
194
+ readonly type: "string";
195
+ readonly pattern: "^[a-z][a-z0-9_-]{0,127}$";
196
+ };
197
+ readonly version: {
198
+ readonly type: "integer";
199
+ readonly minimum: 1;
200
+ };
201
+ readonly mode: {
202
+ readonly enum: readonly ["pure", "reconciled-effect"];
203
+ };
204
+ readonly dataTransaction: {
205
+ readonly const: true;
206
+ };
207
+ };
208
+ };
209
+ readonly inputSchema: {
210
+ readonly type: "object";
211
+ };
212
+ readonly outputSchema: {
213
+ readonly type: "object";
214
+ };
215
+ };
216
+ };
217
+ };
218
+ };
219
+ };
220
+ readonly code: {
221
+ readonly type: "string";
222
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_-]{0,127}$";
223
+ };
224
+ readonly title: {
225
+ readonly type: "string";
226
+ readonly minLength: 1;
227
+ };
228
+ readonly launchPreflight: {
229
+ readonly type: "object";
230
+ readonly additionalProperties: false;
231
+ readonly required: readonly ["requiredApprovalNodes"];
232
+ readonly properties: {
233
+ readonly requiredApprovalNodes: {
234
+ readonly type: "array";
235
+ readonly minItems: 1;
236
+ readonly maxItems: 20;
237
+ readonly uniqueItems: true;
238
+ readonly items: {
239
+ readonly type: "string";
240
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_-]{0,127}$";
241
+ };
242
+ };
243
+ };
244
+ };
245
+ readonly approvedDelegation: {
246
+ readonly type: "object";
247
+ readonly additionalProperties: false;
248
+ readonly required: readonly ["confirmationNodeId", "confirmer", "requestsField", "maxRequests"];
249
+ readonly properties: {
250
+ readonly confirmationNodeId: {
251
+ readonly type: "string";
252
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_-]{0,127}$";
253
+ };
254
+ readonly confirmer: {
255
+ readonly enum: readonly ["initiator", "delegate"];
256
+ };
257
+ readonly requestsField: {
258
+ readonly type: "string";
259
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
260
+ };
261
+ readonly maxRequests: {
262
+ readonly type: "integer";
263
+ readonly minimum: 1;
264
+ readonly maximum: 500;
265
+ };
266
+ };
267
+ };
268
+ readonly commandHandlers: {
269
+ readonly type: "object";
270
+ readonly additionalProperties: false;
271
+ readonly minProperties: 1;
272
+ readonly properties: {
273
+ [k: string]: {
274
+ type: string;
275
+ additionalProperties: boolean;
276
+ required: string[];
277
+ properties: {
278
+ derivedSubjectFields?: {
279
+ type: string;
280
+ minItems: number;
281
+ maxItems: number;
282
+ uniqueItems: boolean;
283
+ items: {
284
+ type: string;
285
+ pattern: string;
286
+ };
287
+ };
288
+ transitionPolicy?: {
289
+ const: string;
290
+ };
291
+ operationCode: {
292
+ type: string;
293
+ pattern: string;
294
+ };
295
+ };
296
+ };
297
+ };
298
+ };
299
+ readonly taskPages: {
300
+ readonly type: "object";
301
+ readonly minProperties: 1;
302
+ readonly maxProperties: 16;
303
+ readonly propertyNames: {
304
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_-]{0,63}$";
305
+ };
306
+ readonly additionalProperties: {
307
+ readonly type: "object";
308
+ readonly additionalProperties: false;
309
+ readonly required: readonly ["title", "fields"];
310
+ readonly properties: {
311
+ readonly title: {
312
+ readonly type: "string";
313
+ readonly minLength: 1;
314
+ readonly maxLength: 160;
315
+ };
316
+ readonly fields: {
317
+ readonly type: "array";
318
+ readonly minItems: 1;
319
+ readonly maxItems: 200;
320
+ readonly items: {
321
+ readonly type: "object";
322
+ readonly additionalProperties: false;
323
+ readonly required: readonly ["code"];
324
+ readonly properties: {
325
+ readonly code: {
326
+ readonly type: "string";
327
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
328
+ };
329
+ readonly readonly: {
330
+ readonly type: "boolean";
331
+ };
332
+ readonly required: {
333
+ readonly type: "boolean";
334
+ };
335
+ readonly visibleWhen: {
336
+ readonly type: "object";
337
+ readonly required: readonly ["op"];
338
+ readonly properties: {
339
+ readonly op: {
340
+ readonly enum: readonly ["literal", "path", "eq", "neq", "gt", "gte", "lt", "lte", "in", "contains", "and", "or", "not", "exists"];
341
+ };
342
+ readonly value: {};
343
+ readonly path: {
344
+ readonly type: "string";
345
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_.]{0,254}$";
346
+ };
347
+ readonly left: {
348
+ readonly type: "object";
349
+ };
350
+ readonly right: {
351
+ readonly type: "object";
352
+ };
353
+ readonly values: {
354
+ readonly type: "array";
355
+ readonly minItems: 1;
356
+ readonly items: {
357
+ readonly type: "object";
358
+ };
359
+ };
360
+ };
361
+ };
362
+ readonly requiredWhen: {
363
+ readonly type: "object";
364
+ readonly required: readonly ["op"];
365
+ readonly properties: {
366
+ readonly op: {
367
+ readonly enum: readonly ["literal", "path", "eq", "neq", "gt", "gte", "lt", "lte", "in", "contains", "and", "or", "not", "exists"];
368
+ };
369
+ readonly value: {};
370
+ readonly path: {
371
+ readonly type: "string";
372
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_.]{0,254}$";
373
+ };
374
+ readonly left: {
375
+ readonly type: "object";
376
+ };
377
+ readonly right: {
378
+ readonly type: "object";
379
+ };
380
+ readonly values: {
381
+ readonly type: "array";
382
+ readonly minItems: 1;
383
+ readonly items: {
384
+ readonly type: "object";
385
+ };
386
+ };
387
+ };
388
+ };
389
+ };
390
+ };
391
+ };
392
+ };
393
+ };
394
+ };
395
+ readonly acceptedCommandDeactivationPolicy: {
396
+ readonly enum: readonly ["finish-pinned", "cancel-on-deactivate"];
397
+ };
398
+ readonly rejectionNotification: {
399
+ readonly type: "object";
400
+ readonly additionalProperties: false;
401
+ readonly required: readonly ["recipient", "title", "summary"];
402
+ readonly properties: {
403
+ readonly recipient: {
404
+ readonly const: "record_last_modifier";
405
+ };
406
+ readonly title: {
407
+ readonly type: "string";
408
+ readonly minLength: 1;
409
+ readonly maxLength: 160;
410
+ readonly pattern: "\\S";
411
+ };
412
+ readonly summary: {
413
+ readonly type: "string";
414
+ readonly minLength: 1;
415
+ readonly maxLength: 500;
416
+ readonly pattern: "\\S";
417
+ };
418
+ };
419
+ };
420
+ readonly instanceCommands: {
421
+ readonly type: "object";
422
+ readonly additionalProperties: false;
423
+ readonly minProperties: 1;
424
+ readonly properties: {
425
+ readonly withdraw: {
426
+ readonly type: "object";
427
+ readonly additionalProperties: false;
428
+ readonly minProperties: 1;
429
+ readonly properties: {
430
+ readonly beforeFact: {
431
+ readonly type: "string";
432
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
433
+ };
434
+ readonly reasonRequired: {
435
+ readonly type: "boolean";
436
+ };
437
+ };
438
+ };
439
+ readonly terminate: {
440
+ readonly type: "object";
441
+ readonly additionalProperties: false;
442
+ readonly required: readonly ["capability"];
443
+ readonly properties: {
444
+ readonly capability: {
445
+ readonly type: "string";
446
+ readonly maxLength: 255;
447
+ readonly pattern: "^app:[a-z][a-z0-9]*(?:-[a-z0-9]+)*:[A-Za-z0-9:._-]+$";
448
+ };
449
+ readonly beforeFact: {
450
+ readonly type: "string";
451
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
452
+ };
453
+ };
454
+ };
455
+ };
456
+ };
457
+ readonly subject: {
458
+ readonly type: "object";
459
+ readonly additionalProperties: false;
460
+ readonly required: readonly ["resourceCode", "factProjection", "summaryFields"];
461
+ readonly properties: {
462
+ readonly resourceCode: {
463
+ readonly type: "string";
464
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
465
+ };
466
+ readonly factProjection: {
467
+ readonly type: "object";
468
+ readonly minProperties: 1;
469
+ readonly maxProperties: 64;
470
+ readonly propertyNames: {
471
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_.]{0,127}$";
472
+ };
473
+ readonly additionalProperties: {
474
+ readonly type: "string";
475
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
476
+ };
477
+ };
478
+ readonly summaryFields: {
479
+ readonly type: "array";
480
+ readonly maxItems: 16;
481
+ readonly uniqueItems: true;
482
+ readonly items: {
483
+ readonly type: "string";
484
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
485
+ };
486
+ };
487
+ };
488
+ };
489
+ readonly startAt: {
490
+ readonly type: "string";
491
+ readonly minLength: 1;
492
+ };
493
+ readonly inputSchema: {
494
+ readonly type: "object";
495
+ readonly required: readonly ["type", "additionalProperties"];
496
+ readonly properties: {
497
+ readonly type: {
498
+ readonly const: "object";
499
+ };
500
+ readonly additionalProperties: {
501
+ readonly const: false;
502
+ };
503
+ };
504
+ };
505
+ readonly organizationContext: {
506
+ readonly type: "object";
507
+ readonly additionalProperties: false;
508
+ readonly properties: {
509
+ readonly department: {
510
+ readonly type: "object";
511
+ readonly additionalProperties: false;
512
+ readonly required: readonly ["source"];
513
+ readonly properties: {
514
+ readonly source: {
515
+ readonly enum: readonly ["none", "user_primary_department", "choose_if_multiple", "always_choose", "fixed", "from_input", "from_role_scope"];
516
+ };
517
+ readonly required: {
518
+ readonly type: "boolean";
519
+ };
520
+ readonly value: {
521
+ readonly type: "string";
522
+ };
523
+ readonly path: {
524
+ readonly type: "string";
525
+ };
526
+ readonly dimension: {
527
+ readonly type: "string";
528
+ };
529
+ };
530
+ };
531
+ };
532
+ };
533
+ readonly nodes: {
534
+ readonly type: "object";
535
+ readonly minProperties: 1;
536
+ readonly maxProperties: 200;
537
+ readonly additionalProperties: {
538
+ readonly oneOf: readonly [{
539
+ readonly type: "object";
540
+ readonly additionalProperties: false;
541
+ readonly required: readonly ["id", "kind", "title", "binding", "mode", "next", "allowedOperations", "requiredOperations"];
542
+ readonly properties: {
543
+ readonly id: {
544
+ readonly type: "string";
545
+ readonly minLength: 1;
546
+ };
547
+ readonly kind: {
548
+ readonly const: "handle";
549
+ };
550
+ readonly title: {
551
+ readonly type: "string";
552
+ readonly minLength: 1;
553
+ };
554
+ readonly reminders: {
555
+ type: string;
556
+ additionalProperties: boolean;
557
+ required: string[];
558
+ properties: {
559
+ afterSeconds: {
560
+ type: string;
561
+ minimum: number;
562
+ maximum: number;
563
+ };
564
+ everySeconds: {
565
+ type: string;
566
+ minimum: number;
567
+ maximum: number;
568
+ };
569
+ max: {
570
+ type: string;
571
+ minimum: number;
572
+ maximum: number;
573
+ };
574
+ to: {
575
+ type: string;
576
+ minItems: number;
577
+ maxItems: number;
578
+ items: {
579
+ const: string;
580
+ };
581
+ };
582
+ };
583
+ };
584
+ readonly binding: {
585
+ readonly type: "string";
586
+ readonly minLength: 1;
587
+ };
588
+ readonly mode: {
589
+ readonly enum: readonly ["single", "any", "all", "sequence"];
590
+ };
591
+ readonly next: {
592
+ readonly type: "string";
593
+ readonly minLength: 1;
594
+ };
595
+ readonly emptyPolicy: {
596
+ readonly const: "block";
597
+ };
598
+ readonly taskPageCode: {
599
+ readonly type: "string";
600
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_-]{0,63}$";
601
+ };
602
+ readonly allowedOperations: {
603
+ readonly type: "array";
604
+ readonly uniqueItems: true;
605
+ readonly items: {
606
+ readonly enum: readonly ["complete", "save_form", "return", "transfer", "delegate"];
607
+ };
608
+ };
609
+ readonly requiredOperations: {
610
+ readonly type: "array";
611
+ readonly uniqueItems: true;
612
+ readonly items: {
613
+ readonly enum: readonly ["complete", "save_form", "return", "transfer", "delegate"];
614
+ };
615
+ };
616
+ readonly returnPolicy: {
617
+ type: string;
618
+ additionalProperties: boolean;
619
+ required: string[];
620
+ properties: {
621
+ targets: {
622
+ type: string;
623
+ maxItems: number;
624
+ items: {
625
+ type: string;
626
+ additionalProperties: boolean;
627
+ required: string[];
628
+ properties: {
629
+ nodeId: {
630
+ readonly type: "string";
631
+ readonly minLength: 1;
632
+ };
633
+ routes: {
634
+ type: string;
635
+ minItems: number;
636
+ maxItems: number;
637
+ uniqueItems: boolean;
638
+ items: {
639
+ enum: string[];
640
+ };
641
+ };
642
+ defaultRoute: {
643
+ enum: string[];
644
+ };
645
+ };
646
+ };
647
+ };
648
+ };
649
+ };
650
+ readonly returnTargets: {
651
+ readonly type: "array";
652
+ readonly items: {
653
+ readonly type: "string";
654
+ readonly minLength: 1;
655
+ };
656
+ readonly uniqueItems: true;
657
+ };
658
+ readonly operationPolicy: {
659
+ readonly type: "object";
660
+ readonly additionalProperties: false;
661
+ readonly properties: {
662
+ [k: string]: {
663
+ type: string;
664
+ additionalProperties: boolean;
665
+ minProperties: number;
666
+ properties: {
667
+ reasonRequired?: {
668
+ type: string;
669
+ };
670
+ commentRequired?: {
671
+ type: string;
672
+ };
673
+ opinion?: {
674
+ enum: string[];
675
+ };
676
+ minimumOpinion?: {
677
+ enum: string[];
678
+ };
679
+ label: {
680
+ type: string;
681
+ minLength: number;
682
+ maxLength: number;
683
+ };
684
+ };
685
+ };
686
+ };
687
+ };
688
+ readonly administration: {
689
+ readonly type: "object";
690
+ readonly additionalProperties: false;
691
+ readonly properties: {
692
+ readonly modes: {
693
+ readonly type: "array";
694
+ readonly uniqueItems: true;
695
+ readonly minItems: 1;
696
+ readonly maxItems: 4;
697
+ readonly items: {
698
+ readonly enum: readonly ["single", "any", "all", "sequence"];
699
+ };
700
+ };
701
+ readonly assigneeProviders: {
702
+ readonly type: "array";
703
+ readonly uniqueItems: true;
704
+ readonly minItems: 1;
705
+ readonly maxItems: 3;
706
+ readonly items: {
707
+ readonly enum: readonly ["fixed_users", "app_role", "app_role_in_scope"];
708
+ };
709
+ };
710
+ readonly operations: {
711
+ readonly type: "array";
712
+ readonly uniqueItems: true;
713
+ readonly minItems: 1;
714
+ readonly maxItems: 5;
715
+ readonly items: {
716
+ readonly enum: readonly ["complete", "save_form", "return", "transfer", "delegate"];
717
+ };
718
+ };
719
+ };
720
+ };
721
+ readonly fieldPolicy: {
722
+ readonly type: "object";
723
+ readonly additionalProperties: false;
724
+ readonly properties: {
725
+ readonly default: {
726
+ readonly enum: readonly ["hidden", "readonly", "edit", "edit_required"];
727
+ };
728
+ readonly fields: {
729
+ readonly type: "object";
730
+ readonly additionalProperties: {
731
+ readonly enum: readonly ["hidden", "readonly", "edit", "edit_required"];
732
+ };
733
+ };
734
+ };
735
+ };
736
+ };
737
+ }, {
738
+ readonly type: "object";
739
+ readonly additionalProperties: false;
740
+ readonly required: readonly ["id", "kind", "title", "binding", "mode", "onApprove", "onReject"];
741
+ readonly properties: {
742
+ readonly id: {
743
+ readonly type: "string";
744
+ readonly minLength: 1;
745
+ };
746
+ readonly kind: {
747
+ readonly const: "approval";
748
+ };
749
+ readonly reminders: {
750
+ type: string;
751
+ additionalProperties: boolean;
752
+ required: string[];
753
+ properties: {
754
+ afterSeconds: {
755
+ type: string;
756
+ minimum: number;
757
+ maximum: number;
758
+ };
759
+ everySeconds: {
760
+ type: string;
761
+ minimum: number;
762
+ maximum: number;
763
+ };
764
+ max: {
765
+ type: string;
766
+ minimum: number;
767
+ maximum: number;
768
+ };
769
+ to: {
770
+ type: string;
771
+ minItems: number;
772
+ maxItems: number;
773
+ items: {
774
+ const: string;
775
+ };
776
+ };
777
+ };
778
+ };
779
+ readonly title: {
780
+ readonly type: "string";
781
+ readonly minLength: 1;
782
+ };
783
+ readonly binding: {
784
+ readonly type: "string";
785
+ readonly minLength: 1;
786
+ };
787
+ readonly mode: {
788
+ readonly enum: readonly ["single", "any", "all", "sequence"];
789
+ };
790
+ readonly emptyPolicy: {
791
+ readonly enum: readonly ["block", "skip"];
792
+ };
793
+ readonly initiatorApprovalPolicy: {
794
+ readonly enum: readonly ["manual", "auto_approve"];
795
+ };
796
+ readonly completionDeadline: {
797
+ readonly type: "object";
798
+ readonly additionalProperties: false;
799
+ readonly required: readonly ["afterSeconds", "action"];
800
+ readonly properties: {
801
+ readonly afterSeconds: {
802
+ readonly type: "integer";
803
+ readonly minimum: 1;
804
+ readonly maximum: 2592000;
805
+ };
806
+ readonly action: {
807
+ readonly const: "approve";
808
+ };
809
+ };
810
+ };
811
+ readonly onApprove: {
812
+ readonly type: "string";
813
+ readonly minLength: 1;
814
+ };
815
+ readonly onReject: {
816
+ readonly type: "string";
817
+ readonly minLength: 1;
818
+ };
819
+ readonly taskPageCode: {
820
+ readonly type: "string";
821
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_-]{0,63}$";
822
+ };
823
+ readonly operationPolicy: {
824
+ readonly type: "object";
825
+ readonly additionalProperties: false;
826
+ readonly properties: {
827
+ [k: string]: {
828
+ type: string;
829
+ additionalProperties: boolean;
830
+ minProperties: number;
831
+ properties: {
832
+ reasonRequired?: {
833
+ type: string;
834
+ };
835
+ commentRequired?: {
836
+ type: string;
837
+ };
838
+ opinion?: {
839
+ enum: string[];
840
+ };
841
+ minimumOpinion?: {
842
+ enum: string[];
843
+ };
844
+ label: {
845
+ type: string;
846
+ minLength: number;
847
+ maxLength: number;
848
+ pattern: string;
849
+ };
850
+ };
851
+ };
852
+ };
853
+ };
854
+ readonly administration: {
855
+ readonly type: "object";
856
+ readonly additionalProperties: false;
857
+ readonly properties: {
858
+ readonly modes: {
859
+ readonly type: "array";
860
+ readonly minItems: 1;
861
+ readonly maxItems: 4;
862
+ readonly uniqueItems: true;
863
+ readonly items: {
864
+ readonly enum: readonly ["single", "any", "all", "sequence"];
865
+ };
866
+ };
867
+ readonly assigneeProviders: {
868
+ readonly type: "array";
869
+ readonly minItems: 1;
870
+ readonly maxItems: 3;
871
+ readonly uniqueItems: true;
872
+ readonly items: {
873
+ readonly enum: readonly ["fixed_users", "app_role", "app_role_in_scope"];
874
+ };
875
+ };
876
+ readonly operations: {
877
+ readonly type: "array";
878
+ readonly minItems: 1;
879
+ readonly maxItems: 8;
880
+ readonly uniqueItems: true;
881
+ readonly items: {
882
+ readonly enum: readonly ["complete", "approve", "reject", "save_form", "return", "transfer", "delegate", "add_assignee"];
883
+ };
884
+ };
885
+ };
886
+ };
887
+ readonly requiredOperations: {
888
+ readonly type: "array";
889
+ readonly minItems: 1;
890
+ readonly maxItems: 7;
891
+ readonly uniqueItems: true;
892
+ readonly items: {
893
+ readonly enum: readonly ["complete", "approve", "reject", "save_form", "return", "transfer", "delegate", "add_assignee"];
894
+ };
895
+ };
896
+ readonly allowedOperations: {
897
+ readonly type: "array";
898
+ readonly uniqueItems: true;
899
+ readonly items: {
900
+ readonly enum: readonly ["approve", "reject", "return", "transfer", "delegate", "add_assignee", "resubmit", "save_form", "admin_reassign", "admin_override"];
901
+ };
902
+ };
903
+ readonly returnPolicy: {
904
+ type: string;
905
+ additionalProperties: boolean;
906
+ required: string[];
907
+ properties: {
908
+ targets: {
909
+ type: string;
910
+ maxItems: number;
911
+ items: {
912
+ type: string;
913
+ additionalProperties: boolean;
914
+ required: string[];
915
+ properties: {
916
+ nodeId: {
917
+ readonly type: "string";
918
+ readonly minLength: 1;
919
+ };
920
+ routes: {
921
+ type: string;
922
+ minItems: number;
923
+ maxItems: number;
924
+ uniqueItems: boolean;
925
+ items: {
926
+ enum: string[];
927
+ };
928
+ };
929
+ defaultRoute: {
930
+ enum: string[];
931
+ };
932
+ };
933
+ };
934
+ };
935
+ };
936
+ };
937
+ readonly returnTargets: {
938
+ readonly type: "array";
939
+ readonly uniqueItems: true;
940
+ readonly items: {
941
+ readonly type: "string";
942
+ readonly minLength: 1;
943
+ };
944
+ };
945
+ readonly fieldPolicy: {
946
+ readonly type: "object";
947
+ readonly additionalProperties: false;
948
+ readonly properties: {
949
+ readonly default: {
950
+ readonly enum: readonly ["hidden", "readonly", "edit", "edit_required"];
951
+ };
952
+ readonly fields: {
953
+ readonly type: "object";
954
+ readonly additionalProperties: {
955
+ readonly enum: readonly ["hidden", "readonly", "edit", "edit_required"];
956
+ };
957
+ };
958
+ };
959
+ };
960
+ };
961
+ }, {
962
+ readonly type: "object";
963
+ readonly additionalProperties: false;
964
+ readonly required: readonly ["id", "kind", "branches", "otherwise"];
965
+ readonly properties: {
966
+ readonly id: {
967
+ readonly type: "string";
968
+ readonly minLength: 1;
969
+ };
970
+ readonly kind: {
971
+ readonly const: "condition";
972
+ };
973
+ readonly title: {
974
+ readonly type: "string";
975
+ };
976
+ readonly branches: {
977
+ readonly type: "array";
978
+ readonly minItems: 1;
979
+ readonly items: {
980
+ readonly type: "object";
981
+ readonly additionalProperties: false;
982
+ readonly required: readonly ["when", "target"];
983
+ readonly properties: {
984
+ readonly when: {
985
+ readonly type: "object";
986
+ readonly required: readonly ["op"];
987
+ readonly properties: {
988
+ readonly op: {
989
+ readonly enum: readonly ["literal", "path", "eq", "neq", "gt", "gte", "lt", "lte", "in", "contains", "and", "or", "not", "exists"];
990
+ };
991
+ readonly value: {};
992
+ readonly path: {
993
+ readonly type: "string";
994
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_.]{0,254}$";
995
+ };
996
+ readonly left: {
997
+ readonly type: "object";
998
+ };
999
+ readonly right: {
1000
+ readonly type: "object";
1001
+ };
1002
+ readonly values: {
1003
+ readonly type: "array";
1004
+ readonly minItems: 1;
1005
+ readonly items: {
1006
+ readonly type: "object";
1007
+ };
1008
+ };
1009
+ };
1010
+ };
1011
+ readonly target: {
1012
+ readonly type: "string";
1013
+ readonly minLength: 1;
1014
+ };
1015
+ readonly label: {
1016
+ readonly type: "string";
1017
+ };
1018
+ };
1019
+ };
1020
+ };
1021
+ readonly otherwise: {
1022
+ readonly type: "string";
1023
+ readonly minLength: 1;
1024
+ };
1025
+ };
1026
+ }, {
1027
+ readonly type: "object";
1028
+ readonly additionalProperties: false;
1029
+ readonly required: readonly ["id", "kind", "title", "outcome"];
1030
+ readonly properties: {
1031
+ readonly id: {
1032
+ readonly type: "string";
1033
+ readonly minLength: 1;
1034
+ };
1035
+ readonly kind: {
1036
+ readonly const: "end";
1037
+ };
1038
+ readonly title: {
1039
+ readonly type: "string";
1040
+ readonly minLength: 1;
1041
+ };
1042
+ readonly outcome: {
1043
+ readonly type: "string";
1044
+ readonly minLength: 1;
1045
+ };
1046
+ };
1047
+ }, {
1048
+ readonly type: "object";
1049
+ readonly additionalProperties: false;
1050
+ readonly required: readonly ["id", "kind", "title", "binding", "next", "emptyPolicy"];
1051
+ readonly properties: {
1052
+ readonly id: {
1053
+ readonly type: "string";
1054
+ readonly minLength: 1;
1055
+ };
1056
+ readonly kind: {
1057
+ readonly const: "cc";
1058
+ };
1059
+ readonly title: {
1060
+ readonly type: "string";
1061
+ readonly minLength: 1;
1062
+ };
1063
+ readonly binding: {
1064
+ readonly type: "string";
1065
+ readonly minLength: 1;
1066
+ };
1067
+ readonly next: {
1068
+ readonly type: "string";
1069
+ readonly minLength: 1;
1070
+ };
1071
+ readonly emptyPolicy: {
1072
+ readonly enum: readonly ["block", "skip"];
1073
+ };
1074
+ readonly notify: {
1075
+ readonly type: "boolean";
1076
+ };
1077
+ readonly administration: {
1078
+ readonly type: "object";
1079
+ readonly additionalProperties: false;
1080
+ readonly properties: {
1081
+ readonly assigneeProviders: {
1082
+ readonly type: "array";
1083
+ readonly minItems: 1;
1084
+ readonly maxItems: 3;
1085
+ readonly uniqueItems: true;
1086
+ readonly items: {
1087
+ readonly enum: readonly ["fixed_users", "app_role", "app_role_in_scope"];
1088
+ };
1089
+ };
1090
+ };
1091
+ };
1092
+ };
1093
+ }, {
1094
+ readonly type: "object";
1095
+ readonly additionalProperties: false;
1096
+ readonly required: readonly ["id", "kind", "title", "next", "handler", "inputSchema", "outputSchema", "inputs"];
1097
+ readonly properties: {
1098
+ readonly id: {
1099
+ readonly type: "string";
1100
+ readonly minLength: 1;
1101
+ };
1102
+ readonly kind: {
1103
+ readonly const: "action";
1104
+ };
1105
+ readonly title: {
1106
+ readonly type: "string";
1107
+ readonly minLength: 1;
1108
+ };
1109
+ readonly next: {
1110
+ readonly type: "string";
1111
+ readonly minLength: 1;
1112
+ };
1113
+ readonly handler: {
1114
+ readonly type: "object";
1115
+ readonly additionalProperties: false;
1116
+ readonly required: readonly ["code", "version", "mode"];
1117
+ readonly properties: {
1118
+ readonly code: {
1119
+ readonly type: "string";
1120
+ readonly pattern: "^[a-z][a-z0-9-]{0,100}$";
1121
+ };
1122
+ readonly version: {
1123
+ readonly type: "integer";
1124
+ readonly minimum: 1;
1125
+ readonly maximum: 1000000;
1126
+ };
1127
+ readonly mode: {
1128
+ readonly enum: readonly ["pure", "reconciled-effect"];
1129
+ };
1130
+ readonly dataTransaction: {
1131
+ readonly const: true;
1132
+ };
1133
+ };
1134
+ readonly allOf: readonly [{
1135
+ readonly if: {
1136
+ readonly required: readonly ["dataTransaction"];
1137
+ };
1138
+ readonly then: {
1139
+ readonly properties: {
1140
+ readonly mode: {
1141
+ readonly const: "reconciled-effect";
1142
+ };
1143
+ };
1144
+ };
1145
+ }];
1146
+ };
1147
+ readonly notification: {
1148
+ readonly type: "object";
1149
+ readonly additionalProperties: false;
1150
+ readonly required: readonly ["template", "recipients"];
1151
+ readonly properties: {
1152
+ readonly template: {
1153
+ readonly const: "workflow_message";
1154
+ };
1155
+ readonly recipients: {
1156
+ readonly oneOf: readonly [{
1157
+ readonly type: "object";
1158
+ readonly additionalProperties: false;
1159
+ readonly required: readonly ["provider"];
1160
+ readonly properties: {
1161
+ readonly provider: {
1162
+ readonly const: "initiator";
1163
+ };
1164
+ };
1165
+ }, {
1166
+ readonly type: "object";
1167
+ readonly additionalProperties: false;
1168
+ readonly required: readonly ["provider", "users"];
1169
+ readonly properties: {
1170
+ readonly provider: {
1171
+ readonly const: "fixed_users";
1172
+ };
1173
+ readonly users: {
1174
+ readonly type: "array";
1175
+ readonly minItems: 1;
1176
+ readonly maxItems: 50;
1177
+ readonly uniqueItems: true;
1178
+ readonly items: {
1179
+ readonly type: "string";
1180
+ readonly minLength: 1;
1181
+ readonly maxLength: 255;
1182
+ };
1183
+ };
1184
+ };
1185
+ }, {
1186
+ readonly type: "object";
1187
+ readonly additionalProperties: false;
1188
+ readonly required: readonly ["provider", "roleCode"];
1189
+ readonly properties: {
1190
+ readonly provider: {
1191
+ readonly const: "app_role";
1192
+ };
1193
+ readonly roleCode: {
1194
+ readonly type: "string";
1195
+ readonly minLength: 1;
1196
+ };
1197
+ };
1198
+ }, {
1199
+ readonly type: "object";
1200
+ readonly additionalProperties: false;
1201
+ readonly required: readonly ["provider", "inputPath"];
1202
+ readonly properties: {
1203
+ readonly provider: {
1204
+ readonly const: "form_field_users";
1205
+ };
1206
+ readonly inputPath: {
1207
+ readonly type: "string";
1208
+ readonly minLength: 1;
1209
+ };
1210
+ };
1211
+ }];
1212
+ };
1213
+ };
1214
+ };
1215
+ readonly inputSchema: {
1216
+ readonly type: "object";
1217
+ };
1218
+ readonly outputSchema: {
1219
+ readonly type: "object";
1220
+ };
1221
+ readonly inputs: {
1222
+ readonly type: "object";
1223
+ readonly maxProperties: 32;
1224
+ readonly additionalProperties: {
1225
+ readonly oneOf: readonly [{
1226
+ readonly type: "object";
1227
+ readonly additionalProperties: false;
1228
+ readonly required: readonly ["source", "path"];
1229
+ readonly properties: {
1230
+ readonly source: {
1231
+ readonly const: "fact";
1232
+ };
1233
+ readonly path: {
1234
+ readonly type: "string";
1235
+ readonly minLength: 1;
1236
+ readonly maxLength: 256;
1237
+ };
1238
+ };
1239
+ }, {
1240
+ readonly type: "object";
1241
+ readonly additionalProperties: false;
1242
+ readonly required: readonly ["source", "value"];
1243
+ readonly properties: {
1244
+ readonly source: {
1245
+ readonly const: "literal";
1246
+ };
1247
+ readonly value: {};
1248
+ };
1249
+ }];
1250
+ };
1251
+ };
1252
+ };
1253
+ }, {
1254
+ readonly type: "object";
1255
+ readonly additionalProperties: false;
1256
+ readonly required: readonly ["id", "kind", "title", "taskPageCode", "next"];
1257
+ readonly properties: {
1258
+ readonly id: {
1259
+ readonly type: "string";
1260
+ readonly minLength: 1;
1261
+ };
1262
+ readonly kind: {
1263
+ readonly const: "correction";
1264
+ };
1265
+ readonly title: {
1266
+ readonly type: "string";
1267
+ readonly minLength: 1;
1268
+ };
1269
+ readonly reminders: {
1270
+ type: string;
1271
+ additionalProperties: boolean;
1272
+ required: string[];
1273
+ properties: {
1274
+ afterSeconds: {
1275
+ type: string;
1276
+ minimum: number;
1277
+ maximum: number;
1278
+ };
1279
+ everySeconds: {
1280
+ type: string;
1281
+ minimum: number;
1282
+ maximum: number;
1283
+ };
1284
+ max: {
1285
+ type: string;
1286
+ minimum: number;
1287
+ maximum: number;
1288
+ };
1289
+ to: {
1290
+ type: string;
1291
+ minItems: number;
1292
+ maxItems: number;
1293
+ items: {
1294
+ const: string;
1295
+ };
1296
+ };
1297
+ };
1298
+ };
1299
+ readonly taskPageCode: {
1300
+ readonly type: "string";
1301
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_-]{0,63}$";
1302
+ };
1303
+ readonly next: {
1304
+ readonly type: "string";
1305
+ readonly minLength: 1;
1306
+ };
1307
+ };
1308
+ }];
1309
+ };
1310
+ };
1311
+ };
1312
+ };
1313
+ export declare const workflowBindingSchema: {
1314
+ readonly $id: "openxiangda.workflow-binding/v2";
1315
+ readonly type: "object";
1316
+ readonly additionalProperties: false;
1317
+ readonly required: readonly ["schemaVersion", "workflowCode", "bindings"];
1318
+ readonly properties: {
1319
+ readonly schemaVersion: {
1320
+ readonly const: "openxiangda.workflow-binding/v2";
1321
+ };
1322
+ readonly workflowCode: {
1323
+ readonly type: "string";
1324
+ readonly minLength: 1;
1325
+ };
1326
+ readonly bindings: {
1327
+ readonly type: "object";
1328
+ readonly maxProperties: 200;
1329
+ readonly additionalProperties: {
1330
+ readonly type: "object";
1331
+ readonly additionalProperties: false;
1332
+ readonly required: readonly ["provider"];
1333
+ readonly allOf: readonly [{
1334
+ readonly if: {
1335
+ readonly required: readonly ["roleCodes"];
1336
+ };
1337
+ readonly then: {
1338
+ readonly properties: {
1339
+ readonly provider: {
1340
+ readonly enum: readonly ["app_role", "app_role_in_scope"];
1341
+ };
1342
+ };
1343
+ readonly not: {
1344
+ readonly anyOf: readonly [{
1345
+ readonly required: readonly ["roleCode"];
1346
+ }, {
1347
+ readonly required: readonly ["candidateField"];
1348
+ }];
1349
+ };
1350
+ };
1351
+ }, {
1352
+ readonly if: {
1353
+ readonly required: readonly ["candidateField"];
1354
+ };
1355
+ readonly then: {
1356
+ readonly required: readonly ["inputPath"];
1357
+ readonly properties: {
1358
+ readonly provider: {
1359
+ readonly const: "form_field_users";
1360
+ };
1361
+ };
1362
+ readonly not: {
1363
+ readonly anyOf: readonly [{
1364
+ readonly required: readonly ["roleCode"];
1365
+ }, {
1366
+ readonly required: readonly ["scope"];
1367
+ }, {
1368
+ readonly required: readonly ["routing"];
1369
+ }];
1370
+ };
1371
+ };
1372
+ }, {
1373
+ readonly if: {
1374
+ readonly required: readonly ["selectedInputPath"];
1375
+ };
1376
+ readonly then: {
1377
+ readonly properties: {
1378
+ readonly provider: {
1379
+ readonly enum: readonly ["app_role", "app_role_in_scope"];
1380
+ };
1381
+ };
1382
+ readonly anyOf: readonly [{
1383
+ readonly required: readonly ["roleCode"];
1384
+ }, {
1385
+ readonly required: readonly ["roleCodes"];
1386
+ }];
1387
+ readonly not: {
1388
+ readonly anyOf: readonly [{
1389
+ readonly required: readonly ["candidateField"];
1390
+ }, {
1391
+ readonly required: readonly ["inputPath"];
1392
+ }, {
1393
+ readonly required: readonly ["routing"];
1394
+ }];
1395
+ };
1396
+ };
1397
+ }];
1398
+ readonly properties: {
1399
+ readonly provider: {
1400
+ readonly enum: readonly ["fixed_users", "initiator", "input_users", "form_field_users", "department_supervisor", "supervisor_chain", "app_role", "app_role_in_scope", "business_relation", "previous_node_actor", "initiator_select", "application_provider"];
1401
+ };
1402
+ readonly users: {
1403
+ readonly type: "array";
1404
+ readonly uniqueItems: true;
1405
+ readonly items: {
1406
+ readonly type: "string";
1407
+ readonly minLength: 1;
1408
+ };
1409
+ };
1410
+ readonly inputPath: {
1411
+ readonly type: "string";
1412
+ };
1413
+ readonly selectedInputPath: {
1414
+ readonly type: "string";
1415
+ readonly maxLength: 255;
1416
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_-]*(?:\\.[A-Za-z][A-Za-z0-9_-]*)*$";
1417
+ };
1418
+ readonly candidateField: {
1419
+ readonly type: "string";
1420
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
1421
+ };
1422
+ readonly from: {
1423
+ readonly oneOf: readonly [{
1424
+ readonly const: "initiator";
1425
+ }, {
1426
+ readonly type: "object";
1427
+ readonly additionalProperties: false;
1428
+ readonly required: readonly ["field"];
1429
+ readonly properties: {
1430
+ readonly field: {
1431
+ readonly type: "string";
1432
+ readonly maxLength: 255;
1433
+ };
1434
+ };
1435
+ }];
1436
+ };
1437
+ readonly until: {
1438
+ readonly oneOf: readonly [{
1439
+ readonly const: "top";
1440
+ }, {
1441
+ readonly type: "object";
1442
+ readonly additionalProperties: false;
1443
+ readonly required: readonly ["level"];
1444
+ readonly properties: {
1445
+ readonly level: {
1446
+ readonly type: "integer";
1447
+ readonly minimum: 1;
1448
+ readonly maximum: 20;
1449
+ };
1450
+ };
1451
+ }, {
1452
+ readonly type: "object";
1453
+ readonly additionalProperties: false;
1454
+ readonly required: readonly ["roleCode"];
1455
+ readonly properties: {
1456
+ readonly roleCode: {
1457
+ readonly type: "string";
1458
+ readonly minLength: 1;
1459
+ };
1460
+ };
1461
+ }];
1462
+ };
1463
+ readonly continuous: {
1464
+ readonly type: "boolean";
1465
+ };
1466
+ readonly missing: {
1467
+ readonly enum: readonly ["skip_level", "block"];
1468
+ };
1469
+ readonly departmentIdFrom: {
1470
+ readonly type: "string";
1471
+ };
1472
+ readonly level: {
1473
+ readonly type: "integer";
1474
+ readonly minimum: 1;
1475
+ readonly maximum: 20;
1476
+ };
1477
+ readonly fallbackToAncestorSupervisor: {
1478
+ readonly type: "boolean";
1479
+ };
1480
+ readonly roleCode: {
1481
+ readonly type: "string";
1482
+ };
1483
+ readonly roleCodes: {
1484
+ readonly type: "array";
1485
+ readonly minItems: 2;
1486
+ readonly maxItems: 8;
1487
+ readonly uniqueItems: true;
1488
+ readonly items: {
1489
+ readonly type: "string";
1490
+ readonly maxLength: 128;
1491
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
1492
+ };
1493
+ };
1494
+ readonly scope: {
1495
+ readonly type: "object";
1496
+ readonly additionalProperties: false;
1497
+ readonly required: readonly ["dimension"];
1498
+ readonly properties: {
1499
+ readonly dimension: {
1500
+ readonly type: "string";
1501
+ readonly minLength: 1;
1502
+ };
1503
+ readonly valueFrom: {
1504
+ readonly type: "string";
1505
+ };
1506
+ readonly value: {
1507
+ readonly type: "string";
1508
+ };
1509
+ };
1510
+ };
1511
+ readonly relationCode: {
1512
+ readonly type: "string";
1513
+ };
1514
+ readonly resourceCode: {
1515
+ readonly type: "string";
1516
+ };
1517
+ readonly resourceIdFrom: {
1518
+ readonly type: "string";
1519
+ };
1520
+ readonly providerCode: {
1521
+ readonly type: "string";
1522
+ };
1523
+ readonly min: {
1524
+ readonly type: "integer";
1525
+ readonly minimum: 1;
1526
+ readonly maximum: 200;
1527
+ };
1528
+ readonly max: {
1529
+ readonly type: "integer";
1530
+ readonly minimum: 1;
1531
+ readonly maximum: 200;
1532
+ };
1533
+ readonly delegatable: {
1534
+ readonly type: "boolean";
1535
+ };
1536
+ readonly routing: {
1537
+ readonly type: "object";
1538
+ readonly additionalProperties: false;
1539
+ readonly required: readonly ["policyCode", "title", "strategy", "dimensions", "sources"];
1540
+ readonly properties: {
1541
+ readonly policyCode: {
1542
+ readonly type: "string";
1543
+ readonly pattern: "^[a-z][a-z0-9_-]{0,127}$";
1544
+ };
1545
+ readonly title: {
1546
+ readonly type: "string";
1547
+ readonly minLength: 1;
1548
+ readonly maxLength: 128;
1549
+ };
1550
+ readonly strategy: {
1551
+ readonly enum: readonly ["replace_then_append", "replace_only"];
1552
+ };
1553
+ readonly dimensions: {
1554
+ readonly type: "object";
1555
+ readonly maxProperties: 8;
1556
+ readonly propertyNames: {
1557
+ readonly type: "string";
1558
+ readonly pattern: "^[a-z][a-z0-9_-]{0,127}$";
1559
+ };
1560
+ readonly additionalProperties: {
1561
+ readonly type: "object";
1562
+ readonly additionalProperties: false;
1563
+ readonly required: readonly ["title", "valueFrom"];
1564
+ readonly properties: {
1565
+ readonly title: {
1566
+ readonly type: "string";
1567
+ readonly minLength: 1;
1568
+ readonly maxLength: 128;
1569
+ };
1570
+ readonly valueFrom: {
1571
+ readonly type: "string";
1572
+ readonly minLength: 1;
1573
+ readonly maxLength: 255;
1574
+ };
1575
+ };
1576
+ };
1577
+ };
1578
+ readonly sources: {
1579
+ readonly type: "object";
1580
+ readonly minProperties: 1;
1581
+ readonly maxProperties: 16;
1582
+ readonly propertyNames: {
1583
+ readonly type: "string";
1584
+ readonly pattern: "^[a-z][a-z0-9_-]{0,127}$";
1585
+ };
1586
+ readonly additionalProperties: {
1587
+ readonly type: "object";
1588
+ readonly additionalProperties: false;
1589
+ readonly required: readonly ["title", "provider", "roleCode"];
1590
+ readonly properties: {
1591
+ readonly title: {
1592
+ readonly type: "string";
1593
+ readonly minLength: 1;
1594
+ readonly maxLength: 128;
1595
+ };
1596
+ readonly provider: {
1597
+ readonly enum: readonly ["app_role", "app_role_in_scope"];
1598
+ };
1599
+ readonly roleCode: {
1600
+ readonly type: "string";
1601
+ readonly pattern: "^[a-z][a-z0-9_-]{0,127}$";
1602
+ };
1603
+ readonly scope: {
1604
+ readonly type: "object";
1605
+ readonly additionalProperties: false;
1606
+ readonly required: readonly ["dimension"];
1607
+ readonly properties: {
1608
+ readonly dimension: {
1609
+ readonly type: "string";
1610
+ readonly pattern: "^[a-z][a-z0-9_-]{0,127}$";
1611
+ };
1612
+ readonly value: {
1613
+ readonly type: "string";
1614
+ readonly minLength: 1;
1615
+ readonly maxLength: 255;
1616
+ };
1617
+ readonly valueFrom: {
1618
+ readonly type: "string";
1619
+ readonly minLength: 1;
1620
+ readonly maxLength: 255;
1621
+ };
1622
+ };
1623
+ };
1624
+ };
1625
+ };
1626
+ };
1627
+ };
1628
+ };
1629
+ };
1630
+ };
1631
+ };
1632
+ };
1633
+ };
1634
+ //# sourceMappingURL=workflow-schema.d.ts.map