@sixb/server 0.0.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 (216) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +123 -0
  3. package/dist/auth/access-token-boundary.d.ts +23 -0
  4. package/dist/auth/access-token-boundary.d.ts.map +1 -0
  5. package/dist/auth/application-access.d.ts +4 -0
  6. package/dist/auth/application-access.d.ts.map +1 -0
  7. package/dist/auth/browser-origin.d.ts +62 -0
  8. package/dist/auth/browser-origin.d.ts.map +1 -0
  9. package/dist/auth/csrf.d.ts +2 -0
  10. package/dist/auth/csrf.d.ts.map +1 -0
  11. package/dist/auth/guard.d.ts +35 -0
  12. package/dist/auth/guard.d.ts.map +1 -0
  13. package/dist/auth/public-routes.d.ts +8 -0
  14. package/dist/auth/public-routes.d.ts.map +1 -0
  15. package/dist/auth/responses.d.ts +11 -0
  16. package/dist/auth/responses.d.ts.map +1 -0
  17. package/dist/auth/return-to.d.ts +3 -0
  18. package/dist/auth/return-to.d.ts.map +1 -0
  19. package/dist/auth/scope.d.ts +43 -0
  20. package/dist/auth/scope.d.ts.map +1 -0
  21. package/dist/auth/session-activity.d.ts +4 -0
  22. package/dist/auth/session-activity.d.ts.map +1 -0
  23. package/dist/auth/session-cookies.d.ts +12 -0
  24. package/dist/auth/session-cookies.d.ts.map +1 -0
  25. package/dist/files/content.d.ts +141 -0
  26. package/dist/files/content.d.ts.map +1 -0
  27. package/dist/index.d.ts +3 -0
  28. package/dist/index.d.ts.map +1 -0
  29. package/dist/index.js +11522 -0
  30. package/dist/index.js.map +78 -0
  31. package/dist/openapi/security.d.ts +26 -0
  32. package/dist/openapi/security.d.ts.map +1 -0
  33. package/dist/openapi/tags.d.ts +151 -0
  34. package/dist/openapi/tags.d.ts.map +1 -0
  35. package/dist/registerRoutes.d.ts +31 -0
  36. package/dist/registerRoutes.d.ts.map +1 -0
  37. package/dist/routes/action-runs.d.ts +244 -0
  38. package/dist/routes/action-runs.d.ts.map +1 -0
  39. package/dist/routes/actions.d.ts +183 -0
  40. package/dist/routes/actions.d.ts.map +1 -0
  41. package/dist/routes/agent-api-gateway.d.ts +4 -0
  42. package/dist/routes/agent-api-gateway.d.ts.map +1 -0
  43. package/dist/routes/agents.d.ts +1061 -0
  44. package/dist/routes/agents.d.ts.map +1 -0
  45. package/dist/routes/auth.d.ts +1366 -0
  46. package/dist/routes/auth.d.ts.map +1 -0
  47. package/dist/routes/connectors.d.ts +108 -0
  48. package/dist/routes/connectors.d.ts.map +1 -0
  49. package/dist/routes/datasets.d.ts +339 -0
  50. package/dist/routes/datasets.d.ts.map +1 -0
  51. package/dist/routes/events.d.ts +116 -0
  52. package/dist/routes/events.d.ts.map +1 -0
  53. package/dist/routes/files.d.ts +340 -0
  54. package/dist/routes/files.d.ts.map +1 -0
  55. package/dist/routes/links.d.ts +175 -0
  56. package/dist/routes/links.d.ts.map +1 -0
  57. package/dist/routes/logs.d.ts +88 -0
  58. package/dist/routes/logs.d.ts.map +1 -0
  59. package/dist/routes/objects.d.ts +450 -0
  60. package/dist/routes/objects.d.ts.map +1 -0
  61. package/dist/routes/ontology.d.ts +240 -0
  62. package/dist/routes/ontology.d.ts.map +1 -0
  63. package/dist/routes/pipelines.d.ts +399 -0
  64. package/dist/routes/pipelines.d.ts.map +1 -0
  65. package/dist/routes/project.d.ts +56 -0
  66. package/dist/routes/project.d.ts.map +1 -0
  67. package/dist/routes/projections.d.ts +916 -0
  68. package/dist/routes/projections.d.ts.map +1 -0
  69. package/dist/routes/rules.d.ts +165 -0
  70. package/dist/routes/rules.d.ts.map +1 -0
  71. package/dist/routes/status.d.ts +81 -0
  72. package/dist/routes/status.d.ts.map +1 -0
  73. package/dist/routes/syncs.d.ts +294 -0
  74. package/dist/routes/syncs.d.ts.map +1 -0
  75. package/dist/routes/telemetry.d.ts +241 -0
  76. package/dist/routes/telemetry.d.ts.map +1 -0
  77. package/dist/routes/webhook-runs.d.ts +89 -0
  78. package/dist/routes/webhook-runs.d.ts.map +1 -0
  79. package/dist/routes/webhooks.d.ts +60 -0
  80. package/dist/routes/webhooks.d.ts.map +1 -0
  81. package/dist/routes/workflows.d.ts +973 -0
  82. package/dist/routes/workflows.d.ts.map +1 -0
  83. package/dist/routes/ws/agents.d.ts +99 -0
  84. package/dist/routes/ws/agents.d.ts.map +1 -0
  85. package/dist/routes/ws/events.d.ts +89 -0
  86. package/dist/routes/ws/events.d.ts.map +1 -0
  87. package/dist/routes/ws/index.d.ts +31 -0
  88. package/dist/routes/ws/index.d.ts.map +1 -0
  89. package/dist/routes/ws/log-subscription-hub.d.ts +47 -0
  90. package/dist/routes/ws/log-subscription-hub.d.ts.map +1 -0
  91. package/dist/routes/ws/logs.d.ts +110 -0
  92. package/dist/routes/ws/logs.d.ts.map +1 -0
  93. package/dist/schemas/actions.d.ts +644 -0
  94. package/dist/schemas/actions.d.ts.map +1 -0
  95. package/dist/schemas/agents.d.ts +3157 -0
  96. package/dist/schemas/agents.d.ts.map +1 -0
  97. package/dist/schemas/auth.d.ts +2023 -0
  98. package/dist/schemas/auth.d.ts.map +1 -0
  99. package/dist/schemas/common.d.ts +30 -0
  100. package/dist/schemas/common.d.ts.map +1 -0
  101. package/dist/schemas/connectors.d.ts +82 -0
  102. package/dist/schemas/connectors.d.ts.map +1 -0
  103. package/dist/schemas/datasets.d.ts +744 -0
  104. package/dist/schemas/datasets.d.ts.map +1 -0
  105. package/dist/schemas/event-payloads.d.ts +477 -0
  106. package/dist/schemas/event-payloads.d.ts.map +1 -0
  107. package/dist/schemas/events.d.ts +665 -0
  108. package/dist/schemas/events.d.ts.map +1 -0
  109. package/dist/schemas/files.d.ts +241 -0
  110. package/dist/schemas/files.d.ts.map +1 -0
  111. package/dist/schemas/links.d.ts +90 -0
  112. package/dist/schemas/links.d.ts.map +1 -0
  113. package/dist/schemas/logs.d.ts +231 -0
  114. package/dist/schemas/logs.d.ts.map +1 -0
  115. package/dist/schemas/objects.d.ts +288 -0
  116. package/dist/schemas/objects.d.ts.map +1 -0
  117. package/dist/schemas/ontology.d.ts +778 -0
  118. package/dist/schemas/ontology.d.ts.map +1 -0
  119. package/dist/schemas/pipelines.d.ts +1373 -0
  120. package/dist/schemas/pipelines.d.ts.map +1 -0
  121. package/dist/schemas/project.d.ts +9 -0
  122. package/dist/schemas/project.d.ts.map +1 -0
  123. package/dist/schemas/projections.d.ts +6992 -0
  124. package/dist/schemas/projections.d.ts.map +1 -0
  125. package/dist/schemas/rules.d.ts +204 -0
  126. package/dist/schemas/rules.d.ts.map +1 -0
  127. package/dist/schemas/status.d.ts +189 -0
  128. package/dist/schemas/status.d.ts.map +1 -0
  129. package/dist/schemas/syncs.d.ts +538 -0
  130. package/dist/schemas/syncs.d.ts.map +1 -0
  131. package/dist/schemas/telemetry.d.ts +265 -0
  132. package/dist/schemas/telemetry.d.ts.map +1 -0
  133. package/dist/schemas/webhook-runs.d.ts +169 -0
  134. package/dist/schemas/webhook-runs.d.ts.map +1 -0
  135. package/dist/schemas/workflows.d.ts +1720 -0
  136. package/dist/schemas/workflows.d.ts.map +1 -0
  137. package/dist/server.d.ts +64 -0
  138. package/dist/server.d.ts.map +1 -0
  139. package/dist/tsconfig.json +5 -0
  140. package/dist/utils/http.d.ts +23 -0
  141. package/dist/utils/http.d.ts.map +1 -0
  142. package/dist/utils/request-body.d.ts +15 -0
  143. package/dist/utils/request-body.d.ts.map +1 -0
  144. package/dist/utils/ws.d.ts +10 -0
  145. package/dist/utils/ws.d.ts.map +1 -0
  146. package/package.json +68 -0
  147. package/src/auth/access-token-boundary.ts +68 -0
  148. package/src/auth/application-access.ts +16 -0
  149. package/src/auth/browser-origin.ts +367 -0
  150. package/src/auth/csrf.ts +1 -0
  151. package/src/auth/guard.ts +169 -0
  152. package/src/auth/public-routes.ts +87 -0
  153. package/src/auth/responses.ts +54 -0
  154. package/src/auth/return-to.ts +21 -0
  155. package/src/auth/scope.ts +64 -0
  156. package/src/auth/session-activity.ts +19 -0
  157. package/src/auth/session-cookies.ts +43 -0
  158. package/src/files/content.ts +419 -0
  159. package/src/index.ts +2 -0
  160. package/src/openapi/security.ts +37 -0
  161. package/src/openapi/tags.ts +151 -0
  162. package/src/registerRoutes.ts +49 -0
  163. package/src/routes/action-runs.ts +238 -0
  164. package/src/routes/actions.ts +126 -0
  165. package/src/routes/agent-api-gateway.ts +260 -0
  166. package/src/routes/agents.ts +943 -0
  167. package/src/routes/auth.ts +2233 -0
  168. package/src/routes/connectors.ts +69 -0
  169. package/src/routes/datasets.ts +402 -0
  170. package/src/routes/events.ts +55 -0
  171. package/src/routes/files.ts +675 -0
  172. package/src/routes/links.ts +143 -0
  173. package/src/routes/logs.ts +65 -0
  174. package/src/routes/objects.ts +838 -0
  175. package/src/routes/ontology.ts +138 -0
  176. package/src/routes/pipelines.ts +332 -0
  177. package/src/routes/project.ts +16 -0
  178. package/src/routes/projections.ts +251 -0
  179. package/src/routes/rules.ts +124 -0
  180. package/src/routes/status.ts +53 -0
  181. package/src/routes/syncs.ts +243 -0
  182. package/src/routes/telemetry.ts +207 -0
  183. package/src/routes/webhook-runs.ts +81 -0
  184. package/src/routes/webhooks.ts +508 -0
  185. package/src/routes/workflows.ts +1333 -0
  186. package/src/routes/ws/agents.ts +301 -0
  187. package/src/routes/ws/events.ts +278 -0
  188. package/src/routes/ws/index.ts +12 -0
  189. package/src/routes/ws/log-subscription-hub.ts +375 -0
  190. package/src/routes/ws/logs.ts +117 -0
  191. package/src/schemas/actions.ts +123 -0
  192. package/src/schemas/agents.ts +293 -0
  193. package/src/schemas/auth.ts +317 -0
  194. package/src/schemas/common.ts +60 -0
  195. package/src/schemas/connectors.ts +21 -0
  196. package/src/schemas/datasets.ts +107 -0
  197. package/src/schemas/event-payloads.ts +79 -0
  198. package/src/schemas/events.ts +117 -0
  199. package/src/schemas/files.ts +82 -0
  200. package/src/schemas/links.ts +38 -0
  201. package/src/schemas/logs.ts +76 -0
  202. package/src/schemas/objects.ts +759 -0
  203. package/src/schemas/ontology.ts +77 -0
  204. package/src/schemas/pipelines.ts +150 -0
  205. package/src/schemas/project.ts +5 -0
  206. package/src/schemas/projections.ts +144 -0
  207. package/src/schemas/rules.ts +98 -0
  208. package/src/schemas/status.ts +51 -0
  209. package/src/schemas/syncs.ts +83 -0
  210. package/src/schemas/telemetry.ts +59 -0
  211. package/src/schemas/webhook-runs.ts +40 -0
  212. package/src/schemas/workflows.ts +229 -0
  213. package/src/server.ts +383 -0
  214. package/src/utils/http.ts +108 -0
  215. package/src/utils/request-body.ts +62 -0
  216. package/src/utils/ws.ts +59 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"datasets.d.ts","sourceRoot":"","sources":["../../src/schemas/datasets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,mBAAmB;;;;;;EAE9B,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;EAErC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;EAErC,CAAA;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;EAKjC,CAAA;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;EAc9B,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;EAExB,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKlC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;EAGlC,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;EAIhC,CAAA;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW/B,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;EAM5C,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQnC,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG3C,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWpC,CAAA"}
@@ -0,0 +1,477 @@
1
+ import { z } from "zod";
2
+ /** Exact public payload shapes for authoritative ontology facts. */
3
+ export declare const ONTOLOGY_EVENT_PAYLOAD_SCHEMAS: {
4
+ "object.created": z.ZodObject<{
5
+ objectTypeId: z.ZodString;
6
+ primaryId: z.ZodString;
7
+ properties: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
8
+ propertyChanges: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
9
+ operation: z.ZodLiteral<"created">;
10
+ after: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ operation: "created";
13
+ after: import("./common").JsonValue;
14
+ }, {
15
+ operation: "created";
16
+ after: import("./common").JsonValue;
17
+ }>, z.ZodObject<{
18
+ operation: z.ZodLiteral<"updated">;
19
+ before: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
20
+ after: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ operation: "updated";
23
+ after: import("./common").JsonValue;
24
+ before: import("./common").JsonValue;
25
+ }, {
26
+ operation: "updated";
27
+ after: import("./common").JsonValue;
28
+ before: import("./common").JsonValue;
29
+ }>, z.ZodObject<{
30
+ operation: z.ZodLiteral<"cleared">;
31
+ before: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
32
+ after: z.ZodEffects<z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>, null, import("./common").JsonValue>;
33
+ }, "strip", z.ZodTypeAny, {
34
+ operation: "cleared";
35
+ after: null;
36
+ before: import("./common").JsonValue;
37
+ }, {
38
+ operation: "cleared";
39
+ after: import("./common").JsonValue;
40
+ before: import("./common").JsonValue;
41
+ }>]>>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ objectTypeId: string;
44
+ properties: Record<string, import("./common").JsonValue>;
45
+ primaryId: string;
46
+ propertyChanges: Record<string, {
47
+ operation: "created";
48
+ after: import("./common").JsonValue;
49
+ } | {
50
+ operation: "updated";
51
+ after: import("./common").JsonValue;
52
+ before: import("./common").JsonValue;
53
+ } | {
54
+ operation: "cleared";
55
+ after: null;
56
+ before: import("./common").JsonValue;
57
+ }>;
58
+ }, {
59
+ objectTypeId: string;
60
+ properties: Record<string, import("./common").JsonValue>;
61
+ primaryId: string;
62
+ propertyChanges: Record<string, {
63
+ operation: "created";
64
+ after: import("./common").JsonValue;
65
+ } | {
66
+ operation: "updated";
67
+ after: import("./common").JsonValue;
68
+ before: import("./common").JsonValue;
69
+ } | {
70
+ operation: "cleared";
71
+ after: import("./common").JsonValue;
72
+ before: import("./common").JsonValue;
73
+ }>;
74
+ }>;
75
+ "object.updated": z.ZodObject<{
76
+ objectTypeId: z.ZodString;
77
+ primaryId: z.ZodString;
78
+ properties: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
79
+ propertyChanges: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
80
+ operation: z.ZodLiteral<"created">;
81
+ after: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
82
+ }, "strip", z.ZodTypeAny, {
83
+ operation: "created";
84
+ after: import("./common").JsonValue;
85
+ }, {
86
+ operation: "created";
87
+ after: import("./common").JsonValue;
88
+ }>, z.ZodObject<{
89
+ operation: z.ZodLiteral<"updated">;
90
+ before: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
91
+ after: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
92
+ }, "strip", z.ZodTypeAny, {
93
+ operation: "updated";
94
+ after: import("./common").JsonValue;
95
+ before: import("./common").JsonValue;
96
+ }, {
97
+ operation: "updated";
98
+ after: import("./common").JsonValue;
99
+ before: import("./common").JsonValue;
100
+ }>, z.ZodObject<{
101
+ operation: z.ZodLiteral<"cleared">;
102
+ before: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
103
+ after: z.ZodEffects<z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>, null, import("./common").JsonValue>;
104
+ }, "strip", z.ZodTypeAny, {
105
+ operation: "cleared";
106
+ after: null;
107
+ before: import("./common").JsonValue;
108
+ }, {
109
+ operation: "cleared";
110
+ after: import("./common").JsonValue;
111
+ before: import("./common").JsonValue;
112
+ }>]>>;
113
+ }, "strip", z.ZodTypeAny, {
114
+ objectTypeId: string;
115
+ properties: Record<string, import("./common").JsonValue>;
116
+ primaryId: string;
117
+ propertyChanges: Record<string, {
118
+ operation: "created";
119
+ after: import("./common").JsonValue;
120
+ } | {
121
+ operation: "updated";
122
+ after: import("./common").JsonValue;
123
+ before: import("./common").JsonValue;
124
+ } | {
125
+ operation: "cleared";
126
+ after: null;
127
+ before: import("./common").JsonValue;
128
+ }>;
129
+ }, {
130
+ objectTypeId: string;
131
+ properties: Record<string, import("./common").JsonValue>;
132
+ primaryId: string;
133
+ propertyChanges: Record<string, {
134
+ operation: "created";
135
+ after: import("./common").JsonValue;
136
+ } | {
137
+ operation: "updated";
138
+ after: import("./common").JsonValue;
139
+ before: import("./common").JsonValue;
140
+ } | {
141
+ operation: "cleared";
142
+ after: import("./common").JsonValue;
143
+ before: import("./common").JsonValue;
144
+ }>;
145
+ }>;
146
+ "object.deleted": z.ZodObject<{
147
+ objectTypeId: z.ZodString;
148
+ primaryId: z.ZodString;
149
+ propertyChanges: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
150
+ operation: z.ZodLiteral<"created">;
151
+ after: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
152
+ }, "strip", z.ZodTypeAny, {
153
+ operation: "created";
154
+ after: import("./common").JsonValue;
155
+ }, {
156
+ operation: "created";
157
+ after: import("./common").JsonValue;
158
+ }>, z.ZodObject<{
159
+ operation: z.ZodLiteral<"updated">;
160
+ before: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
161
+ after: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
162
+ }, "strip", z.ZodTypeAny, {
163
+ operation: "updated";
164
+ after: import("./common").JsonValue;
165
+ before: import("./common").JsonValue;
166
+ }, {
167
+ operation: "updated";
168
+ after: import("./common").JsonValue;
169
+ before: import("./common").JsonValue;
170
+ }>, z.ZodObject<{
171
+ operation: z.ZodLiteral<"cleared">;
172
+ before: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
173
+ after: z.ZodEffects<z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>, null, import("./common").JsonValue>;
174
+ }, "strip", z.ZodTypeAny, {
175
+ operation: "cleared";
176
+ after: null;
177
+ before: import("./common").JsonValue;
178
+ }, {
179
+ operation: "cleared";
180
+ after: import("./common").JsonValue;
181
+ before: import("./common").JsonValue;
182
+ }>]>>;
183
+ }, "strip", z.ZodTypeAny, {
184
+ objectTypeId: string;
185
+ primaryId: string;
186
+ propertyChanges: Record<string, {
187
+ operation: "created";
188
+ after: import("./common").JsonValue;
189
+ } | {
190
+ operation: "updated";
191
+ after: import("./common").JsonValue;
192
+ before: import("./common").JsonValue;
193
+ } | {
194
+ operation: "cleared";
195
+ after: null;
196
+ before: import("./common").JsonValue;
197
+ }>;
198
+ }, {
199
+ objectTypeId: string;
200
+ primaryId: string;
201
+ propertyChanges: Record<string, {
202
+ operation: "created";
203
+ after: import("./common").JsonValue;
204
+ } | {
205
+ operation: "updated";
206
+ after: import("./common").JsonValue;
207
+ before: import("./common").JsonValue;
208
+ } | {
209
+ operation: "cleared";
210
+ after: import("./common").JsonValue;
211
+ before: import("./common").JsonValue;
212
+ }>;
213
+ }>;
214
+ "link.created": z.ZodObject<{
215
+ sourceTypeId: z.ZodString;
216
+ sourceId: z.ZodString;
217
+ linkId: z.ZodString;
218
+ targetTypeId: z.ZodString;
219
+ targetId: z.ZodString;
220
+ } & {
221
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>>;
222
+ propertyChanges: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
223
+ operation: z.ZodLiteral<"created">;
224
+ after: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
225
+ }, "strip", z.ZodTypeAny, {
226
+ operation: "created";
227
+ after: import("./common").JsonValue;
228
+ }, {
229
+ operation: "created";
230
+ after: import("./common").JsonValue;
231
+ }>, z.ZodObject<{
232
+ operation: z.ZodLiteral<"updated">;
233
+ before: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
234
+ after: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
235
+ }, "strip", z.ZodTypeAny, {
236
+ operation: "updated";
237
+ after: import("./common").JsonValue;
238
+ before: import("./common").JsonValue;
239
+ }, {
240
+ operation: "updated";
241
+ after: import("./common").JsonValue;
242
+ before: import("./common").JsonValue;
243
+ }>, z.ZodObject<{
244
+ operation: z.ZodLiteral<"cleared">;
245
+ before: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
246
+ after: z.ZodEffects<z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>, null, import("./common").JsonValue>;
247
+ }, "strip", z.ZodTypeAny, {
248
+ operation: "cleared";
249
+ after: null;
250
+ before: import("./common").JsonValue;
251
+ }, {
252
+ operation: "cleared";
253
+ after: import("./common").JsonValue;
254
+ before: import("./common").JsonValue;
255
+ }>]>>;
256
+ }, "strip", z.ZodTypeAny, {
257
+ propertyChanges: Record<string, {
258
+ operation: "created";
259
+ after: import("./common").JsonValue;
260
+ } | {
261
+ operation: "updated";
262
+ after: import("./common").JsonValue;
263
+ before: import("./common").JsonValue;
264
+ } | {
265
+ operation: "cleared";
266
+ after: null;
267
+ before: import("./common").JsonValue;
268
+ }>;
269
+ sourceTypeId: string;
270
+ sourceId: string;
271
+ linkId: string;
272
+ targetTypeId: string;
273
+ targetId: string;
274
+ properties?: Record<string, import("./common").JsonValue> | undefined;
275
+ }, {
276
+ propertyChanges: Record<string, {
277
+ operation: "created";
278
+ after: import("./common").JsonValue;
279
+ } | {
280
+ operation: "updated";
281
+ after: import("./common").JsonValue;
282
+ before: import("./common").JsonValue;
283
+ } | {
284
+ operation: "cleared";
285
+ after: import("./common").JsonValue;
286
+ before: import("./common").JsonValue;
287
+ }>;
288
+ sourceTypeId: string;
289
+ sourceId: string;
290
+ linkId: string;
291
+ targetTypeId: string;
292
+ targetId: string;
293
+ properties?: Record<string, import("./common").JsonValue> | undefined;
294
+ }>;
295
+ "link.updated": z.ZodObject<{
296
+ sourceTypeId: z.ZodString;
297
+ sourceId: z.ZodString;
298
+ linkId: z.ZodString;
299
+ targetTypeId: z.ZodString;
300
+ targetId: z.ZodString;
301
+ } & {
302
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>>;
303
+ propertyChanges: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
304
+ operation: z.ZodLiteral<"created">;
305
+ after: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
306
+ }, "strip", z.ZodTypeAny, {
307
+ operation: "created";
308
+ after: import("./common").JsonValue;
309
+ }, {
310
+ operation: "created";
311
+ after: import("./common").JsonValue;
312
+ }>, z.ZodObject<{
313
+ operation: z.ZodLiteral<"updated">;
314
+ before: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
315
+ after: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
316
+ }, "strip", z.ZodTypeAny, {
317
+ operation: "updated";
318
+ after: import("./common").JsonValue;
319
+ before: import("./common").JsonValue;
320
+ }, {
321
+ operation: "updated";
322
+ after: import("./common").JsonValue;
323
+ before: import("./common").JsonValue;
324
+ }>, z.ZodObject<{
325
+ operation: z.ZodLiteral<"cleared">;
326
+ before: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
327
+ after: z.ZodEffects<z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>, null, import("./common").JsonValue>;
328
+ }, "strip", z.ZodTypeAny, {
329
+ operation: "cleared";
330
+ after: null;
331
+ before: import("./common").JsonValue;
332
+ }, {
333
+ operation: "cleared";
334
+ after: import("./common").JsonValue;
335
+ before: import("./common").JsonValue;
336
+ }>]>>;
337
+ }, "strip", z.ZodTypeAny, {
338
+ propertyChanges: Record<string, {
339
+ operation: "created";
340
+ after: import("./common").JsonValue;
341
+ } | {
342
+ operation: "updated";
343
+ after: import("./common").JsonValue;
344
+ before: import("./common").JsonValue;
345
+ } | {
346
+ operation: "cleared";
347
+ after: null;
348
+ before: import("./common").JsonValue;
349
+ }>;
350
+ sourceTypeId: string;
351
+ sourceId: string;
352
+ linkId: string;
353
+ targetTypeId: string;
354
+ targetId: string;
355
+ properties?: Record<string, import("./common").JsonValue> | undefined;
356
+ }, {
357
+ propertyChanges: Record<string, {
358
+ operation: "created";
359
+ after: import("./common").JsonValue;
360
+ } | {
361
+ operation: "updated";
362
+ after: import("./common").JsonValue;
363
+ before: import("./common").JsonValue;
364
+ } | {
365
+ operation: "cleared";
366
+ after: import("./common").JsonValue;
367
+ before: import("./common").JsonValue;
368
+ }>;
369
+ sourceTypeId: string;
370
+ sourceId: string;
371
+ linkId: string;
372
+ targetTypeId: string;
373
+ targetId: string;
374
+ properties?: Record<string, import("./common").JsonValue> | undefined;
375
+ }>;
376
+ "link.deleted": z.ZodObject<{
377
+ sourceTypeId: z.ZodString;
378
+ sourceId: z.ZodString;
379
+ linkId: z.ZodString;
380
+ targetTypeId: z.ZodString;
381
+ targetId: z.ZodString;
382
+ } & {
383
+ propertyChanges: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
384
+ operation: z.ZodLiteral<"created">;
385
+ after: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
386
+ }, "strip", z.ZodTypeAny, {
387
+ operation: "created";
388
+ after: import("./common").JsonValue;
389
+ }, {
390
+ operation: "created";
391
+ after: import("./common").JsonValue;
392
+ }>, z.ZodObject<{
393
+ operation: z.ZodLiteral<"updated">;
394
+ before: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
395
+ after: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
396
+ }, "strip", z.ZodTypeAny, {
397
+ operation: "updated";
398
+ after: import("./common").JsonValue;
399
+ before: import("./common").JsonValue;
400
+ }, {
401
+ operation: "updated";
402
+ after: import("./common").JsonValue;
403
+ before: import("./common").JsonValue;
404
+ }>, z.ZodObject<{
405
+ operation: z.ZodLiteral<"cleared">;
406
+ before: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
407
+ after: z.ZodEffects<z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>, null, import("./common").JsonValue>;
408
+ }, "strip", z.ZodTypeAny, {
409
+ operation: "cleared";
410
+ after: null;
411
+ before: import("./common").JsonValue;
412
+ }, {
413
+ operation: "cleared";
414
+ after: import("./common").JsonValue;
415
+ before: import("./common").JsonValue;
416
+ }>]>>;
417
+ }, "strip", z.ZodTypeAny, {
418
+ propertyChanges: Record<string, {
419
+ operation: "created";
420
+ after: import("./common").JsonValue;
421
+ } | {
422
+ operation: "updated";
423
+ after: import("./common").JsonValue;
424
+ before: import("./common").JsonValue;
425
+ } | {
426
+ operation: "cleared";
427
+ after: null;
428
+ before: import("./common").JsonValue;
429
+ }>;
430
+ sourceTypeId: string;
431
+ sourceId: string;
432
+ linkId: string;
433
+ targetTypeId: string;
434
+ targetId: string;
435
+ }, {
436
+ propertyChanges: Record<string, {
437
+ operation: "created";
438
+ after: import("./common").JsonValue;
439
+ } | {
440
+ operation: "updated";
441
+ after: import("./common").JsonValue;
442
+ before: import("./common").JsonValue;
443
+ } | {
444
+ operation: "cleared";
445
+ after: import("./common").JsonValue;
446
+ before: import("./common").JsonValue;
447
+ }>;
448
+ sourceTypeId: string;
449
+ sourceId: string;
450
+ linkId: string;
451
+ targetTypeId: string;
452
+ targetId: string;
453
+ }>;
454
+ "telemetry.appended": z.ZodObject<{
455
+ objectTypeId: z.ZodString;
456
+ objectId: z.ZodString;
457
+ propertyId: z.ZodString;
458
+ value: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
459
+ unit: z.ZodOptional<z.ZodString>;
460
+ at: z.ZodString;
461
+ }, "strip", z.ZodTypeAny, {
462
+ at: string;
463
+ objectTypeId: string;
464
+ value: import("./common").JsonValue;
465
+ objectId: string;
466
+ propertyId: string;
467
+ unit?: string | undefined;
468
+ }, {
469
+ at: string;
470
+ objectTypeId: string;
471
+ value: import("./common").JsonValue;
472
+ objectId: string;
473
+ propertyId: string;
474
+ unit?: string | undefined;
475
+ }>;
476
+ };
477
+ //# sourceMappingURL=event-payloads.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-payloads.d.ts","sourceRoot":"","sources":["../../src/schemas/event-payloads.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA6DvB,oEAAoE;AACpE,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAeJ,CAAA"}