@exulu/backend 1.48.2 → 1.49.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.
- package/dist/index.cjs +351 -42
- package/dist/index.d.cts +96 -1
- package/dist/index.d.ts +96 -1
- package/dist/index.js +340 -38
- package/ee/{markdown.ts → chunking/markdown.ts} +2 -2
- package/ee/python/README.md +295 -0
- package/ee/python/documents/processing/README.md +155 -0
- package/ee/{documents → python/documents}/processing/doc_processor.ts +25 -17
- package/ee/{documents/processing/pdf_to_markdown.py → python/documents/processing/document_to_markdown.py} +3 -10
- package/ee/python/setup.sh +180 -0
- package/package.json +14 -3
- package/scripts/postinstall.cjs +149 -0
- package/.agents/skills/mintlify/SKILL.md +0 -347
- package/.editorconfig +0 -15
- package/.eslintrc.json +0 -52
- package/.github/workflows/release-backend.yml +0 -38
- package/.husky/commit-msg +0 -1
- package/.jscpd.json +0 -18
- package/.mcp.json +0 -25
- package/.nvmrc +0 -1
- package/.prettierignore +0 -5
- package/.prettierrc.json +0 -12
- package/CHANGELOG.md +0 -8
- package/SECURITY.md +0 -5
- package/commitlint.config.js +0 -4
- package/devops/documentation/patch-older-releases.md +0 -42
- package/ee/documents/processing/build_pdf_processor.sh +0 -35
- package/ee/documents/processing/chunk_markdown.py +0 -263
- package/ee/documents/processing/pdf_processor.spec +0 -115
- package/eslint.config.js +0 -88
- package/jest.config.ts +0 -25
- package/mintlify-docs/.mintignore +0 -7
- package/mintlify-docs/AGENTS.md +0 -33
- package/mintlify-docs/CLAUDE.MD +0 -50
- package/mintlify-docs/CONTRIBUTING.md +0 -32
- package/mintlify-docs/LICENSE +0 -21
- package/mintlify-docs/README.md +0 -55
- package/mintlify-docs/ai-tools/claude-code.mdx +0 -43
- package/mintlify-docs/ai-tools/cursor.mdx +0 -39
- package/mintlify-docs/ai-tools/windsurf.mdx +0 -39
- package/mintlify-docs/api-reference/core-types/agent-types.mdx +0 -110
- package/mintlify-docs/api-reference/core-types/analytics-types.mdx +0 -95
- package/mintlify-docs/api-reference/core-types/configuration-types.mdx +0 -83
- package/mintlify-docs/api-reference/core-types/evaluation-types.mdx +0 -106
- package/mintlify-docs/api-reference/core-types/job-types.mdx +0 -135
- package/mintlify-docs/api-reference/core-types/overview.mdx +0 -73
- package/mintlify-docs/api-reference/core-types/prompt-types.mdx +0 -102
- package/mintlify-docs/api-reference/core-types/rbac-types.mdx +0 -163
- package/mintlify-docs/api-reference/core-types/session-types.mdx +0 -77
- package/mintlify-docs/api-reference/core-types/user-management.mdx +0 -112
- package/mintlify-docs/api-reference/core-types/workflow-types.mdx +0 -88
- package/mintlify-docs/api-reference/core-types.mdx +0 -585
- package/mintlify-docs/api-reference/dynamic-types.mdx +0 -851
- package/mintlify-docs/api-reference/endpoint/create.mdx +0 -4
- package/mintlify-docs/api-reference/endpoint/delete.mdx +0 -4
- package/mintlify-docs/api-reference/endpoint/get.mdx +0 -4
- package/mintlify-docs/api-reference/endpoint/webhook.mdx +0 -4
- package/mintlify-docs/api-reference/introduction.mdx +0 -661
- package/mintlify-docs/api-reference/mutations.mdx +0 -1012
- package/mintlify-docs/api-reference/openapi.json +0 -217
- package/mintlify-docs/api-reference/queries.mdx +0 -1154
- package/mintlify-docs/backend/introduction.mdx +0 -218
- package/mintlify-docs/changelog.mdx +0 -387
- package/mintlify-docs/community-edition.mdx +0 -304
- package/mintlify-docs/core/exulu-agent/api-reference.mdx +0 -894
- package/mintlify-docs/core/exulu-agent/configuration.mdx +0 -690
- package/mintlify-docs/core/exulu-agent/introduction.mdx +0 -552
- package/mintlify-docs/core/exulu-app/api-reference.mdx +0 -481
- package/mintlify-docs/core/exulu-app/configuration.mdx +0 -319
- package/mintlify-docs/core/exulu-app/introduction.mdx +0 -117
- package/mintlify-docs/core/exulu-authentication.mdx +0 -810
- package/mintlify-docs/core/exulu-chunkers/api-reference.mdx +0 -1011
- package/mintlify-docs/core/exulu-chunkers/configuration.mdx +0 -596
- package/mintlify-docs/core/exulu-chunkers/introduction.mdx +0 -403
- package/mintlify-docs/core/exulu-context/api-reference.mdx +0 -911
- package/mintlify-docs/core/exulu-context/configuration.mdx +0 -648
- package/mintlify-docs/core/exulu-context/introduction.mdx +0 -394
- package/mintlify-docs/core/exulu-database.mdx +0 -811
- package/mintlify-docs/core/exulu-default-agents.mdx +0 -545
- package/mintlify-docs/core/exulu-eval/api-reference.mdx +0 -772
- package/mintlify-docs/core/exulu-eval/configuration.mdx +0 -680
- package/mintlify-docs/core/exulu-eval/introduction.mdx +0 -459
- package/mintlify-docs/core/exulu-logging.mdx +0 -464
- package/mintlify-docs/core/exulu-otel.mdx +0 -670
- package/mintlify-docs/core/exulu-queues/api-reference.mdx +0 -648
- package/mintlify-docs/core/exulu-queues/configuration.mdx +0 -650
- package/mintlify-docs/core/exulu-queues/introduction.mdx +0 -474
- package/mintlify-docs/core/exulu-reranker/api-reference.mdx +0 -630
- package/mintlify-docs/core/exulu-reranker/configuration.mdx +0 -663
- package/mintlify-docs/core/exulu-reranker/introduction.mdx +0 -516
- package/mintlify-docs/core/exulu-tool/api-reference.mdx +0 -723
- package/mintlify-docs/core/exulu-tool/configuration.mdx +0 -805
- package/mintlify-docs/core/exulu-tool/introduction.mdx +0 -539
- package/mintlify-docs/core/exulu-variables/api-reference.mdx +0 -699
- package/mintlify-docs/core/exulu-variables/configuration.mdx +0 -736
- package/mintlify-docs/core/exulu-variables/introduction.mdx +0 -511
- package/mintlify-docs/development.mdx +0 -94
- package/mintlify-docs/docs.json +0 -248
- package/mintlify-docs/enterprise-edition.mdx +0 -538
- package/mintlify-docs/essentials/code.mdx +0 -35
- package/mintlify-docs/essentials/images.mdx +0 -59
- package/mintlify-docs/essentials/markdown.mdx +0 -88
- package/mintlify-docs/essentials/navigation.mdx +0 -87
- package/mintlify-docs/essentials/reusable-snippets.mdx +0 -110
- package/mintlify-docs/essentials/settings.mdx +0 -318
- package/mintlify-docs/favicon.svg +0 -3
- package/mintlify-docs/frontend/introduction.mdx +0 -39
- package/mintlify-docs/getting-started.mdx +0 -267
- package/mintlify-docs/guides/custom-agent.mdx +0 -608
- package/mintlify-docs/guides/first-agent.mdx +0 -315
- package/mintlify-docs/images/admin_ui.png +0 -0
- package/mintlify-docs/images/contexts.png +0 -0
- package/mintlify-docs/images/create_agents.png +0 -0
- package/mintlify-docs/images/evals.png +0 -0
- package/mintlify-docs/images/graphql.png +0 -0
- package/mintlify-docs/images/graphql_api.png +0 -0
- package/mintlify-docs/images/hero-dark.png +0 -0
- package/mintlify-docs/images/hero-light.png +0 -0
- package/mintlify-docs/images/hero.png +0 -0
- package/mintlify-docs/images/knowledge_sources.png +0 -0
- package/mintlify-docs/images/mcp.png +0 -0
- package/mintlify-docs/images/scaling.png +0 -0
- package/mintlify-docs/index.mdx +0 -411
- package/mintlify-docs/logo/dark.svg +0 -9
- package/mintlify-docs/logo/light.svg +0 -9
- package/mintlify-docs/partners.mdx +0 -558
- package/mintlify-docs/products.mdx +0 -77
- package/mintlify-docs/snippets/snippet-intro.mdx +0 -4
- package/mintlify-docs/styles.css +0 -207
- package/ngrok.bash +0 -1
- package/ngrok.md +0 -6
- package/ngrok.yml +0 -10
- package/release.config.cjs +0 -15
- package/skills-lock.json +0 -10
- package/types/context-processor.ts +0 -45
- package/types/enums/eval-types.ts +0 -5
- package/types/enums/field-types.ts +0 -1
- package/types/enums/jobs.ts +0 -11
- package/types/enums/statistics.ts +0 -13
- package/types/exulu-table-definition.ts +0 -79
- package/types/file-types.ts +0 -18
- package/types/models/agent-session.ts +0 -27
- package/types/models/agent.ts +0 -68
- package/types/models/context.ts +0 -53
- package/types/models/embedding.ts +0 -17
- package/types/models/eval-run.ts +0 -40
- package/types/models/exulu-agent-tool-config.ts +0 -11
- package/types/models/item.ts +0 -21
- package/types/models/job.ts +0 -8
- package/types/models/project.ts +0 -16
- package/types/models/rate-limiter-rules.ts +0 -7
- package/types/models/test-case.ts +0 -25
- package/types/models/tool.ts +0 -9
- package/types/models/user-role.ts +0 -12
- package/types/models/user.ts +0 -20
- package/types/models/variable.ts +0 -8
- package/types/models/vector-methods.ts +0 -7
- package/types/provider-config.ts +0 -21
- package/types/queue-config.ts +0 -16
- package/types/rbac-rights-modes.ts +0 -1
- package/types/statistics.ts +0 -20
- package/types/workflow.ts +0 -31
- /package/ee/{documents → python/documents}/THIRD_PARTY_LICENSES/docling.txt +0 -0
- /package/ee/{documents/processing → python}/requirements.txt +0 -0
|
@@ -1,585 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: 'Core Types'
|
|
3
|
-
description: 'Predefined GraphQL types for Exulu IMP platform resources'
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
## Overview
|
|
7
|
-
|
|
8
|
-
Core types are predefined GraphQL types provided by Exulu IMP for managing platform resources. These types are always available in the schema, regardless of your implementation.
|
|
9
|
-
|
|
10
|
-
## Agent
|
|
11
|
-
|
|
12
|
-
### agent
|
|
13
|
-
|
|
14
|
-
AI agent configurations and instances.
|
|
15
|
-
|
|
16
|
-
```graphql
|
|
17
|
-
type agent {
|
|
18
|
-
id: ID!
|
|
19
|
-
name: String!
|
|
20
|
-
description: String
|
|
21
|
-
backend: String!
|
|
22
|
-
type: String!
|
|
23
|
-
createdAt: Date!
|
|
24
|
-
updatedAt: Date!
|
|
25
|
-
|
|
26
|
-
# Backend-specific fields
|
|
27
|
-
provider: String
|
|
28
|
-
providerName: String
|
|
29
|
-
modelName: String
|
|
30
|
-
systemInstructions: String
|
|
31
|
-
authenticationInformation: String
|
|
32
|
-
|
|
33
|
-
# Configuration
|
|
34
|
-
rateLimit: RateLimiterRule
|
|
35
|
-
streaming: Boolean
|
|
36
|
-
capabilities: AgentCapabilities
|
|
37
|
-
maxContextLength: Int
|
|
38
|
-
|
|
39
|
-
# Workflows
|
|
40
|
-
workflows: AgentWorkflows
|
|
41
|
-
|
|
42
|
-
# Access control (if RBAC enabled)
|
|
43
|
-
RBAC: RBACData
|
|
44
|
-
|
|
45
|
-
# Routing
|
|
46
|
-
slug: String
|
|
47
|
-
}
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
**Example query:**
|
|
51
|
-
|
|
52
|
-
```graphql
|
|
53
|
-
query {
|
|
54
|
-
agentById(id: "agent-123") {
|
|
55
|
-
id
|
|
56
|
-
name
|
|
57
|
-
provider
|
|
58
|
-
modelName
|
|
59
|
-
capabilities {
|
|
60
|
-
text
|
|
61
|
-
images
|
|
62
|
-
files
|
|
63
|
-
}
|
|
64
|
-
workflows {
|
|
65
|
-
enabled
|
|
66
|
-
queue {
|
|
67
|
-
name
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
### AgentCapabilities
|
|
75
|
-
|
|
76
|
-
Defines what content types the agent can process.
|
|
77
|
-
|
|
78
|
-
```graphql
|
|
79
|
-
type AgentCapabilities {
|
|
80
|
-
text: Boolean
|
|
81
|
-
images: [String] # e.g., [".png", ".jpg"]
|
|
82
|
-
files: [String] # e.g., [".pdf", ".docx"]
|
|
83
|
-
audio: [String]
|
|
84
|
-
video: [String]
|
|
85
|
-
}
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
### RateLimiterRule
|
|
89
|
-
|
|
90
|
-
Rate limiting configuration for agent requests.
|
|
91
|
-
|
|
92
|
-
```graphql
|
|
93
|
-
type RateLimiterRule {
|
|
94
|
-
name: String
|
|
95
|
-
rate_limit: RateLimiterRuleRateLimit
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
type RateLimiterRuleRateLimit {
|
|
99
|
-
time: Int # Time window in seconds
|
|
100
|
-
limit: Int # Max requests per time window
|
|
101
|
-
}
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
## Session types
|
|
105
|
-
|
|
106
|
-
### agent_sessions
|
|
107
|
-
|
|
108
|
-
Conversation sessions between users and agents.
|
|
109
|
-
|
|
110
|
-
```graphql
|
|
111
|
-
type agent_sessions {
|
|
112
|
-
id: ID!
|
|
113
|
-
agent: ID!
|
|
114
|
-
user: ID
|
|
115
|
-
name: String
|
|
116
|
-
createdAt: Date!
|
|
117
|
-
updatedAt: Date!
|
|
118
|
-
RBAC: RBACData
|
|
119
|
-
}
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
**Example query:**
|
|
123
|
-
|
|
124
|
-
```graphql
|
|
125
|
-
query {
|
|
126
|
-
agent_sessionsPagination(
|
|
127
|
-
limit: 20
|
|
128
|
-
filters: [{ agent: { eq: "agent-123" } }]
|
|
129
|
-
) {
|
|
130
|
-
items {
|
|
131
|
-
id
|
|
132
|
-
name
|
|
133
|
-
createdAt
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
### agent_messages
|
|
140
|
-
|
|
141
|
-
Individual messages within a session.
|
|
142
|
-
|
|
143
|
-
```graphql
|
|
144
|
-
type agent_messages {
|
|
145
|
-
id: ID!
|
|
146
|
-
session: ID!
|
|
147
|
-
role: String! # "user" | "assistant" | "system"
|
|
148
|
-
content: String!
|
|
149
|
-
createdAt: Date!
|
|
150
|
-
updatedAt: Date!
|
|
151
|
-
}
|
|
152
|
-
```
|
|
153
|
-
|
|
154
|
-
## User management types
|
|
155
|
-
|
|
156
|
-
### user
|
|
157
|
-
|
|
158
|
-
User accounts for authentication and access control.
|
|
159
|
-
|
|
160
|
-
```graphql
|
|
161
|
-
type user {
|
|
162
|
-
id: Int!
|
|
163
|
-
name: String
|
|
164
|
-
email: String!
|
|
165
|
-
emailVerified: Date
|
|
166
|
-
image: String
|
|
167
|
-
password: String
|
|
168
|
-
type: String # "api" | "user"
|
|
169
|
-
apikey: String
|
|
170
|
-
role: ID
|
|
171
|
-
super_admin: Boolean
|
|
172
|
-
createdAt: Date!
|
|
173
|
-
updatedAt: Date!
|
|
174
|
-
}
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
**Example query:**
|
|
178
|
-
|
|
179
|
-
```graphql
|
|
180
|
-
query {
|
|
181
|
-
usersPagination(
|
|
182
|
-
filters: [{ type: { eq: "user" } }]
|
|
183
|
-
) {
|
|
184
|
-
items {
|
|
185
|
-
id
|
|
186
|
-
name
|
|
187
|
-
email
|
|
188
|
-
role
|
|
189
|
-
super_admin
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
```
|
|
194
|
-
|
|
195
|
-
<Warning>
|
|
196
|
-
The `password` and `apikey` fields are write-only for security. They are hashed with bcrypt and cannot be retrieved.
|
|
197
|
-
</Warning>
|
|
198
|
-
|
|
199
|
-
### role
|
|
200
|
-
|
|
201
|
-
Role definitions for RBAC.
|
|
202
|
-
|
|
203
|
-
```graphql
|
|
204
|
-
type role {
|
|
205
|
-
id: ID!
|
|
206
|
-
name: String!
|
|
207
|
-
agents: String # "read" | "write"
|
|
208
|
-
evals: String
|
|
209
|
-
workflows: String
|
|
210
|
-
variables: String
|
|
211
|
-
users: String
|
|
212
|
-
api: String
|
|
213
|
-
createdAt: Date!
|
|
214
|
-
updatedAt: Date!
|
|
215
|
-
}
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
**Example mutation:**
|
|
219
|
-
|
|
220
|
-
```graphql
|
|
221
|
-
mutation {
|
|
222
|
-
rolesCreateOne(
|
|
223
|
-
input: {
|
|
224
|
-
name: "Developer"
|
|
225
|
-
agents: "write"
|
|
226
|
-
evals: "write"
|
|
227
|
-
workflows: "read"
|
|
228
|
-
variables: "read"
|
|
229
|
-
users: "read"
|
|
230
|
-
}
|
|
231
|
-
) {
|
|
232
|
-
item {
|
|
233
|
-
id
|
|
234
|
-
name
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
```
|
|
239
|
-
|
|
240
|
-
## Evaluation types
|
|
241
|
-
|
|
242
|
-
### test_cases
|
|
243
|
-
|
|
244
|
-
Test cases for evaluating agent performance.
|
|
245
|
-
|
|
246
|
-
```graphql
|
|
247
|
-
type test_cases {
|
|
248
|
-
id: ID!
|
|
249
|
-
name: String!
|
|
250
|
-
description: String
|
|
251
|
-
inputs: JSON! # UIMessage[]
|
|
252
|
-
expected_output: String!
|
|
253
|
-
expected_tools: JSON # string[]
|
|
254
|
-
expected_knowledge_sources: JSON # string[]
|
|
255
|
-
expected_agent_tools: JSON # string[]
|
|
256
|
-
createdAt: Date!
|
|
257
|
-
updatedAt: Date!
|
|
258
|
-
RBAC: RBACData
|
|
259
|
-
}
|
|
260
|
-
```
|
|
261
|
-
|
|
262
|
-
**Example:**
|
|
263
|
-
|
|
264
|
-
```graphql
|
|
265
|
-
mutation {
|
|
266
|
-
test_casesCreateOne(
|
|
267
|
-
input: {
|
|
268
|
-
name: "Weather Query"
|
|
269
|
-
description: "User asks about weather"
|
|
270
|
-
inputs: [
|
|
271
|
-
{ role: "user", content: "What's the weather like?" }
|
|
272
|
-
]
|
|
273
|
-
expected_output: "Based on current data, it's 68°F and sunny."
|
|
274
|
-
expected_tools: ["get_weather"]
|
|
275
|
-
}
|
|
276
|
-
) {
|
|
277
|
-
item {
|
|
278
|
-
id
|
|
279
|
-
name
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
```
|
|
284
|
-
|
|
285
|
-
### eval_sets
|
|
286
|
-
|
|
287
|
-
Collections of test cases for batch evaluation.
|
|
288
|
-
|
|
289
|
-
```graphql
|
|
290
|
-
type eval_sets {
|
|
291
|
-
id: ID!
|
|
292
|
-
name: String!
|
|
293
|
-
description: String
|
|
294
|
-
test_case_ids: JSON # string[]
|
|
295
|
-
createdAt: Date!
|
|
296
|
-
updatedAt: Date!
|
|
297
|
-
RBAC: RBACData
|
|
298
|
-
}
|
|
299
|
-
```
|
|
300
|
-
|
|
301
|
-
### eval_runs
|
|
302
|
-
|
|
303
|
-
Evaluation execution records.
|
|
304
|
-
|
|
305
|
-
```graphql
|
|
306
|
-
type eval_runs {
|
|
307
|
-
id: ID!
|
|
308
|
-
name: String!
|
|
309
|
-
description: String
|
|
310
|
-
agent_id: ID!
|
|
311
|
-
test_case_ids: JSON # string[]
|
|
312
|
-
eval_functions: JSON # string[]
|
|
313
|
-
config: JSON
|
|
314
|
-
scoring_method: String
|
|
315
|
-
pass_threshold: Float
|
|
316
|
-
timeout_in_seconds: Int
|
|
317
|
-
createdAt: Date!
|
|
318
|
-
updatedAt: Date!
|
|
319
|
-
RBAC: RBACData
|
|
320
|
-
}
|
|
321
|
-
```
|
|
322
|
-
|
|
323
|
-
## Workflow types
|
|
324
|
-
|
|
325
|
-
### workflow_templates
|
|
326
|
-
|
|
327
|
-
Workflow definitions with agent execution steps.
|
|
328
|
-
|
|
329
|
-
```graphql
|
|
330
|
-
type workflow_templates {
|
|
331
|
-
id: ID!
|
|
332
|
-
name: String!
|
|
333
|
-
description: String
|
|
334
|
-
agent: ID!
|
|
335
|
-
steps_json: JSON
|
|
336
|
-
variables: [String] # Extracted from steps_json
|
|
337
|
-
createdAt: Date!
|
|
338
|
-
updatedAt: Date!
|
|
339
|
-
RBAC: RBACData
|
|
340
|
-
}
|
|
341
|
-
```
|
|
342
|
-
|
|
343
|
-
**Example query:**
|
|
344
|
-
|
|
345
|
-
```graphql
|
|
346
|
-
query {
|
|
347
|
-
workflow_templateById(id: "workflow-123") {
|
|
348
|
-
id
|
|
349
|
-
name
|
|
350
|
-
agent
|
|
351
|
-
variables
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
```
|
|
355
|
-
|
|
356
|
-
## Configuration types
|
|
357
|
-
|
|
358
|
-
### variables
|
|
359
|
-
|
|
360
|
-
Encrypted configuration values (alternative to .env files).
|
|
361
|
-
|
|
362
|
-
```graphql
|
|
363
|
-
type variables {
|
|
364
|
-
id: ID!
|
|
365
|
-
name: String!
|
|
366
|
-
value: String!
|
|
367
|
-
encrypted: Boolean!
|
|
368
|
-
description: String
|
|
369
|
-
createdAt: Date!
|
|
370
|
-
updatedAt: Date!
|
|
371
|
-
}
|
|
372
|
-
```
|
|
373
|
-
|
|
374
|
-
<Note>
|
|
375
|
-
Values are encrypted with AES using `NEXTAUTH_SECRET`. Use [`ExuluVariables.get()`](/core/exulu-variables/api-reference#get) to retrieve decrypted values.
|
|
376
|
-
</Note>
|
|
377
|
-
|
|
378
|
-
### projects
|
|
379
|
-
|
|
380
|
-
Project organization for grouping resources.
|
|
381
|
-
|
|
382
|
-
```graphql
|
|
383
|
-
type projects {
|
|
384
|
-
id: ID!
|
|
385
|
-
name: String!
|
|
386
|
-
description: String
|
|
387
|
-
createdAt: Date!
|
|
388
|
-
updatedAt: Date!
|
|
389
|
-
}
|
|
390
|
-
```
|
|
391
|
-
|
|
392
|
-
## Prompt management types
|
|
393
|
-
|
|
394
|
-
### prompt_library
|
|
395
|
-
|
|
396
|
-
Saved prompts for reuse across agents.
|
|
397
|
-
|
|
398
|
-
```graphql
|
|
399
|
-
type prompt_library {
|
|
400
|
-
id: ID!
|
|
401
|
-
name: String!
|
|
402
|
-
content: String!
|
|
403
|
-
tags: JSON # string[]
|
|
404
|
-
category: String
|
|
405
|
-
description: String
|
|
406
|
-
createdAt: Date!
|
|
407
|
-
updatedAt: Date!
|
|
408
|
-
RBAC: RBACData
|
|
409
|
-
}
|
|
410
|
-
```
|
|
411
|
-
|
|
412
|
-
**Example query:**
|
|
413
|
-
|
|
414
|
-
```graphql
|
|
415
|
-
query {
|
|
416
|
-
prompt_libraryPagination(
|
|
417
|
-
filters: [
|
|
418
|
-
{ tags: { contains: ["support", "greeting"] } }
|
|
419
|
-
]
|
|
420
|
-
) {
|
|
421
|
-
items {
|
|
422
|
-
id
|
|
423
|
-
name
|
|
424
|
-
content
|
|
425
|
-
tags
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
```
|
|
430
|
-
|
|
431
|
-
### prompt_favorites
|
|
432
|
-
|
|
433
|
-
User's favorited prompts.
|
|
434
|
-
|
|
435
|
-
```graphql
|
|
436
|
-
type prompt_favorites {
|
|
437
|
-
id: ID!
|
|
438
|
-
user: ID!
|
|
439
|
-
prompt: ID!
|
|
440
|
-
createdAt: Date!
|
|
441
|
-
updatedAt: Date!
|
|
442
|
-
}
|
|
443
|
-
```
|
|
444
|
-
|
|
445
|
-
## Analytics types
|
|
446
|
-
|
|
447
|
-
### statistics
|
|
448
|
-
|
|
449
|
-
Usage statistics and analytics.
|
|
450
|
-
|
|
451
|
-
```graphql
|
|
452
|
-
type statistics {
|
|
453
|
-
id: ID!
|
|
454
|
-
name: String!
|
|
455
|
-
label: String!
|
|
456
|
-
type: String!
|
|
457
|
-
trigger: String!
|
|
458
|
-
count: Int!
|
|
459
|
-
user: ID
|
|
460
|
-
role: ID
|
|
461
|
-
createdAt: Date!
|
|
462
|
-
updatedAt: Date!
|
|
463
|
-
}
|
|
464
|
-
```
|
|
465
|
-
|
|
466
|
-
**Aggregate statistics:**
|
|
467
|
-
|
|
468
|
-
```graphql
|
|
469
|
-
query {
|
|
470
|
-
statisticsStatistics(
|
|
471
|
-
groupBy: "label"
|
|
472
|
-
filters: [
|
|
473
|
-
{ type: { eq: "agent_run" } }
|
|
474
|
-
]
|
|
475
|
-
limit: 10
|
|
476
|
-
) {
|
|
477
|
-
group
|
|
478
|
-
count
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
```
|
|
482
|
-
|
|
483
|
-
## Job management types
|
|
484
|
-
|
|
485
|
-
### Job
|
|
486
|
-
|
|
487
|
-
Background job information from BullMQ.
|
|
488
|
-
|
|
489
|
-
```graphql
|
|
490
|
-
type Job {
|
|
491
|
-
id: String!
|
|
492
|
-
name: String!
|
|
493
|
-
returnvalue: JSON
|
|
494
|
-
stacktrace: [String]
|
|
495
|
-
finishedOn: Date
|
|
496
|
-
processedOn: Date
|
|
497
|
-
attemptsMade: Int
|
|
498
|
-
failedReason: String
|
|
499
|
-
state: String!
|
|
500
|
-
data: JSON
|
|
501
|
-
timestamp: Date
|
|
502
|
-
}
|
|
503
|
-
```
|
|
504
|
-
|
|
505
|
-
**Query jobs:**
|
|
506
|
-
|
|
507
|
-
```graphql
|
|
508
|
-
query {
|
|
509
|
-
jobs(
|
|
510
|
-
queue: eval_runs
|
|
511
|
-
statusses: [active, waiting, failed]
|
|
512
|
-
page: 1
|
|
513
|
-
limit: 50
|
|
514
|
-
) {
|
|
515
|
-
items {
|
|
516
|
-
id
|
|
517
|
-
name
|
|
518
|
-
state
|
|
519
|
-
failedReason
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
```
|
|
524
|
-
|
|
525
|
-
## RBAC
|
|
526
|
-
|
|
527
|
-
### RBACData
|
|
528
|
-
|
|
529
|
-
Access control information for resources.
|
|
530
|
-
|
|
531
|
-
```graphql
|
|
532
|
-
type RBACData {
|
|
533
|
-
type: String! # "public" | "private" | "users" | "roles"
|
|
534
|
-
users: [RBACUser!]
|
|
535
|
-
roles: [RBACRole!]
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
type RBACUser {
|
|
539
|
-
id: ID!
|
|
540
|
-
rights: String! # "read" | "write"
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
type RBACRole {
|
|
544
|
-
id: ID!
|
|
545
|
-
rights: String! # "read" | "write"
|
|
546
|
-
}
|
|
547
|
-
```
|
|
548
|
-
|
|
549
|
-
### RBACInput
|
|
550
|
-
|
|
551
|
-
Input type for setting RBAC permissions.
|
|
552
|
-
|
|
553
|
-
```graphql
|
|
554
|
-
input RBACInput {
|
|
555
|
-
users: [RBACUserInput!]
|
|
556
|
-
roles: [RBACRoleInput!]
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
input RBACUserInput {
|
|
560
|
-
id: ID!
|
|
561
|
-
rights: String! # "read" | "write"
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
input RBACRoleInput {
|
|
565
|
-
id: ID!
|
|
566
|
-
rights: String! # "read" | "write"
|
|
567
|
-
}
|
|
568
|
-
```
|
|
569
|
-
|
|
570
|
-
## Next steps
|
|
571
|
-
|
|
572
|
-
<CardGroup cols={2}>
|
|
573
|
-
<Card title="Dynamic types" icon="wand-magic-sparkles" href="/api-reference/dynamic-types">
|
|
574
|
-
Learn about context-generated types
|
|
575
|
-
</Card>
|
|
576
|
-
<Card title="Queries" icon="magnifying-glass" href="/api-reference/queries">
|
|
577
|
-
Explore all query operations
|
|
578
|
-
</Card>
|
|
579
|
-
<Card title="Mutations" icon="pen-to-square" href="/api-reference/mutations">
|
|
580
|
-
Explore all mutation operations
|
|
581
|
-
</Card>
|
|
582
|
-
<Card title="Introduction" icon="book" href="/api-reference/introduction">
|
|
583
|
-
Back to API overview
|
|
584
|
-
</Card>
|
|
585
|
-
</CardGroup>
|