@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.
Files changed (164) hide show
  1. package/dist/index.cjs +351 -42
  2. package/dist/index.d.cts +96 -1
  3. package/dist/index.d.ts +96 -1
  4. package/dist/index.js +340 -38
  5. package/ee/{markdown.ts → chunking/markdown.ts} +2 -2
  6. package/ee/python/README.md +295 -0
  7. package/ee/python/documents/processing/README.md +155 -0
  8. package/ee/{documents → python/documents}/processing/doc_processor.ts +25 -17
  9. package/ee/{documents/processing/pdf_to_markdown.py → python/documents/processing/document_to_markdown.py} +3 -10
  10. package/ee/python/setup.sh +180 -0
  11. package/package.json +14 -3
  12. package/scripts/postinstall.cjs +149 -0
  13. package/.agents/skills/mintlify/SKILL.md +0 -347
  14. package/.editorconfig +0 -15
  15. package/.eslintrc.json +0 -52
  16. package/.github/workflows/release-backend.yml +0 -38
  17. package/.husky/commit-msg +0 -1
  18. package/.jscpd.json +0 -18
  19. package/.mcp.json +0 -25
  20. package/.nvmrc +0 -1
  21. package/.prettierignore +0 -5
  22. package/.prettierrc.json +0 -12
  23. package/CHANGELOG.md +0 -8
  24. package/SECURITY.md +0 -5
  25. package/commitlint.config.js +0 -4
  26. package/devops/documentation/patch-older-releases.md +0 -42
  27. package/ee/documents/processing/build_pdf_processor.sh +0 -35
  28. package/ee/documents/processing/chunk_markdown.py +0 -263
  29. package/ee/documents/processing/pdf_processor.spec +0 -115
  30. package/eslint.config.js +0 -88
  31. package/jest.config.ts +0 -25
  32. package/mintlify-docs/.mintignore +0 -7
  33. package/mintlify-docs/AGENTS.md +0 -33
  34. package/mintlify-docs/CLAUDE.MD +0 -50
  35. package/mintlify-docs/CONTRIBUTING.md +0 -32
  36. package/mintlify-docs/LICENSE +0 -21
  37. package/mintlify-docs/README.md +0 -55
  38. package/mintlify-docs/ai-tools/claude-code.mdx +0 -43
  39. package/mintlify-docs/ai-tools/cursor.mdx +0 -39
  40. package/mintlify-docs/ai-tools/windsurf.mdx +0 -39
  41. package/mintlify-docs/api-reference/core-types/agent-types.mdx +0 -110
  42. package/mintlify-docs/api-reference/core-types/analytics-types.mdx +0 -95
  43. package/mintlify-docs/api-reference/core-types/configuration-types.mdx +0 -83
  44. package/mintlify-docs/api-reference/core-types/evaluation-types.mdx +0 -106
  45. package/mintlify-docs/api-reference/core-types/job-types.mdx +0 -135
  46. package/mintlify-docs/api-reference/core-types/overview.mdx +0 -73
  47. package/mintlify-docs/api-reference/core-types/prompt-types.mdx +0 -102
  48. package/mintlify-docs/api-reference/core-types/rbac-types.mdx +0 -163
  49. package/mintlify-docs/api-reference/core-types/session-types.mdx +0 -77
  50. package/mintlify-docs/api-reference/core-types/user-management.mdx +0 -112
  51. package/mintlify-docs/api-reference/core-types/workflow-types.mdx +0 -88
  52. package/mintlify-docs/api-reference/core-types.mdx +0 -585
  53. package/mintlify-docs/api-reference/dynamic-types.mdx +0 -851
  54. package/mintlify-docs/api-reference/endpoint/create.mdx +0 -4
  55. package/mintlify-docs/api-reference/endpoint/delete.mdx +0 -4
  56. package/mintlify-docs/api-reference/endpoint/get.mdx +0 -4
  57. package/mintlify-docs/api-reference/endpoint/webhook.mdx +0 -4
  58. package/mintlify-docs/api-reference/introduction.mdx +0 -661
  59. package/mintlify-docs/api-reference/mutations.mdx +0 -1012
  60. package/mintlify-docs/api-reference/openapi.json +0 -217
  61. package/mintlify-docs/api-reference/queries.mdx +0 -1154
  62. package/mintlify-docs/backend/introduction.mdx +0 -218
  63. package/mintlify-docs/changelog.mdx +0 -387
  64. package/mintlify-docs/community-edition.mdx +0 -304
  65. package/mintlify-docs/core/exulu-agent/api-reference.mdx +0 -894
  66. package/mintlify-docs/core/exulu-agent/configuration.mdx +0 -690
  67. package/mintlify-docs/core/exulu-agent/introduction.mdx +0 -552
  68. package/mintlify-docs/core/exulu-app/api-reference.mdx +0 -481
  69. package/mintlify-docs/core/exulu-app/configuration.mdx +0 -319
  70. package/mintlify-docs/core/exulu-app/introduction.mdx +0 -117
  71. package/mintlify-docs/core/exulu-authentication.mdx +0 -810
  72. package/mintlify-docs/core/exulu-chunkers/api-reference.mdx +0 -1011
  73. package/mintlify-docs/core/exulu-chunkers/configuration.mdx +0 -596
  74. package/mintlify-docs/core/exulu-chunkers/introduction.mdx +0 -403
  75. package/mintlify-docs/core/exulu-context/api-reference.mdx +0 -911
  76. package/mintlify-docs/core/exulu-context/configuration.mdx +0 -648
  77. package/mintlify-docs/core/exulu-context/introduction.mdx +0 -394
  78. package/mintlify-docs/core/exulu-database.mdx +0 -811
  79. package/mintlify-docs/core/exulu-default-agents.mdx +0 -545
  80. package/mintlify-docs/core/exulu-eval/api-reference.mdx +0 -772
  81. package/mintlify-docs/core/exulu-eval/configuration.mdx +0 -680
  82. package/mintlify-docs/core/exulu-eval/introduction.mdx +0 -459
  83. package/mintlify-docs/core/exulu-logging.mdx +0 -464
  84. package/mintlify-docs/core/exulu-otel.mdx +0 -670
  85. package/mintlify-docs/core/exulu-queues/api-reference.mdx +0 -648
  86. package/mintlify-docs/core/exulu-queues/configuration.mdx +0 -650
  87. package/mintlify-docs/core/exulu-queues/introduction.mdx +0 -474
  88. package/mintlify-docs/core/exulu-reranker/api-reference.mdx +0 -630
  89. package/mintlify-docs/core/exulu-reranker/configuration.mdx +0 -663
  90. package/mintlify-docs/core/exulu-reranker/introduction.mdx +0 -516
  91. package/mintlify-docs/core/exulu-tool/api-reference.mdx +0 -723
  92. package/mintlify-docs/core/exulu-tool/configuration.mdx +0 -805
  93. package/mintlify-docs/core/exulu-tool/introduction.mdx +0 -539
  94. package/mintlify-docs/core/exulu-variables/api-reference.mdx +0 -699
  95. package/mintlify-docs/core/exulu-variables/configuration.mdx +0 -736
  96. package/mintlify-docs/core/exulu-variables/introduction.mdx +0 -511
  97. package/mintlify-docs/development.mdx +0 -94
  98. package/mintlify-docs/docs.json +0 -248
  99. package/mintlify-docs/enterprise-edition.mdx +0 -538
  100. package/mintlify-docs/essentials/code.mdx +0 -35
  101. package/mintlify-docs/essentials/images.mdx +0 -59
  102. package/mintlify-docs/essentials/markdown.mdx +0 -88
  103. package/mintlify-docs/essentials/navigation.mdx +0 -87
  104. package/mintlify-docs/essentials/reusable-snippets.mdx +0 -110
  105. package/mintlify-docs/essentials/settings.mdx +0 -318
  106. package/mintlify-docs/favicon.svg +0 -3
  107. package/mintlify-docs/frontend/introduction.mdx +0 -39
  108. package/mintlify-docs/getting-started.mdx +0 -267
  109. package/mintlify-docs/guides/custom-agent.mdx +0 -608
  110. package/mintlify-docs/guides/first-agent.mdx +0 -315
  111. package/mintlify-docs/images/admin_ui.png +0 -0
  112. package/mintlify-docs/images/contexts.png +0 -0
  113. package/mintlify-docs/images/create_agents.png +0 -0
  114. package/mintlify-docs/images/evals.png +0 -0
  115. package/mintlify-docs/images/graphql.png +0 -0
  116. package/mintlify-docs/images/graphql_api.png +0 -0
  117. package/mintlify-docs/images/hero-dark.png +0 -0
  118. package/mintlify-docs/images/hero-light.png +0 -0
  119. package/mintlify-docs/images/hero.png +0 -0
  120. package/mintlify-docs/images/knowledge_sources.png +0 -0
  121. package/mintlify-docs/images/mcp.png +0 -0
  122. package/mintlify-docs/images/scaling.png +0 -0
  123. package/mintlify-docs/index.mdx +0 -411
  124. package/mintlify-docs/logo/dark.svg +0 -9
  125. package/mintlify-docs/logo/light.svg +0 -9
  126. package/mintlify-docs/partners.mdx +0 -558
  127. package/mintlify-docs/products.mdx +0 -77
  128. package/mintlify-docs/snippets/snippet-intro.mdx +0 -4
  129. package/mintlify-docs/styles.css +0 -207
  130. package/ngrok.bash +0 -1
  131. package/ngrok.md +0 -6
  132. package/ngrok.yml +0 -10
  133. package/release.config.cjs +0 -15
  134. package/skills-lock.json +0 -10
  135. package/types/context-processor.ts +0 -45
  136. package/types/enums/eval-types.ts +0 -5
  137. package/types/enums/field-types.ts +0 -1
  138. package/types/enums/jobs.ts +0 -11
  139. package/types/enums/statistics.ts +0 -13
  140. package/types/exulu-table-definition.ts +0 -79
  141. package/types/file-types.ts +0 -18
  142. package/types/models/agent-session.ts +0 -27
  143. package/types/models/agent.ts +0 -68
  144. package/types/models/context.ts +0 -53
  145. package/types/models/embedding.ts +0 -17
  146. package/types/models/eval-run.ts +0 -40
  147. package/types/models/exulu-agent-tool-config.ts +0 -11
  148. package/types/models/item.ts +0 -21
  149. package/types/models/job.ts +0 -8
  150. package/types/models/project.ts +0 -16
  151. package/types/models/rate-limiter-rules.ts +0 -7
  152. package/types/models/test-case.ts +0 -25
  153. package/types/models/tool.ts +0 -9
  154. package/types/models/user-role.ts +0 -12
  155. package/types/models/user.ts +0 -20
  156. package/types/models/variable.ts +0 -8
  157. package/types/models/vector-methods.ts +0 -7
  158. package/types/provider-config.ts +0 -21
  159. package/types/queue-config.ts +0 -16
  160. package/types/rbac-rights-modes.ts +0 -1
  161. package/types/statistics.ts +0 -20
  162. package/types/workflow.ts +0 -31
  163. /package/ee/{documents → python/documents}/THIRD_PARTY_LICENSES/docling.txt +0 -0
  164. /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>