@norbix.ai/react-redux 1.13.0 → 1.15.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 -5
- package/dist/index.cjs +32 -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 +32 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -552,11 +552,13 @@ 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`
|
|
558
|
-
| Connections | `useGetMarketplaceIntegrationsQuery`, `useGetMarketplaceIntegrationQuery`, `useSaveMarketplaceIntegrationMutation`, `useDeleteMarketplaceIntegrationMutation`, `useEnableMarketplaceIntegrationMutation`, `useDisableMarketplaceIntegrationMutation`, `useReplaceMarketplaceIntegrationSecretsMutation`, `useRevealMarketplaceIntegrationSecretsMutation`, `useSetMarketplaceIntegrationTokenMappingsMutation`, `useTestMarketplaceIntegrationMutation`, `useGetMarketplaceFunctionCatalogQuery` | `INTEGRATIONS`, `<integrationViewId>`, `CATALOG:<integrationViewId
|
|
559
|
-
|
|
|
555
|
+
| Area | Hooks | Cache tag (`CodeMarketplace/…`) |
|
|
556
|
+
| ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
557
|
+
| Catalog | `useGetMarketplaceListingsQuery`, `useGetMarketplaceListingQuery`, `useGetMarketplaceListingFunctionTokensQuery` | provides `LISTINGS` |
|
|
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
|
+
| 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
|
+
| Functions | `useGetMarketplaceFunctionsQuery`, `useGetMarketplaceFunctionQuery`, `useSaveMarketplaceFunctionMutation`, `useDeleteMarketplaceFunctionMutation`, `useEnableMarketplaceFunctionMutation`, `useDisableMarketplaceFunctionMutation`, `useGetMarketplaceFunctionTokensQuery`, `useInvokeMarketplaceFunctionMutation`, `useGetMarketplaceFunctionRunsQuery` | `FUNCTIONS:<integrationViewId>`, `<functionViewId>`, `RUNS`; invoke touches nothing |
|
|
560
562
|
|
|
561
563
|
Revealing secrets is a mutation on purpose: a query would keep the clear values
|
|
562
564
|
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) }
|
|
@@ -1569,7 +1570,9 @@ var hubCodeMarketplace = (b) => {
|
|
|
1569
1570
|
query: (args) => (norbix) => callHC(norbix).deleteMarketplaceIntegration(args),
|
|
1570
1571
|
invalidatesTags: (_res, _err, arg) => [
|
|
1571
1572
|
...integration(arg),
|
|
1572
|
-
{ type: T, id: `FUNCTIONS:${integrationId(arg)}` }
|
|
1573
|
+
{ type: T, id: `FUNCTIONS:${integrationId(arg)}` },
|
|
1574
|
+
{ type: T, id: `TOOLS:${integrationId(arg)}` },
|
|
1575
|
+
access(arg)
|
|
1573
1576
|
]
|
|
1574
1577
|
}),
|
|
1575
1578
|
enableMarketplaceIntegration: b.mutation({
|
|
@@ -1593,12 +1596,37 @@ var hubCodeMarketplace = (b) => {
|
|
|
1593
1596
|
}),
|
|
1594
1597
|
testMarketplaceIntegration: b.mutation({
|
|
1595
1598
|
query: (args) => (norbix) => callHC(norbix).testMarketplaceIntegration(args),
|
|
1596
|
-
invalidatesTags: (_res, _err, arg) => [
|
|
1599
|
+
invalidatesTags: (_res, _err, arg) => [
|
|
1600
|
+
{ type: T, id: integrationId(arg) },
|
|
1601
|
+
{ type: T, id: `TOOLS:${integrationId(arg)}` },
|
|
1602
|
+
access(arg)
|
|
1603
|
+
]
|
|
1597
1604
|
}),
|
|
1598
1605
|
getMarketplaceFunctionCatalog: b.query({
|
|
1599
1606
|
query: (args) => (norbix) => callHC(norbix).getMarketplaceFunctionCatalog(args),
|
|
1600
1607
|
providesTags: (_res, _err, arg) => [{ type: T, id: `CATALOG:${integrationId(arg)}` }]
|
|
1601
1608
|
}),
|
|
1609
|
+
getMarketplaceIntegrationTools: b.query({
|
|
1610
|
+
query: (args) => (norbix) => callHC(norbix).getMarketplaceIntegrationTools(args),
|
|
1611
|
+
providesTags: (_res, _err, arg) => [{ type: T, id: `TOOLS:${integrationId(arg)}` }]
|
|
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
|
+
}),
|
|
1602
1630
|
// ---- Functions on a connection ----
|
|
1603
1631
|
getMarketplaceFunctions: b.query({
|
|
1604
1632
|
query: (args) => (norbix) => callHC(norbix).getMarketplaceFunctions(args),
|
|
@@ -1610,11 +1638,11 @@ var hubCodeMarketplace = (b) => {
|
|
|
1610
1638
|
}),
|
|
1611
1639
|
saveMarketplaceFunction: b.mutation({
|
|
1612
1640
|
query: (args) => (norbix) => callHC(norbix).saveMarketplaceFunction(args),
|
|
1613
|
-
invalidatesTags: (_res, _err, arg) => functions(arg)
|
|
1641
|
+
invalidatesTags: (_res, _err, arg) => [...functions(arg), access(arg)]
|
|
1614
1642
|
}),
|
|
1615
1643
|
deleteMarketplaceFunction: b.mutation({
|
|
1616
1644
|
query: (args) => (norbix) => callHC(norbix).deleteMarketplaceFunction(args),
|
|
1617
|
-
invalidatesTags: (_res, _err, arg) => functions(arg)
|
|
1645
|
+
invalidatesTags: (_res, _err, arg) => [...functions(arg), access(arg)]
|
|
1618
1646
|
}),
|
|
1619
1647
|
enableMarketplaceFunction: b.mutation({
|
|
1620
1648
|
query: (args) => (norbix) => callHC(norbix).enableMarketplaceFunction(args),
|