openxiangda-contracts 2.43.0 → 2.63.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 (114) hide show
  1. package/dist/browser.d.ts +8 -0
  2. package/dist/browser.d.ts.map +1 -1
  3. package/dist/browser.js +8 -0
  4. package/dist/browser.js.map +1 -1
  5. package/dist/concurrency.d.ts +2 -2
  6. package/dist/concurrency.d.ts.map +1 -1
  7. package/dist/data-field-validation.d.ts.map +1 -1
  8. package/dist/data-field-validation.js +13 -2
  9. package/dist/data-field-validation.js.map +1 -1
  10. package/dist/field-value-schemas.d.ts +1 -1
  11. package/dist/field-value-schemas.d.ts.map +1 -1
  12. package/dist/field-value-schemas.js +2 -1
  13. package/dist/field-value-schemas.js.map +1 -1
  14. package/dist/index.d.ts +8 -0
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +8 -0
  17. package/dist/index.js.map +1 -1
  18. package/dist/native-compiler/compiler.d.ts +1 -1
  19. package/dist/native-compiler/compiler.d.ts.map +1 -1
  20. package/dist/native-compiler/compiler.js +266 -22
  21. package/dist/native-compiler/compiler.js.map +1 -1
  22. package/dist/native-compiler/data-business-command.d.ts +42 -0
  23. package/dist/native-compiler/data-business-command.d.ts.map +1 -0
  24. package/dist/native-compiler/data-business-command.js +88 -0
  25. package/dist/native-compiler/data-business-command.js.map +1 -0
  26. package/dist/native-compiler/data-capacity.d.ts +8 -0
  27. package/dist/native-compiler/data-capacity.d.ts.map +1 -0
  28. package/dist/native-compiler/data-capacity.js +15 -0
  29. package/dist/native-compiler/data-capacity.js.map +1 -0
  30. package/dist/native-compiler/data-field.d.ts +2 -0
  31. package/dist/native-compiler/data-field.d.ts.map +1 -1
  32. package/dist/native-compiler/data-field.js +7 -2
  33. package/dist/native-compiler/data-field.js.map +1 -1
  34. package/dist/native-compiler/data-surface.d.ts +1 -1
  35. package/dist/native-compiler/data-surface.d.ts.map +1 -1
  36. package/dist/native-compiler/data-surface.js +2 -0
  37. package/dist/native-compiler/data-surface.js.map +1 -1
  38. package/dist/native-compiler/index.cjs +5 -5
  39. package/dist/native-compiler/index.d.ts +10 -0
  40. package/dist/native-compiler/index.d.ts.map +1 -1
  41. package/dist/native-compiler/index.js +5 -5
  42. package/dist/native-compiler/managed-concurrency.js +2 -2
  43. package/dist/native-compiler/managed-concurrency.js.map +1 -1
  44. package/dist/native-compiler/resource-view.d.ts +4 -0
  45. package/dist/native-compiler/resource-view.d.ts.map +1 -0
  46. package/dist/native-compiler/resource-view.js +20 -0
  47. package/dist/native-compiler/resource-view.js.map +1 -0
  48. package/dist/native-compiler/unique-keys.d.ts +21 -0
  49. package/dist/native-compiler/unique-keys.d.ts.map +1 -1
  50. package/dist/native-compiler/unique-keys.js +17 -3
  51. package/dist/native-compiler/unique-keys.js.map +1 -1
  52. package/dist/native-compiler/user-candidates.d.ts +72 -0
  53. package/dist/native-compiler/user-candidates.d.ts.map +1 -0
  54. package/dist/native-compiler/user-candidates.js +184 -0
  55. package/dist/native-compiler/user-candidates.js.map +1 -0
  56. package/dist/native-compiler/workflow-approval-empty.d.ts +28 -0
  57. package/dist/native-compiler/workflow-approval-empty.d.ts.map +1 -0
  58. package/dist/native-compiler/workflow-approval-empty.js +34 -0
  59. package/dist/native-compiler/workflow-approval-empty.js.map +1 -0
  60. package/dist/native-compiler/workflow-business-command.d.ts +108 -0
  61. package/dist/native-compiler/workflow-business-command.d.ts.map +1 -0
  62. package/dist/native-compiler/workflow-business-command.js +58 -0
  63. package/dist/native-compiler/workflow-business-command.js.map +1 -0
  64. package/dist/native-compiler/workflow-graph.d.ts +8 -0
  65. package/dist/native-compiler/workflow-graph.d.ts.map +1 -1
  66. package/dist/native-compiler/workflow-graph.js +1 -0
  67. package/dist/native-compiler/workflow-graph.js.map +1 -1
  68. package/dist/native-compiler/workflow-initiator-approval.d.ts +28 -0
  69. package/dist/native-compiler/workflow-initiator-approval.d.ts.map +1 -0
  70. package/dist/native-compiler/workflow-initiator-approval.js +30 -0
  71. package/dist/native-compiler/workflow-initiator-approval.js.map +1 -0
  72. package/dist/native-compiler/workflow-instance-policy.d.ts +2 -0
  73. package/dist/native-compiler/workflow-instance-policy.d.ts.map +1 -1
  74. package/dist/native-compiler/workflow-instance-policy.js +9 -4
  75. package/dist/native-compiler/workflow-instance-policy.js.map +1 -1
  76. package/dist/native-compiler/workflow-launch-preflight.d.ts +22 -0
  77. package/dist/native-compiler/workflow-launch-preflight.d.ts.map +1 -0
  78. package/dist/native-compiler/workflow-launch-preflight.js +30 -0
  79. package/dist/native-compiler/workflow-launch-preflight.js.map +1 -0
  80. package/dist/native-compiler/workflow-node-administration.d.ts +6 -0
  81. package/dist/native-compiler/workflow-node-administration.d.ts.map +1 -1
  82. package/dist/native-compiler/workflow-node-administration.js +9 -2
  83. package/dist/native-compiler/workflow-node-administration.js.map +1 -1
  84. package/dist/native-compiler/workflow-rejection-notification.d.ts +31 -0
  85. package/dist/native-compiler/workflow-rejection-notification.d.ts.map +1 -0
  86. package/dist/native-compiler/workflow-rejection-notification.js +47 -0
  87. package/dist/native-compiler/workflow-rejection-notification.js.map +1 -0
  88. package/dist/native-compiler/workflow-task-page.d.ts +44 -3
  89. package/dist/native-compiler/workflow-task-page.d.ts.map +1 -1
  90. package/dist/native-compiler/workflow-task-page.js +108 -9
  91. package/dist/native-compiler/workflow-task-page.js.map +1 -1
  92. package/dist/native-version.d.ts +19 -1
  93. package/dist/native-version.d.ts.map +1 -1
  94. package/dist/native-version.js +19 -1
  95. package/dist/native-version.js.map +1 -1
  96. package/dist/native.d.ts +15 -2
  97. package/dist/native.d.ts.map +1 -1
  98. package/dist/native.js.map +1 -1
  99. package/dist/schemas.d.ts +3048 -212
  100. package/dist/schemas.d.ts.map +1 -1
  101. package/dist/schemas.js +253 -9
  102. package/dist/schemas.js.map +1 -1
  103. package/dist/surface.d.ts +3 -2
  104. package/dist/surface.d.ts.map +1 -1
  105. package/dist/surface.js +1 -19
  106. package/dist/surface.js.map +1 -1
  107. package/dist/types.d.ts +286 -8
  108. package/dist/types.d.ts.map +1 -1
  109. package/dist/types.js +4 -0
  110. package/dist/types.js.map +1 -1
  111. package/dist/validation.d.ts.map +1 -1
  112. package/dist/validation.js +42 -5
  113. package/dist/validation.js.map +1 -1
  114. package/package.json +1 -1
package/dist/schemas.d.ts CHANGED
@@ -1246,6 +1246,15 @@ export declare const currentInitiatorDirectorySnapshotSchema: {
1246
1246
  readonly type: "null";
1247
1247
  }];
1248
1248
  };
1249
+ readonly phone: {
1250
+ readonly anyOf: readonly [{
1251
+ readonly type: "string";
1252
+ readonly minLength: 1;
1253
+ readonly maxLength: 80;
1254
+ }, {
1255
+ readonly type: "null";
1256
+ }];
1257
+ };
1249
1258
  readonly primaryDepartment: {
1250
1259
  readonly anyOf: readonly [{
1251
1260
  readonly type: "object";
@@ -1961,6 +1970,90 @@ export declare const nativeAuthorizationManagementCatalogSchema: {
1961
1970
  readonly additionalProperties: false;
1962
1971
  readonly required: readonly ["dimensionCode", "allRoles", "roleCodes", "unrestrictedRoleCodes", "rules"];
1963
1972
  readonly properties: {
1973
+ readonly workflowBindings: {
1974
+ readonly type: "array";
1975
+ readonly maxItems: 10000;
1976
+ readonly items: {
1977
+ readonly type: "object";
1978
+ readonly additionalProperties: false;
1979
+ readonly required: readonly ["workflowCode", "nodeId", "roleCode", "definitionVersion", "bindingVersion", "configurationRevision", "source", "contexts"];
1980
+ readonly properties: {
1981
+ readonly workflowCode: {
1982
+ readonly type: "string";
1983
+ readonly minLength: 1;
1984
+ };
1985
+ readonly nodeId: {
1986
+ readonly type: "string";
1987
+ readonly minLength: 1;
1988
+ };
1989
+ readonly roleCode: {
1990
+ readonly type: "string";
1991
+ readonly minLength: 1;
1992
+ readonly maxLength: 255;
1993
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
1994
+ };
1995
+ readonly definitionVersion: {
1996
+ readonly type: "integer";
1997
+ readonly minimum: 1;
1998
+ };
1999
+ readonly bindingVersion: {
2000
+ readonly type: "integer";
2001
+ readonly minimum: 1;
2002
+ };
2003
+ readonly configurationRevision: {
2004
+ readonly type: "integer";
2005
+ readonly minimum: 0;
2006
+ };
2007
+ readonly source: {
2008
+ readonly enum: readonly ["default_binding", "node_override", "routing_source"];
2009
+ };
2010
+ readonly contexts: {
2011
+ readonly type: "array";
2012
+ readonly minItems: 1;
2013
+ readonly maxItems: 2;
2014
+ readonly uniqueItems: true;
2015
+ readonly items: {
2016
+ readonly enum: readonly ["active", "in_flight"];
2017
+ };
2018
+ };
2019
+ };
2020
+ };
2021
+ };
2022
+ readonly candidateFields: {
2023
+ readonly type: "array";
2024
+ readonly maxItems: 10000;
2025
+ readonly items: {
2026
+ readonly type: "object";
2027
+ readonly additionalProperties: false;
2028
+ readonly required: readonly ["dataLogicalRevisionId", "resourceCode", "fieldCode", "roleCode", "operation"];
2029
+ readonly properties: {
2030
+ readonly dataLogicalRevisionId: {
2031
+ readonly type: "string";
2032
+ readonly minLength: 1;
2033
+ };
2034
+ readonly resourceCode: {
2035
+ readonly type: "string";
2036
+ readonly minLength: 1;
2037
+ readonly maxLength: 255;
2038
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
2039
+ };
2040
+ readonly fieldCode: {
2041
+ readonly type: "string";
2042
+ readonly minLength: 1;
2043
+ };
2044
+ readonly roleCode: {
2045
+ readonly type: "string";
2046
+ readonly minLength: 1;
2047
+ readonly maxLength: 255;
2048
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
2049
+ };
2050
+ readonly operation: {
2051
+ readonly type: "string";
2052
+ readonly minLength: 1;
2053
+ };
2054
+ };
2055
+ };
2056
+ };
1964
2057
  readonly dimensionCode: {
1965
2058
  readonly type: "string";
1966
2059
  readonly minLength: 1;
@@ -4622,6 +4715,27 @@ export declare const dataFieldSourceQuerySchema: {
4622
4715
  readonly schemaVersion: {
4623
4716
  readonly const: "openxiangda.data-field-source-query/v2";
4624
4717
  };
4718
+ readonly action: {
4719
+ readonly type: "object";
4720
+ readonly additionalProperties: false;
4721
+ readonly required: readonly ["operationCode", "recordId", "expectedRevision"];
4722
+ readonly properties: {
4723
+ readonly operationCode: {
4724
+ readonly type: "string";
4725
+ readonly minLength: 1;
4726
+ readonly maxLength: 128;
4727
+ };
4728
+ readonly recordId: {
4729
+ readonly type: "string";
4730
+ readonly format: "uuid";
4731
+ };
4732
+ readonly expectedRevision: {
4733
+ readonly type: "integer";
4734
+ readonly minimum: 1;
4735
+ readonly maximum: number;
4736
+ };
4737
+ };
4738
+ };
4625
4739
  readonly operation: {
4626
4740
  readonly enum: readonly ["create", "update"];
4627
4741
  };
@@ -4766,6 +4880,278 @@ export declare const dataFieldSourcePageSchema: {
4766
4880
  };
4767
4881
  };
4768
4882
  };
4883
+ /** Each endpoint accepts exactly one owner context, never caller-supplied role/scope. */
4884
+ export declare const userCandidatesQuerySchema: {
4885
+ readonly $id: "openxiangda.user-candidates-query/v2";
4886
+ readonly oneOf: readonly [{
4887
+ readonly type: "object";
4888
+ readonly additionalProperties: false;
4889
+ readonly required: readonly ["schemaVersion", "operation"];
4890
+ readonly properties: {
4891
+ readonly operation: {
4892
+ readonly const: "create";
4893
+ };
4894
+ readonly launch: {
4895
+ readonly type: "object";
4896
+ readonly additionalProperties: false;
4897
+ readonly required: readonly ["workflowCode", "operationCode"];
4898
+ readonly properties: {
4899
+ readonly workflowCode: {
4900
+ readonly type: "string";
4901
+ readonly minLength: 1;
4902
+ readonly maxLength: 128;
4903
+ };
4904
+ readonly operationCode: {
4905
+ readonly type: "string";
4906
+ readonly minLength: 1;
4907
+ readonly maxLength: 255;
4908
+ };
4909
+ };
4910
+ };
4911
+ readonly schemaVersion: {
4912
+ readonly const: "openxiangda.user-candidates-query/v2";
4913
+ };
4914
+ readonly keyword: {
4915
+ readonly type: "string";
4916
+ readonly maxLength: 64;
4917
+ };
4918
+ readonly cursor: {
4919
+ readonly type: "string";
4920
+ readonly minLength: 1;
4921
+ readonly maxLength: 2048;
4922
+ };
4923
+ readonly selectedIds: {
4924
+ readonly type: "array";
4925
+ readonly maxItems: 200;
4926
+ readonly uniqueItems: true;
4927
+ readonly items: {
4928
+ readonly type: "string";
4929
+ readonly minLength: 1;
4930
+ readonly maxLength: 255;
4931
+ readonly pattern: "^\\S(?:[\\s\\S]*\\S)?$";
4932
+ };
4933
+ };
4934
+ };
4935
+ }, {
4936
+ readonly type: "object";
4937
+ readonly additionalProperties: false;
4938
+ readonly required: readonly ["schemaVersion", "operation", "recordId", "expectedRevision"];
4939
+ readonly properties: {
4940
+ readonly operation: {
4941
+ readonly const: "update";
4942
+ };
4943
+ readonly recordId: {
4944
+ readonly type: "string";
4945
+ readonly minLength: 1;
4946
+ readonly maxLength: 255;
4947
+ readonly pattern: "^\\S(?:[\\s\\S]*\\S)?$";
4948
+ };
4949
+ readonly expectedRevision: {
4950
+ readonly type: "integer";
4951
+ readonly minimum: 1;
4952
+ readonly maximum: number;
4953
+ };
4954
+ readonly action: {
4955
+ readonly type: "object";
4956
+ readonly additionalProperties: false;
4957
+ readonly required: readonly ["operationCode", "recordId", "expectedRevision"];
4958
+ readonly properties: {
4959
+ readonly operationCode: {
4960
+ readonly type: "string";
4961
+ readonly minLength: 1;
4962
+ readonly maxLength: 128;
4963
+ };
4964
+ readonly recordId: {
4965
+ readonly type: "string";
4966
+ readonly format: "uuid";
4967
+ };
4968
+ readonly expectedRevision: {
4969
+ readonly type: "integer";
4970
+ readonly minimum: 1;
4971
+ readonly maximum: number;
4972
+ };
4973
+ };
4974
+ };
4975
+ readonly launch: {
4976
+ readonly type: "object";
4977
+ readonly additionalProperties: false;
4978
+ readonly required: readonly ["workflowCode", "operationCode"];
4979
+ readonly properties: {
4980
+ readonly workflowCode: {
4981
+ readonly type: "string";
4982
+ readonly minLength: 1;
4983
+ readonly maxLength: 128;
4984
+ };
4985
+ readonly operationCode: {
4986
+ readonly type: "string";
4987
+ readonly minLength: 1;
4988
+ readonly maxLength: 255;
4989
+ };
4990
+ };
4991
+ };
4992
+ readonly schemaVersion: {
4993
+ readonly const: "openxiangda.user-candidates-query/v2";
4994
+ };
4995
+ readonly keyword: {
4996
+ readonly type: "string";
4997
+ readonly maxLength: 64;
4998
+ };
4999
+ readonly cursor: {
5000
+ readonly type: "string";
5001
+ readonly minLength: 1;
5002
+ readonly maxLength: 2048;
5003
+ };
5004
+ readonly selectedIds: {
5005
+ readonly type: "array";
5006
+ readonly maxItems: 200;
5007
+ readonly uniqueItems: true;
5008
+ readonly items: {
5009
+ readonly type: "string";
5010
+ readonly minLength: 1;
5011
+ readonly maxLength: 255;
5012
+ readonly pattern: "^\\S(?:[\\s\\S]*\\S)?$";
5013
+ };
5014
+ };
5015
+ };
5016
+ }, {
5017
+ readonly type: "object";
5018
+ readonly additionalProperties: false;
5019
+ readonly required: readonly ["schemaVersion", "expectedRevision", "expectedTaskVersion"];
5020
+ readonly properties: {
5021
+ readonly expectedRevision: {
5022
+ readonly type: "integer";
5023
+ readonly minimum: 1;
5024
+ readonly maximum: number;
5025
+ };
5026
+ readonly expectedTaskVersion: {
5027
+ readonly type: "integer";
5028
+ readonly minimum: 1;
5029
+ readonly maximum: number;
5030
+ };
5031
+ readonly schemaVersion: {
5032
+ readonly const: "openxiangda.user-candidates-query/v2";
5033
+ };
5034
+ readonly keyword: {
5035
+ readonly type: "string";
5036
+ readonly maxLength: 64;
5037
+ };
5038
+ readonly cursor: {
5039
+ readonly type: "string";
5040
+ readonly minLength: 1;
5041
+ readonly maxLength: 2048;
5042
+ };
5043
+ readonly selectedIds: {
5044
+ readonly type: "array";
5045
+ readonly maxItems: 200;
5046
+ readonly uniqueItems: true;
5047
+ readonly items: {
5048
+ readonly type: "string";
5049
+ readonly minLength: 1;
5050
+ readonly maxLength: 255;
5051
+ readonly pattern: "^\\S(?:[\\s\\S]*\\S)?$";
5052
+ };
5053
+ };
5054
+ };
5055
+ }];
5056
+ };
5057
+ export declare const userCandidatesPageSchema: {
5058
+ readonly $id: "openxiangda.user-candidates-page/v2";
5059
+ readonly type: "object";
5060
+ readonly additionalProperties: false;
5061
+ readonly required: readonly ["schemaVersion", "resourceCode", "fieldCode", "environmentHeadRevision", "evaluatedAt", "items", "selected", "nextCursor"];
5062
+ readonly properties: {
5063
+ readonly schemaVersion: {
5064
+ readonly const: "openxiangda.user-candidates-page/v2";
5065
+ };
5066
+ readonly resourceCode: {
5067
+ readonly type: "string";
5068
+ readonly minLength: 1;
5069
+ readonly maxLength: 255;
5070
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
5071
+ };
5072
+ readonly fieldCode: {
5073
+ readonly type: "string";
5074
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
5075
+ };
5076
+ readonly environmentHeadRevision: {
5077
+ readonly type: "integer";
5078
+ readonly minimum: 1;
5079
+ readonly maximum: number;
5080
+ };
5081
+ readonly recordRevision: {
5082
+ readonly type: "integer";
5083
+ readonly minimum: 1;
5084
+ readonly maximum: number;
5085
+ };
5086
+ readonly evaluatedAt: {
5087
+ readonly type: "string";
5088
+ readonly format: "date-time";
5089
+ };
5090
+ readonly items: {
5091
+ readonly type: "array";
5092
+ readonly maxItems: 50;
5093
+ readonly items: {
5094
+ readonly type: "object";
5095
+ readonly additionalProperties: false;
5096
+ readonly required: readonly ["value", "label"];
5097
+ readonly properties: {
5098
+ readonly value: {
5099
+ readonly type: "string";
5100
+ readonly minLength: 1;
5101
+ readonly maxLength: 255;
5102
+ readonly pattern: "^\\S(?:[\\s\\S]*\\S)?$";
5103
+ };
5104
+ readonly label: {
5105
+ readonly type: "string";
5106
+ };
5107
+ };
5108
+ };
5109
+ };
5110
+ readonly selected: {
5111
+ readonly type: "array";
5112
+ readonly maxItems: 200;
5113
+ readonly items: {
5114
+ readonly oneOf: readonly [{
5115
+ readonly required: readonly ["value", "label", "status"];
5116
+ readonly properties: {
5117
+ readonly status: {
5118
+ readonly const: "valid";
5119
+ };
5120
+ readonly value: {
5121
+ readonly type: "string";
5122
+ readonly minLength: 1;
5123
+ readonly maxLength: 255;
5124
+ readonly pattern: "^\\S(?:[\\s\\S]*\\S)?$";
5125
+ };
5126
+ readonly label: {
5127
+ readonly type: "string";
5128
+ };
5129
+ };
5130
+ readonly type: "object";
5131
+ readonly additionalProperties: false;
5132
+ }, {
5133
+ readonly type: "object";
5134
+ readonly additionalProperties: false;
5135
+ readonly required: readonly ["value", "status"];
5136
+ readonly properties: {
5137
+ readonly value: {
5138
+ readonly type: "string";
5139
+ readonly minLength: 1;
5140
+ readonly maxLength: 255;
5141
+ readonly pattern: "^\\S(?:[\\s\\S]*\\S)?$";
5142
+ };
5143
+ readonly status: {
5144
+ readonly const: "invalid";
5145
+ };
5146
+ };
5147
+ }];
5148
+ };
5149
+ };
5150
+ readonly nextCursor: {
5151
+ readonly type: readonly ["string", "null"];
5152
+ };
5153
+ };
5154
+ };
4769
5155
  export declare const dataRefSchema: {
4770
5156
  readonly $id: "openxiangda.data-ref/v2";
4771
5157
  readonly type: "object";
@@ -4797,6 +5183,67 @@ export declare const dataRefSchema: {
4797
5183
  };
4798
5184
  };
4799
5185
  };
5186
+ export declare const dataFieldUserCandidatesSchema: {
5187
+ readonly type: "object";
5188
+ readonly additionalProperties: false;
5189
+ readonly required: readonly ["kind", "roleCode"];
5190
+ readonly properties: {
5191
+ readonly kind: {
5192
+ readonly const: "app-role";
5193
+ };
5194
+ readonly roleCode: {
5195
+ readonly type: "string";
5196
+ readonly minLength: 1;
5197
+ readonly maxLength: 128;
5198
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
5199
+ };
5200
+ readonly pageSize: {
5201
+ readonly type: "integer";
5202
+ readonly minimum: 1;
5203
+ readonly maximum: 50;
5204
+ };
5205
+ readonly scope: {
5206
+ readonly type: "object";
5207
+ readonly additionalProperties: false;
5208
+ readonly required: readonly ["dimensionCode", "operation"];
5209
+ readonly properties: {
5210
+ readonly dimensionCode: {
5211
+ readonly type: "string";
5212
+ readonly minLength: 1;
5213
+ readonly maxLength: 128;
5214
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
5215
+ };
5216
+ readonly operation: {
5217
+ readonly type: "string";
5218
+ readonly minLength: 1;
5219
+ readonly maxLength: 64;
5220
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
5221
+ };
5222
+ readonly field: {
5223
+ readonly type: "string";
5224
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
5225
+ };
5226
+ readonly value: {
5227
+ readonly type: "string";
5228
+ readonly minLength: 1;
5229
+ readonly maxLength: 255;
5230
+ readonly pattern: "^\\S(?:[\\s\\S]*\\S)?$";
5231
+ };
5232
+ };
5233
+ readonly oneOf: readonly [{
5234
+ readonly required: readonly ["field"];
5235
+ readonly not: {
5236
+ readonly required: readonly ["value"];
5237
+ };
5238
+ }, {
5239
+ readonly required: readonly ["value"];
5240
+ readonly not: {
5241
+ readonly required: readonly ["field"];
5242
+ };
5243
+ }];
5244
+ };
5245
+ };
5246
+ };
4800
5247
  export declare const dataResourceSchema: {
4801
5248
  readonly $id: "openxiangda.data-resource/v2";
4802
5249
  readonly $defs: {
@@ -4858,6 +5305,79 @@ export declare const dataResourceSchema: {
4858
5305
  readonly type: "string";
4859
5306
  readonly minLength: 1;
4860
5307
  };
5308
+ readonly recordComments: {
5309
+ readonly type: "object";
5310
+ readonly additionalProperties: false;
5311
+ readonly required: readonly ["read", "create"];
5312
+ readonly properties: {
5313
+ readonly read: {
5314
+ readonly type: "array";
5315
+ readonly maxItems: 20;
5316
+ readonly uniqueItems: true;
5317
+ readonly items: {
5318
+ readonly type: "string";
5319
+ readonly minLength: 1;
5320
+ };
5321
+ };
5322
+ readonly create: {
5323
+ readonly type: "array";
5324
+ readonly maxItems: 20;
5325
+ readonly uniqueItems: true;
5326
+ readonly items: {
5327
+ readonly type: "string";
5328
+ readonly minLength: 1;
5329
+ };
5330
+ };
5331
+ };
5332
+ };
5333
+ readonly recordDeletion: {
5334
+ readonly type: "object";
5335
+ readonly additionalProperties: false;
5336
+ readonly required: readonly ["delete"];
5337
+ readonly properties: {
5338
+ readonly delete: {
5339
+ readonly type: "array";
5340
+ readonly maxItems: 20;
5341
+ readonly uniqueItems: true;
5342
+ readonly items: {
5343
+ readonly type: "string";
5344
+ readonly minLength: 1;
5345
+ };
5346
+ };
5347
+ };
5348
+ };
5349
+ readonly recordPrint: {
5350
+ readonly type: "object";
5351
+ readonly additionalProperties: false;
5352
+ readonly required: readonly ["read"];
5353
+ readonly properties: {
5354
+ readonly read: {
5355
+ readonly type: "array";
5356
+ readonly maxItems: 20;
5357
+ readonly uniqueItems: true;
5358
+ readonly items: {
5359
+ readonly type: "string";
5360
+ readonly minLength: 1;
5361
+ };
5362
+ };
5363
+ };
5364
+ };
5365
+ readonly workflowHistory: {
5366
+ readonly type: "object";
5367
+ readonly additionalProperties: false;
5368
+ readonly required: readonly ["read"];
5369
+ readonly properties: {
5370
+ readonly read: {
5371
+ readonly type: "array";
5372
+ readonly maxItems: 20;
5373
+ readonly uniqueItems: true;
5374
+ readonly items: {
5375
+ readonly type: "string";
5376
+ readonly minLength: 1;
5377
+ };
5378
+ };
5379
+ };
5380
+ };
4861
5381
  readonly schema: {
4862
5382
  readonly type: "object";
4863
5383
  readonly additionalProperties: false;
@@ -4871,6 +5391,17 @@ export declare const dataResourceSchema: {
4871
5391
  readonly type: "object";
4872
5392
  readonly additionalProperties: false;
4873
5393
  readonly allOf: readonly [{
5394
+ readonly if: {
5395
+ readonly required: readonly ["userCandidates"];
5396
+ };
5397
+ readonly then: {
5398
+ readonly properties: {
5399
+ readonly type: {
5400
+ readonly enum: readonly ["user.single", "user.multiple"];
5401
+ };
5402
+ };
5403
+ };
5404
+ }, {
4874
5405
  readonly if: {
4875
5406
  readonly properties: {
4876
5407
  readonly type: {
@@ -5023,6 +5554,67 @@ export declare const dataResourceSchema: {
5023
5554
  };
5024
5555
  };
5025
5556
  };
5557
+ readonly userCandidates: {
5558
+ readonly type: "object";
5559
+ readonly additionalProperties: false;
5560
+ readonly required: readonly ["kind", "roleCode"];
5561
+ readonly properties: {
5562
+ readonly kind: {
5563
+ readonly const: "app-role";
5564
+ };
5565
+ readonly roleCode: {
5566
+ readonly type: "string";
5567
+ readonly minLength: 1;
5568
+ readonly maxLength: 128;
5569
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
5570
+ };
5571
+ readonly pageSize: {
5572
+ readonly type: "integer";
5573
+ readonly minimum: 1;
5574
+ readonly maximum: 50;
5575
+ };
5576
+ readonly scope: {
5577
+ readonly type: "object";
5578
+ readonly additionalProperties: false;
5579
+ readonly required: readonly ["dimensionCode", "operation"];
5580
+ readonly properties: {
5581
+ readonly dimensionCode: {
5582
+ readonly type: "string";
5583
+ readonly minLength: 1;
5584
+ readonly maxLength: 128;
5585
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
5586
+ };
5587
+ readonly operation: {
5588
+ readonly type: "string";
5589
+ readonly minLength: 1;
5590
+ readonly maxLength: 64;
5591
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
5592
+ };
5593
+ readonly field: {
5594
+ readonly type: "string";
5595
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
5596
+ };
5597
+ readonly value: {
5598
+ readonly type: "string";
5599
+ readonly minLength: 1;
5600
+ readonly maxLength: 255;
5601
+ readonly pattern: "^\\S(?:[\\s\\S]*\\S)?$";
5602
+ };
5603
+ };
5604
+ readonly oneOf: readonly [{
5605
+ readonly required: readonly ["field"];
5606
+ readonly not: {
5607
+ readonly required: readonly ["value"];
5608
+ };
5609
+ }, {
5610
+ readonly required: readonly ["value"];
5611
+ readonly not: {
5612
+ readonly required: readonly ["field"];
5613
+ };
5614
+ }];
5615
+ };
5616
+ };
5617
+ };
5026
5618
  readonly maxLength: {
5027
5619
  readonly type: "integer";
5028
5620
  readonly minimum: 1;
@@ -5117,7 +5709,7 @@ export declare const dataResourceSchema: {
5117
5709
  readonly maxRows: {
5118
5710
  readonly type: "integer";
5119
5711
  readonly minimum: 1;
5120
- readonly maximum: 49;
5712
+ readonly maximum: 100;
5121
5713
  };
5122
5714
  };
5123
5715
  };
@@ -5177,6 +5769,7 @@ export declare const dataResourceSchema: {
5177
5769
  enum: string[];
5178
5770
  };
5179
5771
  values?: never;
5772
+ value?: never;
5180
5773
  };
5181
5774
  } | {
5182
5775
  type: string;
@@ -5201,6 +5794,24 @@ export declare const dataResourceSchema: {
5201
5794
  maxLength: number;
5202
5795
  };
5203
5796
  };
5797
+ value?: never;
5798
+ };
5799
+ } | {
5800
+ type: string;
5801
+ additionalProperties: boolean;
5802
+ required: string[];
5803
+ properties: {
5804
+ fieldCode: {
5805
+ type: string;
5806
+ pattern: string;
5807
+ };
5808
+ operator: {
5809
+ enum: string[];
5810
+ };
5811
+ value: {
5812
+ type: string;
5813
+ };
5814
+ values?: never;
5204
5815
  };
5205
5816
  })[];
5206
5817
  };
@@ -5665,6 +6276,17 @@ export declare const dataResourceSchema: {
5665
6276
  readonly type: "object";
5666
6277
  readonly additionalProperties: false;
5667
6278
  readonly allOf: readonly [{
6279
+ readonly if: {
6280
+ readonly required: readonly ["userCandidates"];
6281
+ };
6282
+ readonly then: {
6283
+ readonly properties: {
6284
+ readonly type: {
6285
+ readonly enum: readonly ["user.single", "user.multiple"];
6286
+ };
6287
+ };
6288
+ };
6289
+ }, {
5668
6290
  readonly if: {
5669
6291
  readonly properties: {
5670
6292
  readonly type: {
@@ -5913,6 +6535,67 @@ export declare const dataResourceSchema: {
5913
6535
  };
5914
6536
  };
5915
6537
  };
6538
+ readonly userCandidates: {
6539
+ readonly type: "object";
6540
+ readonly additionalProperties: false;
6541
+ readonly required: readonly ["kind", "roleCode"];
6542
+ readonly properties: {
6543
+ readonly kind: {
6544
+ readonly const: "app-role";
6545
+ };
6546
+ readonly roleCode: {
6547
+ readonly type: "string";
6548
+ readonly minLength: 1;
6549
+ readonly maxLength: 128;
6550
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
6551
+ };
6552
+ readonly pageSize: {
6553
+ readonly type: "integer";
6554
+ readonly minimum: 1;
6555
+ readonly maximum: 50;
6556
+ };
6557
+ readonly scope: {
6558
+ readonly type: "object";
6559
+ readonly additionalProperties: false;
6560
+ readonly required: readonly ["dimensionCode", "operation"];
6561
+ readonly properties: {
6562
+ readonly dimensionCode: {
6563
+ readonly type: "string";
6564
+ readonly minLength: 1;
6565
+ readonly maxLength: 128;
6566
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
6567
+ };
6568
+ readonly operation: {
6569
+ readonly type: "string";
6570
+ readonly minLength: 1;
6571
+ readonly maxLength: 64;
6572
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
6573
+ };
6574
+ readonly field: {
6575
+ readonly type: "string";
6576
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
6577
+ };
6578
+ readonly value: {
6579
+ readonly type: "string";
6580
+ readonly minLength: 1;
6581
+ readonly maxLength: 255;
6582
+ readonly pattern: "^\\S(?:[\\s\\S]*\\S)?$";
6583
+ };
6584
+ };
6585
+ readonly oneOf: readonly [{
6586
+ readonly required: readonly ["field"];
6587
+ readonly not: {
6588
+ readonly required: readonly ["value"];
6589
+ };
6590
+ }, {
6591
+ readonly required: readonly ["value"];
6592
+ readonly not: {
6593
+ readonly required: readonly ["field"];
6594
+ };
6595
+ }];
6596
+ };
6597
+ };
6598
+ };
5916
6599
  readonly timePrecision: {
5917
6600
  readonly enum: readonly ["minute", "second"];
5918
6601
  };
@@ -5955,7 +6638,7 @@ export declare const dataResourceSchema: {
5955
6638
  readonly maxRows: {
5956
6639
  readonly type: "integer";
5957
6640
  readonly minimum: 1;
5958
- readonly maximum: 49;
6641
+ readonly maximum: 100;
5959
6642
  };
5960
6643
  };
5961
6644
  };
@@ -7326,6 +8009,7 @@ export declare const dataFilePreviewSchema: {
7326
8009
  };
7327
8010
  export declare const dataTransactionRequestSchema: {
7328
8011
  readonly $id: "openxiangda.data-transaction-request/v2";
8012
+ readonly "x-openxiangda-max-bytes": number;
7329
8013
  readonly $defs: {
7330
8014
  readonly dataWhere: {
7331
8015
  readonly oneOf: readonly [{
@@ -7415,7 +8099,7 @@ export declare const dataTransactionRequestSchema: {
7415
8099
  readonly childOperationIndex: {
7416
8100
  readonly type: "integer";
7417
8101
  readonly minimum: 0;
7418
- readonly maximum: 99;
8102
+ readonly maximum: number;
7419
8103
  };
7420
8104
  };
7421
8105
  };
@@ -7434,7 +8118,7 @@ export declare const dataTransactionRequestSchema: {
7434
8118
  readonly operationIndex: {
7435
8119
  readonly type: "integer";
7436
8120
  readonly minimum: 0;
7437
- readonly maximum: 99;
8121
+ readonly maximum: number;
7438
8122
  };
7439
8123
  readonly field: {
7440
8124
  readonly type: "string";
@@ -7717,7 +8401,7 @@ export declare const dataTransactionRequestSchema: {
7717
8401
  readonly operations: {
7718
8402
  readonly type: "array";
7719
8403
  readonly minItems: 1;
7720
- readonly maxItems: 100;
8404
+ readonly maxItems: 1000;
7721
8405
  readonly items: {
7722
8406
  readonly oneOf: readonly [{
7723
8407
  readonly type: "object";
@@ -7742,7 +8426,7 @@ export declare const dataTransactionRequestSchema: {
7742
8426
  readonly operationIndex: {
7743
8427
  readonly type: "integer";
7744
8428
  readonly minimum: 0;
7745
- readonly maximum: 99;
8429
+ readonly maximum: number;
7746
8430
  };
7747
8431
  readonly field: {
7748
8432
  readonly const: "id";
@@ -7788,7 +8472,7 @@ export declare const dataTransactionRequestSchema: {
7788
8472
  readonly operationIndex: {
7789
8473
  readonly type: "integer";
7790
8474
  readonly minimum: 0;
7791
- readonly maximum: 99;
8475
+ readonly maximum: number;
7792
8476
  };
7793
8477
  readonly field: {
7794
8478
  readonly const: "id";
@@ -7904,7 +8588,7 @@ export declare const dataTransactionResultSchema: {
7904
8588
  };
7905
8589
  readonly items: {
7906
8590
  readonly type: "array";
7907
- readonly maxItems: 100;
8591
+ readonly maxItems: 1000;
7908
8592
  readonly items: {
7909
8593
  readonly oneOf: readonly [{
7910
8594
  readonly type: "object";
@@ -11147,6 +11831,41 @@ export declare const workflowDefinitionSchema: {
11147
11831
  readonly type: "string";
11148
11832
  readonly minLength: 1;
11149
11833
  };
11834
+ readonly launchPreflight: {
11835
+ readonly type: "object";
11836
+ readonly additionalProperties: false;
11837
+ readonly required: readonly ["requiredApprovalNodes"];
11838
+ readonly properties: {
11839
+ readonly requiredApprovalNodes: {
11840
+ readonly type: "array";
11841
+ readonly minItems: 1;
11842
+ readonly maxItems: 20;
11843
+ readonly uniqueItems: true;
11844
+ readonly items: {
11845
+ readonly type: "string";
11846
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_-]{0,127}$";
11847
+ };
11848
+ };
11849
+ };
11850
+ };
11851
+ readonly commandHandlers: {
11852
+ readonly type: "object";
11853
+ readonly additionalProperties: false;
11854
+ readonly minProperties: 1;
11855
+ readonly properties: {
11856
+ [k: string]: {
11857
+ type: string;
11858
+ additionalProperties: boolean;
11859
+ required: string[];
11860
+ properties: {
11861
+ operationCode: {
11862
+ type: string;
11863
+ pattern: string;
11864
+ };
11865
+ };
11866
+ };
11867
+ };
11868
+ };
11150
11869
  readonly taskPages: {
11151
11870
  readonly type: "object";
11152
11871
  readonly minProperties: 1;
@@ -11246,6 +11965,28 @@ export declare const workflowDefinitionSchema: {
11246
11965
  readonly acceptedCommandDeactivationPolicy: {
11247
11966
  readonly enum: readonly ["finish-pinned", "cancel-on-deactivate"];
11248
11967
  };
11968
+ readonly rejectionNotification: {
11969
+ readonly type: "object";
11970
+ readonly additionalProperties: false;
11971
+ readonly required: readonly ["recipient", "title", "summary"];
11972
+ readonly properties: {
11973
+ readonly recipient: {
11974
+ readonly const: "record_last_modifier";
11975
+ };
11976
+ readonly title: {
11977
+ readonly type: "string";
11978
+ readonly minLength: 1;
11979
+ readonly maxLength: 160;
11980
+ readonly pattern: "\\S";
11981
+ };
11982
+ readonly summary: {
11983
+ readonly type: "string";
11984
+ readonly minLength: 1;
11985
+ readonly maxLength: 500;
11986
+ readonly pattern: "\\S";
11987
+ };
11988
+ };
11989
+ };
11249
11990
  readonly instanceCommands: {
11250
11991
  readonly type: "object";
11251
11992
  readonly additionalProperties: false;
@@ -11254,12 +11995,15 @@ export declare const workflowDefinitionSchema: {
11254
11995
  readonly withdraw: {
11255
11996
  readonly type: "object";
11256
11997
  readonly additionalProperties: false;
11257
- readonly required: readonly ["beforeFact"];
11998
+ readonly minProperties: 1;
11258
11999
  readonly properties: {
11259
12000
  readonly beforeFact: {
11260
12001
  readonly type: "string";
11261
12002
  readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
11262
12003
  };
12004
+ readonly reasonRequired: {
12005
+ readonly type: "boolean";
12006
+ };
11263
12007
  };
11264
12008
  };
11265
12009
  readonly terminate: {
@@ -11384,6 +12128,12 @@ export declare const workflowDefinitionSchema: {
11384
12128
  readonly mode: {
11385
12129
  readonly enum: readonly ["single", "any", "all", "sequence"];
11386
12130
  };
12131
+ readonly emptyPolicy: {
12132
+ readonly enum: readonly ["block", "skip"];
12133
+ };
12134
+ readonly initiatorApprovalPolicy: {
12135
+ readonly enum: readonly ["manual", "auto_approve"];
12136
+ };
11387
12137
  readonly onApprove: {
11388
12138
  readonly type: "string";
11389
12139
  readonly minLength: 1;
@@ -11396,6 +12146,28 @@ export declare const workflowDefinitionSchema: {
11396
12146
  readonly type: "string";
11397
12147
  readonly pattern: "^[A-Za-z][A-Za-z0-9_-]{0,63}$";
11398
12148
  };
12149
+ readonly operationPolicy: {
12150
+ readonly type: "object";
12151
+ readonly additionalProperties: false;
12152
+ readonly properties: {
12153
+ [k: string]: {
12154
+ type: string;
12155
+ additionalProperties: boolean;
12156
+ minProperties: number;
12157
+ properties: {
12158
+ commentRequired?: {
12159
+ type: string;
12160
+ };
12161
+ label: {
12162
+ type: string;
12163
+ minLength: number;
12164
+ maxLength: number;
12165
+ pattern: string;
12166
+ };
12167
+ };
12168
+ };
12169
+ };
12170
+ };
11399
12171
  readonly allowedOperations: {
11400
12172
  readonly type: "array";
11401
12173
  readonly uniqueItems: true;
@@ -11661,6 +12433,28 @@ export declare const workflowBindingSchema: {
11661
12433
  readonly type: "object";
11662
12434
  readonly additionalProperties: false;
11663
12435
  readonly required: readonly ["provider"];
12436
+ readonly allOf: readonly [{
12437
+ readonly if: {
12438
+ readonly required: readonly ["candidateField"];
12439
+ };
12440
+ readonly then: {
12441
+ readonly required: readonly ["inputPath"];
12442
+ readonly properties: {
12443
+ readonly provider: {
12444
+ readonly const: "form_field_users";
12445
+ };
12446
+ };
12447
+ readonly not: {
12448
+ readonly anyOf: readonly [{
12449
+ readonly required: readonly ["roleCode"];
12450
+ }, {
12451
+ readonly required: readonly ["scope"];
12452
+ }, {
12453
+ readonly required: readonly ["routing"];
12454
+ }];
12455
+ };
12456
+ };
12457
+ }];
11664
12458
  readonly properties: {
11665
12459
  readonly provider: {
11666
12460
  readonly enum: readonly ["fixed_users", "initiator", "input_users", "form_field_users", "department_supervisor", "app_role", "app_role_in_scope", "business_relation", "previous_node_actor", "initiator_select", "application_provider"];
@@ -11676,6 +12470,10 @@ export declare const workflowBindingSchema: {
11676
12470
  readonly inputPath: {
11677
12471
  readonly type: "string";
11678
12472
  };
12473
+ readonly candidateField: {
12474
+ readonly type: "string";
12475
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
12476
+ };
11679
12477
  readonly departmentIdFrom: {
11680
12478
  readonly type: "string";
11681
12479
  };
@@ -11959,7 +12757,7 @@ export declare const businessProcessCommitSchema: {
11959
12757
  readonly operationIndex: {
11960
12758
  readonly type: "integer";
11961
12759
  readonly minimum: 0;
11962
- readonly maximum: 99;
12760
+ readonly maximum: number;
11963
12761
  };
11964
12762
  readonly field: {
11965
12763
  readonly type: "string";
@@ -12479,6 +13277,598 @@ export declare const businessProcessCommitSchema: {
12479
13277
  };
12480
13278
  };
12481
13279
  };
13280
+ export declare const businessProcessCommandWithDataSchema: {
13281
+ readonly $id: "openxiangda.business-process-command-with-data/v2";
13282
+ readonly $defs: {
13283
+ readonly dataWhere: {
13284
+ readonly oneOf: readonly [{
13285
+ readonly type: "object";
13286
+ readonly additionalProperties: false;
13287
+ readonly required: readonly ["and"];
13288
+ readonly properties: {
13289
+ readonly and: {
13290
+ readonly type: "array";
13291
+ readonly minItems: 1;
13292
+ readonly maxItems: 50;
13293
+ readonly items: {
13294
+ readonly $ref: "#/$defs/dataWhere";
13295
+ };
13296
+ };
13297
+ };
13298
+ }, {
13299
+ readonly type: "object";
13300
+ readonly additionalProperties: false;
13301
+ readonly required: readonly ["or"];
13302
+ readonly properties: {
13303
+ readonly or: {
13304
+ readonly type: "array";
13305
+ readonly minItems: 1;
13306
+ readonly maxItems: 50;
13307
+ readonly items: {
13308
+ readonly $ref: "#/$defs/dataWhere";
13309
+ };
13310
+ };
13311
+ };
13312
+ }, {
13313
+ readonly type: "object";
13314
+ readonly additionalProperties: false;
13315
+ readonly required: readonly ["not"];
13316
+ readonly properties: {
13317
+ readonly not: {
13318
+ readonly $ref: "#/$defs/dataWhere";
13319
+ };
13320
+ };
13321
+ }, {
13322
+ readonly type: "object";
13323
+ readonly additionalProperties: false;
13324
+ readonly required: readonly ["field", "operator"];
13325
+ readonly properties: {
13326
+ readonly field: {
13327
+ readonly type: "string";
13328
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
13329
+ };
13330
+ readonly operator: {
13331
+ readonly enum: readonly ["eq", "neq", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "in", "between", "has", "hasAny", "hasAll", "overlaps", "containedBy", "jsonContains", "isEmpty", "isNotEmpty"];
13332
+ };
13333
+ readonly value: {};
13334
+ readonly path: {
13335
+ readonly type: "string";
13336
+ readonly pattern: "^(value|label|snapshot\\.[A-Za-z][A-Za-z0-9_]{0,62}|[A-Za-z][A-Za-z0-9_]{0,62})$";
13337
+ };
13338
+ };
13339
+ }];
13340
+ };
13341
+ };
13342
+ readonly 'x-openxiangda-max-bytes': number;
13343
+ readonly type: "object";
13344
+ readonly additionalProperties: false;
13345
+ readonly required: readonly ["schemaVersion", "environmentKey", "workflow", "subject", "data", "expectedTransition"];
13346
+ readonly properties: {
13347
+ readonly schemaVersion: {
13348
+ readonly const: "openxiangda.business-process-command-with-data/v2";
13349
+ };
13350
+ readonly environmentKey: {
13351
+ readonly enum: readonly ["preproduction", "production"];
13352
+ };
13353
+ readonly workflow: {
13354
+ readonly type: "object";
13355
+ readonly additionalProperties: false;
13356
+ readonly required: readonly ["workflowCode", "target", "recordId", "expectedRevision", "commandToken", "idempotencyKey", "input"];
13357
+ readonly properties: {
13358
+ readonly workflowCode: {
13359
+ readonly type: "string";
13360
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_-]{0,127}$";
13361
+ };
13362
+ readonly target: {
13363
+ readonly oneOf: readonly [{
13364
+ readonly type: "object";
13365
+ readonly additionalProperties: false;
13366
+ readonly required: readonly ["kind", "id", "command"];
13367
+ readonly properties: {
13368
+ readonly kind: {
13369
+ readonly const: "task";
13370
+ };
13371
+ readonly id: {
13372
+ readonly type: "string";
13373
+ readonly format: "uuid";
13374
+ };
13375
+ readonly command: {
13376
+ readonly enum: readonly ["approve", "reject"];
13377
+ };
13378
+ };
13379
+ }, {
13380
+ readonly type: "object";
13381
+ readonly additionalProperties: false;
13382
+ readonly required: readonly ["kind", "id", "command"];
13383
+ readonly properties: {
13384
+ readonly kind: {
13385
+ readonly const: "instance";
13386
+ };
13387
+ readonly id: {
13388
+ readonly type: "string";
13389
+ readonly format: "uuid";
13390
+ };
13391
+ readonly command: {
13392
+ readonly const: "withdraw";
13393
+ };
13394
+ };
13395
+ }];
13396
+ };
13397
+ readonly recordId: {
13398
+ readonly type: "string";
13399
+ readonly format: "uuid";
13400
+ };
13401
+ readonly expectedRevision: {
13402
+ readonly type: "integer";
13403
+ readonly minimum: 1;
13404
+ };
13405
+ readonly commandToken: {
13406
+ readonly type: "string";
13407
+ readonly pattern: "^[A-Za-z0-9_-]{43}$";
13408
+ };
13409
+ readonly idempotencyKey: {
13410
+ readonly type: "string";
13411
+ readonly minLength: 1;
13412
+ readonly maxLength: 128;
13413
+ };
13414
+ readonly input: {
13415
+ readonly type: "object";
13416
+ readonly maxProperties: 64;
13417
+ };
13418
+ };
13419
+ };
13420
+ readonly subject: {
13421
+ readonly type: "object";
13422
+ readonly additionalProperties: false;
13423
+ readonly required: readonly ["fromOperation"];
13424
+ readonly properties: {
13425
+ readonly fromOperation: {
13426
+ readonly type: "string";
13427
+ readonly minLength: 1;
13428
+ readonly maxLength: 128;
13429
+ };
13430
+ };
13431
+ };
13432
+ readonly data: {
13433
+ readonly type: "object";
13434
+ readonly additionalProperties: false;
13435
+ readonly required: readonly ["operations"];
13436
+ readonly properties: {
13437
+ readonly guards: {
13438
+ readonly type: "array";
13439
+ readonly maxItems: 20;
13440
+ readonly items: {
13441
+ readonly oneOf: readonly [{
13442
+ readonly type: "object";
13443
+ readonly additionalProperties: false;
13444
+ readonly required: readonly ["kind", "operationIndex", "field", "operator", "offsetMilliseconds", "errorCode"];
13445
+ readonly properties: {
13446
+ readonly kind: {
13447
+ readonly const: "operation-time";
13448
+ };
13449
+ readonly operationIndex: {
13450
+ readonly type: "integer";
13451
+ readonly minimum: 0;
13452
+ readonly maximum: number;
13453
+ };
13454
+ readonly field: {
13455
+ readonly type: "string";
13456
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
13457
+ };
13458
+ readonly operator: {
13459
+ readonly enum: readonly ["eq", "neq", "gt", "gte", "lt", "lte"];
13460
+ };
13461
+ readonly offsetMilliseconds: {
13462
+ readonly type: "integer";
13463
+ readonly minimum: -31622400000;
13464
+ readonly maximum: 31622400000;
13465
+ };
13466
+ readonly errorCode: {
13467
+ readonly type: "string";
13468
+ readonly pattern: "^OPENXIANGDA_[A-Z0-9_]{1,96}$";
13469
+ };
13470
+ };
13471
+ }, {
13472
+ readonly type: "object";
13473
+ readonly additionalProperties: false;
13474
+ readonly required: readonly ["kind", "userId", "roleCode", "errorCode"];
13475
+ readonly properties: {
13476
+ readonly kind: {
13477
+ readonly const: "role-member";
13478
+ };
13479
+ readonly userId: {
13480
+ readonly type: "string";
13481
+ readonly minLength: 1;
13482
+ readonly maxLength: 255;
13483
+ };
13484
+ readonly roleCode: {
13485
+ readonly type: "string";
13486
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
13487
+ readonly maxLength: 100;
13488
+ };
13489
+ readonly errorCode: {
13490
+ readonly type: "string";
13491
+ readonly pattern: "^OPENXIANGDA_[A-Z0-9_]{1,96}$";
13492
+ };
13493
+ };
13494
+ }, {
13495
+ readonly type: "object";
13496
+ readonly additionalProperties: false;
13497
+ readonly required: readonly ["kind", "resourceCode", "lockKey", "errorCode", "where"];
13498
+ readonly properties: {
13499
+ readonly kind: {
13500
+ readonly const: "query-empty";
13501
+ };
13502
+ readonly resourceCode: {
13503
+ readonly type: "string";
13504
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
13505
+ };
13506
+ readonly lockKey: {
13507
+ readonly type: "string";
13508
+ readonly minLength: 1;
13509
+ readonly maxLength: 128;
13510
+ };
13511
+ readonly errorCode: {
13512
+ readonly type: "string";
13513
+ readonly pattern: "^OPENXIANGDA_[A-Z0-9_]{1,96}$";
13514
+ };
13515
+ readonly where: {
13516
+ readonly $ref: "#/$defs/dataWhere";
13517
+ };
13518
+ };
13519
+ }, {
13520
+ readonly type: "object";
13521
+ readonly additionalProperties: false;
13522
+ readonly required: readonly ["kind", "resourceCode", "lockKey", "errorCode", "id", "assertions"];
13523
+ readonly properties: {
13524
+ readonly kind: {
13525
+ readonly const: "record-assert";
13526
+ };
13527
+ readonly resourceCode: {
13528
+ readonly type: "string";
13529
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
13530
+ };
13531
+ readonly lockKey: {
13532
+ readonly type: "string";
13533
+ readonly minLength: 1;
13534
+ readonly maxLength: 128;
13535
+ };
13536
+ readonly errorCode: {
13537
+ readonly type: "string";
13538
+ readonly pattern: "^OPENXIANGDA_[A-Z0-9_]{1,96}$";
13539
+ };
13540
+ readonly id: {
13541
+ readonly type: "string";
13542
+ readonly minLength: 1;
13543
+ };
13544
+ readonly assertions: {
13545
+ readonly type: "array";
13546
+ readonly minItems: 1;
13547
+ readonly maxItems: 20;
13548
+ readonly items: {
13549
+ readonly oneOf: readonly [{
13550
+ readonly type: "object";
13551
+ readonly additionalProperties: false;
13552
+ readonly required: readonly ["kind", "field", "operator"];
13553
+ readonly properties: {
13554
+ readonly kind: {
13555
+ readonly const: "value";
13556
+ };
13557
+ readonly field: {
13558
+ readonly type: "string";
13559
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
13560
+ };
13561
+ readonly operator: {
13562
+ readonly enum: readonly ["eq", "neq", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "in", "between", "has", "hasAny", "hasAll", "overlaps", "containedBy", "jsonContains", "isEmpty", "isNotEmpty"];
13563
+ };
13564
+ readonly value: {};
13565
+ readonly path: {
13566
+ readonly type: "string";
13567
+ readonly minLength: 1;
13568
+ readonly maxLength: 128;
13569
+ };
13570
+ };
13571
+ }, {
13572
+ readonly type: "object";
13573
+ readonly additionalProperties: false;
13574
+ readonly required: readonly ["kind", "leftField", "operator", "rightField"];
13575
+ readonly properties: {
13576
+ readonly kind: {
13577
+ readonly const: "field";
13578
+ };
13579
+ readonly leftField: {
13580
+ readonly type: "string";
13581
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
13582
+ };
13583
+ readonly operator: {
13584
+ readonly enum: readonly ["eq", "neq", "gt", "gte", "lt", "lte"];
13585
+ };
13586
+ readonly rightField: {
13587
+ readonly type: "string";
13588
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
13589
+ };
13590
+ };
13591
+ }, {
13592
+ readonly type: "object";
13593
+ readonly additionalProperties: false;
13594
+ readonly required: readonly ["kind", "field", "operator"];
13595
+ readonly properties: {
13596
+ readonly kind: {
13597
+ readonly const: "database-now";
13598
+ };
13599
+ readonly field: {
13600
+ readonly type: "string";
13601
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
13602
+ };
13603
+ readonly operator: {
13604
+ readonly enum: readonly ["eq", "neq", "gt", "gte", "lt", "lte"];
13605
+ };
13606
+ };
13607
+ }];
13608
+ };
13609
+ };
13610
+ };
13611
+ }, {
13612
+ readonly type: "object";
13613
+ readonly additionalProperties: false;
13614
+ readonly required: readonly ["kind", "resourceCode", "lockKey", "errorCode", "id"];
13615
+ readonly properties: {
13616
+ readonly kind: {
13617
+ readonly const: "record-exists";
13618
+ };
13619
+ readonly resourceCode: {
13620
+ readonly type: "string";
13621
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
13622
+ };
13623
+ readonly lockKey: {
13624
+ readonly type: "string";
13625
+ readonly minLength: 1;
13626
+ readonly maxLength: 128;
13627
+ };
13628
+ readonly errorCode: {
13629
+ readonly type: "string";
13630
+ readonly pattern: "^OPENXIANGDA_[A-Z0-9_]{1,96}$";
13631
+ };
13632
+ readonly id: {
13633
+ readonly type: "string";
13634
+ readonly minLength: 1;
13635
+ };
13636
+ };
13637
+ }, {
13638
+ readonly type: "object";
13639
+ readonly additionalProperties: false;
13640
+ readonly required: readonly ["kind", "resourceCode", "lockKey", "errorCode", "id", "assertions"];
13641
+ readonly properties: {
13642
+ readonly kind: {
13643
+ readonly const: "record-match";
13644
+ };
13645
+ readonly resourceCode: {
13646
+ readonly type: "string";
13647
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
13648
+ };
13649
+ readonly lockKey: {
13650
+ readonly type: "string";
13651
+ readonly minLength: 1;
13652
+ readonly maxLength: 128;
13653
+ };
13654
+ readonly errorCode: {
13655
+ readonly type: "string";
13656
+ readonly pattern: "^OPENXIANGDA_[A-Z0-9_]{1,96}$";
13657
+ };
13658
+ readonly id: {
13659
+ readonly type: "string";
13660
+ readonly minLength: 1;
13661
+ };
13662
+ readonly assertions: {
13663
+ readonly type: "array";
13664
+ readonly minItems: 1;
13665
+ readonly maxItems: 20;
13666
+ readonly items: {
13667
+ readonly oneOf: readonly [{
13668
+ readonly type: "object";
13669
+ readonly additionalProperties: false;
13670
+ readonly required: readonly ["kind", "field", "operator"];
13671
+ readonly properties: {
13672
+ readonly kind: {
13673
+ readonly const: "value";
13674
+ };
13675
+ readonly field: {
13676
+ readonly type: "string";
13677
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
13678
+ };
13679
+ readonly operator: {
13680
+ readonly enum: readonly ["eq", "neq", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "in", "between", "has", "hasAny", "hasAll", "overlaps", "containedBy", "jsonContains", "isEmpty", "isNotEmpty"];
13681
+ };
13682
+ readonly value: {};
13683
+ readonly path: {
13684
+ readonly type: "string";
13685
+ readonly minLength: 1;
13686
+ readonly maxLength: 128;
13687
+ };
13688
+ };
13689
+ }, {
13690
+ readonly type: "object";
13691
+ readonly additionalProperties: false;
13692
+ readonly required: readonly ["kind", "leftField", "operator", "rightField"];
13693
+ readonly properties: {
13694
+ readonly kind: {
13695
+ readonly const: "field";
13696
+ };
13697
+ readonly leftField: {
13698
+ readonly type: "string";
13699
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
13700
+ };
13701
+ readonly operator: {
13702
+ readonly enum: readonly ["eq", "neq", "gt", "gte", "lt", "lte"];
13703
+ };
13704
+ readonly rightField: {
13705
+ readonly type: "string";
13706
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
13707
+ };
13708
+ };
13709
+ }, {
13710
+ readonly type: "object";
13711
+ readonly additionalProperties: false;
13712
+ readonly required: readonly ["kind", "field", "operator"];
13713
+ readonly properties: {
13714
+ readonly kind: {
13715
+ readonly const: "database-now";
13716
+ };
13717
+ readonly field: {
13718
+ readonly type: "string";
13719
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
13720
+ };
13721
+ readonly operator: {
13722
+ readonly enum: readonly ["eq", "neq", "gt", "gte", "lt", "lte"];
13723
+ };
13724
+ };
13725
+ }];
13726
+ };
13727
+ };
13728
+ };
13729
+ }];
13730
+ };
13731
+ };
13732
+ readonly operations: {
13733
+ readonly type: "array";
13734
+ readonly minItems: 1;
13735
+ readonly maxItems: 16;
13736
+ readonly items: {
13737
+ readonly oneOf: readonly [{
13738
+ readonly type: "object";
13739
+ readonly additionalProperties: false;
13740
+ readonly required: readonly ["key", "kind", "resourceCode", "data"];
13741
+ readonly properties: {
13742
+ readonly key: {
13743
+ readonly type: "string";
13744
+ readonly minLength: 1;
13745
+ readonly maxLength: 128;
13746
+ };
13747
+ readonly kind: {
13748
+ readonly const: "create";
13749
+ };
13750
+ readonly resourceCode: {
13751
+ readonly type: "string";
13752
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
13753
+ };
13754
+ readonly data: {
13755
+ readonly type: "object";
13756
+ readonly maxProperties: 200;
13757
+ };
13758
+ };
13759
+ }, {
13760
+ readonly type: "object";
13761
+ readonly additionalProperties: false;
13762
+ readonly required: readonly ["key", "kind", "resourceCode", "id", "expectedRevision", "data"];
13763
+ readonly properties: {
13764
+ readonly key: {
13765
+ readonly type: "string";
13766
+ readonly minLength: 1;
13767
+ readonly maxLength: 128;
13768
+ };
13769
+ readonly kind: {
13770
+ readonly const: "update";
13771
+ };
13772
+ readonly resourceCode: {
13773
+ readonly type: "string";
13774
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
13775
+ };
13776
+ readonly id: {
13777
+ readonly type: "string";
13778
+ readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$";
13779
+ };
13780
+ readonly expectedRevision: {
13781
+ readonly type: "integer";
13782
+ readonly minimum: 1;
13783
+ };
13784
+ readonly data: {
13785
+ readonly type: "object";
13786
+ readonly maxProperties: 200;
13787
+ };
13788
+ };
13789
+ }, {
13790
+ readonly type: "object";
13791
+ readonly additionalProperties: false;
13792
+ readonly required: readonly ["key", "kind", "resourceCode", "id", "expectedRevision"];
13793
+ readonly properties: {
13794
+ readonly key: {
13795
+ readonly type: "string";
13796
+ readonly minLength: 1;
13797
+ readonly maxLength: 128;
13798
+ };
13799
+ readonly kind: {
13800
+ readonly const: "delete";
13801
+ };
13802
+ readonly resourceCode: {
13803
+ readonly type: "string";
13804
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
13805
+ };
13806
+ readonly id: {
13807
+ readonly type: "string";
13808
+ readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$";
13809
+ };
13810
+ readonly expectedRevision: {
13811
+ readonly type: "integer";
13812
+ readonly minimum: 1;
13813
+ };
13814
+ };
13815
+ }, {
13816
+ readonly type: "object";
13817
+ readonly additionalProperties: false;
13818
+ readonly required: readonly ["key", "kind", "resourceCode", "id", "field", "amount"];
13819
+ readonly properties: {
13820
+ readonly key: {
13821
+ readonly type: "string";
13822
+ readonly minLength: 1;
13823
+ readonly maxLength: 128;
13824
+ };
13825
+ readonly kind: {
13826
+ readonly const: "increment";
13827
+ };
13828
+ readonly resourceCode: {
13829
+ readonly type: "string";
13830
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
13831
+ };
13832
+ readonly id: {
13833
+ readonly type: "string";
13834
+ readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$";
13835
+ };
13836
+ readonly field: {
13837
+ readonly type: "string";
13838
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
13839
+ };
13840
+ readonly amount: {
13841
+ readonly type: "number";
13842
+ readonly exclusiveMinimum: -1000000000000;
13843
+ readonly exclusiveMaximum: 1000000000000;
13844
+ };
13845
+ };
13846
+ }];
13847
+ };
13848
+ };
13849
+ };
13850
+ };
13851
+ readonly expectedTransition: {
13852
+ readonly type: "object";
13853
+ readonly additionalProperties: false;
13854
+ readonly required: readonly ["status", "outcome", "currentNodeId"];
13855
+ readonly properties: {
13856
+ readonly status: {
13857
+ readonly enum: readonly ["running", "approved", "rejected", "withdrawn"];
13858
+ };
13859
+ readonly outcome: {
13860
+ readonly type: readonly ["string", "null"];
13861
+ readonly maxLength: 128;
13862
+ };
13863
+ readonly currentNodeId: {
13864
+ readonly type: readonly ["string", "null"];
13865
+ readonly minLength: 1;
13866
+ readonly maxLength: 128;
13867
+ };
13868
+ };
13869
+ };
13870
+ };
13871
+ };
12482
13872
  export declare const standardProcessCommitSchema: {
12483
13873
  readonly $id: "openxiangda.standard-process.commit/v2";
12484
13874
  readonly type: "object";
@@ -16496,6 +17886,37 @@ export declare const configurationBundleSchema: {
16496
17886
  readonly additionalProperties: false;
16497
17887
  readonly minProperties: 1;
16498
17888
  readonly properties: {
17889
+ readonly recordEdit: {
17890
+ readonly type: "object";
17891
+ readonly additionalProperties: false;
17892
+ readonly required: readonly ["resourceCode", "fieldCodes"];
17893
+ readonly properties: {
17894
+ readonly resourceCode: {
17895
+ readonly type: "string";
17896
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
17897
+ };
17898
+ readonly fieldCodes: {
17899
+ readonly type: "array";
17900
+ readonly minItems: 1;
17901
+ readonly maxItems: 200;
17902
+ readonly uniqueItems: true;
17903
+ readonly items: {
17904
+ readonly type: "string";
17905
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
17906
+ };
17907
+ };
17908
+ };
17909
+ };
17910
+ readonly dataCommands: {
17911
+ readonly type: "object";
17912
+ readonly additionalProperties: false;
17913
+ readonly required: readonly ["mode"];
17914
+ readonly properties: {
17915
+ readonly mode: {
17916
+ readonly const: "recoverable-native";
17917
+ };
17918
+ };
17919
+ };
16499
17920
  readonly roleAssertions: {
16500
17921
  readonly type: "object";
16501
17922
  readonly additionalProperties: false;
@@ -16525,13 +17946,32 @@ export declare const configurationBundleSchema: {
16525
17946
  readonly fields: {
16526
17947
  readonly type: "array";
16527
17948
  readonly minItems: 1;
16528
- readonly maxItems: 4;
17949
+ readonly maxItems: 5;
16529
17950
  readonly uniqueItems: true;
16530
17951
  readonly items: {
16531
- readonly enum: readonly ["displayName", "employeeNumber", "primaryDepartment", "departments"];
17952
+ readonly enum: readonly ["displayName", "employeeNumber", "primaryDepartment", "departments", "phone"];
16532
17953
  };
16533
17954
  };
16534
17955
  };
17956
+ readonly allOf: readonly [{
17957
+ readonly if: {
17958
+ readonly properties: {
17959
+ readonly mode: {
17960
+ readonly const: "selected-user";
17961
+ };
17962
+ };
17963
+ };
17964
+ readonly then: {
17965
+ readonly properties: {
17966
+ readonly fields: {
17967
+ readonly maxItems: 4;
17968
+ readonly items: {
17969
+ readonly enum: readonly ["displayName", "employeeNumber", "primaryDepartment", "departments"];
17970
+ };
17971
+ };
17972
+ };
17973
+ };
17974
+ }];
16535
17975
  };
16536
17976
  readonly managedFiles: {
16537
17977
  readonly type: "array";
@@ -16638,6 +18078,15 @@ export declare const configurationBundleSchema: {
16638
18078
  readonly maxLength: 128;
16639
18079
  };
16640
18080
  };
18081
+ readonly businessCommands: {
18082
+ readonly type: "array";
18083
+ readonly minItems: 1;
18084
+ readonly maxItems: 3;
18085
+ readonly uniqueItems: true;
18086
+ readonly items: {
18087
+ readonly enum: readonly ["approve", "reject", "withdraw"];
18088
+ };
18089
+ };
16641
18090
  };
16642
18091
  };
16643
18092
  readonly decimalReservation: {
@@ -21160,6 +22609,15 @@ export declare const contractSchemas: {
21160
22609
  readonly type: "null";
21161
22610
  }];
21162
22611
  };
22612
+ readonly phone: {
22613
+ readonly anyOf: readonly [{
22614
+ readonly type: "string";
22615
+ readonly minLength: 1;
22616
+ readonly maxLength: 80;
22617
+ }, {
22618
+ readonly type: "null";
22619
+ }];
22620
+ };
21163
22621
  readonly primaryDepartment: {
21164
22622
  readonly anyOf: readonly [{
21165
22623
  readonly type: "object";
@@ -21689,6 +23147,90 @@ export declare const contractSchemas: {
21689
23147
  readonly additionalProperties: false;
21690
23148
  readonly required: readonly ["dimensionCode", "allRoles", "roleCodes", "unrestrictedRoleCodes", "rules"];
21691
23149
  readonly properties: {
23150
+ readonly workflowBindings: {
23151
+ readonly type: "array";
23152
+ readonly maxItems: 10000;
23153
+ readonly items: {
23154
+ readonly type: "object";
23155
+ readonly additionalProperties: false;
23156
+ readonly required: readonly ["workflowCode", "nodeId", "roleCode", "definitionVersion", "bindingVersion", "configurationRevision", "source", "contexts"];
23157
+ readonly properties: {
23158
+ readonly workflowCode: {
23159
+ readonly type: "string";
23160
+ readonly minLength: 1;
23161
+ };
23162
+ readonly nodeId: {
23163
+ readonly type: "string";
23164
+ readonly minLength: 1;
23165
+ };
23166
+ readonly roleCode: {
23167
+ readonly type: "string";
23168
+ readonly minLength: 1;
23169
+ readonly maxLength: 255;
23170
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
23171
+ };
23172
+ readonly definitionVersion: {
23173
+ readonly type: "integer";
23174
+ readonly minimum: 1;
23175
+ };
23176
+ readonly bindingVersion: {
23177
+ readonly type: "integer";
23178
+ readonly minimum: 1;
23179
+ };
23180
+ readonly configurationRevision: {
23181
+ readonly type: "integer";
23182
+ readonly minimum: 0;
23183
+ };
23184
+ readonly source: {
23185
+ readonly enum: readonly ["default_binding", "node_override", "routing_source"];
23186
+ };
23187
+ readonly contexts: {
23188
+ readonly type: "array";
23189
+ readonly minItems: 1;
23190
+ readonly maxItems: 2;
23191
+ readonly uniqueItems: true;
23192
+ readonly items: {
23193
+ readonly enum: readonly ["active", "in_flight"];
23194
+ };
23195
+ };
23196
+ };
23197
+ };
23198
+ };
23199
+ readonly candidateFields: {
23200
+ readonly type: "array";
23201
+ readonly maxItems: 10000;
23202
+ readonly items: {
23203
+ readonly type: "object";
23204
+ readonly additionalProperties: false;
23205
+ readonly required: readonly ["dataLogicalRevisionId", "resourceCode", "fieldCode", "roleCode", "operation"];
23206
+ readonly properties: {
23207
+ readonly dataLogicalRevisionId: {
23208
+ readonly type: "string";
23209
+ readonly minLength: 1;
23210
+ };
23211
+ readonly resourceCode: {
23212
+ readonly type: "string";
23213
+ readonly minLength: 1;
23214
+ readonly maxLength: 255;
23215
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
23216
+ };
23217
+ readonly fieldCode: {
23218
+ readonly type: "string";
23219
+ readonly minLength: 1;
23220
+ };
23221
+ readonly roleCode: {
23222
+ readonly type: "string";
23223
+ readonly minLength: 1;
23224
+ readonly maxLength: 255;
23225
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
23226
+ };
23227
+ readonly operation: {
23228
+ readonly type: "string";
23229
+ readonly minLength: 1;
23230
+ };
23231
+ };
23232
+ };
23233
+ };
21692
23234
  readonly dimensionCode: {
21693
23235
  readonly type: "string";
21694
23236
  readonly minLength: 1;
@@ -24536,6 +26078,27 @@ export declare const contractSchemas: {
24536
26078
  readonly schemaVersion: {
24537
26079
  readonly const: "openxiangda.data-field-source-query/v2";
24538
26080
  };
26081
+ readonly action: {
26082
+ readonly type: "object";
26083
+ readonly additionalProperties: false;
26084
+ readonly required: readonly ["operationCode", "recordId", "expectedRevision"];
26085
+ readonly properties: {
26086
+ readonly operationCode: {
26087
+ readonly type: "string";
26088
+ readonly minLength: 1;
26089
+ readonly maxLength: 128;
26090
+ };
26091
+ readonly recordId: {
26092
+ readonly type: "string";
26093
+ readonly format: "uuid";
26094
+ };
26095
+ readonly expectedRevision: {
26096
+ readonly type: "integer";
26097
+ readonly minimum: 1;
26098
+ readonly maximum: number;
26099
+ };
26100
+ };
26101
+ };
24539
26102
  readonly operation: {
24540
26103
  readonly enum: readonly ["create", "update"];
24541
26104
  };
@@ -24680,6 +26243,277 @@ export declare const contractSchemas: {
24680
26243
  };
24681
26244
  };
24682
26245
  };
26246
+ readonly userCandidatesQuery: {
26247
+ readonly $id: "openxiangda.user-candidates-query/v2";
26248
+ readonly oneOf: readonly [{
26249
+ readonly type: "object";
26250
+ readonly additionalProperties: false;
26251
+ readonly required: readonly ["schemaVersion", "operation"];
26252
+ readonly properties: {
26253
+ readonly operation: {
26254
+ readonly const: "create";
26255
+ };
26256
+ readonly launch: {
26257
+ readonly type: "object";
26258
+ readonly additionalProperties: false;
26259
+ readonly required: readonly ["workflowCode", "operationCode"];
26260
+ readonly properties: {
26261
+ readonly workflowCode: {
26262
+ readonly type: "string";
26263
+ readonly minLength: 1;
26264
+ readonly maxLength: 128;
26265
+ };
26266
+ readonly operationCode: {
26267
+ readonly type: "string";
26268
+ readonly minLength: 1;
26269
+ readonly maxLength: 255;
26270
+ };
26271
+ };
26272
+ };
26273
+ readonly schemaVersion: {
26274
+ readonly const: "openxiangda.user-candidates-query/v2";
26275
+ };
26276
+ readonly keyword: {
26277
+ readonly type: "string";
26278
+ readonly maxLength: 64;
26279
+ };
26280
+ readonly cursor: {
26281
+ readonly type: "string";
26282
+ readonly minLength: 1;
26283
+ readonly maxLength: 2048;
26284
+ };
26285
+ readonly selectedIds: {
26286
+ readonly type: "array";
26287
+ readonly maxItems: 200;
26288
+ readonly uniqueItems: true;
26289
+ readonly items: {
26290
+ readonly type: "string";
26291
+ readonly minLength: 1;
26292
+ readonly maxLength: 255;
26293
+ readonly pattern: "^\\S(?:[\\s\\S]*\\S)?$";
26294
+ };
26295
+ };
26296
+ };
26297
+ }, {
26298
+ readonly type: "object";
26299
+ readonly additionalProperties: false;
26300
+ readonly required: readonly ["schemaVersion", "operation", "recordId", "expectedRevision"];
26301
+ readonly properties: {
26302
+ readonly operation: {
26303
+ readonly const: "update";
26304
+ };
26305
+ readonly recordId: {
26306
+ readonly type: "string";
26307
+ readonly minLength: 1;
26308
+ readonly maxLength: 255;
26309
+ readonly pattern: "^\\S(?:[\\s\\S]*\\S)?$";
26310
+ };
26311
+ readonly expectedRevision: {
26312
+ readonly type: "integer";
26313
+ readonly minimum: 1;
26314
+ readonly maximum: number;
26315
+ };
26316
+ readonly action: {
26317
+ readonly type: "object";
26318
+ readonly additionalProperties: false;
26319
+ readonly required: readonly ["operationCode", "recordId", "expectedRevision"];
26320
+ readonly properties: {
26321
+ readonly operationCode: {
26322
+ readonly type: "string";
26323
+ readonly minLength: 1;
26324
+ readonly maxLength: 128;
26325
+ };
26326
+ readonly recordId: {
26327
+ readonly type: "string";
26328
+ readonly format: "uuid";
26329
+ };
26330
+ readonly expectedRevision: {
26331
+ readonly type: "integer";
26332
+ readonly minimum: 1;
26333
+ readonly maximum: number;
26334
+ };
26335
+ };
26336
+ };
26337
+ readonly launch: {
26338
+ readonly type: "object";
26339
+ readonly additionalProperties: false;
26340
+ readonly required: readonly ["workflowCode", "operationCode"];
26341
+ readonly properties: {
26342
+ readonly workflowCode: {
26343
+ readonly type: "string";
26344
+ readonly minLength: 1;
26345
+ readonly maxLength: 128;
26346
+ };
26347
+ readonly operationCode: {
26348
+ readonly type: "string";
26349
+ readonly minLength: 1;
26350
+ readonly maxLength: 255;
26351
+ };
26352
+ };
26353
+ };
26354
+ readonly schemaVersion: {
26355
+ readonly const: "openxiangda.user-candidates-query/v2";
26356
+ };
26357
+ readonly keyword: {
26358
+ readonly type: "string";
26359
+ readonly maxLength: 64;
26360
+ };
26361
+ readonly cursor: {
26362
+ readonly type: "string";
26363
+ readonly minLength: 1;
26364
+ readonly maxLength: 2048;
26365
+ };
26366
+ readonly selectedIds: {
26367
+ readonly type: "array";
26368
+ readonly maxItems: 200;
26369
+ readonly uniqueItems: true;
26370
+ readonly items: {
26371
+ readonly type: "string";
26372
+ readonly minLength: 1;
26373
+ readonly maxLength: 255;
26374
+ readonly pattern: "^\\S(?:[\\s\\S]*\\S)?$";
26375
+ };
26376
+ };
26377
+ };
26378
+ }, {
26379
+ readonly type: "object";
26380
+ readonly additionalProperties: false;
26381
+ readonly required: readonly ["schemaVersion", "expectedRevision", "expectedTaskVersion"];
26382
+ readonly properties: {
26383
+ readonly expectedRevision: {
26384
+ readonly type: "integer";
26385
+ readonly minimum: 1;
26386
+ readonly maximum: number;
26387
+ };
26388
+ readonly expectedTaskVersion: {
26389
+ readonly type: "integer";
26390
+ readonly minimum: 1;
26391
+ readonly maximum: number;
26392
+ };
26393
+ readonly schemaVersion: {
26394
+ readonly const: "openxiangda.user-candidates-query/v2";
26395
+ };
26396
+ readonly keyword: {
26397
+ readonly type: "string";
26398
+ readonly maxLength: 64;
26399
+ };
26400
+ readonly cursor: {
26401
+ readonly type: "string";
26402
+ readonly minLength: 1;
26403
+ readonly maxLength: 2048;
26404
+ };
26405
+ readonly selectedIds: {
26406
+ readonly type: "array";
26407
+ readonly maxItems: 200;
26408
+ readonly uniqueItems: true;
26409
+ readonly items: {
26410
+ readonly type: "string";
26411
+ readonly minLength: 1;
26412
+ readonly maxLength: 255;
26413
+ readonly pattern: "^\\S(?:[\\s\\S]*\\S)?$";
26414
+ };
26415
+ };
26416
+ };
26417
+ }];
26418
+ };
26419
+ readonly userCandidatesPage: {
26420
+ readonly $id: "openxiangda.user-candidates-page/v2";
26421
+ readonly type: "object";
26422
+ readonly additionalProperties: false;
26423
+ readonly required: readonly ["schemaVersion", "resourceCode", "fieldCode", "environmentHeadRevision", "evaluatedAt", "items", "selected", "nextCursor"];
26424
+ readonly properties: {
26425
+ readonly schemaVersion: {
26426
+ readonly const: "openxiangda.user-candidates-page/v2";
26427
+ };
26428
+ readonly resourceCode: {
26429
+ readonly type: "string";
26430
+ readonly minLength: 1;
26431
+ readonly maxLength: 255;
26432
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
26433
+ };
26434
+ readonly fieldCode: {
26435
+ readonly type: "string";
26436
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
26437
+ };
26438
+ readonly environmentHeadRevision: {
26439
+ readonly type: "integer";
26440
+ readonly minimum: 1;
26441
+ readonly maximum: number;
26442
+ };
26443
+ readonly recordRevision: {
26444
+ readonly type: "integer";
26445
+ readonly minimum: 1;
26446
+ readonly maximum: number;
26447
+ };
26448
+ readonly evaluatedAt: {
26449
+ readonly type: "string";
26450
+ readonly format: "date-time";
26451
+ };
26452
+ readonly items: {
26453
+ readonly type: "array";
26454
+ readonly maxItems: 50;
26455
+ readonly items: {
26456
+ readonly type: "object";
26457
+ readonly additionalProperties: false;
26458
+ readonly required: readonly ["value", "label"];
26459
+ readonly properties: {
26460
+ readonly value: {
26461
+ readonly type: "string";
26462
+ readonly minLength: 1;
26463
+ readonly maxLength: 255;
26464
+ readonly pattern: "^\\S(?:[\\s\\S]*\\S)?$";
26465
+ };
26466
+ readonly label: {
26467
+ readonly type: "string";
26468
+ };
26469
+ };
26470
+ };
26471
+ };
26472
+ readonly selected: {
26473
+ readonly type: "array";
26474
+ readonly maxItems: 200;
26475
+ readonly items: {
26476
+ readonly oneOf: readonly [{
26477
+ readonly required: readonly ["value", "label", "status"];
26478
+ readonly properties: {
26479
+ readonly status: {
26480
+ readonly const: "valid";
26481
+ };
26482
+ readonly value: {
26483
+ readonly type: "string";
26484
+ readonly minLength: 1;
26485
+ readonly maxLength: 255;
26486
+ readonly pattern: "^\\S(?:[\\s\\S]*\\S)?$";
26487
+ };
26488
+ readonly label: {
26489
+ readonly type: "string";
26490
+ };
26491
+ };
26492
+ readonly type: "object";
26493
+ readonly additionalProperties: false;
26494
+ }, {
26495
+ readonly type: "object";
26496
+ readonly additionalProperties: false;
26497
+ readonly required: readonly ["value", "status"];
26498
+ readonly properties: {
26499
+ readonly value: {
26500
+ readonly type: "string";
26501
+ readonly minLength: 1;
26502
+ readonly maxLength: 255;
26503
+ readonly pattern: "^\\S(?:[\\s\\S]*\\S)?$";
26504
+ };
26505
+ readonly status: {
26506
+ readonly const: "invalid";
26507
+ };
26508
+ };
26509
+ }];
26510
+ };
26511
+ };
26512
+ readonly nextCursor: {
26513
+ readonly type: readonly ["string", "null"];
26514
+ };
26515
+ };
26516
+ };
24683
26517
  readonly dataRef: {
24684
26518
  readonly $id: "openxiangda.data-ref/v2";
24685
26519
  readonly type: "object";
@@ -24772,6 +26606,79 @@ export declare const contractSchemas: {
24772
26606
  readonly type: "string";
24773
26607
  readonly minLength: 1;
24774
26608
  };
26609
+ readonly recordComments: {
26610
+ readonly type: "object";
26611
+ readonly additionalProperties: false;
26612
+ readonly required: readonly ["read", "create"];
26613
+ readonly properties: {
26614
+ readonly read: {
26615
+ readonly type: "array";
26616
+ readonly maxItems: 20;
26617
+ readonly uniqueItems: true;
26618
+ readonly items: {
26619
+ readonly type: "string";
26620
+ readonly minLength: 1;
26621
+ };
26622
+ };
26623
+ readonly create: {
26624
+ readonly type: "array";
26625
+ readonly maxItems: 20;
26626
+ readonly uniqueItems: true;
26627
+ readonly items: {
26628
+ readonly type: "string";
26629
+ readonly minLength: 1;
26630
+ };
26631
+ };
26632
+ };
26633
+ };
26634
+ readonly recordDeletion: {
26635
+ readonly type: "object";
26636
+ readonly additionalProperties: false;
26637
+ readonly required: readonly ["delete"];
26638
+ readonly properties: {
26639
+ readonly delete: {
26640
+ readonly type: "array";
26641
+ readonly maxItems: 20;
26642
+ readonly uniqueItems: true;
26643
+ readonly items: {
26644
+ readonly type: "string";
26645
+ readonly minLength: 1;
26646
+ };
26647
+ };
26648
+ };
26649
+ };
26650
+ readonly recordPrint: {
26651
+ readonly type: "object";
26652
+ readonly additionalProperties: false;
26653
+ readonly required: readonly ["read"];
26654
+ readonly properties: {
26655
+ readonly read: {
26656
+ readonly type: "array";
26657
+ readonly maxItems: 20;
26658
+ readonly uniqueItems: true;
26659
+ readonly items: {
26660
+ readonly type: "string";
26661
+ readonly minLength: 1;
26662
+ };
26663
+ };
26664
+ };
26665
+ };
26666
+ readonly workflowHistory: {
26667
+ readonly type: "object";
26668
+ readonly additionalProperties: false;
26669
+ readonly required: readonly ["read"];
26670
+ readonly properties: {
26671
+ readonly read: {
26672
+ readonly type: "array";
26673
+ readonly maxItems: 20;
26674
+ readonly uniqueItems: true;
26675
+ readonly items: {
26676
+ readonly type: "string";
26677
+ readonly minLength: 1;
26678
+ };
26679
+ };
26680
+ };
26681
+ };
24775
26682
  readonly schema: {
24776
26683
  readonly type: "object";
24777
26684
  readonly additionalProperties: false;
@@ -24785,6 +26692,17 @@ export declare const contractSchemas: {
24785
26692
  readonly type: "object";
24786
26693
  readonly additionalProperties: false;
24787
26694
  readonly allOf: readonly [{
26695
+ readonly if: {
26696
+ readonly required: readonly ["userCandidates"];
26697
+ };
26698
+ readonly then: {
26699
+ readonly properties: {
26700
+ readonly type: {
26701
+ readonly enum: readonly ["user.single", "user.multiple"];
26702
+ };
26703
+ };
26704
+ };
26705
+ }, {
24788
26706
  readonly if: {
24789
26707
  readonly properties: {
24790
26708
  readonly type: {
@@ -24937,6 +26855,67 @@ export declare const contractSchemas: {
24937
26855
  };
24938
26856
  };
24939
26857
  };
26858
+ readonly userCandidates: {
26859
+ readonly type: "object";
26860
+ readonly additionalProperties: false;
26861
+ readonly required: readonly ["kind", "roleCode"];
26862
+ readonly properties: {
26863
+ readonly kind: {
26864
+ readonly const: "app-role";
26865
+ };
26866
+ readonly roleCode: {
26867
+ readonly type: "string";
26868
+ readonly minLength: 1;
26869
+ readonly maxLength: 128;
26870
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
26871
+ };
26872
+ readonly pageSize: {
26873
+ readonly type: "integer";
26874
+ readonly minimum: 1;
26875
+ readonly maximum: 50;
26876
+ };
26877
+ readonly scope: {
26878
+ readonly type: "object";
26879
+ readonly additionalProperties: false;
26880
+ readonly required: readonly ["dimensionCode", "operation"];
26881
+ readonly properties: {
26882
+ readonly dimensionCode: {
26883
+ readonly type: "string";
26884
+ readonly minLength: 1;
26885
+ readonly maxLength: 128;
26886
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
26887
+ };
26888
+ readonly operation: {
26889
+ readonly type: "string";
26890
+ readonly minLength: 1;
26891
+ readonly maxLength: 64;
26892
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
26893
+ };
26894
+ readonly field: {
26895
+ readonly type: "string";
26896
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
26897
+ };
26898
+ readonly value: {
26899
+ readonly type: "string";
26900
+ readonly minLength: 1;
26901
+ readonly maxLength: 255;
26902
+ readonly pattern: "^\\S(?:[\\s\\S]*\\S)?$";
26903
+ };
26904
+ };
26905
+ readonly oneOf: readonly [{
26906
+ readonly required: readonly ["field"];
26907
+ readonly not: {
26908
+ readonly required: readonly ["value"];
26909
+ };
26910
+ }, {
26911
+ readonly required: readonly ["value"];
26912
+ readonly not: {
26913
+ readonly required: readonly ["field"];
26914
+ };
26915
+ }];
26916
+ };
26917
+ };
26918
+ };
24940
26919
  readonly maxLength: {
24941
26920
  readonly type: "integer";
24942
26921
  readonly minimum: 1;
@@ -25031,7 +27010,7 @@ export declare const contractSchemas: {
25031
27010
  readonly maxRows: {
25032
27011
  readonly type: "integer";
25033
27012
  readonly minimum: 1;
25034
- readonly maximum: 49;
27013
+ readonly maximum: 100;
25035
27014
  };
25036
27015
  };
25037
27016
  };
@@ -25091,6 +27070,7 @@ export declare const contractSchemas: {
25091
27070
  enum: string[];
25092
27071
  };
25093
27072
  values?: never;
27073
+ value?: never;
25094
27074
  };
25095
27075
  } | {
25096
27076
  type: string;
@@ -25115,6 +27095,24 @@ export declare const contractSchemas: {
25115
27095
  maxLength: number;
25116
27096
  };
25117
27097
  };
27098
+ value?: never;
27099
+ };
27100
+ } | {
27101
+ type: string;
27102
+ additionalProperties: boolean;
27103
+ required: string[];
27104
+ properties: {
27105
+ fieldCode: {
27106
+ type: string;
27107
+ pattern: string;
27108
+ };
27109
+ operator: {
27110
+ enum: string[];
27111
+ };
27112
+ value: {
27113
+ type: string;
27114
+ };
27115
+ values?: never;
25118
27116
  };
25119
27117
  })[];
25120
27118
  };
@@ -25579,6 +27577,17 @@ export declare const contractSchemas: {
25579
27577
  readonly type: "object";
25580
27578
  readonly additionalProperties: false;
25581
27579
  readonly allOf: readonly [{
27580
+ readonly if: {
27581
+ readonly required: readonly ["userCandidates"];
27582
+ };
27583
+ readonly then: {
27584
+ readonly properties: {
27585
+ readonly type: {
27586
+ readonly enum: readonly ["user.single", "user.multiple"];
27587
+ };
27588
+ };
27589
+ };
27590
+ }, {
25582
27591
  readonly if: {
25583
27592
  readonly properties: {
25584
27593
  readonly type: {
@@ -25827,6 +27836,67 @@ export declare const contractSchemas: {
25827
27836
  };
25828
27837
  };
25829
27838
  };
27839
+ readonly userCandidates: {
27840
+ readonly type: "object";
27841
+ readonly additionalProperties: false;
27842
+ readonly required: readonly ["kind", "roleCode"];
27843
+ readonly properties: {
27844
+ readonly kind: {
27845
+ readonly const: "app-role";
27846
+ };
27847
+ readonly roleCode: {
27848
+ readonly type: "string";
27849
+ readonly minLength: 1;
27850
+ readonly maxLength: 128;
27851
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
27852
+ };
27853
+ readonly pageSize: {
27854
+ readonly type: "integer";
27855
+ readonly minimum: 1;
27856
+ readonly maximum: 50;
27857
+ };
27858
+ readonly scope: {
27859
+ readonly type: "object";
27860
+ readonly additionalProperties: false;
27861
+ readonly required: readonly ["dimensionCode", "operation"];
27862
+ readonly properties: {
27863
+ readonly dimensionCode: {
27864
+ readonly type: "string";
27865
+ readonly minLength: 1;
27866
+ readonly maxLength: 128;
27867
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
27868
+ };
27869
+ readonly operation: {
27870
+ readonly type: "string";
27871
+ readonly minLength: 1;
27872
+ readonly maxLength: 64;
27873
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
27874
+ };
27875
+ readonly field: {
27876
+ readonly type: "string";
27877
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
27878
+ };
27879
+ readonly value: {
27880
+ readonly type: "string";
27881
+ readonly minLength: 1;
27882
+ readonly maxLength: 255;
27883
+ readonly pattern: "^\\S(?:[\\s\\S]*\\S)?$";
27884
+ };
27885
+ };
27886
+ readonly oneOf: readonly [{
27887
+ readonly required: readonly ["field"];
27888
+ readonly not: {
27889
+ readonly required: readonly ["value"];
27890
+ };
27891
+ }, {
27892
+ readonly required: readonly ["value"];
27893
+ readonly not: {
27894
+ readonly required: readonly ["field"];
27895
+ };
27896
+ }];
27897
+ };
27898
+ };
27899
+ };
25830
27900
  readonly timePrecision: {
25831
27901
  readonly enum: readonly ["minute", "second"];
25832
27902
  };
@@ -25869,7 +27939,7 @@ export declare const contractSchemas: {
25869
27939
  readonly maxRows: {
25870
27940
  readonly type: "integer";
25871
27941
  readonly minimum: 1;
25872
- readonly maximum: 49;
27942
+ readonly maximum: 100;
25873
27943
  };
25874
27944
  };
25875
27945
  };
@@ -27240,6 +29310,7 @@ export declare const contractSchemas: {
27240
29310
  };
27241
29311
  readonly dataTransactionRequest: {
27242
29312
  readonly $id: "openxiangda.data-transaction-request/v2";
29313
+ readonly "x-openxiangda-max-bytes": number;
27243
29314
  readonly $defs: {
27244
29315
  readonly dataWhere: {
27245
29316
  readonly oneOf: readonly [{
@@ -27329,7 +29400,7 @@ export declare const contractSchemas: {
27329
29400
  readonly childOperationIndex: {
27330
29401
  readonly type: "integer";
27331
29402
  readonly minimum: 0;
27332
- readonly maximum: 99;
29403
+ readonly maximum: number;
27333
29404
  };
27334
29405
  };
27335
29406
  };
@@ -27348,7 +29419,7 @@ export declare const contractSchemas: {
27348
29419
  readonly operationIndex: {
27349
29420
  readonly type: "integer";
27350
29421
  readonly minimum: 0;
27351
- readonly maximum: 99;
29422
+ readonly maximum: number;
27352
29423
  };
27353
29424
  readonly field: {
27354
29425
  readonly type: "string";
@@ -27631,7 +29702,7 @@ export declare const contractSchemas: {
27631
29702
  readonly operations: {
27632
29703
  readonly type: "array";
27633
29704
  readonly minItems: 1;
27634
- readonly maxItems: 100;
29705
+ readonly maxItems: 1000;
27635
29706
  readonly items: {
27636
29707
  readonly oneOf: readonly [{
27637
29708
  readonly type: "object";
@@ -27656,7 +29727,7 @@ export declare const contractSchemas: {
27656
29727
  readonly operationIndex: {
27657
29728
  readonly type: "integer";
27658
29729
  readonly minimum: 0;
27659
- readonly maximum: 99;
29730
+ readonly maximum: number;
27660
29731
  };
27661
29732
  readonly field: {
27662
29733
  readonly const: "id";
@@ -27702,7 +29773,7 @@ export declare const contractSchemas: {
27702
29773
  readonly operationIndex: {
27703
29774
  readonly type: "integer";
27704
29775
  readonly minimum: 0;
27705
- readonly maximum: 99;
29776
+ readonly maximum: number;
27706
29777
  };
27707
29778
  readonly field: {
27708
29779
  readonly const: "id";
@@ -27818,7 +29889,7 @@ export declare const contractSchemas: {
27818
29889
  };
27819
29890
  readonly items: {
27820
29891
  readonly type: "array";
27821
- readonly maxItems: 100;
29892
+ readonly maxItems: 1000;
27822
29893
  readonly items: {
27823
29894
  readonly oneOf: readonly [{
27824
29895
  readonly type: "object";
@@ -29011,6 +31082,41 @@ export declare const contractSchemas: {
29011
31082
  readonly type: "string";
29012
31083
  readonly minLength: 1;
29013
31084
  };
31085
+ readonly launchPreflight: {
31086
+ readonly type: "object";
31087
+ readonly additionalProperties: false;
31088
+ readonly required: readonly ["requiredApprovalNodes"];
31089
+ readonly properties: {
31090
+ readonly requiredApprovalNodes: {
31091
+ readonly type: "array";
31092
+ readonly minItems: 1;
31093
+ readonly maxItems: 20;
31094
+ readonly uniqueItems: true;
31095
+ readonly items: {
31096
+ readonly type: "string";
31097
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_-]{0,127}$";
31098
+ };
31099
+ };
31100
+ };
31101
+ };
31102
+ readonly commandHandlers: {
31103
+ readonly type: "object";
31104
+ readonly additionalProperties: false;
31105
+ readonly minProperties: 1;
31106
+ readonly properties: {
31107
+ [k: string]: {
31108
+ type: string;
31109
+ additionalProperties: boolean;
31110
+ required: string[];
31111
+ properties: {
31112
+ operationCode: {
31113
+ type: string;
31114
+ pattern: string;
31115
+ };
31116
+ };
31117
+ };
31118
+ };
31119
+ };
29014
31120
  readonly taskPages: {
29015
31121
  readonly type: "object";
29016
31122
  readonly minProperties: 1;
@@ -29110,6 +31216,28 @@ export declare const contractSchemas: {
29110
31216
  readonly acceptedCommandDeactivationPolicy: {
29111
31217
  readonly enum: readonly ["finish-pinned", "cancel-on-deactivate"];
29112
31218
  };
31219
+ readonly rejectionNotification: {
31220
+ readonly type: "object";
31221
+ readonly additionalProperties: false;
31222
+ readonly required: readonly ["recipient", "title", "summary"];
31223
+ readonly properties: {
31224
+ readonly recipient: {
31225
+ readonly const: "record_last_modifier";
31226
+ };
31227
+ readonly title: {
31228
+ readonly type: "string";
31229
+ readonly minLength: 1;
31230
+ readonly maxLength: 160;
31231
+ readonly pattern: "\\S";
31232
+ };
31233
+ readonly summary: {
31234
+ readonly type: "string";
31235
+ readonly minLength: 1;
31236
+ readonly maxLength: 500;
31237
+ readonly pattern: "\\S";
31238
+ };
31239
+ };
31240
+ };
29113
31241
  readonly instanceCommands: {
29114
31242
  readonly type: "object";
29115
31243
  readonly additionalProperties: false;
@@ -29118,12 +31246,15 @@ export declare const contractSchemas: {
29118
31246
  readonly withdraw: {
29119
31247
  readonly type: "object";
29120
31248
  readonly additionalProperties: false;
29121
- readonly required: readonly ["beforeFact"];
31249
+ readonly minProperties: 1;
29122
31250
  readonly properties: {
29123
31251
  readonly beforeFact: {
29124
31252
  readonly type: "string";
29125
31253
  readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
29126
31254
  };
31255
+ readonly reasonRequired: {
31256
+ readonly type: "boolean";
31257
+ };
29127
31258
  };
29128
31259
  };
29129
31260
  readonly terminate: {
@@ -29248,6 +31379,12 @@ export declare const contractSchemas: {
29248
31379
  readonly mode: {
29249
31380
  readonly enum: readonly ["single", "any", "all", "sequence"];
29250
31381
  };
31382
+ readonly emptyPolicy: {
31383
+ readonly enum: readonly ["block", "skip"];
31384
+ };
31385
+ readonly initiatorApprovalPolicy: {
31386
+ readonly enum: readonly ["manual", "auto_approve"];
31387
+ };
29251
31388
  readonly onApprove: {
29252
31389
  readonly type: "string";
29253
31390
  readonly minLength: 1;
@@ -29260,6 +31397,28 @@ export declare const contractSchemas: {
29260
31397
  readonly type: "string";
29261
31398
  readonly pattern: "^[A-Za-z][A-Za-z0-9_-]{0,63}$";
29262
31399
  };
31400
+ readonly operationPolicy: {
31401
+ readonly type: "object";
31402
+ readonly additionalProperties: false;
31403
+ readonly properties: {
31404
+ [k: string]: {
31405
+ type: string;
31406
+ additionalProperties: boolean;
31407
+ minProperties: number;
31408
+ properties: {
31409
+ commentRequired?: {
31410
+ type: string;
31411
+ };
31412
+ label: {
31413
+ type: string;
31414
+ minLength: number;
31415
+ maxLength: number;
31416
+ pattern: string;
31417
+ };
31418
+ };
31419
+ };
31420
+ };
31421
+ };
29263
31422
  readonly allowedOperations: {
29264
31423
  readonly type: "array";
29265
31424
  readonly uniqueItems: true;
@@ -29525,6 +31684,28 @@ export declare const contractSchemas: {
29525
31684
  readonly type: "object";
29526
31685
  readonly additionalProperties: false;
29527
31686
  readonly required: readonly ["provider"];
31687
+ readonly allOf: readonly [{
31688
+ readonly if: {
31689
+ readonly required: readonly ["candidateField"];
31690
+ };
31691
+ readonly then: {
31692
+ readonly required: readonly ["inputPath"];
31693
+ readonly properties: {
31694
+ readonly provider: {
31695
+ readonly const: "form_field_users";
31696
+ };
31697
+ };
31698
+ readonly not: {
31699
+ readonly anyOf: readonly [{
31700
+ readonly required: readonly ["roleCode"];
31701
+ }, {
31702
+ readonly required: readonly ["scope"];
31703
+ }, {
31704
+ readonly required: readonly ["routing"];
31705
+ }];
31706
+ };
31707
+ };
31708
+ }];
29528
31709
  readonly properties: {
29529
31710
  readonly provider: {
29530
31711
  readonly enum: readonly ["fixed_users", "initiator", "input_users", "form_field_users", "department_supervisor", "app_role", "app_role_in_scope", "business_relation", "previous_node_actor", "initiator_select", "application_provider"];
@@ -29540,6 +31721,10 @@ export declare const contractSchemas: {
29540
31721
  readonly inputPath: {
29541
31722
  readonly type: "string";
29542
31723
  };
31724
+ readonly candidateField: {
31725
+ readonly type: "string";
31726
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
31727
+ };
29543
31728
  readonly departmentIdFrom: {
29544
31729
  readonly type: "string";
29545
31730
  };
@@ -32431,126 +34616,818 @@ export declare const contractSchemas: {
32431
34616
  readonly minLength: 1;
32432
34617
  readonly maxLength: 255;
32433
34618
  };
32434
- readonly dataRef: {
34619
+ readonly dataRef: {
34620
+ readonly type: "object";
34621
+ readonly additionalProperties: false;
34622
+ readonly required: readonly ["resourceCode", "id"];
34623
+ readonly properties: {
34624
+ readonly resourceCode: {
34625
+ readonly type: "string";
34626
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
34627
+ readonly maxLength: 64;
34628
+ };
34629
+ readonly id: {
34630
+ readonly type: "string";
34631
+ readonly minLength: 1;
34632
+ readonly maxLength: 255;
34633
+ };
34634
+ };
34635
+ };
34636
+ readonly dataRevision: {
34637
+ readonly type: "integer";
34638
+ readonly minimum: 1;
34639
+ };
34640
+ readonly definitionVersion: {
34641
+ readonly type: "integer";
34642
+ readonly minimum: 1;
34643
+ };
34644
+ readonly bindingVersion: {
34645
+ readonly type: "integer";
34646
+ readonly minimum: 1;
34647
+ };
34648
+ readonly factDigest: {
34649
+ readonly type: "string";
34650
+ readonly pattern: "^[0-9a-f]{64}$";
34651
+ };
34652
+ readonly facts: {
34653
+ readonly type: "object";
34654
+ };
34655
+ readonly organizationContext: {
34656
+ readonly type: "object";
34657
+ };
34658
+ readonly initiator: {
34659
+ readonly type: "object";
34660
+ };
34661
+ readonly authzVersion: {
34662
+ readonly type: "integer";
34663
+ readonly minimum: 1;
34664
+ };
34665
+ };
34666
+ };
34667
+ readonly workflowAssigneeResponse: {
34668
+ readonly $id: "openxiangda.workflow-assignee-response/v2";
34669
+ readonly type: "object";
34670
+ readonly additionalProperties: false;
34671
+ readonly required: readonly ["schemaVersion", "requestId", "candidates"];
34672
+ readonly properties: {
34673
+ readonly schemaVersion: {
34674
+ readonly const: "openxiangda.workflow-assignee-response/v2";
34675
+ };
34676
+ readonly requestId: {
34677
+ readonly type: "string";
34678
+ readonly minLength: 1;
34679
+ };
34680
+ readonly candidates: {
34681
+ readonly type: "array";
34682
+ readonly maxItems: 200;
34683
+ readonly items: {
34684
+ readonly type: "object";
34685
+ readonly required: readonly ["userId", "source"];
34686
+ readonly properties: {
34687
+ readonly userId: {
34688
+ readonly type: "string";
34689
+ readonly minLength: 1;
34690
+ };
34691
+ readonly roleSubjectKey: {
34692
+ readonly type: "string";
34693
+ readonly minLength: 1;
34694
+ };
34695
+ readonly roleSubjectKind: {
34696
+ readonly enum: readonly ["membership", "super_admin"];
34697
+ };
34698
+ readonly roleSubjectRevision: {
34699
+ readonly type: "integer";
34700
+ readonly minimum: 1;
34701
+ };
34702
+ readonly roleCode: {
34703
+ readonly type: "string";
34704
+ readonly minLength: 1;
34705
+ };
34706
+ readonly roleName: {
34707
+ readonly type: "string";
34708
+ readonly minLength: 1;
34709
+ };
34710
+ readonly displayName: {
34711
+ readonly type: "string";
34712
+ readonly minLength: 1;
34713
+ };
34714
+ readonly source: {
34715
+ readonly type: "string";
34716
+ readonly minLength: 1;
34717
+ };
34718
+ };
34719
+ };
34720
+ };
34721
+ };
34722
+ };
34723
+ readonly businessProcessCommit: {
34724
+ readonly $id: "openxiangda.business-process.commit/v2";
34725
+ readonly type: "object";
34726
+ readonly additionalProperties: false;
34727
+ readonly required: readonly ["schemaVersion", "environmentKey", "idempotencyKey", "data", "workflow"];
34728
+ readonly properties: {
34729
+ readonly schemaVersion: {
34730
+ readonly const: "openxiangda.business-process.commit/v2";
34731
+ };
34732
+ readonly environmentKey: {
34733
+ readonly enum: readonly ["preproduction", "production"];
34734
+ };
34735
+ readonly idempotencyKey: {
34736
+ readonly type: "string";
34737
+ readonly minLength: 1;
34738
+ readonly maxLength: 128;
34739
+ };
34740
+ readonly data: {
34741
+ readonly type: "object";
34742
+ readonly additionalProperties: false;
34743
+ readonly required: readonly ["operations"];
34744
+ readonly properties: {
34745
+ readonly guards: {
34746
+ readonly type: "array";
34747
+ readonly maxItems: 20;
34748
+ readonly items: {
34749
+ readonly oneOf: readonly [{
34750
+ readonly type: "object";
34751
+ readonly additionalProperties: false;
34752
+ readonly required: readonly ["kind", "operationIndex", "field", "operator", "offsetMilliseconds", "errorCode"];
34753
+ readonly properties: {
34754
+ readonly kind: {
34755
+ readonly const: "operation-time";
34756
+ };
34757
+ readonly operationIndex: {
34758
+ readonly type: "integer";
34759
+ readonly minimum: 0;
34760
+ readonly maximum: number;
34761
+ };
34762
+ readonly field: {
34763
+ readonly type: "string";
34764
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
34765
+ };
34766
+ readonly operator: {
34767
+ readonly enum: readonly ["eq", "neq", "gt", "gte", "lt", "lte"];
34768
+ };
34769
+ readonly offsetMilliseconds: {
34770
+ readonly type: "integer";
34771
+ readonly minimum: -31622400000;
34772
+ readonly maximum: 31622400000;
34773
+ };
34774
+ readonly errorCode: {
34775
+ readonly type: "string";
34776
+ readonly pattern: "^OPENXIANGDA_[A-Z0-9_]{1,96}$";
34777
+ };
34778
+ };
34779
+ }, {
34780
+ readonly type: "object";
34781
+ readonly additionalProperties: false;
34782
+ readonly required: readonly ["kind", "userId", "roleCode", "errorCode"];
34783
+ readonly properties: {
34784
+ readonly kind: {
34785
+ readonly const: "role-member";
34786
+ };
34787
+ readonly userId: {
34788
+ readonly type: "string";
34789
+ readonly minLength: 1;
34790
+ readonly maxLength: 255;
34791
+ };
34792
+ readonly roleCode: {
34793
+ readonly type: "string";
34794
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
34795
+ readonly maxLength: 100;
34796
+ };
34797
+ readonly errorCode: {
34798
+ readonly type: "string";
34799
+ readonly pattern: "^OPENXIANGDA_[A-Z0-9_]{1,96}$";
34800
+ };
34801
+ };
34802
+ }, {
34803
+ readonly type: "object";
34804
+ readonly additionalProperties: false;
34805
+ readonly required: readonly ["kind", "resourceCode", "lockKey", "errorCode", "where"];
34806
+ readonly properties: {
34807
+ readonly kind: {
34808
+ readonly const: "query-empty";
34809
+ };
34810
+ readonly resourceCode: {
34811
+ readonly type: "string";
34812
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
34813
+ };
34814
+ readonly lockKey: {
34815
+ readonly type: "string";
34816
+ readonly minLength: 1;
34817
+ readonly maxLength: 128;
34818
+ };
34819
+ readonly errorCode: {
34820
+ readonly type: "string";
34821
+ readonly pattern: "^OPENXIANGDA_[A-Z0-9_]{1,96}$";
34822
+ };
34823
+ readonly where: {
34824
+ readonly $ref: "#/$defs/dataWhere";
34825
+ };
34826
+ };
34827
+ }, {
34828
+ readonly type: "object";
34829
+ readonly additionalProperties: false;
34830
+ readonly required: readonly ["kind", "resourceCode", "lockKey", "errorCode", "id", "assertions"];
34831
+ readonly properties: {
34832
+ readonly kind: {
34833
+ readonly const: "record-assert";
34834
+ };
34835
+ readonly resourceCode: {
34836
+ readonly type: "string";
34837
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
34838
+ };
34839
+ readonly lockKey: {
34840
+ readonly type: "string";
34841
+ readonly minLength: 1;
34842
+ readonly maxLength: 128;
34843
+ };
34844
+ readonly errorCode: {
34845
+ readonly type: "string";
34846
+ readonly pattern: "^OPENXIANGDA_[A-Z0-9_]{1,96}$";
34847
+ };
34848
+ readonly id: {
34849
+ readonly type: "string";
34850
+ readonly minLength: 1;
34851
+ };
34852
+ readonly assertions: {
34853
+ readonly type: "array";
34854
+ readonly minItems: 1;
34855
+ readonly maxItems: 20;
34856
+ readonly items: {
34857
+ readonly oneOf: readonly [{
34858
+ readonly type: "object";
34859
+ readonly additionalProperties: false;
34860
+ readonly required: readonly ["kind", "field", "operator"];
34861
+ readonly properties: {
34862
+ readonly kind: {
34863
+ readonly const: "value";
34864
+ };
34865
+ readonly field: {
34866
+ readonly type: "string";
34867
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
34868
+ };
34869
+ readonly operator: {
34870
+ readonly enum: readonly ["eq", "neq", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "in", "between", "has", "hasAny", "hasAll", "overlaps", "containedBy", "jsonContains", "isEmpty", "isNotEmpty"];
34871
+ };
34872
+ readonly value: {};
34873
+ readonly path: {
34874
+ readonly type: "string";
34875
+ readonly minLength: 1;
34876
+ readonly maxLength: 128;
34877
+ };
34878
+ };
34879
+ }, {
34880
+ readonly type: "object";
34881
+ readonly additionalProperties: false;
34882
+ readonly required: readonly ["kind", "leftField", "operator", "rightField"];
34883
+ readonly properties: {
34884
+ readonly kind: {
34885
+ readonly const: "field";
34886
+ };
34887
+ readonly leftField: {
34888
+ readonly type: "string";
34889
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
34890
+ };
34891
+ readonly operator: {
34892
+ readonly enum: readonly ["eq", "neq", "gt", "gte", "lt", "lte"];
34893
+ };
34894
+ readonly rightField: {
34895
+ readonly type: "string";
34896
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
34897
+ };
34898
+ };
34899
+ }, {
34900
+ readonly type: "object";
34901
+ readonly additionalProperties: false;
34902
+ readonly required: readonly ["kind", "field", "operator"];
34903
+ readonly properties: {
34904
+ readonly kind: {
34905
+ readonly const: "database-now";
34906
+ };
34907
+ readonly field: {
34908
+ readonly type: "string";
34909
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
34910
+ };
34911
+ readonly operator: {
34912
+ readonly enum: readonly ["eq", "neq", "gt", "gte", "lt", "lte"];
34913
+ };
34914
+ };
34915
+ }];
34916
+ };
34917
+ };
34918
+ };
34919
+ }, {
34920
+ readonly type: "object";
34921
+ readonly additionalProperties: false;
34922
+ readonly required: readonly ["kind", "resourceCode", "lockKey", "errorCode", "id"];
34923
+ readonly properties: {
34924
+ readonly kind: {
34925
+ readonly const: "record-exists";
34926
+ };
34927
+ readonly resourceCode: {
34928
+ readonly type: "string";
34929
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
34930
+ };
34931
+ readonly lockKey: {
34932
+ readonly type: "string";
34933
+ readonly minLength: 1;
34934
+ readonly maxLength: 128;
34935
+ };
34936
+ readonly errorCode: {
34937
+ readonly type: "string";
34938
+ readonly pattern: "^OPENXIANGDA_[A-Z0-9_]{1,96}$";
34939
+ };
34940
+ readonly id: {
34941
+ readonly type: "string";
34942
+ readonly minLength: 1;
34943
+ };
34944
+ };
34945
+ }, {
34946
+ readonly type: "object";
34947
+ readonly additionalProperties: false;
34948
+ readonly required: readonly ["kind", "resourceCode", "lockKey", "errorCode", "id", "assertions"];
34949
+ readonly properties: {
34950
+ readonly kind: {
34951
+ readonly const: "record-match";
34952
+ };
34953
+ readonly resourceCode: {
34954
+ readonly type: "string";
34955
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
34956
+ };
34957
+ readonly lockKey: {
34958
+ readonly type: "string";
34959
+ readonly minLength: 1;
34960
+ readonly maxLength: 128;
34961
+ };
34962
+ readonly errorCode: {
34963
+ readonly type: "string";
34964
+ readonly pattern: "^OPENXIANGDA_[A-Z0-9_]{1,96}$";
34965
+ };
34966
+ readonly id: {
34967
+ readonly type: "string";
34968
+ readonly minLength: 1;
34969
+ };
34970
+ readonly assertions: {
34971
+ readonly type: "array";
34972
+ readonly minItems: 1;
34973
+ readonly maxItems: 20;
34974
+ readonly items: {
34975
+ readonly oneOf: readonly [{
34976
+ readonly type: "object";
34977
+ readonly additionalProperties: false;
34978
+ readonly required: readonly ["kind", "field", "operator"];
34979
+ readonly properties: {
34980
+ readonly kind: {
34981
+ readonly const: "value";
34982
+ };
34983
+ readonly field: {
34984
+ readonly type: "string";
34985
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
34986
+ };
34987
+ readonly operator: {
34988
+ readonly enum: readonly ["eq", "neq", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "in", "between", "has", "hasAny", "hasAll", "overlaps", "containedBy", "jsonContains", "isEmpty", "isNotEmpty"];
34989
+ };
34990
+ readonly value: {};
34991
+ readonly path: {
34992
+ readonly type: "string";
34993
+ readonly minLength: 1;
34994
+ readonly maxLength: 128;
34995
+ };
34996
+ };
34997
+ }, {
34998
+ readonly type: "object";
34999
+ readonly additionalProperties: false;
35000
+ readonly required: readonly ["kind", "leftField", "operator", "rightField"];
35001
+ readonly properties: {
35002
+ readonly kind: {
35003
+ readonly const: "field";
35004
+ };
35005
+ readonly leftField: {
35006
+ readonly type: "string";
35007
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
35008
+ };
35009
+ readonly operator: {
35010
+ readonly enum: readonly ["eq", "neq", "gt", "gte", "lt", "lte"];
35011
+ };
35012
+ readonly rightField: {
35013
+ readonly type: "string";
35014
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
35015
+ };
35016
+ };
35017
+ }, {
35018
+ readonly type: "object";
35019
+ readonly additionalProperties: false;
35020
+ readonly required: readonly ["kind", "field", "operator"];
35021
+ readonly properties: {
35022
+ readonly kind: {
35023
+ readonly const: "database-now";
35024
+ };
35025
+ readonly field: {
35026
+ readonly type: "string";
35027
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
35028
+ };
35029
+ readonly operator: {
35030
+ readonly enum: readonly ["eq", "neq", "gt", "gte", "lt", "lte"];
35031
+ };
35032
+ };
35033
+ }];
35034
+ };
35035
+ };
35036
+ };
35037
+ }];
35038
+ };
35039
+ };
35040
+ readonly operations: {
35041
+ readonly type: "array";
35042
+ readonly minItems: 1;
35043
+ readonly maxItems: 16;
35044
+ readonly items: {
35045
+ readonly oneOf: readonly [{
35046
+ readonly type: "object";
35047
+ readonly additionalProperties: false;
35048
+ readonly required: readonly ["key", "kind", "resourceCode", "data"];
35049
+ readonly properties: {
35050
+ readonly key: {
35051
+ readonly type: "string";
35052
+ readonly minLength: 1;
35053
+ readonly maxLength: 128;
35054
+ };
35055
+ readonly kind: {
35056
+ readonly const: "create";
35057
+ };
35058
+ readonly resourceCode: {
35059
+ readonly type: "string";
35060
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
35061
+ };
35062
+ readonly data: {
35063
+ readonly type: "object";
35064
+ readonly maxProperties: 200;
35065
+ };
35066
+ };
35067
+ }, {
35068
+ readonly type: "object";
35069
+ readonly additionalProperties: false;
35070
+ readonly required: readonly ["key", "kind", "resourceCode", "id", "expectedRevision", "data"];
35071
+ readonly properties: {
35072
+ readonly key: {
35073
+ readonly type: "string";
35074
+ readonly minLength: 1;
35075
+ readonly maxLength: 128;
35076
+ };
35077
+ readonly kind: {
35078
+ readonly const: "update";
35079
+ };
35080
+ readonly resourceCode: {
35081
+ readonly type: "string";
35082
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
35083
+ };
35084
+ readonly id: {
35085
+ readonly type: "string";
35086
+ readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$";
35087
+ };
35088
+ readonly expectedRevision: {
35089
+ readonly type: "integer";
35090
+ readonly minimum: 1;
35091
+ };
35092
+ readonly data: {
35093
+ readonly type: "object";
35094
+ readonly maxProperties: 200;
35095
+ };
35096
+ };
35097
+ }, {
35098
+ readonly type: "object";
35099
+ readonly additionalProperties: false;
35100
+ readonly required: readonly ["key", "kind", "resourceCode", "id", "expectedRevision"];
35101
+ readonly properties: {
35102
+ readonly key: {
35103
+ readonly type: "string";
35104
+ readonly minLength: 1;
35105
+ readonly maxLength: 128;
35106
+ };
35107
+ readonly kind: {
35108
+ readonly const: "delete";
35109
+ };
35110
+ readonly resourceCode: {
35111
+ readonly type: "string";
35112
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
35113
+ };
35114
+ readonly id: {
35115
+ readonly type: "string";
35116
+ readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$";
35117
+ };
35118
+ readonly expectedRevision: {
35119
+ readonly type: "integer";
35120
+ readonly minimum: 1;
35121
+ };
35122
+ };
35123
+ }, {
35124
+ readonly type: "object";
35125
+ readonly additionalProperties: false;
35126
+ readonly required: readonly ["key", "kind", "resourceCode", "id", "field", "amount"];
35127
+ readonly properties: {
35128
+ readonly key: {
35129
+ readonly type: "string";
35130
+ readonly minLength: 1;
35131
+ readonly maxLength: 128;
35132
+ };
35133
+ readonly kind: {
35134
+ readonly const: "increment";
35135
+ };
35136
+ readonly resourceCode: {
35137
+ readonly type: "string";
35138
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
35139
+ };
35140
+ readonly id: {
35141
+ readonly type: "string";
35142
+ readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$";
35143
+ };
35144
+ readonly field: {
35145
+ readonly type: "string";
35146
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
35147
+ };
35148
+ readonly amount: {
35149
+ readonly type: "number";
35150
+ readonly exclusiveMinimum: -1000000000000;
35151
+ readonly exclusiveMaximum: 1000000000000;
35152
+ };
35153
+ };
35154
+ }];
35155
+ };
35156
+ };
35157
+ };
35158
+ };
35159
+ readonly formDraft: {
32435
35160
  readonly type: "object";
32436
35161
  readonly additionalProperties: false;
32437
- readonly required: readonly ["resourceCode", "id"];
35162
+ readonly required: readonly ["resourceCode", "id", "expectedRevision", "mode"];
32438
35163
  readonly properties: {
32439
35164
  readonly resourceCode: {
32440
35165
  readonly type: "string";
32441
35166
  readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
32442
- readonly maxLength: 64;
32443
35167
  };
32444
35168
  readonly id: {
35169
+ readonly type: "string";
35170
+ readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$";
35171
+ };
35172
+ readonly expectedRevision: {
35173
+ readonly type: "integer";
35174
+ readonly minimum: 1;
35175
+ };
35176
+ readonly mode: {
35177
+ readonly enum: readonly ["create", "update"];
35178
+ };
35179
+ readonly recordId: {
35180
+ readonly type: "string";
35181
+ readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$";
35182
+ };
35183
+ readonly viewCode: {
32445
35184
  readonly type: "string";
32446
35185
  readonly minLength: 1;
32447
- readonly maxLength: 255;
35186
+ readonly maxLength: 64;
35187
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
32448
35188
  };
32449
35189
  };
35190
+ readonly allOf: readonly [{
35191
+ readonly if: {
35192
+ readonly properties: {
35193
+ readonly mode: {
35194
+ readonly const: "update";
35195
+ };
35196
+ };
35197
+ readonly required: readonly ["mode"];
35198
+ };
35199
+ readonly then: {
35200
+ readonly required: readonly ["recordId"];
35201
+ };
35202
+ readonly else: {
35203
+ readonly not: {
35204
+ readonly required: readonly ["recordId"];
35205
+ };
35206
+ };
35207
+ }];
32450
35208
  };
32451
- readonly dataRevision: {
32452
- readonly type: "integer";
32453
- readonly minimum: 1;
32454
- };
32455
- readonly definitionVersion: {
32456
- readonly type: "integer";
32457
- readonly minimum: 1;
32458
- };
32459
- readonly bindingVersion: {
32460
- readonly type: "integer";
32461
- readonly minimum: 1;
32462
- };
32463
- readonly factDigest: {
32464
- readonly type: "string";
32465
- readonly pattern: "^[0-9a-f]{64}$";
32466
- };
32467
- readonly facts: {
32468
- readonly type: "object";
32469
- };
32470
- readonly organizationContext: {
35209
+ readonly decimalReservation: {
32471
35210
  readonly type: "object";
35211
+ readonly additionalProperties: false;
35212
+ readonly required: readonly ["parentId", "expectedParentRevision", "childOperationKey", "reservationKey", "amount", "currencyCode"];
35213
+ readonly properties: {
35214
+ readonly parentId: {
35215
+ readonly type: "string";
35216
+ readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$";
35217
+ };
35218
+ readonly expectedParentRevision: {
35219
+ readonly type: "integer";
35220
+ readonly minimum: 1;
35221
+ };
35222
+ readonly childOperationKey: {
35223
+ readonly type: "string";
35224
+ readonly minLength: 1;
35225
+ readonly maxLength: 128;
35226
+ };
35227
+ readonly reservationKey: {
35228
+ readonly type: "string";
35229
+ readonly minLength: 1;
35230
+ readonly maxLength: 128;
35231
+ };
35232
+ readonly amount: {
35233
+ readonly type: "string";
35234
+ readonly minLength: 1;
35235
+ readonly maxLength: 19;
35236
+ readonly pattern: "^(?!0(?:\\.0{1,2})?$)(?:0|[1-9][0-9]{0,15})(?:\\.[0-9]{1,2})?$";
35237
+ };
35238
+ readonly currencyCode: {
35239
+ readonly type: "string";
35240
+ readonly pattern: "^[A-Z]{3}$";
35241
+ };
35242
+ };
32472
35243
  };
32473
- readonly initiator: {
35244
+ readonly workflow: {
32474
35245
  readonly type: "object";
32475
- };
32476
- readonly authzVersion: {
32477
- readonly type: "integer";
32478
- readonly minimum: 1;
35246
+ readonly additionalProperties: false;
35247
+ readonly required: readonly ["workflowCode", "subject"];
35248
+ readonly properties: {
35249
+ readonly workflowCode: {
35250
+ readonly type: "string";
35251
+ readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
35252
+ readonly minLength: 3;
35253
+ readonly maxLength: 128;
35254
+ };
35255
+ readonly subject: {
35256
+ readonly type: "object";
35257
+ readonly additionalProperties: false;
35258
+ readonly required: readonly ["fromOperation"];
35259
+ readonly properties: {
35260
+ readonly fromOperation: {
35261
+ readonly type: "string";
35262
+ readonly minLength: 1;
35263
+ readonly maxLength: 128;
35264
+ };
35265
+ };
35266
+ };
35267
+ readonly answers: {
35268
+ readonly type: "object";
35269
+ readonly maxProperties: 64;
35270
+ readonly propertyNames: {
35271
+ readonly type: "string";
35272
+ readonly minLength: 1;
35273
+ readonly maxLength: 128;
35274
+ };
35275
+ };
35276
+ };
32479
35277
  };
32480
35278
  };
32481
35279
  };
32482
- readonly workflowAssigneeResponse: {
32483
- readonly $id: "openxiangda.workflow-assignee-response/v2";
32484
- readonly type: "object";
32485
- readonly additionalProperties: false;
32486
- readonly required: readonly ["schemaVersion", "requestId", "candidates"];
32487
- readonly properties: {
32488
- readonly schemaVersion: {
32489
- readonly const: "openxiangda.workflow-assignee-response/v2";
32490
- };
32491
- readonly requestId: {
32492
- readonly type: "string";
32493
- readonly minLength: 1;
32494
- };
32495
- readonly candidates: {
32496
- readonly type: "array";
32497
- readonly maxItems: 200;
32498
- readonly items: {
35280
+ readonly businessProcessCommandWithData: {
35281
+ readonly $id: "openxiangda.business-process-command-with-data/v2";
35282
+ readonly $defs: {
35283
+ readonly dataWhere: {
35284
+ readonly oneOf: readonly [{
32499
35285
  readonly type: "object";
32500
- readonly required: readonly ["userId", "source"];
35286
+ readonly additionalProperties: false;
35287
+ readonly required: readonly ["and"];
32501
35288
  readonly properties: {
32502
- readonly userId: {
32503
- readonly type: "string";
32504
- readonly minLength: 1;
32505
- };
32506
- readonly roleSubjectKey: {
32507
- readonly type: "string";
32508
- readonly minLength: 1;
32509
- };
32510
- readonly roleSubjectKind: {
32511
- readonly enum: readonly ["membership", "super_admin"];
35289
+ readonly and: {
35290
+ readonly type: "array";
35291
+ readonly minItems: 1;
35292
+ readonly maxItems: 50;
35293
+ readonly items: {
35294
+ readonly $ref: "#/$defs/dataWhere";
35295
+ };
32512
35296
  };
32513
- readonly roleSubjectRevision: {
32514
- readonly type: "integer";
32515
- readonly minimum: 1;
35297
+ };
35298
+ }, {
35299
+ readonly type: "object";
35300
+ readonly additionalProperties: false;
35301
+ readonly required: readonly ["or"];
35302
+ readonly properties: {
35303
+ readonly or: {
35304
+ readonly type: "array";
35305
+ readonly minItems: 1;
35306
+ readonly maxItems: 50;
35307
+ readonly items: {
35308
+ readonly $ref: "#/$defs/dataWhere";
35309
+ };
32516
35310
  };
32517
- readonly roleCode: {
32518
- readonly type: "string";
32519
- readonly minLength: 1;
35311
+ };
35312
+ }, {
35313
+ readonly type: "object";
35314
+ readonly additionalProperties: false;
35315
+ readonly required: readonly ["not"];
35316
+ readonly properties: {
35317
+ readonly not: {
35318
+ readonly $ref: "#/$defs/dataWhere";
32520
35319
  };
32521
- readonly roleName: {
35320
+ };
35321
+ }, {
35322
+ readonly type: "object";
35323
+ readonly additionalProperties: false;
35324
+ readonly required: readonly ["field", "operator"];
35325
+ readonly properties: {
35326
+ readonly field: {
32522
35327
  readonly type: "string";
32523
- readonly minLength: 1;
35328
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
32524
35329
  };
32525
- readonly displayName: {
32526
- readonly type: "string";
32527
- readonly minLength: 1;
35330
+ readonly operator: {
35331
+ readonly enum: readonly ["eq", "neq", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "in", "between", "has", "hasAny", "hasAll", "overlaps", "containedBy", "jsonContains", "isEmpty", "isNotEmpty"];
32528
35332
  };
32529
- readonly source: {
35333
+ readonly value: {};
35334
+ readonly path: {
32530
35335
  readonly type: "string";
32531
- readonly minLength: 1;
35336
+ readonly pattern: "^(value|label|snapshot\\.[A-Za-z][A-Za-z0-9_]{0,62}|[A-Za-z][A-Za-z0-9_]{0,62})$";
32532
35337
  };
32533
35338
  };
32534
- };
35339
+ }];
32535
35340
  };
32536
35341
  };
32537
- };
32538
- readonly businessProcessCommit: {
32539
- readonly $id: "openxiangda.business-process.commit/v2";
35342
+ readonly 'x-openxiangda-max-bytes': number;
32540
35343
  readonly type: "object";
32541
35344
  readonly additionalProperties: false;
32542
- readonly required: readonly ["schemaVersion", "environmentKey", "idempotencyKey", "data", "workflow"];
35345
+ readonly required: readonly ["schemaVersion", "environmentKey", "workflow", "subject", "data", "expectedTransition"];
32543
35346
  readonly properties: {
32544
35347
  readonly schemaVersion: {
32545
- readonly const: "openxiangda.business-process.commit/v2";
35348
+ readonly const: "openxiangda.business-process-command-with-data/v2";
32546
35349
  };
32547
35350
  readonly environmentKey: {
32548
35351
  readonly enum: readonly ["preproduction", "production"];
32549
35352
  };
32550
- readonly idempotencyKey: {
32551
- readonly type: "string";
32552
- readonly minLength: 1;
32553
- readonly maxLength: 128;
35353
+ readonly workflow: {
35354
+ readonly type: "object";
35355
+ readonly additionalProperties: false;
35356
+ readonly required: readonly ["workflowCode", "target", "recordId", "expectedRevision", "commandToken", "idempotencyKey", "input"];
35357
+ readonly properties: {
35358
+ readonly workflowCode: {
35359
+ readonly type: "string";
35360
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_-]{0,127}$";
35361
+ };
35362
+ readonly target: {
35363
+ readonly oneOf: readonly [{
35364
+ readonly type: "object";
35365
+ readonly additionalProperties: false;
35366
+ readonly required: readonly ["kind", "id", "command"];
35367
+ readonly properties: {
35368
+ readonly kind: {
35369
+ readonly const: "task";
35370
+ };
35371
+ readonly id: {
35372
+ readonly type: "string";
35373
+ readonly format: "uuid";
35374
+ };
35375
+ readonly command: {
35376
+ readonly enum: readonly ["approve", "reject"];
35377
+ };
35378
+ };
35379
+ }, {
35380
+ readonly type: "object";
35381
+ readonly additionalProperties: false;
35382
+ readonly required: readonly ["kind", "id", "command"];
35383
+ readonly properties: {
35384
+ readonly kind: {
35385
+ readonly const: "instance";
35386
+ };
35387
+ readonly id: {
35388
+ readonly type: "string";
35389
+ readonly format: "uuid";
35390
+ };
35391
+ readonly command: {
35392
+ readonly const: "withdraw";
35393
+ };
35394
+ };
35395
+ }];
35396
+ };
35397
+ readonly recordId: {
35398
+ readonly type: "string";
35399
+ readonly format: "uuid";
35400
+ };
35401
+ readonly expectedRevision: {
35402
+ readonly type: "integer";
35403
+ readonly minimum: 1;
35404
+ };
35405
+ readonly commandToken: {
35406
+ readonly type: "string";
35407
+ readonly pattern: "^[A-Za-z0-9_-]{43}$";
35408
+ };
35409
+ readonly idempotencyKey: {
35410
+ readonly type: "string";
35411
+ readonly minLength: 1;
35412
+ readonly maxLength: 128;
35413
+ };
35414
+ readonly input: {
35415
+ readonly type: "object";
35416
+ readonly maxProperties: 64;
35417
+ };
35418
+ };
35419
+ };
35420
+ readonly subject: {
35421
+ readonly type: "object";
35422
+ readonly additionalProperties: false;
35423
+ readonly required: readonly ["fromOperation"];
35424
+ readonly properties: {
35425
+ readonly fromOperation: {
35426
+ readonly type: "string";
35427
+ readonly minLength: 1;
35428
+ readonly maxLength: 128;
35429
+ };
35430
+ };
32554
35431
  };
32555
35432
  readonly data: {
32556
35433
  readonly type: "object";
@@ -32572,7 +35449,7 @@ export declare const contractSchemas: {
32572
35449
  readonly operationIndex: {
32573
35450
  readonly type: "integer";
32574
35451
  readonly minimum: 0;
32575
- readonly maximum: 99;
35452
+ readonly maximum: number;
32576
35453
  };
32577
35454
  readonly field: {
32578
35455
  readonly type: "string";
@@ -32971,123 +35848,23 @@ export declare const contractSchemas: {
32971
35848
  };
32972
35849
  };
32973
35850
  };
32974
- readonly formDraft: {
32975
- readonly type: "object";
32976
- readonly additionalProperties: false;
32977
- readonly required: readonly ["resourceCode", "id", "expectedRevision", "mode"];
32978
- readonly properties: {
32979
- readonly resourceCode: {
32980
- readonly type: "string";
32981
- readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
32982
- };
32983
- readonly id: {
32984
- readonly type: "string";
32985
- readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$";
32986
- };
32987
- readonly expectedRevision: {
32988
- readonly type: "integer";
32989
- readonly minimum: 1;
32990
- };
32991
- readonly mode: {
32992
- readonly enum: readonly ["create", "update"];
32993
- };
32994
- readonly recordId: {
32995
- readonly type: "string";
32996
- readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$";
32997
- };
32998
- readonly viewCode: {
32999
- readonly type: "string";
33000
- readonly minLength: 1;
33001
- readonly maxLength: 64;
33002
- readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
33003
- };
33004
- };
33005
- readonly allOf: readonly [{
33006
- readonly if: {
33007
- readonly properties: {
33008
- readonly mode: {
33009
- readonly const: "update";
33010
- };
33011
- };
33012
- readonly required: readonly ["mode"];
33013
- };
33014
- readonly then: {
33015
- readonly required: readonly ["recordId"];
33016
- };
33017
- readonly else: {
33018
- readonly not: {
33019
- readonly required: readonly ["recordId"];
33020
- };
33021
- };
33022
- }];
33023
- };
33024
- readonly decimalReservation: {
35851
+ readonly expectedTransition: {
33025
35852
  readonly type: "object";
33026
35853
  readonly additionalProperties: false;
33027
- readonly required: readonly ["parentId", "expectedParentRevision", "childOperationKey", "reservationKey", "amount", "currencyCode"];
35854
+ readonly required: readonly ["status", "outcome", "currentNodeId"];
33028
35855
  readonly properties: {
33029
- readonly parentId: {
33030
- readonly type: "string";
33031
- readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$";
33032
- };
33033
- readonly expectedParentRevision: {
33034
- readonly type: "integer";
33035
- readonly minimum: 1;
33036
- };
33037
- readonly childOperationKey: {
33038
- readonly type: "string";
33039
- readonly minLength: 1;
33040
- readonly maxLength: 128;
35856
+ readonly status: {
35857
+ readonly enum: readonly ["running", "approved", "rejected", "withdrawn"];
33041
35858
  };
33042
- readonly reservationKey: {
33043
- readonly type: "string";
33044
- readonly minLength: 1;
35859
+ readonly outcome: {
35860
+ readonly type: readonly ["string", "null"];
33045
35861
  readonly maxLength: 128;
33046
35862
  };
33047
- readonly amount: {
33048
- readonly type: "string";
35863
+ readonly currentNodeId: {
35864
+ readonly type: readonly ["string", "null"];
33049
35865
  readonly minLength: 1;
33050
- readonly maxLength: 19;
33051
- readonly pattern: "^(?!0(?:\\.0{1,2})?$)(?:0|[1-9][0-9]{0,15})(?:\\.[0-9]{1,2})?$";
33052
- };
33053
- readonly currencyCode: {
33054
- readonly type: "string";
33055
- readonly pattern: "^[A-Z]{3}$";
33056
- };
33057
- };
33058
- };
33059
- readonly workflow: {
33060
- readonly type: "object";
33061
- readonly additionalProperties: false;
33062
- readonly required: readonly ["workflowCode", "subject"];
33063
- readonly properties: {
33064
- readonly workflowCode: {
33065
- readonly type: "string";
33066
- readonly pattern: "^[a-z][a-z0-9]*(?:[-_.][a-z0-9]+)*$";
33067
- readonly minLength: 3;
33068
35866
  readonly maxLength: 128;
33069
35867
  };
33070
- readonly subject: {
33071
- readonly type: "object";
33072
- readonly additionalProperties: false;
33073
- readonly required: readonly ["fromOperation"];
33074
- readonly properties: {
33075
- readonly fromOperation: {
33076
- readonly type: "string";
33077
- readonly minLength: 1;
33078
- readonly maxLength: 128;
33079
- };
33080
- };
33081
- };
33082
- readonly answers: {
33083
- readonly type: "object";
33084
- readonly maxProperties: 64;
33085
- readonly propertyNames: {
33086
- readonly type: "string";
33087
- readonly minLength: 1;
33088
- readonly maxLength: 128;
33089
- };
33090
- };
33091
35868
  };
33092
35869
  };
33093
35870
  };
@@ -37009,6 +39786,37 @@ export declare const contractSchemas: {
37009
39786
  readonly additionalProperties: false;
37010
39787
  readonly minProperties: 1;
37011
39788
  readonly properties: {
39789
+ readonly recordEdit: {
39790
+ readonly type: "object";
39791
+ readonly additionalProperties: false;
39792
+ readonly required: readonly ["resourceCode", "fieldCodes"];
39793
+ readonly properties: {
39794
+ readonly resourceCode: {
39795
+ readonly type: "string";
39796
+ readonly pattern: "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$";
39797
+ };
39798
+ readonly fieldCodes: {
39799
+ readonly type: "array";
39800
+ readonly minItems: 1;
39801
+ readonly maxItems: 200;
39802
+ readonly uniqueItems: true;
39803
+ readonly items: {
39804
+ readonly type: "string";
39805
+ readonly pattern: "^[A-Za-z][A-Za-z0-9_]{0,62}$";
39806
+ };
39807
+ };
39808
+ };
39809
+ };
39810
+ readonly dataCommands: {
39811
+ readonly type: "object";
39812
+ readonly additionalProperties: false;
39813
+ readonly required: readonly ["mode"];
39814
+ readonly properties: {
39815
+ readonly mode: {
39816
+ readonly const: "recoverable-native";
39817
+ };
39818
+ };
39819
+ };
37012
39820
  readonly roleAssertions: {
37013
39821
  readonly type: "object";
37014
39822
  readonly additionalProperties: false;
@@ -37038,13 +39846,32 @@ export declare const contractSchemas: {
37038
39846
  readonly fields: {
37039
39847
  readonly type: "array";
37040
39848
  readonly minItems: 1;
37041
- readonly maxItems: 4;
39849
+ readonly maxItems: 5;
37042
39850
  readonly uniqueItems: true;
37043
39851
  readonly items: {
37044
- readonly enum: readonly ["displayName", "employeeNumber", "primaryDepartment", "departments"];
39852
+ readonly enum: readonly ["displayName", "employeeNumber", "primaryDepartment", "departments", "phone"];
37045
39853
  };
37046
39854
  };
37047
39855
  };
39856
+ readonly allOf: readonly [{
39857
+ readonly if: {
39858
+ readonly properties: {
39859
+ readonly mode: {
39860
+ readonly const: "selected-user";
39861
+ };
39862
+ };
39863
+ };
39864
+ readonly then: {
39865
+ readonly properties: {
39866
+ readonly fields: {
39867
+ readonly maxItems: 4;
39868
+ readonly items: {
39869
+ readonly enum: readonly ["displayName", "employeeNumber", "primaryDepartment", "departments"];
39870
+ };
39871
+ };
39872
+ };
39873
+ };
39874
+ }];
37048
39875
  };
37049
39876
  readonly managedFiles: {
37050
39877
  readonly type: "array";
@@ -37151,6 +39978,15 @@ export declare const contractSchemas: {
37151
39978
  readonly maxLength: 128;
37152
39979
  };
37153
39980
  };
39981
+ readonly businessCommands: {
39982
+ readonly type: "array";
39983
+ readonly minItems: 1;
39984
+ readonly maxItems: 3;
39985
+ readonly uniqueItems: true;
39986
+ readonly items: {
39987
+ readonly enum: readonly ["approve", "reject", "withdraw"];
39988
+ };
39989
+ };
37154
39990
  };
37155
39991
  };
37156
39992
  readonly decimalReservation: {