@mochabug/adaptkit 1.0.0-rc.26 → 1.0.0-rc.28

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 (30) hide show
  1. package/bin/genproto/mochabugapis/adapt/graph/signal_binding_pb.d.ts.map +1 -1
  2. package/bin/genproto/mochabugapis/adapt/graph/vertex_metadata_pb.d.ts.map +1 -1
  3. package/bin/genproto/mochabugapis/adapt/plugins/v1/compound_services_pb.d.ts +423 -0
  4. package/bin/genproto/mochabugapis/adapt/plugins/v1/compound_services_pb.d.ts.map +1 -0
  5. package/bin/genproto/mochabugapis/adapt/plugins/v1/file_pb.d.ts.map +1 -1
  6. package/bin/genproto/mochabugapis/adapt/plugins/v1/http_proxy_service_pb.d.ts +1282 -0
  7. package/bin/genproto/mochabugapis/adapt/plugins/v1/http_proxy_service_pb.d.ts.map +1 -0
  8. package/bin/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts +184 -21
  9. package/bin/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts.map +1 -1
  10. package/bin/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.d.ts +86 -2
  11. package/bin/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.d.ts.map +1 -1
  12. package/bin/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.d.ts.map +1 -1
  13. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.d.ts +141 -18
  14. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.d.ts.map +1 -1
  15. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_settings_pb.d.ts +539 -0
  16. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_settings_pb.d.ts.map +1 -0
  17. package/bin/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.d.ts +130 -2
  18. package/bin/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.d.ts.map +1 -1
  19. package/bin/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts +36 -9
  20. package/bin/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts.map +1 -1
  21. package/bin/index.js +78 -78
  22. package/bin/index.js.map +3 -3
  23. package/bin/utils.d.ts.map +1 -1
  24. package/package.json +7 -6
  25. package/bin/genproto/mochabugapis/adapt/plugins/v1/oneof_service_pb.d.ts +0 -94
  26. package/bin/genproto/mochabugapis/adapt/plugins/v1/oneof_service_pb.d.ts.map +0 -1
  27. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_binding_pb.d.ts +0 -138
  28. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_binding_pb.d.ts.map +0 -1
  29. package/bin/genproto/mochabugapis/adapt/plugins/v1/tls_service_pb.d.ts +0 -151
  30. package/bin/genproto/mochabugapis/adapt/plugins/v1/tls_service_pb.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0DAA0D,CAAC;AAC5F,OAAO,EACL,cAAc,EAEf,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,QAAQ,EAET,MAAM,sDAAsD,CAAC;AAE9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gEAAgE,CAAC;AAMnG,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAW9C;AAED,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,QAI1D;AAED,wBAAsB,YAAY,CAChC,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAoI1B;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE5C;AAED,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,QAAQ,QAsEvD;AAGD,wBAAsB,6BAA6B,CACjD,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26",
3
+ "version": "1.0.0-rc.28",
4
4
  "description": "A cmd to create, emulate and publish Mochabug Adapt plugins",
5
5
  "main": "bin/index.js",
6
6
  "type": "module",
@@ -36,18 +36,19 @@
36
36
  "author": "Mikael Hedberg",
37
37
  "license": "Apache-2.0",
38
38
  "devDependencies": {
39
- "@types/express": "^5.0.3",
39
+ "@types/express": "^5.0.4",
40
40
  "@types/figlet": "^1.7.0",
41
- "@types/node": "^24.7.0",
41
+ "@types/node": "^24.9.1",
42
42
  "@types/semver": "^7.7.1",
43
43
  "@types/update-notifier": "^6.0.8",
44
- "esbuild": "^0.25.10",
44
+ "esbuild": "^0.25.11",
45
45
  "typescript": "^5.9.3"
46
46
  },
47
47
  "dependencies": {
48
+ "@bufbuild/protovalidate": "^1.0.0",
48
49
  "@connectrpc/connect": "^2.1.0",
49
50
  "@connectrpc/connect-node": "^2.1.0",
50
- "@inquirer/prompts": "^7.8.6",
51
+ "@inquirer/prompts": "^7.9.0",
51
52
  "ajv": "^8.17.1",
52
53
  "chalk": "^5.6.2",
53
54
  "commander": "^14.0.1",
@@ -63,4 +64,4 @@
63
64
  "sharp": "^0.34.4",
64
65
  "update-notifier": "^7.3.1"
65
66
  }
66
- }
67
+ }
@@ -1,94 +0,0 @@
1
- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
- import type { Value, ValueJson } from "@bufbuild/protobuf/wkt";
3
- import type { Oauth2Config, Oauth2ConfigJson } from "./oauth2_service_pb";
4
- import type { TlsConfig, TlsConfigJson } from "./tls_service_pb";
5
- import type { Message } from "@bufbuild/protobuf";
6
- /**
7
- * Describes the file mochabugapis/adapt/plugins/v1/oneof_service.proto.
8
- */
9
- export declare const file_mochabugapis_adapt_plugins_v1_oneof_service: GenFile;
10
- /**
11
- * The oneof state
12
- *
13
- * @generated from message mochabugapis.adapt.plugins.v1.OneOfConfig
14
- */
15
- export type OneOfConfig = Message<"mochabugapis.adapt.plugins.v1.OneOfConfig"> & {
16
- /**
17
- * The selected service
18
- *
19
- * @generated from field: optional string selected = 1;
20
- */
21
- selected?: string;
22
- /**
23
- * The corresponding value
24
- *
25
- * @generated from oneof mochabugapis.adapt.plugins.v1.OneOfConfig.value
26
- */
27
- value: {
28
- /**
29
- * The oauth2 state
30
- *
31
- * @generated from field: mochabugapis.adapt.plugins.v1.Oauth2Config oauth2 = 2;
32
- */
33
- value: Oauth2Config;
34
- case: "oauth2";
35
- } | {
36
- /**
37
- * The tls state
38
- *
39
- * @generated from field: mochabugapis.adapt.plugins.v1.TlsConfig tls = 3;
40
- */
41
- value: TlsConfig;
42
- case: "tls";
43
- } | {
44
- /**
45
- * The variable state
46
- *
47
- * @generated from field: google.protobuf.Value variable = 4;
48
- */
49
- value: Value;
50
- case: "variable";
51
- } | {
52
- case: undefined;
53
- value?: undefined;
54
- };
55
- };
56
- /**
57
- * The oneof state
58
- *
59
- * @generated from message mochabugapis.adapt.plugins.v1.OneOfConfig
60
- */
61
- export type OneOfConfigJson = {
62
- /**
63
- * The selected service
64
- *
65
- * @generated from field: optional string selected = 1;
66
- */
67
- selected?: string;
68
- /**
69
- * The oauth2 state
70
- *
71
- * @generated from field: mochabugapis.adapt.plugins.v1.Oauth2Config oauth2 = 2;
72
- */
73
- oauth2?: Oauth2ConfigJson;
74
- /**
75
- * The tls state
76
- *
77
- * @generated from field: mochabugapis.adapt.plugins.v1.TlsConfig tls = 3;
78
- */
79
- tls?: TlsConfigJson;
80
- /**
81
- * The variable state
82
- *
83
- * @generated from field: google.protobuf.Value variable = 4;
84
- */
85
- variable?: ValueJson;
86
- };
87
- /**
88
- * Describes the message mochabugapis.adapt.plugins.v1.OneOfConfig.
89
- * Use `create(OneOfConfigSchema)` to create a new message.
90
- */
91
- export declare const OneOfConfigSchema: GenMessage<OneOfConfig, {
92
- jsonType: OneOfConfigJson;
93
- }>;
94
- //# sourceMappingURL=oneof_service_pb.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"oneof_service_pb.d.ts","sourceRoot":"","sources":["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AAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,UAAU,CAAC,WAAW,EAAE;IAAC,QAAQ,EAAE,eAAe,CAAA;CAAC,CACjB,CAAC"}
@@ -1,138 +0,0 @@
1
- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
- import type { Message } from "@bufbuild/protobuf";
3
- /**
4
- * Describes the file mochabugapis/adapt/plugins/v1/service_binding.proto.
5
- */
6
- export declare const file_mochabugapis_adapt_plugins_v1_service_binding: GenFile;
7
- /**
8
- * A binding for a service. It can either reference a single service (via 'name')
9
- * or specify a one‑of group of available services (via 'one_of_binding').
10
- * The binding can also be marked as optional.
11
- *
12
- * @generated from message mochabugapis.adapt.plugins.v1.ServiceBinding
13
- */
14
- export type ServiceBinding = Message<"mochabugapis.adapt.plugins.v1.ServiceBinding"> & {
15
- /**
16
- * The binding name is what the plugin is referring to internally when using the service
17
- *
18
- * @generated from field: string name = 1;
19
- */
20
- name: string;
21
- /**
22
- * The actual binding
23
- *
24
- * @generated from oneof mochabugapis.adapt.plugins.v1.ServiceBinding.binding
25
- */
26
- binding: {
27
- /**
28
- * A direct reference to a service definition.
29
- *
30
- * @generated from field: string service = 2;
31
- */
32
- value: string;
33
- case: "service";
34
- } | {
35
- /**
36
- * A one-of binding: a list of service choices.
37
- *
38
- * @generated from field: mochabugapis.adapt.plugins.v1.OneOfBinding one_of = 3;
39
- */
40
- value: OneOfBinding;
41
- case: "oneOf";
42
- } | {
43
- case: undefined;
44
- value?: undefined;
45
- };
46
- /**
47
- * Whether the binding is optional.
48
- *
49
- * @generated from field: optional bool optional = 4;
50
- */
51
- optional?: boolean;
52
- };
53
- /**
54
- * A binding for a service. It can either reference a single service (via 'name')
55
- * or specify a one‑of group of available services (via 'one_of_binding').
56
- * The binding can also be marked as optional.
57
- *
58
- * @generated from message mochabugapis.adapt.plugins.v1.ServiceBinding
59
- */
60
- export type ServiceBindingJson = {
61
- /**
62
- * The binding name is what the plugin is referring to internally when using the service
63
- *
64
- * @generated from field: string name = 1;
65
- */
66
- name?: string;
67
- /**
68
- * A direct reference to a service definition.
69
- *
70
- * @generated from field: string service = 2;
71
- */
72
- service?: string;
73
- /**
74
- * A one-of binding: a list of service choices.
75
- *
76
- * @generated from field: mochabugapis.adapt.plugins.v1.OneOfBinding one_of = 3;
77
- */
78
- oneOf?: OneOfBindingJson;
79
- /**
80
- * Whether the binding is optional.
81
- *
82
- * @generated from field: optional bool optional = 4;
83
- */
84
- optional?: boolean;
85
- };
86
- /**
87
- * Describes the message mochabugapis.adapt.plugins.v1.ServiceBinding.
88
- * Use `create(ServiceBindingSchema)` to create a new message.
89
- */
90
- export declare const ServiceBindingSchema: GenMessage<ServiceBinding, {
91
- jsonType: ServiceBindingJson;
92
- }>;
93
- /**
94
- * The one-of binding type.
95
- *
96
- * @generated from message mochabugapis.adapt.plugins.v1.OneOfBinding
97
- */
98
- export type OneOfBinding = Message<"mochabugapis.adapt.plugins.v1.OneOfBinding"> & {
99
- /**
100
- * List of available service names.
101
- *
102
- * @generated from field: repeated string options = 1;
103
- */
104
- options: string[];
105
- /**
106
- * an optional default that must lie in the options array
107
- *
108
- * @generated from field: optional string default = 2;
109
- */
110
- default?: string;
111
- };
112
- /**
113
- * The one-of binding type.
114
- *
115
- * @generated from message mochabugapis.adapt.plugins.v1.OneOfBinding
116
- */
117
- export type OneOfBindingJson = {
118
- /**
119
- * List of available service names.
120
- *
121
- * @generated from field: repeated string options = 1;
122
- */
123
- options?: string[];
124
- /**
125
- * an optional default that must lie in the options array
126
- *
127
- * @generated from field: optional string default = 2;
128
- */
129
- default?: string;
130
- };
131
- /**
132
- * Describes the message mochabugapis.adapt.plugins.v1.OneOfBinding.
133
- * Use `create(OneOfBindingSchema)` to create a new message.
134
- */
135
- export declare const OneOfBindingSchema: GenMessage<OneOfBinding, {
136
- jsonType: OneOfBindingJson;
137
- }>;
138
- //# sourceMappingURL=service_binding_pb.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"service_binding_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/plugins/v1/service_binding_pb.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,kDAAkD,EAAE,OAC20B,CAAC;AAE74B;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,8CAA8C,CAAC,GAAG;IACrF;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,OAAO,EAAE;QACP;;;;WAIG;QACH,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,SAAS,CAAC;KACjB,GAAG;QACF;;;;WAIG;QACH,KAAK,EAAE,YAAY,CAAC;QACpB,IAAI,EAAE,OAAO,CAAC;KACf,GAAG;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,KAAK,CAAC,EAAE,SAAS,CAAA;KAAE,CAAC;IAE3C;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,KAAK,CAAC,EAAE,gBAAgB,CAAC;IAEzB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,UAAU,CAAC,cAAc,EAAE;IAAC,QAAQ,EAAE,kBAAkB,CAAA;CAAC,CACxB,CAAC;AAErE;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,4CAA4C,CAAC,GAAG;IACjF;;;;OAIG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;IAElB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAEnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,UAAU,CAAC,YAAY,EAAE;IAAC,QAAQ,EAAE,gBAAgB,CAAA;CAAC,CAClB,CAAC"}
@@ -1,151 +0,0 @@
1
- import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
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
- /**
25
- * TlsConfig configures the TLS behavior for the connection.
26
- * It supports two modes:
27
- * 1. MTLS: True Mutual TLS where both the client and server present and validate each other's certificates.
28
- * 2. SERVER_ONLY: Server-only validation where only the server presents a certificate, and the client validates it.
29
- *
30
- * @generated from message mochabugapis.adapt.plugins.v1.TlsDefinition
31
- */
32
- export type TlsDefinitionJson = {
33
- /**
34
- * Select the TLS mode for the connection.
35
- *
36
- * @generated from field: mochabugapis.adapt.plugins.v1.TlsDefinition.Mode mode = 1;
37
- */
38
- mode?: TlsDefinition_ModeJson;
39
- };
40
- /**
41
- * Describes the message mochabugapis.adapt.plugins.v1.TlsDefinition.
42
- * Use `create(TlsDefinitionSchema)` to create a new message.
43
- */
44
- export declare const TlsDefinitionSchema: GenMessage<TlsDefinition, {
45
- jsonType: TlsDefinitionJson;
46
- }>;
47
- /**
48
- * Mode specifies which TLS configuration to use.
49
- *
50
- * @generated from enum mochabugapis.adapt.plugins.v1.TlsDefinition.Mode
51
- */
52
- export declare enum TlsDefinition_Mode {
53
- /**
54
- * Default value. Invalid.
55
- *
56
- * @generated from enum value: MODE_UNSPECIFIED = 0;
57
- */
58
- UNSPECIFIED = 0,
59
- /**
60
- * MTLS requires both the client and server to present valid certificates.
61
- *
62
- * @generated from enum value: MODE_MTLS = 1;
63
- */
64
- MTLS = 1,
65
- /**
66
- * SERVER_ONLY requires only the server to present a certificate, and the client performs validation.
67
- *
68
- * @generated from enum value: MODE_SERVER_ONLY = 2;
69
- */
70
- SERVER_ONLY = 2
71
- }
72
- /**
73
- * Mode specifies which TLS configuration to use.
74
- *
75
- * @generated from enum mochabugapis.adapt.plugins.v1.TlsDefinition.Mode
76
- */
77
- export type TlsDefinition_ModeJson = "MODE_UNSPECIFIED" | "MODE_MTLS" | "MODE_SERVER_ONLY";
78
- /**
79
- * Describes the enum mochabugapis.adapt.plugins.v1.TlsDefinition.Mode.
80
- */
81
- export declare const TlsDefinition_ModeSchema: GenEnum<TlsDefinition_Mode, TlsDefinition_ModeJson>;
82
- /**
83
- * The actual TLS configuration
84
- *
85
- * @generated from message mochabugapis.adapt.plugins.v1.TlsConfig
86
- */
87
- export type TlsConfig = Message<"mochabugapis.adapt.plugins.v1.TlsConfig"> & {
88
- /**
89
- * The ca bundle in PEM format
90
- * The content of the file must be PEM format after decoding
91
- * If a certificate chain is presented. The server certificate must be the first one
92
- *
93
- * @generated from field: mochabugapis.adapt.plugins.v1.File ca_bundle = 1;
94
- */
95
- caBundle?: File;
96
- /**
97
- * The certificate in PEM format
98
- * The content of the file must be PEM format after decoding
99
- * If a certificate chain is presented. The server certificate must be the first one
100
- *
101
- * @generated from field: optional mochabugapis.adapt.plugins.v1.File certificate = 2;
102
- */
103
- certificate?: File;
104
- /**
105
- * The private key in PEM format
106
- * The content of the file must be PEM format after decoding
107
- * The content must contain a PRIVATE KEY block
108
- *
109
- * @generated from field: optional mochabugapis.adapt.plugins.v1.File private_key = 3;
110
- */
111
- privateKey?: File;
112
- };
113
- /**
114
- * The actual TLS configuration
115
- *
116
- * @generated from message mochabugapis.adapt.plugins.v1.TlsConfig
117
- */
118
- export type TlsConfigJson = {
119
- /**
120
- * The ca bundle in PEM format
121
- * The content of the file must be PEM format after decoding
122
- * If a certificate chain is presented. The server certificate must be the first one
123
- *
124
- * @generated from field: mochabugapis.adapt.plugins.v1.File ca_bundle = 1;
125
- */
126
- caBundle?: FileJson;
127
- /**
128
- * The certificate in PEM format
129
- * The content of the file must be PEM format after decoding
130
- * If a certificate chain is presented. The server certificate must be the first one
131
- *
132
- * @generated from field: optional mochabugapis.adapt.plugins.v1.File certificate = 2;
133
- */
134
- certificate?: FileJson;
135
- /**
136
- * The private key in PEM format
137
- * The content of the file must be PEM format after decoding
138
- * The content must contain a PRIVATE KEY block
139
- *
140
- * @generated from field: optional mochabugapis.adapt.plugins.v1.File private_key = 3;
141
- */
142
- privateKey?: FileJson;
143
- };
144
- /**
145
- * Describes the message mochabugapis.adapt.plugins.v1.TlsConfig.
146
- * Use `create(TlsConfigSchema)` to create a new message.
147
- */
148
- export declare const TlsConfigSchema: GenMessage<TlsConfig, {
149
- jsonType: TlsConfigJson;
150
- }>;
151
- //# sourceMappingURL=tls_service_pb.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tls_service_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/plugins/v1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