@carlonicora/nextjs-jsonapi 3.22.0 → 3.24.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 (102) hide show
  1. package/dist/{AssistantMessageInterface-CuaMDs2i.d.ts → AssistantMessageInterface-1Kbz8RVs.d.ts} +34 -1
  2. package/dist/{AssistantMessageInterface-Du3ShThp.d.mts → AssistantMessageInterface-CoxJyuFM.d.mts} +34 -1
  3. package/dist/{BlockNoteEditor-VEEMWB2J.js → BlockNoteEditor-PTD2V4CH.js} +19 -19
  4. package/dist/{BlockNoteEditor-VEEMWB2J.js.map → BlockNoteEditor-PTD2V4CH.js.map} +1 -1
  5. package/dist/{BlockNoteEditor-5QBGVWE7.mjs → BlockNoteEditor-Q2WEDMKJ.mjs} +4 -4
  6. package/dist/{BlockNoteViewer-ZY4ZF3HO.mjs → BlockNoteViewer-WO6GTDSI.mjs} +2 -2
  7. package/dist/{BlockNoteViewer-XCGBX4ST.js → BlockNoteViewer-WOXEJ6RM.js} +3 -3
  8. package/dist/{BlockNoteViewer-XCGBX4ST.js.map → BlockNoteViewer-WOXEJ6RM.js.map} +1 -1
  9. package/dist/{HandbookSectionInterface-DqU_d0sy.d.mts → HandbookSectionInterface-BYsmnPEz.d.mts} +36 -0
  10. package/dist/{HandbookSectionInterface-DFj2zErb.d.ts → HandbookSectionInterface-OePKPbqN.d.ts} +36 -0
  11. package/dist/billing/index.js +401 -401
  12. package/dist/billing/index.mjs +3 -3
  13. package/dist/{chunk-CK47KSFV.mjs → chunk-2O3SFHQ7.mjs} +91 -39
  14. package/dist/chunk-2O3SFHQ7.mjs.map +1 -0
  15. package/dist/{chunk-SYQMVTIC.js → chunk-3D2MCVRZ.js} +7 -7
  16. package/dist/{chunk-SYQMVTIC.js.map → chunk-3D2MCVRZ.js.map} +1 -1
  17. package/dist/{chunk-XYSWOW5G.js → chunk-3YJF7QY4.js} +1358 -1116
  18. package/dist/chunk-3YJF7QY4.js.map +1 -0
  19. package/dist/{chunk-5G7I3OUB.mjs → chunk-GJHKOG5L.mjs} +1419 -1177
  20. package/dist/chunk-GJHKOG5L.mjs.map +1 -0
  21. package/dist/{chunk-U55JQ4NY.mjs → chunk-HAI7G6MD.mjs} +2 -2
  22. package/dist/{chunk-MWZCCOTS.js → chunk-IV4DTYXN.js} +91 -39
  23. package/dist/chunk-IV4DTYXN.js.map +1 -0
  24. package/dist/client/index.d.mts +13 -2
  25. package/dist/client/index.d.ts +13 -2
  26. package/dist/client/index.js +4 -4
  27. package/dist/client/index.mjs +3 -3
  28. package/dist/components/index.d.mts +90 -31
  29. package/dist/components/index.d.ts +90 -31
  30. package/dist/components/index.js +8 -4
  31. package/dist/components/index.js.map +1 -1
  32. package/dist/components/index.mjs +7 -3
  33. package/dist/contexts/index.d.mts +11 -2
  34. package/dist/contexts/index.d.ts +11 -2
  35. package/dist/contexts/index.js +4 -4
  36. package/dist/contexts/index.mjs +3 -3
  37. package/dist/core/index.d.mts +29 -7
  38. package/dist/core/index.d.ts +29 -7
  39. package/dist/core/index.js +2 -2
  40. package/dist/core/index.mjs +1 -1
  41. package/dist/features/help/index.js +37 -37
  42. package/dist/features/help/index.mjs +3 -3
  43. package/dist/features/tokenusage/index.js +101 -101
  44. package/dist/features/tokenusage/index.mjs +3 -3
  45. package/dist/index.d.mts +3 -4
  46. package/dist/index.d.ts +3 -4
  47. package/dist/index.js +3 -3
  48. package/dist/index.mjs +2 -2
  49. package/dist/{oauth.interface-CD90ycYz.d.ts → oauth.interface-BZKZAPRw.d.ts} +8 -1
  50. package/dist/{oauth.interface-DRE3NAKc.d.mts → oauth.interface-nVwnzxJw.d.mts} +8 -1
  51. package/dist/server/index.js +3 -3
  52. package/dist/server/index.mjs +1 -1
  53. package/package.json +1 -1
  54. package/src/components/forms/__tests__/EditorSheet.test.tsx +5 -3
  55. package/src/core/utils/__tests__/translateResponse.test.ts +3 -1
  56. package/src/features/ai-connection/components/forms/AiConnectionEditor.tsx +1 -0
  57. package/src/features/ai-connection/components/lists/AiConnectionTypeCard.tsx +9 -0
  58. package/src/features/ai-connection/data/__tests__/ai-connection.test.ts +51 -0
  59. package/src/features/ai-connection/data/ai-connection.interface.ts +18 -0
  60. package/src/features/ai-connection/data/ai-connection.ts +63 -0
  61. package/src/features/ai-connection/i18n-keys.ts +9 -0
  62. package/src/features/assistant/components/containers/AssistantContainer.tsx +105 -36
  63. package/src/features/assistant/components/containers/__tests__/AssistantContainer.spec.tsx +163 -1
  64. package/src/features/assistant/components/parts/AssistantComposer.tsx +38 -15
  65. package/src/features/assistant/components/parts/AssistantEmptyState.tsx +5 -3
  66. package/src/features/assistant/components/parts/AssistantSidebar.tsx +26 -7
  67. package/src/features/assistant/components/parts/__tests__/AssistantComposer.spec.tsx +8 -0
  68. package/src/features/assistant/components/parts/__tests__/AssistantSidebar.spec.tsx +7 -0
  69. package/src/features/assistant/contexts/AssistantContext.tsx +91 -7
  70. package/src/features/assistant/contexts/__tests__/AssistantContext.spec.tsx +196 -0
  71. package/src/features/assistant-action/components/AssistantContainerWithApprovals.tsx +23 -1
  72. package/src/features/assistant-message/components/EntityMentionLink.tsx +28 -0
  73. package/src/features/assistant-message/components/__tests__/EntityMentionLink.spec.tsx +58 -0
  74. package/src/features/assistant-message/components/index.ts +1 -0
  75. package/src/features/assistant-message/components/parts/tabs/ContentsTab.tsx +1 -1
  76. package/src/features/assistant-message/components/parts/tabs/ReferencesTab.tsx +2 -2
  77. package/src/features/auth/components/forms/__tests__/Logout.spec.tsx +3 -2
  78. package/src/features/oauth/components/OAuthClientForm.tsx +21 -4
  79. package/src/features/oauth/components/__tests__/OAuthClientForm.spec.tsx +63 -0
  80. package/src/features/oauth/components/consent/OAuthCompanySelector.tsx +54 -0
  81. package/src/features/oauth/components/consent/OAuthConsentActions.tsx +5 -2
  82. package/src/features/oauth/components/consent/OAuthConsentHeader.tsx +10 -6
  83. package/src/features/oauth/components/consent/OAuthConsentScreen.tsx +33 -13
  84. package/src/features/oauth/components/consent/OAuthScopeList.tsx +4 -1
  85. package/src/features/oauth/components/consent/__tests__/OAuthConsentHeader.spec.tsx +25 -0
  86. package/src/features/oauth/components/consent/__tests__/OAuthConsentScreen.spec.tsx +126 -0
  87. package/src/features/oauth/components/consent/index.ts +1 -0
  88. package/src/features/oauth/data/__tests__/oauth.service.spec.ts +103 -0
  89. package/src/features/oauth/data/oauth.service.ts +3 -13
  90. package/src/features/oauth/data/oauth.ts +30 -1
  91. package/src/features/oauth/hooks/useOAuthConsent.ts +34 -3
  92. package/src/features/oauth/interfaces/oauth.interface.ts +11 -25
  93. package/src/hooks/__tests__/useDataListRetriever.test.ts +1 -1
  94. package/dist/AssistantInterface-RvZzlcA_.d.ts +0 -36
  95. package/dist/AssistantInterface-jL56dyNc.d.mts +0 -36
  96. package/dist/chunk-5G7I3OUB.mjs.map +0 -1
  97. package/dist/chunk-CK47KSFV.mjs.map +0 -1
  98. package/dist/chunk-MWZCCOTS.js.map +0 -1
  99. package/dist/chunk-XYSWOW5G.js.map +0 -1
  100. /package/dist/{BlockNoteEditor-5QBGVWE7.mjs.map → BlockNoteEditor-Q2WEDMKJ.mjs.map} +0 -0
  101. /package/dist/{BlockNoteViewer-ZY4ZF3HO.mjs.map → BlockNoteViewer-WO6GTDSI.mjs.map} +0 -0
  102. /package/dist/{chunk-U55JQ4NY.mjs.map → chunk-HAI7G6MD.mjs.map} +0 -0
package/dist/index.d.ts CHANGED
@@ -6,18 +6,17 @@ export { A as ApiResponseInterface } from './ApiResponseInterface-CWLvSCvS.js';
6
6
  import { A as AbstractApiData } from './AbstractApiData-DtitRWPz.js';
7
7
  import { A as AbstractService } from './AbstractService-V3VGQMhL.js';
8
8
  export { H as HttpMethod, N as NextRef, P as PreviousRef, S as SelfRef, T as TotalRef, g as getGlobalErrorHandler, s as setGlobalErrorHandler } from './AbstractService-V3VGQMhL.js';
9
- export { c as AssistantMessageInput, d as AssistantMessageInterface, A as AssistantMessageRole, b as AssistantMessageType, B as BreadcrumbItemData, e as ChunkInterface, C as ChunkRelationshipMeta, H as HowToInput, a as HowToInterface } from './AssistantMessageInterface-CuaMDs2i.js';
9
+ export { A as AssistantInput, b as AssistantInterface, e as AssistantMessageInput, f as AssistantMessageInterface, c as AssistantMessageRole, d as AssistantMessageType, B as BreadcrumbItemData, g as ChunkInterface, C as ChunkRelationshipMeta, H as HowToInput, a as HowToInterface } from './AssistantMessageInterface-1Kbz8RVs.js';
10
10
  export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from './content.fields-1AlHDtDb.js';
11
11
  export { ClassValue } from 'clsx';
12
- export { h as AiConnection, l as AiConnectionEnvDefaults, i as AiConnectionFields, n as AiConnectionInput, m as AiConnectionInterface, p as AiConnectionModule, o as AiConnectionService, j as AiProviderFieldDescriptor, k as AiProviderRegistry, A as AuthComponent, H as HandbookPageInterface, q as HandbookSectionInterface, 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 './HandbookSectionInterface-DFj2zErb.js';
12
+ export { h as AiConnection, l as AiConnectionEnvDefaults, i as AiConnectionFields, n as AiConnectionInput, m as AiConnectionInterface, p as AiConnectionModule, o as AiConnectionService, j as AiProviderFieldDescriptor, k as AiProviderRegistry, A as AuthComponent, H as HandbookPageInterface, q as HandbookSectionInterface, 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 './HandbookSectionInterface-OePKPbqN.js';
13
13
  export { A as Action, d as ModuleDefinition, a as ModuleFactory, c as ModulePermissionDefinition, M as ModuleWithPermissions, P as PageUrl, b as PermissionCheck, e as PermissionConfig, f as PermissionModule, g as PermissionUser } from './types-bsm8Fp55.js';
14
14
  export { A as AuthInput, b as AuthInterface, a as AuthQuery } from './auth.interface-BC1jp_ni.js';
15
15
  export { A as AuthService, C as CompanyService, a as ContentService, F as FeatureService, N as NotificationService, P as PushService, R as RoleService, b as S3Input, c as S3Interface, S as S3Service, T as TwoFactorChallengeInterface, U as UserService } from './s3.service-DJHqEZAp.js';
16
16
  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';
17
17
  export { b as CompanyInput, c as CompanyInterface, a as ContentInput, C as ContentInterface, d as NotificationInput, N as NotificationInterface, R as RoleInput, e as RoleInterface, f as UserInput, U as UserInterface } from './notification.interface-CjzV_KII.js';
18
- export { A as AssistantInput, a as AssistantInterface } from './AssistantInterface-RvZzlcA_.js';
19
18
  export { F as FeatureInterface, M as ModuleInterface } from './feature.interface-BO25VLlx.js';
20
- 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-CD90ycYz.js';
19
+ 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-BZKZAPRw.js';
21
20
  export { b as TokenUsageAdminBreakdownModule, T as TokenUsageAdminSummaryModule, a as TokenUsageAdminTimelineModule, c as configureTokenUsage, g as getTokenUsageCurrency, t as tokenUsageModules } from './config-B6UB7j69.js';
22
21
  export { I as I18nConfig, f as configureI18n, c as configureJsonApi, g as getApiUrl, b as getAppUrl, a as getPublicApiUrl, e as getStripePublishableKey, d as getTrackablePages } from './config-Cd5xTEfZ.js';
23
22
  export { Q as QuestionnaireField, a as QuestionnaireFieldType, b as QuestionnaireOption, W as WaitlistConfig, c as configureWaitlist, g as getWaitlistConfig } from './waitlist.config-kPfjImle.js';
package/dist/index.js CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
 
20
20
 
21
- var _chunkSYQMVTICjs = require('./chunk-SYQMVTIC.js');
21
+ var _chunk3D2MCVRZjs = require('./chunk-3D2MCVRZ.js');
22
22
 
23
23
 
24
24
 
@@ -244,7 +244,7 @@ var _chunkSYQMVTICjs = require('./chunk-SYQMVTIC.js');
244
244
 
245
245
 
246
246
 
247
- var _chunkMWZCCOTSjs = require('./chunk-MWZCCOTS.js');
247
+ var _chunkIV4DTYXNjs = require('./chunk-IV4DTYXN.js');
248
248
  require('./chunk-LXKSUWAV.js');
249
249
  require('./chunk-IBS6NI7D.js');
250
250
 
@@ -515,5 +515,5 @@ require('./chunk-7QVYU63E.js');
515
515
 
516
516
 
517
517
 
518
- exports.ACTION_TYPES = _chunkSYQMVTICjs.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunkMWZCCOTSjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkMWZCCOTSjs.AbstractApiData; exports.AbstractService = _chunkMWZCCOTSjs.AbstractService; exports.Action = _chunkMWZCCOTSjs.Action; exports.AiConnection = _chunkMWZCCOTSjs.AiConnection; exports.AiConnectionFields = _chunkMWZCCOTSjs.AiConnectionFields; exports.AiConnectionModule = _chunkMWZCCOTSjs.AiConnectionModule; exports.AiConnectionService = _chunkMWZCCOTSjs.AiConnectionService; exports.Assistant = _chunkMWZCCOTSjs.Assistant; exports.AssistantAction = _chunkMWZCCOTSjs.AssistantAction; exports.AssistantActionModule = _chunkMWZCCOTSjs.AssistantActionModule; exports.AssistantActionService = _chunkMWZCCOTSjs.AssistantActionService; exports.AssistantMessage = _chunkMWZCCOTSjs.AssistantMessage; exports.AssistantMessageModule = _chunkMWZCCOTSjs.AssistantMessageModule; exports.AssistantMessageService = _chunkMWZCCOTSjs.AssistantMessageService; exports.AssistantModule = _chunkMWZCCOTSjs.AssistantModule; exports.AssistantService = _chunkMWZCCOTSjs.AssistantService; exports.AuditLog = _chunkMWZCCOTSjs.AuditLog; exports.AuditLogModule = _chunkMWZCCOTSjs.AuditLogModule; exports.AuditLogService = _chunkMWZCCOTSjs.AuditLogService; exports.Auth = _chunkMWZCCOTSjs.Auth; exports.AuthComponent = _chunkMWZCCOTSjs.AuthComponent; exports.AuthModule = _chunkMWZCCOTSjs.AuthModule; exports.AuthService = _chunkMWZCCOTSjs.AuthService; exports.AuthorModule = _chunkMWZCCOTSjs.AuthorModule; exports.BackupCodeVerify = _chunkMWZCCOTSjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkMWZCCOTSjs.BackupCodeVerifyModule; exports.Billing = _chunkMWZCCOTSjs.Billing; exports.BillingModule = _chunkMWZCCOTSjs.BillingModule; exports.BillingService = _chunkMWZCCOTSjs.BillingService; exports.BlockNoteDiffUtil = _chunkMWZCCOTSjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkMWZCCOTSjs.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunkSYQMVTICjs.COMPANY_ADMINISTRATOR_ROLE_ID; exports.CURRENT_USER_STORAGE_KEY = _chunkMWZCCOTSjs.CURRENT_USER_STORAGE_KEY; exports.Chunk = _chunkMWZCCOTSjs.Chunk; exports.ChunkModule = _chunkMWZCCOTSjs.ChunkModule; exports.ClientAbstractService = _chunkMWZCCOTSjs.ClientAbstractService; exports.ClientHttpMethod = _chunkMWZCCOTSjs.ClientHttpMethod; exports.Company = _chunkMWZCCOTSjs.Company; exports.CompanyFields = _chunkMWZCCOTSjs.CompanyFields; exports.CompanyModule = _chunkMWZCCOTSjs.CompanyModule; exports.CompanyService = _chunkMWZCCOTSjs.CompanyService; exports.Content = _chunkMWZCCOTSjs.Content; exports.ContentFields = _chunkMWZCCOTSjs.ContentFields; exports.ContentModule = _chunkMWZCCOTSjs.ContentModule; exports.ContentService = _chunkMWZCCOTSjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkMWZCCOTSjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkLU7DJ4QFjs.DataClassRegistry; exports.DataClassRegistry = _chunkLU7DJ4QFjs.DataClassRegistry; exports.ENV = _chunkLU7DJ4QFjs.ENV; exports.EndpointCreator = _chunkMWZCCOTSjs.EndpointCreator; exports.EntityAiStatus = _chunkMWZCCOTSjs.EntityAiStatus; exports.Feature = _chunkMWZCCOTSjs.Feature; exports.FeatureModule = _chunkMWZCCOTSjs.FeatureModule; exports.FeatureService = _chunkMWZCCOTSjs.FeatureService; exports.HandbookPage = _chunkMWZCCOTSjs.HandbookPage; exports.HandbookPageFields = _chunkMWZCCOTSjs.HandbookPageFields; exports.HandbookPageModule = _chunkMWZCCOTSjs.HandbookPageModule; exports.HandbookPageService = _chunkMWZCCOTSjs.HandbookPageService; exports.HandbookSection = _chunkMWZCCOTSjs.HandbookSection; exports.HandbookSectionModule = _chunkMWZCCOTSjs.HandbookSectionModule; exports.HandbookSectionService = _chunkMWZCCOTSjs.HandbookSectionService; exports.HandbookThread = _chunkMWZCCOTSjs.HandbookThread; exports.HandbookThreadMessage = _chunkMWZCCOTSjs.HandbookThreadMessage; exports.HandbookThreadMessageModule = _chunkMWZCCOTSjs.HandbookThreadMessageModule; exports.HandbookThreadMessageService = _chunkMWZCCOTSjs.HandbookThreadMessageService; exports.HandbookThreadModule = _chunkMWZCCOTSjs.HandbookThreadModule; exports.HandbookThreadService = _chunkMWZCCOTSjs.HandbookThreadService; exports.HowTo = _chunkMWZCCOTSjs.HowTo; exports.HowToFields = _chunkMWZCCOTSjs.HowToFields; exports.HowToModule = _chunkMWZCCOTSjs.HowToModule; exports.HowToService = _chunkMWZCCOTSjs.HowToService; exports.HttpMethod = _chunkMWZCCOTSjs.HttpMethod; exports.InvoiceStatus = _chunkMWZCCOTSjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkLU7DJ4QFjs.JsonApiDataFactory; exports.MOBILE_BREAKPOINT = _chunkMWZCCOTSjs.MOBILE_BREAKPOINT; exports.Module = _chunkMWZCCOTSjs.Module; exports.ModuleModule = _chunkMWZCCOTSjs.ModuleModule; exports.ModulePaths = _chunkMWZCCOTSjs.ModulePaths; exports.ModulePathsModule = _chunkMWZCCOTSjs.ModulePathsModule; exports.ModuleRegistrar = _chunkMWZCCOTSjs.ModuleRegistrar; exports.ModuleRegistry = _chunkMWZCCOTSjs.ModuleRegistry; exports.Modules = _chunkMWZCCOTSjs.Modules; exports.Notification = _chunkMWZCCOTSjs.Notification; exports.NotificationFields = _chunkMWZCCOTSjs.NotificationFields; exports.NotificationModule = _chunkMWZCCOTSjs.NotificationModule; exports.NotificationService = _chunkMWZCCOTSjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkMWZCCOTSjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkMWZCCOTSjs.OAuthClient; exports.OAuthModule = _chunkMWZCCOTSjs.OAuthModule; exports.OAuthService = _chunkMWZCCOTSjs.OAuthService; exports.Passkey = _chunkMWZCCOTSjs.Passkey; exports.PasskeyAuthenticationOptions = _chunkMWZCCOTSjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkMWZCCOTSjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkMWZCCOTSjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkMWZCCOTSjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkMWZCCOTSjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkMWZCCOTSjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkMWZCCOTSjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkMWZCCOTSjs.PasskeyRename; exports.PasskeyRenameModule = _chunkMWZCCOTSjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkMWZCCOTSjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkMWZCCOTSjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkMWZCCOTSjs.PaymentMethod; exports.PermissionMapping = _chunkMWZCCOTSjs.PermissionMapping; exports.PermissionMappingModule = _chunkMWZCCOTSjs.PermissionMappingModule; exports.Push = _chunkMWZCCOTSjs.Push; exports.PushModule = _chunkMWZCCOTSjs.PushModule; exports.PushService = _chunkMWZCCOTSjs.PushService; exports.RbacMatrixModel = _chunkMWZCCOTSjs.RbacMatrixModel; exports.RbacMatrixModule = _chunkMWZCCOTSjs.RbacMatrixModule; exports.RbacService = _chunkSYQMVTICjs.RbacService; exports.ReferralModule = _chunkMWZCCOTSjs.ReferralModule; exports.ReferralService = _chunkMWZCCOTSjs.ReferralService; exports.ReferralStats = _chunkMWZCCOTSjs.ReferralStats; exports.ReferralStatsModule = _chunkMWZCCOTSjs.ReferralStatsModule; exports.RehydrationFactory = _chunkMWZCCOTSjs.RehydrationFactory; exports.Role = _chunkMWZCCOTSjs.Role; exports.RoleFields = _chunkMWZCCOTSjs.RoleFields; exports.RoleModule = _chunkMWZCCOTSjs.RoleModule; exports.RoleService = _chunkMWZCCOTSjs.RoleService; exports.S3 = _chunkMWZCCOTSjs.S3; exports.S3Module = _chunkMWZCCOTSjs.S3Module; exports.S3Service = _chunkMWZCCOTSjs.S3Service; exports.StripeCustomer = _chunkMWZCCOTSjs.StripeCustomer; exports.StripeCustomerModule = _chunkMWZCCOTSjs.StripeCustomerModule; exports.StripeCustomerService = _chunkMWZCCOTSjs.StripeCustomerService; exports.StripeInvoice = _chunkMWZCCOTSjs.StripeInvoice; exports.StripeInvoiceModule = _chunkMWZCCOTSjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkMWZCCOTSjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkMWZCCOTSjs.StripePaymentMethodModule; exports.StripePrice = _chunkMWZCCOTSjs.StripePrice; exports.StripePriceFields = _chunkMWZCCOTSjs.StripePriceFields; exports.StripePriceModule = _chunkMWZCCOTSjs.StripePriceModule; exports.StripePriceService = _chunkMWZCCOTSjs.StripePriceService; exports.StripeProduct = _chunkMWZCCOTSjs.StripeProduct; exports.StripeProductFields = _chunkMWZCCOTSjs.StripeProductFields; exports.StripeProductModule = _chunkMWZCCOTSjs.StripeProductModule; exports.StripeProductService = _chunkMWZCCOTSjs.StripeProductService; exports.StripePromotionCode = _chunkMWZCCOTSjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunkMWZCCOTSjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkMWZCCOTSjs.StripePromotionCodeService; exports.StripeSubscription = _chunkMWZCCOTSjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkMWZCCOTSjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkMWZCCOTSjs.StripeSubscriptionService; exports.StripeUsage = _chunkMWZCCOTSjs.StripeUsage; exports.StripeUsageModule = _chunkMWZCCOTSjs.StripeUsageModule; exports.StripeUsageService = _chunkMWZCCOTSjs.StripeUsageService; exports.SubscriptionStatus = _chunkMWZCCOTSjs.SubscriptionStatus; exports.TableOptions = _chunkMWZCCOTSjs.TableOptions; exports.TokenUsageAdminBreakdownModule = _chunkMWZCCOTSjs.TokenUsageAdminBreakdownModule; exports.TokenUsageAdminSummaryModule = _chunkMWZCCOTSjs.TokenUsageAdminSummaryModule; exports.TokenUsageAdminTimelineModule = _chunkMWZCCOTSjs.TokenUsageAdminTimelineModule; exports.TotpAuthenticator = _chunkMWZCCOTSjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkMWZCCOTSjs.TotpAuthenticatorModule; exports.TotpSetup = _chunkMWZCCOTSjs.TotpSetup; exports.TotpSetupModule = _chunkMWZCCOTSjs.TotpSetupModule; exports.TotpVerify = _chunkMWZCCOTSjs.TotpVerify; exports.TotpVerifyLogin = _chunkMWZCCOTSjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkMWZCCOTSjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkMWZCCOTSjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunkMWZCCOTSjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkMWZCCOTSjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkMWZCCOTSjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkMWZCCOTSjs.TwoFactorEnableModule; exports.TwoFactorService = _chunkMWZCCOTSjs.TwoFactorService; exports.TwoFactorStatus = _chunkMWZCCOTSjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkMWZCCOTSjs.TwoFactorStatusModule; exports.User = _chunkMWZCCOTSjs.User; exports.UserFields = _chunkMWZCCOTSjs.UserFields; exports.UserModule = _chunkMWZCCOTSjs.UserModule; exports.UserService = _chunkMWZCCOTSjs.UserService; exports.VIEWPORT_COOKIE_NAME = _chunkMWZCCOTSjs.VIEWPORT_COOKIE_NAME; exports.Waitlist = _chunkMWZCCOTSjs.Waitlist; exports.WaitlistModule = _chunkMWZCCOTSjs.WaitlistModule; exports.WaitlistService = _chunkMWZCCOTSjs.WaitlistService; exports.WaitlistStats = _chunkMWZCCOTSjs.WaitlistStats; exports.WaitlistStatsModule = _chunkMWZCCOTSjs.WaitlistStatsModule; exports.checkPermissions = _chunkMWZCCOTSjs.checkPermissions; exports.checkPermissionsFromServer = _chunkMWZCCOTSjs.checkPermissionsFromServer; exports.clearLastApiMeta = _chunkMWZCCOTSjs.clearLastApiMeta; exports.clearLastApiTotal = _chunkMWZCCOTSjs.clearLastApiTotal; exports.cn = _chunkMWZCCOTSjs.cn; exports.composeRefs = _chunkMWZCCOTSjs.composeRefs; exports.configureAuth = _chunkMWZCCOTSjs.configureAuth; exports.configureI18n = _chunkSYQMVTICjs.configureI18n; exports.configureJsonApi = _chunkSYQMVTICjs.configureJsonApi; exports.configureLogin = _chunkSYQMVTICjs.configureLogin; exports.configureReferral = _chunkSYQMVTICjs.configureReferral; exports.configureRoles = _chunkSYQMVTICjs.configureRoles; exports.configureTokenUsage = _chunkMWZCCOTSjs.configureTokenUsage; exports.configureWaitlist = _chunkSYQMVTICjs.configureWaitlist; exports.createJsonApiInclusion = _chunkMWZCCOTSjs.createJsonApiInclusion; exports.dismissToast = _chunkMWZCCOTSjs.dismissToast; exports.entityObjectSchema = _chunkMWZCCOTSjs.entityObjectSchema; exports.exists = _chunkMWZCCOTSjs.exists; exports.formatCodiceFiscale = _chunkMWZCCOTSjs.formatCodiceFiscale; exports.formatDate = _chunkMWZCCOTSjs.formatDate; exports.formatLocalDate = _chunkMWZCCOTSjs.formatLocalDate; exports.formatPartitaIva = _chunkMWZCCOTSjs.formatPartitaIva; exports.getApiUrl = _chunkSYQMVTICjs.getApiUrl; exports.getAppUrl = _chunkSYQMVTICjs.getAppUrl; exports.getBootstrapper = _chunkLU7DJ4QFjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkMWZCCOTSjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkMWZCCOTSjs.getGlobalErrorHandler; exports.getIcon = _chunkMWZCCOTSjs.getIcon; exports.getIconByModule = _chunkMWZCCOTSjs.getIconByModule; exports.getIconByModuleName = _chunkMWZCCOTSjs.getIconByModuleName; exports.getInitials = _chunkMWZCCOTSjs.getInitials; exports.getLastApiMeta = _chunkMWZCCOTSjs.getLastApiMeta; exports.getLastApiTotal = _chunkMWZCCOTSjs.getLastApiTotal; exports.getLucideIcon = _chunkMWZCCOTSjs.getLucideIcon; exports.getLucideIconByModule = _chunkMWZCCOTSjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkMWZCCOTSjs.getLucideIconByModuleName; exports.getPublicApiUrl = _chunkSYQMVTICjs.getPublicApiUrl; exports.getReferralConfig = _chunkSYQMVTICjs.getReferralConfig; exports.getRoleId = _chunkSYQMVTICjs.getRoleId; exports.getStripePublishableKey = _chunkSYQMVTICjs.getStripePublishableKey; exports.getTableComponents = _chunkMWZCCOTSjs.getTableComponents; exports.getTableOptions = _chunkMWZCCOTSjs.getTableOptions; exports.getTokenHandler = _chunkMWZCCOTSjs.getTokenHandler; exports.getTokenUsageCurrency = _chunkMWZCCOTSjs.getTokenUsageCurrency; exports.getTrackablePages = _chunkSYQMVTICjs.getTrackablePages; exports.getValueFromPath = _chunkMWZCCOTSjs.getValueFromPath; exports.getWaitlistConfig = _chunkSYQMVTICjs.getWaitlistConfig; exports.handbookPageContent = _chunkMWZCCOTSjs.handbookPageContent; exports.handbookPageSummary = _chunkMWZCCOTSjs.handbookPageSummary; exports.handbookPageTitle = _chunkMWZCCOTSjs.handbookPageTitle; exports.handbookSectionSummary = _chunkMWZCCOTSjs.handbookSectionSummary; exports.handbookSectionTitle = _chunkMWZCCOTSjs.handbookSectionTitle; exports.hasBootstrapper = _chunkLU7DJ4QFjs.hasBootstrapper; exports.isReferralEnabled = _chunkSYQMVTICjs.isReferralEnabled; exports.isRemoteImageSrc = _chunkMWZCCOTSjs.isRemoteImageSrc; exports.isRolesConfigured = _chunkSYQMVTICjs.isRolesConfigured; exports.rehydrate = _chunkMWZCCOTSjs.rehydrate; exports.rehydrateList = _chunkMWZCCOTSjs.rehydrateList; exports.resetBootstrapStore = _chunkLU7DJ4QFjs.resetBootstrapStore; exports.setBootstrapper = _chunkLU7DJ4QFjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkMWZCCOTSjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkMWZCCOTSjs.setGlobalErrorHandler; exports.showCustomToast = _chunkMWZCCOTSjs.showCustomToast; exports.showError = _chunkMWZCCOTSjs.showError; exports.showToast = _chunkMWZCCOTSjs.showToast; exports.tokenUsageModules = _chunkMWZCCOTSjs.tokenUsageModules; exports.translateData = _chunkLU7DJ4QFjs.translateData; exports.translateResponse = _chunkLU7DJ4QFjs.translateResponse; exports.tryBootstrap = _chunkLU7DJ4QFjs.tryBootstrap; exports.useComposedRefs = _chunkMWZCCOTSjs.useComposedRefs; exports.useIsMobile = _chunkMWZCCOTSjs.useIsMobile; exports.userObjectSchema = _chunkMWZCCOTSjs.userObjectSchema; exports.validateCodiceFiscale = _chunkMWZCCOTSjs.validateCodiceFiscale; exports.validateItalianTaxCode = _chunkMWZCCOTSjs.validateItalianTaxCode; exports.validatePartitaIva = _chunkMWZCCOTSjs.validatePartitaIva;
518
+ exports.ACTION_TYPES = _chunk3D2MCVRZjs.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunkIV4DTYXNjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkIV4DTYXNjs.AbstractApiData; exports.AbstractService = _chunkIV4DTYXNjs.AbstractService; exports.Action = _chunkIV4DTYXNjs.Action; exports.AiConnection = _chunkIV4DTYXNjs.AiConnection; exports.AiConnectionFields = _chunkIV4DTYXNjs.AiConnectionFields; exports.AiConnectionModule = _chunkIV4DTYXNjs.AiConnectionModule; exports.AiConnectionService = _chunkIV4DTYXNjs.AiConnectionService; exports.Assistant = _chunkIV4DTYXNjs.Assistant; exports.AssistantAction = _chunkIV4DTYXNjs.AssistantAction; exports.AssistantActionModule = _chunkIV4DTYXNjs.AssistantActionModule; exports.AssistantActionService = _chunkIV4DTYXNjs.AssistantActionService; exports.AssistantMessage = _chunkIV4DTYXNjs.AssistantMessage; exports.AssistantMessageModule = _chunkIV4DTYXNjs.AssistantMessageModule; exports.AssistantMessageService = _chunkIV4DTYXNjs.AssistantMessageService; exports.AssistantModule = _chunkIV4DTYXNjs.AssistantModule; exports.AssistantService = _chunkIV4DTYXNjs.AssistantService; exports.AuditLog = _chunkIV4DTYXNjs.AuditLog; exports.AuditLogModule = _chunkIV4DTYXNjs.AuditLogModule; exports.AuditLogService = _chunkIV4DTYXNjs.AuditLogService; exports.Auth = _chunkIV4DTYXNjs.Auth; exports.AuthComponent = _chunkIV4DTYXNjs.AuthComponent; exports.AuthModule = _chunkIV4DTYXNjs.AuthModule; exports.AuthService = _chunkIV4DTYXNjs.AuthService; exports.AuthorModule = _chunkIV4DTYXNjs.AuthorModule; exports.BackupCodeVerify = _chunkIV4DTYXNjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkIV4DTYXNjs.BackupCodeVerifyModule; exports.Billing = _chunkIV4DTYXNjs.Billing; exports.BillingModule = _chunkIV4DTYXNjs.BillingModule; exports.BillingService = _chunkIV4DTYXNjs.BillingService; exports.BlockNoteDiffUtil = _chunkIV4DTYXNjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkIV4DTYXNjs.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunk3D2MCVRZjs.COMPANY_ADMINISTRATOR_ROLE_ID; exports.CURRENT_USER_STORAGE_KEY = _chunkIV4DTYXNjs.CURRENT_USER_STORAGE_KEY; exports.Chunk = _chunkIV4DTYXNjs.Chunk; exports.ChunkModule = _chunkIV4DTYXNjs.ChunkModule; exports.ClientAbstractService = _chunkIV4DTYXNjs.ClientAbstractService; exports.ClientHttpMethod = _chunkIV4DTYXNjs.ClientHttpMethod; exports.Company = _chunkIV4DTYXNjs.Company; exports.CompanyFields = _chunkIV4DTYXNjs.CompanyFields; exports.CompanyModule = _chunkIV4DTYXNjs.CompanyModule; exports.CompanyService = _chunkIV4DTYXNjs.CompanyService; exports.Content = _chunkIV4DTYXNjs.Content; exports.ContentFields = _chunkIV4DTYXNjs.ContentFields; exports.ContentModule = _chunkIV4DTYXNjs.ContentModule; exports.ContentService = _chunkIV4DTYXNjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkIV4DTYXNjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkLU7DJ4QFjs.DataClassRegistry; exports.DataClassRegistry = _chunkLU7DJ4QFjs.DataClassRegistry; exports.ENV = _chunkLU7DJ4QFjs.ENV; exports.EndpointCreator = _chunkIV4DTYXNjs.EndpointCreator; exports.EntityAiStatus = _chunkIV4DTYXNjs.EntityAiStatus; exports.Feature = _chunkIV4DTYXNjs.Feature; exports.FeatureModule = _chunkIV4DTYXNjs.FeatureModule; exports.FeatureService = _chunkIV4DTYXNjs.FeatureService; exports.HandbookPage = _chunkIV4DTYXNjs.HandbookPage; exports.HandbookPageFields = _chunkIV4DTYXNjs.HandbookPageFields; exports.HandbookPageModule = _chunkIV4DTYXNjs.HandbookPageModule; exports.HandbookPageService = _chunkIV4DTYXNjs.HandbookPageService; exports.HandbookSection = _chunkIV4DTYXNjs.HandbookSection; exports.HandbookSectionModule = _chunkIV4DTYXNjs.HandbookSectionModule; exports.HandbookSectionService = _chunkIV4DTYXNjs.HandbookSectionService; exports.HandbookThread = _chunkIV4DTYXNjs.HandbookThread; exports.HandbookThreadMessage = _chunkIV4DTYXNjs.HandbookThreadMessage; exports.HandbookThreadMessageModule = _chunkIV4DTYXNjs.HandbookThreadMessageModule; exports.HandbookThreadMessageService = _chunkIV4DTYXNjs.HandbookThreadMessageService; exports.HandbookThreadModule = _chunkIV4DTYXNjs.HandbookThreadModule; exports.HandbookThreadService = _chunkIV4DTYXNjs.HandbookThreadService; exports.HowTo = _chunkIV4DTYXNjs.HowTo; exports.HowToFields = _chunkIV4DTYXNjs.HowToFields; exports.HowToModule = _chunkIV4DTYXNjs.HowToModule; exports.HowToService = _chunkIV4DTYXNjs.HowToService; exports.HttpMethod = _chunkIV4DTYXNjs.HttpMethod; exports.InvoiceStatus = _chunkIV4DTYXNjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkLU7DJ4QFjs.JsonApiDataFactory; exports.MOBILE_BREAKPOINT = _chunkIV4DTYXNjs.MOBILE_BREAKPOINT; exports.Module = _chunkIV4DTYXNjs.Module; exports.ModuleModule = _chunkIV4DTYXNjs.ModuleModule; exports.ModulePaths = _chunkIV4DTYXNjs.ModulePaths; exports.ModulePathsModule = _chunkIV4DTYXNjs.ModulePathsModule; exports.ModuleRegistrar = _chunkIV4DTYXNjs.ModuleRegistrar; exports.ModuleRegistry = _chunkIV4DTYXNjs.ModuleRegistry; exports.Modules = _chunkIV4DTYXNjs.Modules; exports.Notification = _chunkIV4DTYXNjs.Notification; exports.NotificationFields = _chunkIV4DTYXNjs.NotificationFields; exports.NotificationModule = _chunkIV4DTYXNjs.NotificationModule; exports.NotificationService = _chunkIV4DTYXNjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkIV4DTYXNjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkIV4DTYXNjs.OAuthClient; exports.OAuthModule = _chunkIV4DTYXNjs.OAuthModule; exports.OAuthService = _chunkIV4DTYXNjs.OAuthService; exports.Passkey = _chunkIV4DTYXNjs.Passkey; exports.PasskeyAuthenticationOptions = _chunkIV4DTYXNjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkIV4DTYXNjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkIV4DTYXNjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkIV4DTYXNjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkIV4DTYXNjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkIV4DTYXNjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkIV4DTYXNjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkIV4DTYXNjs.PasskeyRename; exports.PasskeyRenameModule = _chunkIV4DTYXNjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkIV4DTYXNjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkIV4DTYXNjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkIV4DTYXNjs.PaymentMethod; exports.PermissionMapping = _chunkIV4DTYXNjs.PermissionMapping; exports.PermissionMappingModule = _chunkIV4DTYXNjs.PermissionMappingModule; exports.Push = _chunkIV4DTYXNjs.Push; exports.PushModule = _chunkIV4DTYXNjs.PushModule; exports.PushService = _chunkIV4DTYXNjs.PushService; exports.RbacMatrixModel = _chunkIV4DTYXNjs.RbacMatrixModel; exports.RbacMatrixModule = _chunkIV4DTYXNjs.RbacMatrixModule; exports.RbacService = _chunk3D2MCVRZjs.RbacService; exports.ReferralModule = _chunkIV4DTYXNjs.ReferralModule; exports.ReferralService = _chunkIV4DTYXNjs.ReferralService; exports.ReferralStats = _chunkIV4DTYXNjs.ReferralStats; exports.ReferralStatsModule = _chunkIV4DTYXNjs.ReferralStatsModule; exports.RehydrationFactory = _chunkIV4DTYXNjs.RehydrationFactory; exports.Role = _chunkIV4DTYXNjs.Role; exports.RoleFields = _chunkIV4DTYXNjs.RoleFields; exports.RoleModule = _chunkIV4DTYXNjs.RoleModule; exports.RoleService = _chunkIV4DTYXNjs.RoleService; exports.S3 = _chunkIV4DTYXNjs.S3; exports.S3Module = _chunkIV4DTYXNjs.S3Module; exports.S3Service = _chunkIV4DTYXNjs.S3Service; exports.StripeCustomer = _chunkIV4DTYXNjs.StripeCustomer; exports.StripeCustomerModule = _chunkIV4DTYXNjs.StripeCustomerModule; exports.StripeCustomerService = _chunkIV4DTYXNjs.StripeCustomerService; exports.StripeInvoice = _chunkIV4DTYXNjs.StripeInvoice; exports.StripeInvoiceModule = _chunkIV4DTYXNjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkIV4DTYXNjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkIV4DTYXNjs.StripePaymentMethodModule; exports.StripePrice = _chunkIV4DTYXNjs.StripePrice; exports.StripePriceFields = _chunkIV4DTYXNjs.StripePriceFields; exports.StripePriceModule = _chunkIV4DTYXNjs.StripePriceModule; exports.StripePriceService = _chunkIV4DTYXNjs.StripePriceService; exports.StripeProduct = _chunkIV4DTYXNjs.StripeProduct; exports.StripeProductFields = _chunkIV4DTYXNjs.StripeProductFields; exports.StripeProductModule = _chunkIV4DTYXNjs.StripeProductModule; exports.StripeProductService = _chunkIV4DTYXNjs.StripeProductService; exports.StripePromotionCode = _chunkIV4DTYXNjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunkIV4DTYXNjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkIV4DTYXNjs.StripePromotionCodeService; exports.StripeSubscription = _chunkIV4DTYXNjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkIV4DTYXNjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkIV4DTYXNjs.StripeSubscriptionService; exports.StripeUsage = _chunkIV4DTYXNjs.StripeUsage; exports.StripeUsageModule = _chunkIV4DTYXNjs.StripeUsageModule; exports.StripeUsageService = _chunkIV4DTYXNjs.StripeUsageService; exports.SubscriptionStatus = _chunkIV4DTYXNjs.SubscriptionStatus; exports.TableOptions = _chunkIV4DTYXNjs.TableOptions; exports.TokenUsageAdminBreakdownModule = _chunkIV4DTYXNjs.TokenUsageAdminBreakdownModule; exports.TokenUsageAdminSummaryModule = _chunkIV4DTYXNjs.TokenUsageAdminSummaryModule; exports.TokenUsageAdminTimelineModule = _chunkIV4DTYXNjs.TokenUsageAdminTimelineModule; exports.TotpAuthenticator = _chunkIV4DTYXNjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkIV4DTYXNjs.TotpAuthenticatorModule; exports.TotpSetup = _chunkIV4DTYXNjs.TotpSetup; exports.TotpSetupModule = _chunkIV4DTYXNjs.TotpSetupModule; exports.TotpVerify = _chunkIV4DTYXNjs.TotpVerify; exports.TotpVerifyLogin = _chunkIV4DTYXNjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkIV4DTYXNjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkIV4DTYXNjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunkIV4DTYXNjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkIV4DTYXNjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkIV4DTYXNjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkIV4DTYXNjs.TwoFactorEnableModule; exports.TwoFactorService = _chunkIV4DTYXNjs.TwoFactorService; exports.TwoFactorStatus = _chunkIV4DTYXNjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkIV4DTYXNjs.TwoFactorStatusModule; exports.User = _chunkIV4DTYXNjs.User; exports.UserFields = _chunkIV4DTYXNjs.UserFields; exports.UserModule = _chunkIV4DTYXNjs.UserModule; exports.UserService = _chunkIV4DTYXNjs.UserService; exports.VIEWPORT_COOKIE_NAME = _chunkIV4DTYXNjs.VIEWPORT_COOKIE_NAME; exports.Waitlist = _chunkIV4DTYXNjs.Waitlist; exports.WaitlistModule = _chunkIV4DTYXNjs.WaitlistModule; exports.WaitlistService = _chunkIV4DTYXNjs.WaitlistService; exports.WaitlistStats = _chunkIV4DTYXNjs.WaitlistStats; exports.WaitlistStatsModule = _chunkIV4DTYXNjs.WaitlistStatsModule; exports.checkPermissions = _chunkIV4DTYXNjs.checkPermissions; exports.checkPermissionsFromServer = _chunkIV4DTYXNjs.checkPermissionsFromServer; exports.clearLastApiMeta = _chunkIV4DTYXNjs.clearLastApiMeta; exports.clearLastApiTotal = _chunkIV4DTYXNjs.clearLastApiTotal; exports.cn = _chunkIV4DTYXNjs.cn; exports.composeRefs = _chunkIV4DTYXNjs.composeRefs; exports.configureAuth = _chunkIV4DTYXNjs.configureAuth; exports.configureI18n = _chunk3D2MCVRZjs.configureI18n; exports.configureJsonApi = _chunk3D2MCVRZjs.configureJsonApi; exports.configureLogin = _chunk3D2MCVRZjs.configureLogin; exports.configureReferral = _chunk3D2MCVRZjs.configureReferral; exports.configureRoles = _chunk3D2MCVRZjs.configureRoles; exports.configureTokenUsage = _chunkIV4DTYXNjs.configureTokenUsage; exports.configureWaitlist = _chunk3D2MCVRZjs.configureWaitlist; exports.createJsonApiInclusion = _chunkIV4DTYXNjs.createJsonApiInclusion; exports.dismissToast = _chunkIV4DTYXNjs.dismissToast; exports.entityObjectSchema = _chunkIV4DTYXNjs.entityObjectSchema; exports.exists = _chunkIV4DTYXNjs.exists; exports.formatCodiceFiscale = _chunkIV4DTYXNjs.formatCodiceFiscale; exports.formatDate = _chunkIV4DTYXNjs.formatDate; exports.formatLocalDate = _chunkIV4DTYXNjs.formatLocalDate; exports.formatPartitaIva = _chunkIV4DTYXNjs.formatPartitaIva; exports.getApiUrl = _chunk3D2MCVRZjs.getApiUrl; exports.getAppUrl = _chunk3D2MCVRZjs.getAppUrl; exports.getBootstrapper = _chunkLU7DJ4QFjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkIV4DTYXNjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkIV4DTYXNjs.getGlobalErrorHandler; exports.getIcon = _chunkIV4DTYXNjs.getIcon; exports.getIconByModule = _chunkIV4DTYXNjs.getIconByModule; exports.getIconByModuleName = _chunkIV4DTYXNjs.getIconByModuleName; exports.getInitials = _chunkIV4DTYXNjs.getInitials; exports.getLastApiMeta = _chunkIV4DTYXNjs.getLastApiMeta; exports.getLastApiTotal = _chunkIV4DTYXNjs.getLastApiTotal; exports.getLucideIcon = _chunkIV4DTYXNjs.getLucideIcon; exports.getLucideIconByModule = _chunkIV4DTYXNjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkIV4DTYXNjs.getLucideIconByModuleName; exports.getPublicApiUrl = _chunk3D2MCVRZjs.getPublicApiUrl; exports.getReferralConfig = _chunk3D2MCVRZjs.getReferralConfig; exports.getRoleId = _chunk3D2MCVRZjs.getRoleId; exports.getStripePublishableKey = _chunk3D2MCVRZjs.getStripePublishableKey; exports.getTableComponents = _chunkIV4DTYXNjs.getTableComponents; exports.getTableOptions = _chunkIV4DTYXNjs.getTableOptions; exports.getTokenHandler = _chunkIV4DTYXNjs.getTokenHandler; exports.getTokenUsageCurrency = _chunkIV4DTYXNjs.getTokenUsageCurrency; exports.getTrackablePages = _chunk3D2MCVRZjs.getTrackablePages; exports.getValueFromPath = _chunkIV4DTYXNjs.getValueFromPath; exports.getWaitlistConfig = _chunk3D2MCVRZjs.getWaitlistConfig; exports.handbookPageContent = _chunkIV4DTYXNjs.handbookPageContent; exports.handbookPageSummary = _chunkIV4DTYXNjs.handbookPageSummary; exports.handbookPageTitle = _chunkIV4DTYXNjs.handbookPageTitle; exports.handbookSectionSummary = _chunkIV4DTYXNjs.handbookSectionSummary; exports.handbookSectionTitle = _chunkIV4DTYXNjs.handbookSectionTitle; exports.hasBootstrapper = _chunkLU7DJ4QFjs.hasBootstrapper; exports.isReferralEnabled = _chunk3D2MCVRZjs.isReferralEnabled; exports.isRemoteImageSrc = _chunkIV4DTYXNjs.isRemoteImageSrc; exports.isRolesConfigured = _chunk3D2MCVRZjs.isRolesConfigured; exports.rehydrate = _chunkIV4DTYXNjs.rehydrate; exports.rehydrateList = _chunkIV4DTYXNjs.rehydrateList; exports.resetBootstrapStore = _chunkLU7DJ4QFjs.resetBootstrapStore; exports.setBootstrapper = _chunkLU7DJ4QFjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkIV4DTYXNjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkIV4DTYXNjs.setGlobalErrorHandler; exports.showCustomToast = _chunkIV4DTYXNjs.showCustomToast; exports.showError = _chunkIV4DTYXNjs.showError; exports.showToast = _chunkIV4DTYXNjs.showToast; exports.tokenUsageModules = _chunkIV4DTYXNjs.tokenUsageModules; exports.translateData = _chunkLU7DJ4QFjs.translateData; exports.translateResponse = _chunkLU7DJ4QFjs.translateResponse; exports.tryBootstrap = _chunkLU7DJ4QFjs.tryBootstrap; exports.useComposedRefs = _chunkIV4DTYXNjs.useComposedRefs; exports.useIsMobile = _chunkIV4DTYXNjs.useIsMobile; exports.userObjectSchema = _chunkIV4DTYXNjs.userObjectSchema; exports.validateCodiceFiscale = _chunkIV4DTYXNjs.validateCodiceFiscale; exports.validateItalianTaxCode = _chunkIV4DTYXNjs.validateItalianTaxCode; exports.validatePartitaIva = _chunkIV4DTYXNjs.validatePartitaIva;
519
519
  //# sourceMappingURL=index.js.map
package/dist/index.mjs CHANGED
@@ -18,7 +18,7 @@ import {
18
18
  getWaitlistConfig,
19
19
  isReferralEnabled,
20
20
  isRolesConfigured
21
- } from "./chunk-U55JQ4NY.mjs";
21
+ } from "./chunk-HAI7G6MD.mjs";
22
22
  import {
23
23
  AVAILABLE_OAUTH_SCOPES,
24
24
  AbstractApiData,
@@ -244,7 +244,7 @@ import {
244
244
  validateCodiceFiscale,
245
245
  validateItalianTaxCode,
246
246
  validatePartitaIva
247
- } from "./chunk-CK47KSFV.mjs";
247
+ } from "./chunk-2O3SFHQ7.mjs";
248
248
  import "./chunk-AUXK7QSA.mjs";
249
249
  import "./chunk-C7C7VY4F.mjs";
250
250
  import {
@@ -85,12 +85,14 @@ interface OAuthConsentRequest {
85
85
  codeChallenge?: string;
86
86
  /** PKCE method: 'S256' (recommended) or 'plain' */
87
87
  codeChallengeMethod?: string;
88
+ /** The studio (company) the issued tokens are bound to; sent as `company_id` on approve */
89
+ companyId?: string;
88
90
  }
89
91
  /**
90
92
  * Scope information for display in consent screen
91
93
  */
92
94
  interface OAuthScopeInfo {
93
- /** The scope identifier (e.g., 'photographs:read') */
95
+ /** The scope identifier (e.g., 'read', 'mcp') */
94
96
  scope: string;
95
97
  /** Human-readable scope name */
96
98
  name: string;
@@ -105,6 +107,11 @@ interface OAuthScopeInfo {
105
107
  interface OAuthConsentInfo {
106
108
  client: OAuthClientInterface;
107
109
  scopes: OAuthScopeInfo[];
110
+ /** The caller's companies, ordered by name; the user picks one when there is more than one */
111
+ companies?: Array<{
112
+ id: string;
113
+ name: string;
114
+ }>;
108
115
  }
109
116
  /**
110
117
  * Default scope display configuration
@@ -85,12 +85,14 @@ interface OAuthConsentRequest {
85
85
  codeChallenge?: string;
86
86
  /** PKCE method: 'S256' (recommended) or 'plain' */
87
87
  codeChallengeMethod?: string;
88
+ /** The studio (company) the issued tokens are bound to; sent as `company_id` on approve */
89
+ companyId?: string;
88
90
  }
89
91
  /**
90
92
  * Scope information for display in consent screen
91
93
  */
92
94
  interface OAuthScopeInfo {
93
- /** The scope identifier (e.g., 'photographs:read') */
95
+ /** The scope identifier (e.g., 'read', 'mcp') */
94
96
  scope: string;
95
97
  /** Human-readable scope name */
96
98
  name: string;
@@ -105,6 +107,11 @@ interface OAuthScopeInfo {
105
107
  interface OAuthConsentInfo {
106
108
  client: OAuthClientInterface;
107
109
  scopes: OAuthScopeInfo[];
110
+ /** The caller's companies, ordered by name; the user picks one when there is more than one */
111
+ companies?: Array<{
112
+ id: string;
113
+ name: string;
114
+ }>;
108
115
  }
109
116
  /**
110
117
  * Default scope display configuration
@@ -15,7 +15,7 @@ var _chunkIOLU4ASDjs = require('../chunk-IOLU4ASD.js');
15
15
 
16
16
 
17
17
 
18
- var _chunkMWZCCOTSjs = require('../chunk-MWZCCOTS.js');
18
+ var _chunkIV4DTYXNjs = require('../chunk-IV4DTYXN.js');
19
19
  require('../chunk-LXKSUWAV.js');
20
20
  require('../chunk-IBS6NI7D.js');
21
21
 
@@ -87,7 +87,7 @@ var ServerSession = class {
87
87
  if (!rawModules) return false;
88
88
  const modules = JSON.parse(_pako.ungzip.call(void 0, Buffer.from(rawModules, "base64"), { toText: true }));
89
89
  const selectedModule = modules.find((module) => module.id === params.module.moduleId);
90
- return _chunkMWZCCOTSjs.checkPermissionsFromServer.call(void 0, {
90
+ return _chunkIV4DTYXNjs.checkPermissionsFromServer.call(void 0, {
91
91
  module: params.module,
92
92
  action: params.action,
93
93
  data: params.data,
@@ -297,5 +297,5 @@ _chunk7QVYU63Ejs.__name.call(void 0, ServerJsonApiDelete, "ServerJsonApiDelete")
297
297
 
298
298
 
299
299
 
300
- exports.ServerAuthService = _chunkMWZCCOTSjs.AuthService; exports.ServerCompanyService = _chunkMWZCCOTSjs.CompanyService; exports.ServerContentService = _chunkMWZCCOTSjs.ContentService; exports.ServerFeatureService = _chunkMWZCCOTSjs.FeatureService; exports.ServerJsonApiDelete = ServerJsonApiDelete; exports.ServerJsonApiGet = ServerJsonApiGet; exports.ServerJsonApiPatch = ServerJsonApiPatch; exports.ServerJsonApiPost = ServerJsonApiPost; exports.ServerJsonApiPut = ServerJsonApiPut; exports.ServerNotificationService = _chunkMWZCCOTSjs.NotificationService; exports.ServerPushService = _chunkMWZCCOTSjs.PushService; exports.ServerRoleService = _chunkMWZCCOTSjs.RoleService; exports.ServerS3Service = _chunkMWZCCOTSjs.S3Service; exports.ServerSession = ServerSession; exports.ServerUserService = _chunkMWZCCOTSjs.UserService; exports.configureServerJsonApi = configureServerJsonApi; exports.getServerApiUrl = getServerApiUrl; exports.getServerAppUrl = getServerAppUrl; exports.getServerToken = _chunkYUO55Q5Ajs.getServerToken; exports.getServerTrackablePages = getServerTrackablePages; exports.invalidateCacheTag = invalidateCacheTag; exports.invalidateCacheTags = invalidateCacheTags; exports.serverRequest = _chunkIOLU4ASDjs.serverRequest;
300
+ exports.ServerAuthService = _chunkIV4DTYXNjs.AuthService; exports.ServerCompanyService = _chunkIV4DTYXNjs.CompanyService; exports.ServerContentService = _chunkIV4DTYXNjs.ContentService; exports.ServerFeatureService = _chunkIV4DTYXNjs.FeatureService; exports.ServerJsonApiDelete = ServerJsonApiDelete; exports.ServerJsonApiGet = ServerJsonApiGet; exports.ServerJsonApiPatch = ServerJsonApiPatch; exports.ServerJsonApiPost = ServerJsonApiPost; exports.ServerJsonApiPut = ServerJsonApiPut; exports.ServerNotificationService = _chunkIV4DTYXNjs.NotificationService; exports.ServerPushService = _chunkIV4DTYXNjs.PushService; exports.ServerRoleService = _chunkIV4DTYXNjs.RoleService; exports.ServerS3Service = _chunkIV4DTYXNjs.S3Service; exports.ServerSession = ServerSession; exports.ServerUserService = _chunkIV4DTYXNjs.UserService; exports.configureServerJsonApi = configureServerJsonApi; exports.getServerApiUrl = getServerApiUrl; exports.getServerAppUrl = getServerAppUrl; exports.getServerToken = _chunkYUO55Q5Ajs.getServerToken; exports.getServerTrackablePages = getServerTrackablePages; exports.invalidateCacheTag = invalidateCacheTag; exports.invalidateCacheTags = invalidateCacheTags; exports.serverRequest = _chunkIOLU4ASDjs.serverRequest;
301
301
  //# sourceMappingURL=index.js.map
@@ -15,7 +15,7 @@ import {
15
15
  S3Service,
16
16
  UserService,
17
17
  checkPermissionsFromServer
18
- } from "../chunk-CK47KSFV.mjs";
18
+ } from "../chunk-2O3SFHQ7.mjs";
19
19
  import "../chunk-AUXK7QSA.mjs";
20
20
  import "../chunk-C7C7VY4F.mjs";
21
21
  import {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carlonicora/nextjs-jsonapi",
3
- "version": "3.22.0",
3
+ "version": "3.24.0",
4
4
  "description": "Next.js JSON:API client with server/client support and caching",
5
5
  "author": "Carlo Nicora",
6
6
  "license": "GPL-3.0-or-later",
@@ -4,7 +4,7 @@ import userEvent from "@testing-library/user-event";
4
4
  import { useForm } from "react-hook-form";
5
5
  import { zodResolver } from "@hookform/resolvers/zod";
6
6
  import { z } from "zod";
7
- import { EditorSheet } from "../EditorSheet";
7
+ import { EditorSheet, EditorSheetProps } from "../EditorSheet";
8
8
 
9
9
  // Mock next-intl
10
10
  vi.mock("next-intl", () => ({
@@ -33,12 +33,14 @@ const schema = z.object({
33
33
  name: z.string().min(1),
34
34
  });
35
35
 
36
+ type TestValues = z.infer<typeof schema>;
37
+
36
38
  function TestEditor({
37
39
  onSubmit = vi.fn().mockResolvedValue({ id: "123" }),
38
40
  isEdit = false,
39
41
  ...props
40
- }: Partial<React.ComponentProps<typeof EditorSheet>> & { onSubmit?: any }) {
41
- const form = useForm({
42
+ }: Partial<EditorSheetProps<TestValues>> & { onSubmit?: any }) {
43
+ const form = useForm<TestValues>({
42
44
  resolver: zodResolver(schema),
43
45
  defaultValues: { name: "" },
44
46
  });
@@ -7,7 +7,9 @@ import { translateResponse } from "../translateResponse";
7
7
 
8
8
  class StubData implements Partial<ApiDataInterface> {
9
9
  id = "";
10
- rehydrate(): void {}
10
+ rehydrate(): ApiDataInterface {
11
+ return this as unknown as ApiDataInterface;
12
+ }
11
13
  }
12
14
 
13
15
  const stubModule = {
@@ -19,6 +19,7 @@ const COST_FIELDS = [
19
19
  "cachedInputCostPer1MTokens",
20
20
  "costPerMinute",
21
21
  "costPerPage",
22
+ "costPerImage",
22
23
  ];
23
24
 
24
25
  type AiConnectionFormValues = {
@@ -47,6 +47,15 @@ function toInput(connection: AiConnectionInterface, overrides: Partial<AiConnect
47
47
  language: connection.language,
48
48
  directFormat: connection.directFormat,
49
49
  directProvider: connection.directProvider,
50
+ costPerImage: connection.costPerImage,
51
+ negativePrompt: connection.negativePrompt,
52
+ width: connection.width,
53
+ height: connection.height,
54
+ steps: connection.steps,
55
+ cfgScale: connection.cfgScale,
56
+ safeMode: connection.safeMode,
57
+ hideWatermark: connection.hideWatermark,
58
+ imageFormat: connection.imageFormat,
50
59
  ...overrides,
51
60
  };
52
61
  }
@@ -60,6 +60,15 @@ function makeHydratedData(attributeOverrides: Record<string, any> = {}) {
60
60
  language: "en",
61
61
  directFormat: "json",
62
62
  directProvider: "groq",
63
+ costPerImage: 0.01,
64
+ negativePrompt: "watermark, text",
65
+ width: 1024,
66
+ height: 1024,
67
+ steps: 30,
68
+ cfgScale: 5.5,
69
+ safeMode: false,
70
+ hideWatermark: true,
71
+ imageFormat: "png",
63
72
  hasApiKey: true,
64
73
  hasGoogleCredentials: false,
65
74
  companyId: "company-1",
@@ -114,6 +123,15 @@ describe("AiConnection.rehydrate", () => {
114
123
  expect(connection.language).toBe("en");
115
124
  expect(connection.directFormat).toBe("json");
116
125
  expect(connection.directProvider).toBe("groq");
126
+ expect(connection.costPerImage).toBe(0.01);
127
+ expect(connection.negativePrompt).toBe("watermark, text");
128
+ expect(connection.width).toBe(1024);
129
+ expect(connection.height).toBe(1024);
130
+ expect(connection.steps).toBe(30);
131
+ expect(connection.cfgScale).toBe(5.5);
132
+ expect(connection.safeMode).toBe(false);
133
+ expect(connection.hideWatermark).toBe(true);
134
+ expect(connection.imageFormat).toBe("png");
117
135
  expect(connection.hasApiKey).toBe(true);
118
136
  expect(connection.hasGoogleCredentials).toBe(false);
119
137
  expect(connection.companyId).toBe("company-1");
@@ -186,6 +204,39 @@ describe("AiConnection.createJsonApi", () => {
186
204
  expect(payload.data.attributes.position).toBe(0);
187
205
  expect(payload.data.attributes.maxOutputTokens).toBe(0);
188
206
  });
207
+
208
+ it("serialises the venice image knobs, safe_mode: false included", () => {
209
+ const payload = new AiConnection().createJsonApi(
210
+ makeInput({
211
+ connectionType: "image",
212
+ provider: "venice",
213
+ model: "lustify-v8",
214
+ width: 1024,
215
+ height: 1024,
216
+ steps: 30,
217
+ cfgScale: 5.5,
218
+ safeMode: false,
219
+ hideWatermark: true,
220
+ imageFormat: "png",
221
+ negativePrompt: "watermark, text",
222
+ costPerImage: 0.01,
223
+ }),
224
+ );
225
+
226
+ expect(payload.data.attributes).toMatchObject({
227
+ width: 1024,
228
+ height: 1024,
229
+ steps: 30,
230
+ cfgScale: 5.5,
231
+ // A tri-state flag: `false` is a REQUEST, not an absent value, so it must
232
+ // survive serialisation rather than being dropped as falsy.
233
+ safeMode: false,
234
+ hideWatermark: true,
235
+ imageFormat: "png",
236
+ negativePrompt: "watermark, text",
237
+ costPerImage: 0.01,
238
+ });
239
+ });
189
240
  });
190
241
 
191
242
  describe("AiConnection.createReorderJsonApi", () => {
@@ -47,6 +47,15 @@ export interface AiConnectionInterface extends ApiDataInterface {
47
47
  get language(): string | undefined;
48
48
  get directFormat(): string | undefined;
49
49
  get directProvider(): string | undefined;
50
+ get costPerImage(): number | undefined;
51
+ get negativePrompt(): string | undefined;
52
+ get width(): number | undefined;
53
+ get height(): number | undefined;
54
+ get steps(): number | undefined;
55
+ get cfgScale(): number | undefined;
56
+ get safeMode(): boolean | undefined;
57
+ get hideWatermark(): boolean | undefined;
58
+ get imageFormat(): string | undefined;
50
59
  /** Secrets are never serialised — the API returns presence flags instead. */
51
60
  get hasApiKey(): boolean;
52
61
  get hasGoogleCredentials(): boolean;
@@ -82,6 +91,15 @@ export type AiConnectionInput = {
82
91
  language?: string;
83
92
  directFormat?: string;
84
93
  directProvider?: string;
94
+ costPerImage?: number;
95
+ negativePrompt?: string;
96
+ width?: number;
97
+ height?: number;
98
+ steps?: number;
99
+ cfgScale?: number;
100
+ safeMode?: boolean;
101
+ hideWatermark?: boolean;
102
+ imageFormat?: string;
85
103
  /** Set on creation only — scope is immutable thereafter. */
86
104
  companyId?: string;
87
105
  };
@@ -25,6 +25,15 @@ export class AiConnection extends AbstractApiData implements AiConnectionInterfa
25
25
  private _language?: string;
26
26
  private _directFormat?: string;
27
27
  private _directProvider?: string;
28
+ private _costPerImage?: number;
29
+ private _negativePrompt?: string;
30
+ private _width?: number;
31
+ private _height?: number;
32
+ private _steps?: number;
33
+ private _cfgScale?: number;
34
+ private _safeMode?: boolean;
35
+ private _hideWatermark?: boolean;
36
+ private _imageFormat?: string;
28
37
  private _hasApiKey?: boolean;
29
38
  private _hasGoogleCredentials?: boolean;
30
39
  private _companyId?: string;
@@ -121,6 +130,42 @@ export class AiConnection extends AbstractApiData implements AiConnectionInterfa
121
130
  return this._directProvider;
122
131
  }
123
132
 
133
+ get costPerImage(): number | undefined {
134
+ return this._costPerImage;
135
+ }
136
+
137
+ get negativePrompt(): string | undefined {
138
+ return this._negativePrompt;
139
+ }
140
+
141
+ get width(): number | undefined {
142
+ return this._width;
143
+ }
144
+
145
+ get height(): number | undefined {
146
+ return this._height;
147
+ }
148
+
149
+ get steps(): number | undefined {
150
+ return this._steps;
151
+ }
152
+
153
+ get cfgScale(): number | undefined {
154
+ return this._cfgScale;
155
+ }
156
+
157
+ get safeMode(): boolean | undefined {
158
+ return this._safeMode;
159
+ }
160
+
161
+ get hideWatermark(): boolean | undefined {
162
+ return this._hideWatermark;
163
+ }
164
+
165
+ get imageFormat(): string | undefined {
166
+ return this._imageFormat;
167
+ }
168
+
124
169
  get hasApiKey(): boolean {
125
170
  return this._hasApiKey ?? false;
126
171
  }
@@ -161,6 +206,15 @@ export class AiConnection extends AbstractApiData implements AiConnectionInterfa
161
206
  this._language = attributes.language;
162
207
  this._directFormat = attributes.directFormat;
163
208
  this._directProvider = attributes.directProvider;
209
+ this._costPerImage = attributes.costPerImage;
210
+ this._negativePrompt = attributes.negativePrompt;
211
+ this._width = attributes.width;
212
+ this._height = attributes.height;
213
+ this._steps = attributes.steps;
214
+ this._cfgScale = attributes.cfgScale;
215
+ this._safeMode = attributes.safeMode;
216
+ this._hideWatermark = attributes.hideWatermark;
217
+ this._imageFormat = attributes.imageFormat;
164
218
  this._hasApiKey = attributes.hasApiKey;
165
219
  this._hasGoogleCredentials = attributes.hasGoogleCredentials;
166
220
  this._companyId = attributes.companyId;
@@ -208,6 +262,15 @@ export class AiConnection extends AbstractApiData implements AiConnectionInterfa
208
262
  "language",
209
263
  "directFormat",
210
264
  "directProvider",
265
+ "costPerImage",
266
+ "negativePrompt",
267
+ "width",
268
+ "height",
269
+ "steps",
270
+ "cfgScale",
271
+ "safeMode",
272
+ "hideWatermark",
273
+ "imageFormat",
211
274
  ] as const
212
275
  ).forEach(setIfDefined);
213
276
 
@@ -50,6 +50,15 @@ export const AI_CONNECTIONS_I18N_KEYS = [
50
50
  "ai_connections.admin.fields.language",
51
51
  "ai_connections.admin.fields.directFormat",
52
52
  "ai_connections.admin.fields.directProvider",
53
+ "ai_connections.admin.fields.costPerImage",
54
+ "ai_connections.admin.fields.negativePrompt",
55
+ "ai_connections.admin.fields.width",
56
+ "ai_connections.admin.fields.height",
57
+ "ai_connections.admin.fields.steps",
58
+ "ai_connections.admin.fields.cfgScale",
59
+ "ai_connections.admin.fields.safeMode",
60
+ "ai_connections.admin.fields.hideWatermark",
61
+ "ai_connections.admin.fields.imageFormat",
53
62
  "ai_connections.admin.fields.enabled",
54
63
  "ai_connections.admin.fields.costs_section",
55
64
  "ai_connections.admin.placeholders.name",