@carlonicora/nextjs-jsonapi 3.23.0 → 3.24.1
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-7I7PL3KS.js} +19 -19
- package/dist/{BlockNoteEditor-BUSOUPQ7.js.map → BlockNoteEditor-7I7PL3KS.js.map} +1 -1
- package/dist/{BlockNoteEditor-W42IQTGL.mjs → BlockNoteEditor-BNS3U3CP.mjs} +4 -4
- package/dist/{BlockNoteViewer-FQ23TZ3J.mjs → BlockNoteViewer-THOJS3OG.mjs} +2 -2
- package/dist/{BlockNoteViewer-MCX53AR4.js → BlockNoteViewer-UCWWHBTZ.js} +3 -3
- package/dist/{BlockNoteViewer-MCX53AR4.js.map → BlockNoteViewer-UCWWHBTZ.js.map} +1 -1
- package/dist/billing/index.d.mts +57 -2
- package/dist/billing/index.d.ts +57 -2
- package/dist/billing/index.js +406 -401
- package/dist/billing/index.js.map +1 -1
- package/dist/billing/index.mjs +8 -3
- package/dist/{chunk-GFLEFIAW.mjs → chunk-6R45U3GH.mjs} +1401 -1178
- package/dist/chunk-6R45U3GH.mjs.map +1 -0
- package/dist/{chunk-FXWO5J2R.js → chunk-7EFTSFZO.js} +7 -7
- package/dist/{chunk-FXWO5J2R.js.map → chunk-7EFTSFZO.js.map} +1 -1
- package/dist/{chunk-VR65NRE4.js → chunk-7XD2BJN6.js} +1338 -1115
- package/dist/chunk-7XD2BJN6.js.map +1 -0
- package/dist/{chunk-YCHPWXHD.js → chunk-WRMTBKSN.js} +44 -40
- package/dist/chunk-WRMTBKSN.js.map +1 -0
- package/dist/{chunk-JZUBFAAY.mjs → chunk-Z7KPVKWV.mjs} +2 -2
- package/dist/{chunk-O5MKEU7G.mjs → chunk-ZE5ZUY6Y.mjs} +44 -40
- package/dist/chunk-ZE5ZUY6Y.mjs.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 +29 -7
- package/dist/core/index.d.ts +29 -7
- 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 +3 -4
- package/dist/index.d.ts +3 -4
- 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/{s3.service-DJHqEZAp.d.ts → s3.service-Bqr-fQmi.d.ts} +1 -0
- package/dist/{s3.service-DaRFLnrX.d.mts → s3.service-Buiy1ncj.d.mts} +1 -0
- package/dist/server/index.d.mts +1 -1
- package/dist/server/index.d.ts +1 -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/billing/stripe-customer/data/stripe-customer.service.ts +5 -0
- package/src/features/billing/stripe-subscription/components/index.ts +1 -0
- package/src/features/notification/contexts/NotificationContext.tsx +5 -2
- package/src/features/notification/contexts/__tests__/NotificationContext.spec.tsx +32 -0
- package/src/features/notification/data/notification.service.ts +6 -1
- 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-O5MKEU7G.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-BNS3U3CP.mjs.map} +0 -0
- /package/dist/{BlockNoteViewer-FQ23TZ3J.mjs.map → BlockNoteViewer-THOJS3OG.mjs.map} +0 -0
- /package/dist/{chunk-JZUBFAAY.mjs.map → chunk-Z7KPVKWV.mjs.map} +0 -0
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
AbstractService,
|
|
3
3
|
EndpointCreator,
|
|
4
4
|
Modules
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZE5ZUY6Y.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ENV,
|
|
8
8
|
setBootstrapper
|
|
@@ -291,4 +291,4 @@ export {
|
|
|
291
291
|
ACTION_TYPES,
|
|
292
292
|
RbacService
|
|
293
293
|
};
|
|
294
|
-
//# sourceMappingURL=chunk-
|
|
294
|
+
//# sourceMappingURL=chunk-Z7KPVKWV.mjs.map
|
|
@@ -3661,7 +3661,12 @@ var StripeCustomerService = class extends AbstractService {
|
|
|
3661
3661
|
return this.callApi({
|
|
3662
3662
|
type: Modules.StripeCustomer,
|
|
3663
3663
|
method: "GET" /* GET */,
|
|
3664
|
-
endpoint: endpoint.generate()
|
|
3664
|
+
endpoint: endpoint.generate(),
|
|
3665
|
+
// A 404 here means the company has no billing customer yet — an expected
|
|
3666
|
+
// state that BillingDashboardContainer turns into a setup prompt. Without
|
|
3667
|
+
// this, the global error handler swallows it and replaces the page with a
|
|
3668
|
+
// 404 screen.
|
|
3669
|
+
suppressGlobalError: true
|
|
3665
3670
|
});
|
|
3666
3671
|
}
|
|
3667
3672
|
/**
|
|
@@ -7525,7 +7530,8 @@ var NotificationService = class extends AbstractService {
|
|
|
7525
7530
|
type: Modules.Notification,
|
|
7526
7531
|
method: "GET" /* GET */,
|
|
7527
7532
|
endpoint: endpoint.generate(),
|
|
7528
|
-
next: params.next
|
|
7533
|
+
next: params.next,
|
|
7534
|
+
suppressGlobalError: params.suppressGlobalError
|
|
7529
7535
|
});
|
|
7530
7536
|
}
|
|
7531
7537
|
static async markAsRead(params) {
|
|
@@ -8284,6 +8290,33 @@ var OAuthClient = class extends AbstractApiData {
|
|
|
8284
8290
|
if (data.isActive !== void 0) response.data.attributes.isActive = data.isActive;
|
|
8285
8291
|
return response;
|
|
8286
8292
|
}
|
|
8293
|
+
/**
|
|
8294
|
+
* Body for POST /oauth/authorize/approve.
|
|
8295
|
+
* The authorize endpoints speak the RFC 6749 wire format (snake_case keys,
|
|
8296
|
+
* no JSON:API envelope), so this dedicated method owns that shape and the
|
|
8297
|
+
* service sends it with `overridesJsonApiCreation`.
|
|
8298
|
+
*/
|
|
8299
|
+
createApproveAuthorizationJsonApi(params) {
|
|
8300
|
+
return {
|
|
8301
|
+
client_id: params.clientId,
|
|
8302
|
+
redirect_uri: params.redirectUri,
|
|
8303
|
+
scope: params.scope,
|
|
8304
|
+
state: params.state,
|
|
8305
|
+
code_challenge: params.codeChallenge,
|
|
8306
|
+
code_challenge_method: params.codeChallengeMethod,
|
|
8307
|
+
company_id: params.companyId
|
|
8308
|
+
};
|
|
8309
|
+
}
|
|
8310
|
+
/**
|
|
8311
|
+
* Body for POST /oauth/authorize/deny (RFC 6749 wire format, see above).
|
|
8312
|
+
*/
|
|
8313
|
+
createDenyAuthorizationJsonApi(params) {
|
|
8314
|
+
return {
|
|
8315
|
+
client_id: params.clientId,
|
|
8316
|
+
redirect_uri: params.redirectUri,
|
|
8317
|
+
state: params.state
|
|
8318
|
+
};
|
|
8319
|
+
}
|
|
8287
8320
|
};
|
|
8288
8321
|
|
|
8289
8322
|
// src/features/oauth/oauth.module.ts
|
|
@@ -8407,14 +8440,7 @@ var OAuthService = class extends AbstractService {
|
|
|
8407
8440
|
type: Modules.OAuth,
|
|
8408
8441
|
method: "POST" /* POST */,
|
|
8409
8442
|
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
|
-
},
|
|
8443
|
+
input: new OAuthClient().createApproveAuthorizationJsonApi(params),
|
|
8418
8444
|
overridesJsonApiCreation: true
|
|
8419
8445
|
});
|
|
8420
8446
|
return {
|
|
@@ -8430,11 +8456,7 @@ var OAuthService = class extends AbstractService {
|
|
|
8430
8456
|
type: Modules.OAuth,
|
|
8431
8457
|
method: "POST" /* POST */,
|
|
8432
8458
|
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
|
-
},
|
|
8459
|
+
input: new OAuthClient().createDenyAuthorizationJsonApi(params),
|
|
8438
8460
|
overridesJsonApiCreation: true
|
|
8439
8461
|
});
|
|
8440
8462
|
return {
|
|
@@ -8457,36 +8479,18 @@ var OAUTH_SCOPE_DISPLAY = {
|
|
|
8457
8479
|
description: "Write access to your data",
|
|
8458
8480
|
icon: "pencil"
|
|
8459
8481
|
},
|
|
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
8482
|
profile: {
|
|
8485
8483
|
scope: "profile",
|
|
8486
8484
|
name: "View Profile",
|
|
8487
8485
|
description: "Access your name and email",
|
|
8488
8486
|
icon: "user"
|
|
8489
8487
|
},
|
|
8488
|
+
mcp: {
|
|
8489
|
+
scope: "mcp",
|
|
8490
|
+
name: "MCP Server Access",
|
|
8491
|
+
description: "Let an AI assistant read and act on your data through the MCP server",
|
|
8492
|
+
icon: "shield"
|
|
8493
|
+
},
|
|
8490
8494
|
admin: {
|
|
8491
8495
|
scope: "admin",
|
|
8492
8496
|
name: "Administrative Access",
|
|
@@ -9765,4 +9769,4 @@ export {
|
|
|
9765
9769
|
AuditLogService,
|
|
9766
9770
|
AuditLogModule
|
|
9767
9771
|
};
|
|
9768
|
-
//# sourceMappingURL=chunk-
|
|
9772
|
+
//# sourceMappingURL=chunk-ZE5ZUY6Y.mjs.map
|