@norbix.ai/react-redux 1.3.0 → 1.4.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/index.cjs CHANGED
@@ -65,6 +65,74 @@ function createNorbixBaseQuery(getClient) {
65
65
  };
66
66
  }
67
67
 
68
+ // src/hooks/api/ai.ts
69
+ var apiAi = (b) => ({
70
+ getEndUserChatAvailability: b.query({
71
+ query: (args) => (norbix) => norbix.api.ai.getEndUserChatAvailability(args),
72
+ providesTags: ["AiChat"]
73
+ }),
74
+ listEndUserChatSessions: b.query({
75
+ query: (args) => (norbix) => norbix.api.ai.listEndUserChatSessions(args),
76
+ providesTags: ["AiChat"]
77
+ }),
78
+ createEndUserChatSession: b.mutation({
79
+ query: (args) => (norbix) => norbix.api.ai.createEndUserChatSession(args),
80
+ invalidatesTags: ["AiChat"]
81
+ }),
82
+ getEndUserChatSession: b.query({
83
+ query: (args) => (norbix) => norbix.api.ai.getEndUserChatSession(args),
84
+ providesTags: ["AiChat"]
85
+ }),
86
+ renameEndUserChatSession: b.mutation({
87
+ query: (args) => (norbix) => norbix.api.ai.renameEndUserChatSession(args),
88
+ invalidatesTags: ["AiChat"]
89
+ }),
90
+ deleteEndUserChatSession: b.mutation({
91
+ query: (args) => (norbix) => norbix.api.ai.deleteEndUserChatSession(args),
92
+ invalidatesTags: ["AiChat"]
93
+ }),
94
+ pinEndUserChatSession: b.mutation({
95
+ query: (args) => (norbix) => norbix.api.ai.pinEndUserChatSession(args),
96
+ invalidatesTags: ["AiChat"]
97
+ }),
98
+ archiveEndUserChatSession: b.mutation({
99
+ query: (args) => (norbix) => norbix.api.ai.archiveEndUserChatSession(args),
100
+ invalidatesTags: ["AiChat"]
101
+ }),
102
+ getEndUserChatEntries: b.query({
103
+ query: (args) => (norbix) => norbix.api.ai.getEndUserChatEntries(args),
104
+ providesTags: ["AiChat"]
105
+ }),
106
+ setEndUserChatEntryFeedback: b.mutation({
107
+ query: (args) => (norbix) => norbix.api.ai.setEndUserChatEntryFeedback(args),
108
+ invalidatesTags: ["AiChat"]
109
+ }),
110
+ listEndUserChatAttachments: b.query({
111
+ query: (args) => (norbix) => norbix.api.ai.listEndUserChatAttachments(args),
112
+ providesTags: ["AiChat"]
113
+ }),
114
+ uploadEndUserChatAttachment: b.mutation({
115
+ query: (args) => (norbix) => norbix.api.ai.uploadEndUserChatAttachment(args),
116
+ invalidatesTags: ["AiChat"]
117
+ }),
118
+ deleteEndUserChatAttachment: b.mutation({
119
+ query: (args) => (norbix) => norbix.api.ai.deleteEndUserChatAttachment(args),
120
+ invalidatesTags: ["AiChat"]
121
+ }),
122
+ listEndUserChatMemory: b.query({
123
+ query: (args) => (norbix) => norbix.api.ai.listEndUserChatMemory(args),
124
+ providesTags: ["AiChat"]
125
+ }),
126
+ forgetEndUserChatMemory: b.mutation({
127
+ query: (args) => (norbix) => norbix.api.ai.forgetEndUserChatMemory(args),
128
+ invalidatesTags: ["AiChat"]
129
+ }),
130
+ startEndUserChatTurn: b.mutation({
131
+ query: (args) => (norbix) => norbix.api.ai.startEndUserChatTurn(args),
132
+ invalidatesTags: ["AiChat"]
133
+ })
134
+ });
135
+
68
136
  // src/hooks/api/apikeys.ts
69
137
  var apiApikeys = (b) => ({
70
138
  getApiKeys: b.query({
@@ -623,6 +691,34 @@ var hubAccount = (b) => ({
623
691
  getLicenses: b.query({
624
692
  query: (args) => (norbix) => norbix.hub.account.getLicenses(args),
625
693
  providesTags: ["Billing"]
694
+ }),
695
+ getProjectAiSettings: b.query({
696
+ query: (args) => (norbix) => norbix.hub.account.getProjectAiSettings(args),
697
+ providesTags: ["Projects"]
698
+ }),
699
+ updateProjectAiSettings: b.mutation({
700
+ query: (args) => (norbix) => norbix.hub.account.updateProjectAiSettings(args),
701
+ invalidatesTags: ["Projects"]
702
+ }),
703
+ createProjectAiAssistant: b.mutation({
704
+ query: (args) => (norbix) => norbix.hub.account.createProjectAiAssistant(args),
705
+ invalidatesTags: ["Projects"]
706
+ }),
707
+ updateProjectAiAssistant: b.mutation({
708
+ query: (args) => (norbix) => norbix.hub.account.updateProjectAiAssistant(args),
709
+ invalidatesTags: ["Projects"]
710
+ }),
711
+ deleteProjectAiAssistant: b.mutation({
712
+ query: (args) => (norbix) => norbix.hub.account.deleteProjectAiAssistant(args),
713
+ invalidatesTags: ["Projects"]
714
+ }),
715
+ getProjectAiUsage: b.query({
716
+ query: (args) => (norbix) => norbix.hub.account.getProjectAiUsage(args),
717
+ providesTags: ["Projects"]
718
+ }),
719
+ setAdminPortalEnabled: b.mutation({
720
+ query: (args) => (norbix) => norbix.hub.account.setAdminPortalEnabled(args),
721
+ invalidatesTags: ["Projects"]
626
722
  })
627
723
  });
628
724
 
@@ -683,6 +779,30 @@ var hubAi = (b) => ({
683
779
  testMcpIntegration: b.mutation({
684
780
  query: (args) => (norbix) => norbix.hub.ai.testMcpIntegration(args),
685
781
  invalidatesTags: ["Ai"]
782
+ }),
783
+ getEmbeddingIntegrations: b.query({
784
+ query: (args) => (norbix) => norbix.hub.ai.getEmbeddingIntegrations(args),
785
+ providesTags: ["Ai"]
786
+ }),
787
+ saveEmbeddingIntegration: b.mutation({
788
+ query: (args) => (norbix) => norbix.hub.ai.saveEmbeddingIntegration(args),
789
+ invalidatesTags: ["Ai"]
790
+ }),
791
+ getEmbeddingIntegration: b.query({
792
+ query: (args) => (norbix) => norbix.hub.ai.getEmbeddingIntegration(args),
793
+ providesTags: ["Ai"]
794
+ }),
795
+ deleteEmbeddingIntegration: b.mutation({
796
+ query: (args) => (norbix) => norbix.hub.ai.deleteEmbeddingIntegration(args),
797
+ invalidatesTags: ["Ai"]
798
+ }),
799
+ testEmbeddingIntegration: b.mutation({
800
+ query: (args) => (norbix) => norbix.hub.ai.testEmbeddingIntegration(args),
801
+ invalidatesTags: ["Ai"]
802
+ }),
803
+ setLlmIntegrationAsDefault: b.mutation({
804
+ query: (args) => (norbix) => norbix.hub.ai.setLlmIntegrationAsDefault(args),
805
+ invalidatesTags: ["Ai"]
686
806
  })
687
807
  });
688
808
 
@@ -1360,10 +1480,6 @@ var hubNotifications = (b) => ({
1360
1480
  query: (args) => (norbix) => norbix.hub.notifications.previewEmailNotification(args),
1361
1481
  providesTags: ["Emails"]
1362
1482
  }),
1363
- getEmailCampaignMessage: b.query({
1364
- query: (args) => (norbix) => norbix.hub.notifications.getEmailCampaignMessage(args),
1365
- providesTags: ["EmailCampaigns"]
1366
- }),
1367
1483
  getEmailCampaignMessages: b.query({
1368
1484
  query: (args) => (norbix) => norbix.hub.notifications.getEmailCampaignMessages(args),
1369
1485
  providesTags: ["EmailCampaigns"]
@@ -1488,10 +1604,6 @@ var hubNotifications = (b) => ({
1488
1604
  query: (args) => (norbix) => norbix.hub.notifications.previewSmsNotification(args),
1489
1605
  providesTags: ["Sms"]
1490
1606
  }),
1491
- getSmsCampaignMessage: b.query({
1492
- query: (args) => (norbix) => norbix.hub.notifications.getSmsCampaignMessage(args),
1493
- providesTags: ["SmsCampaigns"]
1494
- }),
1495
1607
  getSmsCampaignMessages: b.query({
1496
1608
  query: (args) => (norbix) => norbix.hub.notifications.getSmsCampaignMessages(args),
1497
1609
  providesTags: ["SmsCampaigns"]
@@ -1598,10 +1710,6 @@ var hubNotifications = (b) => ({
1598
1710
  query: (args) => (norbix) => norbix.hub.notifications.testPushIntegration(args),
1599
1711
  invalidatesTags: ["PushIntegrations"]
1600
1712
  }),
1601
- registerCodeMashAppPushIntegration: b.mutation({
1602
- query: (args) => (norbix) => norbix.hub.notifications.registerCodeMashAppPushIntegration(args),
1603
- invalidatesTags: ["PushIntegrations"]
1604
- }),
1605
1713
  registerDevice: b.mutation({
1606
1714
  query: (args) => (norbix) => norbix.hub.notifications.registerDevice(args),
1607
1715
  invalidatesTags: ["Push"]
@@ -1642,10 +1750,6 @@ var hubNotifications = (b) => ({
1642
1750
  query: (args) => (norbix) => norbix.hub.notifications.previewPushNotification(args),
1643
1751
  providesTags: ["Push"]
1644
1752
  }),
1645
- getPushCampaignMessage: b.query({
1646
- query: (args) => (norbix) => norbix.hub.notifications.getPushCampaignMessage(args),
1647
- providesTags: ["PushCampaigns"]
1648
- }),
1649
1753
  getPushCampaignMessages: b.query({
1650
1754
  query: (args) => (norbix) => norbix.hub.notifications.getPushCampaignMessages(args),
1651
1755
  providesTags: ["PushCampaigns"]
@@ -1880,6 +1984,7 @@ var hubWebhooks = (b) => ({
1880
1984
  function buildEndpoints(builder) {
1881
1985
  return {
1882
1986
  // API surface (runtime, project-scoped)
1987
+ ...apiAi(builder),
1883
1988
  ...apiAuth(builder),
1884
1989
  ...apiMembership(builder),
1885
1990
  ...apiDatabase(builder),
@@ -1975,6 +2080,7 @@ function createNorbixApi(getClient, options = {}) {
1975
2080
  "PaymentCustomers",
1976
2081
  // AI
1977
2082
  "Ai",
2083
+ "AiChat",
1978
2084
  // Webhooks
1979
2085
  "Webhooks",
1980
2086
  // Contacts