@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
@@ -84,7 +84,7 @@ declare class IntegrationCallGuard {
84
84
  private readonly sleep;
85
85
  private readonly now;
86
86
  constructor(secretProvider: SecretProvider, options?: IntegrationCallGuardOptions);
87
- executeWithGuards<T>(slotId: string, operation: string, input: unknown, resolvedConfig: ResolvedAppConfig, executor: (connection: IntegrationConnection, secrets: Record<string, string>) => Promise<T>): Promise<IntegrationCallResult<T>>;
87
+ executeWithGuards<T>(slotId: string, operation: string, _input: unknown, resolvedConfig: ResolvedAppConfig, executor: (connection: IntegrationConnection, secrets: Record<string, string>) => Promise<T>): Promise<IntegrationCallResult<T>>;
88
88
  private findIntegration;
89
89
  private fetchSecrets;
90
90
  private parseSecret;
@@ -19,7 +19,7 @@ var IntegrationCallGuard = class {
19
19
  this.sleep = options.sleep ?? ((ms) => ms <= 0 ? Promise.resolve() : new Promise((resolve) => setTimeout(resolve, ms)));
20
20
  this.now = options.now ?? (() => /* @__PURE__ */ new Date());
21
21
  }
22
- async executeWithGuards(slotId, operation, input, resolvedConfig, executor) {
22
+ async executeWithGuards(slotId, operation, _input, resolvedConfig, executor) {
23
23
  const integration = this.findIntegration(slotId, resolvedConfig);
24
24
  if (!integration) return this.failure({
25
25
  tenantId: resolvedConfig.tenantId,
@@ -86,7 +86,7 @@ var SecretProviderManager = class {
86
86
  message: messageParts.join(" "),
87
87
  provider: this.id,
88
88
  reference,
89
- code: errors.length > 0 ? errors[errors.length - 1].code : "UNKNOWN",
89
+ code: errors.length > 0 ? errors[errors.length - 1]?.code ?? "UNKNOWN" : "UNKNOWN",
90
90
  cause: errors
91
91
  });
92
92
  }
@@ -3,7 +3,7 @@ import { JobHandler } from "../queue.js";
3
3
  import { GmailIngestionAdapter } from "../../knowledge/ingestion/gmail-adapter.js";
4
4
 
5
5
  //#region src/jobs/handlers/gmail-sync-handler.d.ts
6
- interface GmailSyncJobPayload extends EmailThreadListQuery {}
6
+ type GmailSyncJobPayload = EmailThreadListQuery;
7
7
  declare function createGmailSyncHandler(adapter: GmailIngestionAdapter): JobHandler<GmailSyncJobPayload>;
8
8
  //#endregion
9
9
  export { GmailSyncJobPayload, createGmailSyncHandler };
@@ -1,13 +1,13 @@
1
1
  import { Stability, Tag } from "./ownership.js";
2
2
  import { ContractSpec, OpKind } from "./spec.js";
3
3
  import z from "zod";
4
- import * as _lssm_lib_schema0 from "@lssm/lib.schema";
4
+ import * as _lssm_lib_schema53 from "@lssm/lib.schema";
5
5
  import { AnySchemaModel } from "@lssm/lib.schema";
6
6
 
7
7
  //#region src/jsonschema.d.ts
8
8
  declare function jsonSchemaForSpec(spec: ContractSpec<AnySchemaModel, AnySchemaModel>): {
9
- input: z.core.ZodStandardJSONSchemaPayload<_lssm_lib_schema0.TopLevelZodFromModel<_lssm_lib_schema0.SchemaModelFieldsAnyConfig<AnySchemaModel | _lssm_lib_schema0.AnyFieldType | _lssm_lib_schema0.AnyEnumType>>> | null;
10
- output: z.core.ZodStandardJSONSchemaPayload<_lssm_lib_schema0.TopLevelZodFromModel<_lssm_lib_schema0.SchemaModelFieldsAnyConfig<AnySchemaModel | _lssm_lib_schema0.AnyFieldType | _lssm_lib_schema0.AnyEnumType>>> | null;
9
+ input: z.core.ZodStandardJSONSchemaPayload<_lssm_lib_schema53.TopLevelZodFromModel<_lssm_lib_schema53.SchemaModelFieldsAnyConfig<_lssm_lib_schema53.AnyFieldType | _lssm_lib_schema53.AnyEnumType | AnySchemaModel>>> | null;
10
+ output: z.core.ZodStandardJSONSchemaPayload<_lssm_lib_schema53.TopLevelZodFromModel<_lssm_lib_schema53.SchemaModelFieldsAnyConfig<_lssm_lib_schema53.AnyFieldType | _lssm_lib_schema53.AnyEnumType | AnySchemaModel>>> | null;
11
11
  meta: {
12
12
  name: string;
13
13
  version: number;
@@ -1,46 +1,47 @@
1
- import { ContractSpec } from "../spec.js";
1
+ import { AnyContractSpec, ContractSpec } from "../spec.js";
2
2
  import { SpecRegistry } from "../registry.js";
3
- import * as _lssm_lib_schema193 from "@lssm/lib.schema";
3
+ import "../index.js";
4
+ import * as _lssm_lib_schema352 from "@lssm/lib.schema";
4
5
  import { SchemaModel } from "@lssm/lib.schema";
5
6
 
6
7
  //#region src/knowledge/contracts.d.ts
7
8
  declare const CreateKnowledgeSource: ContractSpec<SchemaModel<{
8
9
  tenantId: {
9
- type: _lssm_lib_schema193.FieldType<string, string>;
10
+ type: _lssm_lib_schema352.FieldType<string, string>;
10
11
  isOptional: false;
11
12
  };
12
13
  spaceKey: {
13
- type: _lssm_lib_schema193.FieldType<string, string>;
14
+ type: _lssm_lib_schema352.FieldType<string, string>;
14
15
  isOptional: false;
15
16
  };
16
17
  spaceVersion: {
17
- type: _lssm_lib_schema193.FieldType<number, number>;
18
+ type: _lssm_lib_schema352.FieldType<number, number>;
18
19
  isOptional: false;
19
20
  };
20
21
  label: {
21
- type: _lssm_lib_schema193.FieldType<string, string>;
22
+ type: _lssm_lib_schema352.FieldType<string, string>;
22
23
  isOptional: false;
23
24
  };
24
25
  sourceType: {
25
- type: _lssm_lib_schema193.FieldType<string, string>;
26
+ type: _lssm_lib_schema352.FieldType<string, string>;
26
27
  isOptional: false;
27
28
  };
28
29
  config: {
29
- type: _lssm_lib_schema193.FieldType<Record<string, unknown>, Record<string, unknown>>;
30
+ type: _lssm_lib_schema352.FieldType<Record<string, unknown>, Record<string, unknown>>;
30
31
  isOptional: false;
31
32
  };
32
33
  syncSchedule: {
33
34
  type: SchemaModel<{
34
35
  enabled: {
35
- type: _lssm_lib_schema193.FieldType<boolean, boolean>;
36
+ type: _lssm_lib_schema352.FieldType<boolean, boolean>;
36
37
  isOptional: false;
37
38
  };
38
39
  cron: {
39
- type: _lssm_lib_schema193.FieldType<string, string>;
40
+ type: _lssm_lib_schema352.FieldType<string, string>;
40
41
  isOptional: true;
41
42
  };
42
43
  intervalMs: {
43
- type: _lssm_lib_schema193.FieldType<number, number>;
44
+ type: _lssm_lib_schema352.FieldType<number, number>;
44
45
  isOptional: true;
45
46
  };
46
47
  }>;
@@ -48,92 +49,92 @@ declare const CreateKnowledgeSource: ContractSpec<SchemaModel<{
48
49
  };
49
50
  }>, SchemaModel<{
50
51
  id: {
51
- type: _lssm_lib_schema193.FieldType<string, string>;
52
+ type: _lssm_lib_schema352.FieldType<string, string>;
52
53
  isOptional: false;
53
54
  };
54
55
  tenantId: {
55
- type: _lssm_lib_schema193.FieldType<string, string>;
56
+ type: _lssm_lib_schema352.FieldType<string, string>;
56
57
  isOptional: false;
57
58
  };
58
59
  spaceKey: {
59
- type: _lssm_lib_schema193.FieldType<string, string>;
60
+ type: _lssm_lib_schema352.FieldType<string, string>;
60
61
  isOptional: false;
61
62
  };
62
63
  spaceVersion: {
63
- type: _lssm_lib_schema193.FieldType<number, number>;
64
+ type: _lssm_lib_schema352.FieldType<number, number>;
64
65
  isOptional: false;
65
66
  };
66
67
  label: {
67
- type: _lssm_lib_schema193.FieldType<string, string>;
68
+ type: _lssm_lib_schema352.FieldType<string, string>;
68
69
  isOptional: false;
69
70
  };
70
71
  sourceType: {
71
- type: _lssm_lib_schema193.FieldType<string, string>;
72
+ type: _lssm_lib_schema352.FieldType<string, string>;
72
73
  isOptional: false;
73
74
  };
74
75
  syncSchedule: {
75
76
  type: SchemaModel<{
76
77
  enabled: {
77
- type: _lssm_lib_schema193.FieldType<boolean, boolean>;
78
+ type: _lssm_lib_schema352.FieldType<boolean, boolean>;
78
79
  isOptional: false;
79
80
  };
80
81
  cron: {
81
- type: _lssm_lib_schema193.FieldType<string, string>;
82
+ type: _lssm_lib_schema352.FieldType<string, string>;
82
83
  isOptional: true;
83
84
  };
84
85
  intervalMs: {
85
- type: _lssm_lib_schema193.FieldType<number, number>;
86
+ type: _lssm_lib_schema352.FieldType<number, number>;
86
87
  isOptional: true;
87
88
  };
88
89
  }>;
89
90
  isOptional: true;
90
91
  };
91
92
  lastSyncStatus: {
92
- type: _lssm_lib_schema193.FieldType<string, string>;
93
+ type: _lssm_lib_schema352.FieldType<string, string>;
93
94
  isOptional: true;
94
95
  };
95
96
  lastSyncAt: {
96
- type: _lssm_lib_schema193.FieldType<Date, string>;
97
+ type: _lssm_lib_schema352.FieldType<Date, string>;
97
98
  isOptional: true;
98
99
  };
99
100
  itemsProcessed: {
100
- type: _lssm_lib_schema193.FieldType<number, number>;
101
+ type: _lssm_lib_schema352.FieldType<number, number>;
101
102
  isOptional: true;
102
103
  };
103
104
  createdAt: {
104
- type: _lssm_lib_schema193.FieldType<Date, string>;
105
+ type: _lssm_lib_schema352.FieldType<Date, string>;
105
106
  isOptional: true;
106
107
  };
107
108
  updatedAt: {
108
- type: _lssm_lib_schema193.FieldType<Date, string>;
109
+ type: _lssm_lib_schema352.FieldType<Date, string>;
109
110
  isOptional: true;
110
111
  };
111
112
  }>, undefined>;
112
113
  declare const UpdateKnowledgeSource: ContractSpec<SchemaModel<{
113
114
  sourceId: {
114
- type: _lssm_lib_schema193.FieldType<string, string>;
115
+ type: _lssm_lib_schema352.FieldType<string, string>;
115
116
  isOptional: false;
116
117
  };
117
118
  label: {
118
- type: _lssm_lib_schema193.FieldType<string, string>;
119
+ type: _lssm_lib_schema352.FieldType<string, string>;
119
120
  isOptional: true;
120
121
  };
121
122
  config: {
122
- type: _lssm_lib_schema193.FieldType<Record<string, unknown>, Record<string, unknown>>;
123
+ type: _lssm_lib_schema352.FieldType<Record<string, unknown>, Record<string, unknown>>;
123
124
  isOptional: true;
124
125
  };
125
126
  syncSchedule: {
126
127
  type: SchemaModel<{
127
128
  enabled: {
128
- type: _lssm_lib_schema193.FieldType<boolean, boolean>;
129
+ type: _lssm_lib_schema352.FieldType<boolean, boolean>;
129
130
  isOptional: false;
130
131
  };
131
132
  cron: {
132
- type: _lssm_lib_schema193.FieldType<string, string>;
133
+ type: _lssm_lib_schema352.FieldType<string, string>;
133
134
  isOptional: true;
134
135
  };
135
136
  intervalMs: {
136
- type: _lssm_lib_schema193.FieldType<number, number>;
137
+ type: _lssm_lib_schema352.FieldType<number, number>;
137
138
  isOptional: true;
138
139
  };
139
140
  }>;
@@ -141,149 +142,149 @@ declare const UpdateKnowledgeSource: ContractSpec<SchemaModel<{
141
142
  };
142
143
  }>, SchemaModel<{
143
144
  id: {
144
- type: _lssm_lib_schema193.FieldType<string, string>;
145
+ type: _lssm_lib_schema352.FieldType<string, string>;
145
146
  isOptional: false;
146
147
  };
147
148
  tenantId: {
148
- type: _lssm_lib_schema193.FieldType<string, string>;
149
+ type: _lssm_lib_schema352.FieldType<string, string>;
149
150
  isOptional: false;
150
151
  };
151
152
  spaceKey: {
152
- type: _lssm_lib_schema193.FieldType<string, string>;
153
+ type: _lssm_lib_schema352.FieldType<string, string>;
153
154
  isOptional: false;
154
155
  };
155
156
  spaceVersion: {
156
- type: _lssm_lib_schema193.FieldType<number, number>;
157
+ type: _lssm_lib_schema352.FieldType<number, number>;
157
158
  isOptional: false;
158
159
  };
159
160
  label: {
160
- type: _lssm_lib_schema193.FieldType<string, string>;
161
+ type: _lssm_lib_schema352.FieldType<string, string>;
161
162
  isOptional: false;
162
163
  };
163
164
  sourceType: {
164
- type: _lssm_lib_schema193.FieldType<string, string>;
165
+ type: _lssm_lib_schema352.FieldType<string, string>;
165
166
  isOptional: false;
166
167
  };
167
168
  syncSchedule: {
168
169
  type: SchemaModel<{
169
170
  enabled: {
170
- type: _lssm_lib_schema193.FieldType<boolean, boolean>;
171
+ type: _lssm_lib_schema352.FieldType<boolean, boolean>;
171
172
  isOptional: false;
172
173
  };
173
174
  cron: {
174
- type: _lssm_lib_schema193.FieldType<string, string>;
175
+ type: _lssm_lib_schema352.FieldType<string, string>;
175
176
  isOptional: true;
176
177
  };
177
178
  intervalMs: {
178
- type: _lssm_lib_schema193.FieldType<number, number>;
179
+ type: _lssm_lib_schema352.FieldType<number, number>;
179
180
  isOptional: true;
180
181
  };
181
182
  }>;
182
183
  isOptional: true;
183
184
  };
184
185
  lastSyncStatus: {
185
- type: _lssm_lib_schema193.FieldType<string, string>;
186
+ type: _lssm_lib_schema352.FieldType<string, string>;
186
187
  isOptional: true;
187
188
  };
188
189
  lastSyncAt: {
189
- type: _lssm_lib_schema193.FieldType<Date, string>;
190
+ type: _lssm_lib_schema352.FieldType<Date, string>;
190
191
  isOptional: true;
191
192
  };
192
193
  itemsProcessed: {
193
- type: _lssm_lib_schema193.FieldType<number, number>;
194
+ type: _lssm_lib_schema352.FieldType<number, number>;
194
195
  isOptional: true;
195
196
  };
196
197
  createdAt: {
197
- type: _lssm_lib_schema193.FieldType<Date, string>;
198
+ type: _lssm_lib_schema352.FieldType<Date, string>;
198
199
  isOptional: true;
199
200
  };
200
201
  updatedAt: {
201
- type: _lssm_lib_schema193.FieldType<Date, string>;
202
+ type: _lssm_lib_schema352.FieldType<Date, string>;
202
203
  isOptional: true;
203
204
  };
204
205
  }>, undefined>;
205
206
  declare const DeleteKnowledgeSource: ContractSpec<SchemaModel<{
206
207
  sourceId: {
207
- type: _lssm_lib_schema193.FieldType<string, string>;
208
+ type: _lssm_lib_schema352.FieldType<string, string>;
208
209
  isOptional: false;
209
210
  };
210
211
  }>, SchemaModel<{
211
212
  success: {
212
- type: _lssm_lib_schema193.FieldType<boolean, boolean>;
213
+ type: _lssm_lib_schema352.FieldType<boolean, boolean>;
213
214
  isOptional: false;
214
215
  };
215
216
  }>, undefined>;
216
217
  declare const ListKnowledgeSources: ContractSpec<SchemaModel<{
217
218
  tenantId: {
218
- type: _lssm_lib_schema193.FieldType<string, string>;
219
+ type: _lssm_lib_schema352.FieldType<string, string>;
219
220
  isOptional: false;
220
221
  };
221
222
  spaceKey: {
222
- type: _lssm_lib_schema193.FieldType<string, string>;
223
+ type: _lssm_lib_schema352.FieldType<string, string>;
223
224
  isOptional: true;
224
225
  };
225
226
  }>, SchemaModel<{
226
227
  sources: {
227
228
  type: SchemaModel<{
228
229
  id: {
229
- type: _lssm_lib_schema193.FieldType<string, string>;
230
+ type: _lssm_lib_schema352.FieldType<string, string>;
230
231
  isOptional: false;
231
232
  };
232
233
  tenantId: {
233
- type: _lssm_lib_schema193.FieldType<string, string>;
234
+ type: _lssm_lib_schema352.FieldType<string, string>;
234
235
  isOptional: false;
235
236
  };
236
237
  spaceKey: {
237
- type: _lssm_lib_schema193.FieldType<string, string>;
238
+ type: _lssm_lib_schema352.FieldType<string, string>;
238
239
  isOptional: false;
239
240
  };
240
241
  spaceVersion: {
241
- type: _lssm_lib_schema193.FieldType<number, number>;
242
+ type: _lssm_lib_schema352.FieldType<number, number>;
242
243
  isOptional: false;
243
244
  };
244
245
  label: {
245
- type: _lssm_lib_schema193.FieldType<string, string>;
246
+ type: _lssm_lib_schema352.FieldType<string, string>;
246
247
  isOptional: false;
247
248
  };
248
249
  sourceType: {
249
- type: _lssm_lib_schema193.FieldType<string, string>;
250
+ type: _lssm_lib_schema352.FieldType<string, string>;
250
251
  isOptional: false;
251
252
  };
252
253
  syncSchedule: {
253
254
  type: SchemaModel<{
254
255
  enabled: {
255
- type: _lssm_lib_schema193.FieldType<boolean, boolean>;
256
+ type: _lssm_lib_schema352.FieldType<boolean, boolean>;
256
257
  isOptional: false;
257
258
  };
258
259
  cron: {
259
- type: _lssm_lib_schema193.FieldType<string, string>;
260
+ type: _lssm_lib_schema352.FieldType<string, string>;
260
261
  isOptional: true;
261
262
  };
262
263
  intervalMs: {
263
- type: _lssm_lib_schema193.FieldType<number, number>;
264
+ type: _lssm_lib_schema352.FieldType<number, number>;
264
265
  isOptional: true;
265
266
  };
266
267
  }>;
267
268
  isOptional: true;
268
269
  };
269
270
  lastSyncStatus: {
270
- type: _lssm_lib_schema193.FieldType<string, string>;
271
+ type: _lssm_lib_schema352.FieldType<string, string>;
271
272
  isOptional: true;
272
273
  };
273
274
  lastSyncAt: {
274
- type: _lssm_lib_schema193.FieldType<Date, string>;
275
+ type: _lssm_lib_schema352.FieldType<Date, string>;
275
276
  isOptional: true;
276
277
  };
277
278
  itemsProcessed: {
278
- type: _lssm_lib_schema193.FieldType<number, number>;
279
+ type: _lssm_lib_schema352.FieldType<number, number>;
279
280
  isOptional: true;
280
281
  };
281
282
  createdAt: {
282
- type: _lssm_lib_schema193.FieldType<Date, string>;
283
+ type: _lssm_lib_schema352.FieldType<Date, string>;
283
284
  isOptional: true;
284
285
  };
285
286
  updatedAt: {
286
- type: _lssm_lib_schema193.FieldType<Date, string>;
287
+ type: _lssm_lib_schema352.FieldType<Date, string>;
287
288
  isOptional: true;
288
289
  };
289
290
  }>;
@@ -293,24 +294,24 @@ declare const ListKnowledgeSources: ContractSpec<SchemaModel<{
293
294
  }>, undefined>;
294
295
  declare const TriggerKnowledgeSourceSync: ContractSpec<SchemaModel<{
295
296
  sourceId: {
296
- type: _lssm_lib_schema193.FieldType<string, string>;
297
+ type: _lssm_lib_schema352.FieldType<string, string>;
297
298
  isOptional: false;
298
299
  };
299
300
  }>, SchemaModel<{
300
301
  success: {
301
- type: _lssm_lib_schema193.FieldType<boolean, boolean>;
302
+ type: _lssm_lib_schema352.FieldType<boolean, boolean>;
302
303
  isOptional: false;
303
304
  };
304
305
  itemsProcessed: {
305
- type: _lssm_lib_schema193.FieldType<number, number>;
306
+ type: _lssm_lib_schema352.FieldType<number, number>;
306
307
  isOptional: true;
307
308
  };
308
309
  error: {
309
- type: _lssm_lib_schema193.FieldType<string, string>;
310
+ type: _lssm_lib_schema352.FieldType<string, string>;
310
311
  isOptional: true;
311
312
  };
312
313
  }>, undefined>;
313
- declare const knowledgeContracts: Record<string, ContractSpec<any, any>>;
314
+ declare const knowledgeContracts: Record<string, AnyContractSpec>;
314
315
  declare function registerKnowledgeContracts(registry: SpecRegistry): SpecRegistry;
315
316
  //#endregion
316
317
  export { CreateKnowledgeSource, DeleteKnowledgeSource, ListKnowledgeSources, TriggerKnowledgeSourceSync, UpdateKnowledgeSource, knowledgeContracts, registerKnowledgeContracts };
@@ -1,51 +1,49 @@
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 { defineCommand, defineQuery } from "../spec.js";
5
3
 
6
4
  //#region src/knowledge/contracts.ts
7
- const KnowledgeSyncSchedule = new SchemaModel({
5
+ const KnowledgeSyncSchedule = new x8({
8
6
  name: "KnowledgeSyncSchedule",
9
7
  fields: {
10
8
  enabled: {
11
- type: ScalarTypeEnum.Boolean(),
9
+ type: E5.Boolean(),
12
10
  isOptional: false
13
11
  },
14
12
  cron: {
15
- type: ScalarTypeEnum.String_unsecure(),
13
+ type: E5.String_unsecure(),
16
14
  isOptional: true
17
15
  },
18
16
  intervalMs: {
19
- type: ScalarTypeEnum.Int_unsecure(),
17
+ type: E5.Int_unsecure(),
20
18
  isOptional: true
21
19
  }
22
20
  }
23
21
  });
24
- const KnowledgeSourceRecord = new SchemaModel({
22
+ const KnowledgeSourceRecord = new x8({
25
23
  name: "KnowledgeSourceRecord",
26
24
  fields: {
27
25
  id: {
28
- type: ScalarTypeEnum.ID(),
26
+ type: E5.ID(),
29
27
  isOptional: false
30
28
  },
31
29
  tenantId: {
32
- type: ScalarTypeEnum.ID(),
30
+ type: E5.ID(),
33
31
  isOptional: false
34
32
  },
35
33
  spaceKey: {
36
- type: ScalarTypeEnum.NonEmptyString(),
34
+ type: E5.NonEmptyString(),
37
35
  isOptional: false
38
36
  },
39
37
  spaceVersion: {
40
- type: ScalarTypeEnum.Int_unsecure(),
38
+ type: E5.Int_unsecure(),
41
39
  isOptional: false
42
40
  },
43
41
  label: {
44
- type: ScalarTypeEnum.String_unsecure(),
42
+ type: E5.String_unsecure(),
45
43
  isOptional: false
46
44
  },
47
45
  sourceType: {
48
- type: ScalarTypeEnum.String_unsecure(),
46
+ type: E5.String_unsecure(),
49
47
  isOptional: false
50
48
  },
51
49
  syncSchedule: {
@@ -53,52 +51,52 @@ const KnowledgeSourceRecord = new SchemaModel({
53
51
  isOptional: true
54
52
  },
55
53
  lastSyncStatus: {
56
- type: ScalarTypeEnum.String_unsecure(),
54
+ type: E5.String_unsecure(),
57
55
  isOptional: true
58
56
  },
59
57
  lastSyncAt: {
60
- type: ScalarTypeEnum.DateTime(),
58
+ type: E5.DateTime(),
61
59
  isOptional: true
62
60
  },
63
61
  itemsProcessed: {
64
- type: ScalarTypeEnum.Int_unsecure(),
62
+ type: E5.Int_unsecure(),
65
63
  isOptional: true
66
64
  },
67
65
  createdAt: {
68
- type: ScalarTypeEnum.DateTime(),
66
+ type: E5.DateTime(),
69
67
  isOptional: true
70
68
  },
71
69
  updatedAt: {
72
- type: ScalarTypeEnum.DateTime(),
70
+ type: E5.DateTime(),
73
71
  isOptional: true
74
72
  }
75
73
  }
76
74
  });
77
- const CreateKnowledgeSourceInput = new SchemaModel({
75
+ const CreateKnowledgeSourceInput = new x8({
78
76
  name: "CreateKnowledgeSourceInput",
79
77
  fields: {
80
78
  tenantId: {
81
- type: ScalarTypeEnum.ID(),
79
+ type: E5.ID(),
82
80
  isOptional: false
83
81
  },
84
82
  spaceKey: {
85
- type: ScalarTypeEnum.NonEmptyString(),
83
+ type: E5.NonEmptyString(),
86
84
  isOptional: false
87
85
  },
88
86
  spaceVersion: {
89
- type: ScalarTypeEnum.Int_unsecure(),
87
+ type: E5.Int_unsecure(),
90
88
  isOptional: false
91
89
  },
92
90
  label: {
93
- type: ScalarTypeEnum.String_unsecure(),
91
+ type: E5.String_unsecure(),
94
92
  isOptional: false
95
93
  },
96
94
  sourceType: {
97
- type: ScalarTypeEnum.NonEmptyString(),
95
+ type: E5.NonEmptyString(),
98
96
  isOptional: false
99
97
  },
100
98
  config: {
101
- type: ScalarTypeEnum.JSONObject(),
99
+ type: E5.JSONObject(),
102
100
  isOptional: false
103
101
  },
104
102
  syncSchedule: {
@@ -107,19 +105,19 @@ const CreateKnowledgeSourceInput = new SchemaModel({
107
105
  }
108
106
  }
109
107
  });
110
- const UpdateKnowledgeSourceInput = new SchemaModel({
108
+ const UpdateKnowledgeSourceInput = new x8({
111
109
  name: "UpdateKnowledgeSourceInput",
112
110
  fields: {
113
111
  sourceId: {
114
- type: ScalarTypeEnum.ID(),
112
+ type: E5.ID(),
115
113
  isOptional: false
116
114
  },
117
115
  label: {
118
- type: ScalarTypeEnum.String_unsecure(),
116
+ type: E5.String_unsecure(),
119
117
  isOptional: true
120
118
  },
121
119
  config: {
122
- type: ScalarTypeEnum.JSONObject(),
120
+ type: E5.JSONObject(),
123
121
  isOptional: true
124
122
  },
125
123
  syncSchedule: {
@@ -128,34 +126,34 @@ const UpdateKnowledgeSourceInput = new SchemaModel({
128
126
  }
129
127
  }
130
128
  });
131
- const DeleteKnowledgeSourceInput = new SchemaModel({
129
+ const DeleteKnowledgeSourceInput = new x8({
132
130
  name: "DeleteKnowledgeSourceInput",
133
131
  fields: { sourceId: {
134
- type: ScalarTypeEnum.ID(),
132
+ type: E5.ID(),
135
133
  isOptional: false
136
134
  } }
137
135
  });
138
- const DeleteKnowledgeSourceOutput = new SchemaModel({
136
+ const DeleteKnowledgeSourceOutput = new x8({
139
137
  name: "DeleteKnowledgeSourceOutput",
140
138
  fields: { success: {
141
- type: ScalarTypeEnum.Boolean(),
139
+ type: E5.Boolean(),
142
140
  isOptional: false
143
141
  } }
144
142
  });
145
- const ListKnowledgeSourcesInput = new SchemaModel({
143
+ const ListKnowledgeSourcesInput = new x8({
146
144
  name: "ListKnowledgeSourcesInput",
147
145
  fields: {
148
146
  tenantId: {
149
- type: ScalarTypeEnum.ID(),
147
+ type: E5.ID(),
150
148
  isOptional: false
151
149
  },
152
150
  spaceKey: {
153
- type: ScalarTypeEnum.NonEmptyString(),
151
+ type: E5.NonEmptyString(),
154
152
  isOptional: true
155
153
  }
156
154
  }
157
155
  });
158
- const ListKnowledgeSourcesOutput = new SchemaModel({
156
+ const ListKnowledgeSourcesOutput = new x8({
159
157
  name: "ListKnowledgeSourcesOutput",
160
158
  fields: { sources: {
161
159
  type: KnowledgeSourceRecord,
@@ -163,26 +161,26 @@ const ListKnowledgeSourcesOutput = new SchemaModel({
163
161
  isArray: true
164
162
  } }
165
163
  });
166
- const TriggerKnowledgeSyncInput = new SchemaModel({
164
+ const TriggerKnowledgeSyncInput = new x8({
167
165
  name: "TriggerKnowledgeSyncInput",
168
166
  fields: { sourceId: {
169
- type: ScalarTypeEnum.ID(),
167
+ type: E5.ID(),
170
168
  isOptional: false
171
169
  } }
172
170
  });
173
- const TriggerKnowledgeSyncOutput = new SchemaModel({
171
+ const TriggerKnowledgeSyncOutput = new x8({
174
172
  name: "TriggerKnowledgeSyncOutput",
175
173
  fields: {
176
174
  success: {
177
- type: ScalarTypeEnum.Boolean(),
175
+ type: E5.Boolean(),
178
176
  isOptional: false
179
177
  },
180
178
  itemsProcessed: {
181
- type: ScalarTypeEnum.Int_unsecure(),
179
+ type: E5.Int_unsecure(),
182
180
  isOptional: true
183
181
  },
184
182
  error: {
185
- type: ScalarTypeEnum.String_unsecure(),
183
+ type: E5.String_unsecure(),
186
184
  isOptional: true
187
185
  }
188
186
  }
@@ -8,7 +8,7 @@ import { FeatureRegistry } from "./features.js";
8
8
  * Render simple Markdown docs for each spec.
9
9
  * Useful for dev portals and repo docs generation.
10
10
  */
11
- declare function specsToMarkdown(reg: SpecRegistry, extras?: {
11
+ declare function specsToMarkdown(reg: SpecRegistry, _extras?: {
12
12
  presentations?: PresentationRegistry;
13
13
  features?: FeatureRegistry;
14
14
  }): string;