@mochabug/adaptkit 1.0.0-rc.1 → 1.0.0-rc.13

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 (83) 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 +8122 -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 +1402 -0
  25. package/bin/genproto/google/api/client_pb.d.ts.map +1 -0
  26. package/bin/genproto/google/api/http_pb.d.ts +837 -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 +75 -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 +225 -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 +67 -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 +133 -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 +87 -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 +75 -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 +118 -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 +97 -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 +62 -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 +223 -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 +715 -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 +92 -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 +208 -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 +134 -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 +116 -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 +159 -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 +60 -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 +224 -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 +548 -702
  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 +14 -26
  81. package/assets/build-client.js +0 -111
  82. package/assets/global.d.ts +0 -7
  83. package/assets/inject.js +0 -15
@@ -0,0 +1,159 @@
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
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
+ * The optional default value
25
+ *
26
+ * @generated from field: optional mochabugapis.adapt.plugins.v1.TlsConfig default = 2;
27
+ */
28
+ default?: TlsConfig;
29
+ };
30
+ /**
31
+ * TlsConfig configures the TLS behavior for the connection.
32
+ * It supports two modes:
33
+ * 1. MTLS: True Mutual TLS where both the client and server present and validate each other's certificates.
34
+ * 2. SERVER_ONLY: Server-only validation where only the server presents a certificate, and the client validates it.
35
+ *
36
+ * @generated from message mochabugapis.adapt.plugins.v1.TlsDefinition
37
+ */
38
+ export type TlsDefinitionJson = {
39
+ /**
40
+ * Select the TLS mode for the connection.
41
+ *
42
+ * @generated from field: mochabugapis.adapt.plugins.v1.TlsDefinition.Mode mode = 1;
43
+ */
44
+ mode?: TlsDefinition_ModeJson;
45
+ /**
46
+ * The optional default value
47
+ *
48
+ * @generated from field: optional mochabugapis.adapt.plugins.v1.TlsConfig default = 2;
49
+ */
50
+ default?: TlsConfigJson;
51
+ };
52
+ /**
53
+ * Describes the message mochabugapis.adapt.plugins.v1.TlsDefinition.
54
+ * Use `create(TlsDefinitionSchema)` to create a new message.
55
+ */
56
+ export declare const TlsDefinitionSchema: GenMessage<TlsDefinition, TlsDefinitionJson>;
57
+ /**
58
+ * Mode specifies which TLS configuration to use.
59
+ *
60
+ * @generated from enum mochabugapis.adapt.plugins.v1.TlsDefinition.Mode
61
+ */
62
+ export declare enum TlsDefinition_Mode {
63
+ /**
64
+ * Default value. Invalid.
65
+ *
66
+ * @generated from enum value: MODE_UNSPECIFIED = 0;
67
+ */
68
+ UNSPECIFIED = 0,
69
+ /**
70
+ * MTLS requires both the client and server to present valid certificates.
71
+ *
72
+ * @generated from enum value: MODE_MTLS = 1;
73
+ */
74
+ MTLS = 1,
75
+ /**
76
+ * SERVER_ONLY requires only the server to present a certificate, and the client performs validation.
77
+ *
78
+ * @generated from enum value: MODE_SERVER_ONLY = 2;
79
+ */
80
+ SERVER_ONLY = 2
81
+ }
82
+ /**
83
+ * Mode specifies which TLS configuration to use.
84
+ *
85
+ * @generated from enum mochabugapis.adapt.plugins.v1.TlsDefinition.Mode
86
+ */
87
+ export type TlsDefinition_ModeJson = "MODE_UNSPECIFIED" | "MODE_MTLS" | "MODE_SERVER_ONLY";
88
+ /**
89
+ * Describes the enum mochabugapis.adapt.plugins.v1.TlsDefinition.Mode.
90
+ */
91
+ export declare const TlsDefinition_ModeSchema: GenEnum<TlsDefinition_Mode, TlsDefinition_ModeJson>;
92
+ /**
93
+ * The actual TLS configuration
94
+ *
95
+ * @generated from message mochabugapis.adapt.plugins.v1.TlsConfig
96
+ */
97
+ export type TlsConfig = Message<"mochabugapis.adapt.plugins.v1.TlsConfig"> & {
98
+ /**
99
+ * The ca bundle in PEM format
100
+ * The content of the file must be PEM format after decoding
101
+ * If a certificate chain is presented. The server certificate must be the first one
102
+ *
103
+ * @generated from field: mochabugapis.adapt.plugins.v1.File ca_bundle = 1;
104
+ */
105
+ caBundle?: File;
106
+ /**
107
+ * The certificate in PEM format
108
+ * The content of the file must be PEM format after decoding
109
+ * If a certificate chain is presented. The server certificate must be the first one
110
+ *
111
+ * @generated from field: optional mochabugapis.adapt.plugins.v1.File certificate = 2;
112
+ */
113
+ certificate?: File;
114
+ /**
115
+ * The private key in PEM format
116
+ * The content of the file must be PEM format after decoding
117
+ * The content must contain a PRIVATE KEY block
118
+ *
119
+ * @generated from field: optional mochabugapis.adapt.plugins.v1.File private_key = 3;
120
+ */
121
+ privateKey?: File;
122
+ };
123
+ /**
124
+ * The actual TLS configuration
125
+ *
126
+ * @generated from message mochabugapis.adapt.plugins.v1.TlsConfig
127
+ */
128
+ export type TlsConfigJson = {
129
+ /**
130
+ * The ca bundle in PEM format
131
+ * The content of the file must be PEM format after decoding
132
+ * If a certificate chain is presented. The server certificate must be the first one
133
+ *
134
+ * @generated from field: mochabugapis.adapt.plugins.v1.File ca_bundle = 1;
135
+ */
136
+ caBundle?: FileJson;
137
+ /**
138
+ * The certificate in PEM format
139
+ * The content of the file must be PEM format after decoding
140
+ * If a certificate chain is presented. The server certificate must be the first one
141
+ *
142
+ * @generated from field: optional mochabugapis.adapt.plugins.v1.File certificate = 2;
143
+ */
144
+ certificate?: FileJson;
145
+ /**
146
+ * The private key in PEM format
147
+ * The content of the file must be PEM format after decoding
148
+ * The content must contain a PRIVATE KEY block
149
+ *
150
+ * @generated from field: optional mochabugapis.adapt.plugins.v1.File private_key = 3;
151
+ */
152
+ privateKey?: FileJson;
153
+ };
154
+ /**
155
+ * Describes the message mochabugapis.adapt.plugins.v1.TlsConfig.
156
+ * Use `create(TlsConfigSchema)` to create a new message.
157
+ */
158
+ export declare const TlsConfigSchema: GenMessage<TlsConfig, TlsConfigJson>;
159
+ //# 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,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;;;;OAMG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAC;IAEvB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,QAAQ,CAAC;CACvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,UAAU,CAAC,SAAS,EAAE,aAAa,CACD,CAAC"}
@@ -0,0 +1,60 @@
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
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, VariableDefinitionJson>;
60
+ //# 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,sBAAsB,CACvB,CAAC"}
@@ -0,0 +1,224 @@
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
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
+ /**
84
+ * Vertex represents a graph vertex that defines a plugin.
85
+ * Note: Be aware of potential security implications when dealing with
86
+ * user-provided data, such as file paths, and ensure proper input validation
87
+ * and sanitization.
88
+ *
89
+ * @generated from message mochabugapis.adapt.plugins.v1.Vertex
90
+ */
91
+ export type VertexJson = {
92
+ /**
93
+ * 'name' represents the vertex name.
94
+ *
95
+ * @generated from field: string name = 1;
96
+ */
97
+ name?: string;
98
+ /**
99
+ * 'label' is a human-friendly label displayed in the UI.
100
+ *
101
+ * @generated from field: string label = 2;
102
+ */
103
+ label?: string;
104
+ /**
105
+ * 'description' is a human-friendly short description of the vertex displayed
106
+ * in UI.
107
+ *
108
+ * @generated from field: optional string description = 3;
109
+ */
110
+ description?: string;
111
+ /**
112
+ * 'logo' is the file path to the vertex logo, which will be resized to a
113
+ * maximum of 40x40 pixels. Ensure that the logo files are from trusted
114
+ * sources to avoid security risks.
115
+ * - Supported file formats:
116
+ * - GIF: .gif
117
+ * - JPEG: .jpg, .jpeg, .jfif, .pjpeg, .pjp
118
+ * - PNG: .png
119
+ * - SVG: .svg
120
+ * - WEBP: .webp
121
+ * - AVIF: .avif
122
+ *
123
+ * @generated from field: optional string logo = 4;
124
+ */
125
+ logo?: string;
126
+ /**
127
+ * 'capabilities' specifies the capabilities of the vertex
128
+ *
129
+ * @generated from field: repeated mochabugapis.adapt.plugins.v1.Capability capabilities = 5;
130
+ */
131
+ capabilities?: CapabilityJson[];
132
+ /**
133
+ * 'config' is an field that contains a Unix file path.
134
+ * This can be any type of file, this is only intepreted for the vertex itself
135
+ * Restrictions:
136
+ *
137
+ *
138
+ * @generated from field: optional string config = 6;
139
+ */
140
+ config?: string;
141
+ /**
142
+ * 'metadata' is an field that contains a Unix file path.
143
+ * This determines which receivers, transmitters etc... the vertex has to begin with
144
+ * Restrictions:
145
+ *
146
+ *
147
+ * @generated from field: string metadata = 7;
148
+ */
149
+ metadata?: string;
150
+ /**
151
+ * 'user_services' are the services that the user is defining
152
+ * and consumed by a particular instance of the vertex
153
+ *
154
+ * @generated from field: repeated mochabugapis.adapt.plugins.v1.ServiceBinding user_services = 8;
155
+ */
156
+ userServices?: ServiceBindingJson[];
157
+ };
158
+ /**
159
+ * Describes the message mochabugapis.adapt.plugins.v1.Vertex.
160
+ * Use `create(VertexSchema)` to create a new message.
161
+ */
162
+ export declare const VertexSchema: GenMessage<Vertex, VertexJson>;
163
+ /**
164
+ * The capabilities of a vertex defines how the vertex is interracted with
165
+ * If the vertex has the cron capabilitiy, then a cron-scheduler will call the
166
+ * cron endpoint periodically until the vertex has finished or stopped
167
+ * If the vertex has external browser capabiltity, there will be an external endpoint
168
+ * where a third-party can communicate with the vertex
169
+ * If the vertex has a configurator, then the vertex will be able to be configured dynamically
170
+ *
171
+ * @generated from enum mochabugapis.adapt.plugins.v1.Capability
172
+ */
173
+ export declare enum Capability {
174
+ /**
175
+ * Unspecified capability (default value, should not be used).
176
+ *
177
+ * @generated from enum value: CAPABILITY_UNSPECIFIED = 0;
178
+ */
179
+ UNSPECIFIED = 0,
180
+ /**
181
+ * Cron capability, indicating that the vertex can be triggered at specific
182
+ * intervals.
183
+ *
184
+ * @generated from enum value: CAPABILITY_CRON = 1;
185
+ */
186
+ CRON = 1,
187
+ /**
188
+ * The external capability, indicating that the vertex can be accessed via a
189
+ * publicly routable address.
190
+ *
191
+ * @generated from enum value: CAPABILITY_EXTERNAL = 2;
192
+ */
193
+ EXTERNAL = 2,
194
+ /**
195
+ * Configurator capability, indicating that the vertex can be configured
196
+ * dynamically by a vertex-defined interface.
197
+ *
198
+ * @generated from enum value: CAPABILITY_CONFIGURATOR = 3;
199
+ */
200
+ CONFIGURATOR = 3,
201
+ /**
202
+ * Browser capability, indicating that the vertex can be accessed via a
203
+ * browser context.
204
+ *
205
+ * @generated from enum value: CAPABILITY_BROWSER = 4;
206
+ */
207
+ BROWSER = 4
208
+ }
209
+ /**
210
+ * The capabilities of a vertex defines how the vertex is interracted with
211
+ * If the vertex has the cron capabilitiy, then a cron-scheduler will call the
212
+ * cron endpoint periodically until the vertex has finished or stopped
213
+ * If the vertex has external browser capabiltity, there will be an external endpoint
214
+ * where a third-party can communicate with the vertex
215
+ * If the vertex has a configurator, then the vertex will be able to be configured dynamically
216
+ *
217
+ * @generated from enum mochabugapis.adapt.plugins.v1.Capability
218
+ */
219
+ export type CapabilityJson = "CAPABILITY_UNSPECIFIED" | "CAPABILITY_CRON" | "CAPABILITY_EXTERNAL" | "CAPABILITY_CONFIGURATOR" | "CAPABILITY_BROWSER";
220
+ /**
221
+ * Describes the enum mochabugapis.adapt.plugins.v1.Capability.
222
+ */
223
+ export declare const CapabilitySchema: GenEnum<Capability, CapabilityJson>;
224
+ //# 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,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAGjF,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;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G;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"}