Skip to main content

ConnectorService.BrowseSources

List potential source selectors for the connection. The planner omits the parent for the first level and passes back a continuation token to fetch another page.

ConnectorService · Connector runtime API for provider implementers. The platform calls the provider runtime using its authenticated workload transport.

POST /prokrust.connector.v1.ConnectorService/BrowseSources

Request fields​

BrowseSourcesRequest

JSON fieldTypeMeaning
expectedConnectionIdentityFull identity of the connection the caller resolved. The runtime compares it to its own identity before serving the request.
parentSelector (explicit presence)Parent selector returned by browsing. Omit it to start at the root.
pageSizeuint32Maximum entries to return. Zero selects the SDK default of 100. The maximum is 1,000.
pageTokenbytesOpaque continuation token from the previous page. Keep the same connection, parent, and page size.
budgetBudgetDeadline and upstream usage limits for this page.

Example request​

{
"expected": {
"installationNamespaceUid": "00000000-0000-4000-8000-000000000001",
"workspaceNamespaceUid": "00000000-0000-4000-8000-000000000002",
"connection": {
"apiVersion": "sources.prokrust.ai/v1beta1",
"kind": "SyntheticConnection",
"namespace": "analytics",
"name": "fixture",
"uid": "00000000-0000-4000-8000-000000000003"
},
"providerId": "prokrust.ai/synthetic",
"providerMajor": 1,
"configDigest": "sha256:b0d4913f313bf0e18b6ec2d81d84ff748bdd415a26cb32243978b22b248567bc"
},
"pageSize": 20,
"budget": {
"deadline": "2026-03-10T12:02:00Z",
"maxSourceBytes": "1048576",
"maxStagedBytes": "0"
}
}

Response fields​

BrowseSourcesResponse

JSON fieldTypeMeaning
entrieslist of SourceEntryItems visible beneath the selected parent.
nextPageTokenbytesOpaque base64-encoded token in ProtoJSON. An empty token ends the list.
usageUsageMeasured usage for this page only.

Example response​

{
"entries": [
{
"displayName": "Events",
"category": "fixture",
"selector": {
"schemaVersion": "v1",
"canonicalJson": "eyJkYXRhc2V0IjoiZXZlbnRzIn0="
},
"selectable": true
}
],
"usage": {
"sourceBytes": {
"value": "20",
"certainty": "USAGE_CERTAINTY_EXACT"
},
"stagedBytes": {
"value": "0",
"certainty": "USAGE_CERTAINTY_EXACT"
},
"sourceRequests": {
"value": "0",
"certainty": "USAGE_CERTAINTY_EXACT"
},
"final": true,
"invocationId": "00000000-0000-4000-8000-000000000005"
}
}