@carlonicora/nextjs-jsonapi 3.23.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.
- package/dist/{AssistantMessageInterface-CuaMDs2i.d.ts → AssistantMessageInterface-1Kbz8RVs.d.ts} +34 -1
- package/dist/{AssistantMessageInterface-Du3ShThp.d.mts → AssistantMessageInterface-CoxJyuFM.d.mts} +34 -1
- package/dist/{BlockNoteEditor-BUSOUPQ7.js → BlockNoteEditor-PTD2V4CH.js} +19 -19
- package/dist/{BlockNoteEditor-BUSOUPQ7.js.map → BlockNoteEditor-PTD2V4CH.js.map} +1 -1
- package/dist/{BlockNoteEditor-W42IQTGL.mjs → BlockNoteEditor-Q2WEDMKJ.mjs} +4 -4
- package/dist/{BlockNoteViewer-FQ23TZ3J.mjs → BlockNoteViewer-WO6GTDSI.mjs} +2 -2
- package/dist/{BlockNoteViewer-MCX53AR4.js → BlockNoteViewer-WOXEJ6RM.js} +3 -3
- package/dist/{BlockNoteViewer-MCX53AR4.js.map → BlockNoteViewer-WOXEJ6RM.js.map} +1 -1
- package/dist/billing/index.js +401 -401
- package/dist/billing/index.mjs +3 -3
- package/dist/{chunk-O5MKEU7G.mjs → chunk-2O3SFHQ7.mjs} +36 -38
- package/dist/{chunk-O5MKEU7G.mjs.map → chunk-2O3SFHQ7.mjs.map} +1 -1
- package/dist/{chunk-FXWO5J2R.js → chunk-3D2MCVRZ.js} +7 -7
- package/dist/{chunk-FXWO5J2R.js.map → chunk-3D2MCVRZ.js.map} +1 -1
- package/dist/{chunk-VR65NRE4.js → chunk-3YJF7QY4.js} +1338 -1115
- package/dist/chunk-3YJF7QY4.js.map +1 -0
- package/dist/{chunk-GFLEFIAW.mjs → chunk-GJHKOG5L.mjs} +1399 -1176
- package/dist/chunk-GJHKOG5L.mjs.map +1 -0
- package/dist/{chunk-JZUBFAAY.mjs → chunk-HAI7G6MD.mjs} +2 -2
- package/dist/{chunk-YCHPWXHD.js → chunk-IV4DTYXN.js} +36 -38
- package/dist/chunk-IV4DTYXN.js.map +1 -0
- package/dist/client/index.d.mts +13 -2
- package/dist/client/index.d.ts +13 -2
- package/dist/client/index.js +4 -4
- package/dist/client/index.mjs +3 -3
- package/dist/components/index.d.mts +87 -28
- package/dist/components/index.d.ts +87 -28
- package/dist/components/index.js +8 -4
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +7 -3
- package/dist/contexts/index.d.mts +11 -2
- package/dist/contexts/index.d.ts +11 -2
- package/dist/contexts/index.js +4 -4
- package/dist/contexts/index.mjs +3 -3
- package/dist/core/index.d.mts +27 -5
- package/dist/core/index.d.ts +27 -5
- package/dist/core/index.js +2 -2
- package/dist/core/index.mjs +1 -1
- package/dist/features/help/index.js +37 -37
- package/dist/features/help/index.mjs +3 -3
- package/dist/features/tokenusage/index.js +101 -101
- package/dist/features/tokenusage/index.mjs +3 -3
- package/dist/index.d.mts +2 -3
- package/dist/index.d.ts +2 -3
- package/dist/index.js +3 -3
- package/dist/index.mjs +2 -2
- package/dist/{oauth.interface-CD90ycYz.d.ts → oauth.interface-BZKZAPRw.d.ts} +8 -1
- package/dist/{oauth.interface-DRE3NAKc.d.mts → oauth.interface-nVwnzxJw.d.mts} +8 -1
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/package.json +1 -1
- package/src/components/forms/__tests__/EditorSheet.test.tsx +5 -3
- package/src/core/utils/__tests__/translateResponse.test.ts +3 -1
- package/src/features/assistant/components/containers/AssistantContainer.tsx +105 -36
- package/src/features/assistant/components/containers/__tests__/AssistantContainer.spec.tsx +163 -1
- package/src/features/assistant/components/parts/AssistantComposer.tsx +38 -15
- package/src/features/assistant/components/parts/AssistantEmptyState.tsx +5 -3
- package/src/features/assistant/components/parts/AssistantSidebar.tsx +26 -7
- package/src/features/assistant/components/parts/__tests__/AssistantComposer.spec.tsx +8 -0
- package/src/features/assistant/components/parts/__tests__/AssistantSidebar.spec.tsx +7 -0
- package/src/features/assistant/contexts/AssistantContext.tsx +91 -7
- package/src/features/assistant/contexts/__tests__/AssistantContext.spec.tsx +196 -0
- package/src/features/assistant-action/components/AssistantContainerWithApprovals.tsx +23 -1
- package/src/features/assistant-message/components/EntityMentionLink.tsx +28 -0
- package/src/features/assistant-message/components/__tests__/EntityMentionLink.spec.tsx +58 -0
- package/src/features/assistant-message/components/index.ts +1 -0
- package/src/features/assistant-message/components/parts/tabs/ContentsTab.tsx +1 -1
- package/src/features/assistant-message/components/parts/tabs/ReferencesTab.tsx +2 -2
- package/src/features/auth/components/forms/__tests__/Logout.spec.tsx +3 -2
- package/src/features/oauth/components/OAuthClientForm.tsx +21 -4
- package/src/features/oauth/components/__tests__/OAuthClientForm.spec.tsx +63 -0
- package/src/features/oauth/components/consent/OAuthCompanySelector.tsx +54 -0
- package/src/features/oauth/components/consent/OAuthConsentActions.tsx +5 -2
- package/src/features/oauth/components/consent/OAuthConsentHeader.tsx +10 -6
- package/src/features/oauth/components/consent/OAuthConsentScreen.tsx +33 -13
- package/src/features/oauth/components/consent/OAuthScopeList.tsx +4 -1
- package/src/features/oauth/components/consent/__tests__/OAuthConsentHeader.spec.tsx +25 -0
- package/src/features/oauth/components/consent/__tests__/OAuthConsentScreen.spec.tsx +126 -0
- package/src/features/oauth/components/consent/index.ts +1 -0
- package/src/features/oauth/data/__tests__/oauth.service.spec.ts +103 -0
- package/src/features/oauth/data/oauth.service.ts +3 -13
- package/src/features/oauth/data/oauth.ts +30 -1
- package/src/features/oauth/hooks/useOAuthConsent.ts +34 -3
- package/src/features/oauth/interfaces/oauth.interface.ts +11 -25
- package/src/hooks/__tests__/useDataListRetriever.test.ts +1 -1
- package/dist/AssistantInterface-RvZzlcA_.d.ts +0 -36
- package/dist/AssistantInterface-jL56dyNc.d.mts +0 -36
- package/dist/chunk-GFLEFIAW.mjs.map +0 -1
- package/dist/chunk-VR65NRE4.js.map +0 -1
- package/dist/chunk-YCHPWXHD.js.map +0 -1
- /package/dist/{BlockNoteEditor-W42IQTGL.mjs.map → BlockNoteEditor-Q2WEDMKJ.mjs.map} +0 -0
- /package/dist/{BlockNoteViewer-FQ23TZ3J.mjs.map → BlockNoteViewer-WO6GTDSI.mjs.map} +0 -0
- /package/dist/{chunk-JZUBFAAY.mjs.map → chunk-HAI7G6MD.mjs.map} +0 -0
package/dist/billing/index.mjs
CHANGED
|
@@ -62,12 +62,12 @@ import {
|
|
|
62
62
|
useCurrentUserContext,
|
|
63
63
|
useDataListRetriever,
|
|
64
64
|
usePageUrlGenerator
|
|
65
|
-
} from "../chunk-
|
|
65
|
+
} from "../chunk-GJHKOG5L.mjs";
|
|
66
66
|
import {
|
|
67
67
|
getRoleId,
|
|
68
68
|
getStripePublishableKey,
|
|
69
69
|
useI18nRouter
|
|
70
|
-
} from "../chunk-
|
|
70
|
+
} from "../chunk-HAI7G6MD.mjs";
|
|
71
71
|
import {
|
|
72
72
|
FeatureService,
|
|
73
73
|
Modules,
|
|
@@ -81,7 +81,7 @@ import {
|
|
|
81
81
|
cn,
|
|
82
82
|
rehydrate,
|
|
83
83
|
showToast
|
|
84
|
-
} from "../chunk-
|
|
84
|
+
} from "../chunk-2O3SFHQ7.mjs";
|
|
85
85
|
import "../chunk-AUXK7QSA.mjs";
|
|
86
86
|
import "../chunk-C7C7VY4F.mjs";
|
|
87
87
|
import "../chunk-BMVA2IM5.mjs";
|
|
@@ -8284,6 +8284,33 @@ var OAuthClient = class extends AbstractApiData {
|
|
|
8284
8284
|
if (data.isActive !== void 0) response.data.attributes.isActive = data.isActive;
|
|
8285
8285
|
return response;
|
|
8286
8286
|
}
|
|
8287
|
+
/**
|
|
8288
|
+
* Body for POST /oauth/authorize/approve.
|
|
8289
|
+
* The authorize endpoints speak the RFC 6749 wire format (snake_case keys,
|
|
8290
|
+
* no JSON:API envelope), so this dedicated method owns that shape and the
|
|
8291
|
+
* service sends it with `overridesJsonApiCreation`.
|
|
8292
|
+
*/
|
|
8293
|
+
createApproveAuthorizationJsonApi(params) {
|
|
8294
|
+
return {
|
|
8295
|
+
client_id: params.clientId,
|
|
8296
|
+
redirect_uri: params.redirectUri,
|
|
8297
|
+
scope: params.scope,
|
|
8298
|
+
state: params.state,
|
|
8299
|
+
code_challenge: params.codeChallenge,
|
|
8300
|
+
code_challenge_method: params.codeChallengeMethod,
|
|
8301
|
+
company_id: params.companyId
|
|
8302
|
+
};
|
|
8303
|
+
}
|
|
8304
|
+
/**
|
|
8305
|
+
* Body for POST /oauth/authorize/deny (RFC 6749 wire format, see above).
|
|
8306
|
+
*/
|
|
8307
|
+
createDenyAuthorizationJsonApi(params) {
|
|
8308
|
+
return {
|
|
8309
|
+
client_id: params.clientId,
|
|
8310
|
+
redirect_uri: params.redirectUri,
|
|
8311
|
+
state: params.state
|
|
8312
|
+
};
|
|
8313
|
+
}
|
|
8287
8314
|
};
|
|
8288
8315
|
|
|
8289
8316
|
// src/features/oauth/oauth.module.ts
|
|
@@ -8407,14 +8434,7 @@ var OAuthService = class extends AbstractService {
|
|
|
8407
8434
|
type: Modules.OAuth,
|
|
8408
8435
|
method: "POST" /* POST */,
|
|
8409
8436
|
endpoint: new EndpointCreator({ endpoint: "oauth/authorize/approve" }).generate(),
|
|
8410
|
-
input:
|
|
8411
|
-
client_id: params.clientId,
|
|
8412
|
-
redirect_uri: params.redirectUri,
|
|
8413
|
-
scope: params.scope,
|
|
8414
|
-
state: params.state,
|
|
8415
|
-
code_challenge: params.codeChallenge,
|
|
8416
|
-
code_challenge_method: params.codeChallengeMethod
|
|
8417
|
-
},
|
|
8437
|
+
input: new OAuthClient().createApproveAuthorizationJsonApi(params),
|
|
8418
8438
|
overridesJsonApiCreation: true
|
|
8419
8439
|
});
|
|
8420
8440
|
return {
|
|
@@ -8430,11 +8450,7 @@ var OAuthService = class extends AbstractService {
|
|
|
8430
8450
|
type: Modules.OAuth,
|
|
8431
8451
|
method: "POST" /* POST */,
|
|
8432
8452
|
endpoint: new EndpointCreator({ endpoint: "oauth/authorize/deny" }).generate(),
|
|
8433
|
-
input:
|
|
8434
|
-
client_id: params.clientId,
|
|
8435
|
-
redirect_uri: params.redirectUri,
|
|
8436
|
-
state: params.state
|
|
8437
|
-
},
|
|
8453
|
+
input: new OAuthClient().createDenyAuthorizationJsonApi(params),
|
|
8438
8454
|
overridesJsonApiCreation: true
|
|
8439
8455
|
});
|
|
8440
8456
|
return {
|
|
@@ -8457,36 +8473,18 @@ var OAUTH_SCOPE_DISPLAY = {
|
|
|
8457
8473
|
description: "Write access to your data",
|
|
8458
8474
|
icon: "pencil"
|
|
8459
8475
|
},
|
|
8460
|
-
"photographs:read": {
|
|
8461
|
-
scope: "photographs:read",
|
|
8462
|
-
name: "View Photographs",
|
|
8463
|
-
description: "Access and download your photo library",
|
|
8464
|
-
icon: "image"
|
|
8465
|
-
},
|
|
8466
|
-
"photographs:write": {
|
|
8467
|
-
scope: "photographs:write",
|
|
8468
|
-
name: "Upload Photographs",
|
|
8469
|
-
description: "Add new photos to your rolls",
|
|
8470
|
-
icon: "upload"
|
|
8471
|
-
},
|
|
8472
|
-
"rolls:read": {
|
|
8473
|
-
scope: "rolls:read",
|
|
8474
|
-
name: "View Rolls",
|
|
8475
|
-
description: "See your film rolls and collections",
|
|
8476
|
-
icon: "film"
|
|
8477
|
-
},
|
|
8478
|
-
"rolls:write": {
|
|
8479
|
-
scope: "rolls:write",
|
|
8480
|
-
name: "Manage Rolls",
|
|
8481
|
-
description: "Create and modify film rolls",
|
|
8482
|
-
icon: "folder-plus"
|
|
8483
|
-
},
|
|
8484
8476
|
profile: {
|
|
8485
8477
|
scope: "profile",
|
|
8486
8478
|
name: "View Profile",
|
|
8487
8479
|
description: "Access your name and email",
|
|
8488
8480
|
icon: "user"
|
|
8489
8481
|
},
|
|
8482
|
+
mcp: {
|
|
8483
|
+
scope: "mcp",
|
|
8484
|
+
name: "MCP Server Access",
|
|
8485
|
+
description: "Let an AI assistant read and act on your data through the MCP server",
|
|
8486
|
+
icon: "shield"
|
|
8487
|
+
},
|
|
8490
8488
|
admin: {
|
|
8491
8489
|
scope: "admin",
|
|
8492
8490
|
name: "Administrative Access",
|
|
@@ -9765,4 +9763,4 @@ export {
|
|
|
9765
9763
|
AuditLogService,
|
|
9766
9764
|
AuditLogModule
|
|
9767
9765
|
};
|
|
9768
|
-
//# sourceMappingURL=chunk-
|
|
9766
|
+
//# sourceMappingURL=chunk-2O3SFHQ7.mjs.map
|