@lssm/lib.identity-rbac 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 (128) hide show
  1. package/README.md +99 -0
  2. package/dist/contracts/dist/capabilities/openbanking.js +1 -0
  3. package/dist/contracts/dist/client/index.js +1 -0
  4. package/dist/contracts/dist/client/react/feature-render.js +1 -0
  5. package/dist/contracts/dist/client/react/form-render.js +1 -0
  6. package/dist/contracts/dist/client/react/index.js +1 -0
  7. package/dist/contracts/dist/events.js +1 -0
  8. package/dist/contracts/dist/experiments/evaluator.js +1 -0
  9. package/dist/contracts/dist/graphql-federation/dist/index.js +1 -0
  10. package/dist/contracts/dist/index.js +1 -0
  11. package/dist/contracts/dist/install.js +1 -0
  12. package/dist/contracts/dist/integrations/contracts.js +1 -0
  13. package/dist/contracts/dist/integrations/index.js +1 -0
  14. package/dist/contracts/dist/integrations/openbanking/contracts/accounts.js +1 -0
  15. package/dist/contracts/dist/integrations/openbanking/contracts/balances.js +1 -0
  16. package/dist/contracts/dist/integrations/openbanking/contracts/index.js +1 -0
  17. package/dist/contracts/dist/integrations/openbanking/contracts/transactions.js +1 -0
  18. package/dist/contracts/dist/integrations/openbanking/models.js +1 -0
  19. package/dist/contracts/dist/integrations/openbanking/telemetry.js +1 -0
  20. package/dist/contracts/dist/integrations/providers/elevenlabs.js +1 -0
  21. package/dist/contracts/dist/integrations/providers/gcs-storage.js +1 -0
  22. package/dist/contracts/dist/integrations/providers/gmail.js +1 -0
  23. package/dist/contracts/dist/integrations/providers/google-calendar.js +1 -0
  24. package/dist/contracts/dist/integrations/providers/impls/elevenlabs-voice.js +1 -0
  25. package/dist/contracts/dist/integrations/providers/impls/gcs-storage.js +1 -0
  26. package/dist/contracts/dist/integrations/providers/impls/gmail-inbound.js +1 -0
  27. package/dist/contracts/dist/integrations/providers/impls/gmail-outbound.js +1 -0
  28. package/dist/contracts/dist/integrations/providers/impls/google-calendar.js +1 -0
  29. package/dist/contracts/dist/integrations/providers/impls/index.js +1 -0
  30. package/dist/contracts/dist/integrations/providers/impls/mistral-embedding.js +1 -0
  31. package/dist/contracts/dist/integrations/providers/impls/mistral-llm.js +1 -0
  32. package/dist/contracts/dist/integrations/providers/impls/postmark-email.js +1 -0
  33. package/dist/contracts/dist/integrations/providers/impls/powens-client.js +1 -0
  34. package/dist/contracts/dist/integrations/providers/impls/powens-openbanking.js +1 -0
  35. package/dist/contracts/dist/integrations/providers/impls/provider-factory.js +1 -0
  36. package/dist/contracts/dist/integrations/providers/impls/qdrant-vector.js +1 -0
  37. package/dist/contracts/dist/integrations/providers/impls/stripe-payments.js +1 -0
  38. package/dist/contracts/dist/integrations/providers/impls/twilio-sms.js +1 -0
  39. package/dist/contracts/dist/integrations/providers/index.js +1 -0
  40. package/dist/contracts/dist/integrations/providers/mistral.js +1 -0
  41. package/dist/contracts/dist/integrations/providers/postmark.js +1 -0
  42. package/dist/contracts/dist/integrations/providers/powens.js +1 -0
  43. package/dist/contracts/dist/integrations/providers/qdrant.js +1 -0
  44. package/dist/contracts/dist/integrations/providers/stripe.js +1 -0
  45. package/dist/contracts/dist/integrations/providers/twilio-sms.js +1 -0
  46. package/dist/contracts/dist/integrations/runtime.js +1 -0
  47. package/dist/contracts/dist/integrations/secrets/env-secret-provider.js +1 -0
  48. package/dist/contracts/dist/integrations/secrets/gcp-secret-manager.js +1 -0
  49. package/dist/contracts/dist/integrations/secrets/index.js +1 -0
  50. package/dist/contracts/dist/integrations/secrets/manager.js +1 -0
  51. package/dist/contracts/dist/integrations/secrets/provider.js +1 -0
  52. package/dist/contracts/dist/jsonschema.js +1 -0
  53. package/dist/contracts/dist/knowledge/contracts.js +1 -0
  54. package/dist/contracts/dist/knowledge/index.js +1 -0
  55. package/dist/contracts/dist/knowledge/spaces/email-threads.js +1 -0
  56. package/dist/contracts/dist/knowledge/spaces/financial-docs.js +1 -0
  57. package/dist/contracts/dist/knowledge/spaces/financial-overview.js +1 -0
  58. package/dist/contracts/dist/knowledge/spaces/index.js +1 -0
  59. package/dist/contracts/dist/knowledge/spaces/product-canon.js +1 -0
  60. package/dist/contracts/dist/knowledge/spaces/support-faq.js +1 -0
  61. package/dist/contracts/dist/knowledge/spaces/uploaded-docs.js +1 -0
  62. package/dist/contracts/dist/onboarding-base.js +1 -0
  63. package/dist/contracts/dist/ownership.js +1 -0
  64. package/dist/contracts/dist/presentations.js +1 -0
  65. package/dist/contracts/dist/presentations.v2.js +1 -0
  66. package/dist/contracts/dist/prompt.js +1 -0
  67. package/dist/contracts/dist/promptRegistry.js +1 -0
  68. package/dist/contracts/dist/regenerator/index.js +1 -0
  69. package/dist/contracts/dist/regenerator/service.js +1 -0
  70. package/dist/contracts/dist/registry.js +1 -0
  71. package/dist/contracts/dist/resources.js +1 -0
  72. package/dist/contracts/dist/schema/dist/EnumType.js +1 -0
  73. package/dist/contracts/dist/schema/dist/FieldType.js +1 -0
  74. package/dist/contracts/dist/schema/dist/ScalarTypeEnum.js +1 -0
  75. package/dist/contracts/dist/schema/dist/SchemaModel.js +1 -0
  76. package/dist/contracts/dist/schema/dist/entity/defineEntity.js +1 -0
  77. package/dist/contracts/dist/schema/dist/entity/index.js +1 -0
  78. package/dist/contracts/dist/schema/dist/entity/types.js +1 -0
  79. package/dist/contracts/dist/schema/dist/index.js +1 -0
  80. package/dist/contracts/dist/server/graphql-pothos.js +1 -0
  81. package/dist/contracts/dist/server/graphql-schema-export.js +1 -0
  82. package/dist/contracts/dist/server/index.js +1 -0
  83. package/dist/contracts/dist/server/provider-mcp.js +1 -0
  84. package/dist/contracts/dist/server/rest-elysia.js +1 -0
  85. package/dist/contracts/dist/server/rest-express.js +1 -0
  86. package/dist/contracts/dist/server/rest-generic.js +1 -0
  87. package/dist/contracts/dist/server/rest-next-app.js +1 -0
  88. package/dist/contracts/dist/server/rest-next-pages.js +1 -0
  89. package/dist/contracts/dist/spec.js +1 -0
  90. package/dist/contracts/dist/telemetry/index.js +1 -0
  91. package/dist/contracts/dist/telemetry/tracker.js +1 -0
  92. package/dist/contracts/dist/tests/index.js +1 -0
  93. package/dist/contracts/dist/tests/runner.js +1 -0
  94. package/dist/contracts/dist/workflow/index.js +1 -0
  95. package/dist/contracts/dist/workflow/runner.js +1 -0
  96. package/dist/contracts/index.d.ts +4 -0
  97. package/dist/contracts/index.js +1 -0
  98. package/dist/contracts/organization.d.ts +895 -0
  99. package/dist/contracts/organization.js +1 -0
  100. package/dist/contracts/rbac.d.ts +611 -0
  101. package/dist/contracts/rbac.js +1 -0
  102. package/dist/contracts/user.d.ts +610 -0
  103. package/dist/contracts/user.js +1 -0
  104. package/dist/entities/index.d.ts +176 -0
  105. package/dist/entities/index.js +1 -0
  106. package/dist/entities/organization.d.ts +86 -0
  107. package/dist/entities/organization.js +1 -0
  108. package/dist/entities/rbac.d.ts +87 -0
  109. package/dist/entities/rbac.js +1 -0
  110. package/dist/entities/user.d.ts +87 -0
  111. package/dist/entities/user.js +1 -0
  112. package/dist/events.d.ts +689 -0
  113. package/dist/events.js +1 -0
  114. package/dist/index.d.ts +10 -0
  115. package/dist/index.js +1 -0
  116. package/dist/policies/engine.d.ts +132 -0
  117. package/dist/policies/engine.js +1 -0
  118. package/dist/policies/index.d.ts +2 -0
  119. package/dist/policies/index.js +1 -0
  120. package/dist/schema/dist/EnumType.js +1 -0
  121. package/dist/schema/dist/FieldType.js +1 -0
  122. package/dist/schema/dist/ScalarTypeEnum.js +1 -0
  123. package/dist/schema/dist/SchemaModel.js +1 -0
  124. package/dist/schema/dist/entity/defineEntity.js +1 -0
  125. package/dist/schema/dist/entity/index.js +1 -0
  126. package/dist/schema/dist/entity/types.js +1 -0
  127. package/dist/schema/dist/index.js +1 -0
  128. package/package.json +52 -0
@@ -0,0 +1,610 @@
1
+ import * as _lssm_lib_schema541 from "@lssm/lib.schema";
2
+ import { SchemaModel } from "@lssm/lib.schema";
3
+ import * as _lssm_lib_contracts37 from "@lssm/lib.contracts";
4
+
5
+ //#region src/contracts/user.d.ts
6
+ declare const UserProfileModel: SchemaModel<{
7
+ id: {
8
+ type: _lssm_lib_schema541.FieldType<string, string>;
9
+ isOptional: false;
10
+ };
11
+ email: {
12
+ type: _lssm_lib_schema541.FieldType<string, string>;
13
+ isOptional: false;
14
+ };
15
+ emailVerified: {
16
+ type: _lssm_lib_schema541.FieldType<boolean, boolean>;
17
+ isOptional: false;
18
+ };
19
+ name: {
20
+ type: _lssm_lib_schema541.FieldType<string, string>;
21
+ isOptional: true;
22
+ };
23
+ firstName: {
24
+ type: _lssm_lib_schema541.FieldType<string, string>;
25
+ isOptional: true;
26
+ };
27
+ lastName: {
28
+ type: _lssm_lib_schema541.FieldType<string, string>;
29
+ isOptional: true;
30
+ };
31
+ locale: {
32
+ type: _lssm_lib_schema541.FieldType<string, string>;
33
+ isOptional: true;
34
+ };
35
+ timezone: {
36
+ type: _lssm_lib_schema541.FieldType<string, string>;
37
+ isOptional: true;
38
+ };
39
+ imageUrl: {
40
+ type: _lssm_lib_schema541.FieldType<string, string>;
41
+ isOptional: true;
42
+ };
43
+ role: {
44
+ type: _lssm_lib_schema541.FieldType<string, string>;
45
+ isOptional: true;
46
+ };
47
+ onboardingCompleted: {
48
+ type: _lssm_lib_schema541.FieldType<boolean, boolean>;
49
+ isOptional: false;
50
+ };
51
+ createdAt: {
52
+ type: _lssm_lib_schema541.FieldType<Date, string>;
53
+ isOptional: false;
54
+ };
55
+ }>;
56
+ declare const CreateUserInputModel: SchemaModel<{
57
+ email: {
58
+ type: _lssm_lib_schema541.FieldType<string, string>;
59
+ isOptional: false;
60
+ };
61
+ name: {
62
+ type: _lssm_lib_schema541.FieldType<string, string>;
63
+ isOptional: true;
64
+ };
65
+ firstName: {
66
+ type: _lssm_lib_schema541.FieldType<string, string>;
67
+ isOptional: true;
68
+ };
69
+ lastName: {
70
+ type: _lssm_lib_schema541.FieldType<string, string>;
71
+ isOptional: true;
72
+ };
73
+ password: {
74
+ type: _lssm_lib_schema541.FieldType<string, string>;
75
+ isOptional: true;
76
+ };
77
+ }>;
78
+ declare const UpdateUserInputModel: SchemaModel<{
79
+ name: {
80
+ type: _lssm_lib_schema541.FieldType<string, string>;
81
+ isOptional: true;
82
+ };
83
+ firstName: {
84
+ type: _lssm_lib_schema541.FieldType<string, string>;
85
+ isOptional: true;
86
+ };
87
+ lastName: {
88
+ type: _lssm_lib_schema541.FieldType<string, string>;
89
+ isOptional: true;
90
+ };
91
+ locale: {
92
+ type: _lssm_lib_schema541.FieldType<string, string>;
93
+ isOptional: true;
94
+ };
95
+ timezone: {
96
+ type: _lssm_lib_schema541.FieldType<string, string>;
97
+ isOptional: true;
98
+ };
99
+ imageUrl: {
100
+ type: _lssm_lib_schema541.FieldType<string, string>;
101
+ isOptional: true;
102
+ };
103
+ }>;
104
+ declare const DeleteUserInputModel: SchemaModel<{
105
+ confirmEmail: {
106
+ type: _lssm_lib_schema541.FieldType<string, string>;
107
+ isOptional: false;
108
+ };
109
+ }>;
110
+ declare const SuccessResultModel: SchemaModel<{
111
+ success: {
112
+ type: _lssm_lib_schema541.FieldType<boolean, boolean>;
113
+ isOptional: false;
114
+ };
115
+ }>;
116
+ declare const UserDeletedPayloadModel: SchemaModel<{
117
+ userId: {
118
+ type: _lssm_lib_schema541.FieldType<string, string>;
119
+ isOptional: false;
120
+ };
121
+ }>;
122
+ declare const ListUsersInputModel: SchemaModel<{
123
+ limit: {
124
+ type: _lssm_lib_schema541.FieldType<number, number>;
125
+ isOptional: true;
126
+ };
127
+ offset: {
128
+ type: _lssm_lib_schema541.FieldType<number, number>;
129
+ isOptional: true;
130
+ };
131
+ search: {
132
+ type: _lssm_lib_schema541.FieldType<string, string>;
133
+ isOptional: true;
134
+ };
135
+ }>;
136
+ declare const ListUsersOutputModel: SchemaModel<{
137
+ users: {
138
+ type: SchemaModel<{
139
+ id: {
140
+ type: _lssm_lib_schema541.FieldType<string, string>;
141
+ isOptional: false;
142
+ };
143
+ email: {
144
+ type: _lssm_lib_schema541.FieldType<string, string>;
145
+ isOptional: false;
146
+ };
147
+ emailVerified: {
148
+ type: _lssm_lib_schema541.FieldType<boolean, boolean>;
149
+ isOptional: false;
150
+ };
151
+ name: {
152
+ type: _lssm_lib_schema541.FieldType<string, string>;
153
+ isOptional: true;
154
+ };
155
+ firstName: {
156
+ type: _lssm_lib_schema541.FieldType<string, string>;
157
+ isOptional: true;
158
+ };
159
+ lastName: {
160
+ type: _lssm_lib_schema541.FieldType<string, string>;
161
+ isOptional: true;
162
+ };
163
+ locale: {
164
+ type: _lssm_lib_schema541.FieldType<string, string>;
165
+ isOptional: true;
166
+ };
167
+ timezone: {
168
+ type: _lssm_lib_schema541.FieldType<string, string>;
169
+ isOptional: true;
170
+ };
171
+ imageUrl: {
172
+ type: _lssm_lib_schema541.FieldType<string, string>;
173
+ isOptional: true;
174
+ };
175
+ role: {
176
+ type: _lssm_lib_schema541.FieldType<string, string>;
177
+ isOptional: true;
178
+ };
179
+ onboardingCompleted: {
180
+ type: _lssm_lib_schema541.FieldType<boolean, boolean>;
181
+ isOptional: false;
182
+ };
183
+ createdAt: {
184
+ type: _lssm_lib_schema541.FieldType<Date, string>;
185
+ isOptional: false;
186
+ };
187
+ }>;
188
+ isOptional: false;
189
+ isArray: true;
190
+ };
191
+ total: {
192
+ type: _lssm_lib_schema541.FieldType<number, number>;
193
+ isOptional: false;
194
+ };
195
+ }>;
196
+ /**
197
+ * Create a new user account.
198
+ */
199
+ declare const CreateUserContract: _lssm_lib_contracts37.ContractSpec<SchemaModel<{
200
+ email: {
201
+ type: _lssm_lib_schema541.FieldType<string, string>;
202
+ isOptional: false;
203
+ };
204
+ name: {
205
+ type: _lssm_lib_schema541.FieldType<string, string>;
206
+ isOptional: true;
207
+ };
208
+ firstName: {
209
+ type: _lssm_lib_schema541.FieldType<string, string>;
210
+ isOptional: true;
211
+ };
212
+ lastName: {
213
+ type: _lssm_lib_schema541.FieldType<string, string>;
214
+ isOptional: true;
215
+ };
216
+ password: {
217
+ type: _lssm_lib_schema541.FieldType<string, string>;
218
+ isOptional: true;
219
+ };
220
+ }>, SchemaModel<{
221
+ id: {
222
+ type: _lssm_lib_schema541.FieldType<string, string>;
223
+ isOptional: false;
224
+ };
225
+ email: {
226
+ type: _lssm_lib_schema541.FieldType<string, string>;
227
+ isOptional: false;
228
+ };
229
+ emailVerified: {
230
+ type: _lssm_lib_schema541.FieldType<boolean, boolean>;
231
+ isOptional: false;
232
+ };
233
+ name: {
234
+ type: _lssm_lib_schema541.FieldType<string, string>;
235
+ isOptional: true;
236
+ };
237
+ firstName: {
238
+ type: _lssm_lib_schema541.FieldType<string, string>;
239
+ isOptional: true;
240
+ };
241
+ lastName: {
242
+ type: _lssm_lib_schema541.FieldType<string, string>;
243
+ isOptional: true;
244
+ };
245
+ locale: {
246
+ type: _lssm_lib_schema541.FieldType<string, string>;
247
+ isOptional: true;
248
+ };
249
+ timezone: {
250
+ type: _lssm_lib_schema541.FieldType<string, string>;
251
+ isOptional: true;
252
+ };
253
+ imageUrl: {
254
+ type: _lssm_lib_schema541.FieldType<string, string>;
255
+ isOptional: true;
256
+ };
257
+ role: {
258
+ type: _lssm_lib_schema541.FieldType<string, string>;
259
+ isOptional: true;
260
+ };
261
+ onboardingCompleted: {
262
+ type: _lssm_lib_schema541.FieldType<boolean, boolean>;
263
+ isOptional: false;
264
+ };
265
+ createdAt: {
266
+ type: _lssm_lib_schema541.FieldType<Date, string>;
267
+ isOptional: false;
268
+ };
269
+ }>, {
270
+ name: string;
271
+ version: number;
272
+ when: string;
273
+ payload: SchemaModel<{
274
+ id: {
275
+ type: _lssm_lib_schema541.FieldType<string, string>;
276
+ isOptional: false;
277
+ };
278
+ email: {
279
+ type: _lssm_lib_schema541.FieldType<string, string>;
280
+ isOptional: false;
281
+ };
282
+ emailVerified: {
283
+ type: _lssm_lib_schema541.FieldType<boolean, boolean>;
284
+ isOptional: false;
285
+ };
286
+ name: {
287
+ type: _lssm_lib_schema541.FieldType<string, string>;
288
+ isOptional: true;
289
+ };
290
+ firstName: {
291
+ type: _lssm_lib_schema541.FieldType<string, string>;
292
+ isOptional: true;
293
+ };
294
+ lastName: {
295
+ type: _lssm_lib_schema541.FieldType<string, string>;
296
+ isOptional: true;
297
+ };
298
+ locale: {
299
+ type: _lssm_lib_schema541.FieldType<string, string>;
300
+ isOptional: true;
301
+ };
302
+ timezone: {
303
+ type: _lssm_lib_schema541.FieldType<string, string>;
304
+ isOptional: true;
305
+ };
306
+ imageUrl: {
307
+ type: _lssm_lib_schema541.FieldType<string, string>;
308
+ isOptional: true;
309
+ };
310
+ role: {
311
+ type: _lssm_lib_schema541.FieldType<string, string>;
312
+ isOptional: true;
313
+ };
314
+ onboardingCompleted: {
315
+ type: _lssm_lib_schema541.FieldType<boolean, boolean>;
316
+ isOptional: false;
317
+ };
318
+ createdAt: {
319
+ type: _lssm_lib_schema541.FieldType<Date, string>;
320
+ isOptional: false;
321
+ };
322
+ }>;
323
+ }[]>;
324
+ /**
325
+ * Get the current user's profile.
326
+ */
327
+ declare const GetCurrentUserContract: _lssm_lib_contracts37.ContractSpec<_lssm_lib_schema541.AnySchemaModel, SchemaModel<{
328
+ id: {
329
+ type: _lssm_lib_schema541.FieldType<string, string>;
330
+ isOptional: false;
331
+ };
332
+ email: {
333
+ type: _lssm_lib_schema541.FieldType<string, string>;
334
+ isOptional: false;
335
+ };
336
+ emailVerified: {
337
+ type: _lssm_lib_schema541.FieldType<boolean, boolean>;
338
+ isOptional: false;
339
+ };
340
+ name: {
341
+ type: _lssm_lib_schema541.FieldType<string, string>;
342
+ isOptional: true;
343
+ };
344
+ firstName: {
345
+ type: _lssm_lib_schema541.FieldType<string, string>;
346
+ isOptional: true;
347
+ };
348
+ lastName: {
349
+ type: _lssm_lib_schema541.FieldType<string, string>;
350
+ isOptional: true;
351
+ };
352
+ locale: {
353
+ type: _lssm_lib_schema541.FieldType<string, string>;
354
+ isOptional: true;
355
+ };
356
+ timezone: {
357
+ type: _lssm_lib_schema541.FieldType<string, string>;
358
+ isOptional: true;
359
+ };
360
+ imageUrl: {
361
+ type: _lssm_lib_schema541.FieldType<string, string>;
362
+ isOptional: true;
363
+ };
364
+ role: {
365
+ type: _lssm_lib_schema541.FieldType<string, string>;
366
+ isOptional: true;
367
+ };
368
+ onboardingCompleted: {
369
+ type: _lssm_lib_schema541.FieldType<boolean, boolean>;
370
+ isOptional: false;
371
+ };
372
+ createdAt: {
373
+ type: _lssm_lib_schema541.FieldType<Date, string>;
374
+ isOptional: false;
375
+ };
376
+ }>, undefined>;
377
+ /**
378
+ * Update user profile.
379
+ */
380
+ declare const UpdateUserContract: _lssm_lib_contracts37.ContractSpec<SchemaModel<{
381
+ name: {
382
+ type: _lssm_lib_schema541.FieldType<string, string>;
383
+ isOptional: true;
384
+ };
385
+ firstName: {
386
+ type: _lssm_lib_schema541.FieldType<string, string>;
387
+ isOptional: true;
388
+ };
389
+ lastName: {
390
+ type: _lssm_lib_schema541.FieldType<string, string>;
391
+ isOptional: true;
392
+ };
393
+ locale: {
394
+ type: _lssm_lib_schema541.FieldType<string, string>;
395
+ isOptional: true;
396
+ };
397
+ timezone: {
398
+ type: _lssm_lib_schema541.FieldType<string, string>;
399
+ isOptional: true;
400
+ };
401
+ imageUrl: {
402
+ type: _lssm_lib_schema541.FieldType<string, string>;
403
+ isOptional: true;
404
+ };
405
+ }>, SchemaModel<{
406
+ id: {
407
+ type: _lssm_lib_schema541.FieldType<string, string>;
408
+ isOptional: false;
409
+ };
410
+ email: {
411
+ type: _lssm_lib_schema541.FieldType<string, string>;
412
+ isOptional: false;
413
+ };
414
+ emailVerified: {
415
+ type: _lssm_lib_schema541.FieldType<boolean, boolean>;
416
+ isOptional: false;
417
+ };
418
+ name: {
419
+ type: _lssm_lib_schema541.FieldType<string, string>;
420
+ isOptional: true;
421
+ };
422
+ firstName: {
423
+ type: _lssm_lib_schema541.FieldType<string, string>;
424
+ isOptional: true;
425
+ };
426
+ lastName: {
427
+ type: _lssm_lib_schema541.FieldType<string, string>;
428
+ isOptional: true;
429
+ };
430
+ locale: {
431
+ type: _lssm_lib_schema541.FieldType<string, string>;
432
+ isOptional: true;
433
+ };
434
+ timezone: {
435
+ type: _lssm_lib_schema541.FieldType<string, string>;
436
+ isOptional: true;
437
+ };
438
+ imageUrl: {
439
+ type: _lssm_lib_schema541.FieldType<string, string>;
440
+ isOptional: true;
441
+ };
442
+ role: {
443
+ type: _lssm_lib_schema541.FieldType<string, string>;
444
+ isOptional: true;
445
+ };
446
+ onboardingCompleted: {
447
+ type: _lssm_lib_schema541.FieldType<boolean, boolean>;
448
+ isOptional: false;
449
+ };
450
+ createdAt: {
451
+ type: _lssm_lib_schema541.FieldType<Date, string>;
452
+ isOptional: false;
453
+ };
454
+ }>, {
455
+ name: string;
456
+ version: number;
457
+ when: string;
458
+ payload: SchemaModel<{
459
+ id: {
460
+ type: _lssm_lib_schema541.FieldType<string, string>;
461
+ isOptional: false;
462
+ };
463
+ email: {
464
+ type: _lssm_lib_schema541.FieldType<string, string>;
465
+ isOptional: false;
466
+ };
467
+ emailVerified: {
468
+ type: _lssm_lib_schema541.FieldType<boolean, boolean>;
469
+ isOptional: false;
470
+ };
471
+ name: {
472
+ type: _lssm_lib_schema541.FieldType<string, string>;
473
+ isOptional: true;
474
+ };
475
+ firstName: {
476
+ type: _lssm_lib_schema541.FieldType<string, string>;
477
+ isOptional: true;
478
+ };
479
+ lastName: {
480
+ type: _lssm_lib_schema541.FieldType<string, string>;
481
+ isOptional: true;
482
+ };
483
+ locale: {
484
+ type: _lssm_lib_schema541.FieldType<string, string>;
485
+ isOptional: true;
486
+ };
487
+ timezone: {
488
+ type: _lssm_lib_schema541.FieldType<string, string>;
489
+ isOptional: true;
490
+ };
491
+ imageUrl: {
492
+ type: _lssm_lib_schema541.FieldType<string, string>;
493
+ isOptional: true;
494
+ };
495
+ role: {
496
+ type: _lssm_lib_schema541.FieldType<string, string>;
497
+ isOptional: true;
498
+ };
499
+ onboardingCompleted: {
500
+ type: _lssm_lib_schema541.FieldType<boolean, boolean>;
501
+ isOptional: false;
502
+ };
503
+ createdAt: {
504
+ type: _lssm_lib_schema541.FieldType<Date, string>;
505
+ isOptional: false;
506
+ };
507
+ }>;
508
+ }[]>;
509
+ /**
510
+ * Delete user account.
511
+ */
512
+ declare const DeleteUserContract: _lssm_lib_contracts37.ContractSpec<SchemaModel<{
513
+ confirmEmail: {
514
+ type: _lssm_lib_schema541.FieldType<string, string>;
515
+ isOptional: false;
516
+ };
517
+ }>, SchemaModel<{
518
+ success: {
519
+ type: _lssm_lib_schema541.FieldType<boolean, boolean>;
520
+ isOptional: false;
521
+ };
522
+ }>, {
523
+ name: string;
524
+ version: number;
525
+ when: string;
526
+ payload: SchemaModel<{
527
+ userId: {
528
+ type: _lssm_lib_schema541.FieldType<string, string>;
529
+ isOptional: false;
530
+ };
531
+ }>;
532
+ }[]>;
533
+ /**
534
+ * List users (admin only).
535
+ */
536
+ declare const ListUsersContract: _lssm_lib_contracts37.ContractSpec<SchemaModel<{
537
+ limit: {
538
+ type: _lssm_lib_schema541.FieldType<number, number>;
539
+ isOptional: true;
540
+ };
541
+ offset: {
542
+ type: _lssm_lib_schema541.FieldType<number, number>;
543
+ isOptional: true;
544
+ };
545
+ search: {
546
+ type: _lssm_lib_schema541.FieldType<string, string>;
547
+ isOptional: true;
548
+ };
549
+ }>, SchemaModel<{
550
+ users: {
551
+ type: SchemaModel<{
552
+ id: {
553
+ type: _lssm_lib_schema541.FieldType<string, string>;
554
+ isOptional: false;
555
+ };
556
+ email: {
557
+ type: _lssm_lib_schema541.FieldType<string, string>;
558
+ isOptional: false;
559
+ };
560
+ emailVerified: {
561
+ type: _lssm_lib_schema541.FieldType<boolean, boolean>;
562
+ isOptional: false;
563
+ };
564
+ name: {
565
+ type: _lssm_lib_schema541.FieldType<string, string>;
566
+ isOptional: true;
567
+ };
568
+ firstName: {
569
+ type: _lssm_lib_schema541.FieldType<string, string>;
570
+ isOptional: true;
571
+ };
572
+ lastName: {
573
+ type: _lssm_lib_schema541.FieldType<string, string>;
574
+ isOptional: true;
575
+ };
576
+ locale: {
577
+ type: _lssm_lib_schema541.FieldType<string, string>;
578
+ isOptional: true;
579
+ };
580
+ timezone: {
581
+ type: _lssm_lib_schema541.FieldType<string, string>;
582
+ isOptional: true;
583
+ };
584
+ imageUrl: {
585
+ type: _lssm_lib_schema541.FieldType<string, string>;
586
+ isOptional: true;
587
+ };
588
+ role: {
589
+ type: _lssm_lib_schema541.FieldType<string, string>;
590
+ isOptional: true;
591
+ };
592
+ onboardingCompleted: {
593
+ type: _lssm_lib_schema541.FieldType<boolean, boolean>;
594
+ isOptional: false;
595
+ };
596
+ createdAt: {
597
+ type: _lssm_lib_schema541.FieldType<Date, string>;
598
+ isOptional: false;
599
+ };
600
+ }>;
601
+ isOptional: false;
602
+ isArray: true;
603
+ };
604
+ total: {
605
+ type: _lssm_lib_schema541.FieldType<number, number>;
606
+ isOptional: false;
607
+ };
608
+ }>, undefined>;
609
+ //#endregion
610
+ export { CreateUserContract, CreateUserInputModel, DeleteUserContract, DeleteUserInputModel, GetCurrentUserContract, ListUsersContract, ListUsersInputModel, ListUsersOutputModel, SuccessResultModel, UpdateUserContract, UpdateUserInputModel, UserDeletedPayloadModel, UserProfileModel };
@@ -0,0 +1 @@
1
+ import{l as e}from"../schema/dist/ScalarTypeEnum.js";import{t}from"../schema/dist/SchemaModel.js";import"../schema/dist/index.js";import{n,t as r}from"./dist/spec.js";import"./dist/index.js";const i=[`platform.identity-rbac`],a=new t({name:`UserProfile`,description:`User profile information`,fields:{id:{type:e.String_unsecure(),isOptional:!1},email:{type:e.EmailAddress(),isOptional:!1},emailVerified:{type:e.Boolean(),isOptional:!1},name:{type:e.String_unsecure(),isOptional:!0},firstName:{type:e.String_unsecure(),isOptional:!0},lastName:{type:e.String_unsecure(),isOptional:!0},locale:{type:e.String_unsecure(),isOptional:!0},timezone:{type:e.String_unsecure(),isOptional:!0},imageUrl:{type:e.URL(),isOptional:!0},role:{type:e.String_unsecure(),isOptional:!0},onboardingCompleted:{type:e.Boolean(),isOptional:!1},createdAt:{type:e.DateTime(),isOptional:!1}}}),o=new t({name:`CreateUserInput`,description:`Input for creating a new user`,fields:{email:{type:e.EmailAddress(),isOptional:!1},name:{type:e.String_unsecure(),isOptional:!0},firstName:{type:e.String_unsecure(),isOptional:!0},lastName:{type:e.String_unsecure(),isOptional:!0},password:{type:e.String_unsecure(),isOptional:!0}}}),s=new t({name:`UpdateUserInput`,description:`Input for updating a user profile`,fields:{name:{type:e.String_unsecure(),isOptional:!0},firstName:{type:e.String_unsecure(),isOptional:!0},lastName:{type:e.String_unsecure(),isOptional:!0},locale:{type:e.String_unsecure(),isOptional:!0},timezone:{type:e.String_unsecure(),isOptional:!0},imageUrl:{type:e.URL(),isOptional:!0}}}),c=new t({name:`DeleteUserInput`,description:`Input for deleting a user`,fields:{confirmEmail:{type:e.EmailAddress(),isOptional:!1}}}),l=new t({name:`SuccessResult`,description:`Simple success result`,fields:{success:{type:e.Boolean(),isOptional:!1}}}),u=new t({name:`UserDeletedPayload`,description:`Payload for user deleted event`,fields:{userId:{type:e.String_unsecure(),isOptional:!1}}}),d=new t({name:`ListUsersInput`,description:`Input for listing users`,fields:{limit:{type:e.Int_unsecure(),isOptional:!0},offset:{type:e.Int_unsecure(),isOptional:!0},search:{type:e.String_unsecure(),isOptional:!0}}}),f=new t({name:`ListUsersOutput`,description:`Output for listing users`,fields:{users:{type:a,isOptional:!1,isArray:!0},total:{type:e.Int_unsecure(),isOptional:!1}}}),p=r({meta:{name:`identity.user.create`,version:1,stability:`stable`,owners:[...i],tags:[`identity`,`user`,`create`],description:`Create a new user account.`,goal:`Register a new user in the system.`,context:`Used during signup flows. May trigger email verification.`},io:{input:o,output:a,errors:{EMAIL_EXISTS:{description:`A user with this email already exists`,http:409,gqlCode:`EMAIL_EXISTS`,when:`Email is already registered`}}},policy:{auth:`anonymous`},sideEffects:{emits:[{name:`user.created`,version:1,when:`User is successfully created`,payload:a}],audit:[`user.created`]}}),m=n({meta:{name:`identity.user.me`,version:1,stability:`stable`,owners:[...i],tags:[`identity`,`user`,`profile`],description:`Get the current authenticated user profile.`,goal:`Retrieve user profile for the authenticated session.`,context:`Called on app load and after profile updates.`},io:{input:null,output:a},policy:{auth:`user`}}),h=r({meta:{name:`identity.user.update`,version:1,stability:`stable`,owners:[...i],tags:[`identity`,`user`,`update`],description:`Update user profile information.`,goal:`Allow users to update their profile.`,context:`Self-service profile updates.`},io:{input:s,output:a},policy:{auth:`user`},sideEffects:{emits:[{name:`user.updated`,version:1,when:`User profile is updated`,payload:a}],audit:[`user.updated`]}}),g=r({meta:{name:`identity.user.delete`,version:1,stability:`stable`,owners:[...i],tags:[`identity`,`user`,`delete`],description:`Delete user account and all associated data.`,goal:`Allow users to delete their account (GDPR compliance).`,context:`Self-service account deletion. Cascades to memberships, sessions, etc.`},io:{input:c,output:l},policy:{auth:`user`,escalate:`human_review`},sideEffects:{emits:[{name:`user.deleted`,version:1,when:`User account is deleted`,payload:u}],audit:[`user.deleted`]}}),_=n({meta:{name:`identity.user.list`,version:1,stability:`stable`,owners:[...i],tags:[`identity`,`user`,`admin`,`list`],description:`List all users (admin only).`,goal:`Allow admins to browse and manage users.`,context:`Admin dashboard user management.`},io:{input:d,output:f},policy:{auth:`admin`}});export{p as CreateUserContract,o as CreateUserInputModel,g as DeleteUserContract,c as DeleteUserInputModel,m as GetCurrentUserContract,_ as ListUsersContract,d as ListUsersInputModel,f as ListUsersOutputModel,l as SuccessResultModel,h as UpdateUserContract,s as UpdateUserInputModel,u as UserDeletedPayloadModel,a as UserProfileModel};