@mochabug/adapt-sdk 0.1.1
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/README.md +873 -0
- package/dist/api.d.ts +1605 -0
- package/dist/api.d.ts.map +1 -0
- package/dist/api.spec.d.ts +2 -0
- package/dist/api.spec.d.ts.map +1 -0
- package/dist/cjs/api.cjs +2 -0
- package/dist/cjs/api.cjs.map +7 -0
- package/dist/cjs/frontend.cjs +2 -0
- package/dist/cjs/frontend.cjs.map +7 -0
- package/dist/cjs/mime.cjs +2 -0
- package/dist/cjs/mime.cjs.map +7 -0
- package/dist/cjs/router.cjs +2 -0
- package/dist/cjs/router.cjs.map +7 -0
- package/dist/cjs/types.cjs +2 -0
- package/dist/cjs/types.cjs.map +7 -0
- package/dist/esm/api.mjs +2 -0
- package/dist/esm/api.mjs.map +7 -0
- package/dist/esm/frontend.mjs +2 -0
- package/dist/esm/frontend.mjs.map +7 -0
- package/dist/esm/mime.mjs +2 -0
- package/dist/esm/mime.mjs.map +7 -0
- package/dist/esm/router.mjs +2 -0
- package/dist/esm/router.mjs.map +7 -0
- package/dist/esm/types.mjs +1 -0
- package/dist/esm/types.mjs.map +7 -0
- package/dist/frontend.d.ts +10 -0
- package/dist/frontend.d.ts.map +1 -0
- package/dist/genproto/buf/validate/validate_pb.d.ts +8491 -0
- package/dist/genproto/buf/validate/validate_pb.d.ts.map +1 -0
- package/dist/genproto/google/api/annotations_pb.d.ts +14 -0
- package/dist/genproto/google/api/annotations_pb.d.ts.map +1 -0
- package/dist/genproto/google/api/client_pb.d.ts +1432 -0
- package/dist/genproto/google/api/client_pb.d.ts.map +1 -0
- package/dist/genproto/google/api/http_pb.d.ts +843 -0
- package/dist/genproto/google/api/http_pb.d.ts.map +1 -0
- package/dist/genproto/google/api/launch_stage_pb.d.ts +94 -0
- package/dist/genproto/google/api/launch_stage_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/automations/v1/automations_pb.d.ts +1006 -0
- package/dist/genproto/mochabugapis/adapt/automations/v1/automations_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/exchange_pb.d.ts +77 -0
- package/dist/genproto/mochabugapis/adapt/graph/exchange_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/jtd_schema_pb.d.ts +401 -0
- package/dist/genproto/mochabugapis/adapt/graph/jtd_schema_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/receiver_pb.d.ts +69 -0
- package/dist/genproto/mochabugapis/adapt/graph/receiver_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/signal_binding_pb.d.ts +430 -0
- package/dist/genproto/mochabugapis/adapt/graph/signal_binding_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/signal_data_pb.d.ts +198 -0
- package/dist/genproto/mochabugapis/adapt/graph/signal_data_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.d.ts +161 -0
- package/dist/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/signal_format_pb.d.ts +305 -0
- package/dist/genproto/mochabugapis/adapt/graph/signal_format_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/transceiver_pb.d.ts +77 -0
- package/dist/genproto/mochabugapis/adapt/graph/transceiver_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/transmitter_pb.d.ts +120 -0
- package/dist/genproto/mochabugapis/adapt/graph/transmitter_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/vertex_metadata_pb.d.ts +99 -0
- package/dist/genproto/mochabugapis/adapt/graph/vertex_metadata_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/compound_services_pb.d.ts +347 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/compound_services_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/file_pb.d.ts +64 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/file_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/http_proxy_service_pb.d.ts +1282 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/http_proxy_service_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts +388 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.d.ts +805 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.d.ts +238 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.d.ts +241 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/service_settings_pb.d.ts +539 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/service_settings_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.d.ts +190 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts +269 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/runtime/v1/incoming_pb.d.ts +339 -0
- package/dist/genproto/mochabugapis/adapt/runtime/v1/incoming_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/runtime/v1/runtime_pb.d.ts +2721 -0
- package/dist/genproto/mochabugapis/adapt/runtime/v1/runtime_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/runtime/v1/store_pb.d.ts +872 -0
- package/dist/genproto/mochabugapis/adapt/runtime/v1/store_pb.d.ts.map +1 -0
- package/dist/grpcweb.d.ts +8 -0
- package/dist/grpcweb.d.ts.map +1 -0
- package/dist/mime.d.ts +11 -0
- package/dist/mime.d.ts.map +1 -0
- package/dist/router.d.ts +503 -0
- package/dist/router.d.ts.map +1 -0
- package/dist/router.spec.d.ts +2 -0
- package/dist/router.spec.d.ts.map +1 -0
- package/dist/signal-api.spec.d.ts +17 -0
- package/dist/signal-api.spec.d.ts.map +1 -0
- package/dist/types.d.ts +149 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +80 -0
|
@@ -0,0 +1,1006 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Timestamp, TimestampJson } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import type { SignalData, SignalDataJson } from "../../graph/signal_data_pb";
|
|
4
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
5
|
+
/**
|
|
6
|
+
* Describes the file mochabugapis/adapt/automations/v1/automations.proto.
|
|
7
|
+
*/
|
|
8
|
+
export declare const file_mochabugapis_adapt_automations_v1_automations: GenFile;
|
|
9
|
+
/**
|
|
10
|
+
* The inherit session request
|
|
11
|
+
* The actual token determines which release it will utilize
|
|
12
|
+
*
|
|
13
|
+
* @generated from message mochabugapis.adapt.automations.v1.InheritSessionRequest
|
|
14
|
+
*/
|
|
15
|
+
export type InheritSessionRequest = Message<"mochabugapis.adapt.automations.v1.InheritSessionRequest"> & {
|
|
16
|
+
/**
|
|
17
|
+
* The automation id you would like to inherit
|
|
18
|
+
*
|
|
19
|
+
* @generated from field: string id = 1;
|
|
20
|
+
*/
|
|
21
|
+
id: string;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* The inherit session request
|
|
25
|
+
* The actual token determines which release it will utilize
|
|
26
|
+
*
|
|
27
|
+
* @generated from message mochabugapis.adapt.automations.v1.InheritSessionRequest
|
|
28
|
+
*/
|
|
29
|
+
export type InheritSessionRequestJson = {
|
|
30
|
+
/**
|
|
31
|
+
* The automation id you would like to inherit
|
|
32
|
+
*
|
|
33
|
+
* @generated from field: string id = 1;
|
|
34
|
+
*/
|
|
35
|
+
id?: string;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Describes the message mochabugapis.adapt.automations.v1.InheritSessionRequest.
|
|
39
|
+
* Use `create(InheritSessionRequestSchema)` to create a new message.
|
|
40
|
+
*/
|
|
41
|
+
export declare const InheritSessionRequestSchema: GenMessage<InheritSessionRequest, {
|
|
42
|
+
jsonType: InheritSessionRequestJson;
|
|
43
|
+
}>;
|
|
44
|
+
/**
|
|
45
|
+
* The inherit session response
|
|
46
|
+
*
|
|
47
|
+
* @generated from message mochabugapis.adapt.automations.v1.InheritSessionResponse
|
|
48
|
+
*/
|
|
49
|
+
export type InheritSessionResponse = Message<"mochabugapis.adapt.automations.v1.InheritSessionResponse"> & {
|
|
50
|
+
/**
|
|
51
|
+
* The access token for the session
|
|
52
|
+
*
|
|
53
|
+
* @generated from field: string token = 1;
|
|
54
|
+
*/
|
|
55
|
+
token: string;
|
|
56
|
+
/**
|
|
57
|
+
* The timestamp when the session expires, if not set, the session never expires (typically the case for long-running stream vertices)
|
|
58
|
+
*
|
|
59
|
+
* @generated from field: optional google.protobuf.Timestamp expires = 2;
|
|
60
|
+
*/
|
|
61
|
+
expires?: Timestamp;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* The inherit session response
|
|
65
|
+
*
|
|
66
|
+
* @generated from message mochabugapis.adapt.automations.v1.InheritSessionResponse
|
|
67
|
+
*/
|
|
68
|
+
export type InheritSessionResponseJson = {
|
|
69
|
+
/**
|
|
70
|
+
* The access token for the session
|
|
71
|
+
*
|
|
72
|
+
* @generated from field: string token = 1;
|
|
73
|
+
*/
|
|
74
|
+
token?: string;
|
|
75
|
+
/**
|
|
76
|
+
* The timestamp when the session expires, if not set, the session never expires (typically the case for long-running stream vertices)
|
|
77
|
+
*
|
|
78
|
+
* @generated from field: optional google.protobuf.Timestamp expires = 2;
|
|
79
|
+
*/
|
|
80
|
+
expires?: TimestampJson;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Describes the message mochabugapis.adapt.automations.v1.InheritSessionResponse.
|
|
84
|
+
* Use `create(InheritSessionResponseSchema)` to create a new message.
|
|
85
|
+
*/
|
|
86
|
+
export declare const InheritSessionResponseSchema: GenMessage<InheritSessionResponse, {
|
|
87
|
+
jsonType: InheritSessionResponseJson;
|
|
88
|
+
}>;
|
|
89
|
+
/**
|
|
90
|
+
* The read output request
|
|
91
|
+
* The actual token determines which release it will utilize
|
|
92
|
+
*
|
|
93
|
+
* @generated from message mochabugapis.adapt.automations.v1.ReadOutputRequest
|
|
94
|
+
*/
|
|
95
|
+
export type ReadOutputRequest = Message<"mochabugapis.adapt.automations.v1.ReadOutputRequest"> & {
|
|
96
|
+
/**
|
|
97
|
+
* The automation id you would like to fetch a session for
|
|
98
|
+
*
|
|
99
|
+
* @generated from field: string id = 1;
|
|
100
|
+
*/
|
|
101
|
+
id: string;
|
|
102
|
+
/**
|
|
103
|
+
* An optional page size, if not set, it will default to 100
|
|
104
|
+
*
|
|
105
|
+
* @generated from field: uint32 page_size = 2;
|
|
106
|
+
*/
|
|
107
|
+
pageSize: number;
|
|
108
|
+
/**
|
|
109
|
+
* You can specify a specific node you wan to read the output from as well
|
|
110
|
+
* If not set, it will return all outputs
|
|
111
|
+
*
|
|
112
|
+
* @generated from field: optional string vertex = 3;
|
|
113
|
+
*/
|
|
114
|
+
vertex?: string;
|
|
115
|
+
/**
|
|
116
|
+
* A sortable time uuid to indicate that that the outputs need to be newer than
|
|
117
|
+
* Unset returns everything
|
|
118
|
+
*
|
|
119
|
+
* @generated from field: optional string newer_than = 4;
|
|
120
|
+
*/
|
|
121
|
+
newerThan?: string;
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* The read output request
|
|
125
|
+
* The actual token determines which release it will utilize
|
|
126
|
+
*
|
|
127
|
+
* @generated from message mochabugapis.adapt.automations.v1.ReadOutputRequest
|
|
128
|
+
*/
|
|
129
|
+
export type ReadOutputRequestJson = {
|
|
130
|
+
/**
|
|
131
|
+
* The automation id you would like to fetch a session for
|
|
132
|
+
*
|
|
133
|
+
* @generated from field: string id = 1;
|
|
134
|
+
*/
|
|
135
|
+
id?: string;
|
|
136
|
+
/**
|
|
137
|
+
* An optional page size, if not set, it will default to 100
|
|
138
|
+
*
|
|
139
|
+
* @generated from field: uint32 page_size = 2;
|
|
140
|
+
*/
|
|
141
|
+
pageSize?: number;
|
|
142
|
+
/**
|
|
143
|
+
* You can specify a specific node you wan to read the output from as well
|
|
144
|
+
* If not set, it will return all outputs
|
|
145
|
+
*
|
|
146
|
+
* @generated from field: optional string vertex = 3;
|
|
147
|
+
*/
|
|
148
|
+
vertex?: string;
|
|
149
|
+
/**
|
|
150
|
+
* A sortable time uuid to indicate that that the outputs need to be newer than
|
|
151
|
+
* Unset returns everything
|
|
152
|
+
*
|
|
153
|
+
* @generated from field: optional string newer_than = 4;
|
|
154
|
+
*/
|
|
155
|
+
newerThan?: string;
|
|
156
|
+
};
|
|
157
|
+
/**
|
|
158
|
+
* Describes the message mochabugapis.adapt.automations.v1.ReadOutputRequest.
|
|
159
|
+
* Use `create(ReadOutputRequestSchema)` to create a new message.
|
|
160
|
+
*/
|
|
161
|
+
export declare const ReadOutputRequestSchema: GenMessage<ReadOutputRequest, {
|
|
162
|
+
jsonType: ReadOutputRequestJson;
|
|
163
|
+
}>;
|
|
164
|
+
/**
|
|
165
|
+
* The read output response
|
|
166
|
+
*
|
|
167
|
+
* @generated from message mochabugapis.adapt.automations.v1.ReadOutputResponse
|
|
168
|
+
*/
|
|
169
|
+
export type ReadOutputResponse = Message<"mochabugapis.adapt.automations.v1.ReadOutputResponse"> & {
|
|
170
|
+
/**
|
|
171
|
+
* The session information
|
|
172
|
+
*
|
|
173
|
+
* @generated from field: mochabugapis.adapt.automations.v1.Session session = 1;
|
|
174
|
+
*/
|
|
175
|
+
session?: Session;
|
|
176
|
+
/**
|
|
177
|
+
* The outputs from the session, sorted with oldest first and newest last
|
|
178
|
+
*
|
|
179
|
+
* @generated from field: repeated mochabugapis.adapt.automations.v1.Output outputs = 2;
|
|
180
|
+
*/
|
|
181
|
+
outputs: Output[];
|
|
182
|
+
/**
|
|
183
|
+
* A optional next-page cursor equivalent to the id of the last output
|
|
184
|
+
*
|
|
185
|
+
* @generated from field: optional string next_page_cursor = 3;
|
|
186
|
+
*/
|
|
187
|
+
nextPageCursor?: string;
|
|
188
|
+
};
|
|
189
|
+
/**
|
|
190
|
+
* The read output response
|
|
191
|
+
*
|
|
192
|
+
* @generated from message mochabugapis.adapt.automations.v1.ReadOutputResponse
|
|
193
|
+
*/
|
|
194
|
+
export type ReadOutputResponseJson = {
|
|
195
|
+
/**
|
|
196
|
+
* The session information
|
|
197
|
+
*
|
|
198
|
+
* @generated from field: mochabugapis.adapt.automations.v1.Session session = 1;
|
|
199
|
+
*/
|
|
200
|
+
session?: SessionJson;
|
|
201
|
+
/**
|
|
202
|
+
* The outputs from the session, sorted with oldest first and newest last
|
|
203
|
+
*
|
|
204
|
+
* @generated from field: repeated mochabugapis.adapt.automations.v1.Output outputs = 2;
|
|
205
|
+
*/
|
|
206
|
+
outputs?: OutputJson[];
|
|
207
|
+
/**
|
|
208
|
+
* A optional next-page cursor equivalent to the id of the last output
|
|
209
|
+
*
|
|
210
|
+
* @generated from field: optional string next_page_cursor = 3;
|
|
211
|
+
*/
|
|
212
|
+
nextPageCursor?: string;
|
|
213
|
+
};
|
|
214
|
+
/**
|
|
215
|
+
* Describes the message mochabugapis.adapt.automations.v1.ReadOutputResponse.
|
|
216
|
+
* Use `create(ReadOutputResponseSchema)` to create a new message.
|
|
217
|
+
*/
|
|
218
|
+
export declare const ReadOutputResponseSchema: GenMessage<ReadOutputResponse, {
|
|
219
|
+
jsonType: ReadOutputResponseJson;
|
|
220
|
+
}>;
|
|
221
|
+
/**
|
|
222
|
+
* The read URLs request
|
|
223
|
+
* The actual token determines which release it will utilize
|
|
224
|
+
*
|
|
225
|
+
* @generated from message mochabugapis.adapt.automations.v1.ReadUrlsRequest
|
|
226
|
+
*/
|
|
227
|
+
export type ReadUrlsRequest = Message<"mochabugapis.adapt.automations.v1.ReadUrlsRequest"> & {
|
|
228
|
+
/**
|
|
229
|
+
* The automation id you would like to fetch a session for
|
|
230
|
+
*
|
|
231
|
+
* @generated from field: string id = 1;
|
|
232
|
+
*/
|
|
233
|
+
id: string;
|
|
234
|
+
/**
|
|
235
|
+
* An optional page size, if not set, it will default to 100
|
|
236
|
+
*
|
|
237
|
+
* @generated from field: uint32 page_size = 2;
|
|
238
|
+
*/
|
|
239
|
+
pageSize: number;
|
|
240
|
+
/**
|
|
241
|
+
* A sortable time uuid to indicate that that the urls need to be newer than
|
|
242
|
+
* Unset returns everything
|
|
243
|
+
*
|
|
244
|
+
* @generated from field: optional string newer_than = 3;
|
|
245
|
+
*/
|
|
246
|
+
newerThan?: string;
|
|
247
|
+
};
|
|
248
|
+
/**
|
|
249
|
+
* The read URLs request
|
|
250
|
+
* The actual token determines which release it will utilize
|
|
251
|
+
*
|
|
252
|
+
* @generated from message mochabugapis.adapt.automations.v1.ReadUrlsRequest
|
|
253
|
+
*/
|
|
254
|
+
export type ReadUrlsRequestJson = {
|
|
255
|
+
/**
|
|
256
|
+
* The automation id you would like to fetch a session for
|
|
257
|
+
*
|
|
258
|
+
* @generated from field: string id = 1;
|
|
259
|
+
*/
|
|
260
|
+
id?: string;
|
|
261
|
+
/**
|
|
262
|
+
* An optional page size, if not set, it will default to 100
|
|
263
|
+
*
|
|
264
|
+
* @generated from field: uint32 page_size = 2;
|
|
265
|
+
*/
|
|
266
|
+
pageSize?: number;
|
|
267
|
+
/**
|
|
268
|
+
* A sortable time uuid to indicate that that the urls need to be newer than
|
|
269
|
+
* Unset returns everything
|
|
270
|
+
*
|
|
271
|
+
* @generated from field: optional string newer_than = 3;
|
|
272
|
+
*/
|
|
273
|
+
newerThan?: string;
|
|
274
|
+
};
|
|
275
|
+
/**
|
|
276
|
+
* Describes the message mochabugapis.adapt.automations.v1.ReadUrlsRequest.
|
|
277
|
+
* Use `create(ReadUrlsRequestSchema)` to create a new message.
|
|
278
|
+
*/
|
|
279
|
+
export declare const ReadUrlsRequestSchema: GenMessage<ReadUrlsRequest, {
|
|
280
|
+
jsonType: ReadUrlsRequestJson;
|
|
281
|
+
}>;
|
|
282
|
+
/**
|
|
283
|
+
* The read URLs response
|
|
284
|
+
*
|
|
285
|
+
* @generated from message mochabugapis.adapt.automations.v1.ReadUrlsResponse
|
|
286
|
+
*/
|
|
287
|
+
export type ReadUrlsResponse = Message<"mochabugapis.adapt.automations.v1.ReadUrlsResponse"> & {
|
|
288
|
+
/**
|
|
289
|
+
* The session information
|
|
290
|
+
*
|
|
291
|
+
* @generated from field: mochabugapis.adapt.automations.v1.Session session = 1;
|
|
292
|
+
*/
|
|
293
|
+
session?: Session;
|
|
294
|
+
/**
|
|
295
|
+
* The URLs for the session, sorted with oldest first and newest last
|
|
296
|
+
*
|
|
297
|
+
* @generated from field: repeated mochabugapis.adapt.automations.v1.Url urls = 2;
|
|
298
|
+
*/
|
|
299
|
+
urls: Url[];
|
|
300
|
+
/**
|
|
301
|
+
* A optional next-page cursor equivalent to the id of the last output
|
|
302
|
+
*
|
|
303
|
+
* @generated from field: optional string next_page_cursor = 3;
|
|
304
|
+
*/
|
|
305
|
+
nextPageCursor?: string;
|
|
306
|
+
};
|
|
307
|
+
/**
|
|
308
|
+
* The read URLs response
|
|
309
|
+
*
|
|
310
|
+
* @generated from message mochabugapis.adapt.automations.v1.ReadUrlsResponse
|
|
311
|
+
*/
|
|
312
|
+
export type ReadUrlsResponseJson = {
|
|
313
|
+
/**
|
|
314
|
+
* The session information
|
|
315
|
+
*
|
|
316
|
+
* @generated from field: mochabugapis.adapt.automations.v1.Session session = 1;
|
|
317
|
+
*/
|
|
318
|
+
session?: SessionJson;
|
|
319
|
+
/**
|
|
320
|
+
* The URLs for the session, sorted with oldest first and newest last
|
|
321
|
+
*
|
|
322
|
+
* @generated from field: repeated mochabugapis.adapt.automations.v1.Url urls = 2;
|
|
323
|
+
*/
|
|
324
|
+
urls?: UrlJson[];
|
|
325
|
+
/**
|
|
326
|
+
* A optional next-page cursor equivalent to the id of the last output
|
|
327
|
+
*
|
|
328
|
+
* @generated from field: optional string next_page_cursor = 3;
|
|
329
|
+
*/
|
|
330
|
+
nextPageCursor?: string;
|
|
331
|
+
};
|
|
332
|
+
/**
|
|
333
|
+
* Describes the message mochabugapis.adapt.automations.v1.ReadUrlsResponse.
|
|
334
|
+
* Use `create(ReadUrlsResponseSchema)` to create a new message.
|
|
335
|
+
*/
|
|
336
|
+
export declare const ReadUrlsResponseSchema: GenMessage<ReadUrlsResponse, {
|
|
337
|
+
jsonType: ReadUrlsResponseJson;
|
|
338
|
+
}>;
|
|
339
|
+
/**
|
|
340
|
+
* The start session request
|
|
341
|
+
*
|
|
342
|
+
* @generated from message mochabugapis.adapt.automations.v1.StartSessionRequest
|
|
343
|
+
*/
|
|
344
|
+
export type StartSessionRequest = Message<"mochabugapis.adapt.automations.v1.StartSessionRequest"> & {
|
|
345
|
+
/**
|
|
346
|
+
* The automation id to start
|
|
347
|
+
*
|
|
348
|
+
* @generated from field: string id = 1;
|
|
349
|
+
*/
|
|
350
|
+
id: string;
|
|
351
|
+
/**
|
|
352
|
+
* The transmitter to start from (optional, it defaults to the first one, always)
|
|
353
|
+
*
|
|
354
|
+
* @generated from field: optional string transmitter = 2;
|
|
355
|
+
*/
|
|
356
|
+
transmitter?: string;
|
|
357
|
+
/**
|
|
358
|
+
* The signals on the transmitter you wish to start with
|
|
359
|
+
* Make sure that they align to the signals JTD schema
|
|
360
|
+
*
|
|
361
|
+
* @generated from field: map<string, mochabugapis.adapt.graph.SignalData> signals = 3;
|
|
362
|
+
*/
|
|
363
|
+
signals: {
|
|
364
|
+
[key: string]: SignalData;
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
/**
|
|
368
|
+
* The start session request
|
|
369
|
+
*
|
|
370
|
+
* @generated from message mochabugapis.adapt.automations.v1.StartSessionRequest
|
|
371
|
+
*/
|
|
372
|
+
export type StartSessionRequestJson = {
|
|
373
|
+
/**
|
|
374
|
+
* The automation id to start
|
|
375
|
+
*
|
|
376
|
+
* @generated from field: string id = 1;
|
|
377
|
+
*/
|
|
378
|
+
id?: string;
|
|
379
|
+
/**
|
|
380
|
+
* The transmitter to start from (optional, it defaults to the first one, always)
|
|
381
|
+
*
|
|
382
|
+
* @generated from field: optional string transmitter = 2;
|
|
383
|
+
*/
|
|
384
|
+
transmitter?: string;
|
|
385
|
+
/**
|
|
386
|
+
* The signals on the transmitter you wish to start with
|
|
387
|
+
* Make sure that they align to the signals JTD schema
|
|
388
|
+
*
|
|
389
|
+
* @generated from field: map<string, mochabugapis.adapt.graph.SignalData> signals = 3;
|
|
390
|
+
*/
|
|
391
|
+
signals?: {
|
|
392
|
+
[key: string]: SignalDataJson;
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
/**
|
|
396
|
+
* Describes the message mochabugapis.adapt.automations.v1.StartSessionRequest.
|
|
397
|
+
* Use `create(StartSessionRequestSchema)` to create a new message.
|
|
398
|
+
*/
|
|
399
|
+
export declare const StartSessionRequestSchema: GenMessage<StartSessionRequest, {
|
|
400
|
+
jsonType: StartSessionRequestJson;
|
|
401
|
+
}>;
|
|
402
|
+
/**
|
|
403
|
+
* The start session response
|
|
404
|
+
*
|
|
405
|
+
* @generated from message mochabugapis.adapt.automations.v1.StartSessionResponse
|
|
406
|
+
*/
|
|
407
|
+
export type StartSessionResponse = Message<"mochabugapis.adapt.automations.v1.StartSessionResponse"> & {
|
|
408
|
+
/**
|
|
409
|
+
* The access token for the session
|
|
410
|
+
*
|
|
411
|
+
* @generated from field: string token = 1;
|
|
412
|
+
*/
|
|
413
|
+
token: string;
|
|
414
|
+
/**
|
|
415
|
+
* The timestamp when the session expires, if not set, the session never expires (typically the case for long-running stream vertices)
|
|
416
|
+
*
|
|
417
|
+
* @generated from field: optional google.protobuf.Timestamp expires = 2;
|
|
418
|
+
*/
|
|
419
|
+
expires?: Timestamp;
|
|
420
|
+
};
|
|
421
|
+
/**
|
|
422
|
+
* The start session response
|
|
423
|
+
*
|
|
424
|
+
* @generated from message mochabugapis.adapt.automations.v1.StartSessionResponse
|
|
425
|
+
*/
|
|
426
|
+
export type StartSessionResponseJson = {
|
|
427
|
+
/**
|
|
428
|
+
* The access token for the session
|
|
429
|
+
*
|
|
430
|
+
* @generated from field: string token = 1;
|
|
431
|
+
*/
|
|
432
|
+
token?: string;
|
|
433
|
+
/**
|
|
434
|
+
* The timestamp when the session expires, if not set, the session never expires (typically the case for long-running stream vertices)
|
|
435
|
+
*
|
|
436
|
+
* @generated from field: optional google.protobuf.Timestamp expires = 2;
|
|
437
|
+
*/
|
|
438
|
+
expires?: TimestampJson;
|
|
439
|
+
};
|
|
440
|
+
/**
|
|
441
|
+
* Describes the message mochabugapis.adapt.automations.v1.StartSessionResponse.
|
|
442
|
+
* Use `create(StartSessionResponseSchema)` to create a new message.
|
|
443
|
+
*/
|
|
444
|
+
export declare const StartSessionResponseSchema: GenMessage<StartSessionResponse, {
|
|
445
|
+
jsonType: StartSessionResponseJson;
|
|
446
|
+
}>;
|
|
447
|
+
/**
|
|
448
|
+
* The stop session request
|
|
449
|
+
* The actual token determines which release it will utilize
|
|
450
|
+
*
|
|
451
|
+
* @generated from message mochabugapis.adapt.automations.v1.StopSessionRequest
|
|
452
|
+
*/
|
|
453
|
+
export type StopSessionRequest = Message<"mochabugapis.adapt.automations.v1.StopSessionRequest"> & {
|
|
454
|
+
/**
|
|
455
|
+
* The automation id you would like to fetch a session for
|
|
456
|
+
*
|
|
457
|
+
* @generated from field: string id = 1;
|
|
458
|
+
*/
|
|
459
|
+
id: string;
|
|
460
|
+
};
|
|
461
|
+
/**
|
|
462
|
+
* The stop session request
|
|
463
|
+
* The actual token determines which release it will utilize
|
|
464
|
+
*
|
|
465
|
+
* @generated from message mochabugapis.adapt.automations.v1.StopSessionRequest
|
|
466
|
+
*/
|
|
467
|
+
export type StopSessionRequestJson = {
|
|
468
|
+
/**
|
|
469
|
+
* The automation id you would like to fetch a session for
|
|
470
|
+
*
|
|
471
|
+
* @generated from field: string id = 1;
|
|
472
|
+
*/
|
|
473
|
+
id?: string;
|
|
474
|
+
};
|
|
475
|
+
/**
|
|
476
|
+
* Describes the message mochabugapis.adapt.automations.v1.StopSessionRequest.
|
|
477
|
+
* Use `create(StopSessionRequestSchema)` to create a new message.
|
|
478
|
+
*/
|
|
479
|
+
export declare const StopSessionRequestSchema: GenMessage<StopSessionRequest, {
|
|
480
|
+
jsonType: StopSessionRequestJson;
|
|
481
|
+
}>;
|
|
482
|
+
/**
|
|
483
|
+
* The stop session response
|
|
484
|
+
*
|
|
485
|
+
* @generated from message mochabugapis.adapt.automations.v1.StopSessionResponse
|
|
486
|
+
*/
|
|
487
|
+
export type StopSessionResponse = Message<"mochabugapis.adapt.automations.v1.StopSessionResponse"> & {};
|
|
488
|
+
/**
|
|
489
|
+
* The stop session response
|
|
490
|
+
*
|
|
491
|
+
* @generated from message mochabugapis.adapt.automations.v1.StopSessionResponse
|
|
492
|
+
*/
|
|
493
|
+
export type StopSessionResponseJson = {};
|
|
494
|
+
/**
|
|
495
|
+
* Describes the message mochabugapis.adapt.automations.v1.StopSessionResponse.
|
|
496
|
+
* Use `create(StopSessionResponseSchema)` to create a new message.
|
|
497
|
+
*/
|
|
498
|
+
export declare const StopSessionResponseSchema: GenMessage<StopSessionResponse, {
|
|
499
|
+
jsonType: StopSessionResponseJson;
|
|
500
|
+
}>;
|
|
501
|
+
/**
|
|
502
|
+
* The get session request
|
|
503
|
+
*
|
|
504
|
+
* @generated from message mochabugapis.adapt.automations.v1.GetSessionRequest
|
|
505
|
+
*/
|
|
506
|
+
export type GetSessionRequest = Message<"mochabugapis.adapt.automations.v1.GetSessionRequest"> & {
|
|
507
|
+
/**
|
|
508
|
+
* The automation id you would like to fetch a session for
|
|
509
|
+
*
|
|
510
|
+
* @generated from field: string id = 1;
|
|
511
|
+
*/
|
|
512
|
+
id: string;
|
|
513
|
+
};
|
|
514
|
+
/**
|
|
515
|
+
* The get session request
|
|
516
|
+
*
|
|
517
|
+
* @generated from message mochabugapis.adapt.automations.v1.GetSessionRequest
|
|
518
|
+
*/
|
|
519
|
+
export type GetSessionRequestJson = {
|
|
520
|
+
/**
|
|
521
|
+
* The automation id you would like to fetch a session for
|
|
522
|
+
*
|
|
523
|
+
* @generated from field: string id = 1;
|
|
524
|
+
*/
|
|
525
|
+
id?: string;
|
|
526
|
+
};
|
|
527
|
+
/**
|
|
528
|
+
* Describes the message mochabugapis.adapt.automations.v1.GetSessionRequest.
|
|
529
|
+
* Use `create(GetSessionRequestSchema)` to create a new message.
|
|
530
|
+
*/
|
|
531
|
+
export declare const GetSessionRequestSchema: GenMessage<GetSessionRequest, {
|
|
532
|
+
jsonType: GetSessionRequestJson;
|
|
533
|
+
}>;
|
|
534
|
+
/**
|
|
535
|
+
* The get session response
|
|
536
|
+
*
|
|
537
|
+
* @generated from message mochabugapis.adapt.automations.v1.GetSessionResponse
|
|
538
|
+
*/
|
|
539
|
+
export type GetSessionResponse = Message<"mochabugapis.adapt.automations.v1.GetSessionResponse"> & {
|
|
540
|
+
/**
|
|
541
|
+
* The session information
|
|
542
|
+
*
|
|
543
|
+
* @generated from field: mochabugapis.adapt.automations.v1.Session session = 1;
|
|
544
|
+
*/
|
|
545
|
+
session?: Session;
|
|
546
|
+
};
|
|
547
|
+
/**
|
|
548
|
+
* The get session response
|
|
549
|
+
*
|
|
550
|
+
* @generated from message mochabugapis.adapt.automations.v1.GetSessionResponse
|
|
551
|
+
*/
|
|
552
|
+
export type GetSessionResponseJson = {
|
|
553
|
+
/**
|
|
554
|
+
* The session information
|
|
555
|
+
*
|
|
556
|
+
* @generated from field: mochabugapis.adapt.automations.v1.Session session = 1;
|
|
557
|
+
*/
|
|
558
|
+
session?: SessionJson;
|
|
559
|
+
};
|
|
560
|
+
/**
|
|
561
|
+
* Describes the message mochabugapis.adapt.automations.v1.GetSessionResponse.
|
|
562
|
+
* Use `create(GetSessionResponseSchema)` to create a new message.
|
|
563
|
+
*/
|
|
564
|
+
export declare const GetSessionResponseSchema: GenMessage<GetSessionResponse, {
|
|
565
|
+
jsonType: GetSessionResponseJson;
|
|
566
|
+
}>;
|
|
567
|
+
/**
|
|
568
|
+
* Output data from the automation (corresponds to an output vertex instance)
|
|
569
|
+
*
|
|
570
|
+
* @generated from message mochabugapis.adapt.automations.v1.Output
|
|
571
|
+
*/
|
|
572
|
+
export type Output = Message<"mochabugapis.adapt.automations.v1.Output"> & {
|
|
573
|
+
/**
|
|
574
|
+
* The vertex id
|
|
575
|
+
*
|
|
576
|
+
* @generated from field: string vertex = 1;
|
|
577
|
+
*/
|
|
578
|
+
vertex: string;
|
|
579
|
+
/**
|
|
580
|
+
* The fork id, empty if running on the main path
|
|
581
|
+
*
|
|
582
|
+
* @generated from field: string fork = 2;
|
|
583
|
+
*/
|
|
584
|
+
fork: string;
|
|
585
|
+
/**
|
|
586
|
+
* The actual data that has been output from the vertex
|
|
587
|
+
*
|
|
588
|
+
* @generated from field: map<string, mochabugapis.adapt.graph.SignalData> data = 3;
|
|
589
|
+
*/
|
|
590
|
+
data: {
|
|
591
|
+
[key: string]: SignalData;
|
|
592
|
+
};
|
|
593
|
+
/**
|
|
594
|
+
* The timestamp when the output was created
|
|
595
|
+
*
|
|
596
|
+
* @generated from field: google.protobuf.Timestamp created = 4;
|
|
597
|
+
*/
|
|
598
|
+
created?: Timestamp;
|
|
599
|
+
};
|
|
600
|
+
/**
|
|
601
|
+
* Output data from the automation (corresponds to an output vertex instance)
|
|
602
|
+
*
|
|
603
|
+
* @generated from message mochabugapis.adapt.automations.v1.Output
|
|
604
|
+
*/
|
|
605
|
+
export type OutputJson = {
|
|
606
|
+
/**
|
|
607
|
+
* The vertex id
|
|
608
|
+
*
|
|
609
|
+
* @generated from field: string vertex = 1;
|
|
610
|
+
*/
|
|
611
|
+
vertex?: string;
|
|
612
|
+
/**
|
|
613
|
+
* The fork id, empty if running on the main path
|
|
614
|
+
*
|
|
615
|
+
* @generated from field: string fork = 2;
|
|
616
|
+
*/
|
|
617
|
+
fork?: string;
|
|
618
|
+
/**
|
|
619
|
+
* The actual data that has been output from the vertex
|
|
620
|
+
*
|
|
621
|
+
* @generated from field: map<string, mochabugapis.adapt.graph.SignalData> data = 3;
|
|
622
|
+
*/
|
|
623
|
+
data?: {
|
|
624
|
+
[key: string]: SignalDataJson;
|
|
625
|
+
};
|
|
626
|
+
/**
|
|
627
|
+
* The timestamp when the output was created
|
|
628
|
+
*
|
|
629
|
+
* @generated from field: google.protobuf.Timestamp created = 4;
|
|
630
|
+
*/
|
|
631
|
+
created?: TimestampJson;
|
|
632
|
+
};
|
|
633
|
+
/**
|
|
634
|
+
* Describes the message mochabugapis.adapt.automations.v1.Output.
|
|
635
|
+
* Use `create(OutputSchema)` to create a new message.
|
|
636
|
+
*/
|
|
637
|
+
export declare const OutputSchema: GenMessage<Output, {
|
|
638
|
+
jsonType: OutputJson;
|
|
639
|
+
}>;
|
|
640
|
+
/**
|
|
641
|
+
* A representation of a URL
|
|
642
|
+
*
|
|
643
|
+
* @generated from message mochabugapis.adapt.automations.v1.Url
|
|
644
|
+
*/
|
|
645
|
+
export type Url = Message<"mochabugapis.adapt.automations.v1.Url"> & {
|
|
646
|
+
/**
|
|
647
|
+
* The URL
|
|
648
|
+
*
|
|
649
|
+
* @generated from field: string url = 1;
|
|
650
|
+
*/
|
|
651
|
+
url: string;
|
|
652
|
+
/**
|
|
653
|
+
* The fork id, empty if running on the main path
|
|
654
|
+
*
|
|
655
|
+
* @generated from field: string fork = 2;
|
|
656
|
+
*/
|
|
657
|
+
fork: string;
|
|
658
|
+
/**
|
|
659
|
+
* The vertex id that generated the URL
|
|
660
|
+
*
|
|
661
|
+
* @generated from field: string vertex = 3;
|
|
662
|
+
*/
|
|
663
|
+
vertex: string;
|
|
664
|
+
/**
|
|
665
|
+
* Whether or not the URL is done executing
|
|
666
|
+
* The client should only open URLs that are not done
|
|
667
|
+
* Since the processes are generic, it's possible that a process generates multiple URLs in parallel
|
|
668
|
+
* and the client should only open the ones that are not done
|
|
669
|
+
*
|
|
670
|
+
* @generated from field: bool done = 4;
|
|
671
|
+
*/
|
|
672
|
+
done: boolean;
|
|
673
|
+
/**
|
|
674
|
+
* The timestamp when the URL was created
|
|
675
|
+
*
|
|
676
|
+
* @generated from field: google.protobuf.Timestamp created = 5;
|
|
677
|
+
*/
|
|
678
|
+
created?: Timestamp;
|
|
679
|
+
/**
|
|
680
|
+
* The access token to access the node session
|
|
681
|
+
*
|
|
682
|
+
* @generated from field: string token = 6;
|
|
683
|
+
*/
|
|
684
|
+
token: string;
|
|
685
|
+
};
|
|
686
|
+
/**
|
|
687
|
+
* A representation of a URL
|
|
688
|
+
*
|
|
689
|
+
* @generated from message mochabugapis.adapt.automations.v1.Url
|
|
690
|
+
*/
|
|
691
|
+
export type UrlJson = {
|
|
692
|
+
/**
|
|
693
|
+
* The URL
|
|
694
|
+
*
|
|
695
|
+
* @generated from field: string url = 1;
|
|
696
|
+
*/
|
|
697
|
+
url?: string;
|
|
698
|
+
/**
|
|
699
|
+
* The fork id, empty if running on the main path
|
|
700
|
+
*
|
|
701
|
+
* @generated from field: string fork = 2;
|
|
702
|
+
*/
|
|
703
|
+
fork?: string;
|
|
704
|
+
/**
|
|
705
|
+
* The vertex id that generated the URL
|
|
706
|
+
*
|
|
707
|
+
* @generated from field: string vertex = 3;
|
|
708
|
+
*/
|
|
709
|
+
vertex?: string;
|
|
710
|
+
/**
|
|
711
|
+
* Whether or not the URL is done executing
|
|
712
|
+
* The client should only open URLs that are not done
|
|
713
|
+
* Since the processes are generic, it's possible that a process generates multiple URLs in parallel
|
|
714
|
+
* and the client should only open the ones that are not done
|
|
715
|
+
*
|
|
716
|
+
* @generated from field: bool done = 4;
|
|
717
|
+
*/
|
|
718
|
+
done?: boolean;
|
|
719
|
+
/**
|
|
720
|
+
* The timestamp when the URL was created
|
|
721
|
+
*
|
|
722
|
+
* @generated from field: google.protobuf.Timestamp created = 5;
|
|
723
|
+
*/
|
|
724
|
+
created?: TimestampJson;
|
|
725
|
+
/**
|
|
726
|
+
* The access token to access the node session
|
|
727
|
+
*
|
|
728
|
+
* @generated from field: string token = 6;
|
|
729
|
+
*/
|
|
730
|
+
token?: string;
|
|
731
|
+
};
|
|
732
|
+
/**
|
|
733
|
+
* Describes the message mochabugapis.adapt.automations.v1.Url.
|
|
734
|
+
* Use `create(UrlSchema)` to create a new message.
|
|
735
|
+
*/
|
|
736
|
+
export declare const UrlSchema: GenMessage<Url, {
|
|
737
|
+
jsonType: UrlJson;
|
|
738
|
+
}>;
|
|
739
|
+
/**
|
|
740
|
+
* The session information
|
|
741
|
+
*
|
|
742
|
+
* @generated from message mochabugapis.adapt.automations.v1.Session
|
|
743
|
+
*/
|
|
744
|
+
export type Session = Message<"mochabugapis.adapt.automations.v1.Session"> & {
|
|
745
|
+
/**
|
|
746
|
+
* This is the owner's fork id, this can be different than the forks emitting outputs and urls
|
|
747
|
+
*
|
|
748
|
+
* @generated from field: string fork = 1;
|
|
749
|
+
*/
|
|
750
|
+
fork: string;
|
|
751
|
+
/**
|
|
752
|
+
* The status of the session
|
|
753
|
+
*
|
|
754
|
+
* @generated from field: mochabugapis.adapt.automations.v1.Status status = 2;
|
|
755
|
+
*/
|
|
756
|
+
status: Status;
|
|
757
|
+
};
|
|
758
|
+
/**
|
|
759
|
+
* The session information
|
|
760
|
+
*
|
|
761
|
+
* @generated from message mochabugapis.adapt.automations.v1.Session
|
|
762
|
+
*/
|
|
763
|
+
export type SessionJson = {
|
|
764
|
+
/**
|
|
765
|
+
* This is the owner's fork id, this can be different than the forks emitting outputs and urls
|
|
766
|
+
*
|
|
767
|
+
* @generated from field: string fork = 1;
|
|
768
|
+
*/
|
|
769
|
+
fork?: string;
|
|
770
|
+
/**
|
|
771
|
+
* The status of the session
|
|
772
|
+
*
|
|
773
|
+
* @generated from field: mochabugapis.adapt.automations.v1.Status status = 2;
|
|
774
|
+
*/
|
|
775
|
+
status?: StatusJson;
|
|
776
|
+
};
|
|
777
|
+
/**
|
|
778
|
+
* Describes the message mochabugapis.adapt.automations.v1.Session.
|
|
779
|
+
* Use `create(SessionSchema)` to create a new message.
|
|
780
|
+
*/
|
|
781
|
+
export declare const SessionSchema: GenMessage<Session, {
|
|
782
|
+
jsonType: SessionJson;
|
|
783
|
+
}>;
|
|
784
|
+
/**
|
|
785
|
+
* WebsocketMessage wraps all possible message types sent over WebSocket
|
|
786
|
+
*
|
|
787
|
+
* @generated from message mochabugapis.adapt.automations.v1.WebsocketMessage
|
|
788
|
+
*/
|
|
789
|
+
export type WebsocketMessage = Message<"mochabugapis.adapt.automations.v1.WebsocketMessage"> & {
|
|
790
|
+
/**
|
|
791
|
+
* A timesortable uuid for the message
|
|
792
|
+
*
|
|
793
|
+
* @generated from field: string id = 1;
|
|
794
|
+
*/
|
|
795
|
+
id: string;
|
|
796
|
+
/**
|
|
797
|
+
* The actual message, one of the following types
|
|
798
|
+
*
|
|
799
|
+
* @generated from oneof mochabugapis.adapt.automations.v1.WebsocketMessage.message
|
|
800
|
+
*/
|
|
801
|
+
message: {
|
|
802
|
+
/**
|
|
803
|
+
* Output message from a vertex
|
|
804
|
+
*
|
|
805
|
+
* @generated from field: mochabugapis.adapt.automations.v1.Output output = 2;
|
|
806
|
+
*/
|
|
807
|
+
value: Output;
|
|
808
|
+
case: "output";
|
|
809
|
+
} | {
|
|
810
|
+
/**
|
|
811
|
+
* URL message for browser interaction
|
|
812
|
+
*
|
|
813
|
+
* @generated from field: mochabugapis.adapt.automations.v1.Url url = 3;
|
|
814
|
+
*/
|
|
815
|
+
value: Url;
|
|
816
|
+
case: "url";
|
|
817
|
+
} | {
|
|
818
|
+
/**
|
|
819
|
+
* Session status update
|
|
820
|
+
*
|
|
821
|
+
* @generated from field: mochabugapis.adapt.automations.v1.Session session = 4;
|
|
822
|
+
*/
|
|
823
|
+
value: Session;
|
|
824
|
+
case: "session";
|
|
825
|
+
} | {
|
|
826
|
+
case: undefined;
|
|
827
|
+
value?: undefined;
|
|
828
|
+
};
|
|
829
|
+
};
|
|
830
|
+
/**
|
|
831
|
+
* WebsocketMessage wraps all possible message types sent over WebSocket
|
|
832
|
+
*
|
|
833
|
+
* @generated from message mochabugapis.adapt.automations.v1.WebsocketMessage
|
|
834
|
+
*/
|
|
835
|
+
export type WebsocketMessageJson = {
|
|
836
|
+
/**
|
|
837
|
+
* A timesortable uuid for the message
|
|
838
|
+
*
|
|
839
|
+
* @generated from field: string id = 1;
|
|
840
|
+
*/
|
|
841
|
+
id?: string;
|
|
842
|
+
/**
|
|
843
|
+
* Output message from a vertex
|
|
844
|
+
*
|
|
845
|
+
* @generated from field: mochabugapis.adapt.automations.v1.Output output = 2;
|
|
846
|
+
*/
|
|
847
|
+
output?: OutputJson;
|
|
848
|
+
/**
|
|
849
|
+
* URL message for browser interaction
|
|
850
|
+
*
|
|
851
|
+
* @generated from field: mochabugapis.adapt.automations.v1.Url url = 3;
|
|
852
|
+
*/
|
|
853
|
+
url?: UrlJson;
|
|
854
|
+
/**
|
|
855
|
+
* Session status update
|
|
856
|
+
*
|
|
857
|
+
* @generated from field: mochabugapis.adapt.automations.v1.Session session = 4;
|
|
858
|
+
*/
|
|
859
|
+
session?: SessionJson;
|
|
860
|
+
};
|
|
861
|
+
/**
|
|
862
|
+
* Describes the message mochabugapis.adapt.automations.v1.WebsocketMessage.
|
|
863
|
+
* Use `create(WebsocketMessageSchema)` to create a new message.
|
|
864
|
+
*/
|
|
865
|
+
export declare const WebsocketMessageSchema: GenMessage<WebsocketMessage, {
|
|
866
|
+
jsonType: WebsocketMessageJson;
|
|
867
|
+
}>;
|
|
868
|
+
/**
|
|
869
|
+
* The session enum status
|
|
870
|
+
*
|
|
871
|
+
* @generated from enum mochabugapis.adapt.automations.v1.Status
|
|
872
|
+
*/
|
|
873
|
+
export declare enum Status {
|
|
874
|
+
/**
|
|
875
|
+
* Unspecified
|
|
876
|
+
*
|
|
877
|
+
* @generated from enum value: STATUS_UNSPECIFIED = 0;
|
|
878
|
+
*/
|
|
879
|
+
UNSPECIFIED = 0,
|
|
880
|
+
/**
|
|
881
|
+
* The session is running
|
|
882
|
+
*
|
|
883
|
+
* @generated from enum value: STATUS_RUNNING = 1;
|
|
884
|
+
*/
|
|
885
|
+
RUNNING = 1,
|
|
886
|
+
/**
|
|
887
|
+
* The session has been stopped
|
|
888
|
+
*
|
|
889
|
+
* @generated from enum value: STATUS_STOPPED = 2;
|
|
890
|
+
*/
|
|
891
|
+
STOPPED = 2,
|
|
892
|
+
/**
|
|
893
|
+
* The session is being stopped
|
|
894
|
+
*
|
|
895
|
+
* @generated from enum value: STATUS_STOPPING = 3;
|
|
896
|
+
*/
|
|
897
|
+
STOPPING = 3,
|
|
898
|
+
/**
|
|
899
|
+
* The session has been completed
|
|
900
|
+
*
|
|
901
|
+
* @generated from enum value: STATUS_COMPLETED = 4;
|
|
902
|
+
*/
|
|
903
|
+
COMPLETED = 4,
|
|
904
|
+
/**
|
|
905
|
+
* The session has expired
|
|
906
|
+
*
|
|
907
|
+
* @generated from enum value: STATUS_EXPIRED = 5;
|
|
908
|
+
*/
|
|
909
|
+
EXPIRED = 5,
|
|
910
|
+
/**
|
|
911
|
+
* The session has been errored (errors during the runtime)
|
|
912
|
+
*
|
|
913
|
+
* @generated from enum value: STATUS_ERRORED = 6;
|
|
914
|
+
*/
|
|
915
|
+
ERRORED = 6,
|
|
916
|
+
/**
|
|
917
|
+
* The owner is getting delegated to another owner
|
|
918
|
+
*
|
|
919
|
+
* @generated from enum value: STATUS_DELEGATING = 7;
|
|
920
|
+
*/
|
|
921
|
+
DELEGATING = 7,
|
|
922
|
+
/**
|
|
923
|
+
* The delegation is complete, the owner of this session cannot access it anymore
|
|
924
|
+
*
|
|
925
|
+
* @generated from enum value: STATUS_DELEGATED = 8;
|
|
926
|
+
*/
|
|
927
|
+
DELEGATED = 8
|
|
928
|
+
}
|
|
929
|
+
/**
|
|
930
|
+
* The session enum status
|
|
931
|
+
*
|
|
932
|
+
* @generated from enum mochabugapis.adapt.automations.v1.Status
|
|
933
|
+
*/
|
|
934
|
+
export type StatusJson = "STATUS_UNSPECIFIED" | "STATUS_RUNNING" | "STATUS_STOPPED" | "STATUS_STOPPING" | "STATUS_COMPLETED" | "STATUS_EXPIRED" | "STATUS_ERRORED" | "STATUS_DELEGATING" | "STATUS_DELEGATED";
|
|
935
|
+
/**
|
|
936
|
+
* Describes the enum mochabugapis.adapt.automations.v1.Status.
|
|
937
|
+
*/
|
|
938
|
+
export declare const StatusSchema: GenEnum<Status, StatusJson>;
|
|
939
|
+
/**
|
|
940
|
+
* A service that provides automation functionality.
|
|
941
|
+
*
|
|
942
|
+
* @generated from service mochabugapis.adapt.automations.v1.AutomationService
|
|
943
|
+
*/
|
|
944
|
+
export declare const AutomationService: GenService<{
|
|
945
|
+
/**
|
|
946
|
+
* Start a session of the specified automation
|
|
947
|
+
*
|
|
948
|
+
* @generated from rpc mochabugapis.adapt.automations.v1.AutomationService.StartSession
|
|
949
|
+
*/
|
|
950
|
+
startSession: {
|
|
951
|
+
methodKind: "unary";
|
|
952
|
+
input: typeof StartSessionRequestSchema;
|
|
953
|
+
output: typeof StartSessionResponseSchema;
|
|
954
|
+
};
|
|
955
|
+
/**
|
|
956
|
+
* Stop a specific session
|
|
957
|
+
*
|
|
958
|
+
* @generated from rpc mochabugapis.adapt.automations.v1.AutomationService.StopSession
|
|
959
|
+
*/
|
|
960
|
+
stopSession: {
|
|
961
|
+
methodKind: "unary";
|
|
962
|
+
input: typeof StopSessionRequestSchema;
|
|
963
|
+
output: typeof StopSessionResponseSchema;
|
|
964
|
+
};
|
|
965
|
+
/**
|
|
966
|
+
* Inherit a session
|
|
967
|
+
*
|
|
968
|
+
* @generated from rpc mochabugapis.adapt.automations.v1.AutomationService.InheritSession
|
|
969
|
+
*/
|
|
970
|
+
inheritSession: {
|
|
971
|
+
methodKind: "unary";
|
|
972
|
+
input: typeof InheritSessionRequestSchema;
|
|
973
|
+
output: typeof InheritSessionResponseSchema;
|
|
974
|
+
};
|
|
975
|
+
/**
|
|
976
|
+
* Get session information
|
|
977
|
+
*
|
|
978
|
+
* @generated from rpc mochabugapis.adapt.automations.v1.AutomationService.GetSession
|
|
979
|
+
*/
|
|
980
|
+
getSession: {
|
|
981
|
+
methodKind: "unary";
|
|
982
|
+
input: typeof GetSessionRequestSchema;
|
|
983
|
+
output: typeof GetSessionResponseSchema;
|
|
984
|
+
};
|
|
985
|
+
/**
|
|
986
|
+
* Read the output from the session
|
|
987
|
+
*
|
|
988
|
+
* @generated from rpc mochabugapis.adapt.automations.v1.AutomationService.ReadOutput
|
|
989
|
+
*/
|
|
990
|
+
readOutput: {
|
|
991
|
+
methodKind: "unary";
|
|
992
|
+
input: typeof ReadOutputRequestSchema;
|
|
993
|
+
output: typeof ReadOutputResponseSchema;
|
|
994
|
+
};
|
|
995
|
+
/**
|
|
996
|
+
* Read URLs for the session for browser-based clients
|
|
997
|
+
*
|
|
998
|
+
* @generated from rpc mochabugapis.adapt.automations.v1.AutomationService.ReadUrls
|
|
999
|
+
*/
|
|
1000
|
+
readUrls: {
|
|
1001
|
+
methodKind: "unary";
|
|
1002
|
+
input: typeof ReadUrlsRequestSchema;
|
|
1003
|
+
output: typeof ReadUrlsResponseSchema;
|
|
1004
|
+
};
|
|
1005
|
+
}>;
|
|
1006
|
+
//# sourceMappingURL=automations_pb.d.ts.map
|