@rivetkit/rivetkit-napi 0.0.0-pr.4724.ecbb955 → 0.0.0-pr.4726.71415c6
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 +13 -0
- package/package.json +9 -9
package/index.d.ts
CHANGED
|
@@ -50,6 +50,8 @@ export interface JsActionDefinition {
|
|
|
50
50
|
export interface JsActorConfig {
|
|
51
51
|
name?: string
|
|
52
52
|
icon?: string
|
|
53
|
+
hasDatabase?: boolean
|
|
54
|
+
hasState?: boolean
|
|
53
55
|
canHibernateWebsocket?: boolean
|
|
54
56
|
stateSaveIntervalMs?: number
|
|
55
57
|
createStateTimeoutMs?: number
|
|
@@ -126,6 +128,15 @@ export interface JsQueueTryNextBatchOptions {
|
|
|
126
128
|
count?: number
|
|
127
129
|
completable?: boolean
|
|
128
130
|
}
|
|
131
|
+
export interface JsQueueInspectMessage {
|
|
132
|
+
/**
|
|
133
|
+
* Queue message id. Stored as the raw u64 reinterpreted as i64 so JS
|
|
134
|
+
* sees a plain number; ids are monotonic and fit comfortably in i64.
|
|
135
|
+
*/
|
|
136
|
+
id: number
|
|
137
|
+
name: string
|
|
138
|
+
createdAtMs: number
|
|
139
|
+
}
|
|
129
140
|
export interface JsServeConfig {
|
|
130
141
|
version: number
|
|
131
142
|
endpoint: string
|
|
@@ -264,6 +275,8 @@ export declare class Queue {
|
|
|
264
275
|
enqueueAndWait(name: string, body: Buffer, options?: JsQueueEnqueueAndWaitOptions | undefined | null, signal?: CancellationToken | undefined | null): Promise<Buffer | null>
|
|
265
276
|
tryNext(options?: JsQueueTryNextOptions | undefined | null): QueueMessage | null
|
|
266
277
|
tryNextBatch(options?: JsQueueTryNextBatchOptions | undefined | null): Array<QueueMessage>
|
|
278
|
+
maxSize(): number
|
|
279
|
+
inspectMessages(): Promise<Array<JsQueueInspectMessage>>
|
|
267
280
|
}
|
|
268
281
|
export declare class QueueMessage {
|
|
269
282
|
id(): bigint
|
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.4726.71415c6",
|
|
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.4726.71415c6"
|
|
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.4726.71415c6",
|
|
50
|
+
"@rivetkit/rivetkit-napi-darwin-x64": "0.0.0-pr.4726.71415c6",
|
|
51
|
+
"@rivetkit/rivetkit-napi-linux-arm64-gnu": "0.0.0-pr.4726.71415c6",
|
|
52
|
+
"@rivetkit/rivetkit-napi-linux-arm64-musl": "0.0.0-pr.4726.71415c6",
|
|
53
|
+
"@rivetkit/rivetkit-napi-linux-x64-gnu": "0.0.0-pr.4726.71415c6",
|
|
54
|
+
"@rivetkit/rivetkit-napi-linux-x64-musl": "0.0.0-pr.4726.71415c6",
|
|
55
|
+
"@rivetkit/rivetkit-napi-win32-x64-msvc": "0.0.0-pr.4726.71415c6"
|
|
56
56
|
}
|
|
57
57
|
}
|