@mochabug/adaptkit 0.1.0-alpha.4 → 0.1.0-alpha.8
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/bin/gen/{adapt/apis → mochabug/adapt}/plugins/v1/plugins.client.d.ts +4 -4
- package/bin/gen/mochabug/adapt/plugins/v1/plugins.client.d.ts.map +1 -0
- package/bin/gen/{adapt/apis → mochabug/adapt}/plugins/v1/plugins.d.ts +99 -109
- package/bin/gen/mochabug/adapt/plugins/v1/plugins.d.ts.map +1 -0
- package/bin/index.js +131 -195
- package/bin/index.js.map +1 -1
- package/package.json +10 -10
- package/bin/gen/adapt/apis/plugins/v1/plugins.client.d.ts.map +0 -1
- package/bin/gen/adapt/apis/plugins/v1/plugins.d.ts.map +0 -1
|
@@ -7,7 +7,7 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
|
7
7
|
/**
|
|
8
8
|
* PluginService provides a service for uploading a plugin.
|
|
9
9
|
*
|
|
10
|
-
* @generated from protobuf service adapt.
|
|
10
|
+
* @generated from protobuf service mochabug.adapt.plugins.v1.PluginService
|
|
11
11
|
*/
|
|
12
12
|
export interface IPluginServiceClient {
|
|
13
13
|
/**
|
|
@@ -16,14 +16,14 @@ export interface IPluginServiceClient {
|
|
|
16
16
|
* server will respond with a single UploadPluginResponse after processing all
|
|
17
17
|
* requests.
|
|
18
18
|
*
|
|
19
|
-
* @generated from protobuf rpc: UploadPlugin(stream adapt.
|
|
19
|
+
* @generated from protobuf rpc: UploadPlugin(stream mochabug.adapt.plugins.v1.UploadPluginRequest) returns (mochabug.adapt.plugins.v1.UploadPluginResponse);
|
|
20
20
|
*/
|
|
21
21
|
uploadPlugin(options?: RpcOptions): ClientStreamingCall<UploadPluginRequest, UploadPluginResponse>;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* PluginService provides a service for uploading a plugin.
|
|
25
25
|
*
|
|
26
|
-
* @generated from protobuf service adapt.
|
|
26
|
+
* @generated from protobuf service mochabug.adapt.plugins.v1.PluginService
|
|
27
27
|
*/
|
|
28
28
|
export declare class PluginServiceClient implements IPluginServiceClient, ServiceInfo {
|
|
29
29
|
private readonly _transport;
|
|
@@ -39,7 +39,7 @@ export declare class PluginServiceClient implements IPluginServiceClient, Servic
|
|
|
39
39
|
* server will respond with a single UploadPluginResponse after processing all
|
|
40
40
|
* requests.
|
|
41
41
|
*
|
|
42
|
-
* @generated from protobuf rpc: UploadPlugin(stream adapt.
|
|
42
|
+
* @generated from protobuf rpc: UploadPlugin(stream mochabug.adapt.plugins.v1.UploadPluginRequest) returns (mochabug.adapt.plugins.v1.UploadPluginResponse);
|
|
43
43
|
*/
|
|
44
44
|
uploadPlugin(options?: RpcOptions): ClientStreamingCall<UploadPluginRequest, UploadPluginResponse>;
|
|
45
45
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugins.client.d.ts","sourceRoot":"","sources":["../../../../../../src/gen/mochabug/adapt/plugins/v1/plugins.client.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAG5D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC3D;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;;;;OAOG;IACH,YAAY,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,mBAAmB,CAAC,mBAAmB,EAAE,oBAAoB,CAAC,CAAC;CACtG;AACD;;;;GAIG;AACH,qBAAa,mBAAoB,YAAW,oBAAoB,EAAE,WAAW;IAI7D,OAAO,CAAC,QAAQ,CAAC,UAAU;IAHvC,QAAQ,SAA0B;IAClC,OAAO,4DAAyB;IAChC,OAAO;;MAAyB;gBACH,UAAU,EAAE,YAAY;IAErD;;;;;;;OAOG;IACH,YAAY,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,mBAAmB,CAAC,mBAAmB,EAAE,oBAAoB,CAAC;CAIrG"}
|
|
@@ -10,7 +10,7 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|
|
10
10
|
* RPC. The client sends a series of UploadPluginRequest messages containing
|
|
11
11
|
* plugin data, starting with a manifest and followed by one or more files.
|
|
12
12
|
*
|
|
13
|
-
* @generated from protobuf message adapt.
|
|
13
|
+
* @generated from protobuf message mochabug.adapt.plugins.v1.UploadPluginRequest
|
|
14
14
|
*/
|
|
15
15
|
export interface UploadPluginRequest {
|
|
16
16
|
/**
|
|
@@ -22,7 +22,7 @@ export interface UploadPluginRequest {
|
|
|
22
22
|
* 'manifest' is the Manifest describing the plugin.
|
|
23
23
|
* It must be the first message in the stream.
|
|
24
24
|
*
|
|
25
|
-
* @generated from protobuf field: adapt.
|
|
25
|
+
* @generated from protobuf field: mochabug.adapt.plugins.v1.Manifest manifest = 1;
|
|
26
26
|
*/
|
|
27
27
|
manifest: Manifest;
|
|
28
28
|
} | {
|
|
@@ -31,7 +31,7 @@ export interface UploadPluginRequest {
|
|
|
31
31
|
* 'file' is a File contained within the plugin.
|
|
32
32
|
* It follows the manifest in the stream.
|
|
33
33
|
*
|
|
34
|
-
* @generated from protobuf field: adapt.
|
|
34
|
+
* @generated from protobuf field: mochabug.adapt.plugins.v1.File file = 2;
|
|
35
35
|
*/
|
|
36
36
|
file: File;
|
|
37
37
|
} | {
|
|
@@ -43,14 +43,14 @@ export interface UploadPluginRequest {
|
|
|
43
43
|
* RPC. The server sends a single CreatePluginResponse after successfully
|
|
44
44
|
* processing all UploadPluginResponse messages from the client.
|
|
45
45
|
*
|
|
46
|
-
* @generated from protobuf message adapt.
|
|
46
|
+
* @generated from protobuf message mochabug.adapt.plugins.v1.UploadPluginResponse
|
|
47
47
|
*/
|
|
48
48
|
export interface UploadPluginResponse {
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
51
|
* File represents a file within a plugin package.
|
|
52
52
|
*
|
|
53
|
-
* @generated from protobuf message adapt.
|
|
53
|
+
* @generated from protobuf message mochabug.adapt.plugins.v1.File
|
|
54
54
|
*/
|
|
55
55
|
export interface File {
|
|
56
56
|
/**
|
|
@@ -78,16 +78,16 @@ export interface File {
|
|
|
78
78
|
/**
|
|
79
79
|
* Manifest describes a plugin and its properties.
|
|
80
80
|
*
|
|
81
|
-
* The ES module names and entry points follow a convention for the
|
|
82
|
-
*
|
|
83
|
-
* - export {<vertex-name>InternalConfigurator} for the internal endpoint of the
|
|
84
|
-
* configurator
|
|
85
|
-
* - export {<vertex-name>ExternalConfigurator} for the external endpoint of the
|
|
86
|
-
* configurator
|
|
81
|
+
* The ES module names and entry points follow a convention for the executor_esm and
|
|
82
|
+
* configurator_esm files:
|
|
83
|
+
* - export {<vertex-name>InternalConfigurator} for the internal endpoint of the
|
|
84
|
+
* vertex configurator
|
|
85
|
+
* - export {<vertex-name>ExternalConfigurator} for the external endpoint of the
|
|
86
|
+
* vertex configurator
|
|
87
87
|
* - export {<vertex-name>InternalExecutor} for the internal endpoint of the
|
|
88
|
-
* vertex
|
|
88
|
+
* vertex executor
|
|
89
89
|
* - export {<vertex-name>ExternalExecutor} for the external endpoint of the
|
|
90
|
-
* vertex
|
|
90
|
+
* vertex executor
|
|
91
91
|
*
|
|
92
92
|
* Security considerations: The platform ensures that secrets and certificates
|
|
93
93
|
* are stored and transmitted securely.
|
|
@@ -95,7 +95,7 @@ export interface File {
|
|
|
95
95
|
* *** Plugin authors must also ensure that their implementations
|
|
96
96
|
* handle sensitive data appropriately! ***
|
|
97
97
|
*
|
|
98
|
-
* @generated from protobuf message adapt.
|
|
98
|
+
* @generated from protobuf message mochabug.adapt.plugins.v1.Manifest
|
|
99
99
|
*/
|
|
100
100
|
export interface Manifest {
|
|
101
101
|
/**
|
|
@@ -209,7 +209,7 @@ export interface Manifest {
|
|
|
209
209
|
*/
|
|
210
210
|
logo?: string;
|
|
211
211
|
/**
|
|
212
|
-
* '
|
|
212
|
+
* 'executor_esm' is the path to the executor ES module file.
|
|
213
213
|
*
|
|
214
214
|
* Restrictions:
|
|
215
215
|
* - Must be a valid Unix file path.
|
|
@@ -217,11 +217,11 @@ export interface Manifest {
|
|
|
217
217
|
* - Length must be less than 4096 characters.
|
|
218
218
|
* - Supported file formats: .js, .mjs
|
|
219
219
|
*
|
|
220
|
-
* @generated from protobuf field: string
|
|
220
|
+
* @generated from protobuf field: string executor_esm = 10;
|
|
221
221
|
*/
|
|
222
|
-
|
|
222
|
+
executorEsm: string;
|
|
223
223
|
/**
|
|
224
|
-
* '
|
|
224
|
+
* 'configurator_esm' is an optional path to the configurator ES module file.
|
|
225
225
|
*
|
|
226
226
|
* Restrictions:
|
|
227
227
|
* - Must be a valid Unix file path.
|
|
@@ -230,12 +230,12 @@ export interface Manifest {
|
|
|
230
230
|
* - Supported file formats: .js, .mjs
|
|
231
231
|
* - Required if the 'config' property is set for any global or vertex.
|
|
232
232
|
*
|
|
233
|
-
* @generated from protobuf field: optional string
|
|
233
|
+
* @generated from protobuf field: optional string configurator_esm = 11;
|
|
234
234
|
*/
|
|
235
|
-
|
|
235
|
+
configuratorEsm?: string;
|
|
236
236
|
/**
|
|
237
237
|
* 'assets_dir' is an optional directory containing all static assets
|
|
238
|
-
* available to the
|
|
238
|
+
* available to the plugin.
|
|
239
239
|
*
|
|
240
240
|
* Restrictions:
|
|
241
241
|
* - Must be a valid Unix directory path.
|
|
@@ -246,18 +246,34 @@ export interface Manifest {
|
|
|
246
246
|
*/
|
|
247
247
|
assetsDir?: string;
|
|
248
248
|
/**
|
|
249
|
-
* '
|
|
249
|
+
* 'default_config' is an field that contains
|
|
250
|
+
* a Unix file path.
|
|
251
|
+
*
|
|
252
|
+
* Security implications:
|
|
253
|
+
* - Ensure that the file path points to a trusted location.
|
|
254
|
+
* - Validate and sanitize the JSON string before using it in your
|
|
255
|
+
* application.
|
|
256
|
+
*
|
|
257
|
+
* Restrictions:
|
|
258
|
+
* 1. a Unix file path:
|
|
259
|
+
* - Must match the ECMA regex: ^/[^/\0]*(/[^/\0]+)*[^/]$
|
|
260
|
+
* - Length must be less than 4096 characters.
|
|
261
|
+
* - Allowed format: .json
|
|
262
|
+
* 2. We always require a default config
|
|
263
|
+
* 3. plugin.cue#PluginConfig must validate the config
|
|
264
|
+
* 4. This field is required if any Vertex is requiring a plugin config
|
|
250
265
|
*
|
|
251
|
-
*
|
|
266
|
+
*
|
|
267
|
+
* @generated from protobuf field: optional string default_config = 13;
|
|
252
268
|
*/
|
|
253
|
-
|
|
269
|
+
defaultConfig?: string;
|
|
254
270
|
/**
|
|
255
271
|
* 'vertices' is a list of vertices that constitute the plugin.
|
|
256
272
|
*
|
|
257
273
|
* Restrictions:
|
|
258
274
|
* - The count must be greater than 0 and less than or equal to 100.
|
|
259
275
|
*
|
|
260
|
-
* @generated from protobuf field: repeated adapt.
|
|
276
|
+
* @generated from protobuf field: repeated mochabug.adapt.plugins.v1.Vertex vertices = 14;
|
|
261
277
|
*/
|
|
262
278
|
vertices: Vertex[];
|
|
263
279
|
/**
|
|
@@ -267,7 +283,7 @@ export interface Manifest {
|
|
|
267
283
|
* Restrictions:
|
|
268
284
|
* - Must have between 0 and 10 user secrets, inclusive.
|
|
269
285
|
*
|
|
270
|
-
* @generated from protobuf field: repeated adapt.
|
|
286
|
+
* @generated from protobuf field: repeated mochabug.adapt.plugins.v1.Secret user_secrets = 15;
|
|
271
287
|
*/
|
|
272
288
|
userSecrets: Secret[];
|
|
273
289
|
/**
|
|
@@ -278,7 +294,7 @@ export interface Manifest {
|
|
|
278
294
|
* Restrictions:
|
|
279
295
|
* - Must have between 0 and 5 user mTLS certificates, inclusive.
|
|
280
296
|
*
|
|
281
|
-
* @generated from protobuf field: repeated adapt.
|
|
297
|
+
* @generated from protobuf field: repeated mochabug.adapt.plugins.v1.MTLSService user_mtls = 16;
|
|
282
298
|
*/
|
|
283
299
|
userMtls: MTLSService[];
|
|
284
300
|
/**
|
|
@@ -288,7 +304,7 @@ export interface Manifest {
|
|
|
288
304
|
* Restrictions:
|
|
289
305
|
* - Must have between 0 and 5 plugin mTLS certificates, inclusive.
|
|
290
306
|
*
|
|
291
|
-
* @generated from protobuf field: repeated adapt.
|
|
307
|
+
* @generated from protobuf field: repeated mochabug.adapt.plugins.v1.MTLSService plugin_mtls = 17;
|
|
292
308
|
*/
|
|
293
309
|
pluginMtls: MTLSService[];
|
|
294
310
|
/**
|
|
@@ -296,7 +312,7 @@ export interface Manifest {
|
|
|
296
312
|
* The platform ensures secure storage and transmission of secrets.
|
|
297
313
|
* These variables are set by the owner of the plugin.
|
|
298
314
|
*
|
|
299
|
-
* @generated from protobuf field: repeated adapt.
|
|
315
|
+
* @generated from protobuf field: repeated mochabug.adapt.plugins.v1.Secret plugin_secrets = 18;
|
|
300
316
|
*/
|
|
301
317
|
pluginSecrets: Secret[];
|
|
302
318
|
/**
|
|
@@ -304,7 +320,7 @@ export interface Manifest {
|
|
|
304
320
|
* OAuth2 parameters are specified in the platform, and the service name is
|
|
305
321
|
* used as an identifier to fetch the access token from the API.
|
|
306
322
|
*
|
|
307
|
-
* @generated from protobuf field: repeated adapt.
|
|
323
|
+
* @generated from protobuf field: repeated mochabug.adapt.plugins.v1.OAuth2Service oauth2 = 19;
|
|
308
324
|
*/
|
|
309
325
|
oauth2: OAuth2Service[];
|
|
310
326
|
}
|
|
@@ -314,7 +330,7 @@ export interface Manifest {
|
|
|
314
330
|
* between client and server by authenticating both parties and encrypting the
|
|
315
331
|
* communication.
|
|
316
332
|
*
|
|
317
|
-
* @generated from protobuf message adapt.
|
|
333
|
+
* @generated from protobuf message mochabug.adapt.plugins.v1.MTLSService
|
|
318
334
|
*/
|
|
319
335
|
export interface MTLSService {
|
|
320
336
|
/**
|
|
@@ -381,7 +397,7 @@ export interface MTLSService {
|
|
|
381
397
|
/**
|
|
382
398
|
* OAuth2Service defines the OAuth2 configuration required for a plugin.
|
|
383
399
|
*
|
|
384
|
-
* @generated from protobuf message adapt.
|
|
400
|
+
* @generated from protobuf message mochabug.adapt.plugins.v1.OAuth2Service
|
|
385
401
|
*/
|
|
386
402
|
export interface OAuth2Service {
|
|
387
403
|
/**
|
|
@@ -408,7 +424,7 @@ export interface OAuth2Service {
|
|
|
408
424
|
/**
|
|
409
425
|
* 'grant_type' specifies the OAuth2 grant type to be used.
|
|
410
426
|
*
|
|
411
|
-
* @generated from protobuf field: adapt.
|
|
427
|
+
* @generated from protobuf field: mochabug.adapt.plugins.v1.OAuth2Service.GrantType grant_type = 3;
|
|
412
428
|
*/
|
|
413
429
|
grantType: OAuth2Service_GrantType;
|
|
414
430
|
/**
|
|
@@ -438,7 +454,7 @@ export interface OAuth2Service {
|
|
|
438
454
|
/**
|
|
439
455
|
* GrantType represents the supported OAuth2 grant types.
|
|
440
456
|
*
|
|
441
|
-
* @generated from protobuf enum adapt.
|
|
457
|
+
* @generated from protobuf enum mochabug.adapt.plugins.v1.OAuth2Service.GrantType
|
|
442
458
|
*/
|
|
443
459
|
export declare enum OAuth2Service_GrantType {
|
|
444
460
|
/**
|
|
@@ -467,7 +483,7 @@ export declare enum OAuth2Service_GrantType {
|
|
|
467
483
|
* securely by the platform. Plugins should never require secrets themselves to
|
|
468
484
|
* ensure security.
|
|
469
485
|
*
|
|
470
|
-
* @generated from protobuf message adapt.
|
|
486
|
+
* @generated from protobuf message mochabug.adapt.plugins.v1.Secret
|
|
471
487
|
*/
|
|
472
488
|
export interface Secret {
|
|
473
489
|
/**
|
|
@@ -512,67 +528,25 @@ export interface Secret {
|
|
|
512
528
|
*/
|
|
513
529
|
description?: string;
|
|
514
530
|
}
|
|
515
|
-
/**
|
|
516
|
-
* Config represents the configuration settings for a plugin.
|
|
517
|
-
*
|
|
518
|
-
* @generated from protobuf message adapt.apis.plugins.v1.Config
|
|
519
|
-
*/
|
|
520
|
-
export interface Config {
|
|
521
|
-
/**
|
|
522
|
-
* 'schema' is a CUE schema on how the config looks like
|
|
523
|
-
*
|
|
524
|
-
* Restrictions:
|
|
525
|
-
* a Unix file path:
|
|
526
|
-
* - Must match the ECMA regex: ^/[^/\0]*(/[^/\0]+)*[^/]$
|
|
527
|
-
* - Length must be less than 4096 characters.
|
|
528
|
-
* - Allowed format: .cue
|
|
529
|
-
* plugin.cue#VertexConfig must subsume the schema if vertex, otherwise
|
|
530
|
-
* plugin.cue#PluginConfig
|
|
531
|
-
* If the schema is not present, we assume that plugin.cue#VertexConfig if
|
|
532
|
-
* vertex otherwise plugin.cue#PluginConfig is the schema
|
|
533
|
-
*
|
|
534
|
-
* @generated from protobuf field: optional string schema = 1;
|
|
535
|
-
*/
|
|
536
|
-
schema?: string;
|
|
537
|
-
/**
|
|
538
|
-
* 'default_config' is an field that contains
|
|
539
|
-
* a Unix file path.
|
|
540
|
-
*
|
|
541
|
-
* Security implications:
|
|
542
|
-
* - Ensure that the file path points to a trusted location.
|
|
543
|
-
* - Validate and sanitize the JSON string before using it in your
|
|
544
|
-
* application.
|
|
545
|
-
*
|
|
546
|
-
* Restrictions:
|
|
547
|
-
* 1. a Unix file path:
|
|
548
|
-
* - Must match the ECMA regex: ^/[^/\0]*(/[^/\0]+)*[^/]$
|
|
549
|
-
* - Length must be less than 4096 characters.
|
|
550
|
-
* - Allowed format: .json
|
|
551
|
-
* 2. We always require a defualt config
|
|
552
|
-
*
|
|
553
|
-
* @generated from protobuf field: string default_config = 2;
|
|
554
|
-
*/
|
|
555
|
-
defaultConfig: string;
|
|
556
|
-
}
|
|
557
531
|
/**
|
|
558
532
|
* Vertex represents a graph vertex that defines a plugin.
|
|
559
|
-
* The ES module names and entry points follow a convention for the
|
|
560
|
-
*
|
|
533
|
+
* The ES module names and entry points follow a convention for the executor_esm and
|
|
534
|
+
* configurator_esm files:
|
|
561
535
|
* - export {<vertex-name>InternalConfigurator} for the internal endpoint of the
|
|
562
536
|
* vertex configurator
|
|
563
537
|
* - export {<vertex-name>ExternalConfigurator} for the external endpoint of the
|
|
564
538
|
* vertex configurator
|
|
565
539
|
* - export {<vertex-name>InternalExecutor} for the internal endpoint of the
|
|
566
|
-
* vertex
|
|
540
|
+
* vertex executor
|
|
567
541
|
* - export {<vertex-name>ExternalExecutor} for the external endpoint of the
|
|
568
|
-
* vertex
|
|
542
|
+
* vertex executor
|
|
569
543
|
*
|
|
570
544
|
*
|
|
571
545
|
* Note: Be aware of potential security implications when dealing with
|
|
572
546
|
* user-provided data, such as file paths, and ensure proper input validation
|
|
573
547
|
* and sanitization.
|
|
574
548
|
*
|
|
575
|
-
* @generated from protobuf message adapt.
|
|
549
|
+
* @generated from protobuf message mochabug.adapt.plugins.v1.Vertex
|
|
576
550
|
*/
|
|
577
551
|
export interface Vertex {
|
|
578
552
|
/**
|
|
@@ -632,42 +606,68 @@ export interface Vertex {
|
|
|
632
606
|
* Restrictions:
|
|
633
607
|
* - Must not be VERTEX_TYPE_UNSPECIFIED.
|
|
634
608
|
*
|
|
635
|
-
* @generated from protobuf field: adapt.
|
|
609
|
+
* @generated from protobuf field: mochabug.adapt.plugins.v1.Vertex.VertexType type = 5;
|
|
636
610
|
*/
|
|
637
611
|
type: Vertex_VertexType;
|
|
638
612
|
/**
|
|
639
|
-
* '
|
|
613
|
+
* 'default_config' is an field that contains
|
|
614
|
+
* a Unix file path.
|
|
615
|
+
*
|
|
616
|
+
* Security implications:
|
|
617
|
+
* - Ensure that the file path points to a trusted location.
|
|
618
|
+
* - Validate and sanitize the JSON string before using it in your
|
|
619
|
+
* application.
|
|
620
|
+
*
|
|
621
|
+
* Restrictions:
|
|
622
|
+
* 1. a Unix file path:
|
|
623
|
+
* - Must match the ECMA regex: ^/[^/\0]*(/[^/\0]+)*[^/]$
|
|
624
|
+
* - Length must be less than 4096 characters.
|
|
625
|
+
* - Allowed format: .json
|
|
626
|
+
* 2. We always require a default config
|
|
627
|
+
* 3. plugin.cue#VertexConfig must validate the config
|
|
628
|
+
*
|
|
629
|
+
*
|
|
630
|
+
* @generated from protobuf field: string default_config = 6;
|
|
631
|
+
*/
|
|
632
|
+
defaultConfig: string;
|
|
633
|
+
/**
|
|
634
|
+
* 'has_configurator' is a field to indicate whether or not
|
|
635
|
+
* the vertex has a configurator. That is: if it exports in the configurator_esm:
|
|
636
|
+
* - export {<vertex-name>InternalConfigurator} for the internal endpoint of the
|
|
637
|
+
* vertex configurator
|
|
638
|
+
* - export {<vertex-name>ExternalConfigurator} for the external endpoint of the
|
|
639
|
+
* vertex configurator
|
|
640
640
|
*
|
|
641
|
-
* @generated from protobuf field:
|
|
641
|
+
* @generated from protobuf field: bool has_configurator = 7;
|
|
642
642
|
*/
|
|
643
|
-
|
|
643
|
+
hasConfigurator: boolean;
|
|
644
644
|
/**
|
|
645
645
|
* 'cron_interval' defines the interval in milliseconds at which the cron
|
|
646
646
|
* trigger is fired.
|
|
647
647
|
*
|
|
648
648
|
* Restrictions:
|
|
649
|
-
* - Must be set for a VERTEX_TYPE_CRON_TRIGGER without a
|
|
649
|
+
* - Must be set for a VERTEX_TYPE_CRON_TRIGGER without a configurator ESM.
|
|
650
650
|
* - Must be greater than 10 ms.
|
|
651
651
|
* - The value is ignored for all other trigger types.
|
|
652
652
|
*
|
|
653
653
|
* Implications:
|
|
654
654
|
* - Setting an extremely low interval value may utilize a lot of resources
|
|
655
655
|
*
|
|
656
|
-
* @generated from protobuf field: optional uint32 cron_interval =
|
|
656
|
+
* @generated from protobuf field: optional uint32 cron_interval = 8;
|
|
657
657
|
*/
|
|
658
658
|
cronInterval?: number;
|
|
659
659
|
/**
|
|
660
660
|
* 'require_plugin_config' indicates whether the vertex requires plugin
|
|
661
661
|
* configuration. Defaults to false
|
|
662
662
|
*
|
|
663
|
-
* @generated from protobuf field: optional bool require_plugin_config =
|
|
663
|
+
* @generated from protobuf field: optional bool require_plugin_config = 9;
|
|
664
664
|
*/
|
|
665
665
|
requirePluginConfig?: boolean;
|
|
666
666
|
}
|
|
667
667
|
/**
|
|
668
668
|
* VertexType represents the type of a vertex.
|
|
669
669
|
*
|
|
670
|
-
* @generated from protobuf enum adapt.
|
|
670
|
+
* @generated from protobuf enum mochabug.adapt.plugins.v1.Vertex.VertexType
|
|
671
671
|
*/
|
|
672
672
|
export declare enum Vertex_VertexType {
|
|
673
673
|
/**
|
|
@@ -716,7 +716,7 @@ declare class UploadPluginRequest$Type extends MessageType<UploadPluginRequest>
|
|
|
716
716
|
internalBinaryWrite(message: UploadPluginRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
717
717
|
}
|
|
718
718
|
/**
|
|
719
|
-
* @generated MessageType for protobuf message adapt.
|
|
719
|
+
* @generated MessageType for protobuf message mochabug.adapt.plugins.v1.UploadPluginRequest
|
|
720
720
|
*/
|
|
721
721
|
export declare const UploadPluginRequest: UploadPluginRequest$Type;
|
|
722
722
|
declare class UploadPluginResponse$Type extends MessageType<UploadPluginResponse> {
|
|
@@ -726,7 +726,7 @@ declare class UploadPluginResponse$Type extends MessageType<UploadPluginResponse
|
|
|
726
726
|
internalBinaryWrite(message: UploadPluginResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
727
727
|
}
|
|
728
728
|
/**
|
|
729
|
-
* @generated MessageType for protobuf message adapt.
|
|
729
|
+
* @generated MessageType for protobuf message mochabug.adapt.plugins.v1.UploadPluginResponse
|
|
730
730
|
*/
|
|
731
731
|
export declare const UploadPluginResponse: UploadPluginResponse$Type;
|
|
732
732
|
declare class File$Type extends MessageType<File> {
|
|
@@ -736,7 +736,7 @@ declare class File$Type extends MessageType<File> {
|
|
|
736
736
|
internalBinaryWrite(message: File, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
737
737
|
}
|
|
738
738
|
/**
|
|
739
|
-
* @generated MessageType for protobuf message adapt.
|
|
739
|
+
* @generated MessageType for protobuf message mochabug.adapt.plugins.v1.File
|
|
740
740
|
*/
|
|
741
741
|
export declare const File: File$Type;
|
|
742
742
|
declare class Manifest$Type extends MessageType<Manifest> {
|
|
@@ -746,7 +746,7 @@ declare class Manifest$Type extends MessageType<Manifest> {
|
|
|
746
746
|
internalBinaryWrite(message: Manifest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
747
747
|
}
|
|
748
748
|
/**
|
|
749
|
-
* @generated MessageType for protobuf message adapt.
|
|
749
|
+
* @generated MessageType for protobuf message mochabug.adapt.plugins.v1.Manifest
|
|
750
750
|
*/
|
|
751
751
|
export declare const Manifest: Manifest$Type;
|
|
752
752
|
declare class MTLSService$Type extends MessageType<MTLSService> {
|
|
@@ -756,7 +756,7 @@ declare class MTLSService$Type extends MessageType<MTLSService> {
|
|
|
756
756
|
internalBinaryWrite(message: MTLSService, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
757
757
|
}
|
|
758
758
|
/**
|
|
759
|
-
* @generated MessageType for protobuf message adapt.
|
|
759
|
+
* @generated MessageType for protobuf message mochabug.adapt.plugins.v1.MTLSService
|
|
760
760
|
*/
|
|
761
761
|
export declare const MTLSService: MTLSService$Type;
|
|
762
762
|
declare class OAuth2Service$Type extends MessageType<OAuth2Service> {
|
|
@@ -766,7 +766,7 @@ declare class OAuth2Service$Type extends MessageType<OAuth2Service> {
|
|
|
766
766
|
internalBinaryWrite(message: OAuth2Service, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
767
767
|
}
|
|
768
768
|
/**
|
|
769
|
-
* @generated MessageType for protobuf message adapt.
|
|
769
|
+
* @generated MessageType for protobuf message mochabug.adapt.plugins.v1.OAuth2Service
|
|
770
770
|
*/
|
|
771
771
|
export declare const OAuth2Service: OAuth2Service$Type;
|
|
772
772
|
declare class Secret$Type extends MessageType<Secret> {
|
|
@@ -776,19 +776,9 @@ declare class Secret$Type extends MessageType<Secret> {
|
|
|
776
776
|
internalBinaryWrite(message: Secret, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
777
777
|
}
|
|
778
778
|
/**
|
|
779
|
-
* @generated MessageType for protobuf message adapt.
|
|
779
|
+
* @generated MessageType for protobuf message mochabug.adapt.plugins.v1.Secret
|
|
780
780
|
*/
|
|
781
781
|
export declare const Secret: Secret$Type;
|
|
782
|
-
declare class Config$Type extends MessageType<Config> {
|
|
783
|
-
constructor();
|
|
784
|
-
create(value?: PartialMessage<Config>): Config;
|
|
785
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Config): Config;
|
|
786
|
-
internalBinaryWrite(message: Config, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
787
|
-
}
|
|
788
|
-
/**
|
|
789
|
-
* @generated MessageType for protobuf message adapt.apis.plugins.v1.Config
|
|
790
|
-
*/
|
|
791
|
-
export declare const Config: Config$Type;
|
|
792
782
|
declare class Vertex$Type extends MessageType<Vertex> {
|
|
793
783
|
constructor();
|
|
794
784
|
create(value?: PartialMessage<Vertex>): Vertex;
|
|
@@ -796,11 +786,11 @@ declare class Vertex$Type extends MessageType<Vertex> {
|
|
|
796
786
|
internalBinaryWrite(message: Vertex, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
797
787
|
}
|
|
798
788
|
/**
|
|
799
|
-
* @generated MessageType for protobuf message adapt.
|
|
789
|
+
* @generated MessageType for protobuf message mochabug.adapt.plugins.v1.Vertex
|
|
800
790
|
*/
|
|
801
791
|
export declare const Vertex: Vertex$Type;
|
|
802
792
|
/**
|
|
803
|
-
* @generated ServiceType for protobuf service adapt.
|
|
793
|
+
* @generated ServiceType for protobuf service mochabug.adapt.plugins.v1.PluginService
|
|
804
794
|
*/
|
|
805
795
|
export declare const PluginService: ServiceType;
|
|
806
796
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../../../src/gen/mochabug/adapt/plugins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