@aperture-browser/control-api 0.0.0-nightly.148.08402157055a → 0.0.0-stage

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/README.md CHANGED
@@ -1,37 +1,3 @@
1
- # @aperture-browser/control-api
1
+ # Temporary Holding Version
2
2
 
3
- The API of an [Aperture](https://github.com/tarik02/aperture) control plane, as an [Effect](https://effect.website) `HttpApi`: every route, what goes over it and how it fails. The control plane serves from this definition, so a client made of it cannot disagree with the server.
4
-
5
- ```sh
6
- npm install @aperture-browser/control-api@beta effect
7
- ```
8
-
9
- While Aperture is in beta its packages are under the dist-tag `beta`; a package has the version of the server it speaks to.
10
-
11
- ```ts
12
- import * as Client from "@aperture-browser/control-api/client";
13
- import * as Effect from "effect/Effect";
14
- import * as FetchHttpClient from "effect/http/FetchHttpClient";
15
-
16
- const program = Effect.gen(function* () {
17
- const api = yield* Client.make({
18
- baseUrl: "https://aperture.example.com",
19
- token: process.env["APERTURE_TOKEN"] ?? "",
20
- });
21
- const session = yield* api.sessions.create({ payload: { label: "from the API" } });
22
- const ticket = yield* api.sessions.createTicket({ params: { id: session.id }, payload: {} });
23
- console.log(`watch it at ${ticket.url}`);
24
- });
25
-
26
- Effect.runPromise(program.pipe(Effect.provide(FetchHttpClient.layer)));
27
- ```
28
-
29
- A call fails with the errors its route names, each a class with a `_tag`: `SessionNotFound`, `Forbidden`, `NodeUnreachable` and the rest, from `@aperture-browser/control-api/errors`.
30
-
31
- | Entry | What it has |
32
- |---|---|
33
- | `.` | `Api` and its groups, the schemas of what they exchange (`Session`, `Snapshot`, `Scope`, `Access`, …), and the errors |
34
- | `./client` | `make({ baseUrl, token })`: the API for whoever holds a token |
35
- | `./errors` | The errors alone |
36
-
37
- The same routes are described for any other client at `<control plane>/api/control/openapi.json`. What is inside a session, its picture and input, is `@aperture-browser/session-client`.
3
+ This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
package/package.json CHANGED
@@ -1,49 +1,6 @@
1
1
  {
2
2
  "name": "@aperture-browser/control-api",
3
- "version": "0.0.0-nightly.148.08402157055a",
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
- "homepage": "https://github.com/tarik02/aperture#readme",
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"
3
+ "version": "0.0.0-stage",
4
+ "stub": true,
5
+ "description": "Temporary package placeholder for staged publishing"
49
6
  }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Taras Fomin
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.