@manta-eu/client 0.4.0 → 0.5.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 +81 -2
- package/dist/generated/graphql.d.ts.map +1 -1
- package/dist/generated/graphql.js +56 -1
- package/dist/generated/graphql.js.map +1 -1
- package/dist/shared/chat-manager.d.ts +12 -0
- package/dist/shared/chat-manager.d.ts.map +1 -1
- package/dist/shared/chat-manager.js +14 -0
- package/dist/shared/chat-manager.js.map +1 -1
- package/package.json +5 -5
- package/src/generated/graphql.ts +159 -1
- package/src/shared/chat-manager.ts +18 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-manager.js","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,MAAM,CAAC,MAAM,mBAAmB,GAAG,qBAAqB,CAAC;AACzD,MAAM,CAAC,MAAM,cAAc,GAAG,oBAAoB,CAAC;AACnD,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC;AAClD,MAAM,CAAC,MAAM,kBAAkB,GAAG,YAAY,CAAC;AAC/C,MAAM,CAAC,MAAM,uBAAuB,GAAG,UAAU,CAAC;AAClD,MAAM,CAAC,MAAM,iBAAiB,GAAG,YAAY,CAAC;AAE9C,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,YAAY,CAAC;IACnD,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IACrB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAA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AC,CAAC,OAAO,CAAC,CAAC,CAAC;IACrB,KAAK,EAAE,sBAAsB;IAC7B,MAAM,EAAE,YAAY;IACpB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1B,OAAO,EAAE,iBAAiB,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,YAAY,CAAC;IACjD,MAAM,EAAE,wBAAwB,CAAC,QAAQ,EAAE;IAC3C,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IAC7C,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IACtC,gCAAgC,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;CAC7D,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manta-eu/client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "The Manta GraphQL contract and the typed React Query hooks generated from it",
|
|
5
5
|
"homepage": "https://developers.manta.eu",
|
|
6
6
|
"keywords": [
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
"uuid": "^13.0.0",
|
|
60
60
|
"whatwg-mimetype": "^5.0.0",
|
|
61
61
|
"zod": "^4.5.0",
|
|
62
|
-
"@manta-eu/datalog-parser": "0.
|
|
63
|
-
"@manta-eu/
|
|
64
|
-
"@manta-eu/lib": "0.
|
|
65
|
-
"@manta-eu/
|
|
62
|
+
"@manta-eu/datalog-parser": "0.5.1",
|
|
63
|
+
"@manta-eu/rdf-lib": "0.5.1",
|
|
64
|
+
"@manta-eu/lib": "0.5.1",
|
|
65
|
+
"@manta-eu/ldo": "0.5.1"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"@tanstack/react-query": "^5.100.10"
|
package/src/generated/graphql.ts
CHANGED
|
@@ -106,6 +106,7 @@ export type GQLAbortUploadResponse = {
|
|
|
106
106
|
|
|
107
107
|
export type GQLAccessibleDatastore = {
|
|
108
108
|
__typename?: "AccessibleDatastore";
|
|
109
|
+
datastoresInSubtree?: Maybe<Scalars["Int"]["output"]>;
|
|
109
110
|
depth: Scalars["Int"]["output"];
|
|
110
111
|
id: Scalars["String"]["output"];
|
|
111
112
|
live?: Maybe<Scalars["Boolean"]["output"]>;
|
|
@@ -572,6 +573,13 @@ export type GQLCreateMemoryResponse = {
|
|
|
572
573
|
memory?: Maybe<GQLMemory>;
|
|
573
574
|
};
|
|
574
575
|
|
|
576
|
+
export type GQLCreateStripeBillingPortalSessionResponse = {
|
|
577
|
+
__typename?: "CreateStripeBillingPortalSessionResponse";
|
|
578
|
+
error?: Maybe<Scalars["String"]["output"]>;
|
|
579
|
+
success: Scalars["Boolean"]["output"];
|
|
580
|
+
url?: Maybe<Scalars["String"]["output"]>;
|
|
581
|
+
};
|
|
582
|
+
|
|
575
583
|
export type GQLCreateStripeCheckoutSessionResponse = {
|
|
576
584
|
__typename?: "CreateStripeCheckoutSessionResponse";
|
|
577
585
|
error?: Maybe<Scalars["String"]["output"]>;
|
|
@@ -858,6 +866,7 @@ export type GQLDatastoreSubscription = {
|
|
|
858
866
|
|
|
859
867
|
export type GQLDatastoreTreeNode = {
|
|
860
868
|
__typename?: "DatastoreTreeNode";
|
|
869
|
+
accessibleId: Scalars["String"]["output"];
|
|
861
870
|
datastoreId?: Maybe<Scalars["String"]["output"]>;
|
|
862
871
|
depth: Scalars["Int"]["output"];
|
|
863
872
|
id: Scalars["String"]["output"];
|
|
@@ -1672,6 +1681,7 @@ export type GQLMutation = {
|
|
|
1672
1681
|
createDataConnection: GQLDataConnectionTestState;
|
|
1673
1682
|
createInferalIntegration: GQLCreateInferalIntegrationResponse;
|
|
1674
1683
|
createMemory: GQLCreateMemoryResponse;
|
|
1684
|
+
createStripeBillingPortalSession: GQLCreateStripeBillingPortalSessionResponse;
|
|
1675
1685
|
createStripeCheckoutSession: GQLCreateStripeCheckoutSessionResponse;
|
|
1676
1686
|
dashSetupConnect: GQLDashSetupProgress;
|
|
1677
1687
|
deleteActionPlan: GQLDeleteActionPlanResponse;
|
|
@@ -1819,7 +1829,13 @@ export type GQLMutationCreateMemoryArgs = {
|
|
|
1819
1829
|
input: GQLCreateMemoryInput;
|
|
1820
1830
|
};
|
|
1821
1831
|
|
|
1832
|
+
export type GQLMutationCreateStripeBillingPortalSessionArgs = {
|
|
1833
|
+
datastoreId: Scalars["String"]["input"];
|
|
1834
|
+
returnUrl: Scalars["String"]["input"];
|
|
1835
|
+
};
|
|
1836
|
+
|
|
1822
1837
|
export type GQLMutationCreateStripeCheckoutSessionArgs = {
|
|
1838
|
+
addOnPriceId?: InputMaybe<Scalars["String"]["input"]>;
|
|
1823
1839
|
cancelUrl: Scalars["String"]["input"];
|
|
1824
1840
|
datastoreId: Scalars["String"]["input"];
|
|
1825
1841
|
priceId: Scalars["String"]["input"];
|
|
@@ -2761,11 +2777,16 @@ export type GQLSessionUser = {
|
|
|
2761
2777
|
canManageSharedMemories: Scalars["Boolean"]["output"];
|
|
2762
2778
|
canManageStreams: Scalars["Boolean"]["output"];
|
|
2763
2779
|
canManageTeam: Scalars["Boolean"]["output"];
|
|
2780
|
+
canRename: Scalars["Boolean"]["output"];
|
|
2781
|
+
canUploadProfilePicture: Scalars["Boolean"]["output"];
|
|
2764
2782
|
datastore?: Maybe<GQLCustomerDatastore>;
|
|
2765
2783
|
email: Scalars["String"]["output"];
|
|
2784
|
+
federated: Scalars["Boolean"]["output"];
|
|
2785
|
+
firstName?: Maybe<Scalars["String"]["output"]>;
|
|
2766
2786
|
id: Scalars["String"]["output"];
|
|
2767
2787
|
isOperator: Scalars["Boolean"]["output"];
|
|
2768
2788
|
isOrgAdmin: Scalars["Boolean"]["output"];
|
|
2789
|
+
lastName?: Maybe<Scalars["String"]["output"]>;
|
|
2769
2790
|
memberOrgs: Array<Scalars["String"]["output"]>;
|
|
2770
2791
|
name?: Maybe<Scalars["String"]["output"]>;
|
|
2771
2792
|
picture?: Maybe<Scalars["String"]["output"]>;
|
|
@@ -3530,9 +3551,25 @@ export type GQLCreateMemoryMutation = {
|
|
|
3530
3551
|
};
|
|
3531
3552
|
};
|
|
3532
3553
|
|
|
3554
|
+
export type GQLCreateStripeBillingPortalSessionMutationVariables = Exact<{
|
|
3555
|
+
datastoreId: Scalars["String"]["input"];
|
|
3556
|
+
returnUrl: Scalars["String"]["input"];
|
|
3557
|
+
}>;
|
|
3558
|
+
|
|
3559
|
+
export type GQLCreateStripeBillingPortalSessionMutation = {
|
|
3560
|
+
__typename?: "Mutation";
|
|
3561
|
+
createStripeBillingPortalSession: {
|
|
3562
|
+
__typename?: "CreateStripeBillingPortalSessionResponse";
|
|
3563
|
+
success: boolean;
|
|
3564
|
+
url?: string | null;
|
|
3565
|
+
error?: string | null;
|
|
3566
|
+
};
|
|
3567
|
+
};
|
|
3568
|
+
|
|
3533
3569
|
export type GQLCreateStripeCheckoutSessionMutationVariables = Exact<{
|
|
3534
3570
|
datastoreId: Scalars["String"]["input"];
|
|
3535
3571
|
priceId: Scalars["String"]["input"];
|
|
3572
|
+
addOnPriceId?: InputMaybe<Scalars["String"]["input"]>;
|
|
3536
3573
|
successUrl: Scalars["String"]["input"];
|
|
3537
3574
|
cancelUrl: Scalars["String"]["input"];
|
|
3538
3575
|
}>;
|
|
@@ -5211,6 +5248,7 @@ export type GQLDatastoreTreeQuery = {
|
|
|
5211
5248
|
datastoreTree: Array<{
|
|
5212
5249
|
__typename?: "DatastoreTreeNode";
|
|
5213
5250
|
id: string;
|
|
5251
|
+
accessibleId: string;
|
|
5214
5252
|
name: string;
|
|
5215
5253
|
depth: number;
|
|
5216
5254
|
organizationId: string;
|
|
@@ -5652,6 +5690,28 @@ export type GQLOrganizationLinkingQuery = {
|
|
|
5652
5690
|
organizationLinking?: { __typename?: "OrganizationLinking"; pushEnabled: boolean; linkEnabled: boolean } | null;
|
|
5653
5691
|
};
|
|
5654
5692
|
|
|
5693
|
+
export type GQLProfileQueryVariables = Exact<{ [key: string]: never }>;
|
|
5694
|
+
|
|
5695
|
+
export type GQLProfileQuery = {
|
|
5696
|
+
__typename?: "Query";
|
|
5697
|
+
sessionContext: {
|
|
5698
|
+
__typename?: "SessionContext";
|
|
5699
|
+
user: {
|
|
5700
|
+
__typename?: "SessionUser";
|
|
5701
|
+
id: string;
|
|
5702
|
+
email: string;
|
|
5703
|
+
name?: string | null;
|
|
5704
|
+
firstName?: string | null;
|
|
5705
|
+
lastName?: string | null;
|
|
5706
|
+
federated: boolean;
|
|
5707
|
+
picture?: string | null;
|
|
5708
|
+
pictureSource?: GQLPictureSource | null;
|
|
5709
|
+
canRename: boolean;
|
|
5710
|
+
canUploadProfilePicture: boolean;
|
|
5711
|
+
};
|
|
5712
|
+
};
|
|
5713
|
+
};
|
|
5714
|
+
|
|
5655
5715
|
export type GQLRulesQueryVariables = Exact<{
|
|
5656
5716
|
ruleIri?: InputMaybe<Scalars["IRI"]["input"]>;
|
|
5657
5717
|
filterByOwner?: InputMaybe<Scalars["String"]["input"]>;
|
|
@@ -6623,11 +6683,53 @@ export const useCreateMemoryMutation = <TError = unknown, TContext = unknown>(
|
|
|
6623
6683
|
});
|
|
6624
6684
|
};
|
|
6625
6685
|
|
|
6686
|
+
export const CreateStripeBillingPortalSessionDocument = `
|
|
6687
|
+
mutation CreateStripeBillingPortalSession($datastoreId: String!, $returnUrl: String!) {
|
|
6688
|
+
createStripeBillingPortalSession(
|
|
6689
|
+
datastoreId: $datastoreId
|
|
6690
|
+
returnUrl: $returnUrl
|
|
6691
|
+
) {
|
|
6692
|
+
success
|
|
6693
|
+
url
|
|
6694
|
+
error
|
|
6695
|
+
}
|
|
6696
|
+
}
|
|
6697
|
+
`;
|
|
6698
|
+
|
|
6699
|
+
export const useCreateStripeBillingPortalSessionMutation = <TError = unknown, TContext = unknown>(
|
|
6700
|
+
client: GraphQLClient,
|
|
6701
|
+
options?: UseMutationOptions<
|
|
6702
|
+
GQLCreateStripeBillingPortalSessionMutation,
|
|
6703
|
+
TError,
|
|
6704
|
+
GQLCreateStripeBillingPortalSessionMutationVariables,
|
|
6705
|
+
TContext
|
|
6706
|
+
>,
|
|
6707
|
+
headers?: RequestInit["headers"],
|
|
6708
|
+
) => {
|
|
6709
|
+
return useMutation<
|
|
6710
|
+
GQLCreateStripeBillingPortalSessionMutation,
|
|
6711
|
+
TError,
|
|
6712
|
+
GQLCreateStripeBillingPortalSessionMutationVariables,
|
|
6713
|
+
TContext
|
|
6714
|
+
>({
|
|
6715
|
+
mutationKey: ["CreateStripeBillingPortalSession"],
|
|
6716
|
+
mutationFn: (variables?: GQLCreateStripeBillingPortalSessionMutationVariables) =>
|
|
6717
|
+
fetcher<GQLCreateStripeBillingPortalSessionMutation, GQLCreateStripeBillingPortalSessionMutationVariables>(
|
|
6718
|
+
client,
|
|
6719
|
+
CreateStripeBillingPortalSessionDocument,
|
|
6720
|
+
variables,
|
|
6721
|
+
headers,
|
|
6722
|
+
)(),
|
|
6723
|
+
...options,
|
|
6724
|
+
});
|
|
6725
|
+
};
|
|
6726
|
+
|
|
6626
6727
|
export const CreateStripeCheckoutSessionDocument = `
|
|
6627
|
-
mutation CreateStripeCheckoutSession($datastoreId: String!, $priceId: String!, $successUrl: String!, $cancelUrl: String!) {
|
|
6728
|
+
mutation CreateStripeCheckoutSession($datastoreId: String!, $priceId: String!, $addOnPriceId: String, $successUrl: String!, $cancelUrl: String!) {
|
|
6628
6729
|
createStripeCheckoutSession(
|
|
6629
6730
|
datastoreId: $datastoreId
|
|
6630
6731
|
priceId: $priceId
|
|
6732
|
+
addOnPriceId: $addOnPriceId
|
|
6631
6733
|
successUrl: $successUrl
|
|
6632
6734
|
cancelUrl: $cancelUrl
|
|
6633
6735
|
) {
|
|
@@ -10296,6 +10398,7 @@ export const DatastoreTreeDocument = `
|
|
|
10296
10398
|
query DatastoreTree {
|
|
10297
10399
|
datastoreTree {
|
|
10298
10400
|
id
|
|
10401
|
+
accessibleId
|
|
10299
10402
|
name
|
|
10300
10403
|
depth
|
|
10301
10404
|
organizationId
|
|
@@ -11523,6 +11626,61 @@ export const useSuspenseOrganizationLinkingQuery = <TData = GQLOrganizationLinki
|
|
|
11523
11626
|
useSuspenseOrganizationLinkingQuery.getKey = (variables?: GQLOrganizationLinkingQueryVariables) =>
|
|
11524
11627
|
variables === undefined ? ["OrganizationLinkingSuspense"] : ["OrganizationLinkingSuspense", variables];
|
|
11525
11628
|
|
|
11629
|
+
export const ProfileDocument = `
|
|
11630
|
+
query Profile {
|
|
11631
|
+
sessionContext {
|
|
11632
|
+
user {
|
|
11633
|
+
id
|
|
11634
|
+
email
|
|
11635
|
+
name
|
|
11636
|
+
firstName
|
|
11637
|
+
lastName
|
|
11638
|
+
federated
|
|
11639
|
+
picture
|
|
11640
|
+
pictureSource
|
|
11641
|
+
canRename
|
|
11642
|
+
canUploadProfilePicture
|
|
11643
|
+
}
|
|
11644
|
+
}
|
|
11645
|
+
}
|
|
11646
|
+
`;
|
|
11647
|
+
|
|
11648
|
+
export const useProfileQuery = <TData = GQLProfileQuery, TError = unknown>(
|
|
11649
|
+
client: GraphQLClient,
|
|
11650
|
+
variables?: GQLProfileQueryVariables,
|
|
11651
|
+
options?: Omit<UseQueryOptions<GQLProfileQuery, TError, TData>, "queryKey"> & {
|
|
11652
|
+
queryKey?: UseQueryOptions<GQLProfileQuery, TError, TData>["queryKey"];
|
|
11653
|
+
},
|
|
11654
|
+
headers?: RequestInit["headers"],
|
|
11655
|
+
) => {
|
|
11656
|
+
return useQuery<GQLProfileQuery, TError, TData>({
|
|
11657
|
+
queryKey: variables === undefined ? ["Profile"] : ["Profile", variables],
|
|
11658
|
+
queryFn: fetcher<GQLProfileQuery, GQLProfileQueryVariables>(client, ProfileDocument, variables, headers),
|
|
11659
|
+
...options,
|
|
11660
|
+
});
|
|
11661
|
+
};
|
|
11662
|
+
|
|
11663
|
+
useProfileQuery.getKey = (variables?: GQLProfileQueryVariables) =>
|
|
11664
|
+
variables === undefined ? ["Profile"] : ["Profile", variables];
|
|
11665
|
+
|
|
11666
|
+
export const useSuspenseProfileQuery = <TData = GQLProfileQuery, TError = unknown>(
|
|
11667
|
+
client: GraphQLClient,
|
|
11668
|
+
variables?: GQLProfileQueryVariables,
|
|
11669
|
+
options?: Omit<UseSuspenseQueryOptions<GQLProfileQuery, TError, TData>, "queryKey"> & {
|
|
11670
|
+
queryKey?: UseSuspenseQueryOptions<GQLProfileQuery, TError, TData>["queryKey"];
|
|
11671
|
+
},
|
|
11672
|
+
headers?: RequestInit["headers"],
|
|
11673
|
+
) => {
|
|
11674
|
+
return useSuspenseQuery<GQLProfileQuery, TError, TData>({
|
|
11675
|
+
queryKey: variables === undefined ? ["ProfileSuspense"] : ["ProfileSuspense", variables],
|
|
11676
|
+
queryFn: fetcher<GQLProfileQuery, GQLProfileQueryVariables>(client, ProfileDocument, variables, headers),
|
|
11677
|
+
...options,
|
|
11678
|
+
});
|
|
11679
|
+
};
|
|
11680
|
+
|
|
11681
|
+
useSuspenseProfileQuery.getKey = (variables?: GQLProfileQueryVariables) =>
|
|
11682
|
+
variables === undefined ? ["ProfileSuspense"] : ["ProfileSuspense", variables];
|
|
11683
|
+
|
|
11526
11684
|
export const RulesDocument = `
|
|
11527
11685
|
query Rules($ruleIri: IRI, $filterByOwner: String, $namedGraph: IRI, $typeFilter: [IRI!]) {
|
|
11528
11686
|
rules(
|
|
@@ -9,6 +9,22 @@ export const thinkChatFacetPath = "think-chat";
|
|
|
9
9
|
export const defaultConversationName = "New chat";
|
|
10
10
|
export const defaultFolderName = "New folder";
|
|
11
11
|
|
|
12
|
+
export const conversationModeSchema = z.enum(["datastore", "group"]);
|
|
13
|
+
export type ConversationMode = z.infer<typeof conversationModeSchema>;
|
|
14
|
+
export const chatModeQueryParam = "mode";
|
|
15
|
+
|
|
16
|
+
export function chatModeQuery(mode: ConversationMode | undefined): Record<string, string> {
|
|
17
|
+
return mode === "group" ? { [chatModeQueryParam]: mode } : {};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export function withChatModeQueryParam(href: string, mode: ConversationMode | undefined): string {
|
|
21
|
+
if (mode !== "group") return href;
|
|
22
|
+
|
|
23
|
+
const url = new URL(href, "http://placeholder");
|
|
24
|
+
url.searchParams.set(chatModeQueryParam, mode);
|
|
25
|
+
return `${url.pathname}${url.search}${url.hash}`;
|
|
26
|
+
}
|
|
27
|
+
|
|
12
28
|
export const chatManagerScopeSchema = z.strictObject({
|
|
13
29
|
version: z.literal(1),
|
|
14
30
|
realm: z.string().min(1),
|
|
@@ -16,6 +32,8 @@ export const chatManagerScopeSchema = z.strictObject({
|
|
|
16
32
|
userId: z.string().min(1),
|
|
17
33
|
// 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
34
|
customAppClientId: z.string().min(1).optional(),
|
|
35
|
+
// Present only for a group view's manager, so every other manager keeps its name.
|
|
36
|
+
mode: z.literal("group").optional(),
|
|
19
37
|
});
|
|
20
38
|
|
|
21
39
|
export type ChatManagerScope = z.infer<typeof chatManagerScopeSchema>;
|