@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,73 +0,0 @@
1
- ---
2
- title: 'Overview'
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
- ## Type Categories
11
-
12
- <CardGroup cols={2}>
13
- <Card title="Agent Types" icon="robot" href="/api-reference/core-types/agent-types">
14
- Agent configurations, capabilities, and rate limiting
15
- </Card>
16
- <Card title="Session Types" icon="comments" href="/api-reference/core-types/session-types">
17
- Conversation sessions and messages
18
- </Card>
19
- <Card title="User Management" icon="users" href="/api-reference/core-types/user-management">
20
- Users, roles, and authentication
21
- </Card>
22
- <Card title="Evaluation Types" icon="chart-line" href="/api-reference/core-types/evaluation-types">
23
- Test cases, eval sets, and eval runs
24
- </Card>
25
- <Card title="Workflow Types" icon="workflow" href="/api-reference/core-types/workflow-types">
26
- Workflow templates and execution
27
- </Card>
28
- <Card title="Configuration" icon="gear" href="/api-reference/core-types/configuration-types">
29
- Variables and project organization
30
- </Card>
31
- <Card title="Prompt Management" icon="pen-to-square" href="/api-reference/core-types/prompt-types">
32
- Prompt library and favorites
33
- </Card>
34
- <Card title="Analytics" icon="chart-bar" href="/api-reference/core-types/analytics-types">
35
- Usage statistics and reporting
36
- </Card>
37
- <Card title="Job Management" icon="gears" href="/api-reference/core-types/job-types">
38
- Background job tracking
39
- </Card>
40
- <Card title="RBAC Types" icon="shield" href="/api-reference/core-types/rbac-types">
41
- Access control and permissions
42
- </Card>
43
- </CardGroup>
44
-
45
- ## Common Fields
46
-
47
- Most core types include these standard fields:
48
-
49
- - **id** - Unique identifier (ID or Int)
50
- - **createdAt** - Timestamp when resource was created
51
- - **updatedAt** - Timestamp when resource was last modified
52
- - **RBAC** - Access control settings (when RBAC is enabled)
53
-
54
- ## Type Safety
55
-
56
- All core types are fully typed in the GraphQL schema with TypeScript support. Use GraphQL introspection to explore available fields and their types.
57
-
58
- ## Next Steps
59
-
60
- <CardGroup cols={2}>
61
- <Card title="Dynamic Types" icon="wand-magic-sparkles" href="/api-reference/dynamic-types">
62
- Learn about context-generated types
63
- </Card>
64
- <Card title="Queries" icon="magnifying-glass" href="/api-reference/queries">
65
- Explore all query operations
66
- </Card>
67
- <Card title="Mutations" icon="pen-to-square" href="/api-reference/mutations">
68
- Explore all mutation operations
69
- </Card>
70
- <Card title="API Introduction" icon="book" href="/api-reference/introduction">
71
- Back to API overview
72
- </Card>
73
- </CardGroup>
@@ -1,102 +0,0 @@
1
- ---
2
- title: 'Prompt Library'
3
- description: 'GraphQL types for prompt library and favorites'
4
- ---
5
-
6
- ## prompt_library
7
-
8
- Saved prompts for reuse across agents.
9
-
10
- ```graphql
11
- type prompt_library {
12
- id: ID!
13
- name: String!
14
- content: String!
15
- tags: JSON # string[]
16
- category: String
17
- description: String
18
- createdAt: Date!
19
- updatedAt: Date!
20
- RBAC: RBACData
21
- }
22
- ```
23
-
24
- **Example query:**
25
-
26
- ```graphql
27
- query {
28
- prompt_libraryPagination(
29
- filters: [
30
- { tags: { contains: ["support", "greeting"] } }
31
- ]
32
- ) {
33
- items {
34
- id
35
- name
36
- content
37
- tags
38
- }
39
- }
40
- }
41
- ```
42
-
43
- ## prompt_favorites
44
-
45
- User's favorited prompts.
46
-
47
- ```graphql
48
- type prompt_favorites {
49
- id: ID!
50
- user: ID!
51
- prompt: ID!
52
- createdAt: Date!
53
- updatedAt: Date!
54
- }
55
- ```
56
-
57
- ## Usage
58
-
59
- The prompt library allows teams to:
60
-
61
- - **Share prompts** across multiple agents
62
- - **Organize prompts** with tags and categories
63
- - **Version control** prompt templates
64
- - **Favorite prompts** for quick access
65
-
66
- ## Example: Creating a Reusable Prompt
67
-
68
- ```graphql
69
- mutation {
70
- prompt_libraryCreateOne(
71
- input: {
72
- name: "Customer Greeting"
73
- content: "Hello! I'm here to help you with {{topic}}. What can I assist you with today?"
74
- tags: ["greeting", "support", "customer-service"]
75
- category: "support"
76
- description: "Standard greeting for customer support agents"
77
- }
78
- ) {
79
- item {
80
- id
81
- name
82
- }
83
- }
84
- }
85
- ```
86
-
87
- ## Related Types
88
-
89
- <CardGroup cols={2}>
90
- <Card title="Agent Types" icon="robot" href="/api-reference/core-types/agent-types">
91
- Agent system instructions
92
- </Card>
93
- <Card title="User Management" icon="users" href="/api-reference/core-types/user-management">
94
- User favorites
95
- </Card>
96
- <Card title="RBAC Types" icon="shield" href="/api-reference/core-types/rbac-types">
97
- Prompt access control
98
- </Card>
99
- <Card title="Back to Overview" icon="arrow-left" href="/api-reference/core-types/overview">
100
- View all core types
101
- </Card>
102
- </CardGroup>
@@ -1,163 +0,0 @@
1
- ---
2
- title: 'RBAC'
3
- description: 'GraphQL types for role-based access control'
4
- ---
5
-
6
- ## RBACData
7
-
8
- Access control information for resources.
9
-
10
- ```graphql
11
- type RBACData {
12
- type: String! # "public" | "private" | "users" | "roles"
13
- users: [RBACUser!]
14
- roles: [RBACRole!]
15
- }
16
-
17
- type RBACUser {
18
- id: ID!
19
- rights: String! # "read" | "write"
20
- }
21
-
22
- type RBACRole {
23
- id: ID!
24
- rights: String! # "read" | "write"
25
- }
26
- ```
27
-
28
- ## RBACInput
29
-
30
- Input type for setting RBAC permissions.
31
-
32
- ```graphql
33
- input RBACInput {
34
- users: [RBACUserInput!]
35
- roles: [RBACRoleInput!]
36
- }
37
-
38
- input RBACUserInput {
39
- id: ID!
40
- rights: String! # "read" | "write"
41
- }
42
-
43
- input RBACRoleInput {
44
- id: ID!
45
- rights: String! # "read" | "write"
46
- }
47
- ```
48
-
49
- ## RBAC Modes
50
-
51
- ### Public Mode
52
-
53
- Resource is accessible to all authenticated users:
54
-
55
- ```graphql
56
- {
57
- RBAC: {
58
- type: "public"
59
- }
60
- }
61
- ```
62
-
63
- ### Private Mode
64
-
65
- Resource is only accessible to creator:
66
-
67
- ```graphql
68
- {
69
- RBAC: {
70
- type: "private"
71
- }
72
- }
73
- ```
74
-
75
- ### User-Based Access
76
-
77
- Grant specific users access:
78
-
79
- ```graphql
80
- mutation {
81
- agentsCreateOne(
82
- input: {
83
- name: "Private Agent"
84
- RBAC: {
85
- users: [
86
- { id: "user-123", rights: "write" }
87
- { id: "user-456", rights: "read" }
88
- ]
89
- }
90
- }
91
- ) {
92
- item {
93
- id
94
- RBAC {
95
- type
96
- users {
97
- id
98
- rights
99
- }
100
- }
101
- }
102
- }
103
- }
104
- ```
105
-
106
- ### Role-Based Access
107
-
108
- Grant role-based access:
109
-
110
- ```graphql
111
- mutation {
112
- agentsUpdateOneById(
113
- id: "agent-123"
114
- input: {
115
- RBAC: {
116
- roles: [
117
- { id: "developer", rights: "write" }
118
- { id: "viewer", rights: "read" }
119
- ]
120
- }
121
- }
122
- ) {
123
- item {
124
- id
125
- RBAC {
126
- roles {
127
- id
128
- rights
129
- }
130
- }
131
- }
132
- }
133
- }
134
- ```
135
-
136
- ## Permission Rights
137
-
138
- - **read** - Can view the resource
139
- - **write** - Can view and modify the resource
140
-
141
- ## RBAC Hierarchy
142
-
143
- 1. **super_admin** - Full access to all resources
144
- 2. **Role permissions** - Access based on user's role
145
- 3. **Resource RBAC** - Specific resource-level permissions
146
- 4. **Creator** - Special access for resource creator
147
-
148
- ## Related Types
149
-
150
- <CardGroup cols={2}>
151
- <Card title="User Management" icon="users" href="/api-reference/core-types/user-management">
152
- Users and roles
153
- </Card>
154
- <Card title="Agent Types" icon="robot" href="/api-reference/core-types/agent-types">
155
- Agent access control
156
- </Card>
157
- <Card title="Session Types" icon="comments" href="/api-reference/core-types/session-types">
158
- Session access control
159
- </Card>
160
- <Card title="Back to Overview" icon="arrow-left" href="/api-reference/core-types/overview">
161
- View all core types
162
- </Card>
163
- </CardGroup>
@@ -1,77 +0,0 @@
1
- ---
2
- title: 'Sessions'
3
- description: 'GraphQL types for conversation sessions and messages'
4
- ---
5
-
6
- ## agent_sessions
7
-
8
- Conversation sessions between users and agents.
9
-
10
- ```graphql
11
- type agent_sessions {
12
- id: ID!
13
- agent: ID!
14
- user: ID
15
- name: String
16
- createdAt: Date!
17
- updatedAt: Date!
18
- RBAC: RBACData
19
- }
20
- ```
21
-
22
- **Example query:**
23
-
24
- ```graphql
25
- query {
26
- agent_sessionsPagination(
27
- limit: 20
28
- filters: [{ agent: { eq: "agent-123" } }]
29
- ) {
30
- items {
31
- id
32
- name
33
- createdAt
34
- }
35
- }
36
- }
37
- ```
38
-
39
- ## agent_messages
40
-
41
- Individual messages within a session.
42
-
43
- ```graphql
44
- type agent_messages {
45
- id: ID!
46
- session: ID!
47
- role: String! # "user" | "assistant" | "system"
48
- content: String!
49
- createdAt: Date!
50
- updatedAt: Date!
51
- }
52
- ```
53
-
54
- ## Usage
55
-
56
- Sessions track conversation history between users and agents. Each session contains multiple messages with different roles:
57
-
58
- - **user** - Messages from the user
59
- - **assistant** - Responses from the AI agent
60
- - **system** - System instructions or context
61
-
62
- ## Related Types
63
-
64
- <CardGroup cols={2}>
65
- <Card title="Agent Types" icon="robot" href="/api-reference/core-types/agent-types">
66
- Agent configurations
67
- </Card>
68
- <Card title="User Management" icon="users" href="/api-reference/core-types/user-management">
69
- User accounts
70
- </Card>
71
- <Card title="RBAC Types" icon="shield" href="/api-reference/core-types/rbac-types">
72
- Session access control
73
- </Card>
74
- <Card title="Back to Overview" icon="arrow-left" href="/api-reference/core-types/overview">
75
- View all core types
76
- </Card>
77
- </CardGroup>
@@ -1,112 +0,0 @@
1
- ---
2
- title: 'Users'
3
- description: 'GraphQL types for users, roles, and authentication'
4
- ---
5
-
6
- ## user
7
-
8
- User accounts for authentication and access control.
9
-
10
- ```graphql
11
- type user {
12
- id: Int!
13
- name: String
14
- email: String!
15
- emailVerified: Date
16
- image: String
17
- password: String
18
- type: String # "api" | "user"
19
- apikey: String
20
- role: ID
21
- super_admin: Boolean
22
- createdAt: Date!
23
- updatedAt: Date!
24
- }
25
- ```
26
-
27
- **Example query:**
28
-
29
- ```graphql
30
- query {
31
- usersPagination(
32
- filters: [{ type: { eq: "user" } }]
33
- ) {
34
- items {
35
- id
36
- name
37
- email
38
- role
39
- super_admin
40
- }
41
- }
42
- }
43
- ```
44
-
45
- <Warning>
46
- The `password` and `apikey` fields are write-only for security. They are hashed with bcrypt and cannot be retrieved.
47
- </Warning>
48
-
49
- ## role
50
-
51
- Role definitions for RBAC.
52
-
53
- ```graphql
54
- type role {
55
- id: ID!
56
- name: String!
57
- agents: String # "read" | "write"
58
- evals: String
59
- workflows: String
60
- variables: String
61
- users: String
62
- api: String
63
- createdAt: Date!
64
- updatedAt: Date!
65
- }
66
- ```
67
-
68
- **Example mutation:**
69
-
70
- ```graphql
71
- mutation {
72
- rolesCreateOne(
73
- input: {
74
- name: "Developer"
75
- agents: "write"
76
- evals: "write"
77
- workflows: "read"
78
- variables: "read"
79
- users: "read"
80
- }
81
- ) {
82
- item {
83
- id
84
- name
85
- }
86
- }
87
- }
88
- ```
89
-
90
- ## Permission Levels
91
-
92
- Roles support two permission levels for each resource type:
93
-
94
- - **read** - View resources
95
- - **write** - View and modify resources
96
-
97
- ## Related Types
98
-
99
- <CardGroup cols={2}>
100
- <Card title="RBAC Types" icon="shield" href="/api-reference/core-types/rbac-types">
101
- Resource-level access control
102
- </Card>
103
- <Card title="Session Types" icon="comments" href="/api-reference/core-types/session-types">
104
- User conversation sessions
105
- </Card>
106
- <Card title="Analytics" icon="chart-bar" href="/api-reference/core-types/analytics-types">
107
- User activity statistics
108
- </Card>
109
- <Card title="Back to Overview" icon="arrow-left" href="/api-reference/core-types/overview">
110
- View all core types
111
- </Card>
112
- </CardGroup>
@@ -1,88 +0,0 @@
1
- ---
2
- title: 'Workflows'
3
- description: 'GraphQL types for multi-step agent workflows'
4
- ---
5
-
6
- ## workflow_templates
7
-
8
- Workflow definitions with agent execution steps.
9
-
10
- ```graphql
11
- type workflow_templates {
12
- id: ID!
13
- name: String!
14
- description: String
15
- agent: ID!
16
- steps_json: JSON
17
- variables: [String] # Extracted from steps_json
18
- createdAt: Date!
19
- updatedAt: Date!
20
- RBAC: RBACData
21
- }
22
- ```
23
-
24
- **Example query:**
25
-
26
- ```graphql
27
- query {
28
- workflow_templateById(id: "workflow-123") {
29
- id
30
- name
31
- agent
32
- variables
33
- }
34
- }
35
- ```
36
-
37
- ## Workflow Execution
38
-
39
- Workflows are executed through mutations with variable substitution:
40
-
41
- ```graphql
42
- mutation {
43
- runWorkflow(
44
- id: "workflow-123"
45
- variables: {
46
- customerName: "John Doe"
47
- orderId: "12345"
48
- }
49
- ) {
50
- result
51
- job
52
- metadata
53
- }
54
- }
55
- ```
56
-
57
- ## Workflow Scheduling
58
-
59
- Workflows can be scheduled with cron expressions:
60
-
61
- ```graphql
62
- mutation {
63
- upsertWorkflowSchedule(
64
- workflow: "workflow-123"
65
- schedule: "0 9 * * *" # Daily at 9 AM
66
- ) {
67
- status
68
- job
69
- }
70
- }
71
- ```
72
-
73
- ## Related Types
74
-
75
- <CardGroup cols={2}>
76
- <Card title="Agent Types" icon="robot" href="/api-reference/core-types/agent-types">
77
- Agents executing workflows
78
- </Card>
79
- <Card title="Job Types" icon="gears" href="/api-reference/core-types/job-types">
80
- Background workflow execution
81
- </Card>
82
- <Card title="Configuration" icon="gear" href="/api-reference/core-types/configuration-types">
83
- Workflow variables
84
- </Card>
85
- <Card title="Back to Overview" icon="arrow-left" href="/api-reference/core-types/overview">
86
- View all core types
87
- </Card>
88
- </CardGroup>