@lssm/example.workflow-system 0.0.0-canary-20251217083314 → 1.41.1

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