@mochabug/adapt-plugin-builder
Version:
This encapsulate the building an bundling logic for mochabug adapt plugins
92 lines • 2.6 kB
TypeScript
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import type { Value, ValueJson } from "@bufbuild/protobuf/wkt";
import type { Oauth2Config, Oauth2ConfigJson } from "./oauth2_service_pb";
import type { TlsConfig, TlsConfigJson } from "./tls_service_pb";
import type { Message } from "@bufbuild/protobuf";
/**
* Describes the file mochabugapis/adapt/plugins/v1/oneof_service.proto.
*/
export declare const file_mochabugapis_adapt_plugins_v1_oneof_service: GenFile;
/**
* The oneof state
*
* @generated from message mochabugapis.adapt.plugins.v1.OneOfConfig
*/
export type OneOfConfig = Message<"mochabugapis.adapt.plugins.v1.OneOfConfig"> & {
/**
* The selected service
*
* @generated from field: optional string selected = 1;
*/
selected?: string;
/**
* The corresponding value
*
* @generated from oneof mochabugapis.adapt.plugins.v1.OneOfConfig.value
*/
value: {
/**
* The oauth2 state
*
* @generated from field: mochabugapis.adapt.plugins.v1.Oauth2Config oauth2 = 2;
*/
value: Oauth2Config;
case: "oauth2";
} | {
/**
* The tls state
*
* @generated from field: mochabugapis.adapt.plugins.v1.TlsConfig tls = 3;
*/
value: TlsConfig;
case: "tls";
} | {
/**
* The variable state
*
* @generated from field: google.protobuf.Value variable = 4;
*/
value: Value;
case: "variable";
} | {
case: undefined;
value?: undefined;
};
};
/**
* The oneof state
*
* @generated from message mochabugapis.adapt.plugins.v1.OneOfConfig
*/
export type OneOfConfigJson = {
/**
* The selected service
*
* @generated from field: optional string selected = 1;
*/
selected?: string;
/**
* The oauth2 state
*
* @generated from field: mochabugapis.adapt.plugins.v1.Oauth2Config oauth2 = 2;
*/
oauth2?: Oauth2ConfigJson;
/**
* The tls state
*
* @generated from field: mochabugapis.adapt.plugins.v1.TlsConfig tls = 3;
*/
tls?: TlsConfigJson;
/**
* The variable state
*
* @generated from field: google.protobuf.Value variable = 4;
*/
variable?: ValueJson;
};
/**
* Describes the message mochabugapis.adapt.plugins.v1.OneOfConfig.
* Use `create(OneOfConfigSchema)` to create a new message.
*/
export declare const OneOfConfigSchema: GenMessage<OneOfConfig, OneOfConfigJson>;
//# sourceMappingURL=oneof_service_pb.d.ts.map