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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,179 @@
1
+ import { Schema } from "effect";
2
+ import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
3
+ declare const BillingGroup_base: HttpApiGroup.HttpApiGroup<"billing", HttpApiEndpoint.HttpApiEndpoint<"changePlan", "POST", "/organizations/:organizationId/billing/plan", Schema.toCodecStringTree<Schema.Struct<{
4
+ organizationId: Schema.brand<Schema.String, "OrganizationId">;
5
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
6
+ readonly plan: Schema.Literals<readonly ["pro", "team", "enterprise"]>;
7
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
8
+ readonly requestId: Schema.String;
9
+ readonly status: Schema.Literals<readonly ["pending", "completed", "failed"]>;
10
+ }>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").Conflict | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/organizations/:organizationId/billing", Schema.toCodecStringTree<Schema.Struct<{
11
+ organizationId: Schema.brand<Schema.String, "OrganizationId">;
12
+ }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
13
+ readonly plan: Schema.Union<readonly [Schema.TaggedStruct<"known", {
14
+ readonly id: Schema.Literals<readonly ["free", "pro", "team", "enterprise"]>;
15
+ readonly name: Schema.String;
16
+ readonly basePriceCents: Schema.Int;
17
+ readonly currency: Schema.Literal<"usd">;
18
+ readonly renewsAt: Schema.NullOr<Schema.DateTimeUtc>;
19
+ readonly monthToDateEstimateCents: Schema.Int;
20
+ readonly provisional: Schema.optionalKey<Schema.Boolean>;
21
+ readonly subscribedId: Schema.optionalKey<Schema.Literals<readonly ["free", "pro", "team", "enterprise"]>>;
22
+ readonly paymentStatus: Schema.optionalKey<Schema.Literals<readonly ["free", "active", "past_due", "unpaid", "canceled", "incomplete"]>>;
23
+ }>, Schema.TaggedStruct<"unbound", {}>]>;
24
+ readonly paymentMethod: Schema.NullOr<Schema.Union<readonly [Schema.TaggedStruct<"card", {
25
+ readonly brand: Schema.String;
26
+ readonly lastFour: Schema.String;
27
+ readonly expiryMonth: Schema.Int;
28
+ readonly expiryYear: Schema.Int;
29
+ }>, Schema.TaggedStruct<"link", {
30
+ readonly email: Schema.NullOr<Schema.String>;
31
+ }>]>>;
32
+ readonly billingEmail: Schema.NullOr<Schema.brand<Schema.String, "Email">>;
33
+ readonly spendLimit: Schema.Struct<{
34
+ readonly limitCents: Schema.NullOr<Schema.Int>;
35
+ readonly currentSpendCents: Schema.Int;
36
+ }>;
37
+ readonly caps: Schema.optionalKey<Schema.$Array<Schema.Struct<{
38
+ readonly limit: Schema.NullOr<Schema.Finite>;
39
+ readonly used: Schema.Finite;
40
+ readonly atCap: Schema.Boolean;
41
+ readonly refusing: Schema.Boolean;
42
+ readonly reason: Schema.optionalKey<Schema.Literal<"unbound">>;
43
+ readonly cap: Schema.Literals<readonly ["spend", "connections", "compute", "storage"]>;
44
+ }>>>;
45
+ }>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listInvoices", "GET", "/organizations/:organizationId/billing/invoices", Schema.toCodecStringTree<Schema.Struct<{
46
+ organizationId: Schema.brand<Schema.String, "OrganizationId">;
47
+ }>>, never, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
48
+ readonly id: Schema.brand<Schema.String, "InvoiceId">;
49
+ readonly number: Schema.String;
50
+ readonly periodStart: Schema.DateTimeUtc;
51
+ readonly periodEnd: Schema.DateTimeUtc;
52
+ readonly amountCents: Schema.Int;
53
+ readonly currency: Schema.Literal<"usd">;
54
+ readonly status: Schema.Literals<readonly ["draft", "open", "paid", "void", "uncollectible"]>;
55
+ readonly pdfUrl: Schema.NullOr<Schema.String>;
56
+ }>>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listPlans", "GET", "/billing/plans", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
57
+ readonly plans: Schema.$Array<Schema.Struct<{
58
+ readonly id: Schema.Literals<readonly ["free", "pro", "team", "enterprise"]>;
59
+ readonly name: Schema.String;
60
+ readonly basePriceCents: Schema.Int;
61
+ readonly currency: Schema.Literal<"usd">;
62
+ readonly allowances: Schema.Struct<{
63
+ readonly computeUnitHours: Schema.Finite;
64
+ readonly computeUnitHourCap: Schema.NullOr<Schema.Finite>;
65
+ readonly storageGb: Schema.Finite;
66
+ readonly storageGbCap: Schema.NullOr<Schema.Finite>;
67
+ readonly concurrentConnections: Schema.Int;
68
+ }>;
69
+ readonly overage: Schema.Struct<{
70
+ readonly computeCentsPerUnitHour: Schema.Finite;
71
+ readonly storageCentsPerGbMonth: Schema.Finite;
72
+ }>;
73
+ readonly features: Schema.$Array<Schema.Literals<readonly ["compute-overage", "compute-cap", "storage-overage", "storage-cap", "byo-database", "dedicated-database", "checkout"]>>;
74
+ readonly provisional: Schema.Boolean;
75
+ }>>;
76
+ readonly computeSizes: Schema.$Array<Schema.Struct<{
77
+ readonly cpuKind: Schema.Literals<readonly ["shared", "performance"]>;
78
+ readonly cpus: Schema.Int;
79
+ readonly memoryMb: Schema.Int;
80
+ readonly unitsPerHour: Schema.Finite;
81
+ }>>;
82
+ readonly provisional: Schema.Boolean;
83
+ }>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotImplemented>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"openPortal", "POST", "/organizations/:organizationId/billing/portal", Schema.toCodecStringTree<Schema.Struct<{
84
+ organizationId: Schema.brand<Schema.String, "OrganizationId">;
85
+ }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
86
+ readonly url: Schema.String;
87
+ }>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").Conflict | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"setSpendLimit", "PUT", "/organizations/:organizationId/billing/spend-limit", Schema.toCodecStringTree<Schema.Struct<{
88
+ organizationId: Schema.brand<Schema.String, "OrganizationId">;
89
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
90
+ readonly limitCents: Schema.NullOr<Schema.Int>;
91
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
92
+ readonly limitCents: Schema.NullOr<Schema.Int>;
93
+ readonly currentSpendCents: Schema.Int;
94
+ }>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").Conflict | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"startCheckout", "POST", "/organizations/:organizationId/billing/checkout", Schema.toCodecStringTree<Schema.Struct<{
95
+ organizationId: Schema.brand<Schema.String, "OrganizationId">;
96
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
97
+ readonly plan: Schema.Literals<readonly ["pro", "team", "enterprise"]>;
98
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
99
+ readonly url: Schema.String;
100
+ }>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").Conflict | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable>, never, never>, false>;
101
+ export declare class BillingGroup extends BillingGroup_base {
102
+ }
103
+ declare const UsageGroup_base: HttpApiGroup.HttpApiGroup<"usage", HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/organizations/:organizationId/usage", Schema.toCodecStringTree<Schema.Struct<{
104
+ organizationId: Schema.brand<Schema.String, "OrganizationId">;
105
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
106
+ period: Schema.optional<Schema.String>;
107
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
108
+ readonly period: Schema.String;
109
+ readonly meters: Schema.$Array<Schema.Struct<{
110
+ readonly meter: Schema.Literals<readonly ["runnerHours", "storageGb"]>;
111
+ readonly used: Schema.Finite;
112
+ readonly included: Schema.Finite;
113
+ readonly overage: Schema.Finite;
114
+ readonly overageCostCents: Schema.Finite;
115
+ }>>;
116
+ readonly latestStorageSample: Schema.NullOr<Schema.Struct<{
117
+ readonly bytes: Schema.Finite;
118
+ readonly sampledAt: Schema.DateTimeUtc;
119
+ }>>;
120
+ readonly caps: Schema.$Array<Schema.Struct<{
121
+ readonly limit: Schema.NullOr<Schema.Finite>;
122
+ readonly used: Schema.Finite;
123
+ readonly atCap: Schema.Boolean;
124
+ readonly refusing: Schema.Boolean;
125
+ readonly reason: Schema.optionalKey<Schema.Literal<"unbound">>;
126
+ readonly cap: Schema.Literals<readonly ["spend", "connections", "compute", "storage"]>;
127
+ }>>;
128
+ readonly byProject: Schema.$Array<Schema.Struct<{
129
+ readonly projectId: Schema.brand<Schema.String, "ProjectId">;
130
+ readonly name: Schema.String;
131
+ readonly computeUnitHours: Schema.Finite;
132
+ readonly compute: Schema.$Array<Schema.Struct<{
133
+ readonly cpuKind: Schema.Literals<readonly ["shared", "performance"]>;
134
+ readonly cpus: Schema.Int;
135
+ readonly memoryMb: Schema.Int;
136
+ readonly environmentId: Schema.brand<Schema.String, "EnvironmentId">;
137
+ readonly machineHours: Schema.Finite;
138
+ readonly computeUnitHours: Schema.Finite;
139
+ }>>;
140
+ readonly storageGbMonths: Schema.Finite;
141
+ readonly estimatedCostCents: Schema.Finite;
142
+ }>>;
143
+ readonly pricing: Schema.Struct<{
144
+ readonly computeCentsPerUnitHour: Schema.Finite;
145
+ readonly storageCentsPerGbMonth: Schema.Finite;
146
+ readonly provisional: Schema.optionalKey<Schema.Boolean>;
147
+ }>;
148
+ }>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable>, never, never>, false>;
149
+ export declare class UsageGroup extends UsageGroup_base {
150
+ }
151
+ declare const AuditGroup_base: HttpApiGroup.HttpApiGroup<"audit", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/organizations/:organizationId/audit-log", Schema.toCodecStringTree<Schema.Struct<{
152
+ organizationId: Schema.brand<Schema.String, "OrganizationId">;
153
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
154
+ limit: Schema.optional<Schema.Int>;
155
+ cursor: Schema.optional<Schema.String>;
156
+ action: Schema.optional<Schema.String>;
157
+ actorId: Schema.optional<Schema.String>;
158
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
159
+ readonly items: Schema.$Array<Schema.Struct<{
160
+ readonly id: Schema.String;
161
+ readonly at: Schema.DateTimeUtc;
162
+ readonly actor: Schema.Struct<{
163
+ readonly kind: Schema.Literals<readonly ["user", "api-key"]>;
164
+ readonly id: Schema.String;
165
+ readonly name: Schema.NullOr<Schema.String>;
166
+ }>;
167
+ readonly action: Schema.String;
168
+ readonly target: Schema.Struct<{
169
+ readonly type: Schema.String;
170
+ readonly id: Schema.NullOr<Schema.String>;
171
+ readonly name: Schema.NullOr<Schema.String>;
172
+ }>;
173
+ readonly ipAddress: Schema.NullOr<Schema.String>;
174
+ }>>;
175
+ readonly nextCursor: Schema.NullOr<Schema.String>;
176
+ }>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable>, never, never>, false>;
177
+ export declare class AuditGroup extends AuditGroup_base {
178
+ }
179
+ export {};
@@ -0,0 +1,304 @@
1
+ import { Schema } from "effect";
2
+ import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
3
+ import { PayloadTooLarge } from "../errors.ts";
4
+ declare const DeploymentsGroup_base: HttpApiGroup.HttpApiGroup<"deployments", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/projects/:projectId/deployments", Schema.toCodecStringTree<Schema.Struct<{
5
+ projectId: Schema.brand<Schema.String, "ProjectId">;
6
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
7
+ readonly environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
8
+ readonly commitSha: Schema.String;
9
+ readonly message: Schema.optional<Schema.String>;
10
+ readonly regions: Schema.optional<Schema.$Array<Schema.Literals<readonly ["us-east-1", "us-west-2"]>>>;
11
+ readonly source: Schema.optional<Schema.Struct<{
12
+ readonly digest: Schema.String;
13
+ readonly dockerfile: Schema.optionalKey<Schema.Never>;
14
+ }>>;
15
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
16
+ readonly id: Schema.brand<Schema.String, "DeploymentId">;
17
+ readonly projectId: Schema.brand<Schema.String, "ProjectId">;
18
+ readonly environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
19
+ readonly environmentHost: Schema.optional<Schema.String>;
20
+ readonly commitSha: Schema.String;
21
+ readonly message: Schema.String;
22
+ readonly author: Schema.Struct<{
23
+ readonly name: Schema.String;
24
+ readonly image: Schema.NullOr<Schema.String>;
25
+ }>;
26
+ readonly regions: Schema.$Array<Schema.Literals<readonly ["us-east-1", "us-west-2"]>>;
27
+ readonly runnerCount: Schema.Int;
28
+ readonly durationMs: Schema.NullOr<Schema.Int>;
29
+ readonly status: Schema.Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
30
+ readonly rolledBackFrom: Schema.NullOr<Schema.brand<Schema.String, "DeploymentId">>;
31
+ readonly createdAt: Schema.DateTimeUtc;
32
+ readonly steps: Schema.$Array<Schema.Struct<{
33
+ readonly name: Schema.Literals<readonly ["build", "migrate", "start-runners", "drain-previous"]>;
34
+ readonly status: Schema.Literals<readonly ["pending", "running", "succeeded", "failed", "skipped"]>;
35
+ readonly durationMs: Schema.NullOr<Schema.Int>;
36
+ readonly detail: Schema.NullOr<Schema.String>;
37
+ }>>;
38
+ readonly runners: Schema.$Array<Schema.Struct<{
39
+ readonly id: Schema.String;
40
+ readonly region: Schema.Literals<readonly ["us-east-1", "us-west-2"]>;
41
+ readonly actorCount: Schema.NullOr<Schema.Int>;
42
+ readonly cpuPercent: Schema.NullOr<Schema.Finite>;
43
+ readonly health: Schema.Literals<readonly ["healthy", "unhealthy", "starting", "draining"]>;
44
+ }>>;
45
+ }>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").Conflict | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"failBuild", "POST", "/projects/:projectId/deployments/:deploymentId/build-failure", Schema.toCodecStringTree<Schema.Struct<{
46
+ projectId: Schema.brand<Schema.String, "ProjectId">;
47
+ deploymentId: Schema.brand<Schema.String, "DeploymentId">;
48
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
49
+ readonly reason: Schema.String;
50
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
51
+ readonly id: Schema.brand<Schema.String, "DeploymentId">;
52
+ readonly projectId: Schema.brand<Schema.String, "ProjectId">;
53
+ readonly environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
54
+ readonly environmentHost: Schema.optional<Schema.String>;
55
+ readonly commitSha: Schema.String;
56
+ readonly message: Schema.String;
57
+ readonly author: Schema.Struct<{
58
+ readonly name: Schema.String;
59
+ readonly image: Schema.NullOr<Schema.String>;
60
+ }>;
61
+ readonly regions: Schema.$Array<Schema.Literals<readonly ["us-east-1", "us-west-2"]>>;
62
+ readonly runnerCount: Schema.Int;
63
+ readonly durationMs: Schema.NullOr<Schema.Int>;
64
+ readonly status: Schema.Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
65
+ readonly rolledBackFrom: Schema.NullOr<Schema.brand<Schema.String, "DeploymentId">>;
66
+ readonly createdAt: Schema.DateTimeUtc;
67
+ readonly steps: Schema.$Array<Schema.Struct<{
68
+ readonly name: Schema.Literals<readonly ["build", "migrate", "start-runners", "drain-previous"]>;
69
+ readonly status: Schema.Literals<readonly ["pending", "running", "succeeded", "failed", "skipped"]>;
70
+ readonly durationMs: Schema.NullOr<Schema.Int>;
71
+ readonly detail: Schema.NullOr<Schema.String>;
72
+ }>>;
73
+ readonly runners: Schema.$Array<Schema.Struct<{
74
+ readonly id: Schema.String;
75
+ readonly region: Schema.Literals<readonly ["us-east-1", "us-west-2"]>;
76
+ readonly actorCount: Schema.NullOr<Schema.Int>;
77
+ readonly cpuPercent: Schema.NullOr<Schema.Finite>;
78
+ readonly health: Schema.Literals<readonly ["healthy", "unhealthy", "starting", "draining"]>;
79
+ }>>;
80
+ }>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").Conflict | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/projects/:projectId/deployments/:deploymentId", Schema.toCodecStringTree<Schema.Struct<{
81
+ projectId: Schema.brand<Schema.String, "ProjectId">;
82
+ deploymentId: Schema.brand<Schema.String, "DeploymentId">;
83
+ }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
84
+ readonly id: Schema.brand<Schema.String, "DeploymentId">;
85
+ readonly projectId: Schema.brand<Schema.String, "ProjectId">;
86
+ readonly environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
87
+ readonly environmentHost: Schema.optional<Schema.String>;
88
+ readonly commitSha: Schema.String;
89
+ readonly message: Schema.String;
90
+ readonly author: Schema.Struct<{
91
+ readonly name: Schema.String;
92
+ readonly image: Schema.NullOr<Schema.String>;
93
+ }>;
94
+ readonly regions: Schema.$Array<Schema.Literals<readonly ["us-east-1", "us-west-2"]>>;
95
+ readonly runnerCount: Schema.Int;
96
+ readonly durationMs: Schema.NullOr<Schema.Int>;
97
+ readonly status: Schema.Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
98
+ readonly rolledBackFrom: Schema.NullOr<Schema.brand<Schema.String, "DeploymentId">>;
99
+ readonly createdAt: Schema.DateTimeUtc;
100
+ readonly steps: Schema.$Array<Schema.Struct<{
101
+ readonly name: Schema.Literals<readonly ["build", "migrate", "start-runners", "drain-previous"]>;
102
+ readonly status: Schema.Literals<readonly ["pending", "running", "succeeded", "failed", "skipped"]>;
103
+ readonly durationMs: Schema.NullOr<Schema.Int>;
104
+ readonly detail: Schema.NullOr<Schema.String>;
105
+ }>>;
106
+ readonly runners: Schema.$Array<Schema.Struct<{
107
+ readonly id: Schema.String;
108
+ readonly region: Schema.Literals<readonly ["us-east-1", "us-west-2"]>;
109
+ readonly actorCount: Schema.NullOr<Schema.Int>;
110
+ readonly cpuPercent: Schema.NullOr<Schema.Finite>;
111
+ readonly health: Schema.Literals<readonly ["healthy", "unhealthy", "starting", "draining"]>;
112
+ }>>;
113
+ }>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getBuildLog", "GET", "/projects/:projectId/deployments/:deploymentId/build-log", Schema.toCodecStringTree<Schema.Struct<{
114
+ projectId: Schema.brand<Schema.String, "ProjectId">;
115
+ deploymentId: Schema.brand<Schema.String, "DeploymentId">;
116
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
117
+ after: Schema.optional<Schema.Int>;
118
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
119
+ readonly lines: Schema.$Array<Schema.Struct<{
120
+ readonly index: Schema.Int;
121
+ readonly at: Schema.DateTimeUtc;
122
+ readonly stream: Schema.Literals<readonly ["stdout", "stderr"]>;
123
+ readonly text: Schema.String;
124
+ }>>;
125
+ readonly complete: Schema.Boolean;
126
+ }>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getEnvironmentLogs", "GET", "/projects/:projectId/environments/:environment/logs", Schema.toCodecStringTree<Schema.Struct<{
127
+ projectId: Schema.brand<Schema.String, "ProjectId">;
128
+ environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
129
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
130
+ since: Schema.optional<Schema.DateTimeUtc>;
131
+ limit: Schema.optional<Schema.Int>;
132
+ cursor: Schema.optional<Schema.String>;
133
+ wait: Schema.optional<Schema.Int>;
134
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
135
+ readonly lines: Schema.$Array<Schema.Struct<{
136
+ readonly id: Schema.String;
137
+ readonly deploymentId: Schema.brand<Schema.String, "DeploymentId">;
138
+ readonly runnerId: Schema.String;
139
+ readonly at: Schema.DateTimeUtc;
140
+ readonly stream: Schema.Literals<readonly ["stdout", "stderr", "unknown"]>;
141
+ readonly text: Schema.String;
142
+ readonly clipped: Schema.Boolean;
143
+ }>>;
144
+ readonly cursor: Schema.String;
145
+ readonly more: Schema.Boolean;
146
+ }>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getLogs", "GET", "/projects/:projectId/deployments/:deploymentId/logs", Schema.toCodecStringTree<Schema.Struct<{
147
+ projectId: Schema.brand<Schema.String, "ProjectId">;
148
+ deploymentId: Schema.brand<Schema.String, "DeploymentId">;
149
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
150
+ since: Schema.optional<Schema.DateTimeUtc>;
151
+ limit: Schema.optional<Schema.Int>;
152
+ cursor: Schema.optional<Schema.String>;
153
+ wait: Schema.optional<Schema.Int>;
154
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
155
+ readonly lines: Schema.$Array<Schema.Struct<{
156
+ readonly id: Schema.String;
157
+ readonly deploymentId: Schema.brand<Schema.String, "DeploymentId">;
158
+ readonly runnerId: Schema.String;
159
+ readonly at: Schema.DateTimeUtc;
160
+ readonly stream: Schema.Literals<readonly ["stdout", "stderr", "unknown"]>;
161
+ readonly text: Schema.String;
162
+ readonly clipped: Schema.Boolean;
163
+ }>>;
164
+ readonly cursor: Schema.String;
165
+ readonly more: Schema.Boolean;
166
+ }>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/projects/:projectId/deployments", Schema.toCodecStringTree<Schema.Struct<{
167
+ projectId: Schema.brand<Schema.String, "ProjectId">;
168
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
169
+ limit: Schema.optional<Schema.Int>;
170
+ cursor: Schema.optional<Schema.String>;
171
+ environment: Schema.optional<Schema.Literals<readonly ["production", "staging", "dev"]>>;
172
+ status: Schema.optional<Schema.Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>>;
173
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
174
+ readonly items: Schema.$Array<Schema.Struct<{
175
+ readonly id: Schema.brand<Schema.String, "DeploymentId">;
176
+ readonly projectId: Schema.brand<Schema.String, "ProjectId">;
177
+ readonly environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
178
+ readonly environmentHost: Schema.optional<Schema.String>;
179
+ readonly commitSha: Schema.String;
180
+ readonly message: Schema.String;
181
+ readonly author: Schema.Struct<{
182
+ readonly name: Schema.String;
183
+ readonly image: Schema.NullOr<Schema.String>;
184
+ }>;
185
+ readonly regions: Schema.$Array<Schema.Literals<readonly ["us-east-1", "us-west-2"]>>;
186
+ readonly runnerCount: Schema.Int;
187
+ readonly durationMs: Schema.NullOr<Schema.Int>;
188
+ readonly status: Schema.Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
189
+ readonly rolledBackFrom: Schema.NullOr<Schema.brand<Schema.String, "DeploymentId">>;
190
+ readonly createdAt: Schema.DateTimeUtc;
191
+ }>>;
192
+ readonly nextCursor: Schema.NullOr<Schema.String>;
193
+ }>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"recordBuild", "POST", "/projects/:projectId/deployments/:deploymentId/build", Schema.toCodecStringTree<Schema.Struct<{
194
+ projectId: Schema.brand<Schema.String, "ProjectId">;
195
+ deploymentId: Schema.brand<Schema.String, "DeploymentId">;
196
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
197
+ readonly image: Schema.String;
198
+ readonly commitSha: Schema.String;
199
+ readonly environmentSnapshot: Schema.$Record<Schema.String, Schema.String>;
200
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
201
+ readonly id: Schema.brand<Schema.String, "DeploymentId">;
202
+ readonly projectId: Schema.brand<Schema.String, "ProjectId">;
203
+ readonly environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
204
+ readonly environmentHost: Schema.optional<Schema.String>;
205
+ readonly commitSha: Schema.String;
206
+ readonly message: Schema.String;
207
+ readonly author: Schema.Struct<{
208
+ readonly name: Schema.String;
209
+ readonly image: Schema.NullOr<Schema.String>;
210
+ }>;
211
+ readonly regions: Schema.$Array<Schema.Literals<readonly ["us-east-1", "us-west-2"]>>;
212
+ readonly runnerCount: Schema.Int;
213
+ readonly durationMs: Schema.NullOr<Schema.Int>;
214
+ readonly status: Schema.Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
215
+ readonly rolledBackFrom: Schema.NullOr<Schema.brand<Schema.String, "DeploymentId">>;
216
+ readonly createdAt: Schema.DateTimeUtc;
217
+ readonly steps: Schema.$Array<Schema.Struct<{
218
+ readonly name: Schema.Literals<readonly ["build", "migrate", "start-runners", "drain-previous"]>;
219
+ readonly status: Schema.Literals<readonly ["pending", "running", "succeeded", "failed", "skipped"]>;
220
+ readonly durationMs: Schema.NullOr<Schema.Int>;
221
+ readonly detail: Schema.NullOr<Schema.String>;
222
+ }>>;
223
+ readonly runners: Schema.$Array<Schema.Struct<{
224
+ readonly id: Schema.String;
225
+ readonly region: Schema.Literals<readonly ["us-east-1", "us-west-2"]>;
226
+ readonly actorCount: Schema.NullOr<Schema.Int>;
227
+ readonly cpuPercent: Schema.NullOr<Schema.Finite>;
228
+ readonly health: Schema.Literals<readonly ["healthy", "unhealthy", "starting", "draining"]>;
229
+ }>>;
230
+ }>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").Conflict | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"redeploy", "POST", "/projects/:projectId/deployments/:deploymentId/redeploy", Schema.toCodecStringTree<Schema.Struct<{
231
+ projectId: Schema.brand<Schema.String, "ProjectId">;
232
+ deploymentId: Schema.brand<Schema.String, "DeploymentId">;
233
+ }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
234
+ readonly id: Schema.brand<Schema.String, "DeploymentId">;
235
+ readonly projectId: Schema.brand<Schema.String, "ProjectId">;
236
+ readonly environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
237
+ readonly environmentHost: Schema.optional<Schema.String>;
238
+ readonly commitSha: Schema.String;
239
+ readonly message: Schema.String;
240
+ readonly author: Schema.Struct<{
241
+ readonly name: Schema.String;
242
+ readonly image: Schema.NullOr<Schema.String>;
243
+ }>;
244
+ readonly regions: Schema.$Array<Schema.Literals<readonly ["us-east-1", "us-west-2"]>>;
245
+ readonly runnerCount: Schema.Int;
246
+ readonly durationMs: Schema.NullOr<Schema.Int>;
247
+ readonly status: Schema.Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
248
+ readonly rolledBackFrom: Schema.NullOr<Schema.brand<Schema.String, "DeploymentId">>;
249
+ readonly createdAt: Schema.DateTimeUtc;
250
+ readonly steps: Schema.$Array<Schema.Struct<{
251
+ readonly name: Schema.Literals<readonly ["build", "migrate", "start-runners", "drain-previous"]>;
252
+ readonly status: Schema.Literals<readonly ["pending", "running", "succeeded", "failed", "skipped"]>;
253
+ readonly durationMs: Schema.NullOr<Schema.Int>;
254
+ readonly detail: Schema.NullOr<Schema.String>;
255
+ }>>;
256
+ readonly runners: Schema.$Array<Schema.Struct<{
257
+ readonly id: Schema.String;
258
+ readonly region: Schema.Literals<readonly ["us-east-1", "us-west-2"]>;
259
+ readonly actorCount: Schema.NullOr<Schema.Int>;
260
+ readonly cpuPercent: Schema.NullOr<Schema.Finite>;
261
+ readonly health: Schema.Literals<readonly ["healthy", "unhealthy", "starting", "draining"]>;
262
+ }>>;
263
+ }>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").Conflict | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"rollback", "POST", "/projects/:projectId/deployments/:deploymentId/rollback", Schema.toCodecStringTree<Schema.Struct<{
264
+ projectId: Schema.brand<Schema.String, "ProjectId">;
265
+ deploymentId: Schema.brand<Schema.String, "DeploymentId">;
266
+ }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
267
+ readonly id: Schema.brand<Schema.String, "DeploymentId">;
268
+ readonly projectId: Schema.brand<Schema.String, "ProjectId">;
269
+ readonly environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
270
+ readonly environmentHost: Schema.optional<Schema.String>;
271
+ readonly commitSha: Schema.String;
272
+ readonly message: Schema.String;
273
+ readonly author: Schema.Struct<{
274
+ readonly name: Schema.String;
275
+ readonly image: Schema.NullOr<Schema.String>;
276
+ }>;
277
+ readonly regions: Schema.$Array<Schema.Literals<readonly ["us-east-1", "us-west-2"]>>;
278
+ readonly runnerCount: Schema.Int;
279
+ readonly durationMs: Schema.NullOr<Schema.Int>;
280
+ readonly status: Schema.Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
281
+ readonly rolledBackFrom: Schema.NullOr<Schema.brand<Schema.String, "DeploymentId">>;
282
+ readonly createdAt: Schema.DateTimeUtc;
283
+ readonly steps: Schema.$Array<Schema.Struct<{
284
+ readonly name: Schema.Literals<readonly ["build", "migrate", "start-runners", "drain-previous"]>;
285
+ readonly status: Schema.Literals<readonly ["pending", "running", "succeeded", "failed", "skipped"]>;
286
+ readonly durationMs: Schema.NullOr<Schema.Int>;
287
+ readonly detail: Schema.NullOr<Schema.String>;
288
+ }>>;
289
+ readonly runners: Schema.$Array<Schema.Struct<{
290
+ readonly id: Schema.String;
291
+ readonly region: Schema.Literals<readonly ["us-east-1", "us-west-2"]>;
292
+ readonly actorCount: Schema.NullOr<Schema.Int>;
293
+ readonly cpuPercent: Schema.NullOr<Schema.Finite>;
294
+ readonly health: Schema.Literals<readonly ["healthy", "unhealthy", "starting", "draining"]>;
295
+ }>>;
296
+ }>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotFound | typeof import("../errors.ts").Conflict | typeof import("../errors.ts").NotImplemented | typeof import("../errors.ts").Unavailable>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"uploadSource", "POST", "/projects/:projectId/sources", Schema.toCodecStringTree<Schema.Struct<{
297
+ projectId: Schema.brand<Schema.String, "ProjectId">;
298
+ }>>, never, Schema.toCodecJson<Schema.Uint8Array>, never, Schema.toCodecJson<Schema.Struct<{
299
+ readonly digest: Schema.String;
300
+ readonly sizeBytes: Schema.Int;
301
+ }>>, Schema.toCodecJson<typeof 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 PayloadTooLarge>, never, never>, false>;
302
+ export declare class DeploymentsGroup extends DeploymentsGroup_base {
303
+ }
304
+ export {};