Files
kjh2064 3f293d8aa8
deploy / deploy (push) Successful in 1m52s
deploy / notify (push) Successful in 1s
V13-FE-006: consolidate approved UI and contract hardening
2026-08-13 02:41:00 +09:00

25 lines
719 B
TypeScript

export type KbxHttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'
export type KbxApiOperationKind = 'query' | 'command' | 'upload'
export type KbxIdempotencyPolicy = 'none' | 'supported' | 'required'
export interface KbxApiOperationDefinition {
id: string
method: KbxHttpMethod
path: string
permission?: string | null
kind: KbxApiOperationKind
idempotency: KbxIdempotencyPolicy
successStatuses: readonly number[]
contentType?: string
responseType?: 'json' | 'blob'
}
export interface KbxApiRequestOptions<TBody = unknown> {
path?: Record<string, string | number>
query?: object
body?: TBody
headers?: Record<string, string>
idempotencyKey?: string
responseType?: 'json' | 'blob'
}