Skip to content

Black Friday

Annual Pro is $90 for the first year, normally $120. Or start monthly at $6 for two months, then $12.

Ends Dec 4, 11:59 PM PT.

Create an account
← Public packages

@kody/rooms

Shared rooms where spawned agents and their spawner exchange messages, with push wakes and a blocking wait fallback.

FollowForkOpen app

Files

kody-runtime.d.ts

12 lines · 730 B · TypeScript
declare module 'kody:runtime' {
	export const kody: {
		jobRunNow(input: { id: string }): Promise<unknown>
		metaGetCurrentUser(input: Record<string, never>): Promise<unknown>
	}
	export const events: { dispatch(input: { topic: string; idempotencyKey: string; payload: Record<string, unknown> }): Promise<unknown> } | null
	export const packageContext: { hostedUrl?: string | null; appBasePath?: string } | null
	export function packageStorage(): { sql(query: string, params?: Array<unknown>): Promise<{ rows: Array<Record<string, unknown>> }> }
	export function credential(key: string): Promise<{ sign?: (operation: Record<string, unknown>) => Promise<string> }>
	const runtime: Record<string, unknown>
	export default runtime
}