@contractspec/lib.identity-rbac 1.56.1 → 1.58.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 (82) hide show
  1. package/dist/browser/contracts/index.js +1045 -0
  2. package/dist/browser/contracts/organization.js +655 -0
  3. package/dist/browser/contracts/rbac.js +599 -0
  4. package/dist/browser/contracts/user.js +235 -0
  5. package/dist/browser/entities/index.js +464 -0
  6. package/dist/browser/entities/organization.js +150 -0
  7. package/dist/browser/entities/rbac.js +124 -0
  8. package/dist/browser/entities/user.js +168 -0
  9. package/dist/browser/events.js +374 -0
  10. package/dist/browser/identity-rbac.capability.js +28 -0
  11. package/dist/browser/identity-rbac.feature.js +67 -0
  12. package/dist/browser/index.js +2099 -0
  13. package/dist/browser/policies/engine.js +154 -0
  14. package/dist/browser/policies/index.js +154 -0
  15. package/dist/contracts/index.d.ts +4 -4
  16. package/dist/contracts/index.d.ts.map +1 -0
  17. package/dist/contracts/index.js +1045 -4
  18. package/dist/contracts/organization.d.ts +758 -764
  19. package/dist/contracts/organization.d.ts.map +1 -1
  20. package/dist/contracts/organization.js +653 -602
  21. package/dist/contracts/rbac.d.ts +517 -523
  22. package/dist/contracts/rbac.d.ts.map +1 -1
  23. package/dist/contracts/rbac.js +597 -481
  24. package/dist/contracts/user.d.ts +513 -519
  25. package/dist/contracts/user.d.ts.map +1 -1
  26. package/dist/contracts/user.js +222 -319
  27. package/dist/entities/index.d.ts +164 -169
  28. package/dist/entities/index.d.ts.map +1 -1
  29. package/dist/entities/index.js +462 -33
  30. package/dist/entities/organization.d.ts +58 -63
  31. package/dist/entities/organization.d.ts.map +1 -1
  32. package/dist/entities/organization.js +145 -145
  33. package/dist/entities/rbac.d.ts +62 -67
  34. package/dist/entities/rbac.d.ts.map +1 -1
  35. package/dist/entities/rbac.js +119 -132
  36. package/dist/entities/user.d.ts +66 -71
  37. package/dist/entities/user.d.ts.map +1 -1
  38. package/dist/entities/user.js +164 -189
  39. package/dist/events.d.ts +537 -543
  40. package/dist/events.d.ts.map +1 -1
  41. package/dist/events.js +343 -651
  42. package/dist/identity-rbac.capability.d.ts +2 -7
  43. package/dist/identity-rbac.capability.d.ts.map +1 -1
  44. package/dist/identity-rbac.capability.js +29 -29
  45. package/dist/identity-rbac.feature.d.ts +1 -7
  46. package/dist/identity-rbac.feature.d.ts.map +1 -1
  47. package/dist/identity-rbac.feature.js +66 -193
  48. package/dist/index.d.ts +6 -12
  49. package/dist/index.d.ts.map +1 -0
  50. package/dist/index.js +2100 -14
  51. package/dist/node/contracts/index.js +1045 -0
  52. package/dist/node/contracts/organization.js +655 -0
  53. package/dist/node/contracts/rbac.js +599 -0
  54. package/dist/node/contracts/user.js +235 -0
  55. package/dist/node/entities/index.js +464 -0
  56. package/dist/node/entities/organization.js +150 -0
  57. package/dist/node/entities/rbac.js +124 -0
  58. package/dist/node/entities/user.js +168 -0
  59. package/dist/node/events.js +374 -0
  60. package/dist/node/identity-rbac.capability.js +28 -0
  61. package/dist/node/identity-rbac.feature.js +67 -0
  62. package/dist/node/index.js +2099 -0
  63. package/dist/node/policies/engine.js +154 -0
  64. package/dist/node/policies/index.js +154 -0
  65. package/dist/policies/engine.d.ts +98 -101
  66. package/dist/policies/engine.d.ts.map +1 -1
  67. package/dist/policies/engine.js +151 -164
  68. package/dist/policies/index.d.ts +2 -2
  69. package/dist/policies/index.d.ts.map +1 -0
  70. package/dist/policies/index.js +154 -2
  71. package/package.json +149 -40
  72. package/dist/contracts/organization.js.map +0 -1
  73. package/dist/contracts/rbac.js.map +0 -1
  74. package/dist/contracts/user.js.map +0 -1
  75. package/dist/entities/index.js.map +0 -1
  76. package/dist/entities/organization.js.map +0 -1
  77. package/dist/entities/rbac.js.map +0 -1
  78. package/dist/entities/user.js.map +0 -1
  79. package/dist/events.js.map +0 -1
  80. package/dist/identity-rbac.capability.js.map +0 -1
  81. package/dist/identity-rbac.feature.js.map +0 -1
  82. package/dist/policies/engine.js.map +0 -1
@@ -1,611 +1,605 @@
1
- import * as _contractspec_lib_schema442 from "@contractspec/lib.schema";
2
- import { SchemaModel } from "@contractspec/lib.schema";
3
- import * as _contractspec_lib_contracts48 from "@contractspec/lib.contracts";
4
-
5
- //#region src/contracts/user.d.ts
6
- declare const UserProfileModel: SchemaModel<{
7
- id: {
8
- type: _contractspec_lib_schema442.FieldType<string, string>;
9
- isOptional: false;
10
- };
11
- email: {
12
- type: _contractspec_lib_schema442.FieldType<string, string>;
13
- isOptional: false;
14
- };
15
- emailVerified: {
16
- type: _contractspec_lib_schema442.FieldType<boolean, boolean>;
17
- isOptional: false;
18
- };
19
- name: {
20
- type: _contractspec_lib_schema442.FieldType<string, string>;
21
- isOptional: true;
22
- };
23
- firstName: {
24
- type: _contractspec_lib_schema442.FieldType<string, string>;
25
- isOptional: true;
26
- };
27
- lastName: {
28
- type: _contractspec_lib_schema442.FieldType<string, string>;
29
- isOptional: true;
30
- };
31
- locale: {
32
- type: _contractspec_lib_schema442.FieldType<string, string>;
33
- isOptional: true;
34
- };
35
- timezone: {
36
- type: _contractspec_lib_schema442.FieldType<string, string>;
37
- isOptional: true;
38
- };
39
- imageUrl: {
40
- type: _contractspec_lib_schema442.FieldType<string, string>;
41
- isOptional: true;
42
- };
43
- role: {
44
- type: _contractspec_lib_schema442.FieldType<string, string>;
45
- isOptional: true;
46
- };
47
- onboardingCompleted: {
48
- type: _contractspec_lib_schema442.FieldType<boolean, boolean>;
49
- isOptional: false;
50
- };
51
- createdAt: {
52
- type: _contractspec_lib_schema442.FieldType<Date, string>;
53
- isOptional: false;
54
- };
1
+ import { SchemaModel } from '@contractspec/lib.schema';
2
+ export declare const UserProfileModel: SchemaModel<{
3
+ id: {
4
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
5
+ isOptional: false;
6
+ };
7
+ email: {
8
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
9
+ isOptional: false;
10
+ };
11
+ emailVerified: {
12
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
13
+ isOptional: false;
14
+ };
15
+ name: {
16
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
17
+ isOptional: true;
18
+ };
19
+ firstName: {
20
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
21
+ isOptional: true;
22
+ };
23
+ lastName: {
24
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
25
+ isOptional: true;
26
+ };
27
+ locale: {
28
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
29
+ isOptional: true;
30
+ };
31
+ timezone: {
32
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
33
+ isOptional: true;
34
+ };
35
+ imageUrl: {
36
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
37
+ isOptional: true;
38
+ };
39
+ role: {
40
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
41
+ isOptional: true;
42
+ };
43
+ onboardingCompleted: {
44
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
45
+ isOptional: false;
46
+ };
47
+ createdAt: {
48
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
49
+ isOptional: false;
50
+ };
55
51
  }>;
56
- declare const CreateUserInputModel: SchemaModel<{
57
- email: {
58
- type: _contractspec_lib_schema442.FieldType<string, string>;
59
- isOptional: false;
60
- };
61
- name: {
62
- type: _contractspec_lib_schema442.FieldType<string, string>;
63
- isOptional: true;
64
- };
65
- firstName: {
66
- type: _contractspec_lib_schema442.FieldType<string, string>;
67
- isOptional: true;
68
- };
69
- lastName: {
70
- type: _contractspec_lib_schema442.FieldType<string, string>;
71
- isOptional: true;
72
- };
73
- password: {
74
- type: _contractspec_lib_schema442.FieldType<string, string>;
75
- isOptional: true;
76
- };
52
+ export declare const CreateUserInputModel: SchemaModel<{
53
+ email: {
54
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
55
+ isOptional: false;
56
+ };
57
+ name: {
58
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
59
+ isOptional: true;
60
+ };
61
+ firstName: {
62
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
63
+ isOptional: true;
64
+ };
65
+ lastName: {
66
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
67
+ isOptional: true;
68
+ };
69
+ password: {
70
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
71
+ isOptional: true;
72
+ };
77
73
  }>;
78
- declare const UpdateUserInputModel: SchemaModel<{
79
- name: {
80
- type: _contractspec_lib_schema442.FieldType<string, string>;
81
- isOptional: true;
82
- };
83
- firstName: {
84
- type: _contractspec_lib_schema442.FieldType<string, string>;
85
- isOptional: true;
86
- };
87
- lastName: {
88
- type: _contractspec_lib_schema442.FieldType<string, string>;
89
- isOptional: true;
90
- };
91
- locale: {
92
- type: _contractspec_lib_schema442.FieldType<string, string>;
93
- isOptional: true;
94
- };
95
- timezone: {
96
- type: _contractspec_lib_schema442.FieldType<string, string>;
97
- isOptional: true;
98
- };
99
- imageUrl: {
100
- type: _contractspec_lib_schema442.FieldType<string, string>;
101
- isOptional: true;
102
- };
74
+ export declare const UpdateUserInputModel: SchemaModel<{
75
+ name: {
76
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
77
+ isOptional: true;
78
+ };
79
+ firstName: {
80
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
81
+ isOptional: true;
82
+ };
83
+ lastName: {
84
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
85
+ isOptional: true;
86
+ };
87
+ locale: {
88
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
89
+ isOptional: true;
90
+ };
91
+ timezone: {
92
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
93
+ isOptional: true;
94
+ };
95
+ imageUrl: {
96
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
97
+ isOptional: true;
98
+ };
103
99
  }>;
104
- declare const DeleteUserInputModel: SchemaModel<{
105
- confirmEmail: {
106
- type: _contractspec_lib_schema442.FieldType<string, string>;
107
- isOptional: false;
108
- };
100
+ export declare const DeleteUserInputModel: SchemaModel<{
101
+ confirmEmail: {
102
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
103
+ isOptional: false;
104
+ };
109
105
  }>;
110
- declare const SuccessResultModel: SchemaModel<{
111
- success: {
112
- type: _contractspec_lib_schema442.FieldType<boolean, boolean>;
113
- isOptional: false;
114
- };
106
+ export declare const SuccessResultModel: SchemaModel<{
107
+ success: {
108
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
109
+ isOptional: false;
110
+ };
115
111
  }>;
116
- declare const UserDeletedPayloadModel: SchemaModel<{
117
- userId: {
118
- type: _contractspec_lib_schema442.FieldType<string, string>;
119
- isOptional: false;
120
- };
112
+ export declare const UserDeletedPayloadModel: SchemaModel<{
113
+ userId: {
114
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
115
+ isOptional: false;
116
+ };
121
117
  }>;
122
- declare const ListUsersInputModel: SchemaModel<{
123
- limit: {
124
- type: _contractspec_lib_schema442.FieldType<number, number>;
125
- isOptional: true;
126
- };
127
- offset: {
128
- type: _contractspec_lib_schema442.FieldType<number, number>;
129
- isOptional: true;
130
- };
131
- search: {
132
- type: _contractspec_lib_schema442.FieldType<string, string>;
133
- isOptional: true;
134
- };
118
+ export declare const ListUsersInputModel: SchemaModel<{
119
+ limit: {
120
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
121
+ isOptional: true;
122
+ };
123
+ offset: {
124
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
125
+ isOptional: true;
126
+ };
127
+ search: {
128
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
129
+ isOptional: true;
130
+ };
135
131
  }>;
136
- declare const ListUsersOutputModel: SchemaModel<{
137
- users: {
138
- type: SchemaModel<{
139
- id: {
140
- type: _contractspec_lib_schema442.FieldType<string, string>;
132
+ export declare const ListUsersOutputModel: SchemaModel<{
133
+ users: {
134
+ type: SchemaModel<{
135
+ id: {
136
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
137
+ isOptional: false;
138
+ };
139
+ email: {
140
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
141
+ isOptional: false;
142
+ };
143
+ emailVerified: {
144
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
145
+ isOptional: false;
146
+ };
147
+ name: {
148
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
149
+ isOptional: true;
150
+ };
151
+ firstName: {
152
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
153
+ isOptional: true;
154
+ };
155
+ lastName: {
156
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
157
+ isOptional: true;
158
+ };
159
+ locale: {
160
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
161
+ isOptional: true;
162
+ };
163
+ timezone: {
164
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
165
+ isOptional: true;
166
+ };
167
+ imageUrl: {
168
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
169
+ isOptional: true;
170
+ };
171
+ role: {
172
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
173
+ isOptional: true;
174
+ };
175
+ onboardingCompleted: {
176
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
177
+ isOptional: false;
178
+ };
179
+ createdAt: {
180
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
181
+ isOptional: false;
182
+ };
183
+ }>;
184
+ isOptional: false;
185
+ isArray: true;
186
+ };
187
+ total: {
188
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
189
+ isOptional: false;
190
+ };
191
+ }>;
192
+ /**
193
+ * Create a new user account.
194
+ */
195
+ export declare const CreateUserContract: import("@contractspec/lib.contracts").OperationSpec<SchemaModel<{
196
+ email: {
197
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
198
+ isOptional: false;
199
+ };
200
+ name: {
201
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
202
+ isOptional: true;
203
+ };
204
+ firstName: {
205
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
206
+ isOptional: true;
207
+ };
208
+ lastName: {
209
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
210
+ isOptional: true;
211
+ };
212
+ password: {
213
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
214
+ isOptional: true;
215
+ };
216
+ }>, SchemaModel<{
217
+ id: {
218
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
141
219
  isOptional: false;
142
- };
143
- email: {
144
- type: _contractspec_lib_schema442.FieldType<string, string>;
220
+ };
221
+ email: {
222
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
145
223
  isOptional: false;
146
- };
147
- emailVerified: {
148
- type: _contractspec_lib_schema442.FieldType<boolean, boolean>;
224
+ };
225
+ emailVerified: {
226
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
149
227
  isOptional: false;
150
- };
151
- name: {
152
- type: _contractspec_lib_schema442.FieldType<string, string>;
228
+ };
229
+ name: {
230
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
153
231
  isOptional: true;
154
- };
155
- firstName: {
156
- type: _contractspec_lib_schema442.FieldType<string, string>;
232
+ };
233
+ firstName: {
234
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
157
235
  isOptional: true;
158
- };
159
- lastName: {
160
- type: _contractspec_lib_schema442.FieldType<string, string>;
236
+ };
237
+ lastName: {
238
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
161
239
  isOptional: true;
162
- };
163
- locale: {
164
- type: _contractspec_lib_schema442.FieldType<string, string>;
240
+ };
241
+ locale: {
242
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
165
243
  isOptional: true;
166
- };
167
- timezone: {
168
- type: _contractspec_lib_schema442.FieldType<string, string>;
244
+ };
245
+ timezone: {
246
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
169
247
  isOptional: true;
170
- };
171
- imageUrl: {
172
- type: _contractspec_lib_schema442.FieldType<string, string>;
248
+ };
249
+ imageUrl: {
250
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
173
251
  isOptional: true;
174
- };
175
- role: {
176
- type: _contractspec_lib_schema442.FieldType<string, string>;
252
+ };
253
+ role: {
254
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
177
255
  isOptional: true;
178
- };
179
- onboardingCompleted: {
180
- type: _contractspec_lib_schema442.FieldType<boolean, boolean>;
256
+ };
257
+ onboardingCompleted: {
258
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
181
259
  isOptional: false;
182
- };
183
- createdAt: {
184
- type: _contractspec_lib_schema442.FieldType<Date, string>;
260
+ };
261
+ createdAt: {
262
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
185
263
  isOptional: false;
186
- };
264
+ };
265
+ }>, {
266
+ key: string;
267
+ version: string;
268
+ when: string;
269
+ payload: SchemaModel<{
270
+ id: {
271
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
272
+ isOptional: false;
273
+ };
274
+ email: {
275
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
276
+ isOptional: false;
277
+ };
278
+ emailVerified: {
279
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
280
+ isOptional: false;
281
+ };
282
+ name: {
283
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
284
+ isOptional: true;
285
+ };
286
+ firstName: {
287
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
288
+ isOptional: true;
289
+ };
290
+ lastName: {
291
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
292
+ isOptional: true;
293
+ };
294
+ locale: {
295
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
296
+ isOptional: true;
297
+ };
298
+ timezone: {
299
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
300
+ isOptional: true;
301
+ };
302
+ imageUrl: {
303
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
304
+ isOptional: true;
305
+ };
306
+ role: {
307
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
308
+ isOptional: true;
309
+ };
310
+ onboardingCompleted: {
311
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
312
+ isOptional: false;
313
+ };
314
+ createdAt: {
315
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
316
+ isOptional: false;
317
+ };
187
318
  }>;
188
- isOptional: false;
189
- isArray: true;
190
- };
191
- total: {
192
- type: _contractspec_lib_schema442.FieldType<number, number>;
193
- isOptional: false;
194
- };
195
- }>;
319
+ }[]>;
196
320
  /**
197
- * Create a new user account.
321
+ * Get the current user's profile.
198
322
  */
199
- declare const CreateUserContract: _contractspec_lib_contracts48.OperationSpec<SchemaModel<{
200
- email: {
201
- type: _contractspec_lib_schema442.FieldType<string, string>;
202
- isOptional: false;
203
- };
204
- name: {
205
- type: _contractspec_lib_schema442.FieldType<string, string>;
206
- isOptional: true;
207
- };
208
- firstName: {
209
- type: _contractspec_lib_schema442.FieldType<string, string>;
210
- isOptional: true;
211
- };
212
- lastName: {
213
- type: _contractspec_lib_schema442.FieldType<string, string>;
214
- isOptional: true;
215
- };
216
- password: {
217
- type: _contractspec_lib_schema442.FieldType<string, string>;
218
- isOptional: true;
219
- };
220
- }>, SchemaModel<{
221
- id: {
222
- type: _contractspec_lib_schema442.FieldType<string, string>;
223
- isOptional: false;
224
- };
225
- email: {
226
- type: _contractspec_lib_schema442.FieldType<string, string>;
227
- isOptional: false;
228
- };
229
- emailVerified: {
230
- type: _contractspec_lib_schema442.FieldType<boolean, boolean>;
231
- isOptional: false;
232
- };
233
- name: {
234
- type: _contractspec_lib_schema442.FieldType<string, string>;
235
- isOptional: true;
236
- };
237
- firstName: {
238
- type: _contractspec_lib_schema442.FieldType<string, string>;
239
- isOptional: true;
240
- };
241
- lastName: {
242
- type: _contractspec_lib_schema442.FieldType<string, string>;
243
- isOptional: true;
244
- };
245
- locale: {
246
- type: _contractspec_lib_schema442.FieldType<string, string>;
247
- isOptional: true;
248
- };
249
- timezone: {
250
- type: _contractspec_lib_schema442.FieldType<string, string>;
251
- isOptional: true;
252
- };
253
- imageUrl: {
254
- type: _contractspec_lib_schema442.FieldType<string, string>;
255
- isOptional: true;
256
- };
257
- role: {
258
- type: _contractspec_lib_schema442.FieldType<string, string>;
259
- isOptional: true;
260
- };
261
- onboardingCompleted: {
262
- type: _contractspec_lib_schema442.FieldType<boolean, boolean>;
263
- isOptional: false;
264
- };
265
- createdAt: {
266
- type: _contractspec_lib_schema442.FieldType<Date, string>;
267
- isOptional: false;
268
- };
269
- }>, {
270
- key: string;
271
- version: string;
272
- when: string;
273
- payload: SchemaModel<{
323
+ export declare const GetCurrentUserContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").AnySchemaModel, SchemaModel<{
274
324
  id: {
275
- type: _contractspec_lib_schema442.FieldType<string, string>;
276
- isOptional: false;
325
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
326
+ isOptional: false;
277
327
  };
278
328
  email: {
279
- type: _contractspec_lib_schema442.FieldType<string, string>;
280
- isOptional: false;
329
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
330
+ isOptional: false;
281
331
  };
282
332
  emailVerified: {
283
- type: _contractspec_lib_schema442.FieldType<boolean, boolean>;
284
- isOptional: false;
333
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
334
+ isOptional: false;
285
335
  };
286
336
  name: {
287
- type: _contractspec_lib_schema442.FieldType<string, string>;
288
- isOptional: true;
337
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
338
+ isOptional: true;
289
339
  };
290
340
  firstName: {
291
- type: _contractspec_lib_schema442.FieldType<string, string>;
292
- isOptional: true;
341
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
342
+ isOptional: true;
293
343
  };
294
344
  lastName: {
295
- type: _contractspec_lib_schema442.FieldType<string, string>;
296
- isOptional: true;
345
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
346
+ isOptional: true;
297
347
  };
298
348
  locale: {
299
- type: _contractspec_lib_schema442.FieldType<string, string>;
300
- isOptional: true;
349
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
350
+ isOptional: true;
301
351
  };
302
352
  timezone: {
303
- type: _contractspec_lib_schema442.FieldType<string, string>;
304
- isOptional: true;
353
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
354
+ isOptional: true;
305
355
  };
306
356
  imageUrl: {
307
- type: _contractspec_lib_schema442.FieldType<string, string>;
308
- isOptional: true;
357
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
358
+ isOptional: true;
309
359
  };
310
360
  role: {
311
- type: _contractspec_lib_schema442.FieldType<string, string>;
312
- isOptional: true;
361
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
362
+ isOptional: true;
313
363
  };
314
364
  onboardingCompleted: {
315
- type: _contractspec_lib_schema442.FieldType<boolean, boolean>;
316
- isOptional: false;
365
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
366
+ isOptional: false;
317
367
  };
318
368
  createdAt: {
319
- type: _contractspec_lib_schema442.FieldType<Date, string>;
320
- isOptional: false;
369
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
370
+ isOptional: false;
321
371
  };
322
- }>;
323
- }[]>;
324
- /**
325
- * Get the current user's profile.
326
- */
327
- declare const GetCurrentUserContract: _contractspec_lib_contracts48.OperationSpec<_contractspec_lib_schema442.AnySchemaModel, SchemaModel<{
328
- id: {
329
- type: _contractspec_lib_schema442.FieldType<string, string>;
330
- isOptional: false;
331
- };
332
- email: {
333
- type: _contractspec_lib_schema442.FieldType<string, string>;
334
- isOptional: false;
335
- };
336
- emailVerified: {
337
- type: _contractspec_lib_schema442.FieldType<boolean, boolean>;
338
- isOptional: false;
339
- };
340
- name: {
341
- type: _contractspec_lib_schema442.FieldType<string, string>;
342
- isOptional: true;
343
- };
344
- firstName: {
345
- type: _contractspec_lib_schema442.FieldType<string, string>;
346
- isOptional: true;
347
- };
348
- lastName: {
349
- type: _contractspec_lib_schema442.FieldType<string, string>;
350
- isOptional: true;
351
- };
352
- locale: {
353
- type: _contractspec_lib_schema442.FieldType<string, string>;
354
- isOptional: true;
355
- };
356
- timezone: {
357
- type: _contractspec_lib_schema442.FieldType<string, string>;
358
- isOptional: true;
359
- };
360
- imageUrl: {
361
- type: _contractspec_lib_schema442.FieldType<string, string>;
362
- isOptional: true;
363
- };
364
- role: {
365
- type: _contractspec_lib_schema442.FieldType<string, string>;
366
- isOptional: true;
367
- };
368
- onboardingCompleted: {
369
- type: _contractspec_lib_schema442.FieldType<boolean, boolean>;
370
- isOptional: false;
371
- };
372
- createdAt: {
373
- type: _contractspec_lib_schema442.FieldType<Date, string>;
374
- isOptional: false;
375
- };
376
372
  }>, undefined>;
377
373
  /**
378
374
  * Update user profile.
379
375
  */
380
- declare const UpdateUserContract: _contractspec_lib_contracts48.OperationSpec<SchemaModel<{
381
- name: {
382
- type: _contractspec_lib_schema442.FieldType<string, string>;
383
- isOptional: true;
384
- };
385
- firstName: {
386
- type: _contractspec_lib_schema442.FieldType<string, string>;
387
- isOptional: true;
388
- };
389
- lastName: {
390
- type: _contractspec_lib_schema442.FieldType<string, string>;
391
- isOptional: true;
392
- };
393
- locale: {
394
- type: _contractspec_lib_schema442.FieldType<string, string>;
395
- isOptional: true;
396
- };
397
- timezone: {
398
- type: _contractspec_lib_schema442.FieldType<string, string>;
399
- isOptional: true;
400
- };
401
- imageUrl: {
402
- type: _contractspec_lib_schema442.FieldType<string, string>;
403
- isOptional: true;
404
- };
376
+ export declare const UpdateUserContract: import("@contractspec/lib.contracts").OperationSpec<SchemaModel<{
377
+ name: {
378
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
379
+ isOptional: true;
380
+ };
381
+ firstName: {
382
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
383
+ isOptional: true;
384
+ };
385
+ lastName: {
386
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
387
+ isOptional: true;
388
+ };
389
+ locale: {
390
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
391
+ isOptional: true;
392
+ };
393
+ timezone: {
394
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
395
+ isOptional: true;
396
+ };
397
+ imageUrl: {
398
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
399
+ isOptional: true;
400
+ };
405
401
  }>, SchemaModel<{
406
- id: {
407
- type: _contractspec_lib_schema442.FieldType<string, string>;
408
- isOptional: false;
409
- };
410
- email: {
411
- type: _contractspec_lib_schema442.FieldType<string, string>;
412
- isOptional: false;
413
- };
414
- emailVerified: {
415
- type: _contractspec_lib_schema442.FieldType<boolean, boolean>;
416
- isOptional: false;
417
- };
418
- name: {
419
- type: _contractspec_lib_schema442.FieldType<string, string>;
420
- isOptional: true;
421
- };
422
- firstName: {
423
- type: _contractspec_lib_schema442.FieldType<string, string>;
424
- isOptional: true;
425
- };
426
- lastName: {
427
- type: _contractspec_lib_schema442.FieldType<string, string>;
428
- isOptional: true;
429
- };
430
- locale: {
431
- type: _contractspec_lib_schema442.FieldType<string, string>;
432
- isOptional: true;
433
- };
434
- timezone: {
435
- type: _contractspec_lib_schema442.FieldType<string, string>;
436
- isOptional: true;
437
- };
438
- imageUrl: {
439
- type: _contractspec_lib_schema442.FieldType<string, string>;
440
- isOptional: true;
441
- };
442
- role: {
443
- type: _contractspec_lib_schema442.FieldType<string, string>;
444
- isOptional: true;
445
- };
446
- onboardingCompleted: {
447
- type: _contractspec_lib_schema442.FieldType<boolean, boolean>;
448
- isOptional: false;
449
- };
450
- createdAt: {
451
- type: _contractspec_lib_schema442.FieldType<Date, string>;
452
- isOptional: false;
453
- };
454
- }>, {
455
- key: string;
456
- version: string;
457
- when: string;
458
- payload: SchemaModel<{
459
402
  id: {
460
- type: _contractspec_lib_schema442.FieldType<string, string>;
461
- isOptional: false;
403
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
404
+ isOptional: false;
462
405
  };
463
406
  email: {
464
- type: _contractspec_lib_schema442.FieldType<string, string>;
465
- isOptional: false;
407
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
408
+ isOptional: false;
466
409
  };
467
410
  emailVerified: {
468
- type: _contractspec_lib_schema442.FieldType<boolean, boolean>;
469
- isOptional: false;
411
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
412
+ isOptional: false;
470
413
  };
471
414
  name: {
472
- type: _contractspec_lib_schema442.FieldType<string, string>;
473
- isOptional: true;
415
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
416
+ isOptional: true;
474
417
  };
475
418
  firstName: {
476
- type: _contractspec_lib_schema442.FieldType<string, string>;
477
- isOptional: true;
419
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
420
+ isOptional: true;
478
421
  };
479
422
  lastName: {
480
- type: _contractspec_lib_schema442.FieldType<string, string>;
481
- isOptional: true;
423
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
424
+ isOptional: true;
482
425
  };
483
426
  locale: {
484
- type: _contractspec_lib_schema442.FieldType<string, string>;
485
- isOptional: true;
427
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
428
+ isOptional: true;
486
429
  };
487
430
  timezone: {
488
- type: _contractspec_lib_schema442.FieldType<string, string>;
489
- isOptional: true;
431
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
432
+ isOptional: true;
490
433
  };
491
434
  imageUrl: {
492
- type: _contractspec_lib_schema442.FieldType<string, string>;
493
- isOptional: true;
435
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
436
+ isOptional: true;
494
437
  };
495
438
  role: {
496
- type: _contractspec_lib_schema442.FieldType<string, string>;
497
- isOptional: true;
439
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
440
+ isOptional: true;
498
441
  };
499
442
  onboardingCompleted: {
500
- type: _contractspec_lib_schema442.FieldType<boolean, boolean>;
501
- isOptional: false;
443
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
444
+ isOptional: false;
502
445
  };
503
446
  createdAt: {
504
- type: _contractspec_lib_schema442.FieldType<Date, string>;
505
- isOptional: false;
447
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
448
+ isOptional: false;
506
449
  };
507
- }>;
450
+ }>, {
451
+ key: string;
452
+ version: string;
453
+ when: string;
454
+ payload: SchemaModel<{
455
+ id: {
456
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
457
+ isOptional: false;
458
+ };
459
+ email: {
460
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
461
+ isOptional: false;
462
+ };
463
+ emailVerified: {
464
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
465
+ isOptional: false;
466
+ };
467
+ name: {
468
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
469
+ isOptional: true;
470
+ };
471
+ firstName: {
472
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
473
+ isOptional: true;
474
+ };
475
+ lastName: {
476
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
477
+ isOptional: true;
478
+ };
479
+ locale: {
480
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
481
+ isOptional: true;
482
+ };
483
+ timezone: {
484
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
485
+ isOptional: true;
486
+ };
487
+ imageUrl: {
488
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
489
+ isOptional: true;
490
+ };
491
+ role: {
492
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
493
+ isOptional: true;
494
+ };
495
+ onboardingCompleted: {
496
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
497
+ isOptional: false;
498
+ };
499
+ createdAt: {
500
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
501
+ isOptional: false;
502
+ };
503
+ }>;
508
504
  }[]>;
509
505
  /**
510
506
  * Delete user account.
511
507
  */
512
- declare const DeleteUserContract: _contractspec_lib_contracts48.OperationSpec<SchemaModel<{
513
- confirmEmail: {
514
- type: _contractspec_lib_schema442.FieldType<string, string>;
515
- isOptional: false;
516
- };
508
+ export declare const DeleteUserContract: import("@contractspec/lib.contracts").OperationSpec<SchemaModel<{
509
+ confirmEmail: {
510
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
511
+ isOptional: false;
512
+ };
517
513
  }>, SchemaModel<{
518
- success: {
519
- type: _contractspec_lib_schema442.FieldType<boolean, boolean>;
520
- isOptional: false;
521
- };
522
- }>, {
523
- key: string;
524
- version: string;
525
- when: string;
526
- payload: SchemaModel<{
527
- userId: {
528
- type: _contractspec_lib_schema442.FieldType<string, string>;
529
- isOptional: false;
514
+ success: {
515
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
516
+ isOptional: false;
530
517
  };
531
- }>;
518
+ }>, {
519
+ key: string;
520
+ version: string;
521
+ when: string;
522
+ payload: SchemaModel<{
523
+ userId: {
524
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
525
+ isOptional: false;
526
+ };
527
+ }>;
532
528
  }[]>;
533
529
  /**
534
530
  * List users (admin only).
535
531
  */
536
- declare const ListUsersContract: _contractspec_lib_contracts48.OperationSpec<SchemaModel<{
537
- limit: {
538
- type: _contractspec_lib_schema442.FieldType<number, number>;
539
- isOptional: true;
540
- };
541
- offset: {
542
- type: _contractspec_lib_schema442.FieldType<number, number>;
543
- isOptional: true;
544
- };
545
- search: {
546
- type: _contractspec_lib_schema442.FieldType<string, string>;
547
- isOptional: true;
548
- };
549
- }>, SchemaModel<{
550
- users: {
551
- type: SchemaModel<{
552
- id: {
553
- type: _contractspec_lib_schema442.FieldType<string, string>;
554
- isOptional: false;
555
- };
556
- email: {
557
- type: _contractspec_lib_schema442.FieldType<string, string>;
558
- isOptional: false;
559
- };
560
- emailVerified: {
561
- type: _contractspec_lib_schema442.FieldType<boolean, boolean>;
562
- isOptional: false;
563
- };
564
- name: {
565
- type: _contractspec_lib_schema442.FieldType<string, string>;
566
- isOptional: true;
567
- };
568
- firstName: {
569
- type: _contractspec_lib_schema442.FieldType<string, string>;
570
- isOptional: true;
571
- };
572
- lastName: {
573
- type: _contractspec_lib_schema442.FieldType<string, string>;
532
+ export declare const ListUsersContract: import("@contractspec/lib.contracts").OperationSpec<SchemaModel<{
533
+ limit: {
534
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
574
535
  isOptional: true;
575
- };
576
- locale: {
577
- type: _contractspec_lib_schema442.FieldType<string, string>;
578
- isOptional: true;
579
- };
580
- timezone: {
581
- type: _contractspec_lib_schema442.FieldType<string, string>;
582
- isOptional: true;
583
- };
584
- imageUrl: {
585
- type: _contractspec_lib_schema442.FieldType<string, string>;
536
+ };
537
+ offset: {
538
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
586
539
  isOptional: true;
587
- };
588
- role: {
589
- type: _contractspec_lib_schema442.FieldType<string, string>;
540
+ };
541
+ search: {
542
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
590
543
  isOptional: true;
591
- };
592
- onboardingCompleted: {
593
- type: _contractspec_lib_schema442.FieldType<boolean, boolean>;
544
+ };
545
+ }>, SchemaModel<{
546
+ users: {
547
+ type: SchemaModel<{
548
+ id: {
549
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
550
+ isOptional: false;
551
+ };
552
+ email: {
553
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
554
+ isOptional: false;
555
+ };
556
+ emailVerified: {
557
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
558
+ isOptional: false;
559
+ };
560
+ name: {
561
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
562
+ isOptional: true;
563
+ };
564
+ firstName: {
565
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
566
+ isOptional: true;
567
+ };
568
+ lastName: {
569
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
570
+ isOptional: true;
571
+ };
572
+ locale: {
573
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
574
+ isOptional: true;
575
+ };
576
+ timezone: {
577
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
578
+ isOptional: true;
579
+ };
580
+ imageUrl: {
581
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
582
+ isOptional: true;
583
+ };
584
+ role: {
585
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
586
+ isOptional: true;
587
+ };
588
+ onboardingCompleted: {
589
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
590
+ isOptional: false;
591
+ };
592
+ createdAt: {
593
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
594
+ isOptional: false;
595
+ };
596
+ }>;
594
597
  isOptional: false;
595
- };
596
- createdAt: {
597
- type: _contractspec_lib_schema442.FieldType<Date, string>;
598
+ isArray: true;
599
+ };
600
+ total: {
601
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
598
602
  isOptional: false;
599
- };
600
- }>;
601
- isOptional: false;
602
- isArray: true;
603
- };
604
- total: {
605
- type: _contractspec_lib_schema442.FieldType<number, number>;
606
- isOptional: false;
607
- };
603
+ };
608
604
  }>, undefined>;
609
- //#endregion
610
- export { CreateUserContract, CreateUserInputModel, DeleteUserContract, DeleteUserInputModel, GetCurrentUserContract, ListUsersContract, ListUsersInputModel, ListUsersOutputModel, SuccessResultModel, UpdateUserContract, UpdateUserInputModel, UserDeletedPayloadModel, UserProfileModel };
611
605
  //# sourceMappingURL=user.d.ts.map