@rikalabs/akter-cli 0.0.0-stage → 0.1.0-alpha.3

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.
@@ -0,0 +1,1556 @@
1
+ import { HttpApi } from "effect/http-api";
2
+ import { Authentication } from "./auth.ts";
3
+ declare const CloudApi_base: HttpApi.HttpApi<"akter-cloud", import("effect/http-api/HttpApiGroup").HttpApiGroup<"account", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"deleteAccount", "DELETE", "/api/me", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
4
+ readonly confirmation: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
5
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").NoContent>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"exportData", "GET", "/api/me/export", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
6
+ readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
7
+ readonly exportedAt: import("effect/Schema").DateTimeUtc;
8
+ readonly tables: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").$Array<import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
9
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotImplemented>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getNotifications", "GET", "/api/me/notifications", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
10
+ readonly preferences: import("effect/Schema").$Array<import("effect/Schema").Struct<{
11
+ readonly event: import("effect/Schema").Literals<readonly ["deploy_failed", "dead_letter", "spend_threshold"]>;
12
+ readonly email: import("effect/Schema").Boolean;
13
+ readonly slack: import("effect/Schema").Boolean;
14
+ }>>;
15
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotImplemented>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getPreferences", "GET", "/api/me/preferences", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
16
+ readonly defaultEnvironment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
17
+ readonly openActorLinksInNewTab: import("effect/Schema").Boolean;
18
+ readonly timeZone: import("effect/Schema").String;
19
+ readonly pauseLiveTailOnScroll: import("effect/Schema").Boolean;
20
+ readonly showReplayedCommands: import("effect/Schema").Boolean;
21
+ readonly theme: import("effect/Schema").Literals<readonly ["light", "dark", "system"]>;
22
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotImplemented>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listPinnedActors", "GET", "/api/me/pinned-actors", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
23
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
24
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
25
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
26
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
27
+ readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
28
+ readonly address: import("effect/Schema").String;
29
+ readonly status: import("effect/Schema").Literals<readonly ["awake", "idle", "unknown"]>;
30
+ readonly lastActivityAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
31
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"me", "GET", "/api/me", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
32
+ readonly user: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
33
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
34
+ readonly name: import("effect/Schema").String;
35
+ readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
36
+ readonly emailVerified: import("effect/Schema").Boolean;
37
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
38
+ }>>;
39
+ readonly identityKind: import("effect/Schema").Literals<readonly ["session", "api-key"]>;
40
+ readonly activeOrganizationId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">>;
41
+ readonly organizations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
42
+ readonly organization: import("effect/Schema").Struct<{
43
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
44
+ readonly name: import("effect/Schema").String;
45
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
46
+ readonly plan: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"unbound", {}>, import("effect/Schema").TaggedStruct<"known", {
47
+ readonly id: import("effect/Schema").Literals<readonly ["free", "pro", "team", "enterprise"]>;
48
+ }>, import("effect/Schema").TaggedStruct<"unknown", {
49
+ readonly id: import("effect/Schema").String;
50
+ }>]>;
51
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
52
+ }>;
53
+ readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
54
+ }>>;
55
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotImplemented>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"pinActor", "POST", "/api/me/pinned-actors", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
56
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
57
+ readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
58
+ readonly address: import("effect/Schema").String;
59
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
60
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
61
+ readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
62
+ readonly address: import("effect/Schema").String;
63
+ readonly status: import("effect/Schema").Literals<readonly ["awake", "idle", "unknown"]>;
64
+ readonly lastActivityAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
65
+ }>>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"setActiveOrganization", "PUT", "/api/me/active-organization", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
66
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
67
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
68
+ readonly organization: import("effect/Schema").Struct<{
69
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
70
+ readonly name: import("effect/Schema").String;
71
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
72
+ readonly plan: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"unbound", {}>, import("effect/Schema").TaggedStruct<"known", {
73
+ readonly id: import("effect/Schema").Literals<readonly ["free", "pro", "team", "enterprise"]>;
74
+ }>, import("effect/Schema").TaggedStruct<"unknown", {
75
+ readonly id: import("effect/Schema").String;
76
+ }>]>;
77
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
78
+ }>;
79
+ readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
80
+ }>>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"setNotifications", "PUT", "/api/me/notifications", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
81
+ readonly preferences: import("effect/Schema").$Array<import("effect/Schema").Struct<{
82
+ readonly event: import("effect/Schema").Literals<readonly ["deploy_failed", "dead_letter", "spend_threshold"]>;
83
+ readonly email: import("effect/Schema").Boolean;
84
+ readonly slack: import("effect/Schema").Boolean;
85
+ }>>;
86
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
87
+ readonly preferences: import("effect/Schema").$Array<import("effect/Schema").Struct<{
88
+ readonly event: import("effect/Schema").Literals<readonly ["deploy_failed", "dead_letter", "spend_threshold"]>;
89
+ readonly email: import("effect/Schema").Boolean;
90
+ readonly slack: import("effect/Schema").Boolean;
91
+ }>>;
92
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotImplemented>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"unpinActor", "DELETE", "/api/me/pinned-actors", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
93
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
94
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
95
+ address: import("effect/Schema").String;
96
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").NoContent>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"updatePreferences", "PATCH", "/api/me/preferences", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
97
+ readonly defaultEnvironment: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>>;
98
+ readonly openActorLinksInNewTab: import("effect/Schema").optional<import("effect/Schema").Boolean>;
99
+ readonly timeZone: import("effect/Schema").optional<import("effect/Schema").String>;
100
+ readonly pauseLiveTailOnScroll: import("effect/Schema").optional<import("effect/Schema").Boolean>;
101
+ readonly showReplayedCommands: import("effect/Schema").optional<import("effect/Schema").Boolean>;
102
+ readonly theme: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["light", "dark", "system"]>>;
103
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
104
+ readonly defaultEnvironment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
105
+ readonly openActorLinksInNewTab: import("effect/Schema").Boolean;
106
+ readonly timeZone: import("effect/Schema").String;
107
+ readonly pauseLiveTailOnScroll: import("effect/Schema").Boolean;
108
+ readonly showReplayedCommands: import("effect/Schema").Boolean;
109
+ readonly theme: import("effect/Schema").Literals<readonly ["light", "dark", "system"]>;
110
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotImplemented>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"updateProfile", "PATCH", "/api/me", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
111
+ readonly name: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "Name">>;
112
+ readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
113
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
114
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
115
+ readonly name: import("effect/Schema").String;
116
+ readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
117
+ readonly emailVerified: import("effect/Schema").Boolean;
118
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
119
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotImplemented>, Authentication, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"apiKeys", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"create", "POST", "/api/organizations/:organizationId/api-keys", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
120
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
121
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
122
+ readonly name: import("effect/Schema").brand<import("effect/Schema").String, "Name">;
123
+ readonly permission: import("effect/Schema").Literals<readonly ["read", "write", "admin"]>;
124
+ readonly projectId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">>;
125
+ readonly expiresAt: import("effect/Schema").optional<import("effect/Schema").DateTimeUtc>;
126
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
127
+ readonly key: import("effect/Schema").Struct<{
128
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ApiKeyId">;
129
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
130
+ readonly name: import("effect/Schema").String;
131
+ readonly prefix: import("effect/Schema").String;
132
+ readonly lastFour: import("effect/Schema").String;
133
+ readonly permission: import("effect/Schema").Literals<readonly ["read", "write", "admin"]>;
134
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">>;
135
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
136
+ readonly createdBy: import("effect/Schema").Struct<{
137
+ readonly kind: import("effect/Schema").Literals<readonly ["user", "api-key"]>;
138
+ readonly id: import("effect/Schema").String;
139
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
140
+ }>;
141
+ readonly lastUsedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
142
+ readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
143
+ readonly revokedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
144
+ }>;
145
+ readonly secret: import("effect/Schema").String;
146
+ }>>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/api/organizations/:organizationId/api-keys", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
147
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
148
+ }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
149
+ projectId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">>;
150
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
151
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ApiKeyId">;
152
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
153
+ readonly name: import("effect/Schema").String;
154
+ readonly prefix: import("effect/Schema").String;
155
+ readonly lastFour: import("effect/Schema").String;
156
+ readonly permission: import("effect/Schema").Literals<readonly ["read", "write", "admin"]>;
157
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">>;
158
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
159
+ readonly createdBy: import("effect/Schema").Struct<{
160
+ readonly kind: import("effect/Schema").Literals<readonly ["user", "api-key"]>;
161
+ readonly id: import("effect/Schema").String;
162
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
163
+ }>;
164
+ readonly lastUsedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
165
+ readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
166
+ readonly revokedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
167
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"revoke", "DELETE", "/api/organizations/:organizationId/api-keys/:keyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
168
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
169
+ keyId: import("effect/Schema").brand<import("effect/Schema").String, "ApiKeyId">;
170
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").NoContent>, import("effect/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>, Authentication, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"audit", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/api/organizations/:organizationId/audit-log", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
171
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
172
+ }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
173
+ limit: import("effect/Schema").optional<import("effect/Schema").Int>;
174
+ cursor: import("effect/Schema").optional<import("effect/Schema").String>;
175
+ action: import("effect/Schema").optional<import("effect/Schema").String>;
176
+ actorId: import("effect/Schema").optional<import("effect/Schema").String>;
177
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
178
+ readonly items: import("effect/Schema").$Array<import("effect/Schema").Struct<{
179
+ readonly id: import("effect/Schema").String;
180
+ readonly at: import("effect/Schema").DateTimeUtc;
181
+ readonly actor: import("effect/Schema").Struct<{
182
+ readonly kind: import("effect/Schema").Literals<readonly ["user", "api-key"]>;
183
+ readonly id: import("effect/Schema").String;
184
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
185
+ }>;
186
+ readonly action: import("effect/Schema").String;
187
+ readonly target: import("effect/Schema").Struct<{
188
+ readonly type: import("effect/Schema").String;
189
+ readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
190
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
191
+ }>;
192
+ readonly ipAddress: import("effect/Schema").NullOr<import("effect/Schema").String>;
193
+ }>>;
194
+ readonly nextCursor: import("effect/Schema").NullOr<import("effect/Schema").String>;
195
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"billing", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"changePlan", "POST", "/api/organizations/:organizationId/billing/plan", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
196
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
197
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
198
+ readonly plan: import("effect/Schema").Literals<readonly ["pro", "team", "enterprise"]>;
199
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
200
+ readonly requestId: import("effect/Schema").String;
201
+ readonly status: import("effect/Schema").Literals<readonly ["pending", "completed", "failed"]>;
202
+ }>>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"get", "GET", "/api/organizations/:organizationId/billing", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
203
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
204
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
205
+ readonly plan: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"known", {
206
+ readonly id: import("effect/Schema").Literals<readonly ["free", "pro", "team", "enterprise"]>;
207
+ readonly name: import("effect/Schema").String;
208
+ readonly basePriceCents: import("effect/Schema").Int;
209
+ readonly currency: import("effect/Schema").Literal<"usd">;
210
+ readonly renewsAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
211
+ readonly monthToDateEstimateCents: import("effect/Schema").Int;
212
+ readonly provisional: import("effect/Schema").optionalKey<import("effect/Schema").Boolean>;
213
+ readonly subscribedId: import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["free", "pro", "team", "enterprise"]>>;
214
+ readonly paymentStatus: import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["free", "active", "past_due", "unpaid", "canceled", "incomplete"]>>;
215
+ }>, import("effect/Schema").TaggedStruct<"unbound", {}>]>;
216
+ readonly paymentMethod: import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"card", {
217
+ readonly brand: import("effect/Schema").String;
218
+ readonly lastFour: import("effect/Schema").String;
219
+ readonly expiryMonth: import("effect/Schema").Int;
220
+ readonly expiryYear: import("effect/Schema").Int;
221
+ }>, import("effect/Schema").TaggedStruct<"link", {
222
+ readonly email: import("effect/Schema").NullOr<import("effect/Schema").String>;
223
+ }>]>>;
224
+ readonly billingEmail: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "Email">>;
225
+ readonly spendLimit: import("effect/Schema").Struct<{
226
+ readonly limitCents: import("effect/Schema").NullOr<import("effect/Schema").Int>;
227
+ readonly currentSpendCents: import("effect/Schema").Int;
228
+ }>;
229
+ readonly caps: import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").Struct<{
230
+ readonly limit: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
231
+ readonly used: import("effect/Schema").Finite;
232
+ readonly atCap: import("effect/Schema").Boolean;
233
+ readonly refusing: import("effect/Schema").Boolean;
234
+ readonly reason: import("effect/Schema").optionalKey<import("effect/Schema").Literal<"unbound">>;
235
+ readonly cap: import("effect/Schema").Literals<readonly ["spend", "connections", "compute", "storage"]>;
236
+ }>>>;
237
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listInvoices", "GET", "/api/organizations/:organizationId/billing/invoices", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
238
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
239
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
240
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "InvoiceId">;
241
+ readonly number: import("effect/Schema").String;
242
+ readonly periodStart: import("effect/Schema").DateTimeUtc;
243
+ readonly periodEnd: import("effect/Schema").DateTimeUtc;
244
+ readonly amountCents: import("effect/Schema").Int;
245
+ readonly currency: import("effect/Schema").Literal<"usd">;
246
+ readonly status: import("effect/Schema").Literals<readonly ["draft", "open", "paid", "void", "uncollectible"]>;
247
+ readonly pdfUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
248
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listPlans", "GET", "/api/billing/plans", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
249
+ readonly plans: import("effect/Schema").$Array<import("effect/Schema").Struct<{
250
+ readonly id: import("effect/Schema").Literals<readonly ["free", "pro", "team", "enterprise"]>;
251
+ readonly name: import("effect/Schema").String;
252
+ readonly basePriceCents: import("effect/Schema").Int;
253
+ readonly currency: import("effect/Schema").Literal<"usd">;
254
+ readonly allowances: import("effect/Schema").Struct<{
255
+ readonly computeUnitHours: import("effect/Schema").Finite;
256
+ readonly computeUnitHourCap: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
257
+ readonly storageGb: import("effect/Schema").Finite;
258
+ readonly storageGbCap: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
259
+ readonly concurrentConnections: import("effect/Schema").Int;
260
+ }>;
261
+ readonly overage: import("effect/Schema").Struct<{
262
+ readonly computeCentsPerUnitHour: import("effect/Schema").Finite;
263
+ readonly storageCentsPerGbMonth: import("effect/Schema").Finite;
264
+ }>;
265
+ readonly features: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["compute-overage", "compute-cap", "storage-overage", "storage-cap", "byo-database", "dedicated-database", "checkout"]>>;
266
+ readonly provisional: import("effect/Schema").Boolean;
267
+ }>>;
268
+ readonly computeSizes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
269
+ readonly cpuKind: import("effect/Schema").Literals<readonly ["shared", "performance"]>;
270
+ readonly cpus: import("effect/Schema").Int;
271
+ readonly memoryMb: import("effect/Schema").Int;
272
+ readonly unitsPerHour: import("effect/Schema").Finite;
273
+ }>>;
274
+ readonly provisional: import("effect/Schema").Boolean;
275
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotImplemented>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"openPortal", "POST", "/api/organizations/:organizationId/billing/portal", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
276
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
277
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
278
+ readonly url: import("effect/Schema").String;
279
+ }>>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"setSpendLimit", "PUT", "/api/organizations/:organizationId/billing/spend-limit", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
280
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
281
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
282
+ readonly limitCents: import("effect/Schema").NullOr<import("effect/Schema").Int>;
283
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
284
+ readonly limitCents: import("effect/Schema").NullOr<import("effect/Schema").Int>;
285
+ readonly currentSpendCents: import("effect/Schema").Int;
286
+ }>>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"startCheckout", "POST", "/api/organizations/:organizationId/billing/checkout", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
287
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
288
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
289
+ readonly plan: import("effect/Schema").Literals<readonly ["pro", "team", "enterprise"]>;
290
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
291
+ readonly url: import("effect/Schema").String;
292
+ }>>, import("effect/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>, Authentication, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"deployments", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"create", "POST", "/api/projects/:projectId/deployments", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
293
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
294
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
295
+ readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
296
+ readonly commitSha: import("effect/Schema").String;
297
+ readonly message: import("effect/Schema").optional<import("effect/Schema").String>;
298
+ readonly regions: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>>>;
299
+ readonly source: import("effect/Schema").optional<import("effect/Schema").Struct<{
300
+ readonly digest: import("effect/Schema").String;
301
+ readonly dockerfile: import("effect/Schema").optionalKey<import("effect/Schema").Never>;
302
+ }>>;
303
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
304
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
305
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
306
+ readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
307
+ readonly environmentHost: import("effect/Schema").optional<import("effect/Schema").String>;
308
+ readonly commitSha: import("effect/Schema").String;
309
+ readonly message: import("effect/Schema").String;
310
+ readonly author: import("effect/Schema").Struct<{
311
+ readonly name: import("effect/Schema").String;
312
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
313
+ }>;
314
+ readonly regions: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>>;
315
+ readonly runnerCount: import("effect/Schema").Int;
316
+ readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
317
+ readonly status: import("effect/Schema").Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
318
+ readonly rolledBackFrom: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
319
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
320
+ readonly steps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
321
+ readonly name: import("effect/Schema").Literals<readonly ["build", "migrate", "start-runners", "drain-previous"]>;
322
+ readonly status: import("effect/Schema").Literals<readonly ["pending", "running", "succeeded", "failed", "skipped"]>;
323
+ readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
324
+ readonly detail: import("effect/Schema").NullOr<import("effect/Schema").String>;
325
+ }>>;
326
+ readonly runners: import("effect/Schema").$Array<import("effect/Schema").Struct<{
327
+ readonly id: import("effect/Schema").String;
328
+ readonly region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
329
+ readonly actorCount: import("effect/Schema").NullOr<import("effect/Schema").Int>;
330
+ readonly cpuPercent: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
331
+ readonly health: import("effect/Schema").Literals<readonly ["healthy", "unhealthy", "starting", "draining"]>;
332
+ }>>;
333
+ }>>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"failBuild", "POST", "/api/projects/:projectId/deployments/:deploymentId/build-failure", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
334
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
335
+ deploymentId: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
336
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
337
+ readonly reason: import("effect/Schema").String;
338
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
339
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
340
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
341
+ readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
342
+ readonly environmentHost: import("effect/Schema").optional<import("effect/Schema").String>;
343
+ readonly commitSha: import("effect/Schema").String;
344
+ readonly message: import("effect/Schema").String;
345
+ readonly author: import("effect/Schema").Struct<{
346
+ readonly name: import("effect/Schema").String;
347
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
348
+ }>;
349
+ readonly regions: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>>;
350
+ readonly runnerCount: import("effect/Schema").Int;
351
+ readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
352
+ readonly status: import("effect/Schema").Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
353
+ readonly rolledBackFrom: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
354
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
355
+ readonly steps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
356
+ readonly name: import("effect/Schema").Literals<readonly ["build", "migrate", "start-runners", "drain-previous"]>;
357
+ readonly status: import("effect/Schema").Literals<readonly ["pending", "running", "succeeded", "failed", "skipped"]>;
358
+ readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
359
+ readonly detail: import("effect/Schema").NullOr<import("effect/Schema").String>;
360
+ }>>;
361
+ readonly runners: import("effect/Schema").$Array<import("effect/Schema").Struct<{
362
+ readonly id: import("effect/Schema").String;
363
+ readonly region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
364
+ readonly actorCount: import("effect/Schema").NullOr<import("effect/Schema").Int>;
365
+ readonly cpuPercent: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
366
+ readonly health: import("effect/Schema").Literals<readonly ["healthy", "unhealthy", "starting", "draining"]>;
367
+ }>>;
368
+ }>>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"get", "GET", "/api/projects/:projectId/deployments/:deploymentId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
369
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
370
+ deploymentId: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
371
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
372
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
373
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
374
+ readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
375
+ readonly environmentHost: import("effect/Schema").optional<import("effect/Schema").String>;
376
+ readonly commitSha: import("effect/Schema").String;
377
+ readonly message: import("effect/Schema").String;
378
+ readonly author: import("effect/Schema").Struct<{
379
+ readonly name: import("effect/Schema").String;
380
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
381
+ }>;
382
+ readonly regions: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>>;
383
+ readonly runnerCount: import("effect/Schema").Int;
384
+ readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
385
+ readonly status: import("effect/Schema").Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
386
+ readonly rolledBackFrom: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
387
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
388
+ readonly steps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
389
+ readonly name: import("effect/Schema").Literals<readonly ["build", "migrate", "start-runners", "drain-previous"]>;
390
+ readonly status: import("effect/Schema").Literals<readonly ["pending", "running", "succeeded", "failed", "skipped"]>;
391
+ readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
392
+ readonly detail: import("effect/Schema").NullOr<import("effect/Schema").String>;
393
+ }>>;
394
+ readonly runners: import("effect/Schema").$Array<import("effect/Schema").Struct<{
395
+ readonly id: import("effect/Schema").String;
396
+ readonly region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
397
+ readonly actorCount: import("effect/Schema").NullOr<import("effect/Schema").Int>;
398
+ readonly cpuPercent: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
399
+ readonly health: import("effect/Schema").Literals<readonly ["healthy", "unhealthy", "starting", "draining"]>;
400
+ }>>;
401
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getBuildLog", "GET", "/api/projects/:projectId/deployments/:deploymentId/build-log", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
402
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
403
+ deploymentId: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
404
+ }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
405
+ after: import("effect/Schema").optional<import("effect/Schema").Int>;
406
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
407
+ readonly lines: import("effect/Schema").$Array<import("effect/Schema").Struct<{
408
+ readonly index: import("effect/Schema").Int;
409
+ readonly at: import("effect/Schema").DateTimeUtc;
410
+ readonly stream: import("effect/Schema").Literals<readonly ["stdout", "stderr"]>;
411
+ readonly text: import("effect/Schema").String;
412
+ }>>;
413
+ readonly complete: import("effect/Schema").Boolean;
414
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getEnvironmentLogs", "GET", "/api/projects/:projectId/environments/:environment/logs", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
415
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
416
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
417
+ }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
418
+ since: import("effect/Schema").optional<import("effect/Schema").DateTimeUtc>;
419
+ limit: import("effect/Schema").optional<import("effect/Schema").Int>;
420
+ cursor: import("effect/Schema").optional<import("effect/Schema").String>;
421
+ wait: import("effect/Schema").optional<import("effect/Schema").Int>;
422
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
423
+ readonly lines: import("effect/Schema").$Array<import("effect/Schema").Struct<{
424
+ readonly id: import("effect/Schema").String;
425
+ readonly deploymentId: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
426
+ readonly runnerId: import("effect/Schema").String;
427
+ readonly at: import("effect/Schema").DateTimeUtc;
428
+ readonly stream: import("effect/Schema").Literals<readonly ["stdout", "stderr", "unknown"]>;
429
+ readonly text: import("effect/Schema").String;
430
+ readonly clipped: import("effect/Schema").Boolean;
431
+ }>>;
432
+ readonly cursor: import("effect/Schema").String;
433
+ readonly more: import("effect/Schema").Boolean;
434
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getLogs", "GET", "/api/projects/:projectId/deployments/:deploymentId/logs", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
435
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
436
+ deploymentId: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
437
+ }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
438
+ since: import("effect/Schema").optional<import("effect/Schema").DateTimeUtc>;
439
+ limit: import("effect/Schema").optional<import("effect/Schema").Int>;
440
+ cursor: import("effect/Schema").optional<import("effect/Schema").String>;
441
+ wait: import("effect/Schema").optional<import("effect/Schema").Int>;
442
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
443
+ readonly lines: import("effect/Schema").$Array<import("effect/Schema").Struct<{
444
+ readonly id: import("effect/Schema").String;
445
+ readonly deploymentId: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
446
+ readonly runnerId: import("effect/Schema").String;
447
+ readonly at: import("effect/Schema").DateTimeUtc;
448
+ readonly stream: import("effect/Schema").Literals<readonly ["stdout", "stderr", "unknown"]>;
449
+ readonly text: import("effect/Schema").String;
450
+ readonly clipped: import("effect/Schema").Boolean;
451
+ }>>;
452
+ readonly cursor: import("effect/Schema").String;
453
+ readonly more: import("effect/Schema").Boolean;
454
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/api/projects/:projectId/deployments", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
455
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
456
+ }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
457
+ limit: import("effect/Schema").optional<import("effect/Schema").Int>;
458
+ cursor: import("effect/Schema").optional<import("effect/Schema").String>;
459
+ environment: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>>;
460
+ status: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>>;
461
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
462
+ readonly items: import("effect/Schema").$Array<import("effect/Schema").Struct<{
463
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
464
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
465
+ readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
466
+ readonly environmentHost: import("effect/Schema").optional<import("effect/Schema").String>;
467
+ readonly commitSha: import("effect/Schema").String;
468
+ readonly message: import("effect/Schema").String;
469
+ readonly author: import("effect/Schema").Struct<{
470
+ readonly name: import("effect/Schema").String;
471
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
472
+ }>;
473
+ readonly regions: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>>;
474
+ readonly runnerCount: import("effect/Schema").Int;
475
+ readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
476
+ readonly status: import("effect/Schema").Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
477
+ readonly rolledBackFrom: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
478
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
479
+ }>>;
480
+ readonly nextCursor: import("effect/Schema").NullOr<import("effect/Schema").String>;
481
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"recordBuild", "POST", "/api/projects/:projectId/deployments/:deploymentId/build", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
482
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
483
+ deploymentId: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
484
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
485
+ readonly image: import("effect/Schema").String;
486
+ readonly commitSha: import("effect/Schema").String;
487
+ readonly environmentSnapshot: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>;
488
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
489
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
490
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
491
+ readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
492
+ readonly environmentHost: import("effect/Schema").optional<import("effect/Schema").String>;
493
+ readonly commitSha: import("effect/Schema").String;
494
+ readonly message: import("effect/Schema").String;
495
+ readonly author: import("effect/Schema").Struct<{
496
+ readonly name: import("effect/Schema").String;
497
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
498
+ }>;
499
+ readonly regions: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>>;
500
+ readonly runnerCount: import("effect/Schema").Int;
501
+ readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
502
+ readonly status: import("effect/Schema").Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
503
+ readonly rolledBackFrom: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
504
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
505
+ readonly steps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
506
+ readonly name: import("effect/Schema").Literals<readonly ["build", "migrate", "start-runners", "drain-previous"]>;
507
+ readonly status: import("effect/Schema").Literals<readonly ["pending", "running", "succeeded", "failed", "skipped"]>;
508
+ readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
509
+ readonly detail: import("effect/Schema").NullOr<import("effect/Schema").String>;
510
+ }>>;
511
+ readonly runners: import("effect/Schema").$Array<import("effect/Schema").Struct<{
512
+ readonly id: import("effect/Schema").String;
513
+ readonly region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
514
+ readonly actorCount: import("effect/Schema").NullOr<import("effect/Schema").Int>;
515
+ readonly cpuPercent: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
516
+ readonly health: import("effect/Schema").Literals<readonly ["healthy", "unhealthy", "starting", "draining"]>;
517
+ }>>;
518
+ }>>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"redeploy", "POST", "/api/projects/:projectId/deployments/:deploymentId/redeploy", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
519
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
520
+ deploymentId: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
521
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
522
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
523
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
524
+ readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
525
+ readonly environmentHost: import("effect/Schema").optional<import("effect/Schema").String>;
526
+ readonly commitSha: import("effect/Schema").String;
527
+ readonly message: import("effect/Schema").String;
528
+ readonly author: import("effect/Schema").Struct<{
529
+ readonly name: import("effect/Schema").String;
530
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
531
+ }>;
532
+ readonly regions: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>>;
533
+ readonly runnerCount: import("effect/Schema").Int;
534
+ readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
535
+ readonly status: import("effect/Schema").Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
536
+ readonly rolledBackFrom: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
537
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
538
+ readonly steps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
539
+ readonly name: import("effect/Schema").Literals<readonly ["build", "migrate", "start-runners", "drain-previous"]>;
540
+ readonly status: import("effect/Schema").Literals<readonly ["pending", "running", "succeeded", "failed", "skipped"]>;
541
+ readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
542
+ readonly detail: import("effect/Schema").NullOr<import("effect/Schema").String>;
543
+ }>>;
544
+ readonly runners: import("effect/Schema").$Array<import("effect/Schema").Struct<{
545
+ readonly id: import("effect/Schema").String;
546
+ readonly region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
547
+ readonly actorCount: import("effect/Schema").NullOr<import("effect/Schema").Int>;
548
+ readonly cpuPercent: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
549
+ readonly health: import("effect/Schema").Literals<readonly ["healthy", "unhealthy", "starting", "draining"]>;
550
+ }>>;
551
+ }>>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"rollback", "POST", "/api/projects/:projectId/deployments/:deploymentId/rollback", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
552
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
553
+ deploymentId: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
554
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
555
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
556
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
557
+ readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
558
+ readonly environmentHost: import("effect/Schema").optional<import("effect/Schema").String>;
559
+ readonly commitSha: import("effect/Schema").String;
560
+ readonly message: import("effect/Schema").String;
561
+ readonly author: import("effect/Schema").Struct<{
562
+ readonly name: import("effect/Schema").String;
563
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
564
+ }>;
565
+ readonly regions: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>>;
566
+ readonly runnerCount: import("effect/Schema").Int;
567
+ readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
568
+ readonly status: import("effect/Schema").Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
569
+ readonly rolledBackFrom: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
570
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
571
+ readonly steps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
572
+ readonly name: import("effect/Schema").Literals<readonly ["build", "migrate", "start-runners", "drain-previous"]>;
573
+ readonly status: import("effect/Schema").Literals<readonly ["pending", "running", "succeeded", "failed", "skipped"]>;
574
+ readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
575
+ readonly detail: import("effect/Schema").NullOr<import("effect/Schema").String>;
576
+ }>>;
577
+ readonly runners: import("effect/Schema").$Array<import("effect/Schema").Struct<{
578
+ readonly id: import("effect/Schema").String;
579
+ readonly region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
580
+ readonly actorCount: import("effect/Schema").NullOr<import("effect/Schema").Int>;
581
+ readonly cpuPercent: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
582
+ readonly health: import("effect/Schema").Literals<readonly ["healthy", "unhealthy", "starting", "draining"]>;
583
+ }>>;
584
+ }>>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"uploadSource", "POST", "/api/projects/:projectId/sources", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
585
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
586
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Uint8Array>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
587
+ readonly digest: import("effect/Schema").String;
588
+ readonly sizeBytes: import("effect/Schema").Int;
589
+ }>>, import("effect/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 import("./errors.ts").PayloadTooLarge>, Authentication, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"domains", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"add", "POST", "/api/projects/:projectId/domains", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
590
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
591
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
592
+ readonly hostname: import("effect/Schema").String;
593
+ readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
594
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
595
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DomainId">;
596
+ readonly hostname: import("effect/Schema").String;
597
+ readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
598
+ readonly status: import("effect/Schema").Literals<readonly ["pending", "verifying", "active"]>;
599
+ readonly dnsRecords: import("effect/Schema").$Array<import("effect/Schema").Struct<{
600
+ readonly type: import("effect/Schema").Literals<readonly ["A", "AAAA", "CNAME", "TXT"]>;
601
+ readonly name: import("effect/Schema").String;
602
+ readonly value: import("effect/Schema").String;
603
+ }>>;
604
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
605
+ }>>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/api/projects/:projectId/domains", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
606
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
607
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
608
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DomainId">;
609
+ readonly hostname: import("effect/Schema").String;
610
+ readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
611
+ readonly status: import("effect/Schema").Literals<readonly ["pending", "verifying", "active"]>;
612
+ readonly dnsRecords: import("effect/Schema").$Array<import("effect/Schema").Struct<{
613
+ readonly type: import("effect/Schema").Literals<readonly ["A", "AAAA", "CNAME", "TXT"]>;
614
+ readonly name: import("effect/Schema").String;
615
+ readonly value: import("effect/Schema").String;
616
+ }>>;
617
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
618
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"remove", "DELETE", "/api/projects/:projectId/domains/:domainId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
619
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
620
+ domainId: import("effect/Schema").brand<import("effect/Schema").String, "DomainId">;
621
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").NoContent>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"verify", "POST", "/api/projects/:projectId/domains/:domainId/verify", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
622
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
623
+ domainId: import("effect/Schema").brand<import("effect/Schema").String, "DomainId">;
624
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
625
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DomainId">;
626
+ readonly hostname: import("effect/Schema").String;
627
+ readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
628
+ readonly status: import("effect/Schema").Literals<readonly ["pending", "verifying", "active"]>;
629
+ readonly dnsRecords: import("effect/Schema").$Array<import("effect/Schema").Struct<{
630
+ readonly type: import("effect/Schema").Literals<readonly ["A", "AAAA", "CNAME", "TXT"]>;
631
+ readonly name: import("effect/Schema").String;
632
+ readonly value: import("effect/Schema").String;
633
+ }>>;
634
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
635
+ }>>, import("effect/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>, Authentication, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"environmentVariables", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"delete", "DELETE", "/api/projects/:projectId/environments/:environment/variables/:name", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
636
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
637
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
638
+ name: import("effect/Schema").String;
639
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").NoContent>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"import", "POST", "/api/projects/:projectId/environments/:environment/variables/import", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
640
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
641
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
642
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
643
+ readonly content: import("effect/Schema").String;
644
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
645
+ readonly created: import("effect/Schema").$Array<import("effect/Schema").String>;
646
+ readonly updated: import("effect/Schema").$Array<import("effect/Schema").String>;
647
+ }>>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/api/projects/:projectId/environments/:environment/variables", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
648
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
649
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
650
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
651
+ readonly name: import("effect/Schema").String;
652
+ readonly usedBy: import("effect/Schema").$Array<import("effect/Schema").String>;
653
+ readonly updatedAt: import("effect/Schema").DateTimeUtc;
654
+ readonly updatedBy: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
655
+ readonly kind: import("effect/Schema").Literals<readonly ["user", "api-key"]>;
656
+ readonly id: import("effect/Schema").String;
657
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
658
+ }>>;
659
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"set", "PUT", "/api/projects/:projectId/environments/:environment/variables/:name", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
660
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
661
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
662
+ name: import("effect/Schema").String;
663
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
664
+ readonly value: import("effect/Schema").String;
665
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
666
+ readonly name: import("effect/Schema").String;
667
+ readonly usedBy: import("effect/Schema").$Array<import("effect/Schema").String>;
668
+ readonly updatedAt: import("effect/Schema").DateTimeUtc;
669
+ readonly updatedBy: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
670
+ readonly kind: import("effect/Schema").Literals<readonly ["user", "api-key"]>;
671
+ readonly id: import("effect/Schema").String;
672
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
673
+ }>>;
674
+ }>>, import("effect/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>, Authentication, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"integrations", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"connect", "POST", "/api/projects/:projectId/integrations/:kind", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
675
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
676
+ kind: import("effect/Schema").Literals<readonly ["github", "slack", "datadog", "opentelemetry", "pagerduty"]>;
677
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
678
+ readonly settings: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
679
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
680
+ readonly redirectUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
681
+ readonly integration: import("effect/Schema").Struct<{
682
+ readonly kind: import("effect/Schema").Literals<readonly ["github", "slack", "datadog", "opentelemetry", "pagerduty"]>;
683
+ readonly status: import("effect/Schema").Literals<readonly ["connected", "disconnected", "error"]>;
684
+ readonly label: import("effect/Schema").NullOr<import("effect/Schema").String>;
685
+ readonly connectedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
686
+ }>;
687
+ }>>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"disconnect", "DELETE", "/api/projects/:projectId/integrations/:kind", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
688
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
689
+ kind: import("effect/Schema").Literals<readonly ["github", "slack", "datadog", "opentelemetry", "pagerduty"]>;
690
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").NoContent>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/api/projects/:projectId/integrations", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
691
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
692
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
693
+ readonly kind: import("effect/Schema").Literals<readonly ["github", "slack", "datadog", "opentelemetry", "pagerduty"]>;
694
+ readonly status: import("effect/Schema").Literals<readonly ["connected", "disconnected", "error"]>;
695
+ readonly label: import("effect/Schema").NullOr<import("effect/Schema").String>;
696
+ readonly connectedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
697
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"invitations", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"accept", "POST", "/api/invitations/:invitationId/accept", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
698
+ invitationId: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
699
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
700
+ readonly organization: import("effect/Schema").Struct<{
701
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
702
+ readonly name: import("effect/Schema").String;
703
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
704
+ readonly plan: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"unbound", {}>, import("effect/Schema").TaggedStruct<"known", {
705
+ readonly id: import("effect/Schema").Literals<readonly ["free", "pro", "team", "enterprise"]>;
706
+ }>, import("effect/Schema").TaggedStruct<"unknown", {
707
+ readonly id: import("effect/Schema").String;
708
+ }>]>;
709
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
710
+ }>;
711
+ readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
712
+ }>>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"cancel", "DELETE", "/api/organizations/:organizationId/invitations/:invitationId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
713
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
714
+ invitationId: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
715
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").NoContent>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"create", "POST", "/api/organizations/:organizationId/invitations", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
716
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
717
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
718
+ readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
719
+ readonly role: import("effect/Schema").Literals<readonly ["admin", "member", "viewer"]>;
720
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
721
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
722
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
723
+ readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
724
+ readonly role: import("effect/Schema").Literals<readonly ["admin", "member", "viewer"]>;
725
+ readonly status: import("effect/Schema").Literals<readonly ["pending", "accepted", "declined", "canceled", "expired"]>;
726
+ readonly invitedBy: import("effect/Schema").Struct<{
727
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
728
+ readonly name: import("effect/Schema").String;
729
+ }>;
730
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
731
+ readonly expiresAt: import("effect/Schema").DateTimeUtc;
732
+ }>>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"decline", "POST", "/api/invitations/:invitationId/decline", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
733
+ invitationId: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
734
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").NoContent>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/api/organizations/:organizationId/invitations", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
735
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
736
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
737
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
738
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
739
+ readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
740
+ readonly role: import("effect/Schema").Literals<readonly ["admin", "member", "viewer"]>;
741
+ readonly status: import("effect/Schema").Literals<readonly ["pending", "accepted", "declined", "canceled", "expired"]>;
742
+ readonly invitedBy: import("effect/Schema").Struct<{
743
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
744
+ readonly name: import("effect/Schema").String;
745
+ }>;
746
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
747
+ readonly expiresAt: import("effect/Schema").DateTimeUtc;
748
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"preview", "GET", "/api/invitations/:invitationId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
749
+ invitationId: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
750
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
751
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
752
+ readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
753
+ readonly role: import("effect/Schema").Literals<readonly ["admin", "member", "viewer"]>;
754
+ readonly status: import("effect/Schema").Literals<readonly ["pending", "accepted", "declined", "canceled", "expired"]>;
755
+ readonly expiresAt: import("effect/Schema").DateTimeUtc;
756
+ readonly inviterName: import("effect/Schema").String;
757
+ readonly organization: import("effect/Schema").Struct<{
758
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
759
+ readonly name: import("effect/Schema").String;
760
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
761
+ readonly plan: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"unbound", {}>, import("effect/Schema").TaggedStruct<"known", {
762
+ readonly id: import("effect/Schema").Literals<readonly ["free", "pro", "team", "enterprise"]>;
763
+ }>, import("effect/Schema").TaggedStruct<"unknown", {
764
+ readonly id: import("effect/Schema").String;
765
+ }>]>;
766
+ readonly memberCount: import("effect/Schema").Int;
767
+ }>;
768
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"resend", "POST", "/api/organizations/:organizationId/invitations/:invitationId/resend", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
769
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
770
+ invitationId: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
771
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
772
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
773
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
774
+ readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
775
+ readonly role: import("effect/Schema").Literals<readonly ["admin", "member", "viewer"]>;
776
+ readonly status: import("effect/Schema").Literals<readonly ["pending", "accepted", "declined", "canceled", "expired"]>;
777
+ readonly invitedBy: import("effect/Schema").Struct<{
778
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
779
+ readonly name: import("effect/Schema").String;
780
+ }>;
781
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
782
+ readonly expiresAt: import("effect/Schema").DateTimeUtc;
783
+ }>>, import("effect/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>, Authentication, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"members", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/api/organizations/:organizationId/members", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
784
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
785
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
786
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "MemberId">;
787
+ readonly user: import("effect/Schema").Struct<{
788
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
789
+ readonly name: import("effect/Schema").String;
790
+ readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
791
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
792
+ }>;
793
+ readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
794
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
795
+ readonly lastActiveAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
796
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"remove", "DELETE", "/api/organizations/:organizationId/members/:memberId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
797
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
798
+ memberId: import("effect/Schema").brand<import("effect/Schema").String, "MemberId">;
799
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").NoContent>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"updateRole", "PATCH", "/api/organizations/:organizationId/members/:memberId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
800
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
801
+ memberId: import("effect/Schema").brand<import("effect/Schema").String, "MemberId">;
802
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
803
+ readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
804
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
805
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "MemberId">;
806
+ readonly user: import("effect/Schema").Struct<{
807
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
808
+ readonly name: import("effect/Schema").String;
809
+ readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
810
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
811
+ }>;
812
+ readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
813
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
814
+ readonly lastActiveAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
815
+ }>>, import("effect/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>, Authentication, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"organizations", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"create", "POST", "/api/organizations", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
816
+ readonly name: import("effect/Schema").brand<import("effect/Schema").String, "Name">;
817
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
818
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
819
+ readonly organization: import("effect/Schema").Struct<{
820
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
821
+ readonly name: import("effect/Schema").String;
822
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
823
+ readonly plan: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"unbound", {}>, import("effect/Schema").TaggedStruct<"known", {
824
+ readonly id: import("effect/Schema").Literals<readonly ["free", "pro", "team", "enterprise"]>;
825
+ }>, import("effect/Schema").TaggedStruct<"unknown", {
826
+ readonly id: import("effect/Schema").String;
827
+ }>]>;
828
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
829
+ }>;
830
+ readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
831
+ }>>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"delete", "DELETE", "/api/organizations/:organizationId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
832
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
833
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").NoContent>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"get", "GET", "/api/organizations/:organizationId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
834
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
835
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
836
+ readonly organization: import("effect/Schema").Struct<{
837
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
838
+ readonly name: import("effect/Schema").String;
839
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
840
+ readonly plan: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"unbound", {}>, import("effect/Schema").TaggedStruct<"known", {
841
+ readonly id: import("effect/Schema").Literals<readonly ["free", "pro", "team", "enterprise"]>;
842
+ }>, import("effect/Schema").TaggedStruct<"unknown", {
843
+ readonly id: import("effect/Schema").String;
844
+ }>]>;
845
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
846
+ }>;
847
+ readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
848
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getDeletion", "GET", "/api/organizations/:organizationId/deletion", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
849
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
850
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
851
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
852
+ readonly phase: import("effect/Schema").Literals<readonly ["billing", "runners", "databases", "records", "completed"]>;
853
+ readonly blocked: import("effect/Schema").Boolean;
854
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/api/organizations", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
855
+ readonly organization: import("effect/Schema").Struct<{
856
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
857
+ readonly name: import("effect/Schema").String;
858
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
859
+ readonly plan: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"unbound", {}>, import("effect/Schema").TaggedStruct<"known", {
860
+ readonly id: import("effect/Schema").Literals<readonly ["free", "pro", "team", "enterprise"]>;
861
+ }>, import("effect/Schema").TaggedStruct<"unknown", {
862
+ readonly id: import("effect/Schema").String;
863
+ }>]>;
864
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
865
+ }>;
866
+ readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
867
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotImplemented>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"update", "PATCH", "/api/organizations/:organizationId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
868
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
869
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
870
+ readonly name: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "Name">>;
871
+ readonly slug: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "Slug">>;
872
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
873
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
874
+ readonly name: import("effect/Schema").String;
875
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
876
+ readonly plan: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"unbound", {}>, import("effect/Schema").TaggedStruct<"known", {
877
+ readonly id: import("effect/Schema").Literals<readonly ["free", "pro", "team", "enterprise"]>;
878
+ }>, import("effect/Schema").TaggedStruct<"unknown", {
879
+ readonly id: import("effect/Schema").String;
880
+ }>]>;
881
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
882
+ }>>, import("effect/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>, Authentication, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"projects", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"create", "POST", "/api/organizations/:organizationId/projects", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
883
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
884
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
885
+ readonly name: import("effect/Schema").brand<import("effect/Schema").String, "Name">;
886
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
887
+ readonly homeRegion: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
888
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
889
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
890
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
891
+ readonly name: import("effect/Schema").String;
892
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
893
+ readonly status: import("effect/Schema").Literals<readonly ["empty", "live", "deploying", "failed"]>;
894
+ readonly homeRegion: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
895
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
896
+ }>>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createEnvironment", "POST", "/api/projects/:projectId/environments", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
897
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
898
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
899
+ readonly name: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
900
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
901
+ readonly name: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
902
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
903
+ readonly currentDeploymentId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
904
+ readonly database: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
905
+ readonly source: import("effect/Schema").Literals<readonly ["managed", "customer"]>;
906
+ readonly state: import("effect/Schema").Literals<readonly ["provisioning", "ready", "read-only", "failed"]>;
907
+ }>>;
908
+ }>>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"delete", "DELETE", "/api/projects/:projectId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
909
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
910
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").NoContent>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"deleteEnvironment", "DELETE", "/api/projects/:projectId/environments/:environment", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
911
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
912
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
913
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").NoContent>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"get", "GET", "/api/projects/:projectId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
914
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
915
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
916
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
917
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
918
+ readonly name: import("effect/Schema").String;
919
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
920
+ readonly status: import("effect/Schema").Literals<readonly ["empty", "live", "deploying", "failed"]>;
921
+ readonly homeRegion: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
922
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
923
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getEndpoints", "GET", "/api/projects/:projectId/environments/:environment/endpoints", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
924
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
925
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
926
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
927
+ readonly httpBaseUrl: import("effect/Schema").String;
928
+ readonly webSocketUrl: import("effect/Schema").String;
929
+ readonly openApiPath: import("effect/Schema").String;
930
+ readonly mcpPath: import("effect/Schema").String;
931
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getEnvironment", "GET", "/api/projects/:projectId/environments/:environment", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
932
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
933
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
934
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
935
+ readonly name: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
936
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
937
+ readonly currentDeploymentId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
938
+ readonly database: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
939
+ readonly source: import("effect/Schema").Literals<readonly ["managed", "customer"]>;
940
+ readonly state: import("effect/Schema").Literals<readonly ["provisioning", "ready", "read-only", "failed"]>;
941
+ }>>;
942
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/api/organizations/:organizationId/projects", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
943
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
944
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
945
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
946
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
947
+ readonly name: import("effect/Schema").String;
948
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
949
+ readonly status: import("effect/Schema").Literals<readonly ["empty", "live", "deploying", "failed"]>;
950
+ readonly homeRegion: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
951
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
952
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listEnvironments", "GET", "/api/projects/:projectId/environments", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
953
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
954
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
955
+ readonly name: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
956
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
957
+ readonly currentDeploymentId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
958
+ readonly database: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
959
+ readonly source: import("effect/Schema").Literals<readonly ["managed", "customer"]>;
960
+ readonly state: import("effect/Schema").Literals<readonly ["provisioning", "ready", "read-only", "failed"]>;
961
+ }>>;
962
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"update", "PATCH", "/api/projects/:projectId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
963
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
964
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
965
+ readonly name: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "Name">>;
966
+ readonly slug: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "Slug">>;
967
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
968
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
969
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
970
+ readonly name: import("effect/Schema").String;
971
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
972
+ readonly status: import("effect/Schema").Literals<readonly ["empty", "live", "deploying", "failed"]>;
973
+ readonly homeRegion: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
974
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
975
+ }>>, import("effect/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>, Authentication, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"regions", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"add", "POST", "/api/projects/:projectId/regions", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
976
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
977
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
978
+ readonly region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
979
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
980
+ readonly id: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
981
+ readonly city: import("effect/Schema").String;
982
+ }>>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"catalog", "GET", "/api/regions", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
983
+ readonly id: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
984
+ readonly city: import("effect/Schema").String;
985
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/api/projects/:projectId/environments/:environment/regions", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
986
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
987
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
988
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
989
+ readonly region: import("effect/Schema").Struct<{
990
+ readonly id: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
991
+ readonly city: import("effect/Schema").String;
992
+ }>;
993
+ readonly home: import("effect/Schema").Boolean;
994
+ readonly tenantCount: import("effect/Schema").Int;
995
+ readonly database: import("effect/Schema").Struct<{
996
+ readonly version: import("effect/Schema").String;
997
+ readonly sizeBytes: import("effect/Schema").Int;
998
+ }>;
999
+ readonly storage: import("effect/Schema").Struct<{
1000
+ readonly usedBytes: import("effect/Schema").Int;
1001
+ readonly limitBytes: import("effect/Schema").Int;
1002
+ }>;
1003
+ readonly cpuPercent: import("effect/Schema").Finite;
1004
+ readonly connections: import("effect/Schema").Struct<{
1005
+ readonly used: import("effect/Schema").Int;
1006
+ readonly limit: import("effect/Schema").Int;
1007
+ }>;
1008
+ readonly runners: import("effect/Schema").Int;
1009
+ readonly largestTables: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1010
+ readonly name: import("effect/Schema").String;
1011
+ readonly actor: import("effect/Schema").String;
1012
+ readonly rows: import("effect/Schema").Int;
1013
+ readonly sizeBytes: import("effect/Schema").Int;
1014
+ readonly region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
1015
+ }>>;
1016
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"remove", "DELETE", "/api/projects/:projectId/regions/:region", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1017
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1018
+ region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
1019
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").NoContent>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"setHome", "PUT", "/api/projects/:projectId/home-region", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1020
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1021
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1022
+ readonly region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
1023
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1024
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1025
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
1026
+ readonly name: import("effect/Schema").String;
1027
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
1028
+ readonly status: import("effect/Schema").Literals<readonly ["empty", "live", "deploying", "failed"]>;
1029
+ readonly homeRegion: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
1030
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
1031
+ }>>, import("effect/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>, Authentication, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"runtime", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"discardDeadLetter", "POST", "/api/projects/:projectId/environments/:environment/runtime/dead-letters/:deadLetterId/discard", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1032
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1033
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1034
+ deadLetterId: import("effect/Schema").brand<import("effect/Schema").String, "DeadLetterId">;
1035
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").NoContent>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getActorType", "GET", "/api/projects/:projectId/environments/:environment/runtime/actor-types/:actorType", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1036
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1037
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1038
+ actorType: import("effect/Schema").String;
1039
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1040
+ readonly name: import("effect/Schema").String;
1041
+ readonly commands: import("effect/Schema").NullOr<import("effect/Schema").$Array<import("effect/Schema").String>>;
1042
+ readonly instances: import("effect/Schema").Int;
1043
+ readonly awake: import("effect/Schema").NullOr<import("effect/Schema").Int>;
1044
+ readonly commandsPerSecond: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
1045
+ readonly p99Ms: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
1046
+ readonly maxMailbox: import("effect/Schema").NullOr<import("effect/Schema").Int>;
1047
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable | typeof import("./runtime.ts").RunnerDefect>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getActorTypeActivity", "GET", "/api/projects/:projectId/environments/:environment/runtime/actor-types/:actorType/activity", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1048
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1049
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1050
+ actorType: import("effect/Schema").String;
1051
+ }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1052
+ window: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["1h", "24h", "7d"]>>;
1053
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1054
+ readonly window: import("effect/Schema").Literals<readonly ["1h", "24h", "7d"]>;
1055
+ readonly since: import("effect/Schema").DateTimeUtc;
1056
+ readonly series: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1057
+ readonly at: import("effect/Schema").DateTimeUtc;
1058
+ readonly value: import("effect/Schema").Finite;
1059
+ }>>;
1060
+ readonly commands: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1061
+ readonly command: import("effect/Schema").String;
1062
+ readonly count: import("effect/Schema").Int;
1063
+ readonly perSecond: import("effect/Schema").Finite;
1064
+ }>>;
1065
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable | typeof import("./runtime.ts").RunnerDefect>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getActorTypeLatency", "GET", "/api/projects/:projectId/environments/:environment/runtime/actor-types/:actorType/latency", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1066
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1067
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1068
+ actorType: import("effect/Schema").String;
1069
+ }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1070
+ window: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["1h", "24h", "7d"]>>;
1071
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1072
+ readonly window: import("effect/Schema").Literals<readonly ["1h", "24h", "7d"]>;
1073
+ readonly since: import("effect/Schema").DateTimeUtc;
1074
+ readonly buckets: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1075
+ readonly upToMs: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
1076
+ readonly count: import("effect/Schema").Int;
1077
+ }>>;
1078
+ readonly p50Ms: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
1079
+ readonly p95Ms: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
1080
+ readonly p99Ms: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
1081
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable | typeof import("./runtime.ts").RunnerDefect>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getConnections", "GET", "/api/projects/:projectId/environments/:environment/runtime/connections", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1082
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1083
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1084
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1085
+ readonly open: import("effect/Schema").Int;
1086
+ readonly parked: import("effect/Schema").NullOr<import("effect/Schema").Int>;
1087
+ readonly sseStreams: import("effect/Schema").Int;
1088
+ readonly feedSubscribers: import("effect/Schema").Int;
1089
+ readonly replayGaps: import("effect/Schema").NullOr<import("effect/Schema").Int>;
1090
+ readonly openVersusParked: import("effect/Schema").NullOr<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1091
+ readonly at: import("effect/Schema").DateTimeUtc;
1092
+ readonly open: import("effect/Schema").Int;
1093
+ readonly parked: import("effect/Schema").Int;
1094
+ }>>>;
1095
+ readonly byActorType: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1096
+ readonly actorType: import("effect/Schema").String;
1097
+ readonly open: import("effect/Schema").Int;
1098
+ readonly parked: import("effect/Schema").NullOr<import("effect/Schema").Int>;
1099
+ readonly sse: import("effect/Schema").Int;
1100
+ }>>;
1101
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable | typeof import("./runtime.ts").RunnerDefect>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getJobs", "GET", "/api/projects/:projectId/environments/:environment/runtime/jobs", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1102
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1103
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1104
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1105
+ readonly queued: import("effect/Schema").Int;
1106
+ readonly running: import("effect/Schema").NullOr<import("effect/Schema").Int>;
1107
+ readonly retrying: import("effect/Schema").Int;
1108
+ readonly dead: import("effect/Schema").Int;
1109
+ readonly byType: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1110
+ readonly jobName: import("effect/Schema").String;
1111
+ readonly done: import("effect/Schema").NullOr<import("effect/Schema").Int>;
1112
+ readonly retried: import("effect/Schema").Int;
1113
+ readonly dead: import("effect/Schema").Int;
1114
+ readonly p99Ms: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
1115
+ }>>;
1116
+ readonly throughput: import("effect/Schema").NullOr<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1117
+ readonly at: import("effect/Schema").DateTimeUtc;
1118
+ readonly value: import("effect/Schema").Finite;
1119
+ }>>>;
1120
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable | typeof import("./runtime.ts").RunnerDefect>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getOverview", "GET", "/api/projects/:projectId/environments/:environment/runtime/overview", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1121
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1122
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1123
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1124
+ readonly commands: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1125
+ readonly perSecond: import("effect/Schema").Finite;
1126
+ readonly series24h: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1127
+ readonly at: import("effect/Schema").DateTimeUtc;
1128
+ readonly value: import("effect/Schema").Finite;
1129
+ }>>;
1130
+ readonly p50Ms: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
1131
+ readonly p99Ms: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
1132
+ }>>;
1133
+ readonly actors: import("effect/Schema").Struct<{
1134
+ readonly awake: import("effect/Schema").NullOr<import("effect/Schema").Int>;
1135
+ readonly total: import("effect/Schema").Int;
1136
+ }>;
1137
+ readonly jobs: import("effect/Schema").Struct<{
1138
+ readonly inFlight: import("effect/Schema").Int;
1139
+ readonly donePerHour: import("effect/Schema").NullOr<import("effect/Schema").Int>;
1140
+ }>;
1141
+ readonly deadLettersByJobType: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1142
+ readonly jobName: import("effect/Schema").String;
1143
+ readonly count: import("effect/Schema").Int;
1144
+ }>>;
1145
+ readonly throughput: import("effect/Schema").NullOr<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1146
+ readonly at: import("effect/Schema").DateTimeUtc;
1147
+ readonly value: import("effect/Schema").Finite;
1148
+ }>>>;
1149
+ readonly p99: import("effect/Schema").NullOr<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1150
+ readonly at: import("effect/Schema").DateTimeUtc;
1151
+ readonly value: import("effect/Schema").Finite;
1152
+ }>>>;
1153
+ readonly health: import("effect/Schema").Struct<{
1154
+ readonly runners: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1155
+ readonly healthy: import("effect/Schema").Int;
1156
+ readonly total: import("effect/Schema").Int;
1157
+ }>>;
1158
+ readonly databaseCpuPercent: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
1159
+ readonly maxMailbox: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1160
+ readonly depth: import("effect/Schema").Int;
1161
+ readonly actor: import("effect/Schema").NullOr<import("effect/Schema").String>;
1162
+ }>>;
1163
+ readonly parkedSockets: import("effect/Schema").NullOr<import("effect/Schema").Int>;
1164
+ readonly outboxLagP99Ms: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
1165
+ readonly lastDeployAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
1166
+ }>;
1167
+ readonly recentDeployments: import("effect/Schema").NullOr<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1168
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
1169
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1170
+ readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1171
+ readonly environmentHost: import("effect/Schema").optional<import("effect/Schema").String>;
1172
+ readonly commitSha: import("effect/Schema").String;
1173
+ readonly message: import("effect/Schema").String;
1174
+ readonly author: import("effect/Schema").Struct<{
1175
+ readonly name: import("effect/Schema").String;
1176
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1177
+ }>;
1178
+ readonly regions: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>>;
1179
+ readonly runnerCount: import("effect/Schema").Int;
1180
+ readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
1181
+ readonly status: import("effect/Schema").Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
1182
+ readonly rolledBackFrom: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
1183
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
1184
+ }>>>;
1185
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable | typeof import("./runtime.ts").RunnerDefect>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getSidebarCounts", "GET", "/api/projects/:projectId/environments/:environment/runtime/sidebar-counts", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1186
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1187
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1188
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1189
+ readonly actorTypes: import("effect/Schema").Int;
1190
+ readonly openDeadLetters: import("effect/Schema").Int;
1191
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable | typeof import("./runtime.ts").RunnerDefect>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"getTimers", "GET", "/api/projects/:projectId/environments/:environment/runtime/timers", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1192
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1193
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1194
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1195
+ readonly pending: import("effect/Schema").Int;
1196
+ readonly nextFireAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
1197
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable | typeof import("./runtime.ts").RunnerDefect>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"inspectActor", "GET", "/api/projects/:projectId/environments/:environment/runtime/actors/:actorType/:key", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1198
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1199
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1200
+ actorType: import("effect/Schema").String;
1201
+ key: import("effect/Schema").String;
1202
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1203
+ readonly address: import("effect/Schema").String;
1204
+ readonly state: import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>;
1205
+ readonly turn: import("effect/Schema").NullOr<import("effect/Schema").Int>;
1206
+ readonly tables: import("effect/Schema").NullOr<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1207
+ readonly table: import("effect/Schema").String;
1208
+ readonly columns: import("effect/Schema").$Array<import("effect/Schema").String>;
1209
+ readonly rows: import("effect/Schema").$Array<import("effect/Schema").$Array<import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
1210
+ }>>>;
1211
+ readonly receipts: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1212
+ readonly commandId: import("effect/Schema").String;
1213
+ readonly command: import("effect/Schema").String;
1214
+ readonly result: import("effect/Schema").NullOr<import("effect/Schema").String>;
1215
+ readonly caller: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1216
+ readonly kind: import("effect/Schema").Literals<readonly ["user", "anonymous", "system"]>;
1217
+ readonly subject: import("effect/Schema").NullOr<import("effect/Schema").String>;
1218
+ readonly source: import("effect/Schema").NullOr<import("effect/Schema").String>;
1219
+ }>>;
1220
+ readonly at: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
1221
+ readonly expiresAt: import("effect/Schema").DateTimeUtc;
1222
+ readonly replayed: import("effect/Schema").Boolean;
1223
+ }>>;
1224
+ readonly events: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1225
+ readonly name: import("effect/Schema").String;
1226
+ readonly cursor: import("effect/Schema").String;
1227
+ readonly emittedAt: import("effect/Schema").DateTimeUtc;
1228
+ readonly subscribers: import("effect/Schema").NullOr<import("effect/Schema").Int>;
1229
+ }>>;
1230
+ readonly jobs: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1231
+ readonly name: import("effect/Schema").String;
1232
+ readonly id: import("effect/Schema").String;
1233
+ readonly attempts: import("effect/Schema").Int;
1234
+ readonly status: import("effect/Schema").Literals<readonly ["queued", "running", "retrying", "done", "dead"]>;
1235
+ }>>;
1236
+ readonly connections: import("effect/Schema").Struct<{
1237
+ readonly sockets: import("effect/Schema").NullOr<import("effect/Schema").Int>;
1238
+ readonly feedCursor: import("effect/Schema").NullOr<import("effect/Schema").String>;
1239
+ }>;
1240
+ readonly properties: import("effect/Schema").Struct<{
1241
+ readonly status: import("effect/Schema").NullOr<import("effect/Schema").Literals<readonly ["awake", "idle"]>>;
1242
+ readonly type: import("effect/Schema").String;
1243
+ readonly generation: import("effect/Schema").Int;
1244
+ readonly runner: import("effect/Schema").NullOr<import("effect/Schema").String>;
1245
+ readonly region: import("effect/Schema").NullOr<import("effect/Schema").String>;
1246
+ readonly tenant: import("effect/Schema").String;
1247
+ readonly mailboxDepth: import("effect/Schema").NullOr<import("effect/Schema").Int>;
1248
+ }>;
1249
+ readonly timeline: import("effect/Schema").NullOr<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1250
+ readonly at: import("effect/Schema").DateTimeUtc;
1251
+ readonly kind: import("effect/Schema").Literals<readonly ["command", "event", "job"]>;
1252
+ readonly label: import("effect/Schema").String;
1253
+ readonly detail: import("effect/Schema").NullOr<import("effect/Schema").String>;
1254
+ readonly caller: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1255
+ readonly kind: import("effect/Schema").Literals<readonly ["user", "anonymous", "system"]>;
1256
+ readonly subject: import("effect/Schema").NullOr<import("effect/Schema").String>;
1257
+ readonly source: import("effect/Schema").NullOr<import("effect/Schema").String>;
1258
+ }>>;
1259
+ }>>>;
1260
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable | typeof import("./runtime.ts").RunnerDefect>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listActorEvents", "GET", "/api/projects/:projectId/environments/:environment/runtime/actors/:actorType/:key/events", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1261
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1262
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1263
+ actorType: import("effect/Schema").String;
1264
+ key: import("effect/Schema").String;
1265
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1266
+ readonly name: import("effect/Schema").String;
1267
+ readonly cursor: import("effect/Schema").String;
1268
+ readonly emittedAt: import("effect/Schema").DateTimeUtc;
1269
+ readonly subscribers: import("effect/Schema").NullOr<import("effect/Schema").Int>;
1270
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable | typeof import("./runtime.ts").RunnerDefect>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listActorInstances", "GET", "/api/projects/:projectId/environments/:environment/runtime/actor-types/:actorType/instances", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1271
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1272
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1273
+ actorType: import("effect/Schema").String;
1274
+ }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1275
+ limit: import("effect/Schema").optional<import("effect/Schema").Int>;
1276
+ cursor: import("effect/Schema").optional<import("effect/Schema").String>;
1277
+ status: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["awake", "idle"]>>;
1278
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1279
+ readonly items: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1280
+ readonly key: import("effect/Schema").String;
1281
+ readonly status: import("effect/Schema").NullOr<import("effect/Schema").Literals<readonly ["awake", "idle"]>>;
1282
+ readonly lastCommand: import("effect/Schema").NullOr<import("effect/Schema").String>;
1283
+ readonly lastActivityAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
1284
+ readonly generation: import("effect/Schema").Int;
1285
+ }>>;
1286
+ readonly nextCursor: import("effect/Schema").NullOr<import("effect/Schema").String>;
1287
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable | typeof import("./runtime.ts").RunnerDefect>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listActorJobs", "GET", "/api/projects/:projectId/environments/:environment/runtime/actors/:actorType/:key/jobs", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1288
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1289
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1290
+ actorType: import("effect/Schema").String;
1291
+ key: import("effect/Schema").String;
1292
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1293
+ readonly name: import("effect/Schema").String;
1294
+ readonly id: import("effect/Schema").String;
1295
+ readonly attempts: import("effect/Schema").Int;
1296
+ readonly status: import("effect/Schema").Literals<readonly ["queued", "running", "retrying", "done", "dead"]>;
1297
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable | typeof import("./runtime.ts").RunnerDefect>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listActorReceipts", "GET", "/api/projects/:projectId/environments/:environment/runtime/actors/:actorType/:key/receipts", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1298
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1299
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1300
+ actorType: import("effect/Schema").String;
1301
+ key: import("effect/Schema").String;
1302
+ }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1303
+ limit: import("effect/Schema").optional<import("effect/Schema").Int>;
1304
+ cursor: import("effect/Schema").optional<import("effect/Schema").String>;
1305
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1306
+ readonly items: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1307
+ readonly commandId: import("effect/Schema").String;
1308
+ readonly command: import("effect/Schema").String;
1309
+ readonly result: import("effect/Schema").NullOr<import("effect/Schema").String>;
1310
+ readonly caller: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1311
+ readonly kind: import("effect/Schema").Literals<readonly ["user", "anonymous", "system"]>;
1312
+ readonly subject: import("effect/Schema").NullOr<import("effect/Schema").String>;
1313
+ readonly source: import("effect/Schema").NullOr<import("effect/Schema").String>;
1314
+ }>>;
1315
+ readonly at: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
1316
+ readonly expiresAt: import("effect/Schema").DateTimeUtc;
1317
+ readonly replayed: import("effect/Schema").Boolean;
1318
+ }>>;
1319
+ readonly nextCursor: import("effect/Schema").NullOr<import("effect/Schema").String>;
1320
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable | typeof import("./runtime.ts").RunnerDefect>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listActorTables", "GET", "/api/projects/:projectId/environments/:environment/runtime/actors/:actorType/:key/tables", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1321
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1322
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1323
+ actorType: import("effect/Schema").String;
1324
+ key: import("effect/Schema").String;
1325
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1326
+ readonly table: import("effect/Schema").String;
1327
+ readonly columns: import("effect/Schema").$Array<import("effect/Schema").String>;
1328
+ readonly rows: import("effect/Schema").$Array<import("effect/Schema").$Array<import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>;
1329
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listActorTimeline", "GET", "/api/projects/:projectId/environments/:environment/runtime/actors/:actorType/:key/timeline", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1330
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1331
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1332
+ actorType: import("effect/Schema").String;
1333
+ key: import("effect/Schema").String;
1334
+ }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1335
+ limit: import("effect/Schema").optional<import("effect/Schema").Int>;
1336
+ cursor: import("effect/Schema").optional<import("effect/Schema").String>;
1337
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1338
+ readonly items: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1339
+ readonly at: import("effect/Schema").DateTimeUtc;
1340
+ readonly kind: import("effect/Schema").Literals<readonly ["command", "event", "job"]>;
1341
+ readonly label: import("effect/Schema").String;
1342
+ readonly detail: import("effect/Schema").NullOr<import("effect/Schema").String>;
1343
+ readonly caller: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1344
+ readonly kind: import("effect/Schema").Literals<readonly ["user", "anonymous", "system"]>;
1345
+ readonly subject: import("effect/Schema").NullOr<import("effect/Schema").String>;
1346
+ readonly source: import("effect/Schema").NullOr<import("effect/Schema").String>;
1347
+ }>>;
1348
+ }>>;
1349
+ readonly nextCursor: import("effect/Schema").NullOr<import("effect/Schema").String>;
1350
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable | typeof import("./runtime.ts").RunnerDefect>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listActorTypes", "GET", "/api/projects/:projectId/environments/:environment/runtime/actor-types", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1351
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1352
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1353
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1354
+ readonly name: import("effect/Schema").String;
1355
+ readonly commands: import("effect/Schema").NullOr<import("effect/Schema").$Array<import("effect/Schema").String>>;
1356
+ readonly instances: import("effect/Schema").Int;
1357
+ readonly awake: import("effect/Schema").NullOr<import("effect/Schema").Int>;
1358
+ readonly commandsPerSecond: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
1359
+ readonly p99Ms: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
1360
+ readonly maxMailbox: import("effect/Schema").NullOr<import("effect/Schema").Int>;
1361
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable | typeof import("./runtime.ts").RunnerDefect>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listCommands", "GET", "/api/projects/:projectId/environments/:environment/runtime/commands", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1362
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1363
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1364
+ }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1365
+ limit: import("effect/Schema").optional<import("effect/Schema").Int>;
1366
+ cursor: import("effect/Schema").optional<import("effect/Schema").String>;
1367
+ actorType: import("effect/Schema").optional<import("effect/Schema").String>;
1368
+ outcome: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["ok", "error", "replayed"]>>;
1369
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1370
+ readonly items: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1371
+ readonly commandId: import("effect/Schema").String;
1372
+ readonly at: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
1373
+ readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
1374
+ readonly address: import("effect/Schema").String;
1375
+ readonly command: import("effect/Schema").String;
1376
+ readonly caller: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1377
+ readonly kind: import("effect/Schema").Literals<readonly ["user", "anonymous", "system"]>;
1378
+ readonly subject: import("effect/Schema").NullOr<import("effect/Schema").String>;
1379
+ readonly source: import("effect/Schema").NullOr<import("effect/Schema").String>;
1380
+ }>>;
1381
+ readonly payloadPreview: import("effect/Schema").NullOr<import("effect/Schema").String>;
1382
+ readonly outcome: import("effect/Schema").Literals<readonly ["ok", "error", "replayed"]>;
1383
+ readonly errorTag: import("effect/Schema").NullOr<import("effect/Schema").String>;
1384
+ }>>;
1385
+ readonly nextCursor: import("effect/Schema").NullOr<import("effect/Schema").String>;
1386
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable | typeof import("./runtime.ts").RunnerDefect>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listDeadLetters", "GET", "/api/projects/:projectId/environments/:environment/runtime/dead-letters", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1387
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1388
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1389
+ }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1390
+ limit: import("effect/Schema").optional<import("effect/Schema").Int>;
1391
+ cursor: import("effect/Schema").optional<import("effect/Schema").String>;
1392
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1393
+ readonly items: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1394
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DeadLetterId">;
1395
+ readonly jobName: import("effect/Schema").String;
1396
+ readonly jobId: import("effect/Schema").String;
1397
+ readonly actor: import("effect/Schema").String;
1398
+ readonly attempts: import("effect/Schema").Int;
1399
+ readonly lastError: import("effect/Schema").String;
1400
+ readonly since: import("effect/Schema").DateTimeUtc;
1401
+ }>>;
1402
+ readonly nextCursor: import("effect/Schema").NullOr<import("effect/Schema").String>;
1403
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable | typeof import("./runtime.ts").RunnerDefect>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listSchedules", "GET", "/api/projects/:projectId/environments/:environment/runtime/schedules", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1404
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1405
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1406
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1407
+ readonly name: import("effect/Schema").String;
1408
+ readonly actorPattern: import("effect/Schema").String;
1409
+ readonly cron: import("effect/Schema").String;
1410
+ readonly lastRun: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1411
+ readonly at: import("effect/Schema").DateTimeUtc;
1412
+ readonly outcome: import("effect/Schema").Literals<readonly ["ok", "error"]>;
1413
+ readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
1414
+ }>>;
1415
+ readonly nextRunAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
1416
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable | typeof import("./runtime.ts").RunnerDefect>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"listWorkflows", "GET", "/api/projects/:projectId/environments/:environment/runtime/workflows", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1417
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1418
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1419
+ }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1420
+ limit: import("effect/Schema").optional<import("effect/Schema").Int>;
1421
+ cursor: import("effect/Schema").optional<import("effect/Schema").String>;
1422
+ status: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["running", "waiting", "completed", "failed"]>>;
1423
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1424
+ readonly items: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1425
+ readonly id: import("effect/Schema").String;
1426
+ readonly name: import("effect/Schema").String;
1427
+ readonly actor: import("effect/Schema").String;
1428
+ readonly step: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1429
+ readonly index: import("effect/Schema").Int;
1430
+ readonly total: import("effect/Schema").NullOr<import("effect/Schema").Int>;
1431
+ readonly name: import("effect/Schema").String;
1432
+ }>>;
1433
+ readonly waitingFor: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1434
+ readonly kind: import("effect/Schema").Literals<readonly ["event", "timer"]>;
1435
+ readonly name: import("effect/Schema").String;
1436
+ }>>;
1437
+ readonly startedAt: import("effect/Schema").DateTimeUtc;
1438
+ readonly status: import("effect/Schema").NullOr<import("effect/Schema").Literals<readonly ["running", "waiting", "completed", "failed"]>>;
1439
+ }>>;
1440
+ readonly nextCursor: import("effect/Schema").NullOr<import("effect/Schema").String>;
1441
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable | typeof import("./runtime.ts").RunnerDefect>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"retryDeadLetter", "POST", "/api/projects/:projectId/environments/:environment/runtime/dead-letters/:deadLetterId/retry", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1442
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1443
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1444
+ deadLetterId: import("effect/Schema").brand<import("effect/Schema").String, "DeadLetterId">;
1445
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").NoContent>, import("effect/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>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"search", "GET", "/api/projects/:projectId/environments/:environment/runtime/search", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1446
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1447
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1448
+ }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1449
+ q: import("effect/Schema").String;
1450
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1451
+ readonly kind: import("effect/Schema").Literals<readonly ["actor-type", "actor", "deployment"]>;
1452
+ readonly id: import("effect/Schema").String;
1453
+ readonly title: import("effect/Schema").String;
1454
+ readonly subtitle: import("effect/Schema").NullOr<import("effect/Schema").String>;
1455
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable | typeof import("./runtime.ts").RunnerDefect>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"sendCommand", "POST", "/api/projects/:projectId/environments/:environment/runtime/commands", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1456
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1457
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1458
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1459
+ readonly address: import("effect/Schema").String;
1460
+ readonly command: import("effect/Schema").String;
1461
+ readonly payload: import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>;
1462
+ readonly commandId: import("effect/Schema").optional<import("effect/Schema").String>;
1463
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1464
+ readonly commandId: import("effect/Schema").String;
1465
+ readonly result: import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>;
1466
+ readonly replayed: import("effect/Schema").Boolean;
1467
+ }>>, import("effect/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 import("./runtime.ts").CommandExpired | typeof import("./runtime.ts").RunnerDefect | typeof import("./runtime.ts").CommandRefused | typeof import("./runtime.ts").CommandFailed | typeof import("./runtime.ts").QuotaExceeded | typeof import("./runtime.ts").QuotaUnbound>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"streamCommands", "GET", "/api/projects/:projectId/environments/:environment/runtime/commands/stream", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1468
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1469
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1470
+ }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1471
+ actorType: import("effect/Schema").optional<import("effect/Schema").String>;
1472
+ outcome: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["ok", "error", "replayed"]>>;
1473
+ }>>, never, never, import("effect/http-api/HttpApiSchema").StreamSse<import("effect/http-api/HttpApiSchema").SseEventFromData<import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1474
+ readonly commandId: import("effect/Schema").String;
1475
+ readonly at: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
1476
+ readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
1477
+ readonly address: import("effect/Schema").String;
1478
+ readonly command: import("effect/Schema").String;
1479
+ readonly caller: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1480
+ readonly kind: import("effect/Schema").Literals<readonly ["user", "anonymous", "system"]>;
1481
+ readonly subject: import("effect/Schema").NullOr<import("effect/Schema").String>;
1482
+ readonly source: import("effect/Schema").NullOr<import("effect/Schema").String>;
1483
+ }>>;
1484
+ readonly payloadPreview: import("effect/Schema").NullOr<import("effect/Schema").String>;
1485
+ readonly outcome: import("effect/Schema").Literals<readonly ["ok", "error", "replayed"]>;
1486
+ readonly errorTag: import("effect/Schema").NullOr<import("effect/Schema").String>;
1487
+ }>>>, typeof import("./runtime.ts").CommandStreamGap, {
1488
+ readonly commandId: string;
1489
+ readonly at: import("effect/DateTime").Utc | null;
1490
+ readonly durationMs: number | null;
1491
+ readonly address: string;
1492
+ readonly command: string;
1493
+ readonly caller: {
1494
+ readonly kind: "anonymous" | "system" | "user";
1495
+ readonly subject: string | null;
1496
+ readonly source: string | null;
1497
+ } | null;
1498
+ readonly payloadPreview: string | null;
1499
+ readonly outcome: "error" | "ok" | "replayed";
1500
+ readonly errorTag: string | null;
1501
+ }>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable | typeof import("./runtime.ts").RunnerDefect>, Authentication, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"usage", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"get", "GET", "/api/organizations/:organizationId/usage", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1502
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
1503
+ }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1504
+ period: import("effect/Schema").optional<import("effect/Schema").String>;
1505
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1506
+ readonly period: import("effect/Schema").String;
1507
+ readonly meters: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1508
+ readonly meter: import("effect/Schema").Literals<readonly ["runnerHours", "storageGb"]>;
1509
+ readonly used: import("effect/Schema").Finite;
1510
+ readonly included: import("effect/Schema").Finite;
1511
+ readonly overage: import("effect/Schema").Finite;
1512
+ readonly overageCostCents: import("effect/Schema").Finite;
1513
+ }>>;
1514
+ readonly latestStorageSample: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1515
+ readonly bytes: import("effect/Schema").Finite;
1516
+ readonly sampledAt: import("effect/Schema").DateTimeUtc;
1517
+ }>>;
1518
+ readonly caps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1519
+ readonly limit: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
1520
+ readonly used: import("effect/Schema").Finite;
1521
+ readonly atCap: import("effect/Schema").Boolean;
1522
+ readonly refusing: import("effect/Schema").Boolean;
1523
+ readonly reason: import("effect/Schema").optionalKey<import("effect/Schema").Literal<"unbound">>;
1524
+ readonly cap: import("effect/Schema").Literals<readonly ["spend", "connections", "compute", "storage"]>;
1525
+ }>>;
1526
+ readonly byProject: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1527
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1528
+ readonly name: import("effect/Schema").String;
1529
+ readonly computeUnitHours: import("effect/Schema").Finite;
1530
+ readonly compute: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1531
+ readonly cpuKind: import("effect/Schema").Literals<readonly ["shared", "performance"]>;
1532
+ readonly cpus: import("effect/Schema").Int;
1533
+ readonly memoryMb: import("effect/Schema").Int;
1534
+ readonly environmentId: import("effect/Schema").brand<import("effect/Schema").String, "EnvironmentId">;
1535
+ readonly machineHours: import("effect/Schema").Finite;
1536
+ readonly computeUnitHours: import("effect/Schema").Finite;
1537
+ }>>;
1538
+ readonly storageGbMonths: import("effect/Schema").Finite;
1539
+ readonly estimatedCostCents: import("effect/Schema").Finite;
1540
+ }>>;
1541
+ readonly pricing: import("effect/Schema").Struct<{
1542
+ readonly computeCentsPerUnitHour: import("effect/Schema").Finite;
1543
+ readonly storageCentsPerGbMonth: import("effect/Schema").Finite;
1544
+ readonly provisional: import("effect/Schema").optionalKey<import("effect/Schema").Boolean>;
1545
+ }>;
1546
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never>, false>>;
1547
+ /**
1548
+ * The console's control-plane and runtime-inspection API. Every endpoint lives
1549
+ * under `/api` and requires `Authentication`; a browser client carries the
1550
+ * session cookie and a machine client sends `x-api-key`. Sign-in, sign-up,
1551
+ * email verification and password reset are Better Auth's own routes under
1552
+ * `/auth`, not part of this API.
1553
+ */
1554
+ export declare class CloudApi extends CloudApi_base {
1555
+ }
1556
+ export {};