@rivetkit/rivetkit-napi 0.0.0-pr.4701.ff93012 → 0.0.0-pr.4702.a179a52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +23 -0
- package/package.json +9 -9
package/index.d.ts
CHANGED
|
@@ -134,6 +134,28 @@ export interface JsServeConfig {
|
|
|
134
134
|
poolName: string
|
|
135
135
|
engineBinaryPath?: string
|
|
136
136
|
handleInspectorHttpInRuntime?: boolean
|
|
137
|
+
serverlessBasePath?: string
|
|
138
|
+
serverlessPackageVersion: string
|
|
139
|
+
serverlessClientEndpoint?: string
|
|
140
|
+
serverlessClientNamespace?: string
|
|
141
|
+
serverlessClientToken?: string
|
|
142
|
+
serverlessValidateEndpoint: boolean
|
|
143
|
+
serverlessMaxStartPayloadBytes: number
|
|
144
|
+
}
|
|
145
|
+
export interface JsServerlessRequest {
|
|
146
|
+
method: string
|
|
147
|
+
url: string
|
|
148
|
+
headers: Record<string, string>
|
|
149
|
+
body: Buffer
|
|
150
|
+
}
|
|
151
|
+
export interface JsServerlessResponseHead {
|
|
152
|
+
status: number
|
|
153
|
+
headers: Record<string, string>
|
|
154
|
+
}
|
|
155
|
+
export interface JsServerlessStreamError {
|
|
156
|
+
group: string
|
|
157
|
+
code: string
|
|
158
|
+
message: string
|
|
137
159
|
}
|
|
138
160
|
/** Options for KV list operations. */
|
|
139
161
|
export interface JsKvListOptions {
|
|
@@ -254,6 +276,7 @@ export declare class CoreRegistry {
|
|
|
254
276
|
constructor()
|
|
255
277
|
register(name: string, factory: NapiActorFactory): void
|
|
256
278
|
serve(config: JsServeConfig): Promise<void>
|
|
279
|
+
handleServerlessRequest(req: JsServerlessRequest, onStreamEvent: (...args: any[]) => any, cancelToken: CancellationToken, config: JsServeConfig): Promise<JsServerlessResponseHead>
|
|
257
280
|
}
|
|
258
281
|
export declare class Schedule {
|
|
259
282
|
after(durationMs: number, actionName: string, args: Buffer): void
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rivetkit/rivetkit-napi",
|
|
3
|
-
"version": "0.0.0-pr.
|
|
3
|
+
"version": "0.0.0-pr.4702.a179a52",
|
|
4
4
|
"description": "Native N-API addon for RivetKit providing envoy client and SQLite access",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "index.js",
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@napi-rs/cli": "^2.18.4",
|
|
46
|
-
"@rivetkit/engine-envoy-protocol": "0.0.0-pr.
|
|
46
|
+
"@rivetkit/engine-envoy-protocol": "0.0.0-pr.4702.a179a52"
|
|
47
47
|
},
|
|
48
48
|
"optionalDependencies": {
|
|
49
|
-
"@rivetkit/rivetkit-napi-darwin-arm64": "0.0.0-pr.
|
|
50
|
-
"@rivetkit/rivetkit-napi-darwin-x64": "0.0.0-pr.
|
|
51
|
-
"@rivetkit/rivetkit-napi-linux-arm64-gnu": "0.0.0-pr.
|
|
52
|
-
"@rivetkit/rivetkit-napi-linux-arm64-musl": "0.0.0-pr.
|
|
53
|
-
"@rivetkit/rivetkit-napi-linux-x64-gnu": "0.0.0-pr.
|
|
54
|
-
"@rivetkit/rivetkit-napi-linux-x64-musl": "0.0.0-pr.
|
|
55
|
-
"@rivetkit/rivetkit-napi-win32-x64-msvc": "0.0.0-pr.
|
|
49
|
+
"@rivetkit/rivetkit-napi-darwin-arm64": "0.0.0-pr.4702.a179a52",
|
|
50
|
+
"@rivetkit/rivetkit-napi-darwin-x64": "0.0.0-pr.4702.a179a52",
|
|
51
|
+
"@rivetkit/rivetkit-napi-linux-arm64-gnu": "0.0.0-pr.4702.a179a52",
|
|
52
|
+
"@rivetkit/rivetkit-napi-linux-arm64-musl": "0.0.0-pr.4702.a179a52",
|
|
53
|
+
"@rivetkit/rivetkit-napi-linux-x64-gnu": "0.0.0-pr.4702.a179a52",
|
|
54
|
+
"@rivetkit/rivetkit-napi-linux-x64-musl": "0.0.0-pr.4702.a179a52",
|
|
55
|
+
"@rivetkit/rivetkit-napi-win32-x64-msvc": "0.0.0-pr.4702.a179a52"
|
|
56
56
|
}
|
|
57
57
|
}
|