@rikalabs/akter-cli 0.1.0-alpha.3 → 0.1.0-alpha.5

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.
@@ -1,122 +1,70 @@
1
1
  import { HttpApi } from "effect/http-api";
2
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;
3
+ declare const CloudApi_base: HttpApi.HttpApi<"akter-cloud", 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<{
4
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
5
+ }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
6
+ limit: import("effect/Schema").optional<import("effect/Schema").Int>;
7
+ cursor: import("effect/Schema").optional<import("effect/Schema").String>;
8
+ action: import("effect/Schema").optional<import("effect/Schema").String>;
9
+ actorId: import("effect/Schema").optional<import("effect/Schema").String>;
10
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
11
+ readonly items: import("effect/Schema").$Array<import("effect/Schema").Struct<{
12
+ readonly id: import("effect/Schema").String;
13
+ readonly at: import("effect/Schema").DateTimeUtc;
14
+ readonly actor: import("effect/Schema").Struct<{
15
+ readonly kind: import("effect/Schema").Literals<readonly ["user", "api-key"]>;
16
+ readonly id: import("effect/Schema").String;
17
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
18
+ }>;
19
+ readonly action: import("effect/Schema").String;
20
+ readonly target: import("effect/Schema").Struct<{
21
+ readonly type: import("effect/Schema").String;
22
+ readonly id: import("effect/Schema").NullOr<import("effect/Schema").String>;
23
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
24
+ }>;
25
+ readonly ipAddress: import("effect/Schema").NullOr<import("effect/Schema").String>;
14
26
  }>>;
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>;
27
+ readonly nextCursor: import("effect/Schema").NullOr<import("effect/Schema").String>;
28
+ }>>, 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<"usage", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"get", "GET", "/api/organizations/:organizationId/usage", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
29
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
30
+ }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
31
+ period: import("effect/Schema").optional<import("effect/Schema").String>;
32
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
33
+ readonly period: import("effect/Schema").String;
34
+ readonly meters: import("effect/Schema").$Array<import("effect/Schema").Struct<{
35
+ readonly meter: import("effect/Schema").Literal<"runnerHours">;
36
+ readonly used: import("effect/Schema").Finite;
37
+ readonly included: import("effect/Schema").Finite;
38
+ readonly overage: import("effect/Schema").Finite;
39
+ readonly overageCostCents: import("effect/Schema").Finite;
38
40
  }>>;
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"]>;
41
+ readonly caps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
42
+ readonly limit: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
43
+ readonly used: import("effect/Schema").Finite;
44
+ readonly atCap: import("effect/Schema").Boolean;
45
+ readonly refusing: import("effect/Schema").Boolean;
46
+ readonly reason: import("effect/Schema").optionalKey<import("effect/Schema").Literal<"unbound">>;
47
+ readonly cap: import("effect/Schema").Literals<readonly ["spend", "connections", "compute"]>;
54
48
  }>>;
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">;
49
+ readonly byProject: import("effect/Schema").$Array<import("effect/Schema").Struct<{
50
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
70
51
  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;
52
+ readonly computeUnitHours: import("effect/Schema").Finite;
53
+ readonly compute: import("effect/Schema").$Array<import("effect/Schema").Struct<{
54
+ readonly cpuKind: import("effect/Schema").Literals<readonly ["shared", "performance"]>;
55
+ readonly cpus: import("effect/Schema").Int;
56
+ readonly memoryMb: import("effect/Schema").Int;
57
+ readonly environmentId: import("effect/Schema").brand<import("effect/Schema").String, "EnvironmentId">;
58
+ readonly machineHours: import("effect/Schema").Finite;
59
+ readonly computeUnitHours: import("effect/Schema").Finite;
60
+ }>>;
61
+ readonly estimatedCostCents: import("effect/Schema").Finite;
91
62
  }>>;
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<{
63
+ readonly pricing: import("effect/Schema").Struct<{
64
+ readonly computeCentsPerUnitHour: import("effect/Schema").Finite;
65
+ readonly provisional: import("effect/Schema").optionalKey<import("effect/Schema").Boolean>;
66
+ }>;
67
+ }>>, 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<"apiKeys", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"create", "POST", "/api/organizations/:organizationId/api-keys", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
120
68
  organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
121
69
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
122
70
  readonly name: import("effect/Schema").brand<import("effect/Schema").String, "Name">;
@@ -167,496 +115,132 @@ declare const CloudApi_base: HttpApi.HttpApi<"akter-cloud", import("effect/http-
167
115
  }>>>, 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
116
  organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
169
117
  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<{
118
+ }>>, 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<"members", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/api/organizations/:organizationId/members", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
171
119
  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<{
120
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
121
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "MemberId">;
122
+ readonly user: import("effect/Schema").Struct<{
123
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
124
+ readonly name: import("effect/Schema").String;
125
+ readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
126
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
127
+ }>;
128
+ readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
129
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
130
+ readonly lastActiveAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
131
+ }>>>, 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<{
196
132
  organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
133
+ memberId: import("effect/Schema").brand<import("effect/Schema").String, "MemberId">;
134
+ }>>, 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<{
135
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
136
+ memberId: import("effect/Schema").brand<import("effect/Schema").String, "MemberId">;
197
137
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
198
- readonly plan: import("effect/Schema").Literals<readonly ["pro", "team", "enterprise"]>;
138
+ readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
199
139
  }>>, 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"]>;
140
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "MemberId">;
141
+ readonly user: import("effect/Schema").Struct<{
142
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
207
143
  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;
144
+ readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
145
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
228
146
  }>;
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">;
147
+ readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
148
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
149
+ readonly lastActiveAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
150
+ }>>, 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<{
151
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
152
+ kind: import("effect/Schema").Literals<readonly ["github", "slack", "datadog", "opentelemetry", "pagerduty"]>;
288
153
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
289
- readonly plan: import("effect/Schema").Literals<readonly ["pro", "team", "enterprise"]>;
154
+ readonly settings: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
290
155
  }>>, 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<{
156
+ readonly redirectUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
157
+ readonly integration: import("effect/Schema").Struct<{
158
+ readonly kind: import("effect/Schema").Literals<readonly ["github", "slack", "datadog", "opentelemetry", "pagerduty"]>;
159
+ readonly status: import("effect/Schema").Literals<readonly ["connected", "disconnected", "error"]>;
160
+ readonly label: import("effect/Schema").NullOr<import("effect/Schema").String>;
161
+ readonly connectedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
162
+ }>;
163
+ }>>, 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<{
164
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
165
+ kind: import("effect/Schema").Literals<readonly ["github", "slack", "datadog", "opentelemetry", "pagerduty"]>;
166
+ }>>, 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<{
167
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
168
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
169
+ readonly kind: import("effect/Schema").Literals<readonly ["github", "slack", "datadog", "opentelemetry", "pagerduty"]>;
170
+ readonly status: import("effect/Schema").Literals<readonly ["connected", "disconnected", "error"]>;
171
+ readonly label: import("effect/Schema").NullOr<import("effect/Schema").String>;
172
+ readonly connectedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
173
+ }>>>, 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<"domains", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"add", "POST", "/api/projects/:projectId/domains", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
293
174
  projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
294
175
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
176
+ readonly hostname: import("effect/Schema").String;
295
177
  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
178
  }>>, 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">;
179
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DomainId">;
180
+ readonly hostname: import("effect/Schema").String;
306
181
  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<{
182
+ readonly status: import("effect/Schema").Literals<readonly ["pending", "verifying", "active"]>;
183
+ readonly dnsRecords: import("effect/Schema").$Array<import("effect/Schema").Struct<{
184
+ readonly type: import("effect/Schema").Literals<readonly ["A", "AAAA", "CNAME", "TXT"]>;
311
185
  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"]>;
186
+ readonly value: import("effect/Schema").String;
332
187
  }>>;
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<{
188
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
189
+ }>>, 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<{
334
190
  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">;
191
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
192
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DomainId">;
193
+ readonly hostname: import("effect/Schema").String;
341
194
  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<{
195
+ readonly status: import("effect/Schema").Literals<readonly ["pending", "verifying", "active"]>;
196
+ readonly dnsRecords: import("effect/Schema").$Array<import("effect/Schema").Struct<{
197
+ readonly type: import("effect/Schema").Literals<readonly ["A", "AAAA", "CNAME", "TXT"]>;
346
198
  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"]>;
199
+ readonly value: import("effect/Schema").String;
367
200
  }>>;
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<{
201
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
202
+ }>>>, 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<{
369
203
  projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
370
- deploymentId: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
204
+ domainId: import("effect/Schema").brand<import("effect/Schema").String, "DomainId">;
205
+ }>>, 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<{
206
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
207
+ domainId: import("effect/Schema").brand<import("effect/Schema").String, "DomainId">;
371
208
  }>>, 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">;
209
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DomainId">;
210
+ readonly hostname: import("effect/Schema").String;
374
211
  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<{
212
+ readonly status: import("effect/Schema").Literals<readonly ["pending", "verifying", "active"]>;
213
+ readonly dnsRecords: import("effect/Schema").$Array<import("effect/Schema").Struct<{
214
+ readonly type: import("effect/Schema").Literals<readonly ["A", "AAAA", "CNAME", "TXT"]>;
379
215
  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"]>;
216
+ readonly value: import("effect/Schema").String;
400
217
  }>>;
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<{
218
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
219
+ }>>, 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<{
402
220
  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<{
221
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
222
+ name: import("effect/Schema").String;
223
+ }>>, 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<{
415
224
  projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
416
225
  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<{
226
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
227
+ readonly content: import("effect/Schema").String;
228
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
229
+ readonly created: import("effect/Schema").$Array<import("effect/Schema").String>;
230
+ readonly updated: import("effect/Schema").$Array<import("effect/Schema").String>;
231
+ }>>, 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<{
435
232
  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<{
233
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
234
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
235
+ readonly name: import("effect/Schema").String;
236
+ readonly usedBy: import("effect/Schema").$Array<import("effect/Schema").String>;
237
+ readonly updatedAt: import("effect/Schema").DateTimeUtc;
238
+ readonly updatedBy: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
239
+ readonly kind: import("effect/Schema").Literals<readonly ["user", "api-key"]>;
444
240
  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;
241
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
451
242
  }>>;
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<{
243
+ }>>>, 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
244
  projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
661
245
  environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
662
246
  name: import("effect/Schema").String;
@@ -671,58 +255,158 @@ declare const CloudApi_base: HttpApi.HttpApi<"akter-cloud", import("effect/http-
671
255
  readonly id: import("effect/Schema").String;
672
256
  readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
673
257
  }>>;
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<{
258
+ }>>, 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<{
675
259
  projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
676
- kind: import("effect/Schema").Literals<readonly ["github", "slack", "datadog", "opentelemetry", "pagerduty"]>;
677
260
  }>>, 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>>;
261
+ readonly region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
679
262
  }>>, 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<{
263
+ readonly id: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
264
+ readonly city: import("effect/Schema").String;
265
+ }>>, 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<{
266
+ readonly id: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
267
+ readonly city: import("effect/Schema").String;
268
+ }>>>, 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<{
691
269
  projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
270
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
692
271
  }>>, 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;
272
+ readonly region: import("effect/Schema").Struct<{
273
+ readonly id: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
274
+ readonly city: import("effect/Schema").String;
710
275
  }>;
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"]>;
276
+ readonly home: import("effect/Schema").Boolean;
277
+ readonly tenantCount: import("effect/Schema").Int;
278
+ readonly database: import("effect/Schema").Struct<{
279
+ readonly version: import("effect/Schema").String;
280
+ readonly sizeBytes: import("effect/Schema").Int;
281
+ }>;
282
+ readonly storage: import("effect/Schema").Struct<{
283
+ readonly usedBytes: import("effect/Schema").Int;
284
+ readonly limitBytes: import("effect/Schema").Int;
285
+ }>;
286
+ readonly cpuPercent: import("effect/Schema").Finite;
287
+ readonly connections: import("effect/Schema").Struct<{
288
+ readonly used: import("effect/Schema").Int;
289
+ readonly limit: import("effect/Schema").Int;
290
+ }>;
291
+ readonly runners: import("effect/Schema").Int;
292
+ readonly largestTables: import("effect/Schema").$Array<import("effect/Schema").Struct<{
293
+ readonly name: import("effect/Schema").String;
294
+ readonly actor: import("effect/Schema").String;
295
+ readonly rows: import("effect/Schema").Int;
296
+ readonly sizeBytes: import("effect/Schema").Int;
297
+ readonly region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
298
+ }>>;
299
+ }>>>, 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<{
300
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
301
+ region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
302
+ }>>, 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<{
303
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
304
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
305
+ readonly region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
306
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
307
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
308
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
309
+ readonly name: import("effect/Schema").String;
310
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
311
+ readonly status: import("effect/Schema").Literals<readonly ["empty", "live", "deploying", "failed"]>;
312
+ readonly homeRegion: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
313
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
314
+ }>>, 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<{
315
+ readonly name: import("effect/Schema").brand<import("effect/Schema").String, "Name">;
316
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
317
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
318
+ readonly organization: import("effect/Schema").Struct<{
319
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
320
+ readonly name: import("effect/Schema").String;
321
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
322
+ readonly plan: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"unbound", {}>, import("effect/Schema").TaggedStruct<"known", {
323
+ readonly id: import("effect/Schema").Literals<readonly ["free", "pro", "team", "enterprise"]>;
324
+ }>, import("effect/Schema").TaggedStruct<"unknown", {
325
+ readonly id: import("effect/Schema").String;
326
+ }>]>;
327
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
328
+ }>;
329
+ readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
330
+ }>>, 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<{
331
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
332
+ }>>, 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<{
333
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
334
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
335
+ readonly organization: import("effect/Schema").Struct<{
336
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
337
+ readonly name: import("effect/Schema").String;
338
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
339
+ readonly plan: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"unbound", {}>, import("effect/Schema").TaggedStruct<"known", {
340
+ readonly id: import("effect/Schema").Literals<readonly ["free", "pro", "team", "enterprise"]>;
341
+ }>, import("effect/Schema").TaggedStruct<"unknown", {
342
+ readonly id: import("effect/Schema").String;
343
+ }>]>;
344
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
345
+ }>;
346
+ readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
347
+ }>>, 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<{
348
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
349
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
350
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
351
+ readonly phase: import("effect/Schema").Literals<readonly ["billing", "runners", "databases", "records", "completed"]>;
352
+ readonly blocked: import("effect/Schema").Boolean;
353
+ }>>, 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<{
354
+ readonly organization: import("effect/Schema").Struct<{
355
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
356
+ readonly name: import("effect/Schema").String;
357
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
358
+ readonly plan: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"unbound", {}>, import("effect/Schema").TaggedStruct<"known", {
359
+ readonly id: import("effect/Schema").Literals<readonly ["free", "pro", "team", "enterprise"]>;
360
+ }>, import("effect/Schema").TaggedStruct<"unknown", {
361
+ readonly id: import("effect/Schema").String;
362
+ }>]>;
363
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
364
+ }>;
365
+ readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
366
+ }>>>, 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<{
367
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
368
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
369
+ readonly name: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "Name">>;
370
+ readonly slug: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "Slug">>;
371
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
372
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
373
+ readonly name: import("effect/Schema").String;
374
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
375
+ readonly plan: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"unbound", {}>, import("effect/Schema").TaggedStruct<"known", {
376
+ readonly id: import("effect/Schema").Literals<readonly ["free", "pro", "team", "enterprise"]>;
377
+ }>, import("effect/Schema").TaggedStruct<"unknown", {
378
+ readonly id: import("effect/Schema").String;
379
+ }>]>;
380
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
381
+ }>>, 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<"invitations", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"accept", "POST", "/api/invitations/:invitationId/accept", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
382
+ invitationId: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
383
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
384
+ readonly organization: import("effect/Schema").Struct<{
385
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
386
+ readonly name: import("effect/Schema").String;
387
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
388
+ readonly plan: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"unbound", {}>, import("effect/Schema").TaggedStruct<"known", {
389
+ readonly id: import("effect/Schema").Literals<readonly ["free", "pro", "team", "enterprise"]>;
390
+ }>, import("effect/Schema").TaggedStruct<"unknown", {
391
+ readonly id: import("effect/Schema").String;
392
+ }>]>;
393
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
394
+ }>;
395
+ readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
396
+ }>>, 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<{
397
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
398
+ invitationId: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
399
+ }>>, 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<{
400
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
401
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
402
+ readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
403
+ readonly role: import("effect/Schema").Literals<readonly ["admin", "member", "viewer"]>;
404
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
405
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
406
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
407
+ readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
408
+ readonly role: import("effect/Schema").Literals<readonly ["admin", "member", "viewer"]>;
409
+ readonly status: import("effect/Schema").Literals<readonly ["pending", "accepted", "declined", "canceled", "expired"]>;
726
410
  readonly invitedBy: import("effect/Schema").Struct<{
727
411
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
728
412
  readonly name: import("effect/Schema").String;
@@ -780,78 +464,564 @@ declare const CloudApi_base: HttpApi.HttpApi<"akter-cloud", import("effect/http-
780
464
  }>;
781
465
  readonly createdAt: import("effect/Schema").DateTimeUtc;
782
466
  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<{
467
+ }>>, 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<"billing", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"changePlan", "POST", "/api/organizations/:organizationId/billing/plan", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
784
468
  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">;
469
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
470
+ readonly plan: import("effect/Schema").Literals<readonly ["pro", "team", "enterprise"]>;
471
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
472
+ readonly requestId: import("effect/Schema").String;
473
+ readonly status: import("effect/Schema").Literals<readonly ["pending", "completed", "failed"]>;
474
+ }>>, 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<{
475
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
476
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
477
+ readonly plan: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"known", {
478
+ readonly id: import("effect/Schema").Literals<readonly ["free", "pro", "team", "enterprise"]>;
789
479
  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>;
480
+ readonly basePriceCents: import("effect/Schema").Int;
481
+ readonly currency: import("effect/Schema").Literal<"usd">;
482
+ readonly renewsAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
483
+ readonly monthToDateEstimateCents: import("effect/Schema").Int;
484
+ readonly provisional: import("effect/Schema").optionalKey<import("effect/Schema").Boolean>;
485
+ readonly subscribedId: import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["free", "pro", "team", "enterprise"]>>;
486
+ readonly paymentStatus: import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["free", "active", "past_due", "unpaid", "canceled", "incomplete"]>>;
487
+ }>, import("effect/Schema").TaggedStruct<"unbound", {}>]>;
488
+ readonly paymentMethod: import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"card", {
489
+ readonly brand: import("effect/Schema").String;
490
+ readonly lastFour: import("effect/Schema").String;
491
+ readonly expiryMonth: import("effect/Schema").Int;
492
+ readonly expiryYear: import("effect/Schema").Int;
493
+ }>, import("effect/Schema").TaggedStruct<"link", {
494
+ readonly email: import("effect/Schema").NullOr<import("effect/Schema").String>;
495
+ }>]>>;
496
+ readonly billingEmail: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "Email">>;
497
+ readonly spendLimit: import("effect/Schema").Struct<{
498
+ readonly limitCents: import("effect/Schema").NullOr<import("effect/Schema").Int>;
499
+ readonly currentSpendCents: import("effect/Schema").Int;
792
500
  }>;
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<{
501
+ readonly caps: import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").Struct<{
502
+ readonly limit: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
503
+ readonly used: import("effect/Schema").Finite;
504
+ readonly atCap: import("effect/Schema").Boolean;
505
+ readonly refusing: import("effect/Schema").Boolean;
506
+ readonly reason: import("effect/Schema").optionalKey<import("effect/Schema").Literal<"unbound">>;
507
+ readonly cap: import("effect/Schema").Literals<readonly ["spend", "connections", "compute"]>;
508
+ }>>>;
509
+ }>>, 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<{
797
510
  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<{
511
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
512
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "InvoiceId">;
513
+ readonly number: import("effect/Schema").String;
514
+ readonly periodStart: import("effect/Schema").DateTimeUtc;
515
+ readonly periodEnd: import("effect/Schema").DateTimeUtc;
516
+ readonly amountCents: import("effect/Schema").Int;
517
+ readonly currency: import("effect/Schema").Literal<"usd">;
518
+ readonly status: import("effect/Schema").Literals<readonly ["draft", "open", "paid", "void", "uncollectible"]>;
519
+ readonly pdfUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
520
+ }>>>, 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<{
521
+ readonly plans: import("effect/Schema").$Array<import("effect/Schema").Struct<{
522
+ readonly id: import("effect/Schema").Literals<readonly ["free", "pro", "team", "enterprise"]>;
523
+ readonly name: import("effect/Schema").String;
524
+ readonly basePriceCents: import("effect/Schema").Int;
525
+ readonly currency: import("effect/Schema").Literal<"usd">;
526
+ readonly allowances: import("effect/Schema").Struct<{
527
+ readonly computeUnitHours: import("effect/Schema").Finite;
528
+ readonly computeUnitHourCap: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
529
+ readonly concurrentConnections: import("effect/Schema").Int;
530
+ }>;
531
+ readonly overage: import("effect/Schema").Struct<{
532
+ readonly computeCentsPerUnitHour: import("effect/Schema").Finite;
533
+ }>;
534
+ readonly features: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["compute-overage", "compute-cap", "byo-database", "checkout"]>>;
535
+ readonly provisional: import("effect/Schema").Boolean;
536
+ }>>;
537
+ readonly computeSizes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
538
+ readonly cpuKind: import("effect/Schema").Literals<readonly ["shared", "performance"]>;
539
+ readonly cpus: import("effect/Schema").Int;
540
+ readonly memoryMb: import("effect/Schema").Int;
541
+ readonly unitsPerHour: import("effect/Schema").Finite;
542
+ }>>;
543
+ readonly provisional: import("effect/Schema").Boolean;
544
+ }>>, 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<{
545
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
546
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
547
+ readonly url: import("effect/Schema").String;
548
+ }>>, 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<{
800
549
  organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
801
- memberId: import("effect/Schema").brand<import("effect/Schema").String, "MemberId">;
802
550
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
803
- readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
551
+ readonly limitCents: import("effect/Schema").NullOr<import("effect/Schema").Int>;
552
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
553
+ readonly limitCents: import("effect/Schema").NullOr<import("effect/Schema").Int>;
554
+ readonly currentSpendCents: import("effect/Schema").Int;
555
+ }>>, 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<{
556
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
557
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
558
+ readonly plan: import("effect/Schema").Literals<readonly ["pro", "team", "enterprise"]>;
559
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
560
+ readonly url: import("effect/Schema").String;
561
+ }>>, 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<{
562
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
804
563
  }>>, 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
564
  readonly name: import("effect/Schema").brand<import("effect/Schema").String, "Name">;
817
565
  readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
566
+ readonly homeRegion: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
818
567
  }>>, 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<{
568
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
569
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
570
+ readonly name: import("effect/Schema").String;
571
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
572
+ readonly status: import("effect/Schema").Literals<readonly ["empty", "live", "deploying", "failed"]>;
573
+ readonly homeRegion: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
574
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
575
+ }>>, 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<{
576
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
577
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
578
+ readonly name: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
579
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
580
+ readonly name: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
581
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
582
+ readonly currentDeploymentId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
583
+ readonly database: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
584
+ readonly source: import("effect/Schema").Literal<"customer">;
585
+ readonly state: import("effect/Schema").Literals<readonly ["missing", "reachable", "unreachable"]>;
586
+ readonly latency: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
587
+ readonly latencyWarning: import("effect/Schema").Boolean;
588
+ readonly runnerCap: import("effect/Schema").NullOr<import("effect/Schema").Int>;
589
+ }>>;
590
+ }>>, 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<{
591
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
592
+ }>>, 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<{
593
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
594
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
595
+ }>>, 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<{
596
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
597
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
598
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
599
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
600
+ readonly name: import("effect/Schema").String;
601
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
602
+ readonly status: import("effect/Schema").Literals<readonly ["empty", "live", "deploying", "failed"]>;
603
+ readonly homeRegion: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
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").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<{
606
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
607
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
608
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
609
+ readonly httpBaseUrl: import("effect/Schema").String;
610
+ readonly webSocketUrl: import("effect/Schema").String;
611
+ readonly openApiPath: import("effect/Schema").String;
612
+ readonly mcpPath: import("effect/Schema").String;
613
+ }>>, 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<{
614
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
615
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
616
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
617
+ readonly name: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
618
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
619
+ readonly currentDeploymentId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
620
+ readonly database: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
621
+ readonly source: import("effect/Schema").Literal<"customer">;
622
+ readonly state: import("effect/Schema").Literals<readonly ["missing", "reachable", "unreachable"]>;
623
+ readonly latency: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
624
+ readonly latencyWarning: import("effect/Schema").Boolean;
625
+ readonly runnerCap: import("effect/Schema").NullOr<import("effect/Schema").Int>;
626
+ }>>;
627
+ }>>, 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<{
834
628
  organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
629
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
630
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
631
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
632
+ readonly name: import("effect/Schema").String;
633
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
634
+ readonly status: import("effect/Schema").Literals<readonly ["empty", "live", "deploying", "failed"]>;
635
+ readonly homeRegion: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
636
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
637
+ }>>>, 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<{
638
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
639
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
640
+ readonly name: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
641
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
642
+ readonly currentDeploymentId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
643
+ readonly database: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
644
+ readonly source: import("effect/Schema").Literal<"customer">;
645
+ readonly state: import("effect/Schema").Literals<readonly ["missing", "reachable", "unreachable"]>;
646
+ readonly latency: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
647
+ readonly latencyWarning: import("effect/Schema").Boolean;
648
+ readonly runnerCap: import("effect/Schema").NullOr<import("effect/Schema").Int>;
649
+ }>>;
650
+ }>>>, 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<{
651
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
652
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
653
+ readonly name: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "Name">>;
654
+ readonly slug: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "Slug">>;
655
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
656
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
657
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
658
+ readonly name: import("effect/Schema").String;
659
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
660
+ readonly status: import("effect/Schema").Literals<readonly ["empty", "live", "deploying", "failed"]>;
661
+ readonly homeRegion: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
662
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
663
+ }>>, 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<{
664
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
665
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
666
+ readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
667
+ readonly commitSha: import("effect/Schema").String;
668
+ readonly message: import("effect/Schema").optional<import("effect/Schema").String>;
669
+ readonly regions: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>>>;
670
+ readonly source: import("effect/Schema").optional<import("effect/Schema").Struct<{
671
+ readonly digest: import("effect/Schema").String;
672
+ readonly dockerfile: import("effect/Schema").optionalKey<import("effect/Schema").Never>;
673
+ }>>;
674
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
675
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
676
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
677
+ readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
678
+ readonly environmentHost: import("effect/Schema").optional<import("effect/Schema").String>;
679
+ readonly commitSha: import("effect/Schema").String;
680
+ readonly message: import("effect/Schema").String;
681
+ readonly author: import("effect/Schema").Struct<{
682
+ readonly name: import("effect/Schema").String;
683
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
684
+ }>;
685
+ readonly regions: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>>;
686
+ readonly runnerCount: import("effect/Schema").Int;
687
+ readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
688
+ readonly status: import("effect/Schema").Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
689
+ readonly rolledBackFrom: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
690
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
691
+ readonly steps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
692
+ readonly name: import("effect/Schema").Literals<readonly ["build", "migrate", "start-runners", "drain-previous"]>;
693
+ readonly status: import("effect/Schema").Literals<readonly ["pending", "running", "succeeded", "failed", "skipped"]>;
694
+ readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
695
+ readonly detail: import("effect/Schema").NullOr<import("effect/Schema").String>;
696
+ }>>;
697
+ readonly runners: import("effect/Schema").$Array<import("effect/Schema").Struct<{
698
+ readonly id: import("effect/Schema").String;
699
+ readonly region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
700
+ readonly actorCount: import("effect/Schema").NullOr<import("effect/Schema").Int>;
701
+ readonly cpuPercent: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
702
+ readonly health: import("effect/Schema").Literals<readonly ["healthy", "unhealthy", "starting", "draining"]>;
703
+ }>>;
704
+ }>>, 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<{
705
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
706
+ deploymentId: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
707
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
708
+ readonly reason: import("effect/Schema").String;
709
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
710
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
711
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
712
+ readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
713
+ readonly environmentHost: import("effect/Schema").optional<import("effect/Schema").String>;
714
+ readonly commitSha: import("effect/Schema").String;
715
+ readonly message: import("effect/Schema").String;
716
+ readonly author: import("effect/Schema").Struct<{
717
+ readonly name: import("effect/Schema").String;
718
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
719
+ }>;
720
+ readonly regions: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>>;
721
+ readonly runnerCount: import("effect/Schema").Int;
722
+ readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
723
+ readonly status: import("effect/Schema").Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
724
+ readonly rolledBackFrom: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
725
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
726
+ readonly steps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
727
+ readonly name: import("effect/Schema").Literals<readonly ["build", "migrate", "start-runners", "drain-previous"]>;
728
+ readonly status: import("effect/Schema").Literals<readonly ["pending", "running", "succeeded", "failed", "skipped"]>;
729
+ readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
730
+ readonly detail: import("effect/Schema").NullOr<import("effect/Schema").String>;
731
+ }>>;
732
+ readonly runners: import("effect/Schema").$Array<import("effect/Schema").Struct<{
733
+ readonly id: import("effect/Schema").String;
734
+ readonly region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
735
+ readonly actorCount: import("effect/Schema").NullOr<import("effect/Schema").Int>;
736
+ readonly cpuPercent: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
737
+ readonly health: import("effect/Schema").Literals<readonly ["healthy", "unhealthy", "starting", "draining"]>;
738
+ }>>;
739
+ }>>, 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<{
740
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
741
+ deploymentId: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
835
742
  }>>, 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">;
743
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
744
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
745
+ readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
746
+ readonly environmentHost: import("effect/Schema").optional<import("effect/Schema").String>;
747
+ readonly commitSha: import("effect/Schema").String;
748
+ readonly message: import("effect/Schema").String;
749
+ readonly author: import("effect/Schema").Struct<{
838
750
  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
- }>]>;
751
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
752
+ }>;
753
+ readonly regions: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>>;
754
+ readonly runnerCount: import("effect/Schema").Int;
755
+ readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
756
+ readonly status: import("effect/Schema").Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
757
+ readonly rolledBackFrom: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
758
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
759
+ readonly steps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
760
+ readonly name: import("effect/Schema").Literals<readonly ["build", "migrate", "start-runners", "drain-previous"]>;
761
+ readonly status: import("effect/Schema").Literals<readonly ["pending", "running", "succeeded", "failed", "skipped"]>;
762
+ readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
763
+ readonly detail: import("effect/Schema").NullOr<import("effect/Schema").String>;
764
+ }>>;
765
+ readonly runners: import("effect/Schema").$Array<import("effect/Schema").Struct<{
766
+ readonly id: import("effect/Schema").String;
767
+ readonly region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
768
+ readonly actorCount: import("effect/Schema").NullOr<import("effect/Schema").Int>;
769
+ readonly cpuPercent: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
770
+ readonly health: import("effect/Schema").Literals<readonly ["healthy", "unhealthy", "starting", "draining"]>;
771
+ }>>;
772
+ }>>, 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<{
773
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
774
+ deploymentId: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
775
+ }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
776
+ after: import("effect/Schema").optional<import("effect/Schema").Int>;
777
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
778
+ readonly lines: import("effect/Schema").$Array<import("effect/Schema").Struct<{
779
+ readonly index: import("effect/Schema").Int;
780
+ readonly at: import("effect/Schema").DateTimeUtc;
781
+ readonly stream: import("effect/Schema").Literals<readonly ["stdout", "stderr"]>;
782
+ readonly text: import("effect/Schema").String;
783
+ }>>;
784
+ readonly complete: import("effect/Schema").Boolean;
785
+ }>>, 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<{
786
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
787
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
788
+ }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
789
+ since: import("effect/Schema").optional<import("effect/Schema").DateTimeUtc>;
790
+ limit: import("effect/Schema").optional<import("effect/Schema").Int>;
791
+ cursor: import("effect/Schema").optional<import("effect/Schema").String>;
792
+ wait: import("effect/Schema").optional<import("effect/Schema").Int>;
793
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
794
+ readonly lines: import("effect/Schema").$Array<import("effect/Schema").Struct<{
795
+ readonly id: import("effect/Schema").String;
796
+ readonly deploymentId: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
797
+ readonly runnerId: import("effect/Schema").String;
798
+ readonly at: import("effect/Schema").DateTimeUtc;
799
+ readonly stream: import("effect/Schema").Literals<readonly ["stdout", "stderr", "unknown"]>;
800
+ readonly text: import("effect/Schema").String;
801
+ readonly clipped: import("effect/Schema").Boolean;
802
+ }>>;
803
+ readonly cursor: import("effect/Schema").String;
804
+ readonly more: import("effect/Schema").Boolean;
805
+ }>>, 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<{
806
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
807
+ deploymentId: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
808
+ }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
809
+ since: import("effect/Schema").optional<import("effect/Schema").DateTimeUtc>;
810
+ limit: import("effect/Schema").optional<import("effect/Schema").Int>;
811
+ cursor: import("effect/Schema").optional<import("effect/Schema").String>;
812
+ wait: import("effect/Schema").optional<import("effect/Schema").Int>;
813
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
814
+ readonly lines: import("effect/Schema").$Array<import("effect/Schema").Struct<{
815
+ readonly id: import("effect/Schema").String;
816
+ readonly deploymentId: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
817
+ readonly runnerId: import("effect/Schema").String;
818
+ readonly at: import("effect/Schema").DateTimeUtc;
819
+ readonly stream: import("effect/Schema").Literals<readonly ["stdout", "stderr", "unknown"]>;
820
+ readonly text: import("effect/Schema").String;
821
+ readonly clipped: import("effect/Schema").Boolean;
822
+ }>>;
823
+ readonly cursor: import("effect/Schema").String;
824
+ readonly more: import("effect/Schema").Boolean;
825
+ }>>, 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<{
826
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
827
+ }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
828
+ limit: import("effect/Schema").optional<import("effect/Schema").Int>;
829
+ cursor: import("effect/Schema").optional<import("effect/Schema").String>;
830
+ environment: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>>;
831
+ status: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>>;
832
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
833
+ readonly items: import("effect/Schema").$Array<import("effect/Schema").Struct<{
834
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
835
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
836
+ readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
837
+ readonly environmentHost: import("effect/Schema").optional<import("effect/Schema").String>;
838
+ readonly commitSha: import("effect/Schema").String;
839
+ readonly message: import("effect/Schema").String;
840
+ readonly author: import("effect/Schema").Struct<{
841
+ readonly name: import("effect/Schema").String;
842
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
843
+ }>;
844
+ readonly regions: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>>;
845
+ readonly runnerCount: import("effect/Schema").Int;
846
+ readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
847
+ readonly status: import("effect/Schema").Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
848
+ readonly rolledBackFrom: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
845
849
  readonly createdAt: import("effect/Schema").DateTimeUtc;
850
+ }>>;
851
+ readonly nextCursor: import("effect/Schema").NullOr<import("effect/Schema").String>;
852
+ }>>, 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<{
853
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
854
+ deploymentId: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
855
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
856
+ readonly image: import("effect/Schema").String;
857
+ readonly commitSha: import("effect/Schema").String;
858
+ readonly environmentSnapshot: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>;
859
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
860
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
861
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
862
+ readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
863
+ readonly environmentHost: import("effect/Schema").optional<import("effect/Schema").String>;
864
+ readonly commitSha: import("effect/Schema").String;
865
+ readonly message: import("effect/Schema").String;
866
+ readonly author: import("effect/Schema").Struct<{
867
+ readonly name: import("effect/Schema").String;
868
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
846
869
  }>;
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">;
870
+ readonly regions: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>>;
871
+ readonly runnerCount: import("effect/Schema").Int;
872
+ readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
873
+ readonly status: import("effect/Schema").Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
874
+ readonly rolledBackFrom: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
875
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
876
+ readonly steps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
877
+ readonly name: import("effect/Schema").Literals<readonly ["build", "migrate", "start-runners", "drain-previous"]>;
878
+ readonly status: import("effect/Schema").Literals<readonly ["pending", "running", "succeeded", "failed", "skipped"]>;
879
+ readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
880
+ readonly detail: import("effect/Schema").NullOr<import("effect/Schema").String>;
881
+ }>>;
882
+ readonly runners: import("effect/Schema").$Array<import("effect/Schema").Struct<{
883
+ readonly id: import("effect/Schema").String;
884
+ readonly region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
885
+ readonly actorCount: import("effect/Schema").NullOr<import("effect/Schema").Int>;
886
+ readonly cpuPercent: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
887
+ readonly health: import("effect/Schema").Literals<readonly ["healthy", "unhealthy", "starting", "draining"]>;
888
+ }>>;
889
+ }>>, 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<{
890
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
891
+ deploymentId: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
892
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
893
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
894
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
895
+ readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
896
+ readonly environmentHost: import("effect/Schema").optional<import("effect/Schema").String>;
897
+ readonly commitSha: import("effect/Schema").String;
898
+ readonly message: import("effect/Schema").String;
899
+ readonly author: import("effect/Schema").Struct<{
900
+ readonly name: import("effect/Schema").String;
901
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
902
+ }>;
903
+ readonly regions: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>>;
904
+ readonly runnerCount: import("effect/Schema").Int;
905
+ readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
906
+ readonly status: import("effect/Schema").Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
907
+ readonly rolledBackFrom: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
908
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
909
+ readonly steps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
910
+ readonly name: import("effect/Schema").Literals<readonly ["build", "migrate", "start-runners", "drain-previous"]>;
911
+ readonly status: import("effect/Schema").Literals<readonly ["pending", "running", "succeeded", "failed", "skipped"]>;
912
+ readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
913
+ readonly detail: import("effect/Schema").NullOr<import("effect/Schema").String>;
914
+ }>>;
915
+ readonly runners: import("effect/Schema").$Array<import("effect/Schema").Struct<{
916
+ readonly id: import("effect/Schema").String;
917
+ readonly region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
918
+ readonly actorCount: import("effect/Schema").NullOr<import("effect/Schema").Int>;
919
+ readonly cpuPercent: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
920
+ readonly health: import("effect/Schema").Literals<readonly ["healthy", "unhealthy", "starting", "draining"]>;
921
+ }>>;
922
+ }>>, 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<{
923
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
924
+ deploymentId: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
850
925
  }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
926
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
927
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
928
+ readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
929
+ readonly environmentHost: import("effect/Schema").optional<import("effect/Schema").String>;
930
+ readonly commitSha: import("effect/Schema").String;
931
+ readonly message: import("effect/Schema").String;
932
+ readonly author: import("effect/Schema").Struct<{
933
+ readonly name: import("effect/Schema").String;
934
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
935
+ }>;
936
+ readonly regions: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>>;
937
+ readonly runnerCount: import("effect/Schema").Int;
938
+ readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
939
+ readonly status: import("effect/Schema").Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
940
+ readonly rolledBackFrom: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
941
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
942
+ readonly steps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
943
+ readonly name: import("effect/Schema").Literals<readonly ["build", "migrate", "start-runners", "drain-previous"]>;
944
+ readonly status: import("effect/Schema").Literals<readonly ["pending", "running", "succeeded", "failed", "skipped"]>;
945
+ readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
946
+ readonly detail: import("effect/Schema").NullOr<import("effect/Schema").String>;
947
+ }>>;
948
+ readonly runners: import("effect/Schema").$Array<import("effect/Schema").Struct<{
949
+ readonly id: import("effect/Schema").String;
950
+ readonly region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
951
+ readonly actorCount: import("effect/Schema").NullOr<import("effect/Schema").Int>;
952
+ readonly cpuPercent: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
953
+ readonly health: import("effect/Schema").Literals<readonly ["healthy", "unhealthy", "starting", "draining"]>;
954
+ }>>;
955
+ }>>, 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<{
956
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
957
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Uint8Array>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
958
+ readonly digest: import("effect/Schema").String;
959
+ readonly sizeBytes: import("effect/Schema").Int;
960
+ }>>, 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<"account", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"deleteAccount", "DELETE", "/api/me", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
961
+ readonly confirmation: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
962
+ }>>, 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<{
963
+ readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
964
+ readonly exportedAt: import("effect/Schema").DateTimeUtc;
965
+ 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>>>;
966
+ }>>, 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<{
967
+ readonly preferences: import("effect/Schema").$Array<import("effect/Schema").Struct<{
968
+ readonly event: import("effect/Schema").Literals<readonly ["deploy_failed", "dead_letter", "spend_threshold"]>;
969
+ readonly email: import("effect/Schema").Boolean;
970
+ readonly slack: import("effect/Schema").Boolean;
971
+ }>>;
972
+ }>>, 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<{
973
+ readonly defaultEnvironment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
974
+ readonly openActorLinksInNewTab: import("effect/Schema").Boolean;
975
+ readonly timeZone: import("effect/Schema").String;
976
+ readonly pauseLiveTailOnScroll: import("effect/Schema").Boolean;
977
+ readonly showReplayedCommands: import("effect/Schema").Boolean;
978
+ readonly theme: import("effect/Schema").Literals<readonly ["light", "dark", "system"]>;
979
+ }>>, 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<{
980
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
981
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
982
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
983
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
984
+ readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
985
+ readonly address: import("effect/Schema").String;
986
+ readonly status: import("effect/Schema").Literals<readonly ["awake", "idle", "unknown"]>;
987
+ readonly lastActivityAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
988
+ }>>>, 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<{
989
+ readonly user: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
990
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
991
+ readonly name: import("effect/Schema").String;
992
+ readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
993
+ readonly emailVerified: import("effect/Schema").Boolean;
994
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
995
+ }>>;
996
+ readonly identityKind: import("effect/Schema").Literals<readonly ["session", "api-key"]>;
997
+ readonly activeOrganizationId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">>;
998
+ readonly organizations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
999
+ readonly organization: import("effect/Schema").Struct<{
1000
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
1001
+ readonly name: import("effect/Schema").String;
1002
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
1003
+ readonly plan: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"unbound", {}>, import("effect/Schema").TaggedStruct<"known", {
1004
+ readonly id: import("effect/Schema").Literals<readonly ["free", "pro", "team", "enterprise"]>;
1005
+ }>, import("effect/Schema").TaggedStruct<"unknown", {
1006
+ readonly id: import("effect/Schema").String;
1007
+ }>]>;
1008
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
1009
+ }>;
1010
+ readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
1011
+ }>>;
1012
+ }>>, 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<{
1013
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1014
+ readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1015
+ readonly address: import("effect/Schema").String;
1016
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1017
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1018
+ readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1019
+ readonly address: import("effect/Schema").String;
1020
+ readonly status: import("effect/Schema").Literals<readonly ["awake", "idle", "unknown"]>;
1021
+ readonly lastActivityAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
1022
+ }>>, 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<{
851
1023
  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<{
1024
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
855
1025
  readonly organization: import("effect/Schema").Struct<{
856
1026
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
857
1027
  readonly name: import("effect/Schema").String;
@@ -864,171 +1034,46 @@ declare const CloudApi_base: HttpApi.HttpApi<"akter-cloud", import("effect/http-
864
1034
  readonly createdAt: import("effect/Schema").DateTimeUtc;
865
1035
  }>;
866
1036
  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"]>;
1037
+ }>>, 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<{
1038
+ readonly preferences: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1039
+ readonly event: import("effect/Schema").Literals<readonly ["deploy_failed", "dead_letter", "spend_threshold"]>;
1040
+ readonly email: import("effect/Schema").Boolean;
1041
+ readonly slack: import("effect/Schema").Boolean;
1042
+ }>>;
900
1043
  }>>, 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"]>;
1044
+ readonly preferences: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1045
+ readonly event: import("effect/Schema").Literals<readonly ["deploy_failed", "dead_letter", "spend_threshold"]>;
1046
+ readonly email: import("effect/Schema").Boolean;
1047
+ readonly slack: import("effect/Schema").Boolean;
907
1048
  }>>;
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<{
1049
+ }>>, 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<{
932
1050
  projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
933
1051
  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">;
1052
+ address: import("effect/Schema").String;
1053
+ }>>, 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<{
1054
+ readonly defaultEnvironment: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>>;
1055
+ readonly openActorLinksInNewTab: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1056
+ readonly timeZone: import("effect/Schema").optional<import("effect/Schema").String>;
1057
+ readonly pauseLiveTailOnScroll: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1058
+ readonly showReplayedCommands: import("effect/Schema").optional<import("effect/Schema").Boolean>;
1059
+ readonly theme: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["light", "dark", "system"]>>;
964
1060
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1061
+ readonly defaultEnvironment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1062
+ readonly openActorLinksInNewTab: import("effect/Schema").Boolean;
1063
+ readonly timeZone: import("effect/Schema").String;
1064
+ readonly pauseLiveTailOnScroll: import("effect/Schema").Boolean;
1065
+ readonly showReplayedCommands: import("effect/Schema").Boolean;
1066
+ readonly theme: import("effect/Schema").Literals<readonly ["light", "dark", "system"]>;
1067
+ }>>, 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<{
965
1068
  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"]>;
1069
+ readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1023
1070
  }>>, 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">;
1071
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
1026
1072
  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<{
1073
+ readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
1074
+ readonly emailVerified: import("effect/Schema").Boolean;
1075
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
1076
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotImplemented>, 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
1077
  projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1033
1078
  environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1034
1079
  deadLetterId: import("effect/Schema").brand<import("effect/Schema").String, "DeadLetterId">;
@@ -1498,52 +1543,7 @@ declare const CloudApi_base: HttpApi.HttpApi<"akter-cloud", import("effect/http-
1498
1543
  readonly payloadPreview: string | null;
1499
1544
  readonly outcome: "error" | "ok" | "replayed";
1500
1545
  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>>;
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 | typeof import("./runtime.ts").RunnerDefect>, Authentication, never>, false>>;
1547
1547
  /**
1548
1548
  * The console's control-plane and runtime-inspection API. Every endpoint lives
1549
1549
  * under `/api` and requires `Authentication`; a browser client carries the