overlay.yaml•2.99 kB
overlay: 1.0.0
x-speakeasy-jsonpath: rfc9535
info:
title: Overlay
version: 0.0.0
actions:
- target: $["paths"]["/basins"]["get"]
update:
x-speakeasy-pagination:
inputs:
- in: parameters
name: start_after
type: cursor
- in: parameters
name: limit
type: limit
outputs:
nextCursor: "$.basins[(@.length-1)].name"
type: cursor
- target: $["paths"]["/streams"]["get"]
update:
x-speakeasy-pagination:
inputs:
- in: parameters
name: start_after
type: cursor
- in: parameters
name: limit
type: limit
outputs:
nextCursor: "$.streams[(@.length-1)].name"
type: cursor
- target: $.paths.*["get"]
update:
x-speakeasy-mcp:
scopes:
- read
- target: $.paths.*["post", "put", "delete", "patch"]
update:
x-speakeasy-mcp:
scopes:
- write
- target: $['paths']['/streams']['get', 'post']
description: Add s2-basin header to streams operations
update:
parameters:
- name: s2-basin
in: header
description: Basin name for basin-specific endpoints
required: true
schema:
type: string
- target: $['paths']['/streams/{stream}']['get', 'put', 'delete', 'patch']
description: Add s2-basin header to stream operations
update:
parameters:
- name: s2-basin
in: header
description: Basin name for basin-specific endpoints
required: true
schema:
type: string
- target: $['paths']['/streams/{stream}/records']['get', 'post']
description: Add s2-basin header to stream records operations
update:
parameters:
- name: s2-basin
in: header
description: Basin name for basin-specific endpoints
required: true
schema:
type: string
- target: $['paths']['/streams/{stream}/records/tail']['get']
description: Add s2-basin header to stream tail operation
update:
parameters:
- name: s2-basin
in: header
description: Basin name for basin-specific endpoints
required: true
schema:
type: string
- target: $['paths']['/streams/{stream}/records']['get']['responses']['200']['content']['text/event-stream']
description: Add SSE sentinel for streaming reads
update:
x-speakeasy-sse-sentinel: '[DONE]'
- target: $.paths.*["get", "put", "delete"]
description: Configure retries
update:
x-speakeasy-retries:
strategy: backoff
backoff:
initialInterval: 500
maxInterval: 60000
maxElapsedTime: 3600000
exponent: 1.5
statusCodes:
- 429
- 499
- 500
- 503
- 504
retryConnectionErrors: true