@rikalabs/akter-cli 0.0.0-stage → 0.1.0-alpha.4
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/CHANGELOG.md +27 -0
- package/LICENSE +202 -0
- package/NOTICE +8 -0
- package/README.md +16 -2
- package/dist/cloud-api/auth.d.ts +79 -0
- package/dist/cloud-api/billing.d.ts +312 -0
- package/dist/cloud-api/contract.d.ts +1556 -0
- package/dist/cloud-api/deployments.d.ts +161 -0
- package/dist/cloud-api/errors.d.ts +75 -0
- package/dist/cloud-api/groups/account.d.ts +370 -0
- package/dist/cloud-api/groups/billing.d.ts +170 -0
- package/dist/cloud-api/groups/deployments.d.ts +304 -0
- package/dist/cloud-api/groups/projects.d.ts +284 -0
- package/dist/cloud-api/groups/runtime.d.ts +482 -0
- package/dist/cloud-api/identity.d.ts +313 -0
- package/dist/cloud-api/index.d.ts +15 -0
- package/dist/cloud-api/index.js +1637 -0
- package/dist/cloud-api/logs.d.ts +44 -0
- package/dist/cloud-api/primitives.d.ts +82 -0
- package/dist/cloud-api/projects.d.ts +189 -0
- package/dist/cloud-api/runtime.d.ts +595 -0
- package/dist/inspector-client.js +14 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.js +3280 -0
- package/package.json +1 -6
|
@@ -0,0 +1,482 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/http-api";
|
|
3
|
+
import { CommandFailed, CommandExpired, CommandRefused, CommandStreamGap, RunnerDefect } from "../runtime.ts";
|
|
4
|
+
declare const RuntimeGroup_base: HttpApiGroup.HttpApiGroup<"runtime", HttpApiEndpoint.HttpApiEndpoint<"discardDeadLetter", "POST", "/projects/:projectId/environments/:environment/runtime/dead-letters/:deadLetterId/discard", Schema.toCodecStringTree<Schema.Struct<{
|
|
5
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
6
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
7
|
+
deadLetterId: Schema.brand<Schema.String, "DeadLetterId">;
|
|
8
|
+
}>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").Conflict | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getActorType", "GET", "/projects/:projectId/environments/:environment/runtime/actor-types/:actorType", Schema.toCodecStringTree<Schema.Struct<{
|
|
9
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
10
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
11
|
+
actorType: Schema.String;
|
|
12
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13
|
+
readonly name: Schema.String;
|
|
14
|
+
readonly commands: Schema.NullOr<Schema.$Array<Schema.String>>;
|
|
15
|
+
readonly instances: Schema.Int;
|
|
16
|
+
readonly awake: Schema.NullOr<Schema.Int>;
|
|
17
|
+
readonly commandsPerSecond: Schema.NullOr<Schema.Finite>;
|
|
18
|
+
readonly p99Ms: Schema.NullOr<Schema.Finite>;
|
|
19
|
+
readonly maxMailbox: Schema.NullOr<Schema.Int>;
|
|
20
|
+
}>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable | typeof RunnerDefect>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getActorTypeActivity", "GET", "/projects/:projectId/environments/:environment/runtime/actor-types/:actorType/activity", Schema.toCodecStringTree<Schema.Struct<{
|
|
21
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
22
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
23
|
+
actorType: Schema.String;
|
|
24
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
25
|
+
window: Schema.optional<Schema.Literals<readonly ["1h", "24h", "7d"]>>;
|
|
26
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
27
|
+
readonly window: Schema.Literals<readonly ["1h", "24h", "7d"]>;
|
|
28
|
+
readonly since: Schema.DateTimeUtc;
|
|
29
|
+
readonly series: Schema.$Array<Schema.Struct<{
|
|
30
|
+
readonly at: Schema.DateTimeUtc;
|
|
31
|
+
readonly value: Schema.Finite;
|
|
32
|
+
}>>;
|
|
33
|
+
readonly commands: Schema.$Array<Schema.Struct<{
|
|
34
|
+
readonly command: Schema.String;
|
|
35
|
+
readonly count: Schema.Int;
|
|
36
|
+
readonly perSecond: Schema.Finite;
|
|
37
|
+
}>>;
|
|
38
|
+
}>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable | typeof RunnerDefect>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getActorTypeLatency", "GET", "/projects/:projectId/environments/:environment/runtime/actor-types/:actorType/latency", Schema.toCodecStringTree<Schema.Struct<{
|
|
39
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
40
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
41
|
+
actorType: Schema.String;
|
|
42
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
43
|
+
window: Schema.optional<Schema.Literals<readonly ["1h", "24h", "7d"]>>;
|
|
44
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
45
|
+
readonly window: Schema.Literals<readonly ["1h", "24h", "7d"]>;
|
|
46
|
+
readonly since: Schema.DateTimeUtc;
|
|
47
|
+
readonly buckets: Schema.$Array<Schema.Struct<{
|
|
48
|
+
readonly upToMs: Schema.NullOr<Schema.Finite>;
|
|
49
|
+
readonly count: Schema.Int;
|
|
50
|
+
}>>;
|
|
51
|
+
readonly p50Ms: Schema.NullOr<Schema.Finite>;
|
|
52
|
+
readonly p95Ms: Schema.NullOr<Schema.Finite>;
|
|
53
|
+
readonly p99Ms: Schema.NullOr<Schema.Finite>;
|
|
54
|
+
}>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable | typeof RunnerDefect>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getConnections", "GET", "/projects/:projectId/environments/:environment/runtime/connections", Schema.toCodecStringTree<Schema.Struct<{
|
|
55
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
56
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
57
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
58
|
+
readonly open: Schema.Int;
|
|
59
|
+
readonly parked: Schema.NullOr<Schema.Int>;
|
|
60
|
+
readonly sseStreams: Schema.Int;
|
|
61
|
+
readonly feedSubscribers: Schema.Int;
|
|
62
|
+
readonly replayGaps: Schema.NullOr<Schema.Int>;
|
|
63
|
+
readonly openVersusParked: Schema.NullOr<Schema.$Array<Schema.Struct<{
|
|
64
|
+
readonly at: Schema.DateTimeUtc;
|
|
65
|
+
readonly open: Schema.Int;
|
|
66
|
+
readonly parked: Schema.Int;
|
|
67
|
+
}>>>;
|
|
68
|
+
readonly byActorType: Schema.$Array<Schema.Struct<{
|
|
69
|
+
readonly actorType: Schema.String;
|
|
70
|
+
readonly open: Schema.Int;
|
|
71
|
+
readonly parked: Schema.NullOr<Schema.Int>;
|
|
72
|
+
readonly sse: Schema.Int;
|
|
73
|
+
}>>;
|
|
74
|
+
}>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable | typeof RunnerDefect>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getJobs", "GET", "/projects/:projectId/environments/:environment/runtime/jobs", Schema.toCodecStringTree<Schema.Struct<{
|
|
75
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
76
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
77
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
78
|
+
readonly queued: Schema.Int;
|
|
79
|
+
readonly running: Schema.NullOr<Schema.Int>;
|
|
80
|
+
readonly retrying: Schema.Int;
|
|
81
|
+
readonly dead: Schema.Int;
|
|
82
|
+
readonly byType: Schema.$Array<Schema.Struct<{
|
|
83
|
+
readonly jobName: Schema.String;
|
|
84
|
+
readonly done: Schema.NullOr<Schema.Int>;
|
|
85
|
+
readonly retried: Schema.Int;
|
|
86
|
+
readonly dead: Schema.Int;
|
|
87
|
+
readonly p99Ms: Schema.NullOr<Schema.Finite>;
|
|
88
|
+
}>>;
|
|
89
|
+
readonly throughput: Schema.NullOr<Schema.$Array<Schema.Struct<{
|
|
90
|
+
readonly at: Schema.DateTimeUtc;
|
|
91
|
+
readonly value: Schema.Finite;
|
|
92
|
+
}>>>;
|
|
93
|
+
}>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable | typeof RunnerDefect>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getOverview", "GET", "/projects/:projectId/environments/:environment/runtime/overview", Schema.toCodecStringTree<Schema.Struct<{
|
|
94
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
95
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
96
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
97
|
+
readonly commands: Schema.NullOr<Schema.Struct<{
|
|
98
|
+
readonly perSecond: Schema.Finite;
|
|
99
|
+
readonly series24h: Schema.$Array<Schema.Struct<{
|
|
100
|
+
readonly at: Schema.DateTimeUtc;
|
|
101
|
+
readonly value: Schema.Finite;
|
|
102
|
+
}>>;
|
|
103
|
+
readonly p50Ms: Schema.NullOr<Schema.Finite>;
|
|
104
|
+
readonly p99Ms: Schema.NullOr<Schema.Finite>;
|
|
105
|
+
}>>;
|
|
106
|
+
readonly actors: Schema.Struct<{
|
|
107
|
+
readonly awake: Schema.NullOr<Schema.Int>;
|
|
108
|
+
readonly total: Schema.Int;
|
|
109
|
+
}>;
|
|
110
|
+
readonly jobs: Schema.Struct<{
|
|
111
|
+
readonly inFlight: Schema.Int;
|
|
112
|
+
readonly donePerHour: Schema.NullOr<Schema.Int>;
|
|
113
|
+
}>;
|
|
114
|
+
readonly deadLettersByJobType: Schema.$Array<Schema.Struct<{
|
|
115
|
+
readonly jobName: Schema.String;
|
|
116
|
+
readonly count: Schema.Int;
|
|
117
|
+
}>>;
|
|
118
|
+
readonly throughput: Schema.NullOr<Schema.$Array<Schema.Struct<{
|
|
119
|
+
readonly at: Schema.DateTimeUtc;
|
|
120
|
+
readonly value: Schema.Finite;
|
|
121
|
+
}>>>;
|
|
122
|
+
readonly p99: Schema.NullOr<Schema.$Array<Schema.Struct<{
|
|
123
|
+
readonly at: Schema.DateTimeUtc;
|
|
124
|
+
readonly value: Schema.Finite;
|
|
125
|
+
}>>>;
|
|
126
|
+
readonly health: Schema.Struct<{
|
|
127
|
+
readonly runners: Schema.NullOr<Schema.Struct<{
|
|
128
|
+
readonly healthy: Schema.Int;
|
|
129
|
+
readonly total: Schema.Int;
|
|
130
|
+
}>>;
|
|
131
|
+
readonly databaseCpuPercent: Schema.NullOr<Schema.Finite>;
|
|
132
|
+
readonly maxMailbox: Schema.NullOr<Schema.Struct<{
|
|
133
|
+
readonly depth: Schema.Int;
|
|
134
|
+
readonly actor: Schema.NullOr<Schema.String>;
|
|
135
|
+
}>>;
|
|
136
|
+
readonly parkedSockets: Schema.NullOr<Schema.Int>;
|
|
137
|
+
readonly outboxLagP99Ms: Schema.NullOr<Schema.Finite>;
|
|
138
|
+
readonly lastDeployAt: Schema.NullOr<Schema.DateTimeUtc>;
|
|
139
|
+
}>;
|
|
140
|
+
readonly recentDeployments: Schema.NullOr<Schema.$Array<Schema.Struct<{
|
|
141
|
+
readonly id: Schema.brand<Schema.String, "DeploymentId">;
|
|
142
|
+
readonly projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
143
|
+
readonly environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
144
|
+
readonly environmentHost: Schema.optional<Schema.String>;
|
|
145
|
+
readonly commitSha: Schema.String;
|
|
146
|
+
readonly message: Schema.String;
|
|
147
|
+
readonly author: Schema.Struct<{
|
|
148
|
+
readonly name: Schema.String;
|
|
149
|
+
readonly image: Schema.NullOr<Schema.String>;
|
|
150
|
+
}>;
|
|
151
|
+
readonly regions: Schema.$Array<Schema.Literals<readonly ["us-east-1", "us-west-2"]>>;
|
|
152
|
+
readonly runnerCount: Schema.Int;
|
|
153
|
+
readonly durationMs: Schema.NullOr<Schema.Int>;
|
|
154
|
+
readonly status: Schema.Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
|
|
155
|
+
readonly rolledBackFrom: Schema.NullOr<Schema.brand<Schema.String, "DeploymentId">>;
|
|
156
|
+
readonly createdAt: Schema.DateTimeUtc;
|
|
157
|
+
}>>>;
|
|
158
|
+
}>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable | typeof RunnerDefect>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getSidebarCounts", "GET", "/projects/:projectId/environments/:environment/runtime/sidebar-counts", Schema.toCodecStringTree<Schema.Struct<{
|
|
159
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
160
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
161
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
162
|
+
readonly actorTypes: Schema.Int;
|
|
163
|
+
readonly openDeadLetters: Schema.Int;
|
|
164
|
+
}>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable | typeof RunnerDefect>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getTimers", "GET", "/projects/:projectId/environments/:environment/runtime/timers", Schema.toCodecStringTree<Schema.Struct<{
|
|
165
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
166
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
167
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
168
|
+
readonly pending: Schema.Int;
|
|
169
|
+
readonly nextFireAt: Schema.NullOr<Schema.DateTimeUtc>;
|
|
170
|
+
}>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable | typeof RunnerDefect>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"inspectActor", "GET", "/projects/:projectId/environments/:environment/runtime/actors/:actorType/:key", Schema.toCodecStringTree<Schema.Struct<{
|
|
171
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
172
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
173
|
+
actorType: Schema.String;
|
|
174
|
+
key: Schema.String;
|
|
175
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
176
|
+
readonly address: Schema.String;
|
|
177
|
+
readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
178
|
+
readonly turn: Schema.NullOr<Schema.Int>;
|
|
179
|
+
readonly tables: Schema.NullOr<Schema.$Array<Schema.Struct<{
|
|
180
|
+
readonly table: Schema.String;
|
|
181
|
+
readonly columns: Schema.$Array<Schema.String>;
|
|
182
|
+
readonly rows: Schema.$Array<Schema.$Array<Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
183
|
+
}>>>;
|
|
184
|
+
readonly receipts: Schema.$Array<Schema.Struct<{
|
|
185
|
+
readonly commandId: Schema.String;
|
|
186
|
+
readonly command: Schema.String;
|
|
187
|
+
readonly result: Schema.NullOr<Schema.String>;
|
|
188
|
+
readonly caller: Schema.NullOr<Schema.Struct<{
|
|
189
|
+
readonly kind: Schema.Literals<readonly ["user", "anonymous", "system"]>;
|
|
190
|
+
readonly subject: Schema.NullOr<Schema.String>;
|
|
191
|
+
readonly source: Schema.NullOr<Schema.String>;
|
|
192
|
+
}>>;
|
|
193
|
+
readonly at: Schema.NullOr<Schema.DateTimeUtc>;
|
|
194
|
+
readonly expiresAt: Schema.DateTimeUtc;
|
|
195
|
+
readonly replayed: Schema.Boolean;
|
|
196
|
+
}>>;
|
|
197
|
+
readonly events: Schema.$Array<Schema.Struct<{
|
|
198
|
+
readonly name: Schema.String;
|
|
199
|
+
readonly cursor: Schema.String;
|
|
200
|
+
readonly emittedAt: Schema.DateTimeUtc;
|
|
201
|
+
readonly subscribers: Schema.NullOr<Schema.Int>;
|
|
202
|
+
}>>;
|
|
203
|
+
readonly jobs: Schema.$Array<Schema.Struct<{
|
|
204
|
+
readonly name: Schema.String;
|
|
205
|
+
readonly id: Schema.String;
|
|
206
|
+
readonly attempts: Schema.Int;
|
|
207
|
+
readonly status: Schema.Literals<readonly ["queued", "running", "retrying", "done", "dead"]>;
|
|
208
|
+
}>>;
|
|
209
|
+
readonly connections: Schema.Struct<{
|
|
210
|
+
readonly sockets: Schema.NullOr<Schema.Int>;
|
|
211
|
+
readonly feedCursor: Schema.NullOr<Schema.String>;
|
|
212
|
+
}>;
|
|
213
|
+
readonly properties: Schema.Struct<{
|
|
214
|
+
readonly status: Schema.NullOr<Schema.Literals<readonly ["awake", "idle"]>>;
|
|
215
|
+
readonly type: Schema.String;
|
|
216
|
+
readonly generation: Schema.Int;
|
|
217
|
+
readonly runner: Schema.NullOr<Schema.String>;
|
|
218
|
+
readonly region: Schema.NullOr<Schema.String>;
|
|
219
|
+
readonly tenant: Schema.String;
|
|
220
|
+
readonly mailboxDepth: Schema.NullOr<Schema.Int>;
|
|
221
|
+
}>;
|
|
222
|
+
readonly timeline: Schema.NullOr<Schema.$Array<Schema.Struct<{
|
|
223
|
+
readonly at: Schema.DateTimeUtc;
|
|
224
|
+
readonly kind: Schema.Literals<readonly ["command", "event", "job"]>;
|
|
225
|
+
readonly label: Schema.String;
|
|
226
|
+
readonly detail: Schema.NullOr<Schema.String>;
|
|
227
|
+
readonly caller: Schema.NullOr<Schema.Struct<{
|
|
228
|
+
readonly kind: Schema.Literals<readonly ["user", "anonymous", "system"]>;
|
|
229
|
+
readonly subject: Schema.NullOr<Schema.String>;
|
|
230
|
+
readonly source: Schema.NullOr<Schema.String>;
|
|
231
|
+
}>>;
|
|
232
|
+
}>>>;
|
|
233
|
+
}>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable | typeof RunnerDefect>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listActorEvents", "GET", "/projects/:projectId/environments/:environment/runtime/actors/:actorType/:key/events", Schema.toCodecStringTree<Schema.Struct<{
|
|
234
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
235
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
236
|
+
actorType: Schema.String;
|
|
237
|
+
key: Schema.String;
|
|
238
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
|
|
239
|
+
readonly name: Schema.String;
|
|
240
|
+
readonly cursor: Schema.String;
|
|
241
|
+
readonly emittedAt: Schema.DateTimeUtc;
|
|
242
|
+
readonly subscribers: Schema.NullOr<Schema.Int>;
|
|
243
|
+
}>>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable | typeof RunnerDefect>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listActorInstances", "GET", "/projects/:projectId/environments/:environment/runtime/actor-types/:actorType/instances", Schema.toCodecStringTree<Schema.Struct<{
|
|
244
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
245
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
246
|
+
actorType: Schema.String;
|
|
247
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
248
|
+
limit: Schema.optional<Schema.Int>;
|
|
249
|
+
cursor: Schema.optional<Schema.String>;
|
|
250
|
+
status: Schema.optional<Schema.Literals<readonly ["awake", "idle"]>>;
|
|
251
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
252
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
253
|
+
readonly key: Schema.String;
|
|
254
|
+
readonly status: Schema.NullOr<Schema.Literals<readonly ["awake", "idle"]>>;
|
|
255
|
+
readonly lastCommand: Schema.NullOr<Schema.String>;
|
|
256
|
+
readonly lastActivityAt: Schema.NullOr<Schema.DateTimeUtc>;
|
|
257
|
+
readonly generation: Schema.Int;
|
|
258
|
+
}>>;
|
|
259
|
+
readonly nextCursor: Schema.NullOr<Schema.String>;
|
|
260
|
+
}>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable | typeof RunnerDefect>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listActorJobs", "GET", "/projects/:projectId/environments/:environment/runtime/actors/:actorType/:key/jobs", Schema.toCodecStringTree<Schema.Struct<{
|
|
261
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
262
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
263
|
+
actorType: Schema.String;
|
|
264
|
+
key: Schema.String;
|
|
265
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
|
|
266
|
+
readonly name: Schema.String;
|
|
267
|
+
readonly id: Schema.String;
|
|
268
|
+
readonly attempts: Schema.Int;
|
|
269
|
+
readonly status: Schema.Literals<readonly ["queued", "running", "retrying", "done", "dead"]>;
|
|
270
|
+
}>>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable | typeof RunnerDefect>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listActorReceipts", "GET", "/projects/:projectId/environments/:environment/runtime/actors/:actorType/:key/receipts", Schema.toCodecStringTree<Schema.Struct<{
|
|
271
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
272
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
273
|
+
actorType: Schema.String;
|
|
274
|
+
key: Schema.String;
|
|
275
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
276
|
+
limit: Schema.optional<Schema.Int>;
|
|
277
|
+
cursor: Schema.optional<Schema.String>;
|
|
278
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
279
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
280
|
+
readonly commandId: Schema.String;
|
|
281
|
+
readonly command: Schema.String;
|
|
282
|
+
readonly result: Schema.NullOr<Schema.String>;
|
|
283
|
+
readonly caller: Schema.NullOr<Schema.Struct<{
|
|
284
|
+
readonly kind: Schema.Literals<readonly ["user", "anonymous", "system"]>;
|
|
285
|
+
readonly subject: Schema.NullOr<Schema.String>;
|
|
286
|
+
readonly source: Schema.NullOr<Schema.String>;
|
|
287
|
+
}>>;
|
|
288
|
+
readonly at: Schema.NullOr<Schema.DateTimeUtc>;
|
|
289
|
+
readonly expiresAt: Schema.DateTimeUtc;
|
|
290
|
+
readonly replayed: Schema.Boolean;
|
|
291
|
+
}>>;
|
|
292
|
+
readonly nextCursor: Schema.NullOr<Schema.String>;
|
|
293
|
+
}>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable | typeof RunnerDefect>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listActorTables", "GET", "/projects/:projectId/environments/:environment/runtime/actors/:actorType/:key/tables", Schema.toCodecStringTree<Schema.Struct<{
|
|
294
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
295
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
296
|
+
actorType: Schema.String;
|
|
297
|
+
key: Schema.String;
|
|
298
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
|
|
299
|
+
readonly table: Schema.String;
|
|
300
|
+
readonly columns: Schema.$Array<Schema.String>;
|
|
301
|
+
readonly rows: Schema.$Array<Schema.$Array<Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
302
|
+
}>>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listActorTimeline", "GET", "/projects/:projectId/environments/:environment/runtime/actors/:actorType/:key/timeline", Schema.toCodecStringTree<Schema.Struct<{
|
|
303
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
304
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
305
|
+
actorType: Schema.String;
|
|
306
|
+
key: Schema.String;
|
|
307
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
308
|
+
limit: Schema.optional<Schema.Int>;
|
|
309
|
+
cursor: Schema.optional<Schema.String>;
|
|
310
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
311
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
312
|
+
readonly at: Schema.DateTimeUtc;
|
|
313
|
+
readonly kind: Schema.Literals<readonly ["command", "event", "job"]>;
|
|
314
|
+
readonly label: Schema.String;
|
|
315
|
+
readonly detail: Schema.NullOr<Schema.String>;
|
|
316
|
+
readonly caller: Schema.NullOr<Schema.Struct<{
|
|
317
|
+
readonly kind: Schema.Literals<readonly ["user", "anonymous", "system"]>;
|
|
318
|
+
readonly subject: Schema.NullOr<Schema.String>;
|
|
319
|
+
readonly source: Schema.NullOr<Schema.String>;
|
|
320
|
+
}>>;
|
|
321
|
+
}>>;
|
|
322
|
+
readonly nextCursor: Schema.NullOr<Schema.String>;
|
|
323
|
+
}>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable | typeof RunnerDefect>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listActorTypes", "GET", "/projects/:projectId/environments/:environment/runtime/actor-types", Schema.toCodecStringTree<Schema.Struct<{
|
|
324
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
325
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
326
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
|
|
327
|
+
readonly name: Schema.String;
|
|
328
|
+
readonly commands: Schema.NullOr<Schema.$Array<Schema.String>>;
|
|
329
|
+
readonly instances: Schema.Int;
|
|
330
|
+
readonly awake: Schema.NullOr<Schema.Int>;
|
|
331
|
+
readonly commandsPerSecond: Schema.NullOr<Schema.Finite>;
|
|
332
|
+
readonly p99Ms: Schema.NullOr<Schema.Finite>;
|
|
333
|
+
readonly maxMailbox: Schema.NullOr<Schema.Int>;
|
|
334
|
+
}>>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable | typeof RunnerDefect>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listCommands", "GET", "/projects/:projectId/environments/:environment/runtime/commands", Schema.toCodecStringTree<Schema.Struct<{
|
|
335
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
336
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
337
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
338
|
+
limit: Schema.optional<Schema.Int>;
|
|
339
|
+
cursor: Schema.optional<Schema.String>;
|
|
340
|
+
actorType: Schema.optional<Schema.String>;
|
|
341
|
+
outcome: Schema.optional<Schema.Literals<readonly ["ok", "error", "replayed"]>>;
|
|
342
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
343
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
344
|
+
readonly commandId: Schema.String;
|
|
345
|
+
readonly at: Schema.NullOr<Schema.DateTimeUtc>;
|
|
346
|
+
readonly durationMs: Schema.NullOr<Schema.Finite>;
|
|
347
|
+
readonly address: Schema.String;
|
|
348
|
+
readonly command: Schema.String;
|
|
349
|
+
readonly caller: Schema.NullOr<Schema.Struct<{
|
|
350
|
+
readonly kind: Schema.Literals<readonly ["user", "anonymous", "system"]>;
|
|
351
|
+
readonly subject: Schema.NullOr<Schema.String>;
|
|
352
|
+
readonly source: Schema.NullOr<Schema.String>;
|
|
353
|
+
}>>;
|
|
354
|
+
readonly payloadPreview: Schema.NullOr<Schema.String>;
|
|
355
|
+
readonly outcome: Schema.Literals<readonly ["ok", "error", "replayed"]>;
|
|
356
|
+
readonly errorTag: Schema.NullOr<Schema.String>;
|
|
357
|
+
}>>;
|
|
358
|
+
readonly nextCursor: Schema.NullOr<Schema.String>;
|
|
359
|
+
}>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable | typeof RunnerDefect>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listDeadLetters", "GET", "/projects/:projectId/environments/:environment/runtime/dead-letters", Schema.toCodecStringTree<Schema.Struct<{
|
|
360
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
361
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
362
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
363
|
+
limit: Schema.optional<Schema.Int>;
|
|
364
|
+
cursor: Schema.optional<Schema.String>;
|
|
365
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
366
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
367
|
+
readonly id: Schema.brand<Schema.String, "DeadLetterId">;
|
|
368
|
+
readonly jobName: Schema.String;
|
|
369
|
+
readonly jobId: Schema.String;
|
|
370
|
+
readonly actor: Schema.String;
|
|
371
|
+
readonly attempts: Schema.Int;
|
|
372
|
+
readonly lastError: Schema.String;
|
|
373
|
+
readonly since: Schema.DateTimeUtc;
|
|
374
|
+
}>>;
|
|
375
|
+
readonly nextCursor: Schema.NullOr<Schema.String>;
|
|
376
|
+
}>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable | typeof RunnerDefect>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listSchedules", "GET", "/projects/:projectId/environments/:environment/runtime/schedules", Schema.toCodecStringTree<Schema.Struct<{
|
|
377
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
378
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
379
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
|
|
380
|
+
readonly name: Schema.String;
|
|
381
|
+
readonly actorPattern: Schema.String;
|
|
382
|
+
readonly cron: Schema.String;
|
|
383
|
+
readonly lastRun: Schema.NullOr<Schema.Struct<{
|
|
384
|
+
readonly at: Schema.DateTimeUtc;
|
|
385
|
+
readonly outcome: Schema.Literals<readonly ["ok", "error"]>;
|
|
386
|
+
readonly durationMs: Schema.NullOr<Schema.Finite>;
|
|
387
|
+
}>>;
|
|
388
|
+
readonly nextRunAt: Schema.NullOr<Schema.DateTimeUtc>;
|
|
389
|
+
}>>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable | typeof RunnerDefect>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listWorkflows", "GET", "/projects/:projectId/environments/:environment/runtime/workflows", Schema.toCodecStringTree<Schema.Struct<{
|
|
390
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
391
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
392
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
393
|
+
limit: Schema.optional<Schema.Int>;
|
|
394
|
+
cursor: Schema.optional<Schema.String>;
|
|
395
|
+
status: Schema.optional<Schema.Literals<readonly ["running", "waiting", "completed", "failed"]>>;
|
|
396
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
397
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
398
|
+
readonly id: Schema.String;
|
|
399
|
+
readonly name: Schema.String;
|
|
400
|
+
readonly actor: Schema.String;
|
|
401
|
+
readonly step: Schema.NullOr<Schema.Struct<{
|
|
402
|
+
readonly index: Schema.Int;
|
|
403
|
+
readonly total: Schema.NullOr<Schema.Int>;
|
|
404
|
+
readonly name: Schema.String;
|
|
405
|
+
}>>;
|
|
406
|
+
readonly waitingFor: Schema.NullOr<Schema.Struct<{
|
|
407
|
+
readonly kind: Schema.Literals<readonly ["event", "timer"]>;
|
|
408
|
+
readonly name: Schema.String;
|
|
409
|
+
}>>;
|
|
410
|
+
readonly startedAt: Schema.DateTimeUtc;
|
|
411
|
+
readonly status: Schema.NullOr<Schema.Literals<readonly ["running", "waiting", "completed", "failed"]>>;
|
|
412
|
+
}>>;
|
|
413
|
+
readonly nextCursor: Schema.NullOr<Schema.String>;
|
|
414
|
+
}>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable | typeof RunnerDefect>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"retryDeadLetter", "POST", "/projects/:projectId/environments/:environment/runtime/dead-letters/:deadLetterId/retry", Schema.toCodecStringTree<Schema.Struct<{
|
|
415
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
416
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
417
|
+
deadLetterId: Schema.brand<Schema.String, "DeadLetterId">;
|
|
418
|
+
}>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").Conflict | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"search", "GET", "/projects/:projectId/environments/:environment/runtime/search", Schema.toCodecStringTree<Schema.Struct<{
|
|
419
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
420
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
421
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
422
|
+
q: Schema.String;
|
|
423
|
+
}>>, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
|
|
424
|
+
readonly kind: Schema.Literals<readonly ["actor-type", "actor", "deployment"]>;
|
|
425
|
+
readonly id: Schema.String;
|
|
426
|
+
readonly title: Schema.String;
|
|
427
|
+
readonly subtitle: Schema.NullOr<Schema.String>;
|
|
428
|
+
}>>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable | typeof RunnerDefect>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"sendCommand", "POST", "/projects/:projectId/environments/:environment/runtime/commands", Schema.toCodecStringTree<Schema.Struct<{
|
|
429
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
430
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
431
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
432
|
+
readonly address: Schema.String;
|
|
433
|
+
readonly command: Schema.String;
|
|
434
|
+
readonly payload: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
435
|
+
readonly commandId: Schema.optional<Schema.String>;
|
|
436
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
437
|
+
readonly commandId: Schema.String;
|
|
438
|
+
readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
439
|
+
readonly replayed: Schema.Boolean;
|
|
440
|
+
}>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").Conflict | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable | typeof CommandExpired | typeof RunnerDefect | typeof CommandRefused | typeof CommandFailed | typeof import("../runtime.ts").QuotaExceeded | typeof import("../runtime.ts").QuotaUnbound>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"streamCommands", "GET", "/projects/:projectId/environments/:environment/runtime/commands/stream", Schema.toCodecStringTree<Schema.Struct<{
|
|
441
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
442
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
443
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
444
|
+
actorType: Schema.optional<Schema.String>;
|
|
445
|
+
outcome: Schema.optional<Schema.Literals<readonly ["ok", "error", "replayed"]>>;
|
|
446
|
+
}>>, never, never, HttpApiSchema.StreamSse<HttpApiSchema.SseEventFromData<Schema.toCodecJson<Schema.Struct<{
|
|
447
|
+
readonly commandId: Schema.String;
|
|
448
|
+
readonly at: Schema.NullOr<Schema.DateTimeUtc>;
|
|
449
|
+
readonly durationMs: Schema.NullOr<Schema.Finite>;
|
|
450
|
+
readonly address: Schema.String;
|
|
451
|
+
readonly command: Schema.String;
|
|
452
|
+
readonly caller: Schema.NullOr<Schema.Struct<{
|
|
453
|
+
readonly kind: Schema.Literals<readonly ["user", "anonymous", "system"]>;
|
|
454
|
+
readonly subject: Schema.NullOr<Schema.String>;
|
|
455
|
+
readonly source: Schema.NullOr<Schema.String>;
|
|
456
|
+
}>>;
|
|
457
|
+
readonly payloadPreview: Schema.NullOr<Schema.String>;
|
|
458
|
+
readonly outcome: Schema.Literals<readonly ["ok", "error", "replayed"]>;
|
|
459
|
+
readonly errorTag: Schema.NullOr<Schema.String>;
|
|
460
|
+
}>>>, typeof CommandStreamGap, {
|
|
461
|
+
readonly commandId: string;
|
|
462
|
+
readonly at: import("effect/DateTime").Utc | null;
|
|
463
|
+
readonly durationMs: number | null;
|
|
464
|
+
readonly address: string;
|
|
465
|
+
readonly command: string;
|
|
466
|
+
readonly caller: {
|
|
467
|
+
readonly kind: "anonymous" | "system" | "user";
|
|
468
|
+
readonly subject: string | null;
|
|
469
|
+
readonly source: string | null;
|
|
470
|
+
} | null;
|
|
471
|
+
readonly payloadPreview: string | null;
|
|
472
|
+
readonly outcome: "error" | "ok" | "replayed";
|
|
473
|
+
readonly errorTag: string | null;
|
|
474
|
+
}>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable | typeof RunnerDefect>, never, never>, false>;
|
|
475
|
+
/**
|
|
476
|
+
* Inspection of the runners serving one project environment. Every path sits
|
|
477
|
+
* under `/projects/:projectId/environments/:environment/runtime`; actor keys
|
|
478
|
+
* are URL-encoded path segments.
|
|
479
|
+
*/
|
|
480
|
+
export declare class RuntimeGroup extends RuntimeGroup_base {
|
|
481
|
+
}
|
|
482
|
+
export {};
|