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

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 +741 -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 +20 -31
  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,225 @@
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { ServiceBinding, ServiceBindingJson } from "./service_binding_pb";
3
+ import type { ServiceDefinition, ServiceDefinitionJson } from "./service_definition_pb";
4
+ import type { Vertex, VertexJson } from "./vertex_pb";
5
+ import type { Message } from "@bufbuild/protobuf";
6
+ /**
7
+ * Describes the file mochabugapis/adapt/plugins/v1/manifest.proto.
8
+ */
9
+ export declare const file_mochabugapis_adapt_plugins_v1_manifest: GenFile;
10
+ /**
11
+ * Manifest describes a plugin and its properties.
12
+ *
13
+ * Security considerations: The platform ensures that secrets and certificates
14
+ * are stored and transmitted securely.
15
+ *
16
+ * *** Plugin authors must also ensure that their implementations
17
+ * handle sensitive data appropriately! ***
18
+ *
19
+ * @generated from message mochabugapis.adapt.plugins.v1.Manifest
20
+ */
21
+ export type Manifest = Message<"mochabugapis.adapt.plugins.v1.Manifest"> & {
22
+ /**
23
+ * 'name' is the alpha-numeric identifier of the plugin. Must be conform to a ES variable name
24
+ *
25
+ * @generated from field: string name = 1;
26
+ */
27
+ name: string;
28
+ /**
29
+ * 'version' is the plugin's version, following SemVer 2.0: https://semver.org/
30
+ *
31
+ * @generated from field: string version = 2;
32
+ */
33
+ version: string;
34
+ /**
35
+ * 'label' is a human-friendly label displayed in the UI.
36
+ *
37
+ * @generated from field: string label = 3;
38
+ */
39
+ label: string;
40
+ /**
41
+ * 'description' is a short, human-friendly description displayed in the UI.
42
+ *
43
+ * @generated from field: string description = 4;
44
+ */
45
+ description: string;
46
+ /**
47
+ * 'organization' is the id of the organization the user belongs to.
48
+ *
49
+ * @generated from field: string organization = 5;
50
+ */
51
+ organization: string;
52
+ /**
53
+ * 'homepage' is the plugin's homepage URL.
54
+ *
55
+ * @generated from field: optional string homepage = 6;
56
+ */
57
+ homepage?: string;
58
+ /**
59
+ * 'repository' is the plugin's repository URL.
60
+ *
61
+ * @generated from field: optional string repository = 7;
62
+ */
63
+ repository?: string;
64
+ /**
65
+ * 'bugs' is the URL or email for reporting bugs.
66
+ *
67
+ * @generated from field: optional string bugs = 8;
68
+ */
69
+ bugs?: string;
70
+ /**
71
+ * 'author' is the name of the plugin's author.
72
+ *
73
+ * @generated from field: optional string author = 9;
74
+ */
75
+ author?: string;
76
+ /**
77
+ * 'logo' is an optional path to the plugin logo.
78
+ * The logo will be resized to a maximum of 80x80 pixels.
79
+ * - Supported file formats:
80
+ * - GIF: .gif
81
+ * - JPEG: .jpg, .jpeg, .jfif, .pjpeg, .pjp
82
+ * - PNG: .png
83
+ * - SVG: .svg
84
+ * - WEBP: .webp
85
+ * - AVIF: .avif
86
+ *
87
+ * @generated from field: optional string logo = 10;
88
+ */
89
+ logo?: string;
90
+ /**
91
+ * 'vertices' is a list of vertices that constitute the plugin.
92
+ * this is filled in automatically when configurating a project on the filesystem
93
+ *
94
+ * @generated from field: repeated mochabugapis.adapt.plugins.v1.Vertex vertices = 11;
95
+ */
96
+ vertices: Vertex[];
97
+ /**
98
+ * 'service_definitions' are the actual definition of services that may be referenced
99
+ * on either a system level, or user level at the vertices
100
+ *
101
+ * @generated from field: repeated mochabugapis.adapt.plugins.v1.ServiceDefinition service_definitions = 12;
102
+ */
103
+ serviceDefinitions: ServiceDefinition[];
104
+ /**
105
+ * 'system_services' are the services that are available on a system level
106
+ * that is, configured and used by the plugin for exclusive purposes
107
+ * IMPORTANT: any binding referring to a grant-type CODE will be required
108
+ * to have the same name as the system_definition and be required to be of service type
109
+ *
110
+ * @generated from field: repeated mochabugapis.adapt.plugins.v1.ServiceBinding system_services = 13;
111
+ */
112
+ systemServices: ServiceBinding[];
113
+ };
114
+ /**
115
+ * Manifest describes a plugin and its properties.
116
+ *
117
+ * Security considerations: The platform ensures that secrets and certificates
118
+ * are stored and transmitted securely.
119
+ *
120
+ * *** Plugin authors must also ensure that their implementations
121
+ * handle sensitive data appropriately! ***
122
+ *
123
+ * @generated from message mochabugapis.adapt.plugins.v1.Manifest
124
+ */
125
+ export type ManifestJson = {
126
+ /**
127
+ * 'name' is the alpha-numeric identifier of the plugin. Must be conform to a ES variable name
128
+ *
129
+ * @generated from field: string name = 1;
130
+ */
131
+ name?: string;
132
+ /**
133
+ * 'version' is the plugin's version, following SemVer 2.0: https://semver.org/
134
+ *
135
+ * @generated from field: string version = 2;
136
+ */
137
+ version?: string;
138
+ /**
139
+ * 'label' is a human-friendly label displayed in the UI.
140
+ *
141
+ * @generated from field: string label = 3;
142
+ */
143
+ label?: string;
144
+ /**
145
+ * 'description' is a short, human-friendly description displayed in the UI.
146
+ *
147
+ * @generated from field: string description = 4;
148
+ */
149
+ description?: string;
150
+ /**
151
+ * 'organization' is the id of the organization the user belongs to.
152
+ *
153
+ * @generated from field: string organization = 5;
154
+ */
155
+ organization?: string;
156
+ /**
157
+ * 'homepage' is the plugin's homepage URL.
158
+ *
159
+ * @generated from field: optional string homepage = 6;
160
+ */
161
+ homepage?: string;
162
+ /**
163
+ * 'repository' is the plugin's repository URL.
164
+ *
165
+ * @generated from field: optional string repository = 7;
166
+ */
167
+ repository?: string;
168
+ /**
169
+ * 'bugs' is the URL or email for reporting bugs.
170
+ *
171
+ * @generated from field: optional string bugs = 8;
172
+ */
173
+ bugs?: string;
174
+ /**
175
+ * 'author' is the name of the plugin's author.
176
+ *
177
+ * @generated from field: optional string author = 9;
178
+ */
179
+ author?: string;
180
+ /**
181
+ * 'logo' is an optional path to the plugin logo.
182
+ * The logo will be resized to a maximum of 80x80 pixels.
183
+ * - Supported file formats:
184
+ * - GIF: .gif
185
+ * - JPEG: .jpg, .jpeg, .jfif, .pjpeg, .pjp
186
+ * - PNG: .png
187
+ * - SVG: .svg
188
+ * - WEBP: .webp
189
+ * - AVIF: .avif
190
+ *
191
+ * @generated from field: optional string logo = 10;
192
+ */
193
+ logo?: string;
194
+ /**
195
+ * 'vertices' is a list of vertices that constitute the plugin.
196
+ * this is filled in automatically when configurating a project on the filesystem
197
+ *
198
+ * @generated from field: repeated mochabugapis.adapt.plugins.v1.Vertex vertices = 11;
199
+ */
200
+ vertices?: VertexJson[];
201
+ /**
202
+ * 'service_definitions' are the actual definition of services that may be referenced
203
+ * on either a system level, or user level at the vertices
204
+ *
205
+ * @generated from field: repeated mochabugapis.adapt.plugins.v1.ServiceDefinition service_definitions = 12;
206
+ */
207
+ serviceDefinitions?: ServiceDefinitionJson[];
208
+ /**
209
+ * 'system_services' are the services that are available on a system level
210
+ * that is, configured and used by the plugin for exclusive purposes
211
+ * IMPORTANT: any binding referring to a grant-type CODE will be required
212
+ * to have the same name as the system_definition and be required to be of service type
213
+ *
214
+ * @generated from field: repeated mochabugapis.adapt.plugins.v1.ServiceBinding system_services = 13;
215
+ */
216
+ systemServices?: ServiceBindingJson[];
217
+ };
218
+ /**
219
+ * Describes the message mochabugapis.adapt.plugins.v1.Manifest.
220
+ * Use `create(ManifestSchema)` to create a new message.
221
+ */
222
+ export declare const ManifestSchema: GenMessage<Manifest, {
223
+ jsonType: ManifestJson;
224
+ }>;
225
+ //# sourceMappingURL=manifest_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifest_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAExF,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,2CAA2C,EAAE,OACuvE,CAAC;AAElzE;;;;;;;;;;GAUG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,wCAAwC,CAAC,GAAG;IACzE;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;OAIG;I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