- groups:add / ranges:plan / nodes:create / coordinator:run commands - the node API: lease, the range's chunks as one framed stream from the spool, batches, heartbeat, finish, release (node guard, token per node) - edge:node: needs COORDINATOR_URL and NODE_TOKEN only (placeholders for the rest), posts a batch every 10 chunks, gives its range back on SIGTERM - releases are gathered per batch: 1.04 chunk rows per release at 10 chunks per batch (1.35 when built per XOVER chunk) - partitions are checked per batch instead of remembered Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
32 lines
788 B
TypeScript
32 lines
788 B
TypeScript
/* eslint-disable prettier/prettier */
|
|
import type { routes } from './index.ts'
|
|
|
|
export interface ApiDefinition {
|
|
auth: {
|
|
newAccount: {
|
|
store: typeof routes['auth.new_account.store']
|
|
}
|
|
accessTokens: {
|
|
store: typeof routes['auth.access_tokens.store']
|
|
}
|
|
}
|
|
profile: {
|
|
profile: {
|
|
show: typeof routes['profile.profile.show']
|
|
}
|
|
accessTokens: {
|
|
destroy: typeof routes['profile.access_tokens.destroy']
|
|
}
|
|
}
|
|
node: {
|
|
node: {
|
|
lease: typeof routes['node.node.lease']
|
|
stream: typeof routes['node.node.stream']
|
|
batch: typeof routes['node.node.batch']
|
|
heartbeat: typeof routes['node.node.heartbeat']
|
|
finish: typeof routes['node.node.finish']
|
|
release: typeof routes['node.node.release']
|
|
}
|
|
}
|
|
}
|