@norbix.ai/react-redux 1.15.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 CHANGED
@@ -558,6 +558,7 @@ added on a connection (`func_…`). Every tag is of type `CodeMarketplace`.
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
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 |
561
562
  | Functions | `useGetMarketplaceFunctionsQuery`, `useGetMarketplaceFunctionQuery`, `useSaveMarketplaceFunctionMutation`, `useDeleteMarketplaceFunctionMutation`, `useEnableMarketplaceFunctionMutation`, `useDisableMarketplaceFunctionMutation`, `useGetMarketplaceFunctionTokensQuery`, `useInvokeMarketplaceFunctionMutation`, `useGetMarketplaceFunctionRunsQuery` | `FUNCTIONS:<integrationViewId>`, `<functionViewId>`, `RUNS`; invoke touches nothing |
562
563
 
563
564
  Revealing secrets is a mutation on purpose: a query would keep the clear values
package/dist/index.cjs CHANGED
@@ -1627,6 +1627,12 @@ var hubCodeMarketplace = (b) => {
1627
1627
  startMarketplaceIntegrationSignIn: b.mutation({
1628
1628
  query: (args) => (norbix) => callHC(norbix).startMarketplaceIntegrationSignIn(args)
1629
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
+ }),
1630
1636
  // ---- Functions on a connection ----
1631
1637
  getMarketplaceFunctions: b.query({
1632
1638
  query: (args) => (norbix) => callHC(norbix).getMarketplaceFunctions(args),