@norbix.ai/react-redux 1.14.0 → 1.16.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/README.md +7 -4
- package/dist/index.cjs +30 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +30 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -552,11 +552,14 @@ listings, the installed connections (`int_…`) with their secrets, token
|
|
|
552
552
|
mappings and validation test, the vendor function catalog, and the functions
|
|
553
553
|
added on a connection (`func_…`). Every tag is of type `CodeMarketplace`.
|
|
554
554
|
|
|
555
|
-
| Area | Hooks
|
|
556
|
-
| ----------- |
|
|
557
|
-
| Catalog | `useGetMarketplaceListingsQuery`, `useGetMarketplaceListingQuery`, `useGetMarketplaceListingFunctionTokensQuery`
|
|
555
|
+
| Area | Hooks | Cache tag (`CodeMarketplace/…`) |
|
|
556
|
+
| ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
557
|
+
| Catalog | `useGetMarketplaceListingsQuery`, `useGetMarketplaceListingQuery`, `useGetMarketplaceListingFunctionTokensQuery` | provides `LISTINGS` |
|
|
558
558
|
| Connections | `useGetMarketplaceIntegrationsQuery`, `useGetMarketplaceIntegrationQuery`, `useSaveMarketplaceIntegrationMutation`, `useDeleteMarketplaceIntegrationMutation`, `useEnableMarketplaceIntegrationMutation`, `useDisableMarketplaceIntegrationMutation`, `useReplaceMarketplaceIntegrationSecretsMutation`, `useRevealMarketplaceIntegrationSecretsMutation`, `useSetMarketplaceIntegrationTokenMappingsMutation`, `useTestMarketplaceIntegrationMutation`, `useGetMarketplaceFunctionCatalogQuery`, `useGetMarketplaceIntegrationToolsQuery` (the stored MCP tool catalog of an MCP connection, core SDK 4.23.0+) | `INTEGRATIONS`, `<integrationViewId>`, `CATALOG:<integrationViewId>`, `TOOLS:<integrationViewId>` (test and delete invalidate it); reveal touches nothing |
|
|
559
|
-
|
|
|
559
|
+
| Access | `useGetMarketplaceIntegrationAccessQuery` (the access matrix of a connection: roles, packages, tools, functions), `useSetMarketplaceIntegrationRoleAccessMutation` (a role's package + Manage), `useSaveMarketplaceIntegrationCustomAccessMutation` (a custom policy for one role) — core SDK 4.24.0+ | `ACCESS:<integrationViewId>`; the two writes invalidate only that connection's matrix, and so do test, delete, function save and function delete |
|
|
560
|
+
| Sign-in | `useStartMarketplaceIntegrationSignInMutation` (OAuth sign-in of an MCP connection: open `authorizeUrl`; core SDK 4.24.0+) | invalidates nothing — read the connection again (`signedIn`) after the person returns |
|
|
561
|
+
| Sign-out | `useSignOutMarketplaceIntegrationMutation` (OAuth sign-out of an MCP connection: `wasSignedIn`, `revoke`; core SDK 4.25.0+) | invalidates `<integrationViewId>` and `ACCESS:<integrationViewId>` of that connection |
|
|
562
|
+
| Functions | `useGetMarketplaceFunctionsQuery`, `useGetMarketplaceFunctionQuery`, `useSaveMarketplaceFunctionMutation`, `useDeleteMarketplaceFunctionMutation`, `useEnableMarketplaceFunctionMutation`, `useDisableMarketplaceFunctionMutation`, `useGetMarketplaceFunctionTokensQuery`, `useInvokeMarketplaceFunctionMutation`, `useGetMarketplaceFunctionRunsQuery` | `FUNCTIONS:<integrationViewId>`, `<functionViewId>`, `RUNS`; invoke touches nothing |
|
|
560
563
|
|
|
561
564
|
Revealing secrets is a mutation on purpose: a query would keep the clear values
|
|
562
565
|
in the store's cache.
|
package/dist/index.cjs
CHANGED
|
@@ -1534,6 +1534,7 @@ var hubCodeMarketplace = (b) => {
|
|
|
1534
1534
|
{ type: T, id: "INTEGRATIONS" },
|
|
1535
1535
|
{ type: T, id: integrationId(arg) }
|
|
1536
1536
|
];
|
|
1537
|
+
const access = (arg) => ({ type: T, id: `ACCESS:${integrationId(arg)}` });
|
|
1537
1538
|
const functions = (arg) => [
|
|
1538
1539
|
{ type: T, id: `FUNCTIONS:${integrationId(arg)}` },
|
|
1539
1540
|
{ type: T, id: functionId(arg) }
|
|
@@ -1570,7 +1571,8 @@ var hubCodeMarketplace = (b) => {
|
|
|
1570
1571
|
invalidatesTags: (_res, _err, arg) => [
|
|
1571
1572
|
...integration(arg),
|
|
1572
1573
|
{ type: T, id: `FUNCTIONS:${integrationId(arg)}` },
|
|
1573
|
-
{ type: T, id: `TOOLS:${integrationId(arg)}` }
|
|
1574
|
+
{ type: T, id: `TOOLS:${integrationId(arg)}` },
|
|
1575
|
+
access(arg)
|
|
1574
1576
|
]
|
|
1575
1577
|
}),
|
|
1576
1578
|
enableMarketplaceIntegration: b.mutation({
|
|
@@ -1596,7 +1598,8 @@ var hubCodeMarketplace = (b) => {
|
|
|
1596
1598
|
query: (args) => (norbix) => callHC(norbix).testMarketplaceIntegration(args),
|
|
1597
1599
|
invalidatesTags: (_res, _err, arg) => [
|
|
1598
1600
|
{ type: T, id: integrationId(arg) },
|
|
1599
|
-
{ type: T, id: `TOOLS:${integrationId(arg)}` }
|
|
1601
|
+
{ type: T, id: `TOOLS:${integrationId(arg)}` },
|
|
1602
|
+
access(arg)
|
|
1600
1603
|
]
|
|
1601
1604
|
}),
|
|
1602
1605
|
getMarketplaceFunctionCatalog: b.query({
|
|
@@ -1607,6 +1610,29 @@ var hubCodeMarketplace = (b) => {
|
|
|
1607
1610
|
query: (args) => (norbix) => callHC(norbix).getMarketplaceIntegrationTools(args),
|
|
1608
1611
|
providesTags: (_res, _err, arg) => [{ type: T, id: `TOOLS:${integrationId(arg)}` }]
|
|
1609
1612
|
}),
|
|
1613
|
+
// ---- Access (core SDK 4.24.0) ----
|
|
1614
|
+
getMarketplaceIntegrationAccess: b.query({
|
|
1615
|
+
query: (args) => (norbix) => callHC(norbix).getMarketplaceIntegrationAccess(args),
|
|
1616
|
+
providesTags: (_res, _err, arg) => [access(arg)]
|
|
1617
|
+
}),
|
|
1618
|
+
setMarketplaceIntegrationRoleAccess: b.mutation({
|
|
1619
|
+
query: (args) => (norbix) => callHC(norbix).setMarketplaceIntegrationRoleAccess(args),
|
|
1620
|
+
invalidatesTags: (_res, _err, arg) => [access(arg)]
|
|
1621
|
+
}),
|
|
1622
|
+
saveMarketplaceIntegrationCustomAccess: b.mutation({
|
|
1623
|
+
query: (args) => (norbix) => callHC(norbix).saveMarketplaceIntegrationCustomAccess(args),
|
|
1624
|
+
invalidatesTags: (_res, _err, arg) => [access(arg)]
|
|
1625
|
+
}),
|
|
1626
|
+
// ---- OAuth sign-in (core SDK 4.24.0) ----
|
|
1627
|
+
startMarketplaceIntegrationSignIn: b.mutation({
|
|
1628
|
+
query: (args) => (norbix) => callHC(norbix).startMarketplaceIntegrationSignIn(args)
|
|
1629
|
+
}),
|
|
1630
|
+
// Sign-out (route 30, core SDK 4.25.0) changes the connection at once (`signedIn` false)
|
|
1631
|
+
// and its access (the connection's MCP tools are no longer reachable).
|
|
1632
|
+
signOutMarketplaceIntegration: b.mutation({
|
|
1633
|
+
query: (args) => (norbix) => callHC(norbix).signOutMarketplaceIntegration(args),
|
|
1634
|
+
invalidatesTags: (_res, _err, arg) => [{ type: T, id: integrationId(arg) }, access(arg)]
|
|
1635
|
+
}),
|
|
1610
1636
|
// ---- Functions on a connection ----
|
|
1611
1637
|
getMarketplaceFunctions: b.query({
|
|
1612
1638
|
query: (args) => (norbix) => callHC(norbix).getMarketplaceFunctions(args),
|
|
@@ -1618,11 +1644,11 @@ var hubCodeMarketplace = (b) => {
|
|
|
1618
1644
|
}),
|
|
1619
1645
|
saveMarketplaceFunction: b.mutation({
|
|
1620
1646
|
query: (args) => (norbix) => callHC(norbix).saveMarketplaceFunction(args),
|
|
1621
|
-
invalidatesTags: (_res, _err, arg) => functions(arg)
|
|
1647
|
+
invalidatesTags: (_res, _err, arg) => [...functions(arg), access(arg)]
|
|
1622
1648
|
}),
|
|
1623
1649
|
deleteMarketplaceFunction: b.mutation({
|
|
1624
1650
|
query: (args) => (norbix) => callHC(norbix).deleteMarketplaceFunction(args),
|
|
1625
|
-
invalidatesTags: (_res, _err, arg) => functions(arg)
|
|
1651
|
+
invalidatesTags: (_res, _err, arg) => [...functions(arg), access(arg)]
|
|
1626
1652
|
}),
|
|
1627
1653
|
enableMarketplaceFunction: b.mutation({
|
|
1628
1654
|
query: (args) => (norbix) => callHC(norbix).enableMarketplaceFunction(args),
|