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

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,70 +1,122 @@
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<"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>;
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;
26
14
  }>>;
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;
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>;
40
38
  }>>;
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"]>;
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"]>;
48
54
  }>>;
49
- readonly byProject: import("effect/Schema").$Array<import("effect/Schema").Struct<{
50
- readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
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">;
51
70
  readonly name: import("effect/Schema").String;
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;
62
- }>>;
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>;
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;
66
78
  }>;
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<{
79
+ readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
80
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").Conflict | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"setNotifications", "PUT", "/api/me/notifications", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
81
+ readonly preferences: import("effect/Schema").$Array<import("effect/Schema").Struct<{
82
+ readonly event: import("effect/Schema").Literals<readonly ["deploy_failed", "dead_letter", "spend_threshold"]>;
83
+ readonly email: import("effect/Schema").Boolean;
84
+ readonly slack: import("effect/Schema").Boolean;
85
+ }>>;
86
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
87
+ readonly preferences: import("effect/Schema").$Array<import("effect/Schema").Struct<{
88
+ readonly event: import("effect/Schema").Literals<readonly ["deploy_failed", "dead_letter", "spend_threshold"]>;
89
+ readonly email: import("effect/Schema").Boolean;
90
+ readonly slack: import("effect/Schema").Boolean;
91
+ }>>;
92
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotImplemented>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"unpinActor", "DELETE", "/api/me/pinned-actors", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
93
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
94
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
95
+ address: import("effect/Schema").String;
96
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").NoContent>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").Conflict | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"updatePreferences", "PATCH", "/api/me/preferences", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
97
+ readonly defaultEnvironment: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>>;
98
+ readonly openActorLinksInNewTab: import("effect/Schema").optional<import("effect/Schema").Boolean>;
99
+ readonly timeZone: import("effect/Schema").optional<import("effect/Schema").String>;
100
+ readonly pauseLiveTailOnScroll: import("effect/Schema").optional<import("effect/Schema").Boolean>;
101
+ readonly showReplayedCommands: import("effect/Schema").optional<import("effect/Schema").Boolean>;
102
+ readonly theme: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["light", "dark", "system"]>>;
103
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
104
+ readonly defaultEnvironment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
105
+ readonly openActorLinksInNewTab: import("effect/Schema").Boolean;
106
+ readonly timeZone: import("effect/Schema").String;
107
+ readonly pauseLiveTailOnScroll: import("effect/Schema").Boolean;
108
+ readonly showReplayedCommands: import("effect/Schema").Boolean;
109
+ readonly theme: import("effect/Schema").Literals<readonly ["light", "dark", "system"]>;
110
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotImplemented>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"updateProfile", "PATCH", "/api/me", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
111
+ readonly name: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "Name">>;
112
+ readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
113
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
114
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
115
+ readonly name: import("effect/Schema").String;
116
+ readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
117
+ readonly emailVerified: import("effect/Schema").Boolean;
118
+ readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
119
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotImplemented>, Authentication, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"apiKeys", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"create", "POST", "/api/organizations/:organizationId/api-keys", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
68
120
  organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
69
121
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
70
122
  readonly name: import("effect/Schema").brand<import("effect/Schema").String, "Name">;
@@ -115,562 +167,321 @@ declare const CloudApi_base: HttpApi.HttpApi<"akter-cloud", import("effect/http-
115
167
  }>>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"revoke", "DELETE", "/api/organizations/:organizationId/api-keys/:keyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
116
168
  organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
117
169
  keyId: import("effect/Schema").brand<import("effect/Schema").String, "ApiKeyId">;
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<{
119
- organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
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<{
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<{
132
171
  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<{
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<{
135
196
  organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
136
- memberId: import("effect/Schema").brand<import("effect/Schema").String, "MemberId">;
137
197
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
138
- readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
198
+ readonly plan: import("effect/Schema").Literals<readonly ["pro", "team", "enterprise"]>;
139
199
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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">;
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"]>;
143
207
  readonly name: import("effect/Schema").String;
144
- readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
145
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
146
- }>;
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"]>;
153
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
154
- readonly settings: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
155
- }>>, never, import("effect/Schema").toCodecJson<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>;
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;
162
228
  }>;
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">;
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">;
168
239
  }>>, 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<{
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">;
285
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
286
+ readonly plan: import("effect/Schema").Literals<readonly ["pro", "team", "enterprise"]>;
287
+ }>>, 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<{
174
290
  projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
175
291
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
176
- readonly hostname: import("effect/Schema").String;
177
292
  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
+ }>>;
178
300
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
179
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DomainId">;
180
- readonly hostname: import("effect/Schema").String;
301
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
302
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
181
303
  readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
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"]>;
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<{
185
308
  readonly name: import("effect/Schema").String;
186
- readonly value: import("effect/Schema").String;
187
- }>>;
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">>;
188
316
  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<{
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"]>;
329
+ }>>;
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<{
190
331
  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;
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">;
194
338
  readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
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"]>;
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<{
198
343
  readonly name: import("effect/Schema").String;
199
- readonly value: import("effect/Schema").String;
200
- }>>;
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">>;
201
351
  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<{
203
- projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
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<{
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"]>;
364
+ }>>;
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<{
206
366
  projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
207
- domainId: import("effect/Schema").brand<import("effect/Schema").String, "DomainId">;
367
+ deploymentId: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
208
368
  }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
209
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DomainId">;
210
- readonly hostname: import("effect/Schema").String;
369
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
370
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
211
371
  readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
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"]>;
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<{
215
376
  readonly name: import("effect/Schema").String;
216
- readonly value: import("effect/Schema").String;
217
- }>>;
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">>;
218
384
  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<{
220
- projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
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<{
224
- projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
225
- environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
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<{
232
- projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
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"]>;
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<{
240
392
  readonly id: import("effect/Schema").String;
241
- readonly name: import("effect/Schema").NullOr<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"]>;
242
397
  }>>;
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<{
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<{
399
+ 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<{
244
412
  projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
245
413
  environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
246
- name: import("effect/Schema").String;
247
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
248
- readonly value: import("effect/Schema").String;
249
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
250
- readonly name: import("effect/Schema").String;
251
- readonly usedBy: import("effect/Schema").$Array<import("effect/Schema").String>;
252
- readonly updatedAt: import("effect/Schema").DateTimeUtc;
253
- readonly updatedBy: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
254
- readonly kind: import("effect/Schema").Literals<readonly ["user", "api-key"]>;
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<{
255
421
  readonly id: import("effect/Schema").String;
256
- readonly name: import("effect/Schema").NullOr<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;
257
428
  }>>;
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<{
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<{
259
432
  projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
260
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
261
- readonly region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
262
- }>>, never, import("effect/Schema").toCodecJson<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<{
269
- projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
270
- environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
271
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
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;
275
- }>;
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", {
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<{
378
441
  readonly id: import("effect/Schema").String;
379
- }>]>;
380
- readonly createdAt: import("effect/Schema").DateTimeUtc;
381
- }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").Conflict | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never>, false> | import("effect/http-api/HttpApiGroup").HttpApiGroup<"invitations", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"accept", "POST", "/api/invitations/:invitationId/accept", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
382
- invitationId: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
383
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
384
- readonly organization: import("effect/Schema").Struct<{
385
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
386
- readonly name: import("effect/Schema").String;
387
- readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
388
- readonly plan: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"unbound", {}>, import("effect/Schema").TaggedStruct<"known", {
389
- readonly id: import("effect/Schema").Literals<readonly ["free", "pro", "team", "enterprise"]>;
390
- }>, import("effect/Schema").TaggedStruct<"unknown", {
391
- readonly id: import("effect/Schema").String;
392
- }>]>;
393
- readonly createdAt: import("effect/Schema").DateTimeUtc;
394
- }>;
395
- readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
396
- }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").Conflict | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"cancel", "DELETE", "/api/organizations/:organizationId/invitations/:invitationId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
397
- organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
398
- invitationId: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
399
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").NoContent>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").Conflict | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"create", "POST", "/api/organizations/:organizationId/invitations", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
400
- organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
401
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
402
- readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
403
- readonly role: import("effect/Schema").Literals<readonly ["admin", "member", "viewer"]>;
404
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
405
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
406
- readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
407
- readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
408
- readonly role: import("effect/Schema").Literals<readonly ["admin", "member", "viewer"]>;
409
- readonly status: import("effect/Schema").Literals<readonly ["pending", "accepted", "declined", "canceled", "expired"]>;
410
- readonly invitedBy: import("effect/Schema").Struct<{
411
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
412
- readonly name: import("effect/Schema").String;
413
- }>;
414
- readonly createdAt: import("effect/Schema").DateTimeUtc;
415
- readonly expiresAt: import("effect/Schema").DateTimeUtc;
416
- }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").Conflict | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"decline", "POST", "/api/invitations/:invitationId/decline", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
417
- invitationId: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
418
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").NoContent>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").Conflict | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/api/organizations/:organizationId/invitations", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
419
- organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
420
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
421
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
422
- readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
423
- readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
424
- readonly role: import("effect/Schema").Literals<readonly ["admin", "member", "viewer"]>;
425
- readonly status: import("effect/Schema").Literals<readonly ["pending", "accepted", "declined", "canceled", "expired"]>;
426
- readonly invitedBy: import("effect/Schema").Struct<{
427
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
428
- readonly name: import("effect/Schema").String;
429
- }>;
430
- readonly createdAt: import("effect/Schema").DateTimeUtc;
431
- readonly expiresAt: import("effect/Schema").DateTimeUtc;
432
- }>>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"preview", "GET", "/api/invitations/:invitationId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
433
- invitationId: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
434
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
435
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
436
- readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
437
- readonly role: import("effect/Schema").Literals<readonly ["admin", "member", "viewer"]>;
438
- readonly status: import("effect/Schema").Literals<readonly ["pending", "accepted", "declined", "canceled", "expired"]>;
439
- readonly expiresAt: import("effect/Schema").DateTimeUtc;
440
- readonly inviterName: import("effect/Schema").String;
441
- readonly organization: import("effect/Schema").Struct<{
442
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
443
- readonly name: import("effect/Schema").String;
444
- readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
445
- readonly plan: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"unbound", {}>, import("effect/Schema").TaggedStruct<"known", {
446
- readonly id: import("effect/Schema").Literals<readonly ["free", "pro", "team", "enterprise"]>;
447
- }>, import("effect/Schema").TaggedStruct<"unknown", {
448
- readonly id: import("effect/Schema").String;
449
- }>]>;
450
- readonly memberCount: import("effect/Schema").Int;
451
- }>;
452
- }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"resend", "POST", "/api/organizations/:organizationId/invitations/:invitationId/resend", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
453
- organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
454
- invitationId: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
455
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
456
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
457
- readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
458
- readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
459
- readonly role: import("effect/Schema").Literals<readonly ["admin", "member", "viewer"]>;
460
- readonly status: import("effect/Schema").Literals<readonly ["pending", "accepted", "declined", "canceled", "expired"]>;
461
- readonly invitedBy: import("effect/Schema").Struct<{
462
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
463
- readonly name: import("effect/Schema").String;
464
- }>;
465
- readonly createdAt: import("effect/Schema").DateTimeUtc;
466
- readonly expiresAt: import("effect/Schema").DateTimeUtc;
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<{
468
- organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
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"]>;
479
- readonly name: 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;
500
- }>;
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<{
510
- organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
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<{
549
- organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
550
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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">;
563
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
564
- readonly name: import("effect/Schema").brand<import("effect/Schema").String, "Name">;
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"]>;
567
- }>>, never, import("effect/Schema").toCodecJson<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>;
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;
626
448
  }>>;
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<{
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<{
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<{
638
452
  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>;
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;
649
476
  }>>;
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<{
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<{
664
479
  projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
480
+ deploymentId: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
665
481
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
666
- readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
482
+ readonly image: import("effect/Schema").String;
667
483
  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
- }>>;
484
+ readonly environmentSnapshot: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>;
674
485
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
675
486
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
676
487
  readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
@@ -701,12 +512,10 @@ declare const CloudApi_base: HttpApi.HttpApi<"akter-cloud", import("effect/http-
701
512
  readonly cpuPercent: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
702
513
  readonly health: import("effect/Schema").Literals<readonly ["healthy", "unhealthy", "starting", "draining"]>;
703
514
  }>>;
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<{
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<{
705
516
  projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
706
517
  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<{
518
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
710
519
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
711
520
  readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
712
521
  readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
@@ -736,7 +545,7 @@ declare const CloudApi_base: HttpApi.HttpApi<"akter-cloud", import("effect/http-
736
545
  readonly cpuPercent: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
737
546
  readonly health: import("effect/Schema").Literals<readonly ["healthy", "unhealthy", "starting", "draining"]>;
738
547
  }>>;
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<{
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<{
740
549
  projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
741
550
  deploymentId: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
742
551
  }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
@@ -769,259 +578,305 @@ declare const CloudApi_base: HttpApi.HttpApi<"akter-cloud", import("effect/http-
769
578
  readonly cpuPercent: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
770
579
  readonly health: import("effect/Schema").Literals<readonly ["healthy", "unhealthy", "starting", "draining"]>;
771
580
  }>>;
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<{
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<{
773
582
  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;
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;
783
600
  }>>;
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<{
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<"environmentApiKeys", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"create", "POST", "/api/projects/:projectId/environments/:environment/api-keys", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
786
633
  projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
787
634
  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<{
635
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
636
+ readonly name: import("effect/Schema").brand<import("effect/Schema").String, "Name">;
637
+ readonly tenant: import("effect/Schema").optional<import("effect/Schema").String>;
638
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
639
+ readonly key: import("effect/Schema").Struct<{
795
640
  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<{
641
+ readonly name: import("effect/Schema").String;
642
+ readonly tenant: import("effect/Schema").String;
643
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
644
+ readonly revokedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
645
+ }>;
646
+ readonly secret: import("effect/Schema").String;
647
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").Conflict | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/api/projects/:projectId/environments/:environment/api-keys", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
806
648
  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<{
649
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
650
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
651
+ readonly id: import("effect/Schema").String;
652
+ readonly name: import("effect/Schema").String;
653
+ readonly tenant: import("effect/Schema").String;
654
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
655
+ readonly revokedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
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<"revoke", "DELETE", "/api/projects/:projectId/environments/:environment/api-keys/:keyId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
657
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
658
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
659
+ keyId: import("effect/Schema").String;
660
+ }>>, 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<"environmentVariables", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"delete", "DELETE", "/api/projects/:projectId/environments/:environment/variables/:name", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
661
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
662
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
663
+ name: import("effect/Schema").String;
664
+ }>>, 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<{
665
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
666
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
667
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
668
+ readonly content: import("effect/Schema").String;
669
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
670
+ readonly created: import("effect/Schema").$Array<import("effect/Schema").String>;
671
+ readonly updated: import("effect/Schema").$Array<import("effect/Schema").String>;
672
+ }>>, 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<{
673
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
674
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
675
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
676
+ readonly name: import("effect/Schema").String;
677
+ readonly usedBy: import("effect/Schema").$Array<import("effect/Schema").String>;
678
+ readonly updatedAt: import("effect/Schema").DateTimeUtc;
679
+ readonly updatedBy: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
680
+ readonly kind: import("effect/Schema").Literals<readonly ["user", "api-key"]>;
815
681
  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;
682
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
822
683
  }>>;
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<{
684
+ }>>>, 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<{
826
685
  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">>;
849
- readonly createdAt: import("effect/Schema").DateTimeUtc;
686
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
687
+ name: import("effect/Schema").String;
688
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
689
+ readonly value: import("effect/Schema").String;
690
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
691
+ readonly name: import("effect/Schema").String;
692
+ readonly usedBy: import("effect/Schema").$Array<import("effect/Schema").String>;
693
+ readonly updatedAt: import("effect/Schema").DateTimeUtc;
694
+ readonly updatedBy: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
695
+ readonly kind: import("effect/Schema").Literals<readonly ["user", "api-key"]>;
696
+ readonly id: import("effect/Schema").String;
697
+ readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
850
698
  }>>;
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<{
699
+ }>>, 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<{
853
700
  projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
854
- deploymentId: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
701
+ kind: import("effect/Schema").Literals<readonly ["github", "slack", "datadog", "opentelemetry", "pagerduty"]>;
702
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
703
+ readonly settings: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>>;
704
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
705
+ readonly redirectUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
706
+ readonly integration: import("effect/Schema").Struct<{
707
+ readonly kind: import("effect/Schema").Literals<readonly ["github", "slack", "datadog", "opentelemetry", "pagerduty"]>;
708
+ readonly status: import("effect/Schema").Literals<readonly ["connected", "disconnected", "error"]>;
709
+ readonly label: import("effect/Schema").NullOr<import("effect/Schema").String>;
710
+ readonly connectedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
711
+ }>;
712
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").Conflict | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"disconnect", "DELETE", "/api/projects/:projectId/integrations/:kind", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
713
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
714
+ kind: import("effect/Schema").Literals<readonly ["github", "slack", "datadog", "opentelemetry", "pagerduty"]>;
715
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").NoContent>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").Conflict | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/api/projects/:projectId/integrations", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
716
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
717
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
718
+ readonly kind: import("effect/Schema").Literals<readonly ["github", "slack", "datadog", "opentelemetry", "pagerduty"]>;
719
+ readonly status: import("effect/Schema").Literals<readonly ["connected", "disconnected", "error"]>;
720
+ readonly label: import("effect/Schema").NullOr<import("effect/Schema").String>;
721
+ readonly connectedAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
722
+ }>>>, 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<{
723
+ invitationId: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
724
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
725
+ readonly organization: import("effect/Schema").Struct<{
726
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
727
+ readonly name: import("effect/Schema").String;
728
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
729
+ readonly plan: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"unbound", {}>, import("effect/Schema").TaggedStruct<"known", {
730
+ readonly id: import("effect/Schema").Literals<readonly ["free", "pro", "team", "enterprise"]>;
731
+ }>, import("effect/Schema").TaggedStruct<"unknown", {
732
+ readonly id: import("effect/Schema").String;
733
+ }>]>;
734
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
735
+ }>;
736
+ readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
737
+ }>>, 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<{
738
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
739
+ invitationId: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
740
+ }>>, 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<{
741
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
855
742
  }>>, 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>;
743
+ readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
744
+ readonly role: import("effect/Schema").Literals<readonly ["admin", "member", "viewer"]>;
859
745
  }>>, 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<{
746
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
747
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
748
+ readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
749
+ readonly role: import("effect/Schema").Literals<readonly ["admin", "member", "viewer"]>;
750
+ readonly status: import("effect/Schema").Literals<readonly ["pending", "accepted", "declined", "canceled", "expired"]>;
751
+ readonly invitedBy: import("effect/Schema").Struct<{
752
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
867
753
  readonly name: import("effect/Schema").String;
868
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
869
754
  }>;
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
755
  readonly createdAt: import("effect/Schema").DateTimeUtc;
876
- readonly steps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
877
- readonly name: import("effect/Schema").Literals<readonly ["build", "migrate", "start-runners", "drain-previous"]>;
878
- readonly status: import("effect/Schema").Literals<readonly ["pending", "running", "succeeded", "failed", "skipped"]>;
879
- readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Int>;
880
- readonly detail: import("effect/Schema").NullOr<import("effect/Schema").String>;
881
- }>>;
882
- readonly runners: import("effect/Schema").$Array<import("effect/Schema").Struct<{
883
- readonly id: import("effect/Schema").String;
884
- readonly region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
885
- readonly actorCount: import("effect/Schema").NullOr<import("effect/Schema").Int>;
886
- readonly cpuPercent: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
887
- readonly health: import("effect/Schema").Literals<readonly ["healthy", "unhealthy", "starting", "draining"]>;
888
- }>>;
889
- }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").Conflict | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"redeploy", "POST", "/api/projects/:projectId/deployments/:deploymentId/redeploy", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
890
- projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
891
- deploymentId: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
892
- }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
893
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">;
894
- readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
895
- readonly environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
896
- readonly environmentHost: import("effect/Schema").optional<import("effect/Schema").String>;
897
- readonly commitSha: import("effect/Schema").String;
898
- readonly message: import("effect/Schema").String;
899
- readonly author: import("effect/Schema").Struct<{
756
+ readonly expiresAt: import("effect/Schema").DateTimeUtc;
757
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").Conflict | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"decline", "POST", "/api/invitations/:invitationId/decline", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
758
+ invitationId: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
759
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/http-api/HttpApiSchema").NoContent>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").Conflict | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/api/organizations/:organizationId/invitations", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
760
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
761
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
762
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
763
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
764
+ readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
765
+ readonly role: import("effect/Schema").Literals<readonly ["admin", "member", "viewer"]>;
766
+ readonly status: import("effect/Schema").Literals<readonly ["pending", "accepted", "declined", "canceled", "expired"]>;
767
+ readonly invitedBy: import("effect/Schema").Struct<{
768
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
900
769
  readonly name: import("effect/Schema").String;
901
- readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
902
770
  }>;
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
771
  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">;
772
+ readonly expiresAt: import("effect/Schema").DateTimeUtc;
773
+ }>>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never> | import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"preview", "GET", "/api/invitations/:invitationId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
774
+ invitationId: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
925
775
  }>>, 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<{
776
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
777
+ readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
778
+ readonly role: import("effect/Schema").Literals<readonly ["admin", "member", "viewer"]>;
779
+ readonly status: import("effect/Schema").Literals<readonly ["pending", "accepted", "declined", "canceled", "expired"]>;
780
+ readonly expiresAt: import("effect/Schema").DateTimeUtc;
781
+ readonly inviterName: import("effect/Schema").String;
782
+ readonly organization: import("effect/Schema").Struct<{
783
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
784
+ readonly name: import("effect/Schema").String;
785
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
786
+ readonly plan: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"unbound", {}>, import("effect/Schema").TaggedStruct<"known", {
787
+ readonly id: import("effect/Schema").Literals<readonly ["free", "pro", "team", "enterprise"]>;
788
+ }>, import("effect/Schema").TaggedStruct<"unknown", {
789
+ readonly id: import("effect/Schema").String;
790
+ }>]>;
791
+ readonly memberCount: import("effect/Schema").Int;
792
+ }>;
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<"resend", "POST", "/api/organizations/:organizationId/invitations/:invitationId/resend", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
794
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
795
+ invitationId: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
796
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
797
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "InvitationId">;
798
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
799
+ readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
800
+ readonly role: import("effect/Schema").Literals<readonly ["admin", "member", "viewer"]>;
801
+ readonly status: import("effect/Schema").Literals<readonly ["pending", "accepted", "declined", "canceled", "expired"]>;
802
+ readonly invitedBy: import("effect/Schema").Struct<{
803
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
804
+ readonly name: import("effect/Schema").String;
805
+ }>;
806
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
807
+ readonly expiresAt: import("effect/Schema").DateTimeUtc;
808
+ }>>, 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<{
809
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
810
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
811
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "MemberId">;
812
+ readonly user: import("effect/Schema").Struct<{
813
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
933
814
  readonly name: import("effect/Schema").String;
815
+ readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
934
816
  readonly image: import("effect/Schema").NullOr<import("effect/Schema").String>;
935
817
  }>;
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">>;
818
+ readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
941
819
  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<{
820
+ readonly lastActiveAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
821
+ }>>>, 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<{
822
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
823
+ memberId: import("effect/Schema").brand<import("effect/Schema").String, "MemberId">;
824
+ }>>, 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<{
825
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
826
+ memberId: import("effect/Schema").brand<import("effect/Schema").String, "MemberId">;
827
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
828
+ readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
829
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
830
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "MemberId">;
831
+ readonly user: import("effect/Schema").Struct<{
990
832
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
991
833
  readonly name: import("effect/Schema").String;
992
834
  readonly email: import("effect/Schema").brand<import("effect/Schema").String, "Email">;
993
- readonly emailVerified: import("effect/Schema").Boolean;
994
835
  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;
836
+ }>;
837
+ readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
838
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
839
+ readonly lastActiveAt: import("effect/Schema").NullOr<import("effect/Schema").DateTimeUtc>;
840
+ }>>, 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<{
841
+ readonly name: import("effect/Schema").brand<import("effect/Schema").String, "Name">;
842
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
1016
843
  }>>, 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<{
844
+ readonly organization: import("effect/Schema").Struct<{
845
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
846
+ readonly name: import("effect/Schema").String;
847
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
848
+ readonly plan: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"unbound", {}>, import("effect/Schema").TaggedStruct<"known", {
849
+ readonly id: import("effect/Schema").Literals<readonly ["free", "pro", "team", "enterprise"]>;
850
+ }>, import("effect/Schema").TaggedStruct<"unknown", {
851
+ readonly id: import("effect/Schema").String;
852
+ }>]>;
853
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
854
+ }>;
855
+ readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
856
+ }>>, 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<{
857
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
858
+ }>>, 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<{
859
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
860
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
861
+ readonly organization: import("effect/Schema").Struct<{
862
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
863
+ readonly name: import("effect/Schema").String;
864
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
865
+ readonly plan: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"unbound", {}>, import("effect/Schema").TaggedStruct<"known", {
866
+ readonly id: import("effect/Schema").Literals<readonly ["free", "pro", "team", "enterprise"]>;
867
+ }>, import("effect/Schema").TaggedStruct<"unknown", {
868
+ readonly id: import("effect/Schema").String;
869
+ }>]>;
870
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
871
+ }>;
872
+ readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
873
+ }>>, 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<{
874
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
875
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1023
876
  readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
1024
- }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
877
+ readonly phase: import("effect/Schema").Literals<readonly ["billing", "runners", "databases", "records", "completed"]>;
878
+ readonly blocked: import("effect/Schema").Boolean;
879
+ }>>, 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<{
1025
880
  readonly organization: import("effect/Schema").Struct<{
1026
881
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
1027
882
  readonly name: import("effect/Schema").String;
@@ -1034,46 +889,180 @@ declare const CloudApi_base: HttpApi.HttpApi<"akter-cloud", import("effect/http-
1034
889
  readonly createdAt: import("effect/Schema").DateTimeUtc;
1035
890
  }>;
1036
891
  readonly role: import("effect/Schema").Literals<readonly ["owner", "admin", "member", "viewer"]>;
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
- }>>;
892
+ }>>>, 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<{
893
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
1043
894
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
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;
895
+ readonly name: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "Name">>;
896
+ readonly slug: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "Slug">>;
897
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
898
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
899
+ readonly name: import("effect/Schema").String;
900
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
901
+ readonly plan: import("effect/Schema").Union<readonly [import("effect/Schema").TaggedStruct<"unbound", {}>, import("effect/Schema").TaggedStruct<"known", {
902
+ readonly id: import("effect/Schema").Literals<readonly ["free", "pro", "team", "enterprise"]>;
903
+ }>, import("effect/Schema").TaggedStruct<"unknown", {
904
+ readonly id: import("effect/Schema").String;
905
+ }>]>;
906
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
907
+ }>>, 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<{
908
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
909
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
910
+ readonly name: import("effect/Schema").brand<import("effect/Schema").String, "Name">;
911
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
912
+ readonly homeRegion: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
913
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
914
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
915
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
916
+ readonly name: import("effect/Schema").String;
917
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
918
+ readonly status: import("effect/Schema").Literals<readonly ["empty", "live", "deploying", "failed"]>;
919
+ readonly homeRegion: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
920
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
921
+ }>>, 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<{
922
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
923
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
924
+ readonly name: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
925
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
926
+ readonly name: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
927
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
928
+ readonly currentDeploymentId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
929
+ readonly database: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
930
+ readonly source: import("effect/Schema").Literal<"customer">;
931
+ readonly state: import("effect/Schema").Literals<readonly ["missing", "reachable", "unreachable"]>;
932
+ readonly latency: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
933
+ readonly latencyWarning: import("effect/Schema").Boolean;
934
+ readonly runnerCap: import("effect/Schema").NullOr<import("effect/Schema").Int>;
1048
935
  }>>;
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<{
936
+ }>>, 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<{
937
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
938
+ }>>, 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<{
1050
939
  projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1051
940
  environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
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"]>>;
941
+ }>>, 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<{
942
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
943
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
944
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
945
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
946
+ readonly name: import("effect/Schema").String;
947
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
948
+ readonly status: import("effect/Schema").Literals<readonly ["empty", "live", "deploying", "failed"]>;
949
+ readonly homeRegion: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
950
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
951
+ }>>, 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<{
952
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
953
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
954
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
955
+ readonly httpBaseUrl: import("effect/Schema").String;
956
+ readonly webSocketUrl: import("effect/Schema").String;
957
+ readonly openApiPath: import("effect/Schema").String;
958
+ readonly mcpPath: import("effect/Schema").String;
959
+ }>>, 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<{
960
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
961
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
962
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
963
+ readonly name: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
964
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
965
+ readonly currentDeploymentId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
966
+ readonly database: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
967
+ readonly source: import("effect/Schema").Literal<"customer">;
968
+ readonly state: import("effect/Schema").Literals<readonly ["missing", "reachable", "unreachable"]>;
969
+ readonly latency: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
970
+ readonly latencyWarning: import("effect/Schema").Boolean;
971
+ readonly runnerCap: import("effect/Schema").NullOr<import("effect/Schema").Int>;
972
+ }>>;
973
+ }>>, 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<{
974
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
975
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
976
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
977
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
978
+ readonly name: import("effect/Schema").String;
979
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
980
+ readonly status: import("effect/Schema").Literals<readonly ["empty", "live", "deploying", "failed"]>;
981
+ readonly homeRegion: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
982
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
983
+ }>>>, 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<{
984
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
985
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
986
+ readonly name: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
987
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
988
+ readonly currentDeploymentId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DeploymentId">>;
989
+ readonly database: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
990
+ readonly source: import("effect/Schema").Literal<"customer">;
991
+ readonly state: import("effect/Schema").Literals<readonly ["missing", "reachable", "unreachable"]>;
992
+ readonly latency: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
993
+ readonly latencyWarning: import("effect/Schema").Boolean;
994
+ readonly runnerCap: import("effect/Schema").NullOr<import("effect/Schema").Int>;
995
+ }>>;
996
+ }>>>, 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<{
997
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1060
998
  }>>, 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<{
1068
999
  readonly name: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "Name">>;
1069
- readonly image: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
1000
+ readonly slug: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "Slug">>;
1070
1001
  }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1071
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "UserId">;
1002
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1003
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
1072
1004
  readonly name: import("effect/Schema").String;
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<{
1005
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
1006
+ readonly status: import("effect/Schema").Literals<readonly ["empty", "live", "deploying", "failed"]>;
1007
+ readonly homeRegion: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
1008
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
1009
+ }>>, 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<{
1010
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1011
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1012
+ readonly region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
1013
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1014
+ readonly id: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
1015
+ readonly city: import("effect/Schema").String;
1016
+ }>>, 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<{
1017
+ readonly id: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
1018
+ readonly city: import("effect/Schema").String;
1019
+ }>>>, 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<{
1020
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1021
+ environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1022
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1023
+ readonly region: import("effect/Schema").Struct<{
1024
+ readonly id: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
1025
+ readonly city: import("effect/Schema").String;
1026
+ }>;
1027
+ readonly home: import("effect/Schema").Boolean;
1028
+ readonly tenantCount: import("effect/Schema").Int;
1029
+ readonly database: import("effect/Schema").Struct<{
1030
+ readonly version: import("effect/Schema").String;
1031
+ readonly sizeBytes: import("effect/Schema").Int;
1032
+ }>;
1033
+ readonly storage: import("effect/Schema").Struct<{
1034
+ readonly usedBytes: import("effect/Schema").Int;
1035
+ readonly limitBytes: import("effect/Schema").Int;
1036
+ }>;
1037
+ readonly cpuPercent: import("effect/Schema").Finite;
1038
+ readonly connections: import("effect/Schema").Struct<{
1039
+ readonly used: import("effect/Schema").Int;
1040
+ readonly limit: import("effect/Schema").Int;
1041
+ }>;
1042
+ readonly runners: import("effect/Schema").Int;
1043
+ readonly largestTables: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1044
+ readonly name: import("effect/Schema").String;
1045
+ readonly actor: import("effect/Schema").String;
1046
+ readonly rows: import("effect/Schema").Int;
1047
+ readonly sizeBytes: import("effect/Schema").Int;
1048
+ readonly region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
1049
+ }>>;
1050
+ }>>>, 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<{
1051
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1052
+ region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
1053
+ }>>, 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<{
1054
+ projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1055
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1056
+ readonly region: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
1057
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1058
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1059
+ readonly organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
1060
+ readonly name: import("effect/Schema").String;
1061
+ readonly slug: import("effect/Schema").brand<import("effect/Schema").String, "Slug">;
1062
+ readonly status: import("effect/Schema").Literals<readonly ["empty", "live", "deploying", "failed"]>;
1063
+ readonly homeRegion: import("effect/Schema").Literals<readonly ["us-east-1", "us-west-2"]>;
1064
+ readonly createdAt: import("effect/Schema").DateTimeUtc;
1065
+ }>>, 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<{
1077
1066
  projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1078
1067
  environment: import("effect/Schema").Literals<readonly ["production", "staging", "dev"]>;
1079
1068
  deadLetterId: import("effect/Schema").brand<import("effect/Schema").String, "DeadLetterId">;
@@ -1543,7 +1532,46 @@ declare const CloudApi_base: HttpApi.HttpApi<"akter-cloud", import("effect/http-
1543
1532
  readonly payloadPreview: string | null;
1544
1533
  readonly outcome: "error" | "ok" | "replayed";
1545
1534
  readonly errorTag: string | null;
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>>;
1535
+ }>, 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<{
1536
+ organizationId: import("effect/Schema").brand<import("effect/Schema").String, "OrganizationId">;
1537
+ }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1538
+ period: import("effect/Schema").optional<import("effect/Schema").String>;
1539
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
1540
+ readonly period: import("effect/Schema").String;
1541
+ readonly meters: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1542
+ readonly meter: import("effect/Schema").Literal<"runnerHours">;
1543
+ readonly used: import("effect/Schema").Finite;
1544
+ readonly included: import("effect/Schema").Finite;
1545
+ readonly overage: import("effect/Schema").Finite;
1546
+ readonly overageCostCents: import("effect/Schema").Finite;
1547
+ }>>;
1548
+ readonly caps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1549
+ readonly limit: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
1550
+ readonly used: import("effect/Schema").Finite;
1551
+ readonly atCap: import("effect/Schema").Boolean;
1552
+ readonly refusing: import("effect/Schema").Boolean;
1553
+ readonly reason: import("effect/Schema").optionalKey<import("effect/Schema").Literal<"unbound">>;
1554
+ readonly cap: import("effect/Schema").Literals<readonly ["spend", "connections", "compute"]>;
1555
+ }>>;
1556
+ readonly byProject: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1557
+ readonly projectId: import("effect/Schema").brand<import("effect/Schema").String, "ProjectId">;
1558
+ readonly name: import("effect/Schema").String;
1559
+ readonly computeUnitHours: import("effect/Schema").Finite;
1560
+ readonly compute: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1561
+ readonly cpuKind: import("effect/Schema").Literals<readonly ["shared", "performance"]>;
1562
+ readonly cpus: import("effect/Schema").Int;
1563
+ readonly memoryMb: import("effect/Schema").Int;
1564
+ readonly environmentId: import("effect/Schema").brand<import("effect/Schema").String, "EnvironmentId">;
1565
+ readonly machineHours: import("effect/Schema").Finite;
1566
+ readonly computeUnitHours: import("effect/Schema").Finite;
1567
+ }>>;
1568
+ readonly estimatedCostCents: import("effect/Schema").Finite;
1569
+ }>>;
1570
+ readonly pricing: import("effect/Schema").Struct<{
1571
+ readonly computeCentsPerUnitHour: import("effect/Schema").Finite;
1572
+ readonly provisional: import("effect/Schema").optionalKey<import("effect/Schema").Boolean>;
1573
+ }>;
1574
+ }>>, import("effect/Schema").toCodecJson<typeof import("./errors.ts").Forbidden | typeof import("./errors.ts").NotFound | typeof import("./errors.ts").NotImplemented | typeof import("./errors.ts").Unavailable>, Authentication, never>, false>>;
1547
1575
  /**
1548
1576
  * The console's control-plane and runtime-inspection API. Every endpoint lives
1549
1577
  * under `/api` and requires `Authentication`; a browser client carries the