@distilled.cloud/celld 0.0.0-placeholder → 1.0.0-rc.13
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/LICENSE +201 -0
- package/README.md +116 -0
- package/lib/endpoint.d.ts +11 -0
- package/lib/endpoint.d.ts.map +1 -0
- package/lib/endpoint.js +11 -0
- package/lib/endpoint.js.map +1 -0
- package/lib/errors.d.ts +24 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +19 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +5 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +5 -0
- package/lib/index.js.map +1 -0
- package/lib/protocol.d.ts +12 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +33 -0
- package/lib/protocol.js.map +1 -0
- package/lib/response-validation.test.d.ts +4 -0
- package/lib/response-validation.test.d.ts.map +1 -0
- package/lib/response-validation.test.js +30 -0
- package/lib/response-validation.test.js.map +1 -0
- package/lib/services/index.d.ts +3 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +4 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/node.d.ts +334 -0
- package/lib/services/node.d.ts.map +1 -0
- package/lib/services/node.js +340 -0
- package/lib/services/node.js.map +1 -0
- package/lib/services/runtime.d.ts +686 -0
- package/lib/services/runtime.d.ts.map +1 -0
- package/lib/services/runtime.js +553 -0
- package/lib/services/runtime.js.map +1 -0
- package/lib/traits.d.ts +3 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +3 -0
- package/lib/traits.js.map +1 -0
- package/package.json +66 -7
- package/src/endpoint.ts +13 -0
- package/src/errors.ts +25 -0
- package/src/index.ts +8 -0
- package/src/protocol.ts +49 -0
- package/src/response-validation.test.ts +43 -0
- package/src/services/index.ts +3 -0
- package/src/services/node.ts +767 -0
- package/src/services/runtime.ts +1455 -0
- package/src/traits.ts +6 -0
|
@@ -0,0 +1,686 @@
|
|
|
1
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
2
|
+
import * as API from "@distilled.cloud/core/api";
|
|
3
|
+
import { type CelldOpError, type CelldOpContext } from "../protocol.ts";
|
|
4
|
+
export type { CelldOpError, CelldOpContext };
|
|
5
|
+
declare const D1ExecutionError_base: S.Class<D1ExecutionError, S.TaggedStruct<"D1ExecutionError", {
|
|
6
|
+
readonly message: any;
|
|
7
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
8
|
+
"@distilled.cloud/error/categories": {
|
|
9
|
+
BadRequestError: true;
|
|
10
|
+
};
|
|
11
|
+
});
|
|
12
|
+
/** The native D1 engine rejected SQL execution. Exec and prepared-statement requests may have already committed earlier statements; this error does not authorize automatic mutation replay. */
|
|
13
|
+
export declare class D1ExecutionError extends /*@__PURE__*/ D1ExecutionError_base {
|
|
14
|
+
}
|
|
15
|
+
declare const PeerIncompatibleVersion_base: S.Class<PeerIncompatibleVersion, S.TaggedStruct<"PeerIncompatibleVersion", {
|
|
16
|
+
readonly message: any;
|
|
17
|
+
}>, import("effect/Cause").YieldableError>;
|
|
18
|
+
/** peer protocol version is incompatible */
|
|
19
|
+
export declare class PeerIncompatibleVersion extends /*@__PURE__*/ PeerIncompatibleVersion_base {
|
|
20
|
+
}
|
|
21
|
+
declare const PeerReplayRejected_base: S.Class<PeerReplayRejected, S.TaggedStruct<"PeerReplayRejected", {
|
|
22
|
+
readonly message: any;
|
|
23
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
24
|
+
"@distilled.cloud/error/categories": {
|
|
25
|
+
ConflictError: true;
|
|
26
|
+
};
|
|
27
|
+
});
|
|
28
|
+
/** peer request replay rejected */
|
|
29
|
+
export declare class PeerReplayRejected extends /*@__PURE__*/ PeerReplayRejected_base {
|
|
30
|
+
}
|
|
31
|
+
declare const PeerWrongTarget_base: S.Class<PeerWrongTarget, S.TaggedStruct<"PeerWrongTarget", {
|
|
32
|
+
readonly message: any;
|
|
33
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
34
|
+
"@distilled.cloud/error/categories": {
|
|
35
|
+
ConflictError: true;
|
|
36
|
+
};
|
|
37
|
+
});
|
|
38
|
+
/** peer request targets a different node session */
|
|
39
|
+
export declare class PeerWrongTarget extends /*@__PURE__*/ PeerWrongTarget_base {
|
|
40
|
+
}
|
|
41
|
+
export type KvDeleteOperation = "delete";
|
|
42
|
+
export declare const KvDeleteOperation: any;
|
|
43
|
+
export type Strings = Array<string>;
|
|
44
|
+
export declare const Strings: S.Schema<Strings>;
|
|
45
|
+
export interface DeleteKvInput {
|
|
46
|
+
/** Reserved-class cell scope derived by Celld, not a database, namespace or queue display name. */
|
|
47
|
+
scope: string;
|
|
48
|
+
/** Optional cell identity name; include the exact encoded query string in the peer signature. */
|
|
49
|
+
name?: string;
|
|
50
|
+
/** Peer protocol version; send the string 5. */
|
|
51
|
+
peer_version: string;
|
|
52
|
+
/** Source node name or operator identity, validated as a node name. */
|
|
53
|
+
peer_source: string;
|
|
54
|
+
/** Exact addressed node session identity, not the cell scope. */
|
|
55
|
+
peer_target: string;
|
|
56
|
+
/** Decimal Unix milliseconds as text; accepted within a 30000 ms clock window. */
|
|
57
|
+
peer_timestamp: string;
|
|
58
|
+
/** A fresh 16-byte nonce encoded as 32 hexadecimal characters; reuse is rejected. */
|
|
59
|
+
peer_nonce: string;
|
|
60
|
+
/** Lowercase SHA-256 hex digest of the exact serialized HTTP request body bytes. */
|
|
61
|
+
peer_body_sha256: string;
|
|
62
|
+
/** HMAC-SHA256 hex signature over newline-separated domain cells-peer-request-v1, version 5, method POST, exact path and query, body hash, source, target, timestamp and nonce, with no trailing newline. */
|
|
63
|
+
peer_signature: string;
|
|
64
|
+
op: KvDeleteOperation | (string & {});
|
|
65
|
+
keys: Strings;
|
|
66
|
+
}
|
|
67
|
+
export declare const DeleteKvInput: S.Schema<DeleteKvInput>;
|
|
68
|
+
export interface OkResult {
|
|
69
|
+
ok: boolean;
|
|
70
|
+
}
|
|
71
|
+
export declare const OkResult: S.Schema<OkResult>;
|
|
72
|
+
/** The actual HTTP JSON envelope is {"result": ...}; nested arrays or scalars are not top-level raw responses. */
|
|
73
|
+
export interface DeleteKvOutput {
|
|
74
|
+
result: OkResult;
|
|
75
|
+
}
|
|
76
|
+
export declare const DeleteKvOutput: S.Schema<DeleteKvOutput>;
|
|
77
|
+
export interface D1ExecPayload {
|
|
78
|
+
sql: string;
|
|
79
|
+
rows?: boolean;
|
|
80
|
+
}
|
|
81
|
+
export declare const D1ExecPayload: S.Schema<D1ExecPayload>;
|
|
82
|
+
export interface ExecD1Input {
|
|
83
|
+
/** Reserved-class cell scope derived by Celld, not a database, namespace or queue display name. */
|
|
84
|
+
scope: string;
|
|
85
|
+
/** Optional cell identity name; include the exact encoded query string in the peer signature. */
|
|
86
|
+
name?: string;
|
|
87
|
+
/** Peer protocol version; send the string 5. */
|
|
88
|
+
peer_version: string;
|
|
89
|
+
/** Source node name or operator identity, validated as a node name. */
|
|
90
|
+
peer_source: string;
|
|
91
|
+
/** Exact addressed node session identity, not the cell scope. */
|
|
92
|
+
peer_target: string;
|
|
93
|
+
/** Decimal Unix milliseconds as text; accepted within a 30000 ms clock window. */
|
|
94
|
+
peer_timestamp: string;
|
|
95
|
+
/** A fresh 16-byte nonce encoded as 32 hexadecimal characters; reuse is rejected. */
|
|
96
|
+
peer_nonce: string;
|
|
97
|
+
/** Lowercase SHA-256 hex digest of the exact serialized HTTP request body bytes. */
|
|
98
|
+
peer_body_sha256: string;
|
|
99
|
+
/** HMAC-SHA256 hex signature over newline-separated domain cells-peer-request-v1, version 5, method POST, exact path and query, body hash, source, target, timestamp and nonce, with no trailing newline. */
|
|
100
|
+
peer_signature: string;
|
|
101
|
+
exec: D1ExecPayload;
|
|
102
|
+
}
|
|
103
|
+
export declare const ExecD1Input: S.Schema<ExecD1Input>;
|
|
104
|
+
export type JsonValues = Array<unknown>;
|
|
105
|
+
export declare const JsonValues: S.Schema<JsonValues>;
|
|
106
|
+
export type Rows = Array<JsonValues>;
|
|
107
|
+
export declare const Rows: S.Schema<Rows>;
|
|
108
|
+
/** Native SQL engine result; row values and engine metadata retain their JSON types. */
|
|
109
|
+
export interface D1ResultSet {
|
|
110
|
+
columns?: Strings;
|
|
111
|
+
rows?: Rows;
|
|
112
|
+
meta?: unknown;
|
|
113
|
+
}
|
|
114
|
+
export declare const D1ResultSet: S.Schema<D1ResultSet>;
|
|
115
|
+
export type D1ResultSets = Array<D1ResultSet>;
|
|
116
|
+
export declare const D1ResultSets: S.Schema<D1ResultSets>;
|
|
117
|
+
/** Duration is in milliseconds. Result sets are present only when exec.rows is true. */
|
|
118
|
+
export interface ExecD1Result {
|
|
119
|
+
count: number;
|
|
120
|
+
duration: number;
|
|
121
|
+
results?: D1ResultSets;
|
|
122
|
+
}
|
|
123
|
+
export declare const ExecD1Result: S.Schema<ExecD1Result>;
|
|
124
|
+
/** The actual HTTP JSON envelope is {"result": ...}; nested arrays or scalars are not top-level raw responses. */
|
|
125
|
+
export interface ExecD1Output {
|
|
126
|
+
result: ExecD1Result;
|
|
127
|
+
}
|
|
128
|
+
export declare const ExecD1Output: S.Schema<ExecD1Output>;
|
|
129
|
+
export interface D1Statement {
|
|
130
|
+
sql: string;
|
|
131
|
+
params?: JsonValues;
|
|
132
|
+
first?: boolean;
|
|
133
|
+
}
|
|
134
|
+
export declare const D1Statement: S.Schema<D1Statement>;
|
|
135
|
+
export type D1StatementList = Array<D1Statement>;
|
|
136
|
+
export declare const D1StatementList: S.Schema<D1StatementList>;
|
|
137
|
+
export interface ExecuteD1StatementsInput {
|
|
138
|
+
/** Reserved-class cell scope derived by Celld, not a database, namespace or queue display name. */
|
|
139
|
+
scope: string;
|
|
140
|
+
/** Optional cell identity name; include the exact encoded query string in the peer signature. */
|
|
141
|
+
name?: string;
|
|
142
|
+
/** Peer protocol version; send the string 5. */
|
|
143
|
+
peer_version: string;
|
|
144
|
+
/** Source node name or operator identity, validated as a node name. */
|
|
145
|
+
peer_source: string;
|
|
146
|
+
/** Exact addressed node session identity, not the cell scope. */
|
|
147
|
+
peer_target: string;
|
|
148
|
+
/** Decimal Unix milliseconds as text; accepted within a 30000 ms clock window. */
|
|
149
|
+
peer_timestamp: string;
|
|
150
|
+
/** A fresh 16-byte nonce encoded as 32 hexadecimal characters; reuse is rejected. */
|
|
151
|
+
peer_nonce: string;
|
|
152
|
+
/** Lowercase SHA-256 hex digest of the exact serialized HTTP request body bytes. */
|
|
153
|
+
peer_body_sha256: string;
|
|
154
|
+
/** HMAC-SHA256 hex signature over newline-separated domain cells-peer-request-v1, version 5, method POST, exact path and query, body hash, source, target, timestamp and nonce, with no trailing newline. */
|
|
155
|
+
peer_signature: string;
|
|
156
|
+
statements: D1StatementList;
|
|
157
|
+
}
|
|
158
|
+
export declare const ExecuteD1StatementsInput: S.Schema<ExecuteD1StatementsInput>;
|
|
159
|
+
/** The actual HTTP JSON envelope is {"result": ...}; nested arrays or scalars are not top-level raw responses. */
|
|
160
|
+
export interface ExecuteD1StatementsOutput {
|
|
161
|
+
result: D1ResultSets;
|
|
162
|
+
}
|
|
163
|
+
export declare const ExecuteD1StatementsOutput: S.Schema<ExecuteD1StatementsOutput>;
|
|
164
|
+
export type KvGetOperation = "get";
|
|
165
|
+
export declare const KvGetOperation: any;
|
|
166
|
+
export interface GetKvInput {
|
|
167
|
+
/** Reserved-class cell scope derived by Celld, not a database, namespace or queue display name. */
|
|
168
|
+
scope: string;
|
|
169
|
+
/** Optional cell identity name; include the exact encoded query string in the peer signature. */
|
|
170
|
+
name?: string;
|
|
171
|
+
/** Peer protocol version; send the string 5. */
|
|
172
|
+
peer_version: string;
|
|
173
|
+
/** Source node name or operator identity, validated as a node name. */
|
|
174
|
+
peer_source: string;
|
|
175
|
+
/** Exact addressed node session identity, not the cell scope. */
|
|
176
|
+
peer_target: string;
|
|
177
|
+
/** Decimal Unix milliseconds as text; accepted within a 30000 ms clock window. */
|
|
178
|
+
peer_timestamp: string;
|
|
179
|
+
/** A fresh 16-byte nonce encoded as 32 hexadecimal characters; reuse is rejected. */
|
|
180
|
+
peer_nonce: string;
|
|
181
|
+
/** Lowercase SHA-256 hex digest of the exact serialized HTTP request body bytes. */
|
|
182
|
+
peer_body_sha256: string;
|
|
183
|
+
/** HMAC-SHA256 hex signature over newline-separated domain cells-peer-request-v1, version 5, method POST, exact path and query, body hash, source, target, timestamp and nonce, with no trailing newline. */
|
|
184
|
+
peer_signature: string;
|
|
185
|
+
op: KvGetOperation | (string & {});
|
|
186
|
+
key: string;
|
|
187
|
+
}
|
|
188
|
+
export declare const GetKvInput: S.Schema<GetKvInput>;
|
|
189
|
+
export interface GetKvResult {
|
|
190
|
+
found: boolean;
|
|
191
|
+
/** A JSON array of byte integers for inline values, or a base64 string for large values. Absent when found is false. */
|
|
192
|
+
value?: unknown;
|
|
193
|
+
/** base64 for large values; absent for inline byte arrays. */
|
|
194
|
+
value_encoding?: string;
|
|
195
|
+
tag?: string;
|
|
196
|
+
/** Stored JSON text, not a decoded metadata object. May be null. */
|
|
197
|
+
metadata?: string | null;
|
|
198
|
+
/** Expiration in Unix milliseconds; may be null. */
|
|
199
|
+
expiration?: number | null;
|
|
200
|
+
}
|
|
201
|
+
export declare const GetKvResult: S.Schema<GetKvResult>;
|
|
202
|
+
/** The actual HTTP JSON envelope is {"result": ...}; nested arrays or scalars are not top-level raw responses. */
|
|
203
|
+
export interface GetKvOutput {
|
|
204
|
+
result: GetKvResult;
|
|
205
|
+
}
|
|
206
|
+
export declare const GetKvOutput: S.Schema<GetKvOutput>;
|
|
207
|
+
export type GetKvInfoOperation = "info";
|
|
208
|
+
export declare const GetKvInfoOperation: any;
|
|
209
|
+
export interface GetKvInfoInput {
|
|
210
|
+
/** Reserved-class cell scope derived by Celld, not a database, namespace or queue display name. */
|
|
211
|
+
scope: string;
|
|
212
|
+
/** Optional cell identity name; include the exact encoded query string in the peer signature. */
|
|
213
|
+
name?: string;
|
|
214
|
+
/** Peer protocol version; send the string 5. */
|
|
215
|
+
peer_version: string;
|
|
216
|
+
/** Source node name or operator identity, validated as a node name. */
|
|
217
|
+
peer_source: string;
|
|
218
|
+
/** Exact addressed node session identity, not the cell scope. */
|
|
219
|
+
peer_target: string;
|
|
220
|
+
/** Decimal Unix milliseconds as text; accepted within a 30000 ms clock window. */
|
|
221
|
+
peer_timestamp: string;
|
|
222
|
+
/** A fresh 16-byte nonce encoded as 32 hexadecimal characters; reuse is rejected. */
|
|
223
|
+
peer_nonce: string;
|
|
224
|
+
/** Lowercase SHA-256 hex digest of the exact serialized HTTP request body bytes. */
|
|
225
|
+
peer_body_sha256: string;
|
|
226
|
+
/** HMAC-SHA256 hex signature over newline-separated domain cells-peer-request-v1, version 5, method POST, exact path and query, body hash, source, target, timestamp and nonce, with no trailing newline. */
|
|
227
|
+
peer_signature: string;
|
|
228
|
+
op: GetKvInfoOperation | (string & {});
|
|
229
|
+
}
|
|
230
|
+
export declare const GetKvInfoInput: S.Schema<GetKvInfoInput>;
|
|
231
|
+
export interface GetKvInfoResult {
|
|
232
|
+
live: number;
|
|
233
|
+
bytes: number;
|
|
234
|
+
stored: number;
|
|
235
|
+
}
|
|
236
|
+
export declare const GetKvInfoResult: S.Schema<GetKvInfoResult>;
|
|
237
|
+
/** The actual HTTP JSON envelope is {"result": ...}; nested arrays or scalars are not top-level raw responses. */
|
|
238
|
+
export interface GetKvInfoOutput {
|
|
239
|
+
result: GetKvInfoResult;
|
|
240
|
+
}
|
|
241
|
+
export declare const GetKvInfoOutput: S.Schema<GetKvInfoOutput>;
|
|
242
|
+
export type GetQueueInfoOperation = "info";
|
|
243
|
+
export declare const GetQueueInfoOperation: any;
|
|
244
|
+
export interface GetQueueInfoInput {
|
|
245
|
+
/** Reserved-class cell scope derived by Celld, not a database, namespace or queue display name. */
|
|
246
|
+
scope: string;
|
|
247
|
+
/** Optional cell identity name; include the exact encoded query string in the peer signature. */
|
|
248
|
+
name?: string;
|
|
249
|
+
/** Peer protocol version; send the string 5. */
|
|
250
|
+
peer_version: string;
|
|
251
|
+
/** Source node name or operator identity, validated as a node name. */
|
|
252
|
+
peer_source: string;
|
|
253
|
+
/** Exact addressed node session identity, not the cell scope. */
|
|
254
|
+
peer_target: string;
|
|
255
|
+
/** Decimal Unix milliseconds as text; accepted within a 30000 ms clock window. */
|
|
256
|
+
peer_timestamp: string;
|
|
257
|
+
/** A fresh 16-byte nonce encoded as 32 hexadecimal characters; reuse is rejected. */
|
|
258
|
+
peer_nonce: string;
|
|
259
|
+
/** Lowercase SHA-256 hex digest of the exact serialized HTTP request body bytes. */
|
|
260
|
+
peer_body_sha256: string;
|
|
261
|
+
/** HMAC-SHA256 hex signature over newline-separated domain cells-peer-request-v1, version 5, method POST, exact path and query, body hash, source, target, timestamp and nonce, with no trailing newline. */
|
|
262
|
+
peer_signature: string;
|
|
263
|
+
op: GetQueueInfoOperation | (string & {});
|
|
264
|
+
}
|
|
265
|
+
export declare const GetQueueInfoInput: S.Schema<GetQueueInfoInput>;
|
|
266
|
+
export interface GetQueueInfoResult {
|
|
267
|
+
backlog_count: number;
|
|
268
|
+
backlog_bytes: number;
|
|
269
|
+
/** Unix milliseconds; null when no message exists. */
|
|
270
|
+
oldest_message_timestamp?: number | null;
|
|
271
|
+
stored: number;
|
|
272
|
+
paused: boolean;
|
|
273
|
+
}
|
|
274
|
+
export declare const GetQueueInfoResult: S.Schema<GetQueueInfoResult>;
|
|
275
|
+
/** The actual HTTP JSON envelope is {"result": ...}; nested arrays or scalars are not top-level raw responses. */
|
|
276
|
+
export interface GetQueueInfoOutput {
|
|
277
|
+
result: GetQueueInfoResult;
|
|
278
|
+
}
|
|
279
|
+
export declare const GetQueueInfoOutput: S.Schema<GetQueueInfoOutput>;
|
|
280
|
+
export type KvListOperation = "list";
|
|
281
|
+
export declare const KvListOperation: any;
|
|
282
|
+
export interface ListKvInput {
|
|
283
|
+
/** Reserved-class cell scope derived by Celld, not a database, namespace or queue display name. */
|
|
284
|
+
scope: string;
|
|
285
|
+
/** Optional cell identity name; include the exact encoded query string in the peer signature. */
|
|
286
|
+
name?: string;
|
|
287
|
+
/** Peer protocol version; send the string 5. */
|
|
288
|
+
peer_version: string;
|
|
289
|
+
/** Source node name or operator identity, validated as a node name. */
|
|
290
|
+
peer_source: string;
|
|
291
|
+
/** Exact addressed node session identity, not the cell scope. */
|
|
292
|
+
peer_target: string;
|
|
293
|
+
/** Decimal Unix milliseconds as text; accepted within a 30000 ms clock window. */
|
|
294
|
+
peer_timestamp: string;
|
|
295
|
+
/** A fresh 16-byte nonce encoded as 32 hexadecimal characters; reuse is rejected. */
|
|
296
|
+
peer_nonce: string;
|
|
297
|
+
/** Lowercase SHA-256 hex digest of the exact serialized HTTP request body bytes. */
|
|
298
|
+
peer_body_sha256: string;
|
|
299
|
+
/** HMAC-SHA256 hex signature over newline-separated domain cells-peer-request-v1, version 5, method POST, exact path and query, body hash, source, target, timestamp and nonce, with no trailing newline. */
|
|
300
|
+
peer_signature: string;
|
|
301
|
+
op: KvListOperation | (string & {});
|
|
302
|
+
prefix?: string;
|
|
303
|
+
limit: number;
|
|
304
|
+
/** Exclusive last key name from the previous page, not a binding cursor. */
|
|
305
|
+
after?: string;
|
|
306
|
+
}
|
|
307
|
+
export declare const ListKvInput: S.Schema<ListKvInput>;
|
|
308
|
+
export interface KvKey {
|
|
309
|
+
name: string;
|
|
310
|
+
/** Stored JSON text; may be null. */
|
|
311
|
+
metadata?: string | null;
|
|
312
|
+
/** Unix milliseconds; may be null. */
|
|
313
|
+
expiration?: number | null;
|
|
314
|
+
}
|
|
315
|
+
export declare const KvKey: S.Schema<KvKey>;
|
|
316
|
+
export type KvKeys = Array<KvKey>;
|
|
317
|
+
export declare const KvKeys: S.Schema<KvKeys>;
|
|
318
|
+
export interface ListKvResult {
|
|
319
|
+
keys: KvKeys;
|
|
320
|
+
complete: boolean;
|
|
321
|
+
}
|
|
322
|
+
export declare const ListKvResult: S.Schema<ListKvResult>;
|
|
323
|
+
/** The actual HTTP JSON envelope is {"result": ...}; nested arrays or scalars are not top-level raw responses. */
|
|
324
|
+
export interface ListKvOutput {
|
|
325
|
+
result: ListKvResult;
|
|
326
|
+
}
|
|
327
|
+
export declare const ListKvOutput: S.Schema<ListKvOutput>;
|
|
328
|
+
export interface D1Migration {
|
|
329
|
+
name: string;
|
|
330
|
+
sql: string;
|
|
331
|
+
/** Defaults to d1_migrations when omitted or empty. */
|
|
332
|
+
table?: string;
|
|
333
|
+
}
|
|
334
|
+
export declare const D1Migration: S.Schema<D1Migration>;
|
|
335
|
+
export interface MigrateD1Input {
|
|
336
|
+
/** Reserved-class cell scope derived by Celld, not a database, namespace or queue display name. */
|
|
337
|
+
scope: string;
|
|
338
|
+
/** Optional cell identity name; include the exact encoded query string in the peer signature. */
|
|
339
|
+
name?: string;
|
|
340
|
+
/** Peer protocol version; send the string 5. */
|
|
341
|
+
peer_version: string;
|
|
342
|
+
/** Source node name or operator identity, validated as a node name. */
|
|
343
|
+
peer_source: string;
|
|
344
|
+
/** Exact addressed node session identity, not the cell scope. */
|
|
345
|
+
peer_target: string;
|
|
346
|
+
/** Decimal Unix milliseconds as text; accepted within a 30000 ms clock window. */
|
|
347
|
+
peer_timestamp: string;
|
|
348
|
+
/** A fresh 16-byte nonce encoded as 32 hexadecimal characters; reuse is rejected. */
|
|
349
|
+
peer_nonce: string;
|
|
350
|
+
/** Lowercase SHA-256 hex digest of the exact serialized HTTP request body bytes. */
|
|
351
|
+
peer_body_sha256: string;
|
|
352
|
+
/** HMAC-SHA256 hex signature over newline-separated domain cells-peer-request-v1, version 5, method POST, exact path and query, body hash, source, target, timestamp and nonce, with no trailing newline. */
|
|
353
|
+
peer_signature: string;
|
|
354
|
+
migrate: D1Migration;
|
|
355
|
+
}
|
|
356
|
+
export declare const MigrateD1Input: S.Schema<MigrateD1Input>;
|
|
357
|
+
/** The actual HTTP JSON envelope is {"result": ...}; nested arrays or scalars are not top-level raw responses. */
|
|
358
|
+
export interface MigrateD1Output {
|
|
359
|
+
result: unknown;
|
|
360
|
+
}
|
|
361
|
+
export declare const MigrateD1Output: S.Schema<MigrateD1Output>;
|
|
362
|
+
export type QueuePauseOperation = "pause";
|
|
363
|
+
export declare const QueuePauseOperation: any;
|
|
364
|
+
export interface PauseQueueInput {
|
|
365
|
+
/** Reserved-class cell scope derived by Celld, not a database, namespace or queue display name. */
|
|
366
|
+
scope: string;
|
|
367
|
+
/** Optional cell identity name; include the exact encoded query string in the peer signature. */
|
|
368
|
+
name?: string;
|
|
369
|
+
/** Peer protocol version; send the string 5. */
|
|
370
|
+
peer_version: string;
|
|
371
|
+
/** Source node name or operator identity, validated as a node name. */
|
|
372
|
+
peer_source: string;
|
|
373
|
+
/** Exact addressed node session identity, not the cell scope. */
|
|
374
|
+
peer_target: string;
|
|
375
|
+
/** Decimal Unix milliseconds as text; accepted within a 30000 ms clock window. */
|
|
376
|
+
peer_timestamp: string;
|
|
377
|
+
/** A fresh 16-byte nonce encoded as 32 hexadecimal characters; reuse is rejected. */
|
|
378
|
+
peer_nonce: string;
|
|
379
|
+
/** Lowercase SHA-256 hex digest of the exact serialized HTTP request body bytes. */
|
|
380
|
+
peer_body_sha256: string;
|
|
381
|
+
/** HMAC-SHA256 hex signature over newline-separated domain cells-peer-request-v1, version 5, method POST, exact path and query, body hash, source, target, timestamp and nonce, with no trailing newline. */
|
|
382
|
+
peer_signature: string;
|
|
383
|
+
op: QueuePauseOperation | (string & {});
|
|
384
|
+
}
|
|
385
|
+
export declare const PauseQueueInput: S.Schema<PauseQueueInput>;
|
|
386
|
+
export interface QueuePausedResult {
|
|
387
|
+
backlog_count: number;
|
|
388
|
+
backlog_bytes: number;
|
|
389
|
+
/** Unix milliseconds; null when no message exists. */
|
|
390
|
+
oldest_message_timestamp?: number | null;
|
|
391
|
+
paused: boolean;
|
|
392
|
+
}
|
|
393
|
+
export declare const QueuePausedResult: S.Schema<QueuePausedResult>;
|
|
394
|
+
/** The actual HTTP JSON envelope is {"result": ...}; nested arrays or scalars are not top-level raw responses. */
|
|
395
|
+
export interface PauseQueueOutput {
|
|
396
|
+
result: QueuePausedResult;
|
|
397
|
+
}
|
|
398
|
+
export declare const PauseQueueOutput: S.Schema<PauseQueueOutput>;
|
|
399
|
+
export type PeekQueueOperation = "peek";
|
|
400
|
+
export declare const PeekQueueOperation: any;
|
|
401
|
+
export interface PeekQueueInput {
|
|
402
|
+
/** Reserved-class cell scope derived by Celld, not a database, namespace or queue display name. */
|
|
403
|
+
scope: string;
|
|
404
|
+
/** Optional cell identity name; include the exact encoded query string in the peer signature. */
|
|
405
|
+
name?: string;
|
|
406
|
+
/** Peer protocol version; send the string 5. */
|
|
407
|
+
peer_version: string;
|
|
408
|
+
/** Source node name or operator identity, validated as a node name. */
|
|
409
|
+
peer_source: string;
|
|
410
|
+
/** Exact addressed node session identity, not the cell scope. */
|
|
411
|
+
peer_target: string;
|
|
412
|
+
/** Decimal Unix milliseconds as text; accepted within a 30000 ms clock window. */
|
|
413
|
+
peer_timestamp: string;
|
|
414
|
+
/** A fresh 16-byte nonce encoded as 32 hexadecimal characters; reuse is rejected. */
|
|
415
|
+
peer_nonce: string;
|
|
416
|
+
/** Lowercase SHA-256 hex digest of the exact serialized HTTP request body bytes. */
|
|
417
|
+
peer_body_sha256: string;
|
|
418
|
+
/** HMAC-SHA256 hex signature over newline-separated domain cells-peer-request-v1, version 5, method POST, exact path and query, body hash, source, target, timestamp and nonce, with no trailing newline. */
|
|
419
|
+
peer_signature: string;
|
|
420
|
+
op: PeekQueueOperation | (string & {});
|
|
421
|
+
/** Defaults to 10; valid values are 1 through 100. */
|
|
422
|
+
limit?: number;
|
|
423
|
+
}
|
|
424
|
+
export declare const PeekQueueInput: S.Schema<PeekQueueInput>;
|
|
425
|
+
export interface QueueMessage {
|
|
426
|
+
id: string;
|
|
427
|
+
body_base64: string;
|
|
428
|
+
content_type: string;
|
|
429
|
+
size: number;
|
|
430
|
+
enqueued_at: number;
|
|
431
|
+
visible_at: number;
|
|
432
|
+
attempts: number;
|
|
433
|
+
/** moving, purging, leased, visible or delayed. */
|
|
434
|
+
state: string;
|
|
435
|
+
/** Unix milliseconds; null unless actively leased. */
|
|
436
|
+
leased_until?: number | null;
|
|
437
|
+
/** May be null. */
|
|
438
|
+
transfer_target?: string | null;
|
|
439
|
+
/** May be null. */
|
|
440
|
+
dead_letter_source?: string | null;
|
|
441
|
+
}
|
|
442
|
+
export declare const QueueMessage: S.Schema<QueueMessage>;
|
|
443
|
+
export type QueueMessages = Array<QueueMessage>;
|
|
444
|
+
export declare const QueueMessages: S.Schema<QueueMessages>;
|
|
445
|
+
export interface PeekQueueResult {
|
|
446
|
+
messages: QueueMessages;
|
|
447
|
+
}
|
|
448
|
+
export declare const PeekQueueResult: S.Schema<PeekQueueResult>;
|
|
449
|
+
/** The actual HTTP JSON envelope is {"result": ...}; nested arrays or scalars are not top-level raw responses. */
|
|
450
|
+
export interface PeekQueueOutput {
|
|
451
|
+
result: PeekQueueResult;
|
|
452
|
+
}
|
|
453
|
+
export declare const PeekQueueOutput: S.Schema<PeekQueueOutput>;
|
|
454
|
+
export type QueuePurgeOperation = "purge";
|
|
455
|
+
export declare const QueuePurgeOperation: any;
|
|
456
|
+
export interface PurgeQueueInput {
|
|
457
|
+
/** Reserved-class cell scope derived by Celld, not a database, namespace or queue display name. */
|
|
458
|
+
scope: string;
|
|
459
|
+
/** Optional cell identity name; include the exact encoded query string in the peer signature. */
|
|
460
|
+
name?: string;
|
|
461
|
+
/** Peer protocol version; send the string 5. */
|
|
462
|
+
peer_version: string;
|
|
463
|
+
/** Source node name or operator identity, validated as a node name. */
|
|
464
|
+
peer_source: string;
|
|
465
|
+
/** Exact addressed node session identity, not the cell scope. */
|
|
466
|
+
peer_target: string;
|
|
467
|
+
/** Decimal Unix milliseconds as text; accepted within a 30000 ms clock window. */
|
|
468
|
+
peer_timestamp: string;
|
|
469
|
+
/** A fresh 16-byte nonce encoded as 32 hexadecimal characters; reuse is rejected. */
|
|
470
|
+
peer_nonce: string;
|
|
471
|
+
/** Lowercase SHA-256 hex digest of the exact serialized HTTP request body bytes. */
|
|
472
|
+
peer_body_sha256: string;
|
|
473
|
+
/** HMAC-SHA256 hex signature over newline-separated domain cells-peer-request-v1, version 5, method POST, exact path and query, body hash, source, target, timestamp and nonce, with no trailing newline. */
|
|
474
|
+
peer_signature: string;
|
|
475
|
+
op: QueuePurgeOperation | (string & {});
|
|
476
|
+
}
|
|
477
|
+
export declare const PurgeQueueInput: S.Schema<PurgeQueueInput>;
|
|
478
|
+
export interface QueueMetrics {
|
|
479
|
+
backlog_count: number;
|
|
480
|
+
backlog_bytes: number;
|
|
481
|
+
/** Unix milliseconds; null when no message exists. */
|
|
482
|
+
oldest_message_timestamp?: number | null;
|
|
483
|
+
}
|
|
484
|
+
export declare const QueueMetrics: S.Schema<QueueMetrics>;
|
|
485
|
+
export interface PurgeQueueResult {
|
|
486
|
+
deleted: number;
|
|
487
|
+
leased: number;
|
|
488
|
+
metrics: QueueMetrics;
|
|
489
|
+
}
|
|
490
|
+
export declare const PurgeQueueResult: S.Schema<PurgeQueueResult>;
|
|
491
|
+
/** The actual HTTP JSON envelope is {"result": ...}; nested arrays or scalars are not top-level raw responses. */
|
|
492
|
+
export interface PurgeQueueOutput {
|
|
493
|
+
result: PurgeQueueResult;
|
|
494
|
+
}
|
|
495
|
+
export declare const PurgeQueueOutput: S.Schema<PurgeQueueOutput>;
|
|
496
|
+
export type KvPutOperation = "put";
|
|
497
|
+
export declare const KvPutOperation: any;
|
|
498
|
+
export type Bytes = Array<number>;
|
|
499
|
+
export declare const Bytes: S.Schema<Bytes>;
|
|
500
|
+
export interface PutKvInput {
|
|
501
|
+
/** Reserved-class cell scope derived by Celld, not a database, namespace or queue display name. */
|
|
502
|
+
scope: string;
|
|
503
|
+
/** Optional cell identity name; include the exact encoded query string in the peer signature. */
|
|
504
|
+
name?: string;
|
|
505
|
+
/** Peer protocol version; send the string 5. */
|
|
506
|
+
peer_version: string;
|
|
507
|
+
/** Source node name or operator identity, validated as a node name. */
|
|
508
|
+
peer_source: string;
|
|
509
|
+
/** Exact addressed node session identity, not the cell scope. */
|
|
510
|
+
peer_target: string;
|
|
511
|
+
/** Decimal Unix milliseconds as text; accepted within a 30000 ms clock window. */
|
|
512
|
+
peer_timestamp: string;
|
|
513
|
+
/** A fresh 16-byte nonce encoded as 32 hexadecimal characters; reuse is rejected. */
|
|
514
|
+
peer_nonce: string;
|
|
515
|
+
/** Lowercase SHA-256 hex digest of the exact serialized HTTP request body bytes. */
|
|
516
|
+
peer_body_sha256: string;
|
|
517
|
+
/** HMAC-SHA256 hex signature over newline-separated domain cells-peer-request-v1, version 5, method POST, exact path and query, body hash, source, target, timestamp and nonce, with no trailing newline. */
|
|
518
|
+
peer_signature: string;
|
|
519
|
+
op: KvPutOperation | (string & {});
|
|
520
|
+
key: string;
|
|
521
|
+
/** Defaults to bytes. */
|
|
522
|
+
tag?: string;
|
|
523
|
+
/** JSON-encoded metadata text, not an object. */
|
|
524
|
+
metadata?: string;
|
|
525
|
+
/** Absolute Unix expiration in seconds. */
|
|
526
|
+
expiration?: number;
|
|
527
|
+
/** Relative expiry in seconds. The wire key is expirationTtl, as used by the source handler. */
|
|
528
|
+
expiration_ttl?: number;
|
|
529
|
+
value: Bytes;
|
|
530
|
+
}
|
|
531
|
+
export declare const PutKvInput: S.Schema<PutKvInput>;
|
|
532
|
+
/** The actual HTTP JSON envelope is {"result": ...}; nested arrays or scalars are not top-level raw responses. */
|
|
533
|
+
export interface PutKvOutput {
|
|
534
|
+
result: OkResult;
|
|
535
|
+
}
|
|
536
|
+
export declare const PutKvOutput: S.Schema<PutKvOutput>;
|
|
537
|
+
export type PutKvBase64Operation = "put-base64";
|
|
538
|
+
export declare const PutKvBase64Operation: any;
|
|
539
|
+
export interface PutKvBase64Input {
|
|
540
|
+
/** Reserved-class cell scope derived by Celld, not a database, namespace or queue display name. */
|
|
541
|
+
scope: string;
|
|
542
|
+
/** Optional cell identity name; include the exact encoded query string in the peer signature. */
|
|
543
|
+
name?: string;
|
|
544
|
+
/** Peer protocol version; send the string 5. */
|
|
545
|
+
peer_version: string;
|
|
546
|
+
/** Source node name or operator identity, validated as a node name. */
|
|
547
|
+
peer_source: string;
|
|
548
|
+
/** Exact addressed node session identity, not the cell scope. */
|
|
549
|
+
peer_target: string;
|
|
550
|
+
/** Decimal Unix milliseconds as text; accepted within a 30000 ms clock window. */
|
|
551
|
+
peer_timestamp: string;
|
|
552
|
+
/** A fresh 16-byte nonce encoded as 32 hexadecimal characters; reuse is rejected. */
|
|
553
|
+
peer_nonce: string;
|
|
554
|
+
/** Lowercase SHA-256 hex digest of the exact serialized HTTP request body bytes. */
|
|
555
|
+
peer_body_sha256: string;
|
|
556
|
+
/** HMAC-SHA256 hex signature over newline-separated domain cells-peer-request-v1, version 5, method POST, exact path and query, body hash, source, target, timestamp and nonce, with no trailing newline. */
|
|
557
|
+
peer_signature: string;
|
|
558
|
+
op: PutKvBase64Operation | (string & {});
|
|
559
|
+
key: string;
|
|
560
|
+
/** Defaults to bytes. */
|
|
561
|
+
tag?: string;
|
|
562
|
+
/** JSON-encoded metadata text, not an object. */
|
|
563
|
+
metadata?: string;
|
|
564
|
+
/** Absolute Unix expiration in seconds. */
|
|
565
|
+
expiration?: number;
|
|
566
|
+
/** Relative expiry in seconds. The wire key is expirationTtl, as used by the source handler. */
|
|
567
|
+
expiration_ttl?: number;
|
|
568
|
+
value: string;
|
|
569
|
+
}
|
|
570
|
+
export declare const PutKvBase64Input: S.Schema<PutKvBase64Input>;
|
|
571
|
+
/** The actual HTTP JSON envelope is {"result": ...}; nested arrays or scalars are not top-level raw responses. */
|
|
572
|
+
export interface PutKvBase64Output {
|
|
573
|
+
result: OkResult;
|
|
574
|
+
}
|
|
575
|
+
export declare const PutKvBase64Output: S.Schema<PutKvBase64Output>;
|
|
576
|
+
export type RedriveQueueOperation = "redrive";
|
|
577
|
+
export declare const RedriveQueueOperation: any;
|
|
578
|
+
export interface RedriveQueueInput {
|
|
579
|
+
/** Reserved-class cell scope derived by Celld, not a database, namespace or queue display name. */
|
|
580
|
+
scope: string;
|
|
581
|
+
/** Optional cell identity name; include the exact encoded query string in the peer signature. */
|
|
582
|
+
name?: string;
|
|
583
|
+
/** Peer protocol version; send the string 5. */
|
|
584
|
+
peer_version: string;
|
|
585
|
+
/** Source node name or operator identity, validated as a node name. */
|
|
586
|
+
peer_source: string;
|
|
587
|
+
/** Exact addressed node session identity, not the cell scope. */
|
|
588
|
+
peer_target: string;
|
|
589
|
+
/** Decimal Unix milliseconds as text; accepted within a 30000 ms clock window. */
|
|
590
|
+
peer_timestamp: string;
|
|
591
|
+
/** A fresh 16-byte nonce encoded as 32 hexadecimal characters; reuse is rejected. */
|
|
592
|
+
peer_nonce: string;
|
|
593
|
+
/** Lowercase SHA-256 hex digest of the exact serialized HTTP request body bytes. */
|
|
594
|
+
peer_body_sha256: string;
|
|
595
|
+
/** HMAC-SHA256 hex signature over newline-separated domain cells-peer-request-v1, version 5, method POST, exact path and query, body hash, source, target, timestamp and nonce, with no trailing newline. */
|
|
596
|
+
peer_signature: string;
|
|
597
|
+
op: RedriveQueueOperation | (string & {});
|
|
598
|
+
/** Defaults to 100; valid values are 1 through 100. */
|
|
599
|
+
limit?: number;
|
|
600
|
+
}
|
|
601
|
+
export declare const RedriveQueueInput: S.Schema<RedriveQueueInput>;
|
|
602
|
+
export interface RedriveQueueResult {
|
|
603
|
+
redriven: number;
|
|
604
|
+
metrics: QueueMetrics;
|
|
605
|
+
}
|
|
606
|
+
export declare const RedriveQueueResult: S.Schema<RedriveQueueResult>;
|
|
607
|
+
/** The actual HTTP JSON envelope is {"result": ...}; nested arrays or scalars are not top-level raw responses. */
|
|
608
|
+
export interface RedriveQueueOutput {
|
|
609
|
+
result: RedriveQueueResult;
|
|
610
|
+
}
|
|
611
|
+
export declare const RedriveQueueOutput: S.Schema<RedriveQueueOutput>;
|
|
612
|
+
export type QueueResumeOperation = "resume";
|
|
613
|
+
export declare const QueueResumeOperation: any;
|
|
614
|
+
export interface ResumeQueueInput {
|
|
615
|
+
/** Reserved-class cell scope derived by Celld, not a database, namespace or queue display name. */
|
|
616
|
+
scope: string;
|
|
617
|
+
/** Optional cell identity name; include the exact encoded query string in the peer signature. */
|
|
618
|
+
name?: string;
|
|
619
|
+
/** Peer protocol version; send the string 5. */
|
|
620
|
+
peer_version: string;
|
|
621
|
+
/** Source node name or operator identity, validated as a node name. */
|
|
622
|
+
peer_source: string;
|
|
623
|
+
/** Exact addressed node session identity, not the cell scope. */
|
|
624
|
+
peer_target: string;
|
|
625
|
+
/** Decimal Unix milliseconds as text; accepted within a 30000 ms clock window. */
|
|
626
|
+
peer_timestamp: string;
|
|
627
|
+
/** A fresh 16-byte nonce encoded as 32 hexadecimal characters; reuse is rejected. */
|
|
628
|
+
peer_nonce: string;
|
|
629
|
+
/** Lowercase SHA-256 hex digest of the exact serialized HTTP request body bytes. */
|
|
630
|
+
peer_body_sha256: string;
|
|
631
|
+
/** HMAC-SHA256 hex signature over newline-separated domain cells-peer-request-v1, version 5, method POST, exact path and query, body hash, source, target, timestamp and nonce, with no trailing newline. */
|
|
632
|
+
peer_signature: string;
|
|
633
|
+
op: QueueResumeOperation | (string & {});
|
|
634
|
+
}
|
|
635
|
+
export declare const ResumeQueueInput: S.Schema<ResumeQueueInput>;
|
|
636
|
+
/** The actual HTTP JSON envelope is {"result": ...}; nested arrays or scalars are not top-level raw responses. */
|
|
637
|
+
export interface ResumeQueueOutput {
|
|
638
|
+
result: QueuePausedResult;
|
|
639
|
+
}
|
|
640
|
+
export declare const ResumeQueueOutput: S.Schema<ResumeQueueOutput>;
|
|
641
|
+
export type DeleteKvError = PeerIncompatibleVersion | PeerWrongTarget | PeerReplayRejected | CelldOpError;
|
|
642
|
+
/** Delete a list of keys from a reserved KV namespace. */
|
|
643
|
+
export declare const deleteKv: API.OperationMethod<DeleteKvInput, DeleteKvOutput, DeleteKvError, CelldOpContext>;
|
|
644
|
+
export type ExecD1Error = D1ExecutionError | PeerIncompatibleVersion | PeerWrongTarget | PeerReplayRejected | CelldOpError;
|
|
645
|
+
/** Execute SQL against a reserved D1 cell with the JSON body {"exec":{"sql":...,"rows":...}}. */
|
|
646
|
+
export declare const execD1: API.OperationMethod<ExecD1Input, ExecD1Output, ExecD1Error, CelldOpContext>;
|
|
647
|
+
export type ExecuteD1StatementsError = D1ExecutionError | PeerIncompatibleVersion | PeerWrongTarget | PeerReplayRejected | CelldOpError;
|
|
648
|
+
/** Run prepared statements sequentially, not as an atomic batch. The body key is statements; each params entry retains its native JSON type. */
|
|
649
|
+
export declare const executeD1Statements: API.OperationMethod<ExecuteD1StatementsInput, ExecuteD1StatementsOutput, ExecuteD1StatementsError, CelldOpContext>;
|
|
650
|
+
export type GetKvError = PeerIncompatibleVersion | PeerWrongTarget | PeerReplayRejected | CelldOpError;
|
|
651
|
+
/** Read one key from a reserved KV namespace. A missing key returns result.found=false. */
|
|
652
|
+
export declare const getKv: API.OperationMethod<GetKvInput, GetKvOutput, GetKvError, CelldOpContext>;
|
|
653
|
+
export type GetKvInfoError = PeerIncompatibleVersion | PeerWrongTarget | PeerReplayRejected | CelldOpError;
|
|
654
|
+
/** Return live key count, live bytes and total stored key count. */
|
|
655
|
+
export declare const getKvInfo: API.OperationMethod<GetKvInfoInput, GetKvInfoOutput, GetKvInfoError, CelldOpContext>;
|
|
656
|
+
export type GetQueueInfoError = PeerIncompatibleVersion | PeerWrongTarget | PeerReplayRejected | CelldOpError;
|
|
657
|
+
/** Reserved Queue operator request with JSON op=info. This is not the private Queue RPC or settlement endpoint. */
|
|
658
|
+
export declare const getQueueInfo: API.OperationMethod<GetQueueInfoInput, GetQueueInfoOutput, GetQueueInfoError, CelldOpContext>;
|
|
659
|
+
export type ListKvError = PeerIncompatibleVersion | PeerWrongTarget | PeerReplayRejected | CelldOpError;
|
|
660
|
+
/** List keys in a reserved KV namespace. Metadata remains JSON text and expiration is in milliseconds. */
|
|
661
|
+
export declare const listKv: API.OperationMethod<ListKvInput, ListKvOutput, ListKvError, CelldOpContext>;
|
|
662
|
+
export type MigrateD1Error = D1ExecutionError | PeerIncompatibleVersion | PeerWrongTarget | PeerReplayRejected | CelldOpError;
|
|
663
|
+
/** Apply a migration atomically with its bookkeeping insert. The result is the SQL engine native JSON value; no RPC action wrapper is sent. */
|
|
664
|
+
export declare const migrateD1: API.OperationMethod<MigrateD1Input, MigrateD1Output, MigrateD1Error, CelldOpContext>;
|
|
665
|
+
export type PauseQueueError = PeerIncompatibleVersion | PeerWrongTarget | PeerReplayRejected | CelldOpError;
|
|
666
|
+
/** Reserved Queue operator request with JSON op=pause. This is not the private Queue RPC or settlement endpoint. */
|
|
667
|
+
export declare const pauseQueue: API.OperationMethod<PauseQueueInput, PauseQueueOutput, PauseQueueError, CelldOpContext>;
|
|
668
|
+
export type PeekQueueError = PeerIncompatibleVersion | PeerWrongTarget | PeerReplayRejected | CelldOpError;
|
|
669
|
+
/** Reserved Queue operator request with JSON op=peek. This is not the private Queue RPC or settlement endpoint. */
|
|
670
|
+
export declare const peekQueue: API.OperationMethod<PeekQueueInput, PeekQueueOutput, PeekQueueError, CelldOpContext>;
|
|
671
|
+
export type PurgeQueueError = PeerIncompatibleVersion | PeerWrongTarget | PeerReplayRejected | CelldOpError;
|
|
672
|
+
/** Reserved Queue operator request with JSON op=purge. This is not the private Queue RPC or settlement endpoint. */
|
|
673
|
+
export declare const purgeQueue: API.OperationMethod<PurgeQueueInput, PurgeQueueOutput, PurgeQueueError, CelldOpContext>;
|
|
674
|
+
export type PutKvError = PeerIncompatibleVersion | PeerWrongTarget | PeerReplayRejected | CelldOpError;
|
|
675
|
+
/** Write an inline JSON byte array. Expiration is resolved by the cell clock. */
|
|
676
|
+
export declare const putKv: API.OperationMethod<PutKvInput, PutKvOutput, PutKvError, CelldOpContext>;
|
|
677
|
+
export type PutKvBase64Error = PeerIncompatibleVersion | PeerWrongTarget | PeerReplayRejected | CelldOpError;
|
|
678
|
+
/** Write base64-encoded bytes using the distinct put-base64 wire operation. */
|
|
679
|
+
export declare const putKvBase64: API.OperationMethod<PutKvBase64Input, PutKvBase64Output, PutKvBase64Error, CelldOpContext>;
|
|
680
|
+
export type RedriveQueueError = PeerIncompatibleVersion | PeerWrongTarget | PeerReplayRejected | CelldOpError;
|
|
681
|
+
/** Reserved Queue operator request with JSON op=redrive. This is not the private Queue RPC or settlement endpoint. */
|
|
682
|
+
export declare const redriveQueue: API.OperationMethod<RedriveQueueInput, RedriveQueueOutput, RedriveQueueError, CelldOpContext>;
|
|
683
|
+
export type ResumeQueueError = PeerIncompatibleVersion | PeerWrongTarget | PeerReplayRejected | CelldOpError;
|
|
684
|
+
/** Reserved Queue operator request with JSON op=resume. This is not the private Queue RPC or settlement endpoint. */
|
|
685
|
+
export declare const resumeQueue: API.OperationMethod<ResumeQueueInput, ResumeQueueOutput, ResumeQueueError, CelldOpContext>;
|
|
686
|
+
//# sourceMappingURL=runtime.d.ts.map
|