@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.
- package/CHANGELOG.md +19 -0
- package/LICENSE +202 -0
- package/NOTICE +8 -0
- package/README.md +16 -2
- package/dist/cloud-api/auth.d.ts +76 -0
- package/dist/cloud-api/billing.d.ts +347 -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 +179 -0
- package/dist/cloud-api/groups/deployments.d.ts +304 -0
- package/dist/cloud-api/groups/projects.d.ts +275 -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 +1645 -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 +184 -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 +3257 -0
- package/package.json +1 -6
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
/**
|
|
3
|
+
* Where a deployment is in its life.
|
|
4
|
+
*
|
|
5
|
+
* A new deployment starts `in-progress` and ends `live` or `failed`. When one
|
|
6
|
+
* becomes `live`, the deployment that was live in the same environment ends
|
|
7
|
+
* `drained` after a normal deploy, or `rolled-back` after a rollback. A failed
|
|
8
|
+
* deployment never replaces the live one.
|
|
9
|
+
*/
|
|
10
|
+
export declare const DeploymentStatus: Schema.Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
|
|
11
|
+
export type DeploymentStatus = typeof DeploymentStatus.Type;
|
|
12
|
+
export declare const RolloutStepName: Schema.Literals<readonly ["build", "migrate", "start-runners", "drain-previous"]>;
|
|
13
|
+
export type RolloutStepName = typeof RolloutStepName.Type;
|
|
14
|
+
export declare const RolloutStep: Schema.Struct<{
|
|
15
|
+
readonly name: Schema.Literals<readonly ["build", "migrate", "start-runners", "drain-previous"]>;
|
|
16
|
+
readonly status: Schema.Literals<readonly ["pending", "running", "succeeded", "failed", "skipped"]>;
|
|
17
|
+
readonly durationMs: Schema.NullOr<Schema.Int>;
|
|
18
|
+
readonly detail: Schema.NullOr<Schema.String>;
|
|
19
|
+
}>;
|
|
20
|
+
export type RolloutStep = typeof RolloutStep.Type;
|
|
21
|
+
export declare const DeploymentRunner: Schema.Struct<{
|
|
22
|
+
readonly id: Schema.String;
|
|
23
|
+
readonly region: Schema.Literals<readonly ["us-east-1", "us-west-2"]>;
|
|
24
|
+
readonly actorCount: Schema.NullOr<Schema.Int>;
|
|
25
|
+
readonly cpuPercent: Schema.NullOr<Schema.Finite>;
|
|
26
|
+
readonly health: Schema.Literals<readonly ["healthy", "unhealthy", "starting", "draining"]>;
|
|
27
|
+
}>;
|
|
28
|
+
export type DeploymentRunner = typeof DeploymentRunner.Type;
|
|
29
|
+
export declare const DeploymentAuthor: Schema.Struct<{
|
|
30
|
+
readonly name: Schema.String;
|
|
31
|
+
readonly image: Schema.NullOr<Schema.String>;
|
|
32
|
+
}>;
|
|
33
|
+
export type DeploymentAuthor = typeof DeploymentAuthor.Type;
|
|
34
|
+
/**
|
|
35
|
+
* `rolledBackFrom` is null unless the deployment was created by a rollback, in
|
|
36
|
+
* which case it is the id of the earlier deployment whose image and
|
|
37
|
+
* environment snapshot it redeploys.
|
|
38
|
+
*/
|
|
39
|
+
export declare const DeploymentSummary: Schema.Struct<{
|
|
40
|
+
readonly id: Schema.brand<Schema.String, "DeploymentId">;
|
|
41
|
+
readonly projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
42
|
+
readonly environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
43
|
+
/** The public environment host, omitted when the control plane has no runtime domain. */
|
|
44
|
+
readonly environmentHost: Schema.optional<Schema.String>;
|
|
45
|
+
readonly commitSha: Schema.String;
|
|
46
|
+
readonly message: Schema.String;
|
|
47
|
+
readonly author: Schema.Struct<{
|
|
48
|
+
readonly name: Schema.String;
|
|
49
|
+
readonly image: Schema.NullOr<Schema.String>;
|
|
50
|
+
}>;
|
|
51
|
+
readonly regions: Schema.$Array<Schema.Literals<readonly ["us-east-1", "us-west-2"]>>;
|
|
52
|
+
readonly runnerCount: Schema.Int;
|
|
53
|
+
readonly durationMs: Schema.NullOr<Schema.Int>;
|
|
54
|
+
readonly status: Schema.Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
|
|
55
|
+
readonly rolledBackFrom: Schema.NullOr<Schema.brand<Schema.String, "DeploymentId">>;
|
|
56
|
+
readonly createdAt: Schema.DateTimeUtc;
|
|
57
|
+
}>;
|
|
58
|
+
export type DeploymentSummary = typeof DeploymentSummary.Type;
|
|
59
|
+
export declare const DeploymentDetail: Schema.Struct<{
|
|
60
|
+
readonly id: Schema.brand<Schema.String, "DeploymentId">;
|
|
61
|
+
readonly projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
62
|
+
readonly environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
63
|
+
/** The public environment host, omitted when the control plane has no runtime domain. */
|
|
64
|
+
readonly environmentHost: Schema.optional<Schema.String>;
|
|
65
|
+
readonly commitSha: Schema.String;
|
|
66
|
+
readonly message: Schema.String;
|
|
67
|
+
readonly author: Schema.Struct<{
|
|
68
|
+
readonly name: Schema.String;
|
|
69
|
+
readonly image: Schema.NullOr<Schema.String>;
|
|
70
|
+
}>;
|
|
71
|
+
readonly regions: Schema.$Array<Schema.Literals<readonly ["us-east-1", "us-west-2"]>>;
|
|
72
|
+
readonly runnerCount: Schema.Int;
|
|
73
|
+
readonly durationMs: Schema.NullOr<Schema.Int>;
|
|
74
|
+
readonly status: Schema.Literals<readonly ["in-progress", "live", "drained", "rolled-back", "failed"]>;
|
|
75
|
+
readonly rolledBackFrom: Schema.NullOr<Schema.brand<Schema.String, "DeploymentId">>;
|
|
76
|
+
readonly createdAt: Schema.DateTimeUtc;
|
|
77
|
+
readonly steps: Schema.$Array<Schema.Struct<{
|
|
78
|
+
readonly name: Schema.Literals<readonly ["build", "migrate", "start-runners", "drain-previous"]>;
|
|
79
|
+
readonly status: Schema.Literals<readonly ["pending", "running", "succeeded", "failed", "skipped"]>;
|
|
80
|
+
readonly durationMs: Schema.NullOr<Schema.Int>;
|
|
81
|
+
readonly detail: Schema.NullOr<Schema.String>;
|
|
82
|
+
}>>;
|
|
83
|
+
readonly runners: Schema.$Array<Schema.Struct<{
|
|
84
|
+
readonly id: Schema.String;
|
|
85
|
+
readonly region: Schema.Literals<readonly ["us-east-1", "us-west-2"]>;
|
|
86
|
+
readonly actorCount: Schema.NullOr<Schema.Int>;
|
|
87
|
+
readonly cpuPercent: Schema.NullOr<Schema.Finite>;
|
|
88
|
+
readonly health: Schema.Literals<readonly ["healthy", "unhealthy", "starting", "draining"]>;
|
|
89
|
+
}>>;
|
|
90
|
+
}>;
|
|
91
|
+
export type DeploymentDetail = typeof DeploymentDetail.Type;
|
|
92
|
+
/** A source archive's name: the SHA-256 of its gzip-compressed tar bytes. */
|
|
93
|
+
export declare const SourceDigest: Schema.String;
|
|
94
|
+
export type SourceDigest = typeof SourceDigest.Type;
|
|
95
|
+
/** The most bytes one source archive may hold. */
|
|
96
|
+
export declare const MAX_SOURCE_BYTES: number;
|
|
97
|
+
/** A build context the project received, named by its digest. */
|
|
98
|
+
export declare const SourceArchive: Schema.Struct<{
|
|
99
|
+
readonly digest: Schema.String;
|
|
100
|
+
readonly sizeBytes: Schema.Int;
|
|
101
|
+
}>;
|
|
102
|
+
export type SourceArchive = typeof SourceArchive.Type;
|
|
103
|
+
/** The module inside an uploaded source that the managed host loads and serves. */
|
|
104
|
+
export declare const SOURCE_ENTRY = "src/app.ts";
|
|
105
|
+
/**
|
|
106
|
+
* What the control plane's builder builds a deployment from: an uploaded
|
|
107
|
+
* archive, launched from `SOURCE_ENTRY` with a Dockerfile the platform
|
|
108
|
+
* generates. A `dockerfile` field is refused rather than ignored, so a client
|
|
109
|
+
* that still names one learns its Dockerfile would not be used.
|
|
110
|
+
*/
|
|
111
|
+
export declare const DeploymentSource: Schema.Struct<{
|
|
112
|
+
readonly digest: Schema.String;
|
|
113
|
+
readonly dockerfile: Schema.optionalKey<Schema.Never>;
|
|
114
|
+
}>;
|
|
115
|
+
export type DeploymentSource = typeof DeploymentSource.Type;
|
|
116
|
+
/**
|
|
117
|
+
* `source` names an archive sent with `uploadSource` for a control plane
|
|
118
|
+
* that builds deployments itself; without it, such a control plane builds its
|
|
119
|
+
* own configured context, and one without a builder waits for `RecordBuild`.
|
|
120
|
+
*/
|
|
121
|
+
export declare const CreateDeployment: Schema.Struct<{
|
|
122
|
+
readonly environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
123
|
+
readonly commitSha: Schema.String;
|
|
124
|
+
readonly message: Schema.optional<Schema.String>;
|
|
125
|
+
readonly regions: Schema.optional<Schema.$Array<Schema.Literals<readonly ["us-east-1", "us-west-2"]>>>;
|
|
126
|
+
readonly source: Schema.optional<Schema.Struct<{
|
|
127
|
+
readonly digest: Schema.String;
|
|
128
|
+
readonly dockerfile: Schema.optionalKey<Schema.Never>;
|
|
129
|
+
}>>;
|
|
130
|
+
}>;
|
|
131
|
+
export type CreateDeployment = typeof CreateDeployment.Type;
|
|
132
|
+
/** A content-addressed image makes a retry and a rollback use the same executable bytes. */
|
|
133
|
+
export declare const ImageDigest: Schema.String;
|
|
134
|
+
/** Records a successful external build and starts the durable rollout under the deployment id. */
|
|
135
|
+
export declare const RecordBuild: Schema.Struct<{
|
|
136
|
+
readonly image: Schema.String;
|
|
137
|
+
readonly commitSha: Schema.String;
|
|
138
|
+
readonly environmentSnapshot: Schema.$Record<Schema.String, Schema.String>;
|
|
139
|
+
}>;
|
|
140
|
+
export type RecordBuild = typeof RecordBuild.Type;
|
|
141
|
+
export declare const FailBuild: Schema.Struct<{
|
|
142
|
+
readonly reason: Schema.String;
|
|
143
|
+
}>;
|
|
144
|
+
export declare const BuildLogLine: Schema.Struct<{
|
|
145
|
+
readonly index: Schema.Int;
|
|
146
|
+
readonly at: Schema.DateTimeUtc;
|
|
147
|
+
readonly stream: Schema.Literals<readonly ["stdout", "stderr"]>;
|
|
148
|
+
readonly text: Schema.String;
|
|
149
|
+
}>;
|
|
150
|
+
export type BuildLogLine = typeof BuildLogLine.Type;
|
|
151
|
+
/** Build output from `after` onward; `complete` is true once the build has ended and no later line will appear. */
|
|
152
|
+
export declare const BuildLog: Schema.Struct<{
|
|
153
|
+
readonly lines: Schema.$Array<Schema.Struct<{
|
|
154
|
+
readonly index: Schema.Int;
|
|
155
|
+
readonly at: Schema.DateTimeUtc;
|
|
156
|
+
readonly stream: Schema.Literals<readonly ["stdout", "stderr"]>;
|
|
157
|
+
readonly text: Schema.String;
|
|
158
|
+
}>>;
|
|
159
|
+
readonly complete: Schema.Boolean;
|
|
160
|
+
}>;
|
|
161
|
+
export type BuildLog = typeof BuildLog.Type;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
declare const Unauthorized_base: Schema.Class<Unauthorized, Schema.TaggedStruct<"Unauthorized", {
|
|
3
|
+
readonly code: Schema.Literals<readonly ["missing_credentials", "invalid_credentials", "expired"]>;
|
|
4
|
+
readonly message: Schema.String;
|
|
5
|
+
}>, import("effect/Cause").YieldableError>;
|
|
6
|
+
/** The credential is absent, wrong or past its expiry; answered 401. */
|
|
7
|
+
export declare class Unauthorized extends Unauthorized_base {
|
|
8
|
+
}
|
|
9
|
+
declare const Forbidden_base: Schema.Class<Forbidden, Schema.TaggedStruct<"Forbidden", {
|
|
10
|
+
readonly message: Schema.String;
|
|
11
|
+
}>, import("effect/Cause").YieldableError>;
|
|
12
|
+
/** The caller is known but its role or key permission does not allow the operation; answered 403. */
|
|
13
|
+
export declare class Forbidden extends Forbidden_base {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* What a `NotFound` names. `actor` is an actor address the live deployment
|
|
17
|
+
* does not have, `actor-type` a type it does not serve, `live deployment` an
|
|
18
|
+
* environment with nothing deployed, `command` a command the actor does
|
|
19
|
+
* not declare, and `source` a source archive the project was never sent, so a
|
|
20
|
+
* caller tells them apart without reading `id`.
|
|
21
|
+
*/
|
|
22
|
+
export declare const NotFoundResource: Schema.Literals<readonly ["actor", "actor-type", "api-key", "command", "cursor", "deployment", "domain", "environment", "invitation", "live deployment", "member", "organization", "project", "source"]>;
|
|
23
|
+
export type NotFoundResource = typeof NotFoundResource.Type;
|
|
24
|
+
declare const NotFound_base: Schema.Class<NotFound, Schema.TaggedStruct<"NotFound", {
|
|
25
|
+
readonly resource: Schema.Literals<readonly ["actor", "actor-type", "api-key", "command", "cursor", "deployment", "domain", "environment", "invitation", "live deployment", "member", "organization", "project", "source"]>;
|
|
26
|
+
readonly id: Schema.String;
|
|
27
|
+
}>, import("effect/Cause").YieldableError>;
|
|
28
|
+
/** The resource does not exist or is not visible to the caller; answered 404. */
|
|
29
|
+
export declare class NotFound extends NotFound_base {
|
|
30
|
+
}
|
|
31
|
+
declare const Conflict_base: Schema.Class<Conflict, Schema.TaggedStruct<"Conflict", {
|
|
32
|
+
readonly message: Schema.String;
|
|
33
|
+
}>, import("effect/Cause").YieldableError>;
|
|
34
|
+
/** The request conflicts with current state, such as a taken slug or a duplicate invitation; answered 409. */
|
|
35
|
+
export declare class Conflict extends Conflict_base {
|
|
36
|
+
}
|
|
37
|
+
declare const NotImplemented_base: Schema.Class<NotImplemented, Schema.TaggedStruct<"NotImplemented", {
|
|
38
|
+
readonly operation: Schema.String;
|
|
39
|
+
}>, import("effect/Cause").YieldableError>;
|
|
40
|
+
/** The endpoint is declared by the contract and has no implementation yet; answered 501. */
|
|
41
|
+
export declare class NotImplemented extends NotImplemented_base {
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Why a request is `Unavailable` when the cause is known and not an outage.
|
|
45
|
+
* `unknownPlan` means the organization's stored plan is not in the pricing
|
|
46
|
+
* configuration, an operator fault that retrying will not clear until the
|
|
47
|
+
* plan or the configuration is fixed.
|
|
48
|
+
*/
|
|
49
|
+
export declare const UnavailableReason: Schema.Literals<readonly ["unknownPlan"]>;
|
|
50
|
+
export type UnavailableReason = typeof UnavailableReason.Type;
|
|
51
|
+
declare const Unavailable_base: Schema.Class<Unavailable, Schema.TaggedStruct<"Unavailable", {
|
|
52
|
+
readonly message: Schema.String;
|
|
53
|
+
readonly retryAfterSeconds: Schema.Int;
|
|
54
|
+
readonly reason: Schema.optionalKey<Schema.Literals<readonly ["unknownPlan"]>>;
|
|
55
|
+
}>, import("effect/Cause").YieldableError>;
|
|
56
|
+
/**
|
|
57
|
+
* A deployment, its edge or a dependency is temporarily unavailable; callers
|
|
58
|
+
* retry with the same command identity. `reason` is set only when the cause
|
|
59
|
+
* is a known condition rather than an outage; a generic outage has none.
|
|
60
|
+
*/
|
|
61
|
+
export declare class Unavailable extends Unavailable_base {
|
|
62
|
+
}
|
|
63
|
+
declare const PayloadTooLarge_base: Schema.Class<PayloadTooLarge, Schema.TaggedStruct<"PayloadTooLarge", {
|
|
64
|
+
readonly limitBytes: Schema.Int;
|
|
65
|
+
}>, import("effect/Cause").YieldableError>;
|
|
66
|
+
/** The request body is larger than the endpoint accepts; answered 413 before the excess is read. */
|
|
67
|
+
export declare class PayloadTooLarge extends PayloadTooLarge_base {
|
|
68
|
+
}
|
|
69
|
+
/** Errors every authenticated read can raise besides `Unauthorized`, which the middleware owns. */
|
|
70
|
+
export declare const ReadErrors: readonly [typeof Forbidden, typeof NotFound, typeof NotImplemented, typeof Unavailable];
|
|
71
|
+
/** Errors every mutation can raise besides `Unauthorized`, which the middleware owns. */
|
|
72
|
+
export declare const WriteErrors: readonly [typeof Forbidden, typeof NotFound, typeof Conflict, typeof NotImplemented, typeof Unavailable];
|
|
73
|
+
/** Errors for operations on no existing resource, such as listing the caller's own data. */
|
|
74
|
+
export declare const SelfErrors: readonly [typeof Forbidden, typeof NotImplemented];
|
|
75
|
+
export {};
|
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
3
|
+
declare const AccountGroup_base: HttpApiGroup.HttpApiGroup<"account", HttpApiEndpoint.HttpApiEndpoint<"deleteAccount", "DELETE", "/me", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
4
|
+
readonly confirmation: Schema.brand<Schema.String, "Email">;
|
|
5
|
+
}>>, 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<"exportData", "GET", "/me/export", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
6
|
+
readonly userId: Schema.brand<Schema.String, "UserId">;
|
|
7
|
+
readonly exportedAt: Schema.DateTimeUtc;
|
|
8
|
+
readonly tables: Schema.$Record<Schema.String, Schema.$Array<Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
9
|
+
}>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotImplemented>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getNotifications", "GET", "/me/notifications", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
10
|
+
readonly preferences: Schema.$Array<Schema.Struct<{
|
|
11
|
+
readonly event: Schema.Literals<readonly ["deploy_failed", "dead_letter", "spend_threshold"]>;
|
|
12
|
+
readonly email: Schema.Boolean;
|
|
13
|
+
readonly slack: Schema.Boolean;
|
|
14
|
+
}>>;
|
|
15
|
+
}>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotImplemented>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getPreferences", "GET", "/me/preferences", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
16
|
+
readonly defaultEnvironment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
17
|
+
readonly openActorLinksInNewTab: Schema.Boolean;
|
|
18
|
+
readonly timeZone: Schema.String;
|
|
19
|
+
readonly pauseLiveTailOnScroll: Schema.Boolean;
|
|
20
|
+
readonly showReplayedCommands: Schema.Boolean;
|
|
21
|
+
readonly theme: Schema.Literals<readonly ["light", "dark", "system"]>;
|
|
22
|
+
}>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotImplemented>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listPinnedActors", "GET", "/me/pinned-actors", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
23
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
24
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
25
|
+
}>>, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
|
|
26
|
+
readonly projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
27
|
+
readonly environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
28
|
+
readonly address: Schema.String;
|
|
29
|
+
readonly status: Schema.Literals<readonly ["awake", "idle", "unknown"]>;
|
|
30
|
+
readonly lastActivityAt: Schema.NullOr<Schema.DateTimeUtc>;
|
|
31
|
+
}>>>, 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<"me", "GET", "/me", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
32
|
+
readonly user: Schema.NullOr<Schema.Struct<{
|
|
33
|
+
readonly id: Schema.brand<Schema.String, "UserId">;
|
|
34
|
+
readonly name: Schema.String;
|
|
35
|
+
readonly email: Schema.brand<Schema.String, "Email">;
|
|
36
|
+
readonly emailVerified: Schema.Boolean;
|
|
37
|
+
readonly image: Schema.NullOr<Schema.String>;
|
|
38
|
+
}>>;
|
|
39
|
+
readonly identityKind: Schema.Literals<readonly ["session", "api-key"]>;
|
|
40
|
+
readonly activeOrganizationId: Schema.NullOr<Schema.brand<Schema.String, "OrganizationId">>;
|
|
41
|
+
readonly organizations: Schema.$Array<Schema.Struct<{
|
|
42
|
+
readonly organization: Schema.Struct<{
|
|
43
|
+
readonly id: Schema.brand<Schema.String, "OrganizationId">;
|
|
44
|
+
readonly name: Schema.String;
|
|
45
|
+
readonly slug: Schema.brand<Schema.String, "Slug">;
|
|
46
|
+
readonly plan: Schema.Union<readonly [Schema.TaggedStruct<"unbound", {}>, Schema.TaggedStruct<"known", {
|
|
47
|
+
readonly id: Schema.Literals<readonly ["free", "pro", "team", "enterprise"]>;
|
|
48
|
+
}>, Schema.TaggedStruct<"unknown", {
|
|
49
|
+
readonly id: Schema.String;
|
|
50
|
+
}>]>;
|
|
51
|
+
readonly createdAt: Schema.DateTimeUtc;
|
|
52
|
+
}>;
|
|
53
|
+
readonly role: Schema.Literals<readonly ["owner", "admin", "member", "viewer"]>;
|
|
54
|
+
}>>;
|
|
55
|
+
}>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotImplemented>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"pinActor", "POST", "/me/pinned-actors", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
56
|
+
readonly projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
57
|
+
readonly environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
58
|
+
readonly address: Schema.String;
|
|
59
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
60
|
+
readonly projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
61
|
+
readonly environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
62
|
+
readonly address: Schema.String;
|
|
63
|
+
readonly status: Schema.Literals<readonly ["awake", "idle", "unknown"]>;
|
|
64
|
+
readonly lastActivityAt: Schema.NullOr<Schema.DateTimeUtc>;
|
|
65
|
+
}>>, Schema.toCodecJson<typeof 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<"setActiveOrganization", "PUT", "/me/active-organization", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
66
|
+
readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
67
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
68
|
+
readonly organization: Schema.Struct<{
|
|
69
|
+
readonly id: Schema.brand<Schema.String, "OrganizationId">;
|
|
70
|
+
readonly name: Schema.String;
|
|
71
|
+
readonly slug: Schema.brand<Schema.String, "Slug">;
|
|
72
|
+
readonly plan: Schema.Union<readonly [Schema.TaggedStruct<"unbound", {}>, Schema.TaggedStruct<"known", {
|
|
73
|
+
readonly id: Schema.Literals<readonly ["free", "pro", "team", "enterprise"]>;
|
|
74
|
+
}>, Schema.TaggedStruct<"unknown", {
|
|
75
|
+
readonly id: Schema.String;
|
|
76
|
+
}>]>;
|
|
77
|
+
readonly createdAt: Schema.DateTimeUtc;
|
|
78
|
+
}>;
|
|
79
|
+
readonly role: Schema.Literals<readonly ["owner", "admin", "member", "viewer"]>;
|
|
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<"setNotifications", "PUT", "/me/notifications", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
81
|
+
readonly preferences: Schema.$Array<Schema.Struct<{
|
|
82
|
+
readonly event: Schema.Literals<readonly ["deploy_failed", "dead_letter", "spend_threshold"]>;
|
|
83
|
+
readonly email: Schema.Boolean;
|
|
84
|
+
readonly slack: Schema.Boolean;
|
|
85
|
+
}>>;
|
|
86
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
87
|
+
readonly preferences: Schema.$Array<Schema.Struct<{
|
|
88
|
+
readonly event: Schema.Literals<readonly ["deploy_failed", "dead_letter", "spend_threshold"]>;
|
|
89
|
+
readonly email: Schema.Boolean;
|
|
90
|
+
readonly slack: Schema.Boolean;
|
|
91
|
+
}>>;
|
|
92
|
+
}>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotImplemented>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"unpinActor", "DELETE", "/me/pinned-actors", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
93
|
+
projectId: Schema.brand<Schema.String, "ProjectId">;
|
|
94
|
+
environment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
95
|
+
address: Schema.String;
|
|
96
|
+
}>>, 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<"updatePreferences", "PATCH", "/me/preferences", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
97
|
+
readonly defaultEnvironment: Schema.optional<Schema.Literals<readonly ["production", "staging", "dev"]>>;
|
|
98
|
+
readonly openActorLinksInNewTab: Schema.optional<Schema.Boolean>;
|
|
99
|
+
readonly timeZone: Schema.optional<Schema.String>;
|
|
100
|
+
readonly pauseLiveTailOnScroll: Schema.optional<Schema.Boolean>;
|
|
101
|
+
readonly showReplayedCommands: Schema.optional<Schema.Boolean>;
|
|
102
|
+
readonly theme: Schema.optional<Schema.Literals<readonly ["light", "dark", "system"]>>;
|
|
103
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
104
|
+
readonly defaultEnvironment: Schema.Literals<readonly ["production", "staging", "dev"]>;
|
|
105
|
+
readonly openActorLinksInNewTab: Schema.Boolean;
|
|
106
|
+
readonly timeZone: Schema.String;
|
|
107
|
+
readonly pauseLiveTailOnScroll: Schema.Boolean;
|
|
108
|
+
readonly showReplayedCommands: Schema.Boolean;
|
|
109
|
+
readonly theme: Schema.Literals<readonly ["light", "dark", "system"]>;
|
|
110
|
+
}>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotImplemented>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"updateProfile", "PATCH", "/me", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
111
|
+
readonly name: Schema.optional<Schema.brand<Schema.String, "Name">>;
|
|
112
|
+
readonly image: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
113
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
114
|
+
readonly id: Schema.brand<Schema.String, "UserId">;
|
|
115
|
+
readonly name: Schema.String;
|
|
116
|
+
readonly email: Schema.brand<Schema.String, "Email">;
|
|
117
|
+
readonly emailVerified: Schema.Boolean;
|
|
118
|
+
readonly image: Schema.NullOr<Schema.String>;
|
|
119
|
+
}>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotImplemented>, never, never>, false>;
|
|
120
|
+
export declare class AccountGroup extends AccountGroup_base {
|
|
121
|
+
}
|
|
122
|
+
declare const OrganizationsGroup_base: HttpApiGroup.HttpApiGroup<"organizations", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/organizations", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
123
|
+
readonly name: Schema.brand<Schema.String, "Name">;
|
|
124
|
+
readonly slug: Schema.brand<Schema.String, "Slug">;
|
|
125
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
126
|
+
readonly organization: Schema.Struct<{
|
|
127
|
+
readonly id: Schema.brand<Schema.String, "OrganizationId">;
|
|
128
|
+
readonly name: Schema.String;
|
|
129
|
+
readonly slug: Schema.brand<Schema.String, "Slug">;
|
|
130
|
+
readonly plan: Schema.Union<readonly [Schema.TaggedStruct<"unbound", {}>, Schema.TaggedStruct<"known", {
|
|
131
|
+
readonly id: Schema.Literals<readonly ["free", "pro", "team", "enterprise"]>;
|
|
132
|
+
}>, Schema.TaggedStruct<"unknown", {
|
|
133
|
+
readonly id: Schema.String;
|
|
134
|
+
}>]>;
|
|
135
|
+
readonly createdAt: Schema.DateTimeUtc;
|
|
136
|
+
}>;
|
|
137
|
+
readonly role: Schema.Literals<readonly ["owner", "admin", "member", "viewer"]>;
|
|
138
|
+
}>>, Schema.toCodecJson<typeof 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", "/organizations/:organizationId", Schema.toCodecStringTree<Schema.Struct<{
|
|
139
|
+
organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
140
|
+
}>>, 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", "/organizations/:organizationId", Schema.toCodecStringTree<Schema.Struct<{
|
|
141
|
+
organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
142
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
143
|
+
readonly organization: Schema.Struct<{
|
|
144
|
+
readonly id: Schema.brand<Schema.String, "OrganizationId">;
|
|
145
|
+
readonly name: Schema.String;
|
|
146
|
+
readonly slug: Schema.brand<Schema.String, "Slug">;
|
|
147
|
+
readonly plan: Schema.Union<readonly [Schema.TaggedStruct<"unbound", {}>, Schema.TaggedStruct<"known", {
|
|
148
|
+
readonly id: Schema.Literals<readonly ["free", "pro", "team", "enterprise"]>;
|
|
149
|
+
}>, Schema.TaggedStruct<"unknown", {
|
|
150
|
+
readonly id: Schema.String;
|
|
151
|
+
}>]>;
|
|
152
|
+
readonly createdAt: Schema.DateTimeUtc;
|
|
153
|
+
}>;
|
|
154
|
+
readonly role: Schema.Literals<readonly ["owner", "admin", "member", "viewer"]>;
|
|
155
|
+
}>>, 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<"getDeletion", "GET", "/organizations/:organizationId/deletion", Schema.toCodecStringTree<Schema.Struct<{
|
|
156
|
+
organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
157
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
158
|
+
readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
159
|
+
readonly phase: Schema.Literals<readonly ["billing", "runners", "databases", "records", "completed"]>;
|
|
160
|
+
readonly blocked: Schema.Boolean;
|
|
161
|
+
}>>, 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", never, never, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
|
|
162
|
+
readonly organization: Schema.Struct<{
|
|
163
|
+
readonly id: Schema.brand<Schema.String, "OrganizationId">;
|
|
164
|
+
readonly name: Schema.String;
|
|
165
|
+
readonly slug: Schema.brand<Schema.String, "Slug">;
|
|
166
|
+
readonly plan: Schema.Union<readonly [Schema.TaggedStruct<"unbound", {}>, Schema.TaggedStruct<"known", {
|
|
167
|
+
readonly id: Schema.Literals<readonly ["free", "pro", "team", "enterprise"]>;
|
|
168
|
+
}>, Schema.TaggedStruct<"unknown", {
|
|
169
|
+
readonly id: Schema.String;
|
|
170
|
+
}>]>;
|
|
171
|
+
readonly createdAt: Schema.DateTimeUtc;
|
|
172
|
+
}>;
|
|
173
|
+
readonly role: Schema.Literals<readonly ["owner", "admin", "member", "viewer"]>;
|
|
174
|
+
}>>>, Schema.toCodecJson<typeof import("../errors.ts").Forbidden | typeof import("../errors.ts").NotImplemented>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"update", "PATCH", "/organizations/:organizationId", Schema.toCodecStringTree<Schema.Struct<{
|
|
175
|
+
organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
176
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
177
|
+
readonly name: Schema.optional<Schema.brand<Schema.String, "Name">>;
|
|
178
|
+
readonly slug: Schema.optional<Schema.brand<Schema.String, "Slug">>;
|
|
179
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
180
|
+
readonly id: Schema.brand<Schema.String, "OrganizationId">;
|
|
181
|
+
readonly name: Schema.String;
|
|
182
|
+
readonly slug: Schema.brand<Schema.String, "Slug">;
|
|
183
|
+
readonly plan: Schema.Union<readonly [Schema.TaggedStruct<"unbound", {}>, Schema.TaggedStruct<"known", {
|
|
184
|
+
readonly id: Schema.Literals<readonly ["free", "pro", "team", "enterprise"]>;
|
|
185
|
+
}>, Schema.TaggedStruct<"unknown", {
|
|
186
|
+
readonly id: Schema.String;
|
|
187
|
+
}>]>;
|
|
188
|
+
readonly createdAt: Schema.DateTimeUtc;
|
|
189
|
+
}>>, Schema.toCodecJson<typeof 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>;
|
|
190
|
+
export declare class OrganizationsGroup extends OrganizationsGroup_base {
|
|
191
|
+
}
|
|
192
|
+
declare const MembersGroup_base: HttpApiGroup.HttpApiGroup<"members", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/organizations/:organizationId/members", Schema.toCodecStringTree<Schema.Struct<{
|
|
193
|
+
organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
194
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
|
|
195
|
+
readonly id: Schema.brand<Schema.String, "MemberId">;
|
|
196
|
+
readonly user: Schema.Struct<{
|
|
197
|
+
readonly id: Schema.brand<Schema.String, "UserId">;
|
|
198
|
+
readonly name: Schema.String;
|
|
199
|
+
readonly email: Schema.brand<Schema.String, "Email">;
|
|
200
|
+
readonly image: Schema.NullOr<Schema.String>;
|
|
201
|
+
}>;
|
|
202
|
+
readonly role: Schema.Literals<readonly ["owner", "admin", "member", "viewer"]>;
|
|
203
|
+
readonly createdAt: Schema.DateTimeUtc;
|
|
204
|
+
readonly lastActiveAt: Schema.NullOr<Schema.DateTimeUtc>;
|
|
205
|
+
}>>>, 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", "/organizations/:organizationId/members/:memberId", Schema.toCodecStringTree<Schema.Struct<{
|
|
206
|
+
organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
207
|
+
memberId: Schema.brand<Schema.String, "MemberId">;
|
|
208
|
+
}>>, 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<"updateRole", "PATCH", "/organizations/:organizationId/members/:memberId", Schema.toCodecStringTree<Schema.Struct<{
|
|
209
|
+
organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
210
|
+
memberId: Schema.brand<Schema.String, "MemberId">;
|
|
211
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
212
|
+
readonly role: Schema.Literals<readonly ["owner", "admin", "member", "viewer"]>;
|
|
213
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
214
|
+
readonly id: Schema.brand<Schema.String, "MemberId">;
|
|
215
|
+
readonly user: Schema.Struct<{
|
|
216
|
+
readonly id: Schema.brand<Schema.String, "UserId">;
|
|
217
|
+
readonly name: Schema.String;
|
|
218
|
+
readonly email: Schema.brand<Schema.String, "Email">;
|
|
219
|
+
readonly image: Schema.NullOr<Schema.String>;
|
|
220
|
+
}>;
|
|
221
|
+
readonly role: Schema.Literals<readonly ["owner", "admin", "member", "viewer"]>;
|
|
222
|
+
readonly createdAt: Schema.DateTimeUtc;
|
|
223
|
+
readonly lastActiveAt: Schema.NullOr<Schema.DateTimeUtc>;
|
|
224
|
+
}>>, Schema.toCodecJson<typeof 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>;
|
|
225
|
+
export declare class MembersGroup extends MembersGroup_base {
|
|
226
|
+
}
|
|
227
|
+
declare const InvitationsGroup_base: HttpApiGroup.HttpApiGroup<"invitations", HttpApiEndpoint.HttpApiEndpoint<"accept", "POST", "/invitations/:invitationId/accept", Schema.toCodecStringTree<Schema.Struct<{
|
|
228
|
+
invitationId: Schema.brand<Schema.String, "InvitationId">;
|
|
229
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
230
|
+
readonly organization: Schema.Struct<{
|
|
231
|
+
readonly id: Schema.brand<Schema.String, "OrganizationId">;
|
|
232
|
+
readonly name: Schema.String;
|
|
233
|
+
readonly slug: Schema.brand<Schema.String, "Slug">;
|
|
234
|
+
readonly plan: Schema.Union<readonly [Schema.TaggedStruct<"unbound", {}>, Schema.TaggedStruct<"known", {
|
|
235
|
+
readonly id: Schema.Literals<readonly ["free", "pro", "team", "enterprise"]>;
|
|
236
|
+
}>, Schema.TaggedStruct<"unknown", {
|
|
237
|
+
readonly id: Schema.String;
|
|
238
|
+
}>]>;
|
|
239
|
+
readonly createdAt: Schema.DateTimeUtc;
|
|
240
|
+
}>;
|
|
241
|
+
readonly role: Schema.Literals<readonly ["owner", "admin", "member", "viewer"]>;
|
|
242
|
+
}>>, Schema.toCodecJson<typeof 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<"cancel", "DELETE", "/organizations/:organizationId/invitations/:invitationId", Schema.toCodecStringTree<Schema.Struct<{
|
|
243
|
+
organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
244
|
+
invitationId: Schema.brand<Schema.String, "InvitationId">;
|
|
245
|
+
}>>, 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<"create", "POST", "/organizations/:organizationId/invitations", Schema.toCodecStringTree<Schema.Struct<{
|
|
246
|
+
organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
247
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
248
|
+
readonly email: Schema.brand<Schema.String, "Email">;
|
|
249
|
+
readonly role: Schema.Literals<readonly ["admin", "member", "viewer"]>;
|
|
250
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
251
|
+
readonly id: Schema.brand<Schema.String, "InvitationId">;
|
|
252
|
+
readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
253
|
+
readonly email: Schema.brand<Schema.String, "Email">;
|
|
254
|
+
readonly role: Schema.Literals<readonly ["admin", "member", "viewer"]>;
|
|
255
|
+
readonly status: Schema.Literals<readonly ["pending", "accepted", "declined", "canceled", "expired"]>;
|
|
256
|
+
readonly invitedBy: Schema.Struct<{
|
|
257
|
+
readonly id: Schema.brand<Schema.String, "UserId">;
|
|
258
|
+
readonly name: Schema.String;
|
|
259
|
+
}>;
|
|
260
|
+
readonly createdAt: Schema.DateTimeUtc;
|
|
261
|
+
readonly expiresAt: Schema.DateTimeUtc;
|
|
262
|
+
}>>, Schema.toCodecJson<typeof 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<"decline", "POST", "/invitations/:invitationId/decline", Schema.toCodecStringTree<Schema.Struct<{
|
|
263
|
+
invitationId: Schema.brand<Schema.String, "InvitationId">;
|
|
264
|
+
}>>, 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", "/organizations/:organizationId/invitations", Schema.toCodecStringTree<Schema.Struct<{
|
|
265
|
+
organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
266
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
|
|
267
|
+
readonly id: Schema.brand<Schema.String, "InvitationId">;
|
|
268
|
+
readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
269
|
+
readonly email: Schema.brand<Schema.String, "Email">;
|
|
270
|
+
readonly role: Schema.Literals<readonly ["admin", "member", "viewer"]>;
|
|
271
|
+
readonly status: Schema.Literals<readonly ["pending", "accepted", "declined", "canceled", "expired"]>;
|
|
272
|
+
readonly invitedBy: Schema.Struct<{
|
|
273
|
+
readonly id: Schema.brand<Schema.String, "UserId">;
|
|
274
|
+
readonly name: Schema.String;
|
|
275
|
+
}>;
|
|
276
|
+
readonly createdAt: Schema.DateTimeUtc;
|
|
277
|
+
readonly expiresAt: Schema.DateTimeUtc;
|
|
278
|
+
}>>>, 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<"preview", "GET", "/invitations/:invitationId", Schema.toCodecStringTree<Schema.Struct<{
|
|
279
|
+
invitationId: Schema.brand<Schema.String, "InvitationId">;
|
|
280
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
281
|
+
readonly id: Schema.brand<Schema.String, "InvitationId">;
|
|
282
|
+
readonly email: Schema.brand<Schema.String, "Email">;
|
|
283
|
+
readonly role: Schema.Literals<readonly ["admin", "member", "viewer"]>;
|
|
284
|
+
readonly status: Schema.Literals<readonly ["pending", "accepted", "declined", "canceled", "expired"]>;
|
|
285
|
+
readonly expiresAt: Schema.DateTimeUtc;
|
|
286
|
+
readonly inviterName: Schema.String;
|
|
287
|
+
readonly organization: Schema.Struct<{
|
|
288
|
+
readonly id: Schema.brand<Schema.String, "OrganizationId">;
|
|
289
|
+
readonly name: Schema.String;
|
|
290
|
+
readonly slug: Schema.brand<Schema.String, "Slug">;
|
|
291
|
+
readonly plan: Schema.Union<readonly [Schema.TaggedStruct<"unbound", {}>, Schema.TaggedStruct<"known", {
|
|
292
|
+
readonly id: Schema.Literals<readonly ["free", "pro", "team", "enterprise"]>;
|
|
293
|
+
}>, Schema.TaggedStruct<"unknown", {
|
|
294
|
+
readonly id: Schema.String;
|
|
295
|
+
}>]>;
|
|
296
|
+
readonly memberCount: Schema.Int;
|
|
297
|
+
}>;
|
|
298
|
+
}>>, 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<"resend", "POST", "/organizations/:organizationId/invitations/:invitationId/resend", Schema.toCodecStringTree<Schema.Struct<{
|
|
299
|
+
organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
300
|
+
invitationId: Schema.brand<Schema.String, "InvitationId">;
|
|
301
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
302
|
+
readonly id: Schema.brand<Schema.String, "InvitationId">;
|
|
303
|
+
readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
304
|
+
readonly email: Schema.brand<Schema.String, "Email">;
|
|
305
|
+
readonly role: Schema.Literals<readonly ["admin", "member", "viewer"]>;
|
|
306
|
+
readonly status: Schema.Literals<readonly ["pending", "accepted", "declined", "canceled", "expired"]>;
|
|
307
|
+
readonly invitedBy: Schema.Struct<{
|
|
308
|
+
readonly id: Schema.brand<Schema.String, "UserId">;
|
|
309
|
+
readonly name: Schema.String;
|
|
310
|
+
}>;
|
|
311
|
+
readonly createdAt: Schema.DateTimeUtc;
|
|
312
|
+
readonly expiresAt: Schema.DateTimeUtc;
|
|
313
|
+
}>>, Schema.toCodecJson<typeof 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>;
|
|
314
|
+
export declare class InvitationsGroup extends InvitationsGroup_base {
|
|
315
|
+
}
|
|
316
|
+
declare const ApiKeysGroup_base: HttpApiGroup.HttpApiGroup<"apiKeys", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/organizations/:organizationId/api-keys", Schema.toCodecStringTree<Schema.Struct<{
|
|
317
|
+
organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
318
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
319
|
+
readonly name: Schema.brand<Schema.String, "Name">;
|
|
320
|
+
readonly permission: Schema.Literals<readonly ["read", "write", "admin"]>;
|
|
321
|
+
readonly projectId: Schema.optional<Schema.brand<Schema.String, "ProjectId">>;
|
|
322
|
+
readonly expiresAt: Schema.optional<Schema.DateTimeUtc>;
|
|
323
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
324
|
+
readonly key: Schema.Struct<{
|
|
325
|
+
readonly id: Schema.brand<Schema.String, "ApiKeyId">;
|
|
326
|
+
readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
327
|
+
readonly name: Schema.String;
|
|
328
|
+
readonly prefix: Schema.String;
|
|
329
|
+
readonly lastFour: Schema.String;
|
|
330
|
+
readonly permission: Schema.Literals<readonly ["read", "write", "admin"]>;
|
|
331
|
+
readonly projectId: Schema.NullOr<Schema.brand<Schema.String, "ProjectId">>;
|
|
332
|
+
readonly createdAt: Schema.DateTimeUtc;
|
|
333
|
+
readonly createdBy: Schema.Struct<{
|
|
334
|
+
readonly kind: Schema.Literals<readonly ["user", "api-key"]>;
|
|
335
|
+
readonly id: Schema.String;
|
|
336
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
337
|
+
}>;
|
|
338
|
+
readonly lastUsedAt: Schema.NullOr<Schema.DateTimeUtc>;
|
|
339
|
+
readonly expiresAt: Schema.NullOr<Schema.DateTimeUtc>;
|
|
340
|
+
readonly revokedAt: Schema.NullOr<Schema.DateTimeUtc>;
|
|
341
|
+
}>;
|
|
342
|
+
readonly secret: Schema.String;
|
|
343
|
+
}>>, Schema.toCodecJson<typeof 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", "/organizations/:organizationId/api-keys", Schema.toCodecStringTree<Schema.Struct<{
|
|
344
|
+
organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
345
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
346
|
+
projectId: Schema.optional<Schema.brand<Schema.String, "ProjectId">>;
|
|
347
|
+
}>>, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
|
|
348
|
+
readonly id: Schema.brand<Schema.String, "ApiKeyId">;
|
|
349
|
+
readonly organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
350
|
+
readonly name: Schema.String;
|
|
351
|
+
readonly prefix: Schema.String;
|
|
352
|
+
readonly lastFour: Schema.String;
|
|
353
|
+
readonly permission: Schema.Literals<readonly ["read", "write", "admin"]>;
|
|
354
|
+
readonly projectId: Schema.NullOr<Schema.brand<Schema.String, "ProjectId">>;
|
|
355
|
+
readonly createdAt: Schema.DateTimeUtc;
|
|
356
|
+
readonly createdBy: Schema.Struct<{
|
|
357
|
+
readonly kind: Schema.Literals<readonly ["user", "api-key"]>;
|
|
358
|
+
readonly id: Schema.String;
|
|
359
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
360
|
+
}>;
|
|
361
|
+
readonly lastUsedAt: Schema.NullOr<Schema.DateTimeUtc>;
|
|
362
|
+
readonly expiresAt: Schema.NullOr<Schema.DateTimeUtc>;
|
|
363
|
+
readonly revokedAt: Schema.NullOr<Schema.DateTimeUtc>;
|
|
364
|
+
}>>>, 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<"revoke", "DELETE", "/organizations/:organizationId/api-keys/:keyId", Schema.toCodecStringTree<Schema.Struct<{
|
|
365
|
+
organizationId: Schema.brand<Schema.String, "OrganizationId">;
|
|
366
|
+
keyId: Schema.brand<Schema.String, "ApiKeyId">;
|
|
367
|
+
}>>, 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>, false>;
|
|
368
|
+
export declare class ApiKeysGroup extends ApiKeysGroup_base {
|
|
369
|
+
}
|
|
370
|
+
export {};
|