@contractspec/example.workflow-system 1.57.0 → 1.59.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 (209) hide show
  1. package/dist/approval/approval.enum.d.ts +2 -7
  2. package/dist/approval/approval.enum.d.ts.map +1 -1
  3. package/dist/approval/approval.enum.js +20 -26
  4. package/dist/approval/approval.event.d.ts +108 -114
  5. package/dist/approval/approval.event.d.ts.map +1 -1
  6. package/dist/approval/approval.event.js +103 -210
  7. package/dist/approval/approval.handler.d.ts +17 -18
  8. package/dist/approval/approval.handler.d.ts.map +1 -1
  9. package/dist/approval/approval.operations.d.ts +429 -435
  10. package/dist/approval/approval.operations.d.ts.map +1 -1
  11. package/dist/approval/approval.operations.js +364 -339
  12. package/dist/approval/approval.schema.d.ts +86 -91
  13. package/dist/approval/approval.schema.d.ts.map +1 -1
  14. package/dist/approval/approval.schema.js +71 -107
  15. package/dist/approval/index.d.ts +8 -5
  16. package/dist/approval/index.d.ts.map +1 -0
  17. package/dist/approval/index.js +484 -5
  18. package/dist/browser/approval/approval.enum.js +22 -0
  19. package/dist/browser/approval/approval.event.js +112 -0
  20. package/dist/browser/approval/approval.operations.js +369 -0
  21. package/dist/browser/approval/approval.schema.js +73 -0
  22. package/dist/browser/approval/index.js +484 -0
  23. package/dist/browser/docs/index.js +103 -0
  24. package/dist/browser/docs/workflow-system.docblock.js +103 -0
  25. package/dist/browser/entities/approval.js +119 -0
  26. package/dist/browser/entities/index.js +508 -0
  27. package/dist/browser/entities/instance.js +161 -0
  28. package/dist/browser/entities/step.js +124 -0
  29. package/dist/browser/entities/workflow.js +82 -0
  30. package/dist/browser/example.js +42 -0
  31. package/dist/browser/handlers/index.js +253 -0
  32. package/dist/browser/handlers/workflow.handlers.js +253 -0
  33. package/dist/browser/index.js +3120 -0
  34. package/dist/browser/instance/index.js +677 -0
  35. package/dist/browser/instance/instance.enum.js +15 -0
  36. package/dist/browser/instance/instance.event.js +164 -0
  37. package/dist/browser/instance/instance.handler.js +356 -0
  38. package/dist/browser/instance/instance.operations.js +9 -0
  39. package/dist/browser/instance/instance.schema.js +101 -0
  40. package/dist/browser/presentations/index.js +109 -0
  41. package/dist/browser/seeders/index.js +3 -0
  42. package/dist/browser/shared/index.js +3 -0
  43. package/dist/browser/shared/mock-data.js +11 -0
  44. package/dist/browser/shared/types.js +0 -0
  45. package/dist/browser/state-machine/index.js +6 -0
  46. package/dist/browser/tests/operations.test-spec.js +6 -0
  47. package/dist/browser/ui/WorkflowDashboard.js +3 -0
  48. package/dist/browser/ui/hooks/index.js +50 -0
  49. package/dist/browser/ui/hooks/useWorkflowList.js +50 -0
  50. package/dist/browser/ui/index.js +54 -0
  51. package/dist/browser/ui/renderers/index.js +227 -0
  52. package/dist/browser/ui/renderers/workflow.markdown.js +227 -0
  53. package/dist/browser/workflow/index.js +21 -0
  54. package/dist/browser/workflow/workflow.enum.js +36 -0
  55. package/dist/browser/workflow/workflow.event.js +6 -0
  56. package/dist/browser/workflow/workflow.handler.js +5 -0
  57. package/dist/browser/workflow/workflow.operations.js +8 -0
  58. package/dist/browser/workflow/workflow.schema.js +151 -0
  59. package/dist/browser/workflow-system.capability.js +5 -0
  60. package/dist/browser/workflow-system.feature.js +3 -0
  61. package/dist/docs/index.d.ts +2 -1
  62. package/dist/docs/index.d.ts.map +1 -0
  63. package/dist/docs/index.js +104 -1
  64. package/dist/docs/workflow-system.docblock.d.ts +2 -1
  65. package/dist/docs/workflow-system.docblock.d.ts.map +1 -0
  66. package/dist/docs/workflow-system.docblock.js +45 -56
  67. package/dist/entities/approval.d.ts +35 -40
  68. package/dist/entities/approval.d.ts.map +1 -1
  69. package/dist/entities/approval.js +116 -124
  70. package/dist/entities/index.d.ts +132 -137
  71. package/dist/entities/index.d.ts.map +1 -1
  72. package/dist/entities/index.js +506 -29
  73. package/dist/entities/instance.d.ts +46 -51
  74. package/dist/entities/instance.d.ts.map +1 -1
  75. package/dist/entities/instance.js +158 -164
  76. package/dist/entities/step.d.ts +31 -36
  77. package/dist/entities/step.d.ts.map +1 -1
  78. package/dist/entities/step.js +122 -132
  79. package/dist/entities/workflow.d.ts +22 -27
  80. package/dist/entities/workflow.d.ts.map +1 -1
  81. package/dist/entities/workflow.js +80 -99
  82. package/dist/example.d.ts +2 -6
  83. package/dist/example.d.ts.map +1 -1
  84. package/dist/example.js +41 -55
  85. package/dist/handlers/index.d.ts +2 -2
  86. package/dist/handlers/index.d.ts.map +1 -0
  87. package/dist/handlers/index.js +254 -3
  88. package/dist/handlers/workflow.handlers.d.ts +107 -106
  89. package/dist/handlers/workflow.handlers.d.ts.map +1 -1
  90. package/dist/handlers/workflow.handlers.js +237 -246
  91. package/dist/index.d.ts +15 -26
  92. package/dist/index.d.ts.map +1 -0
  93. package/dist/index.js +3121 -26
  94. package/dist/instance/index.d.ts +8 -5
  95. package/dist/instance/index.d.ts.map +1 -0
  96. package/dist/instance/index.js +677 -5
  97. package/dist/instance/instance.enum.d.ts +1 -6
  98. package/dist/instance/instance.enum.d.ts.map +1 -1
  99. package/dist/instance/instance.enum.js +14 -18
  100. package/dist/instance/instance.event.d.ts +313 -319
  101. package/dist/instance/instance.event.d.ts.map +1 -1
  102. package/dist/instance/instance.event.js +151 -279
  103. package/dist/instance/instance.handler.d.ts +21 -22
  104. package/dist/instance/instance.handler.d.ts.map +1 -1
  105. package/dist/instance/instance.handler.js +352 -89
  106. package/dist/instance/instance.operations.d.ts +819 -825
  107. package/dist/instance/instance.operations.d.ts.map +1 -1
  108. package/dist/instance/instance.operations.js +10 -464
  109. package/dist/instance/instance.schema.d.ts +196 -201
  110. package/dist/instance/instance.schema.d.ts.map +1 -1
  111. package/dist/instance/instance.schema.js +97 -167
  112. package/dist/presentations/index.d.ts +23 -28
  113. package/dist/presentations/index.d.ts.map +1 -1
  114. package/dist/presentations/index.js +104 -334
  115. package/dist/seeders/index.d.ts +4 -8
  116. package/dist/seeders/index.d.ts.map +1 -1
  117. package/dist/seeders/index.js +4 -19
  118. package/dist/shared/index.d.ts +6 -3
  119. package/dist/shared/index.d.ts.map +1 -0
  120. package/dist/shared/index.js +4 -3
  121. package/dist/shared/mock-data.d.ts +16 -16
  122. package/dist/shared/mock-data.d.ts.map +1 -1
  123. package/dist/shared/mock-data.js +11 -11
  124. package/dist/shared/types.d.ts +69 -72
  125. package/dist/shared/types.d.ts.map +1 -1
  126. package/dist/shared/types.js +1 -0
  127. package/dist/state-machine/index.d.ts +92 -95
  128. package/dist/state-machine/index.d.ts.map +1 -1
  129. package/dist/state-machine/index.js +6 -157
  130. package/dist/tests/operations.test-spec.d.ts +4 -9
  131. package/dist/tests/operations.test-spec.d.ts.map +1 -1
  132. package/dist/tests/operations.test-spec.js +7 -123
  133. package/dist/ui/WorkflowDashboard.d.ts +1 -6
  134. package/dist/ui/WorkflowDashboard.d.ts.map +1 -1
  135. package/dist/ui/WorkflowDashboard.js +3 -222
  136. package/dist/ui/hooks/index.d.ts +2 -2
  137. package/dist/ui/hooks/index.d.ts.map +1 -0
  138. package/dist/ui/hooks/index.js +51 -5
  139. package/dist/ui/hooks/useWorkflowList.d.ts +15 -19
  140. package/dist/ui/hooks/useWorkflowList.d.ts.map +1 -1
  141. package/dist/ui/hooks/useWorkflowList.js +47 -51
  142. package/dist/ui/index.d.ts +7 -6
  143. package/dist/ui/index.d.ts.map +1 -0
  144. package/dist/ui/index.js +55 -6
  145. package/dist/ui/renderers/index.d.ts +2 -2
  146. package/dist/ui/renderers/index.d.ts.map +1 -0
  147. package/dist/ui/renderers/index.js +227 -2
  148. package/dist/ui/renderers/workflow.markdown.d.ts +13 -14
  149. package/dist/ui/renderers/workflow.markdown.d.ts.map +1 -1
  150. package/dist/ui/renderers/workflow.markdown.js +223 -229
  151. package/dist/workflow/index.d.ts +8 -5
  152. package/dist/workflow/index.d.ts.map +1 -0
  153. package/dist/workflow/index.js +22 -6
  154. package/dist/workflow/workflow.enum.d.ts +4 -9
  155. package/dist/workflow/workflow.enum.d.ts.map +1 -1
  156. package/dist/workflow/workflow.enum.js +32 -42
  157. package/dist/workflow/workflow.event.d.ts +112 -118
  158. package/dist/workflow/workflow.event.d.ts.map +1 -1
  159. package/dist/workflow/workflow.event.js +7 -150
  160. package/dist/workflow/workflow.handler.d.ts +23 -24
  161. package/dist/workflow/workflow.handler.d.ts.map +1 -1
  162. package/dist/workflow/workflow.handler.js +6 -66
  163. package/dist/workflow/workflow.operations.d.ts +847 -853
  164. package/dist/workflow/workflow.operations.d.ts.map +1 -1
  165. package/dist/workflow/workflow.operations.js +9 -345
  166. package/dist/workflow/workflow.schema.d.ts +229 -234
  167. package/dist/workflow/workflow.schema.d.ts.map +1 -1
  168. package/dist/workflow/workflow.schema.js +146 -243
  169. package/dist/workflow-system.capability.d.ts +3 -8
  170. package/dist/workflow-system.capability.d.ts.map +1 -1
  171. package/dist/workflow-system.capability.js +6 -34
  172. package/dist/workflow-system.feature.d.ts +1 -6
  173. package/dist/workflow-system.feature.d.ts.map +1 -1
  174. package/dist/workflow-system.feature.js +4 -346
  175. package/package.json +415 -93
  176. package/dist/approval/approval.enum.js.map +0 -1
  177. package/dist/approval/approval.event.js.map +0 -1
  178. package/dist/approval/approval.handler.js +0 -72
  179. package/dist/approval/approval.handler.js.map +0 -1
  180. package/dist/approval/approval.operations.js.map +0 -1
  181. package/dist/approval/approval.schema.js.map +0 -1
  182. package/dist/docs/workflow-system.docblock.js.map +0 -1
  183. package/dist/entities/approval.js.map +0 -1
  184. package/dist/entities/index.js.map +0 -1
  185. package/dist/entities/instance.js.map +0 -1
  186. package/dist/entities/step.js.map +0 -1
  187. package/dist/entities/workflow.js.map +0 -1
  188. package/dist/example.js.map +0 -1
  189. package/dist/handlers/workflow.handlers.js.map +0 -1
  190. package/dist/instance/instance.enum.js.map +0 -1
  191. package/dist/instance/instance.event.js.map +0 -1
  192. package/dist/instance/instance.handler.js.map +0 -1
  193. package/dist/instance/instance.operations.js.map +0 -1
  194. package/dist/instance/instance.schema.js.map +0 -1
  195. package/dist/presentations/index.js.map +0 -1
  196. package/dist/seeders/index.js.map +0 -1
  197. package/dist/shared/mock-data.js.map +0 -1
  198. package/dist/state-machine/index.js.map +0 -1
  199. package/dist/tests/operations.test-spec.js.map +0 -1
  200. package/dist/ui/WorkflowDashboard.js.map +0 -1
  201. package/dist/ui/hooks/useWorkflowList.js.map +0 -1
  202. package/dist/ui/renderers/workflow.markdown.js.map +0 -1
  203. package/dist/workflow/workflow.enum.js.map +0 -1
  204. package/dist/workflow/workflow.event.js.map +0 -1
  205. package/dist/workflow/workflow.handler.js.map +0 -1
  206. package/dist/workflow/workflow.operations.js.map +0 -1
  207. package/dist/workflow/workflow.schema.js.map +0 -1
  208. package/dist/workflow-system.capability.js.map +0 -1
  209. package/dist/workflow-system.feature.js.map +0 -1
@@ -1,1011 +1,1005 @@
1
- import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
2
- import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
3
-
4
- //#region src/workflow/workflow.operations.d.ts
5
1
  /**
6
2
  * Create a new workflow definition.
7
3
  */
8
- declare const CreateWorkflowContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
9
- name: {
10
- type: _contractspec_lib_schema0.FieldType<string, string>;
11
- isOptional: false;
12
- };
13
- key: {
14
- type: _contractspec_lib_schema0.FieldType<string, string>;
15
- isOptional: false;
16
- };
17
- description: {
18
- type: _contractspec_lib_schema0.FieldType<string, string>;
19
- isOptional: true;
20
- };
21
- triggerType: {
22
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
23
- isOptional: true;
24
- };
25
- triggerConfig: {
26
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
27
- isOptional: true;
28
- };
29
- featureFlagKey: {
30
- type: _contractspec_lib_schema0.FieldType<string, string>;
31
- isOptional: true;
32
- };
33
- settings: {
34
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
35
- isOptional: true;
36
- };
37
- }>, _contractspec_lib_schema0.SchemaModel<{
38
- id: {
39
- type: _contractspec_lib_schema0.FieldType<string, string>;
40
- isOptional: false;
41
- };
42
- name: {
43
- type: _contractspec_lib_schema0.FieldType<string, string>;
44
- isOptional: false;
45
- };
46
- key: {
47
- type: _contractspec_lib_schema0.FieldType<string, string>;
48
- isOptional: false;
49
- };
50
- description: {
51
- type: _contractspec_lib_schema0.FieldType<string, string>;
52
- isOptional: true;
53
- };
54
- version: {
55
- type: _contractspec_lib_schema0.FieldType<string, string>;
56
- isOptional: false;
57
- };
58
- status: {
59
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
60
- isOptional: false;
61
- };
62
- triggerType: {
63
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
64
- isOptional: false;
65
- };
66
- initialStepId: {
67
- type: _contractspec_lib_schema0.FieldType<string, string>;
68
- isOptional: true;
69
- };
70
- featureFlagKey: {
71
- type: _contractspec_lib_schema0.FieldType<string, string>;
72
- isOptional: true;
73
- };
74
- organizationId: {
75
- type: _contractspec_lib_schema0.FieldType<string, string>;
76
- isOptional: false;
77
- };
78
- createdAt: {
79
- type: _contractspec_lib_schema0.FieldType<Date, string>;
80
- isOptional: false;
81
- };
82
- updatedAt: {
83
- type: _contractspec_lib_schema0.FieldType<Date, string>;
84
- isOptional: false;
85
- };
86
- steps: {
87
- type: _contractspec_lib_schema0.SchemaModel<{
88
- id: {
89
- type: _contractspec_lib_schema0.FieldType<string, string>;
90
- isOptional: false;
91
- };
92
- key: {
93
- type: _contractspec_lib_schema0.FieldType<string, string>;
94
- isOptional: false;
95
- };
96
- name: {
97
- type: _contractspec_lib_schema0.FieldType<string, string>;
98
- isOptional: false;
99
- };
100
- description: {
101
- type: _contractspec_lib_schema0.FieldType<string, string>;
102
- isOptional: true;
103
- };
104
- type: {
105
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
106
- isOptional: false;
107
- };
108
- position: {
109
- type: _contractspec_lib_schema0.FieldType<number, number>;
110
- isOptional: false;
111
- };
112
- transitions: {
113
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
114
- isOptional: false;
115
- };
116
- approvalMode: {
117
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
118
- isOptional: true;
119
- };
120
- approverRoles: {
121
- type: _contractspec_lib_schema0.FieldType<string, string>;
122
- isArray: true;
4
+ export declare const CreateWorkflowContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
5
+ name: {
6
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
7
+ isOptional: false;
8
+ };
9
+ key: {
10
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
11
+ isOptional: false;
12
+ };
13
+ description: {
14
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
123
15
  isOptional: true;
124
- };
125
- }>;
126
- isArray: true;
127
- isOptional: true;
128
- };
129
- }>, {
130
- key: string;
131
- version: string;
132
- when: string;
133
- payload: _contractspec_lib_schema0.SchemaModel<{
16
+ };
17
+ triggerType: {
18
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
19
+ isOptional: true;
20
+ };
21
+ triggerConfig: {
22
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
23
+ isOptional: true;
24
+ };
25
+ featureFlagKey: {
26
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
27
+ isOptional: true;
28
+ };
29
+ settings: {
30
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
31
+ isOptional: true;
32
+ };
33
+ }>, import("@contractspec/lib.schema").SchemaModel<{
134
34
  id: {
135
- type: _contractspec_lib_schema0.FieldType<string, string>;
136
- isOptional: false;
35
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
36
+ isOptional: false;
137
37
  };
138
38
  name: {
139
- type: _contractspec_lib_schema0.FieldType<string, string>;
140
- isOptional: false;
39
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
40
+ isOptional: false;
141
41
  };
142
42
  key: {
143
- type: _contractspec_lib_schema0.FieldType<string, string>;
144
- isOptional: false;
43
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
44
+ isOptional: false;
145
45
  };
146
46
  description: {
147
- type: _contractspec_lib_schema0.FieldType<string, string>;
148
- isOptional: true;
47
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
48
+ isOptional: true;
149
49
  };
150
50
  version: {
151
- type: _contractspec_lib_schema0.FieldType<string, string>;
152
- isOptional: false;
51
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
52
+ isOptional: false;
153
53
  };
154
54
  status: {
155
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
156
- isOptional: false;
55
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
56
+ isOptional: false;
157
57
  };
158
58
  triggerType: {
159
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
160
- isOptional: false;
59
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
60
+ isOptional: false;
161
61
  };
162
62
  initialStepId: {
163
- type: _contractspec_lib_schema0.FieldType<string, string>;
164
- isOptional: true;
63
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
64
+ isOptional: true;
165
65
  };
166
66
  featureFlagKey: {
167
- type: _contractspec_lib_schema0.FieldType<string, string>;
168
- isOptional: true;
67
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
68
+ isOptional: true;
169
69
  };
170
70
  organizationId: {
171
- type: _contractspec_lib_schema0.FieldType<string, string>;
172
- isOptional: false;
71
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
72
+ isOptional: false;
173
73
  };
174
74
  createdAt: {
175
- type: _contractspec_lib_schema0.FieldType<Date, string>;
176
- isOptional: false;
75
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
76
+ isOptional: false;
177
77
  };
178
78
  updatedAt: {
179
- type: _contractspec_lib_schema0.FieldType<Date, string>;
180
- isOptional: false;
79
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
80
+ isOptional: false;
181
81
  };
182
82
  steps: {
183
- type: _contractspec_lib_schema0.SchemaModel<{
83
+ type: import("@contractspec/lib.schema").SchemaModel<{
84
+ id: {
85
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
86
+ isOptional: false;
87
+ };
88
+ key: {
89
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
90
+ isOptional: false;
91
+ };
92
+ name: {
93
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
94
+ isOptional: false;
95
+ };
96
+ description: {
97
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
98
+ isOptional: true;
99
+ };
100
+ type: {
101
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
102
+ isOptional: false;
103
+ };
104
+ position: {
105
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
106
+ isOptional: false;
107
+ };
108
+ transitions: {
109
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
110
+ isOptional: false;
111
+ };
112
+ approvalMode: {
113
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
114
+ isOptional: true;
115
+ };
116
+ approverRoles: {
117
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
118
+ isArray: true;
119
+ isOptional: true;
120
+ };
121
+ }>;
122
+ isArray: true;
123
+ isOptional: true;
124
+ };
125
+ }>, {
126
+ key: string;
127
+ version: string;
128
+ when: string;
129
+ payload: import("@contractspec/lib.schema").SchemaModel<{
184
130
  id: {
185
- type: _contractspec_lib_schema0.FieldType<string, string>;
186
- isOptional: false;
187
- };
188
- key: {
189
- type: _contractspec_lib_schema0.FieldType<string, string>;
190
- isOptional: false;
131
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
132
+ isOptional: false;
191
133
  };
192
134
  name: {
193
- type: _contractspec_lib_schema0.FieldType<string, string>;
194
- isOptional: false;
135
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
136
+ isOptional: false;
137
+ };
138
+ key: {
139
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
140
+ isOptional: false;
195
141
  };
196
142
  description: {
197
- type: _contractspec_lib_schema0.FieldType<string, string>;
198
- isOptional: true;
143
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
144
+ isOptional: true;
199
145
  };
200
- type: {
201
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
202
- isOptional: false;
146
+ version: {
147
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
148
+ isOptional: false;
203
149
  };
204
- position: {
205
- type: _contractspec_lib_schema0.FieldType<number, number>;
206
- isOptional: false;
150
+ status: {
151
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
152
+ isOptional: false;
207
153
  };
208
- transitions: {
209
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
210
- isOptional: false;
154
+ triggerType: {
155
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
156
+ isOptional: false;
211
157
  };
212
- approvalMode: {
213
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
214
- isOptional: true;
158
+ initialStepId: {
159
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
160
+ isOptional: true;
215
161
  };
216
- approverRoles: {
217
- type: _contractspec_lib_schema0.FieldType<string, string>;
218
- isArray: true;
219
- isOptional: true;
162
+ featureFlagKey: {
163
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
164
+ isOptional: true;
220
165
  };
221
- }>;
222
- isArray: true;
223
- isOptional: true;
224
- };
225
- }>;
166
+ organizationId: {
167
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
168
+ isOptional: false;
169
+ };
170
+ createdAt: {
171
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
172
+ isOptional: false;
173
+ };
174
+ updatedAt: {
175
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
176
+ isOptional: false;
177
+ };
178
+ steps: {
179
+ type: import("@contractspec/lib.schema").SchemaModel<{
180
+ id: {
181
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
182
+ isOptional: false;
183
+ };
184
+ key: {
185
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
186
+ isOptional: false;
187
+ };
188
+ name: {
189
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
190
+ isOptional: false;
191
+ };
192
+ description: {
193
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
194
+ isOptional: true;
195
+ };
196
+ type: {
197
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
198
+ isOptional: false;
199
+ };
200
+ position: {
201
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
202
+ isOptional: false;
203
+ };
204
+ transitions: {
205
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
206
+ isOptional: false;
207
+ };
208
+ approvalMode: {
209
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
210
+ isOptional: true;
211
+ };
212
+ approverRoles: {
213
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
214
+ isArray: true;
215
+ isOptional: true;
216
+ };
217
+ }>;
218
+ isArray: true;
219
+ isOptional: true;
220
+ };
221
+ }>;
226
222
  }[]>;
227
223
  /**
228
224
  * Update an existing workflow definition.
229
225
  */
230
- declare const UpdateWorkflowContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
231
- workflowId: {
232
- type: _contractspec_lib_schema0.FieldType<string, string>;
233
- isOptional: false;
234
- };
235
- name: {
236
- type: _contractspec_lib_schema0.FieldType<string, string>;
237
- isOptional: true;
238
- };
239
- description: {
240
- type: _contractspec_lib_schema0.FieldType<string, string>;
241
- isOptional: true;
242
- };
243
- triggerType: {
244
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
245
- isOptional: true;
246
- };
247
- triggerConfig: {
248
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
249
- isOptional: true;
250
- };
251
- featureFlagKey: {
252
- type: _contractspec_lib_schema0.FieldType<string, string>;
253
- isOptional: true;
254
- };
255
- settings: {
256
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
257
- isOptional: true;
258
- };
259
- }>, _contractspec_lib_schema0.SchemaModel<{
260
- id: {
261
- type: _contractspec_lib_schema0.FieldType<string, string>;
262
- isOptional: false;
263
- };
264
- name: {
265
- type: _contractspec_lib_schema0.FieldType<string, string>;
266
- isOptional: false;
267
- };
268
- key: {
269
- type: _contractspec_lib_schema0.FieldType<string, string>;
270
- isOptional: false;
271
- };
272
- description: {
273
- type: _contractspec_lib_schema0.FieldType<string, string>;
274
- isOptional: true;
275
- };
276
- version: {
277
- type: _contractspec_lib_schema0.FieldType<string, string>;
278
- isOptional: false;
279
- };
280
- status: {
281
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
282
- isOptional: false;
283
- };
284
- triggerType: {
285
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
286
- isOptional: false;
287
- };
288
- initialStepId: {
289
- type: _contractspec_lib_schema0.FieldType<string, string>;
290
- isOptional: true;
291
- };
292
- featureFlagKey: {
293
- type: _contractspec_lib_schema0.FieldType<string, string>;
294
- isOptional: true;
295
- };
296
- organizationId: {
297
- type: _contractspec_lib_schema0.FieldType<string, string>;
298
- isOptional: false;
299
- };
300
- createdAt: {
301
- type: _contractspec_lib_schema0.FieldType<Date, string>;
302
- isOptional: false;
303
- };
304
- updatedAt: {
305
- type: _contractspec_lib_schema0.FieldType<Date, string>;
306
- isOptional: false;
307
- };
308
- steps: {
309
- type: _contractspec_lib_schema0.SchemaModel<{
310
- id: {
311
- type: _contractspec_lib_schema0.FieldType<string, string>;
312
- isOptional: false;
313
- };
314
- key: {
315
- type: _contractspec_lib_schema0.FieldType<string, string>;
316
- isOptional: false;
317
- };
318
- name: {
319
- type: _contractspec_lib_schema0.FieldType<string, string>;
320
- isOptional: false;
321
- };
322
- description: {
323
- type: _contractspec_lib_schema0.FieldType<string, string>;
324
- isOptional: true;
325
- };
326
- type: {
327
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
328
- isOptional: false;
329
- };
330
- position: {
331
- type: _contractspec_lib_schema0.FieldType<number, number>;
332
- isOptional: false;
333
- };
334
- transitions: {
335
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
336
- isOptional: false;
337
- };
338
- approvalMode: {
339
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
340
- isOptional: true;
341
- };
342
- approverRoles: {
343
- type: _contractspec_lib_schema0.FieldType<string, string>;
344
- isArray: true;
226
+ export declare const UpdateWorkflowContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
227
+ workflowId: {
228
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
229
+ isOptional: false;
230
+ };
231
+ name: {
232
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
345
233
  isOptional: true;
346
- };
347
- }>;
348
- isArray: true;
349
- isOptional: true;
350
- };
351
- }>, {
352
- key: string;
353
- version: string;
354
- when: string;
355
- payload: _contractspec_lib_schema0.SchemaModel<{
234
+ };
235
+ description: {
236
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
237
+ isOptional: true;
238
+ };
239
+ triggerType: {
240
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
241
+ isOptional: true;
242
+ };
243
+ triggerConfig: {
244
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
245
+ isOptional: true;
246
+ };
247
+ featureFlagKey: {
248
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
249
+ isOptional: true;
250
+ };
251
+ settings: {
252
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
253
+ isOptional: true;
254
+ };
255
+ }>, import("@contractspec/lib.schema").SchemaModel<{
356
256
  id: {
357
- type: _contractspec_lib_schema0.FieldType<string, string>;
358
- isOptional: false;
257
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
258
+ isOptional: false;
359
259
  };
360
260
  name: {
361
- type: _contractspec_lib_schema0.FieldType<string, string>;
362
- isOptional: false;
261
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
262
+ isOptional: false;
363
263
  };
364
264
  key: {
365
- type: _contractspec_lib_schema0.FieldType<string, string>;
366
- isOptional: false;
265
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
266
+ isOptional: false;
367
267
  };
368
268
  description: {
369
- type: _contractspec_lib_schema0.FieldType<string, string>;
370
- isOptional: true;
269
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
270
+ isOptional: true;
371
271
  };
372
272
  version: {
373
- type: _contractspec_lib_schema0.FieldType<string, string>;
374
- isOptional: false;
273
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
274
+ isOptional: false;
375
275
  };
376
276
  status: {
377
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
378
- isOptional: false;
277
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
278
+ isOptional: false;
379
279
  };
380
280
  triggerType: {
381
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
382
- isOptional: false;
281
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
282
+ isOptional: false;
383
283
  };
384
284
  initialStepId: {
385
- type: _contractspec_lib_schema0.FieldType<string, string>;
386
- isOptional: true;
285
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
286
+ isOptional: true;
387
287
  };
388
288
  featureFlagKey: {
389
- type: _contractspec_lib_schema0.FieldType<string, string>;
390
- isOptional: true;
289
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
290
+ isOptional: true;
391
291
  };
392
292
  organizationId: {
393
- type: _contractspec_lib_schema0.FieldType<string, string>;
394
- isOptional: false;
293
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
294
+ isOptional: false;
395
295
  };
396
296
  createdAt: {
397
- type: _contractspec_lib_schema0.FieldType<Date, string>;
398
- isOptional: false;
297
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
298
+ isOptional: false;
399
299
  };
400
300
  updatedAt: {
401
- type: _contractspec_lib_schema0.FieldType<Date, string>;
402
- isOptional: false;
301
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
302
+ isOptional: false;
403
303
  };
404
304
  steps: {
405
- type: _contractspec_lib_schema0.SchemaModel<{
305
+ type: import("@contractspec/lib.schema").SchemaModel<{
306
+ id: {
307
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
308
+ isOptional: false;
309
+ };
310
+ key: {
311
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
312
+ isOptional: false;
313
+ };
314
+ name: {
315
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
316
+ isOptional: false;
317
+ };
318
+ description: {
319
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
320
+ isOptional: true;
321
+ };
322
+ type: {
323
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
324
+ isOptional: false;
325
+ };
326
+ position: {
327
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
328
+ isOptional: false;
329
+ };
330
+ transitions: {
331
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
332
+ isOptional: false;
333
+ };
334
+ approvalMode: {
335
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
336
+ isOptional: true;
337
+ };
338
+ approverRoles: {
339
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
340
+ isArray: true;
341
+ isOptional: true;
342
+ };
343
+ }>;
344
+ isArray: true;
345
+ isOptional: true;
346
+ };
347
+ }>, {
348
+ key: string;
349
+ version: string;
350
+ when: string;
351
+ payload: import("@contractspec/lib.schema").SchemaModel<{
406
352
  id: {
407
- type: _contractspec_lib_schema0.FieldType<string, string>;
408
- isOptional: false;
409
- };
410
- key: {
411
- type: _contractspec_lib_schema0.FieldType<string, string>;
412
- isOptional: false;
353
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
354
+ isOptional: false;
413
355
  };
414
356
  name: {
415
- type: _contractspec_lib_schema0.FieldType<string, string>;
416
- isOptional: false;
357
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
358
+ isOptional: false;
359
+ };
360
+ key: {
361
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
362
+ isOptional: false;
417
363
  };
418
364
  description: {
419
- type: _contractspec_lib_schema0.FieldType<string, string>;
420
- isOptional: true;
365
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
366
+ isOptional: true;
421
367
  };
422
- type: {
423
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
424
- isOptional: false;
368
+ version: {
369
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
370
+ isOptional: false;
425
371
  };
426
- position: {
427
- type: _contractspec_lib_schema0.FieldType<number, number>;
428
- isOptional: false;
372
+ status: {
373
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
374
+ isOptional: false;
429
375
  };
430
- transitions: {
431
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
432
- isOptional: false;
376
+ triggerType: {
377
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
378
+ isOptional: false;
433
379
  };
434
- approvalMode: {
435
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
436
- isOptional: true;
380
+ initialStepId: {
381
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
382
+ isOptional: true;
437
383
  };
438
- approverRoles: {
439
- type: _contractspec_lib_schema0.FieldType<string, string>;
440
- isArray: true;
441
- isOptional: true;
384
+ featureFlagKey: {
385
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
386
+ isOptional: true;
442
387
  };
443
- }>;
444
- isArray: true;
445
- isOptional: true;
446
- };
447
- }>;
388
+ organizationId: {
389
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
390
+ isOptional: false;
391
+ };
392
+ createdAt: {
393
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
394
+ isOptional: false;
395
+ };
396
+ updatedAt: {
397
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
398
+ isOptional: false;
399
+ };
400
+ steps: {
401
+ type: import("@contractspec/lib.schema").SchemaModel<{
402
+ id: {
403
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
404
+ isOptional: false;
405
+ };
406
+ key: {
407
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
408
+ isOptional: false;
409
+ };
410
+ name: {
411
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
412
+ isOptional: false;
413
+ };
414
+ description: {
415
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
416
+ isOptional: true;
417
+ };
418
+ type: {
419
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
420
+ isOptional: false;
421
+ };
422
+ position: {
423
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
424
+ isOptional: false;
425
+ };
426
+ transitions: {
427
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
428
+ isOptional: false;
429
+ };
430
+ approvalMode: {
431
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
432
+ isOptional: true;
433
+ };
434
+ approverRoles: {
435
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
436
+ isArray: true;
437
+ isOptional: true;
438
+ };
439
+ }>;
440
+ isArray: true;
441
+ isOptional: true;
442
+ };
443
+ }>;
448
444
  }[]>;
449
445
  /**
450
446
  * Add a step to a workflow definition.
451
447
  */
452
- declare const AddStepContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
453
- workflowId: {
454
- type: _contractspec_lib_schema0.FieldType<string, string>;
455
- isOptional: false;
456
- };
457
- key: {
458
- type: _contractspec_lib_schema0.FieldType<string, string>;
459
- isOptional: false;
460
- };
461
- name: {
462
- type: _contractspec_lib_schema0.FieldType<string, string>;
463
- isOptional: false;
464
- };
465
- description: {
466
- type: _contractspec_lib_schema0.FieldType<string, string>;
467
- isOptional: true;
468
- };
469
- type: {
470
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
471
- isOptional: false;
472
- };
473
- position: {
474
- type: _contractspec_lib_schema0.FieldType<number, number>;
475
- isOptional: true;
476
- };
477
- transitions: {
478
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
479
- isOptional: false;
480
- };
481
- approvalMode: {
482
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
483
- isOptional: true;
484
- };
485
- approverRoles: {
486
- type: _contractspec_lib_schema0.FieldType<string, string>;
487
- isArray: true;
488
- isOptional: true;
489
- };
490
- approverUserIds: {
491
- type: _contractspec_lib_schema0.FieldType<string, string>;
492
- isArray: true;
493
- isOptional: true;
494
- };
495
- timeoutSeconds: {
496
- type: _contractspec_lib_schema0.FieldType<number, number>;
497
- isOptional: true;
498
- };
499
- slaSeconds: {
500
- type: _contractspec_lib_schema0.FieldType<number, number>;
501
- isOptional: true;
502
- };
503
- }>, _contractspec_lib_schema0.SchemaModel<{
504
- id: {
505
- type: _contractspec_lib_schema0.FieldType<string, string>;
506
- isOptional: false;
507
- };
508
- key: {
509
- type: _contractspec_lib_schema0.FieldType<string, string>;
510
- isOptional: false;
511
- };
512
- name: {
513
- type: _contractspec_lib_schema0.FieldType<string, string>;
514
- isOptional: false;
515
- };
516
- description: {
517
- type: _contractspec_lib_schema0.FieldType<string, string>;
518
- isOptional: true;
519
- };
520
- type: {
521
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
522
- isOptional: false;
523
- };
524
- position: {
525
- type: _contractspec_lib_schema0.FieldType<number, number>;
526
- isOptional: false;
527
- };
528
- transitions: {
529
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
530
- isOptional: false;
531
- };
532
- approvalMode: {
533
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
534
- isOptional: true;
535
- };
536
- approverRoles: {
537
- type: _contractspec_lib_schema0.FieldType<string, string>;
538
- isArray: true;
539
- isOptional: true;
540
- };
541
- }>, {
542
- key: string;
543
- version: string;
544
- when: string;
545
- payload: _contractspec_lib_schema0.SchemaModel<{
448
+ export declare const AddStepContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
449
+ workflowId: {
450
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
451
+ isOptional: false;
452
+ };
453
+ key: {
454
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
455
+ isOptional: false;
456
+ };
457
+ name: {
458
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
459
+ isOptional: false;
460
+ };
461
+ description: {
462
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
463
+ isOptional: true;
464
+ };
465
+ type: {
466
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
467
+ isOptional: false;
468
+ };
469
+ position: {
470
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
471
+ isOptional: true;
472
+ };
473
+ transitions: {
474
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
475
+ isOptional: false;
476
+ };
477
+ approvalMode: {
478
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
479
+ isOptional: true;
480
+ };
481
+ approverRoles: {
482
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
483
+ isArray: true;
484
+ isOptional: true;
485
+ };
486
+ approverUserIds: {
487
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
488
+ isArray: true;
489
+ isOptional: true;
490
+ };
491
+ timeoutSeconds: {
492
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
493
+ isOptional: true;
494
+ };
495
+ slaSeconds: {
496
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
497
+ isOptional: true;
498
+ };
499
+ }>, import("@contractspec/lib.schema").SchemaModel<{
546
500
  id: {
547
- type: _contractspec_lib_schema0.FieldType<string, string>;
548
- isOptional: false;
501
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
502
+ isOptional: false;
549
503
  };
550
504
  key: {
551
- type: _contractspec_lib_schema0.FieldType<string, string>;
552
- isOptional: false;
505
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
506
+ isOptional: false;
553
507
  };
554
508
  name: {
555
- type: _contractspec_lib_schema0.FieldType<string, string>;
556
- isOptional: false;
509
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
510
+ isOptional: false;
557
511
  };
558
512
  description: {
559
- type: _contractspec_lib_schema0.FieldType<string, string>;
560
- isOptional: true;
513
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
514
+ isOptional: true;
561
515
  };
562
516
  type: {
563
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
564
- isOptional: false;
517
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
518
+ isOptional: false;
565
519
  };
566
520
  position: {
567
- type: _contractspec_lib_schema0.FieldType<number, number>;
568
- isOptional: false;
521
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
522
+ isOptional: false;
569
523
  };
570
524
  transitions: {
571
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
572
- isOptional: false;
525
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
526
+ isOptional: false;
573
527
  };
574
528
  approvalMode: {
575
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
576
- isOptional: true;
529
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
530
+ isOptional: true;
577
531
  };
578
532
  approverRoles: {
579
- type: _contractspec_lib_schema0.FieldType<string, string>;
580
- isArray: true;
581
- isOptional: true;
533
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
534
+ isArray: true;
535
+ isOptional: true;
582
536
  };
583
- }>;
537
+ }>, {
538
+ key: string;
539
+ version: string;
540
+ when: string;
541
+ payload: import("@contractspec/lib.schema").SchemaModel<{
542
+ id: {
543
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
544
+ isOptional: false;
545
+ };
546
+ key: {
547
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
548
+ isOptional: false;
549
+ };
550
+ name: {
551
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
552
+ isOptional: false;
553
+ };
554
+ description: {
555
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
556
+ isOptional: true;
557
+ };
558
+ type: {
559
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
560
+ isOptional: false;
561
+ };
562
+ position: {
563
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
564
+ isOptional: false;
565
+ };
566
+ transitions: {
567
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
568
+ isOptional: false;
569
+ };
570
+ approvalMode: {
571
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
572
+ isOptional: true;
573
+ };
574
+ approverRoles: {
575
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
576
+ isArray: true;
577
+ isOptional: true;
578
+ };
579
+ }>;
584
580
  }[]>;
585
581
  /**
586
582
  * Publish a workflow definition (make it active).
587
583
  */
588
- declare const PublishWorkflowContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
589
- workflowId: {
590
- type: _contractspec_lib_schema0.FieldType<string, string>;
591
- isOptional: false;
592
- };
593
- }>, _contractspec_lib_schema0.SchemaModel<{
594
- id: {
595
- type: _contractspec_lib_schema0.FieldType<string, string>;
596
- isOptional: false;
597
- };
598
- name: {
599
- type: _contractspec_lib_schema0.FieldType<string, string>;
600
- isOptional: false;
601
- };
602
- key: {
603
- type: _contractspec_lib_schema0.FieldType<string, string>;
604
- isOptional: false;
605
- };
606
- description: {
607
- type: _contractspec_lib_schema0.FieldType<string, string>;
608
- isOptional: true;
609
- };
610
- version: {
611
- type: _contractspec_lib_schema0.FieldType<string, string>;
612
- isOptional: false;
613
- };
614
- status: {
615
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
616
- isOptional: false;
617
- };
618
- triggerType: {
619
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
620
- isOptional: false;
621
- };
622
- initialStepId: {
623
- type: _contractspec_lib_schema0.FieldType<string, string>;
624
- isOptional: true;
625
- };
626
- featureFlagKey: {
627
- type: _contractspec_lib_schema0.FieldType<string, string>;
628
- isOptional: true;
629
- };
630
- organizationId: {
631
- type: _contractspec_lib_schema0.FieldType<string, string>;
632
- isOptional: false;
633
- };
634
- createdAt: {
635
- type: _contractspec_lib_schema0.FieldType<Date, string>;
636
- isOptional: false;
637
- };
638
- updatedAt: {
639
- type: _contractspec_lib_schema0.FieldType<Date, string>;
640
- isOptional: false;
641
- };
642
- steps: {
643
- type: _contractspec_lib_schema0.SchemaModel<{
644
- id: {
645
- type: _contractspec_lib_schema0.FieldType<string, string>;
646
- isOptional: false;
647
- };
648
- key: {
649
- type: _contractspec_lib_schema0.FieldType<string, string>;
650
- isOptional: false;
651
- };
652
- name: {
653
- type: _contractspec_lib_schema0.FieldType<string, string>;
654
- isOptional: false;
655
- };
656
- description: {
657
- type: _contractspec_lib_schema0.FieldType<string, string>;
658
- isOptional: true;
659
- };
660
- type: {
661
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
662
- isOptional: false;
663
- };
664
- position: {
665
- type: _contractspec_lib_schema0.FieldType<number, number>;
666
- isOptional: false;
667
- };
668
- transitions: {
669
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
670
- isOptional: false;
671
- };
672
- approvalMode: {
673
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
674
- isOptional: true;
675
- };
676
- approverRoles: {
677
- type: _contractspec_lib_schema0.FieldType<string, string>;
678
- isArray: true;
679
- isOptional: true;
680
- };
681
- }>;
682
- isArray: true;
683
- isOptional: true;
684
- };
685
- }>, {
686
- key: string;
687
- version: string;
688
- when: string;
689
- payload: _contractspec_lib_schema0.SchemaModel<{
584
+ export declare const PublishWorkflowContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
585
+ workflowId: {
586
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
587
+ isOptional: false;
588
+ };
589
+ }>, import("@contractspec/lib.schema").SchemaModel<{
690
590
  id: {
691
- type: _contractspec_lib_schema0.FieldType<string, string>;
692
- isOptional: false;
591
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
592
+ isOptional: false;
693
593
  };
694
594
  name: {
695
- type: _contractspec_lib_schema0.FieldType<string, string>;
696
- isOptional: false;
595
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
596
+ isOptional: false;
697
597
  };
698
598
  key: {
699
- type: _contractspec_lib_schema0.FieldType<string, string>;
700
- isOptional: false;
599
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
600
+ isOptional: false;
701
601
  };
702
602
  description: {
703
- type: _contractspec_lib_schema0.FieldType<string, string>;
704
- isOptional: true;
603
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
604
+ isOptional: true;
705
605
  };
706
606
  version: {
707
- type: _contractspec_lib_schema0.FieldType<string, string>;
708
- isOptional: false;
607
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
608
+ isOptional: false;
709
609
  };
710
610
  status: {
711
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
712
- isOptional: false;
611
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
612
+ isOptional: false;
713
613
  };
714
614
  triggerType: {
715
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
716
- isOptional: false;
615
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
616
+ isOptional: false;
717
617
  };
718
618
  initialStepId: {
719
- type: _contractspec_lib_schema0.FieldType<string, string>;
720
- isOptional: true;
619
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
620
+ isOptional: true;
721
621
  };
722
622
  featureFlagKey: {
723
- type: _contractspec_lib_schema0.FieldType<string, string>;
724
- isOptional: true;
623
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
624
+ isOptional: true;
725
625
  };
726
626
  organizationId: {
727
- type: _contractspec_lib_schema0.FieldType<string, string>;
728
- isOptional: false;
627
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
628
+ isOptional: false;
729
629
  };
730
630
  createdAt: {
731
- type: _contractspec_lib_schema0.FieldType<Date, string>;
732
- isOptional: false;
631
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
632
+ isOptional: false;
733
633
  };
734
634
  updatedAt: {
735
- type: _contractspec_lib_schema0.FieldType<Date, string>;
736
- isOptional: false;
635
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
636
+ isOptional: false;
737
637
  };
738
638
  steps: {
739
- type: _contractspec_lib_schema0.SchemaModel<{
639
+ type: import("@contractspec/lib.schema").SchemaModel<{
640
+ id: {
641
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
642
+ isOptional: false;
643
+ };
644
+ key: {
645
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
646
+ isOptional: false;
647
+ };
648
+ name: {
649
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
650
+ isOptional: false;
651
+ };
652
+ description: {
653
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
654
+ isOptional: true;
655
+ };
656
+ type: {
657
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
658
+ isOptional: false;
659
+ };
660
+ position: {
661
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
662
+ isOptional: false;
663
+ };
664
+ transitions: {
665
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
666
+ isOptional: false;
667
+ };
668
+ approvalMode: {
669
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
670
+ isOptional: true;
671
+ };
672
+ approverRoles: {
673
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
674
+ isArray: true;
675
+ isOptional: true;
676
+ };
677
+ }>;
678
+ isArray: true;
679
+ isOptional: true;
680
+ };
681
+ }>, {
682
+ key: string;
683
+ version: string;
684
+ when: string;
685
+ payload: import("@contractspec/lib.schema").SchemaModel<{
740
686
  id: {
741
- type: _contractspec_lib_schema0.FieldType<string, string>;
742
- isOptional: false;
743
- };
744
- key: {
745
- type: _contractspec_lib_schema0.FieldType<string, string>;
746
- isOptional: false;
687
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
688
+ isOptional: false;
747
689
  };
748
690
  name: {
749
- type: _contractspec_lib_schema0.FieldType<string, string>;
750
- isOptional: false;
691
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
692
+ isOptional: false;
751
693
  };
752
- description: {
753
- type: _contractspec_lib_schema0.FieldType<string, string>;
754
- isOptional: true;
694
+ key: {
695
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
696
+ isOptional: false;
755
697
  };
756
- type: {
757
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
758
- isOptional: false;
698
+ description: {
699
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
700
+ isOptional: true;
759
701
  };
760
- position: {
761
- type: _contractspec_lib_schema0.FieldType<number, number>;
762
- isOptional: false;
702
+ version: {
703
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
704
+ isOptional: false;
763
705
  };
764
- transitions: {
765
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
766
- isOptional: false;
706
+ status: {
707
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
708
+ isOptional: false;
767
709
  };
768
- approvalMode: {
769
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
770
- isOptional: true;
710
+ triggerType: {
711
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
712
+ isOptional: false;
771
713
  };
772
- approverRoles: {
773
- type: _contractspec_lib_schema0.FieldType<string, string>;
774
- isArray: true;
775
- isOptional: true;
714
+ initialStepId: {
715
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
716
+ isOptional: true;
776
717
  };
777
- }>;
778
- isArray: true;
779
- isOptional: true;
780
- };
781
- }>;
782
- }[]>;
783
- /**
784
- * List workflow definitions.
785
- */
786
- declare const ListWorkflowsContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
787
- status: {
788
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
789
- isOptional: true;
790
- };
791
- search: {
792
- type: _contractspec_lib_schema0.FieldType<string, string>;
793
- isOptional: true;
794
- };
795
- limit: {
796
- type: _contractspec_lib_schema0.FieldType<number, number>;
797
- isOptional: true;
798
- defaultValue: number;
799
- };
800
- offset: {
801
- type: _contractspec_lib_schema0.FieldType<number, number>;
802
- isOptional: true;
803
- defaultValue: number;
804
- };
805
- }>, _contractspec_lib_schema0.SchemaModel<{
806
- workflows: {
807
- type: _contractspec_lib_schema0.SchemaModel<{
808
- id: {
809
- type: _contractspec_lib_schema0.FieldType<string, string>;
810
- isOptional: false;
811
- };
812
- name: {
813
- type: _contractspec_lib_schema0.FieldType<string, string>;
814
- isOptional: false;
815
- };
816
- key: {
817
- type: _contractspec_lib_schema0.FieldType<string, string>;
818
- isOptional: false;
819
- };
820
- description: {
821
- type: _contractspec_lib_schema0.FieldType<string, string>;
822
- isOptional: true;
823
- };
824
- version: {
825
- type: _contractspec_lib_schema0.FieldType<string, string>;
826
- isOptional: false;
827
- };
828
- status: {
829
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
830
- isOptional: false;
831
- };
832
- triggerType: {
833
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
834
- isOptional: false;
835
- };
836
- initialStepId: {
837
- type: _contractspec_lib_schema0.FieldType<string, string>;
838
- isOptional: true;
839
- };
840
- featureFlagKey: {
841
- type: _contractspec_lib_schema0.FieldType<string, string>;
842
- isOptional: true;
843
- };
844
- organizationId: {
845
- type: _contractspec_lib_schema0.FieldType<string, string>;
846
- isOptional: false;
847
- };
848
- createdAt: {
849
- type: _contractspec_lib_schema0.FieldType<Date, string>;
850
- isOptional: false;
851
- };
852
- updatedAt: {
853
- type: _contractspec_lib_schema0.FieldType<Date, string>;
854
- isOptional: false;
855
- };
856
- steps: {
857
- type: _contractspec_lib_schema0.SchemaModel<{
858
- id: {
859
- type: _contractspec_lib_schema0.FieldType<string, string>;
860
- isOptional: false;
861
- };
862
- key: {
863
- type: _contractspec_lib_schema0.FieldType<string, string>;
864
- isOptional: false;
865
- };
866
- name: {
867
- type: _contractspec_lib_schema0.FieldType<string, string>;
868
- isOptional: false;
869
- };
870
- description: {
871
- type: _contractspec_lib_schema0.FieldType<string, string>;
718
+ featureFlagKey: {
719
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
872
720
  isOptional: true;
873
- };
874
- type: {
875
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
721
+ };
722
+ organizationId: {
723
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
876
724
  isOptional: false;
877
- };
878
- position: {
879
- type: _contractspec_lib_schema0.FieldType<number, number>;
725
+ };
726
+ createdAt: {
727
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
880
728
  isOptional: false;
881
- };
882
- transitions: {
883
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
729
+ };
730
+ updatedAt: {
731
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
884
732
  isOptional: false;
885
- };
886
- approvalMode: {
887
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
888
- isOptional: true;
889
- };
890
- approverRoles: {
891
- type: _contractspec_lib_schema0.FieldType<string, string>;
733
+ };
734
+ steps: {
735
+ type: import("@contractspec/lib.schema").SchemaModel<{
736
+ id: {
737
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
738
+ isOptional: false;
739
+ };
740
+ key: {
741
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
742
+ isOptional: false;
743
+ };
744
+ name: {
745
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
746
+ isOptional: false;
747
+ };
748
+ description: {
749
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
750
+ isOptional: true;
751
+ };
752
+ type: {
753
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
754
+ isOptional: false;
755
+ };
756
+ position: {
757
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
758
+ isOptional: false;
759
+ };
760
+ transitions: {
761
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
762
+ isOptional: false;
763
+ };
764
+ approvalMode: {
765
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
766
+ isOptional: true;
767
+ };
768
+ approverRoles: {
769
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
770
+ isArray: true;
771
+ isOptional: true;
772
+ };
773
+ }>;
892
774
  isArray: true;
893
775
  isOptional: true;
894
- };
776
+ };
777
+ }>;
778
+ }[]>;
779
+ /**
780
+ * List workflow definitions.
781
+ */
782
+ export declare const ListWorkflowsContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
783
+ status: {
784
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
785
+ isOptional: true;
786
+ };
787
+ search: {
788
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
789
+ isOptional: true;
790
+ };
791
+ limit: {
792
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
793
+ isOptional: true;
794
+ defaultValue: number;
795
+ };
796
+ offset: {
797
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
798
+ isOptional: true;
799
+ defaultValue: number;
800
+ };
801
+ }>, import("@contractspec/lib.schema").SchemaModel<{
802
+ workflows: {
803
+ type: import("@contractspec/lib.schema").SchemaModel<{
804
+ id: {
805
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
806
+ isOptional: false;
807
+ };
808
+ name: {
809
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
810
+ isOptional: false;
811
+ };
812
+ key: {
813
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
814
+ isOptional: false;
815
+ };
816
+ description: {
817
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
818
+ isOptional: true;
819
+ };
820
+ version: {
821
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
822
+ isOptional: false;
823
+ };
824
+ status: {
825
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
826
+ isOptional: false;
827
+ };
828
+ triggerType: {
829
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
830
+ isOptional: false;
831
+ };
832
+ initialStepId: {
833
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
834
+ isOptional: true;
835
+ };
836
+ featureFlagKey: {
837
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
838
+ isOptional: true;
839
+ };
840
+ organizationId: {
841
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
842
+ isOptional: false;
843
+ };
844
+ createdAt: {
845
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
846
+ isOptional: false;
847
+ };
848
+ updatedAt: {
849
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
850
+ isOptional: false;
851
+ };
852
+ steps: {
853
+ type: import("@contractspec/lib.schema").SchemaModel<{
854
+ id: {
855
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
856
+ isOptional: false;
857
+ };
858
+ key: {
859
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
860
+ isOptional: false;
861
+ };
862
+ name: {
863
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
864
+ isOptional: false;
865
+ };
866
+ description: {
867
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
868
+ isOptional: true;
869
+ };
870
+ type: {
871
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
872
+ isOptional: false;
873
+ };
874
+ position: {
875
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
876
+ isOptional: false;
877
+ };
878
+ transitions: {
879
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
880
+ isOptional: false;
881
+ };
882
+ approvalMode: {
883
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
884
+ isOptional: true;
885
+ };
886
+ approverRoles: {
887
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
888
+ isArray: true;
889
+ isOptional: true;
890
+ };
891
+ }>;
892
+ isArray: true;
893
+ isOptional: true;
894
+ };
895
895
  }>;
896
896
  isArray: true;
897
- isOptional: true;
898
- };
899
- }>;
900
- isArray: true;
901
- isOptional: false;
902
- };
903
- total: {
904
- type: _contractspec_lib_schema0.FieldType<number, number>;
905
- isOptional: false;
906
- };
897
+ isOptional: false;
898
+ };
899
+ total: {
900
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
901
+ isOptional: false;
902
+ };
907
903
  }>, undefined>;
908
904
  /**
909
905
  * Get a single workflow definition with steps.
910
906
  */
911
- declare const GetWorkflowContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
912
- workflowId: {
913
- type: _contractspec_lib_schema0.FieldType<string, string>;
914
- isOptional: false;
915
- };
916
- }>, _contractspec_lib_schema0.SchemaModel<{
917
- id: {
918
- type: _contractspec_lib_schema0.FieldType<string, string>;
919
- isOptional: false;
920
- };
921
- name: {
922
- type: _contractspec_lib_schema0.FieldType<string, string>;
923
- isOptional: false;
924
- };
925
- key: {
926
- type: _contractspec_lib_schema0.FieldType<string, string>;
927
- isOptional: false;
928
- };
929
- description: {
930
- type: _contractspec_lib_schema0.FieldType<string, string>;
931
- isOptional: true;
932
- };
933
- version: {
934
- type: _contractspec_lib_schema0.FieldType<string, string>;
935
- isOptional: false;
936
- };
937
- status: {
938
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
939
- isOptional: false;
940
- };
941
- triggerType: {
942
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
943
- isOptional: false;
944
- };
945
- initialStepId: {
946
- type: _contractspec_lib_schema0.FieldType<string, string>;
947
- isOptional: true;
948
- };
949
- featureFlagKey: {
950
- type: _contractspec_lib_schema0.FieldType<string, string>;
951
- isOptional: true;
952
- };
953
- organizationId: {
954
- type: _contractspec_lib_schema0.FieldType<string, string>;
955
- isOptional: false;
956
- };
957
- createdAt: {
958
- type: _contractspec_lib_schema0.FieldType<Date, string>;
959
- isOptional: false;
960
- };
961
- updatedAt: {
962
- type: _contractspec_lib_schema0.FieldType<Date, string>;
963
- isOptional: false;
964
- };
965
- steps: {
966
- type: _contractspec_lib_schema0.SchemaModel<{
967
- id: {
968
- type: _contractspec_lib_schema0.FieldType<string, string>;
969
- isOptional: false;
970
- };
971
- key: {
972
- type: _contractspec_lib_schema0.FieldType<string, string>;
973
- isOptional: false;
974
- };
975
- name: {
976
- type: _contractspec_lib_schema0.FieldType<string, string>;
977
- isOptional: false;
978
- };
979
- description: {
980
- type: _contractspec_lib_schema0.FieldType<string, string>;
981
- isOptional: true;
982
- };
983
- type: {
984
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
985
- isOptional: false;
986
- };
987
- position: {
988
- type: _contractspec_lib_schema0.FieldType<number, number>;
989
- isOptional: false;
990
- };
991
- transitions: {
992
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
993
- isOptional: false;
994
- };
995
- approvalMode: {
996
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
997
- isOptional: true;
998
- };
999
- approverRoles: {
1000
- type: _contractspec_lib_schema0.FieldType<string, string>;
907
+ export declare const GetWorkflowContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
908
+ workflowId: {
909
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
910
+ isOptional: false;
911
+ };
912
+ }>, import("@contractspec/lib.schema").SchemaModel<{
913
+ id: {
914
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
915
+ isOptional: false;
916
+ };
917
+ name: {
918
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
919
+ isOptional: false;
920
+ };
921
+ key: {
922
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
923
+ isOptional: false;
924
+ };
925
+ description: {
926
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
927
+ isOptional: true;
928
+ };
929
+ version: {
930
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
931
+ isOptional: false;
932
+ };
933
+ status: {
934
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
935
+ isOptional: false;
936
+ };
937
+ triggerType: {
938
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
939
+ isOptional: false;
940
+ };
941
+ initialStepId: {
942
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
943
+ isOptional: true;
944
+ };
945
+ featureFlagKey: {
946
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
947
+ isOptional: true;
948
+ };
949
+ organizationId: {
950
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
951
+ isOptional: false;
952
+ };
953
+ createdAt: {
954
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
955
+ isOptional: false;
956
+ };
957
+ updatedAt: {
958
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
959
+ isOptional: false;
960
+ };
961
+ steps: {
962
+ type: import("@contractspec/lib.schema").SchemaModel<{
963
+ id: {
964
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
965
+ isOptional: false;
966
+ };
967
+ key: {
968
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
969
+ isOptional: false;
970
+ };
971
+ name: {
972
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
973
+ isOptional: false;
974
+ };
975
+ description: {
976
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
977
+ isOptional: true;
978
+ };
979
+ type: {
980
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
981
+ isOptional: false;
982
+ };
983
+ position: {
984
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
985
+ isOptional: false;
986
+ };
987
+ transitions: {
988
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
989
+ isOptional: false;
990
+ };
991
+ approvalMode: {
992
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
993
+ isOptional: true;
994
+ };
995
+ approverRoles: {
996
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
997
+ isArray: true;
998
+ isOptional: true;
999
+ };
1000
+ }>;
1001
1001
  isArray: true;
1002
1002
  isOptional: true;
1003
- };
1004
- }>;
1005
- isArray: true;
1006
- isOptional: true;
1007
- };
1003
+ };
1008
1004
  }>, undefined>;
1009
- //#endregion
1010
- export { AddStepContract, CreateWorkflowContract, GetWorkflowContract, ListWorkflowsContract, PublishWorkflowContract, UpdateWorkflowContract };
1011
1005
  //# sourceMappingURL=workflow.operations.d.ts.map