Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions openapi/team/v1/components/schemas/Agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ allOf:
- $ref: './EntityMeta.yaml'
- type: object
properties:
title: { type: string }
name: { type: string }
role: { type: string }
model: { type: string, format: uuid }
description: { type: string }
config: { $ref: './AgentConfig.yaml' }
required: [config]
configuration:
type: string
description: JSON-encoded agent configuration payload.
image: { type: string }
resources: { $ref: './ComputeResources.yaml' }
required: [name, role, model, configuration, image]
16 changes: 0 additions & 16 deletions openapi/team/v1/components/schemas/AgentConfig.yaml

This file was deleted.

12 changes: 9 additions & 3 deletions openapi/team/v1/components/schemas/AgentCreateRequest.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
type: object
properties:
title: { type: string }
name: { type: string }
role: { type: string }
model: { type: string, format: uuid }
description: { type: string }
config: { $ref: './AgentConfig.yaml' }
required: [config]
configuration:
type: string
description: JSON-encoded agent configuration payload.
image: { type: string }
resources: { $ref: './ComputeResources.yaml' }
required: [name, role, model, image]
10 changes: 8 additions & 2 deletions openapi/team/v1/components/schemas/AgentUpdateRequest.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
type: object
properties:
title: { type: string }
name: { type: string }
role: { type: string }
model: { type: string, format: uuid }
description: { type: string }
config: { $ref: './AgentConfig.yaml' }
configuration:
type: string
description: JSON-encoded agent configuration payload.
image: { type: string }
resources: { $ref: './ComputeResources.yaml' }
additionalProperties: false
10 changes: 0 additions & 10 deletions openapi/team/v1/components/schemas/Attachment.yaml

This file was deleted.

This file was deleted.

8 changes: 0 additions & 8 deletions openapi/team/v1/components/schemas/AttachmentKind.yaml

This file was deleted.

6 changes: 6 additions & 0 deletions openapi/team/v1/components/schemas/ComputeResources.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: object
properties:
requestsCpu: { type: string }
requestsMemory: { type: string }
limitsCpu: { type: string }
limitsMemory: { type: string }
8 changes: 0 additions & 8 deletions openapi/team/v1/components/schemas/EntityType.yaml

This file was deleted.

26 changes: 26 additions & 0 deletions openapi/team/v1/components/schemas/Env.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
allOf:
- $ref: './EntityMeta.yaml'
- type: object
properties:
name: { type: string }
description: { type: string }
agentId:
type: string
format: uuid
description: Target agent. Mutually exclusive with mcpId and hookId.
mcpId:
type: string
format: uuid
description: Target MCP. Mutually exclusive with agentId and hookId.
hookId:
type: string
format: uuid
description: Target hook. Mutually exclusive with agentId and mcpId.
value:
type: string
description: Plain-text value. Mutually exclusive with secretId.
secretId:
type: string
format: uuid
description: Secret reference. Mutually exclusive with value.
required: [name]
24 changes: 24 additions & 0 deletions openapi/team/v1/components/schemas/EnvCreateRequest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
type: object
properties:
name: { type: string }
description: { type: string }
agentId:
type: string
format: uuid
description: Target agent. Mutually exclusive with mcpId and hookId.
mcpId:
type: string
format: uuid
description: Target MCP. Mutually exclusive with agentId and hookId.
hookId:
type: string
format: uuid
description: Target hook. Mutually exclusive with agentId and mcpId.
value:
type: string
description: Plain-text value. Mutually exclusive with secretId.
secretId:
type: string
format: uuid
description: Secret reference. Mutually exclusive with value.
required: [name]
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
type: object
properties:
key: { type: string, minLength: 1 }
value: { type: string }
name: { type: string }
description: { type: string }
value: { type: string }
secretId: { type: string, format: uuid }
additionalProperties: false
11 changes: 11 additions & 0 deletions openapi/team/v1/components/schemas/Hook.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
allOf:
- $ref: './EntityMeta.yaml'
- type: object
properties:
agentId: { type: string, format: uuid }
event: { type: string }
function: { type: string }
image: { type: string }
resources: { $ref: './ComputeResources.yaml' }
description: { type: string }
required: [agentId, event, function, image]
9 changes: 9 additions & 0 deletions openapi/team/v1/components/schemas/HookCreateRequest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
type: object
properties:
agentId: { type: string, format: uuid }
event: { type: string }
function: { type: string }
image: { type: string }
resources: { $ref: './ComputeResources.yaml' }
description: { type: string }
required: [agentId, event, function, image]
8 changes: 8 additions & 0 deletions openapi/team/v1/components/schemas/HookUpdateRequest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
type: object
properties:
event: { type: string }
function: { type: string }
image: { type: string }
resources: { $ref: './ComputeResources.yaml' }
description: { type: string }
additionalProperties: false
19 changes: 19 additions & 0 deletions openapi/team/v1/components/schemas/InitScript.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
allOf:
- $ref: './EntityMeta.yaml'
- type: object
properties:
script: { type: string }
description: { type: string }
agentId:
type: string
format: uuid
description: Target agent. Mutually exclusive with mcpId and hookId.
mcpId:
type: string
format: uuid
description: Target MCP. Mutually exclusive with agentId and hookId.
hookId:
type: string
format: uuid
description: Target hook. Mutually exclusive with agentId and mcpId.
required: [script]
17 changes: 17 additions & 0 deletions openapi/team/v1/components/schemas/InitScriptCreateRequest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
type: object
properties:
script: { type: string }
description: { type: string }
agentId:
type: string
format: uuid
description: Target agent. Mutually exclusive with mcpId and hookId.
mcpId:
type: string
format: uuid
description: Target MCP. Mutually exclusive with agentId and hookId.
hookId:
type: string
format: uuid
description: Target hook. Mutually exclusive with agentId and mcpId.
required: [script]
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
type: object
properties:
title: { type: string }
script: { type: string }
description: { type: string }
config: { $ref: './McpServerConfig.yaml' }
additionalProperties: false
10 changes: 10 additions & 0 deletions openapi/team/v1/components/schemas/Mcp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
allOf:
- $ref: './EntityMeta.yaml'
- type: object
properties:
agentId: { type: string, format: uuid }
image: { type: string }
command: { type: string }
resources: { $ref: './ComputeResources.yaml' }
description: { type: string }
required: [agentId, image, command]
8 changes: 8 additions & 0 deletions openapi/team/v1/components/schemas/McpCreateRequest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
type: object
properties:
agentId: { type: string, format: uuid }
image: { type: string }
command: { type: string }
resources: { $ref: './ComputeResources.yaml' }
description: { type: string }
required: [agentId, image, command]
5 changes: 0 additions & 5 deletions openapi/team/v1/components/schemas/McpEnvItem.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions openapi/team/v1/components/schemas/McpServer.yaml

This file was deleted.

35 changes: 0 additions & 35 deletions openapi/team/v1/components/schemas/McpServerConfig.yaml

This file was deleted.

This file was deleted.

7 changes: 7 additions & 0 deletions openapi/team/v1/components/schemas/McpUpdateRequest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
type: object
properties:
image: { type: string }
command: { type: string }
resources: { $ref: './ComputeResources.yaml' }
description: { type: string }
additionalProperties: false
8 changes: 0 additions & 8 deletions openapi/team/v1/components/schemas/MemoryBucket.yaml

This file was deleted.

7 changes: 0 additions & 7 deletions openapi/team/v1/components/schemas/MemoryBucketConfig.yaml

This file was deleted.

This file was deleted.

This file was deleted.

6 changes: 2 additions & 4 deletions openapi/team/v1/components/schemas/PaginatedAgents.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@ properties:
items:
type: array
items: { $ref: './Agent.yaml' }
page: { type: integer }
perPage: { type: integer }
total: { type: integer }
required: [items, page, perPage, total]
nextPageToken: { type: string }
required: [items]

This file was deleted.

7 changes: 7 additions & 0 deletions openapi/team/v1/components/schemas/PaginatedEnvs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
type: object
properties:
items:
type: array
items: { $ref: './Env.yaml' }
nextPageToken: { type: string }
required: [items]
Loading
Loading