@manta-eu/client 0.8.0 → 0.8.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.
Files changed (38) hide show
  1. package/dist/generated/graphql.d.ts +944 -757
  2. package/dist/generated/graphql.d.ts.map +1 -1
  3. package/dist/generated/graphql.js +132 -0
  4. package/dist/generated/graphql.js.map +1 -1
  5. package/dist/graphql-clients.d.ts.map +1 -1
  6. package/dist/shared/action-document.js.map +1 -1
  7. package/dist/shared/action-graph.d.ts +1 -1
  8. package/dist/shared/action-graph.d.ts.map +1 -1
  9. package/dist/shared/action-graph.js.map +1 -1
  10. package/dist/shared/chat-manager.d.ts +2 -2
  11. package/dist/shared/chat-turn-errors.d.ts +4 -4
  12. package/dist/shared/chat-turn-errors.d.ts.map +1 -1
  13. package/dist/shared/constants.d.ts +2 -0
  14. package/dist/shared/constants.d.ts.map +1 -1
  15. package/dist/shared/constants.js +5 -0
  16. package/dist/shared/constants.js.map +1 -1
  17. package/dist/shared/datastore-id.js +1 -1
  18. package/dist/shared/error-utils.d.ts +1 -1
  19. package/dist/shared/index.d.ts.map +1 -1
  20. package/dist/shared/maintenance-schedule.js.map +1 -1
  21. package/dist/shared/memory-citation-sampling.js.map +1 -1
  22. package/dist/shared/memory-decay.js.map +1 -1
  23. package/dist/shared/memory-diversity.js.map +1 -1
  24. package/dist/shared/memory-entity-recall.js.map +1 -1
  25. package/dist/shared/memory-keyword-recall.js.map +1 -1
  26. package/dist/shared/memory-kind-iris.d.ts.map +1 -1
  27. package/dist/shared/memory-preload-gate.js.map +1 -1
  28. package/dist/shared/memory-volatility.d.ts.map +1 -1
  29. package/dist/shared/memory-volatility.js.map +1 -1
  30. package/dist/shared/model.d.ts.map +1 -1
  31. package/dist/shared/permissions.d.ts.map +1 -1
  32. package/dist/shared/rdf-namespaces.d.ts.map +1 -1
  33. package/dist/shared/team.d.ts.map +1 -1
  34. package/dist/shared/team.js.map +1 -1
  35. package/package.json +10 -10
  36. package/src/generated/graphql.ts +362 -0
  37. package/src/shared/constants.ts +6 -0
  38. package/src/shared/datastore-id.ts +1 -1
@@ -860,6 +860,7 @@ export type GQLDatastoreSubscription = {
860
860
  inGoodStanding: Scalars["Boolean"]["output"];
861
861
  interval?: Maybe<Scalars["String"]["output"]>;
862
862
  intervalCount?: Maybe<Scalars["Int"]["output"]>;
863
+ managed: Scalars["Boolean"]["output"];
863
864
  productIds: Array<Scalars["String"]["output"]>;
864
865
  status: Scalars["String"]["output"];
865
866
  };
@@ -1635,6 +1636,15 @@ export type GQLMetaAdAccount = {
1635
1636
  unavailableReason?: Maybe<GQLSetupAccountUnavailableReason>;
1636
1637
  };
1637
1638
 
1639
+ export type GQLMetaInterestSuggestion = {
1640
+ __typename?: "MetaInterestSuggestion";
1641
+ audienceSizeLowerBound?: Maybe<Scalars["Float"]["output"]>;
1642
+ audienceSizeUpperBound?: Maybe<Scalars["Float"]["output"]>;
1643
+ id: Scalars["String"]["output"];
1644
+ name: Scalars["String"]["output"];
1645
+ path: Array<Scalars["String"]["output"]>;
1646
+ };
1647
+
1638
1648
  export type GQLMetaPage = {
1639
1649
  __typename?: "MetaPage";
1640
1650
  id: Scalars["String"]["output"];
@@ -1760,6 +1770,7 @@ export type GQLMutation = {
1760
1770
  provisionDatastore: GQLProvisionDatastoreResponse;
1761
1771
  reconfirmMemory: GQLUpdateMemoryResponse;
1762
1772
  recordHotelProfile: GQLRecordHotelProfileResponse;
1773
+ refreshResources: GQLRefreshResourcesResponse;
1763
1774
  registerDatastore: GQLRegisterDatastoreResponse;
1764
1775
  releaseRuleOwnership: GQLReleaseRuleOwnershipResponse;
1765
1776
  removeCustomAppUser: GQLCustomAppUserRemoval;
@@ -2072,6 +2083,10 @@ export type GQLMutationRecordHotelProfileArgs = {
2072
2083
  input: GQLHotelProfileInput;
2073
2084
  };
2074
2085
 
2086
+ export type GQLMutationRefreshResourcesArgs = {
2087
+ resources: Array<GQLRefreshResourceInput>;
2088
+ };
2089
+
2075
2090
  export type GQLMutationRegisterDatastoreArgs = {
2076
2091
  datastoreId: Scalars["String"]["input"];
2077
2092
  };
@@ -2369,6 +2384,7 @@ export type GQLQuery = {
2369
2384
  memoryRedundancyReview: GQLMemoryRedundancyResult;
2370
2385
  memoryReplaySeries: GQLMemoryReplaySeriesResult;
2371
2386
  memorySchemas: GQLMemorySchemasResponse;
2387
+ metaInterestSuggestions: Array<GQLMetaInterestSuggestion>;
2372
2388
  metaSetupProgress: GQLMetaSetupProgress;
2373
2389
  microsoftAdsSetupProgress: GQLMicrosoftAdsSetupProgress;
2374
2390
  nodeProperties: GQLNodePropertiesResponse;
@@ -2377,6 +2393,8 @@ export type GQLQuery = {
2377
2393
  organizationLinking?: Maybe<GQLOrganizationLinking>;
2378
2394
  organizationNameAvailable: GQLOrganizationNameAvailability;
2379
2395
  pendingInvitations: Array<GQLPendingInvitation>;
2396
+ refreshResourceCapabilities: GQLRefreshResourceCapabilitiesResponse;
2397
+ refreshResourcesStatus: GQLRefreshResourcesStatusResponse;
2380
2398
  rules: GQLRulesResponse;
2381
2399
  sessionContext: GQLSessionContext;
2382
2400
  shaclShapes: GQLShaclShapesResponse;
@@ -2525,6 +2543,13 @@ export type GQLQueryMemoryReplaySeriesArgs = {
2525
2543
  limit?: InputMaybe<Scalars["Int"]["input"]>;
2526
2544
  };
2527
2545
 
2546
+ export type GQLQueryMetaInterestSuggestionsArgs = {
2547
+ adAccountIri: Scalars["IRI"]["input"];
2548
+ limit?: InputMaybe<Scalars["Int"]["input"]>;
2549
+ locale?: InputMaybe<Scalars["String"]["input"]>;
2550
+ term: Scalars["String"]["input"];
2551
+ };
2552
+
2528
2553
  export type GQLQueryNodePropertiesArgs = {
2529
2554
  nodeIri: Scalars["String"]["input"];
2530
2555
  planGraphIri?: InputMaybe<Scalars["IRI"]["input"]>;
@@ -2540,6 +2565,14 @@ export type GQLQueryOrganizationNameAvailableArgs = {
2540
2565
  name: Scalars["String"]["input"];
2541
2566
  };
2542
2567
 
2568
+ export type GQLQueryRefreshResourceCapabilitiesArgs = {
2569
+ rdfTypes: Array<Scalars["String"]["input"]>;
2570
+ };
2571
+
2572
+ export type GQLQueryRefreshResourcesStatusArgs = {
2573
+ workflowId: Scalars["String"]["input"];
2574
+ };
2575
+
2543
2576
  export type GQLQueryRulesArgs = {
2544
2577
  filterByOwner?: InputMaybe<Scalars["String"]["input"]>;
2545
2578
  includeDependencyGraph?: InputMaybe<Scalars["Boolean"]["input"]>;
@@ -2613,6 +2646,53 @@ export type GQLRecordHotelProfileResponse = {
2613
2646
  error?: Maybe<Scalars["String"]["output"]>;
2614
2647
  };
2615
2648
 
2649
+ export type GQLRefreshResourceCapabilitiesResponse = {
2650
+ __typename?: "RefreshResourceCapabilitiesResponse";
2651
+ capabilities: Array<GQLRefreshResourceCapability>;
2652
+ };
2653
+
2654
+ export type GQLRefreshResourceCapability = {
2655
+ __typename?: "RefreshResourceCapability";
2656
+ rdfType: Scalars["String"]["output"];
2657
+ supportsRefresh: Scalars["Boolean"]["output"];
2658
+ };
2659
+
2660
+ export type GQLRefreshResourceInput = {
2661
+ iri: Scalars["String"]["input"];
2662
+ type: Scalars["String"]["input"];
2663
+ };
2664
+
2665
+ export type GQLRefreshResourceResult = {
2666
+ __typename?: "RefreshResourceResult";
2667
+ iri: Scalars["String"]["output"];
2668
+ refreshStatus: GQLRefreshResourceStatus;
2669
+ type: Scalars["String"]["output"];
2670
+ };
2671
+
2672
+ export enum GQLRefreshResourceStatus {
2673
+ NotReadable = "NOT_READABLE",
2674
+ NotSynced = "NOT_SYNCED",
2675
+ Synced = "SYNCED",
2676
+ }
2677
+
2678
+ export type GQLRefreshResourcesResponse = {
2679
+ __typename?: "RefreshResourcesResponse";
2680
+ workflowId: Scalars["String"]["output"];
2681
+ };
2682
+
2683
+ export type GQLRefreshResourcesStatusResponse = {
2684
+ __typename?: "RefreshResourcesStatusResponse";
2685
+ error?: Maybe<Scalars["String"]["output"]>;
2686
+ results?: Maybe<Array<GQLRefreshResourceResult>>;
2687
+ status: GQLRefreshWorkflowStatus;
2688
+ };
2689
+
2690
+ export enum GQLRefreshWorkflowStatus {
2691
+ Completed = "COMPLETED",
2692
+ Failed = "FAILED",
2693
+ Running = "RUNNING",
2694
+ }
2695
+
2616
2696
  export type GQLRegisterDatastoreResponse = {
2617
2697
  __typename?: "RegisterDatastoreResponse";
2618
2698
  error?: Maybe<Scalars["String"]["output"]>;
@@ -4265,6 +4345,15 @@ export type GQLReconfirmMemoryMutation = {
4265
4345
  };
4266
4346
  };
4267
4347
 
4348
+ export type GQLRefreshResourcesMutationVariables = Exact<{
4349
+ resources: Array<GQLRefreshResourceInput> | GQLRefreshResourceInput;
4350
+ }>;
4351
+
4352
+ export type GQLRefreshResourcesMutation = {
4353
+ __typename?: "Mutation";
4354
+ refreshResources: { __typename?: "RefreshResourcesResponse"; workflowId: string };
4355
+ };
4356
+
4268
4357
  export type GQLRegisterDatastoreMutationVariables = Exact<{
4269
4358
  datastoreId: Scalars["String"]["input"];
4270
4359
  }>;
@@ -5368,6 +5457,7 @@ export type GQLDatastoreSubscriptionsQuery = {
5368
5457
  datastoreId: string;
5369
5458
  status: string;
5370
5459
  inGoodStanding: boolean;
5460
+ managed: boolean;
5371
5461
  amount?: number | null;
5372
5462
  currency?: string | null;
5373
5463
  interval?: string | null;
@@ -5738,6 +5828,25 @@ export type GQLMemorySchemasQuery = {
5738
5828
  };
5739
5829
  };
5740
5830
 
5831
+ export type GQLMetaInterestSuggestionsQueryVariables = Exact<{
5832
+ adAccountIri: Scalars["IRI"]["input"];
5833
+ term: Scalars["String"]["input"];
5834
+ limit?: InputMaybe<Scalars["Int"]["input"]>;
5835
+ locale?: InputMaybe<Scalars["String"]["input"]>;
5836
+ }>;
5837
+
5838
+ export type GQLMetaInterestSuggestionsQuery = {
5839
+ __typename?: "Query";
5840
+ metaInterestSuggestions: Array<{
5841
+ __typename?: "MetaInterestSuggestion";
5842
+ id: string;
5843
+ name: string;
5844
+ path: Array<string>;
5845
+ audienceSizeLowerBound?: number | null;
5846
+ audienceSizeUpperBound?: number | null;
5847
+ }>;
5848
+ };
5849
+
5741
5850
  export type GQLMetaSetupProgressQueryVariables = Exact<{ [key: string]: never }>;
5742
5851
 
5743
5852
  export type GQLMetaSetupProgressQuery = {
@@ -5866,6 +5975,37 @@ export type GQLProfileQuery = {
5866
5975
  };
5867
5976
  };
5868
5977
 
5978
+ export type GQLRefreshResourceCapabilitiesQueryVariables = Exact<{
5979
+ rdfTypes: Array<Scalars["String"]["input"]> | Scalars["String"]["input"];
5980
+ }>;
5981
+
5982
+ export type GQLRefreshResourceCapabilitiesQuery = {
5983
+ __typename?: "Query";
5984
+ refreshResourceCapabilities: {
5985
+ __typename?: "RefreshResourceCapabilitiesResponse";
5986
+ capabilities: Array<{ __typename?: "RefreshResourceCapability"; rdfType: string; supportsRefresh: boolean }>;
5987
+ };
5988
+ };
5989
+
5990
+ export type GQLRefreshResourcesStatusQueryVariables = Exact<{
5991
+ workflowId: Scalars["String"]["input"];
5992
+ }>;
5993
+
5994
+ export type GQLRefreshResourcesStatusQuery = {
5995
+ __typename?: "Query";
5996
+ refreshResourcesStatus: {
5997
+ __typename?: "RefreshResourcesStatusResponse";
5998
+ status: GQLRefreshWorkflowStatus;
5999
+ error?: string | null;
6000
+ results?: Array<{
6001
+ __typename?: "RefreshResourceResult";
6002
+ iri: string;
6003
+ type: string;
6004
+ refreshStatus: GQLRefreshResourceStatus;
6005
+ }> | null;
6006
+ };
6007
+ };
6008
+
5869
6009
  export type GQLRulesQueryVariables = Exact<{
5870
6010
  ruleIri?: InputMaybe<Scalars["IRI"]["input"]>;
5871
6011
  filterByOwner?: InputMaybe<Scalars["String"]["input"]>;
@@ -8303,6 +8443,32 @@ export const useReconfirmMemoryMutation = <TError = unknown, TContext = unknown>
8303
8443
  });
8304
8444
  };
8305
8445
 
8446
+ export const RefreshResourcesDocument = `
8447
+ mutation RefreshResources($resources: [RefreshResourceInput!]!) {
8448
+ refreshResources(resources: $resources) {
8449
+ workflowId
8450
+ }
8451
+ }
8452
+ `;
8453
+
8454
+ export const useRefreshResourcesMutation = <TError = unknown, TContext = unknown>(
8455
+ client: GraphQLClient,
8456
+ options?: UseMutationOptions<GQLRefreshResourcesMutation, TError, GQLRefreshResourcesMutationVariables, TContext>,
8457
+ headers?: RequestInit["headers"],
8458
+ ) => {
8459
+ return useMutation<GQLRefreshResourcesMutation, TError, GQLRefreshResourcesMutationVariables, TContext>({
8460
+ mutationKey: ["RefreshResources"],
8461
+ mutationFn: (variables?: GQLRefreshResourcesMutationVariables) =>
8462
+ fetcher<GQLRefreshResourcesMutation, GQLRefreshResourcesMutationVariables>(
8463
+ client,
8464
+ RefreshResourcesDocument,
8465
+ variables,
8466
+ headers,
8467
+ )(),
8468
+ ...options,
8469
+ });
8470
+ };
8471
+
8306
8472
  export const RegisterDatastoreDocument = `
8307
8473
  mutation RegisterDatastore($datastoreId: String!) {
8308
8474
  registerDatastore(datastoreId: $datastoreId) {
@@ -10636,6 +10802,7 @@ export const DatastoreSubscriptionsDocument = `
10636
10802
  datastoreId
10637
10803
  status
10638
10804
  inGoodStanding
10805
+ managed
10639
10806
  amount
10640
10807
  currency
10641
10808
  interval
@@ -11615,6 +11782,73 @@ export const useSuspenseMemorySchemasQuery = <TData = GQLMemorySchemasQuery, TEr
11615
11782
  useSuspenseMemorySchemasQuery.getKey = (variables?: GQLMemorySchemasQueryVariables) =>
11616
11783
  variables === undefined ? ["MemorySchemasSuspense"] : ["MemorySchemasSuspense", variables];
11617
11784
 
11785
+ export const MetaInterestSuggestionsDocument = `
11786
+ query MetaInterestSuggestions($adAccountIri: IRI!, $term: String!, $limit: Int, $locale: String) {
11787
+ metaInterestSuggestions(
11788
+ adAccountIri: $adAccountIri
11789
+ term: $term
11790
+ limit: $limit
11791
+ locale: $locale
11792
+ ) {
11793
+ id
11794
+ name
11795
+ path
11796
+ audienceSizeLowerBound
11797
+ audienceSizeUpperBound
11798
+ }
11799
+ }
11800
+ `;
11801
+
11802
+ export const useMetaInterestSuggestionsQuery = <TData = GQLMetaInterestSuggestionsQuery, TError = unknown>(
11803
+ client: GraphQLClient,
11804
+ variables: GQLMetaInterestSuggestionsQueryVariables,
11805
+ options?: Omit<UseQueryOptions<GQLMetaInterestSuggestionsQuery, TError, TData>, "queryKey"> & {
11806
+ queryKey?: UseQueryOptions<GQLMetaInterestSuggestionsQuery, TError, TData>["queryKey"];
11807
+ },
11808
+ headers?: RequestInit["headers"],
11809
+ ) => {
11810
+ return useQuery<GQLMetaInterestSuggestionsQuery, TError, TData>({
11811
+ queryKey: ["MetaInterestSuggestions", variables],
11812
+ queryFn: fetcher<GQLMetaInterestSuggestionsQuery, GQLMetaInterestSuggestionsQueryVariables>(
11813
+ client,
11814
+ MetaInterestSuggestionsDocument,
11815
+ variables,
11816
+ headers,
11817
+ ),
11818
+ ...options,
11819
+ });
11820
+ };
11821
+
11822
+ useMetaInterestSuggestionsQuery.getKey = (variables: GQLMetaInterestSuggestionsQueryVariables) => [
11823
+ "MetaInterestSuggestions",
11824
+ variables,
11825
+ ];
11826
+
11827
+ export const useSuspenseMetaInterestSuggestionsQuery = <TData = GQLMetaInterestSuggestionsQuery, TError = unknown>(
11828
+ client: GraphQLClient,
11829
+ variables: GQLMetaInterestSuggestionsQueryVariables,
11830
+ options?: Omit<UseSuspenseQueryOptions<GQLMetaInterestSuggestionsQuery, TError, TData>, "queryKey"> & {
11831
+ queryKey?: UseSuspenseQueryOptions<GQLMetaInterestSuggestionsQuery, TError, TData>["queryKey"];
11832
+ },
11833
+ headers?: RequestInit["headers"],
11834
+ ) => {
11835
+ return useSuspenseQuery<GQLMetaInterestSuggestionsQuery, TError, TData>({
11836
+ queryKey: ["MetaInterestSuggestionsSuspense", variables],
11837
+ queryFn: fetcher<GQLMetaInterestSuggestionsQuery, GQLMetaInterestSuggestionsQueryVariables>(
11838
+ client,
11839
+ MetaInterestSuggestionsDocument,
11840
+ variables,
11841
+ headers,
11842
+ ),
11843
+ ...options,
11844
+ });
11845
+ };
11846
+
11847
+ useSuspenseMetaInterestSuggestionsQuery.getKey = (variables: GQLMetaInterestSuggestionsQueryVariables) => [
11848
+ "MetaInterestSuggestionsSuspense",
11849
+ variables,
11850
+ ];
11851
+
11618
11852
  export const MetaSetupProgressDocument = `
11619
11853
  query MetaSetupProgress {
11620
11854
  metaSetupProgress {
@@ -12044,6 +12278,134 @@ export const useSuspenseProfileQuery = <TData = GQLProfileQuery, TError = unknow
12044
12278
  useSuspenseProfileQuery.getKey = (variables?: GQLProfileQueryVariables) =>
12045
12279
  variables === undefined ? ["ProfileSuspense"] : ["ProfileSuspense", variables];
12046
12280
 
12281
+ export const RefreshResourceCapabilitiesDocument = `
12282
+ query RefreshResourceCapabilities($rdfTypes: [String!]!) {
12283
+ refreshResourceCapabilities(rdfTypes: $rdfTypes) {
12284
+ capabilities {
12285
+ rdfType
12286
+ supportsRefresh
12287
+ }
12288
+ }
12289
+ }
12290
+ `;
12291
+
12292
+ export const useRefreshResourceCapabilitiesQuery = <TData = GQLRefreshResourceCapabilitiesQuery, TError = unknown>(
12293
+ client: GraphQLClient,
12294
+ variables: GQLRefreshResourceCapabilitiesQueryVariables,
12295
+ options?: Omit<UseQueryOptions<GQLRefreshResourceCapabilitiesQuery, TError, TData>, "queryKey"> & {
12296
+ queryKey?: UseQueryOptions<GQLRefreshResourceCapabilitiesQuery, TError, TData>["queryKey"];
12297
+ },
12298
+ headers?: RequestInit["headers"],
12299
+ ) => {
12300
+ return useQuery<GQLRefreshResourceCapabilitiesQuery, TError, TData>({
12301
+ queryKey: ["RefreshResourceCapabilities", variables],
12302
+ queryFn: fetcher<GQLRefreshResourceCapabilitiesQuery, GQLRefreshResourceCapabilitiesQueryVariables>(
12303
+ client,
12304
+ RefreshResourceCapabilitiesDocument,
12305
+ variables,
12306
+ headers,
12307
+ ),
12308
+ ...options,
12309
+ });
12310
+ };
12311
+
12312
+ useRefreshResourceCapabilitiesQuery.getKey = (variables: GQLRefreshResourceCapabilitiesQueryVariables) => [
12313
+ "RefreshResourceCapabilities",
12314
+ variables,
12315
+ ];
12316
+
12317
+ export const useSuspenseRefreshResourceCapabilitiesQuery = <
12318
+ TData = GQLRefreshResourceCapabilitiesQuery,
12319
+ TError = unknown,
12320
+ >(
12321
+ client: GraphQLClient,
12322
+ variables: GQLRefreshResourceCapabilitiesQueryVariables,
12323
+ options?: Omit<UseSuspenseQueryOptions<GQLRefreshResourceCapabilitiesQuery, TError, TData>, "queryKey"> & {
12324
+ queryKey?: UseSuspenseQueryOptions<GQLRefreshResourceCapabilitiesQuery, TError, TData>["queryKey"];
12325
+ },
12326
+ headers?: RequestInit["headers"],
12327
+ ) => {
12328
+ return useSuspenseQuery<GQLRefreshResourceCapabilitiesQuery, TError, TData>({
12329
+ queryKey: ["RefreshResourceCapabilitiesSuspense", variables],
12330
+ queryFn: fetcher<GQLRefreshResourceCapabilitiesQuery, GQLRefreshResourceCapabilitiesQueryVariables>(
12331
+ client,
12332
+ RefreshResourceCapabilitiesDocument,
12333
+ variables,
12334
+ headers,
12335
+ ),
12336
+ ...options,
12337
+ });
12338
+ };
12339
+
12340
+ useSuspenseRefreshResourceCapabilitiesQuery.getKey = (variables: GQLRefreshResourceCapabilitiesQueryVariables) => [
12341
+ "RefreshResourceCapabilitiesSuspense",
12342
+ variables,
12343
+ ];
12344
+
12345
+ export const RefreshResourcesStatusDocument = `
12346
+ query RefreshResourcesStatus($workflowId: String!) {
12347
+ refreshResourcesStatus(workflowId: $workflowId) {
12348
+ status
12349
+ results {
12350
+ iri
12351
+ type
12352
+ refreshStatus
12353
+ }
12354
+ error
12355
+ }
12356
+ }
12357
+ `;
12358
+
12359
+ export const useRefreshResourcesStatusQuery = <TData = GQLRefreshResourcesStatusQuery, TError = unknown>(
12360
+ client: GraphQLClient,
12361
+ variables: GQLRefreshResourcesStatusQueryVariables,
12362
+ options?: Omit<UseQueryOptions<GQLRefreshResourcesStatusQuery, TError, TData>, "queryKey"> & {
12363
+ queryKey?: UseQueryOptions<GQLRefreshResourcesStatusQuery, TError, TData>["queryKey"];
12364
+ },
12365
+ headers?: RequestInit["headers"],
12366
+ ) => {
12367
+ return useQuery<GQLRefreshResourcesStatusQuery, TError, TData>({
12368
+ queryKey: ["RefreshResourcesStatus", variables],
12369
+ queryFn: fetcher<GQLRefreshResourcesStatusQuery, GQLRefreshResourcesStatusQueryVariables>(
12370
+ client,
12371
+ RefreshResourcesStatusDocument,
12372
+ variables,
12373
+ headers,
12374
+ ),
12375
+ ...options,
12376
+ });
12377
+ };
12378
+
12379
+ useRefreshResourcesStatusQuery.getKey = (variables: GQLRefreshResourcesStatusQueryVariables) => [
12380
+ "RefreshResourcesStatus",
12381
+ variables,
12382
+ ];
12383
+
12384
+ export const useSuspenseRefreshResourcesStatusQuery = <TData = GQLRefreshResourcesStatusQuery, TError = unknown>(
12385
+ client: GraphQLClient,
12386
+ variables: GQLRefreshResourcesStatusQueryVariables,
12387
+ options?: Omit<UseSuspenseQueryOptions<GQLRefreshResourcesStatusQuery, TError, TData>, "queryKey"> & {
12388
+ queryKey?: UseSuspenseQueryOptions<GQLRefreshResourcesStatusQuery, TError, TData>["queryKey"];
12389
+ },
12390
+ headers?: RequestInit["headers"],
12391
+ ) => {
12392
+ return useSuspenseQuery<GQLRefreshResourcesStatusQuery, TError, TData>({
12393
+ queryKey: ["RefreshResourcesStatusSuspense", variables],
12394
+ queryFn: fetcher<GQLRefreshResourcesStatusQuery, GQLRefreshResourcesStatusQueryVariables>(
12395
+ client,
12396
+ RefreshResourcesStatusDocument,
12397
+ variables,
12398
+ headers,
12399
+ ),
12400
+ ...options,
12401
+ });
12402
+ };
12403
+
12404
+ useSuspenseRefreshResourcesStatusQuery.getKey = (variables: GQLRefreshResourcesStatusQueryVariables) => [
12405
+ "RefreshResourcesStatusSuspense",
12406
+ variables,
12407
+ ];
12408
+
12047
12409
  export const RulesDocument = `
12048
12410
  query Rules($ruleIri: IRI, $filterByOwner: String, $namedGraph: IRI, $typeFilter: [IRI!]) {
12049
12411
  rules(
@@ -8,6 +8,12 @@ export const onboardingCompletedCookieName = "manta-onboarding-completed";
8
8
 
9
9
  export const errorRoutePath = "/error";
10
10
 
11
+ // Keycloak access tokens live 300s. Each login-status poll renews a token with at most
12
+ // accessTokenRotationWindowMs left; window - poll (60s) absorbs background-tab timer throttling,
13
+ // and renewing only past 180s of age keeps Keycloak refreshes to ~one per 3 min however many tabs poll.
14
+ export const loginStatusPollMs = 60_000;
15
+ export const accessTokenRotationWindowMs = 120_000;
16
+
11
17
  export const scheduleToolingFlagKey = "schedule-tooling-enabled";
12
18
  export const teamActivationFlagKey = "team-activation-enabled";
13
19
  export const memoryExtractionFlagKey = "memory-extraction-enabled";
@@ -11,7 +11,7 @@ export function deriveDatastoreId(organizationName: string, segments: string[]):
11
11
  return (
12
12
  [organizationName, ...segments]
13
13
  .map(slugify)
14
- // eslint-disable-next-line @manta-eu/prefer-is-present -- agents/vite.config.ts loads this file without lib
14
+ // oxlint-disable-next-line @manta-eu/prefer-is-present -- agents/vite.config.ts loads this file without lib
15
15
  .filter((slug) => slug.length > 0)
16
16
  .join("-")
17
17
  );