@mochabug/adaptkit 1.0.0-rc.2 → 1.0.0-rc.20

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.
Files changed (84) hide show
  1. package/assets/build.js +2 -57
  2. package/assets/configurator.html +14 -0
  3. package/assets/configurator.ssg.tsx +2 -16
  4. package/assets/configurator_none.ts +4 -4
  5. package/assets/configurator_react.tsx +10 -7
  6. package/assets/executor.html +14 -0
  7. package/assets/executor.ssg.tsx +2 -16
  8. package/assets/executor_action.ts +3 -7
  9. package/assets/{executor_cron_trigger.ts → executor_action_cron.ts} +3 -7
  10. package/assets/executor_browser_none.ts +8 -12
  11. package/assets/executor_browser_none_cron.ts +119 -0
  12. package/assets/executor_browser_react.tsx +14 -15
  13. package/assets/executor_browser_react_cron.tsx +55 -0
  14. package/assets/{executor_external_trigger.ts → executor_external.ts} +7 -11
  15. package/assets/executor_external_cron.ts +45 -0
  16. package/assets/gitignore +3 -1
  17. package/assets/tsconf.json +3 -5
  18. package/bin/add.d.ts +3 -0
  19. package/bin/add.d.ts.map +1 -0
  20. package/bin/genproto/buf/validate/validate_pb.d.ts +8491 -0
  21. package/bin/genproto/buf/validate/validate_pb.d.ts.map +1 -0
  22. package/bin/genproto/google/api/annotations_pb.d.ts +14 -0
  23. package/bin/genproto/google/api/annotations_pb.d.ts.map +1 -0
  24. package/bin/genproto/google/api/client_pb.d.ts +1432 -0
  25. package/bin/genproto/google/api/client_pb.d.ts.map +1 -0
  26. package/bin/genproto/google/api/http_pb.d.ts +843 -0
  27. package/bin/genproto/google/api/http_pb.d.ts.map +1 -0
  28. package/bin/genproto/google/api/launch_stage_pb.d.ts +94 -0
  29. package/bin/genproto/google/api/launch_stage_pb.d.ts.map +1 -0
  30. package/bin/genproto/mochabugapis/adapt/graph/exchange_pb.d.ts +77 -0
  31. package/bin/genproto/mochabugapis/adapt/graph/exchange_pb.d.ts.map +1 -0
  32. package/bin/genproto/mochabugapis/adapt/graph/jtd_schema_pb.d.ts +227 -0
  33. package/bin/genproto/mochabugapis/adapt/graph/jtd_schema_pb.d.ts.map +1 -0
  34. package/bin/genproto/mochabugapis/adapt/graph/receiver_pb.d.ts +69 -0
  35. package/bin/genproto/mochabugapis/adapt/graph/receiver_pb.d.ts.map +1 -0
  36. package/bin/genproto/mochabugapis/adapt/graph/signal_binding_pb.d.ts +134 -0
  37. package/bin/genproto/mochabugapis/adapt/graph/signal_binding_pb.d.ts.map +1 -0
  38. package/bin/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.d.ts +91 -0
  39. package/bin/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.d.ts.map +1 -0
  40. package/bin/genproto/mochabugapis/adapt/graph/transceiver_pb.d.ts +77 -0
  41. package/bin/genproto/mochabugapis/adapt/graph/transceiver_pb.d.ts.map +1 -0
  42. package/bin/genproto/mochabugapis/adapt/graph/transmitter_pb.d.ts +120 -0
  43. package/bin/genproto/mochabugapis/adapt/graph/transmitter_pb.d.ts.map +1 -0
  44. package/bin/genproto/mochabugapis/adapt/graph/vertex_metadata_pb.d.ts +99 -0
  45. package/bin/genproto/mochabugapis/adapt/graph/vertex_metadata_pb.d.ts.map +1 -0
  46. package/bin/genproto/mochabugapis/adapt/plugins/v1/file_pb.d.ts +64 -0
  47. package/bin/genproto/mochabugapis/adapt/plugins/v1/file_pb.d.ts.map +1 -0
  48. package/bin/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts +225 -0
  49. package/bin/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts.map +1 -0
  50. package/bin/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.d.ts +721 -0
  51. package/bin/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.d.ts.map +1 -0
  52. package/bin/genproto/mochabugapis/adapt/plugins/v1/oneof_service_pb.d.ts +94 -0
  53. package/bin/genproto/mochabugapis/adapt/plugins/v1/oneof_service_pb.d.ts.map +1 -0
  54. package/bin/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.d.ts +214 -0
  55. package/bin/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.d.ts.map +1 -0
  56. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_binding_pb.d.ts +138 -0
  57. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_binding_pb.d.ts.map +1 -0
  58. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.d.ts +118 -0
  59. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.d.ts.map +1 -0
  60. package/bin/genproto/mochabugapis/adapt/plugins/v1/tls_service_pb.d.ts +151 -0
  61. package/bin/genproto/mochabugapis/adapt/plugins/v1/tls_service_pb.d.ts.map +1 -0
  62. package/bin/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.d.ts +62 -0
  63. package/bin/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.d.ts.map +1 -0
  64. package/bin/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts +242 -0
  65. package/bin/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts.map +1 -0
  66. package/bin/index.d.ts +7 -0
  67. package/bin/index.d.ts.map +1 -0
  68. package/bin/index.js +737 -796
  69. package/bin/index.js.map +4 -4
  70. package/bin/init.d.ts +2 -0
  71. package/bin/init.d.ts.map +1 -0
  72. package/bin/oauth2.d.ts +2 -0
  73. package/bin/oauth2.d.ts.map +1 -0
  74. package/bin/publish.d.ts +23 -0
  75. package/bin/publish.d.ts.map +1 -0
  76. package/bin/utils.d.ts +13 -0
  77. package/bin/utils.d.ts.map +1 -0
  78. package/bin/vertices.d.ts +3 -0
  79. package/bin/vertices.d.ts.map +1 -0
  80. package/package.json +19 -30
  81. package/assets/build-client.js +0 -111
  82. package/assets/global.d.ts +0 -7
  83. package/assets/inject.js +0 -15
  84. package/assets/license.md +0 -15
@@ -0,0 +1,151 @@
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { File, FileJson } from "./file_pb";
3
+ import type { Message } from "@bufbuild/protobuf";
4
+ /**
5
+ * Describes the file mochabugapis/adapt/plugins/v1/tls_service.proto.
6
+ */
7
+ export declare const file_mochabugapis_adapt_plugins_v1_tls_service: GenFile;
8
+ /**
9
+ * TlsConfig configures the TLS behavior for the connection.
10
+ * It supports two modes:
11
+ * 1. MTLS: True Mutual TLS where both the client and server present and validate each other's certificates.
12
+ * 2. SERVER_ONLY: Server-only validation where only the server presents a certificate, and the client validates it.
13
+ *
14
+ * @generated from message mochabugapis.adapt.plugins.v1.TlsDefinition
15
+ */
16
+ export type TlsDefinition = Message<"mochabugapis.adapt.plugins.v1.TlsDefinition"> & {
17
+ /**
18
+ * Select the TLS mode for the connection.
19
+ *
20
+ * @generated from field: mochabugapis.adapt.plugins.v1.TlsDefinition.Mode mode = 1;
21
+ */
22
+ mode: TlsDefinition_Mode;
23
+ };
24
+ /**
25
+ * TlsConfig configures the TLS behavior for the connection.
26
+ * It supports two modes:
27
+ * 1. MTLS: True Mutual TLS where both the client and server present and validate each other's certificates.
28
+ * 2. SERVER_ONLY: Server-only validation where only the server presents a certificate, and the client validates it.
29
+ *
30
+ * @generated from message mochabugapis.adapt.plugins.v1.TlsDefinition
31
+ */
32
+ export type TlsDefinitionJson = {
33
+ /**
34
+ * Select the TLS mode for the connection.
35
+ *
36
+ * @generated from field: mochabugapis.adapt.plugins.v1.TlsDefinition.Mode mode = 1;
37
+ */
38
+ mode?: TlsDefinition_ModeJson;
39
+ };
40
+ /**
41
+ * Describes the message mochabugapis.adapt.plugins.v1.TlsDefinition.
42
+ * Use `create(TlsDefinitionSchema)` to create a new message.
43
+ */
44
+ export declare const TlsDefinitionSchema: GenMessage<TlsDefinition, {
45
+ jsonType: TlsDefinitionJson;
46
+ }>;
47
+ /**
48
+ * Mode specifies which TLS configuration to use.
49
+ *
50
+ * @generated from enum mochabugapis.adapt.plugins.v1.TlsDefinition.Mode
51
+ */
52
+ export declare enum TlsDefinition_Mode {
53
+ /**
54
+ * Default value. Invalid.
55
+ *
56
+ * @generated from enum value: MODE_UNSPECIFIED = 0;
57
+ */
58
+ UNSPECIFIED = 0,
59
+ /**
60
+ * MTLS requires both the client and server to present valid certificates.
61
+ *
62
+ * @generated from enum value: MODE_MTLS = 1;
63
+ */
64
+ MTLS = 1,
65
+ /**
66
+ * SERVER_ONLY requires only the server to present a certificate, and the client performs validation.
67
+ *
68
+ * @generated from enum value: MODE_SERVER_ONLY = 2;
69
+ */
70
+ SERVER_ONLY = 2
71
+ }
72
+ /**
73
+ * Mode specifies which TLS configuration to use.
74
+ *
75
+ * @generated from enum mochabugapis.adapt.plugins.v1.TlsDefinition.Mode
76
+ */
77
+ export type TlsDefinition_ModeJson = "MODE_UNSPECIFIED" | "MODE_MTLS" | "MODE_SERVER_ONLY";
78
+ /**
79
+ * Describes the enum mochabugapis.adapt.plugins.v1.TlsDefinition.Mode.
80
+ */
81
+ export declare const TlsDefinition_ModeSchema: GenEnum<TlsDefinition_Mode, TlsDefinition_ModeJson>;
82
+ /**
83
+ * The actual TLS configuration
84
+ *
85
+ * @generated from message mochabugapis.adapt.plugins.v1.TlsConfig
86
+ */
87
+ export type TlsConfig = Message<"mochabugapis.adapt.plugins.v1.TlsConfig"> & {
88
+ /**
89
+ * The ca bundle in PEM format
90
+ * The content of the file must be PEM format after decoding
91
+ * If a certificate chain is presented. The server certificate must be the first one
92
+ *
93
+ * @generated from field: mochabugapis.adapt.plugins.v1.File ca_bundle = 1;
94
+ */
95
+ caBundle?: File;
96
+ /**
97
+ * The certificate in PEM format
98
+ * The content of the file must be PEM format after decoding
99
+ * If a certificate chain is presented. The server certificate must be the first one
100
+ *
101
+ * @generated from field: optional mochabugapis.adapt.plugins.v1.File certificate = 2;
102
+ */
103
+ certificate?: File;
104
+ /**
105
+ * The private key in PEM format
106
+ * The content of the file must be PEM format after decoding
107
+ * The content must contain a PRIVATE KEY block
108
+ *
109
+ * @generated from field: optional mochabugapis.adapt.plugins.v1.File private_key = 3;
110
+ */
111
+ privateKey?: File;
112
+ };
113
+ /**
114
+ * The actual TLS configuration
115
+ *
116
+ * @generated from message mochabugapis.adapt.plugins.v1.TlsConfig
117
+ */
118
+ export type TlsConfigJson = {
119
+ /**
120
+ * The ca bundle in PEM format
121
+ * The content of the file must be PEM format after decoding
122
+ * If a certificate chain is presented. The server certificate must be the first one
123
+ *
124
+ * @generated from field: mochabugapis.adapt.plugins.v1.File ca_bundle = 1;
125
+ */
126
+ caBundle?: FileJson;
127
+ /**
128
+ * The certificate in PEM format
129
+ * The content of the file must be PEM format after decoding
130
+ * If a certificate chain is presented. The server certificate must be the first one
131
+ *
132
+ * @generated from field: optional mochabugapis.adapt.plugins.v1.File certificate = 2;
133
+ */
134
+ certificate?: FileJson;
135
+ /**
136
+ * The private key in PEM format
137
+ * The content of the file must be PEM format after decoding
138
+ * The content must contain a PRIVATE KEY block
139
+ *
140
+ * @generated from field: optional mochabugapis.adapt.plugins.v1.File private_key = 3;
141
+ */
142
+ privateKey?: FileJson;
143
+ };
144
+ /**
145
+ * Describes the message mochabugapis.adapt.plugins.v1.TlsConfig.
146
+ * Use `create(TlsConfigSchema)` to create a new message.
147
+ */
148
+ export declare const TlsConfigSchema: GenMessage<TlsConfig, {
149
+ jsonType: TlsConfigJson;
150
+ }>;
151
+ //# sourceMappingURL=tls_service_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tls_service_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/plugins/v1/tls_service_pb.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAGjF,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAEhD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,8CAA8C,EAAE,OACsrB,CAA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CAAC,SAAS,EAAE;IAAC,QAAQ,EAAE,aAAa,CAAA;CAAC,CACb,CAAC"}
@@ -0,0 +1,62 @@
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Value, ValueJson } from "@bufbuild/protobuf/wkt";
3
+ import type { JTDSchema, JTDSchemaJson } from "../../graph/jtd_schema_pb";
4
+ import type { Message } from "@bufbuild/protobuf";
5
+ /**
6
+ * Describes the file mochabugapis/adapt/plugins/v1/variable_service.proto.
7
+ */
8
+ export declare const file_mochabugapis_adapt_plugins_v1_variable_service: GenFile;
9
+ /**
10
+ * A definition of a JSON variable
11
+ *
12
+ * This message represents a variable used within the hosting platform.
13
+ * Variables are essential for configuring applications and services hosted on the platform.
14
+ * They store values that can be accessed by the application or service during runtime.
15
+ *
16
+ * @generated from message mochabugapis.adapt.plugins.v1.VariableDefinition
17
+ */
18
+ export type VariableDefinition = Message<"mochabugapis.adapt.plugins.v1.VariableDefinition"> & {
19
+ /**
20
+ * The schema that the variable must adhere to
21
+ *
22
+ * @generated from field: mochabugapis.adapt.graph.JTDSchema schema = 1;
23
+ */
24
+ schema?: JTDSchema;
25
+ /**
26
+ * The optional default value
27
+ *
28
+ * @generated from field: optional google.protobuf.Value default = 2;
29
+ */
30
+ default?: Value;
31
+ };
32
+ /**
33
+ * A definition of a JSON variable
34
+ *
35
+ * This message represents a variable used within the hosting platform.
36
+ * Variables are essential for configuring applications and services hosted on the platform.
37
+ * They store values that can be accessed by the application or service during runtime.
38
+ *
39
+ * @generated from message mochabugapis.adapt.plugins.v1.VariableDefinition
40
+ */
41
+ export type VariableDefinitionJson = {
42
+ /**
43
+ * The schema that the variable must adhere to
44
+ *
45
+ * @generated from field: mochabugapis.adapt.graph.JTDSchema schema = 1;
46
+ */
47
+ schema?: JTDSchemaJson;
48
+ /**
49
+ * The optional default value
50
+ *
51
+ * @generated from field: optional google.protobuf.Value default = 2;
52
+ */
53
+ default?: ValueJson;
54
+ };
55
+ /**
56
+ * Describes the message mochabugapis.adapt.plugins.v1.VariableDefinition.
57
+ * Use `create(VariableDefinitionSchema)` to create a new message.
58
+ */
59
+ export declare const VariableDefinitionSchema: GenMessage<VariableDefinition, {
60
+ jsonType: VariableDefinitionJson;
61
+ }>;
62
+ //# sourceMappingURL=variable_service_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variable_service_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAE/D,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,mDAAmD,EAAE,OAC2W,CAAC;AAE9a;;;;;;;;GAQG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,kDAAkD,CAAC,GAAG;IAC7F;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IAEnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;;OAIG;IACH,MAAM,CAAC,EAAE,aAAa,CAAC;IAEvB;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,UAAU,CAAC,kBAAkB,EAAE;IAAC,QAAQ,EAAE,sBAAsB,CAAA;CAAC,CACnC,CAAC"}
@@ -0,0 +1,242 @@
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { ServiceBinding, ServiceBindingJson } from "./service_binding_pb";
3
+ import type { Message } from "@bufbuild/protobuf";
4
+ /**
5
+ * Describes the file mochabugapis/adapt/plugins/v1/vertex.proto.
6
+ */
7
+ export declare const file_mochabugapis_adapt_plugins_v1_vertex: GenFile;
8
+ /**
9
+ * Vertex represents a graph vertex that defines a plugin.
10
+ * Note: Be aware of potential security implications when dealing with
11
+ * user-provided data, such as file paths, and ensure proper input validation
12
+ * and sanitization.
13
+ *
14
+ * @generated from message mochabugapis.adapt.plugins.v1.Vertex
15
+ */
16
+ export type Vertex = Message<"mochabugapis.adapt.plugins.v1.Vertex"> & {
17
+ /**
18
+ * 'name' represents the vertex name.
19
+ *
20
+ * @generated from field: string name = 1;
21
+ */
22
+ name: string;
23
+ /**
24
+ * 'label' is a human-friendly label displayed in the UI.
25
+ *
26
+ * @generated from field: string label = 2;
27
+ */
28
+ label: string;
29
+ /**
30
+ * 'description' is a human-friendly short description of the vertex displayed
31
+ * in UI.
32
+ *
33
+ * @generated from field: optional string description = 3;
34
+ */
35
+ description?: string;
36
+ /**
37
+ * 'logo' is the file path to the vertex logo, which will be resized to a
38
+ * maximum of 40x40 pixels. Ensure that the logo files are from trusted
39
+ * sources to avoid security risks.
40
+ * - Supported file formats:
41
+ * - GIF: .gif
42
+ * - JPEG: .jpg, .jpeg, .jfif, .pjpeg, .pjp
43
+ * - PNG: .png
44
+ * - SVG: .svg
45
+ * - WEBP: .webp
46
+ * - AVIF: .avif
47
+ *
48
+ * @generated from field: optional string logo = 4;
49
+ */
50
+ logo?: string;
51
+ /**
52
+ * 'capabilities' specifies the capabilities of the vertex
53
+ *
54
+ * @generated from field: repeated mochabugapis.adapt.plugins.v1.Capability capabilities = 5;
55
+ */
56
+ capabilities: Capability[];
57
+ /**
58
+ * 'config' is an field that contains a Unix file path.
59
+ * This can be any type of file, this is only intepreted for the vertex itself
60
+ * Restrictions:
61
+ *
62
+ *
63
+ * @generated from field: optional string config = 6;
64
+ */
65
+ config?: string;
66
+ /**
67
+ * 'metadata' is an field that contains a Unix file path.
68
+ * This determines which receivers, transmitters etc... the vertex has to begin with
69
+ * Restrictions:
70
+ *
71
+ *
72
+ * @generated from field: string metadata = 7;
73
+ */
74
+ metadata: string;
75
+ /**
76
+ * 'user_services' are the services that the user is defining
77
+ * and consumed by a particular instance of the vertex
78
+ *
79
+ * @generated from field: repeated mochabugapis.adapt.plugins.v1.ServiceBinding user_services = 8;
80
+ */
81
+ userServices: ServiceBinding[];
82
+ /**
83
+ * 'deprecated' is a boolean that indicates if the vertex is deprecated
84
+ * this means that it will be removed in the next major version
85
+ * and should be migrated asap
86
+ *
87
+ * @generated from field: optional bool deprecated = 9;
88
+ */
89
+ deprecated?: boolean;
90
+ };
91
+ /**
92
+ * Vertex represents a graph vertex that defines a plugin.
93
+ * Note: Be aware of potential security implications when dealing with
94
+ * user-provided data, such as file paths, and ensure proper input validation
95
+ * and sanitization.
96
+ *
97
+ * @generated from message mochabugapis.adapt.plugins.v1.Vertex
98
+ */
99
+ export type VertexJson = {
100
+ /**
101
+ * 'name' represents the vertex name.
102
+ *
103
+ * @generated from field: string name = 1;
104
+ */
105
+ name?: string;
106
+ /**
107
+ * 'label' is a human-friendly label displayed in the UI.
108
+ *
109
+ * @generated from field: string label = 2;
110
+ */
111
+ label?: string;
112
+ /**
113
+ * 'description' is a human-friendly short description of the vertex displayed
114
+ * in UI.
115
+ *
116
+ * @generated from field: optional string description = 3;
117
+ */
118
+ description?: string;
119
+ /**
120
+ * 'logo' is the file path to the vertex logo, which will be resized to a
121
+ * maximum of 40x40 pixels. Ensure that the logo files are from trusted
122
+ * sources to avoid security risks.
123
+ * - Supported file formats:
124
+ * - GIF: .gif
125
+ * - JPEG: .jpg, .jpeg, .jfif, .pjpeg, .pjp
126
+ * - PNG: .png
127
+ * - SVG: .svg
128
+ * - WEBP: .webp
129
+ * - AVIF: .avif
130
+ *
131
+ * @generated from field: optional string logo = 4;
132
+ */
133
+ logo?: string;
134
+ /**
135
+ * 'capabilities' specifies the capabilities of the vertex
136
+ *
137
+ * @generated from field: repeated mochabugapis.adapt.plugins.v1.Capability capabilities = 5;
138
+ */
139
+ capabilities?: CapabilityJson[];
140
+ /**
141
+ * 'config' is an field that contains a Unix file path.
142
+ * This can be any type of file, this is only intepreted for the vertex itself
143
+ * Restrictions:
144
+ *
145
+ *
146
+ * @generated from field: optional string config = 6;
147
+ */
148
+ config?: string;
149
+ /**
150
+ * 'metadata' is an field that contains a Unix file path.
151
+ * This determines which receivers, transmitters etc... the vertex has to begin with
152
+ * Restrictions:
153
+ *
154
+ *
155
+ * @generated from field: string metadata = 7;
156
+ */
157
+ metadata?: string;
158
+ /**
159
+ * 'user_services' are the services that the user is defining
160
+ * and consumed by a particular instance of the vertex
161
+ *
162
+ * @generated from field: repeated mochabugapis.adapt.plugins.v1.ServiceBinding user_services = 8;
163
+ */
164
+ userServices?: ServiceBindingJson[];
165
+ /**
166
+ * 'deprecated' is a boolean that indicates if the vertex is deprecated
167
+ * this means that it will be removed in the next major version
168
+ * and should be migrated asap
169
+ *
170
+ * @generated from field: optional bool deprecated = 9;
171
+ */
172
+ deprecated?: boolean;
173
+ };
174
+ /**
175
+ * Describes the message mochabugapis.adapt.plugins.v1.Vertex.
176
+ * Use `create(VertexSchema)` to create a new message.
177
+ */
178
+ export declare const VertexSchema: GenMessage<Vertex, {
179
+ jsonType: VertexJson;
180
+ }>;
181
+ /**
182
+ * The capabilities of a vertex defines how the vertex is interracted with
183
+ * If the vertex has the cron capabilitiy, then a cron-scheduler will call the
184
+ * cron endpoint periodically until the vertex has finished or stopped
185
+ * If the vertex has external browser capabiltity, there will be an external endpoint
186
+ * where a third-party can communicate with the vertex
187
+ * If the vertex has a configurator, then the vertex will be able to be configured dynamically
188
+ *
189
+ * @generated from enum mochabugapis.adapt.plugins.v1.Capability
190
+ */
191
+ export declare enum Capability {
192
+ /**
193
+ * Unspecified capability (default value, should not be used).
194
+ *
195
+ * @generated from enum value: CAPABILITY_UNSPECIFIED = 0;
196
+ */
197
+ UNSPECIFIED = 0,
198
+ /**
199
+ * Cron capability, indicating that the vertex can be triggered at specific
200
+ * intervals.
201
+ *
202
+ * @generated from enum value: CAPABILITY_CRON = 1;
203
+ */
204
+ CRON = 1,
205
+ /**
206
+ * The external capability, indicating that the vertex can be accessed via a
207
+ * publicly routable address.
208
+ *
209
+ * @generated from enum value: CAPABILITY_EXTERNAL = 2;
210
+ */
211
+ EXTERNAL = 2,
212
+ /**
213
+ * Configurator capability, indicating that the vertex can be configured
214
+ * dynamically by a vertex-defined interface.
215
+ *
216
+ * @generated from enum value: CAPABILITY_CONFIGURATOR = 3;
217
+ */
218
+ CONFIGURATOR = 3,
219
+ /**
220
+ * Browser capability, indicating that the vertex can be accessed via a
221
+ * browser context.
222
+ *
223
+ * @generated from enum value: CAPABILITY_BROWSER = 4;
224
+ */
225
+ BROWSER = 4
226
+ }
227
+ /**
228
+ * The capabilities of a vertex defines how the vertex is interracted with
229
+ * If the vertex has the cron capabilitiy, then a cron-scheduler will call the
230
+ * cron endpoint periodically until the vertex has finished or stopped
231
+ * If the vertex has external browser capabiltity, there will be an external endpoint
232
+ * where a third-party can communicate with the vertex
233
+ * If the vertex has a configurator, then the vertex will be able to be configured dynamically
234
+ *
235
+ * @generated from enum mochabugapis.adapt.plugins.v1.Capability
236
+ */
237
+ export type CapabilityJson = "CAPABILITY_UNSPECIFIED" | "CAPABILITY_CRON" | "CAPABILITY_EXTERNAL" | "CAPABILITY_CONFIGURATOR" | "CAPABILITY_BROWSER";
238
+ /**
239
+ * Describes the enum mochabugapis.adapt.plugins.v1.Capability.
240
+ */
241
+ export declare const CapabilitySchema: GenEnum<Capability, CapabilityJson>;
242
+ //# sourceMappingURL=vertex_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vertex_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,OAAO,EAAE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;;;OAKG;IACH,YAAY,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAEpC;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,UAAU,CAAC,MAAM,EAAE;IAAC,QAAQ,EAAE,UAAU,CAAA;CAAC,CACT,CAAC;AAE5D;;;;;;;;;GASG;AACH,oBAAY,UAAU;IACpB;;;;OAIG;IACH,WAAW,IAAI;IAEf;;;;;OAKG;IACH,IAAI,IAAI;IAER;;;;;OAKG;IACH,QAAQ,IAAI;IAEZ;;;;;OAKG;IACH,YAAY,IAAI;IAEhB;;;;;OAKG;IACH,OAAO,IAAI;CACZ;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,cAAc,GAAG,wBAAwB,GAAG,iBAAiB,GAAG,qBAAqB,GAAG,yBAAyB,GAAG,oBAAoB,CAAC;AAErJ;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,OAAO,CAAC,UAAU,EAAE,cAAc,CACT,CAAC"}
package/bin/index.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ interface ReadFilesResult {
2
+ configuratorPath?: string;
3
+ executorPath: string;
4
+ }
5
+ export declare function readConfiguratorAndExecutor(dist: string): Promise<ReadFilesResult>;
6
+ export {};
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAuCA,UAAU,eAAe;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,wBAAsB,2BAA2B,CAC/C,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,eAAe,CAAC,CA0B1B"}