@aperture-browser/control-api 0.0.0-init.0 → 0.0.0-nightly.148.08402157055a
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/LICENSE +21 -0
- package/README.md +35 -1
- package/dist/api-EoqsY4JE.js +1083 -0
- package/dist/api-EoqsY4JE.js.map +1 -0
- package/dist/api-mf9iSwea.d.ts +2227 -0
- package/dist/client.d.ts +859 -0
- package/dist/client.js +18 -0
- package/dist/client.js.map +1 -0
- package/dist/errors.d.ts +166 -0
- package/dist/errors.js +90 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/package.json +45 -5
package/dist/client.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { o as Api } from "./api-EoqsY4JE.js";
|
|
2
|
+
import * as HttpApiClient from "effect/http-api/HttpApiClient";
|
|
3
|
+
import * as HttpClient from "effect/http/HttpClient";
|
|
4
|
+
import * as HttpClientRequest from "effect/http/HttpClientRequest";
|
|
5
|
+
//#region src/client.ts
|
|
6
|
+
/**
|
|
7
|
+
* The control plane's API for whoever holds a token: a call for every route, each with
|
|
8
|
+
* what it takes, what it answers and the errors it fails with. The requests are made by
|
|
9
|
+
* the `HttpClient` it is given.
|
|
10
|
+
*/
|
|
11
|
+
const make = (options) => HttpApiClient.make(Api, {
|
|
12
|
+
baseUrl: options.baseUrl,
|
|
13
|
+
transformClient: HttpClient.mapRequest(HttpClientRequest.bearerToken(options.token))
|
|
14
|
+
});
|
|
15
|
+
//#endregion
|
|
16
|
+
export { make };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","names":[],"sources":["../src/client.ts"],"sourcesContent":["import type * as Effect from \"effect/Effect\";\nimport * as HttpApiClient from \"effect/http-api/HttpApiClient\";\nimport * as HttpClient from \"effect/http/HttpClient\";\nimport * as HttpClientRequest from \"effect/http/HttpClientRequest\";\nimport { Api } from \"./api.ts\";\n\nexport interface ClientOptions {\n /** Where the control plane is reached, as `https://aperture.example.com`. */\n readonly baseUrl: string;\n /** An account's API token, or the access token an app was given over OAuth. */\n readonly token: string;\n}\n\n/**\n * The control plane's API for whoever holds a token: a call for every route, each with\n * what it takes, what it answers and the errors it fails with. The requests are made by\n * the `HttpClient` it is given.\n */\nexport const make = (options: ClientOptions) =>\n HttpApiClient.make(Api, {\n baseUrl: options.baseUrl,\n transformClient: HttpClient.mapRequest(HttpClientRequest.bearerToken(options.token)),\n });\n\n/** The API as `make` gives it. */\nexport type Client = Effect.Success<ReturnType<typeof make>>;\n"],"mappings":";;;;;;;;;;AAkBA,MAAa,QAAQ,YACnB,cAAc,KAAK,KAAK;CACtB,SAAS,QAAQ;CACjB,iBAAiB,WAAW,WAAW,kBAAkB,YAAY,QAAQ,KAAK,CAAC;AACrF,CAAC"}
|
package/dist/errors.d.ts
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
|
|
3
|
+
//#region src/errors.d.ts
|
|
4
|
+
declare const Unauthorized_base: Schema.Class<Unauthorized, Schema.TaggedStruct<"Unauthorized", {
|
|
5
|
+
readonly message: Schema.String;
|
|
6
|
+
}>, import("effect/Cause").YieldableError>;
|
|
7
|
+
/** No token came with the request, or one that is nobody's. */
|
|
8
|
+
declare class Unauthorized extends Unauthorized_base {}
|
|
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, and this is not theirs to do. */
|
|
13
|
+
declare class Forbidden extends Forbidden_base {}
|
|
14
|
+
declare const AccountNotFound_base: Schema.Class<AccountNotFound, Schema.TaggedStruct<"AccountNotFound", {
|
|
15
|
+
readonly id: Schema.String;
|
|
16
|
+
}>, import("effect/Cause").YieldableError>;
|
|
17
|
+
declare class AccountNotFound extends AccountNotFound_base {}
|
|
18
|
+
declare const SessionNotFound_base: Schema.Class<SessionNotFound, Schema.TaggedStruct<"SessionNotFound", {
|
|
19
|
+
readonly id: Schema.String;
|
|
20
|
+
}>, import("effect/Cause").YieldableError>;
|
|
21
|
+
/** There is no such session, or it is another account's: the two are told alike. */
|
|
22
|
+
declare class SessionNotFound extends SessionNotFound_base {}
|
|
23
|
+
declare const NoNode_base: Schema.Class<NoNode, Schema.TaggedStruct<"NoNode", {
|
|
24
|
+
readonly message: Schema.String;
|
|
25
|
+
}>, import("effect/Cause").YieldableError>;
|
|
26
|
+
/** No node is there to run a session: none registered, all silent, or none answered. */
|
|
27
|
+
declare class NoNode extends NoNode_base {}
|
|
28
|
+
declare const SessionHasNoNode_base: Schema.Class<SessionHasNoNode, Schema.TaggedStruct<"SessionHasNoNode", {
|
|
29
|
+
readonly id: Schema.String;
|
|
30
|
+
}>, import("effect/Cause").YieldableError>;
|
|
31
|
+
/** The session is on no node, so nothing can be asked of it. */
|
|
32
|
+
declare class SessionHasNoNode extends SessionHasNoNode_base {}
|
|
33
|
+
declare const NodeUnreachable_base: Schema.Class<NodeUnreachable, Schema.TaggedStruct<"NodeUnreachable", {
|
|
34
|
+
readonly node: Schema.String;
|
|
35
|
+
readonly message: Schema.String;
|
|
36
|
+
}>, import("effect/Cause").YieldableError>;
|
|
37
|
+
/** The session's node is silent or did not answer. */
|
|
38
|
+
declare class NodeUnreachable extends NodeUnreachable_base {}
|
|
39
|
+
declare const NodeRefused_base: Schema.Class<NodeRefused, Schema.TaggedStruct<"NodeRefused", {
|
|
40
|
+
readonly node: Schema.String;
|
|
41
|
+
readonly code: Schema.String;
|
|
42
|
+
readonly message: Schema.String;
|
|
43
|
+
}>, import("effect/Cause").YieldableError>;
|
|
44
|
+
/** The node answered that it does not do this; `code` is the executor's own. */
|
|
45
|
+
declare class NodeRefused extends NodeRefused_base {}
|
|
46
|
+
declare const SnapshotNotFound_base: Schema.Class<SnapshotNotFound, Schema.TaggedStruct<"SnapshotNotFound", {
|
|
47
|
+
readonly id: Schema.String;
|
|
48
|
+
}>, import("effect/Cause").YieldableError>;
|
|
49
|
+
/** There is no such snapshot, or it is another account's: the two are told alike. */
|
|
50
|
+
declare class SnapshotNotFound extends SnapshotNotFound_base {}
|
|
51
|
+
declare const SessionElsewhere_base: Schema.Class<SessionElsewhere, Schema.TaggedStruct<"SessionElsewhere", {
|
|
52
|
+
readonly id: Schema.String;
|
|
53
|
+
readonly path: Schema.String;
|
|
54
|
+
}>, import("effect/Cause").YieldableError>;
|
|
55
|
+
/** The session is on another node than the request went to: `path` is where it is now. */
|
|
56
|
+
declare class SessionElsewhere extends SessionElsewhere_base {}
|
|
57
|
+
declare const ApiTokenNotFound_base: Schema.Class<ApiTokenNotFound, Schema.TaggedStruct<"ApiTokenNotFound", {
|
|
58
|
+
readonly id: Schema.String;
|
|
59
|
+
}>, import("effect/Cause").YieldableError>;
|
|
60
|
+
/** There is no such API token, or it is another account's: the two are told alike. */
|
|
61
|
+
declare class ApiTokenNotFound extends ApiTokenNotFound_base {}
|
|
62
|
+
declare const NodeNotFound_base: Schema.Class<NodeNotFound, Schema.TaggedStruct<"NodeNotFound", {
|
|
63
|
+
readonly id: Schema.String;
|
|
64
|
+
}>, import("effect/Cause").YieldableError>;
|
|
65
|
+
/** There is no such node. */
|
|
66
|
+
declare class NodeNotFound extends NodeNotFound_base {}
|
|
67
|
+
declare const RegistrationTokenNotFound_base: Schema.Class<RegistrationTokenNotFound, Schema.TaggedStruct<"RegistrationTokenNotFound", {
|
|
68
|
+
readonly id: Schema.String;
|
|
69
|
+
}>, import("effect/Cause").YieldableError>;
|
|
70
|
+
/** There is no such registration token. */
|
|
71
|
+
declare class RegistrationTokenNotFound extends RegistrationTokenNotFound_base {}
|
|
72
|
+
declare const WorkspaceNotFound_base: Schema.Class<WorkspaceNotFound, Schema.TaggedStruct<"WorkspaceNotFound", {
|
|
73
|
+
readonly id: Schema.String;
|
|
74
|
+
}>, import("effect/Cause").YieldableError>;
|
|
75
|
+
/** There is no such workspace, or the caller is not in it: the two are told alike. */
|
|
76
|
+
declare class WorkspaceNotFound extends WorkspaceNotFound_base {}
|
|
77
|
+
declare const WorkspaceInUse_base: Schema.Class<WorkspaceInUse, Schema.TaggedStruct<"WorkspaceInUse", {
|
|
78
|
+
readonly id: Schema.String;
|
|
79
|
+
}>, import("effect/Cause").YieldableError>;
|
|
80
|
+
/** The workspace still has sessions or snapshots, so it is not removed. */
|
|
81
|
+
declare class WorkspaceInUse extends WorkspaceInUse_base {}
|
|
82
|
+
declare const EmailTaken_base: Schema.Class<EmailTaken, Schema.TaggedStruct<"EmailTaken", {
|
|
83
|
+
readonly email: Schema.String;
|
|
84
|
+
}>, import("effect/Cause").YieldableError>;
|
|
85
|
+
/** Someone signs in with that email address already. */
|
|
86
|
+
declare class EmailTaken extends EmailTaken_base {}
|
|
87
|
+
declare const PersonNotFound_base: Schema.Class<PersonNotFound, Schema.TaggedStruct<"PersonNotFound", {
|
|
88
|
+
readonly email: Schema.String;
|
|
89
|
+
}>, import("effect/Cause").YieldableError>;
|
|
90
|
+
/** Nobody signs in with that email address, or the account is no person's. */
|
|
91
|
+
declare class PersonNotFound extends PersonNotFound_base {}
|
|
92
|
+
declare const AccountInvalid_base: Schema.Class<AccountInvalid, Schema.TaggedStruct<"AccountInvalid", {
|
|
93
|
+
readonly message: Schema.String;
|
|
94
|
+
}>, import("effect/Cause").YieldableError>;
|
|
95
|
+
/** What was asked for an account does not go together. */
|
|
96
|
+
declare class AccountInvalid extends AccountInvalid_base {}
|
|
97
|
+
declare const AccountInUse_base: Schema.Class<AccountInUse, Schema.TaggedStruct<"AccountInUse", {
|
|
98
|
+
readonly id: Schema.String;
|
|
99
|
+
readonly message: Schema.String;
|
|
100
|
+
}>, import("effect/Cause").YieldableError>;
|
|
101
|
+
/** The account is not disabled or removed while something still stands on it. */
|
|
102
|
+
declare class AccountInUse extends AccountInUse_base {}
|
|
103
|
+
declare const OAuthClientNotFound_base: Schema.Class<OAuthClientNotFound, Schema.TaggedStruct<"OAuthClientNotFound", {
|
|
104
|
+
readonly id: Schema.String;
|
|
105
|
+
}>, import("effect/Cause").YieldableError>;
|
|
106
|
+
/** No app registered as that. */
|
|
107
|
+
declare class OAuthClientNotFound extends OAuthClientNotFound_base {}
|
|
108
|
+
declare const RedirectRefused_base: Schema.Class<RedirectRefused, Schema.TaggedStruct<"RedirectRefused", {
|
|
109
|
+
readonly message: Schema.String;
|
|
110
|
+
}>, import("effect/Cause").YieldableError>;
|
|
111
|
+
/** An app asks to be answered where it did not say it is. */
|
|
112
|
+
declare class RedirectRefused extends RedirectRefused_base {}
|
|
113
|
+
declare const GrantNotFound_base: Schema.Class<GrantNotFound, Schema.TaggedStruct<"GrantNotFound", {
|
|
114
|
+
readonly id: Schema.String;
|
|
115
|
+
}>, import("effect/Cause").YieldableError>;
|
|
116
|
+
/** There is no such grant, or it is another account's: the two are told alike. */
|
|
117
|
+
declare class GrantNotFound extends GrantNotFound_base {}
|
|
118
|
+
declare const ShareNotFound_base: Schema.Class<ShareNotFound, Schema.TaggedStruct<"ShareNotFound", {
|
|
119
|
+
readonly id: Schema.String;
|
|
120
|
+
}>, import("effect/Cause").YieldableError>;
|
|
121
|
+
/** There is no such share link, or it is into another session: the two are told alike. */
|
|
122
|
+
declare class ShareNotFound extends ShareNotFound_base {}
|
|
123
|
+
declare const ShareRefused_base: Schema.Class<ShareRefused, Schema.TaggedStruct<"ShareRefused", {
|
|
124
|
+
readonly message: Schema.String;
|
|
125
|
+
}>, import("effect/Cause").YieldableError>;
|
|
126
|
+
/** What a guest came with is no share link, or one that ran out or was taken back. */
|
|
127
|
+
declare class ShareRefused extends ShareRefused_base {}
|
|
128
|
+
declare const TooManyTries_base: Schema.Class<TooManyTries, Schema.TaggedStruct<"TooManyTries", {
|
|
129
|
+
readonly message: Schema.String;
|
|
130
|
+
}>, import("effect/Cause").YieldableError>;
|
|
131
|
+
/** Too many share links that are none came from one address in a while. */
|
|
132
|
+
declare class TooManyTries extends TooManyTries_base {}
|
|
133
|
+
declare const ProviderNotFound_base: Schema.Class<ProviderNotFound, Schema.TaggedStruct<"ProviderNotFound", {
|
|
134
|
+
readonly id: Schema.String;
|
|
135
|
+
}>, import("effect/Cause").YieldableError>;
|
|
136
|
+
/** There is no such provider among those that are kept here. */
|
|
137
|
+
declare class ProviderNotFound extends ProviderNotFound_base {}
|
|
138
|
+
declare const ProviderTaken_base: Schema.Class<ProviderTaken, Schema.TaggedStruct<"ProviderTaken", {
|
|
139
|
+
readonly id: Schema.String;
|
|
140
|
+
readonly message: Schema.String;
|
|
141
|
+
}>, import("effect/Cause").YieldableError>;
|
|
142
|
+
/** A provider is known by that id already: one that is kept here, or one the settings name. */
|
|
143
|
+
declare class ProviderTaken extends ProviderTaken_base {}
|
|
144
|
+
declare const ProviderConfigured_base: Schema.Class<ProviderConfigured, Schema.TaggedStruct<"ProviderConfigured", {
|
|
145
|
+
readonly id: Schema.String;
|
|
146
|
+
readonly message: Schema.String;
|
|
147
|
+
}>, import("effect/Cause").YieldableError>;
|
|
148
|
+
/** The provider is named by the settings: it is changed and removed there, and not here. */
|
|
149
|
+
declare class ProviderConfigured extends ProviderConfigured_base {}
|
|
150
|
+
declare const ProviderInvalid_base: Schema.Class<ProviderInvalid, Schema.TaggedStruct<"ProviderInvalid", {
|
|
151
|
+
readonly message: Schema.String;
|
|
152
|
+
readonly problems: Schema.$Array<Schema.String>;
|
|
153
|
+
}>, import("effect/Cause").YieldableError>;
|
|
154
|
+
/**
|
|
155
|
+
* What was said of a provider is nothing to sign people in through: `problems` are the
|
|
156
|
+
* reasons, each a sentence, where there are several.
|
|
157
|
+
*/
|
|
158
|
+
declare class ProviderInvalid extends ProviderInvalid_base {}
|
|
159
|
+
declare const FileLinkInvalid_base: Schema.Class<FileLinkInvalid, Schema.TaggedStruct<"FileLinkInvalid", {
|
|
160
|
+
readonly message: Schema.String;
|
|
161
|
+
}>, import("effect/Cause").YieldableError>;
|
|
162
|
+
/** What was asked of a session's file is not asked of such a file. */
|
|
163
|
+
declare class FileLinkInvalid extends FileLinkInvalid_base {}
|
|
164
|
+
//#endregion
|
|
165
|
+
export { AccountInUse, AccountInvalid, AccountNotFound, ApiTokenNotFound, EmailTaken, FileLinkInvalid, Forbidden, GrantNotFound, NoNode, NodeNotFound, NodeRefused, NodeUnreachable, OAuthClientNotFound, PersonNotFound, ProviderConfigured, ProviderInvalid, ProviderNotFound, ProviderTaken, RedirectRefused, RegistrationTokenNotFound, SessionElsewhere, SessionHasNoNode, SessionNotFound, ShareNotFound, ShareRefused, SnapshotNotFound, TooManyTries, Unauthorized, WorkspaceInUse, WorkspaceNotFound };
|
|
166
|
+
//# sourceMappingURL=errors.d.ts.map
|
package/dist/errors.js
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
//#region src/errors.ts
|
|
3
|
+
/** No token came with the request, or one that is nobody's. */
|
|
4
|
+
var Unauthorized = class extends Schema.TaggedError()("Unauthorized", { message: Schema.String }, { httpApiStatus: 401 }) {};
|
|
5
|
+
/** The caller is known, and this is not theirs to do. */
|
|
6
|
+
var Forbidden = class extends Schema.TaggedError()("Forbidden", { message: Schema.String }, { httpApiStatus: 403 }) {};
|
|
7
|
+
var AccountNotFound = class extends Schema.TaggedError()("AccountNotFound", { id: Schema.String }, { httpApiStatus: 404 }) {};
|
|
8
|
+
/** There is no such session, or it is another account's: the two are told alike. */
|
|
9
|
+
var SessionNotFound = class extends Schema.TaggedError()("SessionNotFound", { id: Schema.String }, { httpApiStatus: 404 }) {};
|
|
10
|
+
/** No node is there to run a session: none registered, all silent, or none answered. */
|
|
11
|
+
var NoNode = class extends Schema.TaggedError()("NoNode", { message: Schema.String }, { httpApiStatus: 503 }) {};
|
|
12
|
+
/** The session is on no node, so nothing can be asked of it. */
|
|
13
|
+
var SessionHasNoNode = class extends Schema.TaggedError()("SessionHasNoNode", { id: Schema.String }, { httpApiStatus: 409 }) {};
|
|
14
|
+
/** The session's node is silent or did not answer. */
|
|
15
|
+
var NodeUnreachable = class extends Schema.TaggedError()("NodeUnreachable", {
|
|
16
|
+
node: Schema.String,
|
|
17
|
+
message: Schema.String
|
|
18
|
+
}, { httpApiStatus: 503 }) {};
|
|
19
|
+
/** The node answered that it does not do this; `code` is the executor's own. */
|
|
20
|
+
var NodeRefused = class extends Schema.TaggedError()("NodeRefused", {
|
|
21
|
+
node: Schema.String,
|
|
22
|
+
code: Schema.String,
|
|
23
|
+
message: Schema.String
|
|
24
|
+
}, { httpApiStatus: 409 }) {};
|
|
25
|
+
/** There is no such snapshot, or it is another account's: the two are told alike. */
|
|
26
|
+
var SnapshotNotFound = class extends Schema.TaggedError()("SnapshotNotFound", { id: Schema.String }, { httpApiStatus: 404 }) {};
|
|
27
|
+
/** The session is on another node than the request went to: `path` is where it is now. */
|
|
28
|
+
var SessionElsewhere = class extends Schema.TaggedError()("SessionElsewhere", {
|
|
29
|
+
id: Schema.String,
|
|
30
|
+
path: Schema.String
|
|
31
|
+
}, { httpApiStatus: 409 }) {};
|
|
32
|
+
/** There is no such API token, or it is another account's: the two are told alike. */
|
|
33
|
+
var ApiTokenNotFound = class extends Schema.TaggedError()("ApiTokenNotFound", { id: Schema.String }, { httpApiStatus: 404 }) {};
|
|
34
|
+
/** There is no such node. */
|
|
35
|
+
var NodeNotFound = class extends Schema.TaggedError()("NodeNotFound", { id: Schema.String }, { httpApiStatus: 404 }) {};
|
|
36
|
+
/** There is no such registration token. */
|
|
37
|
+
var RegistrationTokenNotFound = class extends Schema.TaggedError()("RegistrationTokenNotFound", { id: Schema.String }, { httpApiStatus: 404 }) {};
|
|
38
|
+
/** There is no such workspace, or the caller is not in it: the two are told alike. */
|
|
39
|
+
var WorkspaceNotFound = class extends Schema.TaggedError()("WorkspaceNotFound", { id: Schema.String }, { httpApiStatus: 404 }) {};
|
|
40
|
+
/** The workspace still has sessions or snapshots, so it is not removed. */
|
|
41
|
+
var WorkspaceInUse = class extends Schema.TaggedError()("WorkspaceInUse", { id: Schema.String }, { httpApiStatus: 409 }) {};
|
|
42
|
+
/** Someone signs in with that email address already. */
|
|
43
|
+
var EmailTaken = class extends Schema.TaggedError()("EmailTaken", { email: Schema.String }, { httpApiStatus: 409 }) {};
|
|
44
|
+
/** Nobody signs in with that email address, or the account is no person's. */
|
|
45
|
+
var PersonNotFound = class extends Schema.TaggedError()("PersonNotFound", { email: Schema.String }, { httpApiStatus: 404 }) {};
|
|
46
|
+
/** What was asked for an account does not go together. */
|
|
47
|
+
var AccountInvalid = class extends Schema.TaggedError()("AccountInvalid", { message: Schema.String }, { httpApiStatus: 400 }) {};
|
|
48
|
+
/** The account is not disabled or removed while something still stands on it. */
|
|
49
|
+
var AccountInUse = class extends Schema.TaggedError()("AccountInUse", {
|
|
50
|
+
id: Schema.String,
|
|
51
|
+
message: Schema.String
|
|
52
|
+
}, { httpApiStatus: 409 }) {};
|
|
53
|
+
/** No app registered as that. */
|
|
54
|
+
var OAuthClientNotFound = class extends Schema.TaggedError()("OAuthClientNotFound", { id: Schema.String }, { httpApiStatus: 404 }) {};
|
|
55
|
+
/** An app asks to be answered where it did not say it is. */
|
|
56
|
+
var RedirectRefused = class extends Schema.TaggedError()("RedirectRefused", { message: Schema.String }, { httpApiStatus: 400 }) {};
|
|
57
|
+
/** There is no such grant, or it is another account's: the two are told alike. */
|
|
58
|
+
var GrantNotFound = class extends Schema.TaggedError()("GrantNotFound", { id: Schema.String }, { httpApiStatus: 404 }) {};
|
|
59
|
+
/** There is no such share link, or it is into another session: the two are told alike. */
|
|
60
|
+
var ShareNotFound = class extends Schema.TaggedError()("ShareNotFound", { id: Schema.String }, { httpApiStatus: 404 }) {};
|
|
61
|
+
/** What a guest came with is no share link, or one that ran out or was taken back. */
|
|
62
|
+
var ShareRefused = class extends Schema.TaggedError()("ShareRefused", { message: Schema.String }, { httpApiStatus: 401 }) {};
|
|
63
|
+
/** Too many share links that are none came from one address in a while. */
|
|
64
|
+
var TooManyTries = class extends Schema.TaggedError()("TooManyTries", { message: Schema.String }, { httpApiStatus: 429 }) {};
|
|
65
|
+
/** There is no such provider among those that are kept here. */
|
|
66
|
+
var ProviderNotFound = class extends Schema.TaggedError()("ProviderNotFound", { id: Schema.String }, { httpApiStatus: 404 }) {};
|
|
67
|
+
/** A provider is known by that id already: one that is kept here, or one the settings name. */
|
|
68
|
+
var ProviderTaken = class extends Schema.TaggedError()("ProviderTaken", {
|
|
69
|
+
id: Schema.String,
|
|
70
|
+
message: Schema.String
|
|
71
|
+
}, { httpApiStatus: 409 }) {};
|
|
72
|
+
/** The provider is named by the settings: it is changed and removed there, and not here. */
|
|
73
|
+
var ProviderConfigured = class extends Schema.TaggedError()("ProviderConfigured", {
|
|
74
|
+
id: Schema.String,
|
|
75
|
+
message: Schema.String
|
|
76
|
+
}, { httpApiStatus: 409 }) {};
|
|
77
|
+
/**
|
|
78
|
+
* What was said of a provider is nothing to sign people in through: `problems` are the
|
|
79
|
+
* reasons, each a sentence, where there are several.
|
|
80
|
+
*/
|
|
81
|
+
var ProviderInvalid = class extends Schema.TaggedError()("ProviderInvalid", {
|
|
82
|
+
message: Schema.String,
|
|
83
|
+
problems: Schema.Array(Schema.String)
|
|
84
|
+
}, { httpApiStatus: 400 }) {};
|
|
85
|
+
/** What was asked of a session's file is not asked of such a file. */
|
|
86
|
+
var FileLinkInvalid = class extends Schema.TaggedError()("FileLinkInvalid", { message: Schema.String }, { httpApiStatus: 400 }) {};
|
|
87
|
+
//#endregion
|
|
88
|
+
export { AccountInUse, AccountInvalid, AccountNotFound, ApiTokenNotFound, EmailTaken, FileLinkInvalid, Forbidden, GrantNotFound, NoNode, NodeNotFound, NodeRefused, NodeUnreachable, OAuthClientNotFound, PersonNotFound, ProviderConfigured, ProviderInvalid, ProviderNotFound, ProviderTaken, RedirectRefused, RegistrationTokenNotFound, SessionElsewhere, SessionHasNoNode, SessionNotFound, ShareNotFound, ShareRefused, SnapshotNotFound, TooManyTries, Unauthorized, WorkspaceInUse, WorkspaceNotFound };
|
|
89
|
+
|
|
90
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","names":[],"sources":["../src/errors.ts"],"sourcesContent":["import * as Schema from \"effect/Schema\";\n\n/** No token came with the request, or one that is nobody's. */\nexport class Unauthorized extends Schema.TaggedError<Unauthorized>()(\n \"Unauthorized\",\n { message: Schema.String },\n { httpApiStatus: 401 },\n) {}\n\n/** The caller is known, and this is not theirs to do. */\nexport class Forbidden extends Schema.TaggedError<Forbidden>()(\n \"Forbidden\",\n { message: Schema.String },\n { httpApiStatus: 403 },\n) {}\n\nexport class AccountNotFound extends Schema.TaggedError<AccountNotFound>()(\n \"AccountNotFound\",\n { id: Schema.String },\n { httpApiStatus: 404 },\n) {}\n\n/** There is no such session, or it is another account's: the two are told alike. */\nexport class SessionNotFound extends Schema.TaggedError<SessionNotFound>()(\n \"SessionNotFound\",\n { id: Schema.String },\n { httpApiStatus: 404 },\n) {}\n\n/** No node is there to run a session: none registered, all silent, or none answered. */\nexport class NoNode extends Schema.TaggedError<NoNode>()(\n \"NoNode\",\n { message: Schema.String },\n { httpApiStatus: 503 },\n) {}\n\n/** The session is on no node, so nothing can be asked of it. */\nexport class SessionHasNoNode extends Schema.TaggedError<SessionHasNoNode>()(\n \"SessionHasNoNode\",\n { id: Schema.String },\n { httpApiStatus: 409 },\n) {}\n\n/** The session's node is silent or did not answer. */\nexport class NodeUnreachable extends Schema.TaggedError<NodeUnreachable>()(\n \"NodeUnreachable\",\n { node: Schema.String, message: Schema.String },\n { httpApiStatus: 503 },\n) {}\n\n/** The node answered that it does not do this; `code` is the executor's own. */\nexport class NodeRefused extends Schema.TaggedError<NodeRefused>()(\n \"NodeRefused\",\n { node: Schema.String, code: Schema.String, message: Schema.String },\n { httpApiStatus: 409 },\n) {}\n\n/** There is no such snapshot, or it is another account's: the two are told alike. */\nexport class SnapshotNotFound extends Schema.TaggedError<SnapshotNotFound>()(\n \"SnapshotNotFound\",\n { id: Schema.String },\n { httpApiStatus: 404 },\n) {}\n\n/** The session is on another node than the request went to: `path` is where it is now. */\nexport class SessionElsewhere extends Schema.TaggedError<SessionElsewhere>()(\n \"SessionElsewhere\",\n { id: Schema.String, path: Schema.String },\n { httpApiStatus: 409 },\n) {}\n\n/** There is no such API token, or it is another account's: the two are told alike. */\nexport class ApiTokenNotFound extends Schema.TaggedError<ApiTokenNotFound>()(\n \"ApiTokenNotFound\",\n { id: Schema.String },\n { httpApiStatus: 404 },\n) {}\n\n/** There is no such node. */\nexport class NodeNotFound extends Schema.TaggedError<NodeNotFound>()(\n \"NodeNotFound\",\n { id: Schema.String },\n { httpApiStatus: 404 },\n) {}\n\n/** There is no such registration token. */\nexport class RegistrationTokenNotFound extends Schema.TaggedError<RegistrationTokenNotFound>()(\n \"RegistrationTokenNotFound\",\n { id: Schema.String },\n { httpApiStatus: 404 },\n) {}\n\n/** There is no such workspace, or the caller is not in it: the two are told alike. */\nexport class WorkspaceNotFound extends Schema.TaggedError<WorkspaceNotFound>()(\n \"WorkspaceNotFound\",\n { id: Schema.String },\n { httpApiStatus: 404 },\n) {}\n\n/** The workspace still has sessions or snapshots, so it is not removed. */\nexport class WorkspaceInUse extends Schema.TaggedError<WorkspaceInUse>()(\n \"WorkspaceInUse\",\n { id: Schema.String },\n { httpApiStatus: 409 },\n) {}\n\n/** Someone signs in with that email address already. */\nexport class EmailTaken extends Schema.TaggedError<EmailTaken>()(\n \"EmailTaken\",\n { email: Schema.String },\n { httpApiStatus: 409 },\n) {}\n\n/** Nobody signs in with that email address, or the account is no person's. */\nexport class PersonNotFound extends Schema.TaggedError<PersonNotFound>()(\n \"PersonNotFound\",\n { email: Schema.String },\n { httpApiStatus: 404 },\n) {}\n\n/** What was asked for an account does not go together. */\nexport class AccountInvalid extends Schema.TaggedError<AccountInvalid>()(\n \"AccountInvalid\",\n { message: Schema.String },\n { httpApiStatus: 400 },\n) {}\n\n/** The account is not disabled or removed while something still stands on it. */\nexport class AccountInUse extends Schema.TaggedError<AccountInUse>()(\n \"AccountInUse\",\n { id: Schema.String, message: Schema.String },\n { httpApiStatus: 409 },\n) {}\n\n/** No app registered as that. */\nexport class OAuthClientNotFound extends Schema.TaggedError<OAuthClientNotFound>()(\n \"OAuthClientNotFound\",\n { id: Schema.String },\n { httpApiStatus: 404 },\n) {}\n\n/** An app asks to be answered where it did not say it is. */\nexport class RedirectRefused extends Schema.TaggedError<RedirectRefused>()(\n \"RedirectRefused\",\n { message: Schema.String },\n { httpApiStatus: 400 },\n) {}\n\n/** There is no such grant, or it is another account's: the two are told alike. */\nexport class GrantNotFound extends Schema.TaggedError<GrantNotFound>()(\n \"GrantNotFound\",\n { id: Schema.String },\n { httpApiStatus: 404 },\n) {}\n\n/** There is no such share link, or it is into another session: the two are told alike. */\nexport class ShareNotFound extends Schema.TaggedError<ShareNotFound>()(\n \"ShareNotFound\",\n { id: Schema.String },\n { httpApiStatus: 404 },\n) {}\n\n/** What a guest came with is no share link, or one that ran out or was taken back. */\nexport class ShareRefused extends Schema.TaggedError<ShareRefused>()(\n \"ShareRefused\",\n { message: Schema.String },\n { httpApiStatus: 401 },\n) {}\n\n/** Too many share links that are none came from one address in a while. */\nexport class TooManyTries extends Schema.TaggedError<TooManyTries>()(\n \"TooManyTries\",\n { message: Schema.String },\n { httpApiStatus: 429 },\n) {}\n\n/** There is no such provider among those that are kept here. */\nexport class ProviderNotFound extends Schema.TaggedError<ProviderNotFound>()(\n \"ProviderNotFound\",\n { id: Schema.String },\n { httpApiStatus: 404 },\n) {}\n\n/** A provider is known by that id already: one that is kept here, or one the settings name. */\nexport class ProviderTaken extends Schema.TaggedError<ProviderTaken>()(\n \"ProviderTaken\",\n { id: Schema.String, message: Schema.String },\n { httpApiStatus: 409 },\n) {}\n\n/** The provider is named by the settings: it is changed and removed there, and not here. */\nexport class ProviderConfigured extends Schema.TaggedError<ProviderConfigured>()(\n \"ProviderConfigured\",\n { id: Schema.String, message: Schema.String },\n { httpApiStatus: 409 },\n) {}\n\n/**\n * What was said of a provider is nothing to sign people in through: `problems` are the\n * reasons, each a sentence, where there are several.\n */\nexport class ProviderInvalid extends Schema.TaggedError<ProviderInvalid>()(\n \"ProviderInvalid\",\n { message: Schema.String, problems: Schema.Array(Schema.String) },\n { httpApiStatus: 400 },\n) {}\n\n/** What was asked of a session's file is not asked of such a file. */\nexport class FileLinkInvalid extends Schema.TaggedError<FileLinkInvalid>()(\n \"FileLinkInvalid\",\n { message: Schema.String },\n { httpApiStatus: 400 },\n) {}\n"],"mappings":"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"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { AccountInUse, AccountInvalid, AccountNotFound, ApiTokenNotFound, EmailTaken, FileLinkInvalid, Forbidden, GrantNotFound, NoNode, NodeNotFound, NodeRefused, NodeUnreachable, OAuthClientNotFound, PersonNotFound, ProviderConfigured, ProviderInvalid, ProviderNotFound, ProviderTaken, RedirectRefused, RegistrationTokenNotFound, SessionElsewhere, SessionHasNoNode, SessionNotFound, ShareNotFound, ShareRefused, SnapshotNotFound, TooManyTries, Unauthorized, WorkspaceInUse, WorkspaceNotFound } from "./errors.js";
|
|
2
|
+
import { $ as EventKind, A as ProvidersGroup, B as SignInMethods, C as Node, D as ProviderChecked, E as Provider, F as SessionsGroup, G as Workspace, H as SignInProviders, I as Share, J as Caller, K as WorkspaceMember, L as ShareCreated, M as RegistrationTokenCreated, N as Session, O as ProviderId, P as SessionFilePath, Q as EventDetail, R as SharesGroup, S as ListedAccount, T as PREFIX, U as Snapshot, V as SignInProvider, W as SnapshotsGroup, X as DesiredState, Y as Access, Z as EventActor, _ as FileLink, a as Admission, at as ShareRole, b as Health, c as ApiTokenCreated, d as CurrentCaller, et as EventResource, f as EVENTS_MOST, g as FILE_LINK_MOST, h as EventsGroup, i as AccountsGroup, it as Scope, j as RegistrationToken, k as ProviderKind, l as Authorization, m as EventPage, n as AccountLookup, nt as Offers, o as Api, ot as TokenResources, p as Event, q as WorkspacesGroup, r as AccountWorkspace, rt as ProxyConfig, s as ApiToken, st as covers, t as Account, tt as ObservedState, u as CurrentAccount, v as Grant, w as NodesGroup, x as HealthGroup, y as GrantsGroup, z as SignInGroup } from "./api-mf9iSwea.js";
|
|
3
|
+
export { Access, Account, AccountInUse, AccountInvalid, AccountLookup, AccountNotFound, AccountWorkspace, AccountsGroup, Admission, Api, ApiToken, ApiTokenCreated, ApiTokenNotFound, Authorization, type Caller, CurrentAccount, CurrentCaller, DesiredState, EVENTS_MOST, EmailTaken, Event, EventActor, EventDetail, EventKind, EventPage, EventResource, EventsGroup, FILE_LINK_MOST, FileLink, FileLinkInvalid, Forbidden, Grant, GrantNotFound, GrantsGroup, Health, HealthGroup, ListedAccount, NoNode, Node, NodeNotFound, NodeRefused, NodeUnreachable, NodesGroup, OAuthClientNotFound, ObservedState, Offers, PREFIX, PersonNotFound, Provider, ProviderChecked, ProviderConfigured, ProviderId, ProviderInvalid, ProviderKind, ProviderNotFound, ProviderTaken, ProvidersGroup, ProxyConfig, RedirectRefused, RegistrationToken, RegistrationTokenCreated, RegistrationTokenNotFound, Scope, Session, SessionElsewhere, SessionFilePath, SessionHasNoNode, SessionNotFound, SessionsGroup, Share, ShareCreated, ShareNotFound, ShareRefused, ShareRole, SharesGroup, SignInGroup, SignInMethods, SignInProvider, SignInProviders, Snapshot, SnapshotNotFound, SnapshotsGroup, TokenResources, TooManyTries, Unauthorized, Workspace, WorkspaceInUse, WorkspaceMember, WorkspaceNotFound, WorkspacesGroup, covers };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { $ as EventResource, A as ProvidersGroup, B as SignInMethods, C as Node, D as ProviderChecked, E as Provider, F as SessionsGroup, G as Workspace, H as SignInProviders, I as Share, J as Access, K as WorkspaceMember, L as ShareCreated, M as RegistrationTokenCreated, N as Session, O as ProviderId, P as SessionFilePath, Q as EventKind, R as SharesGroup, S as ListedAccount, T as PREFIX, U as Snapshot, V as SignInProvider, W as SnapshotsGroup, X as EventActor, Y as DesiredState, Z as EventDetail, _ as FileLink, a as Admission, at as TokenResources, b as Health, c as ApiTokenCreated, d as CurrentCaller, et as ObservedState, f as EVENTS_MOST, g as FILE_LINK_MOST, h as EventsGroup, i as AccountsGroup, it as ShareRole, j as RegistrationToken, k as ProviderKind, l as Authorization, m as EventPage, n as AccountLookup, nt as ProxyConfig, o as Api, ot as covers, p as Event, q as WorkspacesGroup, r as AccountWorkspace, rt as Scope, s as ApiToken, t as Account, tt as Offers, u as CurrentAccount, v as Grant, w as NodesGroup, x as HealthGroup, y as GrantsGroup, z as SignInGroup } from "./api-EoqsY4JE.js";
|
|
2
|
+
import { AccountInUse, AccountInvalid, AccountNotFound, ApiTokenNotFound, EmailTaken, FileLinkInvalid, Forbidden, GrantNotFound, NoNode, NodeNotFound, NodeRefused, NodeUnreachable, OAuthClientNotFound, PersonNotFound, ProviderConfigured, ProviderInvalid, ProviderNotFound, ProviderTaken, RedirectRefused, RegistrationTokenNotFound, SessionElsewhere, SessionHasNoNode, SessionNotFound, ShareNotFound, ShareRefused, SnapshotNotFound, TooManyTries, Unauthorized, WorkspaceInUse, WorkspaceNotFound } from "./errors.js";
|
|
3
|
+
export { Access, Account, AccountInUse, AccountInvalid, AccountLookup, AccountNotFound, AccountWorkspace, AccountsGroup, Admission, Api, ApiToken, ApiTokenCreated, ApiTokenNotFound, Authorization, CurrentAccount, CurrentCaller, DesiredState, EVENTS_MOST, EmailTaken, Event, EventActor, EventDetail, EventKind, EventPage, EventResource, EventsGroup, FILE_LINK_MOST, FileLink, FileLinkInvalid, Forbidden, Grant, GrantNotFound, GrantsGroup, Health, HealthGroup, ListedAccount, NoNode, Node, NodeNotFound, NodeRefused, NodeUnreachable, NodesGroup, OAuthClientNotFound, ObservedState, Offers, PREFIX, PersonNotFound, Provider, ProviderChecked, ProviderConfigured, ProviderId, ProviderInvalid, ProviderKind, ProviderNotFound, ProviderTaken, ProvidersGroup, ProxyConfig, RedirectRefused, RegistrationToken, RegistrationTokenCreated, RegistrationTokenNotFound, Scope, Session, SessionElsewhere, SessionFilePath, SessionHasNoNode, SessionNotFound, SessionsGroup, Share, ShareCreated, ShareNotFound, ShareRefused, ShareRole, SharesGroup, SignInGroup, SignInMethods, SignInProvider, SignInProviders, Snapshot, SnapshotNotFound, SnapshotsGroup, TokenResources, TooManyTries, Unauthorized, Workspace, WorkspaceInUse, WorkspaceMember, WorkspaceNotFound, WorkspacesGroup, covers };
|
package/package.json
CHANGED
|
@@ -1,9 +1,49 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aperture-browser/control-api",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-nightly.148.08402157055a",
|
|
4
4
|
"description": "The API of an Aperture control plane as its server and its callers read it: the routes, what goes over them and how they fail, with a typed client.",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"repository": { "type": "git", "url": "git+https://github.com/tarik02/aperture.git", "directory": "packages/control-api" },
|
|
7
5
|
"homepage": "https://github.com/tarik02/aperture#readme",
|
|
8
|
-
"
|
|
9
|
-
|
|
6
|
+
"bugs": "https://github.com/tarik02/aperture/issues",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/tarik02/aperture.git",
|
|
11
|
+
"directory": "packages/control-api"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"type": "module",
|
|
17
|
+
"sideEffects": false,
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"default": "./dist/index.js"
|
|
22
|
+
},
|
|
23
|
+
"./client": {
|
|
24
|
+
"types": "./dist/client.d.ts",
|
|
25
|
+
"default": "./dist/client.js"
|
|
26
|
+
},
|
|
27
|
+
"./errors": {
|
|
28
|
+
"types": "./dist/errors.d.ts",
|
|
29
|
+
"default": "./dist/errors.js"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"effect": "4.0.0",
|
|
37
|
+
"publint": "0.3.24",
|
|
38
|
+
"vite-plus": "0.2.4"
|
|
39
|
+
},
|
|
40
|
+
"peerDependencies": {
|
|
41
|
+
"effect": "^4.0.0"
|
|
42
|
+
},
|
|
43
|
+
"scripts": {
|
|
44
|
+
"build": "vp pack",
|
|
45
|
+
"typecheck": "tsgo --noEmit"
|
|
46
|
+
},
|
|
47
|
+
"main": "./dist/index.js",
|
|
48
|
+
"types": "./dist/index.d.ts"
|
|
49
|
+
}
|