@rivetkit/core
Version:
404 lines (400 loc) • 12.2 kB
text/typescript
import { A as ActorFeature } from '../common-CXCe7s6i.cjs';
export { d as Actor, a as ActorId, b as ActorLogEntry, c as ActorSchema, v as Build, B as BuildSchema, x as Builds, w as BuildsSchema, p as Column, o as ColumnSchema, r as Columns, q as ColumnsSchema, g as Connection, C as ConnectionSchema, z as CreateActor, y as CreateActorSchema, k as DatabaseQuery, D as DatabaseQuerySchema, s as ForeignKey, F as ForeignKeySchema, u as ForeignKeys, t as ForeignKeysSchema, e as Operation, O as OperationSchema, f as Patch, P as PatchSchema, h as RealtimeEvent, R as RealtimeEventSchema, j as RecordedRealtimeEvent, i as RecordedRealtimeEventSchema, l as Table, T as TableSchema, n as Tables, m as TablesSchema } from '../common-CXCe7s6i.cjs';
import * as hono_utils_http_status from 'hono/utils/http-status';
import * as hono_client from 'hono/client';
import { hc } from 'hono/client';
import * as z from 'zod/v4';
declare const client$1: {
ping: hono_client.ClientRequest<{
$get: {
input: {};
output: {
message: string;
};
outputFormat: "json";
status: 200;
};
}>;
} & {
state: hono_client.ClientRequest<{
$get: {
input: {};
output: {
enabled: boolean;
state: null;
};
outputFormat: "json";
status: 200;
};
} & {
$patch: {
input: {
json: {
patch: ({
op: "remove";
path: string;
} | {
op: "add";
path: string;
value: unknown;
} | {
op: "replace";
path: string;
value: unknown;
} | {
op: "move";
path: string;
from: string;
} | {
op: "copy";
path: string;
from: string;
} | {
op: "test";
path: string;
value: unknown;
})[];
} | {
replace: any;
};
};
output: {
enabled: boolean;
};
outputFormat: "json";
status: 200;
};
}>;
} & {
state: {
stream: hono_client.ClientRequest<{
$get: {
input: {};
output: {};
outputFormat: string;
status: hono_utils_http_status.StatusCode;
};
}>;
};
} & {
connections: hono_client.ClientRequest<{
$get: {
input: {};
output: {
connections: {
id: string;
params?: {
[x: string]: any;
} | undefined;
stateEnabled?: boolean | undefined;
state?: any;
auth?: {
[x: string]: any;
} | undefined;
}[];
};
outputFormat: "json";
status: 200;
};
}>;
} & {
connections: {
stream: hono_client.ClientRequest<{
$get: {
input: {};
output: {};
outputFormat: string;
status: hono_utils_http_status.StatusCode;
};
}>;
};
} & {
events: hono_client.ClientRequest<{
$get: {
input: {};
output: {
events: ({
type: "action";
name: string;
args: any[];
connId: string;
id: string;
timestamp: number;
} | {
type: "broadcast";
eventName: string;
args: any[];
id: string;
timestamp: number;
} | {
type: "subscribe";
eventName: string;
connId: string;
id: string;
timestamp: number;
} | {
type: "unsubscribe";
eventName: string;
connId: string;
id: string;
timestamp: number;
} | {
type: "event";
eventName: string;
args: any[];
connId: string;
id: string;
timestamp: number;
})[];
};
outputFormat: "json";
status: 200;
};
}>;
} & {
events: {
clear: hono_client.ClientRequest<{
$post: {
input: {};
output: {
message: string;
};
outputFormat: "json";
status: 200;
};
}>;
};
} & {
events: {
stream: hono_client.ClientRequest<{
$get: {
input: {};
output: {};
outputFormat: string;
status: hono_utils_http_status.StatusCode;
};
}>;
};
} & {
rpcs: hono_client.ClientRequest<{
$get: {
input: {};
output: {
rpcs: string[];
};
outputFormat: "json";
status: 200;
};
}>;
} & {
db: hono_client.ClientRequest<{
$get: {
input: {};
output: {
enabled: boolean;
db: null;
};
outputFormat: "json";
status: 200;
} | {
input: {};
output: {
enabled: boolean;
db: {
table: {
schema: string;
name: string;
type: "table" | "view";
};
columns: {
cid: number;
name: string;
type: "integer" | "blob" | "text" | "real" | "numeric" | "serial";
notnull: boolean;
dflt_value: string | null;
pk: boolean | null;
}[];
foreignKeys: {
id: number;
table: string;
from: string;
to: string;
}[];
records: any;
}[];
};
outputFormat: "json";
status: 200;
};
} & {
$post: {
input: {
json: {
query: string;
params?: any[] | undefined;
};
};
output: {
enabled: boolean;
};
outputFormat: "json";
status: 200;
} | {
input: {
json: {
query: string;
params?: any[] | undefined;
};
};
output: {
error: string;
};
outputFormat: "json";
status: 500;
};
}>;
};
type ActorInspectorClient = typeof client$1;
declare const createActorInspectorClient: (...args: Parameters<typeof hc>) => ActorInspectorClient;
declare const client: {
ping: hono_client.ClientRequest<{
$get: {
input: {};
output: {
message: string;
};
outputFormat: "json";
status: 200;
};
}>;
} & {
actors: hono_client.ClientRequest<{
$get: {
input: {};
output: {
id: string & z.$brand<"ActorId">;
name: string;
key: string[];
tags?: {
[x: string]: string;
} | undefined;
region?: string | undefined;
createdAt?: string | undefined;
startedAt?: string | undefined;
destroyedAt?: string | undefined;
features?: ActorFeature[] | undefined;
}[];
outputFormat: "json";
status: 200;
} | {
input: {};
output: "Failed to fetch actors";
outputFormat: "json";
status: 500;
};
} & {
$post: {
input: {
json: {
name: string;
key: string[];
input: any;
};
};
output: {
id: string & z.$brand<"ActorId">;
name: string;
key: string[];
tags?: {
[x: string]: string;
} | undefined;
region?: string | undefined;
createdAt?: string | undefined;
startedAt?: string | undefined;
destroyedAt?: string | undefined;
features?: ActorFeature[] | undefined;
} | null;
outputFormat: "json";
status: 201;
};
}>;
} & {
builds: hono_client.ClientRequest<{
$get: {
input: {};
output: {
name: string;
createdAt?: string | undefined;
tags?: {
[x: string]: string;
} | undefined;
}[];
outputFormat: "json";
status: 200;
};
}>;
} & {
actor: {
":id": hono_client.ClientRequest<{
$get: {
input: {
param: {
id: string;
};
};
output: {
error: string;
};
outputFormat: "json";
status: 404;
} | {
input: {
param: {
id: string;
};
};
output: {
id: string & z.$brand<"ActorId">;
name: string;
key: string[];
tags?: {
[x: string]: string;
} | undefined;
region?: string | undefined;
createdAt?: string | undefined;
startedAt?: string | undefined;
destroyedAt?: string | undefined;
features?: ActorFeature[] | undefined;
};
outputFormat: "json";
status: 200;
};
}>;
};
} & {
bootstrap: hono_client.ClientRequest<{
$get: {
input: {};
output: {
actors: {
id: string & z.$brand<"ActorId">;
name: string;
key: string[];
tags?: {
[x: string]: string;
} | undefined;
region?: string | undefined;
createdAt?: string | undefined;
startedAt?: string | undefined;
destroyedAt?: string | undefined;
features?: ActorFeature[] | undefined;
}[];
};
outputFormat: "json";
status: 200;
};
}>;
};
type ManagerInspectorClient = typeof client;
declare const createManagerInspectorClient: (...args: Parameters<typeof hc>) => ManagerInspectorClient;
export { ActorFeature, type ActorInspectorClient, type ManagerInspectorClient, createActorInspectorClient, createManagerInspectorClient };