@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.
Files changed (99) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +873 -0
  3. package/dist/api.d.ts +1605 -0
  4. package/dist/api.d.ts.map +1 -0
  5. package/dist/api.spec.d.ts +2 -0
  6. package/dist/api.spec.d.ts.map +1 -0
  7. package/dist/cjs/api.cjs +2 -0
  8. package/dist/cjs/api.cjs.map +7 -0
  9. package/dist/cjs/frontend.cjs +2 -0
  10. package/dist/cjs/frontend.cjs.map +7 -0
  11. package/dist/cjs/mime.cjs +2 -0
  12. package/dist/cjs/mime.cjs.map +7 -0
  13. package/dist/cjs/router.cjs +2 -0
  14. package/dist/cjs/router.cjs.map +7 -0
  15. package/dist/cjs/types.cjs +2 -0
  16. package/dist/cjs/types.cjs.map +7 -0
  17. package/dist/esm/api.mjs +2 -0
  18. package/dist/esm/api.mjs.map +7 -0
  19. package/dist/esm/frontend.mjs +2 -0
  20. package/dist/esm/frontend.mjs.map +7 -0
  21. package/dist/esm/mime.mjs +2 -0
  22. package/dist/esm/mime.mjs.map +7 -0
  23. package/dist/esm/router.mjs +2 -0
  24. package/dist/esm/router.mjs.map +7 -0
  25. package/dist/esm/types.mjs +1 -0
  26. package/dist/esm/types.mjs.map +7 -0
  27. package/dist/frontend.d.ts +10 -0
  28. package/dist/frontend.d.ts.map +1 -0
  29. package/dist/genproto/buf/validate/validate_pb.d.ts +8491 -0
  30. package/dist/genproto/buf/validate/validate_pb.d.ts.map +1 -0
  31. package/dist/genproto/google/api/annotations_pb.d.ts +14 -0
  32. package/dist/genproto/google/api/annotations_pb.d.ts.map +1 -0
  33. package/dist/genproto/google/api/client_pb.d.ts +1432 -0
  34. package/dist/genproto/google/api/client_pb.d.ts.map +1 -0
  35. package/dist/genproto/google/api/http_pb.d.ts +843 -0
  36. package/dist/genproto/google/api/http_pb.d.ts.map +1 -0
  37. package/dist/genproto/google/api/launch_stage_pb.d.ts +94 -0
  38. package/dist/genproto/google/api/launch_stage_pb.d.ts.map +1 -0
  39. package/dist/genproto/mochabugapis/adapt/automations/v1/automations_pb.d.ts +1006 -0
  40. package/dist/genproto/mochabugapis/adapt/automations/v1/automations_pb.d.ts.map +1 -0
  41. package/dist/genproto/mochabugapis/adapt/graph/exchange_pb.d.ts +77 -0
  42. package/dist/genproto/mochabugapis/adapt/graph/exchange_pb.d.ts.map +1 -0
  43. package/dist/genproto/mochabugapis/adapt/graph/jtd_schema_pb.d.ts +401 -0
  44. package/dist/genproto/mochabugapis/adapt/graph/jtd_schema_pb.d.ts.map +1 -0
  45. package/dist/genproto/mochabugapis/adapt/graph/receiver_pb.d.ts +69 -0
  46. package/dist/genproto/mochabugapis/adapt/graph/receiver_pb.d.ts.map +1 -0
  47. package/dist/genproto/mochabugapis/adapt/graph/signal_binding_pb.d.ts +430 -0
  48. package/dist/genproto/mochabugapis/adapt/graph/signal_binding_pb.d.ts.map +1 -0
  49. package/dist/genproto/mochabugapis/adapt/graph/signal_data_pb.d.ts +198 -0
  50. package/dist/genproto/mochabugapis/adapt/graph/signal_data_pb.d.ts.map +1 -0
  51. package/dist/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.d.ts +161 -0
  52. package/dist/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.d.ts.map +1 -0
  53. package/dist/genproto/mochabugapis/adapt/graph/signal_format_pb.d.ts +305 -0
  54. package/dist/genproto/mochabugapis/adapt/graph/signal_format_pb.d.ts.map +1 -0
  55. package/dist/genproto/mochabugapis/adapt/graph/transceiver_pb.d.ts +77 -0
  56. package/dist/genproto/mochabugapis/adapt/graph/transceiver_pb.d.ts.map +1 -0
  57. package/dist/genproto/mochabugapis/adapt/graph/transmitter_pb.d.ts +120 -0
  58. package/dist/genproto/mochabugapis/adapt/graph/transmitter_pb.d.ts.map +1 -0
  59. package/dist/genproto/mochabugapis/adapt/graph/vertex_metadata_pb.d.ts +99 -0
  60. package/dist/genproto/mochabugapis/adapt/graph/vertex_metadata_pb.d.ts.map +1 -0
  61. package/dist/genproto/mochabugapis/adapt/plugins/v1/compound_services_pb.d.ts +347 -0
  62. package/dist/genproto/mochabugapis/adapt/plugins/v1/compound_services_pb.d.ts.map +1 -0
  63. package/dist/genproto/mochabugapis/adapt/plugins/v1/file_pb.d.ts +64 -0
  64. package/dist/genproto/mochabugapis/adapt/plugins/v1/file_pb.d.ts.map +1 -0
  65. package/dist/genproto/mochabugapis/adapt/plugins/v1/http_proxy_service_pb.d.ts +1282 -0
  66. package/dist/genproto/mochabugapis/adapt/plugins/v1/http_proxy_service_pb.d.ts.map +1 -0
  67. package/dist/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts +388 -0
  68. package/dist/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts.map +1 -0
  69. package/dist/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.d.ts +805 -0
  70. package/dist/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.d.ts.map +1 -0
  71. package/dist/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.d.ts +238 -0
  72. package/dist/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.d.ts.map +1 -0
  73. package/dist/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.d.ts +241 -0
  74. package/dist/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.d.ts.map +1 -0
  75. package/dist/genproto/mochabugapis/adapt/plugins/v1/service_settings_pb.d.ts +539 -0
  76. package/dist/genproto/mochabugapis/adapt/plugins/v1/service_settings_pb.d.ts.map +1 -0
  77. package/dist/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.d.ts +190 -0
  78. package/dist/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.d.ts.map +1 -0
  79. package/dist/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts +269 -0
  80. package/dist/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts.map +1 -0
  81. package/dist/genproto/mochabugapis/adapt/runtime/v1/incoming_pb.d.ts +339 -0
  82. package/dist/genproto/mochabugapis/adapt/runtime/v1/incoming_pb.d.ts.map +1 -0
  83. package/dist/genproto/mochabugapis/adapt/runtime/v1/runtime_pb.d.ts +2721 -0
  84. package/dist/genproto/mochabugapis/adapt/runtime/v1/runtime_pb.d.ts.map +1 -0
  85. package/dist/genproto/mochabugapis/adapt/runtime/v1/store_pb.d.ts +872 -0
  86. package/dist/genproto/mochabugapis/adapt/runtime/v1/store_pb.d.ts.map +1 -0
  87. package/dist/grpcweb.d.ts +8 -0
  88. package/dist/grpcweb.d.ts.map +1 -0
  89. package/dist/mime.d.ts +11 -0
  90. package/dist/mime.d.ts.map +1 -0
  91. package/dist/router.d.ts +503 -0
  92. package/dist/router.d.ts.map +1 -0
  93. package/dist/router.spec.d.ts +2 -0
  94. package/dist/router.spec.d.ts.map +1 -0
  95. package/dist/signal-api.spec.d.ts +17 -0
  96. package/dist/signal-api.spec.d.ts.map +1 -0
  97. package/dist/types.d.ts +149 -0
  98. package/dist/types.d.ts.map +1 -0
  99. package/package.json +80 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transmitter_pb.d.ts","sourceRoot":"","sources":["../../../../../src/genproto/mochabugapis/adapt/graph/transmitter_pb.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAGjF,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAErF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,yCAAyC,EAAE,OACyuB,CAAC;AAElyB;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,sCAAsC,CAAC,GAAG;IAC1E;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAE5B;;;;;OAKG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;CACzB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,OAAO,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAEjC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,oBAAoB,CAAC;CAC7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,UAAU,CAAC,WAAW,EAAE;IAAC,QAAQ,EAAE,eAAe,CAAA;CAAC,CACxB,CAAC;AAE5D;;;;GAIG;AACH,oBAAY,gBAAgB;IAC1B;;;;OAIG;IACH,WAAW,IAAI;IAEf;;;;OAIG;IACH,QAAQ,IAAI;IAEZ;;;;OAIG;IACH,MAAM,IAAI;IAEV;;;;OAIG;IACH,OAAO,IAAI;CACZ;AAED;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,kBAAkB,GAAG,eAAe,GAAG,aAAa,GAAG,cAAc,CAAC;AAEzG;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,OAAO,CAAC,gBAAgB,EAAE,oBAAoB,CACxB,CAAC"}
@@ -0,0 +1,99 @@
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Exchange, ExchangeJson } from "./exchange_pb";
3
+ import type { Receiver, ReceiverJson } from "./receiver_pb";
4
+ import type { Transmitter, TransmitterJson } from "./transmitter_pb";
5
+ import type { Message } from "@bufbuild/protobuf";
6
+ /**
7
+ * Describes the file mochabugapis/adapt/graph/vertex_metadata.proto.
8
+ */
9
+ export declare const file_mochabugapis_adapt_graph_vertex_metadata: GenFile;
10
+ /**
11
+ * VertexMetadata represents the configuration for a vertex, detailing its inputs,
12
+ * outputs, and processes (such as procedures and streams).
13
+ *
14
+ * @generated from message mochabugapis.adapt.graph.VertexMetadata
15
+ */
16
+ export type VertexMetadata = Message<"mochabugapis.adapt.graph.VertexMetadata"> & {
17
+ /**
18
+ * Indicates if the vertex configuration is complete. Defaults to 'false'.
19
+ *
20
+ * @generated from field: bool complete = 1;
21
+ */
22
+ complete: boolean;
23
+ /**
24
+ * Input points for the vertex. Must contain between 1 and 50 receivers,
25
+ * each with a unique name.
26
+ *
27
+ * @generated from field: repeated mochabugapis.adapt.graph.Receiver receivers = 2;
28
+ */
29
+ receivers: Receiver[];
30
+ /**
31
+ * Output points for the vertex. Can contain up to 50 transmitters,
32
+ * each with a unique name.
33
+ *
34
+ * @generated from field: repeated mochabugapis.adapt.graph.Transmitter transmitters = 3;
35
+ */
36
+ transmitters: Transmitter[];
37
+ /**
38
+ * Processes initiated by transmitters and responded to by receivers.
39
+ * Limited to 10 unique procedures.
40
+ *
41
+ * @generated from field: repeated mochabugapis.adapt.graph.Exchange exchanges = 4;
42
+ */
43
+ exchanges: Exchange[];
44
+ /**
45
+ * A unix cron expression to determine when the task should run.
46
+ *
47
+ * @generated from field: optional string cron_schedule = 6;
48
+ */
49
+ cronSchedule?: string;
50
+ };
51
+ /**
52
+ * VertexMetadata represents the configuration for a vertex, detailing its inputs,
53
+ * outputs, and processes (such as procedures and streams).
54
+ *
55
+ * @generated from message mochabugapis.adapt.graph.VertexMetadata
56
+ */
57
+ export type VertexMetadataJson = {
58
+ /**
59
+ * Indicates if the vertex configuration is complete. Defaults to 'false'.
60
+ *
61
+ * @generated from field: bool complete = 1;
62
+ */
63
+ complete?: boolean;
64
+ /**
65
+ * Input points for the vertex. Must contain between 1 and 50 receivers,
66
+ * each with a unique name.
67
+ *
68
+ * @generated from field: repeated mochabugapis.adapt.graph.Receiver receivers = 2;
69
+ */
70
+ receivers?: ReceiverJson[];
71
+ /**
72
+ * Output points for the vertex. Can contain up to 50 transmitters,
73
+ * each with a unique name.
74
+ *
75
+ * @generated from field: repeated mochabugapis.adapt.graph.Transmitter transmitters = 3;
76
+ */
77
+ transmitters?: TransmitterJson[];
78
+ /**
79
+ * Processes initiated by transmitters and responded to by receivers.
80
+ * Limited to 10 unique procedures.
81
+ *
82
+ * @generated from field: repeated mochabugapis.adapt.graph.Exchange exchanges = 4;
83
+ */
84
+ exchanges?: ExchangeJson[];
85
+ /**
86
+ * A unix cron expression to determine when the task should run.
87
+ *
88
+ * @generated from field: optional string cron_schedule = 6;
89
+ */
90
+ cronSchedule?: string;
91
+ };
92
+ /**
93
+ * Describes the message mochabugapis.adapt.graph.VertexMetadata.
94
+ * Use `create(VertexMetadataSchema)` to create a new message.
95
+ */
96
+ export declare const VertexMetadataSchema: GenMessage<VertexMetadata, {
97
+ jsonType: VertexMetadataJson;
98
+ }>;
99
+ //# sourceMappingURL=vertex_metadata_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vertex_metadata_pb.d.ts","sourceRoot":"","sources":["../../../../../src/genproto/mochabugapis/adapt/graph/vertex_metadata_pb.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE5D,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE5D,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAErE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,6CAA6C,EAAE,OACujC,CAAC;AAEpnC;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,yCAAyC,CAAC,GAAG;IAChF;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;;;OAKG;IACH,SAAS,EAAE,QAAQ,EAAE,CAAC;IAEtB;;;;;OAKG;IACH,YAAY,EAAE,WAAW,EAAE,CAAC;IAE5B;;;;;OAKG;IACH,SAAS,EAAE,QAAQ,EAAE,CAAC;IAEtB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAE3B;;;;;OAKG;IACH,YAAY,CAAC,EAAE,eAAe,EAAE,CAAC;IAEjC;;;;;OAKG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAE3B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,UAAU,CAAC,cAAc,EAAE;IAAC,QAAQ,EAAE,kBAAkB,CAAA;CAAC,CAC7B,CAAC"}
@@ -0,0 +1,347 @@
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/compound_services.proto.
5
+ */
6
+ export declare const file_mochabugapis_adapt_plugins_v1_compound_services: GenFile;
7
+ /**
8
+ * A grouped service definition that references multiple other flat service definitions.
9
+ *
10
+ * ## Architecture: Groups Reference Flat Definitions
11
+ *
12
+ * GroupedDefinition is itself a flat service definition at the Manifest.service_definitions level.
13
+ * It references OTHER flat service definitions by name as a string array.
14
+ *
15
+ * ## Purpose
16
+ *
17
+ * Groups allow plugin authors to bundle related services together. For example:
18
+ * - Production and sandbox environments for the same API
19
+ * - Multiple related API keys
20
+ * - Primary and backup authentication methods
21
+ *
22
+ * ## Example
23
+ *
24
+ * ```protobuf
25
+ * // In Manifest.service_definitions
26
+ * [
27
+ * { name: "stripe_prod", label: "Stripe Production", oauth2: {...} },
28
+ * { name: "stripe_sandbox", label: "Stripe Sandbox", oauth2: {...}, optional: true },
29
+ * {
30
+ * name: "stripe_envs",
31
+ * label: "Stripe Environments",
32
+ * group: {
33
+ * services: ["stripe_prod", "stripe_sandbox"]
34
+ * }
35
+ * }
36
+ * ]
37
+ *
38
+ * // Referenced in system services list
39
+ * system_services: ["stripe_envs"]
40
+ *
41
+ * // Plugin code accesses members with dot notation:
42
+ * "stripe_envs.stripe_prod", "stripe_envs.stripe_sandbox"
43
+ * ```
44
+ *
45
+ * @generated from message mochabugapis.adapt.plugins.v1.GroupedDefinition
46
+ */
47
+ export type GroupedDefinition = Message<"mochabugapis.adapt.plugins.v1.GroupedDefinition"> & {
48
+ /**
49
+ * References to other flat service definitions that comprise this group
50
+ *
51
+ * @generated from field: repeated string services = 1;
52
+ */
53
+ services: string[];
54
+ };
55
+ /**
56
+ * A grouped service definition that references multiple other flat service definitions.
57
+ *
58
+ * ## Architecture: Groups Reference Flat Definitions
59
+ *
60
+ * GroupedDefinition is itself a flat service definition at the Manifest.service_definitions level.
61
+ * It references OTHER flat service definitions by name as a string array.
62
+ *
63
+ * ## Purpose
64
+ *
65
+ * Groups allow plugin authors to bundle related services together. For example:
66
+ * - Production and sandbox environments for the same API
67
+ * - Multiple related API keys
68
+ * - Primary and backup authentication methods
69
+ *
70
+ * ## Example
71
+ *
72
+ * ```protobuf
73
+ * // In Manifest.service_definitions
74
+ * [
75
+ * { name: "stripe_prod", label: "Stripe Production", oauth2: {...} },
76
+ * { name: "stripe_sandbox", label: "Stripe Sandbox", oauth2: {...}, optional: true },
77
+ * {
78
+ * name: "stripe_envs",
79
+ * label: "Stripe Environments",
80
+ * group: {
81
+ * services: ["stripe_prod", "stripe_sandbox"]
82
+ * }
83
+ * }
84
+ * ]
85
+ *
86
+ * // Referenced in system services list
87
+ * system_services: ["stripe_envs"]
88
+ *
89
+ * // Plugin code accesses members with dot notation:
90
+ * "stripe_envs.stripe_prod", "stripe_envs.stripe_sandbox"
91
+ * ```
92
+ *
93
+ * @generated from message mochabugapis.adapt.plugins.v1.GroupedDefinition
94
+ */
95
+ export type GroupedDefinitionJson = {
96
+ /**
97
+ * References to other flat service definitions that comprise this group
98
+ *
99
+ * @generated from field: repeated string services = 1;
100
+ */
101
+ services?: string[];
102
+ };
103
+ /**
104
+ * Describes the message mochabugapis.adapt.plugins.v1.GroupedDefinition.
105
+ * Use `create(GroupedDefinitionSchema)` to create a new message.
106
+ */
107
+ export declare const GroupedDefinitionSchema: GenMessage<GroupedDefinition, {
108
+ jsonType: GroupedDefinitionJson;
109
+ }>;
110
+ /**
111
+ * A one-of service definition that allows users to choose from multiple flat service definitions.
112
+ *
113
+ * ## Architecture: One-Of References Flat Definitions
114
+ *
115
+ * OneOfDefinition is itself a flat service definition at the Manifest.service_definitions level.
116
+ * It references OTHER flat service definitions by name.
117
+ *
118
+ * ## Purpose
119
+ *
120
+ * One-of definitions allow plugins to support multiple alternative implementations:
121
+ * - Different payment providers (Stripe, PayPal, Square)
122
+ * - Different authentication methods (OAuth2, API Key, mTLS)
123
+ * - Different deployment environments
124
+ *
125
+ * Users choose ONE option during plugin installation/configuration.
126
+ *
127
+ * ## Example
128
+ *
129
+ * ```protobuf
130
+ * // In Manifest.service_definitions
131
+ * [
132
+ * { name: "stripe_oauth", label: "Stripe OAuth", oauth2: {...} },
133
+ * { name: "paypal_oauth", label: "PayPal OAuth", oauth2: {...} },
134
+ * { name: "square_oauth", label: "Square OAuth", oauth2: {...} },
135
+ * {
136
+ * name: "payment_provider",
137
+ * label: "Payment Provider",
138
+ * oneof: {
139
+ * options: {
140
+ * "stripe_oauth": "Stripe",
141
+ * "paypal_oauth": "PayPal",
142
+ * "square_oauth": "Square"
143
+ * },
144
+ * default: "stripe_oauth"
145
+ * }
146
+ * }
147
+ * ]
148
+ *
149
+ * // Referenced in system services list
150
+ * system_services: ["payment_provider"]
151
+ *
152
+ * // Plugin code accesses using the service name:
153
+ * "payment_provider" (regardless of which provider user chose)
154
+ * ```
155
+ *
156
+ * @generated from message mochabugapis.adapt.plugins.v1.OneOfDefinition
157
+ */
158
+ export type OneOfDefinition = Message<"mochabugapis.adapt.plugins.v1.OneOfDefinition"> & {
159
+ /**
160
+ * Map of service definition options users can choose from.
161
+ *
162
+ * Key: Service definition name (from Manifest.service_definitions)
163
+ * Value: Human-friendly label shown to users during selection
164
+ *
165
+ * The map key must reference an existing ServiceDefinition.name.
166
+ * The map value is displayed to users when choosing between options.
167
+ *
168
+ * ## Examples
169
+ *
170
+ * Basic options:
171
+ * options: {
172
+ * "stripe_oauth": "Stripe",
173
+ * "paypal_oauth": "PayPal"
174
+ * }
175
+ *
176
+ * Descriptive labels:
177
+ * options: {
178
+ * "stripe_oauth": "Stripe (recommended for production)",
179
+ * "paypal_oauth": "PayPal (simpler setup)"
180
+ * }
181
+ *
182
+ * @generated from field: map<string, string> options = 1;
183
+ */
184
+ options: {
185
+ [key: string]: string;
186
+ };
187
+ /**
188
+ * Optional default selection.
189
+ *
190
+ * If specified, this service definition will be pre-selected in the UI during installation.
191
+ * Users can still choose a different option.
192
+ *
193
+ * The default value MUST match one of the keys in the options map.
194
+ *
195
+ * Use this to:
196
+ * - Suggest the most common choice
197
+ * - Indicate the recommended option
198
+ * - Set a safe default for new users
199
+ *
200
+ * ## Default Behavior: System Settings vs User Settings
201
+ *
202
+ * **System Settings** (Manifest.system_services):
203
+ * - Default selection is automatically applied when the plugin is installed
204
+ * - The service is marked as "configured" if the default option has all required values
205
+ * - Plugin creators define and approve these defaults
206
+ *
207
+ * **User Settings** (Vertex.user_services):
208
+ * - Default selection is a UI hint only and NOT automatically applied
209
+ * - The service is NOT marked as "configured" until the user explicitly submits settings
210
+ * - Users must review and approve the selection, even with a default present
211
+ * - This ensures users actively consent to which option is selected
212
+ *
213
+ * ## Rationale
214
+ *
215
+ * System settings use automatic defaults because the plugin creator (who defines
216
+ * the defaults) is also the one approving them during plugin development.
217
+ *
218
+ * User settings require explicit submission because end users need to review and
219
+ * consciously approve which option is selected and configured.
220
+ *
221
+ * @generated from field: optional string default = 2;
222
+ */
223
+ default?: string;
224
+ };
225
+ /**
226
+ * A one-of service definition that allows users to choose from multiple flat service definitions.
227
+ *
228
+ * ## Architecture: One-Of References Flat Definitions
229
+ *
230
+ * OneOfDefinition is itself a flat service definition at the Manifest.service_definitions level.
231
+ * It references OTHER flat service definitions by name.
232
+ *
233
+ * ## Purpose
234
+ *
235
+ * One-of definitions allow plugins to support multiple alternative implementations:
236
+ * - Different payment providers (Stripe, PayPal, Square)
237
+ * - Different authentication methods (OAuth2, API Key, mTLS)
238
+ * - Different deployment environments
239
+ *
240
+ * Users choose ONE option during plugin installation/configuration.
241
+ *
242
+ * ## Example
243
+ *
244
+ * ```protobuf
245
+ * // In Manifest.service_definitions
246
+ * [
247
+ * { name: "stripe_oauth", label: "Stripe OAuth", oauth2: {...} },
248
+ * { name: "paypal_oauth", label: "PayPal OAuth", oauth2: {...} },
249
+ * { name: "square_oauth", label: "Square OAuth", oauth2: {...} },
250
+ * {
251
+ * name: "payment_provider",
252
+ * label: "Payment Provider",
253
+ * oneof: {
254
+ * options: {
255
+ * "stripe_oauth": "Stripe",
256
+ * "paypal_oauth": "PayPal",
257
+ * "square_oauth": "Square"
258
+ * },
259
+ * default: "stripe_oauth"
260
+ * }
261
+ * }
262
+ * ]
263
+ *
264
+ * // Referenced in system services list
265
+ * system_services: ["payment_provider"]
266
+ *
267
+ * // Plugin code accesses using the service name:
268
+ * "payment_provider" (regardless of which provider user chose)
269
+ * ```
270
+ *
271
+ * @generated from message mochabugapis.adapt.plugins.v1.OneOfDefinition
272
+ */
273
+ export type OneOfDefinitionJson = {
274
+ /**
275
+ * Map of service definition options users can choose from.
276
+ *
277
+ * Key: Service definition name (from Manifest.service_definitions)
278
+ * Value: Human-friendly label shown to users during selection
279
+ *
280
+ * The map key must reference an existing ServiceDefinition.name.
281
+ * The map value is displayed to users when choosing between options.
282
+ *
283
+ * ## Examples
284
+ *
285
+ * Basic options:
286
+ * options: {
287
+ * "stripe_oauth": "Stripe",
288
+ * "paypal_oauth": "PayPal"
289
+ * }
290
+ *
291
+ * Descriptive labels:
292
+ * options: {
293
+ * "stripe_oauth": "Stripe (recommended for production)",
294
+ * "paypal_oauth": "PayPal (simpler setup)"
295
+ * }
296
+ *
297
+ * @generated from field: map<string, string> options = 1;
298
+ */
299
+ options?: {
300
+ [key: string]: string;
301
+ };
302
+ /**
303
+ * Optional default selection.
304
+ *
305
+ * If specified, this service definition will be pre-selected in the UI during installation.
306
+ * Users can still choose a different option.
307
+ *
308
+ * The default value MUST match one of the keys in the options map.
309
+ *
310
+ * Use this to:
311
+ * - Suggest the most common choice
312
+ * - Indicate the recommended option
313
+ * - Set a safe default for new users
314
+ *
315
+ * ## Default Behavior: System Settings vs User Settings
316
+ *
317
+ * **System Settings** (Manifest.system_services):
318
+ * - Default selection is automatically applied when the plugin is installed
319
+ * - The service is marked as "configured" if the default option has all required values
320
+ * - Plugin creators define and approve these defaults
321
+ *
322
+ * **User Settings** (Vertex.user_services):
323
+ * - Default selection is a UI hint only and NOT automatically applied
324
+ * - The service is NOT marked as "configured" until the user explicitly submits settings
325
+ * - Users must review and approve the selection, even with a default present
326
+ * - This ensures users actively consent to which option is selected
327
+ *
328
+ * ## Rationale
329
+ *
330
+ * System settings use automatic defaults because the plugin creator (who defines
331
+ * the defaults) is also the one approving them during plugin development.
332
+ *
333
+ * User settings require explicit submission because end users need to review and
334
+ * consciously approve which option is selected and configured.
335
+ *
336
+ * @generated from field: optional string default = 2;
337
+ */
338
+ default?: string;
339
+ };
340
+ /**
341
+ * Describes the message mochabugapis.adapt.plugins.v1.OneOfDefinition.
342
+ * Use `create(OneOfDefinitionSchema)` to create a new message.
343
+ */
344
+ export declare const OneOfDefinitionSchema: GenMessage<OneOfDefinition, {
345
+ jsonType: OneOfDefinitionJson;
346
+ }>;
347
+ //# sourceMappingURL=compound_services_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compound_services_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/plugins/v1/compound_services_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,oDAAoD,EAAE,OACqrB,CAAC;AAEzvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,iDAAiD,CAAC,GAAG;IAC3F;;;;OAIG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,UAAU,CAAC,iBAAiB,EAAE;IAAC,QAAQ,EAAE,qBAAqB,CAAA;CAAC,CAC/B,CAAC;AAEvE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,+CAA+C,CAAC,GAAG;IACvF;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAEnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAEpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,UAAU,CAAC,eAAe,EAAE;IAAC,QAAQ,EAAE,mBAAmB,CAAA;CAAC,CACzB,CAAC"}
@@ -0,0 +1,64 @@
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/file.proto.
5
+ */
6
+ export declare const file_mochabugapis_adapt_plugins_v1_file: GenFile;
7
+ /**
8
+ * File represents a file within a plugin package.
9
+ *
10
+ * @generated from message mochabugapis.adapt.plugins.v1.File
11
+ */
12
+ export type File = Message<"mochabugapis.adapt.plugins.v1.File"> & {
13
+ /**
14
+ * The 'name' or 'path' of the file
15
+ *
16
+ * @generated from field: string name = 1;
17
+ */
18
+ name: string;
19
+ /**
20
+ * 'data' contains the actual binary file data.
21
+ *
22
+ * @generated from field: bytes data = 2;
23
+ */
24
+ data: Uint8Array;
25
+ /**
26
+ * The mime type of the file
27
+ *
28
+ * @generated from field: optional string mime_type = 3;
29
+ */
30
+ mimeType?: string;
31
+ };
32
+ /**
33
+ * File represents a file within a plugin package.
34
+ *
35
+ * @generated from message mochabugapis.adapt.plugins.v1.File
36
+ */
37
+ export type FileJson = {
38
+ /**
39
+ * The 'name' or 'path' of the file
40
+ *
41
+ * @generated from field: string name = 1;
42
+ */
43
+ name?: string;
44
+ /**
45
+ * 'data' contains the actual binary file data.
46
+ *
47
+ * @generated from field: bytes data = 2;
48
+ */
49
+ data?: string;
50
+ /**
51
+ * The mime type of the file
52
+ *
53
+ * @generated from field: optional string mime_type = 3;
54
+ */
55
+ mimeType?: string;
56
+ };
57
+ /**
58
+ * Describes the message mochabugapis.adapt.plugins.v1.File.
59
+ * Use `create(FileSchema)` to create a new message.
60
+ */
61
+ export declare const FileSchema: GenMessage<File, {
62
+ jsonType: FileJson;
63
+ }>;
64
+ //# sourceMappingURL=file_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/plugins/v1/file_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,uCAAuC,EAAE,OAC6Q,CAAC;AAEpU;;;;GAIG;AACH,MAAM,MAAM,IAAI,GAAG,OAAO,CAAC,oCAAoC,CAAC,GAAG;IACjE;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,IAAI,EAAE,UAAU,CAAC;IAEjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,IAAI,EAAE;IAAC,QAAQ,EAAE,QAAQ,CAAA;CAAC,CACL,CAAC"}