@rikalabs/akter-cli 0.0.0-stage → 0.1.0-alpha.4
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.
- package/CHANGELOG.md +27 -0
- package/LICENSE +202 -0
- package/NOTICE +8 -0
- package/README.md +16 -2
- package/dist/cloud-api/auth.d.ts +79 -0
- package/dist/cloud-api/billing.d.ts +312 -0
- package/dist/cloud-api/contract.d.ts +1556 -0
- package/dist/cloud-api/deployments.d.ts +161 -0
- package/dist/cloud-api/errors.d.ts +75 -0
- package/dist/cloud-api/groups/account.d.ts +370 -0
- package/dist/cloud-api/groups/billing.d.ts +170 -0
- package/dist/cloud-api/groups/deployments.d.ts +304 -0
- package/dist/cloud-api/groups/projects.d.ts +284 -0
- package/dist/cloud-api/groups/runtime.d.ts +482 -0
- package/dist/cloud-api/identity.d.ts +313 -0
- package/dist/cloud-api/index.d.ts +15 -0
- package/dist/cloud-api/index.js +1637 -0
- package/dist/cloud-api/logs.d.ts +44 -0
- package/dist/cloud-api/primitives.d.ts +82 -0
- package/dist/cloud-api/projects.d.ts +189 -0
- package/dist/cloud-api/runtime.d.ts +595 -0
- package/dist/inspector-client.js +14 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.js +3280 -0
- package/package.json +1 -6
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
3
|
+
declare const ProjectsGroup_base: HttpApiGroup.HttpApiGroup<"projects", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/organizations/:organizationId/projects", Schema.toCodecStringTree<Schema.Struct<{
|
|
4
|
+
organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
5
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
6
|
+
readonly name: Schema.brand<Schema.String, "Name">;
|
|
7
|
+
readonly slug: Schema.brand<Schema.String, "Slug">;
|
|
8
|
+
readonly homeRegion: Schema.Literals<readonly ["us-east-1", "us-west-2"]>;
|
|
9
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
10
|
+
readonly id: Schema.brand<Schema.String, "ProjectId">;
|
|
11
|
+
readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
12
|
+
readonly name: Schema.String;
|
|
13
|
+
readonly slug: Schema.brand<Schema.String, "Slug">;
|
|
14
|
+
readonly status: Schema.Literals<readonly ["empty", "live", "deploying", "failed"]>;
|
|
15
|
+
readonly homeRegion: Schema.Literals<readonly ["us-east-1", "us-west-2"]>;
|
|
16
|
+
readonly createdAt: Schema.DateTimeUtc;
|
|
17
|
+
}>>, Schema.toCodecJson<typeof 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<"createEnvironment", "POST", "/projects/:projectId/environments", Schema.toCodecStringTree<Schema.Struct<{
|
|
18
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
19
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
20
|
+
readonly name: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
21
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
22
|
+
readonly name: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
23
|
+
readonly projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
24
|
+
readonly currentDeploymentId: Schema.NullOr<Schema.brand<Schema.String, "DeploymentId">>;
|
|
25
|
+
readonly database: Schema.optionalKey<Schema.Struct<{
|
|
26
|
+
readonly source: Schema.Literal<"customer">;
|
|
27
|
+
readonly state: Schema.Literals<readonly ["missing", "reachable", "unreachable"]>;
|
|
28
|
+
readonly latency: Schema.NullOr<Schema.Finite>;
|
|
29
|
+
readonly latencyWarning: Schema.Boolean;
|
|
30
|
+
readonly runnerCap: Schema.NullOr<Schema.Int>;
|
|
31
|
+
}>>;
|
|
32
|
+
}>>, Schema.toCodecJson<typeof 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<"delete", "DELETE", "/projects/:projectId", Schema.toCodecStringTree<Schema.Struct<{
|
|
33
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
34
|
+
}>>, never, never, never, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof 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<"deleteEnvironment", "DELETE", "/projects/:projectId/environments/:environment", Schema.toCodecStringTree<Schema.Struct<{
|
|
35
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
36
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
37
|
+
}>>, never, never, never, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof 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", Schema.toCodecStringTree<Schema.Struct<{
|
|
38
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
39
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
40
|
+
readonly id: Schema.brand<Schema.String, "ProjectId">;
|
|
41
|
+
readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
42
|
+
readonly name: Schema.String;
|
|
43
|
+
readonly slug: Schema.brand<Schema.String, "Slug">;
|
|
44
|
+
readonly status: Schema.Literals<readonly ["empty", "live", "deploying", "failed"]>;
|
|
45
|
+
readonly homeRegion: Schema.Literals<readonly ["us-east-1", "us-west-2"]>;
|
|
46
|
+
readonly createdAt: Schema.DateTimeUtc;
|
|
47
|
+
}>>, 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<"getEndpoints", "GET", "/projects/:projectId/environments/:environment/endpoints", Schema.toCodecStringTree<Schema.Struct<{
|
|
48
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
49
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
50
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
51
|
+
readonly httpBaseUrl: Schema.String;
|
|
52
|
+
readonly webSocketUrl: Schema.String;
|
|
53
|
+
readonly openApiPath: Schema.String;
|
|
54
|
+
readonly mcpPath: Schema.String;
|
|
55
|
+
}>>, 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<"getEnvironment", "GET", "/projects/:projectId/environments/:environment", Schema.toCodecStringTree<Schema.Struct<{
|
|
56
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
57
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
58
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
59
|
+
readonly name: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
60
|
+
readonly projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
61
|
+
readonly currentDeploymentId: Schema.NullOr<Schema.brand<Schema.String, "DeploymentId">>;
|
|
62
|
+
readonly database: Schema.optionalKey<Schema.Struct<{
|
|
63
|
+
readonly source: Schema.Literal<"customer">;
|
|
64
|
+
readonly state: Schema.Literals<readonly ["missing", "reachable", "unreachable"]>;
|
|
65
|
+
readonly latency: Schema.NullOr<Schema.Finite>;
|
|
66
|
+
readonly latencyWarning: Schema.Boolean;
|
|
67
|
+
readonly runnerCap: Schema.NullOr<Schema.Int>;
|
|
68
|
+
}>>;
|
|
69
|
+
}>>, 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", "/organizations/:organizationId/projects", Schema.toCodecStringTree<Schema.Struct<{
|
|
70
|
+
organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
71
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
|
|
72
|
+
readonly id: Schema.brand<Schema.String, "ProjectId">;
|
|
73
|
+
readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
74
|
+
readonly name: Schema.String;
|
|
75
|
+
readonly slug: Schema.brand<Schema.String, "Slug">;
|
|
76
|
+
readonly status: Schema.Literals<readonly ["empty", "live", "deploying", "failed"]>;
|
|
77
|
+
readonly homeRegion: Schema.Literals<readonly ["us-east-1", "us-west-2"]>;
|
|
78
|
+
readonly createdAt: Schema.DateTimeUtc;
|
|
79
|
+
}>>>, 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<"listEnvironments", "GET", "/projects/:projectId/environments", Schema.toCodecStringTree<Schema.Struct<{
|
|
80
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
81
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
|
|
82
|
+
readonly name: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
83
|
+
readonly projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
84
|
+
readonly currentDeploymentId: Schema.NullOr<Schema.brand<Schema.String, "DeploymentId">>;
|
|
85
|
+
readonly database: Schema.optionalKey<Schema.Struct<{
|
|
86
|
+
readonly source: Schema.Literal<"customer">;
|
|
87
|
+
readonly state: Schema.Literals<readonly ["missing", "reachable", "unreachable"]>;
|
|
88
|
+
readonly latency: Schema.NullOr<Schema.Finite>;
|
|
89
|
+
readonly latencyWarning: Schema.Boolean;
|
|
90
|
+
readonly runnerCap: Schema.NullOr<Schema.Int>;
|
|
91
|
+
}>>;
|
|
92
|
+
}>>>, 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<"update", "PATCH", "/projects/:projectId", Schema.toCodecStringTree<Schema.Struct<{
|
|
93
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
94
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
95
|
+
readonly name: Schema.optional<Schema.brand<Schema.String, "Name">>;
|
|
96
|
+
readonly slug: Schema.optional<Schema.brand<Schema.String, "Slug">>;
|
|
97
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
98
|
+
readonly id: Schema.brand<Schema.String, "ProjectId">;
|
|
99
|
+
readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
100
|
+
readonly name: Schema.String;
|
|
101
|
+
readonly slug: Schema.brand<Schema.String, "Slug">;
|
|
102
|
+
readonly status: Schema.Literals<readonly ["empty", "live", "deploying", "failed"]>;
|
|
103
|
+
readonly homeRegion: Schema.Literals<readonly ["us-east-1", "us-west-2"]>;
|
|
104
|
+
readonly createdAt: Schema.DateTimeUtc;
|
|
105
|
+
}>>, Schema.toCodecJson<typeof 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>;
|
|
106
|
+
export declare class ProjectsGroup extends ProjectsGroup_base {
|
|
107
|
+
}
|
|
108
|
+
declare const EnvironmentVariablesGroup_base: HttpApiGroup.HttpApiGroup<"environmentVariables", HttpApiEndpoint.HttpApiEndpoint<"delete", "DELETE", "/projects/:projectId/environments/:environment/variables/:name", Schema.toCodecStringTree<Schema.Struct<{
|
|
109
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
110
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
111
|
+
name: Schema.String;
|
|
112
|
+
}>>, never, never, never, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof 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<"import", "POST", "/projects/:projectId/environments/:environment/variables/import", Schema.toCodecStringTree<Schema.Struct<{
|
|
113
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
114
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
115
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
116
|
+
readonly content: Schema.String;
|
|
117
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
118
|
+
readonly created: Schema.$Array<Schema.String>;
|
|
119
|
+
readonly updated: Schema.$Array<Schema.String>;
|
|
120
|
+
}>>, Schema.toCodecJson<typeof 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<"list", "GET", "/projects/:projectId/environments/:environment/variables", Schema.toCodecStringTree<Schema.Struct<{
|
|
121
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
122
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
123
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
|
|
124
|
+
readonly name: Schema.String;
|
|
125
|
+
readonly usedBy: Schema.$Array<Schema.String>;
|
|
126
|
+
readonly updatedAt: Schema.DateTimeUtc;
|
|
127
|
+
readonly updatedBy: Schema.NullOr<Schema.Struct<{
|
|
128
|
+
readonly kind: Schema.Literals<readonly ["user", "api-key"]>;
|
|
129
|
+
readonly id: Schema.String;
|
|
130
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
131
|
+
}>>;
|
|
132
|
+
}>>>, 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<"set", "PUT", "/projects/:projectId/environments/:environment/variables/:name", Schema.toCodecStringTree<Schema.Struct<{
|
|
133
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
134
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
135
|
+
name: Schema.String;
|
|
136
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
137
|
+
readonly value: Schema.String;
|
|
138
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
139
|
+
readonly name: Schema.String;
|
|
140
|
+
readonly usedBy: Schema.$Array<Schema.String>;
|
|
141
|
+
readonly updatedAt: Schema.DateTimeUtc;
|
|
142
|
+
readonly updatedBy: Schema.NullOr<Schema.Struct<{
|
|
143
|
+
readonly kind: Schema.Literals<readonly ["user", "api-key"]>;
|
|
144
|
+
readonly id: Schema.String;
|
|
145
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
146
|
+
}>>;
|
|
147
|
+
}>>, Schema.toCodecJson<typeof 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>;
|
|
148
|
+
export declare class EnvironmentVariablesGroup extends EnvironmentVariablesGroup_base {
|
|
149
|
+
}
|
|
150
|
+
declare const DomainsGroup_base: HttpApiGroup.HttpApiGroup<"domains", HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/projects/:projectId/domains", Schema.toCodecStringTree<Schema.Struct<{
|
|
151
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
152
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
153
|
+
readonly hostname: Schema.String;
|
|
154
|
+
readonly environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
155
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
156
|
+
readonly id: Schema.brand<Schema.String, "DomainId">;
|
|
157
|
+
readonly hostname: Schema.String;
|
|
158
|
+
readonly environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
159
|
+
readonly status: Schema.Literals<readonly ["pending", "verifying", "active"]>;
|
|
160
|
+
readonly dnsRecords: Schema.$Array<Schema.Struct<{
|
|
161
|
+
readonly type: Schema.Literals<readonly ["A", "AAAA", "CNAME", "TXT"]>;
|
|
162
|
+
readonly name: Schema.String;
|
|
163
|
+
readonly value: Schema.String;
|
|
164
|
+
}>>;
|
|
165
|
+
readonly createdAt: Schema.DateTimeUtc;
|
|
166
|
+
}>>, Schema.toCodecJson<typeof 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<"list", "GET", "/projects/:projectId/domains", Schema.toCodecStringTree<Schema.Struct<{
|
|
167
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
168
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
|
|
169
|
+
readonly id: Schema.brand<Schema.String, "DomainId">;
|
|
170
|
+
readonly hostname: Schema.String;
|
|
171
|
+
readonly environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
172
|
+
readonly status: Schema.Literals<readonly ["pending", "verifying", "active"]>;
|
|
173
|
+
readonly dnsRecords: Schema.$Array<Schema.Struct<{
|
|
174
|
+
readonly type: Schema.Literals<readonly ["A", "AAAA", "CNAME", "TXT"]>;
|
|
175
|
+
readonly name: Schema.String;
|
|
176
|
+
readonly value: Schema.String;
|
|
177
|
+
}>>;
|
|
178
|
+
readonly createdAt: Schema.DateTimeUtc;
|
|
179
|
+
}>>>, 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<"remove", "DELETE", "/projects/:projectId/domains/:domainId", Schema.toCodecStringTree<Schema.Struct<{
|
|
180
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
181
|
+
domainId: Schema.brand<Schema.String, "DomainId">;
|
|
182
|
+
}>>, never, never, never, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof 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<"verify", "POST", "/projects/:projectId/domains/:domainId/verify", Schema.toCodecStringTree<Schema.Struct<{
|
|
183
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
184
|
+
domainId: Schema.brand<Schema.String, "DomainId">;
|
|
185
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
186
|
+
readonly id: Schema.brand<Schema.String, "DomainId">;
|
|
187
|
+
readonly hostname: Schema.String;
|
|
188
|
+
readonly environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
189
|
+
readonly status: Schema.Literals<readonly ["pending", "verifying", "active"]>;
|
|
190
|
+
readonly dnsRecords: Schema.$Array<Schema.Struct<{
|
|
191
|
+
readonly type: Schema.Literals<readonly ["A", "AAAA", "CNAME", "TXT"]>;
|
|
192
|
+
readonly name: Schema.String;
|
|
193
|
+
readonly value: Schema.String;
|
|
194
|
+
}>>;
|
|
195
|
+
readonly createdAt: Schema.DateTimeUtc;
|
|
196
|
+
}>>, Schema.toCodecJson<typeof 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>;
|
|
197
|
+
export declare class DomainsGroup extends DomainsGroup_base {
|
|
198
|
+
}
|
|
199
|
+
declare const RegionsGroup_base: HttpApiGroup.HttpApiGroup<"regions", HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/projects/:projectId/regions", Schema.toCodecStringTree<Schema.Struct<{
|
|
200
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
201
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
202
|
+
readonly region: Schema.Literals<readonly ["us-east-1", "us-west-2"]>;
|
|
203
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
204
|
+
readonly id: Schema.Literals<readonly ["us-east-1", "us-west-2"]>;
|
|
205
|
+
readonly city: Schema.String;
|
|
206
|
+
}>>, Schema.toCodecJson<typeof 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<"catalog", "GET", "/regions", never, never, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
|
|
207
|
+
readonly id: Schema.Literals<readonly ["us-east-1", "us-west-2"]>;
|
|
208
|
+
readonly city: Schema.String;
|
|
209
|
+
}>>>, 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/environments/:environment/regions", Schema.toCodecStringTree<Schema.Struct<{
|
|
210
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
211
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
212
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
|
|
213
|
+
readonly region: Schema.Struct<{
|
|
214
|
+
readonly id: Schema.Literals<readonly ["us-east-1", "us-west-2"]>;
|
|
215
|
+
readonly city: Schema.String;
|
|
216
|
+
}>;
|
|
217
|
+
readonly home: Schema.Boolean;
|
|
218
|
+
readonly tenantCount: Schema.Int;
|
|
219
|
+
readonly database: Schema.Struct<{
|
|
220
|
+
readonly version: Schema.String;
|
|
221
|
+
readonly sizeBytes: Schema.Int;
|
|
222
|
+
}>;
|
|
223
|
+
readonly storage: Schema.Struct<{
|
|
224
|
+
readonly usedBytes: Schema.Int;
|
|
225
|
+
readonly limitBytes: Schema.Int;
|
|
226
|
+
}>;
|
|
227
|
+
readonly cpuPercent: Schema.Finite;
|
|
228
|
+
readonly connections: Schema.Struct<{
|
|
229
|
+
readonly used: Schema.Int;
|
|
230
|
+
readonly limit: Schema.Int;
|
|
231
|
+
}>;
|
|
232
|
+
readonly runners: Schema.Int;
|
|
233
|
+
readonly largestTables: Schema.$Array<Schema.Struct<{
|
|
234
|
+
readonly name: Schema.String;
|
|
235
|
+
readonly actor: Schema.String;
|
|
236
|
+
readonly rows: Schema.Int;
|
|
237
|
+
readonly sizeBytes: Schema.Int;
|
|
238
|
+
readonly region: Schema.Literals<readonly ["us-east-1", "us-west-2"]>;
|
|
239
|
+
}>>;
|
|
240
|
+
}>>>, 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<"remove", "DELETE", "/projects/:projectId/regions/:region", Schema.toCodecStringTree<Schema.Struct<{
|
|
241
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
242
|
+
region: Schema.Literals<readonly ["us-east-1", "us-west-2"]>;
|
|
243
|
+
}>>, never, never, never, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof 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<"setHome", "PUT", "/projects/:projectId/home-region", Schema.toCodecStringTree<Schema.Struct<{
|
|
244
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
245
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
246
|
+
readonly region: Schema.Literals<readonly ["us-east-1", "us-west-2"]>;
|
|
247
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
248
|
+
readonly id: Schema.brand<Schema.String, "ProjectId">;
|
|
249
|
+
readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
250
|
+
readonly name: Schema.String;
|
|
251
|
+
readonly slug: Schema.brand<Schema.String, "Slug">;
|
|
252
|
+
readonly status: Schema.Literals<readonly ["empty", "live", "deploying", "failed"]>;
|
|
253
|
+
readonly homeRegion: Schema.Literals<readonly ["us-east-1", "us-west-2"]>;
|
|
254
|
+
readonly createdAt: Schema.DateTimeUtc;
|
|
255
|
+
}>>, Schema.toCodecJson<typeof 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>;
|
|
256
|
+
export declare class RegionsGroup extends RegionsGroup_base {
|
|
257
|
+
}
|
|
258
|
+
declare const IntegrationsGroup_base: HttpApiGroup.HttpApiGroup<"integrations", HttpApiEndpoint.HttpApiEndpoint<"connect", "POST", "/projects/:projectId/integrations/:kind", Schema.toCodecStringTree<Schema.Struct<{
|
|
259
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
260
|
+
kind: Schema.Literals<readonly ["github", "slack", "datadog", "opentelemetry", "pagerduty"]>;
|
|
261
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
262
|
+
readonly settings: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
263
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
264
|
+
readonly redirectUrl: Schema.NullOr<Schema.String>;
|
|
265
|
+
readonly integration: Schema.Struct<{
|
|
266
|
+
readonly kind: Schema.Literals<readonly ["github", "slack", "datadog", "opentelemetry", "pagerduty"]>;
|
|
267
|
+
readonly status: Schema.Literals<readonly ["connected", "disconnected", "error"]>;
|
|
268
|
+
readonly label: Schema.NullOr<Schema.String>;
|
|
269
|
+
readonly connectedAt: Schema.NullOr<Schema.DateTimeUtc>;
|
|
270
|
+
}>;
|
|
271
|
+
}>>, Schema.toCodecJson<typeof 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<"disconnect", "DELETE", "/projects/:projectId/integrations/:kind", Schema.toCodecStringTree<Schema.Struct<{
|
|
272
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
273
|
+
kind: Schema.Literals<readonly ["github", "slack", "datadog", "opentelemetry", "pagerduty"]>;
|
|
274
|
+
}>>, never, never, never, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof 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<"list", "GET", "/projects/:projectId/integrations", Schema.toCodecStringTree<Schema.Struct<{
|
|
275
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
276
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
|
|
277
|
+
readonly kind: Schema.Literals<readonly ["github", "slack", "datadog", "opentelemetry", "pagerduty"]>;
|
|
278
|
+
readonly status: Schema.Literals<readonly ["connected", "disconnected", "error"]>;
|
|
279
|
+
readonly label: Schema.NullOr<Schema.String>;
|
|
280
|
+
readonly connectedAt: Schema.NullOr<Schema.DateTimeUtc>;
|
|
281
|
+
}>>>, 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>;
|
|
282
|
+
export declare class IntegrationsGroup extends IntegrationsGroup_base {
|
|
283
|
+
}
|
|
284
|
+
export {};
|