@norbix.ai/react-redux 1.2.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/README.md +254 -120
- package/dist/index.cjs +140 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -6
- package/dist/index.d.ts +34 -6
- package/dist/index.js +140 -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,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,14 +1604,28 @@ 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"]
|
|
1498
1610
|
}),
|
|
1611
|
+
// Stops a scheduled or running campaign (cannot be undone). The campaign
|
|
1612
|
+
// and its lists change status, so the SmsCampaigns reads re-fetch.
|
|
1613
|
+
stopSmsCampaign: b.mutation({
|
|
1614
|
+
query: (args) => (norbix) => norbix.hub.notifications.stopSmsCampaign(args),
|
|
1615
|
+
invalidatesTags: ["SmsCampaigns"]
|
|
1616
|
+
}),
|
|
1617
|
+
// What disabling the SMS module would affect (running campaigns,
|
|
1618
|
+
// integrations) — read it before disableSms to warn the user.
|
|
1619
|
+
getSmsDisableDependencies: b.query({
|
|
1620
|
+
query: (args) => (norbix) => norbix.hub.notifications.getSmsDisableDependencies(args),
|
|
1621
|
+
providesTags: ["Sms"]
|
|
1622
|
+
}),
|
|
1623
|
+
// Renders a Razor SMS template with token values. It saves nothing, so it
|
|
1624
|
+
// invalidates nothing; it is a mutation only so a render is never served
|
|
1625
|
+
// from the cache (the same template code with other tokens is a new answer).
|
|
1626
|
+
renderSms: b.mutation({
|
|
1627
|
+
query: (args) => (norbix) => norbix.hub.notifications.renderSms(args)
|
|
1628
|
+
}),
|
|
1499
1629
|
disablePush: b.mutation({
|
|
1500
1630
|
query: (args) => (norbix) => norbix.hub.notifications.disablePush(args),
|
|
1501
1631
|
invalidatesTags: ["Push"]
|
|
@@ -1580,10 +1710,6 @@ var hubNotifications = (b) => ({
|
|
|
1580
1710
|
query: (args) => (norbix) => norbix.hub.notifications.testPushIntegration(args),
|
|
1581
1711
|
invalidatesTags: ["PushIntegrations"]
|
|
1582
1712
|
}),
|
|
1583
|
-
registerCodeMashAppPushIntegration: b.mutation({
|
|
1584
|
-
query: (args) => (norbix) => norbix.hub.notifications.registerCodeMashAppPushIntegration(args),
|
|
1585
|
-
invalidatesTags: ["PushIntegrations"]
|
|
1586
|
-
}),
|
|
1587
1713
|
registerDevice: b.mutation({
|
|
1588
1714
|
query: (args) => (norbix) => norbix.hub.notifications.registerDevice(args),
|
|
1589
1715
|
invalidatesTags: ["Push"]
|
|
@@ -1624,10 +1750,6 @@ var hubNotifications = (b) => ({
|
|
|
1624
1750
|
query: (args) => (norbix) => norbix.hub.notifications.previewPushNotification(args),
|
|
1625
1751
|
providesTags: ["Push"]
|
|
1626
1752
|
}),
|
|
1627
|
-
getPushCampaignMessage: b.query({
|
|
1628
|
-
query: (args) => (norbix) => norbix.hub.notifications.getPushCampaignMessage(args),
|
|
1629
|
-
providesTags: ["PushCampaigns"]
|
|
1630
|
-
}),
|
|
1631
1753
|
getPushCampaignMessages: b.query({
|
|
1632
1754
|
query: (args) => (norbix) => norbix.hub.notifications.getPushCampaignMessages(args),
|
|
1633
1755
|
providesTags: ["PushCampaigns"]
|
|
@@ -1862,6 +1984,7 @@ var hubWebhooks = (b) => ({
|
|
|
1862
1984
|
function buildEndpoints(builder) {
|
|
1863
1985
|
return {
|
|
1864
1986
|
// API surface (runtime, project-scoped)
|
|
1987
|
+
...apiAi(builder),
|
|
1865
1988
|
...apiAuth(builder),
|
|
1866
1989
|
...apiMembership(builder),
|
|
1867
1990
|
...apiDatabase(builder),
|
|
@@ -1957,6 +2080,7 @@ function createNorbixApi(getClient, options = {}) {
|
|
|
1957
2080
|
"PaymentCustomers",
|
|
1958
2081
|
// AI
|
|
1959
2082
|
"Ai",
|
|
2083
|
+
"AiChat",
|
|
1960
2084
|
// Webhooks
|
|
1961
2085
|
"Webhooks",
|
|
1962
2086
|
// Contacts
|