@norbix.ai/react-redux 1.3.0 → 1.5.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 +276 -127
- package/dist/index.cjs +162 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +41 -6
- package/dist/index.d.ts +41 -6
- package/dist/index.js +162 -16
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
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,74 @@ 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"]
|
|
722
|
+
}),
|
|
723
|
+
updateProjectAdminUrl: b.mutation({
|
|
724
|
+
query: (args) => (norbix) => norbix.hub.account.updateProjectAdminUrl(args),
|
|
725
|
+
invalidatesTags: ["Projects"]
|
|
726
|
+
}),
|
|
727
|
+
updateProjectLegalDocuments: b.mutation({
|
|
728
|
+
query: (args) => (norbix) => norbix.hub.account.updateProjectLegalDocuments(args),
|
|
729
|
+
invalidatesTags: ["Projects"]
|
|
730
|
+
}),
|
|
731
|
+
updateProjectExposeLegal: b.mutation({
|
|
732
|
+
query: (args) => (norbix) => norbix.hub.account.updateProjectExposeLegal(args),
|
|
733
|
+
invalidatesTags: ["Projects"]
|
|
734
|
+
}),
|
|
735
|
+
getAdminPortalStructure: b.query({
|
|
736
|
+
query: (args) => (norbix) => norbix.hub.account.getAdminPortalStructure(args),
|
|
737
|
+
providesTags: ["Projects"]
|
|
738
|
+
}),
|
|
739
|
+
assignAdminPortalServiceUser: b.mutation({
|
|
740
|
+
query: (args) => (norbix) => norbix.hub.account.assignAdminPortalServiceUser(args),
|
|
741
|
+
invalidatesTags: ["Projects"]
|
|
742
|
+
}),
|
|
743
|
+
createAiServiceUser: b.mutation({
|
|
744
|
+
query: (args) => (norbix) => norbix.hub.account.createAiServiceUser(args),
|
|
745
|
+
invalidatesTags: ["Projects"]
|
|
746
|
+
}),
|
|
747
|
+
listAiServiceUsers: b.query({
|
|
748
|
+
query: (args) => (norbix) => norbix.hub.account.listAiServiceUsers(args),
|
|
749
|
+
providesTags: ["Projects"]
|
|
750
|
+
}),
|
|
751
|
+
deleteAiServiceUser: b.mutation({
|
|
752
|
+
query: (args) => (norbix) => norbix.hub.account.deleteAiServiceUser(args),
|
|
753
|
+
invalidatesTags: ["Projects"]
|
|
754
|
+
}),
|
|
755
|
+
rotateAiServiceUserKey: b.mutation({
|
|
756
|
+
query: (args) => (norbix) => norbix.hub.account.rotateAiServiceUserKey(args),
|
|
757
|
+
invalidatesTags: ["Projects"]
|
|
758
|
+
}),
|
|
759
|
+
revokeAiServiceUserKey: b.mutation({
|
|
760
|
+
query: (args) => (norbix) => norbix.hub.account.revokeAiServiceUserKey(args),
|
|
761
|
+
invalidatesTags: ["Projects"]
|
|
626
762
|
})
|
|
627
763
|
});
|
|
628
764
|
|
|
@@ -683,6 +819,30 @@ var hubAi = (b) => ({
|
|
|
683
819
|
testMcpIntegration: b.mutation({
|
|
684
820
|
query: (args) => (norbix) => norbix.hub.ai.testMcpIntegration(args),
|
|
685
821
|
invalidatesTags: ["Ai"]
|
|
822
|
+
}),
|
|
823
|
+
getEmbeddingIntegrations: b.query({
|
|
824
|
+
query: (args) => (norbix) => norbix.hub.ai.getEmbeddingIntegrations(args),
|
|
825
|
+
providesTags: ["Ai"]
|
|
826
|
+
}),
|
|
827
|
+
saveEmbeddingIntegration: b.mutation({
|
|
828
|
+
query: (args) => (norbix) => norbix.hub.ai.saveEmbeddingIntegration(args),
|
|
829
|
+
invalidatesTags: ["Ai"]
|
|
830
|
+
}),
|
|
831
|
+
getEmbeddingIntegration: b.query({
|
|
832
|
+
query: (args) => (norbix) => norbix.hub.ai.getEmbeddingIntegration(args),
|
|
833
|
+
providesTags: ["Ai"]
|
|
834
|
+
}),
|
|
835
|
+
deleteEmbeddingIntegration: b.mutation({
|
|
836
|
+
query: (args) => (norbix) => norbix.hub.ai.deleteEmbeddingIntegration(args),
|
|
837
|
+
invalidatesTags: ["Ai"]
|
|
838
|
+
}),
|
|
839
|
+
testEmbeddingIntegration: b.mutation({
|
|
840
|
+
query: (args) => (norbix) => norbix.hub.ai.testEmbeddingIntegration(args),
|
|
841
|
+
invalidatesTags: ["Ai"]
|
|
842
|
+
}),
|
|
843
|
+
setLlmIntegrationAsDefault: b.mutation({
|
|
844
|
+
query: (args) => (norbix) => norbix.hub.ai.setLlmIntegrationAsDefault(args),
|
|
845
|
+
invalidatesTags: ["Ai"]
|
|
686
846
|
})
|
|
687
847
|
});
|
|
688
848
|
|
|
@@ -1360,10 +1520,6 @@ var hubNotifications = (b) => ({
|
|
|
1360
1520
|
query: (args) => (norbix) => norbix.hub.notifications.previewEmailNotification(args),
|
|
1361
1521
|
providesTags: ["Emails"]
|
|
1362
1522
|
}),
|
|
1363
|
-
getEmailCampaignMessage: b.query({
|
|
1364
|
-
query: (args) => (norbix) => norbix.hub.notifications.getEmailCampaignMessage(args),
|
|
1365
|
-
providesTags: ["EmailCampaigns"]
|
|
1366
|
-
}),
|
|
1367
1523
|
getEmailCampaignMessages: b.query({
|
|
1368
1524
|
query: (args) => (norbix) => norbix.hub.notifications.getEmailCampaignMessages(args),
|
|
1369
1525
|
providesTags: ["EmailCampaigns"]
|
|
@@ -1488,10 +1644,6 @@ var hubNotifications = (b) => ({
|
|
|
1488
1644
|
query: (args) => (norbix) => norbix.hub.notifications.previewSmsNotification(args),
|
|
1489
1645
|
providesTags: ["Sms"]
|
|
1490
1646
|
}),
|
|
1491
|
-
getSmsCampaignMessage: b.query({
|
|
1492
|
-
query: (args) => (norbix) => norbix.hub.notifications.getSmsCampaignMessage(args),
|
|
1493
|
-
providesTags: ["SmsCampaigns"]
|
|
1494
|
-
}),
|
|
1495
1647
|
getSmsCampaignMessages: b.query({
|
|
1496
1648
|
query: (args) => (norbix) => norbix.hub.notifications.getSmsCampaignMessages(args),
|
|
1497
1649
|
providesTags: ["SmsCampaigns"]
|
|
@@ -1598,10 +1750,6 @@ var hubNotifications = (b) => ({
|
|
|
1598
1750
|
query: (args) => (norbix) => norbix.hub.notifications.testPushIntegration(args),
|
|
1599
1751
|
invalidatesTags: ["PushIntegrations"]
|
|
1600
1752
|
}),
|
|
1601
|
-
registerCodeMashAppPushIntegration: b.mutation({
|
|
1602
|
-
query: (args) => (norbix) => norbix.hub.notifications.registerCodeMashAppPushIntegration(args),
|
|
1603
|
-
invalidatesTags: ["PushIntegrations"]
|
|
1604
|
-
}),
|
|
1605
1753
|
registerDevice: b.mutation({
|
|
1606
1754
|
query: (args) => (norbix) => norbix.hub.notifications.registerDevice(args),
|
|
1607
1755
|
invalidatesTags: ["Push"]
|
|
@@ -1642,10 +1790,6 @@ var hubNotifications = (b) => ({
|
|
|
1642
1790
|
query: (args) => (norbix) => norbix.hub.notifications.previewPushNotification(args),
|
|
1643
1791
|
providesTags: ["Push"]
|
|
1644
1792
|
}),
|
|
1645
|
-
getPushCampaignMessage: b.query({
|
|
1646
|
-
query: (args) => (norbix) => norbix.hub.notifications.getPushCampaignMessage(args),
|
|
1647
|
-
providesTags: ["PushCampaigns"]
|
|
1648
|
-
}),
|
|
1649
1793
|
getPushCampaignMessages: b.query({
|
|
1650
1794
|
query: (args) => (norbix) => norbix.hub.notifications.getPushCampaignMessages(args),
|
|
1651
1795
|
providesTags: ["PushCampaigns"]
|
|
@@ -1880,6 +2024,7 @@ var hubWebhooks = (b) => ({
|
|
|
1880
2024
|
function buildEndpoints(builder) {
|
|
1881
2025
|
return {
|
|
1882
2026
|
// API surface (runtime, project-scoped)
|
|
2027
|
+
...apiAi(builder),
|
|
1883
2028
|
...apiAuth(builder),
|
|
1884
2029
|
...apiMembership(builder),
|
|
1885
2030
|
...apiDatabase(builder),
|
|
@@ -1975,6 +2120,7 @@ function createNorbixApi(getClient, options = {}) {
|
|
|
1975
2120
|
"PaymentCustomers",
|
|
1976
2121
|
// AI
|
|
1977
2122
|
"Ai",
|
|
2123
|
+
"AiChat",
|
|
1978
2124
|
// Webhooks
|
|
1979
2125
|
"Webhooks",
|
|
1980
2126
|
// Contacts
|