-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathballerina-vocabulary.yaml
More file actions
166 lines (154 loc) · 6.49 KB
/
Copy pathballerina-vocabulary.yaml
File metadata and controls
166 lines (154 loc) · 6.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
vocabulary: "1.0.0"
info:
provider: "Ballerina"
description: "Taxonomy for the Ballerina programming language ecosystem, covering the Ballerina Central package registry API and the toolchain that consumes it."
created: "2026-04-19"
modified: "2026-09-04"
method: derived
source: "openapi/_original/ballerina-central-api.yml (probed 2026-09-04)"
note: >-
Rewritten 2026-09-04. The previous version named operations (getPackage, getPackageVersion,
getOrganization) and exposed ports (8080 REST, 9080 MCP) that do not exist on the live
service. Everything below maps to an operation that was called and returned 200.
operational:
apis:
- namespace: ballerina-central
label: Ballerina Central API
version: "2.0"
baseUrl: https://api.central.ballerina.io
status: active
auth: none (anonymous reads)
resources:
- name: packages
description: Ballerina packages published to the Central registry.
apis: [ballerina-central]
actions: [search, full-text-search, list-versions]
- name: connectors
description: Connector client objects declared inside published packages (outbound integrations).
apis: [ballerina-central]
actions: [search]
- name: triggers
description: Event triggers and listeners declared inside published packages (inbound integrations).
apis: [ballerina-central]
actions: [search]
- name: docs
description: The generated API documentation model for one published package version.
apis: [ballerina-central]
actions: [get-docs]
actions:
- name: search
description: List or filter a registry collection by query, organization, offset and limit.
methods: [GET]
pattern: read
- name: full-text-search
description: Full-text package search returning suggestions and field highlighting.
methods: [GET]
pattern: read
- name: list-versions
description: List the published versions of one package, newest first.
methods: [GET]
pattern: read
- name: get-docs
description: Retrieve the full documentation model for an exact org/name/version.
methods: [GET]
pattern: read
cli_actions:
description: >-
Write operations exist only through the `bal` CLI against a credentialed surface Ballerina
does not document as REST. Recorded separately so they are never mistaken for endpoints.
actions:
- name: push
description: Publish a package or version to Central.
pattern: write
auth: Central access token
- name: deprecate
description: Mark a published package deprecated.
pattern: write
auth: Central access token
schemas:
core:
- name: Package
description: A Ballerina package in the Central registry.
key_properties: [id, organization, name, version, platform, ballerinaVersion, keywords, pullCount, isDeprecated, graalvmCompatible]
- name: Module
description: A module inside a package.
key_properties: [name, packageURL, apiDocURL, summary]
- name: Connector
description: A connector client declared by a package.
key_properties: [id, name, displayName, moduleName, package]
- name: Trigger
description: An event trigger declared by a package.
key_properties: [id, name, displayName, moduleName, package]
- name: ApiDocs
description: The generated documentation model for a package version.
key_properties: [apiDocsVersion, docsData, searchData]
authentication:
schemes:
- name: Anonymous
type: none
description: Every published read operation is callable without a credential.
- name: CentralAccessToken
type: bearer
description: >-
Ballerina Central access token, obtained from central.ballerina.io/dashboard and stored
in ~/.ballerina/Settings.toml under [central] accesstoken. Used by the CLI for publish
and deprecate; valid one year.
capability:
workflows:
- name: Package Discovery
description: Find a package, resolve its latest version, and read its API documentation.
apis_combined: [ballerina-central]
operations: [fullTextSearchPackages, listPackageVersions, getPackageApiDocs]
tool_count: 3
personas: [Ballerina Developer, Integration Engineer, Coding Agent]
- name: Integration Surface Discovery
description: Find the connector or trigger that already exists for a third-party system.
apis_combined: [ballerina-central]
operations: [searchConnectors, searchTriggers]
tool_count: 2
personas: [Integration Engineer]
personas:
- id: ballerina-developer
name: Ballerina Developer
description: Developer building services and integrations in the Ballerina language.
workflows: [Package Discovery]
- id: integration-engineer
name: Integration Engineer
description: Engineer assembling enterprise integrations from published connectors and triggers.
workflows: [Package Discovery, Integration Surface Discovery]
- id: coding-agent
name: Coding Agent
description: >-
An AI agent writing Ballerina code, reaching the same registry through the first-party
`ballerina-library` MCP server's get_library tool.
workflows: [Package Discovery]
domains:
- name: Package Management
description: Discovery, version resolution and documentation of Ballerina packages.
resources: [packages, docs]
workflows: [Package Discovery]
- name: Integration Catalog
description: Discovery of the connector and trigger surface published to Central.
resources: [connectors, triggers]
workflows: [Integration Surface Discovery]
binds:
- name: BALLERINA_CENTRAL_ACCESS_TOKEN
description: Environment variable form of the Central access token, used for publishing.
workflows: []
crossReference:
- resource: packages
operations: [searchPackages, fullTextSearchPackages, listPackageVersions]
workflows: [Package Discovery]
personas: [Ballerina Developer, Integration Engineer, Coding Agent]
- resource: connectors
operations: [searchConnectors]
workflows: [Integration Surface Discovery]
personas: [Integration Engineer]
- resource: triggers
operations: [searchTriggers]
workflows: [Integration Surface Discovery]
personas: [Integration Engineer]
- resource: docs
operations: [getPackageApiDocs]
workflows: [Package Discovery]
personas: [Ballerina Developer, Coding Agent]