@manta-eu/client 0.1.10 → 0.2.0

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.
@@ -55,6 +55,29 @@ export var GQLConversationStarterSource;
55
55
  GQLConversationStarterSource["KnowledgeGraph"] = "KNOWLEDGE_GRAPH";
56
56
  GQLConversationStarterSource["Plan"] = "PLAN";
57
57
  })(GQLConversationStarterSource || (GQLConversationStarterSource = {}));
58
+ export var GQLCustomAppKind;
59
+ (function (GQLCustomAppKind) {
60
+ GQLCustomAppKind["Machine"] = "MACHINE";
61
+ GQLCustomAppKind["SignIn"] = "SIGN_IN";
62
+ })(GQLCustomAppKind || (GQLCustomAppKind = {}));
63
+ export var GQLCustomAppPermission;
64
+ (function (GQLCustomAppPermission) {
65
+ GQLCustomAppPermission["ShareChats"] = "SHARE_CHATS";
66
+ GQLCustomAppPermission["WriteData"] = "WRITE_DATA";
67
+ })(GQLCustomAppPermission || (GQLCustomAppPermission = {}));
68
+ export var GQLCustomAppUserStatus;
69
+ (function (GQLCustomAppUserStatus) {
70
+ GQLCustomAppUserStatus["Active"] = "ACTIVE";
71
+ GQLCustomAppUserStatus["Erased"] = "ERASED";
72
+ GQLCustomAppUserStatus["Unknown"] = "UNKNOWN";
73
+ GQLCustomAppUserStatus["Unlinked"] = "UNLINKED";
74
+ })(GQLCustomAppUserStatus || (GQLCustomAppUserStatus = {}));
75
+ export var GQLCustomAppUserStatusFilter;
76
+ (function (GQLCustomAppUserStatusFilter) {
77
+ GQLCustomAppUserStatusFilter["AppOnly"] = "APP_ONLY";
78
+ GQLCustomAppUserStatusFilter["Invited"] = "INVITED";
79
+ GQLCustomAppUserStatusFilter["MantaMember"] = "MANTA_MEMBER";
80
+ })(GQLCustomAppUserStatusFilter || (GQLCustomAppUserStatusFilter = {}));
58
81
  export var GQLDataConnectionStatus;
59
82
  (function (GQLDataConnectionStatus) {
60
83
  GQLDataConnectionStatus["Active"] = "ACTIVE";
@@ -74,15 +97,6 @@ export var GQLExecuteActionErrorCode;
74
97
  GQLExecuteActionErrorCode["Conflict"] = "CONFLICT";
75
98
  GQLExecuteActionErrorCode["Unknown"] = "UNKNOWN";
76
99
  })(GQLExecuteActionErrorCode || (GQLExecuteActionErrorCode = {}));
77
- export var GQLExternalAppKind;
78
- (function (GQLExternalAppKind) {
79
- GQLExternalAppKind["Machine"] = "MACHINE";
80
- GQLExternalAppKind["SignIn"] = "SIGN_IN";
81
- })(GQLExternalAppKind || (GQLExternalAppKind = {}));
82
- export var GQLExternalAppPermission;
83
- (function (GQLExternalAppPermission) {
84
- GQLExternalAppPermission["WriteData"] = "WRITE_DATA";
85
- })(GQLExternalAppPermission || (GQLExternalAppPermission = {}));
86
100
  export var GQLFactValueStatus;
87
101
  (function (GQLFactValueStatus) {
88
102
  GQLFactValueStatus["Changed"] = "CHANGED";
@@ -295,15 +309,15 @@ export var GQLUploadPurpose;
295
309
  GQLUploadPurpose["Bundle"] = "BUNDLE";
296
310
  GQLUploadPurpose["File"] = "FILE";
297
311
  })(GQLUploadPurpose || (GQLUploadPurpose = {}));
298
- export const ExternalAppConnectionFieldsFragmentDoc = `
299
- fragment ExternalAppConnectionFields on ExternalAppConnection {
312
+ export const CustomAppConnectionFieldsFragmentDoc = `
313
+ fragment CustomAppConnectionFields on CustomAppConnection {
300
314
  issuer
301
315
  discoveryUrl
302
316
  tokenEndpoint
303
317
  }
304
318
  `;
305
- export const ExternalAppFieldsFragmentDoc = `
306
- fragment ExternalAppFields on ExternalApp {
319
+ export const CustomAppFieldsFragmentDoc = `
320
+ fragment CustomAppFields on CustomApp {
307
321
  clientId
308
322
  name
309
323
  kind
@@ -608,25 +622,9 @@ export const useConsolidateMemoriesMutation = (client, options, headers) => {
608
622
  ...options,
609
623
  });
610
624
  };
611
- export const CreateDataConnectionDocument = `
612
- mutation CreateDataConnection($input: CreateDataConnectionInput!) {
613
- createDataConnection(input: $input) {
614
- id
615
- status
616
- error
617
- }
618
- }
619
- `;
620
- export const useCreateDataConnectionMutation = (client, options, headers) => {
621
- return useMutation({
622
- mutationKey: ["CreateDataConnection"],
623
- mutationFn: (variables) => fetcher(client, CreateDataConnectionDocument, variables, headers)(),
624
- ...options,
625
- });
626
- };
627
- export const CreateExternalAppDocument = `
628
- mutation CreateExternalApp($org: String, $name: String!, $kind: ExternalAppKind, $redirectUris: [String!], $homeUrl: String, $machineAccess: Boolean, $datastores: [String!], $permissions: [ExternalAppPermission!]) {
629
- createExternalApp(
625
+ export const CreateCustomAppDocument = `
626
+ mutation CreateCustomApp($org: String, $name: String!, $kind: CustomAppKind, $redirectUris: [String!], $homeUrl: String, $machineAccess: Boolean, $datastores: [String!], $permissions: [CustomAppPermission!]) {
627
+ createCustomApp(
630
628
  org: $org
631
629
  name: $name
632
630
  kind: $kind
@@ -637,20 +635,36 @@ export const CreateExternalAppDocument = `
637
635
  permissions: $permissions
638
636
  ) {
639
637
  app {
640
- ...ExternalAppFields
638
+ ...CustomAppFields
641
639
  }
642
640
  clientSecret
643
641
  connection {
644
- ...ExternalAppConnectionFields
642
+ ...CustomAppConnectionFields
645
643
  }
646
644
  }
647
645
  }
648
- ${ExternalAppFieldsFragmentDoc}
649
- ${ExternalAppConnectionFieldsFragmentDoc}`;
650
- export const useCreateExternalAppMutation = (client, options, headers) => {
646
+ ${CustomAppFieldsFragmentDoc}
647
+ ${CustomAppConnectionFieldsFragmentDoc}`;
648
+ export const useCreateCustomAppMutation = (client, options, headers) => {
651
649
  return useMutation({
652
- mutationKey: ["CreateExternalApp"],
653
- mutationFn: (variables) => fetcher(client, CreateExternalAppDocument, variables, headers)(),
650
+ mutationKey: ["CreateCustomApp"],
651
+ mutationFn: (variables) => fetcher(client, CreateCustomAppDocument, variables, headers)(),
652
+ ...options,
653
+ });
654
+ };
655
+ export const CreateDataConnectionDocument = `
656
+ mutation CreateDataConnection($input: CreateDataConnectionInput!) {
657
+ createDataConnection(input: $input) {
658
+ id
659
+ status
660
+ error
661
+ }
662
+ }
663
+ `;
664
+ export const useCreateDataConnectionMutation = (client, options, headers) => {
665
+ return useMutation({
666
+ mutationKey: ["CreateDataConnection"],
667
+ mutationFn: (variables) => fetcher(client, CreateDataConnectionDocument, variables, headers)(),
654
668
  ...options,
655
669
  });
656
670
  };
@@ -751,6 +765,21 @@ export const useDeleteActionPlanMutation = (client, options, headers) => {
751
765
  ...options,
752
766
  });
753
767
  };
768
+ export const DeleteCustomAppDocument = `
769
+ mutation DeleteCustomApp($org: String, $clientId: String!) {
770
+ deleteCustomApp(org: $org, clientId: $clientId) {
771
+ clientId
772
+ deleted
773
+ }
774
+ }
775
+ `;
776
+ export const useDeleteCustomAppMutation = (client, options, headers) => {
777
+ return useMutation({
778
+ mutationKey: ["DeleteCustomApp"],
779
+ mutationFn: (variables) => fetcher(client, DeleteCustomAppDocument, variables, headers)(),
780
+ ...options,
781
+ });
782
+ };
754
783
  export const DeleteDataConnectionDocument = `
755
784
  mutation DeleteDataConnection($id: String!) {
756
785
  deleteDataConnection(id: $id) {
@@ -765,18 +794,18 @@ export const useDeleteDataConnectionMutation = (client, options, headers) => {
765
794
  ...options,
766
795
  });
767
796
  };
768
- export const DeleteExternalAppDocument = `
769
- mutation DeleteExternalApp($org: String, $clientId: String!) {
770
- deleteExternalApp(org: $org, clientId: $clientId) {
771
- clientId
772
- deleted
797
+ export const DeleteDatastoreDocument = `
798
+ mutation DeleteDatastore($datastoreId: String!, $confirmName: String!) {
799
+ deleteDatastore(datastoreId: $datastoreId, confirmName: $confirmName) {
800
+ success
801
+ error
773
802
  }
774
803
  }
775
804
  `;
776
- export const useDeleteExternalAppMutation = (client, options, headers) => {
805
+ export const useDeleteDatastoreMutation = (client, options, headers) => {
777
806
  return useMutation({
778
- mutationKey: ["DeleteExternalApp"],
779
- mutationFn: (variables) => fetcher(client, DeleteExternalAppDocument, variables, headers)(),
807
+ mutationKey: ["DeleteDatastore"],
808
+ mutationFn: (variables) => fetcher(client, DeleteDatastoreDocument, variables, headers)(),
780
809
  ...options,
781
810
  });
782
811
  };
@@ -842,6 +871,18 @@ export const useDisconnectConnectedAccountMutation = (client, options, headers)
842
871
  ...options,
843
872
  });
844
873
  };
874
+ export const DisconnectCustomAppDocument = `
875
+ mutation DisconnectCustomApp($clientId: String!) {
876
+ disconnectCustomApp(clientId: $clientId)
877
+ }
878
+ `;
879
+ export const useDisconnectCustomAppMutation = (client, options, headers) => {
880
+ return useMutation({
881
+ mutationKey: ["DisconnectCustomApp"],
882
+ mutationFn: (variables) => fetcher(client, DisconnectCustomAppDocument, variables, headers)(),
883
+ ...options,
884
+ });
885
+ };
845
886
  export const DisconnectGmailIntegrationDocument = `
846
887
  mutation DisconnectGmailIntegration($email: String!) {
847
888
  disconnectGmailIntegration(email: $email) {
@@ -1055,6 +1096,49 @@ export const useInitiateUploadMutation = (client, options, headers) => {
1055
1096
  ...options,
1056
1097
  });
1057
1098
  };
1099
+ export const InviteCustomAppUserDocument = `
1100
+ mutation InviteCustomAppUser($org: String, $clientId: String!, $userId: String!, $email: String, $teams: [String!], $allTeams: Boolean) {
1101
+ inviteCustomAppUser(
1102
+ org: $org
1103
+ clientId: $clientId
1104
+ userId: $userId
1105
+ email: $email
1106
+ teams: $teams
1107
+ allTeams: $allTeams
1108
+ ) {
1109
+ userId
1110
+ invitedAt
1111
+ mantaMember
1112
+ }
1113
+ }
1114
+ `;
1115
+ export const useInviteCustomAppUserMutation = (client, options, headers) => {
1116
+ return useMutation({
1117
+ mutationKey: ["InviteCustomAppUser"],
1118
+ mutationFn: (variables) => fetcher(client, InviteCustomAppUserDocument, variables, headers)(),
1119
+ ...options,
1120
+ });
1121
+ };
1122
+ export const InviteCustomAppUsersDocument = `
1123
+ mutation InviteCustomAppUsers($org: String, $clientId: String!, $people: [CustomAppUserInvitationInput!]!) {
1124
+ inviteCustomAppUsers(org: $org, clientId: $clientId, people: $people) {
1125
+ userId
1126
+ error
1127
+ user {
1128
+ userId
1129
+ invitedAt
1130
+ mantaMember
1131
+ }
1132
+ }
1133
+ }
1134
+ `;
1135
+ export const useInviteCustomAppUsersMutation = (client, options, headers) => {
1136
+ return useMutation({
1137
+ mutationKey: ["InviteCustomAppUsers"],
1138
+ mutationFn: (variables) => fetcher(client, InviteCustomAppUsersDocument, variables, headers)(),
1139
+ ...options,
1140
+ });
1141
+ };
1058
1142
  export const LinkOrganizationToProviderDocument = `
1059
1143
  mutation LinkOrganizationToProvider($organizationId: String!) {
1060
1144
  linkOrganizationToProvider(organizationId: $organizationId) {
@@ -1291,6 +1375,57 @@ export const useReleaseRuleOwnershipMutation = (client, options, headers) => {
1291
1375
  ...options,
1292
1376
  });
1293
1377
  };
1378
+ export const RemoveCustomAppUserDocument = `
1379
+ mutation RemoveCustomAppUser($org: String, $clientId: String!, $userId: String!) {
1380
+ removeCustomAppUser(org: $org, clientId: $clientId, userId: $userId) {
1381
+ userId
1382
+ status
1383
+ }
1384
+ }
1385
+ `;
1386
+ export const useRemoveCustomAppUserMutation = (client, options, headers) => {
1387
+ return useMutation({
1388
+ mutationKey: ["RemoveCustomAppUser"],
1389
+ mutationFn: (variables) => fetcher(client, RemoveCustomAppUserDocument, variables, headers)(),
1390
+ ...options,
1391
+ });
1392
+ };
1393
+ export const RemoveCustomAppUsersCreatedBetweenDocument = `
1394
+ mutation RemoveCustomAppUsersCreatedBetween($org: String, $clientId: String!, $createdFrom: String!, $createdUntil: String!) {
1395
+ removeCustomAppUsersCreatedBetween(
1396
+ org: $org
1397
+ clientId: $clientId
1398
+ createdFrom: $createdFrom
1399
+ createdUntil: $createdUntil
1400
+ ) {
1401
+ removed
1402
+ remaining
1403
+ }
1404
+ }
1405
+ `;
1406
+ export const useRemoveCustomAppUsersCreatedBetweenMutation = (client, options, headers) => {
1407
+ return useMutation({
1408
+ mutationKey: ["RemoveCustomAppUsersCreatedBetween"],
1409
+ mutationFn: (variables) => fetcher(client, RemoveCustomAppUsersCreatedBetweenDocument, variables, headers)(),
1410
+ ...options,
1411
+ });
1412
+ };
1413
+ export const RemoveCustomAppUsersDocument = `
1414
+ mutation RemoveCustomAppUsers($org: String, $clientId: String!, $userIds: [String!]!) {
1415
+ removeCustomAppUsers(org: $org, clientId: $clientId, userIds: $userIds) {
1416
+ userId
1417
+ status
1418
+ error
1419
+ }
1420
+ }
1421
+ `;
1422
+ export const useRemoveCustomAppUsersMutation = (client, options, headers) => {
1423
+ return useMutation({
1424
+ mutationKey: ["RemoveCustomAppUsers"],
1425
+ mutationFn: (variables) => fetcher(client, RemoveCustomAppUsersDocument, variables, headers)(),
1426
+ ...options,
1427
+ });
1428
+ };
1294
1429
  export const RemoveDatastoreDocument = `
1295
1430
  mutation RemoveDatastore($datastoreId: String!) {
1296
1431
  removeDatastore(datastoreId: $datastoreId) {
@@ -1401,56 +1536,56 @@ export const useRevokeOperatorRoleMutation = (client, options, headers) => {
1401
1536
  ...options,
1402
1537
  });
1403
1538
  };
1404
- export const RevokePreviousExternalAppSecretDocument = `
1405
- mutation RevokePreviousExternalAppSecret($org: String, $clientId: String!) {
1406
- revokePreviousExternalAppSecret(org: $org, clientId: $clientId) {
1407
- ...ExternalAppFields
1539
+ export const RevokePreviousCustomAppSecretDocument = `
1540
+ mutation RevokePreviousCustomAppSecret($org: String, $clientId: String!) {
1541
+ revokePreviousCustomAppSecret(org: $org, clientId: $clientId) {
1542
+ ...CustomAppFields
1408
1543
  }
1409
1544
  }
1410
- ${ExternalAppFieldsFragmentDoc}`;
1411
- export const useRevokePreviousExternalAppSecretMutation = (client, options, headers) => {
1545
+ ${CustomAppFieldsFragmentDoc}`;
1546
+ export const useRevokePreviousCustomAppSecretMutation = (client, options, headers) => {
1412
1547
  return useMutation({
1413
- mutationKey: ["RevokePreviousExternalAppSecret"],
1414
- mutationFn: (variables) => fetcher(client, RevokePreviousExternalAppSecretDocument, variables, headers)(),
1548
+ mutationKey: ["RevokePreviousCustomAppSecret"],
1549
+ mutationFn: (variables) => fetcher(client, RevokePreviousCustomAppSecretDocument, variables, headers)(),
1415
1550
  ...options,
1416
1551
  });
1417
1552
  };
1418
- export const RotateExternalAppSecretDocument = `
1419
- mutation RotateExternalAppSecret($org: String, $clientId: String!, $keepPrevious: Boolean) {
1420
- rotateExternalAppSecret(
1553
+ export const RotateCustomAppSecretDocument = `
1554
+ mutation RotateCustomAppSecret($org: String, $clientId: String!, $keepPrevious: Boolean) {
1555
+ rotateCustomAppSecret(
1421
1556
  org: $org
1422
1557
  clientId: $clientId
1423
1558
  keepPrevious: $keepPrevious
1424
1559
  ) {
1425
1560
  app {
1426
- ...ExternalAppFields
1561
+ ...CustomAppFields
1427
1562
  }
1428
1563
  clientSecret
1429
1564
  connection {
1430
- ...ExternalAppConnectionFields
1565
+ ...CustomAppConnectionFields
1431
1566
  }
1432
1567
  }
1433
1568
  }
1434
- ${ExternalAppFieldsFragmentDoc}
1435
- ${ExternalAppConnectionFieldsFragmentDoc}`;
1436
- export const useRotateExternalAppSecretMutation = (client, options, headers) => {
1569
+ ${CustomAppFieldsFragmentDoc}
1570
+ ${CustomAppConnectionFieldsFragmentDoc}`;
1571
+ export const useRotateCustomAppSecretMutation = (client, options, headers) => {
1437
1572
  return useMutation({
1438
- mutationKey: ["RotateExternalAppSecret"],
1439
- mutationFn: (variables) => fetcher(client, RotateExternalAppSecretDocument, variables, headers)(),
1573
+ mutationKey: ["RotateCustomAppSecret"],
1574
+ mutationFn: (variables) => fetcher(client, RotateCustomAppSecretDocument, variables, headers)(),
1440
1575
  ...options,
1441
1576
  });
1442
1577
  };
1443
- export const SetExternalAppEnabledDocument = `
1444
- mutation SetExternalAppEnabled($org: String, $clientId: String!, $enabled: Boolean!) {
1445
- setExternalAppEnabled(org: $org, clientId: $clientId, enabled: $enabled) {
1446
- ...ExternalAppFields
1578
+ export const SetCustomAppEnabledDocument = `
1579
+ mutation SetCustomAppEnabled($org: String, $clientId: String!, $enabled: Boolean!) {
1580
+ setCustomAppEnabled(org: $org, clientId: $clientId, enabled: $enabled) {
1581
+ ...CustomAppFields
1447
1582
  }
1448
1583
  }
1449
- ${ExternalAppFieldsFragmentDoc}`;
1450
- export const useSetExternalAppEnabledMutation = (client, options, headers) => {
1584
+ ${CustomAppFieldsFragmentDoc}`;
1585
+ export const useSetCustomAppEnabledMutation = (client, options, headers) => {
1451
1586
  return useMutation({
1452
- mutationKey: ["SetExternalAppEnabled"],
1453
- mutationFn: (variables) => fetcher(client, SetExternalAppEnabledDocument, variables, headers)(),
1587
+ mutationKey: ["SetCustomAppEnabled"],
1588
+ mutationFn: (variables) => fetcher(client, SetCustomAppEnabledDocument, variables, headers)(),
1454
1589
  ...options,
1455
1590
  });
1456
1591
  };
@@ -1512,6 +1647,29 @@ export const useSyncGmailIntegrationMutation = (client, options, headers) => {
1512
1647
  ...options,
1513
1648
  });
1514
1649
  };
1650
+ export const UpdateCustomAppDocument = `
1651
+ mutation UpdateCustomApp($org: String, $clientId: String!, $name: String, $redirectUris: [String!], $homeUrl: String, $machineAccess: Boolean, $datastores: [String!], $permissions: [CustomAppPermission!]) {
1652
+ updateCustomApp(
1653
+ org: $org
1654
+ clientId: $clientId
1655
+ name: $name
1656
+ redirectUris: $redirectUris
1657
+ homeUrl: $homeUrl
1658
+ machineAccess: $machineAccess
1659
+ datastores: $datastores
1660
+ permissions: $permissions
1661
+ ) {
1662
+ ...CustomAppFields
1663
+ }
1664
+ }
1665
+ ${CustomAppFieldsFragmentDoc}`;
1666
+ export const useUpdateCustomAppMutation = (client, options, headers) => {
1667
+ return useMutation({
1668
+ mutationKey: ["UpdateCustomApp"],
1669
+ mutationFn: (variables) => fetcher(client, UpdateCustomAppDocument, variables, headers)(),
1670
+ ...options,
1671
+ });
1672
+ };
1515
1673
  export const UpdateDataConnectionDocument = `
1516
1674
  mutation UpdateDataConnection($input: UpdateDataConnectionInput!) {
1517
1675
  updateDataConnection(input: $input) {
@@ -1528,29 +1686,6 @@ export const useUpdateDataConnectionMutation = (client, options, headers) => {
1528
1686
  ...options,
1529
1687
  });
1530
1688
  };
1531
- export const UpdateExternalAppDocument = `
1532
- mutation UpdateExternalApp($org: String, $clientId: String!, $name: String, $redirectUris: [String!], $homeUrl: String, $machineAccess: Boolean, $datastores: [String!], $permissions: [ExternalAppPermission!]) {
1533
- updateExternalApp(
1534
- org: $org
1535
- clientId: $clientId
1536
- name: $name
1537
- redirectUris: $redirectUris
1538
- homeUrl: $homeUrl
1539
- machineAccess: $machineAccess
1540
- datastores: $datastores
1541
- permissions: $permissions
1542
- ) {
1543
- ...ExternalAppFields
1544
- }
1545
- }
1546
- ${ExternalAppFieldsFragmentDoc}`;
1547
- export const useUpdateExternalAppMutation = (client, options, headers) => {
1548
- return useMutation({
1549
- mutationKey: ["UpdateExternalApp"],
1550
- mutationFn: (variables) => fetcher(client, UpdateExternalAppDocument, variables, headers)(),
1551
- ...options,
1552
- });
1553
- };
1554
1689
  export const UpdateMemoryDocument = `
1555
1690
  mutation UpdateMemory($input: UpdateMemoryInput!) {
1556
1691
  updateMemory(input: $input) {
@@ -1999,6 +2134,31 @@ export const useSuspenseConnectedAccountsQuery = (client, variables, options, he
1999
2134
  });
2000
2135
  };
2001
2136
  useSuspenseConnectedAccountsQuery.getKey = (variables) => variables === undefined ? ["ConnectedAccountsSuspense"] : ["ConnectedAccountsSuspense", variables];
2137
+ export const ConnectedCustomAppsDocument = `
2138
+ query ConnectedCustomApps {
2139
+ connectedCustomApps {
2140
+ clientId
2141
+ name
2142
+ orgName
2143
+ }
2144
+ }
2145
+ `;
2146
+ export const useConnectedCustomAppsQuery = (client, variables, options, headers) => {
2147
+ return useQuery({
2148
+ queryKey: variables === undefined ? ["ConnectedCustomApps"] : ["ConnectedCustomApps", variables],
2149
+ queryFn: fetcher(client, ConnectedCustomAppsDocument, variables, headers),
2150
+ ...options,
2151
+ });
2152
+ };
2153
+ useConnectedCustomAppsQuery.getKey = (variables) => variables === undefined ? ["ConnectedCustomApps"] : ["ConnectedCustomApps", variables];
2154
+ export const useSuspenseConnectedCustomAppsQuery = (client, variables, options, headers) => {
2155
+ return useSuspenseQuery({
2156
+ queryKey: variables === undefined ? ["ConnectedCustomAppsSuspense"] : ["ConnectedCustomAppsSuspense", variables],
2157
+ queryFn: fetcher(client, ConnectedCustomAppsDocument, variables, headers),
2158
+ ...options,
2159
+ });
2160
+ };
2161
+ useSuspenseConnectedCustomAppsQuery.getKey = (variables) => variables === undefined ? ["ConnectedCustomAppsSuspense"] : ["ConnectedCustomAppsSuspense", variables];
2002
2162
  export const ConversationStartersDocument = `
2003
2163
  query ConversationStarters($planGraphIri: IRI) {
2004
2164
  conversationStarters(planGraphIri: $planGraphIri) {
@@ -2101,6 +2261,130 @@ useSuspenseCurrentFactValueQuery.getKey = (variables) => [
2101
2261
  "CurrentFactValueSuspense",
2102
2262
  variables,
2103
2263
  ];
2264
+ export const CustomAppDatastoresDocument = `
2265
+ query CustomAppDatastores($org: String) {
2266
+ customAppDatastores(org: $org) {
2267
+ id
2268
+ name
2269
+ depth
2270
+ }
2271
+ }
2272
+ `;
2273
+ export const useCustomAppDatastoresQuery = (client, variables, options, headers) => {
2274
+ return useQuery({
2275
+ queryKey: variables === undefined ? ["CustomAppDatastores"] : ["CustomAppDatastores", variables],
2276
+ queryFn: fetcher(client, CustomAppDatastoresDocument, variables, headers),
2277
+ ...options,
2278
+ });
2279
+ };
2280
+ useCustomAppDatastoresQuery.getKey = (variables) => variables === undefined ? ["CustomAppDatastores"] : ["CustomAppDatastores", variables];
2281
+ export const useSuspenseCustomAppDatastoresQuery = (client, variables, options, headers) => {
2282
+ return useSuspenseQuery({
2283
+ queryKey: variables === undefined ? ["CustomAppDatastoresSuspense"] : ["CustomAppDatastoresSuspense", variables],
2284
+ queryFn: fetcher(client, CustomAppDatastoresDocument, variables, headers),
2285
+ ...options,
2286
+ });
2287
+ };
2288
+ useSuspenseCustomAppDatastoresQuery.getKey = (variables) => variables === undefined ? ["CustomAppDatastoresSuspense"] : ["CustomAppDatastoresSuspense", variables];
2289
+ export const CustomAppUsersDocument = `
2290
+ query CustomAppUsers($org: String, $clientId: String!, $first: Int, $max: Int, $createdFrom: String, $createdUntil: String, $search: String, $status: CustomAppUserStatusFilter) {
2291
+ customAppUsers(
2292
+ org: $org
2293
+ clientId: $clientId
2294
+ first: $first
2295
+ max: $max
2296
+ createdFrom: $createdFrom
2297
+ createdUntil: $createdUntil
2298
+ search: $search
2299
+ status: $status
2300
+ ) {
2301
+ users {
2302
+ userId
2303
+ name
2304
+ email
2305
+ teams
2306
+ allTeams
2307
+ createdAt
2308
+ chatCount
2309
+ invitedAt
2310
+ mantaMember
2311
+ }
2312
+ total
2313
+ }
2314
+ }
2315
+ `;
2316
+ export const useCustomAppUsersQuery = (client, variables, options, headers) => {
2317
+ return useQuery({
2318
+ queryKey: ["CustomAppUsers", variables],
2319
+ queryFn: fetcher(client, CustomAppUsersDocument, variables, headers),
2320
+ ...options,
2321
+ });
2322
+ };
2323
+ useCustomAppUsersQuery.getKey = (variables) => ["CustomAppUsers", variables];
2324
+ export const useSuspenseCustomAppUsersQuery = (client, variables, options, headers) => {
2325
+ return useSuspenseQuery({
2326
+ queryKey: ["CustomAppUsersSuspense", variables],
2327
+ queryFn: fetcher(client, CustomAppUsersDocument, variables, headers),
2328
+ ...options,
2329
+ });
2330
+ };
2331
+ useSuspenseCustomAppUsersQuery.getKey = (variables) => [
2332
+ "CustomAppUsersSuspense",
2333
+ variables,
2334
+ ];
2335
+ export const CustomAppDocument = `
2336
+ query CustomApp($org: String, $clientId: String!) {
2337
+ customApp(org: $org, clientId: $clientId) {
2338
+ ...CustomAppFields
2339
+ }
2340
+ }
2341
+ ${CustomAppFieldsFragmentDoc}`;
2342
+ export const useCustomAppQuery = (client, variables, options, headers) => {
2343
+ return useQuery({
2344
+ queryKey: ["CustomApp", variables],
2345
+ queryFn: fetcher(client, CustomAppDocument, variables, headers),
2346
+ ...options,
2347
+ });
2348
+ };
2349
+ useCustomAppQuery.getKey = (variables) => ["CustomApp", variables];
2350
+ export const useSuspenseCustomAppQuery = (client, variables, options, headers) => {
2351
+ return useSuspenseQuery({
2352
+ queryKey: ["CustomAppSuspense", variables],
2353
+ queryFn: fetcher(client, CustomAppDocument, variables, headers),
2354
+ ...options,
2355
+ });
2356
+ };
2357
+ useSuspenseCustomAppQuery.getKey = (variables) => ["CustomAppSuspense", variables];
2358
+ export const CustomAppsDocument = `
2359
+ query CustomApps($org: String, $first: Int, $max: Int, $search: String) {
2360
+ customApps(org: $org, first: $first, max: $max, search: $search) {
2361
+ apps {
2362
+ ...CustomAppFields
2363
+ }
2364
+ nextFirst
2365
+ connection {
2366
+ ...CustomAppConnectionFields
2367
+ }
2368
+ }
2369
+ }
2370
+ ${CustomAppFieldsFragmentDoc}
2371
+ ${CustomAppConnectionFieldsFragmentDoc}`;
2372
+ export const useCustomAppsQuery = (client, variables, options, headers) => {
2373
+ return useQuery({
2374
+ queryKey: variables === undefined ? ["CustomApps"] : ["CustomApps", variables],
2375
+ queryFn: fetcher(client, CustomAppsDocument, variables, headers),
2376
+ ...options,
2377
+ });
2378
+ };
2379
+ useCustomAppsQuery.getKey = (variables) => variables === undefined ? ["CustomApps"] : ["CustomApps", variables];
2380
+ export const useSuspenseCustomAppsQuery = (client, variables, options, headers) => {
2381
+ return useSuspenseQuery({
2382
+ queryKey: variables === undefined ? ["CustomAppsSuspense"] : ["CustomAppsSuspense", variables],
2383
+ queryFn: fetcher(client, CustomAppsDocument, variables, headers),
2384
+ ...options,
2385
+ });
2386
+ };
2387
+ useSuspenseCustomAppsQuery.getKey = (variables) => variables === undefined ? ["CustomAppsSuspense"] : ["CustomAppsSuspense", variables];
2104
2388
  export const CustomerDatastoresDocument = `
2105
2389
  query CustomerDatastores {
2106
2390
  customerDatastores {
@@ -2445,61 +2729,6 @@ useSuspenseExplainRdFoxFactQuery.getKey = (variables) => [
2445
2729
  "ExplainRDFoxFactSuspense",
2446
2730
  variables,
2447
2731
  ];
2448
- export const ExternalAppDatastoresDocument = `
2449
- query ExternalAppDatastores($org: String) {
2450
- externalAppDatastores(org: $org) {
2451
- id
2452
- name
2453
- depth
2454
- }
2455
- }
2456
- `;
2457
- export const useExternalAppDatastoresQuery = (client, variables, options, headers) => {
2458
- return useQuery({
2459
- queryKey: variables === undefined ? ["ExternalAppDatastores"] : ["ExternalAppDatastores", variables],
2460
- queryFn: fetcher(client, ExternalAppDatastoresDocument, variables, headers),
2461
- ...options,
2462
- });
2463
- };
2464
- useExternalAppDatastoresQuery.getKey = (variables) => variables === undefined ? ["ExternalAppDatastores"] : ["ExternalAppDatastores", variables];
2465
- export const useSuspenseExternalAppDatastoresQuery = (client, variables, options, headers) => {
2466
- return useSuspenseQuery({
2467
- queryKey: variables === undefined ? ["ExternalAppDatastoresSuspense"] : ["ExternalAppDatastoresSuspense", variables],
2468
- queryFn: fetcher(client, ExternalAppDatastoresDocument, variables, headers),
2469
- ...options,
2470
- });
2471
- };
2472
- useSuspenseExternalAppDatastoresQuery.getKey = (variables) => variables === undefined ? ["ExternalAppDatastoresSuspense"] : ["ExternalAppDatastoresSuspense", variables];
2473
- export const ExternalAppsDocument = `
2474
- query ExternalApps($org: String, $first: Int, $max: Int, $search: String) {
2475
- externalApps(org: $org, first: $first, max: $max, search: $search) {
2476
- apps {
2477
- ...ExternalAppFields
2478
- }
2479
- nextFirst
2480
- connection {
2481
- ...ExternalAppConnectionFields
2482
- }
2483
- }
2484
- }
2485
- ${ExternalAppFieldsFragmentDoc}
2486
- ${ExternalAppConnectionFieldsFragmentDoc}`;
2487
- export const useExternalAppsQuery = (client, variables, options, headers) => {
2488
- return useQuery({
2489
- queryKey: variables === undefined ? ["ExternalApps"] : ["ExternalApps", variables],
2490
- queryFn: fetcher(client, ExternalAppsDocument, variables, headers),
2491
- ...options,
2492
- });
2493
- };
2494
- useExternalAppsQuery.getKey = (variables) => variables === undefined ? ["ExternalApps"] : ["ExternalApps", variables];
2495
- export const useSuspenseExternalAppsQuery = (client, variables, options, headers) => {
2496
- return useSuspenseQuery({
2497
- queryKey: variables === undefined ? ["ExternalAppsSuspense"] : ["ExternalAppsSuspense", variables],
2498
- queryFn: fetcher(client, ExternalAppsDocument, variables, headers),
2499
- ...options,
2500
- });
2501
- };
2502
- useSuspenseExternalAppsQuery.getKey = (variables) => variables === undefined ? ["ExternalAppsSuspense"] : ["ExternalAppsSuspense", variables];
2503
2732
  export const GmailIntegrationsDocument = `
2504
2733
  query GmailIntegrations {
2505
2734
  gmailIntegrations {
@@ -2567,6 +2796,42 @@ export const useSuspenseGoogleAnalyticsSetupProgressQuery = (client, variables,
2567
2796
  useSuspenseGoogleAnalyticsSetupProgressQuery.getKey = (variables) => variables === undefined
2568
2797
  ? ["GoogleAnalyticsSetupProgressSuspense"]
2569
2798
  : ["GoogleAnalyticsSetupProgressSuspense", variables];
2799
+ export const GoogleBrandSuggestionsDocument = `
2800
+ query GoogleBrandSuggestions($customerIri: IRI!, $brandPrefix: String!, $selectedBrandIds: [String!]) {
2801
+ googleBrandSuggestions(
2802
+ customerIri: $customerIri
2803
+ brandPrefix: $brandPrefix
2804
+ selectedBrandIds: $selectedBrandIds
2805
+ ) {
2806
+ id
2807
+ name
2808
+ urls
2809
+ state
2810
+ }
2811
+ }
2812
+ `;
2813
+ export const useGoogleBrandSuggestionsQuery = (client, variables, options, headers) => {
2814
+ return useQuery({
2815
+ queryKey: ["GoogleBrandSuggestions", variables],
2816
+ queryFn: fetcher(client, GoogleBrandSuggestionsDocument, variables, headers),
2817
+ ...options,
2818
+ });
2819
+ };
2820
+ useGoogleBrandSuggestionsQuery.getKey = (variables) => [
2821
+ "GoogleBrandSuggestions",
2822
+ variables,
2823
+ ];
2824
+ export const useSuspenseGoogleBrandSuggestionsQuery = (client, variables, options, headers) => {
2825
+ return useSuspenseQuery({
2826
+ queryKey: ["GoogleBrandSuggestionsSuspense", variables],
2827
+ queryFn: fetcher(client, GoogleBrandSuggestionsDocument, variables, headers),
2828
+ ...options,
2829
+ });
2830
+ };
2831
+ useSuspenseGoogleBrandSuggestionsQuery.getKey = (variables) => [
2832
+ "GoogleBrandSuggestionsSuspense",
2833
+ variables,
2834
+ ];
2570
2835
  export const GoogleSetupProgressDocument = `
2571
2836
  query GoogleSetupProgress {
2572
2837
  googleSetupProgress {
@@ -3042,7 +3307,7 @@ export const SessionContextDocument = `
3042
3307
  canManageStreams
3043
3308
  canManageSharedMemories
3044
3309
  canManageTeam
3045
- canManageExternalApps
3310
+ canManageCustomApps
3046
3311
  datastore {
3047
3312
  id
3048
3313
  name
@@ -3228,6 +3493,7 @@ export const TeamDirectoryDocument = `
3228
3493
  inviteUrl
3229
3494
  federated
3230
3495
  nameReadOnly
3496
+ operator
3231
3497
  enabled
3232
3498
  memberships {
3233
3499
  org