@mochabug/adapt-sdk 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +873 -0
- package/dist/api.d.ts +1605 -0
- package/dist/api.d.ts.map +1 -0
- package/dist/api.spec.d.ts +2 -0
- package/dist/api.spec.d.ts.map +1 -0
- package/dist/cjs/api.cjs +2 -0
- package/dist/cjs/api.cjs.map +7 -0
- package/dist/cjs/frontend.cjs +2 -0
- package/dist/cjs/frontend.cjs.map +7 -0
- package/dist/cjs/mime.cjs +2 -0
- package/dist/cjs/mime.cjs.map +7 -0
- package/dist/cjs/router.cjs +2 -0
- package/dist/cjs/router.cjs.map +7 -0
- package/dist/cjs/types.cjs +2 -0
- package/dist/cjs/types.cjs.map +7 -0
- package/dist/esm/api.mjs +2 -0
- package/dist/esm/api.mjs.map +7 -0
- package/dist/esm/frontend.mjs +2 -0
- package/dist/esm/frontend.mjs.map +7 -0
- package/dist/esm/mime.mjs +2 -0
- package/dist/esm/mime.mjs.map +7 -0
- package/dist/esm/router.mjs +2 -0
- package/dist/esm/router.mjs.map +7 -0
- package/dist/esm/types.mjs +1 -0
- package/dist/esm/types.mjs.map +7 -0
- package/dist/frontend.d.ts +10 -0
- package/dist/frontend.d.ts.map +1 -0
- package/dist/genproto/buf/validate/validate_pb.d.ts +8491 -0
- package/dist/genproto/buf/validate/validate_pb.d.ts.map +1 -0
- package/dist/genproto/google/api/annotations_pb.d.ts +14 -0
- package/dist/genproto/google/api/annotations_pb.d.ts.map +1 -0
- package/dist/genproto/google/api/client_pb.d.ts +1432 -0
- package/dist/genproto/google/api/client_pb.d.ts.map +1 -0
- package/dist/genproto/google/api/http_pb.d.ts +843 -0
- package/dist/genproto/google/api/http_pb.d.ts.map +1 -0
- package/dist/genproto/google/api/launch_stage_pb.d.ts +94 -0
- package/dist/genproto/google/api/launch_stage_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/automations/v1/automations_pb.d.ts +1006 -0
- package/dist/genproto/mochabugapis/adapt/automations/v1/automations_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/exchange_pb.d.ts +77 -0
- package/dist/genproto/mochabugapis/adapt/graph/exchange_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/jtd_schema_pb.d.ts +401 -0
- package/dist/genproto/mochabugapis/adapt/graph/jtd_schema_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/receiver_pb.d.ts +69 -0
- package/dist/genproto/mochabugapis/adapt/graph/receiver_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/signal_binding_pb.d.ts +430 -0
- package/dist/genproto/mochabugapis/adapt/graph/signal_binding_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/signal_data_pb.d.ts +198 -0
- package/dist/genproto/mochabugapis/adapt/graph/signal_data_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.d.ts +161 -0
- package/dist/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/signal_format_pb.d.ts +305 -0
- package/dist/genproto/mochabugapis/adapt/graph/signal_format_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/transceiver_pb.d.ts +77 -0
- package/dist/genproto/mochabugapis/adapt/graph/transceiver_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/transmitter_pb.d.ts +120 -0
- package/dist/genproto/mochabugapis/adapt/graph/transmitter_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/vertex_metadata_pb.d.ts +99 -0
- package/dist/genproto/mochabugapis/adapt/graph/vertex_metadata_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/compound_services_pb.d.ts +347 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/compound_services_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/file_pb.d.ts +64 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/file_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/http_proxy_service_pb.d.ts +1282 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/http_proxy_service_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts +388 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.d.ts +805 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.d.ts +238 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.d.ts +241 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/service_settings_pb.d.ts +539 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/service_settings_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.d.ts +190 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts +269 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/runtime/v1/incoming_pb.d.ts +339 -0
- package/dist/genproto/mochabugapis/adapt/runtime/v1/incoming_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/runtime/v1/runtime_pb.d.ts +2721 -0
- package/dist/genproto/mochabugapis/adapt/runtime/v1/runtime_pb.d.ts.map +1 -0
- package/dist/genproto/mochabugapis/adapt/runtime/v1/store_pb.d.ts +872 -0
- package/dist/genproto/mochabugapis/adapt/runtime/v1/store_pb.d.ts.map +1 -0
- package/dist/grpcweb.d.ts +8 -0
- package/dist/grpcweb.d.ts.map +1 -0
- package/dist/mime.d.ts +11 -0
- package/dist/mime.d.ts.map +1 -0
- package/dist/router.d.ts +503 -0
- package/dist/router.d.ts.map +1 -0
- package/dist/router.spec.d.ts +2 -0
- package/dist/router.spec.d.ts.map +1 -0
- package/dist/signal-api.spec.d.ts +17 -0
- package/dist/signal-api.spec.d.ts.map +1 -0
- package/dist/types.d.ts +149 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +80 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth2_service_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/plugins/v1/oauth2_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,iDAAiD,EAAE,OAC+lJ,CAAC;AAEhqJ;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,gDAAgD,CAAC,GAAG;IACzF;;;;OAIG;IACH,SAAS,EAAE,eAAe,CAAC;IAE3B;;;;;OAKG;IACH,MAAM,EAAE,MAAM,EAAE,CAAC;IAEjB;;;;;;;;;;;OAWG;IACH,UAAU,CAAC,EAAE,cAAc,CAAC;IAE5B;;;;;;;;;;;OAWG;IACH,GAAG,CAAC,EAAE,aAAa,CAAC;IAEpB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;OAIG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uB,GAAG,+BAA+B,CAAC;AAEtN;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC,cAAc,EAAE,kBAAkB,CACb,CAAC"}
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { File, FileJson } from "./file_pb";
|
|
3
|
+
import type { Manifest, ManifestJson } from "./manifest_pb";
|
|
4
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
5
|
+
/**
|
|
6
|
+
* Describes the file mochabugapis/adapt/plugins/v1/plugins.proto.
|
|
7
|
+
*/
|
|
8
|
+
export declare const file_mochabugapis_adapt_plugins_v1_plugins: GenFile;
|
|
9
|
+
/**
|
|
10
|
+
* UploadPluginRequest represents a single request in the CreatePlugin streaming
|
|
11
|
+
* RPC. The client sends a series of UploadPluginRequest messages containing
|
|
12
|
+
* plugin data, starting with a manifest and followed by one or more files.
|
|
13
|
+
*
|
|
14
|
+
* @generated from message mochabugapis.adapt.plugins.v1.UploadPluginRequest
|
|
15
|
+
*/
|
|
16
|
+
export type UploadPluginRequest = Message<"mochabugapis.adapt.plugins.v1.UploadPluginRequest"> & {
|
|
17
|
+
/**
|
|
18
|
+
* 'data' is a oneof field that holds either a manifest or a file for the
|
|
19
|
+
* plugin.
|
|
20
|
+
*
|
|
21
|
+
* @generated from oneof mochabugapis.adapt.plugins.v1.UploadPluginRequest.data
|
|
22
|
+
*/
|
|
23
|
+
data: {
|
|
24
|
+
/**
|
|
25
|
+
* 'start' must be the first message of the stream
|
|
26
|
+
*
|
|
27
|
+
* @generated from field: mochabugapis.adapt.plugins.v1.StartUpload start = 1;
|
|
28
|
+
*/
|
|
29
|
+
value: StartUpload;
|
|
30
|
+
case: "start";
|
|
31
|
+
} | {
|
|
32
|
+
/**
|
|
33
|
+
* 'file' is a File contained within the plugin.
|
|
34
|
+
* It follows the manifest in the stream.
|
|
35
|
+
*
|
|
36
|
+
* @generated from field: mochabugapis.adapt.plugins.v1.File file = 2;
|
|
37
|
+
*/
|
|
38
|
+
value: File;
|
|
39
|
+
case: "file";
|
|
40
|
+
} | {
|
|
41
|
+
case: undefined;
|
|
42
|
+
value?: undefined;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* UploadPluginRequest represents a single request in the CreatePlugin streaming
|
|
47
|
+
* RPC. The client sends a series of UploadPluginRequest messages containing
|
|
48
|
+
* plugin data, starting with a manifest and followed by one or more files.
|
|
49
|
+
*
|
|
50
|
+
* @generated from message mochabugapis.adapt.plugins.v1.UploadPluginRequest
|
|
51
|
+
*/
|
|
52
|
+
export type UploadPluginRequestJson = {
|
|
53
|
+
/**
|
|
54
|
+
* 'start' must be the first message of the stream
|
|
55
|
+
*
|
|
56
|
+
* @generated from field: mochabugapis.adapt.plugins.v1.StartUpload start = 1;
|
|
57
|
+
*/
|
|
58
|
+
start?: StartUploadJson;
|
|
59
|
+
/**
|
|
60
|
+
* 'file' is a File contained within the plugin.
|
|
61
|
+
* It follows the manifest in the stream.
|
|
62
|
+
*
|
|
63
|
+
* @generated from field: mochabugapis.adapt.plugins.v1.File file = 2;
|
|
64
|
+
*/
|
|
65
|
+
file?: FileJson;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Describes the message mochabugapis.adapt.plugins.v1.UploadPluginRequest.
|
|
69
|
+
* Use `create(UploadPluginRequestSchema)` to create a new message.
|
|
70
|
+
*/
|
|
71
|
+
export declare const UploadPluginRequestSchema: GenMessage<UploadPluginRequest, {
|
|
72
|
+
jsonType: UploadPluginRequestJson;
|
|
73
|
+
}>;
|
|
74
|
+
/**
|
|
75
|
+
* The start message containing information about the files to be uploaded.
|
|
76
|
+
*
|
|
77
|
+
* @generated from message mochabugapis.adapt.plugins.v1.StartUpload
|
|
78
|
+
*/
|
|
79
|
+
export type StartUpload = Message<"mochabugapis.adapt.plugins.v1.StartUpload"> & {
|
|
80
|
+
/**
|
|
81
|
+
* 'manifest' is the Manifest describing the plugin.
|
|
82
|
+
* It must be the first message in the stream.
|
|
83
|
+
*
|
|
84
|
+
* @generated from field: mochabugapis.adapt.plugins.v1.Manifest manifest = 1;
|
|
85
|
+
*/
|
|
86
|
+
manifest?: Manifest;
|
|
87
|
+
/**
|
|
88
|
+
* The 'cdn_prefix' path prefix for the plugin files.
|
|
89
|
+
*
|
|
90
|
+
* @generated from field: optional string cdn_prefix = 2;
|
|
91
|
+
*/
|
|
92
|
+
cdnPrefix?: string;
|
|
93
|
+
/**
|
|
94
|
+
* The 'assets_prefix' path prefix for the plugin files.
|
|
95
|
+
*
|
|
96
|
+
* @generated from field: optional string assets_prefix = 3;
|
|
97
|
+
*/
|
|
98
|
+
assetsPrefix?: string;
|
|
99
|
+
/**
|
|
100
|
+
* The executor file path
|
|
101
|
+
*
|
|
102
|
+
* @generated from field: string executor_path = 4;
|
|
103
|
+
*/
|
|
104
|
+
executorPath: string;
|
|
105
|
+
/**
|
|
106
|
+
* Any additional wasm modules needed for the executor
|
|
107
|
+
*
|
|
108
|
+
* @generated from field: repeated string executor_wasm = 5;
|
|
109
|
+
*/
|
|
110
|
+
executorWasm: string[];
|
|
111
|
+
/**
|
|
112
|
+
* The configurator file path
|
|
113
|
+
*
|
|
114
|
+
* @generated from field: optional string configurator_path = 6;
|
|
115
|
+
*/
|
|
116
|
+
configuratorPath?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Any additional wasm modules needed for the executor
|
|
119
|
+
*
|
|
120
|
+
* @generated from field: repeated string configurator_wasm = 7;
|
|
121
|
+
*/
|
|
122
|
+
configuratorWasm: string[];
|
|
123
|
+
/**
|
|
124
|
+
* Whether we should copy-over previous system settings (if any) to the new
|
|
125
|
+
* plugin.
|
|
126
|
+
*
|
|
127
|
+
* @generated from field: optional bool copy_system_settings = 8;
|
|
128
|
+
*/
|
|
129
|
+
copySystemSettings?: boolean;
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* The start message containing information about the files to be uploaded.
|
|
133
|
+
*
|
|
134
|
+
* @generated from message mochabugapis.adapt.plugins.v1.StartUpload
|
|
135
|
+
*/
|
|
136
|
+
export type StartUploadJson = {
|
|
137
|
+
/**
|
|
138
|
+
* 'manifest' is the Manifest describing the plugin.
|
|
139
|
+
* It must be the first message in the stream.
|
|
140
|
+
*
|
|
141
|
+
* @generated from field: mochabugapis.adapt.plugins.v1.Manifest manifest = 1;
|
|
142
|
+
*/
|
|
143
|
+
manifest?: ManifestJson;
|
|
144
|
+
/**
|
|
145
|
+
* The 'cdn_prefix' path prefix for the plugin files.
|
|
146
|
+
*
|
|
147
|
+
* @generated from field: optional string cdn_prefix = 2;
|
|
148
|
+
*/
|
|
149
|
+
cdnPrefix?: string;
|
|
150
|
+
/**
|
|
151
|
+
* The 'assets_prefix' path prefix for the plugin files.
|
|
152
|
+
*
|
|
153
|
+
* @generated from field: optional string assets_prefix = 3;
|
|
154
|
+
*/
|
|
155
|
+
assetsPrefix?: string;
|
|
156
|
+
/**
|
|
157
|
+
* The executor file path
|
|
158
|
+
*
|
|
159
|
+
* @generated from field: string executor_path = 4;
|
|
160
|
+
*/
|
|
161
|
+
executorPath?: string;
|
|
162
|
+
/**
|
|
163
|
+
* Any additional wasm modules needed for the executor
|
|
164
|
+
*
|
|
165
|
+
* @generated from field: repeated string executor_wasm = 5;
|
|
166
|
+
*/
|
|
167
|
+
executorWasm?: string[];
|
|
168
|
+
/**
|
|
169
|
+
* The configurator file path
|
|
170
|
+
*
|
|
171
|
+
* @generated from field: optional string configurator_path = 6;
|
|
172
|
+
*/
|
|
173
|
+
configuratorPath?: string;
|
|
174
|
+
/**
|
|
175
|
+
* Any additional wasm modules needed for the executor
|
|
176
|
+
*
|
|
177
|
+
* @generated from field: repeated string configurator_wasm = 7;
|
|
178
|
+
*/
|
|
179
|
+
configuratorWasm?: string[];
|
|
180
|
+
/**
|
|
181
|
+
* Whether we should copy-over previous system settings (if any) to the new
|
|
182
|
+
* plugin.
|
|
183
|
+
*
|
|
184
|
+
* @generated from field: optional bool copy_system_settings = 8;
|
|
185
|
+
*/
|
|
186
|
+
copySystemSettings?: boolean;
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* Describes the message mochabugapis.adapt.plugins.v1.StartUpload.
|
|
190
|
+
* Use `create(StartUploadSchema)` to create a new message.
|
|
191
|
+
*/
|
|
192
|
+
export declare const StartUploadSchema: GenMessage<StartUpload, {
|
|
193
|
+
jsonType: StartUploadJson;
|
|
194
|
+
}>;
|
|
195
|
+
/**
|
|
196
|
+
* UploadPluginResponse represents the response from the CreatePlugin streaming
|
|
197
|
+
* RPC. The server sends a single CreatePluginResponse after successfully
|
|
198
|
+
* processing all UploadPluginResponse messages from the client.
|
|
199
|
+
*
|
|
200
|
+
* @generated from message mochabugapis.adapt.plugins.v1.UploadPluginResponse
|
|
201
|
+
*/
|
|
202
|
+
export type UploadPluginResponse = Message<"mochabugapis.adapt.plugins.v1.UploadPluginResponse"> & {};
|
|
203
|
+
/**
|
|
204
|
+
* UploadPluginResponse represents the response from the CreatePlugin streaming
|
|
205
|
+
* RPC. The server sends a single CreatePluginResponse after successfully
|
|
206
|
+
* processing all UploadPluginResponse messages from the client.
|
|
207
|
+
*
|
|
208
|
+
* @generated from message mochabugapis.adapt.plugins.v1.UploadPluginResponse
|
|
209
|
+
*/
|
|
210
|
+
export type UploadPluginResponseJson = {};
|
|
211
|
+
/**
|
|
212
|
+
* Describes the message mochabugapis.adapt.plugins.v1.UploadPluginResponse.
|
|
213
|
+
* Use `create(UploadPluginResponseSchema)` to create a new message.
|
|
214
|
+
*/
|
|
215
|
+
export declare const UploadPluginResponseSchema: GenMessage<UploadPluginResponse, {
|
|
216
|
+
jsonType: UploadPluginResponseJson;
|
|
217
|
+
}>;
|
|
218
|
+
/**
|
|
219
|
+
* PluginService provides a service for uploading a plugin.
|
|
220
|
+
*
|
|
221
|
+
* @generated from service mochabugapis.adapt.plugins.v1.PluginService
|
|
222
|
+
*/
|
|
223
|
+
export declare const PluginService: GenService<{
|
|
224
|
+
/**
|
|
225
|
+
* UploadPlugin is a streaming RPC method that allows uploading a plugin in
|
|
226
|
+
* chunks. The client can send multiple UploadPluginRequest messages, and the
|
|
227
|
+
* server will respond with a single UploadPluginResponse after processing all
|
|
228
|
+
* requests.
|
|
229
|
+
*
|
|
230
|
+
* @generated from rpc mochabugapis.adapt.plugins.v1.PluginService.UploadPlugin
|
|
231
|
+
*/
|
|
232
|
+
uploadPlugin: {
|
|
233
|
+
methodKind: "client_streaming";
|
|
234
|
+
input: typeof UploadPluginRequestSchema;
|
|
235
|
+
output: typeof UploadPluginResponseSchema;
|
|
236
|
+
};
|
|
237
|
+
}>;
|
|
238
|
+
//# sourceMappingURL=plugins_pb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugins_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAKpF,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAEhD,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,0CAA0C,EAAE,OAC0zD,CAAC;AAEp3D;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,mDAAmD,CAAC,GAAG;IAC/F;;;;;OAKG;IACH,IAAI,EAAE;QACJ;;;;WAIG;QACH,KAAK,EAAE,WAAW,CAAC;QACnB,IAAI,EAAE,OAAO,CAAC;KACf,GAAG;QACF;;;;;WAKG;QACH,KAAK,EAAE,IAAI,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;KACd,GAAG;QA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C,EAAE,MAAM,CAAC;IAE1B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAE5B;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,UAAU,CAAC,WAAW,EAAE;IAAC,QAAQ,EAAE,eAAe,CAAA;CAAC,CACvB,CAAC;AAE7D;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,oDAAoD,CAAC,GAAG,EAClG,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,wBAAwB,GAAG,EACtC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,UAAU,CAAC,oBAAoB,EAAE;IAAC,QAAQ,EAAE,wBAAwB,CAAA;CAAC,CAClD,CAAC;AAE7D;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,UAAU,CAAC;IACrC;;;;;;;OAOG;IACH,YAAY,EAAE;QACZ,UAAU,EAAE,kBAAkB,CAAC;QAC/B,KAAK,EAAE,OAAO,yBAAyB,CAAC;QACxC,MAAM,EAAE,OAAO,0BAA0B,CAAC;KAC3C,CAAC;CACH,CAC2D,CAAC"}
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { GroupedDefinition, GroupedDefinitionJson, OneOfDefinition, OneOfDefinitionJson } from "./compound_services_pb";
|
|
3
|
+
import type { HttpProxyDefinition, HttpProxyDefinitionJson } from "./http_proxy_service_pb";
|
|
4
|
+
import type { Oauth2Definition, Oauth2DefinitionJson } from "./oauth2_service_pb";
|
|
5
|
+
import type { VariableDefinition, VariableDefinitionJson } from "./variable_service_pb";
|
|
6
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
7
|
+
/**
|
|
8
|
+
* Describes the file mochabugapis/adapt/plugins/v1/service_definition.proto.
|
|
9
|
+
*/
|
|
10
|
+
export declare const file_mochabugapis_adapt_plugins_v1_service_definition: GenFile;
|
|
11
|
+
/**
|
|
12
|
+
* The service definition - a flat declaration of a service that can be referenced by bindings.
|
|
13
|
+
*
|
|
14
|
+
* ## Architecture Principle: Service Definitions Are Always Flat
|
|
15
|
+
*
|
|
16
|
+
* Service definitions exist ONLY at the Manifest.service_definitions level and are NEVER nested.
|
|
17
|
+
* Each definition has a unique name and a specific type (Variable, OAuth2, HTTP Proxy, Group, OneOf).
|
|
18
|
+
*
|
|
19
|
+
* ## Referencing from Service Lists
|
|
20
|
+
*
|
|
21
|
+
* Service lists (Manifest.system_services and Vertex.user_services) are string arrays that
|
|
22
|
+
* directly reference service definitions by name. Each string must match a ServiceDefinition's `name`.
|
|
23
|
+
*
|
|
24
|
+
* ## Service Types
|
|
25
|
+
*
|
|
26
|
+
* - **VariableDefinition**: JSON variable with schema validation
|
|
27
|
+
* - **Oauth2Definition**: OAuth2 authentication (various grant types)
|
|
28
|
+
* - **HttpProxyDefinition**: HTTP proxy with TLS and header injection
|
|
29
|
+
* - **GroupedDefinition**: References multiple other flat definitions as a group
|
|
30
|
+
* - **OneOfDefinition**: Allows user to choose one from multiple flat definitions
|
|
31
|
+
*
|
|
32
|
+
* ## Example
|
|
33
|
+
*
|
|
34
|
+
* ```protobuf
|
|
35
|
+
* // In Manifest.service_definitions
|
|
36
|
+
* [
|
|
37
|
+
* { name: "api_key", variable: { schema: {...} } },
|
|
38
|
+
* { name: "oauth", oauth2: { grant_type: AUTHORIZATION_CODE, ... } },
|
|
39
|
+
* { name: "proxy", http_proxy: { allowed_hosts: [...], ... } }
|
|
40
|
+
* ]
|
|
41
|
+
*
|
|
42
|
+
* // Referenced in service lists (strings matching service definition names)
|
|
43
|
+
* system_services: ["oauth"]
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @generated from message mochabugapis.adapt.plugins.v1.ServiceDefinition
|
|
47
|
+
*/
|
|
48
|
+
export type ServiceDefinition = Message<"mochabugapis.adapt.plugins.v1.ServiceDefinition"> & {
|
|
49
|
+
/**
|
|
50
|
+
* 'name' is the identifier of the service, referenced in code
|
|
51
|
+
*
|
|
52
|
+
* @generated from field: string name = 1;
|
|
53
|
+
*/
|
|
54
|
+
name: string;
|
|
55
|
+
/**
|
|
56
|
+
* 'label' is a human-friendly label shown in the UI
|
|
57
|
+
*
|
|
58
|
+
* @generated from field: string label = 2;
|
|
59
|
+
*/
|
|
60
|
+
label: string;
|
|
61
|
+
/**
|
|
62
|
+
* 'description' is an optional detailed description of the service
|
|
63
|
+
*
|
|
64
|
+
* @generated from field: optional string description = 3;
|
|
65
|
+
*/
|
|
66
|
+
description?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Whether this service is optional.
|
|
69
|
+
*
|
|
70
|
+
* If false (default):
|
|
71
|
+
* - User MUST configure this service during installation
|
|
72
|
+
* - Plugin can safely assume the service exists
|
|
73
|
+
*
|
|
74
|
+
* If true:
|
|
75
|
+
* - User MAY skip configuring this service
|
|
76
|
+
* - Plugin must handle the service being absent
|
|
77
|
+
* - Useful for optional features (analytics, monitoring, etc.)
|
|
78
|
+
*
|
|
79
|
+
* @generated from field: optional bool optional = 4;
|
|
80
|
+
*/
|
|
81
|
+
optional?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* The actual type of service that the definition is
|
|
84
|
+
*
|
|
85
|
+
* @generated from oneof mochabugapis.adapt.plugins.v1.ServiceDefinition.type
|
|
86
|
+
*/
|
|
87
|
+
type: {
|
|
88
|
+
/**
|
|
89
|
+
* Variable service containing arbitrary JSON
|
|
90
|
+
*
|
|
91
|
+
* @generated from field: mochabugapis.adapt.plugins.v1.VariableDefinition variable = 5;
|
|
92
|
+
*/
|
|
93
|
+
value: VariableDefinition;
|
|
94
|
+
case: "variable";
|
|
95
|
+
} | {
|
|
96
|
+
/**
|
|
97
|
+
* An OAuth2 service
|
|
98
|
+
*
|
|
99
|
+
* @generated from field: mochabugapis.adapt.plugins.v1.Oauth2Definition oauth2 = 6;
|
|
100
|
+
*/
|
|
101
|
+
value: Oauth2Definition;
|
|
102
|
+
case: "oauth2";
|
|
103
|
+
} | {
|
|
104
|
+
/**
|
|
105
|
+
* HTTP proxy service with TLS and header injection
|
|
106
|
+
*
|
|
107
|
+
* @generated from field: mochabugapis.adapt.plugins.v1.HttpProxyDefinition http_proxy = 7;
|
|
108
|
+
*/
|
|
109
|
+
value: HttpProxyDefinition;
|
|
110
|
+
case: "httpProxy";
|
|
111
|
+
} | {
|
|
112
|
+
/**
|
|
113
|
+
* A group definition, requiring it to be submitted as a group
|
|
114
|
+
*
|
|
115
|
+
* @generated from field: mochabugapis.adapt.plugins.v1.GroupedDefinition group = 8;
|
|
116
|
+
*/
|
|
117
|
+
value: GroupedDefinition;
|
|
118
|
+
case: "group";
|
|
119
|
+
} | {
|
|
120
|
+
/**
|
|
121
|
+
* A oneof definition, allowing one of several sub-definitions to be chosen
|
|
122
|
+
*
|
|
123
|
+
* @generated from field: mochabugapis.adapt.plugins.v1.OneOfDefinition oneof = 9;
|
|
124
|
+
*/
|
|
125
|
+
value: OneOfDefinition;
|
|
126
|
+
case: "oneof";
|
|
127
|
+
} | {
|
|
128
|
+
case: undefined;
|
|
129
|
+
value?: undefined;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* The service definition - a flat declaration of a service that can be referenced by bindings.
|
|
134
|
+
*
|
|
135
|
+
* ## Architecture Principle: Service Definitions Are Always Flat
|
|
136
|
+
*
|
|
137
|
+
* Service definitions exist ONLY at the Manifest.service_definitions level and are NEVER nested.
|
|
138
|
+
* Each definition has a unique name and a specific type (Variable, OAuth2, HTTP Proxy, Group, OneOf).
|
|
139
|
+
*
|
|
140
|
+
* ## Referencing from Service Lists
|
|
141
|
+
*
|
|
142
|
+
* Service lists (Manifest.system_services and Vertex.user_services) are string arrays that
|
|
143
|
+
* directly reference service definitions by name. Each string must match a ServiceDefinition's `name`.
|
|
144
|
+
*
|
|
145
|
+
* ## Service Types
|
|
146
|
+
*
|
|
147
|
+
* - **VariableDefinition**: JSON variable with schema validation
|
|
148
|
+
* - **Oauth2Definition**: OAuth2 authentication (various grant types)
|
|
149
|
+
* - **HttpProxyDefinition**: HTTP proxy with TLS and header injection
|
|
150
|
+
* - **GroupedDefinition**: References multiple other flat definitions as a group
|
|
151
|
+
* - **OneOfDefinition**: Allows user to choose one from multiple flat definitions
|
|
152
|
+
*
|
|
153
|
+
* ## Example
|
|
154
|
+
*
|
|
155
|
+
* ```protobuf
|
|
156
|
+
* // In Manifest.service_definitions
|
|
157
|
+
* [
|
|
158
|
+
* { name: "api_key", variable: { schema: {...} } },
|
|
159
|
+
* { name: "oauth", oauth2: { grant_type: AUTHORIZATION_CODE, ... } },
|
|
160
|
+
* { name: "proxy", http_proxy: { allowed_hosts: [...], ... } }
|
|
161
|
+
* ]
|
|
162
|
+
*
|
|
163
|
+
* // Referenced in service lists (strings matching service definition names)
|
|
164
|
+
* system_services: ["oauth"]
|
|
165
|
+
* ```
|
|
166
|
+
*
|
|
167
|
+
* @generated from message mochabugapis.adapt.plugins.v1.ServiceDefinition
|
|
168
|
+
*/
|
|
169
|
+
export type ServiceDefinitionJson = {
|
|
170
|
+
/**
|
|
171
|
+
* 'name' is the identifier of the service, referenced in code
|
|
172
|
+
*
|
|
173
|
+
* @generated from field: string name = 1;
|
|
174
|
+
*/
|
|
175
|
+
name?: string;
|
|
176
|
+
/**
|
|
177
|
+
* 'label' is a human-friendly label shown in the UI
|
|
178
|
+
*
|
|
179
|
+
* @generated from field: string label = 2;
|
|
180
|
+
*/
|
|
181
|
+
label?: string;
|
|
182
|
+
/**
|
|
183
|
+
* 'description' is an optional detailed description of the service
|
|
184
|
+
*
|
|
185
|
+
* @generated from field: optional string description = 3;
|
|
186
|
+
*/
|
|
187
|
+
description?: string;
|
|
188
|
+
/**
|
|
189
|
+
* Whether this service is optional.
|
|
190
|
+
*
|
|
191
|
+
* If false (default):
|
|
192
|
+
* - User MUST configure this service during installation
|
|
193
|
+
* - Plugin can safely assume the service exists
|
|
194
|
+
*
|
|
195
|
+
* If true:
|
|
196
|
+
* - User MAY skip configuring this service
|
|
197
|
+
* - Plugin must handle the service being absent
|
|
198
|
+
* - Useful for optional features (analytics, monitoring, etc.)
|
|
199
|
+
*
|
|
200
|
+
* @generated from field: optional bool optional = 4;
|
|
201
|
+
*/
|
|
202
|
+
optional?: boolean;
|
|
203
|
+
/**
|
|
204
|
+
* Variable service containing arbitrary JSON
|
|
205
|
+
*
|
|
206
|
+
* @generated from field: mochabugapis.adapt.plugins.v1.VariableDefinition variable = 5;
|
|
207
|
+
*/
|
|
208
|
+
variable?: VariableDefinitionJson;
|
|
209
|
+
/**
|
|
210
|
+
* An OAuth2 service
|
|
211
|
+
*
|
|
212
|
+
* @generated from field: mochabugapis.adapt.plugins.v1.Oauth2Definition oauth2 = 6;
|
|
213
|
+
*/
|
|
214
|
+
oauth2?: Oauth2DefinitionJson;
|
|
215
|
+
/**
|
|
216
|
+
* HTTP proxy service with TLS and header injection
|
|
217
|
+
*
|
|
218
|
+
* @generated from field: mochabugapis.adapt.plugins.v1.HttpProxyDefinition http_proxy = 7;
|
|
219
|
+
*/
|
|
220
|
+
httpProxy?: HttpProxyDefinitionJson;
|
|
221
|
+
/**
|
|
222
|
+
* A group definition, requiring it to be submitted as a group
|
|
223
|
+
*
|
|
224
|
+
* @generated from field: mochabugapis.adapt.plugins.v1.GroupedDefinition group = 8;
|
|
225
|
+
*/
|
|
226
|
+
group?: GroupedDefinitionJson;
|
|
227
|
+
/**
|
|
228
|
+
* A oneof definition, allowing one of several sub-definitions to be chosen
|
|
229
|
+
*
|
|
230
|
+
* @generated from field: mochabugapis.adapt.plugins.v1.OneOfDefinition oneof = 9;
|
|
231
|
+
*/
|
|
232
|
+
oneof?: OneOfDefinitionJson;
|
|
233
|
+
};
|
|
234
|
+
/**
|
|
235
|
+
* Describes the message mochabugapis.adapt.plugins.v1.ServiceDefinition.
|
|
236
|
+
* Use `create(ServiceDefinitionSchema)` to create a new message.
|
|
237
|
+
*/
|
|
238
|
+
export declare const ServiceDefinitionSchema: GenMessage<ServiceDefinition, {
|
|
239
|
+
jsonType: ServiceDefinitionJson;
|
|
240
|
+
}>;
|
|
241
|
+
//# sourceMappingURL=service_definition_pb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service_definition_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7H,OAAO,KAAK,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAE5F,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAElF,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAExF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,qDAAqD,EAAE,OACyhC,CAAC;AAE9lC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,iDAAiD,CAAC,GAAG;IAC3F;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,IAAI,EAAE;QACJ;;;;WAIG;QACH,KAAK,E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