@projectqai/proto 0.0.14 → 0.0.16

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.
@@ -0,0 +1,179 @@
1
+ // @generated by protoc-gen-es v2.10.2 with parameter "target=js+dts,import_extension=none"
2
+ // @generated from file controller.proto (package world, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
6
+ import type { Message } from "@bufbuild/protobuf";
7
+ import type { Entity } from "./world_pb";
8
+
9
+ /**
10
+ * Describes the file controller.proto.
11
+ */
12
+ export declare const file_controller: GenFile;
13
+
14
+ /**
15
+ * @generated from message world.ControllerReconciliationRequest
16
+ */
17
+ export declare type ControllerReconciliationRequest = Message<"world.ControllerReconciliationRequest"> & {
18
+ /**
19
+ * @generated from field: string controller = 1;
20
+ */
21
+ controller: string;
22
+ };
23
+
24
+ /**
25
+ * Describes the message world.ControllerReconciliationRequest.
26
+ * Use `create(ControllerReconciliationRequestSchema)` to create a new message.
27
+ */
28
+ export declare const ControllerReconciliationRequestSchema: GenMessage<ControllerReconciliationRequest>;
29
+
30
+ /**
31
+ * a (config, device) match was added, changed, or removed
32
+ *
33
+ * @generated from message world.ControllerDeviceConfigurationEvent
34
+ */
35
+ export declare type ControllerDeviceConfigurationEvent = Message<"world.ControllerDeviceConfigurationEvent"> & {
36
+ /**
37
+ * @generated from field: world.ControllerDeviceConfigurationEventType t = 1;
38
+ */
39
+ t: ControllerDeviceConfigurationEventType;
40
+
41
+ /**
42
+ * @generated from field: world.Entity config = 2;
43
+ */
44
+ config?: Entity;
45
+
46
+ /**
47
+ * @generated from field: world.Entity device = 3;
48
+ */
49
+ device?: Entity;
50
+ };
51
+
52
+ /**
53
+ * Describes the message world.ControllerDeviceConfigurationEvent.
54
+ * Use `create(ControllerDeviceConfigurationEventSchema)` to create a new message.
55
+ */
56
+ export declare const ControllerDeviceConfigurationEventSchema: GenMessage<ControllerDeviceConfigurationEvent>;
57
+
58
+ /**
59
+ * @generated from message world.ControllerReconciliationEvent
60
+ */
61
+ export declare type ControllerReconciliationEvent = Message<"world.ControllerReconciliationEvent"> & {
62
+ /**
63
+ * @generated from oneof world.ControllerReconciliationEvent.event
64
+ */
65
+ event: {
66
+ /**
67
+ * @generated from field: world.ControllerDeviceConfigurationEvent config = 2;
68
+ */
69
+ value: ControllerDeviceConfigurationEvent;
70
+ case: "config";
71
+ } | { case: undefined; value?: undefined };
72
+ };
73
+
74
+ /**
75
+ * Describes the message world.ControllerReconciliationEvent.
76
+ * Use `create(ControllerReconciliationEventSchema)` to create a new message.
77
+ */
78
+ export declare const ControllerReconciliationEventSchema: GenMessage<ControllerReconciliationEvent>;
79
+
80
+ /**
81
+ * @generated from enum world.ControllerDeviceConfigurationEventType
82
+ */
83
+ export enum ControllerDeviceConfigurationEventType {
84
+ /**
85
+ * @generated from enum value: ControllerDeviceConfigurationEventNew = 0;
86
+ */
87
+ ControllerDeviceConfigurationEventNew = 0,
88
+
89
+ /**
90
+ * @generated from enum value: ControllerDeviceConfigurationEventChanged = 1;
91
+ */
92
+ ControllerDeviceConfigurationEventChanged = 1,
93
+
94
+ /**
95
+ * @generated from enum value: ControllerDeviceConfigurationEventRemoved = 2;
96
+ */
97
+ ControllerDeviceConfigurationEventRemoved = 2,
98
+ }
99
+
100
+ /**
101
+ * Describes the enum world.ControllerDeviceConfigurationEventType.
102
+ */
103
+ export declare const ControllerDeviceConfigurationEventTypeSchema: GenEnum<ControllerDeviceConfigurationEventType>;
104
+
105
+ /**
106
+ * API for controllers to receive work from the engine.
107
+ *
108
+ * The engine matches ConfigurationComponent entities to DeviceComponent entities
109
+ * using the config's selector, and streams the results as
110
+ * ControllerDeviceConfigurationEvent messages carrying both the config and device entity.
111
+ *
112
+ * ## Engine guarantees
113
+ *
114
+ * - Every New event is eventually followed by a Removed event
115
+ * for that (config.id, device.id) pair.
116
+ * - Each event carries the full config and device entities.
117
+ *
118
+ * ## Event sequences by scenario
119
+ *
120
+ * Stream starts:
121
+ * New(config, device) for each existing match
122
+ *
123
+ * Config added, no devices match yet:
124
+ * (no events until a device matches)
125
+ *
126
+ * Config added, devices already match:
127
+ * New(config, device) for each match
128
+ *
129
+ * Config value updated (selector unchanged):
130
+ * Changed(config, device) for all matched devices
131
+ * (carries new config entity)
132
+ *
133
+ * Config selector changed:
134
+ * Removed(config, device) for devices that no longer match
135
+ * New(config, device) for newly matching devices
136
+ * Changed(config, device) for devices that still match
137
+ *
138
+ * Config removed:
139
+ * Removed(config, device) for all matched devices
140
+ *
141
+ * Device appears, matches existing config(s):
142
+ * New(config, device) per matching config
143
+ *
144
+ * Device updated, still matches:
145
+ * Changed(config, device) with updated device entity
146
+ *
147
+ * Device updated, match set changes:
148
+ * Removed(config, device) from configs it no longer matches
149
+ * New(config, device) to configs it now newly matches
150
+ *
151
+ * Device removed:
152
+ * Removed(config, device) for each config it was matched to
153
+ *
154
+ * ## 1:1 mode — one connector per (config, device) pair
155
+ *
156
+ * New → start connector (carries full config + device)
157
+ * Changed → restart connector, or pass update to running connector
158
+ * Removed → stop connector
159
+ *
160
+ * ## 1:N mode — one connector per config, devices added/removed dynamically
161
+ *
162
+ * New → add device to connector, start connector if first device for this config
163
+ * Changed → update device or config in connector
164
+ * Removed → remove device from connector, stop connector if last device removed
165
+ *
166
+ *
167
+ * @generated from service world.ControllerService
168
+ */
169
+ export declare const ControllerService: GenService<{
170
+ /**
171
+ * @generated from rpc world.ControllerService.Reconcile
172
+ */
173
+ reconcile: {
174
+ methodKind: "server_streaming";
175
+ input: typeof ControllerReconciliationRequestSchema;
176
+ output: typeof ControllerReconciliationEventSchema;
177
+ },
178
+ }>;
179
+
@@ -0,0 +1,113 @@
1
+ // @generated by protoc-gen-es v2.10.2 with parameter "target=js+dts,import_extension=none"
2
+ // @generated from file controller.proto (package world, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
6
+ import { file_world } from "./world_pb";
7
+
8
+ /**
9
+ * Describes the file controller.proto.
10
+ */
11
+ export const file_controller = /*@__PURE__*/
12
+ fileDesc("ChBjb250cm9sbGVyLnByb3RvEgV3b3JsZCI1Ch9Db250cm9sbGVyUmVjb25jaWxpYXRpb25SZXF1ZXN0EhIKCmNvbnRyb2xsZXIYASABKAkinAEKIkNvbnRyb2xsZXJEZXZpY2VDb25maWd1cmF0aW9uRXZlbnQSOAoBdBgBIAEoDjItLndvcmxkLkNvbnRyb2xsZXJEZXZpY2VDb25maWd1cmF0aW9uRXZlbnRUeXBlEh0KBmNvbmZpZxgCIAEoCzINLndvcmxkLkVudGl0eRIdCgZkZXZpY2UYAyABKAsyDS53b3JsZC5FbnRpdHkiZQodQ29udHJvbGxlclJlY29uY2lsaWF0aW9uRXZlbnQSOwoGY29uZmlnGAIgASgLMikud29ybGQuQ29udHJvbGxlckRldmljZUNvbmZpZ3VyYXRpb25FdmVudEgAQgcKBWV2ZW50KrEBCiZDb250cm9sbGVyRGV2aWNlQ29uZmlndXJhdGlvbkV2ZW50VHlwZRIpCiVDb250cm9sbGVyRGV2aWNlQ29uZmlndXJhdGlvbkV2ZW50TmV3EAASLQopQ29udHJvbGxlckRldmljZUNvbmZpZ3VyYXRpb25FdmVudENoYW5nZWQQARItCilDb250cm9sbGVyRGV2aWNlQ29uZmlndXJhdGlvbkV2ZW50UmVtb3ZlZBACMnAKEUNvbnRyb2xsZXJTZXJ2aWNlElsKCVJlY29uY2lsZRImLndvcmxkLkNvbnRyb2xsZXJSZWNvbmNpbGlhdGlvblJlcXVlc3QaJC53b3JsZC5Db250cm9sbGVyUmVjb25jaWxpYXRpb25FdmVudDABQiBaHmdpdGh1Yi5jb20vcHJvamVjdHFhaS9wcm90by9nb2IGcHJvdG8z", [file_world]);
13
+
14
+ /**
15
+ * Describes the message world.ControllerReconciliationRequest.
16
+ * Use `create(ControllerReconciliationRequestSchema)` to create a new message.
17
+ */
18
+ export const ControllerReconciliationRequestSchema = /*@__PURE__*/
19
+ messageDesc(file_controller, 0);
20
+
21
+ /**
22
+ * Describes the message world.ControllerDeviceConfigurationEvent.
23
+ * Use `create(ControllerDeviceConfigurationEventSchema)` to create a new message.
24
+ */
25
+ export const ControllerDeviceConfigurationEventSchema = /*@__PURE__*/
26
+ messageDesc(file_controller, 1);
27
+
28
+ /**
29
+ * Describes the message world.ControllerReconciliationEvent.
30
+ * Use `create(ControllerReconciliationEventSchema)` to create a new message.
31
+ */
32
+ export const ControllerReconciliationEventSchema = /*@__PURE__*/
33
+ messageDesc(file_controller, 2);
34
+
35
+ /**
36
+ * Describes the enum world.ControllerDeviceConfigurationEventType.
37
+ */
38
+ export const ControllerDeviceConfigurationEventTypeSchema = /*@__PURE__*/
39
+ enumDesc(file_controller, 0);
40
+
41
+ /**
42
+ * @generated from enum world.ControllerDeviceConfigurationEventType
43
+ */
44
+ export const ControllerDeviceConfigurationEventType = /*@__PURE__*/
45
+ tsEnum(ControllerDeviceConfigurationEventTypeSchema);
46
+
47
+ /**
48
+ * API for controllers to receive work from the engine.
49
+ *
50
+ * The engine matches ConfigurationComponent entities to DeviceComponent entities
51
+ * using the config's selector, and streams the results as
52
+ * ControllerDeviceConfigurationEvent messages carrying both the config and device entity.
53
+ *
54
+ * ## Engine guarantees
55
+ *
56
+ * - Every New event is eventually followed by a Removed event
57
+ * for that (config.id, device.id) pair.
58
+ * - Each event carries the full config and device entities.
59
+ *
60
+ * ## Event sequences by scenario
61
+ *
62
+ * Stream starts:
63
+ * New(config, device) for each existing match
64
+ *
65
+ * Config added, no devices match yet:
66
+ * (no events until a device matches)
67
+ *
68
+ * Config added, devices already match:
69
+ * New(config, device) for each match
70
+ *
71
+ * Config value updated (selector unchanged):
72
+ * Changed(config, device) for all matched devices
73
+ * (carries new config entity)
74
+ *
75
+ * Config selector changed:
76
+ * Removed(config, device) for devices that no longer match
77
+ * New(config, device) for newly matching devices
78
+ * Changed(config, device) for devices that still match
79
+ *
80
+ * Config removed:
81
+ * Removed(config, device) for all matched devices
82
+ *
83
+ * Device appears, matches existing config(s):
84
+ * New(config, device) per matching config
85
+ *
86
+ * Device updated, still matches:
87
+ * Changed(config, device) with updated device entity
88
+ *
89
+ * Device updated, match set changes:
90
+ * Removed(config, device) from configs it no longer matches
91
+ * New(config, device) to configs it now newly matches
92
+ *
93
+ * Device removed:
94
+ * Removed(config, device) for each config it was matched to
95
+ *
96
+ * ## 1:1 mode — one connector per (config, device) pair
97
+ *
98
+ * New → start connector (carries full config + device)
99
+ * Changed → restart connector, or pass update to running connector
100
+ * Removed → stop connector
101
+ *
102
+ * ## 1:N mode — one connector per config, devices added/removed dynamically
103
+ *
104
+ * New → add device to connector, start connector if first device for this config
105
+ * Changed → update device or config in connector
106
+ * Removed → remove device from connector, stop connector if last device removed
107
+ *
108
+ *
109
+ * @generated from service world.ControllerService
110
+ */
111
+ export const ControllerService = /*@__PURE__*/
112
+ serviceDesc(file_controller, 0);
113
+