reactor-effect-client 0.0.0-reserved.0 → 0.2.0
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 +201 -0
- package/NOTICE +29 -0
- package/README.md +124 -2
- package/dist/FetchHttp.d.ts +9 -0
- package/dist/FetchHttp.d.ts.map +1 -0
- package/dist/FetchHttp.js +63 -0
- package/dist/FetchHttp.js.map +1 -0
- package/dist/PeerFactory.d.ts +15 -0
- package/dist/PeerFactory.d.ts.map +1 -0
- package/dist/PeerFactory.js +4 -0
- package/dist/PeerFactory.js.map +1 -0
- package/dist/PeerTypes.d.ts +64 -0
- package/dist/PeerTypes.d.ts.map +1 -0
- package/dist/PeerTypes.js +2 -0
- package/dist/PeerTypes.js.map +1 -0
- package/dist/Sequence.d.ts +81 -0
- package/dist/Sequence.d.ts.map +1 -0
- package/dist/Sequence.js +215 -0
- package/dist/Sequence.js.map +1 -0
- package/dist/SessionTypes.d.ts +164 -0
- package/dist/SessionTypes.d.ts.map +1 -0
- package/dist/SessionTypes.js +2 -0
- package/dist/SessionTypes.js.map +1 -0
- package/dist/Submission.d.ts +42 -0
- package/dist/Submission.d.ts.map +1 -0
- package/dist/Submission.js +52 -0
- package/dist/Submission.js.map +1 -0
- package/dist/bytes.d.ts +6 -0
- package/dist/bytes.d.ts.map +1 -0
- package/dist/bytes.js +32 -0
- package/dist/bytes.js.map +1 -0
- package/dist/contract.d.ts +58 -0
- package/dist/contract.d.ts.map +1 -0
- package/dist/contract.js +87 -0
- package/dist/contract.js.map +1 -0
- package/dist/coordinator/_internal/client.d.ts +127 -0
- package/dist/coordinator/_internal/client.d.ts.map +1 -0
- package/dist/coordinator/_internal/client.js +450 -0
- package/dist/coordinator/_internal/client.js.map +1 -0
- package/dist/coordinator/_internal/response.d.ts +15 -0
- package/dist/coordinator/_internal/response.d.ts.map +1 -0
- package/dist/coordinator/_internal/response.js +57 -0
- package/dist/coordinator/_internal/response.js.map +1 -0
- package/dist/coordinator/_internal/schemas.d.ts +51 -0
- package/dist/coordinator/_internal/schemas.d.ts.map +1 -0
- package/dist/coordinator/_internal/schemas.js +170 -0
- package/dist/coordinator/_internal/schemas.js.map +1 -0
- package/dist/coordinator/index.d.ts +28 -0
- package/dist/coordinator/index.d.ts.map +1 -0
- package/dist/coordinator/index.js +25 -0
- package/dist/coordinator/index.js.map +1 -0
- package/dist/correlation.d.ts +32 -0
- package/dist/correlation.d.ts.map +1 -0
- package/dist/correlation.js +113 -0
- package/dist/correlation.js.map +1 -0
- package/dist/errors.d.ts +88 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +93 -0
- package/dist/errors.js.map +1 -0
- package/dist/h3/_internal/client.d.ts +9 -0
- package/dist/h3/_internal/client.d.ts.map +1 -0
- package/dist/h3/_internal/client.js +510 -0
- package/dist/h3/_internal/client.js.map +1 -0
- package/dist/h3/_internal/contracts.d.ts +123 -0
- package/dist/h3/_internal/contracts.d.ts.map +1 -0
- package/dist/h3/_internal/contracts.js +113 -0
- package/dist/h3/_internal/contracts.js.map +1 -0
- package/dist/h3/_internal/deployment.d.ts +8 -0
- package/dist/h3/_internal/deployment.d.ts.map +1 -0
- package/dist/h3/_internal/deployment.js +132 -0
- package/dist/h3/_internal/deployment.js.map +1 -0
- package/dist/h3/_internal/evidence.d.ts +17 -0
- package/dist/h3/_internal/evidence.d.ts.map +1 -0
- package/dist/h3/_internal/evidence.js +48 -0
- package/dist/h3/_internal/evidence.js.map +1 -0
- package/dist/h3/_internal/references.d.ts +18 -0
- package/dist/h3/_internal/references.d.ts.map +1 -0
- package/dist/h3/_internal/references.js +186 -0
- package/dist/h3/_internal/references.js.map +1 -0
- package/dist/h3/_internal/request.d.ts +16 -0
- package/dist/h3/_internal/request.d.ts.map +1 -0
- package/dist/h3/_internal/request.js +79 -0
- package/dist/h3/_internal/request.js.map +1 -0
- package/dist/h3/_internal/state.d.ts +30 -0
- package/dist/h3/_internal/state.d.ts.map +1 -0
- package/dist/h3/_internal/state.js +243 -0
- package/dist/h3/_internal/state.js.map +1 -0
- package/dist/h3/index.d.ts +10 -0
- package/dist/h3/index.d.ts.map +1 -0
- package/dist/h3/index.js +7 -0
- package/dist/h3/index.js.map +1 -0
- package/dist/h3/messages.d.ts +310 -0
- package/dist/h3/messages.d.ts.map +1 -0
- package/dist/h3/messages.js +114 -0
- package/dist/h3/messages.js.map +1 -0
- package/dist/h3/profile.d.ts +109 -0
- package/dist/h3/profile.d.ts.map +1 -0
- package/dist/h3/profile.js +70 -0
- package/dist/h3/profile.js.map +1 -0
- package/dist/h3/types.d.ts +173 -0
- package/dist/h3/types.d.ts.map +1 -0
- package/dist/h3/types.js +2 -0
- package/dist/h3/types.js.map +1 -0
- package/dist/host.d.ts +25 -0
- package/dist/host.d.ts.map +1 -0
- package/dist/host.js +20 -0
- package/dist/host.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/json.d.ts +18 -0
- package/dist/json.d.ts.map +1 -0
- package/dist/json.js +123 -0
- package/dist/json.js.map +1 -0
- package/dist/media-stream.d.ts +10 -0
- package/dist/media-stream.d.ts.map +1 -0
- package/dist/media-stream.js +20 -0
- package/dist/media-stream.js.map +1 -0
- package/dist/observation.d.ts +26 -0
- package/dist/observation.d.ts.map +1 -0
- package/dist/observation.js +106 -0
- package/dist/observation.js.map +1 -0
- package/dist/orchestration/h3-source.d.ts +30 -0
- package/dist/orchestration/h3-source.d.ts.map +1 -0
- package/dist/orchestration/h3-source.js +303 -0
- package/dist/orchestration/h3-source.js.map +1 -0
- package/dist/orchestration/index.d.ts +12 -0
- package/dist/orchestration/index.d.ts.map +1 -0
- package/dist/orchestration/index.js +9 -0
- package/dist/orchestration/index.js.map +1 -0
- package/dist/orchestration/media-buffer.d.ts +23 -0
- package/dist/orchestration/media-buffer.d.ts.map +1 -0
- package/dist/orchestration/media-buffer.js +73 -0
- package/dist/orchestration/media-buffer.js.map +1 -0
- package/dist/orchestration/queries.d.ts +10 -0
- package/dist/orchestration/queries.d.ts.map +1 -0
- package/dist/orchestration/queries.js +40 -0
- package/dist/orchestration/queries.js.map +1 -0
- package/dist/orchestration/references.d.ts +16 -0
- package/dist/orchestration/references.d.ts.map +1 -0
- package/dist/orchestration/references.js +76 -0
- package/dist/orchestration/references.js.map +1 -0
- package/dist/orchestration/renewal-state.d.ts +58 -0
- package/dist/orchestration/renewal-state.d.ts.map +1 -0
- package/dist/orchestration/renewal-state.js +60 -0
- package/dist/orchestration/renewal-state.js.map +1 -0
- package/dist/orchestration/renewal.d.ts +76 -0
- package/dist/orchestration/renewal.d.ts.map +1 -0
- package/dist/orchestration/renewal.js +633 -0
- package/dist/orchestration/renewal.js.map +1 -0
- package/dist/orchestration/request.d.ts +53 -0
- package/dist/orchestration/request.d.ts.map +1 -0
- package/dist/orchestration/request.js +122 -0
- package/dist/orchestration/request.js.map +1 -0
- package/dist/orchestration/routing.d.ts +21 -0
- package/dist/orchestration/routing.d.ts.map +1 -0
- package/dist/orchestration/routing.js +90 -0
- package/dist/orchestration/routing.js.map +1 -0
- package/dist/orchestration/source-slot.d.ts +99 -0
- package/dist/orchestration/source-slot.d.ts.map +1 -0
- package/dist/orchestration/source-slot.js +206 -0
- package/dist/orchestration/source-slot.js.map +1 -0
- package/dist/orchestration/types.d.ts +334 -0
- package/dist/orchestration/types.d.ts.map +1 -0
- package/dist/orchestration/types.js +11 -0
- package/dist/orchestration/types.js.map +1 -0
- package/dist/protobuf.d.ts +63 -0
- package/dist/protobuf.d.ts.map +1 -0
- package/dist/protobuf.js +252 -0
- package/dist/protobuf.js.map +1 -0
- package/dist/session/_internal/acquire.d.ts +23 -0
- package/dist/session/_internal/acquire.d.ts.map +1 -0
- package/dist/session/_internal/acquire.js +167 -0
- package/dist/session/_internal/acquire.js.map +1 -0
- package/dist/session/_internal/cleanup.d.ts +18 -0
- package/dist/session/_internal/cleanup.d.ts.map +1 -0
- package/dist/session/_internal/cleanup.js +94 -0
- package/dist/session/_internal/cleanup.js.map +1 -0
- package/dist/session/_internal/lifecycle.d.ts +62 -0
- package/dist/session/_internal/lifecycle.d.ts.map +1 -0
- package/dist/session/_internal/lifecycle.js +132 -0
- package/dist/session/_internal/lifecycle.js.map +1 -0
- package/dist/session/_internal/remote.d.ts +28 -0
- package/dist/session/_internal/remote.d.ts.map +1 -0
- package/dist/session/_internal/remote.js +61 -0
- package/dist/session/_internal/remote.js.map +1 -0
- package/dist/session/_internal/uploads.d.ts +4 -0
- package/dist/session/_internal/uploads.d.ts.map +1 -0
- package/dist/session/_internal/uploads.js +33 -0
- package/dist/session/_internal/uploads.js.map +1 -0
- package/dist/session/commands.d.ts +22 -0
- package/dist/session/commands.d.ts.map +1 -0
- package/dist/session/commands.js +13 -0
- package/dist/session/commands.js.map +1 -0
- package/dist/session/files.d.ts +15 -0
- package/dist/session/files.d.ts.map +1 -0
- package/dist/session/files.js +54 -0
- package/dist/session/files.js.map +1 -0
- package/dist/session/index.d.ts +76 -0
- package/dist/session/index.d.ts.map +1 -0
- package/dist/session/index.js +16 -0
- package/dist/session/index.js.map +1 -0
- package/dist/session/media.d.ts +67 -0
- package/dist/session/media.d.ts.map +1 -0
- package/dist/session/media.js +2 -0
- package/dist/session/media.js.map +1 -0
- package/dist/session.d.ts +104 -0
- package/dist/session.d.ts.map +1 -0
- package/dist/session.js +872 -0
- package/dist/session.js.map +1 -0
- package/dist/simulation/_internal/source.d.ts +12 -0
- package/dist/simulation/_internal/source.d.ts.map +1 -0
- package/dist/simulation/_internal/source.js +477 -0
- package/dist/simulation/_internal/source.js.map +1 -0
- package/dist/simulation/index.d.ts +14 -0
- package/dist/simulation/index.d.ts.map +1 -0
- package/dist/simulation/index.js +13 -0
- package/dist/simulation/index.js.map +1 -0
- package/dist/simulation/types.d.ts +29 -0
- package/dist/simulation/types.d.ts.map +1 -0
- package/dist/simulation/types.js +2 -0
- package/dist/simulation/types.js.map +1 -0
- package/dist/stats.d.ts +33 -0
- package/dist/stats.d.ts.map +1 -0
- package/dist/stats.js +134 -0
- package/dist/stats.js.map +1 -0
- package/dist/testing/Faults.d.ts +4 -0
- package/dist/testing/Faults.d.ts.map +1 -0
- package/dist/testing/Faults.js +7 -0
- package/dist/testing/Faults.js.map +1 -0
- package/dist/testing/Png.d.ts +3 -0
- package/dist/testing/Png.d.ts.map +1 -0
- package/dist/testing/Png.js +68 -0
- package/dist/testing/Png.js.map +1 -0
- package/dist/testing/index.d.ts +3 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +3 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/wire.d.ts +7 -0
- package/dist/wire.d.ts.map +1 -0
- package/dist/wire.generated.d.ts +305 -0
- package/dist/wire.generated.d.ts.map +1 -0
- package/dist/wire.generated.js +1257 -0
- package/dist/wire.generated.js.map +1 -0
- package/dist/wire.js +5 -0
- package/dist/wire.js.map +1 -0
- package/notices/effect-LICENSE +21 -0
- package/notices/google-protobuf-LICENSE +32 -0
- package/notices/owned-webrtc/Effect-MIT.txt +21 -0
- package/notices/owned-webrtc/IETF.txt +43 -0
- package/notices/owned-webrtc/LICENSE +21 -0
- package/notices/owned-webrtc/UPSTREAM.md +20 -0
- package/notices/owned-webrtc/VP8-ADAPTATION.md +32 -0
- package/notices/owned-webrtc/VP8-AUTHORS.txt +42 -0
- package/notices/owned-webrtc/VP8-LICENSE.txt +25 -0
- package/notices/owned-webrtc/VP8-PATENTS.txt +21 -0
- package/notices/owned-webrtc/Werift-MIT.txt +21 -0
- package/notices/owned-webrtc/libvpx-v1.12.0-LICENSE.txt +28 -0
- package/notices/owned-webrtc/libvpx-v1.12.0-PATENTS.txt +22 -0
- package/notices/owned-webrtc/rfc3711.txt +3139 -0
- package/notices/owned-webrtc/str0m-MIT.txt +7 -0
- package/notices/owned-webrtc-LICENSE +21 -0
- package/notices/reactor-runtime-LICENSE +201 -0
- package/notices/reactor-runtime-NOTICE +5 -0
- package/notices/reactor-s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,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IACtF,gFAAgF;IAChF,QAAQ,CAAC,GAAG,EAAE,UAAU,CAAC;CAC1B;AACD,eAAO,MAAM,QAAQ,UAAW,MAAM,KAAG,OAAqD,CAAC;AAC/F,eAAO,MAAM,UAAU,UAAW,OAAO,KAAG,KAQ3C,CAAC;AACF,eAAO,MAAM,iBAAiB,UAAW,OAAO,KAAG,YA6BlD,CAAC;AACF,eAAO,MAAM,eAAe,UAAW,OAAO,KAAG,UAmBhD,CAAC;AACF,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACjC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC9B;AACD,eAAO,MAAM,QAAQ,UAAW,OAAO,KAAG,SAAS,EAclD,CAAC;AACF,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;CACnC;AACD,eAAO,MAAM,iBAAiB,UAAW,OAAO,KAAG,MACG,CAAC;AACvD,eAAO,MAAM,WAAW,UACf,OAAO,KACb;IAAE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAA;CAQhE,CAAC"}
|
package/dist/contract.js
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { ReactorError } from "./errors.js";
|
|
2
|
+
import { array, finite, jsonObject, nonempty, record, string, uint32 } from "./json.js";
|
|
3
|
+
export const SDK_PIN = "24f1865b48f03354b15402731f1b92e90ceee92a";
|
|
4
|
+
export const RUNTIME_PIN = "8e98536c6daedca298700dc45cbb5fd9e3676f16";
|
|
5
|
+
export const CLIENT_INFO = Object.freeze({
|
|
6
|
+
sdk_version: "0.1.0",
|
|
7
|
+
sdk_type: "typescript-effect-independent",
|
|
8
|
+
});
|
|
9
|
+
export const terminal = (state) => state === "CLOSED" || state === "INACTIVE";
|
|
10
|
+
export const parseTrack = (input) => {
|
|
11
|
+
const t = record(input, "track"), name = nonempty(t.name, "track.name");
|
|
12
|
+
if (t.kind !== "audio" && t.kind !== "video")
|
|
13
|
+
throw new ReactorError("Protocol", "unknown track kind");
|
|
14
|
+
if (t.direction !== "recvonly" && t.direction !== "sendonly")
|
|
15
|
+
throw new ReactorError("Protocol", "unknown track direction");
|
|
16
|
+
return Object.freeze({ name, kind: t.kind, direction: t.direction });
|
|
17
|
+
};
|
|
18
|
+
export const parseCapabilities = (input) => {
|
|
19
|
+
const c = record(input, "capabilities"), tracks = array(c.tracks, "capabilities.tracks").map(parseTrack);
|
|
20
|
+
if (tracks.length > 64)
|
|
21
|
+
throw new ReactorError("Protocol", "at most 64 tracks are supported");
|
|
22
|
+
if (new Set(tracks.map((t) => t.name)).size !== tracks.length)
|
|
23
|
+
throw new ReactorError("Protocol", "duplicate track names are ambiguous for named track operations");
|
|
24
|
+
const commands = c.commands == null
|
|
25
|
+
? undefined
|
|
26
|
+
: array(c.commands, "commands").map((input) => {
|
|
27
|
+
const raw = jsonObject(input), x = record(raw);
|
|
28
|
+
return Object.freeze({
|
|
29
|
+
name: nonempty(x.name, "command.name"),
|
|
30
|
+
...(x.description == null
|
|
31
|
+
? {}
|
|
32
|
+
: { description: string(x.description, "command.description") }),
|
|
33
|
+
...(raw.schema === undefined ? {} : { schema: raw.schema }),
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
return Object.freeze({
|
|
37
|
+
protocol_version: nonempty(c.protocol_version, "capabilities.protocol_version"),
|
|
38
|
+
tracks: Object.freeze(tracks),
|
|
39
|
+
...(commands === undefined ? {} : { commands: Object.freeze(commands) }),
|
|
40
|
+
...(c.emission_fps == null ? {} : { emission_fps: finite(c.emission_fps, "emission_fps") }),
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
export const parseDescriptor = (input) => {
|
|
44
|
+
const raw = jsonObject(input), d = record(raw);
|
|
45
|
+
const transport = d.selected_transport == null ? undefined : record(d.selected_transport, "selected_transport");
|
|
46
|
+
return Object.freeze({
|
|
47
|
+
session_id: nonempty(d.session_id, "session_id"),
|
|
48
|
+
state: nonempty(d.state, "session.state"),
|
|
49
|
+
raw,
|
|
50
|
+
...(d.capabilities == null ? {} : { capabilities: parseCapabilities(d.capabilities) }),
|
|
51
|
+
...(transport === undefined
|
|
52
|
+
? {}
|
|
53
|
+
: {
|
|
54
|
+
selected_transport: Object.freeze({
|
|
55
|
+
protocol: nonempty(transport.protocol, "transport.protocol"),
|
|
56
|
+
version: nonempty(transport.version, "transport.version"),
|
|
57
|
+
}),
|
|
58
|
+
}),
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
export const parseIce = (input) => {
|
|
62
|
+
const list = array(record(input).ice_servers, "ice_servers");
|
|
63
|
+
if (list.length > 64)
|
|
64
|
+
throw new ReactorError("Protocol", "too many ICE servers");
|
|
65
|
+
return list.map((x) => {
|
|
66
|
+
const server = record(x, "ICE server"), urls = array(server.uris, "ICE server uris").map((u) => nonempty(u, "ICE URI"));
|
|
67
|
+
if (server.credentials == null)
|
|
68
|
+
return { urls };
|
|
69
|
+
const auth = record(server.credentials, "ICE credentials");
|
|
70
|
+
return {
|
|
71
|
+
urls,
|
|
72
|
+
username: string(auth.username, "ICE username"),
|
|
73
|
+
credential: string(auth.password, "ICE password"),
|
|
74
|
+
};
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
export const parseConnectionId = (input) => uint32(record(input).connection_id, "connection_id");
|
|
78
|
+
export const parseAnswer = (input) => {
|
|
79
|
+
const answer = record(input, "SDP answer");
|
|
80
|
+
return {
|
|
81
|
+
sdp_answer: nonempty(answer.sdp_answer, "sdp_answer"),
|
|
82
|
+
...(answer.connection_id == null
|
|
83
|
+
? {}
|
|
84
|
+
: { connection_id: uint32(answer.connection_id, "connection_id") }),
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
//# sourceMappingURL=contract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExF,MAAM,CAAC,MAAM,OAAO,GAAG,0CAA0C,CAAC;AAClE,MAAM,CAAC,MAAM,WAAW,GAAG,0CAA0C,CAAC;AACtE,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC;IACvC,WAAW,EAAE,OAAO;IACpB,QAAQ,EAAE,+BAA+B;CAC1C,CAAC,CAAC;AA4BH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAa,EAAW,EAAE,CAAC,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,UAAU,CAAC;AAC/F,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAAc,EAAS,EAAE;IAClD,MAAM,CAAC,GAAG,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,EAC9B,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;IACxC,IAAI,CAAC,CAAC,IAAI,KAAK,OAAO,IAAI,CAAC,CAAC,IAAI,KAAK,OAAO;QAC1C,MAAM,IAAI,YAAY,CAAC,UAAU,EAAE,oBAAoB,CAAC,CAAC;IAC3D,IAAI,CAAC,CAAC,SAAS,KAAK,UAAU,IAAI,CAAC,CAAC,SAAS,KAAK,UAAU;QAC1D,MAAM,IAAI,YAAY,CAAC,UAAU,EAAE,yBAAyB,CAAC,CAAC;IAChE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E,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,cAAc,CAAC;YAC/C,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,cAAc,CAAC;SAClD,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAMF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAc,EAAU,EAAE,CAC1D,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC;AACvD,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,KAAc,EACoD,EAAE;IACpE,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;IAC3C,OAAO;QACL,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,UAAU,EAAE,YAAY,CAAC;QACrD,GAAG,CAAC,MAAM,CAAC,aAAa,IAAI,IAAI;YAC9B,CAAC,CAAC,EAAE;YACJ,CAAC,CAAC,EAAE,aAAa,EAAE,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,eAAe,CAAC,EAAE,CAAC;KACtE,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
import * as Redacted from "effect/Redacted";
|
|
3
|
+
import * as CoreHttpClient from "effect/unstable/http/HttpClient";
|
|
4
|
+
import { ReactorError } from "../../errors.js";
|
|
5
|
+
import type { Json } from "../../json.js";
|
|
6
|
+
import { parseAnswer } from "../../contract.js";
|
|
7
|
+
import type { Descriptor, IceCandidate, IceServer, Mapping } from "../../contract.js";
|
|
8
|
+
import type { HttpReply } from "./response.js";
|
|
9
|
+
import type { TokenOptions } from "./schemas.js";
|
|
10
|
+
export interface Poll {
|
|
11
|
+
readonly attempts: number;
|
|
12
|
+
readonly initialMs: number;
|
|
13
|
+
readonly maxMs: number;
|
|
14
|
+
}
|
|
15
|
+
export declare const SESSION_POLL: Poll;
|
|
16
|
+
export declare const SDP_POLL: Poll;
|
|
17
|
+
export interface HttpOptions {
|
|
18
|
+
readonly apiUrl: string;
|
|
19
|
+
readonly local?: boolean;
|
|
20
|
+
/** Evaluated for each authenticated request, including signaling for local sessions. */
|
|
21
|
+
readonly credential?: Effect.Effect<string | undefined, ReactorError>;
|
|
22
|
+
readonly requestTimeoutMs?: number;
|
|
23
|
+
readonly maxResponseBytes?: number;
|
|
24
|
+
readonly maxResponseChunks?: number;
|
|
25
|
+
readonly sessionPoll?: Poll;
|
|
26
|
+
readonly sdpPoll?: Poll;
|
|
27
|
+
}
|
|
28
|
+
interface Request {
|
|
29
|
+
readonly url: string;
|
|
30
|
+
readonly operation: string;
|
|
31
|
+
readonly method?: "GET" | "POST" | "PUT" | "DELETE";
|
|
32
|
+
readonly auth?: "coordinator" | "signaling" | "same-origin" | "none";
|
|
33
|
+
readonly body?: string | Uint8Array<ArrayBuffer>;
|
|
34
|
+
readonly contentType?: string;
|
|
35
|
+
readonly headers?: Readonly<Record<string, string>>;
|
|
36
|
+
readonly accepted?: readonly number[];
|
|
37
|
+
readonly maxBytes?: number;
|
|
38
|
+
readonly timeoutMs?: number;
|
|
39
|
+
}
|
|
40
|
+
export interface UploadAllocation {
|
|
41
|
+
readonly presigned_id: string;
|
|
42
|
+
readonly presigned_url: string;
|
|
43
|
+
readonly path: string;
|
|
44
|
+
}
|
|
45
|
+
export interface Termination {
|
|
46
|
+
readonly attempted: boolean;
|
|
47
|
+
readonly responseReceived: boolean;
|
|
48
|
+
readonly confirmed: boolean;
|
|
49
|
+
readonly evidence: "absent" | "terminal" | null;
|
|
50
|
+
/** DELETE/stop status; null means no response headers were received. */
|
|
51
|
+
readonly deleteStatus: number | null;
|
|
52
|
+
/** State from the independent confirmation, when it was valid. */
|
|
53
|
+
readonly state: string | null;
|
|
54
|
+
readonly error?: ReactorError;
|
|
55
|
+
}
|
|
56
|
+
/** Reactor HTTP protocol over the application-supplied Effect HTTP client. */
|
|
57
|
+
export declare class CoordinatorClient {
|
|
58
|
+
private readonly client;
|
|
59
|
+
readonly apiUrl: string;
|
|
60
|
+
readonly local: boolean;
|
|
61
|
+
readonly sessionPoll: Poll;
|
|
62
|
+
readonly sdpPoll: Poll;
|
|
63
|
+
private readonly timeoutMs;
|
|
64
|
+
private readonly maxBytes;
|
|
65
|
+
private readonly maxChunks;
|
|
66
|
+
readonly options: HttpOptions;
|
|
67
|
+
constructor(options: HttpOptions, client: CoreHttpClient.HttpClient);
|
|
68
|
+
path(path: string): string;
|
|
69
|
+
sessionPath(id: string): string;
|
|
70
|
+
transportPath(id: string): string;
|
|
71
|
+
request(request: Request): Effect.Effect<HttpReply, ReactorError>;
|
|
72
|
+
private jsonRequest;
|
|
73
|
+
create(model: {
|
|
74
|
+
readonly name: string;
|
|
75
|
+
readonly version?: string;
|
|
76
|
+
}, extraArgs?: Json): Effect.Effect<Descriptor, ReactorError>;
|
|
77
|
+
read(id: string): Effect.Effect<Descriptor, ReactorError>;
|
|
78
|
+
ready(id: string, initial?: Descriptor): Effect.Effect<Descriptor, ReactorError>;
|
|
79
|
+
iceServers(id: string): Effect.Effect<IceServer[], ReactorError>;
|
|
80
|
+
register(id: string): Effect.Effect<number, ReactorError>;
|
|
81
|
+
offer(id: string, cid: number, offer: string, mapping: readonly Mapping[], replace: boolean): Effect.Effect<void, ReactorError>;
|
|
82
|
+
answer(id: string, cid: number): Effect.Effect<ReturnType<typeof parseAnswer>, ReactorError>;
|
|
83
|
+
ice(id: string, cid: number, candidates: readonly IceCandidate[], isFinal: boolean): Effect.Effect<void, ReactorError>;
|
|
84
|
+
allocateUpload(id: string, name: string, mimeType: string, size: number): Effect.Effect<UploadAllocation, ReactorError>;
|
|
85
|
+
putUpload(allocation: UploadAllocation, bytes: Uint8Array<ArrayBuffer>, mimeType: string): Effect.Effect<void, ReactorError>;
|
|
86
|
+
/** Both scoped sessions and external supervisors use this exact evidence algorithm. */
|
|
87
|
+
terminate(id: string): Effect.Effect<Termination>;
|
|
88
|
+
/** Pricing remains provider JSON; modelRate interprets only known rate units. */
|
|
89
|
+
pricing(): Effect.Effect<Json, ReactorError>;
|
|
90
|
+
mintToken(input: TokenOptions): Effect.Effect<{
|
|
91
|
+
jwt: Redacted.Redacted<string>;
|
|
92
|
+
expiresAt: number;
|
|
93
|
+
granted: {
|
|
94
|
+
maxSessions: 1;
|
|
95
|
+
maxSessionSeconds: number;
|
|
96
|
+
};
|
|
97
|
+
}, ReactorError, never>;
|
|
98
|
+
inspect(id: string): Effect.Effect<{
|
|
99
|
+
readonly observedAt: number;
|
|
100
|
+
readonly state: string;
|
|
101
|
+
readonly hasCapabilities: boolean;
|
|
102
|
+
readonly selectedTransport: {
|
|
103
|
+
readonly protocol: string;
|
|
104
|
+
readonly version: string;
|
|
105
|
+
} | null;
|
|
106
|
+
readonly cluster: string | null;
|
|
107
|
+
readonly zone: string | null;
|
|
108
|
+
readonly serverVersion: string | null;
|
|
109
|
+
readonly additional: {
|
|
110
|
+
readonly [x: string]: string | number | boolean | null;
|
|
111
|
+
};
|
|
112
|
+
}, ReactorError, never>;
|
|
113
|
+
private issueToken;
|
|
114
|
+
/** Source auth.rs semantics; model restrictions make a token session-scoped. No retries. */
|
|
115
|
+
exchangeKey(apiKey: string, constraints?: TokenConstraints): Effect.Effect<string, ReactorError>;
|
|
116
|
+
}
|
|
117
|
+
export interface TokenConstraints {
|
|
118
|
+
readonly models?: readonly string[];
|
|
119
|
+
readonly max_sessions?: number;
|
|
120
|
+
readonly max_session_duration_seconds?: number;
|
|
121
|
+
readonly expires_after?: bigint;
|
|
122
|
+
}
|
|
123
|
+
export declare const tokenBody: (input: TokenConstraints) => string;
|
|
124
|
+
/** Construct the protocol adapter from a supplied platform client. No I/O runs here. */
|
|
125
|
+
export declare const make: (options: HttpOptions) => Effect.Effect<CoordinatorClient, ReactorError, CoreHttpClient.HttpClient>;
|
|
126
|
+
export {};
|
|
127
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
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