@manta-eu/client 0.1.7 → 0.1.9
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 +2 -0
- package/dist/generated/graphql.d.ts +124 -5
- package/dist/generated/graphql.d.ts.map +1 -1
- package/dist/generated/graphql.js +76 -1
- package/dist/shared/chat-manager.d.ts +54 -0
- package/dist/shared/chat-manager.d.ts.map +1 -1
- package/dist/shared/chat-manager.js +40 -6
- package/dist/shared/datastore-id.d.ts.map +1 -1
- package/dist/shared/datastore-id.js +5 -2
- package/dist/shared/email.d.ts +21 -0
- package/dist/shared/email.d.ts.map +1 -0
- package/dist/shared/email.js +34 -0
- package/dist/shared/index.d.ts +2 -0
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/index.js +2 -0
- package/dist/shared/inferal-stream.d.ts +2 -0
- package/dist/shared/inferal-stream.d.ts.map +1 -0
- package/dist/shared/inferal-stream.js +2 -0
- package/dist/shared/team.d.ts +10 -0
- package/dist/shared/team.d.ts.map +1 -1
- package/dist/shared/team.js +1 -0
- package/package.json +17 -5
|
@@ -200,6 +200,11 @@ export var GQLOrderDirection;
|
|
|
200
200
|
GQLOrderDirection["Asc"] = "ASC";
|
|
201
201
|
GQLOrderDirection["Desc"] = "DESC";
|
|
202
202
|
})(GQLOrderDirection || (GQLOrderDirection = {}));
|
|
203
|
+
export var GQLPictureSource;
|
|
204
|
+
(function (GQLPictureSource) {
|
|
205
|
+
GQLPictureSource["IdentityProvider"] = "IDENTITY_PROVIDER";
|
|
206
|
+
GQLPictureSource["Upload"] = "UPLOAD";
|
|
207
|
+
})(GQLPictureSource || (GQLPictureSource = {}));
|
|
203
208
|
export var GQLPlanOperation;
|
|
204
209
|
(function (GQLPlanOperation) {
|
|
205
210
|
GQLPlanOperation["Added"] = "ADDED";
|
|
@@ -250,6 +255,15 @@ export var GQLShaclSeverity;
|
|
|
250
255
|
GQLShaclSeverity["Violation"] = "VIOLATION";
|
|
251
256
|
GQLShaclSeverity["Warning"] = "WARNING";
|
|
252
257
|
})(GQLShaclSeverity || (GQLShaclSeverity = {}));
|
|
258
|
+
export var GQLStructuredDataErrorCode;
|
|
259
|
+
(function (GQLStructuredDataErrorCode) {
|
|
260
|
+
GQLStructuredDataErrorCode["GenerationFailed"] = "GENERATION_FAILED";
|
|
261
|
+
GQLStructuredDataErrorCode["OutputInvalid"] = "OUTPUT_INVALID";
|
|
262
|
+
GQLStructuredDataErrorCode["RateLimited"] = "RATE_LIMITED";
|
|
263
|
+
GQLStructuredDataErrorCode["SchemaInvalid"] = "SCHEMA_INVALID";
|
|
264
|
+
GQLStructuredDataErrorCode["Unauthorized"] = "UNAUTHORIZED";
|
|
265
|
+
GQLStructuredDataErrorCode["Unknown"] = "UNKNOWN";
|
|
266
|
+
})(GQLStructuredDataErrorCode || (GQLStructuredDataErrorCode = {}));
|
|
253
267
|
export var GQLTeamDirectoryActivation;
|
|
254
268
|
(function (GQLTeamDirectoryActivation) {
|
|
255
269
|
GQLTeamDirectoryActivation["All"] = "ALL";
|
|
@@ -804,6 +818,12 @@ export const GenerateStructuredDataDocument = `
|
|
|
804
818
|
generateStructuredData(input: $input) {
|
|
805
819
|
data
|
|
806
820
|
error
|
|
821
|
+
code
|
|
822
|
+
issues {
|
|
823
|
+
path
|
|
824
|
+
message
|
|
825
|
+
}
|
|
826
|
+
outputExcerpt
|
|
807
827
|
}
|
|
808
828
|
}
|
|
809
829
|
`;
|
|
@@ -1162,6 +1182,21 @@ export const useRenameDatastoreGroupMutation = (client, options, headers) => {
|
|
|
1162
1182
|
...options,
|
|
1163
1183
|
});
|
|
1164
1184
|
};
|
|
1185
|
+
export const RenameUserDocument = `
|
|
1186
|
+
mutation RenameUser($userId: String!, $firstName: String!, $lastName: String) {
|
|
1187
|
+
renameUser(userId: $userId, firstName: $firstName, lastName: $lastName) {
|
|
1188
|
+
id
|
|
1189
|
+
name
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
`;
|
|
1193
|
+
export const useRenameUserMutation = (client, options, headers) => {
|
|
1194
|
+
return useMutation({
|
|
1195
|
+
mutationKey: ["RenameUser"],
|
|
1196
|
+
mutationFn: (variables) => fetcher(client, RenameUserDocument, variables, headers)(),
|
|
1197
|
+
...options,
|
|
1198
|
+
});
|
|
1199
|
+
};
|
|
1165
1200
|
export const RestoreDatastoreDocument = `
|
|
1166
1201
|
mutation RestoreDatastore($datastoreId: String!) {
|
|
1167
1202
|
restoreDatastore(datastoreId: $datastoreId) {
|
|
@@ -2662,6 +2697,7 @@ export const SessionContextDocument = `
|
|
|
2662
2697
|
id
|
|
2663
2698
|
email
|
|
2664
2699
|
name
|
|
2700
|
+
picture
|
|
2665
2701
|
isOperator
|
|
2666
2702
|
isOrgAdmin
|
|
2667
2703
|
adminOrgs
|
|
@@ -2816,15 +2852,23 @@ export const TeamDirectoryDocument = `
|
|
|
2816
2852
|
username
|
|
2817
2853
|
email
|
|
2818
2854
|
name
|
|
2855
|
+
firstName
|
|
2856
|
+
lastName
|
|
2819
2857
|
pending
|
|
2820
2858
|
inviteUrl
|
|
2821
2859
|
federated
|
|
2860
|
+
nameReadOnly
|
|
2822
2861
|
enabled
|
|
2823
2862
|
memberships {
|
|
2824
2863
|
org
|
|
2825
2864
|
name
|
|
2826
2865
|
groups
|
|
2827
2866
|
}
|
|
2867
|
+
invitedTo {
|
|
2868
|
+
org
|
|
2869
|
+
name
|
|
2870
|
+
groups
|
|
2871
|
+
}
|
|
2828
2872
|
}
|
|
2829
2873
|
}
|
|
2830
2874
|
}
|
|
@@ -2871,6 +2915,37 @@ export const useSuspenseTeamGroupsQuery = (client, variables, options, headers)
|
|
|
2871
2915
|
});
|
|
2872
2916
|
};
|
|
2873
2917
|
useSuspenseTeamGroupsQuery.getKey = (variables) => variables === undefined ? ["TeamGroupsSuspense"] : ["TeamGroupsSuspense", variables];
|
|
2918
|
+
export const TeamManagedMembershipsDocument = `
|
|
2919
|
+
query TeamManagedMemberships($memberships: [TeamMembershipInput!]!) {
|
|
2920
|
+
teamManagedMemberships(memberships: $memberships) {
|
|
2921
|
+
userId
|
|
2922
|
+
org
|
|
2923
|
+
managed
|
|
2924
|
+
}
|
|
2925
|
+
}
|
|
2926
|
+
`;
|
|
2927
|
+
export const useTeamManagedMembershipsQuery = (client, variables, options, headers) => {
|
|
2928
|
+
return useQuery({
|
|
2929
|
+
queryKey: ["TeamManagedMemberships", variables],
|
|
2930
|
+
queryFn: fetcher(client, TeamManagedMembershipsDocument, variables, headers),
|
|
2931
|
+
...options,
|
|
2932
|
+
});
|
|
2933
|
+
};
|
|
2934
|
+
useTeamManagedMembershipsQuery.getKey = (variables) => [
|
|
2935
|
+
"TeamManagedMemberships",
|
|
2936
|
+
variables,
|
|
2937
|
+
];
|
|
2938
|
+
export const useSuspenseTeamManagedMembershipsQuery = (client, variables, options, headers) => {
|
|
2939
|
+
return useSuspenseQuery({
|
|
2940
|
+
queryKey: ["TeamManagedMembershipsSuspense", variables],
|
|
2941
|
+
queryFn: fetcher(client, TeamManagedMembershipsDocument, variables, headers),
|
|
2942
|
+
...options,
|
|
2943
|
+
});
|
|
2944
|
+
};
|
|
2945
|
+
useSuspenseTeamManagedMembershipsQuery.getKey = (variables) => [
|
|
2946
|
+
"TeamManagedMembershipsSuspense",
|
|
2947
|
+
variables,
|
|
2948
|
+
];
|
|
2874
2949
|
export const TeamMembersDocument = `
|
|
2875
2950
|
query TeamMembers($org: String, $group: String, $first: Int, $max: Int, $search: String, $role: String, $activation: TeamDirectoryActivation, $snapshot: String) {
|
|
2876
2951
|
teamMembers(
|
|
@@ -2893,7 +2968,6 @@ export const TeamMembersDocument = `
|
|
|
2893
2968
|
name
|
|
2894
2969
|
managed
|
|
2895
2970
|
mirrored
|
|
2896
|
-
inviteCarriesGrants
|
|
2897
2971
|
}
|
|
2898
2972
|
members {
|
|
2899
2973
|
id
|
|
@@ -2905,6 +2979,7 @@ export const TeamMembersDocument = `
|
|
|
2905
2979
|
teams
|
|
2906
2980
|
federated
|
|
2907
2981
|
enabled
|
|
2982
|
+
managed
|
|
2908
2983
|
}
|
|
2909
2984
|
}
|
|
2910
2985
|
}
|
|
@@ -3,6 +3,7 @@ import { ChatContextKind } from "./agent-types.js";
|
|
|
3
3
|
export declare const chatManagerBasePath = "agents/chat-manager";
|
|
4
4
|
export declare const thinkChatFacetPath = "think-chat";
|
|
5
5
|
export declare const defaultConversationName = "New chat";
|
|
6
|
+
export declare const defaultFolderName = "New folder";
|
|
6
7
|
export declare const chatManagerScopeSchema: z.ZodObject<{
|
|
7
8
|
version: z.ZodLiteral<1>;
|
|
8
9
|
realm: z.ZodString;
|
|
@@ -53,6 +54,7 @@ export declare const conversationSummarySchema: z.ZodObject<{
|
|
|
53
54
|
kind: z.ZodLiteral<ChatContextKind.Plan>;
|
|
54
55
|
planGraphIri: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
55
56
|
}, z.core.$strict>], "kind">>;
|
|
57
|
+
folderId: z.ZodNullable<z.ZodUUID>;
|
|
56
58
|
createdAt: z.ZodISODateTime;
|
|
57
59
|
updatedAt: z.ZodISODateTime;
|
|
58
60
|
}, z.core.$strict>;
|
|
@@ -106,6 +108,7 @@ export declare const listConversationsInputSchema: z.ZodObject<{
|
|
|
106
108
|
}>>;
|
|
107
109
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
108
110
|
offset: z.ZodDefault<z.ZodNumber>;
|
|
111
|
+
folderId: z.ZodOptional<z.ZodUUID>;
|
|
109
112
|
}, z.core.$strict>;
|
|
110
113
|
export type ListConversationsInput = z.input<typeof listConversationsInputSchema>;
|
|
111
114
|
export declare const deleteConversationResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -114,6 +117,51 @@ export declare const deleteConversationResultSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
114
117
|
}, z.core.$strict>, z.ZodObject<{
|
|
115
118
|
status: z.ZodLiteral<"not_found">;
|
|
116
119
|
}, z.core.$strict>], "status">;
|
|
120
|
+
export declare const folderSummarySchema: z.ZodObject<{
|
|
121
|
+
id: z.ZodUUID;
|
|
122
|
+
title: z.ZodString;
|
|
123
|
+
description: z.ZodNullable<z.ZodString>;
|
|
124
|
+
createdAt: z.ZodISODateTime;
|
|
125
|
+
updatedAt: z.ZodISODateTime;
|
|
126
|
+
}, z.core.$strict>;
|
|
127
|
+
export type FolderSummary = z.infer<typeof folderSummarySchema>;
|
|
128
|
+
export declare const createFolderInputSchema: z.ZodObject<{
|
|
129
|
+
title: z.ZodOptional<z.ZodString>;
|
|
130
|
+
description: z.ZodOptional<z.ZodString>;
|
|
131
|
+
}, z.core.$strict>;
|
|
132
|
+
export type CreateFolderInput = z.input<typeof createFolderInputSchema>;
|
|
133
|
+
export declare const updateFolderInputSchema: z.ZodObject<{
|
|
134
|
+
id: z.ZodUUID;
|
|
135
|
+
title: z.ZodOptional<z.ZodString>;
|
|
136
|
+
description: z.ZodOptional<z.ZodString>;
|
|
137
|
+
}, z.core.$strict>;
|
|
138
|
+
export type UpdateFolderInput = z.input<typeof updateFolderInputSchema>;
|
|
139
|
+
export declare const folderIdInputSchema: z.ZodObject<{
|
|
140
|
+
id: z.ZodUUID;
|
|
141
|
+
}, z.core.$strict>;
|
|
142
|
+
export type FolderIdInput = z.input<typeof folderIdInputSchema>;
|
|
143
|
+
export declare const listFoldersInputSchema: z.ZodObject<{
|
|
144
|
+
search: z.ZodOptional<z.ZodString>;
|
|
145
|
+
orderBy: z.ZodDefault<z.ZodEnum<{
|
|
146
|
+
CREATED_AT: "CREATED_AT";
|
|
147
|
+
UPDATED_AT: "UPDATED_AT";
|
|
148
|
+
}>>;
|
|
149
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
150
|
+
offset: z.ZodDefault<z.ZodNumber>;
|
|
151
|
+
}, z.core.$strict>;
|
|
152
|
+
export type ListFoldersInput = z.input<typeof listFoldersInputSchema>;
|
|
153
|
+
export declare const assignConversationInputSchema: z.ZodObject<{
|
|
154
|
+
conversationId: z.ZodUUID;
|
|
155
|
+
folderId: z.ZodNullable<z.ZodUUID>;
|
|
156
|
+
}, z.core.$strict>;
|
|
157
|
+
export type AssignConversationInput = z.input<typeof assignConversationInputSchema>;
|
|
158
|
+
export declare const deleteFolderResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
159
|
+
status: z.ZodLiteral<"deleted">;
|
|
160
|
+
id: z.ZodUUID;
|
|
161
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
162
|
+
status: z.ZodLiteral<"not_found">;
|
|
163
|
+
}, z.core.$strict>], "status">;
|
|
164
|
+
export type DeleteFolderResult = z.infer<typeof deleteFolderResultSchema>;
|
|
117
165
|
export type DeleteConversationResult = z.infer<typeof deleteConversationResultSchema>;
|
|
118
166
|
export declare const conversationConfigSchema: z.ZodObject<{
|
|
119
167
|
version: z.ZodLiteral<1>;
|
|
@@ -179,5 +227,11 @@ export type ChatManagerClient = {
|
|
|
179
227
|
listConversations(input?: ListConversationsInput): Promise<ConversationSummary[]>;
|
|
180
228
|
renameConversation(input: RenameConversationInput): Promise<ConversationSummary | null>;
|
|
181
229
|
deleteConversation(input: ConversationIdInput): Promise<DeleteConversationResult>;
|
|
230
|
+
createFolder(input?: CreateFolderInput): Promise<FolderSummary>;
|
|
231
|
+
updateFolder(input: UpdateFolderInput): Promise<FolderSummary | null>;
|
|
232
|
+
getFolder(input: FolderIdInput): Promise<FolderSummary | null>;
|
|
233
|
+
listFolders(input?: ListFoldersInput): Promise<FolderSummary[]>;
|
|
234
|
+
deleteFolder(input: FolderIdInput): Promise<DeleteFolderResult>;
|
|
235
|
+
assignConversation(input: AssignConversationInput): Promise<ConversationSummary | null>;
|
|
182
236
|
};
|
|
183
237
|
//# sourceMappingURL=chat-manager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-manager.d.ts","sourceRoot":"","sources":["../../src/shared/chat-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QA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CAAC;IACnG,eAAe,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;IACjF,iBAAiB,CAAC,KAAK,CAAC,EAAE,sBAAsB,GAAG,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAAC;IAClF,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,GAAG,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;IACxF,kBAAkB,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;IAClF,YAAY,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAChE,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAAC;IACtE,SAAS,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAAC;IAC/D,WAAW,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;IAChE,YAAY,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAChE,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,GAAG,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;CACzF,CAAC"}
|
|
@@ -3,13 +3,17 @@ import { ChatContextKind } from "./agent-types.js";
|
|
|
3
3
|
export const chatManagerBasePath = "agents/chat-manager";
|
|
4
4
|
export const thinkChatFacetPath = "think-chat";
|
|
5
5
|
export const defaultConversationName = "New chat";
|
|
6
|
+
export const defaultFolderName = "New folder";
|
|
6
7
|
export const chatManagerScopeSchema = z.strictObject({
|
|
7
8
|
version: z.literal(1),
|
|
8
9
|
realm: z.string().min(1),
|
|
9
10
|
datastoreId: z.string().min(1),
|
|
10
11
|
userId: z.string().min(1),
|
|
11
12
|
});
|
|
12
|
-
|
|
13
|
+
const shortTextMaxLength = 200;
|
|
14
|
+
const descriptionMaxLength = 4000;
|
|
15
|
+
const idSchema = z.uuid();
|
|
16
|
+
export const chatIdSchema = idSchema;
|
|
13
17
|
const iriSchema = z
|
|
14
18
|
.string()
|
|
15
19
|
.min(1)
|
|
@@ -31,12 +35,13 @@ export const conversationSummarySchema = z.strictObject({
|
|
|
31
35
|
chatIRI: z.string().min(1),
|
|
32
36
|
title: z.string().min(1),
|
|
33
37
|
context: chatContextSchema.nullable(),
|
|
38
|
+
folderId: idSchema.nullable(),
|
|
34
39
|
createdAt: z.iso.datetime(),
|
|
35
40
|
updatedAt: z.iso.datetime(),
|
|
36
41
|
});
|
|
37
42
|
export const createConversationInputSchema = z.strictObject({
|
|
38
|
-
name: z.string().trim().min(1).max(
|
|
39
|
-
idempotencyKey: z.string().trim().min(1).max(
|
|
43
|
+
name: z.string().trim().min(1).max(shortTextMaxLength).optional(),
|
|
44
|
+
idempotencyKey: z.string().trim().min(1).max(shortTextMaxLength).optional(),
|
|
40
45
|
});
|
|
41
46
|
export const contextConversationInputSchema = z.strictObject({
|
|
42
47
|
context: chatContextSchema,
|
|
@@ -48,18 +53,47 @@ export const reassignConversationContextInputSchema = z.strictObject({
|
|
|
48
53
|
export const conversationIdInputSchema = z.strictObject({ id: chatIdSchema });
|
|
49
54
|
export const renameConversationInputSchema = z.strictObject({
|
|
50
55
|
id: chatIdSchema,
|
|
51
|
-
title: z.string().trim().min(1).max(
|
|
56
|
+
title: z.string().trim().min(1).max(shortTextMaxLength),
|
|
52
57
|
});
|
|
53
|
-
|
|
54
|
-
search: z.string().trim().max(
|
|
58
|
+
const listInputSchema = z.strictObject({
|
|
59
|
+
search: z.string().trim().max(shortTextMaxLength).optional(),
|
|
55
60
|
orderBy: z.enum(["CREATED_AT", "UPDATED_AT"]).default("UPDATED_AT"),
|
|
56
61
|
limit: z.number().int().min(1).max(100).default(10),
|
|
57
62
|
offset: z.number().int().min(0).default(0),
|
|
58
63
|
});
|
|
64
|
+
export const listConversationsInputSchema = listInputSchema.extend({
|
|
65
|
+
folderId: idSchema.optional(),
|
|
66
|
+
});
|
|
59
67
|
export const deleteConversationResultSchema = z.discriminatedUnion("status", [
|
|
60
68
|
z.strictObject({ status: z.literal("deleted"), id: chatIdSchema }),
|
|
61
69
|
z.strictObject({ status: z.literal("not_found") }),
|
|
62
70
|
]);
|
|
71
|
+
export const folderSummarySchema = z.strictObject({
|
|
72
|
+
id: idSchema,
|
|
73
|
+
title: z.string().min(1).max(shortTextMaxLength),
|
|
74
|
+
description: z.string().max(descriptionMaxLength).nullable(),
|
|
75
|
+
createdAt: z.iso.datetime(),
|
|
76
|
+
updatedAt: z.iso.datetime(),
|
|
77
|
+
});
|
|
78
|
+
export const createFolderInputSchema = z.strictObject({
|
|
79
|
+
title: z.string().trim().min(1).max(shortTextMaxLength).optional(),
|
|
80
|
+
description: z.string().trim().max(descriptionMaxLength).optional(),
|
|
81
|
+
});
|
|
82
|
+
export const updateFolderInputSchema = z.strictObject({
|
|
83
|
+
id: idSchema,
|
|
84
|
+
title: z.string().trim().min(1).max(shortTextMaxLength).optional(),
|
|
85
|
+
description: z.string().trim().max(descriptionMaxLength).optional(),
|
|
86
|
+
});
|
|
87
|
+
export const folderIdInputSchema = z.strictObject({ id: idSchema });
|
|
88
|
+
export const listFoldersInputSchema = listInputSchema;
|
|
89
|
+
export const assignConversationInputSchema = z.strictObject({
|
|
90
|
+
conversationId: chatIdSchema,
|
|
91
|
+
folderId: idSchema.nullable(),
|
|
92
|
+
});
|
|
93
|
+
export const deleteFolderResultSchema = z.discriminatedUnion("status", [
|
|
94
|
+
z.strictObject({ status: z.literal("deleted"), id: idSchema }),
|
|
95
|
+
z.strictObject({ status: z.literal("not_found") }),
|
|
96
|
+
]);
|
|
63
97
|
export const conversationConfigSchema = z.strictObject({
|
|
64
98
|
version: z.literal(1),
|
|
65
99
|
scope: chatManagerScopeSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datastore-id.d.ts","sourceRoot":"","sources":["../../src/shared/datastore-id.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"datastore-id.d.ts","sourceRoot":"","sources":["../../src/shared/datastore-id.ts"],"names":[],"mappings":"AAAA,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAM5C;AAGD,wBAAgB,iBAAiB,CAAC,gBAAgB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,MAAM,CAQtF;AAKD,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAEtD"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { isPresent } from "@manta-eu/lib/present";
|
|
2
1
|
export function slugify(name) {
|
|
3
2
|
return name
|
|
4
3
|
.trim()
|
|
@@ -8,7 +7,11 @@ export function slugify(name) {
|
|
|
8
7
|
}
|
|
9
8
|
// Org slug + full group path: "Demo Portfolio Co" + ["Vertical A","Team 1"] -> "demo-portfolio-co-vertical-a-team-1".
|
|
10
9
|
export function deriveDatastoreId(organizationName, segments) {
|
|
11
|
-
return [organizationName, ...segments]
|
|
10
|
+
return ([organizationName, ...segments]
|
|
11
|
+
.map(slugify)
|
|
12
|
+
// eslint-disable-next-line @manta-eu/prefer-is-present -- agents/vite.config.ts loads this file without lib
|
|
13
|
+
.filter((slug) => slug.length > 0)
|
|
14
|
+
.join("-"));
|
|
12
15
|
}
|
|
13
16
|
// Validated before reaching Infisical/KGC/RDFox since the Keycloak attribute is admin-settable.
|
|
14
17
|
const datastoreIdPattern = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type EmailGraphql = (document: string, variables: Record<string, unknown>) => Promise<unknown>;
|
|
2
|
+
export type RealmEmailTerms = {
|
|
3
|
+
emailMessageShape: string;
|
|
4
|
+
renderedFrom: string;
|
|
5
|
+
};
|
|
6
|
+
export type RenderedEmail = {
|
|
7
|
+
subjectIri: string;
|
|
8
|
+
from: string;
|
|
9
|
+
to: string;
|
|
10
|
+
subject: string;
|
|
11
|
+
renderedFrom: string;
|
|
12
|
+
};
|
|
13
|
+
export type EmailStart = {
|
|
14
|
+
ok: true;
|
|
15
|
+
plan: string;
|
|
16
|
+
} | {
|
|
17
|
+
ok: false;
|
|
18
|
+
error: string;
|
|
19
|
+
};
|
|
20
|
+
export declare function startRenderedEmail(graphql: EmailGraphql, terms: RealmEmailTerms, email: RenderedEmail): Promise<EmailStart>;
|
|
21
|
+
//# sourceMappingURL=email.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"email.d.ts","sourceRoot":"","sources":["../../src/shared/email.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,YAAY,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;AAEtG,MAAM,MAAM,eAAe,GAAG;IAAE,iBAAiB,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,CAAC;AAElF,MAAM,MAAM,aAAa,GAAG;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAmBnF,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,YAAY,EACrB,KAAK,EAAE,eAAe,EACtB,KAAK,EAAE,aAAa,GACnB,OAAO,CAAC,UAAU,CAAC,CAcrB"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { nco, nmo } from "@manta-eu/ldo/namespaces";
|
|
2
|
+
import { isPresent } from "@manta-eu/lib/present";
|
|
3
|
+
import { ExecuteAgentActionAdditionDocument } from "../generated/graphql.js";
|
|
4
|
+
function renderedEmailAddition(terms, email) {
|
|
5
|
+
return {
|
|
6
|
+
subjectIri: email.subjectIri,
|
|
7
|
+
rdfType: nmo.Email,
|
|
8
|
+
actionShape: terms.emailMessageShape,
|
|
9
|
+
properties: {
|
|
10
|
+
"@id": email.subjectIri,
|
|
11
|
+
"@type": nmo.Email,
|
|
12
|
+
[nmo.messageFrom]: { "@type": nco.EmailAddress, [nco.emailAddress]: email.from },
|
|
13
|
+
[nmo.emailTo]: { "@type": nco.EmailAddress, [nco.emailAddress]: email.to },
|
|
14
|
+
[nmo.messageSubject]: email.subject,
|
|
15
|
+
[nmo.contentMimeType]: "text/html",
|
|
16
|
+
[terms.renderedFrom]: { "@id": email.renderedFrom },
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export async function startRenderedEmail(graphql, terms, email) {
|
|
21
|
+
try {
|
|
22
|
+
const data = (await graphql(ExecuteAgentActionAdditionDocument, {
|
|
23
|
+
input: renderedEmailAddition(terms, email),
|
|
24
|
+
}));
|
|
25
|
+
const addition = data?.executeActionAddition;
|
|
26
|
+
if (addition?.success === true && isPresent(addition.namedGraphIri)) {
|
|
27
|
+
return { ok: true, plan: addition.namedGraphIri };
|
|
28
|
+
}
|
|
29
|
+
return { ok: false, error: addition?.error ?? "The email action did not start" };
|
|
30
|
+
}
|
|
31
|
+
catch (cause) {
|
|
32
|
+
return { ok: false, error: cause instanceof Error ? cause.message : String(cause) };
|
|
33
|
+
}
|
|
34
|
+
}
|
package/dist/shared/index.d.ts
CHANGED
|
@@ -18,5 +18,7 @@ export type ChatUIMessage = UIMessage<{
|
|
|
18
18
|
pageContext?: PageContext;
|
|
19
19
|
model?: OperatorAllowedModel;
|
|
20
20
|
}>;
|
|
21
|
+
/** A blank chat, which `/` stops being once an app gives its datastores a home page. */
|
|
22
|
+
export declare const newChatPath = "/chat";
|
|
21
23
|
export declare function chatIdToPath(id: string): string;
|
|
22
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AACpC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD,eAAO,MAAM,QAAQ;;;CAGX,CAAC;AAEX,MAAM,MAAM,sBAAsB,GAAG,aAAa,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEvF,MAAM,MAAM,aAAa,GAAG,SAAS,CAAC;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,sBAAsB,CAAC;IACvC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,KAAK,CAAC,EAAE,oBAAoB,CAAC;CAC9B,CAAC,CAAC;AAEH,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,UAEtC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AACpC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD,eAAO,MAAM,QAAQ;;;CAGX,CAAC;AAEX,MAAM,MAAM,sBAAsB,GAAG,aAAa,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEvF,MAAM,MAAM,aAAa,GAAG,SAAS,CAAC;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,sBAAsB,CAAC;IACvC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,KAAK,CAAC,EAAE,oBAAoB,CAAC;CAC9B,CAAC,CAAC;AAEH,wFAAwF;AACxF,eAAO,MAAM,WAAW,UAAU,CAAC;AAEnC,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,UAEtC"}
|
package/dist/shared/index.js
CHANGED
|
@@ -3,6 +3,8 @@ export const APPROVAL = {
|
|
|
3
3
|
YES: "Yes, confirmed.",
|
|
4
4
|
NO: "No, denied.",
|
|
5
5
|
};
|
|
6
|
+
/** A blank chat, which `/` stops being once an app gives its datastores a home page. */
|
|
7
|
+
export const newChatPath = "/chat";
|
|
6
8
|
export function chatIdToPath(id) {
|
|
7
9
|
return `/chat/${encodeURIComponent(id)}`;
|
|
8
10
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inferal-stream.d.ts","sourceRoot":"","sources":["../../src/shared/inferal-stream.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,0BAA0B,KAAK,CAAC"}
|
package/dist/shared/team.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export type TeamMember = {
|
|
|
9
9
|
inviteUrl?: string;
|
|
10
10
|
teams: string[];
|
|
11
11
|
federated?: boolean;
|
|
12
|
+
managed?: true;
|
|
12
13
|
enabled: boolean;
|
|
13
14
|
};
|
|
14
15
|
export type TeamOrganization = {
|
|
@@ -46,16 +47,21 @@ export type DirectoryMembership = {
|
|
|
46
47
|
org: string;
|
|
47
48
|
name?: string;
|
|
48
49
|
groups: string[];
|
|
50
|
+
managed?: true;
|
|
49
51
|
};
|
|
50
52
|
export type DirectoryUser = {
|
|
51
53
|
id: string;
|
|
52
54
|
username?: string;
|
|
53
55
|
email?: string;
|
|
54
56
|
name?: string;
|
|
57
|
+
firstName?: string;
|
|
58
|
+
lastName?: string;
|
|
55
59
|
memberships: DirectoryMembership[];
|
|
56
60
|
pending?: boolean;
|
|
57
61
|
inviteUrl?: string;
|
|
62
|
+
invitedTo?: DirectoryMembership[];
|
|
58
63
|
federated?: boolean;
|
|
64
|
+
nameReadOnly?: boolean;
|
|
59
65
|
enabled: boolean;
|
|
60
66
|
};
|
|
61
67
|
export type TeamDirectory = {
|
|
@@ -66,6 +72,10 @@ export type TeamDirectory = {
|
|
|
66
72
|
hasMore: boolean;
|
|
67
73
|
};
|
|
68
74
|
export declare const directoryPageSize = 20;
|
|
75
|
+
export declare const auth0NameLimits: {
|
|
76
|
+
readonly part: 150;
|
|
77
|
+
readonly whole: 300;
|
|
78
|
+
};
|
|
69
79
|
export declare const maxDirectoryPageSize = 100;
|
|
70
80
|
export type AssignableGroup = {
|
|
71
81
|
path: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"team.d.ts","sourceRoot":"","sources":["../../src/shared/team.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC;AAE9B,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,EAAE,O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O,MAAM,kBAAkB,MAAM,CAAC;AAEtC,eAAO,MAAM,cAAc,MAAM,CAAC;AAElC,wBAAgB,eAAe,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAE5D;AAED,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE7D,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;AAEpE,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,aAAa,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,kBAAkB,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAKF,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAErD;AAcD,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAEF,uFAAuF;AACvF,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAsB1D"}
|
package/dist/shared/team.js
CHANGED
|
@@ -6,6 +6,7 @@ export function userLabel(user) {
|
|
|
6
6
|
return user.name ?? user.email ?? user.username ?? user.id;
|
|
7
7
|
}
|
|
8
8
|
export const directoryPageSize = 20;
|
|
9
|
+
export const auth0NameLimits = { part: 150, whole: 300 };
|
|
9
10
|
export const maxDirectoryPageSize = 100;
|
|
10
11
|
export function bulkPairId(pair) {
|
|
11
12
|
return `${pair.userId}:${pair.org}`;
|
package/package.json
CHANGED
|
@@ -1,22 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manta-eu/client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "The Manta GraphQL contract and the typed React Query hooks generated from it",
|
|
5
|
+
"homepage": "https://developers.manta.eu",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"manta",
|
|
8
|
+
"knowledge-graph",
|
|
9
|
+
"graphql",
|
|
10
|
+
"react-query",
|
|
11
|
+
"sdk"
|
|
12
|
+
],
|
|
5
13
|
"type": "module",
|
|
6
14
|
"exports": {
|
|
7
15
|
".": {
|
|
16
|
+
"manta-source": "./src/index.ts",
|
|
8
17
|
"types": "./dist/index.d.ts",
|
|
9
18
|
"import": "./dist/index.js"
|
|
10
19
|
},
|
|
11
20
|
"./shared/tools": {
|
|
21
|
+
"manta-source": "./src/shared/tools/index.ts",
|
|
12
22
|
"types": "./dist/shared/tools/index.d.ts",
|
|
13
23
|
"import": "./dist/shared/tools/index.js"
|
|
14
24
|
},
|
|
15
25
|
"./shared/*": {
|
|
26
|
+
"manta-source": "./src/shared/*.ts",
|
|
16
27
|
"types": "./dist/shared/*.d.ts",
|
|
17
28
|
"import": "./dist/shared/*.js"
|
|
18
29
|
},
|
|
19
30
|
"./types/*": {
|
|
31
|
+
"manta-source": "./src/types/*.ts",
|
|
20
32
|
"types": "./dist/types/*.d.ts",
|
|
21
33
|
"import": "./dist/types/*.js"
|
|
22
34
|
}
|
|
@@ -43,10 +55,10 @@
|
|
|
43
55
|
"uuid": "^13.0.0",
|
|
44
56
|
"whatwg-mimetype": "^5.0.0",
|
|
45
57
|
"zod": "^4.5.0",
|
|
46
|
-
"@manta-eu/datalog-parser": "0.1.
|
|
47
|
-
"@manta-eu/
|
|
48
|
-
"@manta-eu/lib": "0.1.
|
|
49
|
-
"@manta-eu/
|
|
58
|
+
"@manta-eu/datalog-parser": "0.1.9",
|
|
59
|
+
"@manta-eu/lib": "0.1.9",
|
|
60
|
+
"@manta-eu/rdf-lib": "0.1.9",
|
|
61
|
+
"@manta-eu/ldo": "0.1.9"
|
|
50
62
|
},
|
|
51
63
|
"peerDependencies": {
|
|
52
64
|
"@tanstack/react-query": "^5.100.10"
|