@wssto2/vue-core 0.2.0 → 0.3.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 (265) hide show
  1. package/README.md +33 -0
  2. package/dist/AccessGate.vue_vue_type_script_setup_true_lang-DKX3PH2n.js +22 -0
  3. package/dist/AccountMenuItem.vue_vue_type_script_setup_true_lang-DIGqTLwd.js +76 -0
  4. package/dist/ActionRow.vue_vue_type_script_setup_true_lang-B7Lpfkf6.js +45 -0
  5. package/dist/Activity-DviO0VQ8.js +156 -0
  6. package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-CeKK8_g5.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-CvAnzdc1.js} +48 -47
  7. package/dist/{AlertDialog.vue_vue_type_script_setup_true_lang-e4hzkzg3.js → AlertDialog.vue_vue_type_script_setup_true_lang-CJsMUIUg.js} +1 -1
  8. package/dist/{AsyncSection.vue_vue_type_script_setup_true_lang-CWLB3xsR.js → AsyncSection.vue_vue_type_script_setup_true_lang-CCtthMRd.js} +4 -4
  9. package/dist/{Banner.vue_vue_type_script_setup_true_lang-n_wGPIIu.js → Banner.vue_vue_type_script_setup_true_lang-Cib_YYpr.js} +1 -1
  10. package/dist/{BottomDock.vue_vue_type_script_setup_true_lang-DhlMnPC2.js → BottomDock.vue_vue_type_script_setup_true_lang-CjN7xYEr.js} +1 -1
  11. package/dist/{Button.vue_vue_type_script_setup_true_lang-B1eZgLae.js → Button.vue_vue_type_script_setup_true_lang-CYil8h9z.js} +1 -1
  12. package/dist/Changes-DlT5mN9G.js +129 -0
  13. package/dist/CollectionPage.vue_vue_type_script_setup_true_lang-CXILftEc.js +1481 -0
  14. package/dist/DataTable.vue_vue_type_script_setup_true_lang-DSYgS9lC.js +52 -0
  15. package/dist/DateField.vue_vue_type_script_setup_true_lang-DMVjNsaM.js +1099 -0
  16. package/dist/{DiscardChangesModal.vue_vue_type_script_setup_true_lang-DyhYHRyz.js → DiscardChangesModal.vue_vue_type_script_setup_true_lang-Cb3xJI1x.js} +1 -1
  17. package/dist/{EmptyState.vue_vue_type_script_setup_true_lang-BeGpHMUP.js → EmptyState.vue_vue_type_script_setup_true_lang-C2ZYIT9F.js} +1 -1
  18. package/dist/FormErrors.vue_vue_type_script_setup_true_lang-DVgNBQ8p.js +276 -0
  19. package/dist/FormGroup.vue_vue_type_script_setup_true_lang-0mfG8TkU.js +136 -0
  20. package/dist/FormView.vue_vue_type_script_setup_true_lang-Bz2m3AtF.js +38 -0
  21. package/dist/General-BD-Hcz0a.js +145 -0
  22. package/dist/{Icon.vue_vue_type_script_lang-DtC4_mkz.js → Icon.vue_vue_type_script_lang-VvcV2Bzo.js} +46 -33
  23. package/dist/{IconTile.vue_vue_type_script_setup_true_lang-Csfv6Sel.js → IconTile.vue_vue_type_script_setup_true_lang-D7QgnUyN.js} +1 -1
  24. package/dist/KeyValue.vue_vue_type_script_setup_true_lang-wcZcvnow.js +35 -0
  25. package/dist/{LeaveGuardRoot.vue_vue_type_script_setup_true_lang-CvwoT1JF.js → LeaveGuardRoot.vue_vue_type_script_setup_true_lang-C2udmeEA.js} +2 -2
  26. package/dist/{Menu.vue_vue_type_script_setup_true_lang-CrMj6KPD.js → Menu.vue_vue_type_script_setup_true_lang-BNAjx9tj.js} +61 -57
  27. package/dist/{Modal.vue_vue_type_script_setup_true_lang-BQZM49gC.js → Modal.vue_vue_type_script_setup_true_lang-D7SwVPpL.js} +4 -4
  28. package/dist/NewRolePage-Dla4YnMs.js +42 -0
  29. package/dist/NoAccess.vue_vue_type_script_setup_true_lang-8m9cNptR.js +31 -0
  30. package/dist/NumberField.vue_vue_type_script_setup_true_lang-CYRg7Kfg.js +113 -0
  31. package/dist/OtpInput.vue_vue_type_script_setup_true_lang-gp4FfWAH.js +95 -0
  32. package/dist/PageBar.vue_vue_type_script_setup_true_lang-Cfr5xsJx.js +47 -0
  33. package/dist/{Panel.vue_vue_type_script_setup_true_lang-BQmv3cLb.js → Panel.vue_vue_type_script_setup_true_lang-BCRxRK4D.js} +1 -1
  34. package/dist/{PhotoViewer.vue_vue_type_script_setup_true_lang-ElDizaW2.js → PhotoViewer.vue_vue_type_script_setup_true_lang-B3Q4dhqJ.js} +1 -1
  35. package/dist/Popover.vue_vue_type_script_setup_true_lang-Dx-tDhNE.js +125 -0
  36. package/dist/ProfilePage-OJMQ8cr8.js +691 -0
  37. package/dist/{ProgressTrack.vue_vue_type_script_setup_true_lang-1DDaNs2W.js → ProgressTrack.vue_vue_type_script_setup_true_lang-B6Prw9hi.js} +2 -2
  38. package/dist/RecordHeader.vue_vue_type_script_setup_true_lang-DKsaKlAq.js +64 -0
  39. package/dist/ResourcePage.vue_vue_type_script_setup_true_lang-CJcKa9SW.js +173 -0
  40. package/dist/RoleEditor.vue_vue_type_script_setup_true_lang-DuEPOmjI.js +299 -0
  41. package/dist/RolePage-bZzv_E4l.js +315 -0
  42. package/dist/RolesPage-BniZv0nB.js +115 -0
  43. package/dist/SectionIntro.vue_vue_type_script_setup_true_lang-CZtPrmXD.js +23 -0
  44. package/dist/SectionList.vue_vue_type_script_setup_true_lang-BKP_bge8.js +148 -0
  45. package/dist/SectionNavigator.vue_vue_type_script_setup_true_lang-BgGEGxSI.js +314 -0
  46. package/dist/SegmentedField.vue_vue_type_script_setup_true_lang-BZ9UdgA1.js +58 -0
  47. package/dist/SelectField.vue_vue_type_script_setup_true_lang-BiGaEKBQ.js +422 -0
  48. package/dist/SessionList.vue_vue_type_script_setup_true_lang-DUQpr7gb.js +111 -0
  49. package/dist/Sessions-Co5-xdeb.js +96 -0
  50. package/dist/Sheet.vue_vue_type_script_setup_true_lang-bHYzx7-J.js +142 -0
  51. package/dist/SignIn-BWwFbxki.js +140 -0
  52. package/dist/SignInPage-FnLtoi2q.js +60 -0
  53. package/dist/SignInTable.vue_vue_type_script_setup_true_lang-Dnx3T_42.js +79 -0
  54. package/dist/SignIns-3UcI64_h.js +66 -0
  55. package/dist/SwipeActions.vue_vue_type_script_setup_true_lang-4I8m27ol.js +93 -0
  56. package/dist/Tabs.vue_vue_type_script_setup_true_lang-BeGaydRr.js +155 -0
  57. package/dist/TextField.vue_vue_type_script_setup_true_lang-C_FMf3Vc.js +269 -0
  58. package/dist/TextareaField.vue_vue_type_script_setup_true_lang-CU3KTKIJ.js +127 -0
  59. package/dist/{Timestamp.vue_vue_type_script_setup_true_lang-CSY_mMm1.js → Timestamp.vue_vue_type_script_setup_true_lang-1RJGKxbD.js} +1 -1
  60. package/dist/UserRecord-Ci8HfwbX.js +267 -0
  61. package/dist/UsersList-vEJ-cgkT.js +155 -0
  62. package/dist/ViewTabs.vue_vue_type_script_setup_true_lang-ByqTU2JT.js +28 -0
  63. package/dist/access/AddRoleDialog.vue.d.ts +19 -0
  64. package/dist/access/BindingRow.vue.d.ts +19 -0
  65. package/dist/access/EffectiveAccess.vue.d.ts +12 -0
  66. package/dist/access/NewRolePage.vue.d.ts +2 -0
  67. package/dist/access/PermissionTree.vue.d.ts +13 -0
  68. package/dist/access/PersonAccess.vue.d.ts +21 -0
  69. package/dist/access/ReplaceRoleDialog.vue.d.ts +17 -0
  70. package/dist/access/RoleCompareDialog.vue.d.ts +14 -0
  71. package/dist/access/RoleEditor.vue.d.ts +28 -0
  72. package/dist/access/RolePage.vue.d.ts +2 -0
  73. package/dist/access/RolesPage.vue.d.ts +2 -0
  74. package/dist/access/api.d.ts +26 -0
  75. package/dist/access/catalogue.d.ts +64 -0
  76. package/dist/access/context.d.ts +20 -0
  77. package/dist/access/effective.d.ts +42 -0
  78. package/dist/access/feature.d.ts +27 -0
  79. package/dist/access/index.d.ts +13 -0
  80. package/dist/access/index.js +15 -0
  81. package/dist/access/labels.d.ts +35 -0
  82. package/dist/access/refusals.d.ts +6 -0
  83. package/dist/access/routes.d.ts +45 -0
  84. package/dist/access/scopes.d.ts +20 -0
  85. package/dist/app/contributions.d.ts +1 -1
  86. package/dist/app/feature.d.ts +8 -0
  87. package/dist/app/index.js +259 -296
  88. package/dist/bottomDock-BZEiOPYZ.js +12 -0
  89. package/dist/button/Button.vue.d.ts +3 -3
  90. package/dist/button/index.js +1 -1
  91. package/dist/chrome-BS3xJcad.js +93 -0
  92. package/dist/client/client.d.ts +13 -0
  93. package/dist/client/index.d.ts +3 -1
  94. package/dist/client/index.js +19 -138
  95. package/dist/client/route.d.ts +59 -0
  96. package/dist/client-Bw0aM5Gu.js +147 -0
  97. package/dist/closeOverlays-CjVsIrpL.js +8 -0
  98. package/dist/collection/http.d.ts +4 -2
  99. package/dist/collection/index.js +74 -2428
  100. package/dist/content/index.js +37 -66
  101. package/dist/contributions-CDDg3fKp.js +26 -0
  102. package/dist/controls/DateButton.vue.d.ts +1 -1
  103. package/dist/controls/PopupButton.vue.d.ts +1 -1
  104. package/dist/controls/index.js +11 -10
  105. package/dist/defineRoutes-BGAdiIrt.js +19 -0
  106. package/dist/{describeError-l5T9b8Uv.js → describeError-Ctga6GcS.js} +1 -1
  107. package/dist/environment-Dva-SG8D.js +6 -0
  108. package/dist/{error-Bb_dr_Ay.js → error-CD7x0Jrz.js} +2 -2
  109. package/dist/feature-DdUAfyi4.js +25 -0
  110. package/dist/fieldMessages-C3Rpbktw.js +25 -0
  111. package/dist/form/CheckboxField.vue.d.ts +1 -1
  112. package/dist/form/CommandDialog.vue.d.ts +1 -1
  113. package/dist/form/DateField.vue.d.ts +1 -1
  114. package/dist/form/DateTimeField.vue.d.ts +1 -1
  115. package/dist/form/EditorPage.vue.d.ts +1 -1
  116. package/dist/form/Field.vue.d.ts +1 -1
  117. package/dist/form/FileField.vue.d.ts +1 -1
  118. package/dist/form/FormGroup.vue.d.ts +1 -1
  119. package/dist/form/FormGroupButton.vue.d.ts +1 -1
  120. package/dist/form/FormRow.vue.d.ts +1 -1
  121. package/dist/form/I18nField.vue.d.ts +3 -3
  122. package/dist/form/MoneyField.vue.d.ts +1 -1
  123. package/dist/form/MonthYearField.vue.d.ts +1 -1
  124. package/dist/form/NumberCell.vue.d.ts +1 -1
  125. package/dist/form/NumberField.vue.d.ts +2 -2
  126. package/dist/form/OtpInput.vue.d.ts +2 -2
  127. package/dist/form/PhotoField.vue.d.ts +1 -1
  128. package/dist/form/SwitchField.vue.d.ts +1 -1
  129. package/dist/form/TextField.vue.d.ts +3 -3
  130. package/dist/form/TextareaField.vue.d.ts +3 -3
  131. package/dist/form/TimeField.vue.d.ts +1 -1
  132. package/dist/form/date/DatePickerSheet.vue.d.ts +1 -1
  133. package/dist/form/date/MonthYearPanel.vue.d.ts +1 -1
  134. package/dist/form/index.js +1262 -3430
  135. package/dist/guards-Cd1V28oG.js +51 -0
  136. package/dist/http-DGGSKWvU.js +193 -0
  137. package/dist/i18n/index.d.ts +281 -0
  138. package/dist/i18n/index.js +50 -50
  139. package/dist/icon/core.d.ts +13 -0
  140. package/dist/icon/index.js +1 -1
  141. package/dist/identity/ImpersonationBanner.vue.d.ts +2 -0
  142. package/dist/identity/LocaleSync.vue.d.ts +2 -0
  143. package/dist/identity/SessionExpiry.vue.d.ts +2 -0
  144. package/dist/identity/SignInAsButton.vue.d.ts +15 -0
  145. package/dist/identity/SignInPage.vue.d.ts +2 -0
  146. package/dist/identity/context.d.ts +7 -0
  147. package/dist/identity/feature.d.ts +16 -0
  148. package/dist/identity/fieldMessages.d.ts +15 -0
  149. package/dist/identity/index.d.ts +16 -0
  150. package/dist/identity/index.js +18 -0
  151. package/dist/identity/profile/DetailsPanel.vue.d.ts +11 -0
  152. package/dist/identity/profile/EmailChangeDialog.vue.d.ts +14 -0
  153. package/dist/identity/profile/EmailPanel.vue.d.ts +11 -0
  154. package/dist/identity/profile/PanelActions.vue.d.ts +17 -0
  155. package/dist/identity/profile/PasswordPanel.vue.d.ts +2 -0
  156. package/dist/identity/profile/ProfileMenuItem.vue.d.ts +2 -0
  157. package/dist/identity/profile/ProfilePage.vue.d.ts +2 -0
  158. package/dist/identity/profile/SessionsPanel.vue.d.ts +2 -0
  159. package/dist/identity/profile/SignInsPanel.vue.d.ts +2 -0
  160. package/dist/identity/profile/VerifyCode.vue.d.ts +49 -0
  161. package/dist/identity/profile/routes.d.ts +13 -0
  162. package/dist/identity/session.d.ts +30 -0
  163. package/dist/identity/shared/ActionRow.vue.d.ts +20 -0
  164. package/dist/identity/shared/ChangeFeed.vue.d.ts +11 -0
  165. package/dist/identity/shared/PageBar.vue.d.ts +12 -0
  166. package/dist/identity/shared/SectionIntro.vue.d.ts +16 -0
  167. package/dist/identity/shared/SessionList.vue.d.ts +19 -0
  168. package/dist/identity/shared/SignInTable.vue.d.ts +11 -0
  169. package/dist/identity/shared/ViewTabs.vue.d.ts +23 -0
  170. package/dist/identity/shared/signInEvents.d.ts +9 -0
  171. package/dist/identity/signIn.d.ts +27 -0
  172. package/dist/identity/useSignInForm.d.ts +20 -0
  173. package/dist/identity/user.d.ts +6 -0
  174. package/dist/identity/users/DeactivateDialog.vue.d.ts +18 -0
  175. package/dist/identity/users/NewUserDialog.vue.d.ts +9 -0
  176. package/dist/identity/users/SetPasswordDialog.vue.d.ts +16 -0
  177. package/dist/identity/users/UserRecord.vue.d.ts +2 -0
  178. package/dist/identity/users/UsersList.vue.d.ts +2 -0
  179. package/dist/identity/users/access.d.ts +4 -0
  180. package/dist/identity/users/context.d.ts +9 -0
  181. package/dist/identity/users/feature.d.ts +34 -0
  182. package/dist/identity/users/languages.d.ts +4 -0
  183. package/dist/identity/users/list.d.ts +8 -0
  184. package/dist/identity/users/person.d.ts +26 -0
  185. package/dist/identity/users/personSections.d.ts +22 -0
  186. package/dist/identity/users/routes.d.ts +22 -0
  187. package/dist/identity/users/sections/Activity.vue.d.ts +2 -0
  188. package/dist/identity/users/sections/Changes.vue.d.ts +2 -0
  189. package/dist/identity/users/sections/General.vue.d.ts +2 -0
  190. package/dist/identity/users/sections/Sessions.vue.d.ts +2 -0
  191. package/dist/identity/users/sections/SignIn.vue.d.ts +2 -0
  192. package/dist/identity/users/sections/SignIns.vue.d.ts +2 -0
  193. package/dist/identity/users/status.d.ts +4 -0
  194. package/dist/index-B2dbYZR9.js +706 -0
  195. package/dist/index-BAcl44SC.js +459 -0
  196. package/dist/index.d.ts +1 -1
  197. package/dist/index.js +1 -1
  198. package/dist/internal/languageName.d.ts +2 -0
  199. package/dist/keepAlive-WYQGRhuz.js +48 -0
  200. package/dist/languageName-CItV_SOv.js +11 -0
  201. package/dist/languages-BShG9LpE.js +10 -0
  202. package/dist/leaveGuard-Cc8yeLxM.js +72 -0
  203. package/dist/modal/Modal.vue.d.ts +1 -1
  204. package/dist/modal/index.js +5 -5
  205. package/dist/modules/access/entities.d.ts +112 -0
  206. package/dist/modules/access/routes.d.ts +67 -0
  207. package/dist/modules/access/schemas.d.ts +73 -0
  208. package/dist/modules/identity/entities.d.ts +150 -0
  209. package/dist/modules/identity/routes.d.ts +118 -0
  210. package/dist/modules/identity/schemas.d.ts +145 -0
  211. package/dist/{navigation-B33ikiCS.js → navigation-BPWa63ge.js} +21 -20
  212. package/dist/neighbors-D0WRBxXI.js +86 -0
  213. package/dist/{options-DAkBtYkI.js → options-BXkMR63B.js} +51 -52
  214. package/dist/overlay/AlertDialog.vue.d.ts +3 -3
  215. package/dist/overlay/Popover.vue.d.ts +1 -1
  216. package/dist/overlay/closeOverlays.d.ts +7 -0
  217. package/dist/overlay/index.js +21 -20
  218. package/dist/page/AdaptivePageShell.vue.d.ts +2 -2
  219. package/dist/page/ResourceHeader.vue.d.ts +2 -2
  220. package/dist/page/index.js +99 -457
  221. package/dist/phone/PhoneField.vue.d.ts +2 -2
  222. package/dist/phone/index.js +2 -2
  223. package/dist/platform/index.d.ts +2 -2
  224. package/dist/platform/index.js +73 -90
  225. package/dist/platform/platform.d.ts +2 -2
  226. package/dist/platform/session.d.ts +22 -1
  227. package/dist/platform-hunMqFdB.js +255 -0
  228. package/dist/resource/index.js +8 -248
  229. package/dist/routeResource-DstM0hvf.js +82 -0
  230. package/dist/router/guards.d.ts +7 -1
  231. package/dist/router/index.js +23 -37
  232. package/dist/router/navigation.d.ts +1 -1
  233. package/dist/rowLayout-BI7a3Kom.js +603 -0
  234. package/dist/sectionIndex-BS0ic5W7.js +86 -0
  235. package/dist/{sections-LtxV5Mtk.js → sections-BEqW1dOc.js} +1 -1
  236. package/dist/shell/AccountMenuItem.vue.d.ts +1 -1
  237. package/dist/shell/BackofficeShell.vue.d.ts +2 -2
  238. package/dist/shell/NavigationList.vue.d.ts +1 -1
  239. package/dist/shell/ShellBrand.vue.d.ts +1 -1
  240. package/dist/shell/backofficeShell.d.ts +1 -1
  241. package/dist/shell/identity.d.ts +1 -1
  242. package/dist/shell/index.js +507 -575
  243. package/dist/state/ProgressTrack.vue.d.ts +1 -1
  244. package/dist/state/index.js +59 -92
  245. package/dist/status-C9aXR-Jb.js +33 -0
  246. package/dist/styles.css +1 -1
  247. package/dist/suggestions-BJAqOj4c.js +138 -0
  248. package/dist/testing/index.js +1 -1
  249. package/dist/toast-D9Z5To38.js +13 -0
  250. package/dist/useCommand-BgRwnYlV.js +135 -0
  251. package/dist/useLoad-CYRVx6HW.js +39 -0
  252. package/dist/useResourceForm-Bgc9jMcu.js +52 -0
  253. package/dist/useSaveChrome-chi6D3HY.js +25 -0
  254. package/dist/useSheetDrag-OsD6Eb6I.js +72 -0
  255. package/package.json +22 -5
  256. package/dist/NoAccess.vue_vue_type_script_setup_true_lang-OKW8pKYU.js +0 -78
  257. package/dist/SectionList.vue_vue_type_script_setup_true_lang-L9ita_Kx.js +0 -230
  258. package/dist/SelectField.vue_vue_type_script_setup_true_lang-DZTrU8NJ.js +0 -661
  259. package/dist/Sheet.vue_vue_type_script_setup_true_lang-CtkJ-4e3.js +0 -210
  260. package/dist/SwipeActions.vue_vue_type_script_setup_true_lang-CGTuEnTv.js +0 -243
  261. package/dist/chrome-D9pwD6iS.js +0 -101
  262. package/dist/environment-D3nozt9a.js +0 -75
  263. package/dist/feature-DyDtyMLU.js +0 -47
  264. package/dist/platform-jqlKVJ2e.js +0 -244
  265. package/dist/toast-DvrHQ6Ag.js +0 -131
@@ -0,0 +1,112 @@
1
+ export type BindableRoles = {
2
+ roles: Role[];
3
+ };
4
+ export type Binding = {
5
+ id: number;
6
+ role: RoleSummary;
7
+ scope: Scope;
8
+ created_by: PersonRef | null;
9
+ created_at: string;
10
+ };
11
+ export type Constraint = {
12
+ attribute: string;
13
+ values: string[];
14
+ };
15
+ export type EffectiveGrant = {
16
+ qualifier: string;
17
+ scope: Scope;
18
+ attrs: Constraint[];
19
+ binding_id: number;
20
+ role_key: string;
21
+ role_name: string;
22
+ };
23
+ export type EffectivePermission = {
24
+ permission: string;
25
+ grants: EffectiveGrant[];
26
+ unavailable: boolean;
27
+ };
28
+ export type Grant = {
29
+ permission: string;
30
+ qualifier: string;
31
+ };
32
+ export type GrantDifference = {
33
+ permission: string;
34
+ role: string;
35
+ other: string;
36
+ };
37
+ export type PersonRef = {
38
+ id: number;
39
+ name: string;
40
+ };
41
+ export type Replaced = {
42
+ rebound: number;
43
+ };
44
+ export type Role = {
45
+ ref: string;
46
+ id: number | null;
47
+ key: string | null;
48
+ name: string;
49
+ description: string;
50
+ predefined: boolean;
51
+ computed: boolean;
52
+ attrs: Constraint[];
53
+ holders: number;
54
+ permission_count: number;
55
+ grants: Grant[];
56
+ };
57
+ export type RoleComparison = {
58
+ only_in_role: Grant[];
59
+ only_in_other: Grant[];
60
+ different: GrantDifference[];
61
+ };
62
+ export type RoleHolder = {
63
+ subject: SubjectRef;
64
+ name: string;
65
+ scope: Scope;
66
+ };
67
+ export type RoleHolders = {
68
+ holders: RoleHolder[];
69
+ };
70
+ export type RoleList = {
71
+ roles: RoleSummary[];
72
+ };
73
+ export type RoleSummary = {
74
+ ref: string;
75
+ id: number | null;
76
+ key: string | null;
77
+ name: string;
78
+ description: string;
79
+ predefined: boolean;
80
+ computed: boolean;
81
+ attrs: Constraint[];
82
+ holders: number;
83
+ permission_count: number;
84
+ };
85
+ export type Scope = {
86
+ level: string;
87
+ id: number | null;
88
+ name: string | null;
89
+ };
90
+ export type ScopeOption = {
91
+ level: string;
92
+ id: number;
93
+ name: string;
94
+ parent_level: string;
95
+ parent_id: number | null;
96
+ };
97
+ export type ScopeOptions = {
98
+ root_level: string;
99
+ root: boolean;
100
+ places: ScopeOption[];
101
+ };
102
+ export type SubjectAccess = {
103
+ subject: SubjectRef;
104
+ bindings: Binding[];
105
+ effective: EffectivePermission[];
106
+ can_manage: boolean;
107
+ };
108
+ export type SubjectKind = "user" | "service";
109
+ export type SubjectRef = {
110
+ kind: SubjectKind;
111
+ id: number;
112
+ };
@@ -0,0 +1,67 @@
1
+ import type { BindableRoles, Binding, Replaced, Role, RoleComparison, RoleHolders, RoleList, ScopeOptions, SubjectAccess } from "./entities";
2
+ export declare const accessRoutes: {
3
+ readonly rolesList: import("../../client").ApiRoute<void, RoleList>;
4
+ readonly rolesShow: import("../../client").ApiRoute<{
5
+ ref: string;
6
+ }, Role>;
7
+ readonly rolesHolders: import("../../client").ApiRoute<{
8
+ ref: string;
9
+ }, RoleHolders>;
10
+ readonly rolesCompare: import("../../client").ApiRoute<{
11
+ ref: string;
12
+ with: string;
13
+ }, RoleComparison>;
14
+ readonly rolesCreate: import("../../client").ApiRoute<{
15
+ name: string;
16
+ description: string;
17
+ grants: {
18
+ permission: string;
19
+ qualifier: string;
20
+ }[];
21
+ attrs: {
22
+ attribute: string;
23
+ values: string[];
24
+ }[];
25
+ }, Role>;
26
+ readonly rolesUpdate: import("../../client").ApiRoute<{
27
+ ref: string;
28
+ name: string;
29
+ description: string;
30
+ grants: {
31
+ permission: string;
32
+ qualifier: string;
33
+ }[];
34
+ attrs: {
35
+ attribute: string;
36
+ values: string[];
37
+ }[];
38
+ }, Role>;
39
+ readonly rolesDelete: import("../../client").ApiRoute<{
40
+ ref: string;
41
+ }, void>;
42
+ readonly rolesReplace: import("../../client").ApiRoute<{
43
+ ref: string;
44
+ with: string;
45
+ }, Replaced>;
46
+ readonly bindable: import("../../client").ApiRoute<{
47
+ level: string;
48
+ scope_id: number;
49
+ }, BindableRoles>;
50
+ readonly subjectsAccess: import("../../client").ApiRoute<{
51
+ id: number;
52
+ }, SubjectAccess>;
53
+ readonly subjectsScopes: import("../../client").ApiRoute<{
54
+ id: number;
55
+ }, ScopeOptions>;
56
+ readonly subjectsBind: import("../../client").ApiRoute<{
57
+ id: number;
58
+ role_ref: string;
59
+ level: string;
60
+ scope_id?: number | null | undefined;
61
+ }, Binding>;
62
+ readonly subjectsUnbind: import("../../client").ApiRoute<{
63
+ id: number;
64
+ binding_id: number;
65
+ }, void>;
66
+ readonly me: import("../../client").RawRoute;
67
+ };
@@ -0,0 +1,73 @@
1
+ import { z } from 'zod';
2
+ export declare const BindInputSchema: z.ZodObject<{
3
+ id: z.ZodNumber;
4
+ role_ref: z.ZodString;
5
+ level: z.ZodString;
6
+ scope_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7
+ }, z.core.$strip>;
8
+ export type BindInput = z.infer<typeof BindInputSchema>;
9
+ export declare const BindableInputSchema: z.ZodObject<{
10
+ level: z.ZodString;
11
+ scope_id: z.ZodNumber;
12
+ }, z.core.$strip>;
13
+ export type BindableInput = z.infer<typeof BindableInputSchema>;
14
+ export declare const CompareInputSchema: z.ZodObject<{
15
+ ref: z.ZodString;
16
+ with: z.ZodString;
17
+ }, z.core.$strip>;
18
+ export type CompareInput = z.infer<typeof CompareInputSchema>;
19
+ export declare const ConstraintSchema: z.ZodObject<{
20
+ attribute: z.ZodString;
21
+ values: z.ZodArray<z.ZodString>;
22
+ }, z.core.$strip>;
23
+ export type Constraint = z.infer<typeof ConstraintSchema>;
24
+ export declare const GrantInputSchema: z.ZodObject<{
25
+ permission: z.ZodString;
26
+ qualifier: z.ZodString;
27
+ }, z.core.$strip>;
28
+ export type GrantInput = z.infer<typeof GrantInputSchema>;
29
+ export declare const CreateRoleInputSchema: z.ZodObject<{
30
+ name: z.ZodString;
31
+ description: z.ZodString;
32
+ grants: z.ZodArray<z.ZodObject<{
33
+ permission: z.ZodString;
34
+ qualifier: z.ZodString;
35
+ }, z.core.$strip>>;
36
+ attrs: z.ZodArray<z.ZodObject<{
37
+ attribute: z.ZodString;
38
+ values: z.ZodArray<z.ZodString>;
39
+ }, z.core.$strip>>;
40
+ }, z.core.$strip>;
41
+ export type CreateRoleInput = z.infer<typeof CreateRoleInputSchema>;
42
+ export declare const ReplaceRoleInputSchema: z.ZodObject<{
43
+ ref: z.ZodString;
44
+ with: z.ZodString;
45
+ }, z.core.$strip>;
46
+ export type ReplaceRoleInput = z.infer<typeof ReplaceRoleInputSchema>;
47
+ export declare const RoleInputSchema: z.ZodObject<{
48
+ ref: z.ZodString;
49
+ }, z.core.$strip>;
50
+ export type RoleInput = z.infer<typeof RoleInputSchema>;
51
+ export declare const SubjectInputSchema: z.ZodObject<{
52
+ id: z.ZodNumber;
53
+ }, z.core.$strip>;
54
+ export type SubjectInput = z.infer<typeof SubjectInputSchema>;
55
+ export declare const UnbindInputSchema: z.ZodObject<{
56
+ id: z.ZodNumber;
57
+ binding_id: z.ZodNumber;
58
+ }, z.core.$strip>;
59
+ export type UnbindInput = z.infer<typeof UnbindInputSchema>;
60
+ export declare const UpdateRoleInputSchema: z.ZodObject<{
61
+ ref: z.ZodString;
62
+ name: z.ZodString;
63
+ description: z.ZodString;
64
+ grants: z.ZodArray<z.ZodObject<{
65
+ permission: z.ZodString;
66
+ qualifier: z.ZodString;
67
+ }, z.core.$strip>>;
68
+ attrs: z.ZodArray<z.ZodObject<{
69
+ attribute: z.ZodString;
70
+ values: z.ZodArray<z.ZodString>;
71
+ }, z.core.$strip>>;
72
+ }, z.core.$strip>;
73
+ export type UpdateRoleInput = z.infer<typeof UpdateRoleInputSchema>;
@@ -0,0 +1,150 @@
1
+ export type ActivityAction = "created" | "changed" | "deleted";
2
+ export type ActivityRow = {
3
+ id: number;
4
+ area: string;
5
+ record_type: string;
6
+ record_id: number;
7
+ action: ActivityAction;
8
+ signed_in_as: PersonRef | null;
9
+ created_at: string;
10
+ };
11
+ export type ChangeAction = "created" | "updated" | "deactivated" | "activated" | "password" | "email" | "profile";
12
+ export type ChangeRow = {
13
+ id: number;
14
+ action: ChangeAction;
15
+ fields: string[];
16
+ before: Record<string, string>;
17
+ after: Record<string, string>;
18
+ actor: PersonRef | null;
19
+ created_at: string;
20
+ };
21
+ export type ChangeView = "all" | "access" | "details";
22
+ export type ClauseInfo = {
23
+ scope: Scope;
24
+ qualifier: number;
25
+ attrs?: Record<string, string[]>;
26
+ role?: string;
27
+ binding_id?: number;
28
+ };
29
+ export type Impersonator = {
30
+ id: number;
31
+ name: string;
32
+ };
33
+ export type MyAccess = {
34
+ subject: Subject;
35
+ root: boolean;
36
+ permissions: Record<string, PermissionAccess>;
37
+ unavailable?: string[];
38
+ };
39
+ export type Node = {
40
+ i18n: string;
41
+ icon?: string;
42
+ route?: string;
43
+ children?: Node[];
44
+ permissions?: string[];
45
+ };
46
+ export type PendingEmail = {
47
+ email: string;
48
+ expires_at: string;
49
+ resend_available_at: string;
50
+ attempts_left: number;
51
+ };
52
+ export type PermissionAccess = {
53
+ scope: Scope;
54
+ qualifier: number;
55
+ clauses: ClauseInfo[];
56
+ };
57
+ export type PersonRef = {
58
+ id: number;
59
+ name: string;
60
+ };
61
+ export type ProfileResponse = {
62
+ id: number;
63
+ login: string;
64
+ name: string;
65
+ email: string;
66
+ phone: string;
67
+ locale: string;
68
+ created_at: string;
69
+ pending_email: PendingEmail | null;
70
+ };
71
+ export type Scope = {
72
+ level: string;
73
+ id?: number;
74
+ };
75
+ export type SessionItem = {
76
+ id: number;
77
+ device: string;
78
+ ip: string;
79
+ opened_by: PersonRef | null;
80
+ current: boolean;
81
+ last_used_at: string;
82
+ expires_at: string;
83
+ created_at: string;
84
+ };
85
+ export type SessionList = {
86
+ sessions: SessionItem[];
87
+ };
88
+ export type SessionResponse = {
89
+ user: unknown;
90
+ expires_at: string;
91
+ impersonator?: Impersonator | null;
92
+ access: MyAccess;
93
+ navigation?: Node[];
94
+ };
95
+ export type SignInEvent = "signed_in" | "wrong_password" | "locked_out" | "refused_inactive" | "signed_in_as" | "unlocked" | "signed_out_everywhere" | "session_revoked";
96
+ export type SignInRow = {
97
+ id: number;
98
+ event: SignInEvent;
99
+ ip: string;
100
+ device: string;
101
+ actor: PersonRef | null;
102
+ created_at: string;
103
+ };
104
+ export type SignInView = "all" | "failed";
105
+ export type Status = "active" | "locked" | "inactive";
106
+ export type Subject = {
107
+ kind: string;
108
+ id: number;
109
+ };
110
+ export type UnlockResult = {
111
+ unlocked: boolean;
112
+ };
113
+ export type User = {
114
+ id: number;
115
+ login: string;
116
+ name: string;
117
+ email: string;
118
+ locale: string;
119
+ };
120
+ export type UserDetail = {
121
+ id: number;
122
+ login: string;
123
+ name: string;
124
+ email: string;
125
+ phone: string;
126
+ locale: string;
127
+ active: boolean;
128
+ status: Status;
129
+ last_sign_in: string | null;
130
+ locked_until: string | null;
131
+ created_at: string;
132
+ };
133
+ export type UserRow = {
134
+ id: number;
135
+ login: string;
136
+ name: string;
137
+ email: string;
138
+ phone: string;
139
+ locale: string;
140
+ active: boolean;
141
+ status: Status;
142
+ last_sign_in: string | null;
143
+ locked_until: string | null;
144
+ created_at: string;
145
+ };
146
+ export type UserView = "active" | "locked" | "inactive" | "all";
147
+ export type ViewCount = {
148
+ key: string;
149
+ count: number;
150
+ };
@@ -0,0 +1,118 @@
1
+ import { type ListResult } from "../../client";
2
+ import type { ActivityRow, ChangeRow, PendingEmail, ProfileResponse, SessionList, SessionResponse, SignInRow, UnlockResult, UserDetail, UserRow } from "./entities";
3
+ export declare const identityRoutes: {
4
+ readonly login: import("../../client").ApiRoute<{
5
+ login: string;
6
+ password: string;
7
+ }, SessionResponse>;
8
+ readonly refresh: import("../../client").ApiRoute<{
9
+ refresh_token: string;
10
+ }, SessionResponse>;
11
+ readonly logout: import("../../client").ApiRoute<void, void>;
12
+ readonly me: import("../../client").ApiRoute<void, SessionResponse>;
13
+ readonly changeLocale: import("../../client").ApiRoute<{
14
+ locale: string;
15
+ }, void>;
16
+ readonly loginAs: import("../../client").ApiRoute<{
17
+ user_id: number;
18
+ }, SessionResponse>;
19
+ readonly loginAsReturn: import("../../client").ApiRoute<void, SessionResponse>;
20
+ readonly usersList: import("../../client").ApiRoute<{
21
+ view?: "inactive" | "all" | "locked" | "active" | undefined;
22
+ search?: string | undefined;
23
+ order_col?: string | undefined;
24
+ order_dir?: string | undefined;
25
+ page?: number | undefined;
26
+ per_page?: number | undefined;
27
+ }, ListResult<UserRow>>;
28
+ readonly usersShow: import("../../client").ApiRoute<{
29
+ id: number;
30
+ }, UserDetail>;
31
+ readonly usersCreate: import("../../client").ApiRoute<{
32
+ login: string;
33
+ name: string;
34
+ email: string;
35
+ locale: string;
36
+ password: string;
37
+ phone?: string | undefined;
38
+ }, UserDetail>;
39
+ readonly usersUpdate: import("../../client").ApiRoute<{
40
+ id: number;
41
+ login: string;
42
+ name: string;
43
+ email: string;
44
+ locale: string;
45
+ phone?: string | undefined;
46
+ }, UserDetail>;
47
+ readonly usersSetPassword: import("../../client").ApiRoute<{
48
+ id: number;
49
+ password: string;
50
+ }, void>;
51
+ readonly usersDeactivate: import("../../client").ApiRoute<{
52
+ id: number;
53
+ }, void>;
54
+ readonly usersActivate: import("../../client").ApiRoute<{
55
+ id: number;
56
+ }, void>;
57
+ readonly usersUnlock: import("../../client").ApiRoute<{
58
+ id: number;
59
+ }, UnlockResult>;
60
+ readonly usersSignins: import("../../client").ApiRoute<{
61
+ id: number;
62
+ view?: "all" | "failed" | undefined;
63
+ page?: number | undefined;
64
+ per_page?: number | undefined;
65
+ }, ListResult<SignInRow>>;
66
+ readonly usersChanges: import("../../client").ApiRoute<{
67
+ id: number;
68
+ view?: "details" | "all" | "access" | undefined;
69
+ page?: number | undefined;
70
+ per_page?: number | undefined;
71
+ }, ListResult<ChangeRow>>;
72
+ readonly usersActivity: import("../../client").ApiRoute<{
73
+ id: number;
74
+ area?: string | undefined;
75
+ from?: string | undefined;
76
+ to?: string | undefined;
77
+ page?: number | undefined;
78
+ per_page?: number | undefined;
79
+ }, ListResult<ActivityRow>>;
80
+ readonly usersSessions: import("../../client").ApiRoute<{
81
+ id: number;
82
+ }, SessionList>;
83
+ readonly usersRevokeSession: import("../../client").ApiRoute<{
84
+ id: number;
85
+ session_id: number;
86
+ }, void>;
87
+ readonly usersRevokeSessions: import("../../client").ApiRoute<{
88
+ id: number;
89
+ }, void>;
90
+ readonly profileShow: import("../../client").ApiRoute<void, ProfileResponse>;
91
+ readonly profileUpdate: import("../../client").ApiRoute<{
92
+ name: string;
93
+ phone?: string | undefined;
94
+ }, ProfileResponse>;
95
+ readonly profileChangePassword: import("../../client").ApiRoute<{
96
+ current_password: string;
97
+ new_password: string;
98
+ new_password_confirmation: string;
99
+ }, void>;
100
+ readonly profileRequestEmail: import("../../client").ApiRoute<{
101
+ email: string;
102
+ current_password: string;
103
+ }, PendingEmail>;
104
+ readonly profileResendEmail: import("../../client").ApiRoute<void, PendingEmail>;
105
+ readonly profileConfirmEmail: import("../../client").ApiRoute<{
106
+ code: string;
107
+ }, ProfileResponse>;
108
+ readonly profileCancelEmail: import("../../client").ApiRoute<void, void>;
109
+ readonly profileSignins: import("../../client").ApiRoute<{
110
+ view?: "all" | "failed" | undefined;
111
+ page?: number | undefined;
112
+ per_page?: number | undefined;
113
+ }, ListResult<SignInRow>>;
114
+ readonly profileSessions: import("../../client").ApiRoute<void, SessionList>;
115
+ readonly profileRevokeSession: import("../../client").ApiRoute<{
116
+ session_id: number;
117
+ }, void>;
118
+ };
@@ -0,0 +1,145 @@
1
+ import { z } from 'zod';
2
+ export declare const ActivityInputSchema: z.ZodObject<{
3
+ id: z.ZodNumber;
4
+ area: z.ZodOptional<z.ZodString>;
5
+ from: z.ZodOptional<z.ZodString>;
6
+ to: z.ZodOptional<z.ZodString>;
7
+ page: z.ZodOptional<z.ZodNumber>;
8
+ per_page: z.ZodOptional<z.ZodNumber>;
9
+ }, z.core.$strip>;
10
+ export type ActivityInput = z.infer<typeof ActivityInputSchema>;
11
+ export declare const ChangeLocaleInputSchema: z.ZodObject<{
12
+ locale: z.ZodString;
13
+ }, z.core.$strip>;
14
+ export type ChangeLocaleInput = z.infer<typeof ChangeLocaleInputSchema>;
15
+ export declare const ChangePasswordInputSchema: z.ZodObject<{
16
+ current_password: z.ZodString;
17
+ new_password: z.ZodString;
18
+ new_password_confirmation: z.ZodString;
19
+ }, z.core.$strip>;
20
+ export type ChangePasswordInput = z.infer<typeof ChangePasswordInputSchema>;
21
+ export declare const ChangeViewSchema: z.ZodEnum<{
22
+ details: "details";
23
+ all: "all";
24
+ access: "access";
25
+ }>;
26
+ export type ChangeView = z.infer<typeof ChangeViewSchema>;
27
+ export declare const ChangesInputSchema: z.ZodObject<{
28
+ id: z.ZodNumber;
29
+ view: z.ZodOptional<z.ZodEnum<{
30
+ details: "details";
31
+ all: "all";
32
+ access: "access";
33
+ }>>;
34
+ page: z.ZodOptional<z.ZodNumber>;
35
+ per_page: z.ZodOptional<z.ZodNumber>;
36
+ }, z.core.$strip>;
37
+ export type ChangesInput = z.infer<typeof ChangesInputSchema>;
38
+ export declare const ConfirmEmailInputSchema: z.ZodObject<{
39
+ code: z.ZodString;
40
+ }, z.core.$strip>;
41
+ export type ConfirmEmailInput = z.infer<typeof ConfirmEmailInputSchema>;
42
+ export declare const CreateUserInputSchema: z.ZodObject<{
43
+ login: z.ZodString;
44
+ name: z.ZodString;
45
+ email: z.ZodString;
46
+ phone: z.ZodOptional<z.ZodString>;
47
+ locale: z.ZodString;
48
+ password: z.ZodString;
49
+ }, z.core.$strip>;
50
+ export type CreateUserInput = z.infer<typeof CreateUserInputSchema>;
51
+ export declare const UserViewSchema: z.ZodEnum<{
52
+ inactive: "inactive";
53
+ all: "all";
54
+ locked: "locked";
55
+ active: "active";
56
+ }>;
57
+ export type UserView = z.infer<typeof UserViewSchema>;
58
+ export declare const ListUsersInputSchema: z.ZodObject<{
59
+ view: z.ZodOptional<z.ZodEnum<{
60
+ inactive: "inactive";
61
+ all: "all";
62
+ locked: "locked";
63
+ active: "active";
64
+ }>>;
65
+ search: z.ZodOptional<z.ZodString>;
66
+ order_col: z.ZodOptional<z.ZodString>;
67
+ order_dir: z.ZodOptional<z.ZodString>;
68
+ page: z.ZodOptional<z.ZodNumber>;
69
+ per_page: z.ZodOptional<z.ZodNumber>;
70
+ }, z.core.$strip>;
71
+ export type ListUsersInput = z.infer<typeof ListUsersInputSchema>;
72
+ export declare const LoginAsInputSchema: z.ZodObject<{
73
+ user_id: z.ZodNumber;
74
+ }, z.core.$strip>;
75
+ export type LoginAsInput = z.infer<typeof LoginAsInputSchema>;
76
+ export declare const LoginInputSchema: z.ZodObject<{
77
+ login: z.ZodString;
78
+ password: z.ZodString;
79
+ }, z.core.$strip>;
80
+ export type LoginInput = z.infer<typeof LoginInputSchema>;
81
+ export declare const OwnSessionInputSchema: z.ZodObject<{
82
+ session_id: z.ZodNumber;
83
+ }, z.core.$strip>;
84
+ export type OwnSessionInput = z.infer<typeof OwnSessionInputSchema>;
85
+ export declare const SignInViewSchema: z.ZodEnum<{
86
+ all: "all";
87
+ failed: "failed";
88
+ }>;
89
+ export type SignInView = z.infer<typeof SignInViewSchema>;
90
+ export declare const OwnSignInsInputSchema: z.ZodObject<{
91
+ view: z.ZodOptional<z.ZodEnum<{
92
+ all: "all";
93
+ failed: "failed";
94
+ }>>;
95
+ page: z.ZodOptional<z.ZodNumber>;
96
+ per_page: z.ZodOptional<z.ZodNumber>;
97
+ }, z.core.$strip>;
98
+ export type OwnSignInsInput = z.infer<typeof OwnSignInsInputSchema>;
99
+ export declare const RefreshInputSchema: z.ZodObject<{
100
+ refresh_token: z.ZodString;
101
+ }, z.core.$strip>;
102
+ export type RefreshInput = z.infer<typeof RefreshInputSchema>;
103
+ export declare const RequestEmailInputSchema: z.ZodObject<{
104
+ email: z.ZodString;
105
+ current_password: z.ZodString;
106
+ }, z.core.$strip>;
107
+ export type RequestEmailInput = z.infer<typeof RequestEmailInputSchema>;
108
+ export declare const SetPasswordInputSchema: z.ZodObject<{
109
+ id: z.ZodNumber;
110
+ password: z.ZodString;
111
+ }, z.core.$strip>;
112
+ export type SetPasswordInput = z.infer<typeof SetPasswordInputSchema>;
113
+ export declare const SignInsInputSchema: z.ZodObject<{
114
+ id: z.ZodNumber;
115
+ view: z.ZodOptional<z.ZodEnum<{
116
+ all: "all";
117
+ failed: "failed";
118
+ }>>;
119
+ page: z.ZodOptional<z.ZodNumber>;
120
+ per_page: z.ZodOptional<z.ZodNumber>;
121
+ }, z.core.$strip>;
122
+ export type SignInsInput = z.infer<typeof SignInsInputSchema>;
123
+ export declare const UpdateProfileInputSchema: z.ZodObject<{
124
+ name: z.ZodString;
125
+ phone: z.ZodOptional<z.ZodString>;
126
+ }, z.core.$strip>;
127
+ export type UpdateProfileInput = z.infer<typeof UpdateProfileInputSchema>;
128
+ export declare const UpdateUserInputSchema: z.ZodObject<{
129
+ id: z.ZodNumber;
130
+ login: z.ZodString;
131
+ name: z.ZodString;
132
+ email: z.ZodString;
133
+ phone: z.ZodOptional<z.ZodString>;
134
+ locale: z.ZodString;
135
+ }, z.core.$strip>;
136
+ export type UpdateUserInput = z.infer<typeof UpdateUserInputSchema>;
137
+ export declare const UserInputSchema: z.ZodObject<{
138
+ id: z.ZodNumber;
139
+ }, z.core.$strip>;
140
+ export type UserInput = z.infer<typeof UserInputSchema>;
141
+ export declare const UserSessionInputSchema: z.ZodObject<{
142
+ id: z.ZodNumber;
143
+ session_id: z.ZodNumber;
144
+ }, z.core.$strip>;
145
+ export type UserSessionInput = z.infer<typeof UserSessionInputSchema>;