UNPKG

@mochabug/adapt-web

Version:

The client library to execute automations, without effort, in a browser environment

88 lines 5.47 kB
"use strict"; // Copyright 2023, mochabug AB // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); exports.SignalBinding_ErrorSchema = exports.SignalBinding_Error = exports.SignalBindingSchema = exports.file_mochabugapis_adapt_graph_signal_binding = void 0; const codegenv2_1 = require("@bufbuild/protobuf/codegenv2"); const validate_pb_js_1 = require("../../../buf/validate/validate_pb.js"); const signal_data_pb_js_1 = require("./signal_data_pb.js"); const signal_format_pb_js_1 = require("./signal_format_pb.js"); /** * Describes the file mochabugapis/adapt/graph/signal_binding.proto. */ exports.file_mochabugapis_adapt_graph_signal_binding = (0, codegenv2_1.fileDesc)("Ci1tb2NoYWJ1Z2FwaXMvYWRhcHQvZ3JhcGgvc2lnbmFsX2JpbmRpbmcucHJvdG8SGG1vY2hhYnVnYXBpcy5hZGFwdC5ncmFwaCKWBgoNU2lnbmFsQmluZGluZxIzCgRuYW1lGAEgASgJQiW6SCJyIBABGDIyGl5bXyRhLXpBLVpdW18kYS16QS1aMC05XSokEhwKBWxhYmVsGAIgASgJQgi6SAVyAxj6AUgBiAEBEiIKC2Rlc2NyaXB0aW9uGAMgASgJQgi6SAVyAxjoB0gCiAEBEhUKCG9wdGlvbmFsGAQgASgISAOIAQESQwoHYWNjZXB0cxgFIAMoCzImLm1vY2hhYnVnYXBpcy5hZGFwdC5ncmFwaC5TaWduYWxGb3JtYXRCCrpIB5IBBAgBEDISXgoJcmVmZXJlbmNlGAYgASgJQkm6SEZyRBj6ATI/XlswLTlhLXpdezR9L1tfJGEtekEtWl1bXyRhLXpBLVowLTldKi9bXyRhLXpBLVpdW18kYS16QS1aMC05XSokSAAS4AEKCGNvbnN0YW50GAcgASgLMiQubW9jaGFidWdhcGlzLmFkYXB0LmdyYXBoLlNpZ25hbERhdGFCpQG6SKEBugGdAQoZY29uc3RhbnQubWF4X3BheWxvYWRfc2l6ZRJmQ29uc3RhbnQgc2lnbmFsIGRhdGEgY2Fubm90IGV4Y2VlZCA1MEtCICg1MTIwMCBieXRlcykuIEZvciBsYXJnZXIgZGF0YSwgdXNlIHNpZ25hbCByZWZlcmVuY2VzIGluc3RlYWQuGhhzaXplKHRoaXMuZGF0YSkgPD0gNTEyMDBIABJLCgVlcnJvchgIIAEoDjItLm1vY2hhYnVnYXBpcy5hZGFwdC5ncmFwaC5TaWduYWxCaW5kaW5nLkVycm9yQgi6SAWCAQIgAEgEiAEBImYKBUVycm9yEhUKEUVSUk9SX1VOU1BFQ0lGSUVEEAASEQoNRVJST1JfVU5CT1VORBABEhgKFEVSUk9SX0lOVkFMSURfU09VUkNFEAISGQoVRVJST1JfU0NIRU1BX01JU01BVENIEANCCQoHYmluZGluZ0IICgZfbGFiZWxCDgoMX2Rlc2NyaXB0aW9uQgsKCV9vcHRpb25hbEIICgZfZXJyb3JiBnByb3RvMw", [validate_pb_js_1.file_buf_validate_validate, signal_data_pb_js_1.file_mochabugapis_adapt_graph_signal_data, signal_format_pb_js_1.file_mochabugapis_adapt_graph_signal_format]); /** * Describes the message mochabugapis.adapt.graph.SignalBinding. * Use `create(SignalBindingSchema)` to create a new message. */ exports.SignalBindingSchema = (0, codegenv2_1.messageDesc)(exports.file_mochabugapis_adapt_graph_signal_binding, 0); /** * Error codes that can occur during binding validation or resolution. * These errors are typically set by the graph validation system. * * @generated from enum mochabugapis.adapt.graph.SignalBinding.Error */ var SignalBinding_Error; (function (SignalBinding_Error) { /** * No error specified. This value should never be explicitly set as it indicates * the absence of an error. The error field should be unset for valid bindings. * * @generated from enum value: ERROR_UNSPECIFIED = 0; */ SignalBinding_Error[SignalBinding_Error["UNSPECIFIED"] = 0] = "UNSPECIFIED"; /** * The binding is unbound (no reference or constant provided) despite being required. * This occurs when: * - The binding is not marked as optional * - Neither 'reference' nor 'constant' is set in the binding oneof * * Resolution: Provide either a signal reference or a constant value. * * @generated from enum value: ERROR_UNBOUND = 1; */ SignalBinding_Error[SignalBinding_Error["UNBOUND"] = 1] = "UNBOUND"; /** * The referenced signal source does not exist in the graph. * This occurs when: * - The reference points to a non-existent vertex ID * - The transmitter name doesn't exist on the referenced vertex * - The signal name doesn't exist on the specified transmitter * * Resolution: Verify the signal reference path and ensure the source vertex, * transmitter, and signal all exist. * * @generated from enum value: ERROR_INVALID_SOURCE = 2; */ SignalBinding_Error[SignalBinding_Error["INVALID_SOURCE"] = 2] = "INVALID_SOURCE"; /** * The signal format doesn't match any of the accepted formats. * This occurs when: * - The source signal's format (from SignalDescriptor) doesn't match any * format in the 'accepts' list * - JTD schema validation fails * - MIME type mismatch (including wildcard matching failures) * * Resolution: Either change the binding to accept the source signal's format, * or use a different signal source with a compatible format. * * @generated from enum value: ERROR_SCHEMA_MISMATCH = 3; */ SignalBinding_Error[SignalBinding_Error["SCHEMA_MISMATCH"] = 3] = "SCHEMA_MISMATCH"; })(SignalBinding_Error || (exports.SignalBinding_Error = SignalBinding_Error = {})); /** * Describes the enum mochabugapis.adapt.graph.SignalBinding.Error. */ exports.SignalBinding_ErrorSchema = (0, codegenv2_1.enumDesc)(exports.file_mochabugapis_adapt_graph_signal_binding, 0, 0); //# sourceMappingURL=signal_binding_pb.js.map