@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 @@
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EJ,MAAM,MAAM,gBAAgB,GACxB,uBAAuB,GACvB,eAAe,GACf,kBAAkB,GAClB,YAAY,CAAC;AACjB,+EAA+E;AAC/E,eAAO,MAAM,WAAW,EAAE,GAAG,CAAC,eAAe,CAC3C,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,CAMb,CAAC;AAEJ,MAAM,MAAM,iBAAiB,GACzB,uBAAuB,GACvB,eAAe,GACf,kBAAkB,GAClB,YAAY,CAAC;AACjB,sHAAsH;AACtH,eAAO,MAAM,YAAY,EAAE,GAAG,CAAC,eAAe,CAC5C,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,CAMb,CAAC;AAEJ,MAAM,MAAM,gBAAgB,GACxB,uBAAuB,GACvB,eAAe,GACf,kBAAkB,GAClB,YAAY,CAAC;AACjB,qHAAqH;AACrH,eAAO,MAAM,WAAW,EAAE,GAAG,CAAC,eAAe,CAC3C,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,CAMb,CAAC"}
|
|
@@ -0,0 +1,553 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from the Celld v0.6.0 source-derived Smithy specifications in specs/. Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as C from "@distilled.cloud/core/category";
|
|
5
|
+
import * as T from "../traits.js";
|
|
6
|
+
import { CelldProtocol, } from "../protocol.js";
|
|
7
|
+
/** 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. */
|
|
8
|
+
export class D1ExecutionError extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
9
|
+
/*@__PURE__*/ S.TaggedError()("D1ExecutionError", {
|
|
10
|
+
message: S.String,
|
|
11
|
+
}).pipe(C.withBadRequestError), [{ status: 400, message: { matches: "^D1_(?:EXEC_)?ERROR:" } }]) {
|
|
12
|
+
}
|
|
13
|
+
/** peer protocol version is incompatible */
|
|
14
|
+
export class PeerIncompatibleVersion extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
15
|
+
/*@__PURE__*/ S.TaggedError()("PeerIncompatibleVersion", {
|
|
16
|
+
message: S.String,
|
|
17
|
+
}), [{ status: 426 }]) {
|
|
18
|
+
}
|
|
19
|
+
/** peer request replay rejected */
|
|
20
|
+
export class PeerReplayRejected extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
21
|
+
/*@__PURE__*/ S.TaggedError()("PeerReplayRejected", {
|
|
22
|
+
message: S.String,
|
|
23
|
+
}).pipe(C.withConflictError), [{ status: 409, message: "peer request replay rejected" }]) {
|
|
24
|
+
}
|
|
25
|
+
/** peer request targets a different node session */
|
|
26
|
+
export class PeerWrongTarget extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
27
|
+
/*@__PURE__*/ S.TaggedError()("PeerWrongTarget", {
|
|
28
|
+
message: S.String,
|
|
29
|
+
}).pipe(C.withConflictError), [{ status: 409, message: "peer request targets a different node session" }]) {
|
|
30
|
+
}
|
|
31
|
+
export const KvDeleteOperation = S.String;
|
|
32
|
+
export const Strings = /*@__PURE__*/ S.Array(S.String);
|
|
33
|
+
export const DeleteKvInput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
34
|
+
scope: S.String.pipe(T.Label(), T.LabelEncoding({ preserve: ":$" })),
|
|
35
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
36
|
+
peer_version: S.String.pipe(T.Header("x-cells-peer-version")),
|
|
37
|
+
peer_source: S.String.pipe(T.Header("x-cells-peer-source")),
|
|
38
|
+
peer_target: S.String.pipe(T.Header("x-cells-peer-target")),
|
|
39
|
+
peer_timestamp: S.String.pipe(T.Header("x-cells-peer-timestamp")),
|
|
40
|
+
peer_nonce: S.String.pipe(T.Header("x-cells-peer-nonce")),
|
|
41
|
+
peer_body_sha256: S.String.pipe(T.Header("x-cells-peer-body-sha256")),
|
|
42
|
+
peer_signature: S.String.pipe(T.Header("x-cells-peer-signature")),
|
|
43
|
+
op: KvDeleteOperation,
|
|
44
|
+
keys: Strings,
|
|
45
|
+
}).pipe(T.Http({ method: "POST", uri: "/runtime/{scope}", code: 200 }))).annotate({ identifier: "DeleteKvInput" });
|
|
46
|
+
export const OkResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
47
|
+
ok: S.Boolean,
|
|
48
|
+
})).annotate({ identifier: "OkResult" });
|
|
49
|
+
export const DeleteKvOutput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
50
|
+
result: OkResult,
|
|
51
|
+
})).annotate({ identifier: "DeleteKvOutput" });
|
|
52
|
+
export const D1ExecPayload = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
53
|
+
sql: S.String,
|
|
54
|
+
rows: S.optional(S.Boolean),
|
|
55
|
+
})).annotate({ identifier: "D1ExecPayload" });
|
|
56
|
+
export const ExecD1Input = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
57
|
+
scope: S.String.pipe(T.Label(), T.LabelEncoding({ preserve: ":$" })),
|
|
58
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
59
|
+
peer_version: S.String.pipe(T.Header("x-cells-peer-version")),
|
|
60
|
+
peer_source: S.String.pipe(T.Header("x-cells-peer-source")),
|
|
61
|
+
peer_target: S.String.pipe(T.Header("x-cells-peer-target")),
|
|
62
|
+
peer_timestamp: S.String.pipe(T.Header("x-cells-peer-timestamp")),
|
|
63
|
+
peer_nonce: S.String.pipe(T.Header("x-cells-peer-nonce")),
|
|
64
|
+
peer_body_sha256: S.String.pipe(T.Header("x-cells-peer-body-sha256")),
|
|
65
|
+
peer_signature: S.String.pipe(T.Header("x-cells-peer-signature")),
|
|
66
|
+
exec: D1ExecPayload,
|
|
67
|
+
}).pipe(T.Http({ method: "POST", uri: "/runtime/{scope}", code: 200 }))).annotate({ identifier: "ExecD1Input" });
|
|
68
|
+
export const JsonValues = /*@__PURE__*/ S.Array(S.Unknown);
|
|
69
|
+
export const Rows = /*@__PURE__*/ S.Array(JsonValues);
|
|
70
|
+
export const D1ResultSet = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
71
|
+
columns: S.optional(Strings),
|
|
72
|
+
rows: S.optional(Rows),
|
|
73
|
+
meta: S.optional(S.Unknown),
|
|
74
|
+
})).annotate({ identifier: "D1ResultSet" });
|
|
75
|
+
export const D1ResultSets = /*@__PURE__*/ S.Array(D1ResultSet);
|
|
76
|
+
export const ExecD1Result = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
77
|
+
count: S.Number,
|
|
78
|
+
duration: S.Number,
|
|
79
|
+
results: S.optional(D1ResultSets),
|
|
80
|
+
})).annotate({ identifier: "ExecD1Result" });
|
|
81
|
+
export const ExecD1Output = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
82
|
+
result: ExecD1Result,
|
|
83
|
+
})).annotate({ identifier: "ExecD1Output" });
|
|
84
|
+
export const D1Statement = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
85
|
+
sql: S.String,
|
|
86
|
+
params: S.optional(JsonValues),
|
|
87
|
+
first: S.optional(S.Boolean),
|
|
88
|
+
})).annotate({ identifier: "D1Statement" });
|
|
89
|
+
export const D1StatementList = /*@__PURE__*/ S.Array(D1Statement);
|
|
90
|
+
export const ExecuteD1StatementsInput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
91
|
+
scope: S.String.pipe(T.Label(), T.LabelEncoding({ preserve: ":$" })),
|
|
92
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
93
|
+
peer_version: S.String.pipe(T.Header("x-cells-peer-version")),
|
|
94
|
+
peer_source: S.String.pipe(T.Header("x-cells-peer-source")),
|
|
95
|
+
peer_target: S.String.pipe(T.Header("x-cells-peer-target")),
|
|
96
|
+
peer_timestamp: S.String.pipe(T.Header("x-cells-peer-timestamp")),
|
|
97
|
+
peer_nonce: S.String.pipe(T.Header("x-cells-peer-nonce")),
|
|
98
|
+
peer_body_sha256: S.String.pipe(T.Header("x-cells-peer-body-sha256")),
|
|
99
|
+
peer_signature: S.String.pipe(T.Header("x-cells-peer-signature")),
|
|
100
|
+
statements: D1StatementList,
|
|
101
|
+
}).pipe(T.Http({ method: "POST", uri: "/runtime/{scope}", code: 200 }))).annotate({
|
|
102
|
+
identifier: "ExecuteD1StatementsInput",
|
|
103
|
+
});
|
|
104
|
+
export const ExecuteD1StatementsOutput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
105
|
+
result: D1ResultSets,
|
|
106
|
+
})).annotate({
|
|
107
|
+
identifier: "ExecuteD1StatementsOutput",
|
|
108
|
+
});
|
|
109
|
+
export const KvGetOperation = S.String;
|
|
110
|
+
export const GetKvInput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
111
|
+
scope: S.String.pipe(T.Label(), T.LabelEncoding({ preserve: ":$" })),
|
|
112
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
113
|
+
peer_version: S.String.pipe(T.Header("x-cells-peer-version")),
|
|
114
|
+
peer_source: S.String.pipe(T.Header("x-cells-peer-source")),
|
|
115
|
+
peer_target: S.String.pipe(T.Header("x-cells-peer-target")),
|
|
116
|
+
peer_timestamp: S.String.pipe(T.Header("x-cells-peer-timestamp")),
|
|
117
|
+
peer_nonce: S.String.pipe(T.Header("x-cells-peer-nonce")),
|
|
118
|
+
peer_body_sha256: S.String.pipe(T.Header("x-cells-peer-body-sha256")),
|
|
119
|
+
peer_signature: S.String.pipe(T.Header("x-cells-peer-signature")),
|
|
120
|
+
op: KvGetOperation,
|
|
121
|
+
key: S.String,
|
|
122
|
+
}).pipe(T.Http({ method: "POST", uri: "/runtime/{scope}", code: 200 }))).annotate({ identifier: "GetKvInput" });
|
|
123
|
+
export const GetKvResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
124
|
+
found: S.Boolean,
|
|
125
|
+
value: S.optional(S.Unknown),
|
|
126
|
+
value_encoding: S.optional(S.String.pipe(T.Body("valueEncoding"))),
|
|
127
|
+
tag: S.optional(S.String),
|
|
128
|
+
metadata: S.optional(S.NullOr(S.String)),
|
|
129
|
+
expiration: S.optional(S.NullOr(S.Number)),
|
|
130
|
+
})).annotate({ identifier: "GetKvResult" });
|
|
131
|
+
export const GetKvOutput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
132
|
+
result: GetKvResult,
|
|
133
|
+
})).annotate({ identifier: "GetKvOutput" });
|
|
134
|
+
export const GetKvInfoOperation = S.String;
|
|
135
|
+
export const GetKvInfoInput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
136
|
+
scope: S.String.pipe(T.Label(), T.LabelEncoding({ preserve: ":$" })),
|
|
137
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
138
|
+
peer_version: S.String.pipe(T.Header("x-cells-peer-version")),
|
|
139
|
+
peer_source: S.String.pipe(T.Header("x-cells-peer-source")),
|
|
140
|
+
peer_target: S.String.pipe(T.Header("x-cells-peer-target")),
|
|
141
|
+
peer_timestamp: S.String.pipe(T.Header("x-cells-peer-timestamp")),
|
|
142
|
+
peer_nonce: S.String.pipe(T.Header("x-cells-peer-nonce")),
|
|
143
|
+
peer_body_sha256: S.String.pipe(T.Header("x-cells-peer-body-sha256")),
|
|
144
|
+
peer_signature: S.String.pipe(T.Header("x-cells-peer-signature")),
|
|
145
|
+
op: GetKvInfoOperation,
|
|
146
|
+
}).pipe(T.Http({ method: "POST", uri: "/runtime/{scope}", code: 200 }))).annotate({ identifier: "GetKvInfoInput" });
|
|
147
|
+
export const GetKvInfoResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
148
|
+
live: S.Number,
|
|
149
|
+
bytes: S.Number,
|
|
150
|
+
stored: S.Number,
|
|
151
|
+
})).annotate({
|
|
152
|
+
identifier: "GetKvInfoResult",
|
|
153
|
+
});
|
|
154
|
+
export const GetKvInfoOutput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
155
|
+
result: GetKvInfoResult,
|
|
156
|
+
})).annotate({
|
|
157
|
+
identifier: "GetKvInfoOutput",
|
|
158
|
+
});
|
|
159
|
+
export const GetQueueInfoOperation = S.String;
|
|
160
|
+
export const GetQueueInfoInput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
161
|
+
scope: S.String.pipe(T.Label(), T.LabelEncoding({ preserve: ":$" })),
|
|
162
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
163
|
+
peer_version: S.String.pipe(T.Header("x-cells-peer-version")),
|
|
164
|
+
peer_source: S.String.pipe(T.Header("x-cells-peer-source")),
|
|
165
|
+
peer_target: S.String.pipe(T.Header("x-cells-peer-target")),
|
|
166
|
+
peer_timestamp: S.String.pipe(T.Header("x-cells-peer-timestamp")),
|
|
167
|
+
peer_nonce: S.String.pipe(T.Header("x-cells-peer-nonce")),
|
|
168
|
+
peer_body_sha256: S.String.pipe(T.Header("x-cells-peer-body-sha256")),
|
|
169
|
+
peer_signature: S.String.pipe(T.Header("x-cells-peer-signature")),
|
|
170
|
+
op: GetQueueInfoOperation,
|
|
171
|
+
}).pipe(T.Http({ method: "POST", uri: "/runtime/{scope}", code: 200 }))).annotate({
|
|
172
|
+
identifier: "GetQueueInfoInput",
|
|
173
|
+
});
|
|
174
|
+
export const GetQueueInfoResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
175
|
+
backlog_count: S.Number.pipe(T.Body("backlogCount")),
|
|
176
|
+
backlog_bytes: S.Number.pipe(T.Body("backlogBytes")),
|
|
177
|
+
oldest_message_timestamp: S.optional(S.NullOr(S.Number).pipe(T.Body("oldestMessageTimestamp"))),
|
|
178
|
+
stored: S.Number,
|
|
179
|
+
paused: S.Boolean,
|
|
180
|
+
})).annotate({
|
|
181
|
+
identifier: "GetQueueInfoResult",
|
|
182
|
+
});
|
|
183
|
+
export const GetQueueInfoOutput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
184
|
+
result: GetQueueInfoResult,
|
|
185
|
+
})).annotate({
|
|
186
|
+
identifier: "GetQueueInfoOutput",
|
|
187
|
+
});
|
|
188
|
+
export const KvListOperation = S.String;
|
|
189
|
+
export const ListKvInput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
190
|
+
scope: S.String.pipe(T.Label(), T.LabelEncoding({ preserve: ":$" })),
|
|
191
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
192
|
+
peer_version: S.String.pipe(T.Header("x-cells-peer-version")),
|
|
193
|
+
peer_source: S.String.pipe(T.Header("x-cells-peer-source")),
|
|
194
|
+
peer_target: S.String.pipe(T.Header("x-cells-peer-target")),
|
|
195
|
+
peer_timestamp: S.String.pipe(T.Header("x-cells-peer-timestamp")),
|
|
196
|
+
peer_nonce: S.String.pipe(T.Header("x-cells-peer-nonce")),
|
|
197
|
+
peer_body_sha256: S.String.pipe(T.Header("x-cells-peer-body-sha256")),
|
|
198
|
+
peer_signature: S.String.pipe(T.Header("x-cells-peer-signature")),
|
|
199
|
+
op: KvListOperation,
|
|
200
|
+
prefix: S.optional(S.String),
|
|
201
|
+
limit: S.Number,
|
|
202
|
+
after: S.optional(S.String),
|
|
203
|
+
}).pipe(T.Http({ method: "POST", uri: "/runtime/{scope}", code: 200 }))).annotate({ identifier: "ListKvInput" });
|
|
204
|
+
export const KvKey = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
205
|
+
name: S.String,
|
|
206
|
+
metadata: S.optional(S.NullOr(S.String)),
|
|
207
|
+
expiration: S.optional(S.NullOr(S.Number)),
|
|
208
|
+
})).annotate({ identifier: "KvKey" });
|
|
209
|
+
export const KvKeys = /*@__PURE__*/ S.Array(KvKey);
|
|
210
|
+
export const ListKvResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
211
|
+
keys: KvKeys,
|
|
212
|
+
complete: S.Boolean,
|
|
213
|
+
})).annotate({ identifier: "ListKvResult" });
|
|
214
|
+
export const ListKvOutput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
215
|
+
result: ListKvResult,
|
|
216
|
+
})).annotate({ identifier: "ListKvOutput" });
|
|
217
|
+
export const D1Migration = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
218
|
+
name: S.String,
|
|
219
|
+
sql: S.String,
|
|
220
|
+
table: S.optional(S.String),
|
|
221
|
+
})).annotate({ identifier: "D1Migration" });
|
|
222
|
+
export const MigrateD1Input = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
223
|
+
scope: S.String.pipe(T.Label(), T.LabelEncoding({ preserve: ":$" })),
|
|
224
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
225
|
+
peer_version: S.String.pipe(T.Header("x-cells-peer-version")),
|
|
226
|
+
peer_source: S.String.pipe(T.Header("x-cells-peer-source")),
|
|
227
|
+
peer_target: S.String.pipe(T.Header("x-cells-peer-target")),
|
|
228
|
+
peer_timestamp: S.String.pipe(T.Header("x-cells-peer-timestamp")),
|
|
229
|
+
peer_nonce: S.String.pipe(T.Header("x-cells-peer-nonce")),
|
|
230
|
+
peer_body_sha256: S.String.pipe(T.Header("x-cells-peer-body-sha256")),
|
|
231
|
+
peer_signature: S.String.pipe(T.Header("x-cells-peer-signature")),
|
|
232
|
+
migrate: D1Migration,
|
|
233
|
+
}).pipe(T.Http({ method: "POST", uri: "/runtime/{scope}", code: 200 }))).annotate({ identifier: "MigrateD1Input" });
|
|
234
|
+
export const MigrateD1Output = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
235
|
+
result: S.Unknown,
|
|
236
|
+
})).annotate({
|
|
237
|
+
identifier: "MigrateD1Output",
|
|
238
|
+
});
|
|
239
|
+
export const QueuePauseOperation = S.String;
|
|
240
|
+
export const PauseQueueInput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
241
|
+
scope: S.String.pipe(T.Label(), T.LabelEncoding({ preserve: ":$" })),
|
|
242
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
243
|
+
peer_version: S.String.pipe(T.Header("x-cells-peer-version")),
|
|
244
|
+
peer_source: S.String.pipe(T.Header("x-cells-peer-source")),
|
|
245
|
+
peer_target: S.String.pipe(T.Header("x-cells-peer-target")),
|
|
246
|
+
peer_timestamp: S.String.pipe(T.Header("x-cells-peer-timestamp")),
|
|
247
|
+
peer_nonce: S.String.pipe(T.Header("x-cells-peer-nonce")),
|
|
248
|
+
peer_body_sha256: S.String.pipe(T.Header("x-cells-peer-body-sha256")),
|
|
249
|
+
peer_signature: S.String.pipe(T.Header("x-cells-peer-signature")),
|
|
250
|
+
op: QueuePauseOperation,
|
|
251
|
+
}).pipe(T.Http({ method: "POST", uri: "/runtime/{scope}", code: 200 }))).annotate({
|
|
252
|
+
identifier: "PauseQueueInput",
|
|
253
|
+
});
|
|
254
|
+
export const QueuePausedResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
255
|
+
backlog_count: S.Number.pipe(T.Body("backlogCount")),
|
|
256
|
+
backlog_bytes: S.Number.pipe(T.Body("backlogBytes")),
|
|
257
|
+
oldest_message_timestamp: S.optional(S.NullOr(S.Number).pipe(T.Body("oldestMessageTimestamp"))),
|
|
258
|
+
paused: S.Boolean,
|
|
259
|
+
})).annotate({
|
|
260
|
+
identifier: "QueuePausedResult",
|
|
261
|
+
});
|
|
262
|
+
export const PauseQueueOutput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
263
|
+
result: QueuePausedResult,
|
|
264
|
+
})).annotate({
|
|
265
|
+
identifier: "PauseQueueOutput",
|
|
266
|
+
});
|
|
267
|
+
export const PeekQueueOperation = S.String;
|
|
268
|
+
export const PeekQueueInput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
269
|
+
scope: S.String.pipe(T.Label(), T.LabelEncoding({ preserve: ":$" })),
|
|
270
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
271
|
+
peer_version: S.String.pipe(T.Header("x-cells-peer-version")),
|
|
272
|
+
peer_source: S.String.pipe(T.Header("x-cells-peer-source")),
|
|
273
|
+
peer_target: S.String.pipe(T.Header("x-cells-peer-target")),
|
|
274
|
+
peer_timestamp: S.String.pipe(T.Header("x-cells-peer-timestamp")),
|
|
275
|
+
peer_nonce: S.String.pipe(T.Header("x-cells-peer-nonce")),
|
|
276
|
+
peer_body_sha256: S.String.pipe(T.Header("x-cells-peer-body-sha256")),
|
|
277
|
+
peer_signature: S.String.pipe(T.Header("x-cells-peer-signature")),
|
|
278
|
+
op: PeekQueueOperation,
|
|
279
|
+
limit: S.optional(S.Number),
|
|
280
|
+
}).pipe(T.Http({ method: "POST", uri: "/runtime/{scope}", code: 200 }))).annotate({ identifier: "PeekQueueInput" });
|
|
281
|
+
export const QueueMessage = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
282
|
+
id: S.String,
|
|
283
|
+
body_base64: S.String.pipe(T.Body("bodyBase64")),
|
|
284
|
+
content_type: S.String.pipe(T.Body("contentType")),
|
|
285
|
+
size: S.Number,
|
|
286
|
+
enqueued_at: S.Number.pipe(T.Body("enqueuedAt")),
|
|
287
|
+
visible_at: S.Number.pipe(T.Body("visibleAt")),
|
|
288
|
+
attempts: S.Number,
|
|
289
|
+
state: S.String,
|
|
290
|
+
leased_until: S.optional(S.NullOr(S.Number).pipe(T.Body("leasedUntil"))),
|
|
291
|
+
transfer_target: S.optional(S.NullOr(S.String).pipe(T.Body("transferTarget"))),
|
|
292
|
+
dead_letter_source: S.optional(S.NullOr(S.String).pipe(T.Body("deadLetterSource"))),
|
|
293
|
+
})).annotate({ identifier: "QueueMessage" });
|
|
294
|
+
export const QueueMessages = /*@__PURE__*/ S.Array(QueueMessage);
|
|
295
|
+
export const PeekQueueResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
296
|
+
messages: QueueMessages,
|
|
297
|
+
})).annotate({
|
|
298
|
+
identifier: "PeekQueueResult",
|
|
299
|
+
});
|
|
300
|
+
export const PeekQueueOutput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
301
|
+
result: PeekQueueResult,
|
|
302
|
+
})).annotate({
|
|
303
|
+
identifier: "PeekQueueOutput",
|
|
304
|
+
});
|
|
305
|
+
export const QueuePurgeOperation = S.String;
|
|
306
|
+
export const PurgeQueueInput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
307
|
+
scope: S.String.pipe(T.Label(), T.LabelEncoding({ preserve: ":$" })),
|
|
308
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
309
|
+
peer_version: S.String.pipe(T.Header("x-cells-peer-version")),
|
|
310
|
+
peer_source: S.String.pipe(T.Header("x-cells-peer-source")),
|
|
311
|
+
peer_target: S.String.pipe(T.Header("x-cells-peer-target")),
|
|
312
|
+
peer_timestamp: S.String.pipe(T.Header("x-cells-peer-timestamp")),
|
|
313
|
+
peer_nonce: S.String.pipe(T.Header("x-cells-peer-nonce")),
|
|
314
|
+
peer_body_sha256: S.String.pipe(T.Header("x-cells-peer-body-sha256")),
|
|
315
|
+
peer_signature: S.String.pipe(T.Header("x-cells-peer-signature")),
|
|
316
|
+
op: QueuePurgeOperation,
|
|
317
|
+
}).pipe(T.Http({ method: "POST", uri: "/runtime/{scope}", code: 200 }))).annotate({
|
|
318
|
+
identifier: "PurgeQueueInput",
|
|
319
|
+
});
|
|
320
|
+
export const QueueMetrics = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
321
|
+
backlog_count: S.Number.pipe(T.Body("backlogCount")),
|
|
322
|
+
backlog_bytes: S.Number.pipe(T.Body("backlogBytes")),
|
|
323
|
+
oldest_message_timestamp: S.optional(S.NullOr(S.Number).pipe(T.Body("oldestMessageTimestamp"))),
|
|
324
|
+
})).annotate({ identifier: "QueueMetrics" });
|
|
325
|
+
export const PurgeQueueResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
326
|
+
deleted: S.Number,
|
|
327
|
+
leased: S.Number,
|
|
328
|
+
metrics: QueueMetrics,
|
|
329
|
+
})).annotate({
|
|
330
|
+
identifier: "PurgeQueueResult",
|
|
331
|
+
});
|
|
332
|
+
export const PurgeQueueOutput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
333
|
+
result: PurgeQueueResult,
|
|
334
|
+
})).annotate({
|
|
335
|
+
identifier: "PurgeQueueOutput",
|
|
336
|
+
});
|
|
337
|
+
export const KvPutOperation = S.String;
|
|
338
|
+
export const Bytes = /*@__PURE__*/ S.Array(S.Number);
|
|
339
|
+
export const PutKvInput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
340
|
+
scope: S.String.pipe(T.Label(), T.LabelEncoding({ preserve: ":$" })),
|
|
341
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
342
|
+
peer_version: S.String.pipe(T.Header("x-cells-peer-version")),
|
|
343
|
+
peer_source: S.String.pipe(T.Header("x-cells-peer-source")),
|
|
344
|
+
peer_target: S.String.pipe(T.Header("x-cells-peer-target")),
|
|
345
|
+
peer_timestamp: S.String.pipe(T.Header("x-cells-peer-timestamp")),
|
|
346
|
+
peer_nonce: S.String.pipe(T.Header("x-cells-peer-nonce")),
|
|
347
|
+
peer_body_sha256: S.String.pipe(T.Header("x-cells-peer-body-sha256")),
|
|
348
|
+
peer_signature: S.String.pipe(T.Header("x-cells-peer-signature")),
|
|
349
|
+
op: KvPutOperation,
|
|
350
|
+
key: S.String,
|
|
351
|
+
tag: S.optional(S.String),
|
|
352
|
+
metadata: S.optional(S.String),
|
|
353
|
+
expiration: S.optional(S.Number),
|
|
354
|
+
expiration_ttl: S.optional(S.Number.pipe(T.Body("expirationTtl"))),
|
|
355
|
+
value: Bytes,
|
|
356
|
+
}).pipe(T.Http({ method: "POST", uri: "/runtime/{scope}", code: 200 }))).annotate({ identifier: "PutKvInput" });
|
|
357
|
+
export const PutKvOutput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
358
|
+
result: OkResult,
|
|
359
|
+
})).annotate({ identifier: "PutKvOutput" });
|
|
360
|
+
export const PutKvBase64Operation = S.String;
|
|
361
|
+
export const PutKvBase64Input = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
362
|
+
scope: S.String.pipe(T.Label(), T.LabelEncoding({ preserve: ":$" })),
|
|
363
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
364
|
+
peer_version: S.String.pipe(T.Header("x-cells-peer-version")),
|
|
365
|
+
peer_source: S.String.pipe(T.Header("x-cells-peer-source")),
|
|
366
|
+
peer_target: S.String.pipe(T.Header("x-cells-peer-target")),
|
|
367
|
+
peer_timestamp: S.String.pipe(T.Header("x-cells-peer-timestamp")),
|
|
368
|
+
peer_nonce: S.String.pipe(T.Header("x-cells-peer-nonce")),
|
|
369
|
+
peer_body_sha256: S.String.pipe(T.Header("x-cells-peer-body-sha256")),
|
|
370
|
+
peer_signature: S.String.pipe(T.Header("x-cells-peer-signature")),
|
|
371
|
+
op: PutKvBase64Operation,
|
|
372
|
+
key: S.String,
|
|
373
|
+
tag: S.optional(S.String),
|
|
374
|
+
metadata: S.optional(S.String),
|
|
375
|
+
expiration: S.optional(S.Number),
|
|
376
|
+
expiration_ttl: S.optional(S.Number.pipe(T.Body("expirationTtl"))),
|
|
377
|
+
value: S.String,
|
|
378
|
+
}).pipe(T.Http({ method: "POST", uri: "/runtime/{scope}", code: 200 }))).annotate({
|
|
379
|
+
identifier: "PutKvBase64Input",
|
|
380
|
+
});
|
|
381
|
+
export const PutKvBase64Output = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
382
|
+
result: OkResult,
|
|
383
|
+
})).annotate({
|
|
384
|
+
identifier: "PutKvBase64Output",
|
|
385
|
+
});
|
|
386
|
+
export const RedriveQueueOperation = S.String;
|
|
387
|
+
export const RedriveQueueInput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
388
|
+
scope: S.String.pipe(T.Label(), T.LabelEncoding({ preserve: ":$" })),
|
|
389
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
390
|
+
peer_version: S.String.pipe(T.Header("x-cells-peer-version")),
|
|
391
|
+
peer_source: S.String.pipe(T.Header("x-cells-peer-source")),
|
|
392
|
+
peer_target: S.String.pipe(T.Header("x-cells-peer-target")),
|
|
393
|
+
peer_timestamp: S.String.pipe(T.Header("x-cells-peer-timestamp")),
|
|
394
|
+
peer_nonce: S.String.pipe(T.Header("x-cells-peer-nonce")),
|
|
395
|
+
peer_body_sha256: S.String.pipe(T.Header("x-cells-peer-body-sha256")),
|
|
396
|
+
peer_signature: S.String.pipe(T.Header("x-cells-peer-signature")),
|
|
397
|
+
op: RedriveQueueOperation,
|
|
398
|
+
limit: S.optional(S.Number),
|
|
399
|
+
}).pipe(T.Http({ method: "POST", uri: "/runtime/{scope}", code: 200 }))).annotate({
|
|
400
|
+
identifier: "RedriveQueueInput",
|
|
401
|
+
});
|
|
402
|
+
export const RedriveQueueResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
403
|
+
redriven: S.Number,
|
|
404
|
+
metrics: QueueMetrics,
|
|
405
|
+
})).annotate({
|
|
406
|
+
identifier: "RedriveQueueResult",
|
|
407
|
+
});
|
|
408
|
+
export const RedriveQueueOutput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
409
|
+
result: RedriveQueueResult,
|
|
410
|
+
})).annotate({
|
|
411
|
+
identifier: "RedriveQueueOutput",
|
|
412
|
+
});
|
|
413
|
+
export const QueueResumeOperation = S.String;
|
|
414
|
+
export const ResumeQueueInput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
415
|
+
scope: S.String.pipe(T.Label(), T.LabelEncoding({ preserve: ":$" })),
|
|
416
|
+
name: S.optional(S.String.pipe(T.Query())),
|
|
417
|
+
peer_version: S.String.pipe(T.Header("x-cells-peer-version")),
|
|
418
|
+
peer_source: S.String.pipe(T.Header("x-cells-peer-source")),
|
|
419
|
+
peer_target: S.String.pipe(T.Header("x-cells-peer-target")),
|
|
420
|
+
peer_timestamp: S.String.pipe(T.Header("x-cells-peer-timestamp")),
|
|
421
|
+
peer_nonce: S.String.pipe(T.Header("x-cells-peer-nonce")),
|
|
422
|
+
peer_body_sha256: S.String.pipe(T.Header("x-cells-peer-body-sha256")),
|
|
423
|
+
peer_signature: S.String.pipe(T.Header("x-cells-peer-signature")),
|
|
424
|
+
op: QueueResumeOperation,
|
|
425
|
+
}).pipe(T.Http({ method: "POST", uri: "/runtime/{scope}", code: 200 }))).annotate({
|
|
426
|
+
identifier: "ResumeQueueInput",
|
|
427
|
+
});
|
|
428
|
+
export const ResumeQueueOutput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
429
|
+
result: QueuePausedResult,
|
|
430
|
+
})).annotate({
|
|
431
|
+
identifier: "ResumeQueueOutput",
|
|
432
|
+
});
|
|
433
|
+
/** Delete a list of keys from a reserved KV namespace. */
|
|
434
|
+
export const deleteKv = /*@__PURE__*/ API.make(() => ({
|
|
435
|
+
input: DeleteKvInput,
|
|
436
|
+
output: DeleteKvOutput,
|
|
437
|
+
errors: [PeerIncompatibleVersion, PeerWrongTarget, PeerReplayRejected],
|
|
438
|
+
protocol: CelldProtocol,
|
|
439
|
+
}));
|
|
440
|
+
/** Execute SQL against a reserved D1 cell with the JSON body {"exec":{"sql":...,"rows":...}}. */
|
|
441
|
+
export const execD1 = /*@__PURE__*/ API.make(() => ({
|
|
442
|
+
input: ExecD1Input,
|
|
443
|
+
output: ExecD1Output,
|
|
444
|
+
errors: [
|
|
445
|
+
D1ExecutionError,
|
|
446
|
+
PeerIncompatibleVersion,
|
|
447
|
+
PeerWrongTarget,
|
|
448
|
+
PeerReplayRejected,
|
|
449
|
+
],
|
|
450
|
+
protocol: CelldProtocol,
|
|
451
|
+
}));
|
|
452
|
+
/** Run prepared statements sequentially, not as an atomic batch. The body key is statements; each params entry retains its native JSON type. */
|
|
453
|
+
export const executeD1Statements = /*@__PURE__*/ API.make(() => ({
|
|
454
|
+
input: ExecuteD1StatementsInput,
|
|
455
|
+
output: ExecuteD1StatementsOutput,
|
|
456
|
+
errors: [
|
|
457
|
+
D1ExecutionError,
|
|
458
|
+
PeerIncompatibleVersion,
|
|
459
|
+
PeerWrongTarget,
|
|
460
|
+
PeerReplayRejected,
|
|
461
|
+
],
|
|
462
|
+
protocol: CelldProtocol,
|
|
463
|
+
}));
|
|
464
|
+
/** Read one key from a reserved KV namespace. A missing key returns result.found=false. */
|
|
465
|
+
export const getKv = /*@__PURE__*/ API.make(() => ({
|
|
466
|
+
input: GetKvInput,
|
|
467
|
+
output: GetKvOutput,
|
|
468
|
+
errors: [PeerIncompatibleVersion, PeerWrongTarget, PeerReplayRejected],
|
|
469
|
+
protocol: CelldProtocol,
|
|
470
|
+
}));
|
|
471
|
+
/** Return live key count, live bytes and total stored key count. */
|
|
472
|
+
export const getKvInfo = /*@__PURE__*/ API.make(() => ({
|
|
473
|
+
input: GetKvInfoInput,
|
|
474
|
+
output: GetKvInfoOutput,
|
|
475
|
+
errors: [PeerIncompatibleVersion, PeerWrongTarget, PeerReplayRejected],
|
|
476
|
+
protocol: CelldProtocol,
|
|
477
|
+
}));
|
|
478
|
+
/** Reserved Queue operator request with JSON op=info. This is not the private Queue RPC or settlement endpoint. */
|
|
479
|
+
export const getQueueInfo = /*@__PURE__*/ API.make(() => ({
|
|
480
|
+
input: GetQueueInfoInput,
|
|
481
|
+
output: GetQueueInfoOutput,
|
|
482
|
+
errors: [PeerIncompatibleVersion, PeerWrongTarget, PeerReplayRejected],
|
|
483
|
+
protocol: CelldProtocol,
|
|
484
|
+
}));
|
|
485
|
+
/** List keys in a reserved KV namespace. Metadata remains JSON text and expiration is in milliseconds. */
|
|
486
|
+
export const listKv = /*@__PURE__*/ API.make(() => ({
|
|
487
|
+
input: ListKvInput,
|
|
488
|
+
output: ListKvOutput,
|
|
489
|
+
errors: [PeerIncompatibleVersion, PeerWrongTarget, PeerReplayRejected],
|
|
490
|
+
protocol: CelldProtocol,
|
|
491
|
+
}));
|
|
492
|
+
/** Apply a migration atomically with its bookkeeping insert. The result is the SQL engine native JSON value; no RPC action wrapper is sent. */
|
|
493
|
+
export const migrateD1 = /*@__PURE__*/ API.make(() => ({
|
|
494
|
+
input: MigrateD1Input,
|
|
495
|
+
output: MigrateD1Output,
|
|
496
|
+
errors: [
|
|
497
|
+
D1ExecutionError,
|
|
498
|
+
PeerIncompatibleVersion,
|
|
499
|
+
PeerWrongTarget,
|
|
500
|
+
PeerReplayRejected,
|
|
501
|
+
],
|
|
502
|
+
protocol: CelldProtocol,
|
|
503
|
+
}));
|
|
504
|
+
/** Reserved Queue operator request with JSON op=pause. This is not the private Queue RPC or settlement endpoint. */
|
|
505
|
+
export const pauseQueue = /*@__PURE__*/ API.make(() => ({
|
|
506
|
+
input: PauseQueueInput,
|
|
507
|
+
output: PauseQueueOutput,
|
|
508
|
+
errors: [PeerIncompatibleVersion, PeerWrongTarget, PeerReplayRejected],
|
|
509
|
+
protocol: CelldProtocol,
|
|
510
|
+
}));
|
|
511
|
+
/** Reserved Queue operator request with JSON op=peek. This is not the private Queue RPC or settlement endpoint. */
|
|
512
|
+
export const peekQueue = /*@__PURE__*/ API.make(() => ({
|
|
513
|
+
input: PeekQueueInput,
|
|
514
|
+
output: PeekQueueOutput,
|
|
515
|
+
errors: [PeerIncompatibleVersion, PeerWrongTarget, PeerReplayRejected],
|
|
516
|
+
protocol: CelldProtocol,
|
|
517
|
+
}));
|
|
518
|
+
/** Reserved Queue operator request with JSON op=purge. This is not the private Queue RPC or settlement endpoint. */
|
|
519
|
+
export const purgeQueue = /*@__PURE__*/ API.make(() => ({
|
|
520
|
+
input: PurgeQueueInput,
|
|
521
|
+
output: PurgeQueueOutput,
|
|
522
|
+
errors: [PeerIncompatibleVersion, PeerWrongTarget, PeerReplayRejected],
|
|
523
|
+
protocol: CelldProtocol,
|
|
524
|
+
}));
|
|
525
|
+
/** Write an inline JSON byte array. Expiration is resolved by the cell clock. */
|
|
526
|
+
export const putKv = /*@__PURE__*/ API.make(() => ({
|
|
527
|
+
input: PutKvInput,
|
|
528
|
+
output: PutKvOutput,
|
|
529
|
+
errors: [PeerIncompatibleVersion, PeerWrongTarget, PeerReplayRejected],
|
|
530
|
+
protocol: CelldProtocol,
|
|
531
|
+
}));
|
|
532
|
+
/** Write base64-encoded bytes using the distinct put-base64 wire operation. */
|
|
533
|
+
export const putKvBase64 = /*@__PURE__*/ API.make(() => ({
|
|
534
|
+
input: PutKvBase64Input,
|
|
535
|
+
output: PutKvBase64Output,
|
|
536
|
+
errors: [PeerIncompatibleVersion, PeerWrongTarget, PeerReplayRejected],
|
|
537
|
+
protocol: CelldProtocol,
|
|
538
|
+
}));
|
|
539
|
+
/** Reserved Queue operator request with JSON op=redrive. This is not the private Queue RPC or settlement endpoint. */
|
|
540
|
+
export const redriveQueue = /*@__PURE__*/ API.make(() => ({
|
|
541
|
+
input: RedriveQueueInput,
|
|
542
|
+
output: RedriveQueueOutput,
|
|
543
|
+
errors: [PeerIncompatibleVersion, PeerWrongTarget, PeerReplayRejected],
|
|
544
|
+
protocol: CelldProtocol,
|
|
545
|
+
}));
|
|
546
|
+
/** Reserved Queue operator request with JSON op=resume. This is not the private Queue RPC or settlement endpoint. */
|
|
547
|
+
export const resumeQueue = /*@__PURE__*/ API.make(() => ({
|
|
548
|
+
input: ResumeQueueInput,
|
|
549
|
+
output: ResumeQueueOutput,
|
|
550
|
+
errors: [PeerIncompatibleVersion, PeerWrongTarget, PeerReplayRejected],
|
|
551
|
+
protocol: CelldProtocol,
|
|
552
|
+
}));
|
|
553
|
+
//# sourceMappingURL=runtime.js.map
|