@rikalabs/akter-cli 0.1.0-alpha.4 → 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,493 +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<{
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<{
196
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"]>;
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 concurrentConnections: import("effect/Schema").Int;
258
- }>;
259
- readonly overage: import("effect/Schema").Struct<{
260
- readonly computeCentsPerUnitHour: import("effect/Schema").Finite;
261
- }>;
262
- readonly features: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["compute-overage", "compute-cap", "byo-database", "checkout"]>>;
263
- readonly provisional: import("effect/Schema").Boolean;
264
- }>>;
265
- readonly computeSizes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
266
- readonly cpuKind: import("effect/Schema").Literals<readonly ["shared", "performance"]>;
267
- readonly cpus: import("effect/Schema").Int;
268
- readonly memoryMb: import("effect/Schema").Int;
269
- readonly unitsPerHour: import("effect/Schema").Finite;
270
- }>>;
271
- readonly provisional: import("effect/Schema").Boolean;
272
- }>>, 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<{
273
- organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
274
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
275
- readonly url: import("effect/Schema").String;
276
- }>>, 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<{
277
- organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
278
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
279
- readonly limitCents: import("effect/Schema").NullOr<import("effect/Schema").Int>;
280
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
281
- readonly limitCents: import("effect/Schema").NullOr<import("effect/Schema").Int>;
282
- readonly currentSpendCents: import("effect/Schema").Int;
283
- }>>, 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<{
284
- 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"]>;
285
153
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
286
- 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>>;
287
155
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
288
- readonly url: import("effect/Schema").String;
289
- }>>, 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<{
290
174
  projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
291
175
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
176
+ readonly hostname: import("effect/Schema").String;
292
177
  readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
293
- readonly commitSha: import("effect/Schema").String;
294
- readonly message: import("effect/Schema").optional<import("effect/Schema").String>;
295
- readonly regions: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>>>;
296
- readonly source: import("effect/Schema").optional<import("effect/Schema").Struct<{
297
- readonly digest: import("effect/Schema").String;
298
- readonly dockerfile: import("effect/Schema").optionalKey<import("effect/Schema").Never>;
299
- }>>;
300
178
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
301
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
302
- 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;
303
181
  readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
304
- readonly environmentHost: import("effect/Schema").optional<import("effect/Schema").String>;
305
- readonly commitSha: import("effect/Schema").String;
306
- readonly message: import("effect/Schema").String;
307
- 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"]>;
308
185
  readonly name: import("effect/Schema").String;
309
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
310
- }>;
311
- readonly regions: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>>;
312
- readonly runnerCount: import("effect/Schema").Int;
313
- readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
314
- readonly status: import("effect/Schema").Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
315
- readonly rolledBackFrom: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
316
- readonly createdAt: import("effect/Schema").DateTimeUtc;
317
- readonly steps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
318
- readonly name: import("effect/Schema").Literals<readonly ["build", "migrate", "start-runners", "drain-previous"]>;
319
- readonly status: import("effect/Schema").Literals<readonly ["pending", "running", "succeeded", "failed", "skipped"]>;
320
- readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
321
- readonly detail: import("effect/Schema").NullOr<import("effect/Schema").String>;
322
- }>>;
323
- readonly runners: import("effect/Schema").$Array<import("effect/Schema").Struct<{
324
- readonly id: import("effect/Schema").String;
325
- readonly region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
326
- readonly actorCount: import("effect/Schema").NullOr<import("effect/Schema").Int>;
327
- readonly cpuPercent: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
328
- readonly health: import("effect/Schema").Literals<readonly ["healthy", "unhealthy", "starting", "draining"]>;
186
+ readonly value: import("effect/Schema").String;
329
187
  }>>;
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<"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<{
331
190
  projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
332
- deploymentId: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
333
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
334
- readonly reason: import("effect/Schema").String;
335
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
336
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
337
- 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;
338
194
  readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
339
- readonly environmentHost: import("effect/Schema").optional<import("effect/Schema").String>;
340
- readonly commitSha: import("effect/Schema").String;
341
- readonly message: import("effect/Schema").String;
342
- 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"]>;
343
198
  readonly name: import("effect/Schema").String;
344
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
345
- }>;
346
- readonly regions: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>>;
347
- readonly runnerCount: import("effect/Schema").Int;
348
- readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
349
- readonly status: import("effect/Schema").Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
350
- readonly rolledBackFrom: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
351
- readonly createdAt: import("effect/Schema").DateTimeUtc;
352
- readonly steps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
353
- readonly name: import("effect/Schema").Literals<readonly ["build", "migrate", "start-runners", "drain-previous"]>;
354
- readonly status: import("effect/Schema").Literals<readonly ["pending", "running", "succeeded", "failed", "skipped"]>;
355
- readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
356
- readonly detail: import("effect/Schema").NullOr<import("effect/Schema").String>;
357
- }>>;
358
- readonly runners: import("effect/Schema").$Array<import("effect/Schema").Struct<{
359
- readonly id: import("effect/Schema").String;
360
- readonly region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
361
- readonly actorCount: import("effect/Schema").NullOr<import("effect/Schema").Int>;
362
- readonly cpuPercent: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
363
- readonly health: import("effect/Schema").Literals<readonly ["healthy", "unhealthy", "starting", "draining"]>;
199
+ readonly value: import("effect/Schema").String;
364
200
  }>>;
365
- }>>, 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<{
366
203
  projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
367
- 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">;
368
208
  }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
369
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
370
- 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;
371
211
  readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
372
- readonly environmentHost: import("effect/Schema").optional<import("effect/Schema").String>;
373
- readonly commitSha: import("effect/Schema").String;
374
- readonly message: import("effect/Schema").String;
375
- 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"]>;
376
215
  readonly name: import("effect/Schema").String;
377
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
378
- }>;
379
- readonly regions: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>>;
380
- readonly runnerCount: import("effect/Schema").Int;
381
- readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
382
- readonly status: import("effect/Schema").Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
383
- readonly rolledBackFrom: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
384
- readonly createdAt: import("effect/Schema").DateTimeUtc;
385
- readonly steps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
386
- readonly name: import("effect/Schema").Literals<readonly ["build", "migrate", "start-runners", "drain-previous"]>;
387
- readonly status: import("effect/Schema").Literals<readonly ["pending", "running", "succeeded", "failed", "skipped"]>;
388
- readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
389
- readonly detail: import("effect/Schema").NullOr<import("effect/Schema").String>;
390
- }>>;
391
- readonly runners: import("effect/Schema").$Array<import("effect/Schema").Struct<{
392
- readonly id: import("effect/Schema").String;
393
- readonly region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
394
- readonly actorCount: import("effect/Schema").NullOr<import("effect/Schema").Int>;
395
- readonly cpuPercent: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
396
- readonly health: import("effect/Schema").Literals<readonly ["healthy", "unhealthy", "starting", "draining"]>;
216
+ readonly value: import("effect/Schema").String;
397
217
  }>>;
398
- }>>, 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<{
399
220
  projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
400
- deploymentId: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
401
- }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
402
- after: import("effect/Schema").optional<import("effect/Schema").Int>;
403
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
404
- readonly lines: import("effect/Schema").$Array<import("effect/Schema").Struct<{
405
- readonly index: import("effect/Schema").Int;
406
- readonly at: import("effect/Schema").DateTimeUtc;
407
- readonly stream: import("effect/Schema").Literals<readonly ["stdout", "stderr"]>;
408
- readonly text: import("effect/Schema").String;
409
- }>>;
410
- readonly complete: import("effect/Schema").Boolean;
411
- }>>, 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<{
412
224
  projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
413
225
  environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
414
- }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
415
- since: import("effect/Schema").optional<import("effect/Schema").DateTimeUtc>;
416
- limit: import("effect/Schema").optional<import("effect/Schema").Int>;
417
- cursor: import("effect/Schema").optional<import("effect/Schema").String>;
418
- wait: import("effect/Schema").optional<import("effect/Schema").Int>;
419
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
420
- readonly lines: import("effect/Schema").$Array<import("effect/Schema").Struct<{
421
- readonly id: import("effect/Schema").String;
422
- readonly deploymentId: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
423
- readonly runnerId: import("effect/Schema").String;
424
- readonly at: import("effect/Schema").DateTimeUtc;
425
- readonly stream: import("effect/Schema").Literals<readonly ["stdout", "stderr", "unknown"]>;
426
- readonly text: import("effect/Schema").String;
427
- readonly clipped: import("effect/Schema").Boolean;
428
- }>>;
429
- readonly cursor: import("effect/Schema").String;
430
- readonly more: import("effect/Schema").Boolean;
431
- }>>, 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<{
432
232
  projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
433
- deploymentId: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
434
- }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
435
- since: import("effect/Schema").optional<import("effect/Schema").DateTimeUtc>;
436
- limit: import("effect/Schema").optional<import("effect/Schema").Int>;
437
- cursor: import("effect/Schema").optional<import("effect/Schema").String>;
438
- wait: import("effect/Schema").optional<import("effect/Schema").Int>;
439
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
440
- 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"]>;
441
240
  readonly id: import("effect/Schema").String;
442
- readonly deploymentId: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
443
- readonly runnerId: import("effect/Schema").String;
444
- readonly at: import("effect/Schema").DateTimeUtc;
445
- readonly stream: import("effect/Schema").Literals<readonly ["stdout", "stderr", "unknown"]>;
446
- readonly text: import("effect/Schema").String;
447
- readonly clipped: import("effect/Schema").Boolean;
241
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
448
242
  }>>;
449
- readonly cursor: import("effect/Schema").String;
450
- readonly more: import("effect/Schema").Boolean;
451
- }>>, 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<{
452
- projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
453
- }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
454
- limit: import("effect/Schema").optional<import("effect/Schema").Int>;
455
- cursor: import("effect/Schema").optional<import("effect/Schema").String>;
456
- environment: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>>;
457
- status: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>>;
458
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
459
- readonly items: import("effect/Schema").$Array<import("effect/Schema").Struct<{
460
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
461
- readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
462
- readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
463
- readonly environmentHost: import("effect/Schema").optional<import("effect/Schema").String>;
464
- readonly commitSha: import("effect/Schema").String;
465
- readonly message: import("effect/Schema").String;
466
- readonly author: import("effect/Schema").Struct<{
467
- readonly name: import("effect/Schema").String;
468
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
469
- }>;
470
- readonly regions: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>>;
471
- readonly runnerCount: import("effect/Schema").Int;
472
- readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
473
- readonly status: import("effect/Schema").Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
474
- readonly rolledBackFrom: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
475
- readonly createdAt: import("effect/Schema").DateTimeUtc;
476
- }>>;
477
- readonly nextCursor: import("effect/Schema").NullOr<import("effect/Schema").String>;
478
- }>>, 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<{
479
- projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
480
- deploymentId: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
481
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
482
- readonly image: import("effect/Schema").String;
483
- readonly commitSha: import("effect/Schema").String;
484
- readonly environmentSnapshot: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>;
485
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
486
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
487
- readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
488
- readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
489
- readonly environmentHost: import("effect/Schema").optional<import("effect/Schema").String>;
490
- readonly commitSha: import("effect/Schema").String;
491
- readonly message: import("effect/Schema").String;
492
- readonly author: import("effect/Schema").Struct<{
493
- readonly name: import("effect/Schema").String;
494
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
495
- }>;
496
- readonly regions: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>>;
497
- readonly runnerCount: import("effect/Schema").Int;
498
- readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
499
- readonly status: import("effect/Schema").Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
500
- readonly rolledBackFrom: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
501
- readonly createdAt: import("effect/Schema").DateTimeUtc;
502
- readonly steps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
503
- readonly name: import("effect/Schema").Literals<readonly ["build", "migrate", "start-runners", "drain-previous"]>;
504
- readonly status: import("effect/Schema").Literals<readonly ["pending", "running", "succeeded", "failed", "skipped"]>;
505
- readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
506
- readonly detail: import("effect/Schema").NullOr<import("effect/Schema").String>;
507
- }>>;
508
- readonly runners: import("effect/Schema").$Array<import("effect/Schema").Struct<{
509
- readonly id: import("effect/Schema").String;
510
- readonly region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
511
- readonly actorCount: import("effect/Schema").NullOr<import("effect/Schema").Int>;
512
- readonly cpuPercent: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
513
- readonly health: import("effect/Schema").Literals<readonly ["healthy", "unhealthy", "starting", "draining"]>;
514
- }>>;
515
- }>>, 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<{
516
- projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
517
- deploymentId: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
518
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
519
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
520
- readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
521
- readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
522
- readonly environmentHost: import("effect/Schema").optional<import("effect/Schema").String>;
523
- readonly commitSha: import("effect/Schema").String;
524
- readonly message: import("effect/Schema").String;
525
- readonly author: import("effect/Schema").Struct<{
526
- readonly name: import("effect/Schema").String;
527
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
528
- }>;
529
- readonly regions: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>>;
530
- readonly runnerCount: import("effect/Schema").Int;
531
- readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
532
- readonly status: import("effect/Schema").Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
533
- readonly rolledBackFrom: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
534
- readonly createdAt: import("effect/Schema").DateTimeUtc;
535
- readonly steps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
536
- readonly name: import("effect/Schema").Literals<readonly ["build", "migrate", "start-runners", "drain-previous"]>;
537
- readonly status: import("effect/Schema").Literals<readonly ["pending", "running", "succeeded", "failed", "skipped"]>;
538
- readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
539
- readonly detail: import("effect/Schema").NullOr<import("effect/Schema").String>;
540
- }>>;
541
- readonly runners: import("effect/Schema").$Array<import("effect/Schema").Struct<{
542
- readonly id: import("effect/Schema").String;
543
- readonly region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
544
- readonly actorCount: import("effect/Schema").NullOr<import("effect/Schema").Int>;
545
- readonly cpuPercent: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
546
- readonly health: import("effect/Schema").Literals<readonly ["healthy", "unhealthy", "starting", "draining"]>;
547
- }>>;
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<"rollback", "POST", "/api/projects/:projectId/deployments/:deploymentId/rollback", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
549
- projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
550
- deploymentId: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
551
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
552
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
553
- readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
554
- readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
555
- readonly environmentHost: import("effect/Schema").optional<import("effect/Schema").String>;
556
- readonly commitSha: import("effect/Schema").String;
557
- readonly message: import("effect/Schema").String;
558
- readonly author: import("effect/Schema").Struct<{
559
- readonly name: import("effect/Schema").String;
560
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
561
- }>;
562
- readonly regions: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>>;
563
- readonly runnerCount: import("effect/Schema").Int;
564
- readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
565
- readonly status: import("effect/Schema").Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
566
- readonly rolledBackFrom: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
567
- readonly createdAt: import("effect/Schema").DateTimeUtc;
568
- readonly steps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
569
- readonly name: import("effect/Schema").Literals<readonly ["build", "migrate", "start-runners", "drain-previous"]>;
570
- readonly status: import("effect/Schema").Literals<readonly ["pending", "running", "succeeded", "failed", "skipped"]>;
571
- readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
572
- readonly detail: import("effect/Schema").NullOr<import("effect/Schema").String>;
573
- }>>;
574
- readonly runners: import("effect/Schema").$Array<import("effect/Schema").Struct<{
575
- readonly id: import("effect/Schema").String;
576
- readonly region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
577
- readonly actorCount: import("effect/Schema").NullOr<import("effect/Schema").Int>;
578
- readonly cpuPercent: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
579
- readonly health: import("effect/Schema").Literals<readonly ["healthy", "unhealthy", "starting", "draining"]>;
580
- }>>;
581
- }>>, 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<{
582
- projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
583
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Uint8Array>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
584
- readonly digest: import("effect/Schema").String;
585
- readonly sizeBytes: import("effect/Schema").Int;
586
- }>>, 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<{
587
- projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
588
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
589
- readonly hostname: import("effect/Schema").String;
590
- readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
591
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
592
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DomainId">;
593
- readonly hostname: import("effect/Schema").String;
594
- readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
595
- readonly status: import("effect/Schema").Literals<readonly ["pending", "verifying", "active"]>;
596
- readonly dnsRecords: import("effect/Schema").$Array<import("effect/Schema").Struct<{
597
- readonly type: import("effect/Schema").Literals<readonly ["A", "AAAA", "CNAME", "TXT"]>;
598
- readonly name: import("effect/Schema").String;
599
- readonly value: import("effect/Schema").String;
600
- }>>;
601
- readonly createdAt: import("effect/Schema").DateTimeUtc;
602
- }>>, 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<{
603
- projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
604
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
605
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DomainId">;
606
- readonly hostname: import("effect/Schema").String;
607
- readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
608
- readonly status: import("effect/Schema").Literals<readonly ["pending", "verifying", "active"]>;
609
- readonly dnsRecords: import("effect/Schema").$Array<import("effect/Schema").Struct<{
610
- readonly type: import("effect/Schema").Literals<readonly ["A", "AAAA", "CNAME", "TXT"]>;
611
- readonly name: import("effect/Schema").String;
612
- readonly value: import("effect/Schema").String;
613
- }>>;
614
- readonly createdAt: import("effect/Schema").DateTimeUtc;
615
- }>>>, 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<{
616
- projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
617
- domainId: import("effect/Schema").brand<import("effect/Schema").String, "DomainId">;
618
- }>>, 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<{
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/Schema").Struct<{
622
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DomainId">;
623
- readonly hostname: import("effect/Schema").String;
624
- readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
625
- readonly status: import("effect/Schema").Literals<readonly ["pending", "verifying", "active"]>;
626
- readonly dnsRecords: import("effect/Schema").$Array<import("effect/Schema").Struct<{
627
- readonly type: import("effect/Schema").Literals<readonly ["A", "AAAA", "CNAME", "TXT"]>;
628
- readonly name: import("effect/Schema").String;
629
- readonly value: import("effect/Schema").String;
630
- }>>;
631
- readonly createdAt: import("effect/Schema").DateTimeUtc;
632
- }>>, 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<{
633
- projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
634
- environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
635
- name: import("effect/Schema").String;
636
- }>>, 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<{
637
- projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
638
- environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
639
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
640
- readonly content: import("effect/Schema").String;
641
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
642
- readonly created: import("effect/Schema").$Array<import("effect/Schema").String>;
643
- readonly updated: import("effect/Schema").$Array<import("effect/Schema").String>;
644
- }>>, 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<{
645
- projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
646
- environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
647
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
648
- readonly name: import("effect/Schema").String;
649
- readonly usedBy: import("effect/Schema").$Array<import("effect/Schema").String>;
650
- readonly updatedAt: import("effect/Schema").DateTimeUtc;
651
- readonly updatedBy: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
652
- readonly kind: import("effect/Schema").Literals<readonly ["user", "api-key"]>;
653
- readonly id: import("effect/Schema").String;
654
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
655
- }>>;
656
- }>>>, 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<{
657
244
  projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
658
245
  environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
659
246
  name: import("effect/Schema").String;
@@ -668,54 +255,154 @@ declare const CloudApi_base: HttpApi.HttpApi<"akter-cloud", import("effect/http-
668
255
  readonly id: import("effect/Schema").String;
669
256
  readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
670
257
  }>>;
671
- }>>, 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<{
672
259
  projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
673
- kind: import("effect/Schema").Literals<readonly ["github", "slack", "datadog", "opentelemetry", "pagerduty"]>;
674
260
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
675
- 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"]>;
676
262
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
677
- readonly redirectUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
678
- readonly integration: import("effect/Schema").Struct<{
679
- readonly kind: import("effect/Schema").Literals<readonly ["github", "slack", "datadog", "opentelemetry", "pagerduty"]>;
680
- readonly status: import("effect/Schema").Literals<readonly ["connected", "disconnected", "error"]>;
681
- readonly label: import("effect/Schema").NullOr<import("effect/Schema").String>;
682
- readonly connectedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
683
- }>;
684
- }>>, 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<{
685
- projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
686
- kind: import("effect/Schema").Literals<readonly ["github", "slack", "datadog", "opentelemetry", "pagerduty"]>;
687
- }>>, 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<{
688
269
  projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
270
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
689
271
  }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
690
- readonly kind: import("effect/Schema").Literals<readonly ["github", "slack", "datadog", "opentelemetry", "pagerduty"]>;
691
- readonly status: import("effect/Schema").Literals<readonly ["connected", "disconnected", "error"]>;
692
- readonly label: import("effect/Schema").NullOr<import("effect/Schema").String>;
693
- readonly connectedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
694
- }>>>, 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<{
695
- invitationId: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
696
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
697
- readonly organization: import("effect/Schema").Struct<{
698
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
699
- readonly name: import("effect/Schema").String;
700
- readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
701
- readonly plan: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"unbound", {}>, import("effect/Schema").TaggedStruct<"known", {
702
- readonly id: import("effect/Schema").Literals<readonly ["free", "pro", "team", "enterprise"]>;
703
- }>, import("effect/Schema").TaggedStruct<"unknown", {
704
- readonly id: import("effect/Schema").String;
705
- }>]>;
706
- 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;
707
275
  }>;
708
- readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
709
- }>>, 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<{
710
- organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
711
- invitationId: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
712
- }>>, 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<{
713
- organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
714
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
715
- readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
716
- readonly role: import("effect/Schema").Literals<readonly ["admin", "member", "viewer"]>;
717
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
718
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
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">;
719
406
  readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
720
407
  readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
721
408
  readonly role: import("effect/Schema").Literals<readonly ["admin", "member", "viewer"]>;
@@ -777,78 +464,564 @@ declare const CloudApi_base: HttpApi.HttpApi<"akter-cloud", import("effect/http-
777
464
  }>;
778
465
  readonly createdAt: import("effect/Schema").DateTimeUtc;
779
466
  readonly expiresAt: import("effect/Schema").DateTimeUtc;
780
- }>>, 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<{
781
468
  organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
782
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
783
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "MemberId">;
784
- readonly user: import("effect/Schema").Struct<{
785
- 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"]>;
786
479
  readonly name: import("effect/Schema").String;
787
- readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
788
- 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;
789
500
  }>;
790
- readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
791
- readonly createdAt: import("effect/Schema").DateTimeUtc;
792
- readonly lastActiveAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
793
- }>>>, 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<{
794
510
  organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
795
- memberId: import("effect/Schema").brand<import("effect/Schema").String, "MemberId">;
796
- }>>, 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<{
797
549
  organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
798
- memberId: import("effect/Schema").brand<import("effect/Schema").String, "MemberId">;
799
550
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
800
- 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">;
801
563
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
802
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "MemberId">;
803
- readonly user: import("effect/Schema").Struct<{
804
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
805
- readonly name: import("effect/Schema").String;
806
- readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
807
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
808
- }>;
809
- readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
810
- readonly createdAt: import("effect/Schema").DateTimeUtc;
811
- readonly lastActiveAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
812
- }>>, 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<{
813
564
  readonly name: import("effect/Schema").brand<import("effect/Schema").String, "Name">;
814
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"]>;
815
567
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
816
- readonly organization: import("effect/Schema").Struct<{
817
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
818
- readonly name: import("effect/Schema").String;
819
- readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
820
- readonly plan: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"unbound", {}>, import("effect/Schema").TaggedStruct<"known", {
821
- readonly id: import("effect/Schema").Literals<readonly ["free", "pro", "team", "enterprise"]>;
822
- }>, import("effect/Schema").TaggedStruct<"unknown", {
823
- readonly id: import("effect/Schema").String;
824
- }>]>;
825
- readonly createdAt: import("effect/Schema").DateTimeUtc;
826
- }>;
827
- readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
828
- }>>, 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<{
829
- organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
830
- }>>, 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<{
831
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">;
832
742
  }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
833
- readonly organization: import("effect/Schema").Struct<{
834
- 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<{
835
750
  readonly name: import("effect/Schema").String;
836
- readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
837
- readonly plan: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"unbound", {}>, import("effect/Schema").TaggedStruct<"known", {
838
- readonly id: import("effect/Schema").Literals<readonly ["free", "pro", "team", "enterprise"]>;
839
- }>, import("effect/Schema").TaggedStruct<"unknown", {
840
- readonly id: import("effect/Schema").String;
841
- }>]>;
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">>;
842
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>;
843
869
  }>;
844
- readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
845
- }>>, 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<{
846
- 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">;
847
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">;
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<{
848
1023
  readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
849
- readonly phase: import("effect/Schema").Literals<readonly ["billing", "runners", "databases", "records", "completed"]>;
850
- readonly blocked: import("effect/Schema").Boolean;
851
- }>>, 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<{
852
1025
  readonly organization: import("effect/Schema").Struct<{
853
1026
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
854
1027
  readonly name: import("effect/Schema").String;
@@ -861,180 +1034,46 @@ declare const CloudApi_base: HttpApi.HttpApi<"akter-cloud", import("effect/http-
861
1034
  readonly createdAt: import("effect/Schema").DateTimeUtc;
862
1035
  }>;
863
1036
  readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
864
- }>>>, 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<{
865
- organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
866
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
867
- readonly name: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "Name">>;
868
- readonly slug: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "Slug">>;
869
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
870
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
871
- readonly name: import("effect/Schema").String;
872
- readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
873
- readonly plan: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"unbound", {}>, import("effect/Schema").TaggedStruct<"known", {
874
- readonly id: import("effect/Schema").Literals<readonly ["free", "pro", "team", "enterprise"]>;
875
- }>, import("effect/Schema").TaggedStruct<"unknown", {
876
- readonly id: import("effect/Schema").String;
877
- }>]>;
878
- readonly createdAt: import("effect/Schema").DateTimeUtc;
879
- }>>, 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<{
880
- organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
881
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
882
- readonly name: import("effect/Schema").brand<import("effect/Schema").String, "Name">;
883
- readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
884
- readonly homeRegion: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
885
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
886
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
887
- readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
888
- readonly name: import("effect/Schema").String;
889
- readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
890
- readonly status: import("effect/Schema").Literals<readonly ["empty", "live", "deploying", "failed"]>;
891
- readonly homeRegion: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
892
- readonly createdAt: import("effect/Schema").DateTimeUtc;
893
- }>>, 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<{
894
- projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
895
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
896
- 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
+ }>>;
897
1043
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
898
- readonly name: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
899
- readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
900
- readonly currentDeploymentId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
901
- readonly database: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
902
- readonly source: import("effect/Schema").Literal<"customer">;
903
- readonly state: import("effect/Schema").Literals<readonly ["missing", "reachable", "unreachable"]>;
904
- readonly latency: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
905
- readonly latencyWarning: import("effect/Schema").Boolean;
906
- readonly runnerCap: import("effect/Schema").NullOr<import("effect/Schema").Int>;
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").Literal<"customer">;
940
- readonly state: import("effect/Schema").Literals<readonly ["missing", "reachable", "unreachable"]>;
941
- readonly latency: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
942
- readonly latencyWarning: import("effect/Schema").Boolean;
943
- readonly runnerCap: import("effect/Schema").NullOr<import("effect/Schema").Int>;
944
- }>>;
945
- }>>, 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<{
946
- organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
947
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
948
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
949
- readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
950
- readonly name: import("effect/Schema").String;
951
- readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
952
- readonly status: import("effect/Schema").Literals<readonly ["empty", "live", "deploying", "failed"]>;
953
- readonly homeRegion: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
954
- readonly createdAt: import("effect/Schema").DateTimeUtc;
955
- }>>>, 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<{
956
- projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
957
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
958
- readonly name: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
959
- readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
960
- readonly currentDeploymentId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
961
- readonly database: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
962
- readonly source: import("effect/Schema").Literal<"customer">;
963
- readonly state: import("effect/Schema").Literals<readonly ["missing", "reachable", "unreachable"]>;
964
- readonly latency: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
965
- readonly latencyWarning: import("effect/Schema").Boolean;
966
- readonly runnerCap: import("effect/Schema").NullOr<import("effect/Schema").Int>;
967
- }>>;
968
- }>>>, 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<{
969
- 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"]>>;
970
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<{
971
1068
  readonly name: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "Name">>;
972
- readonly slug: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "Slug">>;
973
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
974
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
975
- readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
976
- readonly name: import("effect/Schema").String;
977
- readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
978
- readonly status: import("effect/Schema").Literals<readonly ["empty", "live", "deploying", "failed"]>;
979
- readonly homeRegion: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
980
- readonly createdAt: import("effect/Schema").DateTimeUtc;
981
- }>>, 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<{
982
- projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
983
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
984
- readonly region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
985
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
986
- readonly id: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
987
- readonly city: import("effect/Schema").String;
988
- }>>, 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<{
989
- readonly id: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
990
- readonly city: import("effect/Schema").String;
991
- }>>>, 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<{
992
- projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
993
- environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
994
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
995
- readonly region: import("effect/Schema").Struct<{
996
- readonly id: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
997
- readonly city: import("effect/Schema").String;
998
- }>;
999
- readonly home: import("effect/Schema").Boolean;
1000
- readonly tenantCount: import("effect/Schema").Int;
1001
- readonly database: import("effect/Schema").Struct<{
1002
- readonly version: import("effect/Schema").String;
1003
- readonly sizeBytes: import("effect/Schema").Int;
1004
- }>;
1005
- readonly storage: import("effect/Schema").Struct<{
1006
- readonly usedBytes: import("effect/Schema").Int;
1007
- readonly limitBytes: import("effect/Schema").Int;
1008
- }>;
1009
- readonly cpuPercent: import("effect/Schema").Finite;
1010
- readonly connections: import("effect/Schema").Struct<{
1011
- readonly used: import("effect/Schema").Int;
1012
- readonly limit: import("effect/Schema").Int;
1013
- }>;
1014
- readonly runners: import("effect/Schema").Int;
1015
- readonly largestTables: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1016
- readonly name: import("effect/Schema").String;
1017
- readonly actor: import("effect/Schema").String;
1018
- readonly rows: import("effect/Schema").Int;
1019
- readonly sizeBytes: import("effect/Schema").Int;
1020
- readonly region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
1021
- }>>;
1022
- }>>>, 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<{
1023
- projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1024
- region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
1025
- }>>, 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<{
1026
- projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1027
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1028
- 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>>;
1029
1070
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1030
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1031
- readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
1071
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
1032
1072
  readonly name: import("effect/Schema").String;
1033
- readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
1034
- readonly status: import("effect/Schema").Literals<readonly ["empty", "live", "deploying", "failed"]>;
1035
- readonly homeRegion: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
1036
- readonly createdAt: import("effect/Schema").DateTimeUtc;
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>, 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<{
1038
1077
  projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1039
1078
  environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1040
1079
  deadLetterId: import("effect/Schema").brand<import("effect/Schema").String, "DeadLetterId">;
@@ -1504,46 +1543,7 @@ declare const CloudApi_base: HttpApi.HttpApi<"akter-cloud", import("effect/http-
1504
1543
  readonly payloadPreview: string | null;
1505
1544
  readonly outcome: "error" | "ok" | "replayed";
1506
1545
  readonly errorTag: string | null;
1507
- }>, 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<{
1508
- organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
1509
- }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1510
- period: import("effect/Schema").optional<import("effect/Schema").String>;
1511
- }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1512
- readonly period: import("effect/Schema").String;
1513
- readonly meters: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1514
- readonly meter: import("effect/Schema").Literal<"runnerHours">;
1515
- readonly used: import("effect/Schema").Finite;
1516
- readonly included: import("effect/Schema").Finite;
1517
- readonly overage: import("effect/Schema").Finite;
1518
- readonly overageCostCents: import("effect/Schema").Finite;
1519
- }>>;
1520
- readonly caps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1521
- readonly limit: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
1522
- readonly used: import("effect/Schema").Finite;
1523
- readonly atCap: import("effect/Schema").Boolean;
1524
- readonly refusing: import("effect/Schema").Boolean;
1525
- readonly reason: import("effect/Schema").optionalKey<import("effect/Schema").Literal<"unbound">>;
1526
- readonly cap: import("effect/Schema").Literals<readonly ["spend", "connections", "compute"]>;
1527
- }>>;
1528
- readonly byProject: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1529
- readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1530
- readonly name: import("effect/Schema").String;
1531
- readonly computeUnitHours: import("effect/Schema").Finite;
1532
- readonly compute: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1533
- readonly cpuKind: import("effect/Schema").Literals<readonly ["shared", "performance"]>;
1534
- readonly cpus: import("effect/Schema").Int;
1535
- readonly memoryMb: import("effect/Schema").Int;
1536
- readonly environmentId: import("effect/Schema").brand<import("effect/Schema").String, "EnvironmentId">;
1537
- readonly machineHours: import("effect/Schema").Finite;
1538
- readonly computeUnitHours: import("effect/Schema").Finite;
1539
- }>>;
1540
- readonly estimatedCostCents: import("effect/Schema").Finite;
1541
- }>>;
1542
- readonly pricing: import("effect/Schema").Struct<{
1543
- readonly computeCentsPerUnitHour: 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