@manta-eu/client 0.1.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.
Files changed (188) hide show
  1. package/LICENSE +21 -0
  2. package/dist/generated/graphql.d.ts +4719 -0
  3. package/dist/generated/graphql.d.ts.map +1 -0
  4. package/dist/generated/graphql.js +2452 -0
  5. package/dist/graphql-clients.d.ts +9 -0
  6. package/dist/graphql-clients.d.ts.map +1 -0
  7. package/dist/graphql-clients.js +27 -0
  8. package/dist/index.d.ts +3 -0
  9. package/dist/index.d.ts.map +1 -0
  10. package/dist/index.js +2 -0
  11. package/dist/shared/action-plan.d.ts +2 -0
  12. package/dist/shared/action-plan.d.ts.map +1 -0
  13. package/dist/shared/action-plan.js +1 -0
  14. package/dist/shared/agent-mode.d.ts +9 -0
  15. package/dist/shared/agent-mode.d.ts.map +1 -0
  16. package/dist/shared/agent-mode.js +38 -0
  17. package/dist/shared/agent-types.d.ts +41 -0
  18. package/dist/shared/agent-types.d.ts.map +1 -0
  19. package/dist/shared/agent-types.js +12 -0
  20. package/dist/shared/chat-context.d.ts +7 -0
  21. package/dist/shared/chat-context.d.ts.map +1 -0
  22. package/dist/shared/chat-context.js +38 -0
  23. package/dist/shared/chat-manager.d.ts +183 -0
  24. package/dist/shared/chat-manager.d.ts.map +1 -0
  25. package/dist/shared/chat-manager.js +75 -0
  26. package/dist/shared/chat-turn-errors.d.ts +16 -0
  27. package/dist/shared/chat-turn-errors.d.ts.map +1 -0
  28. package/dist/shared/chat-turn-errors.js +18 -0
  29. package/dist/shared/constants.d.ts +11 -0
  30. package/dist/shared/constants.d.ts.map +1 -0
  31. package/dist/shared/constants.js +10 -0
  32. package/dist/shared/conversation-starter-defaults.d.ts +8 -0
  33. package/dist/shared/conversation-starter-defaults.d.ts.map +1 -0
  34. package/dist/shared/conversation-starter-defaults.js +20 -0
  35. package/dist/shared/datastore-id.d.ts +4 -0
  36. package/dist/shared/datastore-id.d.ts.map +1 -0
  37. package/dist/shared/datastore-id.js +17 -0
  38. package/dist/shared/datastore-path.d.ts +19 -0
  39. package/dist/shared/datastore-path.d.ts.map +1 -0
  40. package/dist/shared/datastore-path.js +62 -0
  41. package/dist/shared/datastore-route-table.d.ts +36 -0
  42. package/dist/shared/datastore-route-table.d.ts.map +1 -0
  43. package/dist/shared/datastore-route-table.js +43 -0
  44. package/dist/shared/duration.d.ts +6 -0
  45. package/dist/shared/duration.d.ts.map +1 -0
  46. package/dist/shared/duration.js +55 -0
  47. package/dist/shared/entity-set.d.ts +14 -0
  48. package/dist/shared/entity-set.d.ts.map +1 -0
  49. package/dist/shared/entity-set.js +25 -0
  50. package/dist/shared/error-utils.d.ts +23 -0
  51. package/dist/shared/error-utils.d.ts.map +1 -0
  52. package/dist/shared/error-utils.js +56 -0
  53. package/dist/shared/explorer-paths.d.ts +4 -0
  54. package/dist/shared/explorer-paths.d.ts.map +1 -0
  55. package/dist/shared/explorer-paths.js +7 -0
  56. package/dist/shared/fileIri.d.ts +12 -0
  57. package/dist/shared/fileIri.d.ts.map +1 -0
  58. package/dist/shared/fileIri.js +18 -0
  59. package/dist/shared/index.d.ts +22 -0
  60. package/dist/shared/index.d.ts.map +1 -0
  61. package/dist/shared/index.js +8 -0
  62. package/dist/shared/live-context.d.ts +2 -0
  63. package/dist/shared/live-context.d.ts.map +1 -0
  64. package/dist/shared/live-context.js +15 -0
  65. package/dist/shared/maintenance-schedule.d.ts +11 -0
  66. package/dist/shared/maintenance-schedule.d.ts.map +1 -0
  67. package/dist/shared/maintenance-schedule.js +38 -0
  68. package/dist/shared/memory-citation-sampling.d.ts +16 -0
  69. package/dist/shared/memory-citation-sampling.d.ts.map +1 -0
  70. package/dist/shared/memory-citation-sampling.js +14 -0
  71. package/dist/shared/memory-confidence.d.ts +3 -0
  72. package/dist/shared/memory-confidence.d.ts.map +1 -0
  73. package/dist/shared/memory-confidence.js +7 -0
  74. package/dist/shared/memory-consolidation-limits.d.ts +6 -0
  75. package/dist/shared/memory-consolidation-limits.d.ts.map +1 -0
  76. package/dist/shared/memory-consolidation-limits.js +5 -0
  77. package/dist/shared/memory-dates.d.ts +3 -0
  78. package/dist/shared/memory-dates.d.ts.map +1 -0
  79. package/dist/shared/memory-dates.js +7 -0
  80. package/dist/shared/memory-decay.d.ts +22 -0
  81. package/dist/shared/memory-decay.d.ts.map +1 -0
  82. package/dist/shared/memory-decay.js +43 -0
  83. package/dist/shared/memory-diversity.d.ts +10 -0
  84. package/dist/shared/memory-diversity.d.ts.map +1 -0
  85. package/dist/shared/memory-diversity.js +44 -0
  86. package/dist/shared/memory-entity-recall.d.ts +8 -0
  87. package/dist/shared/memory-entity-recall.d.ts.map +1 -0
  88. package/dist/shared/memory-entity-recall.js +17 -0
  89. package/dist/shared/memory-importance.d.ts +4 -0
  90. package/dist/shared/memory-importance.d.ts.map +1 -0
  91. package/dist/shared/memory-importance.js +9 -0
  92. package/dist/shared/memory-keyword-recall.d.ts +13 -0
  93. package/dist/shared/memory-keyword-recall.d.ts.map +1 -0
  94. package/dist/shared/memory-keyword-recall.js +141 -0
  95. package/dist/shared/memory-kind-iris.d.ts +9 -0
  96. package/dist/shared/memory-kind-iris.d.ts.map +1 -0
  97. package/dist/shared/memory-kind-iris.js +22 -0
  98. package/dist/shared/memory-preload-gate.d.ts +37 -0
  99. package/dist/shared/memory-preload-gate.d.ts.map +1 -0
  100. package/dist/shared/memory-preload-gate.js +95 -0
  101. package/dist/shared/memory-sources.d.ts +3 -0
  102. package/dist/shared/memory-sources.d.ts.map +1 -0
  103. package/dist/shared/memory-sources.js +3 -0
  104. package/dist/shared/memory-teams.d.ts +2 -0
  105. package/dist/shared/memory-teams.d.ts.map +1 -0
  106. package/dist/shared/memory-teams.js +3 -0
  107. package/dist/shared/memory-token-budget.d.ts +8 -0
  108. package/dist/shared/memory-token-budget.d.ts.map +1 -0
  109. package/dist/shared/memory-token-budget.js +23 -0
  110. package/dist/shared/memory-volatility.d.ts +24 -0
  111. package/dist/shared/memory-volatility.d.ts.map +1 -0
  112. package/dist/shared/memory-volatility.js +55 -0
  113. package/dist/shared/message-utils.d.ts +12 -0
  114. package/dist/shared/message-utils.d.ts.map +1 -0
  115. package/dist/shared/message-utils.js +22 -0
  116. package/dist/shared/model.d.ts +165 -0
  117. package/dist/shared/model.d.ts.map +1 -0
  118. package/dist/shared/model.js +93 -0
  119. package/dist/shared/org-roles.d.ts +11 -0
  120. package/dist/shared/org-roles.d.ts.map +1 -0
  121. package/dist/shared/org-roles.js +10 -0
  122. package/dist/shared/page-context.d.ts +7 -0
  123. package/dist/shared/page-context.d.ts.map +1 -0
  124. package/dist/shared/page-context.js +1 -0
  125. package/dist/shared/permissions.d.ts +9 -0
  126. package/dist/shared/permissions.d.ts.map +1 -0
  127. package/dist/shared/permissions.js +10 -0
  128. package/dist/shared/questionnaire.d.ts +32 -0
  129. package/dist/shared/questionnaire.d.ts.map +1 -0
  130. package/dist/shared/questionnaire.js +68 -0
  131. package/dist/shared/rdf-namespaces.d.ts +11 -0
  132. package/dist/shared/rdf-namespaces.d.ts.map +1 -0
  133. package/dist/shared/rdf-namespaces.js +15 -0
  134. package/dist/shared/rule-iri.d.ts +4 -0
  135. package/dist/shared/rule-iri.d.ts.map +1 -0
  136. package/dist/shared/rule-iri.js +13 -0
  137. package/dist/shared/rule-search.d.ts +2 -0
  138. package/dist/shared/rule-search.d.ts.map +1 -0
  139. package/dist/shared/rule-search.js +1 -0
  140. package/dist/shared/session-types.d.ts +14 -0
  141. package/dist/shared/session-types.d.ts.map +1 -0
  142. package/dist/shared/session-types.js +1 -0
  143. package/dist/shared/spa-routes.d.ts +3 -0
  144. package/dist/shared/spa-routes.d.ts.map +1 -0
  145. package/dist/shared/spa-routes.js +5 -0
  146. package/dist/shared/stakeholder-iri.d.ts +7 -0
  147. package/dist/shared/stakeholder-iri.d.ts.map +1 -0
  148. package/dist/shared/stakeholder-iri.js +20 -0
  149. package/dist/shared/team-activation.d.ts +7 -0
  150. package/dist/shared/team-activation.d.ts.map +1 -0
  151. package/dist/shared/team-activation.js +3 -0
  152. package/dist/shared/team.d.ts +150 -0
  153. package/dist/shared/team.d.ts.map +1 -0
  154. package/dist/shared/team.js +88 -0
  155. package/dist/shared/tools/coercers.d.ts +6 -0
  156. package/dist/shared/tools/coercers.d.ts.map +1 -0
  157. package/dist/shared/tools/coercers.js +63 -0
  158. package/dist/shared/tools/index.d.ts +4 -0
  159. package/dist/shared/tools/index.d.ts.map +1 -0
  160. package/dist/shared/tools/index.js +2 -0
  161. package/dist/shared/tools/metadata.d.ts +12 -0
  162. package/dist/shared/tools/metadata.d.ts.map +1 -0
  163. package/dist/shared/tools/metadata.js +215 -0
  164. package/dist/shared/tools/test-triple.d.ts +16 -0
  165. package/dist/shared/tools/test-triple.d.ts.map +1 -0
  166. package/dist/shared/tools/test-triple.js +26 -0
  167. package/dist/shared/tools/types.d.ts +236 -0
  168. package/dist/shared/tools/types.d.ts.map +1 -0
  169. package/dist/shared/tools/types.js +1 -0
  170. package/dist/shared/upload.d.ts +26 -0
  171. package/dist/shared/upload.d.ts.map +1 -0
  172. package/dist/shared/upload.js +26 -0
  173. package/dist/shared/website-url.d.ts +5 -0
  174. package/dist/shared/website-url.d.ts.map +1 -0
  175. package/dist/shared/website-url.js +31 -0
  176. package/dist/shared/workspace-artifacts.d.ts +21 -0
  177. package/dist/shared/workspace-artifacts.d.ts.map +1 -0
  178. package/dist/shared/workspace-artifacts.js +59 -0
  179. package/dist/shared/writable-shape-query.d.ts +2 -0
  180. package/dist/shared/writable-shape-query.d.ts.map +1 -0
  181. package/dist/shared/writable-shape-query.js +21 -0
  182. package/dist/types/jsonld.d.ts +2 -0
  183. package/dist/types/jsonld.d.ts.map +1 -0
  184. package/dist/types/jsonld.js +1 -0
  185. package/dist/types/sparql-types.d.ts +3 -0
  186. package/dist/types/sparql-types.d.ts.map +1 -0
  187. package/dist/types/sparql-types.js +1 -0
  188. package/package.json +93 -0
@@ -0,0 +1,2452 @@
1
+ import { useMutation, useQuery, useSuspenseQuery, } from "@tanstack/react-query";
2
+ function fetcher(client, query, variables, requestHeaders) {
3
+ return async () => client.request({
4
+ document: query,
5
+ variables,
6
+ requestHeaders,
7
+ });
8
+ }
9
+ export var GQLActionPlanExecutionStatus;
10
+ (function (GQLActionPlanExecutionStatus) {
11
+ GQLActionPlanExecutionStatus["ActivityCompleted"] = "ACTIVITY_COMPLETED";
12
+ GQLActionPlanExecutionStatus["ActivityStarted"] = "ACTIVITY_STARTED";
13
+ GQLActionPlanExecutionStatus["Completed"] = "COMPLETED";
14
+ GQLActionPlanExecutionStatus["Failed"] = "FAILED";
15
+ GQLActionPlanExecutionStatus["Started"] = "STARTED";
16
+ })(GQLActionPlanExecutionStatus || (GQLActionPlanExecutionStatus = {}));
17
+ export var GQLActionPlanOrderField;
18
+ (function (GQLActionPlanOrderField) {
19
+ GQLActionPlanOrderField["CreatedBy"] = "CREATED_BY";
20
+ GQLActionPlanOrderField["EstimatedCost"] = "ESTIMATED_COST";
21
+ GQLActionPlanOrderField["EstimatedReturn"] = "ESTIMATED_RETURN";
22
+ GQLActionPlanOrderField["EstimatedRoi"] = "ESTIMATED_ROI";
23
+ GQLActionPlanOrderField["MantaPriority"] = "MANTA_PRIORITY";
24
+ GQLActionPlanOrderField["State"] = "STATE";
25
+ })(GQLActionPlanOrderField || (GQLActionPlanOrderField = {}));
26
+ export var GQLActionPlanPriority;
27
+ (function (GQLActionPlanPriority) {
28
+ GQLActionPlanPriority["High"] = "HIGH";
29
+ GQLActionPlanPriority["Low"] = "LOW";
30
+ GQLActionPlanPriority["Medium"] = "MEDIUM";
31
+ })(GQLActionPlanPriority || (GQLActionPlanPriority = {}));
32
+ export var GQLActionPlanRunStatus;
33
+ (function (GQLActionPlanRunStatus) {
34
+ GQLActionPlanRunStatus["Completed"] = "COMPLETED";
35
+ GQLActionPlanRunStatus["Failed"] = "FAILED";
36
+ GQLActionPlanRunStatus["Running"] = "RUNNING";
37
+ })(GQLActionPlanRunStatus || (GQLActionPlanRunStatus = {}));
38
+ export var GQLActionPlanState;
39
+ (function (GQLActionPlanState) {
40
+ GQLActionPlanState["Completed"] = "COMPLETED";
41
+ GQLActionPlanState["Draft"] = "DRAFT";
42
+ GQLActionPlanState["Failed"] = "FAILED";
43
+ GQLActionPlanState["Running"] = "RUNNING";
44
+ GQLActionPlanState["TimedOut"] = "TIMED_OUT";
45
+ })(GQLActionPlanState || (GQLActionPlanState = {}));
46
+ export var GQLConversationStarterSource;
47
+ (function (GQLConversationStarterSource) {
48
+ GQLConversationStarterSource["Default"] = "DEFAULT";
49
+ GQLConversationStarterSource["KnowledgeGraph"] = "KNOWLEDGE_GRAPH";
50
+ GQLConversationStarterSource["Plan"] = "PLAN";
51
+ })(GQLConversationStarterSource || (GQLConversationStarterSource = {}));
52
+ export var GQLExecuteActionErrorCode;
53
+ (function (GQLExecuteActionErrorCode) {
54
+ GQLExecuteActionErrorCode["BadRequest"] = "BAD_REQUEST";
55
+ GQLExecuteActionErrorCode["Conflict"] = "CONFLICT";
56
+ GQLExecuteActionErrorCode["Unknown"] = "UNKNOWN";
57
+ })(GQLExecuteActionErrorCode || (GQLExecuteActionErrorCode = {}));
58
+ export var GQLFactValueStatus;
59
+ (function (GQLFactValueStatus) {
60
+ GQLFactValueStatus["Changed"] = "CHANGED";
61
+ GQLFactValueStatus["Removed"] = "REMOVED";
62
+ GQLFactValueStatus["Unchanged"] = "UNCHANGED";
63
+ GQLFactValueStatus["Unknown"] = "UNKNOWN";
64
+ })(GQLFactValueStatus || (GQLFactValueStatus = {}));
65
+ export var GQLGmailIntegrationStatus;
66
+ (function (GQLGmailIntegrationStatus) {
67
+ GQLGmailIntegrationStatus["Active"] = "ACTIVE";
68
+ GQLGmailIntegrationStatus["Connecting"] = "CONNECTING";
69
+ GQLGmailIntegrationStatus["Error"] = "ERROR";
70
+ GQLGmailIntegrationStatus["Revoked"] = "REVOKED";
71
+ })(GQLGmailIntegrationStatus || (GQLGmailIntegrationStatus = {}));
72
+ export var GQLGoogleSetupStateEnum;
73
+ (function (GQLGoogleSetupStateEnum) {
74
+ GQLGoogleSetupStateEnum["ConnectingAccounts"] = "CONNECTING_ACCOUNTS";
75
+ GQLGoogleSetupStateEnum["FatallyFailed"] = "FATALLY_FAILED";
76
+ GQLGoogleSetupStateEnum["FetchingAccounts"] = "FETCHING_ACCOUNTS";
77
+ GQLGoogleSetupStateEnum["Finished"] = "FINISHED";
78
+ GQLGoogleSetupStateEnum["Initializing"] = "INITIALIZING";
79
+ GQLGoogleSetupStateEnum["NotFound"] = "NOT_FOUND";
80
+ GQLGoogleSetupStateEnum["SelectingAccounts"] = "SELECTING_ACCOUNTS";
81
+ GQLGoogleSetupStateEnum["Setup"] = "SETUP";
82
+ GQLGoogleSetupStateEnum["TimedOut"] = "TIMED_OUT";
83
+ })(GQLGoogleSetupStateEnum || (GQLGoogleSetupStateEnum = {}));
84
+ export var GQLInferalIntegrationProvider;
85
+ (function (GQLInferalIntegrationProvider) {
86
+ GQLInferalIntegrationProvider["GoogleAds"] = "GOOGLE_ADS";
87
+ GQLInferalIntegrationProvider["GoogleAnalytics"] = "GOOGLE_ANALYTICS";
88
+ GQLInferalIntegrationProvider["GoogleMerchant"] = "GOOGLE_MERCHANT";
89
+ GQLInferalIntegrationProvider["Linkedin"] = "LINKEDIN";
90
+ GQLInferalIntegrationProvider["Mailchimp"] = "MAILCHIMP";
91
+ GQLInferalIntegrationProvider["Meta"] = "META";
92
+ GQLInferalIntegrationProvider["Pinterest"] = "PINTEREST";
93
+ GQLInferalIntegrationProvider["Shopify"] = "SHOPIFY";
94
+ GQLInferalIntegrationProvider["Slack"] = "SLACK";
95
+ GQLInferalIntegrationProvider["Triplewhale"] = "TRIPLEWHALE";
96
+ GQLInferalIntegrationProvider["Woocommerce"] = "WOOCOMMERCE";
97
+ })(GQLInferalIntegrationProvider || (GQLInferalIntegrationProvider = {}));
98
+ export var GQLInferalLocation;
99
+ (function (GQLInferalLocation) {
100
+ GQLInferalLocation["Afr"] = "AFR";
101
+ GQLInferalLocation["Apac"] = "APAC";
102
+ GQLInferalLocation["Eeur"] = "EEUR";
103
+ GQLInferalLocation["Enam"] = "ENAM";
104
+ GQLInferalLocation["Me"] = "ME";
105
+ GQLInferalLocation["Oc"] = "OC";
106
+ GQLInferalLocation["Sam"] = "SAM";
107
+ GQLInferalLocation["Weur"] = "WEUR";
108
+ GQLInferalLocation["Wnam"] = "WNAM";
109
+ })(GQLInferalLocation || (GQLInferalLocation = {}));
110
+ export var GQLIntegration;
111
+ (function (GQLIntegration) {
112
+ GQLIntegration["Dash"] = "DASH";
113
+ GQLIntegration["Figma"] = "FIGMA";
114
+ GQLIntegration["Google"] = "GOOGLE";
115
+ GQLIntegration["GoogleAnalytics"] = "GOOGLE_ANALYTICS";
116
+ GQLIntegration["Linkedin"] = "LINKEDIN";
117
+ GQLIntegration["Meta"] = "META";
118
+ GQLIntegration["Shopify"] = "SHOPIFY";
119
+ GQLIntegration["Slack"] = "SLACK";
120
+ GQLIntegration["Snapchat"] = "SNAPCHAT";
121
+ GQLIntegration["Woocommerce"] = "WOOCOMMERCE";
122
+ })(GQLIntegration || (GQLIntegration = {}));
123
+ export var GQLLdesAuthType;
124
+ (function (GQLLdesAuthType) {
125
+ GQLLdesAuthType["Basic"] = "BASIC";
126
+ GQLLdesAuthType["Bearer"] = "BEARER";
127
+ })(GQLLdesAuthType || (GQLLdesAuthType = {}));
128
+ export var GQLLdesStreamPhase;
129
+ (function (GQLLdesStreamPhase) {
130
+ GQLLdesStreamPhase["Active"] = "ACTIVE";
131
+ GQLLdesStreamPhase["Error"] = "ERROR";
132
+ GQLLdesStreamPhase["Idle"] = "IDLE";
133
+ GQLLdesStreamPhase["Paused"] = "PAUSED";
134
+ GQLLdesStreamPhase["Waiting"] = "WAITING";
135
+ })(GQLLdesStreamPhase || (GQLLdesStreamPhase = {}));
136
+ export var GQLManualActionResolveStatus;
137
+ (function (GQLManualActionResolveStatus) {
138
+ GQLManualActionResolveStatus["Completed"] = "COMPLETED";
139
+ GQLManualActionResolveStatus["Rejected"] = "REJECTED";
140
+ })(GQLManualActionResolveStatus || (GQLManualActionResolveStatus = {}));
141
+ export var GQLMemoryKind;
142
+ (function (GQLMemoryKind) {
143
+ GQLMemoryKind["Context"] = "context";
144
+ GQLMemoryKind["Fact"] = "fact";
145
+ GQLMemoryKind["Objective"] = "objective";
146
+ GQLMemoryKind["Preference"] = "preference";
147
+ })(GQLMemoryKind || (GQLMemoryKind = {}));
148
+ export var GQLMemoryScope;
149
+ (function (GQLMemoryScope) {
150
+ GQLMemoryScope["Company"] = "company";
151
+ GQLMemoryScope["Team"] = "team";
152
+ GQLMemoryScope["User"] = "user";
153
+ })(GQLMemoryScope || (GQLMemoryScope = {}));
154
+ export var GQLMetaSetupStateEnum;
155
+ (function (GQLMetaSetupStateEnum) {
156
+ GQLMetaSetupStateEnum["ConnectingAccounts"] = "CONNECTING_ACCOUNTS";
157
+ GQLMetaSetupStateEnum["FatallyFailed"] = "FATALLY_FAILED";
158
+ GQLMetaSetupStateEnum["FetchingAccounts"] = "FETCHING_ACCOUNTS";
159
+ GQLMetaSetupStateEnum["Finished"] = "FINISHED";
160
+ GQLMetaSetupStateEnum["NotFound"] = "NOT_FOUND";
161
+ GQLMetaSetupStateEnum["SelectingAccounts"] = "SELECTING_ACCOUNTS";
162
+ GQLMetaSetupStateEnum["Setup"] = "SETUP";
163
+ GQLMetaSetupStateEnum["TimedOut"] = "TIMED_OUT";
164
+ })(GQLMetaSetupStateEnum || (GQLMetaSetupStateEnum = {}));
165
+ export var GQLOrderDirection;
166
+ (function (GQLOrderDirection) {
167
+ GQLOrderDirection["Asc"] = "ASC";
168
+ GQLOrderDirection["Desc"] = "DESC";
169
+ })(GQLOrderDirection || (GQLOrderDirection = {}));
170
+ export var GQLPlanOperation;
171
+ (function (GQLPlanOperation) {
172
+ GQLPlanOperation["Added"] = "ADDED";
173
+ GQLPlanOperation["Updated"] = "UPDATED";
174
+ })(GQLPlanOperation || (GQLPlanOperation = {}));
175
+ export var GQLPropertyChangeType;
176
+ (function (GQLPropertyChangeType) {
177
+ GQLPropertyChangeType["Added"] = "ADDED";
178
+ GQLPropertyChangeType["Unchanged"] = "UNCHANGED";
179
+ GQLPropertyChangeType["Updated"] = "UPDATED";
180
+ })(GQLPropertyChangeType || (GQLPropertyChangeType = {}));
181
+ export var GQLRelayIntegrationStatus;
182
+ (function (GQLRelayIntegrationStatus) {
183
+ GQLRelayIntegrationStatus["Active"] = "ACTIVE";
184
+ GQLRelayIntegrationStatus["Creating"] = "CREATING";
185
+ GQLRelayIntegrationStatus["Deleted"] = "DELETED";
186
+ GQLRelayIntegrationStatus["Deleting"] = "DELETING";
187
+ GQLRelayIntegrationStatus["Error"] = "ERROR";
188
+ GQLRelayIntegrationStatus["Failed"] = "FAILED";
189
+ GQLRelayIntegrationStatus["Initializing"] = "INITIALIZING";
190
+ GQLRelayIntegrationStatus["Paused"] = "PAUSED";
191
+ GQLRelayIntegrationStatus["Pending"] = "PENDING";
192
+ })(GQLRelayIntegrationStatus || (GQLRelayIntegrationStatus = {}));
193
+ export var GQLRuleOperation;
194
+ (function (GQLRuleOperation) {
195
+ GQLRuleOperation["Add"] = "ADD";
196
+ GQLRuleOperation["Change"] = "CHANGE";
197
+ GQLRuleOperation["Remove"] = "REMOVE";
198
+ })(GQLRuleOperation || (GQLRuleOperation = {}));
199
+ export var GQLRuleOwner;
200
+ (function (GQLRuleOwner) {
201
+ GQLRuleOwner["Manta"] = "MANTA";
202
+ GQLRuleOwner["User"] = "USER";
203
+ })(GQLRuleOwner || (GQLRuleOwner = {}));
204
+ export var GQLSelfServeInvitationOutcome;
205
+ (function (GQLSelfServeInvitationOutcome) {
206
+ GQLSelfServeInvitationOutcome["AlreadyMember"] = "ALREADY_MEMBER";
207
+ GQLSelfServeInvitationOutcome["Failed"] = "FAILED";
208
+ GQLSelfServeInvitationOutcome["Invited"] = "INVITED";
209
+ })(GQLSelfServeInvitationOutcome || (GQLSelfServeInvitationOutcome = {}));
210
+ export var GQLShaclSeverity;
211
+ (function (GQLShaclSeverity) {
212
+ GQLShaclSeverity["Info"] = "INFO";
213
+ GQLShaclSeverity["Violation"] = "VIOLATION";
214
+ GQLShaclSeverity["Warning"] = "WARNING";
215
+ })(GQLShaclSeverity || (GQLShaclSeverity = {}));
216
+ export var GQLTestTripleObjectType;
217
+ (function (GQLTestTripleObjectType) {
218
+ GQLTestTripleObjectType["Iri"] = "IRI";
219
+ GQLTestTripleObjectType["Literal"] = "LITERAL";
220
+ })(GQLTestTripleObjectType || (GQLTestTripleObjectType = {}));
221
+ export const MemoryFieldsFragmentDoc = `
222
+ fragment MemoryFields on Memory {
223
+ iri
224
+ label
225
+ description
226
+ confidence
227
+ extractedAt
228
+ memorySource
229
+ scope
230
+ kind
231
+ memoryValidFrom
232
+ memoryValidUntil
233
+ memoryTrustedUntil
234
+ memoryLastUsedAt
235
+ memoryUseCount
236
+ memoryCiteCount
237
+ memoryEvidence
238
+ aboutEntityIris
239
+ supersedesMemory
240
+ teams
241
+ importance
242
+ memorySubclass
243
+ customProperties
244
+ }
245
+ `;
246
+ export const MemoryMutationResultFragmentDoc = `
247
+ fragment MemoryMutationResult on UpdateMemoryResponse {
248
+ memory {
249
+ ...MemoryFields
250
+ }
251
+ error
252
+ }
253
+ ${MemoryFieldsFragmentDoc}`;
254
+ export const ActionPlanFieldsFragmentDoc = `
255
+ fragment ActionPlanFields on ActionPlanGraph {
256
+ iri
257
+ statements
258
+ subjects
259
+ state
260
+ description
261
+ duration
262
+ primaryIntegration
263
+ priority
264
+ actionCount
265
+ completedActionCount
266
+ actionCountByType {
267
+ typeName
268
+ count
269
+ }
270
+ createdBy {
271
+ ... on ActionPlanCreatedByManta {
272
+ __typename
273
+ reason
274
+ confidenceScore
275
+ }
276
+ ... on ActionPlanCreatedByUser {
277
+ __typename
278
+ id
279
+ reason
280
+ }
281
+ }
282
+ estimatedCost {
283
+ ... on ExactQuantitativeValue {
284
+ __typename
285
+ value
286
+ unitCode
287
+ unitText
288
+ }
289
+ ... on ApproximateQuantitativeValue {
290
+ __typename
291
+ minValue
292
+ maxValue
293
+ unitCode
294
+ unitText
295
+ }
296
+ }
297
+ estimatedReturn {
298
+ ... on ExactQuantitativeValue {
299
+ __typename
300
+ value
301
+ unitCode
302
+ unitText
303
+ }
304
+ ... on ApproximateQuantitativeValue {
305
+ __typename
306
+ minValue
307
+ maxValue
308
+ unitCode
309
+ unitText
310
+ }
311
+ }
312
+ estimatedROI {
313
+ ... on ExactQuantitativeValue {
314
+ __typename
315
+ value
316
+ unitCode
317
+ unitText
318
+ }
319
+ ... on ApproximateQuantitativeValue {
320
+ __typename
321
+ minValue
322
+ maxValue
323
+ unitCode
324
+ unitText
325
+ }
326
+ }
327
+ potentialProfit {
328
+ ... on ExactQuantitativeValue {
329
+ __typename
330
+ value
331
+ unitCode
332
+ unitText
333
+ }
334
+ ... on ApproximateQuantitativeValue {
335
+ __typename
336
+ minValue
337
+ maxValue
338
+ unitCode
339
+ unitText
340
+ }
341
+ }
342
+ }
343
+ `;
344
+ export const AbortUploadDocument = `
345
+ mutation abortUpload($input: AbortUploadInput!) {
346
+ abortUpload(input: $input) {
347
+ ok
348
+ }
349
+ }
350
+ `;
351
+ export const useAbortUploadMutation = (client, options, headers) => {
352
+ return useMutation({
353
+ mutationKey: ["abortUpload"],
354
+ mutationFn: (variables) => fetcher(client, AbortUploadDocument, variables, headers)(),
355
+ ...options,
356
+ });
357
+ };
358
+ export const BringDatastoreOnlineDocument = `
359
+ mutation BringDatastoreOnline($datastoreId: String) {
360
+ bringDatastoreOnline(datastoreId: $datastoreId) {
361
+ success
362
+ error
363
+ }
364
+ }
365
+ `;
366
+ export const useBringDatastoreOnlineMutation = (client, options, headers) => {
367
+ return useMutation({
368
+ mutationKey: ["BringDatastoreOnline"],
369
+ mutationFn: (variables) => fetcher(client, BringDatastoreOnlineDocument, variables, headers)(),
370
+ ...options,
371
+ });
372
+ };
373
+ export const CancelActionPlanDocument = `
374
+ mutation CancelActionPlan($planIri: String!) {
375
+ cancelActionPlan(planIri: $planIri) {
376
+ success
377
+ error
378
+ }
379
+ }
380
+ `;
381
+ export const useCancelActionPlanMutation = (client, options, headers) => {
382
+ return useMutation({
383
+ mutationKey: ["CancelActionPlan"],
384
+ mutationFn: (variables) => fetcher(client, CancelActionPlanDocument, variables, headers)(),
385
+ ...options,
386
+ });
387
+ };
388
+ export const ClearStagedRulesDocument = `
389
+ mutation ClearStagedRules($ruleIris: [IRI!]) {
390
+ clearStagedRules(ruleIris: $ruleIris) {
391
+ success
392
+ rulesCleared
393
+ error
394
+ }
395
+ }
396
+ `;
397
+ export const useClearStagedRulesMutation = (client, options, headers) => {
398
+ return useMutation({
399
+ mutationKey: ["ClearStagedRules"],
400
+ mutationFn: (variables) => fetcher(client, ClearStagedRulesDocument, variables, headers)(),
401
+ ...options,
402
+ });
403
+ };
404
+ export const CommitStagedRulesDocument = `
405
+ mutation CommitStagedRules($dryRun: Boolean, $ruleIris: [IRI!]) {
406
+ commitStagedRules(dryRun: $dryRun, ruleIris: $ruleIris) {
407
+ success
408
+ rulesAdded
409
+ rulesUpdated
410
+ rulesDeleted
411
+ error
412
+ }
413
+ }
414
+ `;
415
+ export const useCommitStagedRulesMutation = (client, options, headers) => {
416
+ return useMutation({
417
+ mutationKey: ["CommitStagedRules"],
418
+ mutationFn: (variables) => fetcher(client, CommitStagedRulesDocument, variables, headers)(),
419
+ ...options,
420
+ });
421
+ };
422
+ export const CompleteUploadDocument = `
423
+ mutation completeUpload($input: CompleteUploadInput!) {
424
+ completeUpload(input: $input) {
425
+ fileIri
426
+ mediaType
427
+ }
428
+ }
429
+ `;
430
+ export const useCompleteUploadMutation = (client, options, headers) => {
431
+ return useMutation({
432
+ mutationKey: ["completeUpload"],
433
+ mutationFn: (variables) => fetcher(client, CompleteUploadDocument, variables, headers)(),
434
+ ...options,
435
+ });
436
+ };
437
+ export const ConsolidateMemoriesDocument = `
438
+ mutation ConsolidateMemories($input: ConsolidateMemoriesInput!) {
439
+ consolidateMemories(input: $input) {
440
+ memory {
441
+ ...MemoryFields
442
+ }
443
+ error
444
+ }
445
+ }
446
+ ${MemoryFieldsFragmentDoc}`;
447
+ export const useConsolidateMemoriesMutation = (client, options, headers) => {
448
+ return useMutation({
449
+ mutationKey: ["ConsolidateMemories"],
450
+ mutationFn: (variables) => fetcher(client, ConsolidateMemoriesDocument, variables, headers)(),
451
+ ...options,
452
+ });
453
+ };
454
+ export const CreateInferalIntegrationDocument = `
455
+ mutation CreateInferalIntegration($input: CreateInferalIntegrationInput!) {
456
+ createInferalIntegration(input: $input) {
457
+ status
458
+ inferalIntegrationId
459
+ streamId
460
+ streamUrl
461
+ error
462
+ }
463
+ }
464
+ `;
465
+ export const useCreateInferalIntegrationMutation = (client, options, headers) => {
466
+ return useMutation({
467
+ mutationKey: ["CreateInferalIntegration"],
468
+ mutationFn: (variables) => fetcher(client, CreateInferalIntegrationDocument, variables, headers)(),
469
+ ...options,
470
+ });
471
+ };
472
+ export const CreateMemoryDocument = `
473
+ mutation CreateMemory($input: CreateMemoryInput!) {
474
+ createMemory(input: $input) {
475
+ memory {
476
+ ...MemoryFields
477
+ createdBy
478
+ }
479
+ error
480
+ }
481
+ }
482
+ ${MemoryFieldsFragmentDoc}`;
483
+ export const useCreateMemoryMutation = (client, options, headers) => {
484
+ return useMutation({
485
+ mutationKey: ["CreateMemory"],
486
+ mutationFn: (variables) => fetcher(client, CreateMemoryDocument, variables, headers)(),
487
+ ...options,
488
+ });
489
+ };
490
+ export const DeleteActionPlanDocument = `
491
+ mutation DeleteActionPlan($input: DeleteActionPlanInput!) {
492
+ deleteActionPlan(input: $input) {
493
+ success
494
+ error
495
+ }
496
+ }
497
+ `;
498
+ export const useDeleteActionPlanMutation = (client, options, headers) => {
499
+ return useMutation({
500
+ mutationKey: ["DeleteActionPlan"],
501
+ mutationFn: (variables) => fetcher(client, DeleteActionPlanDocument, variables, headers)(),
502
+ ...options,
503
+ });
504
+ };
505
+ export const DeleteLdesStreamDocument = `
506
+ mutation DeleteLdesStream($url: String!) {
507
+ deleteLDESStream(url: $url) {
508
+ success
509
+ stream {
510
+ url
511
+ phase
512
+ }
513
+ }
514
+ }
515
+ `;
516
+ export const useDeleteLdesStreamMutation = (client, options, headers) => {
517
+ return useMutation({
518
+ mutationKey: ["DeleteLdesStream"],
519
+ mutationFn: (variables) => fetcher(client, DeleteLdesStreamDocument, variables, headers)(),
520
+ ...options,
521
+ });
522
+ };
523
+ export const DeleteMemoryDocument = `
524
+ mutation DeleteMemory($memoryIri: IRI!) {
525
+ deleteMemory(memoryIri: $memoryIri) {
526
+ success
527
+ error
528
+ }
529
+ }
530
+ `;
531
+ export const useDeleteMemoryMutation = (client, options, headers) => {
532
+ return useMutation({
533
+ mutationKey: ["DeleteMemory"],
534
+ mutationFn: (variables) => fetcher(client, DeleteMemoryDocument, variables, headers)(),
535
+ ...options,
536
+ });
537
+ };
538
+ export const DeleteUserAccountDocument = `
539
+ mutation DeleteUserAccount($userId: String!) {
540
+ deleteUserAccount(userId: $userId) {
541
+ id
542
+ deleted
543
+ }
544
+ }
545
+ `;
546
+ export const useDeleteUserAccountMutation = (client, options, headers) => {
547
+ return useMutation({
548
+ mutationKey: ["DeleteUserAccount"],
549
+ mutationFn: (variables) => fetcher(client, DeleteUserAccountDocument, variables, headers)(),
550
+ ...options,
551
+ });
552
+ };
553
+ export const DisconnectConnectedAccountDocument = `
554
+ mutation DisconnectConnectedAccount($id: String!) {
555
+ disconnectConnectedAccount(id: $id) {
556
+ success
557
+ }
558
+ }
559
+ `;
560
+ export const useDisconnectConnectedAccountMutation = (client, options, headers) => {
561
+ return useMutation({
562
+ mutationKey: ["DisconnectConnectedAccount"],
563
+ mutationFn: (variables) => fetcher(client, DisconnectConnectedAccountDocument, variables, headers)(),
564
+ ...options,
565
+ });
566
+ };
567
+ export const DisconnectGmailIntegrationDocument = `
568
+ mutation DisconnectGmailIntegration($email: String!) {
569
+ disconnectGmailIntegration(email: $email) {
570
+ success
571
+ }
572
+ }
573
+ `;
574
+ export const useDisconnectGmailIntegrationMutation = (client, options, headers) => {
575
+ return useMutation({
576
+ mutationKey: ["DisconnectGmailIntegration"],
577
+ mutationFn: (variables) => fetcher(client, DisconnectGmailIntegrationDocument, variables, headers)(),
578
+ ...options,
579
+ });
580
+ };
581
+ export const DisconnectInferalIntegrationDocument = `
582
+ mutation DisconnectInferalIntegration($id: String!) {
583
+ disconnectInferalIntegration(id: $id) {
584
+ success
585
+ }
586
+ }
587
+ `;
588
+ export const useDisconnectInferalIntegrationMutation = (client, options, headers) => {
589
+ return useMutation({
590
+ mutationKey: ["DisconnectInferalIntegration"],
591
+ mutationFn: (variables) => fetcher(client, DisconnectInferalIntegrationDocument, variables, headers)(),
592
+ ...options,
593
+ });
594
+ };
595
+ export const ExecuteAgentActionAdditionDocument = `
596
+ mutation ExecuteAgentActionAddition($input: ExecuteActionAdditionInput!) {
597
+ executeActionAddition(input: $input) {
598
+ success
599
+ workflowId
600
+ namedGraphIri
601
+ error
602
+ code
603
+ }
604
+ }
605
+ `;
606
+ export const useExecuteAgentActionAdditionMutation = (client, options, headers) => {
607
+ return useMutation({
608
+ mutationKey: ["ExecuteAgentActionAddition"],
609
+ mutationFn: (variables) => fetcher(client, ExecuteAgentActionAdditionDocument, variables, headers)(),
610
+ ...options,
611
+ });
612
+ };
613
+ export const ExecuteAgentActionDeletionDocument = `
614
+ mutation ExecuteAgentActionDeletion($input: ExecuteActionDeletionInput!) {
615
+ executeActionDeletion(input: $input) {
616
+ success
617
+ workflowId
618
+ namedGraphIri
619
+ error
620
+ code
621
+ }
622
+ }
623
+ `;
624
+ export const useExecuteAgentActionDeletionMutation = (client, options, headers) => {
625
+ return useMutation({
626
+ mutationKey: ["ExecuteAgentActionDeletion"],
627
+ mutationFn: (variables) => fetcher(client, ExecuteAgentActionDeletionDocument, variables, headers)(),
628
+ ...options,
629
+ });
630
+ };
631
+ export const ExecuteAgentActionPlanDocument = `
632
+ mutation ExecuteAgentActionPlan($input: ExecuteActionPlanInput!) {
633
+ executeActionPlan(input: $input) {
634
+ success
635
+ content
636
+ workflowId
637
+ error
638
+ planValidation {
639
+ valid
640
+ completeness
641
+ issues
642
+ }
643
+ semanticDiff {
644
+ creates
645
+ updates
646
+ deletes
647
+ operations
648
+ }
649
+ }
650
+ }
651
+ `;
652
+ export const useExecuteAgentActionPlanMutation = (client, options, headers) => {
653
+ return useMutation({
654
+ mutationKey: ["ExecuteAgentActionPlan"],
655
+ mutationFn: (variables) => fetcher(client, ExecuteAgentActionPlanDocument, variables, headers)(),
656
+ ...options,
657
+ });
658
+ };
659
+ export const ExecuteAgentActionUpdateDocument = `
660
+ mutation ExecuteAgentActionUpdate($input: ExecuteActionUpdateInput!) {
661
+ executeActionUpdate(input: $input) {
662
+ success
663
+ workflowId
664
+ namedGraphIri
665
+ error
666
+ code
667
+ }
668
+ }
669
+ `;
670
+ export const useExecuteAgentActionUpdateMutation = (client, options, headers) => {
671
+ return useMutation({
672
+ mutationKey: ["ExecuteAgentActionUpdate"],
673
+ mutationFn: (variables) => fetcher(client, ExecuteAgentActionUpdateDocument, variables, headers)(),
674
+ ...options,
675
+ });
676
+ };
677
+ export const GenerateStructuredDataDocument = `
678
+ mutation GenerateStructuredData($input: StructuredDataInput!) {
679
+ generateStructuredData(input: $input) {
680
+ data
681
+ error
682
+ }
683
+ }
684
+ `;
685
+ export const useGenerateStructuredDataMutation = (client, options, headers) => {
686
+ return useMutation({
687
+ mutationKey: ["GenerateStructuredData"],
688
+ mutationFn: (variables) => fetcher(client, GenerateStructuredDataDocument, variables, headers)(),
689
+ ...options,
690
+ });
691
+ };
692
+ export const GoogleAnalyticsSetupConnectDocument = `
693
+ mutation GoogleAnalyticsSetupConnect($propertyIds: [String!]!) {
694
+ googleAnalyticsSetupConnect(propertyIds: $propertyIds) {
695
+ state
696
+ properties {
697
+ id
698
+ name
699
+ parent
700
+ }
701
+ lastError {
702
+ severity
703
+ title
704
+ message
705
+ }
706
+ }
707
+ }
708
+ `;
709
+ export const useGoogleAnalyticsSetupConnectMutation = (client, options, headers) => {
710
+ return useMutation({
711
+ mutationKey: ["GoogleAnalyticsSetupConnect"],
712
+ mutationFn: (variables) => fetcher(client, GoogleAnalyticsSetupConnectDocument, variables, headers)(),
713
+ ...options,
714
+ });
715
+ };
716
+ export const GoogleSetupConnectDocument = `
717
+ mutation GoogleSetupConnect($accountIds: [String!]!) {
718
+ googleSetupConnect(accountIds: $accountIds) {
719
+ state
720
+ accounts {
721
+ id
722
+ name
723
+ parent
724
+ }
725
+ lastError {
726
+ severity
727
+ title
728
+ message
729
+ }
730
+ }
731
+ }
732
+ `;
733
+ export const useGoogleSetupConnectMutation = (client, options, headers) => {
734
+ return useMutation({
735
+ mutationKey: ["GoogleSetupConnect"],
736
+ mutationFn: (variables) => fetcher(client, GoogleSetupConnectDocument, variables, headers)(),
737
+ ...options,
738
+ });
739
+ };
740
+ export const GrantOperatorRoleDocument = `
741
+ mutation GrantOperatorRole($userId: String!) {
742
+ grantOperatorRole(userId: $userId) {
743
+ id
744
+ operator
745
+ }
746
+ }
747
+ `;
748
+ export const useGrantOperatorRoleMutation = (client, options, headers) => {
749
+ return useMutation({
750
+ mutationKey: ["GrantOperatorRole"],
751
+ mutationFn: (variables) => fetcher(client, GrantOperatorRoleDocument, variables, headers)(),
752
+ ...options,
753
+ });
754
+ };
755
+ export const InitiateUploadDocument = `
756
+ mutation initiateUpload($input: InitiateUploadInput!) {
757
+ initiateUpload(input: $input) {
758
+ uploadId
759
+ storageKey
760
+ partUrls {
761
+ partNumber
762
+ url
763
+ }
764
+ }
765
+ }
766
+ `;
767
+ export const useInitiateUploadMutation = (client, options, headers) => {
768
+ return useMutation({
769
+ mutationKey: ["initiateUpload"],
770
+ mutationFn: (variables) => fetcher(client, InitiateUploadDocument, variables, headers)(),
771
+ ...options,
772
+ });
773
+ };
774
+ export const LinkUnlinkedDatastoreDocument = `
775
+ mutation LinkUnlinkedDatastore($input: LinkUnlinkedDatastoreInput!) {
776
+ linkUnlinkedDatastore(input: $input) {
777
+ success
778
+ error
779
+ datastoreId
780
+ name
781
+ path
782
+ }
783
+ }
784
+ `;
785
+ export const useLinkUnlinkedDatastoreMutation = (client, options, headers) => {
786
+ return useMutation({
787
+ mutationKey: ["LinkUnlinkedDatastore"],
788
+ mutationFn: (variables) => fetcher(client, LinkUnlinkedDatastoreDocument, variables, headers)(),
789
+ ...options,
790
+ });
791
+ };
792
+ export const LinkedinSetupConnectDocument = `
793
+ mutation LinkedinSetupConnect($accountIds: [String!]!) {
794
+ linkedinSetupConnect(accountIds: $accountIds) {
795
+ state
796
+ accounts {
797
+ id
798
+ name
799
+ }
800
+ lastError {
801
+ severity
802
+ message
803
+ title
804
+ }
805
+ }
806
+ }
807
+ `;
808
+ export const useLinkedinSetupConnectMutation = (client, options, headers) => {
809
+ return useMutation({
810
+ mutationKey: ["LinkedinSetupConnect"],
811
+ mutationFn: (variables) => fetcher(client, LinkedinSetupConnectDocument, variables, headers)(),
812
+ ...options,
813
+ });
814
+ };
815
+ export const ChangeManualActionAssigneesDocument = `
816
+ mutation ChangeManualActionAssignees($namedGraphIri: String!, $subjectIri: String!, $assigneesToAdd: [String!], $assigneesToRemove: [String!]) {
817
+ manualActionChangeAssignees(
818
+ namedGraphIri: $namedGraphIri
819
+ subjectIri: $subjectIri
820
+ assigneesToAdd: $assigneesToAdd
821
+ assigneesToRemove: $assigneesToRemove
822
+ ) {
823
+ manualActionProgress {
824
+ state
825
+ manualAction {
826
+ status
827
+ assignees
828
+ }
829
+ }
830
+ }
831
+ }
832
+ `;
833
+ export const useChangeManualActionAssigneesMutation = (client, options, headers) => {
834
+ return useMutation({
835
+ mutationKey: ["ChangeManualActionAssignees"],
836
+ mutationFn: (variables) => fetcher(client, ChangeManualActionAssigneesDocument, variables, headers)(),
837
+ ...options,
838
+ });
839
+ };
840
+ export const ResolveManualActionDocument = `
841
+ mutation ResolveManualAction($namedGraphIri: String!, $subjectIri: String!, $resolvedBy: String!, $status: ManualActionResolveStatus!) {
842
+ manualActionResolve(
843
+ namedGraphIri: $namedGraphIri
844
+ subjectIri: $subjectIri
845
+ resolvedBy: $resolvedBy
846
+ status: $status
847
+ ) {
848
+ manualActionProgress {
849
+ state
850
+ manualAction {
851
+ status
852
+ assignees
853
+ }
854
+ }
855
+ }
856
+ }
857
+ `;
858
+ export const useResolveManualActionMutation = (client, options, headers) => {
859
+ return useMutation({
860
+ mutationKey: ["ResolveManualAction"],
861
+ mutationFn: (variables) => fetcher(client, ResolveManualActionDocument, variables, headers)(),
862
+ ...options,
863
+ });
864
+ };
865
+ export const MaterializeOntologyCoverageDocument = `
866
+ mutation MaterializeOntologyCoverage {
867
+ materializeOntologyCoverage {
868
+ success
869
+ error
870
+ }
871
+ }
872
+ `;
873
+ export const useMaterializeOntologyCoverageMutation = (client, options, headers) => {
874
+ return useMutation({
875
+ mutationKey: ["MaterializeOntologyCoverage"],
876
+ mutationFn: (variables) => fetcher(client, MaterializeOntologyCoverageDocument, variables, headers)(),
877
+ ...options,
878
+ });
879
+ };
880
+ export const MetaSetupConnectDocument = `
881
+ mutation MetaSetupConnect($accountIds: [String!]!) {
882
+ metaSetupConnect(accountIds: $accountIds) {
883
+ state
884
+ accounts {
885
+ id
886
+ name
887
+ parent
888
+ }
889
+ lastError {
890
+ severity
891
+ title
892
+ message
893
+ }
894
+ }
895
+ }
896
+ `;
897
+ export const useMetaSetupConnectMutation = (client, options, headers) => {
898
+ return useMutation({
899
+ mutationKey: ["MetaSetupConnect"],
900
+ mutationFn: (variables) => fetcher(client, MetaSetupConnectDocument, variables, headers)(),
901
+ ...options,
902
+ });
903
+ };
904
+ export const PauseLdesStreamDocument = `
905
+ mutation PauseLdesStream($url: String!) {
906
+ pauseLDESStream(url: $url) {
907
+ success
908
+ stream {
909
+ url
910
+ phase
911
+ }
912
+ }
913
+ }
914
+ `;
915
+ export const usePauseLdesStreamMutation = (client, options, headers) => {
916
+ return useMutation({
917
+ mutationKey: ["PauseLdesStream"],
918
+ mutationFn: (variables) => fetcher(client, PauseLdesStreamDocument, variables, headers)(),
919
+ ...options,
920
+ });
921
+ };
922
+ export const ProvisionDatastoreDocument = `
923
+ mutation ProvisionDatastore($input: ProvisionDatastoreInput!) {
924
+ provisionDatastore(input: $input) {
925
+ success
926
+ error
927
+ datastoreId
928
+ name
929
+ path
930
+ pending
931
+ runId
932
+ }
933
+ }
934
+ `;
935
+ export const useProvisionDatastoreMutation = (client, options, headers) => {
936
+ return useMutation({
937
+ mutationKey: ["ProvisionDatastore"],
938
+ mutationFn: (variables) => fetcher(client, ProvisionDatastoreDocument, variables, headers)(),
939
+ ...options,
940
+ });
941
+ };
942
+ export const ReconfirmMemoryDocument = `
943
+ mutation ReconfirmMemory($memoryIri: IRI!) {
944
+ reconfirmMemory(memoryIri: $memoryIri) {
945
+ ...MemoryMutationResult
946
+ }
947
+ }
948
+ ${MemoryMutationResultFragmentDoc}`;
949
+ export const useReconfirmMemoryMutation = (client, options, headers) => {
950
+ return useMutation({
951
+ mutationKey: ["ReconfirmMemory"],
952
+ mutationFn: (variables) => fetcher(client, ReconfirmMemoryDocument, variables, headers)(),
953
+ ...options,
954
+ });
955
+ };
956
+ export const RegisterDatastoreDocument = `
957
+ mutation RegisterDatastore($datastoreId: String!) {
958
+ registerDatastore(datastoreId: $datastoreId) {
959
+ success
960
+ error
961
+ }
962
+ }
963
+ `;
964
+ export const useRegisterDatastoreMutation = (client, options, headers) => {
965
+ return useMutation({
966
+ mutationKey: ["RegisterDatastore"],
967
+ mutationFn: (variables) => fetcher(client, RegisterDatastoreDocument, variables, headers)(),
968
+ ...options,
969
+ });
970
+ };
971
+ export const ReleaseRuleOwnershipDocument = `
972
+ mutation ReleaseRuleOwnership($input: ReleaseRuleOwnershipInput!) {
973
+ releaseRuleOwnership(input: $input) {
974
+ success
975
+ ruleIri
976
+ previousOwner
977
+ error
978
+ }
979
+ }
980
+ `;
981
+ export const useReleaseRuleOwnershipMutation = (client, options, headers) => {
982
+ return useMutation({
983
+ mutationKey: ["ReleaseRuleOwnership"],
984
+ mutationFn: (variables) => fetcher(client, ReleaseRuleOwnershipDocument, variables, headers)(),
985
+ ...options,
986
+ });
987
+ };
988
+ export const RemoveDatastoreDocument = `
989
+ mutation RemoveDatastore($datastoreId: String!) {
990
+ removeDatastore(datastoreId: $datastoreId) {
991
+ success
992
+ error
993
+ }
994
+ }
995
+ `;
996
+ export const useRemoveDatastoreMutation = (client, options, headers) => {
997
+ return useMutation({
998
+ mutationKey: ["RemoveDatastore"],
999
+ mutationFn: (variables) => fetcher(client, RemoveDatastoreDocument, variables, headers)(),
1000
+ ...options,
1001
+ });
1002
+ };
1003
+ export const RenameDatastoreGroupDocument = `
1004
+ mutation RenameDatastoreGroup($input: RenameDatastoreGroupInput!) {
1005
+ renameDatastoreGroup(input: $input) {
1006
+ success
1007
+ error
1008
+ }
1009
+ }
1010
+ `;
1011
+ export const useRenameDatastoreGroupMutation = (client, options, headers) => {
1012
+ return useMutation({
1013
+ mutationKey: ["RenameDatastoreGroup"],
1014
+ mutationFn: (variables) => fetcher(client, RenameDatastoreGroupDocument, variables, headers)(),
1015
+ ...options,
1016
+ });
1017
+ };
1018
+ export const RestoreDatastoreDocument = `
1019
+ mutation RestoreDatastore($datastoreId: String!) {
1020
+ restoreDatastore(datastoreId: $datastoreId) {
1021
+ success
1022
+ error
1023
+ }
1024
+ }
1025
+ `;
1026
+ export const useRestoreDatastoreMutation = (client, options, headers) => {
1027
+ return useMutation({
1028
+ mutationKey: ["RestoreDatastore"],
1029
+ mutationFn: (variables) => fetcher(client, RestoreDatastoreDocument, variables, headers)(),
1030
+ ...options,
1031
+ });
1032
+ };
1033
+ export const RestoreMemoryDocument = `
1034
+ mutation RestoreMemory($memoryIri: IRI!) {
1035
+ restoreMemory(memoryIri: $memoryIri) {
1036
+ success
1037
+ blockedByIri
1038
+ blockedByLabel
1039
+ error
1040
+ }
1041
+ }
1042
+ `;
1043
+ export const useRestoreMemoryMutation = (client, options, headers) => {
1044
+ return useMutation({
1045
+ mutationKey: ["RestoreMemory"],
1046
+ mutationFn: (variables) => fetcher(client, RestoreMemoryDocument, variables, headers)(),
1047
+ ...options,
1048
+ });
1049
+ };
1050
+ export const ResumeLdesStreamDocument = `
1051
+ mutation ResumeLdesStream($url: String!) {
1052
+ resumeLDESStream(url: $url) {
1053
+ success
1054
+ stream {
1055
+ url
1056
+ phase
1057
+ }
1058
+ }
1059
+ }
1060
+ `;
1061
+ export const useResumeLdesStreamMutation = (client, options, headers) => {
1062
+ return useMutation({
1063
+ mutationKey: ["ResumeLdesStream"],
1064
+ mutationFn: (variables) => fetcher(client, ResumeLdesStreamDocument, variables, headers)(),
1065
+ ...options,
1066
+ });
1067
+ };
1068
+ export const RevokeOperatorRoleDocument = `
1069
+ mutation RevokeOperatorRole($userId: String!) {
1070
+ revokeOperatorRole(userId: $userId) {
1071
+ id
1072
+ operator
1073
+ }
1074
+ }
1075
+ `;
1076
+ export const useRevokeOperatorRoleMutation = (client, options, headers) => {
1077
+ return useMutation({
1078
+ mutationKey: ["RevokeOperatorRole"],
1079
+ mutationFn: (variables) => fetcher(client, RevokeOperatorRoleDocument, variables, headers)(),
1080
+ ...options,
1081
+ });
1082
+ };
1083
+ export const StageRuleOperationDocument = `
1084
+ mutation StageRuleOperation($input: StageRuleOperationInput!) {
1085
+ stageRuleOperation(input: $input) {
1086
+ success
1087
+ ruleIri
1088
+ operation
1089
+ error
1090
+ }
1091
+ }
1092
+ `;
1093
+ export const useStageRuleOperationMutation = (client, options, headers) => {
1094
+ return useMutation({
1095
+ mutationKey: ["StageRuleOperation"],
1096
+ mutationFn: (variables) => fetcher(client, StageRuleOperationDocument, variables, headers)(),
1097
+ ...options,
1098
+ });
1099
+ };
1100
+ export const StartLdesStreamDocument = `
1101
+ mutation StartLdesStream($input: StartLDESStreamInput!) {
1102
+ startLDESStream(input: $input) {
1103
+ success
1104
+ stream {
1105
+ url
1106
+ phase
1107
+ after
1108
+ stats {
1109
+ membersWritten
1110
+ lastError
1111
+ }
1112
+ }
1113
+ }
1114
+ }
1115
+ `;
1116
+ export const useStartLdesStreamMutation = (client, options, headers) => {
1117
+ return useMutation({
1118
+ mutationKey: ["StartLdesStream"],
1119
+ mutationFn: (variables) => fetcher(client, StartLdesStreamDocument, variables, headers)(),
1120
+ ...options,
1121
+ });
1122
+ };
1123
+ export const SyncGmailIntegrationDocument = `
1124
+ mutation SyncGmailIntegration($email: String!) {
1125
+ syncGmailIntegration(email: $email) {
1126
+ email
1127
+ status
1128
+ error
1129
+ lastSyncedAt
1130
+ messagesIngested
1131
+ }
1132
+ }
1133
+ `;
1134
+ export const useSyncGmailIntegrationMutation = (client, options, headers) => {
1135
+ return useMutation({
1136
+ mutationKey: ["SyncGmailIntegration"],
1137
+ mutationFn: (variables) => fetcher(client, SyncGmailIntegrationDocument, variables, headers)(),
1138
+ ...options,
1139
+ });
1140
+ };
1141
+ export const UpdateMemoryDocument = `
1142
+ mutation UpdateMemory($input: UpdateMemoryInput!) {
1143
+ updateMemory(input: $input) {
1144
+ ...MemoryMutationResult
1145
+ }
1146
+ }
1147
+ ${MemoryMutationResultFragmentDoc}`;
1148
+ export const useUpdateMemoryMutation = (client, options, headers) => {
1149
+ return useMutation({
1150
+ mutationKey: ["UpdateMemory"],
1151
+ mutationFn: (variables) => fetcher(client, UpdateMemoryDocument, variables, headers)(),
1152
+ ...options,
1153
+ });
1154
+ };
1155
+ export const UpdateUserPreferencesDocument = `
1156
+ mutation UpdateUserPreferences($input: UpdateUserPreferencesInput!) {
1157
+ updateUserPreferences(input: $input) {
1158
+ preferences {
1159
+ defaultMemoryTtlDays
1160
+ }
1161
+ error
1162
+ }
1163
+ }
1164
+ `;
1165
+ export const useUpdateUserPreferencesMutation = (client, options, headers) => {
1166
+ return useMutation({
1167
+ mutationKey: ["UpdateUserPreferences"],
1168
+ mutationFn: (variables) => fetcher(client, UpdateUserPreferencesDocument, variables, headers)(),
1169
+ ...options,
1170
+ });
1171
+ };
1172
+ export const ValidateStagedRulesDocument = `
1173
+ mutation ValidateStagedRules($ruleIris: [IRI!]) {
1174
+ validateStagedRules(ruleIris: $ruleIris) {
1175
+ isValid
1176
+ isStratifiable
1177
+ syntaxErrors
1178
+ nonStratifiableComponents
1179
+ error
1180
+ }
1181
+ }
1182
+ `;
1183
+ export const useValidateStagedRulesMutation = (client, options, headers) => {
1184
+ return useMutation({
1185
+ mutationKey: ["ValidateStagedRules"],
1186
+ mutationFn: (variables) => fetcher(client, ValidateStagedRulesDocument, variables, headers)(),
1187
+ ...options,
1188
+ });
1189
+ };
1190
+ export const ActionPlanRulesDocument = `
1191
+ query ActionPlanRules($namedGraph: IRI!, $search: String, $limit: Int!, $offset: Int!) {
1192
+ rules(
1193
+ namedGraph: $namedGraph
1194
+ search: $search
1195
+ limit: $limit
1196
+ offset: $offset
1197
+ includeDependencyGraph: false
1198
+ ) {
1199
+ rules {
1200
+ ruleIri
1201
+ committedRule
1202
+ stagedRule
1203
+ isStaged
1204
+ isModified
1205
+ }
1206
+ count
1207
+ error
1208
+ }
1209
+ }
1210
+ `;
1211
+ export const useActionPlanRulesQuery = (client, variables, options, headers) => {
1212
+ return useQuery({
1213
+ queryKey: ["ActionPlanRules", variables],
1214
+ queryFn: fetcher(client, ActionPlanRulesDocument, variables, headers),
1215
+ ...options,
1216
+ });
1217
+ };
1218
+ useActionPlanRulesQuery.getKey = (variables) => ["ActionPlanRules", variables];
1219
+ export const useSuspenseActionPlanRulesQuery = (client, variables, options, headers) => {
1220
+ return useSuspenseQuery({
1221
+ queryKey: ["ActionPlanRulesSuspense", variables],
1222
+ queryFn: fetcher(client, ActionPlanRulesDocument, variables, headers),
1223
+ ...options,
1224
+ });
1225
+ };
1226
+ useSuspenseActionPlanRulesQuery.getKey = (variables) => [
1227
+ "ActionPlanRulesSuspense",
1228
+ variables,
1229
+ ];
1230
+ export const ActionPlanRunHistoryDocument = `
1231
+ query ActionPlanRunHistory($planGraphIris: [IRI!]!, $limit: Int, $offset: Int) {
1232
+ actionPlanRunHistory(
1233
+ planGraphIris: $planGraphIris
1234
+ limit: $limit
1235
+ offset: $offset
1236
+ ) {
1237
+ totalCount
1238
+ runs {
1239
+ activityIri
1240
+ planGraphIri
1241
+ startedAt
1242
+ endedAt
1243
+ status
1244
+ operationType
1245
+ errorMessage
1246
+ dryRun
1247
+ }
1248
+ }
1249
+ }
1250
+ `;
1251
+ export const useActionPlanRunHistoryQuery = (client, variables, options, headers) => {
1252
+ return useQuery({
1253
+ queryKey: ["ActionPlanRunHistory", variables],
1254
+ queryFn: fetcher(client, ActionPlanRunHistoryDocument, variables, headers),
1255
+ ...options,
1256
+ });
1257
+ };
1258
+ useActionPlanRunHistoryQuery.getKey = (variables) => [
1259
+ "ActionPlanRunHistory",
1260
+ variables,
1261
+ ];
1262
+ export const useSuspenseActionPlanRunHistoryQuery = (client, variables, options, headers) => {
1263
+ return useSuspenseQuery({
1264
+ queryKey: ["ActionPlanRunHistorySuspense", variables],
1265
+ queryFn: fetcher(client, ActionPlanRunHistoryDocument, variables, headers),
1266
+ ...options,
1267
+ });
1268
+ };
1269
+ useSuspenseActionPlanRunHistoryQuery.getKey = (variables) => [
1270
+ "ActionPlanRunHistorySuspense",
1271
+ variables,
1272
+ ];
1273
+ export const ActionPlanSamplesDocument = `
1274
+ query ActionPlanSamples($planGraphIri: IRI!, $typeIri: IRI!, $limit: Int = 5) {
1275
+ actionPlanSamples(planGraphIri: $planGraphIri, typeIri: $typeIri, limit: $limit) {
1276
+ samples {
1277
+ subject
1278
+ label
1279
+ description
1280
+ operation
1281
+ properties {
1282
+ predicate
1283
+ predicateLabel
1284
+ object
1285
+ objectLabel
1286
+ beforeObject
1287
+ beforeObjectLabel
1288
+ changeType
1289
+ }
1290
+ }
1291
+ count
1292
+ typeIri
1293
+ typeName
1294
+ error
1295
+ }
1296
+ }
1297
+ `;
1298
+ export const useActionPlanSamplesQuery = (client, variables, options, headers) => {
1299
+ return useQuery({
1300
+ queryKey: ["ActionPlanSamples", variables],
1301
+ queryFn: fetcher(client, ActionPlanSamplesDocument, variables, headers),
1302
+ ...options,
1303
+ });
1304
+ };
1305
+ useActionPlanSamplesQuery.getKey = (variables) => ["ActionPlanSamples", variables];
1306
+ export const useSuspenseActionPlanSamplesQuery = (client, variables, options, headers) => {
1307
+ return useSuspenseQuery({
1308
+ queryKey: ["ActionPlanSamplesSuspense", variables],
1309
+ queryFn: fetcher(client, ActionPlanSamplesDocument, variables, headers),
1310
+ ...options,
1311
+ });
1312
+ };
1313
+ useSuspenseActionPlanSamplesQuery.getKey = (variables) => [
1314
+ "ActionPlanSamplesSuspense",
1315
+ variables,
1316
+ ];
1317
+ export const GetActionPlansSummaryDocument = `
1318
+ query GetActionPlansSummary {
1319
+ actionPlansSummary {
1320
+ aggregate {
1321
+ potentialProfit {
1322
+ minValue
1323
+ maxValue
1324
+ unitCode
1325
+ unitText
1326
+ }
1327
+ investment {
1328
+ minValue
1329
+ maxValue
1330
+ unitCode
1331
+ unitText
1332
+ }
1333
+ expectedReturn {
1334
+ minValue
1335
+ maxValue
1336
+ unitCode
1337
+ unitText
1338
+ }
1339
+ }
1340
+ plans {
1341
+ name
1342
+ iri
1343
+ description
1344
+ priority
1345
+ primaryIntegration
1346
+ potentialProfit {
1347
+ ... on ApproximateQuantitativeValue {
1348
+ minValue
1349
+ maxValue
1350
+ unitCode
1351
+ unitText
1352
+ }
1353
+ ... on ExactQuantitativeValue {
1354
+ value
1355
+ unitCode
1356
+ unitText
1357
+ }
1358
+ }
1359
+ }
1360
+ }
1361
+ }
1362
+ `;
1363
+ export const useGetActionPlansSummaryQuery = (client, variables, options, headers) => {
1364
+ return useQuery({
1365
+ queryKey: variables === undefined ? ["GetActionPlansSummary"] : ["GetActionPlansSummary", variables],
1366
+ queryFn: fetcher(client, GetActionPlansSummaryDocument, variables, headers),
1367
+ ...options,
1368
+ });
1369
+ };
1370
+ useGetActionPlansSummaryQuery.getKey = (variables) => variables === undefined ? ["GetActionPlansSummary"] : ["GetActionPlansSummary", variables];
1371
+ export const useSuspenseGetActionPlansSummaryQuery = (client, variables, options, headers) => {
1372
+ return useSuspenseQuery({
1373
+ queryKey: variables === undefined ? ["GetActionPlansSummarySuspense"] : ["GetActionPlansSummarySuspense", variables],
1374
+ queryFn: fetcher(client, GetActionPlansSummaryDocument, variables, headers),
1375
+ ...options,
1376
+ });
1377
+ };
1378
+ useSuspenseGetActionPlansSummaryQuery.getKey = (variables) => variables === undefined ? ["GetActionPlansSummarySuspense"] : ["GetActionPlansSummarySuspense", variables];
1379
+ export const ActionPlansDocument = `
1380
+ query ActionPlans($search: String, $orderBy: ActionPlanOrderBy, $limit: PositiveInt, $offset: NonNegativeInt) {
1381
+ actionPlans(search: $search, orderBy: $orderBy, limit: $limit, offset: $offset) {
1382
+ plans {
1383
+ ...ActionPlanFields
1384
+ }
1385
+ count
1386
+ }
1387
+ }
1388
+ ${ActionPlanFieldsFragmentDoc}`;
1389
+ export const useActionPlansQuery = (client, variables, options, headers) => {
1390
+ return useQuery({
1391
+ queryKey: variables === undefined ? ["ActionPlans"] : ["ActionPlans", variables],
1392
+ queryFn: fetcher(client, ActionPlansDocument, variables, headers),
1393
+ ...options,
1394
+ });
1395
+ };
1396
+ useActionPlansQuery.getKey = (variables) => variables === undefined ? ["ActionPlans"] : ["ActionPlans", variables];
1397
+ export const useSuspenseActionPlansQuery = (client, variables, options, headers) => {
1398
+ return useSuspenseQuery({
1399
+ queryKey: variables === undefined ? ["ActionPlansSuspense"] : ["ActionPlansSuspense", variables],
1400
+ queryFn: fetcher(client, ActionPlansDocument, variables, headers),
1401
+ ...options,
1402
+ });
1403
+ };
1404
+ useSuspenseActionPlansQuery.getKey = (variables) => variables === undefined ? ["ActionPlansSuspense"] : ["ActionPlansSuspense", variables];
1405
+ export const ActionPlanByIriDocument = `
1406
+ query ActionPlanByIri($planGraphIri: IRI!) {
1407
+ actionPlans(planGraphIri: $planGraphIri) {
1408
+ plans {
1409
+ ...ActionPlanFields
1410
+ }
1411
+ count
1412
+ }
1413
+ }
1414
+ ${ActionPlanFieldsFragmentDoc}`;
1415
+ export const useActionPlanByIriQuery = (client, variables, options, headers) => {
1416
+ return useQuery({
1417
+ queryKey: ["ActionPlanByIri", variables],
1418
+ queryFn: fetcher(client, ActionPlanByIriDocument, variables, headers),
1419
+ ...options,
1420
+ });
1421
+ };
1422
+ useActionPlanByIriQuery.getKey = (variables) => ["ActionPlanByIri", variables];
1423
+ export const useSuspenseActionPlanByIriQuery = (client, variables, options, headers) => {
1424
+ return useSuspenseQuery({
1425
+ queryKey: ["ActionPlanByIriSuspense", variables],
1426
+ queryFn: fetcher(client, ActionPlanByIriDocument, variables, headers),
1427
+ ...options,
1428
+ });
1429
+ };
1430
+ useSuspenseActionPlanByIriQuery.getKey = (variables) => [
1431
+ "ActionPlanByIriSuspense",
1432
+ variables,
1433
+ ];
1434
+ export const ActionPlanDiffDocument = `
1435
+ query ActionPlanDiff($planGraphIri: IRI!) {
1436
+ actionPlanDiff(planGraphIri: $planGraphIri) {
1437
+ planGraph
1438
+ byTypes {
1439
+ typeIri
1440
+ typeName
1441
+ addedCount
1442
+ updatedCount
1443
+ }
1444
+ deleted
1445
+ summary {
1446
+ added
1447
+ updated
1448
+ deleted
1449
+ types
1450
+ }
1451
+ error
1452
+ }
1453
+ }
1454
+ `;
1455
+ export const useActionPlanDiffQuery = (client, variables, options, headers) => {
1456
+ return useQuery({
1457
+ queryKey: ["ActionPlanDiff", variables],
1458
+ queryFn: fetcher(client, ActionPlanDiffDocument, variables, headers),
1459
+ ...options,
1460
+ });
1461
+ };
1462
+ useActionPlanDiffQuery.getKey = (variables) => ["ActionPlanDiff", variables];
1463
+ export const useSuspenseActionPlanDiffQuery = (client, variables, options, headers) => {
1464
+ return useSuspenseQuery({
1465
+ queryKey: ["ActionPlanDiffSuspense", variables],
1466
+ queryFn: fetcher(client, ActionPlanDiffDocument, variables, headers),
1467
+ ...options,
1468
+ });
1469
+ };
1470
+ useSuspenseActionPlanDiffQuery.getKey = (variables) => [
1471
+ "ActionPlanDiffSuspense",
1472
+ variables,
1473
+ ];
1474
+ export const AvailableTeamsDocument = `
1475
+ query AvailableTeams {
1476
+ availableTeams {
1477
+ teams {
1478
+ name
1479
+ }
1480
+ error
1481
+ }
1482
+ }
1483
+ `;
1484
+ export const useAvailableTeamsQuery = (client, variables, options, headers) => {
1485
+ return useQuery({
1486
+ queryKey: variables === undefined ? ["AvailableTeams"] : ["AvailableTeams", variables],
1487
+ queryFn: fetcher(client, AvailableTeamsDocument, variables, headers),
1488
+ ...options,
1489
+ });
1490
+ };
1491
+ useAvailableTeamsQuery.getKey = (variables) => variables === undefined ? ["AvailableTeams"] : ["AvailableTeams", variables];
1492
+ export const useSuspenseAvailableTeamsQuery = (client, variables, options, headers) => {
1493
+ return useSuspenseQuery({
1494
+ queryKey: variables === undefined ? ["AvailableTeamsSuspense"] : ["AvailableTeamsSuspense", variables],
1495
+ queryFn: fetcher(client, AvailableTeamsDocument, variables, headers),
1496
+ ...options,
1497
+ });
1498
+ };
1499
+ useSuspenseAvailableTeamsQuery.getKey = (variables) => variables === undefined ? ["AvailableTeamsSuspense"] : ["AvailableTeamsSuspense", variables];
1500
+ export const ConnectedAccountsDocument = `
1501
+ query ConnectedAccounts {
1502
+ connectedAccounts {
1503
+ id
1504
+ integration
1505
+ externalId
1506
+ }
1507
+ }
1508
+ `;
1509
+ export const useConnectedAccountsQuery = (client, variables, options, headers) => {
1510
+ return useQuery({
1511
+ queryKey: variables === undefined ? ["ConnectedAccounts"] : ["ConnectedAccounts", variables],
1512
+ queryFn: fetcher(client, ConnectedAccountsDocument, variables, headers),
1513
+ ...options,
1514
+ });
1515
+ };
1516
+ useConnectedAccountsQuery.getKey = (variables) => variables === undefined ? ["ConnectedAccounts"] : ["ConnectedAccounts", variables];
1517
+ export const useSuspenseConnectedAccountsQuery = (client, variables, options, headers) => {
1518
+ return useSuspenseQuery({
1519
+ queryKey: variables === undefined ? ["ConnectedAccountsSuspense"] : ["ConnectedAccountsSuspense", variables],
1520
+ queryFn: fetcher(client, ConnectedAccountsDocument, variables, headers),
1521
+ ...options,
1522
+ });
1523
+ };
1524
+ useSuspenseConnectedAccountsQuery.getKey = (variables) => variables === undefined ? ["ConnectedAccountsSuspense"] : ["ConnectedAccountsSuspense", variables];
1525
+ export const ConversationStartersDocument = `
1526
+ query ConversationStarters($planGraphIri: IRI) {
1527
+ conversationStarters(planGraphIri: $planGraphIri) {
1528
+ starters {
1529
+ id
1530
+ title
1531
+ description
1532
+ priority
1533
+ }
1534
+ count
1535
+ source
1536
+ }
1537
+ }
1538
+ `;
1539
+ export const useConversationStartersQuery = (client, variables, options, headers) => {
1540
+ return useQuery({
1541
+ queryKey: variables === undefined ? ["ConversationStarters"] : ["ConversationStarters", variables],
1542
+ queryFn: fetcher(client, ConversationStartersDocument, variables, headers),
1543
+ ...options,
1544
+ });
1545
+ };
1546
+ useConversationStartersQuery.getKey = (variables) => variables === undefined ? ["ConversationStarters"] : ["ConversationStarters", variables];
1547
+ export const useSuspenseConversationStartersQuery = (client, variables, options, headers) => {
1548
+ return useSuspenseQuery({
1549
+ queryKey: variables === undefined ? ["ConversationStartersSuspense"] : ["ConversationStartersSuspense", variables],
1550
+ queryFn: fetcher(client, ConversationStartersDocument, variables, headers),
1551
+ ...options,
1552
+ });
1553
+ };
1554
+ useSuspenseConversationStartersQuery.getKey = (variables) => variables === undefined ? ["ConversationStartersSuspense"] : ["ConversationStartersSuspense", variables];
1555
+ export const CoverageRulesDocument = `
1556
+ query CoverageRules {
1557
+ rules(includeDependencyGraph: false) {
1558
+ rules {
1559
+ ruleIri
1560
+ committedVocabulary {
1561
+ head {
1562
+ classes
1563
+ predicates
1564
+ }
1565
+ body {
1566
+ classes
1567
+ predicates
1568
+ }
1569
+ error
1570
+ }
1571
+ }
1572
+ count
1573
+ error
1574
+ }
1575
+ }
1576
+ `;
1577
+ export const useCoverageRulesQuery = (client, variables, options, headers) => {
1578
+ return useQuery({
1579
+ queryKey: variables === undefined ? ["CoverageRules"] : ["CoverageRules", variables],
1580
+ queryFn: fetcher(client, CoverageRulesDocument, variables, headers),
1581
+ ...options,
1582
+ });
1583
+ };
1584
+ useCoverageRulesQuery.getKey = (variables) => variables === undefined ? ["CoverageRules"] : ["CoverageRules", variables];
1585
+ export const useSuspenseCoverageRulesQuery = (client, variables, options, headers) => {
1586
+ return useSuspenseQuery({
1587
+ queryKey: variables === undefined ? ["CoverageRulesSuspense"] : ["CoverageRulesSuspense", variables],
1588
+ queryFn: fetcher(client, CoverageRulesDocument, variables, headers),
1589
+ ...options,
1590
+ });
1591
+ };
1592
+ useSuspenseCoverageRulesQuery.getKey = (variables) => variables === undefined ? ["CoverageRulesSuspense"] : ["CoverageRulesSuspense", variables];
1593
+ export const CurrentFactValueDocument = `
1594
+ query CurrentFactValue($subject: String!, $predicate: String, $object: String!, $objectDatatype: String, $namedGraph: IRI) {
1595
+ currentFactValue(
1596
+ subject: $subject
1597
+ predicate: $predicate
1598
+ object: $object
1599
+ objectDatatype: $objectDatatype
1600
+ namedGraph: $namedGraph
1601
+ ) {
1602
+ status
1603
+ currentObject
1604
+ error
1605
+ }
1606
+ }
1607
+ `;
1608
+ export const useCurrentFactValueQuery = (client, variables, options, headers) => {
1609
+ return useQuery({
1610
+ queryKey: ["CurrentFactValue", variables],
1611
+ queryFn: fetcher(client, CurrentFactValueDocument, variables, headers),
1612
+ ...options,
1613
+ });
1614
+ };
1615
+ useCurrentFactValueQuery.getKey = (variables) => ["CurrentFactValue", variables];
1616
+ export const useSuspenseCurrentFactValueQuery = (client, variables, options, headers) => {
1617
+ return useSuspenseQuery({
1618
+ queryKey: ["CurrentFactValueSuspense", variables],
1619
+ queryFn: fetcher(client, CurrentFactValueDocument, variables, headers),
1620
+ ...options,
1621
+ });
1622
+ };
1623
+ useSuspenseCurrentFactValueQuery.getKey = (variables) => [
1624
+ "CurrentFactValueSuspense",
1625
+ variables,
1626
+ ];
1627
+ export const DatastoreProvisioningStatusesDocument = `
1628
+ query DatastoreProvisioningStatuses($datastoreIds: [String!]!) {
1629
+ datastoreProvisioningStatuses(datastoreIds: $datastoreIds) {
1630
+ datastoreId
1631
+ exists
1632
+ materialized
1633
+ registered
1634
+ offline
1635
+ known
1636
+ ready
1637
+ }
1638
+ }
1639
+ `;
1640
+ export const useDatastoreProvisioningStatusesQuery = (client, variables, options, headers) => {
1641
+ return useQuery({
1642
+ queryKey: ["DatastoreProvisioningStatuses", variables],
1643
+ queryFn: fetcher(client, DatastoreProvisioningStatusesDocument, variables, headers),
1644
+ ...options,
1645
+ });
1646
+ };
1647
+ useDatastoreProvisioningStatusesQuery.getKey = (variables) => [
1648
+ "DatastoreProvisioningStatuses",
1649
+ variables,
1650
+ ];
1651
+ export const useSuspenseDatastoreProvisioningStatusesQuery = (client, variables, options, headers) => {
1652
+ return useSuspenseQuery({
1653
+ queryKey: ["DatastoreProvisioningStatusesSuspense", variables],
1654
+ queryFn: fetcher(client, DatastoreProvisioningStatusesDocument, variables, headers),
1655
+ ...options,
1656
+ });
1657
+ };
1658
+ useSuspenseDatastoreProvisioningStatusesQuery.getKey = (variables) => [
1659
+ "DatastoreProvisioningStatusesSuspense",
1660
+ variables,
1661
+ ];
1662
+ export const DatastoreTreeDocument = `
1663
+ query DatastoreTree {
1664
+ datastoreTree {
1665
+ id
1666
+ name
1667
+ depth
1668
+ organizationId
1669
+ organizationName
1670
+ organizationAlias
1671
+ path
1672
+ datastoreId
1673
+ removed
1674
+ provisionedAt
1675
+ provisionedBy
1676
+ isOrganization
1677
+ }
1678
+ }
1679
+ `;
1680
+ export const useDatastoreTreeQuery = (client, variables, options, headers) => {
1681
+ return useQuery({
1682
+ queryKey: variables === undefined ? ["DatastoreTree"] : ["DatastoreTree", variables],
1683
+ queryFn: fetcher(client, DatastoreTreeDocument, variables, headers),
1684
+ ...options,
1685
+ });
1686
+ };
1687
+ useDatastoreTreeQuery.getKey = (variables) => variables === undefined ? ["DatastoreTree"] : ["DatastoreTree", variables];
1688
+ export const useSuspenseDatastoreTreeQuery = (client, variables, options, headers) => {
1689
+ return useSuspenseQuery({
1690
+ queryKey: variables === undefined ? ["DatastoreTreeSuspense"] : ["DatastoreTreeSuspense", variables],
1691
+ queryFn: fetcher(client, DatastoreTreeDocument, variables, headers),
1692
+ ...options,
1693
+ });
1694
+ };
1695
+ useSuspenseDatastoreTreeQuery.getKey = (variables) => variables === undefined ? ["DatastoreTreeSuspense"] : ["DatastoreTreeSuspense", variables];
1696
+ export const DetectMemoryConflictsDocument = `
1697
+ query DetectMemoryConflicts($input: DetectMemoryConflictsInput!) {
1698
+ detectMemoryConflicts(input: $input) {
1699
+ conflicts {
1700
+ iri
1701
+ label
1702
+ description
1703
+ reason
1704
+ currentTeams
1705
+ kind
1706
+ importance
1707
+ memoryValidUntil
1708
+ memoryTrustedUntil
1709
+ createdBy
1710
+ }
1711
+ timedOut
1712
+ }
1713
+ }
1714
+ `;
1715
+ export const useDetectMemoryConflictsQuery = (client, variables, options, headers) => {
1716
+ return useQuery({
1717
+ queryKey: ["DetectMemoryConflicts", variables],
1718
+ queryFn: fetcher(client, DetectMemoryConflictsDocument, variables, headers),
1719
+ ...options,
1720
+ });
1721
+ };
1722
+ useDetectMemoryConflictsQuery.getKey = (variables) => [
1723
+ "DetectMemoryConflicts",
1724
+ variables,
1725
+ ];
1726
+ export const useSuspenseDetectMemoryConflictsQuery = (client, variables, options, headers) => {
1727
+ return useSuspenseQuery({
1728
+ queryKey: ["DetectMemoryConflictsSuspense", variables],
1729
+ queryFn: fetcher(client, DetectMemoryConflictsDocument, variables, headers),
1730
+ ...options,
1731
+ });
1732
+ };
1733
+ useSuspenseDetectMemoryConflictsQuery.getKey = (variables) => [
1734
+ "DetectMemoryConflictsSuspense",
1735
+ variables,
1736
+ ];
1737
+ export const ExplainRdFoxFactDocument = `
1738
+ query ExplainRDFoxFact($subject: String!, $predicate: String, $object: String!, $objectDatatype: String, $summarize: Boolean = false, $namedGraph: IRI) {
1739
+ explainRDFoxFact(
1740
+ subject: $subject
1741
+ predicate: $predicate
1742
+ object: $object
1743
+ objectDatatype: $objectDatatype
1744
+ summarize: $summarize
1745
+ namedGraph: $namedGraph
1746
+ ) {
1747
+ facts
1748
+ formatted
1749
+ summary
1750
+ error
1751
+ }
1752
+ }
1753
+ `;
1754
+ export const useExplainRdFoxFactQuery = (client, variables, options, headers) => {
1755
+ return useQuery({
1756
+ queryKey: ["ExplainRDFoxFact", variables],
1757
+ queryFn: fetcher(client, ExplainRdFoxFactDocument, variables, headers),
1758
+ ...options,
1759
+ });
1760
+ };
1761
+ useExplainRdFoxFactQuery.getKey = (variables) => ["ExplainRDFoxFact", variables];
1762
+ export const useSuspenseExplainRdFoxFactQuery = (client, variables, options, headers) => {
1763
+ return useSuspenseQuery({
1764
+ queryKey: ["ExplainRDFoxFactSuspense", variables],
1765
+ queryFn: fetcher(client, ExplainRdFoxFactDocument, variables, headers),
1766
+ ...options,
1767
+ });
1768
+ };
1769
+ useSuspenseExplainRdFoxFactQuery.getKey = (variables) => [
1770
+ "ExplainRDFoxFactSuspense",
1771
+ variables,
1772
+ ];
1773
+ export const GmailIntegrationsDocument = `
1774
+ query GmailIntegrations {
1775
+ gmailIntegrations {
1776
+ email
1777
+ status
1778
+ error
1779
+ lastSyncedAt
1780
+ messagesIngested
1781
+ }
1782
+ }
1783
+ `;
1784
+ export const useGmailIntegrationsQuery = (client, variables, options, headers) => {
1785
+ return useQuery({
1786
+ queryKey: variables === undefined ? ["GmailIntegrations"] : ["GmailIntegrations", variables],
1787
+ queryFn: fetcher(client, GmailIntegrationsDocument, variables, headers),
1788
+ ...options,
1789
+ });
1790
+ };
1791
+ useGmailIntegrationsQuery.getKey = (variables) => variables === undefined ? ["GmailIntegrations"] : ["GmailIntegrations", variables];
1792
+ export const useSuspenseGmailIntegrationsQuery = (client, variables, options, headers) => {
1793
+ return useSuspenseQuery({
1794
+ queryKey: variables === undefined ? ["GmailIntegrationsSuspense"] : ["GmailIntegrationsSuspense", variables],
1795
+ queryFn: fetcher(client, GmailIntegrationsDocument, variables, headers),
1796
+ ...options,
1797
+ });
1798
+ };
1799
+ useSuspenseGmailIntegrationsQuery.getKey = (variables) => variables === undefined ? ["GmailIntegrationsSuspense"] : ["GmailIntegrationsSuspense", variables];
1800
+ export const GoogleAnalyticsSetupProgressDocument = `
1801
+ query GoogleAnalyticsSetupProgress {
1802
+ googleAnalyticsSetupProgress {
1803
+ state
1804
+ properties {
1805
+ id
1806
+ name
1807
+ parent
1808
+ account
1809
+ connectable
1810
+ externalId
1811
+ }
1812
+ lastError {
1813
+ severity
1814
+ title
1815
+ message
1816
+ }
1817
+ }
1818
+ }
1819
+ `;
1820
+ export const useGoogleAnalyticsSetupProgressQuery = (client, variables, options, headers) => {
1821
+ return useQuery({
1822
+ queryKey: variables === undefined ? ["GoogleAnalyticsSetupProgress"] : ["GoogleAnalyticsSetupProgress", variables],
1823
+ queryFn: fetcher(client, GoogleAnalyticsSetupProgressDocument, variables, headers),
1824
+ ...options,
1825
+ });
1826
+ };
1827
+ useGoogleAnalyticsSetupProgressQuery.getKey = (variables) => variables === undefined ? ["GoogleAnalyticsSetupProgress"] : ["GoogleAnalyticsSetupProgress", variables];
1828
+ export const useSuspenseGoogleAnalyticsSetupProgressQuery = (client, variables, options, headers) => {
1829
+ return useSuspenseQuery({
1830
+ queryKey: variables === undefined
1831
+ ? ["GoogleAnalyticsSetupProgressSuspense"]
1832
+ : ["GoogleAnalyticsSetupProgressSuspense", variables],
1833
+ queryFn: fetcher(client, GoogleAnalyticsSetupProgressDocument, variables, headers),
1834
+ ...options,
1835
+ });
1836
+ };
1837
+ useSuspenseGoogleAnalyticsSetupProgressQuery.getKey = (variables) => variables === undefined
1838
+ ? ["GoogleAnalyticsSetupProgressSuspense"]
1839
+ : ["GoogleAnalyticsSetupProgressSuspense", variables];
1840
+ export const GoogleSetupProgressDocument = `
1841
+ query GoogleSetupProgress {
1842
+ googleSetupProgress {
1843
+ state
1844
+ accounts {
1845
+ id
1846
+ name
1847
+ parent
1848
+ manager
1849
+ level
1850
+ connectable
1851
+ }
1852
+ lastError {
1853
+ severity
1854
+ title
1855
+ message
1856
+ }
1857
+ }
1858
+ }
1859
+ `;
1860
+ export const useGoogleSetupProgressQuery = (client, variables, options, headers) => {
1861
+ return useQuery({
1862
+ queryKey: variables === undefined ? ["GoogleSetupProgress"] : ["GoogleSetupProgress", variables],
1863
+ queryFn: fetcher(client, GoogleSetupProgressDocument, variables, headers),
1864
+ ...options,
1865
+ });
1866
+ };
1867
+ useGoogleSetupProgressQuery.getKey = (variables) => variables === undefined ? ["GoogleSetupProgress"] : ["GoogleSetupProgress", variables];
1868
+ export const useSuspenseGoogleSetupProgressQuery = (client, variables, options, headers) => {
1869
+ return useSuspenseQuery({
1870
+ queryKey: variables === undefined ? ["GoogleSetupProgressSuspense"] : ["GoogleSetupProgressSuspense", variables],
1871
+ queryFn: fetcher(client, GoogleSetupProgressDocument, variables, headers),
1872
+ ...options,
1873
+ });
1874
+ };
1875
+ useSuspenseGoogleSetupProgressQuery.getKey = (variables) => variables === undefined ? ["GoogleSetupProgressSuspense"] : ["GoogleSetupProgressSuspense", variables];
1876
+ export const InferalIntegrationsDocument = `
1877
+ query InferalIntegrations {
1878
+ inferalIntegrations {
1879
+ id
1880
+ provider
1881
+ shopId
1882
+ streamName
1883
+ streamUrl
1884
+ status
1885
+ isInFlight
1886
+ }
1887
+ }
1888
+ `;
1889
+ export const useInferalIntegrationsQuery = (client, variables, options, headers) => {
1890
+ return useQuery({
1891
+ queryKey: variables === undefined ? ["InferalIntegrations"] : ["InferalIntegrations", variables],
1892
+ queryFn: fetcher(client, InferalIntegrationsDocument, variables, headers),
1893
+ ...options,
1894
+ });
1895
+ };
1896
+ useInferalIntegrationsQuery.getKey = (variables) => variables === undefined ? ["InferalIntegrations"] : ["InferalIntegrations", variables];
1897
+ export const useSuspenseInferalIntegrationsQuery = (client, variables, options, headers) => {
1898
+ return useSuspenseQuery({
1899
+ queryKey: variables === undefined ? ["InferalIntegrationsSuspense"] : ["InferalIntegrationsSuspense", variables],
1900
+ queryFn: fetcher(client, InferalIntegrationsDocument, variables, headers),
1901
+ ...options,
1902
+ });
1903
+ };
1904
+ useSuspenseInferalIntegrationsQuery.getKey = (variables) => variables === undefined ? ["InferalIntegrationsSuspense"] : ["InferalIntegrationsSuspense", variables];
1905
+ export const KnowledgeGraphStateDocument = `
1906
+ query KnowledgeGraphState($dataVersion: String) {
1907
+ knowledgeGraphState(dataVersion: $dataVersion) {
1908
+ exists
1909
+ isLoaded
1910
+ offline
1911
+ capacity {
1912
+ maxTriples
1913
+ currentTriples
1914
+ percentageFull
1915
+ remainingCapacity
1916
+ entitySummary {
1917
+ type
1918
+ count
1919
+ }
1920
+ }
1921
+ dataVersion {
1922
+ uniqueId
1923
+ version
1924
+ }
1925
+ }
1926
+ }
1927
+ `;
1928
+ export const useKnowledgeGraphStateQuery = (client, variables, options, headers) => {
1929
+ return useQuery({
1930
+ queryKey: variables === undefined ? ["KnowledgeGraphState"] : ["KnowledgeGraphState", variables],
1931
+ queryFn: fetcher(client, KnowledgeGraphStateDocument, variables, headers),
1932
+ ...options,
1933
+ });
1934
+ };
1935
+ useKnowledgeGraphStateQuery.getKey = (variables) => variables === undefined ? ["KnowledgeGraphState"] : ["KnowledgeGraphState", variables];
1936
+ export const useSuspenseKnowledgeGraphStateQuery = (client, variables, options, headers) => {
1937
+ return useSuspenseQuery({
1938
+ queryKey: variables === undefined ? ["KnowledgeGraphStateSuspense"] : ["KnowledgeGraphStateSuspense", variables],
1939
+ queryFn: fetcher(client, KnowledgeGraphStateDocument, variables, headers),
1940
+ ...options,
1941
+ });
1942
+ };
1943
+ useSuspenseKnowledgeGraphStateQuery.getKey = (variables) => variables === undefined ? ["KnowledgeGraphStateSuspense"] : ["KnowledgeGraphStateSuspense", variables];
1944
+ export const LdesStreamsDocument = `
1945
+ query LdesStreams {
1946
+ ldesStreams {
1947
+ url
1948
+ datastoreId
1949
+ phase
1950
+ after
1951
+ stats {
1952
+ membersWritten
1953
+ lastMemberUri
1954
+ lastMemberAt
1955
+ lastPollAt
1956
+ nextPollAt
1957
+ lastError
1958
+ }
1959
+ }
1960
+ }
1961
+ `;
1962
+ export const useLdesStreamsQuery = (client, variables, options, headers) => {
1963
+ return useQuery({
1964
+ queryKey: variables === undefined ? ["LdesStreams"] : ["LdesStreams", variables],
1965
+ queryFn: fetcher(client, LdesStreamsDocument, variables, headers),
1966
+ ...options,
1967
+ });
1968
+ };
1969
+ useLdesStreamsQuery.getKey = (variables) => variables === undefined ? ["LdesStreams"] : ["LdesStreams", variables];
1970
+ export const useSuspenseLdesStreamsQuery = (client, variables, options, headers) => {
1971
+ return useSuspenseQuery({
1972
+ queryKey: variables === undefined ? ["LdesStreamsSuspense"] : ["LdesStreamsSuspense", variables],
1973
+ queryFn: fetcher(client, LdesStreamsDocument, variables, headers),
1974
+ ...options,
1975
+ });
1976
+ };
1977
+ useSuspenseLdesStreamsQuery.getKey = (variables) => variables === undefined ? ["LdesStreamsSuspense"] : ["LdesStreamsSuspense", variables];
1978
+ export const LinkedinSetupProgressDocument = `
1979
+ query LinkedinSetupProgress {
1980
+ linkedinSetupProgress {
1981
+ state
1982
+ accounts {
1983
+ id
1984
+ name
1985
+ }
1986
+ lastError {
1987
+ severity
1988
+ message
1989
+ title
1990
+ }
1991
+ }
1992
+ }
1993
+ `;
1994
+ export const useLinkedinSetupProgressQuery = (client, variables, options, headers) => {
1995
+ return useQuery({
1996
+ queryKey: variables === undefined ? ["LinkedinSetupProgress"] : ["LinkedinSetupProgress", variables],
1997
+ queryFn: fetcher(client, LinkedinSetupProgressDocument, variables, headers),
1998
+ ...options,
1999
+ });
2000
+ };
2001
+ useLinkedinSetupProgressQuery.getKey = (variables) => variables === undefined ? ["LinkedinSetupProgress"] : ["LinkedinSetupProgress", variables];
2002
+ export const useSuspenseLinkedinSetupProgressQuery = (client, variables, options, headers) => {
2003
+ return useSuspenseQuery({
2004
+ queryKey: variables === undefined ? ["LinkedinSetupProgressSuspense"] : ["LinkedinSetupProgressSuspense", variables],
2005
+ queryFn: fetcher(client, LinkedinSetupProgressDocument, variables, headers),
2006
+ ...options,
2007
+ });
2008
+ };
2009
+ useSuspenseLinkedinSetupProgressQuery.getKey = (variables) => variables === undefined ? ["LinkedinSetupProgressSuspense"] : ["LinkedinSetupProgressSuspense", variables];
2010
+ export const MemoriesDocument = `
2011
+ query Memories($includeArchived: Boolean, $includeOutOfWindow: Boolean) {
2012
+ memories(
2013
+ includeArchived: $includeArchived
2014
+ includeOutOfWindow: $includeOutOfWindow
2015
+ ) {
2016
+ memories {
2017
+ ...MemoryFields
2018
+ updatedAt
2019
+ supersededBy
2020
+ createdBy
2021
+ }
2022
+ error
2023
+ }
2024
+ }
2025
+ ${MemoryFieldsFragmentDoc}`;
2026
+ export const useMemoriesQuery = (client, variables, options, headers) => {
2027
+ return useQuery({
2028
+ queryKey: variables === undefined ? ["Memories"] : ["Memories", variables],
2029
+ queryFn: fetcher(client, MemoriesDocument, variables, headers),
2030
+ ...options,
2031
+ });
2032
+ };
2033
+ useMemoriesQuery.getKey = (variables) => variables === undefined ? ["Memories"] : ["Memories", variables];
2034
+ export const useSuspenseMemoriesQuery = (client, variables, options, headers) => {
2035
+ return useSuspenseQuery({
2036
+ queryKey: variables === undefined ? ["MemoriesSuspense"] : ["MemoriesSuspense", variables],
2037
+ queryFn: fetcher(client, MemoriesDocument, variables, headers),
2038
+ ...options,
2039
+ });
2040
+ };
2041
+ useSuspenseMemoriesQuery.getKey = (variables) => variables === undefined ? ["MemoriesSuspense"] : ["MemoriesSuspense", variables];
2042
+ export const MemoryRedundancyReviewDocument = `
2043
+ query MemoryRedundancyReview($input: MemoryConsolidationInput!) {
2044
+ memoryRedundancyReview(input: $input) {
2045
+ clusters {
2046
+ memories {
2047
+ ...MemoryFields
2048
+ }
2049
+ reason
2050
+ suggestedLabel
2051
+ suggestedDescription
2052
+ }
2053
+ abstractions {
2054
+ memories {
2055
+ ...MemoryFields
2056
+ }
2057
+ reason
2058
+ suggestedLabel
2059
+ suggestedDescription
2060
+ }
2061
+ comparedCount
2062
+ timedOut
2063
+ error
2064
+ }
2065
+ }
2066
+ ${MemoryFieldsFragmentDoc}`;
2067
+ export const useMemoryRedundancyReviewQuery = (client, variables, options, headers) => {
2068
+ return useQuery({
2069
+ queryKey: ["MemoryRedundancyReview", variables],
2070
+ queryFn: fetcher(client, MemoryRedundancyReviewDocument, variables, headers),
2071
+ ...options,
2072
+ });
2073
+ };
2074
+ useMemoryRedundancyReviewQuery.getKey = (variables) => [
2075
+ "MemoryRedundancyReview",
2076
+ variables,
2077
+ ];
2078
+ export const useSuspenseMemoryRedundancyReviewQuery = (client, variables, options, headers) => {
2079
+ return useSuspenseQuery({
2080
+ queryKey: ["MemoryRedundancyReviewSuspense", variables],
2081
+ queryFn: fetcher(client, MemoryRedundancyReviewDocument, variables, headers),
2082
+ ...options,
2083
+ });
2084
+ };
2085
+ useSuspenseMemoryRedundancyReviewQuery.getKey = (variables) => [
2086
+ "MemoryRedundancyReviewSuspense",
2087
+ variables,
2088
+ ];
2089
+ export const MemorySchemasDocument = `
2090
+ query MemorySchemas {
2091
+ memorySchemas {
2092
+ schemas {
2093
+ iri
2094
+ label
2095
+ description
2096
+ properties {
2097
+ path
2098
+ label
2099
+ dataType
2100
+ required
2101
+ allowedValues
2102
+ keyProperty
2103
+ inferred
2104
+ }
2105
+ }
2106
+ error
2107
+ }
2108
+ }
2109
+ `;
2110
+ export const useMemorySchemasQuery = (client, variables, options, headers) => {
2111
+ return useQuery({
2112
+ queryKey: variables === undefined ? ["MemorySchemas"] : ["MemorySchemas", variables],
2113
+ queryFn: fetcher(client, MemorySchemasDocument, variables, headers),
2114
+ ...options,
2115
+ });
2116
+ };
2117
+ useMemorySchemasQuery.getKey = (variables) => variables === undefined ? ["MemorySchemas"] : ["MemorySchemas", variables];
2118
+ export const useSuspenseMemorySchemasQuery = (client, variables, options, headers) => {
2119
+ return useSuspenseQuery({
2120
+ queryKey: variables === undefined ? ["MemorySchemasSuspense"] : ["MemorySchemasSuspense", variables],
2121
+ queryFn: fetcher(client, MemorySchemasDocument, variables, headers),
2122
+ ...options,
2123
+ });
2124
+ };
2125
+ useSuspenseMemorySchemasQuery.getKey = (variables) => variables === undefined ? ["MemorySchemasSuspense"] : ["MemorySchemasSuspense", variables];
2126
+ export const MetaSetupProgressDocument = `
2127
+ query MetaSetupProgress {
2128
+ metaSetupProgress {
2129
+ state
2130
+ accounts {
2131
+ id
2132
+ name
2133
+ parent
2134
+ }
2135
+ lastError {
2136
+ severity
2137
+ title
2138
+ message
2139
+ }
2140
+ }
2141
+ }
2142
+ `;
2143
+ export const useMetaSetupProgressQuery = (client, variables, options, headers) => {
2144
+ return useQuery({
2145
+ queryKey: variables === undefined ? ["MetaSetupProgress"] : ["MetaSetupProgress", variables],
2146
+ queryFn: fetcher(client, MetaSetupProgressDocument, variables, headers),
2147
+ ...options,
2148
+ });
2149
+ };
2150
+ useMetaSetupProgressQuery.getKey = (variables) => variables === undefined ? ["MetaSetupProgress"] : ["MetaSetupProgress", variables];
2151
+ export const useSuspenseMetaSetupProgressQuery = (client, variables, options, headers) => {
2152
+ return useSuspenseQuery({
2153
+ queryKey: variables === undefined ? ["MetaSetupProgressSuspense"] : ["MetaSetupProgressSuspense", variables],
2154
+ queryFn: fetcher(client, MetaSetupProgressDocument, variables, headers),
2155
+ ...options,
2156
+ });
2157
+ };
2158
+ useSuspenseMetaSetupProgressQuery.getKey = (variables) => variables === undefined ? ["MetaSetupProgressSuspense"] : ["MetaSetupProgressSuspense", variables];
2159
+ export const NodePropertiesDocument = `
2160
+ query NodeProperties($nodeIri: String!, $planGraphIri: IRI) {
2161
+ nodeProperties(nodeIri: $nodeIri, planGraphIri: $planGraphIri) {
2162
+ subject
2163
+ label
2164
+ typeName
2165
+ properties {
2166
+ predicate
2167
+ predicateLabel
2168
+ object
2169
+ objectLabel
2170
+ beforeObject
2171
+ beforeObjectLabel
2172
+ changeType
2173
+ }
2174
+ }
2175
+ }
2176
+ `;
2177
+ export const useNodePropertiesQuery = (client, variables, options, headers) => {
2178
+ return useQuery({
2179
+ queryKey: ["NodeProperties", variables],
2180
+ queryFn: fetcher(client, NodePropertiesDocument, variables, headers),
2181
+ ...options,
2182
+ });
2183
+ };
2184
+ useNodePropertiesQuery.getKey = (variables) => ["NodeProperties", variables];
2185
+ export const useSuspenseNodePropertiesQuery = (client, variables, options, headers) => {
2186
+ return useSuspenseQuery({
2187
+ queryKey: ["NodePropertiesSuspense", variables],
2188
+ queryFn: fetcher(client, NodePropertiesDocument, variables, headers),
2189
+ ...options,
2190
+ });
2191
+ };
2192
+ useSuspenseNodePropertiesQuery.getKey = (variables) => [
2193
+ "NodePropertiesSuspense",
2194
+ variables,
2195
+ ];
2196
+ export const NodeRelationshipsDocument = `
2197
+ query NodeRelationships($nodeIri: IRI!, $planGraphIri: IRI, $depth: Int = 1) {
2198
+ nodeRelationships(nodeIri: $nodeIri, planGraphIri: $planGraphIri, depth: $depth) {
2199
+ graph
2200
+ }
2201
+ }
2202
+ `;
2203
+ export const useNodeRelationshipsQuery = (client, variables, options, headers) => {
2204
+ return useQuery({
2205
+ queryKey: ["NodeRelationships", variables],
2206
+ queryFn: fetcher(client, NodeRelationshipsDocument, variables, headers),
2207
+ ...options,
2208
+ });
2209
+ };
2210
+ useNodeRelationshipsQuery.getKey = (variables) => ["NodeRelationships", variables];
2211
+ export const useSuspenseNodeRelationshipsQuery = (client, variables, options, headers) => {
2212
+ return useSuspenseQuery({
2213
+ queryKey: ["NodeRelationshipsSuspense", variables],
2214
+ queryFn: fetcher(client, NodeRelationshipsDocument, variables, headers),
2215
+ ...options,
2216
+ });
2217
+ };
2218
+ useSuspenseNodeRelationshipsQuery.getKey = (variables) => [
2219
+ "NodeRelationshipsSuspense",
2220
+ variables,
2221
+ ];
2222
+ export const RulesDocument = `
2223
+ query Rules($ruleIri: IRI, $filterByOwner: String, $namedGraph: IRI, $typeFilter: [IRI!]) {
2224
+ rules(
2225
+ ruleIri: $ruleIri
2226
+ filterByOwner: $filterByOwner
2227
+ namedGraph: $namedGraph
2228
+ typeFilter: $typeFilter
2229
+ ) {
2230
+ rules {
2231
+ ruleIri
2232
+ committedRule
2233
+ stagedRule
2234
+ isStaged
2235
+ isModified
2236
+ ownedBy {
2237
+ type
2238
+ userId
2239
+ }
2240
+ namedGraphs
2241
+ mentionedTypes
2242
+ component
2243
+ stratumIndex
2244
+ dependsPositivelyOn
2245
+ dependsNegativelyOn
2246
+ dependentRules
2247
+ unifiesWith
2248
+ }
2249
+ jsonLdGraph
2250
+ count
2251
+ error
2252
+ }
2253
+ }
2254
+ `;
2255
+ export const useRulesQuery = (client, variables, options, headers) => {
2256
+ return useQuery({
2257
+ queryKey: variables === undefined ? ["Rules"] : ["Rules", variables],
2258
+ queryFn: fetcher(client, RulesDocument, variables, headers),
2259
+ ...options,
2260
+ });
2261
+ };
2262
+ useRulesQuery.getKey = (variables) => variables === undefined ? ["Rules"] : ["Rules", variables];
2263
+ export const useSuspenseRulesQuery = (client, variables, options, headers) => {
2264
+ return useSuspenseQuery({
2265
+ queryKey: variables === undefined ? ["RulesSuspense"] : ["RulesSuspense", variables],
2266
+ queryFn: fetcher(client, RulesDocument, variables, headers),
2267
+ ...options,
2268
+ });
2269
+ };
2270
+ useSuspenseRulesQuery.getKey = (variables) => variables === undefined ? ["RulesSuspense"] : ["RulesSuspense", variables];
2271
+ export const ShaclShapesDocument = `
2272
+ query ShaclShapes($shapeIri: IRI) {
2273
+ shaclShapes(shapeIri: $shapeIri) {
2274
+ turtle
2275
+ shapeIris
2276
+ }
2277
+ }
2278
+ `;
2279
+ export const useShaclShapesQuery = (client, variables, options, headers) => {
2280
+ return useQuery({
2281
+ queryKey: variables === undefined ? ["ShaclShapes"] : ["ShaclShapes", variables],
2282
+ queryFn: fetcher(client, ShaclShapesDocument, variables, headers),
2283
+ ...options,
2284
+ });
2285
+ };
2286
+ useShaclShapesQuery.getKey = (variables) => variables === undefined ? ["ShaclShapes"] : ["ShaclShapes", variables];
2287
+ export const useSuspenseShaclShapesQuery = (client, variables, options, headers) => {
2288
+ return useSuspenseQuery({
2289
+ queryKey: variables === undefined ? ["ShaclShapesSuspense"] : ["ShaclShapesSuspense", variables],
2290
+ queryFn: fetcher(client, ShaclShapesDocument, variables, headers),
2291
+ ...options,
2292
+ });
2293
+ };
2294
+ useSuspenseShaclShapesQuery.getKey = (variables) => variables === undefined ? ["ShaclShapesSuspense"] : ["ShaclShapesSuspense", variables];
2295
+ export const SparqlQueryDocument = `
2296
+ query SparqlQuery($query: String!) {
2297
+ sparqlQuery(query: $query) {
2298
+ results {
2299
+ head {
2300
+ vars
2301
+ link
2302
+ }
2303
+ results {
2304
+ bindings
2305
+ }
2306
+ }
2307
+ graph
2308
+ error
2309
+ }
2310
+ }
2311
+ `;
2312
+ export const useSparqlQueryQuery = (client, variables, options, headers) => {
2313
+ return useQuery({
2314
+ queryKey: ["SparqlQuery", variables],
2315
+ queryFn: fetcher(client, SparqlQueryDocument, variables, headers),
2316
+ ...options,
2317
+ });
2318
+ };
2319
+ useSparqlQueryQuery.getKey = (variables) => ["SparqlQuery", variables];
2320
+ export const useSuspenseSparqlQueryQuery = (client, variables, options, headers) => {
2321
+ return useSuspenseQuery({
2322
+ queryKey: ["SparqlQuerySuspense", variables],
2323
+ queryFn: fetcher(client, SparqlQueryDocument, variables, headers),
2324
+ ...options,
2325
+ });
2326
+ };
2327
+ useSuspenseSparqlQueryQuery.getKey = (variables) => ["SparqlQuerySuspense", variables];
2328
+ export const SupportedActionShapesDocument = `
2329
+ query SupportedActionShapes($rdfType: String) {
2330
+ supportedActionShapes(rdfType: $rdfType) {
2331
+ supportedActionShapes {
2332
+ actionShape
2333
+ rdfTypes
2334
+ operations
2335
+ supportsCreate
2336
+ supportsUpdate
2337
+ supportsDelete
2338
+ }
2339
+ count
2340
+ error
2341
+ }
2342
+ }
2343
+ `;
2344
+ export const useSupportedActionShapesQuery = (client, variables, options, headers) => {
2345
+ return useQuery({
2346
+ queryKey: variables === undefined ? ["SupportedActionShapes"] : ["SupportedActionShapes", variables],
2347
+ queryFn: fetcher(client, SupportedActionShapesDocument, variables, headers),
2348
+ ...options,
2349
+ });
2350
+ };
2351
+ useSupportedActionShapesQuery.getKey = (variables) => variables === undefined ? ["SupportedActionShapes"] : ["SupportedActionShapes", variables];
2352
+ export const useSuspenseSupportedActionShapesQuery = (client, variables, options, headers) => {
2353
+ return useSuspenseQuery({
2354
+ queryKey: variables === undefined ? ["SupportedActionShapesSuspense"] : ["SupportedActionShapesSuspense", variables],
2355
+ queryFn: fetcher(client, SupportedActionShapesDocument, variables, headers),
2356
+ ...options,
2357
+ });
2358
+ };
2359
+ useSuspenseSupportedActionShapesQuery.getKey = (variables) => variables === undefined ? ["SupportedActionShapesSuspense"] : ["SupportedActionShapesSuspense", variables];
2360
+ export const UnlinkedDatastoresDocument = `
2361
+ query UnlinkedDatastores {
2362
+ unlinkedDatastores {
2363
+ id
2364
+ }
2365
+ }
2366
+ `;
2367
+ export const useUnlinkedDatastoresQuery = (client, variables, options, headers) => {
2368
+ return useQuery({
2369
+ queryKey: variables === undefined ? ["UnlinkedDatastores"] : ["UnlinkedDatastores", variables],
2370
+ queryFn: fetcher(client, UnlinkedDatastoresDocument, variables, headers),
2371
+ ...options,
2372
+ });
2373
+ };
2374
+ useUnlinkedDatastoresQuery.getKey = (variables) => variables === undefined ? ["UnlinkedDatastores"] : ["UnlinkedDatastores", variables];
2375
+ export const useSuspenseUnlinkedDatastoresQuery = (client, variables, options, headers) => {
2376
+ return useSuspenseQuery({
2377
+ queryKey: variables === undefined ? ["UnlinkedDatastoresSuspense"] : ["UnlinkedDatastoresSuspense", variables],
2378
+ queryFn: fetcher(client, UnlinkedDatastoresDocument, variables, headers),
2379
+ ...options,
2380
+ });
2381
+ };
2382
+ useSuspenseUnlinkedDatastoresQuery.getKey = (variables) => variables === undefined ? ["UnlinkedDatastoresSuspense"] : ["UnlinkedDatastoresSuspense", variables];
2383
+ export const UserPreferencesDocument = `
2384
+ query UserPreferences {
2385
+ userPreferences {
2386
+ defaultMemoryTtlDays
2387
+ }
2388
+ }
2389
+ `;
2390
+ export const useUserPreferencesQuery = (client, variables, options, headers) => {
2391
+ return useQuery({
2392
+ queryKey: variables === undefined ? ["UserPreferences"] : ["UserPreferences", variables],
2393
+ queryFn: fetcher(client, UserPreferencesDocument, variables, headers),
2394
+ ...options,
2395
+ });
2396
+ };
2397
+ useUserPreferencesQuery.getKey = (variables) => variables === undefined ? ["UserPreferences"] : ["UserPreferences", variables];
2398
+ export const useSuspenseUserPreferencesQuery = (client, variables, options, headers) => {
2399
+ return useSuspenseQuery({
2400
+ queryKey: variables === undefined ? ["UserPreferencesSuspense"] : ["UserPreferencesSuspense", variables],
2401
+ queryFn: fetcher(client, UserPreferencesDocument, variables, headers),
2402
+ ...options,
2403
+ });
2404
+ };
2405
+ useSuspenseUserPreferencesQuery.getKey = (variables) => variables === undefined ? ["UserPreferencesSuspense"] : ["UserPreferencesSuspense", variables];
2406
+ export const ValidateActionPlanDocument = `
2407
+ query ValidateActionPlan($planGraphIri: IRI!, $shaclShapeIri: IRI) {
2408
+ validateActionPlan(planGraphIri: $planGraphIri, shaclShapeIri: $shaclShapeIri) {
2409
+ valid
2410
+ conforms
2411
+ planGraphIri
2412
+ shaclShapeIri
2413
+ completeness
2414
+ report {
2415
+ conforms
2416
+ resultCount
2417
+ results {
2418
+ focusNode
2419
+ resultPath
2420
+ value
2421
+ sourceShape
2422
+ sourceConstraintComponent
2423
+ severity
2424
+ message
2425
+ }
2426
+ }
2427
+ error
2428
+ }
2429
+ }
2430
+ `;
2431
+ export const useValidateActionPlanQuery = (client, variables, options, headers) => {
2432
+ return useQuery({
2433
+ queryKey: ["ValidateActionPlan", variables],
2434
+ queryFn: fetcher(client, ValidateActionPlanDocument, variables, headers),
2435
+ ...options,
2436
+ });
2437
+ };
2438
+ useValidateActionPlanQuery.getKey = (variables) => [
2439
+ "ValidateActionPlan",
2440
+ variables,
2441
+ ];
2442
+ export const useSuspenseValidateActionPlanQuery = (client, variables, options, headers) => {
2443
+ return useSuspenseQuery({
2444
+ queryKey: ["ValidateActionPlanSuspense", variables],
2445
+ queryFn: fetcher(client, ValidateActionPlanDocument, variables, headers),
2446
+ ...options,
2447
+ });
2448
+ };
2449
+ useSuspenseValidateActionPlanQuery.getKey = (variables) => [
2450
+ "ValidateActionPlanSuspense",
2451
+ variables,
2452
+ ];