@lssm/module.notifications 0.0.0-canary-20251206160926

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 (114) hide show
  1. package/README.md +118 -0
  2. package/dist/channels/index.d.ts +106 -0
  3. package/dist/channels/index.js +1 -0
  4. package/dist/contracts/index.d.ts +637 -0
  5. package/dist/contracts/index.js +1 -0
  6. package/dist/entities/index.d.ts +182 -0
  7. package/dist/entities/index.js +1 -0
  8. package/dist/index.d.ts +5 -0
  9. package/dist/index.js +1 -0
  10. package/dist/libs/contracts/dist/capabilities/openbanking.js +1 -0
  11. package/dist/libs/contracts/dist/client/index.js +1 -0
  12. package/dist/libs/contracts/dist/client/react/feature-render.js +1 -0
  13. package/dist/libs/contracts/dist/client/react/form-render.js +1 -0
  14. package/dist/libs/contracts/dist/client/react/index.js +1 -0
  15. package/dist/libs/contracts/dist/events.js +1 -0
  16. package/dist/libs/contracts/dist/experiments/evaluator.js +1 -0
  17. package/dist/libs/contracts/dist/graphql-federation/dist/index.js +1 -0
  18. package/dist/libs/contracts/dist/index.js +1 -0
  19. package/dist/libs/contracts/dist/install.js +1 -0
  20. package/dist/libs/contracts/dist/integrations/contracts.js +1 -0
  21. package/dist/libs/contracts/dist/integrations/index.js +1 -0
  22. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +1 -0
  23. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +1 -0
  24. package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +1 -0
  25. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +1 -0
  26. package/dist/libs/contracts/dist/integrations/openbanking/models.js +1 -0
  27. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +1 -0
  28. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +1 -0
  29. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +1 -0
  30. package/dist/libs/contracts/dist/integrations/providers/gmail.js +1 -0
  31. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +1 -0
  32. package/dist/libs/contracts/dist/integrations/providers/impls/elevenlabs-voice.js +1 -0
  33. package/dist/libs/contracts/dist/integrations/providers/impls/gcs-storage.js +1 -0
  34. package/dist/libs/contracts/dist/integrations/providers/impls/gmail-inbound.js +1 -0
  35. package/dist/libs/contracts/dist/integrations/providers/impls/gmail-outbound.js +1 -0
  36. package/dist/libs/contracts/dist/integrations/providers/impls/google-calendar.js +1 -0
  37. package/dist/libs/contracts/dist/integrations/providers/impls/index.js +1 -0
  38. package/dist/libs/contracts/dist/integrations/providers/impls/mistral-embedding.js +1 -0
  39. package/dist/libs/contracts/dist/integrations/providers/impls/mistral-llm.js +1 -0
  40. package/dist/libs/contracts/dist/integrations/providers/impls/postmark-email.js +1 -0
  41. package/dist/libs/contracts/dist/integrations/providers/impls/powens-client.js +1 -0
  42. package/dist/libs/contracts/dist/integrations/providers/impls/powens-openbanking.js +1 -0
  43. package/dist/libs/contracts/dist/integrations/providers/impls/provider-factory.js +1 -0
  44. package/dist/libs/contracts/dist/integrations/providers/impls/qdrant-vector.js +1 -0
  45. package/dist/libs/contracts/dist/integrations/providers/impls/stripe-payments.js +1 -0
  46. package/dist/libs/contracts/dist/integrations/providers/impls/twilio-sms.js +1 -0
  47. package/dist/libs/contracts/dist/integrations/providers/index.js +1 -0
  48. package/dist/libs/contracts/dist/integrations/providers/mistral.js +1 -0
  49. package/dist/libs/contracts/dist/integrations/providers/postmark.js +1 -0
  50. package/dist/libs/contracts/dist/integrations/providers/powens.js +1 -0
  51. package/dist/libs/contracts/dist/integrations/providers/qdrant.js +1 -0
  52. package/dist/libs/contracts/dist/integrations/providers/stripe.js +1 -0
  53. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +1 -0
  54. package/dist/libs/contracts/dist/integrations/runtime.js +1 -0
  55. package/dist/libs/contracts/dist/integrations/secrets/env-secret-provider.js +1 -0
  56. package/dist/libs/contracts/dist/integrations/secrets/gcp-secret-manager.js +1 -0
  57. package/dist/libs/contracts/dist/integrations/secrets/index.js +1 -0
  58. package/dist/libs/contracts/dist/integrations/secrets/manager.js +1 -0
  59. package/dist/libs/contracts/dist/integrations/secrets/provider.js +1 -0
  60. package/dist/libs/contracts/dist/jsonschema.js +1 -0
  61. package/dist/libs/contracts/dist/knowledge/contracts.js +1 -0
  62. package/dist/libs/contracts/dist/knowledge/index.js +1 -0
  63. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +1 -0
  64. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +1 -0
  65. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +1 -0
  66. package/dist/libs/contracts/dist/knowledge/spaces/index.js +1 -0
  67. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +1 -0
  68. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +1 -0
  69. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +1 -0
  70. package/dist/libs/contracts/dist/onboarding-base.js +1 -0
  71. package/dist/libs/contracts/dist/ownership.js +1 -0
  72. package/dist/libs/contracts/dist/presentations.js +1 -0
  73. package/dist/libs/contracts/dist/presentations.v2.js +1 -0
  74. package/dist/libs/contracts/dist/prompt.js +1 -0
  75. package/dist/libs/contracts/dist/promptRegistry.js +1 -0
  76. package/dist/libs/contracts/dist/regenerator/index.js +1 -0
  77. package/dist/libs/contracts/dist/regenerator/service.js +1 -0
  78. package/dist/libs/contracts/dist/registry.js +1 -0
  79. package/dist/libs/contracts/dist/resources.js +1 -0
  80. package/dist/libs/contracts/dist/schema/dist/EnumType.js +1 -0
  81. package/dist/libs/contracts/dist/schema/dist/FieldType.js +1 -0
  82. package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +1 -0
  83. package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +1 -0
  84. package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +1 -0
  85. package/dist/libs/contracts/dist/schema/dist/entity/index.js +1 -0
  86. package/dist/libs/contracts/dist/schema/dist/entity/types.js +1 -0
  87. package/dist/libs/contracts/dist/schema/dist/index.js +1 -0
  88. package/dist/libs/contracts/dist/server/graphql-pothos.js +1 -0
  89. package/dist/libs/contracts/dist/server/graphql-schema-export.js +1 -0
  90. package/dist/libs/contracts/dist/server/index.js +1 -0
  91. package/dist/libs/contracts/dist/server/provider-mcp.js +1 -0
  92. package/dist/libs/contracts/dist/server/rest-elysia.js +1 -0
  93. package/dist/libs/contracts/dist/server/rest-express.js +1 -0
  94. package/dist/libs/contracts/dist/server/rest-generic.js +1 -0
  95. package/dist/libs/contracts/dist/server/rest-next-app.js +1 -0
  96. package/dist/libs/contracts/dist/server/rest-next-pages.js +1 -0
  97. package/dist/libs/contracts/dist/spec.js +1 -0
  98. package/dist/libs/contracts/dist/telemetry/index.js +1 -0
  99. package/dist/libs/contracts/dist/telemetry/tracker.js +1 -0
  100. package/dist/libs/contracts/dist/tests/index.js +1 -0
  101. package/dist/libs/contracts/dist/tests/runner.js +1 -0
  102. package/dist/libs/contracts/dist/workflow/index.js +1 -0
  103. package/dist/libs/contracts/dist/workflow/runner.js +1 -0
  104. package/dist/libs/schema/dist/EnumType.js +1 -0
  105. package/dist/libs/schema/dist/FieldType.js +1 -0
  106. package/dist/libs/schema/dist/ScalarTypeEnum.js +1 -0
  107. package/dist/libs/schema/dist/SchemaModel.js +1 -0
  108. package/dist/libs/schema/dist/entity/defineEntity.js +1 -0
  109. package/dist/libs/schema/dist/entity/index.js +1 -0
  110. package/dist/libs/schema/dist/entity/types.js +1 -0
  111. package/dist/libs/schema/dist/index.js +1 -0
  112. package/dist/templates/index.d.ts +91 -0
  113. package/dist/templates/index.js +9 -0
  114. package/package.json +46 -0
@@ -0,0 +1,637 @@
1
+ import * as _lssm_lib_schema0 from "@lssm/lib.schema";
2
+ import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
3
+
4
+ //#region src/contracts/index.d.ts
5
+ declare const NotificationFilterEnum: _lssm_lib_schema0.EnumType<[string, string, string]>;
6
+ declare const NotificationModel: _lssm_lib_schema0.SchemaModel<{
7
+ id: {
8
+ type: _lssm_lib_schema0.FieldType<string, string>;
9
+ isOptional: false;
10
+ };
11
+ userId: {
12
+ type: _lssm_lib_schema0.FieldType<string, string>;
13
+ isOptional: false;
14
+ };
15
+ title: {
16
+ type: _lssm_lib_schema0.FieldType<string, string>;
17
+ isOptional: false;
18
+ };
19
+ body: {
20
+ type: _lssm_lib_schema0.FieldType<string, string>;
21
+ isOptional: false;
22
+ };
23
+ type: {
24
+ type: _lssm_lib_schema0.FieldType<string, string>;
25
+ isOptional: false;
26
+ };
27
+ status: {
28
+ type: _lssm_lib_schema0.EnumType<[string, string, string, string, string, string]>;
29
+ isOptional: false;
30
+ };
31
+ channels: {
32
+ type: _lssm_lib_schema0.EnumType<[string, string, string, string]>;
33
+ isArray: true;
34
+ isOptional: false;
35
+ };
36
+ actionUrl: {
37
+ type: _lssm_lib_schema0.FieldType<string, string>;
38
+ isOptional: true;
39
+ };
40
+ readAt: {
41
+ type: _lssm_lib_schema0.FieldType<Date, string>;
42
+ isOptional: true;
43
+ };
44
+ createdAt: {
45
+ type: _lssm_lib_schema0.FieldType<Date, string>;
46
+ isOptional: false;
47
+ };
48
+ }>;
49
+ declare const NotificationPreferenceModel: _lssm_lib_schema0.SchemaModel<{
50
+ userId: {
51
+ type: _lssm_lib_schema0.FieldType<string, string>;
52
+ isOptional: false;
53
+ };
54
+ globalEnabled: {
55
+ type: _lssm_lib_schema0.FieldType<boolean, boolean>;
56
+ isOptional: false;
57
+ };
58
+ channelPreferences: {
59
+ type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
60
+ isOptional: false;
61
+ };
62
+ typePreferences: {
63
+ type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
64
+ isOptional: false;
65
+ };
66
+ quietHoursStart: {
67
+ type: _lssm_lib_schema0.FieldType<string, string>;
68
+ isOptional: true;
69
+ };
70
+ quietHoursEnd: {
71
+ type: _lssm_lib_schema0.FieldType<string, string>;
72
+ isOptional: true;
73
+ };
74
+ timezone: {
75
+ type: _lssm_lib_schema0.FieldType<string, string>;
76
+ isOptional: false;
77
+ };
78
+ digestEnabled: {
79
+ type: _lssm_lib_schema0.FieldType<boolean, boolean>;
80
+ isOptional: false;
81
+ };
82
+ digestFrequency: {
83
+ type: _lssm_lib_schema0.FieldType<string, string>;
84
+ isOptional: true;
85
+ };
86
+ }>;
87
+ declare const SendNotificationInputModel: _lssm_lib_schema0.SchemaModel<{
88
+ userId: {
89
+ type: _lssm_lib_schema0.FieldType<string, string>;
90
+ isOptional: false;
91
+ };
92
+ templateId: {
93
+ type: _lssm_lib_schema0.FieldType<string, string>;
94
+ isOptional: true;
95
+ };
96
+ title: {
97
+ type: _lssm_lib_schema0.FieldType<string, string>;
98
+ isOptional: true;
99
+ };
100
+ body: {
101
+ type: _lssm_lib_schema0.FieldType<string, string>;
102
+ isOptional: true;
103
+ };
104
+ type: {
105
+ type: _lssm_lib_schema0.FieldType<string, string>;
106
+ isOptional: false;
107
+ };
108
+ channels: {
109
+ type: _lssm_lib_schema0.EnumType<[string, string, string, string]>;
110
+ isArray: true;
111
+ isOptional: true;
112
+ };
113
+ actionUrl: {
114
+ type: _lssm_lib_schema0.FieldType<string, string>;
115
+ isOptional: true;
116
+ };
117
+ variables: {
118
+ type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
119
+ isOptional: true;
120
+ };
121
+ metadata: {
122
+ type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
123
+ isOptional: true;
124
+ };
125
+ }>;
126
+ declare const ListNotificationsInputModel: _lssm_lib_schema0.SchemaModel<{
127
+ status: {
128
+ type: _lssm_lib_schema0.EnumType<[string, string, string]>;
129
+ isOptional: true;
130
+ };
131
+ type: {
132
+ type: _lssm_lib_schema0.FieldType<string, string>;
133
+ isOptional: true;
134
+ };
135
+ limit: {
136
+ type: _lssm_lib_schema0.FieldType<number, number>;
137
+ isOptional: true;
138
+ defaultValue: number;
139
+ };
140
+ offset: {
141
+ type: _lssm_lib_schema0.FieldType<number, number>;
142
+ isOptional: true;
143
+ defaultValue: number;
144
+ };
145
+ }>;
146
+ declare const ListNotificationsOutputModel: _lssm_lib_schema0.SchemaModel<{
147
+ notifications: {
148
+ type: _lssm_lib_schema0.SchemaModel<{
149
+ id: {
150
+ type: _lssm_lib_schema0.FieldType<string, string>;
151
+ isOptional: false;
152
+ };
153
+ userId: {
154
+ type: _lssm_lib_schema0.FieldType<string, string>;
155
+ isOptional: false;
156
+ };
157
+ title: {
158
+ type: _lssm_lib_schema0.FieldType<string, string>;
159
+ isOptional: false;
160
+ };
161
+ body: {
162
+ type: _lssm_lib_schema0.FieldType<string, string>;
163
+ isOptional: false;
164
+ };
165
+ type: {
166
+ type: _lssm_lib_schema0.FieldType<string, string>;
167
+ isOptional: false;
168
+ };
169
+ status: {
170
+ type: _lssm_lib_schema0.EnumType<[string, string, string, string, string, string]>;
171
+ isOptional: false;
172
+ };
173
+ channels: {
174
+ type: _lssm_lib_schema0.EnumType<[string, string, string, string]>;
175
+ isArray: true;
176
+ isOptional: false;
177
+ };
178
+ actionUrl: {
179
+ type: _lssm_lib_schema0.FieldType<string, string>;
180
+ isOptional: true;
181
+ };
182
+ readAt: {
183
+ type: _lssm_lib_schema0.FieldType<Date, string>;
184
+ isOptional: true;
185
+ };
186
+ createdAt: {
187
+ type: _lssm_lib_schema0.FieldType<Date, string>;
188
+ isOptional: false;
189
+ };
190
+ }>;
191
+ isArray: true;
192
+ isOptional: false;
193
+ };
194
+ total: {
195
+ type: _lssm_lib_schema0.FieldType<number, number>;
196
+ isOptional: false;
197
+ };
198
+ unreadCount: {
199
+ type: _lssm_lib_schema0.FieldType<number, number>;
200
+ isOptional: false;
201
+ };
202
+ }>;
203
+ declare const UpdatePreferencesInputModel: _lssm_lib_schema0.SchemaModel<{
204
+ globalEnabled: {
205
+ type: _lssm_lib_schema0.FieldType<boolean, boolean>;
206
+ isOptional: true;
207
+ };
208
+ channelPreferences: {
209
+ type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
210
+ isOptional: true;
211
+ };
212
+ typePreferences: {
213
+ type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
214
+ isOptional: true;
215
+ };
216
+ quietHoursStart: {
217
+ type: _lssm_lib_schema0.FieldType<string, string>;
218
+ isOptional: true;
219
+ };
220
+ quietHoursEnd: {
221
+ type: _lssm_lib_schema0.FieldType<string, string>;
222
+ isOptional: true;
223
+ };
224
+ timezone: {
225
+ type: _lssm_lib_schema0.FieldType<string, string>;
226
+ isOptional: true;
227
+ };
228
+ digestEnabled: {
229
+ type: _lssm_lib_schema0.FieldType<boolean, boolean>;
230
+ isOptional: true;
231
+ };
232
+ digestFrequency: {
233
+ type: _lssm_lib_schema0.FieldType<string, string>;
234
+ isOptional: true;
235
+ };
236
+ }>;
237
+ /**
238
+ * Send a notification.
239
+ */
240
+ declare const SendNotificationContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{
241
+ userId: {
242
+ type: _lssm_lib_schema0.FieldType<string, string>;
243
+ isOptional: false;
244
+ };
245
+ templateId: {
246
+ type: _lssm_lib_schema0.FieldType<string, string>;
247
+ isOptional: true;
248
+ };
249
+ title: {
250
+ type: _lssm_lib_schema0.FieldType<string, string>;
251
+ isOptional: true;
252
+ };
253
+ body: {
254
+ type: _lssm_lib_schema0.FieldType<string, string>;
255
+ isOptional: true;
256
+ };
257
+ type: {
258
+ type: _lssm_lib_schema0.FieldType<string, string>;
259
+ isOptional: false;
260
+ };
261
+ channels: {
262
+ type: _lssm_lib_schema0.EnumType<[string, string, string, string]>;
263
+ isArray: true;
264
+ isOptional: true;
265
+ };
266
+ actionUrl: {
267
+ type: _lssm_lib_schema0.FieldType<string, string>;
268
+ isOptional: true;
269
+ };
270
+ variables: {
271
+ type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
272
+ isOptional: true;
273
+ };
274
+ metadata: {
275
+ type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
276
+ isOptional: true;
277
+ };
278
+ }>, _lssm_lib_schema0.SchemaModel<{
279
+ id: {
280
+ type: _lssm_lib_schema0.FieldType<string, string>;
281
+ isOptional: false;
282
+ };
283
+ userId: {
284
+ type: _lssm_lib_schema0.FieldType<string, string>;
285
+ isOptional: false;
286
+ };
287
+ title: {
288
+ type: _lssm_lib_schema0.FieldType<string, string>;
289
+ isOptional: false;
290
+ };
291
+ body: {
292
+ type: _lssm_lib_schema0.FieldType<string, string>;
293
+ isOptional: false;
294
+ };
295
+ type: {
296
+ type: _lssm_lib_schema0.FieldType<string, string>;
297
+ isOptional: false;
298
+ };
299
+ status: {
300
+ type: _lssm_lib_schema0.EnumType<[string, string, string, string, string, string]>;
301
+ isOptional: false;
302
+ };
303
+ channels: {
304
+ type: _lssm_lib_schema0.EnumType<[string, string, string, string]>;
305
+ isArray: true;
306
+ isOptional: false;
307
+ };
308
+ actionUrl: {
309
+ type: _lssm_lib_schema0.FieldType<string, string>;
310
+ isOptional: true;
311
+ };
312
+ readAt: {
313
+ type: _lssm_lib_schema0.FieldType<Date, string>;
314
+ isOptional: true;
315
+ };
316
+ createdAt: {
317
+ type: _lssm_lib_schema0.FieldType<Date, string>;
318
+ isOptional: false;
319
+ };
320
+ }>, {
321
+ name: string;
322
+ version: number;
323
+ when: string;
324
+ payload: _lssm_lib_schema0.SchemaModel<{
325
+ id: {
326
+ type: _lssm_lib_schema0.FieldType<string, string>;
327
+ isOptional: false;
328
+ };
329
+ userId: {
330
+ type: _lssm_lib_schema0.FieldType<string, string>;
331
+ isOptional: false;
332
+ };
333
+ title: {
334
+ type: _lssm_lib_schema0.FieldType<string, string>;
335
+ isOptional: false;
336
+ };
337
+ body: {
338
+ type: _lssm_lib_schema0.FieldType<string, string>;
339
+ isOptional: false;
340
+ };
341
+ type: {
342
+ type: _lssm_lib_schema0.FieldType<string, string>;
343
+ isOptional: false;
344
+ };
345
+ status: {
346
+ type: _lssm_lib_schema0.EnumType<[string, string, string, string, string, string]>;
347
+ isOptional: false;
348
+ };
349
+ channels: {
350
+ type: _lssm_lib_schema0.EnumType<[string, string, string, string]>;
351
+ isArray: true;
352
+ isOptional: false;
353
+ };
354
+ actionUrl: {
355
+ type: _lssm_lib_schema0.FieldType<string, string>;
356
+ isOptional: true;
357
+ };
358
+ readAt: {
359
+ type: _lssm_lib_schema0.FieldType<Date, string>;
360
+ isOptional: true;
361
+ };
362
+ createdAt: {
363
+ type: _lssm_lib_schema0.FieldType<Date, string>;
364
+ isOptional: false;
365
+ };
366
+ }>;
367
+ }[]>;
368
+ /**
369
+ * List notifications for current user.
370
+ */
371
+ declare const ListNotificationsContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{
372
+ status: {
373
+ type: _lssm_lib_schema0.EnumType<[string, string, string]>;
374
+ isOptional: true;
375
+ };
376
+ type: {
377
+ type: _lssm_lib_schema0.FieldType<string, string>;
378
+ isOptional: true;
379
+ };
380
+ limit: {
381
+ type: _lssm_lib_schema0.FieldType<number, number>;
382
+ isOptional: true;
383
+ defaultValue: number;
384
+ };
385
+ offset: {
386
+ type: _lssm_lib_schema0.FieldType<number, number>;
387
+ isOptional: true;
388
+ defaultValue: number;
389
+ };
390
+ }>, _lssm_lib_schema0.SchemaModel<{
391
+ notifications: {
392
+ type: _lssm_lib_schema0.SchemaModel<{
393
+ id: {
394
+ type: _lssm_lib_schema0.FieldType<string, string>;
395
+ isOptional: false;
396
+ };
397
+ userId: {
398
+ type: _lssm_lib_schema0.FieldType<string, string>;
399
+ isOptional: false;
400
+ };
401
+ title: {
402
+ type: _lssm_lib_schema0.FieldType<string, string>;
403
+ isOptional: false;
404
+ };
405
+ body: {
406
+ type: _lssm_lib_schema0.FieldType<string, string>;
407
+ isOptional: false;
408
+ };
409
+ type: {
410
+ type: _lssm_lib_schema0.FieldType<string, string>;
411
+ isOptional: false;
412
+ };
413
+ status: {
414
+ type: _lssm_lib_schema0.EnumType<[string, string, string, string, string, string]>;
415
+ isOptional: false;
416
+ };
417
+ channels: {
418
+ type: _lssm_lib_schema0.EnumType<[string, string, string, string]>;
419
+ isArray: true;
420
+ isOptional: false;
421
+ };
422
+ actionUrl: {
423
+ type: _lssm_lib_schema0.FieldType<string, string>;
424
+ isOptional: true;
425
+ };
426
+ readAt: {
427
+ type: _lssm_lib_schema0.FieldType<Date, string>;
428
+ isOptional: true;
429
+ };
430
+ createdAt: {
431
+ type: _lssm_lib_schema0.FieldType<Date, string>;
432
+ isOptional: false;
433
+ };
434
+ }>;
435
+ isArray: true;
436
+ isOptional: false;
437
+ };
438
+ total: {
439
+ type: _lssm_lib_schema0.FieldType<number, number>;
440
+ isOptional: false;
441
+ };
442
+ unreadCount: {
443
+ type: _lssm_lib_schema0.FieldType<number, number>;
444
+ isOptional: false;
445
+ };
446
+ }>, undefined>;
447
+ /**
448
+ * Mark notification as read.
449
+ */
450
+ declare const MarkNotificationReadContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{
451
+ notificationId: {
452
+ type: _lssm_lib_schema0.FieldType<string, string>;
453
+ isOptional: false;
454
+ };
455
+ }>, _lssm_lib_schema0.SchemaModel<{
456
+ id: {
457
+ type: _lssm_lib_schema0.FieldType<string, string>;
458
+ isOptional: false;
459
+ };
460
+ userId: {
461
+ type: _lssm_lib_schema0.FieldType<string, string>;
462
+ isOptional: false;
463
+ };
464
+ title: {
465
+ type: _lssm_lib_schema0.FieldType<string, string>;
466
+ isOptional: false;
467
+ };
468
+ body: {
469
+ type: _lssm_lib_schema0.FieldType<string, string>;
470
+ isOptional: false;
471
+ };
472
+ type: {
473
+ type: _lssm_lib_schema0.FieldType<string, string>;
474
+ isOptional: false;
475
+ };
476
+ status: {
477
+ type: _lssm_lib_schema0.EnumType<[string, string, string, string, string, string]>;
478
+ isOptional: false;
479
+ };
480
+ channels: {
481
+ type: _lssm_lib_schema0.EnumType<[string, string, string, string]>;
482
+ isArray: true;
483
+ isOptional: false;
484
+ };
485
+ actionUrl: {
486
+ type: _lssm_lib_schema0.FieldType<string, string>;
487
+ isOptional: true;
488
+ };
489
+ readAt: {
490
+ type: _lssm_lib_schema0.FieldType<Date, string>;
491
+ isOptional: true;
492
+ };
493
+ createdAt: {
494
+ type: _lssm_lib_schema0.FieldType<Date, string>;
495
+ isOptional: false;
496
+ };
497
+ }>, undefined>;
498
+ /**
499
+ * Mark all notifications as read.
500
+ */
501
+ declare const MarkAllNotificationsReadContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.AnySchemaModel, _lssm_lib_schema0.SchemaModel<{
502
+ markedCount: {
503
+ type: _lssm_lib_schema0.FieldType<number, number>;
504
+ isOptional: false;
505
+ };
506
+ }>, undefined>;
507
+ /**
508
+ * Get notification preferences.
509
+ */
510
+ declare const GetNotificationPreferencesContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.AnySchemaModel, _lssm_lib_schema0.SchemaModel<{
511
+ userId: {
512
+ type: _lssm_lib_schema0.FieldType<string, string>;
513
+ isOptional: false;
514
+ };
515
+ globalEnabled: {
516
+ type: _lssm_lib_schema0.FieldType<boolean, boolean>;
517
+ isOptional: false;
518
+ };
519
+ channelPreferences: {
520
+ type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
521
+ isOptional: false;
522
+ };
523
+ typePreferences: {
524
+ type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
525
+ isOptional: false;
526
+ };
527
+ quietHoursStart: {
528
+ type: _lssm_lib_schema0.FieldType<string, string>;
529
+ isOptional: true;
530
+ };
531
+ quietHoursEnd: {
532
+ type: _lssm_lib_schema0.FieldType<string, string>;
533
+ isOptional: true;
534
+ };
535
+ timezone: {
536
+ type: _lssm_lib_schema0.FieldType<string, string>;
537
+ isOptional: false;
538
+ };
539
+ digestEnabled: {
540
+ type: _lssm_lib_schema0.FieldType<boolean, boolean>;
541
+ isOptional: false;
542
+ };
543
+ digestFrequency: {
544
+ type: _lssm_lib_schema0.FieldType<string, string>;
545
+ isOptional: true;
546
+ };
547
+ }>, undefined>;
548
+ /**
549
+ * Update notification preferences.
550
+ */
551
+ declare const UpdateNotificationPreferencesContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{
552
+ globalEnabled: {
553
+ type: _lssm_lib_schema0.FieldType<boolean, boolean>;
554
+ isOptional: true;
555
+ };
556
+ channelPreferences: {
557
+ type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
558
+ isOptional: true;
559
+ };
560
+ typePreferences: {
561
+ type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
562
+ isOptional: true;
563
+ };
564
+ quietHoursStart: {
565
+ type: _lssm_lib_schema0.FieldType<string, string>;
566
+ isOptional: true;
567
+ };
568
+ quietHoursEnd: {
569
+ type: _lssm_lib_schema0.FieldType<string, string>;
570
+ isOptional: true;
571
+ };
572
+ timezone: {
573
+ type: _lssm_lib_schema0.FieldType<string, string>;
574
+ isOptional: true;
575
+ };
576
+ digestEnabled: {
577
+ type: _lssm_lib_schema0.FieldType<boolean, boolean>;
578
+ isOptional: true;
579
+ };
580
+ digestFrequency: {
581
+ type: _lssm_lib_schema0.FieldType<string, string>;
582
+ isOptional: true;
583
+ };
584
+ }>, _lssm_lib_schema0.SchemaModel<{
585
+ userId: {
586
+ type: _lssm_lib_schema0.FieldType<string, string>;
587
+ isOptional: false;
588
+ };
589
+ globalEnabled: {
590
+ type: _lssm_lib_schema0.FieldType<boolean, boolean>;
591
+ isOptional: false;
592
+ };
593
+ channelPreferences: {
594
+ type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
595
+ isOptional: false;
596
+ };
597
+ typePreferences: {
598
+ type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
599
+ isOptional: false;
600
+ };
601
+ quietHoursStart: {
602
+ type: _lssm_lib_schema0.FieldType<string, string>;
603
+ isOptional: true;
604
+ };
605
+ quietHoursEnd: {
606
+ type: _lssm_lib_schema0.FieldType<string, string>;
607
+ isOptional: true;
608
+ };
609
+ timezone: {
610
+ type: _lssm_lib_schema0.FieldType<string, string>;
611
+ isOptional: false;
612
+ };
613
+ digestEnabled: {
614
+ type: _lssm_lib_schema0.FieldType<boolean, boolean>;
615
+ isOptional: false;
616
+ };
617
+ digestFrequency: {
618
+ type: _lssm_lib_schema0.FieldType<string, string>;
619
+ isOptional: true;
620
+ };
621
+ }>, undefined>;
622
+ /**
623
+ * Delete a notification.
624
+ */
625
+ declare const DeleteNotificationContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{
626
+ notificationId: {
627
+ type: _lssm_lib_schema0.FieldType<string, string>;
628
+ isOptional: false;
629
+ };
630
+ }>, _lssm_lib_schema0.SchemaModel<{
631
+ success: {
632
+ type: _lssm_lib_schema0.FieldType<boolean, boolean>;
633
+ isOptional: false;
634
+ };
635
+ }>, undefined>;
636
+ //#endregion
637
+ export { DeleteNotificationContract, GetNotificationPreferencesContract, ListNotificationsContract, ListNotificationsInputModel, ListNotificationsOutputModel, MarkAllNotificationsReadContract, MarkNotificationReadContract, NotificationFilterEnum, NotificationModel, NotificationPreferenceModel, SendNotificationContract, SendNotificationInputModel, UpdateNotificationPreferencesContract, UpdatePreferencesInputModel };
@@ -0,0 +1 @@
1
+ import{r as e}from"../libs/schema/dist/EnumType.js";import{l as t}from"../libs/schema/dist/ScalarTypeEnum.js";import"../libs/schema/dist/index.js";import{n}from"../libs/contracts/dist/schema/dist/SchemaModel.js";import{n as r,t as i}from"../libs/contracts/dist/spec.js";import"../libs/contracts/dist/index.js";const a=[`platform.notifications`],o=e(`NotificationStatus`,[`PENDING`,`SENT`,`DELIVERED`,`READ`,`FAILED`,`CANCELLED`]),s=e(`NotificationChannel`,[`EMAIL`,`IN_APP`,`PUSH`,`WEBHOOK`]),c=e(`NotificationFilter`,[`unread`,`read`,`all`]),l=n({name:`Notification`,description:`A notification sent to a user`,fields:{id:{type:t.String_unsecure(),isOptional:!1},userId:{type:t.String_unsecure(),isOptional:!1},title:{type:t.String_unsecure(),isOptional:!1},body:{type:t.String_unsecure(),isOptional:!1},type:{type:t.String_unsecure(),isOptional:!1},status:{type:o,isOptional:!1},channels:{type:s,isArray:!0,isOptional:!1},actionUrl:{type:t.URL(),isOptional:!0},readAt:{type:t.DateTime(),isOptional:!0},createdAt:{type:t.DateTime(),isOptional:!1}}}),u=n({name:`NotificationPreference`,description:`User notification preferences`,fields:{userId:{type:t.String_unsecure(),isOptional:!1},globalEnabled:{type:t.Boolean(),isOptional:!1},channelPreferences:{type:t.JSONObject(),isOptional:!1},typePreferences:{type:t.JSONObject(),isOptional:!1},quietHoursStart:{type:t.String_unsecure(),isOptional:!0},quietHoursEnd:{type:t.String_unsecure(),isOptional:!0},timezone:{type:t.String_unsecure(),isOptional:!1},digestEnabled:{type:t.Boolean(),isOptional:!1},digestFrequency:{type:t.String_unsecure(),isOptional:!0}}}),d=n({name:`SendNotificationInput`,description:`Input for sending a notification`,fields:{userId:{type:t.String_unsecure(),isOptional:!1},templateId:{type:t.String_unsecure(),isOptional:!0},title:{type:t.String_unsecure(),isOptional:!0},body:{type:t.String_unsecure(),isOptional:!0},type:{type:t.String_unsecure(),isOptional:!1},channels:{type:s,isArray:!0,isOptional:!0},actionUrl:{type:t.URL(),isOptional:!0},variables:{type:t.JSONObject(),isOptional:!0},metadata:{type:t.JSONObject(),isOptional:!0}}}),f=n({name:`ListNotificationsInput`,description:`Input for listing notifications`,fields:{status:{type:c,isOptional:!0},type:{type:t.String_unsecure(),isOptional:!0},limit:{type:t.Int_unsecure(),isOptional:!0,defaultValue:20},offset:{type:t.Int_unsecure(),isOptional:!0,defaultValue:0}}}),p=n({name:`ListNotificationsOutput`,description:`Output for listing notifications`,fields:{notifications:{type:l,isArray:!0,isOptional:!1},total:{type:t.Int_unsecure(),isOptional:!1},unreadCount:{type:t.Int_unsecure(),isOptional:!1}}}),m=n({name:`UpdateNotificationPreferencesInput`,description:`Input for updating notification preferences`,fields:{globalEnabled:{type:t.Boolean(),isOptional:!0},channelPreferences:{type:t.JSONObject(),isOptional:!0},typePreferences:{type:t.JSONObject(),isOptional:!0},quietHoursStart:{type:t.String_unsecure(),isOptional:!0},quietHoursEnd:{type:t.String_unsecure(),isOptional:!0},timezone:{type:t.String_unsecure(),isOptional:!0},digestEnabled:{type:t.Boolean(),isOptional:!0},digestFrequency:{type:t.String_unsecure(),isOptional:!0}}}),h=i({meta:{name:`notifications.send`,version:1,stability:`stable`,owners:[...a],tags:[`notifications`,`send`],description:`Send a notification to a user.`,goal:`Deliver notifications across multiple channels.`,context:`Called by services when events require user notification.`},io:{input:d,output:l,errors:{USER_NOT_FOUND:{description:`Target user does not exist`,http:404,gqlCode:`USER_NOT_FOUND`,when:`User ID is invalid`},TEMPLATE_NOT_FOUND:{description:`Notification template does not exist`,http:404,gqlCode:`TEMPLATE_NOT_FOUND`,when:`Template ID is invalid`}}},policy:{auth:`user`},sideEffects:{emits:[{name:`notification.sent`,version:1,when:`Notification is sent`,payload:l}]}}),g=r({meta:{name:`notifications.list`,version:1,stability:`stable`,owners:[...a],tags:[`notifications`,`list`],description:`List notifications for the current user.`,goal:`Show user their notifications.`,context:`Notification center UI.`},io:{input:f,output:p},policy:{auth:`user`}}),_=i({meta:{name:`notifications.markRead`,version:1,stability:`stable`,owners:[...a],tags:[`notifications`,`read`],description:`Mark a notification as read.`,goal:`Track which notifications user has seen.`,context:`User clicks on a notification.`},io:{input:n({name:`MarkNotificationReadInput`,fields:{notificationId:{type:t.String_unsecure(),isOptional:!1}}}),output:l},policy:{auth:`user`}}),v=i({meta:{name:`notifications.markAllRead`,version:1,stability:`stable`,owners:[...a],tags:[`notifications`,`read`],description:`Mark all notifications as read.`,goal:`Clear notification badge.`,context:`User clicks "mark all as read".`},io:{input:null,output:n({name:`MarkAllNotificationsReadOutput`,fields:{markedCount:{type:t.Int_unsecure(),isOptional:!1}}})},policy:{auth:`user`}}),y=r({meta:{name:`notifications.preferences.get`,version:1,stability:`stable`,owners:[...a],tags:[`notifications`,`preferences`,`get`],description:`Get notification preferences for current user.`,goal:`Show user their notification settings.`,context:`Notification settings page.`},io:{input:null,output:u},policy:{auth:`user`}}),b=i({meta:{name:`notifications.preferences.update`,version:1,stability:`stable`,owners:[...a],tags:[`notifications`,`preferences`,`update`],description:`Update notification preferences.`,goal:`Allow user to control notification delivery.`,context:`Notification settings page.`},io:{input:m,output:u},policy:{auth:`user`}}),x=i({meta:{name:`notifications.delete`,version:1,stability:`stable`,owners:[...a],tags:[`notifications`,`delete`],description:`Delete a notification.`,goal:`Allow user to remove unwanted notifications.`,context:`User dismisses a notification.`},io:{input:n({name:`DeleteNotificationInput`,fields:{notificationId:{type:t.String_unsecure(),isOptional:!1}}}),output:n({name:`DeleteNotificationOutput`,fields:{success:{type:t.Boolean(),isOptional:!1}}})},policy:{auth:`user`}});export{x as DeleteNotificationContract,y as GetNotificationPreferencesContract,g as ListNotificationsContract,f as ListNotificationsInputModel,p as ListNotificationsOutputModel,v as MarkAllNotificationsReadContract,_ as MarkNotificationReadContract,c as NotificationFilterEnum,l as NotificationModel,u as NotificationPreferenceModel,h as SendNotificationContract,d as SendNotificationInputModel,b as UpdateNotificationPreferencesContract,m as UpdatePreferencesInputModel};