@manta-eu/client 0.1.10 → 0.2.1
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/generated/graphql.d.ts +847 -306
- package/dist/generated/graphql.d.ts.map +1 -1
- package/dist/generated/graphql.js +457 -152
- package/dist/generated/graphql.js.map +1 -1
- package/dist/shared/chat-manager.d.ts +4 -0
- package/dist/shared/chat-manager.d.ts.map +1 -1
- package/dist/shared/chat-manager.js +2 -0
- package/dist/shared/chat-manager.js.map +1 -1
- package/dist/shared/chat-turn-errors.d.ts +10 -0
- package/dist/shared/chat-turn-errors.d.ts.map +1 -1
- package/dist/shared/chat-turn-errors.js +10 -0
- package/dist/shared/chat-turn-errors.js.map +1 -1
- package/dist/shared/constants.d.ts +1 -0
- package/dist/shared/constants.d.ts.map +1 -1
- package/dist/shared/constants.js +1 -0
- package/dist/shared/constants.js.map +1 -1
- package/dist/shared/team.d.ts +1 -0
- package/dist/shared/team.d.ts.map +1 -1
- package/dist/shared/team.js.map +1 -1
- package/package.json +5 -5
- package/src/generated/graphql.ts +1550 -601
- package/src/shared/chat-manager.ts +2 -0
- package/src/shared/chat-turn-errors.ts +10 -0
- package/src/shared/constants.ts +2 -0
- package/src/shared/team.ts +1 -0
|
@@ -14,6 +14,8 @@ export const chatManagerScopeSchema = z.strictObject({
|
|
|
14
14
|
realm: z.string().min(1),
|
|
15
15
|
datastoreId: z.string().min(1),
|
|
16
16
|
userId: z.string().min(1),
|
|
17
|
+
// Present for a custom app's token, so each app keeps its own chats; absent keeps the web app's chats where they are.
|
|
18
|
+
customAppClientId: z.string().min(1).optional(),
|
|
17
19
|
});
|
|
18
20
|
|
|
19
21
|
export type ChatManagerScope = z.infer<typeof chatManagerScopeSchema>;
|
|
@@ -6,6 +6,11 @@ export const chatTurnErrorMessages = {
|
|
|
6
6
|
messageNotSaved:
|
|
7
7
|
"Manta couldn't complete this response, and your message may not have been saved. Please send it again.",
|
|
8
8
|
unexpected: "Manta couldn't complete this response. Please try again.",
|
|
9
|
+
customAppTurnLimit: "Too many messages too quickly; wait a minute and try again.",
|
|
10
|
+
customAppPersonAllowance: "You have used today's chat allowance in this app; try again tomorrow.",
|
|
11
|
+
customAppAllowance: "This app has used its daily chat allowance; try again tomorrow.",
|
|
12
|
+
customAppUserRemoved: "Your access to this app's chat has ended.",
|
|
13
|
+
customAppDeleted: "This app's chat is no longer available.",
|
|
9
14
|
} as const;
|
|
10
15
|
|
|
11
16
|
export const chatTurnErrorMessageSchema = z.enum([
|
|
@@ -13,6 +18,11 @@ export const chatTurnErrorMessageSchema = z.enum([
|
|
|
13
18
|
chatTurnErrorMessages.contextOverflow,
|
|
14
19
|
chatTurnErrorMessages.messageNotSaved,
|
|
15
20
|
chatTurnErrorMessages.unexpected,
|
|
21
|
+
chatTurnErrorMessages.customAppTurnLimit,
|
|
22
|
+
chatTurnErrorMessages.customAppPersonAllowance,
|
|
23
|
+
chatTurnErrorMessages.customAppAllowance,
|
|
24
|
+
chatTurnErrorMessages.customAppUserRemoved,
|
|
25
|
+
chatTurnErrorMessages.customAppDeleted,
|
|
16
26
|
]);
|
|
17
27
|
|
|
18
28
|
export type ChatTurnErrorMessage = z.infer<typeof chatTurnErrorMessageSchema>;
|
package/src/shared/constants.ts
CHANGED
|
@@ -4,6 +4,8 @@ export type { KeycloakRealm } from "@manta-eu/ldo/realm";
|
|
|
4
4
|
|
|
5
5
|
export const selectedDatastoreCookieName = "selected-datastore";
|
|
6
6
|
|
|
7
|
+
export const onboardingCompletedCookieName = "manta-onboarding-completed";
|
|
8
|
+
|
|
7
9
|
export const errorRoutePath = "/error";
|
|
8
10
|
|
|
9
11
|
export const scheduleToolingFlagKey = "schedule-tooling-enabled";
|