@carlonicora/nextjs-jsonapi 1.77.3 → 1.79.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 (146) hide show
  1. package/dist/AssistantInterface-BYgI5z1-.d.mts +12 -0
  2. package/dist/AssistantInterface-DfDcz0gJ.d.ts +12 -0
  3. package/dist/AssistantMessageInterface-DWnbd6J7.d.ts +36 -0
  4. package/dist/AssistantMessageInterface-Mla6kgPe.d.mts +36 -0
  5. package/dist/{AuthComponent-Blbs06ud.d.ts → AuthComponent-B6DIk8Vf.d.ts} +1 -1
  6. package/dist/{AuthComponent-huIaK5rm.d.mts → AuthComponent-BKI0ZbtD.d.mts} +1 -1
  7. package/dist/{BlockNoteEditor-7HAAXN3H.mjs → BlockNoteEditor-6CBDTVKV.mjs} +4 -4
  8. package/dist/{BlockNoteEditor-UB7T7V67.js → BlockNoteEditor-EH4HWI7H.js} +14 -14
  9. package/dist/{BlockNoteEditor-UB7T7V67.js.map → BlockNoteEditor-EH4HWI7H.js.map} +1 -1
  10. package/dist/RbacTypes-BTbr27Ew.d.mts +43 -0
  11. package/dist/RbacTypes-BTbr27Ew.d.ts +43 -0
  12. package/dist/{auth.interface-CQJ6A2Cj.d.ts → auth.interface-BBUgMZzs.d.ts} +1 -1
  13. package/dist/{auth.interface-Bdq7-8iV.d.mts → auth.interface-XYEREOD6.d.mts} +1 -1
  14. package/dist/billing/index.js +346 -346
  15. package/dist/billing/index.mjs +3 -3
  16. package/dist/{chunk-FKLP4NED.js → chunk-5IEWLLLD.js} +379 -18
  17. package/dist/chunk-5IEWLLLD.js.map +1 -0
  18. package/dist/{chunk-XI35ALWY.mjs → chunk-BKM5U3DE.mjs} +362 -1
  19. package/dist/chunk-BKM5U3DE.mjs.map +1 -0
  20. package/dist/{chunk-F44ET4AC.mjs → chunk-ENRSFVOS.mjs} +2657 -2264
  21. package/dist/chunk-ENRSFVOS.mjs.map +1 -0
  22. package/dist/{chunk-JOJZRGZL.mjs → chunk-MEWXQEVE.mjs} +38 -29
  23. package/dist/{chunk-JOJZRGZL.mjs.map → chunk-MEWXQEVE.mjs.map} +1 -1
  24. package/dist/{chunk-OTZEXASK.js → chunk-TWDSDTHU.js} +39 -30
  25. package/dist/chunk-TWDSDTHU.js.map +1 -0
  26. package/dist/{chunk-CV7UOUKQ.js → chunk-ZDP3MBUI.js} +1813 -1420
  27. package/dist/chunk-ZDP3MBUI.js.map +1 -0
  28. package/dist/client/index.d.mts +6 -24
  29. package/dist/client/index.d.ts +6 -24
  30. package/dist/client/index.js +4 -10
  31. package/dist/client/index.js.map +1 -1
  32. package/dist/client/index.mjs +3 -9
  33. package/dist/components/index.d.mts +51 -34
  34. package/dist/components/index.d.ts +51 -34
  35. package/dist/components/index.js +4 -4
  36. package/dist/components/index.js.map +1 -1
  37. package/dist/components/index.mjs +9 -9
  38. package/dist/{config-B3jKt9P7.d.ts → config-B5oBQVEA.d.ts} +1 -1
  39. package/dist/{config-DkHF61xA.d.mts → config-Bx_uh22h.d.mts} +1 -1
  40. package/dist/contexts/index.d.mts +65 -4
  41. package/dist/contexts/index.d.ts +65 -4
  42. package/dist/contexts/index.js +12 -4
  43. package/dist/contexts/index.js.map +1 -1
  44. package/dist/contexts/index.mjs +11 -3
  45. package/dist/core/index.d.mts +126 -11
  46. package/dist/core/index.d.ts +126 -11
  47. package/dist/core/index.js +16 -2
  48. package/dist/core/index.js.map +1 -1
  49. package/dist/core/index.mjs +15 -1
  50. package/dist/index.d.mts +118 -20
  51. package/dist/index.d.ts +118 -20
  52. package/dist/index.js +19 -3
  53. package/dist/index.js.map +1 -1
  54. package/dist/index.mjs +18 -2
  55. package/dist/{notification.interface-DG6obXUH.d.mts → notification.interface-DLZGtV7Z.d.mts} +1 -1
  56. package/dist/{notification.interface-DcSuc9CL.d.ts → notification.interface-aLEJbA_g.d.ts} +1 -1
  57. package/dist/{s3.service-DGilbikH.d.mts → s3.service-CVgLWaDc.d.mts} +2 -2
  58. package/dist/{s3.service-DjwEQJPe.d.ts → s3.service-SLlX0Zbz.d.ts} +2 -2
  59. package/dist/server/index.d.mts +3 -3
  60. package/dist/server/index.d.ts +3 -3
  61. package/dist/server/index.js +3 -3
  62. package/dist/server/index.mjs +1 -1
  63. package/dist/useDataListRetriever-BqJSFBck.d.mts +33 -0
  64. package/dist/useDataListRetriever-BqJSFBck.d.ts +33 -0
  65. package/dist/{useSocket-CmzVtg32.d.mts → useSocket-BkxHHujj.d.mts} +1 -1
  66. package/dist/{useSocket-8eUtnL7J.d.ts → useSocket-CMDjWFYm.d.ts} +1 -1
  67. package/package.json +1 -1
  68. package/src/client/index.ts +0 -4
  69. package/src/components/index.ts +2 -3
  70. package/src/contexts/index.ts +2 -0
  71. package/src/core/index.ts +4 -0
  72. package/src/core/registry/ModuleRegistry.ts +10 -0
  73. package/src/features/assistant/AssistantModule.ts +19 -0
  74. package/src/features/assistant/components/containers/AssistantContainer.tsx +56 -0
  75. package/src/features/assistant/components/containers/__tests__/AssistantContainer.spec.tsx +101 -0
  76. package/src/features/assistant/components/index.ts +1 -0
  77. package/src/features/assistant/components/parts/AssistantComposer.tsx +56 -0
  78. package/src/features/assistant/components/parts/AssistantEmptyState.tsx +47 -0
  79. package/src/features/assistant/components/parts/AssistantSidebar.tsx +64 -0
  80. package/src/features/assistant/components/parts/AssistantStatusLine.tsx +19 -0
  81. package/src/features/assistant/components/parts/AssistantThread.tsx +36 -0
  82. package/src/features/assistant/components/parts/AssistantThreadHeader.tsx +91 -0
  83. package/src/features/assistant/components/parts/__tests__/AssistantComposer.spec.tsx +32 -0
  84. package/src/features/assistant/components/parts/__tests__/AssistantEmptyState.spec.tsx +27 -0
  85. package/src/features/assistant/components/parts/__tests__/AssistantSidebar.spec.tsx +58 -0
  86. package/src/features/assistant/components/parts/__tests__/AssistantStatusLine.spec.tsx +19 -0
  87. package/src/features/assistant/components/parts/__tests__/AssistantThread.spec.tsx +39 -0
  88. package/src/features/assistant/components/parts/__tests__/AssistantThreadHeader.spec.tsx +67 -0
  89. package/src/features/assistant/contexts/AssistantContext.tsx +255 -0
  90. package/src/features/assistant/contexts/__tests__/AssistantContext.spec.tsx +375 -0
  91. package/src/features/assistant/data/Assistant.ts +37 -0
  92. package/src/features/assistant/data/AssistantInterface.ts +11 -0
  93. package/src/features/assistant/data/AssistantService.ts +79 -0
  94. package/src/features/assistant/data/index.ts +3 -0
  95. package/src/features/assistant/index.ts +2 -0
  96. package/src/features/assistant/utils/__tests__/groupThreadsByBucket.spec.ts +24 -0
  97. package/src/features/assistant/utils/__tests__/resolveReferenceableModules.spec.ts +92 -0
  98. package/src/features/assistant/utils/groupThreadsByBucket.ts +26 -0
  99. package/src/features/assistant/utils/resolveReferenceableModules.ts +14 -0
  100. package/src/features/assistant-message/AssistantMessageModule.ts +28 -0
  101. package/src/features/assistant-message/components/MessageItem.tsx +60 -0
  102. package/src/features/assistant-message/components/MessageList.tsx +38 -0
  103. package/src/features/assistant-message/components/__tests__/MessageItem.spec.tsx +108 -0
  104. package/src/features/assistant-message/components/index.ts +2 -0
  105. package/src/features/assistant-message/components/parts/ReferenceBadges.tsx +46 -0
  106. package/src/features/assistant-message/components/parts/SuggestedFollowUps.tsx +52 -0
  107. package/src/features/assistant-message/components/parts/__tests__/ReferenceBadges.spec.tsx +59 -0
  108. package/src/features/assistant-message/components/parts/__tests__/SuggestedFollowUps.spec.tsx +29 -0
  109. package/src/features/assistant-message/data/AssistantMessage.ts +95 -0
  110. package/src/features/assistant-message/data/AssistantMessageInterface.ts +21 -0
  111. package/src/features/assistant-message/data/AssistantMessageService.ts +40 -0
  112. package/src/features/assistant-message/data/__tests__/AssistantMessage.spec.ts +158 -0
  113. package/src/features/assistant-message/data/index.ts +3 -0
  114. package/src/features/assistant-message/index.ts +2 -0
  115. package/src/features/rbac/components/RbacContainer.tsx +318 -49
  116. package/src/features/rbac/components/RbacPermissionPicker.tsx +144 -121
  117. package/src/features/rbac/contexts/RbacContext.tsx +209 -0
  118. package/src/features/rbac/contexts/index.ts +1 -0
  119. package/src/features/rbac/data/RbacMatrixModel.ts +84 -0
  120. package/src/features/rbac/data/RbacService.ts +61 -33
  121. package/src/features/rbac/data/RbacTypes.ts +28 -0
  122. package/src/features/rbac/data/index.ts +1 -0
  123. package/src/features/rbac/index.ts +1 -10
  124. package/src/features/rbac/rbac.module.ts +13 -0
  125. package/src/features/user/contexts/CurrentUserContext.tsx +5 -13
  126. package/src/features/user/contexts/__tests__/CurrentUserContext.spec.tsx +141 -0
  127. package/src/index.ts +4 -0
  128. package/dist/HowToInterface-BKhnkzBp.d.ts +0 -17
  129. package/dist/HowToInterface-Cj8OuQFf.d.mts +0 -17
  130. package/dist/ModulePathsInterface-BrdqgteS.d.mts +0 -31
  131. package/dist/ModulePathsInterface-DJKs7s_s.d.ts +0 -31
  132. package/dist/chunk-CV7UOUKQ.js.map +0 -1
  133. package/dist/chunk-F44ET4AC.mjs.map +0 -1
  134. package/dist/chunk-FKLP4NED.js.map +0 -1
  135. package/dist/chunk-OTZEXASK.js.map +0 -1
  136. package/dist/chunk-XI35ALWY.mjs.map +0 -1
  137. package/dist/useRbacState-C88O-5L8.d.ts +0 -77
  138. package/dist/useRbacState-mqYiRp3J.d.mts +0 -77
  139. package/src/features/rbac/components/RbacFeatureSection.tsx +0 -66
  140. package/src/features/rbac/components/RbacModuleTable.tsx +0 -121
  141. package/src/features/rbac/components/RbacToolbar.tsx +0 -40
  142. package/src/features/rbac/hooks/useRbacState.test.ts +0 -180
  143. package/src/features/rbac/hooks/useRbacState.ts +0 -319
  144. package/src/features/rbac/utils/RbacMigrationGenerator.test.ts +0 -124
  145. package/src/features/rbac/utils/RbacMigrationGenerator.ts +0 -184
  146. /package/dist/{BlockNoteEditor-7HAAXN3H.mjs.map → BlockNoteEditor-6CBDTVKV.mjs.map} +0 -0
package/dist/index.d.mts CHANGED
@@ -1,27 +1,25 @@
1
1
  export { A as ApiData } from './ApiData-DPKNfY-9.mjs';
2
- import { J as JsonApiHydratedDataInterface } from './ApiDataInterface-BcZeXy5X.mjs';
3
- export { A as ApiDataInterface } from './ApiDataInterface-BcZeXy5X.mjs';
2
+ import { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from './ApiDataInterface-BcZeXy5X.mjs';
4
3
  export { A as ApiRequestDataTypeInterface, F as FieldSelector, G as GetterKeys, c as createJsonApiInclusion } from './ApiRequestDataTypeInterface-CYEcRUrh.mjs';
5
4
  export { A as ApiResponseInterface } from './ApiResponseInterface-rsXRL_Hn.mjs';
6
5
  import { AbstractApiData } from './core/index.mjs';
7
- export { AppModuleDefinitions, AuditLog, AuditLogInterface, AuditLogModule, AuditLogService, Auth, AuthModule, AuthorModule, BackupCodeVerify, BackupCodeVerifyInput, BackupCodeVerifyModule, Billing, BillingModule, BillingService, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, ClientTotalRef, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, HowTo, HowToFields, HowToModule, HowToService, InviteValidation, JsonApiDataFactory, Module, ModuleDefinitions, ModuleModule, ModulePathsModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, OAuthClient, OAuthModule, OAuthService, Passkey, PasskeyAuthenticationOptions, PasskeyAuthenticationOptionsInput, PasskeyAuthenticationOptionsInterface, PasskeyAuthenticationOptionsModule, PasskeyModule, PasskeyRegistrationOptions, PasskeyRegistrationOptionsInput, PasskeyRegistrationOptionsInterface, PasskeyRegistrationOptionsModule, PasskeyRegistrationVerify, PasskeyRegistrationVerifyInput, PasskeyRegistrationVerifyModule, PasskeyRename, PasskeyRenameInput, PasskeyRenameModule, PasskeyVerifyLogin, PasskeyVerifyLoginInput, PasskeyVerifyLoginModule, PaymentMethod, PermissionMappingModule, Push, PushInput, PushInterface, PushModule, ReferralModule, ReferralService, ReferralStats, ReferralStatsModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, StripeCustomer, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceModule, StripePriceService, StripeProduct, StripeProductModule, StripeProductService, StripePromotionCode, StripePromotionCodeModule, StripePromotionCodeService, StripeSubscription, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageModule, StripeUsageService, TableOptions, ToastOptions, TotpAuthenticator, TotpAuthenticatorModule, TotpSetup, TotpSetupInput, TotpSetupInterface, TotpSetupModule, TotpVerify, TotpVerifyInput, TotpVerifyLogin, TotpVerifyLoginInput, TotpVerifyLoginModule, TotpVerifyModule, TwoFactorChallenge, TwoFactorChallengeInput, TwoFactorChallengeModule, TwoFactorEnable, TwoFactorEnableInput, TwoFactorEnableModule, TwoFactorService, TwoFactorStatus, TwoFactorStatusInterface, TwoFactorStatusModule, User, UserModule, UserObject, Waitlist, WaitlistInput, WaitlistInterface, WaitlistModule, WaitlistService, WaitlistStats, WaitlistStatsInterface, WaitlistStatsModule, WaitlistStatus, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, dismissToast, entityObjectSchema, exists, formatDate, getBootstrapper, getClientGlobalErrorHandler, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, showCustomToast, showError, showToast, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema } from './core/index.mjs';
8
- import { b as AbstractService } from './s3.service-DGilbikH.mjs';
9
- export { A as AuthService, C as CompanyService, a as ContentService, F as FeatureService, H as HttpMethod, c as NextRef, N as NotificationService, d as PreviousRef, P as PushService, R as RoleService, j as S3Input, k as S3Interface, S as S3Service, e as SelfRef, T as TotalRef, i as TwoFactorChallengeInterface, U as UserService, f as clearLastApiTotal, h as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from './s3.service-DGilbikH.mjs';
10
- export { B as BreadcrumbItemData, H as HowToInput, a as HowToInterface } from './HowToInterface-Cj8OuQFf.mjs';
6
+ export { AppModuleDefinitions, Assistant, AssistantMessage, AssistantMessageModule, AssistantMessageService, AssistantModule, AssistantService, AuditLog, AuditLogInterface, AuditLogModule, AuditLogService, Auth, AuthModule, AuthorModule, BackupCodeVerify, BackupCodeVerifyInput, BackupCodeVerifyModule, Billing, BillingModule, BillingService, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, ClientTotalRef, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, HowTo, HowToFields, HowToModule, HowToService, InviteValidation, JsonApiDataFactory, Module, ModuleDefinitions, ModuleModule, ModulePathsModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, OAuthClient, OAuthModule, OAuthService, Passkey, PasskeyAuthenticationOptions, PasskeyAuthenticationOptionsInput, PasskeyAuthenticationOptionsInterface, PasskeyAuthenticationOptionsModule, PasskeyModule, PasskeyRegistrationOptions, PasskeyRegistrationOptionsInput, PasskeyRegistrationOptionsInterface, PasskeyRegistrationOptionsModule, PasskeyRegistrationVerify, PasskeyRegistrationVerifyInput, PasskeyRegistrationVerifyModule, PasskeyRename, PasskeyRenameInput, PasskeyRenameModule, PasskeyVerifyLogin, PasskeyVerifyLoginInput, PasskeyVerifyLoginModule, PaymentMethod, PermissionMappingModule, Push, PushInput, PushInterface, PushModule, RbacMatrixModule, ReferralModule, ReferralService, ReferralStats, ReferralStatsModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, StripeCustomer, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceModule, StripePriceService, StripeProduct, StripeProductModule, StripeProductService, StripePromotionCode, StripePromotionCodeModule, StripePromotionCodeService, StripeSubscription, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageModule, StripeUsageService, TableOptions, ToastOptions, TotpAuthenticator, TotpAuthenticatorModule, TotpSetup, TotpSetupInput, TotpSetupInterface, TotpSetupModule, TotpVerify, TotpVerifyInput, TotpVerifyLogin, TotpVerifyLoginInput, TotpVerifyLoginModule, TotpVerifyModule, TwoFactorChallenge, TwoFactorChallengeInput, TwoFactorChallengeModule, TwoFactorEnable, TwoFactorEnableInput, TwoFactorEnableModule, TwoFactorService, TwoFactorStatus, TwoFactorStatusInterface, TwoFactorStatusModule, User, UserModule, UserObject, Waitlist, WaitlistInput, WaitlistInterface, WaitlistModule, WaitlistService, WaitlistStats, WaitlistStatsInterface, WaitlistStatsModule, WaitlistStatus, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, dismissToast, entityObjectSchema, exists, formatDate, getBootstrapper, getClientGlobalErrorHandler, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, showCustomToast, showError, showToast, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema } from './core/index.mjs';
7
+ import { b as AbstractService } from './s3.service-CVgLWaDc.mjs';
8
+ export { A as AuthService, C as CompanyService, a as ContentService, F as FeatureService, H as HttpMethod, c as NextRef, N as NotificationService, d as PreviousRef, P as PushService, R as RoleService, j as S3Input, k as S3Interface, S as S3Service, e as SelfRef, T as TotalRef, i as TwoFactorChallengeInterface, U as UserService, f as clearLastApiTotal, h as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from './s3.service-CVgLWaDc.mjs';
9
+ export { b as AssistantMessageInput, c as AssistantMessageInterface, A as AssistantMessageRole, B as BreadcrumbItemData, H as HowToInput, a as HowToInterface } from './AssistantMessageInterface-Mla6kgPe.mjs';
11
10
  export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from './content.fields-Ck5lkQ5d.mjs';
12
11
  export { ClassValue } from 'clsx';
13
- export { A as AuthComponent, P as PasskeyInterface, T as TotpAuthenticatorInterface, b as getIcon, a as getIconByModule, c as getIconByModuleName, g as getInitials, d as getLucideIcon, e as getLucideIconByModule, f as getLucideIconByModuleName } from './AuthComponent-huIaK5rm.mjs';
14
- import { R as RoleInterface } from './notification.interface-DG6obXUH.mjs';
15
- export { A as Action, i as CompanyInput, j as CompanyInterface, a as ContentInput, C as ContentInterface, d as ModuleDefinition, h as ModuleFactory, c as ModulePermissionDefinition, M as ModuleWithPermissions, k as NotificationInput, N as NotificationInterface, b as PageUrl, P as PermissionCheck, e as PermissionConfig, f as PermissionModule, g as PermissionUser, l as RoleInput, m as UserInput, U as UserInterface } from './notification.interface-DG6obXUH.mjs';
16
- export { A as AuthInput, b as AuthInterface, a as AuthQuery } from './auth.interface-Bdq7-8iV.mjs';
12
+ export { A as AuthComponent, P as PasskeyInterface, T as TotpAuthenticatorInterface, b as getIcon, a as getIconByModule, c as getIconByModuleName, g as getInitials, d as getLucideIcon, e as getLucideIconByModule, f as getLucideIconByModuleName } from './AuthComponent-BKI0ZbtD.mjs';
13
+ export { A as Action, i as CompanyInput, j as CompanyInterface, a as ContentInput, C as ContentInterface, d as ModuleDefinition, h as ModuleFactory, c as ModulePermissionDefinition, M as ModuleWithPermissions, k as NotificationInput, N as NotificationInterface, b as PageUrl, P as PermissionCheck, e as PermissionConfig, f as PermissionModule, g as PermissionUser, R as RoleInput, l as RoleInterface, m as UserInput, U as UserInterface } from './notification.interface-DLZGtV7Z.mjs';
14
+ export { A as AuthInput, b as AuthInterface, a as AuthQuery } from './auth.interface-XYEREOD6.mjs';
17
15
  export { I as InvoiceStatus, M as MeterInterface, o as MeterSummaryInterface, P as PaymentMethodInterface, e as PriceRecurring, q as PromotionCodeValidationResult, c as ProrationLineItem, b as ProrationPreviewInterface, R as ReportUsageInput, S as StripeCustomerInterface, a as StripeInvoiceInterface, f as StripePriceInput, d as StripePriceInterface, h as StripeProductInput, g as StripeProductInterface, l as StripeSubscriptionCreateMeta, m as StripeSubscriptionCreateResponse, k as StripeSubscriptionInput, j as StripeSubscriptionInterface, n as StripeUsageInterface, i as SubscriptionStatus, p as UsageRecordInterface, U as UsageSummaryInterface } from './stripe-promotion-code.interface-ClZ7DxS9.mjs';
18
- import { F as FeatureInterface } from './feature.interface-CXb1-vNq.mjs';
19
- export { M as ModuleInterface } from './feature.interface-CXb1-vNq.mjs';
16
+ export { A as AssistantInput, a as AssistantInterface } from './AssistantInterface-BYgI5z1-.mjs';
17
+ export { F as FeatureInterface, M as ModuleInterface } from './feature.interface-CXb1-vNq.mjs';
20
18
  export { A as AVAILABLE_OAUTH_SCOPES, D as DEFAULT_GRANT_TYPES, g as OAUTH_SCOPE_DISPLAY, b as OAuthClientCreateRequest, c as OAuthClientCreateResponse, a as OAuthClientInput, O as OAuthClientInterface, f as OAuthConsentInfo, d as OAuthConsentRequest, e as OAuthScopeInfo } from './oauth.interface-o5FLpiN7.mjs';
21
- export { I as I18nConfig, e as configureI18n, c as configureJsonApi, g as getApiUrl, a as getAppUrl, d as getStripePublishableKey, b as getTrackablePages } from './config-DkHF61xA.mjs';
19
+ export { I as I18nConfig, e as configureI18n, c as configureJsonApi, g as getApiUrl, a as getAppUrl, d as getStripePublishableKey, b as getTrackablePages } from './config-Bx_uh22h.mjs';
22
20
  export { Q as QuestionnaireField, a as QuestionnaireFieldType, b as QuestionnaireOption, W as WaitlistConfig, c as configureWaitlist, g as getWaitlistConfig } from './waitlist.config-kPfjImle.mjs';
23
- import { P as PermissionMappingInterface, M as ModulePathsInterface } from './ModulePathsInterface-BrdqgteS.mjs';
24
- export { c as ACTION_TYPES, A as ActionType, C as COMPANY_ADMINISTRATOR_ROLE_ID, a as PermissionValue, b as PermissionsMap } from './ModulePathsInterface-BrdqgteS.mjs';
21
+ import { R as RbacMatrix } from './RbacTypes-BTbr27Ew.mjs';
22
+ export { a as ACTION_TYPES, A as ActionType, C as COMPANY_ADMINISTRATOR_ROLE_ID, c as PermToken, P as PermissionValue, b as PermissionsMap, d as RbacModuleBlock } from './RbacTypes-BTbr27Ew.mjs';
25
23
  import 'react';
26
24
  import 'zod';
27
25
  import '@blocknote/core';
@@ -180,6 +178,17 @@ declare function getReferralConfig(): Required<ReferralConfig>;
180
178
  */
181
179
  declare function isReferralEnabled(): boolean;
182
180
 
181
+ interface PermissionMappingInterface extends ApiDataInterface {
182
+ get roleId(): string;
183
+ get moduleId(): string;
184
+ get permissions(): {
185
+ create?: boolean | string;
186
+ read?: boolean | string;
187
+ update?: boolean | string;
188
+ delete?: boolean | string;
189
+ };
190
+ }
191
+
183
192
  declare class PermissionMapping extends AbstractApiData implements PermissionMappingInterface {
184
193
  private _roleId?;
185
194
  private _moduleId?;
@@ -195,6 +204,11 @@ declare class PermissionMapping extends AbstractApiData implements PermissionMap
195
204
  rehydrate(data: JsonApiHydratedDataInterface): this;
196
205
  }
197
206
 
207
+ interface ModulePathsInterface extends ApiDataInterface {
208
+ get moduleId(): string;
209
+ get paths(): string[];
210
+ }
211
+
198
212
  declare class ModulePaths extends AbstractApiData implements ModulePathsInterface {
199
213
  private _moduleId?;
200
214
  private _paths?;
@@ -203,11 +217,95 @@ declare class ModulePaths extends AbstractApiData implements ModulePathsInterfac
203
217
  rehydrate(data: JsonApiHydratedDataInterface): this;
204
218
  }
205
219
 
220
+ /**
221
+ * Input shape accepted by `RbacMatrixModel.createJsonApi()` for a PUT request
222
+ * to the dev matrix endpoint.
223
+ */
224
+ interface RbacMatrixInput {
225
+ matrix: RbacMatrix;
226
+ roleNames: Record<string, string>;
227
+ moduleNames: Record<string, string>;
228
+ outputPath: string;
229
+ }
230
+ /**
231
+ * Frontend model for the dev-only `rbac-matrix` JSON:API resource.
232
+ *
233
+ * Backend contract (see `rbac-dev.controller.ts`):
234
+ * - `GET /_dev/rbac/matrix` → `{ data: { type: "rbac-matrix", id: "singleton",
235
+ * attributes: { matrix } } }`
236
+ * - `PUT /_dev/rbac/matrix` body: `{ data: { type: "rbac-matrix", attributes:
237
+ * { matrix, roleNames, moduleNames, outputPath } } }`
238
+ * → `{ data: { type: "rbac-matrix", id: "singleton", attributes: { bytesWritten, path } } }`
239
+ *
240
+ * The resource is a singleton (`id: "singleton"`) so there is no collection
241
+ * listing; the "read" and "write" shapes share a single model with optional
242
+ * fields populated depending on which endpoint produced the response.
243
+ */
244
+ declare class RbacMatrixModel extends AbstractApiData {
245
+ private _matrix?;
246
+ private _modulePaths?;
247
+ private _bytesWritten?;
248
+ private _path?;
249
+ /** The RBAC matrix object (populated after a GET). */
250
+ get matrix(): RbacMatrix | undefined;
251
+ /**
252
+ * UUID-keyed map of each module's known BFS relationship paths (populated
253
+ * after a GET). Fed to the permission picker as scope suggestions.
254
+ */
255
+ get modulePaths(): Record<string, readonly string[]> | undefined;
256
+ /** Bytes written to the permissions.ts file (populated after a PUT). */
257
+ get bytesWritten(): number | undefined;
258
+ /** Resolved absolute output path (populated after a PUT). */
259
+ get path(): string | undefined;
260
+ rehydrate(data: JsonApiHydratedDataInterface): this;
261
+ createJsonApi(data: RbacMatrixInput): any;
262
+ }
263
+
264
+ /**
265
+ * RbacService — fetches RBAC configuration for the admin UI.
266
+ *
267
+ * Declarative-matrix methods (`fetchMatrix`, `saveMatrix`) talk to the
268
+ * dev-only endpoints added in
269
+ * `packages/nestjs-neo4jsonapi/.../rbac-dev.controller.ts`. The controller
270
+ * speaks JSON:API (singleton resource with `type: "rbac-matrix"`, `id:
271
+ * "singleton"`), so these methods go through the standard `callApi()`
272
+ * pipeline like every other service in the codebase.
273
+ *
274
+ * The backend only registers these routes when `devMode` is enabled on
275
+ * `RbacModule.register` (see `apps/api/src/features/features.modules.ts`).
276
+ * In production the routes return 404; callers should guard with a dev-mode
277
+ * check.
278
+ */
206
279
  declare class RbacService extends AbstractService {
207
- static getFeatures(): Promise<FeatureInterface[]>;
208
- static getRoles(): Promise<RoleInterface[]>;
209
- static getPermissionMappings(): Promise<PermissionMappingInterface[]>;
210
- static getModuleRelationshipPaths(): Promise<ModulePathsInterface[]>;
280
+ /**
281
+ * Fetch the current RBAC matrix plus each module's known BFS relationship
282
+ * paths (used by the permission picker as scope suggestions).
283
+ *
284
+ * Dev-only endpoint — see class header.
285
+ */
286
+ static fetchMatrix(): Promise<{
287
+ matrix: RbacMatrix;
288
+ modulePaths: Record<string, readonly string[]>;
289
+ }>;
290
+ /**
291
+ * Persist a matrix back to the declarative `permissions.ts` file.
292
+ *
293
+ * The backend serializes the matrix to formatted TypeScript using the
294
+ * provided `roleNames` / `moduleNames` lookup tables (so the emitted file
295
+ * references `RoleId.X` / `ModuleId.X` rather than raw UUIDs) and writes
296
+ * it to `outputPath` (absolute, or relative to the repo root).
297
+ *
298
+ * Dev-only endpoint — see class header.
299
+ */
300
+ static saveMatrix(args: {
301
+ matrix: RbacMatrix;
302
+ roleNames: Record<string, string>;
303
+ moduleNames: Record<string, string>;
304
+ outputPath: string;
305
+ }): Promise<{
306
+ bytesWritten: number;
307
+ path: string;
308
+ }>;
211
309
  }
212
310
 
213
- export { AbstractApiData, AbstractService, FeatureInterface, JsonApiHydratedDataInterface, type LoginConfig, ModulePaths, ModulePathsInterface, PermissionMapping, PermissionMappingInterface, RbacService, type ReferralConfig, type RoleIdConfig, RoleInterface, type TokenHandler, type TokenParams, configureAuth, configureLogin, configureReferral, configureRoles, getReferralConfig, getRoleId, getTokenHandler, isReferralEnabled, isRolesConfigured };
311
+ export { AbstractApiData, AbstractService, ApiDataInterface, JsonApiHydratedDataInterface, type LoginConfig, ModulePaths, type ModulePathsInterface, PermissionMapping, type PermissionMappingInterface, RbacMatrix, type RbacMatrixInput, RbacMatrixModel, RbacService, type ReferralConfig, type RoleIdConfig, type TokenHandler, type TokenParams, configureAuth, configureLogin, configureReferral, configureRoles, getReferralConfig, getRoleId, getTokenHandler, isReferralEnabled, isRolesConfigured };
package/dist/index.d.ts CHANGED
@@ -1,27 +1,25 @@
1
1
  export { A as ApiData } from './ApiData-DPKNfY-9.js';
2
- import { J as JsonApiHydratedDataInterface } from './ApiDataInterface-BcZeXy5X.js';
3
- export { A as ApiDataInterface } from './ApiDataInterface-BcZeXy5X.js';
2
+ import { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from './ApiDataInterface-BcZeXy5X.js';
4
3
  export { A as ApiRequestDataTypeInterface, F as FieldSelector, G as GetterKeys, c as createJsonApiInclusion } from './ApiRequestDataTypeInterface-CYEcRUrh.js';
5
4
  export { A as ApiResponseInterface } from './ApiResponseInterface-CWLvSCvS.js';
6
5
  import { AbstractApiData } from './core/index.js';
7
- export { AppModuleDefinitions, AuditLog, AuditLogInterface, AuditLogModule, AuditLogService, Auth, AuthModule, AuthorModule, BackupCodeVerify, BackupCodeVerifyInput, BackupCodeVerifyModule, Billing, BillingModule, BillingService, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, ClientTotalRef, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, HowTo, HowToFields, HowToModule, HowToService, InviteValidation, JsonApiDataFactory, Module, ModuleDefinitions, ModuleModule, ModulePathsModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, OAuthClient, OAuthModule, OAuthService, Passkey, PasskeyAuthenticationOptions, PasskeyAuthenticationOptionsInput, PasskeyAuthenticationOptionsInterface, PasskeyAuthenticationOptionsModule, PasskeyModule, PasskeyRegistrationOptions, PasskeyRegistrationOptionsInput, PasskeyRegistrationOptionsInterface, PasskeyRegistrationOptionsModule, PasskeyRegistrationVerify, PasskeyRegistrationVerifyInput, PasskeyRegistrationVerifyModule, PasskeyRename, PasskeyRenameInput, PasskeyRenameModule, PasskeyVerifyLogin, PasskeyVerifyLoginInput, PasskeyVerifyLoginModule, PaymentMethod, PermissionMappingModule, Push, PushInput, PushInterface, PushModule, ReferralModule, ReferralService, ReferralStats, ReferralStatsModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, StripeCustomer, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceModule, StripePriceService, StripeProduct, StripeProductModule, StripeProductService, StripePromotionCode, StripePromotionCodeModule, StripePromotionCodeService, StripeSubscription, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageModule, StripeUsageService, TableOptions, ToastOptions, TotpAuthenticator, TotpAuthenticatorModule, TotpSetup, TotpSetupInput, TotpSetupInterface, TotpSetupModule, TotpVerify, TotpVerifyInput, TotpVerifyLogin, TotpVerifyLoginInput, TotpVerifyLoginModule, TotpVerifyModule, TwoFactorChallenge, TwoFactorChallengeInput, TwoFactorChallengeModule, TwoFactorEnable, TwoFactorEnableInput, TwoFactorEnableModule, TwoFactorService, TwoFactorStatus, TwoFactorStatusInterface, TwoFactorStatusModule, User, UserModule, UserObject, Waitlist, WaitlistInput, WaitlistInterface, WaitlistModule, WaitlistService, WaitlistStats, WaitlistStatsInterface, WaitlistStatsModule, WaitlistStatus, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, dismissToast, entityObjectSchema, exists, formatDate, getBootstrapper, getClientGlobalErrorHandler, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, showCustomToast, showError, showToast, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema } from './core/index.js';
8
- import { b as AbstractService } from './s3.service-DjwEQJPe.js';
9
- export { A as AuthService, C as CompanyService, a as ContentService, F as FeatureService, H as HttpMethod, c as NextRef, N as NotificationService, d as PreviousRef, P as PushService, R as RoleService, j as S3Input, k as S3Interface, S as S3Service, e as SelfRef, T as TotalRef, i as TwoFactorChallengeInterface, U as UserService, f as clearLastApiTotal, h as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from './s3.service-DjwEQJPe.js';
10
- export { B as BreadcrumbItemData, H as HowToInput, a as HowToInterface } from './HowToInterface-BKhnkzBp.js';
6
+ export { AppModuleDefinitions, Assistant, AssistantMessage, AssistantMessageModule, AssistantMessageService, AssistantModule, AssistantService, AuditLog, AuditLogInterface, AuditLogModule, AuditLogService, Auth, AuthModule, AuthorModule, BackupCodeVerify, BackupCodeVerifyInput, BackupCodeVerifyModule, Billing, BillingModule, BillingService, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, ClientTotalRef, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, HowTo, HowToFields, HowToModule, HowToService, InviteValidation, JsonApiDataFactory, Module, ModuleDefinitions, ModuleModule, ModulePathsModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, OAuthClient, OAuthModule, OAuthService, Passkey, PasskeyAuthenticationOptions, PasskeyAuthenticationOptionsInput, PasskeyAuthenticationOptionsInterface, PasskeyAuthenticationOptionsModule, PasskeyModule, PasskeyRegistrationOptions, PasskeyRegistrationOptionsInput, PasskeyRegistrationOptionsInterface, PasskeyRegistrationOptionsModule, PasskeyRegistrationVerify, PasskeyRegistrationVerifyInput, PasskeyRegistrationVerifyModule, PasskeyRename, PasskeyRenameInput, PasskeyRenameModule, PasskeyVerifyLogin, PasskeyVerifyLoginInput, PasskeyVerifyLoginModule, PaymentMethod, PermissionMappingModule, Push, PushInput, PushInterface, PushModule, RbacMatrixModule, ReferralModule, ReferralService, ReferralStats, ReferralStatsModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, StripeCustomer, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceModule, StripePriceService, StripeProduct, StripeProductModule, StripeProductService, StripePromotionCode, StripePromotionCodeModule, StripePromotionCodeService, StripeSubscription, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageModule, StripeUsageService, TableOptions, ToastOptions, TotpAuthenticator, TotpAuthenticatorModule, TotpSetup, TotpSetupInput, TotpSetupInterface, TotpSetupModule, TotpVerify, TotpVerifyInput, TotpVerifyLogin, TotpVerifyLoginInput, TotpVerifyLoginModule, TotpVerifyModule, TwoFactorChallenge, TwoFactorChallengeInput, TwoFactorChallengeModule, TwoFactorEnable, TwoFactorEnableInput, TwoFactorEnableModule, TwoFactorService, TwoFactorStatus, TwoFactorStatusInterface, TwoFactorStatusModule, User, UserModule, UserObject, Waitlist, WaitlistInput, WaitlistInterface, WaitlistModule, WaitlistService, WaitlistStats, WaitlistStatsInterface, WaitlistStatsModule, WaitlistStatus, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, dismissToast, entityObjectSchema, exists, formatDate, getBootstrapper, getClientGlobalErrorHandler, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, showCustomToast, showError, showToast, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema } from './core/index.js';
7
+ import { b as AbstractService } from './s3.service-SLlX0Zbz.js';
8
+ export { A as AuthService, C as CompanyService, a as ContentService, F as FeatureService, H as HttpMethod, c as NextRef, N as NotificationService, d as PreviousRef, P as PushService, R as RoleService, j as S3Input, k as S3Interface, S as S3Service, e as SelfRef, T as TotalRef, i as TwoFactorChallengeInterface, U as UserService, f as clearLastApiTotal, h as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from './s3.service-SLlX0Zbz.js';
9
+ export { b as AssistantMessageInput, c as AssistantMessageInterface, A as AssistantMessageRole, B as BreadcrumbItemData, H as HowToInput, a as HowToInterface } from './AssistantMessageInterface-DWnbd6J7.js';
11
10
  export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from './content.fields-Ck5lkQ5d.js';
12
11
  export { ClassValue } from 'clsx';
13
- export { A as AuthComponent, P as PasskeyInterface, T as TotpAuthenticatorInterface, b as getIcon, a as getIconByModule, c as getIconByModuleName, g as getInitials, d as getLucideIcon, e as getLucideIconByModule, f as getLucideIconByModuleName } from './AuthComponent-Blbs06ud.js';
14
- import { R as RoleInterface } from './notification.interface-DcSuc9CL.js';
15
- export { A as Action, i as CompanyInput, j as CompanyInterface, a as ContentInput, C as ContentInterface, d as ModuleDefinition, h as ModuleFactory, c as ModulePermissionDefinition, M as ModuleWithPermissions, k as NotificationInput, N as NotificationInterface, b as PageUrl, P as PermissionCheck, e as PermissionConfig, f as PermissionModule, g as PermissionUser, l as RoleInput, m as UserInput, U as UserInterface } from './notification.interface-DcSuc9CL.js';
16
- export { A as AuthInput, b as AuthInterface, a as AuthQuery } from './auth.interface-CQJ6A2Cj.js';
12
+ export { A as AuthComponent, P as PasskeyInterface, T as TotpAuthenticatorInterface, b as getIcon, a as getIconByModule, c as getIconByModuleName, g as getInitials, d as getLucideIcon, e as getLucideIconByModule, f as getLucideIconByModuleName } from './AuthComponent-B6DIk8Vf.js';
13
+ export { A as Action, i as CompanyInput, j as CompanyInterface, a as ContentInput, C as ContentInterface, d as ModuleDefinition, h as ModuleFactory, c as ModulePermissionDefinition, M as ModuleWithPermissions, k as NotificationInput, N as NotificationInterface, b as PageUrl, P as PermissionCheck, e as PermissionConfig, f as PermissionModule, g as PermissionUser, R as RoleInput, l as RoleInterface, m as UserInput, U as UserInterface } from './notification.interface-aLEJbA_g.js';
14
+ export { A as AuthInput, b as AuthInterface, a as AuthQuery } from './auth.interface-BBUgMZzs.js';
17
15
  export { I as InvoiceStatus, M as MeterInterface, o as MeterSummaryInterface, P as PaymentMethodInterface, e as PriceRecurring, q as PromotionCodeValidationResult, c as ProrationLineItem, b as ProrationPreviewInterface, R as ReportUsageInput, S as StripeCustomerInterface, a as StripeInvoiceInterface, f as StripePriceInput, d as StripePriceInterface, h as StripeProductInput, g as StripeProductInterface, l as StripeSubscriptionCreateMeta, m as StripeSubscriptionCreateResponse, k as StripeSubscriptionInput, j as StripeSubscriptionInterface, n as StripeUsageInterface, i as SubscriptionStatus, p as UsageRecordInterface, U as UsageSummaryInterface } from './stripe-promotion-code.interface-C3qqh3mi.js';
18
- import { F as FeatureInterface } from './feature.interface-BO25VLlx.js';
19
- export { M as ModuleInterface } from './feature.interface-BO25VLlx.js';
16
+ export { A as AssistantInput, a as AssistantInterface } from './AssistantInterface-DfDcz0gJ.js';
17
+ export { F as FeatureInterface, M as ModuleInterface } from './feature.interface-BO25VLlx.js';
20
18
  export { A as AVAILABLE_OAUTH_SCOPES, D as DEFAULT_GRANT_TYPES, g as OAUTH_SCOPE_DISPLAY, b as OAuthClientCreateRequest, c as OAuthClientCreateResponse, a as OAuthClientInput, O as OAuthClientInterface, f as OAuthConsentInfo, d as OAuthConsentRequest, e as OAuthScopeInfo } from './oauth.interface-B6xmfDzK.js';
21
- export { I as I18nConfig, e as configureI18n, c as configureJsonApi, g as getApiUrl, a as getAppUrl, d as getStripePublishableKey, b as getTrackablePages } from './config-B3jKt9P7.js';
19
+ export { I as I18nConfig, e as configureI18n, c as configureJsonApi, g as getApiUrl, a as getAppUrl, d as getStripePublishableKey, b as getTrackablePages } from './config-B5oBQVEA.js';
22
20
  export { Q as QuestionnaireField, a as QuestionnaireFieldType, b as QuestionnaireOption, W as WaitlistConfig, c as configureWaitlist, g as getWaitlistConfig } from './waitlist.config-kPfjImle.js';
23
- import { P as PermissionMappingInterface, M as ModulePathsInterface } from './ModulePathsInterface-DJKs7s_s.js';
24
- export { c as ACTION_TYPES, A as ActionType, C as COMPANY_ADMINISTRATOR_ROLE_ID, a as PermissionValue, b as PermissionsMap } from './ModulePathsInterface-DJKs7s_s.js';
21
+ import { R as RbacMatrix } from './RbacTypes-BTbr27Ew.js';
22
+ export { a as ACTION_TYPES, A as ActionType, C as COMPANY_ADMINISTRATOR_ROLE_ID, c as PermToken, P as PermissionValue, b as PermissionsMap, d as RbacModuleBlock } from './RbacTypes-BTbr27Ew.js';
25
23
  import 'react';
26
24
  import 'zod';
27
25
  import '@blocknote/core';
@@ -180,6 +178,17 @@ declare function getReferralConfig(): Required<ReferralConfig>;
180
178
  */
181
179
  declare function isReferralEnabled(): boolean;
182
180
 
181
+ interface PermissionMappingInterface extends ApiDataInterface {
182
+ get roleId(): string;
183
+ get moduleId(): string;
184
+ get permissions(): {
185
+ create?: boolean | string;
186
+ read?: boolean | string;
187
+ update?: boolean | string;
188
+ delete?: boolean | string;
189
+ };
190
+ }
191
+
183
192
  declare class PermissionMapping extends AbstractApiData implements PermissionMappingInterface {
184
193
  private _roleId?;
185
194
  private _moduleId?;
@@ -195,6 +204,11 @@ declare class PermissionMapping extends AbstractApiData implements PermissionMap
195
204
  rehydrate(data: JsonApiHydratedDataInterface): this;
196
205
  }
197
206
 
207
+ interface ModulePathsInterface extends ApiDataInterface {
208
+ get moduleId(): string;
209
+ get paths(): string[];
210
+ }
211
+
198
212
  declare class ModulePaths extends AbstractApiData implements ModulePathsInterface {
199
213
  private _moduleId?;
200
214
  private _paths?;
@@ -203,11 +217,95 @@ declare class ModulePaths extends AbstractApiData implements ModulePathsInterfac
203
217
  rehydrate(data: JsonApiHydratedDataInterface): this;
204
218
  }
205
219
 
220
+ /**
221
+ * Input shape accepted by `RbacMatrixModel.createJsonApi()` for a PUT request
222
+ * to the dev matrix endpoint.
223
+ */
224
+ interface RbacMatrixInput {
225
+ matrix: RbacMatrix;
226
+ roleNames: Record<string, string>;
227
+ moduleNames: Record<string, string>;
228
+ outputPath: string;
229
+ }
230
+ /**
231
+ * Frontend model for the dev-only `rbac-matrix` JSON:API resource.
232
+ *
233
+ * Backend contract (see `rbac-dev.controller.ts`):
234
+ * - `GET /_dev/rbac/matrix` → `{ data: { type: "rbac-matrix", id: "singleton",
235
+ * attributes: { matrix } } }`
236
+ * - `PUT /_dev/rbac/matrix` body: `{ data: { type: "rbac-matrix", attributes:
237
+ * { matrix, roleNames, moduleNames, outputPath } } }`
238
+ * → `{ data: { type: "rbac-matrix", id: "singleton", attributes: { bytesWritten, path } } }`
239
+ *
240
+ * The resource is a singleton (`id: "singleton"`) so there is no collection
241
+ * listing; the "read" and "write" shapes share a single model with optional
242
+ * fields populated depending on which endpoint produced the response.
243
+ */
244
+ declare class RbacMatrixModel extends AbstractApiData {
245
+ private _matrix?;
246
+ private _modulePaths?;
247
+ private _bytesWritten?;
248
+ private _path?;
249
+ /** The RBAC matrix object (populated after a GET). */
250
+ get matrix(): RbacMatrix | undefined;
251
+ /**
252
+ * UUID-keyed map of each module's known BFS relationship paths (populated
253
+ * after a GET). Fed to the permission picker as scope suggestions.
254
+ */
255
+ get modulePaths(): Record<string, readonly string[]> | undefined;
256
+ /** Bytes written to the permissions.ts file (populated after a PUT). */
257
+ get bytesWritten(): number | undefined;
258
+ /** Resolved absolute output path (populated after a PUT). */
259
+ get path(): string | undefined;
260
+ rehydrate(data: JsonApiHydratedDataInterface): this;
261
+ createJsonApi(data: RbacMatrixInput): any;
262
+ }
263
+
264
+ /**
265
+ * RbacService — fetches RBAC configuration for the admin UI.
266
+ *
267
+ * Declarative-matrix methods (`fetchMatrix`, `saveMatrix`) talk to the
268
+ * dev-only endpoints added in
269
+ * `packages/nestjs-neo4jsonapi/.../rbac-dev.controller.ts`. The controller
270
+ * speaks JSON:API (singleton resource with `type: "rbac-matrix"`, `id:
271
+ * "singleton"`), so these methods go through the standard `callApi()`
272
+ * pipeline like every other service in the codebase.
273
+ *
274
+ * The backend only registers these routes when `devMode` is enabled on
275
+ * `RbacModule.register` (see `apps/api/src/features/features.modules.ts`).
276
+ * In production the routes return 404; callers should guard with a dev-mode
277
+ * check.
278
+ */
206
279
  declare class RbacService extends AbstractService {
207
- static getFeatures(): Promise<FeatureInterface[]>;
208
- static getRoles(): Promise<RoleInterface[]>;
209
- static getPermissionMappings(): Promise<PermissionMappingInterface[]>;
210
- static getModuleRelationshipPaths(): Promise<ModulePathsInterface[]>;
280
+ /**
281
+ * Fetch the current RBAC matrix plus each module's known BFS relationship
282
+ * paths (used by the permission picker as scope suggestions).
283
+ *
284
+ * Dev-only endpoint — see class header.
285
+ */
286
+ static fetchMatrix(): Promise<{
287
+ matrix: RbacMatrix;
288
+ modulePaths: Record<string, readonly string[]>;
289
+ }>;
290
+ /**
291
+ * Persist a matrix back to the declarative `permissions.ts` file.
292
+ *
293
+ * The backend serializes the matrix to formatted TypeScript using the
294
+ * provided `roleNames` / `moduleNames` lookup tables (so the emitted file
295
+ * references `RoleId.X` / `ModuleId.X` rather than raw UUIDs) and writes
296
+ * it to `outputPath` (absolute, or relative to the repo root).
297
+ *
298
+ * Dev-only endpoint — see class header.
299
+ */
300
+ static saveMatrix(args: {
301
+ matrix: RbacMatrix;
302
+ roleNames: Record<string, string>;
303
+ moduleNames: Record<string, string>;
304
+ outputPath: string;
305
+ }): Promise<{
306
+ bytesWritten: number;
307
+ path: string;
308
+ }>;
211
309
  }
212
310
 
213
- export { AbstractApiData, AbstractService, FeatureInterface, JsonApiHydratedDataInterface, type LoginConfig, ModulePaths, ModulePathsInterface, PermissionMapping, PermissionMappingInterface, RbacService, type ReferralConfig, type RoleIdConfig, RoleInterface, type TokenHandler, type TokenParams, configureAuth, configureLogin, configureReferral, configureRoles, getReferralConfig, getRoleId, getTokenHandler, isReferralEnabled, isRolesConfigured };
311
+ export { AbstractApiData, AbstractService, ApiDataInterface, JsonApiHydratedDataInterface, type LoginConfig, ModulePaths, type ModulePathsInterface, PermissionMapping, type PermissionMappingInterface, RbacMatrix, type RbacMatrixInput, RbacMatrixModel, RbacService, type ReferralConfig, type RoleIdConfig, type TokenHandler, type TokenParams, configureAuth, configureLogin, configureReferral, configureRoles, getReferralConfig, getRoleId, getTokenHandler, isReferralEnabled, isRolesConfigured };
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@
17
17
 
18
18
 
19
19
 
20
- var _chunkOTZEXASKjs = require('./chunk-OTZEXASK.js');
20
+ var _chunkTWDSDTHUjs = require('./chunk-TWDSDTHU.js');
21
21
 
22
22
 
23
23
 
@@ -187,7 +187,15 @@ var _chunkOTZEXASKjs = require('./chunk-OTZEXASK.js');
187
187
 
188
188
 
189
189
 
190
- var _chunkFKLP4NEDjs = require('./chunk-FKLP4NED.js');
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+ var _chunk5IEWLLLDjs = require('./chunk-5IEWLLLD.js');
191
199
  require('./chunk-LXKSUWAV.js');
192
200
  require('./chunk-IBS6NI7D.js');
193
201
 
@@ -399,5 +407,13 @@ require('./chunk-7QVYU63E.js');
399
407
 
400
408
 
401
409
 
402
- exports.ACTION_TYPES = _chunkOTZEXASKjs.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunkFKLP4NEDjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkFKLP4NEDjs.AbstractApiData; exports.AbstractService = _chunkFKLP4NEDjs.AbstractService; exports.Action = _chunkFKLP4NEDjs.Action; exports.AuditLog = _chunkFKLP4NEDjs.AuditLog; exports.AuditLogModule = _chunkFKLP4NEDjs.AuditLogModule; exports.AuditLogService = _chunkFKLP4NEDjs.AuditLogService; exports.Auth = _chunkFKLP4NEDjs.Auth; exports.AuthComponent = _chunkFKLP4NEDjs.AuthComponent; exports.AuthModule = _chunkFKLP4NEDjs.AuthModule; exports.AuthService = _chunkFKLP4NEDjs.AuthService; exports.AuthorModule = _chunkFKLP4NEDjs.AuthorModule; exports.BackupCodeVerify = _chunkFKLP4NEDjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkFKLP4NEDjs.BackupCodeVerifyModule; exports.Billing = _chunkFKLP4NEDjs.Billing; exports.BillingModule = _chunkFKLP4NEDjs.BillingModule; exports.BillingService = _chunkFKLP4NEDjs.BillingService; exports.BlockNoteDiffUtil = _chunkFKLP4NEDjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkFKLP4NEDjs.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunkOTZEXASKjs.COMPANY_ADMINISTRATOR_ROLE_ID; exports.ClientAbstractService = _chunkFKLP4NEDjs.ClientAbstractService; exports.ClientHttpMethod = _chunkFKLP4NEDjs.ClientHttpMethod; exports.Company = _chunkFKLP4NEDjs.Company; exports.CompanyFields = _chunkFKLP4NEDjs.CompanyFields; exports.CompanyModule = _chunkFKLP4NEDjs.CompanyModule; exports.CompanyService = _chunkFKLP4NEDjs.CompanyService; exports.Content = _chunkFKLP4NEDjs.Content; exports.ContentFields = _chunkFKLP4NEDjs.ContentFields; exports.ContentModule = _chunkFKLP4NEDjs.ContentModule; exports.ContentService = _chunkFKLP4NEDjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkFKLP4NEDjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunk4MN547K7js.DataClassRegistry; exports.DataClassRegistry = _chunk4MN547K7js.DataClassRegistry; exports.EndpointCreator = _chunkFKLP4NEDjs.EndpointCreator; exports.Feature = _chunkFKLP4NEDjs.Feature; exports.FeatureModule = _chunkFKLP4NEDjs.FeatureModule; exports.FeatureService = _chunkFKLP4NEDjs.FeatureService; exports.HowTo = _chunkFKLP4NEDjs.HowTo; exports.HowToFields = _chunkFKLP4NEDjs.HowToFields; exports.HowToModule = _chunkFKLP4NEDjs.HowToModule; exports.HowToService = _chunkFKLP4NEDjs.HowToService; exports.HttpMethod = _chunkFKLP4NEDjs.HttpMethod; exports.InvoiceStatus = _chunkFKLP4NEDjs.InvoiceStatus; exports.JsonApiDataFactory = _chunk4MN547K7js.JsonApiDataFactory; exports.Module = _chunkFKLP4NEDjs.Module; exports.ModuleModule = _chunkFKLP4NEDjs.ModuleModule; exports.ModulePaths = _chunkFKLP4NEDjs.ModulePaths; exports.ModulePathsModule = _chunkFKLP4NEDjs.ModulePathsModule; exports.ModuleRegistrar = _chunkFKLP4NEDjs.ModuleRegistrar; exports.ModuleRegistry = _chunkFKLP4NEDjs.ModuleRegistry; exports.Modules = _chunkFKLP4NEDjs.Modules; exports.Notification = _chunkFKLP4NEDjs.Notification; exports.NotificationFields = _chunkFKLP4NEDjs.NotificationFields; exports.NotificationModule = _chunkFKLP4NEDjs.NotificationModule; exports.NotificationService = _chunkFKLP4NEDjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkFKLP4NEDjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkFKLP4NEDjs.OAuthClient; exports.OAuthModule = _chunkFKLP4NEDjs.OAuthModule; exports.OAuthService = _chunkFKLP4NEDjs.OAuthService; exports.Passkey = _chunkFKLP4NEDjs.Passkey; exports.PasskeyAuthenticationOptions = _chunkFKLP4NEDjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkFKLP4NEDjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkFKLP4NEDjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkFKLP4NEDjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkFKLP4NEDjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkFKLP4NEDjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkFKLP4NEDjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkFKLP4NEDjs.PasskeyRename; exports.PasskeyRenameModule = _chunkFKLP4NEDjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkFKLP4NEDjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkFKLP4NEDjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkFKLP4NEDjs.PaymentMethod; exports.PermissionMapping = _chunkFKLP4NEDjs.PermissionMapping; exports.PermissionMappingModule = _chunkFKLP4NEDjs.PermissionMappingModule; exports.Push = _chunkFKLP4NEDjs.Push; exports.PushModule = _chunkFKLP4NEDjs.PushModule; exports.PushService = _chunkFKLP4NEDjs.PushService; exports.RbacService = _chunkOTZEXASKjs.RbacService; exports.ReferralModule = _chunkFKLP4NEDjs.ReferralModule; exports.ReferralService = _chunkFKLP4NEDjs.ReferralService; exports.ReferralStats = _chunkFKLP4NEDjs.ReferralStats; exports.ReferralStatsModule = _chunkFKLP4NEDjs.ReferralStatsModule; exports.RehydrationFactory = _chunkFKLP4NEDjs.RehydrationFactory; exports.Role = _chunkFKLP4NEDjs.Role; exports.RoleFields = _chunkFKLP4NEDjs.RoleFields; exports.RoleModule = _chunkFKLP4NEDjs.RoleModule; exports.RoleService = _chunkFKLP4NEDjs.RoleService; exports.S3 = _chunkFKLP4NEDjs.S3; exports.S3Module = _chunkFKLP4NEDjs.S3Module; exports.S3Service = _chunkFKLP4NEDjs.S3Service; exports.StripeCustomer = _chunkFKLP4NEDjs.StripeCustomer; exports.StripeCustomerModule = _chunkFKLP4NEDjs.StripeCustomerModule; exports.StripeCustomerService = _chunkFKLP4NEDjs.StripeCustomerService; exports.StripeInvoice = _chunkFKLP4NEDjs.StripeInvoice; exports.StripeInvoiceModule = _chunkFKLP4NEDjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkFKLP4NEDjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkFKLP4NEDjs.StripePaymentMethodModule; exports.StripePrice = _chunkFKLP4NEDjs.StripePrice; exports.StripePriceModule = _chunkFKLP4NEDjs.StripePriceModule; exports.StripePriceService = _chunkFKLP4NEDjs.StripePriceService; exports.StripeProduct = _chunkFKLP4NEDjs.StripeProduct; exports.StripeProductModule = _chunkFKLP4NEDjs.StripeProductModule; exports.StripeProductService = _chunkFKLP4NEDjs.StripeProductService; exports.StripePromotionCode = _chunkFKLP4NEDjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunkFKLP4NEDjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkFKLP4NEDjs.StripePromotionCodeService; exports.StripeSubscription = _chunkFKLP4NEDjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkFKLP4NEDjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkFKLP4NEDjs.StripeSubscriptionService; exports.StripeUsage = _chunkFKLP4NEDjs.StripeUsage; exports.StripeUsageModule = _chunkFKLP4NEDjs.StripeUsageModule; exports.StripeUsageService = _chunkFKLP4NEDjs.StripeUsageService; exports.SubscriptionStatus = _chunkFKLP4NEDjs.SubscriptionStatus; exports.TableOptions = _chunkFKLP4NEDjs.TableOptions; exports.TotpAuthenticator = _chunkFKLP4NEDjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkFKLP4NEDjs.TotpAuthenticatorModule; exports.TotpSetup = _chunkFKLP4NEDjs.TotpSetup; exports.TotpSetupModule = _chunkFKLP4NEDjs.TotpSetupModule; exports.TotpVerify = _chunkFKLP4NEDjs.TotpVerify; exports.TotpVerifyLogin = _chunkFKLP4NEDjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkFKLP4NEDjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkFKLP4NEDjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunkFKLP4NEDjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkFKLP4NEDjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkFKLP4NEDjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkFKLP4NEDjs.TwoFactorEnableModule; exports.TwoFactorService = _chunkFKLP4NEDjs.TwoFactorService; exports.TwoFactorStatus = _chunkFKLP4NEDjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkFKLP4NEDjs.TwoFactorStatusModule; exports.User = _chunkFKLP4NEDjs.User; exports.UserFields = _chunkFKLP4NEDjs.UserFields; exports.UserModule = _chunkFKLP4NEDjs.UserModule; exports.UserService = _chunkFKLP4NEDjs.UserService; exports.Waitlist = _chunkFKLP4NEDjs.Waitlist; exports.WaitlistModule = _chunkFKLP4NEDjs.WaitlistModule; exports.WaitlistService = _chunkFKLP4NEDjs.WaitlistService; exports.WaitlistStats = _chunkFKLP4NEDjs.WaitlistStats; exports.WaitlistStatsModule = _chunkFKLP4NEDjs.WaitlistStatsModule; exports.checkPermissions = _chunkFKLP4NEDjs.checkPermissions; exports.checkPermissionsFromServer = _chunkFKLP4NEDjs.checkPermissionsFromServer; exports.clearLastApiTotal = _chunkFKLP4NEDjs.clearLastApiTotal; exports.cn = _chunkFKLP4NEDjs.cn; exports.composeRefs = _chunkFKLP4NEDjs.composeRefs; exports.configureAuth = _chunkFKLP4NEDjs.configureAuth; exports.configureI18n = _chunkOTZEXASKjs.configureI18n; exports.configureJsonApi = _chunkOTZEXASKjs.configureJsonApi; exports.configureLogin = _chunkOTZEXASKjs.configureLogin; exports.configureReferral = _chunkOTZEXASKjs.configureReferral; exports.configureRoles = _chunkOTZEXASKjs.configureRoles; exports.configureWaitlist = _chunkOTZEXASKjs.configureWaitlist; exports.createJsonApiInclusion = _chunkFKLP4NEDjs.createJsonApiInclusion; exports.dismissToast = _chunkFKLP4NEDjs.dismissToast; exports.entityObjectSchema = _chunkFKLP4NEDjs.entityObjectSchema; exports.exists = _chunkFKLP4NEDjs.exists; exports.formatDate = _chunkFKLP4NEDjs.formatDate; exports.getApiUrl = _chunkOTZEXASKjs.getApiUrl; exports.getAppUrl = _chunkOTZEXASKjs.getAppUrl; exports.getBootstrapper = _chunk4MN547K7js.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkFKLP4NEDjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkFKLP4NEDjs.getGlobalErrorHandler; exports.getIcon = _chunkFKLP4NEDjs.getIcon; exports.getIconByModule = _chunkFKLP4NEDjs.getIconByModule; exports.getIconByModuleName = _chunkFKLP4NEDjs.getIconByModuleName; exports.getInitials = _chunkFKLP4NEDjs.getInitials; exports.getLastApiTotal = _chunkFKLP4NEDjs.getLastApiTotal; exports.getLucideIcon = _chunkFKLP4NEDjs.getLucideIcon; exports.getLucideIconByModule = _chunkFKLP4NEDjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkFKLP4NEDjs.getLucideIconByModuleName; exports.getReferralConfig = _chunkOTZEXASKjs.getReferralConfig; exports.getRoleId = _chunkOTZEXASKjs.getRoleId; exports.getStripePublishableKey = _chunkOTZEXASKjs.getStripePublishableKey; exports.getTableComponents = _chunkFKLP4NEDjs.getTableComponents; exports.getTableOptions = _chunkFKLP4NEDjs.getTableOptions; exports.getTokenHandler = _chunkFKLP4NEDjs.getTokenHandler; exports.getTrackablePages = _chunkOTZEXASKjs.getTrackablePages; exports.getValueFromPath = _chunkFKLP4NEDjs.getValueFromPath; exports.getWaitlistConfig = _chunkOTZEXASKjs.getWaitlistConfig; exports.hasBootstrapper = _chunk4MN547K7js.hasBootstrapper; exports.isReferralEnabled = _chunkOTZEXASKjs.isReferralEnabled; exports.isRolesConfigured = _chunkOTZEXASKjs.isRolesConfigured; exports.rehydrate = _chunkFKLP4NEDjs.rehydrate; exports.rehydrateList = _chunkFKLP4NEDjs.rehydrateList; exports.resetBootstrapStore = _chunk4MN547K7js.resetBootstrapStore; exports.setBootstrapper = _chunk4MN547K7js.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkFKLP4NEDjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkFKLP4NEDjs.setGlobalErrorHandler; exports.showCustomToast = _chunkFKLP4NEDjs.showCustomToast; exports.showError = _chunkFKLP4NEDjs.showError; exports.showToast = _chunkFKLP4NEDjs.showToast; exports.translateData = _chunk4MN547K7js.translateData; exports.translateResponse = _chunk4MN547K7js.translateResponse; exports.tryBootstrap = _chunk4MN547K7js.tryBootstrap; exports.useComposedRefs = _chunkFKLP4NEDjs.useComposedRefs; exports.useIsMobile = _chunkFKLP4NEDjs.useIsMobile; exports.userObjectSchema = _chunkFKLP4NEDjs.userObjectSchema;
410
+
411
+
412
+
413
+
414
+
415
+
416
+
417
+
418
+ exports.ACTION_TYPES = _chunkTWDSDTHUjs.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunk5IEWLLLDjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunk5IEWLLLDjs.AbstractApiData; exports.AbstractService = _chunk5IEWLLLDjs.AbstractService; exports.Action = _chunk5IEWLLLDjs.Action; exports.Assistant = _chunk5IEWLLLDjs.Assistant; exports.AssistantMessage = _chunk5IEWLLLDjs.AssistantMessage; exports.AssistantMessageModule = _chunk5IEWLLLDjs.AssistantMessageModule; exports.AssistantMessageService = _chunk5IEWLLLDjs.AssistantMessageService; exports.AssistantModule = _chunk5IEWLLLDjs.AssistantModule; exports.AssistantService = _chunk5IEWLLLDjs.AssistantService; exports.AuditLog = _chunk5IEWLLLDjs.AuditLog; exports.AuditLogModule = _chunk5IEWLLLDjs.AuditLogModule; exports.AuditLogService = _chunk5IEWLLLDjs.AuditLogService; exports.Auth = _chunk5IEWLLLDjs.Auth; exports.AuthComponent = _chunk5IEWLLLDjs.AuthComponent; exports.AuthModule = _chunk5IEWLLLDjs.AuthModule; exports.AuthService = _chunk5IEWLLLDjs.AuthService; exports.AuthorModule = _chunk5IEWLLLDjs.AuthorModule; exports.BackupCodeVerify = _chunk5IEWLLLDjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunk5IEWLLLDjs.BackupCodeVerifyModule; exports.Billing = _chunk5IEWLLLDjs.Billing; exports.BillingModule = _chunk5IEWLLLDjs.BillingModule; exports.BillingService = _chunk5IEWLLLDjs.BillingService; exports.BlockNoteDiffUtil = _chunk5IEWLLLDjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunk5IEWLLLDjs.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunkTWDSDTHUjs.COMPANY_ADMINISTRATOR_ROLE_ID; exports.ClientAbstractService = _chunk5IEWLLLDjs.ClientAbstractService; exports.ClientHttpMethod = _chunk5IEWLLLDjs.ClientHttpMethod; exports.Company = _chunk5IEWLLLDjs.Company; exports.CompanyFields = _chunk5IEWLLLDjs.CompanyFields; exports.CompanyModule = _chunk5IEWLLLDjs.CompanyModule; exports.CompanyService = _chunk5IEWLLLDjs.CompanyService; exports.Content = _chunk5IEWLLLDjs.Content; exports.ContentFields = _chunk5IEWLLLDjs.ContentFields; exports.ContentModule = _chunk5IEWLLLDjs.ContentModule; exports.ContentService = _chunk5IEWLLLDjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunk5IEWLLLDjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunk4MN547K7js.DataClassRegistry; exports.DataClassRegistry = _chunk4MN547K7js.DataClassRegistry; exports.EndpointCreator = _chunk5IEWLLLDjs.EndpointCreator; exports.Feature = _chunk5IEWLLLDjs.Feature; exports.FeatureModule = _chunk5IEWLLLDjs.FeatureModule; exports.FeatureService = _chunk5IEWLLLDjs.FeatureService; exports.HowTo = _chunk5IEWLLLDjs.HowTo; exports.HowToFields = _chunk5IEWLLLDjs.HowToFields; exports.HowToModule = _chunk5IEWLLLDjs.HowToModule; exports.HowToService = _chunk5IEWLLLDjs.HowToService; exports.HttpMethod = _chunk5IEWLLLDjs.HttpMethod; exports.InvoiceStatus = _chunk5IEWLLLDjs.InvoiceStatus; exports.JsonApiDataFactory = _chunk4MN547K7js.JsonApiDataFactory; exports.Module = _chunk5IEWLLLDjs.Module; exports.ModuleModule = _chunk5IEWLLLDjs.ModuleModule; exports.ModulePaths = _chunk5IEWLLLDjs.ModulePaths; exports.ModulePathsModule = _chunk5IEWLLLDjs.ModulePathsModule; exports.ModuleRegistrar = _chunk5IEWLLLDjs.ModuleRegistrar; exports.ModuleRegistry = _chunk5IEWLLLDjs.ModuleRegistry; exports.Modules = _chunk5IEWLLLDjs.Modules; exports.Notification = _chunk5IEWLLLDjs.Notification; exports.NotificationFields = _chunk5IEWLLLDjs.NotificationFields; exports.NotificationModule = _chunk5IEWLLLDjs.NotificationModule; exports.NotificationService = _chunk5IEWLLLDjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunk5IEWLLLDjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunk5IEWLLLDjs.OAuthClient; exports.OAuthModule = _chunk5IEWLLLDjs.OAuthModule; exports.OAuthService = _chunk5IEWLLLDjs.OAuthService; exports.Passkey = _chunk5IEWLLLDjs.Passkey; exports.PasskeyAuthenticationOptions = _chunk5IEWLLLDjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunk5IEWLLLDjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunk5IEWLLLDjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunk5IEWLLLDjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunk5IEWLLLDjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunk5IEWLLLDjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunk5IEWLLLDjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunk5IEWLLLDjs.PasskeyRename; exports.PasskeyRenameModule = _chunk5IEWLLLDjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunk5IEWLLLDjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunk5IEWLLLDjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunk5IEWLLLDjs.PaymentMethod; exports.PermissionMapping = _chunk5IEWLLLDjs.PermissionMapping; exports.PermissionMappingModule = _chunk5IEWLLLDjs.PermissionMappingModule; exports.Push = _chunk5IEWLLLDjs.Push; exports.PushModule = _chunk5IEWLLLDjs.PushModule; exports.PushService = _chunk5IEWLLLDjs.PushService; exports.RbacMatrixModel = _chunk5IEWLLLDjs.RbacMatrixModel; exports.RbacMatrixModule = _chunk5IEWLLLDjs.RbacMatrixModule; exports.RbacService = _chunkTWDSDTHUjs.RbacService; exports.ReferralModule = _chunk5IEWLLLDjs.ReferralModule; exports.ReferralService = _chunk5IEWLLLDjs.ReferralService; exports.ReferralStats = _chunk5IEWLLLDjs.ReferralStats; exports.ReferralStatsModule = _chunk5IEWLLLDjs.ReferralStatsModule; exports.RehydrationFactory = _chunk5IEWLLLDjs.RehydrationFactory; exports.Role = _chunk5IEWLLLDjs.Role; exports.RoleFields = _chunk5IEWLLLDjs.RoleFields; exports.RoleModule = _chunk5IEWLLLDjs.RoleModule; exports.RoleService = _chunk5IEWLLLDjs.RoleService; exports.S3 = _chunk5IEWLLLDjs.S3; exports.S3Module = _chunk5IEWLLLDjs.S3Module; exports.S3Service = _chunk5IEWLLLDjs.S3Service; exports.StripeCustomer = _chunk5IEWLLLDjs.StripeCustomer; exports.StripeCustomerModule = _chunk5IEWLLLDjs.StripeCustomerModule; exports.StripeCustomerService = _chunk5IEWLLLDjs.StripeCustomerService; exports.StripeInvoice = _chunk5IEWLLLDjs.StripeInvoice; exports.StripeInvoiceModule = _chunk5IEWLLLDjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunk5IEWLLLDjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunk5IEWLLLDjs.StripePaymentMethodModule; exports.StripePrice = _chunk5IEWLLLDjs.StripePrice; exports.StripePriceModule = _chunk5IEWLLLDjs.StripePriceModule; exports.StripePriceService = _chunk5IEWLLLDjs.StripePriceService; exports.StripeProduct = _chunk5IEWLLLDjs.StripeProduct; exports.StripeProductModule = _chunk5IEWLLLDjs.StripeProductModule; exports.StripeProductService = _chunk5IEWLLLDjs.StripeProductService; exports.StripePromotionCode = _chunk5IEWLLLDjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunk5IEWLLLDjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunk5IEWLLLDjs.StripePromotionCodeService; exports.StripeSubscription = _chunk5IEWLLLDjs.StripeSubscription; exports.StripeSubscriptionModule = _chunk5IEWLLLDjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunk5IEWLLLDjs.StripeSubscriptionService; exports.StripeUsage = _chunk5IEWLLLDjs.StripeUsage; exports.StripeUsageModule = _chunk5IEWLLLDjs.StripeUsageModule; exports.StripeUsageService = _chunk5IEWLLLDjs.StripeUsageService; exports.SubscriptionStatus = _chunk5IEWLLLDjs.SubscriptionStatus; exports.TableOptions = _chunk5IEWLLLDjs.TableOptions; exports.TotpAuthenticator = _chunk5IEWLLLDjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunk5IEWLLLDjs.TotpAuthenticatorModule; exports.TotpSetup = _chunk5IEWLLLDjs.TotpSetup; exports.TotpSetupModule = _chunk5IEWLLLDjs.TotpSetupModule; exports.TotpVerify = _chunk5IEWLLLDjs.TotpVerify; exports.TotpVerifyLogin = _chunk5IEWLLLDjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunk5IEWLLLDjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunk5IEWLLLDjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunk5IEWLLLDjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunk5IEWLLLDjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunk5IEWLLLDjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunk5IEWLLLDjs.TwoFactorEnableModule; exports.TwoFactorService = _chunk5IEWLLLDjs.TwoFactorService; exports.TwoFactorStatus = _chunk5IEWLLLDjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunk5IEWLLLDjs.TwoFactorStatusModule; exports.User = _chunk5IEWLLLDjs.User; exports.UserFields = _chunk5IEWLLLDjs.UserFields; exports.UserModule = _chunk5IEWLLLDjs.UserModule; exports.UserService = _chunk5IEWLLLDjs.UserService; exports.Waitlist = _chunk5IEWLLLDjs.Waitlist; exports.WaitlistModule = _chunk5IEWLLLDjs.WaitlistModule; exports.WaitlistService = _chunk5IEWLLLDjs.WaitlistService; exports.WaitlistStats = _chunk5IEWLLLDjs.WaitlistStats; exports.WaitlistStatsModule = _chunk5IEWLLLDjs.WaitlistStatsModule; exports.checkPermissions = _chunk5IEWLLLDjs.checkPermissions; exports.checkPermissionsFromServer = _chunk5IEWLLLDjs.checkPermissionsFromServer; exports.clearLastApiTotal = _chunk5IEWLLLDjs.clearLastApiTotal; exports.cn = _chunk5IEWLLLDjs.cn; exports.composeRefs = _chunk5IEWLLLDjs.composeRefs; exports.configureAuth = _chunk5IEWLLLDjs.configureAuth; exports.configureI18n = _chunkTWDSDTHUjs.configureI18n; exports.configureJsonApi = _chunkTWDSDTHUjs.configureJsonApi; exports.configureLogin = _chunkTWDSDTHUjs.configureLogin; exports.configureReferral = _chunkTWDSDTHUjs.configureReferral; exports.configureRoles = _chunkTWDSDTHUjs.configureRoles; exports.configureWaitlist = _chunkTWDSDTHUjs.configureWaitlist; exports.createJsonApiInclusion = _chunk5IEWLLLDjs.createJsonApiInclusion; exports.dismissToast = _chunk5IEWLLLDjs.dismissToast; exports.entityObjectSchema = _chunk5IEWLLLDjs.entityObjectSchema; exports.exists = _chunk5IEWLLLDjs.exists; exports.formatDate = _chunk5IEWLLLDjs.formatDate; exports.getApiUrl = _chunkTWDSDTHUjs.getApiUrl; exports.getAppUrl = _chunkTWDSDTHUjs.getAppUrl; exports.getBootstrapper = _chunk4MN547K7js.getBootstrapper; exports.getClientGlobalErrorHandler = _chunk5IEWLLLDjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunk5IEWLLLDjs.getGlobalErrorHandler; exports.getIcon = _chunk5IEWLLLDjs.getIcon; exports.getIconByModule = _chunk5IEWLLLDjs.getIconByModule; exports.getIconByModuleName = _chunk5IEWLLLDjs.getIconByModuleName; exports.getInitials = _chunk5IEWLLLDjs.getInitials; exports.getLastApiTotal = _chunk5IEWLLLDjs.getLastApiTotal; exports.getLucideIcon = _chunk5IEWLLLDjs.getLucideIcon; exports.getLucideIconByModule = _chunk5IEWLLLDjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunk5IEWLLLDjs.getLucideIconByModuleName; exports.getReferralConfig = _chunkTWDSDTHUjs.getReferralConfig; exports.getRoleId = _chunkTWDSDTHUjs.getRoleId; exports.getStripePublishableKey = _chunkTWDSDTHUjs.getStripePublishableKey; exports.getTableComponents = _chunk5IEWLLLDjs.getTableComponents; exports.getTableOptions = _chunk5IEWLLLDjs.getTableOptions; exports.getTokenHandler = _chunk5IEWLLLDjs.getTokenHandler; exports.getTrackablePages = _chunkTWDSDTHUjs.getTrackablePages; exports.getValueFromPath = _chunk5IEWLLLDjs.getValueFromPath; exports.getWaitlistConfig = _chunkTWDSDTHUjs.getWaitlistConfig; exports.hasBootstrapper = _chunk4MN547K7js.hasBootstrapper; exports.isReferralEnabled = _chunkTWDSDTHUjs.isReferralEnabled; exports.isRolesConfigured = _chunkTWDSDTHUjs.isRolesConfigured; exports.rehydrate = _chunk5IEWLLLDjs.rehydrate; exports.rehydrateList = _chunk5IEWLLLDjs.rehydrateList; exports.resetBootstrapStore = _chunk4MN547K7js.resetBootstrapStore; exports.setBootstrapper = _chunk4MN547K7js.setBootstrapper; exports.setClientGlobalErrorHandler = _chunk5IEWLLLDjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunk5IEWLLLDjs.setGlobalErrorHandler; exports.showCustomToast = _chunk5IEWLLLDjs.showCustomToast; exports.showError = _chunk5IEWLLLDjs.showError; exports.showToast = _chunk5IEWLLLDjs.showToast; exports.translateData = _chunk4MN547K7js.translateData; exports.translateResponse = _chunk4MN547K7js.translateResponse; exports.tryBootstrap = _chunk4MN547K7js.tryBootstrap; exports.useComposedRefs = _chunk5IEWLLLDjs.useComposedRefs; exports.useIsMobile = _chunk5IEWLLLDjs.useIsMobile; exports.userObjectSchema = _chunk5IEWLLLDjs.userObjectSchema;
403
419
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,2jXAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/index.js"}
1
+ {"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,mjYAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/index.js"}
package/dist/index.mjs CHANGED
@@ -17,12 +17,18 @@ import {
17
17
  getWaitlistConfig,
18
18
  isReferralEnabled,
19
19
  isRolesConfigured
20
- } from "./chunk-JOJZRGZL.mjs";
20
+ } from "./chunk-MEWXQEVE.mjs";
21
21
  import {
22
22
  AVAILABLE_OAUTH_SCOPES,
23
23
  AbstractApiData,
24
24
  AbstractService,
25
25
  Action,
26
+ Assistant,
27
+ AssistantMessage,
28
+ AssistantMessageModule,
29
+ AssistantMessageService,
30
+ AssistantModule,
31
+ AssistantService,
26
32
  AuditLog,
27
33
  AuditLogModule,
28
34
  AuditLogService,
@@ -92,6 +98,8 @@ import {
92
98
  Push,
93
99
  PushModule,
94
100
  PushService,
101
+ RbacMatrixModel,
102
+ RbacMatrixModule,
95
103
  ReferralModule,
96
104
  ReferralService,
97
105
  ReferralStats,
@@ -187,7 +195,7 @@ import {
187
195
  useComposedRefs,
188
196
  useIsMobile,
189
197
  userObjectSchema
190
- } from "./chunk-XI35ALWY.mjs";
198
+ } from "./chunk-BKM5U3DE.mjs";
191
199
  import "./chunk-AUXK7QSA.mjs";
192
200
  import "./chunk-C7C7VY4F.mjs";
193
201
  import {
@@ -208,6 +216,12 @@ export {
208
216
  AbstractApiData,
209
217
  AbstractService,
210
218
  Action,
219
+ Assistant,
220
+ AssistantMessage,
221
+ AssistantMessageModule,
222
+ AssistantMessageService,
223
+ AssistantModule,
224
+ AssistantService,
211
225
  AuditLog,
212
226
  AuditLogModule,
213
227
  AuditLogService,
@@ -281,6 +295,8 @@ export {
281
295
  Push,
282
296
  PushModule,
283
297
  PushService,
298
+ RbacMatrixModel,
299
+ RbacMatrixModule,
284
300
  RbacService,
285
301
  ReferralModule,
286
302
  ReferralService,
@@ -219,4 +219,4 @@ interface NotificationInterface extends ApiDataInterface {
219
219
  get actor(): UserInterface | undefined;
220
220
  }
221
221
 
222
- export { Action as A, type ContentInterface as C, type ModuleWithPermissions as M, type NotificationInterface as N, type PermissionCheck as P, type RoleInterface as R, type UserInterface as U, type ContentInput as a, type PageUrl as b, type ModulePermissionDefinition as c, type ModuleDefinition as d, type PermissionConfig as e, type PermissionModule as f, type PermissionUser as g, type ModuleFactory as h, type CompanyInput as i, type CompanyInterface as j, type NotificationInput as k, type RoleInput as l, type UserInput as m };
222
+ export { Action as A, type ContentInterface as C, type ModuleWithPermissions as M, type NotificationInterface as N, type PermissionCheck as P, type RoleInput as R, type UserInterface as U, type ContentInput as a, type PageUrl as b, type ModulePermissionDefinition as c, type ModuleDefinition as d, type PermissionConfig as e, type PermissionModule as f, type PermissionUser as g, type ModuleFactory as h, type CompanyInput as i, type CompanyInterface as j, type NotificationInput as k, type RoleInterface as l, type UserInput as m };
@@ -219,4 +219,4 @@ interface NotificationInterface extends ApiDataInterface {
219
219
  get actor(): UserInterface | undefined;
220
220
  }
221
221
 
222
- export { Action as A, type ContentInterface as C, type ModuleWithPermissions as M, type NotificationInterface as N, type PermissionCheck as P, type RoleInterface as R, type UserInterface as U, type ContentInput as a, type PageUrl as b, type ModulePermissionDefinition as c, type ModuleDefinition as d, type PermissionConfig as e, type PermissionModule as f, type PermissionUser as g, type ModuleFactory as h, type CompanyInput as i, type CompanyInterface as j, type NotificationInput as k, type RoleInput as l, type UserInput as m };
222
+ export { Action as A, type ContentInterface as C, type ModuleWithPermissions as M, type NotificationInterface as N, type PermissionCheck as P, type RoleInput as R, type UserInterface as U, type ContentInput as a, type PageUrl as b, type ModulePermissionDefinition as c, type ModuleDefinition as d, type PermissionConfig as e, type PermissionModule as f, type PermissionUser as g, type ModuleFactory as h, type CompanyInput as i, type CompanyInterface as j, type NotificationInput as k, type RoleInterface as l, type UserInput as m };
@@ -1,7 +1,7 @@
1
1
  import { F as FeatureInterface } from './feature.interface-CXb1-vNq.mjs';
2
- import { R as RoleInterface, U as UserInterface, m as UserInput, j as CompanyInterface, i as CompanyInput, C as ContentInterface, N as NotificationInterface } from './notification.interface-DG6obXUH.mjs';
2
+ import { l as RoleInterface, U as UserInterface, m as UserInput, j as CompanyInterface, i as CompanyInput, C as ContentInterface, N as NotificationInterface } from './notification.interface-DLZGtV7Z.mjs';
3
3
  import { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from './ApiDataInterface-BcZeXy5X.mjs';
4
- import { A as AuthInput, b as AuthInterface } from './auth.interface-Bdq7-8iV.mjs';
4
+ import { A as AuthInput, b as AuthInterface } from './auth.interface-XYEREOD6.mjs';
5
5
  import { A as ApiRequestDataTypeInterface } from './ApiRequestDataTypeInterface-CYEcRUrh.mjs';
6
6
 
7
7
  declare enum HttpMethod {
@@ -1,7 +1,7 @@
1
1
  import { F as FeatureInterface } from './feature.interface-BO25VLlx.js';
2
- import { R as RoleInterface, U as UserInterface, m as UserInput, j as CompanyInterface, i as CompanyInput, C as ContentInterface, N as NotificationInterface } from './notification.interface-DcSuc9CL.js';
2
+ import { l as RoleInterface, U as UserInterface, m as UserInput, j as CompanyInterface, i as CompanyInput, C as ContentInterface, N as NotificationInterface } from './notification.interface-aLEJbA_g.js';
3
3
  import { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from './ApiDataInterface-BcZeXy5X.js';
4
- import { A as AuthInput, b as AuthInterface } from './auth.interface-CQJ6A2Cj.js';
4
+ import { A as AuthInput, b as AuthInterface } from './auth.interface-BBUgMZzs.js';
5
5
  import { A as ApiRequestDataTypeInterface } from './ApiRequestDataTypeInterface-CYEcRUrh.js';
6
6
 
7
7
  declare enum HttpMethod {
@@ -1,12 +1,12 @@
1
1
  import { A as ApiData } from '../ApiData-DPKNfY-9.mjs';
2
- import { M as ModuleWithPermissions, A as Action } from '../notification.interface-DG6obXUH.mjs';
2
+ import { M as ModuleWithPermissions, A as Action } from '../notification.interface-DLZGtV7Z.mjs';
3
3
  import { A as ApiRequestDataTypeInterface } from '../ApiRequestDataTypeInterface-CYEcRUrh.mjs';
4
4
  import { A as ApiResponseInterface } from '../ApiResponseInterface-rsXRL_Hn.mjs';
5
- export { A as ServerAuthService, C as ServerCompanyService, a as ServerContentService, F as ServerFeatureService, N as ServerNotificationService, P as ServerPushService, R as ServerRoleService, S as ServerS3Service, U as ServerUserService } from '../s3.service-DGilbikH.mjs';
5
+ export { A as ServerAuthService, C as ServerCompanyService, a as ServerContentService, F as ServerFeatureService, N as ServerNotificationService, P as ServerPushService, R as ServerRoleService, S as ServerS3Service, U as ServerUserService } from '../s3.service-CVgLWaDc.mjs';
6
6
  import 'lucide-react';
7
7
  import '../ApiDataInterface-BcZeXy5X.mjs';
8
8
  import '../feature.interface-CXb1-vNq.mjs';
9
- import '../auth.interface-Bdq7-8iV.mjs';
9
+ import '../auth.interface-XYEREOD6.mjs';
10
10
 
11
11
  type CacheProfile = "seconds" | "minutes" | "hours" | "days" | "weeks" | "max" | "default";
12
12
  /**
@@ -1,12 +1,12 @@
1
1
  import { A as ApiData } from '../ApiData-DPKNfY-9.js';
2
- import { M as ModuleWithPermissions, A as Action } from '../notification.interface-DcSuc9CL.js';
2
+ import { M as ModuleWithPermissions, A as Action } from '../notification.interface-aLEJbA_g.js';
3
3
  import { A as ApiRequestDataTypeInterface } from '../ApiRequestDataTypeInterface-CYEcRUrh.js';
4
4
  import { A as ApiResponseInterface } from '../ApiResponseInterface-CWLvSCvS.js';
5
- export { A as ServerAuthService, C as ServerCompanyService, a as ServerContentService, F as ServerFeatureService, N as ServerNotificationService, P as ServerPushService, R as ServerRoleService, S as ServerS3Service, U as ServerUserService } from '../s3.service-DjwEQJPe.js';
5
+ export { A as ServerAuthService, C as ServerCompanyService, a as ServerContentService, F as ServerFeatureService, N as ServerNotificationService, P as ServerPushService, R as ServerRoleService, S as ServerS3Service, U as ServerUserService } from '../s3.service-SLlX0Zbz.js';
6
6
  import 'lucide-react';
7
7
  import '../ApiDataInterface-BcZeXy5X.js';
8
8
  import '../feature.interface-BO25VLlx.js';
9
- import '../auth.interface-CQJ6A2Cj.js';
9
+ import '../auth.interface-BBUgMZzs.js';
10
10
 
11
11
  type CacheProfile = "seconds" | "minutes" | "hours" | "days" | "weeks" | "max" | "default";
12
12
  /**