@lssm/example.workflow-system 0.0.0-canary-20251217060834 → 0.0.0-canary-20251217063201

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 (157) hide show
  1. package/dist/approval/approval.contracts.d.ts +134 -134
  2. package/dist/approval/approval.contracts.js +1 -1
  3. package/dist/approval/approval.enum.d.ts +3 -3
  4. package/dist/approval/approval.enum.js +1 -1
  5. package/dist/approval/approval.event.d.ts +32 -32
  6. package/dist/approval/approval.event.js +1 -1
  7. package/dist/approval/approval.schema.d.ts +24 -24
  8. package/dist/approval/approval.schema.js +1 -1
  9. package/dist/docs/workflow-system.docblock.js +1 -1
  10. package/dist/entities/approval.d.ts +36 -36
  11. package/dist/entities/approval.js +1 -1
  12. package/dist/entities/index.d.ts +127 -127
  13. package/dist/entities/instance.d.ts +47 -47
  14. package/dist/entities/instance.js +1 -1
  15. package/dist/entities/step.d.ts +32 -32
  16. package/dist/entities/step.js +1 -1
  17. package/dist/entities/workflow.d.ts +23 -23
  18. package/dist/entities/workflow.js +1 -1
  19. package/dist/index.d.ts +0 -3
  20. package/dist/instance/instance.contracts.d.ts +256 -256
  21. package/dist/instance/instance.contracts.js +1 -1
  22. package/dist/instance/instance.enum.d.ts +2 -2
  23. package/dist/instance/instance.enum.js +1 -1
  24. package/dist/instance/instance.event.d.ts +87 -87
  25. package/dist/instance/instance.event.js +1 -1
  26. package/dist/instance/instance.schema.d.ts +54 -54
  27. package/dist/instance/instance.schema.js +1 -1
  28. package/dist/libs/contracts/dist/capabilities/openbanking.js +1 -0
  29. package/dist/libs/contracts/dist/client/index.js +1 -0
  30. package/dist/libs/contracts/dist/client/react/feature-render.js +1 -0
  31. package/dist/libs/contracts/dist/client/react/form-render.js +1 -0
  32. package/dist/libs/contracts/dist/client/react/index.js +1 -0
  33. package/dist/libs/contracts/dist/contract-registry/index.js +1 -0
  34. package/dist/libs/contracts/dist/contract-registry/schemas.js +1 -0
  35. package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +76 -0
  36. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +350 -0
  37. package/dist/libs/contracts/dist/docs/index.js +1 -0
  38. package/dist/libs/contracts/dist/docs/presentations.js +1 -0
  39. package/dist/libs/contracts/dist/docs/registry.js +1 -0
  40. package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +383 -0
  41. package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +68 -0
  42. package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +140 -0
  43. package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +86 -0
  44. package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +1 -0
  45. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +58 -0
  46. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +38 -0
  47. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +213 -0
  48. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +289 -0
  49. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +1 -0
  50. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +1 -0
  51. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +262 -0
  52. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +1 -0
  53. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +57 -0
  54. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +63 -0
  55. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +36 -0
  56. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +1 -0
  57. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +20 -0
  58. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +65 -0
  59. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +1 -0
  60. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +41 -0
  61. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +122 -0
  62. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +1 -0
  63. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +68 -0
  64. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +1 -0
  65. package/dist/libs/contracts/dist/events.js +1 -0
  66. package/dist/libs/contracts/dist/experiments/evaluator.js +1 -0
  67. package/dist/libs/contracts/dist/index.js +1 -0
  68. package/dist/libs/contracts/dist/install.js +1 -0
  69. package/dist/libs/contracts/dist/integrations/contracts.js +1 -0
  70. package/dist/libs/contracts/dist/integrations/index.js +1 -0
  71. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +1 -0
  72. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +1 -0
  73. package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +1 -0
  74. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +1 -0
  75. package/dist/libs/contracts/dist/integrations/openbanking/models.js +1 -0
  76. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +1 -0
  77. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +1 -0
  78. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +1 -0
  79. package/dist/libs/contracts/dist/integrations/providers/gmail.js +1 -0
  80. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +1 -0
  81. package/dist/libs/contracts/dist/integrations/providers/index.js +1 -0
  82. package/dist/libs/contracts/dist/integrations/providers/mistral.js +1 -0
  83. package/dist/libs/contracts/dist/integrations/providers/postmark.js +1 -0
  84. package/dist/libs/contracts/dist/integrations/providers/powens.js +1 -0
  85. package/dist/libs/contracts/dist/integrations/providers/qdrant.js +1 -0
  86. package/dist/libs/contracts/dist/integrations/providers/registry.js +1 -0
  87. package/dist/libs/contracts/dist/integrations/providers/stripe.js +1 -0
  88. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +1 -0
  89. package/dist/libs/contracts/dist/jsonschema.js +1 -0
  90. package/dist/libs/contracts/dist/knowledge/contracts.js +1 -0
  91. package/dist/libs/contracts/dist/knowledge/index.js +1 -0
  92. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +1 -0
  93. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +1 -0
  94. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +1 -0
  95. package/dist/libs/contracts/dist/knowledge/spaces/index.js +1 -0
  96. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +1 -0
  97. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +1 -0
  98. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +1 -0
  99. package/dist/libs/contracts/dist/llm/exporters.js +1 -0
  100. package/dist/libs/contracts/dist/llm/index.js +1 -0
  101. package/dist/libs/contracts/dist/llm/prompts.js +1 -0
  102. package/dist/libs/contracts/dist/onboarding-base.js +1 -0
  103. package/dist/libs/contracts/dist/openapi.js +1 -0
  104. package/dist/libs/contracts/dist/ownership.js +1 -0
  105. package/dist/libs/contracts/dist/presentations.js +1 -0
  106. package/dist/libs/contracts/dist/presentations.v2.js +1 -0
  107. package/dist/libs/contracts/dist/prompt.js +1 -0
  108. package/dist/libs/contracts/dist/promptRegistry.js +1 -0
  109. package/dist/libs/contracts/dist/regenerator/index.js +1 -0
  110. package/dist/libs/contracts/dist/regenerator/service.js +1 -0
  111. package/dist/libs/contracts/dist/registry.js +1 -0
  112. package/dist/libs/contracts/dist/resources.js +1 -0
  113. package/dist/libs/contracts/dist/schema/dist/EnumType.js +1 -0
  114. package/dist/libs/contracts/dist/schema/dist/FieldType.js +1 -0
  115. package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +1 -0
  116. package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +1 -0
  117. package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +1 -0
  118. package/dist/libs/contracts/dist/schema/dist/entity/index.js +1 -0
  119. package/dist/libs/contracts/dist/schema/dist/entity/types.js +1 -0
  120. package/dist/libs/contracts/dist/schema/dist/index.js +1 -0
  121. package/dist/libs/contracts/dist/server/graphql-pothos.js +1 -0
  122. package/dist/libs/contracts/dist/server/index.js +1 -0
  123. package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +1 -0
  124. package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +1 -0
  125. package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +1 -0
  126. package/dist/libs/contracts/dist/server/mcp/registerResources.js +1 -0
  127. package/dist/libs/contracts/dist/server/mcp/registerTools.js +1 -0
  128. package/dist/libs/contracts/dist/server/provider-mcp.js +1 -0
  129. package/dist/libs/contracts/dist/server/rest-elysia.js +1 -0
  130. package/dist/libs/contracts/dist/server/rest-express.js +1 -0
  131. package/dist/libs/contracts/dist/server/rest-generic.js +1 -0
  132. package/dist/libs/contracts/dist/server/rest-next-app.js +1 -0
  133. package/dist/libs/contracts/dist/server/rest-next-pages.js +1 -0
  134. package/dist/libs/contracts/dist/spec.js +1 -0
  135. package/dist/libs/contracts/dist/telemetry/index.js +1 -0
  136. package/dist/libs/contracts/dist/telemetry/tracker.js +1 -0
  137. package/dist/libs/contracts/dist/tests/index.js +1 -0
  138. package/dist/libs/contracts/dist/tests/runner.js +1 -0
  139. package/dist/libs/contracts/dist/workflow/index.js +1 -0
  140. package/dist/libs/contracts/dist/workflow/runner.js +1 -0
  141. package/dist/libs/schema/dist/EnumType.js +1 -0
  142. package/dist/libs/schema/dist/FieldType.js +1 -0
  143. package/dist/libs/schema/dist/ScalarTypeEnum.js +1 -0
  144. package/dist/libs/schema/dist/SchemaModel.js +1 -0
  145. package/dist/libs/schema/dist/entity/defineEntity.js +1 -0
  146. package/dist/libs/schema/dist/entity/index.js +1 -0
  147. package/dist/libs/schema/dist/entity/types.js +1 -0
  148. package/dist/libs/schema/dist/index.js +1 -0
  149. package/dist/workflow/workflow.contracts.d.ts +246 -246
  150. package/dist/workflow/workflow.contracts.js +1 -1
  151. package/dist/workflow/workflow.enum.d.ts +5 -5
  152. package/dist/workflow/workflow.enum.js +1 -1
  153. package/dist/workflow/workflow.event.d.ts +32 -32
  154. package/dist/workflow/workflow.event.js +1 -1
  155. package/dist/workflow/workflow.schema.d.ts +63 -63
  156. package/dist/workflow/workflow.schema.js +1 -1
  157. package/package.json +11 -11
@@ -1,220 +1,220 @@
1
- import * as _lssm_lib_schema535 from "@lssm/lib.schema";
1
+ import * as _lssm_lib_schema1014 from "@lssm/lib.schema";
2
2
 
3
3
  //#region src/instance/instance.schema.d.ts
4
4
  /**
5
5
  * A running workflow instance.
6
6
  */
7
- declare const WorkflowInstanceModel: _lssm_lib_schema535.SchemaModel<{
7
+ declare const WorkflowInstanceModel: _lssm_lib_schema1014.SchemaModel<{
8
8
  id: {
9
- type: _lssm_lib_schema535.FieldType<string, string>;
9
+ type: _lssm_lib_schema1014.FieldType<string, string>;
10
10
  isOptional: false;
11
11
  };
12
12
  workflowDefinitionId: {
13
- type: _lssm_lib_schema535.FieldType<string, string>;
13
+ type: _lssm_lib_schema1014.FieldType<string, string>;
14
14
  isOptional: false;
15
15
  };
16
16
  referenceId: {
17
- type: _lssm_lib_schema535.FieldType<string, string>;
17
+ type: _lssm_lib_schema1014.FieldType<string, string>;
18
18
  isOptional: true;
19
19
  };
20
20
  referenceType: {
21
- type: _lssm_lib_schema535.FieldType<string, string>;
21
+ type: _lssm_lib_schema1014.FieldType<string, string>;
22
22
  isOptional: true;
23
23
  };
24
24
  status: {
25
- type: _lssm_lib_schema535.EnumType<[string, string, string, string, string, string, string, string]>;
25
+ type: _lssm_lib_schema1014.EnumType<[string, string, string, string, string, string, string, string]>;
26
26
  isOptional: false;
27
27
  };
28
28
  currentStepId: {
29
- type: _lssm_lib_schema535.FieldType<string, string>;
29
+ type: _lssm_lib_schema1014.FieldType<string, string>;
30
30
  isOptional: true;
31
31
  };
32
32
  contextData: {
33
- type: _lssm_lib_schema535.FieldType<unknown, unknown>;
33
+ type: _lssm_lib_schema1014.FieldType<unknown, unknown>;
34
34
  isOptional: true;
35
35
  };
36
36
  triggeredBy: {
37
- type: _lssm_lib_schema535.FieldType<string, string>;
37
+ type: _lssm_lib_schema1014.FieldType<string, string>;
38
38
  isOptional: false;
39
39
  };
40
40
  organizationId: {
41
- type: _lssm_lib_schema535.FieldType<string, string>;
41
+ type: _lssm_lib_schema1014.FieldType<string, string>;
42
42
  isOptional: false;
43
43
  };
44
44
  priority: {
45
- type: _lssm_lib_schema535.FieldType<number, number>;
45
+ type: _lssm_lib_schema1014.FieldType<number, number>;
46
46
  isOptional: false;
47
47
  };
48
48
  dueAt: {
49
- type: _lssm_lib_schema535.FieldType<Date, string>;
49
+ type: _lssm_lib_schema1014.FieldType<Date, string>;
50
50
  isOptional: true;
51
51
  };
52
52
  outcome: {
53
- type: _lssm_lib_schema535.FieldType<string, string>;
53
+ type: _lssm_lib_schema1014.FieldType<string, string>;
54
54
  isOptional: true;
55
55
  };
56
56
  resultData: {
57
- type: _lssm_lib_schema535.FieldType<unknown, unknown>;
57
+ type: _lssm_lib_schema1014.FieldType<unknown, unknown>;
58
58
  isOptional: true;
59
59
  };
60
60
  errorMessage: {
61
- type: _lssm_lib_schema535.FieldType<string, string>;
61
+ type: _lssm_lib_schema1014.FieldType<string, string>;
62
62
  isOptional: true;
63
63
  };
64
64
  createdAt: {
65
- type: _lssm_lib_schema535.FieldType<Date, string>;
65
+ type: _lssm_lib_schema1014.FieldType<Date, string>;
66
66
  isOptional: false;
67
67
  };
68
68
  startedAt: {
69
- type: _lssm_lib_schema535.FieldType<Date, string>;
69
+ type: _lssm_lib_schema1014.FieldType<Date, string>;
70
70
  isOptional: true;
71
71
  };
72
72
  completedAt: {
73
- type: _lssm_lib_schema535.FieldType<Date, string>;
73
+ type: _lssm_lib_schema1014.FieldType<Date, string>;
74
74
  isOptional: true;
75
75
  };
76
76
  }>;
77
77
  /**
78
78
  * Input for starting a workflow.
79
79
  */
80
- declare const StartWorkflowInputModel: _lssm_lib_schema535.SchemaModel<{
80
+ declare const StartWorkflowInputModel: _lssm_lib_schema1014.SchemaModel<{
81
81
  workflowKey: {
82
- type: _lssm_lib_schema535.FieldType<string, string>;
82
+ type: _lssm_lib_schema1014.FieldType<string, string>;
83
83
  isOptional: false;
84
84
  };
85
85
  contextData: {
86
- type: _lssm_lib_schema535.FieldType<unknown, unknown>;
86
+ type: _lssm_lib_schema1014.FieldType<unknown, unknown>;
87
87
  isOptional: true;
88
88
  };
89
89
  referenceId: {
90
- type: _lssm_lib_schema535.FieldType<string, string>;
90
+ type: _lssm_lib_schema1014.FieldType<string, string>;
91
91
  isOptional: true;
92
92
  };
93
93
  referenceType: {
94
- type: _lssm_lib_schema535.FieldType<string, string>;
94
+ type: _lssm_lib_schema1014.FieldType<string, string>;
95
95
  isOptional: true;
96
96
  };
97
97
  priority: {
98
- type: _lssm_lib_schema535.FieldType<number, number>;
98
+ type: _lssm_lib_schema1014.FieldType<number, number>;
99
99
  isOptional: true;
100
100
  };
101
101
  dueAt: {
102
- type: _lssm_lib_schema535.FieldType<Date, string>;
102
+ type: _lssm_lib_schema1014.FieldType<Date, string>;
103
103
  isOptional: true;
104
104
  };
105
105
  }>;
106
106
  /**
107
107
  * Input for transitioning a workflow.
108
108
  */
109
- declare const TransitionInputModel: _lssm_lib_schema535.SchemaModel<{
109
+ declare const TransitionInputModel: _lssm_lib_schema1014.SchemaModel<{
110
110
  instanceId: {
111
- type: _lssm_lib_schema535.FieldType<string, string>;
111
+ type: _lssm_lib_schema1014.FieldType<string, string>;
112
112
  isOptional: false;
113
113
  };
114
114
  action: {
115
- type: _lssm_lib_schema535.FieldType<string, string>;
115
+ type: _lssm_lib_schema1014.FieldType<string, string>;
116
116
  isOptional: false;
117
117
  };
118
118
  data: {
119
- type: _lssm_lib_schema535.FieldType<unknown, unknown>;
119
+ type: _lssm_lib_schema1014.FieldType<unknown, unknown>;
120
120
  isOptional: true;
121
121
  };
122
122
  comment: {
123
- type: _lssm_lib_schema535.FieldType<string, string>;
123
+ type: _lssm_lib_schema1014.FieldType<string, string>;
124
124
  isOptional: true;
125
125
  };
126
126
  }>;
127
127
  /**
128
128
  * Result of a workflow transition.
129
129
  */
130
- declare const TransitionResultModel: _lssm_lib_schema535.SchemaModel<{
130
+ declare const TransitionResultModel: _lssm_lib_schema1014.SchemaModel<{
131
131
  success: {
132
- type: _lssm_lib_schema535.FieldType<boolean, boolean>;
132
+ type: _lssm_lib_schema1014.FieldType<boolean, boolean>;
133
133
  isOptional: false;
134
134
  };
135
135
  instance: {
136
- type: _lssm_lib_schema535.SchemaModel<{
136
+ type: _lssm_lib_schema1014.SchemaModel<{
137
137
  id: {
138
- type: _lssm_lib_schema535.FieldType<string, string>;
138
+ type: _lssm_lib_schema1014.FieldType<string, string>;
139
139
  isOptional: false;
140
140
  };
141
141
  workflowDefinitionId: {
142
- type: _lssm_lib_schema535.FieldType<string, string>;
142
+ type: _lssm_lib_schema1014.FieldType<string, string>;
143
143
  isOptional: false;
144
144
  };
145
145
  referenceId: {
146
- type: _lssm_lib_schema535.FieldType<string, string>;
146
+ type: _lssm_lib_schema1014.FieldType<string, string>;
147
147
  isOptional: true;
148
148
  };
149
149
  referenceType: {
150
- type: _lssm_lib_schema535.FieldType<string, string>;
150
+ type: _lssm_lib_schema1014.FieldType<string, string>;
151
151
  isOptional: true;
152
152
  };
153
153
  status: {
154
- type: _lssm_lib_schema535.EnumType<[string, string, string, string, string, string, string, string]>;
154
+ type: _lssm_lib_schema1014.EnumType<[string, string, string, string, string, string, string, string]>;
155
155
  isOptional: false;
156
156
  };
157
157
  currentStepId: {
158
- type: _lssm_lib_schema535.FieldType<string, string>;
158
+ type: _lssm_lib_schema1014.FieldType<string, string>;
159
159
  isOptional: true;
160
160
  };
161
161
  contextData: {
162
- type: _lssm_lib_schema535.FieldType<unknown, unknown>;
162
+ type: _lssm_lib_schema1014.FieldType<unknown, unknown>;
163
163
  isOptional: true;
164
164
  };
165
165
  triggeredBy: {
166
- type: _lssm_lib_schema535.FieldType<string, string>;
166
+ type: _lssm_lib_schema1014.FieldType<string, string>;
167
167
  isOptional: false;
168
168
  };
169
169
  organizationId: {
170
- type: _lssm_lib_schema535.FieldType<string, string>;
170
+ type: _lssm_lib_schema1014.FieldType<string, string>;
171
171
  isOptional: false;
172
172
  };
173
173
  priority: {
174
- type: _lssm_lib_schema535.FieldType<number, number>;
174
+ type: _lssm_lib_schema1014.FieldType<number, number>;
175
175
  isOptional: false;
176
176
  };
177
177
  dueAt: {
178
- type: _lssm_lib_schema535.FieldType<Date, string>;
178
+ type: _lssm_lib_schema1014.FieldType<Date, string>;
179
179
  isOptional: true;
180
180
  };
181
181
  outcome: {
182
- type: _lssm_lib_schema535.FieldType<string, string>;
182
+ type: _lssm_lib_schema1014.FieldType<string, string>;
183
183
  isOptional: true;
184
184
  };
185
185
  resultData: {
186
- type: _lssm_lib_schema535.FieldType<unknown, unknown>;
186
+ type: _lssm_lib_schema1014.FieldType<unknown, unknown>;
187
187
  isOptional: true;
188
188
  };
189
189
  errorMessage: {
190
- type: _lssm_lib_schema535.FieldType<string, string>;
190
+ type: _lssm_lib_schema1014.FieldType<string, string>;
191
191
  isOptional: true;
192
192
  };
193
193
  createdAt: {
194
- type: _lssm_lib_schema535.FieldType<Date, string>;
194
+ type: _lssm_lib_schema1014.FieldType<Date, string>;
195
195
  isOptional: false;
196
196
  };
197
197
  startedAt: {
198
- type: _lssm_lib_schema535.FieldType<Date, string>;
198
+ type: _lssm_lib_schema1014.FieldType<Date, string>;
199
199
  isOptional: true;
200
200
  };
201
201
  completedAt: {
202
- type: _lssm_lib_schema535.FieldType<Date, string>;
202
+ type: _lssm_lib_schema1014.FieldType<Date, string>;
203
203
  isOptional: true;
204
204
  };
205
205
  }>;
206
206
  isOptional: false;
207
207
  };
208
208
  previousStepKey: {
209
- type: _lssm_lib_schema535.FieldType<string, string>;
209
+ type: _lssm_lib_schema1014.FieldType<string, string>;
210
210
  isOptional: true;
211
211
  };
212
212
  currentStepKey: {
213
- type: _lssm_lib_schema535.FieldType<string, string>;
213
+ type: _lssm_lib_schema1014.FieldType<string, string>;
214
214
  isOptional: true;
215
215
  };
216
216
  message: {
217
- type: _lssm_lib_schema535.FieldType<string, string>;
217
+ type: _lssm_lib_schema1014.FieldType<string, string>;
218
218
  isOptional: true;
219
219
  };
220
220
  }>;
@@ -1 +1 @@
1
- import{InstanceStatusEnum as e}from"./instance.enum.js";import{ScalarTypeEnum as t,defineSchemaModel as n}from"@lssm/lib.schema";const r=n({name:`WorkflowInstanceModel`,description:`A running workflow instance`,fields:{id:{type:t.String_unsecure(),isOptional:!1},workflowDefinitionId:{type:t.String_unsecure(),isOptional:!1},referenceId:{type:t.String_unsecure(),isOptional:!0},referenceType:{type:t.String_unsecure(),isOptional:!0},status:{type:e,isOptional:!1},currentStepId:{type:t.String_unsecure(),isOptional:!0},contextData:{type:t.JSON(),isOptional:!0},triggeredBy:{type:t.String_unsecure(),isOptional:!1},organizationId:{type:t.String_unsecure(),isOptional:!1},priority:{type:t.Int_unsecure(),isOptional:!1},dueAt:{type:t.DateTime(),isOptional:!0},outcome:{type:t.String_unsecure(),isOptional:!0},resultData:{type:t.JSON(),isOptional:!0},errorMessage:{type:t.String_unsecure(),isOptional:!0},createdAt:{type:t.DateTime(),isOptional:!1},startedAt:{type:t.DateTime(),isOptional:!0},completedAt:{type:t.DateTime(),isOptional:!0}}}),i=n({name:`StartWorkflowInput`,description:`Input for starting a workflow`,fields:{workflowKey:{type:t.NonEmptyString(),isOptional:!1},contextData:{type:t.JSON(),isOptional:!0},referenceId:{type:t.String_unsecure(),isOptional:!0},referenceType:{type:t.String_unsecure(),isOptional:!0},priority:{type:t.Int_unsecure(),isOptional:!0},dueAt:{type:t.DateTime(),isOptional:!0}}}),a=n({name:`TransitionInput`,description:`Input for transitioning a workflow`,fields:{instanceId:{type:t.String_unsecure(),isOptional:!1},action:{type:t.NonEmptyString(),isOptional:!1},data:{type:t.JSON(),isOptional:!0},comment:{type:t.String_unsecure(),isOptional:!0}}}),o=n({name:`TransitionResult`,description:`Result of a workflow transition`,fields:{success:{type:t.Boolean(),isOptional:!1},instance:{type:r,isOptional:!1},previousStepKey:{type:t.String_unsecure(),isOptional:!0},currentStepKey:{type:t.String_unsecure(),isOptional:!0},message:{type:t.String_unsecure(),isOptional:!0}}});export{i as StartWorkflowInputModel,a as TransitionInputModel,o as TransitionResultModel,r as WorkflowInstanceModel};
1
+ import{l as e}from"../libs/schema/dist/ScalarTypeEnum.js";import{n as t}from"../libs/schema/dist/SchemaModel.js";import"../libs/schema/dist/index.js";import{InstanceStatusEnum as n}from"./instance.enum.js";const r=t({name:`WorkflowInstanceModel`,description:`A running workflow instance`,fields:{id:{type:e.String_unsecure(),isOptional:!1},workflowDefinitionId:{type:e.String_unsecure(),isOptional:!1},referenceId:{type:e.String_unsecure(),isOptional:!0},referenceType:{type:e.String_unsecure(),isOptional:!0},status:{type:n,isOptional:!1},currentStepId:{type:e.String_unsecure(),isOptional:!0},contextData:{type:e.JSON(),isOptional:!0},triggeredBy:{type:e.String_unsecure(),isOptional:!1},organizationId:{type:e.String_unsecure(),isOptional:!1},priority:{type:e.Int_unsecure(),isOptional:!1},dueAt:{type:e.DateTime(),isOptional:!0},outcome:{type:e.String_unsecure(),isOptional:!0},resultData:{type:e.JSON(),isOptional:!0},errorMessage:{type:e.String_unsecure(),isOptional:!0},createdAt:{type:e.DateTime(),isOptional:!1},startedAt:{type:e.DateTime(),isOptional:!0},completedAt:{type:e.DateTime(),isOptional:!0}}}),i=t({name:`StartWorkflowInput`,description:`Input for starting a workflow`,fields:{workflowKey:{type:e.NonEmptyString(),isOptional:!1},contextData:{type:e.JSON(),isOptional:!0},referenceId:{type:e.String_unsecure(),isOptional:!0},referenceType:{type:e.String_unsecure(),isOptional:!0},priority:{type:e.Int_unsecure(),isOptional:!0},dueAt:{type:e.DateTime(),isOptional:!0}}}),a=t({name:`TransitionInput`,description:`Input for transitioning a workflow`,fields:{instanceId:{type:e.String_unsecure(),isOptional:!1},action:{type:e.NonEmptyString(),isOptional:!1},data:{type:e.JSON(),isOptional:!0},comment:{type:e.String_unsecure(),isOptional:!0}}}),o=t({name:`TransitionResult`,description:`Result of a workflow transition`,fields:{success:{type:e.Boolean(),isOptional:!1},instance:{type:r,isOptional:!1},previousStepKey:{type:e.String_unsecure(),isOptional:!0},currentStepKey:{type:e.String_unsecure(),isOptional:!0},message:{type:e.String_unsecure(),isOptional:!0}}});export{i as StartWorkflowInputModel,a as TransitionInputModel,o as TransitionResultModel,r as WorkflowInstanceModel};
@@ -0,0 +1 @@
1
+ import{e}from"../ownership.js";const t=[`platform.finance`],n=[`open-banking`,`finance`];[...t],[...n],e.Experimental,[...t],[...n],e.Experimental,[...t],[...n],e.Experimental;
@@ -0,0 +1 @@
1
+ "use client";import"./react/feature-render.js";import"./react/form-render.js";import"./react/index.js";
@@ -0,0 +1 @@
1
+ import"../../presentations.v2.js";import"react";
@@ -0,0 +1 @@
1
+ import"react";import"react-hook-form";import"@hookform/resolvers/zod";import"react/jsx-runtime";
@@ -0,0 +1 @@
1
+ "use client";import"./feature-render.js";import"./form-render.js";
@@ -0,0 +1 @@
1
+ import{i as e,n as t,r as n}from"./schemas.js";
@@ -0,0 +1 @@
1
+ import{e}from"../ownership.js";import t from"zod";const n=t.enum([`contractspec:operation`,`contractspec:event`,`contractspec:presentation`,`contractspec:form`,`contractspec:feature`,`contractspec:workflow`,`contractspec:template`,`contractspec:integration`,`contractspec:data-view`,`contractspec:migration`,`contractspec:telemetry`,`contractspec:experiment`,`contractspec:app-config`,`contractspec:knowledge`]),r=t.object({path:t.string().min(1),type:t.string().min(1),content:t.string().optional()}),i=t.object({name:t.string().min(1),type:n,version:t.number().int().nonnegative(),title:t.string().min(1),description:t.string().min(1),meta:t.object({stability:t.enum([e.Idea,e.InCreation,e.Experimental,e.Beta,e.Stable,e.Deprecated]),owners:t.array(t.string().min(1)).default([]),tags:t.array(t.string().min(1)).default([])}),dependencies:t.array(t.string().min(1)).optional(),registryDependencies:t.array(t.string().min(1)).optional(),files:t.array(r).min(1),schema:t.object({input:t.unknown().optional(),output:t.unknown().optional()}).optional()});t.object({$schema:t.string().min(1).optional(),name:t.string().min(1),homepage:t.string().min(1).optional(),items:t.array(i)});export{i,n,r};
@@ -0,0 +1,76 @@
1
+ import{a as e}from"./registry.js";e([{id:`docs.PUBLISHING`,title:`Publishing ContractSpec Libraries`,summary:`This guide describes how we release the ContractSpec libraries to npm. We use a dual-track release system: **Stable** (manual) and **Canary** (automatic).`,kind:`reference`,visibility:`public`,route:`/docs/PUBLISHING`,tags:[`PUBLISHING`],body:`# Publishing ContractSpec Libraries
2
+
3
+ This guide describes how we release the ContractSpec libraries to npm. We use a dual-track release system: **Stable** (manual) and **Canary** (automatic).
4
+
5
+ ## Release Tracks
6
+
7
+ | Track | Branch | npm Tag | Frequency | Versioning | Use Case |
8
+ |-------|--------|---------|-----------|------------|----------|
9
+ | **Stable** | \`release\` | \`latest\` | Manual | SemVer (e.g., \`1.7.4\`) | Production, external users |
10
+ | **Canary** | \`main\` | \`canary\` | Every Push | Snapshot (e.g., \`1.7.4-canary...\`) | Dev, internal testing |
11
+
12
+ ## Prerequisites
13
+
14
+ - ✅ \`NPM_TOKEN\` secret is configured in GitHub (owner or automation token with _publish_ scope).
15
+ - ✅ \`GITHUB_TOKEN\` (built-in) has permissions to create PRs (enabled by default in new repos).
16
+ - ✅ For stable releases: \`release\` branch exists and is protected.
17
+
18
+ ## Canary Workflow (Automatic)
19
+
20
+ Every commit pushed to \`main\` triggers the \`.github/workflows/publish-canary.yml\` workflow.
21
+
22
+ 1. **Trigger**: Push to \`main\`.
23
+ 2. **Versioning**: Runs \`changeset version --snapshot canary\` to generate a temporary snapshot version.
24
+ 3. **Publish**: Packages are published to npm with the \`canary\` tag using \`changeset publish --tag canary\`.
25
+
26
+ ### Consuming Canary Builds
27
+
28
+ To install the latest bleeding-edge version:
29
+
30
+ \`\`\`bash
31
+ npm install @lssm/lib.contracts@canary
32
+ # or
33
+ bun add @lssm/lib.contracts@canary
34
+ \`\`\`
35
+
36
+ ## Stable Release Workflow (Manual)
37
+
38
+ Stable releases are managed via the \`release\` branch using the standard [Changesets Action](https://github.com/changesets/action).
39
+
40
+ 1. **Develop on \`main\`**: Create features and fixes.
41
+ 2. **Add Changesets**: Run \`bun changeset\` to document changes and impact (major/minor/patch).
42
+ 3. **Merge to \`release\`**: When ready to ship, open a PR from \`main\` to \`release\` or merge manually.
43
+ 4. **"Version Packages" PR**:
44
+ - The GitHub Action detects new changesets and automatically creates a Pull Request titled **"Version Packages"**.
45
+ - This PR contains the version bumps and updated \`CHANGELOG.md\` files.
46
+ 5. **Merge & Publish**:
47
+ - Review and merge the "Version Packages" PR.
48
+ - The Action runs again, detects the versions have been bumped, builds the libraries, and publishes them to npm with the \`latest\` tag.
49
+
50
+ ### Publishing Steps
51
+
52
+ 1. Ensure all changesets are present on \`main\`.
53
+ 2. Merge \`main\` into \`release\`:
54
+ \`\`\`bash
55
+ git checkout release
56
+ git pull origin release
57
+ git merge main
58
+ git push origin release
59
+ \`\`\`
60
+ 3. Go to GitHub Pull Requests. You will see a **"Version Packages"** PR created by the bot.
61
+ 4. Merge that PR.
62
+ 5. The release is now live on npm!
63
+
64
+ ## Manual Verification (Optional)
65
+
66
+ Before publishing a new version you can run:
67
+
68
+ \`\`\`bash
69
+ bun run build:not-apps
70
+ npx npm-packlist --json packages/libs/contracts
71
+ \`\`\`
72
+
73
+ ## Rollback
74
+
75
+ If a publish fails mid-way, re-run the workflow once the issue is fixed. Already published packages are skipped automatically. Use \`npm deprecate <package>@<version>\` if we need to warn consumers about a broken release.
76
+ `}]);