@lssm/lib.contracts 0.0.0-canary-20251217083314 → 0.0.0-canary-20251220002821

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 (91) hide show
  1. package/LICENSE +21 -0
  2. package/dist/app-config/contracts.d.ts +50 -50
  3. package/dist/app-config/contracts.js +54 -56
  4. package/dist/app-config/events.d.ts +27 -27
  5. package/dist/app-config/events.js +31 -33
  6. package/dist/app-config/lifecycle-contracts.d.ts +80 -80
  7. package/dist/app-config/lifecycle-contracts.js +66 -68
  8. package/dist/client/react/form-render.d.ts +6 -6
  9. package/dist/client/react/form-render.js +15 -15
  10. package/dist/contracts-adapter-hydration.js +2 -2
  11. package/dist/data-views/query-generator.d.ts +2 -2
  12. package/dist/data-views/query-generator.js +1 -1
  13. package/dist/data-views/runtime.d.ts +2 -2
  14. package/dist/data-views/runtime.js +2 -2
  15. package/dist/docs/index.js +0 -6
  16. package/dist/docs/meta.docs.js +3 -0
  17. package/dist/docs/tech-contracts.docs.js +3 -0
  18. package/dist/forms.d.ts +4 -4
  19. package/dist/forms.js +3 -2
  20. package/dist/index.js +2 -3
  21. package/dist/integrations/contracts.d.ts +105 -104
  22. package/dist/integrations/contracts.js +63 -65
  23. package/dist/integrations/openbanking/contracts/accounts.d.ts +69 -68
  24. package/dist/integrations/openbanking/contracts/accounts.js +29 -31
  25. package/dist/integrations/openbanking/contracts/balances.d.ts +37 -36
  26. package/dist/integrations/openbanking/contracts/balances.js +16 -18
  27. package/dist/integrations/openbanking/contracts/transactions.d.ts +51 -50
  28. package/dist/integrations/openbanking/contracts/transactions.js +30 -32
  29. package/dist/integrations/openbanking/guards.js +1 -0
  30. package/dist/integrations/openbanking/models.d.ts +55 -55
  31. package/dist/integrations/openbanking/models.js +58 -60
  32. package/dist/integrations/providers/impls/gmail-inbound.js +1 -1
  33. package/dist/integrations/providers/impls/gmail-outbound.js +4 -4
  34. package/dist/integrations/providers/impls/mistral-llm.d.ts +1 -1
  35. package/dist/integrations/providers/impls/mistral-llm.js +1 -1
  36. package/dist/integrations/providers/impls/powens-openbanking.d.ts +1 -1
  37. package/dist/integrations/providers/impls/provider-factory.js +4 -1
  38. package/dist/integrations/providers/impls/qdrant-vector.js +2 -2
  39. package/dist/integrations/runtime.d.ts +1 -1
  40. package/dist/integrations/runtime.js +1 -1
  41. package/dist/integrations/secrets/manager.js +1 -1
  42. package/dist/jobs/handlers/gmail-sync-handler.d.ts +1 -1
  43. package/dist/jsonschema.d.ts +3 -3
  44. package/dist/knowledge/contracts.d.ts +69 -68
  45. package/dist/knowledge/contracts.js +42 -44
  46. package/dist/markdown.d.ts +1 -1
  47. package/dist/markdown.js +1 -1
  48. package/dist/onboarding-base.d.ts +29 -29
  49. package/dist/onboarding-base.js +20 -22
  50. package/dist/ownership.d.ts +4 -6
  51. package/dist/ownership.js +4 -5
  52. package/dist/presentations.d.ts +3 -3
  53. package/dist/presentations.v2.js +5 -2
  54. package/dist/promptRegistry.d.ts +2 -2
  55. package/dist/registry.d.ts +1 -1
  56. package/dist/registry.js +1 -0
  57. package/dist/resources.js +4 -1
  58. package/dist/schema/dist/index.js +4683 -6
  59. package/dist/schema-to-markdown.d.ts +1 -1
  60. package/dist/schema-to-markdown.js +1 -1
  61. package/dist/server/graphql-pothos.js +0 -1
  62. package/dist/server/rest-elysia.d.ts +1 -1
  63. package/dist/server/rest-express.js +0 -3
  64. package/dist/server/rest-generic.d.ts +1 -1
  65. package/dist/server/rest-generic.js +0 -1
  66. package/dist/server/rest-next-mcp.js +1 -1
  67. package/dist/server/rest-next-pages.js +0 -3
  68. package/dist/workflow/adapters/db-adapter.d.ts +19 -7
  69. package/dist/workflow/adapters/db-adapter.js +3 -3
  70. package/dist/workflow/expression.js +3 -2
  71. package/dist/workflow/validation.js +1 -0
  72. package/package.json +19 -18
  73. package/dist/docs/PUBLISHING.docblock.d.ts +0 -6
  74. package/dist/docs/PUBLISHING.docblock.js +0 -17
  75. package/dist/docs/tech/PHASE_1_QUICKSTART.docblock.d.ts +0 -6
  76. package/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -17
  77. package/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.d.ts +0 -6
  78. package/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -17
  79. package/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.d.ts +0 -6
  80. package/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -17
  81. package/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.d.ts +0 -6
  82. package/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -17
  83. package/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.d.ts +0 -6
  84. package/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -17
  85. package/dist/schema/dist/EnumType.js +0 -2
  86. package/dist/schema/dist/FieldType.js +0 -49
  87. package/dist/schema/dist/ScalarTypeEnum.js +0 -236
  88. package/dist/schema/dist/SchemaModel.js +0 -39
  89. package/dist/schema/dist/entity/defineEntity.js +0 -1
  90. package/dist/schema/dist/entity/index.js +0 -2
  91. package/dist/schema/dist/entity/types.js +0 -1
@@ -1,120 +1,120 @@
1
1
  import { EventSpec } from "../events.js";
2
2
  import "../index.js";
3
- import * as _lssm_lib_schema258 from "@lssm/lib.schema";
3
+ import * as _lssm_lib_schema146 from "@lssm/lib.schema";
4
4
  import { SchemaModel } from "@lssm/lib.schema";
5
5
 
6
6
  //#region src/app-config/events.d.ts
7
7
  declare const ConfigDraftCreatedEvent: EventSpec<SchemaModel<{
8
8
  tenantId: {
9
- type: _lssm_lib_schema258.FieldType<string, string>;
9
+ type: _lssm_lib_schema146.FieldType<string, string>;
10
10
  isOptional: false;
11
11
  };
12
12
  appId: {
13
- type: _lssm_lib_schema258.FieldType<string, string>;
13
+ type: _lssm_lib_schema146.FieldType<string, string>;
14
14
  isOptional: false;
15
15
  };
16
16
  version: {
17
- type: _lssm_lib_schema258.FieldType<number, number>;
17
+ type: _lssm_lib_schema146.FieldType<number, number>;
18
18
  isOptional: false;
19
19
  };
20
20
  blueprintName: {
21
- type: _lssm_lib_schema258.FieldType<string, string>;
21
+ type: _lssm_lib_schema146.FieldType<string, string>;
22
22
  isOptional: false;
23
23
  };
24
24
  blueprintVersion: {
25
- type: _lssm_lib_schema258.FieldType<number, number>;
25
+ type: _lssm_lib_schema146.FieldType<number, number>;
26
26
  isOptional: false;
27
27
  };
28
28
  createdBy: {
29
- type: _lssm_lib_schema258.FieldType<string, string>;
29
+ type: _lssm_lib_schema146.FieldType<string, string>;
30
30
  isOptional: false;
31
31
  };
32
32
  clonedFrom: {
33
- type: _lssm_lib_schema258.FieldType<number, number>;
33
+ type: _lssm_lib_schema146.FieldType<number, number>;
34
34
  isOptional: true;
35
35
  };
36
36
  }>>;
37
37
  declare const ConfigPromotedToPreviewEvent: EventSpec<SchemaModel<{
38
38
  tenantId: {
39
- type: _lssm_lib_schema258.FieldType<string, string>;
39
+ type: _lssm_lib_schema146.FieldType<string, string>;
40
40
  isOptional: false;
41
41
  };
42
42
  appId: {
43
- type: _lssm_lib_schema258.FieldType<string, string>;
43
+ type: _lssm_lib_schema146.FieldType<string, string>;
44
44
  isOptional: false;
45
45
  };
46
46
  version: {
47
- type: _lssm_lib_schema258.FieldType<number, number>;
47
+ type: _lssm_lib_schema146.FieldType<number, number>;
48
48
  isOptional: false;
49
49
  };
50
50
  promotedBy: {
51
- type: _lssm_lib_schema258.FieldType<string, string>;
51
+ type: _lssm_lib_schema146.FieldType<string, string>;
52
52
  isOptional: false;
53
53
  };
54
54
  warnings: {
55
- type: _lssm_lib_schema258.FieldType<string, string>;
55
+ type: _lssm_lib_schema146.FieldType<string, string>;
56
56
  isOptional: true;
57
57
  isArray: true;
58
58
  };
59
59
  }>>;
60
60
  declare const ConfigPublishedEvent: EventSpec<SchemaModel<{
61
61
  tenantId: {
62
- type: _lssm_lib_schema258.FieldType<string, string>;
62
+ type: _lssm_lib_schema146.FieldType<string, string>;
63
63
  isOptional: false;
64
64
  };
65
65
  appId: {
66
- type: _lssm_lib_schema258.FieldType<string, string>;
66
+ type: _lssm_lib_schema146.FieldType<string, string>;
67
67
  isOptional: false;
68
68
  };
69
69
  version: {
70
- type: _lssm_lib_schema258.FieldType<number, number>;
70
+ type: _lssm_lib_schema146.FieldType<number, number>;
71
71
  isOptional: false;
72
72
  };
73
73
  previousVersion: {
74
- type: _lssm_lib_schema258.FieldType<number, number>;
74
+ type: _lssm_lib_schema146.FieldType<number, number>;
75
75
  isOptional: true;
76
76
  };
77
77
  publishedBy: {
78
- type: _lssm_lib_schema258.FieldType<string, string>;
78
+ type: _lssm_lib_schema146.FieldType<string, string>;
79
79
  isOptional: false;
80
80
  };
81
81
  changeSummary: {
82
- type: _lssm_lib_schema258.FieldType<string, string>;
82
+ type: _lssm_lib_schema146.FieldType<string, string>;
83
83
  isOptional: true;
84
84
  };
85
85
  changedSections: {
86
- type: _lssm_lib_schema258.FieldType<string, string>;
86
+ type: _lssm_lib_schema146.FieldType<string, string>;
87
87
  isOptional: true;
88
88
  isArray: true;
89
89
  };
90
90
  }>>;
91
91
  declare const ConfigRolledBackEvent: EventSpec<SchemaModel<{
92
92
  tenantId: {
93
- type: _lssm_lib_schema258.FieldType<string, string>;
93
+ type: _lssm_lib_schema146.FieldType<string, string>;
94
94
  isOptional: false;
95
95
  };
96
96
  appId: {
97
- type: _lssm_lib_schema258.FieldType<string, string>;
97
+ type: _lssm_lib_schema146.FieldType<string, string>;
98
98
  isOptional: false;
99
99
  };
100
100
  newVersion: {
101
- type: _lssm_lib_schema258.FieldType<number, number>;
101
+ type: _lssm_lib_schema146.FieldType<number, number>;
102
102
  isOptional: false;
103
103
  };
104
104
  rolledBackFrom: {
105
- type: _lssm_lib_schema258.FieldType<number, number>;
105
+ type: _lssm_lib_schema146.FieldType<number, number>;
106
106
  isOptional: false;
107
107
  };
108
108
  rolledBackTo: {
109
- type: _lssm_lib_schema258.FieldType<number, number>;
109
+ type: _lssm_lib_schema146.FieldType<number, number>;
110
110
  isOptional: false;
111
111
  };
112
112
  rolledBackBy: {
113
- type: _lssm_lib_schema258.FieldType<string, string>;
113
+ type: _lssm_lib_schema146.FieldType<string, string>;
114
114
  isOptional: false;
115
115
  };
116
116
  reason: {
117
- type: _lssm_lib_schema258.FieldType<string, string>;
117
+ type: _lssm_lib_schema146.FieldType<string, string>;
118
118
  isOptional: false;
119
119
  };
120
120
  }>>;
@@ -1,6 +1,4 @@
1
- import { ScalarTypeEnum } from "../schema/dist/ScalarTypeEnum.js";
2
- import { SchemaModel } from "../schema/dist/SchemaModel.js";
3
- import "../schema/dist/index.js";
1
+ import { E5, x8 } from "../schema/dist/index.js";
4
2
  import { defineEvent } from "../events.js";
5
3
  import { OwnersEnum, StabilityEnum, TagsEnum } from "../ownership.js";
6
4
 
@@ -18,35 +16,35 @@ const ConfigDraftCreatedEvent = defineEvent({
18
16
  version: 1,
19
17
  description: "A new tenant config draft was created.",
20
18
  ownership: lifecycleOwnership,
21
- payload: new SchemaModel({
19
+ payload: new x8({
22
20
  name: "ConfigDraftCreatedPayload",
23
21
  fields: {
24
22
  tenantId: {
25
- type: ScalarTypeEnum.ID(),
23
+ type: E5.ID(),
26
24
  isOptional: false
27
25
  },
28
26
  appId: {
29
- type: ScalarTypeEnum.ID(),
27
+ type: E5.ID(),
30
28
  isOptional: false
31
29
  },
32
30
  version: {
33
- type: ScalarTypeEnum.Int_unsecure(),
31
+ type: E5.Int_unsecure(),
34
32
  isOptional: false
35
33
  },
36
34
  blueprintName: {
37
- type: ScalarTypeEnum.String_unsecure(),
35
+ type: E5.String_unsecure(),
38
36
  isOptional: false
39
37
  },
40
38
  blueprintVersion: {
41
- type: ScalarTypeEnum.Int_unsecure(),
39
+ type: E5.Int_unsecure(),
42
40
  isOptional: false
43
41
  },
44
42
  createdBy: {
45
- type: ScalarTypeEnum.String_unsecure(),
43
+ type: E5.String_unsecure(),
46
44
  isOptional: false
47
45
  },
48
46
  clonedFrom: {
49
- type: ScalarTypeEnum.Int_unsecure(),
47
+ type: E5.Int_unsecure(),
50
48
  isOptional: true
51
49
  }
52
50
  }
@@ -57,27 +55,27 @@ const ConfigPromotedToPreviewEvent = defineEvent({
57
55
  version: 1,
58
56
  description: "A tenant config draft was promoted to preview.",
59
57
  ownership: lifecycleOwnership,
60
- payload: new SchemaModel({
58
+ payload: new x8({
61
59
  name: "ConfigPromotedToPreviewPayload",
62
60
  fields: {
63
61
  tenantId: {
64
- type: ScalarTypeEnum.ID(),
62
+ type: E5.ID(),
65
63
  isOptional: false
66
64
  },
67
65
  appId: {
68
- type: ScalarTypeEnum.ID(),
66
+ type: E5.ID(),
69
67
  isOptional: false
70
68
  },
71
69
  version: {
72
- type: ScalarTypeEnum.Int_unsecure(),
70
+ type: E5.Int_unsecure(),
73
71
  isOptional: false
74
72
  },
75
73
  promotedBy: {
76
- type: ScalarTypeEnum.String_unsecure(),
74
+ type: E5.String_unsecure(),
77
75
  isOptional: false
78
76
  },
79
77
  warnings: {
80
- type: ScalarTypeEnum.String_unsecure(),
78
+ type: E5.String_unsecure(),
81
79
  isOptional: true,
82
80
  isArray: true
83
81
  }
@@ -89,35 +87,35 @@ const ConfigPublishedEvent = defineEvent({
89
87
  version: 1,
90
88
  description: "A tenant config version was published to production.",
91
89
  ownership: lifecycleOwnership,
92
- payload: new SchemaModel({
90
+ payload: new x8({
93
91
  name: "ConfigPublishedPayload",
94
92
  fields: {
95
93
  tenantId: {
96
- type: ScalarTypeEnum.ID(),
94
+ type: E5.ID(),
97
95
  isOptional: false
98
96
  },
99
97
  appId: {
100
- type: ScalarTypeEnum.ID(),
98
+ type: E5.ID(),
101
99
  isOptional: false
102
100
  },
103
101
  version: {
104
- type: ScalarTypeEnum.Int_unsecure(),
102
+ type: E5.Int_unsecure(),
105
103
  isOptional: false
106
104
  },
107
105
  previousVersion: {
108
- type: ScalarTypeEnum.Int_unsecure(),
106
+ type: E5.Int_unsecure(),
109
107
  isOptional: true
110
108
  },
111
109
  publishedBy: {
112
- type: ScalarTypeEnum.String_unsecure(),
110
+ type: E5.String_unsecure(),
113
111
  isOptional: false
114
112
  },
115
113
  changeSummary: {
116
- type: ScalarTypeEnum.String_unsecure(),
114
+ type: E5.String_unsecure(),
117
115
  isOptional: true
118
116
  },
119
117
  changedSections: {
120
- type: ScalarTypeEnum.String_unsecure(),
118
+ type: E5.String_unsecure(),
121
119
  isOptional: true,
122
120
  isArray: true
123
121
  }
@@ -129,35 +127,35 @@ const ConfigRolledBackEvent = defineEvent({
129
127
  version: 1,
130
128
  description: "A tenant config was rolled back to a previous version.",
131
129
  ownership: lifecycleOwnership,
132
- payload: new SchemaModel({
130
+ payload: new x8({
133
131
  name: "ConfigRolledBackPayload",
134
132
  fields: {
135
133
  tenantId: {
136
- type: ScalarTypeEnum.ID(),
134
+ type: E5.ID(),
137
135
  isOptional: false
138
136
  },
139
137
  appId: {
140
- type: ScalarTypeEnum.ID(),
138
+ type: E5.ID(),
141
139
  isOptional: false
142
140
  },
143
141
  newVersion: {
144
- type: ScalarTypeEnum.Int_unsecure(),
142
+ type: E5.Int_unsecure(),
145
143
  isOptional: false
146
144
  },
147
145
  rolledBackFrom: {
148
- type: ScalarTypeEnum.Int_unsecure(),
146
+ type: E5.Int_unsecure(),
149
147
  isOptional: false
150
148
  },
151
149
  rolledBackTo: {
152
- type: ScalarTypeEnum.Int_unsecure(),
150
+ type: E5.Int_unsecure(),
153
151
  isOptional: false
154
152
  },
155
153
  rolledBackBy: {
156
- type: ScalarTypeEnum.String_unsecure(),
154
+ type: E5.String_unsecure(),
157
155
  isOptional: false
158
156
  },
159
157
  reason: {
160
- type: ScalarTypeEnum.String_unsecure(),
158
+ type: E5.String_unsecure(),
161
159
  isOptional: false
162
160
  }
163
161
  }