@mochabug/adapt-core 1.0.0-rc21 → 1.0.0-rc22
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 +33 -0
- package/dist/esm/genproto/buf/validate/validate_pb.js +352 -0
- package/dist/esm/genproto/buf/validate/validate_pb.js.map +1 -0
- package/dist/esm/genproto/google/api/annotations_pb.js +27 -0
- package/dist/esm/genproto/google/api/annotations_pb.js.map +1 -0
- package/dist/esm/genproto/google/api/client_pb.js +287 -0
- package/dist/esm/genproto/google/api/client_pb.js.map +1 -0
- package/dist/esm/genproto/google/api/http_pb.js +34 -0
- package/dist/esm/genproto/google/api/http_pb.js.map +1 -0
- package/dist/esm/genproto/google/api/launch_stage_pb.js +101 -0
- package/dist/esm/genproto/google/api/launch_stage_pb.js.map +1 -0
- package/dist/esm/genproto/mochabugapis/adapt/automations/v1/automations_pb.js +176 -0
- package/dist/esm/genproto/mochabugapis/adapt/automations/v1/automations_pb.js.map +1 -0
- package/dist/esm/genproto/mochabugapis/adapt/graph/exchange_pb.js +26 -0
- package/dist/esm/genproto/mochabugapis/adapt/graph/exchange_pb.js.map +1 -0
- package/dist/esm/genproto/mochabugapis/adapt/graph/jtd_schema_pb.js +26 -0
- package/dist/esm/genproto/mochabugapis/adapt/graph/jtd_schema_pb.js.map +1 -0
- package/dist/esm/genproto/mochabugapis/adapt/graph/receiver_pb.js +26 -0
- package/dist/esm/genproto/mochabugapis/adapt/graph/receiver_pb.js.map +1 -0
- package/dist/esm/genproto/mochabugapis/adapt/graph/signal_binding_pb.js +85 -0
- package/dist/esm/genproto/mochabugapis/adapt/graph/signal_binding_pb.js.map +1 -0
- package/dist/esm/genproto/mochabugapis/adapt/graph/signal_data_pb.js +25 -0
- package/dist/esm/genproto/mochabugapis/adapt/graph/signal_data_pb.js.map +1 -0
- package/dist/esm/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.js +26 -0
- package/dist/esm/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.js.map +1 -0
- package/dist/esm/genproto/mochabugapis/adapt/graph/signal_format_pb.js +26 -0
- package/dist/esm/genproto/mochabugapis/adapt/graph/signal_format_pb.js.map +1 -0
- package/dist/esm/genproto/mochabugapis/adapt/graph/transceiver_pb.js +26 -0
- package/dist/esm/genproto/mochabugapis/adapt/graph/transceiver_pb.js.map +1 -0
- package/dist/esm/genproto/mochabugapis/adapt/graph/transmitter_pb.js +62 -0
- package/dist/esm/genproto/mochabugapis/adapt/graph/transmitter_pb.js.map +1 -0
- package/dist/esm/genproto/mochabugapis/adapt/graph/vertex_metadata_pb.js +28 -0
- package/dist/esm/genproto/mochabugapis/adapt/graph/vertex_metadata_pb.js.map +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/pubsub-client.js +1 -1
- package/dist/esm/pubsub-client.js.map +1 -1
- package/dist/types/genproto/buf/validate/validate_pb.d.ts +8490 -0
- package/dist/types/genproto/google/api/annotations_pb.d.ts +13 -0
- package/dist/types/genproto/google/api/client_pb.d.ts +1431 -0
- package/dist/types/genproto/google/api/http_pb.d.ts +842 -0
- package/dist/types/genproto/google/api/launch_stage_pb.d.ts +93 -0
- package/dist/types/genproto/mochabugapis/adapt/automations/v1/automations_pb.d.ts +1005 -0
- package/dist/types/genproto/mochabugapis/adapt/graph/exchange_pb.d.ts +76 -0
- package/dist/types/genproto/mochabugapis/adapt/graph/jtd_schema_pb.d.ts +400 -0
- package/dist/types/genproto/mochabugapis/adapt/graph/receiver_pb.d.ts +68 -0
- package/dist/types/genproto/mochabugapis/adapt/graph/signal_binding_pb.d.ts +429 -0
- package/dist/types/genproto/mochabugapis/adapt/graph/signal_data_pb.d.ts +197 -0
- package/dist/types/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.d.ts +160 -0
- package/dist/types/genproto/mochabugapis/adapt/graph/signal_format_pb.d.ts +304 -0
- package/dist/types/genproto/mochabugapis/adapt/graph/transceiver_pb.d.ts +76 -0
- package/dist/types/genproto/mochabugapis/adapt/graph/transmitter_pb.d.ts +119 -0
- package/dist/types/genproto/mochabugapis/adapt/graph/vertex_metadata_pb.d.ts +98 -0
- package/dist/types/index.d.ts +3 -1
- package/dist/types/pubsub-client.d.ts +4 -4
- package/package.json +3 -2
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Exchange, ExchangeJson } from "./exchange_pb.js";
|
|
3
|
+
import type { Receiver, ReceiverJson } from "./receiver_pb.js";
|
|
4
|
+
import type { Transmitter, TransmitterJson } from "./transmitter_pb.js";
|
|
5
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
6
|
+
/**
|
|
7
|
+
* Describes the file mochabugapis/adapt/graph/vertex_metadata.proto.
|
|
8
|
+
*/
|
|
9
|
+
export declare const file_mochabugapis_adapt_graph_vertex_metadata: GenFile;
|
|
10
|
+
/**
|
|
11
|
+
* VertexMetadata represents the configuration for a vertex, detailing its inputs,
|
|
12
|
+
* outputs, and processes (such as procedures and streams).
|
|
13
|
+
*
|
|
14
|
+
* @generated from message mochabugapis.adapt.graph.VertexMetadata
|
|
15
|
+
*/
|
|
16
|
+
export type VertexMetadata = Message<"mochabugapis.adapt.graph.VertexMetadata"> & {
|
|
17
|
+
/**
|
|
18
|
+
* Indicates if the vertex configuration is complete. Defaults to 'false'.
|
|
19
|
+
*
|
|
20
|
+
* @generated from field: bool complete = 1;
|
|
21
|
+
*/
|
|
22
|
+
complete: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Input points for the vertex. Must contain between 1 and 50 receivers,
|
|
25
|
+
* each with a unique name.
|
|
26
|
+
*
|
|
27
|
+
* @generated from field: repeated mochabugapis.adapt.graph.Receiver receivers = 2;
|
|
28
|
+
*/
|
|
29
|
+
receivers: Receiver[];
|
|
30
|
+
/**
|
|
31
|
+
* Output points for the vertex. Can contain up to 50 transmitters,
|
|
32
|
+
* each with a unique name.
|
|
33
|
+
*
|
|
34
|
+
* @generated from field: repeated mochabugapis.adapt.graph.Transmitter transmitters = 3;
|
|
35
|
+
*/
|
|
36
|
+
transmitters: Transmitter[];
|
|
37
|
+
/**
|
|
38
|
+
* Processes initiated by transmitters and responded to by receivers.
|
|
39
|
+
* Limited to 10 unique procedures.
|
|
40
|
+
*
|
|
41
|
+
* @generated from field: repeated mochabugapis.adapt.graph.Exchange exchanges = 4;
|
|
42
|
+
*/
|
|
43
|
+
exchanges: Exchange[];
|
|
44
|
+
/**
|
|
45
|
+
* A unix cron expression to determine when the task should run.
|
|
46
|
+
*
|
|
47
|
+
* @generated from field: optional string cron_schedule = 6;
|
|
48
|
+
*/
|
|
49
|
+
cronSchedule?: string;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* VertexMetadata represents the configuration for a vertex, detailing its inputs,
|
|
53
|
+
* outputs, and processes (such as procedures and streams).
|
|
54
|
+
*
|
|
55
|
+
* @generated from message mochabugapis.adapt.graph.VertexMetadata
|
|
56
|
+
*/
|
|
57
|
+
export type VertexMetadataJson = {
|
|
58
|
+
/**
|
|
59
|
+
* Indicates if the vertex configuration is complete. Defaults to 'false'.
|
|
60
|
+
*
|
|
61
|
+
* @generated from field: bool complete = 1;
|
|
62
|
+
*/
|
|
63
|
+
complete?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Input points for the vertex. Must contain between 1 and 50 receivers,
|
|
66
|
+
* each with a unique name.
|
|
67
|
+
*
|
|
68
|
+
* @generated from field: repeated mochabugapis.adapt.graph.Receiver receivers = 2;
|
|
69
|
+
*/
|
|
70
|
+
receivers?: ReceiverJson[];
|
|
71
|
+
/**
|
|
72
|
+
* Output points for the vertex. Can contain up to 50 transmitters,
|
|
73
|
+
* each with a unique name.
|
|
74
|
+
*
|
|
75
|
+
* @generated from field: repeated mochabugapis.adapt.graph.Transmitter transmitters = 3;
|
|
76
|
+
*/
|
|
77
|
+
transmitters?: TransmitterJson[];
|
|
78
|
+
/**
|
|
79
|
+
* Processes initiated by transmitters and responded to by receivers.
|
|
80
|
+
* Limited to 10 unique procedures.
|
|
81
|
+
*
|
|
82
|
+
* @generated from field: repeated mochabugapis.adapt.graph.Exchange exchanges = 4;
|
|
83
|
+
*/
|
|
84
|
+
exchanges?: ExchangeJson[];
|
|
85
|
+
/**
|
|
86
|
+
* A unix cron expression to determine when the task should run.
|
|
87
|
+
*
|
|
88
|
+
* @generated from field: optional string cron_schedule = 6;
|
|
89
|
+
*/
|
|
90
|
+
cronSchedule?: string;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* Describes the message mochabugapis.adapt.graph.VertexMetadata.
|
|
94
|
+
* Use `create(VertexMetadataSchema)` to create a new message.
|
|
95
|
+
*/
|
|
96
|
+
export declare const VertexMetadataSchema: GenMessage<VertexMetadata, {
|
|
97
|
+
jsonType: VertexMetadataJson;
|
|
98
|
+
}>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import type { GetSessionResponseJson, InheritSessionResponseJson, ReadOutputResponseJson, ReadUrlsResponseJson, StartSessionRequestJson, StartSessionResponseJson } from "
|
|
1
|
+
import type { GetSessionResponseJson, InheritSessionResponseJson, ReadOutputResponseJson, ReadUrlsResponseJson, StartSessionRequestJson, StartSessionResponseJson } from "./genproto/mochabugapis/adapt/automations/v1/automations_pb.js";
|
|
2
|
+
export type { StartSessionRequestJson } from "./genproto/mochabugapis/adapt/automations/v1/automations_pb.js";
|
|
3
|
+
export type { SignalDataJson } from "./genproto/mochabugapis/adapt/graph/signal_data_pb.js";
|
|
2
4
|
export * from "./pubsub-client.js";
|
|
3
5
|
export interface AdaptConfig {
|
|
4
6
|
baseUrl: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Output as OutputMessage, Session, SessionJson, Session as SessionMessage, StatusJson, Url, UrlJson, Url as UrlMessage } from "
|
|
2
|
-
import { Status } from "
|
|
3
|
-
import type { SignalData } from "
|
|
4
|
-
export type { OutputMessage, Session, SessionJson, SessionMessage, SignalData, Status, StatusJson, Url, UrlJson, UrlMessage
|
|
1
|
+
import type { Output as OutputMessage, Session, SessionJson, Session as SessionMessage, StatusJson, Url, UrlJson, Url as UrlMessage } from "./genproto/mochabugapis/adapt/automations/v1/automations_pb.js";
|
|
2
|
+
import { Status } from "./genproto/mochabugapis/adapt/automations/v1/automations_pb.js";
|
|
3
|
+
import type { SignalData, SignalDataJson } from "./genproto/mochabugapis/adapt/graph/signal_data_pb.js";
|
|
4
|
+
export type { OutputMessage, Session, SessionJson, SessionMessage, SignalData, SignalDataJson, Status, StatusJson, Url, UrlJson, UrlMessage };
|
|
5
5
|
export interface Output {
|
|
6
6
|
vertex: string;
|
|
7
7
|
fork: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mochabug/adapt-core",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-rc22",
|
|
4
4
|
"description": "Cross-platform core client library for Adapt automation platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/esm/index.js",
|
|
@@ -15,9 +15,10 @@
|
|
|
15
15
|
"dist"
|
|
16
16
|
],
|
|
17
17
|
"scripts": {
|
|
18
|
+
"generate": "rm -rf src/genproto && cd ../../.. && buf generate --template clients/js/core/buf.gen.yaml --include-imports --path public-api/mochabugapis/adapt/automations --path public-api/mochabugapis/adapt/graph",
|
|
18
19
|
"build:esm": "tsc --project tsconfig.esm.json",
|
|
19
20
|
"build:types": "tsc --project tsconfig.types.json",
|
|
20
|
-
"build": "rm -rf dist && npm run build:esm && npm run build:types",
|
|
21
|
+
"build": "rm -rf dist && npm run generate && npm run build:esm && npm run build:types",
|
|
21
22
|
"test": "vitest run",
|
|
22
23
|
"test:ui": "vitest --ui"
|
|
23
24
|
},
|