Component API
Get all components in the environment
| Path | Method | Protected |
|---|---|---|
/v1/envs/{environment_id}/components | GET | Yes |
Example Response JSON
{
"values": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"revision": 0,
"environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563",
"componentName": "string",
"hash": "string",
"applicationId": "97ab27fa-30e2-43e3-92a3-160e80f4c0d5",
"accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",
"componentSize": 0,
"metadata": {
"exports": [
{
"type": "Function",
"name": "string",
"parameters": [
{
"name": "string",
"typ": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
],
"result": {
"typ": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
],
"producers": [
{
"fields": [
{
"name": "string",
"values": [
{
"name": "string",
"version": "string"
}
]
}
]
}
],
"memories": [
{
"initial": 0,
"maximum": 0
}
],
"binaryWit": "string",
"rootPackageName": "string",
"rootPackageVersion": "string",
"dynamicLinking": {
"property1": {
"type": "WasmRpc",
"targets": {
"property1": {
"interfaceName": "string",
"componentName": "string"
},
"property2": {
"interfaceName": "string",
"componentName": "string"
}
}
},
"property2": {
"type": "WasmRpc",
"targets": {
"property1": {
"interfaceName": "string",
"componentName": "string"
},
"property2": {
"interfaceName": "string",
"componentName": "string"
}
}
}
},
"agentTypes": [
{
"typeName": "string",
"description": "string",
"constructor": {
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
]
}
},
"methods": [
{
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{}
]
}
}
}
]
},
"outputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{}
]
}
}
}
]
}
}
],
"dependencies": [
{
"typeName": "string",
"description": "string",
"constructor": {
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
null
]
}
}
}
]
}
},
"methods": [
{
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"cases": []
}
}
}
]
},
"outputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"cases": []
}
}
}
]
}
}
]
}
],
"mode": "Durable"
}
]
},
"createdAt": "2019-08-24T14:15:22Z",
"files": [
{
"contentHash": "string",
"path": "string",
"permissions": "read-only"
}
],
"originalFiles": [
{
"contentHash": "string",
"path": "string",
"permissions": "read-only"
}
],
"installedPlugins": [
{
"environmentPluginGrantId": "5db98835-58e8-4101-8179-99ca47494b8d",
"priority": 0,
"parameters": {
"property1": "string",
"property2": "string"
},
"pluginRegistrationId": "a9a2014c-42b6-44bd-ae1f-d0cdfce42b62",
"pluginName": "string",
"pluginVersion": "string",
"oplogProcessorComponentId": "b811b378-62ba-48d8-b00f-0701d4484807",
"oplogProcessorComponentRevision": 0
}
],
"env": {
"property1": "string",
"property2": "string"
},
"originalEnv": {
"property1": "string",
"property2": "string"
},
"wasmHash": "string"
}
]
}Create a new component in the environment
| Path | Method | Protected |
|---|---|---|
/v1/envs/{environment_id}/components | POST | Yes |
The request body is encoded as multipart/form-data containing metadata and the WASM binary.
Request Form: multipart/form-data
Make sure to include
Content-Type: multipart/form-dataHeader
Field metadata: JSON
{
"componentName": "string",
"fileOptions": {},
"dynamicLinking": {},
"env": {},
"agentTypes": [],
"plugins": []
}Field componentWasm: string binary
Field files: string binary
Example Response JSON
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"revision": 0,
"environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563",
"componentName": "string",
"hash": "string",
"applicationId": "97ab27fa-30e2-43e3-92a3-160e80f4c0d5",
"accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",
"componentSize": 0,
"metadata": {
"exports": [
{
"type": "Function",
"name": "string",
"parameters": [
{
"name": "string",
"typ": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
],
"result": {
"typ": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
],
"producers": [
{
"fields": [
{
"name": "string",
"values": [
{
"name": "string",
"version": "string"
}
]
}
]
}
],
"memories": [
{
"initial": 0,
"maximum": 0
}
],
"binaryWit": "string",
"rootPackageName": "string",
"rootPackageVersion": "string",
"dynamicLinking": {
"property1": {
"type": "WasmRpc",
"targets": {
"property1": {
"interfaceName": "string",
"componentName": "string"
},
"property2": {
"interfaceName": "string",
"componentName": "string"
}
}
},
"property2": {
"type": "WasmRpc",
"targets": {
"property1": {
"interfaceName": "string",
"componentName": "string"
},
"property2": {
"interfaceName": "string",
"componentName": "string"
}
}
}
},
"agentTypes": [
{
"typeName": "string",
"description": "string",
"constructor": {
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
]
}
},
"methods": [
{
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
]
},
"outputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
]
}
}
],
"dependencies": [
{
"typeName": "string",
"description": "string",
"constructor": {
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
]
}
},
"methods": [
{
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{}
]
}
}
}
]
},
"outputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{}
]
}
}
}
]
}
}
]
}
],
"mode": "Durable"
}
]
},
"createdAt": "2019-08-24T14:15:22Z",
"files": [
{
"contentHash": "string",
"path": "string",
"permissions": "read-only"
}
],
"originalFiles": [
{
"contentHash": "string",
"path": "string",
"permissions": "read-only"
}
],
"installedPlugins": [
{
"environmentPluginGrantId": "5db98835-58e8-4101-8179-99ca47494b8d",
"priority": 0,
"parameters": {
"property1": "string",
"property2": "string"
},
"pluginRegistrationId": "a9a2014c-42b6-44bd-ae1f-d0cdfce42b62",
"pluginName": "string",
"pluginVersion": "string",
"oplogProcessorComponentId": "b811b378-62ba-48d8-b00f-0701d4484807",
"oplogProcessorComponentRevision": 0
}
],
"env": {
"property1": "string",
"property2": "string"
},
"originalEnv": {
"property1": "string",
"property2": "string"
},
"wasmHash": "string"
}Get a component in the environment by name
| Path | Method | Protected |
|---|---|---|
/v1/envs/{environment_id}/components/{component_name} | GET | Yes |
Example Response JSON
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"revision": 0,
"environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563",
"componentName": "string",
"hash": "string",
"applicationId": "97ab27fa-30e2-43e3-92a3-160e80f4c0d5",
"accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",
"componentSize": 0,
"metadata": {
"exports": [
{
"type": "Function",
"name": "string",
"parameters": [
{
"name": "string",
"typ": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
],
"result": {
"typ": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
],
"producers": [
{
"fields": [
{
"name": "string",
"values": [
{
"name": "string",
"version": "string"
}
]
}
]
}
],
"memories": [
{
"initial": 0,
"maximum": 0
}
],
"binaryWit": "string",
"rootPackageName": "string",
"rootPackageVersion": "string",
"dynamicLinking": {
"property1": {
"type": "WasmRpc",
"targets": {
"property1": {
"interfaceName": "string",
"componentName": "string"
},
"property2": {
"interfaceName": "string",
"componentName": "string"
}
}
},
"property2": {
"type": "WasmRpc",
"targets": {
"property1": {
"interfaceName": "string",
"componentName": "string"
},
"property2": {
"interfaceName": "string",
"componentName": "string"
}
}
}
},
"agentTypes": [
{
"typeName": "string",
"description": "string",
"constructor": {
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
]
}
},
"methods": [
{
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
]
},
"outputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
]
}
}
],
"dependencies": [
{
"typeName": "string",
"description": "string",
"constructor": {
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
]
}
},
"methods": [
{
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{}
]
}
}
}
]
},
"outputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{}
]
}
}
}
]
}
}
]
}
],
"mode": "Durable"
}
]
},
"createdAt": "2019-08-24T14:15:22Z",
"files": [
{
"contentHash": "string",
"path": "string",
"permissions": "read-only"
}
],
"originalFiles": [
{
"contentHash": "string",
"path": "string",
"permissions": "read-only"
}
],
"installedPlugins": [
{
"environmentPluginGrantId": "5db98835-58e8-4101-8179-99ca47494b8d",
"priority": 0,
"parameters": {
"property1": "string",
"property2": "string"
},
"pluginRegistrationId": "a9a2014c-42b6-44bd-ae1f-d0cdfce42b62",
"pluginName": "string",
"pluginVersion": "string",
"oplogProcessorComponentId": "b811b378-62ba-48d8-b00f-0701d4484807",
"oplogProcessorComponentRevision": 0
}
],
"env": {
"property1": "string",
"property2": "string"
},
"originalEnv": {
"property1": "string",
"property2": "string"
},
"wasmHash": "string"
}Get all components in a specific deployment
| Path | Method | Protected |
|---|---|---|
/v1/envs/{environment_id}/deployments/{deployment_revision}/components | GET | Yes |
Example Response JSON
{
"values": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"revision": 0,
"environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563",
"componentName": "string",
"hash": "string",
"applicationId": "97ab27fa-30e2-43e3-92a3-160e80f4c0d5",
"accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",
"componentSize": 0,
"metadata": {
"exports": [
{
"type": "Function",
"name": "string",
"parameters": [
{
"name": "string",
"typ": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
],
"result": {
"typ": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
],
"producers": [
{
"fields": [
{
"name": "string",
"values": [
{
"name": "string",
"version": "string"
}
]
}
]
}
],
"memories": [
{
"initial": 0,
"maximum": 0
}
],
"binaryWit": "string",
"rootPackageName": "string",
"rootPackageVersion": "string",
"dynamicLinking": {
"property1": {
"type": "WasmRpc",
"targets": {
"property1": {
"interfaceName": "string",
"componentName": "string"
},
"property2": {
"interfaceName": "string",
"componentName": "string"
}
}
},
"property2": {
"type": "WasmRpc",
"targets": {
"property1": {
"interfaceName": "string",
"componentName": "string"
},
"property2": {
"interfaceName": "string",
"componentName": "string"
}
}
}
},
"agentTypes": [
{
"typeName": "string",
"description": "string",
"constructor": {
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
]
}
},
"methods": [
{
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{}
]
}
}
}
]
},
"outputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{}
]
}
}
}
]
}
}
],
"dependencies": [
{
"typeName": "string",
"description": "string",
"constructor": {
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
null
]
}
}
}
]
}
},
"methods": [
{
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"cases": []
}
}
}
]
},
"outputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"cases": []
}
}
}
]
}
}
]
}
],
"mode": "Durable"
}
]
},
"createdAt": "2019-08-24T14:15:22Z",
"files": [
{
"contentHash": "string",
"path": "string",
"permissions": "read-only"
}
],
"originalFiles": [
{
"contentHash": "string",
"path": "string",
"permissions": "read-only"
}
],
"installedPlugins": [
{
"environmentPluginGrantId": "5db98835-58e8-4101-8179-99ca47494b8d",
"priority": 0,
"parameters": {
"property1": "string",
"property2": "string"
},
"pluginRegistrationId": "a9a2014c-42b6-44bd-ae1f-d0cdfce42b62",
"pluginName": "string",
"pluginVersion": "string",
"oplogProcessorComponentId": "b811b378-62ba-48d8-b00f-0701d4484807",
"oplogProcessorComponentRevision": 0
}
],
"env": {
"property1": "string",
"property2": "string"
},
"originalEnv": {
"property1": "string",
"property2": "string"
},
"wasmHash": "string"
}
]
}Get component in a deployment by name
| Path | Method | Protected |
|---|---|---|
/v1/envs/{environment_id}/deployments/{deployment_revision}/components/{component_name} | GET | Yes |
Example Response JSON
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"revision": 0,
"environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563",
"componentName": "string",
"hash": "string",
"applicationId": "97ab27fa-30e2-43e3-92a3-160e80f4c0d5",
"accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",
"componentSize": 0,
"metadata": {
"exports": [
{
"type": "Function",
"name": "string",
"parameters": [
{
"name": "string",
"typ": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
],
"result": {
"typ": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
],
"producers": [
{
"fields": [
{
"name": "string",
"values": [
{
"name": "string",
"version": "string"
}
]
}
]
}
],
"memories": [
{
"initial": 0,
"maximum": 0
}
],
"binaryWit": "string",
"rootPackageName": "string",
"rootPackageVersion": "string",
"dynamicLinking": {
"property1": {
"type": "WasmRpc",
"targets": {
"property1": {
"interfaceName": "string",
"componentName": "string"
},
"property2": {
"interfaceName": "string",
"componentName": "string"
}
}
},
"property2": {
"type": "WasmRpc",
"targets": {
"property1": {
"interfaceName": "string",
"componentName": "string"
},
"property2": {
"interfaceName": "string",
"componentName": "string"
}
}
}
},
"agentTypes": [
{
"typeName": "string",
"description": "string",
"constructor": {
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
]
}
},
"methods": [
{
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
]
},
"outputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
]
}
}
],
"dependencies": [
{
"typeName": "string",
"description": "string",
"constructor": {
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
]
}
},
"methods": [
{
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{}
]
}
}
}
]
},
"outputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{}
]
}
}
}
]
}
}
]
}
],
"mode": "Durable"
}
]
},
"createdAt": "2019-08-24T14:15:22Z",
"files": [
{
"contentHash": "string",
"path": "string",
"permissions": "read-only"
}
],
"originalFiles": [
{
"contentHash": "string",
"path": "string",
"permissions": "read-only"
}
],
"installedPlugins": [
{
"environmentPluginGrantId": "5db98835-58e8-4101-8179-99ca47494b8d",
"priority": 0,
"parameters": {
"property1": "string",
"property2": "string"
},
"pluginRegistrationId": "a9a2014c-42b6-44bd-ae1f-d0cdfce42b62",
"pluginName": "string",
"pluginVersion": "string",
"oplogProcessorComponentId": "b811b378-62ba-48d8-b00f-0701d4484807",
"oplogProcessorComponentRevision": 0
}
],
"env": {
"property1": "string",
"property2": "string"
},
"originalEnv": {
"property1": "string",
"property2": "string"
},
"wasmHash": "string"
}Get a component by id
| Path | Method | Protected |
|---|---|---|
/v1/components/{component_id} | GET | Yes |
Example Response JSON
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"revision": 0,
"environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563",
"componentName": "string",
"hash": "string",
"applicationId": "97ab27fa-30e2-43e3-92a3-160e80f4c0d5",
"accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",
"componentSize": 0,
"metadata": {
"exports": [
{
"type": "Function",
"name": "string",
"parameters": [
{
"name": "string",
"typ": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
],
"result": {
"typ": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
],
"producers": [
{
"fields": [
{
"name": "string",
"values": [
{
"name": "string",
"version": "string"
}
]
}
]
}
],
"memories": [
{
"initial": 0,
"maximum": 0
}
],
"binaryWit": "string",
"rootPackageName": "string",
"rootPackageVersion": "string",
"dynamicLinking": {
"property1": {
"type": "WasmRpc",
"targets": {
"property1": {
"interfaceName": "string",
"componentName": "string"
},
"property2": {
"interfaceName": "string",
"componentName": "string"
}
}
},
"property2": {
"type": "WasmRpc",
"targets": {
"property1": {
"interfaceName": "string",
"componentName": "string"
},
"property2": {
"interfaceName": "string",
"componentName": "string"
}
}
}
},
"agentTypes": [
{
"typeName": "string",
"description": "string",
"constructor": {
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
]
}
},
"methods": [
{
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
]
},
"outputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
]
}
}
],
"dependencies": [
{
"typeName": "string",
"description": "string",
"constructor": {
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
]
}
},
"methods": [
{
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{}
]
}
}
}
]
},
"outputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{}
]
}
}
}
]
}
}
]
}
],
"mode": "Durable"
}
]
},
"createdAt": "2019-08-24T14:15:22Z",
"files": [
{
"contentHash": "string",
"path": "string",
"permissions": "read-only"
}
],
"originalFiles": [
{
"contentHash": "string",
"path": "string",
"permissions": "read-only"
}
],
"installedPlugins": [
{
"environmentPluginGrantId": "5db98835-58e8-4101-8179-99ca47494b8d",
"priority": 0,
"parameters": {
"property1": "string",
"property2": "string"
},
"pluginRegistrationId": "a9a2014c-42b6-44bd-ae1f-d0cdfce42b62",
"pluginName": "string",
"pluginVersion": "string",
"oplogProcessorComponentId": "b811b378-62ba-48d8-b00f-0701d4484807",
"oplogProcessorComponentRevision": 0
}
],
"env": {
"property1": "string",
"property2": "string"
},
"originalEnv": {
"property1": "string",
"property2": "string"
},
"wasmHash": "string"
}Update the component
| Path | Method | Protected |
|---|---|---|
/v1/components/{component_id} | DELETE | Yes |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| current_revision | integer | Yes | - |
Update a component
| Path | Method | Protected |
|---|---|---|
/v1/components/{component_id} | PATCH | Yes |
The request body is encoded as multipart/form-data containing metadata and the WASM binary.
Request Form: multipart/form-data
Make sure to include
Content-Type: multipart/form-dataHeader
Field metadata: JSON
{
"currentRevision": 0,
"removedFiles": [],
"newFileOptions": {},
"dynamicLinking": {
"property1": {
"type": "WasmRpc",
"targets": {
"property1": {
"interfaceName": "string",
"componentName": "string"
},
"property2": {
"interfaceName": "string",
"componentName": "string"
}
}
},
"property2": {
"type": "WasmRpc",
"targets": {
"property1": {
"interfaceName": "string",
"componentName": "string"
},
"property2": {
"interfaceName": "string",
"componentName": "string"
}
}
}
},
"env": {
"property1": "string",
"property2": "string"
},
"agentTypes": [
{
"typeName": "string",
"description": "string",
"constructor": {
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
]
}
},
"methods": [
{
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
]
},
"outputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
]
}
}
],
"dependencies": [
{
"typeName": "string",
"description": "string",
"constructor": {
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
]
}
},
"methods": [
{
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
]
},
"outputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
]
}
}
]
}
],
"mode": "Durable"
}
],
"pluginUpdates": []
}Field newComponentWasm: string binary
Field newFiles: string binary
Example Response JSON
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"revision": 0,
"environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563",
"componentName": "string",
"hash": "string",
"applicationId": "97ab27fa-30e2-43e3-92a3-160e80f4c0d5",
"accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",
"componentSize": 0,
"metadata": {
"exports": [
{
"type": "Function",
"name": "string",
"parameters": [
{
"name": "string",
"typ": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
],
"result": {
"typ": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
],
"producers": [
{
"fields": [
{
"name": "string",
"values": [
{
"name": "string",
"version": "string"
}
]
}
]
}
],
"memories": [
{
"initial": 0,
"maximum": 0
}
],
"binaryWit": "string",
"rootPackageName": "string",
"rootPackageVersion": "string",
"dynamicLinking": {
"property1": {
"type": "WasmRpc",
"targets": {
"property1": {
"interfaceName": "string",
"componentName": "string"
},
"property2": {
"interfaceName": "string",
"componentName": "string"
}
}
},
"property2": {
"type": "WasmRpc",
"targets": {
"property1": {
"interfaceName": "string",
"componentName": "string"
},
"property2": {
"interfaceName": "string",
"componentName": "string"
}
}
}
},
"agentTypes": [
{
"typeName": "string",
"description": "string",
"constructor": {
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
]
}
},
"methods": [
{
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
]
},
"outputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
]
}
}
],
"dependencies": [
{
"typeName": "string",
"description": "string",
"constructor": {
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
]
}
},
"methods": [
{
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{}
]
}
}
}
]
},
"outputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{}
]
}
}
}
]
}
}
]
}
],
"mode": "Durable"
}
]
},
"createdAt": "2019-08-24T14:15:22Z",
"files": [
{
"contentHash": "string",
"path": "string",
"permissions": "read-only"
}
],
"originalFiles": [
{
"contentHash": "string",
"path": "string",
"permissions": "read-only"
}
],
"installedPlugins": [
{
"environmentPluginGrantId": "5db98835-58e8-4101-8179-99ca47494b8d",
"priority": 0,
"parameters": {
"property1": "string",
"property2": "string"
},
"pluginRegistrationId": "a9a2014c-42b6-44bd-ae1f-d0cdfce42b62",
"pluginName": "string",
"pluginVersion": "string",
"oplogProcessorComponentId": "b811b378-62ba-48d8-b00f-0701d4484807",
"oplogProcessorComponentRevision": 0
}
],
"env": {
"property1": "string",
"property2": "string"
},
"originalEnv": {
"property1": "string",
"property2": "string"
},
"wasmHash": "string"
}Get specific revision of a component
| Path | Method | Protected |
|---|---|---|
/v1/components/{component_id}/revisions/{revision} | GET | Yes |
Example Response JSON
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"revision": 0,
"environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563",
"componentName": "string",
"hash": "string",
"applicationId": "97ab27fa-30e2-43e3-92a3-160e80f4c0d5",
"accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",
"componentSize": 0,
"metadata": {
"exports": [
{
"type": "Function",
"name": "string",
"parameters": [
{
"name": "string",
"typ": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
],
"result": {
"typ": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
],
"producers": [
{
"fields": [
{
"name": "string",
"values": [
{
"name": "string",
"version": "string"
}
]
}
]
}
],
"memories": [
{
"initial": 0,
"maximum": 0
}
],
"binaryWit": "string",
"rootPackageName": "string",
"rootPackageVersion": "string",
"dynamicLinking": {
"property1": {
"type": "WasmRpc",
"targets": {
"property1": {
"interfaceName": "string",
"componentName": "string"
},
"property2": {
"interfaceName": "string",
"componentName": "string"
}
}
},
"property2": {
"type": "WasmRpc",
"targets": {
"property1": {
"interfaceName": "string",
"componentName": "string"
},
"property2": {
"interfaceName": "string",
"componentName": "string"
}
}
}
},
"agentTypes": [
{
"typeName": "string",
"description": "string",
"constructor": {
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
]
}
},
"methods": [
{
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
]
},
"outputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
]
}
}
],
"dependencies": [
{
"typeName": "string",
"description": "string",
"constructor": {
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{
"name": "string",
"typ": {}
}
]
}
}
}
]
}
},
"methods": [
{
"name": "string",
"description": "string",
"promptHint": "string",
"inputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{}
]
}
}
}
]
},
"outputSchema": {
"type": "Multimodal",
"elements": [
{
"name": "string",
"schema": {
"type": "ComponentModel",
"elementType": {
"type": "Variant",
"name": "string",
"owner": "string",
"cases": [
{}
]
}
}
}
]
}
}
]
}
],
"mode": "Durable"
}
]
},
"createdAt": "2019-08-24T14:15:22Z",
"files": [
{
"contentHash": "string",
"path": "string",
"permissions": "read-only"
}
],
"originalFiles": [
{
"contentHash": "string",
"path": "string",
"permissions": "read-only"
}
],
"installedPlugins": [
{
"environmentPluginGrantId": "5db98835-58e8-4101-8179-99ca47494b8d",
"priority": 0,
"parameters": {
"property1": "string",
"property2": "string"
},
"pluginRegistrationId": "a9a2014c-42b6-44bd-ae1f-d0cdfce42b62",
"pluginName": "string",
"pluginVersion": "string",
"oplogProcessorComponentId": "b811b378-62ba-48d8-b00f-0701d4484807",
"oplogProcessorComponentRevision": 0
}
],
"env": {
"property1": "string",
"property2": "string"
},
"originalEnv": {
"property1": "string",
"property2": "string"
},
"wasmHash": "string"
}Get the component wasm binary of a specific revision
| Path | Method | Protected |
|---|---|---|
/v1/components/{component_id}/revisions/{revision}/wasm | GET | Yes |
Response Body: WASM Binary File
Component API Errors
| Status Code | Description | Body |
|---|---|---|
| 400 | Invalid request, returning with a list of issues detected in the request | {"errors":["string"]} |
| 401 | Unauthorized request | {"error":"string"} |
| 403 | Forbidden Request | {"error":"string"} |
| 404 | Entity not found | {"error":"string"} |
| 409 | {"error":"string"} | |
| 422 | Limits of the plan exceeded | {"error":"string"} |
| 500 | Internal server error | {"error":"string"} |