@manta-eu/client 0.1.6 → 0.1.8
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 +312 -17
- package/dist/generated/graphql.d.ts.map +1 -1
- package/dist/generated/graphql.js +195 -8
- 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/team.d.ts +11 -6
- package/dist/shared/team.d.ts.map +1 -1
- package/dist/shared/team.js +1 -0
- package/dist/shared/tools/metadata.d.ts.map +1 -1
- package/dist/shared/tools/metadata.js +7 -0
- package/dist/shared/tools/types.d.ts +7 -1
- package/dist/shared/tools/types.d.ts.map +1 -1
- package/package.json +17 -5
|
@@ -55,6 +55,19 @@ export var GQLConversationStarterSource;
|
|
|
55
55
|
GQLConversationStarterSource["KnowledgeGraph"] = "KNOWLEDGE_GRAPH";
|
|
56
56
|
GQLConversationStarterSource["Plan"] = "PLAN";
|
|
57
57
|
})(GQLConversationStarterSource || (GQLConversationStarterSource = {}));
|
|
58
|
+
export var GQLDataConnectionStatus;
|
|
59
|
+
(function (GQLDataConnectionStatus) {
|
|
60
|
+
GQLDataConnectionStatus["Active"] = "ACTIVE";
|
|
61
|
+
GQLDataConnectionStatus["Failed"] = "FAILED";
|
|
62
|
+
GQLDataConnectionStatus["Testing"] = "TESTING";
|
|
63
|
+
})(GQLDataConnectionStatus || (GQLDataConnectionStatus = {}));
|
|
64
|
+
export var GQLDataConnectorFieldType;
|
|
65
|
+
(function (GQLDataConnectorFieldType) {
|
|
66
|
+
GQLDataConnectorFieldType["Boolean"] = "BOOLEAN";
|
|
67
|
+
GQLDataConnectorFieldType["Decimal"] = "DECIMAL";
|
|
68
|
+
GQLDataConnectorFieldType["Integer"] = "INTEGER";
|
|
69
|
+
GQLDataConnectorFieldType["String"] = "STRING";
|
|
70
|
+
})(GQLDataConnectorFieldType || (GQLDataConnectorFieldType = {}));
|
|
58
71
|
export var GQLExecuteActionErrorCode;
|
|
59
72
|
(function (GQLExecuteActionErrorCode) {
|
|
60
73
|
GQLExecuteActionErrorCode["BadRequest"] = "BAD_REQUEST";
|
|
@@ -187,6 +200,11 @@ export var GQLOrderDirection;
|
|
|
187
200
|
GQLOrderDirection["Asc"] = "ASC";
|
|
188
201
|
GQLOrderDirection["Desc"] = "DESC";
|
|
189
202
|
})(GQLOrderDirection || (GQLOrderDirection = {}));
|
|
203
|
+
export var GQLPictureSource;
|
|
204
|
+
(function (GQLPictureSource) {
|
|
205
|
+
GQLPictureSource["IdentityProvider"] = "IDENTITY_PROVIDER";
|
|
206
|
+
GQLPictureSource["Upload"] = "UPLOAD";
|
|
207
|
+
})(GQLPictureSource || (GQLPictureSource = {}));
|
|
190
208
|
export var GQLPlanOperation;
|
|
191
209
|
(function (GQLPlanOperation) {
|
|
192
210
|
GQLPlanOperation["Added"] = "ADDED";
|
|
@@ -237,6 +255,15 @@ export var GQLShaclSeverity;
|
|
|
237
255
|
GQLShaclSeverity["Violation"] = "VIOLATION";
|
|
238
256
|
GQLShaclSeverity["Warning"] = "WARNING";
|
|
239
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 = {}));
|
|
240
267
|
export var GQLTeamDirectoryActivation;
|
|
241
268
|
(function (GQLTeamDirectoryActivation) {
|
|
242
269
|
GQLTeamDirectoryActivation["All"] = "ALL";
|
|
@@ -254,6 +281,11 @@ export var GQLTestTripleObjectType;
|
|
|
254
281
|
GQLTestTripleObjectType["Iri"] = "IRI";
|
|
255
282
|
GQLTestTripleObjectType["Literal"] = "LITERAL";
|
|
256
283
|
})(GQLTestTripleObjectType || (GQLTestTripleObjectType = {}));
|
|
284
|
+
export var GQLUploadPurpose;
|
|
285
|
+
(function (GQLUploadPurpose) {
|
|
286
|
+
GQLUploadPurpose["Bundle"] = "BUNDLE";
|
|
287
|
+
GQLUploadPurpose["File"] = "FILE";
|
|
288
|
+
})(GQLUploadPurpose || (GQLUploadPurpose = {}));
|
|
257
289
|
export const MemoryFieldsFragmentDoc = `
|
|
258
290
|
fragment MemoryFields on Memory {
|
|
259
291
|
iri
|
|
@@ -391,6 +423,22 @@ export const useAbortUploadMutation = (client, options, headers) => {
|
|
|
391
423
|
...options,
|
|
392
424
|
});
|
|
393
425
|
};
|
|
426
|
+
export const AwaitDataConnectionTestDocument = `
|
|
427
|
+
mutation AwaitDataConnectionTest($id: String!) {
|
|
428
|
+
awaitDataConnectionTest(id: $id) {
|
|
429
|
+
id
|
|
430
|
+
status
|
|
431
|
+
error
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
`;
|
|
435
|
+
export const useAwaitDataConnectionTestMutation = (client, options, headers) => {
|
|
436
|
+
return useMutation({
|
|
437
|
+
mutationKey: ["AwaitDataConnectionTest"],
|
|
438
|
+
mutationFn: (variables) => fetcher(client, AwaitDataConnectionTestDocument, variables, headers)(),
|
|
439
|
+
...options,
|
|
440
|
+
});
|
|
441
|
+
};
|
|
394
442
|
export const BringDatastoreOnlineDocument = `
|
|
395
443
|
mutation BringDatastoreOnline($datastoreId: String) {
|
|
396
444
|
bringDatastoreOnline(datastoreId: $datastoreId) {
|
|
@@ -487,6 +535,22 @@ export const useConsolidateMemoriesMutation = (client, options, headers) => {
|
|
|
487
535
|
...options,
|
|
488
536
|
});
|
|
489
537
|
};
|
|
538
|
+
export const CreateDataConnectionDocument = `
|
|
539
|
+
mutation CreateDataConnection($input: CreateDataConnectionInput!) {
|
|
540
|
+
createDataConnection(input: $input) {
|
|
541
|
+
id
|
|
542
|
+
status
|
|
543
|
+
error
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
`;
|
|
547
|
+
export const useCreateDataConnectionMutation = (client, options, headers) => {
|
|
548
|
+
return useMutation({
|
|
549
|
+
mutationKey: ["CreateDataConnection"],
|
|
550
|
+
mutationFn: (variables) => fetcher(client, CreateDataConnectionDocument, variables, headers)(),
|
|
551
|
+
...options,
|
|
552
|
+
});
|
|
553
|
+
};
|
|
490
554
|
export const CreateInferalIntegrationDocument = `
|
|
491
555
|
mutation CreateInferalIntegration($input: CreateInferalIntegrationInput!) {
|
|
492
556
|
createInferalIntegration(input: $input) {
|
|
@@ -563,6 +627,20 @@ export const useDeleteActionPlanMutation = (client, options, headers) => {
|
|
|
563
627
|
...options,
|
|
564
628
|
});
|
|
565
629
|
};
|
|
630
|
+
export const DeleteDataConnectionDocument = `
|
|
631
|
+
mutation DeleteDataConnection($id: String!) {
|
|
632
|
+
deleteDataConnection(id: $id) {
|
|
633
|
+
success
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
`;
|
|
637
|
+
export const useDeleteDataConnectionMutation = (client, options, headers) => {
|
|
638
|
+
return useMutation({
|
|
639
|
+
mutationKey: ["DeleteDataConnection"],
|
|
640
|
+
mutationFn: (variables) => fetcher(client, DeleteDataConnectionDocument, variables, headers)(),
|
|
641
|
+
...options,
|
|
642
|
+
});
|
|
643
|
+
};
|
|
566
644
|
export const DeleteLdesStreamDocument = `
|
|
567
645
|
mutation DeleteLdesStream($url: String!) {
|
|
568
646
|
deleteLDESStream(url: $url) {
|
|
@@ -740,6 +818,12 @@ export const GenerateStructuredDataDocument = `
|
|
|
740
818
|
generateStructuredData(input: $input) {
|
|
741
819
|
data
|
|
742
820
|
error
|
|
821
|
+
code
|
|
822
|
+
issues {
|
|
823
|
+
path
|
|
824
|
+
message
|
|
825
|
+
}
|
|
826
|
+
outputExcerpt
|
|
743
827
|
}
|
|
744
828
|
}
|
|
745
829
|
`;
|
|
@@ -1098,6 +1182,21 @@ export const useRenameDatastoreGroupMutation = (client, options, headers) => {
|
|
|
1098
1182
|
...options,
|
|
1099
1183
|
});
|
|
1100
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
|
+
};
|
|
1101
1200
|
export const RestoreDatastoreDocument = `
|
|
1102
1201
|
mutation RestoreDatastore($datastoreId: String!) {
|
|
1103
1202
|
restoreDatastore(datastoreId: $datastoreId) {
|
|
@@ -1221,6 +1320,22 @@ export const useSyncGmailIntegrationMutation = (client, options, headers) => {
|
|
|
1221
1320
|
...options,
|
|
1222
1321
|
});
|
|
1223
1322
|
};
|
|
1323
|
+
export const UpdateDataConnectionDocument = `
|
|
1324
|
+
mutation UpdateDataConnection($input: UpdateDataConnectionInput!) {
|
|
1325
|
+
updateDataConnection(input: $input) {
|
|
1326
|
+
id
|
|
1327
|
+
status
|
|
1328
|
+
error
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
`;
|
|
1332
|
+
export const useUpdateDataConnectionMutation = (client, options, headers) => {
|
|
1333
|
+
return useMutation({
|
|
1334
|
+
mutationKey: ["UpdateDataConnection"],
|
|
1335
|
+
mutationFn: (variables) => fetcher(client, UpdateDataConnectionDocument, variables, headers)(),
|
|
1336
|
+
...options,
|
|
1337
|
+
});
|
|
1338
|
+
};
|
|
1224
1339
|
export const UpdateMemoryDocument = `
|
|
1225
1340
|
mutation UpdateMemory($input: UpdateMemoryInput!) {
|
|
1226
1341
|
updateMemory(input: $input) {
|
|
@@ -1832,6 +1947,76 @@ export const useSuspenseDashSetupProgressQuery = (client, variables, options, he
|
|
|
1832
1947
|
});
|
|
1833
1948
|
};
|
|
1834
1949
|
useSuspenseDashSetupProgressQuery.getKey = (variables) => variables === undefined ? ["DashSetupProgressSuspense"] : ["DashSetupProgressSuspense", variables];
|
|
1950
|
+
export const DataConnectionsDocument = `
|
|
1951
|
+
query DataConnections {
|
|
1952
|
+
dataConnections {
|
|
1953
|
+
id
|
|
1954
|
+
name
|
|
1955
|
+
connectorType
|
|
1956
|
+
status
|
|
1957
|
+
error
|
|
1958
|
+
createdAt
|
|
1959
|
+
settings {
|
|
1960
|
+
key
|
|
1961
|
+
value
|
|
1962
|
+
}
|
|
1963
|
+
candidateSettings {
|
|
1964
|
+
key
|
|
1965
|
+
value
|
|
1966
|
+
}
|
|
1967
|
+
}
|
|
1968
|
+
}
|
|
1969
|
+
`;
|
|
1970
|
+
export const useDataConnectionsQuery = (client, variables, options, headers) => {
|
|
1971
|
+
return useQuery({
|
|
1972
|
+
queryKey: variables === undefined ? ["DataConnections"] : ["DataConnections", variables],
|
|
1973
|
+
queryFn: fetcher(client, DataConnectionsDocument, variables, headers),
|
|
1974
|
+
...options,
|
|
1975
|
+
});
|
|
1976
|
+
};
|
|
1977
|
+
useDataConnectionsQuery.getKey = (variables) => variables === undefined ? ["DataConnections"] : ["DataConnections", variables];
|
|
1978
|
+
export const useSuspenseDataConnectionsQuery = (client, variables, options, headers) => {
|
|
1979
|
+
return useSuspenseQuery({
|
|
1980
|
+
queryKey: variables === undefined ? ["DataConnectionsSuspense"] : ["DataConnectionsSuspense", variables],
|
|
1981
|
+
queryFn: fetcher(client, DataConnectionsDocument, variables, headers),
|
|
1982
|
+
...options,
|
|
1983
|
+
});
|
|
1984
|
+
};
|
|
1985
|
+
useSuspenseDataConnectionsQuery.getKey = (variables) => variables === undefined ? ["DataConnectionsSuspense"] : ["DataConnectionsSuspense", variables];
|
|
1986
|
+
export const DataConnectorTypesDocument = `
|
|
1987
|
+
query DataConnectorTypes {
|
|
1988
|
+
dataConnectorTypes {
|
|
1989
|
+
connectorType
|
|
1990
|
+
fields {
|
|
1991
|
+
key
|
|
1992
|
+
title
|
|
1993
|
+
description
|
|
1994
|
+
dataType
|
|
1995
|
+
required
|
|
1996
|
+
secret
|
|
1997
|
+
order
|
|
1998
|
+
enum
|
|
1999
|
+
default
|
|
2000
|
+
}
|
|
2001
|
+
}
|
|
2002
|
+
}
|
|
2003
|
+
`;
|
|
2004
|
+
export const useDataConnectorTypesQuery = (client, variables, options, headers) => {
|
|
2005
|
+
return useQuery({
|
|
2006
|
+
queryKey: variables === undefined ? ["DataConnectorTypes"] : ["DataConnectorTypes", variables],
|
|
2007
|
+
queryFn: fetcher(client, DataConnectorTypesDocument, variables, headers),
|
|
2008
|
+
...options,
|
|
2009
|
+
});
|
|
2010
|
+
};
|
|
2011
|
+
useDataConnectorTypesQuery.getKey = (variables) => variables === undefined ? ["DataConnectorTypes"] : ["DataConnectorTypes", variables];
|
|
2012
|
+
export const useSuspenseDataConnectorTypesQuery = (client, variables, options, headers) => {
|
|
2013
|
+
return useSuspenseQuery({
|
|
2014
|
+
queryKey: variables === undefined ? ["DataConnectorTypesSuspense"] : ["DataConnectorTypesSuspense", variables],
|
|
2015
|
+
queryFn: fetcher(client, DataConnectorTypesDocument, variables, headers),
|
|
2016
|
+
...options,
|
|
2017
|
+
});
|
|
2018
|
+
};
|
|
2019
|
+
useSuspenseDataConnectorTypesQuery.getKey = (variables) => variables === undefined ? ["DataConnectorTypesSuspense"] : ["DataConnectorTypesSuspense", variables];
|
|
1835
2020
|
export const DatastoreProvisioningStatusesDocument = `
|
|
1836
2021
|
query DatastoreProvisioningStatuses($datastoreIds: [String!]!) {
|
|
1837
2022
|
datastoreProvisioningStatuses(datastoreIds: $datastoreIds) {
|
|
@@ -2512,6 +2697,7 @@ export const SessionContextDocument = `
|
|
|
2512
2697
|
id
|
|
2513
2698
|
email
|
|
2514
2699
|
name
|
|
2700
|
+
picture
|
|
2515
2701
|
isOperator
|
|
2516
2702
|
isOrgAdmin
|
|
2517
2703
|
adminOrgs
|
|
@@ -2650,38 +2836,39 @@ export const useSuspenseSupportedActionShapesQuery = (client, variables, options
|
|
|
2650
2836
|
};
|
|
2651
2837
|
useSuspenseSupportedActionShapesQuery.getKey = (variables) => variables === undefined ? ["SupportedActionShapesSuspense"] : ["SupportedActionShapesSuspense", variables];
|
|
2652
2838
|
export const TeamDirectoryDocument = `
|
|
2653
|
-
query TeamDirectory($first: Int, $max: Int, $search: String, $activation: TeamDirectoryActivation, $
|
|
2839
|
+
query TeamDirectory($first: Int, $max: Int, $search: String, $activation: TeamDirectoryActivation, $knownTotal: Int) {
|
|
2654
2840
|
teamDirectory(
|
|
2655
2841
|
first: $first
|
|
2656
2842
|
max: $max
|
|
2657
2843
|
search: $search
|
|
2658
2844
|
activation: $activation
|
|
2659
|
-
scope: $scope
|
|
2660
|
-
resumeOffset: $resumeOffset
|
|
2661
|
-
resumeMatched: $resumeMatched
|
|
2662
2845
|
knownTotal: $knownTotal
|
|
2663
2846
|
) {
|
|
2664
2847
|
truncated
|
|
2665
2848
|
total
|
|
2666
2849
|
hasMore
|
|
2667
|
-
scanCursor {
|
|
2668
|
-
offset
|
|
2669
|
-
matched
|
|
2670
|
-
}
|
|
2671
2850
|
users {
|
|
2672
2851
|
id
|
|
2673
2852
|
username
|
|
2674
2853
|
email
|
|
2675
2854
|
name
|
|
2855
|
+
firstName
|
|
2856
|
+
lastName
|
|
2676
2857
|
pending
|
|
2677
2858
|
inviteUrl
|
|
2678
2859
|
federated
|
|
2860
|
+
nameReadOnly
|
|
2679
2861
|
enabled
|
|
2680
2862
|
memberships {
|
|
2681
2863
|
org
|
|
2682
2864
|
name
|
|
2683
2865
|
groups
|
|
2684
2866
|
}
|
|
2867
|
+
invitedTo {
|
|
2868
|
+
org
|
|
2869
|
+
name
|
|
2870
|
+
groups
|
|
2871
|
+
}
|
|
2685
2872
|
}
|
|
2686
2873
|
}
|
|
2687
2874
|
}
|
|
@@ -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,QAAQ,CAAC;AAC3B,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAGhD,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,kBAAkB,eAAe,CAAC;AAC/C,eAAO,MAAM,uBAAuB,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"chat-manager.d.ts","sourceRoot":"","sources":["../../src/shared/chat-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAGhD,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,kBAAkB,eAAe,CAAC;AAC/C,eAAO,MAAM,uBAAuB,aAAa,CAAC;AAClD,eAAO,MAAM,iBAAiB,eAAe,CAAC;AAE9C,eAAO,MAAM,sBAAsB;;;;;kBAKjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAMtE,eAAO,MAAM,YAAY,WAAW,CAAC;AAMrC,eAAO,MAAM,iBAAiB;;;;;;;;;4BAI5B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;kBAKjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,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,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]: { [nco.emailAddress]: email.from },
|
|
13
|
+
[nmo.emailTo]: { [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
|
}
|
package/dist/shared/team.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export type TeamMember = {
|
|
|
5
5
|
name?: string;
|
|
6
6
|
roles: string[];
|
|
7
7
|
pending: boolean;
|
|
8
|
+
expired?: boolean;
|
|
8
9
|
inviteUrl?: string;
|
|
9
10
|
teams: string[];
|
|
10
11
|
federated?: boolean;
|
|
@@ -51,25 +52,28 @@ export type DirectoryUser = {
|
|
|
51
52
|
username?: string;
|
|
52
53
|
email?: string;
|
|
53
54
|
name?: string;
|
|
55
|
+
firstName?: string;
|
|
56
|
+
lastName?: string;
|
|
54
57
|
memberships: DirectoryMembership[];
|
|
55
58
|
pending?: boolean;
|
|
56
59
|
inviteUrl?: string;
|
|
60
|
+
invitedTo?: DirectoryMembership[];
|
|
57
61
|
federated?: boolean;
|
|
62
|
+
nameReadOnly?: boolean;
|
|
58
63
|
enabled: boolean;
|
|
59
64
|
};
|
|
60
|
-
export type DirectoryScanCursor = {
|
|
61
|
-
offset: number;
|
|
62
|
-
matched: number;
|
|
63
|
-
};
|
|
64
65
|
export type TeamDirectory = {
|
|
65
66
|
users: DirectoryUser[];
|
|
66
67
|
truncated: boolean;
|
|
67
|
-
/** Rows matching the query across the realm, or undefined when
|
|
68
|
+
/** Rows matching the query across the realm, or undefined when Keycloak could not count them. */
|
|
68
69
|
total?: number;
|
|
69
70
|
hasMore: boolean;
|
|
70
|
-
scanCursor?: DirectoryScanCursor;
|
|
71
71
|
};
|
|
72
72
|
export declare const directoryPageSize = 20;
|
|
73
|
+
export declare const auth0NameLimits: {
|
|
74
|
+
readonly part: 150;
|
|
75
|
+
readonly whole: 300;
|
|
76
|
+
};
|
|
73
77
|
export declare const maxDirectoryPageSize = 100;
|
|
74
78
|
export type AssignableGroup = {
|
|
75
79
|
path: string;
|
|
@@ -136,6 +140,7 @@ export type InviteGrantOutcome = "applied" | "recorded" | "dropped";
|
|
|
136
140
|
export type InviteResult = {
|
|
137
141
|
email: string;
|
|
138
142
|
id?: string;
|
|
143
|
+
pending?: boolean;
|
|
139
144
|
outcome: InviteOutcome;
|
|
140
145
|
message?: string;
|
|
141
146
|
grant?: InviteGrantOutcome;
|