@lssm/lib.identity-rbac 0.0.0-canary-20251217060804 → 0.0.0-canary-20251217060834
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.
- package/dist/contracts/organization.d.ts +185 -185
- package/dist/contracts/rbac.d.ts +118 -118
- package/dist/contracts/user.d.ts +134 -134
- package/dist/entities/index.d.ts +160 -160
- package/dist/entities/organization.d.ts +59 -59
- package/dist/entities/rbac.d.ts +63 -63
- package/dist/entities/user.d.ts +67 -67
- package/package.json +5 -5
package/dist/contracts/rbac.d.ts
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema803 from "@lssm/lib.schema";
|
|
2
2
|
import { SchemaModel } from "@lssm/lib.schema";
|
|
3
3
|
import * as _lssm_lib_contracts42 from "@lssm/lib.contracts";
|
|
4
4
|
|
|
5
5
|
//#region src/contracts/rbac.d.ts
|
|
6
6
|
declare const RoleModel: SchemaModel<{
|
|
7
7
|
id: {
|
|
8
|
-
type:
|
|
8
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
9
9
|
isOptional: false;
|
|
10
10
|
};
|
|
11
11
|
name: {
|
|
12
|
-
type:
|
|
12
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
13
13
|
isOptional: false;
|
|
14
14
|
};
|
|
15
15
|
description: {
|
|
16
|
-
type:
|
|
16
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
17
17
|
isOptional: true;
|
|
18
18
|
};
|
|
19
19
|
permissions: {
|
|
20
|
-
type:
|
|
20
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
21
21
|
isOptional: false;
|
|
22
22
|
isArray: true;
|
|
23
23
|
};
|
|
24
24
|
createdAt: {
|
|
25
|
-
type:
|
|
25
|
+
type: _lssm_lib_schema803.FieldType<Date, string>;
|
|
26
26
|
isOptional: false;
|
|
27
27
|
};
|
|
28
28
|
}>;
|
|
29
29
|
declare const PolicyBindingModel: SchemaModel<{
|
|
30
30
|
id: {
|
|
31
|
-
type:
|
|
31
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
roleId: {
|
|
35
|
-
type:
|
|
35
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
36
36
|
isOptional: false;
|
|
37
37
|
};
|
|
38
38
|
targetType: {
|
|
39
|
-
type:
|
|
39
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
40
40
|
isOptional: false;
|
|
41
41
|
};
|
|
42
42
|
targetId: {
|
|
43
|
-
type:
|
|
43
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
44
44
|
isOptional: false;
|
|
45
45
|
};
|
|
46
46
|
expiresAt: {
|
|
47
|
-
type:
|
|
47
|
+
type: _lssm_lib_schema803.FieldType<Date, string>;
|
|
48
48
|
isOptional: true;
|
|
49
49
|
};
|
|
50
50
|
createdAt: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema803.FieldType<Date, string>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
role: {
|
|
55
55
|
type: SchemaModel<{
|
|
56
56
|
id: {
|
|
57
|
-
type:
|
|
57
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
58
58
|
isOptional: false;
|
|
59
59
|
};
|
|
60
60
|
name: {
|
|
61
|
-
type:
|
|
61
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
62
62
|
isOptional: false;
|
|
63
63
|
};
|
|
64
64
|
description: {
|
|
65
|
-
type:
|
|
65
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
66
66
|
isOptional: true;
|
|
67
67
|
};
|
|
68
68
|
permissions: {
|
|
69
|
-
type:
|
|
69
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
70
70
|
isOptional: false;
|
|
71
71
|
isArray: true;
|
|
72
72
|
};
|
|
73
73
|
createdAt: {
|
|
74
|
-
type:
|
|
74
|
+
type: _lssm_lib_schema803.FieldType<Date, string>;
|
|
75
75
|
isOptional: false;
|
|
76
76
|
};
|
|
77
77
|
}>;
|
|
@@ -80,55 +80,55 @@ declare const PolicyBindingModel: SchemaModel<{
|
|
|
80
80
|
}>;
|
|
81
81
|
declare const PermissionCheckResultModel: SchemaModel<{
|
|
82
82
|
allowed: {
|
|
83
|
-
type:
|
|
83
|
+
type: _lssm_lib_schema803.FieldType<boolean, boolean>;
|
|
84
84
|
isOptional: false;
|
|
85
85
|
};
|
|
86
86
|
reason: {
|
|
87
|
-
type:
|
|
87
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
88
88
|
isOptional: true;
|
|
89
89
|
};
|
|
90
90
|
matchedRole: {
|
|
91
|
-
type:
|
|
91
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
92
92
|
isOptional: true;
|
|
93
93
|
};
|
|
94
94
|
}>;
|
|
95
95
|
declare const CreateRoleInputModel: SchemaModel<{
|
|
96
96
|
name: {
|
|
97
|
-
type:
|
|
97
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
98
98
|
isOptional: false;
|
|
99
99
|
};
|
|
100
100
|
description: {
|
|
101
|
-
type:
|
|
101
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
102
102
|
isOptional: true;
|
|
103
103
|
};
|
|
104
104
|
permissions: {
|
|
105
|
-
type:
|
|
105
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
106
106
|
isOptional: false;
|
|
107
107
|
isArray: true;
|
|
108
108
|
};
|
|
109
109
|
}>;
|
|
110
110
|
declare const UpdateRoleInputModel: SchemaModel<{
|
|
111
111
|
roleId: {
|
|
112
|
-
type:
|
|
112
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
113
113
|
isOptional: false;
|
|
114
114
|
};
|
|
115
115
|
name: {
|
|
116
|
-
type:
|
|
116
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
117
117
|
isOptional: true;
|
|
118
118
|
};
|
|
119
119
|
description: {
|
|
120
|
-
type:
|
|
120
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
121
121
|
isOptional: true;
|
|
122
122
|
};
|
|
123
123
|
permissions: {
|
|
124
|
-
type:
|
|
124
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
125
125
|
isOptional: true;
|
|
126
126
|
isArray: true;
|
|
127
127
|
};
|
|
128
128
|
}>;
|
|
129
129
|
declare const DeleteRoleInputModel: SchemaModel<{
|
|
130
130
|
roleId: {
|
|
131
|
-
type:
|
|
131
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
132
132
|
isOptional: false;
|
|
133
133
|
};
|
|
134
134
|
}>;
|
|
@@ -136,24 +136,24 @@ declare const ListRolesOutputModel: SchemaModel<{
|
|
|
136
136
|
roles: {
|
|
137
137
|
type: SchemaModel<{
|
|
138
138
|
id: {
|
|
139
|
-
type:
|
|
139
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
140
140
|
isOptional: false;
|
|
141
141
|
};
|
|
142
142
|
name: {
|
|
143
|
-
type:
|
|
143
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
144
144
|
isOptional: false;
|
|
145
145
|
};
|
|
146
146
|
description: {
|
|
147
|
-
type:
|
|
147
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
148
148
|
isOptional: true;
|
|
149
149
|
};
|
|
150
150
|
permissions: {
|
|
151
|
-
type:
|
|
151
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
152
152
|
isOptional: false;
|
|
153
153
|
isArray: true;
|
|
154
154
|
};
|
|
155
155
|
createdAt: {
|
|
156
|
-
type:
|
|
156
|
+
type: _lssm_lib_schema803.FieldType<Date, string>;
|
|
157
157
|
isOptional: false;
|
|
158
158
|
};
|
|
159
159
|
}>;
|
|
@@ -163,85 +163,85 @@ declare const ListRolesOutputModel: SchemaModel<{
|
|
|
163
163
|
}>;
|
|
164
164
|
declare const AssignRoleInputModel: SchemaModel<{
|
|
165
165
|
roleId: {
|
|
166
|
-
type:
|
|
166
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
167
167
|
isOptional: false;
|
|
168
168
|
};
|
|
169
169
|
targetType: {
|
|
170
|
-
type:
|
|
170
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
171
171
|
isOptional: false;
|
|
172
172
|
};
|
|
173
173
|
targetId: {
|
|
174
|
-
type:
|
|
174
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
175
175
|
isOptional: false;
|
|
176
176
|
};
|
|
177
177
|
expiresAt: {
|
|
178
|
-
type:
|
|
178
|
+
type: _lssm_lib_schema803.FieldType<Date, string>;
|
|
179
179
|
isOptional: true;
|
|
180
180
|
};
|
|
181
181
|
}>;
|
|
182
182
|
declare const RevokeRoleInputModel: SchemaModel<{
|
|
183
183
|
bindingId: {
|
|
184
|
-
type:
|
|
184
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
185
185
|
isOptional: false;
|
|
186
186
|
};
|
|
187
187
|
}>;
|
|
188
188
|
declare const BindingIdPayloadModel: SchemaModel<{
|
|
189
189
|
bindingId: {
|
|
190
|
-
type:
|
|
190
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
191
191
|
isOptional: false;
|
|
192
192
|
};
|
|
193
193
|
}>;
|
|
194
194
|
declare const CheckPermissionInputModel: SchemaModel<{
|
|
195
195
|
userId: {
|
|
196
|
-
type:
|
|
196
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
197
197
|
isOptional: false;
|
|
198
198
|
};
|
|
199
199
|
orgId: {
|
|
200
|
-
type:
|
|
200
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
201
201
|
isOptional: true;
|
|
202
202
|
};
|
|
203
203
|
permission: {
|
|
204
|
-
type:
|
|
204
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
205
205
|
isOptional: false;
|
|
206
206
|
};
|
|
207
207
|
}>;
|
|
208
208
|
declare const ListUserPermissionsInputModel: SchemaModel<{
|
|
209
209
|
userId: {
|
|
210
|
-
type:
|
|
210
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
211
211
|
isOptional: false;
|
|
212
212
|
};
|
|
213
213
|
orgId: {
|
|
214
|
-
type:
|
|
214
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
215
215
|
isOptional: true;
|
|
216
216
|
};
|
|
217
217
|
}>;
|
|
218
218
|
declare const ListUserPermissionsOutputModel: SchemaModel<{
|
|
219
219
|
permissions: {
|
|
220
|
-
type:
|
|
220
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
221
221
|
isOptional: false;
|
|
222
222
|
isArray: true;
|
|
223
223
|
};
|
|
224
224
|
roles: {
|
|
225
225
|
type: SchemaModel<{
|
|
226
226
|
id: {
|
|
227
|
-
type:
|
|
227
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
228
228
|
isOptional: false;
|
|
229
229
|
};
|
|
230
230
|
name: {
|
|
231
|
-
type:
|
|
231
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
232
232
|
isOptional: false;
|
|
233
233
|
};
|
|
234
234
|
description: {
|
|
235
|
-
type:
|
|
235
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
236
236
|
isOptional: true;
|
|
237
237
|
};
|
|
238
238
|
permissions: {
|
|
239
|
-
type:
|
|
239
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
240
240
|
isOptional: false;
|
|
241
241
|
isArray: true;
|
|
242
242
|
};
|
|
243
243
|
createdAt: {
|
|
244
|
-
type:
|
|
244
|
+
type: _lssm_lib_schema803.FieldType<Date, string>;
|
|
245
245
|
isOptional: false;
|
|
246
246
|
};
|
|
247
247
|
}>;
|
|
@@ -254,38 +254,38 @@ declare const ListUserPermissionsOutputModel: SchemaModel<{
|
|
|
254
254
|
*/
|
|
255
255
|
declare const CreateRoleContract: _lssm_lib_contracts42.ContractSpec<SchemaModel<{
|
|
256
256
|
name: {
|
|
257
|
-
type:
|
|
257
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
258
258
|
isOptional: false;
|
|
259
259
|
};
|
|
260
260
|
description: {
|
|
261
|
-
type:
|
|
261
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
262
262
|
isOptional: true;
|
|
263
263
|
};
|
|
264
264
|
permissions: {
|
|
265
|
-
type:
|
|
265
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
266
266
|
isOptional: false;
|
|
267
267
|
isArray: true;
|
|
268
268
|
};
|
|
269
269
|
}>, SchemaModel<{
|
|
270
270
|
id: {
|
|
271
|
-
type:
|
|
271
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
272
272
|
isOptional: false;
|
|
273
273
|
};
|
|
274
274
|
name: {
|
|
275
|
-
type:
|
|
275
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
276
276
|
isOptional: false;
|
|
277
277
|
};
|
|
278
278
|
description: {
|
|
279
|
-
type:
|
|
279
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
280
280
|
isOptional: true;
|
|
281
281
|
};
|
|
282
282
|
permissions: {
|
|
283
|
-
type:
|
|
283
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
284
284
|
isOptional: false;
|
|
285
285
|
isArray: true;
|
|
286
286
|
};
|
|
287
287
|
createdAt: {
|
|
288
|
-
type:
|
|
288
|
+
type: _lssm_lib_schema803.FieldType<Date, string>;
|
|
289
289
|
isOptional: false;
|
|
290
290
|
};
|
|
291
291
|
}>, undefined>;
|
|
@@ -294,42 +294,42 @@ declare const CreateRoleContract: _lssm_lib_contracts42.ContractSpec<SchemaModel
|
|
|
294
294
|
*/
|
|
295
295
|
declare const UpdateRoleContract: _lssm_lib_contracts42.ContractSpec<SchemaModel<{
|
|
296
296
|
roleId: {
|
|
297
|
-
type:
|
|
297
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
298
298
|
isOptional: false;
|
|
299
299
|
};
|
|
300
300
|
name: {
|
|
301
|
-
type:
|
|
301
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
302
302
|
isOptional: true;
|
|
303
303
|
};
|
|
304
304
|
description: {
|
|
305
|
-
type:
|
|
305
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
306
306
|
isOptional: true;
|
|
307
307
|
};
|
|
308
308
|
permissions: {
|
|
309
|
-
type:
|
|
309
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
310
310
|
isOptional: true;
|
|
311
311
|
isArray: true;
|
|
312
312
|
};
|
|
313
313
|
}>, SchemaModel<{
|
|
314
314
|
id: {
|
|
315
|
-
type:
|
|
315
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
316
316
|
isOptional: false;
|
|
317
317
|
};
|
|
318
318
|
name: {
|
|
319
|
-
type:
|
|
319
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
320
320
|
isOptional: false;
|
|
321
321
|
};
|
|
322
322
|
description: {
|
|
323
|
-
type:
|
|
323
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
324
324
|
isOptional: true;
|
|
325
325
|
};
|
|
326
326
|
permissions: {
|
|
327
|
-
type:
|
|
327
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
328
328
|
isOptional: false;
|
|
329
329
|
isArray: true;
|
|
330
330
|
};
|
|
331
331
|
createdAt: {
|
|
332
|
-
type:
|
|
332
|
+
type: _lssm_lib_schema803.FieldType<Date, string>;
|
|
333
333
|
isOptional: false;
|
|
334
334
|
};
|
|
335
335
|
}>, undefined>;
|
|
@@ -338,40 +338,40 @@ declare const UpdateRoleContract: _lssm_lib_contracts42.ContractSpec<SchemaModel
|
|
|
338
338
|
*/
|
|
339
339
|
declare const DeleteRoleContract: _lssm_lib_contracts42.ContractSpec<SchemaModel<{
|
|
340
340
|
roleId: {
|
|
341
|
-
type:
|
|
341
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
342
342
|
isOptional: false;
|
|
343
343
|
};
|
|
344
344
|
}>, SchemaModel<{
|
|
345
345
|
success: {
|
|
346
|
-
type:
|
|
346
|
+
type: _lssm_lib_schema803.FieldType<boolean, boolean>;
|
|
347
347
|
isOptional: false;
|
|
348
348
|
};
|
|
349
349
|
}>, undefined>;
|
|
350
350
|
/**
|
|
351
351
|
* List all roles.
|
|
352
352
|
*/
|
|
353
|
-
declare const ListRolesContract: _lssm_lib_contracts42.ContractSpec<
|
|
353
|
+
declare const ListRolesContract: _lssm_lib_contracts42.ContractSpec<_lssm_lib_schema803.AnySchemaModel, SchemaModel<{
|
|
354
354
|
roles: {
|
|
355
355
|
type: SchemaModel<{
|
|
356
356
|
id: {
|
|
357
|
-
type:
|
|
357
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
358
358
|
isOptional: false;
|
|
359
359
|
};
|
|
360
360
|
name: {
|
|
361
|
-
type:
|
|
361
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
362
362
|
isOptional: false;
|
|
363
363
|
};
|
|
364
364
|
description: {
|
|
365
|
-
type:
|
|
365
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
366
366
|
isOptional: true;
|
|
367
367
|
};
|
|
368
368
|
permissions: {
|
|
369
|
-
type:
|
|
369
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
370
370
|
isOptional: false;
|
|
371
371
|
isArray: true;
|
|
372
372
|
};
|
|
373
373
|
createdAt: {
|
|
374
|
-
type:
|
|
374
|
+
type: _lssm_lib_schema803.FieldType<Date, string>;
|
|
375
375
|
isOptional: false;
|
|
376
376
|
};
|
|
377
377
|
}>;
|
|
@@ -384,67 +384,67 @@ declare const ListRolesContract: _lssm_lib_contracts42.ContractSpec<_lssm_lib_sc
|
|
|
384
384
|
*/
|
|
385
385
|
declare const AssignRoleContract: _lssm_lib_contracts42.ContractSpec<SchemaModel<{
|
|
386
386
|
roleId: {
|
|
387
|
-
type:
|
|
387
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
388
388
|
isOptional: false;
|
|
389
389
|
};
|
|
390
390
|
targetType: {
|
|
391
|
-
type:
|
|
391
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
392
392
|
isOptional: false;
|
|
393
393
|
};
|
|
394
394
|
targetId: {
|
|
395
|
-
type:
|
|
395
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
396
396
|
isOptional: false;
|
|
397
397
|
};
|
|
398
398
|
expiresAt: {
|
|
399
|
-
type:
|
|
399
|
+
type: _lssm_lib_schema803.FieldType<Date, string>;
|
|
400
400
|
isOptional: true;
|
|
401
401
|
};
|
|
402
402
|
}>, SchemaModel<{
|
|
403
403
|
id: {
|
|
404
|
-
type:
|
|
404
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
405
405
|
isOptional: false;
|
|
406
406
|
};
|
|
407
407
|
roleId: {
|
|
408
|
-
type:
|
|
408
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
409
409
|
isOptional: false;
|
|
410
410
|
};
|
|
411
411
|
targetType: {
|
|
412
|
-
type:
|
|
412
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
413
413
|
isOptional: false;
|
|
414
414
|
};
|
|
415
415
|
targetId: {
|
|
416
|
-
type:
|
|
416
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
417
417
|
isOptional: false;
|
|
418
418
|
};
|
|
419
419
|
expiresAt: {
|
|
420
|
-
type:
|
|
420
|
+
type: _lssm_lib_schema803.FieldType<Date, string>;
|
|
421
421
|
isOptional: true;
|
|
422
422
|
};
|
|
423
423
|
createdAt: {
|
|
424
|
-
type:
|
|
424
|
+
type: _lssm_lib_schema803.FieldType<Date, string>;
|
|
425
425
|
isOptional: false;
|
|
426
426
|
};
|
|
427
427
|
role: {
|
|
428
428
|
type: SchemaModel<{
|
|
429
429
|
id: {
|
|
430
|
-
type:
|
|
430
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
431
431
|
isOptional: false;
|
|
432
432
|
};
|
|
433
433
|
name: {
|
|
434
|
-
type:
|
|
434
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
435
435
|
isOptional: false;
|
|
436
436
|
};
|
|
437
437
|
description: {
|
|
438
|
-
type:
|
|
438
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
439
439
|
isOptional: true;
|
|
440
440
|
};
|
|
441
441
|
permissions: {
|
|
442
|
-
type:
|
|
442
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
443
443
|
isOptional: false;
|
|
444
444
|
isArray: true;
|
|
445
445
|
};
|
|
446
446
|
createdAt: {
|
|
447
|
-
type:
|
|
447
|
+
type: _lssm_lib_schema803.FieldType<Date, string>;
|
|
448
448
|
isOptional: false;
|
|
449
449
|
};
|
|
450
450
|
}>;
|
|
@@ -456,50 +456,50 @@ declare const AssignRoleContract: _lssm_lib_contracts42.ContractSpec<SchemaModel
|
|
|
456
456
|
when: string;
|
|
457
457
|
payload: SchemaModel<{
|
|
458
458
|
id: {
|
|
459
|
-
type:
|
|
459
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
460
460
|
isOptional: false;
|
|
461
461
|
};
|
|
462
462
|
roleId: {
|
|
463
|
-
type:
|
|
463
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
464
464
|
isOptional: false;
|
|
465
465
|
};
|
|
466
466
|
targetType: {
|
|
467
|
-
type:
|
|
467
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
468
468
|
isOptional: false;
|
|
469
469
|
};
|
|
470
470
|
targetId: {
|
|
471
|
-
type:
|
|
471
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
472
472
|
isOptional: false;
|
|
473
473
|
};
|
|
474
474
|
expiresAt: {
|
|
475
|
-
type:
|
|
475
|
+
type: _lssm_lib_schema803.FieldType<Date, string>;
|
|
476
476
|
isOptional: true;
|
|
477
477
|
};
|
|
478
478
|
createdAt: {
|
|
479
|
-
type:
|
|
479
|
+
type: _lssm_lib_schema803.FieldType<Date, string>;
|
|
480
480
|
isOptional: false;
|
|
481
481
|
};
|
|
482
482
|
role: {
|
|
483
483
|
type: SchemaModel<{
|
|
484
484
|
id: {
|
|
485
|
-
type:
|
|
485
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
486
486
|
isOptional: false;
|
|
487
487
|
};
|
|
488
488
|
name: {
|
|
489
|
-
type:
|
|
489
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
490
490
|
isOptional: false;
|
|
491
491
|
};
|
|
492
492
|
description: {
|
|
493
|
-
type:
|
|
493
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
494
494
|
isOptional: true;
|
|
495
495
|
};
|
|
496
496
|
permissions: {
|
|
497
|
-
type:
|
|
497
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
498
498
|
isOptional: false;
|
|
499
499
|
isArray: true;
|
|
500
500
|
};
|
|
501
501
|
createdAt: {
|
|
502
|
-
type:
|
|
502
|
+
type: _lssm_lib_schema803.FieldType<Date, string>;
|
|
503
503
|
isOptional: false;
|
|
504
504
|
};
|
|
505
505
|
}>;
|
|
@@ -512,12 +512,12 @@ declare const AssignRoleContract: _lssm_lib_contracts42.ContractSpec<SchemaModel
|
|
|
512
512
|
*/
|
|
513
513
|
declare const RevokeRoleContract: _lssm_lib_contracts42.ContractSpec<SchemaModel<{
|
|
514
514
|
bindingId: {
|
|
515
|
-
type:
|
|
515
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
516
516
|
isOptional: false;
|
|
517
517
|
};
|
|
518
518
|
}>, SchemaModel<{
|
|
519
519
|
success: {
|
|
520
|
-
type:
|
|
520
|
+
type: _lssm_lib_schema803.FieldType<boolean, boolean>;
|
|
521
521
|
isOptional: false;
|
|
522
522
|
};
|
|
523
523
|
}>, {
|
|
@@ -526,7 +526,7 @@ declare const RevokeRoleContract: _lssm_lib_contracts42.ContractSpec<SchemaModel
|
|
|
526
526
|
when: string;
|
|
527
527
|
payload: SchemaModel<{
|
|
528
528
|
bindingId: {
|
|
529
|
-
type:
|
|
529
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
530
530
|
isOptional: false;
|
|
531
531
|
};
|
|
532
532
|
}>;
|
|
@@ -536,28 +536,28 @@ declare const RevokeRoleContract: _lssm_lib_contracts42.ContractSpec<SchemaModel
|
|
|
536
536
|
*/
|
|
537
537
|
declare const CheckPermissionContract: _lssm_lib_contracts42.ContractSpec<SchemaModel<{
|
|
538
538
|
userId: {
|
|
539
|
-
type:
|
|
539
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
540
540
|
isOptional: false;
|
|
541
541
|
};
|
|
542
542
|
orgId: {
|
|
543
|
-
type:
|
|
543
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
544
544
|
isOptional: true;
|
|
545
545
|
};
|
|
546
546
|
permission: {
|
|
547
|
-
type:
|
|
547
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
548
548
|
isOptional: false;
|
|
549
549
|
};
|
|
550
550
|
}>, SchemaModel<{
|
|
551
551
|
allowed: {
|
|
552
|
-
type:
|
|
552
|
+
type: _lssm_lib_schema803.FieldType<boolean, boolean>;
|
|
553
553
|
isOptional: false;
|
|
554
554
|
};
|
|
555
555
|
reason: {
|
|
556
|
-
type:
|
|
556
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
557
557
|
isOptional: true;
|
|
558
558
|
};
|
|
559
559
|
matchedRole: {
|
|
560
|
-
type:
|
|
560
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
561
561
|
isOptional: true;
|
|
562
562
|
};
|
|
563
563
|
}>, undefined>;
|
|
@@ -566,40 +566,40 @@ declare const CheckPermissionContract: _lssm_lib_contracts42.ContractSpec<Schema
|
|
|
566
566
|
*/
|
|
567
567
|
declare const ListUserPermissionsContract: _lssm_lib_contracts42.ContractSpec<SchemaModel<{
|
|
568
568
|
userId: {
|
|
569
|
-
type:
|
|
569
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
570
570
|
isOptional: false;
|
|
571
571
|
};
|
|
572
572
|
orgId: {
|
|
573
|
-
type:
|
|
573
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
574
574
|
isOptional: true;
|
|
575
575
|
};
|
|
576
576
|
}>, SchemaModel<{
|
|
577
577
|
permissions: {
|
|
578
|
-
type:
|
|
578
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
579
579
|
isOptional: false;
|
|
580
580
|
isArray: true;
|
|
581
581
|
};
|
|
582
582
|
roles: {
|
|
583
583
|
type: SchemaModel<{
|
|
584
584
|
id: {
|
|
585
|
-
type:
|
|
585
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
586
586
|
isOptional: false;
|
|
587
587
|
};
|
|
588
588
|
name: {
|
|
589
|
-
type:
|
|
589
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
590
590
|
isOptional: false;
|
|
591
591
|
};
|
|
592
592
|
description: {
|
|
593
|
-
type:
|
|
593
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
594
594
|
isOptional: true;
|
|
595
595
|
};
|
|
596
596
|
permissions: {
|
|
597
|
-
type:
|
|
597
|
+
type: _lssm_lib_schema803.FieldType<string, string>;
|
|
598
598
|
isOptional: false;
|
|
599
599
|
isArray: true;
|
|
600
600
|
};
|
|
601
601
|
createdAt: {
|
|
602
|
-
type:
|
|
602
|
+
type: _lssm_lib_schema803.FieldType<Date, string>;
|
|
603
603
|
isOptional: false;
|
|
604
604
|
};
|
|
605
605
|
}>;
|