@lssm/lib.jobs 0.0.0-canary-20251217080011 → 1.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/dist/_virtual/rolldown_runtime.js +1 -42
  2. package/dist/contracts/index.js +1 -484
  3. package/dist/entities/index.js +1 -198
  4. package/dist/events.js +1 -303
  5. package/dist/handlers/gmail-sync-handler.js +1 -9
  6. package/dist/handlers/index.js +1 -12
  7. package/dist/handlers/ping-job.js +1 -13
  8. package/dist/handlers/storage-document-handler.js +1 -14
  9. package/dist/index.js +1 -18
  10. package/dist/jobs.feature.js +1 -101
  11. package/dist/queue/gcp-cloud-tasks.js +1 -61
  12. package/dist/queue/gcp-pubsub.js +1 -47
  13. package/dist/queue/index.js +1 -9
  14. package/dist/queue/memory-queue.js +1 -140
  15. package/dist/queue/register-defined-job.js +1 -15
  16. package/dist/queue/scaleway-sqs-queue.js +1 -175
  17. package/dist/queue/types.js +1 -3
  18. package/dist/scheduler/index.js +1 -145
  19. package/package.json +23 -25
  20. package/dist/contracts/dist/capabilities/openbanking.js +0 -88
  21. package/dist/contracts/dist/client/index.js +0 -5
  22. package/dist/contracts/dist/client/react/feature-render.js +0 -2
  23. package/dist/contracts/dist/client/react/form-render.js +0 -4
  24. package/dist/contracts/dist/client/react/index.js +0 -4
  25. package/dist/contracts/dist/contract-registry/index.js +0 -1
  26. package/dist/contracts/dist/contract-registry/schemas.js +0 -60
  27. package/dist/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
  28. package/dist/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -16
  29. package/dist/contracts/dist/docs/index.js +0 -29
  30. package/dist/contracts/dist/docs/presentations.js +0 -71
  31. package/dist/contracts/dist/docs/registry.js +0 -44
  32. package/dist/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
  33. package/dist/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
  34. package/dist/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
  35. package/dist/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
  36. package/dist/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
  37. package/dist/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -80
  38. package/dist/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -57
  39. package/dist/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -16
  40. package/dist/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -357
  41. package/dist/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -37
  42. package/dist/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -16
  43. package/dist/contracts/dist/docs/tech/schema/README.docblock.js +0 -20
  44. package/dist/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -48
  45. package/dist/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -79
  46. package/dist/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -84
  47. package/dist/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -45
  48. package/dist/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -67
  49. package/dist/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -40
  50. package/dist/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -69
  51. package/dist/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -47
  52. package/dist/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -62
  53. package/dist/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -155
  54. package/dist/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -20
  55. package/dist/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -101
  56. package/dist/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -20
  57. package/dist/contracts/dist/events.js +0 -10
  58. package/dist/contracts/dist/experiments/evaluator.js +0 -1
  59. package/dist/contracts/dist/index.js +0 -71
  60. package/dist/contracts/dist/install.js +0 -2
  61. package/dist/contracts/dist/integrations/contracts.js +0 -377
  62. package/dist/contracts/dist/integrations/index.js +0 -18
  63. package/dist/contracts/dist/integrations/openbanking/contracts/accounts.js +0 -228
  64. package/dist/contracts/dist/integrations/openbanking/contracts/balances.js +0 -159
  65. package/dist/contracts/dist/integrations/openbanking/contracts/index.js +0 -3
  66. package/dist/contracts/dist/integrations/openbanking/contracts/transactions.js +0 -210
  67. package/dist/contracts/dist/integrations/openbanking/models.js +0 -242
  68. package/dist/contracts/dist/integrations/openbanking/telemetry.js +0 -13
  69. package/dist/contracts/dist/integrations/providers/elevenlabs.js +0 -52
  70. package/dist/contracts/dist/integrations/providers/gcs-storage.js +0 -75
  71. package/dist/contracts/dist/integrations/providers/gmail.js +0 -87
  72. package/dist/contracts/dist/integrations/providers/google-calendar.js +0 -66
  73. package/dist/contracts/dist/integrations/providers/index.js +0 -11
  74. package/dist/contracts/dist/integrations/providers/mistral.js +0 -68
  75. package/dist/contracts/dist/integrations/providers/postmark.js +0 -68
  76. package/dist/contracts/dist/integrations/providers/powens.js +0 -116
  77. package/dist/contracts/dist/integrations/providers/qdrant.js +0 -73
  78. package/dist/contracts/dist/integrations/providers/registry.js +0 -10
  79. package/dist/contracts/dist/integrations/providers/stripe.js +0 -83
  80. package/dist/contracts/dist/integrations/providers/twilio-sms.js +0 -61
  81. package/dist/contracts/dist/jobs/queue.js +0 -33
  82. package/dist/contracts/dist/jsonschema.js +0 -1
  83. package/dist/contracts/dist/knowledge/contracts.js +0 -306
  84. package/dist/contracts/dist/knowledge/index.js +0 -7
  85. package/dist/contracts/dist/knowledge/spaces/email-threads.js +0 -34
  86. package/dist/contracts/dist/knowledge/spaces/financial-docs.js +0 -34
  87. package/dist/contracts/dist/knowledge/spaces/financial-overview.js +0 -38
  88. package/dist/contracts/dist/knowledge/spaces/index.js +0 -6
  89. package/dist/contracts/dist/knowledge/spaces/product-canon.js +0 -34
  90. package/dist/contracts/dist/knowledge/spaces/support-faq.js +0 -37
  91. package/dist/contracts/dist/knowledge/spaces/uploaded-docs.js +0 -34
  92. package/dist/contracts/dist/llm/exporters.js +0 -19
  93. package/dist/contracts/dist/llm/index.js +0 -2
  94. package/dist/contracts/dist/llm/prompts.js +0 -1
  95. package/dist/contracts/dist/onboarding-base.js +0 -196
  96. package/dist/contracts/dist/openapi.js +0 -1
  97. package/dist/contracts/dist/ownership.js +0 -21
  98. package/dist/contracts/dist/presentations.js +0 -1
  99. package/dist/contracts/dist/presentations.v2.js +0 -11
  100. package/dist/contracts/dist/prompt.js +0 -1
  101. package/dist/contracts/dist/promptRegistry.js +0 -1
  102. package/dist/contracts/dist/regenerator/index.js +0 -1
  103. package/dist/contracts/dist/regenerator/service.js +0 -6
  104. package/dist/contracts/dist/registry.js +0 -2
  105. package/dist/contracts/dist/resources.js +0 -1
  106. package/dist/contracts/dist/schema/dist/EnumType.js +0 -2
  107. package/dist/contracts/dist/schema/dist/FieldType.js +0 -49
  108. package/dist/contracts/dist/schema/dist/ScalarTypeEnum.js +0 -236
  109. package/dist/contracts/dist/schema/dist/SchemaModel.js +0 -34
  110. package/dist/contracts/dist/schema/dist/entity/defineEntity.js +0 -1
  111. package/dist/contracts/dist/schema/dist/entity/index.js +0 -2
  112. package/dist/contracts/dist/schema/dist/entity/types.js +0 -1
  113. package/dist/contracts/dist/schema/dist/index.js +0 -6
  114. package/dist/contracts/dist/server/graphql-pothos.js +0 -6
  115. package/dist/contracts/dist/server/index.js +0 -8
  116. package/dist/contracts/dist/server/mcp/createMcpServer.js +0 -4
  117. package/dist/contracts/dist/server/mcp/registerPresentations.js +0 -2
  118. package/dist/contracts/dist/server/mcp/registerPrompts.js +0 -1
  119. package/dist/contracts/dist/server/mcp/registerResources.js +0 -2
  120. package/dist/contracts/dist/server/mcp/registerTools.js +0 -1
  121. package/dist/contracts/dist/server/provider-mcp.js +0 -1
  122. package/dist/contracts/dist/server/rest-elysia.js +0 -1
  123. package/dist/contracts/dist/server/rest-express.js +0 -1
  124. package/dist/contracts/dist/server/rest-generic.js +0 -1
  125. package/dist/contracts/dist/server/rest-next-app.js +0 -1
  126. package/dist/contracts/dist/server/rest-next-pages.js +0 -1
  127. package/dist/contracts/dist/spec.js +0 -34
  128. package/dist/contracts/dist/telemetry/index.js +0 -1
  129. package/dist/contracts/dist/telemetry/tracker.js +0 -1
  130. package/dist/contracts/dist/tests/index.js +0 -1
  131. package/dist/contracts/dist/tests/runner.js +0 -2
  132. package/dist/contracts/dist/workflow/index.js +0 -1
  133. package/dist/contracts/dist/workflow/runner.js +0 -1
  134. package/dist/contracts/index.d.ts +0 -546
  135. package/dist/entities/index.d.ts +0 -144
  136. package/dist/events.d.ts +0 -387
  137. package/dist/handlers/gmail-sync-handler.d.ts +0 -9
  138. package/dist/handlers/index.d.ts +0 -9
  139. package/dist/handlers/ping-job.d.ts +0 -10
  140. package/dist/handlers/storage-document-handler.d.ts +0 -12
  141. package/dist/index.d.ts +0 -24
  142. package/dist/jobs.feature.d.ts +0 -11
  143. package/dist/queue/gcp-cloud-tasks.d.ts +0 -41
  144. package/dist/queue/gcp-pubsub.d.ts +0 -25
  145. package/dist/queue/index.d.ts +0 -15
  146. package/dist/queue/memory-queue.d.ts +0 -34
  147. package/dist/queue/register-defined-job.d.ts +0 -7
  148. package/dist/queue/scaleway-sqs-queue.d.ts +0 -38
  149. package/dist/queue/types.d.ts +0 -7
  150. package/dist/scheduler/index.d.ts +0 -92
  151. package/dist/schema/dist/EnumType.js +0 -2
  152. package/dist/schema/dist/FieldType.js +0 -49
  153. package/dist/schema/dist/ScalarTypeEnum.js +0 -236
  154. package/dist/schema/dist/SchemaModel.js +0 -39
  155. package/dist/schema/dist/entity/defineEntity.js +0 -236
  156. package/dist/schema/dist/entity/index.js +0 -2
  157. package/dist/schema/dist/entity/types.js +0 -1
  158. package/dist/schema/dist/index.js +0 -6
@@ -1,236 +0,0 @@
1
- import * as z$1 from "zod";
2
-
3
- //#region ../schema/dist/entity/defineEntity.js
4
- /**
5
- * Helper to define a database entity with full type safety.
6
- *
7
- * @example
8
- * ```typescript
9
- * const UserEntity = defineEntity({
10
- * name: 'User',
11
- * schema: 'lssm_sigil',
12
- * description: 'A user of the platform.',
13
- * fields: {
14
- * id: field.id(),
15
- * email: field.string({ isUnique: true, zod: z.string().email() }),
16
- * name: field.string({ isOptional: true }),
17
- * createdAt: field.createdAt(),
18
- * updatedAt: field.updatedAt(),
19
- * memberships: field.hasMany('Member'),
20
- * },
21
- * indexes: [{ fields: ['email'], unique: true }],
22
- * });
23
- * ```
24
- */
25
- function defineEntity(spec) {
26
- return spec;
27
- }
28
- /**
29
- * Helper to define an enum that can be shared across entities.
30
- */
31
- function defineEntityEnum(def) {
32
- return def;
33
- }
34
- /**
35
- * Field builder helpers for common field patterns.
36
- */
37
- const field = {
38
- string(opts) {
39
- return {
40
- kind: "scalar",
41
- type: "String",
42
- ...opts
43
- };
44
- },
45
- int(opts) {
46
- return {
47
- kind: "scalar",
48
- type: "Int",
49
- ...opts
50
- };
51
- },
52
- float(opts) {
53
- return {
54
- kind: "scalar",
55
- type: "Float",
56
- ...opts
57
- };
58
- },
59
- boolean(opts) {
60
- return {
61
- kind: "scalar",
62
- type: "Boolean",
63
- ...opts
64
- };
65
- },
66
- dateTime(opts) {
67
- return {
68
- kind: "scalar",
69
- type: "DateTime",
70
- ...opts
71
- };
72
- },
73
- json(opts) {
74
- return {
75
- kind: "scalar",
76
- type: "Json",
77
- ...opts
78
- };
79
- },
80
- bigInt(opts) {
81
- return {
82
- kind: "scalar",
83
- type: "BigInt",
84
- ...opts
85
- };
86
- },
87
- decimal(opts) {
88
- return {
89
- kind: "scalar",
90
- type: "Decimal",
91
- ...opts
92
- };
93
- },
94
- bytes(opts) {
95
- return {
96
- kind: "scalar",
97
- type: "Bytes",
98
- ...opts
99
- };
100
- },
101
- id(opts) {
102
- return {
103
- kind: "scalar",
104
- type: "String",
105
- isId: true,
106
- default: "cuid()",
107
- ...opts
108
- };
109
- },
110
- uuid(opts) {
111
- return {
112
- kind: "scalar",
113
- type: "String",
114
- isId: true,
115
- default: "uuid()",
116
- ...opts
117
- };
118
- },
119
- autoIncrement(opts) {
120
- return {
121
- kind: "scalar",
122
- type: "Int",
123
- isId: true,
124
- default: "autoincrement()",
125
- ...opts
126
- };
127
- },
128
- createdAt(opts) {
129
- return {
130
- kind: "scalar",
131
- type: "DateTime",
132
- default: "now()",
133
- ...opts
134
- };
135
- },
136
- updatedAt(opts) {
137
- return {
138
- kind: "scalar",
139
- type: "DateTime",
140
- updatedAt: true,
141
- ...opts
142
- };
143
- },
144
- email(opts) {
145
- return {
146
- kind: "scalar",
147
- type: "String",
148
- zod: z$1.email(),
149
- ...opts
150
- };
151
- },
152
- url(opts) {
153
- return {
154
- kind: "scalar",
155
- type: "String",
156
- zod: z$1.url(),
157
- ...opts
158
- };
159
- },
160
- enum(enumName, opts) {
161
- return {
162
- kind: "enum",
163
- enumName,
164
- ...opts
165
- };
166
- },
167
- inlineEnum(enumName, values, opts) {
168
- return {
169
- kind: "enum",
170
- enumName,
171
- values,
172
- ...opts
173
- };
174
- },
175
- hasOne(target, opts) {
176
- return {
177
- kind: "relation",
178
- type: "hasOne",
179
- target,
180
- ...opts
181
- };
182
- },
183
- hasMany(target, opts) {
184
- return {
185
- kind: "relation",
186
- type: "hasMany",
187
- target,
188
- ...opts
189
- };
190
- },
191
- belongsTo(target, fields, references, opts) {
192
- return {
193
- kind: "relation",
194
- type: "belongsTo",
195
- target,
196
- fields,
197
- references,
198
- ...opts
199
- };
200
- },
201
- foreignKey(opts) {
202
- return {
203
- kind: "scalar",
204
- type: "String",
205
- ...opts
206
- };
207
- }
208
- };
209
- /**
210
- * Index builder helpers.
211
- */
212
- const index = {
213
- on(fields, opts) {
214
- return {
215
- fields,
216
- ...opts
217
- };
218
- },
219
- unique(fields, opts) {
220
- return {
221
- fields,
222
- unique: true,
223
- ...opts
224
- };
225
- },
226
- compound(fields, sort, opts) {
227
- return {
228
- fields,
229
- sort,
230
- ...opts
231
- };
232
- }
233
- };
234
-
235
- //#endregion
236
- export { defineEntity, defineEntityEnum, field, index };
@@ -1,2 +0,0 @@
1
- import { defineEntity, defineEntityEnum, field, index } from "./defineEntity.js";
2
- import "./types.js";
@@ -1 +0,0 @@
1
- import "zod";
@@ -1,6 +0,0 @@
1
- import "./EnumType.js";
2
- import { FieldType } from "./FieldType.js";
3
- import { ScalarTypeEnum } from "./ScalarTypeEnum.js";
4
- import { SchemaModel, defineSchemaModel } from "./SchemaModel.js";
5
- import { defineEntity, defineEntityEnum, field, index } from "./entity/defineEntity.js";
6
- import "./entity/index.js";