@carlonicora/nextjs-jsonapi 1.78.0 → 1.80.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 (128) hide show
  1. package/dist/{AssistantMessageInterface-DS_tyJTV.d.ts → AssistantMessageInterface-BpEhx2pC.d.ts} +19 -2
  2. package/dist/{AssistantMessageInterface-D0Kwf8CR.d.mts → AssistantMessageInterface-DJ3Me16Y.d.mts} +19 -2
  3. package/dist/{AuthComponent-Blbs06ud.d.ts → AuthComponent-B6DIk8Vf.d.ts} +1 -1
  4. package/dist/{AuthComponent-huIaK5rm.d.mts → AuthComponent-BKI0ZbtD.d.mts} +1 -1
  5. package/dist/{BlockNoteEditor-JXK3JGKJ.mjs → BlockNoteEditor-3M5PD3BZ.mjs} +4 -4
  6. package/dist/{BlockNoteEditor-2G5UYALC.js → BlockNoteEditor-YLTPJPTV.js} +14 -14
  7. package/dist/{BlockNoteEditor-2G5UYALC.js.map → BlockNoteEditor-YLTPJPTV.js.map} +1 -1
  8. package/dist/RbacTypes-BTbr27Ew.d.mts +43 -0
  9. package/dist/RbacTypes-BTbr27Ew.d.ts +43 -0
  10. package/dist/{auth.interface-CQJ6A2Cj.d.ts → auth.interface-BBUgMZzs.d.ts} +1 -1
  11. package/dist/{auth.interface-Bdq7-8iV.d.mts → auth.interface-XYEREOD6.d.mts} +1 -1
  12. package/dist/billing/index.js +346 -346
  13. package/dist/billing/index.mjs +3 -3
  14. package/dist/{chunk-ZEDB6JVB.js → chunk-4NOQNTFI.js} +1585 -1405
  15. package/dist/chunk-4NOQNTFI.js.map +1 -0
  16. package/dist/{chunk-I65SSQ5Z.mjs → chunk-6UMB5LTQ.mjs} +157 -7
  17. package/dist/chunk-6UMB5LTQ.mjs.map +1 -0
  18. package/dist/{chunk-FDJQRIMY.js → chunk-N4YZ45SK.js} +174 -24
  19. package/dist/chunk-N4YZ45SK.js.map +1 -0
  20. package/dist/{chunk-NB6TIKHK.mjs → chunk-NQV5RDCK.mjs} +2524 -2344
  21. package/dist/chunk-NQV5RDCK.mjs.map +1 -0
  22. package/dist/{chunk-NZOUEN67.mjs → chunk-PV5V6CVW.mjs} +38 -29
  23. package/dist/{chunk-NZOUEN67.mjs.map → chunk-PV5V6CVW.mjs.map} +1 -1
  24. package/dist/{chunk-X4YDETTD.js → chunk-ZEJSPTHS.js} +39 -30
  25. package/dist/chunk-ZEJSPTHS.js.map +1 -0
  26. package/dist/client/index.d.mts +6 -24
  27. package/dist/client/index.d.ts +6 -24
  28. package/dist/client/index.js +4 -10
  29. package/dist/client/index.js.map +1 -1
  30. package/dist/client/index.mjs +3 -9
  31. package/dist/components/index.d.mts +55 -39
  32. package/dist/components/index.d.ts +55 -39
  33. package/dist/components/index.js +4 -8
  34. package/dist/components/index.js.map +1 -1
  35. package/dist/components/index.mjs +5 -9
  36. package/dist/{config-B3jKt9P7.d.ts → config-B5oBQVEA.d.ts} +1 -1
  37. package/dist/{config-DkHF61xA.d.mts → config-Bx_uh22h.d.mts} +1 -1
  38. package/dist/contexts/index.d.mts +41 -4
  39. package/dist/contexts/index.d.ts +41 -4
  40. package/dist/contexts/index.js +8 -4
  41. package/dist/contexts/index.js.map +1 -1
  42. package/dist/contexts/index.mjs +7 -3
  43. package/dist/core/index.d.mts +51 -11
  44. package/dist/core/index.d.ts +51 -11
  45. package/dist/core/index.js +8 -2
  46. package/dist/core/index.js.map +1 -1
  47. package/dist/core/index.mjs +7 -1
  48. package/dist/index.d.mts +117 -20
  49. package/dist/index.d.ts +117 -20
  50. package/dist/index.js +11 -3
  51. package/dist/index.js.map +1 -1
  52. package/dist/index.mjs +10 -2
  53. package/dist/{notification.interface-DG6obXUH.d.mts → notification.interface-DLZGtV7Z.d.mts} +1 -1
  54. package/dist/{notification.interface-DcSuc9CL.d.ts → notification.interface-aLEJbA_g.d.ts} +1 -1
  55. package/dist/{s3.service-DGilbikH.d.mts → s3.service-CVgLWaDc.d.mts} +2 -2
  56. package/dist/{s3.service-DjwEQJPe.d.ts → s3.service-SLlX0Zbz.d.ts} +2 -2
  57. package/dist/server/index.d.mts +3 -3
  58. package/dist/server/index.d.ts +3 -3
  59. package/dist/server/index.js +3 -3
  60. package/dist/server/index.mjs +1 -1
  61. package/dist/useDataListRetriever-BqJSFBck.d.mts +33 -0
  62. package/dist/useDataListRetriever-BqJSFBck.d.ts +33 -0
  63. package/dist/{useSocket-CmzVtg32.d.mts → useSocket-BkxHHujj.d.mts} +1 -1
  64. package/dist/{useSocket-8eUtnL7J.d.ts → useSocket-CMDjWFYm.d.ts} +1 -1
  65. package/package.json +1 -1
  66. package/src/client/index.ts +0 -4
  67. package/src/components/index.ts +0 -3
  68. package/src/contexts/index.ts +1 -0
  69. package/src/core/index.ts +2 -0
  70. package/src/core/registry/ModuleRegistry.ts +2 -0
  71. package/src/features/assistant/components/parts/AssistantThread.tsx +1 -1
  72. package/src/features/assistant-message/AssistantMessageModule.ts +4 -0
  73. package/src/features/assistant-message/components/MessageItem.tsx +7 -7
  74. package/src/features/assistant-message/components/MessageList.tsx +1 -1
  75. package/src/features/assistant-message/components/__tests__/MessageItem.spec.tsx +11 -7
  76. package/src/features/assistant-message/components/index.ts +1 -0
  77. package/src/features/assistant-message/components/parts/MessageSourcesContainer.tsx +135 -0
  78. package/src/features/assistant-message/components/parts/MessageSourcesPanel.tsx +151 -0
  79. package/src/features/assistant-message/components/parts/RelevanceMeter.tsx +29 -0
  80. package/src/features/assistant-message/components/parts/__tests__/MessageSourcesPanel.spec.tsx +70 -0
  81. package/src/features/assistant-message/components/parts/tabs/CitationsTab.tsx +105 -0
  82. package/src/features/assistant-message/components/parts/tabs/ContentsTab.tsx +88 -0
  83. package/src/features/assistant-message/components/parts/tabs/ReferencesTab.tsx +51 -0
  84. package/src/features/assistant-message/components/parts/tabs/SuggestedQuestionsTab.tsx +24 -0
  85. package/src/features/assistant-message/components/parts/tabs/UsersTab.tsx +142 -0
  86. package/src/features/assistant-message/data/AssistantMessage.ts +20 -0
  87. package/src/features/assistant-message/data/AssistantMessageInterface.ts +2 -0
  88. package/src/features/assistant-message/data/AssistantMessageService.ts +13 -4
  89. package/src/features/assistant-message/data/__tests__/AssistantMessage.citations.spec.ts +65 -0
  90. package/src/features/assistant-message/data/__tests__/AssistantMessage.spec.ts +8 -0
  91. package/src/features/chunk/ChunkModule.ts +18 -0
  92. package/src/features/chunk/data/Chunk.ts +49 -0
  93. package/src/features/chunk/data/ChunkInput.ts +3 -0
  94. package/src/features/chunk/data/ChunkInterface.ts +18 -0
  95. package/src/features/chunk/data/__tests__/Chunk.spec.ts +83 -0
  96. package/src/features/chunk/data/index.ts +3 -0
  97. package/src/features/chunk/index.ts +2 -0
  98. package/src/features/rbac/components/RbacContainer.tsx +318 -49
  99. package/src/features/rbac/components/RbacPermissionPicker.tsx +144 -121
  100. package/src/features/rbac/contexts/RbacContext.tsx +209 -0
  101. package/src/features/rbac/contexts/index.ts +1 -0
  102. package/src/features/rbac/data/RbacMatrixModel.ts +84 -0
  103. package/src/features/rbac/data/RbacService.ts +61 -33
  104. package/src/features/rbac/data/RbacTypes.ts +28 -0
  105. package/src/features/rbac/data/index.ts +1 -0
  106. package/src/features/rbac/index.ts +1 -10
  107. package/src/features/rbac/rbac.module.ts +13 -0
  108. package/dist/ModulePathsInterface-BrdqgteS.d.mts +0 -31
  109. package/dist/ModulePathsInterface-DJKs7s_s.d.ts +0 -31
  110. package/dist/chunk-FDJQRIMY.js.map +0 -1
  111. package/dist/chunk-I65SSQ5Z.mjs.map +0 -1
  112. package/dist/chunk-NB6TIKHK.mjs.map +0 -1
  113. package/dist/chunk-X4YDETTD.js.map +0 -1
  114. package/dist/chunk-ZEDB6JVB.js.map +0 -1
  115. package/dist/useRbacState-C88O-5L8.d.ts +0 -77
  116. package/dist/useRbacState-mqYiRp3J.d.mts +0 -77
  117. package/src/features/assistant-message/components/parts/ReferenceBadges.tsx +0 -46
  118. package/src/features/assistant-message/components/parts/SuggestedFollowUps.tsx +0 -52
  119. package/src/features/assistant-message/components/parts/__tests__/ReferenceBadges.spec.tsx +0 -59
  120. package/src/features/assistant-message/components/parts/__tests__/SuggestedFollowUps.spec.tsx +0 -29
  121. package/src/features/rbac/components/RbacFeatureSection.tsx +0 -66
  122. package/src/features/rbac/components/RbacModuleTable.tsx +0 -121
  123. package/src/features/rbac/components/RbacToolbar.tsx +0 -40
  124. package/src/features/rbac/hooks/useRbacState.test.ts +0 -180
  125. package/src/features/rbac/hooks/useRbacState.ts +0 -319
  126. package/src/features/rbac/utils/RbacMigrationGenerator.test.ts +0 -124
  127. package/src/features/rbac/utils/RbacMigrationGenerator.ts +0 -184
  128. /package/dist/{BlockNoteEditor-JXK3JGKJ.mjs.map → BlockNoteEditor-3M5PD3BZ.mjs.map} +0 -0
package/dist/index.d.mts CHANGED
@@ -1,28 +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, 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, 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 AssistantMessageInput, c as AssistantMessageInterface, A as AssistantMessageRole, B as BreadcrumbItemData, H as HowToInput, a as HowToInterface } from './AssistantMessageInterface-D0Kwf8CR.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, Chunk, ChunkInput, ChunkModule, 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, d as ChunkInterface, C as ChunkRelationshipMeta, H as HowToInput, a as HowToInterface } from './AssistantMessageInterface-DJ3Me16Y.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
16
  export { A as AssistantInput, a as AssistantInterface } from './AssistantInterface-BYgI5z1-.mjs';
19
- import { F as FeatureInterface } from './feature.interface-CXb1-vNq.mjs';
20
- export { M as ModuleInterface } from './feature.interface-CXb1-vNq.mjs';
17
+ export { F as FeatureInterface, M as ModuleInterface } from './feature.interface-CXb1-vNq.mjs';
21
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';
22
- 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';
23
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';
24
- import { P as PermissionMappingInterface, M as ModulePathsInterface } from './ModulePathsInterface-BrdqgteS.mjs';
25
- 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';
26
23
  import 'react';
27
24
  import 'zod';
28
25
  import '@blocknote/core';
@@ -181,6 +178,17 @@ declare function getReferralConfig(): Required<ReferralConfig>;
181
178
  */
182
179
  declare function isReferralEnabled(): boolean;
183
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
+
184
192
  declare class PermissionMapping extends AbstractApiData implements PermissionMappingInterface {
185
193
  private _roleId?;
186
194
  private _moduleId?;
@@ -196,6 +204,11 @@ declare class PermissionMapping extends AbstractApiData implements PermissionMap
196
204
  rehydrate(data: JsonApiHydratedDataInterface): this;
197
205
  }
198
206
 
207
+ interface ModulePathsInterface extends ApiDataInterface {
208
+ get moduleId(): string;
209
+ get paths(): string[];
210
+ }
211
+
199
212
  declare class ModulePaths extends AbstractApiData implements ModulePathsInterface {
200
213
  private _moduleId?;
201
214
  private _paths?;
@@ -204,11 +217,95 @@ declare class ModulePaths extends AbstractApiData implements ModulePathsInterfac
204
217
  rehydrate(data: JsonApiHydratedDataInterface): this;
205
218
  }
206
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
+ */
207
279
  declare class RbacService extends AbstractService {
208
- static getFeatures(): Promise<FeatureInterface[]>;
209
- static getRoles(): Promise<RoleInterface[]>;
210
- static getPermissionMappings(): Promise<PermissionMappingInterface[]>;
211
- 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
+ }>;
212
309
  }
213
310
 
214
- 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,28 +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, 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, 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 AssistantMessageInput, c as AssistantMessageInterface, A as AssistantMessageRole, B as BreadcrumbItemData, H as HowToInput, a as HowToInterface } from './AssistantMessageInterface-DS_tyJTV.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, Chunk, ChunkInput, ChunkModule, 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, d as ChunkInterface, C as ChunkRelationshipMeta, H as HowToInput, a as HowToInterface } from './AssistantMessageInterface-BpEhx2pC.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
16
  export { A as AssistantInput, a as AssistantInterface } from './AssistantInterface-DfDcz0gJ.js';
19
- import { F as FeatureInterface } from './feature.interface-BO25VLlx.js';
20
- export { M as ModuleInterface } from './feature.interface-BO25VLlx.js';
17
+ export { F as FeatureInterface, M as ModuleInterface } from './feature.interface-BO25VLlx.js';
21
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';
22
- 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';
23
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';
24
- import { P as PermissionMappingInterface, M as ModulePathsInterface } from './ModulePathsInterface-DJKs7s_s.js';
25
- 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';
26
23
  import 'react';
27
24
  import 'zod';
28
25
  import '@blocknote/core';
@@ -181,6 +178,17 @@ declare function getReferralConfig(): Required<ReferralConfig>;
181
178
  */
182
179
  declare function isReferralEnabled(): boolean;
183
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
+
184
192
  declare class PermissionMapping extends AbstractApiData implements PermissionMappingInterface {
185
193
  private _roleId?;
186
194
  private _moduleId?;
@@ -196,6 +204,11 @@ declare class PermissionMapping extends AbstractApiData implements PermissionMap
196
204
  rehydrate(data: JsonApiHydratedDataInterface): this;
197
205
  }
198
206
 
207
+ interface ModulePathsInterface extends ApiDataInterface {
208
+ get moduleId(): string;
209
+ get paths(): string[];
210
+ }
211
+
199
212
  declare class ModulePaths extends AbstractApiData implements ModulePathsInterface {
200
213
  private _moduleId?;
201
214
  private _paths?;
@@ -204,11 +217,95 @@ declare class ModulePaths extends AbstractApiData implements ModulePathsInterfac
204
217
  rehydrate(data: JsonApiHydratedDataInterface): this;
205
218
  }
206
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
+ */
207
279
  declare class RbacService extends AbstractService {
208
- static getFeatures(): Promise<FeatureInterface[]>;
209
- static getRoles(): Promise<RoleInterface[]>;
210
- static getPermissionMappings(): Promise<PermissionMappingInterface[]>;
211
- 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
+ }>;
212
309
  }
213
310
 
214
- 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 _chunkX4YDETTDjs = require('./chunk-X4YDETTD.js');
20
+ var _chunkZEJSPTHSjs = require('./chunk-ZEJSPTHS.js');
21
21
 
22
22
 
23
23
 
@@ -193,7 +193,11 @@ var _chunkX4YDETTDjs = require('./chunk-X4YDETTD.js');
193
193
 
194
194
 
195
195
 
196
- var _chunkFDJQRIMYjs = require('./chunk-FDJQRIMY.js');
196
+
197
+
198
+
199
+
200
+ var _chunkN4YZ45SKjs = require('./chunk-N4YZ45SK.js');
197
201
  require('./chunk-LXKSUWAV.js');
198
202
  require('./chunk-IBS6NI7D.js');
199
203
 
@@ -411,5 +415,9 @@ require('./chunk-7QVYU63E.js');
411
415
 
412
416
 
413
417
 
414
- exports.ACTION_TYPES = _chunkX4YDETTDjs.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunkFDJQRIMYjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkFDJQRIMYjs.AbstractApiData; exports.AbstractService = _chunkFDJQRIMYjs.AbstractService; exports.Action = _chunkFDJQRIMYjs.Action; exports.Assistant = _chunkFDJQRIMYjs.Assistant; exports.AssistantMessage = _chunkFDJQRIMYjs.AssistantMessage; exports.AssistantMessageModule = _chunkFDJQRIMYjs.AssistantMessageModule; exports.AssistantMessageService = _chunkFDJQRIMYjs.AssistantMessageService; exports.AssistantModule = _chunkFDJQRIMYjs.AssistantModule; exports.AssistantService = _chunkFDJQRIMYjs.AssistantService; exports.AuditLog = _chunkFDJQRIMYjs.AuditLog; exports.AuditLogModule = _chunkFDJQRIMYjs.AuditLogModule; exports.AuditLogService = _chunkFDJQRIMYjs.AuditLogService; exports.Auth = _chunkFDJQRIMYjs.Auth; exports.AuthComponent = _chunkFDJQRIMYjs.AuthComponent; exports.AuthModule = _chunkFDJQRIMYjs.AuthModule; exports.AuthService = _chunkFDJQRIMYjs.AuthService; exports.AuthorModule = _chunkFDJQRIMYjs.AuthorModule; exports.BackupCodeVerify = _chunkFDJQRIMYjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkFDJQRIMYjs.BackupCodeVerifyModule; exports.Billing = _chunkFDJQRIMYjs.Billing; exports.BillingModule = _chunkFDJQRIMYjs.BillingModule; exports.BillingService = _chunkFDJQRIMYjs.BillingService; exports.BlockNoteDiffUtil = _chunkFDJQRIMYjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkFDJQRIMYjs.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunkX4YDETTDjs.COMPANY_ADMINISTRATOR_ROLE_ID; exports.ClientAbstractService = _chunkFDJQRIMYjs.ClientAbstractService; exports.ClientHttpMethod = _chunkFDJQRIMYjs.ClientHttpMethod; exports.Company = _chunkFDJQRIMYjs.Company; exports.CompanyFields = _chunkFDJQRIMYjs.CompanyFields; exports.CompanyModule = _chunkFDJQRIMYjs.CompanyModule; exports.CompanyService = _chunkFDJQRIMYjs.CompanyService; exports.Content = _chunkFDJQRIMYjs.Content; exports.ContentFields = _chunkFDJQRIMYjs.ContentFields; exports.ContentModule = _chunkFDJQRIMYjs.ContentModule; exports.ContentService = _chunkFDJQRIMYjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkFDJQRIMYjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunk4MN547K7js.DataClassRegistry; exports.DataClassRegistry = _chunk4MN547K7js.DataClassRegistry; exports.EndpointCreator = _chunkFDJQRIMYjs.EndpointCreator; exports.Feature = _chunkFDJQRIMYjs.Feature; exports.FeatureModule = _chunkFDJQRIMYjs.FeatureModule; exports.FeatureService = _chunkFDJQRIMYjs.FeatureService; exports.HowTo = _chunkFDJQRIMYjs.HowTo; exports.HowToFields = _chunkFDJQRIMYjs.HowToFields; exports.HowToModule = _chunkFDJQRIMYjs.HowToModule; exports.HowToService = _chunkFDJQRIMYjs.HowToService; exports.HttpMethod = _chunkFDJQRIMYjs.HttpMethod; exports.InvoiceStatus = _chunkFDJQRIMYjs.InvoiceStatus; exports.JsonApiDataFactory = _chunk4MN547K7js.JsonApiDataFactory; exports.Module = _chunkFDJQRIMYjs.Module; exports.ModuleModule = _chunkFDJQRIMYjs.ModuleModule; exports.ModulePaths = _chunkFDJQRIMYjs.ModulePaths; exports.ModulePathsModule = _chunkFDJQRIMYjs.ModulePathsModule; exports.ModuleRegistrar = _chunkFDJQRIMYjs.ModuleRegistrar; exports.ModuleRegistry = _chunkFDJQRIMYjs.ModuleRegistry; exports.Modules = _chunkFDJQRIMYjs.Modules; exports.Notification = _chunkFDJQRIMYjs.Notification; exports.NotificationFields = _chunkFDJQRIMYjs.NotificationFields; exports.NotificationModule = _chunkFDJQRIMYjs.NotificationModule; exports.NotificationService = _chunkFDJQRIMYjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkFDJQRIMYjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkFDJQRIMYjs.OAuthClient; exports.OAuthModule = _chunkFDJQRIMYjs.OAuthModule; exports.OAuthService = _chunkFDJQRIMYjs.OAuthService; exports.Passkey = _chunkFDJQRIMYjs.Passkey; exports.PasskeyAuthenticationOptions = _chunkFDJQRIMYjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkFDJQRIMYjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkFDJQRIMYjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkFDJQRIMYjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkFDJQRIMYjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkFDJQRIMYjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkFDJQRIMYjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkFDJQRIMYjs.PasskeyRename; exports.PasskeyRenameModule = _chunkFDJQRIMYjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkFDJQRIMYjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkFDJQRIMYjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkFDJQRIMYjs.PaymentMethod; exports.PermissionMapping = _chunkFDJQRIMYjs.PermissionMapping; exports.PermissionMappingModule = _chunkFDJQRIMYjs.PermissionMappingModule; exports.Push = _chunkFDJQRIMYjs.Push; exports.PushModule = _chunkFDJQRIMYjs.PushModule; exports.PushService = _chunkFDJQRIMYjs.PushService; exports.RbacService = _chunkX4YDETTDjs.RbacService; exports.ReferralModule = _chunkFDJQRIMYjs.ReferralModule; exports.ReferralService = _chunkFDJQRIMYjs.ReferralService; exports.ReferralStats = _chunkFDJQRIMYjs.ReferralStats; exports.ReferralStatsModule = _chunkFDJQRIMYjs.ReferralStatsModule; exports.RehydrationFactory = _chunkFDJQRIMYjs.RehydrationFactory; exports.Role = _chunkFDJQRIMYjs.Role; exports.RoleFields = _chunkFDJQRIMYjs.RoleFields; exports.RoleModule = _chunkFDJQRIMYjs.RoleModule; exports.RoleService = _chunkFDJQRIMYjs.RoleService; exports.S3 = _chunkFDJQRIMYjs.S3; exports.S3Module = _chunkFDJQRIMYjs.S3Module; exports.S3Service = _chunkFDJQRIMYjs.S3Service; exports.StripeCustomer = _chunkFDJQRIMYjs.StripeCustomer; exports.StripeCustomerModule = _chunkFDJQRIMYjs.StripeCustomerModule; exports.StripeCustomerService = _chunkFDJQRIMYjs.StripeCustomerService; exports.StripeInvoice = _chunkFDJQRIMYjs.StripeInvoice; exports.StripeInvoiceModule = _chunkFDJQRIMYjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkFDJQRIMYjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkFDJQRIMYjs.StripePaymentMethodModule; exports.StripePrice = _chunkFDJQRIMYjs.StripePrice; exports.StripePriceModule = _chunkFDJQRIMYjs.StripePriceModule; exports.StripePriceService = _chunkFDJQRIMYjs.StripePriceService; exports.StripeProduct = _chunkFDJQRIMYjs.StripeProduct; exports.StripeProductModule = _chunkFDJQRIMYjs.StripeProductModule; exports.StripeProductService = _chunkFDJQRIMYjs.StripeProductService; exports.StripePromotionCode = _chunkFDJQRIMYjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunkFDJQRIMYjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkFDJQRIMYjs.StripePromotionCodeService; exports.StripeSubscription = _chunkFDJQRIMYjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkFDJQRIMYjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkFDJQRIMYjs.StripeSubscriptionService; exports.StripeUsage = _chunkFDJQRIMYjs.StripeUsage; exports.StripeUsageModule = _chunkFDJQRIMYjs.StripeUsageModule; exports.StripeUsageService = _chunkFDJQRIMYjs.StripeUsageService; exports.SubscriptionStatus = _chunkFDJQRIMYjs.SubscriptionStatus; exports.TableOptions = _chunkFDJQRIMYjs.TableOptions; exports.TotpAuthenticator = _chunkFDJQRIMYjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkFDJQRIMYjs.TotpAuthenticatorModule; exports.TotpSetup = _chunkFDJQRIMYjs.TotpSetup; exports.TotpSetupModule = _chunkFDJQRIMYjs.TotpSetupModule; exports.TotpVerify = _chunkFDJQRIMYjs.TotpVerify; exports.TotpVerifyLogin = _chunkFDJQRIMYjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkFDJQRIMYjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkFDJQRIMYjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunkFDJQRIMYjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkFDJQRIMYjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkFDJQRIMYjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkFDJQRIMYjs.TwoFactorEnableModule; exports.TwoFactorService = _chunkFDJQRIMYjs.TwoFactorService; exports.TwoFactorStatus = _chunkFDJQRIMYjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkFDJQRIMYjs.TwoFactorStatusModule; exports.User = _chunkFDJQRIMYjs.User; exports.UserFields = _chunkFDJQRIMYjs.UserFields; exports.UserModule = _chunkFDJQRIMYjs.UserModule; exports.UserService = _chunkFDJQRIMYjs.UserService; exports.Waitlist = _chunkFDJQRIMYjs.Waitlist; exports.WaitlistModule = _chunkFDJQRIMYjs.WaitlistModule; exports.WaitlistService = _chunkFDJQRIMYjs.WaitlistService; exports.WaitlistStats = _chunkFDJQRIMYjs.WaitlistStats; exports.WaitlistStatsModule = _chunkFDJQRIMYjs.WaitlistStatsModule; exports.checkPermissions = _chunkFDJQRIMYjs.checkPermissions; exports.checkPermissionsFromServer = _chunkFDJQRIMYjs.checkPermissionsFromServer; exports.clearLastApiTotal = _chunkFDJQRIMYjs.clearLastApiTotal; exports.cn = _chunkFDJQRIMYjs.cn; exports.composeRefs = _chunkFDJQRIMYjs.composeRefs; exports.configureAuth = _chunkFDJQRIMYjs.configureAuth; exports.configureI18n = _chunkX4YDETTDjs.configureI18n; exports.configureJsonApi = _chunkX4YDETTDjs.configureJsonApi; exports.configureLogin = _chunkX4YDETTDjs.configureLogin; exports.configureReferral = _chunkX4YDETTDjs.configureReferral; exports.configureRoles = _chunkX4YDETTDjs.configureRoles; exports.configureWaitlist = _chunkX4YDETTDjs.configureWaitlist; exports.createJsonApiInclusion = _chunkFDJQRIMYjs.createJsonApiInclusion; exports.dismissToast = _chunkFDJQRIMYjs.dismissToast; exports.entityObjectSchema = _chunkFDJQRIMYjs.entityObjectSchema; exports.exists = _chunkFDJQRIMYjs.exists; exports.formatDate = _chunkFDJQRIMYjs.formatDate; exports.getApiUrl = _chunkX4YDETTDjs.getApiUrl; exports.getAppUrl = _chunkX4YDETTDjs.getAppUrl; exports.getBootstrapper = _chunk4MN547K7js.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkFDJQRIMYjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkFDJQRIMYjs.getGlobalErrorHandler; exports.getIcon = _chunkFDJQRIMYjs.getIcon; exports.getIconByModule = _chunkFDJQRIMYjs.getIconByModule; exports.getIconByModuleName = _chunkFDJQRIMYjs.getIconByModuleName; exports.getInitials = _chunkFDJQRIMYjs.getInitials; exports.getLastApiTotal = _chunkFDJQRIMYjs.getLastApiTotal; exports.getLucideIcon = _chunkFDJQRIMYjs.getLucideIcon; exports.getLucideIconByModule = _chunkFDJQRIMYjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkFDJQRIMYjs.getLucideIconByModuleName; exports.getReferralConfig = _chunkX4YDETTDjs.getReferralConfig; exports.getRoleId = _chunkX4YDETTDjs.getRoleId; exports.getStripePublishableKey = _chunkX4YDETTDjs.getStripePublishableKey; exports.getTableComponents = _chunkFDJQRIMYjs.getTableComponents; exports.getTableOptions = _chunkFDJQRIMYjs.getTableOptions; exports.getTokenHandler = _chunkFDJQRIMYjs.getTokenHandler; exports.getTrackablePages = _chunkX4YDETTDjs.getTrackablePages; exports.getValueFromPath = _chunkFDJQRIMYjs.getValueFromPath; exports.getWaitlistConfig = _chunkX4YDETTDjs.getWaitlistConfig; exports.hasBootstrapper = _chunk4MN547K7js.hasBootstrapper; exports.isReferralEnabled = _chunkX4YDETTDjs.isReferralEnabled; exports.isRolesConfigured = _chunkX4YDETTDjs.isRolesConfigured; exports.rehydrate = _chunkFDJQRIMYjs.rehydrate; exports.rehydrateList = _chunkFDJQRIMYjs.rehydrateList; exports.resetBootstrapStore = _chunk4MN547K7js.resetBootstrapStore; exports.setBootstrapper = _chunk4MN547K7js.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkFDJQRIMYjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkFDJQRIMYjs.setGlobalErrorHandler; exports.showCustomToast = _chunkFDJQRIMYjs.showCustomToast; exports.showError = _chunkFDJQRIMYjs.showError; exports.showToast = _chunkFDJQRIMYjs.showToast; exports.translateData = _chunk4MN547K7js.translateData; exports.translateResponse = _chunk4MN547K7js.translateResponse; exports.tryBootstrap = _chunk4MN547K7js.tryBootstrap; exports.useComposedRefs = _chunkFDJQRIMYjs.useComposedRefs; exports.useIsMobile = _chunkFDJQRIMYjs.useIsMobile; exports.userObjectSchema = _chunkFDJQRIMYjs.userObjectSchema;
418
+
419
+
420
+
421
+
422
+ exports.ACTION_TYPES = _chunkZEJSPTHSjs.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunkN4YZ45SKjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkN4YZ45SKjs.AbstractApiData; exports.AbstractService = _chunkN4YZ45SKjs.AbstractService; exports.Action = _chunkN4YZ45SKjs.Action; exports.Assistant = _chunkN4YZ45SKjs.Assistant; exports.AssistantMessage = _chunkN4YZ45SKjs.AssistantMessage; exports.AssistantMessageModule = _chunkN4YZ45SKjs.AssistantMessageModule; exports.AssistantMessageService = _chunkN4YZ45SKjs.AssistantMessageService; exports.AssistantModule = _chunkN4YZ45SKjs.AssistantModule; exports.AssistantService = _chunkN4YZ45SKjs.AssistantService; exports.AuditLog = _chunkN4YZ45SKjs.AuditLog; exports.AuditLogModule = _chunkN4YZ45SKjs.AuditLogModule; exports.AuditLogService = _chunkN4YZ45SKjs.AuditLogService; exports.Auth = _chunkN4YZ45SKjs.Auth; exports.AuthComponent = _chunkN4YZ45SKjs.AuthComponent; exports.AuthModule = _chunkN4YZ45SKjs.AuthModule; exports.AuthService = _chunkN4YZ45SKjs.AuthService; exports.AuthorModule = _chunkN4YZ45SKjs.AuthorModule; exports.BackupCodeVerify = _chunkN4YZ45SKjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkN4YZ45SKjs.BackupCodeVerifyModule; exports.Billing = _chunkN4YZ45SKjs.Billing; exports.BillingModule = _chunkN4YZ45SKjs.BillingModule; exports.BillingService = _chunkN4YZ45SKjs.BillingService; exports.BlockNoteDiffUtil = _chunkN4YZ45SKjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkN4YZ45SKjs.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunkZEJSPTHSjs.COMPANY_ADMINISTRATOR_ROLE_ID; exports.Chunk = _chunkN4YZ45SKjs.Chunk; exports.ChunkModule = _chunkN4YZ45SKjs.ChunkModule; exports.ClientAbstractService = _chunkN4YZ45SKjs.ClientAbstractService; exports.ClientHttpMethod = _chunkN4YZ45SKjs.ClientHttpMethod; exports.Company = _chunkN4YZ45SKjs.Company; exports.CompanyFields = _chunkN4YZ45SKjs.CompanyFields; exports.CompanyModule = _chunkN4YZ45SKjs.CompanyModule; exports.CompanyService = _chunkN4YZ45SKjs.CompanyService; exports.Content = _chunkN4YZ45SKjs.Content; exports.ContentFields = _chunkN4YZ45SKjs.ContentFields; exports.ContentModule = _chunkN4YZ45SKjs.ContentModule; exports.ContentService = _chunkN4YZ45SKjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkN4YZ45SKjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunk4MN547K7js.DataClassRegistry; exports.DataClassRegistry = _chunk4MN547K7js.DataClassRegistry; exports.EndpointCreator = _chunkN4YZ45SKjs.EndpointCreator; exports.Feature = _chunkN4YZ45SKjs.Feature; exports.FeatureModule = _chunkN4YZ45SKjs.FeatureModule; exports.FeatureService = _chunkN4YZ45SKjs.FeatureService; exports.HowTo = _chunkN4YZ45SKjs.HowTo; exports.HowToFields = _chunkN4YZ45SKjs.HowToFields; exports.HowToModule = _chunkN4YZ45SKjs.HowToModule; exports.HowToService = _chunkN4YZ45SKjs.HowToService; exports.HttpMethod = _chunkN4YZ45SKjs.HttpMethod; exports.InvoiceStatus = _chunkN4YZ45SKjs.InvoiceStatus; exports.JsonApiDataFactory = _chunk4MN547K7js.JsonApiDataFactory; exports.Module = _chunkN4YZ45SKjs.Module; exports.ModuleModule = _chunkN4YZ45SKjs.ModuleModule; exports.ModulePaths = _chunkN4YZ45SKjs.ModulePaths; exports.ModulePathsModule = _chunkN4YZ45SKjs.ModulePathsModule; exports.ModuleRegistrar = _chunkN4YZ45SKjs.ModuleRegistrar; exports.ModuleRegistry = _chunkN4YZ45SKjs.ModuleRegistry; exports.Modules = _chunkN4YZ45SKjs.Modules; exports.Notification = _chunkN4YZ45SKjs.Notification; exports.NotificationFields = _chunkN4YZ45SKjs.NotificationFields; exports.NotificationModule = _chunkN4YZ45SKjs.NotificationModule; exports.NotificationService = _chunkN4YZ45SKjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkN4YZ45SKjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkN4YZ45SKjs.OAuthClient; exports.OAuthModule = _chunkN4YZ45SKjs.OAuthModule; exports.OAuthService = _chunkN4YZ45SKjs.OAuthService; exports.Passkey = _chunkN4YZ45SKjs.Passkey; exports.PasskeyAuthenticationOptions = _chunkN4YZ45SKjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkN4YZ45SKjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkN4YZ45SKjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkN4YZ45SKjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkN4YZ45SKjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkN4YZ45SKjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkN4YZ45SKjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkN4YZ45SKjs.PasskeyRename; exports.PasskeyRenameModule = _chunkN4YZ45SKjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkN4YZ45SKjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkN4YZ45SKjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkN4YZ45SKjs.PaymentMethod; exports.PermissionMapping = _chunkN4YZ45SKjs.PermissionMapping; exports.PermissionMappingModule = _chunkN4YZ45SKjs.PermissionMappingModule; exports.Push = _chunkN4YZ45SKjs.Push; exports.PushModule = _chunkN4YZ45SKjs.PushModule; exports.PushService = _chunkN4YZ45SKjs.PushService; exports.RbacMatrixModel = _chunkN4YZ45SKjs.RbacMatrixModel; exports.RbacMatrixModule = _chunkN4YZ45SKjs.RbacMatrixModule; exports.RbacService = _chunkZEJSPTHSjs.RbacService; exports.ReferralModule = _chunkN4YZ45SKjs.ReferralModule; exports.ReferralService = _chunkN4YZ45SKjs.ReferralService; exports.ReferralStats = _chunkN4YZ45SKjs.ReferralStats; exports.ReferralStatsModule = _chunkN4YZ45SKjs.ReferralStatsModule; exports.RehydrationFactory = _chunkN4YZ45SKjs.RehydrationFactory; exports.Role = _chunkN4YZ45SKjs.Role; exports.RoleFields = _chunkN4YZ45SKjs.RoleFields; exports.RoleModule = _chunkN4YZ45SKjs.RoleModule; exports.RoleService = _chunkN4YZ45SKjs.RoleService; exports.S3 = _chunkN4YZ45SKjs.S3; exports.S3Module = _chunkN4YZ45SKjs.S3Module; exports.S3Service = _chunkN4YZ45SKjs.S3Service; exports.StripeCustomer = _chunkN4YZ45SKjs.StripeCustomer; exports.StripeCustomerModule = _chunkN4YZ45SKjs.StripeCustomerModule; exports.StripeCustomerService = _chunkN4YZ45SKjs.StripeCustomerService; exports.StripeInvoice = _chunkN4YZ45SKjs.StripeInvoice; exports.StripeInvoiceModule = _chunkN4YZ45SKjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkN4YZ45SKjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkN4YZ45SKjs.StripePaymentMethodModule; exports.StripePrice = _chunkN4YZ45SKjs.StripePrice; exports.StripePriceModule = _chunkN4YZ45SKjs.StripePriceModule; exports.StripePriceService = _chunkN4YZ45SKjs.StripePriceService; exports.StripeProduct = _chunkN4YZ45SKjs.StripeProduct; exports.StripeProductModule = _chunkN4YZ45SKjs.StripeProductModule; exports.StripeProductService = _chunkN4YZ45SKjs.StripeProductService; exports.StripePromotionCode = _chunkN4YZ45SKjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunkN4YZ45SKjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkN4YZ45SKjs.StripePromotionCodeService; exports.StripeSubscription = _chunkN4YZ45SKjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkN4YZ45SKjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkN4YZ45SKjs.StripeSubscriptionService; exports.StripeUsage = _chunkN4YZ45SKjs.StripeUsage; exports.StripeUsageModule = _chunkN4YZ45SKjs.StripeUsageModule; exports.StripeUsageService = _chunkN4YZ45SKjs.StripeUsageService; exports.SubscriptionStatus = _chunkN4YZ45SKjs.SubscriptionStatus; exports.TableOptions = _chunkN4YZ45SKjs.TableOptions; exports.TotpAuthenticator = _chunkN4YZ45SKjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkN4YZ45SKjs.TotpAuthenticatorModule; exports.TotpSetup = _chunkN4YZ45SKjs.TotpSetup; exports.TotpSetupModule = _chunkN4YZ45SKjs.TotpSetupModule; exports.TotpVerify = _chunkN4YZ45SKjs.TotpVerify; exports.TotpVerifyLogin = _chunkN4YZ45SKjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkN4YZ45SKjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkN4YZ45SKjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunkN4YZ45SKjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkN4YZ45SKjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkN4YZ45SKjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkN4YZ45SKjs.TwoFactorEnableModule; exports.TwoFactorService = _chunkN4YZ45SKjs.TwoFactorService; exports.TwoFactorStatus = _chunkN4YZ45SKjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkN4YZ45SKjs.TwoFactorStatusModule; exports.User = _chunkN4YZ45SKjs.User; exports.UserFields = _chunkN4YZ45SKjs.UserFields; exports.UserModule = _chunkN4YZ45SKjs.UserModule; exports.UserService = _chunkN4YZ45SKjs.UserService; exports.Waitlist = _chunkN4YZ45SKjs.Waitlist; exports.WaitlistModule = _chunkN4YZ45SKjs.WaitlistModule; exports.WaitlistService = _chunkN4YZ45SKjs.WaitlistService; exports.WaitlistStats = _chunkN4YZ45SKjs.WaitlistStats; exports.WaitlistStatsModule = _chunkN4YZ45SKjs.WaitlistStatsModule; exports.checkPermissions = _chunkN4YZ45SKjs.checkPermissions; exports.checkPermissionsFromServer = _chunkN4YZ45SKjs.checkPermissionsFromServer; exports.clearLastApiTotal = _chunkN4YZ45SKjs.clearLastApiTotal; exports.cn = _chunkN4YZ45SKjs.cn; exports.composeRefs = _chunkN4YZ45SKjs.composeRefs; exports.configureAuth = _chunkN4YZ45SKjs.configureAuth; exports.configureI18n = _chunkZEJSPTHSjs.configureI18n; exports.configureJsonApi = _chunkZEJSPTHSjs.configureJsonApi; exports.configureLogin = _chunkZEJSPTHSjs.configureLogin; exports.configureReferral = _chunkZEJSPTHSjs.configureReferral; exports.configureRoles = _chunkZEJSPTHSjs.configureRoles; exports.configureWaitlist = _chunkZEJSPTHSjs.configureWaitlist; exports.createJsonApiInclusion = _chunkN4YZ45SKjs.createJsonApiInclusion; exports.dismissToast = _chunkN4YZ45SKjs.dismissToast; exports.entityObjectSchema = _chunkN4YZ45SKjs.entityObjectSchema; exports.exists = _chunkN4YZ45SKjs.exists; exports.formatDate = _chunkN4YZ45SKjs.formatDate; exports.getApiUrl = _chunkZEJSPTHSjs.getApiUrl; exports.getAppUrl = _chunkZEJSPTHSjs.getAppUrl; exports.getBootstrapper = _chunk4MN547K7js.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkN4YZ45SKjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkN4YZ45SKjs.getGlobalErrorHandler; exports.getIcon = _chunkN4YZ45SKjs.getIcon; exports.getIconByModule = _chunkN4YZ45SKjs.getIconByModule; exports.getIconByModuleName = _chunkN4YZ45SKjs.getIconByModuleName; exports.getInitials = _chunkN4YZ45SKjs.getInitials; exports.getLastApiTotal = _chunkN4YZ45SKjs.getLastApiTotal; exports.getLucideIcon = _chunkN4YZ45SKjs.getLucideIcon; exports.getLucideIconByModule = _chunkN4YZ45SKjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkN4YZ45SKjs.getLucideIconByModuleName; exports.getReferralConfig = _chunkZEJSPTHSjs.getReferralConfig; exports.getRoleId = _chunkZEJSPTHSjs.getRoleId; exports.getStripePublishableKey = _chunkZEJSPTHSjs.getStripePublishableKey; exports.getTableComponents = _chunkN4YZ45SKjs.getTableComponents; exports.getTableOptions = _chunkN4YZ45SKjs.getTableOptions; exports.getTokenHandler = _chunkN4YZ45SKjs.getTokenHandler; exports.getTrackablePages = _chunkZEJSPTHSjs.getTrackablePages; exports.getValueFromPath = _chunkN4YZ45SKjs.getValueFromPath; exports.getWaitlistConfig = _chunkZEJSPTHSjs.getWaitlistConfig; exports.hasBootstrapper = _chunk4MN547K7js.hasBootstrapper; exports.isReferralEnabled = _chunkZEJSPTHSjs.isReferralEnabled; exports.isRolesConfigured = _chunkZEJSPTHSjs.isRolesConfigured; exports.rehydrate = _chunkN4YZ45SKjs.rehydrate; exports.rehydrateList = _chunkN4YZ45SKjs.rehydrateList; exports.resetBootstrapStore = _chunk4MN547K7js.resetBootstrapStore; exports.setBootstrapper = _chunk4MN547K7js.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkN4YZ45SKjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkN4YZ45SKjs.setGlobalErrorHandler; exports.showCustomToast = _chunkN4YZ45SKjs.showCustomToast; exports.showError = _chunkN4YZ45SKjs.showError; exports.showToast = _chunkN4YZ45SKjs.showToast; exports.translateData = _chunk4MN547K7js.translateData; exports.translateResponse = _chunk4MN547K7js.translateResponse; exports.tryBootstrap = _chunk4MN547K7js.tryBootstrap; exports.useComposedRefs = _chunkN4YZ45SKjs.useComposedRefs; exports.useIsMobile = _chunkN4YZ45SKjs.useIsMobile; exports.userObjectSchema = _chunkN4YZ45SKjs.userObjectSchema;
415
423
  //# 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;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;AACF,y7XAAC","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;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;AACA;AACA;AACF,+oYAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/index.js"}
package/dist/index.mjs CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  getWaitlistConfig,
18
18
  isReferralEnabled,
19
19
  isRolesConfigured
20
- } from "./chunk-NZOUEN67.mjs";
20
+ } from "./chunk-PV5V6CVW.mjs";
21
21
  import {
22
22
  AVAILABLE_OAUTH_SCOPES,
23
23
  AbstractApiData,
@@ -44,6 +44,8 @@ import {
44
44
  BillingService,
45
45
  BlockNoteDiffUtil,
46
46
  BlockNoteWordDiffRendererUtil,
47
+ Chunk,
48
+ ChunkModule,
47
49
  ClientAbstractService,
48
50
  ClientHttpMethod,
49
51
  Company,
@@ -98,6 +100,8 @@ import {
98
100
  Push,
99
101
  PushModule,
100
102
  PushService,
103
+ RbacMatrixModel,
104
+ RbacMatrixModule,
101
105
  ReferralModule,
102
106
  ReferralService,
103
107
  ReferralStats,
@@ -193,7 +197,7 @@ import {
193
197
  useComposedRefs,
194
198
  useIsMobile,
195
199
  userObjectSchema
196
- } from "./chunk-I65SSQ5Z.mjs";
200
+ } from "./chunk-6UMB5LTQ.mjs";
197
201
  import "./chunk-AUXK7QSA.mjs";
198
202
  import "./chunk-C7C7VY4F.mjs";
199
203
  import {
@@ -236,6 +240,8 @@ export {
236
240
  BlockNoteDiffUtil,
237
241
  BlockNoteWordDiffRendererUtil,
238
242
  COMPANY_ADMINISTRATOR_ROLE_ID,
243
+ Chunk,
244
+ ChunkModule,
239
245
  ClientAbstractService,
240
246
  ClientHttpMethod,
241
247
  Company,
@@ -293,6 +299,8 @@ export {
293
299
  Push,
294
300
  PushModule,
295
301
  PushService,
302
+ RbacMatrixModel,
303
+ RbacMatrixModule,
296
304
  RbacService,
297
305
  ReferralModule,
298
306
  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
  /**